/*! For license information please see bundle.min.js.LICENSE.txt */
(()=>{var e,t,r,n,o,i={618:(e,t,r)=>{"use strict";r.d(t,{$x:()=>B,fK:()=>q,Bw:()=>N,J3:()=>G,DI:()=>W,Ql:()=>U,n5:()=>F,U$:()=>H,i4:()=>M,ki:()=>k});var n=r(824),o=r(4185),i=r(917),a=r(7294);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){var r=!1,n=t.map((function(t){var n=l(t,e);return r||"function"!=typeof n||(r=!0),n}));if(r)return function(){for(var e=0;e<n.length;e++){var r=n[e];"function"==typeof r?r():l(t[e],null)}}}}var u=r(1954),s=r(1921),d=r(7602),p=r(7264),f=r(5944);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)}var v=["children","className","value","onSelect","disabled"],b=["children","className","disabled"],y=["children","placeholder","className"],m=["children","className","width"],g=["children","className"],E=["children","className"],O=["children","value","className"],_=["children","className"],w=["className","placeholder"],C=["children","className"];function I(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?I(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(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}function P(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)||T(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 L(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 A(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||T(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 T(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}}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 Z=a.createContext({isOpen:!1,setIsOpen:d.ZT,selectedValue:null,setSelectedValue:d.ZT,selectedLabel:null,setSelectedLabel:d.ZT,onSelect:d.ZT,position:{top:0,left:0},triggerWidth:0,disabled:!1}),R=function(){return a.useContext(Z)};function j(e,t){var r=[];return a.Children.forEach(e,(function(e){a.isValidElement(e)&&(function(e,t){return e.type===t||"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"in e.props&&(null===(r=e.props.__EMOTION_TYPE_PLEASE_DO_NOT_USE__)||void 0===r?void 0:r.displayName)===t.displayName;var r}(e,t)&&r.push(e),e.props.children&&(r=[].concat(A(r),A(j(e.props.children,t)))))})),r}var B=a.forwardRef((function(e,t){var r=e.children,n=e.className,o=e.value,i=e.onSelect,l=e.disabled,c=L(e,v),s=P((0,a.useState)(!1),2),p=s[0],h=s[1],b=P((0,a.useState)(null!=o?o:null),2),y=b[0],m=b[1],g=P((0,a.useState)(null),2),E=g[0],O=g[1],_=(0,u.l)({isOpen:p,isDropdown:!0}),w=_.triggerRef,C=_.popoverRef,I=_.position,x=_.triggerWidth;return(0,a.useEffect)((function(){if((0,d.$K)(o)&&r){var e=j(r,U);e.length&&a.Children.forEach(e,(function(e){a.isValidElement(e)&&e.props.value===o&&O(e.props.children)}))}}),[o,r]),(0,a.useEffect)((function(){m(null!=o?o:null)}),[o]),(0,f.tZ)(Z.Provider,{value:{isOpen:p,setIsOpen:h,selectedValue:y,setSelectedValue:m,selectedLabel:E,setSelectedLabel:O,triggerRef:w,popoverRef:C,position:I,triggerWidth:x,disabled:l,onSelect:i},children:(0,f.tZ)("div",S(S({ref:t,className:n,css:z.selectWrapper},c),{},{children:r}))})})),M=a.forwardRef((function(e,t){var r=e.children,n=e.className,o=e.disabled,i=void 0!==o&&o,a=L(e,b),l=R(),u=l.isOpen,s=l.setIsOpen,d=l.triggerRef;return(0,f.BX)("button",S(S({type:"button",ref:c(t,d),className:n,onClick:function(){return s(!u)},css:z.selectTrigger(u,i),disabled:i},a),{},{children:[r,(0,f.tZ)(p.Z,{name:"chevronDown",width:20,height:20,"data-arrow-open":u})]}))})),k=a.forwardRef((function(e,t){var r=e.children,n=e.placeholder,o=e.className,i=L(e,y),a=R(),l=a.selectedLabel,c=a.selectedValue,u=(0,d.$K)(r),s=null;return u&&c&&(s="function"==typeof r?r(l):r),(0,f.tZ)("div",S(S({ref:t,className:o,css:z.selectValue,"data-placeholder":(0,d.$K)(l)?"false":"true"},i),{},{children:(0,d.$K)(c)?u?s:l:n}))})),N=a.forwardRef((function(e,t){var r=e.children,n=e.className,o=e.width,i=L(e,m),a=R(),l=a.isOpen,s=a.setIsOpen,p=a.position,h=a.popoverRef,v=a.triggerWidth,b=void 0===v?180:v;return(0,f.tZ)(u.h,{isOpen:l,onClickOutside:function(){return s(!1)},children:(0,f.tZ)("div",S(S({ref:c(t,h),className:n,css:[z.selectContent,{top:null==p?void 0:p.top,left:null==p?void 0:p.left,maxWidth:(0,d.$K)(o)?o:b},";label:SelectContent;"]},i),{},{children:r}))})})),G=a.forwardRef((function(e,t){var r=e.children,n=e.className,o=L(e,g);return(0,f.tZ)("div",S(S({ref:t,className:n,css:z.scroller},o),{},{children:r}))})),W=a.forwardRef((function(e,t){var r=e.children,n=e.className,o=L(e,E);return(0,f.tZ)("div",S(S({ref:t,className:n},o),{},{children:r}))})),U=a.forwardRef((function(e,t){var r=e.children,n=e.value,o=e.className,i=L(e,O),a=R(),l=a.selectedValue,c=a.setSelectedValue,u=a.setIsOpen,s=a.setSelectedLabel,d=a.onSelect,p=l===n;return(0,f.tZ)("button",S(S({type:"button",ref:t,className:o,css:z.selectItem(p),onClick:function(){c(n),s(r),null==d||d(n),u(!1)}},i),{},{children:r}))})),F=a.forwardRef((function(e,t){var r=e.children,n=e.className,o=L(e,_);return(0,f.tZ)("div",S(S({ref:t,className:n,css:z.selectLabel},o),{},{children:(0,f.tZ)("div",{children:r})}))})),H=a.forwardRef((function(e,t){var r=e.className,n=(e.placeholder,L(e,w));return(0,f.tZ)("div",S({ref:t,className:r,css:z.selectSeparator},n))})),q=a.forwardRef((function(e,t){var r=e.children,n=e.className,o=L(e,C),i=R(),a=i.selectedValue,l=i.setSelectedValue,c=i.setSelectedLabel,u=i.setIsOpen;return(0,f.BX)("button",S(S({type:"button",ref:t,className:n,css:z.selectClear,disabled:!(0,d.$K)(a),onClick:function(){l(null),c(null),u(!1)}},o),{},{children:[(0,f.tZ)(p.Z,{name:"recycleAlt",width:16,height:16}),r]}))}));B.displayName="AdvancedSelect",M.displayName="AdvancedSelect.SelectTrigger",k.displayName="AdvancedSelect.SelectValue",N.displayName="AdvancedSelect.SelectContent",G.displayName="AdvancedSelect.SelectContentScroller",W.displayName="AdvancedSelect.SelectGroup",F.displayName="AdvancedSelect.SelectLabel",U.displayName="AdvancedSelect.SelectItem",q.displayName="AdvancedSelect.SelectClear",H.displayName="AdvancedSelect.SelectSeparator";var V={name:"1nbqis0-selectTrigger",styles:"cursor:not-allowed;opacity:0.5;label:selectTrigger;"},z={selectWrapper:{name:"1fekbq5-selectWrapper",styles:"width:100%;label:selectWrapper;"},selectTrigger:function(e,t){return(0,i.iv)(s.iZ.resetButton,";display:flex;align-items:center;justify-content:space-between;border:1px solid ",n.qo.stroke.neutral,";padding:",n.W0[6]," ",n.W0[12],";border-radius:",n.E0[6],";cursor:pointer;background-color:",n.qo.background.white,";width:100%;&>[data-arrow-open]{color:",n.qo.icon.default,";transition:transform 0.3s ease-in-out;}[data-arrow-open='true']{transform:rotate(180deg);}",e&&(0,i.iv)("box-shadow:",n.AF.outline,";;label:selectTrigger;")," ",t&&V,";;label:selectTrigger;")},selectValue:(0,i.iv)("width:100%;",o.c.body(),";color:",n.qo.text.default,";display:flex;align-items:center;gap:",n.W0[4],";",s.iZ.textEllipsis,";;label:selectValue;"),selectContent:(0,i.iv)("display:flex;flex-direction:column;width:100%;position:absolute;background-color:",n.qo.background.white,";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";box-shadow:",n.AF.popover,";padding-block:",n.W0[4],";;label:selectContent;"),scroller:{name:"1a271a5-scroller",styles:"max-height:calc(100vh - 100px);overflow-y:auto;label:scroller;"},selectLabel:(0,i.iv)("padding:",n.W0[4]," ",n.W0[8],";margin-block:",n.W0[4],";&>div{",o.c.body(),";color:",n.qo.text.hints,";display:flex;align-items:center;pointer-events:none;background-color:",n.qo.background.neutral,";border-radius:",n.E0[4],";gap:",n.W0[4],";padding:",n.W0[4]," ",n.W0[8],";};label:selectLabel;"),selectItem:function(e){return(0,i.iv)(s.iZ.resetButton,";padding:",n.W0[6]," ",n.W0[12],";width:100%;text-align:left;cursor:pointer;",o.c.body(),";color:",n.qo.text.default,";transition:background-color 0.3s ease-in-out,color 0.3s ease-in-out;position:relative;display:flex;align-items:center;gap:",n.W0[8],";",e&&(0,i.iv)("background-color:",n.qo.background.primary,";&::before{content:'';position:absolute;top:0;left:0;height:100%;width:2px;border-radius:0 ",n.E0[6]," ",n.E0[6]," 0;background-color:",n.qo.action.primary.default,";color:",n.qo.text.primary,";};label:selectItem;")," &:hover{background-color:",n.qo.background.primary,";color:",n.qo.text.primary,";}&:disabled{opacity:0.5;cursor:not-allowed;pointer-events:none;};label:selectItem;")},selectSeparator:(0,i.iv)("width:100%;height:1px;background-color:",n.qo.stroke.neutral,";;label:selectSeparator;"),selectClear:(0,i.iv)(s.iZ.resetButton,";",o.c.caption(),";display:flex;align-items:center;gap:",n.W0[8],";padding:",n.W0[8]," ",n.W0[12]," ",n.W0[4]," ",n.W0[12],";cursor:pointer;color:",n.qo.text.primary,";border-top:1px solid ",n.qo.stroke.neutral,";justify-content:center;&>svg{flex-shrink:0;}&:disabled{cursor:not-allowed;color:",n.qo.text.disabled,";};label:selectClear;")}},3871:(e,t,r)=>{"use strict";r.d(t,{Z:()=>v});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){h(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 h(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 v=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,h=e.loading,v=void 0!==h&&h,b=e.disabled,y=void 0!==b&&b,g=e.tabIndex,E=e.onClick,O=e.buttonCss,_=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,v,y),O,";label:Button;"],onClick:E,tabIndex:g,disabled:y},w),{},{children:[v&&!y&&(0,u.tZ)("span",{css:m.spinner,children:(0,u.tZ)(c.ZP,{})}),(0,u.BX)("span",{css:[m.buttonContent(!!l,v,y),_,";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.white,";;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(7602),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,h=e.onBlur,v=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:!!v,disabled:y,"aria-invalid":e["aria-invalid"],onChange:function(e){f&&f(!(!g||v)||e.target.checked,e)},onBlur:h,css:[c,d.checkbox({hasLabel:!!s,isIndeterminate:g,disabled:y,isChecked:!!v}),";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,h=e.loading,v=void 0!==h&&h,b=e.disabled,y=void 0!==b&&b,m=e.tabIndex,g=e.buttonCss,E=e.buttonContentCss,O=e.replace,_=void 0!==O&&O;return(0,c.BX)(a.rU,{css:[p.button(u,v,y),g,";label:LinkButton;"],tabIndex:m,to:t,target:n,rel:"_blank"===n?"noopener noreferrer nofollow":"",replace:_,relative:"path",children:[v&&!y&&(0,c.tZ)("span",{css:p.spinner,children:(0,c.tZ)(l.ZP,{})}),(0,c.BX)("span",{css:[p.buttonContent(!!s,v,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:()=>v,fz:()=>f,g4:()=>h});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,{})})},h=function(){return(0,l.tZ)("div",{css:d.loadingSection,children:(0,l.tZ)(p,{})})};const v=p},3579:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(824),o=r(4185),i=r(917),a=r(7602),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,h=e.iconWrapperCss,v=e.label,b=void 0===v?"":v,y=e.icon,m=e.value,g=e.onChange,E=e.onBlur,O=(0,a.x0)();return(0,c.BX)("label",{htmlFor:O,css:[s.container({disabled:l}),p,";label:Radio;"],children:[(0,c.tZ)("input",{ref:t,id:O,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:h,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:()=>s});var n=r(917),o=r(7602),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=["name","width","height","style","noFill"];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,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}const s=function(e){var t=e.name,r=e.width,n=void 0===r?16:r,a=e.height,s=void 0===a?16:a,d=e.style,f=e.noFill,h=void 0!==f&&f,v=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),b=(0,o.q7)(t);return(0,o.$K)(b)?(0,i.tZ)("svg",function(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){u(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}({css:[{width:n,height:s},p.svg(h),d,";label:SVGIcon;"],xmlns:"http://www.w3.org/2000/svg",viewBox:b.viewBox,dangerouslySetInnerHTML:{__html:b.icon}},v)):null};var d={name:"p5egc1-svg",styles:"fill:none;label:svg;"},p={svg:function(e){return(0,n.iv)(e&&d,";;label:svg;")}}},7870:(e,t,r)=>{"use strict";r.d(t,{Z:()=>O});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(7602),p=r(7294),f=r(3871),h=r(935),v=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 O=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,O=e.readOnly,_=e.isSearchable,w=void 0!==_&&_,C=e.isClearable,I=void 0===C||C,S=e.isInlineLabel,x=void 0!==S&&S,L=e.isFontWeight,A=void 0!==L&&L,T=e.value,D=e.caretSize,Z=void 0===D?20:D,R=e.infiniteScroll,j=void 0!==R&&R,B=e.wrapperStyle,M=e.inputCss,k=e.disabled,N=e.optionsStyleVariant,G=void 0===N?"regular":N,W=e.hasGroup,U=void 0!==W&&W,F=e.portalWidth,H=(0,u.$)(),q=(0,d.x0)(),V=m((0,p.useState)(""),2),z=V[0],X=V[1],$=m((0,p.useState)(""),2),K=$[0],Y=$[1],Q=m((0,p.useState)(!1),2),J=Q[0],ee=Q[1],te=m((0,p.useState)([]),2),re=te[0],ne=te[1],oe=(0,a.N)(K);(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:"";X(n)}),[t,T]);var ie=(0,p.useMemo)((function(){return ne([]),w?t.filter((function(e){return e.label.toLowerCase().startsWith(oe.toLowerCase())})):t}),[oe,w,t]),ae=(0,c.l)({isOpen:J,isDropdown:!0}),le=ae.triggerRef,ce=ae.triggerWidth,ue=ae.position,se=ae.popoverRef,de=(0,l.Z)(),pe=de.intersectionEntry,fe=de.intersectionElementRef,he=ie.length>re.length;return(0,p.useEffect)((function(){if(j){if(null!=pe&&pe.isIntersecting&&he){var e=re.length,t=e+20;ne((function(r){return[].concat(y(r),y(ie.slice(e,t)))}))}}else ne(ie)}),[ie,null==pe?void 0:pe.isIntersecting]),(0,b.BX)("div",{css:[P.mainWrapper,B,";label:Select;"],children:[(0,b.BX)("div",{css:P.inputLabelWrapper(x),ref:le,children:[!!s&&(0,b.tZ)("label",{htmlFor:q,css:P.label(x),children:s}),(0,b.BX)("div",{css:[P.inputWrapper,M,";label:Select;"],children:[(0,b.tZ)("input",{id:q,onClick:function(){return ee((function(e){return!e}))},onFocus:function(){return ee(!0)},css:P.input({isSearchable:w}),autoComplete:"off",readOnly:O||!w,placeholder:E,value:z,onChange:function(e){X(e.target.value),Y(e.target.value)},disabled:k}),(0,b.tZ)("button",{type:"button",css:P.caretButton,onClick:function(){ee((function(e){return!e}))},disabled:k||O||0===t.length,children:(0,b.tZ)(v.Z,{name:"chevronDown",width:Z,height:Z,style:P.toggleIcon({isOpen:J})})})]})]}),(0,b.tZ)(c.h,{isOpen:J,onClickOutside:function(){return ee(!1)},children:(0,b.BX)("div",{css:[P.optionsWrapper,{left:ue.left,top:ue.top,maxWidth:(0,d.$K)(F)?F:ce},";label:Select;"],ref:se,children:[(0,b.BX)("ul",{css:P.options,children:[re.map((function(e){return(0,b.tZ)("li",{css:P.optionItem({isSelected:e.value===(null==T?void 0:T.value),optionsStyleVariant:G,isDisabled:!!e.disabled,hasGroup:U,variant:e.variant}),children:(0,b.tZ)(f.Z,{variant:"text",buttonCss:P.optionButton({fontWeight:A?e.value:"inherit"}),onClick:function(){X(e.label),Y(""),n(e),ee(!1)},children:e.label})},String(e.value))})),(0,b.tZ)("div",{ref:fe,css:P.spinnerWrapper({isVisible:he}),children:(0,b.tZ)(h.ZP,{})})]}),I&&(0,b.tZ)("div",{css:P.clearButton({isDisabled:""===z}),children:(0,b.tZ)(f.Z,{variant:"text",disabled:""===z,icon:(0,b.tZ)(v.Z,{name:"recycleAlt"}),onClick:function(){i(),X(""),Y(""),ee(!1)},children:H("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})]})};var _={name:"9jddly-spinnerWrapper",styles:"display:none;label:spinnerWrapper;"},w={name:"omed8-toggleGroup",styles:"transform:rotate(90deg);label:toggleGroup;"},C={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},I={name:"zjfq51-input",styles:"cursor:pointer;label:input;"},S={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;"},P={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&&S,";;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&&I," :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,s=e.hasGroup,d=void 0!==s&&s,p=e.variant,f=void 0===p?"regular":p;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;","critical"===f&&(0,i.iv)(">button>span{color:",n.qo.text.error,";};label:optionItem;")," ",l&&(0,i.iv)("pointer-events:none;>button{",o.c.body("bold"),";color:",d?n.qo.text.default: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,";text-align:left;;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&&C,";;label:toggleIcon;")},toggleGroup: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:toggleGroup;")},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&&_,";;label:spinnerWrapper;")}}},9313:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n,o=r(824),i=r(917),a=r(7602),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;")}}},5785:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(3579),o=r(7264),i=r(824),a=r(4185),l=r(917),c=r(1954),u=r(1921),s=r(7602),d=r(7294),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}const h=function(e){var t,r,i=e.value,a=e.options,l=e.onChange,u=void 0===l?s.ZT:l,h=e.label,v=e.disabled,b=(t=(0,d.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=b[0],E=b[1],O=(0,c.l)({isOpen:g,isDropdown:!0}),_=O.triggerRef,w=O.triggerWidth,C=O.position,I=O.popoverRef,S=a.find((function(e){return e.value===i})),x={0:"unpublished",1:"published","-2":"trashed"};if(!(0,s.$K)(i)||(0,s.$K)(i)&&!(i in x))return null;var P=m[x[i]];return(0,p.BX)("div",{css:y.mainWrapper,children:[!!h&&(0,p.tZ)("div",{children:h}),(0,p.BX)("button",{type:"button",css:y.dropDownLabel({statusVariant:P,isOpen:g,isDisabled:v||!a.length}),onClick:function(){return E(!0)},ref:_,disabled:v,children:[(0,p.BX)("div",{children:[P.leftIcon,(0,p.tZ)("span",{children:(null==S?void 0:S.label)||""})]}),(0,p.tZ)(o.Z,{name:"chevronDown",width:12,height:8})]}),(0,p.tZ)(c.h,{isOpen:g,onClickOutside:function(){return E(!1)},children:(0,p.tZ)("div",{css:[y.optionsWrapper,{left:C.left,top:C.top,maxWidth:w},";label:StatusSelect;"],ref:I,children:(0,p.tZ)("ul",{css:y.options,children:a.map((function(e){return(0,p.tZ)("li",{css:y.optionItem({isSelected:i===e.value}),children:(0,p.tZ)(n.Z,{label:e.label,checked:i===e.value,onChange:function(){E(!1),u(e)},labelCss:y.radioLabel,disabled:e.disabled})},e.value)}))})})})]})};var v={name:"1f3qfry-dropDownLabel",styles:"pointer-events:none;label:dropDownLabel;"},b={name:"i3yy6i-dropDownLabel",styles:"transform:rotate(180deg);label:dropDownLabel;"},y={mainWrapper:{name:"e9i770-mainWrapper",styles:"width:100%;label:mainWrapper;"},dropDownLabel:function(e){var t=e.statusVariant,r=e.isOpen,n=void 0!==r&&r,o=e.isDisabled,a=void 0!==o&&o;return(0,l.iv)(u.iZ.resetButton," width:124px;display:flex;justify-content:space-between;align-items:center;border-radius:42px;height:24px;padding:0 ",i.W0[8]," 0 ",i.W0[6],";border:1px solid ",t.borderColor,";background-color:",t.backgroundColor,";position:relative;div{display:flex;gap:",i.W0[4],";align-items:center;span{color:",t.color,";}svg{height:16px;width:16px;color:",t.leftIconColor,";transform:none;}}& svg{width:12px;height:8px;color:",t.rightIconColor,";transition:transform 0.3s ease-in-out;",n&&b," ",a&&v,";}",a&&(0,l.iv)("background-color:",i.qo.background.disabled,";border:1px solid ",i.qo.stroke.disabled,";div{span{color:",i.qo.text.disabled,";}svg{color:",i.qo.icon.disabled,";}};label:dropDownLabel;"),";;label:dropDownLabel;")},optionsWrapper:{name:"1cmtbh-optionsWrapper",styles:"position:absolute;min-width:170px;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;overflow-y:auto;border-radius:",i.E0[6],";::-webkit-scrollbar{background-color:",i.qo.base.white,";width:10px;}::-webkit-scrollbar-thumb{background-color:",i.qo.base.secondary,";border-radius:",i.E0[6],";};label:options;"),optionItem:function(e){var t=e.isSelected;return(0,l.iv)(a.c.body(),";min-height:40px;transition:background-color 0.3s ease-in-out;:hover{background-color:",i.qo.background.hover,";}",t&&(0,l.iv)("background-color:",i.qo.background.active,";;label:optionItem;"),";;label:optionItem;")},radioLabel:(0,l.iv)("line-height:40px;padding-left:",i.W0[12],";;label:radioLabel;")},m={published:{backgroundColor:i.qo.background.success,borderColor:i.qo.stroke.success,color:i.qo.base.success,leftIconColor:i.qo.base.success,rightIconColor:i.qo.icon.success,leftIcon:(0,p.tZ)(o.Z,{name:"markCircle",width:16,height:16})},unpublished:{backgroundColor:i.qo.background.neutral,borderColor:i.qo.stroke.neutral,color:i.qo.text.neutral,leftIconColor:i.qo.icon.hints,rightIconColor:i.qo.icon.default,leftIcon:(0,p.tZ)(o.Z,{name:"circleCross",width:16,height:16})},trashed:{backgroundColor:i.qo.background.danger,borderColor:i.qo.stroke.danger,color:i.qo.text.error,leftIconColor:i.qo.icon.error,rightIconColor:i.qo.icon.error,leftIcon:(0,p.tZ)(o.Z,{name:"crossCircle",width:16,height:16})}}},5791:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(824),o=r(917),i=r(7273),a=r(7602),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,v=e.readOnly,b=e.placeholder,y=e.onChange,m=e.onBlur,g=e.onKeyDown,E=e.onFocus,O=e.isClearable,_=e.handleMediaIconClick,w=e.variant,C=void 0===w?"regular":w,I=e.focusOnMount,S=void 0!==I&&I,x=e.inputCss,P=e.helperText,L=e.isRequired,A=void 0!==L&&L,T=(0,s.useId)(),D=(0,c.$)(),Z=(0,s.useRef)(null);(0,s.useEffect)((function(){S&&Z.current&&Z.current.focus()}),[S]);var R=(0,p.BX)("div",{css:h.requiredLabel,children:[t,(0,p.tZ)(o.Z,{name:"asterisk",height:4,width:4,style:h.required})]});return(0,p.BX)("div",{css:h.inputContainer(r),children:[!!t&&(P?(0,p.tZ)(d.Z,{content:D(P),isVisibleOnClick:!0,children:(0,p.tZ)("label",{htmlFor:T,css:h.label(r),children:D(t)})}):(0,p.tZ)("label",{htmlFor:T,css:h.label(r),children:A?R:t})),(0,p.BX)("div",{css:h.inputWrapper,children:[(0,p.tZ)("input",{ref:Z,id:T,type:"text",css:[h.input(C),x,";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:v,disabled:f,autoComplete:"off"}),"search"===C&&(0,p.tZ)("span",{css:h.searchIcon,children:(0,p.tZ)(o.Z,{name:"search",width:20,height:20})}),O&&!!l&&(0,p.tZ)("div",{css:h.rightIconButton,children:(0,p.tZ)(n.Z,{variant:"text",onClick:function(){return y("")},children:(0,p.tZ)(o.Z,{name:"cross"})})}),!!_&&"search"!==C&&!l&&(0,p.tZ)("div",{css:h.rightIconButton,children:(0,p.tZ)(n.Z,{variant:"text",onClick:_,children:(0,p.tZ)(o.Z,{name:"upload"})})})]})]})};var h={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;"),requiredLabel:(0,l.iv)("display:flex;gap:",i.W0[2],";;label:requiredLabel;"),required:(0,l.iv)("color:",i.qo.text.error,";margin-top:",i.W0[4],";transform:scale(1.3);;label:required;")}},1731:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_,p:()=>O});var n=r(824),o=r(4185),i=r(917),a=r(7038),l=r(8144),c=r(7602),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 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 v(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){b(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 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}),O=function(){return(0,u.useContext)(E)};const _=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.")}()),h=f[0],b=f[1],O=(0,l.Yz)(h,{from:{opacity:0,y:-40},enter:{opacity:1,y:0},leave:{opacity:.5,y:100},config:{duration:300}}),_=(0,u.useCallback)((function(e){var t,r=v(v(v({},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:_},children:[n,(0,p.tZ)("div",{css:w.toastWrapper(i),children:O((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:()=>O});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 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 v(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){b(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 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 O=function(e){var t=e.children,r=e.content,o=e.allowHTML,i=e.isVisibleOnClick,f=e.isInteractive,h=void 0===f||f,b=e.isVisibleOnHover,m=void 0!==b&&b,O=e.placement,_=void 0===O?"top-start":O,C=e.disabled,I=void 0!==C&&C,S=e.reference,x=void 0===S?null:S,P=y((0,l.q_)((function(){return g})),2),L=P[0],A=P[1],T=y((0,s.useState)(!1),2),D=T[0],Z=T[1],R=i||m;return(0,p.tZ)(c.ZP,{render:function(e){var t;return(0,p.tZ)(a.XJ,v(v({style:L},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:R?D:void 0,animation:!0,onMount:function(){A.start({opacity:1,transform:"scale(1)",config:E})},onHide:function(e){var t=e.unmount;A.start(v(v({},g),{},{onRest:t,config:v(v({},E),{},{clamp:!0})}))},allowHTML:o,delay:[0,100],placement:_,interactive:h,onClickOutside:function(){return Z(!1)},disabled:I,reference:x,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 _={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;display:flex;align-items:center;gap:",n.W0[4],";;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&&_," 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}}},2847:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(7264),o=r(824),i=r(917),a=r(7294),l=r(5944);const c=a.forwardRef((function(e,t){var r=e.className;return(0,l.BX)("div",{ref:t,css:u.wrapper,className:r,"data-pro-badge":!0,children:[(0,l.tZ)("div",{css:u.icon,children:(0,l.tZ)(n.Z,{name:"star",width:10,height:10})}),(0,l.tZ)("span",{css:u.label,"data-pro-label":!0,children:"Pro"})]})}));var u={wrapper:(0,i.iv)("display:inline-flex;align-items:center;gap:",o.W0[4],";background:linear-gradient(88.9deg, #d65702 6.26%, #e5803c 91.4%);border-radius:16px;height:16px;padding-right:",o.W0[4],";;label:wrapper;"),icon:(0,i.iv)("width:16px;height:16px;background:",o.qo.background.proLabel,";display:flex;align-items:center;justify-content:center;border-radius:",o.E0.circle,";svg{color:",o.qo.text.white,"!important;};label:icon;"),label:(0,i.iv)("&[data-pro-label]:first-of-type{font-size:",o.JB[10],"!important;line-height:",o.Nv[16],"!important;font-family:",o.I8.sansSerif,"!important;font-weight:",o.Ue.medium,"!important;color:",o.qo.text.white,"!important;};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:()=>u});var n=r(7264),o=r(824),i=r(4185),a=r(917),l=r(1921),c=r(5944);const u=function(e){var t=e.routes,r=e.onFilterChange;return(0,c.tZ)("div",{css:s.wrapper,children:t.map((function(e,o){var i=o===t.length-1;return(0,c.BX)("div",{css:s.item,children:[e.link?(0,c.tZ)("button",{css:s.button,onClick:function(){return!!e.link&&r&&r(e.link)},children:e.text}):(0,c.tZ)("span",{children:e.text}),!i&&(0,c.tZ)(n.Z,{name:"angleRight",width:9,height:10})]},o)}))})};var s={wrapper:(0,a.iv)("display:flex;align-items:center;gap:",o.W0[10],";color:",o.qo.text.neutral,";;label:wrapper;"),item:(0,a.iv)("display:flex;align-items:center;gap:",o.W0[8],";&>:is(button, span){",l.iZ.resetButton,";",i.c.body("medium"),";color:inherit;text-decoration:none;",l.iZ.textEllipsis,";&:last-child{font-weight:",o.Ue.regular,";}};label:item;"),button:(0,a.iv)(l.iZ.resetButton,";;label:button;")}},765:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});var n=r(3896),o=r(7602),i=r(4999),a=function(){var e=(0,n.o)((function(e){return e.page}));return{getDynamicContentCollectionItemAddon:function(t){var r=t.sectionIndex,n=t.columnIndex,a=t.addon;return function(e,t){var r,n=t.columnIndex,a=t.addon,l=e[t.sectionIndex],c=(0,o.$K)(l)?l.columns[n]:null,u=null!==(r=null==c?void 0:c.addons)&&void 0!==r?r:[];if(!(0,o.$K)(a))return null;var s=(0,i.k3)(u,a);return(0,o.$K)(s)?(0,i.MI)(s,a):null}(e,{sectionIndex:r,columnIndex:n,addon:a})}}}},4999:(e,t,r)=>{"use strict";r.d(t,{Kt:()=>v,Lf:()=>a,Ln:()=>d,MI:()=>u,Ow:()=>c,X2:()=>s,ez:()=>h,j$:()=>p,k3:()=>l,oY:()=>f}),r(7602);var n=r(653);function o(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 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&&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 a,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,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(c)throw a}}}}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,r,o,i,a,l){var c,u,s,d;if(t.id===r.id)return(0,n.Lx)(t.name)||"div"===t.name?(null!==(u=t.child_nodes)&&void 0!==u||(t.child_nodes=[]),r.isEmptyState?t.child_nodes.push(o):(null!==(s=i.child_nodes)&&void 0!==s||(i.child_nodes=[]),i.child_nodes.splice(l?a:a+1,0,o))):(null!==(d=i.child_nodes)&&void 0!==d||(i.child_nodes=[]),i.child_nodes.splice(l?a:a+1,0,o)),!0;if(null!==(c=t.child_nodes)&&void 0!==c&&c.length)for(var p=0;p<t.child_nodes.length;p++)if(e(t.child_nodes[p],r,o,t,p,l))return!0;return!1},l=function(e,t){var r,n=function e(t,r){var n,i=o(t);try{for(i.s();!(n=i.n()).done;){var a,l=n.value;if(l.id===r.id)return!0;if(null!=l&&null!==(a=l.child_nodes)&&void 0!==a&&a.length&&e(l.child_nodes,r))return!0}}catch(e){i.e(e)}finally{i.f()}return!1},i=o(e);try{for(i.s();!(r=i.n()).done;){var a,l=r.value;if(l.id===t.id)return l;if(null!=l&&null!==(a=l.child_nodes)&&void 0!==a&&a.length&&n(l.child_nodes,t))return l}}catch(e){i.e(e)}finally{i.f()}return null},c=function e(t,r){var n;if(!t)return null;var i,a=null!==(n=t.child_nodes)&&void 0!==n&&n.length?t.child_nodes:[],l=o(a);try{for(l.s();!(i=l.n()).done;)if(i.value.id===r.id)return t}catch(e){l.e(e)}finally{l.f()}var c,u=o(a);try{for(u.s();!(c=u.n()).done;){var s=e(c.value,r);if(s)return s}}catch(e){u.e(e)}finally{u.f()}return null},u=function e(t,r){var n;if(!t)return null;if(t.id===r.id)return t;var i,a=null!==(n=t.child_nodes)&&void 0!==n&&n.length?t.child_nodes:[],l=o(a);try{for(l.s();!(i=l.n()).done;){var c=i.value;if(c.id===r.id)return c}}catch(e){l.e(e)}finally{l.f()}var u,s=o(a);try{for(s.s();!(u=s.n()).done;){var d=e(u.value,r);if(d)return d}}catch(e){s.e(e)}finally{s.f()}return null},s=function e(t,r){var n;if(!t)return!1;if(r(t))return!0;if(null!==(n=t.child_nodes)&&void 0!==n&&n.length){var i,a=o(t.child_nodes);try{for(a.s();!(i=a.n()).done;)if(e(i.value,r))return!0}catch(e){a.e(e)}finally{a.f()}}return!1},d=function e(t,r){return t.map((function(t){var n;return t.id===r.id?null:(null!==(n=t.child_nodes)&&void 0!==n&&n.length&&(t.child_nodes=e(t.child_nodes,r)),t)})).filter((function(e){return null!==e}))},p=function e(t,r){var n,i=o(t);try{for(i.s();!(n=i.n()).done;){var a,l=n.value;r(l),null!==(a=l.child_nodes)&&void 0!==a&&a.length&&e(l.child_nodes,r)}}catch(e){i.e(e)}finally{i.f()}},f=function e(t,r){var n;if(r(t),null!==(n=t.child_nodes)&&void 0!==n&&n.length){var i,a=o(t.child_nodes);try{for(a.s();!(i=a.n()).done;)e(i.value,r)}catch(e){a.e(e)}finally{a.f()}}},h=function e(t,r,n,i,a){if(null==t||!t.length)return!1;var l,c,u=t.findIndex((function(e){return e.id===r.id}));if(-1!==u)return a?(null!==(c=(l=t[u]).child_nodes)&&void 0!==c||(l.child_nodes=[]),t[u].child_nodes.push(n)):t.splice(i?u:u+1,0,n),!0;var s,d=o(t);try{for(d.s();!(s=d.n()).done;){var p,f=s.value;if(null!==(p=f.child_nodes)&&void 0!==p&&p.length&&e(f.child_nodes,r,n,i,a))return!0}}catch(e){d.e(e)}finally{d.f()}return!1},v=function(e,t){var r,i=o(e);try{for(i.s();!(r=i.n()).done;){var a=l(r.value,t,null);if(a)return a}}catch(e){i.e(e)}finally{i.f()}function l(e,t,r){var i;if(e.id===t.id)return r;if(null!==(i=e.child_nodes)&&void 0!==i&&i.length){var a,c=o(e.child_nodes);try{for(c.s();!(a=c.n()).done;){var u=l(a.value,t,(0,n.Lx)(e.name)?e:r);if(u)return u}}catch(e){c.e(e)}finally{c.f()}}return null}return null}},653:(e,t,r)=>{"use strict";r.d(t,{CN:()=>f,Kr:()=>p,rm:()=>h,Lx:()=>y,dW:()=>m,N3:()=>b,es:()=>v});var n=r(3106),o={dynamicContentCollection:"dynamic_content_collection",dynamicContentText:"dynamic_content_text",dynamicContentImage:"dynamic_content_image"},i=r(3896),a=r(6216),l=r(7602),c=r(4999);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,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 p=["title","alias","video","gallery"],f=["alias","video","gallery"],h=function(e){var t,r=(0,a.fp)(n.dR.TABLE_COLUMNS_COLLECTION_LOCAL_STORAGE_KEY,"-".concat(e));return r&&null!==(t=(0,l.Rx)(r))&&void 0!==t?t:{}},v=function(e,t){return(0,a.pj)(n.dR.TABLE_COLUMNS_COLLECTION_LOCAL_STORAGE_KEY,JSON.stringify(t),"-".concat(e)),t},b=function(e,t){var r=function(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){d(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}({},e);for(var n in e)t.includes(n)?r[n]=!0:r[n]=!1;return r},y=function(e){return[o.dynamicContentCollection].includes(e)},m=function(e,t,r){var n,a,l,u=null!==(n=null===(a=i.o.getState().page[t])||void 0===a||null===(l=a.columns[r])||void 0===l?void 0:l.addons)&&void 0!==n?n:[],s=(0,c.k3)(u,e);return"div"===e.name&&!!s&&(0,c.X2)(s,(function(e){return e.name===o.dynamicContentCollection}))}},3:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});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 h=function(e){var t,r,n=e.value,o=e.onChange,h=(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.")}()),v=h[0],b=h[1],y=(0,i.N)(v),m=(0,a.D)(n),g=(0,l.F)((function(e){return e.payload})),E=g.addonIndex,O=g.sectionIndex,_=g.columnIndex,w=g.tableItem,C=(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,C]),(0,s.useEffect)((function(){o(y)}),[y]),(0,d.tZ)(u.ZP,{theme:f,value:v,onChange:b})}},2066:(e,t,r)=>{"use strict";r.d(t,{d:()=>S,Z:()=>x});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 h(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 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,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,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=h((0,d.useState)(n),2),v=u[0],b=u[1],m=h((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:v,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(v),t({action:"CLOSE"})},disabled:v===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(1709),g=r(3106),E=r(4185),O=r(1954),_=r(1921),w=r(7602);function C(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 S=function(e){var t=e.device,r=e.onChangeResponsiveDevice,o=(0,s.$)(),i=C((0,d.useState)(!1),2),a=i[0],l=i[1],c=(0,O.l)({isOpen:a,isDropdown:!0}),u=c.triggerRef,p=c.position,h=c.popoverRef;return(0,f.BX)(f.HY,{children:[(0,f.BX)("button",{ref:u,onClick:function(){return l(!a)},css:A.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:A.arrowUpDownWrapper,children:(0,f.tZ)(n.Z,{name:"chevronDown",width:15,height:15,style:A.toggleIcon({isOpen:a})})})]}),(0,f.tZ)(O.h,{isOpen:a,onClickOutside:function(){l(!1)},children:(0,f.tZ)("div",{css:A.verticalDevicesContainer({left:p.left,top:p.top}),ref:h,children:(0,w.Zt)(g.Ak).map((function(e){return(0,f.BX)("button",{type:"button",css:A.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 x=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,h=e.label,v=e.isInlineLabel,y=void 0!==v&&v,E=e.variant,O=e.placeholder,_=e.responsive,I=void 0!==_&&_,x=e.helpText,P=e.isCombineType,L=void 0!==P&&P,T=e.adjustSpacing,D=void 0!==T&&T,Z=e.customWrapperCss,R=void 0===Z?null:Z,j=e.onCodeEditorChange,B=e.hideErrorMessage,M=void 0!==B&&B,k=e.required,N=void 0!==k&&k,G=e.headerElement,W=(0,s.$)(),U=(0,w.x0)(),F=C((0,d.useState)(g.zu),2),H=F[0],q=F[1],V=(0,m.d)().showModal;return(0,f.tZ)("div",{css:R?[A.container(c,D),R]:A.container(c,D),children:(0,f.BX)("div",{css:A.inputContainer(y),children:[(I||!!h)&&(0,f.BX)("div",{css:A.contentContainer({isCombineType:L}),children:[!!h&&(0,f.tZ)("label",{htmlFor:U,css:A.label(y),children:x?(0,f.tZ)("div",{css:A.labelInner,children:(0,f.BX)(o.Z,{content:x,allowHTML:!0,isVisibleOnClick:!0,children:[h,N&&(0,f.tZ)("span",{css:A.required,children:W("COM_SPPAGEBUILDER_EDITOR_FIELD_LABEL_REQUIRED")})]})}):(0,f.BX)("div",{css:A.labelInner,children:[h,N&&(0,f.tZ)("span",{css:A.required,children:W("COM_SPPAGEBUILDER_EDITOR_FIELD_LABEL_REQUIRED")})]})}),G&&G,I?(0,f.tZ)(S,{device:H,onChangeResponsiveDevice:function(e){return q(e)}}):null,j&&(0,f.tZ)("div",{css:A.codeEditorWrapper,children:(0,f.tZ)(o.Z,{content:W("COM_SPPAGEBUILDER_EDITOR_CODE_EDITOR_EXPAND"),placement:"top",isVisibleOnHover:!0,children:(0,f.tZ)("button",{type:"button",css:A.buttonCss(),onClick:function(){V({component:b,props:{title:h||W("COM_SPPAGEBUILDER_EDITOR_CODE_EDITOR"),value:String(r.value),onChange:j}})},children:(0,f.tZ)(n.Z,{name:"editorExpand"})})})})]}),(0,f.tZ)("div",{css:A.inputAndHelpText,children:a({attributes:{id:U,name:r.name,css:[A.input({variant:E,hasFieldError:!!i.error,readOnly:p})],"aria-invalid":i.error?"true":"false",disabled:c,readOnly:p,placeholder:O,required:N},data:{responsive:I,device:H}})}),!M&&(null===(t=i.error)||void 0===t?void 0:t.message)&&(0,f.tZ)("p",{css:A.errorLabel(!!i.error),children:i.error.message})]})})};var P={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},L={name:"dkvrjs-container",styles:"opacity:0.5;label:container;"},A={labelInner:(0,u.iv)("display:flex;align-items:center;gap:",c.W0[4],";;label:labelInner;"),required:(0,u.iv)(E.c.caption(),";color:",c.qo.text.hints,";;label:required;"),container:function(e,t){return(0,u.iv)("display:flex;flex-direction:column;position:relative;background:inherit;",e&&L," ",t&&(0,u.iv)("margin-top:",c.W0[8],";;label:container;"),";;label:container;")},selectedDevice:(0,u.iv)(_.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)(_.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)(_.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:()=>L});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;")},h=r(1954),v=r(1234),b=r(7273),y=r(7602),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 O=["css"];function _(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)||x(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 C(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 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)||x(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 x(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 L=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,x=e.isSearchable,P=void 0!==x&&x,L=e.isInlineLabel,A=e.hideCaret,D=e.listLabel,Z=e.isClearable,R=void 0===Z||Z,j=e.responsive,B=e.responsiveOrientation,M=e.showArrowUpDown,k=void 0!==M&&M,N=e.helpText,G=e.showChips,W=void 0===G||G,U=e.hideSelectNumbers,F=void 0!==U&&U,H=e.hasAllCategory,q=void 0!==H&&H,V=e.isAccessLevelField,z=void 0!==V&&V,X=e.customInputCss,$=void 0===X?null:X,K=e.customWrapperCss,Y=void 0===K?null:K,Q=e.portalTopOffset,J=void 0===Q?0:Q,ee=e.portalLeftOffset,te=void 0===ee?0:ee,re=e.arrowSize,ne=void 0===re?12:re,oe=e.required,ie=void 0!==oe&&oe,ae=(0,v.$)(),le=(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]),ce=(0,m.useMemo)((function(){return P?"":F||0===le.length?f:ae("COM_SPPAGEBUILDER_EDITOR_N_OPTIONS_SELECTED",{count:le.length})}),[le,ae,f,F,P]),ue=S((0,m.useState)(ce),2),se=ue[0],de=ue[1],pe=S((0,m.useState)(""),2),fe=pe[0],he=pe[1],ve=S((0,m.useState)(!1),2),be=ve[0],ye=ve[1],me=q&&le.some((function(e){return""===(0,b.BB)(e)})),ge=(0,m.useMemo)((function(){var e=le.map((function(e){return(0,b.BB)(e)}));return t.filter((function(t){return e.includes((0,b.BB)(t.value))}))}),[le,t]);(0,m.useEffect)((function(){de(ce)}),[ce]);var Ee=(0,m.useMemo)((function(){return P?t.filter((function(e){return e.label.toLowerCase().startsWith(fe.toLowerCase())})):t}),[fe,P,t]),Oe=(0,h.l)({isOpen:be,isDropdown:!0}),_e=Oe.triggerRef,we=Oe.triggerWidth,Ce=Oe.position,Ie=Oe.popoverRef;return(0,d.tZ)(g.Z,{fieldState:i,field:r,label:c,disabled:E||0===t.length,readOnly:w,loading:I,isInlineLabel:L,responsive:j,responsiveOrientation:B,helpText:N,customWrapperCss:Y,required:ie,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,O);return(0,d.BX)("div",{css:T.mainWrapper,children:[(0,d.BX)("div",{css:T.inputWrapper,ref:_e,children:[(0,d.tZ)("input",C(C({},c),{},{onClick:function(){return ye((function(e){return!e}))},css:null!==$?$:[a,T.input],autoComplete:"off",readOnly:w||!P,placeholder:f,value:null!=se?se:"",onChange:function(e){de(e.target.value),he(e.target.value)}})),!A&&(0,d.tZ)("button",{type:"button",css:T.caretButton,onClick:function(){ye((function(e){return!e}))},disabled:w||0===t.length,children:k?(0,d.tZ)(s.Z,{name:"arrowUpDown",width:ne,height:ne,style:T.arrowUpDown}):(0,d.tZ)(s.Z,{name:"chevronDown",width:ne,height:ne,style:T.toggleIcon({isOpen:be})})})]}),W&&ge.length>0&&(0,d.tZ)("div",{css:T.chipsWrapper,children:ge.map((function(e,t){return(0,d.tZ)(p,{label:e.label,onClick:function(){var t=le.filter((function(t){return(0,b.BB)(t)!==(0,b.BB)(e.value)}));r.onChange(t)}},t)}))}),(0,d.tZ)(h.h,{isOpen:be,onClickOutside:function(){return ye(!1)},children:(0,d.tZ)("div",{css:[T.optionsWrapper,{left:Ce.left-te,top:Ce.top-J,maxWidth:we},";label:MultiSelectField;"],ref:Ie,children:(0,d.BX)("ul",{css:[T.options,";label:MultiSelectField;"],children:[!!D&&(0,d.tZ)("li",{css:T.listLabel,children:D}),Ee.map((function(e,i){var a=le.some((function(t){return(0,b.BB)(t)===(0,b.BB)(e.value)})),c=(0,b.BB)(e.value);return(0,d.BX)("li",{css:T.optionItem,children:[(0,d.tZ)(o.Z,{checked:a,disabled:me&&""!==(0,b.BB)(e.value),onChange:function(){if(q&&""===c)a?r.onChange([]):r.onChange([e.value]);else{var t=a?le.filter((function(t){return(0,b.BB)(t)!==(0,b.BB)(e.value)})):[].concat(_(le),[e.value]);r.onChange(t)}}}),(0,d.tZ)(n.Z,{variant:"text",buttonCss:T.label,disabled:me&&""!==e.value,onClick:function(){if(q&&""===c)return a?r.onChange([]):r.onChange([e.value]),he(""),void de(ce);var n=a?le.filter((function(t){return(0,b.BB)(t)!==(0,b.BB)(e.value)})):[].concat(_(le),[e.value]);r.onChange(n),de(ce),he(""),l(t.filter((function(e){return n.includes(e.value)})))},children:e.label})]},i)})),R&&(0,d.tZ)("div",{css:T.clearButton({isDisabled:0===ge.length}),children:(0,d.tZ)(n.Z,{variant:"text",disabled:0===ge.length,icon:(0,d.tZ)(s.Z,{name:"recycleAlt"}),onClick:function(){r.onChange([]),he(""),ye(!1)},children:ae("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})})]})}})};var A={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&&A,";;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(7602),h=r(7294),v=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 O(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){_(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 _(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,S=e.helpText,x=e.onChange,P=e.min,L=e.max,A=e.step,T=void 0===A?1:A,D=e.info,Z=e.hasUnit,R=void 0!==Z&&Z,j=e.responsive,B=e.responsiveOrientation,M=e.staticUnit,k=e.isInline,N=void 0!==k&&k,G=e.customUnitOptions,W=void 0===G?null:G,U=e.defaultUnit,F=void 0===U?"px":U,H=e.noRangeInput,q=void 0!==H&&H,V=e.inputCss,z=e.unitInputStyles,X=e.disableTextField,$=void 0!==X&&X,K=(0,h.useRef)("xl"),Y=g.value,Q={xl:"",lg:"",md:"",sm:"",xs:"",unit:F||"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"};R&&(Y=(0,f.$K)(g.value)?O(O({},Q),g.value):Q);var ee=m((0,h.useState)(Y),2),te=ee[0],re=ee[1],ne=m((0,h.useState)(J),2),oe=ne[0],ie=ne[1],ae=(0,l.N)(te);(0,h.useEffect)((function(){re(Y)}),[(0,p.o5)(Y,K.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,h.useEffect)((function(){re(Y)}),[ce,ue,se,de,pe]),(0,h.useEffect)((function(){q&&R||(g.onChange(ae),x&&x(ae))}),[ae]),(0,b.tZ)(v.Z,{label:y,field:g,fieldState:E,disabled:w,loading:I,helpText:S,responsive:j,responsiveOrientation:B,isInlineLabel:N,children:function(e){var t=e.attributes,r=e.data,i=r.device,a=r.responsive;K.current=i;var l=(0,p.jv)((0,p.o5)(te,i,!R)),s=(0,p.jv)((0,p.o5)(te,i,!R));if(q&&R)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:V,unitInputStyles:z,disableTextField:$});if(R){var d=te;return(0,b.BX)("div",{css:C.rangeWithUnitWrapper,children:[(0,b.tZ)(n.Z,{value:(0,p.He)(s),onChange:function(e){var t=O(O({},d),{},_({},i,M?"".concat(e).concat(M):e));re(t)},min:null!=P?P:o.a7.min,max:null!=L?L: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=O(O({},d),{},(_(r={},i,M?"".concat(null!==(t=e.value)&&void 0!==t?t:"").concat(M):e.value),_(r,"unit",e.unit),r));re(n)},staticUnit:M,customUnitOptions:W,inputCss:V,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:L,step:T,disabled:t.disabled,inputContent:D,isInlineLabel:N})}})};var C={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),h=r(7602),v=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 O(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){_(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 _(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 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,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){(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?h.ZT:l,f=e.label,m=e.placeholder,E=void 0===m?"":m,_=e.disabled,C=e.readOnly,I=e.loading,S=e.isSearchable,x=void 0!==S&&S,L=e.isInlineLabel,A=e.hideCaret,T=e.listLabel,D=e.isClearable,Z=void 0===D||D,R=e.responsive,j=e.responsiveOrientation,B=e.showArrowUpDown,M=void 0!==B&&B,k=e.helpText,N=e.removeOptionsMinWidth,G=void 0!==N&&N,W=e.defaultValue,U=void 0===W?null:W,F=e.required,H=void 0!==F&&F,q=(0,d.$)(),V=(0,v.useRef)(i.zu),z=(0,s.D)(V.current),X=(0,v.useCallback)((function(){var e,n,o=(0,p.o5)(null!==(e=r.value)&&void 0!==e?e:U,V.current);return(null===(n=t.find((function(e){return String(e.value)===o})))||void 0===n?void 0:n.label)||""}),[t,r.value,U]),$=w((0,v.useState)(X),2),K=$[0],Y=$[1],Q=w((0,v.useState)(""),2),J=Q[0],ee=Q[1],te=w((0,v.useState)(!1),2),re=te[0],ne=te[1],oe=(0,v.useMemo)((function(){return x?t.filter((function(e){return e.label.toLowerCase().startsWith(J.toLowerCase())})):t}),[J,x,t]),ie=(0,u.l)({isOpen:re,isDropdown:!0}),ae=ie.triggerRef,le=ie.triggerWidth,ce=ie.position,ue=ie.popoverRef;return(0,v.useEffect)((function(){Y(X)}),[r.value,X]),(0,v.useEffect)((function(){re&&Y(X)}),[X,re]),(0,y.tZ)(b.Z,{fieldState:a,field:r,label:f,disabled:_||0===t.length,readOnly:C,loading:I,isInlineLabel:L,responsive:R,responsiveOrientation:j,helpText:k,required:H,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 V.current=f,(0,y.BX)("div",{css:P.mainWrapper,children:[(0,y.BX)("div",{css:P.inputWrapper,ref:ae,children:[(0,y.tZ)("input",O(O({},s),{},{onClick:function(){return ne((function(e){return!e}))},css:[l,P.input,";label:SelectField;"],autoComplete:"off",readOnly:C||!x,placeholder:E,value:function(){if(z!==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){Y(e.target.value),ee(e.target.value)}})),!A&&(0,y.tZ)("button",{type:"button",css:P.caretButton,onClick:function(){ne((function(e){return!e}))},disabled:C||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:re})})})]}),(0,y.tZ)(u.h,{isOpen:re,onClickOutside:function(){return ne(!1)},children:(0,y.tZ)("div",{css:[P.optionsWrapper,{left:ce.left,top:ce.top,maxWidth:le},";label:SelectField;"],ref:ue,children:(0,y.BX)("ul",{css:[P.options(G),";label:SelectField;"],children:[!!T&&(0,y.tZ)("li",{css:P.listLabel,children:T}),oe.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})),ee(""),c(e),ne(!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),Y(""),ee(""),ne(!1)},children:q("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})})]})}})};var S={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},x={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&&x,";;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&&S,";;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:()=>v});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){h(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 h(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 v=function(e){var t=e.field,r=e.fieldState,o=e.label,i=e.title,a=e.subTitle,s=e.disabled,p=e.loading,h=e.responsive,v=e.responsiveOrientation,y=e.isInlineLabel,m=void 0!==y&&y,g=e.helpText,E=e.hideErrorMessage,O=void 0!==E&&E,_=e.required,w=void 0!==_&&_;return(0,u.tZ)(c.Z,{field:t,fieldState:r,disabled:s,loading:p,label:o,responsive:h,responsiveOrientation:v,isInlineLabel:m,helpText:g,hideErrorMessage:O,required:w,children:function(e){var r=e.attributes,o=e.data,c=o.responsive,s=o.device,p=(0,l.o5)(t.value,s),h=(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({},h),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:()=>C});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),h=r(1921),v=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){O(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 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 _(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 C=function(e){var t=e.label,r=e.isInlineLabel,a=e.type,l=void 0===a?"text":a,c=e.field,h=e.fieldState,m=e.disabled,g=e.readOnly,O=e.loading,w=e.placeholder,C=e.helpText,S=e.onChange,x=e.onKeyDown,P=e.isClearable,L=e.responsive,A=e.responsiveOrientation,T=e.variant,D=void 0===T?"regular":T,Z=e.hasAutoFocus,R=void 0!==Z&&Z,j=e.isDebounced,B=void 0!==j&&j,M=e.staticUnit,k=e.step,N=e.allowNegativeValue,G=void 0!==N&&N,W=e.required,U=void 0!==W&&W,F=(0,v.useRef)(null),H=(0,v.useRef)(i.zu),q=(0,s.D)(H.current),V=(0,v.useRef)(!1),z=_((0,v.useState)("password"===l),2),X=z[0],$=z[1],K=(0,f.o5)(c.value,i.zu),Y=_((0,v.useState)(K),2),Q=Y[0],J=Y[1],ee=(0,u.N)(Q),te=(0,d.F)((function(e){return e.payload})),re=te.sectionIndex,ne=te.columnIndex,oe=te.addonIndex,ie=te.tableItem,ae=(0,p.s)((function(e){return e.currentState})),le=E({},"number"===l&&{step:k});return(0,v.useEffect)((function(){B&&J(K)}),[re,ne,oe,ie,ae]),(0,v.useEffect)((function(){if(B){var e=(0,f.xU)({previous:c.value,value:ee,responsive:V.current,device:H.current});c.onChange(e)}}),[ee]),(0,v.useEffect)((function(){var e,t;R&&(null===(e=F.current)||void 0===e||e.focus(),null===(t=F.current)||void 0===t||t.select())}),[R]),(0,y.tZ)(b.Z,{label:t,isInlineLabel:r,field:c,fieldState:h,disabled:m,readOnly:g,loading:O,placeholder:w,helpText:C,responsive:L,responsiveOrientation:A,required:U,children:function(e){var t=e.attributes,r=e.data,i=r.device,a=r.responsive;return H.current=i,V.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:F,type:X?"password":"password"===l?"text":l,value:B?q!==i?(0,f.o5)(c.value,i):Q:(0,f.o5)(c.value,i),placeholder:w,onChange:function(e){var t=e.target.value;if(B)J(t);else{var r=(0,f.xU)({previous:c.value,value:t,responsive:a,device:i});c.onChange(r)}S&&S(t)},onBlur:function(e){if("number"!==l||!G){var t=e.target.value,r="number"===l?t.replace(/[^0-9.]/g,"").replace(/(\..*)\./g,"$1").replace(/([^\.]+)\.$/,"$1"):t;if(B)J(t);else{var n=(0,f.xU)({previous:c.value,value:r,responsive:a,device:i});c.onChange(n)}S&&S(r)}},onKeyDown:function(e){x&&x(e.key)},autoComplete:"off"},le)),"password"===l&&!!c.value&&(0,y.tZ)(n.Z,{variant:"text",css:I.hideShow,onClick:function(){return $(!X)},children:X?(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)(h.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,{Z:()=>O,g:()=>E});var n=r(3871),o=r(824),i=r(917),a=r(7898),l=r(1234),c=r(7602),u=r(4185),s=r(7294),d=r(1709),p=r(9781),f=r(5944);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 v(){v=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 x(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 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=p.prototype=Object.create(y);function O(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"==h(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=C(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 C(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,C(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(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:L}}function L(){return{value:void 0,done:!0}}return f.prototype=b,n(E,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:f,configurable:!0}),f.displayName=c(b,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,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},O(_.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()}))},O(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,x.prototype={constructor:x,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:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function b(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 y(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){b(i,n,o,a,l,"next",e)}function l(e){b(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}var g=function(e){var t,r,i=e.title,u=e.confirmationMessage,d=e.confirmButtonText,h=e.cancelButtonText,b=e.confirmButtonVariant,g=void 0===b?"error":b,E=e.payload,O=e.mutationFn,w=e.closeModal,C=e.invalidateKeys,I=e.contentWrapper,S=e.skipMutation,x=void 0!==S&&S,P=e.backgroundColor,L=void 0===P?o.qo.background.white:P,A=e.proceedText,T=(0,l.$)(),D=(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 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.")}()),Z=D[0],R=D[1],j=(0,a.A)({mutationFn:O,invalidateKeys:C});return(0,f.tZ)(p.Z,{onClose:function(){return w({action:"CLOSE"})},title:i,headerCss:_.modalHeaderCss,contentCss:_.modalContentCss(L),wrapperCss:_.modalWrapper,children:(0,f.BX)("div",{css:[I,";label:ConsentModal;"],children:[(0,f.tZ)("p",{css:_.content,children:u||T("COM_SPPAGEBUILDER_EDITOR_DELETE_WARNING")}),(0,c.$K)(A)&&(0,f.BX)("div",{css:_.proceedTextWrapper,children:[(0,f.tZ)("label",{htmlFor:"proceed-text",dangerouslySetInnerHTML:{__html:T("COM_SPPAGEBUILDER_EDITOR_FILL_PROCEED_BOX_TEXT_MESSAGE",{proceedText:A})}}),(0,f.tZ)("input",{type:"text",id:"proceed-text",value:Z,onChange:function(e){return R(e.target.value)},tabIndex:0,autoFocus:!0})]}),(0,f.BX)("div",{css:_.footerWrapper,children:[(0,f.tZ)(n.Z,{variant:"secondary",onClick:function(){return w({action:"CLOSE"})},tabIndex:0,children:h||T("COM_SPPAGEBUILDER_EDITOR_CANCEL")}),(0,f.tZ)(n.Z,{variant:g,disabled:(0,c.$K)(A)&&Z!==A,tabIndex:0,onClick:y(v().mark((function e(){var t,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,c.$K)(A)||Z===A){e.next=2;break}return e.abrupt("return");case 2:if(!x){e.next=5;break}return w({action:"CONFIRM"}),e.abrupt("return");case 5:if(!E){e.next=13;break}return e.next=8,j.mutateAsync(E);case 8:if(t=e.sent,r=t.data,!((0,c.$K)(r.status)?r.status:r)){e.next=13;break}return w({action:"CONFIRM"}),e.abrupt("return");case 13:w({action:"CLOSE"});case 14:case"end":return e.stop()}}),e)}))),loading:j.isLoading,children:d||T("COM_SPPAGEBUILDER_EDITOR_DELETE")})]})]})})},E=function(){var e=(0,d.d)().showModal;return function(t){return e({component:g,props:t,closeOnOutsideClick:!0})}};const O=g;var _={modalWrapper:{name:"1utdhwa-modalWrapper",styles:"max-width:450px;label:modalWrapper;"},proceedTextWrapper:(0,i.iv)("padding:0 ",o.W0[24]," ",o.W0[16]," ",o.W0[24],";display:flex;flex-direction:column;gap:",o.W0[8],";label{",u.c.body(),";color:",o.qo.text.neutral,";}input{",u.c.body(),";color:",o.qo.text.default,";border:1px solid ",o.qo.stroke.neutral,";border-radius:",o.E0[6],";padding-inline:",o.W0[16],";width:100%;appearance:textfield;height:32px;:focus-visible{outline:none;box-shadow:",o.AF.outline,";}::-webkit-outer-spin-button,::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}::placeholder{color:",o.qo.text.hints,";}};label:proceedTextWrapper;"),content:(0,i.iv)("padding:",o.W0[16]," ",o.W0[24],";",u.c.body(),";color:",o.qo.text.neutral,";;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:function(e){return(0,i.iv)("background-color:",e,";;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(2811),s=r(1234),d=r(1073),p=r(7679),f=r(6731),h=r(1030),v=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 O(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){_(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 _(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 x(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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(P([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);function E(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"==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 _(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=C(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 C(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,C(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(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:L}}function L(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},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(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,x.prototype={constructor:x,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:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},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)}const I=function(e){var t=e.closeModal,r=e.title,a=e.textLabel,l=e.textPlaceholder,g=e.pageType,E=e.collectionId,_=(0,s.$)(),I=(0,p.mp)(),x=(0,b.s0)(),P=(0,d.j)((function(e){return e.setActiveAction})),L=(0,u.T)().closeSettingPanel,A=(0,c.O)({defaultValues:{title:""}});return a||(a=_("COM_SPPAGEBUILDER_EDITOR_CREATE_PAGE_CREATE_PAGE_TITLE")),l||(l=_("COM_SPPAGEBUILDER_EDITOR_CREATE_PAGE_CREATE_PAGE_TITLE_PLACEHOLDER")),(0,m.tZ)(y.Z,{onClose:function(){return t({action:"CLOSE"})},title:r,wrapperCss:S.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,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={title:r.title,type:"",page_type:g,collection_id:null!=E?E:null},"popup"===g&&(n.type="popup"),e.next=4,I.mutateAsync(n);case 4:(o=e.sent).id&&(P(void 0),L(),x("popup"!==g?i.F.PageEditor.buildLink({id:o.id.toString(),type:""}):i.F.PopupEditor.buildLink({id:o.id.toString(),type:"popup"})),t({action:"CLOSE"}));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){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 r.apply(this,arguments)}}())),children:[(0,m.tZ)("div",{css:S.fieldWrapper,children:(0,m.tZ)(v.Qr,{name:"title",control:A.control,rules:O({},(0,h.n)()),render:function(e){return(0,m.tZ)(o.Z,O(O({},e),{},{label:a,placeholder:l,hasAutoFocus:!0}))}})}),(0,m.BX)("div",{css:S.buttonWrapper,children:[(0,m.tZ)(n.Z,{variant:"secondary",onClick:function(){return t({action:"CLOSE"})},children:_("COM_SPPAGEBUILDER_EDITOR_CREATE_PAGE_CANCEL")}),(0,m.tZ)(n.Z,{type:"submit",loading:I.isLoading,children:_("COM_SPPAGEBUILDER_EDITOR_CREATE_PAGE_SAVE_AND_GO")})]})]})})};var S={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:()=>b});var n=r(3871),o=r(9085),i=r(824),a=r(4185),l=r(917),c=r(1234),u=r(7294),s=r(1709),d=r(9781),p=r(5944);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)||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}var v=function(e){var t=e.title,r=e.confirmationMessage,i=e.confirmButtonText,a=e.isPopup,l=void 0!==a&&a,s=e.closeModal,h=(0,c.$)(),v=f((0,u.useState)(!1),2),b=v[0],m=v[1],g=f((0,u.useState)(!1),2),E=g[0],O=g[1];return(0,p.tZ)(d.Z,{onClose:function(){return s({action:"CLOSE",seoChecked:b})},title:t||h("COM_SPPAGEBUILDER_EDITOR_PAGE_EXPORT_TITLE"),headerCss:y.modalHeaderCss,contentCss:y.modalContentCss,wrapperCss:y.modalWrapper,children:(0,p.BX)("div",{children:[(0,p.BX)("div",{css:y.content,children:[(0,p.tZ)("p",{children:r||h("COM_SPPAGEBUILDER_EDITOR_EXPORT_MESSAGE")}),!1===l?(0,p.BX)(p.HY,{children:[(0,p.tZ)(o.Z,{labelCss:y.labelCss,checked:b,onChange:function(e,t){m(e),t.target.checked=e},label:h("COM_SPPAGEBUILDER_EDITOR_EXPORT_LABEL_SEO_DATA")}),(0,p.tZ)(o.Z,{labelCss:y.labelCss,checked:E,onChange:function(e,t){O(e),t.target.checked=e},label:h("COM_SPPAGEBUILDER_EDITOR_EXPORT_LABEL_MEDIA_DATA")})]}):(0,p.tZ)(p.HY,{})]}),(0,p.BX)("div",{css:y.footerWrapper,children:[(0,p.tZ)(n.Z,{variant:"secondary",onClick:function(){return s({action:"CLOSE"})},children:h("COM_SPPAGEBUILDER_EDITOR_CANCEL")}),(0,p.tZ)(n.Z,{onClick:function(){s({action:"CONFIRM",seoChecked:b,mediaChecked:E})},children:i||h("COM_SPPAGEBUILDER_EDITOR_PAGE_EXPORT_CONFIRMATION")})]})]})})},b=function(){var e=(0,s.d)().showModal;return function(t){return e({component:v,props:t,closeOnOutsideClick:!0})}},y={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),h=r(9250),v=r(1709),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 x(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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(P([])));y&&y!==t&&r.call(y,i)&&(v=y);var g=h.prototype=p.prototype=Object.create(v);function O(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"==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=C(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 C(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,C(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(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:L}}function L(){return{value:void 0,done:!0}}return f.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,c(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},O(_.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()}))},O(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,x.prototype={constructor:x,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:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function O(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 _(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){O(i,n,o,a,l,"next",e)}function l(e){O(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."}],C=function(e){var t=e.closeModal,r=e.title,l=(0,s.$)(),c=(0,f.useRef)(null),u=(0,h.s0)(),v=(0,i.p)().showToast,m=(0,p.M9)(),O=function(){var e=_(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),v({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:S.modalWrapperCss,contentCss:S.contentCss,children:(0,y.BX)("div",{css:S.wrapper,children:[(0,y.BX)("div",{css:S.leftSide,children:[(0,y.tZ)("div",{css:S.leftSideHeader,children:(0,y.BX)(n.Z,{buttonCss:S.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:S.instructionWrapper,children:(0,y.tZ)("ol",{css:S.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:S.dropzoneWrapper,children:[(0,y.tZ)(d.Z,{onUpload:O,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:S.fileUploader,ref:c,onChange:function(){var e=_(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,O(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,v.d)().showModal;return function(t){return e({component:C,props:t})}},S={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(2847),i=r(3169),a=r(1731),l=r(824),c=r(4185),u=r(917),s=r(1234),d=r(9194),p=r(3896),f=r(1921),h=r(7602),v=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 x(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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(P([])));y&&y!==t&&r.call(y,i)&&(v=y);var E=h.prototype=p.prototype=Object.create(v);function O(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"==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=C(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 C(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,C(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(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:L}}function L(){return{value:void 0,done:!0}}return f.prototype=h,n(E,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},O(_.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()}))},O(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,x.prototype={constructor:x,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: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 O(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){_(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 _(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 C(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,v=e.isPopup,m=void 0!==v&&v,E=(0,s.$)(),_=(0,a.p)().showToast,w=(0,p.o)((function(e){return e.setPageContent})),I=(0,b.Gc)(),S=(0,d.i8)();return(0,y.tZ)("div",{css:P.wrapper(m),children:(0,y.BX)("div",{css:P.layoutItem({isFreeVersion:h.Eu}),children:[(0,y.tZ)(i.Z,{enabled:h.Eu,children:(0,y.BX)("div",{css:P.layoutMedia({isFreeVersion:h.Eu,isPopup:m}),children:[(0,y.tZ)("img",{src:t.thumb,alt:t.title,"data-media-image":!0}),h.Eu&&(0,y.tZ)(o.Z,{}),!h.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:S.isLoading,onClick:C(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,S.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=O(O({},i),o),n.attribs=a),I.reset(n)),_({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 S={name:"9xk68e-layoutMedia",styles:"position:relative;label:layoutMedia;"},x={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&&x,";;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&&S," ",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,v.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:()=>L});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),h=r(9194),v=r(1921),b=r(7294),y=r(7536),m=r(6566),g=r(9781),E=r(5944);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 _(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?_(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(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}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)||x(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 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)||x(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 x(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 L=function(e){var t=e.closeModal,r=e.title,c=e.form,s=(0,f.$)(),v=S((0,b.useState)(null),2),O=v[0],_=(v[1],S((0,b.useState)([]),2)),C=_[0],x=_[1],P=(0,h.u9)(),L=(0,p.O)({defaultValues:{search:"",page:"",sortBy:""}}),T=(0,d.N)(L.watch("search")),D=L.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 R=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:A.wrapper(!!O),children:[(0,E.tZ)("div",{children:(0,E.BX)("div",{css:A.categoriesWrapper,children:[(0,E.tZ)("div",{css:A.categoryLabel,children:s("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_CATEGORIES")}),(0,E.tZ)("div",{css:A.categoryItems,children:P.data.map((function(e){return(0,E.BX)("div",{css:A.categoryItem,children:[(0,E.tZ)(o.Z,{label:e.title,labelCss:u.c.body(),checked:C.includes(e.id),onChange:function(t){x(t?[].concat(I(C),[e.id]):C.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:A.topBar,children:[(0,E.tZ)(y.Qr,{control:L.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:A.topBarRight,children:[(0,E.tZ)(y.Qr,{control:L.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 L.reset()},children:s("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_RESET")})]})]}),(0,E.tZ)("div",{css:A.layoutsWrapper,children:P.data.map((function(e){return C.length<1||C.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(R).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 A={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);",v.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),h=r(1234),v=r(9194),b=r(1921),y=r(7294),m=r(7536),g=r(6566),E=r(2847),O=r(7602),_=r(5944);const w=function(e){var t=e.template,r=e.setActiveTemplate,o=(0,h.$)();return(0,_.tZ)("div",{children:(0,_.BX)("div",{css:C.templateItem(t.accent_color),children:[(0,_.BX)("div",{css:C.templateMedia,children:[(0,_.tZ)("img",{src:t.thumb,alt:t.title,"data-media-image":!0}),(0,_.tZ)("div",{css:C.mediaOverlay({color:t.accent_color}),"data-media-overlay":!0,children:(0,_.tZ)(n.Z,{onClick:function(){return r(t)},children:o("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_VIEW_DETAILS")})}),O.Eu&&(0,_.tZ)(E.Z,{css:C.proLabel})]}),(0,_.BX)("div",{css:C.templateFooter,children:[(0,_.BX)("div",{css:C.footerTop,children:[(0,_.tZ)("div",{css:s.c.body("medium"),children:t.title}),(0,_.tZ)("div",{css:C.caption,children:o("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_PAGES",{count:t.count})})]}),(0,_.tZ)("div",{css:C.caption,children:o("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_DOWNLOADS",{count:t.hits})})]})]})})};var C={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;"),proLabel:(0,d.iv)("position:absolute;top:",u.W0[4],";right:",u.W0[4],";z-index:10;;label:proLabel;"),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),S=r(1731),x=r(3896);const P=function(e){var t=e.layout,r=e.isActive,n=e.setActiveLayout;return(0,_.tZ)("button",{css:L.wrapper,onClick:function(){return n(t)},children:(0,_.BX)("div",{css:L.layoutItem({isActive:r}),children:[(0,_.tZ)("div",{css:L.layoutMedia,children:(0,_.tZ)("img",{src:t.thumb,alt:t.title})}),(0,_.tZ)("div",{css:L.layoutFooter({isActive:r}),children:t.title})]})})};var L={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 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 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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==A(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(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){R(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 R(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 j(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){j(i,n,o,a,l,"next",e)}function l(e){j(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,h.$)(),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,x.o)((function(e){return e.setPageContent})),p=(0,S.p)().showToast,f=(0,m.Gc)(),b=(0,v.i8)();return(0,_.BX)("div",{css:N.detailsWrapper,children:[(0,_.tZ)("div",{children:(0,_.tZ)("div",{css:N.detailsThumb,children:(0,_.tZ)("img",{src:c.thumb,alt:c.title})})}),(0,_.BX)("div",{children:[(0,_.BX)("h4",{css:N.detailsTitle,children:[o.title,(0,_.BX)("span",{children:[a("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_LAYOUT_COUNT",{count:o.count})," ",(0,_.tZ)("span",{children:O.Eu&&(0,_.tZ)(E.Z,{})})]})]}),(0,_.tZ)("p",{css:s.c.body(),children:o.description}),(0,_.tZ)("div",{css:N.detailLayouts,children:o.layouts.map((function(e){return(0,_.tZ)(P,{isActive:e.id===c.id,layout:e,setActiveLayout:u},e.id)}))})]}),(0,_.BX)("div",{css:N.detailsFooter,children:[(0,_.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")}),O.Eu?(0,_.tZ)(I.Z,{}):(0,_.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:O.Eu,children:a("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_IMPORT")})]})]})};var N={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;")},G=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 F(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){H(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 H(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 q(e){return function(e){if(Array.isArray(e))return X(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 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)||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 X(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)?X(e,t):void 0}}function X(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,h.$)(),b=V((0,y.useState)(null),2),E=b[0],O=b[1],C=V((0,y.useState)([]),2),I=C[0],S=C[1],x=(0,v.nx)(),P=(0,f.O)({defaultValues:{search:"",page:"",sortBy:""}}),L=(0,p.N)(P.watch("search")),A=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(x.isLoading)return(0,_.tZ)(i.g4,{});if(!x.data)return(0,_.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,_.tZ)(G.Z,{onClose:function(){return t({action:"CLOSE"})},title:r,children:(0,_.tZ)(m.RV,F(F({},u),{},{children:(0,_.tZ)("div",{css:K.wrapper(!!E),children:E?(0,_.BX)(_.HY,{children:[(0,_.BX)(n.Z,{variant:"text",onClick:function(){return O(null)},buttonCss:K.backToLayout,children:[(0,_.tZ)(a.Z,{name:"angleLeft"}),d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_BACK_TO_LAYOUT")]}),(0,_.tZ)(k,{template:E,closeModal:t})]}):(0,_.BX)(_.HY,{children:[(0,_.tZ)("div",{children:(0,_.BX)("div",{css:K.categoriesWrapper,children:[(0,_.tZ)("div",{css:K.categoryLabel,children:d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_CATEGORIES")}),(0,_.tZ)("div",{css:K.categoryItems,children:x.data.layouts.map((function(e){return(0,_.BX)("div",{css:K.categoryItem,children:[(0,_.tZ)(o.Z,{label:e.title,labelCss:s.c.body(),checked:I.includes(e.alias),onChange:function(t){S(t?[].concat(q(I),[e.alias]):I.filter((function(t){return t!==e.alias})))}}),(0,_.tZ)("span",{children:e.count})]},e.id)}))})]})}),(0,_.BX)("div",{children:[(0,_.BX)("div",{css:K.topBar,children:[(0,_.tZ)(m.Qr,{control:P.control,name:"search",render:function(e){return(0,_.tZ)(c.Z,F(F({},e),{},{variant:"search",placeholder:d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_SEARCH_LAYOUTS"),isClearable:!0}))}}),(0,_.BX)("div",{css:K.topBarRight,children:[(0,_.tZ)(m.Qr,{control:P.control,name:"page",render:function(e){return(0,_.tZ)(l.Z,F(F({},e),{},{options:x.data.pages,placeholder:d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_PAGE")}))}}),(0,_.tZ)(m.Qr,{control:P.control,name:"sortBy",render:function(e){return(0,_.tZ)(l.Z,F(F({},e),{},{options:D,placeholder:d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_SORT_BY")}))}}),(0,_.tZ)(n.Z,{variant:"text",onClick:function(){return P.reset()},children:d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_RESET")})]})]}),(0,_.tZ)("div",{css:K.layoutsWrapper,children:x.data.layouts.map((function(e){return I.length<1||I.includes(e.alias)?function(e){var r=e.templates,n=new RegExp(L);return L&&L.length&&(r=e.templates.filter((function(e){return n.test(e.alias)}))),q(r).sort(Z).map((function(e){return A?e.layouts.map((function(r){if(r.title.toLocaleLowerCase()===A.toLocaleLowerCase())return(0,_.tZ)(g.Z,{layout:r,templateName:e.title,closeModal:t},r.id)})):(0,_.tZ)(w,{template:e,setActiveTemplate:O},e.id)}))}(e):void 0}))})]})]})})}))})};var K={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;")}},1709:(e,t,r)=>{"use strict";r.d(t,{D:()=>E,d:()=>g});var n=r(824),o=r(917),i=r(7602),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)||v(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){h(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 h(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 v(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)||v(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"})},h=(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:h,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,h=e.contentCss,v=e.hideHeader,b=void 0!==v&&v;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:[!b&&(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}),h,";label:ModalWrapper;"],children:t})]})};var p={container:(0,l.iv)("background:",i.qo.background.primary,";margin:",i.W0[24],";max-width:1350px;width:100%;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);height:100%;",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(7602);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){return function(e){if(Array.isArray(e))return l(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 l(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)?l(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 l(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 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}r.d(t,{Ak:()=>O,Dw:()=>Z,E_:()=>F,Eb:()=>B,G2:()=>k,HZ:()=>D,Hy:()=>h,IR:()=>G,LP:()=>N,Lx:()=>P,P8:()=>s,Q9:()=>v,RI:()=>g,Vg:()=>U,XA:()=>j,ZR:()=>C,Zs:()=>p,_y:()=>L,a7:()=>_,aX:()=>m,dR:()=>I,dZ:()=>y,du:()=>T,f9:()=>W,g3:()=>u,hF:()=>w,iq:()=>d,lk:()=>b,lr:()=>M,oA:()=>A,pb:()=>E,sD:()=>S,sF:()=>x,t:()=>R,vH:()=>H,zu:()=>f});var u=48,s=326,d=80,p=320,f="xl",h=15,v=20,b=6,y="rtl"===document.dir,m=["hidden","text","gmap","select","dynamic_source","dynamic_field","filter_control","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","attribute","filter"],g={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."}},E={name:"table_advanced",bodyItemsKey:"table_advanced_item",headerItemsKey:"sp_table_advanced_item"},O={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"}},_={min:0,max:100},w={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%)"},C=230,I=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.TABLE_COLUMNS_COLLECTION_LOCAL_STORAGE_KEY="sppb-backend-collection-items-columns",e.ITEMS_PER_PAGE_COLLECTION_LOCAL_STORAGE_KEY="sppb-backend-items-per-page-collection",e}({}),S="https://www.joomshaper.com/documentation/sp-page-builder",x={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"}},P=["System","Google Fonts","Arial","Tahoma","Verdana","Helvetica","Times New Roman","Trebuchet MS","Georgia"],L="https://www.joomshaper.com/pricing?plan=page-builder-pro",A={productList:"easystore_common_productlist",categoryList:"easystore_common_categorylist",paginationstatus:"easystore_common_paginationstatus",filter:"easystore_list_filter",pagination:"easystore_list_pagination"},T={prefix:"collection_"},D={prefix:"easystore_",name:"easystore",extension:"com_easystore",single:{type:"single",url:"single-product",category:"Product"},list:{type:"storefront",url:"product-list",category:"Product List"}},Z=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}({}),R=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.DCCollectionAddonEmptyChild="dynamic-content-collection-addon-empty-child",e.DCCollectionItemAddon="dynamic-content-collection-item-addon",e.DCDivAddonEmptyChild="dynamic-content-div-addon-empty-child",e}({}),j="editor-empty-state",B="accepted-all",M="pages-list",k="collection_list",N=(c(n={},R.Section,{accepted:[Z.RowElement,Z.SavedSectionElement,Z.BlockElement],rejected:[]}),c(n,R.NestedRow,{accepted:[],rejected:[Z.ColumnsElement]}),c(n,R.DeepAddonRow,{accepted:[],rejected:[]}),c(n,R.Column,c({accepted:[],rejected:[]},B,!0)),c(n,R.Addon,{accepted:[],rejected:[Z.ColumnsElement]}),c(n,R.DeepAddon,{accepted:[],rejected:[Z.ColumnsElement]}),c(n,R.Div,{accepted:[],rejected:[Z.ColumnsElement]}),c(n,R.CollectionItemAddon,{accepted:[],rejected:[Z.RowElement,Z.ColumnsElement,Z.SingleAddonElement,Z.CommonAddonElement,"table_advanced","tab","accordion",A.productList,A.categoryList,A.filter,A.pagination]}),c(n,R.EmptyDivChild,{accepted:[Z.AddonElement,Z.DivElement,Z.SavedAddonElement,Z.SingleAddonElement,Z.CommonAddonElement,A.filter,A.productList,A.categoryList],rejected:[]}),c(n,R.TableItem,{accepted:[Z.AddonElement],rejected:[]}),c(n,j,{accepted:[Z.SavedSectionElement,Z.BlockElement],rejected:[]}),c(n,R.DCCollectionItemAddon,{accepted:[],rejected:["accordion","tab","table_advanced","row","columns","articles","article_scroller","carousel","carouselpro","image_carousel","instagram_gallery","js_slideshow"].concat(a(Object.values(A)))}),c(n,R.DCCollectionAddonEmptyChild,{accepted:[],rejected:["accordion","tab","table_advanced","row","columns","articles","article_scroller","carousel","carouselpro","image_carousel","instagram_gallery","js_slideshow"].concat(a(Object.values(A)))}),c(n,R.DCDivAddonEmptyChild,{accepted:[],rejected:["accordion","tab","table_advanced","row","columns","articles","article_scroller","carousel","carouselpro","image_carousel","instagram_gallery","js_slideshow"].concat(a(Object.values(A)))}),n),G=(c(o={},R.Section,{accepted:[R.Section],rejected:[]}),c(o,R.NestedRow,{accepted:[R.Addon,R.Div,R.DeepAddon,R.NestedRow],rejected:[]}),c(o,R.DeepAddonRow,{accepted:[],rejected:[]}),c(o,R.Column,c({accepted:[],rejected:[]},B,!0)),c(o,R.Addon,{accepted:[R.Addon,R.Div,R.DeepAddon,R.NestedRow],rejected:[]}),c(o,R.Div,{accepted:[R.Addon,R.Div,R.DeepAddon,R.NestedRow],rejected:[]}),c(o,R.CollectionItemAddon,{accepted:[],rejected:[Z.RowElement,Z.ColumnsElement,Z.SingleAddonElement,Z.CommonAddonElement,"table_advanced","tab","accordion"]}),c(o,R.EmptyDivChild,{accepted:[R.Addon,R.Div,R.DeepAddon],rejected:[]}),c(o,R.DeepAddon,{accepted:[R.Addon,R.Div,R.DeepAddon,R.NestedRow],rejected:[]}),c(o,R.TableItem,{accepted:[],rejected:[]}),c(o,R.DCCollectionItemAddon,{accepted:[],rejected:["accordion","tab","table_advanced","row","columns","articles","article_scroller","carousel","carouselpro","image_carousel","instagram_gallery","js_slideshow"].concat(a(Object.values(A)))}),c(o,R.DCCollectionAddonEmptyChild,{accepted:[],rejected:["accordion","tab","table_advanced","row","columns","articles","article_scroller","carousel","carouselpro","image_carousel","instagram_gallery","js_slideshow"].concat(a(Object.values(A)))}),c(o,R.DCDivAddonEmptyChild,{accepted:[],rejected:["accordion","tab","table_advanced","row","columns","articles","article_scroller","carousel","carouselpro","image_carousel","instagram_gallery","js_slideshow"].concat(a(Object.values(A)))}),o),W=["screen_mode","stretch_section"],U={256:"256x256",512:"512x512",1024:"1024x1024"},F=function(e){return e.yearMonthDay="yyyy-LL-dd",e.monthDayYear="MMM dd, yyyy",e.hoursMinutes="hh:mm a",e.monthDayYearHoursMinutes="MMM dd, yyyy, hh:mm a",e.localMonthDayYearHoursMinutes="PPp",e.dateFormat="yyy-MM-dd",e.monthNameDayYearHourMinute="MMM d, yyyy hh:mm a",e.monthNameDayYear="MMM d, yyyy",e.altDateFormat="yyyy-MM-dd",e}({}),H="field_"},6537:(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,{H:()=>l});var l=i(i({},{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",PREVIEW_URL:"editor.previewUrl",PAGE_PADLOCK:"editor.pagePadlock"}),{COLLECTION_LIST:"collections.list",COLLECTION_SCHEMA:"collections.schema",REORDER_COLLECTION:"collections.reorder",REORDER_COLLECTION_FIELDS:"collections.reorder",RENAME_COLLECTION:"collections.rename",DUPLICATE_COLLECTION:"collections.duplicate",DELETE_COLLECTION:"collections.delete",COLLECTION_ITEM_FORM:"collections.form",COLLECTION_EDIT_ITEM_FORM:"collections.single",UPDATE_ACTION:"collections.update",COLLECTION_UPDATE_BATCH_ITEM_FORM:"collections.batch-update",CREATE_COLLECTION:"collections.create",COLLECTION_ATTRIBUTES:"collections.attributes",COLLECTION_ITEMS_AS_OPTIONS:"collections.items-as-options",DUPLICATE_COLLECTION_ITEM:"collections.duplicate",COLLECTION_FIELDS:"collections.collectionFields",REFERENCE_COLLECTION_FIELDS:"collections.referenceCollectionFields",DYNAMIC_CONTENT_PAGES:"collections.dynamicContentPages",EXPORT_DYNAMIC_COLLECTION:"collections.export",IMPORT_DYNAMIC_COLLECTION:"collections.import"})},3261:(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,{G:()=>l});var l=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"},playCirclePro:{icon:'<rect x="0.199219" y="-0.0078125" width="32" height="32" rx="7.5" fill="currentColor"/> <path d="M13.1016 11.9825C13.1016 11.3716 13.776 11.0013 14.2914 11.3293L20.5913 15.3384C21.0694 15.6426 21.0694 16.3404 20.5913 16.6447L14.2914 20.6537C13.776 20.9817 13.1016 20.6114 13.1016 20.0005V11.9825Z" fill="#302F40"/>',viewBox:"0 0 33 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"},dynamicContentDuo:{icon:'<path fill="currentColor" d="M2.878 1.42C4.195.836 5.963.493 7.877.493c1.913 0 3.682.343 5 .929.657.292 1.235.66 1.659 1.104.427.45.725 1.011.725 1.66v3.692a.738.738 0 1 1-1.476 0V6.459a6.42 6.42 0 0 1-.909.49c-1.317.585-3.086.928-5 .928-1.913 0-3.681-.343-4.998-.929a6.417 6.417 0 0 1-.909-.489v1.418c0 .168.073.383.319.64.249.262.644.532 1.19.774 1.087.483 2.642.801 4.399.801a.738.738 0 1 1 0 1.477c-1.914 0-3.682-.343-5-.928a6.419 6.419 0 0 1-.908-.49v1.418c0 .168.073.383.319.641.249.262.644.531 1.19.773 1.087.484 2.642.801 4.399.801a.738.738 0 1 1 0 1.477c-1.914 0-3.682-.343-5-.928-.657-.292-1.235-.66-1.659-1.105-.427-.449-.726-1.01-.726-1.659V4.184c0-.648.299-1.21.726-1.659.424-.445 1.002-.812 1.66-1.104Zm-.909 2.764c0 .168.073.384.319.641.249.262.644.531 1.19.774 1.087.483 2.642.8 4.399.8 1.756 0 3.311-.317 4.4-.8.544-.243.94-.512 1.189-.774.245-.257.319-.473.319-.64 0-.168-.074-.384-.32-.641-.248-.262-.644-.531-1.189-.774-1.088-.483-2.643-.8-4.4-.8-1.756 0-3.31.317-4.399.8-.545.243-.94.512-1.19.774-.244.257-.318.473-.318.64Z"/><path fill="currentColor" opacity=".4" d="M15.877 12.553a3.323 3.323 0 1 1-6.647 0 3.323 3.323 0 0 1 6.647 0Zm-2.807-1.477a.332.332 0 1 0-.664 0v1.33h-1.33a.332.332 0 1 0 0 .664h1.33v1.33a.332.332 0 0 0 .664 0v-1.33h1.33a.332.332 0 0 0 0-.664h-1.33v-1.33Z"/>',viewBox:"0 0 16 16"},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"},cursorText:{icon:'<path d="M4.003 1.802a.874.874 0 0 0 .799.946l.218.019a1.746 1.746 0 0 1 1.605 1.741v2.617H5.75a.874.874 0 1 0 0 1.75h.875v2.616a1.75 1.75 0 0 1-1.605 1.744l-.218.02a.87.87 0 0 0-.799.942c.041.485.462.84.943.799l.22-.02A3.49 3.49 0 0 0 7.5 13.805c.58.656 1.4 1.093 2.335 1.173l.219.019a.874.874 0 1 0 .145-1.742l-.22-.019a1.75 1.75 0 0 1-1.604-1.744V8.874h.875a.874.874 0 1 0 0-1.75h-.875V4.509c0-.91.697-1.668 1.605-1.744l.218-.02a.873.873 0 1 0-.147-1.74l-.219.018A3.485 3.485 0 0 0 7.5 2.195a3.497 3.497 0 0 0-2.335-1.173l-.219-.019a.873.873 0 0 0-.943.799Z" fill="currentColor"/>',viewBox:"0 0 16 16"},filterAdvanced:{icon:'<path d="M8.77 5h8.125M8.77 5a1.25 1.25 0 1 1-2.5 0m2.5 0a1.25 1.25 0 1 0-2.5 0m0 0H3.145M8.77 15h8.125M8.77 15a1.25 1.25 0 1 1-2.5 0m2.5 0a1.25 1.25 0 1 0-2.5 0m0 0H3.145m10.625-5h3.125m-3.125 0a1.25 1.25 0 0 1-2.5 0m2.5 0a1.25 1.25 0 0 0-2.5 0m0 0H3.145" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>',viewBox:"0 0 20 20"},collectionTitleField:{icon:'<path d="M13 3.5v2a.5.5 0 0 1-1 0V4H8.5v8H10a.5.5 0 0 1 0 1H6a.5.5 0 0 1 0-1h1.5V4H4v1.5a.5.5 0 1 1-1 0v-2a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5Z" fill="currentColor"/>',viewBox:"0 0 16 16"},collectionAliasField:{icon:'<path fill="currentColor" d="M4.02 7.975a.018.018 0 0 0-.012 0 .016.016 0 0 0-.008.01c0 .004 0 .009.003.012a.015.015 0 0 0 .01.004.014.014 0 0 0 .011-.004.017.017 0 0 0 .004-.013.015.015 0 0 0-.008-.01ZM4.152 7.975a.017.017 0 0 0-.015.001.016.016 0 0 0-.005.012c0 .004.001.007.005.01.003.003.007.003.011.003.004 0 .007-.002.01-.005.002-.005.002-.009 0-.014a.014.014 0 0 0-.006-.007ZM20.818 16.58c.003-.465-.003-.884-.12-1.32l-.015-.06a3.59 3.59 0 0 0-.073-.23l-.024-.062c-.141-.368-.397-.888-.813-1.274l-.049-.044c-.45-.423-.885-.7-1.372-.875l-.07-.025c-.565-.2-1.134-.196-1.639-.193l-.286.001h-.285l-.28.001-.64.002-.98.003.003-.793.001-.582v-.51l.002-.396c.002-.31.004-.63-.05-.955l-.001-.005a2.618 2.618 0 0 0-.065-.293l-.008-.023-.01-.035a2.947 2.947 0 0 0-.624-1.13h.016a2.803 2.803 0 0 0-.14-.147l.538-1.129c.098.02.192.029.294.029l.059-.001a1.737 1.737 0 0 0 1.2-.453l.004-.004c.349-.334.542-.763.558-1.24v-.005c.006-.508-.141-.924-.435-1.235l-.055-.054a1.732 1.732 0 0 0-.518-.383l-.076-.03a1.813 1.813 0 0 0-.383-.118l-.021-.003c-.602-.046-1.076.095-1.491.443l-.013.012a1.772 1.772 0 0 0-.542 1.235v.074c0 .083 0 .18.01.278l.002.017c.079.445.303.829.631 1.08l.012.008-.085.188-.383.792a3.807 3.807 0 0 0-1.608-.415h-.002a4.006 4.006 0 0 0-1.195.316l-.321-.664-.099-.218.012-.008c.328-.25.552-.634.632-1.08l.002-.016a2.94 2.94 0 0 0 .01-.281l-.002-.073a1.771 1.771 0 0 0-.541-1.234l-.013-.012c-.416-.347-.89-.488-1.491-.443l-.021.003a1.82 1.82 0 0 0-.384.117l-.068.028-.008.003a1.742 1.742 0 0 0-.518.383l-.055.055c-.294.31-.44.726-.435 1.235v.004c.016.477.209.906.558 1.24l.003.004c.328.3.732.452 1.199.453h.064c.1 0 .194-.008.291-.027l.467.978c-.782.657-.987 1.531-1.039 1.859l-.002.013c0 .007-.002.013-.003.02l-.01.08v.018c-.022.202-.025.399-.024.58v1.641l.003.795v1.59c0 .16 0 .325.012.494v.012c.097.999.553 1.888 1.284 2.505l.04.033c.91.773 1.95.876 2.759.876h3.12l1.204-.001 1.41.001h2.008l.11-.001.104.001.095-.001c.047 0 .079 0 .116-.004a.81.81 0 0 0 .114-.018l.094-.02.075-.06a.639.639 0 0 0 .26-.412l.008-.038.001-.215v-.653Zm-10.799-.553c-.505-.533-.75-1.176-.745-1.968v-.921c0-.224 0-.45.002-.675l.001-.873.001-.758v-.347s-.023-.16-.023-.4c0-.185.014-.415.063-.654a2.093 2.093 0 0 1 .361-.837 1.45 1.45 0 0 1 .355-.33c.24-.156.552-.256.956-.262 0 0 .608-.052 1.145.29a1.565 1.565 0 0 1 .358.313c.07.083.142.176.204.283.07.122.127.261.153.424.056.35.06.662.06 1.269v.831l.002.52a229.93 229.93 0 0 0 .002 1.438v.43c0 .118 0 .24.004.363v.018c.037.495.256.97.587 1.269l.012.01c.465.387 1.006.556 1.655.515l.08-.005.074-.036a.689.689 0 0 0 .276-.228l.065-.09.011-.13a.692.692 0 0 0-.107-.507l-.041-.063-.061-.043a.738.738 0 0 0-.45-.135h-.011c-.32-.002-.487-.061-.658-.233-.147-.158-.194-.324-.186-.652v-.003l.001-.07.945-.002h.65c.19-.002.378-.002.568-.002h.168l.133-.001h.42c.561 0 1.054.153 1.467.456l.057.046.02.014c.117.09.238.185.322.29l.038.048.007.01c.428.524.614 1.117.604 1.923v.002l-.003.146v.028l-2.665.001H15.26c-.409.002-.818.002-1.227.002H12.053c-.88 0-1.526-.227-2.034-.714Zm3.493-11.871c.317-.3.683-.369 1.061-.2a.977.977 0 0 1 .481.569.997.997 0 0 1-.14.77.953.953 0 0 1-.548.36c-.336.024-.571-.033-.76-.185a.99.99 0 0 1-.338-.702.92.92 0 0 1 .243-.613ZM8.84 5.47c-.19.152-.425.21-.76.185a.951.951 0 0 1-.548-.36.997.997 0 0 1-.14-.77.979.979 0 0 1 .48-.57c.378-.168.745-.098 1.061.2.155.17.234.37.243.614a.99.99 0 0 1-.336.702Z"/><path fill="#6F7CA3" d="M13.953 5.17a.408.408 0 1 0 0-.815.408.408 0 0 0 0 .816ZM8.542 4.355a.408.408 0 1 0 0 .815.408.408 0 0 0 0-.815Z"/>',viewBox:"0 0 24 24"},collectionRichTextField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M8.001 3.599v1.066a.267.267 0 1 1-.533 0V3.9H5.601v4.233h.8a.267.267 0 0 1 0 .533H4.268a.267.267 0 0 1 0-.533h.686V3.899H3.2v.766a.267.267 0 1 1-.533 0V3.6a.267.267 0 0 1 .267-.267h4.8A.267.267 0 0 1 8 3.599Zm5.311 6.36c0 .185-.149.334-.333.334H4.312a.333.333 0 0 1 0-.666h8.667c.184 0 .333.149.333.333Zm-.333 2.668a.333.333 0 0 0 0-.667H4.312a.333.333 0 0 0 0 .667h8.667Zm.333-5c0 .184-.149.333-.333.333H8.646a.333.333 0 0 1 0-.667h4.333c.184 0 .333.15.333.334Zm-.333-2a.333.333 0 0 0 0-.667H8.646a.333.333 0 0 0 0 .667h4.333Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionImageField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="m13.098 8.464-3.24 1.967c-.609.37-1.385.312-1.933-.145L6.718 9.278a1 1 0 0 0-1.194-.066l-2.26 1.502-.37-.556 2.261-1.5a1.667 1.667 0 0 1 1.99.108l1.208 1.008a1 1 0 0 0 1.16.087l3.24-1.966.345.57Z" clip-rule="evenodd"/><path fill="#6F7CA3" fill-rule="evenodd" d="M9.027 6.05a.692.692 0 1 0 0 1.384.692.692 0 0 0 0-1.385Zm-1.359.692a1.359 1.359 0 1 1 2.718 0 1.359 1.359 0 0 1-2.718 0Z" clip-rule="evenodd"/><path fill="#6F7CA3" fill-rule="evenodd" d="M12.335 3.999H3.668a.333.333 0 0 0-.333.333v7.436c0 .184.149.333.333.333h8.667c.184 0 .333-.149.333-.333V4.332a.333.333 0 0 0-.333-.333Zm-8.667-.667a1 1 0 0 0-1 1v7.436a1 1 0 0 0 1 1h8.667a1 1 0 0 0 1-1V4.332a1 1 0 0 0-1-1H3.668Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionGalleryField:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M6.26248 6.57641c.19724-1.87664 1.87845-3.23806 3.75512-3.04082l15.9123 1.67246c1.9722.20729 2.9927 1.981 2.8062 3.75509l-.9345 8.89176c-.0023.0216-.0045.043-.0067.0643-.029.2784-.0554.5322-.1322.7571-.2334.6831-.8039 1.1968-1.5077 1.3575-.0268.0061-.054.0115-.0814.0163v2.4039c0 1.2111 0 2.1956-.1044 2.9719-.1088.8093-.3433 1.5035-.8964 2.0566-.5531.5531-1.2472.7876-2.0566.8964-.7762.1044-1.7608.1043-2.9718.1043H6.6569c-1.86419 0-3.37953-1.4928-3.416-3.3485a3.516405 3.516405 0 0 1-.00067-.0682c0-.0209.00086-.0416.00255-.0622.02919-.8357.37396-1.6312.96731-2.2245l4.6825-4.6825c.68342-.6834 1.79141-.6834 2.47491 0l1.3229 1.3229c.4436.4437.7258.7237.9592.9033.2173.1672.3057.1775.3494.1786.0456.0012.1336-.0048.3548-.157.2379-.1637.528-.4229.9848-.8347l4.6995-4.4364h-2.1129c-.4142 0-.75-.3357-.75-.75 0-.4142.3358-.75.75-.75h4c.4142 0 .75.3358.75.75v3.7438c0 .4142-.3358.75-.75.75s-.75-.3358-.75-.75v-2.0044l-4.8132 4.5437-.0127.0117-.0346.0311c-.4155.3747-.7805.7038-1.1106.9309-.357.2457-.7575.4334-1.244.4208-.4883-.0126-.8804-.2239-1.2253-.4893-.3201-.2463-.6712-.5975-1.0722-.9985l-1.3558-1.3558c-.0976-.0977-.2559-.0977-.35355 0l-4.6825 4.6825c-.33762.3376-.52805.7949-.52998 1.2721.02433 1.0371.87298 1.8706 1.91613 1.8706h13.3333c1.2783 0 2.1616-.0016 2.8262-.0909.643-.0865.9678-.2425 1.1958-.4705.2279-.2279.384-.5528.4704-1.1958.0894-.6646.091-1.5478.091-2.8261V11.7332c0-1.0585-.8582-1.91665-1.9167-1.91665H6.76536a.76244.76244 0 0 1-.01913 0H6.6569c-1.05853 0-1.91664.85805-1.91667 1.91665l.00053 9.0601c.00002.4142-.33574.75-.74996.7501-.41421 0-.75002-.3358-.75004-.75l-.00053-9.0601c0-1.6884 1.22467-3.09083 2.83415-3.36729l.1881-1.7896Zm1.32536 1.74014H22.6569c1.887 0 3.4167 1.52969 3.4167 3.41665v6.7101c.0766-.0665.1358-.1529.1696-.252.0145-.0423.0263-.1102.0666-.4932l.9345-8.89175c.1215-1.1553-.514-2.00591-1.4712-2.10652L9.86077 5.02738c-1.05275-.11065-1.99586.65307-2.10651 1.70582l-.16642 1.58335ZM8.6569 12.4832c-.69035 0-1.25.5597-1.25 1.25 0 .6904.55965 1.25 1.25 1.25.69036 0 1.25-.5596 1.25-1.25 0-.6903-.55964-1.25-1.25-1.25Zm-2.75 1.25c0-1.5188 1.23122-2.75 2.75-2.75 1.5188 0 2.75 1.2312 2.75 2.75s-1.2312 2.75-2.75 2.75c-1.51878 0-2.75-1.2312-2.75-2.75Z" fill="currentColor"/>',viewBox:"0 0 32 32"},collectionVideoField:{icon:'<path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M4.58398 7.99992C4.58398 6.11295 6.11368 4.58325 8.00065 4.58325H24.0007C25.8876 4.58325 27.4173 6.11295 27.4173 7.99992V10.6666C27.4173 11.0808 27.0815 11.4166 26.6673 11.4166C26.2531 11.4166 25.9173 11.0808 25.9173 10.6666V7.99992C25.9173 6.94137 25.0592 6.08325 24.0007 6.08325H8.00065C6.94211 6.08325 6.08398 6.94137 6.08398 7.99992V23.9999C6.08398 25.0585 6.94211 25.9166 8.00065 25.9166H24.0007C25.0592 25.9166 25.9173 25.0585 25.9173 23.9999V16.4773L24.5311 17.8636C24.2382 18.1565 23.7634 18.1565 23.4705 17.8636C23.1776 17.5707 23.1776 17.0958 23.4704 16.8029L26.137 14.1363C26.2776 13.9956 26.4684 13.9166 26.6673 13.9166C26.8662 13.9166 27.057 13.9956 27.1976 14.1363L29.8643 16.8029C30.1572 17.0958 30.1572 17.5707 29.8643 17.8636C29.5714 18.1565 29.0965 18.1565 28.8037 17.8636L27.4173 16.4772V23.9999C27.4173 25.8869 25.8876 27.4166 24.0007 27.4166H8.00065C6.11368 27.4166 4.58398 25.8869 4.58398 23.9999V7.99992ZM17.1834 12.6299L17.2657 12.6736C18.1847 13.1609 18.9308 13.5565 19.468 13.9227C20.0054 14.2891 20.4844 14.7223 20.66 15.3452C20.7809 15.7739 20.7809 16.2259 20.66 16.6546C20.4844 17.2775 20.0054 17.7108 19.468 18.0771C18.9309 18.4433 18.1847 18.839 17.2658 19.3262L17.1834 19.3699C16.295 19.841 15.5729 20.2239 14.98 20.4592C14.3784 20.6981 13.7758 20.8427 13.1688 20.6821C12.7438 20.5697 12.352 20.3551 12.0329 20.0546C11.5674 19.6162 11.3999 19.0225 11.3244 18.4001C11.2506 17.7914 11.2506 17.0054 11.2507 16.0497V15.9501C11.2506 14.9945 11.2506 14.2084 11.3244 13.5998C11.3999 12.9773 11.5674 12.3836 12.0329 11.9453C12.352 11.6448 12.7438 11.4301 13.1688 11.3177C13.7758 11.1572 14.3784 11.3018 14.98 11.5406C15.5729 11.776 16.295 12.1589 17.1834 12.6299ZM14.4266 12.9348C13.9195 12.7335 13.6889 12.7318 13.5523 12.7679C13.3624 12.8181 13.1939 12.9123 13.0612 13.0373C12.9803 13.1135 12.8746 13.2761 12.8135 13.7803C12.752 14.2878 12.7507 14.982 12.7507 15.9999C12.7507 17.0178 12.752 17.712 12.8135 18.2195C12.8746 18.7237 12.9803 18.8863 13.0612 18.9625C13.1939 19.0875 13.3624 19.1817 13.5523 19.232C13.6889 19.2681 13.9195 19.2664 14.4266 19.0651C14.9334 18.8639 15.5826 18.5209 16.5212 18.0232C17.4921 17.5084 18.1632 17.1512 18.623 16.8378C19.0906 16.519 19.1899 16.341 19.2163 16.2476C19.2621 16.085 19.2621 15.9148 19.2163 15.7523C19.1899 15.6588 19.0906 15.4809 18.623 15.1621C18.1632 14.8486 17.4921 14.4914 16.5212 13.9766C15.5826 13.4789 14.9334 13.136 14.4266 12.9348Z"/>',viewBox:"0 0 32 32"},collectionEmailField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M11.324 5.34a4.23 4.23 0 1 0 0 5.984.385.385 0 0 1 .543.543 5 5 0 1 1-7.07-7.07 5 5 0 0 1 8.535 3.535c0 .5-.152.968-.415 1.318-.263.352-.656.605-1.123.605-.464 0-.855-.25-1.118-.597a2.691 2.691 0 1 1-.42-3.21v-.04a.384.384 0 1 1 .768 0v1.924c0 .35.107.651.261.857.154.206.338.297.509.297.17 0 .353-.091.508-.297.154-.205.26-.508.26-.857a4.218 4.218 0 0 0-1.238-2.992Zm-1.069 2.992a1.923 1.923 0 1 0-3.846 0 1.923 1.923 0 0 0 3.846 0Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionPhoneField:{icon:'<path fill="currentColor" d="M11.589 12.665h-.061c-7.051-.405-8.053-6.357-8.193-8.173a1.077 1.077 0 0 1 .99-1.16h1.978a.717.717 0 0 1 .668.452l.545 1.343a.718.718 0 0 1-.158.775l-.764.772a3.364 3.364 0 0 0 2.72 2.728l.778-.772a.718.718 0 0 1 .78-.147l1.352.542a.718.718 0 0 1 .441.668v1.895a1.077 1.077 0 0 1-1.076 1.077ZM4.412 4.05a.359.359 0 0 0-.359.359v.029c.165 2.125 1.224 7.15 7.514 7.51a.359.359 0 0 0 .38-.338V9.693l-1.352-.542-1.03 1.023-.172-.021C6.27 9.76 5.847 6.637 5.847 6.605l-.021-.172 1.019-1.03-.538-1.354H4.412Z"/>',viewBox:"0 0 16 16"},collectionDateTimeField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M4.976 2.668c.212 0 .384.172.384.385v.769h4.616v-.77a.385.385 0 0 1 .769 0v.77h.385a1.539 1.539 0 0 1 1.538 1.538v5.77a1.539 1.539 0 0 1-1.538 1.538H4.205a1.539 1.539 0 0 1-1.538-1.538V5.36a1.538 1.538 0 0 1 1.538-1.538h.385v-.77c0-.212.172-.384.385-.384Zm-.77 1.923a.77.77 0 0 0-.769.77v.59c.232-.134.497-.206.77-.206h6.923c.272 0 .537.072.769.206v-.59a.769.769 0 0 0-.77-.77H4.207ZM11.9 7.283a.769.769 0 0 0-.77-.769H4.207a.77.77 0 0 0-.769.77v3.846a.77.77 0 0 0 .77.769h6.923a.769.769 0 0 0 .769-.77V7.284Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionNumberField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M7.289 2.676c.23.047.38.271.334.502L7.151 5.54h2.002l.505-2.529a.427.427 0 1 1 .837.167l-.472 2.362h1.633a.427.427 0 1 1 0 .853H9.852L9.305 9.13h1.633a.427.427 0 0 1 0 .853H9.134l-.506 2.529a.427.427 0 0 1-.836-.168l.472-2.361H6.262l-.505 2.529a.427.427 0 0 1-.837-.168l.472-2.361H3.76a.427.427 0 1 1 0-.853h1.804l.547-2.737H4.477a.427.427 0 0 1 0-.853H6.28l.505-2.529a.427.427 0 0 1 .503-.335ZM6.98 6.393 6.433 9.13h2.002l.547-2.737H6.98Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionLinkField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M5.237 5.616a2.286 2.286 0 1 0 0 4.572h1.418a.55.55 0 1 1 0 1.1H5.237a3.386 3.386 0 0 1 0-6.772h1.418a.55.55 0 0 1 0 1.1H5.237Zm.312 2.183a.55.55 0 0 1 .55-.55h4.244a.55.55 0 1 1 0 1.1H6.099a.55.55 0 0 1-.55-.55Zm7.646.103a2.286 2.286 0 0 0-2.286-2.286H9.491a.55.55 0 0 1 0-1.1h1.418a3.386 3.386 0 0 1 0 6.771H9.491a.55.55 0 0 1 0-1.1h1.418a2.286 2.286 0 0 0 2.286-2.285Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionSwitchField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M5.332 5.75a2.5 2.5 0 0 0 0 5h5a2.5 2.5 0 0 0 0-5h-5Zm5 .417a2.083 2.083 0 1 0 0 4.166 2.083 2.083 0 0 0 0-4.166Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionColorField:{icon:'<path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width=".991" d="M6.967 10.166a1.333 1.333 0 0 0-2.568.5 1 1 0 0 1-1.067.998 2 2 0 0 0 3.733-.997c0-.177-.035-.347-.098-.501Zm0 0a7.11 7.11 0 0 0 1.506-.72m-2.241-.011c.18-.53.422-1.036.72-1.51m1.52 1.52A7.109 7.109 0 0 0 10.59 7.38l1.723-2.584a.511.511 0 0 0-.71-.71L9.02 5.81a7.109 7.109 0 0 0-2.066 2.116 3.011 3.011 0 0 1 1.52 1.52"/>',viewBox:"0 0 16 16"},collectionOptionField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M3.332 4.583c0-.322.261-.583.583-.583h8.167a.583.583 0 0 1 0 1.167H3.915a.583.583 0 0 1-.583-.584Zm0 3.5c0-.322.261-.583.583-.583h8.167a.583.583 0 0 1 0 1.167H3.915a.583.583 0 0 1-.583-.584Zm9.333 3.5a.583.583 0 0 0-.583-.583H3.915a.583.583 0 0 0 0 1.167h8.167a.583.583 0 0 0 .583-.584Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionFileField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M4 3.627c0-.53.41-.959.915-.959h2.36c1.253 0 2.455.522 3.34 1.45A5.076 5.076 0 0 1 12 7.622v4.755c0 .53-.41.959-.915.959h-6.17c-.505 0-.915-.43-.915-.96V3.628Zm7.259 4.184c0-.35-.133-.687-.37-.935a1.234 1.234 0 0 0-.893-.388H9.27a.894.894 0 0 1-.647-.28.983.983 0 0 1-.268-.68v-.76c0-.35-.133-.687-.37-.935a1.234 1.234 0 0 0-.892-.388H4.915a.178.178 0 0 0-.174.182v8.749c0 .1.078.182.174.182h6.17a.178.178 0 0 0 .174-.182V7.81ZM8.868 3.794c.149.298.229.632.229.974v.76c0 .05.018.095.05.13a.17.17 0 0 0 .123.053h.726c.327 0 .646.084.93.24a4.19 4.19 0 0 0-.834-1.283 3.982 3.982 0 0 0-1.224-.874ZM5.815 9.523a.38.38 0 0 1 .37-.389h3.63a.38.38 0 0 1 .37.389.38.38 0 0 1-.37.388h-3.63a.38.38 0 0 1-.37-.388Zm0 1.521a.38.38 0 0 1 .37-.388H8a.38.38 0 0 1 .37.388.38.38 0 0 1-.37.389H6.185a.38.38 0 0 1-.37-.389Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionReferenceField:{icon:'<path d="M8.663 10.203c0 .168.146.321 0 .365-.028.007-.314 0-.349 0H4.002c-.431 0-.856-.102-1.247-.306a2.64 2.64 0 0 1-.64-.416c-.084-.08-.16-.161-.237-.241A3.435 3.435 0 0 1 1 7.284c0-.876.313-1.693.878-2.313C2.435 4.358 3.208 4 4.002 4h1.33c.189 0 .35.168.35.365 0 .095.06.249 0 .315-.065.07-.252.05-.35.05h-1.33c-.599 0-1.19.27-1.623.744a2.755 2.755 0 0 0 0 3.627c.119.124.244.241.376.329.37.27.802.408 1.247.408h4.312c.195 0 .349.168.349.365Z" fill="#6F7CA3"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.092 4.179c-.768 0-1.517.345-2.059.941a3.328 3.328 0 0 0-.854 2.253A3.346 3.346 0 0 0 2.255 9.86a3.32 3.32 0 0 1 .483-.307 2.557 2.557 0 0 1-.334-.3l-.002-.003a2.844 2.844 0 0 1-.705-1.877c0-.692.11-1.465.558-1.956.448-.492 1.21-.687 1.837-.687h1.33c.135 0 .26-.124.26-.276 0-.151-.125-.275-.26-.275h-1.33ZM2.837 9.703c-.151.078-.298.169-.44.274.14.106.287.2.44.272.192-.122.4-.201.6-.251a2.202 2.202 0 0 1-.6-.295Zm1.255.394c-.295 0-.7.05-1.06.245.336.15.695.226 1.06.226h4.312a.304.304 0 0 0 .073-.011.27.27 0 0 0 .186-.264c0-.153-.119-.276-.26-.276H4.093v.08Zm-1.286.334a2.733 2.733 0 0 1-.66-.428l-.004-.004c-.085-.081-.163-.163-.239-.243l-.002-.002A3.525 3.525 0 0 1 1 7.374c0-.898.321-1.737.901-2.374m.905 5.431c.402.21.84.316 1.286.316h4.312c.046 0 .09-.01.12-.018h.003a.449.449 0 0 0 .314-.436.447.447 0 0 0-.437-.455H4.092a2.01 2.01 0 0 1-1.194-.391l-.004-.003a2.184 2.184 0 0 1-.36-.314 2.665 2.665 0 0 1 0-3.506c.417-.457.986-.716 1.558-.716h1.33a.452.452 0 0 0 .438-.454A.452.452 0 0 0 5.422 4h-1.33C3.27 4 2.474 4.37 1.9 5" fill="#6F7CA3"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.409 7.22h4.16a.81.81 0 0 1 .81.81v4.16a.81.81 0 0 1-.81.81h-4.16a.81.81 0 0 1-.81-.81V8.03a.81.81 0 0 1 .81-.81Zm0 .7a.11.11 0 0 0-.11.11v4.16c0 .06.05.11.11.11h4.16a.11.11 0 0 0 .11-.11V8.03a.11.11 0 0 0-.11-.11h-4.16Z" fill="currentColor"/>',viewBox:"0 0 16 16"},collectionMultiReferenceField:{icon:'<path d="M8.915 7.11c0 .149.182.268.046.307-.025.007-.509 0-.54 0H4.43c-.399 0-.792-.09-1.153-.27a2.459 2.459 0 0 1-.592-.368c-.078-.07-.148-.142-.22-.212a2.956 2.956 0 0 1-.811-2.05c0-.773.29-1.494.812-2.042a2.734 2.734 0 0 1 1.965-.857h1.23c.174 0 .323.148.323.322a.327.327 0 0 1-.322.322H4.432c-.554 0-1.102.239-1.501.658a2.341 2.341 0 0 0 0 3.202c.11.11.225.213.347.29.342.238.741.36 1.154.36h4.483c.18 0 0 .165 0 .339Z" fill="currentColor"/><path d="M8.742 11.676c0 .18.447.322.267.322H4.432c-.735 0-1.45-.309-1.965-.85a2.956 2.956 0 0 1-.812-2.05c0-.772.29-1.494.812-2.042.07-.07.141-.141.219-.206.187-.148.386-.27.592-.367.342.238.741.36 1.154.36-.316 0-.773.13-1.154.374a1.858 1.858 0 0 0-.347.284 2.341 2.341 0 0 0 0 3.202c.399.42.934.651 1.5.651H9.01c.032 0-.524.007-.499.013a.325.325 0 0 1 .232.31Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.432 1.699c-.712 0-1.406.306-1.907.832a2.86 2.86 0 0 0-.79 1.987c0 .752.282 1.46.79 1.992.068.069.135.136.208.203.143-.104.292-.195.445-.271a2.345 2.345 0 0 1-.304-.263l-.002-.002a2.422 2.422 0 0 1 0-3.313 2.173 2.173 0 0 1 1.56-.682h1.23c.13 0 .242-.112.242-.242a.247.247 0 0 0-.241-.241H4.432Zm-1.16 4.877c-.14.068-.276.148-.407.24.14.102.29.19.445.256l.005.002.024.012c.176-.1.364-.179.546-.233a2.074 2.074 0 0 1-.614-.277Zm1.16.348c-.245 0-.587.083-.906.244.29.112.596.169.906.169h4.046l.216.002a15.309 15.309 0 0 0 .222 0l-.01-.017c-.011-.02-.026-.047-.038-.073a.334.334 0 0 1-.033-.138c0-.057.014-.11.03-.153.007-.022.016-.043.023-.061l.002-.005.015-.039H4.432v.071Zm4.506-.069h-.001Zm-5.59.414c.343.152.71.229 1.084.229h4.044a54.293 54.293 0 0 0 .458.002l.022-.001c.004 0 .015-.001.025-.004h.002a.17.17 0 0 0 .07-.036.119.119 0 0 0 .038-.077.153.153 0 0 0-.009-.066.352.352 0 0 0-.022-.049l-.017-.031a.681.681 0 0 1-.028-.054.176.176 0 0 1-.02-.071c0-.03.009-.063.021-.1a1.18 1.18 0 0 1 .021-.053l.002-.005.02-.05a.298.298 0 0 0 .015-.058.138.138 0 0 0-.01-.078c-.03-.065-.1-.075-.149-.075H4.432c-.396 0-.78-.117-1.107-.346l-.004-.002a1.997 1.997 0 0 1-.333-.278 2.26 2.26 0 0 1 0-3.09 2.012 2.012 0 0 1 1.444-.633h1.23a.408.408 0 0 0 .403-.403.408.408 0 0 0-.402-.402H4.432c-.758 0-1.494.325-2.024.882a3.02 3.02 0 0 0-.834 2.098c0 .793.298 1.541.834 2.104l.002.002c.062.062.126.126.194.19-.068.06-.132.123-.193.184L2.41 7l-.002.002a3.02 3.02 0 0 0-.834 2.098c0 .793.298 1.541.834 2.104.53.557 1.267.876 2.024.876h4.577c.013 0 .027 0 .04-.003a.108.108 0 0 0 .052-.022.087.087 0 0 0 .027-.096.11.11 0 0 0-.028-.042.363.363 0 0 0-.052-.04 3.428 3.428 0 0 0-.06-.039.785.785 0 0 1-.122-.092c-.035-.034-.043-.057-.043-.069a.404.404 0 0 0-.078-.237h.019l.178-.003.055-.001h.017l.006-.001.013-.003c.028-.014.053-.105.007-.152a.15.15 0 0 0-.021-.005H4.432a1.983 1.983 0 0 1-1.443-.626 2.26 2.26 0 0 1 0-3.091c.097-.104.208-.19.333-.272m5.144 4.15H4.432c-.59 0-1.145-.242-1.56-.676a2.422 2.422 0 0 1 0-3.313c.093-.099.194-.181.304-.257a2.513 2.513 0 0 1-.445-.272 2.86 2.86 0 0 0-.996 2.181c0 .754.283 1.462.79 1.994.5.526 1.195.826 1.907.826H8.82a.67.67 0 0 1-.068-.058c-.044-.043-.091-.106-.091-.184a.244.244 0 0 0-.173-.232h-.003l-.005-.002a.08.08 0 0 1-.015-.007Z" fill="#6F7CA3"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.4 4.31h3.487c.375 0 .68.304.68.679v3.486a.679.679 0 0 1-.68.68H9.401a.679.679 0 0 1-.68-.68V4.99c0-.375.305-.68.68-.68Zm0 .587a.092.092 0 0 0-.091.092v3.486c0 .051.041.092.092.092h3.486c.051 0 .092-.04.092-.092V4.99a.092.092 0 0 0-.092-.092H9.401ZM9.4 9.693h3.487c.375 0 .68.304.68.679v3.487a.679.679 0 0 1-.68.679H9.401a.679.679 0 0 1-.68-.68v-3.486c0-.375.305-.68.68-.68Zm0 .587a.092.092 0 0 0-.091.092v3.487c0 .05.041.091.092.091h3.486c.051 0 .092-.04.092-.091v-3.487a.092.092 0 0 0-.092-.092H9.401Z" fill="currentColor"/>',viewBox:"0 0 16 16"},localUpload:{icon:'<path d="M8.9375 11.644c.30469 0 .5625-.2347.5625-.5633V7.13743h2.0391c.4218 0 .6328-.4929.3281-.79804L8.30469 2.77166c-.16407-.1643-.46875-.1643-.63281 0l-3.5625 3.56773c-.30469.30514-.09375.79804.32812.79804H6.5v3.94327c0 .3286.23438.5633.5625.5633h1.875ZM14 11.4563c0-.3052-.2578-.5634-.5625-.5634H10.25v.1878c0 .7276-.60938 1.3144-1.3125 1.3144h-1.875c-.72656 0-1.3125-.5868-1.3125-1.3144v-.1878H2.5625c-.32812 0-.5625.2582-.5625.5634v2.6288c0 .3286.23438.5633.5625.5633h10.875c.3047 0 .5625-.2347.5625-.5633v-2.6288Zm-2.9062 2.0655c0 .2582-.211.4694-.4688.4694-.2578 0-.4687-.2112-.4687-.4694s.2109-.4694.4687-.4694c.2578 0 .4688.2112.4688.4694Zm1.5 0c0 .2582-.211.4694-.4688.4694-.2578 0-.4687-.2112-.4687-.4694s.2109-.4694.4687-.4694c.2578 0 .4688.2112.4688.4694Z" fill="currentColor"/>',viewBox:"0 0 16 16"},funnel:{icon:'<path d="M18.037 3.87a1.235 1.235 0 0 0-1.141-.745H3.146a1.25 1.25 0 0 0-.923 2.09l.007.008 5.291 5.65v6.002a1.25 1.25 0 0 0 1.943 1.04l2.5-1.666a1.25 1.25 0 0 0 .557-1.041v-4.335l5.292-5.65.006-.007a1.234 1.234 0 0 0 .218-1.346Zm-6.596 6.332a.625.625 0 0 0-.17.423v4.583l-2.5 1.667v-6.25a.625.625 0 0 0-.169-.427L3.146 4.375h13.75l-5.455 5.827Z" fill="currentColor"/>',viewBox:"0 0 21 20"},funnelModified:{icon:'<g fill="currentColor"><path d="M12.338 9.457a4.556 4.556 0 0 1-.581-.427l-1.081 1.154a.573.573 0 0 0-.155.39v4.16l-2.27 1.517v-5.677a.573.573 0 0 0-.155-.39l-4.96-5.287h7.104s0-.063.009-.09c.027-.173.063-.337.109-.491l.036-.1c.027-.091.073-.227.146-.373.009-.027.018-.054.036-.081h-7.44c-.217 0-.435.063-.617.181s-.327.291-.418.49c-.09.2-.118.428-.082.646.037.218.137.418.282.581l4.814 5.132v5.46c0 .2.055.408.155.58.109.173.263.319.445.418a1.11 1.11 0 0 0 1.162-.054l2.271-1.517c.155-.1.282-.245.373-.409.09-.163.136-.345.136-.536v-3.942l1.063-1.135c-.128-.055-.255-.127-.382-.2Z"/><path d="M14.618 2a3.59 3.59 0 0 0-3.134 1.817c-.09.154-.164.308-.227.472-.055.1-.082.209-.118.327a2.024 2.024 0 0 0-.082.336c-.009.018-.009.027-.009.045a2.573 2.573 0 0 0-.046.382c-.018.082-.018.136-.018.218v.036c0 .345.055.69.155 1.018.2.7.608 1.308 1.144 1.762.136.127.282.227.436.327.146.09.29.163.436.227a.455.455 0 0 0 .118.045c.41.173.872.264 1.345.264a3.634 3.634 0 0 0 3.633-3.643A3.626 3.626 0 0 0 14.618 2Zm1.725 2.798-2.089 2.089-1.353-1.354c-.1-.09-.1-.254 0-.336.09-.09.245-.1.336 0l1.017 1.018 1.744-1.753c.1-.1.246-.1.345 0 .091.1.091.254 0 .336Z"/></g><defs><clipPath id="a"><path fill="#fff" transform="translate(2 2)" d="M0 0h16.25v15.387H0z"/></clipPath></defs>',viewBox:"0 0 20 20"},clock:{icon:'<path d="M10 1.875c-1.60697 0-3.17786.47652-4.514 1.36931-1.33615.89279-2.37756 2.16174-2.99252 3.64639-.61496 1.48465-.77586 3.1183-.46236 4.6944.31351 1.5761 1.08734 3.0238 2.22364 4.1601 1.1363 1.1363 2.58404 1.9102 4.16014 2.2237 1.57609.3135 3.2098.1526 4.6944-.4624 1.4847-.6149 2.7536-1.6563 3.6464-2.9925.8928-1.3361 1.3693-2.907 1.3693-4.514-.0023-2.15419-.859-4.21949-2.3823-5.74273C14.2195 2.73403 12.1542 1.87727 10 1.875Zm0 15c-1.35974 0-2.68895-.4032-3.81954-1.1586-1.13059-.7555-2.01178-1.8292-2.53213-3.0855-.52035-1.2562-.6565-2.63853-.39123-3.97215.26528-1.33362.92006-2.55862 1.88154-3.52011.96149-.96148 2.1865-1.61627 3.52012-1.88154 1.33362-.26527 2.71594-.12912 3.97224.39123 1.2562.52035 2.3299 1.40154 3.0854 2.53212C16.4718 7.31104 16.875 8.64025 16.875 10c-.0021 1.8227-.7271 3.5702-2.0159 4.8591-1.2889 1.2888-3.0364 2.0138-4.8591 2.0159ZM15 10c0 .1658-.0658.3247-.1831.4419-.1172.1173-.2761.1831-.4419.1831H10c-.16576 0-.32473-.0658-.44194-.1831-.11721-.1172-.18306-.2761-.18306-.4419V5.625c0-.16576.06585-.32473.18306-.44194C9.67527 5.06585 9.83424 5 10 5c.1658 0 .3247.06585.4419.18306.1173.11721.1831.27618.1831.44194v3.75h3.75c.1658 0 .3247.06585.4419.18306.1173.11721.1831.27618.1831.44194Z" fill="currentColor"/>',viewBox:"0 0 20 20"},templates:{icon:'<path d="M73.8 20H26.2c-3.4 0-6.2 2.8-6.2 6.2v47.6c0 3.4 2.8 6.2 6.2 6.2h47.6c3.4 0 6.2-2.8 6.2-6.2V26.2c0-3.4-2.8-6.2-6.2-6.2zM42.3 69.1c0 .8-.8 1.4-1.6 1.4H30.4c-.8 0-1.4-.8-1.4-1.6V48.8c0-.8.8-1.4 1.6-1.4H41c.8 0 1.4.8 1.4 1.6v20.1zm28.4.2c0 .8-.8 1.4-1.6 1.4H49.9c-.8 0-1.4-.8-1.4-1.6V48.8c0-.8.8-1.4 1.6-1.4h19.3c.8 0 1.4.8 1.4 1.6v20.3zm.2-29.4c0 .8-.8 1.4-1.6 1.4H30.4c-.8 0-1.4-.8-1.4-1.6v-9c0-.8.8-1.4 1.6-1.4h38.9c.8 0 1.4.8 1.4 1.6v9z"/>',viewBox:"0 0 100 100"},pages:{icon:'<path d="M5.4 2h5.7l2.7 2.7v7.5" stroke="currentColor" stroke-width=".9" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 13.1V4.7a.9.9 0 0 1 .9-.9h5.851a.36.36 0 0 1 .255.106l1.888 1.889A.36.36 0 0 1 12 6.05v7.05a.9.9 0 0 1-.9.9H3.9a.9.9 0 0 1-.9-.9Z" stroke="currentColor" stroke-width=".9" stroke-linecap="round" stroke-linejoin="round"/><path d="M9.6 3.8v2.04a.36.36 0 0 0 .36.36H12" stroke="currentColor" stroke-width=".9" stroke-linecap="round" stroke-linejoin="round"/>',viewBox:"0 0 16 16"},dynamicContent:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M2.05 3.467c0-.005.005-.12.283-.317.263-.187.68-.378 1.245-.548 1.123-.336 2.707-.553 4.48-.553 1.773 0 3.356.217 4.479.553.565.17.982.36 1.245.548.278.197.284.312.284.317 0 .005-.006.12-.284.317-.263.187-.68.378-1.245.547-1.123.337-2.706.553-4.48.553-1.772 0-3.356-.216-4.479-.553-.565-.17-.982-.36-1.245-.547-.278-.197-.284-.312-.284-.317ZM8.057.949c-1.85 0-3.545.224-4.796.6-.622.186-1.165.42-1.566.703-.386.274-.747.676-.747 1.215 0 .02 0 .04.002.06a.558.558 0 0 0-.002.041h.005-.005v10.259c0 .546.32.986.716 1.313.401.329.948.6 1.575.819 1.258.438 2.962.698 4.818.698 1.855 0 3.559-.26 4.818-.698.627-.218 1.173-.49 1.574-.82.397-.326.716-.766.716-1.312V3.568h-.004.004c0-.014 0-.028-.002-.041l.002-.06c0-.539-.361-.941-.747-1.215-.4-.284-.944-.517-1.566-.703-1.25-.376-2.946-.6-4.795-.6Zm6.008 3.95c-.346.188-.758.35-1.213.486-1.25.375-2.946.6-4.795.6-1.85 0-3.545-.225-4.796-.6a6.447 6.447 0 0 1-1.213-.486v4.027c0 .008.01.123.284.317.263.187.68.378 1.245.547 1.123.337 2.707.553 4.48.553 1.773 0 3.356-.216 4.479-.553.565-.17.982-.36 1.245-.547.278-.197.284-.312.284-.317V4.899ZM2.049 13.827v-3.469c.346.188.758.35 1.213.486 1.251.375 2.946.6 4.796.6 1.849 0 3.544-.225 4.795-.6a6.446 6.446 0 0 0 1.213-.486v3.47c0 .083-.048.242-.315.462-.263.216-.677.435-1.236.63-1.115.387-2.691.637-4.457.637-1.767 0-3.343-.25-4.457-.637-.56-.195-.974-.414-1.237-.63-.267-.22-.315-.379-.315-.463Z" fill="currentColor"/>',viewBox:"0 0 16 17"},colorLibrary:{icon:'<path fill="currentColor" fill-rule="evenodd" d="m8.616 19.678-4.45-2.385-.016-.01A2.429 2.429 0 0 1 3 15.203V9.797c0-.842.426-1.64 1.15-2.08l.017-.01 4.45-2.385a2.267 2.267 0 0 1 2.327 0l4.45 2.385.017.01a2.429 2.429 0 0 1 1.15 2.08v5.406c0 .842-.427 1.64-1.15 2.08l-.017.01-4.45 2.385a2.267 2.267 0 0 1-2.328 0Zm.73-1.223c.271.164.598.164.868 0l.016-.01 4.446-2.383c.268-.17.451-.49.451-.859V9.797c0-.368-.183-.689-.451-.859L10.23 6.555l-.016-.01a.824.824 0 0 0-.867 0l-.017.01-4.445 2.383c-.268.17-.452.491-.452.859v5.406c0 .368.184.689.452.859l4.445 2.383.017.01Zm.434-5.572a.384.384 0 0 0 .386-.383.384.384 0 0 0-.386-.383.384.384 0 0 0-.386.383c0 .211.173.383.386.383Zm1.82-.383c0 .996-.815 1.804-1.82 1.804A1.812 1.812 0 0 1 7.961 12.5c0-.997.815-1.804 1.82-1.804 1.004 0 1.818.807 1.818 1.804Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M18.546 8.247 15.518 6.37a.707.707 0 0 1-.228-.98.72.72 0 0 1 .987-.225l3.027 1.875a2.347 2.347 0 0 1 1.114 1.994v6.93c0 .81-.42 1.564-1.114 1.994l-3.027 1.875a.72.72 0 0 1-.987-.226.707.707 0 0 1 .228-.98l3.027-1.875a.928.928 0 0 0 .44-.788v-6.93a.928.928 0 0 0-.44-.788Z" clip-rule="evenodd"/>',viewBox:"0 0 24 24"}}),{},{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"},colorPaint:{icon:'<path fill="currentColor" d="M13.598 2.391C12.107.857 10.096-.002 8 0h-.082C5.81.023 3.796.91 2.314 2.467.83 4.025 0 6.128 0 8.32c0 3.44 2.045 6.325 5.335 7.534.371.136.769.178 1.158.122.39-.057.761-.21 1.082-.446.322-.237.584-.55.765-.913.18-.364.275-.767.275-1.176 0-.34.13-.666.36-.905.232-.24.545-.375.871-.375H13.4c.559.002 1.101-.194 1.538-.556a2.56 2.56 0 0 0 .862-1.435c.138-.63.205-1.274.2-1.92a8.548 8.548 0 0 0-.637-3.18 8.284 8.284 0 0 0-1.765-2.679Zm1 7.497a1.279 1.279 0 0 1-.431.715c-.218.18-.488.279-.767.277H9.846c-.653 0-1.279.27-1.74.75a2.613 2.613 0 0 0-.722 1.81c0 .205-.047.407-.138.588-.09.181-.221.338-.382.456a1.187 1.187 0 0 1-1.12.162C2.962 13.625 1.232 11.2 1.232 8.32c0-1.854.703-3.634 1.958-4.952a6.644 6.644 0 0 1 4.74-2.088H8a6.666 6.666 0 0 1 4.759 2.049 7.21 7.21 0 0 1 2.01 4.931 7.381 7.381 0 0 1-.168 1.628h-.003ZM8.922 4.16c0 .19-.054.376-.156.534a.932.932 0 0 1-.414.353.89.89 0 0 1-.533.055.913.913 0 0 1-.473-.263.996.996 0 0 1-.2-1.046.953.953 0 0 1 .34-.431.898.898 0 0 1 1.166.12.98.98 0 0 1 .27.678ZM5.538 6.08c0 .19-.054.376-.155.534a.932.932 0 0 1-.414.353.89.89 0 0 1-.534.055.913.913 0 0 1-.472-.263.996.996 0 0 1-.2-1.046.953.953 0 0 1 .34-.431.898.898 0 0 1 1.165.12.98.98 0 0 1 .27.678Zm0 4.48c0 .19-.054.376-.155.534a.933.933 0 0 1-.414.354.89.89 0 0 1-1.006-.209.996.996 0 0 1-.2-1.046.953.953 0 0 1 .34-.43.898.898 0 0 1 1.165.119.98.98 0 0 1 .27.678Zm6.77-4.48c0 .19-.055.376-.156.534a.932.932 0 0 1-.414.353.89.89 0 0 1-.534.055.913.913 0 0 1-.472-.263.972.972 0 0 1-.253-.491.997.997 0 0 1 .053-.555.953.953 0 0 1 .34-.431.898.898 0 0 1 1.165.12.98.98 0 0 1 .27.678Z"/>',viewBox:"0 0 16 16"},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"},dynamicContent:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M2.05 3.467c0-.005.005-.12.283-.317.263-.187.68-.378 1.245-.548 1.123-.336 2.707-.553 4.48-.553 1.773 0 3.356.217 4.479.553.565.17.982.36 1.245.548.278.197.284.312.284.317 0 .005-.006.12-.284.317-.263.187-.68.378-1.245.547-1.123.337-2.706.553-4.48.553-1.772 0-3.356-.216-4.479-.553-.565-.17-.982-.36-1.245-.547-.278-.197-.284-.312-.284-.317ZM8.057.949c-1.85 0-3.545.224-4.796.6-.622.186-1.165.42-1.566.703-.386.274-.747.676-.747 1.215 0 .02 0 .04.002.06a.558.558 0 0 0-.002.041h.005-.005v10.259c0 .546.32.986.716 1.313.401.329.948.6 1.575.819 1.258.438 2.962.698 4.818.698 1.855 0 3.559-.26 4.818-.698.627-.218 1.173-.49 1.574-.82.397-.326.716-.766.716-1.312V3.568h-.004.004c0-.014 0-.028-.002-.041l.002-.06c0-.539-.361-.941-.747-1.215-.4-.284-.944-.517-1.566-.703-1.25-.376-2.946-.6-4.795-.6Zm6.008 3.95c-.346.188-.758.35-1.213.486-1.25.375-2.946.6-4.795.6-1.85 0-3.545-.225-4.796-.6a6.447 6.447 0 0 1-1.213-.486v4.027c0 .008.01.123.284.317.263.187.68.378 1.245.547 1.123.337 2.707.553 4.48.553 1.773 0 3.356-.216 4.479-.553.565-.17.982-.36 1.245-.547.278-.197.284-.312.284-.317V4.899ZM2.049 13.827v-3.469c.346.188.758.35 1.213.486 1.251.375 2.946.6 4.796.6 1.849 0 3.544-.225 4.795-.6a6.446 6.446 0 0 0 1.213-.486v3.47c0 .083-.048.242-.315.462-.263.216-.677.435-1.236.63-1.115.387-2.691.637-4.457.637-1.767 0-3.343-.25-4.457-.637-.56-.195-.974-.414-1.237-.63-.267-.22-.315-.379-.315-.463Z" fill="currentColor"/>',viewBox:"0 0 16 17"},collectionTitleField:{icon:'<path d="M13 3.5v2a.5.5 0 0 1-1 0V4H8.5v8H10a.5.5 0 0 1 0 1H6a.5.5 0 0 1 0-1h1.5V4H4v1.5a.5.5 0 1 1-1 0v-2a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5Z" fill="currentColor"/>',viewBox:"0 0 16 16"},collectionAliasField:{icon:'<path fill="currentColor" d="M4.02 7.975a.018.018 0 0 0-.012 0 .016.016 0 0 0-.008.01c0 .004 0 .009.003.012a.015.015 0 0 0 .01.004.014.014 0 0 0 .011-.004.017.017 0 0 0 .004-.013.015.015 0 0 0-.008-.01ZM4.152 7.975a.017.017 0 0 0-.015.001.016.016 0 0 0-.005.012c0 .004.001.007.005.01.003.003.007.003.011.003.004 0 .007-.002.01-.005.002-.005.002-.009 0-.014a.014.014 0 0 0-.006-.007ZM20.818 16.58c.003-.465-.003-.884-.12-1.32l-.015-.06a3.59 3.59 0 0 0-.073-.23l-.024-.062c-.141-.368-.397-.888-.813-1.274l-.049-.044c-.45-.423-.885-.7-1.372-.875l-.07-.025c-.565-.2-1.134-.196-1.639-.193l-.286.001h-.285l-.28.001-.64.002-.98.003.003-.793.001-.582v-.51l.002-.396c.002-.31.004-.63-.05-.955l-.001-.005a2.618 2.618 0 0 0-.065-.293l-.008-.023-.01-.035a2.947 2.947 0 0 0-.624-1.13h.016a2.803 2.803 0 0 0-.14-.147l.538-1.129c.098.02.192.029.294.029l.059-.001a1.737 1.737 0 0 0 1.2-.453l.004-.004c.349-.334.542-.763.558-1.24v-.005c.006-.508-.141-.924-.435-1.235l-.055-.054a1.732 1.732 0 0 0-.518-.383l-.076-.03a1.813 1.813 0 0 0-.383-.118l-.021-.003c-.602-.046-1.076.095-1.491.443l-.013.012a1.772 1.772 0 0 0-.542 1.235v.074c0 .083 0 .18.01.278l.002.017c.079.445.303.829.631 1.08l.012.008-.085.188-.383.792a3.807 3.807 0 0 0-1.608-.415h-.002a4.006 4.006 0 0 0-1.195.316l-.321-.664-.099-.218.012-.008c.328-.25.552-.634.632-1.08l.002-.016a2.94 2.94 0 0 0 .01-.281l-.002-.073a1.771 1.771 0 0 0-.541-1.234l-.013-.012c-.416-.347-.89-.488-1.491-.443l-.021.003a1.82 1.82 0 0 0-.384.117l-.068.028-.008.003a1.742 1.742 0 0 0-.518.383l-.055.055c-.294.31-.44.726-.435 1.235v.004c.016.477.209.906.558 1.24l.003.004c.328.3.732.452 1.199.453h.064c.1 0 .194-.008.291-.027l.467.978c-.782.657-.987 1.531-1.039 1.859l-.002.013c0 .007-.002.013-.003.02l-.01.08v.018c-.022.202-.025.399-.024.58v1.641l.003.795v1.59c0 .16 0 .325.012.494v.012c.097.999.553 1.888 1.284 2.505l.04.033c.91.773 1.95.876 2.759.876h3.12l1.204-.001 1.41.001h2.008l.11-.001.104.001.095-.001c.047 0 .079 0 .116-.004a.81.81 0 0 0 .114-.018l.094-.02.075-.06a.639.639 0 0 0 .26-.412l.008-.038.001-.215v-.653Zm-10.799-.553c-.505-.533-.75-1.176-.745-1.968v-.921c0-.224 0-.45.002-.675l.001-.873.001-.758v-.347s-.023-.16-.023-.4c0-.185.014-.415.063-.654a2.093 2.093 0 0 1 .361-.837 1.45 1.45 0 0 1 .355-.33c.24-.156.552-.256.956-.262 0 0 .608-.052 1.145.29a1.565 1.565 0 0 1 .358.313c.07.083.142.176.204.283.07.122.127.261.153.424.056.35.06.662.06 1.269v.831l.002.52a229.93 229.93 0 0 0 .002 1.438v.43c0 .118 0 .24.004.363v.018c.037.495.256.97.587 1.269l.012.01c.465.387 1.006.556 1.655.515l.08-.005.074-.036a.689.689 0 0 0 .276-.228l.065-.09.011-.13a.692.692 0 0 0-.107-.507l-.041-.063-.061-.043a.738.738 0 0 0-.45-.135h-.011c-.32-.002-.487-.061-.658-.233-.147-.158-.194-.324-.186-.652v-.003l.001-.07.945-.002h.65c.19-.002.378-.002.568-.002h.168l.133-.001h.42c.561 0 1.054.153 1.467.456l.057.046.02.014c.117.09.238.185.322.29l.038.048.007.01c.428.524.614 1.117.604 1.923v.002l-.003.146v.028l-2.665.001H15.26c-.409.002-.818.002-1.227.002H12.053c-.88 0-1.526-.227-2.034-.714Zm3.493-11.871c.317-.3.683-.369 1.061-.2a.977.977 0 0 1 .481.569.997.997 0 0 1-.14.77.953.953 0 0 1-.548.36c-.336.024-.571-.033-.76-.185a.99.99 0 0 1-.338-.702.92.92 0 0 1 .243-.613ZM8.84 5.47c-.19.152-.425.21-.76.185a.951.951 0 0 1-.548-.36.997.997 0 0 1-.14-.77.979.979 0 0 1 .48-.57c.378-.168.745-.098 1.061.2.155.17.234.37.243.614a.99.99 0 0 1-.336.702Z"/><path fill="#6F7CA3" d="M13.953 5.17a.408.408 0 1 0 0-.815.408.408 0 0 0 0 .816ZM8.542 4.355a.408.408 0 1 0 0 .815.408.408 0 0 0 0-.815Z"/>',viewBox:"0 0 24 24"},collectionRichTextField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M8.001 3.599v1.066a.267.267 0 1 1-.533 0V3.9H5.601v4.233h.8a.267.267 0 0 1 0 .533H4.268a.267.267 0 0 1 0-.533h.686V3.899H3.2v.766a.267.267 0 1 1-.533 0V3.6a.267.267 0 0 1 .267-.267h4.8A.267.267 0 0 1 8 3.599Zm5.311 6.36c0 .185-.149.334-.333.334H4.312a.333.333 0 0 1 0-.666h8.667c.184 0 .333.149.333.333Zm-.333 2.668a.333.333 0 0 0 0-.667H4.312a.333.333 0 0 0 0 .667h8.667Zm.333-5c0 .184-.149.333-.333.333H8.646a.333.333 0 0 1 0-.667h4.333c.184 0 .333.15.333.334Zm-.333-2a.333.333 0 0 0 0-.667H8.646a.333.333 0 0 0 0 .667h4.333Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionImageField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="m13.098 8.464-3.24 1.967c-.609.37-1.385.312-1.933-.145L6.718 9.278a1 1 0 0 0-1.194-.066l-2.26 1.502-.37-.556 2.261-1.5a1.667 1.667 0 0 1 1.99.108l1.208 1.008a1 1 0 0 0 1.16.087l3.24-1.966.345.57Z" clip-rule="evenodd"/><path fill="#6F7CA3" fill-rule="evenodd" d="M9.027 6.05a.692.692 0 1 0 0 1.384.692.692 0 0 0 0-1.385Zm-1.359.692a1.359 1.359 0 1 1 2.718 0 1.359 1.359 0 0 1-2.718 0Z" clip-rule="evenodd"/><path fill="#6F7CA3" fill-rule="evenodd" d="M12.335 3.999H3.668a.333.333 0 0 0-.333.333v7.436c0 .184.149.333.333.333h8.667c.184 0 .333-.149.333-.333V4.332a.333.333 0 0 0-.333-.333Zm-8.667-.667a1 1 0 0 0-1 1v7.436a1 1 0 0 0 1 1h8.667a1 1 0 0 0 1-1V4.332a1 1 0 0 0-1-1H3.668Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionGalleryField:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M6.26248 6.57641c.19724-1.87664 1.87845-3.23806 3.75512-3.04082l15.9123 1.67246c1.9722.20729 2.9927 1.981 2.8062 3.75509l-.9345 8.89176c-.0023.0216-.0045.043-.0067.0643-.029.2784-.0554.5322-.1322.7571-.2334.6831-.8039 1.1968-1.5077 1.3575-.0268.0061-.054.0115-.0814.0163v2.4039c0 1.2111 0 2.1956-.1044 2.9719-.1088.8093-.3433 1.5035-.8964 2.0566-.5531.5531-1.2472.7876-2.0566.8964-.7762.1044-1.7608.1043-2.9718.1043H6.6569c-1.86419 0-3.37953-1.4928-3.416-3.3485a3.516405 3.516405 0 0 1-.00067-.0682c0-.0209.00086-.0416.00255-.0622.02919-.8357.37396-1.6312.96731-2.2245l4.6825-4.6825c.68342-.6834 1.79141-.6834 2.47491 0l1.3229 1.3229c.4436.4437.7258.7237.9592.9033.2173.1672.3057.1775.3494.1786.0456.0012.1336-.0048.3548-.157.2379-.1637.528-.4229.9848-.8347l4.6995-4.4364h-2.1129c-.4142 0-.75-.3357-.75-.75 0-.4142.3358-.75.75-.75h4c.4142 0 .75.3358.75.75v3.7438c0 .4142-.3358.75-.75.75s-.75-.3358-.75-.75v-2.0044l-4.8132 4.5437-.0127.0117-.0346.0311c-.4155.3747-.7805.7038-1.1106.9309-.357.2457-.7575.4334-1.244.4208-.4883-.0126-.8804-.2239-1.2253-.4893-.3201-.2463-.6712-.5975-1.0722-.9985l-1.3558-1.3558c-.0976-.0977-.2559-.0977-.35355 0l-4.6825 4.6825c-.33762.3376-.52805.7949-.52998 1.2721.02433 1.0371.87298 1.8706 1.91613 1.8706h13.3333c1.2783 0 2.1616-.0016 2.8262-.0909.643-.0865.9678-.2425 1.1958-.4705.2279-.2279.384-.5528.4704-1.1958.0894-.6646.091-1.5478.091-2.8261V11.7332c0-1.0585-.8582-1.91665-1.9167-1.91665H6.76536a.76244.76244 0 0 1-.01913 0H6.6569c-1.05853 0-1.91664.85805-1.91667 1.91665l.00053 9.0601c.00002.4142-.33574.75-.74996.7501-.41421 0-.75002-.3358-.75004-.75l-.00053-9.0601c0-1.6884 1.22467-3.09083 2.83415-3.36729l.1881-1.7896Zm1.32536 1.74014H22.6569c1.887 0 3.4167 1.52969 3.4167 3.41665v6.7101c.0766-.0665.1358-.1529.1696-.252.0145-.0423.0263-.1102.0666-.4932l.9345-8.89175c.1215-1.1553-.514-2.00591-1.4712-2.10652L9.86077 5.02738c-1.05275-.11065-1.99586.65307-2.10651 1.70582l-.16642 1.58335ZM8.6569 12.4832c-.69035 0-1.25.5597-1.25 1.25 0 .6904.55965 1.25 1.25 1.25.69036 0 1.25-.5596 1.25-1.25 0-.6903-.55964-1.25-1.25-1.25Zm-2.75 1.25c0-1.5188 1.23122-2.75 2.75-2.75 1.5188 0 2.75 1.2312 2.75 2.75s-1.2312 2.75-2.75 2.75c-1.51878 0-2.75-1.2312-2.75-2.75Z" fill="currentColor"/>',viewBox:"0 0 32 32"},collectionEmailField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M11.324 5.34a4.23 4.23 0 1 0 0 5.984.385.385 0 0 1 .543.543 5 5 0 1 1-7.07-7.07 5 5 0 0 1 8.535 3.535c0 .5-.152.968-.415 1.318-.263.352-.656.605-1.123.605-.464 0-.855-.25-1.118-.597a2.691 2.691 0 1 1-.42-3.21v-.04a.384.384 0 1 1 .768 0v1.924c0 .35.107.651.261.857.154.206.338.297.509.297.17 0 .353-.091.508-.297.154-.205.26-.508.26-.857a4.218 4.218 0 0 0-1.238-2.992Zm-1.069 2.992a1.923 1.923 0 1 0-3.846 0 1.923 1.923 0 0 0 3.846 0Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionPhoneField:{icon:'<path fill="currentColor" d="M11.589 12.665h-.061c-7.051-.405-8.053-6.357-8.193-8.173a1.077 1.077 0 0 1 .99-1.16h1.978a.717.717 0 0 1 .668.452l.545 1.343a.718.718 0 0 1-.158.775l-.764.772a3.364 3.364 0 0 0 2.72 2.728l.778-.772a.718.718 0 0 1 .78-.147l1.352.542a.718.718 0 0 1 .441.668v1.895a1.077 1.077 0 0 1-1.076 1.077ZM4.412 4.05a.359.359 0 0 0-.359.359v.029c.165 2.125 1.224 7.15 7.514 7.51a.359.359 0 0 0 .38-.338V9.693l-1.352-.542-1.03 1.023-.172-.021C6.27 9.76 5.847 6.637 5.847 6.605l-.021-.172 1.019-1.03-.538-1.354H4.412Z"/>',viewBox:"0 0 16 16"},collectionDateTimeField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M4.976 2.668c.212 0 .384.172.384.385v.769h4.616v-.77a.385.385 0 0 1 .769 0v.77h.385a1.539 1.539 0 0 1 1.538 1.538v5.77a1.539 1.539 0 0 1-1.538 1.538H4.205a1.539 1.539 0 0 1-1.538-1.538V5.36a1.538 1.538 0 0 1 1.538-1.538h.385v-.77c0-.212.172-.384.385-.384Zm-.77 1.923a.77.77 0 0 0-.769.77v.59c.232-.134.497-.206.77-.206h6.923c.272 0 .537.072.769.206v-.59a.769.769 0 0 0-.77-.77H4.207ZM11.9 7.283a.769.769 0 0 0-.77-.769H4.207a.77.77 0 0 0-.769.77v3.846a.77.77 0 0 0 .77.769h6.923a.769.769 0 0 0 .769-.77V7.284Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionNumberField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M7.289 2.676c.23.047.38.271.334.502L7.151 5.54h2.002l.505-2.529a.427.427 0 1 1 .837.167l-.472 2.362h1.633a.427.427 0 1 1 0 .853H9.852L9.305 9.13h1.633a.427.427 0 0 1 0 .853H9.134l-.506 2.529a.427.427 0 0 1-.836-.168l.472-2.361H6.262l-.505 2.529a.427.427 0 0 1-.837-.168l.472-2.361H3.76a.427.427 0 1 1 0-.853h1.804l.547-2.737H4.477a.427.427 0 0 1 0-.853H6.28l.505-2.529a.427.427 0 0 1 .503-.335ZM6.98 6.393 6.433 9.13h2.002l.547-2.737H6.98Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionLinkField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M5.237 5.616a2.286 2.286 0 1 0 0 4.572h1.418a.55.55 0 1 1 0 1.1H5.237a3.386 3.386 0 0 1 0-6.772h1.418a.55.55 0 0 1 0 1.1H5.237Zm.312 2.183a.55.55 0 0 1 .55-.55h4.244a.55.55 0 1 1 0 1.1H6.099a.55.55 0 0 1-.55-.55Zm7.646.103a2.286 2.286 0 0 0-2.286-2.286H9.491a.55.55 0 0 1 0-1.1h1.418a3.386 3.386 0 0 1 0 6.771H9.491a.55.55 0 0 1 0-1.1h1.418a2.286 2.286 0 0 0 2.286-2.285Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionSwitchField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M5.332 5.75a2.5 2.5 0 0 0 0 5h5a2.5 2.5 0 0 0 0-5h-5Zm5 .417a2.083 2.083 0 1 0 0 4.166 2.083 2.083 0 0 0 0-4.166Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionColorField:{icon:'<path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width=".991" d="M6.967 10.166a1.333 1.333 0 0 0-2.568.5 1 1 0 0 1-1.067.998 2 2 0 0 0 3.733-.997c0-.177-.035-.347-.098-.501Zm0 0a7.11 7.11 0 0 0 1.506-.72m-2.241-.011c.18-.53.422-1.036.72-1.51m1.52 1.52A7.109 7.109 0 0 0 10.59 7.38l1.723-2.584a.511.511 0 0 0-.71-.71L9.02 5.81a7.109 7.109 0 0 0-2.066 2.116 3.011 3.011 0 0 1 1.52 1.52"/>',viewBox:"0 0 16 16"},collectionOptionField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M3.332 4.583c0-.322.261-.583.583-.583h8.167a.583.583 0 0 1 0 1.167H3.915a.583.583 0 0 1-.583-.584Zm0 3.5c0-.322.261-.583.583-.583h8.167a.583.583 0 0 1 0 1.167H3.915a.583.583 0 0 1-.583-.584Zm9.333 3.5a.583.583 0 0 0-.583-.583H3.915a.583.583 0 0 0 0 1.167h8.167a.583.583 0 0 0 .583-.584Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionFileField:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M4 3.627c0-.53.41-.959.915-.959h2.36c1.253 0 2.455.522 3.34 1.45A5.076 5.076 0 0 1 12 7.622v4.755c0 .53-.41.959-.915.959h-6.17c-.505 0-.915-.43-.915-.96V3.628Zm7.259 4.184c0-.35-.133-.687-.37-.935a1.234 1.234 0 0 0-.893-.388H9.27a.894.894 0 0 1-.647-.28.983.983 0 0 1-.268-.68v-.76c0-.35-.133-.687-.37-.935a1.234 1.234 0 0 0-.892-.388H4.915a.178.178 0 0 0-.174.182v8.749c0 .1.078.182.174.182h6.17a.178.178 0 0 0 .174-.182V7.81ZM8.868 3.794c.149.298.229.632.229.974v.76c0 .05.018.095.05.13a.17.17 0 0 0 .123.053h.726c.327 0 .646.084.93.24a4.19 4.19 0 0 0-.834-1.283 3.982 3.982 0 0 0-1.224-.874ZM5.815 9.523a.38.38 0 0 1 .37-.389h3.63a.38.38 0 0 1 .37.389.38.38 0 0 1-.37.388h-3.63a.38.38 0 0 1-.37-.388Zm0 1.521a.38.38 0 0 1 .37-.388H8a.38.38 0 0 1 .37.388.38.38 0 0 1-.37.389H6.185a.38.38 0 0 1-.37-.389Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},collectionReferenceField:{icon:'<path d="M8.663 10.203c0 .168.146.321 0 .365-.028.007-.314 0-.349 0H4.002c-.431 0-.856-.102-1.247-.306a2.64 2.64 0 0 1-.64-.416c-.084-.08-.16-.161-.237-.241A3.435 3.435 0 0 1 1 7.284c0-.876.313-1.693.878-2.313C2.435 4.358 3.208 4 4.002 4h1.33c.189 0 .35.168.35.365 0 .095.06.249 0 .315-.065.07-.252.05-.35.05h-1.33c-.599 0-1.19.27-1.623.744a2.755 2.755 0 0 0 0 3.627c.119.124.244.241.376.329.37.27.802.408 1.247.408h4.312c.195 0 .349.168.349.365Z" fill="#6F7CA3"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.092 4.179c-.768 0-1.517.345-2.059.941a3.328 3.328 0 0 0-.854 2.253A3.346 3.346 0 0 0 2.255 9.86a3.32 3.32 0 0 1 .483-.307 2.557 2.557 0 0 1-.334-.3l-.002-.003a2.844 2.844 0 0 1-.705-1.877c0-.692.11-1.465.558-1.956.448-.492 1.21-.687 1.837-.687h1.33c.135 0 .26-.124.26-.276 0-.151-.125-.275-.26-.275h-1.33ZM2.837 9.703c-.151.078-.298.169-.44.274.14.106.287.2.44.272.192-.122.4-.201.6-.251a2.202 2.202 0 0 1-.6-.295Zm1.255.394c-.295 0-.7.05-1.06.245.336.15.695.226 1.06.226h4.312a.304.304 0 0 0 .073-.011.27.27 0 0 0 .186-.264c0-.153-.119-.276-.26-.276H4.093v.08Zm-1.286.334a2.733 2.733 0 0 1-.66-.428l-.004-.004c-.085-.081-.163-.163-.239-.243l-.002-.002A3.525 3.525 0 0 1 1 7.374c0-.898.321-1.737.901-2.374m.905 5.431c.402.21.84.316 1.286.316h4.312c.046 0 .09-.01.12-.018h.003a.449.449 0 0 0 .314-.436.447.447 0 0 0-.437-.455H4.092a2.01 2.01 0 0 1-1.194-.391l-.004-.003a2.184 2.184 0 0 1-.36-.314 2.665 2.665 0 0 1 0-3.506c.417-.457.986-.716 1.558-.716h1.33a.452.452 0 0 0 .438-.454A.452.452 0 0 0 5.422 4h-1.33C3.27 4 2.474 4.37 1.9 5" fill="#6F7CA3"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.409 7.22h4.16a.81.81 0 0 1 .81.81v4.16a.81.81 0 0 1-.81.81h-4.16a.81.81 0 0 1-.81-.81V8.03a.81.81 0 0 1 .81-.81Zm0 .7a.11.11 0 0 0-.11.11v4.16c0 .06.05.11.11.11h4.16a.11.11 0 0 0 .11-.11V8.03a.11.11 0 0 0-.11-.11h-4.16Z" fill="currentColor"/>',viewBox:"0 0 16 16"},collectionMultiReferenceField:{icon:'<path d="M8.915 7.11c0 .149.182.268.046.307-.025.007-.509 0-.54 0H4.43c-.399 0-.792-.09-1.153-.27a2.459 2.459 0 0 1-.592-.368c-.078-.07-.148-.142-.22-.212a2.956 2.956 0 0 1-.811-2.05c0-.773.29-1.494.812-2.042a2.734 2.734 0 0 1 1.965-.857h1.23c.174 0 .323.148.323.322a.327.327 0 0 1-.322.322H4.432c-.554 0-1.102.239-1.501.658a2.341 2.341 0 0 0 0 3.202c.11.11.225.213.347.29.342.238.741.36 1.154.36h4.483c.18 0 0 .165 0 .339Z" fill="currentColor"/><path d="M8.742 11.676c0 .18.447.322.267.322H4.432c-.735 0-1.45-.309-1.965-.85a2.956 2.956 0 0 1-.812-2.05c0-.772.29-1.494.812-2.042.07-.07.141-.141.219-.206.187-.148.386-.27.592-.367.342.238.741.36 1.154.36-.316 0-.773.13-1.154.374a1.858 1.858 0 0 0-.347.284 2.341 2.341 0 0 0 0 3.202c.399.42.934.651 1.5.651H9.01c.032 0-.524.007-.499.013a.325.325 0 0 1 .232.31Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.432 1.699c-.712 0-1.406.306-1.907.832a2.86 2.86 0 0 0-.79 1.987c0 .752.282 1.46.79 1.992.068.069.135.136.208.203.143-.104.292-.195.445-.271a2.345 2.345 0 0 1-.304-.263l-.002-.002a2.422 2.422 0 0 1 0-3.313 2.173 2.173 0 0 1 1.56-.682h1.23c.13 0 .242-.112.242-.242a.247.247 0 0 0-.241-.241H4.432Zm-1.16 4.877c-.14.068-.276.148-.407.24.14.102.29.19.445.256l.005.002.024.012c.176-.1.364-.179.546-.233a2.074 2.074 0 0 1-.614-.277Zm1.16.348c-.245 0-.587.083-.906.244.29.112.596.169.906.169h4.046l.216.002a15.309 15.309 0 0 0 .222 0l-.01-.017c-.011-.02-.026-.047-.038-.073a.334.334 0 0 1-.033-.138c0-.057.014-.11.03-.153.007-.022.016-.043.023-.061l.002-.005.015-.039H4.432v.071Zm4.506-.069h-.001Zm-5.59.414c.343.152.71.229 1.084.229h4.044a54.293 54.293 0 0 0 .458.002l.022-.001c.004 0 .015-.001.025-.004h.002a.17.17 0 0 0 .07-.036.119.119 0 0 0 .038-.077.153.153 0 0 0-.009-.066.352.352 0 0 0-.022-.049l-.017-.031a.681.681 0 0 1-.028-.054.176.176 0 0 1-.02-.071c0-.03.009-.063.021-.1a1.18 1.18 0 0 1 .021-.053l.002-.005.02-.05a.298.298 0 0 0 .015-.058.138.138 0 0 0-.01-.078c-.03-.065-.1-.075-.149-.075H4.432c-.396 0-.78-.117-1.107-.346l-.004-.002a1.997 1.997 0 0 1-.333-.278 2.26 2.26 0 0 1 0-3.09 2.012 2.012 0 0 1 1.444-.633h1.23a.408.408 0 0 0 .403-.403.408.408 0 0 0-.402-.402H4.432c-.758 0-1.494.325-2.024.882a3.02 3.02 0 0 0-.834 2.098c0 .793.298 1.541.834 2.104l.002.002c.062.062.126.126.194.19-.068.06-.132.123-.193.184L2.41 7l-.002.002a3.02 3.02 0 0 0-.834 2.098c0 .793.298 1.541.834 2.104.53.557 1.267.876 2.024.876h4.577c.013 0 .027 0 .04-.003a.108.108 0 0 0 .052-.022.087.087 0 0 0 .027-.096.11.11 0 0 0-.028-.042.363.363 0 0 0-.052-.04 3.428 3.428 0 0 0-.06-.039.785.785 0 0 1-.122-.092c-.035-.034-.043-.057-.043-.069a.404.404 0 0 0-.078-.237h.019l.178-.003.055-.001h.017l.006-.001.013-.003c.028-.014.053-.105.007-.152a.15.15 0 0 0-.021-.005H4.432a1.983 1.983 0 0 1-1.443-.626 2.26 2.26 0 0 1 0-3.091c.097-.104.208-.19.333-.272m5.144 4.15H4.432c-.59 0-1.145-.242-1.56-.676a2.422 2.422 0 0 1 0-3.313c.093-.099.194-.181.304-.257a2.513 2.513 0 0 1-.445-.272 2.86 2.86 0 0 0-.996 2.181c0 .754.283 1.462.79 1.994.5.526 1.195.826 1.907.826H8.82a.67.67 0 0 1-.068-.058c-.044-.043-.091-.106-.091-.184a.244.244 0 0 0-.173-.232h-.003l-.005-.002a.08.08 0 0 1-.015-.007Z" fill="#6F7CA3"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.4 4.31h3.487c.375 0 .68.304.68.679v3.486a.679.679 0 0 1-.68.68H9.401a.679.679 0 0 1-.68-.68V4.99c0-.375.305-.68.68-.68Zm0 .587a.092.092 0 0 0-.091.092v3.486c0 .051.041.092.092.092h3.486c.051 0 .092-.04.092-.092V4.99a.092.092 0 0 0-.092-.092H9.401ZM9.4 9.693h3.487c.375 0 .68.304.68.679v3.487a.679.679 0 0 1-.68.679H9.401a.679.679 0 0 1-.68-.68v-3.486c0-.375.305-.68.68-.68Zm0 .587a.092.092 0 0 0-.091.092v3.487c0 .05.041.091.092.091h3.486c.051 0 .092-.04.092-.091v-3.487a.092.092 0 0 0-.092-.092H9.401Z" fill="currentColor"/>',viewBox:"0 0 16 16"},localUpload:{icon:'<path d="M8.9375 11.644c.30469 0 .5625-.2347.5625-.5633V7.13743h2.0391c.4218 0 .6328-.4929.3281-.79804L8.30469 2.77166c-.16407-.1643-.46875-.1643-.63281 0l-3.5625 3.56773c-.30469.30514-.09375.79804.32812.79804H6.5v3.94327c0 .3286.23438.5633.5625.5633h1.875ZM14 11.4563c0-.3052-.2578-.5634-.5625-.5634H10.25v.1878c0 .7276-.60938 1.3144-1.3125 1.3144h-1.875c-.72656 0-1.3125-.5868-1.3125-1.3144v-.1878H2.5625c-.32812 0-.5625.2582-.5625.5634v2.6288c0 .3286.23438.5633.5625.5633h10.875c.3047 0 .5625-.2347.5625-.5633v-2.6288Zm-2.9062 2.0655c0 .2582-.211.4694-.4688.4694-.2578 0-.4687-.2112-.4687-.4694s.2109-.4694.4687-.4694c.2578 0 .4688.2112.4688.4694Zm1.5 0c0 .2582-.211.4694-.4688.4694-.2578 0-.4687-.2112-.4687-.4694s.2109-.4694.4687-.4694c.2578 0 .4688.2112.4688.4694Z" fill="currentColor"/>',viewBox:"0 0 16 16"},funnel:{icon:'<path d="M18.037 3.87a1.235 1.235 0 0 0-1.141-.745H3.146a1.25 1.25 0 0 0-.923 2.09l.007.008 5.291 5.65v6.002a1.25 1.25 0 0 0 1.943 1.04l2.5-1.666a1.25 1.25 0 0 0 .557-1.041v-4.335l5.292-5.65.006-.007a1.234 1.234 0 0 0 .218-1.346Zm-6.596 6.332a.625.625 0 0 0-.17.423v4.583l-2.5 1.667v-6.25a.625.625 0 0 0-.169-.427L3.146 4.375h13.75l-5.455 5.827Z" fill="currentColor"/>',viewBox:"0 0 21 20"},funnelModified:{icon:'<g fill="currentColor"><path d="M12.338 9.457a4.556 4.556 0 0 1-.581-.427l-1.081 1.154a.573.573 0 0 0-.155.39v4.16l-2.27 1.517v-5.677a.573.573 0 0 0-.155-.39l-4.96-5.287h7.104s0-.063.009-.09c.027-.173.063-.337.109-.491l.036-.1c.027-.091.073-.227.146-.373.009-.027.018-.054.036-.081h-7.44c-.217 0-.435.063-.617.181s-.327.291-.418.49c-.09.2-.118.428-.082.646.037.218.137.418.282.581l4.814 5.132v5.46c0 .2.055.408.155.58.109.173.263.319.445.418a1.11 1.11 0 0 0 1.162-.054l2.271-1.517c.155-.1.282-.245.373-.409.09-.163.136-.345.136-.536v-3.942l1.063-1.135c-.128-.055-.255-.127-.382-.2Z"/><path d="M14.618 2a3.59 3.59 0 0 0-3.134 1.817c-.09.154-.164.308-.227.472-.055.1-.082.209-.118.327a2.024 2.024 0 0 0-.082.336c-.009.018-.009.027-.009.045a2.573 2.573 0 0 0-.046.382c-.018.082-.018.136-.018.218v.036c0 .345.055.69.155 1.018.2.7.608 1.308 1.144 1.762.136.127.282.227.436.327.146.09.29.163.436.227a.455.455 0 0 0 .118.045c.41.173.872.264 1.345.264a3.634 3.634 0 0 0 3.633-3.643A3.626 3.626 0 0 0 14.618 2Zm1.725 2.798-2.089 2.089-1.353-1.354c-.1-.09-.1-.254 0-.336.09-.09.245-.1.336 0l1.017 1.018 1.744-1.753c.1-.1.246-.1.345 0 .091.1.091.254 0 .336Z"/></g><defs><clipPath id="a"><path fill="#fff" transform="translate(2 2)" d="M0 0h16.25v15.387H0z"/></clipPath></defs>',viewBox:"0 0 20 20"},clock:{icon:'<path d="M10 1.875c-1.60697 0-3.17786.47652-4.514 1.36931-1.33615.89279-2.37756 2.16174-2.99252 3.64639-.61496 1.48465-.77586 3.1183-.46236 4.6944.31351 1.5761 1.08734 3.0238 2.22364 4.1601 1.1363 1.1363 2.58404 1.9102 4.16014 2.2237 1.57609.3135 3.2098.1526 4.6944-.4624 1.4847-.6149 2.7536-1.6563 3.6464-2.9925.8928-1.3361 1.3693-2.907 1.3693-4.514-.0023-2.15419-.859-4.21949-2.3823-5.74273C14.2195 2.73403 12.1542 1.87727 10 1.875Zm0 15c-1.35974 0-2.68895-.4032-3.81954-1.1586-1.13059-.7555-2.01178-1.8292-2.53213-3.0855-.52035-1.2562-.6565-2.63853-.39123-3.97215.26528-1.33362.92006-2.55862 1.88154-3.52011.96149-.96148 2.1865-1.61627 3.52012-1.88154 1.33362-.26527 2.71594-.12912 3.97224.39123 1.2562.52035 2.3299 1.40154 3.0854 2.53212C16.4718 7.31104 16.875 8.64025 16.875 10c-.0021 1.8227-.7271 3.5702-2.0159 4.8591-1.2889 1.2888-3.0364 2.0138-4.8591 2.0159ZM15 10c0 .1658-.0658.3247-.1831.4419-.1172.1173-.2761.1831-.4419.1831H10c-.16576 0-.32473-.0658-.44194-.1831-.11721-.1172-.18306-.2761-.18306-.4419V5.625c0-.16576.06585-.32473.18306-.44194C9.67527 5.06585 9.83424 5 10 5c.1658 0 .3247.06585.4419.18306.1173.11721.1831.27618.1831.44194v3.75h3.75c.1658 0 .3247.06585.4419.18306.1173.11721.1831.27618.1831.44194Z" fill="currentColor"/>',viewBox:"0 0 20 20"},templates:{icon:'<path d="M73.8 20H26.2c-3.4 0-6.2 2.8-6.2 6.2v47.6c0 3.4 2.8 6.2 6.2 6.2h47.6c3.4 0 6.2-2.8 6.2-6.2V26.2c0-3.4-2.8-6.2-6.2-6.2zM42.3 69.1c0 .8-.8 1.4-1.6 1.4H30.4c-.8 0-1.4-.8-1.4-1.6V48.8c0-.8.8-1.4 1.6-1.4H41c.8 0 1.4.8 1.4 1.6v20.1zm28.4.2c0 .8-.8 1.4-1.6 1.4H49.9c-.8 0-1.4-.8-1.4-1.6V48.8c0-.8.8-1.4 1.6-1.4h19.3c.8 0 1.4.8 1.4 1.6v20.3zm.2-29.4c0 .8-.8 1.4-1.6 1.4H30.4c-.8 0-1.4-.8-1.4-1.6v-9c0-.8.8-1.4 1.6-1.4h38.9c.8 0 1.4.8 1.4 1.6v9z"/>',viewBox:"0 0 100 100"},pages:{icon:'<path d="M5.4 2h5.7l2.7 2.7v7.5" stroke="#AEB1BD" stroke-width=".9" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 13.1V4.7a.9.9 0 0 1 .9-.9h5.851a.36.36 0 0 1 .255.106l1.888 1.889A.36.36 0 0 1 12 6.05v7.05a.9.9 0 0 1-.9.9H3.9a.9.9 0 0 1-.9-.9Z" stroke="#AEB1BD" stroke-width=".9" stroke-linecap="round" stroke-linejoin="round"/><path d="M9.6 3.8v2.04a.36.36 0 0 0 .36.36H12" stroke="#AEB1BD" stroke-width=".9" stroke-linecap="round" stroke-linejoin="round"/>',viewBox:"0 0 16 16"},globalTypography:{icon:'<path d="M8.01496 2h4.95064c.6936 0 1.0319.34407 1.0319 1.03784 0 .53584.0056 1.07168 0 1.60188-.0056.5584-.3722.95323-.8853.95887-.5187.00564-.9021-.39483-.9134-.97015-.0057-.21434-.0113-.43432 0-.64865.0056-.15229-.0564-.18614-.1974-.18614-.9642.00564-1.934.00564-2.8982 0-.16351 0-.20298.05641-.20298.2087a1888.39089 1888.39089 0 0 1 0 7.98685c0 .1579.05074.2143.20862.2087.19735-.0057.3947-.0169.58642.0282.44544.1072.72734.4907.69354.9589-.0338.4343-.3834.7953-.82887.8065-1.04314.0113-2.08064.0113-3.12378 0-.45108-.0056-.81195-.3835-.84014-.8291-.0282-.4512.27065-.8517.72173-.9307.1748-.0338.35524-.0395.53003-.0282.19735.0113.25374-.0564.25374-.2538-.01128-.9758-.00564-1.95158-.00564-2.92737 0-1.65265-.00564-3.29965.00564-4.95229 0-.22562-.06203-.28203-.28193-.28203-.93037.01128-1.8551.01128-2.78546 0-.19735 0-.26501.04513-.2481.24818.01692.21434.00564.42867 0 .64865 0 .5302-.3947.92503-.89653.91939-.49056-.00564-.87962-.39483-.88526-.90247a89.767645 89.767645 0 0 1 0-1.74289c0-.5866.37215-.95323.95292-.95887h5.05781Z" fill="currentColor"/>',viewBox:"0 0 16 16"}})},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"),TypographyLibrary:n("/settings/typography-library"),PageList:n("/pages"),PageEditor:n("/editor/:id/:type?"),PopupEditor:n("/popup-editor/:id/:type?"),DynamicContent:n("/dynamic-content"),DynamicContentSingleCollection:n("/dynamic-content/:collectionId"),DynamicContentCreateItem:n("/dynamic-content/:collectionId/items/create"),DynamicContentEditItem:n("/dynamic-content/:collectionId/items/:itemId"),Templates:n("/templates"),Icons:n("/icons")}},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",hint:"#7A7C85",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:()=>h,_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,h=void 0===f?150:f,v=e.minOpacity,b=void 0===v?0:v,y=e.maxOpacity,m=void 0===y?1:y,g=e.easing,E=void 0===g?n.Z5.easeInOutQuad:g,O=e.debounceMeasure,_=void 0!==O&&O,w=Array.isArray(i)?i.length>0:!!i,C=(t=(0,o.Z)({debounce:_?h+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=C[0],S=C[1],x=(0,n.q_)({from:{height:0,opacity:b,y:0},to:{height:w?S.height:0,opacity:w?m:b,y:w?0:-1*s},config:{duration:h,easing:E}}),P=(0,n.q_)({from:{x:0},to:{x:w?0:-1*s},config:{duration:h,easing:E}}),L={x:0,y:0};switch(l){case p.slideDown:L.y=-1*s,L.x=0;break;case p.slideUp:L.y=s,L.x=0;break;case p.slideLeft:L.x=s,L.y=0;break;case p.slideRight:L.x=-1*s,L.y=0}var A=(0,n.Yz)(i,{from:u(u(u(u({opacity:b},L),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},L),l===p.zoomIn&&{transform:"scale(0.8)"}),l===p.zoomOut&&{transform:"scale(1.2)"}),l===p.fadeIn&&{opacity:0}),config:{duration:h,easing:E}});return{animationStyle:l===p.sidebar?P:x,ref:I,transitions:A}},h=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(7602),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),h=f[0],v=f[1],b=(null==h?void 0:h.isIntersecting)&&d,y=function(e){var t=i(e,1)[0];v(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:h,intersectionElementRef:p}}},111:(e,t,r)=>{"use strict";r.d(t,{K:()=>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(){var e,t,r=(e=(0,n.useState)(!1),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 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}}(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=r[0],a=r[1],l=function(e){"shift"===e.key.toLowerCase()&&a(!0)},c=function(e){"shift"===e.key.toLowerCase()&&a(!1)};return(0,n.useEffect)((function(){return window.addEventListener("keydown",l),window.addEventListener("keyup",c),function(){window.removeEventListener("keydown",l),window.removeEventListener("keyup",c)}}),[]),i}},4370:(e,t,r)=>{"use strict";r.d(t,{a:()=>f});var n=r(3106),o=r(7294),i=r(4420);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,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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(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 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 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}}(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 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=(0,i.createEnumParam)(["asc","desc"]),f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.limit,r=void 0===t?n.Hy:t,a=e.updateQueryParams,l=void 0!==a&&a,u=s((0,i.useQueryParams)({page:(0,i.withDefault)(i.NumberParam,1),sortProperty:(0,i.withDefault)(i.StringParam,""),sortDirection:(0,i.withDefault)(p,void 0),filter:(0,i.withDefault)(i.JsonParam,{})}),2),d=u[0],f=u[1],h=s((0,o.useState)({page:1,sortProperty:"",sortDirection:void 0,filter:{}}),2),v=h[0],b=h[1],y=l?v:d,m=(r=d.filter.limit?Number(d.filter.limit):r)*Math.max(0,y.page-1),g=(0,o.useCallback)((function(e){l?b((function(t){return c(c({},t),e)})):f(c({},e))}),[f,b,l]),E=(0,o.useCallback)((function(e){return g({filter:e})}),[g]);return{pageInfo:y,onPageChange:function(e){return g({page:e})},onColumnSort:function(e){var t;t=e!==y.sortProperty?{sortDirection:"asc",sortProperty:e}:{sortDirection:"asc"===y.sortDirection?"desc":"asc",sortProperty:e},g(t)},offset:m,itemsPerPage:r,onFilterItems:E}}},1954:(e,t,r)=>{"use strict";r.d(t,{h:()=>E,l:()=>g});var n=r(1709),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 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 v(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){b(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 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]),h=(0,c.useRef)(null),b=(0,d.D)(null===(t=h.current)||void 0===t?void 0:t.getBoundingClientRect()),m=y((0,c.useState)(0),2),g=m[0],E=m[1],O=y((0,c.useState)({left:0,top:0,arrowPlacement:"bottom"}),2),_=O[0],w=O[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&&h.current){var e=f.current.getBoundingClientRect(),t=h.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,O=s+u,_=c+u,C=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},S=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},x=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)},L=function(e,t){return o.dZ?"left"===t?Math.max(0,E-2*c-e):Math.max(0,E-c-e):e},A={top:{top:P({arrowPosition:"top"}),left:L(I())},bottom:{top:P({arrowPosition:"bottom"}),left:L(I())},left:{top:S(),left:L(x({arrowPosition:"left"}),"left")},right:{top:S(),left:L(x({arrowPosition:"right"}),"right")},middle:{top:C<u?u:C/2,left:L(Math.floor(e.left-c/2+e.width/2))}};"auto"!==a?(d={top:A.bottom,bottom:A.top,left:A.right,right:A.left,middle:A.middle}[a],y=a):e.bottom+O>m&&e.top>O?(d=A.top,y="bottom"):_>e.left&&e.bottom+O>m&&!p?(d=A.right,y="left"):_<e.left&&e.bottom+O>m&&!p?(d=A.left,y="right"):e.bottom+O<=m?(d=A.bottom,y="top"):(d=A.middle,y="middle"),w(v(v({},d),{},{arrowPlacement:y}))}}}),[f,h,b,g,r,u,a,p]),{position:_,triggerWidth:g,triggerRef:f,popoverRef:h}},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=e.hasBackdropBackground,f=void 0!==d&&d,h=(0,n.d)().hasModalOnStack;return(0,c.useEffect)((function(){return t&&(document.body.style.overflow="hidden"),function(){h||(document.body.style.overflow="initial")}}),[t,h]),(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(f),onClick:function(e){o&&o(e)},role:"presentation"}),r]})}),document.body)}))},O={name:"18bn43e-backdrop",styles:"background-color:rgba(0, 0, 0, 0.1);label:backdrop;"},_={wrapper:function(e){return(0,a.iv)("position:fixed;z-index:",e||i.W5.highest,";inset:0;;label:wrapper;")},backdrop:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,a.iv)(l.iZ.centeredFlex,";position:fixed;inset:0;z-index:",i.W5.negative,";",e&&O,";;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)()}},2811:(e,t,r)=>{"use strict";r.d(t,{T:()=>u});var n=r(3106),o=r(2445),i=r(3896),a=r(7602),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(3896),i=r(7602),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)?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]),h=(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,h=null!==(r=null==f?void 0:f.addons[c])&&void 0!==r?r:null,v=null!==(n=null==h||null===(o=h.items)||void 0===o?void 0:o[d])&&void 0!==n?n:[],b=v.findIndex((function(e){return e.id===s}));return{content:v[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,h=c.contentItemIdx;if((0,i.$K)(f)){var v,b=null==d||null===(v=d.settings)||void 0===v?void 0:v[n.pb.bodyItemsKey];return null==b?void 0:b[p].table_advanced_item[f].content[h]}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[h]}),[e]),getCollectionItemAddon:f,getCollectionItemAddonChildAddonById:h}}},1234:(e,t,r)=>{"use strict";r.d(t,{$:()=>l,O:()=>c});var n=r(7602),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}},2392:(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 h?t:h,a=Object.create(i.prototype),l=new x(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 h(){}function v(){}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=h.prototype=Object.create(y);function O(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,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=C(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 C(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,C(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(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:L}}function L(){return{value:void 0,done:!0}}return v.prototype=b,n(E,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:v,configurable:!0}),v.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"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(_.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()}))},O(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,x.prototype={constructor:x,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,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),S(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;S(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 h(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 v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(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&&v(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/[email protected]/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,h,v,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/),h=a.line,v=Math.max(0,(h||0)-3),b=Math.min(f.length-1,(h||0)+4),y=f.slice(v,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:v}}));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:O.titleAndContent,children:[(0,s.tZ)("h4",{css:O.callStack,children:"Source"}),(0,s.BX)("div",{css:O.sourceWrapper,children:[(0,s.BX)("p",{css:O.sourceFilePath,children:[t.source," (",t.line,":",t.column,")"]}),(0,s.tZ)("div",{css:O.sourceEditor,children:(0,s.tZ)("div",{css:O.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:O.sourceLine(a),children:[(0,s.BX)("div",{children:[(0,s.tZ)("span",{css:O.angleRight,children:a&&">"}),(0,s.BX)("span",{css:O.lineNumber,children:[i," | "]}),(0,s.tZ)("span",{css:O.line,children:r})]}),a&&(0,s.BX)("div",{children:[(0,s.tZ)("span",{css:O.angleRight,children:" "}),(0,s.BX)("span",{css:O.lineNumber,children:[" ".repeat(l.toString().length)," | "]}),(0,s.BX)("span",{css:[O.line,{color:n.qo.text.error},";label:renderErrorSource;"],children:[" ".repeat(t.column||0),"^"]})]})]},o)}))})})]})]}):(0,s.tZ)("p",{css:O.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:O.container,children:(0,s.tZ)("div",{css:O.wrapper,children:(0,s.BX)("div",{css:O.scrollWrapper,children:[(0,s.tZ)("div",{css:O.indicator}),(0,s.tZ)("h2",{css:O.errorHeading,children:"Unhandled Runtime Error"}),(0,s.tZ)("p",{css:O.errorMessage,children:(null==t?void 0:t.toString())||"Something Went Wrong!"}),this.renderErrorSource(),(0,s.BX)("div",{css:O.callStackWrapper,children:[(0,s.tZ)("h4",{css:O.callStack,children:"Call Stack"}),n.map((function(e,t){return(0,s.BX)("div",{css:O.stackItem,children:[(0,s.tZ)("h6",{css:O.functionName,children:e.functionName||(n=r.source||"",o=n.split("/"),0===o.length?"":o[o.length-1])}),(0,s.BX)("p",{css:O.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&&h(t.prototype,r),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),g}(c.Component);const E=g;var O={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;")},_=r(3871),w=r(935),C=r(7498),I=r(7264),S=r(7579),x=r(5587),P=r(4285),L=r(9101),A=r(1234),T=r(7602);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 Z(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?Z(Object(r),!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(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"!==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}function B(e){switch(e){case"text":return{id:(0,T.x0)(),name:"Text",type:"text",placeholder:"",default_value:"",max_length:"",description:"",required:0,is_textarea:0};case"alias":return{id:(0,T.x0)(),name:"Alias",type:"alias",description:"",placeholder:"",required:1};case"rich-text":return{id:(0,T.x0)(),name:"Rich Text",type:"rich-text",description:"",required:0,max_length:"",min_length:"",placeholder:""};case"image":return{id:(0,T.x0)(),name:"Image",type:"image",description:"",required:0,default_value:"",placeholder:""};case"gallery":return{id:(0,T.x0)(),name:"Gallery",type:"gallery",description:"",placeholder:"",required:0,min_length:"",max_length:""};case"video":return{id:(0,T.x0)(),name:"Video",type:"video",description:"",required:0,default_value:"",placeholder:""};case"date-time":return{id:(0,T.x0)(),name:"Date-time",type:"date-time",description:"",placeholder:"",required:0,show_time:1};case"number":return{id:(0,T.x0)(),name:"Number",type:"number",description:"",default_value:"",max_length:"",min_length:"",placeholder:"",required:0,number_step:"1",number_format:"any",allow_negative:0,number_unit:""};case"switch":return{id:(0,T.x0)(),name:"Switch",type:"switch",description:"",default_value:0,placeholder:"",required:0};case"color":return{id:(0,T.x0)(),name:"Color",type:"color",description:"",default_value:"#000000",placeholder:"",required:0};case"option":return{id:(0,T.x0)(),name:"Option",type:"option",description:"",options:[{label:"Option 1",value:(0,T.x0)()},{label:"Option 2",value:(0,T.x0)()}],default_value:"option-1",placeholder:"Enter option",required:0};case"file":return{id:(0,T.x0)(),name:"File",type:"file",description:"",required:0,file_extensions:[],placeholder:"Enter file"};case"reference":return{id:(0,T.x0)(),name:"Reference",type:"reference",description:"",reference_collection_id:1,reference_collection_name:"ref-collection",placeholder:"",required:0,default_value:[],reference_items:[]};case"multi-reference":return{id:(0,T.x0)(),name:"Multi reference",type:"multi-reference",description:"",reference_collection_id:1,reference_collection_name:"ref-collection",default_value:[],placeholder:"",required:0,reference_items:[]};case"title":return{id:(0,T.x0)(),name:"Content",type:"title",description:"",placeholder:"Enter content",required:1};case"email":return{id:(0,T.x0)(),name:"Email",type:"email",description:"",placeholder:"",required:0};case"phone":return{id:(0,T.x0)(),name:"Phone",type:"phone",description:"",placeholder:"",required:0};case"link":return{id:(0,T.x0)(),name:"Link",type:"link",description:"",placeholder:"",required:0};default:return{id:(0,T.x0)(),name:"Content",type:"title",description:"",placeholder:"",required:0}}}function M(e){return e?{title:"collectionTitleField",text:"collectionTitleField",alias:"collectionAliasField","rich-text":"collectionRichTextField",image:"collectionImageField",gallery:"collectionGalleryField",video:"collectionVideoField",email:"collectionEmailField",phone:"collectionPhoneField","date-time":"collectionDateTimeField",number:"collectionNumberField",link:"collectionLinkField",switch:"collectionSwitchField",color:"collectionColorField",option:"collectionOptionField",file:"collectionFileField",reference:"collectionReferenceField","multi-reference":"collectionMultiReferenceField"}[e]:"plusCircle"}var k=[{title:"Text",type:"text"},{title:"Rich Text",type:"rich-text"},{title:"Image",type:"image"},{title:"Gallery",type:"gallery"},{title:"Video",type:"video"},{title:"Email",type:"email"},{title:"Phone",type:"phone"},{title:"Date/Time",type:"date-time"},{title:"Number",type:"number"},{title:"Link",type:"link"},{title:"Switch",type:"switch"},{title:"Option",type:"option"},{title:"File",type:"file"},{title:"Reference",type:"reference"},{title:"Multi-Reference",type:"multi-reference"}],N=[{id:"duplicate",icon:"cloneLine",title:"COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DUPLICATE"},{id:"remove",icon:"trash",title:"COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REMOVE"}],G=function(e){return 1===e?{required:{value:!0,message:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_FIELD_REQUIRED")}}:{}},W=function(e,t){return R(R(R({},(0,T.$K)(t)&&(0,T.$K)(e)&&{validate:function(r){return r.length<=Number(t)?r.length>=Number(e)||(0,A.O)("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_FIELD_MIN_LENGTH",{length:e}):(0,A.O)("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_FIELD_MAX_LENGTH",{length:t})}}),(0,T.$K)(t)&&!(0,T.$K)(e)&&{validate:function(e){return e.length<=Number(t)||(0,A.O)("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_FIELD_MAX_LENGTH",{length:t})}}),(0,T.$K)(e)&&!(0,T.$K)(t)&&{validate:function(t){return t.length>=Number(e)||(0,A.O)("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_FIELD_MIN_LENGTH",{length:e})}})},U=function(e){var t=document.createElement("div");return t.innerHTML=e,(null==t?void 0:t.innerText)||""},F=function(e,t){return R(R(R({},(0,T.$K)(t)&&(0,T.$K)(e)&&{validate:function(r){var n,o,i,a=null===(n=U(r))||void 0===n||null===(o=n.split(" "))||void 0===o||null===(i=o.join(""))||void 0===i?void 0:i.trim();return a.length<=Number(t)?a.length>=Number(e)||(0,A.O)("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_FIELD_MIN_LENGTH",{length:e}):(0,A.O)("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_FIELD_MAX_LENGTH",{length:t})}}),(0,T.$K)(t)&&!(0,T.$K)(e)&&{validate:function(e){var r,n,o;return(null===(r=U(e))||void 0===r||null===(n=r.split(" "))||void 0===n||null===(o=n.join(""))||void 0===o?void 0:o.trim()).length<=Number(t)||(0,A.O)("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_FIELD_MIN_LENGTH",{length:t})}}),(0,T.$K)(e)&&!(0,T.$K)(t)&&{validate:function(t){var r,n,o;return(null===(r=U(t))||void 0===r||null===(n=r.split(" "))||void 0===n||null===(o=n.join(""))||void 0===o?void 0:o.trim()).length>=Number(e)||(0,A.O)("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_FIELD_MIN_LENGTH",{length:e})}})},H=function(e,t,r){return{min:{value:e,message:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_FIELD_MIN_VALUE",{value:e})},max:{value:t,message:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_FIELD_MAX_VALUE",{value:t})},validate:{isNegative:function(e){return 1===r||""===e||Number(e)>=0||(0,A.O)("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_FIELD_NEGATIVE_NOT_ALLOWED")}}}},q=r(1921);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 z(){z=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==V(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function X(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?X(Object(r),!0).forEach((function(t){K(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function K(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 Y(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 Q(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 J=function(e){var t=e.field,r=e.actions,n=e.setActiveField,o=e.activeField,i=e.collectionForm,a=i.watch("fields"),l=(0,x.nB)({id:t.id}),c=l.attributes,u=l.listeners,d=l.setNodeRef,p=l.transform,f=l.transition;return(0,s.BX)("div",$($($({ref:d,css:[ee.fieldElement(),o.id===t.id&&ee.selectedField,";label:CollectionFieldItem;"],style:{transform:P.ux.Transform.toString(p),transition:f}},c),u),{},{onClick:function(){n({type:t.type,id:t.id})},children:[(0,s.BX)("div",{css:ee.fieldElementIconAndTitle,children:[(0,s.tZ)(I.Z,{name:"dragger",height:16,width:16,style:ee.dragger,"data-dragger":!0}),(0,s.tZ)(I.Z,{height:16,width:16,name:M(t.type),style:ee.fieldIcon(o.id===t.id),"data-field-icon":!0}),(0,s.tZ)("div",{css:ee.fieldName(o.id===t.id),children:t.name})]}),(0,s.tZ)(L.Z,{actions:r,triggerButtonContent:(0,s.tZ)(I.Z,{name:"ellipsisX",width:16,height:16,style:ee.triggerIcon,"data-action-icon":!0}),triggerButtonStyle:ee.triggerBtn,onSelect:function(){var e,r=(e=z().mark((function e(r){return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"duplicate"===r?i.setValue("fields",[].concat(function(e){if(Array.isArray(e))return Y(e)}(o=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return Y(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)?Y(e,t):void 0}}(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.")}(),[$($({},t),{},{id:(0,T.x0)()})])):"remove"===r&&(i.setValue("fields",a.filter((function(e){return e.id!==t.id}))),n({type:"title",id:a[0].id}));case 1:case"end":return e.stop()}var o}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Q(i,n,o,a,l,"next",e)}function l(e){Q(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}()})]}),t.id)};var ee={triggerIcon:{name:"18pcpuz-triggerIcon",styles:"display:none;label:triggerIcon;"},fieldElement:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)("display:flex;align-items:center;height:32px;cursor:pointer;position:relative;padding-inline:",n.W0[8],";flex-shrink:0;&:hover{background-color:",!e&&n.qo.background.white,";border-radius:",!e&&n.E0[5],";box-shadow:",!e&&n.AF.addonHover,";[data-field-icon]{display:none;}[data-dragger]{display:flex;align-items:center;justify-content:center;transform:scale(1.5);color:",n.qo.icon.default,";cursor:move;}[data-action-icon]{display:flex;color:",n.qo.icon.default,";margin-left:4px;}};label:fieldElement;")},triggerBtn:(0,i.iv)("position:absolute;right:",n.W0[6],";height:20px;width:20px;;label:triggerBtn;"),fieldElementIconAndTitle:(0,i.iv)("display:flex;align-items:center;gap:",n.W0[8],";;label:fieldElementIconAndTitle;"),selectedField:(0,i.iv)("background-color:",n.qo.background.white,";border-radius:",n.E0[5],";box-shadow:",n.AF.base,";color:",n.qo.text.primary,";;label:selectedField;"),dragger:{name:"1h5igwz-dragger",styles:"display:none;label:dragger;"},fieldName:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)(o.c.caption(),";",q.iZ.textEllipsis,";width:150px;color:",e?n.qo.text.primary:n.qo.text.default,";;label:fieldName;")},fieldIcon:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)("color:",e?n.qo.icon.primary:n.qo.icon.default,";display:flex;align-items:center;justify-content:center;;label:fieldIcon;")}},te=r(9085),re=r(2066);function ne(e){return ne="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},ne(e)}var oe=["css"];function ie(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 ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){le(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function le(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ne(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ne(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ce=function(e){var t=e.field,r=e.fieldState,n=e.disabled,o=e.value,i=e.label,a=e.description,l=e.labelCss,c=e.responsive,u=e.responsiveOrientation,d=e.onChange;return(0,s.tZ)(re.Z,{field:t,fieldState:r,disabled:n,responsive:c,responsiveOrientation:u,label:i,isInlineLabel:!0,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,oe);return(0,s.BX)("div",{children:[(0,s.tZ)(te.Z,ae(ae(ae({},t),i),{},{inputCss:n,labelCss:l,value:o,checked:t.value,onChange:function(){t.onChange(!t.value),d&&d(!t.value)}})),!!a&&(0,s.tZ)("p",{css:ue.description,children:a})]})}})};var ue={description:(0,i.iv)(o.c.body()," color:",n.qo.text.neutral,";padding-left:",n.W0[28],";margin-top:",n.W0[6],";;label:description;")},se=r(6214),de=r(1954),pe=r(36),fe=r(1731),he=r(6537),ve=r(6492),be=r(5501);function ye(e){return function(e){if(Array.isArray(e))return Ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ge(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 me(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)||ge(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 ge(e,t){if(e){if("string"==typeof e)return Ee(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)?Ee(e,t):void 0}}function Ee(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 Oe=function(e){var t=e.onColorChange,r=e.globalColorWrapperCss,n=e.colorListCss,o=e.selectedColor,i=function(e){var t=e.enabled,r=void 0===t||t,n=(0,fe.p)().showToast;return(0,ve.a)({enabled:r,queryKey:["GlobalColors"],queryFn:function(){return be.u.get(he.H.GLOBAL_COLORS).then((function(e){return e.data}))},onError:function(e){n({type:"danger",message:e.message})}})}({enabled:!0}),a=me((0,c.useState)([]),2),l=a[0],u=a[1],d=(i.isLoading,me((0,c.useState)(""),2)),p=d[0],f=d[1],h=!1,v=(0,pe.N)(p),b=(0,c.useMemo)((function(){if(!i.data)return[];if(p){var e,t=null==i||null===(e=i.data)||void 0===e?void 0:e.filter((function(e){var t;return null==e||null===(t=e.path[0])||void 0===t?void 0:t.toLowerCase().includes(p.toLowerCase())}));return t.length>0?t:[]}return i.data}),[i.data,v]);(0,c.useEffect)((function(){if(i.data&&i.data.length>0){var e=new Set,t=b.filter((function(e){return!e.isTemplateColor})),r=b.filter((function(e){return e.isTemplateColor})),n=[].concat(ye(t),ye(r)),o=null==n?void 0:n.reduce((function(t,r){var n=(null==r?void 0:r.path[0])||"",o="$".concat(n).toLowerCase();if(!e.has(o)){e.add(o);var i;i=n.includes("sppb-")?"--".concat(n.toLowerCase().replace(/ /g,"-")):"--sppb-".concat(n.toLowerCase().replace(/ /g,"-")),t.push({label:n,value:i,isTemplateColor:r.isTemplateColor})}return t}),[]);u(null!=o?o:[])}}),[b]);var y=document.documentElement,m=window.getComputedStyle(y),g=function(e,r){var n=m.getPropertyValue(null==e?void 0:e.value);return(0,s.BX)("button",{css:_e.colorItem(o==="var(".concat(null==e?void 0:e.value,")")),onClick:function(){return t("var(".concat(null==e?void 0:e.value,")"))},children:[(0,s.tZ)("div",{css:_e.color(new se.C(n).toHexString()),children:(0,s.tZ)("span",{css:_e.colorRight(1-new se.C(e.value).getAlpha())})}),(0,s.tZ)("span",{css:_e.colorName,title:null==e?void 0:e.label,children:null==e?void 0:e.label})]},"".concat(e.value,"-").concat(r))};return(0,s.BX)("div",{css:[_e.globalColorWrapper,r,";label:ColorLibrary;"],children:[(0,s.BX)("div",{css:_e.inputWrapper,children:[(0,s.tZ)(I.Z,{name:"search",width:16,height:16,style:_e.searchIcon}),(0,s.tZ)("input",{css:_e.search,placeholder:"Search",value:p,onChange:function(e){return f(e.target.value)}})]}),(0,s.tZ)("div",{css:_e.separator}),!!l.length&&(0,s.tZ)("div",{css:[_e.colorList,n,";label:ColorLibrary;"],children:null==l?void 0:l.map((function(e,t){return null!=e&&e.isTemplateColor&&!h?(h=!0,(0,s.BX)("div",{children:[(0,s.tZ)("div",{css:_e.heading,children:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_TEMPLATE_PRESET")}),g(e,t)]},t)):g(e,t)}))})]})};var _e={templateSeparator:{name:"mwb0nj-templateSeparator",styles:"height:10px;background-color:red;label:templateSeparator;"},colorList:(0,i.iv)("display:flex;flex-direction:column;max-height:217px;overflow-y:auto;padding-top:",n.W0[4],";;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:4px;position:relative;overflow:hidden;;label:color;")},globalColorWrapper:(0,i.iv)("display:flex;flex-direction:column;margin-top:-",n.W0[6],";;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;")},colorItem:function(e){return(0,i.iv)("outline:none;border:none;background-color:",e?n.qo.background.hover:"transparent",";display:flex;cursor:pointer;align-items:center;gap:",n.W0[8],";height:",n.W0[32],";padding:",n.W0[6]," ",n.W0[8],";border-radius:",n.E0[4],";&:hover{background-color:",n.qo.background.hover,";}width:100%;;label:colorItem;")},colorName:(0,i.iv)(o.c.body("regular"),";color:",n.qo.text.hints,";",q.iZ.textEllipsis,";max-width:150px;;label:colorName;"),separator:(0,i.iv)("width:calc(100% + 32px);height:1px;background-color:",n.qo.stroke.neutral,";margin-block:",n.W0[10],";margin-inline:-",n.W0[16],";position:relative;margin-bottom:0;;label:separator;"),search:(0,i.iv)("border:none;outline:none;padding:2px;",o.c.body("regular"),";;label:search;"),inputWrapper:(0,i.iv)("display:flex;align-items:center;gap:",n.W0[4],";padding-left:",n.W0[8],";;label:inputWrapper;"),searchIcon:(0,i.iv)("color:",n.qo.icon.default,";;label:searchIcon;"),heading:(0,i.iv)(o.c.caption("medium"),";margin:",n.W0[8]," 0;margin-left:",n.W0[6],";;label:heading;")},we=r(5651);function Ce(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 Ie(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)?Ie(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 Ie(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 Se=function(e){var t=e.color,r=e.isOpen,n=e.triggerRef,o=e.onChangeColor,i=e.popoverGap,a=void 0===i?10:i,l=e.arrowPosition,u=void 0===l?"right":l,d=e.closeColorPicker,p=e.isGlobalColorsVisible,f=void 0===p||p,h=e.colorName,v=void 0===h?"":h,b=e.onChangeColorName,y=e.showNameInput,m=void 0!==y&&y,g=e.tabToOpen,E=(0,A.$)(),O=Ce((0,c.useState)(t),2),_=O[0],w=O[1],C=Ce((0,c.useState)(v),2),S=C[0],x=C[1],P=t&&t.includes("var(--sppb")?"library":"color",L=Ce((0,c.useState)(P),2),D=L[0],Z=L[1],R=(0,de.l)({isOpen:r,triggerRef:n,arrow:u,gap:a}),j=R.position,B=R.popoverRef;(0,c.useEffect)((function(){x(v)}),[v]),(0,c.useEffect)((function(){w(t)}),[t]),(0,c.useEffect)((function(){r&&Z(P)}),[r,P]),(0,c.useEffect)((function(){Z("library")}),[g]);var M=function(e){w(e);var t=(0,T.K6)(e),r=t.validColor,n=t.color;r.isValid&&o(n,v)};return(0,s.tZ)(de.h,{isOpen:r,onClickOutside:function(){d(_,S)},children:(0,s.BX)("div",{css:[xe.container,{position:"absolute",left:j.left,top:j.top},";label:ColorPicker;"],ref:B,children:[(0,s.BX)("div",{css:xe.header,children:[(0,s.BX)("div",{css:xe.tabContainer,children:[f&&(0,s.BX)(s.HY,{children:[(0,s.tZ)("span",{css:xe.tabItem("color"===D),onClick:function(){Z("color")},children:E("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_TITLE")}),(0,s.tZ)("span",{css:xe.tabItem("library"===D),onClick:function(){Z("library")},children:E("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_TITLE_LIBRARY")})]}),!f&&(0,s.tZ)("span",{css:xe.tabItem(!1),children:E("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_TITLE")})]}),(0,s.tZ)("button",{type:"button",css:q.iZ.resetButton,onClick:function(){return d(_,S)},children:(0,s.tZ)(I.Z,{name:"cross"})})]}),(0,s.BX)("div",{css:xe.content,children:["color"===D&&(0,s.BX)(s.HY,{children:[m&&(0,s.tZ)("input",{type:"text",css:[xe.input,xe.colorName,";label:ColorPicker;"],value:S,placeholder:"Color Name",onChange:function(e){return r=e.target.value,x(r),null==b||b(r),void o(t,r);var r}}),(0,s.tZ)(we.Jg,{color:(0,T.K6)(t).validColor.toRgb(),onChange:function(e){var t=new se.C(e),r=(1===e.a?t.toHexString():t.toRgbString()).toUpperCase();w(r),o(r,v)}}),(0,s.tZ)("input",{type:"text",css:xe.input,value:_,placeholder:"#000000",onChange:function(e){return M(e.target.value)}})]}),"library"===D&&f&&(0,s.tZ)(Oe,{onColorChange:M,selectedColor:t})]})]})})};var xe={content:(0,i.iv)("padding:",n.W0[16],";min-height:278px;;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;"),colorName:(0,i.iv)("margin-bottom:",n.W0[10],";;label:colorName;"),tabContainer:(0,i.iv)("display:flex;gap:",n.W0[4],";;label:tabContainer;"),tabItem:function(e){return(0,i.iv)("background-color:",e?n.qo.background.neutral:n.qo.background.white,";border-radius:",n.E0[4],";padding:",n.W0[4]," ",n.W0[8],";cursor:pointer;;label:tabItem;")}};function Pe(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 Le(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)?Le(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 Le(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 Ae=(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,h=void 0===f?"55px":f,v=e.hideInput,b=void 0!==v&&v,y=e.circular,m=void 0!==y&&y,g=function(e){var t=(0,T.K6)(e).validColor;return t.isValid?t.toHexString().toUpperCase().replace("#",""):""},E=function(e){var t=(0,T.K6)(e).validColor;if(!t.isValid)return"0%";var r=100*t.getAlpha(),n=(0,T.GN)(r)?r:r.toFixed(0);return"".concat(n,"%")},O=Pe((0,c.useState)(g(r)),2),_=O[0],w=O[1],C=Pe((0,c.useState)(E(r)),2),S=C[0],x=C[1];(0,c.useEffect)((function(){var e=(0,T.K6)(r).isCssVariable;w(e?r:g(r)),x(E(r))}),[r]);var P=function(){var e=Math.min(Number(S.replace(/[^0-9.]/g,"")),100),t=(0,T.K6)(_).isCssVariable,r=e/100,o=new se.C("#".concat(_)).setAlpha(r);if(o.isValid||t){var i=(0,T.GN)(e)?e:e.toFixed(2);x("".concat(i,"%")),n(t?_:o.toRgbString())}},L=function(e){"Enter"===e.key&&(P(),e.currentTarget.blur()),"Escape"===e.key&&(w(g(r)),x(E(r)),e.currentTarget.blur())};return(0,s.BX)("div",{ref:t,css:De.swatch(m),children:[(0,s.tZ)("button",{type:"button",css:q.iZ.resetButton,onClick:o,disabled:p,children:(0,T.K6)(r).validColor.isValid?(0,s.tZ)(s.HY,{children:(0,s.BX)("div",{css:De.colorBox((0,T.K6)(r).validColor.setAlpha(1).toRgbString()),children:[(0,s.tZ)("span",{css:De.colorLeft}),(0,s.tZ)("span",{css:De.colorRight(1-((0,T.K6)(r).validColor.getAlpha()||0))}),a&&(0,s.tZ)("span",{role:"button",tabIndex:0,css:De.clearButton,onClick:function(e){e.stopPropagation(),n("")},onKeyDown:T.ZT,children:(0,s.tZ)(I.Z,{name:"crossCircled"})})]})}):(0,s.tZ)(Te,{})}),!b&&(0,s.tZ)("input",{type:"text",css:De.colorCode(h),value:_,onChange:function(e){w(e.target.value),u||x(E(g(e.target.value)))},onBlur:P,onKeyDown:L,onClick:function(e){return e.currentTarget.select()}}),u&&(0,s.tZ)("div",{css:De.alphaPercentageWrapper,children:(0,s.tZ)("input",{type:"text",css:De.alphaPercentage,value:S,onChange:function(e){return x(e.target.value)},onBlur:P,onKeyDown:L,onClick:function(e){return e.currentTarget.select()}})})]})})),Te=function(e){var t=e.circular,r=void 0!==t&&t;return(0,s.tZ)("div",{css:De.emptyColor(r)})},De={swatch:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)("background-color:",n.qo.background.white,";border:1px solid ",n.qo.stroke.neutral,";border-radius:",e?"50%":n.E0[5],";",e?"overflow: hidden;":""," display:flex;align-items:center;gap:",n.W0[8],";overflow:hidden;&:focus-within{box-shadow:",n.AF.outline,";};label:swatch;")},emptyColor:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)("width:40px;height:20px;",e?"border-radius: 50%":"",";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;")},Ze={height:30,width:30},Re=(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?Ze:l,u=e.disableOutline,d=void 0!==u&&u,p=e.disabled,f=void 0!==p&&p,h=e.circular,v=void 0!==h&&h;return(0,s.tZ)("button",{type:"button",ref:t,css:Be.swatch({dimension:c,disableOutline:d,circular:v}),onClick:o,disabled:f,children:new se.C(r).isValid?(0,s.BX)("div",{css:Be.colorBox({color:new se.C(r).setAlpha(1).toRgbString()}),children:[(0,s.BX)("div",{css:Be.colorWrapper,children:[(0,s.tZ)("span",{css:Be.colorLeft}),(0,s.tZ)("span",{css:Be.colorRight(1-new se.C(r).getAlpha())})]}),a&&(0,s.tZ)("span",{role:"button",tabIndex:0,css:Be.clearButton,onClick:function(e){e.stopPropagation(),n("")},onKeyDown:T.ZT,"data-clear-button":!0,children:(0,s.tZ)(I.Z,{name:"crossCircled"})})]}):(0,s.tZ)(je,{circular:v})})})),je=function(e){var t=e.circular,r=void 0!==t&&t;return(0,s.tZ)("div",{css:Be.emptyColor(r)})},Be={swatch:function(e){var t=e.dimension,r=e.disableOutline,o=e.circular,a=void 0!==o&&o;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:",a?"50%":n.E0[2],";",a?"overflow: hidden;":""," :hover{[data-clear-button]{visibility:visible;opacity:1;}}",!r&&(0,i.iv)("&:focus-within{box-shadow:",n.AF.outline,";};label:swatch;"),";;label:swatch;")},emptyColor:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)("width:100%;height:100%;",e?"border-radius: 50%":"",";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 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 ke=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,h=e.dimension,v=e.arrowPosition,b=void 0===v?"right":v,y=e.isGlobalColorsVisible,m=e.circular,g=void 0!==m&&m,E=e.isClearable,O=void 0===E||E,_=e.colorName,w=e.onChangeColorName,C=e.showNameInput,I=void 0!==C&&C,S=(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 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}}(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=S[0],P=S[1],L=(0,c.useRef)(null);return(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:Ne.wrapper,children:[!!n&&(0,s.tZ)("span",{css:Ne.label,children:n}),d?(0,s.tZ)(Re,{ref:L,color:o||"",onClick:function(){return P(!0)},onChangeColor:function(e){i(e),a(e)},dimension:h,circular:g,isClearable:O}):(0,s.tZ)(Ae,{ref:L,color:o||"",onClick:function(){return P(!0)},onChangeColor:function(e){i(e),a(e)},hasAlphaField:l,circular:g,isClearable:O})]}),(0,s.tZ)(Se,{isOpen:x,color:o||"",triggerRef:L,onChangeColor:i,closeColorPicker:function(e,t){P(!1),a(e,t)},arrowPosition:b,isGlobalColorsVisible:y,colorName:_,onChangeColorName:w,showNameInput:I})]})},Ne={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;")};function Ge(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 We(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)?We(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 We(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 Ue={name:"1fvqa28-ColorPickerField",styles:"position:absolute;border:none;background:transparent;outline:none;top:8px;right:8px;cursor:pointer;label:ColorPickerField;"},Fe={name:"a13tki-ColorPickerField",styles:"position:relative;label:ColorPickerField;"};const He=function(e){var t=e.field,r=e.fieldState,o=e.label,a=e.disabled,l=e.loading,u=e.hasAlphaField,d=e.isInlineLabel,p=e.responsive,f=e.responsiveOrientation,h=e.helpText,v=e.transparency,b=void 0!==v&&v,y=e.required,m=void 0!==y&&y,g=Ge((0,c.useState)(!1),2),E=g[0],O=g[1],_=Ge((0,c.useState)(t.value),2),w=_[0],C=_[1],S=Ge((0,c.useState)(!1),2),x=S[0],P=S[1],L=(0,c.useRef)(null);(0,c.useEffect)((function(){C(t.value)}),[t.value]);var A=b?"transparent":"";return(0,s.tZ)(re.Z,{field:t,fieldState:r,disabled:a,loading:l,label:o,responsive:p,responsiveOrientation:f,isInlineLabel:d,helpText:h,required:m,children:function(){return(0,s.BX)("div",{css:Fe,children:[(0,s.tZ)(Ae,{ref:L,color:w||"",onChangeColor:function(e){if(b)return C(e||A),void t.onChange(e||A);C(e),t.onChange(e)},onClick:function(){return O(!0)},disabled:a,hasAlphaField:u}),(0,s.tZ)("button",{css:Ue,onClick:function(){P(!x),O(!0)},children:(0,s.tZ)(I.Z,{name:"colorLibrary",height:16,width:16,style:(0,i.iv)("color:",n.qo.icon.default,";;label:ColorPickerField;")})}),(0,s.tZ)(Se,{color:w||"",isOpen:E,triggerRef:L,onChangeColor:C,closeColorPicker:function(e){O(!1),t.onChange(e)},isGlobalColorsVisible:!T.Eu,popoverGap:20,tabToOpen:x})]})}})};var qe=r(463);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 ze(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 Xe(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?Xe(Object(r),!0).forEach((function(t){Ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ke(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}const Ye=function(e){var t=e.onUpload,r=e.onDragLeave,n=e.multiple,o=void 0!==n&&n,i=e.isLoading,a=void 0!==i&&i,l=e.uploadButtonText,u=void 0===l?"Choose Image":l,d=e.disabled,p=void 0!==d&&d,f=e.onClickHandler,h=e.uploadIcon,v=void 0===h?"upload":h,b=e.caption,y=void 0!==b&&b,m=e.supportedFileExtensions,g=void 0===m?[]:m,E=e.customButtonCss,O=e.customButtonContentCss,C=e.wrapperCss,S=(0,A.$)(),x=(0,c.useRef)(null),P=(0,qe.uI)({onDrop:function(e){t(e)},multiple:o,disabled:p}),L=P.getRootProps,T=P.getInputProps;return a?(0,s.tZ)("div",{css:Qe.spinnerWrapper,children:(0,s.tZ)(w.ZP,{})}):(0,s.BX)("div",$e($e({css:[Qe.wrapper(p),C,";label:FieldDropZone;"]},L({onClick:function(e){e.stopPropagation()},onDragLeave:function(e){e.stopPropagation(),r()}})),{},{children:[(0,s.tZ)("input",$e({},T())),(0,s.BX)("div",{css:Qe.dropText(p),children:[(0,s.tZ)("input",{ref:x,type:"file",multiple:!0,"aria-hidden":"true",hidden:!0,onChange:function(e){var r;p||(e.target.files&&t(function(e){if(Array.isArray(e))return ze(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 ze(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)?ze(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="")}}),!p&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:v||"upload"}),onClick:f,disabled:p,buttonCss:E||Qe.btnCss,buttonContentCss:O||Qe.btnContentCss,children:u}),y&&(0,s.BX)("div",{css:Qe.caption,children:[S("COM_SPPAGEBUILDER_EDITOR_MEDIADROPZONE_CAPTION")," ",null!=g&&g.length?g.map((function(e){return e.toUpperCase()})).join(", "):"All"]})]})]})]}))};var Qe={wrapper:function(e){return(0,i.iv)("z-index:",n.W5.positive,";background:transparent;border-radius:",n.E0[10],";background-color:",n.qo.base.surface,";border:1px dashed ",n.qo.stroke.hover,";z-index:",n.W5.positive,";height:100%;",e&&(0,i.iv)("border:1px dashed ",n.qo.stroke.error,";;label:wrapper;"),";;label:wrapper;")},dropText:function(e){return(0,i.iv)(o.c.heading6()," display:flex;flex-direction:column;justify-content:center;align-items:center;gap:",n.W0[8],";color:",n.qo.text.default,";width:100%;height:100%;svg{color:",n.qo.action.outline.disabled,";}",e&&(0,i.iv)("color:",n.qo.text.disabled,";;label:dropText;"),";;label:dropText;")},spinnerWrapper:(0,i.iv)(q.iZ.flexCenter(),";height:100%;width:100%;;label:spinnerWrapper;"),uploadButton:(0,i.iv)(q.iZ.resetButton,";svg{transition:color 0.3s ease;}:hover{svg{color:",n.qo.icon.hover,";}};label:uploadButton;"),btnCss:(0,i.iv)("height:24px;align-items:center;justify-content:center;display:flex;gap:",n.W0[4],";border-radius:",n.E0[8],";;label:btnCss;"),btnContentCss:(0,i.iv)(o.c.tiny("medium"),";color:",n.qo.text.white,";;label:btnContentCss;"),caption:(0,i.iv)("font-size:",n.JB[10],";line-height:",n.W0[12],";color:",n.qo.text.disabled,";;label:caption;")},Je=r(7025),et=r(288),tt=r(8122),rt=r(5350),nt=r(3816),ot=r(802),it=r(4411),at=r(908),lt=r(5527),ct=r(6511),ut=r(2328),st=r(8596),dt=r(5945),pt=r(4469);function ft(e){return ft="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},ft(e)}function ht(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 vt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(r),!0).forEach((function(t){bt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ht(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ft(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ft(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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}var mt=function(){var e=(0,fe.p)().showToast,t=(0,ut.v)((function(e){return e.appConfig}));return(0,ve.a)({queryKey:["IconList"],queryFn:function(){return be.u.get(he.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 6 Free",type:"fontawesome"}].concat(function(e){if(Array.isArray(e))return yt(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 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}}(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})}})},gt=function(e){return be.u.delete(he.H.MEDIA,{data:JSON.stringify(e)}).then((function(e){return e.data}))},Et=function(e){return be.u.post(he.H.MEDIA,e)},Ot=function(){var e=(0,dt.NL)(),t=(0,A.$)(),r=(0,fe.p)().showToast;return(0,pt.D)({mutationFn:Et,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})}})},_t=function(e){return be.u.post(he.H.AI_CONTENT_UPLOAD,e)},wt=function(){var e=(0,dt.NL)(),t=(0,A.$)(),r=(0,fe.p)().showToast;return(0,pt.D)({mutationFn:_t,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})}})},Ct=function(e){return be.u.patch(he.H.MEDIA,e)},It=function(e){return be.u.get(he.H.MEDIA_FOLDERS,{params:e}).then((function(e){var t;return null!==(t=e.data)&&void 0!==t?t:[]}))},St=function(e){return be.u.delete(he.H.MEDIA_FOLDERS,{data:JSON.stringify(e)})},xt=function(e){return be.u.post(he.H.MEDIA_FOLDERS,e)},Pt=function(e){return be.u.patch(he.H.MEDIA_FOLDERS,e).then((function(e){return e.data}))};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 At(){At=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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 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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(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 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}var Zt=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"}}},Rt=function(e){var t=e.name,r=t.lastIndexOf(".");return-1===r?"":t.slice(r+1).toLowerCase()},jt=function(e){return e.map((function(e){var t=URL.createObjectURL(e);return{id:(0,T.x0)(),ext:Rt(e),path:t,title:e.name,type:Zt(Rt(e)).type,isNewlyUploaded:!0}}))},Bt=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 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&&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},Mt=function(){var e,t=(e=At().mark((function e(t){return At().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){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)}}(),kt=r(7536),Nt=r(6731),Gt=r(1030),Wt=r(9781);function Ut(e){return Ut="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},Ut(e)}function Ft(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 Ht(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(r),!0).forEach((function(t){qt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ft(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ut(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ut(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ut(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vt(){Vt=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Ut(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function zt(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 Xt=function(e){var t=e.closeModal,r=e.title,n=e.path,o=(0,A.$)(),i=function(){var e=(0,dt.NL)(),t=(0,fe.p)().showToast,r=(0,A.$)();return(0,pt.D)({mutationFn:xt,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,ot.O)({defaultValues:{folderName:""}});return(0,s.tZ)(Wt.Z,{onClose:function(){return t({action:"CLOSE"})},title:r,wrapperCss:$t.wrapper,children:(0,s.BX)("form",{onSubmit:a.handleSubmit((0,Nt.GI)(a,function(){var e,r=(e=Vt().mark((function e(r){var o;return Vt().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){zt(i,n,o,a,l,"next",e)}function l(e){zt(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}())),children:[(0,s.tZ)("div",{css:$t.fieldWrapper,children:(0,s.tZ)(kt.Qr,{name:"folderName",control:a.control,rules:Ht({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,Ht(Ht({},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:$t.buttonWrapper,children:[(0,s.tZ)(_.Z,{variant:"secondary",onClick:function(){return t({action:"CLOSE"})},children:o("COM_SPPAGEBUILDER_EDITOR_CANCEL")}),(0,s.tZ)(_.Z,{type:"submit",loading:i.isLoading,children:o("COM_SPPAGEBUILDER_EDITOR_CREATE_FOLDER_MODAL_CREATE_BUTTON")})]})]})})};var $t={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;")},Kt=r(1709);function Yt(e){return Yt="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},Yt(e)}function Qt(){Qt=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Yt(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},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 er(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 tr(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)?tr(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 tr(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,o=e.folders,i=e.folderName,a=e.filter,l=e.selectedFolders,u=e.onSelect,d=e.onNavigate,p=e.onDeleteFolder,f=er((0,c.useState)(!1),2),h=f[0],v=f[1],b=er((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)})),O=(t=(0,dt.NL)(),r=(0,A.$)(),n=(0,fe.p)().showToast,(0,pt.D)({mutationFn:Pt,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")})}})),_=(0,at.Q)(),C=[{id:"rename",icon:"pencil",title:"COM_SPPAGEBUILDER_EDITOR_BUTTON_TEXT_RENAME",isDisabled:!_.edit},{id:"remove",icon:"trash",title:"COM_SPPAGEBUILDER_EDITOR_BUTTON_TEXT_DELETE",variant:"critical",isDisabled:!_.delete}];return(0,s.BX)("div",{css:nr.listItemWrapper({isSelected:!!E}),children:[(0,s.BX)("button",{type:"button",css:nr.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)(I.Z,{name:"folders",height:104,width:104}),(0,s.tZ)("div",{css:nr.listItemCheckboxWrapper({isSelected:!1}),children:(0,s.tZ)(te.Z,{checked:!!E,onChange:function(){g&&u({selectedFolder:{id:g.id,type:"folder",path:g.relname},isAlreadySelected:!!E})}})})]}),(0,s.tZ)("div",{css:nr.listItemInfo,children:h?(0,s.tZ)("div",{css:nr.renameInputWrapper,children:O.isLoading?(0,s.tZ)(w.g4,{}):(0,s.tZ)(Je.Z,{value:y,onChange:function(e){m(e)},onKeyDown:function(){var e,t=(e=Qt().mark((function e(t){return Qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Escape"===t&&(v(!1),m("")),"Enter"===t){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,O.mutateAsync({currentfolder:"".concat(a,"/").concat(i),newfolder:"".concat(a,"/").concat(y),renameItem:"single"});case 5:e.sent.status&&v(!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){Jt(i,n,o,a,l,"next",e)}function l(e){Jt(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),onBlur:function(){v(!1),m("")},focusOnMount:!0})}):(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{children:i}),(0,s.tZ)(L.Z,{actions:C,triggerButtonContent:(0,s.tZ)(I.Z,{name:"ellipsisY",height:16,width:16}),onSelect:function(e){g&&("rename"===e?(v(!0),m(i)):p({id:g.id,type:"folder",path:g.relname}))},arrowPosition:"bottom"})]})})]})};var nr={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;")},or=r(4101);function ir(e){return ir="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},ir(e)}function ar(){ar=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==ir(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function lr(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 cr(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 ur(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)?ur(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 ur(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 sr=function(e){var t,r,n,o=e.item,i=e.isSelected,a=e.onDelete,l=void 0===a?T.ZT:a,u=e.onSelectionChange,d=cr((0,c.useState)(!1),2),p=d[0],f=d[1],h=cr((0,c.useState)(""),2),v=h[0],b=h[1],y=(t=(0,dt.NL)(),r=(0,A.$)(),n=(0,fe.p)().showToast,(0,pt.D)({mutationFn:Ct,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,at.Q)(),g=(0,ut.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}],O=Zt(o.ext),_="".concat(o.title,".").concat(o.ext);return(0,s.tZ)(s.HY,{children:(0,s.BX)("div",{css:pr.listItemWrapper({isSelected:i}),children:[(0,T.$K)(o.isNewlyUploaded)&&o.isNewlyUploaded&&(0,s.tZ)("div",{css:pr.uploadingSpinner,children:(0,s.tZ)(w.ZP,{})}),(0,s.BX)("button",{css:pr.listItemTop({itemType:O.type,isSelected:i}),onClick:function(e){e.preventDefault(),u(o.id)},children:["image"===o.type&&(0,s.tZ)("img",{src:"".concat((0,T.$K)(o.isNewlyUploaded)&&o.isNewlyUploaded?"":T.Xy.pagebuilderBase).concat(o.thumb||o.path),alt:o.title}),"image"!==o.type&&(0,s.tZ)(I.Z,{name:O.icon,height:104,width:104}),(0,s.tZ)("div",{css:pr.listItemCheckboxWrapper({isSelected:i}),children:(0,s.tZ)(te.Z,{checked:i,onChange:function(){u(o.id)}})})]}),(0,s.tZ)("div",{css:pr.listItemInfo,title:_,children:p?(0,s.tZ)("div",{css:pr.renameInputWrapper,children:y.isLoading?(0,s.tZ)(w.g4,{}):(0,s.tZ)(Je.Z,{value:v,onChange:function(e){b(e)},onKeyDown:function(){var e,t=(e=ar().mark((function e(t){var r,n,i;return ar().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:v});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){lr(i,n,o,a,l,"next",e)}function l(e){lr(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:_}),(0,s.tZ)(L.Z,{actions:E,triggerButtonContent:(0,s.tZ)(I.Z,{name:"ellipsisY",height:16,width:16}),onSelect:function(e){"rename"===e?(f(!0),b(o.title)):l(o)},arrowPosition:"top"})]})})]},o.id)})};var dr=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}}},pr={uploadingSpinner:(0,i.iv)("position:absolute;inset:0;z-index:",n.W5.positive,";background-color:",(0,or.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:",dr(r).backgroundColor,";svg{color:",dr(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 fr(e){return fr="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},fr(e)}function hr(e){return function(e){if(Array.isArray(e))return vr(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 vr(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)?vr(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 vr(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 br(){br=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==fr(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function yr(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 mr=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=e.isSingleInsert,f=void 0!==p&&p,h=(0,A.$)(),v=(0,Kt.d)().showModal,b=(0,at.Q)();return d?(0,s.tZ)("div",{css:gr.spinnerWrapper,children:(0,s.tZ)(w.ZP,{})}):(0,s.BX)("div",{css:gr.wrapper,children:[(0,s.tZ)("div",{css:gr.listItemWrapper,children:(0,s.BX)("button",{type:"button",css:gr.listItemTop({disabled:!b.create}),disabled:!b.create,onClick:function(){var e,t=(e=br().mark((function e(t){return br().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,v({component:Xt,props:{path:n,title:h("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){yr(i,n,o,a,l,"next",e)}function l(e){yr(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),children:[(0,s.tZ)(I.Z,{name:"addFolder",height:104,width:104}),(0,s.tZ)("p",{css:gr.listItemInfo,children:h("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_FOLDER_CREATE_NEW")})]})}),r.map((function(e,r){return(0,s.tZ)(rr,{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(f?[t]:[].concat(hr(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)(sr,{item:e,isSelected:!!r,onDelete:u,onSelectionChange:function(){a(r?i.filter((function(t){return t.path!==e.path})):f?[{id:Number(e.id),path:e.path,type:"local"}]:[].concat(hr(i),[{id:Number(e.id),path:e.path,type:"local"}]))}},t)}))]})};var gr={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;")},Er=(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?T.ZT:i,l=e.onSelectionChange,c=e.isInfiniteLoaderVisible,u=void 0!==c&&c,d=(0,A.$)();return n.length?(0,s.BX)("div",{css:wr.wrapper,children:[(0,s.tZ)("div",{css:wr.listItemsWrapper,children:n.map((function(e){var t=o.includes(e.id);return(0,s.tZ)(sr,{item:e,isSelected:t,onSelectionChange:l,onDelete:a},e.id)}))}),(0,s.tZ)("div",{ref:t,css:wr.infiniteLoader({isVisible:u}),children:(0,s.tZ)(w.ZP,{})})]}):(0,s.tZ)("div",{css:wr.emptyMessage,children:d("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_NO_ITEMS_FOUND")})}));const Or=Er;var _r={name:"1tbj5j9-infiniteLoader",styles:"display:block;label:infiniteLoader;"},wr={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&&_r,";;label:infiniteLoader;")}};function Cr(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 Ir=function(e){var t=e.selectedCategory,r=e.isInsideModal,n=void 0===r||r,o=e.onChange,i=e.onMediaUpload,a=(0,A.$)(),l=(0,c.useRef)(null),u=(0,at.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:Sr.sidebar({isInsideModal:n}),children:[n&&(0,s.BX)("div",{css:Sr.sidebarUploadButton,children:[(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.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 Cr(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 Cr(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)?Cr(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:Sr.sidebarItemWrapper,children:d.map((function(e){return(0,s.tZ)(_.Z,{variant:"text",buttonCss:Sr.sidebarItem({isActive:t===e.name,isInsideModal:n}),icon:(0,s.tZ)(I.Z,{name:e.icon,height:24,width:24}),onClick:function(){return o(e.name)},children:e.title},e.name)}))})]})};var Sr={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 xr(e){return xr="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},xr(e)}function Pr(){Pr=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==xr(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Lr(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 Ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lr(Object(r),!0).forEach((function(t){Tr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==xr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==xr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===xr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dr(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 Zr(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Dr(i,n,o,a,l,"next",e)}function l(e){Dr(i,n,o,a,l,"throw",e)}a(void 0)}))}}function Rr(e){return function(e){if(Array.isArray(e))return Mr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Br(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 jr(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)||Br(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 Br(e,t){if(e){if("string"==typeof e)return Mr(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)?Mr(e,t):void 0}}function Mr(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 kr=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,h=void 0===f?T.ZT:f,v=e.closeModal,b=void 0===v?T.ZT:v,y=e.onInsert,m=void 0===y?T.ZT:y,g=e.onBulkInsert,E=void 0===g?T.ZT:g,O=e.bulkImport,C=void 0!==O&&O,S=e.isSingleInsert,x=void 0!==S&&S,P=(0,A.$)(),L={link:null,text:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_ALL_ITEMS")},D=(0,ut.v)((function(e){return e.appConfig})),Z=D.media_path,R=D.media_upload_max_size,j=jr((0,c.useState)(l),2),B=j[0],M=j[1],k=jr((0,c.useState)([]),2),N=k[0],G=k[1],W=jr((0,c.useState)([L]),2),U=W[0],F=W[1],H=jr((0,c.useState)(!1),2),q=H[0],V=H[1],z=jr((0,c.useState)(Z),2),X=z[0],$=z[1],K=jr((0,c.useState)([]),2),Y=K[0],Q=K[1],J=jr((0,c.useState)([]),2),ee=J[0],te=J[1],re=(0,c.useRef)(null),ne=jr((0,c.useState)([]),2),oe=ne[0],ie=ne[1],ae=(0,at.Q)(),le=(0,it.Z)(),ce=le.intersectionEntry,ue=le.intersectionElementRef,se=(0,nt.g)(),de=(0,fe.p)().showToast,ye=(0,ot.O)({defaultValues:{search:"",filter:""}}),me=ye.watch(),ge=me.search,Ee=me.filter,Oe=(0,pe.N)(ge),_e=function(e){var t=(0,fe.p)().showToast;return(0,st.N)({queryKey:["MediaList",e],queryFn:function(t){var r=t.pageParam,n=void 0===r?1:r;return function(e){return be.u.get(he.H.MEDIA,{params:e}).then((function(e){return e.data}))}(vt(vt({},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:B,search:Oe,date:Ee}),we=function(e){var t=(0,fe.p)().showToast;return(0,ve.a)({queryKey:["FolderList",e],queryFn:function(){return It(e)},enabled:"folders"===e.type,onError:function(e){t({type:"danger",message:e.message})}})}({type:B,filter:Ee,path:X}),Ce=function(e){var t=(0,fe.p)().showToast;return(0,ve.a)({queryKey:["FolderList",e],queryFn:function(){return It(e)},enabled:"folders"===e.type&&e.hasSelection,onError:function(e){t({type:"danger",message:e.message})}})}({type:B,filter:Ee,path:null===(t=Y[0])||void 0===t?void 0:t.path,hasSelection:1===Y.length}),Ie=Ot(),Se=(0,c.useMemo)((function(){var e,t;return null!==(e=null===(t=_e.data)||void 0===t?void 0:t.pages.flatMap((function(e){return e.items})))&&void 0!==e?e:[]}),[null===(r=_e.data)||void 0===r?void 0:r.pages]);(0,c.useEffect)((function(){null!=ce&&ce.isIntersecting&&_e.fetchNextPage()}),[null==ce?void 0:ce.isIntersecting]),(0,c.useEffect)((function(){var e=re.current,t=function(e){e.stopPropagation(),q||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"===B){var o=null!==(e=null===(t=we.data)||void 0===t?void 0:t.folders.map((function(e){return{label:e.relname,value:e.relname}})))&&void 0!==e?e:[];te([{label:Z,value:Z}].concat(Rr(o)));var i=null!==(r=null===(n=we.data)||void 0===n?void 0:n.breadcrumbs.map((function(e){return{link:e.path,text:e.label}})))&&void 0!==r?r:[];F([{link:null,text:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_FOLDERS")}].concat(Rr(i)))}}),[null===(n=we.data)||void 0===n?void 0:n.breadcrumbs,B]),(0,c.useEffect)((function(){if("folders"===B)ye.setValue("filter",Z);else{var e,t,r=null!==(e=null===(t=_e.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:[];te([{label:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_FILTER_ALL"),value:""}].concat(Rr(r)))}}),[_e.data,Z,B]),(0,c.useEffect)((function(){null!=p&&p.length&&Zr(Pr().mark((function e(){var t;return Pr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("folders"!==B||!p.some((function(e){var t;return!(null!=e&&null!==(t=e.type)&&void 0!==t&&t.includes("image"))}))){e.next=5;break}return de({type:"danger",message:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_FOLDER_WARNING_MESSAGE")}),ie([]),h(),e.abrupt("return");case 5:if(!Bt(p,R)){e.next=11;break}return de({type:"danger",message:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_LARGE",{size:(0,T.td)(R)})}),ie([]),h(),e.abrupt("return");case 11:return t=jt(p),ie(t),e.next=15,Ie.mutateAsync(Ar({file:p},"folders"===B&&{folder:X}));case 15:ie([]),h();case 17:case"end":return e.stop()}}),e)})))()}),[p]);var xe,Pe,Le,Ae,Te,De,Ze,Re,je,Be,Me,ke=function(e){var t,r,n,o;return C?"folders"!==B?Se.filter((function(e){return N.includes(e.id)})).every((function(e){return e.type===d})):(null!==(r=null===(n=Ce.data)||void 0===n?void 0:n.items)&&void 0!==r?r:[]).every((function(e){return e.type===d})):(t="folders"!==B?Se.find((function(e){return N.includes(e.id)})):null===(o=we.data)||void 0===o?void 0:o.items.find((function(e){return Y[0].path===e.path})),!("folders"!==B||!e)||!!t&&("*"===d&&"folders"!==t.type||("folders"===B?(0,T.JB)(t.ext)===d:t.type===d)))},Ne=!!Oe||!!Ee,Ge=q||!_e.isLoading&&0===Se.length&&0===oe.length&&!Ne,We={"*":"",image:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_IMAGES"),video:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_VIDEOS"),audio:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_AUDIOS"),attachment:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_ATTACHMENTS"),folders:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_FOLDERS")},Ue=!Ge&&!_e.isLoading&&!!_e.hasNextPage;return(0,s.BX)("div",{css:Ur.wrapper({isInsideModal:i}),children:[(0,s.tZ)(Ir,{isInsideModal:i,selectedCategory:B,onChange:function(e){M(e),G([]),Q([]),ye.reset(),F([L,{link:null,text:We[e]}]),"folders"===e&&$("/images")},onMediaUpload:function(){var e=Zr(Pr().mark((function e(t){var r;return Pr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("folders"!==B||!t.some((function(e){var t;return!(null!=e&&null!==(t=e.type)&&void 0!==t&&t.includes("image"))}))){e.next=5;break}return de({type:"danger",message:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_FOLDER_WARNING_MESSAGE")}),ie([]),h(),e.abrupt("return");case 5:if(!Bt(t,R)){e.next=11;break}return de({type:"danger",message:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_LARGE",{size:(0,T.td)(R)})}),ie([]),h(),e.abrupt("return");case 11:return r=jt(t),ie(r),e.next=15,Ie.mutateAsync(Ar({file:t},"folders"===B&&{folder:X}));case 15:ie([]);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),(0,s.BX)("div",{css:Ur.rightSideWrapper,children:[(0,s.BX)("div",{css:Ur.filterWrapper({isInsideModal:i}),children:[(0,s.tZ)("div",{css:Ur.textInputWrapper,children:(0,s.tZ)(kt.Qr,{control:ye.control,name:"search",render:function(e){return(0,s.tZ)(rt.Z,Ar(Ar({},e),{},{variant:"search",placeholder:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_SEARCH_PLACEHOLDER"),disabled:"folders"===B,isClearable:!0}))}})}),(0,s.tZ)("div",{css:Ur.selectWrapper,children:(0,s.tZ)(kt.Qr,{control:ye.control,name:"filter",render:function(e){return(0,s.tZ)(tt.Z,Ar(Ar({},e),{},{options:ee,onChange:function(e){return $(e.value)},isClearable:!1}))}})})]}),(0,s.BX)("div",{css:Ur.topPanel,children:[(0,s.tZ)(et.Z,{routes:U,onFilterChange:function(e){"folders"===B&&$(e)}}),!x&&(N.length>0||Y.length>0)&&(0,s.BX)("div",{css:Ur.topPanelActionsWrapper,children:[(0,s.tZ)("p",{children:P(N.length+Y.length>1?"COM_SPPAGEBUILDER_EDITOR_MEDIA_ITEMS_SELECTED":"COM_SPPAGEBUILDER_EDITOR_MEDIA_ITEM_SELECTED",{numberOfItems:N.length+Y.length})}),(0,s.tZ)("div",{children:(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:"trash",height:16,width:16}),disabled:!ae.delete,onClick:Zr(Pr().mark((function e(){var t,r;return Pr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Y,"folders"===B){e.next=6;break}if(_e.data){e.next=4;break}return e.abrupt("return");case 4:r=Se.filter((function(e){return N.includes(e.id)})),t=r.map((function(e){return Ar(Ar({},e),{},{type:"local+db"})}));case 6:return e.next=8,se({title:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_TITLE"),confirmationMessage:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_MESSAGE"),confirmButtonText:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_BUTTON_TEXT"),mutationFn:gt,payload:{data:t},invalidateKeys:[["MediaList"],["FolderList"]]});case 8:if("CONFIRM"===e.sent.action){e.next=12;break}return e.abrupt("return");case 12:de({type:"success",message:P("COM_SPPAGEBUILDER_EDITOR_FILE_DELETE_SUCCESS_MESSAGE")}),"folders"===B?Q([]):G([]);case 14:case"end":return e.stop()}}),e)}))),children:P("COM_SPPAGEBUILDER_EDITOR_BUTTON_TEXT_DELETE")})})]})]}),(0,s.tZ)("div",{ref:re,css:Ur.droppableContainer({isInsideModal:i}),children:(0,s.tZ)(ct.Z,{query:"folders"===B?we:_e,children:Ge?(0,s.tZ)("div",{css:Ur.mediaDropzoneWrapper({isInsideModal:i}),children:(0,s.tZ)(lt.Z,{onUpload:function(){var e=Zr(Pr().mark((function e(t){var r;return Pr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("folders"!==B||!t.some((function(e){var t;return!(null!=e&&null!==(t=e.type)&&void 0!==t&&t.includes("image"))}))){e.next=5;break}return de({type:"danger",message:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_FOLDER_WARNING_MESSAGE")}),ie([]),h(),e.abrupt("return");case 5:if(!Bt(t,R)){e.next=11;break}return de({type:"danger",message:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_LARGE",{size:(0,T.td)(R)})}),ie([]),h(),e.abrupt("return");case 11:return r=jt(t),ie(r),V(!1),e.next=16,Ie.mutateAsync(Ar({file:t},"folders"===B&&{folder:X}));case 16:ie([]);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onDragLeave:function(){return V(!1)},multiple:!0,disabled:!ae.create})}):"folders"===B?(0,s.tZ)(mr,{folders:null!==(De=null===(Ze=we.data)||void 0===Ze?void 0:Ze.folders)&&void 0!==De?De:[],foldersList:null!==(Re=null===(je=we.data)||void 0===je?void 0:je.folders_list)&&void 0!==Re?Re:[],items:[].concat(Rr(oe),Rr(null!==(Be=null===(Me=we.data)||void 0===Me?void 0:Me.items)&&void 0!==Be?Be:[])),filter:X,selectedFolders:Y,onSelectedFolders:function(e){return Q(e)},onFilterChange:function(e){$(e),Q([])},onDeleteFolder:function(){var e=Zr(Pr().mark((function e(t){var r;return Pr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={folder:t.path,deleteItem:"multiple"},e.next=3,se({title:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_TITLE"),confirmationMessage:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_MESSAGE"),confirmButtonText:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_BUTTON_TEXT"),mutationFn:St,payload:r,invalidateKeys:[["MediaList"],["FolderList"]]});case 3:"CONFIRM"===e.sent.action&&(de({type:"success",message:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_FOLDER_DELETE_SUCCESS")}),Q([]));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onFileDelete:function(){var e=Zr(Pr().mark((function e(t){return Pr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,se({title:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_TITLE"),confirmationMessage:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_MESSAGE"),confirmButtonText:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_BUTTON_TEXT"),mutationFn:gt,payload:{data:[Ar(Ar({},t),{},{type:"local"})]},invalidateKeys:[["MediaList"],["FolderList"]]});case 2:"CONFIRM"===e.sent.action&&(de({type:"success",message:P("COM_SPPAGEBUILDER_EDITOR_FILE_DELETE_SUCCESS_MESSAGE")}),G([]));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),isLoading:!1,isSingleInsert:x}):_e.isLoading?(0,s.tZ)(w.fz,{}):(0,s.tZ)(s.HY,{children:(0,s.tZ)(Or,{ref:ue,isInfiniteLoaderVisible:Ue,mediaItems:[].concat(Rr(oe),Rr(Se)),selectedItemIds:N,onSelectionChange:function(e){N.includes(e)?G((function(t){return t.filter((function(t){return t!==e}))})):G(x?[e]:function(t){return[].concat(Rr(t),[e])})},isFilterApplied:!!Oe||!!Ee,onDelete:function(){var e=Zr(Pr().mark((function e(t){return Pr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,se({title:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_TITLE"),confirmationMessage:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_MESSAGE"),confirmButtonText:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_BUTTON_TEXT"),mutationFn:gt,payload:{data:[Ar(Ar({},t),{},{type:"local+db"})]},invalidateKeys:[["MediaList"],["FolderList"]]});case 2:"CONFIRM"===e.sent.action&&(de({type:"success",message:P("COM_SPPAGEBUILDER_EDITOR_FILE_DELETE_SUCCESS_MESSAGE")}),G([]));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})})})})]}),(xe=Y.some((function(e){return"folder"===e.type})),Pe=xe&&1===Y.length,Le=!xe,Ae=!C&&i&&u&&(1===N.length||1===Y.length)&&ke(),Te=C&&i&&u&&(Pe||Le)&&(N.length>0||Y.length>0)&&ke(),(Ae||Te)&&(0,s.BX)("div",{css:Ur.footerWrapper,children:[(0,s.tZ)(_.Z,{onClick:function(){var e,t,r=C;if("folders"!==B)1===N.length?(r&&(t=Rr(Se.filter((function(e){return N.includes(e.id)}))),E(t),b()),e=Se.find((function(e){return N.includes(e.id)}))):(t=Rr(Se.filter((function(e){return N.includes(e.id)}))),E(t),b());else if(r&&"folders"===B){var n,o;if(!Y.some((function(e){return"folder"===e.type}))){var i=Y.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=Ce.data)||void 0===o?void 0:o.items)&&void 0!==n?n:[]).map((function(e){return Ar(Ar({},e),{},{thumb:e.path})}));E(a),b()}else{var l;e=null===(l=we.data)||void 0===l?void 0:l.items.find((function(e){return Y[0].path===e.path}))}e&&(m(e),b())},children:P("COM_SPPAGEBUILDER_EDITOR_INSERT")}),(0,s.tZ)(_.Z,{variant:"secondary",onClick:function(){return G([])},children:P("COM_SPPAGEBUILDER_EDITOR_CANCEL")})]}))]})};var Nr={name:"kf3hau-mediaDropzoneWrapper",styles:"padding-right:0;label:mediaDropzoneWrapper;"},Gr={name:"1lytjnr-droppableContainer",styles:"min-height:350px;label:droppableContainer;"},Wr={name:"1ce2508-filterWrapper",styles:"padding-right:0;label:filterWrapper;"},Ur={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&&Wr,";;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&&Gr,";;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&&Nr,";;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 Fr=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?T.ZT:u,p=e.onBulkInsert,f=void 0===p?T.ZT:p,h=e.bulkImport,v=void 0!==h&&h,b=e.isSingleInsert,y=void 0!==b&&b,m=(0,A.$)();return(0,s.tZ)(Wt.Z,{onClose:function(){return r({action:"CLOSE"})},title:null!=t?t:m("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_TITLE"),isOverflowYAuto:!1,wrapperCss:Hr.wrapper,children:(0,s.tZ)(kr,{isInInsertMode:a,initialCategory:o,allowedMediaType:c,onInsert:d,onBulkInsert:f,closeModal:function(){return r()},bulkImport:v,isSingleInsert:y})})};var Hr={wrapper:{name:"ia4w6y-wrapper",styles:"max-width:1360px;label:wrapper;"}};function qr(e){return qr="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},qr(e)}function Vr(){Vr=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==qr(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function zr(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 Xr(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){zr(i,n,o,a,l,"next",e)}function l(e){zr(i,n,o,a,l,"throw",e)}a(void 0)}))}}function $r(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)||Kr(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 Kr(e,t){if(e){if("string"==typeof e)return Yr(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)?Yr(e,t):void 0}}function Yr(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 Qr=function(){return(0,s.tZ)("span",{css:en.spinner,children:(0,s.tZ)(w.ZP,{})})};const Jr=function(e){var t,r=e.field,n=e.fieldState,i=e.label,a=e.previewStyle,l=e.responsive,u=e.responsiveOrientation,d=e.helpText,p=e.mode,f=void 0===p?"image":p,h=e.placeholder,v=void 0===h?"":h,b=e.wrapperHeight,y=void 0===b?110:b,m=e.allowedFileExtensions,g=void 0===m?[]:m,E=e.caption,O=void 0!==E&&E,w=e.customButtonCss,C=e.customButtonContentCss,S=e.noPathInput,x=void 0!==S&&S,P=e.required,L=void 0!==P&&P,D=$r((0,c.useState)(!1),2),Z=D[0],R=D[1],j=$r((0,c.useState)(!1),2),B=j[0],M=j[1],k=(0,c.useRef)(null),N=(0,c.useRef)(null),G=Ot(),W=(0,A.$)(),U=(0,fe.p)().showToast,F=(0,Kt.d)().showModal,H=(0,ut.v)((function(e){return e.appConfig})).media_upload_max_size,q=(0,c.useRef)(null),V=r.value,z=V||"",X=!V;t="string"==typeof V?V.startsWith("http")?V:"".concat(T.Xy.pagebuilderBase).concat(V):"",(0,c.useEffect)((function(){var e=q.current,t=function(e){e.stopPropagation(),Z||R(!0)},r=function(e){e.stopPropagation(),R(!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(){X||"image"!==f||M(!0)}),[t,f]),(0,c.useEffect)((function(){var e;null!==(e=N.current)&&void 0!==e&&e.complete&&M(!1)}),[N.current]);var $=function(e){if(null==g||!g.length)return e;var t=e&&e.split(".").pop();return t&&g.includes(t)?e:(U({type:"danger",message:W("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_EXTENSION_NOT_ALLOWED")}),"")},K=function(){var e=Xr(Vr().mark((function e(){var t;return Vr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"image"===f?F({component:Fr,props:{onInsert:function(e){r.onChange($(e.path))},initialCategory:"image",allowedMediaType:"image",isSingleInsert:!0},closeOnOutsideClick:!0}):null===(t=k.current)||void 0===t||t.click();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Y=function(){r.onChange(""),M(!1)},Q=function(e){if("string"!=typeof e)return null;var t=e.split("/");return t[t.length-1]},J=function(e){var t;if(!e)return!1;var r=null!==(t=e.split(".").pop())&&void 0!==t?t:"";return["jpg","jpeg","png","gif","svg"].includes(r)};return(0,s.tZ)(re.Z,{label:i,field:r,fieldState:n,responsive:l,responsiveOrientation:u,helpText:d,required:L,children:function(){return(0,s.BX)(s.HY,{children:[X&&(0,s.tZ)("div",{ref:q,css:en.droppableContainer,children:(0,s.tZ)("div",{css:en.mediaDropzoneWrapper(y),children:(0,s.tZ)(Ye,{onUpload:function(){var e=Xr(Vr().mark((function e(t){return Vr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Bt(t,H)){e.next=4;break}return U({type:"danger",message:W("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_LARGE",{size:(0,T.td)(H)})}),e.abrupt("return");case 4:if("image"!==f||J(t[0].name)){e.next=6;break}return e.abrupt("return");case 6:if($(t[0].name)){e.next=8;break}return e.abrupt("return");case 8:return R(!1),e.next=11,G.mutateAsync({file:t}).then((function(e){var t;r.onChange($(null===(t=e.data)||void 0===t?void 0:t.path))}));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onDragLeave:function(){return R(!1)},onClickHandler:K,caption:O,supportedFileExtensions:g,uploadIcon:"file"===f?"localUpload":"upload",uploadButtonText:W("file"===f?"COM_SPPAGEBUILDER_EDITOR_MEDIADROPZONE_FILE_UPLOAD_MESSAGE":"COM_SPPAGEBUILDER_EDITOR_MEDIADROPZONE_IMAGE_UPLOAD_MESSAGE"),customButtonCss:w,customButtonContentCss:C})})}),!X&&"image"===f&&(0,s.BX)("div",{css:[en.previewWrapper(y),a,";label:MediaDropField;"],children:[B&&(0,s.tZ)(Qr,{}),(0,s.tZ)("img",{src:t,css:[en.imagePreview,B&&{display:"none"},";label:MediaDropField;"],onLoad:function(){return M(!1)},onError:function(){return M(!1)},ref:N}),(0,s.BX)("div",{css:en.hoverPreview,"data-hover-buttons-wrapper":!0,children:[(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:"recycle",height:16,width:16}),buttonContentCss:en.buttonContentPrimary,onClick:K,children:W("COM_SPPAGEBUILDER_EDITOR_MEDIA_REPLACE")}),(0,s.tZ)(_.Z,{variant:"secondary",buttonContentCss:en.buttonContentPrimary,onClick:Y,children:W("COM_SPPAGEBUILDER_EDITOR_MEDIA_CLEAR")})]})]}),!X&&"file"===f&&(0,s.BX)("div",{css:en.filePreviewWrapper,children:[(0,s.BX)("div",{style:{display:"flex",alignItems:"center"},children:[(0,s.tZ)(I.Z,{name:"collectionFileField",height:24,width:24}),(0,s.tZ)("div",{css:o.c.body(),children:Q(r.value)})]}),(0,s.BX)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:"recycle",height:16,width:16}),buttonContentCss:en.buttonContentPrimary,onClick:K,children:W("COM_SPPAGEBUILDER_EDITOR_MEDIA_REPLACE")}),(0,s.tZ)(_.Z,{variant:"secondary",buttonContentCss:en.buttonContentPrimary,onClick:Y,children:W("COM_SPPAGEBUILDER_EDITOR_MEDIA_CLEAR")})]})]}),(0,s.tZ)("input",{type:"file",hidden:!0,ref:k,onChange:function(e){if(e.target.files){var t=function(e){if(Array.isArray(e))return Yr(e)}(n=e.target.files)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||Kr(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.")}();if(Bt(t,H))return void U({type:"danger",message:W("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_LARGE",{size:(0,T.td)(H)})});if(!$(t[0].name))return;G.mutateAsync({file:t}).then((function(e){var t;r.onChange(null===(t=e.data)||void 0===t?void 0:t.path)}))}var n;e.target.value=""}}),!x&&(0,s.BX)("div",{css:en.inputWrapper,children:[(0,s.tZ)(Je.Z,{value:z,onChange:function(e){r.onChange(e)},placeholder:v||"",inputCss:en.inputCss}),!X&&(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"cross",height:16,width:16}),buttonContentCss:en.buttonContent,onClick:Y,children:W("COM_SPPAGEBUILDER_EDITOR_MEDIA_CLEAR")})]})]})}})};var en={droppableContainer:(0,i.iv)("flex:1;position:relative;margin-bottom:",n.W0[8],";;label:droppableContainer;"),mediaDropzoneWrapper:function(e){return(0,i.iv)("padding-right:",n.W0[24],";padding-right:0;height:",e,"px;;label:mediaDropzoneWrapper;")},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;"),previewWrapper:function(e){return(0,i.iv)("display:flex;justify-content:space-around;align-items:center;min-width:200px;width:100%;height:",e,"px;position:relative;overflow:hidden;margin-bottom:",n.W0[8],";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:"1h6g8x-imagePreview",styles:"height: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;"),spinner:{name:"k6liae-spinner",styles:"position:absolute;visibility:visible;display:flex;left:50%;top:50%;transform:translateX(-50%) translateY(-50%);label:spinner;"},filePreviewWrapper:(0,i.iv)("display:flex;justify-content:space-between;align-items:center;min-width:200px;width:100%;height:",52,"px;position:relative;overflow:hidden;margin-bottom:",n.W0[8],";padding:",n.W0[12],";background-color:",n.qo.base.white,";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";;label:filePreviewWrapper;")},tn=r(4353),rn=r(4943),nn=r(3106),on=r(2445),an=r(2423),ln=r(7273);function cn(e){return cn="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},cn(e)}function un(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 sn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?un(Object(r),!0).forEach((function(t){dn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):un(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==cn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==cn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===cn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pn(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(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,h=e.disabled,v=e.readOnly,b=e.loading,y=e.placeholder,m=e.helpText,g=e.onChange,E=e.onKeyDown,O=e.focusOnMount,_=void 0!==O&&O,w=e.enableResize,C=void 0!==w&&w,I=e.isInlineLabel,S=void 0!==I&&I,x=e.isCharacterCountVisible,P=void 0!==x&&x,L=e.responsive,D=e.responsiveOrientation,Z=e.required,R=void 0!==Z&&Z,j=(0,A.$)(),B=(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 pn(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)?pn(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.")}()),M=B[0],k=B[1],N=(0,c.useRef)(null),G=(0,pe.N)(M),W=(0,ln.o5)(M,nn.zu),U=(0,on.F)((function(e){return e.payload})),F=U.addonIndex,H=U.sectionIndex,q=U.columnIndex,V=U.tableItem,z=(0,an.s)((function(e){return e})).currentState;return(0,c.useEffect)((function(){var e;p.value!==M&&k(null!==(e=p.value)&&void 0!==e?e:"")}),[p.value,F,H,q,V,z]),(0,c.useEffect)((function(){g&&g(W),p.onChange(G)}),[G]),(0,c.useEffect)((function(){_&&N.current&&N.current.focus()}),[_]),(0,s.tZ)(re.Z,{label:o,field:p,fieldState:f,disabled:h,readOnly:v,loading:b,placeholder:y,helpText:m,isInlineLabel:S,responsive:L,responsiveOrientation:D,required:R,children:function(e){var t=e.attributes,r=e.data,n=r.responsive,o=r.device,i=((0,T.HD)(p.value)?p.value:"").length;return(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:vn.container({enableResize:C}),children:(0,s.tZ)("textarea",sn(sn(sn({},p),t),{},{ref:N,value:(0,ln.o5)(M,o),onChange:function(e){var t=e.target.value;if(!(u&&t.trim().length>u)){var r=(0,ln.xU)({previous:p.value,value:t,responsive:n,device:o});k(null!=r?r:"")}},onKeyDown:function(e){E&&E(e.key)},autoComplete:"off",rows:a,cols:l}))}),!!u&&!d&&(0,s.tZ)("p",{css:vn.maxLimit,children:j("COM_SPPAGEBUILDER_EDITOR_MAX_CHARACTERS",{maxCharacters:u})}),!!P&&!u&&(0,s.tZ)("p",{css:vn.characterCount,children:j("COM_SPPAGEBUILDER_EDITOR_CHARACTERS_COUNT",{characters:i})}),!!P&&!!u&&(0,s.tZ)("p",{css:vn.characterCount,children:j("COM_SPPAGEBUILDER_EDITOR_CHARACTERS_REMAINING",{remaining:u-i,maxCharacters:u})})]})}})};var hn={name:"19drmep-container",styles:"resize:vertical;label:container;"},vn={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&&hn,";: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;")},bn=function(){var e=(0,fe.p)().showToast,t=(0,ut.v)((function(e){return e.loadAppConfig}));return(0,ve.a)({queryKey:["AppConfig"],queryFn:function(){return be.u.get(he.H.APP_CONFIG).then((function(e){return e.data}))},onSuccess:function(e){t(e)},onError:function(t){e({type:"danger",message:t.message})}})};function yn(e){return yn="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},yn(e)}var mn="/Users/sifathaque/Herd/sppb/administrator/components/com_sppagebuilder/assets/editor/src/components/dynamic-content/RenderCollectionSchema.tsx";function gn(e){return function(e){if(Array.isArray(e))return En(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 En(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)?En(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 En(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 On(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?On(Object(r),!0).forEach((function(t){wn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):On(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"!==yn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===yn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Cn=function(e){var t,r,n,o,a,l=e.type,c=e.collectionForm,u=e.id,d=e.collections,p=c.watch("fields").findIndex((function(e){return e.id===u})),f=(0,A.$)(),h=c.getValues("fields.".concat(p,".reference_collection_name")),v=c.getValues("fields.".concat(p,".reference_collection_id")),b=[{label:h,value:v}],y=null!==(t=null===(r=d.find((function(e){return e.id===v})))||void 0===r?void 0:r.items)&&void 0!==t?t:[],m=null!==(n=null===(o=bn().data)||void 0===o?void 0:o.allowed_file_extensions)&&void 0!==n?n:[],g=null!==(a=c.watch("fields.".concat(p,".is_textarea")))&&void 0!==a&&a;switch(l){case"title":case"alias":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".placeholder"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER_PLACEHOLDER")}))}},"fields.".concat(p,".placeholder")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description"))]});case"text":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".placeholder"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER_PLACEHOLDER")}))}},"fields.".concat(p,".placeholder")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".is_textarea"),render:function(e){return(0,s.tZ)(rn.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_TEXT_AREA"),isInlineLabel:!0}))}},"fields.".concat(p,".is_textarea")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".max_length"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:String(e.field.value)})});return(0,s.tZ)(rt.Z,_n(_n({},t),{},{type:"number",label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MAX_LENGTH"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MAX_LENGTH_PLACEHOLDER"),onChange:function(t){var r=""===t?"":Number(t);e.field.onChange(r)}}))}},"fields.".concat(p,".max_length")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".default_value"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:e.field.value})});return g?(0,i.az)(fn,_n(_n({},t),{},{key:"textarea",label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DEFAULT_VALUE"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DEFAULT_VALUE_PLACEHOLDER"),__source:{fileName:mn,lineNumber:247,columnNumber:19}})):(0,i.az)(rt.Z,_n(_n({},t),{},{key:"default_value",label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DEFAULT_VALUE"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DEFAULT_VALUE_PLACEHOLDER"),__source:{fileName:mn,lineNumber:257,columnNumber:17}}))}},"fields.".concat(p,".default_value")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});case"date-time":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".placeholder"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER_PLACEHOLDER")}))}},"fields.".concat(p,".placeholder")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".show_time"),render:function(e){return(0,s.tZ)(rn.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_SHOW_TIME"),isInlineLabel:!0}))}},"fields.".concat(p,".show_time")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});case"gallery":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}}),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".min_length"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:String(e.field.value)})});return(0,s.tZ)(rt.Z,_n(_n({},t),{},{type:"number",label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MIN_LIMIT"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MIN_LIMIT_PLACEHOLDER"),onChange:function(t){var r=""===t?"":Number(t);e.field.onChange(r)}}))}},"fields.".concat(p,".min_length")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".max_length"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:String(e.field.value)})});return(0,s.tZ)(rt.Z,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MAX_LIMIT"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MAX_LIMIT_PLACEHOLDER"),onChange:function(t){var r=""===t?"":Number(t);e.field.onChange(r)},type:"number"}))}},"fields.".concat(p,".max_length")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});case"image":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".placeholder"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER_PLACEHOLDER")}))}},"fields.".concat(p,".placeholder")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}}),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".default_value"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:e.field.value})});return(0,s.tZ)(Jr,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MEDIA_DEFAULT"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MEDIA_DEFAULT_PLACEHOLDER"),noPathInput:!0}))}},"fields.".concat(p,".default_value")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});case"video":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".placeholder"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER_PLACEHOLDER")}))}},"fields.".concat(p,".placeholder")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}}),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});case"file":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".file_extensions"),render:function(e){return(0,s.tZ)(tn.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_EXTENSION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_EXTENSION_PLACEHOLDER"),options:m.map((function(e){return{label:e.toLowerCase(),value:e}})),isSearchable:!0,arrowSize:20}))}},"fields.".concat(p,".file_extensions")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});case"option":var E=c.watch("fields.".concat(p,".options"));return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".placeholder"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER_PLACEHOLDER")}))}},"fields.".concat(p,".placeholder")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description")),(0,s.BX)("div",{css:In.optionsWrapper,children:[(0,s.tZ)("label",{css:In.label,children:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_OPTIONS")}),E.map((function(e,t){return(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".options[").concat(t,"].label"),render:function(t){var r=_n(_n({},t),{},{field:_n(_n({},t.field),{},{value:t.field.value})});return(0,s.BX)("div",{css:In.extensionWrapper,children:[(0,s.tZ)("div",{css:In.textFieldWrapper,children:(0,s.tZ)(rt.Z,_n(_n({},r),{},{placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_OPTIONS_PLACEHOLDER")}))}),(0,s.tZ)(_.Z,{onClick:function(){c.setValue("fields.".concat(p,".options"),gn(E).filter((function(t){return t.value!==e.value})))},icon:(0,s.tZ)(I.Z,{name:"trash",width:12,height:12}),buttonCss:In.deleteButtonStyle,variant:"secondary"})]})}},"".concat(e.value))})),(0,s.tZ)("div",{children:(0,s.tZ)(_.Z,{onClick:function(){c.setValue("fields.".concat(p,".options"),[].concat(gn(E),[{label:"",value:(0,T.x0)()}]))},icon:(0,s.tZ)(I.Z,{name:"plus",width:12,height:12}),buttonCss:In.fieldName(),variant:"secondary",children:E.length>0?f("COM_SPPAGEBUILDER_EDITOR_OPTION_FIELD_ADD_MORE_DYNAMIC_CONTENT"):f("COM_SPPAGEBUILDER_EDITOR_OPTION_FIELD_ADD_NEW_DYNAMIC_CONTENT")})})]}),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".default_value"),render:function(e){return(0,s.tZ)(tt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DEFAULT_VALUE"),options:E.map((function(e){return{label:e.label,value:e.value}}))}))}},"fields.".concat(p,".default_value")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});case"switch":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".default_value"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:(0,T.$K)(e.field.value)?Number(e.field.value):0})});return(0,s.tZ)(rn.Z,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_SET_DEFAULT"),isInlineLabel:!0}))}},"fields.".concat(p,".default_value"))]});case"color":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".default_value"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:e.field.value})});return(0,s.tZ)(He,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME")}))}},"fields.".concat(p,".default_value"))]});case"number":var O=function(e){return"integer"===c.getValues("fields.".concat(p,".number_format"))?Math.round(e):e};return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".placeholder"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER_PLACEHOLDER")}))}},"fields.".concat(p,".placeholder")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".default_value"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:String(e.field.value)})});return(0,s.tZ)(rt.Z,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DEFAULT_VALUE"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DEFAULT_VALUE_PLACEHOLDER"),onChange:function(t){var r=""===t?"":O(Number(t));e.field.onChange(r)},type:"number"}))}},"fields.".concat(p,".default_value")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".min_length"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:String(e.field.value)})});return(0,s.tZ)(rt.Z,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MIN_VALUE"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MIN_VALUE_PLACEHOLDER"),onChange:function(t){var r=""===t?"":Number(t);e.field.onChange(r)},type:"number"}))}},"fields.".concat(p,".min_length")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".max_length"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:String(e.field.value)})});return(0,s.tZ)(rt.Z,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MAX_VALUE"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MAX_VALUE_PLACEHOLDER"),onChange:function(t){var r=""===t?"":Number(t);e.field.onChange(r)},type:"number"}))}},"fields.".concat(p,".max_length")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".number_step"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:String(e.field.value)})});return(0,s.tZ)(rt.Z,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_STEP"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_STEP_PLACEHOLDER"),type:"number",onChange:function(t){var r=""===t?"":O(Number(t));e.field.onChange(r)}}))}},"fields.".concat(p,".number_step")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".number_format"),render:function(e){return(0,s.tZ)(tt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_FORMAT"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_FORMAT_PLACEHOLDER"),options:[{label:"Any format",value:"any"},{label:"Integer(1)",value:"integer"},{label:"Decimal(1.0)",value:"decimal"}]}))}},"fields.".concat(p,".number_format")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".allow_negative"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_ALLOW_NEGATIVE"),onChange:function(t){var r=!0===t?1:0;e.field.onChange(r)}}))}},"fields.".concat(p,".allow_negative")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});case"rich-text":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".placeholder"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER_PLACEHOLDER")}))}},"fields.".concat(p,".placeholder")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".min_length"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:String(e.field.value)})});return(0,s.tZ)(rt.Z,_n(_n({},t),{},{type:"number",label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MIN"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MIN_PLACEHOLDER"),onChange:function(t){var r=""===t?"":Number(t);e.field.onChange(r)}}))}},"fields.".concat(p,".min_length")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".max_length"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:String(e.field.value)})});return(0,s.tZ)(rt.Z,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MAX"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_MAX_PLACEHOLDER"),onChange:function(t){var r=""===t?"":Number(t);e.field.onChange(r)},type:"number"}))}},"fields.".concat(p,".max_length")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});case"link":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".placeholder"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER_PLACEHOLDER")}))}},"fields.".concat(p,".placeholder")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});case"email":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".placeholder"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER_PLACEHOLDER")}))}},"fields.".concat(p,".placeholder")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});case"phone":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".placeholder"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_PLACEHOLDER_PLACEHOLDER")}))}},"fields.".concat(p,".placeholder")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});case"reference":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".reference_collection_id"),render:function(e){return(0,s.tZ)(tt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_COLLECTION"),disabled:!0,options:b}))}},"fields.".concat(p,".reference_collection_id")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".default_value"),render:function(e){return(0,s.tZ)(tt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DEFAULT_VALUE"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_REFERENCE_PLACEHOLDER"),options:y}))}},"fields.".concat(p,".default")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});case"multi-reference":return(0,s.BX)("div",{css:In.formFields,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".name"),rules:_n({},(0,Gt.n)()),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_NAME_PLACEHOLDER")}))}},"fields.".concat(p,".name")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".description"),render:function(e){return(0,s.tZ)(rt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DESCRIPTION_PLACEHOLDER")}))}},"fields.".concat(p,".description")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".reference_collection_id"),render:function(e){return(0,s.tZ)(tt.Z,_n(_n({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_COLLECTION"),disabled:!0,options:b}))}},"fields.".concat(p,".reference_collection_id")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".default_value"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Array.isArray(e.field.value)?e.field.value.map((function(e){return Number(e)})):[]})});return(0,s.tZ)(tn.Z,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_DEFAULT_VALUE"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_MULTI_REFERENCE_PLACEHOLDER"),options:y,arrowSize:20}))}},"fields.".concat(p,".default")),(0,s.tZ)(kt.Qr,{control:c.control,name:"fields.".concat(p,".required"),render:function(e){var t=_n(_n({},e),{},{field:_n(_n({},e.field),{},{value:Boolean(e.field.value)})});return(0,s.tZ)(ce,_n(_n({},t),{},{label:f("COM_SPPAGEBUILDER_EDITOR_COLLECTION_FIELD_REQUIRED")}))}},"fields.".concat(p,".required"))]});default:return null}};var In={formFields:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[20],";;label:formFields;"),label:(0,i.iv)(o.c.body(),";color:",n.qo.text.default,";font-size:",n.JB[12],";margin-bottom:",n.W0[4],";;label:label;"),textFieldWrapper:(0,i.iv)("width:100%;input{border-top-right-radius:",n.W0[0],";border-bottom-right-radius:",n.W0[0],";}input:focus{box-shadow:none!important;};label:textFieldWrapper;"),extensionWrapper:(0,i.iv)("margin-bottom:",n.W0[10],";display:flex;input{width:100%;};label:extensionWrapper;"),deleteButtonStyle:(0,i.iv)("border-top-left-radius:",n.W0[0],";border-bottom-left-radius:",n.W0[0],";border-left:",n.W0[0],";&:hover{border:1px solid ",n.qo.stroke.neutral,";border-left:",n.W0[0],";svg{color:",n.qo.action.error.default,";}};label:deleteButtonStyle;"),optionsWrapper:{name:"12dzaib-optionsWrapper",styles:"display:flex;flex-direction:column;label:optionsWrapper;"},fieldName:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)(o.c.caption(),";color:",e?n.qo.text.primary:n.qo.text.default,";;label:fieldName;")}};function Sn(e){return Sn="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},Sn(e)}function xn(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 Pn(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 Ln(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pn(Object(r),!0).forEach((function(t){An(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function An(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Sn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Sn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Sn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Tn=Ln({},JSON.parse('{"recipes":{"title":"Recipes","alias":"recipes","fields":[{"name":"Title","type":"title","required":1},{"name":"Alias","type":"alias","required":1,"placeholder":"Enter URL-friendly alias or leave empty for auto-generation"},{"name":"Image","type":"image","required":0,"default_value":""},{"name":"Description","type":"text","required":0,"is_textarea":1},{"name":"Ingredients","type":"rich-text","required":0},{"name":"Cooking Instructions","type":"text","is_textarea":1,"required":0},{"name":"Nutritional Information","type":"text","is_textarea":1,"required":0},{"name":"Preparation Time","type":"text","required":0}]},"events":{"title":"Events","alias":"events","fields":[{"name":"Title","type":"title","required":1,"placeholder":"Enter event title"},{"name":"Alias","type":"alias","required":1,"placeholder":"Enter URL-friendly alias or leave empty for auto-generation"},{"name":"Description","type":"rich-text","required":0,"placeholder":"Enter event description"},{"name":"Start Date","type":"date-time","required":1,"show_time":1,"placeholder":"Select start date and time"},{"name":"End Date","type":"date-time","required":0,"show_time":1,"placeholder":"Select end date and time"},{"name":"Location","type":"text","required":1,"placeholder":"Enter event location"},{"name":"Address","type":"text","is_textarea":1,"required":0,"placeholder":"Enter full address"},{"name":"Event Type","type":"option","options":[{"label":"In Person","value":"f47ac10b-58cc-4372-a567-0e02b2c3d479"},{"label":"Virtual","value":"550e8400-e29b-41d4-a716-446655440000"},{"label":"Hybrid","value":"6ba7b810-9dad-11d1-80b4-00c04fd430c8"}],"required":1,"placeholder":"Select event type"},{"name":"Registration Link","type":"link","required":0,"placeholder":"Enter registration URL"},{"name":"Maximum Attendees","type":"number","number_format":"integer","required":0,"placeholder":"Enter maximum number of attendees"},{"name":"Price","type":"number","number_format":"decimal","required":0,"placeholder":"Enter event price"},{"name":"Featured Image","type":"image","required":0,"placeholder":"Upload featured image"},{"name":"Contact Email","type":"email","required":0,"placeholder":"Enter contact email"},{"name":"Contact Phone","type":"phone","required":0,"placeholder":"Enter contact phone number"}]},"testimonials":{"title":"Testimonials","alias":"testimonials","fields":[{"name":"Title","type":"title","required":1,"placeholder":"Enter client name"},{"name":"Alias","type":"alias","required":1,"placeholder":"Enter URL-friendly alias or leave empty for auto-generation"},{"name":"Client Image","type":"image","required":0,"placeholder":"Upload client photo"},{"name":"Testimonial","type":"rich-text","required":1,"placeholder":"Enter client testimonial"},{"name":"Company","type":"text","required":0,"placeholder":"Enter company name"},{"name":"Position","type":"text","required":0,"placeholder":"Enter job position"},{"name":"Rating","type":"number","number_format":"integer","required":0,"placeholder":"Rate from 1-5"},{"name":"Date","type":"date-time","required":0,"show_time":0,"placeholder":"Select testimonial date"},{"name":"Featured","type":"switch","required":0}]},"services":{"title":"Services","alias":"services","fields":[{"name":"Title","type":"title","required":1,"placeholder":"Enter service name"},{"name":"Alias","type":"alias","required":1,"placeholder":"Enter URL-friendly alias or leave empty for auto-generation"},{"name":"Service Image","type":"image","required":0},{"name":"Short Description","type":"text","is_textarea":1,"required":1,"placeholder":"Enter brief service description"},{"name":"Description","type":"rich-text","required":0,"placeholder":"Enter full service description"},{"name":"Price","type":"number","number_format":"decimal","required":0,"placeholder":"Enter service price"},{"name":"Duration","type":"text","required":0,"placeholder":"Enter service duration"},{"name":"Category","type":"option","options":[{"label":"Consulting","value":"550e8400-e29b-41d4-a716-446655440000"},{"label":"Development","value":"6ba7b810-9dad-11d1-80b4-00c04fd430c8"},{"label":"Design","value":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},{"label":"Support","value":"a6e4f7c1-4711-4c1d-b349-394e2c14c3f2"}],"required":0,"placeholder":"Select service category"},{"name":"Features","type":"rich-text","required":0,"placeholder":"List service features"},{"name":"Featured","type":"switch","required":0},{"name":"Order Link","type":"link","required":0,"placeholder":"Enter order/booking URL"}]},"team_members":{"title":"Team Members","alias":"team-members","fields":[{"name":"Title","type":"title","required":1,"placeholder":"Enter team member name"},{"name":"Alias","type":"alias","required":1,"placeholder":"Enter URL-friendly alias or leave empty for auto-generation"},{"name":"Profile Image","type":"image","required":0},{"name":"Position","type":"text","required":1,"placeholder":"Enter job title"},{"name":"Type","type":"option","options":[{"label":"Staff","value":"8f7e6d5c-4321-4xyz-9876-543210abcdef"},{"label":"Contributor","value":"7c6d5e4f-5678-4xyz-8765-432109fedcba"},{"label":"Author","value":"12345678-90ab-cdef-1234-567890abcdef"}],"required":0,"placeholder":"Select team member type"},{"name":"Department","type":"option","options":[{"label":"Management","value":"8f7e6d5c-4321-4xyz-9876-543210abcdef"},{"label":"Sales","value":"7c6d5e4f-5678-4xyz-8765-432109fedcba"},{"label":"Development","value":"6b5a4c3d-8901-4xyz-7654-321098badcfe"},{"label":"Design","value":"5a4b3c2d-2345-4xyz-6543-210987cbafed"}],"required":0,"placeholder":"Select department"},{"name":"Bio","type":"rich-text","required":0,"placeholder":"Enter team member biography"},{"name":"Email","type":"email","required":0,"placeholder":"Enter work email"},{"name":"Phone","type":"phone","required":0,"placeholder":"Enter work phone number"},{"name":"LinkedIn","type":"link","required":0,"placeholder":"Enter LinkedIn profile URL"},{"name":"Start Date","type":"date-time","required":0,"show_time":0,"placeholder":"Select start date"}]},"projects":{"title":"Projects","alias":"projects","fields":[{"name":"Title","type":"title","required":1,"placeholder":"Enter project name"},{"name":"Alias","type":"alias","required":1,"placeholder":"Enter URL-friendly alias or leave empty for auto-generation"},{"name":"Image","type":"image","required":0},{"name":"Short Description","type":"text","is_textarea":1,"required":1,"placeholder":"Enter brief project overview"},{"name":"Description","type":"rich-text","required":0,"placeholder":"Enter detailed project description"},{"name":"Client","type":"text","required":0,"placeholder":"Enter client name"},{"name":"Status","type":"option","options":[{"label":"In Progress","value":"d290f1ee-6c54-4b01-90e6-d701748f0851"},{"label":"Completed","value":"04c6e90f-a605-4d19-a4f3-d74c6c8d6ad6"},{"label":"On Hold","value":"8b9c4e1d-c6a5-4c37-8a2f-b95e1d52c362"}],"required":1,"placeholder":"Select project status"},{"name":"Category","type":"option","options":[{"label":"Web Development","value":"7d9f1a2b-3c4e-5d6f-8g9h-0i1j2k3l4m5n"},{"label":"Mobile App","value":"2a3b4c5d-6e7f-8g9h-0i1j-2k3l4m5n6o7p"},{"label":"Design","value":"9h8g7f6e-5d4c-3b2a-1m9n-8o7p6q5r4s3t"},{"label":"Consulting","value":"4s5t6u7v-8w9x-0y1z-2a3b-4c5d6e7f8g9h"}],"required":0,"placeholder":"Select project category"},{"name":"Start Date","type":"date-time","required":1,"show_time":0,"placeholder":"Select project start date"},{"name":"End Date","type":"date-time","required":0,"show_time":0,"placeholder":"Select project completion date"},{"name":"Technologies","type":"text","is_textarea":1,"required":0,"placeholder":"List technologies used"},{"name":"Project URL","type":"link","required":0,"placeholder":"Enter project/demo URL"},{"name":"Featured","type":"switch","required":0}]},"announcements":{"title":"Announcements","alias":"announcements","fields":[{"name":"Title","type":"title","required":1,"placeholder":"Enter announcement title"},{"name":"Alias","type":"alias","required":1,"placeholder":"Enter URL-friendly alias or leave empty for auto-generation"},{"name":"Content","type":"rich-text","required":1,"placeholder":"Enter announcement content"},{"name":"Type","type":"option","options":[{"label":"General","value":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"},{"label":"Important","value":"1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed"},{"label":"Urgent","value":"6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b"}],"required":1,"placeholder":"Select announcement type"},{"name":"Publication Date","type":"date-time","required":1,"show_time":1,"placeholder":"Select publication date and time"},{"name":"Expiry Date","type":"date-time","required":0,"show_time":1,"placeholder":"Select expiry date and time"},{"name":"Featured Image","type":"image","required":0,"placeholder":"Upload featured image"},{"name":"Target Audience","type":"option","options":[{"label":"All Users","value":"8f7e6d5c-4321-4xyz-9876-543210abcdef"},{"label":"Staff Only","value":"7c6d5e4f-5678-4xyz-8765-432109fedcba"},{"label":"Members Only","value":"6b5a4c3d-8901-4xyz-7654-321098badcfe"}],"required":0,"placeholder":"Select target audience"},{"name":"External Link","type":"link","required":0,"placeholder":"Enter related link URL"},{"name":"Featured","type":"switch","required":0}]},"locations":{"title":"Locations","alias":"locations","fields":[{"name":"Title","type":"title","required":1,"placeholder":"Enter location name"},{"name":"Alias","type":"alias","required":1,"placeholder":"Enter URL-friendly alias or leave empty for auto-generation"},{"name":"Address","type":"text","is_textarea":1,"required":1,"placeholder":"Enter full address"},{"name":"City","type":"text","required":1,"placeholder":"Enter city"},{"name":"State/Province","type":"text","required":1,"placeholder":"Enter state or province"},{"name":"Postal Code","type":"text","required":1,"placeholder":"Enter postal/zip code"},{"name":"Country","type":"text","required":1,"placeholder":"Enter country"},{"name":"Phone","type":"phone","required":0,"placeholder":"Enter location phone number"},{"name":"Email","type":"email","required":0,"placeholder":"Enter location email"},{"name":"Hours of Operation","type":"rich-text","required":0,"placeholder":"Enter business hours"},{"name":"Type","type":"option","options":[{"label":"Headquarters","value":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"},{"label":"Branch Office","value":"1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed"},{"label":"Retail Store","value":"6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b"},{"label":"Warehouse","value":"7c9e6679-7425-40de-944b-e07fc1f90ae7"}],"required":0,"placeholder":"Select location type"},{"name":"Featured Image","type":"image","required":0,"placeholder":"Upload location image"},{"name":"Description","type":"rich-text","required":0,"placeholder":"Enter location description"},{"name":"Amenities","type":"text","is_textarea":1,"required":0,"placeholder":"List available amenities"},{"name":"Google Maps Link","type":"link","required":0,"placeholder":"Enter Google Maps URL"},{"name":"Active","type":"switch","required":0}]},"directories":{"title":"Directories","alias":"directories","fields":[{"name":"Title","type":"title","required":1,"placeholder":"Enter business/organization name"},{"name":"Alias","type":"alias","required":1,"placeholder":"Enter URL-friendly alias or leave empty for auto-generation"},{"name":"Logo","type":"image","required":0,"placeholder":"Upload business logo"},{"name":"Category","type":"option","options":[{"label":"Restaurant","value":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"},{"label":"Retail","value":"1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed"},{"label":"Professional Services","value":"6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b"},{"label":"Healthcare","value":"7c9e6679-7425-40de-944b-e07fc1f90ae7"}],"required":1,"placeholder":"Select business category"},{"name":"Description","type":"rich-text","required":1,"placeholder":"Enter business description"},{"name":"Address","type":"text","is_textarea":1,"required":1,"placeholder":"Enter full address"},{"name":"Phone","type":"phone","required":1,"placeholder":"Enter business phone"},{"name":"Email","type":"email","required":0,"placeholder":"Enter business email"},{"name":"Website","type":"link","required":0,"placeholder":"Enter business website URL"},{"name":"Business Hours","type":"rich-text","required":0,"placeholder":"Enter operating hours"},{"name":"Social Media","type":"text","is_textarea":1,"required":0,"placeholder":"Enter social media links"},{"name":"Featured Images","type":"image","required":0},{"name":"Services Offered","type":"rich-text","required":0,"placeholder":"List main services/products"}]},"listings":{"title":"Listings","alias":"listings","fields":[{"name":"Title","type":"title","required":1,"placeholder":"Enter listing title"},{"name":"Alias","type":"alias","required":1,"placeholder":"Enter URL-friendly alias or leave empty for auto-generation"},{"name":"Category","type":"option","options":[{"label":"For Sale","value":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"},{"label":"For Rent","value":"1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed"},{"label":"Services","value":"6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b"},{"label":"Jobs","value":"7c9e6679-7425-40de-944b-e07fc1f90ae7"}],"required":1,"placeholder":"Select listing category"},{"name":"Price","type":"number","number_format":"decimal","required":1,"placeholder":"Enter price"},{"name":"Description","type":"rich-text","required":1,"placeholder":"Enter detailed description"},{"name":"Images","type":"image","required":0,"placeholder":"Upload listing images"},{"name":"Location","type":"text","required":1,"placeholder":"Enter location"},{"name":"Contact Name","type":"text","required":1,"placeholder":"Enter contact person\'s name"},{"name":"Contact Phone","type":"phone","required":1,"placeholder":"Enter contact phone number"},{"name":"Contact Email","type":"email","required":0,"placeholder":"Enter contact email"},{"name":"Condition","type":"option","options":[{"label":"New","value":"550e8400-e29b-41d4-a716-446655440000"},{"label":"Like New","value":"6ba7b810-9dad-11d1-80b4-00c04fd430c8"},{"label":"Good","value":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},{"label":"Fair","value":"a6e4f7c1-4711-4c1d-b349-394e2c14c3f2"}],"required":0,"placeholder":"Select item condition"},{"name":"Publication Date","type":"date-time","required":1,"show_time":1,"placeholder":"Select publication date"},{"name":"Expiry Date","type":"date-time","required":0,"show_time":1,"placeholder":"Select expiry date"},{"name":"Featured","type":"switch","required":0},{"name":"Status","type":"option","options":[{"label":"Available","value":"8f7e6d5c-4321-4xyz-9876-543210abcdef"},{"label":"Pending","value":"7c6d5e4f-5678-4xyz-8765-432109fedcba"},{"label":"Sold","value":"6b5a4c3d-8901-4xyz-7654-321098badcfe"}],"required":1,"placeholder":"Select listing status"}]},"profiles":{"title":"Profiles","alias":"profiles","fields":[{"name":"Title","type":"title","required":1,"placeholder":"Enter full name"},{"name":"Alias","type":"alias","required":1,"placeholder":"Enter URL-friendly alias or leave empty for auto-generation"},{"name":"Profile Picture","type":"image","required":0,"placeholder":"Upload profile picture"},{"name":"Bio","type":"rich-text","required":0,"placeholder":"Enter brief biography"},{"name":"Email","type":"email","required":1,"placeholder":"Enter email address"},{"name":"Phone","type":"phone","required":0,"placeholder":"Enter phone number"},{"name":"Location","type":"text","required":0,"placeholder":"Enter city/country"},{"name":"Occupation","type":"text","required":0,"placeholder":"Enter current occupation"},{"name":"Skills","type":"text","is_textarea":1,"required":0,"placeholder":"List your key skills"},{"name":"Interests","type":"text","is_textarea":1,"required":0,"placeholder":"List your interests/hobbies"},{"name":"Website","type":"link","required":0,"placeholder":"Enter personal website URL"},{"name":"Social Media Links","type":"text","is_textarea":1,"required":0,"placeholder":"Enter social media profile URLs"},{"name":"Account Type","type":"option","options":[{"label":"Personal","value":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"},{"label":"Professional","value":"1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed"},{"label":"Business","value":"6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b"}],"required":1,"placeholder":"Select account type"},{"name":"Join Date","type":"date-time","required":1,"show_time":0,"placeholder":"Select join date"},{"name":"Featured","type":"switch","required":0}]},"campaigns":{"title":"Campaigns","alias":"campaigns","fields":[{"name":"Title","type":"title","required":1,"placeholder":"Enter campaign name"},{"name":"Alias","type":"alias","required":1},{"name":"Campaign Image","type":"image","required":0,"placeholder":"Upload campaign banner/image"},{"name":"Description","type":"rich-text","required":1,"placeholder":"Enter campaign description"},{"name":"Campaign Type","type":"option","options":[{"label":"Email","value":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"},{"label":"Social Media","value":"1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed"},{"label":"PPC/Ads","value":"6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b"},{"label":"Event","value":"7c9e6679-7425-40de-944b-e07fc1f90ae7"}],"required":1,"placeholder":"Select campaign type"},{"name":"Start Date","type":"date-time","required":1,"show_time":1,"placeholder":"Select campaign start date"},{"name":"End Date","type":"date-time","required":0,"show_time":1,"placeholder":"Select campaign end date"},{"name":"Target Audience","type":"text","is_textarea":1,"required":0,"placeholder":"Describe target audience"},{"name":"Budget","type":"number","number_format":"decimal","required":0,"placeholder":"Enter campaign budget"},{"name":"Goals","type":"rich-text","required":0,"placeholder":"Enter campaign objectives and KPIs"},{"name":"Status","type":"option","options":[{"label":"Draft","value":"550e8400-e29b-41d4-a716-446655440000"},{"label":"Active","value":"6ba7b810-9dad-11d1-80b4-00c04fd430c8"},{"label":"Paused","value":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},{"label":"Completed","value":"a6e4f7c1-4711-4c1d-b349-394e2c14c3f2"}],"required":1,"placeholder":"Select campaign status"},{"name":"Channel","type":"text","required":0,"placeholder":"Enter distribution channels"},{"name":"Landing Page","type":"link","required":0,"placeholder":"Enter campaign landing page URL"},{"name":"Tracking Code","type":"text","required":0,"placeholder":"Enter tracking/UTM codes"},{"name":"Results","type":"rich-text","required":0,"placeholder":"Enter campaign results and metrics"},{"name":"Featured","type":"switch","required":0}]},"tickets":{"title":"Tickets","alias":"tickets","fields":[{"name":"Title","type":"title","required":1,"placeholder":"Enter ticket subject"},{"name":"Alias","type":"alias","required":1,"placeholder":"Enter URL-friendly alias or leave empty for auto-generation"},{"name":"Description","type":"rich-text","required":1,"placeholder":"Enter ticket description"},{"name":"Priority","type":"option","options":[{"label":"Low","value":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"},{"label":"Medium","value":"1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed"},{"label":"High","value":"6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b"},{"label":"Critical","value":"7c9e6679-7425-40de-944b-e07fc1f90ae7"}],"required":1,"placeholder":"Select ticket priority"},{"name":"Status","type":"option","options":[{"label":"Open","value":"550e8400-e29b-41d4-a716-446655440000"},{"label":"In Progress","value":"6ba7b810-9dad-11d1-80b4-00c04fd430c8"},{"label":"Pending","value":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},{"label":"Resolved","value":"a6e4f7c1-4711-4c1d-b349-394e2c14c3f2"},{"label":"Closed","value":"b7e4f7c1-4711-4c1d-b349-394e2c14c3f3"}],"required":1,"placeholder":"Select ticket status"},{"name":"Category","type":"option","options":[{"label":"Technical Support","value":"8f7e6d5c-4321-4xyz-9876-543210abcdef"},{"label":"Billing","value":"7c6d5e4f-5678-4xyz-8765-432109fedcba"},{"label":"Feature Request","value":"6b5a4c3d-8901-4xyz-7654-321098badcfe"},{"label":"Bug Report","value":"5a4b3c2d-2345-4xyz-6543-210987cbafed"}],"required":1,"placeholder":"Select ticket category"},{"name":"Assigned To","type":"text","required":0,"placeholder":"Enter assignee name"},{"name":"Submitter Name","type":"text","required":1,"placeholder":"Enter submitter name"},{"name":"Submitter Email","type":"email","required":1,"placeholder":"Enter submitter email"},{"name":"Submission Date","type":"date-time","required":1,"show_time":1,"placeholder":"Select submission date and time"},{"name":"Due Date","type":"date-time","required":0,"show_time":1,"placeholder":"Select due date and time"},{"name":"Resolution Date","type":"date-time","required":0,"show_time":1,"placeholder":"Select resolution date and time"},{"name":"Resolution Notes","type":"rich-text","required":0,"placeholder":"Enter resolution details"},{"name":"Internal Notes","type":"rich-text","required":0,"placeholder":"Enter internal notes"}]}}')),Dn=r(9752),Zn=r(1151),Rn=r(5602),jn=r(9313),Bn=r(8138),Mn=r(9250);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)}var Nn=["id"],Gn=["id"];function Wn(e){return function(e){if(Array.isArray(e))return Yn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Kn(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 Un(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 Fn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Un(Object(r),!0).forEach((function(t){Hn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Un(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Hn(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 qn(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 Vn(){Vn=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==kn(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function zn(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 Xn(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){zn(i,n,o,a,l,"next",e)}function l(e){zn(i,n,o,a,l,"throw",e)}a(void 0)}))}}function $n(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)||Kn(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 Kn(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}}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}var Qn={name:"11anvku-CreateCollectionModal",styles:"margin-block:2px;label:CreateCollectionModal;"},Jn=function(e){var t,r=e.title,n=e.closeModal,o=e.isNew,i=void 0!==o&&o,a=e.preset,l=e.collections,u=e.collection,d=(0,A.$)(),p=(0,Mn.s0)(),f=(0,Zn.Qr)(),h=(0,Zn.N2)(),v=(0,Zn.A0)((null==u?void 0:u.id)||-1),b=(0,Zn.Fn)(),y=$n((0,c.useState)(!1),2),m=y[0],g=y[1],E=(0,Dn.Dy)((0,Dn.VT)(Dn.we,{activationConstraint:{distance:15}})),O=$n((0,c.useState)(null),2),w=O[0],C=O[1],S=(0,c.useMemo)((function(){return null!=a&&a.id?function(e){return Ln(Ln({},Tn[e]),{},{fields:Tn[e].fields.map((function(e){return Ln(Ln({},e),{},{id:(0,T.x0)()})}))})}(a.id).fields:[{id:(0,T.x0)(),type:"title",name:"Title",description:"",placeholder:"",default_value:"",max_length:"",required:1,is_textarea:0},{id:(0,T.x0)(),name:"Alias",type:"alias",description:"",placeholder:"",required:0}]}),[a]),P=(0,ot.O)({defaultValues:{title:(null==a?void 0:a.name)||"",alias:"",fields:S}}),L=P.formState.isDirty,D=(0,Kt.d)().showModal,Z=P.watch("title"),R=P.watch("alias"),j=P.watch("fields"),G=$n((0,c.useState)({type:"title",id:null===(t=j[0])||void 0===t?void 0:t.id}),2),W=G[0],U=G[1],F=(0,de.l)({isOpen:m,isDropdown:!0}),H=F.triggerRef,q=F.position,V=F.popoverRef;(0,c.useEffect)((function(){if(null!=u&&u.id){var e,t,r,n=(null!==(e=v.data)&&void 0!==e?e:[]).map((function(e){return function(e,t){for(var r=B(e),n=0,o=Object.keys(r);n<o.length;n++){var i=o[n];i in t&&(r[i]=t[i])}return r}(e.type,e)}));P.setValue("fields",n),U({type:null===(t=n[0])||void 0===t?void 0:t.type,id:null===(r=n[0])||void 0===r?void 0:r.id})}null!=u&&u.title&&P.setValue("title",u.title),null!=u&&u.alias&&P.setValue("alias",u.alias)}),[u,v.data]),(0,c.useEffect)((function(){C(null)}),[m]);var z=function(){var e=Xn(Vn().mark((function e(){return Vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D({component:nt.Z,props:{title:d("COM_SPPAGEBUILDER_EDITOR_COLLECTION_CONSENT_MODAL_TITLE"),confirmationMessage:d("COM_SPPAGEBUILDER_EDITOR_COLLECTION_CONSENT_MODAL_MESSAGE"),confirmButtonText:d("COM_SPPAGEBUILDER_EDITOR_COLLECTION_CONSENT_MODAL_DISCARD"),cancelButtonText:d("COM_SPPAGEBUILDER_EDITOR_COLLECTION_CONSENT_MODAL_CANCEL"),skipMutation:!0}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return v.isLoading?(0,s.tZ)(Wt.Z,{onClose:function(){return!1},wrapperCss:to.wrapper,isOverflowYAuto:!1,title:null!=r?r:d("COM_SPPAGEBUILDER_EDITOR_CREATE_COLLECTION"),children:(0,s.BX)("div",{css:to.body,children:[(0,s.BX)("div",{css:to.stickyHeader,children:[(0,s.tZ)(jn.Z,{height:16,width:"30%",animation:!0}),(0,s.tZ)(jn.Z,{height:32,width:"100%",animation:!0})]}),(0,s.BX)("div",{css:to.settingsContainer,children:[(0,s.tZ)("div",{css:to.fieldsContainer,children:(0,s.BX)("div",{css:[to.fieldsContainerInner,"gap:16px;;label:CreateCollectionModal;"],children:[(0,s.tZ)(jn.Z,{height:20,width:"80%",animation:!0}),(0,s.tZ)(jn.Z,{height:20,width:"60%",animation:!0}),(0,s.tZ)(jn.Z,{height:20,width:"55%",animation:!0}),(0,s.tZ)("div",{css:Qn}),(0,s.tZ)(jn.Z,{height:20,width:"80%",animation:!0}),(0,s.tZ)(jn.Z,{height:20,width:"65%",animation:!0}),(0,s.tZ)(jn.Z,{height:20,width:"55%",animation:!0}),(0,s.tZ)(jn.Z,{height:20,width:"40%",animation:!0}),(0,s.tZ)(jn.Z,{height:20,width:"50%",animation:!0}),(0,s.tZ)(jn.Z,{height:20,width:"55%",animation:!0}),(0,s.tZ)(jn.Z,{height:20,width:"50%",animation:!0}),(0,s.tZ)(jn.Z,{height:20,width:"40%",animation:!0}),(0,s.tZ)(jn.Z,{height:20,width:"52%",animation:!0})]})}),(0,s.BX)("div",{css:[to.formContainer,"gap:16px;;label:CreateCollectionModal;"],children:[(0,s.tZ)(jn.Z,{height:16,width:"45%",animation:!0}),(0,s.tZ)(jn.Z,{height:32,width:"100%",animation:!0}),(0,s.tZ)(jn.Z,{height:16,width:"35%",animation:!0}),(0,s.tZ)(jn.Z,{height:32,width:"100%",animation:!0}),(0,s.tZ)(jn.Z,{height:16,width:"55%",animation:!0}),(0,s.tZ)(jn.Z,{height:32,width:"100%",animation:!0}),(0,s.tZ)(jn.Z,{height:16,width:"50%",animation:!0}),(0,s.tZ)(jn.Z,{height:32,width:"100%",animation:!0}),(0,s.tZ)(jn.Z,{height:16,width:"32%",animation:!0}),(0,s.tZ)(jn.Z,{height:32,width:"100%",animation:!0})]})]}),(0,s.BX)("div",{css:to.footerWrapper,children:[(0,s.tZ)(jn.Z,{height:32,width:"16%",animation:!0}),(0,s.tZ)(jn.Z,{height:32,width:"28%",animation:!0})]})]})}):(0,s.BX)(Wt.Z,{onClose:function(){L?z().then((function(e){"CONFIRM"===e.action&&n({action:"CLOSE"})})):n({action:"CLOSE"})},title:null!=r?r:d("COM_SPPAGEBUILDER_EDITOR_CREATE_COLLECTION"),wrapperCss:to.wrapper,isOverflowYAuto:!1,children:[(0,s.BX)("form",{onSubmit:P.handleSubmit((0,Nt.GI)(P,function(){var e=Xn(Vn().mark((function e(t){var r,o,a;return Vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i){e.next=7;break}return e.next=4,f.mutateAsync({title:t.title,alias:t.alias,fields:JSON.stringify(t.fields.map((function(e){return e.id,Fn({},qn(e,Nn))})))});case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,h.mutateAsync({id:null!==(r=null==u?void 0:u.id)&&void 0!==r?r:-1,title:t.title,alias:t.alias,fields:JSON.stringify(t.fields.map((function(e){return"string"==typeof e.id?(e.id,qn(e,Gn)):e})))});case 9:e.t0=e.sent;case 10:(o=e.t0).data&&((a=(0,T.hj)(o.data)?o.data.toString():null==u?void 0:u.id.toString())&&p(Bn.F.DynamicContentSingleCollection.buildLink({collectionId:a})),n({action:"CONFIRM"})),e.next=17;break;case 14:throw e.prev=14,e.t1=e.catch(0),e.t1;case 17:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(t){return e.apply(this,arguments)}}())),children:[(0,s.BX)("div",{css:to.body,children:[(0,s.BX)("div",{css:to.stickyHeader,children:[(0,s.tZ)(kt.Qr,{control:P.control,name:"title",rules:Fn({},(0,Gt.n)()),render:function(e){return(0,s.tZ)("div",{css:to.fieldWrapper,children:(0,s.tZ)(rt.Z,Fn(Fn({},e),{},{label:d("COM_SPPAGEBUILDER_EDITOR_COLLECTION_NAME"),placeholder:d("COM_SPPAGEBUILDER_EDITOR_COLLECTION_NAME_PLACEHOLDER")}))})}}),(0,s.tZ)(kt.Qr,{control:P.control,name:"alias",render:function(e){var t=d("COM_SPPAGEBUILDER_EDITOR_COLLECTION_ALIAS_PLACEHOLDER");t=R?t:Z?(0,T.VH)(Z):t;var r=Fn(Fn({},e),{},{field:Fn(Fn({},e.field),{},{value:(0,T.VH)(e.field.value)})});return(0,s.tZ)("div",{css:to.fieldWrapper,children:(0,s.tZ)(rt.Z,Fn(Fn({},r),{},{label:d("COM_SPPAGEBUILDER_EDITOR_COLLECTION_ALIAS"),placeholder:t}))})}})]}),(0,s.BX)("div",{css:to.settingsContainer,children:[(0,s.tZ)("div",{css:to.fieldsContainer,children:(0,s.BX)("div",{css:to.fieldsContainerInner,children:[(0,s.tZ)("div",{css:to.fieldCategory(),children:d("COM_SPPAGEBUILDER_EDITOR_BASIC_FIELDS")}),j.filter((function(e){return Object.keys(Zn.VI).includes(e.type)})).map((function(e){return(0,s.tZ)("div",{css:[to.fieldElement(),W.id===e.id&&to.selectedField,";label:CreateCollectionModal;"],onClick:function(){U({type:e.type,id:e.id})},children:(0,s.BX)("div",{css:to.fieldElementIconAndTitle,children:[(0,s.tZ)(I.Z,{height:16,width:16,name:M(e.type),style:to.fieldIcon(W.id===e.id)}),(0,s.tZ)("div",{css:to.fieldName(W.id===e.id),children:e.name})]})},e.id)})),(0,s.BX)("div",{css:to.fieldCategory(!0),children:[(0,s.tZ)("div",{children:d("COM_SPPAGEBUILDER_EDITOR_CUSTOM_FIELDS")}),(0,s.tZ)("button",{type:"button",css:to.btn,onClick:function(){g(!0)},ref:H,children:(0,s.tZ)(I.Z,{height:20,width:20,name:"plus",style:to.fieldIcon()})})]}),(0,s.tZ)(Dn.LB,{sensors:E,collisionDetection:Dn.pE,modifiers:[Rn.l],onDragEnd:function(e){var t=e.active,r=e.over;if(t.id!==(null==r?void 0:r.id)){var n=j.findIndex((function(e){return e.id===t.id})),o=j.findIndex((function(e){return e.id===(null==r?void 0:r.id)})),i=(0,x.Rp)(j,n,o);P.reset(Fn(Fn({},P.getValues()),{},{fields:i}));var a=i.filter((function(e){return!Number.isNaN(Number(e.id))})).map((function(e){return Number(e.id)}));b.mutateAsync({pks:a})}},children:(0,s.tZ)(x.Fo,{items:j,strategy:x.qw,children:j.filter((function(e){return!Object.keys(Zn.VI).includes(e.type)})).map((function(e){return(0,s.tZ)(J,{field:e,actions:N,collectionForm:P,activeField:W,setActiveField:U},e.id)}))})})]})}),(0,s.tZ)("div",{css:to.formContainer,children:(0,s.tZ)(Cn,Fn(Fn({},W),{},{collectionForm:P,collections:l}))})]})]}),(0,s.BX)("div",{css:to.footerWrapper,children:[(0,s.tZ)(_.Z,{variant:"secondary",onClick:function(){L?z().then((function(e){"CONFIRM"===e.action&&n({action:"CLOSE"})})):n({action:"CLOSE"})},children:d("COM_SPPAGEBUILDER_EDITOR_CANCEL_COLLECTION")}),(0,s.tZ)(_.Z,{type:"submit",loading:f.isLoading,children:d(i?"COM_SPPAGEBUILDER_EDITOR_CREATE_COLLECTION":"COM_SPPAGEBUILDER_EDITOR_UPDATE_COLLECTION")})]})]}),(0,s.tZ)(de.h,{isOpen:m,onClickOutside:function(){return g(!1)},children:(0,s.tZ)("div",{css:[to.optionsWrapper,{left:q.left,top:q.top,maxWidth:160},";label:CreateCollectionModal;"],ref:V,children:(0,s.tZ)("ul",{css:to.options,children:k.map((function(e,t){var r=["reference","multi-reference"].includes(e.type),n=l.length>0;return r&&!n?null:(0,s.BX)("li",{css:to.optionItem({hasSeparator:"reference"===e.type}),children:[(0,s.BX)("button",{type:"button",css:to.optionItemInner,onMouseEnter:function(){["reference","multi-reference"].includes(e.type)?C((function(t){return t!==e.type?e.type:t})):C(null)},onClick:function(){if(!r){var t=B(e.type);P.setValue("fields",[].concat(Wn(j),[Fn({},t)]),{shouldDirty:!0}),U({id:t.id,type:t.type}),g(!1)}},children:[(0,s.tZ)(I.Z,{height:16,width:16,name:M(e.type),style:to.fieldIcon()}),(0,s.tZ)("div",{css:to.fieldNamePortal,children:e.title})]}),r&&(0,s.tZ)(I.Z,{height:12,width:12,name:"chevronRight",style:to.fieldIcon()}),r&&(0,s.tZ)("div",{"data-reference-popover":!0,css:to.referencePopover({show:e.type===w}),children:(0,s.tZ)("ul",{css:to.options,children:l.map((function(e){return(0,s.tZ)("li",{css:to.optionItem({hasSeparator:!1}),onClick:function(){var r=B(t===k.length-1?"multi-reference":"reference"),n=Fn(Fn({},r),{},{reference_collection_id:e.id,reference_collection_name:e.title,name:e.title});P.setValue("fields",[].concat(Wn(j),[Fn({},n)])),g(!1),U({id:r.id,type:r.type})},children:(0,s.tZ)("div",{css:to.fieldName(),children:e.title})},e.id)}))})})]},t)}))})})})]})},eo=function(){var e=(0,Kt.d)().showModal;return function(t){return e({component:Jn,props:t,closeOnOutsideClick:!0})}},to={wrapper:{name:"z3rd8n-wrapper",styles:"width:714px;position:relative;label:wrapper;"},body:(0,i.iv)("background-color:",n.qo.background.primary,";height:600px;max-height:calc(100vh - 120px);;label:body;"),stickyHeader:(0,i.iv)("position:sticky;top:0;background-color:",n.qo.background.primary,";border-bottom:1px solid ",n.qo.stroke.neutral,";z-index:",n.W5.header,";padding:",n.W0[16]," ",n.W0[24],";display:flex;gap:",n.W0[16],";&>div{width:100%;};label:stickyHeader;"),preset:(0,i.iv)("display:flex;align-items:center;justify-content:flex-start;gap:",n.W0[4],";margin-top:-",n.W0[16],";margin-bottom:",n.W0[4],";;label:preset;"),presetContainer:(0,i.iv)("display:flex;gap:",n.W0[8],";;label:presetContainer;"),settingsContainer:{name:"1adpg3b-settingsContainer",styles:"display:grid;grid-template-columns:270px auto;height:calc(100% - 150px);label:settingsContainer;"},formContainer:(0,i.iv)("width:100%;padding:",n.W0[24],";display:flex;flex-direction:column;height:100%;overflow-y:auto;",q.iZ.hideScrollbar,";;label:formContainer;"),fieldsContainer:(0,i.iv)("width:100%;display:flex;flex-direction:column;gap:",n.W0[10],";padding:",n.W0[24],";border-right:1px solid ",n.qo.stroke.neutral,";height:100%;overflow-y:auto;",q.iZ.hideScrollbar,";;label:fieldsContainer;"),fieldsContainerInner:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[4],";;label:fieldsContainerInner;"),fieldName:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)(o.c.caption(),";",q.iZ.textEllipsis,";width:150px;color:",e?n.qo.text.primary:n.qo.text.default,";;label:fieldName;")},fieldNamePortal:(0,i.iv)(o.c.caption(),";color:",n.qo.text.default,";;label:fieldNamePortal;"),fieldIcon:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)("color:",e?n.qo.icon.primary:n.qo.icon.default,";display:flex;align-items:center;justify-content:center;;label:fieldIcon;")},fieldElement:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)("display:flex;align-items:center;height:32px;cursor:pointer;position:relative;padding-inline:",n.W0[8],";flex-shrink:0;&:hover{background-color:",!e&&n.qo.background.white,";border-radius:",!e&&n.E0[5],";box-shadow:",!e&&n.AF.addonHover,";[data-field-icon]{display:none;}[data-dragger]{display:flex;align-items:center;justify-content:center;transform:scale(1.5);color:",n.qo.icon.default,";cursor:move;}[data-action-icon]{display:flex;color:",n.qo.icon.default,";margin-left:4px;}};label:fieldElement;")},fieldElementIconAndTitle:(0,i.iv)("display:flex;align-items:center;gap:",n.W0[8],";;label:fieldElementIconAndTitle;"),selectedField:(0,i.iv)("background-color:",n.qo.background.white,";border-radius:",n.E0[5],";box-shadow:",n.AF.base,";color:",n.qo.text.primary,";;label:selectedField;"),dragger:{name:"1h5igwz-dragger",styles:"display:none;label:dragger;"},fieldCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)("display:flex;justify-content:space-between;font-size:",n.JB[14],";line-height:",n.Nv[20],";font-weight:500;color:",n.qo.text.default,";padding-bottom:",n.W0[4],";margin-top:",e&&n.W0[12],";position:sticky;top:-24px;background:",n.qo.background.primary,";z-index:",n.W5.positive,";padding-top:",n.W0[8],";;label:fieldCategory;")},btn:{name:"svocbp-btn",styles:"background-color:transparent;border:none;cursor:pointer;label:btn;"},optionsWrapper:(0,i.iv)("position:absolute;width:100%;max-width:160px;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:597px;padding:",n.W0[4]," 0;margin:0;width:100%;;label:options;"),optionItem:function(e){var t=e.hasSeparator,r=void 0!==t&&t;return(0,i.iv)("position:relative;",o.c.body(),";height:28px;width:100%;display:flex;align-items:center;transition:background-color 0.3s ease-in-out;cursor:pointer;align-items:center;padding-inline:",n.W0[8],";justify-content:space-between;",r&&(0,i.iv)("border-top:1px solid ",n.qo.stroke.neutral,";;label:optionItem;")," &:hover{background-color:",n.qo.background.hover,";};label:optionItem;")},referencePopover:function(e){var t=e.show;return(0,i.iv)("display:flex;visibility:",t?"visible":"hidden",";position:absolute;right:calc(-100% + 20px);bottom:0;background-color:",n.qo.background.white,";box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";width:136px;;label:referencePopover;")},optionItemInner:(0,i.iv)(q.iZ.resetButton,";display:flex;align-items:center;gap:",n.W0[8],";width:100%;height:100%;;label:optionItemInner;"),footerWrapper:(0,i.iv)("display:flex;justify-content:end;align-items:center;gap:",n.W0[8],";padding:",n.W0[12]," ",n.W0[24],";background-color:",n.qo.background.white,";border-top:1px solid ",n.qo.stroke.neutral,";z-index:",n.W5.positive,";width:100%;height:60px;position:absolute;bottom:0;;label:footerWrapper;"),fieldWrapper:(0,i.iv)("margin-bottom:",n.W0[12],";;label:fieldWrapper;")};function ro(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 no=Object.entries(Tn).map((function(e){var t,r,n=(r=2,function(e){if(Array.isArray(e))return e}(t=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}}(t,r)||function(e,t){if(e){if("string"==typeof e)return xn(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)?xn(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.")}());return{id:n[0],name:n[1].title}}));const oo=function(){var e,t,r=(0,A.$)(),n=eo(),o=Ro().collections,i=(e=(0,c.useState)(!1),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 ro(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)?ro(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,de.l)({isOpen:a}),d=u.triggerRef,p=u.position,f=u.popoverRef;return(0,s.BX)(s.HY,{children:[(0,s.tZ)("button",{type:"button",css:io.chooseFromPreset,ref:d,onClick:function(){l(!0)},children:r("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_CHOOSE_FROM_PRESET")}),(0,s.tZ)(de.h,{isOpen:a,onClickOutside:function(){return l(!1)},children:(0,s.tZ)("div",{ref:f,css:[io.presetPopoverWrapper,{left:p.left+120,top:p.top-8,maxWidth:136},";label:CreateFromPreset;"],children:no.map((function(e){return(0,s.tZ)("button",{type:"button",css:io.presetPopoverItem,title:e.name,onClick:function(){l(!1),n({isNew:!0,preset:e,collections:o})},children:(0,s.tZ)("span",{children:e.name})},e.id)}))})})]})};var io={chooseFromPreset:(0,i.iv)(q.iZ.resetButton,";",o.c.body(),";color:",n.qo.text.primary,";&:hover{text-decoration:underline;};label:chooseFromPreset;"),presetPopoverWrapper:(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],";display:flex;flex-direction:column;padding-block:",n.W0[4],";;label:presetPopoverWrapper;"),presetPopoverItem:(0,i.iv)(q.iZ.resetButton,";height:28px;display:flex;align-items:center;padding-inline:",n.W0[12],";&>span{",o.c.body(),";color:",n.qo.text.default,";width:130px;",q.iZ.textEllipsis,";}&:hover{background-color:",n.qo.base.surface,";&>span{color:",n.qo.text.primary,";}};label:presetPopoverItem;")};const ao=function(e){var t=e.title,r=e.message,n=e.closeModal,o=(0,A.$)();return(0,s.tZ)(Wt.Z,{title:t,onClose:n,wrapperCss:lo.wrapper,children:(0,s.BX)("div",{css:lo.content,children:[(0,s.tZ)("p",{dangerouslySetInnerHTML:{__html:r}}),(0,s.tZ)(_.Z,{variant:"secondary",onClick:function(){return n()},children:o("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_DISMISS")})]})})};var lo={wrapper:{name:"spdkb8-wrapper",styles:"max-width:400px;width:100%;label:wrapper;"},content:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";align-items:center;padding:",n.W0[16]," ",n.W0[20],";p{",o.c.body(),";color:",n.qo.text.default,";}button{width:100%;span{width:100%;text-align:center;display:inline-block;}};label:content;")},co=r(2599),uo=function(){var e=(0,Mn.TH)(),t=(0,co.fp)(gI,e);if(!(0,T.$K)(t))return e.pathname;var r=t.find((function(t){return t.pathname===e.pathname}));return(null==r?void 0:r.route.path)||""},so=r(2447),po=r(3425);const fo=r.p+"images/8fb9524d6857eaa198ee.png";var ho=r(9655),vo=r(3039),bo=r(7894);function yo(e){return yo="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},yo(e)}function mo(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 go(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(r),!0).forEach((function(t){Eo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Eo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==yo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==yo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===yo(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oo(){Oo=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==yo(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function _o(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 wo(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){_o(i,n,o,a,l,"next",e)}function l(e){_o(i,n,o,a,l,"throw",e)}a(void 0)}))}}function Co(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)||Io(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 Io(e,t){if(e){if("string"==typeof e)return So(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)?So(e,t):void 0}}function So(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 xo=[{id:"edit",icon:"pencilOnBox",title:"COM_SPPAGEBUILDER_EDITOR_COLLECTION_EDIT"},{id:"rename",icon:"cursorText",title:"COM_SPPAGEBUILDER_EDITOR_COLLECTION_RENAME"},{id:"duplicate",icon:"cloneLine",title:"COM_SPPAGEBUILDER_EDITOR_COLLECTION_DUPLICATE"},{id:"delete",icon:"trash",title:"COM_SPPAGEBUILDER_EDITOR_COLLECTION_DELETE",variant:"critical"}],Po=function(e){var t,r=e.collection,o=e.isOverlay,i=void 0!==o&&o,a=Co((0,c.useState)(!1),2),l=a[0],u=a[1],d=Ro().collections,p=(0,A.$)(),f=((0,Zn.Qr)(),(0,Zn.BY)()),h=(0,nt.g)(),v=eo(),b=(0,Kt.d)().showModal,y=(0,x.nB)({id:r.id}),m=y.attributes,g=y.listeners,E=y.setNodeRef,O=y.transition,_=y.transform,w=y.isDragging,C=(0,Zn.S0)(),S=(0,Zn.sd)(),T=(0,ot.O)({defaultValues:{title:r.title}}),D=(0,so.Z)(Bn.F.DynamicContentSingleCollection).collectionId,Z=Number(D)===r.id,R={transform:P.ux.Transform.toString(_),transition:O},j=(0,Mn.s0)();return(0,c.useEffect)((function(){var e=function(e){"Escape"!==e.key?"Enter"===e.key&&T.handleSubmit(function(){var e=wo(Oo().mark((function e(t){var n;return Oo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.id,S.mutateAsync({id:n,title:t.title}),r.title=t.title,u(!1);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())():u(!1)};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[l]),l?(0,s.BX)("div",{css:Ao.collectionItem(!1),children:[(0,s.tZ)(I.Z,{name:"dynamicContent",style:Ao.collectionIcon}),(0,s.tZ)("div",{css:Ao.collectionTitle,children:(0,s.tZ)(kt.Qr,{control:T.control,name:"title",render:function(e){return(0,s.tZ)(rt.Z,go(go({},e),{},{hasAutoFocus:!0}))}})})]}):(0,s.BX)("div",go(go(go({css:Ao.collectionItem(Z),ref:E,style:go(go({},R),{},{cursor:i?"grabbing":"default",opacity:w?0:1})},m),g),{},{onClick:function(){return j(Bn.F.DynamicContentSingleCollection.buildLink({collectionId:String(r.id)}))},children:[(0,s.tZ)(I.Z,{name:"dynamicContent",style:Ao.collectionIcon}),(0,s.BX)(ho.rU,{to:Bn.F.DynamicContentSingleCollection.buildLink({collectionId:r.id.toString()}),css:Ao.collectionTitle,onDoubleClick:function(){return u(!0)},title:r.title,children:[(0,s.tZ)("span",{children:r.title})," ",(0,s.BX)("sup",{children:["(",null!==(t=r.total_items)&&void 0!==t?t:0,")"]})]}),(0,s.tZ)("div",{css:Ao.actionWrapper,"data-action-wrapper":!0,children:(0,s.tZ)(L.Z,{actions:xo,triggerButtonContent:(0,s.tZ)(I.Z,{name:"ellipsisX",width:20,height:20,style:Ao.triggerIcon}),onSelect:function(){var e=wo(Oo().mark((function e(t){var o,i,a;return Oo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("delete"!==t){e.next=21;break}return e.next=3,f.mutateAsync({id:r.id,force:!1});case 3:if("boolean"!=typeof(o=e.sent).data){e.next=9;break}if(o.data){e.next=7;break}return e.abrupt("return");case 7:return j(Bn.F.DynamicContentSingleCollection.buildLink({collectionId:String(d[0].id)})),e.abrupt("return");case 9:if(!o.data.stop_reason||!["empty_collection","collection_has_items"].includes(o.data.stop_reason)){e.next=16;break}return e.next=12,h({title:p("COM_SPPAGEBUILDER_EDITOR_DELETE_COLLECTION_CONSENT_MODAL_TITLE",{collection:r.title}),confirmationMessage:o.data.message,payload:{id:r.id,force:!0},mutationFn:f.mutateAsync,backgroundColor:n.qo.background.primary,invalidateKeys:[["CollectionList"]],proceedText:r.title.toLowerCase().replace(/[^a-zA-Z0-9\s]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")});case 12:return"CONFIRM"===e.sent.action&&d.length&&j(Bn.F.DynamicContentSingleCollection.buildLink({collectionId:String(d[0].id)})),e.abrupt("return");case 16:if(!o.data.stop_reason||!["collection_used_in_page","collection_reference_to_other_collection"].includes(o.data.stop_reason)){e.next=19;break}return b({component:ao,props:{title:p("COM_SPPAGEBUILDER_EDITOR_DELETE_COLLECTION_CONSENT_MODAL_TITLE",{collection:r.title}),message:null!==(i=o.data.message)&&void 0!==i?i:""}}),e.abrupt("return");case 19:e.next=29;break;case 21:if("duplicate"!==t){e.next=28;break}return e.next=24,C.mutateAsync({id:r.id});case 24:null!=(a=e.sent)&&a.data&&j(Bn.F.DynamicContentSingleCollection.buildLink({collectionId:String(a.data)})),e.next=29;break;case 28:"rename"===t?u(!0):"edit"===t&&v({title:p("COM_SPPAGEBUILDER_EDITOR_EDIT_COLLECTION"),isNew:!1,collection:{id:r.id,title:r.title,alias:r.alias},collections:d});case 29:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})})]}))},Lo=function(e){var t=e.showExport,r=void 0===t||t,n=(0,A.$)(),o=(0,Mn.s0)(),i=(0,Zn.nu)();function a(){return(a=wo(Oo().mark((function e(){var t;return Oo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Zn.H9)();case 2:(t=e.sent).data&&(0,T.OV)(JSON.stringify(t.data),"dc-");case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,s.BX)("div",{css:Ao.exportImportWrapper,children:[(0,s.tZ)(_.Z,{onClick:function(){var e=document.createElement("input");e.type="file",e.accept=".json",e.onchange=function(){var e=wo(Oo().mark((function e(t){var r,n,a;return Oo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null===(r=t.target.files)||void 0===r?void 0:r[0]){e.next=3;break}return e.abrupt("return");case 3:(a=new FileReader).onload=function(){var e=wo(Oo().mark((function e(t){var r,n;return Oo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null===(r=t.target)||void 0===r?void 0:r.result,e.next=3,i.mutateAsync({data:n});case 3:e.sent.data&&o(Bn.F.DynamicContent.buildLink());case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.readAsText(n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),e.click()},icon:(0,s.tZ)(I.Z,{name:"importAlt",noFill:!0}),variant:"secondary",children:n("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_IMPORT")}),r&&(0,s.tZ)(_.Z,{onClick:function(){return a.apply(this,arguments)},icon:(0,s.tZ)(I.Z,{name:"exportAlt",noFill:!0}),variant:"secondary",children:n("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_EXPORT")})]})};var Ao={exportImportWrapper:(0,i.iv)("display:flex;align-items:center;gap:",n.W0[12],";;label:exportImportWrapper;"),proBannerContentCss:(0,i.iv)("padding:",n.W0[12],";;label:proBannerContentCss;"),proPopupWrapperCss:{name:"i0ec8b-proPopupWrapperCss",styles:"padding-block:88px;label:proPopupWrapperCss;"},wrapper:(0,i.iv)("display:grid;grid-template-columns:228px 1fr;gap:",n.W0[24],";padding:",n.W0[24]," 0;",n.Uo.smallTablet,"{gap:",n.W0[32],";grid-template-columns:1fr;};label:wrapper;"),sidebar:(0,i.iv)("display:flex;flex-direction:column;position:relative;background-color:",n.qo.base.white,";border-radius:",n.W0[8],";box-shadow:",n.AF.card,";height:fit-content;padding-bottom:",n.W0[12],";",n.Uo.smallTablet,"{flex-direction:row;justify-content:left;gap:",n.W0[16],";z-index:",n.W5.sidebar,";};label:sidebar;"),addNewCollectionWrapper:(0,i.iv)("padding:",n.W0[16],";text-align:center;border-bottom:1px solid ",n.qo.stroke.neutral,";display:flex;flex-direction:column;gap:",n.W0[8],";;label:addNewCollectionWrapper;"),collectionItem:function(e){return(0,i.iv)("display:flex;align-items:center;position:relative;height:40px;padding-inline:",n.W0[16]," ",n.W0[12],";&:hover{background-color:",n.qo.base.surface,";color:",n.qo.text.primary,";[data-action-wrapper]{visibility:visible;}svg{color:",n.qo.icon.primary,";}span,span>sup{color:",n.qo.text.primary,";}}",e&&(0,i.iv)("background-color:",n.qo.base.surface,";svg{color:",n.qo.icon.primary,";}span,span>sup{color:",n.qo.text.primary,";};label:collectionItem;"),";;label:collectionItem;")},collectionIcon:(0,i.iv)("color:",n.qo.icon.default,";;label:collectionIcon;"),collectionTitle:(0,i.iv)(o.c.body(),";margin-left:",n.W0[12],";color:",n.qo.text.default,";display:flex;align-items:center;gap:",n.W0[4],";&>sup{",o.c.tiny("medium")," color:",n.qo.text.hints,";}&>span{display:inline-block;max-width:130px;",q.iZ.textEllipsis,";};label:collectionTitle;"),actionWrapper:{name:"1qg1kp1-actionWrapper",styles:"margin-left:auto;visibility:hidden;label:actionWrapper;"},triggerIcon:(0,i.iv)("color:",n.qo.icon.default,";;label:triggerIcon;")},To=r(8537);function Do(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 Zo=(0,c.createContext)({collections:[],updateCollections:T.ZT}),Ro=function(){return(0,c.useContext)(Zo)};var jo={emptyActionWrapper:(0,i.iv)("width:fit-content;margin:0 auto;display:flex;flex-direction:column;gap:",n.W0[8],";&>button:first-of-type{display:inline-flex;justify-content:center;};label:emptyActionWrapper;"),emptyWrapperCss:(0,i.iv)("background-color:",n.qo.base.surface,";box-shadow:none;;label:emptyWrapperCss;"),proBannerContentCss:(0,i.iv)("padding:",n.W0[12],";;label:proBannerContentCss;"),proPopupWrapperCss:{name:"i0ec8b-proPopupWrapperCss",styles:"padding-block:88px;label:proPopupWrapperCss;"}},Bo=r(627),Mo=r(7679),ko=r(2811);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)}var Go=["settings"];function Wo(){Wo=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==No(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Uo(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 Fo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(r),!0).forEach((function(t){Ho(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uo(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 qo(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 Vo(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 zo=function(){var e=(0,kt.Gc)(),t=(0,Mn.s0)(),r=(0,fe.p)().showToast,n=(0,A.$)(),o=(0,so.Z)(Bn.F.PageEditor),i=o.id,a=o.type,l=(0,Mo.lN)(),c=(0,Mo.es)({hideSuccessMessage:!0}),u=(0,ko.T)().prepareFormDataBeforeSaving,s=function(){var o,s=(o=Wo().mark((function o(s){var d,p,f,h,v,b,y;return Wo().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(d=e.getValues(),p=d.settings,"popup"===(null==(f=qo(d,Go))?void 0:f.extension_view)){o.next=5;break}if(!(null!=f&&null!==(h=f.attribs)&&void 0!==h&&h.meta_description&&(null==f||null===(v=f.attribs)||void 0===v||null===(b=v.meta_description)||void 0===b?void 0:b.length)>160)){o.next=5;break}return r({type:"danger",message:n("COM_SPPAGEBUILDER_EDITOR_META_DESCRIPTION_MAX_LENGTH_ERROR")}),o.abrupt("return",!1);case 5:if(null==s||!s.saveAsCopy){o.next=11;break}return o.next=8,c.mutateAsync({id:Number(i)});case 8:return y=o.sent,(0,T.$K)(y.id)&&t(Bn.F.PageEditor.buildLink({id:y.id.toString(),type:a})),o.abrupt("return",c.isLoading);case 11:return o.next=13,l.mutateAsync(Fo(Fo({},f),{},{id:Number(i),text:u(p)}));case 13:return o.abrupt("return",l.isLoading);case 14:case"end":return o.stop()}}),o)})),function(){var e=this,t=arguments;return new Promise((function(r,n){var i=o.apply(e,t);function a(e){Vo(i,r,n,a,l,"next",e)}function l(e){Vo(i,r,n,a,l,"throw",e)}a(void 0)}))});return function(e){return s.apply(this,arguments)}}();return{savePageContent:s,isLoading:l.isLoading||c.isLoading}},Xo=r(1073),$o=r(3896),Ko=r(7855),Yo=r(1593),Qo=r(6695),Jo=r(2960);function ei(e){return ei="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},ei(e)}function ti(){return ti=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},ti.apply(this,arguments)}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 ni(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){oi(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 oi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ei(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ei(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ei(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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)||function(e,t){if(e){if("string"==typeof e)return ai(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)?ai(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 ai(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}r(1313);var li=function(e,t){if(null==e||!e.from||null==e||!e.to)return"";var r={from:(0,Qo.Z)(new Date(null==e?void 0:e.from),nn.E_.monthNameDayYear),to:(0,Qo.Z)(new Date(null==e?void 0:e.to),nn.E_.monthNameDayYear)};return"".concat(null==r?void 0:r.from," to ").concat(null==r?void 0:r.to)};const ci=function(e){var t=e.label,r=e.field,o=e.fieldState,i=e.disabled,a=e.loading,l=e.placeholder,u=e.helpText,d=e.isClearable,p=void 0===d||d,f=e.showTime,h=void 0!==f&&f,v=e.required,b=void 0!==v&&v,y=((0,A.$)(),ii((0,c.useState)(!1),2)),m=y[0],g=y[1],E=ii((0,c.useState)(r.value),2),O=E[0],w=E[1],C=ii((0,c.useState)(),2),S=C[0],x=C[1],P=(0,de.l)({isOpen:m,isDropdown:!0}),L=P.triggerRef,D=P.position,Z=P.popoverRef,R=function(e){null!=e&&e.from&&null!=e&&e.to&&(x(e),function(e){var t=e.date;if("date"===e.action&&null!=t&&t.from&&null!=t&&t.to){var n=ni({},{from:(0,Qo.Z)(t.from,nn.E_.altDateFormat),to:(0,Qo.Z)(t.to,nn.E_.altDateFormat)});w(n),r.onChange(n)}}({date:e,action:"date"}))};return(0,c.useEffect)((function(){r.value&&(w(r.value),x(function(e){if(null!=e&&e.from&&null!=e&&e.to)return{from:new Date(null==e?void 0:e.from),to:new Date(null==e?void 0:e.to)}}(r.value)))}),[r.value]),(0,s.tZ)(re.Z,{label:t,field:r,fieldState:o,disabled:i,loading:a,placeholder:l,helpText:u,required:b,children:function(e){var t=e.attributes,o=ti({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(t),t));return(0,s.BX)("div",{children:[(0,s.BX)("div",{css:si.wrapper,ref:L,children:[(0,s.tZ)(Je.Z,ni(ni({},o),{},{inputCss:si.input,type:"text",onFocus:function(){return g(!0)},value:li(O),onChange:T.ZT})),(0,s.tZ)("div",{css:si.icon,children:(0,s.tZ)(I.Z,{name:"collectionDateTimeField"})}),p&&r.value&&(0,s.tZ)(_.Z,{variant:"text",buttonCss:si.clearButton,onClick:function(){w({from:"",to:""}),r.onChange({from:"",to:""})},children:(0,s.tZ)(I.Z,{name:"times"})})]}),(0,s.tZ)(de.h,{isOpen:m,onClickOutside:function(){return g(!1)},children:(0,s.BX)("div",{css:[si.pickerWrapper(m,h),{left:D.left,top:D.top},";label:DateTimeRangeField;"],ref:Z,children:[(0,s.tZ)("div",{css:si.backdrop,onClick:function(){return g(!1)},role:"presentation"}),(0,s.tZ)("style",{children:"\n .rdp-day.rdp-selected.rdp-range_start .rdp-day_button, .rdp-day.rdp-selected.rdp-range_end .rdp-day_button {\n background-color: #3366FF;\n color: #fff;\n border-radius: 14px;\n }\n .rdp-month_caption {\n font-weight: normal;\n font-size: 100%;\n }\n"}),(0,s.tZ)(Jo._W,{captionLayout:"dropdown",mode:"range",selected:S,onSelect:R,styles:{root:{paddingTop:"".concat(n.W0[8])}},style:oi({},"--rdp-selected-border","none")})]})})]})}})};var ui={name:"18vvkfu-pickerWrapper",styles:"visibility:visible;label:pickerWrapper;"},si={wrapper:{name:"9kz1uc-wrapper",styles:":hover{&>button{opacity:1;}};label:wrapper;"},input:(0,i.iv)("padding-left:",n.W0[40],";caret-color:transparent;;label:input;"),icon:(0,i.iv)("position:absolute;top:50%;padding-left:",n.W0[2],";transform:translateY(-50%);border-right:1px solid ",n.qo.stroke.neutral,";height:100%;display:flex;align-items:center;justify-content:center;width:",n.W0[32],";;label:icon;"),pickerWrapper:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return(0,i.iv)("display:flex;position:absolute;background-color:",n.qo.base.white,";box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";",t?"padding-left: ".concat(n.W0[24],";"):"padding: ".concat(n.W0[12]," ").concat(n.W0[24],";")," visibility:hidden;",e&&ui," .rdp-caption_label{",o.c.heading6(),";}.rdp-day_outside{color:",n.qo.text.disabled,";};label:pickerWrapper;")},backdrop:(0,i.iv)(q.iZ.centeredFlex,";position:fixed;inset:0;z-index:",n.W5.negative,";;label:backdrop;"),clearButton:(0,i.iv)("position:absolute;top:50%;right:",n.W0[4],";transform:translateY(-50%);width:32px;height:32px;",q.iZ.flexCenter(),";opacity:0;transition:background-color 0.3s ease-in-out,opacity 0.3s ease-in-out;:hover{background-color:",n.qo.background.hover,";};label:clearButton;"),timeWrapper:(0,i.iv)("display:flex;padding-left:",n.W0[12],";;label:timeWrapper;"),timeColumn:(0,i.iv)("display:flex;flex-direction:column;gap:12px;overflow:auto;text-align:center;padding-bottom:",n.W0[56],";padding-top:",n.W0[16],";border-left:1px solid ",n.qo.stroke.neutral,";padding-inline:",n.W0[12],";",q.iZ.hideScrollbar,";;label:timeColumn;"),timeColumnItem:function(e){var t=e.isSelected;return(0,i.iv)(o.c.body("medium"),";padding:",n.W0[8],";border-radius:",n.E0[10],";cursor:pointer;user-select:none;width:32px;height:32px;display:flex;align-items:center;justify-content:center;&:last-of-type{margin-bottom:",n.W0[256],";}",t&&(0,i.iv)("background:",n.qo.base.primary,";color:",n.qo.base.white,";;label:timeColumnItem;")," &:hover{background:",n.qo.base.primary,";color:",n.qo.base.white,";};label:timeColumnItem;")}},di=r(7856);function pi(e){return pi="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},pi(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 hi(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){vi(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 vi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==pi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==pi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===pi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bi={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 yi=function(e){var t,r,n=e.closeModal,o=e.title,i=e.closeActiveAction,a=void 0===i?function(){return(0,T.ZT)()}:i,l=e.setIsNextClicked,c=e.form,u=e.savePageContent,d=(0,A.$)(),p=(0,ut.v)((function(e){return e.appConfig})),f=[{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_VISIBILITY_OPTION_ENTIRE_SITE"),value:"entire_site"},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_VISIBILITY_OPTION_SPECIFIC_PAGES"),value:"specific_pages"},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_VISIBILITY_OPTION_SPECIFIC_MENUS"),value:"specific_menus"}],h=[{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CONDITION_ON_SCROLL"),value:"on_scroll"},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CONDITION_ON_LANDING"),value:"on_landing"},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CONDITION_ON_CLICK"),value:"on_click"},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CONDITION_ON_HOVER"),value:"on_hover"},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CONDITION_ON_INACTIVITY"),value:"on_inactivity"}],v=[{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_SCROLL_UP"),value:"up"},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_SCROLL_DOWN"),value:"down"}],b=[{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CLICK_TYPE_RANDOM"),value:"random"},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CLICK_TYPE_SPECIFIC"),value:"specific"}],y=(null===(t=p.pages.find((function(e){return"Pages"===e.label})))||void 0===t||null===(r=t.options)||void 0===r?void 0:r.map((function(e){return{label:e.label,value:e.value.toLocaleString()}})))||[],m=p.menus.map((function(e){return{label:e.label,value:e.value.toString()}})),g=(0,kt.qo)({control:c.control,name:"attribs.visibility"}),E=(0,kt.qo)({control:c.control,name:"attribs.exclude_pages_toggle"}),O=(0,kt.qo)({control:c.control,name:"attribs.exclude_menus_toggle"}),w=(0,kt.qo)({control:c.control,name:"attribs.trigger_condition"}),C=(0,kt.qo)({control:c.control,name:"attribs.click_type"});return(0,s.BX)(Wt.Z,{onClose:function(){null==l||l(!1),document.getElementById("topbar-burger-menu")&&(document.getElementById("topbar-burger-menu").style.display="flex"),a(),n({action:"CLOSE"})},title:o,wrapperCss:bi.wrapper,isOverflowYAuto:!1,children:[(0,s.BX)("div",{css:bi.body,children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.visibility",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(tt.Z,hi(hi({},e),{},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_VISIBILITY_OPTION"),options:f,placeholder:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT")}))})}},"attribs.visibility"),"entire_site"===g&&(0,s.BX)("div",{children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.exclude_pages_toggle",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(rn.Z,hi(hi({},e),{},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_VISIBILITY_OPTION_EXCLUDE_PAGES"),isInlineLabel:!0,helpText:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_EXCLUDE_PAGES_HELP_TEXT")}))})}},"attribs.exclude_pages_toggle"),1===E&&(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.excluded_pages",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(tn.Z,hi(hi({},e),{},{placeholder:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT"),options:y,isSearchable:!0}))})}},"attribs.excluded_pages"),(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.exclude_menus_toggle",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(rn.Z,hi(hi({},e),{},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_VISIBILITY_OPTION_EXCLUDE_MENUS"),isInlineLabel:!0,helpText:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_EXCLUDE_MENUS_HELP_TEXT")}))})}},"attribs.exclude_menus_toggle"),1===O&&(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.excluded_menus",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(tn.Z,hi(hi({},e),{},{placeholder:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT"),options:m,isSearchable:!0}))})}},"attribs.excluded_menus")]}),"specific_pages"===g&&(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.selected_pages",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(tn.Z,hi(hi({},e),{},{placeholder:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT"),options:y,isSearchable:!0}))})}},"attribs.selected_pages"),"specific_menus"===g&&(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.selected_menus",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(tn.Z,hi(hi({},e),{},{placeholder:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT"),options:m,isSearchable:!0}))})}},"attribs.selected_menus"),(0,s.tZ)("div",{children:(0,s.tZ)("div",{css:bi.divider})}),(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.trigger_condition",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(tt.Z,hi(hi({},e),{},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_OPTION"),options:h,placeholder:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT")}))})}},"attribs.trigger_condition"),"on_scroll"===w&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.scroll_direction",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(tt.Z,hi(hi({},e),{},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_SCROLL_DIRECTION"),options:v,placeholder:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT")}))})}},"attribs.scroll_direction"),(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.scroll_percentage",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(rt.Z,hi(hi({},e),{},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_SCROLL_PERCENTAGE"),type:"number",staticUnit:"%",placeholder:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_INPUT_NUMBER_PLACEHOLDER")}))})}},"attribs.scroll_percentage")]}),"on_landing"===w&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.landing_after",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(rt.Z,hi(hi({},e),{},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_LANDING_AFTER"),type:"number",staticUnit:"seconds",placeholder:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_INPUT_NUMBER_PLACEHOLDER")}))})}},"attribs.landing_after"),(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.landing_show_after",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(rt.Z,hi(hi({},e),{},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_LANDING_SHOW_AFTER"),type:"number",staticUnit:"times",placeholder:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_INPUT_NUMBER_PLACEHOLDER")}))})}},"attribs.landing_show_after")]}),"on_click"===w&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.click_type",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(tt.Z,hi(hi({},e),{},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CLICK_TYPE"),options:b,placeholder:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT")}))})}},"attribs.click_type"),"specific"===C&&(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.click_area",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(rt.Z,hi(hi({},e),{},{placeholder:"#container / .container",label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CLICK_AREA"),staticUnit:"css selector"}))})}},"attribs.click_area"),(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.click_count",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(rt.Z,hi(hi({},e),{},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CLICK_COUNT"),type:"number",staticUnit:"times",placeholder:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_INPUT_NUMBER_PLACEHOLDER")}))})}},"attribs.click_count")]}),"on_hover"===w&&(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.hover_area",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(rt.Z,hi(hi({},e),{},{placeholder:"#container / .container",label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_HOVER_AREA"),staticUnit:"css selector"}))})}},"attribs.hover_area"),"on_inactivity"===w&&(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.inactivity_duration",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(rt.Z,hi(hi({},e),{},{label:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_INACTIVITY_DURATION"),type:"number",staticUnit:"seconds",placeholder:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_INPUT_NUMBER_PLACEHOLDER")}))})}},"attribs.inactivity_duration"),!!w&&(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.reappear_after",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(di.Z,hi(hi({},e),{},{label:d("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:bi.textUnitInput,unitInputStyles:bi.unitInput,disableTextField:"never"===c.watch("attribs.reappear_after.unit")}))})}},"attribs.reappear_after"),(0,s.tZ)("div",{children:(0,s.tZ)("div",{css:bi.divider})}),(0,s.tZ)(kt.Qr,{control:c.control,name:"attribs.date_range",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(ci,hi(hi({},e),{},{label:"Select Date Range"}))})}},"attribs.date_range")]}),(0,s.BX)("div",{css:bi.footerWrapper,children:[(0,s.tZ)(_.Z,{variant:"secondary",onClick:function(){null==l||l(!1),document.getElementById("topbar-burger-menu")&&(document.getElementById("topbar-burger-menu").style.display="flex"),a(),n({action:"CLOSE"})},children:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_CANCEL")}),(0,s.tZ)(_.Z,{variant:"primary",onClick:function(){null==l||l(!1),document.getElementById("topbar-burger-menu")&&(document.getElementById("topbar-burger-menu").style.display="flex"),u(),a(),n({action:"CLOSE"})},children:d("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_APPLY")})]})]})};var mi;function gi(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 Ei=function(e){var t,r,n=e.isPopup,o=void 0!==n&&n,i=e.setIsNextClicked,a=(0,A.$)(),l=(0,Kt.d)().showModal,u=(0,c.useRef)(null),d=(0,fe.p)().showToast,p=(0,kt.Gc)(),f=(0,kt.Gc)(),h=zo().savePageContent,v=(t=(0,Xo.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 gi(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)?gi(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=v[0],y=v[1],m=v[2],g=(0,$o.o)((function(e){return e.copiedData})),E=(0,$o.o)((function(e){return e.resetCopiedData})),O=b.find((function(e){return"documentation"===e.key})),_=!!g.addon||!!g.section;return(0,s.BX)("div",{css:Ii.wrapper,children:[(0,s.BX)("div",{css:Ii.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:Ii.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:Ko.Z,props:{title:a("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_LAYOUTS"),form:p},closeOnOutsideClick:!0}),void m(void 0)):"popup-layouts"===e.key?(l({component:Yo.Z,props:{title:a("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_LAYOUTS"),form:p},closeOnOutsideClick:!0}),void m(void 0)):"media"===e.key?(l({component:Fr,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:yi,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:h}})))},children:[(0,s.tZ)(I.Z,{name:e.icon,width:20,height:20,style:Ii.iconStyle}),(0,s.tZ)("span",{title:a(e.title),children:a(e.title)})]},e.key)}})),(0,s.tZ)("button",{type:"button",disabled:!_,css:Ii.cleanerButton({isActive:_}),onClick:function(){E(),d({type:"success",message:a("COM_SPPAGEBUILDER_EDITOR_ACTION_CLEARED_CLIPBOARD_MESSAGE")})},children:(0,s.BX)(Bo.Z,{content:a("COM_SPPAGEBUILDER_EDITOR_ACTION_PANEL_CLEAR_CLIPBOARD_TOOLTIP"),placement:"right",disabled:!_,reference:u,children:[(0,s.tZ)(I.Z,{name:"broom",width:40,height:40}),(0,s.tZ)("span",{css:Ii.ripple})]})})]}),O&&(0,s.BX)(ho.rU,{to:nn.sD,target:"_blank",rel:"noopener noreferrer",css:Ii.item({isActive:!1,isLastChild:!0}),children:[(0,s.tZ)(I.Z,{name:O.icon,width:20,height:20,style:Ii.iconStyle}),(0,s.tZ)("span",{children:a(O.title)})]})]})};var Oi,_i,wi={ripple:(0,i.F4)(mi||(Oi=["\n 0% {\n opacity: 0.35;\n transform: scale(1);\n }\n 100% {\n opacity: 0;\n transform: scale(2);\n }\n "],_i||(_i=Oi.slice(0)),mi=Object.freeze(Object.defineProperties(Oi,{raw:{value:Object.freeze(_i)}}))))},Ci={name:"1x2nqsn-item",styles:"svg{transform:rotate(45deg);};label:item;"},Ii={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;word-wrap:break-word;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;}span{",q.iZ.dynamicTextEllipsis(2)," width:100%;}",r&&(0,i.iv)("&>svg,&>span{color:",n.qo.base.primary,"!important;}",u&&Ci,";;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:",wi.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 Si=r.p+"images/25111c477863d51f6425.svg",xi=r.p+"images/8371734f429ed1f93a89.png";var Pi=r(270),Li=r(782),Ai=(0,Pi.Ue)()((0,Li.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}}))}}}))),Ti=r(2847);function Di(e){return Di="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},Di(e)}function Zi(){Zi=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Di(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Ri(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){Ri(i,n,o,a,l,"next",e)}function l(e){Ri(i,n,o,a,l,"throw",e)}a(void 0)}))}}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 Mi=function(e){var t,r,n,o=e.content,i=uo(),a=(0,A.$)(),l=(0,so.Z)(Bn.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 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}}(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,ko.T)().closeSettingPanel,h=Ai((function(e){return e.setIsActive})),v=(0,Mo.mp)(),b=(0,Mn.s0)(),y=(0,ut.v)((function(e){return e.appConfig})),m="popups"!==o.id||T.Eu?(0,s.tZ)(s.HY,{}):(0,s.tZ)("span",{css:ki.popupBeta,children:"Beta"});return(0,T.$K)(o.subRoutes)?(0,s.BX)(s.HY,{children:[(0,s.BX)("button",{type:"button",css:ki.itemContainer,onClick:function(){p((function(e){return!e}))},children:[(0,s.BX)("div",{css:ki.item(o.pathNames.includes(i),!0),children:[(0,s.tZ)(I.Z,{name:o.icon,width:16,height:16}),(0,s.tZ)("span",{children:a(o.title)}),o.showProBadge&&(0,s.tZ)(Ti.Z,{})]}),(0,s.tZ)(I.Z,{style:ki.chevron(d),name:"chevronRight",width:16,height:16})]}),(0,s.tZ)("div",{css:ki.subItemContainer,children:d&&o.subRoutes.map((function(e){return(0,s.BX)("button",{type:"button",css:ki.item(e.route.includes(l)),onClick:ji(Zi().mark((function t(){var r,n,o;return Zi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(h(!1),f(),!["storefront","single","collection"].includes(e.id)){t.next=28;break}if(y.is_easystore_installed){t.next=6;break}return b(Bn.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,v.mutateAsync({type:"storefront",title:""});case 9:if(!(r=t.sent).id){t.next=13;break}return b(Bn.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,v.mutateAsync({type:"single",title:""});case 16:if(!(n=t.sent).id){t.next=20;break}return b(Bn.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,v.mutateAsync({type:"collection",title:""});case 23:if(!(o=t.sent).id){t.next=27;break}return b(Bn.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)(I.Z,{name:e.icon,width:16,height:16}),(0,s.tZ)("span",{children:a(e.title)})]},e.id)}))})]}):(0,s.BX)(ho.rU,{css:ki.item(o.pathNames.includes(i)),to:o.route,children:[(0,s.tZ)(I.Z,{name:o.icon,width:16,height:16}),(0,s.tZ)("span",{children:a(o.title)}),m,o.showProBadge&&(0,s.tZ)("div",{css:ki.proBadge,children:(0,s.tZ)(Ti.Z,{})})]})};var ki={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;")},proBadge:{name:"h9cz2w-proBadge",styles:"position:absolute;top:50%;right:8px;transform:translateY(-50%);label:proBadge;"},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 Ni(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 Gi=function(){var e,t,r=(0,A.$)(),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 Ni(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)?Ni(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=Ai((function(e){return e.isActive})),l=(0,ut.v)((function(e){return e.appConfig})),u=[{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_PAGES",icon:"filesDuo",route:Bn.F.Home.buildLink(),id:"pages",pathNames:[Bn.F.Home.template,Bn.F.PageList.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_DYNAMIC_CONTENT",icon:"dynamicContentDuo",route:Bn.F.DynamicContent.buildLink(),id:"dynamic-content",showProBadge:T.Eu,pathNames:[Bn.F.DynamicContent.template,Bn.F.DynamicContentSingleCollection.template,Bn.F.DynamicContentCreateItem.template,Bn.F.DynamicContentEditItem.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:Bn.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:Bn.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:Bn.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:Bn.F.Addons.buildLink(),id:"addons",pathNames:[Bn.F.Addons.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_CUSTOM_ICONS",icon:"iconsDuo",route:Bn.F.CustomIcons.buildLink(),id:"custom-icons",showProBadge:T.Eu,pathNames:[Bn.F.CustomIcons.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_FONT_BOOK",icon:"fontBook",route:Bn.F.GoogleFonts.buildLink(),id:"font-book",pathNames:[Bn.F.GoogleFonts.template,Bn.F.InstalledFonts.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_MEDIA_MANAGER",icon:"media",route:Bn.F.MediaManager.buildLink(),id:"media-manager",pathNames:[Bn.F.MediaManager.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_INTEGRATIONS",icon:"integrationsDuo",route:Bn.F.Integrations.buildLink(),id:"integrations",pathNames:[Bn.F.Integrations.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_LANGUAGES",icon:"languagesDuo",route:Bn.F.Languages.buildLink(),id:"languages",pathNames:[Bn.F.Languages.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_SETTINGS",icon:"cog",route:Bn.F.Settings.buildLink(),id:"settings",pathNames:[Bn.F.Settings.template,Bn.F.License.template,Bn.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:Wi.sidebar(a),children:(0,s.BX)("div",{css:Wi.wrapper,children:[(0,s.BX)("div",{children:[(0,s.tZ)("div",{css:Wi.contents,children:u.map((function(e){return(0,s.tZ)(Mi,{content:e},e.id)}))}),T.Eu&&!l.is_pre_release&&(0,s.tZ)("div",{css:Wi.proBanner,children:(0,s.tZ)("a",{href:nn._y,target:"_blank",rel:"noreferrer",children:(0,s.tZ)("img",{src:xi,alt:"upgrade to pro"})})}),l.is_pre_release&&o&&(0,s.tZ)("div",{css:Wi.feedback,"data-feedback":!0,children:(0,s.BX)("div",{css:Wi.feedbackInner,children:[(0,s.tZ)("img",{src:Si,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:Wi.submitFeedbackButton,children:[(0,s.tZ)(I.Z,{name:"comment"}),(0,s.tZ)("span",{children:r("COM_SPPAGEBUILDER_EDITOR_FEEDBACK_SUBMIT_BUTTON")})]})]})})]}),(0,s.tZ)("span",{css:Wi.version,children:r("COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_VERSION",{version:l.version})})]})})};var Wi={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:",nn.g3,"px;left:0;width:",e?nn.ZR:0,"px;height:calc(100vh - ",nn.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:-",nn.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;")};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 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 Hi(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 Vi(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 zi=function(e){var t,r,n=e.children,o=e.sections,i=(0,Dn.Dy)((0,Dn.VT)(Dn.we,{activationConstraint:{distance:15}}),(0,Dn.VT)(Dn.MA,{activationConstraint:{distance:15}}),(0,Dn.VT)(Dn.Lg,{coordinateGetter:x.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 Vi(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)?Vi(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)===nn.t.Section){var a=e.droppableContainers.filter((function(e){return!!o.find((function(t){return t.id===e.id}))}));return(0,Dn.pE)(Hi(Hi({},e),{},{droppableContainers:a}))}if(l&&(null===(r=e.active.data.current)||void 0===r?void 0:r.type)===nn.t.Column){var c=e.active.data.current.sectionIndex;if((0,T.$K)(c)){var u=e.droppableContainers.filter((function(e){return!!o[c].columns.find((function(t){return t.id===e.id}))}));return(0,Dn.pE)(Hi(Hi({},e),{},{droppableContainers:u}))}}var s=(0,Dn.j2)(e),f=s.length>0?s:(0,Dn.Xo)(e),h=(0,Dn._8)(f),v=null!==(n=null==h?void 0:h.id)&&void 0!==n?n:null;if((0,T.r3)((0,T.zt)(nn.Dw),null===(i=e.active.data.current)||void 0===i?void 0:i.type)){if(null!==h&&null!==v){var b,y,m,g,E=null===(b=e.active.data.current)||void 0===b?void 0:b.type,O=((null===(y=h.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===nn.Dw.SavedAddonElement||E===nn.Dw.SavedSectionElement)&&E===O)return(0,Dn.pE)(e);if(O===nn.t.TableItem)return(0,Dn.ey)(e)}return(0,Dn.j2)(e)}if(null!==h&&null!==v){var _,w,C,I=(null===(_=h.data)||void 0===_||null===(w=_.droppableContainer)||void 0===w||null===(C=w.data)||void 0===C?void 0:C.current)||{},S=I.content;if(I.type===nn.t.Column){var x=S.addons;if(x.length>0){var P=(0,Dn.pE)(Hi(Hi({},e),{},{droppableContainers:e.droppableContainers.filter((function(e){return e.id!==v&&!!x.find((function(t){return t.id===e.id&&!t.parent}))}))}))[0];(0,T.$K)(P)&&(v=P.id)}}return d.current=v,[{id:v}]}return p.current&&(d.current=l),d.current?[{id:d.current}]:[]}),[l,o]);return(0,s.tZ)(Dn.LB,{sensors:i,collisionDetection:f,measuring:{droppable:{strategy:Dn.uN.Always}},onDragStart:function(e){var t=e.active;return u(t.id)},children:n})};var Xi=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)(I.Z,{name:t.icon,width:16,height:16})})]})};const $i=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:[Ki.wrapper(r),c,";label:Tabs;"],role:"tablist",children:i.map((function(e,t){var i=(0,ln.H2)(e.value),a=Array.isArray(n)?(0,T.r3)(n,i):n===i;return(0,s.tZ)("button",{onClick:function(){return o(e.value)},css:Ki.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)(Bo.Z,{content:e.tooltip,placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)(Xi,{option:e})}):(0,s.tZ)(Xi,{option:e})},t)}))})};var Ki={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;")}};function Yi(e){return Yi="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},Yi(e)}function Qi(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 Ji(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qi(Object(r),!0).forEach((function(t){ea(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ea(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Yi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Yi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Yi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ta=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,Dn.O1)({id:t,data:r,disabled:i}),d=u.attributes,p=u.listeners,f=u.setNodeRef,h=u.transform,v=h?Ji({},!l&&{transform:P.ux.Translate.toString(h)}):void 0;return(0,s.tZ)("div",Ji(Ji(Ji({css:[c,na.draggable({isDisabled:i}),";label:Draggable;"],ref:f},p),d),{},{style:v,children:n}))};var ra={name:"1b2a9j8-draggable",styles:"cursor:default;label:draggable;"},na={draggable:function(e){var t=e.isDisabled,r=void 0!==t&&t;return(0,i.iv)("cursor:grab;",r&&ra,";;label:draggable;")}},oa=r(4693),ia=r(6651),aa=r(7230);const la=r.p+"images/40037ff8fe697e1ffd3e.svg",ca=function(e){var t=e.title,r=e.subtitle,n=e.actionButton,o=(0,A.$)();return(0,s.tZ)("div",{css:ua.wrapper,children:(0,s.BX)("div",{css:ua.imageAndText,children:[(0,s.tZ)("img",{src:la,alt:o("COM_SPPAGEBUILDER_EDITOR_SOMETHING_WENT_WRONG_ALT"),css:ua.illustration}),(0,s.BX)("div",{css:ua.content,children:[(0,s.tZ)("h2",{children:t}),!!r&&(0,s.tZ)("p",{children:r}),!!n&&(0,s.tZ)("div",{children:n})]})]})})};var ua={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;")},sa=r(2967),da=r(3169),pa=r(3935);function fa(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 ha=nn.iq+nn.P8;const va=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 fa(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)?fa(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],h=p[1];(0,c.useEffect)((function(){l&&clearTimeout(d.current)}),[l]);var v=null!==(t=null===(r=u.current)||void 0===r?void 0:r.getBoundingClientRect().top)&&void 0!==t?t:0,b=v+384+10;return window.innerHeight-b<0&&(v-=b-window.innerHeight),(0,s.BX)("div",{ref:u,css:ba.sectionThumb,onMouseEnter:function(){a&&(d.current=setTimeout((function(){h(!0)}),300))},onMouseLeave:function(){a&&(h(!1),d.current&&clearTimeout(d.current))},children:[(0,s.tZ)(da.Z,{enabled:!a,buttonSize:"small",children:(0,s.tZ)("div",{css:ba.thumbImage,children:(0,s.tZ)("img",{src:i.thumb,alt:i.title,draggable:!1})})}),(0,s.tZ)("div",{css:ba.thumbFooter,children:i.title}),!a&&(0,s.tZ)(Ti.Z,{css:ba.proLabel}),f&&(0,pa.createPortal)((0,s.BX)("div",{css:ba.thumbPreview({left:ha,top:v}),children:[(0,s.tZ)("div",{css:ba.thumbPreviewTitle,children:i.title}),(0,s.tZ)("div",{css:ba.thumbPreviewImage,children:(0,s.tZ)("img",{src:i.thumb,alt:i.title})})]}),document.body)]})};var ba={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;"),proLabel:(0,i.iv)("position:absolute;top:",n.W0[4],";right:",n.W0[4],";;label:proLabel;"),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 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 ma=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:Oa.sectionTitleButton(n),onClick:function(){o(n?null:t)},children:[(0,s.tZ)(I.Z,{name:"caretRight"}),(0,s.tZ)("span",{children:r.title})]}),n&&(0,s.tZ)(ga,{data:r.blocks,isAuthorized:a})]})};var ga=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 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}}(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,Dn.IJ)({onDragStart:function(){l(!0)},onDragEnd:function(){l(!1)},onDragCancel:function(){l(!1)}}),(0,s.tZ)("div",{css:Oa.sectionWrapper,children:n.map((function(e){return(0,s.tZ)(ta,{id:e.id,data:{content:e,type:nn.Dw.BlockElement},hasClone:!0,disabled:!o,children:(0,s.tZ)(va,{data:e,isAuthorized:o,isDragging:a})},e.id)}))})},Ea={name:"7n927h-sectionTitleButton",styles:"transform:rotate(90deg);label:sectionTitleButton;"},Oa={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&&Ea,";};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 _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 wa(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?wa(Object(r),!0).forEach((function(t){Ia(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ia(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 Sa(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 xa=function(){var e,t,r=(0,A.$)(),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 Sa(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)?Sa(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,sa.t)(),l=(0,ot.O)({defaultValues:{search:""}}),u=(0,pe.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)(w.g4,{});if(!a.data)return(0,s.tZ)(ca,{title:"Something went wrong!"});var p=a.data,f=p.blocks,h=p.authorised,v=function(e){return f[e]},b=0===(0,T.Zt)(f).length||u.length>0&&0===d.length;return(0,s.BX)("div",{children:[(0,s.tZ)("div",{css:Pa.searchWrapper,children:(0,s.tZ)(kt.Qr,{control:l.control,name:"search",render:function(e){return(0,s.tZ)(rt.Z,Ca(Ca({},e),{},{variant:"search",placeholder:r("COM_SPPAGEBUILDER_EDITOR_ELEMENT_SEARCH"),isClearable:!0,hasAutoFocus:!0}))}})}),(0,s.tZ)("div",{css:Pa.sectionList,children:u?(0,s.tZ)(ga,{data:d,isAuthorized:h}):(0,T.Zt)(f).map((function(e,t){return(0,s.tZ)(ma,{index:t,data:v(e),isActive:t===o,setActiveItem:i,isAuthorized:h},t)}))}),b&&(0,s.BX)("div",{css:Pa.noSections,children:[(0,s.tZ)(I.Z,{name:"blocksDuo",width:56,height:56}),(0,s.tZ)("span",{children:r("COM_SPPAGEBUILDER_EDITOR_EMPTY_PREDEFINED_SECTIONS")})]})]})};var Pa={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 La(e){return La="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},La(e)}function Aa(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 Ta(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(r),!0).forEach((function(t){Da(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Da(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==La(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==La(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===La(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Za(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 Ra=function(e){return"row"===e.name?nn.Dw.RowElement:"columns"===e.name?nn.Dw.ColumnsElement:"div"===e.name?nn.Dw.DivElement:e.name.startsWith("easystore_single_")?nn.Dw.SingleAddonElement:e.name.startsWith("easystore_list_")?nn.Dw.ProductListAddonElement:e.name.startsWith("easystore_common_")?nn.Dw.CommonAddonElement:nn.Dw.AddonElement};const ja=function(e){var t,r,n=e.defaultTab,o=void 0===n?"addons":n,i=(0,A.$)(),a=(0,aa.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 Za(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)?Za(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,Xo.j)((function(e){return e.activeAction})),f=(0,ia.y)((function(e){return e.activeColumn}));(0,c.useEffect)((function(){d(o)}),[o]),(0,c.useEffect)((function(){(0,T.$K)(f)&&d("addons")}),[f]);var h=(0,ot.O)({defaultValues:{search:""}}),v=(0,pe.N)(h.watch("search")),b=(0,c.useMemo)((function(){var e=v.toLowerCase().trim();return(0,T.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}),{})}),[v,a]),y=(0,T.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:Ba.wrapper,children:[(0,s.tZ)($i,{tabList:m,activeTab:u,onChange:d}),"addons"===u?(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:Ba.searchWrapper,children:(0,s.tZ)(kt.Qr,{control:h.control,name:"search",render:function(e){return(0,s.tZ)(rt.Z,Ta(Ta({},e),{},{variant:"search",placeholder:i("COM_SPPAGEBUILDER_EDITOR_ELEMENT_SEARCH"),isClearable:!0,hasAutoFocus:(0,T.$K)(p)&&"add-elements"===p}))}})}),(0,s.tZ)("div",{css:Ba.content,children:y?(0,s.BX)("div",{css:Ba.noResult,children:[(0,s.tZ)("img",{src:oa,alt:i("COM_SPPAGEBUILDER_EDITOR_ADDONS_NO_MATCH_FOUND")}),(0,s.tZ)("p",{children:i("COM_SPPAGEBUILDER_EDITOR_ADDONS_NO_MATCH_FOUND")})]}):(0,T.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:Ba.groupHeading,children:r}),(0,s.tZ)("div",{css:Ba.addonsWrapper,children:t.map((function(t){var r=T.Eu&&t.pro;return(0,s.tZ)(ta,{id:"".concat(e,"-").concat(t.name),data:{content:t,type:Ra(t)},hasClone:!0,disabled:r,children:(0,s.BX)("div",{css:Ba.addonItem({shouldShowProLabel:r}),children:[(0,s.tZ)("span",{dangerouslySetInnerHTML:{__html:t.icon},css:Ba.icon}),(0,s.tZ)("span",{title:t.title,children:t.title}),r&&(0,s.tZ)(Ti.Z,{})]})},t.name)}))})]},e)}))})]}):(0,s.tZ)(xa,{})]})};var Ba={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;")},icon:{name:"f0ns9y-icon",styles:"display:flex;label:icon;"}};const Ma=r.p+"images/5612aede402b273f759b.jpg";var ka=r(1518);function Na(e){return Na="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},Na(e)}function Ga(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 Wa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ga(Object(r),!0).forEach((function(t){Ua(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ga(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ua(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Na(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Na(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Na(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Fa=function(e){var t=e.addon,r=e.activeDragItemId,n=(0,A.$)(),o=(0,ka.hX)(),i=(0,aa.x)((function(e){return e.addonStructure})),a=(0,x.nB)({id:t.id,data:{content:t,type:nn.Dw.SavedAddonElement}}),l=a.attributes,c=a.listeners,u=a.setNodeRef,d=a.transform,p=a.transition,f=a.isDragging,h={transform:P.ux.Transform.toString(d),transition:p,opacity:f?.5:1};return(0,s.tZ)("div",Wa(Wa(Wa({ref:u,style:h},l),c),{},{children:(0,s.BX)("div",{css:Ha.addonItem(r===t.id),children:[(0,s.tZ)("span",{css:Ha.dragIcon,"data-drag-icon":!0,children:(0,s.tZ)(I.Z,{name:"dragger",height:24,width:24})}),(0,s.tZ)("span",{css:Ha.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:Ha.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)(I.Z,{name:"trash",height:12,width:12})})]})}))};var Ha={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 qa(e){return qa="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},qa(e)}function Va(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?Va(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Va(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==qa(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==qa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===qa(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,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 Ka(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)?Ka(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 Ka(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(){var e=(0,A.$)(),t=(0,ka.iG)(),r=(0,ka.uC)(),n=$a((0,c.useState)([]),2),o=n[0],i=n[1],a=$a((0,c.useState)(null),2),l=a[0],u=a[1],d=(0,ot.O)({defaultValues:{search:""}}),p=(0,pe.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,Dn.IJ)({onDragStart:function(e){var t=e.active,r=t.data.current;r&&r.type===nn.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===nn.Dw.SavedAddonElement&&l.type===nn.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,x.Rp)(o,i,a),c=(0,T.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)}}),T.Eu?(0,s.tZ)("div",{css:Qa.proLabelCss,children:(0,s.tZ)(po.Z,{emptyStateImage:Ma,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)(C.Z,{}),orientation:"vertical",customCss:Qa.proBannerContentCss})}):t.isLoading?(0,s.tZ)(w.g4,{}):t.data?(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:Qa.searchWrapper,children:(0,s.tZ)(kt.Qr,{control:d.control,name:"search",render:function(t){return(0,s.tZ)(rt.Z,za(za({},t),{},{variant:"search",placeholder:e("COM_SPPAGEBUILDER_EDITOR_ELEMENT_SEARCH"),isClearable:!0}))}})}),(0,s.tZ)("div",{css:Qa.content,children:o.length>0?(0,s.tZ)(x.Fo,{id:"saved-addons",items:o,strategy:x.qw,children:o.map((function(e){return(0,s.tZ)(Fa,{addon:e,activeDragItemId:l},e.id)}))}):(0,s.BX)("div",{css:Qa.noResult,children:[(0,s.tZ)("img",{src:oa,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 Qa={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 Ja=r.p+"images/c0160f779b907eae5fab.jpg";function el(e){return el="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},el(e)}function tl(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 rl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tl(Object(r),!0).forEach((function(t){nl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==el(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==el(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===el(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ol=function(e){var t=e.section,r=e.activeDragItemId,n=(0,A.$)(),o=(0,ka.rM)(),i=(0,x.nB)({id:t.id,data:{content:t,type:nn.Dw.SavedSectionElement}}),a=i.attributes,l=i.listeners,c=i.setNodeRef,u=i.transform,d=i.transition,p=i.isDragging,f={transform:P.ux.Transform.toString(u),transition:d,opacity:p?.5:1};return(0,s.tZ)("div",rl(rl(rl({ref:c,style:f},a),l),{},{children:(0,s.BX)("div",{css:il.sectionItem(r===t.id),children:[(0,s.tZ)("span",{css:il.dragIcon,"data-drag-icon":!0,children:(0,s.tZ)(I.Z,{name:"dragger",height:24,width:24})}),(0,s.tZ)(I.Z,{name:"blocksDuo",height:16,width:16}),(0,s.tZ)("span",{"data-section-title":!0,css:il.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)(I.Z,{name:"trash",height:12,width:12})})]})}))};var il={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 al(e){return al="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},al(e)}function ll(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 cl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ll(Object(r),!0).forEach((function(t){ul(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ll(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ul(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==al(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==al(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===al(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sl(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}const pl=function(){var e=(0,A.$)(),t=(0,ka.x)(),r=(0,ka.Gj)(),n=sl((0,c.useState)([]),2),o=n[0],i=n[1],a=sl((0,c.useState)(null),2),l=a[0],u=a[1],d=(0,ot.O)({defaultValues:{search:""}}),p=(0,pe.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,Dn.IJ)({onDragStart:function(e){var t=e.active,r=t.data.current;r&&r.type===nn.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===nn.Dw.SavedSectionElement&&l.type===nn.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,x.Rp)(o,i,a),c=(0,T.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)}}),T.Eu?(0,s.tZ)("div",{css:fl.proLabelCss,children:(0,s.tZ)(po.Z,{emptyStateImage:Ja,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)(C.Z,{}),orientation:"vertical",customCss:fl.proBannerContentCss})}):t.isLoading?(0,s.tZ)(w.g4,{}):t.data?(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:fl.searchWrapper,children:(0,s.tZ)(kt.Qr,{control:d.control,name:"search",render:function(t){return(0,s.tZ)(rt.Z,cl(cl({},t),{},{variant:"search",placeholder:e("COM_SPPAGEBUILDER_EDITOR_ELEMENT_SEARCH"),isClearable:!0}))}})}),(0,s.tZ)("div",{css:fl.content,children:o.length>0?(0,s.tZ)(x.Fo,{id:"saved-sections",items:o,strategy:x.qw,children:o.map((function(e){return(0,s.tZ)(ol,{section:e,activeDragItemId:l},e.id)}))}):(0,s.BX)("div",{css:fl.noResult,children:[(0,s.tZ)("img",{src:oa,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 fl={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 hl(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 vl=function(){var e,t,r=(0,A.$)(),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 hl(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)?hl(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:bl.wrapper,children:[(0,s.tZ)($i,{tabList:a,activeTab:o,onChange:i}),"addons"===o?(0,s.tZ)(Ya,{}):(0,s.tZ)(pl,{})]})};var bl={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 yl=r.p+"images/d82d034e6dce7362d5f4.svg",ml=function(e){var t,r=e.children,n=e.createdBy,o=(0,A.$)(),i=(0,at.Q)(),a=bn(),l=(0,so.Z)(Bn.F.PageEditor).id,c=(0,Mo.z1)(l),u=(0,ut.v)((function(e){return e.appConfig})),d=(0,Mn.s0)(),p=(t=Number(l),(0,ve.a)({queryKey:["UserPermissions",t],queryFn:function(){return function(e){return be.u.get(he.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,h=i.edit_own&&n===u.user_id;return"storefront"===l&&!u.is_easystore_installed||!a.isLoading&&!c.isLoading?f||h?(0,s.tZ)(s.HY,{children:r}):(0,s.tZ)("div",{css:gl.wrapper,children:(0,s.tZ)(po.Z,{orientation:"vertical",emptyStateImage:yl,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:gl.emptyStateCustom,customCss:gl.customCss,action:(0,s.tZ)(_.Z,{onClick:function(){return d(Bn.F.Home.buildLink())},children:o("COM_SPPAGEBUILDER_EDITOR_GO_BACK")})})}):(0,s.tZ)(w.fz,{})};var gl={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;")},El=r(618),Ol=r(3);const _l=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)(re.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)(Ol.Z,{value:t.value,onChange:t.onChange})}})};var wl=r(9371);const Cl=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,A.$)(),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:Sl.buttonWrapper({isInVariationsScreen:"variations"===c}),children:[("variations"===c||t.length>0)&&(0,s.tZ)(_.Z,{variant:"secondary",onClick:n,disabled:o,children:u("COM_SPPAGEBUILDER_EDITOR_AI_WRITE_NEW_PROMPT")}),(0,s.tZ)("div",{css:Sl.buttonGroupWrapper({isInVariationsScreen:"variations"===c}),children:"variations"!==c&&(0,s.tZ)(_.Z,{onClick:r,buttonCss:q.iZ.generateAiButton(o||a),icon:!o&&(0,s.tZ)(I.Z,{name:t.length>0?"recycle":"generate"}),loading:o,disabled:a,children:t.length>0?d[c].reGenerate:d[c].generate})})]})};var Il={name:"1qa5mwl-buttonWrapper",styles:"justify-content:end;gap:0;label:buttonWrapper;"},Sl={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&&Il,";;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;")}},xl=r(2200);function Pl(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 Ll=300,Al=300;const Tl=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 Pl(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)?Pl(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,xl.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,ln.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=h(u,s),y=b.centerX,m=b.centerY;n.clearRect(0,0,r.width,r.height),r.width=Al,r.height=Ll,n.drawImage(a,y,m,s,u);var g=null!==(t=v())&&void 0!==t?t:"";i(g)}}),[l,i,d,o]);var h=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}},v=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:Dl.wrapper,children:[(0,s.tZ)("div",{css:Dl.canvasWrapper,children:(0,s.tZ)("canvas",{ref:p,css:Dl.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=Al,t.height=Ll;var l,c,s=o/a;s>=1?(l=Al,c=Ll/s):(l=Al*s,c=Ll),u({height:c,width:l});var d=h(c,l),b=d.centerX,y=d.centerY;n.drawImage(r,b,y,l,c),n.globalCompositeOperation="destination-out";var m=null!==(e=v())&&void 0!==e?e:"";i(m)}}},src:n,alt:"canvas hidden item",style:{display:"none"}})]})};var Dl={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;"}},Zl=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},Rl=function(e){return String(Math.ceil(e/4))};function jl(e){return jl="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},jl(e)}function Bl(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 Ml(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==jl(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==jl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===jl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var kl=function(e){var t=e.prompt,r=e.maxTokens;return be.u.post(he.H.AI_CONTENT,{prompt:t,type:"text",max_tokens:r})},Nl=function(){var e=(0,fe.p)().showToast;return(0,pt.D)({mutationFn:kl,onError:function(t){e({type:"danger",message:t.message})}})},Gl=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,T.$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)),be.u.post(he.H.AI_CONTENT,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bl(Object(r),!0).forEach((function(t){Ml(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bl(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}))},Wl=function(){var e=(0,fe.p)().showToast;return(0,pt.D)({mutationFn:Gl,onError:function(t){e({type:"danger",message:t.message})}})},Ul=function(e){return be.u.patch(he.H.AI_CONTENT,{image_uri:e})};function Fl(e){return Fl="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},Fl(e)}function Hl(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?Hl(Object(r),!0).forEach((function(t){Vl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Fl(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Fl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Fl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zl(){zl=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Fl(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Xl(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 $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 Kl(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)?Kl(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 Kl(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 Yl=function(e){var t=e.onChange,r=e.imageFullPath,n=e.onGenerateWithPrompt,o=(0,A.$)(),i=$l((0,c.useState)(""),2),a=i[0],l=i[1],u=$l((0,c.useState)(1),2),d=u[0],p=u[1],f=Wl(),h=(0,ot.O)({defaultValues:{prompt:"",aspectRatio:"",imageSize:"512x512"}}),v=h.watch("prompt"),b=h.handleSubmit(function(){var e,r=(e=zl().mark((function e(r){var n,o,i,l,c,u;return zl().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,T.$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){Xl(i,n,o,a,l,"next",e)}function l(e){Xl(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}());return(0,s.BX)("div",{css:Ql.cardInnerSection,children:[(0,s.BX)("div",{css:Ql.wrapper,children:[(0,s.tZ)("div",{css:Ql.leftWrapper,children:(0,s.tZ)(Tl,{imageFullPath:r,onDrawEnd:l,scaleSize:d})}),(0,s.tZ)("div",{css:Ql.rightWrapper,children:(0,s.BX)("div",{css:Ql.fieldWrapper,children:[(0,s.BX)("div",{css:Ql.scaleWrapper,children:[(0,s.tZ)("p",{children:o("COM_SPPAGEBUILDER_EDITOR_AI_EDITOR_SCALE_SIZE")}),(0,s.BX)("div",{css:Ql.scaleInputWrapper,children:[(0,s.tZ)(wl.Z,{value:d,onChange:function(e){return p(e)},step:.1,min:1,max:2}),(0,s.BX)("div",{css:Ql.scaleNumber,children:[d,"x"]})]})]}),(0,s.tZ)(kt.Qr,{name:"prompt",control:h.control,render:function(e){return(0,s.tZ)(fn,ql(ql({},e),{},{label:o("COM_SPPAGEBUILDER_EDITOR_AI_WHAT_TO_GENERATE")}))}})]})})]}),(0,s.tZ)(Cl,{generatedImages:[],formSubmitHandler:b,isLoading:f.isLoading,isSubmitDisabled:0===v.trim().length,onGenerateWithPrompt:n,popover:"expand"})]})};var Ql={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 Jl(e){return function(e){if(Array.isArray(e))return rc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tc(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 ec(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)||tc(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 tc(e,t){if(e){if("string"==typeof e)return rc(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)?rc(e,t):void 0}}function rc(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 nc=function(e){var t=e.imageFullPath,r=e.brushSize,n=e.onDrawEnd,o=ec((0,c.useState)(!1),2),i=o[0],a=o[1],l=ec((0,c.useState)(!1),2),u=l[0],d=l[1],p=ec((0,c.useState)([]),2),f=p[0],h=p[1],v=ec((0,c.useState)([]),2),b=v[0],y=v[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=O())&&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 O=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:oc.wrapper,children:[(0,s.BX)("div",{css:oc.canvasWrapper,children:[(0,s.tZ)("canvas",{ref:m,css:oc.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=O())&&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);h([].concat(Jl(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:oc.customCursor({brushSize:r})})]}),(0,s.BX)("div",{css:oc.undoRedoWrapper,children:[(0,s.tZ)(_.Z,{variant:"text",icon:(0,s.tZ)(I.Z,{name:"undo",width:24,height:24}),onClick:function(){if(0!==f.length){var e=Jl(f),t=e.pop();(0,T.$K)(t)&&y([].concat(Jl(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)})),h(e))}},disabled:1===f.length}),(0,s.tZ)(_.Z,{variant:"text",icon:(0,s.tZ)(I.Z,{name:"redo",width:24,height:24}),onClick:function(){if(0!==b.length){var e=Jl(b),t=e.pop();if((0,T.$K)(t)){h((function(e){return[].concat(Jl(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);h([].concat(Jl(f),[l])),y([])}}},src:t,alt:"canvas hidden item",style:{display:"none"}})]})};var oc={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 ic(e){return ic="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},ic(e)}function ac(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 lc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ac(Object(r),!0).forEach((function(t){cc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ac(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ic(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ic(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ic(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uc(){uc=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==ic(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function sc(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 dc(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 pc=function(e){var t,r,n=e.onChange,o=e.imageFullPath,i=e.onGenerateWithPrompt,a=(0,A.$)(),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 dc(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)?dc(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=Wl(),f=(0,ot.O)({defaultValues:{prompt:"",aspectRatio:"",imageSize:"512x512",brushSize:30}}),h=f.watch("brushSize"),v=f.watch("prompt"),b=f.handleSubmit(function(){var e,t=(e=uc().mark((function e(t){var r,o,i,a,l,c;return uc().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,T.$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){sc(i,n,o,a,l,"next",e)}function l(e){sc(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}());return(0,s.BX)("div",{css:fc.cardInnerSection,children:[(0,s.BX)("div",{css:fc.wrapper,children:[(0,s.tZ)("div",{css:fc.leftWrapper,children:(0,s.tZ)(nc,{imageFullPath:o,onDrawEnd:d,brushSize:h})}),(0,s.tZ)("div",{css:fc.rightWrapper,children:(0,s.BX)("div",{css:fc.fieldWrapper,children:[(0,s.tZ)(kt.Qr,{name:"brushSize",control:f.control,render:function(e){return(0,s.tZ)(di.Z,lc(lc({},e),{},{label:a("COM_SPPAGEBUILDER_EDITOR_AI_EDITOR_BRUSH_SIZE"),min:10,max:50}))}}),u&&(0,s.tZ)(kt.Qr,{name:"prompt",control:f.control,render:function(e){return(0,s.tZ)(fn,lc(lc({},e),{},{label:a("COM_SPPAGEBUILDER_EDITOR_AI_WHAT_TO_GENERATE")}))}})]})})]}),(0,s.tZ)(Cl,{generatedImages:[],formSubmitHandler:b,isLoading:p.isLoading,isSubmitDisabled:!u||0===v.trim().length,onGenerateWithPrompt:i,popover:"generativeFill"})]})};var fc={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 hc=r.p+"images/8489e1515cd6e8d6e6fc.svg";function vc(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 bc=[{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 yc=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 vc(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)?vc(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],h=(0,c.useRef)(null),v=(0,c.useRef)(null),b=(0,c.useRef)(null),y=(0,c.useRef)(null);return u?(0,s.tZ)("div",{css:Oc.imageButton({isLoaded:p}),children:(0,s.tZ)(jn.Z,{height:188,animation:!0})}):(0,s.BX)("div",{css:Oc.imageButton({isLoaded:p}),children:[(0,s.tZ)("img",{ref:h,src:n,alt:"Generated alt text",style:{display:"none"},onLoad:function(){h.current&&(h.current.style.display="block",f(!0))}}),(0,s.BX)("div",{"data-action-buttons":!0,css:Oc.actionButtonWrapper(a),children:["generativeFill"!==a&&(0,s.tZ)(Bo.Z,{content:"Magic Fill",reference:v,isInteractive:!1,children:(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"magicFill"}),buttonCss:Oc.actionButtonCss,height:8,width:8,onClick:function(){return i(n,"magicFill")}})}),"variationsPreview"!==a&&(0,s.tZ)(Bo.Z,{content:"Variations",reference:b,isInteractive:!1,children:(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"variations"}),buttonCss:Oc.actionButtonCss,height:8,width:8,onClick:function(){return i(n,"variation")}})}),"expandPreview"!==a&&(0,s.tZ)(Bo.Z,{content:"Expand",reference:v,isInteractive:!1,children:(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"expandAll"}),buttonCss:Oc.actionButtonCss,height:8,width:8,onClick:function(){return i(n,"expand")}})}),(0,s.tZ)(L.Z,{actions:bc,triggerButtonContent:(0,s.tZ)(Bo.Z,{content:"Insert",reference:y,isInteractive:!1,children:(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"insert"}),buttonCss:Oc.actionButtonCss,height:8,width:8})}),onSelect:function(e){o(n,e)}})]}),!p&&(0,s.tZ)(jn.Z,{height:188,animation:!0})]})};var mc={name:"106sdel-actionButtonWrapper",styles:"max-width:72px;label:actionButtonWrapper;"},gc={name:"1nxacg5-imageButton",styles:"pointer-events:none;label:imageButton;"},Ec={name:"1nxacg5-imageButton",styles:"pointer-events:none;label:imageButton;"},Oc={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&&Ec," &::before{content:'';position:absolute;inset:0;background-color:",(0,or.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&&gc," 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)&&mc,";;label:actionButtonWrapper;")},actionButtonCss:(0,i.iv)("padding:",n.W0[8],";height:32px;width:32px;;label:actionButtonCss;")};const _c=function(e){var t=e.generatedImages,r=e.isLoading,n=e.onInsert,o=e.onEdit,i=e.popover,a=(0,A.$)();if(0===t.length&&!r)return(0,s.BX)("div",{css:Cc.emptyImageWrapper,children:[(0,s.tZ)("img",{src:hc,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:Cc.imageWrapper({isLoading:r}),children:(l?(0,T.w6)(4):t).map((function(e){return(0,s.tZ)(yc,{image:String(e),onInsert:function(e,t){return n(String(e),t)},onEdit:o,popover:i,isSkeletonOnly:l},e)}))})};var wc={name:"1giub5n-imageWrapper",styles:"pointer-events:none;label:imageWrapper;"},Cc={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&&wc,";;label:imageWrapper;")}};function Ic(e){return Ic="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},Ic(e)}function Sc(){Sc=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Ic(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function xc(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 Pc(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){xc(i,n,o,a,l,"next",e)}function l(e){xc(i,n,o,a,l,"throw",e)}a(void 0)}))}}function Lc(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 Ac(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lc(Object(r),!0).forEach((function(t){Tc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ic(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ic(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ic(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dc(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 Zc={prompt:"",imageSize:"256x256",aspectRatio:"1:1"};const Rc=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,A.$)(),h=(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 Dc(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)?Dc(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.")}()),v=h[0],b=h[1],y=wt(),m=Wl(),g=(0,ot.O)({defaultValues:Ac(Ac({},Zc),{},{prompt:l,imageSize:d})}),E=g.watch("imageSize"),O=g.handleSubmit(function(){var e=Pc(Sc().mark((function e(t){var r,n,o;return Sc().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,T.$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:jc.cardInnerSection,children:y.isLoading||a?(0,s.tZ)("div",{css:jc.loadingWrapper,children:(0,s.tZ)(w.g4,{})}):(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:jc.wrapper,children:[(0,s.tZ)(_c,{generatedImages:v,isLoading:m.isLoading,onInsert:function(){var e=Pc(Sc().mark((function e(t,r){var o,a;return Sc().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:jc.fieldWrapper,children:[(0,s.tZ)(kt.Qr,{name:"prompt",control:g.control,render:function(e){return(0,s.tZ)(fn,Ac(Ac({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_AI_WHAT_TO_GENERATE"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_AI_IMAGE_INPUT_PLACEHOLDER")}))}}),(0,s.BX)("div",{css:jc.tabWrapper,children:[(0,s.tZ)("div",{children:f("COM_SPPAGEBUILDER_EDITOR_AI_IMAGE_SIZE")}),(0,s.tZ)($i,{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:jc.tabWrapperCss})]})]})})]}),(0,s.tZ)(Cl,{generatedImages:v,formSubmitHandler:O,onGenerateWithPrompt:function(){g.reset(Zc),b([])},isLoading:m.isLoading})]})})};var jc={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 Bc(e){return Bc="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},Bc(e)}function Mc(){Mc=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Bc(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function kc(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 Nc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(r),!0).forEach((function(t){Gc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Bc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Bc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Bc(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wc(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 Uc(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Wc(i,n,o,a,l,"next",e)}function l(e){Wc(i,n,o,a,l,"throw",e)}a(void 0)}))}}function Fc(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 Hc=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,h=e.isLoading,v=void 0!==h&&h,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 Fc(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)?Fc(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],O=g[1],_=Wl(),C=wt(),I=(0,ot.O)({defaultValues:{imageSize:"512x512",aspectRatio:"16:9"}}).handleSubmit(function(){var e=Uc(Mc().mark((function e(t){var r,n,i;return Mc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_.mutateAsync(Nc(Nc({},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,T.$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:zc.cardInnerSection,children:v||C.isLoading?(0,s.tZ)("div",{css:zc.loadingWrapper,children:(0,s.tZ)(w.g4,{})}):(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:zc.wrapper,children:[(0,s.BX)("div",{css:zc.leftWrapper(p,E),children:[(0,s.tZ)("p",{children:"Original Photo"}),(0,s.tZ)("img",{ref:m,src:a,alt:"selected",onLoad:function(){if(O(!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)(jn.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)(_c,{generatedImages:f,isLoading:_.isLoading,onInsert:function(){var e=Uc(Mc().mark((function e(t,r){var o,a;return Mc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C.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)(Cl,{generatedImages:f,formSubmitHandler:I,isLoading:_.isLoading,onGenerateWithPrompt:b,popover:p})]})})};var qc={name:"faz8bo-leftWrapper",styles:">img{display:none;};label:leftWrapper;"},Vc={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;"},zc={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&&Vc," ",(!t||["generativeFill","expandPreview"].includes(e))&&qc,";;label:leftWrapper;")}};function Xc(e){return Xc="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},Xc(e)}function $c(){$c=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Xc(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Kc(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?Kc(Object(r),!0).forEach((function(t){Qc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kc(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"!==Xc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Xc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Xc(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,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 eu=function(e){var t=e.onChange,r=e.imageFullPath,n=e.imageUri,o=e.onGenerateWithPrompt,i=e.onEdit,a=e.isLoading,l=Wl(),u=(0,c.useRef)(null),d=(0,c.useRef)(null),p=(0,c.useRef)(null),f=(0,ot.O)({defaultValues:{imageSize:"512x512",aspectRatio:"16:9"}}).handleSubmit(function(){var e,r=(e=$c().mark((function e(r){var o,i,a;return $c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.mutateAsync(Yc(Yc({},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,T.$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){Jc(i,n,o,a,l,"next",e)}function l(e){Jc(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}()),h=a||l.isLoading;return(0,s.tZ)("div",{css:tu.cardInnerSection,children:h?(0,s.tZ)("div",{css:tu.loadingWrapper,children:(0,s.tZ)(w.g4,{})}):(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:tu.wrapper,children:[(0,s.tZ)("img",{src:r,alt:"variation"}),(0,s.BX)("div",{css:tu.actionButtonWrapper,children:[(0,s.tZ)(Bo.Z,{content:"Magic Fill",placement:"right",reference:u,children:(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"magicFill",height:16,width:16}),onClick:function(){return i("magicFill")},buttonCss:tu.actionButtonCss})}),(0,s.tZ)(Bo.Z,{content:"Variations",placement:"right",reference:d,children:(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"variations",height:16,width:16}),onClick:f,buttonCss:tu.actionButtonCss})}),(0,s.tZ)(Bo.Z,{content:"Expand",placement:"right",reference:p,children:(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"expandAll",height:16,width:16}),onClick:function(){return i("expand")},buttonCss:tu.actionButtonCss})})]})]}),(0,s.tZ)(Cl,{generatedImages:[],formSubmitHandler:f,isLoading:l.isLoading,onGenerateWithPrompt:o,onEdit:i,popover:"variations"})]})})};var tu={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;"}},ru=r(8698);function nu(e){return nu="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},nu(e)}function ou(){ou=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==nu(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function iu(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 au(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){iu(i,n,o,a,l,"next",e)}function l(e){iu(i,n,o,a,l,"throw",e)}a(void 0)}))}}function lu(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)||cu(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 cu(e,t){if(e){if("string"==typeof e)return uu(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)?uu(e,t):void 0}}function uu(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 su=function(e){var t,r=e.isOpen,n=e.onClose,o=e.onChange,a=e.imageFullPath,l=e.imageUri,u=e.triggerRef,d=(0,A.$)(),p=l.length>0?"variations":"prompt",f=lu((0,c.useState)(p),2),h=f[0],v=f[1],b=lu((0,c.useState)([]),2),y=b[0],m=b[1],g=lu((0,c.useState)(a),2),E=g[0],O=g[1],w=lu((0,c.useState)(l),2),C=w[0],S=w[1],x=lu((0,c.useState)(""),2),P=x[0],L=x[1],T=lu((0,c.useState)(nn.Vg[256]),2),D=T[0],Z=T[1],R=lu((0,c.useState)([]),2),j=R[0],B=R[1],M=(0,de.l)({isOpen:r,triggerRef:u,gap:20,arrow:"right"}),k=M.position,N=M.popoverRef,G=Wl(),W=(t=(0,fe.p)().showToast,(0,pt.D)({mutationFn:Ul,onError:function(e){t({type:"danger",message:e.message})}}));(0,c.useEffect)((function(){v(p),O(a),S(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]:nn.Vg[256];B([].concat(function(e){if(Array.isArray(e))return uu(e)}(t=j)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||cu(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:h,imagePath:E,imageUriPath:C,generatedImages:y,prompt:r,imageSize:n}])),v(e),L(r),Z(n),"variationsPreview"===e&&m([])},F=function(){B([]),m([]),Z(nn.Vg[256]),L("")},H=function(){v(p),m([]),n(),L("")};return(0,s.tZ)(de.h,{isOpen:r,children:(0,s.tZ)("div",{css:(0,i.iv)({position:"absolute",left:k.left,top:k.top},";label:AiImagePopoverController;"),ref:N,children:(0,s.tZ)(ru.Z,{header:{title:(0,s.BX)("div",{children:[!["prompt","variations"].includes(h)&&(0,s.tZ)(_.Z,{variant:"text",icon:(0,s.tZ)(I.Z,{name:"arrowLeft",height:20,width:20}),onClick:function(){if(j.length>0){var e=j[j.length-1];B(j.slice(0,j.length-1)),v(e.popover),O(e.imagePath),S(e.imageUriPath),m(e.generatedImages),L(e.prompt),Z(e.imageSize)}},buttonCss:du.leftArrowButtonCss}),function(){switch(h){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(h)?d("COM_SPPAGEBUILDER_EDITOR_AI_IMAGE_MARK_AREA"):"",actionTray:(0,s.tZ)(_.Z,{variant:"text",onClick:H,buttonCss:du.crossButton,children:(0,s.tZ)(I.Z,{name:"cross",height:24,width:24})})},cardCss:du.cardStyle,hideArrow:!0,children:function(){switch(h){case"variations":return(0,s.tZ)(eu,{isLoading:W.isLoading,onChange:function(e){m(e),U("variationsPreview")},onGenerateWithPrompt:function(){v("prompt"),F()},onEdit:function(){var e=au(ou().mark((function e(t){var r,n;return ou().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:O(n.dataUrl),S(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:C});case"variationsPreview":return(0,s.tZ)(Hc,{onClose:H,onChange:function(e){return m(e)},onInsert:o,onGenerateWithPrompt:function(){U("prompt"),F()},generatedImages:y,imageFullPath:E,imageUri:C,isLoading:W.isLoading,onEdit:function(){var e=au(ou().mark((function e(t,r){var n,o;return ou().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(o.dataUrl),S(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)(pc,{onChange:function(e,t,r){m(e),U("generativeFillPreview",r),O(t),S(t)},onGenerateWithPrompt:function(){v("prompt"),F()},imageFullPath:E,imageUri:C});case"generativeFillPreview":return(0,s.tZ)(Hc,{onClose:H,onChange:function(e){return m(e)},onInsert:o,onGenerateWithPrompt:function(){v("prompt"),F()},prompt:P,generatedImages:y,imageFullPath:E,imageUri:C,isLoading:W.isLoading,onEdit:function(){var e=au(ou().mark((function e(t,r){var n,o;return ou().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("variation"!==r){e.next=5;break}return O(t),S(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(o.dataUrl),S(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)(Yl,{onChange:function(e,t,r){m(e),U("expandPreview",r),O(t),S(t)},onGenerateWithPrompt:function(){v("prompt"),F()},imageFullPath:E,imageUri:C});case"expandPreview":return(0,s.tZ)(Hc,{onClose:H,onChange:function(e){return m(e)},onInsert:o,onGenerateWithPrompt:function(){v("prompt"),F()},prompt:P,generatedImages:y,imageFullPath:E,imageUri:C,isLoading:W.isLoading,onEdit:function(){var e=au(ou().mark((function e(t,r){var n,o;return ou().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("variation"!==r){e.next=5;break}return O(t),S(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(o.dataUrl),S(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)(Rc,{onClose:H,onChange:o,isLoading:G.isLoading||W.isLoading,prompt:P,imageSize:D,generatedImages:y,setCurrentlyGeneratedItems:function(e){m(e)},onEdit:function(){var e=au(ou().mark((function e(t,r,n,o){var i,a;return ou().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("variation"!==r){e.next=5;break}return O(t),S(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&&O(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 du={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;"}},pu=r(1974);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 hu(){hu=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==fu(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function vu(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 bu(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){vu(i,n,o,a,l,"next",e)}function l(e){vu(i,n,o,a,l,"throw",e)}a(void 0)}))}}function yu(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 mu(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)?mu(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 mu(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 gu(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 Eu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gu(Object(r),!0).forEach((function(t){Ou(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ou(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}const _u=function(e){var t,r,n,o,i=e.field,a=e.fieldState,l=e.label,u=e.hidePreview,d=void 0!==u&&u,p=e.hideAltText,f=void 0!==p&&p,h=e.previewStyle,v=e.responsive,b=e.responsiveOrientation,y=e.helpText,m=e.allowedMediaType,g=void 0===m?"image":m,E=e.isLottieFile,O=void 0!==E&&E,w=e.placeholder,C=void 0===w?"":w,S=e.showGenAI,x=void 0===S?1:S,P=e.onChange,L=e.onlySource,D=void 0!==L&&L,Z=e.uploadText,R=e.videoPlayIcon,j=e.onlyClearOption,B=e.previewBorderStyle,M=void 0===B?"solid":B,k=(0,A.$)(),N=(0,Kt.d)().showModal,G=(0,c.useRef)(null),W=(0,c.useRef)(null),U=(0,ut.v)((function(e){return e.appConfig})),F=yu((0,c.useState)(!1),2),H=F[0],V=F[1],z=yu((0,c.useState)(!1),2),X=z[0],$=z[1],K=function(e,t){return t&&e&&(0,T.HD)(e)?JSON.parse(e):function(e){return(0,T.Kn)(e)&&("src"in e||"alt"in e)}(e)?Eu(Eu({},e),{},{src:null!==(r=e.src)&&void 0!==r?r:"",alt:null!==(n=e.alt)&&void 0!==n?n:""}):{src:null!=e?e:"",alt:""};var r,n}(i.value,D);t="string"==typeof K.src?K.src.startsWith("http")?K.src:"".concat(T.Xy.pagebuilderBase).concat(K.src):"",r=!K.src,n=K.src||"",o=K.alt||"";var Y=(0,pe.N)(t);(0,c.useEffect)((function(){var e;null===(e=G.current)||void 0===e||e.load()}),[Y]);var Q=function(){N({component:Fr,props:{onInsert:function(e){if(O)i.onChange(null==e?void 0:e.path);else{var t,r,n=!d&&(0,T.$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:{},o=D?Eu({},K):{};"image"!==(null==e?void 0:e.type)?D?(i.onChange(JSON.stringify(Eu(Eu({},o),{},{src:null==e?void 0:e.path}))),null==P||P(JSON.stringify(Eu(Eu({},o),{},{src:null==e?void 0:e.path})))):(i.onChange(Eu({src:null==e?void 0:e.path},n)),null==P||P(Eu({src:null==e?void 0:e.path},n))):Mt("".concat(pu.Z.APPLICATION_ROOT).concat(null==e?void 0:e.path)).then((function(t){i.onChange(Eu({src:null==e?void 0:e.path,height:null==t?void 0:t.naturalHeight,width:null==t?void 0:t.naturalWidth,alt:null==K?void 0:K.alt},n)),null==P||P(Eu({src:null==e?void 0:e.path,height:null==t?void 0:t.naturalHeight,width:null==t?void 0:t.naturalWidth,alt:null==K?void 0:K.alt},n))})).catch((function(e){console.log({e})}))}},allowedMediaType:g},closeOnOutsideClick:!0})},J=function(){O&&i.onChange(""),D?i.onChange(JSON.stringify({src:"",type:null==K?void 0:K.type})):i.onChange({src:"",width:"",height:""})};return(0,s.tZ)(re.Z,{label:l,field:i,fieldState:a,responsive:v,responsiveOrientation:b,helpText:y,children:function(){return(0,s.BX)("div",{css:wu.wrapper,children:[!T.Eu&&U.enable_ai&&(0,ln.sw)(x)&&(0,s.BX)(s.HY,{children:[("image"===g||"*"===g)&&(0,s.tZ)("div",{css:q.iZ.generateWithAiButtonWrapper,children:(0,s.tZ)(_.Z,{ref:W,onClick:function(){return V(!0)},icon:(0,s.tZ)(I.Z,{name:"wand",height:18,width:18}),css:q.iZ.generateWithAiButton(),children:k("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE_WITH_AI")})}),("image"===g||"*"===g)&&(0,s.tZ)(su,{imageFullPath:t,imageUri:K.src,isOpen:H,onClose:function(){V(!1)},onChange:i.onChange,triggerRef:W})]}),!d&&(0,s.tZ)("div",{css:[wu.previewWrapper(M),h,";label:MediaField;"],children:r?(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:"upload",height:16,width:16}),buttonContentCss:wu.buttonContentPrimary,onClick:Q,children:Z||k("COM_SPPAGEBUILDER_EDITOR_MEDIA_UPLOAD")}):(0,s.BX)(s.HY,{children:["image"===g&&(0,s.tZ)("img",{src:Y,alt:Y,css:wu.imagePreview}),"video"===g&&(0,s.BX)("div",{css:wu.videoWrapper,children:[(0,s.tZ)("video",{muted:!0,ref:G,children:(0,s.tZ)("source",{src:Y,type:"video/mp4"})}),(0,s.tZ)(I.Z,{name:R||"playCircle",height:32,width:32})]}),(0,s.BX)("div",{css:wu.hoverPreview,"data-hover-buttons-wrapper":!0,children:[(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:"recycle",height:16,width:16}),buttonContentCss:wu.buttonContentPrimary,onClick:Q,children:k("COM_SPPAGEBUILDER_EDITOR_MEDIA_REPLACE")}),(0,s.tZ)(_.Z,{variant:"secondary",buttonContentCss:wu.buttonContentPrimary,onClick:J,children:k("COM_SPPAGEBUILDER_EDITOR_MEDIA_CLEAR")})]})]})}),(0,s.BX)("div",{css:wu.inputWrapper,children:[(0,s.tZ)(Je.Z,{value:n,onChange:function(){var e=bu(hu().mark((function e(t){var r,n,o,a;return hu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!O){e.next=3;break}return i.onChange(K),e.abrupt("return");case 3:if(D?i.onChange(JSON.stringify(Eu(Eu({},K),{},{src:t}))):i.onChange(Eu(Eu({},K),{},{src:t})),r=t.startsWith("http")?t:"".concat(T.Xy.pagebuilderBase).concat(t),(0,T.K2)(r,"image")){e.next=7;break}return e.abrupt("return");case 7:return $(!0),e.prev=8,e.next=11,Mt(r);case 11:n=e.sent,o=n.naturalHeight,a=n.naturalWidth,i.onChange(Eu(Eu({},K),{},{src:t,height:o,width:a}));case 15:return e.prev=15,$(!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:wu.inputCss}),r&&!j?(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"upload",height:16,width:16}),buttonContentCss:wu.buttonContent,onClick:Q,loading:X,children:k("COM_SPPAGEBUILDER_EDITOR_MEDIA_UPLOAD")}):(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"cross",height:16,width:16}),buttonContentCss:wu.buttonContent,onClick:J,loading:X,children:k("COM_SPPAGEBUILDER_EDITOR_MEDIA_CLEAR")})]}),!f&&(0,s.tZ)(Je.Z,{value:o,helperText:"COM_SPPAGEBUILDER_EDITOR_ALT_TEXT_DESC",label:"COM_SPPAGEBUILDER_EDITOR_ALT_TEXT",placeholder:k("COM_SPPAGEBUILDER_EDITOR_ALT_TEXT_PLACEHOLDER"),onChange:function(){var e=bu(hu().mark((function e(t){return hu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i.onChange(Eu(Eu({},K),{},{alt:t})),P&&P(Eu(Eu({},K),{},{alt:t}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})]})}})};var wu={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[12],";;label:wrapper;"),previewWrapper:function(e){return(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 ",e," ",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:48%;top:40%;color:",n.qo.icon.white,";};label:videoWrapper;")};const Cu=function(e){var t=e.closeModal,r=e.title,n=e.id,o=(0,A.$)();return(0,s.tZ)(Wt.Z,{onClose:function(){return t({action:"CLOSE"})},title:r,children:(0,s.BX)("div",{css:Iu.modalWrapper,children:[(0,s.tZ)("div",{css:Iu.codeMirror,children:(0,s.tZ)("iframe",{src:"".concat(T.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:Iu.footerWrapper,children:[(0,s.tZ)(_.Z,{variant:"secondary",onClick:function(){return t({action:"CLOSE"})},children:o("COM_SPPAGEBUILDER_EDITOR_CANCEL")}),(0,s.tZ)(_.Z,{onClick:function(){t({action:"CLOSE"})},children:o("COM_SPPAGEBUILDER_EDITOR_APPLY")})]})]})})};var Iu={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 Su(e){return Su="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},Su(e)}function xu(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 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 Lu(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){Au(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 Au(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Su(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Su(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Tu=function(e){var t=e.fields,r=e.type,n=(0,A.$)();return t&&t[r]?(0,s.BX)("div",{css:Ru.dynamicFieldsWrapper,children:[(0,s.tZ)("span",{children:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_AVAILABLE_VARIABLES")}),t[r].map((function(e,t){return(0,s.tZ)("span",{"data-variable":!0,children:e.label},t)}))]}):null},Du=function(e){var t,r,n,o,i,a,l,c,u=e.form,d=u.watch("og_image"),p="dynamic_content:detail"===u.getValues("extension_view"),f=(0,A.$)();return p?(0,s.BX)("div",{css:Ru.openGraphImageWrapper,children:[(0,s.tZ)("span",{css:Ru.openGraphImageLegend,children:f("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE_LEGEND")}),(0,s.BX)("div",{children:[(0,s.tZ)("label",{css:Ru.imageTypeLabel,children:f("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE_SOURCE")}),(0,s.BX)(El.$x,{onSelect:function(e){u.setValue("og_image",Lu(Lu({},u.getValues("og_image")),{},{type:e}))},value:(0,T.$K)(null==d?void 0:d.type)&&null!=d&&d.type&&null!==(t=null==d?void 0:d.type)&&void 0!==t?t:"fixed",children:[(0,s.tZ)(El.i4,{children:(0,s.tZ)(El.ki,{placeholder:f("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE_SOURCE_PLACEHOLDER")})}),(0,s.BX)(El.Bw,{children:[(0,s.tZ)(El.Ql,{value:"fixed",children:f("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE_SOURCE_MEDIA_MANAGER")}),(0,s.tZ)(El.Ql,{value:"variable",children:f("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE_SOURCE_DYNAMIC_VARIABLE")})]})]})]}),(0,s.tZ)("div",{children:"variable"===(null==d?void 0:d.type)?(0,s.BX)(s.HY,{children:[(0,s.tZ)("label",{css:Ru.imageTypeLabel,children:f("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE_SOURCE_DYNAMIC_VARIABLE")}),(0,s.BX)(El.$x,{onSelect:function(e){u.setValue("og_image",{src:e,type:"variable"},{shouldDirty:!0})},value:null!==(r=u.getValues("og_image").src)&&void 0!==r?r:"",children:[(0,s.tZ)(El.i4,{disabled:!(null!==(n=u.getValues("dynamic_fields"))&&void 0!==n&&null!==(o=n.image)&&void 0!==o&&o.length),children:(0,s.tZ)(El.ki,{placeholder:"Choose a variable"})}),!(null===(i=u.getValues("dynamic_fields"))||void 0===i||null===(a=i.image)||void 0===a||!a.length)&&(0,s.tZ)(El.Bw,{children:null===(l=u.getValues("dynamic_fields"))||void 0===l||null===(c=l.image)||void 0===c?void 0:c.map((function(e,t){return(0,s.tZ)(El.Ql,{value:e.label,children:e.label},t)}))})]})]}):(0,s.tZ)(kt.Qr,{control:u.control,name:"og_image",render:function(e){var t,r,n=Lu(Lu({},e),{},{field:Lu(Lu({},e.field),{},{value:Lu(Lu({},e.field.value),{},{src:/{{/g.test(null===(t=e.field.value)||void 0===t?void 0:t.src)?"":null===(r=e.field.value)||void 0===r?void 0:r.src,type:"fixed"})})});return(0,s.tZ)(_u,Lu(Lu({},n),{},{hidePreview:!1,label:f("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE"),previewStyle:Ru.mediaFieldPreview,helpText:f("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE_DESC"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE_PLACEHOLDER"),onChange:function(e){var t;u.setValue("og_image",Lu(Lu({},u.getValues("og_image")),{},{src:null!==(t=e.src)&&void 0!==t?t:"",type:"fixed"}),{shouldDirty:!0})}}))}},"og_image:fixed")})]}):(0,s.tZ)(kt.Qr,{control:u.control,name:"og_image",render:function(e){var t,r,n,o,i=Lu(Lu({},e),{},{field:Lu(Lu({},e.field),{},{value:Lu(Lu({},e.field.value),{},{src:/{{/g.test(null===(t=e.field.value)||void 0===t?void 0:t.src)?"":null===(r=e.field.value)||void 0===r?void 0:r.src,type:"fixed",alt:null!==(n=null===(o=e.field.value)||void 0===o?void 0:o.alt)&&void 0!==n?n:""})})});return(0,s.tZ)(_u,Lu(Lu({},i),{},{hidePreview:!1,label:f("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE"),previewStyle:Ru.mediaFieldPreview,helpText:f("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE_DESC"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE_PLACEHOLDER"),onChange:function(e){var t,r;u.setValue("og_image",Lu(Lu({},u.getValues("og_image")),{},{src:null!==(t=e.src)&&void 0!==t?t:"",type:"fixed",alt:null!==(r=e.alt)&&void 0!==r?r:""}),{shouldDirty:!0})}}))}})};const Zu=function(){var e,t,r=(0,kt.Gc)(),n=(0,A.$)(),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 xu(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)?xu(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,ut.v)((function(e){return e.appConfig})),u=(0,at.Q)(),d=(0,so.Z)(Bn.F.PageEditor).id,p=(0,Kt.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}],h=[{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"}],v=[{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,g="dynamic_content:detail"===r.getValues("extension_view");return(0,s.BX)("div",{css:Ru.wrapper,children:[(0,s.tZ)($i,{tabList:b,activeTab:i,onChange:a}),"basic"===i&&(0,s.BX)("div",{css:Ru.fieldsWrapper,children:[(0,s.tZ)(kt.Qr,{control:r.control,name:"catid",render:function(e){return(0,s.tZ)(tt.Z,Lu(Lu({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_CATEGORY"),placeholder:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_CATEGORY_PLACEHOLDER"),options:l.categories}))}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"published",render:function(e){return(0,s.tZ)(tt.Z,Lu(Lu({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_STATUS"),options:f,disabled:!y}))}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"language",render:function(e){return(0,s.tZ)(tt.Z,Lu(Lu({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_LANGUAGE"),options:l.languages}))}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"access",render:function(e){return(0,s.tZ)(tt.Z,Lu(Lu({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_ACCESS"),options:l.access_levels}))}}),m&&(0,s.BX)("div",{css:Ru.permissionButtonWrapper,children:[(0,s.tZ)("h5",{children:n("COM_SPPAGEBUILDER_EDITOR_PERMISSION_BUTTON_LABEL")}),(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:"cog"}),variant:"secondary",disabled:!r.getValues("asset_id"),onClick:function(){p({component:Cu,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:Ru.fieldsWrapper,children:(0,s.tZ)(kt.Qr,{control:r.control,name:"css",render:function(e){return(0,s.tZ)(_l,Lu(Lu({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_CUSTOM_CSS")}))}})}),"seo"===i&&(0,s.BX)("div",{css:Ru.fieldsWrapper,children:[(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.meta_description",rules:{maxLength:{value:160,message:n("COM_SPPAGEBUILDER_EDITOR_META_DESCRIPTION_MAX_LENGTH")}},render:function(e){return(0,s.tZ)(fn,Lu(Lu({},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:!1,hideMaxLimit:1}))}}),g&&(0,s.tZ)(Tu,{fields:r.getValues("dynamic_fields"),type:"text"}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.meta_keywords",render:function(e){return(0,s.tZ)(fn,Lu(Lu({},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)(kt.Qr,{control:r.control,name:"attribs.robots",render:function(e){return(0,s.tZ)(tt.Z,Lu(Lu({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_ROBOTS"),placeholder:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_ROBOTS_PLACEHOLDER"),options:h}))}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.og_type",render:function(e){return(0,s.tZ)(tt.Z,Lu(Lu({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TYPE"),options:v,helpText:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TYPE_DESC"),placeholder:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TYPE_PLACEHOLDER")}))}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"og_title",render:function(e){return(0,s.tZ)(rt.Z,Lu(Lu({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TITLE"),placeholder:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TITLE_PLACEHOLDER")}))}}),g&&(0,s.tZ)(Tu,{fields:r.getValues("dynamic_fields"),type:"text"}),(0,s.tZ)(Du,{form:r}),(0,s.tZ)(kt.Qr,{control:r.control,name:"og_description",render:function(e){return(0,s.tZ)(fn,Lu(Lu({},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")}))}}),g&&(0,s.tZ)(Tu,{fields:r.getValues("dynamic_fields"),type:"text"}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.author",render:function(e){return(0,s.tZ)(rt.Z,Lu(Lu({},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 Ru={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;"),openGraphImageWrapper:(0,i.iv)("position:relative;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";padding:",n.W0[16]," ",n.W0[8],";display:flex;flex-direction:column;gap:",n.W0[16],";margin-block:",n.W0[16],";;label:openGraphImageWrapper;"),openGraphImageLegend:(0,i.iv)("position:absolute;top:-",n.W0[12],";left:",n.W0[8],";background-color:",n.qo.base.surface,";padding:",n.W0[4]," ",n.W0[8],";",o.c.caption(),";color:",n.qo.text.default,";;label:openGraphImageLegend;"),dynamicFieldsWrapper:(0,i.iv)(o.c.caption(),";color:",n.qo.text.neutral,";display:flex;align-items:center;flex-wrap:wrap;gap:",n.W0[4],";[data-variable]{color:",n.qo.text.default,";};label:dynamicFieldsWrapper;"),imageTypeLabel:(0,i.iv)(o.c.caption(),";color:",n.qo.text.default,";margin-bottom:",n.W0[4],";;label:imageTypeLabel;"),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 ju=function(e){var t=e.title;return(0,s.tZ)("div",{css:Bu.separator,children:t&&(0,s.tZ)("div",{css:Bu.title,children:t})})};var Bu={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;")},Mu=r(3579),ku=r(7870);function Nu(e){return Nu="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},Nu(e)}var Gu=["css"];function Wu(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 Uu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wu(Object(r),!0).forEach((function(t){Fu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Nu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Nu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Nu(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hu(e){return function(e){if(Array.isArray(e))return Vu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qu(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 qu(e,t){if(e){if("string"==typeof e)return Vu(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)?Vu(e,t):void 0}}function Vu(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 zu=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,h=(0,A.$)(),v=(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)||qu(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=v[0],y=v[1],m=[{label:h("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_OPTION_FADE"),value:"fade",icon:(0,s.tZ)(I.Z,{name:"fadeIn",width:32,height:34})},{label:h("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_OPTION_ROTATE"),value:"rotate",icon:(0,s.tZ)(I.Z,{name:"spinIn",width:38,height:53})},{label:h("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_OPTION_FLIP"),value:"flip",icon:(0,s.tZ)(I.Z,{name:"flipIn",height:40,width:35})},{label:h("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_OPTION_BOUNCE"),value:"bounce",icon:(0,s.tZ)(I.Z,{name:"bounceIn",height:34,width:54})},{label:h("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_OPTION_ZOOM"),value:"zoom",icon:(0,s.tZ)(I.Z,{name:"zoomIn",width:36,height:36})},{label:h("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_OPTION_SPECIAL"),value:"special",icon:(0,s.tZ)(I.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,T.$K)(b)?(0,T.Lg)(nn.sF[b]):[]}),[b]),O=(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)(re.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,Gu);return(0,s.BX)("div",{css:[Xu.wrapper,u,";label:AnimationField;"],children:[m.map((function(e,t){return(0,i.az)(Mu.Z,Uu(Uu({},o),{},{key:t,inputCss:[].concat(Hu(r),[Xu.radioInput]),value:e.value,checked:e.value===b,label:e.label,icon:e.icon,disabled:l,labelCss:Xu.radioLabel({isActive:e.value===b}),iconWrapperCss:Xu.iconWrapperCss({isActive:e.value===b}),onChange:function(){y(e.value);var t=(0,T.Lg)(nn.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)(ku.Z,{options:E,value:O,label:h("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_DIRECTION"),onChange:function(e){n.onChange(e.value)}})]})}})};var Xu={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;"}},$u=r(3581),Ku=r(6486),Yu=r.n(Ku);function Qu(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 Ju=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 Qu(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)?Qu(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],h=void 0===f?"":f;return(0,s.BX)("div",{css:es.wrapper,children:[(0,s.tZ)("input",{name:"topLeft",value:l,onChange:function(e){n("".concat(e.target.value," ").concat(u," ").concat(p," ").concat(h))}}),(0,s.tZ)("input",{name:"topRight",value:u,onChange:function(e){return n("".concat(l," ").concat(e.target.value," ").concat(p," ").concat(h))}}),(0,s.tZ)("input",{name:"bottomRight",value:p,onChange:function(e){return n("".concat(l," ").concat(u," ").concat(e.target.value," ").concat(h))}}),(0,s.tZ)("input",{name:"bottomLeft",value:h,onChange:function(e){return n("".concat(l," ").concat(u," ").concat(p," ").concat(e.target.value))}}),(0,s.tZ)(_.Z,{variant:"text",buttonCss:es.button,onClick:o,children:(0,s.tZ)(I.Z,{name:"cornerRadius",width:16,height:16})})]})};var es={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 ts(e){return ts="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},ts(e)}function rs(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 ns(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rs(Object(r),!0).forEach((function(t){os(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function os(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ts(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ts(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ts(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function is(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 as(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)?as(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 as(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 ls={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 cs=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,h=e.noToggle,v=void 0!==h&&h,b=(0,A.$)(),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,T.$K)(n.value)&&(0,Ku.isObject)(n.value)||(m=u?ls:{border_width:"",border_style:"",border_color:""});var g=is((0,c.useState)(!1),2),E=g[0],O=g[1],_=(0,c.useRef)(null),w=(0,c.useRef)(""),C=is((0,c.useState)(w.current.length>1?"box":"slider"),2),I=C[0],S=C[1];return(0,s.tZ)(re.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:us.wrapper(a),children:[(0,s.BX)("div",{children:[!0===v&&(0,s.tZ)($u.Z,{value:f[0].replace(/[a-zA-Z%]+/g,""),onChange:function(e){if((0,T.$K)(e))if(a){var r=(0,ln.xU)({previous:m,value:ns(ns({},t),{},{border_width:"".concat(e,"px")}),responsive:a,device:o});n.onChange(r)}else n.onChange(ns(ns({},t),{},{border_width:"".concat(e,"px")}))},min:0,max:20}),!1===v&&("slider"===I?(0,s.tZ)($u.Z,{value:f[0].replace(/[a-zA-Z%]+/g,""),onChange:function(e){if((0,T.$K)(e))if(a){var r=(0,ln.xU)({previous:m,value:ns(ns({},t),{},{border_width:"".concat(e,"px")}),responsive:a,device:o});n.onChange(r)}else n.onChange(ns(ns({},t),{},{border_width:"".concat(e,"px")}))},onToggle:function(){var e=(0,T.$K)(t.border_width)?"".concat(t.border_width," ").concat(t.border_width," ").concat(t.border_width," ").concat(t.border_width):" ".repeat(4);if((0,T.$K)(e))if(a){var r=(0,ln.xU)({previous:m,value:ns(ns({},t),{},{border_width:e}),responsive:a,device:o});n.onChange(r)}else n.onChange(ns(ns({},t),{},{border_width:e}));S("box")},min:0,max:20}):(0,s.tZ)(Ju,{value:t.border_width,onChange:function(e){if((0,T.$K)(e))if(a){var r=(0,ln.xU)({previous:m,value:ns(ns({},t),{},{border_width:e}),responsive:a,device:o});n.onChange(r)}else n.onChange(ns(ns({},t),{},{border_width:e}))},onToggle:function(){var e=(0,T.$K)(t.border_width)?t.border_width.split(/\s+/)[0]:"";if((0,T.$K)(e))if(a){var r=(0,ln.xU)({previous:m,value:ns(ns({},t),{},{border_width:e}),responsive:a,device:o});n.onChange(r)}else n.onChange(ns(ns({},t),{},{border_width:e}));S("slider")}}))]}),(0,s.BX)("div",{css:us.styleColorWrapper,children:[(0,s.tZ)(ku.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,ln.xU)({previous:m,value:ns(ns({},t),{},{border_style:e.value}),responsive:a,device:o});n.onChange(r)}else n.onChange(ns(ns({},t),{},{border_style:e.value}))},isSearchable:!0,isClearable:!1}),(0,s.BX)("div",{children:[(0,s.tZ)(Ae,{ref:_,color:d||"",onChangeColor:function(e){if(a){var r=(0,ln.xU)({previous:m,value:ns(ns({},t),{},{border_color:e}),responsive:a,device:o});n.onChange(r)}else n.onChange(ns(ns({},t),{},{border_color:e}))},onClick:function(){return O(!0)},disabled:i,hasAlphaField:p,hideInput:!0}),(0,s.tZ)(Se,{color:d||"",isOpen:E,triggerRef:_,onChangeColor:function(e){if(a){var r=(0,ln.xU)({previous:m,value:ns(ns({},t),{},{border_color:e}),responsive:a,device:o});n.onChange(r)}else n.onChange(ns(ns({},t),{},{border_color:e}))},closeColorPicker:function(e){if(O(!1),a){var r=(0,ln.xU)({previous:m,value:ns(ns({},t),{},{border_color:e}),responsive:a,device:o});n.onChange(r)}else n.onChange(ns(ns({},t),{},{border_color:e}))},popoverGap:20})]})]})]})}})};var us={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 ss(e){return ss="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},ss(e)}function ds(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?ds(Object(r),!0).forEach((function(t){fs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ss(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ss(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ss(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hs(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 vs=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:ys.lockButton,onClick:function(){return o(!t)},children:(0,s.tZ)(I.Z,{name:t?"lock":"unLock",width:16,height:16})})};const bs=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,h=e.onKeyDown,v=e.responsive,b=e.responsiveOrientation,y=(0,A.$)(),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 hs(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)?hs(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],O=[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)(re.Z,{label:n,field:o,fieldState:i,disabled:a,readOnly:l,loading:u,placeholder:d,helpText:p,responsive:v,responsiveOrientation:b,children:function(e){var t=e.attributes,r=e.data,n=r.device,i=r.responsive,a=(0,ln.o5)(o.value,n),l=(0,T.$K)(a)?a.split(" "):[];return(0,s.BX)("div",{css:ys.wrapper,children:[(0,s.tZ)(vs,{isLocked:g,fieldValue:l,device:n,onChange:E}),(0,s.tZ)("div",{css:ys.inputWrapper({isLocked:g}),children:O.map((function(e,r){return(0,s.tZ)("input",ps(ps(ps({},o),t),{},{id:(0,T.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,ln.o5)(o.value,r),c=(0,T.$K)(l)?l.split(" "):[];g?c=[a,a,a,a]:c[Number(i)]=a.replace(/\s/,"");var u=(0,ln.xU)({previous:o.value,value:c.join(" "),responsive:t,device:r});o.onChange(u),f&&f(u)}(e,i,n)},onKeyDown:function(e){h&&h(e.key)},autoComplete:"off"}),r)}))})]})}})};var ys={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;")}},ms=r(5791);function gs(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 Es(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(r),!0).forEach((function(t){Os(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Os(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 _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 ws(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 Cs(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)?Cs(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 Cs(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 Is={enabled:!1,color:"transparent",ho:0,vo:0,blur:0,spread:0,inset:!1},Ss=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 xs=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,h=(0,A.$)(),v=ws((0,c.useState)(!1),2),b=v[0],y=v[1],m=(0,de.l)({isOpen:b,gap:20,arrow:"right"}),g=m.triggerRef,E=m.position,O=m.popoverRef,_=ws((0,c.useState)(),2),w=_[0],C=_[1];return(0,s.tZ)(re.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,T.$K)(r.value)&&"object"===_s(r.value)?r.value:void 0,u=null!==(n=(0,ln.oo)(c,i))&&void 0!==n?n:Is,d=function(e,t){var n=(0,ln.xU)({previous:c,value:Es(Es({},u),{},Os({},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:Ps.labelWrapper,children:[(0,s.tZ)("div",{css:Ps.label,children:t}),(0,s.tZ)(ms.Z,{checked:u.enabled,onChange:function(e){return d(e,"enabled")}})]}),u.enabled&&(0,s.BX)("button",{css:Ps.shadowWrapper,onClick:function(){return y(!0)},children:[(0,s.tZ)("div",{css:Ps.previewWrapper,children:p?(0,s.tZ)("div",{css:Ps.boxPreview(u)}):(0,s.tZ)("div",{css:Ps.textPreview(u),children:"T"})}),(0,s.tZ)("div",{css:Ps.shadowContent,children:Ss(p,u)}),(0,s.tZ)(I.Z,{name:"settings",height:20,width:20})]})]}),(0,s.tZ)(de.h,{isOpen:b,onClickOutside:function(){return y(!1)},children:(0,s.BX)("div",{css:[Ps.popover,{position:"absolute",left:E.left,top:E.top},";label:BoxShadowField;"],ref:O,children:[(0,s.BX)("div",{css:Ps.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)(I.Z,{name:"cross"})})]}),(0,s.BX)("div",{css:Ps.optionsWrapper,children:[(0,s.tZ)(ke,{label:h("COM_SPPAGEBUILDER_EDITOR_BOX_SHADOW_COLOR"),color:w||u.color,onChange:function(e){return C(e)},onClose:function(e){return d(e,"color")}}),(0,s.tZ)($u.Z,{label:h("COM_SPPAGEBUILDER_EDITOR_BOX_SHADOW_HORIZONTAL"),value:(0,ln.BB)(u.ho),onChange:function(e){return d(null!=e?e:"","ho")}}),(0,s.tZ)($u.Z,{label:h("COM_SPPAGEBUILDER_EDITOR_BOX_SHADOW_VERTICAL"),value:(0,ln.BB)(u.vo),onChange:function(e){return d(null!=e?e:"","vo")}}),(0,s.tZ)($u.Z,{label:h("COM_SPPAGEBUILDER_EDITOR_BOX_SHADOW_BLUR"),value:(0,ln.BB)(u.blur),onChange:function(e){return d(null!=e?e:"","blur")}}),p&&(0,s.tZ)($u.Z,{label:h("COM_SPPAGEBUILDER_EDITOR_BOX_SHADOW_SPREAD"),value:(0,ln.BB)(u.spread),onChange:function(e){return d(null!=e?e:"","spread")}})]})]})})]})}})};var Ps={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 Ls=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)(re.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,ln.o5)(n.value,o);return(0,s.tZ)("div",{css:As.container,children:(0,s.tZ)($i,{variant:"secondary",tabList:(0,T.I6)(r),activeTab:a,onChange:function(e){var t=(0,ln.xU)({previous:n.value,value:e,responsive:i,device:o});n.onChange(t),f&&f(t)}})})}})};var As={container:{name:"1m6tfql-container",styles:"position:relative;display:flex;label:container;"}},Ts=[0,1,2,3,4,5,6,7,8];const Ds=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:Zs.wrapper,children:Ts.map((function(e,t){return(0,s.tZ)("div",{css:Zs.buttonWrapper,children:(0,s.tZ)("div",{role:"button",tabIndex:0,onKeyDown:T.ZT,css:Zs.button({index:t,activeIndex:r}),onClick:function(){return o(t)}})},e.toString())}))})};var Zs={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;")}},Rs=r(8710),js=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},Bs=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},Ms=r(1245),ks=r.n(Ms),Ns=r(2902);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 Ws(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)?Ws(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 Ws(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 Us=[{label:"Position",fieldKey:"position",fields:[{label:"Top",fieldKey:"top"},{label:"Left",fieldKey:"left"}]}],Fs={top:{xl:"",lg:"",md:"",sm:"",xs:"",unit:"%"},left:{xl:"",lg:"",md:"",sm:"",xs:"",unit:"%"}};const Hs=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=Gs((0,c.useState)((function(){return(0,T.$K)(t.value)&&(0,T.Kn)(t.value)?t.value:Fs})),2),f=p[0],h=p[1],v=(0,pe.N)(f),b=(0,on.F)((function(e){return e.payload})),y=b.sectionIndex,m=b.columnIndex,g=b.addonIndex,E=b.tableItem,O=(0,an.s)((function(e){return e.currentState})),_=(0,c.useRef)("xl");(0,c.useEffect)((function(){h(f),"%"!==f.top.unit||"%"!==f.left.unit||"0"!==f.top[_.current]&&"50"!==f.top[_.current]&&"100"!==f.top[_.current]||"0"!==f.left[_.current]&&"50"!==f.left[_.current]&&"100"!==f.left[_.current]?I(-1):Bs(ks()(f),I,_.current)}),[y,m,g,E,O,_.current]),(0,c.useEffect)((function(){t.onChange(v),d&&d(v)}),[v]),(0,c.useEffect)((function(){Yu().isEqual(t.value,f)||(h((0,T.$K)(t.value)?t.value:Fs),Bs((0,T.$K)(t.value)?t.value:Fs,I,_.current))}),[t.value]);var w=Gs((0,c.useState)(4),2),C=w[0],I=w[1],S=function(e){var t=ks()(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,ks()(t),_.current);ks()(f),h(r),I(e)};return(0,s.tZ)(re.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 _.current=t,(0,s.tZ)("div",{css:qs.wrapper,children:Us.map((function(e){return(0,s.tZ)("div",{children:(0,s.BX)("div",{css:qs.groupFieldWrapper,children:[e.fields.map((function(r){var n={value:f[r.fieldKey][t],unit:f[r.fieldKey].unit};return(0,s.tZ)(Rs.Z,{label:r.label,isAngleUnit:e.isAngleUnit,fieldValue:n,isLarge:!0,onChange:function(e){var n=(0,Ns.ZP)(ks()(f),(function(n){var o=n;(0,T.$K)(o)&&(o[r.fieldKey][t]=e.value,o[r.fieldKey].unit=e.unit)}));Bs(ks()(n),I,t),h(n)},inputCss:qs.inputCss,unitInputStyles:qs.unitInputStyles},r.fieldKey)})),(0,s.tZ)(Ds,{activeIndex:C,onClick:S})]})},e.fieldKey)}))})}})};var qs={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 Vs(e){return Vs="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},Vs(e)}function zs(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 Xs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zs(Object(r),!0).forEach((function(t){$s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zs(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"!==Vs(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Vs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Vs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ks(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 Ys(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)?Ys(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 Ys(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 Qs={color:"",color2:"",pos:45,pos2:65,type:"linear",radialPos:"center center",deg:45};const Js=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,A.$)(),d=(0,T.$K)(r.value)?r.value:Qs,p=Ks((0,c.useState)(d.color||""),2),f=p[0],h=p[1],v=Ks((0,c.useState)(d.color2||""),2),b=v[0],y=v[1];(0,c.useEffect)((function(){h(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,O=void 0===E?65:E,_=d.type,w=void 0===_?"linear":_,C=d.deg,I=void 0===C?45:C,S=d.radialPos,x=void 0===S?"center center":S,P={linear:"linear-gradient(".concat(I,"deg, ").concat(f," ").concat(g,"%, ").concat(b," ").concat(O,"%)"),radial:"radial-gradient(at ".concat(x,", ").concat(f," ").concat(g,"%, ").concat(b," ").concat(O,"%)")},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"}],D=function(e,t){r.onChange(Xs(Xs({},d),{},$s({},t,e))),a&&a(Xs(Xs({},d),{},$s({},t,e)))};return(0,s.tZ)(re.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:ed.wrapper,children:[(0,s.tZ)("div",{css:ed.colorPallateWrapper,children:(0,s.tZ)("div",{css:ed.colorPallate(P[w])})}),(0,s.BX)("div",{css:ed.colorPickerWrapper,children:[(0,s.BX)("div",{css:ed.colorPickerItem,children:[(0,s.tZ)("div",{css:ed.label(o),children:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_COLOR1")}),(0,s.tZ)(ke,{color:f,onChange:function(e){return h(e)},onClose:function(e){return D(e,"color")},hasAlphaField:!1})]}),(0,s.BX)("div",{css:ed.colorPickerItem,children:[(0,s.tZ)("div",{css:ed.label(o),children:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_COLOR2")}),(0,s.tZ)(ke,{color:b,onChange:function(e){return y(e)},onClose:function(e){return D(e,"color2")},hasAlphaField:!1})]})]}),(0,s.tZ)($u.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_START"),isInlineLabel:!0,value:(0,ln.BB)(g),onChange:function(e){return D(null!=e?e:"","pos")},inputContent:"%"}),(0,s.tZ)($u.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_END"),isInlineLabel:!0,value:(0,ln.BB)(O),onChange:function(e){return D(null!=e?e:"","pos2")},inputContent:"%"}),(0,s.BX)("div",{css:ed.typeWrapper,children:[(0,s.tZ)("div",{css:ed.label(o),children:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_TYPE")}),(0,s.BX)("div",{css:ed.radioWrapper,children:[(0,s.tZ)(Mu.Z,{showRadioIcon:!0,label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_LINEAR"),checked:"linear"===w,onChange:function(){return D("linear","type")}}),(0,s.tZ)(Mu.Z,{showRadioIcon:!0,label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_RADIAL"),checked:"radial"===w,onChange:function(){return D("radial","type")}})]})]}),"linear"===w&&(0,s.tZ)($u.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ANGLE"),isInlineLabel:!0,max:360,value:(0,ln.BB)(I),onChange:function(e){return D(null!=e?e:"","deg")},inputContent:"deg"}),"radial"===w&&(0,s.tZ)("div",{css:ed.anglePosWrapper,children:(0,s.tZ)(ku.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ANGLE"),isInlineLabel:!0,options:L,value:null!==(e=L.find((function(e){return e.value===x})))&&void 0!==e?e:L[3],onChange:function(e){return D(e.value,"radialPos")},clearOption:function(){return D("center center","radialPos")},isSearchable:!0})})]})})}})};var ed={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;"}},td=r(487),rd=r(3417),nd=r(8008);function od(e){return od="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},od(e)}function id(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 ad(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?id(Object(r),!0).forEach((function(t){ld(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):id(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ld(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==od(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==od(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===od(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cd(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 ud=function(e){var t,r,n=e.closeModal,o=e.title,i=(0,A.$)(),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 cd(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)?cd(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=mt(),f=(0,nd.Ap)(),h=(0,ot.O)({defaultValues:{search:""}}),v=(0,pe.N)(h.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(v)})):(null===(e=p.data.find((function(e){return e.name===u})))||void 0===e?void 0:e.assets.filter((function(e){return e.includes(v)})))||[]:[]}),[u,p.data,v]);return p.isLoading?(0,s.tZ)(w.g4,{}):p.data?(0,s.tZ)(Wt.Z,{onClose:function(){return n({action:"CLOSE"})},title:o,wrapperCss:sd.wrapper,children:(0,s.BX)("div",{css:sd.container,children:[(0,s.BX)("div",{css:sd.sidebar,children:[(0,s.tZ)(rd.Z,{header:(0,s.BX)(s.HY,{children:[(0,s.BX)(_.Z,{buttonCss:sd.uploadButton,onClick:function(){var e;return null===(e=a.current)||void 0===e?void 0:e.click()},loading:f.isLoading,children:[(0,s.tZ)(I.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:sd.cardInner,children:[(0,s.tZ)("li",{css:sd.cardInnerItem("all"===u),children:(0,s.BX)("button",{type:"button",onClick:function(){return d("all")},children:[(0,s.tZ)(I.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:sd.cardInnerItem(u===e.name),children:(0,s.BX)("button",{type:"button",onClick:function(){return d(e.name)},children:[(0,s.tZ)(I.Z,{name:e.name,width:16,height:16}),(0,s.tZ)("span",{children:e.title})]})},e.id)}))]})}),(0,s.tZ)("p",{css:sd.uploadMessage,children:i("COM_SPPAGEBUILDER_EDITOR_ICON_UPLOAD_MESSAGE")})]}),(0,s.BX)("div",{css:sd.searchAndIcons,children:[(0,s.tZ)("div",{css:sd.searchWrapper,children:(0,s.tZ)(kt.Qr,{control:h.control,name:"search",render:function(e){return(0,s.tZ)(rt.Z,ad(ad({},e),{},{variant:"search",placeholder:i("COM_SPPAGEBUILDER_EDITOR_ICON_SEARCH_PLACEHOLDER"),isClearable:!0}))}})}),(0,s.BX)("div",{css:sd.content,children:[function(){if(0===b.length)return(0,s.BX)("div",{css:sd.notFound,children:[(0,s.tZ)(I.Z,{name:"foldersDuo",width:56,height:56}),(0,s.tZ)("span",{children:i("COM_SPPAGEBUILDER_EDITOR_NO_ICON_FOUND_MESSAGE",{keyword:h.getValues("search")})})]})}(),b.map((function(e,t){return(0,s.BX)("button",{type:"button",css:sd.iconWrapper,onClick:function(){n({action:e})},children:[(0,s.tZ)("span",{className:e,css:sd.icon}),(0,s.tZ)("span",{children:e})]},t)}))]})]})]})}):(0,s.tZ)(ca,{title:i("COM_SPPAGEBUILDER_EDITOR_SOMETHING_WENT_WRONG_TITLE"),subtitle:i("COM_SPPAGEBUILDER_EDITOR_SOMETHING_WENT_WRONG_SUBTITLE"),actionButton:(0,s.tZ)(td.Z,{href:"https://www.joomshaper.com/forum",target:"_blank",children:i("COM_SPPAGEBUILDER_EDITOR_SOMETHING_WENT_WRONG_CONTACT_BUTTON")})})};var sd={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 dd(e){return dd="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},dd(e)}function pd(){pd=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==dd(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function fd(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 hd(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){fd(i,n,o,a,l,"next",e)}function l(e){fd(i,n,o,a,l,"throw",e)}a(void 0)}))}}const vd=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,h=e.responsiveOrientation,v=(0,A.$)(),b=(0,Kt.d)().showModal;return(0,s.tZ)(re.Z,{label:t,isInlineLabel:r,field:n,fieldState:o,disabled:i,readOnly:a,loading:l,placeholder:c,helpText:u,responsive:f,responsiveOrientation:h,children:function(e){var t,r,o=e.data,i=o.device,a=o.responsive,l=(0,ln.o5)(n.value,i);return(0,s.BX)("div",{css:bd.wrapper,children:[!!l&&(0,s.BX)("div",{css:bd.iconContainer,children:[(0,s.tZ)("span",{className:(t=l,r=t.split(" "),1===r.length&&"fa"===(r=t.split("-"))[0]?"fa "+t:t),css:bd.icon}),(0,s.tZ)(_.Z,{variant:"text",buttonCss:bd.clearButton,onClick:function(){var e=(0,ln.xU)({previous:n.value,value:"",responsive:a,device:i});n.onChange(e)},children:(0,s.tZ)(I.Z,{name:"timesCircle",width:14,height:14})})]}),(0,s.tZ)("div",{children:(0,s.tZ)(_.Z,{variant:"secondary",onClick:hd(pd().mark((function e(){var t,r,o;return pd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b({component:ud,props:{title:v("COM_SPPAGEBUILDER_EDITOR_ICON_FIELD_MODAL_TITLE")},closeOnOutsideClick:!0});case 2:t=e.sent,r=t.action,o=(0,ln.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?v("COM_SPPAGEBUILDER_EDITOR_REPLACE_ICON_BUTTON_TEXT"):p||v("COM_SPPAGEBUILDER_EDITOR_CHOOSE_ICON_BUTTON_TEXT")})})]})}})};var bd={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[20],";;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;")},yd=[{label:"Color",value:"color"},{label:"Image",value:"image"},{label:"Gradient",value:"gradient"}],md=[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"}],gd=[{label:"Color",value:"color"},{label:"Image",value:"image"},{label:"Gradient",value:"gradient"}];function Ed(e){return Ed="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},Ed(e)}function Od(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?Od(Object(r),!0).forEach((function(t){wd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Od(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ed(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ed(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ed(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cd(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 Id=function(){var e,t,r=(0,kt.Gc)(),n=(0,A.$)(),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 Cd(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)?Cd(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,at.Q)(),u=l.admin||l.manage,d=(0,Kt.d)().showModal,p=(0,so.Z)(Bn.F.PopupEditor).id,f=(0,ut.v)((function(e){return e.appConfig})),h=function(){var e=(0,A.$)();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"}]}(),v=function(){var e=(0,A.$)();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,A.$)();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,A.$)();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,A.$)();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,A.$)();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,A.$)();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"}]}(),O=function(){var e=(0,A.$)();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"}]}(),w=r.watch("attribs.background_type"),C=r.watch("attribs.overlay_background_type"),S=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:Sd.wrapper,children:[(0,s.tZ)($i,{tabList:O,activeTab:i,onChange:a}),"basic"===i&&(0,s.BX)("div",{css:Sd.fieldsWrapper,children:[(0,s.BX)(ru.Z,{header:{title:"Layout"},children:[(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.width",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(di.Z,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.max_width",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(di.Z,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.height",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(di.Z,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.max_height",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(di.Z,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.position",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(Hs,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_POSITION"),responsive:!0}))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.close_outside_click",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(rn.Z,_d(_d({},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)(ru.Z,{header:{title:"Animation"},children:[(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.toggle_enter_animation",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(rn.Z,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.enter_animation",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(zu,_d({},e))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.enter_animation_duration",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(di.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_GLOBAL_DURATION"),max:1e4}))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.enter_animation_delay",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(di.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_GLOBAL_DELAY"),max:1e4}))})}})]}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.toggle_exit_animation",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(rn.Z,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.exit_animation",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(zu,_d({},e))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.exit_animation_duration",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(di.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_GLOBAL_DURATION"),max:1e4}))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.exit_animation_delay",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(di.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_GLOBAL_DELAY"),max:1e4}))})}})]})]}),(0,s.BX)(ru.Z,{header:{title:"General"},children:[(0,s.tZ)(kt.Qr,{control:r.control,name:"published",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(tt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_STATUS"),options:(0,ln.qb)(E)}))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"language",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(tt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_LANGUAGE"),options:f.languages}))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"access",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(tt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_ACCESS"),options:f.access_levels}))})}}),u&&(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.BX)("div",{css:Sd.permissionButtonWrapper,children:[(0,s.tZ)("h5",{children:n("COM_SPPAGEBUILDER_EDITOR_PERMISSION_BUTTON_LABEL")}),(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:"cog"}),variant:"secondary",disabled:!r.getValues("asset_id"),onClick:function(){d({component:Cu,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:Sd.fieldsWrapper,children:[(0,s.BX)(ru.Z,{header:{title:"Popup"},children:[(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.background_type",defaultValue:"none",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(Ls,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND"),options:(0,ln.qb)(yd)}))})}}),"none"!==w&&function(e){switch(e){case"color":return(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.bg_color",defaultValue:"white",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(He,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.bg_media",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(_u,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE"),hidePreview:!1,hideAltText:!0}))})}},"attribs.bg_media"),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.bg_media_repeat",defaultValue:"no-repeat",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(tt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_REPEAT"),options:(0,ln.qb)(b)}))})}},"attribs.bg_media_image_repeat"),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.bg_media_size",defaultValue:"cover",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(tt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_SIZE"),options:(0,ln.qb)(y)}))})}},"attribs.bg_media_size"),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.bg_media_attachment",defaultValue:"fixed",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(tt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_ATTACHMENT"),options:(0,ln.qb)(h)}))})}},"attribs.bg_media_attachment"),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.bg_media_position",defaultValue:"50% 50%",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(tt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_POSITION"),options:(0,ln.qb)(v)}))})}},"attribs.bg_media_position"),(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(ju,{title:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_OVERLAY_OPTIONS")})}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.bg_media_overlay",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(rn.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_OVERLAY"),isInlineLabel:!0}))})}},"attribs.bg_media_overlay"),1===S&&(0,s.tZ)(s.HY,{children:(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.bg_media_overlay_blend_mode",defaultValue:"normal",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(tt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_OVERLAY_BLEND_MODE"),options:(0,ln.qb)(m)}))})}},"attribs.bg_media_overlay_blend_mode")})]});case"gradient":return(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.bg_gradient",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(Js,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_GRADIENT")}))})}},"attribs.bg_gradient")}}(w),(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(ju,{title:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_SPACING_OPTIONS")})}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.padding",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(bs,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_PADDING")}))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.margin",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(bs,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MARGIN")}))})}}),(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(ju,{title:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BORDER_OPTIONS")})}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.border",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(cs,_d(_d({},e),{},{noToggle:!0}))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.border_radius",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(di.Z,_d(_d({},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:Sd.popupCardInnerSection,children:(0,s.tZ)(ju,{title:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_SHADOW_OPTIONS")})}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.boxshadow",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(xs,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BOX_SHADOW")}))})}})]}),(0,s.tZ)(ru.Z,{header:{actionTray:(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.overlay",defaultValue:1,render:function(e){return(0,s.tZ)(rn.Z,_d({},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)(kt.Qr,{control:r.control,name:"attribs.overlay_background_type",defaultValue:"color",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(Ls,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND"),options:(0,ln.qb)(gd)}))})}},"attribs.overlay_background_type"),function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"color"){case"color":return(0,s.tZ)(kt.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:Sd.popupCardInnerSection,children:(0,s.tZ)(He,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.overlay_bg_media",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(_u,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE"),hidePreview:!1,hideAltText:!0}))})}},"attribs.overlay_bg_media"),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.overlay_bg_media_repeat",defaultValue:"no-repeat",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(tt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_REPEAT"),options:(0,ln.qb)(b)}))})}},"attribs.overlay_bg_media_repeat"),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.overlay_bg_media_size",defaultValue:"cover",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(tt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_SIZE"),options:(0,ln.qb)(y)}))})}},"attribs.overlay_bg_media_size"),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.overlay_bg_media_attachment",defaultValue:"fixed",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(tt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_ATTACHMENT"),options:(0,ln.qb)(h)}))})}},"attribs.overlay_bg_media_attachment"),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.overlay_bg_media_position",defaultValue:"50% 50%",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(tt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_POSITION"),options:(0,ln.qb)(v)}))})}},"attribs.overlay_bg_media_position"),(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(ju,{title:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_OVERLAY_OPTIONS")})}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.overlay_bg_media_overlay",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(rn.Z,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.overlay_bg_media_overlay_blend_mode",defaultValue:"normal",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(tt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_OVERLAY_BLEND_MODE"),options:(0,ln.qb)(m)}))})}},"attribs.overlay_bg_media_overlay_blend_mode")})]});case"gradient":return(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.overlay_bg_gradient",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(Js,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_GRADIENT")}))})}},"attribs.overlay_bg_gradient")}}(C)]})}),(0,s.BX)(ru.Z,{header:{title:"Close Button"},children:[(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.close_btn_position",defaultValue:"inside",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(Ls,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_POSITION"),options:(0,ln.qb)(g)}))})}}),"custom"===r.watch("attribs.close_btn_position")&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.close_btn_position_x",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(di.Z,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.close_btn_position_y",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(di.Z,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.close_btn_event_type",defaultValue:"normal",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(Ls,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_STATE"),options:(0,ln.qb)(md)}))})}}),"normal"===r.watch("attribs.close_btn_event_type")&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.close_btn_color",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(He,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_COLOR"),transparency:!0}))})}},"attribs.close_btn_color"),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.close_btn_bg_color",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(He,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.close_btn_color_hover",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(He,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_COLOR"),transparency:!0}))})}},"attribs.close_btn_color_hover"),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.close_btn_bg_color_hover",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(He,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_BG_COLOR"),transparency:!0}))})}},"attribs.close_btn_bg_color_hover")]}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.close_btn_padding",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(bs,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_PADDING")}))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.close_btn_icon",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(vd,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.close_btn_text",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(rt.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_TEXT")}))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.close_btn_border_radius",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(di.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_BORDER_RADIUS"),max:2e3}))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.close_btn_border",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(cs,_d(_d({},e),{},{noToggle:!0}))})}})]})]}),"advanced"===i&&(0,s.tZ)("div",{css:Sd.fieldsWrapper,children:(0,s.BX)(ru.Z,{children:[(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.auto_close",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(rn.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_AUTO_CLOSE"),isInlineLabel:!0}))})}}),1===r.watch("attribs.auto_close")&&(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.auto_close_after",defaultValue:1,render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(di.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_AUTO_CLOSE_DELAY")}))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.close_on_esc",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(rn.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_ON_ESC_KEY"),isInlineLabel:!0}))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.disable_page_scrolling",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(rn.Z,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_DISABLE_PAGE_SCROLLING"),isInlineLabel:!0}))})}}),(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.close_on_click",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(rt.Z,_d(_d({},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)(kt.Qr,{control:r.control,name:"attribs.css_class",render:function(e){return(0,s.tZ)("div",{css:Sd.popupCardInnerSection,children:(0,s.tZ)(_l,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CSS_CLASS")}))})}})]})}),"css"===i&&(0,s.tZ)("div",{css:Sd.fieldsWrapper,children:(0,s.tZ)(kt.Qr,{control:r.control,name:"attribs.custom_css",render:function(e){return(0,s.tZ)(_l,_d(_d({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CUSTOM_CSS")}))}})})]})};var Sd={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;")},xd=r(2739);const Pd=r.p+"images/23a8aff50d9e39f0a80e.png";var Ld=r(6795);function Ad(e){return Ad="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},Ad(e)}function Td(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 Dd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Td(Object(r),!0).forEach((function(t){Zd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Td(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ad(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ad(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ad(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Rd=function(e){var t=(0,ut.v)((function(e){return e.appConfig})).access_levels,r=(0,T.I6)(t);return(0,T.Nn)(e)?(0,s.tZ)(tn.Z,Dd(Dd({},e),{},{options:r,isAccessLevelField:!0})):(0,s.tZ)(tt.Z,Dd(Dd({},e),{},{options:r}))};var jd={type:"linear",color:"",color2:"",pos:0,pos2:100,deg:0,radialPos:"center center"},Bd=function(e){var t=kd(e);return(0,s.tZ)("div",{css:Nd.bodyWrapper,children:(0,s.tZ)("div",{css:Nd.body(t)})})},Md=function(e){var t=e.isActive,r=e.type,n=e.activeBackground,o=e.onClick;return(0,s.tZ)("button",{type:"button",css:Nd.button({isActive:t,background:nn.hF[r],activeBackground:n}),onClick:o})},kd=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",h="linear-gradient(".concat(o,"deg, ").concat(u||p," ").concat(a,"%, ").concat(s||f," ").concat(c,"%)"),v="radial-gradient(at ".concat(r,", ").concat(u||p," ").concat(a,"%, ").concat(s||f," ").concat(c,"%)");return"linear"===d?h:v},Nd={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 Gd(e){return Gd="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},Gd(e)}function Wd(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?Wd(Object(r),!0).forEach((function(t){Fd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Gd(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Gd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Gd(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Hd=function(e){var t=e.colorProperty,r=e.onChangeColorProperty,n=(0,A.$)(),o=t.deg,i=void 0===o?jd.deg:o,a=t.pos,l=void 0===a?jd.pos:a,c=t.pos2,u=void 0===c?jd.pos2:c,d=t.color,p=t.color2;return(0,s.BX)("div",{children:[(0,s.tZ)(Bd,Ud({},t)),(0,s.BX)("div",{css:qd.colorPickerWrapper,children:[(0,s.tZ)(ke,{label:n("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_COLOR_1"),color:d,onChange:function(e){return r(Ud(Ud({},t),{},{color:e}))},onClose:function(e){return r(Ud(Ud({},t),{},{color:e}))},hasAlphaField:!1}),(0,s.tZ)(ke,{label:n("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_COLOR_2"),color:p,onChange:function(e){return r(Ud(Ud({},t),{},{color2:e}))},onClose:function(e){return r(Ud(Ud({},t),{},{color2:e}))},hasAlphaField:!1})]}),(0,s.BX)("div",{css:qd.linearProperty,children:[(0,s.tZ)($u.Z,{label:n("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_START"),isInlineLabel:!0,value:l.toString(),onChange:function(e){return r(Ud(Ud({},t),{},{pos:(0,ln.He)(e)}))},inputContent:"%"}),(0,s.tZ)($u.Z,{label:n("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_END"),isInlineLabel:!0,value:u.toString(),onChange:function(e){return r(Ud(Ud({},t),{},{pos2:(0,ln.He)(e)}))},inputContent:"%"}),(0,s.tZ)($u.Z,{label:n("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_ANGLE"),isInlineLabel:!0,value:i.toString(),onChange:function(e){return r(Ud(Ud({},t),{},{deg:(0,ln.He)(e)}))},inputContent:"deg"})]})]})};var qd={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 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)}function zd(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 Xd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zd(Object(r),!0).forEach((function(t){$d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zd(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"!==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}const Kd=function(e){var t,r=e.colorProperty,n=e.onChangeColorProperty,o=(0,A.$)(),i=r.pos,a=void 0===i?jd.pos:i,l=r.pos2,c=void 0===l?jd.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)(Bd,Xd({},r)),(0,s.BX)("div",{css:Yd.colorPickerWrapper,children:[(0,s.tZ)(ke,{label:o("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_COLOR_1"),color:u,onChange:function(e){return n(Xd(Xd({},r),{},{color:e}))},onClose:function(e){return n(Xd(Xd({},r),{},{color:e}))},hasAlphaField:!1}),(0,s.tZ)(ke,{label:o("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_COLOR_2"),color:d,onChange:function(e){return n(Xd(Xd({},r),{},{color2:e}))},onClose:function(e){return n(Xd(Xd({},r),{},{color2:e}))},hasAlphaField:!1})]}),(0,s.BX)("div",{css:Yd.linearProperty,children:[(0,s.tZ)($u.Z,{label:o("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_START"),isInlineLabel:!0,value:a.toString(),onChange:function(e){return n(Xd(Xd({},r),{},{pos:(0,ln.He)(e)}))},inputContent:"%"}),(0,s.tZ)($u.Z,{label:o("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_END"),isInlineLabel:!0,value:c.toString(),onChange:function(e){return n(Xd(Xd({},r),{},{pos2:(0,ln.He)(e)}))},inputContent:"%"}),(0,s.tZ)(ku.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(Xd(Xd({},r),{},{radialPos:e.value}))},clearOption:function(){return n(Xd(Xd({},r),{},{radialPos:"center center"}))},isSearchable:!0})]})]})};var Yd={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 Qd(e){return Qd="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},Qd(e)}function Jd(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 ep(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jd(Object(r),!0).forEach((function(t){tp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Qd(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Qd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Qd(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rp=function(e){var t=e.colorProperty,r=e.onChangeColorProperty,n=e.inputColor,o=e.setInputColor,i=e.handleInputColor;return(0,c.useEffect)((function(){o(t.color)}),[t.color]),(0,s.BX)("div",{css:np.wrapper,children:[(0,s.tZ)(we.Jg,{color:(0,T.K6)(t.color).validColor.toRgb(),onChange:function(e){var n=new se.C(e),i=(1===e.a?n.toHexString():n.toRgbString()).toUpperCase();o(i),r(ep(ep({},t),{},{color:i}))}}),(0,s.tZ)("input",{type:"text",css:np.input,value:n,placeholder:"#000000",onChange:function(e){return i(e.target.value)}})]})};var np={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 op(e){return op="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},op(e)}function ip(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 ap(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ip(Object(r),!0).forEach((function(t){lp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ip(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==op(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==op(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===op(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cp(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 up(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)?up(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 up(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 sp=function(e){var t=e.colorProperty,r=e.onChangeColorProperty,n=e.isOpen,o=e.triggerRef,i=e.closeColorPicker,a=(0,de.l)({isOpen:n,triggerRef:o,gap:20,arrow:"right"}),l=a.position,u=a.popoverRef,d=(0,A.$)(),p=cp((0,c.useState)("color"),2),f=p[0],h=p[1],v=cp((0,c.useState)(t.color),2),b=v[0],y=v[1],m=function(e){y(e);var n=(0,T.K6)(e),o=n.validColor,i=n.color,a=n.isCssVariable;(o.isValid||a)&&r(ap(ap({},t),{},{color:i}))};return(0,s.tZ)(de.h,{isOpen:n,onClickOutside:function(){i()},children:(0,s.BX)("div",{css:[dp.container,{position:"absolute",left:l.left,top:l.top},";label:AdvancedColorPicker;"],ref:u,children:[(0,s.BX)("div",{css:dp.header,children:["solid"===t.type&&(0,s.BX)("div",{css:dp.tabContainer,children:[(0,s.tZ)("span",{css:dp.tabItem("color"===f),onClick:function(){h("color")},children:d("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_TITLE")}),(0,s.tZ)("span",{css:dp.tabItem("library"===f),onClick:function(){h("library")},children:d("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_TITLE_LIBRARY")})]}),"solid"!==t.type&&(0,s.tZ)("span",{css:dp.tabItem(!1),children:d("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_TITLE")}),(0,s.tZ)("button",{type:"button",css:q.iZ.resetButton,onClick:i,children:(0,s.tZ)(I.Z,{name:"cross"})})]}),(0,s.BX)("div",{css:dp.content,children:["library"===f&&(0,s.tZ)(Oe,{onColorChange:m,globalColorWrapperCss:dp.libraryWrapper,colorListCss:dp.colorListWrapper,selectedColor:t.color}),"library"!==f&&(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:dp.nav,children:[(0,s.tZ)(Md,{type:"solid",isActive:"solid"===t.type,activeBackground:t.color,onClick:function(){return r(ap(ap({},t),{},{type:"solid"}))}}),(0,s.tZ)(Md,{type:"linear",isActive:"linear"===t.type,activeBackground:kd(t),onClick:function(){return r(ap(ap({},t),{},{type:"linear"}))}}),(0,s.tZ)(Md,{type:"radial",isActive:"radial"===t.type,activeBackground:kd(t),onClick:function(){return r(ap(ap({},t),{},{type:"radial"}))}})]}),"solid"===t.type&&(0,s.tZ)(rp,{colorProperty:t,onChangeColorProperty:r,inputColor:b,setInputColor:y,handleInputColor:m}),"linear"===t.type&&(0,s.tZ)(Hd,{colorProperty:t,onChangeColorProperty:r}),"radial"===t.type&&(0,s.tZ)(Kd,{colorProperty:t,onChangeColorProperty:r})]})]})]})})};var dp={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;"),tabContainer:(0,i.iv)("display:flex;gap:",n.W0[4],";;label:tabContainer;"),tabItem:function(e){return(0,i.iv)("background-color:",e?n.qo.background.neutral:n.qo.background.white,";border-radius:",n.E0[4],";padding:",n.W0[4]," ",n.W0[8],";cursor:pointer;;label:tabItem;")},libraryWrapper:{name:"1p52q7o-libraryWrapper",styles:"min-height:364px;label:libraryWrapper;"},colorListWrapper:{name:"12zqoyo-colorListWrapper",styles:"max-height:329px;label:colorListWrapper;"}},pp=(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:vp.wrapper,children:[(0,s.tZ)("button",{type:"button",css:vp.colorWrapper,onClick:o,disabled:i,children:n?(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:vp.colorSwatch(n)}),c&&(0,s.tZ)("span",{role:"button",tabIndex:0,css:vp.clearButton,onClick:function(e){e.stopPropagation(),a()},onKeyDown:T.ZT,children:(0,s.tZ)(I.Z,{name:"crossCircled"})})]}):(0,s.tZ)(fp,{})}),(0,s.tZ)("span",{children:r})]})})),fp=function(){return(0,s.tZ)("div",{css:vp.emptyColor})};const hp=pp;var vp={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 bp(e){return bp="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},bp(e)}function yp(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 mp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(r),!0).forEach((function(t){gp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==bp(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==bp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===bp(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){(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 Op=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,h=e.helpText,v=(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 Ep(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)?Ep(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=v[0],y=v[1],m=(0,c.useRef)(null),g=(0,A.$)();return(0,s.tZ)(re.Z,{field:n,fieldState:o,disabled:a,loading:l,label:i,responsive:u,responsiveOrientation:d,isInlineLabel:f,helpText:h,children:function(){var e,t=null!==(e=n.value)&&void 0!==e?e:jd,r=t.color,o=kd(t);return(0,s.BX)(s.HY,{children:["solid"===t.type?(0,s.tZ)(Ae,{ref:m,color:r,onChangeColor:function(e){return n.onChange(mp(mp({},t),{},{color:e}))},disabled:a,onClick:function(){return y(!0)}}):(0,s.tZ)(hp,{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(mp(mp({},t),{},{color:"",color2:""}))}}),(0,s.tZ)(sp,{colorProperty:t,onChangeColorProperty:n.onChange,isOpen:b,triggerRef:m,closeColorPicker:function(){return y(!1)}})]})}})},_p=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)(re.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,ln.o5)(n.value,o);return(0,s.tZ)(s.HY,{children:(0,s.tZ)($i,{variant:"secondary",activeTab:c,tabList:r,onChange:function(e){var t=(0,ln.xU)({previous:n.value,value:e,responsive:a,device:o});n.onChange(t),l&&l(t)},disabled:i})})}})},wp=r.p+"images/1924b8a0608a4b4c1b70.svg",Cp=function(){var e=(0,A.$)(),t=(0,so.Z)(Bn.F.PageEditor).id,r=zo().savePageContent;return(0,s.BX)("div",{css:Ip.wrapper,children:[(0,s.tZ)("img",{src:wp,width:135,height:152,alt:"Illustration"}),(0,s.tZ)("p",{css:Ip.text,children:e("COM_SPPAGEBUILDER_EDITOR_ADVANCED_SETTINGS_MESSAGE")}),(0,s.BX)(ho.rU,{to:"".concat(pu.Z.APPLICATION_ROOT,"index.php?option=com_sppagebuilder&view=form&layout=edit&tmpl=component&id=").concat(t),css:Ip.permalinkButton,target:"_blank",rel:"noreferrer nofollow",onClick:function(){r()},children:[(0,s.tZ)(I.Z,{name:"parmaLink",width:16,height:16}),(0,s.tZ)("span",{children:e("COM_SPPAGEBUILDER_EDITOR_ADVANCED_SETTINGS_FRONTEND_BUTTON")})]})]})};var Ip={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 Sp(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 xp=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,h=e.responsive,v=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 Sp(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)?Sp(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,ln.o5)(o.value,nn.zu);return(0,c.useEffect)((function(){if((0,T.$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)(re.Z,{label:n,field:o,fieldState:i,disabled:a,loading:l,helpText:u,responsive:h,responsiveOrientation:v,children:function(e){var t=e.attributes,r=e.data,n=r.device,i=r.responsive,a=(0,ln.o5)(o.value,n);return(0,s.tZ)(s.HY,{children:"slider"===y?(0,s.tZ)($u.Z,{value:a,onChange:function(e){var t,r=(0,ln.xU)({previous:o.value,value:null!==(t=(0,ln.BB)(e))&&void 0!==t?t:"",responsive:i,device:n});o.onChange(r),d&&d(r)},onToggle:function(){var e=(0,T.$K)(a)&&a.length>0?"".concat(a,"px ").concat(a,"px ").concat(a,"px ").concat(a,"px"):" ".repeat(4),t=(0,ln.xU)({previous:o.value,value:e,responsive:i,device:n});o.onChange(t),d&&d(t),m("box")},min:null!=p?p:nn.a7.min,max:null!=f?f:nn.a7.max,disabled:t.disabled}):(0,s.tZ)(Ju,{value:a,onChange:function(e){var t=(0,ln.xU)({previous:o.value,value:e,responsive:i,device:n});o.onChange(t),d&&d(t)},onToggle:function(){var e=(0,T.$K)(a)&&a.trim().length>0?parseInt(a.split(/\s+/)[0]):"";o.onChange(e.toString()),d&&d(e.toString()),m("slider")}})})}})},Pp=r.p+"images/dbd27c27842b486c246a.svg",Lp=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,A.$)();return(0,s.tZ)(re.Z,{field:a,fieldState:l,children:function(){return n?(0,s.tZ)(po.Z,{emptyStateImage:Pp,imageAltText:c("COM_SPPAGEBUILDER_EDITOR_GROUP_ATTENTION_IMAGE_ALT"),title:t,content:r,orientation:"vertical",wrapperCss:Tp.emptyStateWrapperCss}):(0,s.BX)("div",{css:Tp.alert(i),children:[(0,s.tZ)(I.Z,{name:"exclamationTriangle"}),(0,s.tZ)("span",{children:r})]})}})};var Ap={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}},Tp={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:",Ap[e].background,";color:",Ap[e].text,";border-radius:",n.E0[6],";display:flex;flex-direction:column;gap:",n.W0[8],";svg{color:",Ap[e].text,";width:30px;height:30px;align-self:center;};label:alert;")}};const Dp=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)(re.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,ln.o5)(n.value,o);return(0,s.tZ)($i,{variant:"secondary",activeTab:a,tabList:r,onChange:function(e){var t=(0,ln.xU)({previous:n.value,value:e,responsive:i,device:o});n.onChange(t),l&&l(t)}})}})};function Zp(e){return Zp="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},Zp(e)}var Rp=["context"],jp=["context"];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 Mp(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){kp(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 kp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Zp(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Zp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Zp(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Np(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 Gp=function(e){var t=e.context,r=void 0===t?"com_content":t,n=(0,ut.v)((function(e){return e.appConfig})),o="com_easystore"===r?n.easystore_categories:n.article_categories,i=(0,T.I6)(o);if((0,T.Nn)(e)){e.context;var a=Np(e,Rp);return(0,s.tZ)(tn.Z,Mp(Mp({},a),{},{options:i,hasAllCategory:"com_easystore"!==r}))}e.context;var l=Np(e,jp);return(0,s.tZ)(tt.Z,Mp(Mp({},l),{},{options:i}))};var Wp=r(4999);function Up(e){return Up="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},Up(e)}var Fp=["fields"];function Hp(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 qp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hp(Object(r),!0).forEach((function(t){Vp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Up(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Up(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Up(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zp(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 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}}(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 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 $p=function e(t){var r,n,o,i=t.item,a=t.isReference,l=void 0!==a&&a,u=t.defaultOpen,d=void 0!==u&&u,p=t.isSelected,f=void 0!==p&&p,h=t.onSelect,v=t.value,b=zp((0,c.useState)(d),2),y=b[0],m=b[1];return(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:Jp.item(f),children:(0,s.BX)("button",{type:"button",css:Jp.itemContent(i.level,y),onClick:function(){m(!y),["reference","multi-reference"].includes(i.type)||h(i)},children:[l&&(0,s.tZ)(I.Z,{name:"chevronRight",width:12,height:12,"data-chevron":!0}),(n=i.type,o=M(n),(0,s.tZ)(I.Z,{name:o,width:16,height:16})),(0,s.tZ)("span",{children:i.name})]})}),l&&y&&(null===(r=i.fields)||void 0===r?void 0:r.map((function(t,r){return(0,s.tZ)(e,{item:t,isReference:["reference","multi-reference"].includes(t.type),defaultOpen:!0,onSelect:h,isSelected:v.path===t.path,value:v},r)})))]})},Kp=[{value:"",label:"Select date time format"},{value:"d M, Y H:i A",label:(0,Qo.Z)(new Date,"d MMM, yyyy h:mm aa")},{value:"d M, Y H:i",label:(0,Qo.Z)(new Date,"d MMM, yyyy h:mm")},{value:"d M, Y",label:(0,Qo.Z)(new Date,"d MMM, yyyy")},{value:"d/m/Y",label:(0,Qo.Z)(new Date,"dd/MM/yyyy")},{value:"d-m-Y",label:(0,Qo.Z)(new Date,"dd-MM-yyyy")},{value:"Y-m-d",label:(0,Qo.Z)(new Date,"yyyy-MM-dd")},{value:"Y-m-d H:i:s",label:(0,Qo.Z)(new Date,"yyyy-MM-dd HH:mm:ss")},{value:"Y-m-d H:i",label:(0,Qo.Z)(new Date,"yyyy-MM-dd HH:mm")},{value:"F j, Y",label:(0,Qo.Z)(new Date,"MMMM d, yyyy")},{value:"l, F j, Y",label:(0,Qo.Z)(new Date,"EEEE, MMMM d, yyyy")},{value:"M d, Y",label:(0,Qo.Z)(new Date,"MMM d, yyyy")},{value:"d M",label:(0,Qo.Z)(new Date,"d MMM")},{value:"H:i",label:(0,Qo.Z)(new Date,"HH:mm")},{value:"h:i A",label:(0,Qo.Z)(new Date,"h:mm aa")},{value:"d-m-Y H:i:s P",label:(0,Qo.Z)(new Date,"dd-MM-yyyy HH:mm:ss zzz")},{value:"D, d M Y H:i:s",label:(0,Qo.Z)(new Date,"EEE, d MMM yyyy HH:mm:ss")},{value:"m/d/y",label:(0,Qo.Z)(new Date,"M/d/yy")},{value:"custom",label:"Custom"}];const Yp=function(e){var t,r,n=e.field,o=e.fieldState,i=e.label,a=e.isInlineLabel,l=e.disabled,u=e.readOnly,d=e.placeholder,p=(e.onChange,e.responsive),f=e.responsiveOrientation,h=e.helpText,v=e.allowedTypes,b=e.collectionId,y=(0,on.F)((function(e){return e.payload})),m=y.sectionIndex,g=y.columnIndex,E=y.addon,O=zp((0,c.useState)(!1),2),_=O[0],C=O[1],S=(0,$o.o)((function(e){return e.page})),x=(0,c.useMemo)((function(){var e;if(!((0,T.$K)(m)&&(0,T.$K)(g)&&(0,T.$K)(E)&&(0,T.$K)(S)))return null;var t=S[m].columns[g].addons,r=(0,Wp.Kt)(t,E);return null==r||null===(e=r.settings)||void 0===e?void 0:e.source}),[m,g,E,S,b]),P=(0,Zn.NZ)({id:(0,T.$K)(x)?Number(x):null!=b?b:0,allowed_types:v}),L=(0,de.l)({isOpen:_,arrow:"right",gap:20}),A=L.position,D=L.popoverRef,Z=L.triggerRef,R=null!==(t=null===(r=n.value)||void 0===r?void 0:r.type)&&void 0!==t?t:null;if(P.isFetching)return(0,s.tZ)("div",{css:Jp.wrapper,children:(0,s.tZ)(w.ZP,{size:16})});if(!(0,T.$K)(P.data))return(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:Jp.wrapper,children:(0,s.BX)("button",{type:"button",ref:Z,onClick:function(){return C(!0)},css:Jp.trigger,children:[(0,s.BX)("div",{"data-left":!0,children:[(0,s.tZ)(I.Z,{name:"plusCircle",width:16,height:16}),(0,s.tZ)("span",{children:d})]}),(0,s.tZ)(I.Z,{name:"settings",width:20,height:20})]})}),(0,s.tZ)("p",{children:"Please select a source for the parent collection"})]});var j=P.data;return(0,s.tZ)(re.Z,{field:n,fieldState:o,label:i,isInlineLabel:a,readOnly:u,responsive:p,responsiveOrientation:f,helpText:h,disabled:l,children:function(e){var t,r,o,i,a,l,c,u,p,f,h,v,b,y,m,g,E,O=e.data.device,w=(0,ln.oo)(n.value,O);return(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:Jp.wrapper,children:[(0,s.BX)("button",{type:"button",ref:Z,onClick:function(){return C(!0)},css:Jp.trigger,children:[(0,s.BX)("div",{"data-left":!0,children:[(0,s.tZ)(I.Z,{name:M(null==w?void 0:w.type),width:16,height:16}),(0,s.tZ)("span",{children:null!==(t=null==w?void 0:w.name)&&void 0!==t?t:d})]}),(0,s.tZ)(I.Z,{name:"settings",width:20,height:20})]}),"date-time"===R&&(0,s.BX)("div",{css:Jp.inputWrapper,children:[(0,s.BX)("div",{css:Jp.formGroup,children:[(0,s.tZ)("label",{htmlFor:"",children:"Date Time Format"}),(0,s.tZ)("select",{value:null!==(r=null===(o=n.value)||void 0===o?void 0:o.date_format)&&void 0!==r?r:"",onChange:function(e){n.onChange(qp(qp({},n.value),{},{date_format:e.target.value}))},children:Kp.map((function(e){return(0,s.tZ)("option",{value:e.value,children:e.label},e.value)}))})]}),"custom"===(null===(i=n.value)||void 0===i?void 0:i.date_format)&&(0,s.BX)("div",{css:Jp.formGroup,children:[(0,s.tZ)("label",{htmlFor:"",children:"Custom Format"}),(0,s.tZ)("input",{type:"text",value:null!==(a=null===(l=n.value)||void 0===l?void 0:l.date_format_custom)&&void 0!==a?a:"",placeholder:"e.g. d M, Y H:i A",onChange:function(e){return n.onChange(qp(qp({},n.value),{},{date_format_custom:e.target.value}))}})]})]}),"link"===R&&(0,s.BX)("div",{css:Jp.inputWrapper,children:[(0,s.BX)("div",{css:Jp.formGroup,children:[(0,s.tZ)("label",{htmlFor:"",children:"Link Text"}),(0,s.tZ)("input",{type:"text",value:null!==(c=null===(u=n.value)||void 0===u||null===(p=u.link)||void 0===p?void 0:p.text)&&void 0!==c?c:"",onChange:function(e){return n.onChange(qp(qp({},n.value),{},{link:qp(qp({},n.value.link),{},{text:e.target.value})}))},placeholder:"Enter the link text"})]}),(0,s.BX)("div",{css:Jp.formGroup,children:[(0,s.tZ)("label",{htmlFor:"",children:"Link Options"}),(0,s.BX)("div",{css:Jp.checkboxGroup,children:[(0,s.tZ)(te.Z,{label:"Open in new tab",checked:"_blank"===(null===(f=n.value)||void 0===f||null===(h=f.link)||void 0===h?void 0:h.target),onChange:function(e){var t,r,o;n.onChange(qp(qp({},n.value),{},{link:qp(qp({text:null!==(t=null===(r=n.value)||void 0===r||null===(o=r.link)||void 0===o?void 0:o.text)&&void 0!==t?t:""},n.value.link),{},{target:e?"_blank":"_self"})}))}}),(0,s.tZ)(te.Z,{label:"No Follow",checked:null===(v=n.value)||void 0===v||null===(b=v.link)||void 0===b?void 0:b.nofollow,onChange:function(e){var t,r,o;n.onChange(qp(qp({},n.value),{},{link:qp(qp({text:null!==(t=null===(r=n.value)||void 0===r||null===(o=r.link)||void 0===o?void 0:o.text)&&void 0!==t?t:""},n.value.link),{},{nofollow:e})}))}}),(0,s.tZ)(te.Z,{label:"No Referrer",checked:null===(y=n.value)||void 0===y||null===(m=y.link)||void 0===m?void 0:m.noreferrer,onChange:function(e){var t,r,o;n.onChange(qp(qp({},n.value),{},{link:qp(qp({text:null!==(t=null===(r=n.value)||void 0===r||null===(o=r.link)||void 0===o?void 0:o.text)&&void 0!==t?t:""},n.value.link),{},{noreferrer:e})}))}}),(0,s.tZ)(te.Z,{label:"No Opener",checked:null===(g=n.value)||void 0===g||null===(E=g.link)||void 0===E?void 0:E.noopener,onChange:function(e){var t,r,o;n.onChange(qp(qp({},n.value),{},{link:qp(qp({text:null!==(t=null===(r=n.value)||void 0===r||null===(o=r.link)||void 0===o?void 0:o.text)&&void 0!==t?t:""},n.value.link),{},{noopener:e})}))}})]})]})]})]}),(0,s.tZ)(de.h,{isOpen:_,onClickOutside:function(){return C(!1)},children:(0,s.tZ)("div",{css:[Jp.list,{left:A.left,top:A.top,maxWidth:180},";label:DynamicContentAttributeField;"],ref:D,children:(0,s.tZ)($p,{item:{id:0,name:j.name,fields:j.fields,type:j.type},isReference:!0,defaultOpen:!0,onSelect:function(e){e.fields;var t=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,Fp);n.onChange(t),C(!1)},isSelected:!1,value:null!=w?w:{}})})})]})}})};var Qp={name:"gk42g-itemContent",styles:"[data-chevron]{transform:rotate(90deg);};label:itemContent;"},Jp={wrapper:(0,i.iv)("position:relative;display:flex;flex-direction:column;gap:",n.W0[16],";;label:wrapper;"),inputWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";margin-bottom:",n.W0[8],";;label:inputWrapper;"),formGroup:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[4],";label{",o.c.caption(),";color:",n.qo.text.default,";}select,input{",o.c.body(),";color:",n.qo.text.default,";border-radius:",n.E0[4],";border:1px solid ",n.qo.stroke.neutral,";padding:",n.W0[4]," ",n.W0[8],";width:100%;}select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:right ",n.W0[8]," center;padding-right:",n.W0[32],";};label:formGroup;"),checkboxGroup:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[8],";margin-top:",n.W0[8],";;label:checkboxGroup;"),trigger:(0,i.iv)(q.iZ.resetButton,";",o.c.body(),";color:",n.qo.text.default,";border-radius:",n.E0[4],";border:1px solid ",n.qo.stroke.neutral,";padding:",n.W0[4]," ",n.W0[8],";width:100%;display:inline-flex;align-items:center;justify-content:space-between;gap:",n.W0[8],";& [data-left]{display:flex;align-items:center;gap:",n.W0[8],";};label:trigger;"),list:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[2],";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],";max-height:550px;",q.iZ.overflowYAuto,";padding-block:",n.W0[4],";;label:list;"),item:function(e){return(0,i.iv)(o.c.caption(),";color:",n.qo.text.default,";cursor:pointer;transition:background-color 0.3s ease-in-out;padding-left:",n.W0[12],";position:relative;",e&&(0,i.iv)("background-color:",n.qo.background.hover,";&::before{content:'';position:absolute;left:0;top:0;width:3px;height:100%;border-radius:0 ",n.E0[6]," ",n.E0[6]," 0;background-color:",n.qo.base.primary,";};label:item;")," &:first-of-type{position:sticky;top:0;background-color:",n.qo.background.white,";}&:hover{&:not(:first-of-type){background-color:",n.qo.background.hover,";}};label:item;")},itemContent:function(e,t){return(0,i.iv)(q.iZ.resetButton,";display:flex;align-items:center;gap:",n.W0[8],";padding-left:",20*(e-1),"px;width:100%;height:32px;svg{color:",n.qo.icon.default,";}[data-chevron]{transition:transform 0.3s ease-in-out;}",t&&Qp,";;label:itemContent;")}};function ef(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 tf(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)?tf(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 tf(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 rf=function(e){var t,r={},n=ef((0,T.Zt)(e));try{for(n.s();!(t=n.n()).done;){var o=e[t.value];if((0,T.$K)(o)){var i=o.fields;if((0,T.$K)(i)){var a,l=ef((0,T.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},nf=function(e){var t=e.split(".");return["sp_accordion_item","sp_tab_item"].includes(t[t.length-1])},of=function(e,t,r){return(0,T.$K)(e.admin_label)&&(0,T.HD)(e.admin_label)&&e.admin_label.length>0?e.admin_label:(0,T.$K)(e.title)&&(0,T.HD)(e.title)&&e.title.length>0?e.title:r("COM_SPPAGEBUILDER_EDITOR_REPEATABLE_ITEM_DEFAULT_TITLE",{index:t+1})},af=function(e,t){return(0,T.$K)(e)&&((0,T.$K)(e.title)||(0,T.$K)(e.admin_label))&&(e.admin_label=t("COM_SPPAGEBUILDER_EDITOR_REPEATABLE_ITEM_DEFAULT_TITLE_COPY",{title:e.title||e.admin_label||""})),e};function lf(e){return lf="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},lf(e)}function cf(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 uf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cf(Object(r),!0).forEach((function(t){sf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==lf(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==lf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===lf(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const df=function(e){var t=e.id,r=e.fieldValue,n=e.isDragOverlay,o=e.onEditItem,i=e.onDuplicateItem,a=e.onDeleteItem,l=(0,x.nB)({id:t}),c=l.attributes,u=l.listeners,d=l.setNodeRef,p=l.transform,f=l.transition,h=l.isDragging,v={transform:P.ux.Transform.toString(p),transition:f,opacity:h?.5:1};return(0,s.BX)("div",{css:[pf.repeatableItem({isDragOverlay:n}),v,";label:RepeatableItem;"],ref:d,children:[(0,s.BX)("div",{css:pf.leftWrapper,"data-left-wrapper":!0,children:[(0,s.tZ)("button",uf(uf(uf({type:"button",css:pf.addonDragHandler},c),u),{},{children:(0,s.tZ)(I.Z,{name:"dragger"})})),(0,s.tZ)("span",{title:r,children:r})]}),!n&&(0,s.BX)("div",{css:pf.actionButtonsWrapper,children:[(0,s.tZ)("button",{type:"button",css:pf.actionButton,onClick:o,children:(0,s.tZ)(I.Z,{name:"pencilOnBox"})}),(0,s.tZ)("button",{type:"button",css:pf.actionButton,onClick:i,children:(0,s.tZ)(I.Z,{name:"copy"})}),(0,s.tZ)("button",{type:"button",css:pf.actionButton,onClick:a,children:(0,s.tZ)(I.Z,{name:"trash"})})]})]})};var pf={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 ff(e){return ff="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},ff(e)}function hf(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 vf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hf(Object(r),!0).forEach((function(t){bf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ff(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ff(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ff(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yf(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 mf(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)?mf(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 mf(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 gf=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,A.$)(),f=(0,ot.O)({defaultValues:{items:t}}),h=f.reset,v=f.getValues,b=(0,Kt.d)().showModal,y=yf((0,c.useState)(null),2),m=y[0],g=y[1],E=yf((0,c.useState)(""),2),O=E[0],w=E[1],C=(0,kt.Dq)({control:f.control,name:"items"}),S=f.watch("items"),P=C.fields.map((function(e,t){return vf(vf({index:t},e),S[t])})),L=(0,Dn.Dy)((0,Dn.VT)(Dn.we),(0,Dn.VT)(Dn.Lg,{coordinateGetter:x.is}));return(0,c.useEffect)((function(){h(vf(vf({},v()),{},{items:t}))}),[t,h,v]),(0,c.useEffect)((function(){if(m){var e=P.find((function(e){return e.id===m}));if(e){var t=function(e,t,r){return(0,T.$K)(e.title)&&(0,T.HD)(e.title)&&e.title.length>0?e.title:(0,T.$K)(e.admin_label)&&(0,T.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);w(t)}}}),[m]),(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:Ef.addButtonWrapper,children:(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"plus"}),onClick:function(){C.append(r),a()},children:p("COM_SPPAGEBUILDER_EDITOR_ADD_INNER_ITEM_BUTTON")})}),d&&(0,s.tZ)("div",{css:Ef.addButtonWrapper,children:(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"plus"}),onClick:function(){b({component:Fr,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)(Dn.LB,{sensors:L,collisionDetection:Dn.pE,onDragStart:function(e){g(String(e.active.id))},onDragEnd:function(e){var r=e.active,n=e.over;if(g(null),w(""),null!=n&&n.id&&r.id!==n.id){var o=P.findIndex((function(e){return e.id===r.id})),i=P.findIndex((function(e){return e.id===n.id})),a=(0,x.Rp)(P,o,i);C.replace(a),l((0,x.Rp)(t,o,i))}},children:(0,s.BX)(x.Fo,{items:P,strategy:x.qw,children:[P.map((function(e,t){var r=e.title||e.admin_label||"Item";return(0,s.tZ)(df,{id:e.id,fieldValue:r,onEditItem:function(){return n(t)},onDuplicateItem:function(){C.insert(t+1,vf(vf({},S[t]),{},{admin_label:p("COM_SPPAGEBUILDER_EDITOR_DUPLICATE_TITLE",{title:S[t].title})})),o(t)},onDeleteItem:function(){C.remove(t),i(t)}},e.id)})),(0,s.tZ)(Dn.y9,{children:m&&(0,s.tZ)(df,{id:m,fieldValue:O,onEditItem:T.ZT,onDuplicateItem:T.ZT,onDeleteItem:T.ZT,isDragOverlay:!0})})]})})]})};var Ef={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 Of(e){return Of="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},Of(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 wf(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){Cf(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 Cf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Of(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Of(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Of(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const If=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=(e.collectionId,(0,A.$)()),h=(0,ot.O)({defaultValues:(0,c.useMemo)((function(){return l[u]}),[l,u])}),v=h.watch(),b=(0,Ld.VG)(i.attr,v);return(0,s.tZ)(de.h,{isOpen:t,customZIndex:n.W5.header,children:(0,s.tZ)(kt.RV,wf(wf({},h),{},{children:(0,s.BX)("div",{css:[Sf.popover,{position:"absolute",left:o.left,top:o.top},";label:RepeatablePortal;"],ref:r,children:[(0,s.BX)("div",{css:Sf.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)(I.Z,{name:"cross"})})]}),(0,s.tZ)("div",{css:Sf.fieldsWrapper,children:(0,s.tZ)(sE,{settings:b,form:h,fieldNamePrefix:!1,hasBorder:!0})}),(0,s.tZ)("div",{css:Sf.footer,children:(0,s.tZ)(_.Z,{onClick:h.handleSubmit((function(e){p(e)})),children:f("COM_SPPAGEBUILDER_EDITOR_APPLY")})})]})}))})};var Sf={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;")},xf=r(2238);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 Lf(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 Af(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?Af(Object(r),!0).forEach((function(t){Df(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Af(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){return Zf="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},Zf(e)}function Rf(e){return function(e){if(Array.isArray(e))return Gf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Nf(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 jf(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 Bf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jf(Object(r),!0).forEach((function(t){Mf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Zf(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Zf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Zf(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kf(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)||Nf(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 Nf(e,t){if(e){if("string"==typeof e)return Gf(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)?Gf(e,t):void 0}}function Gf(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 Wf=(0,c.createContext)(""),Uf=function(){return(0,c.useContext)(Wf)};const Ff=function(e){var t,r,n,o=e.fieldName,i=e.field,a=e.parentKey,l=e.bulkImport,u=(0,A.$)(),d=(0,kt.Gc)(),p=kf((0,c.useState)(null),2),f=p[0],h=p[1],v=(0,T.$K)(a)?"".concat(a,".").concat(o):o,b=(0,kt.qo)({control:d.control,name:v})||[],y=(0,kt.qo)({control:d.control,name:"repeatable.field_name"}),m=(0,kt.qo)({control:d.control,name:"repeatable.field_value"}),g=function(){var e=(0,$o.o)((function(e){return e.addNestedRowForDeepAddon})),t=(0,$o.o)((function(e){return e.deleteSection})),r=(0,on.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,xd._)().getSectionById,s=(0,$o.o)((function(e){return e.page})),d=(0,A.$)();return{addRepeatableItem:function(t){(0,T.$K)(c)&&(0,T.$K)(l)&&(0,T.$K)(a)&&e({sectionIndex:c,columnIndex:l,addonIndex:a,item:t})},duplicateRepeatableItem:function(t){var r=[],n=Tf(Tf({},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,T.x0)(),i=(0,xf.Nk)({sectionIndex:n,sectionId:o,sections:s,independent:!1});return r.push.apply(r,function(e){if(Array.isArray(e))return Lf(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 Lf(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)?Lf(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.")}()),Tf(Tf({},e),{},{id:o})}))});return(0,T.$K)(c)&&(0,T.$K)(l)&&(0,T.$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,T.$K)(c)&&r<c&&i(n,Tf(Tf({},o),{},{sectionIndex:c-1})),t({sectionIndex:r})}))}}}(),E=g.addRepeatableItem,O=g.duplicateRepeatableItem,_=g.deleteRepeatableItem,w=null!==(t=null===(r=d.getValues())||void 0===r||null===(n=r.settings)||void 0===n?void 0:n.source)&&void 0!==t?t:"",C=kf((0,c.useState)(!1),2),I=C[0],S=C[1],x=(0,de.l)({isOpen:I,gap:20,arrow:"right"}),P=x.triggerRef,L=x.position,D=x.popoverRef,Z=b.map((function(e,t){var r=e;return(0,T.$K)(r.title)?e:Bf(Bf({},r),{},{admin_label:of(r,t,u)})}));if(!(0,T.$K)(i.attr))return null;var R=function(){h(null),S(!1)},j=function(e,t){var r=(0,Ns.ZP)(Z,(function(r){(0,T.kJ)(r)||(r=[]),r.splice(t,0,e)}));d.setValue(v,r)},B=rf(i.attr);return(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:Hf.wrapper,ref:P,children:(0,s.tZ)(gf,{values:Z,defaultValue:B,onEditItem:function(e){S(!0),h(e)},onDuplicateItem:function(e){if(nf(o)){var t=Z[e],r=O(t);j(af(r,u),e+1)}else if(o.includes(nn.pb.headerItemsKey)){var n=Z[e],i=Bf(Bf({},n),{},{content:n.content.map((function(e){return Bf(Bf({},e),{},{id:(0,T.x0)()})}))});j(af(i,u),e+1)}else if(o.includes("settings.".concat(nn.pb.bodyItemsKey))){var a=Z[e],l=Bf(Bf({},a),{},{table_advanced_item:a.table_advanced_item.map((function(e){return Bf(Bf({},e),{},{content:e.content.map((function(e){return Bf(Bf({},e),{},{id:(0,T.x0)()})}))})}))});j(af(l,u),e+1)}else if(o.includes(nn.pb.bodyItemsKey)){var c=Z[e],s=Bf(Bf({},c),{},{content:c.content.map((function(e){return Bf(Bf({},e),{},{id:(0,T.x0)()})}))});j(af(s,u),e+1)}else{var d=ks()(Z[e]);j(af(d,u),e+1)}},onDeleteItem:function(e){var t=(0,Ns.ZP)(Z,(function(t){t.splice(e,1)}));if(nf(o)){var r=Z[e];_(r)}d.setValue(v,t)},onAppendItem:function(){if(nf(o)){var e={title:B.title,content:[{id:(0,T.x0)(),name:"row",type:"nested_row"}]};j(e,Z.length),E(e)}else if(o.includes(nn.pb.headerItemsKey)){var t={content:[{id:(0,T.x0)(),name:"text_block",settings:{text:""},collapse:!1,visibility:!0}]};j(t,Z.length)}else if(o.includes("settings.".concat(nn.pb.bodyItemsKey))){var r={table_advanced_item:[{content:[{id:(0,T.x0)(),name:"text_block",settings:{text:""},collapse:!1,visibility:!0}]}]};j(r,Z.length)}else if(o.includes(nn.pb.bodyItemsKey)){var n={content:[{id:(0,T.x0)(),name:"text_block",settings:{text:""},collapse:!1,visibility:!0}]};j(n,Z.length)}else{var a;j(rf(null!==(a=i.attr)&&void 0!==a?a:{}),Z.length)}},onRearrangeItems:function(e){d.setValue(v,e)},onBulkInsert:function(e){var t,r=null!==(t=d.getValues().settings.sp_gallery_item)&&void 0!==t?t:[],n=[].concat(Rf(r),Rf(e));d.setValue(v,n)},bulkImport:l})}),(0,T.$K)(f)&&(0,s.tZ)(Wf.Provider,{value:w,children:(0,s.tZ)(If,{isOpen:I,position:L,popoverRef:D,field:{attr:i.attr},title:i.title||"",onApplyChanges:function(e){var t=(0,Ns.ZP)(Z,(function(t){(0,T.$K)(y)&&(0,T.$K)(null==e?void 0:e[y])?t[f]=Bf(Bf({},e),{},Mf({},y,m)):t[f]=e}));d.setValue("repeatable.field_name",o),d.setValue("repeatable.field_value",t),d.setValue(v,t),R()},values:Z,index:f,onClose:R,collectionId:w})})]})};var Hf={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[8],";;label:wrapper;")};function qf(e){return qf="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},qf(e)}var Vf=["css"];function zf(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 Xf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zf(Object(r),!0).forEach((function(t){$f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zf(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"!==qf(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==qf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===qf(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kf(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 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}}(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){(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 Qf={checkbox:{label:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_ADDON_DYNAMIC_CONTENT_COLLECTION_FILTER_CONTROL_TYPE_CHECKBOX"),value:"checkbox"},radio:{label:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_ADDON_DYNAMIC_CONTENT_COLLECTION_FILTER_CONTROL_TYPE_RADIO"),value:"radio"},button:{label:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_ADDON_DYNAMIC_CONTENT_COLLECTION_FILTER_CONTROL_TYPE_BUTTON"),value:"button"},input:{label:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_ADDON_DYNAMIC_CONTENT_COLLECTION_FILTER_CONTROL_TYPE_INPUT"),value:"input"},slider:{label:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_ADDON_DYNAMIC_CONTENT_COLLECTION_FILTER_CONTROL_TYPE_SLIDER"),value:"slider"},switch:{label:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_ADDON_DYNAMIC_CONTENT_COLLECTION_FILTER_CONTROL_TYPE_SWITCH"),value:"switch"},date:{label:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_ADDON_DYNAMIC_CONTENT_COLLECTION_FILTER_CONTROL_TYPE_DATE"),value:"date"},dateRange:{label:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_ADDON_DYNAMIC_CONTENT_COLLECTION_FILTER_CONTROL_TYPE_DATE_RANGE"),value:"date-range"}};const Jf=function(e){var t=e.field,r=e.fieldState,n=e.onChange,o=void 0===n?T.ZT:n,i=e.label,a=e.placeholder,l=void 0===a?"":a,u=e.disabled,d=e.readOnly,p=e.loading,f=e.isSearchable,h=void 0!==f&&f,v=e.isInlineLabel,b=e.hideCaret,y=e.listLabel,m=e.isClearable,g=void 0===m||m,E=e.responsive,O=e.responsiveOrientation,w=e.showArrowUpDown,C=void 0!==w&&w,S=e.helpText,x=e.removeOptionsMinWidth,P=void 0!==x&&x,L=e.defaultValue,D=void 0===L?null:L,Z=e.required,R=void 0!==Z&&Z,j=(0,A.$)(),B=Kf((0,c.useState)([]),2),M=B[0],k=B[1],N=(0,kt.Gc)(),G=(0,kt.qo)({control:N.control,name:"field_name"}),W=Uf(),U=(0,Zn.A0)(Number(W)),F=U.data,H=function(e,t){var r=t.find((function(t){return t.id===e}));return r?r.type:null}(G,null!=F?F:[]);(0,c.useEffect)((function(){if(F&&H){var e=function(e){switch(e){case"text":return[Qf.input,Qf.button,Qf.checkbox,Qf.radio];case"number":return[Qf.checkbox,Qf.radio,Qf.input,Qf.slider];case"option":return[Qf.checkbox,Qf.radio];case"switch":return[Qf.switch];case"date-time":return[Qf.date,Qf.dateRange];default:return[]}}(H);k(e)}}),[U.data,G]);var q=(0,c.useRef)(nn.zu),V=(0,xl.D)(q.current),z=(0,c.useCallback)((function(){var e,r,n=(0,ln.o5)(null!==(e=t.value)&&void 0!==e?e:D,q.current);return(null===(r=M.find((function(e){return String(e.value)===n})))||void 0===r?void 0:r.label)||""}),[M,t.value,D]),X=Kf((0,c.useState)(z),2),$=X[0],K=X[1],Y=Kf((0,c.useState)(""),2),Q=Y[0],J=Y[1],ee=Kf((0,c.useState)(!1),2),te=ee[0],ne=ee[1],oe=(0,c.useMemo)((function(){return h?M.filter((function(e){return e.label.toLowerCase().startsWith(Q.toLowerCase())})):M}),[Q,h,M]),ie=(0,de.l)({isOpen:te,isDropdown:!0}),ae=ie.triggerRef,le=ie.triggerWidth,ce=ie.position,ue=ie.popoverRef;return(0,c.useEffect)((function(){K(z)}),[t.value,z]),(0,c.useEffect)((function(){te&&K(z)}),[z,te]),(0,s.tZ)(re.Z,{fieldState:r,field:t,label:i,disabled:u||0===M.length,readOnly:d,loading:p,isInlineLabel:v,responsive:E,responsiveOrientation:O,helpText:S,required:R,children:function(e){var r=e.attributes,n=e.data,i=r.css,a=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,Vf),c=n.responsive,u=n.device;return q.current=u,(0,s.BX)("div",{css:rh.mainWrapper,children:[(0,s.BX)("div",{css:rh.inputWrapper,ref:ae,children:[(0,s.tZ)("input",Xf(Xf({},a),{},{onClick:function(){return ne((function(e){return!e}))},css:[i,rh.input,";label:DynamicContentFilterControlField;"],autoComplete:"off",readOnly:d||!h,placeholder:l,value:function(){if(V!==u){var e,r=(0,ln.o5)(t.value,u);return(null===(e=M.find((function(e){return String(e.value)===String(r)})))||void 0===e?void 0:e.label)||""}return $}(),onChange:function(e){K(e.target.value),J(e.target.value)}})),!b&&(0,s.tZ)("button",{type:"button",css:rh.caretButton,onClick:function(){ne((function(e){return!e}))},disabled:d||0===M.length,children:C?(0,s.tZ)(I.Z,{name:"arrowUpDown",width:20,height:20,style:rh.arrowUpDown}):(0,s.tZ)(I.Z,{name:"chevronDown",width:20,height:20,style:rh.toggleIcon({isOpen:te})})})]}),(0,s.tZ)(de.h,{isOpen:te,onClickOutside:function(){return ne(!1)},children:(0,s.tZ)("div",{css:[rh.optionsWrapper,{left:ce.left,top:ce.top,maxWidth:le},";label:DynamicContentFilterControlField;"],ref:ue,children:(0,s.BX)("ul",{css:[rh.options(P),";label:DynamicContentFilterControlField;"],children:[!!y&&(0,s.tZ)("li",{css:rh.listLabel,children:y}),null==oe?void 0:oe.map((function(e){return(0,s.tZ)("li",{css:rh.optionItem({isSelected:String(e.value)===(0,ln.o5)(t.value,u)}),children:(0,s.tZ)(_.Z,{variant:"text",buttonCss:rh.label,onClick:function(){t.onChange((0,ln.xU)({previous:t.value,value:e.value,responsive:c,device:u})),J(""),o(e),ne(!1)},children:e.label})},String(e.value))})),g&&(0,s.tZ)("div",{css:rh.clearButton({isDisabled:""===$}),children:(0,s.tZ)(_.Z,{variant:"text",disabled:""===$,icon:(0,s.tZ)(I.Z,{name:"recycleAlt"}),onClick:function(){t.onChange(null),K(""),J(""),ne(!1)},children:j("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})})]})}})};var eh={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},th={name:"7k051d-options",styles:"min-width:200px;label:options;"},rh={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&&th,";;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&&eh,";;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;")};function nh(e){return nh="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},nh(e)}function oh(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 ih(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oh(Object(r),!0).forEach((function(t){ah(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ah(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==nh(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==nh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===nh(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lh(){return lh=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},lh.apply(this,arguments)}function ch(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=sh(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 uh(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)||sh(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 sh(e,t){if(e){if("string"==typeof e)return dh(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)?dh(e,t):void 0}}function dh(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 ph=function(e,t){return e?t?(0,Qo.Z)(new Date(e.replace(" ","T")),nn.E_.monthNameDayYearHourMinute):(0,Qo.Z)(new Date(e.replace(" ","T")),nn.E_.monthNameDayYear):""};const fh=function(e){var t=e.label,r=e.field,o=e.fieldState,i=e.disabled,a=e.loading,l=e.placeholder,u=e.helpText,d=e.isClearable,p=void 0===d||d,f=e.showTime,h=void 0===f||f,v=e.required,b=void 0!==v&&v,y=(0,A.$)(),m=uh((0,c.useState)(!1),2),g=m[0],E=m[1],O=uh((0,c.useState)(r.value),2),w=O[0],C=O[1],S=uh((0,c.useState)({hour:"01",minute:"00",second:"00",period:"AM"}),2),x=S[0],P=S[1],L=uh((0,c.useState)(),2),D=L[0],Z=L[1],R=(0,c.useRef)(null),j=(0,de.l)({isOpen:g,isDropdown:!0}),B=j.triggerRef,M=j.position,k=j.popoverRef,N=function(e){var t=e.date,n=e.time,o=e.action;if("date"===o&&t){var i=(0,Qo.Z)(t,nn.E_.altDateFormat),a=(0,T.uf)(x),l="".concat(i," ").concat(a);C(l),r.onChange(l)}if("time"===o&&n){var c,u=null!==(c=null==D?void 0:D.toISOString().split("T")[0])&&void 0!==c?c:(new Date).toISOString().split("T")[0],s="".concat(u," ").concat((0,T.uf)(n));C(s),r.onChange(s)}},G=function(e){var t=e.time,r=e.action,n=e.event;P(t),N({time:t,action:r}),W(n)},W=function(e){var t=null==e?void 0:e.target,r=null==t?void 0:t.parentNode;r&&t&&(r.scrollTop=t.offsetTop-16)},U=function(e){e&&(Z(e),N({date:e,action:"date"}))},F="\n .rdp-day.rdp-selected {\n background-color: ".concat(n.qo.base.primary,";\n color: ").concat(n.qo.base.white,";\n border-radius: ").concat(n.E0[14],";\n }\n ");return(0,c.useEffect)((function(){var e;r.value&&(C(r.value),Z((e=r.value.split(" ")[0],new Date(e))),h&&P(function(e){return(0,T.kl)(e.split(" ")[1])}(r.value)))}),[r.value]),(0,c.useLayoutEffect)((function(){setTimeout((function(){if(g&&h&&R.current){var e,t=ch(R.current.querySelectorAll("ul"));try{for(t.s();!(e=t.n()).done;){var r,n=e.value,o=ch(n.querySelectorAll("li"));try{for(o.s();!(r=o.n()).done;){var i=r.value;"true"===(null==i?void 0:i.getAttribute("data-sppb-isselected"))&&(n.scrollTop=i.offsetTop-16)}}catch(e){o.e(e)}finally{o.f()}n.style.scrollBehavior="smooth"}}catch(e){t.e(e)}finally{t.f()}}}),160)}),[g,h,R.current]),(0,s.tZ)(re.Z,{label:t,field:r,fieldState:o,disabled:i,loading:a,placeholder:l,helpText:u,required:b,children:function(e){var t=e.attributes,o=lh({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(t),t));return(0,s.BX)("div",{children:[(0,s.BX)("div",{css:vh.wrapper,ref:B,children:[(0,s.tZ)(Je.Z,ih(ih({},o),{},{inputCss:vh.input,type:"text",onFocus:function(){return E(!0)},value:ph(w,h),onChange:T.ZT})),(0,s.tZ)("div",{css:vh.icon,children:(0,s.tZ)(I.Z,{name:"collectionDateTimeField"})}),p&&r.value&&(0,s.tZ)(_.Z,{variant:"text",buttonCss:vh.clearButton,onClick:function(){C(""),r.onChange("")},children:(0,s.tZ)(I.Z,{name:"times"})})]}),(0,s.tZ)(de.h,{isOpen:g,onClickOutside:function(){return E(!1)},children:(0,s.BX)("div",{css:[vh.pickerWrapper(g,h),{left:M.left,top:M.top},";label:DateTimeField;"],ref:k,children:[(0,s.tZ)("div",{css:vh.backdrop,onClick:function(){return E(!1)},role:"presentation"}),(0,s.tZ)("style",{children:F}),(0,s.tZ)(Jo._W,{captionLayout:"dropdown",mode:"single",defaultMonth:D,selected:D,onSelect:U,endMonth:new Date((new Date).getFullYear()+10,11),showOutsideDays:!0,styles:{root:{paddingTop:"".concat(n.W0[8])}},style:ah({},"--rdp-selected-border","none")}),h&&(0,s.BX)("div",{css:vh.timeWrapper,ref:R,children:[(0,s.tZ)("ul",{css:vh.timeColumn,children:["12","01","02","03","04","05","06","07","08","09","10","11"].map((function(e){return(0,s.tZ)("li",{"aria-label":"".concat(e," hours"),"data-sppb-isselected":x.hour===e,css:vh.timeColumnItem({isSelected:x.hour===e}),onClick:function(t){return G({time:ih(ih({},x),{},{hour:e}),action:"time",event:t})},children:e},e)}))}),(0,s.tZ)("ul",{css:vh.timeColumn,children:(0,T.Fw)({start:0,end:60,step:1}).map((function(e){var t=e.toString().padStart(2,"0");return(0,s.tZ)("li",{"aria-label":"".concat(t," minutes"),"data-sppb-isselected":x.minute===t,css:vh.timeColumnItem({isSelected:x.minute===t}),onClick:function(e){G({time:ih(ih({},x),{},{minute:t}),action:"time",event:e})},children:t},e)}))}),(0,s.BX)("ul",{css:vh.timeColumn,children:[(0,s.tZ)("li",{"aria-label":"AM","data-sppb-isselected":"AM"===x.period,css:vh.timeColumnItem({isSelected:"AM"===x.period}),onClick:function(e){return G({time:ih(ih({},x),{},{period:"AM"}),action:"time",event:e})},children:y("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_AM")}),(0,s.tZ)("li",{"aria-label":"PM","data-sppb-isselected":"PM"===x.period,css:vh.timeColumnItem({isSelected:"PM"===x.period}),onClick:function(e){return G({time:ih(ih({},x),{},{period:"PM"}),action:"time",event:e})},children:y("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_PM")})]})]})]})})]})}})};var hh={name:"18vvkfu-pickerWrapper",styles:"visibility:visible;label:pickerWrapper;"},vh={wrapper:{name:"9kz1uc-wrapper",styles:":hover{&>button{opacity:1;}};label:wrapper;"},input:(0,i.iv)("padding-left:",n.W0[40],";caret-color:transparent;;label:input;"),icon:(0,i.iv)("position:absolute;top:50%;padding-left:",n.W0[2],";transform:translateY(-50%);border-right:1px solid ",n.qo.stroke.neutral,";height:100%;display:flex;align-items:center;justify-content:center;width:",n.W0[32],";;label:icon;"),pickerWrapper:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return(0,i.iv)("display:flex;position:absolute;background-color:",n.qo.base.white,";box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";max-height:348px;",t?"padding-left: ".concat(n.W0[24],";"):"padding: ".concat(n.W0[12]," ").concat(n.W0[24],";")," visibility:hidden;",e&&hh," .rdp-caption_label{",o.c.heading6(),";}.rdp-day_outside{color:",n.qo.text.disabled,";};label:pickerWrapper;")},backdrop:(0,i.iv)(q.iZ.centeredFlex,";position:fixed;inset:0;z-index:",n.W5.negative,";;label:backdrop;"),clearButton:(0,i.iv)("position:absolute;top:50%;right:",n.W0[4],";transform:translateY(-50%);width:32px;height:32px;",q.iZ.flexCenter(),";opacity:0;transition:background-color 0.3s ease-in-out,opacity 0.3s ease-in-out;:hover{background-color:",n.qo.background.hover,";};label:clearButton;"),timeWrapper:(0,i.iv)("display:flex;padding-left:",n.W0[12],";;label:timeWrapper;"),timeColumn:(0,i.iv)("display:flex;flex-direction:column;gap:12px;overflow:auto;text-align:center;padding-bottom:",n.W0[56],";padding-top:",n.W0[16],";border-left:1px solid ",n.qo.stroke.neutral,";padding-inline:",n.W0[12],";",q.iZ.hideScrollbar,";;label:timeColumn;"),timeColumnItem:function(e){var t=e.isSelected;return(0,i.iv)(o.c.body("medium"),";padding:",n.W0[8],";border-radius:",n.E0[10],";cursor:pointer;user-select:none;width:32px;height:32px;display:flex;align-items:center;justify-content:center;&:last-of-type{margin-bottom:",n.W0[256],";}",t&&(0,i.iv)("background:",n.qo.base.primary,";color:",n.qo.base.white,";;label:timeColumnItem;")," &:hover{background:",n.qo.base.primary,";color:",n.qo.base.white,";};label:timeColumnItem;")}},bh=function(){var e,t,r=(0,on.F)((function(e){return e.payload})).addon;return null!==(e=Number(null==r||null===(t=r.settings)||void 0===t?void 0:t.source))&&void 0!==e?e:null};function yh(e){return yh="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},yh(e)}function mh(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 gh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mh(Object(r),!0).forEach((function(t){Eh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Eh(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==yh(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==yh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===yh(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Oh=function(e){var t=e.form,r=e.index,n=e.type,o=e.field,i=e.condition,a=e.collectionId,l=(0,A.$)(),u=function(){var e=(0,on.F)((function(e){return e.payload})),t=(0,$o.o)((function(e){return e.page})),r=e.sectionIndex,n=e.columnIndex,o=e.addon,i=(0,c.useMemo)((function(){var e,i;if(!(0,T.$K)(r)||!(0,T.$K)(n)||!(0,T.$K)(o))return null;var a=t[r].columns[n].addons,l=(0,Wp.Kt)(a,o);return null!==(e=Number(null==l||null===(i=l.settings)||void 0===i?void 0:i.source))&&void 0!==e?e:null}),[r,n,o]);return i}(),d=bh(),p=(0,Zn.dE)({ownCollectionId:d,parentCollectionId:(0,T.$K)(a)?a:null!=u?u:0}),f=(0,c.useMemo)((function(){return p.data?p.data.map((function(e){return{label:e.name,value:e.id}})):[]}),[p.data]),h=(0,c.useMemo)((function(){return null!=o&&o.reference_collection_name?o.reference_collection_name.map((function(e){return{label:e.title,value:e.id.toString()}})):[]}),[null==o?void 0:o.reference_collection_name]);if(!n||!i)return null;switch(n){case"self":case"multi-reference":case"reference":return["is-include-parent"].includes(i)?(0,s.tZ)(kt.Qr,{control:t.control,name:"conditions.".concat(r,".variable"),render:function(e){var t,r,n=gh(gh({},e),{},{field:gh(gh({},e.field),{},{value:null!==(t=null===(r=e.field)||void 0===r?void 0:r.value)&&void 0!==t?t:""})});return(0,s.tZ)(tt.Z,gh(gh({},n),{},{options:f,isClearable:!1,label:l("COM_SPPAGEBUILDER_EDITOR_FILTER_VALUE_ASSOCIATION_FIELD"),placeholder:l("COM_SPPAGEBUILDER_EDITOR_FILTER_VALUE_ASSOCIATION_FIELD_PLACEHOLDER")}))}}):["is-associated-with"].includes(i)?(0,s.tZ)(kt.Qr,{control:t.control,name:"conditions.".concat(r,".variable"),render:function(e){return(0,s.tZ)(tt.Z,gh(gh({},e),{},{options:h,isClearable:!1,label:l("COM_SPPAGEBUILDER_EDITOR_FILTER_FIELD_VALUE"),placeholder:l("COM_SPPAGEBUILDER_EDITOR_FILTER_FIELD_VALUE_PLACEHOLDER")}))}}):["equals","not-equals","equals-in-reference","not-equals-in-reference"].includes(i)?(0,s.tZ)(kt.Qr,{control:t.control,name:"conditions.".concat(r,".value"),render:function(e){var t,r,n,i=gh(gh({},e),{},{field:gh(gh({},e.field),{},{value:null!==(t=null===(r=e.field)||void 0===r?void 0:r.value)&&void 0!==t?t:""})});return(0,s.tZ)(tt.Z,gh(gh({},i),{},{options:null!==(n=null==o?void 0:o.reference_items.map((function(e){return{label:e.title,value:e.id}})))&&void 0!==n?n:[],isClearable:!1,label:l("COM_SPPAGEBUILDER_EDITOR_FILTER_FIELD_VALUE"),placeholder:l("COM_SPPAGEBUILDER_EDITOR_FILTER_FIELD_VALUE_PLACEHOLDER")}))}}):(0,s.tZ)(kt.Qr,{control:t.control,name:"conditions.".concat(r,".value"),render:function(e){var t,r,n,i=gh(gh({},e),{},{field:gh(gh({},e.field),{},{value:null!==(t=null===(r=e.field)||void 0===r?void 0:r.value)&&void 0!==t?t:[]})});return(0,s.tZ)(tn.Z,gh(gh({},i),{},{options:null!==(n=null==o?void 0:o.reference_items.map((function(e){return{label:e.title,value:e.id.toString()}})))&&void 0!==n?n:[],isClearable:!1,label:l("COM_SPPAGEBUILDER_EDITOR_FILTER_FIELD_VALUE"),placeholder:l("COM_SPPAGEBUILDER_EDITOR_FILTER_FIELD_VALUE_PLACEHOLDER")}))}});case"option":return(0,s.tZ)(kt.Qr,{control:t.control,name:"conditions.".concat(r,".value"),render:function(e){var t,r,n,i=gh(gh({},e),{},{field:gh(gh({},e.field),{},{value:null!==(t=null===(r=e.field)||void 0===r?void 0:r.value)&&void 0!==t?t:""})});return(0,s.tZ)(tt.Z,gh(gh({},i),{},{options:null!==(n=null==o?void 0:o.option_field_values)&&void 0!==n?n:[],isClearable:!1,label:l("COM_SPPAGEBUILDER_EDITOR_FILTER_FIELD_VALUE"),placeholder:l("COM_SPPAGEBUILDER_EDITOR_FILTER_FIELD_VALUE_PLACEHOLDER")}))}});case"date-time":return(0,s.tZ)(kt.Qr,{control:t.control,name:"conditions.".concat(r,".value"),render:function(e){var t,r,n=gh(gh({},e),{},{field:gh(gh({},e.field),{},{value:String(null!==(t=null===(r=e.field)||void 0===r?void 0:r.value)&&void 0!==t?t:"")})});return(0,s.tZ)(fh,gh(gh({},n),{},{label:l("COM_SPPAGEBUILDER_EDITOR_FILTER_FIELD_VALUE"),placeholder:l("COM_SPPAGEBUILDER_EDITOR_FILTER_ENTER_VALUE_PLACEHOLDER")}))}});default:return(0,s.tZ)(kt.Qr,{control:t.control,name:"conditions.".concat(r,".value"),render:function(e){var t,r,n=gh(gh({},e),{},{field:gh(gh({},e.field),{},{value:String(null!==(t=null===(r=e.field)||void 0===r?void 0:r.value)&&void 0!==t?t:"")})});return(0,s.tZ)(rt.Z,gh(gh({},n),{},{label:l("COM_SPPAGEBUILDER_EDITOR_FILTER_FIELD_VALUE"),placeholder:l("COM_SPPAGEBUILDER_EDITOR_FILTER_ENTER_VALUE_PLACEHOLDER")}))}})}};var _h={"is-set":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_SET"),"is-not-set":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_NOT_SET"),"is-yes":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_YES"),"is-no":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_NO"),equals:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_EQUALS"),contains:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_CONTAINS"),"not-equals":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_NOT_EQUALS"),"not-contains":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_NOT_CONTAINS"),"equals-in-reference":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_EQUALS_IN_REFERENCE"),"not-equals-in-reference":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_NOT_EQUALS_IN_REFERENCE"),"starts-with":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_STARTS_WITH"),"not-starts-with":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_NOT_STARTS_WITH"),"ends-with":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_ENDS_WITH"),"not-ends-with":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_NOT_ENDS_WITH"),"is-greater-than":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_GREATER_THAN"),"is-less-than":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_LESS_THAN"),"is-greater-than-or-equal-to":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_GREATER_THAN_OR_EQUAL_TO"),"is-less-than-or-equal-to":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_LESS_THAN_OR_EQUAL_TO"),"is-include":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_INCLUDE"),"is-not-include":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_NOT_INCLUDE"),"is-include-parent":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_INCLUDE_PARENT"),"is-before":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_BEFORE"),"is-after":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_AFTER"),"is-between-date":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_BETWEEN_DATE"),"is-not-between-date":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_NOT_BETWEEN_DATE"),"is-associated-with":(0,A.O)("COM_SPPAGEBUILDER_EDITOR_CONDITION_IS_ASSOCIATED_WITH")},wh=[{label:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_FILTER_MATCH_ALL_LABEL"),value:"all"},{label:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_FILTER_MATCH_ANY_LABEL"),value:"any"}];function Ch(e){return Ch="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},Ch(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 Sh(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){xh(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 xh(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ch(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ch(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ch(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ph=function(e){var t,r,n=e.index,o=e.form,i=e.fields,a=e.onRemove,l=e.onReset,c=e.collectionId,u=o.watch("conditions.".concat(n,".field")),d=(0,T.$K)(u)?function(e,t){var r=e.find((function(e){return e.path===t}));return null==r?void 0:r.type}(i,u):null,p=d?function(e){var t=function(e){switch(e){case"title":case"alias":case"text":case"rich-text":case"email":case"phone":return["is-set","is-not-set","equals","not-equals","contains","not-contains","starts-with","not-starts-with","ends-with","not-ends-with"];case"switch":return["is-yes","is-no"];case"image":case"color":case"link":case"file":case"video":return["is-set","is-not-set"];case"number":return["equals","not-equals","is-greater-than","is-less-than","is-greater-than-or-equal-to","is-less-than-or-equal-to"];case"date-time":return["equals","not-equals","is-before","is-after"];case"option":return["equals","not-equals"];case"reference":case"multi-reference":return["is-include","is-not-include","equals-in-reference","not-equals-in-reference","is-associated-with"];case"self":return["is-include","is-not-include","is-include-parent"];default:return[]}}(e);return t.map((function(e){return{label:_h[e],value:e}}))}(d):[],f=o.watch("conditions.".concat(n,".condition")),h=(0,T.$K)(f)&&function(e){return!["is-set","is-not-set","is-yes","is-no"].includes(e)}(f),v=o.watch("conditions.".concat(n)),b=(0,A.$)();return(0,s.BX)("div",{css:Lh.filterItem,children:[(0,s.tZ)(kt.Qr,{control:o.control,name:"conditions.".concat(n,".field"),render:function(e){return(0,s.tZ)(tt.Z,Sh(Sh({},e),{},{label:b("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_SELECT_FIELD_SOURCE"),placeholder:b("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_SELECT_FIELD_SOURCE_PLACEHOLDER"),options:i.map((function(e){return{label:e.name,value:e.path}})),isClearable:!1,onChange:function(e){l(Sh(Sh({},v),{},{field:e.value,condition:null,value:null,variable:null}))}}))}}),p.length>0&&(0,s.tZ)(kt.Qr,{control:o.control,name:"conditions.".concat(n,".condition"),render:function(e){var t,r,n,o=Sh(Sh({},e),{},{field:Sh(Sh({},e.field),{},{value:(0,T.$K)(null===(t=e.field)||void 0===t?void 0:t.value)&&null!==(r=null===(n=e.field)||void 0===n?void 0:n.value)&&void 0!==r?r:null})});return(0,s.tZ)(tt.Z,Sh(Sh({},o),{},{label:b("COM_SPPAGEBUILDER_EDITOR_CONDITION_LABEL"),placeholder:b("COM_SPPAGEBUILDER_EDITOR_CONDITION_PLACEHOLDER"),options:p,isClearable:!1,onChange:function(e){l(Sh(Sh({},v),{},{condition:e.value,value:null,variable:null}))}}))}}),h&&(0,s.tZ)(Oh,{form:o,index:n,field:null!==(t=i.find((function(e){return e.id===Number(u)})))&&void 0!==t?t:null,type:null!=d?d:null,condition:f,collectionId:c}),f&&(r=f,["equals","not-equals","contains","contains","not-contains","starts-with","not-starts-with","ends-with","not-ends-with"].includes(r))&&(0,s.tZ)(kt.Qr,{control:o.control,name:"conditions.".concat(n,".is_case_sensitive"),render:function(e){var t=Sh(Sh({},e),{},{field:Sh(Sh({},e.field),{},{value:e.field.value?1:0})});return(0,s.tZ)(rn.Z,Sh(Sh({},t),{},{label:b("COM_SPPAGEBUILDER_EDITOR_CONDITION_CASE_SENSITIVE"),isInlineLabel:!0}))}}),(0,s.tZ)("button",{type:"button",onClick:function(){return a(n)},css:Lh.removeButton,children:(0,s.tZ)(I.Z,{name:"trash",width:12,height:12})})]})};var Lh={applyButton:{name:"1vfc8dl-applyButton",styles:"display:flex;justify-content:flex-end;label:applyButton;"},filterItem:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";padding:",n.W0[8],";position:relative;background-color:",n.qo.background.white,";;label:filterItem;"),addFilterButton:(0,i.iv)(q.iZ.resetButton,";display:flex;align-items:center;gap:",n.W0[8],";color:",n.qo.text.default,";;label:addFilterButton;"),removeButton:(0,i.iv)(q.iZ.resetButton,";position:absolute;top:",n.W0[4],";right:",n.W0[8],";width:16px;height:16px;svg{color:",n.qo.icon.default,";}&:hover{svg{color:",n.qo.icon.error,";}};label:removeButton;")};function Ah(e){return Ah="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},Ah(e)}function Th(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 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){Rh(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 Rh(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ah(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ah(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ah(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var jh={name:"xq6c5w-actionTray",styles:"padding:0;label:actionTray;"};const Bh=function(e){var t,r,o,i=e.field,a=e.fieldState,l=e.label,u=e.isInlineLabel,d=e.disabled,p=e.readOnly,f=(e.placeholder,e.onChange,e.responsive),h=e.responsiveOrientation,v=e.helpText,b=e.collectionId,y=(0,A.$)(),m=(r=(0,c.useState)(!1),o=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,o)||function(e,t){if(e){if("string"==typeof e)return Th(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)?Th(e,t):void 0}}(r,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.")}()),g=m[0],E=m[1],O=bh(),C=(0,de.l)({isOpen:g,arrow:"right",gap:20}),S=C.triggerRef,x=C.popoverRef,P=C.position,L=(0,ot.O)({defaultValues:{match:"all",conditions:[]}}),D=(0,kt.Dq)({control:L.control,name:"conditions"});(0,c.useEffect)((function(){var e;L.reset.call(null,(e=i.value,(0,T.$K)(e)&&e?Zh(Zh({},e),{},{conditions:e.conditions.map((function(e){return Zh(Zh({},e),{},{field:e.field?e.field.path:null})}))}):{match:"all",conditions:[]}))}),[L.reset,i.value]);var Z=(0,Zn.We)({id:null!=O?O:0}),R=null!==(t=L.watch("conditions"))&&void 0!==t?t:[],j=D.fields.map((function(e,t){return Zh(Zh({},e),R[t])})),B=(0,c.useMemo)((function(){return Z.data?Z.data:[]}),[Z.data]);return Z.isFetching?(0,s.tZ)("div",{css:Mh.wrapper,children:(0,s.tZ)(w.ZP,{size:16})}):(0,s.tZ)(re.Z,{field:i,fieldState:a,label:l,isInlineLabel:u,readOnly:p,responsive:f,responsiveOrientation:h,helpText:v,disabled:d,children:function(){return(0,s.BX)(s.HY,{children:[(0,s.BX)("button",{type:"button",css:Mh.wrapper,onClick:function(){return E(!0)},ref:S,children:[(0,s.BX)("div",{css:Mh.filterWrapper,children:[(0,s.tZ)(I.Z,{name:"filter",width:12,height:12}),(0,s.tZ)("span",{children:y("COM_SPPAGEBUILDER_EDITOR_FILTER_LABEL")})]}),(0,s.tZ)(I.Z,{name:"settings",width:20,height:20})]}),(0,s.tZ)(de.h,{isOpen:g,onClickOutside:function(){return E(!1)},children:(0,s.tZ)("form",{css:Mh.popover,ref:x,style:{left:P.left,top:P.top},onSubmit:L.handleSubmit((function(e){i.onChange(function(e,t){return Zh(Zh({},e),{},{conditions:e.conditions.map((function(e){var r=function(e,t){var r;return(0,T.$K)(t)&&null!==(r=e.find((function(e){return e.path===t})))&&void 0!==r?r:null}(t,e.field);return(0,T.$K)(r)?Zh(Zh({},e),{},{field:r}):Zh(Zh({},e),{},{field:{}})}))})}(e,B)),E(!1)})),children:(0,s.BX)(ru.Z,{header:{title:y("COM_SPPAGEBUILDER_EDITOR_FILTER_LABEL"),actionTray:(0,s.tZ)(_.Z,{variant:"text",onClick:function(){return E(!1)},buttonCss:jh,children:(0,s.tZ)(I.Z,{name:"cross",height:24,width:24})})},cardCss:Mh.cardStyle,hideArrow:!0,children:[(0,s.BX)("div",{css:[q.iZ.cardInnerSection,{gap:n.W0[16]},";label:DynamicContentFilterField;"],children:[(0,s.tZ)(kt.Qr,{control:L.control,name:"match",render:function(e){return(0,s.tZ)(tt.Z,Zh(Zh({},e),{},{label:y("COM_SPPAGEBUILDER_EDITOR_FILTER_MATCH_LABEL"),placeholder:y("COM_SPPAGEBUILDER_EDITOR_FILTER_MATCH_PLACEHOLDER"),options:wh,isClearable:!1}))}}),(0,s.BX)("div",{css:Mh.filterList,children:[(0,s.tZ)("label",{children:y("COM_SPPAGEBUILDER_EDITOR_FILTER_CONDITIONS_LABEL")}),j.map((function(e,t){return(0,s.tZ)(Ph,{form:L,index:t,fields:B,onRemove:function(){return D.remove(t)},onReset:function(e){D.update(t,e)},collectionId:b},e.id)})),(0,s.BX)("button",{type:"button",onClick:function(){return D.append({field:null,condition:null,value:null,variable:null,is_case_sensitive:!1})},css:Mh.addFilterButton,children:[(0,s.tZ)(I.Z,{name:"plusCircle",width:16,height:16}),(0,s.tZ)("span",{children:0===j.length?y("COM_SPPAGEBUILDER_EDITOR_FILTER_ADD_NEW_CONDITION"):y("COM_SPPAGEBUILDER_EDITOR_FILTER_ADD_ANOTHER_CONDITION")})]})]})]}),(0,s.tZ)("div",{css:Mh.footer,children:(0,s.tZ)(_.Z,{variant:"primary",type:"submit",disabled:!1,children:y("COM_SPPAGEBUILDER_EDITOR_FILTER_APPLY_BUTTON")})})]})})})]})}})};var Mh={wrapper:(0,i.iv)(q.iZ.resetButton,";width:100%;display:flex;align-items:center;justify-content:space-between;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[4],";padding:",n.W0[8],";;label:wrapper;"),footer:(0,i.iv)("width:100%;display:flex;justify-content:flex-end;border-top:1px solid ",n.qo.stroke.neutral,";padding:",n.W0[8],";;label:footer;"),filterWrapper:(0,i.iv)("display:flex;align-items:center;gap:",n.W0[8],";color:",n.qo.text.default,";svg{color:",n.qo.icon.default,";};label:filterWrapper;"),popover:{name:"1torz2o-popover",styles:"position:absolute;max-width:380px;width:100%;label:popover;"},cardStyle:(0,i.iv)("box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";background-color:",n.qo.background.white,";;label:cardStyle;"),filterList:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";;label:filterList;"),fieldWrapper:{name:"1qe0aqe-fieldWrapper",styles:"display:grid;grid-template-columns:1fr 2fr;align-items:start;label:fieldWrapper;"},filterItem:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";padding:",n.W0[8],";position:relative;;label:filterItem;"),addFilterButton:(0,i.iv)(q.iZ.resetButton,";display:flex;align-items:center;gap:",n.W0[8],";color:",n.qo.text.default,";;label:addFilterButton;"),removeButton:(0,i.iv)(q.iZ.resetButton,";position:absolute;top:",n.W0[4],";right:",n.W0[8],";width:16px;height:16px;svg{color:",n.qo.icon.default,";}&:hover{svg{color:",n.qo.icon.error,";}};label:removeButton;")};function kh(e){return kh="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},kh(e)}var Nh=["css"];function Gh(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 Wh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gh(Object(r),!0).forEach((function(t){Uh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Uh(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==kh(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==kh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===kh(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fh(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 Hh(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)?Hh(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 Hh(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 qh=["alias","title","self","image","video","file","phone","email","link","rich-text","gallery","reference","multi-reference"];const Vh=function(e){var t,r,n=e.field,o=e.fieldState,i=e.onChange,a=void 0===i?T.ZT:i,l=e.label,u=e.placeholder,d=void 0===u?"":u,p=e.disabled,f=e.readOnly,h=e.loading,v=e.isSearchable,b=void 0!==v&&v,y=e.isInlineLabel,m=e.hideCaret,g=e.listLabel,E=e.isClearable,O=void 0===E||E,w=e.responsive,C=e.responsiveOrientation,S=e.showArrowUpDown,x=void 0!==S&&S,P=e.helpText,L=e.removeOptionsMinWidth,D=void 0!==L&&L,Z=e.defaultValue,R=void 0===Z?null:Z,j=e.required,B=void 0!==j&&j,M=(0,A.$)(),k=(0,c.useRef)(nn.zu),N=(0,xl.D)(k.current),G=null!==(t=Uf())&&void 0!==t?t:"",W=(0,Zn.A0)(Number(G)),U=[];if(W.data){var F=W.data;U=(null==(r=F)?void 0:r.filter((function(e){return!qh.includes(e.type)})).map((function(e){return{label:e.name,value:e.id}})))||[]}var H=(0,c.useCallback)((function(){var e,t,r=(0,ln.o5)(null!==(e=n.value)&&void 0!==e?e:R,k.current);return(null===(t=U.find((function(e){return String(e.value)===r})))||void 0===t?void 0:t.label)||""}),[U,n.value,R]),q=Fh((0,c.useState)(H),2),V=q[0],z=q[1],X=Fh((0,c.useState)(""),2),$=X[0],K=X[1],Y=Fh((0,c.useState)(!1),2),Q=Y[0],J=Y[1],ee=(0,c.useMemo)((function(){return b?U.filter((function(e){return e.label.toLowerCase().startsWith($.toLowerCase())})):U}),[$,b,U]),te=(0,de.l)({isOpen:Q,isDropdown:!0}),ne=te.triggerRef,oe=te.triggerWidth,ie=te.position,ae=te.popoverRef;return(0,c.useEffect)((function(){z(H)}),[n.value,H]),(0,c.useEffect)((function(){Q&&z(H)}),[H,Q]),(0,s.tZ)(re.Z,{fieldState:o,field:n,label:l,disabled:p||0===U.length,readOnly:f,loading:h,isInlineLabel:y,responsive:w,responsiveOrientation:C,helpText:P,required:B,children:function(e){var t=e.attributes,r=e.data,o=t.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}(t,Nh),l=r.responsive,c=r.device;return k.current=c,(0,s.BX)("div",{css:$h.mainWrapper,children:[(0,s.BX)("div",{css:$h.inputWrapper,ref:ne,children:[(0,s.tZ)("input",Wh(Wh({},i),{},{onClick:function(){return J((function(e){return!e}))},css:[o,$h.input,";label:DynamicContentSchemaField;"],autoComplete:"off",readOnly:f||!b,placeholder:d,value:function(){if(N!==c){var e,t=(0,ln.o5)(n.value,c);return(null===(e=U.find((function(e){return String(e.value)===String(t)})))||void 0===e?void 0:e.label)||""}return V}(),onChange:function(e){z(e.target.value),K(e.target.value)}})),!m&&(0,s.tZ)("button",{type:"button",css:$h.caretButton,onClick:function(){J((function(e){return!e}))},disabled:f||0===U.length,children:x?(0,s.tZ)(I.Z,{name:"arrowUpDown",width:20,height:20,style:$h.arrowUpDown}):(0,s.tZ)(I.Z,{name:"chevronDown",width:20,height:20,style:$h.toggleIcon({isOpen:Q})})})]}),(0,s.tZ)(de.h,{isOpen:Q,onClickOutside:function(){return J(!1)},children:(0,s.tZ)("div",{css:[$h.optionsWrapper,{left:ie.left,top:ie.top,maxWidth:oe},";label:DynamicContentSchemaField;"],ref:ae,children:(0,s.BX)("ul",{css:[$h.options(D),";label:DynamicContentSchemaField;"],children:[!!g&&(0,s.tZ)("li",{css:$h.listLabel,children:g}),null==ee?void 0:ee.map((function(e){return(0,s.tZ)("li",{css:$h.optionItem({isSelected:String(e.value)===(0,ln.o5)(n.value,c)}),children:(0,s.tZ)(_.Z,{variant:"text",buttonCss:$h.label,onClick:function(){n.onChange((0,ln.xU)({previous:n.value,value:e.value,responsive:l,device:c})),K(""),a(e),J(!1)},children:e.label})},String(e.value))})),O&&(0,s.tZ)("div",{css:$h.clearButton({isDisabled:""===V}),children:(0,s.tZ)(_.Z,{variant:"text",disabled:""===V,icon:(0,s.tZ)(I.Z,{name:"recycleAlt"}),onClick:function(){n.onChange(null),z(""),K(""),J(!1)},children:M("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})})]})}})};var zh={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},Xh={name:"7k051d-options",styles:"min-width:200px;label:options;"},$h={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&&Xh,";;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&&zh,";;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;"),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;")};function Kh(e){return Kh="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},Kh(e)}var Yh=["css"];function Qh(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 Jh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qh(Object(r),!0).forEach((function(t){ev(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ev(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Kh(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Kh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Kh(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tv(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 rv(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)?rv(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 rv(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 nv=function(e){var t,r=e.field,n=e.fieldState,o=e.onChange,i=void 0===o?T.ZT:o,a=e.label,l=e.placeholder,u=void 0===l?"":l,d=e.disabled,p=e.readOnly,f=e.loading,h=e.isSearchable,v=void 0!==h&&h,b=e.isInlineLabel,y=e.hideCaret,m=e.listLabel,g=e.isClearable,E=void 0===g||g,O=e.responsive,w=e.responsiveOrientation,C=e.showArrowUpDown,S=void 0!==C&&C,x=e.helpText,P=e.removeOptionsMinWidth,L=void 0!==P&&P,D=e.defaultValue,Z=void 0===D?null:D,R=e.required,j=void 0!==R&&R,B=(0,A.$)(),M=(0,c.useRef)(nn.zu),k=(0,xl.D)(M.current),N=(0,Zn.lL)(),G=[];if(N.data){var W=N.data;G=(null==(t=W)?void 0:t.map((function(e){return{label:null==e?void 0:e.title,value:null==e?void 0:e.id}})))||[]}var U=(0,c.useCallback)((function(){var e,t,n=(0,ln.o5)(null!==(e=r.value)&&void 0!==e?e:Z,M.current);return(null===(t=G.find((function(e){return String(e.value)===n})))||void 0===t?void 0:t.label)||""}),[G,r.value,Z]),F=tv((0,c.useState)(U),2),H=F[0],q=F[1],V=tv((0,c.useState)(""),2),z=V[0],X=V[1],$=tv((0,c.useState)(!1),2),K=$[0],Y=$[1],Q=(0,c.useMemo)((function(){return v?G.filter((function(e){return e.label.toLowerCase().startsWith(z.toLowerCase())})):G}),[z,v,G]),J=(0,de.l)({isOpen:K,isDropdown:!0}),ee=J.triggerRef,te=J.triggerWidth,ne=J.position,oe=J.popoverRef;return(0,c.useEffect)((function(){q(U)}),[r.value,U]),(0,c.useEffect)((function(){K&&q(U)}),[U,K]),(0,s.tZ)(re.Z,{fieldState:n,field:r,label:a,disabled:d||0===G.length,readOnly:p,loading:f,isInlineLabel:b,responsive:O,responsiveOrientation:w,helpText:x,required:j,children:function(e){var t=e.attributes,n=e.data,o=t.css,a=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,Yh),l=n.responsive,c=n.device;return M.current=c,(0,s.BX)("div",{css:av.mainWrapper,children:[(0,s.BX)("div",{css:av.inputWrapper,ref:ee,children:[(0,s.tZ)("input",Jh(Jh({},a),{},{onClick:function(){return Y((function(e){return!e}))},css:[o,av.input,";label:DynamicContentSourceField;"],autoComplete:"off",readOnly:p||!v,placeholder:u,value:function(){if(k!==c){var e,t=(0,ln.o5)(r.value,c);return(null===(e=G.find((function(e){return String(e.value)===String(t)})))||void 0===e?void 0:e.label)||""}return H}(),onChange:function(e){q(e.target.value),X(e.target.value)}})),!y&&(0,s.tZ)("button",{type:"button",css:av.caretButton,onClick:function(){Y((function(e){return!e}))},disabled:p||0===G.length,children:S?(0,s.tZ)(I.Z,{name:"arrowUpDown",width:20,height:20,style:av.arrowUpDown}):(0,s.tZ)(I.Z,{name:"chevronDown",width:20,height:20,style:av.toggleIcon({isOpen:K})})})]}),(0,s.tZ)(de.h,{isOpen:K,onClickOutside:function(){return Y(!1)},children:(0,s.tZ)("div",{css:[av.optionsWrapper,{left:ne.left,top:ne.top,maxWidth:te},";label:DynamicContentSourceField;"],ref:oe,children:(0,s.BX)("ul",{css:[av.options(L),";label:DynamicContentSourceField;"],children:[!!m&&(0,s.tZ)("li",{css:av.listLabel,children:m}),null==Q?void 0:Q.map((function(e){return(0,s.tZ)("li",{css:av.optionItem({isSelected:String(e.value)===(0,ln.o5)(r.value,c)}),children:(0,s.tZ)(_.Z,{variant:"text",buttonCss:av.label,onClick:function(){r.onChange((0,ln.xU)({previous:r.value,value:e.value,responsive:l,device:c})),X(""),i(e),Y(!1)},children:e.label})},String(e.value))})),E&&(0,s.tZ)("div",{css:av.clearButton({isDisabled:""===H}),children:(0,s.tZ)(_.Z,{variant:"text",disabled:""===H,icon:(0,s.tZ)(I.Z,{name:"recycleAlt"}),onClick:function(){r.onChange(null),q(""),X(""),Y(!1)},children:B("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})})]})}})};var ov={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},iv={name:"7k051d-options",styles:"min-width:200px;label:options;"},av={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&&iv,";;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&&ov,";;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;"),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;")};function lv(e){return lv="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},lv(e)}function cv(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 uv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(r),!0).forEach((function(t){sv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sv(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==lv(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==lv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===lv(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dv(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 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}}(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 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 fv={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 hv=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,T.$K)(f)||(f={});var h=dv((0,c.useState)(f),2),v=h[0],b=h[1],y=(0,pe.N)(v),m=(0,on.F)((function(e){return e.payload})),g=m.sectionIndex,E=m.columnIndex,O=m.addonIndex,_=m.tableItem,w=(0,an.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)(re.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,T.J0)(fv).map((function(e){var r=dv(e,2),n=r[0],o=r[1];return(0,s.tZ)($u.Z,{label:o.label,value:v[n],onChange:function(e){b((function(t){return uv(uv({},t),{},sv({},n,e))}))},min:o.min,max:o.max,disabled:t.disabled,isInlineLabel:p,staticUnit:o.unit},o.label)}))}})};var vv=r(7839),bv=r(680);const yv=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,A.$)(),p=(0,vv.Sh)(),f=(0,ut.v)((function(e){return e.appConfig.is_google_fonts_disabled})),h=(0,c.useMemo)((function(){var e;return(0,bv.c)(null!==(e=p.data)&&void 0!==e?e:[],f)}),[p.data,f]),v=h.find((function(e){return e.value===t.value}));return(0,s.tZ)(re.Z,{field:t,fieldState:r,label:n,disabled:o,responsive:a,responsiveOrientation:l,helpText:u,children:function(){return(0,s.tZ)(ku.Z,{value:v,options:h,placeholder:d("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),onChange:function(e){t.onChange(e.value),i&&i(e.value)},infiniteScroll:!0})}})};function mv(e){return mv="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},mv(e)}function gv(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 Ev(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gv(Object(r),!0).forEach((function(t){Ov(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ov(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==mv(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==mv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===mv(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _v=[{label:"",value:"underline",icon:"underline"},{label:"",value:"italic",icon:"italic"},{label:"",value:"uppercase",icon:"uppercaseDuo"}];const wv=function(e){var t=e.label,r=void 0===t?"":t,n=e.values,o=e.onChange,i=e.wrapperStyle,a=(0,T.Zt)(n).filter((function(e){return!!n[e]}));return(0,s.BX)("div",{css:[Cv.textDecorationWrapper({hasLabel:!!r}),i,";label:TextDecoration;"],children:[!!r&&(0,s.tZ)("div",{children:r}),(0,s.tZ)($i,{variant:"secondary",tabList:_v,activeTab:a,onChange:function(e){var t=Ev(Ev({},n),{},Ov({},e,!n[e]));o(t)},wrapperCss:Cv.tabWrapperCss})]})};var Cv={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 Iv(e){return Iv="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},Iv(e)}function Sv(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?Sv(Object(r),!0).forEach((function(t){Pv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pv(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Iv(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Iv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Iv(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Lv=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,A.$)(),d=(0,T.$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")}],h={label:u("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_FONT_WEIGHT"),value:""},v=null!==(t=f.find((function(e){return e.value===d.weight})))&&void 0!==t?t:h;return(0,s.tZ)(re.Z,{label:i,field:r,fieldState:n,responsive:a,responsiveOrientation:l,helpText:c,children:function(){return(0,s.BX)("div",{css:Av.wrapper,children:[(0,s.tZ)(wv,{values:p,onChange:function(e){var t=xv(xv({},d),e);r.onChange(t),o&&o(t)},wrapperStyle:Av.wrapperStyle}),(0,s.tZ)(ku.Z,{options:f,value:v,onChange:function(e){var t=xv(xv({},d),{},{weight:e.value});r.onChange(t),o&&o(t)},wrapperStyle:Av.wrapperStyle,isFontWeight:!0})]})}})};var Av={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 Tv=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:ln.wx[e]}}))}(!!l);return(0,s.tZ)(re.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,ln.o5)(r.value,n);return(0,s.tZ)($i,{variant:"secondary",activeTab:null!=i?i:"",tabList:p,onChange:function(e){var t=(0,ln.xU)({previous:r.value,value:e,responsive:o,device:n});r.onChange(t),a&&a(t)}})}})};var Dv=function(e){return be.u.post(he.H.IMAGE_SHAPE,{shape:(t=e.shape,r=t.replace(/fill="([^"]+)"/g,'fill="currentColor"'),btoa(r))});var t,r},Zv=function(e){return be.u.delete(he.H.IMAGE_SHAPE,{params:{id:e}})};function Rv(e){return Rv="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},Rv(e)}function jv(){jv=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Rv(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Bv(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 Mv(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 kv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mv(Object(r),!0).forEach((function(t){Nv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nv(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Rv(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Rv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Rv(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Gv=function(e){var t=e.title,r=e.closeModal,n=(0,A.$)(),o=(0,fe.p)().showToast,i=(0,ot.O)({defaultValues:{svg:""}}),a=function(){var e=(0,fe.p)().showToast,t=(0,dt.NL)(),r=(0,A.$)();return(0,pt.D)({mutationFn:Dv,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)(Wt.Z,{onClose:function(){return r({action:"CLOSE"})},title:t,headerCss:Wv.modalHeaderCss,contentCss:Wv.modalContentCss,wrapperCss:Wv.modalWrapper,children:[(0,s.tZ)("div",{css:Wv.content,children:(0,s.tZ)(kt.Qr,{name:"svg",control:i.control,render:function(e){return(0,s.tZ)(fn,kv(kv({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_SVG_SINGLE_PATH_ONLY")}))}})}),(0,s.BX)("div",{css:Wv.footerWrapper,children:[(0,s.tZ)(_.Z,{variant:"secondary",onClick:function(){return r({action:"CLOSE"})},children:n("COM_SPPAGEBUILDER_EDITOR_CANCEL")}),(0,s.tZ)(_.Z,{loading:a.isLoading,onClick:i.handleSubmit(function(){var e,t=(e=jv().mark((function e(t){return jv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,T._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){Bv(i,n,o,a,l,"next",e)}function l(e){Bv(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")})]})]})},Wv={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 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 Fv(){Fv=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Uv(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Hv(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 qv(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Hv(i,n,o,a,l,"next",e)}function l(e){Hv(i,n,o,a,l,"throw",e)}a(void 0)}))}}const Vv=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,h=(0,A.$)(),v=(r=(0,fe.p)().showToast,(0,ve.a)({queryKey:["ImageShapes"],queryFn:function(){return be.u.get(he.H.IMAGE_SHAPE).then((function(e){return e.data}))},onError:function(e){r({type:"danger",message:e.message})}})),b=(t=(0,Kt.d)().showModal,function(e){return t({component:Gv,props:e,closeOnOutsideClick:!0})}),y=(0,nt.g)(),m=v.data,g=function(){var e=(0,dt.NL)(),t=(0,fe.p)().showToast,r=(0,A.$)();return(0,pt.D)({mutationFn:Zv,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=qv(Fv().mark((function e(t){return Fv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y({title:h("COM_SPPAGEBUILDER_EDITOR_DELETE_SVG_CONTENT_TITLE"),confirmationMessage:h("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)(re.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,ln.o5)(o.value,n);return(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:zv.addButtonWrapper,children:(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:"plus"}),onClick:qv(Fv().mark((function e(){return Fv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b({title:h("COM_SPPAGEBUILDER_EDITOR_INSERT_SVG_SHAPE")});case 2:case"end":return e.stop()}}),e)}))),children:h("COM_SPPAGEBUILDER_EDITOR_SVG")})}),(0,s.BX)("div",{css:zv.wrapper({columns:f}),children:[i.map((function(e){return(0,s.tZ)(_.Z,{variant:"text",buttonCss:zv.thumbItem({isActive:a===e.value}),onClick:function(){var t=(0,ln.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:zv.icon({isActive:a===e.value}),dangerouslySetInnerHTML:{__html:e.icon}})},e.value)})),null==m?void 0:m.map((function(e){return(0,s.BX)(_.Z,{variant:"text",buttonCss:zv.thumbItem({isActive:a===e.shape}),onClick:function(){var t=(0,ln.xU)({previous:o.value,value:e.shape,responsive:r,device:n});o.onChange(t),u&&u(t)},children:[(0,s.tZ)("span",{css:[zv.icon({isActive:a===e.shape}),zv.iconSvg,";label:ImageShapeField;"],dangerouslySetInnerHTML:{__html:atob(e.shape)}}),(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"trash"}),buttonCss:zv.deleteButton,height:.5,width:.5,onClick:function(){E(e.id)},loading:g.isLoading})]},e.id)}))]})]})}})};var zv={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 Xv(e){return Xv="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},Xv(e)}function $v(){$v=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Xv(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Kv(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 Yv(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Kv(i,n,o,a,l,"next",e)}function l(e){Kv(i,n,o,a,l,"throw",e)}a(void 0)}))}}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}function eb(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?eb(Object(r),!0).forEach((function(t){rb(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Xv(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Xv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Xv(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nb={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 ob=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,h=e.defaultTab,v=void 0===h?"url":h,b=(0,A.$)(),y=(0,kt.Gc)(),m=(0,c.useMemo)((function(){return(0,T.$K)(r.value)?(0,T.HD)(r.value)?tb(tb({},nb),{},{url:r.value}):r.value:nb}),[r.value]),g=Qv((0,c.useState)(m),2),E=g[0],O=g[1],_=(0,pe.N)(E),w=[{label:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_POPUP_OPEN"),value:"open"},{label:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_POPUP_CLOSE"),value:"close"}],C=(0,ut.v)((function(e){return e.appConfig})),S=(0,on.F)((function(e){return e.payload})),x=S.addonIndex,P=S.sectionIndex,L=S.columnIndex,D=S.tableItem,Z=(0,an.s)((function(e){return e.currentState})),R=Qv((0,c.useState)(v),2),j=R[0],B=R[1],M=(0,Kt.d)().showModal,k=[{label:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_URL"),value:"url"},{label:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_MENU"),value:"menu"},{label:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_PAGE"),value:"page"},{label:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_POPUP"),value:"popup"}];(0,c.useEffect)((function(){var e;B(null!==(e=E.type)&&void 0!==e?e:v)}),[E]),(0,c.useEffect)((function(){O(m)}),[x,P,L,D,Z]),(0,c.useEffect)((function(){"url"===_.type&&r.onChange(_)}),[_]);var N=function(e,t){var n=tb(tb({},E),{},rb({},t,e));O(n),d&&d(n),"url"!==t&&r.onChange(n)},G=function(){var e=Yv($v().mark((function e(){var t,r,n,o;return $v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===(t=y.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)}}(),W=function(){var e=Yv($v().mark((function e(){var t,n;return $v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G();case 2:t=e.sent,n=tb(tb({},E),{},{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(){W()}),[]),(0,s.tZ)(re.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:ib.wrapper,children:(0,s.BX)("div",{css:ib.optionsWrapper,children:[(0,s.tZ)($i,{variant:"secondary",activeTab:j,tabList:f?k:k.slice(0,-1),onChange:function(e){B(e);var t=tb(tb({},m),{},{type:e});O(t),d&&d(t),"url"!==e&&r.onChange(t)}}),"url"===j&&(0,s.tZ)(Je.Z,{value:E.url,onChange:function(e){return N(e,"url")},placeholder:"https://",handleMediaIconClick:function(){M({component:Fr,props:{allowedMediaType:"attachment",onInsert:function(e){var t=tb(tb({},E),{},{url:e.path});O(t),d&&d(t)}},closeOnOutsideClick:!0})},isClearable:!0,inputCss:ib.textInput}),"menu"===j&&(0,s.tZ)(ku.Z,{value:C.menus.find((function(e){return String(e.value)===String(m.menu)})),options:C.menus,onChange:function(e){return N(e.value,"menu")},clearOption:function(){return N("","menu")},placeholder:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_SELECT_MENU")}),"page"===j&&(0,s.BX)(El.$x,{onSelect:function(e){return N(e,"page")},value:m.page,children:[(0,s.tZ)(El.i4,{children:(0,s.tZ)(El.ki,{placeholder:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_SELECT_PAGE"),children:function(e){return c.Children.count(e)>0?c.Children.toArray(e)[0]:e}})}),(0,s.BX)(El.Bw,{children:[(0,s.tZ)(El.J3,{children:C.pages.map((function(e,t){return(0,s.BX)(El.DI,{children:[(0,s.BX)(El.n5,{children:[(0,s.tZ)(I.Z,{name:e.icon,width:16,height:16,noFill:!0}),e.label]}),e.options.map((function(e,t){return(0,s.BX)(El.Ql,{value:e.value,css:ib.pageItem,children:[(0,s.tZ)("span",{"data-label":!0,children:e.label}),e.legend&&(0,s.tZ)("span",{"data-legend":!0,children:e.legend})]},t)}))]},t)}))}),(0,s.tZ)(El.fK,{children:b("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})]})]}),"popup"===j&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(ku.Z,{label:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_POPUP_ACTION"),value:w.find((function(e){return String(e.value)===String(m.action)})),options:w,onChange:function(e){return N(e.value,"action")},clearOption:function(){return N("","action")}}),"open"===m.action&&(0,s.tZ)(ku.Z,{label:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_POPUP_ACTION_SELECT"),value:C.popups.find((function(e){return String(e.value)===String(m.popup)})),options:C.popups,onChange:function(e){return N(e.value,"popup")},clearOption:function(){return N("","popup")},isSearchable:!0}),"close"===m.action&&(0,s.BX)("div",{css:ib.switchWrapper,children:[(0,s.tZ)("label",{children:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_POPUP_DONT_SHOW")}),(0,s.tZ)(ms.Z,{checked:(0,ln.sw)(m.is_no_repeat),onChange:function(e){var t=(0,ln.sw)(e)?1:0;N(t,"is_no_repeat")}})]})]}),"popup"!==j&&(0,s.BX)("div",{css:ib.linkOptions,children:[(0,s.tZ)("div",{css:o.c.caption(),children:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_LINK_OPTIONS")}),(0,s.tZ)(te.Z,{label:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NEW_TAB"),labelCss:ib.label,checked:m.new_tab,onChange:function(e){return N(e,"new_tab")}}),(0,s.tZ)(te.Z,{label:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NO_FOLLOW"),labelCss:ib.label,checked:m.nofollow,onChange:function(e){return N(e,"nofollow")}}),(0,s.tZ)(te.Z,{label:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NO_REFERRER"),labelCss:ib.label,checked:m.noreferrer,onChange:function(e){return N(e,"noreferrer")}}),(0,s.tZ)(te.Z,{label:b("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NO_OPENER"),labelCss:ib.label,checked:m.noopener,onChange:function(e){return N(e,"noopener")}})]})]})})})}})};var ib={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;"),pageItem:(0,i.iv)("display:flex;flex-direction:column;align-items:start;gap:",n.W0[4],";&>span[data-label]{",o.c.body(),";color:",n.qo.text.default,";}&>span[data-legend]{",o.c.caption(),";color:",n.qo.text.hints,";};label:pageItem;"),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 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)}var lb=["css"];function cb(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 ub(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cb(Object(r),!0).forEach((function(t){sb(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sb(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 db(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 pb(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)?pb(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 pb(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 fb=function(e){var t=e.field,r=e.fieldState,n=e.onChange,o=void 0===n?T.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,h=e.isInlineLabel,v=e.isSearchable,b=void 0===v||v,y=e.isClearable,m=void 0===y||y,g=e.responsive,E=void 0!==g&&g,O=e.responsiveOrientation,w=e.helpText,C=(0,A.$)(),S=(0,ut.v)((function(e){return e.appConfig})),x=S.module_positions,P=S.modules,L="module"===f?P:x,D=(0,T.I6)(L),Z=(0,c.useMemo)((function(){var e;return(null===(e=D.find((function(e){return String(e.value)===String(t.value)})))||void 0===e?void 0:e.label)||""}),[t.value,D]),R=db((0,c.useState)(Z),2),j=R[0],B=R[1],M=db((0,c.useState)(""),2),k=M[0],N=M[1],G=db((0,c.useState)(!1),2),W=G[0],U=G[1],F=(0,de.l)({isOpen:W,isDropdown:!0}),H=F.triggerRef,q=F.triggerWidth,V=F.position,z=F.popoverRef,X=(0,c.useMemo)((function(){return b?D.filter((function(e){return e.label.toLowerCase().startsWith(k.toLowerCase())})):D}),[b,D,k]);return(0,c.useEffect)((function(){B(Z)}),[t.value,Z]),(0,s.tZ)(re.Z,{fieldState:r,field:t,label:i,disabled:u||0===D.length,readOnly:d,loading:p,isInlineLabel:h,responsive:E,responsiveOrientation:O,helpText:w,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,lb);return(0,s.BX)("div",{css:vb.wrapper,children:[(0,s.BX)("div",{css:vb.inputWrapper,ref:H,children:[(0,s.tZ)("input",ub(ub({},i),{},{onClick:function(){return U((function(e){return!e}))},css:[n,vb.input,";label:ModuleField;"],autoComplete:"off",readOnly:d||!b,placeholder:l,value:j,onChange:function(e){B(e.target.value),N(e.target.value)}})),(0,s.tZ)("button",{type:"button",css:vb.caretButton,onClick:function(){U((function(e){return!e}))},disabled:d,children:(0,s.tZ)(I.Z,{name:"chevronDown",width:20,height:20,style:vb.toggleIcon({isOpen:W})})})]}),(0,s.tZ)(de.h,{isOpen:W,onClickOutside:function(){return U(!1)},children:(0,s.BX)("div",{css:[vb.optionsWrapper,{left:V.left,top:V.top,maxWidth:q},";label:ModuleField;"],ref:z,children:[(0,s.tZ)("ul",{css:[vb.options,";label:ModuleField;"],children:X.map((function(e){return(0,s.tZ)("li",{css:vb.optionItem({isSelected:e.value===t.value}),children:(0,s.tZ)(_.Z,{variant:"text",buttonCss:vb.optionButton,onClick:function(){t.onChange(e.value),B(e.label),N(""),o(e),U(!1)},children:e.label})},String(e.value))}))}),m&&(0,s.tZ)("div",{css:vb.clearButton({isDisabled:""===j}),children:(0,s.tZ)(_.Z,{variant:"text",disabled:""===j,onClick:function(){t.onChange(null),B(""),N("")},children:C("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})]})}})};var hb={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},vb={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&&hb,";;label:toggleIcon;")}};function bb(e){return bb="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},bb(e)}function yb(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 mb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yb(Object(r),!0).forEach((function(t){gb(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==bb(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==bb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===bb(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eb(){return Eb=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},Eb.apply(this,arguments)}function Ob(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,r,n,o,i,a=(o=null!==(t=e.pluginType)&&void 0!==t?t:"captcha",i=(0,fe.p)().showToast,(0,ve.a)({queryKey:["Plugins",o],queryFn:function(){return function(e){return be.u.get(he.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 Ob(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 Ob(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)?Ob(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=Eb({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return(0,s.tZ)(tt.Z,mb(mb({},u),{},{options:c}))};var wb=r(3722);function Cb(e){return Cb="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},Cb(e)}var Ib=["css"];function Sb(){Sb=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Cb(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function xb(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 Pb(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){xb(i,n,o,a,l,"next",e)}function l(e){xb(i,n,o,a,l,"throw",e)}a(void 0)}))}}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 Ab(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){Tb(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 Tb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Cb(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Cb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Cb(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Db(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 Zb(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)?Zb(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 Zb(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 Rb=function(e){var t=e.options,r=e.field,n=e.fieldState,o=e.onChange,i=void 0===o?T.ZT:o,a=e.label,l=e.placeholder,u=void 0===l?"":l,d=e.disabled,p=e.readOnly,f=e.loading,h=e.isSearchable,v=void 0!==h&&h,b=e.isInlineLabel,y=e.hideCaret,m=e.listLabel,g=e.isClearable,E=void 0===g||g,O=e.responsive,w=e.responsiveOrientation,C=e.showArrowUpDown,S=void 0!==C&&C,x=e.helpText,P=e.removeOptionsMinWidth,L=void 0!==P&&P,D=(0,A.$)(),Z=(0,c.useRef)(nn.zu),R=(0,xl.D)(Z.current),j=(0,on.F)((function(e){return e.payload})),B=(0,$o.o)((function(e){return e.addCollectionItems})),M=(0,wb.b)(),k=(0,kt.Gc)(),N=(0,c.useCallback)((function(){var e,n=(0,ln.o5)(r.value,Z.current);return(null===(e=t.find((function(e){return String(e.value)===n})))||void 0===e?void 0:e.label)||""}),[t,r.value]),G=Db((0,c.useState)(N),2),W=G[0],U=G[1],F=Db((0,c.useState)(""),2),H=F[0],q=F[1],V=Db((0,c.useState)(!1),2),z=V[0],X=V[1],$=(0,c.useMemo)((function(){return v?t.filter((function(e){return e.label.toLowerCase().startsWith(H.toLowerCase())})):t}),[H,v,t]),K=(0,de.l)({isOpen:z,isDropdown:!0}),Y=K.triggerRef,Q=K.triggerWidth,J=K.position,ee=K.popoverRef;return(0,c.useEffect)((function(){U(N)}),[r.value,N]),(0,c.useEffect)((function(){z&&U(N)}),[N,z]),(0,s.tZ)(re.Z,{fieldState:n,field:r,label:a,disabled:d||0===t.length,readOnly:p,loading:f,isInlineLabel:b,responsive:O,responsiveOrientation:w,helpText:x,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,Ib),c=(o.responsive,o.device);return Z.current=c,(0,s.BX)("div",{css:Mb.mainWrapper,children:[(0,s.BX)("div",{css:Mb.inputWrapper,ref:Y,children:[(0,s.tZ)("input",Ab(Ab({},l),{},{onClick:function(){return X((function(e){return!e}))},css:[a,Mb.input,";label:PresetField;"],autoComplete:"off",readOnly:p||!v,placeholder:u,value:function(){if(R!==c){var e,n=(0,ln.o5)(r.value,c);return(null===(e=t.find((function(e){return String(e.value)===n})))||void 0===e?void 0:e.label)||""}return W}(),onChange:function(e){U(e.target.value),q(e.target.value)}})),!y&&(0,s.tZ)("button",{type:"button",css:Mb.caretButton,onClick:function(){X((function(e){return!e}))},disabled:p||0===t.length,children:S?(0,s.tZ)(I.Z,{name:"arrowUpDown",width:20,height:20,style:Mb.arrowUpDown}):(0,s.tZ)(I.Z,{name:"chevronDown",width:20,height:20,style:Mb.toggleIcon({isOpen:z})})})]}),(0,s.tZ)(de.h,{isOpen:z,onClickOutside:function(){return X(!1)},children:(0,s.tZ)("div",{css:[Mb.optionsWrapper,{left:J.left,top:J.top,maxWidth:Q},";label:PresetField;"],ref:ee,children:(0,s.BX)("ul",{css:[Mb.options(L),";label:PresetField;"],children:[!!m&&(0,s.tZ)("li",{css:Mb.listLabel,children:m}),$.map((function(e){return(0,s.tZ)("li",{css:Mb.optionItem({isSelected:String(e.value)===(0,ln.o5)(r.value,c)}),children:(0,s.tZ)(_.Z,{variant:"text",buttonCss:Mb.label,onClick:Pb(Sb().mark((function t(){var n,o,a,l,c,u,s;return Sb().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,M.mutateAsync(Number(e.value));case 2:n=t.sent,o=j.sectionIndex,a=j.columnIndex,l=j.addonIndex,(0,T.$K)(o)&&(0,T.$K)(a)&&(0,T.$K)(l)&&B({sectionIndex:o,columnIndex:a,addonIndex:l,preset:n.preset}),c=JSON.parse(n.preset),u=null==c?void 0:c.settings,s=Ab(Ab({},u),{},{presets:e.value}),k.reset(Ab(Ab({},k.getValues()),{},{settings:s})),q(""),r.onChange(e.value),i(e),X(!1);case 13:case"end":return t.stop()}}),t)}))),children:e.label})},String(e.value))})),E&&(0,s.tZ)("div",{css:Mb.clearButton({isDisabled:""===W}),children:(0,s.tZ)(_.Z,{variant:"text",disabled:""===W,icon:(0,s.tZ)(I.Z,{name:"recycleAlt"}),onClick:function(){r.onChange(null),U(""),q(""),X(!1)},children:D("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})})]})}})};var jb={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},Bb={name:"7k051d-options",styles:"min-width:200px;label:options;"},Mb={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&&Bb,";;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&&jb,";;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;")},kb=r(1284),Nb=r(2393),Gb=r(8307);function Wb(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 Ub=Nb.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 Fb=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,A.$)(),h=/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi,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 Wb(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)?Wb(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=v[0],y=v[1],m=(0,de.l)({isOpen:a,triggerRef:u,gap:p,arrow:"right"}),g=m.position,E=m.popoverRef;return(0,c.useEffect)((function(){var e=n.replaceAll(h,"<li>$1<$2$3>");y(e)}),[n]),(0,s.tZ)(de.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)(ru.Z,{header:{title:f("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_SOURCE_CODE"),actionTray:(0,s.tZ)(_.Z,{variant:"text",onClick:l,buttonCss:Hb.crossButton,children:(0,s.tZ)(I.Z,{name:"cross",height:24,width:24})})},cardCss:Hb.cardStyle,hideArrow:!0,children:[(0,s.tZ)("div",{css:Hb.cardInnerSection,children:(0,s.tZ)(Gb.ZP,{theme:Ub,extensions:[Nb.tk.lineWrapping],value:b,onChange:y})}),(0,s.tZ)("div",{css:Hb.buttonWrapper,children:(0,s.tZ)(_.Z,{onClick:function(){o(b),l(),y("")},children:f("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_APPLY_BUTTON")})})]})})})};var Hb={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 qb(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 Vb(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)?Vb(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 Vb(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 zb=function(e){var t,r=e.triggerRef,n=e.editor,o=null!==(t=n.getAttributes("textStyle").color)&&void 0!==t?t:"",i=(0,A.$)(),a=qb((0,c.useState)(!1),2),l=a[0],u=a[1],d=qb((0,c.useState)(o),2),p=d[0],f=d[1],h=(0,de.l)({isOpen:l,triggerRef:r,arrow:"right",gap:20}),v=h.position,b=h.popoverRef,y=function(e){f(e);var t=(0,T.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)(Re,{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)(de.h,{isOpen:l,onClickOutside:function(){return u(!1)},children:(0,s.BX)("div",{css:[Xb.container,{position:"absolute",left:v.left,top:v.top},";label:ColorPalette;"],ref:b,children:[(0,s.BX)("div",{css:Xb.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)(I.Z,{name:"cross"})})]}),(0,s.BX)("div",{css:Xb.content,children:[(0,s.tZ)(we.Jg,{color:(0,T.K6)(o).validColor.toRgb(),onChange:function(e){var t=new se.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:Xb.input,value:p,placeholder:"#000000",onChange:function(e){return y(e.target.value)}}),(0,s.tZ)(Oe,{onColorChange:y})]})]})})]})},Xb={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 $b(e){return $b="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},$b(e)}function Kb(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?Kb(Object(r),!0).forEach((function(t){Qb(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kb(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"!==$b(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==$b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===$b(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(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 ey(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)?ey(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 ey(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 ty=["nofollow","noreferrer","noopener"],ry={type:"url",url:"",menu:"",page:0,new_tab:!1,nofollow:!1,noreferrer:!1,noopener:!1},ny=function(e){var t=e.triggerRef,r=e.label,n=e.isActive,i=e.setLink,a=e.attributes,l=e.unsetLink,u=(0,A.$)(),d=Jb((0,c.useState)(ry),2),p=d[0],f=d[1],h=Jb((0,c.useState)(null),2),v=h[0],b=h[1];(0,c.useEffect)((function(){if("open"===v){var e={nofollow:!1,noreferrer:!1,noopener:!1};if((0,T.$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(Yb(Yb({},ry),{},{url:a.url,new_tab:a.new_tab},e))}}),[a,v]);var y=(0,de.l)({isOpen:null!==v,gap:20,arrow:"right",triggerRef:t}),m=y.position,g=y.popoverRef,E=(0,ut.v)((function(e){return e.appConfig})),O=E.pages.flatMap((function(e){return e.options.map((function(e){var t;return{label:null==e?void 0:e.label,value:null==e||null===(t=e.value)||void 0===t?void 0:t.toString()}}))})),w=Jb((0,c.useState)("url"),2),C=w[0],S=w[1],x=(0,Kt.d)().showModal,P=[{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"}],L=function(e){return"index.php?option=com_sppagebuilder&view=page&id=".concat(e)},D=function(e,t){var r=e;"page"===t&&(0,T.$K)(e)&&(r=L(e.toString())),f(Yb(Yb({},p),{},Qb({},t,r)))};return(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:oy.linkWrapper,children:[(0,s.tZ)(Bo.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:oy.selectedItem(n),children:(0,s.tZ)(I.Z,{name:"editorLink"})})}),n&&(0,s.tZ)("span",{role:"button",tabIndex:0,css:oy.clearButton,onClick:function(e){e.stopPropagation(),l()},onKeyDown:T.ZT,children:(0,s.tZ)(I.Z,{name:"crossCircled"})})]}),(0,s.tZ)(de.h,{isOpen:null!==v,onClickOutside:function(){f(Yb(Yb({},p),{},{type:"url"})),S("url"),b(null)},children:(0,s.BX)("div",{css:[oy.popoverWrapper,{position:"absolute",left:m.left,top:m.top},";label:LinkToolItem;"],ref:g,children:[(0,s.BX)("div",{css:oy.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)(I.Z,{name:"cross"})})]}),(0,s.BX)("div",{css:oy.optionsWrapper,children:[(0,s.tZ)($i,{variant:"secondary",activeTab:C,tabList:P,onChange:function(e){S(e),"url"!==e&&f(Yb(Yb({},p),{},{type:e}))}}),"url"===C&&(0,s.tZ)(Je.Z,{value:p.url,onChange:function(e){return D(e,"url")},placeholder:"https://",handleMediaIconClick:function(){b(null),x({component:Fr,props:{allowedMediaType:"*",onInsert:function(e){f(Yb(Yb({},p),{},{url:e.path})),b("insert")}},closeOnOutsideClick:!0})},isClearable:!0,inputCss:oy.textInput}),"menu"===C&&(0,s.tZ)(ku.Z,{value:E.menus.find((function(e){return String(e.value)===String(p.menu)})),options:E.menus,onChange:function(e){return D(e.value,"menu")},clearOption:function(){return D("","menu")},placeholder:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_SELECT_MENU")}),"page"===C&&(0,s.tZ)(ku.Z,{value:O.find((function(e){var t=String(e.value);return"page"===C&&(0,T.$K)(e.value)&&(t=L(t)),t===String(p[C])})),options:O,onChange:function(e){return D(e.value,"page")},clearOption:function(){return D("","page")},placeholder:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_SELECT_PAGE")}),(0,s.BX)("div",{css:oy.linkOptions,children:[(0,s.tZ)("div",{css:o.c.caption(),children:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_LINK_OPTIONS")}),(0,s.tZ)(te.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NEW_TAB"),labelCss:oy.label,checked:p.new_tab,onChange:function(e){return D(e,"new_tab")}}),(0,s.tZ)(te.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NO_FOLLOW"),labelCss:oy.label,checked:p.nofollow,onChange:function(e){return D(e,"nofollow")}}),(0,s.tZ)(te.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NO_REFERRER"),labelCss:oy.label,checked:p.noreferrer,onChange:function(e){return D(e,"noreferrer")}}),(0,s.tZ)(te.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NO_OPENER"),labelCss:oy.label,checked:p.noopener,onChange:function(e){return D(e,"noopener")}})]})]}),(0,s.tZ)("div",{css:oy.buttonWrapper,children:(0,s.tZ)(_.Z,{onClick:function(){var e,t=p.type;(0,T.$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:ty.filter((function(e){return p[e]})).join(" ")})),b(null),S("url"),f(ry)},children:u("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_APPLY_BUTTON")})})]})})]})},oy={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 iy(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 ay={name:"1d8pafg-SystemEditorModal",styles:"display:none;label:SystemEditorModal;"};const ly=function(e){var t,r,n=e.closeModal,o=e.title,i=e.content,a=e.onChangeContent,l=(0,A.$)(),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 iy(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)?iy(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],h=p[1];return(0,c.useEffect)((function(){var e;null===(e=u.current)||void 0===e||e.submit()}),[]),(0,s.tZ)(Wt.Z,{onClose:function(){return n({action:"CLOSE"})},title:o,wrapperCss:cy.modalWrapperStyles,children:(0,s.BX)("div",{css:cy.modalWrapper,children:[(0,s.BX)("div",{css:cy.codeMirror,children:[(0,s.tZ)("form",{method:"post",target:"editorIframe",action:"".concat(T.Xy.pagebuilderBase,"administrator/index.php?option=com_sppagebuilder&view=systemeditor&layout=default&tmpl=component"),ref:u,css:ay,children:(0,s.tZ)("input",{type:"hidden",value:i,name:"system_editor_data"})}),f&&(0,s.tZ)("div",{css:cy.loadingWrapper,children:(0,s.tZ)(w.g4,{})}),(0,s.tZ)("iframe",{ref:d,onLoad:function(){return h(!1)},name:"editorIframe",title:"editor iframe",style:{display:"block"}})]}),(0,s.BX)("div",{css:cy.footerWrapper,children:[(0,s.tZ)(_.Z,{variant:"secondary",onClick:function(){return n({action:"CLOSE"})},children:l("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_SYSTEM_EDITOR_CANCEL")}),(0,s.tZ)(_.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 cy={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;")},uy=function(e){var t=e.name,r=e.icon,n=e.isActive,o=e.onClick,i=e.disabled;return(0,s.tZ)(Bo.Z,{content:t,placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",onClick:o,css:sy.wrapper(n),disabled:i,children:(0,s.tZ)(I.Z,{name:r})})})},sy={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 dy(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 py=function(e){var t,r,n=e.editor,o=e.activePopover,i=e.setActivePopover,a=e.value,l=e.onChangeContent,u=e.threeDotStyle,d=(0,A.$)(),p=(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 dy(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)?dy(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],h=p[1],v=(0,de.l)({isOpen:f,isDropdown:!0,gap:5}),b=v.triggerRef,y=v.position,m=v.popoverRef,g=(0,Kt.d)().showModal;return(0,s.BX)(s.HY,{children:[(0,s.tZ)("button",{type:"button",ref:b,onClick:function(){return h(!f)},css:[fy.threeDots(f),u,";label:MoreOptions;"],children:(0,s.tZ)(I.Z,{name:"ellipsisXAlt"})}),(0,s.tZ)(de.h,{isOpen:f,onClickOutside:function(){h(!1)},children:(0,s.BX)("div",{css:fy.itemsWrapper({left:y.left,top:y.top}),ref:m,onClick:function(){return h(!1)},role:"button",tabIndex:0,onKeyDown:T.ZT,children:[(0,s.tZ)(uy,{name:d("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)(Bo.Z,{content:d("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_INSERT_TABLE"),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",css:fy.buttonCss("table"===o),onClick:function(){return i("table")},children:(0,s.tZ)(I.Z,{name:"editorTable"})})}),(0,s.tZ)(Bo.Z,{content:d("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_SOURCE_CODE"),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",css:fy.buttonCss("code-editor"===o),onClick:function(){return i("code-editor")},children:(0,s.tZ)(I.Z,{name:"editorSourceCode"})})}),(0,s.tZ)(Bo.Z,{content:d("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_SYSTEM_EDITOR"),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",css:fy.buttonCss(),onClick:function(){g({component:ly,props:{title:"System Editor",content:a,onChangeContent:l}})},children:(0,s.tZ)(I.Z,{name:"editorExpand"})})})]})})]})},fy={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 hy(e){return hy="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},hy(e)}function vy(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 by(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vy(Object(r),!0).forEach((function(t){yy(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yy(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==hy(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==hy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===hy(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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 gy=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,A.$)(),f={rows:3,cols:3,withHeaderRow:!0},h=(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 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}}(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=h[0],b=h[1],y=(0,de.l)({isOpen:o,triggerRef:l,gap:d,arrow:"right"}),m=y.position,g=y.popoverRef;return(0,s.tZ)(de.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)(ru.Z,{header:{title:p("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_INSERT_TABLE"),actionTray:(0,s.tZ)(_.Z,{variant:"text",onClick:a,buttonCss:Ey.crossButton,children:(0,s.tZ)(I.Z,{name:"cross",height:24,width:24})})},cardCss:Ey.cardStyle,hideArrow:!0,children:[(0,s.BX)("div",{css:Ey.cardInnerSection,children:[(0,s.tZ)(Je.Z,{label:p("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_TABLE_NUM_OF_ROWS"),type:"number",value:v.rows,onChange:function(e){return b(by(by({},v),{},{rows:Number(e)}))}}),(0,s.tZ)(Je.Z,{label:p("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_TABLE_NUM_OF_COLS"),type:"number",value:v.cols,onChange:function(e){return b(by(by({},v),{},{cols:Number(e)}))}}),(0,s.BX)("div",{css:Ey.labelWrapper,children:[(0,s.tZ)("div",{css:Ey.label,children:p("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_TABLE_HEADER_ROW")}),(0,s.tZ)(ms.Z,{checked:v.withHeaderRow,value:v.withHeaderRow,onChange:function(){return b(by(by({},v),{},{withHeaderRow:!v.withHeaderRow}))}})]})]}),(0,s.tZ)("div",{css:Ey.buttonWrapper,children:(0,s.tZ)(_.Z,{onClick:function(){n(v),b(f),a()},children:p("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_INSERT_BUTTON")})})]})})})};var Ey={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 Oy(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 _y(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)?_y(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 _y(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 wy=function(e){var t=e.items,r=e.defaultItem,n=(0,A.$)(),o=Oy((0,c.useState)(!1),2),i=o[0],a=o[1],l=(0,de.l)({isOpen:i,isDropdown:!0,gap:5}),u=l.triggerRef,d=l.position,p=l.popoverRef,f=Oy((0,c.useState)(r),2),h=f[0],v=f[1],b=Object.keys(t).find((function(e){return t[e].isActive}));return(0,c.useEffect)((function(){(0,T.$K)(b)&&v(b)}),[b]),(0,s.BX)(s.HY,{children:[(0,s.tZ)(Bo.Z,{content:n(t[h].name),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",ref:u,onClick:function(){return a(!i)},css:Cy.selectedItem(t[h].isActive),children:(0,s.tZ)(I.Z,{name:t[h].icon})})}),(0,s.tZ)(de.h,{isOpen:i,onClickOutside:function(){a(!1)},children:(0,s.tZ)("div",{css:Cy.itemsWrapper({left:d.left,top:d.top}),ref:p,children:(0,T.Zt)(t).map((function(e){return(0,s.tZ)(Bo.Z,{content:n(t[e].name),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",css:Cy.itemButton({isActive:e===h}),onClick:function(){t[e].action(),v(e),a(!1)},children:(0,s.tZ)(I.Z,{name:t[e].icon})})},e)}))})})]})},Cy={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 Iy(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 Sy=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()}}}},xy=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()}}}},Py=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()}}}},Ly=function(e){var t,r,n=e.editor,o=e.value,i=e.onChange,a=(0,A.$)(),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 Iy(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)?Iy(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,Kt.d)().showModal;return n?(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:Ay.wrapper,ref:l,children:[(0,s.tZ)("div",{css:Ay.controlsGroup,children:(0,s.tZ)(wy,{items:Sy(n),defaultItem:"h1"})}),(0,s.BX)("div",{css:Ay.controlsGroup,children:[(0,s.tZ)(uy,{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)(uy,{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)(uy,{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)(Bo.Z,{content:a("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_COLOR"),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)(zb,{editor:n,triggerRef:l})})]}),(0,s.tZ)("div",{css:Ay.controlsGroup,children:(0,s.tZ)(wy,{items:Py(n),defaultItem:"left"})}),(0,s.tZ)("div",{css:Ay.controlsGroup,children:(0,s.tZ)(wy,{items:xy(n),defaultItem:"list"})}),(0,s.tZ)("div",{css:Ay.controlsGroup,children:(0,s.tZ)(Bo.Z,{content:a("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_INSERT_IMAGE"),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",css:Ay.buttonCss(),onClick:function(){f({component:Fr,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)(I.Z,{name:"image"})})})}),(0,s.tZ)("div",{css:Ay.controlsGroup,children:(0,s.tZ)(ny,{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)(py,{editor:n,activePopover:d,setActivePopover:p,value:o,onChangeContent:function(e){n.commands.setContent(e),i(e)},threeDotStyle:Ay.threeDot})]}),(0,s.tZ)(Fb,{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)(gy,{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},Ay={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,";z-index:",n.W5.positive,";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;"),threeDot:{name:"1prv1r-threeDot",styles:"width:auto;label:threeDot;"}},Ty=r(9734),Dy=r(7937),Zy=r(561),Ry=r(353),jy=r(336),By=r(9966),My=r(5525),ky=r(7490),Ny=r(8486),Gy=r(3582),Wy=r(6484),Uy=r(4565),Fy=r(1575),Hy=r(1347),qy=r(658),Vy=r(3626),zy=r(3991),Xy=r(2701),$y=r(6279),Ky=r(8510),Yy=r(3237),Qy=r(6761),Jy=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,T.$K)(r.attrs.style)&&(null===(e=t.current)||void 0===e||e.setAttribute("style",r.attrs.style))}),[r.attrs.style]),(0,s.tZ)(kb.T5,{children:(0,s.tZ)("img",{ref:t,src:T.Xy.pagebuilderBase+o,alt:i,className:r.attrs.class,height:r.attrs.height,width:r.attrs.width})})},em=Qy.ZP.extend({addNodeView:function(){return(0,kb.fW)(Jy)},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 tm(e){return tm="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},tm(e)}function rm(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 nm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rm(Object(r),!0).forEach((function(t){om(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function om(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==tm(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==tm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===tm(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function im(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)||am(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 am(e,t){if(e){if("string"==typeof e)return lm(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)?lm(e,t):void 0}}function lm(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 cm=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=am(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=im(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,T.$K)(l[s])||(l[s]=d)}}catch(e){c.e(e)}finally{c.f()}for(var p=[],f=0,h=Object.entries(l);f<h.length;f++){var v=im(h[f],2),b=v[0],y=v[1];"left"!==i&&p.push("".concat(b,":").concat(y,";"))}return p.length>0&&(r=nm(nm({},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")}}}}),um=cm;function sm(e){return sm="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},sm(e)}function dm(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 pm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dm(Object(r),!0).forEach((function(t){fm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fm(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==sm(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==sm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===sm(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hm(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)||vm(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 vm(e,t){if(e){if("string"==typeof e)return bm(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)?bm(e,t):void 0}}function bm(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 ym=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=vm(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=hm(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,T.$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=hm(d[s],2),f=p[0],h=p[1];u.push("".concat(f,":").concat(h,";"))}return u.length>0&&(t=pm(pm({},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")}}}}),mm=ym;function gm(e){return gm="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},gm(e)}function Em(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 Om(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Em(Object(r),!0).forEach((function(t){_m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Em(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"!==gm(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==gm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===gm(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wm(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 Cm=function(e){var t=e.value,r=e.onChange,n=e.editorRef,o=function(e){var t,r,n=e.content,o=e.placeholder,i=e.onChange,a=(0,on.F)((function(e){return e.payload})),l=a.addonIndex,u=a.sectionIndex,s=a.columnIndex,d=a.tableItem,p=(0,an.s)().currentState,f=(0,c.useRef)(null),h=/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi,v="<li>$1<$2$3>",b=(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 wm(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)?wm(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];return(0,c.useEffect)((function(){var e,t,r,o=(null===(e=f.current)||void 0===e||null===(t=e.getHTML())||void 0===t?void 0:t.replaceAll(h,v))||"";n&&o!==n&&(null===(r=f.current)||void 0===r||r.commands.setContent(n))}),[l,u,s,d,p,n]),f.current=(0,kb.jE)({extensions:[jy.Z,Xy.Z,Ny.Z,My.Z,$y.Z.configure({types:["heading","paragraph"]}),em,mm,Ry.Z,Yy.Z.configure({placeholder:o,emptyEditorClass:"sppb-is-editor-empty"}),ky.Z.extend({addAttributes:function(){var e,t,r;return Om(Om({},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]}),Wy.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")}}},onCreate:function(){var e=this.editor;e.view.dom.addEventListener("click",(function(t){var r,n=window.getSelection();if(!n||"Range"!==n.type){var o=(null===(r=t.target)||void 0===r?void 0:r.closest("a"))||null;if(o&&"A"===(null==o?void 0:o.tagName)){var i=e.view.posAtDOM(o,0),a=o.textContent||"";if(a&&a.length>0){var l=i,c=i+a.length;e.commands.setTextSelection({from:l,to:c})}}}}))}}).configure({openOnClick:!1,HTMLAttributes:{rel:"noopener noreferrer nofollow"}}),um,Dy.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")}}}}),Gy.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")}}}}),Ky.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")}}}}),Ty.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")}}}}),Zy.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")}}}}),Fy.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")}}}}),Uy.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")}}}}),By.Z,Hy.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}),zy.Z,Vy.Z,qy.Z],content:n,onUpdate:function(e){var t=e.editor.getHTML().replaceAll(h,v);t!==y&&(m(t),i(t))}}),f.current}({content:t,onChange:r,placeholder:e.placeholder});return n.current=o,(0,s.tZ)(s.HY,{children:(0,s.BX)("div",{css:Im.editorWrapper,children:[(0,s.tZ)(Ly,{editor:o,value:t,onChange:r}),(0,s.tZ)(kb.kg,{editor:o,spellCheck:!1})]})})};var Im={editorWrapper:(0,i.iv)("position:relative;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";color:",n.qo.text.default,";background-color:",n.qo.background.white,";.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%;height:auto;}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,";}.sppb-is-editor-empty{position:relative;&::before{content:attr(data-placeholder);",o.c.body(),";color:",n.qo.text.hints,";font-weight:normal;pointer-events:none;position:absolute;}}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 Sm(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 xm(){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 Sm(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)?Sm(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,fe.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}}]}function Pm(e){return Pm="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},Pm(e)}function Lm(){Lm=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Pm(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Am(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 Tm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Am(Object(r),!0).forEach((function(t){Dm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Am(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Dm(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Pm(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Pm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Pm(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zm(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 Rm(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Zm(i,n,o,a,l,"next",e)}function l(e){Zm(i,n,o,a,l,"throw",e)}a(void 0)}))}}function jm(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 Bm(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)?Bm(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 Bm(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 Mm=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,A.$)(),f=jm((0,c.useState)(!1),2),h=f[0],v=f[1],b=(0,xl.D)(t.generatedText),y=jm(xm(),2),m=(y[0],y[1]),g=Nl(),E=(0,ot.O)({defaultValues:{text:t.generatedText}});(0,c.useEffect)((function(){t.generatedText!==b&&E.setValue("text",t.generatedText)}),[E,t,b]);var O=E.watch("text"),w=function(){var e=Rm(Lm().mark((function e(r){var i,a,l;return Lm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Zl(Tm(Tm({},t),{},{prompt:O,action:r})),e.next=3,g.mutateAsync({prompt:i});case 3:a=e.sent,l=a.data,o(Tm(Tm({},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:Nm.contentWrapper,children:[(0,s.BX)("div",{css:Nm.generatedPrompt,children:[p("COM_SPPAGEBUILDER_EDITOR_AI_WHAT_TO_GENERATE"),(0,s.tZ)(_.Z,{variant:"text",onClick:function(){l()},children:(0,s.tZ)(I.Z,{name:"pencil",width:10,height:10})})]}),(0,s.tZ)("div",{css:Nm.promptText,children:t.prompt}),(0,s.BX)("div",{css:Nm.historyWrapper,children:[(0,s.BX)("div",{css:Nm.paginationWrapper,children:[(0,s.tZ)(_.Z,{variant:"text",icon:(0,s.tZ)(I.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)(_.Z,{variant:"text",icon:(0,s.tZ)(I.Z,{name:"chevronRight",height:20,width:20}),disabled:d+1===u,onClick:function(){return a(d+1)}})]}),(0,s.BX)("div",{css:Nm.rightSideWrapper,children:[(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"pencil",height:14,width:14}),onClick:function(){return v(!0)}}),(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"copy",height:14,width:14}),onClick:function(){return m(O)}})]})]}),h?(0,s.tZ)(kt.Qr,{name:"text",control:E.control,render:function(e){return(0,s.tZ)(fn,Tm(Tm({},e),{},{onKeyDown:function(e){"Escape"===e&&v(!1)},focusOnMount:!0}))}}):(0,s.tZ)("div",{css:Nm.generatedText,children:O}),(0,s.tZ)("div",{css:Nm.actionsWrapper({isLoading:g.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)(_.Z,{variant:"secondary",onClick:function(){return w(e.value)},children:e.label},e.value)}))})]}),(0,s.BX)("div",{css:Nm.buttonWrapper,children:[(0,s.tZ)(_.Z,{variant:"secondary",onClick:function(){i(t.generatedText)},disabled:g.isLoading,children:p("COM_SPPAGEBUILDER_EDITOR_AI_PLACE_TEXT")}),(0,s.tZ)(_.Z,{buttonCss:q.iZ.generateAiButton(g.isLoading),icon:g.isLoading?"":(0,s.tZ)(I.Z,{name:"recycle"}),onClick:Rm(Lm().mark((function e(){var r,i,a;return Lm().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 v(!1),r=Zl(Tm(Tm({},t),{},{popover:n})),e.next=6,g.mutateAsync({prompt:r});case 6:i=e.sent,a=i.data,o(Tm(Tm({},t),{},{popover:n,generatedText:a.choices[0].message.content}));case 9:case"end":return e.stop()}}),e)}))),loading:g.isLoading,children:p("COM_SPPAGEBUILDER_EDITOR_AI_REGENERATE")})]})]})};var km={name:"15furcq-actionsWrapper",styles:"pointer-events:none;label:actionsWrapper;"},Nm={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&&km,";;label:actionsWrapper;")}};function Gm(e){return Gm="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},Gm(e)}function Wm(){Wm=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Gm(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Um(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 Fm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Um(Object(r),!0).forEach((function(t){Hm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Um(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Hm(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Gm(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Gm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Gm(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qm(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 Vm(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){qm(i,n,o,a,l,"next",e)}function l(e){qm(i,n,o,a,l,"throw",e)}a(void 0)}))}}const zm=function(e){var t=e.popover,r=void 0===t?"prompt":t,n=e.generatedValues,o=e.onChange,i=e.onInsert,a=(0,A.$)(),l=(0,ut.v)((function(e){return e.appConfig})),u=Nl(),d=(0,xl.D)(null==n?void 0:n.prompt),p=(0,ot.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"}],h=[{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 v=p.handleSubmit(function(){var e=Vm(Wm().mark((function e(t){var n,i,a,l;return Wm().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=Zl(Fm(Fm({},t),{},{popover:r})),i=(0,ln.He)(p.getValues("characterLimit")),e.next=6,u.mutateAsync({prompt:n,maxTokens:i?Rl(i):void 0});case 6:a=e.sent,l=a.data,o(Fm(Fm({},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=Vm(Wm().mark((function e(t){var i,a,l,c;return Wm().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=Zl(Fm(Fm({},n),{},{prompt:p.getValues("prompt"),action:t})),a=(0,ln.He)(p.getValues("characterLimit")),e.next=6,u.mutateAsync({prompt:i,maxTokens:a?Rl(a):void 0});case 6:l=e.sent,c=l.data,o(Fm(Fm({},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:v,children:[(0,s.BX)("div",{css:$m.fieldWrapper({isLoading:u.isLoading}),children:[(0,s.tZ)(kt.Qr,{name:"prompt",control:p.control,render:function(e){return(0,s.tZ)(fn,Fm(Fm({},e),{},{label:a("COM_SPPAGEBUILDER_EDITOR_AI_WHAT_TO_GENERATE"),isCharacterCountVisible:!0}))}}),"edit"===r&&(0,s.tZ)("div",{css:$m.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)(_.Z,{variant:"secondary",onClick:function(){return b(e.value)},children:e.label},e.value)}))}),(0,s.tZ)(ru.Z,{header:{title:"Advance Settings"},cardHeaderCss:$m.cardHeaderCss,cardCss:$m.cardCss,children:(0,s.BX)("div",{css:$m.cardInnerWrapper,children:[(0,s.tZ)(kt.Qr,{name:"characterLimit",control:p.control,render:function(e){return(0,s.tZ)(rt.Z,Fm(Fm({},e),{},{type:"number",label:a("COM_SPPAGEBUILDER_EDITOR_AI_CHARACTER_LIMIT"),helpText:a("COM_SPPAGEBUILDER_EDITOR_AI_CHARACTER_LIMIT_HELP_TEXT")}))}}),(0,s.tZ)(kt.Qr,{name:"language",control:p.control,render:function(e){return(0,s.tZ)(tt.Z,Fm(Fm({},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)(kt.Qr,{name:"tone",control:p.control,render:function(e){return(0,s.tZ)(tt.Z,Fm(Fm({},e),{},{options:f,label:a("COM_SPPAGEBUILDER_EDITOR_AI_SELECT_TONE"),isClearable:!1}))}}),(0,s.tZ)(kt.Qr,{name:"useCase",control:p.control,render:function(e){return(0,s.tZ)(tt.Z,Fm(Fm({},e),{},{options:h,label:a("COM_SPPAGEBUILDER_EDITOR_AI_SELECT_USE_CASE"),isClearable:!1}))}})]})})]}),(0,s.BX)("div",{css:$m.buttonWrapper,children:["edit"===r&&(0,s.tZ)(_.Z,{variant:"secondary",disabled:u.isLoading,onClick:function(){i&&i(p.getValues("prompt"))},children:a("COM_SPPAGEBUILDER_EDITOR_AI_PLACE_TEXT")}),(0,s.tZ)(_.Z,{type:"submit",buttonCss:q.iZ.generateAiButton(u.isLoading),icon:u.isLoading?"":(0,s.tZ)(I.Z,{name:"generate"}),loading:u.isLoading,children:a("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE")})]})]})};var Xm={name:"njl2cv-fieldWrapper",styles:"pointer-events:none;label:fieldWrapper;"},$m={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&&Xm,";;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 Km(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)||Ym(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 Ym(e,t){if(e){if("string"==typeof e)return Qm(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)?Qm(e,t):void 0}}function Qm(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 Jm=function(e){var t=e.isOpen,r=e.fieldValue,n=e.triggerRef,o=e.onChange,a=e.onClose,l=e.popoverGap,u=(0,A.$)(),d=r.trim().length>0,p=Km((0,c.useState)(d?"edit":"prompt"),2),f=p[0],h=p[1],v=Km((0,c.useState)({prompt:d?r:"",popover:d?"edit":"prompt",generatedText:"",characterLimit:"1000",language:"",tone:"standard",useCase:"others"}),2),b=v[0],y=v[1],m=Km((0,c.useState)([]),2),g=m[0],E=m[1],O=Km((0,c.useState)(0),2),w=O[0],C=O[1],S=(0,de.l)({isOpen:t,triggerRef:n,gap:l,arrow:"right"}),x=S.position,P=S.popoverRef,L=function(){var e=r.trim().length>0;h(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 L(),function(){return L()}}),[r]);var T=function(e){var t;b.prompt!==e.prompt?(E([e]),y(e),C(0)):(E([].concat(function(e){if(Array.isArray(e))return Qm(e)}(t=g)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Ym(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),C(g.length)),h("regenerate")};return(0,s.tZ)(de.h,{isOpen:t,children:(0,s.tZ)("div",{css:(0,i.iv)({position:"absolute",left:x.left,top:x.top},";label:AiTextPopoverController;"),ref:P,children:(0,s.tZ)(ru.Z,{header:{title:(0,s.BX)("div",{children:["regenerate"===f&&(0,s.tZ)(_.Z,{variant:"text",icon:(0,s.tZ)(I.Z,{name:"arrowLeft",height:20,width:20}),onClick:function(){h("prompt"),y({prompt:"",popover:"prompt",generatedText:"",characterLimit:"1000",language:"",tone:"standard",useCase:"others"}),E([])},buttonCss:eg.leftArrowButtonCss}),u("regenerate"===f?"COM_SPPAGEBUILDER_EDITOR_AI_WRITE_NEW_PROMPT":"COM_SPPAGEBUILDER_EDITOR_AI_TEXT_GENERATOR")]}),actionTray:(0,s.tZ)(_.Z,{variant:"text",onClick:a,buttonCss:eg.crossButton,children:(0,s.tZ)(I.Z,{name:"cross",height:24,width:24})})},cardCss:eg.cardStyle,hideArrow:!0,children:(0,s.tZ)("div",{css:eg.cardInnerSection,children:function(){switch(f){case"regenerate":return(0,s.tZ)(Mm,{onEdit:function(){h("prompt")},onInsert:function(e){o(e),a()},onChange:T,generatedValues:b,onPaginate:function(e){var t=g[e];y(t),C(e)},totalItems:g.length,currentIndex:w});case"edit":return(0,s.tZ)(zm,{generatedValues:b,popover:"edit",onChange:T,onInsert:function(e){o(e),a()}});default:return(0,s.tZ)(zm,{generatedValues:b,onChange:T})}}()})})})})};var eg={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 tg(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 rg=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=e.showGenAI,h=void 0===f?1:f,v=e.customWrapperCss,b=e.placeholder,y=e.required,m=void 0!==y&&y,g=(0,A.$)(),E=(0,ut.v)((function(e){return e.appConfig})),O=(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 tg(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)?tg(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.")}()),w=O[0],C=O[1],S=(0,c.useRef)(null),x=(0,c.useRef)(null),P=(0,on.F)((function(e){return e.payload})),L=P.addonIndex,D=P.sectionIndex,Z=P.columnIndex,R=P.tableItem;return(0,s.tZ)(re.Z,{label:n,field:o,fieldState:i,disabled:a,loading:l,helpText:u,responsive:d,responsiveOrientation:p,required:m,children:function(){var e,t=null!==(e=o.value)&&void 0!==e?e:"",r="".concat(null!=D?D:0,"-").concat(null!=Z?Z:0,"-").concat(null!=L?L:0);if((0,T.$K)(R)){var n=R.rowItemIdx,i=void 0===n?-1:n,a=R.itemIdx,l=R.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:[ng.wrapper,v&&v,";label:RichTextEditorField;"],children:[!T.Eu&&E.enable_ai&&(0,ln.sw)(h)&&(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:q.iZ.generateWithAiButtonWrapper,children:(0,s.tZ)(_.Z,{ref:S,onClick:function(){return C(!0)},icon:(0,s.tZ)(I.Z,{name:"wand",height:18,width:18}),css:q.iZ.generateWithAiButton(),children:g("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE_WITH_AI")})}),(0,s.tZ)(Jm,{isOpen:w,fieldValue:u?c:"",onClose:function(){return C(!1)},onChange:function(e){var t;o.onChange(e),null===(t=x.current)||void 0===t||t.commands.setContent(e),C(!1)},triggerRef:S,popoverGap:20})]}),(0,s.tZ)(Cm,{value:d,onChange:function(e){o.onChange(e)},editorRef:x,placeholder:b},r)]})}})};var ng={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[12],";;label:wrapper;")};const og=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)(re.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,ln.o5)(r.value,i);return(0,s.tZ)(s.HY,{children:(0,s.tZ)("div",{css:ig.wrapper({columns:d}),children:n.map((function(e){return(0,s.tZ)(_.Z,{variant:"text",buttonCss:ig.thumbItem({isActive:a===e.value}),onClick:function(){var t=(0,ln.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:ig.icon({isActive:a===e.value}),dangerouslySetInnerHTML:{__html:e.icon}})},e.value)}))})})}})};var ig={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 ag(e){return ag="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},ag(e)}function lg(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 cg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lg(Object(r),!0).forEach((function(t){ug(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ug(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ag(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ag(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ag(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sg(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 dg(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)?dg(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 dg(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 pg=[{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"}]}],fg={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 hg=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=sg((0,c.useState)((function(){return(0,T.$K)(t.value)&&(0,T.Kn)(t.value)?t.value:fg})),2),f=p[0],h=p[1],v=(0,pe.N)(f),b=(0,on.F)((function(e){return e.payload})),y=b.sectionIndex,m=b.columnIndex,g=b.addonIndex,E=b.tableItem,O=(0,an.s)((function(e){return e.currentState}));(0,c.useEffect)((function(){h(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?C(-1):js(cg({},f),C)}),[y,m,g,E,O]),(0,c.useEffect)((function(){t.onChange(v),d&&d(v)}),[v]);var _=sg((0,c.useState)(4),2),w=_[0],C=_[1],I=function(e){var t=cg({},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,cg({},t)),n=cg({},f);n.transform_origin=r,h(n),C(e)};return(0,s.tZ)(re.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:vg.wrapper,children:pg.map((function(e){return(0,s.BX)("div",{children:[!!e.label&&(0,s.tZ)("div",{css:vg.groupLabel,children:e.label}),(0,s.BX)("div",{css:vg.groupFieldWrapper,children:[e.fields.map((function(t){var r=f[e.fieldKey][t.fieldKey];return e.isNoUnit?(0,s.tZ)(Je.Z,{label:t.label,value:r,type:"number",onChange:function(r){var n=(0,Ns.ZP)(f,(function(n){(0,T.$K)(n[e.fieldKey])&&(n[e.fieldKey][t.fieldKey]=r)}));h(n)}},t.fieldKey):(0,s.tZ)(Rs.Z,{label:t.label,isAngleUnit:e.isAngleUnit,fieldValue:r,isLarge:!0,onChange:function(r){var n=(0,Ns.ZP)(f,(function(n){var o=n[e.fieldKey];(0,T.$K)(o)&&(o[t.fieldKey]=r)}));"transform_origin"===e.fieldKey&&js(cg({},n),C),h(n)},inputCss:vg.inputCss,unitInputStyles:vg.unitInputStyles},t.fieldKey)})),"transform_origin"===e.fieldKey&&(0,s.tZ)(Ds,{activeIndex:w,onClick:I})]})]},e.fieldKey)}))})}})};var vg={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 bg(e){return bg="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},bg(e)}function yg(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 mg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yg(Object(r),!0).forEach((function(t){gg(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gg(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==bg(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==bg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===bg(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eg(e){return function(e){if(Array.isArray(e))return wg(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 Og(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 wg(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)?wg(e,t):void 0}}function wg(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 Cg=function(e){var t,r,n,o=e.options,i=e.onChange,a=void 0===i?T.ZT:i,l=e.clearOption,u=void 0===l?T.ZT:l,d=e.label,p=e.readOnly,f=e.isSearchable,h=void 0!==f&&f,v=e.isClearable,b=void 0===v||v,y=e.isInlineLabel,m=void 0!==y&&y,g=e.isFontWeight,E=void 0!==g&&g,O=e.value,C=e.caretSize,S=void 0===C?20:C,x=e.infiniteScroll,P=void 0!==x&&x,L=e.wrapperStyle,D=e.disabled,Z=e.optionsStyleVariant,R=void 0===Z?"regular":Z,j=e.hasGroup,B=void 0!==j&&j,M=e.portalWidth,k=(0,A.$)(),N=(0,T.x0)(),G=Og((0,c.useState)(""),2),W=G[0],U=G[1],F=Og((0,c.useState)(""),2),H=F[0],q=F[1],V=Og((0,c.useState)(!1),2),z=V[0],X=V[1],$=Og((0,c.useState)([]),2),K=$[0],Y=$[1],Q=(0,c.useState)(function(e){var t={};return e.forEach((function(e,r){e.disabled&&(t[r]=!0)})),t}(o)),J=Og(Q,2),ee=J[0],te=J[1],re=(0,pe.N)(H),ne=(0,c.useMemo)((function(){return Y([]),h?o.filter((function(e){return e.label.toLowerCase().startsWith(re.toLowerCase())})):o}),[re,h,o]),oe=(0,de.l)({isOpen:z,isDropdown:!0}),ie=oe.triggerRef,ae=oe.triggerWidth,le=oe.position,ce=oe.popoverRef,ue=(0,it.Z)(),se=ue.intersectionEntry,fe=ue.intersectionElementRef,he=ne.length>K.length;return(0,c.useEffect)((function(){var e,t,r=null!==(e=null===(t=o.find((function(e){return String(e.value)===String(null==O?void 0:O.value)})))||void 0===t?void 0:t.label)&&void 0!==e?e:"";U(r)}),[o,O]),(0,c.useEffect)((function(){if(P){if(null!=se&&se.isIntersecting&&he){var e=K.length,t=e+20;Y((function(r){return[].concat(Eg(r),Eg(ne.slice(e,t)))}))}}else Y(ne)}),[ne,null==se?void 0:se.isIntersecting]),(0,s.BX)("div",{css:[Tg.mainWrapper,L,";label:TypographyPreset;"],children:[(0,s.BX)("div",{css:Tg.inputLabelWrapper(m),ref:ie,children:[!!d&&(0,s.tZ)("label",{htmlFor:N,css:Tg.label(m),children:d}),(0,s.BX)("div",{css:Tg.customInputWrapper,children:[O?(0,s.tZ)("div",{css:Tg.customInput,onClick:function(){return X((function(e){return!e}))},children:(0,s.BX)("div",{css:Tg.presetInputContent,children:[(0,s.tZ)("span",{css:Tg.presetPlaceholder(null==O?void 0:O.fontWeight),children:null===(t=O.label)||void 0===t?void 0:t.split(" ")[0]}),(0,s.tZ)("span",{css:Tg.presetDetails,children:null===(r=O.label)||void 0===r?void 0:r.split(" ")[1]}),(0,s.tZ)("div",{css:Tg.separator,children:(0,s.tZ)("span",{})}),(0,s.tZ)("span",{css:Tg.presetDetails,children:null===(n=O.label)||void 0===n?void 0:n.split(" ")[2]})]})}):(0,s.tZ)("div",{css:Tg.customInput,onClick:function(){return X((function(e){return!e}))},children:(0,s.tZ)("span",{css:Tg.placeholderText,children:k("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_PRESET_PLACEHOLDER")})}),(0,s.tZ)("button",{type:"button",css:Tg.caretButton,onClick:function(){X((function(e){return!e}))},disabled:D||p||0===o.length,children:(0,s.tZ)(I.Z,{name:"chevronDown",width:S,height:S,style:Tg.toggleIcon({isOpen:z})})})]})]}),(0,s.tZ)(de.h,{isOpen:z,onClickOutside:function(){return X(!1)},children:(0,s.BX)("div",{css:[Tg.optionsWrapper,{left:le.left,top:le.top,maxWidth:(0,T.$K)(M)?M:ae},";label:TypographyPreset;"],ref:ce,children:[(0,s.BX)("ul",{css:Tg.options,children:[K.map((function(e,t){var r,n,o;if(!function(e,t){if(e.disabled)return!1;for(var r=-1,n=t-1;n>=0;n--)if(K[n].disabled){r=n;break}return-1!==r&&!ee[r]}(e,t))return(0,s.BX)("li",{css:Tg.optionItem({isSelected:e.value===(null==O?void 0:O.value),optionsStyleVariant:R,isDisabled:!!e.disabled,hasGroup:B,variant:e.variant}),children:[!!e.disabled&&(0,s.tZ)("div",{css:Tg.groupHeaderIcon,children:(0,s.tZ)(I.Z,{name:"chevronRight",width:10,height:10,css:Tg.toggleGroup({isOpen:ee[t]})})}),(0,s.BX)(_.Z,{variant:"text",buttonCss:Tg.optionButton({fontWeight:E?e.value:"inherit"}),onClick:function(){e.disabled?function(e){te((function(t){return mg(mg({},t),{},gg({},e,!t[e]))}))}(t):(U(e.label),q(""),a(e),X(!1))},children:[e.disabled&&e.label,!e.disabled&&(0,s.BX)("div",{css:Tg.presetWrapper,children:[(0,s.tZ)("span",{css:Tg.presetPlaceholder(null==e?void 0:e.fontWeight),children:null===(r=e.label)||void 0===r?void 0:r.split(" ")[0]}),(0,s.tZ)("span",{css:Tg.presetDetails,children:null===(n=e.label)||void 0===n?void 0:n.split(" ")[1]}),(0,s.tZ)("div",{css:Tg.separator,children:(0,s.tZ)("span",{})}),(0,s.tZ)("span",{css:Tg.presetDetails,children:null===(o=e.label)||void 0===o?void 0:o.split(" ")[2]})]})]})]},String(e.value))})),(0,s.tZ)("div",{ref:fe,css:Tg.spinnerWrapper({isVisible:he}),children:(0,s.tZ)(w.ZP,{})})]}),b&&(0,s.tZ)("div",{css:Tg.clearButton({isDisabled:""===W}),children:(0,s.tZ)(_.Z,{variant:"text",disabled:""===W,icon:(0,s.tZ)(I.Z,{name:"recycleAlt"}),onClick:function(){u(),U(""),q(""),X(!1)},children:k("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})]})};var Ig={name:"9jddly-spinnerWrapper",styles:"display:none;label:spinnerWrapper;"},Sg={name:"omed8-toggleGroup",styles:"transform:rotate(90deg);label:toggleGroup;"},xg={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},Pg={name:"zjfq51-input",styles:"cursor:pointer;label:input;"},Lg={name:"1je746r-label",styles:"flex:1;label:label;"},Ag={name:"1nbzsgk-inputLabelWrapper",styles:"display:flex;flex-direction:row;align-items:center;justify-content:space-between;>div{flex:1;};label:inputLabelWrapper;"},Tg={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&&Ag,";;label:inputLabelWrapper;")},label:function(e){return(0,i.iv)(o.c.caption()," ",e&&Lg,";;label:label;")},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&&Pg," :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;",q.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,s=e.hasGroup,d=void 0!==s&&s,p=e.variant,f=void 0===p?"regular":p;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;","critical"===f&&(0,i.iv)(">button>span{color:",n.qo.text.error,";};label:optionItem;")," ",l&&(0,i.iv)("pointer-events:none;>button{",o.c.body("bold"),";color:",d?n.qo.text.default:n.qo.text.disabled,";};label:optionItem;")," ",l&&(0,i.iv)("pointer-events:auto;>button{",o.c.caption("bold"),";color:",n.qo.text.default,";padding:",n.W0[8]," ",n.W0[4],";};label:optionItem;")," ",!l&&(0,i.iv)(">button{padding:",n.W0[8]," ",n.W0[20],";};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,";text-align:left;;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&&xg,";;label:toggleIcon;")},toggleGroup: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&&Sg,";;label:toggleGroup;")},caretButton:(0,i.iv)(q.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&&Ig,";;label:spinnerWrapper;")},groupHeaderIcon:(0,i.iv)("display:flex;align-items:center;margin-left:",n.W0[8],";;label:groupHeaderIcon;"),presetPlaceholder:function(e){return(0,i.iv)("font-size:",n.JB[14],";line-height:",n.Nv[18],";font-weight:",e,";;label:presetPlaceholder;")},presetDetails:(0,i.iv)(o.c.body(),";color:",n.qo.text.hints,";;label:presetDetails;"),presetWrapper:(0,i.iv)("display:flex;gap:",n.W0[6],";align-items:center;;label:presetWrapper;"),separator:(0,i.iv)(q.iZ.flexCenter(),";width:10px;height:10px;span{width:2px;height:2px;background-color:",n.qo.icon.default,";border-radius:",n.E0.circle,";margin:auto;};label:separator;"),customInputWrapper:{name:"18bv533-customInputWrapper",styles:"width:100%;position:relative;label:customInputWrapper;"},customInput:(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,";display:flex;align-items:center;cursor:pointer;background-color:white;&:focus,&:hover{outline:none;box-shadow:",n.AF.outline,";};label:customInput;"),presetInputContent:(0,i.iv)("display:flex;gap:",n.W0[6],";align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;;label:presetInputContent;"),placeholderText:(0,i.iv)("color:",n.qo.text.hints,";;label:placeholderText;")},Dg=r(8225);function Zg(e){return Zg="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},Zg(e)}function Rg(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 jg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rg(Object(r),!0).forEach((function(t){Bg(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Bg(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Zg(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Zg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Zg(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mg(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)||kg(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 kg(e,t){if(e){if("string"==typeof e)return Ng(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)?Ng(e,t):void 0}}function Ng(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 Gg={100:"Thin",200:"ExtraLight",300:"Light",400:"Normal",500:"Medium",600:"SemiBold",700:"Bold",800:"ExtraBold",900:"Black"};const Wg=function(e){var t,r,n,o,a=e.isOpen,l=e.onClose,u=e.onChange,d=e.triggerRef,p=e.typographyValues,f=e.device,h=e.popoverGap,v=void 0===h?20:h,b=e.showPresets,y=void 0===b||b,m=(0,A.$)(),g=(0,ut.v)((function(e){return e.appConfig.is_google_fonts_disabled})),E=Mg((0,c.useState)(nn.zu),2),O=E[0],w=E[1],C=(0,Dg.LY)(),S=null!==(t=null===(r=C.data)||void 0===r?void 0:r.typography)&&void 0!==t?t:[],x=(0,c.useMemo)((function(){return t=null==(e=S)?void 0:e.flatMap((function(e,t){var r,n,o,i={label:e.name,value:t,disabled:!0},a=null!==(r=null==e||null===(n=e.typography)||void 0===n?void 0:n.map((function(e,r){var n,o,i=e.weight&&Gg[e.weight]?"".concat(Gg[e.weight]):"/Default";return{label:"Ag ".concat(i," ").concat((null==e||null===(n=e.size[f])||void 0===n?void 0:n.value)||"00","/").concat((null==e||null===(o=e.line_height[f])||void 0===o?void 0:o.value)||"00").trim(),value:"".concat(t,".").concat(r),disabled:!1,fontWeight:e.weight}})))&&void 0!==r?r:[];return[i].concat(function(e){if(Array.isArray(e))return Ng(e)}(o=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||kg(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.")}())})),t;var e,t}),[S,f]),P=function(e,t,r){var n,o,i=Mg(String(e).split("."),2),a=i[0],l=i[1],c=t[Number(a)],u=null==c?void 0:c.typography[Number(l)];if(!u)return null;var s=u.weight&&Gg[u.weight]?"".concat(Gg[u.weight]):"Default";return{label:"Ag ".concat(s," ").concat((null==u||null===(n=u.size[r])||void 0===n?void 0:n.value)||"00","/").concat((null==u||null===(o=u.line_height[r])||void 0===o?void 0:o.value)||"00").trim(),value:e}},L=Mg((0,c.useState)(null!==(n=P(null!==(o=p.preset)&&void 0!==o?o:"",S,f))&&void 0!==n?n:null),2),D=L[0],Z=L[1];(0,c.useEffect)((function(){if(null!=p&&p.preset){var e,t=P(null!==(e=p.preset)&&void 0!==e?e:"",S,f);if(!t&&C.isFetched)return Z(null),void u(jg(jg({},p),{},{preset:""}));Z(t)}else Z(null)}),[C.isFetched,S,f]);var R=[{label:"px",value:"px"},{label:"rem",value:"rem"},{label:"em",value:"em"},{label:"%",value:"%"},{label:"None",value:""}],j=(0,de.l)({isOpen:a,triggerRef:d,gap:v,arrow:"right"}),B=j.position,M=j.popoverRef,k=(0,vv.Sh)(),N=(0,c.useMemo)((function(){var e;return(0,bv.c)(null!==(e=k.data)&&void 0!==e?e:[],g)}),[k.data,g]),G={italic:p.italic,underline:p.underline,uppercase:p.uppercase},W=N.find((function(e){return e.value===p.font})),U=(0,c.useMemo)((function(){var e=[{value:"",label:m("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_FONT_WEIGHT")},{value:"100",label:m("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_THIN")},{value:"200",label:m("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_EXTRA_THIN")},{value:"300",label:m("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_LIGHT")},{value:"400",label:m("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_NORMAL")},{value:"500",label:m("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_MEDIUM")},{value:"600",label:m("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_SEMI_BOLD")},{value:"700",label:m("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_BOLD")},{value:"800",label:m("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_EXTRA_BOLD")},{value:"900",label:m("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_BLACK")}];return W&&(0,T.$K)(W.variants)?e.filter((function(e){var t,r;return(null!==(t=null===(r=W.variants)||void 0===r?void 0:r.map((function(e){return(0,bv.vn)(e).weight.toString()})))&&void 0!==t?t:[]).includes(e.value)})):e}),[W,m]);return(0,s.tZ)(de.h,{isOpen:a,onClickOutside:l,children:(0,s.tZ)("div",{css:(0,i.iv)({position:"absolute",left:B.left,top:B.top},";label:TypographyPopover;"),ref:M,children:(0,s.tZ)(ru.Z,{header:{title:y?m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_TITLE"):(0,s.BX)("div",{css:Hg.tabContainer,children:[(0,s.tZ)("span",{css:Hg.tabItem,children:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_TITLE")}),(0,s.tZ)(re.d,{device:O,onChangeResponsiveDevice:function(e){return w(e)}})]}),actionTray:(0,s.tZ)(_.Z,{variant:"text",onClick:l,buttonCss:Hg.crossButton,children:(0,s.tZ)(I.Z,{name:"cross",height:24,width:24})})},cardCss:Hg.cardStyle,hideArrow:!0,children:(0,s.BX)("div",{css:Hg.cardInnerSection(y,!!p.preset),children:[y&&(0,s.tZ)("div",{css:Hg.presetWrapperStyle,children:(0,s.tZ)(Cg,{label:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_PRESET_LABEL"),options:x,onChange:function(e){var t=Mg(String(e.value).split("."),2),r=t[0],n=t[1],o=S[Number(r)].typography[Number(n)];Z(e),u(jg(jg({},o),{},{preset:String(e.value)}))},value:D,clearOption:function(){Z(null),u(jg(jg({},p),{},{preset:""}))}})}),y&&(""===p.preset||!(0,T.$K)(p.preset))&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(ku.Z,{options:N,value:W,label:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_LABEL"),placeholder:m("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),onChange:function(e){var t,r;Z(null),u(jg(jg({},p),{},{font:e.value,type:null!==(t=e.type)&&void 0!==t?t:"google",weight:"",preset:""}),null!==(r=e.variants)&&void 0!==r?r:[])},clearOption:function(){return u(jg(jg({},p),{},{font:""}))},isSearchable:!0}),(0,s.BX)("div",{css:Hg.sizeLineHeightSpaceWrapper,children:[(0,s.tZ)(Rs.Z,{label:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_SIZE_LABEL"),fieldValue:p.size[f],onChange:function(e){var t;Z(null),u(jg(jg({},p),{},{size:jg(jg({},p.size),{},Bg({},f,e)),preset:""}),null!==(t=null==W?void 0:W.variants)&&void 0!==t?t:[])}}),(0,s.tZ)(Rs.Z,{label:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_LINE_HEIGHT_LABEL"),fieldValue:p.line_height[f],customUnitOptions:R,onChange:function(e){var t;Z(null),u(jg(jg({},p),{},{line_height:jg(jg({},p.line_height),{},Bg({},f,e)),preset:""}),null!==(t=null==W?void 0:W.variants)&&void 0!==t?t:[])}}),(0,s.tZ)(Rs.Z,{label:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_LETTER_SPACE_LABEL"),fieldValue:p.letter_spacing[f],onChange:function(e){var t;Z(null),u(jg(jg({},p),{},{letter_spacing:jg(jg({},p.letter_spacing),{},Bg({},f,e)),preset:""}),null!==(t=null==W?void 0:W.variants)&&void 0!==t?t:[])}})]}),(0,s.BX)("div",{css:Hg.textDecorationWrapper,children:[(0,s.tZ)(wv,{label:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_STYLE_LABEL"),values:G,onChange:function(e){var t;Z(null),u(jg(jg(jg({},p),e),{},{preset:""}),null!==(t=null==W?void 0:W.variants)&&void 0!==t?t:[])},wrapperStyle:Hg.wrapperStyle}),(0,s.tZ)(ku.Z,{label:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_WEIGHT_LABEL"),options:U,value:U.find((function(e){return String(e.value)===String(p.weight)})),onChange:function(e){var t;Z(null),u(jg(jg({},p),{},{weight:e.value,preset:""}),null!==(t=null==W?void 0:W.variants)&&void 0!==t?t:[])},clearOption:function(){return u(jg(jg({},p),{},{weight:""}))},wrapperStyle:Hg.wrapperStyle,isFontWeight:!0})]})]}),!y&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(ku.Z,{options:N,value:W,label:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_LABEL"),placeholder:m("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),onChange:function(e){var t,r;u(jg(jg({},p),{},{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 u(jg(jg({},p),{},{font:""}))},isSearchable:!0}),(0,s.BX)("div",{css:Hg.sizeLineHeightSpaceWrapper,children:[(0,s.tZ)(Rs.Z,{label:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_SIZE_LABEL"),fieldValue:p.size[O],onChange:function(e){var t;u(jg(jg({},p),{},{size:jg(jg({},p.size),{},Bg({},O,e))}),null!==(t=null==W?void 0:W.variants)&&void 0!==t?t:[])}}),(0,s.tZ)(Rs.Z,{label:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_LINE_HEIGHT_LABEL"),fieldValue:p.line_height[O],customUnitOptions:R,onChange:function(e){var t;u(jg(jg({},p),{},{line_height:jg(jg({},p.line_height),{},Bg({},O,e))}),null!==(t=null==W?void 0:W.variants)&&void 0!==t?t:[])}}),(0,s.tZ)(Rs.Z,{label:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_LETTER_SPACE_LABEL"),fieldValue:p.letter_spacing[O],onChange:function(e){var t;u(jg(jg({},p),{},{letter_spacing:jg(jg({},p.letter_spacing),{},Bg({},O,e))}),null!==(t=null==W?void 0:W.variants)&&void 0!==t?t:[])}})]}),(0,s.BX)("div",{css:Hg.textDecorationWrapper,children:[(0,s.tZ)(wv,{label:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_STYLE_LABEL"),values:G,onChange:function(e){var t;u(jg(jg({},p),e),null!==(t=null==W?void 0:W.variants)&&void 0!==t?t:[])},wrapperStyle:Hg.wrapperStyle}),(0,s.tZ)(ku.Z,{label:m("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_WEIGHT_LABEL"),options:U,value:U.find((function(e){return String(e.value)===String(p.weight)})),onChange:function(e){var t;u(jg(jg({},p),{},{weight:e.value}),null!==(t=null==W?void 0:W.variants)&&void 0!==t?t:[])},clearOption:function(){return u(jg(jg({},p),{},{weight:""}))},wrapperStyle:Hg.wrapperStyle,isFontWeight:!0})]})]})]})})})})};var Ug={name:"1kynbdc-cardInnerSection",styles:"height:100px;label:cardInnerSection;"},Fg={name:"1yndalg-cardInnerSection",styles:"height:298px;label:cardInnerSection;"},Hg={cardStyle:(0,i.iv)("box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";;label:cardStyle;"),cardInnerSection:function(e,t){return(0,i.iv)(q.iZ.cardInnerSection,";flex-direction:column;gap:",n.W0[12],";padding:",n.W0[12],";width:304px;height:208px;transition:height 0.1s ease-in-out;",e&&Fg," ",e&&t&&Ug,";;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;"},presetWrapperStyle:(0,i.iv)("padding-bottom:",n.W0[16],";padding-left:",n.W0[10],";padding-right:",n.W0[10],";padding-top:",n.W0[10],";background-color:",n.qo.background.neutral,";border-radius:",n.E0[8],";>div>div>label{padding-left:",n.W0[4],";};label:presetWrapperStyle;"),tabContainer:(0,i.iv)("display:flex;gap:",n.W0[4],";;label:tabContainer;"),tabItem:(0,i.iv)("border-radius:",n.E0[4],";padding:",n.W0[4]," ",n.W0[8],";cursor:pointer;;label:tabItem;")};function qg(e){return qg="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},qg(e)}function Vg(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 zg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vg(Object(r),!0).forEach((function(t){Xg(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xg(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==qg(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==qg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===qg(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){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)||Kg(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 Kg(e,t){if(e){if("string"==typeof e)return Yg(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)?Yg(e,t):void 0}}function Yg(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 Qg={xl:{value:"",unit:"px"},lg:{value:"",unit:"px"},md:{value:"",unit:"px"},sm:{value:"",unit:"px"},xs:{value:"",unit:"px"}},Jg={font:"",uppercase:!1,italic:!1,underline:!1,weight:"",size:ks()(Qg),line_height:ks()(Qg),letter_spacing:ks()(Qg),type:"google"};const eE=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,h=(0,A.$)(),v=$g((0,c.useState)(!1),2),b=v[0],y=v[1],m=$g((0,c.useState)([]),2),g=m[0],E=m[1],O=(0,c.useRef)(null),_=(0,ut.v)((function(e){return e.appConfig.is_google_fonts_disabled})),w=(0,vv.Sh)(),C=(0,c.useMemo)((function(){return function(e){var t=p,r=(0,T.Kn)(t)&&(0,T.Zt)(t).length>0;if((0,T.$K)(e)&&(0,T.Kn)(e))return e;var n=ks()(Jg);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=Kg(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,T.Zt)(t));try{for(i.s();!(o=i.n()).done;){var a=o.value,l=$g(t[a].split("."),2),c=l[0],u=l[1];if((0,T.$K)(f[c]))if(u){var s=f[c];if((0,T.$K)(s[u])){if(!(0,T.Kn)(n[a])){n[a]=s[u];continue}if(!(0,T.Kn)(s[u])){n[a][nn.zu].value=f[c];continue}for(var d=0,h=Object.entries(s[u]);d<h.length;d++){var v=$g(h[d],2),b=v[0],y=v[1],m=(0,T.Kn)(y)?y:{value:y};n[a][b]=zg(zg({},n[a][b]),m)}}}else{if(!(0,T.Kn)(n[a])){n[a]=f[c];continue}if(!(0,T.Kn)(f[c])){n[a][nn.zu].value=f[c];continue}for(var g=0,E=Object.entries(f[c]);g<E.length;g++){var O=$g(E[g],2),_=O[0],w=O[1],C=(0,T.Kn)(w)?w:{value:w};n[a][_]=zg(zg({},n[a][_]),C)}}}}catch(e){i.e(e)}finally{i.f()}return n}(t.value)}),[t.value,f,p]);return(0,c.useEffect)((function(){if(C.font&&w.data){var e=(0,T.$K)(C.type)?C.type:"google";"google"!==e||_?"local"===e&&(0,bv.pE)({family:C.font,variants:g.length>0?g:[String(C.weight)]},"local"):(0,bv.pE)({family:C.font,variants:g.length>0?g:[String(C.weight)]},"google",w.data)}}),[C.font,C.weight,g,w.data]),(0,s.tZ)(s.HY,{children:(0,s.tZ)(re.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(C.size[r].value||"00","/").concat(C.line_height[r].value||"00");return(0,s.BX)(s.HY,{children:[(0,s.BX)("button",{type:"button",css:oE.wrapper,ref:O,onClick:function(){return y(!0)},children:[(0,s.tZ)("span",{css:oE.font({font:C.font,fontWeight:C.weight,italic:C.italic,underline:C.underline,upperCase:C.uppercase}),title:C.font||h("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_EMPTY_FONT_PLACEHOLDER"),children:C.font||h("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_EMPTY_FONT_PLACEHOLDER")}),(0,s.tZ)("div",{css:oE.separator,children:(0,s.tZ)("span",{})}),(0,s.tZ)("div",{css:oE.sizeAndLineHeight,children:o}),(0,s.tZ)("div",{css:oE.iconWrapper,children:(0,s.tZ)(I.Z,{name:"settings",height:20,width:20})})]}),(0,s.tZ)(Wg,{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:O,typographyValues:C,showPresets:!T.Eu})]})}})})};var tE={name:"1v13n35-font",styles:"text-transform:uppercase;label:font;"},rE={name:"10mr6hu-font",styles:"text-decoration:underline;label:font;"},nE={name:"gwvx45-font",styles:"font-style:italic;label:font;"},oE={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&&nE," ",c&&rE," ",s&&tE,";;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 iE(e){return iE="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},iE(e)}function aE(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 lE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aE(Object(r),!0).forEach((function(t){cE(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cE(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==iE(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==iE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===iE(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uE=function(e){var t,r,n=e.field,o=e.name,i=e.hideLabel,a=void 0!==i&&i,l=e.form,c=e.fromRepeatableField,u=void 0!==c&&c,d=e.parentKey,p=(0,A.$)(),f=null!==(t=l.getValues("extension_view"))&&void 0!==t?t:"page",h=null!==(r=l.getValues("view_id"))&&void 0!==r?r:null;switch(n.type){case"attribute":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){var t;return(0,s.tZ)(Yp,lE(lE({},e),{},{allowedTypes:null!==(t=n.allowed_types)&&void 0!==t?t:[],placeholder:p("COM_SPPAGEBUILDER_EDITOR_ADDON_COLLECTION_TEXT_FIELD_SOURCE_PLACEHOLDER"),label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,collectionId:"dynamic_content:detail"===f?h:null}))}});case"filter":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(Bh,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,collectionId:"dynamic_content:detail"===f?h:null}))}});case"hidden":case"gmap":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(rt.Z,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,isDebounced:!0}))}});case"text":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(rt.Z,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,placeholder:n.placeholder,isDebounced:!0}))}});case"preset":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(Rb,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,options:(0,ln.qb)(n.values),placeholder:p("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"transform":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(hg,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"effects":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(hv,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"select":return n.multiple?(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(tn.Z,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,options:(0,ln.qb)(n.values),placeholder:p("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}}):(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){var t;return(0,s.tZ)(tt.Z,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,options:(0,ln.qb)(n.values),placeholder:p("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,isClearable:null===(t=n.is_clearable)||void 0===t||t}))}});case"dynamic_source":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){var t;return(0,s.tZ)(nv,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,placeholder:p("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,isClearable:null===(t=n.is_clearable)||void 0===t||t}))}});case"dynamic_field":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){var t;return(0,s.tZ)(Vh,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,placeholder:p("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,isClearable:null===(t=n.is_clearable)||void 0===t||t}))}});case"filter_control":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){var t;return(0,s.tZ)(Jf,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,placeholder:p("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,isClearable:null===(t=n.is_clearable)||void 0===t||t}))}});case"category":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(Gp,lE(lE({},e),{},{label:a?void 0:n.title,placeholder:p("COM_SPPAGEBUILDER_EDITOR_FIELD_CATEGORY_PLACEHOLDER"),helpText:n.desc,context:n.context,isMultiSelect:(0,ln.sw)(n.multiple),responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"plugin":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(_b,lE(lE({},e),{},{label:a?void 0:n.title,placeholder:p("COM_SPPAGEBUILDER_EDITOR_FIELD_CATEGORY_PLACEHOLDER"),helpText:n.desc,pluginType:n.plugin_type,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"accesslevel":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(Rd,lE(lE({},e),{},{label:a?void 0:n.title,placeholder:p("COM_SPPAGEBUILDER_EDITOR_FIELD_ACCESS_LEVEL_PLACEHOLDER"),helpText:n.desc,isMultiSelect:(0,ln.sw)(n.multiple),responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"animation":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(zu,lE(lE({},e),{},{helpText:n.desc}))}});case"alert":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){var t;return(0,s.tZ)(Lp,lE(lE({},e),{},{message:null!==(t=n.message)&&void 0!==t?t:"",isOldAddon:n.is_old_addon,title:n.title,variation:n.variation}))}});case"alignment":var v=(n.vertical?["start","center","end"]:["left","center","right"]).map((function(e){return{label:"",icon:n.vertical?ln.BI[e]:ln.C4[e],value:e}}));return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){var t,r;return(0,s.tZ)(Dp,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,options:null!==(t=null===(r=n.available_options)||void 0===r?void 0:r.map((function(e){return{label:"",icon:ln.C4[e],value:e}})))&&void 0!==t?t:v,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"headings":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(Tv,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,headingsOnly:!!n.headingsOnly,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"link":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){var t;return(0,s.tZ)(ob,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,linkPopup:!!n.link_popup,defaultTab:null!==(t=n.default_tab)&&void 0!==t?t:"url"}))}});case"color":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(He,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"advancedcolor":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(Op,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"textarea":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(fn,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"number":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(rt.Z,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,placeholder:(null==n?void 0:n.placeholder)||"",responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,isDebounced:!0}))}});case"module":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(fb,lE(lE({},e),{},{label:a?void 0:n.title,moduleType:n.module,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"checkbox":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(rn.Z,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,isInlineLabel:!0}))}});case"radio":case"advancedradio":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(_p,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,options:(0,ln.qb)(n.values),responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"icon":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(vd,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,isInlineLabel:!0}))}});case"editor":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(rg,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"media":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(_u,lE(lE({},e),{},{label:a?void 0:n.title,allowedMediaType:n.format||n.mediaType,helpText:n.desc,hidePreview:!!n.hide_preview,hideAltText:!!n.hide_alt_text,isLottieFile:!1,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"padding":case"margin":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(bs,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"boxshadow":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){var t,r;return(0,s.tZ)(xs,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,hasSpread:null===(t=null===(r=n.config)||void 0===r?void 0:r.spread)||void 0===t||t}))}});case"slider":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){var t,r;return(0,s.tZ)(di.Z,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,min:n.min,max:n.max,step:null!==(t=n.step)&&void 0!==t?t:1,info:n.info,hasUnit:!!n.unit,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,staticUnit:null!==(r=n.default_unit)&&void 0!==r?r:""}))}});case"advancedslider":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(xp,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,min:n.min,max:n.max,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"border":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(cs,lE(lE({},e),{},{responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation,title:n.title}))}});case"fontstyle":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(Lv,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"fonts":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(yv,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"frontend_navigator":return(0,s.tZ)(Cp,{});case"typography":var b=l.getValues(),y="settings"in b?b.settings:b;return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(eE,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,fallbacks:n.fallbacks,fieldSettings:y,responsive:!(0,T.$K)(n.responsive)||(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"codeeditor":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(_l,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"gradient":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(Js,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc}))}});case"buttons":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(Ls,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,options:(0,ln.qb)(n.values),responsive:(0,ln.sw)(n.responsive),responsiveOrientation:n.responsive_orientation}))}});case"thumbnail":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(og,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,columns:n.columns,options:(0,ln.qb)(n.values)}))}});case"image_shape":return(0,s.tZ)(kt.Qr,{control:l.control,name:o,render:function(e){return(0,s.tZ)(Vv,lE(lE({},e),{},{label:a?void 0:n.title,helpText:n.desc,columns:n.columns,options:(0,ln.qb)(n.values)}))}});case"repeatable":return u?null:(0,s.tZ)(Ff,{fieldName:o,parentKey:d,field:n,bulkImport:n.bulk_import});case"timeline":case"separator":return(0,s.tZ)(ju,{title:n.title});default:return null}},sE=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:dE.wrapper,children:(t=(0,T.Zt)(r),t.map((function(e){var o=r[e],a=o.fields,d=(0,T.Zt)(a),p=(0,Ld.ME)(a),f=(0,Ld.ed)(a);return(0,ln.uZ)(a)?0===d.length||"frontend"===o.client||(0,T.$K)(o.visibility)&&!o.visibility||(0,T.$K)(u)&&u.includes(e)?null:(0,s.tZ)(ru.Z,{hasBorder:l,header:function(){if((0,T.$K)(p)||!(t.length<=1))return{title:o.title,actionTray:(0,T.$K)(p)&&(0,s.tZ)(uE,{field:p.field,name:"".concat((0,T.HD)(i)?i:"").concat(p.name),hideLabel:!0,form:n})}}(),isCollapsed:f,disabledCaretCollapse:(0,T.$K)(p),children:(0,s.tZ)("div",{css:q.iZ.cardInnerSection,children:d.map((function(e){if((0,T.$K)(a[e].visibility)&&!a[e].visibility||(null==p?void 0:p.name)===e)return null;var t=a[e];return(0,s.tZ)(uE,{field:t,name:"".concat((0,T.HD)(i)?i:"").concat(e),parentKey:c,form:n},e)}))})},e):null})))})};var dE={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";;label:wrapper;")};function pE(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 fE=[{label:"General",value:"general"},{label:"Style",value:"style"},{label:"Advanced",value:"advanced"}];const hE=function(){var e,t,r=(0,kt.Gc)(),n=(0,on.F)((function(e){return e.payload})),o=(0,xd._)(),i=(o.getAddon,o.getTableItem,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 pE(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)?pE(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,aa.x)((function(e){return e.addonStructure})),d=(0,aa.x)((function(e){return e.globalSettings})),p=r.control,f=(0,kt.qo)({control:p,name:"settings"}),h=(0,c.useMemo)((function(){var e,t=n.addon;return null!==(e=null==t?void 0:t.name)&&void 0!==e?e:""}),[n]),v=(0,c.useMemo)((function(){return h?u[h].settings:null}),[h,u]),b=(0,c.useMemo)((function(){var e;return null!==(e={general:v,style:d.style,advanced:d.advanced}[a])&&void 0!==e?e:{}}),[a,d,v]);return(0,s.BX)(s.HY,{children:[(0,s.tZ)($i,{tabList:fE,activeTab:a,variant:"primary",onChange:function(e){l(e)}}),(0,s.tZ)("div",{css:q.M6.settingsPanelContent,children:(0,s.tZ)(sE,{settings:(0,Ld.VG)(b,f),form:r})})]})};function vE(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 bE=[{label:"General",value:"general"},{label:"Style",value:"style"},{label:"Advanced",value:"advanced"}];const yE=function(){var e,t,r=(0,kt.Gc)(),n=(0,on.F)((function(e){return e.payload})),o=(0,xd._)().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 vE(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)?vE(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,aa.x)((function(e){return e.addonStructure})),d=(0,aa.x)((function(e){return e.globalSettings})),p=r.control,f=(0,kt.qo)({control:p,name:"settings"}),h=(0,c.useMemo)((function(){var e,t=n.sectionIndex,r=n.columnIndex,i=n.addonIndex,a=n.collectionItem;if((0,T.$K)(t)&&(0,T.$K)(r)&&(0,T.$K)(i)&&(0,T.$K)(a))return null===(e=o({sectionIndex:t,columnIndex:r,addonIndex:i,collectionItem:a}))||void 0===e?void 0:e.name}),[n,o]),v=(0,c.useMemo)((function(){return h?u[h].settings:null}),[h,u]),b=(0,c.useMemo)((function(){var e;return null!==(e={general:v,style:d.style,advanced:d.advanced}[a])&&void 0!==e?e:{}}),[a,d,v]);return(0,s.BX)(s.HY,{children:[(0,s.tZ)($i,{tabList:bE,activeTab:a,variant:"primary",onChange:function(e){l(e)}}),(0,s.tZ)("div",{css:q.M6.settingsPanelContent,children:(0,s.tZ)(sE,{settings:(0,Ld.VG)(b,f),form:r})})]})};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=[{label:"General",value:"general"},{label:"Style",value:"style"},{label:"Advanced",value:"advanced"}];const EE=function(){var e,t,r=(0,kt.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 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}}(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,aa.x)((function(e){return e.addonStructure})),l=(0,aa.x)((function(e){return e.globalSettings})),u=r.control,d=(0,kt.qo)({control:u,name:"settings"}),p=(0,c.useMemo)((function(){var e=a[nn.oA.productList].settings;return(0,T.$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(0,s.BX)(s.HY,{children:[(0,s.tZ)($i,{tabList:gE,activeTab:o,variant:"primary",onChange:function(e){i(e)}}),(0,s.tZ)("div",{css:q.M6.settingsPanelContent,children:(0,s.tZ)(sE,{settings:(0,Ld.VG)(f,d),form:r})})]})};var OE=r(8331);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 wE=function(){var e,t,r=(0,A.$)(),n=(0,kt.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 _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}}(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.B)((function(e){return e.config})),u=n.control,d=(0,kt.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)($i,{tabList:p,activeTab:i,onChange:a}),(0,s.tZ)("div",{css:q.M6.settingsPanelContent,children:(0,s.tZ)(sE,{settings:(0,Ld.VG)(f,d),form:n})})]})};var CE=r(765);function IE(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 SE=[{label:"General",value:"general"},{label:"Style",value:"style"},{label:"Advanced",value:"advanced"}];const xE=function(){var e,t,r=(0,kt.Gc)(),n=(0,on.F)((function(e){return e.payload})),o=(0,CE.F)().getDynamicContentCollectionItemAddon,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 IE(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)?IE(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,aa.x)((function(e){return e.addonStructure})),d=(0,aa.x)((function(e){return e.globalSettings})),p=r.control,f=(0,kt.qo)({control:p,name:"settings"}),h=(0,c.useMemo)((function(){var e,t=n.sectionIndex,r=n.columnIndex,i=n.addon;if((0,T.$K)(t)&&(0,T.$K)(r)&&(0,T.$K)(i))return null===(e=o({sectionIndex:t,columnIndex:r,addon:i}))||void 0===e?void 0:e.name}),[n,o]),v=(0,c.useMemo)((function(){return h?u[h].settings:null}),[h,u]),b=(0,c.useMemo)((function(){var e;return null!==(e={general:v,style:d.style,advanced:d.advanced}[a])&&void 0!==e?e:{}}),[a,d,v]);return(0,s.BX)(s.HY,{children:[(0,s.tZ)($i,{tabList:SE,activeTab:a,variant:"primary",onChange:function(e){l(e)}}),(0,s.tZ)("div",{css:q.M6.settingsPanelContent,children:(0,s.tZ)(sE,{settings:(0,Ld.VG)(b,f),form:r})})]})};function PE(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 LE=function(e){var t,r,n=e.isInnerSection,o=void 0!==n&&n,i=(0,A.$)(),a=(0,kt.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 PE(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)?PE(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,OE.B)((function(e){return e.config})),f=a.control,h=(0,kt.qo)({control:f,name:"settings"}),v=[{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)($i,{tabList:v,activeTab:u,onChange:d}),(0,s.tZ)("div",{css:q.M6.settingsPanelContent,children:(0,s.tZ)(sE,{settings:(0,Ld.VG)(b,h),form:a,disabledGroups:o?nn.f9:void 0})})]})};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 TE(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,t,r){return(t=function(e){var t=function(e,t){if("object"!==AE(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==AE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===AE(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ZE=function(){var e=(0,on.F)((function(e){return e.type})),t=(0,on.F)((function(e){return e.payload})),r=(0,xd._)(),n=r.getAddon,o=r.getTableItem,i=r.getCollectionItemAddon,a=(0,A.$)();switch(e){case"addon":var l=t.sectionIndex,c=t.columnIndex,u=t.addonIndex,d=t.tableItem;if(!(0,T.$K)(l)||!(0,T.$K)(c)||!(0,T.$K)(u))return null;var p,f,h,v,b="";if((b=(0,T.$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!==(h=null===(v=n({sectionIndex:l,columnIndex:c,addonIndex:u}))||void 0===v?void 0:v.name)&&void 0!==h?h:"").startsWith(nn.HZ.name)){var y=(0,T.VL)(b),m=y.name,g=y.category;return(0,s.tZ)(et.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)(et.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,T.Dv)(b)}]});case"collection_item":var E,O,_,w=t.sectionIndex,C=t.columnIndex,I=t.addonIndex,S=t.collectionItem;return(0,T.$K)(w)&&(0,T.$K)(C)&&(0,T.$K)(I)&&(0,T.$K)(S)?(_=null!==(E=null===(O=n({sectionIndex:w,columnIndex:C,addonIndex:I}))||void 0===O?void 0:O.name)&&void 0!==E?E:"",(0,s.tZ)(et.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,T.Dv)(_)}]})):null;case"collection_item_addon":var x,P,L=t.sectionIndex,D=t.columnIndex,Z=t.addonIndex,R=t.collectionItem;if(!((0,T.$K)(L)&&(0,T.$K)(D)&&(0,T.$K)(Z)&&(0,T.$K)(R)))return null;var j="";if((j=null!==(x=null===(P=i({sectionIndex:L,columnIndex:D,addonIndex:Z,collectionItem:R}))||void 0===P?void 0:P.name)&&void 0!==x?x:"").startsWith(nn.HZ.name)){var B=(0,T.VL)(j),M=B.name,k=B.category;return(0,s.tZ)(et.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)(et.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,T.Dv)(j)}]});case"dynamic_content_collection_item_addon":var N=t.addon;return(0,T.$K)(N)?(0,s.tZ)(et.Z,{routes:[{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_DEFAULT")},{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_DYNAMIC")},{link:null,text:N.title}]}):null;case"column":return(0,s.tZ)(et.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)(et.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)(et.Z,{routes:[{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_DEFAULT")}]})}};const RE=function(){var e=(0,A.$)(),t=(0,on.F)((function(e){return{type:e.type,payload:e.payload}})),r=t.type,n=t.payload,o=(0,$o.o)((function(e){return e.updateSettings})),i=(0,kt.Gc)().control,a=(0,c.useDeferredValue)((0,kt.qo)({control:i,name:"settings"})),l=(0,xl.D)(a),u=(0,$o.o)((function(e){return e.page}));(0,c.useEffect)((function(){(0,Ku.isEqual)(a,l)||(0,T.$K)(a)&&(0,T.$K)(r)&&o(a,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?TE(Object(r),!0).forEach((function(t){DE(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TE(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,T.$K)(n.sectionIndex)||!u[n.sectionIndex].parent)}),[r,n,u]);return(0,s.BX)("div",{css:jE.wrapper,children:[(0,s.tZ)("div",{css:jE.header,children:(0,s.tZ)(ZE,{})}),(0,s.tZ)("div",{css:jE.content,children:function(){switch(r){case"addon":return(0,s.tZ)(hE,{});case"collection_item":return(0,s.tZ)(EE,{});case"collection_item_addon":return(0,s.tZ)(yE,{});case"dynamic_content_collection_item_addon":return(0,s.tZ)(xE,{});case"section":return(0,s.tZ)(LE,{isInnerSection:d});case"column":return(0,s.tZ)(wE,{});default:return(0,s.BX)("div",{css:jE.emptyState,children:[(0,s.tZ)("h4",{children:e("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_EMPTY_STATE_PLACEHOLDER")}),(0,s.tZ)("img",{src:Pd,alt:e("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_EMPTY_STATE_IMAGE_ALT")})]})}}()})]})};var jE={wrapper:(0,i.iv)("border-left:1px solid ",n.qo.stroke.neutral,";height:calc(100vh - ",nn.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 - ",nn.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 BE=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:GE.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:[GE.buttonCss(r||n,o,a),l],buttonContentCss:GE.buttonContentCss(a)};return c.cloneElement(e,s)}return e}))})};var ME={name:"1mnlghg-buttonContentCss",styles:"justify-content:center;label:buttonContentCss;"},kE={name:"1pk4jv6-buttonCss",styles:"flex:auto;label:buttonCss;"},NE={name:"1kfszus-buttonContainer",styles:"width:fit-content;label:buttonContainer;"},GE={buttonContainer:function(e,t){return(0,i.iv)("display:flex;overflow:hidden;",!t&&NE," ",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&&kE,";;label:buttonCss;")},buttonContentCss:function(e){return(0,i.iv)(e&&ME,";;label:buttonContentCss;")}},WE=r(6248);const UE=function(){var e=Ai((function(e){return{isActive:e.isActive,toggleIsActive:e.toggleIsActive}}),WE.X),t=e.isActive,r=e.toggleIsActive;return(0,s.BX)("button",{id:"topbar-burger-menu",type:"button",css:FE.menuButton(t),onClick:r,children:[(0,s.tZ)("span",{}),(0,s.tZ)("span",{}),(0,s.tZ)("span",{})]})};var FE={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;")}},HE=r(7184),qE=r(9194),VE=r(9148),zE=r(5827);const XE=r.p+"images/ab499a0ad1900e77012b.png",$E=r.p+"images/c8e141c0f0b135b048ec.png";var KE,YE;function QE(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function JE(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 eO=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 JE(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)?JE(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)(tO,{handleClose:l,updateStep:u}),second:(0,s.tZ)(rO,{updateStep:u}),third:(0,s.tZ)(nO,{handleClose:l})};return(0,s.tZ)(s.HY,{children:i in d?d[i]:null})},tO=function(e){var t=e.handleClose,r=e.updateStep,n=(0,A.$)();return(0,s.tZ)(Wt.Z,{onClose:t,title:n("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_TITLE"),isOverflowYAuto:!1,wrapperCss:aO.wrapper,children:(0,s.BX)("div",{css:aO.wrapper,children:[(0,s.BX)("div",{css:aO.contentWrapper,children:[(0,s.tZ)("div",{css:aO.fixingImageWrapper,children:(0,s.tZ)("img",{src:$E,alt:"fixing json",draggable:!1})}),(0,s.BX)("div",{css:aO.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:aO.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:aO.footerWrapper,children:[(0,s.tZ)(_.Z,{variant:"secondary",onClick:t,children:n("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_CANCEL")}),(0,s.tZ)(_.Z,{onClick:function(){r("second")},children:n("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON")})]})]})})},rO=function(e){var t=e.updateStep,r=(0,A.$)(),n=(0,$o.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:aO.secondStepWrapper,children:(0,s.BX)("div",{css:aO.contentWrapper,children:[(0,s.tZ)("div",{css:aO.fixingIcon,children:(0,s.tZ)(I.Z,{name:"fixingIcon",width:104,height:104})}),(0,s.BX)("div",{css:aO.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:aO.fixingText,children:[(0,s.tZ)(I.Z,{name:"arrowPath"}),(0,s.BX)("div",{css:aO.fixingNow,children:[(0,s.BX)("span",{children:[r("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_NOW_FIXING"),":"]}),(0,s.BX)("div",{css:aO.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")})]})]})]})]})]})})},nO=function(e){var t=e.handleClose,r=(0,A.$)();return(0,s.tZ)(Wt.Z,{onClose:t,title:r("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_TITLE_2"),isOverflowYAuto:!1,wrapperCss:aO.wrapper,children:(0,s.BX)("div",{css:aO.wrapper,children:[(0,s.BX)("div",{css:aO.contentWrapper,children:[(0,s.tZ)("div",{css:aO.fixingImageWrapper,children:(0,s.tZ)("img",{src:XE,alt:"fixing json completed",draggable:!1})}),(0,s.BX)("div",{css:aO.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:aO.footerWrapper,children:(0,s.tZ)(_.Z,{onClick:t,children:r("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_BUTTON_UNDERSTAND")})})]})})},oO=(0,i.F4)(KE||(KE=QE(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"]))),iO=(0,i.F4)(YE||(YE=QE(["\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"]))),aO={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:",iO," 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:",oO," 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 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 cO(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?cO(Object(r),!0).forEach((function(t){sO(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sO(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}function dO(){dO=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==lO(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function pO(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 fO(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){pO(i,n,o,a,l,"next",e)}function l(e){pO(i,n,o,a,l,"throw",e)}a(void 0)}))}}var hO=function(e){var t=e.pageType,r=e.extensionView,n=[nn.HZ.list.type,nn.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}]},vO=[{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"}];const bO=function(e){var t,r,n=e.isPopup,o=void 0!==n&&n,i=e.isNextClicked,a=e.setIsNextClicked,l=(0,A.$)(),u=(0,so.Z)(Bn.F.PageEditor),d=u.id,p=u.type,f=(0,kt.Gc)(),h=(0,kt.Gc)(),v=(0,Mn.s0)(),b=(0,Mn.TH)(),y=Ai((function(e){return e.setIsActive})),m=(0,Kt.d)(),g=m.showModal,E=m.closeModal,O=(0,fe.p)().showToast,w=(0,nt.g)(),C=(0,zE.L)(),S=(0,Mo.J5)(),x=(0,c.useRef)(null),P=(0,Mo.eS)(Number(d)),D=(0,c.useMemo)((function(){return P.data?P.data.url:""}),[P.data]),Z=(0,on.F)((function(e){return e.payload})),R=Z.sectionIndex,j=Z.columnIndex,B=Z.addonIndex,M=(0,on.F)((function(e){return e.type})),k=(0,HE.Xu)(),N=(0,$o.o)((function(e){return e.clearPageContent})),G=(0,an.s)((function(e){return e.pastStates})),W=(0,an.s)((function(e){return e.futureStates})),U=(0,an.s)((function(e){return e.undo})),F=(0,an.s)((function(e){return e.redo})),H=(0,ko.T)().closeSettingPanel,q=(0,qE.HX)(),V=zo(),z=V.savePageContent,X=V.isLoading,$=function(){var e=(0,Kt.d)().showModal;return{showJSONValidationModal:function(t){return e({component:eO,props:t})}}}(),K=$.showJSONValidationModal,Y=f.getValues("extension"),Q=f.getValues("extension_view"),J=new URLSearchParams(window.location.href),ee=J.get("article_id"),te=J.get("module_id"),re=function(){"com_content"===Y&&"article"===Q&&ee?window.location.href="".concat(T.Xy.pagebuilderBase,"administrator/index.php?option=com_content&view=article&layout=edit&id=").concat(ee):"mod_sppagebuilder"===Y&&"module"===Q&&te?window.location.href="".concat(T.Xy.pagebuilderBase,"administrator/index.php?option=com_modules&view=module&layout=edit&id=").concat(te,"&client_id=0"):(y(!0),S.mutate({id:f.getValues("id"),action:"check-out"}),(0,T.$K)(b.state)&&b.state.prevPageName===nn.lr?v(-1):v(Bn.F.Home.buildLink()))},ne=function(){var e=fO(dO().mark((function e(){var t,r;return dO().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w({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&&(H(),N(),f.setValue("css",""),o&&"popup"===f.getValues("extension_view")&&(t=h.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},h.setValue("attribs",{}),h.setValue("attribs",r)));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),oe=function(){var e=fO(dO().mark((function e(){var t,r,n,i;return dO().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C({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,i=t.mediaChecked,"CONFIRM"===r&&(i?(0,HE.xW)(d,n):k.mutate({pageId:d,isSeoChecked:n}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ie=function(){var e=an.s.getState().currentState,t=on.F.getState().type;if((0,T.$K)(t))switch(M){case"addon":(0,T.$K)(R)&&(0,T.$K)(j)&&(0,T.$K)(B)&&f.reset(uO(uO({},f.getValues()),{},{settings:e[R].columns[j].addons[B].settings,repeatable:{}}));break;case"column":(0,T.$K)(R)&&(0,T.$K)(j)&&f.reset(uO(uO({},f.getValues()),{},{settings:e[R].columns[j].settings}));break;case"section":(0,T.$K)(R)&&f.reset(uO(uO({},f.getValues()),{},{settings:e[R].settings}))}},ae=o?(0,s.BX)("span",{css:yO.popupBuilderIcon,children:[(0,s.tZ)(I.Z,{name:"popsDuo",width:16,height:16,style:yO.popupDuo}),l("COM_SPPAGEBUILDER_EDITOR_PAGE_TITLE_POPUPS")]}):(0,s.tZ)(s.HY,{});return(0,s.BX)("div",{css:yO.wrapper,children:[(0,s.BX)("div",{css:yO.leftActionWrapper,children:[(0,s.tZ)(UE,{}),(0,s.BX)(_.Z,{variant:"text",buttonCss:yO.brandName,onClick:function(){return re()},children:[(0,s.tZ)("div",{children:l("COM_SPPAGEBUILDER_EDITOR_BRAND_NAME")}),ae]})]}),(0,s.BX)("div",{css:yO.actionWrapper,children:[(0,s.BX)("div",{css:yO.resizeButtonWrapper,children:[(0,s.tZ)(_.Z,{variant:"text",buttonCss:yO.resizeButton,onClick:function(){U(),ie()},disabled:0===G.length,icon:(0,s.tZ)(I.Z,{name:"undo",width:20,height:20})}),(0,s.tZ)(_.Z,{variant:"text",buttonCss:yO.resizeButton,onClick:function(){F(),ie()},disabled:0===W.length,icon:(0,s.tZ)(I.Z,{name:"redo",width:20,height:20})})]}),(0,s.tZ)(td.Z,{variant:"secondary",buttonCss:yO.previewButton,href:D,target:"_blank",children:l("COM_SPPAGEBUILDER_EDITOR_TOPBAR_PREVIEW_BUTTON")}),(t=h.getValues("attribs.visibility"),r=h.getValues("attribs.trigger_condition"),t&&r||!o||!o||i?(0,s.BX)(BE,{children:[(0,s.tZ)(_.Z,{variant:"primary",loading:X,onClick:function(){o&&(null==a||a(!1),document.getElementById("topbar-burger-menu")&&(document.getElementById("topbar-burger-menu").style.display="flex"),E({action:"CLOSE"})),z()},children:l("COM_SPPAGEBUILDER_EDITOR_TOPBAR_SAVE_BUTTON")}),(0,s.tZ)(L.Z,{actions:hO({pageType:p,extensionView:Q}),triggerButtonContent:(0,s.tZ)(I.Z,{name:"chevronDown"}),triggerButtonStyle:yO.triggerButton,onSelect:function(e){var t;switch(e){case"save-and-close":z(),re();break;case"save-and-new":if(z(),"com_content"===Y&&"article"===Q&&ee){window.location.href="".concat(T.Xy.pagebuilderBase,"administrator/index.php?option=com_content&view=article&layout=edit");break}if("mod_sppagebuilder"===Y&&"module"===Q&&te){window.location.href="".concat(T.Xy.pagebuilderBase,"administrator/index.php?option=com_modules&view=module&layout=edit&client_id=0");break}g({component:VE.Z,props:{title:l("COM_SPPAGEBUILDER_EDITOR_CREATE_PAGE_MODAL_TITLE"),pageType:null!==(t=p)&&void 0!==t?t:"page"}});break;case"save-as-copy":z({saveAsCopy:!0})}}})]}):(0,s.tZ)(_.Z,{variant:"primary",loading:X,onClick:function(){null==a||a(!0),document.getElementById("topbar-burger-menu")&&(document.getElementById("topbar-burger-menu").style.display="none"),g({component:yi,props:{title:l("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TITLE"),isPopup:!0,setIsNextClicked:function(e){return null==a?void 0:a(e)},form:h,savePageContent:z}})},children:l("COM_SPPAGEBUILDER_EDITOR_TOPBAR_NEXT_BUTTON")})),(0,s.tZ)(L.Z,{actions:vO,triggerButtonContent:(0,s.tZ)(I.Z,{name:"ellipsisXAlt"}),triggerButtonStyle:yO.threeDots,displaceLeft:-45,width:140,onSelect:function(e){var t;switch(e){case"clear-content":ne();break;case"validate-content":K({});break;case"close":re();break;case"export":oe();break;case"import":null===(t=x.current)||void 0===t||t.click()}}})]}),(0,s.tZ)("input",{ref:x,type:"file",hidden:!0,onChange:function(){var e=fO(dO().mark((function e(t){var r,n,i,a,l,c,u,s,d,p,v,b,y,m,g,E,_,w,C,I,S,x;return dO().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,q.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,v=n.seo_spacer,b=void 0===v?"":v,y=n.og_title,m=void 0===y?"":y,g=n.og_description,E=void 0===g?"":g,_=n.og_image,w=void 0===_?{src:""}:_,C=n.author,I={attribs:{meta_description:a,meta_keywords:c,og_type:s,robots:p,seo_spacer:b,author:void 0===C?"":C},og_title:m,og_description:E,og_image:uO({},w)},o?(x=JSON.parse(null!==(S=r.data.attribs)&&void 0!==S?S:""),(0,T.$K)(r.data)&&h.reset(uO(uO({},h.getValues()),{},{css:r.data.css,attribs:x}))):(0,T.$K)(r.data)&&f.reset(uO(uO({},f.getValues()),{},{css:r.data.css},I)),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),(0,T.VZ)(e.t0)&&O({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 yO={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 mO=r.p+"images/c0e7220734e15fd694cd.webp",gO=r.p+"images/711991e1eac63afd9999.webp",EO=function(){var e=(0,A.$)();return(0,s.tZ)("div",{css:wO.mainWrap,children:(0,s.BX)("div",{css:[wO.bannerWrapper({orientation:"vertical",removeBorderRadius:!1}),";label:EasystoreEmptyState;"],children:[!!gO&&(0,s.tZ)("img",{css:wO.emptyImage,src:gO,srcSet:"".concat(mO," 2x"),alt:e("COM_SPPAGEBUILDER_EDITOR_FONT_EMPTY_STATE_EASYSTORE_IMAGE_ALT"),draggable:!1}),(0,s.BX)("div",{css:wO.messageWrapper({orientation:"vertical"}),children:[(0,s.tZ)("h4",{css:wO.title({orientation:"vertical"}),children:e("COM_SPPAGEBUILDER_EDITOR_FONT_EMPTY_STATE_EASYSTORE_TITLE")}),(0,s.tZ)("p",{css:[wO.content,";label:EasystoreEmptyState;"],children:e("COM_SPPAGEBUILDER_EDITOR_FONT_EMPTY_STATE_EASYSTORE")}),(0,s.tZ)("div",{css:wO.buttonWrapper,children:(0,s.tZ)("a",{css:wO.downloadNow,href:"https://www.joomshaper.com/easystore",target:"_blank",rel:"noreferrer noopenner",children:e("COM_SPPAGEBUILDER_EDITOR_FONT_EMPTY_STATE_EASYSTORE_DOWNLOAD_NOW")})})]})]})})};var OO={name:"1dk76ft-messageWrapper",styles:"text-align:center;label:messageWrapper;"},_O={name:"ce9pem-messageWrapper",styles:"max-width:364px;label:messageWrapper;"},wO={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&&_O," ","vertical"===t&&OO,";;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;")},CO=r(6914);function IO(e){return IO="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},IO(e)}var SO=["text","attribs"];function xO(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 PO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xO(Object(r),!0).forEach((function(t){LO(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function LO(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==IO(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==IO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===IO(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AO(){AO=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==IO(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function TO(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 DO(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 ZO=function(e){var t,r,n,o,i=e.isPopup,a=(0,A.$)(),l=(0,so.Z)(Bn.F.PageEditor),u=l.id,d=l.type,p=(0,Mo.z1)(u),f=Ai((function(e){return e.setIsActive})),h=(0,$o.o)((function(e){return e.page})),v=(0,an.s)(),b=v.pastStates,y=v.showWarningAtReload,m=(0,ut.v)((function(e){return e.appConfig})),g=(0,CO.$x)(d),E=(0,Mo.mp)(),O=(0,Mn.s0)(),_=(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 DO(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)?DO(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.")}()),C=_[0],I=_[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,T.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 S=(0,ot.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:""}},mode:"onChange"});(0,c.useEffect)((function(){var e;"storefront"===u&&m.is_easystore_installed&&(m.list_product_page_id?O(Bn.F.PageEditor.buildLink({id:String(m.list_product_page_id),type:"storefront"})):(e=AO().mark((function e(){var t;return AO().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E.mutateAsync({type:"storefront",title:"",collection_id:null,page_type:"storefront"});case 2:if(!(t=e.sent).id){e.next=6;break}return O(Bn.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){TO(i,n,o,a,l,"next",e)}function l(e){TO(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,T.$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,SO),n=PO(PO(PO({},{meta_description:"",meta_keywords:"",robots:"",seo_spacer:"",author:""}),t),{},{robots:(0,T.$K)(t.robots)&&""===t.robots?"global":t.robots});S.reset.call(null,PO(PO({},r),{},{attribs:n}))}}),[S.reset,p.data,p.isLoading]);var x=(0,Xo.j)((function(e){return e.activeAction})),P=(0,T.$K)(x),L="add-elements"===x||"section-library"===x,D=L?"add-elements"===x?"addons":"sections":"addons";return"storefront"===u&&!m.is_easystore_installed||!g.isLoading&&!p.isLoading?(0,s.tZ)(ct.Z,{query:p,disableLoader:!0,children:(0,s.tZ)(ml,{createdBy:S.getValues("created_by"),children:(0,s.tZ)(kt.RV,PO(PO({},S),{},{children:(0,s.BX)("div",{css:jO.wrapper,children:[(0,s.tZ)("div",{css:jO.topbar,children:(0,s.tZ)(bO,{isPopup:i,isNextClicked:C,setIsNextClicked:I})}),(0,s.BX)("div",{css:jO.layout,children:[(0,s.tZ)("div",{css:jO.action,children:(0,s.tZ)(Ei,{isPopup:i,isNextClicked:C,setIsNextClicked:I})}),(0,s.tZ)(zi,{sections:h,children:(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:jO.element({isActive:L}),children:(0,s.tZ)(ja,{defaultTab:D})}),(0,s.tZ)("div",{css:jO.element({isActive:"saved-items"===x}),children:(0,s.tZ)(vl,{})}),i?(0,s.tZ)("div",{css:jO.element({isActive:"popup-settings"===x}),children:(0,s.tZ)(Id,{})}):(0,s.tZ)("div",{css:jO.element({isActive:"settings"===x}),children:(0,s.tZ)(Zu,{})}),(0,s.tZ)("div",{css:jO.editorWrapper,children:(0,s.tZ)("div",{css:jO.editor({isActive:P}),children:"storefront"!==u||m.is_easystore_installed?(0,s.tZ)(Mn.j3,{}):(0,s.tZ)(EO,{})})})]})}),(0,s.tZ)("div",{css:jO.settings,children:(0,s.tZ)(RE,{})})]}),(0,s.tZ)(Gi,{})]})}))})}):(0,s.tZ)(w.fz,{})};var RO={name:"1oh93it-element",styles:"margin-left:-420px;opacity:0;label:element;"},jO={dashboardSidebar:function(e){return(0,i.iv)("position:fixed;top:",nn.g3,"px;left:0;width:",e?230:0,"px;height:calc(100vh - ",nn.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:",nn.g3,"px;z-index:",n.W5.header,";;label:topbar;"),layout:(0,i.iv)("min-height:calc(100vh - ",nn.g3,"px);margin-top:",nn.g3,"px;;label:layout;"),action:(0,i.iv)("position:fixed;top:",nn.g3,"px;left:0;width:",nn.iq,"px;height:calc(100vh - ",nn.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:",nn.g3,"px;left:",nn.iq,"px;width:",t?nn.P8:0,"px;height:calc(100vh - ",nn.g3,"px);",!t&&RO," 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% - (",nn.iq+(t?nn.P8:0),"px + ",nn.Zs,"px));background-color:",n.qo.background.neutral,";margin-inline:",nn.iq+(t?nn.P8:0),"px ",nn.Zs,"px;min-height:calc(100vh - ",nn.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:",nn.g3,"px;right:0;width:",nn.Zs,"px;height:calc(100vh - ",nn.g3,"px);z-index:",n.W5.header,";;label:settings;")},BO=r(2899);function MO(e){return MO="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},MO(e)}function kO(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 NO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kO(Object(r),!0).forEach((function(t){GO(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function GO(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==MO(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==MO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===MO(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var WO=[{text:"COM_SPPAGEBUILDER_EDITOR_FONT_MANAGER_PAGE_SIDEBAR_ROUTE_GOOGLE_FONTS",icon:"googleFont",link:Bn.F.GoogleFonts.template,pathnames:[Bn.F.GoogleFonts.template]},{text:"COM_SPPAGEBUILDER_EDITOR_FONT_MANAGER_PAGE_SIDEBAR_ROUTE_INSTALLED_FONTS",icon:"fontBook",link:Bn.F.InstalledFonts.template,pathnames:[Bn.F.InstalledFonts.template]}];var UO={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 FO=function(){var e=(0,A.$)(),t=(0,Mn.s0)();return(0,s.BX)("div",{css:HO.wrapper,children:[(0,s.BX)("div",{css:HO.leftActionWrapper,children:[(0,s.tZ)(UE,{}),(0,s.tZ)(_.Z,{variant:"text",buttonCss:HO.brandName,onClick:function(){return t(Bn.F.Home.buildLink())},children:e("COM_SPPAGEBUILDER_EDITOR_BRAND_NAME")})]}),(0,s.tZ)("div",{children:(0,s.BX)("a",{href:"".concat(pu.Z.APPLICATION_ROOT,"administrator/index.php"),css:HO.backButton,children:[(0,s.tZ)(I.Z,{name:"uTurnLeft"}),(0,s.tZ)("span",{children:e("COM_SPPAGEBUILDER_EDITOR_TOPBAR_BACK_TO_DASHBOARD")})]})})]})};var HO={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 qO={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:",nn.g3,"px;z-index:",n.W5.header,";;label:topbar;"),layout:(0,i.iv)("min-height:calc(100vh - ",nn.g3,"px);margin-top:",nn.g3,"px;;label:layout;"),main:function(e){return(0,i.iv)("width:calc(100% - ",e?nn.ZR:0,"px);margin-left:",e?nn.ZR:0,"px;transition:margin-left 0.3s ease,width 0.3s ease;;label:main;")}};const VO=function(e){var t=e.component;return(0,s.tZ)(c.Suspense,{fallback:(0,s.tZ)(s.HY,{}),children:t})};function zO(e){return zO="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},zO(e)}function XO(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 $O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?XO(Object(r),!0).forEach((function(t){KO(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function KO(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==zO(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==zO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===zO(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var YO=[{text:"COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_SIDEBAR_ROUTE_OPTIONS",icon:"settings",link:Bn.F.Settings.template,pathnames:[Bn.F.Settings.template]},{text:"COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_SIDEBAR_ROUTE_GLOBAL_COLORS",icon:"colorBrush",link:Bn.F.ColorsLibrary.template,pathnames:[Bn.F.ColorsLibrary.template],showProLabel:T.Eu},{text:"COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_SIDEBAR_ROUTE_GLOBAL_TYPOGRAPHY",icon:"globalTypography",link:Bn.F.TypographyLibrary.template,pathnames:[Bn.F.TypographyLibrary.template],showProLabel:T.Eu}];T.Eu||YO.push({text:"COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_SIDEBAR_ROUTE_LICENSE",icon:"key",link:Bn.F.License.template,pathnames:[Bn.F.License.template]});var QO={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;")}},JO=r(653);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}var t_=c.createContext({tableColumns:{},updateTableColumns:function(){},schema:[],columnOptions:[]});const r_=function(e){var t,r,n=e.children,o=(0,so.Z)(Bn.F.DynamicContentSingleCollection).collectionId,i=(0,Zn.rX)(Number(o)),a=(0,A.$)(),l=(t=c.useState((0,JO.rm)(Number(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 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}}(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,c.useMemo)((function(){return i.data?0===Object.keys(u).length?i.data:i.data.filter((function(e){return!!JO.Kr.includes(e.type)||!!u[e.key]})):[]}),[i.data,u]),f=(0,c.useCallback)((function(e){d((function(t){return(0,JO.es)(Number(o),(0,JO.N3)(t,e))}))}),[o]);(0,c.useEffect)((function(){var e;if(o&&i.data){var t=null!==(e=(0,JO.rm)(Number(o)))&&void 0!==e?e:{},r=i.data.reduce((function(e,r){var n;return e[r.key]=null===(n=t[r.key])||void 0===n||n,e}),{});d(r),(0,JO.es)(Number(o),r)}}),[o,i.data]);var h=(0,c.useMemo)((function(){return i.data?i.data.filter((function(e){return!JO.Kr.includes(e.type)})).map((function(e){return{label:e.name,value:e.key}})):[]}),[i.data]);return i.isLoading?(0,s.tZ)(w.fz,{}):i.data?(0,s.tZ)(t_.Provider,{value:{schema:p,tableColumns:u,updateTableColumns:f,columnOptions:h},children:n}):(0,s.tZ)("div",{children:a("COM_SPPAGEBUILDER_EDITOR_GLOBAL_SOMETHING_WENT_WRONG")})};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 n=r.call(e,"string");if("object"!==n_(n))return n;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}const l_=function(e){var t=e.field,r=e.fieldState,n=e.label,o=e.options,i=void 0===o?[]:o,a=e.disabled,l=e.wrapperCss,c=e.onSelect,u=e.helpText,d=e.name,p=e.labelCss,f=e.inputCss,h=e.iconWrapperCss;return(0,s.tZ)(re.Z,{field:t,fieldState:r,label:n,disabled:a,helpText:u,children:function(e){return(0,s.tZ)("div",{css:l,children:i.map((function(r,n){return(0,s.BX)("div",{children:[(0,s.tZ)(Mu.Z,i_(i_({},e),{},{value:r.value,label:r.label,name:d,disabled:r.disabled||a,checked:t.value===r.value,onChange:function(){t.onChange(r.value),c&&c(r)},iconWrapperCss:h,inputCss:f,labelCss:p,showRadioIcon:!0})),r.legend&&(0,s.tZ)("span",{css:c_.radioLegend,children:r.legend})]},n)}))})}})};var c_={radioLegend:(0,i.iv)("margin-left:",n.W0[28],";",o.c.body(),";color:",n.qo.text.neutral,";;label:radioLegend;")},u_=r(2028),s_=r(111),d_=r(5785);const p_=function(e){var t,r,n,o=e.field,i=e.item,a=e.schema,l=e.collectionId,u=(0,A.$)(),d=(0,Mn.s0)(),p=(0,Zn.Bq)(),f=null!==(t=null==i?void 0:i[o.key])&&void 0!==t?t:"—",h=a.find((function(e){return"alias"===e.type})),v=(0,c.useCallback)((function(){d(Bn.F.DynamicContentEditItem.buildLink({collectionId:String(l),itemId:String(i.id)}))}),[]),b=[{label:u("COM_SPPAGEBUILDER_EDITOR_FILTER_PUBLISHED"),value:1},{label:u("COM_SPPAGEBUILDER_EDITOR_FILTER_UNPUBLISHED"),value:0},{label:u("COM_SPPAGEBUILDER_EDITOR_FILTER_TRASHED"),value:-2}];if(JO.CN.includes(o.type))return null;if("title"===o.type)return(0,s.BX)("td",{css:f_.title,title:f,onKeyDown:T.ZT,onClick:v,children:[(0,s.tZ)("span",{children:f}),!!h&&(0,s.tZ)("p",{css:f_.alias,title:null!==(r=null==i?void 0:i[h.key])&&void 0!==r?r:"",children:u("COM_SPPAGEBUILDER_EDITOR_COLLECTION_ITEMS_ALIAS",{alias:null!==(n=null==i?void 0:i[h.key])&&void 0!==n?n:"—"})})]},"".concat(i.id,"-").concat(o.key));if("published"===o.key)return(0,s.tZ)("td",{css:q.iZ.textEllipsis,"data-key":o.key,children:(0,s.tZ)(d_.Z,{value:f,options:b,onChange:function(e){p.mutate({item_ids:[i.id],key:"published",value:e.value})}})},"".concat(i.id,"-").concat(o.key));if("image"===o.type)return(0,s.tZ)("td",{title:f,"data-key":o.key,onKeyDown:T.ZT,onClick:v,children:null!=i&&i[o.key]?(0,s.tZ)("div",{css:f_.image,children:(0,s.tZ)("img",{src:f,alt:f})}):(0,s.tZ)("span",{children:"—"})},"".concat(i.id,"-").concat(o.key));if("color"===o.type)return(0,s.tZ)("td",{"data-key":o.key,title:f,onKeyDown:T.ZT,onClick:v,children:(0,s.tZ)("div",{"data-color":f,css:f_.color(f)})},"".concat(i.id,"-").concat(o.key));if("switch"===o.type)return(0,s.tZ)("td",{"data-key":o.key,title:f,onKeyDown:T.ZT,onClick:v,children:(0,s.tZ)("div",{css:f_.switch(Number(f)),children:Number(f)?"Yes":"No"})},"".concat(i.id,"-").concat(o.key));if("multi-reference"===o.type){var y,m=null!==(y=null==i?void 0:i[o.key])&&void 0!==y?y:[];return(0,s.BX)("td",{"data-key":o.key,title:m.join(", "),css:q.iZ.textEllipsis,onKeyDown:T.ZT,onClick:v,children:[m.slice(0,3).join(", "),m.length>3&&(0,s.tZ)("span",{children:"..."})]},"".concat(i.id,"-").concat(o.key))}if("date-time"===o.type||"created"===o.key){var g=null==i?void 0:i[o.key],E=g?(0,Qo.Z)(new Date(g),"d MMM, yyyy h:mm aa"):"—";return(0,s.tZ)("td",{css:q.iZ.textEllipsis,title:E,"data-key":o.key,onKeyDown:T.ZT,onClick:v,children:E},"".concat(i.id,"-").concat(o.key))}return(0,s.tZ)("td",{css:q.iZ.textEllipsis,title:f,"data-key":o.key,onKeyDown:T.ZT,onClick:v,children:f},"".concat(i.id,"-").concat(o.key))};var f_={color:function(e){return(0,i.iv)("background-color:",e,";border-radius:",n.E0[4],";display:flex;align-items:center;justify-content:center;padding:",n.W0[4]," ",n.W0[8],";width:50px;height:22px;;label:color;")},switch:function(e){return(0,i.iv)("background-color:",e?n.qo.background.success:n.qo.background.neutral,";border-radius:",n.E0[4],";display:flex;align-items:center;justify-content:center;padding:",n.W0[4]," ",n.W0[8],";width:fit-content;",o.c.caption(),";color:",e?n.qo.text.success:n.qo.text.neutral,";;label:switch;")},alias:(0,i.iv)(o.c.caption(),";color:",n.qo.text.neutral,";",q.iZ.textEllipsis,";;label:alias;"),title:(0,i.iv)(o.c.body(),";color:",n.qo.text.default,";",q.iZ.textEllipsis,";max-width:200px!important;width:100%;display:flex;flex-direction:column;gap:",n.W0[4],";;label:title;"),image:(0,i.iv)("position:relative;width:50px;max-width:100%;height:22px;border-radius:",n.E0[4],";overflow:hidden;pointer-events:none;z-index:",n.W5.negative,";img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;};label:image;")};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 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 b_(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){y_(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 y_(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}const m_=function(e){var t=e.selectedItems,r=e.index,o=e.item,i=e.data,a=e.schema,l=e.lastSelectedIndex,u=e.setLastSelectedIndex,d=e.setSelectedItems,p=e.collectionId,f=(0,s_.K)(),h=(0,ut.v)((function(e){return e.appConfig})),v=(0,Zn.Bq)(),b=(0,ot.O)({defaultValues:{id:o.id}}),y=((0,A.$)(),(0,Mn.s0)()),m=(0,x.nB)({id:o.id}),g=m.attributes,E=m.listeners,O=m.setNodeRef,_=m.transform,w=m.transition,C=m.isDragging,S={transform:P.ux.Transform.toString(_),transition:w,zIndex:C?n.W5.positive:n.W5.level,backgroundColor:C?n.qo.background.hover:""};(0,c.useEffect)((function(){var e=function(e){"Escape"===e.key&&b.reset({id:o.id})};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[]);var D=[{id:"edit",icon:"pencilOnBox",title:"COM_SPPAGEBUILDER_EDITOR_COLLECTION_EDIT"},{id:-2===(null==o?void 0:o.published)?"delete":"trash",icon:"trash",title:-2===(null==o?void 0:o.published)?"COM_SPPAGEBUILDER_EDITOR_FILTER_DELETE":"COM_SPPAGEBUILDER_EDITOR_FILTER_TRASH",variant:"critical",isDisabled:!1}];return(0,s.BX)("tr",{css:E_.bodyTr({isSelected:t.ids.includes(o.id),isShownFrontendButton:h.enable_frontend_editing&&!0}),ref:O,style:S,children:[(0,s.BX)("td",{css:E_.checkboxWrapper,"data-checkbox-cell":!0,children:[(0,s.tZ)("div",b_(b_(b_({css:E_.dragPoint,"data-drag-point":!0},g),E),{},{children:(0,s.tZ)(I.Z,{name:"dragger",height:32,width:32})})),(0,s.tZ)(te.Z,{onChange:function(e){var n=(0,T.R5)({itemId:o.id,isShiftHolding:f,lastSelectedIndex:l,currentIndex:r,isChecked:e,selectedItemIds:t.ids,selectedItemsIndex:t.indexes,totalItemsList:i}),a=n.updatedItemIds,c=n.updatedItemIndexes;d({ids:a,indexes:c}),u(r)},checked:t.ids.includes(o.id)})]}),a.map((function(e){return(0,s.tZ)(p_,{field:e,item:o,schema:a,collectionId:Number(p)},"".concat(o.id,"-").concat(e.key))})),(0,s.tZ)("td",{css:E_.actionColumn({isSelected:t.ids.includes(o.id)}),style:{position:"sticky",right:0},children:(0,s.tZ)(L.Z,{actions:D,triggerButtonContent:(0,s.tZ)(I.Z,{name:"ellipsisX",width:24,height:24,style:E_.triggerIcon}),onSelect:function(e){switch(e){case"edit":y(Bn.F.DynamicContentEditItem.buildLink({collectionId:p,itemId:String(o.id)}));break;case"trash":v.mutate({item_ids:[o.id],key:"published",value:-2});break;case"delete":v.mutate({item_ids:[o.id],key:"delete",value:null})}}})})]})};var g_={name:"1qe2gq2-bodyTr",styles:"[data-frontend-editor-button]{display:flex;};label:bodyTr;"},E_={bodyTr:function(e){var t=e.isSelected,r=e.isShownFrontendButton;return(0,i.iv)("height:80px;border-bottom:1px solid ",n.qo.stroke.neutral,";position:relative;td,th{user-select:none;cursor:pointer;}&:hover{background-color:",n.qo.background.hover,";td{background-color:transparent;}td:last-of-type{background-color:",n.qo.background.hover,";}[data-checkbox-cell]{background-color:",n.qo.background.hover,";}",r&&g_," [data-drag-point]{opacity:1;}}",t&&(0,i.iv)("background-color:",n.qo.background.disabled,";tr>td:last-of-type{background-color:",n.qo.background.disabled,";}[data-checkbox-cell]{background-color:",n.qo.background.disabled,";};label:bodyTr;"),";;label:bodyTr;")},alias:(0,i.iv)(o.c.caption(),";color:",n.qo.text.neutral,";",q.iZ.textEllipsis,";;label:alias;"),title:(0,i.iv)(o.c.body(),";color:",n.qo.text.default,";",q.iZ.textEllipsis,";max-width:200px!important;width:100%;display:flex;flex-direction:column;gap:",n.W0[4],";;label:title;"),image:(0,i.iv)("position:relative;width:60px;max-width:100%;height:32px;border-radius:",n.E0[6],";overflow:hidden;pointer-events:none;img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;};label:image;"),widthStyles:function(e){var t=e.width;return(0,i.iv)("width:",t,"px;;label:widthStyles;")},checkboxWrapper:(0,i.iv)("position:sticky;left:0;background-color:",n.qo.background.white,";;label:checkboxWrapper;"),dragPoint:(0,i.iv)("position:absolute;top:0;left:0;height:100%;width:32px;display:flex;align-items:center;opacity:0;cursor:grab;svg{color:",n.qo.icon.default,";};label:dragPoint;"),triggerIcon:(0,i.iv)("color:",n.qo.icon.hints,";;label:triggerIcon;"),actionColumn:function(e){var t=e.isSelected;return(0,i.iv)("text-align:right;background-color:",t?n.qo.background.disabled:n.qo.background.white,";;label:actionColumn;")}};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 __(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?__(Object(r),!0).forEach((function(t){C_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):__(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}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 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 x_=function(e){var t=e.data,r=e.selectedItems,n=e.setSelectedItems,o=e.lastSelectedIndex,i=e.setLastSelectedIndex,a=e.isLoading,l=e.collectionId,u=e.isEmptyState,d=t.length,p=r.ids.length,f=c.useContext(t_),h=f.schema,v=f.columnOptions,b=f.updateTableColumns,y=f.tableColumns,m=(0,A.$)(),g=(0,ot.O)({defaultValues:{columns:Object.entries(y).filter((function(e){var t=I_(e,2);return t[0],t[1]})).map((function(e){return I_(e,1)[0]}))}}),E=(0,c.useRef)(null),O=I_((0,c.useState)(!1),2),_=(O[0],O[1]);return(0,c.useEffect)((function(){var e=new MutationObserver((function(){E.current&&_(E.current.scrollWidth>E.current.clientWidth)}));return E.current&&e.observe(E.current,{attributes:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}),[]),(0,c.useEffect)((function(){g.reset.call(null,{columns:Object.entries(y).filter((function(e){var t=I_(e,2);return t[0],t[1]})).map((function(e){return I_(e,1)[0]}))})}),[y,g.reset]),u?(0,s.tZ)(po.Z,{orientation:"vertical",emptyStateImage:oa,imageAltText:m("COM_SPPAGEBUILDER_EDITOR_ADDONS_NO_COLLECTION_ITEM_FOUND"),title:m("COM_SPPAGEBUILDER_EDITOR_ADDONS_NO_COLLECTION_ITEM_FOUND"),removeBorderRadius:!0,wrapperCss:P_.wrapperCss}):(0,s.tZ)("div",{css:P_.tableContainer,ref:E,children:(0,s.BX)("table",{css:P_.table,children:[(0,s.tZ)("thead",{children:(0,s.BX)("tr",{css:P_.headRow,children:[(0,s.tZ)("th",{"data-checkbox-header":!0,children:(0,s.tZ)(te.Z,{checked:p>0&&p===d,isIndeterminate:p>0&&p<d,onChange:function(){var e=p===d?[]:(0,T.x9)(t),r=p===d?[]:(0,T.w6)(d);n({ids:e,indexes:r}),i(-1)}})}),h.filter((function(e){return!JO.CN.includes(e.type)})).map((function(e,t){return(0,s.tZ)("th",{css:[q.iZ.textEllipsis,";label:DynamicContentTable;"],title:e.name,children:e.name},t)})),(0,s.tZ)("th",{css:P_.showColumn,style:{position:"sticky",right:0,textAlign:"right"},children:(0,s.tZ)(kt.Qr,{control:g.control,name:"columns",render:function(e){return(0,s.tZ)(tn.Z,w_(w_({},e),{},{options:v,placeholder:"Show",showChips:!1,customInputCss:P_.customInputCss,customWrapperCss:P_.customWrapperCss,portalLeftOffset:150,hideSelectNumbers:!0,onChange:function(e){b(e.map((function(e){return e.value})))},isClearable:!1}))}})})]})}),(0,s.BX)("tbody",{children:[a&&Array(10).fill(0).map((function(e,t){return(0,s.tZ)("tr",{css:P_.skeletonWrapper,children:Array(8).fill(0).map((function(e,t){return(0,s.tZ)("td",{css:P_.widthStyles({width:0===t?70:(0,T.sZ)(100,250)}),children:(0,s.tZ)(jn.Z,{animation:!0,height:20,width:"".concat(0===t?100:(0,T.sZ)(90,100),"%")})},t)}))},t)})),!a&&t.map((function(e,a){return(0,s.tZ)(m_,{index:a,data:t,schema:h,item:e,lastSelectedIndex:o,setLastSelectedIndex:function(e){return i(e)},selectedItems:r,setSelectedItems:function(e){n(e)},collectionId:l},e.id)}))]})]})})};var P_={tableContainer:{name:"1b18brh-tableContainer",styles:"display:block;width:100%;overflow-x:auto;&::-webkit-scrollbar{display:none;}scrollbar-width:none;-ms-overflow-style:none;label:tableContainer;"},wrapperCss:{name:"1joma9j-wrapperCss",styles:"&>img{width:90px;};label:wrapperCss;"},table:(0,i.iv)("width:100%;th{height:48px;}th,td{",o.c.body(),";padding:",n.W0[16],";display:table-cell;:first-of-type{padding-left:",n.W0[32],";}}th:not(:last-of-type){max-width:140px;}td:not(:last-of-type){max-width:140px;}th:last-of-type{padding-right:0;}td:last-of-type{padding-right:",n.W0[12],";}& td[data-key='id']{max-width:60px;};label:table;"),headRow:(0,i.iv)(o.c.body(),";color:",n.qo.text.default,";background-color:#e0e8ff;[data-checkbox-header]{position:sticky;left:0;background-color:inherit;};label:headRow;"),paginatorWrapper:(0,i.iv)("margin-top:",n.W0[32],";;label:paginatorWrapper;"),widthStyles:function(e){var t=e.width;return(0,i.iv)("width:",t,"px;;label:widthStyles;")},textCenter:{name:"lfnssf-textCenter",styles:"text-align:center;label:textCenter;"},skeletonWrapper:(0,i.iv)("border-bottom:1px solid ",n.qo.stroke.neutral,";height:80px;;label:skeletonWrapper;"),customInputCss:(0,i.iv)(o.c.body(),";cursor:pointer;border:none;width:100%;background-color:transparent;:focus{outline:none;};label:customInputCss;"),customWrapperCss:{name:"k84oqx-customWrapperCss",styles:"width:80px;justify-self:end;label:customWrapperCss;"},showColumn:{name:"ovxkdv-showColumn",styles:"background-color:inherit;min-width:80px;max-width:80px;& div:has(> input){width:65px;justify-self:end;};label:showColumn;"}};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 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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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 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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function T_(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 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){R_(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 R_(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 j_(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 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}}(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 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 M_=[5,10,15,20,25,30,50,100,200,500].map((function(e){return{label:e.toString(),value:e}})),k_={name:"fpfuve-DynamicContentCollectionItems",styles:"width:min(280px, 100%);label:DynamicContentCollectionItems;"};const N_=function(e){var t,r=e.data,n=e.collectionId,o=e.pageInfo,i=e.onPageChange,a=e.onFilterItems,l=e.isLoading,u=e.isCompleted,d=e.setLimitValue,p=e.limitValue,f=j_((0,c.useState)(null!==(t=null==r?void 0:r.results)&&void 0!==t?t:[]),2),h=f[0],v=f[1],b=j_((0,c.useState)(),2),y=b[0],m=b[1],g=j_((0,c.useState)(!1),2),E=g[0],O=g[1],w=(0,Zn.et)(),C=(0,de.l)({isOpen:E,isDropdown:!0}),S=C.triggerRef,P=C.position,L=C.popoverRef,T=(0,at.Q)(),D=(0,A.$)(),Z=j_((0,c.useState)(-1),2),R=Z[0],j=Z[1],B=j_((0,c.useState)({ids:[],indexes:[]}),2),M=B[0],k=B[1],N=T.edit_state,G=T.delete,W=(0,ot.O)({defaultValues:{search:o.filter.search||"",status:o.filter.status||"*",created:o.filter.created,modified:o.filter.modified}}),U=o.filter.status,F=(0,pe.N)(W.watch("search","")),H=(0,xl.D)(F);(0,c.useEffect)((function(){var e,t,r;a(Z_(Z_({},F.length>0&&{search:F}),{},{status:String(null!==(e=o.filter.status)&&void 0!==e?e:"*"),created:String(null!==(t=o.filter.created)&&void 0!==t?t:"*"),modified:String(null!==(r=o.filter.modified)&&void 0!==r?r:"*")})),F!==H&&i(1)}),[F,H,o.filter]);var q=(0,Dn.Dy)((0,Dn.VT)(Dn.we),(0,Dn.VT)(Dn.Lg,{coordinateGetter:x.is})),V=[{label:D("COM_SPPAGEBUILDER_EDITOR_FILTER_PUBLISH"),value:"published",disabled:!N},{label:D("COM_SPPAGEBUILDER_EDITOR_FILTER_UNPUBLISH"),value:"unpublished",disabled:!N},{label:D(-2===Number(U)?"COM_SPPAGEBUILDER_EDITOR_FILTER_DELETE":"COM_SPPAGEBUILDER_EDITOR_FILTER_TRASH"),value:-2===Number(U)?"delete":"trash",disabled:!G||!N}],z=(0,Mn.s0)(),X=(0,Zn.Bq)();(0,c.useEffect)((function(){v(null==r?void 0:r.results)}),[null==r?void 0:r.results]);var $=M.ids.length>0,K="*"!==o.filter.status||"*"!==o.filter.created||"*"!==o.filter.modified;return(0,s.BX)(s.HY,{children:[(0,s.BX)(ru.Z,{cardCss:G_.cardStyle,hasWrapperShadow:!0,children:[(0,s.BX)("div",{css:G_.tableHeaderWrapper,children:[(0,s.tZ)("div",{css:G_.searchFieldWrapper,children:(0,s.BX)("div",{css:G_.topPanel,children:[$&&(0,s.BX)("div",{css:G_.bulkActionWrapper,children:[M.ids.length>0&&(0,s.tZ)("span",{"data-selection-message":!0,children:D("COM_SPPAGEBUILDER_EDITOR_N_ITEMS_SELECTED",{count:M.ids.length})}),(0,s.tZ)(ku.Z,{options:V,placeholder:D("COM_SPPAGEBUILDER_EDITOR_BULK_ACTION_DROPDOWN_PLACEHOLDER"),wrapperStyle:G_.topPanelLeftSelect,isClearable:!1,disabled:0===M.ids.length||!N,value:V.find((function(e){return e.value===y})),onChange:function(e){m(e.value)}}),(0,s.tZ)(_.Z,{onClick:function(){if(M.ids.length&&y){"delete"===y&&X.mutate({item_ids:M.ids,key:"delete",value:""}),"delete"!==y&&X.mutate({item_ids:M.ids,key:"published",value:{published:1,unpublished:0,trash:-2,delete:void 0}[y]}),m(null),k({ids:[],indexes:[]}),j(-1)}},disabled:!y,children:D("COM_SPPAGEBUILDER_EDITOR_APPLY")})]}),!$&&(0,s.tZ)("div",{css:k_,children:(0,s.tZ)(kt.Qr,{control:W.control,name:"search",render:function(e){return(0,s.tZ)(rt.Z,Z_(Z_({},e),{},{variant:"search",placeholder:D("COM_SPPAGEBUILDER_EDITOR_SEARCH_INPUT_PLACEHOLDER"),isClearable:!0}))}})})]})}),(0,s.tZ)("div",{css:G_.sortByFieldWrapper(K),children:!M.ids.length&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(ku.Z,{options:M_,isClearable:!1,onChange:function(e){return d(e.value)},value:M_.find((function(e){return e.value===p}))}),(0,s.tZ)(_.Z,{ref:S,style:{position:"relative"},onClick:function(){return O(!0)},icon:(0,s.tZ)(I.Z,{name:K?"funnelModified":"funnel",width:20,height:20}),variant:"secondary",children:D("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_COLLECTION_FILTER")}),(0,s.tZ)(_.Z,{variant:"primary",onClick:function(){return z(Bn.F.DynamicContentCreateItem.buildLink({collectionId:String(n)}))},icon:(0,s.tZ)(I.Z,{name:"plus"}),children:D("COM_SPPAGEBUILDER_EDITOR_ADD_NEW_ITEM")})]})})]}),(0,s.tZ)(Dn.LB,{sensors:q,collisionDetection:Dn.pE,onDragEnd:function(e){var t=e.active,r=e.over;null!=r&&r.id&&t.id!==r.id&&v((function(e){var n=e.findIndex((function(e){return e.id===t.id})),o=e.findIndex((function(e){return e.id===r.id})),i=(0,x.Rp)(e,n,o);return w.mutate({pks:i.map((function(e){return e.id}))}),i}))},modifiers:[Rn.l],children:(0,s.tZ)(x.Fo,{items:h,strategy:x.qw,children:(0,s.tZ)(x_,{data:h,isLoading:l,isEmptyState:u&&(!r||!r.results.length),selectedItems:M,setSelectedItems:k,lastSelectedIndex:R,setLastSelectedIndex:j,collectionId:n})})})]}),(0,s.tZ)("div",{css:G_.paginatorWrapper,children:(0,s.tZ)(u_.Z,{currentPage:o.page,onPageChange:i,totalItems:(null==r?void 0:r.totalItems)||0,itemsPerPage:Number(o.filter.limit)||20})}),(0,s.tZ)(de.h,{isOpen:E,onClickOutside:function(){return O(!1)},children:(0,s.BX)("div",{css:[G_.sortingPortalWrapper,{left:P.left,top:P.top,maxWidth:136},";label:DynamicContentCollectionItems;"],ref:L,children:[(0,s.BX)("div",{css:G_.portalItem,children:[(0,s.tZ)("div",{css:G_.portalItemLabel,children:D("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_COLLECTION_FILTER")}),(0,s.tZ)(_.Z,{variant:"secondary",buttonCss:G_.resetButton,buttonContentCss:G_.resetButtonContent,onClick:function(){a({status:"*",created:"*",modified:"*"}),W.reset(Z_(Z_({},W.getValues()),{},{status:"*",created:"*",modified:"*"})),O(!1)},children:D("COM_SPPAGEBUILDER_EDITOR_RESET")})]}),(0,s.tZ)("div",{css:G_.portalItem,children:(0,s.tZ)("div",{css:G_.portalItemLabel,children:D("COM_SPPAGEBUILDER_EDITOR_FILTER_PLACEHOLDER_STATUS")})}),(0,s.tZ)(kt.Qr,{control:W.control,name:"status",render:function(e){var t=Z_(Z_({},e),{},{field:Z_(Z_({},e.field),{},{value:"*"!==e.field.value?Number(e.field.value):"*"})});return(0,s.tZ)(l_,Z_(Z_({},t),{},{options:[{label:D("COM_SPPAGEBUILDER_EDITOR_ALL"),value:"*"},{label:D("COM_SPPAGEBUILDER_EDITOR_STATUS_PUBLISHED"),value:1},{label:D("COM_SPPAGEBUILDER_EDITOR_STATUS_UNPUBLISHED"),value:0},{label:D("COM_SPPAGEBUILDER_EDITOR_STATUS_TRASHED"),value:-2}],wrapperCss:G_.radioWrapper,inputCss:[G_.radioInput],labelCss:G_.radioLabel}))}}),(0,s.tZ)("div",{css:G_.portalItem,children:(0,s.tZ)("div",{css:G_.portalItemLabel,children:D("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_COLLECTION_CREATED")})}),(0,s.tZ)(kt.Qr,{control:W.control,name:"created",render:function(e){return(0,s.tZ)(l_,Z_(Z_({},e),{},{options:[{label:D("COM_SPPAGEBUILDER_EDITOR_ALL"),value:"*"},{label:D("COM_SPPAGEBUILDER_EDITOR_LAST_24_HOURS"),value:"24h"},{label:D("COM_SPPAGEBUILDER_EDITOR_LAST_7_DAYS"),value:"7d"},{label:D("COM_SPPAGEBUILDER_EDITOR_LAST_30_DAYS"),value:"30d"}],wrapperCss:G_.radioWrapper,inputCss:[G_.radioInput],labelCss:G_.radioLabel}))}}),(0,s.tZ)("div",{css:G_.portalItem,children:(0,s.tZ)("div",{css:G_.portalItemLabel,children:D("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_COLLECTION_MODIFIED")})}),(0,s.tZ)(kt.Qr,{control:W.control,name:"modified",render:function(e){return(0,s.tZ)(l_,Z_(Z_({},e),{},{options:[{label:D("COM_SPPAGEBUILDER_EDITOR_ALL"),value:"*"},{label:D("COM_SPPAGEBUILDER_EDITOR_LAST_24_HOURS"),value:"24h"},{label:D("COM_SPPAGEBUILDER_EDITOR_LAST_7_DAYS"),value:"7d"},{label:D("COM_SPPAGEBUILDER_EDITOR_LAST_30_DAYS"),value:"30d"}],wrapperCss:G_.radioWrapper,inputCss:[G_.radioInput],labelCss:G_.radioLabel}))}}),(0,s.tZ)("div",{css:G_.applyBtnContainer,children:(0,s.tZ)(_.Z,{variant:"primary",buttonCss:G_.applyBtnCss,buttonContentCss:G_.applyBtnContentCss,onClick:W.handleSubmit(function(){var e,t=(e=A_().mark((function e(t){var r,n,o;return A_().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a({search:t.search,status:String(null!==(r=t.status)&&void 0!==r?r:"*"),created:null!==(n=t.created)&&void 0!==n?n:"*",modified:null!==(o=t.modified)&&void 0!==o?o:"*"}),O(!1);case 2: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){T_(i,n,o,a,l,"next",e)}function l(e){T_(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),children:D("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_COLLECTION_APPLY_FILTER")})})]})})]})};var G_={topPanel:(0,i.iv)("display:flex;justify-content:start;align-items:center;gap:",n.W0[8],";height:34px;;label:topPanel;"),bulkActionWrapper:(0,i.iv)("display:flex;align-items:center;gap:",n.W0[16],";&>[data-selection-message]{",o.c.body("medium"),";color:",n.qo.text.default,";};label:bulkActionWrapper;"),topPanelLeftSelect:{name:"1ex2zjt-topPanelLeftSelect",styles:"max-width:128px;label:topPanelLeftSelect;"},cardStyle:(0,i.iv)("border-radius:",n.E0[5],";box-shadow:",n.AF.base,";max-width:1000px;overflow:hidden;;label:cardStyle;"),tableHeaderWrapper:(0,i.iv)("width:100%;display:flex;justify-content:space-between;align-items:center;gap:",n.W0[8],";padding:",n.W0[24]," ",n.W0[28],";;label:tableHeaderWrapper;"),searchFieldWrapper:{name:"35z6zn-searchFieldWrapper",styles:"width:100%;label:searchFieldWrapper;"},sortByFieldWrapper:function(e){return(0,i.iv)("width:min(580px, 100%);display:flex;justify-content:end;gap:",n.W0[16],";align-items:center;>div:first-of-type{max-width:80px;}",e&&(0,i.iv)("& button:first-of-type{color:",n.qo.text.primary,";svg{color:",n.qo.icon.primary,";}};label:sortByFieldWrapper;"),";;label:sortByFieldWrapper;")},paginatorWrapper:(0,i.iv)("margin-top:",n.W0[32],";;label:paginatorWrapper;"),sortingPortalWrapper:(0,i.iv)("width:100%;height:500px;background-color:",n.qo.background.white,";position:absolute;border-radius:",n.E0[5],";display:flex;flex-direction:column;box-shadow:",n.AF.popover,";padding-top:",n.W0[6],";;label:sortingPortalWrapper;"),portalItem:(0,i.iv)("height:",n.W0[28],";padding:",n.W0[6]," ",n.W0[8],";display:flex;gap:",n.W0[16],";align-items:center;;label:portalItem;"),portalItemLabel:(0,i.iv)(o.c.caption("medium"),";;label:portalItemLabel;"),resetButton:(0,i.iv)("padding:",n.W0[6]," ",n.W0[16],";width:60px;height:",n.W0[24],";align-items:center;display:flex;border-radius:4.5px;outline:",n.qo.stroke.default,";justify-content:center;;label:resetButton;"),resetButtonContent:(0,i.iv)(o.c.caption("regular"),";;label:resetButtonContent;"),radioWrapper:(0,i.iv)("padding:",n.W0[6]," ",n.W0[8],";display:flex;gap:",n.W0[12],";display:flex;flex-direction:column;justify-content:flex-start;margin-left:",n.W0[2],";;label:radioWrapper;"),radioInput:{name:"azpnli-radioInput",styles:"width:100%;display:flex;align-items:center;justify-content:flex-start;label:radioInput;"},radioLabel:(0,i.iv)(o.c.caption("regular"),";;label:radioLabel;"),applyBtnContainer:(0,i.iv)("display:flex;align-items:center;justify-content:center;padding:",n.W0[10]," ",n.W0[8],";border-top:1px solid ",n.qo.stroke.default,";;label:applyBtnContainer;"),applyBtnCss:(0,i.iv)("display:flex;align-items:center;justify-content:center;height:",n.W0[24],";width:100%;;label:applyBtnCss;"),applyBtnContentCss:(0,i.iv)(o.c.caption(),";color:",n.qo.text.white,";;label:applyBtnContentCss;")},W_=r(4370);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 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 H_(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){q_(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 q_(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}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 z_=function(){var e,t,r,n,o,i,a,l,u=(0,A.$)(),d=(0,Mn.s0)(),p=(a=(0,c.useState)(20),l=2,function(e){if(Array.isArray(e))return e}(a)||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}}(a,l)||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}}(a,l)||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],h=p[1],v=(0,so.Z)(Bn.F.DynamicContentSingleCollection).collectionId,b=Ro().collections,y=(0,W_.a)({limit:f}),m=y.pageInfo,g=y.onPageChange,E=y.onFilterItems,O=y.itemsPerPage;(0,c.useEffect)((function(){var e,t,r,n;E({search:null!==(e=m.filter.search)&&void 0!==e?e:"",status:null!==(t=m.filter.status)&&void 0!==t?t:"*",created:null!==(r=m.filter.created)&&void 0!==r?r:"*",modified:null!==(n=m.filter.modified)&&void 0!==n?n:"*"})}),[v]);var w=(0,Zn.YL)({collection_id:Number(v),search:null!==(e=m.filter.search)&&void 0!==e?e:"",status:null!==(t=m.filter.status)&&void 0!==t?t:"*",created:null!==(r=m.filter.created)&&void 0!==r?r:"*",modified:null!==(n=m.filter.modified)&&void 0!==n?n:"*",current_page:m.page,per_page:O}),C=null!==(o=w.data)&&void 0!==o?o:{results:[],totalItems:0,totalPages:0};return 0===(null===(i=b.find((function(e){return e.id===Number(v)})))||void 0===i?void 0:i.total_items)?(0,s.tZ)(po.Z,{orientation:"vertical",emptyStateImage:oa,imageAltText:u("COM_SPPAGEBUILDER_EDITOR_ADDONS_NO_MATCH_FOUND"),title:u("COM_SPPAGEBUILDER_EDITOR_NO_COLLECTION_ITEMS_YET"),content:u("COM_SPPAGEBUILDER_EDITOR_CREATE_FIRST_COLLECTION_ITEM"),action:(0,s.tZ)(_.Z,{onClick:function(){return d(Bn.F.DynamicContentCreateItem.buildLink({collectionId:v}))},icon:(0,s.tZ)(I.Z,{name:"plus"}),children:u("COM_SPPAGEBUILDER_EDITOR_ADD_NEW_ITEM")}),wrapperCss:X_.emptyCollectionWrapperCss}):(0,s.tZ)(vo.Z,{children:(0,s.tZ)(r_,{children:(0,s.tZ)(N_,{data:C,collectionId:Number(v),pageInfo:H_(H_({},m),{},{filter:H_(H_({},m.filter),{},{limit:String(O)})}),onPageChange:g,onFilterItems:E,isLoading:w.isLoading,isCompleted:w.isSuccess,setLimitValue:h,limitValue:f})})})};var X_={emptyCollectionWrapperCss:(0,i.iv)("padding:",n.W0[128]," 0 ",n.W0[128],";&>img{width:90px;};label:emptyCollectionWrapperCss;")},$_={wrapper:(0,i.iv)("display:flex;justify-content:center;align-items:start;margin-top:",n.W0[20],";;label:wrapper;")};const K_=function(e){var t=e.collectionId,r=e.name,n=(0,Kt.d)().showModal,o=(0,A.$)();return(0,s.tZ)(_.Z,{css:$_.wrapper,variant:"text",onClick:function(){n({component:Qw,props:{title:o("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_ITEM_MODAL_TITLE",{collection:r}),collectionId:t}})},children:(0,s.tZ)(I.Z,{name:"plus"})})};function Y_(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 Q_=function(e){var t,r,o=e.closeModal,i=e.currentUrl,a=void 0===i?"":i,l=e.title,u=void 0===l?"":l,d=e.onSubmit,p=(0,A.$)(),f=(t=(0,c.useState)(a)||"",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 Y_(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)?Y_(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=f[0],v=f[1];return(0,s.tZ)(Wt.Z,{onClose:function(){return o({action:"CLOSE"})},title:u,headerCss:J_.modalHeaderCss,contentCss:J_.modalContentCss(n.qo.background.white),wrapperCss:J_.modalWrapper,hideHeader:!0,children:(0,s.BX)("div",{children:[(0,s.BX)("div",{css:J_.content,children:[(0,s.tZ)("label",{children:p("COM_SPPAGEBUILDER_EDITOR_VIDEO_URL")}),(0,s.BX)("div",{css:J_.inputWrapper,children:[(0,s.tZ)("div",{css:J_.svgGap,children:(0,s.tZ)(I.Z,{name:"link",width:16,height:16})}),(0,s.tZ)(Je.Z,{inputCss:J_.textInputStyle,value:h,onChange:function(e){return v(e)}})]})]}),(0,s.BX)("div",{css:J_.footerWrapper,children:[(0,s.tZ)(_.Z,{variant:"secondary",onClick:function(){return o({action:"CLOSE"})},children:p("COM_SPPAGEBUILDER_EDITOR_CONFIRMATION_CANCEL_BUTTON")}),(0,s.tZ)(_.Z,{variant:"primary",onClick:function(){d(h),o({action:"CLOSE"})},children:p("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_ITEM_OK")})]})]})})};var J_={modalWrapper:{name:"16222vi-modalWrapper",styles:"max-width:400px;label:modalWrapper;"},footerWrapper:(0,i.iv)("display:flex;align-items:center;padding:",n.W0[16],";gap:",n.W0[8],";justify-content:flex-end;;label:footerWrapper;"),modalHeaderCss:(0,i.iv)("padding:",n.W0[12]," ",n.W0[24],";;label:modalHeaderCss;"),modalContentCss:function(e){return(0,i.iv)("background-color:",e,";;label:modalContentCss;")},content:(0,i.iv)("padding:",n.W0[20]," ",n.W0[24]," 0 ",n.W0[24],";",o.c.body(),";color:",n.qo.text.neutral,";;label:content;"),inputWrapper:(0,i.iv)("display:flex;align-items:center;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.W0[6],";margin-top:",n.W0[4],";;label:inputWrapper;"),textInputStyle:(0,i.iv)("border:none;border-left:1px solid ",n.qo.stroke.neutral,";border-top-left-radius:0;border-bottom-left-radius:0;;label:textInputStyle;"),svgGap:(0,i.iv)("padding:",n.W0[6]," ",n.W0[8],";;label:svgGap;")};function ew(e){return ew="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},ew(e)}function tw(){tw=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==ew(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function rw(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 nw(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){rw(i,n,o,a,l,"next",e)}function l(e){rw(i,n,o,a,l,"throw",e)}a(void 0)}))}}function ow(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 iw(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)?iw(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 iw(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 aw(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 lw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aw(Object(r),!0).forEach((function(t){cw(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cw(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ew(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ew(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ew(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uw=function(e){var t,r,n,o,i=e.field,a=e.fieldState,l=e.label,u=e.hidePreview,d=void 0!==u&&u,p=e.hideAltText,f=void 0!==p&&p,h=e.previewStyle,v=e.responsive,b=e.responsiveOrientation,y=e.helpText,m=e.allowedMediaType,g=void 0===m?"image":m,E=e.isLottieFile,O=void 0!==E&&E,w=e.placeholder,C=void 0===w?"":w,S=e.showGenAI,x=void 0===S?1:S,P=e.onChange,L=e.onlySource,D=void 0!==L&&L,Z=e.uploadText,R=e.videoPlayIcon,j=e.onlyClearOption,B=e.previewBorderStyle,M=void 0===B?"solid":B,k=(0,A.$)(),N=(0,Kt.d)().showModal,G=(0,c.useRef)(null),W=(0,c.useRef)(null),U=(0,ut.v)((function(e){return e.appConfig})),F=ow((0,c.useState)(!1),2),H=F[0],V=F[1],z=ow((0,c.useState)(!1),2),X=z[0],$=z[1],K=function(e,t){return t&&e&&(0,T.HD)(e)?JSON.parse(e):function(e){return(0,T.Kn)(e)&&("src"in e||"alt"in e)}(e)?lw(lw({},e),{},{src:null!==(r=e.src)&&void 0!==r?r:"",alt:null!==(n=e.alt)&&void 0!==n?n:""}):{src:null!=e?e:"",alt:""};var r,n}(i.value,D);t="string"==typeof K.src?K.src.startsWith("http")?K.src:"".concat(T.Xy.pagebuilderBase).concat(K.src):"",r=!K.src,n=K.src||"",o=K.alt||"";var Y=(0,pe.N)(t);(0,c.useEffect)((function(){var e;null===(e=G.current)||void 0===e||e.load()}),[Y]);var Q=function(){N({component:Fr,props:{onInsert:function(e){if(O)i.onChange(null==e?void 0:e.path);else{var t,r,n=!d&&(0,T.$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:{},o=D?lw({},K):{};"image"!==(null==e?void 0:e.type)?D?(i.onChange(JSON.stringify(lw(lw({},o),{},{src:null==e?void 0:e.path,type:"mp4"}))),null==P||P(JSON.stringify(lw(lw({},o),{},{src:null==e?void 0:e.path,type:"mp4"})))):(i.onChange(lw({src:null==e?void 0:e.path},n)),null==P||P(lw({src:null==e?void 0:e.path},n))):Mt("".concat(pu.Z.APPLICATION_ROOT).concat(null==e?void 0:e.path)).then((function(t){i.onChange(lw({src:null==e?void 0:e.path,height:null==t?void 0:t.naturalHeight,width:null==t?void 0:t.naturalWidth},n)),null==P||P(lw({src:null==e?void 0:e.path,height:null==t?void 0:t.naturalHeight,width:null==t?void 0:t.naturalWidth},n))})).catch((function(e){console.log({e})}))}},allowedMediaType:g,initialCategory:"video"},closeOnOutsideClick:!0})},J=function(){N({component:Fr,props:{onInsert:function(e){if(O)i.onChange(null==e?void 0:e.path);else{var t=D?lw({},K):{};D&&(i.onChange(JSON.stringify(lw(lw({},t),{},{poster:null==e?void 0:e.path}))),null==P||P(JSON.stringify(lw(lw({},t),{},{poster:null==e?void 0:e.path}))))}},initialCategory:"image",allowedMediaType:"image"},closeOnOutsideClick:!0})},ee=function(){D&&i.onChange(JSON.stringify(lw(lw({},K),{},{poster:""})))},te=function(){O&&i.onChange(""),D?i.onChange(JSON.stringify({src:"",poster:"",type:null})):i.onChange({src:"",width:"",height:""})};return(0,s.tZ)(re.Z,{label:l,field:i,fieldState:a,responsive:v,responsiveOrientation:b,helpText:y,children:function(){return(0,s.BX)("div",{css:sw.wrapper,children:[!T.Eu&&U.enable_ai&&(0,ln.sw)(x)&&(0,s.BX)(s.HY,{children:[("image"===g||"*"===g)&&(0,s.tZ)("div",{css:q.iZ.generateWithAiButtonWrapper,children:(0,s.tZ)(_.Z,{ref:W,onClick:function(){return V(!0)},icon:(0,s.tZ)(I.Z,{name:"wand",height:18,width:18}),css:q.iZ.generateWithAiButton(),children:k("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE_WITH_AI")})}),("image"===g||"*"===g)&&(0,s.tZ)(su,{imageFullPath:t,imageUri:K.src,isOpen:H,onClose:function(){V(!1)},onChange:i.onChange,triggerRef:W})]}),!d&&(0,s.tZ)("div",{css:[sw.previewWrapper(M),h,";label:DynamicContentVideoField;"],children:r?(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:"upload",height:16,width:16}),buttonContentCss:sw.buttonContentPrimary,onClick:Q,children:Z||k("COM_SPPAGEBUILDER_EDITOR_MEDIA_UPLOAD")}):(0,s.BX)(s.HY,{children:["image"===g&&(0,s.tZ)("img",{src:Y,alt:Y,css:sw.imagePreview}),"video"===g&&(null!=K&&K.poster?(0,s.tZ)("img",{src:(e=K.poster,e&&"string"==typeof e?e.startsWith("http")?e:"".concat(T.Xy.pagebuilderBase).concat(e):""),alt:K.poster,css:sw.imagePreview}):(0,s.BX)("div",{css:sw.videoWrapper,children:[(0,s.tZ)("video",{muted:!0,ref:G,children:(0,s.tZ)("source",{src:Y,type:"video/mp4"})}),(0,s.tZ)(I.Z,{name:R||"playCircle",height:32,width:32})]})),(0,s.BX)("div",{css:sw.hoverPreview,"data-hover-buttons-wrapper":!0,children:[(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:"recycle",height:16,width:16}),buttonContentCss:sw.buttonContentPrimary,onClick:Q,children:k("COM_SPPAGEBUILDER_EDITOR_MEDIADROPZONE_REPLACE_MEDIA")}),null!=K&&K.poster?(0,s.tZ)(_.Z,{variant:"secondary",buttonContentCss:sw.buttonContentSecondary,onClick:ee,children:k("COM_SPPAGEBUILDER_EDITOR_MEDIADROPZONE_VIDEO_REMOVE_POSTER")}):(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:"plus",height:16,width:16}),variant:"secondary",buttonContentCss:sw.buttonContentSecondary,onClick:J,children:k("COM_SPPAGEBUILDER_EDITOR_MEDIADROPZONE_VIDEO_ADD_POSTER")})]})]})}),(0,s.BX)("div",{css:sw.inputWrapper,children:[(0,s.tZ)(Je.Z,{value:n,onChange:function(){var e=nw(tw().mark((function e(t){var r,n,o,a;return tw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!O){e.next=3;break}return i.onChange(K),e.abrupt("return");case 3:if(D?i.onChange(JSON.stringify(lw(lw({},K),{},{src:t}))):i.onChange(lw(lw({},K),{},{src:t})),r=t.startsWith("http")?t:"".concat(T.Xy.pagebuilderBase).concat(t),(0,T.K2)(r,"image")){e.next=7;break}return e.abrupt("return");case 7:return $(!0),e.prev=8,e.next=11,Mt(r);case 11:n=e.sent,o=n.naturalHeight,a=n.naturalWidth,i.onChange(lw(lw({},K),{},{src:t,height:o,width:a}));case 15:return e.prev=15,$(!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:sw.inputCss}),r&&!j?(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"upload",height:16,width:16}),buttonContentCss:sw.buttonContent,onClick:Q,loading:X,children:k("COM_SPPAGEBUILDER_EDITOR_MEDIA_UPLOAD")}):(0,s.tZ)(_.Z,{variant:"secondary",icon:(0,s.tZ)(I.Z,{name:"cross",height:16,width:16}),buttonContentCss:sw.buttonContent,onClick:te,loading:X,children:k("COM_SPPAGEBUILDER_EDITOR_MEDIA_CLEAR")})]}),!f&&(0,s.tZ)(Je.Z,{value:o,helperText:"COM_SPPAGEBUILDER_EDITOR_ALT_TEXT_DESC",label:"COM_SPPAGEBUILDER_EDITOR_ALT_TEXT",placeholder:k("COM_SPPAGEBUILDER_EDITOR_ALT_TEXT_PLACEHOLDER"),onChange:function(){var e=nw(tw().mark((function e(t){return tw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i.onChange(lw(lw({},K),{},{alt:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})]});var e}})};var sw={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[12],";;label:wrapper;"),previewWrapper:function(e){return(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 ",e," ",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;"),buttonContentSecondary:(0,i.iv)("svg{color:",n.qo.icon.default,";};label:buttonContentSecondary;"),imagePreview:{name:"asd3wq-imagePreview",styles:"height:100%;width:100%;object-fit:contain;label:imagePreview;"},hoverPreview:(0,i.iv)("display:none;flex-direction:column;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:48%;top:40%;color:",n.qo.icon.white,";};label:videoWrapper;")};function dw(e){return dw="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},dw(e)}function pw(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 fw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pw(Object(r),!0).forEach((function(t){hw(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function hw(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==dw(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==dw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===dw(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vw(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 bw(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)?bw(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 bw(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 yw=function(e){var t,r,n,o,i=e.field,a=e.fieldState,l=e.label,u=e.hidePreview,d=void 0!==u&&u,p=e.hideAltText,f=void 0!==p&&p,h=e.previewStyle,v=e.responsive,b=e.responsiveOrientation,y=e.helpText,m=e.allowedMediaType,g=void 0===m?"image":m,E=e.isLottieFile,O=void 0!==E&&E,w=e.placeholder,C=void 0===w?"":w,S=e.showGenAI,x=void 0===S?1:S,P=e.onChange,L=e.onlySource,D=void 0!==L&&L,Z=vw((0,c.useState)(void 0),2),R=Z[0],j=Z[1],B=vw((0,c.useState)(i.value),2),M=B[0],k=B[1],N=vw((0,c.useState)(null),2),G=N[0],W=N[1],U=vw((0,c.useState)(null),2),F=U[0],H=U[1],q=(0,A.$)(),V=(0,Kt.d)().showModal,z=function(){var e=D&&M?fw({},JSON.parse(M)):{};V({component:Q_,props:{currentUrl:F,onSubmit:function(t){D&&(i.onChange(JSON.stringify(fw(fw({},e),{},{src:t,type:"youtube"}))),null==P||P(JSON.stringify(fw(fw({},e),{},{src:t,type:"youtube"}))))}}})},X=vw((0,c.useState)(""),2),$=X[0],K=X[1];return(0,c.useEffect)((function(){F&&K(function(e){if(!function(e,t){return!!t&&["youtu.be","www.youtube.com","youtube.com","vimeo.com","www.vimeo.com","player.vimeo.com"].some((function(e){return t.includes(e)}))}(0,e))return"";try{var t=new URL(e),r="";switch(t.hostname){case"youtu.be":var n=t.pathname.substring(1);r="//www.youtube.com/embed/".concat(n,"?iv_load_policy=3&rel=0");break;case"www.youtube.com":case"youtube.com":var o=new URLSearchParams(t.search),i=o.get("v")||"";"/playlist"===t.pathname?(i=o.get("list")||"",r="//www.youtube.com/embed/?listType=playlist&list=".concat(i)):r="//www.youtube.com/embed/".concat(i,"?iv_load_policy=3&rel=0");break;case"vimeo.com":case"www.vimeo.com":case"player.vimeo.com":var a=e;if("player.vimeo.com"!==t.hostname){var l=t.pathname.substring(1);a="//player.vimeo.com/video/".concat(l)}r=a}return r}catch(t){return console.error("Invalid video URL:",e),""}}(F))}),[F]),(0,c.useEffect)((function(){var e,t;if((0,T.$K)(i.value))if(j((null===(e=JSON.parse(i.value))||void 0===e?void 0:e.type)||null),k(i.value),"mp4"===R)W(null===(t=JSON.parse(i.value))||void 0===t?void 0:t.src);else if("youtube"===R){var r;H(null===(r=JSON.parse(i.value))||void 0===r?void 0:r.src)}null===i.value&&j(null)}),[i.value,R]),(0,s.BX)("div",{css:mw.container,children:[(0,s.tZ)("label",{css:mw.labelStyle,children:l}),void 0!==R&&(0,s.BX)("div",{css:mw.bodyContainer,children:[(!(0,T.$K)(F)||""===F)&&(!(0,T.$K)(G)||""===G)&&(0,s.BX)("div",{css:mw.previewWrapper("dashed"),children:[(0,s.BX)("div",{children:[(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:"upload",height:16,width:16}),buttonContentCss:mw.buttonContentPrimary,onClick:function(){V({component:Fr,props:{onInsert:function(e){if(O)i.onChange(null==e?void 0:e.path);else{var t,r,n=!d&&(0,T.$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:{},o=D&&M?fw({},JSON.parse(M)):{};"image"!==(null==e?void 0:e.type)?D?(i.onChange(JSON.stringify(fw(fw({},o),{},{src:null==e?void 0:e.path,type:"mp4"}))),null==P||P(JSON.stringify(fw(fw({},o),{},{src:null==e?void 0:e.path,type:"mp4"})))):(i.onChange(fw({src:null==e?void 0:e.path},n)),null==P||P(fw({src:null==e?void 0:e.path},n))):Mt("".concat(pu.Z.APPLICATION_ROOT).concat(null==e?void 0:e.path)).then((function(t){i.onChange(fw({src:null==e?void 0:e.path,height:null==t?void 0:t.naturalHeight,width:null==t?void 0:t.naturalWidth},n)),null==P||P(fw({src:null==e?void 0:e.path,height:null==t?void 0:t.naturalHeight,width:null==t?void 0:t.naturalWidth},n))})).catch((function(e){console.log({e})}))}},allowedMediaType:g,initialCategory:"video"},closeOnOutsideClick:!0})},children:q("COM_SPPAGEBUILDER_EDITOR_MEDIADROPZONE_VIDEO_UPLOAD_MESSAGE")}),(0,s.tZ)(_.Z,{onClick:z,variant:"text",buttonCss:mw.buttonSpacingStyle,buttonContentCss:mw.buttonContentText,children:q("COM_SPPAGEBUILDER_EDITOR_MEDIADROPZONE_VIDEO_ADD_FROM_URL")})]}),(0,s.tZ)("div",{children:(0,s.tZ)("span",{children:q("COM_SPPAGEBUILDER_EDITOR_SUPPORTED_VIDEO_TYPES")})})]}),"youtube"===R&&(0,T.$K)(F)&&""!==F&&(0,s.tZ)("div",{css:[mw.previewWrapper("dashed"),h,";label:DynamicContentVideoFieldWrapper;"],children:(0,s.BX)(s.HY,{children:[M&&null!==(t=JSON.parse(M))&&void 0!==t&&t.poster?(0,s.tZ)("img",{src:(o=null===(r=JSON.parse(M))||void 0===r?void 0:r.poster,o&&"string"==typeof o?o.startsWith("http")?o:"".concat(T.Xy.pagebuilderBase).concat(o):""),alt:null===(n=JSON.parse(M))||void 0===n?void 0:n.poster,css:mw.imagePreview}):(0,s.tZ)("div",{css:mw.embedWrapperContainer,children:(0,s.tZ)("div",{role:"button",css:mw.embedWrapper,children:(0,s.tZ)("iframe",{css:mw.embedItem,src:$||"",allow:"accelerometer"})})}),(0,s.BX)("div",{css:mw.hoverPreview,"data-hover-buttons-wrapper":!0,children:[(0,s.tZ)(_.Z,{icon:(0,s.tZ)(I.Z,{name:"recycle",height:16,width:16}),buttonContentCss:mw.buttonContentPrimary,onClick:z,children:q("COM_SPPAGEBUILDER_EDITOR_MEDIADROPZONE_REPLACE_MEDIA")}),(0,s.tZ)(_.Z,{variant:"secondary",onClick:function(){D&&i.onChange(JSON.stringify({src:"",poster:"",type:null}))},children:q("COM_SPPAGEBUILDER_EDITOR_MEDIA_CLEAR")})]})]})}),((0,T.$K)(F)&&""!==F||(0,T.$K)(G)&&""!==G)&&(0,s.tZ)(uw,{field:i,fieldState:a,hidePreview:"mp4"!==R,hideAltText:f,previewStyle:h,responsive:v,responsiveOrientation:b,helpText:y,allowedMediaType:g,isLottieFile:O,placeholder:C,showGenAI:x,onChange:function(e){var t;if("mp4"===R)W(null===(t=JSON.parse(i.value))||void 0===t?void 0:t.src);else if("youtube"===R){var r;H(null===(r=JSON.parse(i.value))||void 0===r?void 0:r.src)}P&&P(e)},onlySource:D,uploadText:q("COM_SPPAGEBUILDER_EDITOR_MEDIADROPZONE_VIDEO_UPLOAD_MESSAGE"),videoPlayIcon:"playCirclePro",onlyClearOption:!0,previewBorderStyle:"dashed"})]})]})};var mw={container:(0,i.iv)("display:flex;flex-direction:column;position:relative;background:inherit;gap:",n.W0[4],";;label:container;"),bodyContainer:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";padding:",n.W0[12],";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.W0[6],";;label:bodyContainer;"),labelStyle:(0,i.iv)("color:",n.qo.text.default,";;label:labelStyle;"),embedWrapperContainer:(0,i.iv)("display:flex;justify-content:center;background-color:",n.qo.base.surface,";border-radius:",n.E0[8],";;label:embedWrapperContainer;"),embedWrapper:{name:"1bn3e03-embedWrapper",styles:"pointer-events:none;label:embedWrapper;"},embedItem:{name:"llzutj-embedItem",styles:"position:relative;top:0;left:0;bottom:0;height:100%;border:0;label:embedItem;"},previewWrapper:function(e){return(0,i.iv)("display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:200px;width:100%;height:160px;position:relative;overflow:hidden;gap:",n.W0[4],";background-color:",n.qo.base.surface,";border:1px ",e," ",n.qo.stroke.neutral,";border-radius:",n.E0[8],";:hover{[data-hover-buttons-wrapper]{display:flex;opacity:1;}};label:previewWrapper;")},buttonContentPrimary:(0,i.iv)("padding:",n.W0[0]," ",n.W0[8],";svg{color:",n.qo.icon.white,";};label:buttonContentPrimary;"),buttonContentText:(0,i.iv)("border:1px solid ",n.qo.action.outline.default,";padding:",n.W0[6]," ",n.W0[24],";border-radius:",n.W0[6],";;label:buttonContentText;"),buttonSpacingStyle:(0,i.iv)("padding:",n.W0[6]," ",n.W0[12],";;label:buttonSpacingStyle;"),hoverPreview:(0,i.iv)("display:none;flex-direction:column;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;"),imagePreview:{name:"asd3wq-imagePreview",styles:"height:100%;width:100%;object-fit:contain;label:imagePreview;"}};function gw(e){return gw="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},gw(e)}function Ew(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 Ow(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ew(Object(r),!0).forEach((function(t){_w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ew(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _w(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==gw(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==gw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===gw(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ww(){ww=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==gw(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Cw(e){return function(e){if(Array.isArray(e))return Lw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pw(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 Iw(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 Sw(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Iw(i,n,o,a,l,"next",e)}function l(e){Iw(i,n,o,a,l,"throw",e)}a(void 0)}))}}function xw(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)||Pw(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 Pw(e,t){if(e){if("string"==typeof e)return Lw(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)?Lw(e,t):void 0}}function Lw(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 Aw=function(){return(0,s.tZ)("span",{css:Rw.spinner,children:(0,s.tZ)(w.ZP,{})})};const Tw=function(e){var t,r=e.field,a=e.fieldState,l=e.label,u=e.responsive,d=e.responsiveOrientation,p=e.helpText,f=e.wrapperHeight,h=void 0===f?200:f,v=e.allowedFileExtensions,b=void 0===v?[]:v,y=e.caption,m=void 0!==y&&y,g=e.customButtonCss,E=e.customButtonContentCss,O=e.required,_=void 0!==O&&O,w=xw((0,c.useState)(!1),2),C=w[0],S=w[1],L=xw((0,c.useState)([]),2),D=L[0],Z=L[1],R=xw((0,c.useState)(null),2),j=R[0],B=R[1],M=(0,c.useRef)(null),k=xw((0,c.useState)(null!==(t=r.value)&&void 0!==t?t:[]),2),N=k[0],G=k[1],W=N.find((function(e){return e.id===j})),U=(0,c.useRef)(!1),F=(0,Dn.Dy)((0,Dn.VT)(Dn.we,{activationConstraint:{distance:8}})),H=Ot(),q=(0,A.$)(),V=(0,fe.p)().showToast,z=(0,Kt.d)().showModal,X=(0,ut.v)((function(e){return e.appConfig})).media_upload_max_size,$=(0,c.useRef)(null);(0,c.useEffect)((function(){var e=$.current,t=function(e){e.stopPropagation(),C||S(!0)},r=function(e){e.stopPropagation(),S(!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(){r.value&&!U.current&&(G(r.value),U.current=!0)}),[r.value]);var K=function(e){if(null==b||!b.length)return e;var t=e&&e.split(".").pop();return t&&b.includes(t)?e:(V({type:"danger",message:q("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_EXTENSION_NOT_ALLOWED")}),"")},Y=function(){var e=Sw(ww().mark((function e(){return ww().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:z({component:Fr,props:{onBulkInsert:function(e){var t=e.filter((function(e){return!N.find((function(t){return t.id===e.id}))})).map((function(e){return{id:e.id,src:e.path}}));G((function(e){return[].concat(Cw(e),Cw(t))}))},initialCategory:"image",allowedMediaType:"image",bulkImport:!0},closeOnOutsideClick:!0});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Q=function(e){var t;if(!e)return!1;var r=null!==(t=e.split(".").pop())&&void 0!==t?t:"";return["jpg","jpeg","png","gif","svg"].includes(r)},J=function(e){B(e.active.id)},ee=function(e){var t=e.active,r=e.over;r?(t.id!==r.id&&G((function(e){var n=e.findIndex((function(e){return e.id===t.id})),o=e.findIndex((function(e){return e.id===r.id}));return(0,x.Rp)(e,n,o)})),B(null)):B(null)};(0,c.useEffect)((function(){N&&r.onChange(N)}),[N]);var ne=(0,c.memo)((function(e){var t=e.id,r=e.src,o=e.isFeatured,a=(0,x.nB)({id:t}),l=a.attributes,u=a.listeners,d=a.setNodeRef,p=a.transform,f=a.transition,h=xw((0,c.useState)(!1),2),v=h[0],b=h[1],y=(0,c.useRef)(D.includes(t));(0,c.useEffect)((function(){var e;null!==(e=M.current)&&void 0!==e&&e.complete&&b(!1)}),[M.current]),(0,c.useEffect)((function(){b(!0)}),[N]);var m=o?214:100,g=(0,i.iv)("width:100%;height:100%;object-fit:cover;border-radius:8px;border:1px solid ",n.qo.stroke.neutral,";;label:imageStyle;");return(0,s.BX)("div",Ow(Ow(Ow({ref:d,css:function(e){return(0,i.iv)("transform:",P.ux.Transform.toString(p),";transition:",f,";transform-origin:0 0;position:relative;cursor:grab;width:",m,"px;height:",m,"px;grid-column:",e?"span 2":"span 1",";grid-row:",e?"span 2":"span 1",";display:flex;justify-content:center;align-items:center;box-sizing:border-box;overflow:hidden;:hover [data-hover-buttons-wrapper],",y.current&&"[data-hover-buttons-wrapper]","{visibility:visible;display:flex;opacity:1;};label:containerStyle;")}(o)},l),u),{},{children:[v&&(0,s.tZ)(Aw,{}),(0,s.tZ)("img",{src:r,alt:"",css:[g,v&&{display:"none"},";label:SortableImage;"],onLoad:function(){return b(!1)},onError:function(){return b(!1)},ref:M}),(0,s.BX)("div",{css:Rw.hoverPreview,"data-hover-buttons-wrapper":!0,children:[(0,s.tZ)("button",{type:"button",onClick:function(){return function(e){G((function(t){return t.filter((function(t){return t.id!==e}))})),Z((function(t){return t.filter((function(t){return t!==e}))}))}(Number(t))},children:(0,s.tZ)(I.Z,{name:"cross",width:16,height:16})}),(0,s.tZ)(te.Z,{onChange:function(e){Z((function(r){return e?[].concat(Cw(r),[t]):r.filter((function(e){return e!==t}))})),y.current=e},checked:y.current,labelCss:Rw.checkboxLabel})]})]}))}),(function(e,t){return e.id===t.id&&e.src===t.src&&e.isFeatured===t.isFeatured})),oe=(0,c.useMemo)((function(){return null==N?void 0:N.map((function(e,t){return(0,s.tZ)(ne,{id:e.id,src:(r=e.src,"string"==typeof r?r.startsWith("http")?r:"".concat(T.Xy.pagebuilderBase).concat(r):""),isFeatured:0===t},e.id);var r}))}),[N]),ie=(0,c.useMemo)((function(){return(null==D?void 0:D.length)>0&&(0,s.BX)("div",{css:Rw.selectionMessageContainer,children:[(0,s.tZ)("p",{css:o.c.caption(),children:"".concat(1===(null==D?void 0:D.length)?q("COM_SPPAGEBUILDER_EDITOR_ITEM_SELECTED",{itemCount:D.length}):q("COM_SPPAGEBUILDER_EDITOR_ITEMS_SELECTED",{itemCount:D.length}))}),(0,s.tZ)("button",{onClick:function(){return G((function(e){return e.filter((function(e){return!D.includes(e.id)}))})),void Z([])},children:(0,s.tZ)(I.Z,{name:"trash",style:Rw.trashIcon,height:16,width:16})})]})}),[D]);return(0,s.tZ)(re.Z,{label:l,field:r,fieldState:a,responsive:u,responsiveOrientation:d,helpText:p,required:_,customWrapperCss:Rw.fieldWrapper,headerElement:ie,children:function(){return(0,s.BX)(s.HY,{children:[0===(null==N?void 0:N.length)&&(0,s.tZ)("div",{ref:$,css:Rw.droppableContainer,children:(0,s.tZ)("div",{css:Rw.mediaDropzoneWrapper(h),children:(0,s.tZ)(Ye,{multiple:!0,onUpload:function(){var e=Sw(ww().mark((function e(t){return ww().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Bt(t,X)){e.next=4;break}return V({type:"danger",message:q("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_LARGE",{size:(0,T.td)(X)})}),e.abrupt("return");case 4:return t.forEach((function(e){Q(e.name)&&K(e.name)})),S(!1),e.next=8,H.mutateAsync({file:t,multiple:!0}).then((function(e){if(e.data){var t=e.data.filter((function(e){return!N.find((function(t){return t.id===e.id}))})).map((function(e){return{id:e.id,src:e.path}}));G((function(e){return[].concat(Cw(e),Cw(t))}))}}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onDragLeave:function(){return S(!1)},onClickHandler:Y,caption:m,supportedFileExtensions:b,uploadIcon:"upload",uploadButtonText:q("COM_SPPAGEBUILDER_EDITOR_MEDIADROPZONE_MULT_IMAGE_UPLOAD_MESSAGE"),customButtonCss:g,customButtonContentCss:E,wrapperCss:Rw.galleryUploadWrapper})})}),(null==N?void 0:N.length)>0&&(0,s.BX)(Dn.LB,{sensors:F,collisionDetection:Dn.pE,onDragEnd:ee,onDragStart:J,children:[(0,s.tZ)(x.Fo,{items:N.map((function(e){return e.id})),strategy:x.U2,children:(0,s.BX)("div",{css:Rw.gridContainerStyle(100,14),children:[oe,(0,s.tZ)("div",{css:Rw.uploader(100),onClick:Y,children:(0,s.tZ)("button",{type:"button",children:(0,s.tZ)(I.Z,{name:"upload",width:20,height:20})})})]})}),(0,s.tZ)(Dn.y9,{adjustScale:!0,children:j&&W?(0,s.tZ)("div",{css:Rw.container(N.length),children:(0,s.tZ)("div",{css:Rw.content,children:(0,s.tZ)("div",{css:Rw.overlay,children:(0,s.tZ)("img",{src:W.src})})})}):null})]})]})}})};var Dw={name:"hlxxgc-container",styles:"grid-column:1/3;grid-row:1/3;label:container;"},Zw={name:"82ulnk-container",styles:"padding-top:19.2%;grid-column:1/6;label:container;"},Rw={droppableContainer:{name:"1rzr5rr-droppableContainer",styles:"flex:1;position:relative;label:droppableContainer;"},mediaDropzoneWrapper:function(e){return(0,i.iv)("padding-right:",n.W0[24],";padding-right:0;height:",e,"px;;label:mediaDropzoneWrapper;")},hoverPreview:(0,i.iv)("visibility:hidden;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],";transition:opacity 0.1s ease-in-out,visibility 0.1s ease-in-out;input{height:20px;width:20px;top:",n.W0[10],";left:",n.W0[10],";border-radius:",n.E0[4],";position:absolute;cursor:pointer;}button{height:20px;width:20px;display:flex;align-items:center;justify-content:center;outline:none;border:none;border-radius:",n.E0[4],";top:",n.W0[10],";right:",n.W0[10],";position:absolute;cursor:pointer;:last-of-type{background-color:",n.qo.base.white,";}};label:hoverPreview;"),spinner:{name:"k6liae-spinner",styles:"position:absolute;visibility:visible;display:flex;left:50%;top:50%;transform:translateX(-50%) translateY(-50%);label:spinner;"},gridContainerStyle:function(e,t){return(0,i.iv)("display:grid;grid-template-columns:repeat(6, ",e,"px);gap:",t,"px;align-items:start;;label:gridContainerStyle;")},uploader:function(e){return(0,i.iv)("width:",e,"px;height:",e,"px;display:flex;justify-content:center;align-items:center;border:1px dashed ",n.qo.base.primary,";border-radius:",n.E0[8],";cursor:pointer;transition:background-color 0.2s ease-in-out;:hover{background-color:",n.qo.base.primary,";svg{color:",n.qo.base.white,";transition:color 0.2s ease-in-out;}}button{outline:none;border:none;cursor:pointer;background-color:transparent;};label:uploader;")},selectionMessageContainer:(0,i.iv)("display:flex;gap:",n.W0[10],";justify-content:flex-end;position:absolute;right:",n.W0[12],";p{display:flex;align-items:center;}button{border:1px solid ",n.qo.stroke.neutral,";background-color:",n.qo.base.white,";outline:none;height:",n.W0[24],";width:",n.W0[24],";cursor:pointer;border-radius:",n.E0[4],";padding:",n.W0[4],";display:flex;align-items:center;justify-content:center;transition:border-color 0.2s ease-in-out;svg{transition:color 0.2s ease-in-out;}:hover{border-color:",n.qo.stroke.error,";svg{color:",n.qo.icon.error,";}}};label:selectionMessageContainer;"),trashIcon:(0,i.iv)("color:",n.qo.icon.default,";;label:trashIcon;"),fieldWrapper:(0,i.iv)("border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[4],";>div:first-of-type>div:first-of-type{border-bottom:1px solid #eeeef1;padding:",n.W0[12],";position:relative;}>div:first-of-type>div:last-child{padding:",n.W0[12],";};label:fieldWrapper;"),overlay:(0,i.iv)("background-color:",n.qo.background.neutral,";border-radius:",n.E0[6],";overflow:hidden;border:1px solid ",n.qo.stroke.neutral,";position:relative;transform-origin:0 0;display:flex;align-items:center;img{width:100%;};label:overlay;"),content:{name:"uo55x9-content",styles:"position:absolute;inset:0;display:flex;label:content;"},container:function(e){return(0,i.iv)("position:relative;width:100%;padding-top:100%;&:nth-of-type(1){",0===e?Zw:Dw,";};label:container;")},galleryUploadWrapper:(0,i.iv)("border-radius:",n.E0[4],";;label:galleryUploadWrapper;"),checkboxLabel:(0,i.iv)("position:absolute;left:",n.W0[10],";top:",n.W0[10],";;label:checkboxLabel;")};function jw(e){return jw="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},jw(e)}var Bw="/Users/sifathaque/Herd/sppb/administrator/components/com_sppagebuilder/assets/editor/src/components/dynamic-content/collection-items/RenderCollectionItemFormField.tsx";function Mw(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 kw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mw(Object(r),!0).forEach((function(t){Nw(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nw(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==jw(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==jw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===jw(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Gw=function(e){var t,r=e.field,n=e.form,o=e.isNested,a=n.formState.errors,l=(0,A.$)();switch(r.type){case"text":return(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw(kw({},(t=r.max_length,R({},(0,T.$K)(t)&&{maxLength:{value:Number(t),message:(0,A.O)("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_FIELD_MAX_LENGTH",{length:t})}}))),G(r.required)),render:function(e){return r.is_textarea?(0,i.az)(fn,kw(kw({},e),{},{key:"".concat(r.key,"-textarea"),label:r.name,helpText:r.description,placeholder:r.placeholder,required:Boolean(r.required),__source:{fileName:Bw,lineNumber:53,columnNumber:17}})):(0,i.az)(rt.Z,kw(kw({},e),{},{key:"".concat(r.key,"-text"),label:r.name,helpText:r.description,placeholder:r.placeholder,required:Boolean(r.required),__source:{fileName:Bw,lineNumber:65,columnNumber:15}}))}},r.key);case"rich-text":return(0,s.tZ)(kt.Qr,{control:n.control,rules:kw(kw({},F(r.min_length,r.max_length)),G(r.required)),name:r.key,render:function(e){return(0,s.tZ)(rg,kw(kw({},e),{},{label:r.name,helpText:r.description,placeholder:r.placeholder,showGenAI:0,required:Boolean(r.required)}))}},r.key);case"gallery":return(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw(kw({},G(r.required)),W(r.min_length,r.max_length)),render:function(e){return(0,s.tZ)(Tw,kw(kw({},e),{},{label:r.name,helpText:r.description,wrapperHeight:200,customButtonContentCss:Ww.dropFieldButtonContentCss,customButtonCss:Ww.dropFieldButtonCss,required:Boolean(r.required)}))}},r.key);case"image":return(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw({},G(r.required)),render:function(e){return(0,s.tZ)(Jr,kw(kw({},e),{},{label:r.name,helpText:r.description,placeholder:r.placeholder,wrapperHeight:158,customButtonContentCss:Ww.dropFieldButtonContentCss,customButtonCss:Ww.dropFieldButtonCss,required:Boolean(r.required)}))}},r.key);case"video":return(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw({},G(r.required)),render:function(e){return(0,s.tZ)(yw,kw(kw({},e),{},{label:r.name,placeholder:r.placeholder,hidePreview:!1,hideAltText:!0,allowedMediaType:"video",onlySource:!0}))}},r.key);case"email":return(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw({},G(r.required)),render:function(e){return(0,s.tZ)(rt.Z,kw(kw({},e),{},{label:r.name,type:r.type,helpText:r.description,placeholder:r.placeholder,required:Boolean(r.required)}))}},r.key);case"phone":return(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw({},G(r.required)),render:function(e){return(0,s.tZ)(rt.Z,kw(kw({},e),{},{label:r.name,type:"tel",helpText:r.description,placeholder:r.placeholder,required:Boolean(r.required)}))}},r.key);case"date-time":return(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw({},G(r.required)),render:function(e){return(0,s.tZ)(fh,kw(kw({},e),{},{label:r.name,placeholder:r.placeholder,helpText:r.description,showTime:Boolean(r.show_time),required:Boolean(r.required)}))}},r.key);case"number":return(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw(kw({},H(r.min_length,r.max_length,r.allow_negative)),G(r.required)),render:function(e){var t=kw(kw({},e),{},{field:kw(kw({},e.field),{},{value:String(e.field.value)})});return(0,s.tZ)(rt.Z,kw(kw({},t),{},{label:r.name,type:"number",helpText:r.description,placeholder:r.placeholder,onChange:function(t){var n=""===t?"":function(e){return"integer"===(null==r?void 0:r.number_format)?Math.round(e):e}(Number(t));e.field.onChange(n)},step:Number(r.number_step),allowNegativeValue:Boolean(r.allow_negative),required:Boolean(r.required)}))}},r.key);case"link":return(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw({},G(r.required)),render:function(e){return(0,s.tZ)(rt.Z,kw(kw({},e),{},{label:r.name,type:"text",helpText:r.description,placeholder:r.placeholder,required:Boolean(r.required)}))}},r.key);case"switch":return(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw({},G(r.required)),render:function(e){var t,n,o,i=kw(kw({},e),{},{field:kw(kw({},e.field),{},{value:Number(e.field.value)})});return(0,s.BX)(s.HY,{children:[(0,s.tZ)(rn.Z,kw(kw({},i),{},{label:r.name,helpText:r.description,isInlineLabel:!0,hideErrorMessage:!0,required:Boolean(r.required)})),(null===(t=a[r.key])||void 0===t?void 0:t.message)&&(0,s.tZ)("p",{css:Ww.errorLabel,children:null===(n=a[r.key])||void 0===n||null===(o=n.message)||void 0===o?void 0:o.toString()})]})}},r.key);case"color":return(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,render:function(e){return(0,s.tZ)(He,kw(kw({},e),{},{label:r.name,helpText:r.description,required:Boolean(r.required)}))}},r.key);case"option":return(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw({},G(r.required)),render:function(e){return(0,s.tZ)(tt.Z,kw(kw({options:r.options},e),{},{label:r.name,helpText:r.description,placeholder:r.placeholder,isSearchable:!0,required:Boolean(r.required)}))}},r.key);case"file":return(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw({},G(r.required)),render:function(e){return(0,s.tZ)(Jr,kw(kw({},e),{},{label:r.name,helpText:r.description,placeholder:r.placeholder,allowedFileExtensions:r.file_extensions,wrapperHeight:158,mode:"file",caption:!0,customButtonContentCss:Ww.dropFieldButtonContentCss,customButtonCss:Ww.dropFieldButtonCss,noPathInput:!0,required:Boolean(r.required)}))}},r.key);case"reference":return(0,s.BX)("div",{css:[!o&&Ww.referenceWrapper,";label:RenderCollectionItemFormField;"],children:[(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw({},G(r.required)),render:function(e){var t,n=kw(kw({},e),{},{field:kw(kw({},e.field),{},{value:Array.isArray(e.field.value)?Number(e.field.value[0]):e.field.value})});return(0,s.tZ)(tt.Z,kw(kw({},n),{},{label:r.name,options:r.reference_items,placeholder:null!==(t=r.placeholder)&&void 0!==t?t:l("COM_SPPAGEBUILDER_EDITOR_SELECT_PLACEHOLDER"),helpText:r.description,isClearable:!1,required:Boolean(r.required)}))}},r.key),!o&&(0,s.tZ)(K_,{collectionId:r.reference_collection_id,name:r.name})]});case"multi-reference":return(0,s.BX)("div",{css:[!o&&Ww.referenceWrapper,";label:RenderCollectionItemFormField;"],children:[(0,s.tZ)(kt.Qr,{control:n.control,name:r.key,rules:kw({},G(r.required)),render:function(e){var t;return(0,s.tZ)(tn.Z,kw(kw({},e),{},{label:r.name,options:r.reference_items,placeholder:null!==(t=r.placeholder)&&void 0!==t?t:l("COM_SPPAGEBUILDER_EDITOR_SELECT_PLACEHOLDER"),helpText:r.description,isClearable:!1,arrowSize:20,required:Boolean(r.required)}))}},r.key),!o&&(0,s.tZ)(K_,{collectionId:r.reference_collection_id,name:r.name})]});default:return null}};var Ww={referenceWrapper:(0,i.iv)("display:grid;grid-template-columns:auto ",n.W0[20],";gap:",n.W0[0],";;label:referenceWrapper;"),dropFieldButtonCss:(0,i.iv)("width:196px;height:",n.W0[32],";padding:",n.W0[6]," ",n.W0[16],";display:flex;align-items:center;justify-content:center;gap:",n.W0[4],";border-radius:",n.E0[8],";background-color:",n.qo.action.primary.default,";;label:dropFieldButtonCss;"),dropFieldButtonContentCss:(0,i.iv)(o.c.body("medium"),";color:",n.qo.text.white,";text-align:center;;label:dropFieldButtonContentCss;"),errorLabel:(0,i.iv)(o.c.caption(),";display:flex;align-items:center;margin-top:-",n.W0[20],";color:",n.qo.base.error,";& svg{margin-right:",n.W0[8],";};label:errorLabel;")};function Uw(e){return Uw="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},Uw(e)}function Fw(){Fw=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: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 h(){}var v={};c(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(S([])));y&&y!==t&&r.call(y,i)&&(v=y);var m=h.prototype=p.prototype=Object.create(v);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"==Uw(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=_(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 _(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,_(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 C(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 S(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:x}}function x(){return{value:void 0,done:!0}}return f.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,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,h):(e.__proto__=h,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=S,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Hw(e){return function(e){if(Array.isArray(e))return qw(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 qw(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)?qw(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 qw(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 Vw(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 zw(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Vw(i,n,o,a,l,"next",e)}function l(e){Vw(i,n,o,a,l,"throw",e)}a(void 0)}))}}function Xw(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?Xw(Object(r),!0).forEach((function(t){Kw(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Kw(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Uw(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Uw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Uw(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Yw=["status","access","language","created_by"],Qw=function(e){var t=e.closeModal,r=e.title,n=e.collectionId,o=(0,A.$)(),i=(0,Zn.hF)({mode:"create",collection_id:n}),a=(0,Zn.H6)(),l=(0,ot.O)({defaultValues:{}}),u=l.getValues();if((0,c.useEffect)((function(){i.data&&l.reset.call(null,$w({},Object.fromEntries(i.data.map((function(e){return null!=u&&u[e.key]?[e.key,u[e.key]]:[e.key,e.value]})))))}),[i.data,l.reset]),i.isLoading)return(0,s.tZ)(w.g4,{});if(!i.data)return(0,s.tZ)("div",{children:o("COM_SPPAGEBUILDER_EDITOR_GLOBAL_SOMETHING_WENT_WRONG")});var d=i.data;return(0,s.BX)(Wt.Z,{onClose:function(){t({action:"CLOSE"})},wrapperCss:rC.modalWrapper,title:r,isOverflowYAuto:!1,children:[(0,s.tZ)("div",{css:rC.modalBody,children:(0,s.tZ)(kt.RV,$w($w({},l),{},{children:(0,s.tZ)(eC,{isNested:!0,fields:d,id:n})}))}),(0,s.BX)("div",{css:rC.footerWrapper,children:[(0,s.tZ)(_.Z,{variant:"secondary",onClick:function(){return t({action:"CLOSE"})},children:o("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_ITEM_CANCEL")}),(0,s.tZ)(_.Z,{variant:"primary",onClick:l.handleSubmit(function(){var e=zw(Fw().mark((function e(r){var o,i,c,u;return Fw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Hw(d).map((function(e){return{field_id:e.id,field_type:e.type,value:r[e.key]}})),i=o.reduce((function(e,t){return Yw.includes(t.field_type)&&(e[t.field_type]=t.value),e}),{}),c=o.filter((function(e){return!Yw.includes(e.field_type)})),u={collection_id:null!=n?n:0,values:JSON.stringify(c),published:Number(i.status),access:Number(i.access),language:String(i.language),created_by:Number(i.created_by),created:l.getValues("created")},e.next=6,a.mutateAsync(u);case 6:if(e.sent.data){e.next=9;break}return e.abrupt("return");case 9:t({action:"CLOSE"});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),loading:a.isLoading,children:o("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_ITEM_PUBLISH")})]})]})},Jw={name:"janh4w-DynamicContentForm",styles:"overflow:hidden;label:DynamicContentForm;"},eC=function(e){var t,r,n=e.fields,o=e.isNested,i=void 0!==o&&o,a=e.id,l=e.itemId,c=void 0===l?null:l,u=(0,A.$)(),d=(0,Zn.H6)(),p=(0,Zn.jQ)(),f=(0,Zn.Bd)(),h=(0,kt.Gc)(),v=$w($w({},h),{},{setSubmitError:function(){},submitError:void 0}),b=h.formState.isDirty,y=(0,nt.g)(),m=(0,Mn.s0)(),g=null===(t=n.find((function(e){return"title"===e.type})))||void 0===t?void 0:t.id,E=null===(r=n.find((function(e){return"alias"===e.type})))||void 0===r?void 0:r.id,O=h.watch("".concat(nn.vH).concat(g)),w=h.watch("".concat(nn.vH).concat(E)),C=function(){var e=zw(Fw().mark((function e(){var t,r;return Fw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b){e.next=8;break}return e.next=3,y({title:u("COM_SPPAGEBUILDER_EDITOR_COLLECTION_CONSENT_MODAL_TITLE"),confirmationMessage:u("COM_SPPAGEBUILDER_EDITOR_COLLECTION_CONSENT_MODAL_MESSAGE"),confirmButtonText:u("COM_SPPAGEBUILDER_EDITOR_COLLECTION_CONSENT_MODAL_DISCARD"),skipMutation:!0});case 3:if("CONFIRM"!==e.sent.action){e.next=7;break}return e.abrupt("return",m(Bn.F.DynamicContentSingleCollection.buildLink({collectionId:null!==(r=null==a?void 0:a.toString())&&void 0!==r?r:"0"})));case 7:return e.abrupt("return");case 8:return e.abrupt("return",m(Bn.F.DynamicContentSingleCollection.buildLink({collectionId:null!==(t=null==a?void 0:a.toString())&&void 0!==t?t:"0"})));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),S=[{id:"save-and-close",icon:"saveClose",title:"COM_SPPAGEBUILDER_EDITOR_TOPBAR_ACTION_SAVE_AND_CLOSE"},{id:"save-and-new",icon:"saveNew",title:"COM_SPPAGEBUILDER_EDITOR_TOPBAR_ACTION_SAVE_AND_NEW",isDisabled:!1},{id:"save-as-copy",icon:"copy",title:"COM_SPPAGEBUILDER_EDITOR_TOPBAR_ACTION_SAVE_AS_COPY",isDisabled:!(0,T.$K)(c)}],x=function(){var e=zw(Fw().mark((function e(t){var r,o,i,l;return Fw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Hw(n).map((function(e){return{field_id:e.id,field_type:e.type,value:t[e.key]}})),o=r.reduce((function(e,t){return Yw.includes(t.field_type)&&(e[t.field_type]=t.value),e}),{}),i=r.filter((function(e){return!Yw.includes(e.field_type)})),l={collection_id:null!=a?a:0,values:JSON.stringify(i),published:Number(o.status),access:Number(o.access),language:String(o.language),created_by:Number(o.created_by),created:h.getValues("created")},(0,T.$K)(c)){e.next=11;break}return e.next=8,d.mutateAsync(l);case 8:case 13:return e.abrupt("return",e.sent);case 11:return e.next=13,p.mutateAsync($w($w({},l),{},{item_id:c}));case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,s.tZ)("div",{css:rC.wrapper,children:!T.Eu&&(0,s.tZ)("form",{onSubmit:h.handleSubmit(function(){var e=zw(Fw().mark((function e(t){var r,n;return Fw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x(t);case 2:if((n=e.sent).data&&!(0,T.$K)(c)){e.next=5;break}return e.abrupt("return");case 5:m(Bn.F.DynamicContentEditItem.buildLink({collectionId:null!==(r=null==a?void 0:a.toString())&&void 0!==r?r:"0",itemId:n.data.toString()}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),children:(0,s.tZ)(ru.Z,{hideArrow:!0,isDefaultCardType:!1,hasWrapperShadow:!i,backButton:!0,cardCss:Jw,backButtonOnChange:C,header:i?void 0:{title:u("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_COLLECTION_ITEM"),actionTray:(0,s.BX)("div",{css:rC.actionTrayButton,children:[(0,s.tZ)(_.Z,{variant:"secondary",onClick:C,children:u("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_ITEM_CANCEL")}),(0,s.BX)(BE,{children:[(0,s.tZ)(_.Z,{loading:d.isLoading||p.isLoading,variant:"primary",type:"submit",children:u("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_ITEM_PUBLISH")}),(0,s.tZ)(L.Z,{actions:S,triggerButtonContent:(0,s.tZ)(I.Z,{name:"chevronDown"}),triggerButtonStyle:rC.triggerButton,onSelect:function(){var e=zw(Fw().mark((function e(t){var r,n,o,i;return Fw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next="save-and-close"===e.t0?3:"save-and-new"===e.t0?10:"save-as-copy"===e.t0?17:26;break;case 3:return e.next=5,x(h.getValues());case 5:if(e.sent.data){e.next=8;break}return e.abrupt("return");case 8:return m(Bn.F.DynamicContentSingleCollection.buildLink({collectionId:null!==(r=null==a?void 0:a.toString())&&void 0!==r?r:"0"})),e.abrupt("break",27);case 10:return e.next=12,x(h.getValues());case 12:if(e.sent.data){e.next=15;break}return e.abrupt("return");case 15:return m(Bn.F.DynamicContentCreateItem.buildLink({collectionId:null!==(n=null==a?void 0:a.toString())&&void 0!==n?n:"0"})),e.abrupt("break",27);case 17:if((0,T.$K)(c)){e.next=19;break}return e.abrupt("return");case 19:return e.next=21,f.mutateAsync({id:Number(c)});case 21:if((i=e.sent).data){e.next=24;break}return e.abrupt("return");case 24:return m(Bn.F.DynamicContentEditItem.buildLink({collectionId:null!==(o=null==a?void 0:a.toString())&&void 0!==o?o:"0",itemId:i.data.toString()})),e.abrupt("break",27);case 26:return e.abrupt("break",27);case 27:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})]})]})},children:(0,s.BX)("div",{css:rC.contentWrapper,children:[(0,s.tZ)("div",{css:rC.cardWrapper(i),children:n.map((function(e){return"title"===e.type?(0,s.tZ)(kt.Qr,{control:h.control,name:e.key,rules:$w({},G(e.required)),render:function(t){return(0,s.tZ)(rt.Z,$w($w({},t),{},{label:e.name,helpText:e.description,placeholder:e.placeholder,required:Boolean(e.required)}))}},e.key):"alias"===e.type?(0,s.tZ)(kt.Qr,{control:h.control,name:e.key,render:function(t){var r=e.placeholder;r=w?r:O?(0,T.VH)(O):r;var n=$w($w({},t),{},{field:$w($w({},t.field),{},{value:(0,T.VH)(t.field.value)})});return(0,s.tZ)(rt.Z,$w($w({},n),{},{label:e.name,helpText:e.description,placeholder:r,required:!1}))}},e.key):(0,s.tZ)(Gw,{field:e,form:v,isNested:i},e.key)}))}),(0,s.tZ)("div",{css:rC.formRightSidebar,children:Yw.map((function(e,t){var r=n.find((function(t){return t.type===e}));return r?(0,s.tZ)(kt.Qr,{control:h.control,name:r.key,render:function(e){return(0,s.tZ)(tt.Z,$w($w({},e),{},{placeholder:r.placeholder,label:r.name,options:r.options,helpText:r.description,isClearable:!1}))}},t):null}))})]})})})})};const tC=eC;var rC={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[24],";position:relative;;label:wrapper;"),contentWrapper:{name:"sazaqd-contentWrapper",styles:"display:grid;grid-template-columns:auto 256px;label:contentWrapper;"},formRightSidebar:(0,i.iv)("padding:",n.W0[20]," ",n.W0[24],";background-color:",n.qo.background.white,";border-left:1px solid ",n.qo.stroke.neutral,";display:flex;flex-direction:column;gap:",n.W0[16],";;label:formRightSidebar;"),actionTrayButton:(0,i.iv)("display:flex;gap:",n.W0[12],";;label:actionTrayButton;"),cardWrapper:function(e){return(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";padding:",n.W0[20]," ",n.W0[24]," ",n.W0[24]," ",n.W0[24],";height:calc(100vh - 350px);",q.iZ.overflowYAuto,";",e&&(0,i.iv)("background-color:",n.qo.background.white,";;label:cardWrapper;"),";;label:cardWrapper;")},modalWrapper:(0,i.iv)("width:1000px;height:calc(100vh - 350px);position:relative;background-color:",n.qo.background.white,";;label:modalWrapper;"),modalBody:(0,i.iv)("background-color:",n.qo.background.hover,";max-height:calc(100vh - 410px);height:100%;width:100%;padding:",n.W0[20]," ",n.W0[20],";display:flex;flex-direction:column;gap:",n.W0[16],";",q.iZ.overflowYAuto," padding-bottom:60px;;label:modalBody;"),footerWrapper:(0,i.iv)("display:flex;justify-content:end;align-items:center;gap:",n.W0[8],";padding:",n.W0[12]," ",n.W0[24],";background-color:",n.qo.background.white,";border-top:1px solid ",n.qo.stroke.neutral,";z-index:",n.W5.positive,";width:100%;height:60px;position:absolute;bottom:0;;label:footerWrapper;"),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;")};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 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 iC(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){aC(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 aC(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==nC(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==nC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===nC(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lC(e){return lC="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},lC(e)}function cC(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 uC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cC(Object(r),!0).forEach((function(t){sC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cC(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"!==lC(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==lC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===lC(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dC(e,t){if(e){if("string"==typeof e)return pC(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)?pC(e,t):void 0}}function pC(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 fC(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 hC(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)?hC(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 hC(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 vC=function(e){var t=e.value,r=e.onSave,n=e.isDoubleClick,o=void 0!==n&&n,i=e.topOffset,a=void 0===i?-12:i,l=e.leftOffset,u=void 0===l?12:l,d=e.form,p=e.afterContent,f=fC((0,c.useState)(!1),2),h=f[0],v=f[1],b=fC((0,c.useState)(""),2),y=b[0],m=b[1],g=(0,c.useRef)(null),E=(0,c.useRef)(null),O=(0,c.useRef)(null);(0,c.useEffect)((function(){m(t)}),[t,null==d?void 0:d.watch("sppb_color_variables")]),(0,c.useEffect)((function(){var e;if(h&&g.current&&O.current&&(g.current.focus(),g.current.select(),E.current&&null!==(e=E.current.parentElement)&&void 0!==e&&e.parentElement)){var t,r,n=E.current.parentElement.parentElement.offsetWidth,o=null!==(t=null===(r=E.current.parentElement.parentElement.parentElement)||void 0===r?void 0:r.offsetHeight)&&void 0!==t?t:0;g.current.style.width="".concat(n,"px"),g.current.style.height="".concat(o-8,"px"),g.current.style.top="".concat(a+4,"px"),g.current.style.paddingLeft="".concat(8,"px"),g.current.style.left="".concat(u+4,"px")}}),[h,a,u]);var _=function(){v(!1),""!==y.trim()?r(y):m(t)};return(0,s.tZ)("span",{role:"button",onClick:function(){o||v(!0)},onDoubleClick:function(){o&&v(!0)},onKeyDown:T.ZT,tabIndex:0,css:bC.editableText,children:(0,s.BX)("div",{ref:O,css:bC.contentWrapper,children:[(0,s.tZ)("span",{ref:E,title:t,css:bC.text,style:h?{visibility:"hidden"}:{},children:t.replace(/\s/g," ")}),p,h&&(0,s.tZ)("input",{ref:g,value:y,onChange:function(e){return m(e.target.value)},onBlur:_,onKeyDown:function(e){"Enter"===e.key?_():"Escape"===e.key&&(v(!1),m(t))},css:bC.editInput})]})})};var bC={editInput:(0,i.iv)(o.c.body(),";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[4],";padding:",n.W0[4]," ",n.W0[8],";background:",n.qo.base.white,";position:absolute;min-width:100%;z-index:1;&:focus{outline:none;border-color:",n.qo.action.outline.default,";};label:editInput;"),editableText:{name:"13batsv-editableText",styles:"cursor:pointer;display:block;padding:0;width:100%;position:relative;background:none;border:none;text-align:left;label:editableText;"},contentWrapper:(0,i.iv)("display:flex;align-items:center;gap:",n.W0[4],";position:relative;min-width:0;;label:contentWrapper;"),text:(0,i.iv)("display:inline-block;max-width:150px;",q.iZ.textEllipsis,";;label:text;")},yC=function(e){var t=e.isOpen,r=e.onClickOutside,n=e.position,o=e.popoverRef,i=e.onDuplicate,a=e.onDelete,l=e.leftOffset,c=void 0===l?0:l,u=(0,A.$)();return(0,s.tZ)(de.h,{isOpen:t,onClickOutside:r,children:(0,s.BX)("div",{css:gC.contextMenu,style:{left:n.left+c,top:n.top},ref:o,children:[i&&(0,s.BX)("div",{css:gC.contextMenuItem,onClick:i,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||i()},children:[(0,s.tZ)(I.Z,{name:"cloneLine",width:16,height:16}),u("COM_SPPAGEBUILDER_EDITOR_GLOBAL_COLORS_DUPLICATE")]}),a&&(0,s.BX)("div",{css:gC.contextMenuItem,onClick:a,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||a()},children:[(0,s.tZ)(I.Z,{name:"trash",width:16,height:16}),u("COM_SPPAGEBUILDER_EDITOR_GLOBAL_COLORS_DELETE")]})]})})},mC=function(e){var t=e.isOpen,r=e.onClickOutside,n=e.position,o=e.popoverRef,i=e.onDuplicate,a=e.onDelete,l=(0,A.$)();return(0,s.tZ)(de.h,{isOpen:t,onClickOutside:r,children:(0,s.BX)("div",{css:gC.contextMenu,style:{left:n.left,top:n.top},ref:o,children:[i&&(0,s.BX)("div",{css:gC.contextMenuItem,onClick:i,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||i()},children:[(0,s.tZ)(I.Z,{name:"cloneLine",width:16,height:16}),l("COM_SPPAGEBUILDER_EDITOR_GLOBAL_COLORS_DUPLICATE")]}),a&&(0,s.BX)("div",{css:gC.contextMenuItem,onClick:a,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||a()},children:[(0,s.tZ)(I.Z,{name:"trash",width:16,height:16}),l("COM_SPPAGEBUILDER_EDITOR_GLOBAL_COLORS_DELETE")]})]})})},gC={contextMenu:(0,i.iv)("position:absolute;z-index:1000;background-color:",n.qo.base.white,";border-radius:",n.E0[4],";box-shadow:",n.AF.popover,";min-width:160px;padding:",n.W0[4]," 0;;label:contextMenu;"),contextMenuItem:(0,i.iv)(o.c.body(),";color:",n.qo.text.neutral,";padding:",n.W0[8]," ",n.W0[16],";display:flex;align-items:center;gap:",n.W0[8],";cursor:pointer;transition:background-color 0.2s ease;&:hover{background-color:",n.qo.background.hover,";}svg{color:",n.qo.icon.default,";};label:contextMenuItem;")};const EC=r.p+"images/3be2d24ea2a358822a5e.png";function OC(e){return OC="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},OC(e)}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 wC(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){CC(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 CC(e,t,r){return(t=IC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IC(e){var t=function(e,t){if("object"!==OC(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==OC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===OC(t)?t:String(t)}function SC(e){return function(e){if(Array.isArray(e))return PC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xC(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 xC(e,t){if(e){if("string"==typeof e)return PC(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)?PC(e,t):void 0}}function PC(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 LC=function(e,t,r){var n=function(e,t){var r=[];return e.forEach((function(e){t.forEach((function(t){"name"!==t.id&&e[t.id]&&r.push({path:[e.name,t.name],value:e[t.id]||""})}))})),r}(e,t);r("sppb_color_variables",n)},AC=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=e.replace(/\s+\d+$/,"");if(!t.includes(e.trim()))return e;var n=0;return t.forEach((function(e){if(e.startsWith(r)){var t=e.match(new RegExp("^".concat(r,"\\s+(\\d+)$")));if(t){var o=parseInt(t[1],10);n=Math.max(n,o)}}})),"".concat(r," ").concat(n+1)};function TC(e){return TC="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},TC(e)}function DC(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 ZC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?DC(Object(r),!0).forEach((function(t){RC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function RC(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==TC(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==TC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===TC(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){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 MC=c.forwardRef((function(e,t){var r,o=e.variable,i=e.index,a=e.headers,l=e.hoveredRow,c=e.selectedColumn,u=e.selectedRow,d=e.rowRefs,p=e.contentRef,f=e.rowTriggerRef,h=e.onMouseEnter,v=e.onMouseLeave,b=e.onColorVariableChange,y=e.onRowMenuOpen,m=e.dragHandleProps,g=e.form,E=e.isDragging,O=jC(xm(),2),_=(O[0],O[1]);return(0,s.BX)("div",{css:NC.tableRow(a.length,l===o.id),ref:function(e){e&&(d.current[i]=e),"function"==typeof t?t(e):t&&(t.current=e)},onMouseEnter:function(){return h(o.id)},onMouseLeave:v,children:[(0,s.BX)("div",{css:NC.nameCell("name"===c,l===o.id||!!E),children:[(0,s.tZ)(I.Z,ZC({name:"dragger",width:16,height:16,css:NC.dragHandle},m)),(0,s.tZ)(I.Z,{name:"colorPaint",width:16,height:16,css:NC.colorIcon}),(0,s.tZ)(vC,{value:o.name,topOffset:-14,leftOffset:-8,onSave:function(e){return b(o.id,"name",e)},form:g,afterContent:l===o.id||E?(0,s.tZ)("button",{type:"button",onClick:function(e){e.stopPropagation(),e.preventDefault(),_("--sppb-".concat(o.name.toLowerCase().replaceAll(" ","-")))},css:NC.copyButton,title:"Copy variable name",children:(0,s.tZ)(I.Z,{name:"copy",width:14,height:14})}):null})]}),a.filter((function(e){return"name"!==e.id})).map((function(e){return(0,s.BX)("div",{css:NC.colorCell(c===e.id,l===o.id||!!E),children:[(0,s.tZ)(ke,{color:o[e.id]||"",onChange:function(t){return b(o.id,e.id,t)},onClose:function(t){return b(o.id,e.id,t)},plainSwatch:!0,dimension:{width:16,height:16},isClearable:!1,isGlobalColorsVisible:!1}),(0,s.tZ)(vC,{value:o[e.id]||"",topOffset:-14,leftOffset:-8,onSave:function(t){return b(o.id,e.id,t)}})]},e.id)})),l===o.id&&(0,s.tZ)("div",{css:NC.rowActionWrapper,ref:u===o.id?f:void 0,style:{right:p.current?"".concat(window.innerWidth-(p.current.getBoundingClientRect().right-parseInt(n.W0[8])),"px"):n.W0[8],top:(null===(r=d.current[i])||void 0===r?void 0:r.getBoundingClientRect().top)+16},children:(0,s.tZ)("button",{type:"button",css:NC.menuTrigger,onClick:function(e){e.stopPropagation(),y(o.id)},children:(0,s.tZ)(I.Z,{name:"ellipsisX",width:16,height:16})})})]})})),kC=function(e){var t=e.id,r=e.children,n=(0,x.nB)({id:t}),o=n.attributes,i=n.listeners,a=n.setNodeRef,l=n.transform,u=n.transition,d=n.isDragging,p=l?ZC(ZC({},l),{},{x:0}):null,f={transform:P.ux.Transform.toString(p),transition:u,zIndex:d?1:void 0,position:d?"relative":void 0};return(0,s.tZ)("div",{ref:a,style:f,css:NC.sortableItem(d),children:c.cloneElement(r,{dragHandleProps:ZC(ZC({},o),i),isDragging:d})})};var NC={wrapper:{name:"13ro9lf-wrapper",styles:"min-width:749px;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;};label:wrapper;"},loadingContainer:(0,i.iv)("display:flex;justify-content:center;align-items:center;min-height:350px;background-color:",n.qo.background.white,";;label:loadingContainer;"),emptyStateWrapper:{name:"hnwdir-emptyStateWrapper",styles:">img{max-width:180px;max-height:180px;};label:emptyStateWrapper;"},header:(0,i.iv)("display:flex;justify-content:space-between;align-items:center;margin-bottom:",n.W0[24],";;label:header;"),title:(0,i.iv)(o.c.heading4(),";margin:0;;label:title;"),container:(0,i.iv)("display:flex;background-color:",n.qo.base.white,";border-radius:",n.E0[8],";box-shadow:",n.AF.card,";min-height:348px;;label:container;"),content:{name:"ljwm9n-content",styles:"flex:1;min-width:0;display:flex;flex-direction:column;position:relative;label:content;"},table:{name:"izjvj1-table",styles:"width:100%;min-width:max-content;position:relative;label:table;"},tableHeader:function(e){return(0,i.iv)("display:grid;grid-template-columns:",749/Math.min(e,3),"px repeat(\n ",e-1,",\n ",749/Math.min(e,3),"px\n );border-bottom:1px solid ",n.qo.stroke.neutral,";position:sticky;top:0;z-index:3;background:",n.qo.base.white,";width:100%;min-width:max-content;;label:tableHeader;")},tableBodyWrapper:{name:"cxxrnc-tableBodyWrapper",styles:"position:relative;label:tableBodyWrapper;"},tableBody:{name:"21bll9-tableBody",styles:"position:relative;label:tableBody;"},tableRow:function(e,t){return(0,i.iv)("display:grid;grid-template-columns:",749/Math.min(e,3),"px repeat(\n ",e-1,",\n ",749/Math.min(e,3),"px\n );align-items:center;position:relative;width:100%;min-width:max-content;background-color:",t?n.qo.background.hover:"transparent",";;label:tableRow;")},nameCell:function(e,t){return(0,i.iv)(o.c.body(),";color:",n.qo.text.neutral,";padding:14px;display:flex;align-items:center;gap:",n.W0[8],";background-color:",e?n.qo.background.neutral:t?n.qo.background.hover:n.qo.base.white,";&:hover{background-color:",t?n.qo.background.hover:n.qo.base.white,";}position:sticky;left:0;z-index:2;;label:nameCell;")},nameColumn:function(e){return(0,i.iv)(o.c.body(),";color:",n.qo.text.hint,";display:flex;align-items:center;justify-content:space-between;background-color:",e?n.qo.background.neutral:n.qo.base.white,";cursor:pointer;transition:background-color 0.2s ease;padding:14px;padding-left:42px;position:sticky;left:0;z-index:3;;label:nameColumn;")},colorColumn:function(e){return(0,i.iv)(o.c.body(),";color:",n.qo.text.hint,";display:flex;align-items:center;justify-content:space-between;background-color:",e?n.qo.background.neutral:"transparent",";cursor:pointer;transition:background-color 0.2s ease;padding:14px;;label:colorColumn;")},colorIcon:(0,i.iv)("color:",n.qo.icon.default,";;label:colorIcon;"),newVariableButton:(0,i.iv)("min-width:120px;margin-top:",n.W0[12],";margin-left:",n.W0[12],";margin-bottom:",n.W0[12],";padding:",n.W0[8]," ",n.W0[24],";;label:newVariableButton;"),newModeButton:(0,i.iv)("border-radius:",n.E0[8],";border:1px solid ",n.qo.action.outline.default,";&:hover{color:",n.qo.text.primary,";};label:newModeButton;"),rowActionWrapper:(0,i.iv)("position:fixed;right:0;transform:translateX(",n.W0[8],");display:flex;align-items:center;gap:",n.W0[8],";padding-left:",n.W0[16],";background:linear-gradient(90deg, transparent 0%, ",n.qo.background.hover," 25%);padding-right:",n.W0[8],";;label:rowActionWrapper;"),menuTrigger:(0,i.iv)("background:none;border:none;cursor:pointer;display:flex;align-items:center;color:",n.qo.icon.default,";&:hover{color:",n.qo.icon.hover,";};label:menuTrigger;"),contentWrapper:(0,i.iv)("overflow:auto;border-top-left-radius:",n.E0[8],";border-top-right-radius:",n.E0[8],";scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}border-bottom:1px solid ",n.qo.stroke.neutral,";max-height:350px;min-height:20px;;label:contentWrapper;"),sortableItem:function(e){return(0,i.iv)("border-bottom:1px solid ",n.qo.stroke.neutral,";&:hover{background-color:",e?n.qo.background.hover:"transparent",";}&:last-child{border-bottom:none;};label:sortableItem;")},buttonWrapper:(0,i.iv)("display:flex;justify-content:flex-end;margin-top:",n.W0[24],";;label:buttonWrapper;"),dragHandle:(0,i.iv)("color:",n.qo.icon.default,";cursor:grab;outline:none;margin-right:",n.W0[8],";&:active{cursor:grabbing;};label:dragHandle;"),colorCell:function(e,t){return(0,i.iv)(o.c.body(),";color:",n.qo.text.neutral,";padding:14px;display:flex;align-items:center;gap:",n.W0[8],";background-color:",e?n.qo.background.neutral:t?n.qo.background.hover:"transparent",";z-index:0;;label:colorCell;")},copyButton:(0,i.iv)("background:none;border:none;padding:2px;cursor:pointer;color:",n.qo.icon.default,";display:flex;align-items:center;justify-content:center;opacity:0.6;transition:opacity 0.2s ease;min-width:20px;height:20px;&:hover{opacity:1;color:",n.qo.icon.hover,";};label:copyButton;"),proBannerContentCss:(0,i.iv)("padding:",n.W0[12],";;label:proBannerContentCss;")};function GC(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 WC=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=e.isLeftAlignedPlus,h=void 0!==f&&f,v=e.isAddingNewColor,b=void 0!==v&&v,y=e.setIsAddingNewColor,m=(0,A.$)(),g=(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 GC(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)?GC(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],O=g[1];return(0,s.tZ)("div",{css:[UC.panelHeadWrapper({isEditingTitle:n}),p,";label:GlobalColorGroupHeader;"],children:(0,s.BX)(s.HY,{children:[n?(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:UC.TextInputWrapper,children:(0,s.tZ)(Je.Z,{placeholder:m("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_GLOBAL_COLOR_TITLE_INPUT_PLACEHOLDER"),value:E,onChange:function(e){return O(e)},onKeyDown:function(e){"Escape"===e&&(O(""),i()),"Enter"===e&&(a(E),O(""),i())},focusOnMount:d})}),(0,s.tZ)(_.Z,{variant:"text",icon:(0,s.tZ)(I.Z,{name:"check",height:16,width:16}),buttonCss:UC.actionButton,onClick:function(){a(E),O(""),i()}}),(0,s.tZ)(_.Z,{variant:"text",icon:(0,s.tZ)(I.Z,{name:"timesAlt",height:16,width:16}),buttonCss:UC.actionButton,onClick:function(){O(""),i()}})]}):(0,T.$K)(o)&&(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:[UC.panelTitle,";label:GlobalColorGroupHeader;"],children:o.name}),(0,s.tZ)(_.Z,{variant:"text",icon:(0,s.tZ)(I.Z,{name:"pencil",height:10,width:10}),onClick:function(){O(o.name),i()}}),(0,s.tZ)(_.Z,{variant:"text",icon:(0,s.tZ)(I.Z,{name:"trash",height:10,width:10}),onClick:function(){l&&l()}})]}),h&&(0,s.tZ)(s.HY,{children:b?(0,s.tZ)(s.HY,{}):(0,s.tZ)("div",{css:UC.plusButtonWrapper,children:(0,s.tZ)(_.Z,{variant:"text",icon:(0,s.tZ)(I.Z,{name:"plusCircle",height:20,width:20}),onClick:function(){y&&y(!0)}})})})]})})};var UC={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;"},plusButtonWrapper:(0,i.iv)("margin-left:auto;display:grid;place-items:end;>button{padding:0;svg{color:",n.qo.icon.default,";}};label:plusButtonWrapper;")};const FC=r.p+"images/99334ff86cfc1d71b00f.png";function HC(e){return HC="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},HC(e)}function qC(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 VC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qC(Object(r),!0).forEach((function(t){zC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zC(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==HC(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==HC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===HC(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XC(e){return function(e){if(Array.isArray(e))return YC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||KC(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){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)||KC(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 KC(e,t){if(e){if("string"==typeof e)return YC(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)?YC(e,t):void 0}}function YC(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 QC={xl:{value:"",unit:"px"},lg:{value:"",unit:"px"},md:{value:"",unit:"px"},sm:{value:"",unit:"px"},xs:{value:"",unit:"px"}},JC={font:"",uppercase:!1,italic:!1,underline:!1,weight:"",size:ks()(QC),line_height:ks()(QC),letter_spacing:ks()(QC),type:"google"},eI={100:"Thin",200:"ExtraLight",300:"Light",400:"Normal",500:"Medium",600:"SemiBold",700:"Bold",800:"ExtraBold",900:"Black"},tI=function(e){var t=e.typography,r=e.fontsQuery,n=e.isGoogleFontsDisabled,o=e.typographyIndex,i=e.globalTypographyGroups,a=e.groupIndex,l=(0,kt.Gc)(),u=$C((0,c.useState)(!1),2),d=u[0],p=u[1],f=(0,c.useRef)(null),h=$C((0,c.useState)([]),2),v=h[0],b=h[1],y=(0,A.$)(),m=(0,c.useMemo)((function(){var e;return e=t,(0,T.$K)(e)&&(0,Ku.isObject)(e)?e:ks()(JC)}),[t]);(0,c.useEffect)((function(){if(m.font&&r.data){var e=(0,T.$K)(m.type)?m.type:"google";"google"!==e||n?"local"===e&&(0,bv.pE)({family:m.font,variants:v.length>0?v:[String(m.weight)]},"local"):(0,bv.pE)({family:m.font,variants:v.length>0?v:[String(m.weight)]},"google",r.data)}}),[m.font,m.weight,v,r.data,t]);var g="".concat(m.size.xl.value||"00","/").concat(m.line_height.xl.value||"00");return(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{ref:f,css:aI.typographyElementWrapper,children:[(0,s.tZ)("span",{css:aI.font({font:m.font,fontWeight:m.weight,italic:m.italic,underline:m.underline,upperCase:m.uppercase}),title:m.font||y("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_EMPTY_FONT_PLACEHOLDER"),children:m.font||y("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_EMPTY_FONT_PLACEHOLDER")}),(0,s.tZ)("span",{css:aI.fontWeight,children:m.weight&&m.weight in eI?eI[m.weight]:"Default"}),(0,s.tZ)("div",{css:aI.separator,children:(0,s.tZ)("span",{})}),(0,s.tZ)("div",{css:aI.sizeAndLineHeight,children:g}),(0,s.BX)("div",{css:aI.btnContainer,"data-btn-container":!0,children:[(0,s.tZ)(_.Z,{variant:"text",icon:(0,s.tZ)(I.Z,{name:"pencil",height:12,width:12}),onClick:function(){return p(!0)}}),(0,s.tZ)(_.Z,{variant:"text",icon:(0,s.tZ)(I.Z,{name:"trash",height:12,width:12}),onClick:function(){var e=i.map((function(e,t){if(t!==a)return e;var r=XC(e.typography);return r.splice(o,1),VC(VC({},e),{},{typography:r})}));l.reset(VC(VC({},l.getValues()),{},{typography:e}))}})]})]}),(0,s.tZ)(Wg,{isOpen:d,showPresets:!1,onClose:function(){return p(!1)},onChange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=VC({},ks()(e));b(t);var n=XC(i[a].typography);n[o]=VC(VC({},n[o]),r);var c=i.map((function(e,t){return t!==a?e:VC(VC({},e),{},{typography:n})}));l.reset(VC(VC({},l.getValues()),{},{typography:c}))},device:"xl",triggerRef:f,typographyValues:m})]})},rI=function(e){var t,r=e.typographyGroup,n=e.allInstalledFontsQuery,o=e.isGoogleFontsDisabled,i=e.onChange,a=e.onDelete,l=e.groupIndex,u=e.globalTypographyGroups,d=(0,kt.Gc)(),p=$C((0,c.useState)(!1),2),f=p[0],h=p[1],v=$C((0,c.useState)(!1),2),b=v[0],y=v[1],m=(0,c.useRef)(null),g=$C((0,c.useState)(null!==(t=null==r?void 0:r.typography)&&void 0!==t?t:[]),2),E=g[0],O=g[1];return(0,c.useEffect)((function(){(0,T.$K)(r.typography)&&O(r.typography)}),[r]),(0,s.BX)("div",{css:aI.groupWrapper,children:[(0,s.BX)("div",{css:aI.panelWrapper,children:[(0,s.tZ)(WC,{isEditingTitle:f,setIsEditingTitle:function(){return h((function(e){return!e}))},onChange:function(e){return i(VC(VC({},r),{},{name:e}))},onDelete:a,colorGroup:r}),(0,s.tZ)("div",{css:aI.panelItemWrapper,children:(0,s.tZ)("div",{css:aI.plusButtonWrapper,children:(0,s.tZ)(_.Z,{variant:"text",ref:m,icon:(0,s.tZ)(I.Z,{name:"plusCircle",height:24,width:24}),onClick:function(){y(!0);var e=VC({},ks()(JC)),t=[].concat(XC(E),[e]),r=u.map((function(e,r){return r!==l?e:VC(VC({},e),{},{typography:t})}));O(t),d.reset(VC(VC({},d.getValues()),{},{typography:r}))}})})})]}),(0,s.tZ)("div",{css:aI.typographyWrapper,children:null==E?void 0:E.map((function(e,t){return(0,s.tZ)(tI,{typography:e,fontsQuery:n,isGoogleFontsDisabled:o,typographyIndex:t,globalTypographyGroups:u,groupIndex:l},t)}))}),(0,s.tZ)(Wg,{isOpen:b,showPresets:!1,onClose:function(){return y(!1)},onChange:function(e){var t=VC({},ks()(e));null==E||E.pop();var r=[].concat(XC(E),[t]),n=u.map((function(e,t){return t!==l?e:VC(VC({},e),{},{typography:r})}));O(r),d.reset(VC(VC({},d.getValues()),{},{typography:n}))},device:"xl",triggerRef:m,typographyValues:E&&E.length>0?E[E.length-1]:ks()(JC)})]})};var nI={name:"1v13n35-font",styles:"text-transform:uppercase;label:font;"},oI={name:"10mr6hu-font",styles:"text-decoration:underline;label:font;"},iI={name:"gwvx45-font",styles:"font-style:italic;label:font;"},aI={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;"),proBannerContentCss:(0,i.iv)("padding:",n.W0[12],";;label:proBannerContentCss;"),panelWrapper:(0,i.iv)("display:flex;justify-content:space-between;margin-top:",n.W0[12],";;label:panelWrapper;"),groupWrapper:(0,i.iv)("display:flex;flex-direction:column;padding-bottom:",n.W0[16],";border-bottom:1px solid ",n.qo.stroke.neutral,";;label:groupWrapper;"),typographyWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[4],";padding:0 ",n.W0[24],";;label:typographyWrapper;"),panelItemWrapper:(0,i.iv)("display:flex;margin-right:",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;"),typographyElementWrapper:(0,i.iv)(q.iZ.resetButton,";",o.c.body(),";width:100%;height:32px;display:flex;align-items:center;position:relative;:focus{box-shadow:",n.AF.outline,";}:hover{color:",n.qo.text.hover,";[data-btn-container]{visibility:visible;}};label:typographyElementWrapper;"),font:function(e){var t=e.font,r=e.fontWeight,o=void 0===r?"initial":r,a=e.italic,l=void 0!==a&&a,c=e.underline,u=void 0!==c&&c,s=e.upperCase,d=void 0!==s&&s;return(0,i.iv)("text-align:left;font-weight:",o,";",q.iZ.textEllipsis,";margin-right:",n.W0[8],";",!!t&&(0,i.iv)("font-family:",t,";;label:font;")," ",l&&iI," ",u&&oI," ",d&&nI,";;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;"),fontWeight:(0,i.iv)("color:",n.qo.text.hints,";max-width:60px;;label:fontWeight;"),btnContainer:(0,i.iv)("visibility:hidden;position:absolute;right:-",n.W0[10],";>button{padding:",n.W0[6]," ",n.W0[8],";cursor:pointer;};label:btnContainer;")},lI=c.lazy((function(){return Promise.all([r.e(470),r.e(348)]).then(r.bind(r,8348))})),cI=c.lazy((function(){return r.e(863).then(r.bind(r,4977))})),uI=c.lazy((function(){return r.e(359).then(r.bind(r,1736))})),sI=c.lazy((function(){return r.e(556).then(r.bind(r,556))})),dI=c.lazy((function(){return Promise.all([r.e(254),r.e(245)]).then(r.bind(r,4245))})),pI=c.lazy((function(){return Promise.all([r.e(254),r.e(680)]).then(r.bind(r,8178))})),fI=c.lazy((function(){return r.e(513).then(r.bind(r,7513))})),hI=c.lazy((function(){return r.e(357).then(r.bind(r,5357))})),vI=c.lazy((function(){return r.e(81).then(r.bind(r,7081))})),bI=c.lazy((function(){return r.e(983).then(r.bind(r,7639))})),yI=c.lazy((function(){return r.e(4).then(r.bind(r,1004))})),mI=c.lazy((function(){return r.e(68).then(r.bind(r,4068))}));const gI=[{path:Bn.F.Home.template,element:(0,s.tZ)((function(){var e=Ai((function(e){return e.isActive}));return(0,s.BX)("div",{css:qO.wrapper,children:[(0,s.tZ)("div",{css:qO.topbar,children:(0,s.tZ)(FO,{})}),(0,s.BX)("div",{css:qO.layout,children:[(0,s.tZ)(Gi,{}),(0,s.tZ)("div",{css:qO.main(e),children:(0,s.tZ)(Mn.j3,{})})]})]})}),{}),children:[{index:!0,element:(0,s.tZ)(Mn.Fg,{to:Bn.F.PageList.template,replace:!0})},{path:Bn.F.PageList.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)(lI,{})})},{path:Bn.F.DynamicContent.template,element:(0,s.tZ)((function(e){var t,r,n,o=e.children,i=(r=(0,c.useState)([]),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 Do(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)?Do(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.")}()),a=i[0],l=i[1],u=(0,Zn.lL)(),d=(0,A.$)(),p=eo();return(0,c.useEffect)((function(){u.data&&l(u.data)}),[u.data]),u.isLoading?(0,s.tZ)(w.fz,{}):T.Eu?(0,s.BX)(vo.Z,{children:[(0,s.tZ)(bo.Z,{title:d("COM_SPPAGEBUILDER_EDITOR_PAGE_TITLE_DYNAMIC_CONTENT"),subtitle:d("COM_SPPAGEBUILDER_EDITOR_PAGE_SUBTITLE_DYNAMIC_CONTENT")}),(0,s.tZ)(S.Z,{children:(0,s.tZ)(po.Z,{emptyStateImage:fo,imageAltText:"upgrade to pro",title:d("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_PRO_TITLE"),content:d("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_PRO_CONTENT"),action:(0,s.tZ)(C.Z,{}),orientation:"vertical",customCss:jo.proBannerContentCss,wrapperCss:jo.proPopupWrapperCss})})]}):null!==(t=u.data)&&void 0!==t&&t.length?(0,s.tZ)(Zo.Provider,{value:{collections:a,updateCollections:l},children:o}):(0,s.BX)(vo.Z,{children:[(0,s.tZ)(bo.Z,{title:d("COM_SPPAGEBUILDER_EDITOR_PAGE_TITLE_DYNAMIC_CONTENT"),subtitle:d("COM_SPPAGEBUILDER_EDITOR_PAGE_SUBTITLE_DYNAMIC_CONTENT"),action:(0,s.tZ)(Lo,{showExport:!1})}),(0,s.tZ)(S.Z,{children:(0,s.tZ)(po.Z,{orientation:"vertical",emptyStateImage:To,imageAltText:d("COM_SPPAGEBUILDER_EDITOR_ADDONS_NO_MATCH_FOUND"),title:d("COM_SPPAGEBUILDER_EDITOR_NO_COLLECTION_YET"),content:d("COM_SPPAGEBUILDER_EDITOR_CREATE_FIRST_COLLECTION"),wrapperCss:jo.emptyWrapperCss,action:(0,s.BX)("div",{css:jo.emptyActionWrapper,children:[(0,s.tZ)(_.Z,{onClick:function(){p({isNew:!0,collections:a})},icon:(0,s.tZ)(I.Z,{name:"plus"}),children:d("COM_SPPAGEBUILDER_EDITOR_ADD_NEW_COLLECTION")}),(0,s.tZ)(oo,{})]}),removeBorderRadius:!0})})]})}),{children:(0,s.tZ)((function(){var e=(0,A.$)(),t=eo(),r=Ro(),n=r.collections,o=r.updateCollections,i=(0,Zn.TN)(),a=Co((0,c.useState)(null),2),l=a[0],u=a[1],d=(0,Mn.s0)(),p=uo(),f=(0,ot.O)({defaultValues:{collections:n,items:[]}}),h=(0,Dn.Dy)((0,Dn.VT)(Dn.we,{activationConstraint:{distance:10}})),v=n.find((function(e){return e.id===l}));return(0,c.useEffect)((function(){n.length&&p===Bn.F.DynamicContent.template&&d(Bn.F.DynamicContentSingleCollection.buildLink({collectionId:n[0].id.toString()}))}),[n,p,d]),T.Eu?(0,s.BX)(vo.Z,{children:[(0,s.tZ)(bo.Z,{title:e("COM_SPPAGEBUILDER_EDITOR_PAGE_TITLE_DYNAMIC_CONTENT"),subtitle:e("COM_SPPAGEBUILDER_EDITOR_PAGE_SUBTITLE_DYNAMIC_CONTENT")}),(0,s.tZ)(S.Z,{children:(0,s.tZ)(po.Z,{emptyStateImage:fo,imageAltText:"upgrade to pro",title:e("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_PRO_TITLE"),content:e("COM_SPPAGEBUILDER_EDITOR_DYNAMIC_CONTENT_PRO_CONTENT"),action:(0,s.tZ)(C.Z,{}),orientation:"vertical",customCss:Ao.proBannerContentCss,wrapperCss:Ao.proPopupWrapperCss})})]}):(0,s.BX)(vo.Z,{children:[(0,s.tZ)(bo.Z,{title:e("COM_SPPAGEBUILDER_EDITOR_PAGE_TITLE_DYNAMIC_CONTENT"),subtitle:e("COM_SPPAGEBUILDER_EDITOR_PAGE_SUBTITLE_DYNAMIC_CONTENT"),action:(0,s.tZ)(Lo,{})}),(0,s.tZ)(S.Z,{children:(0,s.tZ)(kt.RV,go(go({},f),{},{children:(0,s.BX)("div",{css:Ao.wrapper,children:[(0,s.BX)("div",{css:Ao.sidebar,children:[(0,s.BX)("div",{css:Ao.addNewCollectionWrapper,children:[(0,s.tZ)(_.Z,{onClick:function(){t({isNew:!0,collections:n})},icon:(0,s.tZ)(I.Z,{name:"plus"}),variant:"secondary",children:e("COM_SPPAGEBUILDER_EDITOR_ADD_NEW_COLLECTION")}),(0,s.tZ)(oo,{})]}),(0,s.BX)(Dn.LB,{sensors:h,collisionDetection:Dn.pE,onDragStart:function(e){u(e.active.id)},onDragEnd:function(e){var t=e.active,r=e.over;if(r&&t.id!==r.id){var a=n.findIndex((function(e){return e.id===t.id})),l=n.findIndex((function(e){return e.id===r.id}));o((function(e){var t,r=(0,x.Rp)(function(e){if(Array.isArray(e))return So(e)}(t=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Io(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.")}(),a,l),n=r.map((function(e){return e.id}));return i.mutateAsync({pks:n}),r}))}},children:[(0,s.tZ)(x.Fo,{items:n,strategy:x.qw,children:n.map((function(e){return(0,s.tZ)(Po,{collection:e},e.id)}))}),(0,s.tZ)(Dn.y9,{children:v&&(0,s.tZ)(Po,{collection:v,isOverlay:!0})})]})]}),(0,s.tZ)("div",{children:(0,s.tZ)(Mn.j3,{})})]})}))})]})}),{})}),children:[{index:!0,element:(0,s.tZ)(VO,{component:(0,s.tZ)(z_,{})})},{path:Bn.F.DynamicContentSingleCollection.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)(z_,{})})},{path:Bn.F.DynamicContentCreateItem.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)((function(){var e=(0,so.Z)(Bn.F.DynamicContentSingleCollection).collectionId,t=(0,Zn.hF)({mode:"create",collection_id:e}),r=(0,ot.O)({defaultValues:{}}),n=r.getValues();return(0,c.useEffect)((function(){t.data&&r.reset.call(null,iC({},Object.fromEntries(t.data.map((function(e){return null!=n&&n[e.key]?[e.key,n[e.key]]:[e.key,e.value]})))))}),[t.data,r.reset]),t.isLoading||!t.data?(0,s.tZ)(w.ZP,{}):(0,s.tZ)(kt.RV,iC(iC({},r),{},{children:(0,s.tZ)(tC,{fields:t.data,isNested:!1,id:e,itemId:null})}))}),{})})},{path:Bn.F.DynamicContentEditItem.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)((function(){var e=(0,so.Z)(Bn.F.DynamicContentEditItem),t=e.collectionId,r=e.itemId,n=(0,Zn.hF)({mode:"edit",item_id:r}),o=(0,ot.O)({defaultValues:{}}),i=o.getValues();return(0,c.useEffect)((function(){n.data&&o.reset.call(null,uC({},Object.fromEntries(n.data.map((function(e){return null!=i&&i[e.key]?[e.key,i[e.key]]:[e.key,e.value]})))))}),[n.data,o.reset]),n.isLoading||!n.data?(0,s.tZ)(w.ZP,{}):(0,s.tZ)(kt.RV,uC(uC({},o),{},{children:(0,s.tZ)(tC,{fields:n.data,isNested:!1,id:t,itemId:r})}))}),{})})}]},{path:Bn.F.Addons.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)(cI,{})})},{path:Bn.F.CustomIcons.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)(uI,{})})},{path:Bn.F.MediaManager.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)((function(){var e,t,r=(0,A.$)(),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)||dC(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,at.Q)();return(0,s.BX)(vo.Z,{children:[(0,s.tZ)(bo.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)(_.Z,{icon:(0,s.tZ)(I.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 pC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||dC(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)(S.Z,{children:(0,s.tZ)(kr,{isInsideModal:!1,files:i,clearFile:function(){return a([])}})})]})}),{})})},{path:Bn.F.Integrations.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)(sI,{})})},{path:Bn.F.Languages.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)(fI,{})})},{path:Bn.F.Settings.template,element:(0,s.tZ)((function(){var e=(0,A.$)(),t=uo(),r=(0,Dg.U1)(),n=(0,at.Q)(),o=(0,ot.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:[],typography:[],container_max_width:1320,google_font_api_key:"",openai_api_key:"",openai_model:"gpt-3.5-turbo",sppb_color_variables:null,show_color_switcher:0}}),i=o.reset;return(0,c.useEffect)((function(){i(r.data)}),[i,r.data]),(0,s.BX)(vo.Z,{children:[(0,s.tZ)(bo.Z,{title:e("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_TITLE"),subtitle:e("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_SUB_TITLE")}),(0,s.tZ)(S.Z,{children:(0,s.BX)("div",{css:QO.wrapper,children:[(0,s.tZ)("div",{css:QO.sidebar,children:YO.map((function(r,o){var i=r.pathnames.includes(t),a=!n.admin;return a?(0,s.BX)("div",{"aria-disabled":a,css:QO.routeItem({isActive:!1,isDisabled:a}),children:[(0,s.tZ)(I.Z,{name:r.icon,width:16,height:16}),(0,s.tZ)("span",{children:e(r.text)}),r.showProLabel&&(0,s.tZ)(Ti.Z,{})]},o):(0,s.BX)(ho.rU,{to:r.link,css:QO.routeItem({isActive:i,isDisabled:!1}),title:e(r.text),children:[(0,s.tZ)(I.Z,{name:r.icon,width:16,height:16}),(0,s.tZ)("span",{children:e(r.text)}),r.showProLabel&&(0,s.tZ)(Ti.Z,{})]},o)}))}),(0,s.tZ)("form",{css:QO.outletWrapper,children:n.admin?(0,s.tZ)(kt.RV,$O($O({},o),{},{children:(0,s.tZ)(Mn.j3,{})})):(0,s.tZ)(po.Z,{emptyStateImage:yl,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)(VO,{component:(0,s.tZ)(hI,{})})},{path:Bn.F.License.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)(vI,{})})},{path:Bn.F.ColorsLibrary.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)((function(){var e=(0,A.$)(),t=(0,kt.Gc)(),r=(0,Dg.f2)(),n=(0,c.useRef)(null),o=(0,c.useRef)([]),i=(0,c.useRef)(null),a=(0,c.useRef)(null),l=jC((0,c.useState)([]),2),u=l[0],d=l[1],p=jC((0,c.useState)([]),2),f=p[0],h=p[1],v=(0,c.useRef)(!0),b=t.watch("sppb_color_variables");(0,c.useEffect)((function(){if(v.current&&b&&b.length){var e=function(e){if(!e)return[];if(0===e.length)return[{id:"name",name:"Name"},{id:"default",name:"Default"}];var t=new Set;return e.forEach((function(e){t.add(e.path[1])})),[{id:"name",name:"Name"}].concat(SC(Array.from(t).map((function(e){return{id:e.toLowerCase(),name:e}}))))}(b),t=function(e){if(!e)return[];if(0===e.length)return[];var t=new Map;return e.forEach((function(e){var r,n,o=(r=e.path,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)||xC(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],l=t.get(i);l||(l={id:"var-".concat(i.toLowerCase().replace(/\s+/g,"-")),name:i},t.set(i,l)),l[a.toLowerCase()]=e.value})),Array.from(t.values())}(b);d(e),h(t),v.current=!1}}),[b]);var y=jC((0,c.useState)(null),2),m=y[0],g=y[1],E=jC((0,c.useState)(!1),2),O=E[0],S=E[1],P=(0,de.l)({isOpen:O,isDropdown:!0,gap:5}),L=P.triggerRef,D=P.position,Z=P.popoverRef,R=jC((0,c.useState)(null),2),j=R[0],B=R[1],M=jC((0,c.useState)(null),2),k=M[0],N=M[1],G=jC((0,c.useState)(!1),2),W=G[0],U=G[1],F=(0,de.l)({isOpen:W,isDropdown:!0,gap:5}),H=F.triggerRef,q=F.position,V=F.popoverRef;(0,c.useEffect)((function(){var e=i.current;if(e){var t=e.scrollTop,r=function(){var r=e.scrollTop;r!==t&&(t=r,null!==j&&B(null))};return e.addEventListener("scroll",r,!0),function(){e.removeEventListener("scroll",r,!0)}}}),[j]),(0,c.useEffect)((function(){var e=a.current;if(e){var t=e.scrollTop,r=function(){var r=e.scrollTop;r!==t&&(t=r,null!==j&&B(null))};return e.addEventListener("scroll",r,!0),function(){e.removeEventListener("scroll",r,!0)}}}),[j]),(0,c.useEffect)((function(){var e=window.pageYOffset,t=function(){var t=window.pageYOffset;t!==e&&(e=t,null!==j&&B(null))};return window.addEventListener("scroll",t,!0),function(){window.removeEventListener("scroll",t,!0)}}),[j]),function(){var e=[],t=localStorage.getItem("sppbActiveColorMode")||"";null==b||b.forEach((function(r){var n=r.path,o=r.value,i=jC(n||[],2),a=i[0],l=i[1],c="--sppb-".concat(a.toLowerCase().replaceAll(" ","-"));l===t&&e.push("".concat(c," : ").concat(o))}));var r=e.join("; ");document.documentElement.style.cssText=r}();var z=function(){var e=function(e,t,r){if(!e.length){for(var n="Variable",o=1;e.some((function(e){return e.name===n}));)n="Variable ".concat(o),o++;var i=[{id:"var-".concat(Date.now()),name:n,default:"#7A7C85"}],a=[{id:"name",name:"Name"},{id:"default",name:"Default"}];return LC(i,a,r),{newVariables:i,newHeaders:a}}for(var l="Variable",c=1;e.some((function(e){return e.name===l}));)l="Variable ".concat(c),c++;var u=t.reduce((function(e,t){return"name"!==t.id&&(e[t.id]="#7A7C85"),e}),{}),s=wC({id:"var-".concat(Date.now()),name:l},u),d=[].concat(SC(e),[s]);return LC(d,t,r),{newVariables:d,newHeaders:t}}(f,u,t.setValue),r=e.newVariables,n=e.newHeaders;h(r),d(n),setTimeout((function(){i.current&&(i.current.scrollTop=i.current.scrollHeight)}),0)},X=function(e,r,n){var o=function(e,t,r,n,o,i){var a=n.map((function(o){if(o.id===e){if("name"===t){var i=n.filter((function(t){return t.id!==e})).map((function(e){return e.name}));r=AC(r,i)}return wC(wC({},o),{},CC({},t,r))}return o}));return LC(a,o,i),a}(e,r,n,f,u,t.setValue);h(o)},$=function(e){g(m===e?null:e)},K=function(e){var r=function(e,t,r,n){if(r.length<=2)return null;var o=r.filter((function(t){return t.id!==e})),i=t.map((function(t){return t[e],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,[e].map(IC))}));return LC(i,o,n),{newVariables:i,newHeaders:o}}(e,f,u,t.setValue);r&&(h(r.newVariables),d(r.newHeaders)),g(null),S(!1)},Y=(0,Dn.Dy)((0,Dn.VT)(Dn.we),(0,Dn.VT)(Dn.Lg,{coordinateGetter:x.is}));return T.Eu?(0,s.tZ)(po.Z,{emptyStateImage:EC,imageAltText:"upgrade to pro",title:e("COM_SPPAGEBUILDER_EDITOR_CUSTOM_COLOR_LIBRARY"),content:e("COM_SPPAGEBUILDER_EDITOR_CUSTOM_COLOR_LIBRARY_CONTENT"),action:(0,s.tZ)(C.Z,{}),orientation:"vertical",customCss:NC.proBannerContentCss}):(0,s.BX)("div",{css:NC.wrapper,children:[(0,s.BX)("div",{css:NC.header,children:[(0,s.tZ)("h1",{css:NC.title,children:e("COM_SPPAGEBUILDER_EDITOR_GLOBAL_COLORS_TITLE")}),f.length>0&&(0,s.tZ)(_.Z,{variant:"text",type:"button",css:NC.newModeButton,onClick:function(){var e=function(e,t,r){for(var n="Mode",o=1;t.some((function(e){return e.id===n.toLowerCase().replace(/\s+/g,"_")}))||t.some((function(e){return e.name===n}));)n="Mode ".concat(o),o++;var i=n.toLowerCase().replace(/\s+/g,"_"),a=[].concat(SC(t),[{id:i,name:n}]),l=e.map((function(e){return wC(wC({},e),{},CC({},i,"#7A7C85"))}));return LC(l,a,r),{newVariables:l,newHeaders:a}}(f,u,t.setValue),r=e.newVariables,n=e.newHeaders;h(r),d(n),setTimeout((function(){i.current&&(i.current.scrollLeft=i.current.scrollWidth)}),0)},children:e("COM_SPPAGEBUILDER_EDITOR_GLOBAL_COLORS_NEW_MODE")})]}),null===b?(0,s.tZ)("div",{css:NC.loadingContainer,children:(0,s.tZ)(w.g4,{})}):0===f.length?(0,s.tZ)(po.Z,{orientation:"vertical",emptyStateImage:oa,imageAltText:e("COM_SPPAGEBUILDER_EDITOR_ADDONS_NO_MATCH_FOUND"),title:e("COM_SPPAGEBUILDER_EDITOR_GLOBAL_COLORS_NO_COLORS"),content:e("COM_SPPAGEBUILDER_EDITOR_GLOBAL_COLORS_NO_COLORS_DESC"),removeBorderRadius:!0,action:(0,s.tZ)(_.Z,{variant:"primary",type:"button",onClick:z,children:e("COM_SPPAGEBUILDER_EDITOR_GLOBAL_COLORS_NEW_VARIABLE")}),wrapperCss:NC.emptyStateWrapper}):(0,s.tZ)("div",{css:NC.container,children:(0,s.BX)("div",{css:NC.content,ref:n,children:[(0,s.tZ)("div",{css:NC.contentWrapper,ref:i,children:(0,s.BX)("div",{css:NC.table,children:[(0,s.tZ)("div",{css:NC.tableHeader(u.length),children:u.map((function(e){return(0,s.BX)("div",{ref:e.id===m?L:void 0,css:"name"===e.id?NC.nameColumn(m===e.id):NC.colorColumn(m===e.id),onClick:function(){return"name"!==e.id&&$(e.id)},onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||"name"!==e.id&&$(e.id)},role:"button",tabIndex:0,children:["name"===e.id?(0,s.tZ)(s.HY,{children:e.name}):(0,s.tZ)(vC,{value:e.name,topOffset:-14,leftOffset:-8,onSave:function(r){return function(e,r){var n=function(e,t,r,n,o){var i=n.filter((function(t){return t.id!==e})).map((function(e){return e.name})),a=AC(t,i),l=n.map((function(t){return t.id===e?wC(wC({},t),{},{name:a}):t}));return LC(r,l,o),l}(e,r,f,u,t.setValue);d(n)}(e.id,r)},isDoubleClick:!0,form:t}),m===e.id&&"name"!==e.id&&(0,s.tZ)("button",{type:"button",css:NC.menuTrigger,onClick:function(e){e.stopPropagation(),S(!0)},children:(0,s.tZ)(I.Z,{name:"ellipsisX",width:16,height:16})})]},e.id)}))}),(0,s.tZ)("div",{css:NC.tableBodyWrapper,ref:a,children:(0,s.tZ)(Dn.LB,{sensors:Y,collisionDetection:Dn.pE,onDragEnd:function(e){var r=e.active,n=e.over;null!=n&&n.id&&r.id!==n.id&&h((function(e){var o=e.findIndex((function(e){return e.id===r.id})),i=e.findIndex((function(e){return e.id===n.id})),a=(0,x.Rp)(e,o,i);return LC(a,u,t.setValue),a}))},modifiers:[Rn.l],children:(0,s.tZ)(x.Fo,{items:f.map((function(e){return e.id})),strategy:x.qw,children:(0,s.tZ)("div",{css:NC.tableBody,children:f.map((function(e,r){return(0,s.tZ)(kC,{id:e.id,children:(0,s.tZ)(MC,{variable:e,index:r,headers:u,hoveredRow:j,selectedColumn:m,selectedRow:k,rowRefs:o,contentRef:n,rowTriggerRef:H,onMouseEnter:B,onMouseLeave:function(){return B(null)},onColorVariableChange:X,onRowMenuOpen:function(e){N(e),U(!0)},form:t})},e.id)}))})})})})]})}),(0,s.tZ)("div",{children:(0,s.tZ)(_.Z,{variant:"primary",type:"button",onClick:z,css:NC.newVariableButton,children:e("COM_SPPAGEBUILDER_EDITOR_GLOBAL_COLORS_NEW_VARIABLE")})})]})}),f.length>=0&&(0,s.tZ)("div",{css:NC.buttonWrapper,children:(0,s.tZ)(_.Z,{type:"submit",loading:r.isLoading,onClick:t.handleSubmit((function(e){r.mutate(e)})),disabled:r.isLoading,children:e("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_BUTTON_TEXT_SAVE_CHANGES")})}),(0,s.tZ)(yC,{isOpen:O&&null!==m&&"name"!==m,onClickOutside:function(){return S(!1)},position:D,popoverRef:Z,onDuplicate:function(){return m&&(e=function(e,t,r,n){var o=r.find((function(t){return t.id===e}));if(!o)return{newVariables:t,newHeaders:r};var i=r.map((function(e){return e.name})),a=AC(o.name,i),l={id:"".concat(e,"_copy_").concat(Date.now()),name:a},c=[].concat(SC(r),[l]),u=t.map((function(t){return wC(wC({},t),{},CC({},l.id,t[e]))}));return LC(u,c,n),{newVariables:u,newHeaders:c}}(m,f,u,t.setValue),h(e.newVariables),d(e.newHeaders),S(!1),void setTimeout((function(){i.current&&(i.current.scrollLeft=i.current.scrollWidth)}),0));var e},onDelete:u.length>2?function(){return m&&K(m)}:void 0,leftOffset:Math.floor(749/Math.min(u.length,3)/2)}),(0,s.tZ)(mC,{isOpen:W&&null!==k,onClickOutside:function(){U(!1),N(null)},position:q,popoverRef:V,onDuplicate:function(){return k&&(e=function(e,t,r,n){var o=t.find((function(t){return t.id===e}));if(!o)return t;var i=t.map((function(e){return e.name})),a=AC(o.name,i),l=wC(wC({},o),{},{id:"var-".concat(Date.now()),name:a}),c=[].concat(SC(t),[l]);return LC(c,r,n),c}(k,f,u,t.setValue),h(e),U(!1),void setTimeout((function(){i.current&&(i.current.scrollTop=i.current.scrollHeight)}),0));var e},onDelete:function(){return k&&(e=function(e,t,r,n){var o=t.filter((function(t){return t.id!==e}));return LC(o,r,n),o}(k,f,u,t.setValue),h(e),N(null),void U(!1));var e}})]})}),{})})},{path:Bn.F.TypographyLibrary.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)((function(){var e=(0,vv.Sh)(),t=$C((0,c.useState)(!1),2),r=t[0],n=t[1],o=(0,ut.v)((function(e){return e.appConfig.is_google_fonts_disabled})),i=(0,A.$)(),a=(0,kt.Gc)(),l=(0,kt.qo)({control:a.control,name:"typography"}),u=(0,Dg.f2)();return T.Eu?(0,s.tZ)(po.Z,{emptyStateImage:FC,imageAltText:"upgrade to pro",title:i("COM_SPPAGEBUILDER_EDITOR_CUSTOM_TYPOGRAPHY_LIBRARY"),content:i("COM_SPPAGEBUILDER_EDITOR_CUSTOM_TYPOGRAPHY_LIBRARY_CONTENT"),action:(0,s.tZ)(C.Z,{}),orientation:"vertical",customCss:aI.proBannerContentCss}):(0,s.BX)("div",{css:aI.wrapper,children:[(0,s.tZ)("div",{css:aI.heading,children:i("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_GLOBAL_TYPOGRAPHY_TITLE")}),(0,s.BX)(rd.Z,{wrapperCss:aI.cardWrapperCss,children:[(0,s.tZ)("div",{css:aI.cardWrapper,children:null==l?void 0:l.map((function(t,r){return(0,s.tZ)(rI,{typographyGroup:t,globalTypographyGroups:l,allInstalledFontsQuery:e,isGoogleFontsDisabled:o,groupIndex:r,onChange:function(e){var t=l.map((function(t,n){return n!==r?t:e}));a.reset(VC(VC({},a.getValues()),{},{typography:t}))},onDelete:function(){var e=l.filter((function(e,t){return t!==r}));a.reset(VC(VC({},a.getValues()),{},{typography:e}))}},r)}))}),r?(0,s.tZ)(WC,{isEditingTitle:r,setIsEditingTitle:function(){return n((function(e){return!e}))},onChange:function(e){if(e){var t={id:"",name:e,typography:[]};a.reset(VC(VC({},a.getValues()),{},{typography:[].concat(XC(l),[t])}))}},wrapperCss:aI.globalColorGroupHeader}):(0,s.tZ)("div",{css:aI.addNewButtonWrapper,children:(0,s.tZ)(_.Z,{variant:"secondary",onClick:function(){n(!0)},children:i("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_GLOBAL_TYPOGRAPHY_BUTTON_TEXT_ADD_NEW_TYPOGRAPHY")})})]}),(0,s.tZ)("div",{css:aI.buttonWrapper,children:(0,s.tZ)(_.Z,{type:"submit",loading:u.isLoading,onClick:a.handleSubmit((function(e){u.mutate(e)})),children:i("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_BUTTON_TEXT_SAVE_CHANGES")})})]})}),{})})}]},{path:Bn.F.FontManager.template,element:(0,s.tZ)((function(){var e=(0,A.$)(),t=uo(),r=(0,vv.Sh)(),n=(0,ot.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:[],show_color_switcher:0}}),o=(0,BO.n)();return r.isLoading?(0,s.tZ)(w.fz,{}):(0,s.BX)(vo.Z,{children:[(0,s.tZ)(bo.Z,{title:e("COM_SPPAGEBUILDER_EDITOR_FONT_BOOK_PAGE_TITLE"),subtitle:e("COM_SPPAGEBUILDER_EDITOR_FONT_BOOK_PAGE_SUB_TITLE"),action:(0,s.tZ)(_.Z,{buttonCss:UO.uploadButton,onClick:function(){o({title:e("COM_SPPAGEBUILDER_EDITOR_FONT_UPLOAD_MODAL_TITLE")})},icon:(0,s.tZ)(I.Z,{name:"upload"}),children:(0,s.tZ)("span",{children:e("COM_SPPAGEBUILDER_EDITOR_UPLOAD_FONT_BUTTON")})})}),(0,s.tZ)(S.Z,{children:(0,s.BX)("div",{css:UO.wrapper,children:[(0,s.tZ)("div",{css:UO.sidebar,children:WO.map((function(n,o){var i,a=n.pathnames.includes(t);return(0,s.BX)(ho.rU,{to:n.link,css:UO.routeItem({isActive:a}),title:e(n.text),children:[(0,s.tZ)(I.Z,{name:n.icon,width:16,height:16}),(0,s.tZ)("span",{children:e(n.text)}),n.link===Bn.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:UO.outletWrapper,children:(0,s.tZ)(kt.RV,NO(NO({},n),{},{children:(0,s.tZ)(Mn.j3,{})}))})]})})]})}),{}),children:[{index:!0,element:(0,s.tZ)(Mn.Fg,{to:Bn.F.InstalledFonts.template,replace:!0})},{path:Bn.F.InstalledFonts.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)(pI,{})})},{path:Bn.F.GoogleFonts.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)(dI,{})})}]}]},{path:Bn.F.PageEditor.template,element:(0,s.tZ)(ZO,{}),children:[{index:!0,element:(0,s.tZ)(VO,{component:(0,s.tZ)(yI,{})})}]},{path:Bn.F.PopupEditor.template,element:(0,s.tZ)(ZO,{isPopup:!0}),children:[{index:!0,element:!T.Eu&&(0,s.tZ)(VO,{component:(0,s.tZ)(yI,{isPopup:!0})})}]},{path:Bn.F.Icons.template,element:(0,s.tZ)(VO,{component:(0,s.tZ)(mI,{})})},{path:"*",element:(0,s.tZ)(VO,{component:(0,s.tZ)(bI,{})})}];var EI=r(2137);const OI=function(e){var t=e.children,r=(0,A.$)(),n=(0,Dg.nq)(),o=(0,CO.$x)(),i=bn(),a=(0,$o.o)((function(e){return e.loadCopiedAddon})),l=(0,$o.o)((function(e){return e.loadCopiedSection})),u=(0,$o.o)((function(e){return e.loadCopiedDataFirstTime}));if((0,c.useEffect)((function(){u();var e=function(e){e.key===nn.dR.COPIED_ADDON_LOCAL_STORAGE_KEY&&a(e.newValue),e.key===nn.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)(w.fz,{});if((!n.data||!o.data||!i.data)&&((0,T.$K)(n.error)||(0,T.$K)(o.error)||(0,T.$K)(i.error))){var d,p,f,h,v=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=EI;return(0,T.$K)(null===(f=n.error)||void 0===f?void 0:f.response)&&403===(null===(h=n.error)||void 0===h?void 0:h.response.status)&&(b=yl),(0,s.tZ)("div",{css:_I.wrapper,children:(0,s.tZ)(po.Z,{orientation:"vertical",emptyStateImage:b,imageAltText:r("COM_SPPAGEBUILDER_EDITOR_FONT_EMPTY_STATE_IMAGE_ALT"),content:v,customCss:_I.emptyStateCustom,wrapperCss:_I.emptyStateWrapper,action:(0,s.BX)("a",{href:"".concat(pu.Z.APPLICATION_ROOT,"administrator/index.php"),css:_I.backButton,children:[(0,s.tZ)(I.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 _I={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;")},wI=r(6194),CI=r(2443),II=r(4194),SI=(0,wI.Z)({stylisPlugins:[II.Z],key:"rtl"});const xI=function(e){var t=e.children;return nn.dZ?(0,s.tZ)(CI.C,{value:SI,children:t}):(0,s.tZ)(s.HY,{children:t})};var PI=r(948),LI=r(4420),AI=r(9225);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}var DI=r(745),ZI=document.querySelector("#pagebuilder-backend-editor");(0,DI.s)(ZI).render((0,s.tZ)(c.StrictMode,{children:(0,s.tZ)(ho.UT,{children:(0,s.tZ)(E,{children:(0,s.tZ)((function(){var e,t,r=(0,Mn.TH)(),n=(e=(0,c.useState)((function(){return new PI.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 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.")}())[0];(0,c.useLayoutEffect)((function(){window.scroll({top:0,behavior:"smooth"})}),[r.pathname]);var o=(0,Mn.V$)(gI);return(0,s.tZ)(xI,{children:(0,s.tZ)(LI.QueryParamProvider,{adapter:AI.Q,children:(0,s.tZ)(dt.aH,{client:n,children:(0,s.tZ)(fe.Z,{position:"bottom-center",children:(0,s.tZ)(OI,{children:(0,s.BX)(Kt.D,{children:[(0,s.tZ)(i.xB,{styles:(0,q.CN)()}),o]})})})})})})}),{})})})}))},9101:(e,t,r)=>{"use strict";r.d(t,{Z:()=>v});var n=r(2847),o=r(7264),i=r(824),a=r(4185),l=r(917),c=r(1954),u=r(1234),s=r(1921),d=r(7602),p=r(7294),f=r(5944);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 v=function(e){var t,r,i=e.actions,a=e.triggerButtonContent,l=e.triggerButtonStyle,v=e.onSelect,y=e.visibilityStatus,m=e.disabled,g=void 0!==m&&m,E=e.arrowPosition,O=void 0===E?"top":E,_=e.displaceLeft,w=void 0===_?0:_,C=e.displaceTop,I=void 0===C?0:C,S=e.width,x=void 0===S?150:S,P=e.title,L=(0,u.$)(),A=(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 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}}(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=A[0],D=A[1],Z=(0,c.l)({isOpen:T,isDropdown:!0,arrow:O}),R=Z.triggerRef,j=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:R,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:j.left+w,top:j.top+I,width:x}),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(),v(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:L("COM_SPPAGEBUILDER_EDITOR_ACTION_VISIBILITY_".concat(y?"HIDE":"SHOW"))})]}),!!e.isProFeature&&d.Eu&&(0,f.tZ)(n.Z,{css:b.proLabel})]},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(),v(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:L(e.title)})]}),!!e.isProFeature&&d.Eu&&(0,f.tZ)(n.Z,{css:b.proLabel})]},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;")},proLabel:(0,l.iv)("position:absolute;top:50%;right:",i.W0[4],";transform:translateY(-50%);;label:proLabel;"),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],";position:relative;",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.hasWrapperShadow,p=void 0===c||c,f=e.isCollapsed,v=void 0!==f&&f,b=e.hideArrow,y=void 0!==b&&b,m=e.backButton,g=void 0!==m&&m,E=e.backButtonOnChange,O=void 0===E?null:E,_=e.header,w=e.cardCss,C=e.cardHeaderCss,I=e.disabledCaretCollapse,S=void 0!==I&&I,x=e.isDefaultCardType,P=void 0===x||x,L=e.defaultCollapsedState,A=void 0!==L&&L,T=(t=(0,u.useState)(A),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.")}()),D=T[0],Z=T[1],R=S?!v:!D;return(0,s.BX)("div",{css:[h.wrapper({hasBorder:l,isDefaultCardType:P,hasWrapperShadow:p}),w,";label:Card;"],children:[!!_&&(0,s.BX)("div",{css:[h.headerWrapper({isCollapsed:!R||!!_.noSeparator,isDefaultCardType:P}),C,";label:Card;"],children:[(0,s.BX)("div",{css:h.titleAndAction,children:[(0,s.BX)("div",{css:h.title({isDefaultCardType:P}),children:[!y&&(0,s.tZ)(n.Z,{variant:"text",onClick:function(){Z((function(e){return!e}))},disabled:!!_.actionTray&&S,children:(0,s.tZ)(o.Z,{style:h.collapsibleIconStyle({isCollapsed:D||!!_.actionTray&&v,isDisabled:!!_.actionTray&&S}),name:"caretRight",height:16,width:16})}),!!g&&(0,s.tZ)("div",{css:h.backButtonWrapperStyle,children:(0,s.tZ)(n.Z,{variant:"text",onClick:function(){if(null===O)return window.history.back();O()},buttonCss:h.backButtonStyle,children:(0,s.tZ)(o.Z,{name:"arrowLeft"})})}),_.title]}),!!_.actionTray&&(0,s.tZ)("div",{children:_.actionTray})]}),!!_.subtitle&&(0,s.tZ)("p",{css:h.subtitle({isDefaultCardType:P}),children:_.subtitle})]}),R&&(0,s.tZ)("div",{css:h.cardBody,children:i})]})};var f={name:"134w5yv-collapsibleIconStyle",styles:"transform:rotate(90deg);label:collapsibleIconStyle;"},h={wrapper:function(e){var t=e.hasBorder,r=void 0!==t&&t,n=e.isDefaultCardType,o=void 0===n||n,a=e.hasWrapperShadow,c=void 0===a||a;return(0,l.iv)("width:100%;border-radius:",i.E0[8],";",c?"box-shadow: ".concat(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;")},backButtonWrapperStyle:(0,l.iv)("margin-right:",i.W0[12],";;label:backButtonWrapperStyle;"),backButtonStyle:(0,l.iv)("padding:",i.W0[4],";radius:",i.W0[6],";background:",i.qo.action.secondary.default,";;label:backButtonStyle;"),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 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 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}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"!==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}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,h=e.uploadButtonText,b=void 0===h?"COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_SIDEBAR_UPLOAD_FILES":h,m=e.uploadMessage,g=void 0===m?"COM_SPPAGEBUILDER_EDITOR_DRAG_AND_DROP_YOUR_FILES":m,O=e.disabled,_=void 0!==O&&O,w=(0,u.$)(),C=(0,d.useRef)(null),I=(0,p.uI)({onDrop:function(e){t(e)},multiple:l,disabled:_}),S=I.getRootProps,x=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(_)},S({onClick:function(e){e.stopPropagation()},onDragLeave:function(e){e.stopPropagation(),r()}})),{},{children:[(0,f.tZ)("input",y({},x())),(0,f.BX)("div",{css:E.dropText(_),children:[(0,f.tZ)("input",{ref:C,type:"file",multiple:!0,"aria-hidden":"true",hidden:!0,onChange:function(e){var r;_||(e.target.files&&t(function(e){if(Array.isArray(e))return v(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 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}}(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(_?"COM_SPPAGEBUILDER_EDITOR_DISABLED_DROPZONE":g)}),!_&&(0,f.tZ)(n.Z,{icon:(0,f.tZ)(i.Z,{name:"upload"}),onClick:function(){var e;return null===(e=C.current)||void 0===e?void 0:e.click()},disabled:_,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(7602),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,h=e.removeBorderRadius,v=void 0!==h&&h,b=e.wrapperCss,y=e.customCss;return(0,c.BX)("div",{css:[p.bannerWrapper({orientation:f,removeBorderRadius:v}),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:()=>v});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(7602),p=r(9250),f=r(3425),h=r(5944);const v=function(e){var t=e.query,r=e.children,a=e.disableLoader,l=void 0!==a&&a,c=(0,u.$)(),v=(0,p.s0)();return!l&&t.isLoading?(0,h.tZ)(o.g4,{}):!(0,d.$K)(t.data)&&(0,d.$K)(t.error)?(0,h.tZ)("div",{css:b.wrapper,children:(0,h.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,h.tZ)(n.Z,{onClick:function(){return v(i.F.Home.buildLink())},children:"Go Back"})})}):(0,h.tZ)(h.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;"}}},2028:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(7264),o=r(824),i=r(4185),a=r(917),l=r(1234),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,o=e.currentPage,i=e.onPageChange,a=e.totalItems,c=e.itemsPerPage,p=(0,l.$)(),h=(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)||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.")}()),v=h[0],b=h[1],y=Math.max(Math.ceil(a/c),1);(0,u.useEffect)((function(){b(o.toString())}),[o]);var m=function(e){e<1||e>y||i(e)};return(0,s.BX)("div",{css:f.wrapper,children:[(0,s.BX)("div",{css:f.pageStatus,children:[p("COM_SPPAGEBUILDER_EDITOR_PAGINATION_PAGE"),(0,s.tZ)("span",{children:(0,s.tZ)("input",{type:"text",css:f.paginationInput,value:v,onChange:function(e){var t=e.currentTarget.value.replace(/[^0-9]/g,""),r=Number(t);r>0&&r<=y?(b(t),i(r)):t||b(t)},autoComplete:"off"})}),p("COM_SPPAGEBUILDER_EDITOR_PAGINATION_PAGE_OF")," ",(0,s.tZ)("span",{children:y})]}),(0,s.BX)("div",{css:f.pageController,children:[(0,s.tZ)("button",{type:"button",css:f.paginationButton,onClick:function(){return m(o-1)},disabled:1===o,children:(0,s.tZ)(n.Z,{name:"chevronLeft",width:24,height:24})}),(0,s.tZ)("button",{type:"button",css:f.paginationButton,onClick:function(){return m(o+1)},disabled:o===y,children:(0,s.tZ)(n.Z,{name:"chevronRight",width:24,height:24})})]})]})};var f={wrapper:(0,a.iv)("display:flex;justify-content:end;align-items:center;flex-wrap:wrap;gap:",o.W0[8],";height:36px;;label:wrapper;"),pageStatus:(0,a.iv)(i.c.body()," color:",o.qo.text.neutral,";min-width:100px;;label:pageStatus;"),paginationInput:(0,a.iv)("outline:0;border:1px solid ",o.qo.stroke.neutral,";border-radius:",o.E0[5],";margin:0 ",o.W0[8],";color:",o.qo.text.neutral,";padding:",o.W0[8]," ",o.W0[12],";width:72px;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:",o.W0[0],";};label:paginationInput;"),pageController:(0,a.iv)("gap:",o.W0[8],";display:flex;justify-content:center;align-items:center;height:100%;;label:pageController;"),paginationButton:(0,a.iv)(c.iZ.resetButton,";background-color:",o.qo.background.white,";color:",o.qo.icon.default,";border-radius:",o.E0[6],";height:32px;width:32px;display:grid;place-items:center;transition:background-color 0.2s ease-in-out,color 0.3s ease-in-out;&:hover{background-color:",o.qo.base.primary,";&>svg{color:",o.qo.base.white,";}}&:disabled{background-color:",o.qo.background.disabled,";&>svg{color:",o.qo.icon.disabled,";}};label:paginationButton;")}},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(7602),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,h=void 0!==f&&f,v=e.disabled,b=void 0!==v&&v,m=e.inputContent,g=e.onToggle,E=e.staticUnit,O=(0,d.x0)();return(0,p.BX)("div",{css:y.wrapper({isInlineLabel:!!s&&h}),children:[!!s&&(0,p.tZ)("label",{htmlFor:O,css:y.label({disabled:b,isInlineLabel:!!s&&h}),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:h}),step:c}),(0,p.BX)("div",{css:y.inputWrapper({isAdvancedField:!!g||!!m||!!E}),children:[(0,p.tZ)("input",{id:O,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&&h,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 h={name:"1lxcpsm-input",styles:"width:48px;label:input;"},v={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&&v,";;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&&h," :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:()=>v});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:"%"}],h=[{label:"deg",value:"deg"},{label:"rad",value:"rad"},{label:"grad",value:"grad"},{label:"turn",value:"turn"}];const v=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,v=void 0!==p&&p,y=e.isLarge,m=void 0!==y&&y,g=e.customUnitOptions,E=void 0===g?null:g,O=e.disableTextField,_=void 0!==O&&O,w=i.value,C=i.unit,I=E||(v?h: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:_}),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===C})),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:()=>v,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})}})},h=function(e){return c.u.put(u.H.ADDONS,e).then((function(e){return e.data}))},v=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:h,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,collections:{},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,collection_page_id:0,allowed_file_extensions:[]},loadAppConfig:function(t){return e((function(){return{appConfig:t}}))}}}),{name:"App Config"}))},8008:(e,t,r)=>{"use strict";r.d(t,{Ap:()=>f,eP:()=>v,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(7602),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})}})},h=function(e){return u.u.delete(o.H.GET_ALL_ICONS,{params:{id:e}})},v=function(){var e=(0,l.NL)(),t=(0,n.p)().showToast,r=(0,i.$)();return(0,c.D)({mutationFn:h,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})}})}},1151:(e,t,r)=>{"use strict";r.d(t,{A0:()=>B,BY:()=>Z,Bd:()=>H,Bq:()=>b,Fn:()=>N,H6:()=>I,H9:()=>X,N2:()=>j,NZ:()=>M,Qr:()=>w,S0:()=>T,TN:()=>x,VI:()=>h,We:()=>q,YL:()=>m,dE:()=>V,et:()=>U,fS:()=>z,hF:()=>g,jQ:()=>O,lL:()=>y,nu:()=>K,rX:()=>G,sd:()=>L});var n=r(1731),o=r(6537),i=r(1234),a=r(5945),l=r(4469),c=r(6492),u=r(5501);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,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 p(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){f(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 f(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}var h=function(e){return e.title="title",e.alias="alias",e}({}),v=function(e){return u.u.post(o.H.COLLECTION_UPDATE_BATCH_ITEM_FORM,e,{params:{_context:"collection-items"}})},b=function(){var e=(0,n.p)().showToast,t=(0,a.NL)(),r=(0,i.$)();return(0,l.D)({mutationFn:v,onSuccess:function(){e({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_BULK_ACTION_PERFORMED_SUCCESSFULLY")}),t.invalidateQueries(["CollectionItems"]),t.invalidateQueries(["CollectionList"])},onError:function(t){e({type:"danger",message:t.message})}})},y=function(){var e=(0,n.p)().showToast;return(0,c.a)({queryKey:["CollectionList"],queryFn:function(){return u.u.get(o.H.COLLECTION_LIST,{params:{_context:"collections"}}).then((function(e){return e.data}))},onError:function(t){e({type:"danger",message:t.message})}})},m=function(e){var t=(0,n.p)().showToast;return(0,c.a)({queryKey:["CollectionItems",e],queryFn:function(){return function(e){return u.u.get(o.H.COLLECTION_LIST,{params:p(p({},e),{},{_context:"collection-items"})})}(e).then((function(e){return e.data}))},onError:function(e){t({type:"danger",message:e.message})}})},g=function(e){var t=(0,n.p)().showToast;return(0,c.a)({queryKey:["CollectionItemForm",e],queryFn:function(){return function(e){return u.u.get(o.H.COLLECTION_ITEM_FORM,{params:p(p({},e),{},{_context:"collection-items"})})}(e).then((function(e){return e.data}))},onError:function(e){t({type:"danger",message:e.message})}})},E=function(e){return u.u.post(o.H.UPDATE_ACTION,e,{params:{_context:"collection-items"}})},O=function(){var e=(0,n.p)().showToast,t=(0,i.$)(),r=(0,a.NL)();return(0,l.D)({mutationKey:["UpdateCollectionItem"],mutationFn:E,onSuccess:function(){e({type:"success",message:t("COM_SPPAGEBUILDER_EDITOR_UPDATE_COLLECTION_SUCCESS_MESSAGE")}),r.invalidateQueries(["CollectionItems"]),r.invalidateQueries(["CollectionItemForm"])},onError:function(t){e({type:"danger",message:t.message})}})},_=function(e){return u.u.post(o.H.CREATE_COLLECTION,e,{params:{_context:"collections"}})},w=function(){var e=(0,n.p)().showToast,t=(0,i.$)(),r=(0,a.NL)();return(0,l.D)({mutationKey:["CreateCollection"],mutationFn:_,onSuccess:function(){r.invalidateQueries(["CollectionList"]),e({type:"success",message:t("COM_SPPAGEBUILDER_EDITOR_CREATE_COLLECTION_SUCCESS_MESSAGE")})},onError:function(r){e({type:"danger",message:r.message}),400===r.response.status&&e({type:"danger",message:t("COM_SPPAGEBUILDER_EDITOR_CREATE_COLLECTION_VALIDATION_ERROR_MESSAGE")})}})},C=function(e){return u.u.post(o.H.CREATE_COLLECTION,e,{params:{_context:"collection-items"}})},I=function(){var e=(0,n.p)().showToast,t=(0,i.$)(),r=(0,a.NL)();return(0,l.D)({mutationKey:["CreateCollectionItem"],mutationFn:C,onSuccess:function(){e({type:"success",message:t("COM_SPPAGEBUILDER_EDITOR_CREATE_COLLECTION_SUCCESS_MESSAGE")}),r.invalidateQueries(["CollectionList"]),r.invalidateQueries(["CollectionItems"]),r.invalidateQueries(["CollectionItemForm"])},onError:function(t){e({type:"danger",message:t.message})}})},S=function(e){var t=e.pks;return u.u.post(o.H.REORDER_COLLECTION,{pks:JSON.stringify(t)},{params:{_context:"collections"}})},x=function(){var e=(0,n.p)().showToast,t=(0,a.NL)();return(0,l.D)({mutationKey:["ReorderCollections"],mutationFn:S,onSuccess:function(){t.invalidateQueries(["CollectionList"])},onError:function(t){e({type:"danger",message:t.message})}})},P=function(e){var t=e.id,r=e.title;return u.u.post(o.H.RENAME_COLLECTION,{id:t,title:r},{params:{_context:"collections"}})},L=function(){var e=(0,n.p)().showToast,t=(0,a.NL)();return(0,l.D)({mutationKey:["RenameCollection"],mutationFn:P,onSuccess:function(){t.invalidateQueries(["CollectionList"])},onError:function(t){e({type:"danger",message:t.message})}})},A=function(e){var t=e.id;return u.u.post(o.H.DUPLICATE_COLLECTION,{id:t},{params:{_context:"collections"}})},T=function(){var e=(0,n.p)().showToast,t=(0,a.NL)();return(0,l.D)({mutationKey:["DuplicateCollection"],mutationFn:A,onSuccess:function(){t.invalidateQueries(["CollectionList"])},onError:function(t){e({type:"danger",message:t.message})}})},D=function(e){var t=e.id,r=e.force,n=void 0!==r&&r;return u.u.delete(o.H.DELETE_COLLECTION,{params:{id:t,_context:"collections",force:n?1:0}})},Z=function(){var e=(0,n.p)().showToast,t=(0,a.NL)(),r=(0,i.$)();return(0,l.D)({mutationKey:["DeleteCollection"],mutationFn:D,onSuccess:function(n){!0===n.data&&(t.invalidateQueries(["CollectionList"]),e({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_DELETE_COLLECTION_SUCCESS_MESSAGE")}))},onError:function(t){e({type:"danger",message:t.message})}})},R=function(e){return u.u.post(o.H.UPDATE_ACTION,e,{params:{_context:"collections"}})},j=function(){var e=(0,n.p)().showToast,t=(0,i.$)(),r=(0,a.NL)();return(0,l.D)({mutationKey:["UpdateCollection"],mutationFn:R,onSuccess:function(){e({type:"success",message:t("COM_SPPAGEBUILDER_EDITOR_UPDATE_COLLECTION_SUCCESS_MESSAGE")}),r.invalidateQueries(["CollectionList"]),r.invalidateQueries(["CollectionItems"]),r.invalidateQueries(["CollectionSchemaForItemTable"])},onError:function(t){e({type:"danger",message:t.message})}})},B=function(e){return(0,c.a)({queryKey:["CollectionSchema",e],enabled:!!e,queryFn:function(){return function(e){return u.u.get(o.H.COLLECTION_SCHEMA,{params:{id:e,_context:"collections"}})}(e).then((function(e){return e.data}))}})},M=function(e){var t=e.id,r=e.allowed_types;return(0,c.a)({queryKey:["CollectionAttributes",{id:t,allowed_types:r}],enabled:!!t,queryFn:function(){return function(e){var t=e.id,r=e.allowed_types;return u.u.post(o.H.COLLECTION_ATTRIBUTES,{collection_id:t,allowed_types:r},{params:{_context:"collections"}}).then((function(e){return e.data}))}({id:t,allowed_types:r})}})},k=function(e){var t=e.pks;return u.u.post(o.H.REORDER_COLLECTION_FIELDS,{pks:JSON.stringify(t)},{params:{_context:"collection-fields"}})},N=function(){return(0,l.D)({mutationFn:k})},G=function(e){return(0,c.a)({queryKey:["CollectionSchemaForItemTable",e],enabled:!!e,queryFn:function(){return function(e){return u.u.get(o.H.COLLECTION_SCHEMA,{params:{collection_id:e,_context:"collection-items"}})}(e).then((function(e){return e.data}))}})},W=function(e){var t=e.pks;return u.u.post(o.H.REORDER_COLLECTION,{pks:JSON.stringify(t)},{params:{_context:"collection-items"}})},U=function(){return(0,l.D)({mutationFn:W})},F=function(e){var t=e.id;return u.u.post(o.H.DUPLICATE_COLLECTION_ITEM,{id:t},{params:{_context:"collection-items"}})},H=function(){var e=(0,a.NL)(),t=(0,n.p)().showToast;return(0,l.D)({mutationFn:F,onSuccess:function(){e.invalidateQueries(["CollectionItems"])},onError:function(e){t({type:"danger",message:e.message})}})},q=function(e){var t=e.id;return(0,c.a)({queryKey:["CollectionFields",t],enabled:!!t,queryFn:function(){return function(e){var t=e.id;return u.u.get(o.H.COLLECTION_FIELDS,{params:{collection_id:t,_context:"collections"}}).then((function(e){return e.data}))}({id:t})}})},V=function(e){return(0,c.a)({queryKey:["ReferenceCollectionFields",e],enabled:!!e.ownCollectionId&&!!e.parentCollectionId,queryFn:function(){return r=(t=e).ownCollectionId,n=t.parentCollectionId,u.u.get(o.H.REFERENCE_COLLECTION_FIELDS,{params:{own_collection_id:r,parent_collection_id:n,_context:"collections"}}).then((function(e){return e.data}));var t,r,n}})},z=function(){return(0,c.a)({queryKey:["DynamicContentPages"],queryFn:function(){return u.u.get(o.H.DYNAMIC_CONTENT_PAGES,{params:{_context:"collections"}}).then((function(e){return e.data}))}})},X=function(){return u.u.post(o.H.EXPORT_DYNAMIC_COLLECTION,{},{params:{_context:"collection-import-export"}})},$=function(e){return u.u.post(o.H.IMPORT_DYNAMIC_COLLECTION,e,{params:{_context:"collection-import-export"}})},K=function(){var e=(0,n.p)().showToast,t=(0,i.$)(),r=(0,a.NL)();return(0,l.D)({mutationKey:["ImportDynamicCollection"],mutationFn:$,onSuccess:function(){e({type:"success",message:t("COM_SPPAGEBUILDER_EDITOR_IMPORT_DYNAMIC_COLLECTION_SUCCESS_MESSAGE")}),r.invalidateQueries(["CollectionList"])},onError:function(t){e({type:"danger",message:t.message})}})}},7184:(e,t,r)=>{"use strict";r.d(t,{PS:()=>p,Xu:()=>d,nl:()=>v,xW:()=>f});var n=r(1731),o=r(6537),i=r(1234),a=r(4469),l=r(5945),c=r(5501),u=r(7602),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,r){var n,i="index.php?option=com_sppagebuilder&task=".concat(o.H.BULK_EXPORT),a=document.createElement("form");a.setAttribute("method","post"),a.setAttribute("id","pageExport"),a.setAttribute("action",i),a.setAttribute("target","_blank");var l=document.createElement("input");l.setAttribute("type","hidden"),l.setAttribute("name","pageIds"),l.setAttribute("value",e),a.appendChild(l);var c=document.createElement("input");c.setAttribute("type","hidden"),c.setAttribute("name","isSeoChecked"),c.setAttribute("value",String(t)),a.appendChild(c);var s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name","isMediaChecked"),s.setAttribute("value",String(r)),a.appendChild(s);var d=document.createElement("input");d.setAttribute("type","hidden"),d.setAttribute("name","_method"),d.setAttribute("value","POST"),a.appendChild(d);var p=document.createElement("input");p.setAttribute("type","hidden"),p.setAttribute("name",u.Xy.getOptions("csrf.token")),p.setAttribute("value","1"),a.appendChild(p),document.body.appendChild(a),a.submit(),null===(n=document.getElementById("pageExport"))||void 0===n||n.remove()},f=function(e,t){var r,n="index.php?option=com_sppagebuilder&task=".concat(o.H.EXPORT,"&pageId=").concat(e,"&isExportMedia=1&isSeoChecked=").concat(t),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","_method"),a.setAttribute("value","POST"),i.appendChild(a);var l=document.createElement("input");l.setAttribute("type","hidden"),l.setAttribute("name",u.Xy.getOptions("csrf.token")),l.setAttribute("value","1"),i.appendChild(l),document.body.appendChild(i),i.submit(),null===(r=document.getElementById("pageExport"))||void 0===r||r.remove()},h=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:h,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:()=>O,a4:()=>x,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 h?t:h,a=Object.create(i.prototype),l=new x(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 h(){}function v(){}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=h.prototype=Object.create(y);function O(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"==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=C(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 C(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,C(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(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:L}}function L(){return{value:void 0,done:!0}}return v.prototype=b,n(E,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:v,configurable:!0}),v.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"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(_.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()}))},O(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,x.prototype={constructor:x,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:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function h(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){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?v(Object(r),!0).forEach((function(t){y(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 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){h(i,n,o,a,l,"next",e)}function l(e){h(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),O=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})},_=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:_,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})}})},C=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:C,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})}})},S=function(e){return s.u.delete(o.H.FONTS,{params:e})},x=function(){var e=(0,i.$)(),t=(0,c.NL)(),r=(0,n.p)().showToast;return(0,u.D)({mutationFn:S,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:()=>h,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(7602),s=r(3896),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}})},h=function(){var e=(0,n.p)().showToast;return(0,l.D)({mutationFn:f,onError:function(t){e({type:"danger",message:t.message})}})},v=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:v,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,{J5:()=>I,R4:()=>x,eS:()=>R,es:()=>Z,hh:()=>S,lN:()=>w,mp:()=>T,r7:()=>L,u6:()=>E,z1:()=>O});var n=r(1731),o=r(1234),i=r(6492),a=r(5945),l=r(4469),c=r(5501),u=r(7602),s=r(6537),d=r(3896),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 h=["text","attribs","og_image"],v=["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})}})},O=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})}})},_=function(e){var t,r,n,o,i,a,l=e.id,d=g(e,v);return c.u.put(s.H.PAGES,(r=(t=d).text,n=t.attribs,o=t.og_image,i=g(t,h),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:_,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})}})},C=function(e){return c.u.patch(s.H.PAGE_PADLOCK,e)},I=function(){var e=(0,n.p)().showToast,t=(0,a.NL)();return(0,l.D)({mutationFn:C,onSuccess:function(){t.invalidateQueries(["PageList"])},onError:function(t){e({type:"danger",message:t.message})}})},S=function(e){return c.u.patch(s.H.PAGES,e)},x=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})}})},P=function(e){var t=e.ids,r=e.orders;return c.u.patch(s.H.PAGE_ORDERING,{ids:t.join(","),orders:r.join(",")})},L=function(){var e=(0,a.NL)(),t=(0,n.p)().showToast;return(0,l.D)({mutationFn:P,onSuccess:function(){e.invalidateQueries(["PageList"])},onError:function(e){t({type:"danger",message:e.message})}})},A=function(e){var t=e.title,r=e.type,n=e.collection_id,o=e.page_type;return c.u.post(s.H.PAGES,{title:t,type:r,collection_id:n,page_type:o}).then((function(e){return e.data}))},T=function(){var e=(0,n.p)().showToast,t=(0,a.NL)();return(0,l.D)({mutationFn:A,onSuccess:function(){t.invalidateQueries(["AppConfig"])},onError:function(t){e({type:"danger",message:t.message})}})},D=function(e){return c.u.get(s.H.DUPLICATE_PAGE,{params:{id:e.id}}).then((function(e){return e.data}))},Z=function(e){var t=(0,n.p)().showToast,r=(0,o.$)(),i=(0,a.NL)();return(0,l.D)({mutationFn:D,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})}})},R=function(e){return(0,i.a)({enabled:!!e,queryKey:["PreviewUrl",e],queryFn:function(){return(0,u.cW)(e,"Missing page ID"),function(e){return c.u.get(s.H.PREVIEW_URL,{params:{id:e}}).then((function(e){return e.data}))}(e)}})}},1518:(e,t,r)=>{"use strict";r.d(t,{$F:()=>p,E4:()=>E,Gj:()=>C,_s:()=>v,fp:()=>d,hX:()=>y,iG:()=>f,rM:()=>_,uC:()=>S,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(7602),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})}})},h=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}))},v=function(){var e=(0,l.NL)(),t=(0,n.p)().showToast,r=(0,i.$)();return(0,c.D)({mutationFn:h,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})}})},O=function(e){return u.u.delete(o.H.SAVED_SECTIONS,{params:{id:e}})},_=function(){var e=(0,l.NL)(),t=(0,n.p)().showToast,r=(0,i.$)();return(0,c.D)({mutationFn:O,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(",")})},C=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(",")})},S=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(7602),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,{LY:()=>g,U1:()=>m,V2:()=>I,es:()=>w,f2:()=>O,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","typography","sppb_color_variables"];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 h(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){v(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 v(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(){return s.u.get(o.H.APPLICATION_SETTINGS)},m=function(){var e=(0,n.p)().showToast;return(0,l.a)({queryKey:["ApplicationSettings"],queryFn:function(){return y().then((function(e){return e.data}))},onError:function(t){e({type:"danger",message:t.message})}})},g=function(){var e=(0,n.p)().showToast;return(0,l.a)({queryKey:["TypographyPresets"],queryFn:function(){return y().then((function(e){return e.data}))},onError:function(t){e({type:"danger",message:t.message})}})},E=function(e){var t=e.ig_token,r=e.colors,n=e.typography,i=e.sppb_color_variables,a=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,h(h({},a),{},{ig_token:JSON.stringify(t),colors:JSON.stringify(r),typography:JSON.stringify(n),sppb_color_variables:JSON.stringify(i)}))},O=function(){var e=(0,n.p)().showToast,t=(0,c.NL)();return(0,u.D)({mutationFn:E,onSuccess:function(){e({type:"success",message:"Settings saved successfully!"}),t.invalidateQueries(["ApplicationSettings"]),t.invalidateQueries(["AppConfig"])},onError:function(t){e({type:"danger",message:t.message})}})},_=function(){return s.u.get(o.H.PURGE_CSS)},w=function(){var e=(0,n.p)().showToast,t=(0,i.$)();return(0,u.D)({mutationFn:_,onSuccess:function(){e({type:"success",message:t("COM_SPPAGEBUILDER_EDITOR_CSS_PURGED_SUCCESSFULLY")})},onError:function(t){e({type:"danger",message:t.message})}})},C=function(e){return s.u.post(o.H.SAVE_IG_TOKEN,{ig_token:e.ig_token})},I=function(){var e=(0,n.p)().showToast;return(0,u.D)({mutationFn:C,onError:function(t){e({type:"danger",message:t.message})}})}},3896:(e,t,r)=>{"use strict";r.d(t,{o:()=>St});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(7602),p=r(1245),f=r.n(p);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 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 b(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){y(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 y(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}function m(e){return function(e){if(Array.isArray(e))return O(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 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}}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 _=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 h,v=s.findIndex((function(e){return e.id===f.parent})),b=s[v];(0,d.$K)(b)&&(null===(h=b.children)||void 0===h||h.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 h=p[a].table_advanced_item[u].content[s],v=p[a].table_advanced_item[u].content,b=f()(h);b.id=(0,d.x0)(),v.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,O=f()(g);O.id=(0,d.x0)(),E.splice(s+1,0,O)}}return(0,c.m)(e)}),!1,"DUPLICATE_TABLE_ITEM_ADDON")}},C=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],h=f.addons,v=(0,u.DV)({sections:l.sections,rowId:s.id,columnId:f.id,addonList:l.addons,addon:l.addons[0]});if(!(0,d.$K)(v))return e;var b=g(v.addons,1)[0];if(b.parent=!1,(0,d.$K)(i)){var y,E=null!=a?a:null===(y=h[o])||void 0===y?void 0:y.parent;if(E){var O,_=h.findIndex((function(e){return e.id===E})),w=h[_];(0,d.$K)(w)&&(null===(O=w.children)||void 0===O||O.splice(p?i:i+1,0,b.id),b.parent=w.id)}}return h.splice.apply(h,[p?o:o+1,0].concat(m(v.addons))),(t=e.page).splice.apply(t,[r,0].concat(m(v.sections))),(0,c.m)(e)}),!1,"PASTE_OR_INSERT_ADDON")}},S=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")}},x=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")}},L=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")}},A=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,h=null===(f=t.settings)||void 0===f?void 0:f[l.pb.headerItemsKey];(0,d.$K)(h)&&h[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 R(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 j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){B(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(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 N=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=G({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=N({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,h=s.nestedSections;i.push.apply(i,[p].concat(M(f))),o.push.apply(o,M(h))}else i.push(a)})),i.length>0&&(e.addons=i)})),o},G=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=N({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=G({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,j(j({},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 h=G({sections:t,sectionsObject:a,addon:i,options:{rowId:r,columnId:n}});(0,d.$K)(h)&&(c={name:h.addon.name,addons:[h.addon],sections:h.sections})}else c={name:i.name,addons:[i],sections:[]};return c};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 H(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)||V(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 q(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)||V(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){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 X(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?X(Object(r),!0).forEach((function(t){K(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function K(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}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,h=r,v=null!==(f=h.children)&&void 0!==f?f:[];v.splice(s?l:l+1,0,t.id),t.parent=h.id,e[a].children=v}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,h=null!==(r=null===(n=e.page[o].columns[i].addons[a].items)||void 0===n?void 0:n[c])&&void 0!==r?r:[],v=h[p],b=f()(v);b.parent=!1;var y=null;if("div"===v.name){var m=(0,u.vH)({addon:b,addonList:h}),g=m.divAddon,E=m.children;y={name:g.name,addons:[g].concat(q(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,h=t.isAbove,v=void 0!==h&&h;return e((function(e){var t,h,b=null!==(t=e.page[r].columns[n].addons[o].items)&&void 0!==t?t:[],y=null!==(h=b[i])&&void 0!==h?h:[],m=y[a],g=f()(p.addons[0]),E=null;if("div"===m.name){var O=(0,u.vH)({addon:g,addonList:y}),_=O.divAddon,w=O.children;E={name:_.name,addons:[_].concat(q(w)),sections:[]}}else g.id=(0,d.x0)(),E={name:g.name,addons:[g],sections:[]};if(!(0,d.$K)(E))return e;var C,I=y.findIndex((function(e){return e.id===s})),S=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=V(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(S.s();!(C=S.n()).done;){var x=C.value,P=H(E.addons,1)[0];if(P.parent=!1,(0,d.$K)(s)&&(0,d.$K)(l)){var L,A=x[I];(0,d.$K)(A)&&(null===(L=A.children)||void 0===L||L.splice(v?l:l+1,0,P.id),P.parent=A.id)}x.splice.apply(x,[v?a:a+1,0].concat(q(E.addons)))}}catch(e){S.e(e)}finally{S.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],h=e.page[n].columns[i].addons[l].items;return(0,d.$K)(h)?((0,u.u)(f,t),t.splice(a,1),h.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],h=r[a],v=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=H(b.addons,1)[0];if("div"===h.name&&p){var m=h;m.children=[c.id],(0,u.u)(y,r),y.parent=m.id}else if((0,d.$K)(s)&&(0,d.$K)(h.parent)){var g=r.findIndex((function(e){return e.id===h.parent})),E=r[g];(0,d.$K)(E)&&E.children&&((0,d.$K)(c.parent)&&(0,d.$K)(l)&&c.parent===h.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);h.id===v?(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,h=c.children;n=[p].concat(q(h))}else l.id=(0,d.x0)(),n=[l];if((0,d.$K)(a)&&l.parent){var v,b=e.findIndex((function(e){return e.id===l.parent})),y=e[b];(0,d.$K)(y)&&(null===(v=y.children)||void 0===v||v.splice(a+1,0,l.id))}(r=s[t]).splice.apply(r,[i+1,0].concat(q(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,h=a.length+1,v=Math.min(12/h,12);return e.page[r].layout=Array(h).fill(v).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")}},he=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")}},ve=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(653),Ee=r(8331);function Oe(e){return Oe="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},Oe(e)}function _e(e){return function(e){if(Array.isArray(e))return we(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 we(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)?we(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 we(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 Ce(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 Ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach((function(t){Se(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Se(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Oe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Oe(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")}},Pe=function(e){return function(t){return e((function(e){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.preset,a=e.page[r].columns[n].addons[o];if(!(0,d.$K)(a))return e;var l=(0,d.$K)(i)?(0,d.Rx)(i):{},s=(0,d.$K)(l)?l:{items:[],settings:{}},p=s.items,f=s.settings;if(!(0,d.$K)(p))return e;var h=(0,d.w6)(10).map((function(){return(0,u.Jr)(p)}));return a.items=h,a.settings=f,(0,c.m)(e)}),!1,"ADD_COLLECTION_ITEMS")}},Le=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=Ee.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,h=t.isAbove,v=(0,d.x0)(),b=e.page[r].columns[i].addons,y=e.page[r],m=y.columns[i],g=m.addons[a],E=a,O=Ie(Ie(Ie({id:v,type:f.type,name:f.name,visibility:!0,title:f.title,icon:f.icon,settings:Ie({},f.default)},"div"===f.name&&{children:[]}),(0,d.dA)(f.name)&&{items:(0,d.w6)(10).map((function(){return[]}))}),(0,ge.Lx)(f.name)&&{child_nodes:[]});if(Object.keys(l.RI).includes(f.name)){var _=l.RI[f.name],w=_.key,C=_.title,I=_.text,S={id:(0,d.x0)(),type:"nested_row",name:"row"},x={id:(0,d.x0)(),name:"text_block",title:"Text Block",visibility:!0,settings:{text:I},icon:""};(0,d.$K)(O.settings)&&(O.settings[w]=[{title:C,content:[S]}]);var P=(0,u.v)({id:S.id,layout:"12",rowSettings:Ie(Ie({},n),{},{padding:{lg:"5px 0px 5px 0px",md:"5px 0px 5px 0px",sm:"",xl:"",xs:""}}),columnSettings:o,addons:[x],parent:{rowId:y.id,columnId:m.id}});P.parent_addon=v,e.page.splice(r+1,0,P)}if(f.name===l.pb.name&&(0,d.$K)(O.settings)&&(O.settings[l.pb.headerItemsKey]=(0,u.I4)({itemList:O.settings[l.pb.headerItemsKey],tableId:v}),O.settings[l.pb.bodyItemsKey]=(0,u.I4)({itemList:O.settings[l.pb.bodyItemsKey],tableId:v})),(0,d.$K)(g)&&"div"===g.name&&p){var L=g;L.children=[O.id],O.parent=L.id,E++}else if((0,d.$K)(g)&&g.parent){var A=g.parent,T=b.findIndex((function(e){return e.id===A})),D=b[T];if((0,d.$K)(D)){var Z,R=null!=s?s:0;null===(Z=D.children)||void 0===Z||Z.splice(h?R:R+1,0,O.id),O.parent=A}}return b.splice(h?E:E+1,0,O),(0,c.m)(e)}),!1,"ADD_NEW_ADDON")}},Te=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:Ie({},a.default)};if((0,d.$K)(p)){var h,v=null===(h=t.settings)||void 0===h?void 0:h[l.pb.bodyItemsKey];if((0,d.$K)(v)){var b=v[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")}},De=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 h,v=null===(h=u.settings)||void 0===h?void 0:h[l.pb.bodyItemsKey];if((0,d.$K)(v)){var b=v[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],O=!(0,d.$K)(E.visibility)||E.visibility;E.visibility=!O}}}else u.visibility=!a;return(0,c.m)(e)}),!1,"CHANGE_ADDON_VISIBILITY")}},Ze=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")}},Re=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=Ee.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")}},Be=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=Ee.B.getState().config,f=p.sectionDefaults,h=p.columnDefaults;return e((function(e){var t,p=e.page[r],v=p.columns[n],b=v.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:h,rowSettings:f,parent:{rowId:p.id,columnId:v.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")}},Me=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.layout,a=t.isTop,l=Ee.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)(),h={id:f,type:"nested_row",name:"row",title:"Row",visibility:!0,icon:""},v=(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,h),e.page.push(v),(0,c.m)(e)}),!1,"ADD_NESTED_ROW")}},ke=function(e){return function(t){var r=t.index,n=t.layout,o=Ee.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],h=Object.fromEntries(e.page.map((function(e,t){return[e.id,Ie(Ie({},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=h[r.id].index;e.page[n].parent={rowId:t.id,columnId:f.id}}))}));else if("nested_row"===r.type){var o=h[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")}},Ne=function(e){return function(t){var r=t.sectionIndex,n=t.index,o=Ee.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.addon,p=!0;switch(i){case"addon":case"collection_item":case"collection_item_addon":case"dynamic_content_collection_item_addon":if(!(0,d.$K)(s))break;var f=null==s?void 0:s.settings,h=(0,n.mv)(f)?(0,n.Js)(f):f,v=t;p=!me()(h,v),s.settings=t;break;case"column":if((0,d.$K)(a)&&(0,d.$K)(u)){var b=(0,n.mv)(e.page[a].columns[u].settings)?(0,n.Js)(e.page[a].columns[u].settings):e.page[a].columns[u].settings;p=!me()(b,t),e.page[a].columns[u].settings=t}break;case"section":if((0,d.$K)(a)){var y=(0,n.mv)(e.page[a].settings)?(0,n.Js)(e.page[a].settings):e.page[a].settings;p=!me()(y,t),e.page[a].settings=t}}if(p&&(p=o),p){var m=c.s.getState().changesUntilSettingsPanelOpen,g=Math.min(l.Q9,m+1);c.s.setState({changesUntilSettingsPanelOpen:g})}return p?(0,c.m)(e):e}),!1,"UPDATE_SETTINGS")}},We=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")}},Ue=function(e){return function(){return e((function(e){return(0,c.m)(e),e.page=[],e}),!1,"CLEAR_PAGE_CONTENT")}},Fe=function(e){return function(t){var r=t.label,n=t.row,o=t.addon,i=t.tableAddonItem,a=t.collectionItemAddon,u=t.dynamicCollectionItemAddon;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 s,p,f,h,v=i.sectionIndex,b=i.columnIndex,y=i.addonIndex,m=i.itemIdx,g=i.rowItemIdx,E=i.contentItemIdx,O=e.page[v].columns[b].addons[y];(0,d.$K)(g)?(null!==(s=null===(p=O.settings)||void 0===p?void 0:p[l.pb.bodyItemsKey])&&void 0!==s?s:[])[m].table_advanced_item[g].content[E].settings.admin_label=r:(null!==(f=null===(h=O.settings)||void 0===h?void 0:h[l.pb.headerItemsKey])&&void 0!==f?f:[])[m].content[E].settings.admin_label=r}if((0,d.$K)(a)){var _=a.sectionIndex,w=a.columnIndex,C=a.addonIndex,I=a.itemAddonIndex,S=a.childIndex,x=e.page[_].columns[w].addons[C];(0,d.$K)(x.items)&&x.items.forEach((function(e){if((0,d.$K)(S)){var t=e[S].settings;(0,d.$K)(t)&&(t.admin_label=r)}else{var n=e[I].settings;(0,d.$K)(n)&&(n.admin_label=r)}}))}if((0,d.$K)(u)){var P=u.addon;(0,d.$K)(null==P?void 0:P.settings)&&(P.settings.admin_label=r)}return(0,c.m)(e)}),!1,"UPDATE_ADMIN_LABEL")}},He=r(4999);function qe(e){return qe="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},qe(e)}function Ve(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 ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(r),!0).forEach((function(t){Xe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==qe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===qe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $e=function(e,t){var r,n;if(t.parent){var o=e.findIndex((function(e){return e.id===t.id}));if(-1!==o){var i=e.find((function(e){return e.id===t.parent})),a=null==i||null===(r=i.children)||void 0===r?void 0:r.indexOf(t.id);(0,d.$K)(a)&&-1!==a&&null!=i&&null!==(n=i.children)&&void 0!==n&&n.length&&(i.children.splice(a,1),e.splice(o,1))}}},Ke=function(e,t){if(t.parent)return e.find((function(e){return e.id===t.parent}))};function Ye(e){return Ye="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},Ye(e)}function Qe(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 Je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function et(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ye(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ye(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tt=function(e){return function(t){return e((function(e){var r=t.sectionIndex,n=t.columnIndex,o=t.addon,i=t.isAbove,a=t.overItem,l=t.isEmptyState,u=e.page[r].columns[n].addons;if(!a)return e;var s=(0,He.k3)(u,a);if(!(0,d.$K)(a)||!(0,d.$K)(s))return e;var p=Je({id:(0,d.x0)(),type:o.type,name:o.name,visibility:!0,title:o.title,icon:o.icon,settings:Je({},o.default)},((0,ge.Lx)(o.name)||"div"===o.name)&&{child_nodes:[]});return(0,He.Lf)(s,Je(Je({},a),{},{isEmptyState:l}),p,s,0,i),(0,c.m)(e)}),!1,"ADD_COLLECTION_ADDON")}},rt=function(e){return function(t){var r=t.source,n=t.destination,o=t.isAbove,i=t.isEmptyState,a=r.sectionIndex,l=r.columnIndex,u=n.sectionIndex,s=n.columnIndex;return e((function(e){var t,p,f,h,v,b,y=e.page[a].columns[l].addons,m=e.page[u].columns[s].addons;if(r.isRegularDivChild&&n.isDynamicContentChild)return function(e){var t,r,n,o=e.state,i=e.source,a=e.destination,l=e.isAbove,u=e.sourceAddons,s=e.destinationAddons,p=e.isEmptyState;if((0,ge.Lx)(a.content.name)||p)return null===(n=a.content.child_nodes)||void 0===n||n.push(ze(ze({},i.content),{},{parent:!1})),$e(u,i.content),(0,c.m)(o);var f=(0,He.k3)(s,a.content);if(!(0,d.$K)(f))return o;var h=(0,He.Ow)(f,a.content);if(!(0,d.$K)(h))return o;var v=null===(t=h.child_nodes)||void 0===t?void 0:t.findIndex((function(e){return e.id===a.content.id}));return(0,d.$K)(v)&&-1!==v?(null===(r=h.child_nodes)||void 0===r||r.splice(l?v:v+1,0,ze(ze({},i.content),{},{parent:!1})),$e(u,i.content),(0,c.m)(o)):o}({state:e,source:r,destination:n,isAbove:o,sourceAddons:y,destinationAddons:m,isEmptyState:i});if(r.isDynamicContentChild&&n.isRegularDivChild)return function(e){var t,r,n,o=e.state,i=e.source,a=e.destination,l=e.isAbove,u=e.sourceAddons,s=e.destinationAddons,p=e.isEmptyState,f=(0,He.k3)(u,i.content);if(!(0,d.$K)(f))return o;var h=(0,He.Ow)(f,i.content);if(!(0,d.$K)(h))return o;if(p){var v,b,y=i.content;return y.parent=a.content.id,null===(v=a.content.children)||void 0===v||v.push(y.id),s.push(y),h.child_nodes=null===(b=h.child_nodes)||void 0===b?void 0:b.filter((function(e){return e.id!==y.id})),(0,c.m)(o)}var m=i.content,g=Ke(s,a.content);if(!(0,d.$K)(g))return o;if(m.parent=g.id,!(0,d.$K)(h)||!(0,d.$K)(g))return o;var E=null===(t=g.children)||void 0===t?void 0:t.indexOf(a.content.id);return(0,d.$K)(E)&&-1!==E?(null===(r=g.children)||void 0===r||r.splice(l?E:E+1,0,m.id),s.push(m),h.child_nodes=null===(n=h.child_nodes)||void 0===n?void 0:n.filter((function(e){return e.id!==m.id})),(0,c.m)(o)):o}({state:e,source:r,destination:n,isAbove:o,sourceAddons:y,destinationAddons:m,isEmptyState:i});if(r.isRegularDivChild&&n.isRegularDivChild)return function(e){var t,r,n,o,i=e.state,a=e.destination,l=e.isAbove,u=e.sourceAddons,s=e.destinationAddons,p=e.source.content,f=a.content,h=Ke(u,p),v=Ke(s,f);if(!(0,d.$K)(h)||!(0,d.$K)(v))return i;if(h.id===v.id){if(null==v||!v.children)return i;var b=v.children.indexOf(p.id),y=v.children.indexOf(f.id);return v.children=(0,D.Rp)(null==v?void 0:v.children,b,y),(0,c.m)(i)}var m=u.findIndex((function(e){return e.id===p.id}));if(s.findIndex((function(e){return e.id===f.id})),!(0,d.$K)(h)||!(0,d.$K)(v))return i;var g=null===(t=h.children)||void 0===t?void 0:t.indexOf(p.id),E=null===(r=v.children)||void 0===r?void 0:r.indexOf(f.id);return(0,d.$K)(g)&&(0,d.$K)(E)&&-1!==g&&-1!==E?(p.parent=v.id,h.children=null===(n=h.children)||void 0===n?void 0:n.filter((function(e){return e!==p.id})),null===(o=v.children)||void 0===o||o.splice(l?E:E+1,0,p.id),u.splice(m,1),s.push(p),(0,c.m)(i)):i}({state:e,source:r,destination:n,isAbove:o,sourceAddons:y,destinationAddons:m});var g=(0,He.k3)(y,r.content),E=(0,He.k3)(m,n.content);if(!(0,d.$K)(g)||!(0,d.$K)(E))return e;var O=(0,He.Ow)(g,r.content),_=(0,He.Ow)(E,n.content);if(!(0,d.$K)(O)||!(0,d.$K)(_))return e;if(null==_||null===(t=_.child_nodes)||void 0===t||!t.length||null==O||null===(p=O.child_nodes)||void 0===p||!p.length)return e;var w=null==_||null===(f=_.child_nodes)||void 0===f?void 0:f.findIndex((function(e){return e.id===n.content.id})),C=null==O||null===(h=O.child_nodes)||void 0===h?void 0:h.findIndex((function(e){return e.id===r.content.id}));if(i){var I,S=(0,He.MI)(E,n.content);return(0,d.$K)(S)&&(0,d.$K)(S.child_nodes)?(null===(I=S.child_nodes)||void 0===I||I.push(O.child_nodes[C]),O.child_nodes.splice(C,1),(0,c.m)(e)):e}return O.id===_.id?(_.child_nodes=(0,D.Rp)(_.child_nodes,C,w),(0,c.m)(e)):(null===(v=_.child_nodes)||void 0===v||v.splice(o?w:w+1,0,O.child_nodes[C]),null===(b=O.child_nodes)||void 0===b||b.splice(C,1),(0,c.m)(e))}))}},nt=function(e){return function(t){return e((function(e){var r=t.sectionIndex,n=t.columnIndex,o=t.addon,i=e.page[r].columns[n].addons;if(!i.length)return e;var a=(0,He.Ln)(i,o);return e.page[r].columns[n].addons=a,(0,c.m)(e)}))}},ot=function(e){return function(t){return e((function(e){var r=t.addon,n=f()(r),o={name:n.name,addons:[n],sections:[]};return(0,s.pj)(l.dR.COPIED_ADDON_LOCAL_STORAGE_KEY,JSON.stringify(o)),e.copiedData.addon=o,e}))}},it=function(e){return function(t){return e((function(e){var r,n=t.sectionIndex,o=t.columnIndex,i=t.isAbove,a=t.addon,l=t.pasteInside,u=void 0!==l&&l,s=e.copiedData.addon;if(!(0,d.$K)(s)||null===(r=s.addons)||void 0===r||!r.length)return e;var p=s.addons[0];(0,He.oY)(p,(function(e){e.id=(0,d.x0)()}));var f=e.page[n].columns[o].addons;return(0,He.ez)(f,a,p,i,u),(0,c.m)(e)}))}},at=function(e){return function(t){return e((function(e){var r=t.sectionIndex,n=t.columnIndex,o=t.addon,i=t.visibility,a=e.page[r].columns[n].addons;return(0,He.j$)(a,(function(e){e.id===o.id&&(e.visibility=!i)})),(0,c.m)(e)}))}},lt=function(e){return function(t){return e((function(e){var r=t.sectionIndex,n=t.columnIndex,o=t.addon,i=e.page[r].columns[n].addons,a=f()(o);return(0,He.oY)(a,(function(e){e.id=(0,d.x0)()})),(0,He.ez)(i,o,a,!1),(0,c.m)(e)}))}};function ct(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)||st(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 ut(e){return function(e){if(Array.isArray(e))return dt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||st(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 st(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}}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}var pt=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(ut(n))),(0,c.m)(e)}),!1,"DUPLICATE_SECTION")}},ft=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],h=(0,d.x0)(),v=f()(p);v.id=h,s.splice(o+1,0,v);var b=(0,u.Nk)({sectionIndex:i,sectionId:v.id,sections:e.page}),y=ct(b,1)[0];return y.id=h,y.parent={rowId:a.id,columnId:l.id},(t=e.page).splice.apply(t,[i+1,0].concat(ut(b))),(0,c.m)(e)}),!1,"DUPLICATE_NESTED_SECTION")}},ht=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")}},vt=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(ut(a))):(o=e.page).splice.apply(o,[i?r:r+1,0].concat(ut(a))),(0,c.m)(e)}),!1,"PASTE_OR_INSERT_SECTION")}},bt=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}),h=ct(f,1)[0],v={id:h.id,type:"nested_row",name:"row",title:"Row",visibility:!0,icon:""};if(h.parent={rowId:t.id,columnId:d.id},s){var b;p.splice(o,1,v);var y=e.page[i];(b=e.page).splice.apply(b,[i,1].concat(ut(f))),(0,u.OE)(y,e.page)}else{var m;p.splice(l?o:o+1,0,v),(m=e.page).splice.apply(m,[i+1,0].concat(ut(f)))}return(0,c.m)(e)}),!1,"PASTE_OR_INSERT_NESTED_SECTION")}},yt=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")}},mt=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 gt(e,t){if(e){if("string"==typeof e)return Et(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)?Et(e,t):void 0}}function Et(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 Ot=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")}},_t=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")}},wt=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,h=t.isAbove;return e((function(e){var t=e.page[r],v=t.columns[n],b=v.addons,y=b[o],m=e.page[a],g=m.columns[l],E=g.addons,O=E[s];if(!(0,d.$K)(y))return e;var _=y.parent,w=U({sections:e.page,rowId:t.id,columnId:v.id,addonList:b,addon:y});if(!(0,d.$K)(w))return e;if(!(0,d.$K)(O)&&0===E.length)return g.addons=w.addons,(0,u.Ag)(o,b),(0,c.m)(e);var C,I,S=(C=w.addons,I=1,function(e){if(Array.isArray(e))return e}(C)||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}}(C,I)||gt(C,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"===O.name&&f){var x=O;x.children=[y.id],(0,u.u)(S,b),S.parent=x.id}else if("nested_row"!==y.type||r===a&&n===l)if((0,d.$K)(p)&&(0,d.$K)(O.parent)){var P=E.findIndex((function(e){return e.id===O.parent})),L=E[P];(0,d.$K)(L)&&L.children&&((0,d.$K)(y.parent)&&(0,d.$K)(i)&&y.parent===O.parent?L.children=(0,D.Rp)(L.children,i,p):(L.children.splice(h?p:p+1,0,S.id),(0,u.u)(S,b),S.parent=L.id))}else(0,u.u)(S,b);else{var A=e.page.find((function(e){return e.id===y.id}));(0,d.$K)(A)&&(A.parent={rowId:m.id,columnId:g.id})}return r!==a||n!==l?(E.splice.apply(E,[h?s:s+1,0].concat(function(e){return function(e){if(Array.isArray(e))return Et(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gt(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)):O.id===_?(o<s&&!h||o>s&&h)&&(g.addons=(0,D.Rp)(b,o,s)):g.addons=(0,D.Rp)(b,o,s),(0,c.m)(e)}),!1,"SORT_ADDON")}},Ct=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 h=f.rowId,v=f.columnId,b=e.page.findIndex((function(e){return e.id===h})),y=e.page[b].columns,m=y.findIndex((function(e){return e.id===v})),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")}},It=[];(0,n.Fl)(!1);var St=(0,o.Ue)()((0,a.n)((0,i.mW)((function(e){return{page:It,copiedData:{addon:null,section:null},resetCopiedData:We(e),setPageContent:xe(e),validateOldPageContent:Le(e),updateSettings:Ge(e),updateSectionLayout:ke(e),addNewAddon:Ae(e),addCollectionItems:Pe(e),addNewTableItemAddon:Te(e),changeAddonVisibility:De(e),changeColumnVisibility:Ze(e),changeSectionVisibility:Re(e),addNestedRowForDeepAddon:Be(e),addNestedRow:Me(e),addNewSection:je(e),addNewColumn:Ne(e),sortAddon:wt(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:Ct(e),sortColumn:_t(e),sortSection:Ot(e),addNewDCCollectionItemAddon:tt(e),sortDCCollectionItemAddon:rt(e),deleteDynamicContentAddon:nt(e),copyDynamicContentAddon:ot(e),pasteOrInsertDynamicContentAddon:it(e),changeVisibilityOfDynamicContentAddon:at(e),duplicateDynamicContentAddon:lt(e),copyAddon:C(e),pasteOrInsertAddon:I(e),pasteAddonStyle:S(e),loadCopiedDataFirstTime:x(e),loadCopiedAddon:P(e),loadCopiedSection:L(e),duplicateAddon:_(e),duplicateTableItemAddon:w(e),deleteAddon:A(e),deleteTableItemAddon:T(e),duplicateSection:pt(e),duplicateNestedSection:ft(e),copySection:ht(e),pasteOrInsertSection:vt(e),pasteOrInsertAsNestedSection:bt(e),deleteSection:yt(e),deleteNestedSection:mt(e),duplicateColumn:fe(e),deleteColumn:he(e),resetColumnWidth:ve(e),updateColumnWidth:be(e),clearPageContent:Ue(e),updateAdminLabel:Fe(e)}}),{store:"PageStore",name:"Page Store"})))},2423:(e,t,r)=>{"use strict";r.d(t,{m:()=>b,s:()=>v});var n=r(3106),o=r(7602),i=r(251),a=r.n(i),l=r(2902),c=r(270),u=r(782),s=r(8753),d=r(2445),p=r(3896);function f(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)||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)||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 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}var v=(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=v.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);v.setState({pastStates:[].concat(f(c),[o]),futureStates:[]})}else v.setState({pastStates:[].concat(f(r),[o]),futureStates:[]});return e}},2238:(e,t,r)=>{"use strict";r.d(t,{Ag:()=>_,DV:()=>T,Gm:()=>O,I4:()=>A,Jr:()=>Z,K0:()=>B,Nk:()=>D,OE:()=>x,RL:()=>I,a4:()=>M,h:()=>f,iK:()=>C,p_:()=>P,sd:()=>j,u:()=>w,v:()=>h,vH:()=>y,wy:()=>v});var n=r(3106),o=r(1245),i=r.n(o),a=r(7602);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%"}},h=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,h=n.replace(/\s/,"").split("+").map((function(e){return Math.min(12,Number(e))})),v=h.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:h.join("+"),columns:v,parent:c},p&&{parent_addon:p})},v=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,h=(0,a.x0)();null===(f=l.children)||void 0===f||f.splice(p,1,h);var v=i()(o);if(v.parent=l.id,Object.keys(n.RI).includes(v.name)){var b=g({sections:t,sectionsObject:r,addon:v,addonId:h,options:{rowId:c.rowId,columnId:c.columnId}});s=b.sections}else v.name===n.pb.name?(v.id=h,v=L(v)):v.id=h;u.push(v),"div"===v.name&&e(v)}}))}(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,h=p.children,v=p.nestedSections;l.push.apply(l,[f].concat(c(h))),i.push.apply(i,c(v))}else if(u.name===n.pb.name){u.id=(0,a.x0)();var E=L(u);l.push(E)}else if((0,a.dA)(u.name)){var O;u.id=(0,a.x0)();var _=null!==(O=u.items)&&void 0!==O?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)})),_[t]=r})),l.push(u)}else u.id=(0,a.x0)(),l.push(R(u))})),l.length>0&&(e.addons=l)})),i},O=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}}),h=f.divAddon,v=f.children,y=f.nestedSections;s.push.apply(s,[h].concat(c(v))),u.push.apply(u,c(y))}else if(e.name===n.pb.name){e.id=(0,a.x0)();var E=L(e);s.push(E)}else e.id=(0,a.x0)(),s.push(e)})),s.length>0&&(d.addons=s),{sections:u,column:d}},_=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)}))},C=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&&S(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),x(n,t))}))}))},S=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),x(n,t))},x=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&&S(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&&S(e,t)}))},L=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},A=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 h=b({sections:t,sectionsObject:s,addon:p,addonList:l,options:{rowId:r,columnId:o}}),v=h.divAddon,m=h.children,E=h.nestedSections;f={name:v.name,addons:[v].concat(c(m)),sections:E}}else if(Object.keys(n.RI).includes(p.name)){var O=g({sections:t,sectionsObject:s,addon:p,options:{rowId:r,columnId:o}});(0,a.$K)(O)&&(f={name:O.addon.name,addons:[O.addon],sections:O.sections})}else if(p.name===n.pb.name)p.id=(0,a.x0)(),f={name:p.name,addons:[L(p)],sections:[]};else if(p.name===n.oA.productList||p.name===n.oA.categoryList){var _;p.id=(0,a.x0)();var w=null!==(_=p.items)&&void 0!==_?_:[];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 h=E({sections:t,sectionsObject:s,section:f});return[f].concat(c(h))},Z=function(e){return e.map((function(t){if(t.parent)return null;if("div"===t.name){var r=y({addon:t,addonList:e}),n=r.divAddon,o=r.children;return[n].concat(c(o))}return[t]})).filter(a.$K).flat()},R=function e(t){return(0,a.$K)(t.child_nodes)&&t.child_nodes.length&&(t.id=(0,a.x0)(),t.child_nodes=t.child_nodes.map((function(t){return e(t)}))),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},B=function(e){return e!==n.oA.filter&&e.startsWith("easystore_list_")},M=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(7602),i=r(2861),a=r(7673),l=r(6731);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)}))},5602:(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,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,{l:()=>a});var a=function(e){var t=e.draggingNodeRect,r=e.transform,n=e.scrollableAncestorRects[0];return t&&n?l(r,t,n):r},l=function(e,t,r){var n=function(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){i(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}({},e);return t.top+e.y<=r.top?n.y=r.top-t.top:t.bottom+e.y>=r.top+r.height&&(n.y=r.top+r.height-t.bottom),t.left+e.x<=r.left?n.x=r.left-t.left:t.right+e.x>=r.left+r.width&&(n.x=r.left+r.width-t.right),n}},7273:(e,t,r)=>{"use strict";r.d(t,{BB:()=>f,BI:()=>O,C4:()=>E,H2:()=>v,He:()=>h,jv:()=>b,ll:()=>C,o5:()=>y,oo:()=>m,qb:()=>d,sw:()=>p,uZ:()=>w,wx:()=>_,xU:()=>g});var n=r(7602);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.ee)(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)},h=function(e){if((0,n.$K)(e)&&(!(0,n.HD)(e)||0!==e.length))return Number(e)},v=function(e){return(0,n.$K)(e)?(0,n.jn)(e)?f(h(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]?v(String(e[t])):"";if((0,n.JW)(e)){var o=r?e.unit:"";return e[t]?v(String(e[t]))+o:""}return(0,n.Kn)(e)?"":v(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"},O={start:"verticalAlignStart",center:"verticalAlignCenter",end:"verticalAlignEnd"},_={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}))},C=function(e,t,r){var o=h(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:()=>h,pE:()=>p,vn:()=>d});var n=r(3106),o=r(1234),i=r(7602);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")},h=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}},6731:(e,t,r)=>{"use strict";r.d(t,{GI:()=>h,tW:()=>b,wh:()=>v});var n=r(7602),o=["non_field_errors"];function i(){i=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:{},a=o.iterator||"@@iterator",l=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 h?t:h,a=Object.create(i.prototype),l=new x(o||[]);return n(a,"_invoke",{value:w(e,r,l)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function h(){}function v(){}function b(){}var y={};u(y,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(P([])));g&&g!==t&&r.call(g,a)&&(y=g);var E=b.prototype=h.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,l){var c=p(e[n],e,i);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==d(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=C(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=p(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 C(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,C(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=p(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function P(e){if(e){var t=e[a];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:L}}function L(){return{value:void 0,done:!0}}return v.prototype=b,n(E,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:v,configurable:!0}),v.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"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(_.prototype,l,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(E),u(E,c,"Generator"),u(E,a,(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,x.prototype={constructor:x,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,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),S(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;S(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 a(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 l(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 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"!==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}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=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"!==d(a)||(0,n.OC)(a)||(0,n.ub)(a)?u(u({},o),{},s({},"".concat(r).concat(i),a)):u(u({},o),e(u({},a),"".concat(r).concat(i,".")))}),{})},f=function(e,t,r){if(!(0,n.IZ)(e)||!e.response)throw e;var i=function(e,t){var r=e;if(404===r.status||403===r.status||500===r.status)return{nonFieldErrors:["Unexpected error!"]};var i=p(t),a=p(r.data.data),c=a.non_field_errors,d=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}(a,o),f=(0,n.ee)(c)?c:[];return Object.keys(d).forEach((function(e){if(!(e in i)){var t=a[e];(0,n.ee)(t)&&f.push.apply(f,function(e){if(Array.isArray(e))return l(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 l(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)?l(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,fieldErrors:Object.keys(a).filter((function(e){return e in i})).reduce((function(e,t){var r=a[t];return r?u(u({},e),{},s({},t,r)):e}),{})}}(e.response,r),a=i.fieldErrors,c=i.nonFieldErrors;null!=c&&c.length&&t.setSubmitError(c[0]),a&&Object.keys(a).forEach((function(e){var r=a[e];r.length>0&&t.setError(e,{message:r})}))},h=function(e,t){return function(){var r,n=(r=i().mark((function r(n){return i().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),f(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 l(e){a(i,n,o,l,c,"next",e)}function c(e){a(i,n,o,l,c,"throw",e)}l(void 0)}))});return function(e){return n.apply(this,arguments)}}()},v=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"===d(e)&&null!==e?r.append("".concat(t,"[").concat(o,"]"),JSON.stringify(e)):r.append("".concat(t,"[").concat(o,"]"),null!=e?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"===d(o)&&null!==o?r.append(String(t),JSON.stringify(o)):r.append(String(t),null!=o?o:"")})),r.append("_method",t.toUpperCase()),r},b=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){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";localStorage.setItem(e+r,t)},o=function(e){localStorage.removeItem(e)},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"undefined"!=typeof window&&localStorage.getItem(e+t)||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;"},dynamicTextEllipsis:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return(0,i.iv)("display:-webkit-box;-webkit-line-clamp:",e,";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;;label:dynamicTextEllipsis;")},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:()=>h,VG:()=>f,ed:()=>v,m5:()=>s});var n=r(3106),o=r(7273),i=r(7602);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,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(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 c(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}}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){return"nested_row"===e.type},d=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)},p=function(e,t){var r=!0;if(0===e.length)return r;var u,s,p,f,h=l(e);try{for(h.s();!(u=h.n()).done;){var v=u.value,b=v;if((0,i.Kn)(v)){var y=(0,i.Zt)(v),m=(0,i.zt)(v);b=[y[0],"=",m[0]]}var g=(f=3,function(e){if(Array.isArray(e))return e}(p=b)||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}}(p,f)||c(p,f)||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],O=g[1],_=g[2],w=d((0,o.oo)((s=t,E.split("?.").reduce((function(e,t){if(e&&"object"===a(e)&&t in e)return e[t]}),s)),n.zu)),C=d(_);"="===O?r&&(r=w===C):"!="===O&&r&&(r=w!==C)}}catch(e){h.e(e)}finally{h.f()}return r},f=function(e,t){var r=(0,i.Zt)(e);if(!t)return e;var o,a,c=l(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),d=(0,i.zt)(u.depends);u.depends=[[s[0],"=",d[0]]]}u.visibility=p(u.depends,t)}var f,h=u.fields,v=l((0,i.Zt)(h));try{for(v.s();!(f=v.n()).done;){var b=h[f.value];if(a=b,(0,i.Kn)(a)&&"type"in a&&n.aX.includes(a.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=p(null!==(y=b.depends)&&void 0!==y?y:[],t)}}}catch(e){v.e(e)}finally{v.f()}}}catch(e){c.e(e)}finally{c.f()}return e},h=function(e){var t,r=l((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=h(e);return!!(0,i.$K)(t)&&(0,i.Zt)(e).filter((function(e){return e!==t.name})).every((function(t){return!e[t].visibility}))}},7602:(e,t,r)=>{"use strict";r.d(t,{$K:()=>O,Dv:()=>U,Eu:()=>oe,Fw:()=>de,GN:()=>x,HD:()=>_,I6:()=>H,IZ:()=>D,J0:()=>W,JB:()=>Y,JW:()=>B,K2:()=>P,K6:()=>ie,Kn:()=>I,Lg:()=>ne,M9:()=>J,MF:()=>re,Nn:()=>ce,OC:()=>T,OV:()=>Q,R5:()=>z,Rx:()=>$,SI:()=>j,VH:()=>he,VL:()=>F,VZ:()=>L,Xy:()=>k,ZT:()=>b,Zt:()=>N,_V:()=>ue,cW:()=>E,dA:()=>se,ee:()=>R,fF:()=>X,gX:()=>ee,hj:()=>w,jn:()=>C,kJ:()=>S,kl:()=>fe,nr:()=>A,q7:()=>M,r3:()=>g,sZ:()=>q,td:()=>le,ub:()=>Z,uf:()=>pe,w6:()=>m,x0:()=>y,x9:()=>V,z3:()=>ae,zt:()=>G});var n,o=r(3261),i=r(6214),a=r(8721),l=r(3106);function c(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)||s(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 u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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 s(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}}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}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){h(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 h(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 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)}var b=function(){},y=function(){return(0,a.Z)()},m=function(e){return Array.from(Array(e).keys())},g=function(e,t){return void 0!==e.find((function(e){return e===t}))};function E(e,t){if(null==e)throw new Error(t)}var O=function(e){return null!=e};function _(e){return"string"==typeof e||e instanceof String}function w(e){return"number"==typeof e||e instanceof Number}function C(e){return"boolean"==typeof e||e instanceof Boolean}function I(e){return"object"===v(e)&&null!==e&&!Array.isArray(e)}function S(e){return"object"===v(e)&&null!==e&&e instanceof Array&&Array.isArray(e)}var x=function(e){return e%1==0},P=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 L(e){return e instanceof Error}var A=function(e,t){return t in e};function T(e){return!!e&&Array.isArray(e)&&(!e.length||"object"!==v(e[0]))}var D=function(e){return!!e&&"object"===v(e)&&"name"in e&&"response"in e&&"AxiosError"===e.name},Z=function(e){return e instanceof Blob||e instanceof File};function R(e){return T(e)&&(!e.length||"string"==typeof e[0]||e[0]instanceof String)}function j(e){return"object"===v(e)&&null!==e&&!Array.isArray(e)&&(A(e,"xl")||A(e,"md"))&&!A(e,"unit")}function B(e){return"object"===v(e)&&null!==e&&!Array.isArray(e)&&(A(e,"xl")||A(e,"md"))&&"unit"in e}var M=function(e){return o.G[e]},k=f({},null!==(n=window.Joomla)&&void 0!==n?n:{}),N=function(e){return O(e)&&I(e)?Object.keys(e):[]},G=function(e){return Object.values(e)},W=function(e){return Object.entries(e)},U=function(e){return"dynamic_content_image"===e?"Dynamic Media":e.split("_").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")},F=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)}},H=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return f(f({},e),{},{value:String(e.value)})}))},q=function(e,t){return Math.floor(Math.random()*(t-e))+e},V=function(e){return e.map((function(e){return e.id}))},z=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(u(a),[t]),updatedItemIndexes:[].concat(u(l),[o])}:{updatedItemIds:a.filter((function(e){return e!==t})),updatedItemIndexes:l.filter((function(e){return e!==o}))};var s=Math.min(n,o),d=Math.max(n,o),p=c.slice(s,d+1).map((function(e){return e.id})),f=m(d+1).filter((function(e){return e>=s}));return i?{updatedItemIds:u(new Set([].concat(u(a),u(p)))),updatedItemIndexes:u(new Set([].concat(u(l),u(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 f({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)},$=function(e){try{return JSON.parse(e)}catch(e){return null}},K={image:["jpg","jpeg","png","gif","svg","webp","avif"],video:["mp4","mov","wmv","avi","mpg","ogv","3gp","3g2"],audio:["mp3","m4a","ogg","wav"],attachment:["pdf","doc","docx","key","ppt","pptx","pps","ppsx","odt","xls","xlsx","zip","json"]};function Y(e){for(var t=0,r=Object.entries(K);t<r.length;t++){var n=c(r[t],2),o=n[0],i=n[1];if(e&&i.includes(e.toLowerCase()))return o}return null}var Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"template-",r=new Blob([e],{type:"application/json"}),n=URL.createObjectURL(r),o=document.createElement("a");o.href=n,o.target="_blank",o.rel="noreferrer noopener nofollow",o.download="".concat(t).concat(y(),".json"),o.click()},J=function(e){return{name:e.name,rows:e.sections,addon:e.addons}},ee=function(e){return A(e,"rows")&&A(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(!O(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=s(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}}}}(N(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 f(f({},e),{},{settings:te(e.settings)})}))},ne=function(e){return N(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 i.C(t),a=e;return o.isValid&&o.format.startsWith("hex")&&!e.startsWith("#")&&!r&&(a="#".concat(e)),{validColor:o,isCssVariable:r,color:a}},ae=function(e){var t="".concat(k.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"===v(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}},se=function(e){return[l.oA.productList,l.oA.categoryList].includes(e)},de=function(e){var t=e.start,r=void 0===t?0:t,n=e.end,o=e.step;if(void 0===n&&(n=r,r=0),void 0===o&&(o=1),o>0&&r>=n||o<0&&r<=n)return[];for(var i=[],a=r;o>0?a<n:a>n;a+=o)i.push(a);return i};function pe(e){var t=e.hour,r=e.minute,n=e.second,o=e.period,i=parseInt(t,10);return"PM"===o&&12!==i?i+=12:"AM"===o&&12===i&&(i=0),"".concat(String(i).padStart(2,"0"),":").concat(r,":").concat(n)}function fe(e){var t=c(e.split(":").map(Number),3),r=t[0],n=t[1],o=t[2],i=r>=12?"PM":"AM";return{hour:String(r%12==0?12:r%12).padStart(2,"0"),minute:String(n).padStart(2,"0"),second:String(o).padStart(2,"0"),period:i}}var he=function(e){return e?e.trim().replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").toLowerCase():""}},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")}}}},8537:(e,t,r)=>{"use strict";e.exports=r.p+"images/ed8841a7709fb2582a09.svg"},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+"."+{4:"41283b9e8510c2315de0",68:"81f2968af444ef52bd66",81:"ab54d7867209f297a041",87:"7a2e4929ed8c25933fe9",245:"2173dc39db785787996a",254:"8c180a72fcb5753d1f17",348:"0249cd3825f3007bc4f2",357:"ff442b8ec874bf511b79",359:"973630c4846890adc6af",470:"6ba119a5090a391366e6",513:"2c8844d59944ae079539",556:"c2641d791f45d205d563",680:"30f9af3175ffa9ed93c7",863:"db6f7bbcd03da29eeffd",983:"fba4576367ba6ebbdd37"}[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(2392)));c=l.O(c)})();