@emailmaker/emailmaker 1.0.57 → 1.0.59
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 +23 -23
- package/emailmaker-esm.js +1 -1
- package/emailmaker.d.ts +92 -3
- package/emailmaker.js +1 -1
- package/iframe/{iframe-eblock.27503aa002097b00f403.html → iframe-eblock.4a0a16b398aec444ac01.html} +1 -1
- package/iframe/{iframe.27503aa002097b00f403.html → iframe.4a0a16b398aec444ac01.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 +1 -1
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +1 -1
- package/plugin_idigital.html +1 -1
- package/plugin_s.html +1 -1
- package/static/css/5211.61fd92f8.css +1 -0
- package/static/js/189.367ef47a.js +1 -0
- package/static/js/2055.3cf7335a.js +1 -0
- package/static/js/2088.1d8d8417.js +1 -0
- package/static/js/2299.bd334036.chunk.js +1 -0
- package/static/js/3422.933a6573.js +1 -0
- package/static/js/4529.d148edfe.js +1 -0
- package/static/js/{7269.49adf8cd.js → 7967.d71d72d8.js} +1 -1
- package/static/js/{8458.fd859f69.js → 8458.34955e6d.js} +1 -1
- package/static/js/{8995.b91fd307.js → 8995.1e4e2d7e.js} +1 -1
- package/static/js/{emailmaker_core.2055f047.js → emailmaker_core.2b09d5b0.js} +1 -1
- package/static/js/mocks.e00c8ba6.chunk.js +1 -0
- package/translations.pot +130 -130
- package/iframe/429.js +0 -1
- package/static/css/5211.75ee8dc3.css +0 -1
- package/static/js/2055.75cd195b.js +0 -1
- package/static/js/2088.1813eba6.js +0 -1
- package/static/js/2299.a10e8024.chunk.js +0 -1
- package/static/js/3430.23763cc6.js +0 -1
- package/static/js/78.a4deb390.js +0 -1
- package/static/js/898.045789ed.js +0 -1
- package/static/js/mocks.90ebae7c.chunk.js +0 -1
- /package/static/css/{3430.8008d20d.css → 4529.8008d20d.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[7269],{88647:(t,e,n)=>{"use strict";n.d(e,{h:()=>a});var i,d=n(92810);function l(){return l=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},l.apply(null,arguments)}function r({title:t,titleId:e,...n},r){return d.createElement("svg",l({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",ref:r,"aria-labelledby":e},n),t?d.createElement("title",{id:e},t):null,i||(i=d.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 a=d.forwardRef(r);n.p},79154:(t,e,n)=>{"use strict";n.d(e,{h:()=>a});var i,d=n(92810);function l(){return l=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},l.apply(null,arguments)}function r({title:t,titleId:e,...n},r){return d.createElement("svg",l({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",ref:r,"aria-labelledby":e},n),t?d.createElement("title",{id:e},t):null,i||(i=d.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 a=d.forwardRef(r);n.p},40829:t=>{t.exports=({__:t})=>`<style em="styles">\n amp-accordion > section > * {\n background: none !important;\n padding: 0 !important;\n border: none !important;\n overflow: visible !important;\n }\n</style>\n<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <amp-accordion disable-session-states animate expand-single-section>\n <section>\n <div>\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tr>\n <td style="padding: 10px 0; border-bottom: 1px solid #CCCCCC;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;"><strong>${t("Section title")}</strong></div>\n </td>\n </tr>\n </table>\n </div>\n <div>\n <table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom">\n <tr>\n <td style="padding: 10px 0;">\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 </div>\n </section>\n </amp-accordion>\n</td></tr></table>`},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:()=>r});const i=new Date,d=new Date(+i+432e6).toISOString(),l=-(new Date).getTimezoneOffset()/60,r=t=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td align="center"><img class="em-countdown" em-cd-settings="locale=${t.replace("_","-")}&bg=FFFFFF&tp=false&color1=000000&color2=959595&size1=72&size2=28&font1=roboto&font2=roboto&border=10&delimiter=:&spacing=10&time=${d}&timezone=${l}&frames=20" src="${(t=>`https://cdt3.emcdn.ru/timer?locale=${t.replace("_","-")}&bg=FFFFFF&tp=false&color1=000000&color2=959595&size1=72&size2=28&font1=roboto&font2=roboto&border=10&delimiter=:&spacing=10&time=${d}&timezone=${l}&frames=20`)(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.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.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>`},19032:(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.p+"static/media/tg.png",n.p+"static/media/yt.png",n.p+"static/media/vk.png",n.p+"static/media/yd.png",n.p+"static/media/tw.png",n.p+"static/media/ig.png",n.p+"static/media/fb.png"].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.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>'},47520:(t,e,n)=>{"use strict";n.d(e,{AO:()=>j,Ai:()=>b,NW:()=>B,RM:()=>m,TW:()=>O,Ze:()=>M,ok:()=>N,xc:()=>D,yy:()=>S});n(92810);var i=n(81662),d=n(7228),l=n(9588),r=n(37517),a=n(73035),s=n(27071),o=n(86657),c=n(85163),p=n(70082);const m=({linkProtocol:t})=>{switch(t){case"https://":default:return(0,p.jsx)(d.A,{rev:""});case"mailto:":return(0,p.jsx)(l.A,{rev:""});case"tel:":return(0,p.jsx)(r.A,{rev:""});case"sms:":return(0,p.jsx)(a.A,{rev:""});case"ftp://":return(0,p.jsx)(s.A,{rev:""});case"skype:":return(0,p.jsx)(o.A,{rev:""})}},b=({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:u,mobileRadiusTopLeft:g,mobileRadiusBottomLeft:h,mobileRadiusTopRight:v,mobileRadiusBottomRight:f,borderRadiusBottomRight:w,borderRadiusTopRight:x,borderRadiusBottomLeft:y,borderRadiusTopLeft:A,alt:R,src:_,title:E,link:k,borderRadiusAll:T,imgReplacer:I,expanded:C}={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",expanded:"expanded"},S={paddingTop:"top",paddingLeft:"left",paddingRight:"right",paddingBottom:"bottom",mobilePaddingTop:"top",mobilePaddingLeft:"left",mobilePaddingRight:"right",mobilePaddingBottom:"bottom"},L={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},B={mobileBorderRadiusAll:"all",mobileRadiusTopLeft:"topLeft",mobileRadiusBottomLeft:"bottomLeft",mobileRadiusTopRight:"topRight",mobileRadiusBottomRight:"bottomRight"},O=(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,N=t=>t||(0===t?"0":""),D=t=>t&&"auto"!==t?t:0===t?"0":"";function j(t){var e,n,i,d,l,r,a,s,o,c,p,m,b,u,g,h,v,f,w,x;let y={...t,link:t.link?t.link:"https://",borderRadiusAll:N(null===(e=t.borderRadius)||void 0===e?void 0:e.all),borderRadiusTopLeft:N(null===(n=t.borderRadius)||void 0===n?void 0:n.topLeft),borderRadiusBottomLeft:N(null===(i=t.borderRadius)||void 0===i?void 0:i.bottomLeft),borderRadiusTopRight:N(null===(d=t.borderRadius)||void 0===d?void 0:d.topRight),borderRadiusBottomRight:N(null===(l=t.borderRadius)||void 0===l?void 0:l.bottomRight),mobileBorderRadiusAll:N(null===(r=t.mobileBorderRadius)||void 0===r?void 0:r.all),mobileRadiusTopLeft:N(null!==(null===(a=t.mobileBorderRadius)||void 0===a?void 0:a.topLeft)?null===(s=t.mobileBorderRadius)||void 0===s?void 0:s.topLeft:null===(o=t.mobileBorderRadius)||void 0===o?void 0:o.all),mobileRadiusBottomLeft:N(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:N(null!==(null===(b=t.mobileBorderRadius)||void 0===b?void 0:b.topRight)?null===(u=t.mobileBorderRadius)||void 0===u?void 0:u.topRight:null===(g=t.mobileBorderRadius)||void 0===g?void 0:g.all),mobileRadiusBottomRight:N(null!==(null===(h=t.mobileBorderRadius)||void 0===h?void 0:h.bottomRight)?null===(v=t.mobileBorderRadius)||void 0===v?void 0:v.bottomRight:null===(f=t.mobileBorderRadius)||void 0===f?void 0:f.all),show:t.show?t.show:"all",altSrc:t.src};var A,R;t.video&&(y.videoPlayButton=null!==(A=t.video.playButton)&&void 0!==A?A:"youtube_red",y.videoSource=null!==(R=t.video.source)&&void 0!==R?R:"");if((null===(w=t.carouselImages)||void 0===w?void 0:w.length)>0){var _;let e={};null===(_=t.carouselImages)||void 0===_||_.map(((t,n)=>(Object.keys(t).forEach((i=>{e[i+"_"+n]=t[i]})),!0))),y.images=e}if((null===(x=t.sections)||void 0===x?void 0:x.length)>0){var E;let e=[];null===(E=t.sections)||void 0===E||E.map(((t,n)=>(e.push({[`expanded_${n}`]:t.expanded}),!0))),y.sections=e}return y}function M(t,e,n){const i=n.hasOwnProperty("images"),d=n.hasOwnProperty("sections"),l=Object.keys(i?n.images:d?n.sections:n)[0],r=i?n.images:d?n.sections:n;let a={};const s=e.getFieldsValue(!0);switch(l.split("_")[0]){case E:case _:case R:case I:if(i){let e=[...t.carouselImages];e[l.split("_")[1]][l.split("_")[0]]=r[l],a={carouselImages:e}}else a=r;break;case C:if(d){let e=[...t.sections];e[l.split("_")[1]][l.split("_")[0]]=r[l],a={sections:e}}break;case k:let n=r[l];"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",[k+"_"+l.split("_")[1]]],n),a.carouselImages[l.split("_")[1]].link=n,a.link="",e.setFieldValue(k,"https://")):(t.carouselImages.forEach(((t,i)=>{e.setFieldValue(["images",k+"_"+i],n),a.carouselImages[i].link=n,a.link=n})),e.setFieldValue(k,n))):(e.setFieldValue(k,n),a.link=n);break;case T:a={borderRadius:{...t.borderRadius,[L[A]]:s[A],[L[y]]:s[y],[L[x]]:s[x],[L[w]]:s[w],[L[l]]:+r[l]}};break;case A:case y:case x:case w:a={borderRadius:{...t.borderRadius,[L[T]]:null,[L[l]]:+r[l]}};break;case u:case g:case h:case v:case f:a={mobileBorderRadius:{...t.mobileBorderRadius,[B[g]]:s[g],[B[h]]:s[h],[B[v]]:s[v],[B[f]]:s[f],[B[l]]:r[l],classNamePrefix:"em-mob-border_radius_"+B[l]+"-"}};break;default:a=r}return{...t,...a}}},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'},56991:(t,e,n)=>{"use strict";n.d(e,{bD:()=>r,Mu:()=>a,cM:()=>o,rD:()=>s});var i=n(45934),d=n(18398),l=n(71210);function r(t,e){if(t!==e){if(!t||!e||"object"!==typeof t||"object"!==typeof e)return!1;const n=e instanceof Array;if(t instanceof Array){if(!n)return!1;const i=t.length;if(e.length!==i)return!1;for(let n=0;n<i;n++)if(!r(t[n],e[n]))return!1}else if(n)return!1;const i=Object.keys(t),d=Object.keys(e),l=i.length;if(l!==d.length)return!1;for(let a=0;a<l;a++){const n=i[a];if(!e.hasOwnProperty(n)||!r(t[n],e[n]))return!1}}return!0}function a(t){if(t){const{type:e,project:n,isNew:i,id:d}=t;return`/projects/${n}/${"block"===e?"blocks":"emails"}/${i?`new?template=${d}`:d}`}return""}function s(){return(0,i.d4)(d.zg)}function o(t,e,n){return null!==t&&void 0!==t&&t.length?t.map(((t,i)=>function(t){return t.hasOwnProperty("children")}(t)?{key:(0,l.l)(),value:t.value,label:t.label,children:o(t.children,e,n),type:t.type}:{key:(0,l.l)(),label:t.label,value:t.value,onClick:e=>{n(t.value,e.domEvent)}})):void 0}},12264:(t,e,n)=>{"use strict";function i(){const t=new Date;return t.valueOf()-60*t.getTimezoneOffset()*1e3}n.d(e,{N:()=>i})},41664:(t,e,n)=>{"use strict";n.d(e,{Q:()=>d});var i=n(71210);function d(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:()=>d});var i=n(23580);function d(t){return(e,n,d,l)=>{const r=(0,i.My)(n);return t(r)(e,n,d,l)}}},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()}}}},47381:(t,e,n)=>{"use strict";n.d(e,{u:()=>l});var i=n(92810),d=n(56991);const l=()=>{const t=(0,d.rD)();return(0,i.useCallback)(((e,n)=>{!1!==t.pushToGTM&&((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()})(e,n)}),[t.pushToGTM])}},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:()=>d});var i=n(44141);const d=async(t,e,n)=>{const d=(0,i.KU)(e).baseUrl.replaceAll(/[\\/]$/g,""),l=(0,i.hI)({baseUrl:d});let r=await l(t,e,n);if(r.error){let t=r.error;if("function"===typeof t.json)try{t=await t.json()}catch{t=await t,console.log("error",t)}return{error:t}}return r}},89698:(t,e,n)=>{"use strict";n.d(e,{V:()=>o});var i=n(85163),d=n(45695),l=n(23287),r=n(92810),a=n(45934),s=n(86286);function o(){const t=(0,d.QC)(),e=(0,a.d4)(s.C1),{__:n}=(0,l.s9)(),[o,c]=(0,r.useState)("");(0,r.useEffect)((()=>{if(e.locale!==o){const d=(0,i.QV)(n),l=t.onInit((()=>{t.send(i.Ru.SANDBOX_TRANSLATIONS,{name:e.locale,data:d}),c(e.locale)}));return()=>l.dispose()}}),[e.locale,o,c,n,t]),(0,r.useEffect)((()=>{const e=t.addListener(i.Ru.RELOAD,(()=>{c("")}));return()=>e.dispose()}),[c,t])}},37969:(t,e,n)=>{"use strict";n.d(e,{y:()=>s});var i=n(85163),d=n(45695),l=n(92810),r=n(70082);const a=Symbol("isIframeEvent");function s({children:t}){const[e,n]=(0,l.useState)(),[s,o]=(0,l.useState)(),[c,p]=(0,l.useState)(!1),m=(0,d.QC)();return(0,l.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,d=t.clientY+n.y+window.scrollY,l=document.elementFromPoint(i,d);if(l){const e=new DataTransfer,n=new DragEvent(t.type,{clientX:i,clientY:d,cancelable:!0,bubbles:!0,dataTransfer:e});n[a]=!0,l.dispatchEvent(n)}}}));return()=>t.dispose()}}),[m,e]),(0,l.useEffect)((()=>{const t=t=>{t[a]||p(!0)},e=t=>{t[a]||p(!1)};return window.addEventListener("dragstart",t),window.addEventListener("dragend",e),()=>{window.removeEventListener("dragstart",t),window.removeEventListener("dragend",e)}}),[s]),(0,l.useEffect)((()=>{const t=t=>{if(!t[a]){var e;const n=s.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(s)return s.addEventListener("dragenter",t),s.addEventListener("dragover",t),s.addEventListener("dragleave",t),s.addEventListener("drop",t),s.addEventListener("dragend",t),()=>{s.removeEventListener("dragenter",t),s.removeEventListener("dragover",t),s.removeEventListener("dragleave",t),s.removeEventListener("drop",t),s.removeEventListener("dragend",t)}}),[s,m]),(0,r.jsxs)("div",{ref:n,children:[c&&(0,r.jsx)("div",{ref:o,className:"iframe-provider"}),t]})}},43672:(t,e,n)=>{"use strict";n.d(e,{w:()=>o});var i=n(95838),d=n(85163),l=n(56991),r=n(45695),a=n(92810);const{useToken:s}=i.A;function o(){const t=(0,r.QC)(),{token:e}=s(),[n,i]=(0,a.useState)();(0,a.useEffect)((()=>{if(!(0,l.bD)(n,e)){const n=t.onInit((()=>{t.send(d.Ru.SANDBOX_SET_THEME_VARIABLES,e),i(e)}));return()=>n.dispose()}}),[e,n,i,t]),(0,a.useEffect)((()=>{const e=t.addListener(d.Ru.RELOAD,(()=>{i(void 0)}));return()=>e.dispose()}),[i,t])}},38920:(t,e,n)=>{"use strict";n.d(e,{r:()=>x});var i=n(85163),d=n(59287),l=n(92810),r=n(45934),a=n(64617),s=n(86739),o=n(53204),c=n(47358),p=n(65983),m=n(39738),b=n(86286),u=n(56991),g=n(32411),h=n(83863),v=n(71157),f=n(42068),w=n(47381);function x(t){const{emailId:e,projectId:n}=(0,a.g)(),x=(0,v.hN)(),y=(0,u.rD)(),A=(0,r.d4)(o.M),R=(0,g.fn)(),_=(0,l.useRef)(0),E=(0,r.d4)(m.p1),k=(0,r.d4)(c.Wm),T=(0,r.d4)(c.B),I=(0,r.d4)(b.C1),C=(0,w.u)(),[S,L]=(0,s.LX)(),B=(0,r.wA)(),{isSuccess:O,isLoading:N}=(0,s.YV)({emailId:e},{skip:!e}),[D,j]=(0,l.useState)(null);(0,l.useEffect)((()=>{if(O&&!N&&null!==E&&void 0!==E&&E.length){const n=E[0];var e;if(n&&D!==(null===t||void 0===t?void 0:t.id))null!==(e=n.slug)&&void 0!==e&&e.includes("autosave")&&R&&B((0,p.no)(n)),j(null===t||void 0===t?void 0:t.id)}}),[B,E,O,N,null===t||void 0===t?void 0:t.id,D,R,e]);const M=(0,l.useCallback)((({parent:e})=>{if(t){const l={parent:e,title:t.title,author:t.author,project:t.project,html:(null===R||void 0===R?void 0:R.getValue())||"",excerpt:t.date_gmt,subject:t.subject,preheader:t.preheader,common_styles:t.common_styles,parent_email:t.parent_email};S({emailId:t.id,body:l}).then((e=>{if(C({event:"save",action:"auto_save_email",email_id:t.id,project_id:n}),!function(t){return t.hasOwnProperty("data")}(e))throw e.error;var r,a;i.EW.isPlugin||fetch((0,d.Wv)(i.Tm,n,null===(r=e.data)||void 0===r?void 0:r.id,null===(a=e.data)||void 0===a?void 0:a.modified),{mode:"no-cors"}),x.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:l,message:""},!0)})).catch((t=>{x.fromError("EMAIL_AUTOSAVE_ERROR",l,t,!0),console.log(t)}))}}),[S,t,R,n,x,C]),[F,U]=(0,l.useState)(!1),P=(0,l.useCallback)((()=>{if((null===E||void 0===E?void 0:E.length)>0){const t=[...E].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===y||void 0===y?void 0:y.autosaveTimeout)||1e4)&&k&&!A&&"Discuss"!==T&&M({parent:t.id})}else k&&!A&&"Discuss"!==T&&M({parent:null})}),[E,A,k,T,M,null===y||void 0===y?void 0:y.autosaveTimeout]);(0,f.Z)((([t])=>{F&&!t&&(P(),U(!1))}),[F,P,U]);const H=null===I||void 0===I?void 0:I.autosaves,[G,V]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{G&&!A&&(clearTimeout(_.current),_.current=setTimeout((()=>U(!0)),(null===y||void 0===y?void 0:y.autosaveTimeout)||1e4),V(!1))}),[G,A,null===y||void 0===y?void 0:y.autosaveTimeout,U,V]),(0,l.useEffect)((()=>{if(H&&O&&void 0!==(null===t||void 0===t?void 0:t.id)){const e=(0,h.Og)(R,(()=>{k&&null!==t&&void 0!==t&&t.is_inited&&V(!0)}));return()=>{e.dispose()}}}),[R,V,H,O,null===t||void 0===t?void 0:t.id,k,null===t||void 0===t?void 0:t.is_inited]),(0,f.Z)((([e,n])=>{H&&O&&void 0!==(null===t||void 0===t?void 0:t.id)&&k&&null!==t&&void 0!==t&&t.is_inited&&(e===(null===t||void 0===t?void 0:t.title)&&n===(null===t||void 0===t?void 0:t.common_styles)||V(!0))}),[null===t||void 0===t?void 0:t.title,null===t||void 0===t?void 0:t.common_styles,k,O,V,null===t||void 0===t?void 0:t.id,null===t||void 0===t?void 0:t.is_inited]),(0,l.useEffect)((()=>()=>{clearTimeout(_.current)}),[I,null===t||void 0===t?void 0:t.renderGuid]),(0,l.useEffect)((()=>{clearTimeout(_.current)}),[null===t||void 0===t?void 0:t.modified]),L}},9653:(t,e,n)=>{"use strict";n.d(e,{U:()=>o});var i=n(85163),d=n(45695),l=n(32411),r=n(83863),a=n(42068),s=n(92810);const o=t=>{const e=(0,l.fn)(),n=(0,d.QC)(),o=(null===t||void 0===t?void 0:t.html)||"",c=(0,s.useRef)();c.current=t;const p=(0,s.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,s.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]),b=(0,s.useCallback)((async t=>{const d=c.current;if((null===d||void 0===d?void 0:d.renderGuid)===t){const t=null===o||void 0===o?void 0:o.replaceAll("\r\n","\n");try{(0,r.po)(e),e.setValue(t)}finally{(0,r.SF)(e)}const l=e.getValue();await n.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:l,guid:null===d||void 0===d?void 0:d.renderGuid})}}),[o,e,n]);(0,a.Z)((async([e])=>{const n=null===t||void 0===t?void 0:t.renderGuid;n&&n!==e&&(await m(n),await b(n),await p(n))}),[null===t||void 0===t?void 0:t.renderGuid,null===t||void 0===t?void 0:t.id,b])}},69106:(t,e,n)=>{"use strict";n.d(e,{f:()=>g});var i=n(85163),d=n(13522),l=n(45695),r=n(93982),a=n(32411),s=n(83863),o=n(42068),c=n(92810),p=n(65983),m=n(8493),b=n(45934),u=n(87686);const g=(t,e)=>{var n,g,h,v,f;const w=(0,b.wA)(),x=(0,a.fn)(),y=(0,l.QC)(),A=(0,r.ml)(d.A.WILL_EMAIL_INIT_ID),R=(0,r.ml)(d.A.ON_EMAIL_INIT_ID),_=(0,r.ml)(d.A.ON_CONTENT_CHANGED_ID),E=(0,r.ml)(d.A.ON_EMAIL_CHANGED_ID),k=(0,r.ml)(d.A.ON_MODEL_CHANGE),T=(0,c.useRef)(!1),I=(0,c.useRef)();I.current=t;const C=(0,c.useMemo)((()=>null===t||void 0===t?void 0:t.utm_parameters),[(null===t||void 0===t||null===(n=t.utm_parameters)||void 0===n?void 0:n.utm_campaign)||"",(null===t||void 0===t||null===(g=t.utm_parameters)||void 0===g?void 0:g.utm_content)||"",(null===t||void 0===t||null===(h=t.utm_parameters)||void 0===h?void 0:h.utm_medium)||"",(null===t||void 0===t||null===(v=t.utm_parameters)||void 0===v?void 0:v.utm_source)||"",(null===t||void 0===t||null===(f=t.utm_parameters)||void 0===f?void 0:f.utm_term)||"",(null===t||void 0===t?void 0:t.utm_parameters)||[]]);(0,c.useEffect)((()=>{const n=I.current;if(i.EW.isPlugin&&!T.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n.is_inited&&n){const t=x.getValue();E.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}),[x,null===t||void 0===t?void 0:t.preheader,null===t||void 0===t?void 0:t.common_styles,null===t||void 0===t?void 0:t.subject,C,E,e]),(0,o.Z)((([t])=>{t!==x&&k.fire(x)}),[x,k]),(0,c.useEffect)((()=>{if(i.EW.isPlugin){const n=x.onDidChangeContent((()=>{const n=I.current;if(!T.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const t=x.getValue();_.fire(t),E.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}));return()=>n.dispose()}}),[x,_,E,t,e]);const S=(0,c.useCallback)((async()=>{const t=I.current;try{var e;(0,s.po)(x),x.setValue((null===t||void 0===t||null===(e=t.html)||void 0===e?void 0:e.replaceAll("\r\n","\n"))||"")}finally{(0,s.SF)(x)}const n=x.getValue();await y.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:n,guid:t.renderGuid})}),[x,y]),L=(0,c.useCallback)((async()=>{const t=I.current;await y.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:x.getValue(),guid:t.renderGuid})}),[x,y]),B=(0,c.useCallback)((async()=>{const t=I.current;void 0!==t.preheader&&await y.sendAsync(i.Ru.SANDBOX_PREHEADER_UPDATE,{value:t.preheader,guid:t.renderGuid,force:!0})}),[y]),O=(0,c.useCallback)((async()=>{const t=I.current;void 0!==t.subject&&await y.sendAsync(i.Ru.SANDBOX_SUBJECT_UPDATE,{value:t.subject,guid:t.renderGuid,force:!0})}),[y]),N=(0,c.useCallback)((()=>{const t=I.current;return y.sendAsync(i.Ru.SANDBOX_INITED,{guid:t.renderGuid})}),[y]),D=(0,c.useCallback)((()=>{const t=I.current;return w(void 0===t.id?(0,m.Uh)(!0):(0,p.Wm)(!0)),R.fire({...t,id:e||t.isNew?void 0:t.id,html:x.getValue()})}),[w,R,x,e]),j=(0,c.useCallback)((()=>{const t=I.current;return y.sendAsync(i.Ru.SANDBOX_INIT_START,{guid:t.renderGuid})}),[y]),M=(0,c.useCallback)((()=>{const t=I.current;return A.fire({...t,id:e||t.isNew?void 0:t.id,html:x.getValue()})}),[A,x,e]),[F]=(0,o.c)((function*(){try{T.current=!0,yield*(0,u.T1)(j),yield*(0,u.T1)(M),yield*(0,u.T1)(S),yield*(0,u.T1)(B),yield*(0,u.T1)(O),yield*(0,u.T1)(N),yield*(0,u.T1)(D)}finally{T.current=!1}}),[S,B,O,D,M,j,N]),[U]=(0,o.c)((function*(){try{yield*(0,u.T1)(j),yield*(0,u.T1)(M),yield*(0,u.T1)(L),yield*(0,u.T1)(B),yield*(0,u.T1)(O),yield*(0,u.T1)(N),yield*(0,u.T1)(D)}catch(t){console.log(t)}}),[S,B,O,D,M,j,N]);(0,o.Z)((async([e])=>{const n=null===t||void 0===t?void 0:t.renderGuid;n&&n!==e&&F()}),[null===t||void 0===t?void 0:t.renderGuid,F]),(0,c.useEffect)((()=>{const t=y.addListenerAsync(i.Ru.RELOAD,(async()=>{await U()}));return()=>t.dispose()}),[y,U])}},14598:(t,e,n)=>{"use strict";n.d(e,{QM:()=>a,q2:()=>p});var i=n(60564),d=n.n(i),l=n(58689),r=n(81158);function a(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 s="index.html";function o(t,e){return t.find((function(t){return t.name.toLowerCase().endsWith(e)}))}async function c(t,e,n){return await(0,l.bc)(t,(async t=>{t=t.replace("\\","/");const n=(0,l.$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(d());const{files:r}=await i.loadAsync(t),a=Object.keys(r).map((t=>r[t])),c=r[s]||o(a,s)||o(a,".html")||o(a,".htm");if(c){const t=c.name.split("/"),i=document.location.pathname.split("/"),d=document.location.origin+i.slice(0,i.length-t.length).join("/")+"/",a=await c.async("text"),s=t.slice(0,t.length-1).join("/");return await(0,l.bc)(a,(async t=>{(t=t.replace("\\","/")).startsWith(".")&&(t=t.substring(1)),t.startsWith("/")&&(t=t.substring(1)),t.startsWith(d)&&(t=t.substring(d.length)),s&&!t.match("^(ht|f)tp(s?)://")&&(t=`${s}/${t}`);const n=r[t];if(n){const t=n.name,i=await n.async("blob");return e(i,t)}const i=(0,l.$l)(t);return e(t,i)}),n)}}(t,e,n);case"eml":{const i=await t.text(),d=(0,r.bZ)(i);if(d instanceof Error)throw d;const l="string"===typeof d?d:d.html;if("undefined"===typeof l)throw new Error("Eml not contains text/html");return c(l,e,n)}default:return c(await t.text(),e,n)}}}},44396:(t,e,n)=>{"use strict";n.d(e,{Q:()=>a});var i=n(60089),d=n(70609);const l=100;class r extends i.m{constructor(t,e,n,i){super(t,e,n,i),this._onScrollDisposable=null,this._editor=t}updateColorDecorators(t){if(this._onScrollDisposable&&(this._onScrollDisposable.dispose(),this._onScrollDisposable=null),t.length>=500){const e=this._editor;let[n,i]=[Number.MAX_VALUE,Number.MIN_VALUE];const d=()=>{const d=e.getVisibleRanges(),[r,a]=d.reduce(((t,{startLineNumber:e,endLineNumber:n})=>[Math.min(e,t[0]),Math.max(n,t[1])]),[Number.MAX_VALUE,Number.MIN_VALUE]);if(n-r>l||a-i>l){let e=t.filter((({colorInfo:t})=>{const{startLineNumber:e,endLineNumber:n}=t.range;return r-e<l&&n-a<l}));super.updateColorDecorators(e)}};this._onScrollDisposable=e.onDidScrollChange(d),d()}else super.updateColorDecorators(t)}dispose(){var t;null===(t=this._onScrollDisposable)||void 0===t||t.dispose(),super.dispose()}}function a(){(0,d.D0)(r.ID,(()=>r))}},36671:(t,e,n)=>{"use strict";n.d(e,{h:()=>y});var i=n(92810),d=n(70609),l=n(85163),r=n(32411),a=n(64037),s=n(71157),o=n(45934),c=n(86286),p=n(23287),m=n(39217),b=n(45695),u=n(77509),g=n(83863);const h=1e3,v=2e3,f=10,w="iframe_errors",x=5;function y(t,e){const{__:n}=(0,p.s9)(),y=(0,b.QC)(),A=(0,r.aD)(t),{error:R}=(0,s.hN)(),_=(0,i.useRef)(0),E=(0,i.useRef)(),k=(0,i.useRef)(!1),T=(0,o.d4)(c.C1),I=(0,i.useCallback)((t=>new Promise(((e,n)=>{const i=y.addListener(l.Ru.SANDBOX_READY,(()=>{i.dispose(),e()}));t&&setTimeout((()=>{i.dispose(),n("timeout")}))}))),[y]),C=(0,i.useCallback)((i=>{I(v).catch((t=>console.log(t))).finally((()=>{Promise.resolve().then((()=>{if(!k.current){if(++_.current){if(E.current){if(_.current<x){A.restoreSnapshot(E.current);for(let t=0;t<_.current;t++)A.undo()}}else E.current=A.createSnapshot();y.send(l.Ru.RELOAD)}setTimeout((()=>{if(0===--_.current){E.current=null;const d={past:A.getPast().slice(0,f),future:A.getFuture(),errorResolved:!k.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(d),R({id:"IFRAME_ERROR",data:d,message:n("Something went wrong")}),m.CJ.post(w,d).catch((t=>console.log(t))),k.current=!1}}),v)}}))}))}),[A,t,R,null===T||void 0===T?void 0:T.id,null===e||void 0===e?void 0:e.id,n,I,y]);(0,a.A)(l.Ru.APPLICATION_DOMPARSER_ERROR,C),(0,i.useEffect)((()=>{let n=null,i=0;function r(t){const e=[];for(const{rangeOffset:n,rangeLength:i,text:d}of t.changes)e.push({range:{start:n,end:n+i},text:d});return e}let a=!1;const s=new u.j;return s.addDisposable((0,g.Og)(t,(t=>(async t=>{if(a)await y.sendAsync(l.Ru.SANDBOX_UPDATE_ENTITY,{edits:[r(t)],guid:e.renderGuid});else if(n)n.push(t);else{n=[t];do{const t=n.splice(0,n.length);await y.sendAsync(l.Ru.SANDBOX_UPDATE_ENTITY,{edits:t.map(r),guid:e.renderGuid})}while(n.length);n=null}})(t).catch((t=>console.log(t)))))),s.addDisposable(y.addListener(l.Ru.APPLICATION_UPDATE_ENTITY,(function({guid:n,edits:l,pushUndoStop:r}){if(t&&n===e.renderGuid)try{a=!0;const e=(0,d.yc)();let n=e.canUndo(t.uri),s=e.canRedo(t.uri);const o=l.map((({text:e,range:n})=>{const i=t.getPositionAt(n.start),d=t.getPositionAt(n.end);return{text:e,range:{startColumn:i.column,startLineNumber:i.lineNumber,endColumn:d.column,endLineNumber:d.lineNumber}}}));r||n||s?t.pushEditOperations([],o,(()=>null)):t.applyEdits(o),!1!==r&&(i&&clearTimeout(i),i=setTimeout((()=>{t.pushStackElement(),i=0}),h))}finally{a=!1}}))),()=>{s.dispose(),i&&clearTimeout(i)}}),[t,y,e.renderGuid])}},32411:(t,e,n)=>{"use strict";n.d(e,{$Z:()=>m,TW:()=>c,aD:()=>p,fn:()=>b,kx:()=>a});var i=n(70609),d=n(92810),l=n(60382),r=n(33695);const a=(0,d.createContext)(null),s={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 o(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,l]=(0,d.useState)({canUndo:e.canUndo(t.uri),canRedo:e.canRedo(t.uri)});return(0,d.useEffect)((()=>{const n=t.onDidChangeContent((()=>{setTimeout((()=>l({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 r.Ov;return n instanceof r.Ov?n:r.Ov.deserialize(n)}const n=(0,i.yc)();return(0,d.useMemo)((()=>({undo:()=>n.undo(t.uri),redo:()=>n.redo(t.uri),clear:()=>n.removeElements(t.uri),getPast:()=>{var i,d;return(null===(i=n._editStacks.get(t.uri.toString()))||void 0===i||null===(d=i._past)||void 0===d?void 0:d.map(e))||[]},getFuture:()=>{var i,d;return(null===(i=n._editStacks.get(t.uri.toString()))||void 0===i||null===(d=i._future)||void 0===d?void 0:d.map(e))||[]},canUndo:()=>n.canUndo(t.uri),canRedo:()=>n.canRedo(t.uri),createSnapshot:()=>n.createSnapshot(t.uri),restoreSnapshot:t=>n.restoreSnapshot(t)})),[n,t])}function m(t="",e="html"){const n=l.editor.createModel(t,e);return n.setEOL(l.editor.EndOfLineSequence.LF),n}function b(){return(0,d.useContext)(a)}emailmakerMonacoEnvironment.getWorkerUrl=(t,e)=>{var i=n.p,d=(i?i.replace(/\/$/,"")+"/":"")+s[e],l=new URL(d,window.location.origin),r=l.protocol;if("http:"===r||"https:"===r){if(l.protocol!==window.location.protocol||l.hostname!==window.location.hostname)return o(d,e);if("localhost"===l.hostname&&(l.port||"80")!==(window.location.port||"80"))return o(d,e)}else if("file:"===r)return o(d,e);return d}},83863:(t,e,n)=>{"use strict";n.d(e,{Og:()=>r,SF:()=>l,po:()=>d});const i=new Set;function d(t){return i.add(t),{dispose(){l(t)}}}function l(t){i.delete(t)}function r(t,e){let n=t.getVersionId(),d=[];const l=t.onDidChangeContent((l=>{if(l.versionId>n+1){let r=t.onDidChangeContent((a=>{if(l.versionId===n+1)try{i.has(t)||e(l)}catch(s){console.log(s)}finally{n=l.versionId;let t=d.indexOf(r);t>=0&&d.splice(t,1),r.dispose()}}));d.push(r)}else try{i.has(t)||e(l)}catch(r){console.log(r)}finally{n=l.versionId}}));return{dispose:()=>{l.dispose(),d.forEach((t=>t.dispose()))}}}},70609:(t,e,n)=>{"use strict";n.d(e,{D0:()=>r,yc:()=>a});var i=n(95713),d=n(42443),l=n(60332);function r(t,e){const n=i.dS.getEditorContributions().find((e=>e.id===t));if(!n)throw new Error(`No contribution ${t}`);n.ctor=e(n)}function a(){return t=l.$D,d.QE.get(t);var t}},71157:(t,e,n)=>{"use strict";n.d(e,{Gy:()=>m,O5:()=>g,hN:()=>u,x_:()=>b});var i=n(13522),d=n(93982),l=n(92810),r=n(33206),a=n(13329),s=n(28316),o=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 b(t){return{id:t.id,code:t.html,title:t.title}}function u(){const t=(0,d.ml)(i.A.ON_NOTIFICATION),{notification:e}=r.A.useApp(),n=(0,l.useCallback)(((n,i)=>{n.type||(n={...n,type:"info"}),t.fire((0,o.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]),a=(0,l.useCallback)(((t,e)=>n({...t,type:"error"},e)),[n]),s=(0,l.useCallback)(((t,e)=>n({...t,type:"success"},e)),[n]),m=(0,l.useCallback)(((t,e)=>n({...t,type:"warning"},e)),[n]),b=(0,l.useCallback)(((t,e)=>n({...t,type:"info"},e)),[n]),u=(0,l.useCallback)(((t,e,n,i,d=p)=>{var l,r;n&&a({id:t,data:e,message:n.data instanceof Error?"":(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(l=n.data)||void 0===l?void 0:l.code)||n.status||n}}),description:(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(r=n.data)||void 0===r?void 0:r.message)||n.error}}),placement:d,innerException:(null===n||void 0===n?void 0:n.data)instanceof Error?n.data:n},i)}),[a]);return(0,l.useMemo)((()=>({notify:n,success:s,error:a,warning:m,fromError:u,info:b})),[n,s,a,m,u,b])}function g(){const{notify:t}=u();(0,a.D3)(s.Sb,t)}},23287:(t,e,n)=>{"use strict";n.d(e,{CY:()=>a,s9:()=>s});var i=n(92810),d=n(92032);function l(t){return{__:t.__.bind(t),_x:t._x.bind(t),_n:t._n.bind(t),_nx:t._nx.bind(t),sprintf:d.nv,isRTL:t.isRTL.bind(t),hasTranslation:t.hasTranslation.bind(t)}}const r=(0,i.createContext)(l(d.y3));function a(t){const{children:e,i18n:n=d.y3}=t,[,a]=(0,i.useReducer)((()=>[]),[]);(0,i.useEffect)((()=>n.subscribe(a)),[n]);const s=(0,i.useMemo)((()=>l(n)),[n]);return(0,i.createElement)(r.Provider,{value:s},e)}const s=()=>(0,i.useContext)(r)},42068:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l,c:()=>r});var i=n(92810),d=n(87686);const l=(t,e)=>{const n=(0,i.useRef)();n.current=t;const d=(0,i.useRef)(void 0);(0,i.useEffect)((()=>{null!==d.current&&n.current(d.current||[]),d.current=e}),e)};function r(t,e){const n=(0,i.useRef)(),l=(0,i.useCallback)((()=>{const t=n.current;t&&(0,d.eF)(t.halt)}),[]);(0,i.useEffect)((()=>()=>l()),[l]);const r=(0,i.useCallback)(t,e);return[(0,i.useCallback)(((...t)=>{l();const e=(0,d.eF)((()=>r(...t)));return n.current=e,e}),[l,r]),l]}},69156:(t,e,n)=>{"use strict";n.d(e,{A5:()=>c,FN:()=>o,Hk:()=>s,c8:()=>p});var i=n(92810),d=n(85163),l=n(45695);const r=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]"),a=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=light]"),s=t=>{let e,n;t===d.IJ?(e=d.vd,n=d.F3):(e=t===d.T?d.y2:d.CJ,n=t===d.nd?d.y2:d.CJ),[...a].forEach((t=>{t.media=e})),[...r].forEach((t=>{t.media=n}))},o=(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 d=e.querySelector('[data-theme-varibalse="true"]');d?e.replaceChild(n,d):e.insertBefore(n,e.firstChild)}},c=t=>{const e=document.body;e.classList.contains(t)||setTimeout((()=>{e.classList.remove(t===d.nd?d.T:d.nd),e.classList.add(t)}),200)},p=()=>{const t=(0,l.XW)();return(0,i.useCallback)((()=>{const e=window.localStorage.getItem(d.V0.em_color_scheme),n=matchMedia(d.F3).matches?d.nd:d.T,i=e||n;t({operation:d.Ru.UPDATE_PREVIEW,theme:i})}),[t])}},31770:(t,e,n)=>{"use strict";function i(t){return t}function d({data:t,...e},n){return e.error?e:{data:n(t,e.meta),...e}}function l(t){return e=>d(e,t)}function r(t){return e=>d(e,((e,n)=>e.hasOwnProperty("previous")?t(e.previous,n):t(e,n)))}function a(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:()=>a,PI:()=>r,SA:()=>d,SC:()=>l,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 d(t=".blocks-app"){t=`${t} &`;const e=new WeakSet;return{visit:n=>{if(!e.has(n)){const d={};let l;for(const r of Object.keys(n)){const a=n[r];"object"===typeof a&&a?(a._keyframe&&i(a,(t=>e.add(t))),d[r]=a):(l||(l=d[t]={},e.add(l)),l[r]=a)}return d}return n}}}n.d(e,{A:()=>d})},44824:(t,e,n)=>{"use strict";n.d(e,{e:()=>d});var i=n(26453);async function d(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"}})}}},93718:(t,e,n)=>{var i={"./en_US.ts":[90944,2466],"./ru_RU.ts":[3099,6859]};function d(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],d=e[0];return n.e(e[1]).then((()=>n(d)))}d.keys=()=>Object.keys(i),d.id=93718,t.exports=d},42811:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+BnQM5P/BRgABx8sJWqTxoYAAAAASUVORK5CYII="},59142:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_01_blocks.png"},50195:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_02_blocks.png"},27544:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_03_blocks.png"},59045:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_04_blocks.png"},97970:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_05_blocks.png"},84093:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_01.png"},42854:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_02.png"},81871:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_03.png"},39024:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_04.png"},35929:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_05.png"},54416:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/frame_dark.png"},98578:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/frame_light.png"},68777:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/frame_template_gallery.png"}}]);
|
|
1
|
+
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[7967],{88647:(t,e,n)=>{"use strict";n.d(e,{h:()=>s});var i,d=n(92810);function l(){return l=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},l.apply(null,arguments)}function a({title:t,titleId:e,...n},a){return d.createElement("svg",l({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",ref:a,"aria-labelledby":e},n),t?d.createElement("title",{id:e},t):null,i||(i=d.createElement("path",{d:"M6.5 1.143H5.25A4.108 4.108 0 0 0 1.143 5.25V6.5c0 .078.064.143.142.143h1a.143.143 0 0 0 .143-.143V5.25A2.82 2.82 0 0 1 5.25 2.428H6.5a.143.143 0 0 0 .143-.143v-1a.143.143 0 0 0-.143-.142ZM14.857 6.5V5.25a4.108 4.108 0 0 0-4.107-4.107H9.5a.143.143 0 0 0-.143.142v1c0 .079.064.143.143.143h1.25A2.82 2.82 0 0 1 13.57 5.25V6.5c0 .078.065.143.143.143h1a.143.143 0 0 0 .143-.143ZM9.5 14.857h1.25a4.108 4.108 0 0 0 4.107-4.107V9.5a.143.143 0 0 0-.143-.143h-1a.143.143 0 0 0-.143.143v1.25a2.82 2.82 0 0 1-2.821 2.821H9.5a.143.143 0 0 0-.143.143v1c0 .079.064.143.143.143ZM1.143 9.5v1.25a4.108 4.108 0 0 0 4.107 4.107H6.5a.143.143 0 0 0 .143-.143v-1a.143.143 0 0 0-.143-.143H5.25a2.82 2.82 0 0 1-2.822-2.821V9.5a.143.143 0 0 0-.143-.143h-1a.143.143 0 0 0-.142.143Z",fill:"inherit"})))}const s=d.forwardRef(a);n.p},79154:(t,e,n)=>{"use strict";n.d(e,{h:()=>s});var i,d=n(92810);function l(){return l=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},l.apply(null,arguments)}function a({title:t,titleId:e,...n},a){return d.createElement("svg",l({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",ref:a,"aria-labelledby":e},n),t?d.createElement("title",{id:e},t):null,i||(i=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.39 3.12h7.383c.242 0 .438.195.438.437v3.719a.437.437 0 0 1-.438.437H9.547v3.227a.437.437 0 0 1-.438.437H1.727a.437.437 0 0 1-.438-.437V7.22c0-.241.196-.437.438-.437h3.226V3.557c0-.242.196-.438.438-.438Zm.493 7.327h2.734V7.713H5.883v2.734Zm3.664-3.664h2.734V4.05H9.547v2.734Z",fill:"inherit"})))}const s=d.forwardRef(a);n.p},40829:t=>{t.exports=({__:t})=>`<style em="styles">\n amp-accordion > section > * {\n background: none !important;\n padding: 0 !important;\n border: none !important;\n overflow: visible !important;\n }\n</style>\n<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <amp-accordion disable-session-states animate expand-single-section>\n <section>\n <div>\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tr>\n <td style="padding: 10px 0; border-bottom: 1px solid #CCCCCC;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;"><strong>${t("Section title")}</strong></div>\n </td>\n </tr>\n </table>\n </div>\n <div>\n <table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom">\n <tr>\n <td style="padding: 10px 0;">\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 </div>\n </section>\n </amp-accordion>\n</td></tr></table>`},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,d=new Date(+i+432e6).toISOString(),l=-(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=${d}&timezone=${l}&frames=20" src="${(t=>`https://cdt3.emcdn.ru/timer?locale=${t.replace("_","-")}&bg=FFFFFF&tp=false&color1=000000&color2=959595&size1=72&size2=28&font1=roboto&font2=roboto&border=10&delimiter=:&spacing=10&time=${d}&timezone=${l}&frames=20`)(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.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.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>`},19032:(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.p+"static/media/tg.png",n.p+"static/media/yt.png",n.p+"static/media/vk.png",n.p+"static/media/yd.png",n.p+"static/media/tw.png",n.p+"static/media/ig.png",n.p+"static/media/fb.png"].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.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>'},47520:(t,e,n)=>{"use strict";n.d(e,{AO:()=>j,Ai:()=>b,NW:()=>B,RM:()=>m,TW:()=>N,Ze:()=>M,ok:()=>O,xc:()=>D,yy:()=>S});n(92810);var i=n(81662),d=n(7228),l=n(9588),a=n(37517),s=n(73035),r=n(27071),o=n(86657),c=n(85163),p=n(70082);const m=({linkProtocol:t})=>{switch(t){case"https://":default:return(0,p.jsx)(d.A,{rev:""});case"mailto:":return(0,p.jsx)(l.A,{rev:""});case"tel:":return(0,p.jsx)(a.A,{rev:""});case"sms:":return(0,p.jsx)(s.A,{rev:""});case"ftp://":return(0,p.jsx)(r.A,{rev:""});case"skype:":return(0,p.jsx)(o.A,{rev:""})}},b=({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:u,mobileRadiusTopLeft:g,mobileRadiusBottomLeft:h,mobileRadiusTopRight:f,mobileRadiusBottomRight:v,borderRadiusBottomRight:w,borderRadiusTopRight:x,borderRadiusBottomLeft:y,borderRadiusTopLeft:A,alt:R,src:_,title:E,link:k,borderRadiusAll:I,imgReplacer:T,expanded:C}={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",expanded:"expanded"},S={paddingTop:"top",paddingLeft:"left",paddingRight:"right",paddingBottom:"bottom",mobilePaddingTop:"top",mobilePaddingLeft:"left",mobilePaddingRight:"right",mobilePaddingBottom:"bottom"},L={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},B={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,O=t=>t||(0===t?"0":""),D=t=>t&&"auto"!==t?t:0===t?"0":"";function j(t){var e,n,i,d,l,a,s,r,o,c,p,m,b,u,g,h,f,v,w,x;let y={...t,link:t.link?t.link:"https://",borderRadiusAll:O(null===(e=t.borderRadius)||void 0===e?void 0:e.all),borderRadiusTopLeft:O(null===(n=t.borderRadius)||void 0===n?void 0:n.topLeft),borderRadiusBottomLeft:O(null===(i=t.borderRadius)||void 0===i?void 0:i.bottomLeft),borderRadiusTopRight:O(null===(d=t.borderRadius)||void 0===d?void 0:d.topRight),borderRadiusBottomRight:O(null===(l=t.borderRadius)||void 0===l?void 0:l.bottomRight),mobileBorderRadiusAll:O(null===(a=t.mobileBorderRadius)||void 0===a?void 0:a.all),mobileRadiusTopLeft:O(null!==(null===(s=t.mobileBorderRadius)||void 0===s?void 0:s.topLeft)?null===(r=t.mobileBorderRadius)||void 0===r?void 0:r.topLeft:null===(o=t.mobileBorderRadius)||void 0===o?void 0:o.all),mobileRadiusBottomLeft:O(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:O(null!==(null===(b=t.mobileBorderRadius)||void 0===b?void 0:b.topRight)?null===(u=t.mobileBorderRadius)||void 0===u?void 0:u.topRight:null===(g=t.mobileBorderRadius)||void 0===g?void 0:g.all),mobileRadiusBottomRight:O(null!==(null===(h=t.mobileBorderRadius)||void 0===h?void 0:h.bottomRight)?null===(f=t.mobileBorderRadius)||void 0===f?void 0:f.bottomRight:null===(v=t.mobileBorderRadius)||void 0===v?void 0:v.all),show:t.show?t.show:"all",altSrc:t.src};var A,R;t.video&&(y.videoPlayButton=null!==(A=t.video.playButton)&&void 0!==A?A:"youtube_red",y.videoSource=null!==(R=t.video.source)&&void 0!==R?R:"");if((null===(w=t.carouselImages)||void 0===w?void 0:w.length)>0){var _;let e={};null===(_=t.carouselImages)||void 0===_||_.map(((t,n)=>(Object.keys(t).forEach((i=>{e[i+"_"+n]=t[i]})),!0))),y.images=e}if((null===(x=t.sections)||void 0===x?void 0:x.length)>0){var E;let e=[];null===(E=t.sections)||void 0===E||E.map(((t,n)=>(e.push({[`expanded_${n}`]:t.expanded}),!0))),y.sections=e}return y}function M(t,e,n){const i=n.hasOwnProperty("images"),d=n.hasOwnProperty("sections"),l=Object.keys(i?n.images:d?n.sections:n)[0],a=i?n.images:d?n.sections:n;let s={};const r=e.getFieldsValue(!0);switch(l.split("_")[0]){case E:case _:case R:case T:if(i){let e=[...t.carouselImages];e[l.split("_")[1]][l.split("_")[0]]=a[l],s={carouselImages:e}}else s=a;break;case C:if(d){let e=[...t.sections];e[l.split("_")[1]][l.split("_")[0]]=a[l],s={sections:e}}break;case k:let n=a[l];"https://http"===n.substring(0,12)&&(n=n.substring(8,n.length)),t.type===c.bV.CAROUSEL?(s.carouselImages=t.carouselImages,i?(e.setFieldValue(["images",[k+"_"+l.split("_")[1]]],n),s.carouselImages[l.split("_")[1]].link=n,s.link="",e.setFieldValue(k,"https://")):(t.carouselImages.forEach(((t,i)=>{e.setFieldValue(["images",k+"_"+i],n),s.carouselImages[i].link=n,s.link=n})),e.setFieldValue(k,n))):(e.setFieldValue(k,n),s.link=n);break;case I:s={borderRadius:{...t.borderRadius,[L[A]]:r[A],[L[y]]:r[y],[L[x]]:r[x],[L[w]]:r[w],[L[l]]:+a[l]}};break;case A:case y:case x:case w:s={borderRadius:{...t.borderRadius,[L[I]]:null,[L[l]]:+a[l]}};break;case u:case g:case h:case f:case v:s={mobileBorderRadius:{...t.mobileBorderRadius,[B[g]]:r[g],[B[h]]:r[h],[B[f]]:r[f],[B[v]]:r[v],[B[l]]:a[l],classNamePrefix:"em-mob-border_radius_"+B[l]+"-"}};break;default:s=a}return{...t,...s}}},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'},56991:(t,e,n)=>{"use strict";n.d(e,{bD:()=>a,Mu:()=>s,cM:()=>o,rD:()=>r});var i=n(45934),d=n(18398),l=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),d=Object.keys(e),l=i.length;if(l!==d.length)return!1;for(let s=0;s<l;s++){const n=i[s];if(!e.hasOwnProperty(n)||!a(t[n],e[n]))return!1}}return!0}function s(t){if(t){const{type:e,project:n,isNew:i,id:d}=t;return`/projects/${n}/${"block"===e?"blocks":"emails"}/${i?`new?template=${d}`:d}`}return""}function r(){return(0,i.d4)(d.zg)}function o(t,e,n){return null!==t&&void 0!==t&&t.length?t.map(((t,i)=>function(t){return t.hasOwnProperty("children")}(t)?{key:(0,l.l)(),value:t.value,label:t.label,children:o(t.children,e,n),type:t.type}:{key:(0,l.l)(),label:t.label,value:t.value,onClick:e=>{n(t.value,e.domEvent)}})):void 0}},12264:(t,e,n)=>{"use strict";function i(){const t=new Date;return t.valueOf()-60*t.getTimezoneOffset()*1e3}n.d(e,{N:()=>i})},33288:(t,e,n)=>{"use strict";n.d(e,{di:()=>a});var i=n(95152),d=n(41664),l=n(23580);const a={getContainer:l.My,createIdentifier:d.Q,reducer:l.Ff,reducerPath:l.IP,getInstance:function(t,e){return(t instanceof i.m?t:(0,l.My)(t)).getInstance(e)},getInstanceAsync:function(t,e){return(t instanceof i.m?t:(0,l.My)(t)).getInstanceAsync(e)},getOrCreateInstance:function(t,e,n){return(t instanceof i.m?t:(0,l.My)(t)).getOrCreateInstance(e,n)},inject:function(t,e,n,i){return(0,l.My)(t).inject(e,n)},addService:function(t,e,n){return(0,l.My)(t).addService(e,n)},getServices:function(t,e){return(0,l.My)(t).getServices(e)},useInject:l.lg,useInstance:l.Nj,useInstanceAsync:l.rl,useServices:l.A$}},41664:(t,e,n)=>{"use strict";n.d(e,{Q:()=>d});var i=n(71210);function d(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:()=>d});var i=n(23580);function d(t){return(e,n,d,l)=>{const a=(0,i.My)(n);return t(a)(e,n,d,l)}}},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()}}}},47381:(t,e,n)=>{"use strict";n.d(e,{u:()=>l});var i=n(92810),d=n(56991);const l=()=>{const t=(0,d.rD)();return(0,i.useCallback)(((e,n)=>{!1!==t.pushToGTM&&((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()})(e,n)}),[t.pushToGTM])}},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:()=>d});var i=n(44141);const d=async(t,e,n)=>{const d=(0,i.KU)(e).baseUrl.replaceAll(/[\\/]$/g,""),l=(0,i.hI)({baseUrl:d});let a=await l(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:()=>o});var i=n(85163),d=n(45695),l=n(23287),a=n(92810),s=n(45934),r=n(86286);function o(){const t=(0,d.QC)(),e=(0,s.d4)(r.C1),{__:n}=(0,l.s9)(),[o,c]=(0,a.useState)("");(0,a.useEffect)((()=>{if(e.locale!==o){const d=(0,i.QV)(n),l=t.onInit((()=>{t.send(i.Ru.SANDBOX_TRANSLATIONS,{name:e.locale,data:d}),c(e.locale)}));return()=>l.dispose()}}),[e.locale,o,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:()=>r});var i=n(85163),d=n(45695),l=n(92810),a=n(70082);const s=Symbol("isIframeEvent");function r({children:t}){const[e,n]=(0,l.useState)(),[r,o]=(0,l.useState)(),[c,p]=(0,l.useState)(!1),m=(0,d.QC)();return(0,l.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,d=t.clientY+n.y+window.scrollY,l=document.elementFromPoint(i,d);if(l){const e=new DataTransfer,n=new DragEvent(t.type,{clientX:i,clientY:d,cancelable:!0,bubbles:!0,dataTransfer:e});n[s]=!0,l.dispatchEvent(n)}}}));return()=>t.dispose()}}),[m,e]),(0,l.useEffect)((()=>{const t=t=>{t[s]||p(!0)},e=t=>{t[s]||p(!1)};return window.addEventListener("dragstart",t),window.addEventListener("dragend",e),()=>{window.removeEventListener("dragstart",t),window.removeEventListener("dragend",e)}}),[r]),(0,l.useEffect)((()=>{const t=t=>{if(!t[s]){var e;const n=r.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(r)return r.addEventListener("dragenter",t),r.addEventListener("dragover",t),r.addEventListener("dragleave",t),r.addEventListener("drop",t),r.addEventListener("dragend",t),()=>{r.removeEventListener("dragenter",t),r.removeEventListener("dragover",t),r.removeEventListener("dragleave",t),r.removeEventListener("drop",t),r.removeEventListener("dragend",t)}}),[r,m]),(0,a.jsxs)("div",{ref:n,children:[c&&(0,a.jsx)("div",{ref:o,className:"iframe-provider"}),t]})}},43672:(t,e,n)=>{"use strict";n.d(e,{w:()=>o});var i=n(95838),d=n(85163),l=n(56991),a=n(45695),s=n(92810);const{useToken:r}=i.A;function o(){const t=(0,a.QC)(),{token:e}=r(),[n,i]=(0,s.useState)();(0,s.useEffect)((()=>{if(!(0,l.bD)(n,e)){const n=t.onInit((()=>{t.send(d.Ru.SANDBOX_SET_THEME_VARIABLES,e),i(e)}));return()=>n.dispose()}}),[e,n,i,t]),(0,s.useEffect)((()=>{const e=t.addListener(d.Ru.RELOAD,(()=>{i(void 0)}));return()=>e.dispose()}),[i,t])}},38920:(t,e,n)=>{"use strict";n.d(e,{r:()=>x});var i=n(85163),d=n(59287),l=n(92810),a=n(45934),s=n(64617),r=n(86739),o=n(53204),c=n(47358),p=n(65983),m=n(39738),b=n(86286),u=n(56991),g=n(32411),h=n(83863),f=n(71157),v=n(42068),w=n(47381);function x(t){const{emailId:e,projectId:n}=(0,s.g)(),x=(0,f.hN)(),y=(0,u.rD)(),A=(0,a.d4)(o.M),R=(0,g.fn)(),_=(0,l.useRef)(0),E=(0,a.d4)(m.p1),k=(0,a.d4)(c.Wm),I=(0,a.d4)(c.B),T=(0,a.d4)(b.C1),C=(0,w.u)(),[S,L]=(0,r.LX)(),B=(0,a.wA)(),{isSuccess:N,isLoading:O}=(0,r.YV)({emailId:e},{skip:!e}),[D,j]=(0,l.useState)(null);(0,l.useEffect)((()=>{if(N&&!O&&null!==E&&void 0!==E&&E.length){const n=E[0];var e;if(n&&D!==(null===t||void 0===t?void 0:t.id))null!==(e=n.slug)&&void 0!==e&&e.includes("autosave")&&R&&B((0,p.no)(n)),j(null===t||void 0===t?void 0:t.id)}}),[B,E,N,O,null===t||void 0===t?void 0:t.id,D,R,e]);const M=(0,l.useCallback)((({parent:e})=>{if(t){const l={parent:e,title:t.title,author:t.author,project:t.project,html:(null===R||void 0===R?void 0:R.getValue())||"",excerpt:t.date_gmt,subject:t.subject,preheader:t.preheader,common_styles:t.common_styles,parent_email:t.parent_email};S({emailId:t.id,body:l}).then((e=>{if(C({event:"save",action:"auto_save_email",email_id:t.id,project_id:n}),!function(t){return t.hasOwnProperty("data")}(e))throw e.error;var a,s;i.EW.isPlugin||fetch((0,d.Wv)(i.Tm,n,null===(a=e.data)||void 0===a?void 0:a.id,null===(s=e.data)||void 0===s?void 0:s.modified),{mode:"no-cors"}),x.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:l,message:""},!0)})).catch((t=>{x.fromError("EMAIL_AUTOSAVE_ERROR",l,t,!0),console.log(t)}))}}),[S,t,R,n,x,C]),[F,P]=(0,l.useState)(!1),H=(0,l.useCallback)((()=>{if((null===E||void 0===E?void 0:E.length)>0){const t=[...E].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===y||void 0===y?void 0:y.autosaveTimeout)||1e4)&&k&&!A&&"Discuss"!==I&&M({parent:t.id})}else k&&!A&&"Discuss"!==I&&M({parent:null})}),[E,A,k,I,M,null===y||void 0===y?void 0:y.autosaveTimeout]);(0,v.Z)((([t])=>{F&&!t&&(H(),P(!1))}),[F,H,P]);const G=null===T||void 0===T?void 0:T.autosaves,[U,V]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{U&&!A&&(clearTimeout(_.current),_.current=setTimeout((()=>P(!0)),(null===y||void 0===y?void 0:y.autosaveTimeout)||1e4),V(!1))}),[U,A,null===y||void 0===y?void 0:y.autosaveTimeout,P,V]),(0,l.useEffect)((()=>{if(G&&N&&void 0!==(null===t||void 0===t?void 0:t.id)){const e=(0,h.Og)(R,(()=>{k&&null!==t&&void 0!==t&&t.is_inited&&V(!0)}));return()=>{e.dispose()}}}),[R,V,G,N,null===t||void 0===t?void 0:t.id,k,null===t||void 0===t?void 0:t.is_inited]),(0,v.Z)((([e,n])=>{G&&N&&void 0!==(null===t||void 0===t?void 0:t.id)&&k&&null!==t&&void 0!==t&&t.is_inited&&(e===(null===t||void 0===t?void 0:t.title)&&n===(null===t||void 0===t?void 0:t.common_styles)||V(!0))}),[null===t||void 0===t?void 0:t.title,null===t||void 0===t?void 0:t.common_styles,k,N,V,null===t||void 0===t?void 0:t.id,null===t||void 0===t?void 0:t.is_inited]),(0,l.useEffect)((()=>()=>{clearTimeout(_.current)}),[T,null===t||void 0===t?void 0:t.renderGuid]),(0,l.useEffect)((()=>{clearTimeout(_.current)}),[null===t||void 0===t?void 0:t.modified]),L}},9653:(t,e,n)=>{"use strict";n.d(e,{U:()=>o});var i=n(85163),d=n(45695),l=n(32411),a=n(83863),s=n(42068),r=n(92810);const o=t=>{const e=(0,l.fn)(),n=(0,d.QC)(),o=(null===t||void 0===t?void 0:t.html)||"",c=(0,r.useRef)();c.current=t;const p=(0,r.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,r.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]),b=(0,r.useCallback)((async t=>{const d=c.current;if((null===d||void 0===d?void 0:d.renderGuid)===t){const t=null===o||void 0===o?void 0:o.replaceAll("\r\n","\n");try{(0,a.po)(e),e.setValue(t)}finally{(0,a.SF)(e)}const l=e.getValue();await n.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:l,guid:null===d||void 0===d?void 0:d.renderGuid})}}),[o,e,n]);(0,s.Z)((async([e])=>{const n=null===t||void 0===t?void 0:t.renderGuid;n&&n!==e&&(await m(n),await b(n),await p(n))}),[null===t||void 0===t?void 0:t.renderGuid,null===t||void 0===t?void 0:t.id,b])}},69106:(t,e,n)=>{"use strict";n.d(e,{f:()=>g});var i=n(85163),d=n(13522),l=n(45695),a=n(93982),s=n(32411),r=n(83863),o=n(42068),c=n(92810),p=n(65983),m=n(8493),b=n(45934),u=n(87686);const g=(t,e)=>{var n,g,h,f,v;const w=(0,b.wA)(),x=(0,s.fn)(),y=(0,l.QC)(),A=(0,a.ml)(d.A.WILL_EMAIL_INIT_ID),R=(0,a.ml)(d.A.ON_EMAIL_INIT_ID),_=(0,a.ml)(d.A.ON_CONTENT_CHANGED_ID),E=(0,a.ml)(d.A.ON_EMAIL_CHANGED_ID),k=(0,a.ml)(d.A.ON_MODEL_CHANGE),I=(0,c.useRef)(!1),T=(0,c.useRef)();T.current=t,(0,c.useEffect)((()=>{const n=T.current;if(i.EW.isPlugin&&!I.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&null!==n&&void 0!==n&&n.is_inited&&n){const t=x.getValue();E.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}),[x,null===t||void 0===t?void 0:t.preheader,null===t||void 0===t?void 0:t.common_styles,null===t||void 0===t?void 0:t.subject,(null===t||void 0===t||null===(n=t.utm_parameters)||void 0===n?void 0:n.utm_campaign)||"",(null===t||void 0===t||null===(g=t.utm_parameters)||void 0===g?void 0:g.utm_content)||"",(null===t||void 0===t||null===(h=t.utm_parameters)||void 0===h?void 0:h.utm_medium)||"",(null===t||void 0===t||null===(f=t.utm_parameters)||void 0===f?void 0:f.utm_source)||"",(null===t||void 0===t||null===(v=t.utm_parameters)||void 0===v?void 0:v.utm_term)||"",E,e]),(0,o.Z)((([t])=>{t!==x&&k.fire(x)}),[x,k]),(0,c.useEffect)((()=>{if(i.EW.isPlugin){const n=x.onDidChangeContent((()=>{const n=T.current;if(!I.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const t=x.getValue();_.fire(t),E.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}));return()=>n.dispose()}}),[x,_,E,t,e]);const C=(0,c.useCallback)((async()=>{const t=T.current;try{var e;(0,r.po)(x),x.setValue((null===t||void 0===t||null===(e=t.html)||void 0===e?void 0:e.replaceAll("\r\n","\n"))||"")}finally{(0,r.SF)(x)}const n=x.getValue();await y.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:n,guid:t.renderGuid})}),[x,y]),S=(0,c.useCallback)((async()=>{const t=T.current;await y.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:x.getValue(),guid:t.renderGuid})}),[x,y]),L=(0,c.useCallback)((async()=>{const t=T.current;void 0!==t.preheader&&await y.sendAsync(i.Ru.SANDBOX_PREHEADER_UPDATE,{value:t.preheader,guid:t.renderGuid,force:!0})}),[y]),B=(0,c.useCallback)((async()=>{const t=T.current;void 0!==t.subject&&await y.sendAsync(i.Ru.SANDBOX_SUBJECT_UPDATE,{value:t.subject,guid:t.renderGuid,force:!0})}),[y]),N=(0,c.useCallback)((()=>{const t=T.current;return y.sendAsync(i.Ru.SANDBOX_INITED,{guid:t.renderGuid})}),[y]),O=(0,c.useCallback)((()=>{const t=T.current;return w(void 0===t.id?(0,m.Uh)(!0):(0,p.Wm)(!0)),R.fire({...t,id:e||t.isNew?void 0:t.id,html:x.getValue()})}),[w,R,x,e]),D=(0,c.useCallback)((()=>{const t=T.current;return y.sendAsync(i.Ru.SANDBOX_INIT_START,{guid:t.renderGuid})}),[y]),j=(0,c.useCallback)((()=>{const t=T.current;return A.fire({...t,id:e||t.isNew?void 0:t.id,html:x.getValue()})}),[A,x,e]),[M]=(0,o.c)((function*(){try{I.current=!0,yield*(0,u.T1)(D),yield*(0,u.T1)(j),yield*(0,u.T1)(C),yield*(0,u.T1)(L),yield*(0,u.T1)(B),yield*(0,u.T1)(N),yield*(0,u.T1)(O)}finally{I.current=!1}}),[C,L,B,O,j,D,N]),[F]=(0,o.c)((function*(){try{yield*(0,u.T1)(D),yield*(0,u.T1)(j),yield*(0,u.T1)(S),yield*(0,u.T1)(L),yield*(0,u.T1)(B),yield*(0,u.T1)(N),yield*(0,u.T1)(O)}catch(t){console.log(t)}}),[C,L,B,O,j,D,N]);(0,o.Z)((async([e])=>{const n=null===t||void 0===t?void 0:t.renderGuid;n&&n!==e&&M()}),[null===t||void 0===t?void 0:t.renderGuid,M]),(0,c.useEffect)((()=>{const t=y.addListenerAsync(i.Ru.RELOAD,(async()=>{await F()}));return()=>t.dispose()}),[y,F])}},14598:(t,e,n)=>{"use strict";n.d(e,{QM:()=>s,q2:()=>p});var i=n(60564),d=n.n(i),l=n(58689),a=n(81158);function s(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 r="index.html";function o(t,e){return t.find((function(t){return t.name.toLowerCase().endsWith(e)}))}async function c(t,e,n){return await(0,l.bc)(t,(async t=>{t=t.replace("\\","/");const n=(0,l.$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(d());const{files:a}=await i.loadAsync(t),s=Object.keys(a).map((t=>a[t])),c=a[r]||o(s,r)||o(s,".html")||o(s,".htm");if(c){const t=c.name.split("/"),i=document.location.pathname.split("/"),d=document.location.origin+i.slice(0,i.length-t.length).join("/")+"/",s=await c.async("text"),r=t.slice(0,t.length-1).join("/");return await(0,l.bc)(s,(async t=>{(t=t.replace("\\","/")).startsWith(".")&&(t=t.substring(1)),t.startsWith("/")&&(t=t.substring(1)),t.startsWith(d)&&(t=t.substring(d.length)),r&&!t.match("^(ht|f)tp(s?)://")&&(t=`${r}/${t}`);const n=a[t];if(n){const t=n.name,i=await n.async("blob");return e(i,t)}const i=(0,l.$l)(t);return e(t,i)}),n)}}(t,e,n);case"eml":{const i=await t.text(),d=(0,a.bZ)(i);if(d instanceof Error)throw d;const l="string"===typeof d?d:d.html;if("undefined"===typeof l)throw new Error("Eml not contains text/html");return c(l,e,n)}default:return c(await t.text(),e,n)}}}},44396:(t,e,n)=>{"use strict";n.d(e,{Q:()=>s});var i=n(60089),d=n(70609);const l=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 d=()=>{const d=e.getVisibleRanges(),[a,s]=d.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>l||s-i>l){let e=t.filter((({colorInfo:t})=>{const{startLineNumber:e,endLineNumber:n}=t.range;return a-e<l&&n-s<l}));super.updateColorDecorators(e)}};this._onScrollDisposable=e.onDidScrollChange(d),d()}else super.updateColorDecorators(t)}dispose(){var t;null===(t=this._onScrollDisposable)||void 0===t||t.dispose(),super.dispose()}}function s(){(0,d.D0)(a.ID,(()=>a))}},36671:(t,e,n)=>{"use strict";n.d(e,{h:()=>y});var i=n(92810),d=n(70609),l=n(85163),a=n(32411),s=n(64037),r=n(71157),o=n(45934),c=n(86286),p=n(23287),m=n(39217),b=n(45695),u=n(77509),g=n(83863);const h=1e3,f=2e3,v=10,w="iframe_errors",x=5;function y(t,e){const{__:n}=(0,p.s9)(),y=(0,b.QC)(),A=(0,a.aD)(t),{error:R}=(0,r.hN)(),_=(0,i.useRef)(0),E=(0,i.useRef)(),k=(0,i.useRef)(!1),I=(0,o.d4)(c.C1),T=(0,i.useCallback)((t=>new Promise(((e,n)=>{const i=y.addListener(l.Ru.SANDBOX_READY,(()=>{i.dispose(),e()}));t&&setTimeout((()=>{i.dispose(),n("timeout")}))}))),[y]),C=(0,i.useCallback)((i=>{T(f).catch((t=>console.log(t))).finally((()=>{Promise.resolve().then((()=>{if(!k.current){if(++_.current){if(E.current){if(_.current<x){A.restoreSnapshot(E.current);for(let t=0;t<_.current;t++)A.undo()}}else E.current=A.createSnapshot();y.send(l.Ru.RELOAD)}setTimeout((()=>{if(0===--_.current){E.current=null;const d={past:A.getPast().slice(0,v),future:A.getFuture(),errorResolved:!k.current,text:t.getValue(),message:i.message,stack:i.stack,userId:null===I||void 0===I?void 0:I.id,entityId:null===e||void 0===e?void 0:e.id,entityType:document.location.pathname.indexOf("emails")>0?"email":"block"};console.log(d),R({id:"IFRAME_ERROR",data:d,message:n("Something went wrong")}),m.CJ.post(w,d).catch((t=>console.log(t))),k.current=!1}}),f)}}))}))}),[A,t,R,null===I||void 0===I?void 0:I.id,null===e||void 0===e?void 0:e.id,n,T,y]);(0,s.A)(l.Ru.APPLICATION_DOMPARSER_ERROR,C),(0,i.useEffect)((()=>{let n=null,i=0;function a(t){const e=[];for(const{rangeOffset:n,rangeLength:i,text:d}of t.changes)e.push({range:{start:n,end:n+i},text:d});return e}let s=!1;const r=new u.j;return r.addDisposable((0,g.Og)(t,(t=>(async t=>{if(s)await y.sendAsync(l.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 y.sendAsync(l.Ru.SANDBOX_UPDATE_ENTITY,{edits:t.map(a),guid:e.renderGuid})}while(n.length);n=null}})(t).catch((t=>console.log(t)))))),r.addDisposable(y.addListener(l.Ru.APPLICATION_UPDATE_ENTITY,(function({guid:n,edits:l,pushUndoStop:a}){if(t&&n===e.renderGuid)try{s=!0;const e=(0,d.yc)();let n=e.canUndo(t.uri),r=e.canRedo(t.uri);const o=l.map((({text:e,range:n})=>{const i=t.getPositionAt(n.start),d=t.getPositionAt(n.end);return{text:e,range:{startColumn:i.column,startLineNumber:i.lineNumber,endColumn:d.column,endLineNumber:d.lineNumber}}}));a||n||r?t.pushEditOperations([],o,(()=>null)):t.applyEdits(o),!1!==a&&(i&&clearTimeout(i),i=setTimeout((()=>{t.pushStackElement(),i=0}),h))}finally{s=!1}}))),()=>{r.dispose(),i&&clearTimeout(i)}}),[t,y,e.renderGuid])}},83863:(t,e,n)=>{"use strict";n.d(e,{Og:()=>a,SF:()=>l,po:()=>d});const i=new Set;function d(t){return i.add(t),{dispose(){l(t)}}}function l(t){i.delete(t)}function a(t,e){let n=t.getVersionId(),d=[];const l=t.onDidChangeContent((l=>{if(l.versionId>n+1){let a=t.onDidChangeContent((s=>{if(l.versionId===n+1)try{i.has(t)||e(l)}catch(r){console.log(r)}finally{n=l.versionId;let t=d.indexOf(a);t>=0&&d.splice(t,1),a.dispose()}}));d.push(a)}else try{i.has(t)||e(l)}catch(a){console.log(a)}finally{n=l.versionId}}));return{dispose:()=>{l.dispose(),d.forEach((t=>t.dispose()))}}}},70609:(t,e,n)=>{"use strict";n.d(e,{D0:()=>a,yc:()=>s});var i=n(95713),d=n(42443),l=n(60332);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 s(){return t=l.$D,d.QE.get(t);var t}},71157:(t,e,n)=>{"use strict";n.d(e,{Gy:()=>m,O5:()=>g,hN:()=>u,x_:()=>b});var i=n(13522),d=n(93982),l=n(92810),a=n(33206),s=n(13329),r=n(28316),o=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 b(t){return{id:t.id,code:t.html,title:t.title}}function u(){const t=(0,d.ml)(i.A.ON_NOTIFICATION),{notification:e}=a.A.useApp(),n=(0,l.useCallback)(((n,i)=>{n.type||(n={...n,type:"info"}),t.fire((0,o.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]),s=(0,l.useCallback)(((t,e)=>n({...t,type:"error"},e)),[n]),r=(0,l.useCallback)(((t,e)=>n({...t,type:"success"},e)),[n]),m=(0,l.useCallback)(((t,e)=>n({...t,type:"warning"},e)),[n]),b=(0,l.useCallback)(((t,e)=>n({...t,type:"info"},e)),[n]),u=(0,l.useCallback)(((t,e,n,i,d=p)=>{var l,a;n&&s({id:t,data:e,message:n.data instanceof Error?"":(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(l=n.data)||void 0===l?void 0:l.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:d,innerException:(null===n||void 0===n?void 0:n.data)instanceof Error?n.data:n},i)}),[s]);return(0,l.useMemo)((()=>({notify:n,success:r,error:s,warning:m,fromError:u,info:b})),[n,r,s,m,u,b])}function g(){const{notify:t}=u();(0,s.D3)(r.Sb,t)}},23287:(t,e,n)=>{"use strict";n.d(e,{CY:()=>s,s9:()=>r});var i=n(92810),d=n(92032);function l(t){return{__:t.__.bind(t),_x:t._x.bind(t),_n:t._n.bind(t),_nx:t._nx.bind(t),sprintf:d.nv,isRTL:t.isRTL.bind(t),hasTranslation:t.hasTranslation.bind(t)}}const a=(0,i.createContext)(l(d.y3));function s(t){const{children:e,i18n:n=d.y3}=t,[,s]=(0,i.useReducer)((()=>[]),[]);(0,i.useEffect)((()=>n.subscribe(s)),[n]);const r=(0,i.useMemo)((()=>l(n)),[n]);return(0,i.createElement)(a.Provider,{value:r},e)}const r=()=>(0,i.useContext)(a)},42068:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l,c:()=>a});var i=n(92810),d=n(87686);const l=(t,e)=>{const n=(0,i.useRef)();n.current=t;const d=(0,i.useRef)(void 0);(0,i.useEffect)((()=>{null!==d.current&&n.current(d.current||[]),d.current=e}),e)};function a(t,e){const n=(0,i.useRef)(),l=(0,i.useCallback)((()=>{const t=n.current;t&&(0,d.eF)(t.halt)}),[]);(0,i.useEffect)((()=>()=>l()),[l]);const a=(0,i.useCallback)(t,e);return[(0,i.useCallback)(((...t)=>{l();const e=(0,d.eF)((()=>a(...t)));return n.current=e,e}),[l,a]),l]}},69156:(t,e,n)=>{"use strict";n.d(e,{A5:()=>c,FN:()=>o,Hk:()=>r,c8:()=>p});var i=n(92810),d=n(85163),l=n(45695);const a=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]"),s=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=light]"),r=t=>{let e,n;t===d.IJ?(e=d.vd,n=d.F3):(e=t===d.T?d.y2:d.CJ,n=t===d.nd?d.y2:d.CJ),[...s].forEach((t=>{t.media=e})),[...a].forEach((t=>{t.media=n}))},o=(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 d=e.querySelector('[data-theme-varibalse="true"]');d?e.replaceChild(n,d):e.insertBefore(n,e.firstChild)}},c=t=>{const e=document.body;e.classList.contains(t)||setTimeout((()=>{e.classList.remove(t===d.nd?d.T:d.nd),e.classList.add(t)}),200)},p=()=>{const t=(0,l.XW)();return(0,i.useCallback)((()=>{const e=window.localStorage.getItem(d.V0.em_color_scheme),n=matchMedia(d.F3).matches?d.nd:d.T,i=e||n;t({operation:d.Ru.UPDATE_PREVIEW,theme:i})}),[t])}},31770:(t,e,n)=>{"use strict";function i(t){return t}function d({data:t,...e},n){return e.error?e:{data:n(t,e.meta),...e}}function l(t){return e=>d(e,t)}function a(t){return e=>d(e,((e,n)=>e.hasOwnProperty("previous")?t(e.previous,n):t(e,n)))}function s(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:()=>s,PI:()=>a,SA:()=>d,SC:()=>l,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 d(t=".blocks-app"){t=`${t} &`;const e=new WeakSet;return{visit:n=>{if(!e.has(n)){const d={};let l;for(const a of Object.keys(n)){const s=n[a];"object"===typeof s&&s?(s._keyframe&&i(s,(t=>e.add(t))),d[a]=s):(l||(l=d[t]={},e.add(l)),l[a]=s)}return d}return n}}}n.d(e,{A:()=>d})},44824:(t,e,n)=>{"use strict";n.d(e,{e:()=>d});var i=n(26453);async function d(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"}})}}},93718:(t,e,n)=>{var i={"./en_US.ts":[90944,2466],"./ru_RU.ts":[3099,6859]};function d(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],d=e[0];return n.e(e[1]).then((()=>n(d)))}d.keys=()=>Object.keys(i),d.id=93718,t.exports=d},42811:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+BnQM5P/BRgABx8sJWqTxoYAAAAASUVORK5CYII="},59142:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_01_blocks.png"},50195:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_02_blocks.png"},27544:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_03_blocks.png"},59045:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_04_blocks.png"},97970:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_05_blocks.png"},84093:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_01.png"},42854:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_02.png"},81871:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_03.png"},39024:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_04.png"},35929:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_05.png"},54416:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/frame_dark.png"},98578:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/frame_light.png"},68777:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/frame_template_gallery.png"}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[8458],{90219:(e,t,a)=>{a.d(t,{A:()=>F});var s=a(92810),l=a(95838),i=a(12280),n=a(55039),r=a(81662),o=a(66522),c=a(71086),m=a(66726),d=a(81e3),u=a(8701),p=a(28372),h=a(45934),_=a(64617),g=a(23287),A=a(38883),x=a.n(A),j=a(69292),v=a(55701),y=a(86739),b=a(84568),f=a(93563),k=a(8493),w=a(87790),O=a(65983),N=a(56991),D=a(32269),C=a(85163),I=a(70082);const{useToken:E}=l.A,{title:P,description:L,tags:S,type:U,is_template:z,group:T}={title:"title",description:"description",tags:"tags",type:"type",is_template:"is_template",group:"group"},M={[P]:"",[L]:"",[S]:[],[z]:!1},G={[L]:"",[S]:[],[U]:""};const B=({className:e,element:t})=>{var a,l;const{__:A}=(0,g.s9)(),{projectId:z}=(0,_.g)(),B=(0,h.wA)(),[F]=i.A.useForm(),{token:V}=E(),R=(0,N.rD)(),q=(0,h.Pj)(),K=(0,h.d4)(O.UI),{data:W}=(0,v.h1)(),{data:Y}=(0,_.KC)(),Q=t.hasOwnProperty("type")?C.IE:C.Tm,H=t.hasOwnProperty("type")?C.YY:C.zh,{refetch:$,isLoading:Z,isFetching:X,isUninitialized:J,isSuccess:ee}=(0,f.Oo)({parent:null===(a=Y.group)||void 0===a?void 0:a[0]},{skip:!(null!==(l=Y.group)&&void 0!==l&&l[0])});(0,s.useEffect)((()=>{!J&&$()}),[J,$]);const[te,ae]=(0,s.useState)([]),[se,le]=(0,s.useState)([]),[ie,ne]=(0,s.useState)(t.is_template||!1),{data:re}=b.Nq.endpoints.getProject.select(+z)(q.getState());(0,s.useEffect)((()=>{!J&&$()}),[t.group,$,J]),(0,s.useEffect)((()=>{if(ee&&t.is_template&&t.group.length){const e=t.group;let a={};e.length&&K.length&&(null===e||void 0===e||e.forEach((e=>{null===K||void 0===K||K.forEach((t=>{let s=t.children.find((t=>t.id===e));s&&(a.hasOwnProperty(t.id)||(a[t.id]=[]),a[t.id].push({label:s.name,value:s.id}))}))})));let s={};for(let t in a)a.hasOwnProperty(+t)&&(s[`group_${t}`]=a[t].map((e=>({...e,value:String(e.value)}))));F.setFieldsValue(s)}}),[F,K,t.is_template,t.group,ee]),(0,s.useEffect)((()=>{var e;le(null===(e=function(e){const t=new Set;return null===e||void 0===e?void 0:e.filter((e=>!t.has(e.name)&&(t.add(e.name),!0)))}((0,D.HT)(re,H)))||void 0===e?void 0:e.map((e=>({value:e.name,key:e.id}))))}),[re,H]),(0,s.useEffect)((()=>{if(t){var e,a;const s=null===(e=(0,D._q)(t,H))||void 0===e?void 0:e.map((e=>e.name)),l=t.emailtags||t.blocktags,i=null===(a=(0,D._q)(t,H))||void 0===a?void 0:a.filter((e=>l.includes(e.id))).map((e=>e.name));F.setFieldsValue({title:t.title,description:t.description,tags:t.tags||i||s,type:t.type})}}),[F,t,H]);(0,s.useEffect)((()=>{if(W){const e=W.schema.properties.acf.properties.type.items.enum;let t=[];const a={Applications:A("Apps"),Articles:A("Article"),Banners:A("Banners"),Buttons:A("Buttons"),"Call to Action":A("Call to Action"),Contacts:A("Contacts"),Content:A("Content"),"E-Commerce":A("E-Commerce"),Feature:A("Features"),Footer:A("Footers"),Header:A("Headers"),Lists:A("Lists"),Menu:A("Menus"),Other:A("Others"),Polls:A("Polls"),Promocodes:A("Promocodes"),Separators:A("Separators")};for(let s in e)t.push({label:a[e[s]],value:e[s]});ae(t)}}),[W,A]);return(0,I.jsx)("div",{className:x()("settings-panel",{[e]:e}),children:(0,I.jsxs)(i.A,{form:F,layout:"vertical",name:"settings_panel_form",initialValues:Q===C.Tm?{EmailInitialValues:M}:G,onValuesChange:e=>{const a=Object.keys(e)[0];switch(a.split("_")[0]){case P:t.isNew?B((0,k.BQ)(e[a])):B((0,O.VK)(e[a]));break;case T:B((0,O.Bu)({[a.split("_")[1]]:e[a]}));break;case L:Q===C.Tm?t.isNew?B((0,k.Zs)(e[a])):B(y.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{description:e[a]})}))):t.isNew?B((0,w.AS)(e[a])):B(v.VM.util.updateQueryData("getBlock",t.id,(t=>{Object.assign(t,{description:e[a]})})));break;case"is":t.isNew?B((0,k.TC)(e[a])):B(y.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{is_template:e[a]})})));break;case S:{const s=e[a].map((e=>e.trim()));Q===C.Tm?t.isNew?B((0,k.yY)(s)):B(y.GY.util.updateQueryData("getEmail",t.id,(e=>{Object.assign(e,{tags:s})}))):t.isNew?B((0,w.TB)(s)):B(v.VM.util.updateQueryData("getBlock",t.id,(e=>{Object.assign(e,{tags:s})})));break}case U:B(v.VM.util.updateQueryData("getBlock",t.id,(t=>{Object.assign(t,{type:e[a]})})));break;default:return}},autoComplete:"off",children:[R.subjectEnabled&&Q===C.Tm&&(0,I.jsx)(i.A.Item,{label:A("Title"),name:P,tooltip:{title:A("The title of the email is displayed in the list of the templates and usually matches the subject line, but you can change it."),icon:(0,I.jsx)(p.A,{})},children:(0,I.jsx)(n.A.TextArea,{placeholder:A("Type title here"),autoSize:{minRows:1}})}),R.descriptionEnabled&&(0,I.jsx)(i.A.Item,{label:A("Description"),name:L,tooltip:{title:A("Description is used in other sections of the service."),icon:(0,I.jsx)(p.A,{})},children:(0,I.jsx)(n.A.TextArea,{placeholder:A("Type your description here"),autoSize:{minRows:2}})}),R.tagsEnabled&&(0,I.jsx)(i.A.Item,{label:A("Tags"),name:S,tooltip:{title:A("Tags help you find the block in the list."),icon:(0,I.jsx)(p.A,{})},rules:[{message:"Please input your username!",type:"array"}],children:(0,I.jsx)(r.A,{mode:"tags",style:{width:"100%"},placeholder:A("Type your tags here"),options:se,tagRender:e=>{const{label:t,closable:a,onClose:s}=e;return(0,I.jsx)(o.A,{color:V.colorPrimary,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},closable:a,onClose:s,style:{borderRadius:6},children:t})},getPopupContainer:()=>document.querySelector(".email-settings__collapse")})}),(0,I.jsx)(c.A,{className:"selected-td-form__divider",style:{marginBottom:16}}),Q===C.Tm&&R.isTemplateEnabled&&(0,I.jsx)(m.A,{title:t.isNew?A("Save email first."):A("Use this email as a template for creating future emails."),children:(0,I.jsxs)(d.A,{size:10,align:"baseline",children:[(0,I.jsx)(i.A.Item,{name:"is_template",valuePropName:"checked",initialValue:ie,children:(0,I.jsx)(u.A,{size:"small",id:"setIsTemplate",onChange:e=>{ne(e)},disabled:t.isNew})}),(0,I.jsx)("span",{className:"ant-form-item-switch-label",style:{position:"relative",top:2,fontSize:14,color:V.colorText},children:(0,I.jsx)("label",{htmlFor:"setIsTemplate",children:A("Is a template")})})]})},"isTemplate"),ie&&(0,I.jsx)(j.A,{element:t,refetchProjectGroups:$,isLoading:Z||X}),Q===C.IE&&(0,I.jsx)(i.A.Item,{name:U,label:A("Type"),tooltip:{title:A("Select the block type to find any block on the list faster."),icon:(0,I.jsx)(p.A,{})},rules:[{message:"Please input type!"}],children:(0,I.jsx)(r.A,{placeholder:A("Choose block type"),options:te,getPopupContainer:()=>document.querySelector(".email-settings__collapse")})})]})})};B.defaultProps={className:"",email:void 0};const F=B},13465:(e,t,a)=>{a.d(t,{A:()=>v});a(92810);var s=a(2018),l=a(7744),i=a(68694),n=a.n(i),r=a(38610),o=a.n(r),c=a(73248),m=a.n(c),d=a(41705),u=a.n(d),p=a(96588),h=a.n(p),_=a(97433),g=a.n(_),A=a(32269),x=(a(13591),a(70082));const j=[{sizeArray:[24],name:"column-one",html:n()},{sizeArray:[12,12],name:"column-two-50",html:u()},{sizeArray:[8,8,8],name:"column-three",html:h()},{sizeArray:[6,6,6,6],name:"column-four",html:g()},{sizeArray:[8,16],name:"column-two-33",html:o()},{sizeArray:[16,8],name:"column-two-66",html:m()}],v=()=>{const e=(0,A.sh)(),t=(0,A._9)();return(0,x.jsx)("div",{className:"structures blocks-search__empty-wrapper",children:(0,x.jsx)("div",{className:"structures__list",children:(0,x.jsx)("div",{children:j&&j.map(((a,i)=>(0,x.jsx)("div",{children:(0,x.jsx)("div",{className:"structures__item",draggable:!0,onClick:t=>e(t,a.html),onDragStart:e=>t(e,a.html),children:(0,x.jsx)(s.A,{gutter:[6,6],className:"structures__item-row",children:a.sizeArray.map(((e,t)=>(0,x.jsx)(l.A,{span:e,children:(0,x.jsx)("div",{className:"structures__item-col"})},a.name+t)))})})},a.name)))})})})}},85291:(e,t,a)=>{a.d(t,{A:()=>v});a(92810);var s=a(2018),l=a(7744),i=a(69029),n=a.n(i),r=a(41579),o=a.n(r),c=a(70869),m=a.n(c),d=a(8456),u=a.n(d),p=a(20931),h=a.n(p),_=a(24186),g=a.n(_),A=a(32269),x=(a(13591),a(70082));const j=[{sizeArray:[24],name:"column-one",html:n()},{sizeArray:[12,12],name:"column-two-50",html:u()},{sizeArray:[8,8,8],name:"column-three",html:h()},{sizeArray:[6,6,6,6],name:"column-four",html:g()},{sizeArray:[8,16],name:"column-two-33",html:o()},{sizeArray:[16,8],name:"column-two-66",html:m()}],v=()=>{const e=(0,A.sh)(),t=(0,A._9)();return(0,x.jsx)("div",{className:"structures blocks-search__empty-wrapper",children:(0,x.jsx)("div",{className:"structures__list",children:(0,x.jsx)("div",{children:j&&j.map(((a,i)=>(0,x.jsx)("div",{children:(0,x.jsx)("div",{className:"structures__item",draggable:!0,onClick:t=>e(t,a.html),onDragStart:e=>t(e,a.html),children:(0,x.jsx)(s.A,{gutter:[6,6],className:"structures__item-row",children:a.sizeArray.map(((e,t)=>(0,x.jsx)(l.A,{span:e,children:(0,x.jsx)("div",{className:"structures__item-col"})},a.name+t)))})})},a.name)))})})})}},57903:(e,t,a)=>{a.d(t,{A:()=>u});a(92810);var s=a(59018),l=a.n(s),i=a(23287),n=a(71157),r=a(86739),o=a(55701),c=a(32269),m=a(70082);const d=({element:e})=>{const{__:t,_x:a}=(0,i.s9)(),[s]=(0,r.dN)(),[l]=(0,o.OZ)(),d=(0,n.hN)(),u=(e,s)=>{if(e.error)return(0,c.p6)(e,d),!1;(0,c.wB)(t("The ")+(s.hasOwnProperty("type")?t("block"):a("email","letter"))+" "+t("\u201c")+e.data.title+t("\u201d")+t("was successfully")+" "+(s.lock?s.hasOwnProperty("type")?a("unlocked.","block"):a("unlocked.","email"):s.hasOwnProperty("type")?a("locked.","block"):a("locked.","email")),d)};return(0,m.jsx)("div",{className:e.hasOwnProperty("type")?"em-analytics__block-lock":"em-analytics__email-lock",onClick:()=>{e.hasOwnProperty("type")?l({blockId:e.id,lock:!e.lock}).then((t=>{u(t,e)})):s({emailId:e.id,lock:!e.lock}).then((t=>{u(t,e)}))},children:e.lock?t("Unlock"):t("Lock")})};d.defaultProps={element:l().shape({lock:null,id:null})};const u=d},90775:(e,t,a)=>{a.d(t,{A:()=>A});var s=a(92810),l=a(12280),i=a(14852),n=a(43005),r=a(2018),o=a(7744),c=a(55039),m=a(71157),d=a(45934),u=a(23287),p=a(64936),h=a(32269),_=a(40869),g=a(70082);const A=({isModalVisible:e,userEmail:t,subscriptionRequest:a,userName:A,currentPlane:x})=>{const{__:j}=(0,u.s9)(),v=(0,d.wA)(),[y]=l.A.useForm(),[b,f]=(0,_.E)(),k=(0,m.hN)(),w=()=>{v((0,p.Oo)())},O=()=>{y.validateFields().then((()=>{const e=y.getFieldsValue(!0);b(JSON.stringify(e)).then((e=>{var t,a,s;200===(null===e||void 0===e||null===(t=e.data)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.status)?((0,h.wB)(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message,k),w()):e.error&&(0,h.p6)(e,k)}))})).catch((e=>{console.warn(e)}))};return(0,s.useEffect)((()=>{a&&(null===y||void 0===y||y.setFieldsValue({request_tariff:a,user_name:A,user_email:t,user_tariff:x}))}),[y,a,x,A,t]),(0,g.jsx)(i.A,{title:j("Request for changing the pricing plan"),className:"blocks-modal",open:e,onOk:O,onCancel:w,centered:!0,width:572,footer:[(0,g.jsx)(n.Ay,{type:"primary",size:"large",onClick:O,disabled:f.isLoading,children:j("Send")},"submit")],forceRender:!0,children:(0,g.jsxs)(l.A,{form:y,layout:"vertical",name:"switch_to_plan_form",onFinish:O,initialValues:{request_email:t,request_phone:"",comment:"",request_tariff:a},autoComplete:"off",style:{padding:"10px 24px 0"},children:[(0,g.jsxs)(r.A,{gutter:16,children:[(0,g.jsxs)(o.A,{span:12,children:[" ",(0,g.jsx)(l.A.Item,{label:j("Email"),name:"request_email",rules:[{required:!0,message:j("Please enter your email address"),validator:(e,t)=>h.au.test(t)?Promise.resolve():Promise.reject(new Error(j("Please enter the correct email.")))}],children:(0,g.jsx)(c.A,{size:"large",placeholder:j("Email"),type:"email"})})]}),(0,g.jsxs)(o.A,{span:12,children:[" ",(0,g.jsx)(l.A.Item,{label:j("Phone number"),name:"request_phone",children:(0,g.jsx)(c.A,{size:"large",placeholder:j("Phone number")})})]})]}),(0,g.jsx)(l.A.Item,{label:j("Comment"),name:"comment",children:(0,g.jsx)(c.A.TextArea,{placeholder:j("Please add a comment to your request"),autoSize:{minRows:2}})})]})})}},4519:(e,t,a)=>{a.d(t,{A:()=>y});var s=a(92810),l=a(41919),i=a(76662),n=a(81e3),r=a(66726),o=a(43005),c=a(64617),m=a(58013),d=a(23287),u=a(29718),p=a(30961),h=a(20757),_=a(32269),g=a(85163),A=a(90070),x=a(70082);const{Content:j}=l.A,{Paragraph:v}=i.A,y=()=>{const{__:e}=(0,d.s9)(),{projectId:t,emailId:a}=(0,c.g)(),i=(0,A.p6)();let y=(0,c.Zp)();const b=i.get(g.A9.em_template_email)||a;(0,s.useEffect)((()=>{document.body.classList.remove("editor")}),[]);const f=(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(n.A,{size:10,children:[(0,x.jsx)(r.A,{title:e("To emails"),placement:"left",children:(0,x.jsx)(o.Ay,{type:"text",icon:(0,x.jsx)(m.A,{}),onClick:()=>(0,_.XZ)(y,`/projects/${t}`),shape:"circle"})}),(0,x.jsx)(v,{className:"ant-page-header-heading-title",children:e("Select email template")}),(0,x.jsx)(p.A,{isBlocks:!1,templateEmailId:b})]})}),k=(0,x.jsx)(x.Fragment,{});return(0,x.jsxs)(l.A,{className:"template-page",children:[(0,x.jsx)(h.A,{leftBlock:f,rightBlock:k}),(0,x.jsx)(j,{className:"template-page__container",children:(0,x.jsx)("div",{className:"template-page__content container",children:(0,x.jsx)(u.A,{projectId:g.p5,emailsView:g.Y$,templateEmailId:b})})})]})}},70656:(e,t,a)=>{a.d(t,{A:()=>_});var s=a(92810),l=a(37005),i=a(66726),n=a(45934),r=a(39990),o=a(62303),c=a(65983),m=a(69156),d=a(23287),u=a(45695),p=a(85163),h=a(70082);const _=()=>{var e;const{__:t}=(0,d.s9)(),a=(0,n.wA)(),[_]=(0,r.b9)(),[g,A]=(0,s.useState)(null===(e=window)||void 0===e?void 0:e.localStorage.getItem(p.V0.em_color_scheme)),x=(0,u.XW)(),j=(0,s.useCallback)(((e=null)=>{const t=e;(e=>{let t;if((0,m.Hk)(e),null===e){const e=matchMedia(p.F3).matches?p.nd:p.T;localStorage.removeItem(p.V0.em_color_scheme),t=e}else localStorage.setItem(p.V0.em_color_scheme,e),t=e;a((0,c.eX)(t===p.nd?`vs-${t}`:p.T)),(0,m.A5)(t),x({operation:p.Ru.UPDATE_PREVIEW,theme:t}),_({theme:e})})(t),A(t)}),[a,_,x]);return(0,s.useEffect)((()=>{matchMedia(p.F3).onchange=()=>j()}),[j]),(0,h.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,h.jsx)(l.A,{className:"theme-switcher",style:{cursor:"pointer",color:"var(--colorText)"},value:g,options:[{label:(0,h.jsx)(i.A,{title:t("Light theme"),children:(0,h.jsx)(o.A,{icon:"LightMode",style:{fontSize:18}})}),value:p.T},{label:(0,h.jsx)(i.A,{title:t("System theme"),children:(0,h.jsx)(o.A,{icon:"AutoMode",style:{fontSize:18}})}),value:null},{label:(0,h.jsx)(i.A,{title:t("Dark theme"),children:(0,h.jsx)(o.A,{icon:"DarkMode",style:{fontSize:18}})}),value:p.nd}],onChange:e=>j(e)})})}},54565:(e,t,a)=>{a.d(t,{A:()=>b});var s=a(92810),l=a(12280),i=a(29234),n=a(55039),r=a(28372),o=a(45934),c=a(38883),m=a.n(c),d=a(23287),u=a(86739),p=a(8493),h=a(70082);const{utm_source:_,utm_medium:g,utm_campaign:A,utm_term:x,utm_content:j}={utm_source:"utm_source",utm_medium:"utm_medium",utm_campaign:"utm_campaign",utm_term:"utm_term",utm_content:"utm_content"},v={[_]:"",[g]:"",[A]:"",[x]:"",[j]:""},y=({className:e,email:t})=>{const{__:a}=(0,d.s9)(),c=(0,o.wA)(),[y]=l.A.useForm();(0,s.useEffect)((()=>{var e,a,s,l,i;t&&y.setFieldsValue({utm_source:(null===(e=t.utm_parameters)||void 0===e?void 0:e.utm_source)||"",utm_medium:(null===(a=t.utm_parameters)||void 0===a?void 0:a.utm_medium)||"",utm_campaign:(null===(s=t.utm_parameters)||void 0===s?void 0:s.utm_campaign)||"",utm_term:(null===(l=t.utm_parameters)||void 0===l?void 0:l.utm_term)||"",utm_content:(null===(i=t.utm_parameters)||void 0===i?void 0:i.utm_content)||""})}),[y,t]);return(0,h.jsx)("div",{className:m()("settings-panel",{[e]:e}),children:(0,h.jsxs)(l.A,{form:y,layout:"vertical",name:"settings_panel_form_utm",initialValues:v,onValuesChange:e=>{const a=Object.keys(e)[0];switch(a){case _:t.isNew?c((0,p.K3)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_source:e[a]}})})));break;case g:t.isNew?c((0,p.ol)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_medium:e[a]}})})));break;case A:t.isNew?c((0,p.P3)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_campaign:e[a]}})})));break;case x:t.isNew?c((0,p.zH)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_term:e[a]}})})));break;case j:t.isNew?c((0,p.mk)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_content:e[a]}})})));break;default:return}},autoComplete:"off",children:[(0,h.jsx)(i.A,{message:a("The specified parameters will be added to all links when exporting the email."),type:"info",showIcon:!0,style:{marginBottom:20}}),(0,h.jsx)(l.A.Item,{label:a("utm_source"),name:_,tooltip:{title:a("Mandatory. Indicates the traffic source. Example: utm_source=google"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("google")})}),(0,h.jsx)(l.A.Item,{label:a("utm_medium"),name:g,tooltip:{title:a("Identifies what type of link was used, such as cost per click or email. For example: utm_medium=cpc"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("cpc")})}),(0,h.jsx)(l.A.Item,{label:a("utm_campaign"),name:A,tooltip:{title:a("Indicates a specific product promotion or a marketing campaign. Example: utm_campaign=spring_sale"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("spring_sale")})}),(0,h.jsx)(l.A.Item,{label:a("utm_term"),name:x,tooltip:{title:a("Identifies search terms. For example: utm_term=running+shoes"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("running+shoes")})}),(0,h.jsx)(l.A.Item,{label:a("utm_content"),name:j,tooltip:{title:a("Indicates what user clicked to get to the site: a banner or a text link. It is often used for A/B testing and ad campaigns. Example: utm_content=logolink or utm_content=textlink"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("textlink")})})]})})};y.defaultProps={className:"",email:void 0};const b=y},5559:(e,t,a)=>{a.d(t,{A:()=>w});var s=a(92810),l=a(76662),i=a(43005),n=a(4800),r=a(55039),o=a(66726),c=a(45934),m=a(38883),d=a.n(m),u=a(23287),p=a(77532),h=a(62303),_=a(92779),g=a(64936),A=a(95679),x=a(86286),j=a(36404),v=a(56991),y=a(85163),b=a(85677),f=a(70082);const{Text:k}=l.A,w=({onChange:e,value:t,validateStatus:a,placeholder:l,disabled:m,name:w,elementSettings:O,imageInfo:N})=>{var D,C;const I=(0,c.d4)(x.C1),E=(0,c.d4)(x.B$),P=(0,c.d4)(j.yN),L=(0,v.rD)(),{__:S}=(0,u.s9)(),[U,z]=(0,s.useState)({width:"",height:"",size:""}),[T,M]=(0,s.useState)(!1),[G,B]=(0,s.useState)(0);let F=(0,c.wA)();const V=(0,c.d4)(p.js),R=(0,c.d4)(p.Uf),q=(0,c.d4)(p.Ac),K=(0,c.d4)(g.cL),[W]=(0,A.FQ)();let Y=!E&&(null===(D=I.id)||void 0===D?void 0:D.toString())===(null===P||void 0===P||null===(C=P.members)||void 0===C?void 0:C.owner.ID);(0,s.useEffect)((()=>{t&&W(t).then((({data:e})=>{e&&z({width:null===e||void 0===e?void 0:e.width,height:null===e||void 0===e?void 0:e.height,size:((null===e||void 0===e?void 0:e.fileSize)/1024).toFixed(0),format:null===e||void 0===e?void 0:e.format})}))}),[t,W]),(0,s.useEffect)((()=>{m||(w.startsWith("src")&&V&&((null===O||void 0===O?void 0:O.type)!==y.bV.CAROUSEL||R===w&&!K)?(e(V),F((0,p.BK)())):"backgroundImage"===w&&q&&((null===O||void 0===O?void 0:O.type)!==y.bV.CAROUSEL||R===w&&!K)&&(e(q),F((0,p.BK)())),K&&(null===O||void 0===O?void 0:O.type)===y.bV.CAROUSEL||!R||F((0,p.BK)()))}),[V,R,q,e,w,m,null===O||void 0===O?void 0:O.type,F,K]);const Q=(e=null)=>{w.startsWith("src")?(F((0,p.Yw)(w)),F((0,p.tm)(t)),F((0,g.qf)(e||y.lx.UPLOAD_IMAGE_MODAL))):w.startsWith("backgroundImage")&&(F((0,p.Yw)(w)),F((0,p.e_)(t)),F((0,g.qf)(e||y.lx.UPLOAD_BACKGROUND_MODAL)))},H=[{label:S("Upload"),key:"Upload",onClick:()=>Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_UPLOAD:y.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD)}];L.imageCenterStockEnabled&&H.push({label:S("Stock"),key:"Stock",onClick:()=>Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_STOCK:y.lx.UPLOAD_BACKGROUND_MODAL_STOCK)}),L.imageCenterGifEnabled&&H.push({label:S("GIF"),key:"GIF",onClick:()=>Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_GIF:y.lx.UPLOAD_BACKGROUND_MODAL_GIF)}),L.elementAIimageEnabled&&H.push({label:S("AI"),key:"AI",onClick:()=>Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_AI:y.lx.UPLOAD_BACKGROUND_MODAL_AI)});return(0,f.jsxs)("div",{className:d()("upload-bg-image",{"upload-bg-image_disabled":m}),children:[!t||t&&"error"===a?(0,f.jsxs)(i.Ay,{type:"default",block:!0,onClick:()=>Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_UPLOAD:y.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD),children:[(0,f.jsx)(h.A,{icon:"Image",style:{fontSize:20,verticalAlign:"text-top"}}),S("Add image")]}):(0,f.jsxs)("div",{className:"ant-input-file-uploader upload-bg-image__inner-wrap",onClick:e=>{var t,a,s,l;null!==(t=e.target)&&void 0!==t&&t.closest(".upload-bg-image__edit")||null!==(a=e.target)&&void 0!==a&&a.closest(".upload-bg-image__edit-menu")||null!==(s=e.target)&&void 0!==s&&s.closest(".upload-bg-image__menu")||null!==(l=e.target)&&void 0!==l&&l.closest(".inputGroup")||Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_UPLOAD:y.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD)},children:[(0,f.jsx)(n.A,{arrow:!0,dropdownRender:()=>L.imagePathDropdownEnabled?(0,f.jsx)("div",{className:"inputGroup",children:(0,f.jsx)(r.A,{prefix:(0,f.jsx)(h.A,{icon:"Image",style:{fontSize:20,verticalAlign:"text-top"}}),allowClear:!0,onChange:e,value:t,placeholder:l,name:w,disabled:m,className:"upload-bg-image__input"})}):(0,f.jsx)(f.Fragment,{}),overlayClassName:"upload-bg-image__dropdown-overlay",overlayStyle:{top:32,marginTop:"8px",width:347,left:0},trigger:["hover"],placement:"bottom",getPopupContainer:e=>e.closest(".upload-bg-image__inner-wrap"),children:(0,f.jsxs)("div",{className:"upload-bg-image__hover-container",style:{display:"flex",alignItems:"center"},children:[(0,f.jsx)("div",{className:"upload-bg-image__uploader",children:(0,f.jsx)("div",{className:"upload-bg-image__uploader-content",children:(0,f.jsxs)("div",{className:"upload-bg-image__uploader-content-inner",children:[(0,f.jsx)("div",{className:"upload-bg-image__uploader-img-wrap",children:(0,f.jsx)("img",{className:"upload-bg-image__uploader-img",src:t,alt:""})}),(0,f.jsx)("div",{className:"upload-bg-image__uploader-icons-wrap",children:(0,f.jsx)("div",{className:"upload-bg-image__uploader-content"})})]})})}),U.width&&U.height?(0,f.jsxs)("div",{className:"image-size",children:[U.width," \xd7 ",U.height,!!O&&(O.type===y.bV.IMG||O.type===y.bV.CAROUSEL)&&" \u2192 "+N.renderedWidth+" \xd7 "+N.renderedHeight,(0,f.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,f.jsxs)("span",{children:[U.size," ",S("kB")]}),U.format&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,f.jsx)("span",{className:"image-size-format",children:U.format})]})]}):(0,f.jsx)(k,{type:"secondary",className:"image-empty-text",children:l})]})}),(0,f.jsx)("div",{style:{flexGrow:1}}),"gif"!==U.format&&L.imageCenterEditorEnabled&&(0,f.jsx)(o.A,{title:S("Edit"),children:(0,f.jsx)(k,{type:"link",className:"upload-bg-image__edit",children:(0,f.jsx)(b.A,{style:{fontSize:16},onClick:e=>{Y?(M(!0),B(5)):(Q(),F((0,g.Wz)(y.lx.IMAGE_EDITOR_MODAL)))}})})}),(0,f.jsx)(n.A,{arrow:{pointAtCenter:!0},placement:"bottom",menu:{items:H},overlayClassName:"upload-bg-image__menu",children:(0,f.jsx)(k,{type:"link",className:"upload-bg-image__edit-menu image-change",children:!t||t&&"error"===a?S("Upload"):(0,f.jsx)(h.A,{style:{fontSize:20},icon:"Reload",onClick:()=>Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_UPLOAD:y.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD)})})},"Actions")]}),(0,f.jsx)(_.A,{open:T,onCancel:()=>{M(!1)},initialSlide:G})]})}},13591:()=>{}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[8458],{90219:(e,t,a)=>{a.d(t,{A:()=>F});var s=a(92810),l=a(95838),i=a(12280),n=a(55039),r=a(81662),o=a(66522),c=a(71086),m=a(66726),d=a(81e3),u=a(8701),p=a(28372),h=a(45934),_=a(64617),g=a(23287),A=a(38883),x=a.n(A),j=a(69292),v=a(55701),y=a(86739),b=a(84568),f=a(93563),k=a(8493),w=a(87790),O=a(65983),N=a(56991),D=a(32269),C=a(85163),I=a(70082);const{useToken:E}=l.A,{title:P,description:L,tags:S,type:U,is_template:z,group:T}={title:"title",description:"description",tags:"tags",type:"type",is_template:"is_template",group:"group"},M={[P]:"",[L]:"",[S]:[],[z]:!1},G={[L]:"",[S]:[],[U]:""};const B=({className:e,element:t})=>{var a,l;const{__:A}=(0,g.s9)(),{projectId:z}=(0,_.g)(),B=(0,h.wA)(),[F]=i.A.useForm(),{token:V}=E(),R=(0,N.rD)(),q=(0,h.Pj)(),K=(0,h.d4)(O.UI),{data:W}=(0,v.h1)(),{data:Y}=(0,_.KC)(),Q=t.hasOwnProperty("type")?C.IE:C.Tm,H=t.hasOwnProperty("type")?C.YY:C.zh,{refetch:$,isLoading:Z,isFetching:X,isUninitialized:J,isSuccess:ee}=(0,f.Oo)({parent:null===(a=Y.group)||void 0===a?void 0:a[0]},{skip:!(null!==(l=Y.group)&&void 0!==l&&l[0])});(0,s.useEffect)((()=>{!J&&$()}),[J,$]);const[te,ae]=(0,s.useState)([]),[se,le]=(0,s.useState)([]),[ie,ne]=(0,s.useState)(t.is_template||!1),{data:re}=b.Nq.endpoints.getProject.select(+z)(q.getState());(0,s.useEffect)((()=>{!J&&$()}),[t.group,$,J]),(0,s.useEffect)((()=>{if(ee&&t.is_template&&t.group.length){const e=t.group;let a={};e.length&&K.length&&(null===e||void 0===e||e.forEach((e=>{null===K||void 0===K||K.forEach((t=>{let s=t.children.find((t=>t.id===e));s&&(a.hasOwnProperty(t.id)||(a[t.id]=[]),a[t.id].push({label:s.name,value:s.id}))}))})));let s={};for(let t in a)a.hasOwnProperty(+t)&&(s[`group_${t}`]=a[t].map((e=>({...e,value:String(e.value)}))));F.setFieldsValue(s)}}),[F,K,t.is_template,t.group,ee]),(0,s.useEffect)((()=>{var e;le(null===(e=function(e){const t=new Set;return null===e||void 0===e?void 0:e.filter((e=>!t.has(e.name)&&(t.add(e.name),!0)))}((0,D.HT)(re,H)))||void 0===e?void 0:e.map((e=>({value:e.name,key:e.id}))))}),[re,H]),(0,s.useEffect)((()=>{if(t){var e,a;const s=null===(e=(0,D._q)(t,H))||void 0===e?void 0:e.map((e=>e.name)),l=t.emailtags||t.blocktags,i=null===(a=(0,D._q)(t,H))||void 0===a?void 0:a.filter((e=>l.includes(e.id))).map((e=>e.name));F.setFieldsValue({title:t.title,description:t.description,tags:t.tags||i||s,type:t.type})}}),[F,t,H]);(0,s.useEffect)((()=>{if(W){const e=W.schema.properties.acf.properties.type.items.enum;let t=[];const a={Applications:A("Apps"),Articles:A("Article"),Banners:A("Banners"),Buttons:A("Buttons"),"Call to Action":A("Call to Action"),Contacts:A("Contacts"),Content:A("Content"),"E-Commerce":A("E-Commerce"),Feature:A("Features"),Footer:A("Footers"),Header:A("Headers"),Lists:A("Lists"),Menu:A("Menus"),Other:A("Others"),Polls:A("Polls"),Promocodes:A("Promocodes"),Separators:A("Separators")};for(let s in e)t.push({label:a[e[s]],value:e[s]});ae(t)}}),[W,A]);return(0,I.jsx)("div",{className:x()("settings-panel",{[e]:e}),children:(0,I.jsxs)(i.A,{form:F,layout:"vertical",name:"settings_panel_form",initialValues:Q===C.Tm?{EmailInitialValues:M}:G,onValuesChange:e=>{const a=Object.keys(e)[0];switch(a.split("_")[0]){case P:t.isNew?B((0,k.BQ)(e[a])):B((0,O.VK)(e[a]));break;case T:B((0,O.Bu)({[a.split("_")[1]]:e[a]}));break;case L:Q===C.Tm?t.isNew?B((0,k.Zs)(e[a])):B(y.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{description:e[a]})}))):t.isNew?B((0,w.AS)(e[a])):B(v.VM.util.updateQueryData("getBlock",t.id,(t=>{Object.assign(t,{description:e[a]})})));break;case"is":t.isNew?B((0,k.TC)(e[a])):B(y.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{is_template:e[a]})})));break;case S:{const s=e[a].map((e=>e.trim()));Q===C.Tm?t.isNew?B((0,k.yY)(s)):B(y.GY.util.updateQueryData("getEmail",t.id,(e=>{Object.assign(e,{tags:s})}))):t.isNew?B((0,w.TB)(s)):B(v.VM.util.updateQueryData("getBlock",t.id,(e=>{Object.assign(e,{tags:s})})));break}case U:B(v.VM.util.updateQueryData("getBlock",t.id,(t=>{Object.assign(t,{type:e[a]})})));break;default:return}},autoComplete:"off",children:[R.subjectEnabled&&Q===C.Tm&&(0,I.jsx)(i.A.Item,{label:A("Title"),name:P,tooltip:{title:A("The title of the email is displayed in the list of the templates and usually matches the subject line, but you can change it."),icon:(0,I.jsx)(p.A,{})},children:(0,I.jsx)(n.A.TextArea,{placeholder:A("Type title here"),autoSize:{minRows:1}})}),R.descriptionEnabled&&(0,I.jsx)(i.A.Item,{label:A("Description"),name:L,tooltip:{title:A("Description is used in other sections of the service."),icon:(0,I.jsx)(p.A,{})},children:(0,I.jsx)(n.A.TextArea,{placeholder:A("Type your description here"),autoSize:{minRows:2}})}),R.tagsEnabled&&(0,I.jsx)(i.A.Item,{label:A("Tags"),name:S,tooltip:{title:A("Tags help you find the block in the list."),icon:(0,I.jsx)(p.A,{})},rules:[{message:"Please input your username!",type:"array"}],children:(0,I.jsx)(r.A,{mode:"tags",style:{width:"100%"},placeholder:A("Type your tags here"),options:se,tagRender:e=>{const{label:t,closable:a,onClose:s}=e;return(0,I.jsx)(o.A,{color:V.colorPrimary,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},closable:a,onClose:s,style:{borderRadius:6},children:t})},getPopupContainer:()=>document.querySelector(".email-settings__collapse")})}),(0,I.jsx)(c.A,{className:"selected-td-form__divider",style:{marginBottom:16}}),Q===C.Tm&&R.isTemplateEnabled&&(0,I.jsx)(m.A,{title:t.isNew?A("Save email first."):A("Use this email as a template for creating future emails."),children:(0,I.jsxs)(d.A,{size:10,align:"baseline",children:[(0,I.jsx)(i.A.Item,{name:"is_template",valuePropName:"checked",initialValue:ie,children:(0,I.jsx)(u.A,{size:"small",id:"setIsTemplate",onChange:e=>{ne(e)},disabled:t.isNew})}),(0,I.jsx)("span",{className:"ant-form-item-switch-label",style:{position:"relative",top:2,fontSize:14,color:V.colorText},children:(0,I.jsx)("label",{htmlFor:"setIsTemplate",children:A("Is a template")})})]})},"isTemplate"),ie&&(0,I.jsx)(j.A,{element:t,refetchProjectGroups:$,isLoading:Z||X}),Q===C.IE&&(0,I.jsx)(i.A.Item,{name:U,label:A("Type"),tooltip:{title:A("Select the block type to find any block on the list faster."),icon:(0,I.jsx)(p.A,{})},rules:[{message:"Please input type!"}],children:(0,I.jsx)(r.A,{placeholder:A("Choose block type"),options:te,getPopupContainer:()=>document.querySelector(".email-settings__collapse")})})]})})};B.defaultProps={className:"",email:void 0};const F=B},13465:(e,t,a)=>{a.d(t,{A:()=>v});a(92810);var s=a(2018),l=a(7744),i=a(68694),n=a.n(i),r=a(38610),o=a.n(r),c=a(73248),m=a.n(c),d=a(41705),u=a.n(d),p=a(96588),h=a.n(p),_=a(97433),g=a.n(_),A=a(32269),x=(a(13591),a(70082));const j=[{sizeArray:[24],name:"column-one",html:n()},{sizeArray:[12,12],name:"column-two-50",html:u()},{sizeArray:[8,8,8],name:"column-three",html:h()},{sizeArray:[6,6,6,6],name:"column-four",html:g()},{sizeArray:[8,16],name:"column-two-33",html:o()},{sizeArray:[16,8],name:"column-two-66",html:m()}],v=()=>{const e=(0,A.sh)(),t=(0,A._9)();return(0,x.jsx)("div",{className:"structures blocks-search__empty-wrapper",children:(0,x.jsx)("div",{className:"structures__list",children:(0,x.jsx)("div",{children:j&&j.map(((a,i)=>(0,x.jsx)("div",{children:(0,x.jsx)("div",{className:"structures__item",draggable:!0,onClick:t=>e(t,a.html),onDragStart:e=>t(e,a.html),children:(0,x.jsx)(s.A,{gutter:[6,6],className:"structures__item-row",children:a.sizeArray.map(((e,t)=>(0,x.jsx)(l.A,{span:e,children:(0,x.jsx)("div",{className:"structures__item-col"})},a.name+t)))})})},a.name)))})})})}},85291:(e,t,a)=>{a.d(t,{A:()=>v});a(92810);var s=a(2018),l=a(7744),i=a(69029),n=a.n(i),r=a(41579),o=a.n(r),c=a(70869),m=a.n(c),d=a(8456),u=a.n(d),p=a(20931),h=a.n(p),_=a(24186),g=a.n(_),A=a(32269),x=(a(13591),a(70082));const j=[{sizeArray:[24],name:"column-one",html:n()},{sizeArray:[12,12],name:"column-two-50",html:u()},{sizeArray:[8,8,8],name:"column-three",html:h()},{sizeArray:[6,6,6,6],name:"column-four",html:g()},{sizeArray:[8,16],name:"column-two-33",html:o()},{sizeArray:[16,8],name:"column-two-66",html:m()}],v=()=>{const e=(0,A.sh)(),t=(0,A._9)();return(0,x.jsx)("div",{className:"structures blocks-search__empty-wrapper",children:(0,x.jsx)("div",{className:"structures__list",children:(0,x.jsx)("div",{children:j&&j.map(((a,i)=>(0,x.jsx)("div",{children:(0,x.jsx)("div",{className:"structures__item",draggable:!0,onClick:t=>e(t,a.html),onDragStart:e=>t(e,a.html),children:(0,x.jsx)(s.A,{gutter:[6,6],className:"structures__item-row",children:a.sizeArray.map(((e,t)=>(0,x.jsx)(l.A,{span:e,children:(0,x.jsx)("div",{className:"structures__item-col"})},a.name+t)))})})},a.name)))})})})}},57903:(e,t,a)=>{a.d(t,{A:()=>u});a(92810);var s=a(59018),l=a.n(s),i=a(23287),n=a(71157),r=a(86739),o=a(55701),c=a(32269),m=a(70082);const d=({element:e})=>{const{__:t,_x:a}=(0,i.s9)(),[s]=(0,r.dN)(),[l]=(0,o.OZ)(),d=(0,n.hN)(),u=(e,s)=>{if(e.error)return(0,c.p6)(e,d),!1;(0,c.wB)(t("The ")+(s.hasOwnProperty("type")?t("block"):a("email","letter"))+" "+t("\u201c")+e.data.title+t("\u201d")+t("was successfully")+" "+(s.lock?s.hasOwnProperty("type")?a("unlocked.","block"):a("unlocked.","email"):s.hasOwnProperty("type")?a("locked.","block"):a("locked.","email")),d)};return(0,m.jsx)("div",{className:e.hasOwnProperty("type")?"em-analytics__block-lock":"em-analytics__email-lock",onClick:()=>{e.hasOwnProperty("type")?l({blockId:e.id,lock:!e.lock}).then((t=>{u(t,e)})):s({emailId:e.id,lock:!e.lock}).then((t=>{u(t,e)}))},children:e.lock?t("Unlock"):t("Lock")})};d.defaultProps={element:l().shape({lock:null,id:null})};const u=d},90775:(e,t,a)=>{a.d(t,{A:()=>A});var s=a(92810),l=a(12280),i=a(14852),n=a(43005),r=a(2018),o=a(7744),c=a(55039),m=a(71157),d=a(45934),u=a(23287),p=a(64936),h=a(32269),_=a(40869),g=a(70082);const A=({isModalVisible:e,userEmail:t,subscriptionRequest:a,userName:A,currentPlane:x})=>{const{__:j}=(0,u.s9)(),v=(0,d.wA)(),[y]=l.A.useForm(),[b,f]=(0,_.E)(),k=(0,m.hN)(),w=()=>{v((0,p.Oo)())},O=()=>{y.validateFields().then((()=>{const e=y.getFieldsValue(!0);b(JSON.stringify(e)).then((e=>{var t,a,s;200===(null===e||void 0===e||null===(t=e.data)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.status)?((0,h.wB)(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message,k),w()):e.error&&(0,h.p6)(e,k)}))})).catch((e=>{console.warn(e)}))};return(0,s.useEffect)((()=>{a&&(null===y||void 0===y||y.setFieldsValue({request_tariff:a,user_name:A,user_email:t,user_tariff:x}))}),[y,a,x,A,t]),(0,g.jsx)(i.A,{title:j("Request for changing the pricing plan"),className:"blocks-modal",open:e,onOk:O,onCancel:w,centered:!0,width:572,footer:[(0,g.jsx)(n.Ay,{type:"primary",size:"large",onClick:O,disabled:f.isLoading,children:j("Send")},"submit")],forceRender:!0,children:(0,g.jsxs)(l.A,{form:y,layout:"vertical",name:"switch_to_plan_form",onFinish:O,initialValues:{request_email:t,request_phone:"",comment:"",request_tariff:a},autoComplete:"off",style:{padding:"10px 24px 0"},children:[(0,g.jsxs)(r.A,{gutter:16,children:[(0,g.jsxs)(o.A,{span:12,children:[" ",(0,g.jsx)(l.A.Item,{label:j("Email"),name:"request_email",rules:[{required:!0,message:j("Please enter your email address"),validator:(e,t)=>h.au.test(t)?Promise.resolve():Promise.reject(new Error(j("Please enter the correct email.")))}],children:(0,g.jsx)(c.A,{size:"large",placeholder:j("Email"),type:"email"})})]}),(0,g.jsxs)(o.A,{span:12,children:[" ",(0,g.jsx)(l.A.Item,{label:j("Phone number"),name:"request_phone",children:(0,g.jsx)(c.A,{size:"large",placeholder:j("Phone number")})})]})]}),(0,g.jsx)(l.A.Item,{label:j("Comment"),name:"comment",children:(0,g.jsx)(c.A.TextArea,{placeholder:j("Please add a comment to your request"),autoSize:{minRows:2}})})]})})}},4519:(e,t,a)=>{a.d(t,{A:()=>y});var s=a(92810),l=a(41919),i=a(76662),n=a(81e3),r=a(66726),o=a(43005),c=a(64617),m=a(58013),d=a(23287),u=a(29718),p=a(30961),h=a(20757),_=a(32269),g=a(85163),A=a(90070),x=a(70082);const{Content:j}=l.A,{Paragraph:v}=i.A,y=()=>{const{__:e}=(0,d.s9)(),{projectId:t,emailId:a}=(0,c.g)(),i=(0,A.p6)();let y=(0,c.Zp)();const b=i.get(g.A9.em_template_email)||a;(0,s.useEffect)((()=>{document.body.classList.remove("editor")}),[]);const f=(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(n.A,{size:10,children:[(0,x.jsx)(r.A,{title:e("To emails"),placement:"left",children:(0,x.jsx)(o.Ay,{type:"text",icon:(0,x.jsx)(m.A,{}),onClick:()=>(0,_.XZ)(y,`/projects/${t}`),shape:"circle"})}),(0,x.jsx)(v,{className:"ant-page-header-heading-title",children:e("Select email template")}),(0,x.jsx)(p.A,{isBlocks:!1,templateEmailId:b})]})}),k=(0,x.jsx)(x.Fragment,{});return(0,x.jsxs)(l.A,{className:"template-page",children:[(0,x.jsx)(h.A,{leftBlock:f,rightBlock:k}),(0,x.jsx)(j,{className:"template-page__container",children:(0,x.jsx)("div",{className:"template-page__content container",children:(0,x.jsx)(u.A,{projectId:g.p5,emailsView:g.Y$,templateEmailId:b})})})]})}},70656:(e,t,a)=>{a.d(t,{A:()=>_});var s=a(92810),l=a(37005),i=a(66726),n=a(45934),r=a(39990),o=a(62303),c=a(65983),m=a(69156),d=a(23287),u=a(45695),p=a(85163),h=a(70082);const _=()=>{var e;const{__:t}=(0,d.s9)(),a=(0,n.wA)(),[_]=(0,r.b9)(),[g,A]=(0,s.useState)(null===(e=window)||void 0===e?void 0:e.localStorage.getItem(p.V0.em_color_scheme)),x=(0,u.XW)(),j=(0,s.useCallback)(((e=null)=>{const t=e;(e=>{let t;if((0,m.Hk)(e),null===e){const e=matchMedia(p.F3).matches?p.nd:p.T;localStorage.removeItem(p.V0.em_color_scheme),t=e}else localStorage.setItem(p.V0.em_color_scheme,e),t=e;a((0,c.eX)(t===p.nd?`vs-${t}`:p.T)),(0,m.A5)(t),x({operation:p.Ru.UPDATE_PREVIEW,theme:t}),_({theme:e})})(t),A(t)}),[a,_,x]);return(0,s.useEffect)((()=>{matchMedia(p.F3).onchange=()=>j()}),[j]),(0,h.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,h.jsx)(l.A,{className:"theme-switcher",style:{cursor:"pointer",color:"var(--colorText)"},value:g,options:[{label:(0,h.jsx)(i.A,{title:t("Light theme"),children:(0,h.jsx)(o.A,{icon:"LightMode",style:{fontSize:18}})}),value:p.T},{label:(0,h.jsx)(i.A,{title:t("System theme"),children:(0,h.jsx)(o.A,{icon:"AutoMode",style:{fontSize:18}})}),value:null},{label:(0,h.jsx)(i.A,{title:t("Dark theme"),children:(0,h.jsx)(o.A,{icon:"DarkMode",style:{fontSize:18}})}),value:p.nd}],onChange:e=>j(e)})})}},54565:(e,t,a)=>{a.d(t,{A:()=>b});var s=a(92810),l=a(12280),i=a(29234),n=a(55039),r=a(28372),o=a(45934),c=a(38883),m=a.n(c),d=a(23287),u=a(86739),p=a(8493),h=a(70082);const{utm_source:_,utm_medium:g,utm_campaign:A,utm_term:x,utm_content:j}={utm_source:"utm_source",utm_medium:"utm_medium",utm_campaign:"utm_campaign",utm_term:"utm_term",utm_content:"utm_content"},v={[_]:"",[g]:"",[A]:"",[x]:"",[j]:""},y=({className:e,email:t})=>{const{__:a}=(0,d.s9)(),c=(0,o.wA)(),[y]=l.A.useForm();(0,s.useEffect)((()=>{var e,a,s,l,i;t&&y.setFieldsValue({utm_source:(null===(e=t.utm_parameters)||void 0===e?void 0:e.utm_source)||"",utm_medium:(null===(a=t.utm_parameters)||void 0===a?void 0:a.utm_medium)||"",utm_campaign:(null===(s=t.utm_parameters)||void 0===s?void 0:s.utm_campaign)||"",utm_term:(null===(l=t.utm_parameters)||void 0===l?void 0:l.utm_term)||"",utm_content:(null===(i=t.utm_parameters)||void 0===i?void 0:i.utm_content)||""})}),[y,t]);return(0,h.jsx)("div",{className:m()("settings-panel",{[e]:e}),children:(0,h.jsxs)(l.A,{form:y,layout:"vertical",name:"settings_panel_form_utm",initialValues:v,onValuesChange:e=>{const a=Object.keys(e)[0];switch(a){case _:t.isNew?c((0,p.K3)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_source:e[a]}})})));break;case g:t.isNew?c((0,p.ol)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_medium:e[a]}})})));break;case A:t.isNew?c((0,p.P3)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_campaign:e[a]}})})));break;case x:t.isNew?c((0,p.zH)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_term:e[a]}})})));break;case j:t.isNew?c((0,p.mk)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_content:e[a]}})})));break;default:return}},autoComplete:"off",children:[(0,h.jsx)(i.A,{message:a("The specified parameters will be added to all links when exporting the email."),type:"info",showIcon:!0,style:{marginBottom:20}}),(0,h.jsx)(l.A.Item,{label:a("utm_source"),name:_,tooltip:{title:a("Mandatory. Indicates the traffic source. Example: utm_source=google"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("google")})}),(0,h.jsx)(l.A.Item,{label:a("utm_medium"),name:g,tooltip:{title:a("Identifies what type of link was used, such as cost per click or email. For example: utm_medium=cpc"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("cpc")})}),(0,h.jsx)(l.A.Item,{label:a("utm_campaign"),name:A,tooltip:{title:a("Indicates a specific product promotion or a marketing campaign. Example: utm_campaign=spring_sale"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("spring_sale")})}),(0,h.jsx)(l.A.Item,{label:a("utm_term"),name:x,tooltip:{title:a("Identifies search terms. For example: utm_term=running+shoes"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("running+shoes")})}),(0,h.jsx)(l.A.Item,{label:a("utm_content"),name:j,tooltip:{title:a("Indicates what user clicked to get to the site: a banner or a text link. It is often used for A/B testing and ad campaigns. Example: utm_content=logolink or utm_content=textlink"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("textlink")})})]})})};y.defaultProps={className:"",email:void 0};const b=y},5559:(e,t,a)=>{a.d(t,{A:()=>w});var s=a(92810),l=a(76662),i=a(43005),n=a(4800),r=a(55039),o=a(66726),c=a(45934),m=a(38883),d=a.n(m),u=a(23287),p=a(77532),h=a(62303),_=a(92779),g=a(64936),A=a(95679),x=a(86286),j=a(36404),v=a(56991),y=a(85163),b=a(85677),f=a(70082);const{Text:k}=l.A,w=({onChange:e,value:t,validateStatus:a,placeholder:l,disabled:m,name:w,elementSettings:O,imageInfo:N})=>{var D,C;const I=(0,c.d4)(x.C1),E=(0,c.d4)(x.B$),P=(0,c.d4)(j.yN),L=(0,v.rD)(),{__:S}=(0,u.s9)(),[U,z]=(0,s.useState)({width:"",height:"",size:""}),[T,M]=(0,s.useState)(!1),[G,B]=(0,s.useState)(0);let F=(0,c.wA)();const V=(0,c.d4)(p.js),R=(0,c.d4)(p.Uf),q=(0,c.d4)(p.Ac),K=(0,c.d4)(g.cL),[W]=(0,A.FQ)();let Y=!E&&(null===(D=I.id)||void 0===D?void 0:D.toString())===(null===P||void 0===P||null===(C=P.members)||void 0===C?void 0:C.owner.ID)&&!0;(0,s.useEffect)((()=>{t&&W(t).then((({data:e})=>{e&&z({width:null===e||void 0===e?void 0:e.width,height:null===e||void 0===e?void 0:e.height,size:((null===e||void 0===e?void 0:e.fileSize)/1024).toFixed(0),format:null===e||void 0===e?void 0:e.format})}))}),[t,W]),(0,s.useEffect)((()=>{m||(w.startsWith("src")&&V&&((null===O||void 0===O?void 0:O.type)!==y.bV.CAROUSEL||R===w&&!K)?(e(V),F((0,p.BK)())):"backgroundImage"===w&&q&&((null===O||void 0===O?void 0:O.type)!==y.bV.CAROUSEL||R===w&&!K)&&(e(q),F((0,p.BK)())),K&&(null===O||void 0===O?void 0:O.type)===y.bV.CAROUSEL||!R||F((0,p.BK)()))}),[V,R,q,e,w,m,null===O||void 0===O?void 0:O.type,F,K]);const Q=(e=null)=>{w.startsWith("src")?(F((0,p.Yw)(w)),F((0,p.tm)(t)),F((0,g.qf)(e||y.lx.UPLOAD_IMAGE_MODAL))):w.startsWith("backgroundImage")&&(F((0,p.Yw)(w)),F((0,p.e_)(t)),F((0,g.qf)(e||y.lx.UPLOAD_BACKGROUND_MODAL)))},H=[{label:S("Upload"),key:"Upload",onClick:()=>Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_UPLOAD:y.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD)}];L.imageCenterStockEnabled&&H.push({label:S("Stock"),key:"Stock",onClick:()=>Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_STOCK:y.lx.UPLOAD_BACKGROUND_MODAL_STOCK)}),L.imageCenterGifEnabled&&H.push({label:S("GIF"),key:"GIF",onClick:()=>Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_GIF:y.lx.UPLOAD_BACKGROUND_MODAL_GIF)}),L.elementAIimageEnabled&&H.push({label:S("AI"),key:"AI",onClick:()=>Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_AI:y.lx.UPLOAD_BACKGROUND_MODAL_AI)});return(0,f.jsxs)("div",{className:d()("upload-bg-image",{"upload-bg-image_disabled":m}),children:[!t||t&&"error"===a?(0,f.jsxs)(i.Ay,{type:"default",block:!0,onClick:()=>Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_UPLOAD:y.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD),children:[(0,f.jsx)(h.A,{icon:"Image",style:{fontSize:20,verticalAlign:"text-top"}}),S("Add image")]}):(0,f.jsxs)("div",{className:"ant-input-file-uploader upload-bg-image__inner-wrap",onClick:e=>{var t,a,s,l;null!==(t=e.target)&&void 0!==t&&t.closest(".upload-bg-image__edit")||null!==(a=e.target)&&void 0!==a&&a.closest(".upload-bg-image__edit-menu")||null!==(s=e.target)&&void 0!==s&&s.closest(".upload-bg-image__menu")||null!==(l=e.target)&&void 0!==l&&l.closest(".inputGroup")||Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_UPLOAD:y.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD)},children:[(0,f.jsx)(n.A,{arrow:!0,dropdownRender:()=>L.imagePathDropdownEnabled?(0,f.jsx)("div",{className:"inputGroup",children:(0,f.jsx)(r.A,{prefix:(0,f.jsx)(h.A,{icon:"Image",style:{fontSize:20,verticalAlign:"text-top"}}),allowClear:!0,onChange:e,value:t,placeholder:l,name:w,disabled:m,className:"upload-bg-image__input"})}):(0,f.jsx)(f.Fragment,{}),overlayClassName:"upload-bg-image__dropdown-overlay",overlayStyle:{top:32,marginTop:"8px",width:347,left:0},trigger:["hover"],placement:"bottom",getPopupContainer:e=>e.closest(".upload-bg-image__inner-wrap"),children:(0,f.jsxs)("div",{className:"upload-bg-image__hover-container",style:{display:"flex",alignItems:"center"},children:[(0,f.jsx)("div",{className:"upload-bg-image__uploader",children:(0,f.jsx)("div",{className:"upload-bg-image__uploader-content",children:(0,f.jsxs)("div",{className:"upload-bg-image__uploader-content-inner",children:[(0,f.jsx)("div",{className:"upload-bg-image__uploader-img-wrap",children:(0,f.jsx)("img",{className:"upload-bg-image__uploader-img",src:t,alt:""})}),(0,f.jsx)("div",{className:"upload-bg-image__uploader-icons-wrap",children:(0,f.jsx)("div",{className:"upload-bg-image__uploader-content"})})]})})}),U.width&&U.height?(0,f.jsxs)("div",{className:"image-size",children:[U.width," \xd7 ",U.height,!!O&&(O.type===y.bV.IMG||O.type===y.bV.CAROUSEL)&&" \u2192 "+N.renderedWidth+" \xd7 "+N.renderedHeight,(0,f.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,f.jsxs)("span",{children:[U.size," ",S("kB")]}),U.format&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,f.jsx)("span",{className:"image-size-format",children:U.format})]})]}):(0,f.jsx)(k,{type:"secondary",className:"image-empty-text",children:l})]})}),(0,f.jsx)("div",{style:{flexGrow:1}}),"gif"!==U.format&&L.imageCenterEditorEnabled&&(0,f.jsx)(o.A,{title:S("Edit"),children:(0,f.jsx)(k,{type:"link",className:"upload-bg-image__edit",children:(0,f.jsx)(b.A,{style:{fontSize:16},onClick:e=>{Y?(M(!0),B(5)):(Q(),F((0,g.Wz)(y.lx.IMAGE_EDITOR_MODAL)))}})})}),(0,f.jsx)(n.A,{arrow:{pointAtCenter:!0},placement:"bottom",menu:{items:H},overlayClassName:"upload-bg-image__menu",children:(0,f.jsx)(k,{type:"link",className:"upload-bg-image__edit-menu image-change",children:!t||t&&"error"===a?S("Upload"):(0,f.jsx)(h.A,{style:{fontSize:20},icon:"Reload",onClick:()=>Q(w.startsWith("src")?y.lx.UPLOAD_IMAGE_MODAL_UPLOAD:y.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD)})})},"Actions")]}),(0,f.jsx)(_.A,{open:T,onCancel:()=>{M(!1)},initialSlide:G})]})}},13591:()=>{}}]);
|