useblocks 1.0.26 → 1.0.28
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 +21 -21
- package/iframe/{iframe-eblock.849f36309fcfd3c6b726.html → iframe-eblock.34a9404248018e7465b3.html} +1 -1
- package/iframe/{iframe.849f36309fcfd3c6b726.html → iframe.34a9404248018e7465b3.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 +6 -7
- package/plugin_blocks_test.html +139 -27
- package/plugin_default.html +1 -1
- package/plugin_s.html +1 -1
- package/static/css/698.9a48c3be.css +1 -0
- package/static/js/1399.71fa61b5.js +1 -0
- package/static/js/1795.a33323f4.js +1 -0
- package/static/js/2256.89c1e152.js +1 -0
- package/static/js/5571.4464f3b4.js +1 -0
- package/static/js/698.6b8840b5.js +1 -0
- package/static/js/7400.beb54415.js +1 -0
- package/static/js/9420.28e956c3.js +1 -0
- package/static/js/9907.c26468b0.js +1 -0
- package/static/js/{useblocks_core.6fa55aa8.js → useblocks_core.bc0e4ded.js} +1 -1
- package/translations.pot +584 -552
- package/useblocks-esm.js +1 -1
- package/useblocks.d.ts +7 -2
- package/useblocks.js +1 -1
- package/iframe/429.js +0 -1
- package/static/css/698.78cace37.css +0 -1
- package/static/js/1399.7199f806.js +0 -1
- package/static/js/1795.0af49b47.js +0 -1
- package/static/js/2256.d9c4a829.js +0 -1
- package/static/js/5571.3d9d05bc.js +0 -1
- package/static/js/6138.4aa6ec53.js +0 -1
- package/static/js/698.bec2008c.js +0 -1
- package/static/js/9420.a4ace670.js +0 -1
- package/static/js/9907.761fcfa3.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[7400],{88647:(t,e,n)=>{"use strict";n.d(e,{h:()=>r});var i,s=n(92810);function o(){return o=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},o.apply(null,arguments)}function a({title:t,titleId:e,...n},a){return s.createElement("svg",o({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",ref:a,"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 r=s.forwardRef(a);n.p},79154:(t,e,n)=>{"use strict";n.d(e,{h:()=>r});var i,s=n(92810);function o(){return o=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},o.apply(null,arguments)}function a({title:t,titleId:e,...n},a){return s.createElement("svg",o({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",ref:a,"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 r=s.forwardRef(a);n.p},28316:(t,e,n)=>{"use strict";n.d(e,{Kp:()=>i,Sb:()=>o,_1:()=>s});const i="SAVE",s="SHOW",o="NOTIFY"},82212:(t,e,n)=>{"use strict";n.d(e,{Y:()=>x});var i=n(92810),s=n(42108),o=n(23287),a=n(20648),r=n(94381),l=n(45934),d=n(2417),c=n.n(d),p=n(86286),m=n(85163),u=n(18398),b=n(71157),g=n(42068),_=n(93982),h=n(13522),f=n(70082);const A="locale",E="ant_locale",v="em_locale",w="em_ant_locale",O="em_mergeTags_locale",x=({children:t})=>{const[e,d]=(0,i.useState)((()=>(0,s.hU)())),[x,T]=(0,i.useState)(),[I,y]=(0,i.useState)(!0),D=(0,l.d4)(p.B),[L,R]=(0,r.HO)(),[S,N]=(0,r.Yj)(),C=(0,l.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(A)),t&&(localStorage.removeItem(A),localStorage.setItem(v,JSON.stringify(t)))),d((0,s.hU)(t.data)),y(!1)}catch{y(!0)}try{let t=JSON.parse(localStorage.getItem(w));t||(t=JSON.parse(localStorage.getItem(E)),t&&(localStorage.removeItem(E),localStorage.setItem(w,JSON.stringify(t)))),T(t.data)}catch{}if(!m.EW.isPlugin)try{let t=JSON.parse(localStorage.getItem(O));C((0,u.Kj)(t.data))}catch{}}),[T,y,d,C]),(0,i.useEffect)((()=>{P&&n(17583)(`./${"uk"===P?"uk_UA":P}.js`).then((t=>{T(t.default),localStorage.setItem(w,JSON.stringify(t.default))}))}),[T,P]),(0,i.useEffect)((()=>{m.EW.isPlugin||P&&n(93718)(`./${"uk"===P?"uk_UA":P}.ts`).then((t=>{C((0,u.Kj)(t.default)),localStorage.setItem(O,JSON.stringify(t.default))}))}),[P,C]),(0,g.Z)((([t])=>{!t&&R.error&&M.fromError("GET_LOCALES_ERROR",void 0,R.error)}),[R.error,M]);const B=(0,_.ml)(h.A.READ_LOCALE),[k,U]=(0,i.useState)(!1);return(0,g.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;d((0,s.hU)(t)),U(!0)}else R.isSuccess?S({id:P}):L(void 0)}))}),[P,B,R,d,U]),(0,i.useEffect)((()=>{if(R.isSuccess){const t=R.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{}S({id:P})}}}),[P,R,S,M,U]),(0,g.Z)((([t])=>{!t&&N.isError&&M.fromError("GET_LOCALE_ERROR",void 0,N.isError)}),[N.isError,M]),(0,i.useEffect)((()=>{if(R.isSuccess&&N.isSuccess){var t;if(N.originalArgs.id!==P)return;const e=R.data.filter((([t])=>t===P)),n=N.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{}d((0,s.hU)(i)),U(!0)}}),[N,P,R,d,M,U]),(0,f.jsx)(o.CY,{i18n:e,children:(0,f.jsx)(a.Ay,{locale:x,children:!I||k?t:(0,f.jsx)(f.Fragment,{})})})}},17126:(t,e,n)=>{"use strict";n.d(e,{LG:()=>a,fh:()=>o,or:()=>s});var i=n(92810);const s=(0,i.createContext)({element:void 0}),o=(0,i.createContext)(void 0),a=()=>(0,i.useContext)(o)},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>`},78588:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <amp-carousel width="800" height="600" layout="responsive" type="slides" controls>\n <amp-img src="${t("https://cdn.useblocks.io/1351/241031_18_JoH0f3E.png")}" width="800" height="600" layout="responsive" alt=""></amp-img>\n <amp-img src="${t("https://cdn.useblocks.io/1351/241031_18_aJAY1Xz.png")}" width="800" height="600" layout="responsive" alt=""></amp-img>\n <amp-img src="${t("https://cdn.useblocks.io/1351/241031_18_OQEyMEF.png")}" width="800" height="600" layout="responsive" alt=""></amp-img>\n </amp-carousel>\n</td></tr></table>`},59817:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});const i=new Date,s=new Date(+i+432e6).toISOString(),o=-(new Date).getTimezoneOffset()/60,a=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=${o}" 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=${o}`)(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 o;(o=s||(s={})).BEFORE_SAVE_EMAIL=(0,i.cZ)(),o.ON_SAVEBUTTON_CLICK_ID=(0,i.cZ)(),o.ON_NEXTBUTTON_CLICK_ID=(0,i.cZ)(),o.ON_PREVIOUSBUTTON_CLICK_ID=(0,i.cZ)(),o.ON_MODEL_CHANGE=(0,i.cZ)(),o.WILL_EMAIL_INIT_ID=(0,i.cZ)(),o.ON_EMAIL_INIT_ID=(0,i.cZ)(),o.ON_BLOCK_INIT_ID=(0,i.cZ)(),o.ON_CONTENT_CHANGED_ID=(0,i.cZ)(),o.ON_EMAIL_CHANGED_ID=(0,i.cZ)(),o.ON_BLOCK_CHANGED_ID=(0,i.cZ)(),o.ON_SEND_TESTEMAIL_ID=(0,i.cZ)(),o.ON_SEND_LIVEPREVIEW_ID=(0,i.cZ)(),o.ON_SHARE_ID=(0,i.cZ)(),o.ON_SHOW_PREVIEW_ID=(0,i.cZ)(),o.ON_EMAIL_CLONE_ID=(0,i.cZ)(),o.ON_SEND_EMAIL_MODAL_ID=(0,i.cZ)(),o.ON_NOTIFICATION=(0,i.cZ)(),o.READ_LOCALE=(0,i.cZ)()},47520:(t,e,n)=>{"use strict";n.d(e,{AO:()=>P,Ai:()=>u,NW:()=>S,RM:()=>m,TW:()=>N,Ze:()=>B,ok:()=>C,xc:()=>M,yy:()=>L});n(92810);var i=n(81662),s=n(7228),o=n(9588),a=n(37517),r=n(73035),l=n(27071),d=n(9038),c=n(85163),p=n(70082);const m=({linkProtocol:t})=>{switch(t){case"https://":default:return(0,p.jsx)(s.A,{rev:void 0});case"mailto:":return(0,p.jsx)(o.A,{rev:void 0});case"tel:":return(0,p.jsx)(a.A,{rev:void 0});case"sms:":return(0,p.jsx)(r.A,{rev:void 0});case"ftp://":return(0,p.jsx)(l.A,{rev:void 0});case"skype:":return(0,p.jsx)(d.A,{rev:void 0})}},u=({handleLinkProtocolsChange:t,linkProtocol:e,__:n})=>(0,p.jsx)(i.A,{style:{width:90,textAlign:"left"},value:e,onChange:t,getPopupContainer:t=>t.parentNode,options:[{value:"https://",label:n("Site")},{value:"mailto:",label:n("E-mail")},{value:"tel:",label:n("Phone")},{value:"sms:",label:n("SMS")},{value:"ftp://",label:n("File")},{value:"skype:",label:n("Skype")},{value:"viber:",label:n("Viber")},{value:"",label:n("Other")}]}),{mobileBorderRadiusAll:b,mobileRadiusTopLeft:g,mobileRadiusBottomLeft:_,mobileRadiusTopRight:h,mobileRadiusBottomRight:f,borderRadiusBottomRight:A,borderRadiusTopRight:E,borderRadiusBottomLeft:v,borderRadiusTopLeft:w,alt:O,src:x,title:T,link:I,borderRadiusAll:y,imgReplacer:D}={link:"link",borderRadiusBottomRight:"borderRadiusBottomRight",borderRadiusTopRight:"borderRadiusTopRight",borderRadiusBottomLeft:"borderRadiusBottomLeft",borderRadiusTopLeft:"borderRadiusTopLeft",mobileBorderRadiusAll:"mobileBorderRadiusAll",mobileRadiusTopLeft:"mobileRadiusTopLeft",mobileRadiusBottomLeft:"mobileRadiusBottomLeft",mobileRadiusTopRight:"mobileRadiusTopRight",mobileRadiusBottomRight:"mobileRadiusBottomRight",alt:"alt",imgReplacer:"imgReplacer",src:"src",title:"title",borderRadiusAll:"borderRadiusAll"},L={paddingTop:"top",paddingLeft:"left",paddingRight:"right",paddingBottom:"bottom",mobilePaddingTop:"top",mobilePaddingLeft:"left",mobilePaddingRight:"right",mobilePaddingBottom:"bottom"},R={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},S={mobileBorderRadiusAll:"all",mobileRadiusTopLeft:"topLeft",mobileRadiusBottomLeft:"bottomLeft",mobileRadiusTopRight:"topRight",mobileRadiusBottomRight:"bottomRight"},N=(t,e)=>t.startsWith("mailto:")?"mailto:":t.startsWith("tel:")?"tel:":t.startsWith("sms:")?"sms:":t.startsWith("ftp://")?"ftp://":t.startsWith("skype:")?"skype:":t.startsWith("viber:")?"viber:":e,C=t=>t||(0===t?"0":""),M=t=>t&&"auto"!==t?t:0===t?"0":"";function P(t){var e,n,i,s,o,a,r,l,d,c,p,m,u,b,g,_,h,f,A;let E={...t,link:t.link?t.link:"https://",borderRadiusAll:C(null===(e=t.borderRadius)||void 0===e?void 0:e.all),borderRadiusTopLeft:C(null===(n=t.borderRadius)||void 0===n?void 0:n.topLeft),borderRadiusBottomLeft:C(null===(i=t.borderRadius)||void 0===i?void 0:i.bottomLeft),borderRadiusTopRight:C(null===(s=t.borderRadius)||void 0===s?void 0:s.topRight),borderRadiusBottomRight:C(null===(o=t.borderRadius)||void 0===o?void 0:o.bottomRight),mobileBorderRadiusAll:C(null===(a=t.mobileBorderRadius)||void 0===a?void 0:a.all),mobileRadiusTopLeft:C(null!==(null===(r=t.mobileBorderRadius)||void 0===r?void 0:r.topLeft)?null===(l=t.mobileBorderRadius)||void 0===l?void 0:l.topLeft:null===(d=t.mobileBorderRadius)||void 0===d?void 0:d.all),mobileRadiusBottomLeft:C(null!==(null===(c=t.mobileBorderRadius)||void 0===c?void 0:c.bottomLeft)?null===(p=t.mobileBorderRadius)||void 0===p?void 0:p.bottomLeft:null===(m=t.mobileBorderRadius)||void 0===m?void 0:m.all),mobileRadiusTopRight:C(null!==(null===(u=t.mobileBorderRadius)||void 0===u?void 0:u.topRight)?null===(b=t.mobileBorderRadius)||void 0===b?void 0:b.topRight:null===(g=t.mobileBorderRadius)||void 0===g?void 0:g.all),mobileRadiusBottomRight:C(null!==(null===(_=t.mobileBorderRadius)||void 0===_?void 0:_.bottomRight)?null===(h=t.mobileBorderRadius)||void 0===h?void 0:h.bottomRight:null===(f=t.mobileBorderRadius)||void 0===f?void 0:f.all),show:t.show?t.show:"all",altSrc:t.src};var v,w;t.video&&(E.videoPlayButton=null!==(v=t.video.playButton)&&void 0!==v?v:"youtube_red",E.videoSource=null!==(w=t.video.source)&&void 0!==w?w:"");if((null===(A=t.carouselImages)||void 0===A?void 0:A.length)>0){var O;let e={};null===(O=t.carouselImages)||void 0===O||O.map(((t,n)=>(Object.keys(t).forEach((i=>{e[i+"_"+n]=t[i]})),!0))),E.images=e}return E}function B(t,e,n){const i=n.hasOwnProperty("images"),s=Object.keys(i?n.images:n)[0],o=i?n.images:n;let a={};const r=e.getFieldsValue(!0);switch(s.split("_")[0]){case T:case x:case O:case D:if(i){let e=[...t.carouselImages];e[s.split("_")[1]][s.split("_")[0]]=o[s],a={carouselImages:e}}else a=o;break;case I:let n=o[s];"https://http"===n.substring(0,12)&&(n=n.substring(8,n.length)),t.type===c.bV.CAROUSEL?(a.carouselImages=t.carouselImages,i?(e.setFieldValue(["images",[I+"_"+s.split("_")[1]]],n),a.carouselImages[s.split("_")[1]].link=n,a.link="",e.setFieldValue(I,"https://")):(t.carouselImages.forEach(((t,i)=>{e.setFieldValue(["images",I+"_"+i],n),a.carouselImages[i].link=n,a.link=n})),e.setFieldValue(I,n))):(e.setFieldValue(I,n),a.link=n);break;case y:case w:case v:case E:case A:a={borderRadius:{...t.borderRadius,[R[w]]:r[w],[R[v]]:r[v],[R[E]]:r[E],[R[A]]:r[A],[R[s]]:+o[s]}};break;case b:case g:case _:case h:case f:a={mobileBorderRadius:{...t.mobileBorderRadius,[S[g]]:r[g],[S[_]]:r[_],[S[h]]:r[h],[S[f]]:r[f],[S[s]]:o[s],classNamePrefix:"em-mob-border_radius_"+S[s]+"-"}};break;default:a=o}return{...t,...a}}},85163:(t,e,n)=>{"use strict";n.d(e,{A9:()=>l,BD:()=>ct,Bv:()=>C,CJ:()=>m,EW:()=>r,F3:()=>h,F5:()=>s,G$:()=>X,IE:()=>Z,IJ:()=>g,JE:()=>Y,Jy:()=>U,KI:()=>et,N7:()=>G,ND:()=>at,QV:()=>pt,Qz:()=>K,Ru:()=>v,St:()=>H,T:()=>u,Tm:()=>J,UW:()=>c,Ug:()=>dt,V0:()=>d,VG:()=>f,Vp:()=>ot,Vv:()=>D,WU:()=>R,Y$:()=>$,YY:()=>lt,aO:()=>z,bV:()=>O,e3:()=>ut,eA:()=>Q,eG:()=>tt,ff:()=>o,gY:()=>W,hc:()=>P,iU:()=>it,iV:()=>F,iW:()=>S,jg:()=>mt,lx:()=>A,m3:()=>V,mX:()=>T,nA:()=>k,nd:()=>b,oy:()=>a,p5:()=>nt,pe:()=>B,rW:()=>w,rY:()=>M,rb:()=>L,rl:()=>q,vd:()=>_,wF:()=>st,xz:()=>x,y2:()=>p,yI:()=>y,yo:()=>j,yy:()=>I,zh:()=>rt,zx:()=>N});var i=n(19378);const s="LOADING",o="ERROR",a="useblocks",r={isPlugin:!1},l={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"},d={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"},c="deleted",p="all",m="not all",u="light",b="dark",g="system",_="(prefers-color-scheme: light)",h="(prefers-color-scheme: dark)",f="#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 v={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"),SANDBOX_IS_EMAIL_EMPTY:(0,i.Qm)("sandbox_is_email_empty")},w={language:"html",detectIndentation:!1,wordWrap:"on",wrappingIndent:"same",smoothScrolling:"on",automaticLayout:!0,tabSize:2,indentSize:2};let O;!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",t.CAROUSEL="carousel"}(O||(O={}));const x="Appearance",T="Structure",I="Settings",y="Properties",D="History",L="Disabled_tab",R="Edit selected element",S="UTM parameters",N="Edit",C="Build",M="Styles",P="Discuss",B="TEXT_AI",k="Blocks",U="Atoms",G="Optimise",F={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}},j="Owner",H="Administrator",V="User",X="The invitation has been sent",W="Assign the project owner",K="Change role to Administrator",z="Change role to User",Q="Remove member",Y="Revoke the invite",Z="block",J="email",$="cards",q="list",tt="pending",et="d41d8",nt=1865,it=6892,st={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},ot="desktop",at="mobile",rt="emailtags",lt="blocktags",dt="all_folders",ct={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:""}},pt=t=>({REORDER_ATOM:t("Reorder element"),CLONE_ATOM:t("Clone element"),REMOVE_ATOM:t("Remove element"),EDIT_ATOM:t("Edit element"),CHANGE_IMAGE:t("Change image"),REORDER_BLOCK:t("Reorder block"),REORDER_BLOCK_UP:t("Move up"),REORDER_BLOCK_DOWN:t("Move down"),EDIT_BLOCK:t("Edit block"),CLONE_BLOCK:t("Clone block"),MERGE_BLOCK:t("Merge with the chosen block"),UNMERGE_BLOCK:t("Split blocks"),COPY_BLOCK_TO_CLIPBOARD:t("Copy block to clipboard"),PASTE_BLOCK_FROM_CLIPBOARD:t("Paste block from clipboard"),REMOVE_BLOCK:t("Remove block"),SAVE_TO_BLOCKS:t("Save to Blocks"),ADD_BLOCK:t("Add block"),ADD_EMPTY_BLOCK:t("Add an empty block"),ADD_SAVED_BLOCK:t("Add a saved block"),ADD_COMMON_BLOCK:t("Add a common block"),ADD_TEMPLATE_BLOCK:t("Add a template block"),ADD_SEARCH_BLOCK:t("Search a block"),REORDER_GROUP:t("Reorder group"),EDIT_GROUP:t("Edit group"),CLONE_GROUP:t("Clone group"),REMOVE_GROUP:t("Remove group"),ADD_GROUP:t("Add group"),LINK:t("link"),TABLE_COLUMN:t("cell"),TABLE:t("table"),FLOAT_BLOCK:t("column"),CONTAINER:t("container"),PICTURE:t("picture"),CAROUSEL:t("carousel"),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")}),mt={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"},ut={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:()=>l});const s="INIT_MESSAGE";function o(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}class a{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 r extends a{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 o=s.findIndex((([t,e])=>n<=e)),a=[e,n];return this.isDisposed()||s.splice(o>=0?o:s.length,0,a),{dispose(){const t=s.indexOf(a);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 l extends a{constructor(t,e){super(),this._singleton=e,this._target=void 0,this._guid=o(),this._targetGuid="",this._emitter=this.addDisposable(new r),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 o=t?{operationId:t,data:e}:e;n.postMessage({...o,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=o(),s=o();return new Promise(((n,o)=>{const r=this.addDisposable(new a);r.addDisposable(this.onInit(((a,l)=>{a.postMessage({operationId:t,data:e,guid:l,result:i,error:s},"*"),r.addDisposable(this._onMessage(i,(t=>{n(t),r.dispose()}))),r.addDisposable(this._onMessage(s,(t=>{o(t),r.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 a);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:()=>a,Mu:()=>r,cM:()=>d,rD:()=>l});var i=n(45934),s=n(18398),o=n(71210);function a(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(!a(t[n],e[n]))return!1}else if(n)return!1;const i=Object.keys(t),s=Object.keys(e),o=i.length;if(o!==s.length)return!1;for(let r=0;r<o;r++){const n=i[r];if(!e.hasOwnProperty(n)||!a(t[n],e[n]))return!1}}return!0}function r(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 l(){return(0,i.d4)(s.zg)}function d(t,e,n){return null!==t&&void 0!==t&&t.length?t.map(((t,i)=>function(t){return t.hasOwnProperty("children")}(t)?{key:(0,o.l)(),value:t.value,label:t.label,children:d(t.children,e,n),type:t.type}:{key:(0,o.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:()=>a});var i=n(95152),s=n(41664),o=n(23580);const a={getContainer:o.My,createIdentifier:s.Q,reducer:o.Ff,reducerPath:o.IP,getInstance:function(t,e){return(t instanceof i.m?t:(0,o.My)(t)).getInstance(e)},getInstanceAsync:function(t,e){return(t instanceof i.m?t:(0,o.My)(t)).getInstanceAsync(e)},getOrCreateInstance:function(t,e,n){return(t instanceof i.m?t:(0,o.My)(t)).getOrCreateInstance(e,n)},inject:function(t,e,n,i){return(0,o.My)(t).inject(e,n)},addService:function(t,e,n){return(0,o.My)(t).addService(e,n)},getServices:function(t,e){return(0,o.My)(t).getServices(e)},useInject:o.lg,useInstance:o.Nj,useInstanceAsync:o.rl,useServices:o.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,o)=>{const a=(0,i.My)(n);return t(a)(e,n,s,o)}}},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:()=>d});var i=n(19378),s=n(33288),o=n(45934),a=n(41664),r=n(92810);const l=(0,a.Q)("MESSAGE_SERVICE");function d(){const t=c();return(0,r.useCallback)((e=>{t.setTarget(e instanceof Element?e.contentWindow:e)}),[t])}function c(){const t=(0,o.Pj)();return(0,r.useMemo)((()=>function(t){return s.di.getOrCreateInstance(t,l,(()=>new i.bg))}(t)),[t])}function p(){const t=c();return(0,r.useCallback)((function(e){t.send(e)}),[t])}function m(){const t=c();return(0,r.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,""),o=(0,i.hI)({baseUrl:s});let a=await o(t,e,n);if(a.error){let t=a.error;if("function"===typeof t.json)try{t=await t.json()}catch{t=await t,console.log("error",t)}return{error:t}}return a}},89698:(t,e,n)=>{"use strict";n.d(e,{V:()=>d});var i=n(85163),s=n(45695),o=n(23287),a=n(92810),r=n(45934),l=n(86286);function d(){const t=(0,s.QC)(),e=(0,r.d4)(l.C1),{__:n}=(0,o.s9)(),[d,c]=(0,a.useState)("");(0,a.useEffect)((()=>{if(e.locale!==d){const s=(0,i.QV)(n),o=t.onInit((()=>{t.send(i.Ru.SANDBOX_TRANSLATIONS,{name:e.locale,data:s}),c(e.locale)}));return()=>o.dispose()}}),[e.locale,d,c,n,t]),(0,a.useEffect)((()=>{const e=t.addListener(i.Ru.RELOAD,(()=>{c("")}));return()=>e.dispose()}),[c,t])}},37969:(t,e,n)=>{"use strict";n.d(e,{y:()=>l});var i=n(85163),s=n(45695),o=n(92810),a=n(70082);const r=Symbol("isIframeEvent");function l({children:t}){const[e,n]=(0,o.useState)(),[l,d]=(0,o.useState)(),[c,p]=(0,o.useState)(!1),m=(0,s.QC)();return(0,o.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,o=document.elementFromPoint(i,s);if(o){const e=new DataTransfer,n=new DragEvent(t.type,{clientX:i,clientY:s,cancelable:!0,bubbles:!0,dataTransfer:e});n[r]=!0,o.dispatchEvent(n)}}}));return()=>t.dispose()}}),[m,e]),(0,o.useEffect)((()=>{const t=t=>{t[r]||p(!0)},e=t=>{t[r]||p(!1)};return window.addEventListener("dragstart",t),window.addEventListener("dragend",e),()=>{window.removeEventListener("dragstart",t),window.removeEventListener("dragend",e)}}),[l]),(0,o.useEffect)((()=>{const t=t=>{if(!t[r]){var e;const n=l.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(l)return l.addEventListener("dragenter",t),l.addEventListener("dragover",t),l.addEventListener("dragleave",t),l.addEventListener("drop",t),l.addEventListener("dragend",t),()=>{l.removeEventListener("dragenter",t),l.removeEventListener("dragover",t),l.removeEventListener("dragleave",t),l.removeEventListener("drop",t),l.removeEventListener("dragend",t)}}),[l,m]),(0,a.jsxs)("div",{ref:n,children:[c&&(0,a.jsx)("div",{ref:d,className:"iframe-provider"}),t]})}},43672:(t,e,n)=>{"use strict";n.d(e,{w:()=>d});var i=n(95838),s=n(85163),o=n(56991),a=n(45695),r=n(92810);const{useToken:l}=i.A;function d(){const t=(0,a.QC)(),{token:e}=l(),[n,i]=(0,r.useState)();(0,r.useEffect)((()=>{if(!(0,o.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,r.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:()=>E});var i=n(85163),s=n(59287),o=n(92810),a=n(45934),r=n(64617),l=n(17581),d=n(53204),c=n(47358),p=n(65983),m=n(39738),u=n(86286),b=n(56991),g=n(32411),_=n(83863),h=n(71157),f=n(42068),A=n(47381);function E(t){const{emailId:e,projectId:n}=(0,r.g)(),E=(0,h.hN)(),v=(0,b.rD)(),w=(0,a.d4)(d.M),O=(0,g.fn)(),x=(0,o.useRef)(0),T=(0,a.d4)(m.p1),I=(0,a.d4)(c.Wm),y=(0,a.d4)(c.B),D=(0,a.d4)(u.C1),[L,R]=(0,l.LX)(),S=(0,a.wA)(),{isSuccess:N,isLoading:C}=(0,l.YV)({emailId:e},{skip:!e}),[M,P]=(0,o.useState)(null);(0,o.useEffect)((()=>{if(N&&!C&&null!==T&&void 0!==T&&T.length){const n=T[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&&S((0,p.no)(n)),P(null===t||void 0===t?void 0:t.id)}}),[S,T,N,C,null===t||void 0===t?void 0:t.id,M,O,e]);const B=(0,o.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};L({emailId:t.id,body:e}).then((o=>{if((0,A.d)({event:"save",action:"auto_save_email",email_id:t.id,project_id:n}),!function(t){return t.hasOwnProperty("data")}(o))throw o.error;var a,r;fetch((0,s.W)(i.Tm,n,null===(a=o.data)||void 0===a?void 0:a.id,null===(r=o.data)||void 0===r?void 0:r.modified),{mode:"no-cors"}),E.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:e,message:""},!0)})).catch((t=>{E.fromError("EMAIL_AUTOSAVE_ERROR",e,t,!0),console.log(t)}))}}),[L,t,O,n,E]),[k,U]=(0,o.useState)(!1),G=(0,o.useCallback)((()=>{if((null===T||void 0===T?void 0:T.length)>0){const t=[...T].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)&&I&&!w&&"Discuss"!==y&&B()}else I&&!w&&"Discuss"!==y&&B()}),[T,w,I,y,B,null===v||void 0===v?void 0:v.autosaveTimeout]);(0,f.Z)((([t])=>{k&&!t&&(G(),U(!1))}),[k,G,U]);const F=null===D||void 0===D?void 0:D.autosaves,[j,H]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{j&&!w&&(clearTimeout(x.current),x.current=setTimeout((()=>U(!0)),(null===v||void 0===v?void 0:v.autosaveTimeout)||1e4),H(!1))}),[j,w,null===v||void 0===v?void 0:v.autosaveTimeout,U,H]),(0,o.useEffect)((()=>{if(F&&N&&void 0!==(null===t||void 0===t?void 0:t.id)){const e=(0,_.Og)(O,(()=>{I&&null!==t&&void 0!==t&&t.is_inited&&H(!0)}));return()=>{e.dispose()}}}),[O,H,F,N,null===t||void 0===t?void 0:t.id,I,null===t||void 0===t?void 0:t.is_inited]),(0,f.Z)((([e,n])=>{N&&void 0!==(null===t||void 0===t?void 0:t.id)&&I&&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)||H(!0))}),[null===t||void 0===t?void 0:t.title,null===t||void 0===t?void 0:t.common_styles,I,N,H,null===t||void 0===t?void 0:t.id,null===t||void 0===t?void 0:t.is_inited]),(0,o.useEffect)((()=>()=>{clearTimeout(x.current)}),[D,null===t||void 0===t?void 0:t.renderGuid]),(0,o.useEffect)((()=>{clearTimeout(x.current)}),[null===t||void 0===t?void 0:t.modified]),R}},9653:(t,e,n)=>{"use strict";n.d(e,{U:()=>d});var i=n(85163),s=n(45695),o=n(32411),a=n(83863),r=n(42068),l=n(92810);const d=t=>{const e=(0,o.fn)(),n=(0,s.QC)(),d=(null===t||void 0===t?void 0:t.html)||"",c=(0,l.useRef)();c.current=t;const p=(0,l.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,l.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,l.useCallback)((async t=>{const s=c.current;if((null===s||void 0===s?void 0:s.renderGuid)===t){const t=null===d||void 0===d?void 0:d.replaceAll("\r\n","\n");try{(0,a.po)(e),e.setValue(t)}finally{(0,a.SF)(e)}const o=e.getValue();await n.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:o,guid:null===s||void 0===s?void 0:s.renderGuid})}}),[d,e,n]);(0,r.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:()=>g});var i=n(85163),s=n(13522),o=n(45695),a=n(93982),r=n(32411),l=n(83863),d=n(42068),c=n(92810),p=n(65983),m=n(8493),u=n(45934),b=n(32464);const g=(t,e)=>{const n=(0,u.wA)(),g=(0,r.fn)(),_=(0,o.QC)(),h=(0,a.ml)(s.A.WILL_EMAIL_INIT_ID),f=(0,a.ml)(s.A.ON_EMAIL_INIT_ID),A=(0,a.ml)(s.A.ON_CONTENT_CHANGED_ID),E=(0,a.ml)(s.A.ON_EMAIL_CHANGED_ID),v=(0,a.ml)(s.A.ON_MODEL_CHANGE),w=(0,c.useRef)(!1),O=(0,c.useRef)();O.current=t,(0,c.useEffect)((()=>{const n=O.current;if(i.EW.isPlugin&&!w.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const t=g.getValue();E.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}),[g,t,E,e]),(0,d.Z)((([t])=>{t!==g&&v.fire(g)}),[g,v]),(0,c.useEffect)((()=>{if(i.EW.isPlugin){const n=g.onDidChangeContent((()=>{const n=O.current;if(!w.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const t=g.getValue();A.fire(t),E.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}));return()=>n.dispose()}}),[g,A,E,t,e]);const x=(0,c.useCallback)((async()=>{const t=O.current;try{var e;(0,l.po)(g),g.setValue((null===t||void 0===t||null===(e=t.html)||void 0===e?void 0:e.replaceAll("\r\n","\n"))||"")}finally{(0,l.SF)(g)}const n=g.getValue();await _.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:n,guid:t.renderGuid})}),[g,_]),T=(0,c.useCallback)((async()=>{const t=O.current;await _.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:g.getValue(),guid:t.renderGuid})}),[g,_]),I=(0,c.useCallback)((async()=>{const t=O.current;void 0!==t.preheader&&await _.sendAsync(i.Ru.SANDBOX_PREHEADER_UPDATE,{value:t.preheader,guid:t.renderGuid,force:!0})}),[_]),y=(0,c.useCallback)((async()=>{const t=O.current;void 0!==t.subject&&await _.sendAsync(i.Ru.SANDBOX_SUBJECT_UPDATE,{value:t.subject,guid:t.renderGuid,force:!0})}),[_]),D=(0,c.useCallback)((()=>{const t=O.current;return _.sendAsync(i.Ru.SANDBOX_INITED,{guid:t.renderGuid})}),[_]),L=(0,c.useCallback)((()=>{const t=O.current;return n(void 0===t.id?(0,m.Uh)(!0):(0,p.Wm)(!0)),f.fire({...t,id:e||t.isNew?void 0:t.id,html:g.getValue()})}),[n,f,g,e]),R=(0,c.useCallback)((()=>{const t=O.current;return _.sendAsync(i.Ru.SANDBOX_INIT_START,{guid:t.renderGuid})}),[_]),S=(0,c.useCallback)((()=>{const t=O.current;return h.fire({...t,id:e||t.isNew?void 0:t.id,html:g.getValue()})}),[h,g,e]),[N]=(0,d.c)((function*(){try{w.current=!0,yield*(0,b.T1)(R),yield*(0,b.T1)(S),yield*(0,b.T1)(x),yield*(0,b.T1)(I),yield*(0,b.T1)(y),yield*(0,b.T1)(D),yield*(0,b.T1)(L)}finally{w.current=!1}}),[x,I,y,L,S,R,D]),[C]=(0,d.c)((function*(){try{yield*(0,b.T1)(R),yield*(0,b.T1)(S),yield*(0,b.T1)(T),yield*(0,b.T1)(I),yield*(0,b.T1)(y),yield*(0,b.T1)(D),yield*(0,b.T1)(L)}finally{}}),[x,I,y,L,S,R,D]);(0,d.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:()=>r,q2:()=>p});var i=n(60564),s=n.n(i),o=n(58689),a=n(81158);function r(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 l="index.html";function d(t,e){return t.find((function(t){return t.name.toLowerCase().endsWith(e)}))}async function c(t,e,n){return await(0,o.bc)(t,(async t=>{t=t.replace("\\","/");const n=(0,o.$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:a}=await i.loadAsync(t),r=Object.keys(a).map((t=>a[t])),c=a[l]||d(r,l)||d(r,".html")||d(r,".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("/")+"/",r=await c.async("text");return await(0,o.bc)(r,(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=a[t];if(n){const t=n.name,i=await n.async("blob");return e(i,t)}const i=(0,o.$l)(t);return e(t,i)}),n)}}(t,e,n);case"eml":{const i=await t.text(),s=(0,a.bZ)(i);if(s instanceof Error)throw s;const o="string"===typeof s?s:s.html;if("undefined"===typeof o)throw new Error("Eml not contains text/html");return c(o,e,n)}default:return c(await t.text(),e,n)}}}},44396:(t,e,n)=>{"use strict";n.d(e,{Q:()=>r});var i=n(12231),s=n(70609);const o=100;class a 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(),[a,r]=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-a>o||r-i>o){let e=t.filter((({colorInfo:t})=>{const{startLineNumber:e,endLineNumber:n}=t.range;return a-e<o&&n-r<o}));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 r(){(0,s.D0)(a.ID,(()=>a))}},36671:(t,e,n)=>{"use strict";n.d(e,{h:()=>E});var i=n(92810),s=n(70609),o=n(85163),a=n(32411),r=n(64037),l=n(71157),d=n(45934),c=n(86286),p=n(23287),m=n(39217),u=n(45695),b=n(77509),g=n(83863);const _=1e3,h=1e3,f=10,A="iframe_errors";function E(t,e){const{__:n}=(0,p.s9)(),E=(0,u.QC)(),v=(0,a.aD)(t),{error:w}=(0,l.hN)(),O=(0,i.useRef)(0),x=(0,i.useRef)(!1),T=(0,d.d4)(c.C1),I=(0,i.useCallback)((t=>new Promise(((e,n)=>{const i=E.addListener(o.Ru.SANDBOX_READY,(()=>{i.dispose(),e()}));t&&setTimeout((()=>{i.dispose(),n("timeout")}))}))),[E]),y=(0,i.useCallback)((i=>{I(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,f),future:v.getFuture(),errorResolved:!x.current,text:t.getValue(),message:i.message,stack:i.stack,userId:null===T||void 0===T?void 0:T.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(A,s).catch((t=>console.log(t))),x.current=!1}}),h)}}))}))}),[v,t,w,null===T||void 0===T?void 0:T.id,null===e||void 0===e?void 0:e.id,n,I]);(0,r.A)(o.Ru.APPLICATION_DOMPARSER_ERROR,y),(0,i.useEffect)((()=>{let n=null,i=0;function a(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 r=!1;const l=new b.j;return l.addDisposable((0,g.Og)(t,(t=>(async t=>{if(r)await E.sendAsync(o.Ru.SANDBOX_UPDATE_ENTITY,{edits:[a(t)],guid:e.renderGuid});else if(n)n.push(t);else{n=[t];do{const t=n.splice(0,n.length);await E.sendAsync(o.Ru.SANDBOX_UPDATE_ENTITY,{edits:t.map(a),guid:e.renderGuid})}while(n.length);n=null}})(t).catch((t=>console.log(t)))))),l.addDisposable(E.addListener(o.Ru.APPLICATION_UPDATE_ENTITY,(function({guid:n,edits:o,pushUndoStop:a}){if(t&&n===e.renderGuid)try{r=!0;const e=(0,s.yc)();let n=e.canUndo(t.uri),l=e.canRedo(t.uri);const d=o.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}}}));a||n||l?t.pushEditOperations([],d,(()=>null)):t.applyEdits(d),!1!==a&&(i&&clearTimeout(i),i=setTimeout((()=>{t.pushStackElement(),i=0}),_))}finally{r=!1}}))),()=>{l.dispose(),i&&clearTimeout(i)}}),[t,E,e.renderGuid])}},32411:(t,e,n)=>{"use strict";n.d(e,{$Z:()=>m,TW:()=>c,aD:()=>p,fn:()=>u,kx:()=>r});var i=n(70609),s=n(92810),o=n(71070),a=n(11305);const r=(0,s.createContext)(null),l={editorWorkerService:"editor.worker.js",html:"html.worker.js",css:"css.worker.js",typescript:"ts.worker.js",json:"json.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"};function d(t,e){/^(\/\/)/.test(t)&&(t=window.location.protocol+t);var n=new Blob(["/*"+e+'*/importScripts("'+t+'");'],{type:"application/javascript"});return URL.createObjectURL(n)}function c(t){const e=(0,i.yc)(),[n,o]=(0,s.useState)({canUndo:e.canUndo(t.uri),canRedo:e.canRedo(t.uri)});return(0,s.useEffect)((()=>{const n=t.onDidChangeContent((()=>{setTimeout((()=>o({canUndo:e.canUndo(t.uri),canRedo:e.canRedo(t.uri)})))}));return()=>{n.dispose()}}),[t,e]),n}function p(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 a.Ov;return n instanceof a.Ov?n:a.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 m(t="",e="html"){const n=o.editor.createModel(t,e);return n.setEOL(o.editor.EndOfLineSequence.LF),n}function u(){return(0,s.useContext)(r)}useblocksMonacoEnvironment.getWorkerUrl=(t,e)=>{var i=n.p,s=(i?i.replace(/\/$/,"")+"/":"")+l[e],o=new URL(s.startsWith("/")?window.location.origin+s:s),a=o.protocol;if("http:"===a||"https:"===a){if(o.protocol!==window.location.protocol||o.hostname!==window.location.hostname)return d(s,e);if("localhost"===o.hostname&&(o.port||"80")!==(window.location.port||"80"))return d(s,e)}else if("file:"===a)return d(s,e);return s}},83863:(t,e,n)=>{"use strict";n.d(e,{Og:()=>a,SF:()=>o,po:()=>s});const i=new Set;function s(t){return i.add(t),{dispose(){o(t)}}}function o(t){i.delete(t)}function a(t,e){let n=t.getVersionId(),s=[];const o=t.onDidChangeContent((o=>{if(o.versionId>n+1){let a=t.onDidChangeContent((r=>{if(o.versionId===n+1)try{i.has(t)||e(o)}catch(l){console.log(l)}finally{n=o.versionId;let t=s.indexOf(a);t>=0&&s.splice(t,1),a.dispose()}}));s.push(a)}else try{i.has(t)||e(o)}catch(a){console.log(a)}finally{n=o.versionId}}));return{dispose:()=>{o.dispose(),s.forEach((t=>t.dispose()))}}}},70609:(t,e,n)=>{"use strict";n.d(e,{D0:()=>a,yc:()=>r});var i=n(50051),s=n(75793),o=n(24554);function a(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 r(){return t=o.$D,s.QE.get(t);var t}},71157:(t,e,n)=>{"use strict";n.d(e,{Gy:()=>m,O5:()=>g,hN:()=>b,x_:()=>u});var i=n(13522),s=n(93982),o=n(92810),a=n(33206),r=n(13329),l=n(28316),d=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}=a.A.useApp(),n=(0,o.useCallback)(((n,i)=>{n.type||(n={...n,type:"info"}),t.fire((0,d.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]),r=(0,o.useCallback)(((t,e)=>n({...t,type:"error"},e)),[n]),l=(0,o.useCallback)(((t,e)=>n({...t,type:"success"},e)),[n]),m=(0,o.useCallback)(((t,e)=>n({...t,type:"warning"},e)),[n]),u=(0,o.useCallback)(((t,e,n,i,s=p)=>{var o,a;n&&r({id:t,data:e,message:n.data instanceof Error?"":(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(o=n.data)||void 0===o?void 0:o.code)||n.status||n}}),description:(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(a=n.data)||void 0===a?void 0:a.message)||n.error}}),placement:s,innerException:(null===n||void 0===n?void 0:n.data)instanceof Error?n.data:n},i)}),[r]);return(0,o.useMemo)((()=>({notify:n,success:l,error:r,warning:m,fromError:u})),[n,l,r,m,u])}function g(){const{notify:t}=b();(0,r.D3)(l.Sb,t)}},23287:(t,e,n)=>{"use strict";n.d(e,{CY:()=>r,s9:()=>l});var i=n(92810),s=n(42108);function o(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 a=(0,i.createContext)(o(s.y3));function r(t){const{children:e,i18n:n=s.y3}=t,[,r]=(0,i.useReducer)((()=>[]),[]);(0,i.useEffect)((()=>n.subscribe(r)),[n]);const l=(0,i.useMemo)((()=>o(n)),[n]);return(0,i.createElement)(a.Provider,{value:l},e)}const l=()=>(0,i.useContext)(a)},42068:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o,c:()=>a});var i=n(92810),s=n(32464);const o=(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)(),o=(0,i.useCallback)((()=>{const t=n.current;t&&(0,s.eF)(t.halt)}),[]);(0,i.useEffect)((()=>()=>o()),[o]);const a=(0,i.useCallback)(t,e);return[(0,i.useCallback)(((...t)=>{o();const e=(0,s.eF)((()=>a(...t)));return n.current=e,e}),[o,a]),o]}},69156:(t,e,n)=>{"use strict";n.d(e,{A5:()=>c,FN:()=>d,Hk:()=>l,c8:()=>p});var i=n(92810),s=n(85163),o=n(45695);const a=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]"),r=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=light]"),l=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),[...r].forEach((t=>{t.media=e})),[...a].forEach((t=>{t.media=n}))},d=(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,o.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 o(t){return e=>s(e,t)}function a(t){return e=>s(e,((e,n)=>e.hasOwnProperty("previous")?t(e.previous,n):t(e,n)))}function r(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:()=>r,PI:()=>a,SA:()=>s,SC:()=>o,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 o;for(const a of Object.keys(n)){const r=n[a];"object"===typeof r&&r?(r._keyframe&&i(r,(t=>e.add(t))),s[a]=r):(o||(o=s[t]={},e.add(o)),o[a]=r)}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:()=>l});var i=n(92810),s=n(45934),o=n(64617),a=n(17581),r=n(65983);const l=()=>{const t=(0,s.wA)(),e=(0,s.d4)(r.zn);let n=(0,o.zy)();(0,i.useEffect)((()=>{/emails\/[0-9]+$/.test(n.pathname)||e&&t(a.GY.util.invalidateTags([{type:"Emails",id:+e}]))}),[n,t,e])}},64037:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(92810),s=n(45695);function o(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:()=>l});var i=n(92810),s=n(64617),o=n(45934),a=n(86286),r=n(84568);const l=t=>{const e=(0,o.d4)(a.C1),[n,l]=(0,i.useState)({owner:!1,admin:!1}),d=(0,s.KC)(),{data:c}=(0,r.fo)(t,{skip:!t||!e.id||!(null!==d&&void 0!==d&&d.isUninitialized)}),p=(null===d||void 0===d?void 0:d.data)||c;return(0,i.useEffect)((()=>{if(p){var t,n;const{owner:i,admins:s,users:o}=p.members,a=s?s.map((t=>t.ID)):s,r=o?o.map((t=>t.ID)):o;l({owner:(null===(t=i.ID)||void 0===t?void 0:t.toString())===(null===(n=e.id)||void 0===n?void 0:n.toString()),admin:a&&a.includes(e.id),user:r&&r.includes(e.id)})}}),[p,e.id]),n}},3289:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(92810),s=n(45934),o=n(64617),a=n(87790),r=n(85163),l=n(90070);const d=()=>{const t=(0,s.wA)(),e=(0,l.p6)(),n=(0,s.d4)(a.Sl);let d=(0,o.zy)();(0,i.useEffect)((()=>{d.pathname.endsWith("/new")||n&&(t((0,a.X8)()),e.remove(r.A9.em_new_block))}),[d,n,t,e])}},19366:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(92810),s=n(45934),o=n(64617),a=n(8493),r=n(85163),l=n(90070);const d=()=>{const t=(0,l.p6)(),e=(0,s.wA)(),n=(0,s.d4)(a.$S);let d=(0,o.zy)();(0,i.useEffect)((()=>{d.pathname.endsWith("/new")||(t.remove(r.A9.em_new_email),t.remove(r.A9.em_template_email),n&&e((0,a.Et)()))}),[d,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/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQz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j359xh1tWiqggfdUCmcz9ZivZ7+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.34a9404248018e7465b3.html","l5":"iframe-eblock.34a9404248018e7465b3.html"}')}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9420],{7760:(e,a,l)=>{l.d(a,{A9:()=>g,Ay:()=>C,DL:()=>A,Dz:()=>c,Fv:()=>h,JV:()=>y,Up:()=>v,b9:()=>T,eX:()=>m,gm:()=>w,iy:()=>F,nJ:()=>b,om:()=>u,qX:()=>B,rc:()=>p,vs:()=>r});var t=l(90536),i=l(31770),o=l(55701);const d=(0,i.ur)({invalidateBlockId:null,isCodeMode:!1,codeModeDirection:"right",editorThemeColor:"light",isSettingsDisabled:!1,settings:{width:""},elementSettings:{},searchFilters:{},block:{id:void 0,isNew:!1,subject:"",description:"",html:"",project:void 0,project_title:"",project_author:void 0,tags:[],type:"Other",title:null,isAmp:!1},monacoDidMount:!1}),n="blockSlice",s=(0,t.createSlice)({name:n,initialState:d,reducers:{switchCodeMode:e=>{e.isCodeMode=!e.isCodeMode},setEditorThemeColor:(e,a)=>{e.editorThemeColor=a.payload},setBlockSettings:(e,a)=>{Object.assign(e,{...e,settings:a.payload,isSettingsDisabled:!1})},setBlockSettingsDisable:(e,a)=>{e.isSettingsDisabled=a.payload},setElementSettings:(e,a)=>{e.elementSettings=a.payload},setSearchFilters:(e,a)=>{e.searchFilters=a.payload},setBlockHtml:(e,a)=>{e.block.html=a.payload},resetBlockSlice:()=>d,setBlockIsAmp:(e,a)=>{e.block.isAmp=a.payload}},extraReducers:e=>{e.addMatcher((e=>"blocksApi/queries/queryResultPatched"===e.type),((e,a)=>{var l,t;const i=a.payload.queryCacheKey.match(/\(([0-9]+)\)/),o=null===(l=a.payload)||void 0===l?void 0:l.patches[0];if(null!==o&&void 0!==o&&null!==(t=o.path)&&void 0!==t&&t[0]&&(e.block[null===o||void 0===o?void 0:o.path[0]]=o.value),null!==i&&void 0!==i&&i[1]&&(e.invalidateBlockId=i[1]),a.payload.queryCacheKey.startsWith("getBlock")){var d,n;const l=null===(d=a.payload)||void 0===d?void 0:d.patches[0];null!==l&&void 0!==l&&null!==(n=l.path)&&void 0!==n&&n[0]&&(e.block[null===l||void 0===l?void 0:l.path[0]]=l.value)}})),e.addMatcher((e=>"blocksApi/invalidateTags"===e.type),((e,a)=>{if(a.payload[0].id===+e.invalidateBlockId)return{...d,isCodeMode:null===e||void 0===e?void 0:e.isCodeMode,codeModeDirection:e.codeModeDirection}})),e.addMatcher(o.VM.endpoints.editBlock.matchFulfilled,((e,{payload:a})=>{e.invalidateBlockId=null,e.block={...e.block,...a,renderGuid:e.block.renderGuid}})),e.addMatcher(o.VM.endpoints.autoSaveBlock.matchFulfilled,((e,a)=>{var l,t;(null===e||void 0===e||null===(l=e.block.id)||void 0===l?void 0:l.toString())===(null===(t=a.payload.id)||void 0===t?void 0:t.toString())&&(e.block.html=a.payload.html)})),e.addMatcher(o.VM.endpoints.getBlock.matchFulfilled,((e,{payload:a})=>{e.block={...d.block,...a}}))}}),{switchCodeMode:r,setEditorThemeColor:m,setBlockSettings:c,setElementSettings:g,setBlockSettingsDisable:p,setSearchFilters:u,setBlockHtml:A,resetBlockSlice:b,setBlockIsAmp:E}=s.actions,h=e=>e[n].isCodeMode,v=e=>e[n].editorThemeColor,y=e=>e[n].settings,B=e=>e[n].elementSettings,F=e=>e[n].isSettingsDisabled,T=e=>e[n].searchFilters,w=e=>e[n].block,C=s},34524:(e,a,l)=>{l.d(a,{Ay:()=>y,D2:()=>u,FC:()=>c,LZ:()=>A,NK:()=>g,NP:()=>b,dV:()=>v,qM:()=>E,ux:()=>h,wK:()=>p});var t=l(90536),i=l(55701),o=l(49211),d=l(85163);const n=(0,l(31770).ur)({blocksTotal:null,blocksTotalPages:null,parentEmailBlocksTotal:null,parentEmailBlocksTotalPages:null,templateBlocks:[],templateBlocksTotal:null,templateBlocksTotalPages:null,elementsView:!d.EW.isPlugin&&o.A.get(d.A9.em_elements_view)||d.Y$,elementsList:[],customFolders:{},blocksTrashTotal:0,elementsTrashList:[]}),s="blocksPageSlice",r=(0,t.createSlice)({name:s,initialState:n,reducers:{resetPagesAndTotal:()=>n,resetElementsList:e=>{e.elementsList=[]},toggleElementsView:(e,a)=>{e.elementsView=a.payload},removeBlockFromList:(e,{payload:a})=>{var l;let t=e.customFolders;a.folder!==d.y2&&null!==(l=t[a.folder])&&void 0!==l&&l.list&&(t[a.folder]={...t[a.folder],list:t[a.folder].list.filter((e=>e.id!==a.emailId)),total:t[a.folder].total-1},e.customFolders=t)}},extraReducers:e=>{e.addMatcher(i.VM.endpoints.getBlocks.matchFulfilled,((e,{meta:a,payload:l})=>{var t,i,o,d,n,s,r,m;const c=null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-Total"),g="trash"===(null===(i=a.arg.originalArgs)||void 0===i?void 0:i.status),p=!(null===(o=a.arg.originalArgs)||void 0===o||null===(d=o.name)||void 0===d||!d.length),u=null===(n=a.arg.originalArgs)||void 0===n?void 0:n.page,A=(null===(s=a.arg.originalArgs)||void 0===s?void 0:s.folderTag)||(null===(r=a.arg.originalArgs)||void 0===r||null===(m=r.tags)||void 0===m?void 0:m[0]);g?(p||(e.blocksTrashTotal=c),e.elementsTrashList=l):A?e.customFolders={...e.customFolders,[A]:{list:l,page:u,total:c}}:(a.arg.originalArgs.tags||p||(e.blocksTotal=c),e.elementsList=l)})),e.addMatcher(i.VM.endpoints.getParentEmailBlocks.matchFulfilled,((e,{meta:a})=>{var l,t;const i=null===(l=a.baseQueryMeta)||void 0===l?void 0:l.response.headers.get("X-WP-Total"),o=null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-TotalPages");e.parentEmailBlocksTotal=i,e.parentEmailBlocksTotalPages=o})),e.addMatcher(i.VM.endpoints.getTemplateBlocks.matchFulfilled,((e,{meta:a,payload:l})=>{var t,i;const o=null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-Total"),d=null===(i=a.baseQueryMeta)||void 0===i?void 0:i.response.headers.get("X-WP-TotalPages");e.templateBlocks=l,e.templateBlocksTotal=o,e.templateBlocksTotalPages=d})),e.addMatcher(i.VM.endpoints.editBlock.matchFulfilled,((e,{payload:a})=>{e.elementsList.map((e=>{var l,t;return(null===(l=e.id)||void 0===l?void 0:l.toString())===(null===(t=a.id)||void 0===t?void 0:t.toString())?Object.assign(e,{lock:a.lock,title:a.title,blocktags:a.blocktags}):e}))}))}}),{resetPagesAndTotal:m,resetElementsList:c,toggleElementsView:g,removeBlockFromList:p}=r.actions,u=e=>e[s].blocksTotal,A=e=>e[s].templateBlocks,b=e=>e[s].customFolders,E=e=>e[s].elementsList,h=e=>e[s].elementsTrashList,v=e=>e[s].blocksTrashTotal,y=r},99751:(e,a,l)=>{l.d(a,{i:()=>o,$:()=>i});const t={pro:{config:{mode:"pro",autosaveTimeout:1e4,theme:"",themes:{},mergeTags:void 0,styles:"",revisionService:!1,headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,webversionEnabled:!0,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!0,optimizeEnabled:!0,settingsEnabled:!0,UTMEnabled:!0,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!0,formFieldBorderRadiusEnabled:!0,formFieldBoxShadowEnabled:!0,formFieldVisibilityEnabled:!0,formFieldExportAsPictureEnabled:!0,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!0,elementVideoEnabled:!0,elementAIimageEnabled:!0,elementAItextEnabled:!0,elementCarouselEnabled:!0,elementFormEnabled:!0,preventSendDataToEM:!1,imageInfoToolUrl:"",imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3,ampExportEnabled:!0,formFieldAmpVisibilityEnabled:!0,testEmails:[]},project:void 0,page:{isNew:!0,type:"email",project:0,id:""}},editor:{config:{mode:"editor",autosaveTimeout:1e4,theme:"",themes:{},mergeTags:void 0,styles:"",headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,webversionEnabled:!0,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!1,editImageControlEnabled:!0,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!0,optimizeEnabled:!0,settingsEnabled:!0,UTMEnabled:!0,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!1,formFieldBorderRadiusEnabled:!1,formFieldBoxShadowEnabled:!1,formFieldVisibilityEnabled:!1,formFieldExportAsPictureEnabled:!1,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!1,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!0,elementVideoEnabled:!0,elementAIimageEnabled:!0,elementAItextEnabled:!0,elementCarouselEnabled:!0,elementFormEnabled:!0,preventSendDataToEM:!1,imageInfoToolUrl:"",imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3,ampExportEnabled:!0,formFieldAmpVisibilityEnabled:!0,testEmails:[]},project:void 0,page:{isNew:!1,type:"email",project:0,id:""}},simple:{config:{mode:"simple",autosaveTimeout:1e4,theme:"",themes:{},mergeTags:void 0,styles:"",headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!0,optimizeEnabled:!0,settingsEnabled:!0,UTMEnabled:!1,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!1,formFieldBorderRadiusEnabled:!1,formFieldBoxShadowEnabled:!1,formFieldVisibilityEnabled:!1,formFieldExportAsPictureEnabled:!1,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!1,elementVideoEnabled:!1,elementAIimageEnabled:!0,elementAItextEnabled:!1,elementCarouselEnabled:!1,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:"",imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3,ampExportEnabled:!1,formFieldAmpVisibilityEnabled:!1,testEmails:[]},project:void 0,page:{isNew:!1,type:"email",project:0,id:""}}},i=e=>{const a=t[e];return a||t.editor},o=["mode","formFieldBorderEnabled","formFieldBorderRadiusEnabled","formFieldBoxShadowEnabled","formFieldVisibilityEnabled","formFieldExportAsPictureEnabled","formButtonFieldInsertImageEnabled","formButtonFieldVerticalAlignEnabled","formButtonFieldTextAlignEnabled","formButtonFieldBackgroundImageEnabled","formButtonFieldPaddingsEnabled","formCellFieldVerticalAlignEnabled","formCellFieldBackgroundImageEnabled","formCellFieldPaddingsEnabled","formLinkFieldInsertImageEnabled","formTableFieldBackgroundImageEnabled","formDivFieldBackgroundImageEnabled","formEmailFieldBackgroundImageEnabled"]},53204:(e,a,l)=>{l.d(a,{Ay:()=>m,M:()=>r,YT:()=>s,rI:()=>n});var t=l(90536);const i=(0,l(31770).ur)({isCollapsed:!0,isMonacoFocusing:!1}),o="defaultModePanesSlice",d=(0,t.createSlice)({name:o,initialState:i,reducers:{setMonacoFocusing:(e,a)=>{e.isMonacoFocusing=a.payload},resetPanes:()=>i}}),{resetPanes:n,setMonacoFocusing:s}=d.actions,r=e=>e[o].isMonacoFocusing,m=d},65983:(e,a,l)=>{l.d(a,{A9:()=>c,AJ:()=>b,Ay:()=>N,Bj:()=>F,CT:()=>I,G_:()=>m,HO:()=>u,Hs:()=>f,M7:()=>g,Up:()=>C,VK:()=>h,VO:()=>B,VZ:()=>D,Wm:()=>y,eX:()=>r,iy:()=>k,no:()=>v,om:()=>p,pl:()=>A,ps:()=>T,qX:()=>M,rd:()=>P,ss:()=>E,uJ:()=>S,zn:()=>w});var t=l(90536),i=l(31770),o=l(17581);const d=(0,i.ur)({invalidateEmailId:null,editorThemeColor:"light",isSettingsDisabled:!1,settings:{backgroundColor:"",backgroundImage:[{type:"url",value:""}],backgroundPositionX:"",backgroundPositionY:"",backgroundRepeat:"",textStrong:!1,textItalic:!1,textUnderline:!1},elementSettings:{},searchFilters:{},emailCommonStyles:"",saveTime:null,mobileViewActive:{shutdown:!0,styles:!0},email:{id:void 0,is_inited:!1,isNew:!1,hasAmp:!1,subject:void 0,preheader:void 0,description:"",html:"",project:void 0,project_author:"",project_title:"",tags:[],utm_parameters:{utm_source:"",utm_medium:"",utm_campaign:"",utm_term:"",utm_content:""},parent_email:null,common_styles:"",title:null,emailtags:[],isAmp:!1},emailIsEdit:!1,isCodeMode:!1,codeModeDirection:void 0,emailViewType:void 0,changeKey:null,problemsList:[],activeProblemRange:null}),n="emailSlice",s=(0,t.createSlice)({name:n,initialState:d,reducers:{setEditorThemeColor:(e,a)=>{e.editorThemeColor=a.payload},setEmailFromHistory:(e,{payload:a})=>{const l=e.email,t=void 0===a.preheader,i=void 0===a.subject;e.email={...l,html:a.html,preheader:t?l.preheader:a.preheader,subject:i?l.subject:a.subject,common_styles:void 0===a.common_styles?l.common_styles:a.common_styles}},setEmailSettings:(e,{payload:a})=>{Object.assign(e,{...e,settings:{...a},isSettingsDisabled:!1})},setEmailSettingsDisable:(e,a)=>{e.isSettingsDisabled=a.payload},setElementSettings:(e,{payload:a})=>{e.elementSettings=a},setSearchFilters:(e,a)=>{e.searchFilters=a.payload},setEmailHTML:(e,a)=>{e.email.html=a.payload},setEmailSubject:(e,a)=>{e.email.title!==e.email.subject&&(e.email.subject||e.email.title)||(e.email.title=a.payload),e.email.subject=a.payload},setEmailPreheader:(e,a)=>{e.email.preheader=a.payload},resetEmailSlice:e=>d,setEmailTitle:(e,a)=>{e.email.title=a.payload},setIsInited:(e,a)=>{e.email.is_inited=a.payload},setEmailIsAmp:(e,a)=>{e.email.isAmp=a.payload},setProblemsList:(e,a)=>{e.problemsList=a.payload},setActiveProblemRange:(e,a)=>{e.activeProblemRange=a.payload}},extraReducers:e=>{e.addMatcher((e=>"emailsApi/queries/queryResultPatched"===e.type),((e,a)=>{var l,t;const i=a.payload.queryCacheKey.match(/\("([0-9]+)"\)/),o=null===(l=a.payload)||void 0===l?void 0:l.patches[0];null!==o&&void 0!==o&&null!==(t=o.path)&&void 0!==t&&t[0]&&(e.email[null===o||void 0===o?void 0:o.path[0]]=o.value),null!==i&&void 0!==i&&i[1]&&(e.invalidateEmailId=i[1]),e.emailIsEdit=!0})),e.addMatcher((e=>"emailsApi/invalidateTags"===e.type),((e,a)=>{if(a.payload[0].id===+e.invalidateEmailId)return d})),e.addMatcher(o.GY.endpoints.editEmail.matchFulfilled,((e,{payload:a})=>{e.invalidateEmailId=null,e.email={...e.email,...a,renderGuid:e.email.renderGuid}})),e.addMatcher(o.GY.endpoints.autoSaveEmail.matchFulfilled,((e,a)=>{var l,t;(null===(l=e.email.id)||void 0===l?void 0:l.toString())===(null===(t=a.payload.id)||void 0===t?void 0:t.toString())&&(e.email.html=a.payload.html)})),e.addMatcher(o.GY.endpoints.getEmail.matchFulfilled,((e,{payload:a})=>{var l,t;e.email={...d.email,...a,is_inited:a.is_inited||(a.id===(null===(l=e.email)||void 0===l?void 0:l.id)?null===(t=e.email)||void 0===t?void 0:t.is_inited:d.email.is_inited)},e.emailIsEdit=!1}))}}),{setEditorThemeColor:r,setEmailSettings:m,setElementSettings:c,setEmailSettingsDisable:g,setSearchFilters:p,setEmailSubject:u,setEmailPreheader:A,setEmailHTML:b,resetEmailSlice:E,setEmailTitle:h,setEmailFromHistory:v,setIsInited:y,setEmailIsAmp:B,setProblemsList:F,setActiveProblemRange:T}=s.actions,w=e=>e[n].invalidateEmailId,C=e=>e[n].editorThemeColor,S=e=>e[n].settings,M=e=>e[n].elementSettings,k=e=>e[n].isSettingsDisabled,I=e=>e[n].searchFilters,f=e=>e[n].email,P=e=>e[n].problemsList,D=e=>e[n].activeProblemRange,N=s},94925:(e,a,l)=>{l.d(a,{Ay:()=>v,FC:()=>g,MY:()=>u,NK:()=>c,NP:()=>h,X:()=>p,aO:()=>E,ff:()=>m,qM:()=>A,ux:()=>b});var t=l(90536),i=l(17581),o=l(49211),d=l(85163);const n=(0,l(31770).ur)({emailsTotal:0,elementsList:[],emailsTrashTotal:0,elementsTrashList:[],customFolders:{},elementsView:!d.EW.isPlugin&&o.A.get(d.A9.em_elements_view)||d.Y$}),s="emailsPageSlice",r=(0,t.createSlice)({name:s,initialState:n,reducers:{resetPagesAndTotal:()=>n,resetElementsList:e=>{e.elementsList=[]},toggleElementsView:(e,a)=>{e.elementsView=a.payload},removeEmailFromList:(e,{payload:a})=>{var l;let t=e.customFolders;a.folder!==d.y2&&null!==(l=t[a.folder])&&void 0!==l&&l.list&&(t[a.folder]={...t[a.folder],list:t[a.folder].list.filter((e=>e.id!==a.emailId)),total:t[a.folder].total-1},e.customFolders=t)}},extraReducers:e=>{e.addMatcher(i.GY.endpoints.getEmails.matchFulfilled,((e,{meta:a,payload:l})=>{var t,i,o,d,n,s,r,m;const c=+(null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-Total"))||0,g="trash"===(null===(i=a.arg.originalArgs)||void 0===i?void 0:i.status),p=!(null===(o=a.arg.originalArgs)||void 0===o||null===(d=o.name)||void 0===d||!d.length),u=null===(n=a.arg.originalArgs)||void 0===n?void 0:n.page,A=(null===(s=a.arg.originalArgs)||void 0===s?void 0:s.folderTag)||(null===(r=a.arg.originalArgs)||void 0===r||null===(m=r.tags)||void 0===m?void 0:m[0]);g?(p||(e.emailsTrashTotal=c),e.elementsTrashList=l):A?e.customFolders={...e.customFolders,[A]:{list:l,page:u,total:c}}:(a.arg.originalArgs.tags||p||(e.emailsTotal=c),e.elementsList=l)})),e.addMatcher(i.GY.endpoints.getTemplateEmails.matchFulfilled,((e,{meta:a,payload:l})=>{var t;const i=+(null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-Total"))||0;e.elementsList=l,e.emailsTotal=i})),e.addMatcher(i.GY.endpoints.editEmail.matchFulfilled,((e,{payload:a})=>{e.elementsList.map((e=>{var l,t;return(null===(l=e.id)||void 0===l?void 0:l.toString())===(null===(t=a.id)||void 0===t?void 0:t.toString())?Object.assign(e,{lock:a.lock,title:a.title,emailtags:a.emailtags}):e}))}))}}),{resetPagesAndTotal:m,toggleElementsView:c,resetElementsList:g,removeEmailFromList:p}=r.actions,u=e=>e[s].emailsTotal,A=e=>e[s].elementsList,b=e=>e[s].elementsTrashList,E=e=>e[s].emailsTrashTotal,h=e=>e[s].customFolders,v=r},77532:(e,a,l)=>{l.d(a,{Ac:()=>u,Ay:()=>A,BK:()=>c,Uf:()=>p,Yw:()=>r,e_:()=>m,js:()=>g,tm:()=>s});var t=l(90536),i=l(31770);const o="imageSlice",d=(0,i.ur)({currentImage:"",currentBackground:"",currentImageName:""}),n=(0,t.createSlice)({name:o,initialState:d,reducers:{setCurrentImageName(e,a){e.currentImageName=a.payload},setCurrentImage(e,a){e.currentImage=a.payload},setCurrentBackground(e,a){e.currentBackground=a.payload},clearCurrentImages(e,a){e.currentImage="",e.currentBackground=""}}}),{setCurrentImage:s,setCurrentImageName:r,setCurrentBackground:m,clearCurrentImages:c}=n.actions,g=e=>e[o].currentImage,p=e=>e[o].currentImageName,u=e=>e[o].currentBackground,A=n},87790:(e,a,l)=>{l.d(a,{AS:()=>p,Ay:()=>y,Bp:()=>c,Sl:()=>v,TB:()=>A,X8:()=>b,ah:()=>h,qT:()=>g});var t=l(90536),i=l(55701),o=l(84568),d=l(35880),n=l.n(d);const s=(0,l(31770).ur)({block:{isNew:!0,subject:"",description:"",html:'<table cellspacing="0" cellpadding="0" border="0" width="100%">'+n()+"</table>",project:void 0,project_title:"",tags:[],type:"Other",title:null},hasChanged:!1}),r="newBlockSlice",m=(0,t.createSlice)({name:r,initialState:s,reducers:{setNewBlockAll:(e,{payload:{subject:a="",description:l="",renderGuid:t,html:i='<table cellspacing="0" cellpadding="0" border="0" width="100%">'+n()+"</table>",tags:o=[],type:d="Other",title:s,isAmp:r=!1}})=>{e.hasChanged||(e.hasChanged=!0),e.block.title=s,e.block.subject=a,e.block.description=l,e.block.html=i,e.block.tags=o,e.block.type=d,e.block.renderGuid=t,e.block.isAmp=r},setNewBlockTitle:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.block.title=a.payload},setNewBlockDescription:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.block.description=a.payload},setNewBlockHtml:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.block.html=a.payload},setNewBlockTags:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.block.tags=a.payload},resetNewBlockSlice:e=>({...s,block:{...s.block,project:e.block.project,project_title:e.block.project_title}}),setBlockIsAmp:(e,a)=>{e.block.isAmp=a.payload}},extraReducers:e=>{e.addMatcher(o.Nq.endpoints.getProject.matchFulfilled,((e,a)=>{e.block.project=a.payload.id,e.block.project_title=a.payload.title})),e.addMatcher(i.VM.endpoints.getBlock.matchFulfilled,(e=>({...s,block:{...s.block,project:e.block.project,project_title:e.block.project_title}})))}}),{setNewBlockAll:c,setNewBlockTitle:g,setNewBlockDescription:p,setNewBlockHtml:u,setNewBlockTags:A,resetNewBlockSlice:b,setBlockIsAmp:E}=m.actions,h=e=>e[r].block,v=e=>e[r].hasChanged,y=m},8493:(e,a,l)=>{l.d(a,{$S:()=>N,Ay:()=>j,BQ:()=>b,Et:()=>I,K3:()=>w,MZ:()=>A,P3:()=>S,TC:()=>y,TU:()=>E,Uh:()=>f,YG:()=>D,Zs:()=>v,aY:()=>B,lg:()=>P,mk:()=>M,ol:()=>C,x3:()=>h,yY:()=>T,zH:()=>k});var t=l(90536),i=l(17581),o=l(84568),d=l(85163),n=l(573),s=l.n(n),r=l(31770),m=l(71210),c=l(32269);const g=(0,r.ur)({emailtags:[],email:{isNew:!0,is_inited:!1,subject:void 0,preheader:void 0,description:"",html:s(),project:void 0,project_title:"",tags:[],utm_parameters:{utm_source:"",utm_medium:"",utm_campaign:"",utm_term:"",utm_content:""},parent_email:null,common_styles:"{}",title:"",emailtags:[],isAmp:!1},hasChanged:!1}),p="newEmailSlice",u=(0,t.createSlice)({name:p,initialState:g,reducers:{setNewEmailAll:(e,{payload:{id:a,subject:l,description:t="",preheader:i,html:o=s(),utm_parameters:{utm_source:n="",utm_medium:r="",utm_campaign:m="",utm_term:g="",utm_content:p=""}={},common_styles:u={},emailtags:A=null,renderGuid:b,title:E,_embedded:h,isAmp:v=!1}})=>{var y;e.hasChanged||(e.hasChanged=!0),e.email.isAmp=v,e.email.title=E,e.emailtags=A,e.email.subject=l,e.email.description=t,e.email.common_styles=JSON.stringify(u),e.email.preheader=i,e.email.is_template=!1,e.email.html=o,e.email.tags=(null===(y=(0,c._q)({_embedded:h},d.zh))||void 0===y?void 0:y.map((e=>e.name)))||[],e.email.renderGuid=b,e.email.parent_email=a,e.email.utm_parameters={utm_source:n,utm_medium:r,utm_campaign:m,utm_term:g,utm_content:p},e.email.common_styles=JSON.stringify(d.BD)},setNewEmailTitle:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.title=a.payload},setNewEmailSubject:(e,a)=>{e.hasChanged||e.email.subject===a.payload||(e.hasChanged=!0),e.email.title!==e.email.subject&&(e.email.subject||e.email.title)||(e.email.title=a.payload),e.email.subject=a.payload},setNewEmailPreheader:(e,a)=>{e.hasChanged||e.email.preheader===a.payload||(e.hasChanged=!0),e.email.preheader=a.payload},setNewEmailDescription:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.description=a.payload},setNewEmailIsTemplate:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.is_template=a.payload},setNewEmailHtml:(e,a)=>{e.hasChanged||(e.hasChanged=!0),a.payload&&(e.email.html=a.payload)},setNewCommonStyles:(e,a)=>{e.hasChanged||(e.hasChanged=!0),a.payload&&(e.email.common_styles=a.payload)},setNewEmailTags:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.tags=a.payload},setNewEmailUtmSource:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_source=a.payload},setNewEmailUtmMedium:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_medium=a.payload},setNewEmailUtmCampaign:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_campaign=a.payload},setNewEmailUtmTerm:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_term=a.payload},setNewEmailUtmContent:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_content=a.payload},setNewIsInited:(e,a)=>{e.email.is_inited=a.payload},setNewEmailIsAmp:(e,a)=>{e.email.isAmp=a.payload},resetNewEmailSlice:e=>({...g,email:{...g.email,guid:(0,m.l)(),project:e.email.project,project_title:e.email.project_title}})},extraReducers:e=>{e.addMatcher(o.Nq.endpoints.getProject.matchFulfilled,((e,a)=>{e.email.project=a.payload.id,e.email.project_title=a.payload.title})),e.addMatcher(i.GY.endpoints.getEmail.matchFulfilled,(e=>({...g,email:{...g.email,project:e.email.project,project_title:e.email.project_title}})))}}),{setNewEmailAll:A,setNewEmailTitle:b,setNewEmailSubject:E,setNewEmailPreheader:h,setNewEmailDescription:v,setNewEmailIsTemplate:y,setNewEmailHtml:B,setNewCommonStyles:F,setNewEmailTags:T,setNewEmailUtmSource:w,setNewEmailUtmMedium:C,setNewEmailUtmCampaign:S,setNewEmailUtmContent:M,setNewEmailUtmTerm:k,resetNewEmailSlice:I,setNewIsInited:f,setNewEmailIsAmp:P}=u.actions,D=e=>e[p].email,N=e=>e[p].hasChanged,j=u},36404:(e,a,l)=>{l.d(a,{Ay:()=>c,od:()=>r,yN:()=>m});var t=l(90536),i=l(31770),o=l(84568);const d=(0,i.ur)({project:null}),n="projectSlice",s=(0,t.createSlice)({name:n,initialState:d,reducers:{setProject:(e,{payload:a})=>{e.project=a}},extraReducers:e=>{e.addMatcher(o.Nq.endpoints.getProject.matchFulfilled,((e,{payload:a})=>{e.project={...d.project,...a}})),e.addMatcher(o.Nq.endpoints.editProject.matchFulfilled,((e,{payload:a})=>{e.project={...d.project,...a}}))}}),{setProject:r}=s.actions,m=e=>e[n].project,c=s},64936:(e,a,l)=>{l.d(a,{Ay:()=>M,Cj:()=>y,Oo:()=>b,Os:()=>h,Wz:()=>E,YF:()=>A,cL:()=>B,gU:()=>S,o8:()=>w,qf:()=>u,sB:()=>v,sK:()=>F,uM:()=>C,vW:()=>T});var t=l(90536),i=l(31770),o=l(84568),d=l(93563),n=l(85163);const s=new URLSearchParams(window.location.search),r=s.get("tag"),m=s.get("folder"),c=(0,i.ur)({activeModal:"",secondModal:"",projectsTotal:"",projectsTotalPages:"",folders:[],activeTagId:r||null,activeFolderId:m||(r?null:n.y2),activeTab:null}),g="projectsPageSlice",p=(0,t.createSlice)({name:g,initialState:c,reducers:{openModal(e,a){e.activeModal=a.payload},setActiveTab(e,a){e.activeTab=a.payload},closeModal(e){e.activeModal=""},openSecondModal(e,a){e.secondModal=a.payload},closeSecondModal(e){e.secondModal=""},setFolders(e,{payload:a}){e.folders=a},setActiveTagId(e,{payload:a}){e.activeTagId=a}},extraReducers:e=>{e.addMatcher(o.Nq.endpoints.getProjects.matchFulfilled,((e,{meta:a})=>{var l,t;const i=null===(l=a.baseQueryMeta)||void 0===l?void 0:l.response.headers.get("X-WP-Total"),o=null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-TotalPages");e.projectsTotal=i,e.projectsTotalPages=o})),e.addMatcher(d.kE.endpoints.getFolders.matchFulfilled,((e,{payload:a})=>{e.folders=a}))}}),{openModal:u,setActiveTab:A,closeModal:b,openSecondModal:E,closeSecondModal:h,setFolders:v,setActiveTagId:y}=p.actions,B=e=>e[g].activeModal,F=e=>e[g].secondModal,T=e=>e[g].projectsTotal,w=e=>e[g].folders,C=e=>e[g].activeTagId,S=e=>e[g].activeTab,M=p},39738:(e,a,l)=>{l.d(a,{Ay:()=>p,RL:()=>g,p1:()=>c,qX:()=>r});var t=l(90536),i=l(17581),o=l(55701);const d=(0,l(31770).ur)({historyData:[],elementHistoryTotalPages:1}),n="revisionHistorySlice",s=(0,t.createSlice)({name:n,initialState:d,reducers:{resetElementHistorySlice:()=>({...d}),setElementHistory:(e,a)=>{0!==a.payload.length&&(e.historyData=a.payload)}},extraReducers:e=>{e.addMatcher(i.GY.endpoints.getEmailHistory.matchFulfilled,((e,{meta:a,payload:l})=>{var t;e.elementHistoryTotalPages=+(null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-TotalPages")),a.arg.originalArgs.page&&1!==a.arg.originalArgs.page||(e.historyData=l.data||[])})),e.addMatcher(o.VM.endpoints.getBlockHistory.matchFulfilled,((e,{meta:a,payload:l})=>{var t;e.elementHistoryTotalPages=+(null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-TotalPages")),l.args.page&&1!==l.args.page||(e.historyData=l.data||[])}))}}),{resetElementHistorySlice:r}=s.actions,{setElementHistory:m}=s.actions,c=e=>e[n].historyData,g=e=>e[n].elementHistoryTotalPages,p=s},15115:(e,a,l)=>{l.d(a,{A:()=>t});const t=["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVnSURBVHgB3Zs9TCNHFMefNwalAMmRCwQUcRqULjZQ0HnpEgkJrgSapIEyRDTpwFWSAh1XQpPrKO8QNFexdBR8+EpozmmABskRLhI+7//fW6P1etce744/f5Lxrr1r5u/35s2bmeeYNAnTNBO3t7fm8/Pzt7FYLI3nNF5O4Djlvg6vF/BaAYdFHOcNwzgcGBjIW5ZVlCYQE41QZKlUWkHDszyVaFj4nPf9/f27R0dHBdGEFsGTk5O05JpEFxmEBS/IHR8fWxKRSIJbINQL3X8FwnclJKEET01Npe7v7/+W1gn18ravry8XxtW/kgaBVVceHx93cPi9tI/009PT3MjISPHq6upjIzcqC2ZASiaTf+KQLvy1tJ8EHnOjo6OJy8vLD6o3Kbm0E30PnKGl4+Bwhmj+SsXF6wp2+usBDlPS2RTQr6fria4puIvElikgvmTy+Xxg0mLUuvvh4eGddI9Y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X91FmnNeWtkylpbIpNmZ415i3NkiiGcxGdkMrCcxBkyRSD8sQXpjyWgP8Z/xkXKVP4F5xRLZ3ymA7PO+Egv7sgZX7DXEowzvtL/5MoZY78AtCuuCNb0ZnDLmspWnZrPA/MCCH2vMFNj7YsV1Ak/LMhNfwrT543wwbJd3Hzwc6ET83EEbSqZxvxGZObiPVloODy1Bmo7B9v+8ih57LECUkxtpy2L6fpHW7jgBTDt5BRODLCpaBwLBWPFkuJZ7zcEU8qnjOhjEc55qQvCj+36l663nyZm5A9ms/P034mohwAAAABJRU5ErkJggg=="]},75855:(e,a,l)=>{e.exports=l.p+"static/media/frame_dark.318d7ed5.png"},55231:(e,a,l)=>{e.exports=l.p+"static/media/frame_light.22a9b4ec.png"},47018:(e,a,l)=>{e.exports=l.p+"static/media/frame_template_gallery.85693b39.png"}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9907],{79907:(e,o,i)=>{i.d(o,{A:()=>ee});var t=i(92810),l=i(81662),d=i(95838),r=i(12280),a=i(66726),s=i(29234),n=i(2018),m=i(7744),b=i(71086),g=i(55039),u=i(43005),c=i(54316),h=i(4815),p=i(62767),x=i(11007),f=i(38883),v=i.n(f),B=i(45934),A=i(23287),j=i(47358),S=i(26238),k=i(21519),P=i(71495),R=i(49343),_=i(28381),y=i(68031),w=i(58341),N=i(24615),T=i(95955),E=i(35015),L=i(99983),I=i(18405),C=i(48513),F=i(40187),O=i(45509),V=i(34353),M=i(46929),D=i(77416),H=i(13071),W=i(78541),X=i(62303),z=i(44997),G=i(65655),Y=i(85163),U=i(47520),q=i(45695),J=i(56991),K=(i(9589),i(70082));const{Option:Q}=l.A,Z=(0,K.jsxs)(l.A,{className:"select-after",getPopupContainer:e=>e.parentNode,children:[(0,K.jsx)(Q,{value:"px",children:"px"}),(0,K.jsx)(Q,{value:"%",children:"%"})]}),{useToken:$}=d.A,ee=({elementSettings:e})=>{var o;const{__:i}=(0,A.s9)(),d=(0,q.XW)(),[f]=r.A.useForm(),[Q,ee]=(0,t.useState)({}),[oe,ie]=(0,t.useState)({}),[te,le]=(0,t.useState)(!0),[de,re]=(0,t.useState)({}),[ae,se]=(0,t.useState)({}),[ne,me]=(0,t.useState)(!0),be=(0,B.d4)(j.Ct),ge=(0,B.d4)(j.CS),ue=(0,J.rD)(),[ce,he]=(0,t.useState)(""===(null===(o=e.backgroundImage)||void 0===o?void 0:o[0].value)),pe=(0,B.d4)(j.Fv),xe=(0,B.d4)(j.yy),fe=pe&&"bottom"!==xe,{token:ve}=$(),Be=(0,t.useRef)(null),Ae=(0,t.useRef)(null),[je,Se]=(0,t.useState)(!1),[ke,Pe]=(0,t.useState)(!1),[Re,_e]=(0,t.useState)(!1),[ye,we]=(0,t.useState)(!1),[Ne,Te]=(0,t.useState)(!1),[Ee,Le]=(0,t.useState)(!1),[Ie,Ce]=(0,t.useState)(!1),[Fe,Oe]=(0,t.useState)(!1),[Ve,Me]=(0,t.useState)(!1),[De,He]=(0,t.useState)(!1),[We,Xe]=(0,t.useState)(!1),[ze,Ge]=(0,t.useState)(!1),[Ye,Ue]=(0,t.useState)(!1),[qe,Je]=(0,t.useState)(!1),[Ke,Qe]=(0,t.useState)(""),[Ze,$e]=(0,t.useState)("https://"),[eo,oo]=(0,t.useState)(),[io,to]=(0,t.useState)(!1),lo=[{label:i("Not defined"),value:"none"},{label:i("Do not repeat background (no-repeat)"),value:"no-repeat"},{label:i("Repeat background (repeat)"),value:"repeat"},{label:i("Repeat background horizontally (repeat-x)"),value:"repeat-x"},{label:i("Repeat background vertically (repeat-y)"),value:"repeat-y"}];(0,t.useEffect)((()=>{if(e){var o,i,t,l,d,r,a,s,n,m,b,g,u,c,h,p,x,v,B,A,j,S,k,P,R,_,y,w,N,T,E,L,I,C,F,O,V,M,D,H,W,X,z,G,Y,q,J,K,Q,Z,$,oe,te,de,ae,ne,be,ge,ue,ce,pe,xe,fe,ve,Be,Ae,je,ke,Re,ye,Ne,Ee,Ie,Fe,Ve,De,We,ze,Ye,qe,Ke,Qe,Ze,eo,oo,io,to,lo,ro,ao,so,no,mo,bo,go,uo,co,ho,po,xo,fo,vo,Bo,Ao,jo,So,ko,Po,Ro,_o;const yo=e.border||{},wo=e.boxShadow||{},No=e.mobileBorder||{},To=e.mobileBoxShadow||{},Eo=e.mobileBorderRadius||{},Lo=e.mobilePadding||{},Io=e.mobileBoxShadow||{},Co=e.mobileAlign||{},Fo=e.mobileBackgroundImage||[];ee(yo),ie(wo),re(No),se(To);const Oo=Object.keys(yo).find((e=>{var o,i,t;return(null===(o=yo[e])||void 0===o?void 0:o.width)||(null===(i=yo[e])||void 0===i?void 0:i.style)||(null===(t=yo[e])||void 0===t?void 0:t.color)})),Vo=Object.keys(No).find((e=>{var o,i,t;return(null===(o=No[e])||void 0===o?void 0:o.width)||(null===(i=No[e])||void 0===i?void 0:i.style)||(null===(t=No[e])||void 0===t?void 0:t.color)}));e.href&&("https://"===e.href.substring(0,8)||"http://"===e.href.substring(0,7)?$e("https://"):"mailto:"===e.href.substring(0,7)?$e("mailto:"):"tel:"===e.href.substring(0,4)?$e("tel:"):"sms:"===e.href.substring(0,4)?$e("sms:"):"ftp://"===e.href.substring(0,6)?$e("ftp://"):"skype:"===e.href.substring(0,6)?$e("skype:"):"viber:"===e.href.substring(0,6)?$e("viber:"):$e("")),f.setFieldsValue({...e,href:e.href?e.href:"https://",width:null===(o=e.width)||void 0===o?void 0:o.value,widthDim:null===(i=e.width)||void 0===i?void 0:i.dim,height:null===(t=e.height)||void 0===t?void 0:t.value,heightDim:null===(l=e.height)||void 0===l?void 0:l.dim,backgroundImage:null===(d=e.backgroundImage)||void 0===d?void 0:d[0].value,show:e.show?e.show:"all",borderPosition:Oo||"all",borderWidth:(null===(r=yo[Oo])||void 0===r?void 0:r.width)||"",borderColor:(null===(a=yo[Oo])||void 0===a?void 0:a.color)||"",borderStyle:(null===(s=yo[Oo])||void 0===s?void 0:s.style)||"",paddingTop:(0,U.ok)(null===(n=e.padding)||void 0===n?void 0:n.all)||(0,U.ok)(null===(m=e.padding)||void 0===m?void 0:m.top),paddingLeft:(0,U.ok)(null===(b=e.padding)||void 0===b?void 0:b.all)||(0,U.ok)(null===(g=e.padding)||void 0===g?void 0:g.left),paddingRight:(0,U.ok)(null===(u=e.padding)||void 0===u?void 0:u.all)||(0,U.ok)(null===(c=e.padding)||void 0===c?void 0:c.right),paddingBottom:(0,U.ok)(null===(h=e.padding)||void 0===h?void 0:h.all)||(0,U.ok)(null===(p=e.padding)||void 0===p?void 0:p.bottom),paddingLeftRight:(0,U.ok)(null===(x=e.padding)||void 0===x?void 0:x.left)||(0,U.ok)(null===(v=e.padding)||void 0===v?void 0:v.right),paddingTopBottom:(0,U.ok)(null===(B=e.padding)||void 0===B?void 0:B.top)||(0,U.ok)(null===(A=e.padding)||void 0===A?void 0:A.bottom),borderRadiusAll:(0,U.ok)(null===(j=e.borderRadius)||void 0===j?void 0:j.all),borderRadiusTopLeft:(0,U.ok)(null===(S=e.borderRadius)||void 0===S?void 0:S.topLeft),borderRadiusBottomLeft:(0,U.ok)(null===(k=e.borderRadius)||void 0===k?void 0:k.bottomLeft),borderRadiusTopRight:(0,U.ok)(null===(P=e.borderRadius)||void 0===P?void 0:P.topRight),borderRadiusBottomRight:(0,U.ok)(null===(R=e.borderRadius)||void 0===R?void 0:R.bottomRight),boxShadowInset:(0,U.ok)(null===(_=e.boxShadow)||void 0===_?void 0:_.inset)||!1,boxShadowHOffset:(0,U.ok)(null===(y=e.boxShadow)||void 0===y?void 0:y.hOffset),boxShadowVOffset:(0,U.ok)(null===(w=e.boxShadow)||void 0===w?void 0:w.vOffset),boxShadowBlurRadius:(0,U.ok)(null===(N=e.boxShadow)||void 0===N?void 0:N.blurRadius),boxShadowSpreadRadius:(0,U.ok)(null===(T=e.boxShadow)||void 0===T?void 0:T.spreadRadius),boxShadowColor:(0,U.ok)(null===(E=e.boxShadow)||void 0===E?void 0:E.color),mobileWidth:(0,U.xc)(null===(L=e.mobileWidth)||void 0===L?void 0:L.value),mobileWidthDim:null===(I=e.mobileWidth)||void 0===I?void 0:I.dim,mobileHeight:(0,U.xc)(null===(C=e.mobileHeight)||void 0===C?void 0:C.value),mobileHeightDim:null===(F=e.mobileHeight)||void 0===F?void 0:F.dim,mobileBorderPosition:Vo||"all",mobileBorderWidth:null!==(null===(O=No[Vo])||void 0===O?void 0:O.width)?null===(V=No[Vo])||void 0===V?void 0:V.width:"",mobileBorderColor:(null===(M=No[Vo])||void 0===M?void 0:M.color)||"",mobileBorderStyle:(null===(D=No[Vo])||void 0===D?void 0:D.style)||"",mobileBorderRadiusAll:(0,U.ok)(null===(H=e.mobileBorderRadius)||void 0===H?void 0:H.all),mobileRadiusTopLeft:(0,U.ok)(null!==(null===(W=e.mobileBorderRadius)||void 0===W?void 0:W.topLeft)?null===(X=e.mobileBorderRadius)||void 0===X?void 0:X.topLeft:null===(z=e.mobileBorderRadius)||void 0===z?void 0:z.all),mobileRadiusBottomLeft:(0,U.ok)(null!==(null===(G=e.mobileBorderRadius)||void 0===G?void 0:G.bottomLeft)?null===(Y=e.mobileBorderRadius)||void 0===Y?void 0:Y.bottomLeft:null===(q=e.mobileBorderRadius)||void 0===q?void 0:q.all),mobileRadiusTopRight:(0,U.ok)(null!==(null===(J=e.mobileBorderRadius)||void 0===J?void 0:J.topRight)?null===(K=e.mobileBorderRadius)||void 0===K?void 0:K.topRight:null===(Q=e.mobileBorderRadius)||void 0===Q?void 0:Q.all),mobileRadiusBottomRight:(0,U.ok)(null!==(null===(Z=e.mobileBorderRadius)||void 0===Z?void 0:Z.bottomRight)?null===($=e.mobileBorderRadius)||void 0===$?void 0:$.bottomRight:null===(oe=e.mobileBorderRadius)||void 0===oe?void 0:oe.all),mobileBoxShadowInset:(0,U.ok)(null===Io||void 0===Io?void 0:Io.inset)||!1,mobileBoxShadowHOffset:(0,U.ok)(null===Io||void 0===Io?void 0:Io.hOffset),mobileBoxShadowVOffset:(0,U.ok)(null===Io||void 0===Io?void 0:Io.vOffset),mobileBoxShadowBlurRadius:(0,U.ok)(null===Io||void 0===Io?void 0:Io.blurRadius),mobileBoxShadowSpreadRadius:(0,U.ok)(null===Io||void 0===Io?void 0:Io.spreadRadius),mobileBoxShadowColor:(0,U.ok)(null===Io||void 0===Io?void 0:Io.color),mobileAlign:(0,U.ok)(null===Co||void 0===Co?void 0:Co.value),mobileVerticalAlign:(0,U.ok)(null===(te=e.mobileVerticalAlign)||void 0===te?void 0:te.value),mobileBackgroundColor:(0,U.ok)("none"!==(null===(de=e.mobileBackgroundColor)||void 0===de?void 0:de.value)?null===(ae=e.mobileBackgroundColor)||void 0===ae?void 0:ae.value:""),mobileBackgroundImage:"none"!==(null===(ne=Fo[0])||void 0===ne?void 0:ne.value)?null===(be=Fo[0])||void 0===be?void 0:be.value:"",mobileBackgroundPositionX:(0,U.ok)(null===(ge=e.mobileBackgroundPositionX)||void 0===ge?void 0:ge.value),mobileBackgroundPositionY:(0,U.ok)(null===(ue=e.mobileBackgroundPositionY)||void 0===ue?void 0:ue.value),mobileBackgroundRepeat:null!==(ce=e.mobileBackgroundRepeat)&&void 0!==ce&&ce.value?null===(pe=e.mobileBackgroundRepeat)||void 0===pe?void 0:pe.value:"none",mobilePaddingTop:(0,U.ok)(Lo.all)||(0,U.ok)(Lo.top),mobilePaddingLeft:(0,U.ok)(Lo.all)||(0,U.ok)(Lo.left),mobilePaddingRight:(0,U.ok)(Lo.all)||(0,U.ok)(Lo.right),mobilePaddingBottom:(0,U.ok)(Lo.all)||(0,U.ok)(Lo.bottom),mobilePaddingTopBottom:(0,U.ok)(Lo.top)||(0,U.ok)(Lo.bottom),mobilePaddingLeftRight:(0,U.ok)(Lo.left)||(0,U.ok)(Lo.right),exportAsPicture:null===e||void 0===e?void 0:e.exportAsPicture,mobileFontSize:(0,U.ok)(null===(xe=e.mobileFontSize)||void 0===xe?void 0:xe.value)}),!(0,U.ok)(null===(fe=e.borderRadius)||void 0===fe?void 0:fe.all)&&((0,U.ok)(null===(ve=e.borderRadius)||void 0===ve?void 0:ve.topLeft)||(0,U.ok)(null===(Be=e.borderRadius)||void 0===Be?void 0:Be.bottomLeft)||(0,U.ok)(null===(Ae=e.borderRadius)||void 0===Ae?void 0:Ae.topRight)||(0,U.ok)(null===(je=e.borderRadius)||void 0===je?void 0:je.bottomRight))?le(!1):le(!0),(0,U.ok)(Eo.topLeft)||(0,U.ok)(Eo.bottomLeft)||(0,U.ok)(Eo.topRight)||(0,U.ok)(Eo.bottomRight)?me(!1):me(!0),he(""===(null===(ke=e.backgroundImage)||void 0===ke?void 0:ke[0].value)),(0,U.ok)(null===(Re=e.padding)||void 0===Re?void 0:Re.all)||!((0,U.ok)(null===(ye=e.padding)||void 0===ye?void 0:ye.top)||(0,U.ok)(null===(Ne=e.padding)||void 0===Ne?void 0:Ne.right)||(0,U.ok)(null===(Ee=e.padding)||void 0===Ee?void 0:Ee.bottom)||(0,U.ok)(null===(Ie=e.padding)||void 0===Ie?void 0:Ie.left))||(null===(Fe=e.padding)||void 0===Fe?void 0:Fe.top)===(null===(Ve=e.padding)||void 0===Ve?void 0:Ve.bottom)&&(null===(De=e.padding)||void 0===De?void 0:De.right)===(null===(We=e.padding)||void 0===We?void 0:We.left)?Se(!0):Se(!1),(0,U.ok)(Lo.all)||!((0,U.ok)(Lo.top)||(0,U.ok)(Lo.right)||(0,U.ok)(Lo.bottom)||(0,U.ok)(Lo.left))||Lo.top===Lo.bottom&&Lo.right===Lo.left?Pe(!0):Pe(!1),_e(!(null===(ze=yo[Oo])||void 0===ze||!ze.width)),we(!(null===(Ye=No[Vo])||void 0===Ye||!Ye.width)),Te(!(null===(qe=e.borderRadius)||void 0===qe||!qe.all)||!(null===(Ke=e.borderRadius)||void 0===Ke||!Ke.topLeft)||!(null===(Qe=e.borderRadius)||void 0===Qe||!Qe.bottomLeft)||!(null===(Ze=e.borderRadius)||void 0===Ze||!Ze.topRight)||!(null===(eo=e.borderRadius)||void 0===eo||!eo.bottomRight)),Le(!(null===(oo=e.mobileBorderRadius)||void 0===oo||!oo.all)||!(null===(io=e.mobileBorderRadius)||void 0===io||!io.topLeft)||!(null===(to=e.mobileBorderRadius)||void 0===to||!to.bottomLeft)||!(null===(lo=e.mobileBorderRadius)||void 0===lo||!lo.topRight)||!(null===(ro=e.mobileBorderRadius)||void 0===ro||!ro.bottomRight)),Ce(!!e.boxShadow),Oe(!(null===(ao=e.mobileBoxShadow)||void 0===ao||!ao.blurRadius)||!(null===(so=e.mobileBoxShadow)||void 0===so||!so.color)||!(null===(no=e.mobileBoxShadow)||void 0===no||!no.hOffset)||!(null===(mo=e.mobileBoxShadow)||void 0===mo||!mo.inset)||!(null===(bo=e.mobileBoxShadow)||void 0===bo||!bo.spreadRadius)||!(null===(go=e.mobileBoxShadow)||void 0===go||!go.vOffset)),Me(!(null===(uo=e.mobileWidth)||void 0===uo||!uo.value)||!(null===(co=e.mobileHeight)||void 0===co||!co.value)),He(!!e.backgroundColor||!(null===(ho=e.backgroundImage)||void 0===ho||!ho[0].value)||!!e.backgroundPositionY||!!e.backgroundPositionX||"repeat"!==e.backgroundRepeat||!e.backgroundRepeat),Xe(!(null===(po=e.mobileBackgroundColor)||void 0===po||!po.value)),Ge(!(null===(xo=e.mobileFontSize)||void 0===xo||!xo.value)||!!e.showOnMobile),Ue(!(null===(fo=e.padding)||void 0===fo||!fo.all)||!(null===(vo=e.padding)||void 0===vo||!vo.top)||!(null===(Bo=e.padding)||void 0===Bo||!Bo.bottom)||!(null===(Ao=e.padding)||void 0===Ao||!Ao.left)||!(null===(jo=e.padding)||void 0===jo||!jo.right)),Je(!(null===(So=e.mobilePadding)||void 0===So||!So.all)||!(null===(ko=e.mobilePadding)||void 0===ko||!ko.top)||!(null===(Po=e.mobilePadding)||void 0===Po||!Po.bottom)||!(null===(Ro=e.mobilePadding)||void 0===Ro||!Ro.left)||!(null===(_o=e.mobilePadding)||void 0===_o||!_o.right))}}),[f,e,fe]);const ro=e=>{f.setFieldValue("href",""),$e(e)};return(0,t.useEffect)((()=>{var o;to(!(null===(o=e.textReplacer)||void 0===o||!o.length))}),[e]),(0,K.jsxs)(r.A,{form:f,layout:"vertical",name:"selected_button_form",initialValues:{backgroundColor:"",backgroundImage:"",backgroundPositionX:"",backgroundPositionY:"",backgroundRepeat:"",exportAsPicture:!1,width:"",height:"",widthDim:"",heightDim:"",align:"",valign:"",border:"",boxShadow:"",show:"all",borderPosition:"",borderColor:"",borderWidth:"",borderStyle:"",paddingTop:"",paddingLeft:"",paddingRight:"",paddingBottom:"",borderRadiusAll:"",RadiusTopLeft:"",RadiusBottomLeft:"",RadiusTopRight:"",RadiusBottomRight:"",mobileWidth:"",mobileWidthDim:"",mobileHeight:"",mobileHeightDim:"",mobileBorder:"",mobileBorderPosition:"",mobileBorderColor:"",mobileBorderWidth:"",mobileBorderStyle:"",mobileBoxShadow:"",mobileAlign:"",mobileVerticalAlign:"",mobileBackgroundColor:"",mobileBackgroundImage:"",mobilePaddingTop:"",mobilePaddingLeft:"",mobilePaddingRight:"",mobilePaddingBottom:"",borderRadiusTopLeft:"",borderRadiusBottomLeft:"",borderRadiusTopRight:"",borderRadiusBottomRight:"",href:"https://"},onValuesChange:o=>{const i=f.getFieldsValue(!0),t=Object.keys(o)[0];let l;switch(Qe("%"===f.getFieldsValue(!0).widthDim?100:""),t){case"exportAsPicture":l={exportAsPicture:i.exportAsPicture};break;case"boxShadowInset":case"boxShadowHOffset":case"boxShadowVOffset":case"boxShadowBlurRadius":case"boxShadowSpreadRadius":case"boxShadowColor":l={boxShadow:{hOffset:i.boxShadowHOffset,vOffset:i.boxShadowVOffset,blurRadius:i.boxShadowBlurRadius,spreadRadius:i.boxShadowSpreadRadius,color:i.boxShadowColor,inset:i.boxShadowInset}};break;case"borderStyle":l={border:{[i.borderPosition]:{...Q[i.borderPosition],style:o[t]}}},"all"===i.borderPosition?ee((e=>({...Y.iV,[i.borderPosition]:{...e[i.borderPosition],style:o[t]}}))):ee((e=>({...e,[i.borderPosition]:{...e[i.borderPosition],style:o[t]}})));break;case"borderColor":l={border:{[i.borderPosition]:{...Q[i.borderPosition],color:o[t]}}},"all"===i.borderPosition?ee((e=>({...Y.iV,[i.borderPosition]:{...e[i.borderPosition],color:o[t]}}))):ee((e=>({...e,[i.borderPosition]:{...e[i.borderPosition],color:o[t]}})));break;case"borderWidth":l={border:{[i.borderPosition]:{...Q[i.borderPosition],width:o[t]}}},"all"===i.borderPosition?ee((e=>({...Y.iV,[i.borderPosition]:{...e[i.borderPosition],width:o[t]}}))):ee((e=>({...e,[i.borderPosition]:{...e[i.borderPosition],width:o[t]}})));break;case"borderPosition":f.setFieldsValue({borderWidth:Q[o[t]].width||"",borderColor:Q[o[t]].color||"",borderStyle:Q[o[t]].style||""});break;case"width":l={[t]:{value:o[t],dim:i.widthDim}};break;case"height":l={[t]:{value:o[t],dim:i.heightDim}};break;case"widthDim":l={width:{value:i.width,dim:o[t]}};break;case"heightDim":l={height:{value:i.height,dim:o[t]}};break;case"backgroundImage":he(""===o[t]),l={[t]:[{...e.backgroundImage[0],value:o[t]}]};break;case"paddingTop":case"paddingLeft":case"paddingRight":case"paddingBottom":l={padding:{[U.yy[t]]:+o[t]}};break;case"paddingTopBottom":l={padding:{top:+o[t],bottom:+o[t]}},i.paddingTop=i.paddingBottom=+o[t];break;case"paddingLeftRight":l={padding:{left:+o[t],right:+o[t]}},i.paddingLeft=i.paddingRight=+o[t];break;case"borderRadiusAll":case"borderRadiusTopLeft":case"borderRadiusBottomLeft":case"borderRadiusTopRight":case"borderRadiusBottomRight":l={borderRadius:{[Y.wF[t]]:+o[t]}};break;case"mobileWidth":l={[t]:{classNamePrefix:"em-mob-width-",value:o[t],dim:i.mobileWidthDim}};break;case"mobileWidthDim":l={mobileWidth:{classNamePrefix:"em-mob-width-",value:i.mobileWidth,dim:o[t]}};break;case"mobileHeight":l={[t]:{classNamePrefix:"em-mob-height-",value:o[t],dim:i.mobileHeightDim},mobileLineHeight:{classNamePrefix:"em-mob-line_height-",value:o[t],dim:i.mobileHeightDim}};break;case"mobileHeightDim":l={mobileHeight:{classNamePrefix:"em-mob-height-",value:i.mobileHeight,dim:o[t]}};break;case"mobileBorderStyle":l={mobileBorder:{[i.mobileBorderPosition]:{...de[i.mobileBorderPosition],style:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}}},"all"===i.mobileBorderPosition?re((e=>({...Y.iV,[i.mobileBorderPosition]:{...e[i.mobileBorderPosition],style:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}}))):re((e=>({...e,[i.mobileBorderPosition]:{...e[i.mobileBorderPosition],style:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}})));break;case"mobileBorderColor":l={mobileBorder:{[i.mobileBorderPosition]:{...de[i.mobileBorderPosition],color:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}}},"all"===i.mobileBorderPosition?re((e=>({...Y.iV,[i.mobileBorderPosition]:{...e[i.mobileBorderPosition],color:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}}))):re((e=>({...e,[i.mobileBorderPosition]:{...e[i.mobileBorderPosition],color:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}})));break;case"mobileBorderWidth":l={mobileBorder:{[i.mobileBorderPosition]:{...de[i.mobileBorderPosition],width:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}}},"all"===i.mobileBorderPosition?re((e=>({...Y.iV,[i.mobileBorderPosition]:{...e[i.mobileBorderPosition],width:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}}))):re((e=>({...e,[i.mobileBorderPosition]:{...e[i.mobileBorderPosition],width:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}})));break;case"mobileBorderPosition":f.setFieldsValue({mobileBorderWidth:de[o[t]].width||"",mobileBorderColor:de[o[t]].color||"",mobileBorderStyle:de[o[t]].style||""});break;case"mobileBorderRadiusAll":case"mobileRadiusTopLeft":case"mobileRadiusBottomLeft":case"mobileRadiusTopRight":case"mobileRadiusBottomRight":l={mobileBorderRadius:{[U.NW[t]]:o[t],classNamePrefix:"em-mob-border_radius_"+U.NW[t]+"-"}};break;case"mobileBoxShadowInset":case"mobileBoxShadowHOffset":case"mobileBoxShadowVOffset":case"mobileBoxShadowBlurRadius":case"mobileBoxShadowSpreadRadius":case"mobileBoxShadowColor":l={mobileBoxShadow:{hOffset:i.mobileBoxShadowHOffset,vOffset:i.mobileBoxShadowVOffset,blurRadius:i.mobileBoxShadowBlurRadius,spreadRadius:i.mobileBoxShadowSpreadRadius,color:i.mobileBoxShadowColor,inset:i.mobileBoxShadowInset,classNamePrefix:"em-mob-box_shadow-"}};break;case"mobileAlign":l={[t]:{classNamePrefix:"em-mob-table_align-",value:o[t]}};break;case"mobileTextAlign":l={[t]:{classNamePrefix:"em-mob-text_align-",value:o[t]}};break;case"mobileVerticalAlign":l={[t]:{classNamePrefix:"em-mob-vertical_align-",value:o[t]}};break;case"mobileBackgroundColor":l={[t]:{classNamePrefix:"em-mob-background_color-",value:o[t]}};break;case"mobileBackgroundPositionX":l={[t]:{classNamePrefix:"em-mob-background_position_x-",value:o[t]}};break;case"mobileBackgroundPositionY":l={[t]:{classNamePrefix:"em-mob-background_position_x-",value:o[t]}};break;case"mobileBackgroundRepeat":l={[t]:{classNamePrefix:"em-mob-background_repeat-",value:o[t]}};break;case"mobilePaddingTop":case"mobilePaddingLeft":case"mobilePaddingRight":case"mobilePaddingBottom":l={mobilePadding:{all:null,top:""!==i.mobilePaddingTop?i.mobilePaddingTop:null,right:""!==i.mobilePaddingRight?i.mobilePaddingRight:null,bottom:""!==i.mobilePaddingBottom?i.mobilePaddingBottom:null,left:""!==i.mobilePaddingLeft?i.mobilePaddingLeft:null,classNamePrefix:"em-mob-padding_"}};break;case"mobilePaddingTopBottom":i.mobilePaddingTop=i.mobilePaddingBottom=o[t],l={mobilePadding:{all:null,top:""!==i.mobilePaddingTop?i.mobilePaddingTop:null,right:""!==i.mobilePaddingRight?i.mobilePaddingRight:null,bottom:""!==i.mobilePaddingBottom?i.mobilePaddingBottom:null,left:""!==i.mobilePaddingLeft?i.mobilePaddingLeft:null,classNamePrefix:"em-mob-padding_"}};break;case"mobilePaddingLeftRight":i.mobilePaddingLeft=i.mobilePaddingRight=o[t],l={mobilePadding:{all:null,top:""!==i.mobilePaddingTop?i.mobilePaddingTop:null,right:""!==i.mobilePaddingRight?i.mobilePaddingRight:null,bottom:""!==i.mobilePaddingBottom?i.mobilePaddingBottom:null,left:""!==i.mobilePaddingLeft?i.mobilePaddingLeft:null,classNamePrefix:"em-mob-padding_"}};break;case"mobileFontSize":l={[t]:{classNamePrefix:"em-mob-font_size-",value:o[t],dim:i.mobileFontSizeDim}};break;case"href":let d=o[t];"https://http"===d.substring(0,12)&&(d=d.substring(8,d.length),i.href=d),l={[t]:d},"https://"===o[t].substring(0,8)||"http://"===o[t].substring(0,7)?$e("https://"):"mailto:"===o[t].substring(0,7)?$e("mailto:"):"tel:"===o[t].substring(0,4)?$e("tel:"):"sms:"===o[t].substring(0,4)?$e("sms:"):"ftp://"===o[t].substring(0,6)?$e("ftp://"):"skype:"===o[t].substring(0,6)?$e("skype:"):"viber:"===o[t].substring(0,6)?$e("viber:"):$e("");break;default:l=o}"borderPosition"!==t&&d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:l})},autoComplete:"off",className:"element-controls",children:[!fe&&(0,K.jsx)(a.A,{title:i("To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version."),placement:"bottom",children:(0,K.jsx)(s.A,{className:"selected_form-mobile-props-title",message:i("Appearance on mobile devices"),type:"info"})}),fe?(0,K.jsx)(D.A,{form:f,elementSettings:e,showAddParagraph:!1,isButton:!0}):(0,K.jsx)(K.Fragment,{children:be===Y.ND&&ge.styles?(0,K.jsx)("div",{id:"selected_element_form_mobile_props",className:"selected_form-mobile-props",children:(0,K.jsxs)("div",{className:"selected_form-mobile-props-wrapper",children:[(0,K.jsxs)(n.A,{gutter:20,style:{paddingBottom:4},children:[(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(C.A,{form:f,elementSettings:e,imgParent:!0})}),ue.formButtonFieldTextAlignEnabled&&(0,K.jsx)(m.A,{span:12,style:{textAlign:"right"},children:(0,K.jsx)(F.A,{form:f,name:"mobileTextAlign",elementSettings:e,imgParent:!0})})]}),!!e.showOnMobile&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider",style:{marginBottom:24}}),(0,K.jsx)(a.A,{trigger:["hover"],title:i("Hyperlink URL"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"href",style:{marginBottom:ve.formItemMarginBottomMD+4},children:(0,K.jsx)(g.A,{addonBefore:(0,K.jsx)(U.Ai,{linkProtocol:Ze,handleLinkProtocolsChange:ro,__:i}),placeholder:i("Hyperlink URL"),allowClear:!0,prefix:(0,K.jsx)(U.RM,{linkProtocol:Ze})})})})]}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Text")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Ge((e=>!e)),ze&&(o.mobileFontSize="",d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileFontSize:{value:null,dim:"px",classNamePrefix:"em-mob-font_size-"}}}))}))},children:ze?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),ze&&(0,K.jsxs)(K.Fragment,{children:[!!e.showOnMobile&&(0,K.jsx)(M.A,{form:f,elementSettings:e,setLinkProtocol:$e,showAddParagraph:!1,isButton:!0}),(0,K.jsx)(n.A,{gutter:10,style:{marginBottom:4},children:(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(G.A,{})})})]}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),ue.formButtonFieldPaddingsEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Padding")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Je((e=>!e)),qe&&(o.mobilePaddingLeftRight="",o.mobilePaddingLeft="",o.mobilePaddingRight="",o.mobilePaddingTopBottom="",o.mobilePaddingTop="",o.mobilePaddingBottom="",d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobilePadding:{all:null,top:null,right:null,bottom:null,left:null,classNamePrefix:"em-mob-padding_"}}}))}))},children:qe?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),qe&&(0,K.jsx)(n.A,{gutter:10,style:{paddingBottom:8},children:(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(V.A,{form:f,elementSettings:e,mobilePaddingsExt:ke,setMobilePaddingsExt:Pe})})}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"})]}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Size")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Me((e=>!e)),Ve&&(o.mobileWidth="",o.mobileHeight="",d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileWidth:{value:null,dim:"px",classNamePrefix:"em-mob-width-"},mobileHeight:{value:null,dim:"px",classNamePrefix:"em-mob-height-"}}}))}))},children:Ve?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Ve&&(0,K.jsxs)(n.A,{gutter:10,style:{paddingBottom:8},children:[(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)("div",{style:{marginBottom:2*ve.formItemMarginBottomXS},children:(0,K.jsx)(a.A,{title:i("Width"),placement:"bottom",children:(0,K.jsx)(N.A,{form:f,name:"mobileWidth",elementSettings:e})})})}),(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)("div",{style:{marginBottom:2*ve.formItemMarginBottomXS},children:(0,K.jsx)(a.A,{title:i("Height"),placement:"bottom",children:(0,K.jsx)(T.A,{form:f,name:"mobileHeight",elementSettings:e})})})})]}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Background")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Xe((e=>!e)),o.mobileBackgroundColor=We?"":e.commonStyles.buttons.backgroundColor||"#1C52DC",d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBackgroundColor:{classNamePrefix:"em-mob-background_color-",value:o.mobileBackgroundColor}}})}))},children:We?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),We&&(0,K.jsx)(K.Fragment,{children:(0,K.jsx)("div",{style:{marginBottom:(ue.formButtonFieldBackgroundImageEnabled,ve.formItemMarginBottomMD+4)},children:(0,K.jsx)(O.A,{form:f,elementSettings:e,label:i("Background color")})})}),ue.formFieldBorderEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Borders")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{we((e=>!e)),ye&&(o.mobileBorderWidth=null,o.mobileBorderColor="",o.mobileBorderStyle=""),re((e=>({...Y.iV,[o.mobileBorderPosition]:{...e[o.mobileBorderPosition],width:o.mobileBorderWidth,color:o.mobileBorderColor,style:o.mobileBorderStyle}}))),d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorder:{all:{color:o.mobileBorderColor,style:o.mobileBorderStyle,width:o.mobileBorderWidth,classNamePrefix:"em-mob-border_"+o.mobileBorderPosition+"-"}}}})}))},children:ye?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),ye&&(0,K.jsx)("div",{style:{marginBottom:4},children:(0,K.jsx)(E.A,{mobileBorders:de})})]}),ue.formFieldBorderRadiusEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Border radius")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Le((e=>!e)),o.mobileBorderRadiusAll=Ee?null:5,d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorderRadius:{all:o.mobileBorderRadiusAll,classNamePrefix:"em-mob-border_radius_all-"}}})}))},children:Ee?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Ee&&(0,K.jsx)("div",{style:{marginBottom:4},children:(0,K.jsx)(L.A,{form:f,oneMobileBorderRadiusValue:ne,setOneMobileBorderRadiusValue:me})})]}),ue.formFieldBoxShadowEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Box shadow")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Oe((e=>!e)),Fe?(o.mobileBoxShadowInset=!1,o.mobileBoxShadowHOffset=null,o.mobileBoxShadowVOffset=null,o.mobileBoxShadowBlurRadius=null,o.mobileBoxShadowSpreadRadius=null,o.mobileBoxShadowColor=""):(o.mobileBoxShadowInset=!1,o.mobileBoxShadowHOffset=5,o.mobileBoxShadowVOffset=5,o.mobileBoxShadowBlurRadius=10,o.mobileBoxShadowSpreadRadius=-5,o.mobileBoxShadowColor="#000000"),d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBoxShadow:{blurRadius:o.mobileBoxShadowBlurRadius,color:o.mobileBoxShadowColor,hOffset:o.mobileBoxShadowHOffset,inset:o.mobileBoxShadowInset,spreadRadius:o.mobileBoxShadowSpreadRadius,vOffset:o.mobileBoxShadowVOffset,classNamePrefix:"em-mob-box_shadow-"}}})}))},children:Fe?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Fe&&(0,K.jsx)("div",{style:{marginBottom:4},children:(0,K.jsx)(I.A,{mobileBoxShadow:ae,form:f,elementSettings:e})})]}),ue.formFieldAmpVisibilityEnabled&&e.ampShow&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsx)("div",{className:"form-group-title",children:i("AMP visibility")}),(0,K.jsx)(n.A,{gutter:20,style:{marginBottom:4},children:(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(W.A,{})})})]}),ue.formFieldAmpVisibilityEnabled&&e.isAmp&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsx)("div",{className:"form-group-title",children:i("AMP visibility")}),(0,K.jsx)(n.A,{gutter:20,style:{marginBottom:4},children:(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(W.A,{})})})]})]})}):(0,K.jsxs)("div",{id:"selected_element_form_desktop_props",children:[(0,K.jsx)(s.A,{className:"selected_form-desktop-props-title",message:i("Appearance on mobile devices"),type:"info"}),(0,K.jsxs)("div",{className:"selected_form-props-wrapper",children:[(0,K.jsxs)(n.A,{gutter:20,style:{paddingBottom:4},children:[(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(_.A,{form:f,elementSettings:e})}),ue.formButtonFieldTextAlignEnabled&&(0,K.jsx)(m.A,{span:12,style:{textAlign:"right"},children:(0,K.jsx)(y.A,{form:f,name:"textAlign",elementSettings:e})})]}),(0,K.jsx)(b.A,{className:"selected-td-form__divider",style:{marginBottom:24}}),(0,K.jsx)(a.A,{trigger:["hover"],title:i("Hyperlink URL"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"href",style:{marginBottom:ve.formItemMarginBottomXS},children:(0,K.jsx)(g.A,{addonBefore:(0,K.jsx)(U.Ai,{linkProtocol:Ze,handleLinkProtocolsChange:ro,__:i}),placeholder:i("Hyperlink URL"),allowClear:!0,onSelect:({target:e})=>e&&oo(e),prefix:(0,K.jsx)(U.RM,{linkProtocol:Ze})})})}),(0,K.jsxs)(n.A,{gutter:10,children:[(0,K.jsx)(m.A,{span:3,children:(0,K.jsx)(a.A,{title:i("Text replacer"),placement:"bottom",getPopupContainer:e=>e.closest(".email-pane__collapse-wrapper"),children:(0,K.jsx)(u.Ay,{className:v()("selected-td-form__button ant-form-item",{"selected-td-form__button--active":io}),icon:(0,K.jsx)(X.A,{icon:"Replacer",className:"selected-td-form__icon-radius"}),onClick:()=>{to(!io),io?(f.setFieldValue("textReplacer",""),d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{textReplacer:""}})):setTimeout((()=>Be.current.focus()))},ref:Ae})})}),(0,K.jsx)(m.A,{span:21,children:io&&(0,K.jsx)(a.A,{trigger:["hover"],title:i("Text"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"textReplacer",children:(0,K.jsx)(g.A,{placeholder:i("The code that will replace this text"),allowClear:!0,prefix:(0,K.jsx)("span",{className:"addon-text-content",children:"Text"}),onChange:e=>{""!==e.target.value&&Ae.current.classList.add("selected-td-form__button--active")},ref:Be})})})})]}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),ue.formButtonFieldPaddingsEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Padding")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Ue((e=>!e)),Ye&&(o.paddingLeftRight="",o.paddingLeft="",o.paddingRight="",o.paddingTopBottom="",o.paddingTop="",o.paddingBottom="",d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{padding:{all:0}}}))}))},children:Ye?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Ye&&(0,K.jsx)(n.A,{gutter:ve.marginSM,style:{marginBottom:4},children:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(m.A,{span:10,style:{width:156,flex:"auto",maxWidth:"none"},children:[(0,K.jsx)("div",{className:"padding-collapsed",style:{display:je?"block":"none"},children:(0,K.jsx)(a.A,{title:i("Horizontal padding"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"paddingLeftRight",children:(0,K.jsx)(z.A,{min:0,placeholder:i("Horizontal"),prefix:(0,K.jsx)(X.A,{icon:"PaddingLeftRight"}),addonAfter:"px"})})})}),(0,K.jsxs)("div",{className:"padding-extended",style:{display:je?"none":"block"},children:[(0,K.jsx)(a.A,{trigger:["hover"],title:i("Left padding"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"paddingLeft",style:{marginBottom:ve.formItemMarginBottomXS},children:(0,K.jsx)(z.A,{min:0,placeholder:i("Left"),prefix:(0,K.jsx)(X.A,{icon:"PaddingLeft"}),addonAfter:"px"})})}),(0,K.jsx)(a.A,{trigger:["hover"],title:i("Right padding"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"paddingRight",children:(0,K.jsx)(z.A,{min:0,placeholder:i("Right"),prefix:(0,K.jsx)(X.A,{icon:"PaddingRight"}),addonAfter:"px"})})})]})]}),(0,K.jsxs)(m.A,{span:10,style:{width:156,flex:"auto",maxWidth:"none"},children:[(0,K.jsx)("div",{className:"padding-collapsed",style:{display:je?"block":"none"},children:(0,K.jsx)(a.A,{title:i("Vertical padding"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"paddingTopBottom",children:(0,K.jsx)(z.A,{min:0,placeholder:i("Vertical"),prefix:(0,K.jsx)(X.A,{icon:"PaddingTopBottom"}),addonAfter:"px"})})})}),(0,K.jsxs)("div",{className:"padding-extended",style:{display:je?"none":"block"},children:[(0,K.jsx)(a.A,{trigger:["hover"],title:i("Top padding"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"paddingTop",style:{marginBottom:ve.formItemMarginBottomXS},children:(0,K.jsx)(z.A,{min:0,placeholder:i("Top"),prefix:(0,K.jsx)(X.A,{icon:"PaddingTop"}),addonAfter:"px"})})}),(0,K.jsx)(a.A,{trigger:["hover"],title:i("Bottom padding"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"paddingBottom",children:(0,K.jsx)(z.A,{min:0,placeholder:i("Bottom"),prefix:(0,K.jsx)(X.A,{icon:"PaddingBottom"}),addonAfter:"px"})})})]})]}),(0,K.jsx)(m.A,{span:4,style:{width:45,flex:"auto",maxWidth:"none"},children:(0,K.jsx)(a.A,{title:i("Individual padding"),placement:"bottom",children:(0,K.jsx)(u.Ay,{className:v()("selected-td-form__button",{"selected-td-form__button--active":!je}),onClick:()=>{Se((e=>!e));const o=f.getFieldsValue(!0);je||(o.paddingLeftRight=o.paddingLeft,o.paddingTopBottom=o.paddingTop,o.paddingRight=o.paddingLeft,o.paddingBottom=o.paddingTop,d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{padding:{top:o.paddingTopBottom,bottom:o.paddingTopBottom,left:o.paddingLeftRight,right:o.paddingLeftRight}}}))},children:(0,K.jsx)(X.A,{icon:"PaddingSwitcher"})})})})]})}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"})]}),(0,K.jsx)("div",{className:"form-group-title",children:i("Size")}),(0,K.jsxs)(n.A,{gutter:ve.marginSM,style:{marginBottom:4},children:[(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(a.A,{title:i("Width"),placement:"left",children:(0,K.jsx)(r.A.Item,{name:"width",style:{marginBottom:ve.formItemMarginBottomXS},children:(0,K.jsx)(z.A,{min:0,max:Ke,placeholder:i("Width"),prefix:(0,K.jsx)(p.A,{}),addonAfter:(0,K.jsx)(r.A.Item,{name:"widthDim",noStyle:!0,children:Z})})})})}),(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(a.A,{title:i("Height"),placement:"left",children:(0,K.jsx)(r.A.Item,{name:"height",children:(0,K.jsx)(z.A,{min:0,placeholder:i("Height"),prefix:(0,K.jsx)(x.A,{}),addonAfter:"px"})})})})]}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsx)("div",{style:{paddingTop:ve.formItemMarginBottomMD+4,paddingBottom:4},children:(0,K.jsx)(M.A,{form:f,elementSettings:e,showAddParagraph:!1,isButton:!0,setLinkProtocol:$e,linkTarget:eo})}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Background")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{He((e=>!e)),De?(o.backgroundColor="",o.backgroundImage="",o.backgroundPositionX="",o.backgroundPositionY="",o.backgroundRepeat="none",he(!0)):o.backgroundColor="#E5E5E5",d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{backgroundColor:o.backgroundColor,backgroundImage:[{type:"url",value:o.backgroundImage}],backgroundPositionX:o.backgroundPositionX,backgroundPositionY:o.backgroundPositionY,backgroundRepeat:o.backgroundRepeat}})}))},children:De?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),De&&(0,K.jsxs)(n.A,{gutter:10,style:{marginBottom:ce?14:0},children:[(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(a.A,{trigger:["hover"],title:i("Background color"),placement:"bottom",zIndex:1,getPopupContainer:e=>e.parentNode,children:(0,K.jsx)(r.A.Item,{name:"backgroundColor",style:{marginBottom:ue.formButtonFieldBackgroundImageEnabled?ve.formItemMarginBottomXS:ve.formItemMarginBottomMD+4},children:(0,K.jsx)(S.A,{placeholder:i("Background color"),usedColors:e.usedColors})})})}),ue.formButtonFieldBackgroundImageEnabled&&(0,K.jsxs)(m.A,{span:ce?12:24,children:[(0,K.jsx)("div",{style:{paddingBottom:ce?4:0},children:(0,K.jsx)(R.A,{form:f,label:i("Background image"),name:"backgroundImage",tooltipTitle:i("Background image")})}),!ce&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(n.A,{gutter:10,children:[(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(a.A,{trigger:["hover"],title:i("Horizontal position"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"backgroundPositionX",style:{marginBottom:ve.formItemMarginBottomXS},children:(0,K.jsx)(z.A,{placeholder:i("Horizontal position"),prefix:(0,K.jsx)(X.A,{icon:"BgPositionHorizontal"})})})})}),(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(a.A,{trigger:["hover"],title:i("Vertical position"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"backgroundPositionY",style:{marginBottom:ve.formItemMarginBottomXS},children:(0,K.jsx)(z.A,{placeholder:i("Vertical position"),prefix:(0,K.jsx)(X.A,{icon:"BgPositionVertical"})})})})})]}),(0,K.jsx)(a.A,{trigger:["hover"],title:i("Background image repeat"),placement:"left",children:(0,K.jsx)(r.A.Item,{name:"backgroundRepeat",style:{marginBottom:ve.formItemMarginBottomMD+4},children:(0,K.jsx)(l.A,{placeholder:i("Please select"),options:lo,getPopupContainer:e=>e.parentNode})})})]})]})]}),ue.formFieldBorderEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Borders")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{_e((e=>!e)),Re&&(o.borderWidth=null,o.borderColor="",o.borderStyle=""),ee((e=>({...Y.iV,[o.borderPosition]:{...e[o.borderPosition],width:o.borderWidth,color:o.borderColor,style:o.borderStyle}}))),d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{border:{all:{color:o.borderColor,style:o.borderStyle,width:o.borderWidth}}}})}))},children:Re?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Re&&(0,K.jsx)("div",{style:{marginBottom:4},children:(0,K.jsx)(k.A,{borders:Q})})]}),ue.formFieldBorderRadiusEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Border radius")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Te((e=>!e)),o.borderRadiusAll=Ne?0:5,d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{borderRadius:{all:o.borderRadiusAll}}})}))},children:Ne?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Ne&&(0,K.jsx)("div",{style:{marginBottom:4},children:(0,K.jsx)(P.A,{form:f,oneBorderRadiusValue:te,setOneBorderRadiusValue:le,elementSettings:e})})]}),ue.formFieldBoxShadowEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Box shadow")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Ce((e=>!e)),Ie?(o.boxShadowInset=!1,o.boxShadowHOffset=0,o.boxShadowVOffset=0,o.boxShadowBlurRadius=0,o.boxShadowSpreadRadius=0,o.boxShadowColor=""):(o.boxShadowInset=!1,o.boxShadowHOffset=5,o.boxShadowVOffset=5,o.boxShadowBlurRadius=10,o.boxShadowSpreadRadius=-5,o.boxShadowColor="#000000"),d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{boxShadow:{blurRadius:o.boxShadowBlurRadius,color:o.boxShadowColor,hOffset:o.boxShadowHOffset,inset:o.boxShadowInset,spreadRadius:o.boxShadowSpreadRadius,vOffset:o.boxShadowVOffset}}})}))},children:Ie?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Ie&&(0,K.jsx)("div",{style:{marginBottom:4},children:(0,K.jsx)(w.A,{boxShadow:oe})})]}),ue.formFieldVisibilityEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsx)("div",{className:"form-group-title",children:i("Display control")}),(0,K.jsx)(n.A,{gutter:20,style:{marginBottom:4},children:(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(H.A,{elementSettings:e,form:f})})})]}),ue.formFieldAmpVisibilityEnabled&&e.ampShow&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsx)("div",{className:"form-group-title",children:i("AMP visibility")}),(0,K.jsx)(n.A,{gutter:20,style:{marginBottom:4},children:(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(W.A,{})})})]})]})]})})]})}}}]);
|