🚀 Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
mnt
/
web613
/
c2
/
38
/
570372438
/
htdocs
/
STRATO-apps
/
wordpress_02
/
app
/
wp-content
/
plugins
/
elementor
/
vendor
/
elementor
/
wp-one-package
/
assets
/
elementor-home
✏️
Editing: 9993.1344e417ed6c7d63.js
(self.webpackChunk=self.webpackChunk||[]).push([["9993"],{8631(e,t,n){var r={"./he-IL/apps.json":["86186","2503"],"./es/home.json":["87316","3125"],"./pt-BR/url-mismatch.json":["42874","2055"],"./fr/home.json":["38844","3677"],"./it/common.json":["68669","7646"],"./it/tool-manager.json":["42196","21"],"./fr/tool-manager.json":["98227","1440"],"./tr-TR/apps.json":["20493","8967"],"./nl/common.json":["78516","9477"],"./fr/common.json":["2258","5711"],"./pt-PT/tool-manager.json":["25754","1047"],"./pt-BR/tool-manager.json":["6862","6035"],"./nl/tool-manager.json":["14369","9258"],"./es/common.json":["96266","1095"],"./pt-PT/home.json":["30685","2558"],"./pl-PL/url-mismatch.json":["96078","3043"],"./es/apps.json":["48731","8984"],"./he-IL/common.json":["52523","1816"],"./en/tool-manager.json":["71334","9739"],"./pt-BR/apps.json":["56434","3967"],"./id-ID/url-mismatch.json":["43964","3437"],"./it/url-mismatch.json":["10688","2569"],"./pt-PT/url-mismatch.json":["15502","3891"],"./he-IL/tool-manager.json":["57670","5131"],"./nl/apps.json":["83577","1506"],"./pl-PL/apps.json":["80118","2619"],"./tr-TR/home.json":["95129","3906"],"./tr-TR/url-mismatch.json":["58658","5359"],"./id-ID/apps.json":["32188","9309"],"./en/home.json":["6953","6050"],"./tr-TR/common.json":["2843","9288"],"./de/common.json":["68959","5140"],"./it/home.json":["33519","9428"],"./he-IL/url-mismatch.json":["73074","9167"],"./de/tool-manager.json":["13786","7415"],"./de/url-mismatch.json":["48270","8355"],"./pl-PL/tool-manager.json":["87386","8119"],"./pt-PT/apps.json":["63670","1211"],"./pt-PT/common.json":["80031","4708"],"./id-ID/home.json":["89731","9216"],"./en/common.json":["46251","120"],"./pl-PL/common.json":["38719","9828"],"./pt-BR/common.json":["71907","1744"],"./pl-PL/home.json":["25629","1566"],"./pt-BR/home.json":["22593","5818"],"./tr-TR/tool-manager.json":["18934","5819"],"./id-ID/common.json":["27281","202"],"./nl/url-mismatch.json":["66025","6226"],"./es/url-mismatch.json":["7051","1832"],"./fr/apps.json":["92307","4608"],"./en/url-mismatch.json":["48402","2591"],"./en/system-logs.json":["1677","1758"],"./it/apps.json":["37040","1897"],"./de/apps.json":["44694","1675"],"./de/home.json":["59453","1358"],"./id-ID/tool-manager.json":["55048","897"],"./fr/url-mismatch.json":["73635","3840"],"./en/apps.json":["47754","3143"],"./he-IL/home.json":["90889","8738"],"./nl/home.json":["54562","3423"],"./es/tool-manager.json":["79867","1432"]};function o(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],o=t[0];return n.e(t[1]).then(function(){return n.t(o,19)})}o.keys=()=>Object.keys(r),o.id=8631,e.exports=o},26120(e,t,n){var r={"./pt-BR/common.json":["34892","1645"],"./tr-TR/common.json":["6092","9341"],"./it/common.json":["47388","8221"],"./he-IL/common.json":["55824","1673"],"./id-ID/common.json":["56658","2127"],"./pt-PT/common.json":["19772","5789"],"./es/common.json":["6659","2176"],"./pl-PL/common.json":["26476","7213"],"./en/common.json":["95730","9199"],"./fr/common.json":["89467","7240"],"./de/common.json":["62426","2551"],"./nl/common.json":["30325","5366"]};function o(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],o=t[0];return n.e(t[1]).then(function(){return n.t(o,19)})}o.keys=()=>Object.keys(r),o.id=26120,e.exports=o},23363(e,t,n){var r={"./de/toast.json":["76729","4418"],"./de/components.json":["69362","2767"],"./it/common.json":["55697","6602"],"./fr/components.json":["5887","9556"],"./pl-PL/toast.json":["11753","6978"],"./he-IL/toast.json":["11197","7214"],"./de/common.json":["1659","1720"],"./en/components.json":["22302","6579"],"./en/toast.json":["42381","9886"],"./tr-TR/common.json":["47415","9484"],"./tr-TR/toast.json":["82157","9902"],"./pt-PT/common.json":["20779","8152"],"./pl-PL/common.json":["73419","5768"],"./en/common.json":["61047","1228"],"./fr/common.json":["99174","3259"],"./nl/common.json":["93312","8329"],"./pt-BR/common.json":["79799","5468"],"./nl/toast.json":["66580","2757"],"./pl-PL/components.json":["14146","5375"],"./id-ID/common.json":["45693","1598"],"./he-IL/components.json":["44942","6947"],"./pt-PT/toast.json":["37961","4338"],"./es/common.json":["9342","4771"],"./it/toast.json":["59451","8888"],"./es/components.json":["81207","6300"],"./id-ID/components.json":["11740","8349"],"./id-ID/toast.json":["82751","3028"],"./pt-PT/components.json":["67234","8527"],"./he-IL/common.json":["12231","6780"],"./nl/components.json":["14929","4058"],"./tr-TR/components.json":["80350","8163"],"./fr/toast.json":["74550","6347"],"./pt-BR/components.json":["48222","5939"],"./it/components.json":["6736","9321"],"./pt-BR/toast.json":["57421","9726"],"./es/toast.json":["97406","5427"]};function o(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],o=t[0];return n.e(t[1]).then(function(){return n.t(o,19)})}o.keys=()=>Object.keys(r),o.id=23363,e.exports=o},99861(e,t,n){var r={"./it/assets-whatsnew.json":["65758","8963"],"./he-IL/send-feedback.json":["54103","2716"],"./it/common.json":["62966","2059"],"./pl-PL/send-feedback.json":["5179","568"],"./tr-TR/send-feedback.json":["75251","240"],"./tr-TR/common.json":["22626","7071"],"./de/common.json":["1532","573"],"./id-ID/send-feedback.json":["3237","6310"],"./es/send-feedback.json":["67414","7275"],"./pt-BR/assets-whatsnew.json":["33378","4335"],"./pt-PT/send-feedback.json":["71723","9672"],"./it/send-feedback.json":["92903","6092"],"./pt-BR/send-feedback.json":["77147","5192"],"./de/assets-whatsnew.json":["36212","2069"],"./pt-PT/common.json":["47146","4135"],"./pl-PL/common.json":["72730","6791"],"./en/common.json":["27984","1081"],"./fr/common.json":["20165","9174"],"./nl/common.json":["70571","8664"],"./pt-BR/common.json":["80634","4631"],"./tr-TR/assets-whatsnew.json":["18714","6423"],"./en/assets-whatsnew.json":["42616","1745"],"./pl-PL/assets-whatsnew.json":["41090","271"],"./id-ID/common.json":["47160","417"],"./es/common.json":["3313","2266"],"./fr/send-feedback.json":["96794","2455"],"./nl/assets-whatsnew.json":["14477","2590"],"./es/assets-whatsnew.json":["62915","8176"],"./de/send-feedback.json":["83113","546"],"./pt-PT/assets-whatsnew.json":["21234","6031"],"./nl/send-feedback.json":["54708","1605"],"./he-IL/common.json":["52934","5835"],"./en/send-feedback.json":["99661","8718"],"./he-IL/assets-whatsnew.json":["27278","4227"],"./id-ID/assets-whatsnew.json":["24048","4537"],"./fr/assets-whatsnew.json":["84519","2860"]};function o(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],o=t[0];return n.e(t[1]).then(function(){return n.t(o,19)})}o.keys=()=>Object.keys(r),o.id=99861,e.exports=o},72288(e,t,n){"use strict";var r,o,i,a,l,s,c,u,d,f,p,h,g,m,y,b,v,w,j,O,x,A,S,E,P,T,k,C,I,M,L,R,_,D,N,B,U,F,z,G,W,H,V,K,q,Z,$,Y,Q,J,X=n(31085),ee=n(25873),et=n(18690),en=n(14041);function er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eo(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var ei=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};er(ei,"hasData",function(e){return null!=e&&("string"!=typeof e||""!==e)&&(!Array.isArray(e)||e.length>0)}),er(ei,"isDefined",function(e){return void 0!==e}),er(ei,"deepCopy",function(e){return JSON.stringify(e)?JSON.parse(JSON.stringify(e)):e}),er(ei,"deepCompare",function(e,t){var n;return(void 0===e?"undefined":eo(e))===(void 0===t?"undefined":eo(t))&&(Array.isArray(e)?e.length===t.length&&e.every(function(e,n){return ei.deepCompare(e,t[n])}):(null!=(n=Date)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)?e.getTime()===t.getTime():null!==e&&(void 0===e?"undefined":eo(e))==="object"?!Array.isArray(t)&&Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(function(n){return ei.deepCompare(e[n],t[n])}):JSON.stringify(e)===JSON.stringify(t))});var ea=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=(0,en.useRef)(e);(0,en.useEffect)(function(){o.current=e},[e]),(0,en.useEffect)(function(){var e=function(){o.current()};if(null!==t&&n){r&&e();var i=setInterval(e,t);return function(){clearInterval(i)}}},[t,n,r])},el=n(79897),es=n(15313),ec=n(67892),eu=n(45681),ed=((r={}).EN="en",r.DE="de",r.ES="es",r.IT="it",r.NL="nl",r.PT="pt-PT",r.PT_BR="pt-BR",r.FR="fr",r.HE="he-IL",r),ef=["he-IL","azb"],ep={store:["he-IL"]},eh=n(3478);function eg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var em=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};function ey(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function eb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}eg(em,"defaultLanguage","en"),eg(em,"normalizeLocale",function(e){var t=e.replace(/_/g,"-");try{return new Intl.Locale(t).toString()}catch(e){return em.defaultLanguage}}),eg(em,"setSystemLanguage",function(e){eh.A.set("elementor_locale",em.convertToElementorLocale(e),{expires:Number.MAX_SAFE_INTEGER,path:"/",domain:".elementor.com"});var t,n=null==(t=window.braze)?void 0:t.getUser();n&&n.setLanguage(e)}),eg(em,"getSystemLanguage",function(){var e=em.getSupportedLanguage(new URLSearchParams(window.location.search).get("lang")),t=em.getSupportedLanguage(eh.A.get("elementor_locale")),n=em.getSupportedLanguage(navigator.language||navigator.languages[0]),r=ed.EN;return e?r=e:t?r=t:n&&(r=n),Object.values(ed).includes(r)?r:ed.EN}),eg(em,"isLanguageExcluded",function(e){return(ep[""]||[]).includes(e)}),eg(em,"getSupportedLanguages",function(){return Object.values(ed).filter(function(e){return!em.isLanguageExcluded(e)})}),eg(em,"getSupportedLanguage",function(e){if(!e||em.isLanguageExcluded(e))return null;if(Object.values(ed).includes(e))return e;var t=em.normalizeLocale(e);if(Object.values(ed).includes(t))return t;if(ef.includes(e))return e;var n=e.split("_")[0];if(n&&Object.values(ed).includes(n))return n;var r=e.split("-")[0];return r&&Object.values(ed).includes(r)?r:null}),eg(em,"convertToElementorLocale",function(e){if(!e)return"".concat(em.defaultLanguage,"-").concat(em.defaultLanguage.toUpperCase());var t,n=e.toLowerCase(),r=eg({},ed.EN,"US"),o=(eg(t={},ed.HE,"he-IL"),eg(t,ed.PT,"pt-PT"),eg(t,ed.PT_BR,"pt-BR"),t);if(o[e])return o[e];var i=r[e]||e.toUpperCase();return"".concat(n,"-").concat(i)});var ev=function e(){var t=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");eb(this,"definedLanguage",em.getSystemLanguage()),eb(this,"instances",[]),eb(this,"changeLanguage",function(e){var n;return(n=function(){var t,n;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(r){switch(r.label){case 0:if(em.isLanguageExcluded(e))return[2];return this.definedLanguage=e,t=em.normalizeLocale(e),n=this.instances.map(function(e){return e.changeLanguage(t)}),em.setSystemLanguage(e),[4,Promise.all(n)];case 1:return r.sent(),[2]}})},function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){ey(i,r,o,a,l,"next",e)}function l(e){ey(i,r,o,a,l,"throw",e)}a(void 0)})}).call(t)}),eb(this,"createInstance",function(e,n){var r=es.Ay.createInstance();return r.use(ec.A).use((0,eu.A)(e)).use(el.r9).init({lng:em.normalizeLocale(t.definedLanguage),fallbackLng:"en",ns:"common",interpolation:{escapeValue:!1},react:{useSuspense:!0}}),t.instances.push(r),r}),eb(this,"getLanguage",function(){return t.definedLanguage})};eb(ev,"singleton",void 0),eb(ev,"getSingleton",function(){return ev.singleton||(ev.singleton=new ev),ev.singleton});let ew=ev.getSingleton();function ej(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var eO=function(){var e,t=(e=(0,en.useState)(ew.getLanguage()),function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return ej(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ej(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=t[0],r=t[1],o=(0,el.Bd)().i18n;return(0,en.useEffect)(function(){var e=function(e){r(e)};return o.on("languageChanged",e),function(){o.off("languageChanged",e)}},[o]),n},ex=n(70541),eA=function(){return(0,ex.wA)()},eS=ex.d4,eE=n(32312),eP=(0,n(1597).i)(),eT=eP.middleware,ek=eP.addMiddleware,eC=eP.withMiddleware,eI=eP.createDispatchWithMiddlewareHook,eM=ek.withTypes();eC.withTypes(),eI.withTypes();var eL=(0,eE.Z0)({name:"_empty",initialState:{},reducers:{refresh:function(e){return e}}}),eR=eL.actions.refresh,e_=(0,eE.fP)(eL).withLazyLoadedSlices(),eD=function(){return e_},eN=(0,eE.U1)({reducer:eD(),middleware:function(e){return e({serializableCheck:!1}).prepend(eT)},devTools:!1}),eB=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return e=[{key:"addSlice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];eD().inject(e,{overrideExisting:t}),this.reflectChanges()}},{key:"addSlices",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.length&&(e.forEach(function(e){eD().inject(e,{overrideExisting:t})}),this.reflectChanges())}},{key:"addQuery",value:function(e){eD().inject(e),this.addMiddleware(e.middleware),this.reflectChanges()}},{key:"addQueries",value:function(e){var t=this;e.length&&(e.forEach(function(e){eD().inject(e),t.addMiddleware(e.middleware)}),this.reflectChanges())}},{key:"addMiddleware",value:function(e){eM(e)}},{key:"emptyStore",value:function(){var e=e_=(0,eE.fP)(eL).withLazyLoadedSlices();eN.replaceReducer(e)}},{key:"isAlreadyInjected",value:function(e){return Object.keys(eN.getState()).includes(e)}},{key:"reflectChanges",value:function(){eN.dispatch(eR())}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t,e),t}();o="getStoreInstance",i=function(){return eN},o in eB?Object.defineProperty(eB,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):eB[o]=i;var eU=function(e,t,n){var r=(0,en.useRef)(!0);r.current&&(r.current=!1,(null==e?void 0:e.length)&&eB.addSlices(e),(null==t?void 0:t.length)&&eB.addQueries(t),(null==n?void 0:n.length)&&n.forEach(function(e){eB.addMiddleware(e)}))},eF=(0,en.memo)(function(e){var t=e.slices,n=e.queries,r=e.children;return eU(t,n),(0,X.jsx)(ex.Kq,{store:eN,children:r})}),ez=((a={}).PLUGIN="PLUGIN",a.HOSTING="HOSTING",a.APP_AI="APP_AI",a.APP_IO="APP_IO",a.APP_BKP="APP_BKP",a.FREE_TRIAL="FREE_TRIAL",a.APP_SERVICE="APP_SERVICE",a.APP_STRATTIC="APP_STRATTIC",a.APP_SUPPORT="APP_SUPPORT",a.APP_MAILER="APP_MAILER",a.APP_EMPMA="APP_EMPMA",a.APP_ACCESS="APP_ACCESS",a.APP_MANAGE="APP_MANAGE",a.APP_DOMAIN="APP_DOMAIN",a.APP_ONE="APP_ONE",a.APP_COOKIE="APP_COOKIE",a),eG=((l={}).Active="active",l.Expired="expired",l.OnHold="onhold",l.Canceled="canceled",l);function eW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eH=((s={}).PERSONALIZATION_ITEM="personalization-item",s);eW(U={},"platinum_support",{HELP_POPUP:"help_popup"}),eW(U,"ab_test",{WELCOME_MODAL:"welcome_modal"}),eW(U,"ec_services",{SERVICE_BANNER:"service_banner"}),eW(U,"alerts",{PLAN_SWITCH_DOWNGRADE_AFTER_30_DAYS:"plan_switch_downgrade_after_30_days",CLIENT_INVITATION_ALERTS:"dismissed_client_invitation_alerts"}),eW(U,"websites",{FAVORITES:"favorites",MANAGE_WELCOME_MODAL:"manage_welcome_modal",MANAGE_REVIEW_PROMPT:"manage_review_prompt"}),eW(U,"navigation",{VISITED_NEW_NAVIGATION:"visited_new_navigation",MANAGE_STARTER_INFO_TOOLTIP:"manage_starter_info_tooltip",NEW_HANDOFF_CHIP:"new_handoff_chip",MANAGE_BULK_ADD_PLUGIN_INDICATION:"manage_bulk_add_plugin_indication",MANAGE_UPTIME_MONITORING_INDICATION:"manage_uptime_monitoring_indication"}),eW(U,"user_profile",{DOWNLOADS_INFOTIP:"downloads_infotip"});var eV=n(71046),eK=(0,eE.Z0)({name:"shared",initialState:{alertError:void 0,sharedLoader:void 0,showMobileNav:!1,isAngieChatOpen:!1,toasts:[],dialogOpener:{}},reducers:{setAlertError:function(e,t){e.alertError=t.payload},setSharedLoader:function(e,t){e.sharedLoader=t.payload},setShowMobileNav:function(e,t){e.showMobileNav=t.payload},setIsAngieChatOpen:function(e,t){e.isAngieChatOpen=t.payload},setToast:function(e,t){var n,r,o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({id:t.payload.id||(0,eV.A)(),type:t.payload.type||"info",text:t.payload.text||"",show:void 0===t.payload.show||t.payload.show,autohide:void 0===t.payload.autohide||t.payload.autohide},t.payload),i=null==(n=e.toasts)?void 0:n.find(function(e){return e.id===o.id});i?Object.assign(i,o):null==(r=e.toasts)||r.push(o)},removeToast:function(e,t){var n,r=null==(n=e.toasts)?void 0:n.find(function(e){return e.id===t.payload});r&&(r.show=!1)},openDialog:function(e,t){e.dialogOpener[t.payload.key]={opened:!0,data:t.payload.data||void 0}},closeDialog:function(e,t){e.dialogOpener[t.payload]&&(e.dialogOpener[t.payload]={opened:!1,data:void 0})}}}),eq=eK.actions;function eZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}eK.reducer;var e$=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};eZ(e$,"setAlertError",eq.setAlertError),eZ(e$,"setSharedLoader",eq.setSharedLoader),eZ(e$,"setShowMobileNav",eq.setShowMobileNav),eZ(e$,"setIsAngieChatOpen",eq.setIsAngieChatOpen),eZ(e$,"setToast",eq.setToast),eZ(e$,"removeToast",eq.removeToast),eZ(e$,"openDialog",eq.openDialog),eZ(e$,"closeDialog",eq.closeDialog);var eY=n(6310),eQ=((c={}).GET="GET",c.POST="POST",c.PUT="PUT",c.PATCH="PATCH",c.DELETE="DELETE",c.HEAD="HEAD",c),eJ=((u={}).REST_INVALID_NONCE="rest_cookie_invalid_nonce",u);function eX(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function e0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){e0(e,t,n[t])})}return e}function e2(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var e3=function(){var e;function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e4,i=!(arguments.length>3)||void 0===arguments[3]||arguments[3],a=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");e0(this,"http",void 0);var c=e1({Accept:"application/json","Content-Type":"application/json"},s||{});this.http=eY.A.create({baseURL:e,timeout:o,responseType:"json",withCredentials:!1,headers:e1({},c)}),r&&(this.http.defaults.withCredentials=!0),(null==l?void 0:l.length)&&l.forEach(function(e){n.http.interceptors.request.use(e.fulfilled,e.rejected)}),(null==a?void 0:a.length)&&a.forEach(function(e){n.http.interceptors.response.use(e.fulfilled,e.rejected)}),this.http.interceptors.response.use(function(e){return e},function(e){var t,n;if(i&&((null==(t=e.response)?void 0:t.status)===401||(null==(n=e.response)?void 0:n.status)===403&&e.response.data.code===eJ.REST_INVALID_NONCE)){var r="https://my.elementor.com/login/",o=encodeURIComponent(window.location.pathname+window.location.search+window.location.hash),a="".concat(r).concat(r.includes("?")?"&":"?","redirect_to=").concat(o);window.location.replace(a)}return Promise.reject(e)})}return e=[{key:"request",value:function(e,t,n){var r;return(r=function(){var r;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.http.request(e1({method:e,url:t},n))];case 1:return[2,o.sent()];case 2:return r=o.sent(),[2,this.normalizeError(r)];case 3:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function a(e){eX(i,n,o,a,l,"next",e)}function l(e){eX(i,n,o,a,l,"throw",e)}a(void 0)})}).call(this)}},{key:"normalizeError",value:function(e){return Promise.reject(e)}},{key:"getAttachmentHeaders",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e1({},e?{Accept:"*/*","Content-Type":"multipart/form-data"}:{})}},{key:"get",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return this.request(eQ.GET,e,e2(e1({params:t},r&&r),{headers:e1({},this.getAttachmentHeaders(n),(null==r?void 0:r.headers)&&r.headers)}))}},{key:"post",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;return this.request(eQ.POST,e,e2(e1({params:n,data:t},o&&o),{headers:e1({},this.getAttachmentHeaders(r),(null==o?void 0:o.headers)&&o.headers)}))}},{key:"put",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;return this.request(eQ.PUT,e,e2(e1({params:n,data:t},o&&o),{headers:e1({},this.getAttachmentHeaders(r),(null==o?void 0:o.headers)&&o.headers)}))}},{key:"patch",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;return this.request(eQ.PATCH,e,e2(e1({params:n,data:t},o&&o),{headers:e1({},this.getAttachmentHeaders(r),(null==o?void 0:o.headers)&&o.headers)}))}},{key:"delete",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return this.request(eQ.DELETE,e,e2(e1({params:t},r&&r),{headers:e1({},this.getAttachmentHeaders(n),(null==r?void 0:r.headers)&&r.headers)}))}},{key:"head",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return this.request(eQ.HEAD,e,e2(e1({params:t},r&&r),{headers:e1({},this.getAttachmentHeaders(n),(null==r?void 0:r.headers)&&r.headers)}))}},{key:"getInstance",value:function(){return this.http}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}();function e4(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function e6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var e5=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return e=[{key:"sendFeedback",value:function(e){var t;return(t=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return[4,this.httpClient.post("/home-product-feedback",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){e6(e,t,n[t])})}return e}({},e))];case 1:return[2,t.sent().data]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){e4(i,r,o,a,l,"next",e)}function l(e){e4(i,r,o,a,l,"throw",e)}a(void 0)})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t,e),t}();function e8(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}e6(e5,"httpClient",new e3("https://my.elementor.com/feedback/api/v1",!0,3e4,!0)),d=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")},f="sendFeedback",p=(0,eE.zD)("acdClient/sendFeedback",function(e,t){t.dispatch;var n,r=t.rejectWithValue;return(n=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e5.sendFeedback(e)];case 1:return t.sent(),[3,3];case 2:return[2,r(t.sent())];case 3:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){e8(i,r,o,a,l,"next",e)}function l(e){e8(i,r,o,a,l,"throw",e)}a(void 0)})})()}),f in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p;var e7=n(2573);function e9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};function tt(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function tn(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){tt(i,r,o,a,l,"next",e)}function l(e){tt(i,r,o,a,l,"throw",e)}a(void 0)})}}e9(te,"selectState",function(e){return e.shared}),e9(te,"selectAlertError",(0,e7.Mz)(te.selectState,function(e){return null==e?void 0:e.alertError})),e9(te,"selectSharedLoader",(0,e7.Mz)(te.selectState,function(e){return null==e?void 0:e.sharedLoader})),e9(te,"selectShowMobileNav",(0,e7.Mz)(te.selectState,function(e){return null==e?void 0:e.showMobileNav})),e9(te,"selectIsAngieChatOpen",(0,e7.Mz)(te.selectState,function(e){var t;return null!=(t=null==e?void 0:e.isAngieChatOpen)&&t})),e9(te,"selectToasts",(0,e7.Mz)(te.selectState,function(e){return(null==e?void 0:e.toasts)||[]})),e9(te,"selectDialogOpener",(0,e7.Mz)([te.selectState,function(e,t){return t}],function(e,t){return(null==e?void 0:e.dialogOpener[t])||{opened:!1,data:void 0}}));function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function to(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var ti=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return e=[{key:"getMe",value:function(){return tn(function(){var e,t,n;return to(this,function(r){switch(r.label){case 0:return[4,this.httpClient.get("me")];case 1:var o,i;return t=(e=r.sent()).data,n=e.headers,[2,(o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){tr(e,t,n[t])})}return e}({},t),i=i={geoCountry:n["x-geoip-country"],elementorAuthHeader:n["x-elementor-auth"]||null},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))}),o)]}})}).call(this)}},{key:"updatePersonalInfo",value:function(e,t){return tn(function(){return to(this,function(n){switch(n.label){case 0:return[4,this.usersHttpClient.patch("/user-info/".concat(e),t)];case 1:return[2,n.sent()]}})}).call(this)}},{key:"updatePassword",value:function(e,t){return tn(function(){return to(this,function(n){switch(n.label){case 0:return[4,this.usersHttpClient.patch("/user-info/".concat(e,"/password"),t)];case 1:return[2,n.sent()]}})}).call(this)}},{key:"getBillingInfo",value:function(e){return tn(function(){return to(this,function(t){switch(t.label){case 0:return[4,this.customerHttpClient.get("/user/".concat(e,"/account"))];case 1:return[2,t.sent().data.billingInfo]}})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t,e),t}();function ta(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}tr(ti,"httpClient",new e3("https://my.elementor.com/api/v3/users",!0)),tr(ti,"usersHttpClient",new e3("https://my.elementor.com/api/auth/v1",!1,3e4,!1)),tr(ti,"customerHttpClient",new e3("https://my.elementor.com/customer/api/v1",!1,3e4,!1));var tl=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return e=[{key:"getCallCenterAllowedBasedOnSubscription",value:function(e){var t;return(t=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return[4,this.httpClient.get("/users/".concat(e,"/allowed-call-center"))];case 1:return[2,t.sent().data]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){ta(i,r,o,a,l,"next",e)}function l(e){ta(i,r,o,a,l,"throw",e)}a(void 0)})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t,e),t}();h="httpClient",g=new e3("https://my.elementor.com/care/api/v1",!0),h in tl?Object.defineProperty(tl,h,{value:g,enumerable:!0,configurable:!0,writable:!0}):tl[h]=g;var ts=n(26660);function tc(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function tu(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){tc(i,r,o,a,l,"next",e)}function l(e){tc(i,r,o,a,l,"throw",e)}a(void 0)})}}function td(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tf(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var tp=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};td(tp,"getMe",(0,eE.zD)("getMe",function(e,t){var n=t.dispatch,r=t.rejectWithValue;return tu(function(){var e,t,o;return tf(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,ti.getMe()];case 1:return e=i.sent(),n(tv.setMe(e)),[3,3];case 2:var a,l;if(a=t=i.sent(),(null!=(l=ts.pe)&&"undefined"!=typeof Symbol&&l[Symbol.hasInstance]?!!l[Symbol.hasInstance](a):a instanceof l)&&(null==(o=t.response)?void 0:o.status)===401)return[2,r((0,eE.uH)(t))];return n(tv.setMe(null)),[2,r((0,eE.uH)(t))];case 3:return[2]}})})()},{condition:function(e,t){var n,r=t.getState,o=null!=(n=null==e?void 0:e.hardReload)&&n,i=r().sharedUser,a=i.me,l=i.loadingState,s=i.errorState;return!!o||!(void 0!==a||l.me||s.me||document.getElementById("reset-email"))}})),td(tp,"getCallCenterAllowedBasedOnSubscription",(0,eE.zD)("getCallCenterAllowedBasedOnSubscription",function(e,t){var n=t.dispatch;return tu(function(){var t;return tf(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,tl.getCallCenterAllowedBasedOnSubscription(e)];case 1:return t=r.sent(),n(tv.setCallCenterAllowedBasedOnSubscription(t)),[3,3];case 2:return r.sent(),n(tv.setCallCenterAllowedBasedOnSubscription(void 0)),[3,3];case 3:return[2]}})})()})),td(tp,"updatePersonalInfo",(0,eE.zD)("updatePersonalInfo",function(e,t){var n=t.dispatch;return tu(function(){return tf(this,function(t){switch(t.label){case 0:return[4,ti.updatePersonalInfo(e.userId,e.info)];case 1:return t.sent(),n(tv.setPersonalInfo(e.info)),[2]}})})()})),td(tp,"updatePassword",(0,eE.zD)("updatePassword",function(e){return tu(function(){return tf(this,function(t){switch(t.label){case 0:return[4,ti.updatePassword(e.userId,e.data)];case 1:return t.sent(),[2]}})})()})),td(tp,"getBillingInfo",(0,eE.zD)("getBillingInfo",function(e,t){var n=t.dispatch;return tu(function(){var t;return tf(this,function(r){switch(r.label){case 0:return[4,ti.getBillingInfo(e)];case 1:return t=r.sent(),n(tv.setBillingInfo(t)),[2]}})})()}));var th=["RU","PS"];function tg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var tm=(0,eE.Z0)({name:"sharedUser",initialState:{me:void 0,callCenterAllowedBasedOnSubscription:void 0,billingInfo:void 0,loadingState:{},errorState:{}},reducers:{setMe:function(e,t){e.me=t.payload||null},updateMe:function(e,t){e.me&&(e.me=tg({},e.me,t.payload))},setCallCenterAllowedBasedOnSubscription:function(e,t){e.callCenterAllowedBasedOnSubscription=t.payload},setEmail:function(e,t){e.me&&(e.me.email=t.payload)},setPersonalInfo:function(e,t){e.me&&(e.me.firstName=t.payload.firstName,e.me.lastName=t.payload.lastName)},setBillingInfo:function(e,t){var n,r=tg({},t.payload);r.countryCode&&(n=r.countryCode,th.includes(n))&&(r.countryCode=""),e.billingInfo=r}},extraReducers:function(e){e.addCase(tp.getMe.pending,function(e,t){e.loadingState.me=!0}),e.addCase(tp.getMe.fulfilled,function(e,t){e.loadingState.me=!1}),e.addCase(tp.getMe.rejected,function(e,t){var n;e.errorState.me=(null==t||null==(n=t.error)?void 0:n.message)||"Unexpected Error",e.loadingState.me=!1}),e.addCase(tp.getBillingInfo.pending,function(e){e.loadingState.billingInfo=!0}),e.addCase(tp.getBillingInfo.fulfilled,function(e){e.loadingState.billingInfo=!1}),e.addCase(tp.getBillingInfo.rejected,function(e,t){var n;e.errorState.billingInfo=(null==t||null==(n=t.error)?void 0:n.message)||"Unexpected Error",e.loadingState.billingInfo=!1})}}),ty=tm.actions;function tb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}tm.reducer;var tv=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};function tw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}tb(tv,"setMe",ty.setMe),tb(tv,"updateMe",ty.updateMe),tb(tv,"setCallCenterAllowedBasedOnSubscription",ty.setCallCenterAllowedBasedOnSubscription),tb(tv,"setEmail",ty.setEmail),tb(tv,"setPersonalInfo",ty.setPersonalInfo),tb(tv,"setBillingInfo",ty.setBillingInfo);var tj=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};tw(tj,"selectState",function(e){return e.sharedUser}),tw(tj,"selectMe",(0,e7.Mz)([tj.selectState],function(e){return null==e?void 0:e.me})),tw(tj,"selectIsLoading",(0,e7.Mz)(tj.selectState,function(e){var t;return null!=(t=null==e?void 0:e.loadingState.me)&&t})),tw(tj,"selectCallCenterAllowedBasedOnSubscription",(0,e7.Mz)(tj.selectState,function(e){return null==e?void 0:e.callCenterAllowedBasedOnSubscription})),tw(tj,"selectBillingInfo",(0,e7.Mz)(tj.selectState,function(e){return(null==e?void 0:e.billingInfo)||null})),tw(tj,"selectBillingInfoLoading",(0,e7.Mz)(tj.selectState,function(e){var t;return null!=(t=null==e?void 0:e.loadingState.billingInfo)&&t}));var tO=new e3("https://my.elementor.com/subscription/api/v1",!0,3e4,!0,[]).getInstance();function tx(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function tA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}m=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")},y="toggleSubscriptionAutoRenewal",b=(0,eE.zD)("shared-subscription/toggleSubscriptionAutoRenewal",function(e,t){var n,r=e.subscriptionId,o=e.autoRenew,i=e.errorMessage,a=t.dispatch;return(n=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),a({type:"TOGGLE_AUTO_RENEWAL_BEGIN"}),[4,tO.patch("/toggle-auto-renew/".concat(r),{autoRenew:o})];case 1:return t.sent().data.success?a({type:"TOGGLE_AUTO_RENEWAL_SUCCESS",payload:{id:r,data:{state:o}}}):a(e$.setToast({type:"error",text:null!=i?i:"retryErrorMessage"})),[3,3];case 2:throw a({type:"TOGGLE_AUTO_RENEWAL_FAILURE",payload:(e=t.sent()).message}),a(e$.setToast({type:"error",text:null!=i?i:"retryErrorMessage"})),e;case 3:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){tx(i,r,o,a,l,"next",e)}function l(e){tx(i,r,o,a,l,"throw",e)}a(void 0)})})()}),y in m?Object.defineProperty(m,y,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[y]=b;var tS=[],tE=function(e){var t;return null==(t=e.subscriptions)?void 0:t.data},tP=(0,e7.Mz)(tE,function(e){return null!=e?e:tS});(0,e7.Mz)(tP,function(e){var t;return e.length?((function(e){if(Array.isArray(e))return tA(e)})(t=new Set(e.map(function(e){return e.sku}).filter(Boolean)))||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 tA(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tA(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).join(","):""}),(0,e7.Mz)(tE,function(e){return(null!=e?e:tS).filter(function(e){return e.status===eG.Active&&!e.isFreeTrial})}),(0,e7.Mz)([tE,function(e){var t;return null==(t=e.subscriptions)?void 0:t.licenses},function(e,t){return t}],function(e,t,n){if(n){var r,o,i=(null!=e?e:tS).find(function(e){return e.id==n});if(i)return(null==t?void 0:t[n])?(r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},i),o=o={license:t[n]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r):i}});var tT=(0,eE.Z0)({name:"banners",initialState:{banners:[],loadingState:{},errorState:{}},reducers:{setBanners:function(e,t){e.banners=t.payload},setLoadState:function(e,t){e.loadingState[t.payload.key]=t.payload.value},setErrorState:function(e,t){e.errorState[t.payload.key]=t.payload.value}}}),tk=tT.actions;function tC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}tT.reducer;var tI=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};function tM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}tC(tI,"setBanners",tk.setBanners),tC(tI,"setLoadState",tk.setLoadState),tC(tI,"setErrorState",tk.setErrorState);var tL=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};function tR(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}tM(tL,"selectState",function(e){return e.banners}),tM(tL,"selectBanner",(0,e7.Mz)([tL.selectState,function(e,t){return t}],function(e,t){return((null==e?void 0:e.banners)||[]).find(function(e){var n;return(null==(n=e.extras)?void 0:n.type)===t&&!e.dismissed})})),tM(tL,"selectBanners",(0,e7.Mz)(tL.selectState,function(e){return(null==e?void 0:e.banners)||[]})),tM(tL,"selectLoadingState",(0,e7.Mz)([tL.selectState,function(e,t){return t}],function(e,t){return(null==e?void 0:e.loadingState[t])||!1})),tM(tL,"selectErrorState",(0,e7.Mz)([tL.selectState,function(e,t){return t}],function(e,t){return(null==e?void 0:e.errorState[t])||!1}));var t_=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return e=[{key:"getBanners",value:function(e){var t;return(t=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(t){return e?[2,new Promise(function(t){var n=[];e.subscribeToContentCardsUpdates(function(r){var o,i,a=null==(o=r.cards)?void 0:o.filter(function(e){return e.isControl}),l=null==(i=r.cards)?void 0:i.filter(function(e){return!e.isControl});a.length&&e.logContentCardImpressions(a),(n=l).sort(function(e,t){return e.extras.priority-t.extras.priority}),t(n)}),e.requestContentCardsRefresh()})]:[2,[]]})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){tR(i,r,o,a,l,"next",e)}function l(e){tR(i,r,o,a,l,"throw",e)}a(void 0)})})()}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t,e),t}();function tD(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}v=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")},w="getBanners",j=function(e){return function(t){var n;return(n=function(){var n,r;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),t(tI.setLoadState({key:"banners",value:!0})),[4,t_.getBanners(e)];case 1:return n=o.sent(),t(tI.setBanners(n)),t(tI.setLoadState({key:"banners",value:!1})),[3,3];case 2:return r=o.sent(),t(tI.setLoadState({key:"banners",value:!1})),t(tI.setErrorState({key:"banners",value:r.message})),[3,3];case 3:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){tD(i,r,o,a,l,"next",e)}function l(e){tD(i,r,o,a,l,"throw",e)}a(void 0)})})()}},w in v?Object.defineProperty(v,w,{value:j,enumerable:!0,configurable:!0,writable:!0}):v[w]=j;var tN=function(){var e=eA();return{createToast:(0,en.useCallback)(function(t){e(e$.setToast(t))},[e]),removeToast:(0,en.useCallback)(function(t){e(e$.removeToast(t))},[e])}};Date.UTC(2026,5,3),["ELEMENTOR-PRO-EXPERT25","ELEMENTOR-PRO-EXPERT","ELEMENTOR-PRO-EXPERT25-02","ELEMENTOR-PRO-EXPERT25-2Y","ELEMENTOR-PRO-EXPERT25-3Y","ELEMENTOR-PRO-AGENCY-1Y","ELEMENTOR-PRO-AGENCY-1Y-02","ELEMENTOR-PRO-AGENCY-2Y","ELEMENTOR-PRO-AGENCY-3Y"].map(function(e){return e.toUpperCase()}),["ELEMENTOR-PRO-ESSENTIAL-02","ELEMENTOR-PRO-ESSENTIAL2Y-01","ELEMENTOR-PRO-ESSENTIAL3Y-01","ELEMENTOR-PRO-ESSENTIAL-03","ELEMENTOR-PRO-PERSONAL-1Y","ELEMENTOR-PRO-EMPLOYEES-01","ELEMENTOR-PRO-EMPLOYEES-TRY-01","ELEMENTOR-PRO-PLUS","ELEMENTOR-PRO-PLUS2Y","ELEMENTOR-PRO-PLUS3Y","ELEMENTOR-PRO-PLUS-03","ELEMENTOR-PRO-SOLO-01","ELEMENTOR-PRO-SOLO2Y-01","ELEMENTOR-PRO-SOLO3Y-01","ELEMENTOR-PRO-TRY-01","ELEMENTOR-PRO-SOLO-02","ELEMENTOR-PRO-PERSONAL","ELEMENTOR-PRO-INTRO-01","ELEMENTOR-PRO-SHOPSOLO-01","ELEMENTOR-PRO-SHOPCORE-01","ELEMENTOR-PRO-SHOPESSENTIAL-01"].map(function(e){return e.toUpperCase()});var tB=n(12885),tU=n(48928),tF=(0,tB.xP)({reducerPath:"personalizationApi",baseQuery:(0,tU.cw)({baseUrl:"https://my.elementor.com/personalization/api/v1",credentials:"include"}),tagTypes:[eH.PERSONALIZATION_ITEM],endpoints:function(e){return{getPersonalizationItem:e.query({query:function(e){var t=e.entityType,n=e.entityId,r=e.namespace,o=e.key;return{url:"/".concat(t,"/").concat(n,"/").concat(r,"/").concat(o),method:"GET"}},transformResponse:function(e){if(null==e?void 0:e.length)return e[0].data||null},providesTags:function(e,t,n){var r=n.entityId,o=n.entityType,i=n.namespace,a=n.key;return[{type:eH.PERSONALIZATION_ITEM,id:"".concat(o,"_").concat(r,"_").concat(i,"_").concat(a)}]}}),setPersonalizationItem:e.mutation({query:function(e){var t=e.entityType,n=e.entityId,r=e.namespace,o=e.key,i=e.data;return{url:"".concat(t,"/").concat(n,"/").concat(r,"/").concat(o),method:"POST",body:i}},invalidatesTags:function(e,t,n){var r=n.entityId,o=n.entityType,i=n.namespace,a=n.key;return[{type:eH.PERSONALIZATION_ITEM,id:"".concat(o,"_").concat(r,"_").concat(i,"_").concat(a)}]}}),updatePersonalizationItem:e.mutation({query:function(e){var t=e.entityType,n=e.entityId,r=e.namespace,o=e.key,i=e.data;return{url:"".concat(t,"/").concat(n,"/").concat(r,"/").concat(o),method:"PATCH",body:i}},invalidatesTags:function(e,t,n){var r=n.entityId,o=n.entityType,i=n.namespace,a=n.key;return[{type:eH.PERSONALIZATION_ITEM,id:"".concat(o,"_").concat(r,"_").concat(i,"_").concat(a)}]}}),deletePersonalizationItem:e.mutation({query:function(e){var t=e.entityType,n=e.entityId,r=e.namespace,o=e.key;return{url:"/".concat(t,"/").concat(n,"/").concat(r,"/").concat(o),method:"DELETE"}},invalidatesTags:function(e,t,n){var r=n.entityId,o=n.entityType,i=n.namespace,a=n.key;return[{type:eH.PERSONALIZATION_ITEM,id:"".concat(o,"_").concat(r,"_").concat(i,"_").concat(a)}]}})}}});tF.useGetPersonalizationItemQuery,tF.useUpdatePersonalizationItemMutation,tF.useSetPersonalizationItemMutation,tF.useDeletePersonalizationItemMutation;var tz=(0,tB.xP)({reducerPath:"referralApi",baseQuery:(0,tU.cw)({baseUrl:"https://my.elementor.com/order/api/v1",credentials:"include"}),endpoints:function(e){return{getReferralCode:e.query({query:function(e){return{url:"/promo-code/referral?userId=".concat(e),method:"GET"}}}),generateReferralCode:e.mutation({query:function(e){return{url:"/promo-code/referral",method:"POST",body:{userId:e}}}})}}});tz.useGetReferralCodeQuery,tz.useGenerateReferralCodeMutation;var tG=(0,tB.xP)({reducerPath:"catalogApi",baseQuery:(0,tU.cw)({baseUrl:"https://my.elementor.com/catalog/api/v1",credentials:"include"}),tagTypes:["Plan","PartnerProducts"],endpoints:function(e){return{getSkuPlan:e.query({query:function(e){return{url:"/plan/".concat(e),method:"GET"}},providesTags:function(e,t,n){return[{type:"Plan",id:n}]}}),getPlansBySkus:e.query({query:function(e){var t=new URLSearchParams;return e.length>0&&t.set("sku[]",e.join(",")),{url:"/plans".concat(t.toString()?"?".concat(t.toString()):""),method:"GET"}},providesTags:function(e,t,n){return e?e.map(function(e){return{type:"Plan",id:e.sku}}):n.map(function(e){return{type:"Plan",id:e}})}}),partnerProducts:e.query({query:function(e){var t=new URLSearchParams;return(null==e?void 0:e.appType)&&t.append("appType",null==e?void 0:e.appType),(null==e?void 0:e.includePlans)&&t.append("includePlans",null==e?void 0:e.includePlans.toString()),{url:"/partner-products".concat(t.toString()?"?".concat(t.toString()):""),method:"GET",headers:{Authorization:"Bearer ".concat(eh.A.get("elementor_token"))}}},providesTags:function(e,t,n){return[{type:"PartnerProducts",id:(null==n?void 0:n.appType)?"".concat(null==n?void 0:n.appType,"_").concat(null==n?void 0:n.includePlans):"all"}]}})}}});tG.useGetSkuPlanQuery,tG.useGetPlansBySkusQuery,tG.usePartnerProductsQuery,new e3("https://my.elementor.com/api/account/v1",!0,3e4,!0,[]).getInstance();var tW=ew.createInstance(function(e,t){return n(23363)("./".concat(e,"/").concat(t,".json"))}),tH=n(68117);en.forwardRef(function(e,t){var n,r;return(0,X.jsx)(tH.A,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({viewBox:"0 11.5 144.119 121.331"},e),r=r={ref:t,children:(0,X.jsxs)("g",{transform:"translate(0, 11.5)",fill:"currentColor",children:[(0,X.jsx)("path",{d:"M25.0282 0H0V25.0745L48.0398 121.331H144.119V25.0745L25.0282 0ZM135.579 112.776H56.5798V33.6302H135.579V112.776Z"}),(0,X.jsx)("path",{d:"M112.795 68.8169H100.422C99.1563 68.8169 98.2303 67.6211 98.5441 66.3893L102.624 50.5612C103.138 48.5615 100.592 47.242 99.2644 48.8295L77.8733 74.3987C76.8187 75.6615 77.7138 77.5839 79.3601 77.5839H91.7379C93.0035 77.5839 93.9295 78.7797 93.6157 80.0115L89.536 95.8396C89.0216 97.8393 91.5681 99.1588 92.8954 97.5713L114.286 72.0021C115.341 70.7393 114.446 68.8169 112.8 68.8169H112.795Z"})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}).displayName="SticklightLogo";var tV=en.forwardRef(function(e,t){var n,r;return(0,X.jsx)(tH.A,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({viewBox:"0 0 24 24"},e),r=r={ref:t,children:(0,X.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,X.jsx)("path",{d:"M3 9L7 5M7 5L11 9M7 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)("path",{d:"M21 15L17 19M17 19L13 15M17 19V5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}),tK=ew.createInstance(function(e,t){return n(26120)("./".concat(e,"/").concat(t,".json"))}),tq=n(91479),tZ=n(98438),t$=function(e){var t=e.children,n=e.directionInstance,r=eO(),o=ef.includes(r);return(0,en.useEffect)(function(){var e=o?"rtl":"ltr";document.documentElement.dir=e},[o]),(0,X.jsxs)(tZ.A,{rtl:o,children:[n&&en.createElement(n,{rtl:o,children:t}),!n&&t]})};function tY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function tQ(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var tJ=function(e){var t=e.themeInstance,n=e.directionInstance,r=e.children,o=e.colorScheme,i=void 0===o?"light":o,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["themeInstance","directionInstance","children","colorScheme"]);return(0,X.jsx)(t$,{directionInstance:n,children:(0,X.jsxs)(tq.NP,tQ(tY({colorScheme:i},a),{children:[t&&en.createElement(t,tQ(tY({},a),{colorScheme:i,children:r})),!t&&r]}))})},tX=n(2039),t0=n(76451),t1=function(e){var t,n,r=e.isLoading,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["isLoading"]),i=(0,en.useMemo)(function(){return r?{disabled:!0,startIcon:(0,X.jsx)(t0.A,{"data-test":"spinner"})}:{}},[r]);return(0,X.jsx)(tJ,{children:(0,X.jsx)(tX.A,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},o,i),n=n={children:e.children},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))})},t2=n(67251),t3=n(2830),t4=n(64581);function t6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var t5=function(e){var t,n,r=e.bgStyle,o=void 0===r?"default":r,i=e.fullBackdrop,a=void 0===i||i,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["bgStyle","fullBackdrop"]),s=(0,en.useMemo)(function(){return"transparent"===o?{color:"secondary.main",bgcolor:"transparent"}:"opaque"===o?{color:"secondary.main",bgcolor:"common.white"}:"body"===o?{color:"secondary.main",bgcolor:"grey.50"}:{color:"secondary.main"}},[o]),c=(0,en.useMemo)(function(){return a?{}:{position:"unset",width:"100%",height:"100%"}},[a]);return(0,X.jsx)(tJ,{children:(0,X.jsx)(t2.A,(t=t6({sx:t6({zIndex:9999,display:l.open?"":"none"},s,c),transitionDuration:{appear:0,enter:0,exit:500}},l),n=n={children:l.open&&(0,X.jsxs)(t3.A,{sx:{display:"flex",flexDirection:"column",rowGap:2,alignItems:"center"},"data-test":"generic-loader-test-id","data-testid":"shared-loader-backdrop",children:[(0,X.jsx)(t0.A,{}),l.text&&(0,X.jsx)(t4.A,{variant:"body1",color:"inherit",align:"center",children:l.text})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))})},t8=n(80689),t7=n(83614),t9=function(e){var t=e.title,n=e.text,r=e.handleClose,o=e.show,i=e.btnText;return(0,X.jsx)(tJ,{children:(0,X.jsx)(t8.A,{open:o,onClose:r,"aria-labelledby":"alert-modal-title","aria-describedby":"alert-modal-description","data-test":"alert-modal",sx:{zIndex:9999},children:(0,X.jsxs)(t3.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",p:4,display:"flex",flexDirection:"column",rowGap:2,outline:"none"},children:[(0,X.jsxs)(t4.A,{id:"alert-modal-title",variant:"h6",component:"h2",children:[(0,X.jsx)(t7.A,{fontSize:"small",color:"error",sx:{verticalAlign:"middle",mr:1}}),t]}),(0,X.jsx)(t4.A,{id:"alert-modal-description",variant:"body1",children:n}),i&&(0,X.jsx)(tX.A,{variant:"contained",color:"secondary",onClick:r,sx:{alignSelf:"end"},"data-test":"alert-modal-action-button",children:i})]})})})},ne=n(44021),nt=n(60862),nn=n(73657),nr=n(34935);function no(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){no(e,t,n[t])})}return e}var na=function(e){var t,n,r=e.title,o=e.titleVariant,i=e.subtitleVariant,a=e.subtitle,l=e.titleActions,s=e.actions,c=e.sx,u=e.mobileBreakpoint,d=void 0===u?"sm":u,f=e.stickyActions,p=void 0!==f&&f,h=e.breadcrumb,g=e.isLoading,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleVariant","subtitleVariant","subtitle","titleActions","actions","sx","mobileBreakpoint","stickyActions","breadcrumb","isLoading"]);return(0,X.jsx)(tJ,{children:(0,X.jsxs)(t3.A,(t=ni({sx:ni({display:"flex",flexDirection:no({xs:"column"},d,"row"),justifyContent:no({xs:"flex-start"},d,"space-between"),alignSelf:"stretch",alignItems:"center",gap:1},c||{})},m),n=n={children:[(0,X.jsxs)(t3.A,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",alignSelf:"stretch",gap:1},children:[h&&h.length>0&&(0,X.jsx)(ne.A,{direction:"row",gap:1,divider:(0,X.jsx)(t4.A,{variant:"body1",color:"text.secondary",children:"/"}),children:h.map(function(e){return(0,X.jsx)(nt.A,{color:"text.secondary",underline:"hover",variant:"body1",component:nn.N_,to:e.to,children:(0,X.jsxs)(ne.A,{direction:"row",alignItems:"center",gap:1,children:[e.icon,(0,X.jsx)(t4.A,{variant:"body1",children:e.label})]})},e.label)})}),void 0!==g&&g?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(nr.A,{variant:"text",width:100,sx:{fontSize:24}}),a&&(0,X.jsx)(nr.A,{variant:"text",width:300,sx:{fontSize:16}})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(ne.A,{gap:2,direction:"row",alignItems:"center",children:[(0,X.jsx)(t4.A,{variant:void 0===o?"h5":o,"data-test":"page-header-title",color:"text.primary",children:r}),l]}),a&&(0,X.jsx)(t4.A,{variant:void 0===i?"body1":i,"data-test":"page-header-sub-title",color:"text.primary",children:a})]})]}),(0,X.jsx)(t3.A,{sx:function(e){return ni({display:"flex",flexDirection:"row",alignSelf:no({xs:"flex-start"},d,"center"),width:no({xs:"100%"},d,"auto"),gap:2},p&&no({},e.breakpoints.down(d),{position:"fixed",bottom:0,left:0,right:0,zIndex:1200,py:2,px:5,backgroundColor:"common.white",borderTop:"1px solid",borderColor:"divider"}))},"data-test":"page-header-actions",children:s})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))})},nl=n(42589),ns=n(19557),nc=n(21507),nu=n(82764),nd=n(27917);function nf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function np(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}(0,en.forwardRef)(function(e,t){var n,r,o,i=e.helperText,a=e.borderRadius,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["helperText","borderRadius"]),s=(n=(0,en.useState)(!1),function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(n,2)||function(e,t){if(e){if("string"==typeof e)return nf(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nf(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1];return(0,X.jsx)(tJ,{children:(0,X.jsx)(nc.A,np({fullWidth:!0,color:"secondary",type:c?"text":"password",autoComplete:"password",helperText:i,variant:"outlined",InputProps:(r=np({},void 0!==a&&{sx:{borderRadius:a}}),o=o={endAdornment:(0,X.jsx)(nl.A,{position:"end",children:(0,X.jsxs)(ns.A,{"aria-label":"toggle password visibility",onClick:function(){u(function(e){return!e})},edge:"end",disableRipple:!0,children:[c&&(0,X.jsx)(nu.A,{}),!c&&(0,X.jsx)(nd.A,{})]})})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r),inputRef:t},l))})}).displayName="PasswordField";var nh=n(30757),ng=n(25131);function nm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ny(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function nv(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var nw=function(e){var t,n=e.value,r=e.label,o=e.onCopied,i=e.sx,a=e.onClick,l=e.variant,s=e.color,c=void 0===s?"secondary":s,u=(e.tooltipText,e.iconProps),d=void 0===u?{}:u,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","label","onCopied","sx","onClick","variant","color","tooltipText","iconProps"]),p=(0,el.Bd)("common",{i18n:tK}).t,h=(t=(0,en.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return nm(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nm(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=h[0],m=h[1],y=function(e){var t;return(t=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return[4,navigator.clipboard.writeText(n||"")];case 1:return t.sent(),m(!0),null==o||o(),null==a||a(e),[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){ny(i,r,o,a,l,"next",e)}function l(e){ny(i,r,o,a,l,"throw",e)}a(void 0)})})()};return(0,X.jsx)(tJ,{children:(0,X.jsx)(nh.A,{onOpen:function(){return m(!1)},placement:"top",title:g?(0,X.jsx)(t3.A,{component:"span",children:p("copyClipboardSuccess")}):(0,X.jsx)(t3.A,{component:"span",children:p("copyClipboard")}),children:(0,X.jsxs)(t3.A,{component:"span",children:[r&&(0,X.jsx)(tX.A,nv(nb({sx:nb({},i||{}),variant:void 0===l?"text":l,color:c,onClick:y,startIcon:(0,X.jsx)(ng.A,nb({},d))},f),{children:(0,X.jsx)(t3.A,{component:"span",children:r})})),!r&&(0,X.jsx)(ns.A,nv(nb({sx:nb({py:0},i||{}),color:c,onClick:y},f),{children:(0,X.jsx)(ng.A,nb({},d))}))]})})})},nj=n(47721),nO=n(73168),nx=n(48161),nA=n(61681),nS=n(59094),nE=n(13539),nP=n(16119),nT=n(48834),nk=n(528);function nC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function nM(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function nL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nC(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var nR={error:(0,X.jsx)(nP.A,{color:"error"}),primary:null,secondary:null,info:(0,X.jsx)(nT.A,{color:"info"}),success:(0,X.jsx)(nT.A,{color:"success"}),warning:(0,X.jsx)(t7.A,{color:"warning"})},n_=function(e){var t,n,r,o=e.confirmColor,i=void 0===o?"primary":o,a=e.confirmMsg,l=e.acceptText,s=e.declineText,c=e.confirmTitle,u=e.onDecline,d=e.onButtonClicked,f=e.onClick,p=e.buttonType,h=void 0===p?"button":p,g=e.isLoading,m=void 0!==g&&g,y=e.dialogDividers,b=e.disableOpenConfirm,v=void 0!==b&&b,w=e.acceptButtonProps,j=e.switchProps,O=void 0===j?{}:j,x=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["confirmColor","confirmMsg","acceptText","declineText","confirmTitle","onDecline","onButtonClicked","onClick","buttonType","isLoading","dialogDividers","disableOpenConfirm","acceptButtonProps","switchProps"]),A=nL((0,en.useState)(!1),2),S=A[0],E=A[1],P=nL((0,en.useState)(!1),2),T=P[0],k=P[1],C=function(e){e.stopPropagation(),null==d||d(e),v||E(!0)},I=function(e){m||(null==u||u(e),E(!1))};return(0,en.useEffect)(function(){!m&&T&&E(!1)},[m,T]),(0,X.jsxs)(tJ,{children:["icon"===h&&(0,X.jsx)(ns.A,nM(nI({},x),{onClick:C,children:e.children})),"text"===h&&(0,X.jsxs)(ne.A,{direction:"row",gap:1,alignItems:"center",width:"100%",children:[x.startIcon,(0,X.jsx)(t4.A,{onClick:C,color:x.disabled?"text.disabled":"text.primary",sx:nM(nI({},x.sx||{}),{pointerEvents:x.disabled?"none":"auto"}),children:e.children}),x.endIcon]}),"button"===h&&(0,X.jsx)(tX.A,nM(nI({},x),{onClick:C,children:e.children})),"link"===h&&(0,X.jsx)(nt.A,{onClick:C,underline:"none",color:x.disabled?"text.disabled":(null==(r=x.color)||null==(n=r.split)||null==(t=n.call(r,"."))?void 0:t.length)===2?x.color:"info.main",rel:"noopener noreferrer",variant:"body2",sx:nI({pointerEvents:x.disabled?"none":"auto",cursor:"pointer"},x.sx||{}),children:e.children}),"switch"===h&&(0,X.jsx)(nk.A,nM(nI({},O),{onChange:function(){},disabled:x.disabled||O.disabled||m,onClick:C,sx:nM(nI({},O.sx||{}),{"& .PrivateSwitchBase-input":{visibility:"hidden"}})})),(0,X.jsxs)(nj.A,{open:S,onClose:I,onClick:function(e){return e.stopPropagation()},children:[(0,X.jsx)(nS.A,{onClose:I,sx:{".MuiDialogHeader-logo":{display:nR[i]?"block":"none"}},logo:nR[i],children:(0,X.jsx)(nE.A,{variant:"subtitle1",fontWeight:600,sx:{py:"16px!important",width:"100%"},children:c})}),a&&(0,X.jsx)(nx.A,{dividers:void 0!==y&&y,children:(0,X.jsx)(nA.A,{variant:"body2",children:a})}),(0,X.jsxs)(nO.A,{children:[(0,X.jsx)(tX.A,{variant:"outlined",color:"secondary",onClick:I,children:s}),(0,X.jsx)(t1,nM(nI({variant:"contained",color:i,onClick:function(e){null==f||f(e),k(!0)},isLoading:m},void 0===w?{}:w),{children:l}))]})]})]})},nD=n(38619),nN=n(11417),nB=n(83395);function nU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nF=function(e){var t,n,r=e.items,o=e.tabKey,i=e.onTabChangeCallback,a=e.hideTabs,l=e.sideActions,s=(t=(0,en.useState)(o||(null==(n=r[0])?void 0:n.key)),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return nU(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nU(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1],d=(0,en.useCallback)(function(e){u(e),null==i||i(e)},[i]),f=(0,en.useMemo)(function(){return r.map(function(e){return(0,X.jsx)(nD.A,{label:e.label,id:"tab_".concat(e.key),"aria-controls":"tab_panel_".concat(e.key),value:e.key,"data-test":"tab_".concat(e["data-test"]||e.key)},"tab_".concat(e.key))})},[r]),p=(0,en.useMemo)(function(){return r.map(function(e){return(0,X.jsx)(nN.A,{id:"tab_panel_".concat(e.key),"aria-labelledby":"tab_".concat(e.key),hidden:e.key!==c,"data-test":"tab_panel_".concat(e["data-test"]||e.key),children:e.component},"tab_panel_".concat(e.key))})},[r,c]);return(0,en.useEffect)(function(){o&&u(o)},[o]),(0,X.jsx)(tJ,{children:(0,X.jsxs)(ne.A,{sx:{width:"100%",minHeight:0},children:[!(void 0!==a&&a)&&(0,X.jsxs)(ne.A,{direction:"row",justifyContent:"space-between",children:[(0,X.jsx)(nB.A,{value:c,onChange:function(e,t){return d(t)},textColor:"secondary",indicatorColor:"secondary",children:f}),l&&(0,X.jsx)(ne.A,{direction:"row",alignItems:"center",gap:1,children:l})]}),p]})})},nz=n(1046),nG=n(30044),nW=n(87759);function nH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var nK=function(e){var t,n=e.alwaysOpen,r=void 0!==n&&n,o=e.clearable,i=e.fullWidth,a=void 0!==i&&i,l=e.focused,s=void 0!==l&&l,c=e.value,u=e.onChange,d=e.onOpen,f=e.colorScheme,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["alwaysOpen","clearable","fullWidth","focused","value","onChange","onOpen","colorScheme"]),h=(0,el.Bd)("common",{i18n:tK}).t,g=(t=(0,en.useState)(!!c||r),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return nH(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nH(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=g[0],y=g[1],b=(0,en.useRef)(null),v=function(){null==u||u({target:{value:""}}),r||y(!1)};return(0,en.useEffect)(function(){y(r||!!c)},[r,c]),(0,X.jsxs)(tJ,{colorScheme:void 0===f?"light":f,children:[(0,X.jsx)(nW.A,{in:m,orientation:"horizontal",sx:nV({display:m?"block":"none"},a&&m?{width:"100%","& .MuiCollapse-wrapperInner":{width:"100%"}}:{}),children:(0,X.jsx)(nc.A,nV({"data-test":"searchField",ref:b,variant:"outlined",size:"small",color:"secondary",inputRef:function(e){return e&&(!r||s)&&e.focus()},onKeyDown:function(e){"Escape"===e.key&&v()},InputProps:{startAdornment:(0,X.jsx)(nl.A,{position:"start",children:(0,X.jsx)(nz.A,{})}),endAdornment:(0,X.jsx)(X.Fragment,{children:(void 0===o||o)&&!!c&&(0,X.jsx)(nl.A,{position:"end",children:(0,X.jsx)(ns.A,{onClick:function(){return v()},disableRipple:!0,children:(0,X.jsx)(nG.A,{"data-test":"close-icon"})})})})},onChange:u,value:c,onBlur:function(){c||r||y(!1)},sx:nV({},a&&m?{width:"100% !important"}:{})},p))}),!m&&(0,X.jsx)(nW.A,{in:!m,orientation:"horizontal",children:(0,X.jsx)(nh.A,{title:h("search"),placement:"top",children:(0,X.jsx)(ns.A,{onClick:function(){y(!0),null==d||d()},children:(0,X.jsx)(nz.A,{"data-test":"search-icon"})})})})]})},nq=n(54614),nZ=n(90912),n$=n(91481);function nY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nQ(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function nJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function nX(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function n0(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nY(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var n1=function(e){var t,n=e.open,r=e.header,o=e.actions,i=e.declineText,a=e.onClose,l=e.dataTestPrefix,s=n0((0,en.useState)(o[0]||null),2),c=s[0],u=s[1],d=n0((0,en.useState)(!1),2),f=d[0],p=d[1];return(0,X.jsxs)(nj.A,nX(nJ({open:n,onClose:a,onClick:function(e){return e.stopPropagation()}},l?{"data-test":l}:{}),{children:[(0,X.jsx)(nS.A,{onClose:a,logo:!1,children:(0,X.jsx)(nE.A,{variant:"subtitle1",fontWeight:600,children:r})}),o&&(0,X.jsx)(nx.A,{children:(0,X.jsx)(nq.A,{defaultValue:null==(t=o[0])?void 0:t.title,sx:{gap:3},children:o.map(function(e,t){return(0,X.jsx)(nZ.A,{value:e.title,control:(0,X.jsx)(n$.A,nJ({color:"secondary",sx:{pt:0}},l?{"data-test":"".concat(l,"-radio-").concat(e.title.toLowerCase().replace(/\s+/g,"-"))}:{})),sx:{alignItems:"flex-start"},label:(0,X.jsxs)(ne.A,{direction:"column",gap:1,children:[(0,X.jsx)(t4.A,{variant:"subtitle2",children:e.title}),(0,X.jsx)(t4.A,{variant:"body2",children:e.description})]}),onClick:function(){return u(e)}},e.title)})})}),(0,X.jsxs)(nO.A,{children:[(0,X.jsx)(tX.A,nX(nJ({variant:"outlined",color:"secondary",onClick:a},l?{"data-test":"".concat(l,"-cancel-button")}:{}),{children:i})),(0,X.jsx)(t1,nX(nJ({variant:"contained",onClick:function(){var e;return(e=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:if(p(!0),!c)return[3,2];return[4,c.action()];case 1:e.sent(),e.label=2;case 2:return p(!1),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){nQ(i,r,o,a,l,"next",e)}function l(e){nQ(i,r,o,a,l,"throw",e)}a(void 0)})})()},isLoading:f},l?{"data-test":"".concat(l,"-confirm-button")}:{}),{children:null==c?void 0:c.actionButtonText}))]})]}))},n2=n(61402);function n3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function n4(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var n6=function(e){return Object.values(e).reduce(function(e,t){return t.minWidth?e+t.minWidth:t.width?e+t.width:t.maxWidth?e+t.maxWidth:e+100},0)},n5=function(e,t){var n=t[e]||{minWidth:100};return n.width?n4(n3({},n),{flexShrink:0}):{flex:"1 1 0",minWidth:n.minWidth,maxWidth:n.maxWidth}},n8=function(e,t){var n=n5(e.id,t),r=e.getIsPinned();return n3(n4(n3({},n),{left:"left"===r?"".concat(e.getStart("left"),"px"):void 0,right:"right"===r?"".concat(e.getAfter("right"),"px"):void 0,position:r?"sticky":"relative",width:n.width||n.minWidth||e.getSize(),zIndex:2*!!r,overflow:r?"visible":"hidden"}),r&&{"& > *":{backgroundColor:"rgba(255, 255, 255, 0.8)"}})};function n7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var n9=function(e){var t=e.columnStyles,n=e.rowCount,r=(0,en.useMemo)(function(){return Object.keys(t)},[t]);return(0,X.jsxs)(t3.A,{sx:{overflow:"hidden"},children:[(0,X.jsx)(t3.A,{sx:{overflowY:"auto"},children:(0,X.jsx)(t3.A,{sx:{width:"100%",minWidth:800},children:(0,X.jsxs)(t3.A,{children:[(0,X.jsx)(n2.A,{container:!0,spacing:2,sx:{borderBottom:"1px solid",borderColor:"divider",marginBottom:3,paddingBottom:3,flexWrap:"nowrap",width:"100%",minWidth:n6(t)},children:r.map(function(e,n){return(0,X.jsx)(n2.A,{item:!0,sx:n7({overflow:"hidden"},n5(e,t)),children:(0,X.jsx)(nr.A,{variant:"text",width:"150px",height:24})},e)})}),(0,X.jsx)(ne.A,{sx:{mb:2},gap:2,children:Array.from({length:void 0===n?5:n}).map(function(e,n){return(0,X.jsx)(n2.A,{container:!0,spacing:2,alignItems:"center",sx:{flexWrap:"nowrap",borderBottom:"1px solid",borderColor:"divider",paddingBottom:3,width:"100%",minWidth:n6(t)},children:r.map(function(e,n){return(0,X.jsx)(n2.A,{item:!0,sx:n7({overflow:"hidden"},n5(e,t)),children:(0,X.jsx)(nr.A,{variant:"text",height:16,sx:{width:n===r.length-1?"80%":"50%"}})},e)})},n)})})]})})}),(0,X.jsx)(t3.A,{sx:{width:"100%"},children:(0,X.jsx)(ne.A,{direction:"row",justifyContent:"flex-end",alignItems:"center",sx:{px:2,py:1},children:(0,X.jsxs)(ne.A,{direction:"row",spacing:1,alignItems:"center",children:[(0,X.jsx)(nr.A,{variant:"rectangular",width:60,height:32}),(0,X.jsx)(nr.A,{variant:"text",width:20,height:20}),(0,X.jsx)(nr.A,{variant:"rectangular",width:60,height:32})]})})})]})},re=n(62629),rt=n(97609),rn=n(41654),rr=n(66629),ro=n(31805),ri=n(5649),ra=n(74660),rl=n(3299),rs=n(45250);function rc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ru(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function rd(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function rf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||rg(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rh(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)||rg(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rg(e,t){if(e){if("string"==typeof e)return rc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rc(e,t)}}var rm=function(e){var t,n,r=e.dataMode,o=void 0===r?"client":r,i=e.items,a=e.itemsCount,l=e.fetchingState,s=e.columnsDef,c=e.groupOn,u=e.FilterToolbarComponent,d=e.SelectionToolbarComponent,f=e.NoFilterDataComponent,p=e.LoadingComponent,h=void 0===p?(0,X.jsx)(n9,{columnStyles:s.columnStyles}):p,g=e.NoDataComponent,m=e.getRowId,y=e.onRowClick,b=e.enableSelection,v=void 0!==b&&b,w=e.enableMultipleSelection,j=e.clearSelectionOnItemsChange,O=void 0!==j&&j,x=e.page,A=e.onPageChange,S=e.rowsPerPage,E=e.onRowsPerPageChange,P=e.rowsPerPageOptions,T=void 0===P?[5,10,25,50,100]:P,k=e.rowSelection,C=e.onRowSelectionChange,I=e.meta,M=e.getRowDataTest,L=e.rowsPerPageTranslation,R=e.getDisplayedRowsTranslation,_=e.paperProps,D=e.outerBorder,N=void 0===D||D,B=e.rowVariant,U=void 0===B?"flat":B,F=e.rowCardProps,z=e.maxHeight,G=e.sorting,W=e.onSortingChange,H=e.manualSorting,V=void 0!==H&&H,K=e.themeProps;(0,en.useEffect)(function(){if("server"===o){if(void 0===x)throw Error("page is required when dataMode is server");if(void 0===A)throw Error("onPageChange is required when dataMode is server");if(void 0===a)throw Error("itemsCount is required when dataMode is server")}if(v){if(void 0===k)throw Error("rowSelection is required when row selection is enabled");if(void 0===C)throw Error("onRowSelectionChange is required when row selection is enabled")}},[]);var q=(0,el.Bd)("common",{i18n:tK}).t,Z=l.showFullLoading,$=l.noFilterData,Y=l.noData,Q=function(e){var t,n,r;v?e.getIsGrouped()?null==(t=e.getToggleExpandedHandler())||t():null==(n=e.getToggleSelectedHandler())||n({}):e.getIsGrouped()&&(null==(r=e.getToggleExpandedHandler())||r()),null==y||y(e)},J=rp((0,en.useState)(0),2),ee=J[0],et=J[1],er=rp((0,en.useState)(null!=S?S:10),2),eo=er[0],ei=er[1],ea=rp((0,en.useState)([]),2),es=ea[0],ec=ea[1],eu=(0,en.useMemo)(function(){return"client"===o?ee:null!=x?x:0},[x,ee,o]),ed=(0,en.useCallback)(function(e){"client"===o?et(e):null==A||A(e)},[o,A]),ef=(0,en.useCallback)(function(e){W?W(e):ec(e),ed(0)},[W,ed]),ep=(0,en.useMemo)(function(){return null!=S?S:eo},[S,eo]),eh=(0,en.useCallback)(function(e){E?E(e):ei(e)},[E]),eg=(0,en.useMemo)(function(){return c?[c]:[]},[c]),em=null!=k?k:{};(0,en.useEffect)(function(){v&&C&&O&&C(function(e){var t=null!=e?e:{},n=i.reduce(function(e,n){var r=m(n);return t[r]&&(e[r]=!0),e},{});return(0,rs.isEqual)(t,n)?t:n})},[i]);var ey="server"===o||"client"===o&&V,eb=(0,re.N4)(rd(ru({data:i,columns:s.columns,defaultColumn:{enableSorting:!1,sortDescFirst:!1},getCoreRowModel:(0,rt.HT)(),getRowId:m},"client"!==o||V?{getGroupedRowModel:(0,rt.cU)(),getExpandedRowModel:(0,rt.D0)()}:{getSortedRowModel:(0,rt.h5)(),getGroupedRowModel:(0,rt.cU)(),getExpandedRowModel:(0,rt.D0)()}),{getPaginationRowModel:(0,rt.kW)(),paginateExpandedRows:!1,autoResetExpanded:!1,onRowSelectionChange:C,enableRowSelection:v,enableMultiRowSelection:v&&(void 0===w||w),enableSorting:!0,manualSorting:ey,onSortingChange:ef,state:{grouping:eg,rowSelection:em,pagination:{pageIndex:eu,pageSize:ep},sorting:null!=G?G:es,columnPinning:{left:(null==(t=s.columnPinning)?void 0:t.left)||[],right:(null==(n=s.columnPinning)?void 0:n.right)||[]}},groupedColumnMode:!1,manualPagination:"server"===o,meta:ru({},I)})),ev=(0,en.useMemo)(function(){return n6(s.columnStyles)+32},[s]),ew=(0,en.useMemo)(function(){return null!=L?L:q("tablePagination.rowsPerPage")},[L,q]),ej=(0,en.useMemo)(function(){return null!=R?R:function(e,t,n){return q("tablePagination.displayedRows",{from:e,to:t,count:n})}},[R,q]),eO=null!=a?a:eb.getGroupedRowModel().rows.length,ex=null!=_?_:{},eA=ex.sx,eS=rf(ex,["sx"]),eE=(0,en.useMemo)(function(){return[{p:2},!N&&{border:"none",boxShadow:"none"},eA].filter(Boolean)},[N,eA]),eP=(0,en.useMemo)(function(){return T.length?eO>T[0]:eO>0},[eO,T]);return(0,X.jsx)(tJ,rd(ru({},void 0===K?{}:K),{children:(0,X.jsxs)(ri.A,rd(ru({variant:N?"outlined":"elevation",elevation:N?void 0:0,sx:eE},eS),{children:[Z&&h,Y&&g,!Z&&!Y&&(0,X.jsxs)(ne.A,{gap:2,children:[0===Object.keys(em).length&&u,Object.keys(em).length>0&&(d||u),(0,X.jsxs)(t3.A,{sx:{overflow:"hidden"},children:[(0,X.jsx)(t3.A,{sx:ru({overflowY:"auto",position:"relative"},z?{maxHeight:z}:{}),children:(0,X.jsx)(t3.A,{sx:{width:"100%",minWidth:ev},children:(0,X.jsxs)(t3.A,{children:[(0,X.jsx)(n2.A,{container:!0,spacing:2,sx:rd(ru({px:2,flexWrap:"nowrap"},"card"===U?{}:{borderBottom:"1px solid",borderColor:"divider",pb:2,px:1}),{alignItems:"center",position:"sticky",top:-16,backgroundColor:"background.paper",zIndex:1e3}),children:eb.getHeaderGroups().map(function(e){return e.headers.map(function(e){var t,n,r,o=null!=(r=null==(n=s.columnStyles[e.id])?void 0:n.typographyProps)?r:{},i=o.sx,a=rf(o,["sx"]),l=!e.isPlaceholder&&e.column.getCanSort(),c=e.column.getIsSorted(),u=e.column.getToggleSortingHandler(),d=e.isPlaceholder?null:(0,re.Kv)(e.column.columnDef.header,e.getContext()),f=(0,X.jsx)(t4.A,rd(ru({component:"span",variant:"subtitle2",color:"text.secondary",sx:[{fontWeight:600}].concat(rh(i?[i]:[]))},a),{children:d}));return(0,X.jsx)(n2.A,{item:!0,sx:ru({overflow:"hidden"},n8(e.column,s.columnStyles)),children:l?(0,X.jsxs)(ne.A,{direction:"row",alignItems:"center",spacing:.5,"aria-sort":"asc"===c?"ascending":"desc"===c?"descending":"none","data-test":"table-header-sort-".concat(e.id),onClick:u,onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),null==u||u(e))},sx:rd(ru({width:"100%",minWidth:0,cursor:"pointer",userSelect:"none",WebkitTapHighlightColor:"transparent",color:"inherit","&:hover":{backgroundColor:"transparent"},"&:active":{backgroundColor:"transparent"},outline:"none","&:focus-visible":function(e){return{outline:"2px solid ".concat(e.palette.primary.main),outlineOffset:2,borderRadius:.5}},"& .table-header-sort-icon":{opacity:+!!(t=!!c),transition:function(e){return e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}}},t?{}:{"&:hover .table-header-sort-icon":{opacity:1},"&:focus-visible .table-header-sort-icon":{opacity:1}}),{"@media (hover: none)":{"& .table-header-sort-icon":{opacity:1}}}),children:[f,(0,X.jsxs)(t3.A,{className:"table-header-sort-icon","aria-hidden":!0,sx:{flexShrink:0,display:"flex",alignItems:"center",color:"text.secondary"},children:["asc"===c&&(0,X.jsx)(rr.A,{fontSize:"small"}),"desc"===c&&(0,X.jsx)(rn.A,{fontSize:"small"}),"asc"!==c&&"desc"!==c&&(0,X.jsx)(tV,{sx:{fontSize:18,opacity:.45}})]})]}):f},e.id)})})}),$&&f&&(0,X.jsx)(t3.A,{sx:{p:4},children:f}),(0,X.jsx)(ne.A,{sx:{my:2},gap:2,children:eb.getRowModel().rows.map(function(e){var t=v||!!y,n=e.getVisibleCells().map(function(t){var n=e.getIsGrouped()||t.getIsAggregated();return(0,X.jsxs)(n2.A,{item:!0,sx:ru({overflow:"hidden"},n8(t.column,s.columnStyles)),"data-pinned":!!t.column.getIsPinned(),children:[n&&(0,re.Kv)(t.column.columnDef.aggregatedCell,t.getContext()),!n&&(0,re.Kv)(t.column.columnDef.cell,t.getContext())]},t.id)}),r=(0,X.jsx)(n2.A,{container:!0,spacing:2,alignItems:"center","data-test2":"flat"===U?"row":void 0,"data-test":"flat"===U?null!=(o=null==M?void 0:M(e))?o:"":void 0,sx:ru({flexWrap:"nowrap",minHeight:"card"===U?62:68},"flat"===U?{"&:hover":{cursor:t?"pointer":"default",backgroundColor:"#F5F5F5",'[data-pinned="true"] > *':{backgroundColor:"#F5F5F5"}},backgroundColor:e.getIsSelected()?"action.hover":"inherit",pb:2,px:1}:{py:0}),onClick:"flat"===U?function(){return Q(e)}:void 0,children:n});if("card"===U){var o,i,a=null!=F?F:{},l=a.sx,c=rf(a,["sx"]);return(0,X.jsx)(ra.A,rd(ru({variant:"outlined","data-test2":"row","data-test":null!=(i=null==M?void 0:M(e))?i:"",onClick:function(){return Q(e)},sx:[{overflow:"visible","&:hover":t?{cursor:"pointer",backgroundColor:"#F5F5F5",'[data-pinned="true"] > *':{backgroundColor:"#F5F5F5"}}:{},backgroundColor:e.getIsSelected()?"action.hover":"background.paper"}].concat(rh(l?[l]:[]))},c),{children:(0,X.jsx)(rl.A,{sx:{py:"12px !important",paddingBottom:"12px !important"},children:r})}),e.id)}return(0,X.jsx)(ne.A,{sx:{borderBottom:"1px solid",borderColor:"divider"},children:r},e.id)})})]})})}),eP&&(0,X.jsx)(t3.A,{sx:{width:"100%"},children:(0,X.jsx)(ro.A,{component:"div",sx:{borderBottom:"none","& .MuiTablePagination-selectLabel, .MuiTablePagination-displayedRows":{margin:0}},rowsPerPageOptions:T,colSpan:s.columns.length,count:eO,rowsPerPage:ep,page:eu,onPageChange:function(e,t){ed(t)},onRowsPerPageChange:function(e){var t=parseInt(e.target.value,10);ed(0),eh(t)},labelRowsPerPage:ew,labelDisplayedRows:function(e){return ej(e.from,e.to,e.count)}})})]})]})]}))}))};function ry(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rb=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};function rv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}ry(rb,"checkReduxRules",function(e,t,n){var r=!(arguments.length>3)||void 0===arguments[3]||arguments[3],o=!0;return null==e||e.forEach(function(e){var i=e.reduxSelector(t),a=e.condition(i);!a&&r&&n(e.dispatchAction),o=o&&a}),o}),ry(rb,"injectReduxSlicesOnInit",function(e){null==e||e.forEach(function(e){eB.addSlice(e.reduxSlice)})}),ry(rb,"checkInlineRules",function(e){var t=!0;return null==e||e.forEach(function(e){var n=e();t=t&&n}),t});var rw=function(e){var t,n=e.children,r=e.delay,o=(t=(0,en.useState)(!r),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return rv(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rv(e,2)}}(t,2)||function(){throw 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(0,en.useEffect)(function(){if(r){var e=setTimeout(function(){a(!0)},r);return function(){clearTimeout(e)}}},[r]),i?(0,X.jsx)(X.Fragment,{children:n}):null};function rj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rj(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var rx=function(e,t,n){return rb.checkReduxRules(e,eB.getStoreInstance().getState(),t,n)},rA=(0,en.memo)(function(e){var t=e.children,n=e.reduxRules,r=e.inlineRules,o=e.fallbackUI,i=void 0===o?(0,X.jsx)(t5,{open:!0,"data-test":"guard-default-loader"}):o,a=e.fallbackUIDelay,l=e.onFailCallback,s=e.onFailDelay,c=eA(),u=(0,en.useRef)(null),d=rO((0,en.useState)(!(null==n?void 0:n.length)||rx(n,c,!1)||void 0),2),f=d[0],p=d[1],h=rO((0,en.useState)(!(null==r?void 0:r.length)||rb.checkInlineRules(r)||void 0),2),g=h[0],m=h[1],y=(0,en.useMemo)(function(){return f&&g},[f,g]);return(0,en.useEffect)(function(){rb.injectReduxSlicesOnInit(n),p(rx(n,c,!0));var e=eB.getStoreInstance().subscribe(function(){p(rx(n,c,!1))});return function(){e()}},[c,n]),(0,en.useEffect)(function(){var e=rb.checkInlineRules(r);m(function(t){return void 0!==e?e:t})},[r]),(0,en.useEffect)(function(){return!1===y?u.current=setTimeout(function(){null==l||l()},s||0):u.current&&clearTimeout(u.current),function(){u.current&&clearTimeout(u.current)}},[l,s,y]),y?t:(0,X.jsx)(rw,{delay:a,children:i})});function rS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.dataLayer=window.dataLayer||[];var rP="/pricing/";((function(e){if(Array.isArray(e))return rS(e)})(O=[ez.APP_DOMAIN])||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 rS(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rS(e,void 0)}}(O)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([ez.APP_SERVICE]),rE(F={},ez.APP_IO,{url:"/upgrade-image-optimizer/",new:!0}),rE(F,ez.APP_AI,{url:"/upgrade-ai/",new:!0}),rE(F,ez.HOSTING,{url:"/upgrade-hosting/",new:!0}),rE(F,ez.PLUGIN,{url:"/upgrade-plugin/",new:!0}),rE(F,ez.APP_STRATTIC,{url:"/upgrade-static-hosting/",new:!0}),rE(F,ez.APP_BKP,{url:"/upgrade-backup/",new:!0}),rE(F,ez.FREE_TRIAL,void 0),rE(F,ez.APP_SERVICE,{url:"/upgrade-site-maintenance/",new:!0}),rE(F,ez.APP_SUPPORT,{url:"/upgrade-care/",new:!0}),rE(F,ez.APP_MAILER,{url:"/upgrade-site-mailer/",new:!0}),rE(F,ez.APP_EMPMA,{url:"/upgrade-send/",new:!0}),rE(F,ez.APP_ACCESS,{url:"/upgrade-ally/",new:!0}),rE(F,ez.APP_MANAGE,void 0),rE(F,ez.APP_DOMAIN,void 0),rE(F,ez.APP_ONE,{url:"/upgrade-one/",new:!0}),rE(F,ez.APP_COOKIE,{url:"/upgrade-cookie/",new:!0});var rT="buyNewSubscription";rE(z={},ez.HOSTING,{url:"/hosting/#plans",textKey:rT}),rE(z,ez.PLUGIN,{url:"/pricing-plugin/",textKey:rT}),rE(z,ez.APP_AI,{url:"/products/ai/#pricing",textKey:rT}),rE(z,ez.APP_IO,{url:"/products/image-optimizer/#pricing",textKey:rT}),rE(z,ez.APP_BKP,{url:rP,textKey:rT}),rE(z,ez.APP_STRATTIC,{url:rP,textKey:rT}),rE(z,ez.FREE_TRIAL,void 0),rE(z,ez.APP_SERVICE,{url:"/care/site-maintenance/",textKey:rT}),rE(z,ez.APP_SUPPORT,{url:"/care/support/",textKey:"goToPlatinumServices"}),rE(z,ez.APP_MAILER,{url:"/products/site-mailer/",textKey:rT}),rE(z,ez.APP_EMPMA,{url:rP,textKey:rT}),rE(z,ez.APP_ACCESS,{url:"/products/ally-web-accessibility/",textKey:rT}),rE(z,ez.APP_DOMAIN,{url:"/domains/#find-domain",textKey:rT}),rE(z,ez.APP_ONE,{url:"/products/one/#plans",textKey:rT}),rE(z,ez.APP_COOKIE,{url:"/products/cookie/",textKey:rT}),rE(z,ez.APP_MANAGE,{url:"/products/manage",textKey:rT});var rk={default:{currency:"USD",symbol:"$"},IL:{currency:"ILS",symbol:"₪"},GB:{currency:"GBP",symbol:"£"},AT:{currency:"EUR",symbol:"€"},BE:{currency:"EUR",symbol:"€"},CY:{currency:"EUR",symbol:"€"},DE:{currency:"EUR",symbol:"€"},EE:{currency:"EUR",symbol:"€"},ES:{currency:"EUR",symbol:"€"},FI:{currency:"EUR",symbol:"€"},FR:{currency:"EUR",symbol:"€"},GR:{currency:"EUR",symbol:"€"},IE:{currency:"EUR",symbol:"€"},IT:{currency:"EUR",symbol:"€"},LT:{currency:"EUR",symbol:"€"},LU:{currency:"EUR",symbol:"€"},LV:{currency:"EUR",symbol:"€"},MT:{currency:"EUR",symbol:"€"},NL:{currency:"EUR",symbol:"€"},PT:{currency:"EUR",symbol:"€"},SI:{currency:"EUR",symbol:"€"},SK:{currency:"EUR",symbol:"€"},CA:{currency:"CAD",symbol:"CA$"},AU:{currency:"AUD",symbol:"A$"},BR:{currency:"BRL",symbol:"R$"}};function rC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rI=new Set(["$","\u20AC","\u20AA","\xa3","CA$","A$","R$"]),rM=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};function rL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}rC(rM,"decodeCurrencySymbol",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}),rC(rM,"formatCurrency",function(e,t){var n=new Intl.NumberFormat(ew.getLanguage(),{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(e)),r=rM.decodeCurrencySymbol(t);return rI.has(r)?"".concat(r).concat(n):"".concat(n," ").concat(r)}),rC(rM,"getCurrencySymbol",function(e){for(var t in rk)if(rk[t].currency===e)return rM.decodeCurrencySymbol(rk[t].symbol)}),rC(rM,"getCurrencyByCountry",function(e){return rk[e]?rk[e]:rk.default});var rR=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};rL(rR,"getInitials",function(e,t){return e||t?"".concat(null==e?void 0:e.charAt(0)).concat(null==t?void 0:t.charAt(0)):""}),rL(rR,"getFullName",function(e,t){return"".concat(e).concat(e&&t?" ":"").concat(t)});var r_=n(23464),rD=n.n(r_);function rN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rB=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return e=[{key:"getDaysDuration",value:function(e,t){return"function"!=typeof e.getMonth&&(e=new Date(e)),"function"!=typeof t.getMonth&&(t=new Date(t)),Math.ceil((t.getTime()-e.getTime())/864e5)}},{key:"hasNoTimeSet",value:function(e){var t=new Date(e);return 0===t.getUTCHours()&&0===t.getUTCMinutes()&&0===t.getUTCSeconds()&&0===t.getUTCMilliseconds()}},{key:"sortByDateProperty",value:function(e,t){var n=new Date(e).getTime(),r=new Date(t).getTime();return isNaN(n)||isNaN(r)?0:n-r}},{key:"toUtcDayTimestamp",value:function(e){if(!e)return null;var t=new Date(e);return Number.isNaN(t.getTime())?null:Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}},{key:"getDurationFromRange",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(e){var r="string"==typeof e?new Date(e):e,o=n.getTime()-r.getTime();return t.getDurationFromMs(o)}}},{key:"getDurationFromMs",value:function(e){var t=Math.floor(e/2592e6),n=Math.floor(e/6048e5),r=Math.floor(e/864e5),o=Math.floor(e/36e5),i=Math.floor(e/6e4),a=Math.floor(e/1e3);return t>0?{duration:t,unit:"months"}:n>0?{duration:n,unit:"weeks"}:r>0?{duration:r,unit:"days"}:o>0?{duration:o,unit:"hours"}:i>0?{duration:i,unit:"minutes"}:{duration:a,unit:"seconds"}}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t,e),t}();rN(rB,"toISOShort",function(e){return new Date(e).toISOString().slice(0,10)}),rN(rB,"toLocalISODate",function(e){return rD()(e).format("YYYY-MM-DD")}),rN(rB,"parseLocalDate",function(e){return rD()(e).toDate()}),rN(rB,"formatDate",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ew.getLanguage();if(!e)return"";try{return new Intl.DateTimeFormat(t||"en-US",{year:"numeric",month:"short",day:"numeric"}).format(new Date(e.replace(" ","T")))}catch(t){return new Date(e.replace(" ","T")).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}}),rN(rB,"formatDateShort",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ew.getLanguage();if(!e)return"";try{return new Intl.DateTimeFormat(t||"en-US",{month:"short",day:"numeric"}).format(new Date(e.replace(" ","T")))}catch(t){return new Date(e.replace(" ","T")).toLocaleDateString("en-US",{month:"short",day:"numeric"})}}),rN(rB,"formatTime",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ew.getLanguage();if(!e)return"";try{return new Intl.DateTimeFormat(t||"en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(e.replace(" ","T")))}catch(t){return new Date(e.replace(" ","T")).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit"})}}),rN(rB,"formatTimeShort",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ew.getLanguage();if(!e)return"";try{return new Intl.DateTimeFormat(t||"en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}).format(new Date(e.replace(" ","T")))}catch(t){return new Date(e.replace(" ","T")).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1})}}),rN(rB,"formatDateTime",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?rB.formatDate(e)+" "+rB.formatTime(e):t}),rN(rB,"formatCompactDateTime",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ew.getLanguage();if(!e)return"";try{var n=new Date(e.replace(" ","T")),r=new Intl.DateTimeFormat(t||"en-US",{month:"short",day:"numeric"}).format(n),o=new Intl.DateTimeFormat(t||"en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}).format(n);return"".concat(r," ").concat(o)}catch(t){var i=new Date(e.replace(" ","T")),a=i.toLocaleDateString("en-US",{month:"short",day:"numeric"}),l=i.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1});return"".concat(a," ").concat(l)}}),rN(rB,"hmsToHm",function(e){var t=e.split(":");return t.pop(),t.join(":")});(function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return e=[{key:"isURLAbsolute",value:function(e){return RegExp("^(?:[a-z+]+:)?//","i").test(e)}},{key:"isElementorDomainValid",value:function(e){try{var t=new URL(e),n=t.protocol,r=t.hostname,o="elementor.com";if("https:"!==n)return!1;return o===r||r.endsWith(".".concat(o))}catch(e){return!1}}},{key:"isURL",value:function(e){if(!e)return!1;try{var t=new URL(e).protocol;return"http:"===t||"https:"===t}catch(e){return!1}}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t,e),t})().isURLAbsolute;var rU=n(42890),rF=((x={}).Infra="Infra",x.Hosting="Hosting",x.Domains="Domains",x.Store="Store",x),rz=((A={}).Sites="sites",A.Domains="domains",A.Addons="addons",A.Services="services",A.Support="support",A.Enterprise="enterprise",A.Agency="agency",A.Other="other",A),rG="page_view",rW="action_clicked",rH="site_action_clicked",rV="capability_clicked",rK="filter_set",rq="action_confirmed",rZ="alert_clicked",r$="mismatch_resolution",rY="home_installer_reached",rQ="primary_cta_clicked",rJ="page",rX="filter_name",r0="connect",r1="cta_name",r2="action_type",r3="category_name",r4="capability_name",r6="already_installed_tools_count",r5="already_installed_tools",r8="new_selected_tools_count",r7="new_selected_tools";function r9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ot=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return e=[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rF.Infra,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;rU.A.init(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){oe(e,t,n[t])})}return e}({api_host:"https://api-eu.mixpanel.com",debug:!1,track_pageview:!0,persistence:"localStorage",opt_out_tracking_by_default:!0},null!=n?n:{})),r?rU.A.register({appType:e}):rU.A.register_once({appType:e}),this.hasValidConsent(o)||rU.A.opt_out_tracking(),window.addEventListener("CookiebotOnAccept",function(){var e,t;(null==(t=window.Cookiebot)||null==(e=t.consent)?void 0:e.statistics)==!0?rU.A.opt_in_tracking():rU.A.opt_out_tracking()}),window.addEventListener("CookiebotOnDecline",function(){rU.A.opt_out_tracking()})}},{key:"startTracking",value:function(e,t){this.hasValidConsent(t)&&rU.A.opt_in_tracking(),e&&rU.A.identify(e)}},{key:"trackMixpanelElementorOneEvent",value:function(e,t){var n,r;(null==(r=window)||null==(n=r.elementorOneSettingsData)?void 0:n.shareUsageData)&&rU.A.track(e,t)}},{key:"getEventLocation",value:function(){var e=window.location.pathname.split("/");return e.includes(rz.Sites)?rz.Sites:e.includes(rz.Domains)?rz.Domains:e.includes(rz.Addons)?rz.Addons:e.includes(rz.Services)?rz.Services:e.includes(rz.Support)?rz.Support:e.includes(rz.Enterprise)?rz.Enterprise:e.includes(rz.Agency)?rz.Agency:rz.Other}},{key:"getCookieValue",value:function(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():void 0}},{key:"hasStatisticsConsent",value:function(e){var t=this.getCookieValue(e);if(!t)return!1;try{return decodeURIComponent(t).includes("statistics:true")}catch(e){return!1}}},{key:"hasValidConsent",value:function(e){return void 0!==e&&!!e||this.hasStatisticsConsent("CookieConsent")||this.hasStatisticsConsent("CsdCookieConsent")}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t,e),t}();oe(ot,"instance",function(){return rU.A}),oe(ot,"track",function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(G=rU.A).track.apply(G,function(e){if(Array.isArray(e))return r9(e)}(t)||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 r9(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r9(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}),n(63827),tj.selectMe,tp.getMe();var on=function(e){var t=(0,en.useRef)(e);(0,en.useEffect)(function(){t.current=e},[e]),(0,en.useEffect)(function(){var e=function(e){t.current(e)};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}})},or=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=(0,en.useRef)(!1);(0,en.useEffect)(function(){t&&!n.current&&(n.current=!0,e())},[e,t])},oo=function(){var e=eA(),t=eS(te.selectAlertError),n=(0,el.Bd)(["components"],{i18n:tW}).t,r=(0,en.useCallback)(function(){(null==t?void 0:t.shouldRefresh)&&window.location.reload(),e(e$.setAlertError(void 0))},[e,null==t?void 0:t.shouldRefresh]),o=(0,en.useMemo)(function(){return(null==t?void 0:t.title)||n("alertError.defaultTitle",{defaultValue:"Something went wrong!"})},[null==t?void 0:t.title,n]),i=(0,en.useMemo)(function(){return(null==t?void 0:t.message)||n("alertError.defaultMessage",{defaultValue:"Please refresh the page."})},[null==t?void 0:t.message,n]),a=(0,en.useMemo)(function(){return(null==t?void 0:t.shouldRefresh)?n("alertError.refreshBtn",{defaultValue:"Refresh"}):n("alertError.okBtn",{defaultValue:"Ok"})},[null==t?void 0:t.shouldRefresh,n]);return(0,X.jsx)(t9,{show:!!t,text:i,title:o,btnText:a,handleClose:r})},oi=n(8396),oa=n(50876),ol=["popup_closed_by_user","window.lintrk","fbq","ResizeObserver","CustomEvent"],os={400:{skipStatus:!0},401:{skipStatus:!0},404:{skipStatus:!0},403:{skipStatus:!0,skipCodes:["rest_cookie_invalid_nonce"]}},oc={ChunkLoadError:{skipErrorName:!0},Error:{skipErrorName:!1,skipCodes:["CSS_CHUNK_LOAD_FAILED"]},NotFoundError:{skipErrorName:!1,skipMessages:["Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node."]}},ou=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return e=[{key:"skipAxiosError",value:function(e){try{var t,n,r,o,i=null==e||null==(t=e.response)?void 0:t.status,a=null==e||null==(r=e.response)||null==(n=r.data)?void 0:n.code;if(i&&os[i]&&(os[i].skipStatus||a&&(null==(o=os[i].skipCodes)?void 0:o.includes(a))))return!0;return!1}catch(e){return!1}}},{key:"logAxiosResponseError",value:function(e){try{var t,n;if(this.skipAxiosError(e))return;console.log("Axios -> Sentry. Failed response data:",JSON.stringify(null==e||null==(t=e.response)?void 0:t.data)),oi.Z({category:"axios",message:"Axios request failed: ".concat(null==e||null==(n=e.response)?void 0:n.status),data:null==e?void 0:e.response,level:"error"}),oa.Cp(e)}catch(e){console.error("Error while capturing axios interceptor response error with Sentry",e)}}},{key:"skipTimoutError",value:function(e,t){return!!("string"==typeof(t.message||e)&&e.includes("Timeout"))}},{key:"skipErrorBoundaryError",value:function(e){var t=null==e?void 0:e.name;if(t&&oc[t]){if(oc[t].skipErrorName)return!0;var n,r,o=null==e?void 0:e.code;if(o&&(null==(n=oc[t].skipCodes)?void 0:n.includes(o)))return!0;var i=null==e?void 0:e.message;if(i&&(null==(r=oc[t].skipMessages)?void 0:r.includes(i)))return!0}return!1}},{key:"skipUnknownError",value:function(e){var t;return null!=e&&null!=(t=e.message)&&!!t.includes("unknown")&&(!e.extra||!e.extra.reason&&!e.extra.detail)}},{key:"skipNonErrorIssue",value:function(e){var t,n,r,o,i,a,l,s,c=(null==(t=e.exception)?void 0:t.values)&&(null==(n=e.exception)?void 0:n.values[0]);return!!((null==c?void 0:c.value)==="Non-Error exception captured with keys: currentTarget, isTrusted, target, type"||(null==c?void 0:c.value)==="Non-Error promise rejection captured with keys: currentTarget, detail, isTrusted, target"||(null==c||null==(o=c.value)||null==(r=o.includes)?void 0:r.call(o,"Non-Error promise rejection captured with value: Timeout"))||(null==c||null==(a=c.value)||null==(i=a.includes)?void 0:i.call(a,"The request is not allowed by the user agent or the platform in the current context"))||(null==c||null==(s=c.value)||null==(l=s.includes)?void 0:l.call(s,"Event `CustomEvent` (type=unhandledrejection) captured as promise rejection")))}},{key:"skipBlacklistErrors",value:function(e){return!!(e&&e.message&&ol.some(function(t){var n;return null==e||null==(n=e.message)?void 0:n.includes(t)}))}},{key:"logErrorBoundaryError",value:function(e){try{if(this.skipErrorBoundaryError(e))return;oa.Cp(e)}catch(e){console.error("Error while capturing ErrorBoundary with Sentry",e)}}},{key:"logError",value:function(e){try{oa.Cp(e)}catch(e){console.error("Error while capturing error with Sentry",e)}}},{key:"getAppVersion",value:function(){return"app-elementor-one@package"}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t,e),t}();function od(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function of(e){return(of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function op(e,t){return(op=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(oh=function(){return!!e})()}var og=function(e){var t,n;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(e){var t,n,o;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return n=r,o=[e],n=of(n),(t=function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,oh()?Reflect.construct(n,o||[],of(this).constructor):n.apply(this,o))).state={hasError:!1},t}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&op(r,e),t=[{key:"componentDidCatch",value:function(e,t){console.log("ErrorBoundary - componentDidCatch",e,t),ou.logErrorBoundaryError(e),this.setState({hasError:!0,error:e})}},{key:"render",value:function(){return this.state.hasError?this.props.fallback(this.state.error):this.props.children}}],n=[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}],t&&od(r.prototype,t),n&&od(r,n),r}(en.Component),om=(0,en.memo)(function(e){var t=e.children,n=e.fallback,r=(0,el.Bd)(["components"],{i18n:tW,useSuspense:!1}).t,o=(0,en.useCallback)(function(e){return n?n(e):(null==e?void 0:e.name)==="ChunkLoadError"||(null==e?void 0:e.code)==="CSS_CHUNK_LOAD_FAILED"?(window.location.reload(),null):(0,X.jsx)(t9,{show:!0,text:r("errorBoundary.default.title"),title:r("errorBoundary.default.message"),btnText:r("errorBoundary.default.btn"),handleClose:function(){return window.location.reload()}})},[n,r]);return(0,X.jsx)(og,{fallback:o,children:t})}),oy=function(){var e,t,n=eS(te.selectSharedLoader);return(0,X.jsx)(t5,(e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({open:!!(null==n?void 0:n.open)},n),t=t={"data-test":"shared-loading-screen"},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e))},ob=n(19448),ov=n(12413),ow=n(10102),oj=n(56971),oO=n(74812);function ox(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oA=(S={},{start:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n&&(S[e.id]&&clearTimeout(S[e.id]),S[e.id]=void 0),void 0===S[e.id]&&!1!==e.autohide&&!0===e.show&&(S[e.id]=setTimeout(function(){t(e$.removeToast(e.id)),S[e.id]=void 0},e.delay||5e3)),null},cancel:function(e){S[e.id]&&(clearTimeout(S[e.id]),S[e.id]=null)}}),oS=function(e,t,n){if("string"==typeof t){var r=e(t,n);return r!==t&&r?r:t}return t},oE=function(e){var t,n=e.position,r=void 0===n?"bottom-right":n,o=eA(),i=(0,el.Bd)("toast",{i18n:tW}).t,a=eS(te.selectToasts),l=(t=(0,en.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return ox(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ox(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=l[0],c=l[1];(0,en.useEffect)(function(){a&&a.length>0&&a.some(function(e){return e.show})?c(!0):c(!1)},[a]);var u=function(e){o(e$.removeToast(e.id))};return s&&(0,X.jsx)(tJ,{themeInstance:tq.NP,directionInstance:tZ.A,children:(0,X.jsx)(oO.A,{open:s,anchorOrigin:function(){switch(r){case"top-right":return{vertical:"top",horizontal:"right"};case"top-left":return{vertical:"top",horizontal:"left"};case"bottom-right":default:return{vertical:"bottom",horizontal:"right"};case"bottom-left":return{vertical:"bottom",horizontal:"left"}}}(),sx:{zIndex:Number.MAX_SAFE_INTEGER},children:(0,X.jsx)(ne.A,{flexDirection:"column",gap:2,"data-test":"dash-toasts",children:a.map(function(e){return(0,X.jsx)(oj.A,{in:e.show,mountOnEnter:!0,unmountOnExit:!0,children:(0,X.jsxs)(ob.Ay,{variant:"filled",onClose:function(){u(e)},severity:e.type,secondaryAction:e.link&&(0,X.jsx)(ov.A,{href:e.link.to,target:"_blank",children:oS(i,e.link.text,e.props)}),onMouseEnter:function(){oA.cancel(e)},onMouseLeave:function(){oA.start(e,o,!0)},children:[oA.start(e,o),e.title&&(0,X.jsx)(ow.A,{children:oS(i,e.title,e.props)}),oS(i,e.text,e.props)]})},e.id)})})})})},oP=function(e){var t=e.getCustomFallback,n=(0,et.zy)().pathname;return(0,X.jsx)(en.Suspense,{fallback:(null==t?void 0:t(n))||(0,X.jsx)(t5,{open:!0,bgStyle:"transparent",fullBackdrop:!1}),children:(0,X.jsx)(et.sv,{})})},oT=n(45175),ok=n(11783),oC=n(82075),oI=n(38860),oM=n(48975),oL=n(98181),oR=n(39807),o_=n(86845);function oD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||oU(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oB(e){return function(e){if(Array.isArray(e))return oD(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oU(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oU(e,t){if(e){if("string"==typeof e)return oD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oD(e,t)}}var oF=((E={}).ACD_CLIENT="acd-client-bucket-v",E.BACKOFFICE="backoffice-bucket-v",E.AUTH="auth-bucket-v",E.STORE="store-bucket-v",E.APPLICATION_CONSENT="application-consent-bucket-v",E.TRIAL="trial-bucket-v",E.ELEMENTOR_ONE="elementor-one-bucket-v",E),oz=((P={}).ACD_CLIENT="app-acd-client",P.BACKOFFICE="app-backoffice",P.AUTH="app-auth",P.STORE="app-store",P.APPLICATION_CONSENT="app-application-consent",P.TRIAL="app-trial",P.ELEMENTOR_ONE="app-elementor-one",P),oG="master",oW=function(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""},oH=function(e,t){document.cookie="".concat(e,"=").concat(t,";path=/")};let oV=function(e){var t=e.cookieName,n=e.appName,r=e.colorScheme,o=void 0===r?"light":r,i=e.bucketUrl,a=void 0===i?"https://storage.googleapis.com/static-platform-client-workspace-prod.new-prod.elementor.red":i,l=oN((0,nn.ok)(),2),s=l[0],c=l[1],u=oN((0,en.useState)(null),2),d=u[0],f=u[1],p=(0,en.useRef)(!1),h=oN((0,en.useState)([]),2),g=h[0],m=h[1],y=oN((0,en.useState)(new URLSearchParams(window.location.search).get(t)||oW(t)||oG),2),b=y[0],v=y[1];or(function(){s.delete(t),c(s)},!!s.get(t)),(0,en.useEffect)(function(){fetch("".concat(a,"/").concat(n,"/available-deployments.json")).then(function(e){return e.json()}).then(function(e){m(e.deployments)}).catch(function(e){m([oG]),console.error(e)})},[]),(0,en.useEffect)(function(){g.length&&!g.includes(b)&&(p.current=!0,v(oG))},[g,b]),(0,en.useEffect)(function(){var e=oW(t);if(e!==b){if(oH(t,b),!e&&b===oG)return;if(p.current){p.current=!1;return}window.location.reload()}},[b]);var w=(0,en.useCallback)(function(e){var n=new URL(window.location.href);return n.searchParams.set(t,e),n.toString()},[]);ea(function(){oW(t)!==b&&f({show:!0,title:"Deployment Changed",text:"Deployment has been changed in another tab. Please refresh the page.",btnText:"Refresh",handleClose:function(){f(null),window.location.reload()}})},6e4,(null==g?void 0:g.length)>0,!1);var j=oN((0,en.useState)(""),2),O=j[0],x=j[1],A=(0,en.useMemo)(function(){var e=oB(g||[]).filter(function(e){return e!==oG}).sort();return[oG].concat(oB(e)).filter(function(e){return e.toLowerCase().includes(O.toLowerCase())})},[g,O]);return(0,X.jsxs)(tJ,{themeInstance:tq.NP,directionInstance:tZ.A,colorScheme:o,children:[(0,X.jsxs)(oL.A,{color:"secondary",fullWidth:!0,"data-test":"deployment-form",sx:{minWidth:120},children:[(0,X.jsx)(oM.A,{id:"multi-deployment-label",children:"Deployment"}),(0,X.jsxs)(oR.A,{fullWidth:!0,onChange:function(e){v(e.target.value)},value:b,labelId:"multi-deployment-label",id:"multi-deployment-select",label:"Deployment",size:"tiny",variant:"outlined",renderValue:function(e){return(0,X.jsx)(t4.A,{"data-test":"deployment-value",children:e})},MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableAutoFocusItem:!0},sx:{maxWidth:300,".MuiIconButton-root":{display:"none"}},children:[(0,X.jsx)(oI.A,{onKeyDown:function(e){e.stopPropagation()},onKeyUp:function(e){e.stopPropagation()},children:(0,X.jsx)(nK,{placeholder:"Search deployment",alwaysOpen:!0,clearable:!1,fullWidth:!0,focused:!0,sx:{py:2,width:"100%"},value:O,onChange:function(e){return x(e.target.value)},colorScheme:o})}),A.map(function(e){return(0,X.jsx)(oT.A,{value:e,autoFocus:!1,onKeyDown:function(e){e.stopPropagation()},onKeyUp:function(e){e.stopPropagation()},children:(0,X.jsxs)(ne.A,{direction:"row",spacing:1,sx:{justifyContent:"space-between",alignItems:"center",width:"100%"},onClick:function(e){var t,n;(null==(n=e.target)||null==(t=n.dataset)?void 0:t.propagate)!=="true"&&e.stopPropagation()},"data-propagate":"true",children:[(0,X.jsx)(t4.A,{variant:"body2",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"data-test":"deployment-item-".concat(e),"data-propagate":"true",children:e}),(0,X.jsx)(nw,{value:w(e),size:"small",iconProps:{fontSize:"small",sx:{color:"dark"===o?"common.white":"common.black"}},onClick:function(e){e.stopPropagation()}})]})},e)}),0===A.length&&(0,X.jsx)(oI.A,{onKeyDown:function(e){e.stopPropagation()},onKeyUp:function(e){e.stopPropagation()},children:(0,X.jsx)(o_.A,{primary:"No results found",primaryTypographyProps:{color:"text.secondary",textAlign:"center"}})})]})]}),d&&(0,X.jsx)(t9,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},d))]})};function oK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oq=function(e){var t,n=e.show,r=e.cookieName,o=e.appName,i=e.extraMenuItems,a=e.colorScheme,l=e.bucketUrl,s=e.size,c=(t=(0,en.useState)(null),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return oK(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oK(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],d=c[1];return void 0!==n&&n?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ns.A,{onClick:function(e){d(e.currentTarget)},"aria-controls":u?"settings-menu":void 0,"aria-expanded":u?"true":void 0,"aria-haspopup":"true","data-test":"stg-settings-button",children:(0,X.jsx)(ok.A,{fontSize:void 0===s?"medium":s})}),(0,X.jsxs)(oC.A,{keepMounted:!0,id:"settings-menu",anchorEl:u,open:!!u,onClose:function(){d(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[(0,X.jsx)(oI.A,{sx:{px:2,py:1.5},children:"Multi-deployment environment settings"}),(0,X.jsx)(oT.A,{children:(0,X.jsx)(oV,{cookieName:r,appName:o,colorScheme:void 0===a?"light":a,bucketUrl:void 0===l?"https://storage.googleapis.com/static-platform-client-workspace-prod.new-prod.elementor.red":l})}),null==i?void 0:i.map(function(e){return(0,X.jsx)(oT.A,{children:e.component},e.key)})]})]}):null};function oZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o$=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};oZ(o$,"customNavigation","custom-navigation"),oZ(o$,"addNavItem","add-navigation-item"),oZ(o$,"addMobileNavComposition","add-mobile-nav-composition"),oZ(o$,"closeRootMobileNavFn","close-root-mobile-nav-fn"),oZ(o$,"removeNavItem","remove-navigation-item"),oZ(o$,"banners","banners"),oZ(o$,"horizontalLayoutBanner","horizontal-layout-banner"),oZ(o$,"mainWebsiteCardExt","main-website-card-extension"),oZ(o$,"openHostedWebsiteSubscriptionSelect","hosted-website-subscription-select"),oZ(o$,"openHostingPricingOrSubscriptionSelect","hosting-pricing-or-subscription-select"),oZ(o$,"freeDomainModal","free-domain-modal"),oZ(o$,"fullWidthPageHeader","fullWidthPageHeader"),oZ(o$,"msvOverviewManagementAndUpdated","msv-overview-management-and-updated"),oZ(o$,"msvOverviewMonitoring","msv-overview-monitoring"),oZ(o$,"injectPageToSSV","inject-page-to-ssv"),oZ(o$,"injectPageToSSVTrigger","inject-page-to-ssv-trigger"),oZ(o$,"rightDrawerSlot","right-drawer-slot"),oZ(o$,"clientInvitationAlerts","client-invitation-alerts"),oZ(o$,"manageReviewPromptBatchCompleted","manage-review-prompt-batch-completed"),n(32130);let oY=function(e){var t=e.children;return(0,X.jsx)(t3.A,{sx:{display:"flex",flexDirection:"column"},children:(0,X.jsx)(t3.A,{component:"main",sx:{flexGrow:1,backgroundColor:"background.default",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:t})})};var oQ=n(78061),oJ=n(11331);function oX(e,t,n){return(oX=o3()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&o1(o,n.prototype),o}).apply(null,arguments)}function o0(e){return(o0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o1(e,t){return(o1=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o2(e){var t="function"==typeof Map?new Map:void 0;return(o2=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return oX(e,arguments,o0(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o1(n,e)})(e)}function o3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(o3=function(){return!!e})()}var o4=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e,n){var r,o,i,a,l;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return o=t,i=[e],o=o0(o),r=function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,o3()?Reflect.construct(o,i||[],o0(this).constructor):o.apply(this,i)),l=void 0,(a="code")in r?Object.defineProperty(r,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[a]=l,r.name="APIError",r.code=n,r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o1(t,e),t}(o2(Error));function o6(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}var o5="/wp/v2",o8=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return e=[{key:"request",value:function(e){var t;return(t=function(e){var t,n,r,o,i,a,l,s,c,u,d,f,p,h,g,m;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(y){switch(y.label){case 0:t=e.path,r=void 0===(n=e.data)?void 0:n,i=void 0===(o=e.method)?eQ.POST:o,y.label=1;case 1:return y.trys.push([1,3,,4]),u=((null==(l=window)||null==(a=l.elementorOneSettingsData)?void 0:a.wpRestUrl)||"/wp-json/").replace(/\/$/,""),d=null==(c=window)||null==(s=c.elementorOneSettingsData)?void 0:s.wpRestNonce,f="".concat(u).concat(t),"GET"!==i||t.startsWith(o5)||(f=(0,oJ.F)(f,{sb_time:new Date().getTime()})),[4,(0,oQ.A)({url:f,method:i,data:r,headers:{"X-WP-Nonce":d}})];case 2:if(p=y.sent(),t.startsWith(o5)||void 0===p.success)return[2,p];if(!p.success)throw new o4((null==(h=p.data)?void 0:h.message)||"Unknown error");return[2,p.data];case 3:var b;if(b=g=y.sent(),null!=o4&&"undefined"!=typeof Symbol&&o4[Symbol.hasInstance]?!!o4[Symbol.hasInstance](b):b instanceof o4)throw g;throw new o4((null==g?void 0:g.message)||"Unknown error",null==g||null==(m=g.data)?void 0:m.status);case 4:return[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){o6(i,r,o,a,l,"next",e)}function l(e){o6(i,r,o,a,l,"throw",e)}a(void 0)})}).apply(this,arguments)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t,e),t}();function o7(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function o9(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){o7(i,r,o,a,l,"next",e)}function l(e){o7(i,r,o,a,l,"throw",e)}a(void 0)})}}n(18927);function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function it(e,t){return(it=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ir(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ir=function(){return!!e})()}function io(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var ii="/elementor-one/v1",ia=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=ie(e),function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,ir()?Reflect.construct(e,t||[],ie(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&it(n,e),t=[{key:"initConnect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"new";return o9(function(){var n,r,o;return io(this,function(i){return o={wp_rest:null==(r=window)||null==(n=r.elementorOneSettingsData)?void 0:n.wpRestNonce,clearSession:e},"update"===t&&(o.update_redirect_uri=!0),[2,o8.request({method:eQ.POST,path:"".concat(ii,"/connect/authorize"),data:o})]})})()}},{key:"getInstalledPlugins",value:function(){return o9(function(){return io(this,function(e){switch(e.label){case 0:return[4,o8.request({method:eQ.GET,path:"".concat(ii,"/plugins")})];case 1:return[2,e.sent()]}})})()}},{key:"installPlugin",value:function(e,t){return o9(function(){return io(this,function(n){switch(n.label){case 0:return[4,o8.request({method:eQ.POST,path:"".concat(ii,"/plugins"),data:{slug:e,status:t}})];case 1:return[2,n.sent()]}})})()}},{key:"activatePlugin",value:function(e){return o9(function(){return io(this,function(t){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/plugins/").concat(e,"/activate")})]})})()}},{key:"deactivatePlugin",value:function(e){return o9(function(){return io(this,function(t){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/plugins/").concat(e,"/deactivate")})]})})()}},{key:"upgradePlugin",value:function(e,t){return o9(function(){return io(this,function(n){switch(n.label){case 0:return[4,o8.request({method:eQ.POST,path:"".concat(ii,"/plugins/").concat(e,"/upgrade"),data:{status:t}})];case 1:return[2,n.sent()]}})})()}},{key:"migrate",value:function(e){return o9(function(){return io(this,function(t){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/plugins/").concat(e,"/migration/run")})]})})()}},{key:"detachFromOne",value:function(e){return o9(function(){return io(this,function(t){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/plugins/").concat(e,"/migration/rollback")})]})})()}},{key:"clearSession",value:function(){return o9(function(){var e,t;return io(this,function(n){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/connect/deactivate_and_disconnect"),data:{wp_rest:null==(t=window)||null==(e=t.elementorOneSettingsData)?void 0:e.wpRestNonce,clear_session:!0}})]})})()}},{key:"deactivateAndDisconnect",value:function(){return o9(function(){var e,t;return io(this,function(n){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/connect/deactivate_and_disconnect"),data:{wp_rest:null==(t=window)||null==(e=t.elementorOneSettingsData)?void 0:e.wpRestNonce}})]})})()}},{key:"deactivate",value:function(){return o9(function(){var e,t;return io(this,function(n){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/connect/deactivate"),data:{wp_rest:null==(t=window)||null==(e=t.elementorOneSettingsData)?void 0:e.wpRestNonce}})]})})()}},{key:"disconnect",value:function(){return o9(function(){var e,t;return io(this,function(n){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/connect/disconnect"),data:{wp_rest:null==(t=window)||null==(e=t.elementorOneSettingsData)?void 0:e.wpRestNonce}})]})})()}},{key:"reconnect",value:function(){return o9(function(){var e,t;return io(this,function(n){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/connect/reconnect"),data:{wp_rest:null==(t=window)||null==(e=t.elementorOneSettingsData)?void 0:e.wpRestNonce}})]})})()}},{key:"attachApps",value:function(e){return o9(function(){return io(this,function(t){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/apps/link"),data:{app_type:e}})]})})()}},{key:"detachApps",value:function(e){return o9(function(){return io(this,function(t){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/apps/unlink"),data:{app_type:e}})]})})()}},{key:"getPluginSettings",value:function(){return o9(function(){return io(this,function(e){return[2,o8.request({method:eQ.GET,path:"".concat(ii,"/settings")})]})})()}},{key:"updatePluginSettings",value:function(e){return o9(function(){return io(this,function(t){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/settings"),data:e})]})})()}},{key:"installTheme",value:function(e){return o9(function(){return io(this,function(t){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/themes"),data:{slug:e,status:"active"}})]})})()}},{key:"activateTheme",value:function(e){return o9(function(){return io(this,function(t){return[2,o8.request({method:eQ.POST,path:"".concat(ii,"/themes/").concat(e,"/activate")})]})})()}},{key:"updateSettings",value:function(e){return o9(function(){return io(this,function(t){return[2,o8.request({method:eQ.PUT,path:"".concat(ii,"/settings"),data:e})]})})()}},{key:"switchDomain",value:function(){return o9(function(){return io(this,function(e){switch(e.label){case 0:return[4,o8.request({method:eQ.POST,path:"".concat(ii,"/connect/switch-domain")})];case 1:return e.sent(),[2]}})})()}},{key:"getInternalLogs",value:function(){return o9(function(){var e;return io(this,function(t){switch(t.label){case 0:return[4,o8.request({method:eQ.GET,path:"".concat(ii,"/logs")})];case 1:return[2,null!=(e=t.sent().entries)?e:[]]}})})()}},{key:"clearInternalLogs",value:function(){return o9(function(){return io(this,function(e){switch(e.label){case 0:return[4,o8.request({method:eQ.DELETE,path:"".concat(ii,"/logs")})];case 1:return e.sent(),[2]}})})()}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n,t),n}(o8),il=(0,eE.Z0)({name:"sharedElementorOne",initialState:{pluginSettings:void 0,installProgress:{total:0,completed:0,inProgress:!1},siteScreenshot:void 0,internalLogs:[],dataFetched:{},loadingState:{},errorState:{}},reducers:{setPluginSettings:function(e,t){e.pluginSettings=t.payload},setDataFetched:function(e,t){e.dataFetched[t.payload.key]=t.payload.value},setSiteScreenshot:function(e,t){e.siteScreenshot=t.payload},setLoadState:function(e,t){e.loadingState[t.payload.key]=t.payload.value},setErrorState:function(e,t){e.errorState[t.payload.key]=t.payload.value},setInstallProgress:function(e,t){e.installProgress={total:t.payload.total,completed:0,inProgress:!0}},incrementInstallCompleted:function(e){e.installProgress.completed+=1,e.installProgress.completed>=e.installProgress.total&&(e.installProgress.inProgress=!1)},setInternalLogs:function(e,t){e.internalLogs=t.payload}}}),is=il.actions;function ic(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}il.reducer;var iu=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};function id(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}ic(iu,"setPluginSettings",is.setPluginSettings),ic(iu,"setDataFetched",is.setDataFetched),ic(iu,"setLoadState",is.setLoadState),ic(iu,"setErrorState",is.setErrorState),ic(iu,"setInstallProgress",is.setInstallProgress),ic(iu,"incrementInstallCompleted",is.incrementInstallCompleted),ic(iu,"setSiteScreenshot",is.setSiteScreenshot),ic(iu,"setInternalLogs",is.setInternalLogs);var ip=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};function ih(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function ig(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){ih(i,r,o,a,l,"next",e)}function l(e){ih(i,r,o,a,l,"throw",e)}a(void 0)})}}function im(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iy(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}id(ip,"selectState",function(e){return e.sharedElementorOne}),id(ip,"selectPluginSettings",(0,e7.Mz)(ip.selectState,function(e){return null==e?void 0:e.pluginSettings})),id(ip,"selectDataFetched",(0,e7.Mz)([ip.selectState,function(e,t){return t}],function(e,t){return(null==e?void 0:e.dataFetched[t])||void 0})),id(ip,"selectLoadingState",(0,e7.Mz)([ip.selectState,function(e,t){return t}],function(e,t){return(null==e?void 0:e.loadingState[t])||void 0})),id(ip,"selectErrorState",(0,e7.Mz)([ip.selectState,function(e,t){return t}],function(e,t){return(null==e?void 0:e.errorState[t])||void 0})),id(ip,"selectInstallProgress",(0,e7.Mz)([ip.selectState],function(e){return(null==e?void 0:e.installProgress)||{total:0,completed:0,inProgress:!1}})),id(ip,"selectSiteScreenshot",(0,e7.Mz)(ip.selectState,function(e){return null==e?void 0:e.siteScreenshot})),id(ip,"selectInternalLogs",(0,e7.Mz)(ip.selectState,function(e){var t;return null!=(t=null==e?void 0:e.internalLogs)?t:[]}));var ib=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};im(ib,"getPluginSettings",function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return function(t){return ig(function(){var n,r;return iy(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),e&&t(iu.setLoadState({key:"pluginSettings",value:!0})),[4,ia.getPluginSettings()];case 1:return n=o.sent(),t(iu.setPluginSettings(n)),[3,4];case 2:return r=o.sent(),t(e$.setAlertError({shouldRefresh:!0})),t(iu.setErrorState({key:"pluginSettings",value:null==r?void 0:r.message})),[3,4];case 3:return t(iu.setDataFetched({key:"pluginSettings",value:!0})),e&&t(iu.setLoadState({key:"pluginSettings",value:!1})),[7];case 4:return[2]}})})()}}),im(ib,"updatePluginSettings",function(e){return function(t){return ig(function(){var n,r;return iy(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),t(iu.setLoadState({key:"updatePluginSettings",value:!0})),[4,ia.updatePluginSettings(e)];case 1:return n=o.sent(),t(iu.setPluginSettings(n)),[3,4];case 2:return r=o.sent(),t(e$.setAlertError({shouldRefresh:!0})),t(iu.setErrorState({key:"updatePluginSettings",value:null==r?void 0:r.message})),[3,4];case 3:return t(iu.setLoadState({key:"updatePluginSettings",value:!1})),[7];case 4:return[2]}})})()}}),im(ib,"connect",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t){return ig(function(){var n,r;return iy(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),t(iu.setLoadState({key:"connect",value:!0})),[4,ia.initConnect(e)];case 1:return r=o.sent(),null==(n=window.open(r,"_self"))||n.focus(),[3,4];case 2:return o.sent(),t(e$.setAlertError({shouldRefresh:!0})),[3,4];case 3:return t(iu.setLoadState({key:"connect",value:!1})),[7];case 4:return[2]}})})()}}),im(ib,"disconnect",function(){return function(e){return ig(function(){return iy(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),e(iu.setLoadState({key:"disconnect",value:!0})),[4,ia.disconnect()];case 1:return t.sent(),e(ib.getPluginSettings()),[3,4];case 2:return t.sent(),e(e$.setAlertError({shouldRefresh:!0})),[3,4];case 3:return e(iu.setLoadState({key:"disconnect",value:!1})),[7];case 4:return[2]}})})()}}),im(ib,"attachApps",function(e){return function(t){return ig(function(){return iy(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,3,4]),t(iu.setLoadState({key:"attachApps-".concat(e),value:!0})),[4,ia.attachApps(e)];case 1:return[2,n.sent()];case 2:return n.sent(),t(e$.setAlertError({shouldRefresh:!0})),[2,void 0];case 3:return t(iu.setLoadState({key:"attachApps-".concat(e),value:!1})),[7];case 4:return[2]}})})()}}),im(ib,"detachApps",function(e){return function(t){return ig(function(){return iy(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,3,4]),t(iu.setLoadState({key:"detachApps-".concat(e),value:!0})),[4,ia.detachApps(e)];case 1:return[2,n.sent()];case 2:return n.sent(),t(e$.setAlertError({shouldRefresh:!0})),[2,void 0];case 3:return t(iu.setLoadState({key:"detachApps-".concat(e),value:!1})),[7];case 4:return[2]}})})()}}),im(ib,"getSiteScreenshot",function(e){return function(t){return ig(function(){var n;return iy(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),t(iu.setLoadState({key:"getSiteScreenshot",value:!0})),[4,"https://s.wordpress.com/mshots/v1/".concat(encodeURI(e),"?w=310&requeue=true")];case 1:return n=r.sent(),t(iu.setSiteScreenshot(n)),[3,4];case 2:return r.sent(),t(iu.setSiteScreenshot(null)),[3,4];case 3:return t(iu.setLoadState({key:"getSiteScreenshot",value:!1})),[7];case 4:return[2]}})})()}}),im(ib,"activateHelloTheme",function(e){return function(){return ig(function(){return iy(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,ia.activateTheme(e)];case 1:return t.sent(),[2,{success:!0,message:"siteIdentity.helloThemeActivated"}];case 2:return t.sent(),[2,{success:!1,message:"siteIdentity.helloThemeActivationFailed"}];case 3:return[2]}})})()}}),im(ib,"installHelloTheme",function(e){return function(t){return ig(function(){var n,r;return iy(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,5,6]),t(iu.setLoadState({key:"installHelloTheme",value:!0})),[4,ia.installTheme(e)];case 1:return o.sent(),t(ib.getPluginSettings(!1)),[2,{success:!0,message:"siteIdentity.helloThemeInstalled"}];case 2:if((null==(n=o.sent())?void 0:n.code)!==409)return[3,4];return[4,t(ib.activateHelloTheme(e))];case 3:return r=o.sent(),t(ib.getPluginSettings(!1)),[2,r];case 4:return t(e$.setAlertError({shouldRefresh:!0})),[2,{success:!1,message:"siteIdentity.helloThemeInstallationFailed"}];case 5:return t(iu.setLoadState({key:"installHelloTheme",value:!1})),[7];case 6:return[2]}})})()}}),im(ib,"getInternalLogs",function(){return function(e){return ig(function(){var t,n;return iy(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),e(iu.setLoadState({key:"internalLogs",value:!0})),[4,ia.getInternalLogs()];case 1:return t=r.sent(),e(iu.setInternalLogs(t)),[3,4];case 2:return n=r.sent(),e(iu.setErrorState({key:"internalLogs",value:null==n?void 0:n.message})),[3,4];case 3:return e(iu.setLoadState({key:"internalLogs",value:!1})),[7];case 4:return[2]}})})()}}),im(ib,"clearInternalLogs",function(){return function(e){return ig(function(){return iy(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),e(iu.setLoadState({key:"clearInternalLogs",value:!0})),[4,ia.clearInternalLogs()];case 1:return t.sent(),e(iu.setInternalLogs([])),[3,4];case 2:return t.sent(),e(e$.setAlertError({shouldRefresh:!0})),[3,4];case 3:return e(iu.setLoadState({key:"clearInternalLogs",value:!1})),[7];case 4:return[2]}})})()}}),im(ib,"switchDomain",function(){return function(e){return ig(function(){return iy(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),e(iu.setLoadState({key:"switchDomain",value:!0})),[4,ia.switchDomain()];case 1:return t.sent(),[3,4];case 2:return t.sent(),e(e$.setAlertError({shouldRefresh:!0})),[3,4];case 3:return e(iu.setLoadState({key:"switchDomain",value:!1})),[7];case 4:return[2]}})})()}});var iv=((T={}).ACTIVE="active",T.INACTIVE="inactive",T),iw=((k={}).ELEMENTOR="elementor",k.ELEMENTOR_PRO="elementor-pro",k.ELEMENTOR_ACCESS="pojo-accessibility",k.ELEMENTOR_IO="image-optimization",k.ELEMENTOR_MAILER="site-mailer",k.ELEMENTOR_AI="angie",k.ELEMENTOR_MANAGE="manage",k.ELEMENTOR_COOKIE_CONSENT="cookiez",k),ij={reduxSlice:il,reduxSelector:ip.selectPluginSettings,condition:function(e){if(void 0!==e)return ei.hasData(e)},dispatchAction:ib.getPluginSettings()},iO=n(25064),ix=n(78414),iA=function(){return(0,X.jsxs)(ne.A,{gap:2,children:[(0,X.jsx)(ne.A,{direction:"row",gap:2,alignItems:"center",px:4,py:3,sx:{backgroundColor:"action.hover"},children:(0,X.jsxs)(ne.A,{direction:"row",gap:2,alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,X.jsxs)(ne.A,{gap:1,children:[(0,X.jsx)(nr.A,{variant:"rounded",width:100,height:25}),(0,X.jsx)(nr.A,{variant:"text",width:200,height:25})]}),(0,X.jsxs)(ne.A,{direction:"row",gap:1,children:[(0,X.jsx)(nr.A,{variant:"rounded",width:100,height:36}),(0,X.jsx)(nr.A,{variant:"rounded",width:100,height:36})]})]})}),(0,X.jsx)(ix.A,{maxWidth:"lg",children:(0,X.jsxs)(ne.A,{sx:{px:4,pt:6,pb:4},gap:4,children:[(0,X.jsx)(nr.A,{variant:"rounded",width:280,height:35}),(0,X.jsxs)(ne.A,{direction:"row",gap:2,alignItems:"center",justifyContent:"space-between",mt:2.5,children:[(0,X.jsxs)(ne.A,{direction:"row",gap:1,alignItems:"center",children:[(0,X.jsx)(nr.A,{variant:"rounded",width:75,height:25}),(0,X.jsx)(nr.A,{variant:"rounded",width:75,height:25,sx:{display:{xs:"none",md:"block"}}}),(0,X.jsx)(nr.A,{variant:"rounded",width:75,height:25,sx:{display:{xs:"none",md:"block"}}}),(0,X.jsx)(nr.A,{variant:"rounded",width:75,height:25,sx:{display:{xs:"none",md:"block"}}})]}),(0,X.jsx)(nr.A,{variant:"rounded",width:100,height:25})]}),(0,X.jsx)(n2.A,{container:!0,spacing:2,rowSpacing:6,children:Array.from({length:8}).map(function(e,t){return(0,X.jsx)(n2.A,{item:!0,xs:12,sm:6,md:3,children:(0,X.jsx)(nr.A,{variant:"rounded",width:"100%",height:280})},"skeleton-".concat(t))})})]})})]})},iS=n(21613);function iE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){iE(e,t,n[t])})}return e}var iT=function(e){var t;return iE(t={marginLeft:"".concat(160,"px"),marginTop:"24px"},e.breakpoints.down(961),{marginLeft:"".concat(36,"px")}),iE(t,e.breakpoints.down(783),{marginTop:"12px",marginLeft:"".concat(0,"px")}),t},ik=function(){return(0,X.jsxs)(nj.A,{open:!0,maxWidth:"lg",fullWidth:!0,transitionDuration:0,PaperProps:{sx:{height:"100%",width:"100%",mx:{xs:2,md:4}}},slotProps:{backdrop:{sx:function(e){return iP({},iT(e))}}},sx:function(e){return iP({},iT(e))},children:[(0,X.jsx)(nS.A,{onClose:function(){},logo:!1,children:(0,X.jsx)(nE.A,{color:"text.primary",children:(0,X.jsx)(nr.A,{variant:"text",width:100})})}),(0,X.jsx)(nx.A,{dividers:!0,children:(0,X.jsxs)(ne.A,{sx:{px:{xs:0,md:4},py:2},gap:3,children:[(0,X.jsx)(nr.A,{variant:"text",width:200}),(0,X.jsx)(ne.A,{gap:3,children:Array.from({length:3}).map(function(e,t){return(0,X.jsxs)(ne.A,{gap:1,children:[(0,X.jsx)(nr.A,{variant:"text",width:150}),(0,X.jsx)(ri.A,{variant:"outlined",sx:{p:2},children:(0,X.jsx)(ne.A,{gap:1,divider:(0,X.jsx)(iO.A,{}),children:Array.from({length:3}).map(function(e,t){return(0,X.jsxs)(ne.A,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[(0,X.jsx)(nr.A,{variant:"text",width:200}),(0,X.jsx)(nr.A,{variant:"rounded",width:100,height:30})]},"category-item-".concat(t))})})})]},"category-".concat(t))})})]})})]})},iC=function(){return(0,X.jsx)(ix.A,{maxWidth:"lg",sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",pt:8,"@media (min-width: 600px)":{px:4}},children:(0,X.jsxs)(ne.A,{sx:{flexDirection:{xs:"column",md:"row"}},gap:4,children:[(0,X.jsxs)(ne.A,{gap:3,justifyContent:"center",sx:{flex:"0 0 50%",margin:"0 auto"},children:[(0,X.jsxs)(ne.A,{gap:1,children:[(0,X.jsx)(nr.A,{variant:"rounded",width:150,height:24}),(0,X.jsx)(nr.A,{variant:"rounded",width:180,height:24})]}),(0,X.jsxs)(ne.A,{gap:1,children:[(0,X.jsx)(nr.A,{variant:"text",width:165}),(0,X.jsx)(nr.A,{variant:"text",width:150})]}),(0,X.jsx)(nr.A,{variant:"rounded",height:36,sx:{maxWidth:{xs:"100%",md:400}}})]}),(0,X.jsxs)(ne.A,{sx:{flex:"0 0 50%"},gap:2,children:[(0,X.jsx)(ne.A,{gap:2,children:Array.from({length:6}).map(function(e,t){return(0,X.jsx)(ra.A,{variant:"outlined",sx:{width:"500px"},children:(0,X.jsx)(rl.A,{children:(0,X.jsxs)(ne.A,{direction:"row",alignItems:"center",gap:2,sx:{height:"68px"},children:[(0,X.jsx)(nr.A,{variant:"rectangular",width:24,height:24}),(0,X.jsxs)(ne.A,{width:"70%",children:[(0,X.jsx)(nr.A,{variant:"text",sx:{width:"50%"}}),(0,X.jsx)(nr.A,{variant:"text"})]}),(0,X.jsx)(nr.A,{variant:"rounded",width:72,height:24,sx:{marginLeft:"auto",borderRadius:"12px"}})]})})},t)})}),(0,X.jsx)(nr.A,{variant:"text",height:32,sx:{alignSelf:{xs:"center",md:"flex-end"},width:{xs:"70%",md:60}}})]})]})})};function iI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){iI(e,t,n[t])})}return e}var iL=function(e){var t;return iI(t={marginLeft:"".concat(160,"px"),marginTop:"24px"},e.breakpoints.down(961),{marginLeft:"".concat(36,"px")}),iI(t,e.breakpoints.down(783),{marginTop:"12px",marginLeft:"".concat(0,"px")}),t},iR={col1:{width:150},col2:{width:80},col3:{width:150},col4:{width:400}},i_=function(){return(0,X.jsxs)(nj.A,{open:!0,maxWidth:"lg",fullWidth:!0,transitionDuration:0,PaperProps:{sx:{height:"100%",width:"100%",mx:{xs:2,md:4}}},slotProps:{backdrop:{sx:function(e){return iM({},iL(e))}}},sx:function(e){return iM({},iL(e))},children:[(0,X.jsx)(nS.A,{onClose:function(){},logo:!1,children:(0,X.jsx)(nE.A,{color:"text.primary",children:(0,X.jsx)(nr.A,{variant:"text",width:100})})}),(0,X.jsx)(nx.A,{dividers:!0,children:(0,X.jsx)(n9,{columnStyles:iR})})]})},iD=function(e){var t,n,r,o=e.showHeader,i=(null==(r=window.location.hash)||null==(n=r.split)||null==(t=n.call(r,"#"))?void 0:t.length)>1?window.location.hash.split("#")[1]:"/home";return(0,X.jsx)(t3.A,{sx:{display:"flex",flexDirection:"column",backgroundColor:"background.default",overflowY:"auto","@media (max-width: 784px)":{top:"48px"}},children:(0,X.jsxs)(ne.A,{pt:2,children:[(void 0===o||o)&&(0,X.jsxs)(ne.A,{direction:"row",gap:1,alignItems:"center",borderBottom:"1px solid",borderColor:"divider",justifyContent:"space-between",pb:2,px:3,children:[(0,X.jsx)(nr.A,{variant:"rounded",width:150,height:25}),(0,X.jsxs)(ne.A,{direction:"row",gap:1,alignItems:"center",children:[(0,X.jsx)(nr.A,{variant:"circular",width:25,height:25,sx:{display:{xs:"none",md:"block"}}}),(0,X.jsx)(nr.A,{variant:"circular",width:25,height:25,sx:{display:{xs:"none",md:"block"}}}),(0,X.jsx)(nr.A,{variant:"circular",width:25,height:25,sx:{display:{xs:"none",md:"block"}}}),(0,X.jsx)(iO.A,{orientation:"vertical",flexItem:!0,sx:{display:{xs:"none",md:"block"}}}),(0,X.jsx)(nr.A,{variant:"rounded",width:100,height:25})]})]}),(0,iS.B6)("/home/onboarding",i)?(0,X.jsx)(iC,{}):(0,iS.B6)("/home/tool-manager?tab=system-logs",i)?(0,X.jsx)(i_,{}):(0,iS.B6)("/home/tool-manager",i)?(0,X.jsx)(ik,{}):(0,X.jsx)(iA,{})]})})},iN=[ij],iB=(0,en.memo)(function(e){var t=e.children;return(0,X.jsx)(rA,{reduxRules:iN,fallbackUI:(0,X.jsx)(iD,{}),children:t})}),iU=function(){var e=(0,el.Bd)(["common"]).t,t=eA(),n=eS(ip.selectPluginSettings),r=eS(function(e){return ip.selectLoadingState(e,"connect")}),o=function(e){t(ib.updatePluginSettings({dismissConnectAlert:!0}))};return n?(0,X.jsx)(ne.A,{children:!n.isConnected&&!n.dismissConnectAlert&&!n.isUrlMismatch&&(0,X.jsxs)(ob.Ay,{severity:"info",variant:"standard",onClose:function(){return o("connect")},"data-test":"alert-connect",children:[e("alerts.connect.description"),(0,X.jsx)(nt.A,{onClick:function(){if(!r){var n,o,i;ot.trackMixpanelElementorOneEvent(rZ,(n={},o=r2,i=e("alerts.connect.action",{lng:ed.EN}),o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n)),t(ib.connect())}},color:r?"text.disabled":"info.main",underline:"none",sx:{ml:1},"data-test":"alert-connect-action-link",children:e("alerts.connect.action")}),r&&(0,X.jsx)(t0.A,{size:14,sx:{ml:1},color:"secondary","data-test":"alert-connect-loader"})]})}):null},iF=n(78895);function iz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iG(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return iz(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iz(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var iW=function(e){return e>=600&&e<=784},iH=function(){var e=iG((0,en.useState)(function(){return window.innerWidth}),2),t=e[0],n=e[1],r=function(e){return e<=784?46:32},o=iG((0,en.useState)(function(){return r(window.innerWidth)}),2),i=o[0],a=o[1];return(0,en.useEffect)(function(){var e=function(){var e=window.innerWidth;n(e);var t=r(e),o=window.scrollY||window.pageYOffset;iW(e)?a(t):e<=784?o>=t?a(0):a(t-o):a(t)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]),(0,en.useEffect)(function(){var e=r(t);if(iW(t)||t>784)return void a(e);var n=function(){var t=window.scrollY||window.pageYOffset;t>=e?a(0):a(e-t)};return window.addEventListener("scroll",n,{passive:!0}),n(),function(){return window.removeEventListener("scroll",n)}},[t]),i},iV=function(){var e=(0,el.Bd)(["common"]).t,t=eS(ip.selectInstallProgress);return(on(function(e){t.inProgress&&e.preventDefault()}),t.inProgress)?(0,X.jsx)(ne.A,{children:(0,X.jsx)(ob.Ay,{severity:"info",variant:"standard","data-test":"alert-installing",children:e("alerts.installing",{current:t.completed,total:t.total})})}):null};function iK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iq=((C={}).CREATE="Create",C.OPTIMIZE="Optimize",C.MANAGE="Manage",C),iZ=(iK(W={},iw.ELEMENTOR,"APP_CORE"),iK(W,iw.ELEMENTOR_PRO,ez.PLUGIN),iK(W,iw.ELEMENTOR_AI,ez.APP_AI),iK(W,iw.ELEMENTOR_ACCESS,ez.APP_ACCESS),iK(W,iw.ELEMENTOR_IO,ez.APP_IO),iK(W,iw.ELEMENTOR_MAILER,ez.APP_MAILER),iK(W,iw.ELEMENTOR_MANAGE,ez.APP_MANAGE),iK(W,iw.ELEMENTOR_COOKIE_CONSENT,ez.APP_COOKIE),W),i$=((I={}).ACTIVATE="activate",I.DEACTIVATE="deactivate",I.DETACH="detach",I.MIGRATE="migrate",I),iY=((M={}).ALL="all",M.FEATURED="featured",M.CREATE="create",M.OPTIMIZE="optimize",M.MANAGE="manage",M),iQ=((L={}).ALL="all",L.ACTIVE="active",L.NOT_INSTALLED="notInstalled",L),iJ=((R={}).HOME="home",R.TOOL_MANAGER="toolManager",R);function iX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i0={plugins:[],toolbarState:(iX(H={},iJ.HOME,{filter:iY.FEATURED}),iX(H,iJ.TOOL_MANAGER,{filter:iQ.ALL}),H),onboardingInstallToolsState:(iX(V={},iw.ELEMENTOR,!0),iX(V,iw.ELEMENTOR_PRO,!0),iX(V,iw.ELEMENTOR_ACCESS,!0),iX(V,iw.ELEMENTOR_IO,!0),iX(V,iw.ELEMENTOR_MANAGE,!0),iX(V,iw.ELEMENTOR_MAILER,!0),iX(V,iw.ELEMENTOR_AI,!0),iX(V,iw.ELEMENTOR_COOKIE_CONSENT,!0),V),toolManagerToolsState:{},conflictsToSolve:[],isConlictsDialogOpen:!1,dataFetched:{},loadingState:{},errorState:{}};function i1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var i2=(0,eE.Z0)({name:"elementorOneHome",initialState:i0,reducers:{setToolbarState:function(e,t){e.toolbarState[t.payload.key]=i1({},e.toolbarState[t.payload.key]||{},t.payload.value)},setPlugins:function(e,t){e.plugins=t.payload,e.dataFetched.plugins=!0,e.loadingState.plugins=!1,e.errorState.plugins=""},setOnboardingInstallToolsState:function(e,t){e.onboardingInstallToolsState[t.payload.key]=t.payload.value},setToolManagerToolsState:function(e,t){e.toolManagerToolsState[t.payload.key]=i1({},e.toolManagerToolsState[t.payload.key]||{},t.payload.value)},setIsConflictsDialogOpen:function(e,t){e.isConlictsDialogOpen=t.payload},addConflictsToSolve:function(e,t){e.conflictsToSolve.push(t.payload)},resetConflictsToSolve:function(e){e.conflictsToSolve=[]},setBulkToolManagerToolsState:function(e,t){e.toolManagerToolsState=t.payload.toolsState.reduce(function(e,t){return e[t.appType]=t,e},i1({},e.toolManagerToolsState))},setDataFetched:function(e,t){e.dataFetched[t.payload.key]=t.payload.value},setLoadState:function(e,t){e.loadingState[t.payload.key]=t.payload.value},setErrorState:function(e,t){e.errorState[t.payload.key]=t.payload.value}}}),i3=i2.actions;function i4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}i2.reducer;var i6=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};i4(i6,"setToolbarState",i3.setToolbarState),i4(i6,"setToolManagerToolsState",i3.setToolManagerToolsState),i4(i6,"setBulkToolManagerToolsState",i3.setBulkToolManagerToolsState),i4(i6,"setDataFetched",i3.setDataFetched),i4(i6,"setLoadState",i3.setLoadState),i4(i6,"setErrorState",i3.setErrorState),i4(i6,"setPlugins",i3.setPlugins),i4(i6,"setOnboardingInstallToolsState",i3.setOnboardingInstallToolsState),i4(i6,"setIsConflictsDialogOpen",i3.setIsConflictsDialogOpen),i4(i6,"addConflictsToSolve",i3.addConflictsToSolve),i4(i6,"resetConflictsToSolve",i3.resetConflictsToSolve);var i5=((_={}).INSTALL="install",_.ACTIVATE="activate",_.UPDATE="update",_.MIGRATE="migrate",_);function i8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i7(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function i9(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){i7(i,r,o,a,l,"next",e)}function l(e){i7(i,r,o,a,l,"throw",e)}a(void 0)})}}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function at(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var an=function(e,t){return e.some(function(e){return e.slug===t.slug})?e.map(function(e){return e.slug===t.slug?t:e}):((function(e){if(Array.isArray(e))return i8(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 i8(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i8(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([t])},ar=new Set(Object.values(iw)),ao=function(e){return ar.has(e.slug)},ai=function(e){return{appType:iZ[e.slug],isActive:e.status===iv.ACTIVE,isInstalled:!0,updateRequired:null!==e.newVersion&&""!==e.newVersion,isMigrated:e.isMigrated,version:e.version,newVersion:e.newVersion,hasWpOnePackage:e.hasWpOnePackage}},aa=function(e,t,n){var r=an(e,t);n(i6.setPlugins(r));var o=r.filter(ao).map(ai);n(i6.setBulkToolManagerToolsState({toolsState:o}))},al=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};ae(al,"getInstalledPlugins",(0,eE.zD)("elementorOneHome/getInstalledTools",function(e,t){t.getState;var n=t.dispatch,r=t.rejectWithValue;return i9(function(){var e,t,o;return at(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),n(i6.setLoadState({key:"plugins",value:!0})),n(i6.setErrorState({key:"plugins",value:""})),[4,ia.getInstalledPlugins()];case 1:return e=i.sent(),n(i6.setPlugins(e)),t=e.filter(ao).map(ai),n(i6.setBulkToolManagerToolsState({toolsState:t})),[3,3];case 2:return o=i.sent(),n(i6.setPlugins([])),n(i6.setLoadState({key:"plugins",value:!1})),n(i6.setErrorState({key:"plugins",value:(null==o?void 0:o.message)||"Failed to fetch plugins"})),[2,r(o)];case 3:return[2]}})})()})),ae(al,"installPlugin",(0,eE.zD)("elementorOneHome/installAndActivatePlugin",function(e,t){var n=e.slug,r=e.status,o=t.getState,i=t.dispatch,a=t.rejectWithValue;return i9(function(){var e;return at(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),i(i6.setLoadState({key:"installingPlugin-".concat(n),value:!0})),[4,ia.installPlugin(n,r)];case 1:return e=t.sent(),aa(o().elementorOneHome.plugins,e,i),[2,e];case 2:return[2,a(t.sent())];case 3:return i(i6.setLoadState({key:"installingPlugin-".concat(n),value:!1})),[7];case 4:return[2]}})})()})),ae(al,"upgradePlugin",(0,eE.zD)("elementorOneHome/upgradePlugin",function(e,t){var n=e.slug,r=e.status,o=t.getState,i=t.dispatch,a=t.rejectWithValue;return i9(function(){var e;return at(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),i(i6.setLoadState({key:"upgradePlugin-".concat(n),value:!0})),[4,ia.upgradePlugin(n,r)];case 1:return e=t.sent(),aa(o().elementorOneHome.plugins,e,i),[2,e];case 2:return[2,a(t.sent())];case 3:return i(i6.setLoadState({key:"upgradePlugin-".concat(n),value:!1})),[7];case 4:return[2]}})})()})),ae(al,"migrateToOne",(0,eE.zD)("elementorOneHome/migratePlugin",function(e,t){var n=e.slug,r=t.getState,o=t.dispatch,i=t.rejectWithValue;return i9(function(){var e;return at(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),o(i6.setLoadState({key:"migrateToOne-".concat(n),value:!0})),[4,ia.migrate(n)];case 1:return e=t.sent(),aa(r().elementorOneHome.plugins,e,o),[2,e];case 2:return[2,i(t.sent())];case 3:return o(i6.setLoadState({key:"migrateToOne-".concat(n),value:!1})),[7];case 4:return[2]}})})()})),ae(al,"activatePlugin",(0,eE.zD)("elementorOneHome/activatePlugin",function(e,t){var n=e.slug,r=t.getState,o=t.dispatch,i=t.rejectWithValue;return i9(function(){var e;return at(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),o(i6.setLoadState({key:"activatePlugin-".concat(n),value:!0})),[4,ia.activatePlugin(n)];case 1:return e=t.sent(),aa(r().elementorOneHome.plugins,e,o),[2,e];case 2:return[2,i(t.sent())];case 3:return o(i6.setLoadState({key:"activatePlugin-".concat(n),value:!1})),[7];case 4:return[2]}})})()})),ae(al,"deactivatePlugin",(0,eE.zD)("elementorOneHome/deactivatePlugin",function(e,t){var n=e.slug,r=t.getState,o=t.dispatch,i=t.rejectWithValue;return i9(function(){var e;return at(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),o(i6.setLoadState({key:"deactivatePlugin-".concat(n),value:!0})),[4,ia.deactivatePlugin(n)];case 1:return e=t.sent(),aa(r().elementorOneHome.plugins,e,o),[2,e];case 2:return[2,i(t.sent())];case 3:return o(i6.setLoadState({key:"deactivatePlugin-".concat(n),value:!1})),[7];case 4:return[2]}})})()})),ae(al,"detachFromOne",(0,eE.zD)("elementorOneHome/detachFromOne",function(e,t){var n=e.slug,r=t.getState,o=t.dispatch,i=t.rejectWithValue;return i9(function(){var e;return at(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),o(i6.setLoadState({key:"detachFromOne-".concat(n),value:!0})),[4,ia.detachFromOne(n)];case 1:return e=t.sent(),aa(r().elementorOneHome.plugins,e,o),[2,e];case 2:return[2,i(t.sent())];case 3:return o(i6.setLoadState({key:"detachFromOne-".concat(n),value:!1})),[7];case 4:return[2]}})})()})),ae(al,"processPluginAction",(0,eE.zD)("elementorOneHome/processPlugin",function(e,t){var n=e.slug,r=e.actionType,o=(t.getState,t.dispatch);return t.rejectWithValue,i9(function(){return at(this,function(e){switch(e.label){case 0:switch(e.trys.push([0,,10,11]),o(i6.setLoadState({key:"processingPlugin-".concat(n),value:!0})),r){case i5.INSTALL:return[3,1];case i5.ACTIVATE:return[3,3];case i5.UPDATE:return[3,5];case i5.MIGRATE:return[3,7]}return[3,9];case 1:return[4,o(al.installPlugin({slug:n,status:iv.ACTIVE})).unwrap()];case 2:case 4:case 6:case 8:return e.sent(),[3,9];case 3:return[4,o(al.activatePlugin({slug:n})).unwrap()];case 5:return[4,o(al.upgradePlugin({slug:n,status:iv.ACTIVE})).unwrap()];case 7:return[4,o(al.migrateToOne({slug:n})).unwrap()];case 9:return[3,11];case 10:return o(i6.setLoadState({key:"processingPlugin-".concat(n),value:!1})),o(iu.incrementInstallCompleted()),[7];case 11:return[2]}})})()})),ae(al,"processPlugin",(0,eE.zD)("elementorOneHome/processPluginIncludingProCoreDependency",function(e,t){var n=e.slug,r=e.actionType,o=t.getState,i=t.dispatch;return t.rejectWithValue,i9(function(){var e,t,a;return at(this,function(l){switch(l.label){case 0:if(l.trys.push([0,6,,7]),n!==iw.ELEMENTOR_PRO)return[3,4];if(t=!!(e=o().elementorOneHome.plugins.find(function(e){return e.slug===iw.ELEMENTOR})),a=(null==e?void 0:e.status)===iv.ACTIVE,t)return[3,2];return i(i6.setLoadState({key:"processingPlugin-".concat(iw.ELEMENTOR_PRO),value:!0})),[4,i(al.processPluginAction({slug:iw.ELEMENTOR,actionType:i5.INSTALL})).unwrap()];case 1:return l.sent(),[3,4];case 2:if(a)return[3,4];return i(i6.setLoadState({key:"processingPlugin-".concat(iw.ELEMENTOR_PRO),value:!0})),[4,i(al.processPluginAction({slug:iw.ELEMENTOR,actionType:i5.ACTIVATE})).unwrap()];case 3:l.sent(),l.label=4;case 4:return[4,i(al.processPluginAction({slug:n,actionType:r})).unwrap()];case 5:return l.sent(),[3,7];case 6:return l.sent(),i(e$.setToast({type:"error",text:"Failed to process plugin ".concat(n)})),[3,7];case 7:return[2]}})})()}));var as=function(){var e=(0,el.Bd)(["common"]).t,t=eS(ip.selectPluginSettings),n=(0,et.Zp)();return(null==t?void 0:t.isUrlMismatch)?(0,X.jsx)(X.Fragment,{children:(0,X.jsx)(ne.A,{children:(0,X.jsxs)(ob.Ay,{severity:"error",variant:"standard","data-test":"alert-url-mismatch",children:[(0,X.jsx)(ow.A,{children:e("alerts.urlMismatch.title")}),e("alerts.urlMismatch.description"),(0,X.jsx)(nt.A,{onClick:function(){var t,r,o;ot.trackMixpanelElementorOneEvent(rZ,(t={},r=r2,o=e("alerts.urlMismatch.action",{lng:ed.EN}),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t)),n("/home/url-mismatch")},color:"info.main",underline:"none",sx:{ml:1},"data-test":"alert-url-mismatch-action-link",children:e("alerts.urlMismatch.action")})]})})}):null};function ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var au=function(e){var t;return ac(t={marginLeft:"".concat(160,"px"),marginTop:"24px"},e.breakpoints.down(961),{marginLeft:"".concat(36,"px")}),ac(t,e.breakpoints.down(783),{marginTop:"12px",marginLeft:"".concat(0,"px")}),t};function ad(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function af(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let ap=function(e){var t,n=e.onClose,r=(0,el.Bd)("home").t,o=(t=(0,en.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return ad(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ad(e,2)}}(t,2)||function(){throw 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(0,X.jsxs)(ne.A,{gap:3,alignItems:"center",children:[(0,X.jsx)(t4.A,{variant:"h3",sx:function(e){return af({},e.breakpoints.down("lg"),{"& br":{display:"none"}})},children:(0,X.jsx)(el.x6,{i18nKey:"welcomeModal.letsStart.title",t:r,components:{br:(0,X.jsx)("br",{})}})}),(0,X.jsx)(t4.A,{variant:"body1",sx:function(e){return af({},e.breakpoints.down("lg"),{"& br":{display:"none"}})},children:(0,X.jsx)(el.x6,{i18nKey:"welcomeModal.letsStart.description",t:r,components:{br:(0,X.jsx)("br",{})}})}),(0,X.jsx)(tX.A,{variant:"contained",color:"primary",size:"large",sx:{maxWidth:"320px",mt:1,width:"100%"},onClick:function(){a(!0),n()},loading:i,children:r("welcomeModal.letsStart.button")})]})};function ah(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}let ag=function(){var e,t,n,r=(e=(0,en.useState)(!1),function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return ah(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ah(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1];return(0,X.jsxs)(t3.A,{flex:1,alignSelf:(n="stretch","lg"in(t={xs:"center"})?Object.defineProperty(t,"lg",{value:n,enumerable:!0,configurable:!0,writable:!0}):t.lg=n,t),sx:{borderRadius:"16px",display:{xs:"none",sm:"flex"},justifyContent:"center",alignItems:"center",maxWidth:"800px",width:"100%"},children:[!o&&(0,X.jsx)(nr.A,{variant:"rounded",sx:{borderRadius:"8px",aspectRatio:16/9,width:"100%",height:"auto"}}),(0,X.jsx)("iframe",{src:"https://www.youtube.com/embed/VeTG1Y73s6M?autoplay=1&mute=1",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Elementor One Welcome Video",onLoad:function(){i(!0)},style:{borderRadius:"8px",aspectRatio:16/9,width:"100%",height:"auto",display:o?"block":"none"}})]})};function am(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ay(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function ab(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function av(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ab(e,t,n[t])})}return e}var aw="620px",aj=function(){var e,t=eA(),n=eS(function(e){return ip.selectPluginSettings(e)}),r=(e=(0,en.useState)(!1),function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return am(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return am(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1];(0,en.useEffect)(function(){if(n){if(n.isUrlMismatch)return void i(!1);i(!1===n.welcomeScreenCompleted)}},[n,null==n?void 0:n.welcomeScreenCompleted,null==n?void 0:n.isUrlMismatch]);var a=function(e,n){var r;return(r=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:if("backdropClick"===n||"escapeKeyDown"===n)return[2];e.label=1;case 1:return e.trys.push([1,4,,5]),[4,t(ib.getPluginSettings(!1))];case 2:return e.sent(),[4,t(ib.updatePluginSettings({welcomeScreenCompleted:!0}))];case 3:return e.sent(),i(!1),[3,5];case 4:return console.error("Failed to update welcome screen status:",e.sent()),i(!1),[3,5];case 5:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function a(e){ay(i,n,o,a,l,"next",e)}function l(e){ay(i,n,o,a,l,"throw",e)}a(void 0)})})()};return(0,X.jsxs)(nj.A,{open:o,fullWidth:!0,maxWidth:"xl",disableEnforceFocus:!0,onClose:a,PaperProps:{sx:{borderRadius:"16px",minHeight:aw}},slotProps:{backdrop:{sx:function(e){return av({},au(e))}}},sx:function(e){return av({},au(e))},keepMounted:!1,"data-test":"welcome-modal-elementor-one",children:[(0,X.jsx)(nS.A,{logo:!1,onClose:a}),(0,X.jsx)(nx.A,{sx:{p:4,pt:0,height:"100%"},children:(0,X.jsxs)(ne.A,{direction:ab({xs:"column"},"lg","row"),justifyContent:"space-evenly",alignItems:"center",alignContent:"center",gap:4,sx:{height:"100%",width:"100%",minHeight:aw},children:[(0,X.jsx)(ap,{onClose:a}),(0,X.jsx)(ag,{})]})})]})};function aO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ax=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")};aO(ax,"selectState",function(e){return e.elementorOneHome}),aO(ax,"selectToolbarState",(0,e7.Mz)([ax.selectState,function(e,t){return t}],function(e,t){return null==e?void 0:e.toolbarState[t]})),aO(ax,"selectToolManagerToolState",(0,e7.Mz)([ax.selectState],function(e){return(null==e?void 0:e.toolManagerToolsState)||{}})),aO(ax,"selectToolManagerToolStateByKey",(0,e7.Mz)([ax.selectState,function(e,t){return t}],function(e,t){return null==e?void 0:e.toolManagerToolsState[t]})),aO(ax,"selectDataFetched",(0,e7.Mz)([ax.selectState,function(e,t){return t}],function(e,t){return(null==e?void 0:e.dataFetched[t])||!1})),aO(ax,"selectLoadingState",(0,e7.Mz)([ax.selectState,function(e,t){return t}],function(e,t){return(null==e?void 0:e.loadingState[t])||!1})),aO(ax,"selectErrorState",(0,e7.Mz)([ax.selectState,function(e,t){return t}],function(e,t){return(null==e?void 0:e.errorState[t])||!1})),aO(ax,"selectPlugins",(0,e7.Mz)([ax.selectState],function(e){return(null==e?void 0:e.plugins)||[]})),aO(ax,"selectPluginBySlug",(0,e7.Mz)([ax.selectState,ax.selectPlugins,function(e,t){return t}],function(e,t,n){return t.find(function(e){return e.slug===n})||null})),aO(ax,"selectOnboardingInstallToolsState",(0,e7.Mz)([ax.selectState],function(e){return(null==e?void 0:e.onboardingInstallToolsState)||{}})),aO(ax,"selectIsConlictsDialogOpen",(0,e7.Mz)([ax.selectState],function(e){return(null==e?void 0:e.isConlictsDialogOpen)||!1})),aO(ax,"selectConflictsToSolve",(0,e7.Mz)([ax.selectState],function(e){return(null==e?void 0:e.conflictsToSolve)||[]})),aO(ax,"selectShouldPreventToolDeactivation",(0,e7.Mz)([ax.selectState,ax.selectToolManagerToolState,function(e,t){return t}],function(e,t,n){var r=Object.values(iw),o=t[n];if(!o)return!1;var i=null==e?void 0:e.plugins.filter(function(e){if(!r.includes(e.slug))return!1;var n=t[iZ[e.slug]];return(null==n?void 0:n.hasWpOnePackage)===!0}).length,a=null==e?void 0:e.plugins.filter(function(e){if(!r.includes(e.slug))return!1;var n=t[iZ[e.slug]];return(null==n?void 0:n.isActive)===!0}).length,l=1===i&&!0===o.hasWpOnePackage,s=1===a&&!0===o.isActive;return l||s}));var aA="/wp-admin/admin.php?page=elementor",aS="/wp-admin/admin.php?page=image-optimization-settings",aE="/wp-admin/admin.php?page=accessibility-settings",aP="/wp-admin/admin.php?page=site-mailer-settings",aT="/wp-admin/admin.php?page=manage-settings";function ak(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var aC=function(){var e,t=eA(),n=(0,et.Zp)(),r=(e=(0,nn.ok)(),function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return ak(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ak(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1],a=eS(function(e){return ax.selectPlugins(e)}),l=eS(function(e){return ax.selectLoadingState(e,"plugins")}),s=(0,en.useMemo)(function(){return!!o.get("open-tool")},[o,a]);(0,en.useEffect)(function(){s&&l&&t(e$.setSharedLoader({open:!0}))},[s,l]),or(function(){var e=o.get("open-tool");if(e){var n=a.find(function(t){return t.slug===e});n?u(n):c()}i({}),t(e$.setSharedLoader({open:!1}))},s&&a.length>0);var c=(0,en.useCallback)(function(){n("/home")},[n]),u=(0,en.useCallback)(function(e){if(e.status===iv.ACTIVE)switch(e.slug){case iw.ELEMENTOR:case iw.ELEMENTOR_PRO:window.open(aA,"_self");break;case iw.ELEMENTOR_ACCESS:window.open(aE,"_self");break;case iw.ELEMENTOR_IO:window.open(aS,"_self");break;case iw.ELEMENTOR_MAILER:window.open(aP,"_self");break;case iw.ELEMENTOR_MANAGE:window.open(aT,"_self");break;default:c()}else c()},[c])},aI="/home/url-mismatch",aM=function(e){var t=(0,et.Zp)(),n=(0,et.zy)();(0,en.useEffect)(function(){var r;(null==e?void 0:e.isUrlMismatch)&&((r=n.pathname)===aI||r.endsWith("/url-mismatch")||t(aI))},[null==e?void 0:e.isUrlMismatch,n.pathname,t])},aL=function(){var e=eA();(0,en.useEffect)(function(){var t=function(){"visible"===document.visibilityState&&e(ib.getPluginSettings(!1))};return document.addEventListener("visibilitychange",t),function(){document.removeEventListener("visibilitychange",t)}},[e])};function aR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return aR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aR(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var aD=function(){var e=a_((0,nn.ok)(),2),t=e[0],n=e[1],r=a_((0,en.useState)(!1),2),o=r[0],i=r[1],a=(0,el.Bd)("common").t;(0,en.useEffect)(function(){t.has("connect-fail")&&(i(!0),n({},{replace:!0}))},[t,n]);var l=(0,en.useCallback)(function(){i(!1)},[]);return o?(0,X.jsx)(t9,{show:!0,title:a("connectErrors.title"),text:(0,X.jsx)(el.x6,{t:a,i18nKey:"connectErrors.message",components:{br:(0,X.jsx)("br",{})}}),btnText:a("connectErrors.okBtn"),handleClose:l}):null};function aN(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}let aB=function(){aC();var e,t=iH(),n=(0,et.Zp)(),r=eS(function(e){return ip.selectPluginSettings(e)}),o=eA();aM(r),aL();var i=eO(),a=null==(e=window.elementorOneSettingsData)?void 0:e.packageVersion;return(0,en.useEffect)(function(){o(al.getInstalledPlugins())},[o]),(0,en.useEffect)(function(){if(r){var e=em.getSupportedLanguage(r.userLocale);e&&ew.changeLanguage(e)}},[r]),or(function(){var e,t;ot.startTracking(null==(t=window)||null==(e=t.elementorOneSettingsData)?void 0:e.shareUsageData)},null==r?void 0:r.isConnected),(0,X.jsxs)(iF.A6,{env:"production",language:i,isRTL:null==r?void 0:r.isRTL,children:[(0,X.jsxs)(oY,{children:[(0,X.jsx)(iF.js,{onDisconnect:function(){var e;return(e=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:return[4,o(ib.getPluginSettings())];case 1:return e.sent(),[4,o(ib.updatePluginSettings({dismissConnectAlert:!1}))];case 2:return e.sent(),o(al.getInstalledPlugins()),n("/home/capabilities"),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){aN(i,r,o,a,l,"next",e)}function l(e){aN(i,r,o,a,l,"throw",e)}a(void 0)})})()},appSettings:{slug:"elementor-home",version:null!=a?a:"1.0.0"},multiDelpoymentSlot:(0,X.jsx)(tJ,{colorScheme:"dark",children:(0,X.jsx)(oq,{cookieName:oF.ELEMENTOR_ONE,appName:oz.ELEMENTOR_ONE,colorScheme:"dark",size:"small",bucketUrl:"https://storage.googleapis.com/static-platform-client-elementor-one-prod.new-prod.elementor.red"})}),containerSx:{top:t}}),(0,X.jsx)(iU,{}),(0,X.jsx)(iV,{}),(0,X.jsx)(as,{}),(0,X.jsx)(oP,{getCustomFallback:function(){return(0,X.jsx)(iD,{showHeader:!1})}}),(0,X.jsx)(oE,{}),(0,X.jsx)(oo,{}),(0,X.jsx)(aD,{}),(0,X.jsx)(oy,{})]}),(0,X.jsx)(aj,{})]})};var aU=n(96013),aF=n(70748),az=n(52421),aG=n(69482),aW=["Hello Biz","Hello Elementor","Hello Commerce"];function aH(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function aV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){aV(e,t,n[t])})}return e}var aq=function(){var e,t,n,r,o=eA(),i=(0,el.Bd)("home").t,a=tN().createToast,l=null==(n=window.elementorOneSettingsData)?void 0:n.elementorNewPostNonce,s=null==(r=window.elementorOneSettingsData)?void 0:r.elementorEditSiteNonce,c=eS(ip.selectPluginSettings),u=(null==c?void 0:c.siteUrl)||"",d=eS(function(e){return ax.selectPluginBySlug(e,iw.ELEMENTOR)}),f=eS(function(e){return ax.selectPluginBySlug(e,iw.ELEMENTOR_PRO)}),p=eS(function(e){return ip.selectLoadingState(e,"installHelloTheme")}),h=eS(function(e){return ip.selectLoadingState(e,"pluginSettings")}),g=(0,en.useMemo)(function(){return null==c||!c.activeTheme||!aW.includes(null==c?void 0:c.activeTheme)},[null==c?void 0:c.activeTheme]),m=function(e,t){ot.trackMixpanelElementorOneEvent(rH,aV({},r2,t)),window.open(e,"_blank"),b.close()},y=function(e,t){return"".concat(u).concat(e).concat(t?"&_wpnonce=".concat(t):"")};(0,en.useEffect)(function(){(null==c?void 0:c.siteUrl)&&o(ib.getSiteScreenshot(null==c?void 0:c.siteUrl))},[null==c?void 0:c.siteUrl,o]);var b=(0,az.A)({variant:"popover",popupId:"edit-site-menu"});return(0,X.jsxs)(ne.A,{sx:{backgroundColor:"action.hover",py:3,px:4,flexDirection:{xs:"column",sm:"row",md:"row"},alignItems:{xs:"flex-start",sm:"flex-start",md:"center"}},direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,X.jsx)(ne.A,{direction:"row",gap:2,alignItems:"center",children:h?(0,X.jsxs)(ne.A,{children:[(0,X.jsx)(nr.A,{variant:"text",width:200,height:48,"data-test":"one-home-site-identity-name-skeleton"}),(0,X.jsx)(nr.A,{variant:"text",width:300,height:24,"data-test":"one-home-site-identity-url-skeleton"})]}):(0,X.jsxs)(ne.A,{children:[(0,X.jsx)(t4.A,{variant:"h5",color:"text.primary",children:null==c?void 0:c.siteName}),(0,X.jsxs)(ne.A,{direction:"row",alignItems:"center",gap:1,flexWrap:"wrap",sx:{display:{xs:"none",sm:"none",md:"flex"}},children:[(0,X.jsxs)(ne.A,{direction:"row",alignItems:"center",gap:1,flexShrink:0,children:[(0,X.jsx)(t4.A,{variant:"body2",color:"text.primary",noWrap:!0,children:i("siteIdentity.activeTheme")}),(0,X.jsx)(t4.A,{variant:"body2",color:"text.tertiary",noWrap:!0,children:null==c?void 0:c.activeTheme})]}),g&&(0,X.jsx)(tX.A,{color:"info",size:"small",disabled:p,loading:p,onClick:function(){var e;return(e=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return ot.trackMixpanelElementorOneEvent(rH,aV({},r2,"get_hello")),[4,o(ib.installHelloTheme("hello-elementor"))];case 1:return a({type:(e=t.sent()).success?"success":"error",text:i(e.message||"")}),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){aH(i,r,o,a,l,"next",e)}function l(e){aH(i,r,o,a,l,"throw",e)}a(void 0)})})()},loadingPosition:"end","data-test":"one-home-get-hello-elementor-button",children:i("siteIdentity.getHelloElementor")})]})]})}),d&&d.status===iv.ACTIVE&&(0,X.jsxs)(ne.A,{direction:"row",gap:1,sx:{pt:{xs:1,sm:0},width:{xs:"100%",sm:"auto"}},children:[(0,X.jsx)(tX.A,{color:"secondary",endIcon:(0,X.jsx)(aU.A,{}),sx:{width:{xs:"100%",sm:"auto"}},onClick:function(){ot.trackMixpanelElementorOneEvent(rH,aV({},r2,"editor_dashboard")),window.open(y(aA),"_blank")},"data-test":"one-home-go-to-site-setup-button",children:i("siteIdentity.goToSiteSetup")}),(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(aF.A,{slotProps:{caretButton:aK({},(0,aG.cO)(b)),mainButton:{fullWidth:!0}},sx:{width:{xs:"100%",sm:"auto"}},"data-test":"one-home-edit-site-button",onClick:function(){return m(y("/wp-admin/admin.php?action=elementor_edit_website_redirect",s),"edit_site")},children:i("siteIdentity.editSite")}),(0,X.jsxs)(oC.A,(e=aK({},(0,aG.NA)(b)),t=t={anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[(0,X.jsx)(oT.A,{onClick:function(){return m(y("/wp-admin/edit.php?action=elementor_new_post&post_type=page",l),"add_a_page")},children:i("siteIdentity.editSiteMenu.addPage")}),(0,X.jsx)(oT.A,{onClick:function(){return m(y("/wp-admin/edit.php?action=elementor_new_post&post_type=post",l),"add_a_blog_post")},children:i("siteIdentity.editSiteMenu.addBlogPost")}),f&&f.status===iv.ACTIVE&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(oT.A,{onClick:function(){return m(y("/wp-admin/admin.php?page=elementor-app#/site-editor/templates/header",l),"create_a_header")},children:i("siteIdentity.editSiteMenu.createHeader")}),(0,X.jsx)(oT.A,{onClick:function(){return m(y("/wp-admin/admin.php?page=elementor-app#/site-editor/templates/footer",l),"create_a_footer")},children:i("siteIdentity.editSiteMenu.createFooter")})]})]},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e))]})]})]})};let aZ=function(){return(0,X.jsxs)(ne.A,{children:[(0,X.jsx)(aq,{}),(0,X.jsx)(ix.A,{maxWidth:"lg",children:(0,X.jsx)(et.sv,{})})]})};var a$=n(47757),aY=n(93301),aQ=n(6530),aJ=function(e){var t=e.filterOptions,n=e.selectedFilter,r=e.filterCounts,o=e.onFilterChange,i=e.gaDataAttributes,a=e.dataTestPrefix,l=(0,aQ.A)(),s=(0,aY.A)(l.breakpoints.down("md")),c=function(e){var t,n=null!=(t=null==r?void 0:r[e.countKey])?t:0;return"".concat(e.label," (").concat(n,")")},u=function(e,t,n){var r,i;e.preventDefault(e),o(t),null==(i=e.target)||null==(r=i.parentNode)||r.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},d=function(e,t,n){9!==e.keyCode&&13===e.keyCode&&u(e,t,n)};return(0,X.jsx)(ne.A,{direction:"row",gap:1,flexWrap:s?"nowrap":"wrap",justifyContent:"flex-start",sx:{overflowX:s?"auto":"visible",overflowY:"hidden",paddingBottom:+!!s,mt:"4px !important"},children:t.map(function(e){return(0,X.jsx)(a$.A,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({label:c(e),clickable:!0,onKeyDown:function(t){return d(t,e.value,e.gaLabel)},color:n===e.value?"secondary":"default",variant:"filled",shape:"rounded",onClick:function(){return o(e.value)},"data-test":"".concat(a,"-filter-").concat(e.value)},i),e.value)})})},aX=n(17343);function a0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){a0(e,t,n[t])})}return e}function a2(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}let a3=function(e){var t=e.selectedFilter,n=e.onFilterChange,r=e.filterCounts,o=(0,el.Bd)("home").t,i=(0,en.useMemo)(function(){return[{label:o("capabilities.filters.all"),value:iY.ALL,gaLabel:"All",countKey:"all"},{label:o("capabilities.filters.featured"),value:iY.FEATURED,gaLabel:"Featured",countKey:"featured"},{label:o("capabilities.filters.create"),value:iY.CREATE,gaLabel:"Create",countKey:"create"},{label:o("capabilities.filters.optimize"),value:iY.OPTIMIZE,gaLabel:"Optimize",countKey:"optimize"},{label:o("capabilities.filters.manage"),value:iY.MANAGE,gaLabel:"Manage",countKey:"manage"}]},[o]),a=(0,et.Zp)(),l=(0,aY.A)(function(e){return e.breakpoints.down("md")}),s=(0,az.A)({variant:"popover",popupId:"filter-menu"}),c=function(e,t){var n,o=null!=(n=null==r?void 0:r[e])?n:0;return"".concat(t," (").concat(o,")")},u=function(e){n(e),s.close()},d=(0,en.useMemo)(function(){return i.find(function(e){return e.value===t})},[i,t]);return(0,X.jsx)(ne.A,{mt:2.5,gap:4,children:(0,X.jsxs)(ne.A,{direction:"row",justifyContent:"space-between",children:[l?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(tX.A,a2(a1({variant:"contained",color:"secondary",size:"medium",endIcon:(0,X.jsx)(aX.A,{}),"data-test":"one-home-filter-mobile-button"},(0,aG.cO)(s)),{children:d?c(d.countKey,d.label):""})),(0,X.jsx)(oC.A,a2(a1({},(0,aG.NA)(s)),{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:i.map(function(e){return(0,X.jsx)(oT.A,{selected:t===e.value,onClick:function(){return u(e.value)},children:c(e.countKey,e.label)},e.value)})}))]}):(0,X.jsx)(aJ,{filterOptions:i,selectedFilter:t,filterCounts:r,onFilterChange:n,dataTestPrefix:"one-home"}),(0,X.jsx)(tX.A,{variant:"outlined",color:"secondary",size:"small",startIcon:(0,X.jsx)(ok.A,{}),onClick:function(){ot.trackMixpanelElementorOneEvent(rH,a0({},r2,"tool_manager")),a("./tool-manager")},"data-test":"one-home-tool-manager-button",children:o("capabilities.toolManager")})]})})};var a4=n(63218),a6=((D={}).CREATE="Create",D.OPTIMIZE="Optimize",D.MANAGE="Manage",D),a5=((N={}).INSTALLED="installed",N.FREE="free",N.PRO="pro",N),a8=n(66899),a7=n(91937),a9=n(80187);function le(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}var lt=function(e){var t=e.open,n=e.onClose,r=e.title,o=e.description,i=e.mediaUrl,a=e.cardType,l=e.onClick,s=e.slug,c=(0,el.Bd)("home").t,u=(0,aY.A)(function(e){return e.breakpoints.down("md")});return(0,X.jsxs)(nj.A,{keepMounted:!1,open:t,onClose:n,fullWidth:!0,maxWidth:"md",disableEnforceFocus:!0,"data-test":"one-capabilities-learn-more-modal-".concat(s||"default"),children:[(0,X.jsx)(nS.A,{logo:!1,sx:{display:"flex",justifyContent:"space-between",width:"100% !important"},onClose:n,children:(0,X.jsx)(nE.A,{children:r})}),(0,X.jsx)(nx.A,{sx:{pt:0,pb:0},children:(0,X.jsxs)(ne.A,{direction:"row",alignItems:"center",gap:3,sx:{width:"100%"},children:[!u&&(0,X.jsx)(t3.A,{sx:{width:"50%"},children:(0,X.jsx)("img",{style:{width:"100%",height:"100%",objectFit:"contain"},src:i,alt:"one-learn-more-modal-img"})}),(0,X.jsx)(t3.A,{sx:{width:u?"100%":"50%"},children:(0,X.jsx)(t4.A,{variant:"body1",children:(0,a9.Ay)(o)})})]})}),(0,X.jsx)(nO.A,{children:(0,X.jsx)(tX.A,{onClick:function(e){var t;return(t=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return[4,l(e)];case 1:return t.sent(),n(),[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){le(i,r,o,a,l,"next",e)}function l(e){le(i,r,o,a,l,"throw",e)}a(void 0)})})()},variant:"contained",color:a===a5.PRO?"promotion":"primary",startIcon:a===a5.PRO?(0,X.jsx)(a8.A,{}):void 0,"data-test":"one-capabilities-learn-more-action-button-".concat(s||"default"),children:c(s&&a!==a5.INSTALLED?a===a5.PRO?"capabilities.learnMore.upgrade":"capabilities.learnMore.install":"capabilities.learnMore.open")})})]})};function ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lr(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var li=function(e){var t,n,r,o=e.tag,i=e.title,a=e.description,l=e.img,s=e.link,c=e.linkPro,u=e.proUpgradeTrackingUrl,d=e.learnMore,f=e.slug,p=e.isNew,h=e.wpNonceLink,g=void 0!==h&&h,m=eA(),y=eS(function(e){return ax.selectPluginBySlug(e,f)}),b=eS(ip.selectPluginSettings),v=(null==b?void 0:b.siteUrl)||"",w=f===iw.ELEMENTOR_MANAGE?null==(n=window.elementorOneSettingsData)?void 0:n.manageSiteOverviewRedirectNonce:(null==(r=window.elementorOneSettingsData)?void 0:r.elementorSiteSettingsRedirectNonce)||"",j=(0,el.Bd)("home").t,O=(t=(0,en.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return ln(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ln(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=O[0],A=O[1],S=(0,en.useMemo)(function(){return(null==b?void 0:b.isConnected)||!1},[null==b?void 0:b.isConnected]),E=(0,en.useMemo)(function(){return null!==y},[y]),P=(0,en.useMemo)(function(){return(null==y?void 0:y.status)===iv.ACTIVE},[y]),T=eS(function(e){return!!f&&ax.selectLoadingState(e,"processingPlugin-".concat(f))}),k=eS(function(e){return ax.selectLoadingState(e,"plugins")}),C=eS(function(e){return ax.selectDataFetched(e,"plugins")}),I=(0,en.useMemo)(function(){return T||!C&&k},[T,C,k]),M=(0,en.useMemo)(function(){return!f||E&&P?a5.INSTALLED:f!==iw.ELEMENTOR_PRO||S?a5.FREE:a5.PRO},[E,f,S,P]),L=function(e){var t;ot.trackMixpanelElementorOneEvent(rV,(lo(t={},r2,e),lo(t,r3,o),lo(t,r4,i),t))},R=(0,en.useMemo)(function(){if(!f)return s;var e=s;return(f===iw.ELEMENTOR_PRO&&(null==y?void 0:y.isConnected)&&P&&(e=c||s),f!==iw.ELEMENTOR_MANAGE||(null==y?void 0:y.isConnected))?"".concat(v).concat(e).concat(g?"&_wpnonce=".concat(w):""):aT},[g,s,v,w,f,null==y?void 0:y.isConnected,c,P]),_=function(e){var t;return(t=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:if(e.preventDefault(),e.stopPropagation(),!f)return window.open(R,"_blank"),[2];switch(M){case a5.INSTALLED:return[3,1];case a5.PRO:return[3,2];case a5.FREE:return[3,3]}return[3,7];case 1:return L("open"),window.open(R,"_self"),[2];case 2:return L("go_pro"),window.open(u||"https://elementor.com/pricing-plugin","_self"),[2];case 3:if(!(E&&!P))return[3,5];return[4,m(al.processPlugin({slug:f,actionType:i5.ACTIVATE})).unwrap()];case 4:return t.sent(),[2];case 5:return[4,m(al.processPlugin({slug:f,actionType:i5.INSTALL})).unwrap()];case 6:return t.sent(),L("add_for_free"),[3,7];case 7:return[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){lr(i,r,o,a,l,"next",e)}function l(e){lr(i,r,o,a,l,"throw",e)}a(void 0)})})()};return(0,X.jsxs)(ra.A,{onClick:function(){L("card"),A(!0)},variant:"outlined","data-test":"one-capabilities-card-".concat(f||"default"),sx:{borderRadius:2,height:"100%",cursor:"pointer",display:"flex",flexDirection:"column","&:hover":{borderColor:"common.black"}},children:[(0,X.jsxs)(t3.A,{sx:{position:"relative"},children:[(0,X.jsx)(a4.A,{component:"img",src:l,sx:{height:140,objectFit:"cover"}}),(0,X.jsx)(a$.A,{label:o,size:"small",sx:{position:"absolute",top:12,left:12}})]}),(0,X.jsxs)(rl.A,{sx:{flex:1,pt:2},children:[(0,X.jsx)(ne.A,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",children:(0,X.jsxs)(ne.A,{direction:"row",alignItems:"center",gap:1,mb:1,children:[(0,X.jsx)(t4.A,{variant:"subtitle1",fontWeight:600,children:i}),p&&(0,X.jsx)(a$.A,{label:j("capabilities.isNew"),size:"small",color:"info",variant:"standard"})]})}),(0,X.jsx)(t4.A,{variant:"body2",color:"text.secondary",children:a})]}),(0,X.jsx)(a7.A,{children:(0,X.jsx)(tX.A,{onClick:_,size:"small",variant:"outlined",color:M===a5.PRO?"promotion":"secondary",startIcon:M===a5.PRO?(0,X.jsx)(a8.A,{}):void 0,loading:I,loadingPosition:"start","data-test":"one-capabilities-card-action-button-".concat(f||"default"),children:function(){if(T)return j("capabilities.inProgressButton");if(I)return"";switch(M){case a5.INSTALLED:return j("capabilities.openButton");case a5.FREE:return j("capabilities.addForFreeButton");case a5.PRO:return j("capabilities.goProButton")}}()})}),(0,X.jsx)(lt,{open:x,onClose:function(e){null==e||e.stopPropagation(),A(!1)},title:i,description:d.description,mediaUrl:d.mediaUrl,cardType:M,onClick:_,slug:f})]})},la=function(e){var t=e.cards;return(0,X.jsx)(n2.A,{container:!0,spacing:2,rowSpacing:6,children:t.map(function(e){return(0,X.jsx)(n2.A,{item:!0,xs:12,sm:6,md:3,children:(0,X.jsx)(li,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e))},e.title)})})},ll=[{tag:a6.CREATE,slug:iw.ELEMENTOR,title:"Site settings",description:"Set global site rules to keep every page consistent",img:"https://assets.elementor.com/elementor-one/v1/images/siteSettings.png",isFeatured:!1,link:"/wp-admin/admin.php?action=elementor_site_settings_redirect",wpNonceLink:!0,learnMore:{description:'\n <div>\n Site settings let you define global rules so your site looks and behaves\n consistently across every page.\n <br /><br /> Set things once, and they apply everywhere,\n keeping your design system aligned and easy to maintain.\n </div>\n <br />\n <div><strong>With Site Settings, you can control:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Design system: Global fonts and colors</li>\n <li>Theme styles: Typography, buttons, images, forms, header, and footer</li>\n <li>Site settings: Identity, background, layout, lightbox, page transitions, and custom CSS</li>\n </ul>\n ',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/siteSettingsModal.png"},order:4,orderByTag:1},{tag:a6.CREATE,slug:iw.ELEMENTOR,title:"Site logo",description:"Upload your logo to shape your brand identity",img:"https://assets.elementor.com/elementor-one/v1/images/siteLogo.png",isFeatured:!0,link:"/wp-admin/admin.php?action=elementor_site_settings_redirect&active-tab=settings-site-identity",wpNonceLink:!0,learnMore:{description:"\n <div>\n Site logo lets you manage your logo from one central place and apply it\n consistently across your entire site.\n </div>\n <br />\n <div>\n Control how your logo looks and behaves everywhere it appears, including\n its size, alignment, link behavior, and placement in headers, footers, and templates.\n </div>\n ",mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/siteLogoModal.png"},order:5,orderByTag:2,orderFeatured:5},{tag:a6.CREATE,slug:iw.ELEMENTOR,title:"Global styles ",description:"Manage all fonts and colors from one place to keep your brand consistent",img:"https://assets.elementor.com/elementor-one/v1/images/globalStylesCard.png",isFeatured:!0,link:"/wp-admin/admin.php?action=elementor_site_settings_redirect&active-tab=global-colors",wpNonceLink:!0,learnMore:{description:'\n <div>\n Global styles let you define your site\u2019s visual system in one central place.\n <br /><br />\n Update styles once, and changes apply across your entire site,\n keeping everything consistent and easy to refine.\n </div>\n <br />\n <div><strong>With Global Styles, you can control:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Typography: Headings, text, links, and buttons</li>\n <li>Colors: Brand colors, text, backgrounds, and accents</li>\n <li>Buttons & forms: Styles, states, and spacing</li>\n <li>Layout defaults: Spacing across templates</li>\n </ul>\n',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/globalStylesModal.png"},order:6,orderByTag:3,orderFeatured:6},{tag:a6.CREATE,slug:iw.ELEMENTOR_PRO,title:"Theme builder",description:"Control your site\u2019s global parts with one simple, visual builder",img:"https://assets.elementor.com/elementor-one/v1/images/themeBuilder.png",isFeatured:!0,link:"/wp-admin/admin.php?page=elementor-app#/site-editor",proUpgradeTrackingUrl:"http://go.elementor.com/go-pro-upgrade-one-home-themebuilder",learnMore:{description:'\n <div>\n Theme builder lets you design and control your site\u2019s core templates from one\n central place. <br /><br/> Any update you make is applied automatically wherever the template\n is used, helping you keep your site consistent while moving faster and staying\n in control.\n </div>\n <br />\n <div><strong>With Theme Builder, you can design:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Headers & footers</li>\n <li>Single posts & pages</li>\n <li>Archive pages</li>\n <li>Dynamic templates using conditions and display rules</li>\n </ul>\n ',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/themeBuilderModal.png"},order:7,orderByTag:4,orderFeatured:7},{tag:a6.CREATE,slug:iw.ELEMENTOR_PRO,title:"Popups",description:"Create unlimited custom popups to boost engagement and conversion",img:"https://assets.elementor.com/elementor-one/v1/images/popups.png",isFeatured:!0,link:"/wp-admin/admin.php?page=e-popups",linkPro:"/wp-admin/edit.php?post_type=elementor_library&tabs_group=popup&elementor_library_type=popup",proUpgradeTrackingUrl:"https://go.elementor.com/go-pro-upgrade-one-home-popups",learnMore:{description:'\n <div>\n Create popups with complete design freedom. Start from professionally designed,\n conversion-focused templates, or build your own from scratch.\n </div>\n <br />\n <div><strong>With Popups, you can:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Design freely: Full control over layout, content, and styling</li>\n <li>Use proven templates: High-converting designs for promotions, forms, and announcements</li>\n <li>Show them at the right moment: Smart triggers and display conditions based on user behavior, pages, and devices</li>\n </ul>\n',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/popupsModal.png"},order:8,orderByTag:5,orderFeatured:8},{tag:a6.OPTIMIZE,slug:iw.ELEMENTOR,title:"Site performance",description:"Boost site speed with easy, effective performance tools",img:"https://assets.elementor.com/elementor-one/v1/images/sitePerformance.png",isFeatured:!1,link:"/wp-admin/admin.php?page=elementor-settings#tab-performance",learnMore:{description:'\n <div>\n Performance settings help you improve your site\u2019s loading speed by optimizing\n how assets are loaded and delivered.\n <br /><br /> Choose the options that best match your\n site\u2019s needs to reduce load times and create a faster experience for visitors.\n </div>\n <br />\n <div><strong>With Performance settings, you can:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Optimize CSS loading: Control how styles are delivered for better performance</li>\n <li>Improve image loading: Prioritize key images and lazy-load content below the fold</li>\n <li>Reduce unused scripts: Prevent unnecessary Gutenberg assets from loading</li>\n <li>Control caching: Define how long elements are cached for faster repeat visits</li>\n </ul>\n',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/performanceModal.png"},order:9,orderByTag:1},{tag:a6.OPTIMIZE,slug:iw.ELEMENTOR_IO,title:"Image optimization",description:"Speed up your site by compressing your images",img:"https://assets.elementor.com/elementor-one/v1/images/imageOptimization.png",isFeatured:!0,link:aS,learnMore:{description:'\n <div>\n Image optimization automatically improves your site\u2019s loading speed by optimizing\n images without sacrificing quality. \n <br /><br /> Smaller, faster images help your pages load\n quicker, improve Core Web Vitals, and create a smoother experience for your visitors.\n </div>\n <br />\n <div><strong>With Image Optimization, you can:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Automatically optimize uploaded images for the best balance of quality and performance</li>\n <li>Resize and compress images to reduce file size</li>\n <li>Serve appropriately sized images to different devices</li>\n <li>Improve LCP and overall page speed without manual effort</li>\n </ul>\n ',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/imageOptimizationModal.png"},order:10,orderByTag:2,orderFeatured:9},{tag:a6.OPTIMIZE,slug:iw.ELEMENTOR_ACCESS,title:"Accessibility",description:"Create a more inclusive site and strengthen your user experience",img:"https://assets.elementor.com/elementor-one/v1/images/accessibility.png",isFeatured:!0,link:aE,learnMore:{description:'\n <div>\n Accessibility helps you make your website usable for everyone, without redesigning\n your site from scratch.\n <br /><br /> It identifies accessibility issues and guides you toward\n fixes that improve compliance, usability, and overall experience.\n </div>\n <br />\n <div><strong>With Accessibility, you can:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Scan your site for accessibility issues and get clear, actionable recommendations</li>\n <li>Improve readability and navigation for keyboard and assistive technology users</li>\n <li>Support accessibility standards such as WCAG and ADA</li>\n <li>Create a more inclusive experience for all visitors</li>\n </ul>\n ',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/accessibilityModal.png"},order:11,orderByTag:3,orderFeatured:10},{tag:a6.MANAGE,slug:iw.ELEMENTOR_MAILER,title:"Email deliverability",description:"Deliver WordPress emails reliably without SMTP configuration",img:"https://assets.elementor.com/elementor-one/v1/images/emailDeliverability.png",isFeatured:!1,link:aP,learnMore:{description:'\n <div>\n Email deliverability helps ensure that emails sent from your site actually reach\n inboxes instead of spam folders.\n <br /><br /> It improves how your site sends emails by using\n reliable infrastructure and proper authentication behind the scenes.\n </div>\n <br />\n <div><strong>With Email Deliverability, you can:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Increase inbox placement for form submissions, notifications, and system emails</li>\n <li>Reduce spam issues caused by server or configuration problems</li>\n <li>Send emails more reliably using a trusted delivery setup</li>\n <li>Improve trust and consistency for emails sent from your domain</li>\n </ul>\n ',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/emailDeliverabilityModal.png"},order:12,orderByTag:1},{tag:a6.CREATE,slug:iw.ELEMENTOR_PRO,title:"Custom icons",description:"Custom Icons",img:"https://assets.elementor.com/elementor-one/v1/images/customIcons.png",isFeatured:!1,link:"/wp-admin/admin.php?page=e-custom-icons",linkPro:"/wp-admin/edit.php?post_type=elementor_icons",proUpgradeTrackingUrl:"http://go.elementor.com/go-pro-upgrade-one-home-customicons",learnMore:{description:"\n <div>\n Custom icons let you use your own icon sets across your site, so your design\n isn\u2019t limited to built-in libraries.\n <br /><br />\n Upload custom icon packs created with popular generators like Fontello,\n IcoMoon, or Fontastic, and use them just like any other icon in Elementor.\n <br /><br />\n Once uploaded, your custom icons are available in the icon library and can be\n used in any widget that supports icons, helping you keep your design consistent,\n branded, and unique.\n </div>\n ",mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/customIconsModal.png"},order:13,orderByTag:6},{tag:a6.CREATE,slug:iw.ELEMENTOR_PRO,title:"Custom fonts",description:"Upload custom fonts and use them across Elementor for a unique look",img:"https://assets.elementor.com/elementor-one/v1/images/customFonts.png",isFeatured:!1,link:"/wp-admin/admin.php?page=e-custom-fonts",linkPro:"/wp-admin/edit.php?post_type=elementor_font",proUpgradeTrackingUrl:"https://go.elementor.com/go-pro-upgrade-one-home-customfonts",learnMore:{description:"\n <div>\n <strong>Custom fonts</strong> let you use your own icon sets across your site, so your design\n isn\u2019t limited to built-in libraries.\n <br /><br />\n Upload custom icon packs created with popular generators like Fontello,\n IcoMoon, or Fontastic, and use them just like any other icon in Elementor.\n <br /><br />\n Once uploaded, your custom icons are available in the icon library and can be\n used in any widget that supports icons, helping you keep your design consistent,\n branded, and unique.\n </div>\n ",mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/customFontsModal.png"},order:14,orderByTag:7},{tag:a6.CREATE,slug:iw.ELEMENTOR_PRO,title:"Custom code",description:"Add custom HTML, CSS, and JS to extend your site\u2019s features",img:"https://assets.elementor.com/elementor-one/v1/images/customCode.png",isFeatured:!1,link:"/wp-admin/admin.php?page=e-custom-code",linkPro:"/wp-admin/edit.php?post_type=elementor_snippet",proUpgradeTrackingUrl:"https://go.elementor.com/go-pro-upgrade-one-home-customcode",learnMore:{description:'\n <div>\n Custom code lets you extend your site beyond the editor by adding your own HTML,\n CSS, and JavaScript. Use it to integrate third-party tools, add tracking scripts,\n or implement advanced functionality without modifying theme files.\n </div>\n <br />\n <div><strong>With Custom Code, you can:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Add scripts like analytics, pixels, or integrations</li>\n <li>Enhance interactivity with custom JavaScript</li>\n <li>Apply advanced styling using CSS snippets</li>\n <li>Control where code runs across your site</li>\n </ul>\n ',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/customCodeModal.png"},order:15,orderByTag:8},{tag:a6.MANAGE,slug:iw.ELEMENTOR_PRO,title:"Submissions",description:"Access, track, and analyze form submissions in one simple place",img:"https://assets.elementor.com/elementor-one/v1/images/submissions.png",isFeatured:!1,link:"/wp-admin/admin.php?page=e-form-submissions",proUpgradeTrackingUrl:"https://go.elementor.com/go-pro-upgrade-one-home-submissions",learnMore:{description:'\n <div>\n Submissions give you a central place to view and manage all form entries\n collected on your site.\n </div>\n <br />\n <div><strong>With Submissions, you can:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>View and manage form entries in one organized inbox</li>\n <li>Analyze submission data to gain insights and track performance</li>\n <li>Keep everything in WordPress</li>\n </ul>\n ',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/submissionsModal.png"},order:16,orderByTag:2,orderFeatured:11},{tag:a6.MANAGE,slug:iw.ELEMENTOR,title:"Role manager",description:"Define who can edit what in Elementor to protect your site's content",img:"https://assets.elementor.com/elementor-one/v1/images/roleManager.png",isFeatured:!1,link:"/wp-admin/admin.php?page=elementor-role-manager",learnMore:{description:'\n <div>\n Role Manager lets you control who can access and edit content in Elementor.\n <br /><br /> Define permissions by role to protect your site while giving each user exactly\n the level of access they need.\n </div>\n <br />\n <div><strong>With Role Manager, you can:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Limit editing capabilities in the Elementor Editor by user role</li>\n <li>Control access to specific features and content</li>\n <li>Collaborate safely with clients, editors, or teammates</li>\n <li>Go beyond WordPress defaults with Elementor-specific permissions</li>\n </ul>\n ',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/roleManagerModal.png"},order:17,orderByTag:3},{tag:a6.CREATE,title:"Site planner",description:"Plan your site and create wireframes in minutes with AI",img:"https://assets.elementor.com/elementor-one/v1/images/sitePlanner.png",isFeatured:!0,link:"https://planner.elementor.com/home.html",learnMore:{description:'\n <div>\n Site Planner helps you turn an idea into a clear website structure in minutes.\n <br /><br /> Answer a few questions about your site, and get a ready-to-use plan with pages,\n sections, and content suggestions.\n </div>\n <br />\n <div><strong>With Site Planner, you can:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Generate a complete site structure tailored to your goals</li>\n <li>Get page and section suggestions that match your site\u2019s purpose</li>\n <li>Start building faster, without staring at a blank canvas</li>\n <li>Edit and refine the plan before moving into design</li>\n </ul>\n ',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/sitePlannerModal.png"},order:18,orderByTag:9,orderFeatured:4},{tag:a6.MANAGE,slug:iw.ELEMENTOR_MANAGE,title:"Site management",description:"Connect, monitor, and optimize all of your sites in one place. ",img:"https://assets.elementor.com/elementor-one/v1/images/manageCard.png",isFeatured:!0,link:"/wp-admin/admin.php?action=manage_site_overview_redirect",wpNonceLink:!0,isNew:!0,learnMore:{description:'\n <div>\n Manage all your WordPress sites in one place - and stop wasting time on manual updates.\n <br /><br />Automate updates, security, and backups across every site, from a single dashboard.\n </div>\n <br />\n <div><strong>With Site management, you can:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Automate plugin updates across all your sites</li>\n <li>Protect your work with daily backups</li>\n <li>Monitor performance and spot speed issues early</li>\n <li>Get real-time alerts when a site goes down</li>\n <li>Restore any site in one click</li>\n <li>Collaborate easily with teammates and clients using multi-user access</li>\n\n </ul>\n ',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/manageModal.png"},order:1,orderByTag:4,orderFeatured:1},{tag:a6.CREATE,slug:iw.ELEMENTOR_AI,title:"Angie - Native AI for WordPress",description:"Build your own widgets and custom functionality with Agentic AI",img:"https://assets.elementor.com/elementor-one/v1/images/angieCard.png",isFeatured:!0,isNew:!0,link:"/wp-admin/admin.php?page=angie-app",learnMore:{description:'\n <div>\n Angie is your native AI assistant for WordPress. Turn ideas into pages, blocks,\n and custom functionality using natural language.\n <br /><br /> Describe what you want to build, and Angie creates it for you,\n from interactive widgets to full page layouts.\n </div>\n <br />\n <div><strong>With Angie, you can:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Build custom widgets and interactive elements from a prompt</li>\n <li>Generate pages and sections with AI-powered content</li>\n <li>Create custom functionality without writing code</li>\n <li>Iterate quickly by describing changes in plain language</li>\n </ul>\n ',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/angieModal.png"},order:2,orderByTag:10,orderFeatured:2},{tag:a6.OPTIMIZE,slug:iw.ELEMENTOR_COOKIE_CONSENT,title:"Cookie consent",description:"Add a cookie banner to your site and manage visitor consent",img:"https://assets.elementor.com/elementor-one/v1/images/cookieConsentCard.png",isFeatured:!0,isNew:!0,link:"/wp-admin/admin.php?page=cookiez-settings",learnMore:{description:'\n <div>\n Cookie consent helps you handle privacy regulations for your website, without needing to figure out the legal and technical details yourself. \n <br /><br /> It scans your site for cookies, blocks scripts until visitors make a choice and keeps a record of every consent decision.\n </div>\n <br />\n <div><strong>With cookie consent, you can:</strong></div>\n <ul style="margin-top: 0; padding-left: 30px; list-style-type: disc;">\n <li>Add a consent banner that supports GDPR, CCPA, and other privacy regulations</li>\n <li>Scan your site to detect and categorize cookies automatically</li>\n <li>Block scripts from running until visitors accept, reject, or set their preferences</li>\n <li>Store consent records so you have proof if you ever need it</li>\n <li>Customize the banner to match your site\u2019s look and feel</li>\n </ul>\n ',mediaUrl:"https://assets.elementor.com/elementor-one/v1/images/cookieConsentModal.png"},order:3,orderByTag:4,orderFeatured:3}],ls=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ll,t=eA(),n=eS(function(e){return ax.selectToolbarState(e,iJ.HOME)}),r=(0,en.useMemo)(function(){return(null==n?void 0:n.filter)||iY.FEATURED},[n]),o=(0,en.useCallback)(function(e){var n,r;t(i6.setToolbarState({key:iJ.HOME,value:{filter:e}})),ot.trackMixpanelElementorOneEvent(rK,(n={},(r=rX)in n?Object.defineProperty(n,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[r]=e,n))},[t]),i=(0,en.useMemo)(function(){return{all:e.length,featured:e.filter(function(e){return e.isFeatured}).length,create:e.filter(function(e){return e.tag===a6.CREATE}).length,optimize:e.filter(function(e){return e.tag===a6.OPTIMIZE}).length,manage:e.filter(function(e){return e.tag===a6.MANAGE}).length}},[e]),a=(0,en.useMemo)(function(){switch(r){case iY.ALL:return e.sort(function(e,t){var n,r;return(null!=(n=e.order)?n:0)-(null!=(r=t.order)?r:0)});case iY.FEATURED:return e.filter(function(e){return e.isFeatured}).sort(function(e,t){var n,r;return(null!=(n=e.orderFeatured)?n:0)-(null!=(r=t.orderFeatured)?r:0)});case iY.CREATE:return e.filter(function(e){return e.tag===a6.CREATE}).sort(function(e,t){var n,r;return(null!=(n=e.orderByTag)?n:0)-(null!=(r=t.orderByTag)?r:0)});case iY.OPTIMIZE:return e.filter(function(e){return e.tag===a6.OPTIMIZE}).sort(function(e,t){var n,r;return(null!=(n=e.orderByTag)?n:0)-(null!=(r=t.orderByTag)?r:0)});case iY.MANAGE:return e.filter(function(e){return e.tag===a6.MANAGE}).sort(function(e,t){var n,r;return(null!=(n=e.orderByTag)?n:0)-(null!=(r=t.orderByTag)?r:0)});default:return e}},[e,r]);return{selectedFilter:r,setSelectedFilter:o,filterCounts:i,filteredCards:a}};function lc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let lu=function(){var e=(0,el.Bd)("home").t,t=ls(),n=t.selectedFilter,r=t.setSelectedFilter,o=t.filterCounts,i=t.filteredCards,a=eS(ip.selectPluginSettings);return(0,en.useEffect)(function(){var e;ot.trackMixpanelElementorOneEvent(rG,(lc(e={},rJ,"Capabilities"),lc(e,r0,null==a?void 0:a.isConnected),e))},[null==a?void 0:a.isConnected]),(0,X.jsxs)(ne.A,{sx:{px:4,pt:6,pb:4},gap:4,children:[(0,X.jsx)(na,{title:e("capabilities.greeting"),titleVariant:"h4"}),(0,X.jsx)(a3,{selectedFilter:n,onFilterChange:r,filterCounts:o}),(0,X.jsx)(la,{cards:i}),(0,X.jsx)(oP,{getCustomFallback:function(){return null}})]})};function ld(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lf="APP_CORE",lp=(ld(K={},iw.ELEMENTOR,{title:"onBoardingInstall.tools.editorCore.title",description:"onBoardingInstall.tools.editorCore.description"}),ld(K,iw.ELEMENTOR_PRO,{title:"onBoardingInstall.tools.editorPro.title",description:"onBoardingInstall.tools.editorPro.description"}),ld(K,iw.ELEMENTOR_AI,{title:"onBoardingInstall.tools.ai.title",description:"onBoardingInstall.tools.ai.description"}),ld(K,iw.ELEMENTOR_ACCESS,{title:"onBoardingInstall.tools.accessibility.title",description:"onBoardingInstall.tools.accessibility.description"}),ld(K,iw.ELEMENTOR_IO,{title:"onBoardingInstall.tools.imageOptimizer.title",description:"onBoardingInstall.tools.imageOptimizer.description"}),ld(K,iw.ELEMENTOR_MANAGE,{title:"onBoardingInstall.tools.manage.title",description:"onBoardingInstall.tools.manage.description"}),ld(K,iw.ELEMENTOR_MAILER,{title:"onBoardingInstall.tools.siteMailer.title",description:"onBoardingInstall.tools.siteMailer.description"}),ld(K,iw.ELEMENTOR_COOKIE_CONSENT,{title:"onBoardingInstall.tools.cookieConsent.title",description:"onBoardingInstall.tools.cookieConsent.description",beta:!0}),K),lh={categories:[iq.CREATE,iq.OPTIMIZE,iq.MANAGE],categoriesTranslations:(ld(q={},iq.CREATE,"tools.create.title"),ld(q,iq.OPTIMIZE,"tools.optimize.title"),ld(q,iq.MANAGE,"tools.manage.title"),q),tools:(ld(Z={},iq.CREATE,[{appType:"APP_CORE",category:iq.CREATE,titleKey:"tools.create.items.core.title",slug:iw.ELEMENTOR},{appType:ez.PLUGIN,category:iq.CREATE,titleKey:"tools.create.items.pro.title",slug:iw.ELEMENTOR_PRO,featuresKeys:["tools.create.items.pro.features.themeBuilder","tools.create.items.pro.features.popups","tools.create.items.pro.features.commerce","tools.create.items.pro.features.savedTemplates","tools.create.items.pro.features.templateCategories","tools.create.items.pro.features.starterTemplates","tools.create.items.pro.features.customFonts","tools.create.items.pro.features.customIcons","tools.create.items.pro.features.customCode","tools.create.items.pro.features.customCss"]},{appType:ez.APP_AI,category:iq.CREATE,titleKey:"tools.create.items.ai.title",slug:iw.ELEMENTOR_AI}]),ld(Z,iq.OPTIMIZE,[{appType:ez.APP_ACCESS,category:iq.OPTIMIZE,titleKey:"tools.optimize.items.accessibility.title",slug:iw.ELEMENTOR_ACCESS},{appType:ez.APP_IO,category:iq.OPTIMIZE,titleKey:"tools.optimize.items.io.title",slug:iw.ELEMENTOR_IO}]),ld(Z,iq.MANAGE,[{appType:ez.APP_MANAGE,category:iq.MANAGE,titleKey:"tools.manage.items.manage.title",slug:iw.ELEMENTOR_MANAGE},{appType:ez.APP_MAILER,category:iq.MANAGE,titleKey:"tools.manage.items.email.title",slug:iw.ELEMENTOR_MAILER},{appType:ez.APP_COOKIE,category:iq.MANAGE,titleKey:"tools.manage.items.cookieConsent.title",slug:iw.ELEMENTOR_COOKIE_CONSENT}]),Z)},lg="tools",lm="error-handling",ly="system-logs",lb=function(e){return e===lg||e===lm||e===ly},lv=n(24199),lw=n(14034),lj=n(98326),lO=n(61571);function lx(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function lA(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){lx(i,r,o,a,l,"next",e)}function l(e){lx(i,r,o,a,l,"throw",e)}a(void 0)})}}function lS(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var lE=function(e){var t=e.appType,n=e.slug,r=e.trackActionConfirmed,o=eA(),i=(0,el.Bd)("tool-manager").t,a=eS(ax.selectToolManagerToolState),l=eS(function(e){return ax.selectToolManagerToolStateByKey(e,t)}),s=eS(function(e){return ax.selectLoadingState(e,"toolManagerToolsState-".concat(t))}),c=eS(ip.selectPluginSettings),u=eS(function(e){return ax.selectShouldPreventToolDeactivation(e,t)}),d=(0,en.useMemo)(function(){var e=function(e){return!!((null==e?void 0:e.isActive)&&(null==e?void 0:e.isInstalled))},n=e(a[lf]);return t===ez.PLUGIN&&((null==c||!c.isConnected)&&(null==l||!l.isInstalled)||!n)||t===lf&&(!Object.values(a).some(function(e){return e.appType!==lf&&e.isInstalled})||e(a[ez.PLUGIN])&&n&&!(null==l?void 0:l.isMigrated))},[a,t,c,null==l?void 0:l.isMigrated,null==l?void 0:l.isInstalled]),f=(0,en.useCallback)(function(e){o(i6.setLoadState({key:"toolManagerToolsState-".concat(t),value:e}))},[o,t]),p=(0,en.useCallback)(function(e){return lA(function(){return lS(this,function(t){switch(t.label){case 0:return f(!0),[4,e()];case 1:return t.sent(),f(!1),[2]}})})()},[f]),h=(0,en.useCallback)(function(){return lA(function(){return lS(this,function(e){switch(e.label){case 0:return[4,p(function(){return lA(function(){return lS(this,function(e){switch(e.label){case 0:return[4,o(al.installPlugin({slug:n,status:iv.ACTIVE}))];case 1:if("rejected"===e.sent().meta.requestStatus)return o(e$.setToast({type:"error",text:i("actions.failedAction.install")})),[2];return r("add"),[2]}})})()})];case 1:return e.sent(),[2]}})})()},[o,n,i,r,p]),g=(0,en.useCallback)(function(e){return lA(function(){var t;return lS(this,function(a){switch(a.label){case 0:return[4,p(function(){return lA(function(){var a;return lS(this,function(s){switch(s.label){case 0:switch(e){case i$.ACTIVATE:return[3,1];case i$.DEACTIVATE:return[3,3];case i$.DETACH:return[3,5];case i$.MIGRATE:return[3,7]}return[3,9];case 1:return[4,o(al.activatePlugin({slug:n}))];case 2:case 4:case 6:case 8:return t=s.sent(),[3,9];case 3:if(u&&(null==l?void 0:l.isActive))return[2];return[4,o(al.deactivatePlugin({slug:n}))];case 5:return[4,o(al.detachFromOne({slug:n}))];case 7:return[4,o(al.migrateToOne({slug:n}))];case 9:if((null==t||null==(a=t.meta)?void 0:a.requestStatus)==="rejected")return o(e$.setToast({type:"error",text:i("actions.failedAction.".concat(e))})),[2];return r(e),(e===i$.ACTIVATE||e===i$.DEACTIVATE)&&(o(e$.setSharedLoader({open:!0})),window.location.reload()),[2]}})})()})];case 1:return a.sent(),[2]}})})()},[p,r,null==l?void 0:l.isActive,o,n,u,i]),m=(0,en.useMemo)(function(){var e,n,r=t===ez.PLUGIN?null==(e=a[lf])?void 0:e.hasWpOnePackage:null==l?void 0:l.hasWpOnePackage;return null!=(n=(null==c?void 0:c.isConnected)&&!(null==l?void 0:l.isMigrated)&&(null==l?void 0:l.isActive)&&r)&&n},[a,t,null==c?void 0:c.isConnected,null==l?void 0:l.hasWpOnePackage,null==l?void 0:l.isActive,null==l?void 0:l.isMigrated]);return{toolState:l,isLoading:s,isDisabled:d,isMigrateBtnVisible:m,addTool:h,toggleAction:g}};function lP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lT=(lP($={},i$.ACTIVATE,{translationKey:"confirmActivate",isDestructive:!1}),lP($,i$.DEACTIVATE,{translationKey:"confirmDeactivate",isDestructive:!0}),lP($,i$.DETACH,{translationKey:"confirmDetach",isDestructive:!0}),lP($,i$.MIGRATE,{translationKey:"confirmMigration",isDestructive:!1}),$),lk=function(e){var t=e.appType,n=e.actionType,r=e.toolName,o=e.isLoading,i=e.onClose,a=e.onConfirm,l=(0,el.Bd)("tool-manager").t,s=n?lT[n]:null,c=(0,en.useMemo)(function(){if(!s)return null;var e=s.translationKey;return{title:l("actions.".concat(e,".title"),{name:r}),message:(0,X.jsx)(el.x6,{i18nKey:"tool-manager:actions.".concat(e,".msg"),values:{name:r,isEditorCore:t===lf},components:{br:(0,X.jsx)("br",{}),ul:(0,X.jsx)("ul",{style:{margin:"8px 0",paddingLeft:"20px"}}),li:(0,X.jsx)("li",{style:{marginBottom:"4px",display:"list-item",listStyleType:"disc"}})}}),cancel:l("actions.".concat(e,".cancel")),confirm:l("actions.".concat(e,".ok"))}},[s,l,r,t]);return n&&c?(0,X.jsxs)(nj.A,{open:!!n,onClose:i,onClick:function(e){return e.stopPropagation()},"data-test":"one-tool-manager-action-dialog-".concat(t),children:[(0,X.jsx)(nS.A,{onClose:i,logo:!1,children:(0,X.jsx)(nE.A,{variant:"subtitle1",fontWeight:600,children:c.title})}),(0,X.jsx)(nx.A,{children:(0,X.jsx)(nA.A,{variant:"body2",children:c.message})}),(0,X.jsxs)(nO.A,{children:[(0,X.jsx)(tX.A,{variant:"outlined",color:"secondary",onClick:i,"data-test":"one-tool-manager-action-dialog-cancel-button-".concat(t),children:c.cancel}),(0,X.jsx)(t1,{variant:"contained",color:(null==s?void 0:s.isDestructive)?"error":"primary",onClick:a,isLoading:o,"data-test":"one-tool-manager-action-dialog-confirm-button-".concat(t),children:c.confirm})]})]}):null};function lC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lI(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function lM(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){lI(i,r,o,a,l,"next",e)}function l(e){lI(i,r,o,a,l,"throw",e)}a(void 0)})}}function lL(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var lR={actionType:null,isMultiAction:!1},l_=function(e){var t,n,r=e.appType,o=e.toolNameKey,i=e.slug,a=e.trackAction,l=(0,el.Bd)("tool-manager").t,s=(t=(0,en.useState)(lR),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return lC(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lC(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1],d=eS(function(e){return ax.selectShouldPreventToolDeactivation(e,r)}),f=eS(ax.selectToolManagerToolState),p=a(rq),h=a(rW),g=lE({appType:r,slug:i,trackActionConfirmed:p}),m=g.toolState,y=g.isLoading,b=g.isDisabled,v=g.isMigrateBtnVisible,w=g.addTool,j=g.toggleAction,O=(0,en.useMemo)(function(){return(null==m?void 0:m.appType)===lf},[null==m?void 0:m.appType]),x=(0,en.useMemo)(function(){return b||y||d&&(null==m?void 0:m.isActive)},[b,y,d,null==m?void 0:m.isActive]),A=(0,en.useMemo)(function(){return l(o)},[o,l]),S=(0,en.useCallback)(function(){u(lR)},[]),E=(0,en.useCallback)(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u({actionType:e,isMultiAction:t})},[]),P=(0,en.useMemo)(function(){return[{title:l("actions.confirmDeactivateOrDetach.deactivate"),description:l("actions.confirmDeactivateOrDetach.deactivateMsg"),actionButtonText:l("actions.confirmDeactivateOrDetach.deactivate"),action:function(){return lM(function(){return lL(this,function(e){switch(e.label){case 0:return[4,j(i$.DEACTIVATE)];case 1:return e.sent(),S(),[2]}})})()}},{title:l("actions.confirmDeactivateOrDetach.detach"),description:l("actions.confirmDeactivateOrDetach.msg",{isEditorCore:(null==m?void 0:m.appType)===lf}),actionButtonText:l("actions.confirmDeactivateOrDetach.detach"),action:function(){return lM(function(){return lL(this,function(e){switch(e.label){case 0:return[4,j(i$.DETACH)];case 1:return e.sent(),S(),[2]}})})()}}]},[l,j,S,null==m?void 0:m.appType]),T=(0,en.useMemo)(function(){var e=f[ez.PLUGIN];return(null==e?void 0:e.isActive)&&(null==e?void 0:e.isInstalled)},[f]),k=(0,en.useMemo)(function(){return r===ez.APP_MANAGE},[r]),C=(0,en.useCallback)(function(){var e=i$.ACTIVATE;return((null==m?void 0:m.isActive)&&(e=(null==m?void 0:m.isMigrated)?O&&T?i$.DETACH:k?i$.DEACTIVATE:null:i$.DEACTIVATE),null===e)?E(null,!0):(h(e),E(e))},[null==m?void 0:m.isActive,null==m?void 0:m.isMigrated,E,T,O,h,k]),I=(0,en.useMemo)(function(){var e;return(null==m?void 0:m.appType)!==ez.PLUGIN||(null==(e=f[lf])?void 0:e.isActive)||!b?(null==m?void 0:m.isActive)?O&&T?l("actions.detachAi"):l("actions.deactivate"):l("actions.activate"):l("actions.activateCore")},[m,f,l,O,T,b]),M=(0,en.useCallback)(function(){return lM(function(){return lL(this,function(e){switch(e.label){case 0:if(!c.actionType)return[2];return[4,j(c.actionType)];case 1:return e.sent(),S(),[2]}})})()},[c.actionType,j,S]);return(null==m?void 0:m.isInstalled)?y?(0,X.jsx)(t0.A,{size:20,"data-test":"one-tool-manager-loader-".concat(r)}):(0,X.jsxs)(ne.A,{direction:"row",alignItems:"center",children:[v&&(0,X.jsx)(tX.A,{variant:"outlined",color:"warning",onClick:function(){return E(i$.MIGRATE)},size:"small","data-test":"one-tool-manager-migrate-button-".concat(r),children:l("actions.migrateToOne")}),(0,X.jsx)(nh.A,{title:I,children:(0,X.jsx)(t3.A,{children:(0,X.jsx)(nk.A,{checked:null!=(n=null==m?void 0:m.isActive)&&n,size:"small",color:v?"warning":"info",disabled:x,onClick:C,"data-test":"one-tool-manager-switch-".concat(r),sx:{"& .PrivateSwitchBase-input":{visibility:"hidden"}}})})}),(0,X.jsx)(n1,{header:l("actions.confirmDeactivateOrDetach.title"),actions:P,declineText:l("actions.confirmDeactivateOrDetach.cancel"),open:c.isMultiAction,onClose:S,dataTestPrefix:"one-tool-manager-multi-action-dialog-".concat(r)}),(0,X.jsx)(lk,{appType:r,actionType:c.isMultiAction?null:c.actionType,toolName:A,isLoading:y,onClose:S,onConfirm:M})]}):(0,X.jsx)(n_,{confirmTitle:l("actions.confirmAdd.title"),confirmMsg:l("actions.confirmAdd.msg"),acceptText:l("actions.confirmAdd.ok"),declineText:l("actions.confirmAdd.cancel"),variant:"outlined",color:"secondary",size:"small",buttonType:"button",isLoading:y,loading:y,disabled:b||y,onClick:w,onButtonClicked:function(){return h("add")},"data-test":"one-tool-manager-add-button-".concat(r),children:l("actions.add")})},lD=n(36357),lN=n(22520),lB=n(17489);function lU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lF(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function lz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lG=function(e){var t,n=e.tool,r=e.showDivider,o=(0,el.Bd)("tool-manager").t,i=eA(),a=n.appType,l=n.titleKey,s=n.slug,c=(t=(0,en.useState)({}),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return lU(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lU(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],d=c[1],f=eS(function(e){return ax.selectToolManagerToolStateByKey(e,a)}),p=(0,en.useCallback)(function(){var e;return(e=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:return[4,i(al.upgradePlugin({slug:s,status:iv.ACTIVE}))];case 1:return e.sent(),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){lF(i,r,o,a,l,"next",e)}function l(e){lF(i,r,o,a,l,"throw",e)}a(void 0)})})()},[s,i]),h=(0,en.useCallback)(function(e){return function(t){var r;ot.trackMixpanelElementorOneEvent(e,(lz(r={},r2,t),lz(r,r3,n.category),lz(r,r4,o(n.titleKey,{lng:ed.EN})),r))}},[n,o]),g=(0,en.useMemo)(function(){if(!(null==(e=n.featuresKeys)?void 0:e.length))return null;var e,t,r,i,a=null==(t=n.featuresKeys)?void 0:t.slice(0,3),l=null==(i=n.featuresKeys)?void 0:i.slice(3,null==(r=n.featuresKeys)?void 0:r.length);return(0,X.jsxs)(lv.A,{sx:{pl:2},children:[null==a?void 0:a.map(function(e){return(0,X.jsx)(lw.A,{divider:!0,children:(0,X.jsx)(lD.A,{primary:o(e),primaryTypographyProps:{variant:"body2",color:"text.secondary"}})},e)}),(null==l?void 0:l.length)>0&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(nW.A,{in:u[n.appType],unmountOnExit:!0,children:null==l?void 0:l.map(function(e){return(0,X.jsx)(lw.A,{divider:!0,children:(0,X.jsx)(lD.A,{primary:o(e),primaryTypographyProps:{variant:"body2",color:"text.secondary"}})},e)})}),(0,X.jsx)(tX.A,{variant:"text",size:"small",color:"info",endIcon:(0,X.jsx)(lB.A,{in:u[n.appType],children:(0,X.jsx)(lN.A,{})}),onClick:function(){return d(function(e){var t,r;return t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){lz(e,t,n[t])})}return e}({},e),r=null!=(r=lz({},n.appType,!e[n.appType]))?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t})},"data-test":"one-tool-manager-toggle-features-button-".concat(n.appType),children:o(u[n.appType]?"hideMoreFeatures":"showMoreFeatures")})]})]})},[n,u,d,o]),m=(0,en.useMemo)(function(){return(0,X.jsxs)(ne.A,{p:2,maxWidth:250,gap:2,children:[(0,X.jsx)(t4.A,{variant:"body2",children:o("updateRequiredTooltip")}),(0,X.jsxs)(ne.A,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,X.jsxs)(ne.A,{direction:"row",alignItems:"center",gap:.5,children:[(0,X.jsx)(t4.A,{variant:"body2",color:"warning.main",children:null==f?void 0:f.version}),(0,X.jsx)(lO.A,{fontSize:"small"}),(0,X.jsx)(t4.A,{variant:"body2",children:null==f?void 0:f.newVersion})]}),(0,X.jsx)(tX.A,{variant:"contained",size:"small",onClick:function(){h(rq)("update"),p()},"data-test":"one-tool-manager-update-button-".concat(n.appType),children:o("actions.update")})]})]})},[p,o,h,f]);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(lw.A,{divider:void 0===r||r,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:2},children:[(0,X.jsxs)(ne.A,{direction:"row",gap:2,alignItems:"center",flexWrap:"wrap",children:[(0,X.jsxs)(t4.A,{variant:"body1",color:"text.primary",children:[o(l),a===lf&&(0,X.jsx)(t3.A,{component:"span",sx:{marginLeft:1,background:"linear-gradient(to right, #4F75FF, #9747FF, #EB8EFB)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:o("tools.create.items.core.withAI")})]}),(null==f?void 0:f.updateRequired)&&(0,X.jsx)(lj.A,{disableFocusListener:!0,disableTouchListener:!0,content:m,children:(0,X.jsx)(a$.A,{label:o("actions.updateRequired"),color:"warning",size:"small",variant:"standard",icon:(0,X.jsx)(t7.A,{})})})]}),(0,X.jsx)(l_,{appType:a,toolNameKey:l,slug:s,trackAction:h})]},a),g]})},lW=function(e){var t=e.tools,n=(0,el.Bd)("tool-manager").t,r=(0,en.useCallback)(function(e){var r=t.filter(function(t){return t.category===e});return 0===r.length?(0,X.jsxs)(ne.A,{sx:{p:2},gap:1,alignItems:"center",justifyContent:"center",children:[(0,X.jsx)(t4.A,{variant:"subtitle1",children:n("noToolsFound")}),(0,X.jsx)(t4.A,{variant:"body2",children:n("noToolsFoundDescription")})]}):(0,X.jsx)(lv.A,{children:r.map(function(e,t){var n;return(0,X.jsx)(lG,{tool:e,showDivider:t!==r.length-1&&!(null==(n=e.featuresKeys)?void 0:n.length)})})})},[t,n]);return(0,X.jsx)(ne.A,{gap:3,children:lh.categories.map(function(e){return(0,X.jsxs)(ne.A,{gap:1,children:[(0,X.jsx)(t4.A,{variant:"subtitle1",children:n(lh.categoriesTranslations[e])}),(0,X.jsx)(ri.A,{variant:"outlined",sx:{p:2},children:r(e)})]},e)})})},lH=function(e){var t=e.tools,n=(0,el.Bd)("tool-manager").t;return(0,X.jsxs)(ne.A,{gap:2,children:[(0,X.jsx)(t4.A,{variant:"body1",color:"text.secondary",children:n("subtitle")}),(0,X.jsx)(lW,{tools:t})]})},lV=function(){var e=(0,el.Bd)("tool-manager").t,t=(0,et.Zp)();return(0,X.jsxs)(ne.A,{gap:2,children:[(0,X.jsx)(t4.A,{variant:"body1",color:"text.secondary",children:e("errorHandling.subtitle")}),(0,X.jsxs)(ne.A,{gap:1,children:[(0,X.jsx)(t4.A,{variant:"subtitle1",color:"text.primary",children:e("errorHandling.licenseSection")}),(0,X.jsxs)(ri.A,{variant:"outlined",sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"flex-start",md:"center"},justifyContent:"space-between",gap:2,p:2},children:[(0,X.jsxs)(ne.A,{gap:1,sx:{flex:1},children:[(0,X.jsx)(t4.A,{variant:"body1",color:"text.primary",children:e("errorHandling.licenseMismatch.title")}),(0,X.jsx)(t4.A,{variant:"body2",color:"text.secondary",children:e("errorHandling.licenseMismatch.description")})]}),(0,X.jsx)(tX.A,{variant:"outlined",color:"secondary",size:"small",onClick:function(){t(aI)},sx:{flexShrink:0},"data-test":"one-tool-manager-fix-url-mismatch-button",children:e("errorHandling.licenseMismatch.action")})]})]})]})},lK=((B={}).TIMESTAMP="timestamp",B.LEVEL="level",B.SOURCE="source",B.Details="details",B),lq=function(e){var t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString()},lZ=function(e){var t;return"string"==typeof(null==(t=e.context)?void 0:t.source)&&e.context.source?e.context.source:"-"},l$=function(e){var t;return"string"==typeof(null==(t=e.context)?void 0:t.call_stack)?e.context.call_stack:"-"};function lY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lQ=(lY(Y={},lK.TIMESTAMP,{width:150}),lY(Y,lK.LEVEL,{width:80}),lY(Y,lK.SOURCE,{width:150}),lY(Y,lK.Details,{minWidth:400}),Y),lJ=function(){var e=(0,el.Bd)("system-logs").t,t=(0,en.useMemo)(function(){return[{id:lK.TIMESTAMP,accessorKey:"timestamp",header:e("columns.timestamp"),cell:function(e){return lq(e.row.original.timestamp)}},{id:lK.SOURCE,header:e("columns.source"),cell:function(e){return lZ(e.row.original)}},{id:lK.LEVEL,accessorKey:"level",header:e("columns.level"),cell:function(e){var t,n=e.row;return(0,X.jsx)(a$.A,{variant:"standard",label:n.original.level,color:"error"===(t=n.original.level)?"error":"warn"===t?"warning":"info"===t?"info":"default",size:"small"})}},{id:lK.Details,accessorKey:"message",header:e("columns.details"),cell:function(t){var n=t.row;return(0,X.jsxs)(ne.A,{gap:1,children:[(0,X.jsxs)(ne.A,{direction:"row",gap:1,children:[(0,X.jsx)(t4.A,{variant:"body2",fontWeight:"bold",children:e("details.message")}),(0,X.jsx)(t4.A,{variant:"body2",sx:{whiteSpace:"break-spaces"},children:n.original.message})]}),(0,X.jsxs)(ne.A,{direction:"row",gap:1,children:[(0,X.jsx)(t4.A,{variant:"body2",fontWeight:"bold",children:e("details.callStack")}),(0,X.jsx)(t4.A,{variant:"body2",sx:{whiteSpace:"break-spaces"},children:l$(n.original)})]})]})}}]},[e]);return(0,en.useMemo)(function(){return{columns:t,columnStyles:lQ}},[t])};function lX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var l0=["Time","Level","Source","Message","Call stack"],l1=function(e){var t=String(null!=e?e:"");return t.includes(",")||t.includes('"')||t.includes("\n")?'"'.concat(t.replace(/"/g,'""'),'"'):t},l2=function(e){var t;return[l0.map(function(e){return l1(e)}).join(",")].concat(function(e){if(Array.isArray(e))return lX(e)}(t=e.map(function(e){return[lq(e.timestamp),e.level,lZ(e),e.message,l$(e)||"-"].map(l1).join(",")}))||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 lX(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lX(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).join("\n")},l3=function(e,t){var n=l2(e),r=null!=t?t:"elementor-one-system-logs-".concat(new Date().toISOString().slice(0,10),".csv"),o=new Blob([n],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(o),a=document.createElement("a");a.href=i,a.download=r,a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a),setTimeout(function(){return URL.revokeObjectURL(i)},500)},l4=n(39029),l6=n(8247),l5=n(74218),l8=n(81994),l7=function(e){var t=e.onRefresh,n=e.onExport,r=e.onClear,o=e.isLoading,i=e.isClearing,a=e.hasLogs,l=(0,el.Bd)("system-logs").t;return(0,X.jsx)(l4.A,{variant:"dense","data-test":"system-logs-toolbar",sx:{px:"0 !important",justifyContent:"flex-end"},children:(0,X.jsxs)(ne.A,{direction:"row",gap:1,children:[(0,X.jsx)(nh.A,{title:l("toolbar.refresh"),children:(0,X.jsx)(t3.A,{component:"span",children:(0,X.jsx)(ns.A,{onClick:t,disabled:o,"aria-label":l("toolbar.refresh"),"data-test":"system-logs-refresh-button",children:(0,X.jsx)(l6.A,{sx:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},o&&{animation:"spin 2s linear infinite","@keyframes spin":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(-360deg)"}}})})})})}),(0,X.jsx)(nh.A,{title:l("toolbar.exportCsv"),children:(0,X.jsx)(t3.A,{component:"span",children:(0,X.jsx)(ns.A,{onClick:n,disabled:o||!a,"aria-label":l("toolbar.exportCsv"),"data-test":"system-logs-export-csv-button",children:(0,X.jsx)(l5.A,{})})})}),(0,X.jsx)(nh.A,{title:l("toolbar.clear"),children:(0,X.jsx)(t3.A,{component:"span",children:(0,X.jsx)(n_,{buttonType:"icon",color:"error",confirmTitle:l("confirmClearTitle"),confirmMsg:l("confirmClearDescription"),acceptText:l("confirmClearOk"),declineText:l("confirmClearCancel"),confirmColor:"error",isLoading:i,disabled:i||!a,onClick:r,"aria-label":l("toolbar.clear"),"data-test":"system-logs-clear-button",children:(0,X.jsx)(l8.A,{})})})})]})})},l9=function(e){var t=e.isActive,n=eA(),r=(0,el.Bd)("system-logs").t,o=lJ(),i=eS(function(e){return ip.selectInternalLogs(e)}),a=eS(function(e){return ip.selectLoadingState(e,"internalLogs")}),l=eS(function(e){return ip.selectErrorState(e,"internalLogs")}),s=eS(function(e){return ip.selectLoadingState(e,"clearInternalLogs")}),c=(0,en.useCallback)(function(){n(ib.getInternalLogs())},[n]);(0,en.useEffect)(function(){t&&c()},[t,c]);var u=(0,en.useCallback)(function(){n(ib.clearInternalLogs())},[n]),d=(0,en.useCallback)(function(){l3(i)},[i]);return l?(0,X.jsx)(ob.Ay,{severity:"error",children:r("loadError")}):(0,X.jsx)(rm,{dataMode:"client",items:i,fetchingState:{noData:!a&&0===i.length,noFilterData:!1,showFullLoading:!!a&&0===i.length},columnsDef:o,getRowId:function(e){return e.id},getRowDataTest:function(e){return"system-logs-row-".concat(e.original.id)},FilterToolbarComponent:(0,X.jsx)(l7,{onRefresh:c,onExport:d,onClear:u,isLoading:!!a,isClearing:!!s,hasLogs:i.length>0}),NoDataComponent:(0,X.jsx)(ne.A,{gap:1,alignItems:"center",justifyContent:"center",children:(0,X.jsx)(t4.A,{variant:"body2",color:"text.secondary",children:r("empty")})})})},se=function(e){var t=e.isActive,n=(0,el.Bd)("system-logs").t;return(0,X.jsxs)(ne.A,{gap:2,children:[(0,X.jsx)(t4.A,{variant:"body1",color:"text.secondary",children:n("description")}),(0,X.jsx)(l9,{isActive:t})]})};function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){sn(e,t,n[t])})}return e}let so=function(){var e,t,n,r=(0,el.Bd)("tool-manager").t,o=(0,et.Zp)(),i=(e=(0,nn.ok)(),function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return st(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return st(e,2)}}(e,2)||function(){throw 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],s=eS(ip.selectPluginSettings),c=(0,en.useMemo)(function(){return Object.values(lh.tools).flat()},[]);(0,en.useEffect)(function(){var e;ot.trackMixpanelElementorOneEvent(rG,(sn(e={},rJ,"Tool Manager"),sn(e,r0,null==s?void 0:s.isConnected),e))},[null==s?void 0:s.isConnected]);var u=null!=(n=null==(t=window.elementorOneSettingsData)?void 0:t.canUserManageOptions)&&n,d=a.get("tab"),f=lb(d)?d:lg,p=function(){o("../")},h=(0,en.useCallback)(function(e){l(sn({},"tab",e))},[l]),g=lb(f)?f:lg,m=(0,en.useMemo)(function(){var e=[{key:lg,label:r("tabs.tools"),"data-test":"one-tool-manager-tools",component:(0,X.jsx)(lH,{tools:c})}];return u&&e.push({key:lm,label:r("tabs.errorHandling"),"data-test":"one-tool-manager-error-handling",component:(0,X.jsx)(lV,{})},{key:ly,label:r("tabs.systemLogs"),"data-test":"one-tool-manager-system-logs",component:(0,X.jsx)(se,{isActive:g===ly})}),e},[c,u,g,r]),y=m.some(function(e){return e.key===g})?g:lg;return(0,X.jsxs)(nj.A,{open:!0,maxWidth:"lg",disableEnforceFocus:!0,fullWidth:!0,onClose:p,transitionDuration:0,"data-test":"one-tool-manager-dialog",PaperProps:{sx:{height:"100%",width:"100%",mx:{xs:2,md:4}}},slotProps:{backdrop:{sx:function(e){return sr({},au(e))}}},sx:function(e){return sr({},au(e))},children:[(0,X.jsx)(nS.A,{onClose:p,logo:!1,children:(0,X.jsx)(nE.A,{color:"text.primary",children:r("title")})}),(0,X.jsx)(nx.A,{dividers:!0,sx:{pt:4,px:{xs:4,md:7}},children:(0,X.jsx)(nF,{items:m,tabKey:y,onTabChangeCallback:h,hideTabs:1===m.length})})]})};function si(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sa(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function sl(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){sa(i,r,o,a,l,"next",e)}function l(e){sa(i,r,o,a,l,"throw",e)}a(void 0)})}}function ss(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return si(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return si(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sc(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var su=function(){var e=eA(),t=eS(ax.selectOnboardingInstallToolsState),n=eS(ax.selectPlugins),r=(0,en.useCallback)(function(e){return n.find(function(t){return t.slug===e})||null},[n]),o=(0,en.useCallback)(function(e){var t=r(e);return t?t.status!==iv.ACTIVE?i5.ACTIVATE:null:i5.INSTALL},[r]),i=(0,en.useMemo)(function(){return Object.keys(lp).filter(function(e){return null!==r(e)&&null===o(e)})},[r,o]),a=(0,en.useMemo)(function(){return Object.keys(t).filter(function(e){return t[e]&&null!==o(e)})},[t,o]),l=(0,en.useMemo)(function(){return Object.entries(t).some(function(e){var t=ss(e,2),n=t[0];return!!t[1]&&null!==o(n)})},[t,o]);return{processTools:(0,en.useCallback)(function(){return sl(function(){var n,r,i,a,s,c,u,d,f,p,h,g,m,y,b,v,w,j,O,x;return sc(this,function(A){switch(A.label){case 0:if(n=eB.getStoreInstance().getState(),r=ax.selectConflictsToSolve(n),!l&&0===r.length)return[2];i=[],a=!0,s=!1,c=void 0;try{for(u=Object.entries(t)[Symbol.iterator]();!(a=(d=u.next()).done);a=!0)p=(f=ss(d.value,2))[0],f[1]&&(h=o(p))&&i.push({slug:p,actionType:h})}catch(e){s=!0,c=e}finally{try{a||null==u.return||u.return()}finally{if(s)throw c}}if(r.forEach(function(e){var t=ss(e.split("#"),2),n=t[0],r=t[1];i.push({slug:n,actionType:r})}),0===i.length)return[2];e(iu.setInstallProgress({total:i.length})),i.map(function(t){var n=t.slug;return t.actionType,sl(function(){return sc(this,function(t){return e(i6.setLoadState({key:"processingPlugin-".concat(n),value:!0})),[2]})})()}),g=!0,m=!1,y=void 0,A.label=1;case 1:A.trys.push([1,6,7,8]),b=i[Symbol.iterator](),A.label=2;case 2:if(g=(v=b.next()).done)return[3,5];return j=(w=v.value).slug,O=w.actionType,[4,e(al.processPlugin({slug:j,actionType:O})).unwrap()];case 3:A.sent(),A.label=4;case 4:return g=!0,[3,2];case 5:return[3,8];case 6:return x=A.sent(),m=!0,y=x,[3,8];case 7:try{g||null==b.return||b.return()}finally{if(m)throw y}return[7];case 8:return e(i6.resetConflictsToSolve()),[2]}})})()},[o,e,l,t]),isProcessingNeeded:l,alreadyInstalledToolSlugs:i,newSelectedToolSlugs:a}},sd=n(92372),sf=function(e){var t,n,r=e.description,o=e.status,i=e.checked,a=e.slug,l=e.onClick,s=(0,el.Bd)("home").t;return(0,X.jsx)(ra.A,{variant:"outlined",sx:{"&:hover":{borderColor:"common.black"}},onClick:function(){return null==l?void 0:l(a)},children:(0,X.jsx)(rl.A,{sx:{"&: last-child":{pb:2}},children:(0,X.jsxs)(ne.A,{direction:"row",alignItems:"center",gap:1,children:[(0,X.jsx)(sd.A,{checked:i,color:"secondary","data-test":"one-onboarding-conflict-card-checkbox-".concat(a)}),(0,X.jsxs)(ne.A,{gap:.5,children:[(0,X.jsx)(t4.A,{variant:"subtitle1",children:s(null!=(n=null==(t=lp[a])?void 0:t.title)?n:"")}),r&&(0,X.jsx)(t4.A,{variant:"body2",color:"text.secondary",children:r})]}),(0,X.jsx)(t3.A,{sx:{marginLeft:"auto"},children:o})]})})})};function sp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sh(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function sg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sp(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var sy=function(e){var t=e.plugins,n=e.actionLabel,r=e.actionType,o=e.onClick,i=(0,el.Bd)("home").t,a=eA(),l=(0,en.useMemo)(function(){var e={};return t.forEach(function(t){e[t.slug]=!0}),e},[t]),s=sm((0,en.useState)(l),2),c=s[0],u=s[1],d=(0,en.useCallback)(function(e){u(function(t){var n,r;return n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){sg(e,t,n[t])})}return e}({},t),r=null!=(r=sg({},e,!t[e]))?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n})},[]),f=(0,en.useCallback)(function(){var e;return(e=function(){var e,t,n,i,l,s,u,d;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(f){switch(f.label){case 0:e=!0,t=!1,n=void 0,f.label=1;case 1:f.trys.push([1,6,7,8]),i=Object.entries(c)[Symbol.iterator](),f.label=2;case 2:if(e=(l=i.next()).done)return[3,5];if(u=(s=sm(l.value,2))[0],!s[1])return[3,4];return[4,a(i6.addConflictsToSolve("".concat(u).concat("#").concat(r)))];case 3:f.sent(),f.label=4;case 4:return e=!0,[3,2];case 5:return[3,8];case 6:return d=f.sent(),t=!0,n=d,[3,8];case 7:try{e||null==i.return||i.return()}finally{if(t)throw n}return[7];case 8:return null==o||o(),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){sh(i,r,o,a,l,"next",e)}function l(e){sh(i,r,o,a,l,"throw",e)}a(void 0)})})()},[a,o,c,r]),p=(0,en.useMemo)(function(){return Object.values(c).every(function(e){return!e})},[c]);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(nE.A,{sx:{mb:2},children:i("onBoardingInstall.conflictsDialog.".concat(r,".title"))}),(0,X.jsxs)(nx.A,{sx:{gap:2,display:"flex",flexDirection:"column"},children:[(0,X.jsx)(t4.A,{variant:"h5",children:i("onBoardingInstall.conflictsDialog.".concat(r,".title"))}),(0,X.jsx)(t4.A,{variant:"body1",children:i("onBoardingInstall.conflictsDialog.".concat(r,".description"))}),(0,X.jsx)(t4.A,{variant:"caption",sx:{marginTop:2},children:i("onBoardingInstall.conflictsDialog.".concat(r,".selectTools"))}),(0,X.jsx)(ne.A,{sx:{gap:2},children:t.map(function(e){return(0,X.jsx)(sf,{slug:e.slug,onClick:d,checked:c[e.slug],description:r===i5.UPDATE?"version: ".concat(e.newVersion):"",status:r===i5.UPDATE&&(0,X.jsx)(a$.A,{label:i("onBoardingInstall.tools.updateRequired"),color:"warning",variant:"standard",size:"small"})},e.slug)})}),(0,X.jsx)(t4.A,{variant:"caption",children:i("onBoardingInstall.conflictsDialog.manageLater")})]}),(0,X.jsx)(nO.A,{children:(0,X.jsxs)(ne.A,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",children:[n&&(0,X.jsx)(t4.A,{variant:"caption",children:n}),(0,X.jsx)(tX.A,{variant:"contained",onClick:f,sx:{marginLeft:"auto"},"data-test":"one-onboarding-conflicts-action-button-".concat(r),children:i("onBoardingInstall.conflictsDialog.".concat(r,".action"),{nothingIsSelected:p})})]})})]})};function sb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var sv=function(e){var t,n=e.isOpen,r=e.pluginsToUpdate,o=e.pluginsToMigrate,i=e.onFinish,a=(0,el.Bd)("home").t,l=eA(),s=(t=(0,en.useState)(0),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return sb(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sb(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1],d=(0,en.useCallback)(function(){l(i6.setIsConflictsDialogOpen(!1)),null==i||i(),u(0)},[l,i]),f=(0,en.useCallback)(function(){r.length>0&&0===o.length?d():r.length>0&&o.length>0&&u(1)},[d,o.length,r.length,u]),p=(0,en.useMemo)(function(){var e=[],t=r.length>0,n=o.length>0;return t&&e.push((0,X.jsx)(sy,{actionType:i5.UPDATE,actionLabel:n?a("onBoardingInstall.conflictsDialog.step",{step:1,total:2}):void 0,plugins:r,onClick:f},"update")),n&&e.push((0,X.jsx)(sy,{actionType:i5.MIGRATE,actionLabel:t?a("onBoardingInstall.conflictsDialog.step",{step:2,total:2}):void 0,plugins:o,onClick:d},"migration")),e},[r,o,f,a,d]);return(0,X.jsx)(nj.A,{open:n,"data-test":"one-onboarding-conflicts-dialog",children:p[c]})};function sw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let sj=function(){var e=(0,el.Bd)("home").t,t=eA(),n=(0,et.Zp)(),r=eS(function(e){return ax.selectPlugins(e)}),o=r.filter(function(e){return null!==e.newVersion&&e.status===iv.ACTIVE}),i=r.filter(function(e){return e.isConnected&&!e.isMigrated}),a=eS(function(e){return ax.selectIsConlictsDialogOpen(e)}),l=su(),s=l.processTools,c=l.isProcessingNeeded,u=l.newSelectedToolSlugs,d=function(){s(),n("/home/")};return(0,X.jsxs)(ne.A,{gap:3,justifyContent:"center",sx:{flex:"0 0 50%",margin:"0 auto"},children:[(0,X.jsx)(t4.A,{variant:"h3",sx:{whiteSpace:"pre-line"},children:e("onBoardingInstall.title")}),(0,X.jsx)(t4.A,{variant:"body1",sx:{whiteSpace:"pre-line"},children:e("onBoardingInstall.description")}),(0,X.jsxs)(ne.A,{gap:2,children:[(0,X.jsx)(ne.A,{gap:2,direction:"row",children:(0,X.jsx)(tX.A,{variant:"contained",color:"primary",size:"medium",sx:{minWidth:152,maxWidth:{xs:"100%",md:400}},fullWidth:!0,onClick:function(){var n;(ot.track(rQ,(sw(n={},r1,e(c?"onBoardingInstall.installAndContinue":"onBoardingInstall.continue",{lng:ed.EN})),sw(n,r8,u.length),sw(n,r7,u),n),{send_immediately:!0}),o.length>0||i.length>0)?t(i6.setIsConflictsDialogOpen(!0)):d()},"data-test":"one-onboarding-install-continue-button",children:c?e("onBoardingInstall.installAndContinue"):e("onBoardingInstall.continue")})}),(0,X.jsx)(t4.A,{color:"text.tertiary",variant:"caption",children:e("onBoardingInstall.duringInstallation")})]}),(0,X.jsx)(sv,{isOpen:a,pluginsToUpdate:o,pluginsToMigrate:i,onFinish:d})]})};var sO=function(e){var t=e.slug,n=e.tool,r=e.checked,o=e.onToggle,i=(0,el.Bd)("home").t,a=eS(function(e){return ax.selectPluginBySlug(e,t)}),l=(0,en.useMemo)(function(){return null!==a||void 0},[a]),s=(0,en.useMemo)(function(){return(null==a?void 0:a.status)===iv.ACTIVE},[a]),c=(0,en.useMemo)(function(){return l&&s},[l,s]),u=(0,en.useMemo)(function(){return l&&s?(0,X.jsx)(a$.A,{label:i("onBoardingInstall.tools.installed"),color:"info",variant:"standard",size:"small",sx:{ml:"auto"}}):n.beta?(0,X.jsx)(a$.A,{label:i("onBoardingInstall.tools.beta"),color:"warning",variant:"standard",size:"small",sx:{ml:"auto"}}):null},[l,s,n.beta,i]);return(0,X.jsx)(ra.A,{variant:"outlined",sx:{"&:hover":{borderColor:"common.black"},p:0,cursor:c?"default":"pointer"},onClick:function(){c||o(t)},children:(0,X.jsx)(rl.A,{children:(0,X.jsxs)(ne.A,{gap:1.5,direction:"row",alignItems:"center",children:[c?(0,X.jsx)(nh.A,{disableFocusListener:!0,disableTouchListener:!0,placement:"top",title:t===iw.ELEMENTOR_AI?"":i("onBoardingInstall.tools.installedTooltip"),children:(0,X.jsx)(sd.A,{checked:r,readOnly:!0,color:"secondary","data-test":"one-onboarding-tool-checkbox-".concat(t),sx:c?{opacity:.5,cursor:"default"}:{}})}):(0,X.jsx)(sd.A,{checked:r,color:"secondary","data-test":"one-onboarding-tool-checkbox-".concat(t)}),(0,X.jsxs)(ne.A,{gap:1,children:[(0,X.jsx)(ne.A,{direction:"row",alignItems:"center",gap:1,children:(0,X.jsx)(t4.A,{variant:"subtitle1",fontWeight:"500",sx:t===iw.ELEMENTOR_AI?{backgroundImage:"linear-gradient(to right, #4F75FF, #9747FF, #EB8EFB)",backgroundClip:"text",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}:{},children:i(n.title)})}),(0,X.jsx)(t4.A,{variant:"body2",color:"text.secondary",children:i(n.description)})]}),u]})})})};function sx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sx(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var sS=function(){var e=(0,el.Bd)("home").t,t=[],n=eA(),r=eS(function(e){return ax.selectOnboardingInstallToolsState(e)}),o=(0,et.Zp)(),i=function(e){var t=!r[e];n(i6.setOnboardingInstallToolsState({key:e,value:t})),e===iw.ELEMENTOR_PRO&&t&&n(i6.setOnboardingInstallToolsState({key:iw.ELEMENTOR,value:!0})),e!==iw.ELEMENTOR||t||n(i6.setOnboardingInstallToolsState({key:iw.ELEMENTOR_PRO,value:!1}))};return(0,X.jsxs)(ne.A,{sx:{flex:"0 0 50%"},gap:2,children:[(0,X.jsxs)(ne.A,{gap:2,children:[Object.entries(lp).filter(function(e){var n=sA(e,1)[0];return!t.includes(n)}).map(function(e){var t=sA(e,2),n=t[0],o=t[1];return o?(0,X.jsx)(sO,{slug:n,tool:o,checked:r[n],onToggle:i},n):null}),t.length>0&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(t4.A,{variant:"body1",color:"text.secondary",children:e("onBoardingInstall.tools.additionalBetaTools")}),t.map(function(e){var t=lp[e];return t?(0,X.jsx)(sO,{slug:e,tool:t,checked:r[e],onToggle:i},e):null})]})]}),(0,X.jsx)(tX.A,{sx:{alignSelf:{xs:"stretch",md:"flex-end"}},variant:"text",color:"secondary",size:"small",onClick:function(){var t,n,r;ot.track(rQ,(t={},n=r1,r=e("onBoardingInstall.skip",{lng:ed.EN}),n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t),{send_immediately:!0},function(){return o("/home/")})},"data-test":"one-onboarding-skip-button",children:e("onBoardingInstall.skip")})]})};function sE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let sP=function(){var e=eS(function(e){return ax.selectLoadingState(e,"plugins")}),t=(0,et.Zp)(),n=eS(function(e){return ax.selectDataFetched(e,"plugins")}),r=eS(function(e){return ax.selectErrorState(e,"plugins")}),o=(0,en.useMemo)(function(){return e||!n||r},[e,n,r]),i=eS(function(e){return ip.selectPluginSettings(e)}),a=su().alreadyInstalledToolSlugs;return(or(function(){var e;ot.trackMixpanelElementorOneEvent(rY,(sE(e={},r5,a),sE(e,r6,a.length),e))},n),(0,en.useEffect)(function(){!i||(null==i?void 0:i.isConnected)||t("/home/capabilities")},[t,i]),o)?(0,X.jsx)(iC,{}):(0,X.jsx)(ix.A,{maxWidth:"xl",sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",pt:8,"@media (min-width: 600px)":{px:4}},children:(0,X.jsxs)(ne.A,{sx:{flexDirection:{xs:"column",md:"row"}},gap:4,children:[(0,X.jsx)(sj,{}),(0,X.jsx)(sS,{})]})})};function sT(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,o)}function sk(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){sT(i,r,o,a,l,"next",e)}function l(e){sT(i,r,o,a,l,"throw",e)}a(void 0)})}}function sC(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var sI=function(){var e=(0,el.Bd)(["url-mismatch"]).t,t=eA(),n=(0,et.Zp)(),r=(0,ex.d4)(function(e){return ip.selectLoadingState(e,"switchDomain")}),o=(0,ex.d4)(function(e){return ip.selectLoadingState(e,"connect")}),i=function(){n("../")},a=function(e){var t,n;ot.trackMixpanelElementorOneEvent(r$,(t={},(n=r2)in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t))};return(0,X.jsxs)(nj.A,{open:!0,onClose:i,maxWidth:"lg",disableEnforceFocus:!0,"data-test":"one-url-mismatch-dialog",children:[(0,X.jsx)(nS.A,{logo:(0,X.jsx)(X.Fragment,{}),onClose:i,children:(0,X.jsx)(t4.A,{variant:"h6",children:e("header")})}),(0,X.jsx)(nx.A,{children:(0,X.jsxs)(t3.A,{mx:5,children:[(0,X.jsxs)(t3.A,{mb:8,sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[(0,X.jsx)(t4.A,{variant:"h4",mb:2,align:"center",children:e("title")}),(0,X.jsx)(t4.A,{variant:"body1",align:"center",children:e("description",{br:(0,X.jsx)("br",{})})})]}),(0,X.jsxs)(n2.A,{container:!0,direction:"row",spacing:3,mb:10,children:[(0,X.jsx)(n2.A,{item:!0,xs:12,md:6,children:(0,X.jsx)(ri.A,{variant:"outlined",sx:{width:"344px"},children:(0,X.jsxs)(ne.A,{direction:"column",gap:3,m:5,children:[(0,X.jsx)(t4.A,{variant:"subtitle1",align:"center",children:e("actions.updateCurrentSite.title")}),(0,X.jsx)(t4.A,{variant:"body2",align:"center",children:e("actions.updateCurrentSite.description")}),(0,X.jsx)(t1,{variant:"text",color:"info",size:"large",onClick:function(){return sk(function(){return sC(this,function(e){switch(e.label){case 0:return a("mismatch_same_site"),[4,t(ib.switchDomain())];case 1:return e.sent(),i(),t(e$.setSharedLoader({open:!0})),window.location.reload(),[2]}})})()},sx:{"&:hover":{backgroundColor:"transparent"}},isLoading:r,disabled:o,"data-test":"one-url-mismatch-update-current-site-button",children:e("actions.updateCurrentSite.action")})]})})}),(0,X.jsx)(n2.A,{item:!0,xs:12,md:6,children:(0,X.jsx)(ri.A,{variant:"outlined",sx:{width:"344px"},children:(0,X.jsxs)(ne.A,{direction:"column",gap:3,m:5,children:[(0,X.jsx)(t4.A,{variant:"subtitle1",align:"center",children:e("actions.connectNewSite.title")}),(0,X.jsx)(t4.A,{variant:"body2",align:"center",children:e("actions.connectNewSite.description")}),(0,X.jsx)(t1,{variant:"text",color:"info",size:"large",onClick:function(){return sk(function(){return sC(this,function(e){switch(e.label){case 0:return a("mismatch_new_site"),[4,t(ib.connect(!0))];case 1:return e.sent(),[2]}})})()},sx:{"&:hover":{backgroundColor:"transparent"}},isLoading:o,disabled:r,"data-test":"one-url-mismatch-connect-new-site-button",children:e("actions.connectNewSite.action")})]})})})]})]})})]})},sM=ew.createInstance(function(e,t){return n(8631)("./".concat(e,"/").concat(t,".json"))}),sL=[il,i2,eK],sR=ee.createRoot(document.getElementById("elementor-home-app"));ot.init(rF.Infra,"150605b3b9f979922f2ac5a52e2dcfe9",void 0,!0,null==(J=window)||null==(Q=J.elementorOneSettingsData)?void 0:Q.shareUsageData),sR.render((0,X.jsx)(function(e){var t=e.children,n=e.colorScheme;return(0,X.jsx)(en.StrictMode,{children:(0,X.jsx)(en.Suspense,{fallback:(0,X.jsx)(iD,{}),children:(0,X.jsx)(eF,{slices:sL,children:(0,X.jsx)(iB,{children:(0,X.jsx)(tJ,{themeInstance:tq.NP,directionInstance:tZ.A,colorScheme:void 0===n?"light":n,children:(0,X.jsx)(om,{children:(0,X.jsx)(el.xC,{i18n:sM,children:(0,X.jsx)(nn.I9,{children:t})})})})})})})})},{colorScheme:"light",children:(0,X.jsx)(function(){return(0,X.jsx)(et.BV,{children:(0,X.jsxs)(et.qh,{element:(0,X.jsx)(aB,{}),children:[(0,X.jsxs)(et.qh,{path:"/home",element:(0,X.jsx)(aZ,{}),children:[(0,X.jsx)(et.qh,{index:!0,element:(0,X.jsx)(lu,{})}),(0,X.jsx)(et.qh,{path:"tool-manager",element:(0,X.jsx)(so,{})}),(0,X.jsx)(et.qh,{path:"url-mismatch",element:(0,X.jsx)(sI,{})})]}),(0,X.jsx)(et.qh,{path:"/home/onboarding",element:(0,X.jsx)(sP,{})}),(0,X.jsx)(et.qh,{path:"*",element:(0,X.jsx)(et.C5,{to:"/home"})})]})})},{})}))},33783(){}}]);
💾 Save Changes
❌ Cancel