useblocks 1.0.21 → 1.0.23
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.
- package/README.md +1 -1
- package/asset-manifest.json +22 -21
- package/iframe/{iframe-eblock.e7f65b558f5a813800a9.html → iframe-eblock.ece66097f060e52e2d37.html} +1 -1
- package/iframe/{iframe.e7f65b558f5a813800a9.html → iframe.ece66097f060e52e2d37.html} +1 -1
- package/iframe/js/cssbeautify.js +1 -1
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/plugin.html +11 -8
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +1 -1
- package/plugin_s.html +1 -1
- package/static/css/1795.3b54559d.css +1 -0
- package/static/css/5571.4415a91e.css +1 -0
- package/static/js/1795.0af49b47.js +1 -0
- package/static/js/{2256.e39ab4bc.js → 2256.2bfb4c72.js} +1 -1
- package/static/js/5927.737d9b20.chunk.js +1 -0
- package/static/js/{5681.56e7ff1f.js → 6138.149523da.js} +1 -1
- package/static/js/6567.687bb56e.js +1 -0
- package/static/js/698.bec2008c.js +1 -0
- package/static/js/8179.acf16a1a.chunk.js +1 -0
- package/static/js/8689.befab3f9.chunk.js +1 -0
- package/static/js/9420.717c4a98.js +1 -0
- package/static/js/useblocks_core.f031ee2c.js +1 -0
- package/translations.pot +69 -65
- package/useblocks-esm.js +1 -1
- package/useblocks.d.ts +7 -5
- package/useblocks.js +1 -1
- package/static/css/1795.51281719.css +0 -1
- package/static/css/5571.63471d68.css +0 -1
- package/static/js/1795.be851520.js +0 -1
- package/static/js/6567.235652bf.js +0 -1
- package/static/js/698.e962d73f.js +0 -1
- package/static/js/7146.9e07333d.chunk.js +0 -1
- package/static/js/8271.33d539a0.chunk.js +0 -1
- package/static/js/9420.28d76833.js +0 -1
- package/static/js/useblocks_core.f67c4e53.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[5927],{7205:(e,t,r)=>{r.d(t,{A:()=>o});const n=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e)),a=new Set(["https:","http:","file:"]),s=e=>{try{const{protocol:t}=new URL(e);return t.endsWith(":")&&!t.includes(".")&&!a.has(t)}catch{return!1}},c=(e,{stripHash:t})=>{var r,n;const a=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!a)throw new Error(`Invalid URL: ${e}`);let{type:s,data:c,hash:o}=a.groups;const i=s.split(";");o=t?"":o;let d=!1;"base64"===i[i.length-1]&&(i.pop(),d=!0);const u=null!==(r=null===(n=i.shift())||void 0===n?void 0:n.toLowerCase())&&void 0!==r?r:"",l=[...i.map((e=>{let[t,r=""]=e.split("=").map((e=>e.trim()));return"charset"===t&&(r=r.toLowerCase(),"us-ascii"===r)?"":`${t}${r?`=${r}`:""}`})).filter(Boolean)];return d&&l.push("base64"),(l.length>0||u&&"text/plain"!==u)&&l.unshift(u),`data:${l.join(";")},${d?c.trim():c}${o?`#${o}`:""}`};function o(e,t){if("string"!==typeof(t={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,...t}).defaultProtocol||t.defaultProtocol.endsWith(":")||(t.defaultProtocol=`${t.defaultProtocol}:`),e=e.trim(),/^data:/i.test(e))return c(e,t);if(s(e))return e;const r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));const a=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===a.protocol&&(a.protocol="http:"),t.forceHttps&&"http:"===a.protocol&&(a.protocol="https:"),t.stripAuthentication&&(a.username="",a.password=""),t.stripHash?a.hash="":t.stripTextFragment&&(a.hash=a.hash.replace(/#?:~:text.*?$/i,"")),a.pathname){const e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g;let t=0,r="";for(;;){const n=e.exec(a.pathname);if(!n)break;const s=n[0],c=n.index;r+=a.pathname.slice(t,c).replace(/\/{2,}/g,"/"),r+=s,t=c+s.length}r+=a.pathname.slice(t,a.pathname.length).replace(/\/{2,}/g,"/"),a.pathname=r}if(a.pathname)try{a.pathname=decodeURI(a.pathname)}catch{}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=a.pathname.split("/");const r=e[e.length-1];n(r,t.removeDirectoryIndex)&&(e=e.slice(0,-1),a.pathname=e.slice(1).join("/")+"/")}if(a.hostname&&(a.hostname=a.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(a.hostname)&&(a.hostname=a.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(const s of[...a.searchParams.keys()])n(s,t.removeQueryParameters)&&a.searchParams.delete(s);if(Array.isArray(t.keepQueryParameters)||!0!==t.removeQueryParameters||(a.search=""),Array.isArray(t.keepQueryParameters)&&t.keepQueryParameters.length>0)for(const s of[...a.searchParams.keys()])n(s,t.keepQueryParameters)||a.searchParams.delete(s);if(t.sortQueryParameters){a.searchParams.sort();try{a.search=decodeURIComponent(a.search)}catch{}}t.removeTrailingSlash&&(a.pathname=a.pathname.replace(/\/$/,"")),t.removeExplicitPort&&a.port&&(a.port="");const o=e;return e=a.toString(),t.removeSingleSlash||"/"!==a.pathname||o.endsWith("/")||""!==a.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===a.pathname)&&""===a.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}},44141:(e,t,r)=>{r.d(t,{KU:()=>d,Pz:()=>o,hI:()=>l,u$:()=>u});var n=r(93278),a=r(33288),s=r(39217),c=r(67421);const o=a.di.createIdentifier("client"),i=a.di.createIdentifier("ai_client"),d=e=>a.di.getInstance(e,o),u=e=>a.di.getOrCreateInstance(e,i,(()=>new c.LA({baseUrl:"https://ai-mail.useblocks.io"})));function l(e){return(t,r,c)=>{const o=a.di.getInstance(r,s.no);return(0,n.fetchBaseQuery)({...e,fetchFn:(null===o||void 0===o?void 0:o.execute)||fetch})(t,r,c)}}},53369:(e,t,r)=>{r.d(t,{A:()=>K});var n=r(40342),a=r(39990),s=r(83351),c=r(1779),o=r(141),i=r(65119),d=r(84568),u=r(93563),l=r(17581),h=r(21981),p=r(63531),m=r(53200),f=r(47036),y=r(40869),g=r(56920),P=r(76793),v=r(843),A=r(35317),w=r(62677),x=r(64936),j=r(94925),S=r(34524),I=r(65983),b=r(47358),C=r(7760),k=r(8493),$=r(87790),E=r(86286),Q=r(53204),O=r(39738),H=r(55701),R=r(94381),T=r(18777),L=r(62689),D=r(46312),W=r(84612),z=r(58819),M=r(15865),F=r(95679),U=r(88528),q=r(77532),N=r(36404),Z=r(18398),B=r(33288),J=r(23580);const _=(0,n.HY)({[B.di.reducerPath]:B.di.reducer,[D.Z8.reducerPath]:D.Z8.reducer,[R.Ad.reducerPath]:R.Ad.reducer,[a.Q2.reducerPath]:a.Q2.reducer,[c.S.reducerPath]:c.S.reducer,[o.k.reducerPath]:o.k.reducer,[s.OV.reducerPath]:s.OV.reducer,[i.yR.reducerPath]:i.yR.reducer,[d.Nq.reducerPath]:d.Nq.reducer,[u.kE.reducerPath]:u.kE.reducer,[l.GY.reducerPath]:l.GY.reducer,[H.VM.reducerPath]:H.VM.reducer,[h.m4.reducerPath]:h.m4.reducer,[p.yH.reducerPath]:p.yH.reducer,[m.B.reducerPath]:m.B.reducer,[f.f.reducerPath]:f.f.reducer,[T.Jg.reducerPath]:T.Jg.reducer,[F.CL.reducerPath]:F.CL.reducer,[U.tO.reducerPath]:U.tO.reducer,[L.vx.reducerPath]:L.vx.reducer,[y.M.reducerPath]:y.M.reducer,[g.F.reducerPath]:g.F.reducer,[P.KA.reducerPath]:P.KA.reducer,[v.Sd.reducerPath]:v.Sd.reducer,[A.y.reducerPath]:A.y.reducer,[x.Ay.name]:x.Ay.reducer,[j.Ay.name]:j.Ay.reducer,[S.Ay.name]:S.Ay.reducer,[I.Ay.name]:I.Ay.reducer,[b.Ay.name]:b.Ay.reducer,[C.Ay.name]:C.Ay.reducer,[k.Ay.name]:k.Ay.reducer,[$.Ay.name]:$.Ay.reducer,[E.Ay.name]:E.Ay.reducer,[Q.Ay.name]:Q.Ay.reducer,[q.Ay.name]:q.Ay.reducer,[O.Ay.name]:O.Ay.reducer,[W.Zs.reducerPath]:W.Zs.reducer,[z.Uu.reducerPath]:z.Uu.reducer,[N.Ay.name]:N.Ay.reducer,[M.So.reducerPath]:M.So.reducer,[Z.Ay.name]:Z.Ay.reducer,[w.C.reducerPath]:w.C.reducer}),K=(e,t)=>"authorizationApi/resetApiState"===t.type?_({[J.if]:e[J.if],[R.Ad.reducerPath]:e[R.Ad.reducerPath]},t):_(e,t)},37444:(e,t,r)=>{r.d(t,{F:()=>R,y:()=>T});var n=r(90536),a=r(31052),s=r(53369),c=r(39990),o=r(83351),i=r(65119),d=r(84568),u=r(93563),l=r(17581),h=r(21981),p=r(53200),m=r(63531),f=r(55701),y=r(47036),g=r(94381),P=r(18777),v=r(141),A=r(1779),w=r(40869),x=r(56920),j=r(76793),S=r(843),I=r(35317),b=r(95679),C=r(88528),k=r(62689),$=r(46312),E=r(84612),Q=r(58819),O=r(15865),H=r(62677);const R=[c.Q2,o.OV,A.S,v.k,i.yR,d.Nq,u.kE,l.GY,h.m4,p.B,f.VM,y.f,g.Ad,P.Jg,w.M,x.F,j.KA,S.Sd,I.y,b.CL,C.tO,k.vx,$.Z8,m.yH,E.Zs,Q.Uu,O.So,H.C];function T(){const e=(0,n.configureStore)({reducer:s.A,middleware:e=>e({serializableCheck:!1}).concat(R.map((e=>e.middleware)))});return(0,a.$k)(e.dispatch),e}},90070:(e,t,r)=>{r.d(t,{W0:()=>o,p6:()=>s});var n=r(33288);const a=n.di.createIdentifier(),s=()=>n.di.useInstance(a);class c{constructor(){this._storage=Object.create(null)}get(e){const t=this._storage[e];return t&&(!t.expires||t.expires<Date.now())?t.value:""}set(e,t,r){this._storage[e]={value:t,expires:r.expires?1e3*r.expires+Date.now():void 0}}remove(e){delete this._storage[e]}}const o=e=>n.di.inject(e,a,new c)},23580:(e,t,r)=>{r.d(t,{A$:()=>m,Ff:()=>d,IP:()=>i,My:()=>u,Nj:()=>h,if:()=>o,lg:()=>l,rl:()=>p});var n=r(92810),a=r(45934),s=r(82375),c=r(41664);const o="INJECTION",i=o,d=(e,t)=>{if(!e){const e=s.Q.createChild(),t=(0,c.Q)();return s.Q.inject(t,e),t}return e};function u(e){const t=e.getState()[o];return t&&s.Q.getInstance(t)}function l(){const e=u((0,a.Pj)());return function(t,r){e.inject(t,r)}}function h(e){return u((0,a.Pj)()).getInstance(e)}function p(e){const[t,r]=(0,n.useState)(),s=(0,a.Pj)(),c=(0,n.useRef)(Promise.resolve()),o=u(s);return(0,n.useEffect)((()=>{const t=c.current=c.current.then((()=>o.getInstanceAsync(e))).then((e=>{t===c.current&&r(e)}),(e=>console.log(e)))}),[r,e,s,o]),t}function m(e){return u((0,a.Pj)()).getServices(e)}},39217:(e,t,r)=>{r.d(t,{CJ:()=>f,eT:()=>i,ft:()=>m,jY:()=>l,mg:()=>u,no:()=>p,qT:()=>c});var n=r(14315),a=r(44141),s=r(33288);function c(e){for(;e.endsWith("/");)e=e.slice(0,e.length-1);return`${e}/wp-json`}const o={baseUrl:"https://app.useblocks.io/api/wp-json",baseApiParams:{secure:!0,credentials:"same-origin",format:"json"},securityWorker:()=>({credentials:"same-origin"})};o.baseUrl=c("https://app.useblocks.io/api");const i=s.di.createIdentifier();function d(e){return s.di.getOrCreateInstance(e,i,(()=>function(e=o){const t=new Map;return{create(r){const a=new n.RQ({...e,...r});return t.set(a,r),a},getOptions:()=>e,setOptions(r){e=r;for(const[n,a]of t)Object.assign(n,{...e,...a})}}}()))}function u(e,t={}){return d(e).create(t)}const l=s.di.createIdentifier(),h=s.di.createIdentifier(),p=s.di.createIdentifier(),m=e=>{var t;t=e,s.di.inject(t,p,{execute:async(e,r={})=>{const n=s.di.getServices(t,l),a=new Request(e,r);for(const t of n)await t.execute(a);let c=await fetch(a);const o=s.di.getServices(t,h);for(const t of o)c=await t.execute(c);return c}});const r=s.di.getInstance(e,p);s.di.inject(e,a.Pz,u(e,{customFetch:(null===r||void 0===r?void 0:r.execute)||fetch}))};let f;!function(e){const t="https://racs.rest/v3";e.post=function(e,r){const n={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};return fetch(`${t}?resource=${e}&dataset=${document.location.hostname}`,n)},e.getAll=async function(e,r=0){const n={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:`{"filter":{},"limit":${r}}`},a=await fetch(`${t}/get?resource=${e}&dataset=${document.location.hostname}`,n);return await a.json()}}(f||(f={}))},15230:(e,t,r)=>{r.d(t,{Cd:()=>o,Lz:()=>c,ax:()=>i,f5:()=>a,sZ:()=>s});var n=r(41664);const a="Not implemented in plugin",s=(0,n.Q)(),c=(0,n.Q)(),o=(0,n.Q)(),i=(0,n.Q)();(0,n.Q)(),(0,n.Q)()},12299:(e,t,r)=>{r.r(t),r.d(t,{init:()=>w});var n=r(39217),a=r(90070),s=r(37444),c=r(77509),o=r(33288),i=r(15230),d=r(14386),u=r(8671),l=r(55853),h=r(19209),p=r(33746),m=r(25565),f=r(62410),y=r(63772),g=r(37e3),P=r(91514),v=r(1281);r(85163).EW.isPlugin=!0;const A=(0,d.E)([u.e,l.E,h.F,P.h,p.F,v.Z,m.i,f.r,y.Z,g.JR]);async function w(e){const t=(0,s.y)(),r=new c.j,d=await(0,g.qF)(e.element,r),u=g.sC.get(d);if(u){const t=await u;if(t.getElement()===d)return await t.reset(e)}const l=async function(){o.di.inject(t,i.ax,t),e.standaloneKey&&o.di.inject(t,m.E,e.standaloneKey),o.di.inject(t,i.Lz,r),(0,a.W0)(t),(0,n.ft)(t);const s=await A(t);return await s.setOptions(e),o.di.inject(t,i.Cd,s),s.instance}();return d&&g.sC.set(d,l),l}},37e3:(e,t,r)=>{r.d(t,{JR:()=>g,qF:()=>P,sC:()=>v});r(57650),r(57964);var n=r(26254),a=r(89949),s=r(92810),c=r(97716),o=r(45934),i=r(64617),d=r(82212),u=r(32269),l=r(14386),h=r(893),p=r(33288),m=r(15230),f=r(17126),y=r(70082);const g=(0,l.l)((e=>{let t=null;const r=p.di.getInstance(e,m.Lz);let l;return{instance:{getElement:()=>t},async setOptions(g){let A=await P(g.element,r);const{instance:w}=p.di.getInstance(e,m.Cd)||{};if(t!==A){if(t&&v.delete(t),!(A&&v.has(A)&&w)){if(l&&l.dispose(),t=A,l=r.addDisposable(new u.jG),A)v.set(A,w);else{const e=document.createElement("div");e.style.position="absolute",e.style.left="-10000px",document.body.appendChild(e);const t=()=>{e.isConnected&&document.body.removeChild(e)};l.addDispose(t),A=e}return(t=>new Promise(((r,u)=>{var p;if(null!==(p=l)&&void 0!==p&&p.isDisposed())r();else{const u=(0,c.H)(t);u.render((0,y.jsx)(s.StrictMode,{children:(0,y.jsx)(o.Kq,{store:e,children:(0,y.jsx)(a.R,{onLoad:r,children:(0,y.jsx)(f.or.Provider,{value:{element:t},children:(0,y.jsx)(i.fS,{children:(0,y.jsx)(d.Y,{children:(0,y.jsx)(h.m,{children:(0,y.jsx)(n.A,{})})})})})})})})),l.addDispose(r),l.addDispose((()=>u.unmount()))}})))(A)}console.log("multiple init call on single HTMLELEMENT")}},dispose(){var e;null===(e=l)||void 0===e||e.dispose()}}}));function P(e,t){return"undefined"!==typeof e&&"string"===typeof e?(e=document.querySelector(e))||new Promise(((r,n)=>{const a=new MutationObserver((()=>{(e=document.querySelector(e))&&(t.dispose(),r(e))}));a.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),t.addDisposable({dispose:()=>a.disconnect()})})):e}const v=new Map},25565:(e,t,r)=>{r.d(t,{E:()=>u,i:()=>l});var n=r(20116),a=r(14999),s=r(14386),c=r(97001),o=r(44376),i=r(91738),d=r(33288);const u=d.di.createIdentifier(),l=(0,s.l)((async e=>{const t=d.di.getInstance(e,u);if(t){const n=(await r.e(9640).then(r.bind(r,76794))).injectStandaloneMocks;await n(e,t)}(0,n.BD)(e,a.A);const s=new c.P(e),l=new o.y(e);return{async setOptions(e){l.setOptions(e),await s.show(e.content)},instance:{...l.get(),show:e=>s.show(e),save:()=>s.save(),getEmail:()=>s.getEmail(),getBlocks:()=>s.getBlocks(),getEmailRevisions:()=>s.getEmailRevisions(),getComments:()=>s.getComments(),compileEmail:async e=>e?(0,i.AU)(e):await s.compileEmail()}}}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[5681],{88647:(t,e,n)=>{"use strict";n.d(e,{h:()=>d});var i,s=n(92810);function a(){return a=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},a.apply(null,arguments)}function r({title:t,titleId:e,...n},r){return s.createElement("svg",a({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",ref:r,"aria-labelledby":e},n),t?s.createElement("title",{id:e},t):null,i||(i=s.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 d=s.forwardRef(r);n.p},79154:(t,e,n)=>{"use strict";n.d(e,{h:()=>d});var i,s=n(92810);function a(){return a=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},a.apply(null,arguments)}function r({title:t,titleId:e,...n},r){return s.createElement("svg",a({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",ref:r,"aria-labelledby":e},n),t?s.createElement("title",{id:e},t):null,i||(i=s.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 d=s.forwardRef(r);n.p},28316:(t,e,n)=>{"use strict";n.d(e,{Kp:()=>i,Sb:()=>a,_1:()=>s});const i="SAVE",s="SHOW",a="NOTIFY"},82212:(t,e,n)=>{"use strict";n.d(e,{Y:()=>x});var i=n(92810),s=n(42108),a=n(23287),r=n(20648),d=n(94381),o=n(45934),l=n(2417),c=n.n(l),p=n(86286),m=n(85163),u=n(18398),b=n(71157),_=n(42068),g=n(93982),h=n(13522),A=n(70082);const E="locale",f="ant_locale",v="em_locale",w="em_ant_locale",O="em_mergeTags_locale",x=({children:t})=>{const[e,l]=(0,i.useState)((()=>(0,s.hU)())),[x,I]=(0,i.useState)(),[T,y]=(0,i.useState)(!0),D=(0,o.d4)(p.B),[S,L]=(0,d.HO)(),[N,C]=(0,d.Yj)(),R=(0,o.wA)(),M=(0,b.hN)(),P=D||(m.EW.isPlugin?void 0:"en_US");(0,i.useEffect)((()=>{try{let t=JSON.parse(localStorage.getItem(v));t||(t=JSON.parse(localStorage.getItem(E)),t&&(localStorage.removeItem(E),localStorage.setItem(v,JSON.stringify(t)))),l((0,s.hU)(t.data)),y(!1)}catch{y(!0)}try{let t=JSON.parse(localStorage.getItem(w));t||(t=JSON.parse(localStorage.getItem(f)),t&&(localStorage.removeItem(f),localStorage.setItem(w,JSON.stringify(t)))),I(t.data)}catch{}if(!m.EW.isPlugin)try{let t=JSON.parse(localStorage.getItem(O));R((0,u.me)(t.data))}catch{}}),[I,y,l,R]),(0,i.useEffect)((()=>{P&&n(17583)(`./${"uk"===P?"uk_UA":P}.js`).then((t=>{I(t.default),localStorage.setItem(w,JSON.stringify(t.default))}))}),[I,P]),(0,i.useEffect)((()=>{m.EW.isPlugin||P&&n(93718)(`./${"uk"===P?"uk_UA":P}.ts`).then((t=>{R((0,u.me)(t.default)),localStorage.setItem(O,JSON.stringify(t.default))}))}),[P,R]),(0,_.Z)((([t])=>{!t&&L.error&&M.fromError("GET_LOCALES_ERROR",void 0,L.error)}),[L.error,M]);const B=(0,g.ml)(h.A.READ_LOCALE),[k,U]=(0,i.useState)(!1);return(0,_.Z)((([t])=>{P!==t&&P&&B.fire(P).then((t=>{const e=t[0];if(e){var n;const t=null===(n=c()(e,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===n?void 0:n.locale_data.default;l((0,s.hU)(t)),U(!0)}else L.isSuccess?N({id:P}):S(void 0)}))}),[P,B,L,l,U]),(0,i.useEffect)((()=>{if(L.isSuccess){const t=L.data;if(P){const e=t.filter((([t])=>t===P));if(!e.length)return void U(!0);try{const t=JSON.parse(localStorage.getItem(v));if(e.every((([e,n])=>t.id===e&&n<=t.time)))return void U(!0)}catch{}N({id:P})}}}),[P,L,N,M,U]),(0,_.Z)((([t])=>{!t&&C.isError&&M.fromError("GET_LOCALE_ERROR",void 0,C.isError)}),[C.isError,M]),(0,i.useEffect)((()=>{if(L.isSuccess&&C.isSuccess){var t;if(C.originalArgs.id!==P)return;const e=L.data.filter((([t])=>t===P)),n=C.data,i=null===(t=c()(n,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===t?void 0:t.locale_data.default;try{localStorage.setItem(v,JSON.stringify({id:P,time:e[0][1],data:i}))}catch{}l((0,s.hU)(i)),U(!0)}}),[C,P,L,l,M,U]),(0,A.jsx)(a.CY,{i18n:e,children:(0,A.jsx)(r.Ay,{locale:x,children:!T||k?t:(0,A.jsx)(A.Fragment,{})})})}},17126:(t,e,n)=>{"use strict";n.d(e,{LG:()=>r,fh:()=>a,or:()=>s});var i=n(92810);const s=(0,i.createContext)({element:void 0}),a=(0,i.createContext)(void 0),r=()=>(0,i.useContext)(a)},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:()=>r});const i=new Date,s=new Date(+i+432e6).toISOString(),a=-(new Date).getTimezoneOffset()/60,r=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=${s}&timezone=${a}" src="${(t=>`https://cdt3.useblocks.io/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=${s}&timezone=${a}`)(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;"> </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"> </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;">•</div>\n </td>\n <td width="10"> </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(15115).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;"> \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c </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:()=>s});var i=n(93982);let s;var a;(a=s||(s={})).BEFORE_SAVE_EMAIL=(0,i.cZ)(),a.ON_SAVEBUTTON_CLICK_ID=(0,i.cZ)(),a.ON_NEXTBUTTON_CLICK_ID=(0,i.cZ)(),a.ON_PREVIOUSBUTTON_CLICK_ID=(0,i.cZ)(),a.ON_MODEL_CHANGE=(0,i.cZ)(),a.WILL_EMAIL_INIT_ID=(0,i.cZ)(),a.ON_EMAIL_INIT_ID=(0,i.cZ)(),a.ON_BLOCK_INIT_ID=(0,i.cZ)(),a.ON_CONTENT_CHANGED_ID=(0,i.cZ)(),a.ON_EMAIL_CHANGED_ID=(0,i.cZ)(),a.ON_BLOCK_CHANGED_ID=(0,i.cZ)(),a.ON_SEND_TESTEMAIL_ID=(0,i.cZ)(),a.ON_SEND_LIVEPREVIEW_ID=(0,i.cZ)(),a.ON_SHARE_ID=(0,i.cZ)(),a.ON_SHOW_PREVIEW_ID=(0,i.cZ)(),a.ON_EMAIL_CLONE_ID=(0,i.cZ)(),a.ON_SEND_EMAIL_MODAL_ID=(0,i.cZ)(),a.ON_NOTIFICATION=(0,i.cZ)(),a.READ_LOCALE=(0,i.cZ)()},85163:(t,e,n)=>{"use strict";n.d(e,{A9:()=>d,BD:()=>lt,Bv:()=>C,CJ:()=>p,EW:()=>r,F3:()=>g,F5:()=>s,G$:()=>X,IE:()=>Z,IJ:()=>b,JE:()=>Q,Jy:()=>k,KI:()=>tt,N7:()=>U,ND:()=>at,QV:()=>ct,Qz:()=>K,Ru:()=>f,St:()=>H,T:()=>m,Tm:()=>Y,UW:()=>l,Ug:()=>ot,V0:()=>o,VG:()=>h,Vp:()=>st,Vv:()=>y,WU:()=>S,Y$:()=>J,YY:()=>dt,aO:()=>z,bV:()=>w,e3:()=>mt,eA:()=>W,eG:()=>$,ff:()=>a,gY:()=>j,hc:()=>M,iU:()=>nt,iV:()=>G,iW:()=>L,jg:()=>pt,lx:()=>A,m3:()=>V,mX:()=>x,nA:()=>B,nd:()=>u,p5:()=>et,pe:()=>P,rW:()=>v,rY:()=>R,rb:()=>D,rl:()=>q,vd:()=>_,wF:()=>it,xz:()=>O,y2:()=>c,yI:()=>T,yo:()=>F,yy:()=>I,zh:()=>rt,zx:()=>N});var i=n(19378);const s="LOADING",a="ERROR",r={isPlugin:!1},d={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"},o={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"},l="deleted",c="all",p="not all",m="light",u="dark",b="system",_="(prefers-color-scheme: light)",g="(prefers-color-scheme: dark)",h="#1890ff",A={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 E;!function(t){t[t.Amp=0]="Amp",t[t.HTML=1]="HTML",t[t.Everywhere=2]="Everywhere"}(E||(E={}));const f={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")},v={language:"html",detectIndentation:!1,wordWrap:"on",wrappingIndent:"same",smoothScrolling:"on",automaticLayout:!0,tabSize:2,indentSize:2};let w;!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"}(w||(w={}));const O="Appearance",x="Structure",I="Settings",T="Properties",y="History",D="Disabled_tab",S="Edit selected element",L="UTM parameters",N="Edit",C="Build",R="Styles",M="Discuss",P="TEXT_AI",B="Blocks",k="Atoms",U="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}},F="Owner",H="Administrator",V="User",X="The invitation has been sent",j="Assign the project owner",K="Change role to Administrator",z="Change role to User",W="Remove member",Q="Revoke the invite",Z="block",Y="email",J="cards",q="list",$="pending",tt="d41d8",et=1865,nt=6892,it={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},st="desktop",at="mobile",rt="emailtags",dt="blocktags",ot="all_folders",lt={text:{fontFamily:["Google Fonts","Sans Serif","Mulish","Regular"],fontSize:16,fontSizeDim:"px",lineHeight:24,lineHeightDim:"px",color:"#595959",textAlign:"left",paddingBottom:10,paddingBottomDim:"px"},headings:{fontFamily:["Google Fonts","Sans Serif","Mulish","Bold"],fontSize:28,fontSizeDim:"px",lineHeight:34,lineHeightDim:"px",color:"#000000",textAlign:"left",paddingTop:20,paddingTopDim:"px",paddingBottom:10,paddingBottomDim:"px",letterSpacing:0,letterSpacingDim:"px",bold:!0,italic:!1},links:{color:"#1890ff",underline:!0},buttons:{fontFamily:["Google Fonts","Sans Serif","Mulish","Medium"],fontSize:16,fontSizeDim:"px",letterSpacing:0,letterSpacingDim:"px",color:"#FFFFFF",bold:!1,italic:!1,backgroundColor:"#1890ff",marginTop:10,marginTopDim:"px",marginBottom:10,marginBottomDim:"px",border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:6,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},textAlign:"center",padding:{all:null,top:null,right:null,bottom:null,left:null}},block:{backgroundColor:""}},ct=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")}),pt={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"> </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"> </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:()=>o});const s="INIT_MESSAGE";function a(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}class r{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 d extends r{constructor(...t){super(...t),this._listeners=Object.create(null),this.addListenerAsync=(t,e,n=0,i)=>{const s=this._listeners[t]||(this._listeners[t]=[]);i&&"function"===typeof e&&(e=e.bind(i));const a=s.findIndex((([t,e])=>n<=e)),r=[e,n];return this.isDisposed()||s.splice(a>=0?a:s.length,0,r),{dispose(){const t=s.indexOf(r);t>=0&&s.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],s=i;i=t=>e(t,s)}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 o extends r{constructor(t,e){super(),this._singleton=e,this._target=void 0,this._guid=a(),this._targetGuid="",this._emitter=this.addDisposable(new d),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,s)){const n=this._emitter.fireAsync(e.operationId||"",void 0===e.operationId?t:e.data),i=e.result,s=e.error;i&&s&&Promise.resolve(n).then((t=>this._sendMessage(i,t)),(t=>this._sendMessage(s,t)))}var n,i},window.addEventListener("message",this._onReceiveMessage),this.addListener(s,(t=>{this._targetGuid!==t&&(this._targetGuid=t,this.send(s,this._guid))})),t&&this.setTarget(t)}setTarget(t){this._target!==t&&(this._target=t,this._targetGuid="",t&&t.postMessage({operationId:s,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,s)=>{const a=t?{operationId:t,data:e}:e;n.postMessage({...a,guid:s},"*"),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=a(),s=a();return new Promise(((n,a)=>{const d=this.addDisposable(new r);d.addDisposable(this.onInit(((r,o)=>{r.postMessage({operationId:t,data:e,guid:o,result:i,error:s},"*"),d.addDisposable(this._onMessage(i,(t=>{n(t),d.dispose()}))),d.addDisposable(this._onMessage(s,(t=>{a(t),d.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 r);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(s,(()=>{t(this._target,this._targetGuid)}),n)),i}dispose(){window.removeEventListener("message",this._onReceiveMessage),super.dispose()}}},56991:(t,e,n)=>{"use strict";n.d(e,{bD:()=>r,Mu:()=>d,cM:()=>l,rD:()=>o});var i=n(45934),s=n(18398),a=n(71210);function r(t,e){if(t!==e){if(!t||!e||"object"!==typeof t||"object"!==typeof e)return!1;const n=e instanceof Array;if(t instanceof Array){if(!n)return!1;const i=t.length;if(e.length!==i)return!1;for(let n=0;n<i;n++)if(!r(t[n],e[n]))return!1}else if(n)return!1;const i=Object.keys(t),s=Object.keys(e),a=i.length;if(a!==s.length)return!1;for(let d=0;d<a;d++){const n=i[d];if(!e.hasOwnProperty(n)||!r(t[n],e[n]))return!1}}return!0}function d(t){if(t){const{type:e,project:n,isNew:i,id:s}=t;return`/projects/${n}/${"block"===e?"blocks":"emails"}/${i?`new?template=${s}`:s}`}return""}function o(){return(0,i.d4)(s.zg)}function l(t,e,n){return null!==t&&void 0!==t&&t.length?t.map(((t,i)=>function(t){return t.hasOwnProperty("children")}(t)?{key:(0,a.l)(),value:t.value,label:t.label,children:l(t.children,e,n),type:t.type}:{key:(0,a.l)(),label:t.label,value:t.value,onClick:e=>{n(t.value,e.domEvent)}})):void 0}},33288:(t,e,n)=>{"use strict";n.d(e,{di:()=>r});var i=n(95152),s=n(41664),a=n(23580);const r={getContainer:a.My,createIdentifier:s.Q,reducer:a.Ff,reducerPath:a.IP,getInstance:function(t,e){return(t instanceof i.m?t:(0,a.My)(t)).getInstance(e)},getInstanceAsync:function(t,e){return(t instanceof i.m?t:(0,a.My)(t)).getInstanceAsync(e)},getOrCreateInstance:function(t,e,n){return(t instanceof i.m?t:(0,a.My)(t)).getOrCreateInstance(e,n)},inject:function(t,e,n,i){return(0,a.My)(t).inject(e,n)},addService:function(t,e,n){return(0,a.My)(t).addService(e,n)},getServices:function(t,e){return(0,a.My)(t).getServices(e)},useInject:a.lg,useInstance:a.Nj,useInstanceAsync:a.rl,useServices:a.A$}},41664:(t,e,n)=>{"use strict";n.d(e,{Q:()=>s});var i=n(71210);function s(t=(0,i.l)()){return t}},82375:(t,e,n)=>{"use strict";n.d(e,{Q:()=>i});const i=new(n(95152).m)},30725:(t,e,n)=>{"use strict";n.d(e,{p:()=>s});var i=n(23580);function s(t){return(e,n,s,a)=>{const r=(0,i.My)(n);return t(r)(e,n,s,a)}}},77509:(t,e,n)=>{"use strict";n.d(e,{j:()=>i});class i{constructor(t=[]){this._inner=t,this._isDisposed=!1}addDisposable(t){return this._inner.push(t),t instanceof i&&t.addDispose((()=>{this.removeDisposable(t)})),t}addDispose(t){this.addDisposable({dispose:t})}removeDisposable(t){const e=this._inner.indexOf(t);e>=0&&this._inner.splice(e,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const t of this._inner)t.dispose()}}}},45695:(t,e,n)=>{"use strict";n.d(e,{K9:()=>m,QC:()=>c,XW:()=>p,ur:()=>l});var i=n(19378),s=n(33288),a=n(45934),r=n(41664),d=n(92810);const o=(0,r.Q)("MESSAGE_SERVICE");function l(){const t=c();return(0,d.useCallback)((e=>{t.setTarget(e instanceof Element?e.contentWindow:e)}),[t])}function c(){const t=(0,a.Pj)();return(0,d.useMemo)((()=>function(t){return s.di.getOrCreateInstance(t,o,(()=>new i.bg))}(t)),[t])}function p(){const t=c();return(0,d.useCallback)((function(e){t.send(e)}),[t])}function m(){const t=c();return(0,d.useCallback)((function(e,n){t.send(e,n)}),[t])}},47381:(t,e,n)=>{"use strict";n.d(e,{d:()=>i});const i=(t,e)=>{const n=()=>{try{const e={...t,appLabel:"blocks_app"};window.dataLayer&&"function"===typeof window.dataLayer.push?window.dataLayer.push(e):console.log("Attempting to add to the dataLayer:",t)}catch(e){console.error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 GTM:",e)}};e?setTimeout(n,e):n()}},71210:(t,e,n)=>{"use strict";function i(){var t=(new Date).getTime(),e="undefined"!==typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var i=16*Math.random();return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(e+i)%16|0,e=Math.floor(e/16)),("x"===n?i:3&i|8).toString(16)}))}n.d(e,{l:()=>i})},89698:(t,e,n)=>{"use strict";n.d(e,{V:()=>l});var i=n(85163),s=n(45695),a=n(23287),r=n(92810),d=n(45934),o=n(86286);function l(){const t=(0,s.QC)(),e=(0,d.d4)(o.C1),{__:n}=(0,a.s9)(),[l,c]=(0,r.useState)("");(0,r.useEffect)((()=>{if(e.locale!==l){const s=(0,i.QV)(n),a=t.onInit((()=>{t.send(i.Ru.SANDBOX_TRANSLATIONS,{name:e.locale,data:s}),c(e.locale)}));return()=>a.dispose()}}),[e.locale,l,c,n,t]),(0,r.useEffect)((()=>{const e=t.addListener(i.Ru.RELOAD,(()=>{c("")}));return()=>e.dispose()}),[c,t])}},37969:(t,e,n)=>{"use strict";n.d(e,{y:()=>o});var i=n(85163),s=n(45695),a=n(92810),r=n(70082);const d=Symbol("isIframeEvent");function o({children:t}){const[e,n]=(0,a.useState)(),[o,l]=(0,a.useState)(),[c,p]=(0,a.useState)(!1),m=(0,s.QC)();return(0,a.useEffect)((()=>{if(e){const t=m.addListener(i.Ru.APPLICATION_IFRAME_DRAG_EVENT,(t=>{if("drageleave"!==t.type&&"dragenter"!==t.type){const n=e.getBoundingClientRect(),i=t.clientX+n.x+window.scrollX,s=t.clientY+n.y+window.scrollY,a=document.elementFromPoint(i,s);if(a){const e=new DataTransfer,n=new DragEvent(t.type,{clientX:i,clientY:s,cancelable:!0,bubbles:!0,dataTransfer:e});n[d]=!0,a.dispatchEvent(n)}}}));return()=>t.dispose()}}),[m,e]),(0,a.useEffect)((()=>{const t=t=>{t[d]||p(!0)},e=t=>{t[d]||p(!1)};return window.addEventListener("dragstart",t),window.addEventListener("dragend",e),()=>{window.removeEventListener("dragstart",t),window.removeEventListener("dragend",e)}}),[o]),(0,a.useEffect)((()=>{const t=t=>{if(!t[d]){var e;const n=o.getBoundingClientRect();m.send(i.Ru.SANDBOX_DRAG_EVENT,{value:(null===(e=t.dataTransfer)||void 0===e?void 0:e.getData("Text"))||"",type:t.type,clientX:t.pageX-n.x-window.scrollX,clientY:t.pageY-n.y-window.scrollY})}};if(o)return o.addEventListener("dragenter",t),o.addEventListener("dragover",t),o.addEventListener("dragleave",t),o.addEventListener("drop",t),o.addEventListener("dragend",t),()=>{o.removeEventListener("dragenter",t),o.removeEventListener("dragover",t),o.removeEventListener("dragleave",t),o.removeEventListener("drop",t),o.removeEventListener("dragend",t)}}),[o,m]),(0,r.jsxs)("div",{ref:n,children:[c&&(0,r.jsx)("div",{ref:l,className:"iframe-provider"}),t]})}},43672:(t,e,n)=>{"use strict";n.d(e,{w:()=>l});var i=n(95838),s=n(85163),a=n(56991),r=n(45695),d=n(92810);const{useToken:o}=i.A;function l(){const t=(0,r.QC)(),{token:e}=o(),[n,i]=(0,d.useState)();(0,d.useEffect)((()=>{if(!(0,a.bD)(n,e)){const n=t.onInit((()=>{t.send(s.Ru.SANDBOX_SET_THEME_VARIABLES,e),i(e)}));return()=>n.dispose()}}),[e,n,i,t]),(0,d.useEffect)((()=>{const e=t.addListener(s.Ru.RELOAD,(()=>{i(void 0)}));return()=>e.dispose()}),[i,t])}},38920:(t,e,n)=>{"use strict";n.d(e,{r:()=>f});var i=n(85163),s=n(59287),a=n(92810),r=n(45934),d=n(64617),o=n(17581),l=n(53204),c=n(47358),p=n(65983),m=n(39738),u=n(86286),b=n(56991),_=n(32411),g=n(83863),h=n(71157),A=n(42068),E=n(47381);function f(t){const{emailId:e,projectId:n}=(0,d.g)(),f=(0,h.hN)(),v=(0,b.rD)(),w=(0,r.d4)(l.M),O=(0,_.fn)(),x=(0,a.useRef)(0),I=(0,r.d4)(m.p1),T=(0,r.d4)(c.Wm),y=(0,r.d4)(c.B),D=(0,r.d4)(u.C1),[S,L]=(0,o.LX)(),N=(0,r.wA)(),{isSuccess:C,isLoading:R}=(0,o.YV)({emailId:e},{skip:!e}),[M,P]=(0,a.useState)(null);(0,a.useEffect)((()=>{if(C&&!R&&null!==I&&void 0!==I&&I.length){const n=I[0];var e;if(M!==(null===t||void 0===t?void 0:t.id))null!==(e=n.slug)&&void 0!==e&&e.includes("autosave")&&O&&N((0,p.no)(n)),P(null===t||void 0===t?void 0:t.id)}}),[N,I,C,R,null===t||void 0===t?void 0:t.id,M,O,e]);const B=(0,a.useCallback)((()=>{if(t){const e={title:t.title,project:t.project,html:(null===O||void 0===O?void 0:O.getValue())||"",excerpt:t.date_gmt,subject:t.subject,preheader:t.preheader,common_styles:t.common_styles};S({emailId:t.id,body:e}).then((a=>{if((0,E.d)({event:"save",action:"auto_save_email",email_id:t.id,project_id:n}),!function(t){return t.hasOwnProperty("data")}(a))throw a.error;var r,d;fetch((0,s.W)(i.Tm,n,null===(r=a.data)||void 0===r?void 0:r.id,null===(d=a.data)||void 0===d?void 0:d.modified),{mode:"no-cors"}),f.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:e,message:""},!0)})).catch((t=>{f.fromError("EMAIL_AUTOSAVE_ERROR",e,t,!0),console.log(t)}))}}),[S,t,O,n,f]),[k,U]=(0,a.useState)(!1),G=(0,a.useCallback)((()=>{if((null===I||void 0===I?void 0:I.length)>0){const t=[...I].sort(((t,e)=>Date.parse(null===e||void 0===e?void 0:e.modified)-Date.parse(null===t||void 0===t?void 0:t.modified)))[0];Date.parse((new Date).toString())-Date.parse(null===t||void 0===t?void 0:t.modified)>1.5*((null===v||void 0===v?void 0:v.autosaveTimeout)||1e4)&&T&&!w&&"Discuss"!==y&&B()}else T&&!w&&"Discuss"!==y&&B()}),[I,w,T,y,B,null===v||void 0===v?void 0:v.autosaveTimeout]);(0,A.Z)((([t])=>{k&&!t&&(G(),U(!1))}),[k,G,U]);const F=null===D||void 0===D?void 0:D.autosaves,[H,V]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{H&&!w&&(clearTimeout(x.current),x.current=setTimeout((()=>U(!0)),(null===v||void 0===v?void 0:v.autosaveTimeout)||1e4),V(!1))}),[H,w,null===v||void 0===v?void 0:v.autosaveTimeout,U,V]),(0,a.useEffect)((()=>{if(F&&C&&void 0!==(null===t||void 0===t?void 0:t.id)){const e=(0,g.Og)(O,(()=>{T&&null!==t&&void 0!==t&&t.is_inited&&V(!0)}));return()=>{e.dispose()}}}),[O,V,F,C,null===t||void 0===t?void 0:t.id,T,null===t||void 0===t?void 0:t.is_inited]),(0,A.Z)((([e,n])=>{C&&void 0!==(null===t||void 0===t?void 0:t.id)&&T&&null!==t&&void 0!==t&&t.is_inited&&(e===(null===t||void 0===t?void 0:t.title)&&n===(null===t||void 0===t?void 0:t.common_styles)||V(!0))}),[null===t||void 0===t?void 0:t.title,null===t||void 0===t?void 0:t.common_styles,T,C,V,null===t||void 0===t?void 0:t.id,null===t||void 0===t?void 0:t.is_inited]),(0,a.useEffect)((()=>()=>{clearTimeout(x.current)}),[D,null===t||void 0===t?void 0:t.renderGuid]),(0,a.useEffect)((()=>{clearTimeout(x.current)}),[null===t||void 0===t?void 0:t.modified]),L}},9653:(t,e,n)=>{"use strict";n.d(e,{U:()=>l});var i=n(85163),s=n(45695),a=n(32411),r=n(83863),d=n(42068),o=n(92810);const l=t=>{const e=(0,a.fn)(),n=(0,s.QC)(),l=(null===t||void 0===t?void 0:t.html)||"",c=(0,o.useRef)();c.current=t;const p=(0,o.useCallback)((t=>{const e=c.current;if(t===(null===e||void 0===e?void 0:e.renderGuid))return n.sendAsync(i.Ru.SANDBOX_INITED,{guid:e.renderGuid})}),[n]),m=(0,o.useCallback)((t=>{const e=c.current;if(t===(null===e||void 0===e?void 0:e.renderGuid))return n.sendAsync(i.Ru.SANDBOX_INIT_START,{guid:e.renderGuid})}),[n]),u=(0,o.useCallback)((async t=>{const s=c.current;if((null===s||void 0===s?void 0:s.renderGuid)===t){const t=null===l||void 0===l?void 0:l.replaceAll("\r\n","\n");try{(0,r.po)(e),e.setValue(t)}finally{(0,r.SF)(e)}const a=e.getValue();await n.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:a,guid:null===s||void 0===s?void 0:s.renderGuid})}}),[l,e,n]);(0,d.Z)((async([e])=>{const n=null===t||void 0===t?void 0:t.renderGuid;n&&n!==e&&(await m(n),await u(n),await p(n))}),[null===t||void 0===t?void 0:t.renderGuid,null===t||void 0===t?void 0:t.id,u])}},69106:(t,e,n)=>{"use strict";n.d(e,{f:()=>b});var i=n(85163),s=n(13522),a=n(45695),r=n(93982),d=n(32411),o=n(83863),l=n(42068),c=n(92810),p=n(65983),m=n(8493),u=n(45934);const b=(t,e)=>{const n=(0,u.wA)(),b=(0,d.fn)(),_=(0,a.QC)(),g=(0,r.ml)(s.A.WILL_EMAIL_INIT_ID),h=(0,r.ml)(s.A.ON_EMAIL_INIT_ID),A=(0,r.ml)(s.A.ON_CONTENT_CHANGED_ID),E=(0,r.ml)(s.A.ON_EMAIL_CHANGED_ID),f=(0,r.ml)(s.A.ON_MODEL_CHANGE),v=(0,c.useRef)(!1),w=(0,c.useRef)();w.current=t,(0,c.useEffect)((()=>{const n=w.current;if(i.EW.isPlugin&&!v.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const t=b.getValue();E.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}),[b,t,E,e]),(0,l.Z)((([t])=>{t!==b&&f.fire(b)}),[b,f]),(0,c.useEffect)((()=>{if(i.EW.isPlugin){const n=b.onDidChangeContent((()=>{const n=w.current;if(!v.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const t=b.getValue();A.fire(t),E.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}));return()=>n.dispose()}}),[b,A,E,t,e]);const O=(0,c.useCallback)((async()=>{const t=w.current;try{var e;(0,o.po)(b),b.setValue((null===t||void 0===t||null===(e=t.html)||void 0===e?void 0:e.replaceAll("\r\n","\n"))||"")}finally{(0,o.SF)(b)}const n=b.getValue();await _.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:n,guid:t.renderGuid})}),[b,_]),x=(0,c.useCallback)((async()=>{const t=w.current;await _.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:b.getValue(),guid:t.renderGuid})}),[b,_]),I=(0,c.useCallback)((async()=>{const t=w.current;void 0!==t.preheader&&await _.sendAsync(i.Ru.SANDBOX_PREHEADER_UPDATE,{value:t.preheader,guid:t.renderGuid,force:!0})}),[_]),T=(0,c.useCallback)((async()=>{const t=w.current;void 0!==t.subject&&await _.sendAsync(i.Ru.SANDBOX_SUBJECT_UPDATE,{value:t.subject,guid:t.renderGuid,force:!0})}),[_]),y=(0,c.useCallback)((()=>{const t=w.current;return _.sendAsync(i.Ru.SANDBOX_INITED,{guid:t.renderGuid})}),[_]),D=(0,c.useCallback)((()=>{const t=w.current;return n(void 0===t.id?(0,m.Uh)(!0):(0,p.Wm)(!0)),h.fire({...t,id:e||t.isNew?void 0:t.id,html:b.getValue()})}),[n,h,b,e]),S=(0,c.useCallback)((()=>{const t=w.current;return _.sendAsync(i.Ru.SANDBOX_INIT_START,{guid:t.renderGuid})}),[_]),L=(0,c.useCallback)((()=>{const t=w.current;return g.fire({...t,id:e||t.isNew?void 0:t.id,html:b.getValue()})}),[b,g,e]),[N]=(0,l.c)((async function*(){try{v.current=!0,yield S(),yield L(),yield O(),yield I(),yield T(),yield y(),yield D()}finally{v.current=!1}}),[O,I,T,D,L,S,y]),[C]=(0,l.c)((async function*(){try{yield await S(),yield await L(),yield await x(),yield await I(),yield await T(),yield await y(),yield await D()}finally{}}),[O,I,T,D,L,S,y]);(0,l.Z)((async([e])=>{const n=null===t||void 0===t?void 0:t.renderGuid;n&&n!==e&&N()}),[null===t||void 0===t?void 0:t.renderGuid,N]),(0,c.useEffect)((()=>{const t=_.addListenerAsync(i.Ru.RELOAD,(async()=>{await C()}));return()=>t.dispose()}),[_,C])}},14598:(t,e,n)=>{"use strict";n.d(e,{QM:()=>d,q2:()=>p});var i=n(60564),s=n.n(i),a=n(58689),r=n(81158);function d(t,e){const n=document.createElement("input");n.type="file",n.accept=t,n.multiple=!0,n.onchange=()=>{var t;null!==(t=n.files)&&void 0!==t&&t.length&&e(n.files)},n.click()}const o="index.html";function l(t,e){return t.find((function(t){return t.name.toLowerCase().endsWith(e)}))}async function c(t,e,n){return await(0,a.bc)(t,(async t=>{t=t.replace("\\","/");const n=(0,a.$l)(t);return e(t,n)}),n)}async function p(t,e,n){if(t){switch(function(t){const e=t.split(".");return e[e.length-1].toLowerCase()}(t.name)){case"zip":return async function(t,e,n){var i=new(s());const{files:r}=await i.loadAsync(t),d=Object.keys(r).map((t=>r[t])),c=r[o]||l(d,o)||l(d,".html")||l(d,".htm");if(c){const t=c.name.split("/"),i=document.location.pathname.split("/"),s=document.location.origin+i.slice(0,i.length-t.length).join("/")+"/",d=await c.async("text");return await(0,a.bc)(d,(async t=>{(t=t.replace("\\","/")).startsWith(".")&&(t=t.substring(1)),t.startsWith("/")&&(t=t.substring(1)),t.startsWith(s)&&(t=t.substring(s.length));const n=r[t];if(n){const t=n.name,i=await n.async("blob");return e(i,t)}const i=(0,a.$l)(t);return e(t,i)}),n)}}(t,e,n);case"eml":{const i=await t.text(),s=(0,r.bZ)(i);if(s instanceof Error)throw s;const a="string"===typeof s?s:s.html;if("undefined"===typeof a)throw new Error("Eml not contains text/html");return c(a,e,n)}default:return c(await t.text(),e,n)}}}},44396:(t,e,n)=>{"use strict";n.d(e,{Q:()=>d});var i=n(12231),s=n(70609);const a=100;class r extends i.m{constructor(t,e,n,i){super(t,e,n,i),this._onScrollDisposable=null,this._editor=t}updateColorDecorators(t){if(this._onScrollDisposable&&(this._onScrollDisposable.dispose(),this._onScrollDisposable=null),t.length>=500){const e=this._editor;let[n,i]=[Number.MAX_VALUE,Number.MIN_VALUE];const s=()=>{const s=e.getVisibleRanges(),[r,d]=s.reduce(((t,{startLineNumber:e,endLineNumber:n})=>[Math.min(e,t[0]),Math.max(n,t[1])]),[Number.MAX_VALUE,Number.MIN_VALUE]);if(n-r>a||d-i>a){let e=t.filter((({colorInfo:t})=>{const{startLineNumber:e,endLineNumber:n}=t.range;return r-e<a&&n-d<a}));super.updateColorDecorators(e)}};this._onScrollDisposable=e.onDidScrollChange(s),s()}else super.updateColorDecorators(t)}dispose(){var t;null===(t=this._onScrollDisposable)||void 0===t||t.dispose(),super.dispose()}}function d(){(0,s.D0)(r.ID,(()=>r))}},36671:(t,e,n)=>{"use strict";n.d(e,{h:()=>f});var i=n(92810),s=n(70609),a=n(85163),r=n(32411),d=n(64037),o=n(71157),l=n(45934),c=n(86286),p=n(23287),m=n(39217),u=n(45695),b=n(77509),_=n(83863);const g=1e3,h=1e3,A=10,E="iframe_errors";function f(t,e){const{__:n}=(0,p.s9)(),f=(0,u.QC)(),v=(0,r.aD)(t),{error:w}=(0,o.hN)(),O=(0,i.useRef)(0),x=(0,i.useRef)(!1),I=(0,l.d4)(c.C1),T=(0,i.useCallback)((t=>new Promise(((e,n)=>{const i=f.addListener(a.Ru.SANDBOX_READY,(()=>{i.dispose(),e()}));t&&setTimeout((()=>{i.dispose(),n("timeout")}))}))),[f]),y=(0,i.useCallback)((i=>{T(h).catch((t=>console.log(t))).finally((()=>{Promise.resolve().then((()=>{if(!x.current){O.current++;for(let t=0;t<O.current;t++)v.canUndo()?v.undo():x.current=!0;setTimeout((()=>{if(0===--O.current){const s={past:v.getPast().slice(0,A),future:v.getFuture(),errorResolved:!x.current,text:t.getValue(),message:i.message,stack:i.stack,userId:null===I||void 0===I?void 0:I.id,entityId:null===e||void 0===e?void 0:e.id,entityType:document.location.pathname.indexOf("emails")>0?"email":"block"};console.log(s),w({id:"IFRAME_ERROR",data:s,message:n("Something went wrong")}),m.CJ.post(E,s).catch((t=>console.log(t))),x.current=!1}}),h)}}))}))}),[v,t,w,null===I||void 0===I?void 0:I.id,null===e||void 0===e?void 0:e.id,n,T]);(0,d.A)(a.Ru.APPLICATION_DOMPARSER_ERROR,y),(0,i.useEffect)((()=>{let n=null,i=0;function r(t){const e=[];for(const{rangeOffset:n,rangeLength:i,text:s}of t.changes)e.push({range:{start:n,end:n+i},text:s});return e}let d=!1;const o=new b.j;return o.addDisposable((0,_.Og)(t,(t=>(async t=>{if(d)await f.sendAsync(a.Ru.SANDBOX_UPDATE_ENTITY,{edits:[r(t)],guid:e.renderGuid});else if(n)n.push(t);else{n=[t];do{const t=n.splice(0,n.length);await f.sendAsync(a.Ru.SANDBOX_UPDATE_ENTITY,{edits:t.map(r),guid:e.renderGuid})}while(n.length);n=null}})(t).catch((t=>console.log(t)))))),o.addDisposable(f.addListener(a.Ru.APPLICATION_UPDATE_ENTITY,(function({guid:n,edits:a,pushUndoStop:r}){if(t&&n===e.renderGuid)try{d=!0;const e=(0,s.yc)();let n=e.canUndo(t.uri),o=e.canRedo(t.uri);const l=a.map((({text:e,range:n})=>{const i=t.getPositionAt(n.start),s=t.getPositionAt(n.end);return{text:e,range:{startColumn:i.column,startLineNumber:i.lineNumber,endColumn:s.column,endLineNumber:s.lineNumber}}}));r||n||o?t.pushEditOperations([],l,(()=>null)):t.applyEdits(l),!1!==r&&(i&&clearTimeout(i),i=setTimeout((()=>{t.pushStackElement(),i=0}),g))}finally{d=!1}}))),()=>{o.dispose(),i&&clearTimeout(i)}}),[t,f,e.renderGuid])}},32411:(t,e,n)=>{"use strict";n.d(e,{$Z:()=>c,TW:()=>o,aD:()=>l,fn:()=>p,kx:()=>d});var i=n(70609),s=n(92810),a=n(71070),r=n(11305);const d=(0,s.createContext)(null);function o(t){const e=(0,i.yc)(),[n,a]=(0,s.useState)({canUndo:e.canUndo(t.uri),canRedo:e.canRedo(t.uri)});return(0,s.useEffect)((()=>{const n=t.onDidChangeContent((()=>{setTimeout((()=>a({canUndo:e.canUndo(t.uri),canRedo:e.canRedo(t.uri)})))}));return()=>{n.dispose()}}),[t,e]),n}function l(t){function e(t){var e;const n=(null===t||void 0===t||null===(e=t.actual)||void 0===e?void 0:e._data)||new r.Ov;return n instanceof r.Ov?n:r.Ov.deserialize(n)}const n=(0,i.yc)();return{undo:()=>n.undo(t.uri),redo:()=>n.redo(t.uri),clear:()=>n.removeElements(t.uri),getPast:()=>{var i,s;return(null===(i=n._editStacks.get(t.uri.toString()))||void 0===i||null===(s=i._past)||void 0===s?void 0:s.map(e))||[]},getFuture:()=>{var i,s;return(null===(i=n._editStacks.get(t.uri.toString()))||void 0===i||null===(s=i._future)||void 0===s?void 0:s.map(e))||[]},canUndo:()=>n.canUndo(t.uri),canRedo:()=>n.canRedo(t.uri)}}function c(t="",e="html"){const n=a.editor.createModel(t,e);return n.setEOL(a.editor.EndOfLineSequence.LF),n}function p(){return(0,s.useContext)(d)}},83863:(t,e,n)=>{"use strict";n.d(e,{Og:()=>r,SF:()=>a,po:()=>s});const i=new Set;function s(t){return i.add(t),{dispose(){a(t)}}}function a(t){i.delete(t)}function r(t,e){let n=t.getVersionId(),s=[];const a=t.onDidChangeContent((a=>{if(a.versionId>n+1){let r=t.onDidChangeContent((d=>{if(a.versionId===n+1)try{i.has(t)||e(a)}catch(o){console.log(o)}finally{n=a.versionId;let t=s.indexOf(r);t>=0&&s.splice(t,1),r.dispose()}}));s.push(r)}else try{i.has(t)||e(a)}catch(r){console.log(r)}finally{n=a.versionId}}));return{dispose:()=>{a.dispose(),s.forEach((t=>t.dispose()))}}}},70609:(t,e,n)=>{"use strict";n.d(e,{D0:()=>r,yc:()=>d});var i=n(50051),s=n(75793),a=n(24554);function r(t,e){const n=i.dS.getEditorContributions().find((e=>e.id===t));if(!n)throw new Error(`No contribution ${t}`);n.ctor=e(n)}function d(){return t=a.$D,s.QE.get(t);var t}},71157:(t,e,n)=>{"use strict";n.d(e,{Gy:()=>m,O5:()=>_,hN:()=>b,x_:()=>u});var i=n(13522),s=n(93982),a=n(92810),r=n(33206),d=n(13329),o=n(28316),l=n(814),c=n(70082);const p="bottomRight";function m(t){return{id:t.id,code:t.html,title:t.title,subject:t.subject,preheader:t.preheader}}function u(t){return{id:t.id,code:t.html,title:t.title}}function b(){const t=(0,s.ml)(i.A.ON_NOTIFICATION),{notification:e}=r.A.useApp(),n=(0,a.useCallback)(((n,i)=>{n.type||(n={...n,type:"info"}),t.fire((0,l.TB)({id:n.id,type:n.type,data:n.data,innerException:n.innerException})).then((t=>{if(t.every((t=>!1!==t))){n={...n};for(const e of t)"object"===typeof e&&Object.assign(n,e,e.style?{style:{...e.style,...n.style}}:{},e.props?{props:{...e.props,...n.props}}:{},e.className?{className:n.className?`${n.className} ${e.className}`:e.className}:{});i||((n=Object.assign(n,...t.filter((t=>"object"===typeof t)))).placement||(n.placement=p),e[n.type]?e[n.type](n):(console.log(n.type),console.log(n.id),n.message&&console.log(n.message)))}}))}),[e,t]),d=(0,a.useCallback)(((t,e)=>n({...t,type:"error"},e)),[n]),o=(0,a.useCallback)(((t,e)=>n({...t,type:"success"},e)),[n]),m=(0,a.useCallback)(((t,e)=>n({...t,type:"warning"},e)),[n]),u=(0,a.useCallback)(((t,e,n,i,s=p)=>{var a,r;n&&d({id:t,data:e,message:n.data instanceof Error?"":(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(a=n.data)||void 0===a?void 0:a.code)||n.status||n}}),description:(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(r=n.data)||void 0===r?void 0:r.message)||n.error}}),placement:s,innerException:(null===n||void 0===n?void 0:n.data)instanceof Error?n.data:n},i)}),[d]);return(0,a.useMemo)((()=>({notify:n,success:o,error:d,warning:m,fromError:u})),[n,o,d,m,u])}function _(){const{notify:t}=b();(0,d.D3)(o.Sb,t)}},23287:(t,e,n)=>{"use strict";n.d(e,{CY:()=>d,s9:()=>o});var i=n(92810),s=n(42108);function a(t){return{__:t.__.bind(t),_x:t._x.bind(t),_n:t._n.bind(t),_nx:t._nx.bind(t),sprintf:s.nv,isRTL:t.isRTL.bind(t),hasTranslation:t.hasTranslation.bind(t)}}const r=(0,i.createContext)(a(s.y3));function d(t){const{children:e,i18n:n=s.y3}=t,[,d]=(0,i.useReducer)((()=>[]),[]);(0,i.useEffect)((()=>n.subscribe(d)),[n]);const o=(0,i.useMemo)((()=>a(n)),[n]);return(0,i.createElement)(r.Provider,{value:o},e)}const o=()=>(0,i.useContext)(r)},42068:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s,c:()=>a});var i=n(92810);const s=(t,e)=>{const n=(0,i.useRef)();n.current=t;const s=(0,i.useRef)(void 0);(0,i.useEffect)((()=>{null!==s.current&&n.current(s.current||[]),s.current=e}),e)};function a(t,e){const n=(0,i.useRef)(),s=(0,i.useRef)(),[a,r]=(0,i.useState)(0),d=(0,i.useCallback)((()=>{n.current&&(n.current=void 0,s.current=void 0,r(0))}),[r]);(0,i.useEffect)((()=>()=>d()),[d]);const o=(0,i.useCallback)(t,e);(0,i.useEffect)((()=>{if(a>0){const t=n.current;t&&t.next().then((t=>{t.done?(s.current.resolve(t.value),d()):r(a+1)}),(t=>{s.current.reject(t),d()}))}}),[a,r,d]);return[(0,i.useCallback)(((...t)=>(d(),n.current=o(...t),r(1),new Promise(((t,e)=>{s.current={resolve:t,reject:e}})))),[d,o,r]),d]}},69156:(t,e,n)=>{"use strict";n.d(e,{A5:()=>c,FN:()=>l,Hk:()=>o,c8:()=>p});var i=n(92810),s=n(85163),a=n(45695);const r=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]"),d=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=light]"),o=t=>{let e,n;t===s.IJ?(e=s.vd,n=s.F3):(e=t===s.T?s.y2:s.CJ,n=t===s.nd?s.y2:s.CJ),[...d].forEach((t=>{t.media=e})),[...r].forEach((t=>{t.media=n}))},l=(t={})=>{const e=document.querySelector("head"),n=document.createElement("style");if(n.type="text/css",n.dataset.themeVaribalse=!0,Object.entries(t).length){let i="";Object.entries(t).forEach((([t,e])=>{"object"!==typeof e&&(i+=`\t--${t}: ${e};\n`)})),i=`.blocks-body, .blocks-app, .ant-modal-root, .ant-tooltip, .ant-notification {\n${i}}`,n.appendChild(document.createTextNode(i));const s=e.querySelector('[data-theme-varibalse="true"]');s?e.replaceChild(n,s):e.insertBefore(n,e.firstChild)}},c=t=>{const e=document.body;e.classList.contains(t)||setTimeout((()=>{e.classList.remove(t===s.nd?s.T:s.nd),e.classList.add(t)}),200)},p=()=>{const t=(0,a.XW)();return(0,i.useCallback)((()=>{const e=window.localStorage.getItem(s.V0.em_color_scheme),n=matchMedia(s.F3).matches?s.nd:s.T,i=e||n;t({operation:s.Ru.UPDATE_PREVIEW,theme:i})}),[t])}},31770:(t,e,n)=>{"use strict";function i(t){return t}function s({data:t,...e},n){return e.error?e:{data:n(t,e.meta),...e}}function a(t){return e=>s(e,t)}function r(t){return e=>s(e,((e,n)=>e.hasOwnProperty("previous")?t(e.previous,n):t(e,n)))}function d(t){return e=>function({data:t,...e},n){return e.error?e:{data:t.map((t=>n(t,e.meta))),...e}}(e,t)}n.d(e,{Ih:()=>d,PI:()=>r,SA:()=>s,SC:()=>a,ur:()=>i})},84869:(t,e,n)=>{"use strict";function i(t,e){if("object"===typeof t&&t){e(t);for(const n of Object.values(t))i(n,e)}}function s(t=".blocks-app"){t=`${t} &`;const e=new WeakSet;return{visit:n=>{if(!e.has(n)){const s={};let a;for(const r of Object.keys(n)){const d=n[r];"object"===typeof d&&d?(d._keyframe&&i(d,(t=>e.add(t))),s[r]=d):(a||(a=s[t]={},e.add(a)),a[r]=d)}return s}return n}}}n.d(e,{A:()=>s})},44824:(t,e,n)=>{"use strict";n.d(e,{e:()=>s});var i=n(85974);async function s(t,e){if("amp"===e){for(const e of t.querySelectorAll(".em-amp-show-disabled"))e.remove();await(0,i.Sc)(t,{mappedTags:{script:"___script"}})}else if("html"===e){for(const e of t.querySelectorAll(".em-amp-show-only"))e.remove();(0,i.Km)(t,{mappedTags:{script:"___script"}})}}},78451:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(92810),s=n(45934),a=n(64617),r=n(17581),d=n(65983);const o=()=>{const t=(0,s.wA)(),e=(0,s.d4)(d.zn);let n=(0,a.zy)();(0,i.useEffect)((()=>{/emails\/[0-9]+$/.test(n.pathname)||e&&t(r.GY.util.invalidateTags([{type:"Emails",id:+e}]))}),[n,t,e])}},64037:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(92810),s=n(45695);function a(t,e){const n=(0,s.QC)();(0,i.useEffect)((()=>{const i=n.addListener(t,e);return()=>{i.dispose()}}),[n,t,e])}},31844:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(92810),s=n(64617),a=n(45934),r=n(86286),d=n(84568);const o=t=>{const e=(0,a.d4)(r.C1),[n,o]=(0,i.useState)({owner:!1,admin:!1}),l=(0,s.KC)(),{data:c}=(0,d.fo)(t,{skip:!t||!e.id||!(null!==l&&void 0!==l&&l.isUninitialized)}),p=(null===l||void 0===l?void 0:l.data)||c;return(0,i.useEffect)((()=>{if(p){var t,n;const{owner:i,admins:s,users:a}=p.members,r=s?s.map((t=>t.ID)):s,d=a?a.map((t=>t.ID)):a;o({owner:(null===(t=i.ID)||void 0===t?void 0:t.toString())===(null===(n=e.id)||void 0===n?void 0:n.toString()),admin:r&&r.includes(e.id),user:d&&d.includes(e.id)})}}),[p,e.id]),n}},3289:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(92810),s=n(45934),a=n(64617),r=n(87790),d=n(85163),o=n(90070);const l=()=>{const t=(0,s.wA)(),e=(0,o.p6)(),n=(0,s.d4)(r.Sl);let l=(0,a.zy)();(0,i.useEffect)((()=>{l.pathname.endsWith("/new")||n&&(t((0,r.X8)()),e.remove(d.A9.em_new_block))}),[l,n,t,e])}},19366:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(92810),s=n(45934),a=n(64617),r=n(8493),d=n(85163),o=n(90070);const l=()=>{const t=(0,o.p6)(),e=(0,s.wA)(),n=(0,s.d4)(r.$S);let l=(0,a.zy)();(0,i.useEffect)((()=>{l.pathname.endsWith("/new")||(t.remove(d.A9.em_new_email),t.remove(d.A9.em_template_email),n&&e((0,r.Et)()))}),[l,n,e,t])}},22197:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(85163);const s=t=>{if(!i.EW.isPlugin){let e="";e="Blocks",document.title=t+" - "+e}}},93718:(t,e,n)=>{var i={"./en_US.ts":[90944,2466],"./ru_RU.ts":[3099,6859]};function s(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],s=e[0];return n.e(e[1]).then((()=>n(s)))}s.keys=()=>Object.keys(i),s.id=93718,t.exports=s},42811:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+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"},58889:t=>{"use strict";t.exports=JSON.parse('{"yG":"iframe.e7f65b558f5a813800a9.html","l5":"iframe-eblock.e7f65b558f5a813800a9.html"}')}}]);
|
|
1
|
+
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[6138],{88647:(t,e,n)=>{"use strict";n.d(e,{h:()=>d});var i,s=n(92810);function a(){return a=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},a.apply(null,arguments)}function r({title:t,titleId:e,...n},r){return s.createElement("svg",a({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",ref:r,"aria-labelledby":e},n),t?s.createElement("title",{id:e},t):null,i||(i=s.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 d=s.forwardRef(r);n.p},79154:(t,e,n)=>{"use strict";n.d(e,{h:()=>d});var i,s=n(92810);function a(){return a=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},a.apply(null,arguments)}function r({title:t,titleId:e,...n},r){return s.createElement("svg",a({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",ref:r,"aria-labelledby":e},n),t?s.createElement("title",{id:e},t):null,i||(i=s.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 d=s.forwardRef(r);n.p},28316:(t,e,n)=>{"use strict";n.d(e,{Kp:()=>i,Sb:()=>a,_1:()=>s});const i="SAVE",s="SHOW",a="NOTIFY"},82212:(t,e,n)=>{"use strict";n.d(e,{Y:()=>x});var i=n(92810),s=n(42108),a=n(23287),r=n(20648),d=n(94381),o=n(45934),l=n(2417),c=n.n(l),p=n(86286),m=n(85163),u=n(18398),b=n(71157),_=n(42068),g=n(93982),h=n(13522),A=n(70082);const E="locale",f="ant_locale",v="em_locale",w="em_ant_locale",O="em_mergeTags_locale",x=({children:t})=>{const[e,l]=(0,i.useState)((()=>(0,s.hU)())),[x,I]=(0,i.useState)(),[T,y]=(0,i.useState)(!0),D=(0,o.d4)(p.B),[S,L]=(0,d.HO)(),[N,C]=(0,d.Yj)(),R=(0,o.wA)(),M=(0,b.hN)(),P=D||(m.EW.isPlugin?void 0:"en_US");(0,i.useEffect)((()=>{try{let t=JSON.parse(localStorage.getItem(v));t||(t=JSON.parse(localStorage.getItem(E)),t&&(localStorage.removeItem(E),localStorage.setItem(v,JSON.stringify(t)))),l((0,s.hU)(t.data)),y(!1)}catch{y(!0)}try{let t=JSON.parse(localStorage.getItem(w));t||(t=JSON.parse(localStorage.getItem(f)),t&&(localStorage.removeItem(f),localStorage.setItem(w,JSON.stringify(t)))),I(t.data)}catch{}if(!m.EW.isPlugin)try{let t=JSON.parse(localStorage.getItem(O));R((0,u.Kj)(t.data))}catch{}}),[I,y,l,R]),(0,i.useEffect)((()=>{P&&n(17583)(`./${"uk"===P?"uk_UA":P}.js`).then((t=>{I(t.default),localStorage.setItem(w,JSON.stringify(t.default))}))}),[I,P]),(0,i.useEffect)((()=>{m.EW.isPlugin||P&&n(93718)(`./${"uk"===P?"uk_UA":P}.ts`).then((t=>{R((0,u.Kj)(t.default)),localStorage.setItem(O,JSON.stringify(t.default))}))}),[P,R]),(0,_.Z)((([t])=>{!t&&L.error&&M.fromError("GET_LOCALES_ERROR",void 0,L.error)}),[L.error,M]);const B=(0,g.ml)(h.A.READ_LOCALE),[k,U]=(0,i.useState)(!1);return(0,_.Z)((([t])=>{P!==t&&P&&B.fire(P).then((t=>{const e=t[0];if(e){var n;const t=null===(n=c()(e,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===n?void 0:n.locale_data.default;l((0,s.hU)(t)),U(!0)}else L.isSuccess?N({id:P}):S(void 0)}))}),[P,B,L,l,U]),(0,i.useEffect)((()=>{if(L.isSuccess){const t=L.data;if(P){const e=t.filter((([t])=>t===P));if(!e.length)return void U(!0);try{const t=JSON.parse(localStorage.getItem(v));if(e.every((([e,n])=>t.id===e&&n<=t.time)))return void U(!0)}catch{}N({id:P})}}}),[P,L,N,M,U]),(0,_.Z)((([t])=>{!t&&C.isError&&M.fromError("GET_LOCALE_ERROR",void 0,C.isError)}),[C.isError,M]),(0,i.useEffect)((()=>{if(L.isSuccess&&C.isSuccess){var t;if(C.originalArgs.id!==P)return;const e=L.data.filter((([t])=>t===P)),n=C.data,i=null===(t=c()(n,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===t?void 0:t.locale_data.default;try{localStorage.setItem(v,JSON.stringify({id:P,time:e[0][1],data:i}))}catch{}l((0,s.hU)(i)),U(!0)}}),[C,P,L,l,M,U]),(0,A.jsx)(a.CY,{i18n:e,children:(0,A.jsx)(r.Ay,{locale:x,children:!T||k?t:(0,A.jsx)(A.Fragment,{})})})}},17126:(t,e,n)=>{"use strict";n.d(e,{LG:()=>r,fh:()=>a,or:()=>s});var i=n(92810);const s=(0,i.createContext)({element:void 0}),a=(0,i.createContext)(void 0),r=()=>(0,i.useContext)(a)},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:()=>r});const i=new Date,s=new Date(+i+432e6).toISOString(),a=-(new Date).getTimezoneOffset()/60,r=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=${s}&timezone=${a}" src="${(t=>`https://cdt3.useblocks.io/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=${s}&timezone=${a}`)(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;"> </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"> </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;">•</div>\n </td>\n <td width="10"> </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(15115).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;"> \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c </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:()=>s});var i=n(93982);let s;var a;(a=s||(s={})).BEFORE_SAVE_EMAIL=(0,i.cZ)(),a.ON_SAVEBUTTON_CLICK_ID=(0,i.cZ)(),a.ON_NEXTBUTTON_CLICK_ID=(0,i.cZ)(),a.ON_PREVIOUSBUTTON_CLICK_ID=(0,i.cZ)(),a.ON_MODEL_CHANGE=(0,i.cZ)(),a.WILL_EMAIL_INIT_ID=(0,i.cZ)(),a.ON_EMAIL_INIT_ID=(0,i.cZ)(),a.ON_BLOCK_INIT_ID=(0,i.cZ)(),a.ON_CONTENT_CHANGED_ID=(0,i.cZ)(),a.ON_EMAIL_CHANGED_ID=(0,i.cZ)(),a.ON_BLOCK_CHANGED_ID=(0,i.cZ)(),a.ON_SEND_TESTEMAIL_ID=(0,i.cZ)(),a.ON_SEND_LIVEPREVIEW_ID=(0,i.cZ)(),a.ON_SHARE_ID=(0,i.cZ)(),a.ON_SHOW_PREVIEW_ID=(0,i.cZ)(),a.ON_EMAIL_CLONE_ID=(0,i.cZ)(),a.ON_SEND_EMAIL_MODAL_ID=(0,i.cZ)(),a.ON_NOTIFICATION=(0,i.cZ)(),a.READ_LOCALE=(0,i.cZ)()},85163:(t,e,n)=>{"use strict";n.d(e,{A9:()=>d,BD:()=>lt,Bv:()=>C,CJ:()=>p,EW:()=>r,F3:()=>g,F5:()=>s,G$:()=>j,IE:()=>Z,IJ:()=>b,JE:()=>Q,Jy:()=>k,KI:()=>tt,N7:()=>U,ND:()=>at,QV:()=>ct,Qz:()=>K,Ru:()=>f,St:()=>H,T:()=>m,Tm:()=>Y,UW:()=>l,Ug:()=>ot,V0:()=>o,VG:()=>h,Vp:()=>st,Vv:()=>y,WU:()=>S,Y$:()=>J,YY:()=>dt,aO:()=>z,bV:()=>w,e3:()=>mt,eA:()=>W,eG:()=>$,ff:()=>a,gY:()=>X,hc:()=>M,iU:()=>nt,iV:()=>G,iW:()=>L,jg:()=>pt,lx:()=>A,m3:()=>V,mX:()=>x,nA:()=>B,nd:()=>u,p5:()=>et,pe:()=>P,rW:()=>v,rY:()=>R,rb:()=>D,rl:()=>q,vd:()=>_,wF:()=>it,xz:()=>O,y2:()=>c,yI:()=>T,yo:()=>F,yy:()=>I,zh:()=>rt,zx:()=>N});var i=n(19378);const s="LOADING",a="ERROR",r={isPlugin:!1},d={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"},o={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"},l="deleted",c="all",p="not all",m="light",u="dark",b="system",_="(prefers-color-scheme: light)",g="(prefers-color-scheme: dark)",h="#1890ff",A={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 E;!function(t){t[t.Amp=0]="Amp",t[t.HTML=1]="HTML",t[t.Everywhere=2]="Everywhere"}(E||(E={}));const f={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")},v={language:"html",detectIndentation:!1,wordWrap:"on",wrappingIndent:"same",smoothScrolling:"on",automaticLayout:!0,tabSize:2,indentSize:2};let w;!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"}(w||(w={}));const O="Appearance",x="Structure",I="Settings",T="Properties",y="History",D="Disabled_tab",S="Edit selected element",L="UTM parameters",N="Edit",C="Build",R="Styles",M="Discuss",P="TEXT_AI",B="Blocks",k="Atoms",U="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}},F="Owner",H="Administrator",V="User",j="The invitation has been sent",X="Assign the project owner",K="Change role to Administrator",z="Change role to User",W="Remove member",Q="Revoke the invite",Z="block",Y="email",J="cards",q="list",$="pending",tt="d41d8",et=1865,nt=6892,it={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},st="desktop",at="mobile",rt="emailtags",dt="blocktags",ot="all_folders",lt={text:{fontFamily:["Google Fonts","Sans Serif","Mulish","Regular"],fontSize:16,fontSizeDim:"px",lineHeight:24,lineHeightDim:"px",color:"#595959",textAlign:"left",paddingBottom:10,paddingBottomDim:"px"},headings:{fontFamily:["Google Fonts","Sans Serif","Mulish","Bold"],fontSize:28,fontSizeDim:"px",lineHeight:34,lineHeightDim:"px",color:"#000000",textAlign:"left",paddingTop:20,paddingTopDim:"px",paddingBottom:10,paddingBottomDim:"px",letterSpacing:0,letterSpacingDim:"px",bold:!0,italic:!1},links:{color:"#1890ff",underline:!0},buttons:{fontFamily:["Google Fonts","Sans Serif","Mulish","Medium"],fontSize:16,fontSizeDim:"px",letterSpacing:0,letterSpacingDim:"px",color:"#FFFFFF",bold:!1,italic:!1,backgroundColor:"#1890ff",marginTop:10,marginTopDim:"px",marginBottom:10,marginBottomDim:"px",border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:6,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},textAlign:"center",padding:{all:null,top:null,right:null,bottom:null,left:null}},block:{backgroundColor:""}},ct=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")}),pt={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"> </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"> </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:()=>o});const s="INIT_MESSAGE";function a(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}class r{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 d extends r{constructor(...t){super(...t),this._listeners=Object.create(null),this.addListenerAsync=(t,e,n=0,i)=>{const s=this._listeners[t]||(this._listeners[t]=[]);i&&"function"===typeof e&&(e=e.bind(i));const a=s.findIndex((([t,e])=>n<=e)),r=[e,n];return this.isDisposed()||s.splice(a>=0?a:s.length,0,r),{dispose(){const t=s.indexOf(r);t>=0&&s.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],s=i;i=t=>e(t,s)}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 o extends r{constructor(t,e){super(),this._singleton=e,this._target=void 0,this._guid=a(),this._targetGuid="",this._emitter=this.addDisposable(new d),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,s)){const n=this._emitter.fireAsync(e.operationId||"",void 0===e.operationId?t:e.data),i=e.result,s=e.error;i&&s&&Promise.resolve(n).then((t=>this._sendMessage(i,t)),(t=>this._sendMessage(s,t)))}var n,i},window.addEventListener("message",this._onReceiveMessage),this.addListener(s,(t=>{this._targetGuid!==t&&(this._targetGuid=t,this.send(s,this._guid))})),t&&this.setTarget(t)}setTarget(t){this._target!==t&&(this._target=t,this._targetGuid="",t&&t.postMessage({operationId:s,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,s)=>{const a=t?{operationId:t,data:e}:e;n.postMessage({...a,guid:s},"*"),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=a(),s=a();return new Promise(((n,a)=>{const d=this.addDisposable(new r);d.addDisposable(this.onInit(((r,o)=>{r.postMessage({operationId:t,data:e,guid:o,result:i,error:s},"*"),d.addDisposable(this._onMessage(i,(t=>{n(t),d.dispose()}))),d.addDisposable(this._onMessage(s,(t=>{a(t),d.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 r);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(s,(()=>{t(this._target,this._targetGuid)}),n)),i}dispose(){window.removeEventListener("message",this._onReceiveMessage),super.dispose()}}},56991:(t,e,n)=>{"use strict";n.d(e,{bD:()=>r,Mu:()=>d,cM:()=>l,rD:()=>o});var i=n(45934),s=n(18398),a=n(71210);function r(t,e){if(t!==e){if(!t||!e||"object"!==typeof t||"object"!==typeof e)return!1;const n=e instanceof Array;if(t instanceof Array){if(!n)return!1;const i=t.length;if(e.length!==i)return!1;for(let n=0;n<i;n++)if(!r(t[n],e[n]))return!1}else if(n)return!1;const i=Object.keys(t),s=Object.keys(e),a=i.length;if(a!==s.length)return!1;for(let d=0;d<a;d++){const n=i[d];if(!e.hasOwnProperty(n)||!r(t[n],e[n]))return!1}}return!0}function d(t){if(t){const{type:e,project:n,isNew:i,id:s}=t;return`/projects/${n}/${"block"===e?"blocks":"emails"}/${i?`new?template=${s}`:s}`}return""}function o(){return(0,i.d4)(s.zg)}function l(t,e,n){return null!==t&&void 0!==t&&t.length?t.map(((t,i)=>function(t){return t.hasOwnProperty("children")}(t)?{key:(0,a.l)(),value:t.value,label:t.label,children:l(t.children,e,n),type:t.type}:{key:(0,a.l)(),label:t.label,value:t.value,onClick:e=>{n(t.value,e.domEvent)}})):void 0}},33288:(t,e,n)=>{"use strict";n.d(e,{di:()=>r});var i=n(95152),s=n(41664),a=n(23580);const r={getContainer:a.My,createIdentifier:s.Q,reducer:a.Ff,reducerPath:a.IP,getInstance:function(t,e){return(t instanceof i.m?t:(0,a.My)(t)).getInstance(e)},getInstanceAsync:function(t,e){return(t instanceof i.m?t:(0,a.My)(t)).getInstanceAsync(e)},getOrCreateInstance:function(t,e,n){return(t instanceof i.m?t:(0,a.My)(t)).getOrCreateInstance(e,n)},inject:function(t,e,n,i){return(0,a.My)(t).inject(e,n)},addService:function(t,e,n){return(0,a.My)(t).addService(e,n)},getServices:function(t,e){return(0,a.My)(t).getServices(e)},useInject:a.lg,useInstance:a.Nj,useInstanceAsync:a.rl,useServices:a.A$}},41664:(t,e,n)=>{"use strict";n.d(e,{Q:()=>s});var i=n(71210);function s(t=(0,i.l)()){return t}},82375:(t,e,n)=>{"use strict";n.d(e,{Q:()=>i});const i=new(n(95152).m)},30725:(t,e,n)=>{"use strict";n.d(e,{p:()=>s});var i=n(23580);function s(t){return(e,n,s,a)=>{const r=(0,i.My)(n);return t(r)(e,n,s,a)}}},77509:(t,e,n)=>{"use strict";n.d(e,{j:()=>i});class i{constructor(t=[]){this._inner=t,this._isDisposed=!1}addDisposable(t){return this._inner.push(t),t instanceof i&&t.addDispose((()=>{this.removeDisposable(t)})),t}addDispose(t){this.addDisposable({dispose:t})}removeDisposable(t){const e=this._inner.indexOf(t);e>=0&&this._inner.splice(e,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const t of this._inner)t.dispose()}}}},45695:(t,e,n)=>{"use strict";n.d(e,{K9:()=>m,QC:()=>c,XW:()=>p,ur:()=>l});var i=n(19378),s=n(33288),a=n(45934),r=n(41664),d=n(92810);const o=(0,r.Q)("MESSAGE_SERVICE");function l(){const t=c();return(0,d.useCallback)((e=>{t.setTarget(e instanceof Element?e.contentWindow:e)}),[t])}function c(){const t=(0,a.Pj)();return(0,d.useMemo)((()=>function(t){return s.di.getOrCreateInstance(t,o,(()=>new i.bg))}(t)),[t])}function p(){const t=c();return(0,d.useCallback)((function(e){t.send(e)}),[t])}function m(){const t=c();return(0,d.useCallback)((function(e,n){t.send(e,n)}),[t])}},47381:(t,e,n)=>{"use strict";n.d(e,{d:()=>i});const i=(t,e)=>{const n=()=>{try{const e={...t,appLabel:"blocks_app"};window.dataLayer&&"function"===typeof window.dataLayer.push?window.dataLayer.push(e):console.log("Attempting to add to the dataLayer:",t)}catch(e){console.error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 GTM:",e)}};e?setTimeout(n,e):n()}},71210:(t,e,n)=>{"use strict";function i(){var t=(new Date).getTime(),e="undefined"!==typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var i=16*Math.random();return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(e+i)%16|0,e=Math.floor(e/16)),("x"===n?i:3&i|8).toString(16)}))}n.d(e,{l:()=>i})},14004:(t,e,n)=>{"use strict";n.d(e,{i:()=>s});var i=n(44141);const s=async(t,e,n)=>{const s=(0,i.KU)(e).baseUrl.replaceAll(/[\\/]$/g,""),a=(0,i.hI)({baseUrl:s});let r=await a(t,e,n);if(r.error){let t=r.error;if("function"===typeof t.json)try{t=await t.json()}catch{t=await t,console.log("error",t)}return{error:t}}return r}},89698:(t,e,n)=>{"use strict";n.d(e,{V:()=>l});var i=n(85163),s=n(45695),a=n(23287),r=n(92810),d=n(45934),o=n(86286);function l(){const t=(0,s.QC)(),e=(0,d.d4)(o.C1),{__:n}=(0,a.s9)(),[l,c]=(0,r.useState)("");(0,r.useEffect)((()=>{if(e.locale!==l){const s=(0,i.QV)(n),a=t.onInit((()=>{t.send(i.Ru.SANDBOX_TRANSLATIONS,{name:e.locale,data:s}),c(e.locale)}));return()=>a.dispose()}}),[e.locale,l,c,n,t]),(0,r.useEffect)((()=>{const e=t.addListener(i.Ru.RELOAD,(()=>{c("")}));return()=>e.dispose()}),[c,t])}},37969:(t,e,n)=>{"use strict";n.d(e,{y:()=>o});var i=n(85163),s=n(45695),a=n(92810),r=n(70082);const d=Symbol("isIframeEvent");function o({children:t}){const[e,n]=(0,a.useState)(),[o,l]=(0,a.useState)(),[c,p]=(0,a.useState)(!1),m=(0,s.QC)();return(0,a.useEffect)((()=>{if(e){const t=m.addListener(i.Ru.APPLICATION_IFRAME_DRAG_EVENT,(t=>{if("drageleave"!==t.type&&"dragenter"!==t.type){const n=e.getBoundingClientRect(),i=t.clientX+n.x+window.scrollX,s=t.clientY+n.y+window.scrollY,a=document.elementFromPoint(i,s);if(a){const e=new DataTransfer,n=new DragEvent(t.type,{clientX:i,clientY:s,cancelable:!0,bubbles:!0,dataTransfer:e});n[d]=!0,a.dispatchEvent(n)}}}));return()=>t.dispose()}}),[m,e]),(0,a.useEffect)((()=>{const t=t=>{t[d]||p(!0)},e=t=>{t[d]||p(!1)};return window.addEventListener("dragstart",t),window.addEventListener("dragend",e),()=>{window.removeEventListener("dragstart",t),window.removeEventListener("dragend",e)}}),[o]),(0,a.useEffect)((()=>{const t=t=>{if(!t[d]){var e;const n=o.getBoundingClientRect();m.send(i.Ru.SANDBOX_DRAG_EVENT,{value:(null===(e=t.dataTransfer)||void 0===e?void 0:e.getData("Text"))||"",type:t.type,clientX:t.pageX-n.x-window.scrollX,clientY:t.pageY-n.y-window.scrollY})}};if(o)return o.addEventListener("dragenter",t),o.addEventListener("dragover",t),o.addEventListener("dragleave",t),o.addEventListener("drop",t),o.addEventListener("dragend",t),()=>{o.removeEventListener("dragenter",t),o.removeEventListener("dragover",t),o.removeEventListener("dragleave",t),o.removeEventListener("drop",t),o.removeEventListener("dragend",t)}}),[o,m]),(0,r.jsxs)("div",{ref:n,children:[c&&(0,r.jsx)("div",{ref:l,className:"iframe-provider"}),t]})}},43672:(t,e,n)=>{"use strict";n.d(e,{w:()=>l});var i=n(95838),s=n(85163),a=n(56991),r=n(45695),d=n(92810);const{useToken:o}=i.A;function l(){const t=(0,r.QC)(),{token:e}=o(),[n,i]=(0,d.useState)();(0,d.useEffect)((()=>{if(!(0,a.bD)(n,e)){const n=t.onInit((()=>{t.send(s.Ru.SANDBOX_SET_THEME_VARIABLES,e),i(e)}));return()=>n.dispose()}}),[e,n,i,t]),(0,d.useEffect)((()=>{const e=t.addListener(s.Ru.RELOAD,(()=>{i(void 0)}));return()=>e.dispose()}),[i,t])}},38920:(t,e,n)=>{"use strict";n.d(e,{r:()=>f});var i=n(85163),s=n(59287),a=n(92810),r=n(45934),d=n(64617),o=n(17581),l=n(53204),c=n(47358),p=n(65983),m=n(39738),u=n(86286),b=n(56991),_=n(32411),g=n(83863),h=n(71157),A=n(42068),E=n(47381);function f(t){const{emailId:e,projectId:n}=(0,d.g)(),f=(0,h.hN)(),v=(0,b.rD)(),w=(0,r.d4)(l.M),O=(0,_.fn)(),x=(0,a.useRef)(0),I=(0,r.d4)(m.p1),T=(0,r.d4)(c.Wm),y=(0,r.d4)(c.B),D=(0,r.d4)(u.C1),[S,L]=(0,o.LX)(),N=(0,r.wA)(),{isSuccess:C,isLoading:R}=(0,o.YV)({emailId:e},{skip:!e}),[M,P]=(0,a.useState)(null);(0,a.useEffect)((()=>{if(C&&!R&&null!==I&&void 0!==I&&I.length){const n=I[0];var e;if(n&&M!==(null===t||void 0===t?void 0:t.id))null!==(e=n.slug)&&void 0!==e&&e.includes("autosave")&&O&&N((0,p.no)(n)),P(null===t||void 0===t?void 0:t.id)}}),[N,I,C,R,null===t||void 0===t?void 0:t.id,M,O,e]);const B=(0,a.useCallback)((()=>{if(t){const e={title:t.title,project:t.project,html:(null===O||void 0===O?void 0:O.getValue())||"",excerpt:t.date_gmt,subject:t.subject,preheader:t.preheader,common_styles:t.common_styles};S({emailId:t.id,body:e}).then((a=>{if((0,E.d)({event:"save",action:"auto_save_email",email_id:t.id,project_id:n}),!function(t){return t.hasOwnProperty("data")}(a))throw a.error;var r,d;fetch((0,s.W)(i.Tm,n,null===(r=a.data)||void 0===r?void 0:r.id,null===(d=a.data)||void 0===d?void 0:d.modified),{mode:"no-cors"}),f.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:e,message:""},!0)})).catch((t=>{f.fromError("EMAIL_AUTOSAVE_ERROR",e,t,!0),console.log(t)}))}}),[S,t,O,n,f]),[k,U]=(0,a.useState)(!1),G=(0,a.useCallback)((()=>{if((null===I||void 0===I?void 0:I.length)>0){const t=[...I].sort(((t,e)=>Date.parse(null===e||void 0===e?void 0:e.modified)-Date.parse(null===t||void 0===t?void 0:t.modified)))[0];Date.parse((new Date).toString())-Date.parse(null===t||void 0===t?void 0:t.modified)>1.5*((null===v||void 0===v?void 0:v.autosaveTimeout)||1e4)&&T&&!w&&"Discuss"!==y&&B()}else T&&!w&&"Discuss"!==y&&B()}),[I,w,T,y,B,null===v||void 0===v?void 0:v.autosaveTimeout]);(0,A.Z)((([t])=>{k&&!t&&(G(),U(!1))}),[k,G,U]);const F=null===D||void 0===D?void 0:D.autosaves,[H,V]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{H&&!w&&(clearTimeout(x.current),x.current=setTimeout((()=>U(!0)),(null===v||void 0===v?void 0:v.autosaveTimeout)||1e4),V(!1))}),[H,w,null===v||void 0===v?void 0:v.autosaveTimeout,U,V]),(0,a.useEffect)((()=>{if(F&&C&&void 0!==(null===t||void 0===t?void 0:t.id)){const e=(0,g.Og)(O,(()=>{T&&null!==t&&void 0!==t&&t.is_inited&&V(!0)}));return()=>{e.dispose()}}}),[O,V,F,C,null===t||void 0===t?void 0:t.id,T,null===t||void 0===t?void 0:t.is_inited]),(0,A.Z)((([e,n])=>{C&&void 0!==(null===t||void 0===t?void 0:t.id)&&T&&null!==t&&void 0!==t&&t.is_inited&&(e===(null===t||void 0===t?void 0:t.title)&&n===(null===t||void 0===t?void 0:t.common_styles)||V(!0))}),[null===t||void 0===t?void 0:t.title,null===t||void 0===t?void 0:t.common_styles,T,C,V,null===t||void 0===t?void 0:t.id,null===t||void 0===t?void 0:t.is_inited]),(0,a.useEffect)((()=>()=>{clearTimeout(x.current)}),[D,null===t||void 0===t?void 0:t.renderGuid]),(0,a.useEffect)((()=>{clearTimeout(x.current)}),[null===t||void 0===t?void 0:t.modified]),L}},9653:(t,e,n)=>{"use strict";n.d(e,{U:()=>l});var i=n(85163),s=n(45695),a=n(32411),r=n(83863),d=n(42068),o=n(92810);const l=t=>{const e=(0,a.fn)(),n=(0,s.QC)(),l=(null===t||void 0===t?void 0:t.html)||"",c=(0,o.useRef)();c.current=t;const p=(0,o.useCallback)((t=>{const e=c.current;if(t===(null===e||void 0===e?void 0:e.renderGuid))return n.sendAsync(i.Ru.SANDBOX_INITED,{guid:e.renderGuid})}),[n]),m=(0,o.useCallback)((t=>{const e=c.current;if(t===(null===e||void 0===e?void 0:e.renderGuid))return n.sendAsync(i.Ru.SANDBOX_INIT_START,{guid:e.renderGuid})}),[n]),u=(0,o.useCallback)((async t=>{const s=c.current;if((null===s||void 0===s?void 0:s.renderGuid)===t){const t=null===l||void 0===l?void 0:l.replaceAll("\r\n","\n");try{(0,r.po)(e),e.setValue(t)}finally{(0,r.SF)(e)}const a=e.getValue();await n.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:a,guid:null===s||void 0===s?void 0:s.renderGuid})}}),[l,e,n]);(0,d.Z)((async([e])=>{const n=null===t||void 0===t?void 0:t.renderGuid;n&&n!==e&&(await m(n),await u(n),await p(n))}),[null===t||void 0===t?void 0:t.renderGuid,null===t||void 0===t?void 0:t.id,u])}},69106:(t,e,n)=>{"use strict";n.d(e,{f:()=>b});var i=n(85163),s=n(13522),a=n(45695),r=n(93982),d=n(32411),o=n(83863),l=n(42068),c=n(92810),p=n(65983),m=n(8493),u=n(45934);const b=(t,e)=>{const n=(0,u.wA)(),b=(0,d.fn)(),_=(0,a.QC)(),g=(0,r.ml)(s.A.WILL_EMAIL_INIT_ID),h=(0,r.ml)(s.A.ON_EMAIL_INIT_ID),A=(0,r.ml)(s.A.ON_CONTENT_CHANGED_ID),E=(0,r.ml)(s.A.ON_EMAIL_CHANGED_ID),f=(0,r.ml)(s.A.ON_MODEL_CHANGE),v=(0,c.useRef)(!1),w=(0,c.useRef)();w.current=t,(0,c.useEffect)((()=>{const n=w.current;if(i.EW.isPlugin&&!v.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const t=b.getValue();E.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}),[b,t,E,e]),(0,l.Z)((([t])=>{t!==b&&f.fire(b)}),[b,f]),(0,c.useEffect)((()=>{if(i.EW.isPlugin){const n=b.onDidChangeContent((()=>{const n=w.current;if(!v.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const t=b.getValue();A.fire(t),E.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}));return()=>n.dispose()}}),[b,A,E,t,e]);const O=(0,c.useCallback)((async()=>{const t=w.current;try{var e;(0,o.po)(b),b.setValue((null===t||void 0===t||null===(e=t.html)||void 0===e?void 0:e.replaceAll("\r\n","\n"))||"")}finally{(0,o.SF)(b)}const n=b.getValue();await _.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:n,guid:t.renderGuid})}),[b,_]),x=(0,c.useCallback)((async()=>{const t=w.current;await _.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:b.getValue(),guid:t.renderGuid})}),[b,_]),I=(0,c.useCallback)((async()=>{const t=w.current;void 0!==t.preheader&&await _.sendAsync(i.Ru.SANDBOX_PREHEADER_UPDATE,{value:t.preheader,guid:t.renderGuid,force:!0})}),[_]),T=(0,c.useCallback)((async()=>{const t=w.current;void 0!==t.subject&&await _.sendAsync(i.Ru.SANDBOX_SUBJECT_UPDATE,{value:t.subject,guid:t.renderGuid,force:!0})}),[_]),y=(0,c.useCallback)((()=>{const t=w.current;return _.sendAsync(i.Ru.SANDBOX_INITED,{guid:t.renderGuid})}),[_]),D=(0,c.useCallback)((()=>{const t=w.current;return n(void 0===t.id?(0,m.Uh)(!0):(0,p.Wm)(!0)),h.fire({...t,id:e||t.isNew?void 0:t.id,html:b.getValue()})}),[n,h,b,e]),S=(0,c.useCallback)((()=>{const t=w.current;return _.sendAsync(i.Ru.SANDBOX_INIT_START,{guid:t.renderGuid})}),[_]),L=(0,c.useCallback)((()=>{const t=w.current;return g.fire({...t,id:e||t.isNew?void 0:t.id,html:b.getValue()})}),[b,g,e]),[N]=(0,l.c)((async function*(){try{v.current=!0,yield S(),yield L(),yield O(),yield I(),yield T(),yield y(),yield D()}finally{v.current=!1}}),[O,I,T,D,L,S,y]),[C]=(0,l.c)((async function*(){try{yield await S(),yield await L(),yield await x(),yield await I(),yield await T(),yield await y(),yield await D()}finally{}}),[O,I,T,D,L,S,y]);(0,l.Z)((async([e])=>{const n=null===t||void 0===t?void 0:t.renderGuid;n&&n!==e&&N()}),[null===t||void 0===t?void 0:t.renderGuid,N]),(0,c.useEffect)((()=>{const t=_.addListenerAsync(i.Ru.RELOAD,(async()=>{await C()}));return()=>t.dispose()}),[_,C])}},14598:(t,e,n)=>{"use strict";n.d(e,{QM:()=>d,q2:()=>p});var i=n(60564),s=n.n(i),a=n(58689),r=n(81158);function d(t,e){const n=document.createElement("input");n.type="file",n.accept=t,n.multiple=!0,n.onchange=()=>{var t;null!==(t=n.files)&&void 0!==t&&t.length&&e(n.files)},n.click()}const o="index.html";function l(t,e){return t.find((function(t){return t.name.toLowerCase().endsWith(e)}))}async function c(t,e,n){return await(0,a.bc)(t,(async t=>{t=t.replace("\\","/");const n=(0,a.$l)(t);return e(t,n)}),n)}async function p(t,e,n){if(t){switch(function(t){const e=t.split(".");return e[e.length-1].toLowerCase()}(t.name)){case"zip":return async function(t,e,n){var i=new(s());const{files:r}=await i.loadAsync(t),d=Object.keys(r).map((t=>r[t])),c=r[o]||l(d,o)||l(d,".html")||l(d,".htm");if(c){const t=c.name.split("/"),i=document.location.pathname.split("/"),s=document.location.origin+i.slice(0,i.length-t.length).join("/")+"/",d=await c.async("text");return await(0,a.bc)(d,(async t=>{(t=t.replace("\\","/")).startsWith(".")&&(t=t.substring(1)),t.startsWith("/")&&(t=t.substring(1)),t.startsWith(s)&&(t=t.substring(s.length));const n=r[t];if(n){const t=n.name,i=await n.async("blob");return e(i,t)}const i=(0,a.$l)(t);return e(t,i)}),n)}}(t,e,n);case"eml":{const i=await t.text(),s=(0,r.bZ)(i);if(s instanceof Error)throw s;const a="string"===typeof s?s:s.html;if("undefined"===typeof a)throw new Error("Eml not contains text/html");return c(a,e,n)}default:return c(await t.text(),e,n)}}}},44396:(t,e,n)=>{"use strict";n.d(e,{Q:()=>d});var i=n(12231),s=n(70609);const a=100;class r extends i.m{constructor(t,e,n,i){super(t,e,n,i),this._onScrollDisposable=null,this._editor=t}updateColorDecorators(t){if(this._onScrollDisposable&&(this._onScrollDisposable.dispose(),this._onScrollDisposable=null),t.length>=500){const e=this._editor;let[n,i]=[Number.MAX_VALUE,Number.MIN_VALUE];const s=()=>{const s=e.getVisibleRanges(),[r,d]=s.reduce(((t,{startLineNumber:e,endLineNumber:n})=>[Math.min(e,t[0]),Math.max(n,t[1])]),[Number.MAX_VALUE,Number.MIN_VALUE]);if(n-r>a||d-i>a){let e=t.filter((({colorInfo:t})=>{const{startLineNumber:e,endLineNumber:n}=t.range;return r-e<a&&n-d<a}));super.updateColorDecorators(e)}};this._onScrollDisposable=e.onDidScrollChange(s),s()}else super.updateColorDecorators(t)}dispose(){var t;null===(t=this._onScrollDisposable)||void 0===t||t.dispose(),super.dispose()}}function d(){(0,s.D0)(r.ID,(()=>r))}},36671:(t,e,n)=>{"use strict";n.d(e,{h:()=>f});var i=n(92810),s=n(70609),a=n(85163),r=n(32411),d=n(64037),o=n(71157),l=n(45934),c=n(86286),p=n(23287),m=n(39217),u=n(45695),b=n(77509),_=n(83863);const g=1e3,h=1e3,A=10,E="iframe_errors";function f(t,e){const{__:n}=(0,p.s9)(),f=(0,u.QC)(),v=(0,r.aD)(t),{error:w}=(0,o.hN)(),O=(0,i.useRef)(0),x=(0,i.useRef)(!1),I=(0,l.d4)(c.C1),T=(0,i.useCallback)((t=>new Promise(((e,n)=>{const i=f.addListener(a.Ru.SANDBOX_READY,(()=>{i.dispose(),e()}));t&&setTimeout((()=>{i.dispose(),n("timeout")}))}))),[f]),y=(0,i.useCallback)((i=>{T(h).catch((t=>console.log(t))).finally((()=>{Promise.resolve().then((()=>{if(!x.current){O.current++;for(let t=0;t<O.current;t++)v.canUndo()?v.undo():x.current=!0;setTimeout((()=>{if(0===--O.current){const s={past:v.getPast().slice(0,A),future:v.getFuture(),errorResolved:!x.current,text:t.getValue(),message:i.message,stack:i.stack,userId:null===I||void 0===I?void 0:I.id,entityId:null===e||void 0===e?void 0:e.id,entityType:document.location.pathname.indexOf("emails")>0?"email":"block"};console.log(s),w({id:"IFRAME_ERROR",data:s,message:n("Something went wrong")}),m.CJ.post(E,s).catch((t=>console.log(t))),x.current=!1}}),h)}}))}))}),[v,t,w,null===I||void 0===I?void 0:I.id,null===e||void 0===e?void 0:e.id,n,T]);(0,d.A)(a.Ru.APPLICATION_DOMPARSER_ERROR,y),(0,i.useEffect)((()=>{let n=null,i=0;function r(t){const e=[];for(const{rangeOffset:n,rangeLength:i,text:s}of t.changes)e.push({range:{start:n,end:n+i},text:s});return e}let d=!1;const o=new b.j;return o.addDisposable((0,_.Og)(t,(t=>(async t=>{if(d)await f.sendAsync(a.Ru.SANDBOX_UPDATE_ENTITY,{edits:[r(t)],guid:e.renderGuid});else if(n)n.push(t);else{n=[t];do{const t=n.splice(0,n.length);await f.sendAsync(a.Ru.SANDBOX_UPDATE_ENTITY,{edits:t.map(r),guid:e.renderGuid})}while(n.length);n=null}})(t).catch((t=>console.log(t)))))),o.addDisposable(f.addListener(a.Ru.APPLICATION_UPDATE_ENTITY,(function({guid:n,edits:a,pushUndoStop:r}){if(t&&n===e.renderGuid)try{d=!0;const e=(0,s.yc)();let n=e.canUndo(t.uri),o=e.canRedo(t.uri);const l=a.map((({text:e,range:n})=>{const i=t.getPositionAt(n.start),s=t.getPositionAt(n.end);return{text:e,range:{startColumn:i.column,startLineNumber:i.lineNumber,endColumn:s.column,endLineNumber:s.lineNumber}}}));r||n||o?t.pushEditOperations([],l,(()=>null)):t.applyEdits(l),!1!==r&&(i&&clearTimeout(i),i=setTimeout((()=>{t.pushStackElement(),i=0}),g))}finally{d=!1}}))),()=>{o.dispose(),i&&clearTimeout(i)}}),[t,f,e.renderGuid])}},32411:(t,e,n)=>{"use strict";n.d(e,{$Z:()=>c,TW:()=>o,aD:()=>l,fn:()=>p,kx:()=>d});var i=n(70609),s=n(92810),a=n(71070),r=n(11305);const d=(0,s.createContext)(null);function o(t){const e=(0,i.yc)(),[n,a]=(0,s.useState)({canUndo:e.canUndo(t.uri),canRedo:e.canRedo(t.uri)});return(0,s.useEffect)((()=>{const n=t.onDidChangeContent((()=>{setTimeout((()=>a({canUndo:e.canUndo(t.uri),canRedo:e.canRedo(t.uri)})))}));return()=>{n.dispose()}}),[t,e]),n}function l(t){function e(t){var e;const n=(null===t||void 0===t||null===(e=t.actual)||void 0===e?void 0:e._data)||new r.Ov;return n instanceof r.Ov?n:r.Ov.deserialize(n)}const n=(0,i.yc)();return{undo:()=>n.undo(t.uri),redo:()=>n.redo(t.uri),clear:()=>n.removeElements(t.uri),getPast:()=>{var i,s;return(null===(i=n._editStacks.get(t.uri.toString()))||void 0===i||null===(s=i._past)||void 0===s?void 0:s.map(e))||[]},getFuture:()=>{var i,s;return(null===(i=n._editStacks.get(t.uri.toString()))||void 0===i||null===(s=i._future)||void 0===s?void 0:s.map(e))||[]},canUndo:()=>n.canUndo(t.uri),canRedo:()=>n.canRedo(t.uri)}}function c(t="",e="html"){const n=a.editor.createModel(t,e);return n.setEOL(a.editor.EndOfLineSequence.LF),n}function p(){return(0,s.useContext)(d)}},83863:(t,e,n)=>{"use strict";n.d(e,{Og:()=>r,SF:()=>a,po:()=>s});const i=new Set;function s(t){return i.add(t),{dispose(){a(t)}}}function a(t){i.delete(t)}function r(t,e){let n=t.getVersionId(),s=[];const a=t.onDidChangeContent((a=>{if(a.versionId>n+1){let r=t.onDidChangeContent((d=>{if(a.versionId===n+1)try{i.has(t)||e(a)}catch(o){console.log(o)}finally{n=a.versionId;let t=s.indexOf(r);t>=0&&s.splice(t,1),r.dispose()}}));s.push(r)}else try{i.has(t)||e(a)}catch(r){console.log(r)}finally{n=a.versionId}}));return{dispose:()=>{a.dispose(),s.forEach((t=>t.dispose()))}}}},70609:(t,e,n)=>{"use strict";n.d(e,{D0:()=>r,yc:()=>d});var i=n(50051),s=n(75793),a=n(24554);function r(t,e){const n=i.dS.getEditorContributions().find((e=>e.id===t));if(!n)throw new Error(`No contribution ${t}`);n.ctor=e(n)}function d(){return t=a.$D,s.QE.get(t);var t}},71157:(t,e,n)=>{"use strict";n.d(e,{Gy:()=>m,O5:()=>_,hN:()=>b,x_:()=>u});var i=n(13522),s=n(93982),a=n(92810),r=n(33206),d=n(13329),o=n(28316),l=n(814),c=n(70082);const p="bottomRight";function m(t){return{id:t.id,code:t.html,title:t.title,subject:t.subject,preheader:t.preheader}}function u(t){return{id:t.id,code:t.html,title:t.title}}function b(){const t=(0,s.ml)(i.A.ON_NOTIFICATION),{notification:e}=r.A.useApp(),n=(0,a.useCallback)(((n,i)=>{n.type||(n={...n,type:"info"}),t.fire((0,l.TB)({id:n.id,type:n.type,data:n.data,innerException:n.innerException})).then((t=>{if(t.every((t=>!1!==t))){n={...n};for(const e of t)"object"===typeof e&&Object.assign(n,e,e.style?{style:{...e.style,...n.style}}:{},e.props?{props:{...e.props,...n.props}}:{},e.className?{className:n.className?`${n.className} ${e.className}`:e.className}:{});i||((n=Object.assign(n,...t.filter((t=>"object"===typeof t)))).placement||(n.placement=p),e[n.type]?e[n.type](n):(console.log(n.type),console.log(n.id),n.message&&console.log(n.message)))}}))}),[e,t]),d=(0,a.useCallback)(((t,e)=>n({...t,type:"error"},e)),[n]),o=(0,a.useCallback)(((t,e)=>n({...t,type:"success"},e)),[n]),m=(0,a.useCallback)(((t,e)=>n({...t,type:"warning"},e)),[n]),u=(0,a.useCallback)(((t,e,n,i,s=p)=>{var a,r;n&&d({id:t,data:e,message:n.data instanceof Error?"":(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(a=n.data)||void 0===a?void 0:a.code)||n.status||n}}),description:(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(r=n.data)||void 0===r?void 0:r.message)||n.error}}),placement:s,innerException:(null===n||void 0===n?void 0:n.data)instanceof Error?n.data:n},i)}),[d]);return(0,a.useMemo)((()=>({notify:n,success:o,error:d,warning:m,fromError:u})),[n,o,d,m,u])}function _(){const{notify:t}=b();(0,d.D3)(o.Sb,t)}},23287:(t,e,n)=>{"use strict";n.d(e,{CY:()=>d,s9:()=>o});var i=n(92810),s=n(42108);function a(t){return{__:t.__.bind(t),_x:t._x.bind(t),_n:t._n.bind(t),_nx:t._nx.bind(t),sprintf:s.nv,isRTL:t.isRTL.bind(t),hasTranslation:t.hasTranslation.bind(t)}}const r=(0,i.createContext)(a(s.y3));function d(t){const{children:e,i18n:n=s.y3}=t,[,d]=(0,i.useReducer)((()=>[]),[]);(0,i.useEffect)((()=>n.subscribe(d)),[n]);const o=(0,i.useMemo)((()=>a(n)),[n]);return(0,i.createElement)(r.Provider,{value:o},e)}const o=()=>(0,i.useContext)(r)},42068:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s,c:()=>a});var i=n(92810);const s=(t,e)=>{const n=(0,i.useRef)();n.current=t;const s=(0,i.useRef)(void 0);(0,i.useEffect)((()=>{null!==s.current&&n.current(s.current||[]),s.current=e}),e)};function a(t,e){const n=(0,i.useRef)(),s=(0,i.useRef)(),[a,r]=(0,i.useState)(0),d=(0,i.useCallback)((()=>{n.current&&(n.current=void 0,s.current=void 0,r(0))}),[r]);(0,i.useEffect)((()=>()=>d()),[d]);const o=(0,i.useCallback)(t,e);(0,i.useEffect)((()=>{if(a>0){const t=n.current;t&&t.next().then((t=>{t.done?(s.current.resolve(t.value),d()):r(a+1)}),(t=>{s.current.reject(t),d()}))}}),[a,r,d]);return[(0,i.useCallback)(((...t)=>(d(),n.current=o(...t),r(1),new Promise(((t,e)=>{s.current={resolve:t,reject:e}})))),[d,o,r]),d]}},69156:(t,e,n)=>{"use strict";n.d(e,{A5:()=>c,FN:()=>l,Hk:()=>o,c8:()=>p});var i=n(92810),s=n(85163),a=n(45695);const r=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]"),d=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=light]"),o=t=>{let e,n;t===s.IJ?(e=s.vd,n=s.F3):(e=t===s.T?s.y2:s.CJ,n=t===s.nd?s.y2:s.CJ),[...d].forEach((t=>{t.media=e})),[...r].forEach((t=>{t.media=n}))},l=(t={})=>{const e=document.querySelector("head"),n=document.createElement("style");if(n.type="text/css",n.dataset.themeVaribalse=!0,Object.entries(t).length){let i="";Object.entries(t).forEach((([t,e])=>{"object"!==typeof e&&(i+=`\t--${t}: ${e};\n`)})),i=`.blocks-body, .blocks-app, .ant-modal-root, .ant-tooltip, .ant-notification {\n${i}}`,n.appendChild(document.createTextNode(i));const s=e.querySelector('[data-theme-varibalse="true"]');s?e.replaceChild(n,s):e.insertBefore(n,e.firstChild)}},c=t=>{const e=document.body;e.classList.contains(t)||setTimeout((()=>{e.classList.remove(t===s.nd?s.T:s.nd),e.classList.add(t)}),200)},p=()=>{const t=(0,a.XW)();return(0,i.useCallback)((()=>{const e=window.localStorage.getItem(s.V0.em_color_scheme),n=matchMedia(s.F3).matches?s.nd:s.T,i=e||n;t({operation:s.Ru.UPDATE_PREVIEW,theme:i})}),[t])}},31770:(t,e,n)=>{"use strict";function i(t){return t}function s({data:t,...e},n){return e.error?e:{data:n(t,e.meta),...e}}function a(t){return e=>s(e,t)}function r(t){return e=>s(e,((e,n)=>e.hasOwnProperty("previous")?t(e.previous,n):t(e,n)))}function d(t){return e=>function({data:t,...e},n){return e.error?e:{data:t.map((t=>n(t,e.meta))),...e}}(e,t)}n.d(e,{Ih:()=>d,PI:()=>r,SA:()=>s,SC:()=>a,ur:()=>i})},84869:(t,e,n)=>{"use strict";function i(t,e){if("object"===typeof t&&t){e(t);for(const n of Object.values(t))i(n,e)}}function s(t=".blocks-app"){t=`${t} &`;const e=new WeakSet;return{visit:n=>{if(!e.has(n)){const s={};let a;for(const r of Object.keys(n)){const d=n[r];"object"===typeof d&&d?(d._keyframe&&i(d,(t=>e.add(t))),s[r]=d):(a||(a=s[t]={},e.add(a)),a[r]=d)}return s}return n}}}n.d(e,{A:()=>s})},44824:(t,e,n)=>{"use strict";n.d(e,{e:()=>s});var i=n(85974);async function s(t,e){if("amp"===e){for(const e of t.querySelectorAll(".em-amp-show-disabled"))e.remove();await(0,i.Sc)(t,{mappedTags:{script:"___script"}})}else if("html"===e){for(const e of t.querySelectorAll(".em-amp-show-only"))e.remove();(0,i.Km)(t,{mappedTags:{script:"___script"}})}}},78451:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(92810),s=n(45934),a=n(64617),r=n(17581),d=n(65983);const o=()=>{const t=(0,s.wA)(),e=(0,s.d4)(d.zn);let n=(0,a.zy)();(0,i.useEffect)((()=>{/emails\/[0-9]+$/.test(n.pathname)||e&&t(r.GY.util.invalidateTags([{type:"Emails",id:+e}]))}),[n,t,e])}},64037:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(92810),s=n(45695);function a(t,e){const n=(0,s.QC)();(0,i.useEffect)((()=>{const i=n.addListener(t,e);return()=>{i.dispose()}}),[n,t,e])}},31844:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(92810),s=n(64617),a=n(45934),r=n(86286),d=n(84568);const o=t=>{const e=(0,a.d4)(r.C1),[n,o]=(0,i.useState)({owner:!1,admin:!1}),l=(0,s.KC)(),{data:c}=(0,d.fo)(t,{skip:!t||!e.id||!(null!==l&&void 0!==l&&l.isUninitialized)}),p=(null===l||void 0===l?void 0:l.data)||c;return(0,i.useEffect)((()=>{if(p){var t,n;const{owner:i,admins:s,users:a}=p.members,r=s?s.map((t=>t.ID)):s,d=a?a.map((t=>t.ID)):a;o({owner:(null===(t=i.ID)||void 0===t?void 0:t.toString())===(null===(n=e.id)||void 0===n?void 0:n.toString()),admin:r&&r.includes(e.id),user:d&&d.includes(e.id)})}}),[p,e.id]),n}},3289:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(92810),s=n(45934),a=n(64617),r=n(87790),d=n(85163),o=n(90070);const l=()=>{const t=(0,s.wA)(),e=(0,o.p6)(),n=(0,s.d4)(r.Sl);let l=(0,a.zy)();(0,i.useEffect)((()=>{l.pathname.endsWith("/new")||n&&(t((0,r.X8)()),e.remove(d.A9.em_new_block))}),[l,n,t,e])}},19366:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(92810),s=n(45934),a=n(64617),r=n(8493),d=n(85163),o=n(90070);const l=()=>{const t=(0,o.p6)(),e=(0,s.wA)(),n=(0,s.d4)(r.$S);let l=(0,a.zy)();(0,i.useEffect)((()=>{l.pathname.endsWith("/new")||(t.remove(d.A9.em_new_email),t.remove(d.A9.em_template_email),n&&e((0,r.Et)()))}),[l,n,e,t])}},22197:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(85163);const s=t=>{if(!i.EW.isPlugin){let e="";e="Blocks",document.title=t+" - "+e}}},93718:(t,e,n)=>{var i={"./en_US.ts":[90944,2466],"./ru_RU.ts":[3099,6859]};function s(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],s=e[0];return n.e(e[1]).then((()=>n(s)))}s.keys=()=>Object.keys(i),s.id=93718,t.exports=s},42811:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+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"},58889:t=>{"use strict";t.exports=JSON.parse('{"yG":"iframe.ece66097f060e52e2d37.html","l5":"iframe-eblock.ece66097f060e52e2d37.html"}')}}]);
|