@emailmaker/emailmaker 1.0.23 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +1 -1
  2. package/README_eng.md +1 -1
  3. package/asset-manifest.json +20 -18
  4. package/emailmaker-esm.js +1 -1
  5. package/emailmaker.js +1 -1
  6. package/iframe/429.js +1 -0
  7. package/iframe/{iframe-eblock.2f19127efd75135e7ba7.html → iframe-eblock.928550a92a685a8395b0.html} +1 -1
  8. package/iframe/{iframe.2f19127efd75135e7ba7.html → iframe.928550a92a685a8395b0.html} +1 -1
  9. package/iframe/js/cssbeautify.js +1 -1
  10. package/iframe/sandbox-eblock.js +1 -1
  11. package/iframe/sandbox.js +1 -1
  12. package/package.json +1 -1
  13. package/plugin.html +1 -1
  14. package/plugin_blocks_test.html +1 -1
  15. package/plugin_default.html +1 -1
  16. package/plugin_s.html +1 -1
  17. package/static/css/{698.ae090381.css → 698.78cace37.css} +1 -1
  18. package/static/js/1792.9fb6a042.js +1 -0
  19. package/static/js/{2256.e5905978.js → 2256.2b67ecbf.js} +1 -1
  20. package/static/js/2464.2c009f8c.js +2 -0
  21. package/static/js/2464.2c009f8c.js.LICENSE.txt +6 -0
  22. package/static/js/{5571.4440d1c0.js → 5571.b3cbed7a.js} +1 -1
  23. package/static/js/6567.b3ba382f.js +1 -0
  24. package/static/js/8905.20cd9eb8.js +1 -0
  25. package/static/js/9649.a0728edd.js +1 -0
  26. package/static/js/{emailmaker_core.d2379bc4.js → emailmaker_core.b76ffc94.js} +1 -1
  27. package/static/js/mocks.90ebae7c.chunk.js +1 -0
  28. package/translations.pot +108 -104
  29. package/react_app-ru_RU.po +0 -4438
  30. package/static/js/1792.01b8362c.js +0 -1
  31. package/static/js/6567.d1271d33.js +0 -1
  32. package/static/js/8905.c2748cc2.js +0 -1
  33. package/static/js/9649.60c1314f.js +0 -1
  34. package/static/js/mocks.49dccd38.chunk.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[1792],{81154:(e,t,n)=>{n.d(t,{A:()=>r});const r=["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVnSURBVHgB3Zs9TCNHFMefNwalAMmRCwQUcRqULjZQ0HnpEgkJrgSapIEyRDTpwFWSAh1XQpPrKO8QNFexdBR8+EpozmmABskRLhI+7//fW6P1etce744/f5Lxrr1r5u/35s2bmeeYNAnTNBO3t7fm8/Pzt7FYLI3nNF5O4Djlvg6vF/BaAYdFHOcNwzgcGBjIW5ZVlCYQE41QZKlUWkHDszyVaFj4nPf9/f27R0dHBdGEFsGTk5O05JpEFxmEBS/IHR8fWxKRSIJbINQL3X8FwnclJKEET01Npe7v7/+W1gn18ravry8XxtW/kgaBVVceHx93cPi9tI/009PT3MjISPHq6upjIzcqC2ZASiaTf+KQLvy1tJ8EHnOjo6OJy8vLD6o3Kbm0E30PnKGl4+Bwhmj+SsXF6wp2+usBDlPS2RTQr6fria4puIvElikgvmTy+Xxg0mLUuvvh4eGddI9YkkKmdpBOpxNBFwQKnpiY2OzUPlsLprHxeHwt6H3fKD0+Pv4zbvxDupep4eHhfzFkHXnfqOrDXdhvgygiiGW8QazKpSGW7pCS7ifhZIMVVFgY/XYOT++kh0DXnHZPOrwWfi09hjO5eeFFMGc+0huu7MV0tNm8CPZ+E53A4OCgzM/Py9bWlsAtZW0tXBPd2uw+7ETmT9IhIJYwf5eZmRlbtBtYS8KADOwbZmBxntzd3c2ic0s7oTAKpFAK9gOzIgkLMrBf8ZSzBUPsnLSJWtb0gkRCwgKNplCwk3ea0kJUrOnHxcWFRMCkVqSdcS6hSitoxJp+RHFpAq3ZOJZKss3sv6rWPDk5ke3tbRkbG5PV1VXfayJaWKA1FefsQpqAqjWxWG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YII=","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAAAdVBMVEUAAAAzMzMyMjI0NDQ0NDQzMzMyMjIyMjIyMjIyMjIyMjIyMjIyMjIzMzMzMzP///80NDT///8yMjIzMzPIyMisrKwzMzP///+ysrLMzMxmZmZ/f3/y8vKZmZnZ2dnm5ua/v79zc3NZWVlMTExAQECmpqaMjIxF2VT8AAAAFnRSTlMAv98gED9vz49/n0/vr1Dfz8dgX6+fmbmzdAAAAaFJREFUSMet12lzgkAMgOHswa4c3m04RDzb//8TSwcRJQSWbd9vjvMMmEEIMJxemchKrJNiGQYanNOhwF7CKCcaPCTxgQftkvEoVQJHixRvTYITyT1D9QIdWgzbDTplFbVKomNSedhO6x7e4Izsux6b1a2ou97Zqe1YWeRl2lRWF3xmHH7wtUpfOnRfJN3QIsYeWkYwitauGHtJeYzBA0tmUCeC6aEDHO6YEkwPLRh8opgcWjG2eGFldc6yrMC3dI0Ng787e7zjQOHIWX91FmnNeWtkylpbIpNmZ415i3NkiiGcxGdkMrCcxBkyRSD8sQXpjyWgP8Z/xkXKVP4F5xRLZ3ymA7PO+Egv7sgZX7DXEowzvtL/5MoZY78AtCuuCNb0ZnDLmspWnZrPA/MCCH2vMFNj7YsV1Ak/LMhNfwrT543wwbJd3Hzwc6ET83EEbSqZxvxGZObiPVloODy1Bmo7B9v+8ih57LECUkxtpy2L6fpHW7jgBTDt5BRODLCpaBwLBWPFkuJZ7zcEU8qnjOhjEc55qQvCj+36l663nyZm5A9ms/P034mohwAAAABJRU5ErkJggg=="]},56991:(e,t,n)=>{n.d(t,{bD:()=>s,Mu:()=>a,cM:()=>c,rD:()=>d});var r=n(45934),i=n(18398),o=n(71210);function s(e,t){if(e!==t){if(!e||!t||"object"!==typeof e||"object"!==typeof t)return!1;const n=t instanceof Array;if(e instanceof Array){if(!n)return!1;const r=e.length;if(t.length!==r)return!1;for(let n=0;n<r;n++)if(!s(e[n],t[n]))return!1}else if(n)return!1;const r=Object.keys(e),i=Object.keys(t),o=r.length;if(o!==i.length)return!1;for(let a=0;a<o;a++){const n=r[a];if(!t.hasOwnProperty(n)||!s(e[n],t[n]))return!1}}return!0}function a(e){if(e){const{type:t,project:n,isNew:r,id:i}=e;return`/projects/${n}/${"block"===t?"blocks":"emails"}/${r?`new?template=${i}`:i}`}return""}function d(){return(0,r.d4)(i.zg)}function c(e,t,n){return null!==e&&void 0!==e&&e.length?e.map(((e,r)=>function(e){return e.hasOwnProperty("children")}(e)?{key:(0,o.l)(),value:e.value,label:e.label,children:c(e.children,t,n),type:e.type}:{key:(0,o.l)(),label:e.label,value:e.value,onClick:t=>{n(e.value,t.domEvent)}})):void 0}},33288:(e,t,n)=>{n.d(t,{di:()=>s});var r=n(95152),i=n(41664),o=n(23580);const s={getContainer:o.My,createIdentifier:i.Q,reducer:o.Ff,reducerPath:o.IP,getInstance:function(e,t){return(e instanceof r.m?e:(0,o.My)(e)).getInstance(t)},getInstanceAsync:function(e,t){return(e instanceof r.m?e:(0,o.My)(e)).getInstanceAsync(t)},getOrCreateInstance:function(e,t,n){return(e instanceof r.m?e:(0,o.My)(e)).getOrCreateInstance(t,n)},inject:function(e,t,n,r){return(0,o.My)(e).inject(t,n)},addService:function(e,t,n){return(0,o.My)(e).addService(t,n)},getServices:function(e,t){return(0,o.My)(e).getServices(t)},useInject:o.lg,useInstance:o.Nj,useInstanceAsync:o.rl,useServices:o.A$}},41664:(e,t,n)=>{n.d(t,{Q:()=>i});var r=n(71210);function i(e=(0,r.l)()){return e}},82375:(e,t,n)=>{n.d(t,{Q:()=>r});const r=new(n(95152).m)},30725:(e,t,n)=>{n.d(t,{p:()=>i});var r=n(23580);function i(e){return(t,n,i,o)=>{const s=(0,r.My)(n);return e(s)(t,n,i,o)}}},77509:(e,t,n)=>{n.d(t,{j:()=>r});class r{constructor(e=[]){this._inner=e,this._isDisposed=!1}addDisposable(e){return this._inner.push(e),e instanceof r&&e.addDispose((()=>{this.removeDisposable(e)})),e}addDispose(e){this.addDisposable({dispose:e})}removeDisposable(e){const t=this._inner.indexOf(e);t>=0&&this._inner.splice(t,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const e of this._inner)e.dispose()}}}},45695:(e,t,n)=>{n.d(t,{K9:()=>A,QC:()=>l,XW:()=>u,ur:()=>c});var r=n(19378),i=n(33288),o=n(45934),s=n(41664),a=n(92810);const d=(0,s.Q)("MESSAGE_SERVICE");function c(){const e=l();return(0,a.useCallback)((t=>{e.setTarget(t instanceof Element?t.contentWindow:t)}),[e])}function l(){const e=(0,o.Pj)();return(0,a.useMemo)((()=>function(e){return i.di.getOrCreateInstance(e,d,(()=>new r.bg))}(e)),[e])}function u(){const e=l();return(0,a.useCallback)((function(t){e.send(t)}),[e])}function A(){const e=l();return(0,a.useCallback)((function(t,n){e.send(t,n)}),[e])}},47381:(e,t,n)=>{n.d(t,{d:()=>r});const r=(e,t)=>{const n=()=>{try{const t={...e,appLabel:"blocks_app"};window.dataLayer&&"function"===typeof window.dataLayer.push?window.dataLayer.push(t):console.log("Attempting to add to the dataLayer:",e)}catch(t){console.error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 GTM:",t)}};t?setTimeout(n,t):n()}},71210:(e,t,n)=>{function r(){var e=(new Date).getTime(),t="undefined"!==typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}n.d(t,{l:()=>r})},14004:(e,t,n)=>{n.d(t,{i:()=>i});var r=n(44141);const i=async(e,t,n)=>{const i=(0,r.KU)(t).baseUrl.replaceAll(/[\\/]$/g,""),o=(0,r.hI)({baseUrl:i});let s=await o(e,t,n);if(s.error){let e=s.error;if("function"===typeof e.json)try{e=await e.json()}catch{e=await e,console.log("error",e)}return{error:e}}return s}},89698:(e,t,n)=>{n.d(t,{V:()=>c});var r=n(85163),i=n(45695),o=n(23287),s=n(92810),a=n(45934),d=n(86286);function c(){const e=(0,i.QC)(),t=(0,a.d4)(d.C1),{__:n}=(0,o.s9)(),[c,l]=(0,s.useState)("");(0,s.useEffect)((()=>{if(t.locale!==c){const i=(0,r.QV)(n),o=e.onInit((()=>{e.send(r.Ru.SANDBOX_TRANSLATIONS,{name:t.locale,data:i}),l(t.locale)}));return()=>o.dispose()}}),[t.locale,c,l,n,e]),(0,s.useEffect)((()=>{const t=e.addListener(r.Ru.RELOAD,(()=>{l("")}));return()=>t.dispose()}),[l,e])}},37969:(e,t,n)=>{n.d(t,{y:()=>d});var r=n(85163),i=n(45695),o=n(92810),s=n(70082);const a=Symbol("isIframeEvent");function d({children:e}){const[t,n]=(0,o.useState)(),[d,c]=(0,o.useState)(),[l,u]=(0,o.useState)(!1),A=(0,i.QC)();return(0,o.useEffect)((()=>{if(t){const e=A.addListener(r.Ru.APPLICATION_IFRAME_DRAG_EVENT,(e=>{if("drageleave"!==e.type&&"dragenter"!==e.type){const n=t.getBoundingClientRect(),r=e.clientX+n.x+window.scrollX,i=e.clientY+n.y+window.scrollY,o=document.elementFromPoint(r,i);if(o){const t=new DataTransfer,n=new DragEvent(e.type,{clientX:r,clientY:i,cancelable:!0,bubbles:!0,dataTransfer:t});n[a]=!0,o.dispatchEvent(n)}}}));return()=>e.dispose()}}),[A,t]),(0,o.useEffect)((()=>{const e=e=>{e[a]||u(!0)},t=e=>{e[a]||u(!1)};return window.addEventListener("dragstart",e),window.addEventListener("dragend",t),()=>{window.removeEventListener("dragstart",e),window.removeEventListener("dragend",t)}}),[d]),(0,o.useEffect)((()=>{const e=e=>{if(!e[a]){var t;const n=d.getBoundingClientRect();A.send(r.Ru.SANDBOX_DRAG_EVENT,{value:(null===(t=e.dataTransfer)||void 0===t?void 0:t.getData("Text"))||"",type:e.type,clientX:e.pageX-n.x-window.scrollX,clientY:e.pageY-n.y-window.scrollY})}};if(d)return d.addEventListener("dragenter",e),d.addEventListener("dragover",e),d.addEventListener("dragleave",e),d.addEventListener("drop",e),d.addEventListener("dragend",e),()=>{d.removeEventListener("dragenter",e),d.removeEventListener("dragover",e),d.removeEventListener("dragleave",e),d.removeEventListener("drop",e),d.removeEventListener("dragend",e)}}),[d,A]),(0,s.jsxs)("div",{ref:n,children:[l&&(0,s.jsx)("div",{ref:c,className:"iframe-provider"}),e]})}},43672:(e,t,n)=>{n.d(t,{w:()=>c});var r=n(95838),i=n(85163),o=n(56991),s=n(45695),a=n(92810);const{useToken:d}=r.A;function c(){const e=(0,s.QC)(),{token:t}=d(),[n,r]=(0,a.useState)();(0,a.useEffect)((()=>{if(!(0,o.bD)(n,t)){const n=e.onInit((()=>{e.send(i.Ru.SANDBOX_SET_THEME_VARIABLES,t),r(t)}));return()=>n.dispose()}}),[t,n,r,e]),(0,a.useEffect)((()=>{const t=e.addListener(i.Ru.RELOAD,(()=>{r(void 0)}));return()=>t.dispose()}),[r,e])}},38920:(e,t,n)=>{n.d(t,{r:()=>E});var r=n(85163),i=n(59287),o=n(92810),s=n(45934),a=n(64617),d=n(17581),c=n(53204),l=n(47358),u=n(65983),A=n(39738),f=n(86286),m=n(56991),p=n(32411),v=n(83863),g=n(71157),h=n(42068),y=n(47381);function E(e){const{emailId:t,projectId:n}=(0,a.g)(),E=(0,g.hN)(),C=(0,m.rD)(),w=(0,s.d4)(c.M),b=(0,p.fn)(),S=(0,o.useRef)(0),D=(0,s.d4)(A.p1),R=(0,s.d4)(l.Wm),I=(0,s.d4)(l.B),T=(0,s.d4)(f.C1),[x,N]=(0,d.LX)(),B=(0,s.wA)(),{isSuccess:Q,isLoading:F}=(0,d.YV)({emailId:t},{skip:!t}),[M,L]=(0,o.useState)(null);(0,o.useEffect)((()=>{if(Q&&!F&&null!==D&&void 0!==D&&D.length){const n=D[0];var t;if(n&&M!==(null===e||void 0===e?void 0:e.id))null!==(t=n.slug)&&void 0!==t&&t.includes("autosave")&&b&&B((0,u.no)(n)),L(null===e||void 0===e?void 0:e.id)}}),[B,D,Q,F,null===e||void 0===e?void 0:e.id,M,b,t]);const O=(0,o.useCallback)((()=>{if(e){const t={title:e.title,project:e.project,html:(null===b||void 0===b?void 0:b.getValue())||"",excerpt:e.date_gmt,subject:e.subject,preheader:e.preheader,common_styles:e.common_styles};x({emailId:e.id,body:t}).then((o=>{if((0,y.d)({event:"save",action:"auto_save_email",email_id:e.id,project_id:n}),!function(e){return e.hasOwnProperty("data")}(o))throw o.error;var s,a;fetch((0,i.W)(r.Tm,n,null===(s=o.data)||void 0===s?void 0:s.id,null===(a=o.data)||void 0===a?void 0:a.modified),{mode:"no-cors"}),E.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:t,message:""},!0)})).catch((e=>{E.fromError("EMAIL_AUTOSAVE_ERROR",t,e,!0),console.log(e)}))}}),[x,e,b,n,E]),[j,k]=(0,o.useState)(!1),U=(0,o.useCallback)((()=>{if((null===D||void 0===D?void 0:D.length)>0){const e=[...D].sort(((e,t)=>Date.parse(null===t||void 0===t?void 0:t.modified)-Date.parse(null===e||void 0===e?void 0:e.modified)))[0];Date.parse((new Date).toString())-Date.parse(null===e||void 0===e?void 0:e.modified)>1.5*((null===C||void 0===C?void 0:C.autosaveTimeout)||1e4)&&R&&!w&&"Discuss"!==I&&O()}else R&&!w&&"Discuss"!==I&&O()}),[D,w,R,I,O,null===C||void 0===C?void 0:C.autosaveTimeout]);(0,h.Z)((([e])=>{j&&!e&&(U(),k(!1))}),[j,U,k]);const J=null===T||void 0===T?void 0:T.autosaves,[V,Y]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{V&&!w&&(clearTimeout(S.current),S.current=setTimeout((()=>k(!0)),(null===C||void 0===C?void 0:C.autosaveTimeout)||1e4),Y(!1))}),[V,w,null===C||void 0===C?void 0:C.autosaveTimeout,k,Y]),(0,o.useEffect)((()=>{if(J&&Q&&void 0!==(null===e||void 0===e?void 0:e.id)){const t=(0,v.Og)(b,(()=>{R&&null!==e&&void 0!==e&&e.is_inited&&Y(!0)}));return()=>{t.dispose()}}}),[b,Y,J,Q,null===e||void 0===e?void 0:e.id,R,null===e||void 0===e?void 0:e.is_inited]),(0,h.Z)((([t,n])=>{Q&&void 0!==(null===e||void 0===e?void 0:e.id)&&R&&null!==e&&void 0!==e&&e.is_inited&&(t===(null===e||void 0===e?void 0:e.title)&&n===(null===e||void 0===e?void 0:e.common_styles)||Y(!0))}),[null===e||void 0===e?void 0:e.title,null===e||void 0===e?void 0:e.common_styles,R,Q,Y,null===e||void 0===e?void 0:e.id,null===e||void 0===e?void 0:e.is_inited]),(0,o.useEffect)((()=>()=>{clearTimeout(S.current)}),[T,null===e||void 0===e?void 0:e.renderGuid]),(0,o.useEffect)((()=>{clearTimeout(S.current)}),[null===e||void 0===e?void 0:e.modified]),N}},9653:(e,t,n)=>{n.d(t,{U:()=>c});var r=n(85163),i=n(45695),o=n(32411),s=n(83863),a=n(42068),d=n(92810);const c=e=>{const t=(0,o.fn)(),n=(0,i.QC)(),c=(null===e||void 0===e?void 0:e.html)||"",l=(0,d.useRef)();l.current=e;const u=(0,d.useCallback)((e=>{const t=l.current;if(e===(null===t||void 0===t?void 0:t.renderGuid))return n.sendAsync(r.Ru.SANDBOX_INITED,{guid:t.renderGuid})}),[n]),A=(0,d.useCallback)((e=>{const t=l.current;if(e===(null===t||void 0===t?void 0:t.renderGuid))return n.sendAsync(r.Ru.SANDBOX_INIT_START,{guid:t.renderGuid})}),[n]),f=(0,d.useCallback)((async e=>{const i=l.current;if((null===i||void 0===i?void 0:i.renderGuid)===e){const e=null===c||void 0===c?void 0:c.replaceAll("\r\n","\n");try{(0,s.po)(t),t.setValue(e)}finally{(0,s.SF)(t)}const o=t.getValue();await n.sendAsync(r.Ru.SANDBOX_SET_ENTITY,{html:o,guid:null===i||void 0===i?void 0:i.renderGuid})}}),[c,t,n]);(0,a.Z)((async([t])=>{const n=null===e||void 0===e?void 0:e.renderGuid;n&&n!==t&&(await A(n),await f(n),await u(n))}),[null===e||void 0===e?void 0:e.renderGuid,null===e||void 0===e?void 0:e.id,f])}},69106:(e,t,n)=>{n.d(t,{f:()=>m});var r=n(85163),i=n(13522),o=n(45695),s=n(93982),a=n(32411),d=n(83863),c=n(42068),l=n(92810),u=n(65983),A=n(8493),f=n(45934);const m=(e,t)=>{const n=(0,f.wA)(),m=(0,a.fn)(),p=(0,o.QC)(),v=(0,s.ml)(i.A.WILL_EMAIL_INIT_ID),g=(0,s.ml)(i.A.ON_EMAIL_INIT_ID),h=(0,s.ml)(i.A.ON_CONTENT_CHANGED_ID),y=(0,s.ml)(i.A.ON_EMAIL_CHANGED_ID),E=(0,s.ml)(i.A.ON_MODEL_CHANGE),C=(0,l.useRef)(!1),w=(0,l.useRef)();w.current=e,(0,l.useEffect)((()=>{const n=w.current;if(r.EW.isPlugin&&!C.current&&(null===e||void 0===e?void 0:e.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const e=m.getValue();y.fire({...n,id:t||n.isNew?void 0:n.id,html:e})}}),[m,e,y,t]),(0,c.Z)((([e])=>{e!==m&&E.fire(m)}),[m,E]),(0,l.useEffect)((()=>{if(r.EW.isPlugin){const n=m.onDidChangeContent((()=>{const n=w.current;if(!C.current&&(null===e||void 0===e?void 0:e.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const e=m.getValue();h.fire(e),y.fire({...n,id:t||n.isNew?void 0:n.id,html:e})}}));return()=>n.dispose()}}),[m,h,y,e,t]);const b=(0,l.useCallback)((async()=>{const e=w.current;try{var t;(0,d.po)(m),m.setValue((null===e||void 0===e||null===(t=e.html)||void 0===t?void 0:t.replaceAll("\r\n","\n"))||"")}finally{(0,d.SF)(m)}const n=m.getValue();await p.sendAsync(r.Ru.SANDBOX_SET_ENTITY,{html:n,guid:e.renderGuid})}),[m,p]),S=(0,l.useCallback)((async()=>{const e=w.current;await p.sendAsync(r.Ru.SANDBOX_SET_ENTITY,{html:m.getValue(),guid:e.renderGuid})}),[m,p]),D=(0,l.useCallback)((async()=>{const e=w.current;void 0!==e.preheader&&await p.sendAsync(r.Ru.SANDBOX_PREHEADER_UPDATE,{value:e.preheader,guid:e.renderGuid,force:!0})}),[p]),R=(0,l.useCallback)((async()=>{const e=w.current;void 0!==e.subject&&await p.sendAsync(r.Ru.SANDBOX_SUBJECT_UPDATE,{value:e.subject,guid:e.renderGuid,force:!0})}),[p]),I=(0,l.useCallback)((()=>{const e=w.current;return p.sendAsync(r.Ru.SANDBOX_INITED,{guid:e.renderGuid})}),[p]),T=(0,l.useCallback)((()=>{const e=w.current;return n(void 0===e.id?(0,A.Uh)(!0):(0,u.Wm)(!0)),g.fire({...e,id:t||e.isNew?void 0:e.id,html:m.getValue()})}),[n,g,m,t]),x=(0,l.useCallback)((()=>{const e=w.current;return p.sendAsync(r.Ru.SANDBOX_INIT_START,{guid:e.renderGuid})}),[p]),N=(0,l.useCallback)((()=>{const e=w.current;return v.fire({...e,id:t||e.isNew?void 0:e.id,html:m.getValue()})}),[m,v,t]),[B]=(0,c.c)((async function*(){try{C.current=!0,yield x(),yield N(),yield b(),yield D(),yield R(),yield I(),yield T()}finally{C.current=!1}}),[b,D,R,T,N,x,I]),[Q]=(0,c.c)((async function*(){try{yield await x(),yield await N(),yield await S(),yield await D(),yield await R(),yield await I(),yield await T()}finally{}}),[b,D,R,T,N,x,I]);(0,c.Z)((async([t])=>{const n=null===e||void 0===e?void 0:e.renderGuid;n&&n!==t&&B()}),[null===e||void 0===e?void 0:e.renderGuid,B]),(0,l.useEffect)((()=>{const e=p.addListenerAsync(r.Ru.RELOAD,(async()=>{await Q()}));return()=>e.dispose()}),[p,Q])}},14598:(e,t,n)=>{n.d(t,{QM:()=>a,q2:()=>u});var r=n(60564),i=n.n(r),o=n(58689),s=n(81158);function a(e,t){const n=document.createElement("input");n.type="file",n.accept=e,n.multiple=!0,n.onchange=()=>{var e;null!==(e=n.files)&&void 0!==e&&e.length&&t(n.files)},n.click()}const d="index.html";function c(e,t){return e.find((function(e){return e.name.toLowerCase().endsWith(t)}))}async function l(e,t,n){return await(0,o.bc)(e,(async e=>{e=e.replace("\\","/");const n=(0,o.$l)(e);return t(e,n)}),n)}async function u(e,t,n){if(e){switch(function(e){const t=e.split(".");return t[t.length-1].toLowerCase()}(e.name)){case"zip":return async function(e,t,n){var r=new(i());const{files:s}=await r.loadAsync(e),a=Object.keys(s).map((e=>s[e])),l=s[d]||c(a,d)||c(a,".html")||c(a,".htm");if(l){const e=l.name.split("/"),r=document.location.pathname.split("/"),i=document.location.origin+r.slice(0,r.length-e.length).join("/")+"/",a=await l.async("text");return await(0,o.bc)(a,(async e=>{(e=e.replace("\\","/")).startsWith(".")&&(e=e.substring(1)),e.startsWith("/")&&(e=e.substring(1)),e.startsWith(i)&&(e=e.substring(i.length));const n=s[e];if(n){const e=n.name,r=await n.async("blob");return t(r,e)}const r=(0,o.$l)(e);return t(e,r)}),n)}}(e,t,n);case"eml":{const r=await e.text(),i=(0,s.bZ)(r);if(i instanceof Error)throw i;const o="string"===typeof i?i:i.html;if("undefined"===typeof o)throw new Error("Eml not contains text/html");return l(o,t,n)}default:return l(await e.text(),t,n)}}}},44396:(e,t,n)=>{n.d(t,{Q:()=>a});var r=n(12231),i=n(70609);const o=100;class s extends r.m{constructor(e,t,n,r){super(e,t,n,r),this._onScrollDisposable=null,this._editor=e}updateColorDecorators(e){if(this._onScrollDisposable&&(this._onScrollDisposable.dispose(),this._onScrollDisposable=null),e.length>=500){const t=this._editor;let[n,r]=[Number.MAX_VALUE,Number.MIN_VALUE];const i=()=>{const i=t.getVisibleRanges(),[s,a]=i.reduce(((e,{startLineNumber:t,endLineNumber:n})=>[Math.min(t,e[0]),Math.max(n,e[1])]),[Number.MAX_VALUE,Number.MIN_VALUE]);if(n-s>o||a-r>o){let t=e.filter((({colorInfo:e})=>{const{startLineNumber:t,endLineNumber:n}=e.range;return s-t<o&&n-a<o}));super.updateColorDecorators(t)}};this._onScrollDisposable=t.onDidScrollChange(i),i()}else super.updateColorDecorators(e)}dispose(){var e;null===(e=this._onScrollDisposable)||void 0===e||e.dispose(),super.dispose()}}function a(){(0,i.D0)(s.ID,(()=>s))}},36671:(e,t,n)=>{n.d(t,{h:()=>E});var r=n(92810),i=n(70609),o=n(85163),s=n(32411),a=n(64037),d=n(71157),c=n(45934),l=n(86286),u=n(23287),A=n(39217),f=n(45695),m=n(77509),p=n(83863);const v=1e3,g=1e3,h=10,y="iframe_errors";function E(e,t){const{__:n}=(0,u.s9)(),E=(0,f.QC)(),C=(0,s.aD)(e),{error:w}=(0,d.hN)(),b=(0,r.useRef)(0),S=(0,r.useRef)(!1),D=(0,c.d4)(l.C1),R=(0,r.useCallback)((e=>new Promise(((t,n)=>{const r=E.addListener(o.Ru.SANDBOX_READY,(()=>{r.dispose(),t()}));e&&setTimeout((()=>{r.dispose(),n("timeout")}))}))),[E]),I=(0,r.useCallback)((r=>{R(g).catch((e=>console.log(e))).finally((()=>{Promise.resolve().then((()=>{if(!S.current){b.current++;for(let e=0;e<b.current;e++)C.canUndo()?C.undo():S.current=!0;setTimeout((()=>{if(0===--b.current){const i={past:C.getPast().slice(0,h),future:C.getFuture(),errorResolved:!S.current,text:e.getValue(),message:r.message,stack:r.stack,userId:null===D||void 0===D?void 0:D.id,entityId:null===t||void 0===t?void 0:t.id,entityType:document.location.pathname.indexOf("emails")>0?"email":"block"};console.log(i),w({id:"IFRAME_ERROR",data:i,message:n("Something went wrong")}),A.CJ.post(y,i).catch((e=>console.log(e))),S.current=!1}}),g)}}))}))}),[C,e,w,null===D||void 0===D?void 0:D.id,null===t||void 0===t?void 0:t.id,n,R]);(0,a.A)(o.Ru.APPLICATION_DOMPARSER_ERROR,I),(0,r.useEffect)((()=>{let n=null,r=0;function s(e){const t=[];for(const{rangeOffset:n,rangeLength:r,text:i}of e.changes)t.push({range:{start:n,end:n+r},text:i});return t}let a=!1;const d=new m.j;return d.addDisposable((0,p.Og)(e,(e=>(async e=>{if(a)await E.sendAsync(o.Ru.SANDBOX_UPDATE_ENTITY,{edits:[s(e)],guid:t.renderGuid});else if(n)n.push(e);else{n=[e];do{const e=n.splice(0,n.length);await E.sendAsync(o.Ru.SANDBOX_UPDATE_ENTITY,{edits:e.map(s),guid:t.renderGuid})}while(n.length);n=null}})(e).catch((e=>console.log(e)))))),d.addDisposable(E.addListener(o.Ru.APPLICATION_UPDATE_ENTITY,(function({guid:n,edits:o,pushUndoStop:s}){if(e&&n===t.renderGuid)try{a=!0;const t=(0,i.yc)();let n=t.canUndo(e.uri),d=t.canRedo(e.uri);const c=o.map((({text:t,range:n})=>{const r=e.getPositionAt(n.start),i=e.getPositionAt(n.end);return{text:t,range:{startColumn:r.column,startLineNumber:r.lineNumber,endColumn:i.column,endLineNumber:i.lineNumber}}}));s||n||d?e.pushEditOperations([],c,(()=>null)):e.applyEdits(c),!1!==s&&(r&&clearTimeout(r),r=setTimeout((()=>{e.pushStackElement(),r=0}),v))}finally{a=!1}}))),()=>{d.dispose(),r&&clearTimeout(r)}}),[e,E,t.renderGuid])}},32411:(e,t,n)=>{n.d(t,{$Z:()=>l,TW:()=>d,aD:()=>c,fn:()=>u,kx:()=>a});var r=n(70609),i=n(92810),o=n(71070),s=n(11305);const a=(0,i.createContext)(null);function d(e){const t=(0,r.yc)(),[n,o]=(0,i.useState)({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)});return(0,i.useEffect)((()=>{const n=e.onDidChangeContent((()=>{setTimeout((()=>o({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)})))}));return()=>{n.dispose()}}),[e,t]),n}function c(e){function t(e){var t;const n=(null===e||void 0===e||null===(t=e.actual)||void 0===t?void 0:t._data)||new s.Ov;return n instanceof s.Ov?n:s.Ov.deserialize(n)}const n=(0,r.yc)();return{undo:()=>n.undo(e.uri),redo:()=>n.redo(e.uri),clear:()=>n.removeElements(e.uri),getPast:()=>{var r,i;return(null===(r=n._editStacks.get(e.uri.toString()))||void 0===r||null===(i=r._past)||void 0===i?void 0:i.map(t))||[]},getFuture:()=>{var r,i;return(null===(r=n._editStacks.get(e.uri.toString()))||void 0===r||null===(i=r._future)||void 0===i?void 0:i.map(t))||[]},canUndo:()=>n.canUndo(e.uri),canRedo:()=>n.canRedo(e.uri)}}function l(e="",t="html"){const n=o.editor.createModel(e,t);return n.setEOL(o.editor.EndOfLineSequence.LF),n}function u(){return(0,i.useContext)(a)}},83863:(e,t,n)=>{n.d(t,{Og:()=>s,SF:()=>o,po:()=>i});const r=new Set;function i(e){return r.add(e),{dispose(){o(e)}}}function o(e){r.delete(e)}function s(e,t){let n=e.getVersionId(),i=[];const o=e.onDidChangeContent((o=>{if(o.versionId>n+1){let s=e.onDidChangeContent((a=>{if(o.versionId===n+1)try{r.has(e)||t(o)}catch(d){console.log(d)}finally{n=o.versionId;let e=i.indexOf(s);e>=0&&i.splice(e,1),s.dispose()}}));i.push(s)}else try{r.has(e)||t(o)}catch(s){console.log(s)}finally{n=o.versionId}}));return{dispose:()=>{o.dispose(),i.forEach((e=>e.dispose()))}}}},70609:(e,t,n)=>{n.d(t,{D0:()=>s,yc:()=>a});var r=n(50051),i=n(75793),o=n(24554);function s(e,t){const n=r.dS.getEditorContributions().find((t=>t.id===e));if(!n)throw new Error(`No contribution ${e}`);n.ctor=t(n)}function a(){return e=o.$D,i.QE.get(e);var e}},71157:(e,t,n)=>{n.d(t,{Gy:()=>A,O5:()=>p,hN:()=>m,x_:()=>f});var r=n(13522),i=n(93982),o=n(92810),s=n(33206),a=n(13329),d=n(28316),c=n(814),l=n(70082);const u="bottomRight";function A(e){return{id:e.id,code:e.html,title:e.title,subject:e.subject,preheader:e.preheader}}function f(e){return{id:e.id,code:e.html,title:e.title}}function m(){const e=(0,i.ml)(r.A.ON_NOTIFICATION),{notification:t}=s.A.useApp(),n=(0,o.useCallback)(((n,r)=>{n.type||(n={...n,type:"info"}),e.fire((0,c.TB)({id:n.id,type:n.type,data:n.data,innerException:n.innerException})).then((e=>{if(e.every((e=>!1!==e))){n={...n};for(const t of e)"object"===typeof t&&Object.assign(n,t,t.style?{style:{...t.style,...n.style}}:{},t.props?{props:{...t.props,...n.props}}:{},t.className?{className:n.className?`${n.className} ${t.className}`:t.className}:{});r||((n=Object.assign(n,...e.filter((e=>"object"===typeof e)))).placement||(n.placement=u),t[n.type]?t[n.type](n):(console.log(n.type),console.log(n.id),n.message&&console.log(n.message)))}}))}),[t,e]),a=(0,o.useCallback)(((e,t)=>n({...e,type:"error"},t)),[n]),d=(0,o.useCallback)(((e,t)=>n({...e,type:"success"},t)),[n]),A=(0,o.useCallback)(((e,t)=>n({...e,type:"warning"},t)),[n]),f=(0,o.useCallback)(((e,t,n,r,i=u)=>{var o,s;n&&a({id:e,data:t,message:n.data instanceof Error?"":(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(o=n.data)||void 0===o?void 0:o.code)||n.status||n}}),description:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(s=n.data)||void 0===s?void 0:s.message)||n.error}}),placement:i,innerException:(null===n||void 0===n?void 0:n.data)instanceof Error?n.data:n},r)}),[a]);return(0,o.useMemo)((()=>({notify:n,success:d,error:a,warning:A,fromError:f})),[n,d,a,A,f])}function p(){const{notify:e}=m();(0,a.D3)(d.Sb,e)}},23287:(e,t,n)=>{n.d(t,{CY:()=>a,s9:()=>d});var r=n(92810),i=n(42108);function o(e){return{__:e.__.bind(e),_x:e._x.bind(e),_n:e._n.bind(e),_nx:e._nx.bind(e),sprintf:i.nv,isRTL:e.isRTL.bind(e),hasTranslation:e.hasTranslation.bind(e)}}const s=(0,r.createContext)(o(i.y3));function a(e){const{children:t,i18n:n=i.y3}=e,[,a]=(0,r.useReducer)((()=>[]),[]);(0,r.useEffect)((()=>n.subscribe(a)),[n]);const d=(0,r.useMemo)((()=>o(n)),[n]);return(0,r.createElement)(s.Provider,{value:d},t)}const d=()=>(0,r.useContext)(s)},42068:(e,t,n)=>{n.d(t,{Z:()=>i,c:()=>o});var r=n(92810);const i=(e,t)=>{const n=(0,r.useRef)();n.current=e;const i=(0,r.useRef)(void 0);(0,r.useEffect)((()=>{null!==i.current&&n.current(i.current||[]),i.current=t}),t)};function o(e,t){const n=(0,r.useRef)(),i=(0,r.useRef)(),[o,s]=(0,r.useState)(0),a=(0,r.useCallback)((()=>{n.current&&(n.current=void 0,i.current=void 0,s(0))}),[s]);(0,r.useEffect)((()=>()=>a()),[a]);const d=(0,r.useCallback)(e,t);(0,r.useEffect)((()=>{if(o>0){const e=n.current;e&&e.next().then((e=>{e.done?(i.current.resolve(e.value),a()):s(o+1)}),(e=>{i.current.reject(e),a()}))}}),[o,s,a]);return[(0,r.useCallback)(((...e)=>(a(),n.current=d(...e),s(1),new Promise(((e,t)=>{i.current={resolve:e,reject:t}})))),[a,d,s]),a]}},69156:(e,t,n)=>{n.d(t,{A5:()=>l,FN:()=>c,Hk:()=>d,c8:()=>u});var r=n(92810),i=n(85163),o=n(45695);const s=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]"),a=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=light]"),d=e=>{let t,n;e===i.IJ?(t=i.vd,n=i.F3):(t=e===i.T?i.y2:i.CJ,n=e===i.nd?i.y2:i.CJ),[...a].forEach((e=>{e.media=t})),[...s].forEach((e=>{e.media=n}))},c=(e={})=>{const t=document.querySelector("head"),n=document.createElement("style");if(n.type="text/css",n.dataset.themeVaribalse=!0,Object.entries(e).length){let r="";Object.entries(e).forEach((([e,t])=>{"object"!==typeof t&&(r+=`\t--${e}: ${t};\n`)})),r=`.blocks-body, .blocks-app, .ant-modal-root, .ant-tooltip, .ant-notification {\n${r}}`,n.appendChild(document.createTextNode(r));const i=t.querySelector('[data-theme-varibalse="true"]');i?t.replaceChild(n,i):t.insertBefore(n,t.firstChild)}},l=e=>{const t=document.body;t.classList.contains(e)||setTimeout((()=>{t.classList.remove(e===i.nd?i.T:i.nd),t.classList.add(e)}),200)},u=()=>{const e=(0,o.XW)();return(0,r.useCallback)((()=>{const t=window.localStorage.getItem(i.V0.em_color_scheme),n=matchMedia(i.F3).matches?i.nd:i.T,r=t||n;e({operation:i.Ru.UPDATE_PREVIEW,theme:r})}),[e])}},31770:(e,t,n)=>{function r(e){return e}function i({data:e,...t},n){return t.error?t:{data:n(e,t.meta),...t}}function o(e){return t=>i(t,e)}function s(e){return t=>i(t,((t,n)=>t.hasOwnProperty("previous")?e(t.previous,n):e(t,n)))}function a(e){return t=>function({data:e,...t},n){return t.error?t:{data:e.map((e=>n(e,t.meta))),...t}}(t,e)}n.d(t,{Ih:()=>a,PI:()=>s,SA:()=>i,SC:()=>o,ur:()=>r})},84869:(e,t,n)=>{function r(e,t){if("object"===typeof e&&e){t(e);for(const n of Object.values(e))r(n,t)}}function i(e=".blocks-app"){e=`${e} &`;const t=new WeakSet;return{visit:n=>{if(!t.has(n)){const i={};let o;for(const s of Object.keys(n)){const a=n[s];"object"===typeof a&&a?(a._keyframe&&r(a,(e=>t.add(e))),i[s]=a):(o||(o=i[e]={},t.add(o)),o[s]=a)}return i}return n}}}n.d(t,{A:()=>i})},44824:(e,t,n)=>{n.d(t,{e:()=>i});var r=n(85974);async function i(e,t){if("amp"===t){for(const t of e.querySelectorAll(".em-amp-show-disabled"))t.remove();await(0,r.Sc)(e,{mappedTags:{script:"___script"}})}else if("html"===t){for(const t of e.querySelectorAll(".em-amp-show-only"))t.remove();(0,r.Km)(e,{mappedTags:{script:"___script"}})}}},78451:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(92810),i=n(45934),o=n(64617),s=n(17581),a=n(65983);const d=()=>{const e=(0,i.wA)(),t=(0,i.d4)(a.zn);let n=(0,o.zy)();(0,r.useEffect)((()=>{/emails\/[0-9]+$/.test(n.pathname)||t&&e(s.GY.util.invalidateTags([{type:"Emails",id:+t}]))}),[n,e,t])}},64037:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(92810),i=n(45695);function o(e,t){const n=(0,i.QC)();(0,r.useEffect)((()=>{const r=n.addListener(e,t);return()=>{r.dispose()}}),[n,e,t])}},31844:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(92810),i=n(64617),o=n(45934),s=n(86286),a=n(84568);const d=e=>{const t=(0,o.d4)(s.C1),[n,d]=(0,r.useState)({owner:!1,admin:!1}),c=(0,i.KC)(),{data:l}=(0,a.fo)(e,{skip:!e||!t.id||!(null!==c&&void 0!==c&&c.isUninitialized)}),u=(null===c||void 0===c?void 0:c.data)||l;return(0,r.useEffect)((()=>{if(u){var e,n;const{owner:r,admins:i,users:o}=u.members,s=i?i.map((e=>e.ID)):i,a=o?o.map((e=>e.ID)):o;d({owner:(null===(e=r.ID)||void 0===e?void 0:e.toString())===(null===(n=t.id)||void 0===n?void 0:n.toString()),admin:s&&s.includes(t.id),user:a&&a.includes(t.id)})}}),[u,t.id]),n}},3289:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(92810),i=n(45934),o=n(64617),s=n(87790),a=n(85163),d=n(90070);const c=()=>{const e=(0,i.wA)(),t=(0,d.p6)(),n=(0,i.d4)(s.Sl);let c=(0,o.zy)();(0,r.useEffect)((()=>{c.pathname.endsWith("/new")||n&&(e((0,s.X8)()),t.remove(a.A9.em_new_block))}),[c,n,e,t])}},19366:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(92810),i=n(45934),o=n(64617),s=n(8493),a=n(85163),d=n(90070);const c=()=>{const e=(0,d.p6)(),t=(0,i.wA)(),n=(0,i.d4)(s.$S);let c=(0,o.zy)();(0,r.useEffect)((()=>{c.pathname.endsWith("/new")||(e.remove(a.A9.em_new_email),e.remove(a.A9.em_template_email),n&&t((0,s.Et)()))}),[c,n,t,e])}},22197:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(85163);const i=e=>{if(!r.EW.isPlugin){let t="";t="EmailMaker",document.title=e+" - "+t}}},54416:(e,t,n)=>{e.exports=n.p+"static/media/frame_dark.318d7ed5.png"},98578:(e,t,n)=>{e.exports=n.p+"static/media/frame_light.22a9b4ec.png"},68777:(e,t,n)=>{e.exports=n.p+"static/media/frame_template_gallery.85693b39.png"},58889:e=>{e.exports=JSON.parse('{"yG":"iframe.2f19127efd75135e7ba7.html","l5":"iframe-eblock.2f19127efd75135e7ba7.html"}')}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[6567],{84612:(e,t,a)=>{a.d(t,{EQ:()=>u,YG:()=>d,Zs:()=>n,gb:()=>l});var r=a(33298),o=a(14315),i=a(44141);const s="Ai",n=(0,r.xP)({reducerPath:"AiApi",tagTypes:[s],baseQuery:(0,i.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/save-file/v1/"}),endpoints:e=>({sendMessage:e.mutation({queryFn:({body:e},t)=>(0,i.KU)(t).saveFile.ai_create(e,{type:o.cM.FormData})}),getDialog:e.query({queryFn:({entity_id:e,connection:t="chat"},a)=>(0,i.KU)(a).saveFile.ai_status_list({connection:t,entity_id:e}),providesTags:e=>null!==e&&void 0!==e&&e.documents?[...e.documents.map((({id:e})=>({type:s,id:e}))),{type:s,id:"LIST"}]:[{type:s,id:"LIST"}]})})}),{useSendMessageMutation:u,useGetDialogQuery:l,useLazyGetDialogQuery:d}=n},58819:(e,t,a)=>{a.d(t,{Ll:()=>d,MN:()=>c,Uu:()=>n,y4:()=>p});var r=a(33298),o=a(44141),i=a(85163),s=a(14004);const n=(0,r.xP)({reducerPath:"AiApiGenerator",baseQuery:s.i,endpoints:e=>({generateIdForTask:e.mutation({queryFn:(e,t)=>(0,o.u$)(t).tasks.tasksControllerCreateTask(e).then((e=>e))}),clearAiChat:e.query({queryFn:(e,t)=>(0,o.KU)(t).aiGenerator.clear_history_list(e).then((e=>e))}),getGeneratedContent:e.query({queryFn:e=>({data:[]}),async onCacheEntryAdded({id:e,setError:t},a){const{updateCachedData:r,cacheEntryRemoved:s}=a;let n="https://app.emailmaker.ru/api/wp-json"===(0,o.KU)(a).baseUrl.replaceAll(/[\\/]$/g,"")?i.e3.maker:i.e3.blocks;const u=new EventSource(`${n}/tasks/${e}`);u.onmessage=e=>{const t=JSON.parse(e.data);r((e=>{e.push(t)}))},u.onerror=e=>{t("Error connecting to EventSource"),u.close()},await s,u.close()}}),getAiGenerateStatus:e.mutation({query:e=>({url:"/constructor/v1/ai-save-task",method:"POST",body:e})})})}),{useGenerateIdForTaskMutation:u,useGetGeneratedContentQuery:l,useLazyClearAiChatQuery:d,useLazyGetGeneratedContentQuery:p,useGetAiGenerateStatusMutation:c}=n},53200:(e,t,a)=>{a.d(t,{B:()=>s,N:()=>n});var r=a(33298),o=a(14315),i=a(44141);const s=(0,r.xP)({reducerPath:"addUserToProjectApi",baseQuery:(0,i.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/user_to_project/v1/add_user"}),endpoints:e=>({addUserToProject:e.mutation({queryFn:(e,t)=>(0,i.KU)(t).userToProject.add_user_create(e,{type:o.cM.FormData})})})}),{useAddUserToProjectMutation:n}=s},39990:(e,t,a)=>{a.d(t,{Q2:()=>d,b9:()=>y,Lj:()=>h,CR:()=>c,W5:()=>g,i2:()=>f,on:()=>m,hZ:()=>_});var r=a(33298),o=a(14315),i=a(31770);function s({title:{rendered:e}={rendered:""},acf:{limits:t,price:a},...r}){return{...r,title:e,limits:t,price:a}}var n=a(814);function u({acf:{autosaves:e,hide_mergetags:t,theme:a,newsletter_consent:r,code_editor:o,counters:i,subscription:s,subscription_end:u,recurring_payments:l,subscription_id:d,promocode:p,subscription_amount:c,enterprise_users_limit:m,enterprise_price:y,enterprise_12_price:_,privacy_policy_agreement:g,last_used_project:f,email_confirmation:h,email_builder_config:b},id:v,...T}){return{...T,id:(0,n.WY)(v),autosaves:e,hide_mergetags:t,theme:a,newsletter_consent:r,code_editor:o,counters:Object.keys(i).reduce(((e,t)=>(e[t]=Number(i[t]),e)),{}),subscription:s,subscription_end:u,recurring_payments:l,subscription_id:d,promocode:p,subscription_amount:c,enterprise_users_limit:m,enterprise_price:y,enterprise_12_price:_,privacy_policy_agreement:g,last_used_project:f,email_confirmation:h,email_builder_config:b}}var l=a(44141);const d=(0,r.xP)({reducerPath:"authorizationApi",baseQuery:(0,l.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({userRegistration:e.mutation({queryFn:(e,t)=>(0,l.KU)(t).wp.users_register_create({body:e,type:o.cM.Json})}),emailUserRegistration:e.mutation({query:e=>({url:`${"https://app.emailmaker.ru/api/".replaceAll(/[\\/]$/g,"")}/wp-json/auth/v1/users/register`,method:"POST",body:e})}),getMailConfirmation:e.query({queryFn:(e,t)=>(0,l.KU)(t).wp.confirmation_list({...e})}),getSchema:e.query({queryFn:(e,t)=>(0,l.KU)(t).wp.users_me_list(void 0,{method:"OPTIONS",extraQuery:{_fields:"schema"}})}),getMe:e.query({queryFn:(e,t)=>(0,l.KU)(t).wp.users_me_list(null).then((0,i.SC)((e=>e instanceof Array?e[0]:e))).then((0,i.SC)(u))}),getUser:e.query({queryFn:(e,t)=>(0,l.KU)(t).wp.users_detail({id:e}).then((0,i.SC)(u))}),editMe:e.mutation({queryFn(e,t){const a=(0,l.KU)(t),r=(0,n.TB)(function({autosaves:e,theme:t,newsletter_consent:a,code_editor:r,counters:o,subscription:i,subscription_end:s,recurring_payments:u,subscription_id:l,promocode:d,subscription_amount:p,enterprise_users_limit:c,enterprise_price:m,enterprise_12_price:y,privacy_policy_agreement:_,locale:g,last_used_project:f,email_confirmation:h,email_builder_config:b,id:v,...T}){return{...T,id:(0,n.mQ)(v),locale:g,acf:{autosaves:e,theme:t,newsletter_consent:a,code_editor:r,counters:o,subscription:i,subscription_end:s,recurring_payments:u,subscription_id:l,promocode:d,subscription_amount:p,enterprise_users_limit:c,enterprise_price:m,enterprise_12_price:y,privacy_policy_agreement:_,last_used_project:f,email_confirmation:h,email_builder_config:b}}}(e),!0);return a.wp.users_me_create(r,{type:o.cM.Json}).then((0,i.SC)(u))}}),getSubscriptions:e.query({queryFn:(e,t)=>(0,l.KU)(t).wp.subscription_list(void 0).then((0,i.Ih)(s))})})}),{useUserRegistrationMutation:p,useGetMeQuery:c,useLazyGetMeQuery:m,useEditMeMutation:y,useLazyGetSchemaQuery:_,useGetSubscriptionsQuery:g,useLazyGetMailConfirmationQuery:f,useEmailUserRegistrationMutation:h}=d},55701:(e,t,a)=>{a.d(t,{VM:()=>y,pP:()=>P,Gr:()=>q,yW:()=>A,OZ:()=>k,J4:()=>h,bg:()=>g,SB:()=>_,h1:()=>v,OD:()=>T,kz:()=>E,lx:()=>b,R2:()=>f});var r=a(33298),o=a(14315),i=a(31770),s=a(814),n=a(71210);function u({id:e,type:t,title:{rendered:a}={rendered:""},excerpt:r,author:o,acf:{subject:i,description:u,html:l,project:d,related_email:p,tags:c,type:m,is_template:y,lock:_},...g}){return{...g,id:String(e),author:String(o),renderGuid:(0,n.l)(),description:u,html:l,excerpt:null===r||void 0===r?void 0:r.rendered,project:(0,s.pT)(d)?d.ID:d,project_author:(0,s.pT)(d)?d.post_author:void 0,project_title:(0,s.pT)(d)?d.post_title:void 0,tags:c,is_template:y,type:m,related_email:(0,s.WY)((0,s.pT)(p)?p.ID:p),title:a,lock:_}}function l({title:e,subject:t,description:a,renderGuid:r,html:o,project:i,tags:n,type:u,related_email:l,is_template:d,lock:p,author:c,...m}){return{...m,author:(0,s.mQ)(c),title:e,acf:{description:a,related_email:(0,s.mQ)(l),html:o,project:i,tags:n,type:u,is_template:d,lock:p}}}function d({id:e,title:{rendered:t}={rendered:""},acf:{html:a},excerpt:r,parent:o,author:i,...n}){return{...n,id:(0,s.WY)(e),author:(0,s.WY)(i),parent:(0,s.WY)(o),title:t,html:a,excerpt:(0,s.pT)(r)?r.rendered:r}}var p=a(44141),c=a(30725),m=a(85163);const y=(0,r.xP)({reducerPath:"blocksApi",tagTypes:["Blocks","TemplatesBlocks","ParentsBlocks","Block"],baseQuery:(0,p.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getBlocks:e.query({queryFn(e,t){var a,r;const o=(0,p.KU)(t),s={order:"desc",orderby:"modified"},n={};if(e.notEmbed||(n._embed=""),e.projectId&&(n._embed="author",n._fields="id,title,blocktags,blockfolder,group,modified,date,type,acf.lock,acf.project.ID,acf.type,author,acf.is_template,acf.html",s["filter[meta_key]"]="project",s["filter[meta_value]"]=e.projectId),e.fields&&(n._fields=e.fields),e.page&&(s.page=e.page),e.order&&(s.order=e.order),e.orderby&&(s.orderby=e.orderby),e.folderTag&&e.folderTag!==m.y2?(s["filter[tax_query][relation]"]="AND",s["filter[tax_query][0][taxonomy]"]="blockfolder",s["filter[tax_query][0][field]"]="id",s["filter[tax_query][0][terms]"]=e.folderTag):!e.hasOwnProperty("folderTag")||e.folderTag===m.y2&&("object"!==typeof e.folderTag||null!==e.folderTag)||null!==(a=e.tags)&&void 0!==a&&a.length||"trash"===e.status||(s["filter[tax_query][0][taxonomy]"]="blockfolder",s["filter[tax_query][0][operator]"]="NOT EXISTS"),(null===(r=e.tags)||void 0===r?void 0:r.length)>0&&"trash"!==e.status){s["filter[tax_query][relation]"]="AND";for(let t=0,a=e.tags.length;t<a;t++){const a=e.tags[t];s[`filter[tax_query][${t+1}][taxonomy]`]="blocktags",s[`filter[tax_query][${t+1}][field]`]="id",s[`filter[tax_query][${t+1}][terms]`]=a}}return e.type&&(s["filter[meta_query][2][key]"]="type",s["filter[meta_query][2][value]"]=e.type),e.name&&(s.search=e.name),e.pageSize&&(s.per_page=e.pageSize),"trash"===e.status&&(n.status="trash"),o.wp.eblock_list(s,{extraQuery:n}).then((0,i.Ih)(u))},providesTags:(e,t,a,r)=>{var o,i;const s=null===r||void 0===r?void 0:r.response,n=(null===s||void 0===s?void 0:s.headers.get("X-WP-Total"))||0;return e?[...e.map((({id:e})=>{var t;return{type:"Blocks",id:`${a.folderTag||(null===(t=a.tags)||void 0===t?void 0:t[0])||a.projectId}_${a.page}_${a.status}_${n}`}})),{type:"Blocks",id:`${a.folderTag||(null===(o=a.tags)||void 0===o?void 0:o[0])||a.projectId}_${a.page}_${a.status}_${n}`}]:[{type:"Blocks",id:`${a.folderTag||(null===(i=a.tags)||void 0===i?void 0:i[0])||a.projectId}_${a.page}_${a.status}_${n}`}]},keepUnusedDataFor:0}),getBlocksSchema:e.query({queryFn:(e,t)=>(0,p.KU)(t).wp.eblock_list(void 0,{method:"OPTIONS",extraQuery:{_fields:"schema.properties.acf"}})}),getParentEmailBlocks:e.query({queryFn(e,t){var a;const r=(0,p.KU)(t),o={"filter[meta_query][0][compare]":"LIKE"},s={};if(e.notEmbed||(s._embed=""),e.emailId&&(o["filter[meta_query][0][key]"]="related_email",o["filter[meta_query][0][value]"]=e.emailId),e.fields&&(s._fields=e.fields),e.page&&(o.page=e.page),(null===(a=e.tags)||void 0===a?void 0:a.length)>0){o["filter[tax_query][relation]"]="AND";for(let t=0,a=e.tags.length;t<a;t++){const a=e.tags[t];o[`filter[tax_query][${t}][taxonomy]`]="blocktags",o[`filter[tax_query][${t}][field]`]="id",o[`filter[tax_query][${t}][terms]`]=a}}return e.type&&(o["filter[meta_query][2][key]"]="type",o["filter[meta_query][2][value]"]=e.type),e.name&&(o.search=e.name),e.pageSize&&(o.per_page=e.pageSize),r.wp.eblock_list(o,{extraQuery:s}).then((0,i.Ih)(u))},providesTags:e=>e?[...e.map((({id:e})=>({type:"ParentsBlocks",id:e}))),{type:"ParentsBlocks",id:"LIST"}]:[{type:"ParentsBlocks",id:"LIST"}],keepUnusedDataFor:0}),getTemplateBlocks:e.query({queryFn:(e,t)=>{var a;const r=(0,p.KU)(t),o={"filter[meta_query][1][key]":"is_template","filter[meta_query][1][value]":"1",orderby:"modified",order:"desc"},s={};if(e.notEmbed||(s._embed=""),e.fields&&(s._fields=e.fields),e.page&&(o.page=e.page),(null===(a=e.tags)||void 0===a?void 0:a.length)>0){o["filter[tax_query][relation]"]="AND";for(let t=0,a=e.tags.length;t<a;t++){const a=e.tags[t];o[`filter[tax_query][${t}][taxonomy]`]="blocktags",o[`filter[tax_query][${t}][field]`]="id",o[`filter[tax_query][${t}][terms]`]=a}}return e.type&&(o["filter[meta_query][2][key]"]="type",o["filter[meta_query][2][value]"]=e.type),e.name&&(o.search=e.name),e.pageSize&&(o.per_page=e.pageSize),r.wp.eblock_list(o,{extraQuery:s}).then((0,i.Ih)(u))},providesTags:e=>e?[...e.map((({id:e})=>({type:"TemplatesBlocks",id:e}))),{type:"TemplatesBlocks",id:"LIST"}]:[{type:"TemplatesBlocks",id:"LIST"}],keepUnusedDataFor:0}),getBlock:e.query({queryFn:(e,t)=>(0,p.KU)(t).wp.eblock_detail({id:(0,s.mQ)(e)},{extraQuery:{_embed:""}}).then((0,i.SC)(u)),providesTags:(e,t,a)=>[{type:"Block",id:a}],keepUnusedDataFor:0}),getBlockHistory:e.query({queryFn:({blockId:e,page:t=1},a)=>(0,p.KU)(a).wp.eblock_revisions_detail({parent:e,per_page:20,page:t},{extraQuery:{_fields:"author,slug,date,modified,title,acf.html,acf.common_styles,id"}}).then((a=>(0,i.SA)(a,((a,r)=>({data:a.filter((e=>e.acf.html)).map((e=>({...e,acf:{...e.acf,html:e.acf.html}}))).map(d),totalPages:+r.response.headers.get("X-WP-TotalPages"),args:{blockId:e,page:t}}))))),keepUnusedDataFor:0}),addBlock:e.mutation({queryFn:(e,t)=>(0,p.KU)(t).wp.eblock_create({...l(e),status:"publish"},{type:o.cM.Json}).then((0,i.SC)(u)),invalidatesTags:[{type:"Blocks",id:"LIST"}]}),editBlock:e.mutation({queryFn:(0,c.p)((e=>({blockId:t,source:a,...r},n)=>{const d=(0,p.KU)(e),c=(0,s.TB)(l(r));return d.wp.eblock_partial_update(t,c,{type:o.cM.Json,extraQuery:{_embed:"wp:term"}}).then((0,i.SC)(u))}))}),deleteBlock:e.mutation({queryFn(e,t){const a=(0,p.KU)(t);let r,o;return"object"===typeof e?(r=e.id,o=e.force):(r=e,o=!1),a.wp.eblock_delete(r,{force:o}).then((0,i.PI)(u))},invalidatesTags:(e,t,a)=>[{type:"Blocks",id:a}]}),addTag:e.mutation({queryFn:(e,t)=>(0,p.KU)(t).wp.blocktags_create({...e},{type:o.cM.Json})}),getDeletableTag:e.query({queryFn:([e,t],a)=>(0,p.KU)(a).wp.eblock_list({status:["private"],"filter[meta_key]":"project","filter[meta_value]":e,blocktags:[t]},{extraQuery:{"_fields[]":"blocktags"}}).then((0,i.Ih)(u))}),autoSaveBlock:e.mutation({queryFn({blockId:e,body:t},a){const r=(0,p.KU)(a),n=function({parent:e,title:t,html:a,project:r,author:o,...i}){return{...i,author:(0,s.mQ)(o),parent:(0,s.mQ)(e),title:t,"acf[html]":a,"acf[project]":r}}(t);return r.wp.eblock_autosaves_create(e,n,{type:o.cM.Json}).then((0,i.SC)(d))}})})}),{useGetBlocksQuery:_,useGetBlockQuery:g,useLazyGetBlockQuery:f,useGetBlockHistoryQuery:h,useLazyGetBlockHistoryQuery:b,useGetBlocksSchemaQuery:v,useGetParentEmailBlocksQuery:T,useAddBlockMutation:P,useEditBlockMutation:k,useAddTagMutation:q,useAutoSaveBlockMutation:A,useGetTemplateBlocksQuery:E}=y},18777:(e,t,a)=>{a.d(t,{Jg:()=>d,z2:()=>c,HI:()=>m,vn:()=>_,kk:()=>y,Cf:()=>p});var r=a(33298),o=a(14315),i=a(31770),s=a(814);function n({id:e,post:t,parent:a,author:r,content:{rendered:o},acf:{status:i,target_id:n},...u}){return{...u,id:(0,s.WY)(e),post:(0,s.WY)(t),parent:(0,s.WY)(a),author:(0,s.WY)(r),content:o,target_id:n,comment_status:i}}var u=a(44141);const l="Comments",d=(0,r.xP)({reducerPath:"commentsApi",tagTypes:[l],baseQuery:(0,u.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getComments:e.query({queryFn:function(e,t){return(0,u.KU)(t).wp.comments_list({post:[(0,s.mQ)(e)],per_page:50,order:"asc"}).then((0,i.Ih)(n))},providesTags:e=>e?[...e.map((({id:e})=>({type:l,id:e}))),{type:l,id:"LIST"}]:[{type:l,id:"LIST"}]}),addComment:e.mutation({queryFn({subjectId:e,author:t,parent:a,content:r,author_name:l,author_email:d,targetId:p},c){const m=(0,u.KU)(c),y={post:(0,s.mQ)(e),author:(0,s.mQ)(t),author_name:l,author_email:d},_={};return r&&(y.content=r),a&&(y.parent=(0,s.mQ)(a)),p&&(_["acf[target_id]"]=p),m.wp.comments_create(y,{type:o.cM.UrlEncoded,extraQuery:_}).then((0,i.SC)(n))},invalidatesTags:[{type:l,id:"LIST"}]}),deleteComment:e.mutation({queryFn:(e,t)=>(0,u.KU)(t).wp.comments_delete(e,{}).then((0,i.PI)(n)),invalidatesTags:[{type:l,id:"LIST"}]}),editComment:e.mutation({queryFn({commentId:e,content:t,status:a,targetId:r},s){const l=(0,u.KU)(s),d={},p={};return t&&(d.content=t),a&&(p["acf[status]"]=a),r&&(p["acf[targetId]"]=r),l.wp.comments_update(e,d,{type:o.cM.UrlEncoded,extraQuery:p}).then((0,i.SC)(n))},invalidatesTags:[{type:l,id:"LIST"}]}),deleteTarget:e.mutation({queryFn:(e,t)=>(0,u.KU)(t).wp.comments_delete(e,{},{extraQuery:{"acf[target_id]":""}}).then((0,i.PI)(n)),invalidatesTags:[{type:l,id:"LIST"}]})})}),{useGetCommentsQuery:p,useAddCommentMutation:c,useDeleteCommentMutation:m,useEditCommentMutation:y,useDeleteTargetMutation:_}=d},56920:(e,t,a)=>{a.d(t,{C:()=>s,F:()=>i});var r=a(33298),o=a(31052);const i=(0,r.xP)({reducerPath:"confirmationMailApi",baseQuery:(0,o.cw)({baseUrl:"https://px0.emailmaker.ru/",responseHandler:e=>e.text()}),endpoints:e=>({getConfirmationMail:e.query({query:({userId:e,email:t})=>({url:`?proxy_url=${encodeURIComponent(`https://webhook.latenode.com/5868/prod/f0da9c0f-ed12-4d23-8a86-b86f7bf1a276?user_id=${e}&user_email=${t}`)}`})})})}),{useLazyGetConfirmationMailQuery:s}=i},21981:(e,t,a)=>{a.d(t,{m4:()=>m});var r=a(33298),o=a(14315),i=a(31770),s=a(91967),n=a(5446),u=a(814),l=a(60317),d=a(44141),p=a(30725),c=a(85163);const m=(0,r.xP)({reducerPath:"elementsApi",tagTypes:["Elements","Element","ElementAutosaves"],baseQuery:(0,d.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getElements:e.query({queryFn(e,t){var a,r;const o=(0,d.KU)(t),n={order:"desc",orderby:"modified"},u={};if(e.notEmbed||(u._embed=""),e.projectId&&(u._embed="author",u._fields="id,title,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID,author,acf.is_template",n["filter[meta_key]"]="project",n["filter[meta_value]"]=e.projectId),e.fields&&(u._fields=e.fields),e.page&&(n.page=e.page),e.order&&(n.order=e.order),e.orderby&&(n.orderby=e.orderby),e.folderTag&&e.folderTag!==c.y2?(n["filter[tax_query][relation]"]="AND",n["filter[tax_query][0][taxonomy]"]="folder",n["filter[tax_query][0][field]"]="id",n["filter[tax_query][0][terms]"]=e.folderTag):e.folderTag===c.y2&&("object"!==typeof e.folderTag||null!==e.folderTag)||null!==(a=e.tags)&&void 0!==a&&a.length||"trash"===e.status||(n["filter[tax_query][0][taxonomy]"]="folder",n["filter[tax_query][0][operator]"]="NOT EXISTS"),(null===(r=e.tags)||void 0===r?void 0:r.length)>0&&"trash"!==e.status){n["filter[tax_query][relation]"]="AND";for(let t=0,a=e.tags.length;t<a;t++){const a=e.tags[t];n[`filter[tax_query][${t+1}][taxonomy]`]="emailtags",n[`filter[tax_query][${t+1}][field]`]="id",n[`filter[tax_query][${t+1}][terms]`]=a}}return e.name&&(n.search=e.name),e.pageSize&&(n.per_page=e.pageSize),"trash"===e.status&&(u.status="trash"),o.wp.email_list(n,{extraQuery:u}).then((0,i.Ih)(s.V))},providesTags:(e,t,a,{response:r})=>{var o,i;const s=(null===r||void 0===r?void 0:r.headers.get("X-WP-Total"))||0;return e?[...e.map((({id:e})=>{var t;return{type:"Elements",id:`${a.folderTag||(null===(t=a.tags)||void 0===t?void 0:t[0])||a.projectId}_${a.page}_${a.status}_${s}`}})),{type:"Elements",id:`${a.folderTag||(null===(o=a.tags)||void 0===o?void 0:o[0])||a.projectId}_${a.page}_${a.status}_${s}`}]:[{type:"Elements",id:`${a.folderTag||(null===(i=a.tags)||void 0===i?void 0:i[0])||a.projectId}_${a.page}_${a.status}_${s}`}]},keepUnusedDataFor:0}),getTemplateElements:e.query({queryFn(e,t){var a;const r=(0,d.KU)(t),o={"filter[meta_query][1][key]":"is_template","filter[meta_query][1][value]":"1","filter[meta_query][0][compare]":"LIKE",orderby:"modified",order:"desc"},n={_embed:"wp:term",_fields:"_embedded,id,title,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID"};if(e.emailId&&(o["filter[meta_query][0][key]"]="parent_email",o["filter[meta_query][0][value]"]=e.emailId),e.fields&&(n._fields=e.fields),e.page&&(o.page=e.page),(null===(a=e.tags)||void 0===a?void 0:a.length)>0){o["filter[tax_query][relation]"]="AND";for(let t=0,a=e.tags.length;t<a;t++){const a=e.tags[t];o[`filter[tax_query][${t}][taxonomy]`]="emailtags",o[`filter[tax_query][${t}][field]`]="id",o[`filter[tax_query][${t}][terms]`]=a}}return e.type&&(o["filter[meta_query][2][key]"]="type",o["filter[meta_query][2][value]"]=e.type),e.name&&(o.search="name"),e.pageSize&&(o.per_page=e.pageSize),r.wp.email_list(o,{extraQuery:n}).then((0,i.Ih)(s.V))},keepUnusedDataFor:0}),getElement:e.query({queryFn:(e,t)=>(0,d.KU)(t).wp.email_detail({id:(0,u.mQ)(e)},{extraQuery:{_embed:"wp:term",_fields:"_embedded,id,author,title,emailtags,folder,group,modified,date,type,\n acf.description,\n acf.html,\n acf.common_styles,\n acf.is_template,\n acf.lock,\n acf.parent_email,\n acf.project,\n acf.secret_hash,\n acf.subject,\n acf.utm_parameters\n "}}).then((0,i.SC)(s.V)),providesTags:(e,t,a)=>[{type:"Email",id:a}],keepUnusedDataFor:0}),getElementHistory:e.query({queryFn:({emailId:e,page:t=1},a)=>(0,d.KU)(a).wp.email_revisions_detail({parent:e,per_page:20,page:t},{extraQuery:{_fields:"author,slug,date,modified,title,acf.html,acf.common_styles,id"}}).then((a=>(0,i.SA)(a,((a,r)=>({data:a.filter((e=>e.acf.html)).map((e=>({...e,acf:{...e.acf,html:e.acf.html}}))).map(n.F),totalPages:+r.response.headers.get("X-WP-TotalPages"),args:{emailId:e,page:t}}))))),providesTags:e=>e?[...e.data.map((({id:e})=>({type:"EmailAutosaves",id:e}))),{type:"EmailAutosaves",id:"LIST"}]:[{type:"EmailAutosaves",id:"LIST"}],keepUnusedDataFor:0}),addElement:e.mutation({queryFn:(0,p.p)((e=>({source:t,...a})=>(0,d.KU)(e).wp.email_create({status:"publish",...(0,s.v)(a)},{type:o.cM.Json}).then((0,i.SC)(s.V)))),invalidatesTags:[{type:"Elements",id:"LIST"}]}),editElement:e.mutation({queryFn:(0,p.p)((e=>({emailId:t,source:a,...r})=>{const n=(0,d.KU)(e),l=(0,u.TB)((0,s.v)(r));return n.wp.email_partial_update(t,l,{type:o.cM.Json,extraQuery:{_embed:"wp:term",_fields:"_embedded,id,author,title,emailtags,folder,group,modified,date,type,acf.description,acf.html,acf.common_styles,acf.is_template,acf.lock,acf.parent_email,acf.project,acf.secret_hash,acf.subject,acf.utm_parameters"}}).then((0,i.SC)(s.V))}))}),deleteElement:e.mutation({queryFn(e,t){const a=(0,d.KU)(t);let r,o;return"object"===typeof e?(r=e.id,o=e.force):(r=e,o=!1),a.wp.email_delete(r,{force:o}).then((0,i.PI)(s.V))},invalidatesTags:(e,t,a)=>[{type:"Elements",id:a}]}),addTag:e.mutation({queryFn:(e,t)=>(0,d.KU)(t).wp.emailtags_create({...e},{type:o.cM.Json})}),getDeletableTag:e.query({queryFn:([e,t],a)=>(0,d.KU)(a).wp.email_list({status:["private"],"filter[meta_key]":"project","filter[meta_value]":e,emailtags:[t]},{extraQuery:{"_fields[]":"emailtags"}}).then((0,i.Ih)(s.V))}),autoSaveElement:e.mutation({queryFn({emailId:e,body:t},a){const r=(0,d.KU)(a),s=(0,l.B)(t);return r.wp.email_autosaves_create(e,s,{type:o.cM.FormData}).then((0,i.SC)(n.F))}})})}),{useGetElementsQuery:y,useGetTemplateElementsQuery:_,useGetElementQuery:g,useLazyGetElementQuery:f,useGetElementHistoryQuery:h,useLazyGetElementHistoryQuery:b,useAddElementMutation:v,useEditElementMutation:T,useDeleteElementMutation:P,useGetDeletableTagQuery:k,useAddTagMutation:q,useAutoSaveElementMutation:A}=m},47036:(e,t,a)=>{a.d(t,{c:()=>d,f:()=>l});var r=a(33298),o=a(31052),i=a(31770),s=a(91967),n=a(39217);const u="EmailRaw",l=(0,r.xP)({reducerPath:"emailRawApi",tagTypes:[u],baseQuery:(0,o.cw)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getEmailRaw:e.query({queryFn:function({emailId:e,secret_hash:t},a){return(0,n.mg)(a).wp.email_detail({id:e},{extraQuery:{secret_hash:t}}).then((0,i.SC)(s.V))},providesTags:(e,t,a)=>[{type:u,id:a}]})})}),{useGetEmailRawQuery:d}=l},17581:(e,t,a)=>{a.d(t,{GY:()=>m,Gr:()=>q,Kh:()=>v,LX:()=>A,PX:()=>_,Xw:()=>y,YE:()=>b,YV:()=>h,_3:()=>f,dN:()=>T,sl:()=>g});var r=a(33298),o=a(14315),i=a(31770),s=a(91967),n=a(5446),u=a(814),l=a(60317),d=a(44141),p=a(30725),c=a(85163);const m=(0,r.xP)({reducerPath:"emailsApi",tagTypes:["Emails","Email","EmailAutosaves","TemplateEmail"],baseQuery:(0,d.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getEmails:e.query({queryFn(e,t){var a,r;const o=(0,d.KU)(t),n={order:"desc",orderby:"modified"},u={};if(e.notEmbed||(u._embed=""),e.projectId&&(u._embed="author",u._fields="id,title,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID,author,acf.is_template",n["filter[meta_key]"]="project",n["filter[meta_value]"]=e.projectId),e.fields&&(u._fields=e.fields),e.page&&(n.page=e.page),e.order&&(n.order=e.order),e.orderby&&(n.orderby=e.orderby),e.folderTag&&e.folderTag!==c.y2?(n["filter[tax_query][relation]"]="AND",n["filter[tax_query][0][taxonomy]"]="folder",n["filter[tax_query][0][field]"]="id",n["filter[tax_query][0][terms]"]=e.folderTag):e.folderTag===c.y2&&("object"!==typeof e.folderTag||null!==e.folderTag)||null!==(a=e.tags)&&void 0!==a&&a.length||"trash"===e.status||(n["filter[tax_query][0][taxonomy]"]="folder",n["filter[tax_query][0][operator]"]="NOT EXISTS"),(null===(r=e.tags)||void 0===r?void 0:r.length)>0&&"trash"!==e.status){n["filter[tax_query][relation]"]="AND";for(let t=0,a=e.tags.length;t<a;t++){const a=e.tags[t];n[`filter[tax_query][${t+1}][taxonomy]`]="emailtags",n[`filter[tax_query][${t+1}][field]`]="id",n[`filter[tax_query][${t+1}][terms]`]=a}}return e.name&&(n.search=e.name),e.pageSize&&(n.per_page=e.pageSize),"trash"===e.status&&(u.status="trash"),o.wp.email_list(n,{extraQuery:u}).then((0,i.Ih)(s.V))},providesTags:(e,t,a,{response:r})=>{var o,i;const s=(null===r||void 0===r?void 0:r.headers.get("X-WP-Total"))||0;return e?[...e.map((({id:e})=>{var t;return{type:"Emails",id:`${a.folderTag||(null===(t=a.tags)||void 0===t?void 0:t[0])||a.projectId}_${a.page}_${a.status}_${s}`}})),{type:"Emails",id:`${a.folderTag||(null===(o=a.tags)||void 0===o?void 0:o[0])||a.projectId}_${a.page}_${a.status}_${s}`}]:[{type:"Emails",id:`${a.folderTag||(null===(i=a.tags)||void 0===i?void 0:i[0])||a.projectId}_${a.page}_${a.status}_${s}`}]},keepUnusedDataFor:0}),getTemplateEmails:e.query({queryFn(e,t){var a;const r=(0,d.KU)(t),o={"filter[meta_query][1][key]":"is_template","filter[meta_query][1][value]":"1","filter[meta_query][0][compare]":"LIKE",orderby:"modified",order:"desc"},n={_embed:"wp:term",_fields:"_embedded,id,title,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID"};if(e.emailId&&(o["filter[meta_query][0][key]"]="parent_email",o["filter[meta_query][0][value]"]=e.emailId),e.fields&&(n._fields=e.fields),e.page&&(o.page=e.page),(null===(a=e.tags)||void 0===a?void 0:a.length)>0){o["filter[tax_query][relation]"]="AND";for(let t=0,a=e.tags.length;t<a;t++){const a=e.tags[t];o[`filter[tax_query][${t}][taxonomy]`]="emailtags",o[`filter[tax_query][${t}][field]`]="id",o[`filter[tax_query][${t}][terms]`]=a}}return e.type&&(o["filter[meta_query][2][key]"]="type",o["filter[meta_query][2][value]"]=e.type),e.name&&(o.search="name"),e.pageSize&&(o.per_page=e.pageSize),r.wp.email_list(o,{extraQuery:n}).then((0,i.Ih)(s.V))},keepUnusedDataFor:0}),getEmail:e.query({queryFn:(e,t)=>(0,d.KU)(t).wp.email_detail({id:(0,u.mQ)(e)},{extraQuery:{_embed:"wp:term",_fields:"_embedded,id,author,title,emailtags,folder,group,modified,date,type,\n acf.description,\n acf.html,\n acf.common_styles,\n acf.is_template,\n acf.lock,\n acf.parent_email,\n acf.project,\n acf.secret_hash,\n acf.subject,\n acf.utm_parameters\n "}}).then((0,i.SC)(s.V)),providesTags:(e,t,a)=>[{type:"Email",id:a}],keepUnusedDataFor:0}),getTemplateEmail:e.query({queryFn:(e,t)=>(0,d.KU)(t).wp.email_detail({id:(0,u.mQ)(e)},{extraQuery:{_embed:"wp:term",_fields:"_embedded,id,author,title,emailtags,folder,group,modified,date,type,\n acf.description,\n acf.html,\n acf.common_styles,\n acf.is_template,\n acf.lock,\n acf.parent_email,\n acf.project,\n acf.secret_hash,\n acf.subject,\n acf.utm_parameters\n "}}).then((0,i.SC)(s.V)),providesTags:(e,t,a)=>[{type:"TemplateEmail",id:a}],keepUnusedDataFor:0}),getEmailHistory:e.query({queryFn:({emailId:e,page:t=1},a)=>(0,d.KU)(a).wp.email_revisions_detail({parent:e,per_page:20,page:t},{extraQuery:{_fields:"author,slug,date,modified,title,acf.html,acf.common_styles,id"}}).then((a=>(0,i.SA)(a,((a,r)=>({data:a.filter((e=>e.acf.html)).map((e=>({...e,acf:{...e.acf,html:e.acf.html}}))).map(n.F),totalPages:+r.response.headers.get("X-WP-TotalPages"),args:{emailId:e,page:t}}))))),providesTags:e=>e?[...e.data.map((({id:e})=>({type:"EmailAutosaves",id:e}))),{type:"EmailAutosaves",id:"LIST"}]:[{type:"EmailAutosaves",id:"LIST"}],keepUnusedDataFor:0}),addEmail:e.mutation({queryFn:(0,p.p)((e=>({source:t,...a})=>(0,d.KU)(e).wp.email_create({status:"publish",...(0,s.v)(a)},{type:o.cM.Json}).then((0,i.SC)(s.V)))),invalidatesTags:[{type:"Emails",id:"LIST"}]}),editEmail:e.mutation({queryFn:(0,p.p)((e=>({emailId:t,source:a,...r})=>{const n=(0,d.KU)(e),l=(0,u.TB)((0,s.v)(r));return n.wp.email_partial_update(t,l,{type:o.cM.Json,extraQuery:{_embed:"wp:term",_fields:"_embedded,id,author,title,emailtags,folder,group,modified,date,type,acf.description,acf.html,acf.common_styles,acf.is_template,acf.lock,acf.parent_email,acf.project,acf.secret_hash,acf.subject,acf.utm_parameters"}}).then((0,i.SC)(s.V))}))}),deleteEmail:e.mutation({queryFn(e,t){const a=(0,d.KU)(t);let r,o;return"object"===typeof e?(r=e.id,o=e.force):(r=e,o=!1),a.wp.email_delete(r,{force:o}).then((0,i.PI)(s.V))},invalidatesTags:(e,t,a)=>[{type:"Emails",id:a}]}),addTag:e.mutation({queryFn:(e,t)=>(0,d.KU)(t).wp.emailtags_create({...e},{type:o.cM.Json})}),getDeletableTag:e.query({queryFn:([e,t],a)=>(0,d.KU)(a).wp.email_list({status:["private"],"filter[meta_key]":"project","filter[meta_value]":e,emailtags:[t]},{extraQuery:{"_fields[]":"emailtags"}}).then((0,i.Ih)(s.V))}),autoSaveEmail:e.mutation({queryFn({emailId:e,body:t},a){const r=(0,d.KU)(a),s=(0,l.B)(t);return r.wp.email_autosaves_create(e,s,{type:o.cM.FormData}).then((0,i.SC)(n.F))}})})}),{useGetEmailsQuery:y,useGetTemplateEmailsQuery:_,useGetEmailQuery:g,useLazyGetEmailQuery:f,useGetEmailHistoryQuery:h,useLazyGetEmailHistoryQuery:b,useAddEmailMutation:v,useEditEmailMutation:T,useDeleteEmailMutation:P,useGetDeletableTagQuery:k,useAddTagMutation:q,useAutoSaveEmailMutation:A}=m},62677:(e,t,a)=>{a.d(t,{C:()=>i,N:()=>s});var r=a(33298),o=a(31052);const i=(0,r.xP)({reducerPath:"webHookApi",baseQuery:(0,o.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({postDataByWebHook:e.mutation({query:({url:e,body:t})=>({url:`?proxy_url=${encodeURIComponent(e)}`,method:"POST",body:t})})})}),{usePostDataByWebHookMutation:s}=i},35317:(e,t,a)=>{a.d(t,{O:()=>s,y:()=>i});var r=a(33298),o=a(31052);const i=(0,r.xP)({reducerPath:"getCheckoutUrlApi",baseQuery:(0,o.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({GetCheckoutUrl:e.mutation({query:e=>({url:`?proxy_url=${encodeURIComponent({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_WP_API_URL:"https://app.emailmaker.ru/api/wp-json/wp/v2/",REACT_APP_WP_SAVE_FILE_V1_URL:"https://app.emailmaker.ru/api/wp-json/save-file/v1/",REACT_APP_WP_JWT_AUTH_API_URL:"https://app.emailmaker.ru/api/wp-json/jwt-auth/v1/",REACT_APP_WP_JWT_AUTH_YANDEX_API_URL:"https://api.emailmaker.ru/wp-json/auth/v1/",REACT_APP_WP_ADD_USER_TO_PROJECT:"https://app.emailmaker.ru/api/wp-json/user_to_project/v1/add_user",REACT_APP_WP_RECOVER_PASSWORD_API_URL:"https://app.emailmaker.ru/api/wp-json/bdpwr/v1/",REACT_APP_IMAGE_INFO_TOOL:"https://scr.emcdn.ru/imageinfo",REACT_APP_IFRAME_EMAIL_SRC:"https://app.emailmaker.ru/api/resources/iframe.html?2",REACT_APP_IFRAME_EBLOCK_SRC:"https://app.emailmaker.ru/api/resources/iframe-eblock.html",REACT_APP_PROXY:"https://px0.emailmaker.ru/",REACT_APP_PIPEDREAM_EMAIL_CONFIRMATION_SRC:"https://webhook.latenode.com/5868/prod/f0da9c0f-ed12-4d23-8a86-b86f7bf1a276",REACT_APP_PIPEDREAM_REQUEST_PLANE_SRC:"https://webhook.latenode.com/5868/prod/9e7a6445-2244-4dd5-bda4-5bca82997bf8",REACT_APP_PIPEDREAM_RECURRENCE_SUBSCRIPTION_ON_SRC:"https://webhook.latenode.com/5868/prod/e1dd37b1-c3d4-4441-b329-d6b3aa51bfe7",REACT_APP_PIPEDREAM_RECURRENCE_SUBSCRIPTION_OFF_SRC:"https://webhook.latenode.com/5868/prod/07ae4159-132b-4a00-998b-bc47c20365ba",REACT_APP_PAYMENT_GATEWAY:"cloudpayment",REACT_APP_CLOUDPAYMENT_PUBLIC_ID:"pk_e8c7c303759283dc35cf4ad7b396c",REACT_APP_WP_LOCALES_URL:"https://app.emailmaker.ru/api/wp-json/translations/v1",REACT_APP_DEFAULT_LOCALE:"ru_RU",REACT_APP_BASE_DOMAIN:"https://emailmaker.ru",REACT_APP_COOKIE_DOMAIN:"emailmaker.ru",REACT_APP_NAME:"emailmaker",REACT_APP_BACKEND_DOMAIN:"api.emailmaker.ru",REACT_APP_SENTRY_DSN:"https://cd3784c85293aedfd32fd245760d129d@sentry.emcdn.ru/2",REACT_APP_PROXY_URL:"https://app.emailmaker.ru/api/wp-json/cors-proxy/v1/get",REACT_APP_AI_API_URL:"https://ai-portal.crmgroup.ru",REACT_APP_UNSPLASH_KEY:"S5iNcLqYgRBIOLQdluHdTsCJnjCvahzhG7JfYQOrV7o",REACT_APP_UNSPLASH_UTM_APP_NAME:"blocks",REACT_APP_GIPHY_KEY:"Nh77eBlPeMn1ed9MBAvL542NUGeNO26F",REACT_APP_OPENAPI_BASE_URL:"https://app.emailmaker.ru/api/",REACT_APP_DEVTOOLS_BLOCKED:"on",REACT_APP_GOOGLE_AUTH_CLIENT_ID:"123557245300-l2gsjen8oueqfg0jp31iuptap852981n.apps.googleusercontent.com",REACT_APP_YANDEX_AUTH_CLIENT_ID:"6456dd7eb0db47bcbcb2329c614723b5",REACT_APP_COVER_GENERATOR_URL:"https://ai-mail.emcdn.ru",REACT_APP_OPTIIMSE_API_URL:"optimization/v1/validate",REACT_APP_ENVIRONMENT_VAR:"EmailmakerEnvironment",REACT_APP_WP_PROMO_URL:"https://app.emailmaker.ru/api/wp-json/promo/v1/",REACT_APP_DEVTOOLS_PASSWORD_HASH:"5822d294d0c06a806d50d49685b16af69f53c531485dbe20bb6bbe84b67cb6fb"}.REACT_APP_PIPEDREAM_GET_CHECKOUT_URL)}`,method:"POST",body:e})})})}),{useGetCheckoutUrlMutation:s}=i},141:(e,t,a)=>{a.d(t,{k:()=>i,x:()=>s});var r=a(33298),o=a(44141);const i=(0,r.xP)({reducerPath:"googleAuthApi",baseQuery:(0,o.hI)({baseUrl:"https://app.emailmaker.ru/api//wp-json/auth/v1/google/callback"}),endpoints:e=>({validateGoogleToken:e.mutation({query:e=>({url:"",method:"POST",body:e})})})}),{useValidateGoogleTokenMutation:s}=i},95679:(e,t,a)=>{a.d(t,{CL:()=>s,FQ:()=>n,Jg:()=>g,Mv:()=>c,eo:()=>h,gg:()=>v,h4:()=>d});var r=a(33298),o=a(14315),i=a(44141);const s=(0,r.xP)({reducerPath:"imageApi",baseQuery:void 0,endpoints:e=>({getImageInfo:e.query({queryFn:async function(e,t){try{var a,r;const o=(null===(a=t.getState().configSlice)||void 0===a||null===(r=a.config)||void 0===r?void 0:r.imageInfoToolUrl)||"https://scr.emcdn.ru/imageinfo",i=await fetch(`${o}?url=${encodeURIComponent(e)}`);return{data:await i.json()}}catch(o){console.log(o)}}}),getSearchImage:e.query({queryFn:async function({query:e,page:t}){const a=e.keywords.replace(/[^\w\d\s\u0430-\u044f\u0451\u0410-\u042f\u0401]|_/g,"").replace(/[\s_-]+/g," ");try{let r=`https://api.unsplash.com/search/photos?client_id=S5iNcLqYgRBIOLQdluHdTsCJnjCvahzhG7JfYQOrV7o&lang=ru&per_page=18&query=${a}&page=${t}`;""!==e.color&&(r+=`&color=${e.color}`),""!==e.orientation&&(r+=`&orientation=${e.orientation}`);const o=await fetch(r);return{data:await o.json()}}catch(r){console.log(r)}}}),getUnsplashImage:e.query({queryFn:async function(e){try{const t=await fetch(`${e}&client_id=S5iNcLqYgRBIOLQdluHdTsCJnjCvahzhG7JfYQOrV7o`);return{data:await t.json()}}catch(t){console.log(t)}}}),sendAiImageRequest:e.query({queryFn:async function({body:e},t){try{const a=(0,i.KU)(t);return await a.saveFile.ai_create(e,{type:o.cM.FormData})}catch(a){console.log(a)}}}),getAiImage:e.query({queryFn:async function(e,t){try{const a=(0,i.KU)(t);return await a.saveFile.ai_status_list(e)}catch(a){console.log(a)}}}),getAiImageSSE:e.query({queryFn:e=>({data:[]}),async onCacheEntryAdded({task_id:e,entity_id:t},{updateCachedData:a,cacheDataLoaded:r,cacheEntryRemoved:o}){const i="https://app.emailmaker.ru/api/".replaceAll(/[\\/]$/g,""),s=new EventSource(` ${i}/wp-json/ai-generator/v1/ai-status?entity_id=${t}&stream=1&task_id=${e}`);s.onmessage=e=>{const t=JSON.parse(e.data);a((e=>{e.push(t)}))},s.onerror=e=>{s.close()},await o,s.close()}}),getSearchGif:e.query({queryFn:async function({query:e,page:t}){const a=e.keywords.replace(/[^\w\d\s\u0430-\u044f\u0451\u0410-\u042f\u0401]|_/g,"").replace(/[\s_-]+/g," ");try{let e=`https://api.giphy.com/v1/gifs/search?api_key=Nh77eBlPeMn1ed9MBAvL542NUGeNO26F&q=${a}&limit=25&offset=${t}&lang=en`;const r=await fetch(e);return{data:await r.json()}}catch(r){console.log(r)}}})})}),{useLazyGetImageInfoQuery:n,useGetImageInfoQuery:u,useGetSearchImageQuery:l,useLazyGetSearchImageQuery:d,useSendAiImageRequestQuery:p,useLazySendAiImageRequestQuery:c,useGetAiImageQuery:m,useLazyGetAiImageQuery:y,useGetUnsplashImageQuery:_,useLazyGetUnsplashImageQuery:g,useGetSearchGifQuery:f,useLazyGetSearchGifQuery:h,useGetAiImageSSEQuery:b,useLazyGetAiImageSSEQuery:v}=s},94381:(e,t,a)=>{a.d(t,{Ad:()=>n,HO:()=>p,Yj:()=>d});var r=a(33298),o=a(31052),i=a(44141);const s="LOCALES",n=(0,r.xP)({reducerPath:"localesApi",tagTypes:[s],baseQuery:(0,o.cw)({baseUrl:"https://app.emailmaker.ru/api/wp-json/translations/v1"}),endpoints:e=>({getLocale:e.query({async queryFn({id:e},t){const a=(0,i.KU)(t);try{return await a.translations.get_translations3(e,"react_app")}catch(r){return console.log(r),a.translations.get_translations3("en_US","react_app")}},providesTags:(e,t,a)=>[{type:s,id:a}]}),getLocales:e.query({queryFn:function(e,t){return(0,i.KU)(t).translations.get_translations2("react_app")},providesTags:(e,t,a)=>[{type:s,id:a}]})})}),{useGetLocalesQuery:u,useGetLocaleQuery:l,useLazyGetLocaleQuery:d,useLazyGetLocalesQuery:p}=n},91967:(e,t,a)=>{a.d(t,{V:()=>i,v:()=>s});var r=a(814),o=a(71210);function i({id:e,title:{rendered:t}={rendered:""},type:a,guid:i,acf:{lock:s,subject:n,description:u,html:l,project:d,tags:p,utm_parameters:c,parent_email:m,common_styles:y,is_template:_},author:g,...f}){return{...f,id:(0,r.WY)(e),author:(0,r.WY)(g),title:t,lock:s,renderGuid:(0,o.l)(),description:u,html:l,project:(0,r.pT)(d)?d.ID:d,project_author:(0,r.pT)(d)?d.post_author:void 0,project_title:(0,r.pT)(d)?d.post_title:void 0,tags:p,utm_parameters:c,parent_email:(0,r.WY)(m instanceof Array&&m[0]?m[0].ID:m),common_styles:y,is_template:_}}function s({title:e,lock:t,subject:a,description:o,html:i,project:s,tags:n,renderGuid:u,utm_parameters:l,parent_email:d,common_styles:p,is_template:c,author:m,...y}){return{...y,author:(0,r.mQ)(m),title:e,acf:{lock:t,description:o,html:i,project:s,tags:n,utm_parameters:l,parent_email:(0,r.mQ)(d),common_styles:p,is_template:c}}}},60317:(e,t,a)=>{a.d(t,{B:()=>o});var r=a(814);function o({parent:e,title:t,html:a,project:o,subject:i,preheader:s,common_styles:n,author:u,...l}){return{...l,author:(0,r.mQ)(u),title:t,parent:(0,r.mQ)(e),"acf[html]":a,"acf[project]":o}}},5446:(e,t,a)=>{a.d(t,{F:()=>o});var r=a(814);function o({id:e,title:{rendered:t}={rendered:""},acf:{html:a},parent:o,excerpt:i,author:s,...n}){return{...n,author:(0,r.WY)(s),id:(0,r.WY)(e),parent:(0,r.WY)(o),title:t,html:a,excerpt:(0,r.pT)(i)?i.rendered:i}}},814:(e,t,a)=>{function r(e,t=!1){const a={};for(const o of Object.keys(e)){let i=e[o];void 0===i||"number"===typeof i&&Number.isNaN(i)||(t&&"object"===typeof i&&null!==i&&(i=r(i)),a[o]=i)}return a}function o(e){return"object"===typeof e&&e}function i(e){const t=Number(e);return isNaN(t)?e:t}function s(e){return"number"===typeof e?String(e):e}a.d(t,{TB:()=>r,WY:()=>s,mQ:()=>i,pT:()=>o})},62689:(e,t,a)=>{a.d(t,{vx:()=>l,I9:()=>d,bw:()=>p});var r=a(33298),o=a(14315),i=a(31770);function s({title:e,acf:{seen:t,type:a},...r}){return{...r,seen:t,type:a,title:e.rendered}}var n=a(44141);const u="Notifications",l=(0,r.xP)({reducerPath:"notificationsApi",tagTypes:[u],baseQuery:(0,n.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getNotifications:e.query({queryFn:(e,t)=>(0,n.KU)(t).wp.notification_list({author:[Number(e)]}).then((0,i.Ih)(s)),providesTags:e=>e?[...e.map((({id:e})=>({type:u,id:e}))),{type:u,id:"LIST"}]:[{type:u,id:"LIST"}]}),notificationShown:e.mutation({queryFn:({id:e,datetime:t},a)=>(0,n.KU)(a).wp.notification_create2(e,{},{type:o.cM.Json,extraQuery:{"acf[seen]":t}}).then((0,i.SC)(s)),invalidatesTags:[{type:u,id:"LIST"}]})})}),{useGetNotificationsQuery:d,useNotificationShownMutation:p}=l},88528:(e,t,a)=>{a.d(t,{Ju:()=>u,Sr:()=>l,ku:()=>n,tO:()=>s});var r=a(33298),o=a(44141);const i="Optimise",s=(0,r.xP)({reducerPath:"optimiseApi",tagTypes:[i],baseQuery:async(e,t,a)=>{const r=(0,o.KU)(t).baseUrl.replaceAll(/[\\/]$/g,""),i=(0,o.hI)({baseUrl:`${r}/optimization/v1/validate`});let s=await i(e,t,a);if(s.error){let e=s.error;if("function"===typeof e.json)try{e=await e.json()}catch{e=await e,console.log("error",e)}return{error:e}}return s},endpoints:e=>({editLinks:e.mutation({query:e=>({headers:{"Content-Type":"application/json",Accept:"application/json"},method:"POST",type:"application/json",url:"/links",body:e}),invalidatesTags:[i]}),editImages:e.mutation({query:e=>({headers:{"Content-Type":"application/json",Accept:"application/json"},method:"POST",type:"application/json",url:"/images",body:e})}),editSpam:e.mutation({query:e=>({headers:{"Content-Type":"application/json",Accept:"application/json"},method:"POST",type:"application/json",url:"/spamassasin",body:e})})})}),{useEditLinksMutation:n,useEditImagesMutation:u,useEditSpamMutation:l}=s},84568:(e,t,a)=>{a.d(t,{Nq:()=>p,lD:()=>y,OD:()=>_,fo:()=>m,su:()=>c});var r=a(33298),o=a(14315),i=a(31770),s=a(814);function n({title:{rendered:e}={rendered:""},acf:{members:t,projects_test_emails:a,ftp_settings:r,emails:o,blocks:i,webhook:n},...u}){return{...u,title:e,members:(0,s.pT)(t)?{admins:t.admins&&t.admins.map((e=>({...e,ID:(0,s.WY)(e.ID)}))),users:t.users&&t.users.map((e=>({...e,ID:(0,s.WY)(e.ID)}))),invited_users:t.invited_users&&t.invited_users.map((e=>({...e,ID:(0,s.WY)(e.ID)}))),owner:(0,s.pT)(t.owner)?{...t.owner,ID:(0,s.WY)(t.owner.ID)}:t.owner}:void 0,projects_test_emails:a,ftp_settings:r,webhook:n,emails:o,blocks:i}}function u({title:e,members:t,projects_test_emails:a,ftp_settings:r,webhook:o,emails:i,blocks:n,...u}){const l=e=>({ID:(0,s.mQ)(e.ID||e)}),d=e=>{return(t=e,Array.isArray(t)?t:t?[t]:[]).map(l);var t};return{...u,title:e,acf:{members:t&&{admins:d(t.admins),users:d(t.users),invited_users:d(t.invited_users),owner:t.owner&&l(t.owner)},webhook:o,projects_test_emails:a,ftp_settings:r,emails:i,blocks:n}}}var l=a(44141);const d="Projects",p=(0,r.xP)({reducerPath:"projectsApi",tagTypes:[d,"project"],baseQuery:(0,l.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getProjects:e.query({queryFn(e={page:1},t){const a=(0,l.KU)(t),r={status:["private"]};return e.page&&(r.page=e.page),e.order&&(r.order=e.order),e.orderby&&(r.orderby=e.order),a.wp.project_list(r).then((0,i.Ih)(n))},providesTags:e=>e?[...e.map((({id:e})=>({type:d,id:e}))),{type:d,id:"LIST"}]:[{type:d,id:"LIST"}]}),getProject:e.query({queryFn:(e,t)=>(0,l.KU)(t).wp.project_detail({id:e},{extraQuery:{_embed:"wp:term"}}).then((0,i.SC)(n)),providesTags:(e,t,a)=>[{type:"project",id:a}]}),addProject:e.mutation({queryFn:(e,t)=>(0,l.KU)(t).wp.project_create({status:"private",...u(e)},{type:o.cM.Json}).then((0,i.SC)(n)),invalidatesTags:[{type:d,id:"LIST"}]}),editProject:e.mutation({queryFn({projectId:e,...t},a){const r=(0,l.KU)(a),d=(0,s.TB)(u(t),!0);return r.wp.project_partial_update(e,d,{type:o.cM.Json}).then((0,i.SC)(n))},invalidatesTags:(e,t,{projectId:a})=>[{type:d,id:a}]}),deleteProject:e.mutation({queryFn:(e,t)=>(0,l.KU)(t).wp.project_delete(e,{}).then((0,i.PI)(n)),invalidatesTags:(e,t,a)=>[{type:d,id:a}]})})}),{useGetProjectsQuery:c,useGetProjectQuery:m,useAddProjectMutation:y,useEditProjectMutation:_}=p},15865:(e,t,a)=>{a.d(t,{So:()=>i});var r=a(33298),o=a(44141);const i=(0,r.xP)({reducerPath:"promoApi",baseQuery:(0,o.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/promo/v1/"}),endpoints:e=>({checkPromo:e.mutation({queryFn:({code:e,type:t},a)=>(0,o.KU)(a).promo.set_code_create({code:e,type:t})}),getPromoInfo:e.query({queryFn:({code:e},t)=>(0,o.KU)(t).promo.get_code_info_list({code:e})})})}),{useCheckPromoMutation:s,useGetPromoInfoQuery:n}=i},46312:(e,t,a)=>{a.d(t,{Z8:()=>i,mI:()=>n});var r=a(33298),o=a(44141);const i=(0,r.xP)({reducerPath:"proxyApi",tagTypes:["Proxy"],baseQuery:(0,o.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/cors-proxy/v1/get"}),endpoints:e=>({getFile:e.query({queryFn({url:e,tryFetch:t=!0,type:a},r){const i=(0,o.KU)(r),s=t?fetch(e):Promise.reject(),n=e=>(e=>{switch(a){case"json":return e.json();case"text":return e.text();default:return e.blob()}})(e).then((e=>({data:e})));return s.then((e=>n(e))).catch((()=>i.corsProxy.get_list({format:"blob",extraQuery:{url:encodeURIComponent(e)}})))}})})}),{useGetFileQuery:s,useLazyGetFileQuery:n}=i},65119:(e,t,a)=>{a.d(t,{Lv:()=>u,kg:()=>l,yR:()=>n});var r=a(33298),o=a(31052),i=a(14315),s=a(39217);const n=(0,r.xP)({reducerPath:"recoverPasswordApi",baseQuery:(0,o.cw)({baseUrl:"https://app.emailmaker.ru/api/wp-json/bdpwr/v1/"}),endpoints:e=>({resetPassword:e.mutation({queryFn:(e,t)=>(0,s.mg)(t).bdpwr.reset_password_create({body:e,type:i.cM.Json})}),setPassword:e.mutation({queryFn:(e,t)=>(0,s.mg)(t).bdpwr.set_password_create({body:e,type:i.cM.Json})}),validateRecoverPasswordCode:e.mutation({queryFn:(e,t)=>(0,s.mg)(t).bdpwr.validate_code_create({body:e,type:i.cM.Json})})})}),{useResetPasswordMutation:u,useSetPasswordMutation:l,useValidateRecoverPasswordCodeMutation:d}=n},76793:(e,t,a)=>{a.d(t,{Cl:()=>s,KA:()=>i});var r=a(33298),o=a(31052);const i=(0,r.xP)({reducerPath:"recurrenceSubscriptionsOffApi",baseQuery:(0,o.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({getCanselRecurrence:e.query({query:e=>({url:`?proxy_url=${encodeURIComponent(`https://webhook.latenode.com/5868/prod/07ae4159-132b-4a00-998b-bc47c20365ba?subscription_id=${e.sid}&user_id=${e.uid}`)}`})})})}),{useLazyGetCanselRecurrenceQuery:s,useGetCanselRecurrenceQuery:n}=i},843:(e,t,a)=>{a.d(t,{IJ:()=>s,Sd:()=>i});var r=a(33298),o=a(31052);const i=(0,r.xP)({reducerPath:"recurrenceSubscriptionsOnApi",baseQuery:(0,o.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({getRecurrence:e.query({query:e=>({url:`?proxy_url=${encodeURIComponent(`https://webhook.latenode.com/5868/prod/e1dd37b1-c3d4-4441-b329-d6b3aa51bfe7?subscription_id=${e.sid}&user_id=${e.uid}`)}`})})})}),{useLazyGetRecurrenceQuery:s,useGetRecurrenceQuery:n}=i},40869:(e,t,a)=>{a.d(t,{E:()=>s,M:()=>i});var r=a(33298),o=a(31052);const i=(0,r.xP)({reducerPath:"requestPlaneApi",baseQuery:(0,o.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({getRequest:e.mutation({query:e=>({url:`?proxy_url=${encodeURIComponent("https://webhook.latenode.com/5868/prod/9e7a6445-2244-4dd5-bda4-5bca82997bf8")}`,method:"POST",body:e})})})}),{useGetRequestMutation:s}=i},63531:(e,t,a)=>{a.d(t,{Zf:()=>l,dS:()=>n,lg:()=>u,tb:()=>d,yH:()=>s});var r=a(33298),o=a(14315),i=a(44141);const s=(0,r.xP)({reducerPath:"saveFileApi",tagTypes:["Images"],baseQuery:(0,i.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/save-file/v1/"}),endpoints:e=>({uploadImage:e.mutation({queryFn:(e,t)=>(0,i.KU)(t).saveFile.upload_create(e,{type:o.cM.FormData})}),sendTestEmail:e.mutation({queryFn:(e,t)=>(0,i.KU)(t).saveFile.send_email_create(e,{type:o.cM.FormData})}),sendLivePreview:e.mutation({queryFn:(e,t)=>(0,i.KU)(t).saveFile.get_link_create(e,{type:o.cM.FormData})}),sendShortLink:e.mutation({queryFn:(e,t)=>(0,i.KU)(t).saveFile.shortener_create(e,{type:o.cM.FormData})})})}),{useUploadImageMutation:n,useSendTestEmailMutation:u,useSendLivePreviewMutation:l,useSendShortLinkMutation:d}=s},93563:(e,t,a)=>{a.d(t,{$s:()=>p,Jz:()=>n,Yb:()=>d,f1:()=>l,kE:()=>s});var r=a(33298),o=a(44141);const i=()=>window.location.toString().includes("/blocks")?"block":"",s=(0,r.xP)({reducerPath:"taxonomiesApi",tagTypes:["Taxonomies","folder","block_folder"],baseQuery:(0,o.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({addFolder:e.mutation({queryFn:(e,t)=>(0,o.KU)(t).wp[i()+"folder_create"](e).then((e=>e))}),editFolder:e.mutation({queryFn:({id:e,data:t},a)=>(0,o.KU)(a).wp[i()+"folder_partial_update"](e,t).then((e=>e))}),deleteFolder:e.mutation({queryFn:(e,t)=>(0,o.KU)(t).wp[i()+"folder_delete"](e,{force:!0}).then((e=>e))}),getFolders:e.query({queryFn:(e,t)=>(0,o.KU)(t).wp[i()+"folder_list"]({per_page:100,...e}).then((e=>e)),providesTags:(e,t,a)=>[{type:"folder",id:a}]}),addEmailsTag:e.mutation({queryFn:(e,t)=>(0,o.KU)(t).wp.emailtags_create(e).then((e=>e))}),editEmailsTag:e.mutation({queryFn:({id:e,...t},a)=>(0,o.KU)(a).wp.emailtags_partial_update(e,t).then((e=>e))}),deleteEmailsTag:e.mutation({queryFn:(e,t)=>(0,o.KU)(t).wp.emailtags_delete(e,{force:!0}).then((e=>e))}),getTags:e.query({queryFn:(e,t)=>(0,o.KU)(t).wp[(window.location.toString().includes("/blocks")?"block":"email")+"tags_list"]({per_page:100,...e}).then((e=>e))})})}),{useGetFoldersQuery:n,useGetTagsQuery:u,useLazyGetFoldersQuery:l,useAddFolderMutation:d,useEditFolderMutation:p}=s},83351:(e,t,a)=>{a.d(t,{OV:()=>s,UH:()=>u,uX:()=>n});var r=a(33298),o=a(14315),i=a(44141);const s=(0,r.xP)({reducerPath:"tokenApi",baseQuery:(0,i.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/jwt-auth/v1/"}),endpoints:e=>({tokenCreate:e.mutation({queryFn:(e,t)=>(0,i.KU)(t).jwtAuth.token_create({body:e,type:o.cM.Json})}),tokenValidate:e.mutation({queryFn:(e,t)=>(0,i.KU)(t).jwtAuth.token_validate_create({type:o.cM.Json})})})}),{useTokenCreateMutation:n,useTokenValidateMutation:u}=s},1779:(e,t,a)=>{a.d(t,{S:()=>i,p:()=>s});var r=a(33298),o=a(44141);const i=(0,r.xP)({reducerPath:"yandexAuthApi",baseQuery:(0,o.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/auth/v1/yandex/callback"}),endpoints:e=>({validateYandexToken:e.mutation({query:e=>({url:"",method:"POST",body:e})})})}),{useValidateYandexTokenMutation:s}=i}}]);
@@ -1 +0,0 @@
1
- (globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[8905],{88647:(t,e,n)=>{"use strict";n.d(e,{h:()=>s});var i,a=n(92810);function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},d.apply(null,arguments)}function l({title:t,titleId:e,...n},l){return a.createElement("svg",d({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",ref:l,"aria-labelledby":e},n),t?a.createElement("title",{id:e},t):null,i||(i=a.createElement("path",{d:"M6.5 1.143H5.25A4.108 4.108 0 0 0 1.143 5.25V6.5c0 .078.064.143.142.143h1a.143.143 0 0 0 .143-.143V5.25A2.82 2.82 0 0 1 5.25 2.428H6.5a.143.143 0 0 0 .143-.143v-1a.143.143 0 0 0-.143-.142ZM14.857 6.5V5.25a4.108 4.108 0 0 0-4.107-4.107H9.5a.143.143 0 0 0-.143.142v1c0 .079.064.143.143.143h1.25A2.82 2.82 0 0 1 13.57 5.25V6.5c0 .078.065.143.143.143h1a.143.143 0 0 0 .143-.143ZM9.5 14.857h1.25a4.108 4.108 0 0 0 4.107-4.107V9.5a.143.143 0 0 0-.143-.143h-1a.143.143 0 0 0-.143.143v1.25a2.82 2.82 0 0 1-2.821 2.821H9.5a.143.143 0 0 0-.143.143v1c0 .079.064.143.143.143ZM1.143 9.5v1.25a4.108 4.108 0 0 0 4.107 4.107H6.5a.143.143 0 0 0 .143-.143v-1a.143.143 0 0 0-.143-.143H5.25a2.82 2.82 0 0 1-2.822-2.821V9.5a.143.143 0 0 0-.143-.143h-1a.143.143 0 0 0-.142.143Z",fill:"inherit"})))}const s=a.forwardRef(l);n.p},79154:(t,e,n)=>{"use strict";n.d(e,{h:()=>s});var i,a=n(92810);function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},d.apply(null,arguments)}function l({title:t,titleId:e,...n},l){return a.createElement("svg",d({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",ref:l,"aria-labelledby":e},n),t?a.createElement("title",{id:e},t):null,i||(i=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.39 3.12h7.383c.242 0 .438.195.438.437v3.719a.437.437 0 0 1-.438.437H9.547v3.227a.437.437 0 0 1-.438.437H1.727a.437.437 0 0 1-.438-.437V7.22c0-.241.196-.437.438-.437h3.226V3.557c0-.242.196-.438.438-.438Zm.493 7.327h2.734V7.713H5.883v2.734Zm3.664-3.664h2.734V4.05H9.547v2.734Z",fill:"inherit"})))}const s=a.forwardRef(l);n.p},28316:(t,e,n)=>{"use strict";n.d(e,{Kp:()=>i,Sb:()=>d,_1:()=>a});const i="SAVE",a="SHOW",d="NOTIFY"},82212:(t,e,n)=>{"use strict";n.d(e,{Y:()=>T});var i=n(92810),a=n(42108),d=n(23287),l=n(20648),s=n(94381),r=n(45934),o=n(2417),p=n.n(o),c=n(86286),m=n(85163),b=n(18398),_=n(71157),g=n(42068),h=n(93982),A=n(13522),E=n(70082);const O="locale",u="ant_locale",w="em_locale",x="em_ant_locale",I="em_mergeTags_locale",T=({children:t})=>{const[e,o]=(0,i.useState)((()=>(0,a.hU)())),[T,D]=(0,i.useState)(),[f,L]=(0,i.useState)(!0),N=(0,r.d4)(c.B),[S,v]=(0,s.HO)(),[y,C]=(0,s.Yj)(),P=(0,r.wA)(),M=(0,_.hN)(),R=N||(m.EW.isPlugin?void 0:"ru_RU");(0,i.useEffect)((()=>{try{let t=JSON.parse(localStorage.getItem(w));t||(t=JSON.parse(localStorage.getItem(O)),t&&(localStorage.removeItem(O),localStorage.setItem(w,JSON.stringify(t)))),o((0,a.hU)(t.data)),L(!1)}catch{L(!0)}try{let t=JSON.parse(localStorage.getItem(x));t||(t=JSON.parse(localStorage.getItem(u)),t&&(localStorage.removeItem(u),localStorage.setItem(x,JSON.stringify(t)))),D(t.data)}catch{}if(!m.EW.isPlugin)try{let t=JSON.parse(localStorage.getItem(I));P((0,b.Kj)(t.data))}catch{}}),[D,L,o,P]),(0,i.useEffect)((()=>{R&&n(17583)(`./${"uk"===R?"uk_UA":R}.js`).then((t=>{D(t.default),localStorage.setItem(x,JSON.stringify(t.default))}))}),[D,R]),(0,i.useEffect)((()=>{m.EW.isPlugin||R&&n(93718)(`./${"uk"===R?"uk_UA":R}.ts`).then((t=>{P((0,b.Kj)(t.default)),localStorage.setItem(I,JSON.stringify(t.default))}))}),[R,P]),(0,g.Z)((([t])=>{!t&&v.error&&M.fromError("GET_LOCALES_ERROR",void 0,v.error)}),[v.error,M]);const B=(0,h.ml)(A.A.READ_LOCALE),[U,k]=(0,i.useState)(!1);return(0,g.Z)((([t])=>{R!==t&&R&&B.fire(R).then((t=>{const e=t[0];if(e){var n;const t=null===(n=p()(e,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===n?void 0:n.locale_data.default;o((0,a.hU)(t)),k(!0)}else v.isSuccess?y({id:R}):S(void 0)}))}),[R,B,v,o,k]),(0,i.useEffect)((()=>{if(v.isSuccess){const t=v.data;if(R){const e=t.filter((([t])=>t===R));if(!e.length)return void k(!0);try{const t=JSON.parse(localStorage.getItem(w));if(e.every((([e,n])=>t.id===e&&n<=t.time)))return void k(!0)}catch{}y({id:R})}}}),[R,v,y,M,k]),(0,g.Z)((([t])=>{!t&&C.isError&&M.fromError("GET_LOCALE_ERROR",void 0,C.isError)}),[C.isError,M]),(0,i.useEffect)((()=>{if(v.isSuccess&&C.isSuccess){var t;if(C.originalArgs.id!==R)return;const e=v.data.filter((([t])=>t===R)),n=C.data,i=null===(t=p()(n,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===t?void 0:t.locale_data.default;try{localStorage.setItem(w,JSON.stringify({id:R,time:e[0][1],data:i}))}catch{}o((0,a.hU)(i)),k(!0)}}),[C,R,v,o,M,k]),(0,E.jsx)(d.CY,{i18n:e,children:(0,E.jsx)(l.Ay,{locale:T,children:!f||U?t:(0,E.jsx)(E.Fragment,{})})})}},17126:(t,e,n)=>{"use strict";n.d(e,{LG:()=>l,fh:()=>d,or:()=>a});var i=n(92810);const a=(0,i.createContext)({element:void 0}),d=(0,i.createContext)(void 0),l=()=>(0,i.useContext)(d)},95550:t=>{t.exports=({__:t})=>`<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n }\n</style>\n<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding: 10px 0;">\n <table cellpadding="0" cellspacing="0" border="0" width="200" class="em-mob-width-100perc">\n <tr>\n <td align="center" valign="middle" height="41" style="background-color: #1C52DC; border-radius: 5px; height: 41px;">\n <a href="" target="_blank" style="display: block; height: 41px; font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; color: #FFFFFF; font-size: 16px; line-height: 41px; text-decoration: none; white-space: nowrap;">\n ${t("Button")}\n </a>\n </td>\n </tr>\n </table>\n</td></tr></table>`},59817:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});const i=new Date,a=new Date(+i+432e6).toISOString(),d=-(new Date).getTimezoneOffset()/60,l=t=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td align="center"><img class="em-countdown" em-cd-settings="locale=${t.replace("_","-")}&bg=FFFFFF&tp=false&color1=000000&color2=959595&size1=72&size2=28&font1=roboto&font2=roboto&border=10&delimiter=:&spacing=10&time=${a}&timezone=${d}" src="${(t=>`https://cdt3.emcdn.ru/timer?locale=${t.replace("_","-")}&bg=FFFFFF&tp=false&color1=000000&color2=959595&size1=72&size2=28&font1=roboto&font2=roboto&border=10&delimiter=:&spacing=10&time=${a}&timezone=${d}`)(t)}" border="0" alt="" style="display: block;" /></td></tr></table>`},44789:t=>{t.exports='<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td height="0" style="padding: 20px 0 0; border-top: 1px solid #EEEEEE;">&nbsp;</td></tr></table>'},50483:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding: 20px 0 10px;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 24px; line-height: 32px; color: #333333;"><strong>${t("Header text")}</strong></div>\n</td></tr></table>`},74436:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <img src=${n.p+"static/media/empty-image.1827d656.png"} width="150" border="0" alt="" style="display: block; width: 100%; max-width: 150px;" />\n</td></tr></table>`},24358:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <img class="em-ai-img em-just-inserted" src="${n.p+"static/media/ai-image.7c42c2e1.png"}" width="150" border="0" alt="" style="display: block; width: 100%; max-width: 150px;" />\n</td></tr></table>`},35465:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding-bottom: 10px;">\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tr>\n <td align="left" valign="top" width="10">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">1.</div>\n </td>\n <td width="10">&nbsp;</td>\n <td align="left" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")}</div>\n </td>\n </tr>\n </table>\n</td></tr></table>`},71811:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding-bottom: 10px;">\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tr>\n <td align="left" valign="top" width="10">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">&bull;</div>\n </td>\n <td width="10">&nbsp;</td>\n <td align="left" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")}</div>\n </td>\n </tr>\n </table>\n</td></tr></table>`},16409:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <table border="0" cellspacing="0" cellpadding="0">\n <tr>${n(81154).A.map((t=>`\n <td width="40" align="center">\n <a href="" target="_blank"><img src="${t}" width="30" border="0" alt="" style="display: block;" /></a>\n </td>`)).join("")}\n </tr>\n </table>\n</td></tr></table>`},77098:t=>{t.exports='<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td height="20"></td></tr></table>'},48304:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom">\n <tr>\n <td align="center" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Column")} 1</div>\n </td>\n <td align="center" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Column")} 2</div>\n </td>\n <td align="center" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Column")} 3</div>\n </td>\n </tr>\n</table>`},42797:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding-bottom: 10px;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")}</div>\n</td></tr></table>`},79757:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <img class="em-video" src="${n.p+"static/media/video.854adea5.png"}" width="150" border="0" alt="" style="display: inline-block; width: 100%; max-width: 150px;" />\n</td></tr></table>`},35880:t=>{t.exports='<tr em="block" class="empty-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" cellpadding="0" cellspacing="0" border="0" width="100%" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30" ></td></tr></table>\n\t\t\t\t\t<table align="center" cellpadding="0" cellspacing="0" border="0" width="91%">\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30" ></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n'},573:t=>{t.exports='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <title></title>\n <style type="text/css">\n html {\n -webkit-text-size-adjust: none;\n -ms-text-size-adjust: none;\n }\n </style>\n <style em="styles">\n@media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-narrow-table {\n width: 100%!important;\n max-width: 660px!important;\n min-width: 320px!important;\n }\n}\n</style>\n</head>\n<body style="margin: 0; padding: 0;">\n <span class="preheader" style="display: none !important; visibility: hidden; opacity: 0; color: #F8F8F8; height: 0; width: 0; font-size: 1px;">&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;</span>\n \x3c!--[if !mso]>\x3c!--\x3e\n <div style="font-size:0px;color:transparent;opacity:0;">\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800</div>\n \x3c!--<![endif]--\x3e\n <table cellpadding="0" cellspacing="0" border="0" width="100%" style="font-size: 1px; line-height: normal;">\n <tr em="group">\n <td align="center" bgcolor="#F8F8F8">\n \x3c!--[if (gte mso 9)|(IE)]>\n <table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n <![endif]--\x3e\n <table cellpadding="0" cellspacing="0" width="100%" border="0" style="max-width: 660px; min-width: 660px; width: 660px;" class="em-narrow-table"></table>\n \x3c!--[if (gte mso 9)|(IE)]>\n </td></tr></table>\n <![endif]--\x3e\n </td>\n </tr>\n </table>\n</body>\n</html>'},13522:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(93982);let a;var d;(d=a||(a={})).BEFORE_SAVE_EMAIL=(0,i.cZ)(),d.ON_SAVEBUTTON_CLICK_ID=(0,i.cZ)(),d.ON_NEXTBUTTON_CLICK_ID=(0,i.cZ)(),d.ON_PREVIOUSBUTTON_CLICK_ID=(0,i.cZ)(),d.ON_MODEL_CHANGE=(0,i.cZ)(),d.WILL_EMAIL_INIT_ID=(0,i.cZ)(),d.ON_EMAIL_INIT_ID=(0,i.cZ)(),d.ON_BLOCK_INIT_ID=(0,i.cZ)(),d.ON_CONTENT_CHANGED_ID=(0,i.cZ)(),d.ON_EMAIL_CHANGED_ID=(0,i.cZ)(),d.ON_BLOCK_CHANGED_ID=(0,i.cZ)(),d.ON_SEND_TESTEMAIL_ID=(0,i.cZ)(),d.ON_SEND_LIVEPREVIEW_ID=(0,i.cZ)(),d.ON_SHARE_ID=(0,i.cZ)(),d.ON_SHOW_PREVIEW_ID=(0,i.cZ)(),d.ON_EMAIL_CLONE_ID=(0,i.cZ)(),d.ON_SEND_EMAIL_MODAL_ID=(0,i.cZ)(),d.ON_NOTIFICATION=(0,i.cZ)(),d.READ_LOCALE=(0,i.cZ)()},85163:(t,e,n)=>{"use strict";n.d(e,{A9:()=>s,BD:()=>ot,Bv:()=>C,CJ:()=>c,EW:()=>l,F3:()=>h,F5:()=>a,G$:()=>z,IE:()=>Q,IJ:()=>_,JE:()=>Z,Jy:()=>U,KI:()=>tt,N7:()=>k,ND:()=>dt,QV:()=>pt,Qz:()=>X,Ru:()=>u,St:()=>F,T:()=>m,Tm:()=>Y,UW:()=>o,Ug:()=>rt,V0:()=>r,VG:()=>A,Vp:()=>at,Vv:()=>L,WU:()=>S,Y$:()=>J,YY:()=>st,aO:()=>W,bV:()=>x,e3:()=>mt,eA:()=>j,eG:()=>$,ff:()=>d,gY:()=>V,hc:()=>M,iU:()=>nt,iV:()=>G,iW:()=>v,jg:()=>ct,lx:()=>E,m3:()=>K,mX:()=>T,nA:()=>B,nd:()=>b,p5:()=>et,pe:()=>R,rW:()=>w,rY:()=>P,rb:()=>N,rl:()=>q,vd:()=>g,wF:()=>it,xz:()=>I,y2:()=>p,yI:()=>f,yo:()=>H,yy:()=>D,zh:()=>lt,zx:()=>y});var i=n(19378);const a="LOADING",d="ERROR",l={isPlugin:!1},s={em_token:"em_token",em_elements_view:"em_elements_view",em_new_block:"em_new_block",em_new_email:"em_new_email",em_id:"em_id",em_name:"em_name",em_email:"em_email",em_locale:"em_locale",em_carrotquest_hash:"em_carrotquest_hash",em_ducalis_hash:"em_ducalis_hash",em_email_subscription_consent:"em_email_subscription_consent",em_folder:"em_folder",promocode:"promocode"},r={em_color_scheme:"em_color_scheme",em_code_mode_pane_sizes:"em_code_mode_pane_sizes",em_preview_pane_sizes:"em_preview_pane_sizes",em_default_sizes:"em_default_sizes",em_pane_sizes:"em_pane_sizes",em_test_emails:"em_test_emails",em_menu_is_locked:"em_menu_is_locked",em_code_mode_settings:"em_code_mode_settings",em_folder_is_open:"em_folder_is_open"},o="deleted",p="all",c="not all",m="light",b="dark",_="system",g="(prefers-color-scheme: light)",h="(prefers-color-scheme: dark)",A="#1890ff",E={ADD_NEW_PROJECT_MODAL:"ADD_NEW_PROJECT_MODAL",EDIT_PROJECT_MODAL:"EDIT_PROJECT_MODAL",BLOCKS_MODAL:"BLOCKS_MODAL",EDIT_PROFILE_MODAL:"EDIT_PROFILE_MODAL",SEND_TEST_EMAIL:"SEND_TEST_EMAIL",ADD_NEW_EBLOCK_MODAL:"ADD_NEW_EBLOCK_MODAL",ADD_NEW_EMAIL_MODAL:"ADD_NEW_EMAIL_MODAL",SWITCH_TO_PLAN_MODAL:"SWITCH_TO_PLAN_MODAL",IMAGE_EDITOR_MODAL:"IMAGE_EDITOR_MODAL",ADD_NEW_FOLDER_MODAL:"ADD_NEW_FOLDER_MODAL",EDIT_FOLDER_NAME_MODAL:"EDIT_FOLDER_NAME_MODAL",UPLOAD_IMAGE_MODAL:"UPLOAD_IMAGE_MODAL",UPLOAD_BACKGROUND_MODAL:"UPLOAD_BACKGROUND_MODAL",UPLOAD_IMAGE_MODAL_AI:"UPLOAD_IMAGE_MODAL_AI",UPLOAD_BACKGROUND_MODAL_AI:"UPLOAD_BACKGROUND_MODAL_AI",UPLOAD_IMAGE_MODAL_STOCK:"UPLOAD_IMAGE_MODAL_STOCK",UPLOAD_BACKGROUND_MODAL_STOCK:"UPLOAD_BACKGROUND_MODAL_STOCK",UPLOAD_IMAGE_MODAL_GIF:"UPLOAD_IMAGE_MODAL_GIF",UPLOAD_BACKGROUND_MODAL_GIF:"UPLOAD_BACKGROUND_MODAL_GIF",UPLOAD_IMAGE_MODAL_EDIT:"UPLOAD_IMAGE_MODAL_EDIT",UPLOAD_BACKGROUND_MODAL_EDIT:"UPLOAD_BACKGROUND_MODAL_EDIT",UPLOAD_IMAGE_MODAL_UPLOAD:"UPLOAD_IMAGE_MODAL_UPLOAD",UPLOAD_BACKGROUND_MODAL_UPLOAD:"UPLOAD_BACKGROUND_MODAL_UPLOAD"};let O;!function(t){t[t.Amp=0]="Amp",t[t.HTML=1]="HTML",t[t.Everywhere=2]="Everywhere"}(O||(O={}));const u={MESSAGE:"message",UPDATE_PREVIEW:"update_preview",UPDATE_EDITOR:"update_editor",UPDATE_EDITOR_POSITION:"update_editor_position",UPDATE_SIDE_MENU_EDITOR:"update_side_menu_editor",SAVE_EMAIL:"saveEmail",SANDBOX_ELEMENT_SETTINGS_SET:"sandbox_element_settings_set",SANDBOX_EMAIL_SETTINGS_SET:"sandbox_email_settings_set",SANDBOX_BLOCK_SETTINGS_SET:"sandbox_block_settings_set",SANDBOX_ELEMENT_PARENT_GET:"sandbox_element_parent_get",SANDBOX_ELEMENT_PARENT_TABLE_GET:"sandbox_element_parent_table_get",SANDBOX_ELEMENT_PREV_GET:"sandbox_element_prev_get",SANDBOX_ELEMENT_NEXT_GET:"sandbox_element_next_get",SANDBOX_ELEMENT_REMOVE:"sandbox_element_remove",SANDBOX_ELEMENT_ACTIVE_RESET:"sandbox_element_active_reset",SANDBOX_ELEMENT_ACTIVE_SET:"sandbox_element_active_set",SANDBOX_ELEMENT_HOVER_SET:"sandbox_element_hover_set",SANDBOX_ELEMENT_IMG_LINK:"sandbox_element_img_link",SANDBOX_ELEMENT_TEXT:"sandbox_element_text",SANDBOX_EMAIL_CONTENT_GET:"sandbox_email_content_get",SANDBOX_SET_POSITION_TO_IMG:"sandbox_set_position_to_img",SANDBOX_SET_POSITION_TO_LINK:"sandbox_set_position_to_link",APPLICATION_FOCUS_IN_IFRAME:"application_focus_in_iframe",APPLICATION_EMAIL_SETTINGS_SET:"application_email_settings_set",APPLICATION_BLOCK_SETTINGS_SET:"application_block_settings_set",APPLICATION_ELEMENT_SETTINGS_SET:"application_element_settings_set",APPLICATION_ELEMENT_SETTINGS_CLOSE:"application_element_settings_close",APPLICATION_ACTION:"application_action",APPLICATION_EBLOCK_ADD:"application_eblock_add",APPLICATION_SCROLL_TO:"application_scroll-to",APPLICATION_SCROLL_BLOCK_SHOW:"application_scroll-block-show",APPLICATION_SCROLL_BLOCK_HIDE:"application_scroll-block-hide",APPLICATION_DISCUSS_SET_ID:"application_discuss_set_id",APPLICATION_DISCUSS_GET_COMMENT:"application_discuss_get_comment",APPLICATION_DISCUSS_NO_COMMENT:"application_discuss_no_comment",APPLICATION_DISCUSS_SAVE_TARGET:"application_discuss_save_target",APPLICATION_IFRAME_SET_HEIGHT:"application_iframe_set_height",APPLICATION_COMMON_STYLES_UPDATE:"application_commonStyles_update",APPLICATION_EMAIL_CONTENT_GET:"application_email_content_get",APPLICATION_OPEN_IMAGE_AI_POPUP:"application_open-image-ai-popup",APPLICATION_OPEN_IMAGE_UPLOAD_POPUP:"application_open-image-upload-popup",APPLICATION_OPEN_IMAGE_EDIT_POPUP:"application_open-image-edit-popup",APPLICATION_OPEN_IMAGE_GIF_POPUP:"application_open-image-gif-popup",APPLICATION_OPEN_IMAGE_STOCK_POPUP:"application_open-image-stock-popup",APPLICATION_CLOSE_IMAGE_EDIT_POPUP:"application_close-image-edit-popup",APPLICATION_SUBJECT_UPDATE:(0,i.Qm)("application_subject_update"),APPLICATION_PREHEADER_UPDATE:(0,i.Qm)("application_preheader_update"),APPLICATION_DOMPARSER_ERROR:(0,i.Qm)("application_domparser_error"),APPLICATION_UPDATE_ENTITY:(0,i.Qm)("application_update_entity"),APPLICATION_IFRAME_DRAG_EVENT:(0,i.Qm)("application_iframe_drag_event"),APPLICATION_HAS_AMP:(0,i.Qm)("application_has_amp"),SANDBOX_WINDOW_CHARACTERISTIC:"sandbox_window-characteristic",SANDBOX_IFRAME_SETSIZE:"sandbox_iframe-setsize",SANDBOX_BLOCK_INSERT:"sandbox_block-insert",SANDBOX_ATOM_INSERT:"sandbox_atom-insert",SANDBOX_DRAG_CANCEL:"sandbox_drag-cancel",UPDATE_EDITOR_POSITION_FROM_EDITOR:"update_position_from_editor",UPDATE_EDITOR_POSITION_FROM_IFRAME:"update_position_from_iframe",SANDBOX_CHANGE_PREVIEW:"sandbox_change_preview",APPLICATION_CHANGE_PREVIEW:"application_change_preview",SANDBOX_LOCK_EDIT:"sandbox_lock_edit",SANDBOX_FLOATBLOCK_ADD:"sandbox_floatBlock_add",SANDBOX_FLOATBLOCK_REMOVE:"sandbox_floatBlock_remove",EDITOR_CHANGE_FOCUS:"editor_change_focus",SANDBOX_RESIZED:"sandbox_resized",SANDBOX_LOCK_DISCUSS:"sandbox_lock_discuss",SANDBOX_DISCUSS_SET_TARGET:"sandbox_discuss_set_target",SANDBOX_DISCUSS_REMOVE_TARGET:"sandbox_discuss_remove_target",SANDBOX_DISCUSS_RESET:"sandbox_discuss_reset",SANDBOX_DISCUSS_GET_TARGET:"sandbox_discuss_get_target",SANDBOX_READY:(0,i.Qm)("SANDBOX_READY"),SANDBOX_FLOATBLOCK_WRAP:"sandbox_floatblock_wrap",SANDBOX_SUBJECT_UPDATE:(0,i.Qm)("sandbox_subject_update"),SANDBOX_PREHEADER_UPDATE:(0,i.Qm)("sandbox_preheader_update"),SANDBOX_DRAG_EVENT:(0,i.Qm)("sandbox_drag_event"),SANDBOX_ADD_MERGETAG:(0,i.Qm)("sandbox_add_mergetag"),SANDBOX_TRANSLATIONS:(0,i.Qm)("sandbox_send_translations"),SANDBOX_SET_THEME_VARIABLES:(0,i.Qm)("sandbox_send_theme_variables"),SANDBOX_SET_ENTITY:(0,i.Qm)("sandbox_set_entity"),SANDBOX_INIT_START:(0,i.Qm)("sandbox_init_start"),SANDBOX_INITED:(0,i.Qm)("sandbox_inited"),SANDBOX_UPDATE_ENTITY:(0,i.Qm)("sandbox_update_entity"),RELOAD:(0,i.Qm)("reload")},w={language:"html",detectIndentation:!1,wordWrap:"on",wrappingIndent:"same",smoothScrolling:"on",automaticLayout:!0,tabSize:2,indentSize:2};let x;!function(t){t.IMG="img",t.TEXT="text",t.LINK="a",t.TABLE="table",t.VINDENT="vindent",t.TD="td",t.STRUCTURE="structure",t.GROUP="group",t.BUTTON="button",t.DIV="div",t.FLOAT_BLOCK="floatBlock",t.VAR="var",t.EMPTY_TABLE="emptyTable",t.EMPTY_TD="emptyTd",t.COUNTDOWN="countdown",t.VIDEO="video",t.COLUMN="column"}(x||(x={}));const I="Appearance",T="Structure",D="Settings",f="Properties",L="History",N="Disabled_tab",S="Edit selected element",v="UTM parameters",y="Edit",C="Build",P="Styles",M="Discuss",R="TEXT_AI",B="Blocks",U="Atoms",k="Optimise",G={top:{width:null,style:null,color:null},right:{width:null,style:null,color:null},bottom:{width:null,style:null,color:null},left:{width:null,style:null,color:null}},H="Owner",F="Administrator",K="User",z="The invitation has been sent",V="Assign the project owner",X="Change role to Administrator",W="Change role to User",j="Remove member",Z="Revoke the invite",Q="block",Y="email",J="cards",q="list",$="pending",tt="d41d8",et=1865,nt=127017,it={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},at="desktop",dt="mobile",lt="emailtags",st="blocktags",rt="all_folders",ot={text:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif"],fontSize:16,fontSizeDim:"px",lineHeight:21,lineHeightDim:"px",color:"#5a5a5a",textAlign:"left",paddingBottom:10,paddingBottomDim:"px"},headings:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif"],fontSize:24,fontSizeDim:"px",lineHeight:32,lineHeightDim:"px",color:"#333333",textAlign:"left",paddingTop:20,paddingTopDim:"px",paddingBottom:10,paddingBottomDim:"px",letterSpacing:0,letterSpacingDim:"px",bold:!0,italic:!1},links:{color:"#1C52DC",underline:!0},buttons:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif"],fontSize:16,fontSizeDim:"px",letterSpacing:0,letterSpacingDim:"px",color:"#FFFFFF",bold:!1,italic:!1,backgroundColor:"#1C52DC",marginTop:10,marginTopDim:"px",marginBottom:10,marginBottomDim:"px",border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:5,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},textAlign:"center",padding:{all:null,top:null,right:null,bottom:null,left:null}},block:{backgroundColor:""}},pt=t=>({REORDER_ATOM:t("Reorder element"),CLONE_ATOM:t("Clone element"),REMOVE_ATOM:t("Remove element"),EDIT_ATOM:t("Edit element"),CHANGE_IMAGE:t("Change image"),REORDER_BLOCK:t("Reorder block"),REORDER_BLOCK_UP:t("Move up"),REORDER_BLOCK_DOWN:t("Move down"),EDIT_BLOCK:t("Edit block"),CLONE_BLOCK:t("Clone block"),MERGE_BLOCK:t("Merge with the chosen block"),UNMERGE_BLOCK:t("Split blocks"),COPY_BLOCK_TO_CLIPBOARD:t("Copy block to clipboard"),PASTE_BLOCK_FROM_CLIPBOARD:t("Paste block from clipboard"),REMOVE_BLOCK:t("Remove block"),SAVE_TO_BLOCKS:t("Save to Blocks"),ADD_BLOCK:t("Add block"),ADD_EMPTY_BLOCK:t("Add an empty block"),ADD_SAVED_BLOCK:t("Add a saved block"),ADD_COMMON_BLOCK:t("Add a common block"),ADD_TEMPLATE_BLOCK:t("Add a template block"),ADD_SEARCH_BLOCK:t("Search a block"),REORDER_GROUP:t("Reorder group"),EDIT_GROUP:t("Edit group"),CLONE_GROUP:t("Clone group"),REMOVE_GROUP:t("Remove group"),ADD_GROUP:t("Add group"),LINK:t("link"),TABLE_COLUMN:t("cell"),TABLE:t("table"),FLOAT_BLOCK:t("column"),CONTAINER:t("container"),PICTURE:t("picture"),VERTICAL_INDENT:t("indent"),TEXT:t("text"),BUTTON:t("button"),VAR:t("variable"),STRUCTURE:t("block"),EMAIL:t("email"),GROUP:t("group"),TYPOGRAF:t("Typograf"),COUNTDOWN:t("countdown"),ELEMENT:t("element"),VIDEO:t("video"),ELEMENT_PATH_LINK:t("Link"),ELEMENT_PATH_BLOCK:t("Block"),ELEMENT_PATH_ATOM:t("Element"),ELEMENT_PATH_TD:t("Cell"),ELEMENT_PATH_TABLE:t("Table"),ELEMENT_PATH_FLOATBLOCK:t("Column"),ELEMENT_PATH_TEXT:t("Text"),ELEMENT_PATH_DIV:t("Container"),ELEMENT_PATH_GROUP:t("Group"),ELEMENT_PATH_EMAIL:t("Email"),ELEMENT_PATH_IMG:t("Picture"),ELEMENT_PATH_VINDENT:t("Indent"),ELEMENT_PATH_BUTTON:t("Button"),TINYMCE_CHANGECASE:t("Case Change"),TINYMCE_UPPERCASE:t("Uppercase"),TINYMCE_LOWERCASE:t("Lowercase"),PASTE_HERE:t("Drop here")}),ct={Applications:"Apps",Articles:"Article",Banners:"Banners",Buttons:"Buttons","Call to Action":"Call to Action",Contacts:"Contacts",Content:"Content","E-Commerce":"E-Commerce",Feature:"Features",Footer:"Footers",Header:"Headers",Lists:"Lists",Menu:"Menus",Other:"Others",Polls:"Polls",Promocodes:"Promocodes",Separators:"Separators"},mt={maker:"https://ai-mail.emcdn.ru",blocks:"https://ai-mail.useblocks.io"}},28073:(t,e,n)=>{"use strict";function i(t,e){return{[t]:{Filter:e("Filter"),filter:e("filter"),Resize:e("Resize"),resize:e("resize"),Crop:e("Crop"),Width:e("Width"),width:e("width"),Height:e("Height"),height:e("height"),"Background color":e("Background color"),Cancel:e("Cancel"),Create:e("Create"),Objects:e("Objects"),Quality:e("Quality"),Save:e("Save"),"Loading Canvas":e("Loading Canvas"),"Loading Image":e("Loading Image"),"Loading State":e("Loading State"),"Processing Image":e("Processing Image"),Close:e("Close"),Apply:e("Apply"),Font:e("Font"),Color:e("Color"),Background:e("Background"),Image:e("Image"),Opacity:e("Opacity"),Outline:e("Outline"),Shadow:e("Shadow"),Gradient:e("Gradient"),Texture:e("Texture"),"Replace Image":e("Replace Image"),"Outline Color":e("Outline Color"),"Shadow Color":e("Shadow Color"),"Font Size":e("Font Size"),Radius:e("Radius"),"Brush Color":e("Brush Color"),"Brush Type":e("Brush Type"),"Brush Size":e("Brush Size"),History:e("History"),"Maintain aspect ratio":e("Maintain aspect ratio"),"New Text":e("New Text"),Size:e("Size"),Draw:e("Draw"),Text:e("Text"),Stickers:e("Stickers"),Frame:e("Frame"),Shapes:e("Shapes"),Corners:e("Corners"),corners:e("corners"),Done:e("Done"),"Applied Filters":e("Applied Filters"),"Resized Image":e("Resized Image"),"Cropped Image":e("Cropped Image"),"Added Drawing":e("Added Drawing"),"Added Text":e("Added Text"),"Added Shape":e("Added Shape"),"Added Sticker":e("Added Sticker"),"Added Frame":e("Added Frame"),"Merged Objects":e("Merged Objects"),"Rounded Corner":e("Rounded Corner"),"Replaced Background Image":e("Replaced Background Image"),"Added Image":e("Added Image"),Initial:e("Initial"),"Loaded State":e("Loaded State"),"Changed Style":e("Changed Style"),"Deleted object":e("Deleted object"),Merge:e("Merge"),Emoticons:e("Emoticons"),Doodles:e("Doodles"),Landmarks:e("Landmarks"),Bubbles:e("Bubbles"),Transportation:e("Transportation"),Beach:e("Beach"),PencilBrush:e("PencilBrush"),SprayBrush:e("SprayBrush"),CircleBrush:e("CircleBrush"),DiamondBrush:e("DiamondBrush"),VLineBrush:e("VLineBrush"),HLineBrush:e("HLineBrush"),SquareBrush:e("SquareBrush"),Square:e("Square"),square:e("square")}}}n.d(e,{g:()=>i})},69029:t=>{t.exports='<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n\n .em-mob-wrap {\n display: block!important;\n }\n\n .em-mob-padding_right-20 {\n padding-right: 20px!important;\n }\n \n .em-mob-padding_left-20 {\n padding-left: 20px!important;\n }\n }\n</style>\n<tr em="block" class="em-structure">\n <td align="center" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20">\n <table border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">\n <tr>\n <td width="580" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n </tr>\n </table>\n </td>\n</tr>'},41579:t=>{t.exports='<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n\n .em-mob-wrap {\n display: block!important;\n }\n\n .em-mob-padding_right-20 {\n padding-right: 20px!important;\n }\n \n .em-mob-padding_left-20 {\n padding-left: 20px!important;\n }\n\n .em-mob-height-20px {\n height: 20px!important;\n }\n }\n</style>\n<tr em="block" class="em-structure">\n <td align="center" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20">\n <table border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">\n <tr>\n <td width="180" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="380" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n </tr>\n </table>\n </td>\n</tr>'},8456:t=>{t.exports='<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n\n .em-mob-wrap {\n display: block!important;\n }\n\n .em-mob-padding_right-20 {\n padding-right: 20px!important;\n }\n \n .em-mob-padding_left-20 {\n padding-left: 20px!important;\n }\n\n .em-mob-height-20px {\n height: 20px!important;\n }\n }\n</style>\n<tr em="block" class="em-structure">\n <td align="center" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20">\n <table border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">\n <tr>\n <td width="280" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="280" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n </tr>\n </table>\n </td>\n</tr>'},70869:t=>{t.exports='<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n\n .em-mob-wrap {\n display: block!important;\n }\n\n .em-mob-padding_right-20 {\n padding-right: 20px!important;\n }\n \n .em-mob-padding_left-20 {\n padding-left: 20px!important;\n }\n\n .em-mob-height-20px {\n height: 20px!important;\n }\n }\n</style>\n<tr em="block" class="em-structure">\n <td align="center" dir="rtl" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20">\n <table border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">\n <tr>\n <td width="180" dir="ltr" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="380" dir="ltr" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n </tr>\n </table>\n </td>\n</tr>'},20931:t=>{t.exports='<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n\n .em-mob-wrap {\n display: block!important;\n }\n\n .em-mob-padding_right-20 {\n padding-right: 20px!important;\n }\n \n .em-mob-padding_left-20 {\n padding-left: 20px!important;\n }\n\n .em-mob-height-20px {\n height: 20px!important;\n }\n }\n</style>\n<tr em="block" class="em-structure">\n <td align="center" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20">\n <table border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">\n <tr>\n <td width="180" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="180" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="180" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n </tr>\n </table>\n </td>\n</tr>'},24186:t=>{t.exports='<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n\n .em-mob-wrap {\n display: block!important;\n }\n\n .em-mob-padding_right-20 {\n padding-right: 20px!important;\n }\n \n .em-mob-padding_left-20 {\n padding-left: 20px!important;\n }\n\n .em-mob-height-20px {\n height: 20px!important;\n }\n }\n</style>\n<tr em="block" class="em-structure">\n <td align="center" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20">\n <table border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">\n <tr>\n <td width="130" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="130" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="130" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="130" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n </tr>\n </table>\n </td>\n</tr>'},68694:t=>{t.exports='\n<style>\n\t@media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {\n\t\t.em-mob-width-100perc {\n\t\t\twidth: 100% !important;\n\t\t\tmax-width: 100% !important;\n\t\t}\n\n\t\t.em-mob-width-91perc {\n\t\t\twidth: 91% !important;\n\t\t\tmax-width: 91% !important;\n\t\t}\n\t}\n</style>\n<tr em="block" class="em-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center" valign="top">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30"></td></tr></table>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t<table border="0" cellspacing="0" cellpadding="0">\n\t\t\t\t\t<tr><td width="660" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 100%; max-width: 660px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="602" border="0" cellspacing="0" cellpadding="0" style="width: 91%; max-width: 602px;" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t</table><![endif]--\x3e\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="10"></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n\n'},38610:t=>{t.exports='\n<style>\n\t@media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {\n\t\t.em-mob-width-100perc {\n\t\t\twidth: 100% !important;\n\t\t\tmax-width: 100% !important;\n\t\t}\n\n\t\t.em-mob-width-91perc {\n\t\t\twidth: 91% !important;\n\t\t\tmax-width: 91% !important;\n\t\t}\n\t}\n</style>\n<tr em="block" class="em-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center" valign="top">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30"></td></tr></table>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t<table border="0" cellspacing="0" cellpadding="0">\n\t\t\t\t\t<tr><td width="207" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 207px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="187" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]></td><td width="413" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 413px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="393" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t</table><![endif]--\x3e\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="10"></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n\n'},41705:t=>{t.exports='\n<style>\n\t@media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {\n\t\t.em-mob-width-100perc {\n\t\t\twidth: 100% !important;\n\t\t\tmax-width: 100% !important;\n\t\t}\n\n\t\t.em-mob-width-91perc {\n\t\t\twidth: 91% !important;\n\t\t\tmax-width: 91% !important;\n\t\t}\n\t}\n</style>\n<tr em="block" class="em-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center" valign="top">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30"></td></tr></table>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t<table border="0" cellspacing="0" cellpadding="0">\n\t\t\t\t\t<tr><td width="311" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 311px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="291" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]></td><td width="311" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 311px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="291" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t</table><![endif]--\x3e\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="10"></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n\n'},73248:t=>{t.exports='\n<style>\n\t@media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {\n\t\t.em-mob-width-100perc {\n\t\t\twidth: 100% !important;\n\t\t\tmax-width: 100% !important;\n\t\t}\n\n\t\t.em-mob-width-91perc {\n\t\t\twidth: 91% !important;\n\t\t\tmax-width: 91% !important;\n\t\t}\n\t}\n</style>\n<tr em="block" class="em-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center" valign="top">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30"></td></tr></table>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t<table border="0" cellspacing="0" cellpadding="0">\n\t\t\t\t\t<tr><td width="413" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 413px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="393" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]></td><td width="207" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 207px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="187" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t</table><![endif]--\x3e\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="10"></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n\n'},96588:t=>{t.exports='\n<style>\n\t@media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {\n\t\t.em-mob-width-100perc {\n\t\t\twidth: 100% !important;\n\t\t\tmax-width: 100% !important;\n\t\t}\n\n\t\t.em-mob-width-91perc {\n\t\t\twidth: 91% !important;\n\t\t\tmax-width: 91% !important;\n\t\t}\n\t}\n</style>\n<tr em="block" class="em-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center" valign="top">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30"></td></tr></table>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t<table border="0" cellspacing="0" cellpadding="0">\n\t\t\t\t\t<tr><td width="207" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 207px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="187" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]></td><td width="207" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 207px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="187" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]></td><td width="207" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 207px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="187" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t</table><![endif]--\x3e\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="10"></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n\n'},97433:t=>{t.exports='\n<style>\n\t@media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {\n\t\t.em-mob-width-100perc {\n\t\t\twidth: 100% !important;\n\t\t\tmax-width: 100% !important;\n\t\t}\n\n\t\t.em-mob-width-91perc {\n\t\t\twidth: 91% !important;\n\t\t\tmax-width: 91% !important;\n\t\t}\n\t}\n</style>\n<tr em="block" class="em-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center" valign="top">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30"></td></tr></table>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t<table border="0" cellspacing="0" cellpadding="0">\n\t\t\t\t\t<tr><td width="310" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 310px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="290" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t\t<td width="20">&nbsp;</td>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]></td><td width="310" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 310px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="290" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t\t<td width="20">&nbsp;</td>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t</table><![endif]--\x3e\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="10"></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n\n'},19378:(t,e,n)=>{"use strict";function i(t){return t}n.d(e,{Qm:()=>i,bg:()=>r});const a="INIT_MESSAGE";function d(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}class l{constructor(){this._children=[],this._isDisposed=!1}isDisposed(){return this._isDisposed}addDisposable(t){return this._children.push(t),t.hasOwnProperty("addDisposable")&&t.addDisposable({dispose:()=>{const e=this._children.indexOf(t);e>=0&&this._children.splice(e,1)}}),t}removeDisposable(t){const e=this._children.indexOf(t);e>=0&&this._children.splice(e,1)}dispose(){this._isDisposed=!0;for(const t of this._children)t.dispose()}}class s extends l{constructor(...t){super(...t),this._listeners=Object.create(null),this.addListenerAsync=(t,e,n=0,i)=>{const a=this._listeners[t]||(this._listeners[t]=[]);i&&"function"===typeof e&&(e=e.bind(i));const d=a.findIndex((([t,e])=>n<=e)),l=[e,n];return this.isDisposed()||a.splice(d>=0?d:a.length,0,l),{dispose(){const t=a.indexOf(l);t>=0&&a.splice(t,1)}}},this.fireAsync=(t,e)=>{if(!this.isDisposed()){const n=this._listeners[t]||(this._listeners[t]=[]);let i;for(let t=0;t<n.length;t++){let e=n[t][0],a=i;i=t=>e(t,a)}if(i)return i(e)}},this.addListener=(t,e,n=0)=>this.addListenerAsync(t,((t,n)=>{try{e(t)}catch(i){console.log(i)}return n&&n(t)}),n)}}class r extends l{constructor(t,e){super(),this._singleton=e,this._target=void 0,this._guid=d(),this._targetGuid="",this._emitter=this.addDisposable(new s),this._onReceiveMessage=t=>{const e=t.data;if(n=e,i=this._guid,n&&"object"===typeof n&&n.guid===i||this._singleton&&function(t,e){return t&&"object"===typeof t&&t.operationId===e}(e,a)){const n=this._emitter.fireAsync(e.operationId||"",void 0===e.operationId?t:e.data),i=e.result,a=e.error;i&&a&&Promise.resolve(n).then((t=>this._sendMessage(i,t)),(t=>this._sendMessage(a,t)))}var n,i},window.addEventListener("message",this._onReceiveMessage),this.addListener(a,(t=>{this._targetGuid!==t&&(this._targetGuid=t,this.send(a,this._guid))})),t&&this.setTarget(t)}setTarget(t){this._target!==t&&(this._target=t,this._targetGuid="",t&&t.postMessage({operationId:a,data:this._guid},"*"))}getTarget(){return this._target}get target(){return this._target}_sendMessage(t,e,n=!0){if(!n&&!this.isInited())return;const i=this.addDisposable(this.onInit(((n,a)=>{const d=t?{operationId:t,data:e}:e;n.postMessage({...d,guid:a},"*"),i.dispose()})))}send(t,e,n){return"string"===typeof t?this._sendMessage(t,e,n):this._sendMessage("",t,e)}sendAsync(t,e,n=!0){if(!n&&!this.isInited())return Promise.resolve();const i=d(),a=d();return new Promise(((n,d)=>{const s=this.addDisposable(new l);s.addDisposable(this.onInit(((l,r)=>{l.postMessage({operationId:t,data:e,guid:r,result:i,error:a},"*"),s.addDisposable(this._onMessage(i,(t=>{n(t),s.dispose()}))),s.addDisposable(this._onMessage(a,(t=>{d(t),s.dispose()})))})))}))}_onMessage(t,e,n=0){return this._emitter.addListener(t,e,n)}addListener(t,e,n){return e?this._onMessage(t,e,n):this._onMessage("",t)}addListenerAsyncPipe(t,e,n=0){return this._emitter.addListenerAsync(t,e,n)}addListenerAsync(t,e,n=0){return this._emitter.addListenerAsync(t,(async(t,n)=>{const i=await e(t);return n?n(t):i}),n)}isInited(){return!!this._targetGuid}get inited(){return!!this._targetGuid}onInit(t,e=!0,n=0){const i=this.addDisposable(new l);return this._targetGuid&&this._target?e&&Promise.resolve().then((()=>{this._targetGuid&&this._target?t(this._target,this._targetGuid):i.addDisposable(this.onInit(t,e,n))})):i.addDisposable(this._onMessage(a,(()=>{t(this._target,this._targetGuid)}),n)),i}dispose(){window.removeEventListener("message",this._onReceiveMessage),super.dispose()}}},93718:(t,e,n)=>{var i={"./en_US.ts":[90944,2466],"./ru_RU.ts":[3099,6859]};function a(t){if(!n.o(i,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=i[t],a=e[0];return n.e(e[1]).then((()=>n(a)))}a.keys=()=>Object.keys(i),a.id=93718,t.exports=a},42811:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0IC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CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+BnQM5P/BRgABx8sJWqTxoYAAAAASUVORK5CYII="},59142:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_01_blocks.5538cfdb.png"},50195:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_02_blocks.837fc2c9.png"},27544:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_03_blocks.126601f7.png"},59045:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_04_blocks.255c5c07.png"},97970:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_05_blocks.431b6844.png"},84093:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_01.33327158.png"},42854:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_02.d99d2aa6.png"},81871:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_03.5545ffad.png"},39024:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_04.398a4ca5.png"},35929:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_05.4c58df1b.png"}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9649],{7760:(e,a,l)=>{l.d(a,{A9:()=>p,Ay:()=>w,DL:()=>b,Dz:()=>c,Fv:()=>v,JV:()=>k,Up:()=>y,b9:()=>M,eX:()=>m,gm:()=>B,iy:()=>S,nJ:()=>h,om:()=>u,qX:()=>T,rc:()=>g,vs:()=>r});var t=l(90536),i=l(31770),o=l(55701);const d=(0,i.ur)({invalidateBlockId:null,isCodeMode:!1,codeModeDirection:"right",editorThemeColor:"light",isSettingsDisabled:!1,settings:{width:""},elementSettings:{},searchFilters:{},block:{id:void 0,isNew:!1,subject:"",description:"",html:"",project:void 0,project_title:"",project_author:void 0,tags:[],type:"Other",title:null,isAmp:!1},monacoDidMount:!1}),n="blockSlice",s=(0,t.createSlice)({name:n,initialState:d,reducers:{switchCodeMode:e=>{e.isCodeMode=!e.isCodeMode},setEditorThemeColor:(e,a)=>{e.editorThemeColor=a.payload},setBlockSettings:(e,a)=>{Object.assign(e,{...e,settings:a.payload,isSettingsDisabled:!1})},setBlockSettingsDisable:(e,a)=>{e.isSettingsDisabled=a.payload},setElementSettings:(e,a)=>{e.elementSettings=a.payload},setSearchFilters:(e,a)=>{e.searchFilters=a.payload},setBlockHtml:(e,a)=>{e.block.html=a.payload},resetBlockSlice:()=>d,setBlockIsAmp:(e,a)=>{e.block.isAmp=a.payload}},extraReducers:e=>{e.addMatcher((e=>"blocksApi/queries/queryResultPatched"===e.type),((e,a)=>{var l,t;const i=a.payload.queryCacheKey.match(/\(([0-9]+)\)/),o=null===(l=a.payload)||void 0===l?void 0:l.patches[0];if(null!==o&&void 0!==o&&null!==(t=o.path)&&void 0!==t&&t[0]&&(e.block[null===o||void 0===o?void 0:o.path[0]]=o.value),null!==i&&void 0!==i&&i[1]&&(e.invalidateBlockId=i[1]),a.payload.queryCacheKey.startsWith("getBlock")){var d,n;const l=null===(d=a.payload)||void 0===d?void 0:d.patches[0];null!==l&&void 0!==l&&null!==(n=l.path)&&void 0!==n&&n[0]&&(e.block[null===l||void 0===l?void 0:l.path[0]]=l.value)}})),e.addMatcher((e=>"blocksApi/invalidateTags"===e.type),((e,a)=>{if(a.payload[0].id===+e.invalidateBlockId)return{...d,isCodeMode:null===e||void 0===e?void 0:e.isCodeMode,codeModeDirection:e.codeModeDirection}})),e.addMatcher(o.VM.endpoints.editBlock.matchFulfilled,((e,{payload:a})=>{e.invalidateBlockId=null,e.block={...e.block,...a,renderGuid:e.block.renderGuid}})),e.addMatcher(o.VM.endpoints.autoSaveBlock.matchFulfilled,((e,a)=>{var l,t;(null===e||void 0===e||null===(l=e.block.id)||void 0===l?void 0:l.toString())===(null===(t=a.payload.id)||void 0===t?void 0:t.toString())&&(e.block.html=a.payload.html)})),e.addMatcher(o.VM.endpoints.getBlock.matchFulfilled,((e,{payload:a})=>{e.block={...d.block,...a}}))}}),{switchCodeMode:r,setEditorThemeColor:m,setBlockSettings:c,setElementSettings:p,setBlockSettingsDisable:g,setSearchFilters:u,setBlockHtml:b,resetBlockSlice:h,setBlockIsAmp:E}=s.actions,v=e=>e[n].isCodeMode,y=e=>e[n].editorThemeColor,k=e=>e[n].settings,T=e=>e[n].elementSettings,S=e=>e[n].isSettingsDisabled,M=e=>e[n].searchFilters,B=e=>e[n].block,w=s},34524:(e,a,l)=>{l.d(a,{Ay:()=>k,D2:()=>u,FC:()=>c,LZ:()=>b,NK:()=>p,NP:()=>h,dV:()=>y,qM:()=>E,ux:()=>v,wK:()=>g});var t=l(90536),i=l(55701),o=l(49211),d=l(85163);const n=(0,l(31770).ur)({blocksTotal:null,blocksTotalPages:null,parentEmailBlocksTotal:null,parentEmailBlocksTotalPages:null,templateBlocks:[],templateBlocksTotal:null,templateBlocksTotalPages:null,elementsView:!d.EW.isPlugin&&o.A.get(d.A9.em_elements_view)||d.Y$,elementsList:[],customFolders:{},blocksTrashTotal:0,elementsTrashList:[]}),s="blocksPageSlice",r=(0,t.createSlice)({name:s,initialState:n,reducers:{resetPagesAndTotal:()=>n,resetElementsList:e=>{e.elementsList=[]},toggleElementsView:(e,a)=>{e.elementsView=a.payload},removeBlockFromList:(e,{payload:a})=>{var l;let t=e.customFolders;a.folder!==d.y2&&null!==(l=t[a.folder])&&void 0!==l&&l.list&&(t[a.folder]={...t[a.folder],list:t[a.folder].list.filter((e=>e.id!==a.emailId)),total:t[a.folder].total-1},e.customFolders=t)}},extraReducers:e=>{e.addMatcher(i.VM.endpoints.getBlocks.matchFulfilled,((e,{meta:a,payload:l})=>{var t,i,o,d,n,s,r,m;const c=null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-Total"),p="trash"===(null===(i=a.arg.originalArgs)||void 0===i?void 0:i.status),g=!(null===(o=a.arg.originalArgs)||void 0===o||null===(d=o.name)||void 0===d||!d.length),u=null===(n=a.arg.originalArgs)||void 0===n?void 0:n.page,b=(null===(s=a.arg.originalArgs)||void 0===s?void 0:s.folderTag)||(null===(r=a.arg.originalArgs)||void 0===r||null===(m=r.tags)||void 0===m?void 0:m[0]);p?(g||(e.blocksTrashTotal=c),e.elementsTrashList=l):b?e.customFolders={...e.customFolders,[b]:{list:l,page:u,total:c}}:(a.arg.originalArgs.tags||g||(e.blocksTotal=c),e.elementsList=l)})),e.addMatcher(i.VM.endpoints.getParentEmailBlocks.matchFulfilled,((e,{meta:a})=>{var l,t;const i=null===(l=a.baseQueryMeta)||void 0===l?void 0:l.response.headers.get("X-WP-Total"),o=null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-TotalPages");e.parentEmailBlocksTotal=i,e.parentEmailBlocksTotalPages=o})),e.addMatcher(i.VM.endpoints.getTemplateBlocks.matchFulfilled,((e,{meta:a,payload:l})=>{var t,i;const o=null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-Total"),d=null===(i=a.baseQueryMeta)||void 0===i?void 0:i.response.headers.get("X-WP-TotalPages");e.templateBlocks=l,e.templateBlocksTotal=o,e.templateBlocksTotalPages=d})),e.addMatcher(i.VM.endpoints.editBlock.matchFulfilled,((e,{payload:a})=>{e.elementsList.map((e=>{var l,t;return(null===(l=e.id)||void 0===l?void 0:l.toString())===(null===(t=a.id)||void 0===t?void 0:t.toString())?Object.assign(e,{lock:a.lock,title:a.title,blocktags:a.blocktags}):e}))}))}}),{resetPagesAndTotal:m,resetElementsList:c,toggleElementsView:p,removeBlockFromList:g}=r.actions,u=e=>e[s].blocksTotal,b=e=>e[s].templateBlocks,h=e=>e[s].customFolders,E=e=>e[s].elementsList,v=e=>e[s].elementsTrashList,y=e=>e[s].blocksTrashTotal,k=r},99751:(e,a,l)=>{l.d(a,{$:()=>i});const t={pro:{config:{mode:"pro",autosaveTimeout:1e4,theme:"",themes:{},mergeTags:void 0,styles:"",revisionService:!1,headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!0,optimizeEnabled:!0,settingsEnabled:!0,UTMEnabled:!0,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!0,formFieldBorderRadiusEnabled:!0,formFieldBoxShadowEnabled:!0,formFieldVisibilityEnabled:!0,formFieldExportAsPictureEnabled:!0,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!0,elementVideoEnabled:!0,elementAIimageEnabled:!0,elementAItextEnabled:!0,elementCarouselEnabled:!0,elementFormEnabled:!0,preventSendDataToEM:!1,imageInfoToolUrl:"",imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3,ampExportEnabled:!0,formFieldAmpVisibilityEnabled:!0,testEmails:[]},project:void 0,page:{isNew:!0,type:"email",project:0,id:""}},editor:{config:{mode:"editor",autosaveTimeout:1e4,theme:"",themes:{},mergeTags:void 0,styles:"",headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!1,editImageControlEnabled:!0,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!0,optimizeEnabled:!0,settingsEnabled:!0,UTMEnabled:!0,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!1,formFieldBorderRadiusEnabled:!1,formFieldBoxShadowEnabled:!1,formFieldVisibilityEnabled:!1,formFieldExportAsPictureEnabled:!1,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!1,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!0,elementVideoEnabled:!0,elementAIimageEnabled:!0,elementAItextEnabled:!0,elementCarouselEnabled:!0,elementFormEnabled:!0,preventSendDataToEM:!1,imageInfoToolUrl:"",imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3,ampExportEnabled:!0,formFieldAmpVisibilityEnabled:!0,testEmails:[]},project:void 0,page:{isNew:!1,type:"email",project:0,id:""}},simple:{config:{mode:"simple",autosaveTimeout:1e4,theme:"",themes:{},mergeTags:void 0,styles:"",headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!0,optimizeEnabled:!0,settingsEnabled:!0,UTMEnabled:!1,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!1,formFieldBorderRadiusEnabled:!1,formFieldBoxShadowEnabled:!1,formFieldVisibilityEnabled:!1,formFieldExportAsPictureEnabled:!1,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!1,elementVideoEnabled:!1,elementAIimageEnabled:!0,elementAItextEnabled:!1,elementCarouselEnabled:!1,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:"",imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3,ampExportEnabled:!1,formFieldAmpVisibilityEnabled:!1,testEmails:[]},project:void 0,page:{isNew:!1,type:"email",project:0,id:""}}},i=e=>{const a=t[e];return a||t.editor}},53204:(e,a,l)=>{l.d(a,{Ay:()=>m,M:()=>r,YT:()=>s,rI:()=>n});var t=l(90536);const i=(0,l(31770).ur)({isCollapsed:!0,isMonacoFocusing:!1}),o="defaultModePanesSlice",d=(0,t.createSlice)({name:o,initialState:i,reducers:{setMonacoFocusing:(e,a)=>{e.isMonacoFocusing=a.payload},resetPanes:()=>i}}),{resetPanes:n,setMonacoFocusing:s}=d.actions,r=e=>e[o].isMonacoFocusing,m=d},65983:(e,a,l)=>{l.d(a,{A9:()=>c,AJ:()=>h,Ay:()=>_,Bj:()=>S,CT:()=>I,G_:()=>m,HO:()=>u,Hs:()=>P,M7:()=>p,Up:()=>w,VK:()=>v,VO:()=>T,VZ:()=>j,Wm:()=>k,eX:()=>r,iy:()=>C,no:()=>y,om:()=>g,pl:()=>b,ps:()=>M,qX:()=>f,rd:()=>A,ss:()=>E,uJ:()=>F,zn:()=>B});var t=l(90536),i=l(31770),o=l(17581);const d=(0,i.ur)({invalidateEmailId:null,editorThemeColor:"light",isSettingsDisabled:!1,settings:{backgroundColor:"",backgroundImage:[{type:"url",value:""}],backgroundPositionX:"",backgroundPositionY:"",backgroundRepeat:"",textStrong:!1,textItalic:!1,textUnderline:!1},elementSettings:{},searchFilters:{},emailCommonStyles:"",saveTime:null,mobileViewActive:{shutdown:!0,styles:!0},email:{id:void 0,is_inited:!1,isNew:!1,hasAmp:!1,subject:void 0,preheader:void 0,description:"",html:"",project:void 0,project_author:"",project_title:"",tags:[],utm_parameters:{utm_source:"",utm_medium:"",utm_campaign:"",utm_term:"",utm_content:""},parent_email:null,common_styles:"",title:null,emailtags:[],isAmp:!1},emailIsEdit:!1,isCodeMode:!1,codeModeDirection:void 0,emailViewType:void 0,changeKey:null,problemsList:[],activeProblemRange:null}),n="emailSlice",s=(0,t.createSlice)({name:n,initialState:d,reducers:{setEditorThemeColor:(e,a)=>{e.editorThemeColor=a.payload},setEmailFromHistory:(e,{payload:a})=>{const l=e.email,t=void 0===a.preheader,i=void 0===a.subject;e.email={...l,html:a.html,preheader:t?l.preheader:a.preheader,subject:i?l.subject:a.subject,common_styles:void 0===a.common_styles?l.common_styles:a.common_styles}},setEmailSettings:(e,{payload:a})=>{Object.assign(e,{...e,settings:{...a},isSettingsDisabled:!1})},setEmailSettingsDisable:(e,a)=>{e.isSettingsDisabled=a.payload},setElementSettings:(e,{payload:a})=>{e.elementSettings=a},setSearchFilters:(e,a)=>{e.searchFilters=a.payload},setEmailHTML:(e,a)=>{e.email.html=a.payload},setEmailSubject:(e,a)=>{e.email.title!==e.email.subject&&(e.email.subject||e.email.title)||(e.email.title=a.payload),e.email.subject=a.payload},setEmailPreheader:(e,a)=>{e.email.preheader=a.payload},resetEmailSlice:e=>d,setEmailTitle:(e,a)=>{e.email.title=a.payload},setIsInited:(e,a)=>{e.email.is_inited=a.payload},setEmailIsAmp:(e,a)=>{e.email.isAmp=a.payload},setProblemsList:(e,a)=>{e.problemsList=a.payload},setActiveProblemRange:(e,a)=>{e.activeProblemRange=a.payload}},extraReducers:e=>{e.addMatcher((e=>"emailsApi/queries/queryResultPatched"===e.type),((e,a)=>{var l,t;const i=a.payload.queryCacheKey.match(/\("([0-9]+)"\)/),o=null===(l=a.payload)||void 0===l?void 0:l.patches[0];null!==o&&void 0!==o&&null!==(t=o.path)&&void 0!==t&&t[0]&&(e.email[null===o||void 0===o?void 0:o.path[0]]=o.value),null!==i&&void 0!==i&&i[1]&&(e.invalidateEmailId=i[1]),e.emailIsEdit=!0})),e.addMatcher((e=>"emailsApi/invalidateTags"===e.type),((e,a)=>{if(a.payload[0].id===+e.invalidateEmailId)return d})),e.addMatcher(o.GY.endpoints.editEmail.matchFulfilled,((e,{payload:a})=>{e.invalidateEmailId=null,e.email={...e.email,...a,renderGuid:e.email.renderGuid}})),e.addMatcher(o.GY.endpoints.autoSaveEmail.matchFulfilled,((e,a)=>{var l,t;(null===(l=e.email.id)||void 0===l?void 0:l.toString())===(null===(t=a.payload.id)||void 0===t?void 0:t.toString())&&(e.email.html=a.payload.html)})),e.addMatcher(o.GY.endpoints.getEmail.matchFulfilled,((e,{payload:a})=>{var l,t;e.email={...d.email,...a,is_inited:a.is_inited||(a.id===(null===(l=e.email)||void 0===l?void 0:l.id)?null===(t=e.email)||void 0===t?void 0:t.is_inited:d.email.is_inited)},e.emailIsEdit=!1}))}}),{setEditorThemeColor:r,setEmailSettings:m,setElementSettings:c,setEmailSettingsDisable:p,setSearchFilters:g,setEmailSubject:u,setEmailPreheader:b,setEmailHTML:h,resetEmailSlice:E,setEmailTitle:v,setEmailFromHistory:y,setIsInited:k,setEmailIsAmp:T,setProblemsList:S,setActiveProblemRange:M}=s.actions,B=e=>e[n].invalidateEmailId,w=e=>e[n].editorThemeColor,F=e=>e[n].settings,f=e=>e[n].elementSettings,C=e=>e[n].isSettingsDisabled,I=e=>e[n].searchFilters,P=e=>e[n].email,A=e=>e[n].problemsList,j=e=>e[n].activeProblemRange,_=s},94925:(e,a,l)=>{l.d(a,{Ay:()=>y,FC:()=>p,MY:()=>u,NK:()=>c,NP:()=>v,X:()=>g,aO:()=>E,ff:()=>m,qM:()=>b,ux:()=>h});var t=l(90536),i=l(17581),o=l(49211),d=l(85163);const n=(0,l(31770).ur)({emailsTotal:0,elementsList:[],emailsTrashTotal:0,elementsTrashList:[],customFolders:{},elementsView:!d.EW.isPlugin&&o.A.get(d.A9.em_elements_view)||d.Y$}),s="emailsPageSlice",r=(0,t.createSlice)({name:s,initialState:n,reducers:{resetPagesAndTotal:()=>n,resetElementsList:e=>{e.elementsList=[]},toggleElementsView:(e,a)=>{e.elementsView=a.payload},removeEmailFromList:(e,{payload:a})=>{var l;let t=e.customFolders;a.folder!==d.y2&&null!==(l=t[a.folder])&&void 0!==l&&l.list&&(t[a.folder]={...t[a.folder],list:t[a.folder].list.filter((e=>e.id!==a.emailId)),total:t[a.folder].total-1},e.customFolders=t)}},extraReducers:e=>{e.addMatcher(i.GY.endpoints.getEmails.matchFulfilled,((e,{meta:a,payload:l})=>{var t,i,o,d,n,s,r,m;const c=+(null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-Total"))||0,p="trash"===(null===(i=a.arg.originalArgs)||void 0===i?void 0:i.status),g=!(null===(o=a.arg.originalArgs)||void 0===o||null===(d=o.name)||void 0===d||!d.length),u=null===(n=a.arg.originalArgs)||void 0===n?void 0:n.page,b=(null===(s=a.arg.originalArgs)||void 0===s?void 0:s.folderTag)||(null===(r=a.arg.originalArgs)||void 0===r||null===(m=r.tags)||void 0===m?void 0:m[0]);p?(g||(e.emailsTrashTotal=c),e.elementsTrashList=l):b?e.customFolders={...e.customFolders,[b]:{list:l,page:u,total:c}}:(a.arg.originalArgs.tags||g||(e.emailsTotal=c),e.elementsList=l)})),e.addMatcher(i.GY.endpoints.getTemplateEmails.matchFulfilled,((e,{meta:a,payload:l})=>{var t;const i=+(null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-Total"))||0;e.elementsList=l,e.emailsTotal=i})),e.addMatcher(i.GY.endpoints.editEmail.matchFulfilled,((e,{payload:a})=>{e.elementsList.map((e=>{var l,t;return(null===(l=e.id)||void 0===l?void 0:l.toString())===(null===(t=a.id)||void 0===t?void 0:t.toString())?Object.assign(e,{lock:a.lock,title:a.title,emailtags:a.emailtags}):e}))}))}}),{resetPagesAndTotal:m,toggleElementsView:c,resetElementsList:p,removeEmailFromList:g}=r.actions,u=e=>e[s].emailsTotal,b=e=>e[s].elementsList,h=e=>e[s].elementsTrashList,E=e=>e[s].emailsTrashTotal,v=e=>e[s].customFolders,y=r},77532:(e,a,l)=>{l.d(a,{Ac:()=>p,Ay:()=>g,BK:()=>m,e_:()=>r,js:()=>c,tm:()=>s});var t=l(90536),i=l(31770);const o="imageSlice",d=(0,i.ur)({currentImage:"",currentBackground:""}),n=(0,t.createSlice)({name:o,initialState:d,reducers:{setCurrentImage(e,a){e.currentImage=a.payload},setCurrentBackground(e,a){e.currentBackground=a.payload},clearCurrentImages(e,a){e.currentImage="",e.currentBackground=""}}}),{setCurrentImage:s,setCurrentBackground:r,clearCurrentImages:m}=n.actions,c=e=>e[o].currentImage,p=e=>e[o].currentBackground,g=n},87790:(e,a,l)=>{l.d(a,{AS:()=>g,Ay:()=>k,Bp:()=>c,Sl:()=>y,TB:()=>b,X8:()=>h,ah:()=>v,qT:()=>p});var t=l(90536),i=l(55701),o=l(84568),d=l(35880),n=l.n(d);const s=(0,l(31770).ur)({block:{isNew:!0,subject:"",description:"",html:'<table cellspacing="0" cellpadding="0" border="0" width="100%">'+n()+"</table>",project:void 0,project_title:"",tags:[],type:"Other",title:null},hasChanged:!1}),r="newBlockSlice",m=(0,t.createSlice)({name:r,initialState:s,reducers:{setNewBlockAll:(e,{payload:{subject:a="",description:l="",renderGuid:t,html:i='<table cellspacing="0" cellpadding="0" border="0" width="100%">'+n()+"</table>",tags:o=[],type:d="Other",title:s,isAmp:r=!1}})=>{e.hasChanged||(e.hasChanged=!0),e.block.title=s,e.block.subject=a,e.block.description=l,e.block.html=i,e.block.tags=o,e.block.type=d,e.block.renderGuid=t,e.block.isAmp=r},setNewBlockTitle:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.block.title=a.payload},setNewBlockDescription:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.block.description=a.payload},setNewBlockHtml:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.block.html=a.payload},setNewBlockTags:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.block.tags=a.payload},resetNewBlockSlice:e=>({...s,block:{...s.block,project:e.block.project,project_title:e.block.project_title}}),setBlockIsAmp:(e,a)=>{e.block.isAmp=a.payload}},extraReducers:e=>{e.addMatcher(o.Nq.endpoints.getProject.matchFulfilled,((e,a)=>{e.block.project=a.payload.id,e.block.project_title=a.payload.title})),e.addMatcher(i.VM.endpoints.getBlock.matchFulfilled,(e=>({...s,block:{...s.block,project:e.block.project,project_title:e.block.project_title}})))}}),{setNewBlockAll:c,setNewBlockTitle:p,setNewBlockDescription:g,setNewBlockHtml:u,setNewBlockTags:b,resetNewBlockSlice:h,setBlockIsAmp:E}=m.actions,v=e=>e[r].block,y=e=>e[r].hasChanged,k=m},8493:(e,a,l)=>{l.d(a,{$S:()=>_,Ay:()=>N,BQ:()=>h,Et:()=>I,K3:()=>B,MZ:()=>b,P3:()=>F,TC:()=>k,TU:()=>E,Uh:()=>P,YG:()=>j,Zs:()=>y,aY:()=>T,lg:()=>A,mk:()=>f,ol:()=>w,x3:()=>v,yY:()=>M,zH:()=>C});var t=l(90536),i=l(17581),o=l(84568),d=l(85163),n=l(573),s=l.n(n),r=l(31770),m=l(71210),c=l(32269);const p=(0,r.ur)({emailtags:[],email:{isNew:!0,is_inited:!1,subject:void 0,preheader:void 0,description:"",html:s(),project:void 0,project_title:"",tags:[],utm_parameters:{utm_source:"",utm_medium:"",utm_campaign:"",utm_term:"",utm_content:""},parent_email:null,common_styles:"{}",title:"",emailtags:[],isAmp:!1},hasChanged:!1}),g="newEmailSlice",u=(0,t.createSlice)({name:g,initialState:p,reducers:{setNewEmailAll:(e,{payload:{id:a,subject:l,description:t="",preheader:i,html:o=s(),utm_parameters:{utm_source:n="",utm_medium:r="",utm_campaign:m="",utm_term:p="",utm_content:g=""}={},common_styles:u={},emailtags:b=null,renderGuid:h,title:E,_embedded:v,isAmp:y=!1}})=>{var k;e.hasChanged||(e.hasChanged=!0),e.email.isAmp=y,e.email.title=E,e.emailtags=b,e.email.subject=l,e.email.description=t,e.email.common_styles=JSON.stringify(u),e.email.preheader=i,e.email.is_template=!1,e.email.html=o,e.email.tags=(null===(k=(0,c._q)({_embedded:v},d.zh))||void 0===k?void 0:k.map((e=>e.name)))||[],e.email.renderGuid=h,e.email.parent_email=a,e.email.utm_parameters={utm_source:n,utm_medium:r,utm_campaign:m,utm_term:p,utm_content:g},e.email.common_styles=JSON.stringify(d.BD)},setNewEmailTitle:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.title=a.payload},setNewEmailSubject:(e,a)=>{e.hasChanged||e.email.subject===a.payload||(e.hasChanged=!0),e.email.title!==e.email.subject&&(e.email.subject||e.email.title)||(e.email.title=a.payload),e.email.subject=a.payload},setNewEmailPreheader:(e,a)=>{e.hasChanged||e.email.preheader===a.payload||(e.hasChanged=!0),e.email.preheader=a.payload},setNewEmailDescription:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.description=a.payload},setNewEmailIsTemplate:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.is_template=a.payload},setNewEmailHtml:(e,a)=>{e.hasChanged||(e.hasChanged=!0),a.payload&&(e.email.html=a.payload)},setNewCommonStyles:(e,a)=>{e.hasChanged||(e.hasChanged=!0),a.payload&&(e.email.common_styles=a.payload)},setNewEmailTags:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.tags=a.payload},setNewEmailUtmSource:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_source=a.payload},setNewEmailUtmMedium:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_medium=a.payload},setNewEmailUtmCampaign:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_campaign=a.payload},setNewEmailUtmTerm:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_term=a.payload},setNewEmailUtmContent:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_content=a.payload},setNewIsInited:(e,a)=>{e.email.is_inited=a.payload},setNewEmailIsAmp:(e,a)=>{e.email.isAmp=a.payload},resetNewEmailSlice:e=>({...p,email:{...p.email,guid:(0,m.l)(),project:e.email.project,project_title:e.email.project_title}})},extraReducers:e=>{e.addMatcher(o.Nq.endpoints.getProject.matchFulfilled,((e,a)=>{e.email.project=a.payload.id,e.email.project_title=a.payload.title})),e.addMatcher(i.GY.endpoints.getEmail.matchFulfilled,(e=>({...p,email:{...p.email,project:e.email.project,project_title:e.email.project_title}})))}}),{setNewEmailAll:b,setNewEmailTitle:h,setNewEmailSubject:E,setNewEmailPreheader:v,setNewEmailDescription:y,setNewEmailIsTemplate:k,setNewEmailHtml:T,setNewCommonStyles:S,setNewEmailTags:M,setNewEmailUtmSource:B,setNewEmailUtmMedium:w,setNewEmailUtmCampaign:F,setNewEmailUtmContent:f,setNewEmailUtmTerm:C,resetNewEmailSlice:I,setNewIsInited:P,setNewEmailIsAmp:A}=u.actions,j=e=>e[g].email,_=e=>e[g].hasChanged,N=u},36404:(e,a,l)=>{l.d(a,{Ay:()=>c,od:()=>r,yN:()=>m});var t=l(90536),i=l(31770),o=l(84568);const d=(0,i.ur)({project:null}),n="projectSlice",s=(0,t.createSlice)({name:n,initialState:d,reducers:{setProject:(e,{payload:a})=>{e.project=a}},extraReducers:e=>{e.addMatcher(o.Nq.endpoints.getProject.matchFulfilled,((e,{payload:a})=>{e.project={...d.project,...a}})),e.addMatcher(o.Nq.endpoints.editProject.matchFulfilled,((e,{payload:a})=>{e.project={...d.project,...a}}))}}),{setProject:r}=s.actions,m=e=>e[n].project,c=s},64936:(e,a,l)=>{l.d(a,{Ay:()=>f,Cj:()=>k,Oo:()=>h,Os:()=>v,Wz:()=>E,YF:()=>b,cL:()=>T,gU:()=>F,o8:()=>B,qf:()=>u,sB:()=>y,sK:()=>S,uM:()=>w,vW:()=>M});var t=l(90536),i=l(31770),o=l(84568),d=l(93563),n=l(85163);const s=new URLSearchParams(window.location.search),r=s.get("tag"),m=s.get("folder"),c=(0,i.ur)({activeModal:"",secondModal:"",projectsTotal:"",projectsTotalPages:"",folders:[],activeTagId:r||null,activeFolderId:m||(r?null:n.y2),activeTab:null}),p="projectsPageSlice",g=(0,t.createSlice)({name:p,initialState:c,reducers:{openModal(e,a){e.activeModal=a.payload},setActiveTab(e,a){e.activeTab=a.payload},closeModal(e){e.activeModal=""},openSecondModal(e,a){e.secondModal=a.payload},closeSecondModal(e){e.secondModal=""},setFolders(e,{payload:a}){e.folders=a},setActiveTagId(e,{payload:a}){e.activeTagId=a}},extraReducers:e=>{e.addMatcher(o.Nq.endpoints.getProjects.matchFulfilled,((e,{meta:a})=>{var l,t;const i=null===(l=a.baseQueryMeta)||void 0===l?void 0:l.response.headers.get("X-WP-Total"),o=null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-TotalPages");e.projectsTotal=i,e.projectsTotalPages=o})),e.addMatcher(d.kE.endpoints.getFolders.matchFulfilled,((e,{payload:a})=>{e.folders=a}))}}),{openModal:u,setActiveTab:b,closeModal:h,openSecondModal:E,closeSecondModal:v,setFolders:y,setActiveTagId:k}=g.actions,T=e=>e[p].activeModal,S=e=>e[p].secondModal,M=e=>e[p].projectsTotal,B=e=>e[p].folders,w=e=>e[p].activeTagId,F=e=>e[p].activeTab,f=g},39738:(e,a,l)=>{l.d(a,{Ay:()=>g,RL:()=>p,p1:()=>c,qX:()=>r});var t=l(90536),i=l(17581),o=l(55701);const d=(0,l(31770).ur)({historyData:[],elementHistoryTotalPages:1}),n="revisionHistorySlice",s=(0,t.createSlice)({name:n,initialState:d,reducers:{resetElementHistorySlice:()=>({...d}),setElementHistory:(e,a)=>{0!==a.payload.length&&(e.historyData=a.payload)}},extraReducers:e=>{e.addMatcher(i.GY.endpoints.getEmailHistory.matchFulfilled,((e,{meta:a,payload:l})=>{var t;e.elementHistoryTotalPages=+(null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-TotalPages")),a.arg.originalArgs.page&&1!==a.arg.originalArgs.page||(e.historyData=l.data||[])})),e.addMatcher(o.VM.endpoints.getBlockHistory.matchFulfilled,((e,{meta:a,payload:l})=>{var t;e.elementHistoryTotalPages=+(null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-TotalPages")),l.args.page&&1!==l.args.page||(e.historyData=l.data||[])}))}}),{resetElementHistorySlice:r}=s.actions,{setElementHistory:m}=s.actions,c=e=>e[n].historyData,p=e=>e[n].elementHistoryTotalPages,g=s}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9640],{76794:(e,t,n)=>{n.r(t),n.d(t,{injectStandaloneMocks:()=>u});var a=n(33288),o=n(20116),i=n(15230),c=n(37444),s=n(60564),r=n.n(s);async function u(e,t){var n;const s=function(t){a.di.inject(e,i.sZ,(async()=>t))},u=await r().loadAsync(t,{base64:!0}),l=await(null===(n=u.files.key)||void 0===n?void 0:n.async("text"));if("string"===typeof l){const e=new Function("module",`var module = {}; var exports = module.exports = {}; var require = () => {}; ${l}; return exports;`)();"object"===typeof e&&"function"===typeof e.execute&&e.execute(s,o.BX,c.F)}}}}]);