@emailmaker/emailmaker 1.0.115 → 1.0.116
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 +63 -66
- package/emailmaker-esm.js +1 -1
- package/emailmaker.d.ts +72 -1
- package/emailmaker.js +1 -1
- package/fonts/SegoeUI-Bold.woff2 +0 -0
- package/fonts/SegoeUI-Semibold.woff2 +0 -0
- package/fonts/SegoeUI.woff2 +0 -0
- package/iframe/429.js +1 -1
- package/iframe/766.js +1 -1
- package/iframe/iframe-eblock.612f5e3292f38c64ed91.html +1 -0
- package/iframe/iframe.612f5e3292f38c64ed91.html +1 -0
- package/iframe/index.html +1 -1
- package/iframe/js/525.5461ecf3.js +1 -0
- package/iframe/js/667.25c21b63.js +1 -0
- package/iframe/js/882.de4b06e1.js +1 -0
- package/iframe/sandbox-eblock.js +1 -1
- package/package.json +1 -1
- package/react/index.js +1 -1
- package/react/index.mjs +1 -1
- package/static/css/2854.257728de.chunk.css +2 -0
- package/static/css/369.d740f134.chunk.css +2 -0
- package/static/css/{2557.2ede4a53.chunk.css → 8727.2f8ba497.chunk.css} +1 -1
- package/static/css/main.8c8bed31.css +2 -0
- package/static/js/1345.70eac4ec.js +3 -0
- package/static/js/1345.70eac4ec.js.LICENSE.txt +101 -0
- package/static/js/1532.5ef52703.js +3 -0
- package/static/js/{2491.d65e25c3.js.LICENSE.txt → 1532.5ef52703.js.LICENSE.txt} +8 -0
- package/static/js/1716.2d977604.js +3 -0
- package/static/js/1716.2d977604.js.LICENSE.txt +11 -0
- package/static/js/1902.9e9ca2af.js +3 -0
- package/static/js/{9503.529740b0.js.LICENSE.txt → 1902.9e9ca2af.js.LICENSE.txt} +41 -5
- package/static/js/1940.e77ca441.js +3 -0
- package/static/js/2022.b4591f7e.js +3 -0
- package/static/js/{566.a759ee99.js.LICENSE.txt → 2022.b4591f7e.js.LICENSE.txt} +0 -13
- package/static/js/{327.31ca6e0d.js → 262.19eb7dd4.js} +3 -3
- package/static/js/2798.9c98addb.js +3 -0
- package/static/js/2798.9c98addb.js.LICENSE.txt +97 -0
- package/static/js/284.7faba600.js +2 -0
- package/static/js/2854.10396f08.js +2 -0
- package/static/js/369.05739401.js +3 -0
- package/static/js/369.05739401.js.LICENSE.txt +10 -0
- package/static/js/3718.76cec3de.js +2 -0
- package/static/js/5215.a9897c36.js +2 -0
- package/static/js/5333.afbfef64.js +3 -0
- package/static/js/{emailmaker_core.03a31b5b.js.LICENSE.txt → 5333.afbfef64.js.LICENSE.txt} +15 -3
- package/static/js/6438.78acfa4a.js +2 -0
- package/static/js/8466.44341e69.js +2 -0
- package/static/js/{8580.fb06c399.js → 8580.4f3e7c56.js} +2 -2
- package/static/js/8722.cfde4eb7.js +3 -0
- package/static/js/8727.97602af2.js +2 -0
- package/static/js/emailmaker_core.d07551cd.js +2 -0
- package/iframe/iframe-eblock.8216ee8050e216f489af.html +0 -1
- package/iframe/iframe.8216ee8050e216f489af.html +0 -1
- package/iframe/js/525.df9e0411.js +0 -1
- package/iframe/js/667.43c0e8ce.js +0 -1
- package/iframe/js/882.89cce971.js +0 -1
- package/static/css/6310.98e625aa.chunk.css +0 -2
- package/static/css/9617.0a8094c7.chunk.css +0 -2
- package/static/css/main.b7275454.css +0 -2
- package/static/js/1902.8d2f3fce.js +0 -2
- package/static/js/1940.524f0244.js +0 -3
- package/static/js/2491.d65e25c3.js +0 -3
- package/static/js/2557.c5dfa9a5.js +0 -2
- package/static/js/284.efb80df6.js +0 -2
- package/static/js/3628.b5eb07c2.js +0 -3
- package/static/js/566.a759ee99.js +0 -3
- package/static/js/6310.cafc9a48.js +0 -2
- package/static/js/7234.d3966e99.js +0 -2
- package/static/js/7673.2db4eeee.js +0 -3
- package/static/js/7673.2db4eeee.js.LICENSE.txt +0 -48
- package/static/js/8013.e4dee415.js +0 -2
- package/static/js/8466.d3339ec9.js +0 -2
- package/static/js/912.42ae1bb7.js +0 -3
- package/static/js/912.42ae1bb7.js.LICENSE.txt +0 -32
- package/static/js/9503.529740b0.js +0 -3
- package/static/js/9578.629b57ca.js +0 -2
- package/static/js/9617.54df440a.js +0 -3
- package/static/js/9617.54df440a.js.LICENSE.txt +0 -32
- package/static/js/emailmaker_core.03a31b5b.js +0 -3
- package/static/media/fb.ff10384394f8044ec889.png +0 -0
- package/static/media/ig.47a89992b4bec92d4364.png +0 -0
- package/static/media/tg.10f004529a98df9732b9.png +0 -0
- package/static/media/vk.fe41df919f4e8718e0b3.png +0 -0
- package/static/media/xa.8e9f984ff84e3f51c6f6.png +0 -0
- package/static/media/yd.c40d05dde64ef695fdf2.png +0 -0
- package/static/media/yt.4ac57e55d158b40c7fc1.png +0 -0
- /package/iframe/js/{525.df9e0411.js.LICENSE.txt → 525.5461ecf3.js.LICENSE.txt} +0 -0
- /package/iframe/js/{667.43c0e8ce.js.LICENSE.txt → 667.25c21b63.js.LICENSE.txt} +0 -0
- /package/iframe/js/{882.89cce971.js.LICENSE.txt → 882.de4b06e1.js.LICENSE.txt} +0 -0
- /package/static/js/{1940.524f0244.js.LICENSE.txt → 1940.e77ca441.js.LICENSE.txt} +0 -0
- /package/static/js/{327.31ca6e0d.js.LICENSE.txt → 262.19eb7dd4.js.LICENSE.txt} +0 -0
- /package/static/js/{3628.b5eb07c2.js.LICENSE.txt → 8722.cfde4eb7.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[5215],{77778:(e,t,n)=>{var a={"./ar_EG.js":[58812,4607],"./az_AZ.js":[15021,3816],"./bg_BG.js":[56773,2844],"./bn_BD.js":[80529,6428],"./by_BY.js":[81946,9200],"./ca_ES.js":[17986,1626],"./context.js":[16617],"./cs_CZ.js":[12225,1377],"./da_DK.js":[64316,2066],"./de_DE.js":[75291,8796],"./el_GR.js":[15623,7288],"./en_GB.js":[59093,1502],"./en_US.js":[41962],"./es_ES.js":[81178,2114],"./et_EE.js":[36517,6135],"./eu_ES.js":[30416,9716],"./fa_IR.js":[13231,5322],"./fi_FI.js":[25492,6552],"./fr_BE.js":[48342,3411],"./fr_CA.js":[77857,494],"./fr_FR.js":[95930,1330],"./ga_IE.js":[67599,1872],"./gl_ES.js":[51733,3711],"./he_IL.js":[38033,7974],"./hi_IN.js":[69329,1332],"./hr_HR.js":[25154,1510],"./hu_HU.js":[35065,6764],"./hy_AM.js":[94116,737],"./id_ID.js":[95788,3624],"./index.js":[46382],"./is_IS.js":[27462,7426],"./it_IT.js":[55575,2408],"./ja_JP.js":[39662,8839],"./ka_GE.js":[93491,1454],"./kk_KZ.js":[99553,4425],"./km_KH.js":[11658,6033],"./kmr_IQ.js":[28493,9508],"./kn_IN.js":[7575,3914],"./ko_KR.js":[90219,5261],"./ku_IQ.js":[83933,5108],"./lt_LT.js":[21627,2438],"./lv_LV.js":[43524,3302],"./mk_MK.js":[27714,8466],"./ml_IN.js":[51146,290],"./mn_MN.js":[41295,6832],"./ms_MY.js":[43824,5980],"./my_MM.js":[13803,6618],"./nb_NO.js":[49583,2917],"./ne_NP.js":[72730,5827],"./nl_BE.js":[79545,5653],"./nl_NL.js":[70818,5466],"./pl_PL.js":[27279,5862],"./pt_BR.js":[7706,4702],"./pt_PT.js":[71586,8534],"./ro_RO.js":[10085,2988],"./ru_RU.js":[81045],"./si_LK.js":[93137,4823],"./sk_SK.js":[29670,6418],"./sl_SI.js":[60153,2827],"./sr_RS.js":[41142,8682],"./sv_SE.js":[14706,77],"./ta_IN.js":[84505,1640],"./th_TH.js":[87643,5902],"./tk_TK.js":[48722,5864],"./tr_TR.js":[1931,4686],"./uk_UA.js":[49301,1788],"./ur_PK.js":[12016,8590],"./useLocale.js":[56775],"./uz_UZ.js":[33923,5432],"./vi_VN.js":[52410,1241],"./zh_CN.js":[57023,9169],"./zh_HK.js":[61608,197],"./zh_TW.js":[69704,4813]};function l(e){if(!n.o(a,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=a[e],l=t[0];return Promise.all(t.slice(1).map(n.e)).then(()=>n(l))}l.keys=()=>Object.keys(a),l.id=77778,e.exports=l},59687:()=>{},46177:()=>{},78892:()=>{},54529:()=>{},69480:()=>{},61578:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});class a{constructor(e=[]){this._inner=e,this._isDisposed=!1}addDisposable(e){return this._inner.push(e),e instanceof a&&e.addDispose(()=>{this.removeDisposable(e)}),e}addDispose(e){this.addDisposable({dispose:e})}removeDisposable(e){const t=this._inner.indexOf(e);t>=0&&this._inner.splice(t,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const e of[...this._inner])e.dispose()}}}},15301:(e,t,n)=>{"use strict";function a(e){return/#set\s*\(\s*.*=.*\)/.test(e)}function l(e){const t=e.indexOf("(");if(t<0)return!0;let n=0,a="",l=!1;for(let i=t;i<e.length;i++){const t=e[i];if(l)l=!1;else if("\\"!==t)if(a)t===a&&(a="");else if('"'!==t&&"'"!==t)if("("!==t){if(")"===t&&(n--,n<0))return!1}else n++;else a=t;else l=!0}return 0===n}function i(e,t){const n=e.length;for(let a=0;a<n;a++){const n=e.charCodeAt(a);if(0===n)return!1;if('"'===t&&34===n)return!1;if("'"===t&&39===n)return!1;if(""===t&&(32===n||9===n||10===n||13===n||12===n||34===n||39===n||60===n||62===n||61===n||96===n))return!1}return!0}n.d(t,{Hk:()=>v,uI:()=>_});const o=new class{constructor(){this._byKey=Object.create(null),this._byValue=Object.create(null)}getOrCreateByKey(e){let t=this._byKey[e];return void 0===t&&(t=function(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",n=new Uint8Array(e);crypto.getRandomValues(n);let a="";for(let l=0;l<e;l++){const e=n[l]%62;a+=t.charAt(e)}return a}(8),this._byKey[e]=t,this._byValue[t]=e),t}getByValue(e){return this._byValue[e]}};function r(e,t){if(void 0!==t&&!i(e,t)){return`%|{${o.getOrCreateByKey(e)}}|%`}return e}function s(e){const t=o.getByValue(e.slice(3,e.length-3));return void 0===t?e:t}function c(e,t,n){if(void 0!==t){if(i(e,t))return e;return`%|{${o.getOrCreateByKey(e)}}|%`}return`\x3c!--${e}--\x3e`}function d(e){if(e.startsWith("\x3c!--")&&e.endsWith("--\x3e")){const t=e.slice(4,-3);return t.replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")}return e}function m(e,t,n){if(void 0!==t){if(i(e,t))return e;return`%|{${o.getOrCreateByKey(e)}}|%`}return n||function(e){const t=/[<>&]/g;let n;for(;null!==(n=t.exec(e));)return!0;return!1}(e)||function(e){let t=e;const n=e.match(/\[%\s*([^%]*?)\s*%\]/);n&&(t=n[1]);const a=t.trim();return/^(IF|ELSE|ELSIF|ELSEIF|END|FOREACH|WHILE|NEXT|LAST|BREAK|DO|UNLESS|CONTINUE|SET|UNSET|DEFINE|INCLUDE)\b/i.test(a)||/\w+\s*\(/.test(a)}(e)?`\x3c!--${e}--\x3e`:e}const u=(p=c,(e,t,n)=>!!l(e)&&p(e,t,n));var p;const g=(h=d,e=>!!l(e.startsWith("\x3c!--")&&e.endsWith("--\x3e")?e.slice(4,-3):e)&&h(e));var h;const f=function(e){return(t,n,i)=>!!l(t)&&(a(t)?e(t,n,i):t)}(c),b=function(e){return t=>{const n=t.startsWith("\x3c!--")&&t.endsWith("--\x3e")?t.slice(4,-3):t;return!!l(n)&&(a(n)?e(t):t)}}(d),v=e=>{e.escape("\x3c!--","--\x3e",e=>e,!1),e.escape("<style","</style>",e=>e,!1),e.escape("<script","<\/script>",e=>e,!1),e.unescape("%|{","}|%",s),e.escape("@{","}",c,!0).unescape("\x3c!--@{","}--\x3e",d,!0),e.unescape("\x3c!--%%%{{{","}}}%%%--\x3e",e=>e.substring(10,e.length-9),!1),e.escape("${","}",r,!0),e.escape("{{","}}",r,!0),e.escape("{%","%}",c).unescape("\x3c!--{%","%}--\x3e",d),e.escape("{#","#}",c).unescape("\x3c!--{#","#}--\x3e",d),e.escape("[%","%]",m,!0).unescape("\x3c!--[%","%]--\x3e",d,!0),e.createSyntax("getresponse").escape("[[IF","]]",c).escape("[[if","]]",c).escape("[[ELSE]]","",c).escape("[[else]]","",c).escape("[[ENDIF]]","",c).escape("[[endif]]","",c).unescape("\x3c!--[[IF","]]--\x3e",d).unescape("\x3c!--[[if","]]--\x3e",d).unescape("\x3c!--[[ELSE]]","--\x3e",d).unescape("\x3c!--[[else]]","--\x3e",d).unescape("\x3c!--[[ENDIF]]","--\x3e",d).unescape("\x3c!--[[endif]]","--\x3e",d),e.createSyntax("ExpertSender").escape("<if",">",c).escape("</if",">",c).escape("<else",">",c).escape("</else",">",c).escape("<var ",">",c,!0).unescape("\x3c!--<if ",">--\x3e",d).unescape("\x3c!--</if",">--\x3e",d).unescape("\x3c!--<else ",">--\x3e",d).unescape("\x3c!--</else",">--\x3e",d).unescape("\x3c!--<var",">--\x3e",d,!0),e.createSyntax("velocity").escape("#if",")",u).escape("#elseif",")",u).escape("#else","",c).escape("#foreach",")",u).escape("#macro",")",u).escape("#set",")",f,!0).escape("#parse",")",u).escape("#include",")",u).escape("#evaluate",")",u).escape("#end","",c).escape("#break","",c).escape("#stop","",c).unescape("\x3c!--#macro","--\x3e",g).unescape("\x3c!--#if","--\x3e",g).unescape("\x3c!--#elseif","--\x3e",g).unescape("\x3c!--#else","--\x3e",d).unescape("\x3c!--#foreach","--\x3e",g).unescape("\x3c!--#parse","--\x3e",g).unescape("\x3c!--#include","--\x3e",g).unescape("\x3c!--#evaluate","--\x3e",g).unescape("\x3c!--#end","--\x3e",d).unescape("\x3c!--#break","--\x3e",d).unescape("\x3c!--#stop","--\x3e",d).unescape("\x3c!--#set","--\x3e",b,!0),e.escape("*|","|*",c).unescape("\x3c!--*|","|*--\x3e",d)};function E(e,t,n,a,l=!1){const i=[];if(n&&(t=t.filter(e=>e.isVariable)),!t.length)return i;const o=function(e,t){const n=t.reduce((e,{mapFn:t,start:n,end:a,syntax:l})=>(e[n]||(e[n]=[]),e[n].push({value:a,mapFn:t,syntax:l}),e),Object.create(null)),a=Object.keys(n).map(e=>e.replace(/[-[\]{}()*+?.,\\^$|]/g,"\\$&")).join("|"),l=new RegExp(a,"g"),i=[];let o;for(;null!==(o=l.exec(e));){const e=o[0];i.push({start:o.index,startToken:e,endTokens:n[e]})}return i}(e,t);let r,s=!1,c=!1,d=!1,m=0;for(let p=0;p<o.length;p++){var u;const{start:t,startToken:n,endTokens:g}=o[p];if(a)c=!0,r='"';else for(let a=m;a<t;a++){const t=e[a];c?'"'===r||"'"===r?t===r&&(c=!1,r=void 0):d&&/[\s>]/.test(t)&&(c=!1,r=void 0,d=!1):"<"===t?s=!0:">"===t?s=!1:!s||'"'!==t&&"'"!==t?s&&/\S/.test(t)&&void 0===r&&"="===e[a-1]&&!['"',"'","`"].includes(t)&&(c=!0,r="",d=!0):(c=!0,r=t,d=!1)}m=t;const h=c?null!==(u=r)&&void 0!==u?u:"":void 0;for(const{mapFn:a,value:r}of g){let c=t+n.length,d=e.indexOf(r,c);for(;-1!==d;){let m=d,u=t+n.length,g=0;for(;-1!==m;){const t=e.indexOf(n,u);if(-1!==t&&t<m)g++,u=t+n.length,m=e.indexOf(r,u);else{if(!(g>0))break;g--,u=m+r.length,m=e.indexOf(r,u)}}if(m<0)break;const f=m+r.length,b=e.substring(t,f),v=a(b,h,s);if(!1===v){c=d+Math.max(r.length,1),d=e.indexOf(r,c);continue}(l||v!==b)&&i.push({range:{start:t,end:f},text:l?b:v});const E=o.findIndex(({start:e})=>e>=f);p=E>p?E-1:o.length;break}}}return i}function y(e,t){if(!t.length)return e;const n=t.slice().sort((e,t)=>t.range.start-e.range.start);let a=e;for(const{text:l,range:i}of n)a=a.slice(0,i.start)+l+a.slice(i.end);return a}class _{constructor(e=v){this._disposables=[],this._escapes=[],this._unescapes=[];const{_escapes:t,_unescapes:n}=this;e({createSyntax(e){return{...this,syntax:e}},escape(e,n,a,l){return t.push({start:e,end:n,mapFn:a,isVariable:l,syntax:this.syntax||e}),this},unescape(e,t,a,l){return n.push({start:e,end:t,mapFn:a,isVariable:l,syntax:this.syntax||e}),this}})}getMappings(e,t,n){return E(e,this._escapes,t,n)}getRevertMappings(e,t){return E(e,this._unescapes,t)}getDetectedMappings(e,t,n){return E(e,this._escapes,t,n,!0)}getEscapedText(e,t){return y(e,this.getMappings(e,t))}getUnescapedText(e,t){return y(e,this.getRevertMappings(e,t))}hasDetectedMappings(e,t,n){return this.getDetectedMappings(e,t,n).length>0}addDisposable(e){this._disposables.push(e)}dispose(){for(const e of this._disposables)e.dispose()}}},56211:(e,t,n)=>{"use strict";n.d(t,{vl:()=>l});var a=n(61578);class l extends a.j{constructor(e={}){super(),this._options=e,this._listeners=[],this.on=this.addEventListener.bind(this),this.once=(e,t=0)=>{const n=this.on(t=>{const a=e(t);return n.dispose(),a},t);return n},this.un=e=>{const t=this._listeners.findIndex(([t])=>t===e);t>=0&&this._listeners.splice(t,1),0===this._listeners.length&&this._options.onLastListenerRemove&&this._options.onLastListenerRemove()},this.event=this.on}addEventListener(e,t=0){const n=this._listeners.findIndex(([e,n])=>n<t);return this._listeners.splice(n<0?this._listeners.length:n,0,[e,t]),1===this._listeners.length&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(),{dispose:()=>this.un(e)}}fire(e){if(!this.isDisposed()){const n=[...this._listeners];for(const[a]of n)try{a(e)}catch(t){}}}hasListeners(){return!!this._listeners.length}}a.j},29747:(e,t,n)=>{"use strict";let a;async function l(){return a||(a=await n.e(1729).then(n.t.bind(n,1729,19)).then(e=>e.default))}n.d(t,{F:()=>l})},29338:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,R:()=>l});var a=n(1528);function l(e){const t=(0,a.xy)(e);if(!e.querySelector("style[amp4email-boilerplate]")){const n=e.createElement("style");n.setAttribute("amp4email-boilerplate",""),n.innerHTML="body{visibility:hidden}",t.prepend(n)}}function i(e){const t=e.querySelector("style[amp4email-boilerplate]");t&&t.remove()}},20414:(e,t,n)=>{"use strict";n.d(t,{Vq:()=>i,gP:()=>a,zq:()=>l});const a="https://cdn.ampproject.org/v0",l=`${a}.js`,i=`script[src='${l}']`},95583:(e,t,n)=>{"use strict";n.d(t,{C:()=>l});var a=n(1528);function l(e){const t=e.querySelectorAll("meta");for(const a of t){const e=a.getAttribute("charset");if(e)return void("utf-8"!==e&&a.setAttribute("charset","utf-8"))}const n=(0,a.xy)(e),l=e.createElement("meta");l.setAttribute("charset","utf-8"),n.insertBefore(l,n.firstChild)}},65174:(e,t,n)=>{"use strict";function a(e,t,n){const a=n('script:not([type="application/ld+json"])'),l=e.querySelectorAll(a);for(const o of l){var i;null!==(i=o.getAttribute("src"))&&void 0!==i&&i.startsWith("https://cdn.ampproject.org/")||o.closest("amp-state")&&"application/json"===o.getAttribute("type")||o.remove()}}n.d(t,{y:()=>a})},1528:(e,t,n)=>{"use strict";function a(e){let t=e.documentElement;return t||(t=e.createElement("html"),e.appendChild(t)),t}function l(e){let t=e.head;if(!t){t=e.createElement("head");const n=a(e);n.insertBefore(t,n.firstChild)}return t}function i(e){const t=Object.create(null),n=e.getAttributeNames();for(const a of n)t[a]=e.getAttribute(a);return t}function o(e){for(const t of document.querySelectorAll("iframe"))if(t.contentDocument===e.ownerDocument)return t}n.d(t,{ep:()=>a,gu:()=>i,xm:()=>o,xy:()=>l})},14139:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});const a={wordwrap:200,tables:!0,selectors:[...n(20110).lp.selectors||[],{selector:"table",format:"dataTable"},{selector:"ul",format:"list"},{selector:"ol",format:"list"},{selector:"pre",format:"block"},{selector:"blockquote",format:"blockquote"}],baseElements:{selectors:["body","table"]},preserveNewlines:!1,longWordSplit:{forceWrapOnLimit:!1}}},20110:(e,t,n)=>{"use strict";n.d(t,{lp:()=>ye,G9:()=>Ae});var a={};n.r(a),n.d(a,{block:()=>U,blockHtml:()=>X,blockString:()=>H,blockTag:()=>G,inline:()=>z,inlineHtml:()=>K,inlineString:()=>D,inlineSurround:()=>Y,inlineTag:()=>$,skip:()=>W});var l={};n.r(l),n.d(l,{anchor:()=>ge,blockquote:()=>de,dataTable:()=>Ee,heading:()=>ce,horizontalLine:()=>oe,image:()=>pe,lineBreak:()=>le,orderedList:()=>be,paragraph:()=>re,pre:()=>se,table:()=>ve,unorderedList:()=>fe,wbr:()=>ie});var i=n(19481);function o(e){return new i.LC(r(e))}function r(e){const t=e.map(s);return(e,...n)=>t.flatMap(t=>t(e,...n))}function s(e){switch(e.type){case"terminal":return()=>[e.valueContainer];case"tagName":return function(e){const t={};for(const n of e.variants)t[n.value.toLowerCase()]=r(n.cont);return(e,...n)=>{var a;const l=null===(a=e.tagName)||void 0===a?void 0:a.toLowerCase(),i=l&&t[l];return i?i(e,...n):[]}}(e);case"attrValue":return function(e){const t=[];for(const a of e.matchers){const e=a.predicate,n=r(a.cont);t.push((t,a,...l)=>e(t)?n(a,...l):[])}const n=e.name;return(e,...a)=>{const l=e.getAttribute(n);return null!==l?t.flatMap(t=>t(l,e,...a)):[]}}(e);case"attrPresence":return function(e){const t=e.name,n=r(e.cont);return(e,...a)=>e.hasAttribute(t)?n(e,...a):[]}(e);case"pushElement":return function(e){const t=r(e.cont),n="+"===e.combinator?c:d;return(e,...a)=>{const l=n(e);return l?t(l,e,...a):[]}}(e);case"popElement":return function(e){const t=r(e.cont);return(e,n,...a)=>t(n,...a)}(e);default:return()=>[]}}function c(e){let t=e.previousSibling;for(;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}function d(e){return e.parentElement}var m=n(39500),u=n.n(m);function p(e,t,n=()=>{}){if(void 0===e){const e=function(...n){return t(e,...n)};return e}return e>=0?function(...a){return t(p(e-1,t,n),...a)}:n}function g(e,t){let n=0,a=e.length;for(;n<a&&e[n]===t;)++n;for(;a>n&&e[a-1]===t;)--a;return n>0||a<e.length?e.substring(n,a):e}function h(e,t){const n=new Map;for(let a=e.length;a-- >0;){const l=e[a],i=t(l);n.set(i,n.has(i)?u()(l,n.get(i),{arrayMerge:f}):l)}return[...n.values()].reverse()}const f=(e,t,n)=>[...t];function b(e,t){for(const n of t){if(!e)return;e=e[n]}return e}function v(e,t="a",n=26){const a=[];do{e-=1,a.push(e%n),e=e/n|0}while(e>0);const l=t.charCodeAt(0);return a.reverse().map(e=>String.fromCharCode(l+e)).join("")}const E=["I","X","C","M"],y=["V","L","D"];function _(e){return[...e+""].map(e=>+e).reverse().map((e,t)=>e%5<4?(e<5?"":y[t])+E[t].repeat(e%5):E[t]+(e<5?y[t]:E[t+1])).reverse().join("")}class C{constructor(e,t=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=t||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=b(e,["longWordSplit","wrapCharacters"])||[],this.forceWrapOnLimit=b(e,["longWordSplit","forceWrapOnLimit"])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e,t=!1){this.nextLineAvailableChars<=0&&!t&&this.startNewLine();const n=0===this.nextLineWords.length,a=e.length+(n?0:1);if(a<=this.nextLineAvailableChars||t)this.nextLineWords.push(e),this.nextLineAvailableChars-=a;else{const[t,...a]=this.splitLongWord(e);n||this.startNewLine(),this.nextLineWords.push(t),this.nextLineAvailableChars-=t.length;for(const e of a)this.startNewLine(),this.nextLineWords.push(e),this.nextLineAvailableChars-=e.length}}popWord(){const e=this.nextLineWords.pop();if(void 0!==e){const t=0===this.nextLineWords.length,n=e.length+(t?0:1);this.nextLineAvailableChars+=n}return e}concatWord(e,t=!1){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e,t),this.wordBreakOpportunity=!1;else{const n=this.popWord();this.pushWord(n?n.concat(e):e,t)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return 0===this.lines.length&&0===this.nextLineWords.length}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(e=>e.join(" ")).join("\n")}splitLongWord(e){const t=[];let n=0;for(;e.length>this.maxLineLength;){const a=e.substring(0,this.maxLineLength),l=e.substring(this.maxLineLength),i=a.lastIndexOf(this.wrapCharacters[n]);if(i>-1)e=a.substring(i+1)+l,t.push(a.substring(0,i+1));else{if(n++,!(n<this.wrapCharacters.length)){if(this.forceWrapOnLimit){if(t.push(a),(e=l).length>this.maxLineLength)continue}else e=a+l;break}e=a+l}}return t.push(e),t}}class k{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}}class A extends k{constructor(e,t=null,n=1,a=void 0){super(t),this.leadingLineBreaks=n,this.inlineTextBuilder=new C(e,a),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}}class w extends A{constructor(e,t=null,{interRowLineBreaks:n=1,leadingLineBreaks:a=2,maxLineLength:l,maxPrefixLength:i=0,prefixAlign:o="left"}={}){super(e,t,a,l),this.maxPrefixLength=i,this.prefixAlign=o,this.interRowLineBreaks=n}}class x extends A{constructor(e,t=null,{leadingLineBreaks:n=1,maxLineLength:a,prefix:l=""}={}){super(e,t,n,a),this.prefix=l}}class S extends k{constructor(e=null){super(e),this.rows=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}}class L extends k{constructor(e=null){super(e),this.cells=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}}class T extends k{constructor(e,t=null,n=void 0){super(t),this.inlineTextBuilder=new C(e,n),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}}class I extends k{constructor(e=null,t){super(e),this.transform=t}}class N{constructor(e){this.whitespaceChars=e.preserveNewlines?e.whitespaceCharacters.replace(/\n/g,""):e.whitespaceCharacters;const t=(n=this.whitespaceChars,[...n].map(e=>"\\u"+e.charCodeAt(0).toString(16).padStart(4,"0")).join(""));var n;if(this.leadingWhitespaceRe=new RegExp(`^[${t}]`),this.trailingWhitespaceRe=new RegExp(`[${t}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${t}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${t}])`,"g"),this.newlineOrNonNewlineStringRe=new RegExp("(\\n|[^\\n]+)","g"),e.preserveNewlines){const e=new RegExp(`\\n|[^\\n${t}]+`,"gm");this.shrinkWrapAdd=function(t,n,a=e=>e,l=!1){if(!t)return;const i=n.stashedSpace;let o=!1,r=e.exec(t);if(r)for(o=!0,"\n"===r[0]?n.startNewLine():i||this.testLeadingWhitespace(t)?n.pushWord(a(r[0]),l):n.concatWord(a(r[0]),l);null!==(r=e.exec(t));)"\n"===r[0]?n.startNewLine():n.pushWord(a(r[0]),l);n.stashedSpace=i&&!o||this.testTrailingWhitespace(t)}}else{const e=new RegExp(`[^${t}]+`,"g");this.shrinkWrapAdd=function(t,n,a=e=>e,l=!1){if(!t)return;const i=n.stashedSpace;let o=!1,r=e.exec(t);if(r)for(o=!0,i||this.testLeadingWhitespace(t)?n.pushWord(a(r[0]),l):n.concatWord(a(r[0]),l);null!==(r=e.exec(t));)n.pushWord(a(r[0]),l);n.stashedSpace=i&&!o||this.testTrailingWhitespace(t)}}}addLiteral(e,t,n=!0){if(!e)return;const a=t.stashedSpace;let l=!1,i=this.newlineOrNonNewlineStringRe.exec(e);if(i)for(l=!0,"\n"===i[0]?t.startNewLine():a?t.pushWord(i[0],n):t.concatWord(i[0],n);null!==(i=this.newlineOrNonNewlineStringRe.exec(e));)"\n"===i[0]?t.startNewLine():t.pushWord(i[0],n);t.stashedSpace=a&&!l}testLeadingWhitespace(e){return this.leadingWhitespaceRe.test(e)}testTrailingWhitespace(e){return this.trailingWhitespaceRe.test(e)}testContainsWords(e){return!this.allWhitespaceOrEmptyRe.test(e)}countNewlinesNoWords(e){this.newlineOrNonWhitespaceRe.lastIndex=0;let t,n=0;for(;null!==(t=this.newlineOrNonWhitespaceRe.exec(e));){if("\n"!==t[0])return 0;n++}return n}}class B{constructor(e,t,n=void 0){this.options=e,this.picker=t,this.metadata=n,this.whitespaceProcessor=new N(e),this._stackItem=new A(e),this._wordTransformer=void 0}pushWordTransform(e){this._wordTransformer=new I(this._wordTransformer,e)}popWordTransform(){if(!this._wordTransformer)return;const e=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,e}startNoWrap(){this._stackItem.isNoWrap=!0}stopNoWrap(){this._stackItem.isNoWrap=!1}_getCombinedWordTransformer(){const e=this._wordTransformer?e=>M(e,this._wordTransformer):void 0,t=this.options.encodeCharacters;return e?t?n=>t(e(n)):e:t}_popStackItem(){const e=this._stackItem;return this._stackItem=e.next,e}addLineBreak(){(this._stackItem instanceof A||this._stackItem instanceof x||this._stackItem instanceof T)&&(this._stackItem.isPre?this._stackItem.rawText+="\n":this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof A||this._stackItem instanceof x||this._stackItem instanceof T)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(e,{noWordTransform:t=!1}={}){if(this._stackItem instanceof A||this._stackItem instanceof x||this._stackItem instanceof T)if(this._stackItem.isPre)this._stackItem.rawText+=e;else if(0!==e.length&&(!this._stackItem.stashedLineBreaks||this.whitespaceProcessor.testContainsWords(e))){if(this.options.preserveNewlines){const t=this.whitespaceProcessor.countNewlinesNoWords(e);if(t>0)return void this._stackItem.inlineTextBuilder.startNewLine(t)}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(e,this._stackItem.inlineTextBuilder,t?void 0:this._getCombinedWordTransformer(),this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}addLiteral(e){(this._stackItem instanceof A||this._stackItem instanceof x||this._stackItem instanceof T)&&0!==e.length&&(this._stackItem.isPre?this._stackItem.rawText+=e:(this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.addLiteral(e,this._stackItem.inlineTextBuilder,this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0))}openBlock({leadingLineBreaks:e=1,reservedLineLength:t=0,isPre:n=!1}={}){const a=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-t);this._stackItem=new A(this.options,this._stackItem,e,a),n&&(this._stackItem.isPre=!0)}closeBlock({trailingLineBreaks:e=1,blockTransform:t}={}){const n=this._popStackItem(),a=t?t(R(n)):R(n);O(this._stackItem,a,n.leadingLineBreaks,Math.max(n.stashedLineBreaks,e))}openList({maxPrefixLength:e=0,prefixAlign:t="left",interRowLineBreaks:n=1,leadingLineBreaks:a=2}={}){this._stackItem=new w(this.options,this._stackItem,{interRowLineBreaks:n,leadingLineBreaks:a,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:e,prefixAlign:t})}openListItem({prefix:e=""}={}){if(!(this._stackItem instanceof w))throw new Error("Can't add a list item to something that is not a list! Check the formatter.");const t=this._stackItem,n=Math.max(e.length,t.maxPrefixLength),a=Math.max(20,t.inlineTextBuilder.maxLineLength-n);this._stackItem=new x(this.options,t,{prefix:e,maxLineLength:a,leadingLineBreaks:t.interRowLineBreaks})}closeListItem(){const e=this._popStackItem(),t=e.next,n=Math.max(e.prefix.length,t.maxPrefixLength),a="\n"+" ".repeat(n);O(t,("right"===t.prefixAlign?e.prefix.padStart(n):e.prefix.padEnd(n))+R(e).replace(/\n/g,a),e.leadingLineBreaks,Math.max(e.stashedLineBreaks,t.interRowLineBreaks))}closeList({trailingLineBreaks:e=2}={}){const t=this._popStackItem(),n=R(t);n&&O(this._stackItem,n,t.leadingLineBreaks,e)}openTable(){this._stackItem=new S(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof S))throw new Error("Can't add a table row to something that is not a table! Check the formatter.");this._stackItem=new L(this._stackItem)}openTableCell({maxColumnWidth:e}={}){if(!(this._stackItem instanceof L))throw new Error("Can't add a table cell to something that is not a table row! Check the formatter.");this._stackItem=new T(this.options,this._stackItem,e)}closeTableCell({colspan:e=1,rowspan:t=1}={}){const n=this._popStackItem(),a=g(R(n),"\n");n.next.cells.push({colspan:e,rowspan:t,text:a})}closeTableRow(){const e=this._popStackItem();e.next.rows.push(e.cells)}closeTable({tableToString:e,leadingLineBreaks:t=2,trailingLineBreaks:n=2}){const a=e(this._popStackItem().rows);a&&O(this._stackItem,a,t,n)}toString(){return R(this._stackItem.getRoot())}}function R(e){if(!(e instanceof A||e instanceof x||e instanceof T))throw new Error("Only blocks, list items and table cells can be requested for text contents.");return e.inlineTextBuilder.isEmpty()?e.rawText:e.rawText+e.inlineTextBuilder.toString()}function O(e,t,n,a){if(!(e instanceof A||e instanceof x||e instanceof T))throw new Error("Only blocks, list items and table cells can contain text.");const l=R(e),i=Math.max(e.stashedLineBreaks,n);e.inlineTextBuilder.clear(),l?e.rawText=l+"\n".repeat(i)+t:(e.rawText=t,e.leadingLineBreaks=i),e.stashedLineBreaks=a}function M(e,t){return t?M(t.transform(e),t.next):e}var P=n(1331);function V(e={}){const t=e.selectors.filter(e=>!e.format);if(t.length)throw new Error("Following selectors have no specified format: "+t.map(e=>`\`${e.selector}\``).join(", "));const n=new i.bA(e.selectors.map(e=>[e.selector,e])).build(o);"function"!==typeof e.encodeCharacters&&(e.encodeCharacters=function(e){if(!e||0===Object.keys(e).length)return;const t=Object.entries(e).filter(([,e])=>!1!==e),n=new RegExp(t.map(([e])=>{return`(${t=[...e][0],t.replace(/[\s\S]/g,e=>"\\u"+e.charCodeAt().toString(16).padStart(4,"0"))})`;var t}).join("|"),"g"),a=t.map(([,e])=>e),l=(e,...t)=>a[t.findIndex(e=>e)];return e=>e.replace(n,l)}(e.encodeCharacters));const a=new i.bA(e.baseElements.selectors.map((e,t)=>[e,t+1])).build(o);function l(t){return function(e,t,n){const a=[];function l(e,l){l=[...l].slice(0,t.limits.maxChildNodes);for(const i of l){if(!(0,P.vq)(i))continue;const l=n.pick1(i);if(l>0?a.push({selectorIndex:l,element:i}):i.childNodes&&e([...i.childNodes]),a.length>=t.limits.maxBaseElements)return}}const i=p(t.limits.maxDepth,l);i(e),"occurrence"!==t.baseElements.orderBy&&a.sort((e,t)=>e.selectorIndex-t.selectorIndex);return t.baseElements.returnDomByDefault&&0===a.length?e:a.map(e=>e.element)}(t,e,a)}const r=p(e.limits.maxDepth,F,function(t,n){n.addInline(e.limits.ellipsis||"")});return function(t,a=void 0){return function(e,t,n,a,l,i){const o=l([...e.childNodes]),r=new B(n,a,t);return i(o,r),r.toString()}(t,a,e,n,l,r)}}function F(e,t,n){if(!t)return;const a=n.options;t.length>a.limits.maxChildNodes&&(t=t.slice(0,a.limits.maxChildNodes)).push(document.createTextNode(a.limits.ellipsis||""));for(const l of t)switch(l.nodeType){case l.TEXT_NODE:n.addInline(l.data);break;case l.ELEMENT_NODE:{const t=n.picker.pick1(l),i=a.formatters[t.format];i&&i(l,e,n,t.options||{});break}}}var j=n(43083);function W(e,t,n,a){}function D(e,t,n,a){n.addLiteral(a.string||"")}function H(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),n.addLiteral(a.string||""),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function z(e,t,n,a){t([...e.childNodes],n)}function U(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),t([...e.childNodes],n),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function q(e){return(0,j.Ll)(e)}function Z(e){return`</${e.tagName.toLoserCase()}>`}function $(e,t,n,a){n.startNoWrap(),n.addLiteral(q(e)),n.stopNoWrap(),t([...e.childNodes],n),n.startNoWrap(),n.addLiteral(Z(e)),n.stopNoWrap()}function G(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral(q(e)),n.stopNoWrap(),t([...e.childNodes],n),n.startNoWrap(),n.addLiteral(Z(e)),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function K(e,t,n,a){n.startNoWrap(),n.addLiteral((0,P.b6)(e)),n.stopNoWrap()}function X(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral((0,P.b6)(e)),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function Y(e,t,n,a){n.addLiteral(a.prefix||""),t([...e.childNodes],n),n.addLiteral(a.suffix||"")}function J(e,t){return e[t]||(e[t]=[]),e[t]}function Q(e,t=0){for(;e[t];)t++;return t}function ee(e,t,n,a){for(let l=0;l<e.rowspan;l++){const i=J(t,n+l);for(let t=0;t<e.colspan;t++)i[a+t]=e}}function te(e,t){return void 0===e[t]&&(e[t]=0===t?0:1+te(e,t-1)),e[t]}function ne(e,t,n,a){e[t+n]=Math.max(te(e,t+n),te(e,t)+a)}function ae(e,t,n){const a=[];let l=0;const i=e.length,o=[0];for(let c=0;c<i;c++){const n=J(a,c),i=e[c];let r=0;for(let e=0;e<i.length;e++){const l=i[e];r=Q(n,r),ee(l,a,c,r),r+=l.colspan,l.lines=l.text.split("\n");const s=l.lines.length;ne(o,c,l.rowspan,s+t)}l=n.length>l?n.length:l}!function(e,t){for(let n=0;n<t;n++){const t=J(e,n);for(let a=0;a<n;a++){const l=J(e,a);if(t[a]||l[n]){const e=t[a];t[a]=l[n],l[n]=e}}}}(a,i>l?i:l);const r=[],s=[0];for(let c=0;c<l;c++){let e,t=0;const l=Math.min(i,a[c].length);for(;t<l;)if(e=a[c][t],e){if(!e.rendered){let a=0;for(let n=0;n<e.lines.length;n++){const l=e.lines[n],i=o[t]+n;r[i]=(r[i]||"").padEnd(s[c])+l,a=l.length>a?l.length:a}ne(s,c,e.colspan,a+n),e.rendered=!0}t+=e.rowspan}else{const e=o[t];r[e]=r[e]||"",t++}}return r.join("\n")}function le(e,t,n,a){n.addLineBreak()}function ie(e,t,n,a){n.addWordBreakOpportunity()}function oe(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),n.addInline("-".repeat(a.length||n.options.wordwrap||40)),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function re(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),t([...e.childNodes],n),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function se(e,t,n,a){n.openBlock({isPre:!0,leadingLineBreaks:a.leadingLineBreaks||2}),t([...e.childNodes],n),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function ce(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),!1!==a.uppercase?(n.pushWordTransform(e=>e.toUpperCase()),t([...e.childNodes],n),n.popWordTransform()):t([...e.childNodes],n),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function de(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2,reservedLineLength:2}),t([...e.childNodes],n),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2,blockTransform:e=>(!1!==a.trimEmptyLines?g(e,"\n"):e).split("\n").map(e=>"> "+e).join("\n")})}function me(e,t){if(!t)return e;return("string"===typeof t[0]?t[0]:"[")+e+("string"===typeof t[1]?t[1]:"]")}function ue(e,t,n,a,l){const i="function"===typeof t?t(e,a,l):e;return"/"===i[0]&&n?function(e,t){let n=e.length;for(;n>0&&e[n-1]===t;)--n;return n<e.length?e.substring(0,n):e}(n,"/")+i:i}function pe(e,t,n,a){const l=e.getAttribute("alt")||"",i=e.getAttribute("src")?ue(e.getAttribute("src"),a.pathRewrite,a.baseUrl,n.metadata,e):"",o=i?l?l+" "+me(i,a.linkBrackets):me(i,a.linkBrackets):l;n.addInline(o,{noWordTransform:!0})}function ge(e,t,n,a){const l=function(){if(a.ignoreHref)return"";if(!e.getAttribute("href"))return"";let t=e.getAttribute("href").replace(/^mailto:/,"");return a.noAnchorUrl&&"#"===t[0]?"":(t=ue(t,a.pathRewrite,a.baseUrl,n.metadata,e),t)}();if(l){let i="";n.pushWordTransform(e=>(e&&(i+=e),e)),t([...e.childNodes],n),n.popWordTransform();a.hideLinkHrefIfSameAsText&&l===i||n.addInline(i?" "+me(l,a.linkBrackets):l,{noWordTransform:!0})}else t([...e.childNodes],n)}function he(e,t,n,a,l){const i="li"===b(e,["parent","name"]);let o=0;const r=([...e.childNodes]||[]).filter(e=>!(0,P.ir)(e)||!/^\s*$/.test(e.data)).map(function(e){var t;if("li"!==(null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase()))return{node:e,prefix:""};const n=i?l().trimStart():l();return n.length>o&&(o=n.length),{node:e,prefix:n}});if(r.length){n.openList({interRowLineBreaks:1,leadingLineBreaks:i?1:a.leadingLineBreaks||2,maxPrefixLength:o,prefixAlign:"left"});for(const{node:e,prefix:a}of r)n.openListItem({prefix:a}),t([e],n),n.closeListItem();n.closeList({trailingLineBreaks:i?1:a.trailingLineBreaks||2})}}function fe(e,t,n,a){const l=a.itemPrefix||" * ";return he(e,t,n,a,()=>l)}function be(e,t,n,a){var l,i;let o=Number((null===(l=e.getAttribute)||void 0===l?void 0:l.call(e,"start"))||"1");const r=function(e="1"){switch(e){case"a":return e=>v(e,"a");case"A":return e=>v(e,"A");case"i":return e=>_(e).toLowerCase();case"I":return e=>_(e);default:return e=>e.toString()}}(null===(i=e.getAttribute)||void 0===i?void 0:i.call(e,"type"));return he(e,t,n,a,()=>" "+r(o++)+". ")}function ve(e,t,n,a){return function(e,t){if(!0===t)return!0;if(!e)return!1;const{classes:n,ids:a}=function(e){const t=[],n=[];for(const a of e)a.startsWith(".")?t.push(a.substring(1)):a.startsWith("#")&&n.push(a.substring(1));return{classes:t,ids:n}}(t),l=(e.getAttribute("class")||"").split(" "),i=(e.getAttribute("id")||"").split(" ");return l.some(e=>n.includes(e))||i.some(e=>a.includes(e))}(e,n.options.tables)?Ee(e,t,n,a):function(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks}),t([...e.childNodes],n),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks})}(e,t,n,a)}function Ee(e,t,n,a){function l(e){const l=e.getAttribute("colspan")||1,i=e.getAttribute("rowspan")||1;n.openTableCell({maxColumnWidth:a.maxColumnWidth}),t([...e.childNodes],n),n.closeTableCell({colspan:l,rowspan:i})}n.openTable(),[...e.childNodes].forEach(function e(t){var i;if(!(0,P.vq)(t))return;const o=!1!==a.uppercaseHeaderCells?e=>{n.pushWordTransform(e=>e.toUpperCase()),l(e),n.popWordTransform()}:l;switch(null===(i=t.tagName)||void 0===i?void 0:i.toLowerCase()){case"thead":case"tbody":case"tfoot":case"center":return void[...t.childNodes].forEach(e);case"tr":n.openTableRow();for(const e of[...t.childNodes])if((0,P.vq)(e))switch(e.tagName.toLowerCase()){case"th":o(e);break;case"td":l(e)}n.closeTableRow()}}),n.closeTable({tableToString:e=>{var t,n;return ae(e,null!==(t=a.rowSpacing)&&void 0!==t?t:0,null!==(n=a.colSpacing)&&void 0!==n?n:3)},leadingLineBreaks:a.leadingLineBreaks,trailingLineBreaks:a.trailingLineBreaks})}const ye={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeEntities:!0,encodeCharacters:{},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"aside",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"footer",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"form",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"nav",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:" \t\r\n\f\u200b"},_e=(e,t,n)=>[...t],Ce=(e,t,n)=>e.some(e=>"object"===typeof e)?((e,t)=>[...e,...t])(e,t):_e(e,t,n);function ke(e={}){return(e=u()(ye,e,{arrayMerge:_e,customMerge:e=>"selectors"===e?Ce:void 0})).formatters=Object.assign({},a,l,e.formatters),e.selectors=h(e.selectors,e=>e.selector),function(e){if(e.tags){const t=Object.entries(e.tags).map(([e,t])=>({...t,selector:e||"*"}));e.selectors.push(...t),e.selectors=h(e.selectors,e=>e.selector)}function t(e,t,n){const a=t.pop();for(const l of t){let t=e[l];t||(t={},e[l]=t),e=t}e[a]=n}if(e.baseElement){const n=e.baseElement;t(e,["baseElements","selectors"],Array.isArray(n)?n:[n])}void 0!==e.returnDomByDefault&&t(e,["baseElements","returnDomByDefault"],e.returnDomByDefault);for(const n of e.selectors)"anchor"===n.format&&b(n,["options","noLinkBrackets"])&&t(n,["options","linkBrackets"],!1)}(e),V(e)}function Ae(e,t={},n=void 0){return ke(t)(e,n)}},92882:(e,t,n)=>{"use strict";n.d(t,{H:()=>a});class a{constructor(e){this._voidElements=void 0,this._voidElements=new Set(e)}isVoidElement(e){return this._voidElements.has(e.toLowerCase())}}},26230:(e,t,n)=>{"use strict";n.d(t,{X:()=>w});var a=n(21987);let l=function(e){return e[e.StartCommentTag=0]="StartCommentTag",e[e.Comment=1]="Comment",e[e.EndCommentTag=2]="EndCommentTag",e[e.StartTagOpen=3]="StartTagOpen",e[e.StartTagClose=4]="StartTagClose",e[e.StartTagSelfClose=5]="StartTagSelfClose",e[e.StartTag=6]="StartTag",e[e.EndTagOpen=7]="EndTagOpen",e[e.EndTagClose=8]="EndTagClose",e[e.EndTag=9]="EndTag",e[e.DelimiterAssign=10]="DelimiterAssign",e[e.AttributeName=11]="AttributeName",e[e.AttributeValue=12]="AttributeValue",e[e.StartDoctypeTag=13]="StartDoctypeTag",e[e.Doctype=14]="Doctype",e[e.EndDoctypeTag=15]="EndDoctypeTag",e[e.Content=16]="Content",e[e.Whitespace=17]="Whitespace",e[e.Unknown=18]="Unknown",e[e.Script=19]="Script",e[e.Styles=20]="Styles",e[e.EOS=21]="EOS",e[e.AdvancedStart=100]="AdvancedStart",e[e.AdvancedEnd=101]="AdvancedEnd",e}({});class i{constructor(e,t){this.source=void 0,this.len=void 0,this.position=void 0,this.source=e,this.len=e.length,this.position=t}eos(){return this.len<=this.position}getSource(){return this.source}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}goToEnd(){this.position=this.source.length}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)}advanceIfChars(e){let t;if(this.position+e.length>this.source.length)return!1;for(t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceIfRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index+t[0].length,t[0]):""}advanceUntilRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index,t[0]):(this.goToEnd(),"")}advanceUntilChar(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1}advanceUntilChars(e){for(;this.position+e.length<=this.source.length;){let t=0;for(;t<e.length&&this.source.charCodeAt(this.position+t)===e[t];t++);if(t===e.length)return!0;this.advance(1)}return this.goToEnd(),!1}skipWhitespace(){return this.advanceWhileChar(e=>e===b||e===v||e===g||e===f||e===h)>0}advanceWhileChar(e){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}}const o="!".charCodeAt(0),r="-".charCodeAt(0),s="<".charCodeAt(0),c=">".charCodeAt(0),d="/".charCodeAt(0),m="=".charCodeAt(0),u='"'.charCodeAt(0),p="'".charCodeAt(0),g="\n".charCodeAt(0),h="\r".charCodeAt(0),f="\f".charCodeAt(0),b=" ".charCodeAt(0),v="\t".charCodeAt(0),E={"text/x-handlebars-template":!0,"text/html":!0};function y(e,t=0,n=a.S5.WithinContent,g=!1){const h=new i(e,t);let f,b,v,y,_,C=n,k=0,A=l.Unknown;function w(){return h.advanceIfRegExp(/^[_:a-zA-Z][_:\w-.\d]*/).toLowerCase()}function x(e,t,n){return A=t,k=e,f=n,t}function S(){const e=h.pos();if(h.eos())return x(e,l.EOS);let t;switch(C){case a.S5.WithinComment:return h.advanceIfChars([r,r,c])?(C=a.S5.WithinContent,x(e,l.EndCommentTag)):(h.advanceUntilChars([r,r,c]),x(e,l.Comment));case a.S5.WithinDoctype:return h.advanceIfChar(c)?(C=a.S5.WithinContent,x(e,l.EndDoctypeTag)):(h.advanceUntilChar(c),x(e,l.Doctype));case a.S5.WithinContent:if(h.advanceIfChar(s)){if(!h.eos()&&h.peekChar()===o){if(h.advanceIfChars([o,r,r]))return C=a.S5.WithinComment,x(e,l.StartCommentTag);if(h.advanceIfRegExp(/^!doctype/i))return C=a.S5.WithinDoctype,x(e,l.StartDoctypeTag)}return h.advanceIfChar(d)?(C=a.S5.AfterOpeningEndTag,x(e,l.EndTagOpen)):(C=a.S5.AfterOpeningStartTag,x(e,l.StartTagOpen))}return h.advanceUntilChar(s),x(e,l.Content);case a.S5.AfterOpeningEndTag:return w().length>0?(C=a.S5.WithinEndTag,x(e,l.EndTag)):h.skipWhitespace()?x(e,l.Whitespace,"Tag name must directly follow the open bracket."):(C=a.S5.WithinEndTag,h.advanceUntilChar(c),e<h.pos()?x(e,l.Unknown,"End tag name expected."):S());case a.S5.WithinEndTag:if(h.skipWhitespace())return x(e,l.Whitespace);if(h.advanceIfChar(c))return C=a.S5.WithinContent,x(e,l.EndTagClose);if(g&&h.peekChar()===s)return C=a.S5.WithinContent,x(e,l.EndTagClose,"Closing bracket missing.");t="Closing bracket expected.";break;case a.S5.AfterOpeningStartTag:return v=w(),_=void 0,y=void 0,v.length>0?(b=!1,C=a.S5.WithinTag,x(e,l.StartTag)):h.skipWhitespace()?x(e,l.Whitespace,"Tag name must directly follow the open bracket."):(C=a.S5.WithinTag,h.advanceUntilChar(c),e<h.pos()?x(e,l.Unknown,"Start tag name expected."):S());case a.S5.WithinTag:return h.skipWhitespace()?(b=!0,x(e,l.Whitespace)):b&&(y=h.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase(),y.length>0)?(C=a.S5.AfterAttributeName,b=!1,x(e,l.AttributeName)):h.advanceIfChars([d,c])?(C=a.S5.WithinContent,x(e,l.StartTagSelfClose)):h.advanceIfChar(c)?(C="script"===v?_&&E[_]?a.S5.WithinContent:a.S5.WithinScriptContent:"style"===v?a.S5.WithinStyleContent:a.S5.WithinContent,x(e,l.StartTagClose)):g&&h.peekChar()===s?(C=a.S5.WithinContent,x(e,l.StartTagClose,"Closing bracket missing.")):(h.advance(1),x(e,l.Unknown,"Unexpected character in tag."));case a.S5.AfterAttributeName:return h.skipWhitespace()?(b=!0,x(e,l.Whitespace)):h.advanceIfChar(m)?(C=a.S5.BeforeAttributeValue,x(e,l.DelimiterAssign)):(C=a.S5.WithinTag,S());case a.S5.BeforeAttributeValue:if(h.skipWhitespace())return x(e,l.Whitespace);let n=h.advanceIfRegExp(/^[^\s"'`=<>]+/);if(n.length>0)return h.peekChar()===c&&h.peekChar(-1)===d&&(h.goBack(1),n=n.substr(0,n.length-1)),"type"===y&&(_=n),C=a.S5.WithinTag,b=!1,x(e,l.AttributeValue);const i=h.peekChar();return i===p||i===u?(h.advance(1),h.advanceUntilChar(i)&&h.advance(1),"type"===y&&(_=h.getSource().substring(e+1,h.pos()-1)),C=a.S5.WithinTag,b=!1,x(e,l.AttributeValue)):(C=a.S5.WithinTag,b=!1,S());case a.S5.WithinScriptContent:let f=1;for(;!h.eos();){const t=h.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(0===t.length)return h.goToEnd(),x(e,l.Script);if("\x3c!--"===t)1===f&&(f=2);else if("--\x3e"===t)f=1;else if("/"!==t[1])2===f&&(f=3);else{if(3!==f){h.goBack(t.length);break}f=2}}return C=a.S5.WithinContent,e<h.pos()?x(e,l.Script):S();case a.S5.WithinStyleContent:return h.advanceUntilRegExp(/<\/style/i),C=a.S5.WithinContent,e<h.pos()?x(e,l.Styles):S()}return h.advance(1),C=a.S5.WithinContent,x(e,l.Unknown,t)}return{scan:function(){const e=h.pos(),t=S();return t===l.EOS||e!==h.pos()||g&&(t===l.StartTagClose||t===l.EndTagClose)?t:(h.advance(1),x(e,l.Unknown))},getTokenType:()=>A,getTokenOffset:()=>k,getTokenLength:()=>h.pos()-k,getTokenEnd:()=>h.pos(),getTokenText:()=>h.getSource().substring(k,h.pos()),getScannerState:()=>C,getTokenError:()=>f}}var _=n(92882),C=n(21944);function k(e){if("string"===typeof e){const t=e.startsWith("'")||e.startsWith('"')?1:0,n=e.endsWith("'")||e.endsWith('"')?e.length-1:e.length;return e.substring(t,n)}return e}class A{constructor(e,t){this.text=e,this.type=t,this.node=void 0,this.replaces=void 0}get hasNode(){return!!this.node}addReplace(e){var t;null===(t=this.replaces)||void 0===t||t.push(e)}start(e,t,n){if(!this.node){const a=this.node=new C.b(e,this.text.length,[],n);a.type=this.type,a.startTagEnd=t,this.replaces=[]}}finish(e,t){const n=this.replaces,a=this.node,l=e+(t||0);if(n){for(const e of n){const t=e.parent;if(!t)throw new Error("parent not defined");const n=t.children.indexOf(e);t.children.splice(n,1)}this.replaces=void 0}if(a){const n=a.parent;if(!n)throw new Error("parent not defined");n.children.push(a),a.closed=void 0!==t,a.endTagStart=e,a.end=l,a.content=this.text.substring(a.startTagEnd,e),this.node=void 0}}}class w{constructor(e){this.dataManager=e}parse(e,t=[]){var n;const a=y(e,void 0,void 0,!0),i=new C.b(0,e.length,[],void 0);i.type=C.Z.ROOT;let o,r=i,s=-1,c=null,d=a.scan();const m=()=>{if(!r.tag){const t=r.parent.children,n=t[t.length-2],a=e.substring(r.start,r.end);(null===n||void 0===n?void 0:n.type)===C.Z.HTML?(n.content=(n.content||"")+a,n.end=r.end,t.splice(t.length-1,1)):(r.type=C.Z.HTML,r.content=a,r.children=[]),r.type=C.Z.HTML}r=r.parent},u=new A(e,C.Z.COMMENT),p=new A(e,C.Z.DOCTYPE),g=e=>{r.children.push(e)};for(;d!==l.EOS;){switch(d){case l.StartDoctypeTag:p.start(a.getTokenOffset(),a.getTokenEnd(),r);break;case l.EndDoctypeTag:{const t=r.lastChild,n=p.node;if(!n)throw new Error("");const l=t?t.end:void 0!==r.startTagEnd?r.startTagEnd:r.start;if(l!==n.start){const t=e.substring(l,n.start);if(t){const e=new C.b(l,n.start,[],r);e.type=C.Z.HTML,e.content=t,g(e)}}p.finish(a.getTokenOffset(),a.getTokenLength());break}case l.StartCommentTag:u.start(a.getTokenOffset(),a.getTokenEnd(),r);break;case l.EndCommentTag:{const t=r.lastChild,n=u.node;if(!n)throw new Error("");const l=t?t.end:void 0!==r.startTagEnd?r.startTagEnd:r.start;if(l!==n.start){const t=e.substring(l,n.start);if(t){const e=new C.b(l,n.start,[],r);e.type=C.Z.HTML,e.content=t,g(e)}}u.finish(a.getTokenOffset(),a.getTokenLength());break}case l.StartTagOpen:const t=r.lastChild,n=new C.b(a.getTokenOffset(),e.length,[],r),i=t?t.end:void 0!==r.startTagEnd?r.startTagEnd:r.start;if(i!==n.start){const t=e.substring(i,n.start);if(t){const e=new C.b(i,n.start,[],r);e.type=C.Z.HTML,e.content=t,g(e)}}g(n),r=n;break;case l.StartTag:r.tag=a.getTokenText();break;case l.StartTagClose:r.parent&&(r.end=a.getTokenEnd(),a.getTokenLength()?(r.startTagEnd=a.getTokenEnd(),r.tag&&this.dataManager.isVoidElement(r.tag)&&(r.closed=!0,m())):m());break;case l.StartTagSelfClose:r.parent&&(r.closed=!0,r.end=a.getTokenEnd(),r.startTagEnd=a.getTokenEnd(),m());break;case l.EndTagOpen:s=a.getTokenOffset(),o=void 0;break;case l.EndTag:o=a.getTokenText().toLowerCase();break;case l.EndTagClose:let d=r;for(;!d.isSameTag(o)&&d.parent;)d=d.parent;if(d.parent){const t=r.lastChild,n=t?t.end:void 0===r.startTagEnd?r.start:r.startTagEnd;if(n!==s){const t=e.substring(n,s);if(t){const e=new C.b(n,s,[],r);e.type=C.Z.HTML,e.content=t,g(e)}}for(;r!==d;)r.end=s,r.closed=!1,m();r.closed=!0,r.endTagStart=s,r.end=a.getTokenEnd(),m()}break;case l.AttributeName:{c=a.getTokenText();let e=r.attributes;e||(r.attributes=e={}),e[c]=null;break}case l.AttributeValue:{const e=a.getTokenText(),t=r.attributes;t&&c&&(t[c]=k(e),c=null);break}}d=a.scan()}for(;r.parent;)r.end=e.length,r.closed=!1,m();u.hasNode,u.finish(e.length);const h=(null===(n=i.lastChild)||void 0===n?void 0:n.end)||0;if(h<e.length){const t=e.substring(h);if(t){const n=new C.b(h,e.length,[],i);n.type=C.Z.HTML,n.content=t,g(n)}}return{roots:i.children,findNodeBefore:i.findNodeBefore.bind(i),findNodeAt:i.findNodeAt.bind(i)}}}const x=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr","vk-snippet-end"];new w(new _.H(x))},21944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,b:()=>o});var a=n(43083);let l=function(e){return e[e.HTML=0]="HTML",e[e.ELEMENT=1]="ELEMENT",e[e.ROOT=2]="ROOT",e[e.COMMENT=3]="COMMENT",e[e.DOCTYPE=4]="DOCTYPE",e[e.ADVANCED=5]="ADVANCED",e}({});const i=e=>e.type===l.HTML?e.start-1:e.start;class o{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}get root(){return this.parent?this.parent.root:this}constructor(e,t,n,a){this.start=e,this.end=t,this.children=n,this.parent=a,this.content=void 0,this.type=l.ELEMENT,this.tag=void 0,this.closed=!1,this.startTagEnd=void 0,this.endTagStart=void 0,this.attributes=void 0,this.createdBy=void 0,this.isDirty=void 0}isSameTag(e){return void 0===this.tag?void 0===e:void 0!==e&&this.tag.length===e.length&&this.tag.toLowerCase()===e}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(e){const t=(0,a.i8)(this.children,t=>e<=i(t))-1;if(t>=0){const n=this.children[t];if(e>i(n)){if(e<n.end)return n.findNodeBefore(e);const t=n.lastChild;return t&&t.end===n.end?n.findNodeBefore(e):n}}return this}findNodeAt(e){const t=(0,a.i8)(this.children,t=>e<=i(t))-1;if(t>=0){const a=this.children[t];if(e>=i(a)&&e<=((n=a).type===l.HTML?n.end+1:n.end))return a.findNodeAt(e)}var n;return this}find(e){if(e(this))return this;for(const t of this.children){const n=t.find(e);if(n)return n}}closest(e){let t=this;do{if(e(t))return t}while(t=t.parent)}parents(){return this.parent?[this.parent,...this.parent.parents()]:[]}closestFromRoot(e,t=!0){const n=t?[this,...this.parents()]:this.parents();for(let a=n.length-1;a>=0;a--){const t=n[a];if(e(t))return t}}contains(e){return Boolean(e.closest(e=>e===this))}clone(e=this.parent,t=this.start,n=!0){const a=this.start-t,l=new o(t,this.end-a,[],e);return l.children=n?this.children.map(e=>e.clone(l,e.start-a)):[],l.attributes={...this.attributes},l.closed=this.closed,l.content=this.content,l.startTagEnd=this.startTagEnd,l.endTagStart=this.endTagStart,l.tag=this.tag,l.type=this.type,l}}},43083:(e,t,n)=>{"use strict";n.d(t,{Ll:()=>o,i8:()=>r,n1:()=>a});n(21944);const a=new Set(["area","br","col","embed","hr","img","input","link","meta","param","vk-snippet-end"]);const l=Object.create(null);function i(e,t){const n=l[e]||(l[e]=Object.create(null));let a=n[t];if("boolean"!==typeof a){const l=document.createElement(e)[t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(e,t)=>t.toUpperCase())];a=n[t]="undefined"!==typeof l&&"boolean"!==typeof l}return a}function o(e,t){if(e.start!==e.startTagEnd||t){var n;const t=(null===(n=e.tag)||void 0===n?void 0:n.toLowerCase())||"div",a=function(e){var t;const n=null===(t=e.tag)||void 0===t?void 0:t.toLowerCase();let a="";if(n){const t=e.attributes;if(t){const e=Object.keys(t);for(const l of e){const e=null===t[l]?"":t[l];"string"===typeof e&&(a+=""!==e||"em"===l||i(n,l)?` ${l}="${e.replaceAll('"',"'")}"`:` ${l}`)}}}return a}(e);return"vk-snippet-end"===t?`<${t}${a}/>`:`<${t}${a}>`}return""}function r(e,t){let n=0,a=e.length;if(0===a)return 0;for(;n<a;){const l=Math.floor((n+a)/2);t(e[l])?a=l:n=l+1}return n}},45386:(e,t,n)=>{"use strict";n.d(t,{R:()=>s});var a=n(56211),l=n(86451),i=n(11628),o=n(61578);class r extends a.vl{constructor(e={}){super(),this._mutationSummary=void 0,this._mutationSummary=new l.MutationSummary({...e,observeOwnChanges:!0,callback:e=>this.fire(e),queries:[{all:!0}]})}dispose(){this._mutationSummary.disconnect(),super.dispose()}trigger(e){const t=this._mutationSummary.takeSummaries();return(e||null!==t&&void 0!==t&&t.length)&&this.fire(t||[]),t}}class s extends o.j{_nextTickHandler(){(0,i.A)(()=>{this.trigger(),this._summaries.length&&(this._innerEmitter.hasListeners()?this._innerEmitter.fire(this._summaries):this._lostEmitter.fire(this._summaries),this._summaries=[])},Number.MAX_VALUE)}constructor(e={}){super(),this._mutationEmitter=void 0,this._innerEmitter=this.addDisposable(new a.vl({onFirstListenerAdd:()=>{this._nextTickHandler()}})),this._lostEmitter=this.addDisposable(new a.vl),this._paused=0,this._stopped=0,this._summaries=[],this.onMutate=this._innerEmitter.event,this.onLost=this._lostEmitter.event,this.onNativeMutate=void 0,this._mutationEmitter=this.addDisposable(new r(e)),this.onNativeMutate=this._mutationEmitter.event,this.addDisposable(this._mutationEmitter.event(e=>{this._stopped||(this._paused?this._lostEmitter.fire(e):(this._summaries.push(...e),(0,i.A)(()=>{this._summaries.length&&!this._innerEmitter.hasListeners()&&(this._lostEmitter.fire(this._summaries),this._summaries=[])},Number.MAX_VALUE)))}))}get isStoped(){return this._paused>0||this._stopped>0}stop(){this._mutationEmitter.trigger(),this._stopped++}start(){this._mutationEmitter.trigger(),this._stopped--}pause(){this._mutationEmitter.trigger(),this._paused++}resume(){this._mutationEmitter.trigger(),this._paused--}trigger(){this._mutationEmitter.trigger(!0)}}},22148:(e,t,n)=>{"use strict";n.d(t,{f:()=>l});var a=n(1331);function l(e){for(const l of e){if(l.removed)for(const e of l.removed){const n=l.getOldParentNode(e),a=l.getOldPreviousSibling(e);if(n){var t;const l=null!==(t=null===a||void 0===a?void 0:a.nextSibling)&&void 0!==t?t:null;n.insertBefore(e,l)}}if(l.added)for(const e of l.added)e.parentNode&&e.parentNode.removeChild(e);if(l.reordered)for(const e of l.reordered){const t=l.getOldParentNode(e),a=l.getOldPreviousSibling(e);if(t){var n;const l=null!==(n=null===a||void 0===a?void 0:a.nextSibling)&&void 0!==n?n:null;t.insertBefore(e,l)}}if(l.attributeChanged)for(const e of Object.keys(l.attributeChanged))for(const t of l.attributeChanged[e]){const n=l.getOldAttribute(t,e);null==n?t.removeAttribute(e):t.setAttribute(e,n)}if(l.characterDataChanged)for(const e of l.characterDataChanged)((0,a.ir)(e)||(0,a.Cn)(e)||(0,a.Cn)(e))&&(e.data=l.getOldCharacterData(e))}}},11628:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(56211);let l=0;const i=new Array(1e3);function o(){for(let e=0;e<l;e+=2){(0,i[e])(...i[e+1]),i[e]=void 0,i[e+1]=void 0}l=0}const r=function(){let e=0;const t=new MutationObserver(o),n=document.createTextNode("");return t.observe(n,{characterData:!0}),()=>{n.data=String(e=++e%2)}}();const s=new a.vl({onFirstListenerAdd:function e(){!function(e,...t){i[l]=e,i[l+1]=t,l+=2,2===l&&r()}(()=>{s.hasListeners()&&(s.fire(),e())})}}),c=s.once;const d=c},32467:(e,t,n)=>{"use strict";n.d(t,{J:()=>i,xv:()=>l});const a="em_version";function l(e){if(!e||!e.includes(a))return e;try{const t="undefined"!==typeof document?document.baseURI:"http://localhost/",n=new URL(e,t);if(!n.searchParams.has(a))return e;n.searchParams.delete(a);return/^https?:\/\//i.test(e)||e.startsWith("//")?n.href:n.pathname+n.search+n.hash}catch{return e}}function i(e){try{const t="undefined"!==typeof document?document.baseURI:"http://localhost/",n=new URL(e,t);n.searchParams.set(a,String(Date.now()));return/^https?:\/\//i.test(e)||e.startsWith("//")?n.href:n.pathname+n.search+n.hash}catch{const t=e.includes("?")?"&":"?";return`${e}${t}${a}=${Date.now()}`}}},44423:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var a=n(1936),l=n(41408),i=n(85537),o=n(73974),r=n(47207),s=n(6056),c=n.n(s);const d={alignLeft:"Align left",alignCenter:"Center horizontally",alignRight:"Align right"},m=({value:e,onChange:t,disabled:n=!1,strokeWidth:s,labels:m={},tooltipTitle:u,size:p=18,tooltipPlacement:g="bottom",className:h})=>{const f={...d,...m},[b,v]=(0,a.useState)(null!==e&&void 0!==e?e:"");(0,a.useEffect)(()=>{v(null!==e&&void 0!==e?e:"")},[e]);const E=e=>{const n=e===b?"":e;v(n),null===t||void 0===t||t(n)},y=a.createElement(l.A.Group,{disabled:n,value:b,className:"em-form-align-control"},a.createElement(i.A,{size:8},a.createElement(o.A,{placement:g,title:f.alignLeft},a.createElement(l.A.Button,{value:"left","aria-label":f.alignLeft,onClick:()=>E("left")},a.createElement(r.A,{icon:"AlignHorizontalLeft",size:p,strokeWidth:s,"aria-hidden":!0}))),a.createElement(o.A,{placement:g,title:f.alignCenter},a.createElement(l.A.Button,{value:"center","aria-label":f.alignCenter,onClick:()=>E("center")},a.createElement(r.A,{icon:"AlignHorizontalCenter",size:p,strokeWidth:s,"aria-hidden":!0}))),a.createElement(o.A,{placement:g,title:f.alignRight},a.createElement(l.A.Button,{value:"right","aria-label":f.alignRight,onClick:()=>E("right")},a.createElement(r.A,{icon:"AlignHorizontalRight",size:p,strokeWidth:s,"aria-hidden":!0})))));let _=y;return u&&(_=a.createElement(o.A,{placement:g,title:u},a.createElement("span",{style:{display:"inline-block"}},y))),h&&(_=a.createElement("div",{className:c()("em-form-align-control",h)},_)),a.createElement(a.Fragment,null,_)};m.displayName="FormAlignControl";const u=m},19844:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var a=n(1936),l=n(41408),i=n(85537),o=n(73974),r=n(47207),s=n(6056),c=n.n(s);const d={alignLeft:"Text align left",alignCenter:"Text align center",alignRight:"Text align right",alignJustify:"Text align justify"},m=({value:e,onChange:t,disabled:n=!1,strokeWidth:s,labels:m={},tooltipTitle:u,size:p=18,tooltipPlacement:g="bottom",className:h})=>{const f={...d,...m},[b,v]=(0,a.useState)(null!==e&&void 0!==e?e:"");(0,a.useEffect)(()=>{v(null!==e&&void 0!==e?e:"")},[e]);const E=e=>{const n=e===b?"":e;v(n),null===t||void 0===t||t(n)},y=a.createElement(l.A.Group,{disabled:n,value:b,className:"em-form-align-control"},a.createElement(i.A,{size:8},a.createElement(o.A,{placement:g,title:f.alignLeft},a.createElement(l.A.Button,{value:"left","aria-label":f.alignLeft,onClick:()=>E("left")},a.createElement(r.A,{icon:"AlignLeftOutlined",size:p,strokeWidth:s,"aria-hidden":!0}))),a.createElement(o.A,{placement:g,title:f.alignCenter},a.createElement(l.A.Button,{value:"center","aria-label":f.alignCenter,onClick:()=>E("center")},a.createElement(r.A,{icon:"AlignCenterOutlined",size:p,strokeWidth:s,"aria-hidden":!0}))),a.createElement(o.A,{placement:g,title:f.alignRight},a.createElement(l.A.Button,{value:"right","aria-label":f.alignRight,onClick:()=>E("right")},a.createElement(r.A,{icon:"AlignRightOutlined",size:p,strokeWidth:s,"aria-hidden":!0}))),a.createElement(o.A,{placement:g,title:f.alignJustify},a.createElement(l.A.Button,{value:"justify","aria-label":f.alignJustify,onClick:()=>E("justify")},a.createElement(r.A,{icon:"Justify",size:p,strokeWidth:s,"aria-hidden":!0})))));let _=y;return u&&(_=a.createElement(o.A,{placement:g,title:u},a.createElement("span",{style:{display:"inline-block"}},y))),h&&(_=a.createElement("div",{className:c()("em-form-align-control",h)},_)),a.createElement(a.Fragment,null,_)};m.displayName="FormAlignTextControl";const u=m},78395:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var a=n(1936),l=n(6056),i=n.n(l),o=n(16633),r=n(77595),s=n(88145),c=n(73974),d=n(3327),m=n(13763),u=n(27496),p=n(47207);const g=[],h=[],f=({colorFieldName:e="backgroundColor",imageEnabled:t=!1,backgroundImageEmpty:n=!0,usedColors:l,backgroundRepeatOptions:f=g,backgroundSizeOptions:b=h,colorPlaceholder:v="Background color",usedLabel:E="Used",recommendedLabel:y="Recommended",imageUploadSlot:_,rowStyle:C,getPopupContainer:k,horizontalPositionPlaceholder:A="Horizontal position",verticalPositionPlaceholder:w="Vertical position",backgroundRepeatTooltip:x="Background image repeat",backgroundSizeTooltip:S="Background image size",selectPlaceholder:L="Please choose",namePrefix:T=""})=>{const I=`${T}backgroundPositionX`,N=`${T}backgroundPositionY`,B=`${T}backgroundRepeat`,R=`${T}backgroundSize`;return a.createElement(r.A,{gutter:10,className:i()("em-form-background-settings__row",{"em-form-background-settings__row--image-empty":n}),style:C},a.createElement(s.A,{span:12},a.createElement(c.A,{trigger:["hover"],title:v,placement:"bottom",zIndex:1,getPopupContainer:e=>e.parentNode},a.createElement(o.A.Item,{name:e,className:i()("em-form-background-settings__form-item-color",{"em-form-background-settings__form-item-color--image-enabled":t})},a.createElement(m.A,{placeholder:v,usedColors:l,usedLabel:E,recommendedLabel:y,placement:"bottomLeft",getPopupContainer:k})))),t&&a.createElement(s.A,{span:n?12:24},_&&a.createElement("div",{className:i()("em-form-background-settings__image-slot",{"em-form-background-settings__image-slot--empty":n})},_),!n&&a.createElement(o.A.Item,{className:"em-form-background-settings__form-item-wrapper"},a.createElement(r.A,{gutter:10},a.createElement(s.A,{span:12},a.createElement(c.A,{trigger:["hover"],title:A,placement:"bottom",zIndex:1,getPopupContainer:e=>e.parentNode},a.createElement(o.A.Item,{name:I,className:"em-form-background-settings__form-item-position"},a.createElement(u.A,{placeholder:A,prefix:a.createElement(p.A,{icon:"BgPositionHorizontal"})})))),a.createElement(s.A,{span:12},a.createElement(c.A,{trigger:["hover"],title:w,placement:"bottom",zIndex:1,getPopupContainer:e=>e.parentNode},a.createElement(o.A.Item,{name:N,className:"em-form-background-settings__form-item-position"},a.createElement(u.A,{placeholder:w,prefix:a.createElement(p.A,{icon:"BgPositionVertical"})}))))),a.createElement(r.A,{gutter:10},a.createElement(s.A,{span:12},a.createElement(c.A,{trigger:["hover"],title:x,placement:"top"},a.createElement(o.A.Item,{name:B,className:"em-form-background-settings__form-item-select"},a.createElement(d.A,{placeholder:L,options:f,placement:"bottomLeft",getPopupContainer:null!==k&&void 0!==k?k:void 0})))),a.createElement(s.A,{span:12},a.createElement(c.A,{trigger:["hover"],title:S,placement:"top"},a.createElement(o.A.Item,{name:R,className:"em-form-background-settings__form-item-select"},a.createElement(d.A,{placeholder:L,options:b,placement:"bottomLeft",getPopupContainer:null!==k&&void 0!==k?k:void 0}))))))))};f.displayName="FormBackgroundSettings";const b=f},66017:(e,t,n)=>{"use strict";n.d(t,{Ok:()=>R,sQ:()=>P,nD:()=>W,eZ:()=>G,vp:()=>w,mw:()=>S,v6:()=>ae,L1:()=>b,y9:()=>c,n6:()=>y,Pr:()=>Z,H6:()=>J});var a=n(1936),l=n(6056),i=n.n(l),o=n(6426),r=n(47207);const s=({title:e,collapsible:t=!1,defaultOpen:n=!0,open:l,onToggle:s,dividerTop:c="auto",dividerBottom:d=!1,compact:m=!1,titleStyle:u,children:p,className:g,style:h,bodyStyle:f})=>{const b=void 0!==l,[v,E]=(0,a.useState)(n),y=b?l:v,_=(0,a.useCallback)(()=>{const e=!y;b||E(e),null===s||void 0===s||s(e)},[y,b,s]);return a.createElement("div",{className:i()("form-section",{"form-section--collapsible":t,"form-section--compact":m,"form-section--no-header":null==e},g),style:h},"auto"===c&&a.createElement("div",{className:"form-section__divider form-section__divider--top form-section__divider--auto"}),!0===c&&a.createElement("div",{className:"form-section__divider form-section__divider--top"}),null!=e&&a.createElement("div",{className:"form-section__header"},a.createElement("div",{className:"form-section__title",style:u},e),t&&a.createElement(o.A,{type:"text",className:"form-section__toggle",onClick:_,"aria-expanded":y,"aria-label":y?"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0441\u0435\u043a\u0446\u0438\u044e":"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0441\u0435\u043a\u0446\u0438\u044e"},y?a.createElement(r.A,{icon:"MinusOutlined","aria-hidden":!0}):a.createElement(r.A,{icon:"PlusOutlined","aria-hidden":!0}))),(!t||y)&&a.createElement("div",{className:"form-section__body",style:f},p),d&&a.createElement("div",{className:"form-section__divider form-section__divider--bottom"}))};s.displayName="FormSection";const c=s;var d=n(16633),m=n(77595),u=n(88145),p=n(73974),g=n(27496);const h={horizontal:"Horizontal",vertical:"Vertical",left:"Left",right:"Right",top:"Top",bottom:"Bottom",individual:"Individual padding"},f=({namePrefix:e="",typeOfForm:t="desktop",extended:n,onToggleExtended:l,showHorizontal:s=!0,max:c=300,gutter:f=10,rowStyle:b,buttonClassName:v="selected-td-form__button",formItemClassName:E="form-item-margin-xs",fieldNames:y,labels:_={}})=>{var C,k,A,w,x,S;const L={...h,..._},T="mobile"===t,I=T?"mobilePaddingLeftRight":"paddingLeftRight",N=T?"mobilePaddingLeft":"paddingLeft",B=T?"mobilePaddingRight":"paddingRight",R=T?"mobilePaddingTopBottom":"paddingTopBottom",O=T?"mobilePaddingTop":"paddingTop",M=T?"mobilePaddingBottom":"paddingBottom",P=null!==(C=null===y||void 0===y?void 0:y.paddingLeftRight)&&void 0!==C?C:e+I,V=null!==(k=null===y||void 0===y?void 0:y.paddingLeft)&&void 0!==k?k:e+N,F=null!==(A=null===y||void 0===y?void 0:y.paddingRight)&&void 0!==A?A:e+B,j=null!==(w=null===y||void 0===y?void 0:y.paddingTopBottom)&&void 0!==w?w:e+R,W=null!==(x=null===y||void 0===y?void 0:y.paddingTop)&&void 0!==x?x:e+O,D=null!==(S=null===y||void 0===y?void 0:y.paddingBottom)&&void 0!==S?S:e+M;return a.createElement(m.A,{gutter:f,style:{marginBottom:8,...b},className:"form-padding-inputs"},a.createElement(a.Fragment,null,s&&a.createElement(u.A,{flex:"1 1 0",style:{minWidth:128}},a.createElement("div",{className:"form-padding-inputs__collapsed",style:{display:n?"block":"none"}},a.createElement(p.A,{title:L.horizontal,placement:"bottom"},a.createElement("div",null,a.createElement(d.A.Item,{name:P,className:E},a.createElement(g.A,{min:0,max:c,placeholder:L.horizontal,prefix:a.createElement(r.A,{icon:"PaddingLeftRight"}),addonAfter:"px"}))))),a.createElement("div",{className:"form-padding-inputs__extended",style:{display:n?"none":"block"}},a.createElement(p.A,{trigger:["hover"],title:L.left,placement:"bottom"},a.createElement("div",null,a.createElement(d.A.Item,{name:V,className:E},a.createElement(g.A,{min:0,max:c,placeholder:L.left,prefix:a.createElement(r.A,{icon:"PaddingLeft"}),addonAfter:"px"})))),a.createElement(p.A,{trigger:["hover"],title:L.right,placement:"bottom"},a.createElement("div",null,a.createElement(d.A.Item,{name:F,className:E},a.createElement(g.A,{min:0,max:c,placeholder:L.right,prefix:a.createElement(r.A,{icon:"PaddingRight"}),addonAfter:"px"})))))),a.createElement(u.A,{flex:s?"1 1 0":"1 1 auto",style:{minWidth:128}},a.createElement("div",{className:"form-padding-inputs__collapsed",style:{display:n?"block":"none"}},a.createElement(p.A,{title:L.vertical,placement:"bottom"},a.createElement("div",null,a.createElement(d.A.Item,{name:j,className:E},a.createElement(g.A,{min:0,max:c,placeholder:L.vertical,prefix:a.createElement(r.A,{icon:"PaddingTopBottom"}),addonAfter:"px"}))))),a.createElement("div",{className:"form-padding-inputs__extended",style:{display:n?"none":"block"}},a.createElement(p.A,{trigger:["hover"],title:L.top,placement:"bottom"},a.createElement("div",null,a.createElement(d.A.Item,{name:W,className:E},a.createElement(g.A,{min:0,max:c,placeholder:L.top,prefix:a.createElement(r.A,{icon:"PaddingTop"}),addonAfter:"px"})))),a.createElement(p.A,{trigger:["hover"],title:L.bottom,placement:"bottom"},a.createElement("div",null,a.createElement(d.A.Item,{name:D,className:E},a.createElement(g.A,{min:0,max:c,placeholder:L.bottom,prefix:a.createElement(r.A,{icon:"PaddingBottom"}),addonAfter:"px"})))))),a.createElement(u.A,{flex:"none",style:{width:45}},a.createElement(p.A,{title:L.individual,placement:"bottom"},a.createElement(o.A,{"aria-label":L.individual,className:i()(v,"form-padding-inputs__toggle",{[`${v}--active`]:!n,"form-padding-inputs__toggle--active":!n}),onClick:l},a.createElement(r.A,{icon:"PaddingSwitcher","aria-hidden":!0}))))))};f.displayName="FormPaddingInputs";const b=f,v={width:"Width",height:"Height",minWidth:"Minimum width",maxWidth:"Maximum width"},E=({namePrefix:e="",typeOfForm:t="desktop",showWidth:n=!0,showHeight:l=!0,showMinMax:i=!1,maxWidth:o,dimensionSelect:s,minWidthDimensionSelect:c,maxWidthDimensionSelect:h,gutter:f=10,rowStyle:b,formItemClassName:E="form-size-inputs__form-item",fieldNames:y,labels:_={}})=>{var C,k,A,w,x,S,L;const T={...v,..._},I="mobile"===t,N=I?"mobileWidth":"width",B=I?"mobileHeight":"height",R=I?"mobileWidthDim":"widthDim",O=I?"mobileMinWidth":"minWidth",M=I?"mobileMaxWidth":"maxWidth",P=I?"mobileMinWidthDim":"minWidthDim",V=I?"mobileMaxWidthDim":"maxWidthDim",F=null!==(C=null===y||void 0===y?void 0:y.width)&&void 0!==C?C:e+N,j=null!==(k=null===y||void 0===y?void 0:y.height)&&void 0!==k?k:e+B,W=null!==(A=null===y||void 0===y?void 0:y.widthDim)&&void 0!==A?A:e+R,D=null!==(w=null===y||void 0===y?void 0:y.minWidth)&&void 0!==w?w:e+O,H=null!==(x=null===y||void 0===y?void 0:y.maxWidth)&&void 0!==x?x:e+M,z=null!==(S=null===y||void 0===y?void 0:y.minWidthDim)&&void 0!==S?S:e+P,U=null!==(L=null===y||void 0===y?void 0:y.maxWidthDim)&&void 0!==L?L:e+V,q=(n?1:0)+(l?1:0)+(i?2:0),Z=q>0?Math.floor(24/q):24;return a.createElement(m.A,{gutter:f,style:b,className:"form-size-inputs"},n&&a.createElement(u.A,{span:Z},a.createElement(p.A,{trigger:["hover"],title:T.width,placement:"bottom"},a.createElement(d.A.Item,{name:F,className:E},a.createElement(g.A,{min:0,max:o,placeholder:T.width,prefix:a.createElement(r.A,{icon:"ColumnWidthOutlined"}),addonAfter:s?a.createElement(d.A.Item,{name:W,noStyle:!0},s):"px"})))),l&&a.createElement(u.A,{span:Z},a.createElement(p.A,{trigger:["hover"],title:T.height,placement:"bottom"},a.createElement(d.A.Item,{name:j,className:E},a.createElement(g.A,{min:0,placeholder:T.height,prefix:a.createElement(r.A,{icon:"ColumnHeightOutlined"}),addonAfter:"px"})))),i&&a.createElement(a.Fragment,null,a.createElement(u.A,{span:Z},a.createElement(p.A,{trigger:["hover"],title:T.minWidth,placement:"bottom"},a.createElement(d.A.Item,{name:D,className:E},a.createElement(g.A,{min:0,placeholder:T.minWidth,prefix:a.createElement(r.A,{icon:"MinWidth"}),addonAfter:c?a.createElement(d.A.Item,{name:z,noStyle:!0},c):"px"})))),a.createElement(u.A,{span:Z},a.createElement(p.A,{trigger:["hover"],title:T.maxWidth,placement:"bottom"},a.createElement(d.A.Item,{name:H,className:E},a.createElement(g.A,{min:0,placeholder:T.maxWidth,prefix:a.createElement(r.A,{icon:"MaxWidth"}),addonAfter:h?a.createElement(d.A.Item,{name:U,noStyle:!0},h):"px"}))))))};E.displayName="FormSizeInputs";const y=E;var _=n(41408),C=n(85537);const k={rtlLabel:"Right to left",ltrLabel:"Left to right"},A=({value:e,onChange:t,labels:n={},disabled:l=!1,size:o,strokeWidth:s,tooltipPlacement:c="top",className:d})=>{const m={...k,...n},[u,g]=(0,a.useState)(null!==e&&void 0!==e?e:"");(0,a.useEffect)(()=>{g(null!==e&&void 0!==e?e:"")},[e]);const h=e=>{const n=e===u?"":e;g(n),null===t||void 0===t||t(n)},f=a.createElement(_.A.Group,{disabled:l,value:u,className:"em-form-direction-control"},a.createElement(C.A,{size:8},a.createElement(p.A,{placement:c,title:m.rtlLabel},a.createElement(_.A.Button,{value:"rtl","aria-label":m.rtlLabel,onClick:()=>h("rtl")},a.createElement(r.A,{icon:"ArrowLeftOutlined",size:o,strokeWidth:s,"aria-hidden":!0}))),a.createElement(p.A,{placement:c,title:m.ltrLabel},a.createElement(_.A.Button,{value:"ltr","aria-label":m.ltrLabel,onClick:()=>h("ltr")},a.createElement(r.A,{icon:"ArrowRightOutlined",size:o,strokeWidth:s,"aria-hidden":!0}))))),b=d?a.createElement("div",{className:i()("em-form-direction-control",d)},f):f;return a.createElement(a.Fragment,null,b)};A.displayName="FormDirectionControl";const w=A,x=({children:e,directionControl:t,gutter:n=20,span:l=12,secondaryColumnAlign:o="right",className:r})=>{const s=`em-form-display-control__secondary--align-${o}`;return a.createElement(m.A,{gutter:n,className:i()("em-form-display-control",r),style:{marginBottom:10}},a.createElement(u.A,{span:l},e),t&&a.createElement(u.A,{span:l,className:s},t))};x.displayName="FormDisplayControl";const S=x;var L=n(43167),T=n(61503),I=n(13763);const N={color:"Color",width:"Width",none:"None",solid:"Solid",dashed:"Dashed",dotted:"Dotted",above:"Above",below:"Below",onLeft:"On the left",onRight:"On the right",around:"Around",usedColors:"Used",recommendedColors:"Recommended"},B=({form:e,namePrefix:t="",typeOfForm:n="desktop",fieldStructure:l="nested",borderValues:o,fieldNames:s,usedColors:c,labels:g={}})=>{var h,f;const b={...N,...g},{token:v}=(0,L.rd)(),E="flat"===l,y=E||"mobile"===n,k=E?null!==(h=null===s||void 0===s?void 0:s.position)&&void 0!==h?h:"mobileBorderPosition":t+(y?"mobileBorderPosition":"borderPosition"),A=d.A.useWatch(k,e),w=y?"mobileBorderAll":"borderAll",x=e.getFieldsValue(!0),S=e=>null!=(null===e||void 0===e?void 0:e.width)||(null===e||void 0===e?void 0:e.style)||(null===e||void 0===e?void 0:e.color);let B,R,O,M,P;if(E){var V,F,j;B=null!==(V=null===s||void 0===s?void 0:s.color)&&void 0!==V?V:"mobileBorderColor",R=null!==(F=null===s||void 0===s?void 0:s.width)&&void 0!==F?F:"mobileBorderWidth",O=null!==(j=null===s||void 0===s?void 0:s.style)&&void 0!==j?j:"mobileBorderStyle",M={borderTop:"top",borderLeft:"left",borderAll:"all",borderRight:"right",borderBottom:"bottom"},P=e=>!!S(null===o||void 0===o?void 0:o[M[e]])}else{var W;const e=A?String(A).replace(t,""):w,n={borderAll:t+(y?"mobileBorderAll":"borderAll"),borderTop:t+(y?"mobileBorderTop":"borderTop"),borderBottom:t+(y?"mobileBorderBottom":"borderBottom"),borderRight:t+(y?"mobileBorderRight":"borderRight"),borderLeft:t+(y?"mobileBorderLeft":"borderLeft")},a=null!==(W=(y?{mobileBorderAll:t+"mobileBorderAll",mobileBorderTop:t+"mobileBorderTop",mobileBorderBottom:t+"mobileBorderBottom",mobileBorderRight:t+"mobileBorderRight",mobileBorderLeft:t+"mobileBorderLeft"}:{borderAll:t+"borderAll",borderTop:t+"borderTop",borderBottom:t+"borderBottom",borderRight:t+"borderRight",borderLeft:t+"borderLeft"})[e])&&void 0!==W?W:"";B=[a,"color"],R=[a,"width"],O=[a,"style"],M=n,P=e=>!!S(x[n[e]])}const D=null!==(f=null===v||void 0===v?void 0:v.formItemMarginBottomXS)&&void 0!==f?f:8;return a.createElement(m.A,{gutter:30,className:"em-form-border-inputs"},a.createElement(u.A,{span:12,className:"em-form-border-inputs__col"},a.createElement(p.A,{placement:"bottom",title:b.color},a.createElement("div",null,a.createElement(d.A.Item,{name:B,className:"form-item-margin-xs"},a.createElement(I.A,{placeholder:b.color,usedColors:c,usedLabel:b.usedColors,recommendedLabel:b.recommendedColors})))),a.createElement(p.A,{placement:"bottom",title:b.width},a.createElement("div",null,a.createElement(d.A.Item,{name:R,className:"form-item-margin-xs"},a.createElement(T.A,{min:0,placeholder:b.width,addonAfter:"px"})))),a.createElement(d.A.Item,{name:O,className:"form-item-margin-xs"},a.createElement(_.A.Group,null,a.createElement(C.A,{size:8},a.createElement(p.A,{placement:"bottom",title:b.none},a.createElement(_.A.Button,{value:"","aria-label":b.none},a.createElement(r.A,{icon:"CloseOutlined","aria-hidden":!0}))),a.createElement(p.A,{placement:"bottom",title:b.solid},a.createElement(_.A.Button,{value:"solid","aria-label":b.solid},a.createElement(r.A,{icon:"LineOutlined","aria-hidden":!0}))),a.createElement(p.A,{placement:"bottom",title:b.dashed},a.createElement(_.A.Button,{value:"dashed","aria-label":b.dashed},a.createElement(r.A,{icon:"DashOutlined","aria-hidden":!0}))),a.createElement(p.A,{placement:"bottom",title:b.dotted},a.createElement(_.A.Button,{value:"dotted","aria-label":b.dotted},a.createElement(r.A,{icon:"SmallDashOutlined","aria-hidden":!0}))))))),a.createElement(u.A,{span:12,style:{textAlign:"center"}},a.createElement(d.A.Item,{label:"",name:k,labelCol:{span:8}},a.createElement(_.A.Group,null,a.createElement(C.A,{size:D,direction:"vertical"},a.createElement(m.A,null,a.createElement(p.A,{placement:"top",title:b.above},a.createElement(_.A.Button,{value:M.borderTop,"aria-label":b.above,style:{margin:"auto"},className:i()("em-form-border-inputs__radio",{"em-form-border-inputs__radio--active":P("borderTop")})},a.createElement(r.A,{icon:"BorderTopOutlined","aria-hidden":!0})))),a.createElement(m.A,null,a.createElement(C.A,{size:D},a.createElement(p.A,{placement:"left",title:b.onLeft},a.createElement(_.A.Button,{value:M.borderLeft,"aria-label":b.onLeft,className:i()("em-form-border-inputs__radio",{"em-form-border-inputs__radio--active":P("borderLeft")})},a.createElement(r.A,{icon:"BorderLeftOutlined","aria-hidden":!0}))),a.createElement(p.A,{placement:"top",title:b.around},a.createElement(_.A.Button,{value:M.borderAll,"aria-label":b.around,className:i()("em-form-border-inputs__radio",{"em-form-border-inputs__radio--active":P("borderAll")})},a.createElement(r.A,{icon:"BorderOuterOutlined","aria-hidden":!0}))),a.createElement(p.A,{placement:"right",title:b.onRight},a.createElement(_.A.Button,{value:M.borderRight,"aria-label":b.onRight,className:i()("em-form-border-inputs__radio",{"em-form-border-inputs__radio--active":P("borderRight")})},a.createElement(r.A,{icon:"BorderRightOutlined","aria-hidden":!0}))))),a.createElement(m.A,null,a.createElement(p.A,{placement:"bottom",title:b.below},a.createElement(_.A.Button,{value:M.borderBottom,"aria-label":b.below,className:i()("em-form-border-inputs__radio",{"em-form-border-inputs__radio--active":P("borderBottom")}),style:{margin:"auto"}},a.createElement(r.A,{icon:"BorderBottomOutlined","aria-hidden":!0})))))))))};B.displayName="FormBorderInputs";const R=B,O={borderRadius:"Border radius",topLeft:"Top left corner",topRight:"Top right corner",bottomLeft:"Bottom left corner",bottomRight:"Bottom right corner",individualCorners:"Individual corner radii"},M=({namePrefix:e="",typeOfForm:t="desktop",oneBorderRadiusValue:n,onToggle:l,borderRadiusIcon:s,labels:c={},buttonClassName:h="selected-td-form__button",formItemClassName:f="form-item-margin-xs",fieldNames:b})=>{var v,E,y,_,k;const A={...O,...c},w="mobile"===t,x=w?"mobileBorderRadiusAll":"borderRadiusAll",S=w?"mobileBorderRadiusTopLeft":"borderRadiusTopLeft",L=w?"mobileBorderRadiusTopRight":"borderRadiusTopRight",T=w?"mobileBorderRadiusBottomRight":"borderRadiusBottomRight",I=w?"mobileBorderRadiusBottomLeft":"borderRadiusBottomLeft",N=e+(null!==(v=null===b||void 0===b?void 0:b.all)&&void 0!==v?v:x),B=e+(null!==(E=null===b||void 0===b?void 0:b.topLeft)&&void 0!==E?E:S),R=e+(null!==(y=null===b||void 0===b?void 0:b.topRight)&&void 0!==y?y:L),M=e+(null!==(_=null===b||void 0===b?void 0:b.bottomRight)&&void 0!==_?_:T),P=e+(null!==(k=null===b||void 0===b?void 0:b.bottomLeft)&&void 0!==k?k:I),V=null!==s&&void 0!==s?s:a.createElement(r.A,{icon:"RadiusUpleftOutlined"});return a.createElement(m.A,{gutter:10,className:"form-border-radius-inputs",style:{marginBottom:8}},a.createElement(u.A,{span:12},a.createElement(C.A,{size:10,align:"start"},a.createElement(d.A.Item,{name:N,className:f},a.createElement(g.A,{min:0,placeholder:A.borderRadius,prefix:V,disabled:!n,addonAfter:"px"})))),a.createElement(u.A,{span:12},a.createElement(o.A,{"aria-label":A.individualCorners,className:i()(h,"form-border-radius-inputs__toggle",{[`${h}--active`]:!n,"form-border-radius-inputs__toggle--active":!n}),onClick:l},V)),a.createElement(u.A,null,a.createElement(m.A,{gutter:10},a.createElement(u.A,{span:12},a.createElement(p.A,{placement:"bottom",title:A.topLeft},a.createElement(d.A.Item,{hidden:n,name:B,className:f},a.createElement(g.A,{min:0,prefix:a.createElement(r.A,{icon:"RadiusUpleftOutlined"}),style:{minHeight:10},addonAfter:"px"}))),a.createElement(p.A,{placement:"bottom",title:A.bottomLeft},a.createElement(d.A.Item,{hidden:n,name:P,className:f},a.createElement(g.A,{min:0,prefix:a.createElement(r.A,{icon:"RadiusBottomleftOutlined"}),style:{minHeight:10},addonAfter:"px"})))),a.createElement(u.A,{span:12},a.createElement(p.A,{placement:"bottom",title:A.topRight},a.createElement(d.A.Item,{hidden:n,name:R,className:f},a.createElement(g.A,{min:0,prefix:a.createElement(r.A,{icon:"RadiusUprightOutlined"}),style:{minHeight:10},addonAfter:"px"}))),a.createElement(p.A,{placement:"bottom",title:A.bottomRight},a.createElement(d.A.Item,{hidden:n,name:M,className:f},a.createElement(g.A,{min:0,prefix:a.createElement(r.A,{icon:"RadiusBottomrightOutlined"}),style:{minHeight:10},addonAfter:"px"})))))))};M.displayName="FormBorderRadiusInputs";const P=M;var V=n(24503);const F={hOffset:"Horizontal offset",vOffset:"Vertical offset",blurRadius:"Blur radius",spreadRadius:"Spread radius",outside:"Outside",inside:"Inside",shadowDirection:"Shadow inside or outside of the element",usedColors:"Used",recommendedColors:"Recommended"},j=({namePrefix:e="",typeOfForm:t="desktop",usedColors:n,labels:l={},formItemClassName:i="form-item-margin-xs",fieldNames:o})=>{var s,c,h,f,b,v;const E={...F,...l},y="mobile"===t,_=y?"mobileBoxShadowHOffset":"boxShadowHOffset",k=y?"mobileBoxShadowVOffset":"boxShadowVOffset",A=y?"mobileBoxShadowBlurRadius":"boxShadowBlurRadius",w=y?"mobileBoxShadowSpreadRadius":"boxShadowSpreadRadius",x=y?"mobileBoxShadowColor":"boxShadowColor",S=y?"mobileBoxShadowInset":"boxShadowInset",L=e+(null!==(s=null===o||void 0===o?void 0:o.hOffset)&&void 0!==s?s:_),T=e+(null!==(c=null===o||void 0===o?void 0:o.vOffset)&&void 0!==c?c:k),N=e+(null!==(h=null===o||void 0===o?void 0:o.blurRadius)&&void 0!==h?h:A),B=e+(null!==(f=null===o||void 0===o?void 0:o.spreadRadius)&&void 0!==f?f:w),R=e+(null!==(b=null===o||void 0===o?void 0:o.color)&&void 0!==b?b:x),O=e+(null!==(v=null===o||void 0===o?void 0:o.inset)&&void 0!==v?v:S);return a.createElement(m.A,{gutter:10,className:"form-box-shadow-inputs",style:{marginBottom:8}},a.createElement(u.A,{span:12},a.createElement(p.A,{placement:"bottom",title:E.hOffset},a.createElement(d.A.Item,{name:L,className:i},a.createElement(g.A,{placeholder:E.hOffset,prefix:a.createElement(r.A,{icon:"SwapOutlined"}),addonAfter:"px"})))),a.createElement(u.A,{span:12},a.createElement(p.A,{placement:"bottom",title:E.vOffset},a.createElement(d.A.Item,{name:T,className:i},a.createElement(g.A,{placeholder:E.vOffset,prefix:a.createElement(r.A,{icon:"VerticalOffset"}),addonAfter:"px"})))),a.createElement(u.A,{span:12},a.createElement(p.A,{placement:"bottom",title:E.blurRadius},a.createElement(d.A.Item,{name:N,className:i},a.createElement(g.A,{min:0,placeholder:E.blurRadius,prefix:a.createElement(r.A,{icon:"Blur",className:"form-box-shadow-inputs__blur-icon"}),addonAfter:"px"})))),a.createElement(u.A,{span:12},a.createElement(p.A,{placement:"bottom",title:E.spreadRadius},a.createElement(d.A.Item,{name:B,className:i},a.createElement(g.A,{placeholder:E.spreadRadius,prefix:a.createElement(r.A,{icon:"ZoomOutMap"}),addonAfter:"px"})))),a.createElement(u.A,{span:12},a.createElement(C.A,{size:10,align:"start"},a.createElement(d.A.Item,{name:R,className:i},a.createElement(I.A,{usedColors:n,usedLabel:E.usedColors,recommendedLabel:E.recommendedColors})))),a.createElement(u.A,{span:12},a.createElement(p.A,{title:E.shadowDirection,key:"inset",placement:"bottom"},a.createElement(d.A.Item,{name:O,valuePropName:"value",className:i},a.createElement(V.A,{style:{width:"100%"},options:[{label:E.outside,value:!1},{label:E.inside,value:!0}]})))))};j.displayName="FormBoxShadowInputs";const W=j,D=({name:e,tooltipTitle:t,icon:n,className:l})=>{var r;const s=d.A.useFormInstance(),c=null!==(r=d.A.useWatch(e,s))&&void 0!==r&&r;return a.createElement(a.Fragment,null,a.createElement(d.A.Item,{name:e,noStyle:!0,hidden:!0},a.createElement("input",{type:"hidden"})),a.createElement(p.A,{placement:"bottom",title:t},a.createElement(o.A,{type:"text",className:i()("form-style-toggle-btn","selected-td-form__button","selected-td-form__button_style",{"selected-td-form__button--active":c},l),onClick:()=>{var t;return s.setFieldValue(e,!(null!==(t=s.getFieldValue(e))&&void 0!==t&&t))}},n)))};D.displayName="FormStyleToggleButton";const H=D;var z=n(48077),U=n(31492);const q=({name:e,label:t,className:n})=>a.createElement(d.A.Item,{className:i()("form-switch-row__item",n)},a.createElement("div",{className:"form-switch-row"},a.createElement(d.A.Item,{name:e,valuePropName:"checked",noStyle:!0},a.createElement(z.A,null)),a.createElement(U.A.Text,{className:"form-switch-row__label"},t)));q.displayName="FormSwitchRow";const Z=q,$=({name:e,label:t,usedColors:n,usedLabel:l,recommendedLabel:o,allowClear:r=!1,className:s})=>a.createElement("div",{className:i()("form-color-field",s)},a.createElement(U.A.Text,{type:"secondary",className:"form-color-field__label"},t),a.createElement(d.A.Item,{name:e,noStyle:!0},a.createElement(I.A,{className:"form-color-field__picker",allowClear:r,usedColors:n,usedLabel:l,recommendedLabel:o})));$.displayName="FormColorField";const G=$;var K=n(37266);const X=e=>{var t;return null!==(t=e.parentNode)&&void 0!==t?t:document.body},Y=({namePrefix:e,microLabel:t,usedColors:n,usedLabel:l,recommendedLabel:o,loadGoogleFonts:s,getPopupContainer:c=X,formatLabels:h={},inputLabels:f={},className:b})=>{var v,E,y,_,C,k,A;const w={bold:null!==(v=h.bold)&&void 0!==v?v:"Strong ( Ctrl+B )",italic:null!==(E=h.italic)&&void 0!==E?E:"Italic ( Ctrl+I )",strikethrough:null!==(y=h.strikethrough)&&void 0!==y?y:"Strikethrough ( Alt+Shift+5 )",underline:null!==(_=h.underline)&&void 0!==_?_:"Underline ( Ctrl+U )"},x={fontSize:null!==(C=f.fontSize)&&void 0!==C?C:"Font size",lineHeight:null!==(k=f.lineHeight)&&void 0!==k?k:"Line height",textColor:null!==(A=f.textColor)&&void 0!==A?A:"Text color"};return a.createElement("div",{className:i()("form-typography-fields",b)},a.createElement("div",{className:"form-typography-fields__stack"},a.createElement(U.A.Text,{type:"secondary",className:"form-typography-fields__micro-label"},t),a.createElement(p.A,{trigger:["hover"],title:"Text font",placement:"bottom",zIndex:1,getPopupContainer:e=>e.parentNode},a.createElement(d.A.Item,{name:`${e}FontFamily`,className:"form-item-margin-xs"},a.createElement(K.A,{textEditor:!0,loadGoogleFonts:s,getPopupContainer:c}))),a.createElement(m.A,{gutter:6,className:"form-typography-fields__size-row"},a.createElement(u.A,{span:12},a.createElement(p.A,{trigger:["hover"],title:x.fontSize,placement:"bottom"},a.createElement(d.A.Item,{name:`${e}FontSize`,className:"form-item-margin-xs"},a.createElement(g.A,{min:8,max:90,placeholder:x.fontSize,prefix:a.createElement(r.A,{icon:"FontSizeOutlined"}),addonAfter:"px"})))),a.createElement(u.A,{span:12},a.createElement(p.A,{trigger:["hover"],title:x.lineHeight,placement:"bottom"},a.createElement(d.A.Item,{name:`${e}LineHeight`,className:"form-item-margin-xs"},a.createElement(g.A,{min:10,max:110,placeholder:x.lineHeight,prefix:a.createElement(r.A,{icon:"LineHeightOutlined"}),addonAfter:"px"})))))),a.createElement("div",{className:"form-typography-fields__color-row"},a.createElement("div",{className:"form-typography-fields__color-wrap"},a.createElement(p.A,{trigger:["hover"],title:x.textColor,placement:"bottom",zIndex:2,getPopupContainer:e=>e.parentNode},a.createElement(d.A.Item,{name:`${e}Color`,className:"form-item-margin-xs"},a.createElement(I.A,{className:"form-typography-fields__color-picker",usedColors:n,usedLabel:l,recommendedLabel:o})))),a.createElement("div",{className:"form-typography-fields__fmt-btns"},a.createElement(H,{name:`${e}TextStrong`,tooltipTitle:w.bold,icon:a.createElement(r.A,{icon:"BoldOutlined",className:"selected-td-form__icon-radius"})}),a.createElement(H,{name:`${e}TextItalic`,tooltipTitle:w.italic,icon:a.createElement(r.A,{icon:"ItalicOutlined",className:"selected-td-form__icon-radius"})}),a.createElement(H,{name:`${e}TextStrikethrough`,tooltipTitle:w.strikethrough,icon:a.createElement(r.A,{icon:"StrikethroughOutlined",className:"selected-td-form__icon-radius"})}),a.createElement(H,{name:`${e}TextUnderline`,tooltipTitle:w.underline,icon:a.createElement(r.A,{icon:"UnderlineOutlined",className:"selected-td-form__icon-radius"})}))))};Y.displayName="FormTypographyFields";const J=Y;var Q=n(17142),ee=n(3327);function te({field:e,index:t,isOpen:n,onToggle:l,onRemove:s,canRemove:c,boundValueOptions:m,labels:u,getPopupContainer:g}){return a.createElement("div",{className:i()("form-options-list__option-block",n&&"form-options-list__option-block--open")},a.createElement("div",{className:i()("form-options-list__option-head-wrapper",n&&"form-options-list__option-head-wrapper--open")},a.createElement("button",{type:"button",className:"form-options-list__option-head","aria-expanded":n,onClick:l},a.createElement("span",{className:"form-options-list__option-head-main"},a.createElement("span",null,u.itemTitle(t+1)),a.createElement(r.A,{icon:"DownOutlined",size:16,className:i()("form-options-list__option-chevron",n&&"form-options-list__option-chevron--open")}))),c&&a.createElement(a.Fragment,null,a.createElement("span",{className:"form-options-list__option-head-divider","aria-hidden":!0}),a.createElement("div",{className:"form-options-list__option-head-delete"},a.createElement(p.A,{title:u.removeTooltip,placement:"bottom"},a.createElement(o.A,{type:"text",icon:a.createElement(r.A,{icon:"DeleteOutlined",size:16}),onClick:s}))))),n&&a.createElement("div",{className:"form-options-list__option-body"},a.createElement(d.A.Item,{name:[e.name,"title"],label:u.headingLabel},a.createElement(Q.A,{placeholder:u.headingPlaceholder,allowClear:!0})),a.createElement(d.A.Item,{name:[e.name,"boundValue"],label:u.valueTooltip?a.createElement("span",{className:"form-options-list__label-with-info"},u.valueLabel,a.createElement(p.A,{title:u.valueTooltip},a.createElement("span",{className:"form-options-list__info-icon"},a.createElement(r.A,{icon:"InfoCircleOutlined",size:12})))):u.valueLabel},a.createElement(ee.A,{className:"form-options-list__full-width",placeholder:u.valuePlaceholder,options:m,allowClear:!0,getPopupContainer:g}))))}const ne=({name:e,boundValueOptions:t,minItems:n=1,labels:l={},getPopupContainer:s,className:c})=>{var m,u,p,g,h,f,b,v;const[E,y]=(0,a.useState)(0),_={itemTitle:null!==(m=l.itemTitle)&&void 0!==m?m:e=>`Value ${e}`,headingLabel:null!==(u=l.headingLabel)&&void 0!==u?u:"Heading",valueLabel:null!==(p=l.valueLabel)&&void 0!==p?p:"Value",valueTooltip:null!==(g=l.valueTooltip)&&void 0!==g?g:null,addLabel:null!==(h=l.addLabel)&&void 0!==h?h:"Add value",removeTooltip:null!==(f=l.removeTooltip)&&void 0!==f?f:"Remove",headingPlaceholder:null!==(b=l.headingPlaceholder)&&void 0!==b?b:"Enter heading",valuePlaceholder:null!==(v=l.valuePlaceholder)&&void 0!==v?v:"Enter value"};return a.createElement("div",{className:i()("form-options-list",c)},a.createElement(d.A.List,{name:e},(e,{add:l,remove:i})=>a.createElement(a.Fragment,null,e.map((l,o)=>a.createElement(te,{key:l.key,field:l,index:o,isOpen:E===o,onToggle:()=>y(e=>e===o?-1:o),onRemove:()=>{i(l.name),y(e=>function(e,t){return e===t?Math.max(0,t-1):e>t?e-1:e}(e,o))},canRemove:e.length>n,boundValueOptions:t,labels:_,getPopupContainer:s})),a.createElement("div",{className:"form-options-list__add-wrap"},a.createElement(o.A,{type:"default",block:!0,className:"form-options-list__add-btn",icon:a.createElement(r.A,{icon:"PlusOutlined",size:16}),onClick:()=>{l({title:"",boundValue:void 0}),y(e.length)}},_.addLabel)))))};ne.displayName="FormOptionsList";const ae=ne},33367:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var a=n(1936),l=n(41408),i=n(85537),o=n(73974),r=n(47207),s=n(6056),c=n.n(s);const d={alignTop:"Align top",alignMiddle:"Center vertically",alignBottom:"Align bottom"},m=({value:e,onChange:t,disabled:n=!1,isNewIconType:s=!1,strokeWidth:m,labels:u={},tooltipTitle:p,size:g=18,tooltipPlacement:h="bottom",className:f})=>{const b={...d,...u},[v,E]=(0,a.useState)(null!==e&&void 0!==e?e:"");(0,a.useEffect)(()=>{E(null!==e&&void 0!==e?e:"")},[e]);const y=e=>{const n=e===v?"":e;E(n),null===t||void 0===t||t(n)},_=a.createElement(l.A.Group,{disabled:n,value:v,className:"em-form-vertical-align-control"},a.createElement(i.A,{size:8},a.createElement(o.A,{placement:h,title:b.alignTop},a.createElement(l.A.Button,{value:"top","aria-label":b.alignTop,onClick:()=>y("top")},a.createElement(r.A,{icon:s?"NewVerticalAlignTop":"AlignVerticalTop",size:g,strokeWidth:m,"aria-hidden":!0}))),a.createElement(o.A,{placement:h,title:b.alignMiddle},a.createElement(l.A.Button,{value:"middle","aria-label":b.alignMiddle,onClick:()=>y("middle")},a.createElement(r.A,{icon:s?"NewVerticalAlignCenter":"AlignVerticalCenter",size:g,strokeWidth:m,"aria-hidden":!0}))),a.createElement(o.A,{placement:h,title:b.alignBottom},a.createElement(l.A.Button,{value:"bottom","aria-label":b.alignBottom,onClick:()=>y("bottom")},a.createElement(r.A,{icon:s?"NewVerticalAlignBottom":"AlignVerticalBottom",size:g,strokeWidth:m,"aria-hidden":!0})))));let C=_;return p&&(C=a.createElement(o.A,{placement:h,title:p},a.createElement("span",{style:{display:"inline-block"}},_))),f&&(C=a.createElement("div",{className:c()("em-form-vertical-align-control",f)},C)),a.createElement(a.Fragment,null,C)};m.displayName="FormVerticalAlignControl";const u=m},13763:(e,t,n)=>{"use strict";n.d(t,{t:()=>u,A:()=>h});var a=n(1936),l=n(89197),i=n(92611),o=n(17142),r=n(77595),s=n(88145),c=n(6426),d=n(47207);const m={height:"auto"};function u(e){return a.createElement("svg",Object.assign({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},e),a.createElement("path",{d:"M9.99999 5.99998L5.99999 9.99998M5.99999 5.99998L9.99999 9.99998M14.6667 7.99998C14.6667 11.6819 11.6819 14.6666 7.99999 14.6666C4.3181 14.6666 1.33333 11.6819 1.33333 7.99998C1.33333 4.31808 4.3181 1.33331 7.99999 1.33331C11.6819 1.33331 14.6667 4.31808 14.6667 7.99998Z",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}))}const p=["#000000","#595959","#BFBFBF","#E5E5E5","#F5F5F5","#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB"],g=(0,a.forwardRef)(({id:e,onChange:t,value:n,externalValue:g,placeholder:h="Select color",disabled:f=!1,usedColors:b=[],recommendedColors:v=p,getPopupContainer:E,allowClear:y=!0,placement:_="bottomLeft",usedLabel:C="Used",recommendedLabel:k="Recommended",className:A,style:w,showEyeDropper:x=!0},S)=>{const[L]=(0,a.useState)(()=>"function"===typeof globalThis.EyeDropper),T=(0,a.useRef)(null),I=(0,a.useRef)(g),N=(0,a.useCallback)(e=>{null===t||void 0===t||t(e)},[t]),B=(0,a.useCallback)(e=>{N(e.toHexString().toUpperCase())},[N]);(0,a.useEffect)(()=>{void 0!==g&&g!==I.current&&N(g),I.current=g},[g,N]);const R=(0,a.useCallback)(async()=>{const e=globalThis.EyeDropper;if(e)try{const t=await(new e).open();N(t.sRGBHex.toUpperCase())}catch{}},[N]),O=x&&L,M=(0,a.useMemo)(()=>[{label:C,colors:[...new Set(b)]},{label:k,colors:[...new Set(v)]}],[C,b,k,v]),P=(0,a.useCallback)((e,{components:{Picker:t,Presets:n}})=>a.createElement(r.A,{justify:"space-between",wrap:!1},a.createElement(s.A,{flex:"auto"},a.createElement("div",{className:"color-picker-input__panel-picker-stack"+(O?" color-picker-input__panel-picker-stack--dropper":"")},a.createElement(t,null),O?a.createElement("div",{className:"color-picker-input__eyedropper-slot"},a.createElement(c.A,{size:"small",className:"color-picker-input__eyedropper-btn",icon:a.createElement(d.A,{icon:"Eyedropper"}),"aria-label":"\u041f\u0438\u043f\u0435\u0442\u043a\u0430",onClick:R})):null)),a.createElement(i.A,{type:"vertical",style:m}),a.createElement(s.A,{span:8},a.createElement(n,null))),[O,R]),V=(0,a.useCallback)(e=>{N(e.target.value)},[N]),F=!String(null!==n&&void 0!==n?n:"").trim(),j=""===n||null==n?void 0:n;return a.createElement("div",{ref:S,className:["color-picker-input",A].filter(Boolean).join(" "),style:w},a.createElement("div",{className:"color-picker-input__control-wrap"+(F?" color-picker-input__empty":"")},a.createElement(l.A,{disabledAlpha:!0,disabledFormat:!0,format:"hex",defaultFormat:"hex",getPopupContainer:E,placement:_,autoAdjustOverflow:!0,className:"color-picker-input__btn-wrap",rootClassName:"verticalColorpicker",value:j,onChange:B,panelRender:P,disabled:f,presets:M}),a.createElement(o.A,{allowClear:!(!y||F)&&{clearIcon:a.createElement(u,null)},id:e,disabled:f,className:"color-picker-input__control",placeholder:h,value:n,ref:T,onChange:V})))});g.displayName="ColorPickerInput";const h=g},37266:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var a=n(1936),l=n(36486),i=n(64668),o=n(47588);const r=e=>{var t,n;const a=null===e||void 0===e?void 0:e.closest(".blocks-app");return a||(null!==(t=null===e||void 0===e||null===(n=e.ownerDocument)||void 0===n?void 0:n.body)&&void 0!==t?t:document.body)};function s(e,t,n,a){return e.filter(e=>e.subsets.some(e=>n.includes(e))&&e.category===t&&e.popularity<a)}function c(e){return e.map(e=>({label:e.family,value:e.family,children:Object.keys(e.fonts).filter(e=>o.f5[e]).map(e=>({label:o.f5[e],value:o.f5[e]}))}))}const d=({value:e,onChange:t,textEditor:n=!1,safeFonts:d,googleFontsData:m,loadGoogleFonts:u,loading:p,getPopupContainer:g=r,style:h,placement:f="bottomRight",labels:b,filterOptions:v})=>{var E,y;const[_,C]=(0,a.useState)(),[k,A]=(0,a.useState)(e),[w,x]=(0,a.useState)(null),[S,L]=(0,a.useState)(!!u),T=(0,a.useMemo)(()=>({...o.xr,...b}),[b]),I=null!==(E=null===v||void 0===v?void 0:v.subsets)&&void 0!==E?E:o.It.subsets,N=null!==(y=null===v||void 0===v?void 0:v.maxPopularity)&&void 0!==y?y:o.It.maxPopularity,B=null!==d&&void 0!==d?d:o.Jn,R=null!==m&&void 0!==m?m:w,O=null!==p&&void 0!==p?p:S;(0,a.useEffect)(()=>{if(!u||m)return;let e=!1;return L(!0),u().then(t=>{e||(x(t),L(!1))}).catch(()=>{e||L(!1)}),()=>{e=!0}},[u,m]);const{filteredSansSerif:M,filteredSerif:P}=(0,a.useMemo)(()=>R?{filteredSansSerif:s(R.familyMetadataList,o.g4,I,N),filteredSerif:s(R.familyMetadataList,o.cP,I,N)}:{filteredSansSerif:[],filteredSerif:[]},[R,I,N]);(0,a.useEffect)(()=>{if(R){if(n&&e!==k)if(e)if(e[1]===o.g4){var t,a;C([o.Xr,o.g4,null!==(t=null===(a=M.find(t=>(null===t||void 0===t?void 0:t.family.replace(/\s/g,""))===String(e[2]).replace(/\s/g,"")))||void 0===a?void 0:a.family)&&void 0!==t?t:"",String(e[3]).replace(/Italic/g," Italic")])}else if(e[1]===o.cP){var l,i;C([o.Xr,o.cP,null!==(l=null===(i=P.find(t=>(null===t||void 0===t?void 0:t.family.replace(/\s/g,""))===String(e[2]).replace(/\s/g,"")))||void 0===i?void 0:i.family)&&void 0!==l?l:"",String(e[3]).replace(/Italic/g," Italic")])}else e[0]!==o.Tg&&void 0!==_||C(e);else C([""]);else void 0===_&&k&&C(e);n||C(e),A(e)}},[e,R,n,k,_,M,P]);const V=(0,a.useMemo)(()=>c(M),[M]),F=(0,a.useMemo)(()=>c(P),[P]),j=(0,a.useMemo)(()=>{if(O)return[{label:a.createElement(i.A,{size:"small",style:{marginLeft:8}}),value:"loading",disabled:!0}];const e=[{label:T.safeFonts,value:o.Tg,children:B}];return R&&e.push({label:T.googleFonts,value:o.Xr,children:[{label:T.sansSerif,value:o.g4,children:V},{label:T.serif,value:o.cP,children:F}]}),e},[O,T,B,R,V,F]),W=(0,a.useCallback)((e,n)=>{const a=e.filter(e=>null!=e);null===t||void 0===t||t(a,n)},[t]),D=(0,a.useCallback)(e=>{var t,n;const a=r(e),l=null===g||void 0===g?void 0:g(e),i=null!==l&&void 0!==l?l:a,o=null===(t=e.ownerDocument)||void 0===t||null===(n=t.defaultView)||void 0===n?void 0:n.getComputedStyle(i);return null!=o&&("hidden"===o.overflowX||"clip"===o.overflowX||"hidden"===o.overflow||"clip"===o.overflow)?a:i},[g]);return a.createElement(l.A,{allowClear:!1,showSearch:!0,value:_,placement:f,popupClassName:"control-font-family-dropdown",options:j,getPopupContainer:D,onChange:W,style:h})};d.displayName="ControlFontFamily";const m=d},27496:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),l=n(61503);const i=a.forwardRef(({dragspeed:e=1,...t},n)=>{const[i,o]=(0,a.useState)(!1),[r,s]=(0,a.useState)(0),[c,d]=(0,a.useState)(t.value||t.defaultValue||null),[m,u]=(0,a.useState)(t.value||t.defaultValue||null),p=()=>o(!1),g=(0,a.useCallback)(n=>{if(i){const a=n.clientX-r;let l=(c||0)+a*e;l=Math.max(0,Math.round(l)),void 0!==t.max&&(l=Math.min(l,Number(t.max))),void 0!==t.min&&(l=Math.max(l,Number(t.min))),u(l),t.onChange&&t.onChange(l)}},[i,t.onChange,t.max,t.min,c,r,e]);return(0,a.useEffect)(()=>{void 0!==t.value&&null!==t.value?u(t.value):void 0!==t.defaultValue&&null!==t.defaultValue?u(t.defaultValue):u(null)},[t.value,t.defaultValue]),(0,a.useEffect)(()=>(document.addEventListener("mouseup",p),document.addEventListener("mousemove",g),()=>{document.removeEventListener("mouseup",p),document.removeEventListener("mousemove",g)}),[i,r,c,g]),a.createElement("div",{role:"none",onMouseDown:e=>{var t;const n=e.target;n.hasAttribute("class")&&null!==(t=n.className)&&void 0!==t&&t.includes("ant-input-number-affix-wrapper")&&(o(!0),s(e.clientX),d(m))}},a.createElement(l.A,Object.assign({},t,{ref:n,value:m,className:"input-draggable"})),i&&a.createElement("div",{role:"none",className:"draggable-input-number-overlay",onMouseUp:p}))})},21419:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var a=n(1936),l=n(6619),i=n(17142),o=n(3327),r=n(85537),s=n(73974),c=n(47588);const{Option:d}=o.A,m=({options:e,position:t,setPosition:n,unit:m,setUnit:u,placeholder:p="",prefix:g="",dropdownStyle:h,tooltipTitle:f,tooltipPlacement:b="bottom",getTooltipPopupContainer:v})=>{const E=(0,a.useCallback)(t=>{if(!t)return!0;if(C(t)){return parseFloat(t)>=0}if(e&&e.length>0){return e.map(e=>"string"===typeof e?e:e.value).some(e=>String(e).toLowerCase().includes(t.toLowerCase()))}return!0},[e]),y=(0,a.useCallback)(e=>{E(e)&&n(e)},[n,E]),_=(0,a.useCallback)(e=>{u(e)},[u]),C=e=>!!e&&(!isNaN(parseFloat(e))&&isFinite(parseFloat(e))),k={width:C(t)?c.yz:c.I1,height:c.jw},A={width:c.uZ},w=(0,a.useCallback)((e,t)=>{var n;if(C(e)){var a;const e=String(null!==(a=null===t||void 0===t?void 0:t.value)&&void 0!==a?a:"");return C(e)&&parseFloat(e)>=0}return String(null!==(n=null===t||void 0===t?void 0:t.value)&&void 0!==n?n:"").toUpperCase().includes(e.toUpperCase())},[]),x=null!==e&&void 0!==e?e:[],S=a.createElement(r.A.Compact,null,a.createElement(l.A,{className:"custom-autocomplete",onChange:y,options:x,style:k,filterOption:w,value:t,dropdownStyle:h},a.createElement(i.A,{value:t,placeholder:p,prefix:g,onKeyDown:t=>{if(!c.qW.includes(t.key)&&!/[\d.]/.test(t.key))if(e&&e.length>0){e.some(e=>{const n="string"===typeof e?e:e.value;return String(n).toLowerCase().includes(t.key.toLowerCase())})||t.preventDefault()}else t.preventDefault()}})),C(t)&&a.createElement(o.A,{className:"select-after",style:A,value:m,onChange:_},a.createElement(d,{value:"px"},"px"),a.createElement(d,{value:"%"},"%")));return f?a.createElement(s.A,{trigger:["hover"],title:f,placement:b,getPopupContainer:v},a.createElement("div",null,S)):S}},42245:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(76626),i=n(47588);const o=({text:e,exceeded:t=!1,color:n=i.OT,exceededColor:o=i.MS,className:r,style:s,extra:c})=>{const d=["limits-counter-wrapper",r].filter(Boolean).join(" ");return a.createElement("div",{className:d,style:s},a.createElement(l.A,{bordered:!1,text:e,className:"limits-counter"+(t?" limits-counter--exceeded":""),color:t?o:n}),c&&a.createElement("div",{className:"limits-counter-extra"},c))}},1756:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(1936),l=n(41408),i=n(73974);const o=({value:e,defaultValue:t="",onChange:n,options:o,tooltipPlacement:r="top",className:s})=>a.createElement(l.A.Group,{value:e,defaultValue:t,onChange:n,className:`radio-color-filter ${null!==s&&void 0!==s?s:""}`.trim()},o.map(e=>{var t;return a.createElement(i.A,{key:e.value,title:e.label,placement:r},a.createElement(l.A.Button,{value:e.value,className:e.colorClass},null!==(t=e.children)&&void 0!==t?t:e.label))}));o.displayName="RadioColorFilter";const r=o},43477:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var a=n(1936),l=n(6056),i=n.n(l),o=n(6426);const r=(0,a.createContext)(null),s=(0,a.forwardRef)(({children:e,className:t,style:n},l)=>a.createElement("span",{ref:l,className:i()("panel-form__header-title",t),style:n},e));s.displayName="PanelForm.HeaderTitle";const c=(0,a.forwardRef)(({children:e,title:t,extra:n,onClose:l,closeIcon:s,className:c,style:d},m)=>{const u=(0,a.useId)(),p=(0,a.useContext)(r);return(0,a.useEffect)(()=>{if(null!=t&&p)return p(u),()=>p("")},[t,u,p]),a.createElement("div",{ref:m,className:i()("panel-form__header",c),style:d},a.createElement("div",{className:"panel-form__header-content",id:t?u:void 0},null==t?e:a.createElement("span",{className:"panel-form__header-title"},t)),a.createElement("div",{className:"panel-form__header-spacer"}),n&&a.createElement("div",{className:"panel-form__header-extra"},n),l&&a.createElement(o.A,{type:"text",className:"panel-form__close-btn","aria-label":"Close",icon:s,onClick:l}))});function d(e){if(void 0===e)return;if("number"===typeof e)return 0===e?{padding:0}:{padding:`0 ${e}px`};const t=e.horizontal,n=e.vertical;if(void 0===t&&void 0===n)return;const a={};return void 0!==t&&(a.paddingLeft=`${t}px`,a.paddingRight=`${t}px`),void 0!==n&&(a.paddingTop=`${n}px`,a.paddingBottom=`${n}px`),Object.keys(a).length?a:void 0}c.displayName="PanelForm.Header";const m=(0,a.forwardRef)(({children:e,padding:t,disableScroll:n=!1,className:l,style:o},r)=>{var s;return a.createElement("div",{ref:r,className:i()("panel-form__body",{"panel-form__body--no-scroll":n},l),style:o},a.createElement("div",{className:"panel-form__body-content",style:null!==(s=d(t))&&void 0!==s?s:void 0},e))});m.displayName="PanelForm.Body";const u=(0,a.forwardRef)(({children:e,className:t,style:n},l)=>a.createElement("div",{ref:l,className:i()("panel-form__footer",t),style:n},e));u.displayName="PanelForm.Footer";const p=(0,a.forwardRef)(({width:e,children:t,className:n,style:l,"aria-labelledby":o},s)=>{const[c,d]=(0,a.useState)(""),m="small"===e||"medium"===e||"large"===e,u=m||null==e?void 0:{width:"number"===typeof e?`${e}px`:e,maxWidth:"100%"},p=null!==o&&void 0!==o?o:c||void 0;return a.createElement(r.Provider,{value:d},a.createElement("div",{ref:s,role:"region","aria-labelledby":p,className:i()("panel-form",m&&`panel-form--${e}`,n),style:{...u,...l}},t))});p.displayName="PanelForm";const g=Object.assign(p,{Header:c,HeaderTitle:s,Body:m,Footer:u})},89294:(e,t,n)=>{"use strict";var a=n(1936),l=n(67877);const i=e=>a.createElement(l.A,e);i.Ribbon=l.A.Ribbon,i.displayName="Badge"},32751:(e,t,n)=>{"use strict";n(1936)},26395:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(32380);const i=a.forwardRef((e,t)=>a.createElement(l.A,Object.assign({ref:t},e)));i.displayName="Card",i.Meta=l.A.Meta,i.Grid=l.A.Grid;const o=i},83675:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(12346);const i=e=>a.createElement(l.A,e);i.displayName="Comment";const o=i},79431:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c});var a=n(1936),l=n(60369),i=n(6056),o=n.n(i);const r={default:l.A.PRESENTED_IMAGE_DEFAULT,simple:l.A.PRESENTED_IMAGE_SIMPLE,hidden:a.createElement(a.Fragment,null)},s=({variant:e="default",image:t,description:n,className:i,...s})=>{const c=void 0!==t?t:r[e],d="hidden"===e?"":n;return a.createElement(l.A,Object.assign({image:c,description:d,className:o()("hidden"===e&&"empty--hidden",i)},s))};s.displayName="Empty";l.A.PRESENTED_IMAGE_DEFAULT,l.A.PRESENTED_IMAGE_SIMPLE;const c=s},84412:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(21261);const i=e=>a.createElement(l.A,e);i.PreviewGroup=l.A.PreviewGroup,i.displayName="Image";const o=i},17280:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,A:()=>r});var a=n(1936),l=n(3636);const i="list__item-borderless",o=e=>a.createElement(l.A,e);o.Item=l.A.Item;const r=o},54124:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(62131);const i=({status:e,centered:t,className:n,...i})=>{const o=function(e){if(null==e)return;const t=Number(e);return!Number.isNaN(t)&&[403,404,500].includes(t)?String(t):e}(e),r=[n,t?"result--centered":null].filter(Boolean).join(" ");return a.createElement(l.Ay,Object.assign({},i,{status:o,className:r||void 0}))};i.displayName="Result";const o=i},32632:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(66643);const i=e=>a.createElement(l.A,e);i.Button=l.A.Button,i.Avatar=l.A.Avatar,i.Input=l.A.Input,i.Image=l.A.Image,i.Node=l.A.Node;const o=i},36725:(e,t,n)=>{"use strict";n.d(t,{dK:()=>i.A,bs:()=>d,zj:()=>c,Ay:()=>u});var a=n(1936),l=n(77190),i=n(68076),o=n(6056),r=n.n(o),s=n(47207);const c="table__selectedRow",d={container:"table__container",selectedRow:c,columnHeader:"table__columnHeader",columnHeaderLabel:"table__columnHeaderLabel",filterIcon:"table__filterIcon",fileNameCol:"table__fileNameCol",fileNameColWide:"table__fileNameCol table__fileNameCol--wide",fileName:"table__fileName",fileNameRow:"table__fileNameRow",lockInline:"table__lockInline",title:"table__title",fileItemCount:"table__fileItemCount",fileDate:"table__fileDate",tableMenu:"table__tableMenu",avatarActions:"table__avatarActions",paginationWrapper:"table__paginationWrapper"},m=e=>a.createElement(l.A,e);m.Container=({className:e,children:t,...n})=>a.createElement("div",Object.assign({className:r()(d.container,e)},n),t),m.PaginationWrapper=({className:e,children:t,...n})=>a.createElement("div",Object.assign({className:r()(d.paginationWrapper,e)},n),t),m.ColumnHeader=({label:e,isActive:t=!1,isAsc:n=!1,onClick:l,icon:i})=>a.createElement("div",{className:d.columnHeader},a.createElement("span",{className:d.columnHeaderLabel},e),a.createElement("span",{className:r()(d.filterIcon,{[`${d.filterIcon}--active`]:t,[`${d.filterIcon}--asc`]:t&&n,[`${d.filterIcon}--desc`]:t&&!n}),onClick:e=>{e.stopPropagation(),null===l||void 0===l||l()},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),null===l||void 0===l||l())},role:"button",tabIndex:0},null!==i&&void 0!==i?i:a.createElement(s.A,{icon:"BarChart03Icon",size:14,strokeWidth:2}))),m.CLASS_NAMES=d;const u=m},76626:(e,t,n)=>{"use strict";n.d(t,{X:()=>i,A:()=>o});var a=n(1936),l=n(50186);const i=({text:e,children:t,...n})=>a.createElement(l.A.CheckableTag,n,t||e||""),o=({text:e,children:t,...n})=>a.createElement(l.A,n,t||e||"")},6619:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(1974);const i=e=>e.parentNode,o=a.forwardRef(({getPopupContainer:e=i,...t},n)=>a.createElement(l.A,Object.assign({ref:n,getPopupContainer:e},t)))},36486:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(1936),l=n(80782);const i=e=>e.parentNode,o=a.forwardRef(({getPopupContainer:e=i,...t},n)=>a.createElement(l.A,Object.assign({ref:n,getPopupContainer:e},t)));o.SHOW_PARENT=l.A.SHOW_PARENT,o.SHOW_CHILD=l.A.SHOW_CHILD;const r=o},27699:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),l=n(77550);const i=({children:e,onCheckedChange:t,onChange:n,loading:i=!1,disabled:o,...r})=>a.createElement(l.A,Object.assign({},r,{disabled:o||i,onChange:e=>{null===n||void 0===n||n(e),null===t||void 0===t||t(e.target.checked)}}),e)},89197:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(45331);const i=e=>a.createElement(l.A,e);i.displayName="ColorPicker";const o=i},72629:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(71364);const i=a.forwardRef((e,t)=>a.createElement(l.A,Object.assign({ref:t},e)));i.displayName="DatePicker";const o=i},16633:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(92416);n(54529);const l=a.A},17142:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(1936),l=n(92927),i=n(51913);const o=a.forwardRef((e,t)=>a.createElement(l.A,Object.assign({ref:t},e)));o.TextArea=l.A.TextArea,o.Password=i.A,o.Search=l.A.Search,o.Group=l.A.Group;const r=o},61503:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(98489);const i=a.forwardRef((e,t)=>a.createElement(l.A,Object.assign({ref:t},e)));i.displayName="InputNumber";const o=i},13724:(e,t,n)=>{"use strict";n(1936);n(92927).A.OTP},51913:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),l=n(92927);const i=a.forwardRef((e,t)=>a.createElement(l.A.Password,Object.assign({ref:t},e)))},41408:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(1936),l=n(83215),i=n(6056),o=n.n(i);const r=({className:e,...t})=>a.createElement(l.Ay.Group,Object.assign({className:o()("em-radio",e)},t));r.displayName="Radio.Group";const s=Object.assign(e=>a.createElement(l.Ay,Object.assign({className:o()("em-radio",e.className)},e)),{Group:r,Button:l.Ay.Button});s.displayName="Radio";const c=s},84631:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),l=n(92927);const i=a.forwardRef((e,t)=>a.createElement(l.A.Search,Object.assign({ref:t},e)))},3327:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(1936),l=n(5464);const i=e=>e.parentNode,o=a.forwardRef(({getPopupContainer:e=i,...t},n)=>a.createElement(l.A,Object.assign({ref:n,getPopupContainer:e},t)));o.Option=l.A.Option,o.OptGroup=l.A.OptGroup;const r=o},48077:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(1936),l=n(35711),i=n(6056),o=n.n(i),r=n(85537);n(54529);const s={default:"",editorMode:"ant-switch_editor-mode",mobile:"ant-switch_mobile"},c=a.forwardRef(({variant:e="default",className:t,label:n,labelSize:i="default",labelStyle:c,labelClassName:d,id:m,...u},p)=>{const g=(0,a.useId)(),h=null!==m&&void 0!==m?m:g,f="small"===i?"ant-form-item-switch-label-small":"ant-form-item-switch-label",b=a.createElement(l.A,Object.assign({ref:p,id:n?h:m,className:o()(s[e],t)},u));return n?a.createElement(r.A,{size:8,align:"baseline"},b,a.createElement("div",{className:o()(f,d),style:c},a.createElement("label",{htmlFor:h},n))):b});c.displayName="Switch";const d=c},67393:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),l=n(92927);const i=a.forwardRef((e,t)=>a.createElement(l.A.TextArea,Object.assign({ref:t},e)))},40852:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(22531);const i=e=>a.createElement(l.A,e);i.Dragger=l.A.Dragger,i.displayName="Upload";const o=i},46007:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(28378);const i=e=>a.createElement(l.A,e);i.displayName="Alert";const o=i},33836:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(1936),l=n(51114),i=n(6056),o=n.n(i);const r=({className:e,centered:t=!0,rootClassName:n,...i})=>a.createElement(l.A,Object.assign({className:o()("em-modal",e),centered:t,rootClassName:o()("blocks-app",n)},i));r.displayName="Modal";const s=r},8461:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(1936),l=n(85562),i=n(6056),o=n.n(i);const r=({classNames:e,...t})=>{const n="object"===typeof e&&null!==e?{...e,root:o()("em-popconfirm",e.root)}:{root:"em-popconfirm"};return a.createElement(l.A,Object.assign({classNames:n},t))};r.displayName="Popconfirm";const s=r},54961:(e,t,n)=>{"use strict";var a=n(1936),l=n(32357);const i=e=>a.createElement(l.A,e);i.displayName="Progress"},64668:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(1936),l=n(52225),i=n(47207);const o={small:16,default:24,large:48},r=({indicator:e,size:t="default",...n})=>{const r=a.createElement(i.A,{icon:"LoadingOutlined",style:{fontSize:o[t]||24},spin:!0});return a.createElement(l.A,Object.assign({indicator:null!==e&&void 0!==e?e:r,size:t},n))}},73974:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),l=n(236);const i=a.forwardRef((e,t)=>a.createElement(l.A,Object.assign({ref:t},e)))},13419:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(97508);const i=e=>a.createElement(l.A,e);i.displayName="App",i.useApp=l.A.useApp;const o=i},6426:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),l=n(59878);const i=a.forwardRef((e,t)=>a.createElement(l.Ay,Object.assign({ref:t},e)))},47207:(e,t,n)=>{"use strict";n.d(t,{A:()=>Yi});var a={};n.r(a),n.d(a,{AimOutlined:()=>nn,ArrowLeftAntd:()=>Me,ArrowLeftOutlined:()=>Pe,ArrowRightOutlined:()=>Ve,BoldOutlined:()=>lt,BorderBottomOutlined:()=>ht,BorderLeftOutlined:()=>ft,BorderOuterOutlined:()=>ut,BorderRightOutlined:()=>gt,BorderTopOutlined:()=>pt,BugOutlined:()=>ln,BuildOutlined:()=>an,CalendarOutlined:()=>tn,CheckCircleFilled:()=>wt,CheckCircleOutlined:()=>xt,CheckOutlined:()=>tt,CloseCircleFilled:()=>St,CloseOutlined:()=>nt,ColumnHeightOutlined:()=>mt,ColumnWidthOutlined:()=>dt,CommentOutlined:()=>$t,CopyOutlined:()=>Je,CreditCardOutlined:()=>on,DashOutlined:()=>Ct,DeleteOutlined:()=>Ye,DesktopOutlined:()=>Qt,EditOutlined:()=>Xe,EllipsisOutlined:()=>Ze,ExclamationCircleOutlined:()=>Lt,EyeInvisibleOutlined:()=>Mt,FileImageOutlined:()=>Ft,FileOutlined:()=>Pt,FilePdfOutlined:()=>jt,FileTextOutlined:()=>Vt,FileWordOutlined:()=>Wt,FileZipOutlined:()=>Dt,FolderOutlined:()=>Ht,FontSizeOutlined:()=>st,HomeOutlined:()=>rn,InboxOutlined:()=>zt,InfoCircleOutlined:()=>Tt,ItalicOutlined:()=>it,LineHeightOutlined:()=>ct,LineOutlined:()=>_t,LinkOutlined:()=>Ut,LoadingOutlined:()=>At,LockOutlined:()=>Rt,LoginOutlined:()=>Fe,LogoutOutlined:()=>je,MailOutlined:()=>qt,MenuFoldOutlined:()=>ze,MenuOutlined:()=>He,MenuUnfoldOutlined:()=>Ue,MinusOutlined:()=>et,MobileOutlined:()=>en,MoreOutlined:()=>qe,PhoneOutlined:()=>Zt,PicLeftOutlined:()=>Ge,PlayCircleOutlined:()=>Yt,PlusOutlined:()=>Qe,RadiusBottomleftOutlined:()=>Et,RadiusBottomrightOutlined:()=>yt,RadiusUpleftOutlined:()=>bt,RadiusUprightOutlined:()=>vt,ReloadOutlined:()=>sn,RightCircleOutlined:()=>Jt,RightSquareOutlined:()=>cn,RollbackOutlined:()=>We,SettingOutlinedAntd:()=>dn,SkypeOutlined:()=>Gt,SmallDashOutlined:()=>kt,SnippetsOutlined:()=>at,SplitCellsOutlined:()=>Ke,StrikethroughOutlined:()=>rt,SwapOutlined:()=>De,UnderlineOutlined:()=>ot,UnlockOutlined:()=>Ot,UnorderedListOutlined:()=>$e,UserAddOutlined:()=>Nt,UserOutlined:()=>It,UsergroupAddOutlined:()=>Bt,VideoCameraOutlined:()=>Kt,YoutubeOutlined:()=>Xt});var l={};n.r(l),n.d(l,{AI:()=>ri,AMP:()=>si,AlignCenterOutlined:()=>bl,AlignHorizontalCenter:()=>_l,AlignHorizontalLeft:()=>yl,AlignHorizontalRight:()=>Cl,AlignLeftOutlined:()=>fl,AlignRightOutlined:()=>vl,AlignVerticalBottom:()=>wl,AlignVerticalCenter:()=>Al,AlignVerticalTop:()=>kl,Anchor:()=>el,AnnotationQuestionIcon:()=>Pi,ArrowLeftOutlined:()=>Nl,AtSignIcon:()=>_i,Atom:()=>Tl,AutoMode:()=>ti,BarChart03Icon:()=>$i,BellRinging04Icon:()=>Vi,Block:()=>Ll,CheckCircleVerified:()=>li,Close:()=>Rl,CloudDownloadOutlined:()=>Yl,CloudUploadOutlined:()=>Xl,Code:()=>oi,CodeBrowserIcon:()=>Ci,Column:()=>xl,CommentOutlined:()=>hi,Copy06Icon:()=>ki,CopyOutlined:()=>Vl,CreditCard02Icon:()=>Fi,DarkMode:()=>ei,DeleteOutlined:()=>Fl,DotsHoriz:()=>pi,DotsVerticalIcon:()=>Ai,DownOutlined:()=>Ol,Edit:()=>Pl,ElementAccordion:()=>gl,ElementButton:()=>al,ElementCarousel:()=>hl,ElementCountdown:()=>ml,ElementDivider:()=>sl,ElementForm:()=>pl,ElementImage:()=>ll,ElementImageAI:()=>il,ElementListUL:()=>rl,ElementSocial:()=>cl,ElementSpacer:()=>ol,ElementTable:()=>dl,ElementText:()=>tl,ElementTitle:()=>nl,ElementVideo:()=>ul,Email:()=>ci,EyeOutlined:()=>Zl,FileQuestion02Icon:()=>ji,FlipBackwardIcon:()=>wi,FolderIcon:()=>xi,FolderPlusIcon:()=>Wi,GoToParent:()=>Bl,Grid01Icon:()=>Si,Group:()=>Sl,HistoryOutlined:()=>Ul,Image:()=>ii,ImageAdd:()=>Dl,ImageUserIcon:()=>Li,InfoCircleIcon:()=>Ti,Justify:()=>El,LifeBuoy02Icon:()=>Di,LightMode:()=>Ql,ListViewIcon:()=>Gi,Lock:()=>ni,LogOut01Icon:()=>Hi,MessageChatSquareIcon:()=>zi,PanelLeft:()=>Il,PlusCircleOutlined:()=>Wl,PlusIcon:()=>Ui,RedoOutlined:()=>zl,RefreshCcw05Icon:()=>qi,RightOutlined:()=>Ml,Rocket02Icon:()=>Zi,SaveOutlined:()=>jl,SearchSmIcon:()=>Ii,SendOutlined:()=>$l,Server05Icon:()=>Ni,SettingOutlined:()=>gi,Settings04Icon:()=>Bi,ShareAltOutlined:()=>Gl,ShieldTickIcon:()=>Ri,SliderAdaptive:()=>Ei,SliderBlocks:()=>vi,SliderGroup:()=>fi,SliderMagic:()=>yi,SliderTemplates:()=>bi,Speed:()=>mi,Styles:()=>ui,Sun:()=>Jl,SyncOutlined:()=>ql,Target:()=>di,UnLock:()=>ai,UndoOutlined:()=>Hl,User03Icon:()=>Oi,Users02Icon:()=>Mi,Web:()=>Kl});var i=n(1936),o=n(97297),r=n(91796),s=n(86588),c=n(75248),d=n(42895),m=n(71947),u=n(70739),p=n(67078),g=n(22490),h=n(47362),f=n(86107),b=n(99031),v=n(9865),E=n(6221),y=n(64116),_=n(85420),C=n(42279),k=n(70389),A=n(29064),w=n(5488),x=n(96526),S=n(11930),L=n(52844),T=n(54621),I=n(49654),N=n(53630),B=n(99784),R=n(81400),O=n(27904),M=n(82355),P=n(17536),V=n(43344),F=n(78777),j=n(27159),W=n(83715),D=n(72986),H=n(48459),z=n(83318),U=n(11374),q=n(22323),Z=n(12409),$=n(87067),G=n(99230),K=n(14638),X=n(83356),Y=n(60222),J=n(38008),Q=n(9438),ee=n(94771),te=n(30294),ne=n(52322),ae=n(53304),le=n(22697),ie=n(74052),oe=n(6500),re=n(73394),se=n(34765),ce=n(78811),de=n(35985),me=n(77971),ue=n(54030),pe=n(74168),ge=n(93927),he=n(5199),fe=n(75774),be=n(65587),ve=n(74515),Ee=n(59588),ye=n(97101),_e=n(62860),Ce=n(85592),ke=n(73656),Ae=n(12505),we=n(71259),xe=n(80310),Se=n(8233),Le=n(36208),Te=n(11915),Ie=n(1637),Ne=n(80163),Be=n(41077),Re=n(56902),Oe=n(22161);const Me=e=>i.createElement(r.A,e),Pe=e=>i.createElement(r.A,e),Ve=e=>i.createElement(s.A,e),Fe=e=>i.createElement(c.A,e),je=e=>i.createElement(d.A,e),We=e=>i.createElement(m.A,e),De=e=>i.createElement(u.A,e),He=e=>i.createElement(p.A,e),ze=e=>i.createElement(g.A,e),Ue=e=>i.createElement(h.A,e),qe=e=>i.createElement(f.A,e),Ze=e=>i.createElement(b.A,e),$e=e=>i.createElement(v.A,e),Ge=e=>i.createElement(E.A,e),Ke=e=>i.createElement(y.A,e),Xe=e=>i.createElement(_.A,e),Ye=e=>i.createElement(C.A,e),Je=e=>i.createElement(k.A,e),Qe=e=>i.createElement(A.A,e),et=e=>i.createElement(w.A,e),tt=e=>i.createElement(x.A,e),nt=e=>i.createElement(S.A,e),at=e=>i.createElement(L.A,e),lt=e=>i.createElement(T.A,e),it=e=>i.createElement(I.A,e),ot=e=>i.createElement(N.A,e),rt=e=>i.createElement(B.A,e),st=e=>i.createElement(R.A,e),ct=e=>i.createElement(O.A,e),dt=e=>i.createElement(M.A,e),mt=e=>i.createElement(P.A,e),ut=e=>i.createElement(V.A,e),pt=e=>i.createElement(F.A,e),gt=e=>i.createElement(j.A,e),ht=e=>i.createElement(W.A,e),ft=e=>i.createElement(D.A,e),bt=e=>i.createElement(H.A,e),vt=e=>i.createElement(z.A,e),Et=e=>i.createElement(U.A,e),yt=e=>i.createElement(q.A,e),_t=e=>i.createElement(Z.A,e),Ct=e=>i.createElement($.A,e),kt=e=>i.createElement(G.A,e),At=e=>i.createElement(K.A,e),wt=e=>i.createElement(X.A,e),xt=e=>i.createElement(Y.A,e),St=e=>i.createElement(J.A,e),Lt=e=>i.createElement(Q.A,e),Tt=e=>i.createElement(ee.A,e),It=e=>i.createElement(te.A,e),Nt=e=>i.createElement(ne.A,e),Bt=e=>i.createElement(ae.A,e),Rt=e=>i.createElement(le.A,e),Ot=e=>i.createElement(ie.A,e),Mt=e=>i.createElement(oe.A,e),Pt=e=>i.createElement(re.A,e),Vt=e=>i.createElement(se.A,e),Ft=e=>i.createElement(ce.A,e),jt=e=>i.createElement(de.A,e),Wt=e=>i.createElement(me.A,e),Dt=e=>i.createElement(ue.A,e),Ht=e=>i.createElement(pe.A,e),zt=e=>i.createElement(ge.A,e),Ut=e=>i.createElement(he.A,e),qt=e=>i.createElement(fe.A,e),Zt=e=>i.createElement(be.A,e),$t=e=>i.createElement(ve.A,e),Gt=e=>i.createElement(Ee.A,e),Kt=e=>i.createElement(ye.A,e),Xt=e=>i.createElement(_e.A,e),Yt=e=>i.createElement(Ce.A,e),Jt=e=>i.createElement(ke.A,e),Qt=e=>i.createElement(Ae.A,e),en=e=>i.createElement(we.A,e),tn=e=>i.createElement(xe.A,e),nn=e=>i.createElement(Se.A,e),an=e=>i.createElement(Le.A,e),ln=e=>i.createElement(Te.A,e),on=e=>i.createElement(Ie.A,e),rn=e=>i.createElement(Ne.A,e),sn=e=>i.createElement(Be.A,e),cn=e=>i.createElement(Re.A,e),dn=e=>i.createElement(Oe.A,e);var mn=n(4495),un=n(33152),pn=n(61043),gn=n(67765),hn=n(83496),fn=n(25988),bn=n(86671),vn=n(42060),En=n(14411),yn=n(35602),_n=n(52631),Cn=n(86251),kn=n(75971),An=n(43587),wn=n(5958),xn=n(47603),Sn=n(52),Ln=n(45371),Tn=n(50409),In=n(47281),Nn=n(8599),Bn=n(72234),Rn=n(36474),On=n(46251),Mn=n(88083),Pn=n(76172),Vn=n(45246),Fn=n(62610),jn=n(96992),Wn=n(58711),Dn=n(50741),Hn=n(37179),zn=n(33084),Un=n(9441),qn=n(45841),Zn=n(54231),$n=n(74386),Gn=n(52183),Kn=n(56466),Xn=n(53916),Yn=n(59223),Jn=n(32607),Qn=n(71014),ea=n(4947),ta=n(32517),na=n(19615),aa=n(42085),la=n(6931),ia=n(82363),oa=n(81594),ra=n(61698),sa=n(114),ca=n(83285),da=n(39768),ma=n(5115),ua=n(79755),pa=n(65745),ga=n(48174),ha=n(47086),fa=n(35967),ba=n(30066),va=n(52312),Ea=n(79513),ya=n(6072),_a=n(37802),Ca=n(27941),ka=n(60282),Aa=n(11964),wa=n(86514),xa=n(46539),Sa=n(59893),La=n(62648),Ta=n(79865),Ia=n(93869),Na=n(99842),Ba=n(35430),Ra=n(28816),Oa=n(29505),Ma=n(7490),Pa=n(5608),Va=n(27240),Fa=n(97100),ja=n(91503),Wa=n(36108),Da=n(59922),Ha=n(38995),za=n(59415),Ua=n(76919),qa=n(51996),Za=n(46668),$a=n(69063),Ga=n(36067),Ka=n(91382),Xa=n(7956),Ya=n(34435),Ja=n(11306),Qa=n(26458);const el=e=>{var t;return i.createElement(mn.M,Object.assign({size:null!==(t=e.size)&&void 0!==t?t:18},e))},tl=e=>i.createElement(un.T,e),nl=e=>i.createElement(pn.M,e),al=e=>i.createElement(gn.Y,e),ll=e=>i.createElement(hn.p,e),il=e=>i.createElement(fn.B,e),ol=e=>i.createElement(bn.y,e),rl=e=>i.createElement(vn.B,e),sl=e=>i.createElement(En.c,e),cl=e=>i.createElement(yn.h,e),dl=e=>i.createElement(_n.W,e),ml=e=>i.createElement(Cn.M,e),ul=e=>i.createElement(kn.u,e),pl=e=>i.createElement(An.k,e),gl=e=>i.createElement(wn.f,e),hl=e=>i.createElement(xn.G,e),fl=e=>i.createElement(un.T,e),bl=e=>i.createElement(Sn.x,e),vl=e=>i.createElement(Ln.G,e),El=e=>i.createElement(Tn.m,e),yl=e=>i.createElement(In.k,e),_l=e=>i.createElement(Nn.U,e),Cl=e=>i.createElement(Bn.R,e),kl=e=>i.createElement(Rn.D,e),Al=e=>i.createElement(On.Q,e),wl=e=>i.createElement(Mn.e,e),xl=e=>i.createElement(Pn.x,e),Sl=e=>i.createElement(Vn.L,e),Ll=e=>i.createElement(Fn.H,e),Tl=e=>i.createElement(jn.l,e),Il=e=>i.createElement(Wn.Y,e),Nl=e=>i.createElement(Dn.M,e),Bl=e=>i.createElement(Hn.A,e),Rl=e=>i.createElement(zn.X,e),Ol=e=>i.createElement(Un.y,e),Ml=e=>i.createElement(qn.c,e),Pl=e=>i.createElement(Zn.s,e),Vl=e=>i.createElement($n.N,e),Fl=e=>i.createElement(Gn._,e),jl=e=>i.createElement(Kn.p,e),Wl=e=>i.createElement(Xn.f,e),Dl=e=>i.createElement(Yn.e,e),Hl=e=>i.createElement(Jn.u,e),zl=e=>i.createElement(Qn.p,e),Ul=e=>i.createElement(ea.Q,e),ql=e=>i.createElement(ta.w,e),Zl=e=>i.createElement(na.k,e),$l=e=>i.createElement(aa.E,e),Gl=e=>i.createElement(yn.h,e),Kl=e=>i.createElement(la.m,e),Xl=e=>i.createElement(ia.C,e),Yl=e=>i.createElement(oa.P,e),Jl=e=>i.createElement(ra.b,e),Ql=e=>i.createElement(ra.b,e),ei=e=>i.createElement(sa.Z,e),ti=e=>i.createElement(ca.U,e),ni=e=>i.createElement(da.R,e),ai=e=>i.createElement(ma.k,e),li=e=>i.createElement(ua.C,e),ii=e=>i.createElement(hn.p,e),oi=e=>i.createElement(pa.a,e),ri=e=>i.createElement(ga.T,e),si=e=>i.createElement(ha.H,e),ci=e=>i.createElement(fa.M,e),di=e=>i.createElement(ba.$,e),mi=e=>i.createElement(va.d,e),ui=e=>i.createElement(Ea.O,e),pi=e=>i.createElement(ya.F,e),gi=e=>i.createElement(_a.T,e),hi=e=>i.createElement(Ca.w,e),fi=e=>i.createElement(ka.F,e),bi=e=>i.createElement(Aa.T,e),vi=e=>i.createElement(wa.r,e),Ei=e=>i.createElement(xa.I,e),yi=e=>i.createElement(Sa.W,e),_i=e=>i.createElement(La.T,e),Ci=e=>i.createElement(Ta.A,e),ki=e=>i.createElement(Ia.G,e),Ai=e=>i.createElement(Na.t,e),wi=e=>i.createElement(Ba.n,e),xi=e=>i.createElement(Ra.v,e),Si=e=>i.createElement(Oa.g,e),Li=e=>i.createElement(Ma.v,e),Ti=e=>i.createElement(Pa.d,e),Ii=e=>i.createElement(Va.V,e),Ni=e=>i.createElement(Fa.r,e),Bi=e=>i.createElement(ja._,e),Ri=e=>i.createElement(Wa.L,e),Oi=e=>i.createElement(Da.h,e),Mi=e=>i.createElement(ka.F,e),Pi=e=>i.createElement(Ha.y,e),Vi=e=>i.createElement(za.U,e),Fi=e=>i.createElement(Ua.O,e),ji=e=>i.createElement(qa.z,e),Wi=e=>i.createElement(Za.J,e),Di=e=>i.createElement($a.M,e),Hi=e=>i.createElement(Ga.O,e),zi=e=>i.createElement(Ka.$,e),Ui=e=>i.createElement(Xa.F,e),qi=e=>i.createElement(Ya.u,e),Zi=e=>i.createElement(Ja.B,e),$i=e=>i.createElement(Qa.D,e),Gi=e=>i.createElement(vn.B,e),Ki={...a,...o,...l,generationAI:o.GenerationAI},Xi=({svgString:e,...t})=>i.createElement("span",Object.assign({},t,{dangerouslySetInnerHTML:{__html:e}})),Yi=({icon:e,configIcons:t,...n})=>{if(null!==t&&void 0!==t&&t[e])return i.createElement(Xi,Object.assign({svgString:t[e]},n));const a=Ki[e];return a?i.createElement(a,n):null}},97297:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AIRequests:()=>Oe,AddImage:()=>et,AddSlide:()=>xt,AppstoreAddOutlined:()=>Ue,AppstoreOutlined:()=>Ze,AutoRenewal:()=>s,BgPositionHorizontal:()=>x,BgPositionVertical:()=>L,Blur:()=>Z,BorderOuterOutlined:()=>He,BorderRadius:()=>en,BuildOutlined:()=>Ge,Button:()=>ot,CalendarDays:()=>Ie,ChatGpt:()=>o,CheckCircleOutlined:()=>We,ChevronDownCustom:()=>Wt,ClearChat:()=>yt,CloseAll:()=>It,CloseOutlined:()=>Je,CloseTag:()=>Lt,Colorize:()=>dt,CreateBlock:()=>nn,Crescent:()=>H,DarkWhite:()=>y,DesignerMode:()=>vt,Drop:()=>v,EditorMode:()=>ft,ElamaLogo:()=>En,ElementListOL:()=>J,ElementTextAI:()=>le,EmailConfirmation:()=>lt,EmailEnvelope:()=>Le,EmailGeneration:()=>Be,EnableAutoPayment:()=>d,Eyedropper:()=>ut,FolderOpen:()=>Jt,GenerationAI:()=>ue,GroupArrow:()=>Bt,Import:()=>de,LandscapeView:()=>P,LayoutCol1:()=>ln,LayoutCol2:()=>rn,LayoutCol2WideLeft:()=>cn,LayoutCol2WideRight:()=>mn,LayoutCol3:()=>pn,LayoutCol4:()=>hn,Link03:()=>Ft,MaxWidth:()=>A,MenuProfileAccountSettings:()=>u,MenuProfileBilling:()=>g,MenuProfileSignOut:()=>f,MergeTags:()=>nt,MinWidth:()=>C,MixedView:()=>O,NewEmail:()=>se,NewVerticalAlignBottom:()=>Gt,NewVerticalAlignCenter:()=>Zt,NewVerticalAlignTop:()=>Xt,Optimization:()=>Fe,OrderedListOutlined:()=>ee,PaddingBottom:()=>Ce,PaddingLeft:()=>Ae,PaddingLeftRight:()=>fe,PaddingRight:()=>xe,PaddingSwitcher:()=>ve,PaddingTop:()=>ye,PaddingTopBottom:()=>ge,Paragraph:()=>X,PortraitView:()=>F,Reload:()=>At,Replacer:()=>gt,SaveBlock:()=>bn,SearchOutlined:()=>Xe,SquareView:()=>W,Subscript:()=>Ht,Superscript:()=>Ut,Table:()=>st,Tests:()=>Pe,Trash03:()=>Ot,Typograf:()=>oe,UnorderedListOutlined:()=>ne,UpTo:()=>I,VerticalOffset:()=>B,Vimeo:()=>U,WebHook:()=>Ct,XCircleClearIcon:()=>Pt,ZoomOutMap:()=>G});var a=n(1936),l=n(58937);const i=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"chat-gpt",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M11.1396 4.91121C11.2741 4.50723 11.3208 4.07922 11.2764 3.65577C11.2321 3.23232 11.0979 2.82323 10.8827 2.45587C10.5636 1.90021 10.0763 1.46028 9.49105 1.19955C8.90578 0.938823 8.2528 0.870777 7.62631 1.00523C7.34374 0.68679 6.99643 0.432375 6.60757 0.259023C6.21871 0.0856726 5.79733 -0.00261924 5.3716 5.91632e-05C4.7311 -0.00148674 4.10665 0.200409 3.58828 0.576642C3.06991 0.952872 2.68442 1.484 2.48737 2.09345C2.07011 2.17886 1.67592 2.35242 1.33117 2.60252C0.98642 2.85261 0.699078 3.17346 0.488376 3.5436C0.166798 4.09773 0.02953 4.73964 0.0963679 5.37684C0.163206 6.01401 0.430694 6.61347 0.860259 7.08879C0.725757 7.49277 0.679098 7.92078 0.723405 8.34423C0.767712 8.76768 0.901962 9.17676 1.11717 9.54414C1.43623 10.0998 1.92355 10.5397 2.50882 10.8004C3.09409 11.0611 3.74707 11.1292 4.37353 10.9948C4.6561 11.3132 5.00344 11.5676 5.39227 11.741C5.78113 11.9143 6.20251 12.0026 6.62824 11.9999C7.26907 12.0016 7.89385 11.7996 8.4124 11.4232C8.93098 11.0467 9.31654 10.5152 9.51343 9.90537C9.93067 9.81996 10.3249 9.64641 10.6696 9.3963C11.0144 9.14622 11.3017 8.82534 11.5124 8.4552C11.8336 7.90113 11.9705 7.25937 11.9035 6.62244C11.8365 5.98551 11.569 5.38632 11.1396 4.91121ZM6.6292 11.2155C6.10315 11.2162 5.59363 11.032 5.18968 10.695C5.20789 10.6851 5.23984 10.6676 5.26066 10.6548L7.64998 9.27468C7.70995 9.24057 7.75975 9.1911 7.79425 9.13134C7.82878 9.07158 7.84675 9.00372 7.84633 8.93475V5.56626L8.85625 6.1494C8.86153 6.15204 8.86609 6.15594 8.86954 6.16077C8.87296 6.1656 8.87512 6.17121 8.87587 6.17706V8.96667C8.87512 9.5625 8.63824 10.1337 8.21713 10.5552C7.79602 10.9768 7.225 11.2142 6.6292 11.2155ZM1.79754 9.15192C1.53405 8.69664 1.43908 8.16321 1.52927 7.64496C1.54701 7.65561 1.578 7.67454 1.60024 7.68732L3.98956 9.06744C4.04911 9.10224 4.11685 9.1206 4.18582 9.1206C4.25476 9.1206 4.3225 9.10224 4.38205 9.06744L7.29916 7.38309V8.54937C7.29949 8.55531 7.29835 8.56128 7.29583 8.56668C7.29331 8.57208 7.2895 8.57679 7.28473 8.58036L4.86937 9.97491C4.35274 10.2725 3.73915 10.3529 3.16327 10.1986C2.58738 10.0443 2.09621 9.66789 1.79754 9.15192ZM1.16898 3.93582C1.43133 3.47994 1.8457 3.13092 2.33951 2.94981C2.33951 2.97039 2.33833 3.00684 2.33833 3.03213V5.7924C2.33791 5.86134 2.35586 5.92914 2.39033 5.98887C2.42479 6.04857 2.47454 6.09801 2.53445 6.13212L5.45155 7.81626L4.44166 8.39937C4.43668 8.40267 4.43095 8.40465 4.42501 8.40519C4.41907 8.40573 4.41307 8.4048 4.40758 8.40246L1.992 7.00671C1.47626 6.70803 1.10001 6.21705 0.945726 5.64138C0.791445 5.06574 0.871731 4.45239 1.16898 3.93582ZM9.46636 5.86668L6.54922 4.18233L7.55914 3.59943C7.56412 3.59616 7.56985 3.59415 7.57579 3.59361C7.58173 3.59307 7.5877 3.59403 7.59319 3.59637L10.0088 4.99092C10.3789 5.2047 10.6804 5.51946 10.878 5.89839C11.0757 6.27732 11.1613 6.7047 11.1248 7.13052C11.0884 7.55634 10.9313 7.96296 10.6721 8.30277C10.4129 8.64258 10.0623 8.90151 9.66127 9.04923C9.66127 9.02841 9.66127 8.99199 9.66127 8.96667V6.2064C9.66184 6.13758 9.64408 6.06984 9.60982 6.01014C9.57556 5.95044 9.52606 5.90094 9.46636 5.86668ZM10.4715 4.35384C10.4538 4.34295 10.4228 4.32426 10.4006 4.31151L8.01121 2.93136C7.95166 2.89662 7.88395 2.87829 7.81498 2.87829C7.74604 2.87829 7.6783 2.89662 7.61875 2.93136L4.70164 4.61574V3.44946C4.70131 3.44349 4.70245 3.43755 4.70497 3.43215C4.70749 3.42675 4.7113 3.42204 4.71607 3.41847L7.13143 2.02508C7.50145 1.81171 7.9246 1.70813 8.35135 1.72645C8.7781 1.74477 9.19078 1.88423 9.54118 2.12852C9.89155 2.37282 10.1651 2.71184 10.3299 3.10593C10.4946 3.50001 10.5438 3.93285 10.4715 4.35384ZM4.15258 6.43257L3.14242 5.84943C3.13714 5.84679 3.13255 5.84289 3.12913 5.83806C3.12571 5.83323 3.12352 5.82762 3.1228 5.82174V3.03213C3.12307 2.60489 3.24505 2.18654 3.47443 1.82609C3.70384 1.46563 4.03117 1.17798 4.41811 0.996792C4.80505 0.815607 5.23558 0.748392 5.65933 0.80301C6.08311 0.857628 6.48253 1.03182 6.81088 1.3052C6.79267 1.31514 6.76096 1.33265 6.7399 1.34542L4.35058 2.72555C4.29061 2.75963 4.24084 2.80907 4.20631 2.86878C4.17181 2.92848 4.15384 2.99631 4.15423 3.06525L4.15258 6.43257ZM4.70116 5.24973L6.0004 4.49934L7.29961 5.24925V6.74955L6.0004 7.49949L4.70116 6.74955V5.24973Z"})),o=e=>a.createElement(l.A,Object.assign({component:i},e)),r=()=>a.createElement("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:"false","data-icon":"auto-renewal","aria-hidden":"true"},a.createElement("path",{d:"M3.36686 3.36662L4.7002 2.03328M4.7002 2.03328L3.36686 0.699951M4.7002 2.03328H3.36686C1.8941 2.03328 0.700195 3.22719 0.700195 4.69995M11.3669 11.3666L10.0335 12.7M10.0335 12.7L11.3669 14.0333M10.0335 12.7H11.3669C12.8396 12.7 14.0335 11.506 14.0335 10.0333M6.15955 3.69995C6.60359 1.97472 8.16969 0.699951 10.0335 0.699951C12.2427 0.699951 14.0335 2.49081 14.0335 4.69995C14.0335 6.56378 12.7588 8.12987 11.0336 8.57392M8.70019 10.0333C8.70019 12.2424 6.90933 14.0333 4.7002 14.0333C2.49106 14.0333 0.700195 12.2424 0.700195 10.0333C0.700195 7.82415 2.49106 6.03328 4.7002 6.03328C6.90933 6.03328 8.70019 7.82415 8.70019 10.0333Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),s=e=>a.createElement(l.A,Object.assign({component:r},e)),c=()=>a.createElement("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:"false","data-icon":"enable-auto-payment","aria-hidden":"true"},a.createElement("path",{d:"M14.0326 6.7571V7.37043C14.0317 8.80805 13.5662 10.2069 12.7054 11.3583C11.8447 12.5098 10.6347 13.3521 9.25612 13.7597C7.87751 14.1673 6.40406 14.1184 5.05553 13.6202C3.70701 13.1219 2.55566 12.2012 1.77319 10.9951C0.99073 9.78912 0.61908 8.36248 0.71367 6.92798C0.80826 5.49348 1.36402 4.12798 2.29807 3.03515C3.23212 1.94231 4.49441 1.18069 5.89668 0.863864C7.29895 0.54704 8.76606 0.691992 10.0792 1.2771M14.0326 2.03328L7.36589 8.70662L5.36589 6.70662",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),d=e=>a.createElement(l.A,Object.assign({component:c},e)),m=()=>a.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:"false","data-icon":"menu-profile-account-settings","aria-hidden":"true"},a.createElement("path",{d:"M5.99967 10.3333H4.99968C4.0693 10.3333 3.60411 10.3333 3.22558 10.4482C2.37331 10.7067 1.70637 11.3736 1.44783 12.2259C1.33301 12.6044 1.33301 13.0696 1.33301 14M9.66634 5C9.66634 6.65685 8.3232 8 6.66634 8C5.00949 8 3.66634 6.65685 3.66634 5C3.66634 3.34315 5.00949 2 6.66634 2C8.3232 2 9.66634 3.34315 9.66634 5ZM7.33301 14L9.40058 13.4093C9.49959 13.381 9.54909 13.3668 9.59526 13.3456C9.63626 13.3268 9.67524 13.3039 9.71161 13.2772C9.75257 13.2471 9.78897 13.2107 9.86178 13.1379L14.1664 8.83336C14.6266 8.37311 14.6266 7.62689 14.1664 7.16665C13.7061 6.70642 12.9599 6.70642 12.4997 7.16666L8.19512 11.4712C8.12231 11.544 8.0859 11.5804 8.05583 11.6214C8.02914 11.6578 8.0062 11.6967 7.98737 11.7377C7.96617 11.7839 7.95203 11.8334 7.92374 11.9324L7.33301 14Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),u=e=>a.createElement(l.A,Object.assign({component:m},e)),p=()=>a.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:"false","data-icon":"menu-profile-billing","aria-hidden":"true"},a.createElement("path",{d:"M14.6663 6.66671H1.33301M7.33301 9.33337H3.99967M1.33301 5.46671L1.33301 10.5334C1.33301 11.2801 1.33301 11.6535 1.47833 11.9387C1.60616 12.1896 1.81014 12.3935 2.06102 12.5214C2.34624 12.6667 2.7196 12.6667 3.46634 12.6667L12.533 12.6667C13.2797 12.6667 13.6531 12.6667 13.9383 12.5214C14.1892 12.3936 14.3932 12.1896 14.521 11.9387C14.6663 11.6535 14.6663 11.2801 14.6663 10.5334V5.46671C14.6663 4.71997 14.6663 4.3466 14.521 4.06139C14.3932 3.8105 14.1892 3.60653 13.9383 3.4787C13.6531 3.33337 13.2797 3.33337 12.533 3.33337L3.46634 3.33337C2.7196 3.33337 2.34624 3.33337 2.06102 3.4787C1.81014 3.60653 1.60616 3.8105 1.47833 4.06139C1.33301 4.3466 1.33301 4.71997 1.33301 5.46671Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),g=e=>a.createElement(l.A,Object.assign({component:p},e)),h=()=>a.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:"false","data-icon":"menu-profile-sign-out","aria-hidden":"true"},a.createElement("path",{d:"M10.6667 11.3333L14 8M14 8L10.6667 4.66667M14 8H6M6 2H5.2C4.0799 2 3.51984 2 3.09202 2.21799C2.7157 2.40973 2.40973 2.71569 2.21799 3.09202C2 3.51984 2 4.07989 2 5.2V10.8C2 11.9201 2 12.4802 2.21799 12.908C2.40973 13.2843 2.71569 13.5903 3.09202 13.782C3.51984 14 4.0799 14 5.2 14H6",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),f=e=>a.createElement(l.A,Object.assign({component:h},e)),b=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"drop-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6 0L5.61832 0.458015C5.61832 0.458015 4.64123 1.6355 3.64886 3.09924C3.15268 3.83206 2.64123 4.63168 2.25955 5.40458C1.87787 6.17748 1.60306 6.91794 1.60306 7.60305C1.60306 10.0191 3.58397 12 6 12C8.41603 12 10.397 10.0191 10.397 7.60305C10.397 6.91794 10.1221 6.17748 9.74046 5.40458C9.35878 4.63168 8.84733 3.83206 8.35115 3.09924C7.35878 1.6355 6.38168 0.458015 6.38168 0.458015L6 0ZM6 1.57252C6.27291 1.91031 6.78436 2.50954 7.55726 3.64885C8.03817 4.35687 8.50382 5.1374 8.85497 5.84733C9.20611 6.55725 9.41985 7.21374 9.41985 7.60305C9.41985 9.48664 7.88359 11.0229 6 11.0229C4.11642 11.0229 2.58016 9.48664 2.58016 7.60305C2.58016 7.21374 2.7939 6.55725 3.14504 5.84733C3.49619 5.1374 3.96184 4.35687 4.44275 3.64885C5.21565 2.50954 5.7271 1.91031 6 1.57252ZM3.55726 7.60305C3.55726 8.94466 4.6584 10.0458 6 10.0458V9.0687C5.19084 9.0687 4.53436 8.41221 4.53436 7.60305H3.55726Z"})),v=e=>a.createElement(l.A,Object.assign({component:b},e)),E=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"dark-white",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0 6C0 2.68629 2.68629 0 6 0C9.31339 0 12 2.68661 12 6C12 9.31339 9.31339 12 6 12C2.68629 12 0 9.31371 0 6ZM6 10.9821C8.75089 10.9821 10.9821 8.75089 10.9821 6C10.9821 3.24911 8.75089 1.01786 6 1.01786V10.9821Z"})),y=e=>a.createElement(l.A,Object.assign({component:E},e)),_=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"min-width-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.35714 1.07143H0.607143C0.548214 1.07143 0.5 1.11964 0.5 1.17857V1.92857C0.5 1.9875 0.548214 2.03571 0.607143 2.03571H1.35714C1.41607 2.03571 1.46429 1.9875 1.46429 1.92857V1.17857C1.46429 1.11964 1.41607 1.07143 1.35714 1.07143ZM1.35714 3.29464H0.607143C0.548214 3.29464 0.5 3.34286 0.5 3.40178V4.15178C0.5 4.21071 0.548214 4.25893 0.607143 4.25893H1.35714C1.41607 4.25893 1.46429 4.21071 1.46429 4.15178V3.40178C1.46429 3.34286 1.41607 3.29464 1.35714 3.29464ZM1.35714 7.74107H0.607143C0.548214 7.74107 0.5 7.78928 0.5 7.84821V8.59821C0.5 8.65714 0.548214 8.70536 0.607143 8.70536H1.35714C1.41607 8.70536 1.46429 8.65714 1.46429 8.59821V7.84821C1.46429 7.78928 1.41607 7.74107 1.35714 7.74107ZM1.35714 9.96428H0.607143C0.548214 9.96428 0.5 10.0125 0.5 10.0714V10.8214C0.5 10.8804 0.548214 10.9286 0.607143 10.9286H1.35714C1.41607 10.9286 1.46429 10.8804 1.46429 10.8214V10.0714C1.46429 10.0125 1.41607 9.96428 1.35714 9.96428ZM1.35714 5.51786H0.607143C0.548214 5.51786 0.5 5.56607 0.5 5.625V6.375C0.5 6.43393 0.548214 6.48214 0.607143 6.48214H1.35714C1.41607 6.48214 1.46429 6.43393 1.46429 6.375V5.625C1.46429 5.56607 1.41607 5.51786 1.35714 5.51786Z"}),a.createElement("path",{d:"M11.3571 1.07143H10.6071C10.5482 1.07143 10.5 1.11964 10.5 1.17857V1.92857C10.5 1.9875 10.5482 2.03571 10.6071 2.03571H11.3571C11.4161 2.03571 11.4643 1.9875 11.4643 1.92857V1.17857C11.4643 1.11964 11.4161 1.07143 11.3571 1.07143ZM11.3571 3.29464H10.6071C10.5482 3.29464 10.5 3.34286 10.5 3.40178V4.15178C10.5 4.21071 10.5482 4.25893 10.6071 4.25893H11.3571C11.4161 4.25893 11.4643 4.21071 11.4643 4.15178V3.40178C11.4643 3.34286 11.4161 3.29464 11.3571 3.29464ZM11.3571 7.74107H10.6071C10.5482 7.74107 10.5 7.78928 10.5 7.84821V8.59821C10.5 8.65714 10.5482 8.70536 10.6071 8.70536H11.3571C11.4161 8.70536 11.4643 8.65714 11.4643 8.59821V7.84821C11.4643 7.78928 11.4161 7.74107 11.3571 7.74107ZM11.3571 9.96428H10.6071C10.5482 9.96428 10.5 10.0125 10.5 10.0714V10.8214C10.5 10.8804 10.5482 10.9286 10.6071 10.9286H11.3571C11.4161 10.9286 11.4643 10.8804 11.4643 10.8214V10.0714C11.4643 10.0125 11.4161 9.96428 11.3571 9.96428ZM11.3571 5.51786H10.6071C10.5482 5.51786 10.5 5.56607 10.5 5.625V6.375C10.5 6.43393 10.5482 6.48214 10.6071 6.48214H11.3571C11.4161 6.48214 11.4643 6.43393 11.4643 6.375V5.625C11.4643 5.56607 11.4161 5.51786 11.3571 5.51786Z"}),a.createElement("path",{d:"M11 5.51786H8.20535V4.67679C8.20535 4.59644 8.1116 4.5509 8.04865 4.60045L6.33973 5.95045C6.32816 5.95939 6.3188 5.97086 6.31236 5.98397C6.30592 5.99709 6.30257 6.01151 6.30257 6.02612C6.30257 6.04074 6.30592 6.05516 6.31236 6.06827C6.3188 6.08139 6.32816 6.09286 6.33973 6.10179L8.04732 7.45179C8.11026 7.50135 8.20401 7.45715 8.20401 7.37545V6.48215H11V5.51786Z"}),a.createElement("path",{d:"M1 5.51786H3.79465V4.67679C3.79465 4.59644 3.8884 4.5509 3.95135 4.60045L5.66027 5.95045C5.67184 5.95939 5.6812 5.97086 5.68764 5.98397C5.69408 5.99709 5.69743 6.01151 5.69743 6.02612C5.69743 6.04074 5.69408 6.05516 5.68764 6.06827C5.6812 6.08139 5.67184 6.09286 5.66027 6.10179L3.95268 7.45179C3.88974 7.50135 3.79599 7.45715 3.79599 7.37545V6.48215H1V5.51786Z"})),C=e=>a.createElement(l.A,Object.assign({component:_},e)),k=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"max-width-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.35714 1.07143H0.607143C0.548214 1.07143 0.5 1.11964 0.5 1.17857V1.92857C0.5 1.9875 0.548214 2.03571 0.607143 2.03571H1.35714C1.41607 2.03571 1.46429 1.9875 1.46429 1.92857V1.17857C1.46429 1.11964 1.41607 1.07143 1.35714 1.07143ZM1.35714 3.29464H0.607143C0.548214 3.29464 0.5 3.34286 0.5 3.40178V4.15178C0.5 4.21071 0.548214 4.25893 0.607143 4.25893H1.35714C1.41607 4.25893 1.46429 4.21071 1.46429 4.15178V3.40178C1.46429 3.34286 1.41607 3.29464 1.35714 3.29464ZM1.35714 7.74107H0.607143C0.548214 7.74107 0.5 7.78928 0.5 7.84821V8.59821C0.5 8.65714 0.548214 8.70536 0.607143 8.70536H1.35714C1.41607 8.70536 1.46429 8.65714 1.46429 8.59821V7.84821C1.46429 7.78928 1.41607 7.74107 1.35714 7.74107ZM1.35714 9.96428H0.607143C0.548214 9.96428 0.5 10.0125 0.5 10.0714V10.8214C0.5 10.8804 0.548214 10.9286 0.607143 10.9286H1.35714C1.41607 10.9286 1.46429 10.8804 1.46429 10.8214V10.0714C1.46429 10.0125 1.41607 9.96428 1.35714 9.96428ZM1.35714 5.51786H0.607143C0.548214 5.51786 0.5 5.56607 0.5 5.625V6.375C0.5 6.43393 0.548214 6.48214 0.607143 6.48214H1.35714C1.41607 6.48214 1.46429 6.43393 1.46429 6.375V5.625C1.46429 5.56607 1.41607 5.51786 1.35714 5.51786Z"}),a.createElement("path",{d:"M11.3571 1.07143H10.6071C10.5482 1.07143 10.5 1.11964 10.5 1.17857V1.92857C10.5 1.9875 10.5482 2.03571 10.6071 2.03571H11.3571C11.4161 2.03571 11.4643 1.9875 11.4643 1.92857V1.17857C11.4643 1.11964 11.4161 1.07143 11.3571 1.07143ZM11.3571 3.29464H10.6071C10.5482 3.29464 10.5 3.34286 10.5 3.40178V4.15178C10.5 4.21071 10.5482 4.25893 10.6071 4.25893H11.3571C11.4161 4.25893 11.4643 4.21071 11.4643 4.15178V3.40178C11.4643 3.34286 11.4161 3.29464 11.3571 3.29464ZM11.3571 7.74107H10.6071C10.5482 7.74107 10.5 7.78928 10.5 7.84821V8.59821C10.5 8.65714 10.5482 8.70536 10.6071 8.70536H11.3571C11.4161 8.70536 11.4643 8.65714 11.4643 8.59821V7.84821C11.4643 7.78928 11.4161 7.74107 11.3571 7.74107ZM11.3571 9.96428H10.6071C10.5482 9.96428 10.5 10.0125 10.5 10.0714V10.8214C10.5 10.8804 10.5482 10.9286 10.6071 10.9286H11.3571C11.4161 10.9286 11.4643 10.8804 11.4643 10.8214V10.0714C11.4643 10.0125 11.4161 9.96428 11.3571 9.96428ZM11.3571 5.51786H10.6071C10.5482 5.51786 10.5 5.56607 10.5 5.625V6.375C10.5 6.43393 10.5482 6.48214 10.6071 6.48214H11.3571C11.4161 6.48214 11.4643 6.43393 11.4643 6.375V5.625C11.4643 5.56607 11.4161 5.51786 11.3571 5.51786Z"}),a.createElement("path",{d:"M7.95133 4.54822L9.66026 5.89688C9.70848 5.93572 9.70848 6.01072 9.65758 6.04956L7.94999 7.39956C7.88705 7.44911 7.7933 7.40358 7.7933 7.32322V6.48215H4.20401V7.37545C4.20401 7.45715 4.11026 7.50135 4.04732 7.45179L2.33973 6.10179C2.32816 6.09286 2.3188 6.08139 2.31236 6.06827C2.30592 6.05516 2.30257 6.04074 2.30257 6.02612C2.30257 6.01151 2.30592 5.99709 2.31236 5.98397C2.3188 5.97085 2.32816 5.95939 2.33973 5.95045L4.04865 4.60045C4.1116 4.5509 4.20535 4.59644 4.20535 4.67679V5.51786H7.79464V4.62456C7.79459 4.60637 7.79967 4.58853 7.8093 4.57309C7.81892 4.55766 7.8327 4.54524 7.84906 4.53728C7.86541 4.52931 7.88368 4.52611 7.90177 4.52805C7.91986 4.52998 7.93703 4.53697 7.95133 4.54822Z"})),A=e=>a.createElement(l.A,Object.assign({component:k},e)),w=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"bg-position-horizontal",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("g",null,a.createElement("path",{opacity:"0.3",d:"M10.9286 0.85734H1.07142C0.834371 0.85734 0.642853 1.04886 0.642853 1.28591V11.1431C0.642853 11.3801 0.834371 11.5716 1.07142 11.5716H2.5958C2.65473 11.5716 2.70295 11.5234 2.70295 11.4645V10.7145C2.70295 10.6556 2.65473 10.6073 2.5958 10.6073H1.60714V1.82163H10.3929V5.10734C10.3929 5.16627 10.4411 5.21448 10.5 5.21448H11.25C11.3089 5.21448 11.3571 5.16627 11.3571 5.10734V1.28591C11.3571 1.04886 11.1656 0.85734 10.9286 0.85734Z"}),a.createElement("path",{d:"M10.9286 5.95536H3.85715C3.62009 5.95536 3.42857 6.14688 3.42857 6.38393V10.9286C3.42857 11.1656 3.62009 11.3571 3.85715 11.3571H10.9286C11.1656 11.3571 11.3571 11.1656 11.3571 10.9286V6.38393C11.3571 6.14688 11.1656 5.95536 10.9286 5.95536ZM10.3393 10.3393H4.44643V6.97322H10.3393V10.3393Z"}),a.createElement("path",{d:"M3.15129 3.31274H6.94594V2.47167C6.94594 2.39132 7.03969 2.34578 7.10264 2.39533L8.81157 3.74533C8.82313 3.75427 8.83249 3.76574 8.83893 3.77885C8.84537 3.79197 8.84872 3.80639 8.84872 3.821C8.84872 3.83562 8.84537 3.85004 8.83893 3.86315C8.83249 3.87627 8.82313 3.88774 8.81157 3.89667L7.10398 5.24667C7.04103 5.29623 6.94728 5.25203 6.94728 5.17033V4.27703H3.15129V3.31274Z"}))),x=e=>a.createElement(l.A,Object.assign({component:w},e)),S=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"bg-position-vertical",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("g",null,a.createElement("path",{opacity:"0.3",d:"M0.642854 11.143L0.642854 1.2859C0.642854 1.04885 0.834372 0.85733 1.07143 0.85733L10.9286 0.857331C11.1656 0.857331 11.3571 1.04885 11.3571 1.2859L11.3571 2.81028C11.3571 2.86921 11.3089 2.91742 11.25 2.91742L10.5 2.91742C10.4411 2.91742 10.3929 2.86921 10.3929 2.81028L10.3929 1.82162L1.60714 1.82162L1.60714 10.6073L4.89285 10.6073C4.95178 10.6073 5 10.6555 5 10.7145L5 11.4645C5 11.5234 4.95178 11.5716 4.89285 11.5716L1.07143 11.5716C0.834372 11.5716 0.642854 11.3801 0.642854 11.143Z"}),a.createElement("path",{d:"M5.74087 11.1431L5.74088 4.07162C5.74088 3.83457 5.93239 3.64305 6.16945 3.64305L10.7141 3.64305C10.9511 3.64305 11.1427 3.83457 11.1427 4.07162L11.1427 11.1431C11.1427 11.3801 10.9511 11.5716 10.7141 11.5716L6.16945 11.5716C5.93239 11.5716 5.74087 11.3801 5.74087 11.1431ZM10.1248 10.5538L10.1248 4.66091L6.75873 4.66091L6.75873 10.5538L10.1248 10.5538Z"}),a.createElement("path",{d:"M3.09827 3.36576L3.09827 7.1604L2.2572 7.1604C2.17684 7.1604 2.1313 7.25415 2.18086 7.3171L3.53086 9.02603C3.53979 9.03759 3.55126 9.04695 3.56438 9.0534C3.57749 9.05984 3.59191 9.06319 3.60653 9.06319C3.62114 9.06319 3.63556 9.05984 3.64868 9.0534C3.66179 9.04695 3.67326 9.03759 3.6822 9.02603L5.0322 7.31844C5.08175 7.25549 5.03755 7.16174 4.95586 7.16174L4.06255 7.16174L4.06255 3.36576L3.09827 3.36576Z"}))),L=e=>a.createElement(l.A,Object.assign({component:S},e)),T=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"up-to-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("g",null,a.createElement("path",{d:"M11.3571 1.07142L11.3571 10.9286C11.3571 11.1656 11.1656 11.3571 10.9286 11.3571H1.07142C0.834364 11.3571 0.642846 11.1656 0.642846 10.9286V6.10714C0.642846 6.04821 0.69106 6 0.749989 6H1.49999C1.55892 6 1.60713 6.04821 1.60713 6.10714V10.3929H10.3928L10.3928 1.60714L6.10713 1.60714C6.0482 1.60714 5.99999 1.55892 5.99999 1.5V0.749995C5.99999 0.691067 6.0482 0.642853 6.10713 0.642853L10.9286 0.642853C11.1656 0.642853 11.3571 0.834371 11.3571 1.07142Z"}),a.createElement("path",{d:"M1.80978 2.53298L1.11067 3.23209C1.09644 3.24625 1.07852 3.25614 1.05895 3.26062C1.03938 3.2651 1.01894 3.264 0.999964 3.25744C0.980987 3.25088 0.964231 3.23913 0.951603 3.22352C0.938975 3.20791 0.93098 3.18907 0.928529 3.16914L0.647279 0.766466C0.639243 0.698162 0.696833 0.639233 0.766476 0.647269L3.16916 0.928519C3.25755 0.939233 3.29505 1.04772 3.2321 1.11066L2.53032 1.81245L5.96156 5.2437C6.00308 5.28522 6.00308 5.35352 5.96156 5.39504L5.39371 5.96289C5.35219 6.00441 5.28389 6.00441 5.24237 5.96289L1.80978 2.53298Z"}))),I=e=>a.createElement(l.A,Object.assign({component:T},e)),N=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"vertical-offset-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M4.92856 10.4987L4.92856 1.17859C4.92856 1.11966 4.88034 1.07144 4.82141 1.07144L4.01784 1.07144C3.95891 1.07144 3.9107 1.11966 3.9107 1.17859L3.9107 9.28394L1.45981 7.35135C1.39016 7.29644 1.2857 7.346 1.2857 7.43573L1.2857 8.40671C1.2857 8.47234 1.31516 8.53394 1.3674 8.57546L4.23481 10.8362C4.51606 11.0572 4.92856 10.8576 4.92856 10.4987ZM8.08927 10.8214L8.08927 2.71609L10.5402 4.64868C10.6098 4.70359 10.7143 4.65403 10.7143 4.5643L10.7143 3.59332C10.7143 3.52769 10.6848 3.46609 10.6326 3.42457L7.76516 1.16385C7.48391 0.942871 7.07141 1.14243 7.07141 1.50001L7.07141 10.8214C7.07141 10.8804 7.11963 10.9286 7.17856 10.9286L7.98213 10.9286C8.04106 10.9286 8.08927 10.8804 8.08927 10.8214Z"})),B=e=>a.createElement(l.A,Object.assign({component:N},e)),R=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"mixed-view-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M12.0357 11.6071L12.0357 4.42857C12.0357 4.19152 11.8442 4 11.6071 4L7.42857 4C7.19151 4 7 4.19152 7 4.42857L7 11.6071C7 11.8442 7.19151 12.0357 7.42857 12.0357L11.6071 12.0357C11.8442 12.0357 12.0357 11.8442 12.0357 11.6071ZM8.01785 11.0179L8.01785 5.01786L11.0178 5.01786L11.0178 11.0179L8.01785 11.0179Z"}),a.createElement("path",{d:"M6.03571 11.6071L6.0357 6.42857C6.0357 6.19152 5.84419 6 5.60713 6L0.428567 6C0.191514 6 -4.29991e-06 6.19152 -4.31027e-06 6.42857L-4.05979e-06 11.6071C-4.07016e-06 11.8442 0.191514 12.0357 0.428568 12.0357L5.60713 12.0357C5.84419 12.0357 6.03571 11.8442 6.03571 11.6071ZM1.01785 11.0179L1.01785 7.01786L5.01785 7.01786L5.01785 11.0179L1.01785 11.0179Z"}),a.createElement("path",{d:"M5.99999 5.03571L0.428572 5.03571C0.191518 5.03571 0 4.84419 0 4.60714L2.45825e-06 0.428573C2.43753e-06 0.191519 0.191521 0 0.428574 0H7.60714C7.84419 0 8.03571 0.191518 8.03571 0.428572L8.03571 3H7.01785L7.01786 1.01786L1.01786 1.01786L1.01786 4.01785L5.99999 4.01785V5.03571Z"})),O=e=>a.createElement(l.A,Object.assign({component:R},e)),M=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"landscape-view",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0.392859 10.0357L11.5714 10.0357C11.8085 10.0357 12 9.84419 12 9.60714L12 2.42858C12 2.19152 11.8085 2 11.5714 2L0.392862 2C0.155808 2 -0.0357096 2.19152 -0.0357097 2.42857L-0.0357132 9.60714C-0.0357132 9.84419 0.155805 10.0357 0.392859 10.0357ZM0.982149 3.01786L10.9821 3.01786L10.9821 9.01786L0.982145 9.01786L0.982149 3.01786Z"})),P=e=>a.createElement(l.A,Object.assign({component:M},e)),V=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"portrait-view",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M10 11.6071L10 0.428574C10 0.191521 9.80848 2.46721e-06 9.57143 2.45684e-06L2.39286 -3.32519e-07C2.15581 -3.42881e-07 1.96429 0.191518 1.96429 0.428571L1.96429 11.6071C1.96429 11.8442 2.15581 12.0357 2.39286 12.0357L9.57143 12.0357C9.80848 12.0357 10 11.8442 10 11.6071ZM2.98215 11.0179L2.98215 1.01786L8.98214 1.01786L8.98214 11.0179L2.98215 11.0179Z"})),F=e=>a.createElement(l.A,Object.assign({component:V},e)),j=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"square-view",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1 1.42857L1 10.5893C1 10.8263 1.19152 11.0179 1.42857 11.0179L10.5605 11.0179C10.7976 11.0179 10.9891 10.8263 10.9891 10.5893L10.9891 1.42857C10.9891 1.19151 10.7976 0.999997 10.5605 0.999997L1.42857 0.999997C1.19152 0.999997 1 1.19151 1 1.42857ZM9.97123 2.01785L9.97123 10L2.01786 10L2.01786 2.01785L9.97123 2.01785Z"})),W=e=>a.createElement(l.A,Object.assign({component:j},e)),D=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"crescent-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6 1C6.112 1 6.22266 1.00383 6.332 1.0115C6.11066 1.48817 6 1.98433 6 2.5C6 2.974 6.0925 3.42717 6.2775 3.8595C6.4625 4.29183 6.71116 4.66417 7.0235 4.9765C7.33583 5.28883 7.70816 5.5375 8.1405 5.7225C8.57283 5.9075 9.026 6 9.5 6C10.0157 6 10.5118 5.88933 10.9885 5.668C10.9962 5.77733 11 5.888 11 6C11 6.453 10.9402 6.89567 10.8205 7.328C10.7008 7.76033 10.5335 8.1595 10.3185 8.5255C10.1035 8.8915 9.8425 9.22816 9.5355 9.5355C9.2285 9.84283 8.89183 10.1038 8.5255 10.3185C8.15916 10.5332 7.76 10.7005 7.328 10.8205C6.896 10.9405 6.45333 11.0003 6 11C5.54666 10.9997 5.104 10.9398 4.672 10.8205C4.24 10.7012 3.84083 10.5338 3.4745 10.3185C3.10817 10.1032 2.7715 9.84216 2.4645 9.5355C2.1575 9.22883 1.8965 8.89216 1.6815 8.5255C1.4665 8.15883 1.29917 7.75967 1.1795 7.328C1.05983 6.89633 1 6.45366 1 6C1 5.54633 1.05983 5.10367 1.1795 4.672C1.29917 4.24033 1.4665 3.84117 1.6815 3.4745C1.8965 3.10783 2.1575 2.77117 2.4645 2.4645C2.7715 2.15783 3.10817 1.89683 3.4745 1.6815C3.84083 1.46617 4.24 1.29883 4.672 1.1795C5.104 1.06017 5.54666 1.00033 6 1ZM5.0155 2.121C4.58583 2.23033 4.1855 2.40733 3.8145 2.652C3.4435 2.89667 3.1245 3.187 2.8575 3.523C2.5905 3.859 2.38083 4.24117 2.2285 4.6695C2.07617 5.09783 2 5.54117 2 5.9995C2 6.54116 2.1055 7.05866 2.3165 7.552C2.5275 8.04533 2.812 8.47116 3.17 8.8295C3.528 9.18783 3.95383 9.47233 4.4475 9.683C4.94116 9.89366 5.45866 9.99916 6 9.9995C6.45833 9.9995 6.90166 9.92333 7.33 9.771C7.75833 9.61866 8.1405 9.409 8.4765 9.142C8.8125 8.875 9.10283 8.556 9.3475 8.185C9.59216 7.814 9.76916 7.41366 9.8785 6.984C9.7665 6.99433 9.64016 6.9995 9.4995 6.9995C8.89016 6.9995 8.30816 6.88033 7.7535 6.642C7.19883 6.40366 6.72033 6.08333 6.318 5.681C5.91566 5.27867 5.59533 4.80017 5.357 4.2455C5.11867 3.69083 4.9995 3.10883 4.9995 2.4995C4.9995 2.35883 5.00516 2.233 5.0155 2.121Z"})),H=e=>a.createElement(l.A,Object.assign({component:D},e)),z=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"vimeo-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M10.9952 3.66719C10.9513 4.59967 10.2888 5.87689 9.00665 7.49794C7.68113 9.19101 6.55939 10.0376 5.64191 10.0376C5.07348 10.0376 4.59281 9.52102 4.19988 8.48818L3.41305 5.64743C3.12152 4.61411 2.80855 4.09732 2.47363 4.09732C2.40051 4.09732 2.14554 4.24829 1.70874 4.54983L1.25 3.96878C1.73068 3.55248 2.20404 3.13609 2.6701 2.72027C3.31116 2.1748 3.79184 1.88809 4.11213 1.85928C4.86971 1.78774 5.33576 2.29679 5.51077 3.38725C5.69992 4.56414 5.83106 5.29554 5.90419 5.58268C6.12259 6.55838 6.36293 7.04614 6.6252 7.04614C6.82898 7.04614 7.13513 6.73064 7.54268 6.09922C7.95072 5.46781 8.16913 4.98707 8.19838 4.65719C8.25639 4.11172 8.03799 3.83953 7.54268 3.83953C7.30966 3.83953 7.06932 3.88961 6.82167 3.98997C7.30235 2.45487 8.22031 1.70847 9.57508 1.75169C10.5798 1.7805 11.0537 2.41875 10.9952 3.66719Z"})),U=e=>a.createElement(l.A,Object.assign({component:z},e)),q=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"blur-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0.326321 7.56842C0.235089 7.56842 0.157895 7.53684 0.0947368 7.47368C0.0315789 7.41052 0 7.33333 0 7.24211C0 7.15088 0.0315789 7.07368 0.0947368 7.01053C0.157895 6.94737 0.235089 6.91579 0.326321 6.91579C0.417542 6.91579 0.494731 6.94737 0.557889 7.01053C0.621047 7.07368 0.652626 7.15088 0.652626 7.24211C0.652626 7.33333 0.621047 7.41052 0.557889 7.47368C0.494731 7.53684 0.417542 7.56842 0.326321 7.56842ZM0.326321 5.08421C0.235089 5.08421 0.157895 5.05263 0.0947368 4.98947C0.0315789 4.92632 0 4.84912 0 4.75789C0 4.66667 0.0315789 4.58948 0.0947368 4.52632C0.157895 4.46316 0.235089 4.43158 0.326321 4.43158C0.417542 4.43158 0.494731 4.46316 0.557889 4.52632C0.621047 4.58948 0.652626 4.66667 0.652626 4.75789C0.652626 4.84912 0.621047 4.92632 0.557889 4.98947C0.494731 5.05263 0.417542 5.08421 0.326321 5.08421ZM2.21163 10.4C2.03897 10.4 1.89386 10.3416 1.77632 10.2248C1.65877 10.108 1.59999 9.96325 1.59999 9.79058C1.59999 9.61792 1.6584 9.47281 1.77521 9.35526C1.89201 9.23772 2.03675 9.17894 2.20942 9.17894C2.38208 9.17894 2.52719 9.23735 2.64474 9.35416C2.76228 9.47096 2.82106 9.61569 2.82106 9.78837C2.82106 9.96103 2.76265 10.1061 2.64584 10.2237C2.52904 10.3412 2.38431 10.4 2.21163 10.4ZM2.21163 7.85263C2.03897 7.85263 1.89386 7.79423 1.77632 7.67743C1.65877 7.56062 1.59999 7.41588 1.59999 7.24322C1.59999 7.07054 1.6584 6.92544 1.77521 6.8079C1.89201 6.69035 2.03675 6.63158 2.20942 6.63158C2.38208 6.63158 2.52719 6.68998 2.64474 6.80678C2.76228 6.92359 2.82106 7.06833 2.82106 7.24099C2.82106 7.41366 2.76265 7.55877 2.64584 7.67632C2.52904 7.79386 2.38431 7.85263 2.21163 7.85263ZM2.21163 5.36842C2.03897 5.36842 1.89386 5.31002 1.77632 5.19322C1.65877 5.07641 1.59999 4.93167 1.59999 4.75901C1.59999 4.58634 1.6584 4.44123 1.77521 4.32368C1.89201 4.20614 2.03675 4.14737 2.20942 4.14737C2.38208 4.14737 2.52719 4.20577 2.64474 4.32257C2.76228 4.43938 2.82106 4.58412 2.82106 4.75678C2.82106 4.92946 2.76265 5.07456 2.64584 5.1921C2.52904 5.30965 2.38431 5.36842 2.21163 5.36842ZM2.21163 2.82106C2.03897 2.82106 1.89386 2.76265 1.77632 2.64584C1.65877 2.52904 1.59999 2.38431 1.59999 2.21163C1.59999 2.03897 1.6584 1.89386 1.77521 1.77632C1.89201 1.65877 2.03675 1.59999 2.20942 1.59999C2.38208 1.59999 2.52719 1.6584 2.64474 1.77521C2.76228 1.89201 2.82106 2.03675 2.82106 2.20942C2.82106 2.38208 2.76265 2.52719 2.64584 2.64474C2.52904 2.76228 2.38431 2.82106 2.21163 2.82106ZM4.75789 8.12632C4.51228 8.12632 4.30351 8.04035 4.13158 7.86842C3.95965 7.69649 3.87368 7.48772 3.87368 7.24211C3.87368 6.99649 3.95965 6.78772 4.13158 6.61579C4.30351 6.44386 4.51228 6.3579 4.75789 6.3579C5.00351 6.3579 5.21228 6.44386 5.38421 6.61579C5.55614 6.78772 5.6421 6.99649 5.6421 7.24211C5.6421 7.48772 5.55614 7.69649 5.38421 7.86842C5.21228 8.04035 5.00351 8.12632 4.75789 8.12632ZM4.75789 5.6421C4.51228 5.6421 4.30351 5.55614 4.13158 5.38421C3.95965 5.21228 3.87368 5.00351 3.87368 4.75789C3.87368 4.51228 3.95965 4.30351 4.13158 4.13158C4.30351 3.95965 4.51228 3.87368 4.75789 3.87368C5.00351 3.87368 5.21228 3.95965 5.38421 4.13158C5.55614 4.30351 5.6421 4.51228 5.6421 4.75789C5.6421 5.00351 5.55614 5.21228 5.38421 5.38421C5.21228 5.55614 5.00351 5.6421 4.75789 5.6421ZM4.75901 10.4C4.58634 10.4 4.44123 10.3416 4.32368 10.2248C4.20614 10.108 4.14737 9.96325 4.14737 9.79058C4.14737 9.61792 4.20577 9.47281 4.32257 9.35526C4.43938 9.23772 4.58412 9.17894 4.75678 9.17894C4.92946 9.17894 5.07456 9.23735 5.1921 9.35416C5.30965 9.47096 5.36842 9.61569 5.36842 9.78837C5.36842 9.96103 5.31002 10.1061 5.19322 10.2237C5.07641 10.3412 4.93167 10.4 4.75901 10.4ZM4.75901 2.82106C4.58634 2.82106 4.44123 2.76265 4.32368 2.64584C4.20614 2.52904 4.14737 2.38431 4.14737 2.21163C4.14737 2.03897 4.20577 1.89386 4.32257 1.77632C4.43938 1.65877 4.58412 1.59999 4.75678 1.59999C4.92946 1.59999 5.07456 1.6584 5.1921 1.77521C5.30965 1.89201 5.36842 2.03675 5.36842 2.20942C5.36842 2.38208 5.31002 2.52719 5.19322 2.64474C5.07641 2.76228 4.93167 2.82106 4.75901 2.82106ZM4.75789 12C4.66667 12 4.58948 11.9684 4.52632 11.9053C4.46316 11.8421 4.43158 11.7649 4.43158 11.6737C4.43158 11.5825 4.46316 11.5053 4.52632 11.4421C4.58948 11.379 4.66667 11.3474 4.75789 11.3474C4.84912 11.3474 4.92632 11.379 4.98947 11.4421C5.05263 11.5053 5.08421 11.5825 5.08421 11.6737C5.08421 11.7649 5.05263 11.8421 4.98947 11.9053C4.92632 11.9684 4.84912 12 4.75789 12ZM4.75789 0.652626C4.66667 0.652626 4.58948 0.621047 4.52632 0.55789C4.46316 0.494732 4.43158 0.417542 4.43158 0.326321C4.43158 0.235089 4.46316 0.157895 4.52632 0.0947368C4.58948 0.0315789 4.66667 0 4.75789 0C4.84912 0 4.92632 0.0315789 4.98947 0.0947368C5.05263 0.157895 5.08421 0.235089 5.08421 0.326321C5.08421 0.417542 5.05263 0.494732 4.98947 0.55789C4.92632 0.621047 4.84912 0.652626 4.75789 0.652626ZM7.24211 8.12632C6.99649 8.12632 6.78772 8.04035 6.61579 7.86842C6.44386 7.69649 6.3579 7.48772 6.3579 7.24211C6.3579 6.99649 6.44386 6.78772 6.61579 6.61579C6.78772 6.44386 6.99649 6.3579 7.24211 6.3579C7.48772 6.3579 7.69649 6.44386 7.86842 6.61579C8.04035 6.78772 8.12632 6.99649 8.12632 7.24211C8.12632 7.48772 8.04035 7.69649 7.86842 7.86842C7.69649 8.04035 7.48772 8.12632 7.24211 8.12632ZM7.24211 5.6421C6.99649 5.6421 6.78772 5.55614 6.61579 5.38421C6.44386 5.21228 6.3579 5.00351 6.3579 4.75789C6.3579 4.51228 6.44386 4.30351 6.61579 4.13158C6.78772 3.95965 6.99649 3.87368 7.24211 3.87368C7.48772 3.87368 7.69649 3.95965 7.86842 4.13158C8.04035 4.30351 8.12632 4.51228 8.12632 4.75789C8.12632 5.00351 8.04035 5.21228 7.86842 5.38421C7.69649 5.55614 7.48772 5.6421 7.24211 5.6421ZM7.24322 10.4C7.07054 10.4 6.92544 10.3416 6.8079 10.2248C6.69035 10.108 6.63158 9.96325 6.63158 9.79058C6.63158 9.61792 6.68998 9.47281 6.80678 9.35526C6.92359 9.23772 7.06833 9.17894 7.24099 9.17894C7.41366 9.17894 7.55877 9.23735 7.67632 9.35416C7.79386 9.47096 7.85263 9.61569 7.85263 9.78837C7.85263 9.96103 7.79423 10.1061 7.67743 10.2237C7.56062 10.3412 7.41588 10.4 7.24322 10.4ZM7.24322 2.82106C7.07054 2.82106 6.92544 2.76265 6.8079 2.64584C6.69035 2.52904 6.63158 2.38431 6.63158 2.21163C6.63158 2.03897 6.68998 1.89386 6.80678 1.77632C6.92359 1.65877 7.06833 1.59999 7.24099 1.59999C7.41366 1.59999 7.55877 1.6584 7.67632 1.77521C7.79386 1.89201 7.85263 2.03675 7.85263 2.20942C7.85263 2.38208 7.79423 2.52719 7.67743 2.64474C7.56062 2.76228 7.41588 2.82106 7.24322 2.82106ZM7.30527 12C7.21404 12 7.13684 11.9684 7.07368 11.9053C7.01053 11.8421 6.97895 11.7649 6.97895 11.6737C6.97895 11.5825 7.01053 11.5053 7.07368 11.4421C7.13684 11.379 7.21404 11.3474 7.30527 11.3474C7.39649 11.3474 7.47368 11.379 7.53684 11.4421C7.59999 11.5053 7.63157 11.5825 7.63157 11.6737C7.63157 11.7649 7.59999 11.8421 7.53684 11.9053C7.47368 11.9684 7.39649 12 7.30527 12ZM7.24211 0.652626C7.15088 0.652626 7.07368 0.621047 7.01053 0.55789C6.94737 0.494732 6.91579 0.417542 6.91579 0.326321C6.91579 0.235089 6.94737 0.157895 7.01053 0.0947368C7.07368 0.0315789 7.15088 0 7.24211 0C7.33333 0 7.41052 0.0315789 7.47368 0.0947368C7.53684 0.157895 7.56842 0.235089 7.56842 0.326321C7.56842 0.417542 7.53684 0.494732 7.47368 0.55789C7.41052 0.621047 7.33333 0.652626 7.24211 0.652626ZM9.79058 10.4C9.61792 10.4 9.47281 10.3416 9.35526 10.2248C9.23772 10.108 9.17894 9.96325 9.17894 9.79058C9.17894 9.61792 9.23735 9.47281 9.35416 9.35526C9.47096 9.23772 9.61569 9.17894 9.78837 9.17894C9.96103 9.17894 10.1061 9.23735 10.2237 9.35416C10.3412 9.47096 10.4 9.61569 10.4 9.78837C10.4 9.96103 10.3416 10.1061 10.2248 10.2237C10.108 10.3412 9.96325 10.4 9.79058 10.4ZM9.79058 7.85263C9.61792 7.85263 9.47281 7.79423 9.35526 7.67743C9.23772 7.56062 9.17894 7.41588 9.17894 7.24322C9.17894 7.07054 9.23735 6.92544 9.35416 6.8079C9.47096 6.69035 9.61569 6.63158 9.78837 6.63158C9.96103 6.63158 10.1061 6.68998 10.2237 6.80678C10.3412 6.92359 10.4 7.06833 10.4 7.24099C10.4 7.41366 10.3416 7.55877 10.2248 7.67632C10.108 7.79386 9.96325 7.85263 9.79058 7.85263ZM9.79058 5.36842C9.61792 5.36842 9.47281 5.31002 9.35526 5.19322C9.23772 5.07641 9.17894 4.93167 9.17894 4.75901C9.17894 4.58634 9.23735 4.44123 9.35416 4.32368C9.47096 4.20614 9.61569 4.14737 9.78837 4.14737C9.96103 4.14737 10.1061 4.20577 10.2237 4.32257C10.3412 4.43938 10.4 4.58412 10.4 4.75678C10.4 4.92946 10.3416 5.07456 10.2248 5.1921C10.108 5.30965 9.96325 5.36842 9.79058 5.36842ZM9.79058 2.82106C9.61792 2.82106 9.47281 2.76265 9.35526 2.64584C9.23772 2.52904 9.17894 2.38431 9.17894 2.21163C9.17894 2.03897 9.23735 1.89386 9.35416 1.77632C9.47096 1.65877 9.61569 1.59999 9.78837 1.59999C9.96103 1.59999 10.1061 1.6584 10.2237 1.77521C10.3412 1.89201 10.4 2.03675 10.4 2.20942C10.4 2.38208 10.3416 2.52719 10.2248 2.64474C10.108 2.76228 9.96325 2.82106 9.79058 2.82106ZM11.6737 7.56842C11.5825 7.56842 11.5053 7.53684 11.4421 7.47368C11.379 7.41052 11.3474 7.33333 11.3474 7.24211C11.3474 7.15088 11.379 7.07368 11.4421 7.01053C11.5053 6.94737 11.5825 6.91579 11.6737 6.91579C11.7649 6.91579 11.8421 6.94737 11.9053 7.01053C11.9684 7.07368 12 7.15088 12 7.24211C12 7.33333 11.9684 7.41052 11.9053 7.47368C11.8421 7.53684 11.7649 7.56842 11.6737 7.56842ZM11.6737 5.08421C11.5825 5.08421 11.5053 5.05263 11.4421 4.98947C11.379 4.92632 11.3474 4.84912 11.3474 4.75789C11.3474 4.66667 11.379 4.58948 11.4421 4.52632C11.5053 4.46316 11.5825 4.43158 11.6737 4.43158C11.7649 4.43158 11.8421 4.46316 11.9053 4.52632C11.9684 4.58948 12 4.66667 12 4.75789C12 4.84912 11.9684 4.92632 11.9053 4.98947C11.8421 5.05263 11.7649 5.08421 11.6737 5.08421Z"})),Z=e=>a.createElement(l.A,Object.assign({component:q},e)),$=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"zoom-out-map",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0.650002 11.35V7.88241H1.64073V9.65585L3.7213 7.57528L4.42472 8.2787L2.34415 10.3593H4.11759V11.35H0.650002ZM7.88241 11.35V10.3593H9.65585L7.58519 8.28861L8.28861 7.58519L10.3593 9.65585V7.88241H11.35V11.35H7.88241ZM3.71139 4.41481L1.64073 2.34415V4.11759H0.650002V0.65H4.11759V1.64073H2.34415L4.41481 3.71139L3.71139 4.41481ZM8.28861 4.41481L7.58519 3.71139L9.65585 1.64073H7.88241V0.65H11.35V4.11759H10.3593V2.34415L8.28861 4.41481Z"})),G=e=>a.createElement(l.A,Object.assign({component:$},e)),K=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"paragraph-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M5.01104 12V7.61696H4.94805C4.12998 7.61696 3.43412 7.29507 2.86047 6.65128C2.28682 6.00748 2 5.22655 2 4.30848C2 3.39041 2.28682 2.60947 2.86047 1.96568C3.43412 1.32189 4.12998 1 4.94805 1H10V2.10281H8.68975V12H7.70709V2.10281H5.99371V12H5.01104Z"})),X=e=>a.createElement(l.A,Object.assign({component:K},e)),Y=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-list-ol",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M4.375 26.8749V25.3846H7.5V24.0624H5.625V22.5721H7.5V21.2499H4.375V19.7596H7.93269C8.23238 19.7596 8.48357 19.8609 8.68628 20.0637C8.88901 20.2664 8.99038 20.5176 8.99038 20.8173V22.3077C8.99038 22.6073 8.88901 22.8585 8.68628 23.0613C8.48357 23.264 8.23238 23.3653 7.93269 23.3653C8.23238 23.3653 8.48357 23.4667 8.68628 23.6694C8.88901 23.8721 8.99038 24.1233 8.99038 24.423V25.8173C8.99038 26.1169 8.88901 26.3681 8.68628 26.5708C8.48357 26.7736 8.23238 26.8749 7.93269 26.8749H4.375ZM4.375 18.5577V15.3125C4.375 15.0128 4.47636 14.7616 4.67909 14.5589C4.88182 14.3561 5.13302 14.2548 5.43269 14.2548H7.5V12.9327H4.375V11.4423H7.93269C8.23238 11.4423 8.48357 11.5436 8.68628 11.7464C8.88901 11.9491 8.99038 12.2003 8.99038 12.5V14.6875C8.99038 14.9871 8.88901 15.2383 8.68628 15.4411C8.48357 15.6438 8.23238 15.7452 7.93269 15.7452H5.86537V17.0673H8.99038V18.5577H4.375ZM6.25 10.2404V4.61538H4.375V3.125H7.74038V10.2404H6.25ZM11.6346 23.4374V21.5625H25.6249V23.4374H11.6346ZM11.6346 15.9374V14.0625H25.6249V15.9374H11.6346ZM11.6346 8.43744V6.5625H25.6249V8.43744H11.6346Z"})),J=e=>a.createElement(l.A,Object.assign({component:Y},e)),Q=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},a.createElement("path",{d:"M14 4L8 4M14 12L8 12M14 8L8 8",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M4.66667 14H2C2 13.1433 2.29333 12.8577 3 12.5721C3.70667 12.2865 4.66667 11.9038 4.66667 11.1442C4.66667 10.8757 4.55333 10.613 4.34667 10.4074C4.13324 10.2003 3.84326 10.0624 3.5253 10.0166C3.20733 9.9709 2.88067 10.0201 2.6 10.1561C2.32 10.2932 2.10667 10.5102 2 10.7672",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M2 2.75371L3.5253 2C3.5253 3.70385 3.5253 4.60938 3.5253 6H4.66667L2 5.99805",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),ee=e=>a.createElement(l.A,Object.assign({component:Q},e)),te=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},a.createElement("path",{d:"M14 7.99967L6 7.99967M14 3.99968L6 3.99967M14 11.9997L6 11.9997M3.33333 7.99967C3.33333 8.36786 3.03486 8.66634 2.66667 8.66634C2.29848 8.66634 2 8.36786 2 7.99967C2 7.63148 2.29848 7.33301 2.66667 7.33301C3.03486 7.33301 3.33333 7.63148 3.33333 7.99967ZM3.33333 3.99967C3.33333 4.36786 3.03486 4.66634 2.66667 4.66634C2.29848 4.66634 2 4.36786 2 3.99967C2 3.63148 2.29848 3.33301 2.66667 3.33301C3.03486 3.33301 3.33333 3.63148 3.33333 3.99967ZM3.33333 11.9997C3.33333 12.3679 3.03486 12.6663 2.66667 12.6663C2.29848 12.6663 2 12.3679 2 11.9997C2 11.6315 2.29848 11.333 2.66667 11.333C3.03486 11.333 3.33333 11.6315 3.33333 11.9997Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),ne=e=>a.createElement(l.A,Object.assign({component:te},e)),ae=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-text-ai",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M4.375 22.0865V20.2115H18.1249V22.0865H4.375ZM4.375 15.9807V14.1058H25.6249V15.9807H4.375ZM4.375 9.87497V8H11V9.87497H4.375Z"}),a.createElement("path",{d:"M17 13C17 13 16.6521 11.5906 16.0308 10.9692C15.4094 10.3479 14 10 14 10C14 10 15.4094 9.65215 16.0308 9.03077C16.6521 8.40939 17 7 17 7C17 7 17.3479 8.40939 17.9692 9.03077C18.5906 9.65215 20 10 20 10C20 10 18.5906 10.3479 17.9692 10.9692C17.3479 11.5906 17 13 17 13Z"}),a.createElement("path",{d:"M22.5 11C22.5 11 21.8623 8.41612 20.7231 7.27692C19.5839 6.13773 17 5.5 17 5.5C17 5.5 19.5839 4.86227 20.7231 3.72308C21.8623 2.58388 22.5 0 22.5 0C22.5 0 23.1377 2.58388 24.2769 3.72308C25.4161 4.86227 28 5.5 28 5.5C28 5.5 25.4161 6.13773 24.2769 7.27692C23.1377 8.41612 22.5 11 22.5 11Z"}),a.createElement("path",{d:"M15 5C15 5 14.7681 4.06041 14.3538 3.64615C13.9396 3.2319 13 3 13 3C13 3 13.9396 2.7681 14.3538 2.35385C14.7681 1.93959 15 1 15 1C15 1 15.2319 1.93959 15.6462 2.35385C16.0604 2.7681 17 3 17 3C17 3 16.0604 3.2319 15.6462 3.64615C15.2319 4.06041 15 5 15 5Z"}),a.createElement("path",{d:"M27 13C27 13 26.7681 12.0604 26.3538 11.6462C25.9396 11.2319 25 11 25 11C25 11 25.9396 10.7681 26.3538 10.3538C26.7681 9.93959 27 9 27 9C27 9 27.2319 9.93959 27.6462 10.3538C28.0604 10.7681 29 11 29 11C29 11 28.0604 11.2319 27.6462 11.6462C27.2319 12.0604 27 13 27 13Z"})),le=e=>a.createElement(l.A,Object.assign({component:ae},e)),ie=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"typograf-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6.65333 7.21508H5.1671L3.00719 4.63822L5.1671 2H6.65333L4.44481 4.63822L6.65333 7.21508ZM3.64614 7.21508H2.17379L0 4.63822L2.17379 2H3.63919L1.43762 4.63822L3.64614 7.21508Z"}),a.createElement("path",{d:"M12 6.43338L11.1167 9.98246H9.94694L11.069 6.43338H12ZM9.58089 6.43338L8.72148 9.98246H7.52784L8.6419 6.43338H9.58089Z"})),oe=e=>a.createElement(l.A,Object.assign({component:ie},e)),re=()=>a.createElement("svg",{width:"42",height:"43",viewBox:"0 0 42 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"0.00830078",y:"0.173828",width:"42",height:"42",rx:"21",fill:"#4597F7"}),a.createElement("g",{clipPath:"url(#clip0_2193_1178)"},a.createElement("path",{d:"M14.0083 30.1739C13.4583 30.1739 12.9875 29.9781 12.5958 29.5864C12.2041 29.1948 12.0083 28.7239 12.0083 28.1739V14.1739C12.0083 13.6239 12.2041 13.1531 12.5958 12.7614C12.9875 12.3698 13.4583 12.1739 14.0083 12.1739H22.9333L20.9333 14.1739H14.0083V28.1739H28.0083V21.2239L30.0083 19.2239V28.1739C30.0083 28.7239 29.8125 29.1948 29.4208 29.5864C29.0291 29.9781 28.5583 30.1739 28.0083 30.1739H14.0083ZM18.0083 24.1739V19.9239L27.1833 10.7489C27.3833 10.5489 27.6083 10.3989 27.8583 10.2989C28.1083 10.1989 28.3583 10.1489 28.6083 10.1489C28.875 10.1489 29.1291 10.1989 29.3708 10.2989C29.6125 10.3989 29.8333 10.5489 30.0333 10.7489L31.4333 12.1739C31.6166 12.3739 31.7583 12.5948 31.8583 12.8364C31.9583 13.0781 32.0083 13.3239 32.0083 13.5739C32.0083 13.8239 31.9625 14.0698 31.8708 14.3114C31.7791 14.5531 31.6333 14.7739 31.4333 14.9739L22.2583 24.1739H18.0083ZM20.0083 22.1739H21.4083L27.2083 16.3739L26.5083 15.6739L25.7833 14.9739L20.0083 20.7489V22.1739Z",fill:"white"}),a.createElement("path",{d:"M14.0083 30.1739C13.4583 30.1739 12.9875 29.9781 12.5958 29.5864C12.2041 29.1948 12.0083 28.7239 12.0083 28.1739V14.1739C12.0083 13.6239 12.2041 13.1531 12.5958 12.7614C12.9875 12.3698 13.4583 12.1739 14.0083 12.1739H22.9333L20.9333 14.1739H14.0083V28.1739H28.0083V21.2239L30.0083 19.2239V28.1739C30.0083 28.7239 29.8125 29.1948 29.4208 29.5864C29.0291 29.9781 28.5583 30.1739 28.0083 30.1739H14.0083ZM18.0083 24.1739V19.9239L27.1833 10.7489C27.3833 10.5489 27.6083 10.3989 27.8583 10.2989C28.1083 10.1989 28.3583 10.1489 28.6083 10.1489C28.875 10.1489 29.1291 10.1989 29.3708 10.2989C29.6125 10.3989 29.8333 10.5489 30.0333 10.7489L31.4333 12.1739C31.6166 12.3739 31.7583 12.5948 31.8583 12.8364C31.9583 13.0781 32.0083 13.3239 32.0083 13.5739C32.0083 13.8239 31.9625 14.0698 31.8708 14.3114C31.7791 14.5531 31.6333 14.7739 31.4333 14.9739L22.2583 24.1739H18.0083ZM20.0083 22.1739H21.4083L27.2083 16.3739L26.5083 15.6739L25.7833 14.9739L20.0083 20.7489V22.1739Z",fill:"white"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_2193_1178"},a.createElement("rect",{width:"24",height:"24",fill:"white",transform:"translate(9.0083 9.17383)"})))),se=e=>a.createElement(l.A,Object.assign({component:re},e)),ce=()=>a.createElement("svg",{width:"42",height:"43",viewBox:"0 0 42 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"0.00830078",y:"0.173828",width:"42",height:"42",rx:"21",fill:"#6A32C9"}),a.createElement("path",{d:"M12.0083 14.0129C12.0083 13.5629 12.1736 13.1726 12.5041 12.8419C12.8347 12.5114 13.225 12.3462 13.6751 12.3462L18.5083 12.3462L18.5083 14.0129L13.6751 14.0129L13.6751 28.6794L28.3416 28.6794L28.3416 14.0129L23.5083 14.0129L23.5083 12.3462L28.3416 12.3462C28.7916 12.3462 29.1819 12.5114 29.5126 12.8419C29.8431 13.1726 30.0083 13.5629 30.0083 14.0129L30.0083 28.6794C30.0083 29.1294 29.843 29.5198 29.5125 29.8504C29.1819 30.1809 28.7916 30.3462 28.3416 30.3462L13.675 30.3462C13.225 30.3462 12.8347 30.1809 12.5041 29.8504C12.1736 29.5198 12.0083 29.1294 12.0083 28.6794L12.0083 14.0129ZM16.1251 19.7294L17.3583 18.5129L20.1751 21.3294L20.1751 12.3462L21.8416 12.3462L21.8416 21.3294L24.6583 18.5129L25.8916 19.7294L21.0083 24.6129L16.1251 19.7294Z",fill:"white"})),de=e=>a.createElement(l.A,Object.assign({component:ce},e)),me=()=>a.createElement("svg",{width:"42",height:"43",viewBox:"0 0 42 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"0.00830078",y:"0.173828",width:"42",height:"42",rx:"21",fill:"#72C240"}),a.createElement("path",{d:"M15.0669 30.9687C15.0669 30.9687 14.59 28.8216 13.738 27.875C12.886 26.9284 10.9536 26.3984 10.9536 26.3984C10.9536 26.3984 12.886 25.8684 13.738 24.9218C14.59 23.9752 15.0669 21.8281 15.0669 21.8281C15.0669 21.8281 15.5438 23.9752 16.3958 24.9218C17.2478 25.8684 19.1802 26.3984 19.1802 26.3984C19.1802 26.3984 17.2478 26.9284 16.3958 27.875C15.5438 28.8216 15.0669 30.9687 15.0669 30.9687Z",fill:"white"}),a.createElement("path",{d:"M23.7505 26.0037C23.7505 26.0037 22.9026 22.5682 21.388 21.0536C19.8734 19.539 16.438 18.6912 16.438 18.6912C16.438 18.6912 19.8734 17.8433 21.388 16.3287C22.9026 14.8141 23.7505 11.3787 23.7505 11.3787C23.7505 11.3787 24.5984 14.8141 26.113 16.3287C27.6276 17.8433 31.063 18.6912 31.063 18.6912C31.063 18.6912 27.6276 19.539 26.113 21.0536C24.5984 22.5682 23.7505 26.0037 23.7505 26.0037Z",fill:"white"}),a.createElement("path",{d:"M13.6958 17.7771C13.6958 17.7771 13.3778 16.2741 12.8099 15.6115C12.2419 14.9488 10.9536 14.5779 10.9536 14.5779C10.9536 14.5779 12.2419 14.2069 12.8099 13.5443C13.3778 12.8816 13.6958 11.3787 13.6958 11.3787C13.6958 11.3787 14.0138 12.8816 14.5817 13.5443C15.1497 14.2069 16.438 14.5779 16.438 14.5779C16.438 14.5779 15.1497 14.9488 14.5817 15.6115C14.0138 16.2741 13.6958 17.7771 13.6958 17.7771Z",fill:"white"}),a.createElement("path",{d:"M28.7144 30.2357C28.7144 30.2357 28.4494 29.1622 27.9761 28.6889C27.5028 28.2156 26.4293 27.9506 26.4293 27.9506C26.4293 27.9506 27.5028 27.6856 27.9761 27.2123C28.4494 26.739 28.7144 25.6654 28.7144 25.6654C28.7144 25.6654 28.9794 26.739 29.4527 27.2123C29.926 27.6856 30.9996 27.9506 30.9996 27.9506C30.9996 27.9506 29.926 28.2156 29.4527 28.6889C28.9794 29.1622 28.7144 30.2357 28.7144 30.2357Z",fill:"white"})),ue=e=>a.createElement(l.A,Object.assign({component:me},e)),pe=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-top-bottom-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},a.createElement("path",{d:"M7.43866e-05 1.03733V0L12 0.0407197V1.07805L7.43866e-05 1.03733ZM0 11.9593V10.922L12 10.9627V12L0 11.9593Z"}),a.createElement("rect",{x:"3.5",y:"3.5",width:"5",height:"5",fill:"none",stroke:"currentColor"})),ge=e=>a.createElement(l.A,Object.assign({component:pe},e)),he=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-left-right-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},a.createElement("path",{d:"M10.9626 7.43413e-05L11.9999 7.43866e-05L11.9592 12L10.9218 12L10.9626 7.43413e-05ZM0.0405974 -5.22757e-07L1.07792 -4.77414e-07L1.0372 12L-0.00012271 12L0.0405974 -5.22757e-07Z"}),a.createElement("rect",{x:"8.5",y:"3.5",width:"5",height:"5",transform:"rotate(90 8.5 3.5)",fill:"none",stroke:"currentColor"})),fe=e=>a.createElement(l.A,Object.assign({component:he},e)),be=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-switcher",fill:"currentColor",width:"1em",height:"1em","aria-hidden":"true"},a.createElement("path",{d:"M10.959 2.00007L11.9999 2.00007L11.959 10L10.9181 10L10.959 2.00007ZM-0.00012207 2L1.04074 2L0.999842 10L-0.041016 10L-0.00012207 2Z"}),a.createElement("path",{d:"M9.99993 10.9797L9.99993 12.0205L1.99995 11.9796L1.99995 10.9387L9.99993 10.9797ZM10 0.0205078L10 1.06137L1.99995 1.02043L1.99995 -0.0204332L10 0.0205078Z"})),ve=e=>a.createElement(l.A,Object.assign({component:be},e)),Ee=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-top-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},a.createElement("path",{d:"M0 1.04086V0L11.9999 0.0408583V1.08172L0 1.04086Z"}),a.createElement("rect",{x:"3.5",y:"3.5",width:"5",height:"5",fill:"none",stroke:"currentColor"})),ye=e=>a.createElement(l.A,Object.assign({component:Ee},e)),_e=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-bottom-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},a.createElement("path",{d:"M0 10.9591V12L11.9999 11.9591V10.9183L0 10.9591Z"}),a.createElement("rect",{x:"0.5",y:"-0.5",width:"5",height:"5",transform:"matrix(1 0 0 -1 3 8)",fill:"none",stroke:"currentColor"})),Ce=e=>a.createElement(l.A,Object.assign({component:_e},e)),ke=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-left-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},a.createElement("path",{d:"M-8.67844e-05 -4.54974e-08L1.04077 0L0.999913 12L-0.0409456 12L-8.67844e-05 -4.54974e-08Z"}),a.createElement("rect",{x:"8.5",y:"3.5",width:"5",height:"5",transform:"rotate(90 8.5 3.5)",fill:"none",stroke:"currentColor"})),Ae=e=>a.createElement(l.A,Object.assign({component:ke},e)),we=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-right-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},a.createElement("path",{d:"M12.0001 -4.54974e-08L10.9592 0L11.0001 12L12.0409 12L12.0001 -4.54974e-08Z"}),a.createElement("rect",{x:"0.5",y:"0.5",width:"5",height:"5",transform:"matrix(4.37114e-08 1 1 -4.37114e-08 3 3)",fill:"none",stroke:"currentColor"})),xe=e=>a.createElement(l.A,Object.assign({component:we},e)),Se=()=>a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:"false","data-icon":"email-envelope","aria-hidden":"true"},a.createElement("path",{d:"M9.16329 1.75576L14.182 5.0179C14.3593 5.13317 14.448 5.1908 14.5122 5.26768C14.5691 5.33574 14.6118 5.41445 14.6379 5.49922C14.6673 5.59498 14.6673 5.70073 14.6673 5.91224V10.8C14.6673 11.9201 14.6673 12.4802 14.4493 12.908C14.2576 13.2843 13.9516 13.5903 13.5753 13.7821C13.1475 14 12.5874 14 11.4673 14H4.53398C3.41388 14 2.85383 14 2.426 13.7821C2.04968 13.5903 1.74372 13.2843 1.55197 12.908C1.33398 12.4802 1.33398 11.9201 1.33398 10.8V5.91224C1.33398 5.70073 1.33398 5.59498 1.36343 5.49922C1.3895 5.41445 1.43222 5.33574 1.48908 5.26768C1.55332 5.1908 1.64199 5.13317 1.81933 5.0179L6.83801 1.75576M9.16329 1.75576C8.74246 1.48222 8.53205 1.34545 8.30533 1.29224C8.10494 1.2452 7.89637 1.2452 7.69597 1.29224C7.46925 1.34545 7.25884 1.48222 6.83801 1.75576M9.16329 1.75576L13.2914 4.43904C13.75 4.7371 13.9793 4.88614 14.0587 5.07514C14.1281 5.2403 14.1281 5.42645 14.0587 5.59162C13.9793 5.78061 13.75 5.92965 13.2914 6.22772L9.16329 8.91099C8.74247 9.18453 8.53205 9.3213 8.30533 9.37452C8.10494 9.42155 7.89637 9.42155 7.69597 9.37452C7.46925 9.3213 7.25884 9.18453 6.83801 8.91099L2.70989 6.22772C2.25133 5.92965 2.02204 5.78061 1.94263 5.59162C1.87324 5.42645 1.87324 5.2403 1.94263 5.07514C2.02204 4.88614 2.25133 4.7371 2.70989 4.43904L6.83801 1.75576M14.334 12.6667L9.90544 8.66671M6.09587 8.66671L1.66732 12.6667",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),Le=e=>a.createElement(l.A,Object.assign({component:Se},e)),Te=()=>a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:"false","data-icon":"calendar-days","aria-hidden":"true"},a.createElement("path",{d:"M14 6.66671H2M10.6667 1.33337V4.00004M5.33333 1.33337V4.00004M7 9.33337L8 8.66671V12M7.16667 12H8.83333M5.2 14.6667H10.8C11.9201 14.6667 12.4802 14.6667 12.908 14.4487C13.2843 14.257 13.5903 13.951 13.782 13.5747C14 13.1469 14 12.5868 14 11.4667V5.86671C14 4.7466 14 4.18655 13.782 3.75873C13.5903 3.3824 13.2843 3.07644 12.908 2.88469C12.4802 2.66671 11.9201 2.66671 10.8 2.66671H5.2C4.0799 2.66671 3.51984 2.66671 3.09202 2.88469C2.71569 3.07644 2.40973 3.3824 2.21799 3.75873C2 4.18655 2 4.7466 2 5.86671V11.4667C2 12.5868 2 13.1469 2.21799 13.5747C2.40973 13.951 2.71569 14.257 3.09202 14.4487C3.51984 14.6667 4.0799 14.6667 5.2 14.6667Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),Ie=e=>a.createElement(l.A,Object.assign({component:Te},e)),Ne=()=>a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:"false","data-icon":"email-generation","aria-hidden":"true"},a.createElement("path",{d:"M12.334 5.33337V2.00004M3.66732 14V10.6667M10.6673 3.66671H14.0007M2.00065 12.3334H5.33398M4.33398 1.33337L3.81101 2.37932C3.63402 2.7333 3.54552 2.9103 3.4273 3.06367C3.32239 3.19977 3.20038 3.32178 3.06428 3.42669C2.91091 3.54491 2.73391 3.63341 2.37993 3.8104L1.33398 4.33337L2.37993 4.85635C2.73391 5.03334 2.91091 5.12184 3.06428 5.24006C3.20038 5.34497 3.32239 5.46698 3.4273 5.60308C3.54552 5.75645 3.63402 5.93344 3.81101 6.28743L4.33398 7.33337L4.85696 6.28743C5.03395 5.93344 5.12245 5.75645 5.24067 5.60308C5.34558 5.46698 5.46759 5.34497 5.60369 5.24006C5.75706 5.12184 5.93405 5.03334 6.28804 4.85635L7.33398 4.33337L6.28804 3.8104C5.93405 3.63341 5.75706 3.54491 5.60369 3.42669C5.46759 3.32178 5.34558 3.19977 5.24067 3.06367C5.12245 2.9103 5.03395 2.7333 4.85696 2.37932L4.33398 1.33337ZM11.334 8.00004L10.6999 9.26821C10.5229 9.62219 10.4344 9.79919 10.3162 9.95256C10.2113 10.0887 10.0893 10.2107 9.95317 10.3156C9.7998 10.4338 9.6228 10.5223 9.26882 10.6993L8.00065 11.3334L9.26882 11.9675C9.6228 12.1444 9.7998 12.2329 9.95317 12.3512C10.0893 12.4561 10.2113 12.5781 10.3162 12.7142C10.4344 12.8676 10.5229 13.0446 10.6999 13.3985L11.334 14.6667L11.9681 13.3985C12.1451 13.0446 12.2336 12.8676 12.3518 12.7142C12.4567 12.5781 12.5787 12.4561 12.7148 12.3512C12.8682 12.2329 13.0452 12.1445 13.3992 11.9675L14.6673 11.3334L13.3992 10.6993C13.0452 10.5223 12.8682 10.4338 12.7148 10.3156C12.5787 10.2107 12.4567 10.0887 12.3518 9.95256C12.2336 9.79919 12.1451 9.62219 11.9681 9.26821L11.334 8.00004Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),Be=e=>a.createElement(l.A,Object.assign({component:Ne},e)),Re=()=>a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:"false","data-icon":"ai-requests","aria-hidden":"true"},a.createElement("g",{clipPath:"url(#clip0_ai_requests)"},a.createElement("path",{d:"M4.33398 8.66671L4.85696 9.71265C5.03395 10.0666 5.12245 10.2436 5.24067 10.397C5.34558 10.5331 5.46759 10.6551 5.60369 10.76C5.75706 10.8782 5.93405 10.9667 6.28804 11.1437L7.33398 11.6667L6.28804 12.1897C5.93405 12.3667 5.75706 12.4552 5.60369 12.5734C5.46759 12.6783 5.34558 12.8003 5.24067 12.9364C5.12245 13.0898 5.03395 13.2668 4.85696 13.6208L4.33398 14.6667L3.81101 13.6208C3.63402 13.2668 3.54552 13.0898 3.4273 12.9364C3.32239 12.8003 3.20038 12.6783 3.06428 12.5734C2.91091 12.4552 2.73391 12.3667 2.37993 12.1897L1.33398 11.6667L2.37993 11.1437C2.73391 10.9667 2.91091 10.8782 3.06428 10.76C3.20038 10.6551 3.32239 10.5331 3.4273 10.397C3.54552 10.2436 3.63402 10.0666 3.81101 9.71265L4.33398 8.66671Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M10.0006 1.33337L10.7864 3.37632C10.9744 3.86514 11.0684 4.10955 11.2146 4.31513C11.3442 4.49734 11.5033 4.65654 11.6856 4.7861C11.8911 4.93228 12.1356 5.02628 12.6244 5.21429L14.6673 6.00004L12.6244 6.78579C12.1356 6.9738 11.8911 7.0678 11.6856 7.21398C11.5033 7.34354 11.3442 7.50274 11.2146 7.68495C11.0684 7.89053 10.9744 8.13494 10.7864 8.62376L10.0007 10.6667L9.2149 8.62376C9.02689 8.13494 8.93289 7.89053 8.78671 7.68495C8.65715 7.50274 8.49795 7.34354 8.31575 7.21398C8.11016 7.0678 7.86575 6.9738 7.37693 6.78579L5.33398 6.00004L7.37693 5.21429C7.86575 5.02628 8.11016 4.93228 8.31574 4.7861C8.49795 4.65654 8.65715 4.49734 8.78671 4.31513C8.93289 4.10955 9.02689 3.86514 9.2149 3.37632L10.0006 1.33337Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_ai_requests"},a.createElement("rect",{width:"16",height:"16",fill:"white"})))),Oe=e=>a.createElement(l.A,Object.assign({component:Re},e)),Me=()=>a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:"false","data-icon":"tests","aria-hidden":"true"},a.createElement("g",{clipPath:"url(#clip0_tests)"},a.createElement("path",{d:"M8.00065 1.33337L10.4007 3.73337C12.0007 -0.466626 16.4673 4.00004 12.2673 5.60004L14.6673 8.00004L12.2673 10.4C10.6673 6.20004 6.20065 10.6667 10.4007 12.2667L8.00065 14.6667L5.60065 12.2667C4.00065 16.4667 -0.466016 12 3.73398 10.4L1.33398 8.00004L3.73398 5.60004C5.33398 9.80004 9.80065 5.33337 5.60065 3.73337L8.00065 1.33337Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_tests"},a.createElement("rect",{width:"16",height:"16",fill:"white"})))),Pe=e=>a.createElement(l.A,Object.assign({component:Me},e)),Ve=()=>a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:"false","data-icon":"optimization","aria-hidden":"true"},a.createElement("path",{d:"M14.6673 6H1.33398M9.33398 11.6667L11.0007 10L9.33398 8.33333M6.66732 8.33333L5.00065 10L6.66732 11.6667M1.33398 5.2L1.33398 10.8C1.33398 11.9201 1.33398 12.4802 1.55197 12.908C1.74372 13.2843 2.04968 13.5903 2.426 13.782C2.85383 14 3.41388 14 4.53398 14H11.4673C12.5874 14 13.1475 14 13.5753 13.782C13.9516 13.5903 14.2576 13.2843 14.4493 12.908C14.6673 12.4802 14.6673 11.9201 14.6673 10.8V5.2C14.6673 4.0799 14.6673 3.51984 14.4493 3.09202C14.2576 2.7157 13.9516 2.40973 13.5753 2.21799C13.1475 2 12.5874 2 11.4673 2L4.53398 2C3.41388 2 2.85383 2 2.426 2.21799C2.04968 2.40973 1.74372 2.71569 1.55197 3.09202C1.33398 3.51984 1.33398 4.0799 1.33398 5.2Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),Fe=e=>a.createElement(l.A,Object.assign({component:Ve},e)),je=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"check-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}),a.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"})),We=e=>a.createElement(l.A,Object.assign({component:je},e)),De=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"border-outer",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM484 366h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM302 548h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm364 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-182 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 182h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z"})),He=e=>a.createElement(l.A,Object.assign({component:De},e)),ze=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"appstore-add",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("defs",null,a.createElement("style",null)),a.createElement("path",{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zm52 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200zM424 712H296V584c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v128H104c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h128v128c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V776h128c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"})),Ue=e=>a.createElement(l.A,Object.assign({component:ze},e)),qe=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"appstore",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"})),Ze=e=>a.createElement(l.A,Object.assign({component:qe},e)),$e=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"build",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z"})),Ge=e=>a.createElement(l.A,Object.assign({component:$e},e)),Ke=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"search-outlined",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M10.7667 11.5L6.80463 7.53797C6.49908 7.79599 6.14443 7.99799 5.74069 8.14398C5.33696 8.28997 4.90735 8.36297 4.45186 8.36297C3.34736 8.36297 2.4126 7.98017 1.64756 7.21458C0.88252 6.449 0.5 5.52131 0.5 4.43149C0.5 3.34168 0.882795 2.41397 1.64838 1.64838C2.41396 0.882795 3.34336 0.5 4.43658 0.5C5.52979 0.5 6.45748 0.882795 7.21967 1.64838C7.98187 2.41397 8.36297 3.34219 8.36297 4.43302C8.36297 4.87336 8.29167 5.29553 8.14908 5.69955C8.00649 6.10355 7.79939 6.47531 7.52778 6.81482L11.5 10.7667L10.7667 11.5ZM4.44167 7.34446C5.248 7.34446 5.93337 7.06012 6.4978 6.49144C7.06223 5.92277 7.34444 5.23612 7.34444 4.43149C7.34444 3.62685 7.06223 2.9402 6.4978 2.37153C5.93337 1.80286 5.248 1.51852 4.44167 1.51852C3.62968 1.51852 2.93949 1.80286 2.3711 2.37153C1.80271 2.9402 1.51851 3.62685 1.51851 4.43149C1.51851 5.23612 1.80271 5.92277 2.3711 6.49144C2.93949 7.06012 3.62968 7.34446 4.44167 7.34446Z"})),Xe=e=>a.createElement(l.A,Object.assign({component:Ke},e)),Ye=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"close-outlined",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.84745 11L1 10.1526L5.15255 6L1 1.84745L1.84745 1L6 5.15255L10.1526 1L11 1.84745L6.84745 6L11 10.1526L10.1526 11L6 6.84745L1.84745 11Z"})),Je=e=>a.createElement(l.A,Object.assign({component:Ye},e)),Qe=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"add-image",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.11007 11.9944C0.804799 11.9944 0.543469 11.8858 0.326081 11.6684C0.108694 11.451 0 11.1896 0 10.8844V1.11563C0 0.810353 0.108694 0.549023 0.326081 0.331636C0.543469 0.114248 0.804799 0.0055542 1.11007 0.0055542H7.64848V1.11563H1.11007V10.8844H10.8788V4.35707H11.9889V10.8844C11.9889 11.1896 11.8802 11.451 11.6628 11.6684C11.4454 11.8858 11.1841 11.9944 10.8788 11.9944H1.11007ZM9.54672 3.80204V2.45883H8.20352V1.34876H9.54672V0.0055542H10.6568V1.34876H12V2.45883H10.6568V3.80204H9.54672ZM1.99815 9.30805H9.99074L7.55966 6.06661L5.4838 8.80852L3.9408 6.76596L1.99815 9.30805Z"})),et=e=>a.createElement(l.A,Object.assign({component:Qe},e)),tt=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"merge-tags",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M7.2 10.8V9.60001H9C9.17 9.60001 9.3125 9.54251 9.4275 9.42751C9.5425 9.31251 9.6 9.17 9.6 9V7.8C9.6 7.42 9.71 7.07501 9.93 6.76501C10.15 6.45501 10.44 6.235 10.8 6.105V5.895C10.44 5.765 10.15 5.545 9.93 5.235C9.71 4.925 9.6 4.58 9.6 4.2V3C9.6 2.83 9.5425 2.6875 9.4275 2.5725C9.3125 2.4575 9.17 2.4 9 2.4H7.2V1.2H9C9.5 1.2 9.925 1.375 10.275 1.725C10.625 2.075 10.8 2.5 10.8 3V4.2C10.8 4.37 10.8575 4.5125 10.9725 4.6275C11.0875 4.7425 11.23 4.8 11.4 4.8H12V7.2H11.4C11.23 7.2 11.0875 7.25751 10.9725 7.37251C10.8575 7.48751 10.8 7.63 10.8 7.8V9C10.8 9.5 10.625 9.92501 10.275 10.275C9.925 10.625 9.5 10.8 9 10.8H7.2ZM3 10.8C2.5 10.8 2.075 10.625 1.725 10.275C1.375 9.92501 1.2 9.5 1.2 9V7.8C1.2 7.63 1.1425 7.48751 1.0275 7.37251C0.9125 7.25751 0.77 7.2 0.6 7.2H0V4.8H0.6C0.77 4.8 0.9125 4.7425 1.0275 4.6275C1.1425 4.5125 1.2 4.37 1.2 4.2V3C1.2 2.5 1.375 2.075 1.725 1.725C2.075 1.375 2.5 1.2 3 1.2H4.8V2.4H3C2.83 2.4 2.6875 2.4575 2.5725 2.5725C2.4575 2.6875 2.4 2.83 2.4 3V4.2C2.4 4.58 2.29 4.925 2.07 5.235C1.85 5.545 1.56 5.765 1.2 5.895V6.105C1.56 6.235 1.85 6.45501 2.07 6.76501C2.29 7.07501 2.4 7.42 2.4 7.8V9C2.4 9.17 2.4575 9.31251 2.5725 9.42751C2.6875 9.54251 2.83 9.60001 3 9.60001H4.8V10.8H3Z"})),nt=e=>a.createElement(l.A,Object.assign({component:tt},e)),at=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"email-confirmation",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M8.00198 11.3105L5.85436 9.16288L6.47419 8.54304L8.00198 10.0708L11.1186 6.95415L11.7385 7.574L8.00198 11.3105ZM5.95912 5.48748L10.2718 2.75493H1.64641L5.95912 5.48748ZM5.95912 6.36049L1.61149 3.59303V9.2851H4.74564L5.61864 10.1581H1.61149C1.37577 10.1581 1.17134 10.0715 0.998197 9.8984C0.825052 9.72525 0.73848 9.52081 0.73848 9.2851V2.75493C0.73848 2.51922 0.825052 2.31479 0.998197 2.14165C1.17134 1.9685 1.37577 1.88193 1.61149 1.88193H10.3155C10.5512 1.88193 10.7556 1.9685 10.9288 2.14165C11.1019 2.31479 11.1885 2.51922 11.1885 2.75493V5.64463L10.3155 6.51766V3.59303L5.95912 6.36049Z"})),lt=e=>a.createElement(l.A,Object.assign({component:at},e)),it=()=>a.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"button",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M186.666-280q-27 0-46.833-19.833T120-346.666v-266.668q0-27 19.833-46.833T186.666-680h586.668q27 0 46.833 19.833T840-613.334v266.668q0 27-19.833 46.833T773.334-280H186.666Zm0-66.666h586.668v-266.668H186.666v266.668Zm0 0v-266.668 266.668Z"})),ot=e=>a.createElement(l.A,Object.assign({component:it},e)),rt=()=>a.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"table",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M186.666-120q-27 0-46.833-19.833T120-186.666v-586.668q0-27 19.833-46.833T186.666-840h586.668q27 0 46.833 19.833T840-773.334v586.668q0 27-19.833 46.833T773.334-120H186.666Zm0-66.666h151.001v-151.001H186.666v151.001Zm217.667 0h151.334v-151.001H404.333v151.001Zm218 0h151.001v-151.001H622.333v151.001ZM186.666-404.333h151.001v-151.334H186.666v151.334Zm217.667 0h151.334v-151.334H404.333v151.334Zm218 0h151.001v-151.334H622.333v151.334Zm-435.667-218h151.001v-151.001H186.666v151.001Zm217.667 0h151.334v-151.001H404.333v151.001Zm218 0h151.001v-151.001H622.333v151.001Z"})),st=e=>a.createElement(l.A,Object.assign({component:rt},e)),ct=()=>a.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"colorize",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M120-120v-175.333L490.667-666l-67.334-66.667 46.667-46L556.667-692l136-136q5-5 11.5-8t13.167-3q6.666 0 13 3 6.333 3 12.333 8L828-742.667q5 6 8 12.333 3 6.334 3 13 0 6.667-3 13.167t-8 11.5L692.333-557 779-469.666l-46.333 46.333L666-490.667 295.333-120H120Zm66.666-66.666h84L618-534.667 534.667-618 186.666-270.666v84Zm457.667-416.667L759-718l-41-41-114.667 114.667 41 41Zm0 0-41-41 41 41Z"})),dt=e=>a.createElement(l.A,Object.assign({component:ct},e)),mt=e=>a.createElement("svg",Object.assign({},e,{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","data-icon":"eyedropper"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.098 2.598a3.75 3.75 0 1 1 3.622 6.275l-1.72.46V12a.75.75 0 0 1-.22.53l-.75.75a.75.75 0 0 1-1.06 0l-.97-.97-7.94 7.94a2.56 2.56 0 0 1-1.81.75 1.06 1.06 0 0 0-.75.31l-.97.97a.75.75 0 0 1-1.06 0l-.75-.75a.75.75 0 0 1 0-1.06l.97-.97a1.06 1.06 0 0 0 .31-.75c0-.68.27-1.33.75-1.81L11.69 9l-.97-.97a.75.75 0 0 1 0-1.06l.75-.75A.75.75 0 0 1 12 6h2.666l.461-1.72c.165-.617.49-1.2.971-1.682Zm-3.348 7.463L4.81 18a1.06 1.06 0 0 0-.31.75c0 .318-.06.63-.172.922a2.56 2.56 0 0 1 .922-.172c.281 0 .551-.112.75-.31l7.94-7.94-1.19-1.19Z"})),ut=e=>a.createElement(l.A,Object.assign({component:mt},e)),pt=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"replacer",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M8.08337 10V9.16663H9.58337C9.74721 9.16663 9.88538 9.11075 9.99788 8.999C10.1104 8.88717 10.1666 8.74863 10.1666 8.58338V7.41663C10.1666 7.10554 10.2597 6.82637 10.4459 6.57912C10.632 6.33196 10.8722 6.15975 11.1666 6.0625V5.9375C10.8722 5.84583 10.632 5.675 10.4459 5.425C10.2597 5.175 10.1666 4.89446 10.1666 4.58337V3.41663C10.1666 3.25138 10.1108 3.11283 9.999 3.001C9.88717 2.88925 9.74862 2.83337 9.58337 2.83337H8.08337V2H9.58337C9.97779 2 10.3125 2.13775 10.5875 2.41325C10.8625 2.68867 11 3.02313 11 3.41663V4.58337C11 4.74862 11.0559 4.88717 11.1678 4.999C11.2795 5.11075 11.418 5.16663 11.5834 5.16663H12V6.83338H11.5834C11.418 6.83338 11.2795 6.88925 11.1678 7.001C11.0559 7.11283 11 7.25138 11 7.41663V8.58338C11 8.97688 10.8623 9.31133 10.5868 9.58675C10.3113 9.86225 9.97687 10 9.58337 10H8.08337ZM2.41662 10C2.02221 10 1.6875 9.86225 1.4125 9.58675C1.1375 9.31133 1 8.97688 1 8.58338V7.41663C1 7.25138 0.944083 7.11283 0.83225 7.001C0.7205 6.88925 0.581958 6.83338 0.416625 6.83338H0V5.16663H0.416625C0.581958 5.16663 0.7205 5.11075 0.83225 4.999C0.944083 4.88717 1 4.74862 1 4.58337V3.41663C1 3.02313 1.13775 2.68867 1.41325 2.41325C1.68867 2.13775 2.02312 2 2.41662 2H3.91662V2.83337H2.41662C2.25279 2.83337 2.11463 2.88925 2.00213 3.001C1.88963 3.11283 1.83337 3.25138 1.83337 3.41663V4.58337C1.83337 4.89446 1.74029 5.175 1.55413 5.425C1.36804 5.675 1.12779 5.84583 0.833375 5.9375V6.0625C1.12779 6.15975 1.36804 6.33196 1.55413 6.57912C1.74029 6.82637 1.83337 7.10554 1.83337 7.41663V8.58338C1.83337 8.74863 1.88925 8.88717 2.001 8.999C2.11283 9.11075 2.25137 9.16663 2.41662 9.16663H3.91662V10H2.41662Z"}),a.createElement("path",{d:"M6.48214 7.88473V7.13473C6.48214 7.0758 6.43393 7.02759 6.375 7.02759H5.625C5.56607 7.02759 5.51786 7.0758 5.51786 7.13473V7.88473C5.51786 7.94366 5.56607 7.99187 5.625 7.99187H6.375C6.43393 7.99187 6.48214 7.94366 6.48214 7.88473ZM4.25893 7.88473V7.13473C4.25893 7.0758 4.21072 7.02759 4.15179 7.02759H3.40179C3.34286 7.02759 3.29464 7.0758 3.29464 7.13473V7.88473C3.29464 7.94366 3.34286 7.99187 3.40179 7.99187H4.15179C4.21072 7.99187 4.25893 7.94366 4.25893 7.88473ZM8.70536 7.88473V7.13473C8.70536 7.0758 8.65715 7.02759 8.59822 7.02759H7.84822C7.78929 7.02759 7.74107 7.0758 7.74107 7.13473V7.88473C7.74107 7.94366 7.78929 7.99187 7.84822 7.99187H8.59822C8.65715 7.99187 8.70536 7.94366 8.70536 7.88473Z"})),gt=e=>a.createElement(l.A,Object.assign({component:pt},e)),ht=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"editor-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1 7.14578V6.10422H5.07403V7.14578H1ZM1 4.59375V3.55203H7.38889V4.59375H1ZM1 2.04172V1H7.38889V2.04172H1ZM6 11V9.07812L9.06944 5.64062C9.15278 5.54688 9.24537 5.47917 9.34722 5.4375C9.44907 5.39583 9.55093 5.375 9.65278 5.375C9.76389 5.375 9.87037 5.39844 9.97222 5.44531C10.0741 5.49219 10.1667 5.5625 10.25 5.65625L10.7639 6.23438C10.8442 6.32812 10.9036 6.43229 10.9421 6.54688C10.9807 6.66146 11 6.77604 11 6.89062C11 7.00521 10.98 7.1224 10.9399 7.24219C10.8997 7.36198 10.8382 7.46875 10.7554 7.5625L7.70833 11H6ZM6.83333 10.0625H7.36111L9.04167 8.15625L8.79167 7.85938L8.52778 7.57812L6.83333 9.46875V10.0625ZM8.79167 7.85938L8.52778 7.57812L9.04167 8.15625L8.79167 7.85938Z"})),ft=e=>a.createElement(l.A,Object.assign({component:ht},e)),bt=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"designer-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6 12C5.18 12 4.405 11.8425 3.675 11.5275C2.945 11.2125 2.3075 10.7825 1.7625 10.2375C1.2175 9.6925 0.7875 9.055 0.4725 8.325C0.1575 7.595 0 6.82 0 6C0 5.1567 0.16085 4.37005 0.48255 3.64005C0.80415 2.91005 1.24245 2.27505 1.79745 1.73505C2.35245 1.19505 3.00165 0.77085 3.74505 0.46245C4.48835 0.15415 5.28335 0 6.13005 0C6.92335 0 7.675 0.13415 8.385 0.40245C9.095 0.67085 9.7175 1.04255 10.2525 1.51755C10.7875 1.99255 11.2125 2.55585 11.5275 3.20745C11.8425 3.85915 12 4.57 12 5.34C12 6.4433 11.6733 7.3058 11.02 7.9275C10.3666 8.5492 9.52665 8.86005 8.50005 8.86005H7.38C7.23 8.86005 7.10585 8.91505 7.00755 9.02505C6.90915 9.13505 6.85995 9.2567 6.85995 9.39C6.85995 9.61 6.9333 9.82085 7.08 10.0225C7.2267 10.2241 7.30005 10.4566 7.30005 10.72C7.30005 11.14 7.1842 11.4584 6.9525 11.6749C6.7208 11.8916 6.4033 12 6 12ZM2.56995 6.46005C2.78995 6.46005 2.9783 6.3817 3.135 6.225C3.2917 6.0683 3.37005 5.87995 3.37005 5.65995C3.37005 5.43995 3.2917 5.25165 3.135 5.09505C2.9783 4.93835 2.78995 4.86 2.56995 4.86C2.34995 4.86 2.16165 4.93835 2.00505 5.09505C1.84835 5.25165 1.77 5.43995 1.77 5.65995C1.77 5.87995 1.84835 6.0683 2.00505 6.225C2.16165 6.3817 2.34995 6.46005 2.56995 6.46005ZM4.42995 3.96C4.64995 3.96 4.8383 3.88165 4.995 3.72495C5.1517 3.56835 5.23005 3.38005 5.23005 3.16005C5.23005 2.94005 5.1517 2.7517 4.995 2.595C4.8383 2.4383 4.64995 2.35995 4.42995 2.35995C4.20995 2.35995 4.02165 2.4383 3.86505 2.595C3.70835 2.7517 3.63 2.94005 3.63 3.16005C3.63 3.38005 3.70835 3.56835 3.86505 3.72495C4.02165 3.88165 4.20995 3.96 4.42995 3.96ZM7.57005 3.96C7.79005 3.96 7.97835 3.88165 8.13495 3.72495C8.29165 3.56835 8.37 3.38005 8.37 3.16005C8.37 2.94005 8.29165 2.7517 8.13495 2.595C7.97835 2.4383 7.79005 2.35995 7.57005 2.35995C7.35005 2.35995 7.1617 2.4383 7.005 2.595C6.8483 2.7517 6.76995 2.94005 6.76995 3.16005C6.76995 3.38005 6.8483 3.56835 7.005 3.72495C7.1617 3.88165 7.35005 3.96 7.57005 3.96ZM9.48 6.46005C9.7 6.46005 9.88835 6.3817 10.045 6.225C10.2016 6.0683 10.28 5.87995 10.28 5.65995C10.28 5.43995 10.2016 5.25165 10.045 5.09505C9.88835 4.93835 9.7 4.86 9.48 4.86C9.26 4.86 9.07165 4.93835 8.91495 5.09505C8.75835 5.25165 8.68005 5.43995 8.68005 5.65995C8.68005 5.87995 8.75835 6.0683 8.91495 6.225C9.07165 6.3817 9.26 6.46005 9.48 6.46005ZM6 11C6.1033 11 6.17915 10.9766 6.22755 10.93C6.27585 10.8833 6.3 10.8133 6.3 10.72C6.3 10.58 6.22665 10.4384 6.07995 10.295C5.93335 10.1517 5.86005 9.88 5.86005 9.48C5.86005 9.0333 6.00835 8.65165 6.30495 8.33505C6.60165 8.01835 6.97335 7.86 7.42005 7.86H8.50005C9.22665 7.86 9.82495 7.6475 10.295 7.2225C10.765 6.7975 11 6.17 11 5.34C11 4.0567 10.5125 3.01255 9.53745 2.20755C8.56245 1.40255 7.42665 1.00005 6.13005 1.00005C4.70335 1.00005 3.49165 1.48335 2.49495 2.44995C1.49835 3.41665 1.00005 4.6 1.00005 6C1.00005 7.3833 1.48755 8.56245 2.46255 9.53745C3.43755 10.5125 4.6167 11 6 11Z"})),vt=e=>a.createElement(l.A,Object.assign({component:bt},e)),Et=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"clear-chat",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0 9.5V8.33327H9.33333V9.5H0ZM1.33333 6.58327V5.41672H10.6667V6.58327H1.33333ZM2.66667 3.66672V2.5H12V3.66672H2.66667Z"})),yt=e=>a.createElement(l.A,Object.assign({component:Et},e)),_t=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"webhook",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M2.89995 11.7C2.10335 11.7 1.42085 11.4159 0.85245 10.8476C0.28415 10.2792 0 9.59665 0 8.80005C0 8.11005 0.20585 7.50755 0.61755 6.99255C1.02915 6.47755 1.55665 6.14335 2.20005 5.98995V7.035C1.85005 7.1683 1.56255 7.39495 1.33755 7.71495C1.11255 8.03495 1.00005 8.39665 1.00005 8.80005C1.00005 9.32665 1.18505 9.77495 1.55505 10.145C1.92505 10.515 2.37335 10.7 2.89995 10.7C3.42665 10.7 3.875 10.515 4.245 10.145C4.615 9.77495 4.8 9.32665 4.8 8.80005V8.29995H8.46495C8.54495 8.20995 8.6408 8.13745 8.7525 8.08245C8.8642 8.02745 8.98005 7.99995 9.10005 7.99995C9.32335 7.99995 9.5125 8.07745 9.6675 8.23245C9.8225 8.38745 9.9 8.57665 9.9 8.80005C9.9 9.01665 9.8225 9.20415 9.6675 9.36255C9.5125 9.52085 9.32335 9.6 9.10005 9.6C8.98005 9.6 8.8642 9.5725 8.7525 9.5175C8.6408 9.4625 8.54495 9.39 8.46495 9.3H5.76C5.62 9.99 5.28415 10.5625 4.75245 11.0175C4.22085 11.4725 3.60335 11.7 2.89995 11.7ZM9.10005 11.7C8.59335 11.7 8.12915 11.5809 7.70745 11.3426C7.28585 11.1042 6.94505 10.79 6.68505 10.4H8.08005C8.22665 10.5 8.38665 10.575 8.56005 10.625C8.73335 10.675 8.91335 10.7 9.10005 10.7C9.62665 10.7 10.075 10.515 10.445 10.145C10.815 9.77495 11 9.32665 11 8.80005C11 8.27335 10.815 7.825 10.445 7.455C10.075 7.085 9.62665 6.9 9.10005 6.9C8.90665 6.9 8.7283 6.92415 8.565 6.97245C8.4017 7.02085 8.24505 7.09335 8.09505 7.18995L6.195 3.99495C5.9917 3.95495 5.82505 3.8633 5.69505 3.72C5.56505 3.5767 5.50005 3.40335 5.50005 3.19995C5.50005 2.97665 5.5792 2.7875 5.7375 2.6325C5.8958 2.4775 6.0833 2.4 6.3 2.4C6.5233 2.4 6.71245 2.4775 6.86745 2.6325C7.02245 2.7875 7.09995 2.97665 7.09995 3.19995C7.09995 3.24335 7.0983 3.28255 7.095 3.31755C7.0917 3.35255 7.08005 3.4017 7.06005 3.465L8.52495 5.955C8.62495 5.935 8.72495 5.92085 8.82495 5.91255C8.92495 5.90415 9.01665 5.89995 9.10005 5.89995C9.90335 5.89995 10.5875 6.18245 11.1525 6.74745C11.7175 7.31245 12 7.99665 12 8.80005C12 9.59665 11.7175 10.2792 11.1525 10.8476C10.5875 11.4159 9.90335 11.7 9.10005 11.7ZM2.89995 9.6C2.68335 9.6 2.49585 9.52085 2.33745 9.36255C2.17915 9.20415 2.1 9.01665 2.1 8.80005C2.1 8.60665 2.165 8.4383 2.295 8.295C2.425 8.1517 2.58665 8.05505 2.77995 8.00505L4.36005 5.355C4.06335 5.0717 3.82915 4.74585 3.65745 4.37745C3.48585 4.00915 3.40005 3.61665 3.40005 3.19995C3.40005 2.39665 3.6842 1.7125 4.2525 1.1475C4.8208 0.582503 5.5033 0.300003 6.3 0.300003C7.0833 0.300003 7.7558 0.572503 8.3175 1.1175C8.8792 1.6625 9.17335 2.32335 9.19995 3.10005H8.20005C8.18005 2.59335 7.9867 2.16665 7.62 1.81995C7.2533 1.47335 6.8133 1.30005 6.3 1.30005C5.7733 1.30005 5.32495 1.48505 4.95495 1.85505C4.58495 2.22505 4.39995 2.67335 4.39995 3.19995C4.39995 3.62335 4.52495 4.00085 4.77495 4.33245C5.02495 4.66415 5.3433 4.89165 5.73 5.01495L3.645 8.52C3.665 8.5767 3.67915 8.6267 3.68745 8.67C3.69585 8.7133 3.70005 8.75665 3.70005 8.80005C3.70005 9.01665 3.62255 9.20415 3.46755 9.36255C3.31255 9.52085 3.12335 9.6 2.89995 9.6Z"})),Ct=e=>a.createElement(l.A,Object.assign({component:_t},e)),kt=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"reload",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M15.0625 24.6874C12.359 24.6874 10.0581 23.7467 8.1599 21.8653C6.26167 19.9839 5.31255 17.6955 5.31255 15V14.0239L3.00002 16.3365L1.68274 15.0192L6.25002 10.4519L10.8173 15.0192L9.50002 16.3365L7.18749 14.0239V15C7.18749 17.1714 7.95192 19.0164 9.48077 20.5348C11.0096 22.0533 12.8702 22.8125 15.0625 22.8125C15.5801 22.8125 16.0974 22.756 16.6142 22.643C17.131 22.5301 17.6354 22.3606 18.1274 22.1346L19.5336 23.5408C18.8301 23.919 18.1038 24.2047 17.3546 24.3978C16.6054 24.5909 15.8414 24.6874 15.0625 24.6874ZM23.75 19.548L19.1827 14.9808L20.5 13.6635L22.8126 15.976V15C22.8126 12.8285 22.0481 10.9835 20.5193 9.46509C18.9904 7.94666 17.1298 7.18744 14.9375 7.18744C14.4199 7.18744 13.9027 7.24393 13.3858 7.35691C12.869 7.46989 12.3646 7.63935 11.8726 7.86531L10.4664 6.45913C11.1699 6.08092 11.8963 5.79526 12.6455 5.60216C13.3947 5.40905 14.1587 5.3125 14.9375 5.3125C17.641 5.3125 19.9419 6.2532 21.8401 8.13459C23.7384 10.016 24.6875 12.3045 24.6875 15V15.976L27 13.6635L28.3173 14.9808L23.75 19.548Z"})),At=e=>a.createElement(l.A,Object.assign({component:kt},e)),wt=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"add-slide",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6.49995 7.42005H7.5V5.50005H9.42V4.5H7.5V2.58H6.49995V4.5H4.57995V5.50005H6.49995V7.42005ZM3 10C2.73 10 2.49585 9.90085 2.29755 9.70245C2.09915 9.50415 1.99995 9.27 1.99995 9V1.00005C1.99995 0.73005 2.09915 0.49585 2.29755 0.29745C2.49585 0.0991503 2.73 0 3 0H11C11.27 0 11.5041 0.0991503 11.7025 0.29745C11.9008 0.49585 12 0.73005 12 1.00005V9C12 9.27 11.9008 9.50415 11.7025 9.70245C11.5041 9.90085 11.27 10 11 10H3ZM3 9H11V1.00005H3V9ZM1.00005 12C0.73005 12 0.49585 11.9008 0.29745 11.7025C0.09915 11.5041 0 11.27 0 11V1.99995H1.00005V11H10V12H1.00005Z"})),xt=e=>a.createElement(l.A,Object.assign({component:wt},e)),St=()=>a.createElement("svg",{width:"18",height:"19",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"0.371338",y:"0.878906",width:"17.29",height:"17.29",rx:"8.645",fill:"white"}),a.createElement("path",{d:"M5.30034 14.1689L4.37134 13.2399L8.08734 9.52391L4.37134 5.80791L5.30034 4.87891L9.01634 8.59491L12.7323 4.87891L13.6613 5.80791L9.94534 9.52391L13.6613 13.2399L12.7323 14.1689L9.01634 10.4529L5.30034 14.1689Z",fill:"#1677FF"})),Lt=e=>a.createElement(l.A,Object.assign({component:St},e)),Tt=()=>a.createElement("svg",{width:"18",height:"19",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"0.371338",y:"0.878906",width:"17.29",height:"17.29",rx:"8.645",fill:"#1F1F1F"}),a.createElement("path",{d:"M5.30034 14.1689L4.37134 13.2399L8.08734 9.52391L4.37134 5.80791L5.30034 4.87891L9.01634 8.59491L12.7323 4.87891L13.6613 5.80791L9.94534 9.52391L13.6613 13.2399L12.7323 14.1689L9.01634 10.4529L5.30034 14.1689Z",fill:"white"})),It=e=>a.createElement(l.A,Object.assign({component:Tt},e)),Nt=()=>a.createElement("svg",{width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M5.04156 6.58339L0.208313 1.75014L1.39156 0.566895L7.40831 6.58339L1.39156 12.6001L0.208313 11.4169L5.04156 6.58339Z",fill:"#545456"})),Bt=e=>a.createElement(l.A,Object.assign({component:Nt},e)),Rt=()=>a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M6 2H10M2 4H14M12.6667 4L12.1991 11.0129C12.129 12.065 12.0939 12.5911 11.8667 12.99C11.6666 13.3412 11.3648 13.6235 11.0011 13.7998C10.588 14 10.0607 14 9.00623 14H6.99377C5.93927 14 5.41202 14 4.99889 13.7998C4.63517 13.6235 4.33339 13.3412 4.13332 12.99C3.90607 12.5911 3.871 12.065 3.80086 11.0129L3.33333 4M6.66667 7V10.3333M9.33333 7V10.3333",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),Ot=e=>a.createElement(l.A,Object.assign({component:Rt},e)),Mt=e=>{const t=`clip0_149_121_${(0,a.useId)().replace(/:/g,"")}`;return a.createElement("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a.createElement("g",{clipPath:`url(#${t})`},a.createElement("path",{d:"M10 5.99998L6.00001 9.99998M6.00001 5.99998L10 9.99998M14.6667 7.99998C14.6667 11.6819 11.6819 14.6666 8.00001 14.6666C4.31811 14.6666 1.33334 11.6819 1.33334 7.99998C1.33334 4.31808 4.31811 1.33331 8.00001 1.33331C11.6819 1.33331 14.6667 4.31808 14.6667 7.99998Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})),a.createElement("defs",null,a.createElement("clipPath",{id:t},a.createElement("rect",{width:"16",height:"16",fill:"white"}))))},Pt=e=>a.createElement(l.A,Object.assign({component:Mt},e)),Vt=()=>a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{clipPath:"url(#clip0_149_293)"},a.createElement("path",{d:"M6.66668 8.66666C6.95298 9.04942 7.31825 9.36612 7.73771 9.59529C8.15717 9.82446 8.62102 9.96074 9.09778 9.99489C9.57454 10.029 10.0531 9.96024 10.5009 9.79319C10.9487 9.62613 11.3554 9.36471 11.6933 9.02666L13.6933 7.02666C14.3005 6.39799 14.6365 5.55598 14.6289 4.68199C14.6213 3.808 14.2708 2.97196 13.6527 2.35394C13.0347 1.73591 12.1987 1.38535 11.3247 1.37775C10.4507 1.37016 9.60869 1.70614 8.98001 2.31333L7.83334 3.45333M9.33334 7.33333C9.04704 6.95058 8.68177 6.63388 8.26231 6.4047C7.84285 6.17553 7.37901 6.03925 6.90224 6.00511C6.42548 5.97096 5.94695 6.03975 5.49911 6.20681C5.05128 6.37387 4.6446 6.63528 4.30668 6.97333L2.30668 8.97333C1.69948 9.602 1.3635 10.444 1.3711 11.318C1.37869 12.192 1.72926 13.028 2.34728 13.6461C2.96531 14.2641 3.80135 14.6147 4.67534 14.6222C5.54933 14.6298 6.39134 14.2939 7.02001 13.6867L8.16001 12.5467",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_149_293"},a.createElement("rect",{width:"16",height:"16",fill:"white"})))),Ft=e=>a.createElement(l.A,Object.assign({component:Vt},e)),jt=()=>a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),Wt=e=>a.createElement(l.A,Object.assign({component:jt},e)),Dt=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 -960 960 960",width:"1em",fill:"currentColor"},a.createElement("path",{d:"M760-160v-80q0-17 11.5-28.5T800-280h80v-40H760v-40h120q17 0 28.5 11.5T920-320v40q0 17-11.5 28.5T880-240h-80v40h120v40H760Zm-525-80 185-291-172-269h106l124 200h4l123-200h107L539-531l186 291H618L482-457h-4L342-240H235Z"})),Ht=e=>a.createElement(l.A,Object.assign({component:Dt},e)),zt=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 -960 960 960",width:"1em",fill:"currentColor"},a.createElement("path",{d:"M760-600v-80q0-17 11.5-28.5T800-720h80v-40H760v-40h120q17 0 28.5 11.5T920-760v40q0 17-11.5 28.5T880-680h-80v40h120v40H760ZM235-160l185-291-172-269h106l124 200h4l123-200h107L539-451l186 291H618L482-377h-4L342-160H235Z"})),Ut=e=>a.createElement(l.A,Object.assign({component:zt},e)),qt=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",style:{overflow:"visible"}},a.createElement("g",{transform:"translate(-5.5, -4.5)"},a.createElement("path",{d:"M13.042 24.5V17.625H8.66699V16.375H13.042V9.5H15.1253V16.375H18.8753V12H20.9587V16.375H25.3337V17.625H20.9587V22H18.8753V17.625H15.1253V24.5H13.042Z"}))),Zt=e=>a.createElement(l.A,Object.assign({component:qt},e)),$t=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",style:{overflow:"visible"}},a.createElement("g",{transform:"translate(-5.5, -4.5)"},a.createElement("path",{d:"M8.66699 25.3334V24.0834H25.3337V25.3334H8.66699ZM13.042 22.0001V8.66675H15.1253V22.0001H13.042ZM18.8753 22.0001V13.6667H20.9587V22.0001H18.8753Z"}))),Gt=e=>a.createElement(l.A,Object.assign({component:$t},e)),Kt=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",style:{overflow:"visible"}},a.createElement("g",{transform:"translate(-5.5, -4.5)"},a.createElement("path",{d:"M13.042 25.3334V12.0001H15.1253V25.3334H13.042ZM18.8753 20.3334V12.0001H20.9587V20.3334H18.8753ZM8.66699 9.91675V8.66675H25.3337V9.91675H8.66699Z"}))),Xt=e=>a.createElement(l.A,Object.assign({component:Kt},e)),Yt=()=>a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M2.32698 19.362C2 18.7202 2 17.8802 2 16.2V12V7V6.2C2 5.0799 2 4.51984 2.21799 4.09202C2.40973 3.71569 2.71569 3.40973 3.09202 3.21799C3.51984 3 4.0799 3 5.2 3H9.02229C9.74021 3 10.0992 3 10.4161 3.10931C10.6963 3.20597 10.9516 3.36373 11.1634 3.57116C11.4029 3.80573 11.5634 4.1268 11.8845 4.76892L13 7C15.3333 7 20 7 20 7V12M2.32698 19.362C2.6146 19.9265 3.07354 20.3854 3.63803 20.673C4.27976 21 5.11984 21 6.8 21H13.8408C15.3463 21 16.099 21 16.7562 20.7633C17.3371 20.554 17.8617 20.2131 18.2888 19.7672C18.7721 19.2629 19.0778 18.575 19.6892 17.1993L22 12H6L2.32698 19.362Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})),Jt=e=>a.createElement(l.A,Object.assign({component:Yt},e)),Qt=()=>a.createElement("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"1em",height:"1em","aria-hidden":"true"},a.createElement("path",{d:"M6.5 1.143H5.25A4.108 4.108 0 0 0 1.143 5.25V6.5c0 .078.064.143.142.143h1a.143.143 0 0 0 .143-.143V5.25A2.82 2.82 0 0 1 5.25 2.428H6.5a.143.143 0 0 0 .143-.143v-1a.143.143 0 0 0-.143-.142ZM14.857 6.5V5.25a4.108 4.108 0 0 0-4.107-4.107H9.5a.143.143 0 0 0-.143.142v1c0 .079.064.143.143.143h1.25A2.82 2.82 0 0 1 13.57 5.25V6.5c0 .078.065.143.143.143h1a.143.143 0 0 0 .143-.143ZM9.5 14.857h1.25a4.108 4.108 0 0 0 4.107-4.107V9.5a.143.143 0 0 0-.143-.143h-1a.143.143 0 0 0-.143.143v1.25a2.82 2.82 0 0 1-2.821 2.821H9.5a.143.143 0 0 0-.143.143v1c0 .079.064.143.143.143ZM1.143 9.5v1.25a4.108 4.108 0 0 0 4.107 4.107H6.5a.143.143 0 0 0 .143-.143v-1a.143.143 0 0 0-.143-.143H5.25a2.82 2.82 0 0 1-2.822-2.821V9.5a.143.143 0 0 0-.143-.143h-1a.143.143 0 0 0-.142.143Z",fill:"inherit"})),en=e=>a.createElement(l.A,Object.assign({component:Qt},e)),tn=()=>a.createElement("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",width:"1em",height:"1em","aria-hidden":"true"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.39 3.12h7.383c.242 0 .438.195.438.437v3.719a.437.437 0 0 1-.438.437H9.547v3.227a.437.437 0 0 1-.438.437H1.727a.437.437 0 0 1-.438-.437V7.22c0-.241.196-.437.438-.437h3.226V3.557c0-.242.196-.438.438-.438Zm.493 7.327h2.734V7.713H5.883v2.734Zm3.664-3.664h2.734V4.05H9.547v2.734Z",fill:"inherit"})),nn=e=>a.createElement(l.A,Object.assign({component:tn},e)),an=()=>a.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{y:"7",width:"32",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"})),ln=e=>a.createElement(l.A,Object.assign({component:an},e)),on=()=>a.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{y:"7",width:"15",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),a.createElement("rect",{x:"17",y:"7",width:"15",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"})),rn=e=>a.createElement(l.A,Object.assign({component:on},e)),sn=()=>a.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{y:"7",width:"20.6667",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),a.createElement("rect",{x:"22.6667",y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"})),cn=e=>a.createElement(l.A,Object.assign({component:sn},e)),dn=()=>a.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),a.createElement("rect",{x:"11.3333",y:"7",width:"20.6667",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"})),mn=e=>a.createElement(l.A,Object.assign({component:dn},e)),un=()=>a.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),a.createElement("rect",{x:"11.3333",y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),a.createElement("rect",{x:"22.6667",y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"})),pn=e=>a.createElement(l.A,Object.assign({component:un},e)),gn=()=>a.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{y:"7",width:"6.5",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),a.createElement("rect",{x:"8.5",y:"7",width:"6.5",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),a.createElement("rect",{x:"17",y:"7",width:"6.5",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),a.createElement("rect",{x:"25.5",y:"7",width:"6.5",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"})),hn=e=>a.createElement(l.A,Object.assign({component:gn},e)),fn=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",focusable:"false",viewBox:"0 0 448 512",width:"1em",height:"1em",fill:"currentColor"},a.createElement("path",{d:"M433.9 129.9l-83.9-83.9A48 48 0 0 0 316.1 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V163.9a48 48 0 0 0 -14.1-33.9zM272 80v80H144V80h128zm122 352H54a6 6 0 0 1 -6-6V86a6 6 0 0 1 6-6h42v104c0 13.3 10.7 24 24 24h176c13.3 0 24-10.7 24-24V83.9l78.2 78.2a6 6 0 0 1 1.8 4.2V426a6 6 0 0 1 -6 6zM224 232c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 128c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z"})),bn=e=>a.createElement(l.A,Object.assign({component:fn},e)),vn=()=>a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 40 40",preserveAspectRatio:"xMidYMid meet"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.609 38.644a.437.437 0 01-.566.283C5.43 36.162 0 28.91 0 20.202 0 9.045 8.916 0 19.915 0 30.914 0 39.83 9.045 39.83 20.202c0 10.365-7.695 18.668-17.605 19.795a.439.439 0 01-.48-.508c.037-.235.078-.497.126-.787.7-4.299.868-8.668.503-13.009 0 0-.05-.502-.216-1.811-.043-.337-.011-.496.251-.62.775-.265 1.558-.494 2.325-.785 2.388-.814 4.096-2.927 3.265-5.556-.167-.526-1.163-.73-1.76-.702-.95.04-1.07-.983-.251-1.086.253-.032.92.249.92.1 0-1.96-6.908-.88-8.027-.683a4.478 4.478 0 00-1.667.593 4.55 4.55 0 00-1.316 1.197 4.664 4.664 0 00-.861 3.408c.02.142.056.33.085.479.49 2.56.479 5.284.29 7.871-.219 2.836-.895 6.632-1.296 8.727-.087.457-.323 1.238-.507 1.82zm.978-28.607c.07 1.324.247 2.64.528 3.934.135.747-.03 1.66-1.084 1.937-1.173.309-1.63-.918-1.806-1.568a9.497 9.497 0 01-.386-3.97c.216-1.54.74-2.765 1.565-2.947.858-.19 1.158 1.063 1.183 2.614zm2.736-1.39c.619-1.196 1.17-1.987 1.875-1.86v.002c.707.128.912 1.302.605 2.353a26.682 26.682 0 00-.538 3.144c-.057.755-.783 1.318-1.516 1.173-.703-.128-1.123-.594-1.134-1.526a7.187 7.187 0 01-.708-3.286z",fill:"#3A64F8"})),En=e=>a.createElement(l.A,Object.assign({component:vn},e))},4964:(e,t,n)=>{"use strict";function a(e,t){if("object"===typeof e&&e){t(e);for(const n of Object.values(e))a(n,t)}}function l(e=".blocks-app"){const t=`${e} &`,n=new WeakSet;return{visit:e=>{if(!n.has(e)){const l={};let i;for(const o of Object.keys(e)){const r=e[o];"object"===typeof r&&r?(r._keyframe&&a(r,e=>n.add(e)),l[o]=r):(i||(i=l[t]={},n.add(i)),i[o]=r)}return l}return e}}}n.d(t,{A:()=>l})},43167:(e,t,n)=>{"use strict";n.d(t,{tS:()=>d,Ay:()=>u,tN:()=>c,rd:()=>m});var a=n(1936),l=n(18021),i=n(27335),o=n(13419);const{defaultAlgorithm:r,darkAlgorithm:s}=l.A,c={hashed:!1,algorithm:r,token:{colorLink:"#1677ff",colorInfo:"#8946F8",colorTextBase:"#000000",colorBgLayout:"#f0f2f5",borderRadius:8},components:{Progress:{colorFillSecondary:"#ffffff"}}},d={hashed:!1,algorithm:s,token:{colorBgBase:"#1F1F1F",colorInfo:"#9254de",colorLink:"#1890ff",colorLinkHover:"#69c0ff",wireframe:!1,borderRadius:8}},m=l.A.useToken,u=(l.A.defaultAlgorithm,l.A.darkAlgorithm,l.A.compactAlgorithm,({withApp:e=!1,children:t,...n})=>{const l=e?a.createElement(o.A,null,t):t;return a.createElement(i.Ay,n,l)})},88145:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(7494);const i=(0,a.forwardRef)((e,t)=>a.createElement(l.A,Object.assign({ref:t},e)));i.displayName="Col";const o=i},92611:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),l=n(54760);const i=e=>a.createElement(l.A,e)},93944:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(69495);const i=(0,a.forwardRef)((e,t)=>a.createElement(l.A,Object.assign({ref:t},e)));i.displayName="Flex";const o=i},77595:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(14516);const i=(0,a.forwardRef)((e,t)=>a.createElement(l.A,Object.assign({ref:t},e)));i.displayName="Row";const o=i},85537:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(69588);const i=(0,a.forwardRef)((e,t)=>a.createElement(l.A,Object.assign({ref:t},e)));i.displayName="Space";const o=Object.assign(i,{Compact:l.A.Compact})},129:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(32937);const l=a.A;l.Header=a.A.Header,l.Content=a.A.Content,l.Sider=a.A.Sider,l.Footer=a.A.Footer;const i=l},93974:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(1936),l=n(47207),i=n(47588);const o=({icon:e,isActive:t,onClick:n,duration:o,onComplete:r})=>{const s=globalThis.localStorage.getItem(i.V0.em_color_scheme),c=matchMedia(i.F3).matches?i.nd:i.T,d=s||c;return a.createElement("div",{className:"carousel-custom-dots-item carousel-custom-dots-item--"+("dark"===d?"dark":"light"),onClick:n},a.createElement("svg",{className:"carousel-custom-dots-item__progress-ring",viewBox:"0 0 50 50"},t&&a.createElement("circle",{cx:"25",cy:"25",r:i.EZ,strokeDasharray:i.uz,strokeDashoffset:i.uz,style:{animationDuration:`${o}ms`},onAnimationEnd:r})),a.createElement(l.A,{icon:e,className:"carousel-custom-dots-item__icon"}))},r=({items:e,duration:t=8e3,autoplay:n=!0,activeIndex:l,defaultActiveIndex:i=0,onChange:r,className:s,style:c})=>{const d=void 0!==l,[m,u]=(0,a.useState)(i),p=d?l:m,[g,h]=(0,a.useState)(n),f=(0,a.useRef)(null),b=(0,a.useCallback)(e=>{d||u(e),null===r||void 0===r||r(e)},[d,r]),v=(0,a.useCallback)(e=>{b(e),h(!1)},[b]),E=(0,a.useCallback)(()=>{const t=(p+1)%e.length;b(t)},[p,e.length,b]);(0,a.useEffect)(()=>{if(n&&g)return f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{b((p+1)%e.length)},t),()=>clearTimeout(f.current)},[n,g,p,t,e.length,b]),(0,a.useEffect)(()=>{n&&h(!0)},[n]);const y=["carousel-custom-dots",s].filter(Boolean).join(" ");return a.createElement("div",{className:y,style:c},e.map((e,n)=>a.createElement(o,{key:e,icon:e,isActive:p===n,onClick:()=>v(n),duration:t,onComplete:E})))}},76387:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(43167),l=n(1936),i=n(92828),o=n(47588);const r=l.forwardRef(({data:e=[],coruselStyle:t,customDots:n=!1,carouselRef:r,effect:s=o.Mj.fade,header:c=!1,className:d,style:m,children:u,...p},g)=>{const{token:h}=(0,a.rd)(),f=null!==g&&void 0!==g?g:r,b=null!==u&&void 0!==u?u:e.map(e=>l.createElement("div",{key:e.id,className:"slide"},c&&l.createElement("div",{className:"slide-title",style:{color:h.colorText}},null===e||void 0===e?void 0:e.textHeader),null===e||void 0===e?void 0:e.content));return l.createElement(l.Fragment,null,n&&e.length>0&&l.createElement("div",{className:"custom-dot"},e.length),l.createElement(i.A,Object.assign({ref:f,style:null!==m&&void 0!==m?m:t,className:null!==d&&void 0!==d?d:"em-carousel",effect:s},p),b))});r.displayName="Carousel";const s=r},3690:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(19623);const i=e=>a.createElement(l.A,e);i.Item=l.A.Item,i.displayName="Breadcrumb";const o=i},35259:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(1936),l=n(94533),i=n(6056),o=n.n(i);const r=({className:e,...t})=>a.createElement(l.A,Object.assign({className:o()("em-dropdown",e)},t));r.displayName="Dropdown";const s=r;s.Button=l.A.Button;const c=s},21414:(e,t,n)=>{"use strict";var a=n(1936),l=n(57943);const i=e=>a.createElement(l.A,e);i.Group=l.A.Group,i.BackTop=l.A.BackTop},9612:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(1936),l=n(22722),i=n(6056),o=n.n(i);const r=({className:e,...t})=>a.createElement(l.A,Object.assign({className:o()("em-menu",e)},t));r.displayName="Menu";const s=r},24503:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(1936),l=n(6056),i=n.n(l),o=n(90947);const r=({variant:e="default",className:t,...n})=>a.createElement(o.A,Object.assign({},n,{className:i()(t,"view-switcher"===e&&"segmented_view-switcher")}))},70626:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(46447);const i={inkBar:!1,tabPane:!1},o=a.forwardRef(({animated:e=i,...t},n)=>a.createElement(l.A,Object.assign({ref:n,animated:e},t)))},49514:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(28380);const i=a.forwardRef((e,t)=>a.createElement(l.A.Link,Object.assign({ref:t},e)));i.displayName="Link";const o=i},72838:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(28380);const i=a.forwardRef((e,t)=>a.createElement(l.A.Paragraph,Object.assign({ref:t},e)));i.displayName="Paragraph";const o=i},46338:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(28380);const i=a.forwardRef((e,t)=>a.createElement(l.A.Text,Object.assign({ref:t},e)));i.displayName="Text";const o=i},22641:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),l=n(28380);const i=a.forwardRef((e,t)=>a.createElement(l.A.Title,Object.assign({ref:t},e)));i.displayName="Title";const o=i},31492:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var a=n(1936),l=n(28380),i=n(22641),o=n(46338),r=n(49514),s=n(72838);const c=a.forwardRef((e,t)=>a.createElement(l.A,Object.assign({ref:t},e)));c.displayName="Typography";const d=c;d.Title=i.A,d.Text=o.A,d.Paragraph=s.A,d.Link=r.A;const m=d},47588:(e,t,n)=>{"use strict";n.d(t,{EZ:()=>r,F3:()=>i,I1:()=>p,It:()=>y,Jn:()=>b,MS:()=>d,Mj:()=>m,OT:()=>c,T:()=>l,Tg:()=>_,V0:()=>o,Xr:()=>C,cP:()=>A,f5:()=>v,g4:()=>k,jw:()=>h,nd:()=>a,qW:()=>f,uZ:()=>g,uz:()=>s,xr:()=>E,yz:()=>u});const a="dark",l="light",i="(prefers-color-scheme: dark)",o={em_color_scheme:"em_color_scheme",em_code_mode_pane_sizes:"em_code_mode_pane_sizes",em_preview_pane_sizes:"em_preview_pane_sizes",em_default_sizes:"em_default_sizes",em_pane_sizes:"em_pane_sizes",em_test_emails:"em_test_emails",em_menu_is_locked:"em_menu_is_locked",em_code_mode_settings:"em_code_mode_settings",em_folder_is_open:"em_folder_is_open",em_active_tab:"em_active_tab",em_ai_settings:"em_ai_settings",em_last_active_page:"em_last_active_page"},r=24,s=2*Math.PI*r,c="rgba(0, 0, 0, 0.06)",d="rgb(255, 77, 79)";let m=function(e){return e.fade="fade",e.scrollx="scrollx",e}({});const u="66%",p="100%",g="34%",h=34,f=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Tab","Enter","Home","End"],b=[{label:"Segoe UI, Helvetica Neue, Helvetica, Arial, sans-serif",value:"-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif",className:"Segoe"},{label:"Helvetica, Helvetica Neue, Arial, sans-serif",value:"Helvetica, 'Helvetica Neue', Arial, sans-serif",className:"Helvetica"},{label:"Arial Black, Gadget, sans-serif",value:"'Arial Black', Gadget, sans-serif",className:"ArialBlack"},{label:"Comic Sans MS, cursive",value:"'Comic Sans MS', cursive",className:"ComicSans"},{label:"Courier New, Courier, monospace",value:"'Courier New', Courier, monospace",className:"CourierNew"},{label:"Georgia, serif",value:"Georgia, serif",className:"Georgia"},{label:"Impact, Charcoal, sans-serif",value:"Impact, Charcoal, sans-serif",className:"Impact"},{label:"Lucida Console, Monaco, monospace",value:"'Lucida Console', Monaco, monospace",className:"LucidaConsole"},{label:"Lucida Sans Unicode, Lucida Grande, sans-serif",value:"'Lucida Sans Unicode', 'Lucida Grande', sans-serif",className:"LucidaSans"},{label:"Palatino Linotype, Book Antiqua, Palatino, serif",value:"'Palatino Linotype', 'Book Antiqua', Palatino, serif",className:"Palatino"},{label:"Tahoma, Geneva, sans-serif",value:"Tahoma, Geneva, sans-serif",className:"Tahoma"},{label:"Times New Roman, Times, serif",value:"'Times New Roman', Times, serif",className:"TimesNewRoman"},{label:"Trebuchet MS, Helvetica, sans-serif",value:"'Trebuchet MS', Helvetica, sans-serif",className:"Trebuchet"},{label:"Verdana, Geneva, sans-serif",value:"Verdana, Geneva, sans-serif",className:"Verdana"}],v={100:"Thin","100i":"Thin Italic",200:"ExtraLight","200i":"ExtraLight Italic",300:"Light","300i":"Light Italic",400:"Regular","400i":"Regular Italic",500:"Medium","500i":"Medium Italic",600:"SemiBold","600i":"SemiBold Italic",700:"Bold","700i":"Bold Italic",800:"ExtraBold","800i":"ExtraBold Italic",900:"Black","900i":"Black Italic"},E={safeFonts:"Safe Fonts",googleFonts:"Google Fonts",sansSerif:"Sans Serif",serif:"Serif"},y={subsets:["cyrillic"],maxPopularity:100},_="Safe Fonts",C="Google Fonts",k="Sans Serif",A="Serif"},51597:(e,t,n)=>{"use strict";n.d(t,{Kp:()=>l,Sb:()=>i,_1:()=>a});const a="SHOW",l="SAVE",i="NOTIFY"},60915:(e,t,n)=>{"use strict";n.d(t,{Y:()=>S});var a=n(1936),l=n(69962),i=n(3875),o=n(45103),r=n(87771),s=n.n(r),c=n(57549),d=n(19684),m=n(98173),u=n(27092),p=n(6403),g=n(26557),h=n(83111),f=n(47706),b=n(65185);const v=c.ti;var E=n(93506),y=n(65893),_=n(70529);const C="em_locale",k="em_ant_locale",A="em_mergeTags_locale",w=e=>{try{return JSON.parse(localStorage.getItem(e)||"")}catch{return null}},x=()=>{const e=w(k);return(null===e||void 0===e?void 0:e.data)||v},S=({children:e})=>{const t=(0,h.NF)(),r=(0,l.wA)(),v=(0,p.hN)(),S=(0,l.d4)(m.C1),L=(0,l.d4)(m.B),[T,I]=(0,u.HO)(),[N,B]=(0,u.Yj)(),R=(0,b.ml)(y.AZ.READ_LOCALE),O=L||(E.EW.isPlugin?void 0:"ru_RU"),[M,P]=(0,a.useState)(()=>(0,o.hU)()),[V,F]=(0,a.useState)(x),[j,W]=(0,a.useState)(!0),[D,H]=(0,a.useState)(!1),z=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(z.current||!O)return;z.current=!0;const e=w(C)||((e,t)=>{const n=w(e);return n?(localStorage.removeItem(e),localStorage.setItem(t,JSON.stringify(n)),n):null})("locale",C);if(null!==e&&void 0!==e&&e.data&&e.id===O&&(P((0,o.hU)(e.data)),W(!1)),!E.EW.isPlugin){const e=w(A);null!==e&&void 0!==e&&e.data&&r((0,d.Kj)(e.data))}},[O]),(0,a.useEffect)(()=>{O&&n(77778)(`./${"uk"===O?"uk_UA":O}.js`).then(e=>{const t=e.default;F(n=>n.locale!==t.locale?(localStorage.setItem(k,JSON.stringify({id:O,data:e.default})),t):n)}).catch(e=>{})},[O,null===S||void 0===S?void 0:S.id]),(0,a.useEffect)(()=>{!E.EW.isPlugin&&O&&n(93718)(`./${"uk"===O?"uk_UA":O}.ts`).then(e=>{r((0,d.Kj)(e.default)),localStorage.setItem(A,JSON.stringify(e.default))})},[O,r,null===S||void 0===S?void 0:S.id]),(0,g.ZC)(([e])=>{!e&&I.error&&v.fromError("GET_LOCALES_ERROR",void 0,I.error)},[I.error,v]),(0,g.ZC)(([e])=>{O&&e!==O&&R.fire(O).then(([e])=>{if(e){var n;const t=null===(n=s()(e,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===n?void 0:n.locale_data.default;P((0,o.hU)(t)),H(!0)}else E.EW.isPlugin&&t.getInstance(_.Ef)?H(!0):I.isSuccess?N({id:O}):T()})},[O,R,null===S||void 0===S?void 0:S.id]),(0,a.useEffect)(()=>{if(I.isSuccess&&O){const e=I.data.find(([e])=>e===O);if(!e)return void H(!0);const t=w(C);(null===t||void 0===t?void 0:t.id)===O&&e[1]<=t.time?H(!0):N({id:O})}},[O,I,N,null===S||void 0===S?void 0:S.id]),(0,g.ZC)(([e])=>{!e&&B.isError&&v.fromError("GET_LOCALE_ERROR",void 0,B.isError)},[B.isError,v]),(0,a.useEffect)(()=>{if(I.isSuccess&&B.isSuccess){var e,t;if((null===(e=B.originalArgs)||void 0===e?void 0:e.id)!==O)return;const n=B.data,a=I.data.find(([e])=>e===O),l=null===(t=s()(n,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===t?void 0:t.locale_data.default;localStorage.setItem(C,JSON.stringify({id:O,time:(null===a||void 0===a?void 0:a[1])||Date.now(),data:l})),P((0,o.hU)(l)),H(!0)}},[B,O,I,null===S||void 0===S?void 0:S.id]),a.createElement(f.CY,{i18n:M},a.createElement(i.r4.Provider,{value:!j||D},a.createElement(c.NP,{locale:V},e)))}},91810:e=>{e.exports=({__:e})=>`<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 @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%" class="em-mob-width-100perc" em="atom"><tr><td>\n <amp-accordion animate expand-single-section>\n <section>\n <header>\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, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;"><strong>${e("Section title")}</strong></div>\n </td>\n </tr>\n </table>\n </header>\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, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${e("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>`},55921:e=>{e.exports=({__:e})=>`<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%" class="em-mob-width-100perc" 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; font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #FFFFFF; font-size: 16px; line-height: 41px; text-decoration: none; white-space: nowrap;">\n ${e("Button")}\n </a>\n </td>\n </tr>\n </table>\n</td></tr></table>`},64383:e=>{e.exports=({__:e})=>`<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%" class="em-mob-width-100perc" em="atom"><tr><td>\n <amp-carousel width="800" height="600" layout="responsive" type="slides" controls>\n <amp-img src="${e("https://cdn.useblocks.io/1351/241031_18_JoH0f3E.png")}" width="800" height="600" layout="responsive" alt=""></amp-img>\n <amp-img src="${e("https://cdn.useblocks.io/1351/241031_18_aJAY1Xz.png")}" width="800" height="600" layout="responsive" alt=""></amp-img>\n <amp-img src="${e("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>`},48760:e=>{e.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</style>\n<table cellpadding="0" cellspacing="0" border="0" width="100%" class="em-mob-width-100perc" em="atom"><tr><td height="0" style="padding: 20px 0 0; border-top: 1px solid #BFBFBF;"> </td></tr></table>'},3236:e=>{e.exports=({__:e})=>`<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%" class="em-mob-width-100perc" em="atom"><tr><td style="padding: 20px 0 10px;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 24px; line-height: 32px; color: #333333;"><strong>${e("Header text")}</strong></div>\n</td></tr></table>`},42274:e=>{e.exports=({__:e})=>`<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%" class="em-mob-width-100perc" em="atom"><tr><td>\n <table class="em-element-list-ol" cellpadding="0" cellspacing="0" border="0" width="100%">\n <tr>\n <td align="left" valign="top" width="20">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">1. </div>\n </td>\n <td align="left" valign="top" style="padding-bottom: 5px; padding-left: 1px;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${e("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>`},59019:e=>{e.exports=({__:e})=>`<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%" class="em-mob-width-100perc" em="atom"><tr><td>\n <table class="em-element-list-ul" cellpadding="0" cellspacing="0" border="0" width="100%">\n <tr>\n <td align="left" valign="top" width="20">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">•</div>\n </td>\n <td align="left" valign="top" style="padding-bottom: 5px; padding-left: 1px;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${e("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>`},90593:e=>{e.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</style>\n<table cellpadding="0" cellspacing="0" border="0" width="100%" class="em-mob-width-100perc" em="atom"><tr><td height="20"></td></tr></table>'},74117:e=>{e.exports=({__:e})=>`<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" width="100%" class="em-mob-width-100perc em-element-custom-table" em="atom" style="border: 1px solid #b9b1b1;" align="center">\n <tr>\n <td align="center" valign="top" style="border: 1px solid #b9b1b1;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${e("Column")} 1</div>\n </td>\n <td align="center" valign="top" style="border: 1px solid #b9b1b1;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${e("Column")} 2</div>\n </td>\n <td align="center" valign="top" style="border: 1px solid #b9b1b1;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${e("Column")} 3</div>\n </td>\n </tr>\n</table>`},77686:e=>{e.exports=({__:e})=>`<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%" class="em-mob-width-100perc" em="atom"><tr><td style="padding-bottom: 10px;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${e("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")}</div>\n</td></tr></table>`},57546:(e,t,n)=>{"use strict";n.d(t,{NW:()=>i,RH:()=>s,Vz:()=>c,ax:()=>d,lS:()=>r,uE:()=>o,wF:()=>l,yy:()=>a});const a={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"},i={mobileBorderRadiusAll:"all",mobileBorderRadiusTopLeft:"topLeft",mobileBorderRadiusBottomLeft:"bottomLeft",mobileBorderRadiusTopRight:"topRight",mobileBorderRadiusBottomRight:"bottomRight"},o={all:"borderAll",top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},r={all:"mobileBorderAll",top:"mobileBorderTop",right:"mobileBorderRight",bottom:"mobileBorderBottom",left:"mobileBorderLeft"},s={width:null,style:null,color:null},c={borderAll:"all",borderTop:"top",borderRight:"right",borderBottom:"bottom",borderLeft:"left"},d={mobileBorderAll:"all",mobileBorderTop:"top",mobileBorderRight:"right",mobileBorderBottom:"bottom",mobileBorderLeft:"left"}},59696:(e,t,n)=>{"use strict";n.d(t,{EX:()=>o});const a=["vk","telegram","youtube","tiktok","ok","pinterest","max","rutube","yandex_zen","drbl","fig","gh","ggl","rdt","sptf","twitch"],l=["telegram","whatsapp","instagram","facebook","youtube","tiktok","x","linkedin","pinterest","viber","apple","dis","drbl","fig","ggl","mdm","rdt","sgnl","sc","sptf","tmblr","twitch","thrds","msngr","bs"],i=[{id:"vk",labelMsgid:"VK",brands:["em"]},{id:"telegram",labelMsgid:"Telegram",brands:["em","blocks"]},{id:"youtube",labelMsgid:"YouTube",brands:["em","blocks"]},{id:"tiktok",labelMsgid:"TikTok",brands:["em","blocks"]},{id:"ok",labelMsgid:"\u041e\u0434\u043d\u043e\u043a\u043b\u0430\u0441\u0441\u043d\u0438\u043a\u0438",brands:["em"]},{id:"pinterest",labelMsgid:"Pinterest",brands:["em","blocks"]},{id:"max",labelMsgid:"\u041c\u0430\u043a\u0441",brands:["em"]},{id:"rutube",labelMsgid:"RuTube",brands:["em"]},{id:"yandex_zen",labelMsgid:"\u042f\u043d\u0434\u0435\u043a\u0441 \u0414\u0437\u0435\u043d",brands:["em"]},{id:"whatsapp",labelMsgid:"WhatsApp",brands:["blocks"]},{id:"instagram",labelMsgid:"Instagram",brands:["blocks"]},{id:"facebook",labelMsgid:"Facebook",brands:["blocks"]},{id:"x",labelMsgid:"X (Twitter)",brands:["blocks"]},{id:"linkedin",labelMsgid:"LinkedIn",brands:["blocks"]},{id:"viber",labelMsgid:"Viber",brands:["blocks"]},{id:"apple",labelMsgid:"Apple",brands:["blocks"]},{id:"dis",labelMsgid:"Discord",brands:["blocks"]},{id:"drbl",labelMsgid:"Dribbble",brands:["blocks","em"]},{id:"fig",labelMsgid:"Figma",brands:["blocks","em"]},{id:"gh",labelMsgid:"GitHub",brands:["blocks","em"]},{id:"ggl",labelMsgid:"Google",brands:["blocks","em"]},{id:"mdm",labelMsgid:"Medium",brands:["blocks"]},{id:"rdt",labelMsgid:"Reddit",brands:["blocks","em"]},{id:"sgnl",labelMsgid:"Signal",brands:["blocks"]},{id:"sc",labelMsgid:"Snapchat",brands:["blocks"]},{id:"sptf",labelMsgid:"Spotify",brands:["blocks","em"]},{id:"tmblr",labelMsgid:"Tumblr",brands:["blocks"]},{id:"twitch",labelMsgid:"Twitch",brands:["blocks","em"]},{id:"thrds",labelMsgid:"Threads",brands:["blocks"]},{id:"msngr",labelMsgid:"Messenger",brands:["blocks"]},{id:"bs",labelMsgid:"Bluesky",brands:["blocks"]}];function o(e){const t="em"===e?a:l,n=new Set(t),o=Object.fromEntries(i.filter(t=>t.brands.includes(e)&&n.has(t.id)).map(e=>[e.id,e]));return t.map(e=>o[e]).filter(e=>Boolean(e))}},44536:e=>{e.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>'},70684:e=>{e.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>'},22643:e=>{e.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>'},86642:e=>{e.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="380" 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>'},32994:e=>{e.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>'},76427:e=>{e.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>'},9231:e=>{e.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'},89645:e=>{e.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'},85058:e=>{e.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'},34423:e=>{e.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'},14865:e=>{e.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'},91140:e=>{e.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'},3774:(e,t,n)=>{"use strict";n.d(t,{BS:()=>d,Ef:()=>m,d2:()=>c,v3:()=>u,ww:()=>r});function a(e){return`${function(e){let t=String(null!==e&&void 0!==e?e:"");for(;t.endsWith("/");)t=t.slice(0,-1);return t}("https://emcdn.ru/media/socnets")}/${function(e){let t=String(null!==e&&void 0!==e?e:"");for(;t.startsWith("/");)t=t.slice(1);return t}(e)}`}const l={telegram:"tg",youtube:"yt",vk:"vk",yandex_zen:"yd",x:"xa",pinterest:"pi",tiktok:"tt",ok:"ok",max:"max",rutube:"rutube",linkedin:"linkedin",viber:"viber",drbl:"drbl",fig:"fig",gh:"gh",ggl:"ggl",rdt:"rdt",sptf:"sptf",twitch:"twitch"};function i(e,t){return a(`${e}${t?"-negative":""}.png`)}function o(e){return Object.fromEntries(Object.entries(l).map(([t,n])=>[t,i(n,e)]))}const r=o(!1),s=o(!0);function c(e,t={}){var n;return null!==(n=(function({blockBgEnabled:e,blockBgColor:t,buttonBgColor:n}){const a=!(!e||!String(null!==t&&void 0!==t?t:"").trim()),l=!!String(null!==n&&void 0!==n?n:"").trim();return a||l}(t)?s:r)[e])&&void 0!==n?n:r[e]}function d(e,t){const n=r[e];var a;return"dark"===t&&null!==(a=s[e])&&void 0!==a?a:n}const m=r;function u(){return[{platform:"vk",label:"VK",href:""},{platform:"telegram",label:"Telegram",href:""},{platform:"max",label:"Max",href:""},{platform:"rutube",label:"RuTube",href:""},{platform:"yandex_zen",label:"\u042f\u043d\u0434\u0435\u043a\u0441 \u0414\u0437\u0435\u043d",href:""}]}["tg","yt","vk","yd","xa","ig","fb"].map(e=>i(e,!1))},2527:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var a=n(24524),l=n(20263);const i=()=>l.di.useInstance(a.Zw)},74937:(e,t,n)=>{"use strict";async function a(e,t){if(!e||"function"!==typeof e.findFileByUrl)return null;const n=await e.findFileByUrl(t);if(!n)return null;const a="function"===typeof e.getFileById&&n.id&&await e.getFileById(n.id)||n,l=a.thumbnailUrl||a.thumbnail||("function"===typeof e.getThumbnailUrl?await e.getThumbnailUrl(a):"")||"";return l?{file:a,previewUrl:l}:null}n.d(t,{q:()=>a})},24150:(e,t,n)=>{"use strict";function a(e){return class extends e{constructor(...t){super(...t);const n=Object.getOwnPropertyNames(e.prototype);for(const a of n){const t=Object.getOwnPropertyDescriptor(e.prototype,a);"constructor"!==a&&"function"===typeof(null===t||void 0===t?void 0:t.value)&&this[a]&&(this[a]=this[a].bind(this))}}}}n.d(t,{A:()=>a})},20279:(e,t,n)=>{"use strict";n.d(t,{AO:()=>R,Ai:()=>x,N_:()=>I,RM:()=>w,TW:()=>S,TX:()=>P,Ze:()=>O,b9:()=>L,kl:()=>T,ok:()=>N,xc:()=>B,z$:()=>M});var a=n(1936),l=n(57549),i=n(96040),o=n(93506),r=n(57546);const{Option:s}=l.Select,{mobileBorderRadiusAll:c,mobileBorderRadiusTopLeft:d,mobileBorderRadiusBottomLeft:m,mobileBorderRadiusTopRight:u,mobileBorderRadiusBottomRight:p,borderRadiusBottomRight:g,borderRadiusTopRight:h,borderRadiusBottomLeft:f,borderRadiusTopLeft:b,alt:v,src:E,title:y,link:_,borderRadiusAll:C,imgReplacer:k,expanded:A}={link:"link",borderRadiusBottomRight:"borderRadiusBottomRight",borderRadiusTopRight:"borderRadiusTopRight",borderRadiusBottomLeft:"borderRadiusBottomLeft",borderRadiusTopLeft:"borderRadiusTopLeft",mobileBorderRadiusAll:"mobileBorderRadiusAll",mobileBorderRadiusTopLeft:"mobileBorderRadiusTopLeft",mobileBorderRadiusBottomLeft:"mobileBorderRadiusBottomLeft",mobileBorderRadiusTopRight:"mobileBorderRadiusTopRight",mobileBorderRadiusBottomRight:"mobileBorderRadiusBottomRight",alt:"alt",imgReplacer:"imgReplacer",src:"src",title:"title",borderRadiusAll:"borderRadiusAll",expanded:"expanded"},w=({linkProtocol:e})=>{switch(e){case"https://":case"#":default:return a.createElement(i.Ay,{icon:"LinkOutlined"});case"mailto:":return a.createElement(i.Ay,{icon:"MailOutlined"});case"tel:":return a.createElement(i.Ay,{icon:"PhoneOutlined"});case"sms:":return a.createElement(i.Ay,{icon:"CommentOutlined"});case"ftp://":return a.createElement(i.Ay,{icon:"FileOutlined"})}},x=({handleLinkProtocolsChange:e,linkProtocol:t,__:n})=>{const i=a.useMemo(()=>(e=>[{value:"https://",label:e("Site")},{value:"mailto:",label:e("E-mail")},{value:"tel:",label:e("Phone")},{value:"sms:",label:e("SMS")},{value:"ftp://",label:e("File")},{value:"#",label:e("Anchor")},{value:"",label:e("Other")}])(n),[n]);return a.createElement(l.Select,{style:{width:90,textAlign:"left"},value:t,onChange:e,options:i})},S=(e,t="https://")=>e?e.startsWith("https://")||e.startsWith("http://")?"https://":e.startsWith("mailto:")?"mailto:":e.startsWith("tel:")?"tel:":e.startsWith("sms:")?"sms:":e.startsWith("ftp://")?"ftp://":e.startsWith("#")?"#":"":t,L=(e,t)=>{const n=S(e,"");return t(n),n},T=e=>{if(!e||!e.startsWith("mailto:"))return{subject:"",body:"",baseEmail:e||""};try{const t=new URL(e),n=e.split("?")[0],a=t.searchParams.get("subject")||"";return{subject:a,body:t.searchParams.get("body")||"",baseEmail:n}}catch(t){return{subject:"",body:"",baseEmail:e.split("?")[0]}}},I=(e,t,n)=>{if(!e||!e.startsWith("mailto:"))return e;const a=e.split("?")[0],l=[];return t&&l.push(`subject=${encodeURIComponent(t)}`),n&&l.push(`body=${encodeURIComponent(n)}`),l.length>0?`${a}?${l.join("&")}`:a},N=e=>e||(0===e?"0":""),B=e=>e&&"auto"!==e?e:0===e?"0":"";function R(e){var t,n,a,l,i,o,r,s,c,d,m,u,p,g,h,f,b,v,E,y;const _={...e,link:null==e.link?"https://":e.link,borderRadiusAll:N(null===(t=e.borderRadius)||void 0===t?void 0:t.all),borderRadiusTopLeft:N(null===(n=e.borderRadius)||void 0===n?void 0:n.topLeft),borderRadiusBottomLeft:N(null===(a=e.borderRadius)||void 0===a?void 0:a.bottomLeft),borderRadiusTopRight:N(null===(l=e.borderRadius)||void 0===l?void 0:l.topRight),borderRadiusBottomRight:N(null===(i=e.borderRadius)||void 0===i?void 0:i.bottomRight),mobileBorderRadiusAll:N(null===(o=e.mobileBorderRadius)||void 0===o?void 0:o.all),mobileBorderRadiusTopLeft:N(null!==(null===(r=e.mobileBorderRadius)||void 0===r?void 0:r.topLeft)?null===(s=e.mobileBorderRadius)||void 0===s?void 0:s.topLeft:null===(c=e.mobileBorderRadius)||void 0===c?void 0:c.all),mobileBorderRadiusBottomLeft:N(null!==(null===(d=e.mobileBorderRadius)||void 0===d?void 0:d.bottomLeft)?null===(m=e.mobileBorderRadius)||void 0===m?void 0:m.bottomLeft:null===(u=e.mobileBorderRadius)||void 0===u?void 0:u.all),mobileBorderRadiusTopRight:N(null!==(null===(p=e.mobileBorderRadius)||void 0===p?void 0:p.topRight)?null===(g=e.mobileBorderRadius)||void 0===g?void 0:g.topRight:null===(h=e.mobileBorderRadius)||void 0===h?void 0:h.all),mobileBorderRadiusBottomRight:N(null!==(null===(f=e.mobileBorderRadius)||void 0===f?void 0:f.bottomRight)?null===(b=e.mobileBorderRadius)||void 0===b?void 0:b.bottomRight:null===(v=e.mobileBorderRadius)||void 0===v?void 0:v.all),show:e.show?e.show:"all",altSrc:e.src};var C,k;e.video&&(_.videoPlayButton=null!==(C=e.video.playButton)&&void 0!==C?C:"youtube_red",_.videoSource=null!==(k=e.video.source)&&void 0!==k?k:"");if((null===(E=e.carouselImages)||void 0===E?void 0:E.length)>0){var A;const t={};null===(A=e.carouselImages)||void 0===A||A.map((e,n)=>(Object.keys(e).forEach(a=>{t[a+"_"+n]=e[a]}),!0)),_.images=t}if((null===(y=e.sections)||void 0===y?void 0:y.length)>0){var w;const t=[];null===(w=e.sections)||void 0===w||w.map((e,n)=>(t.push({[`expanded_${n}`]:e.expanded}),!0)),_.sections=t}return _}function O(e,t,n){const a=n.hasOwnProperty("images"),l=n.hasOwnProperty("sections"),i=Object.keys(a?n.images:l?n.sections:n)[0],s=a?n.images:l?n.sections:n;let w={};const x=t.getFieldsValue(!0);switch(i.split("_")[0]){case y:case E:case v:case k:if(a){const t=[...e.carouselImages];t[i.split("_")[1]][i.split("_")[0]]=s[i],w={carouselImages:t}}else w=s;break;case A:if(l){const t=[...e.sections];t[i.split("_")[1]][i.split("_")[0]]=s[i],w={sections:t}}break;case _:let n=s[i];"string"===typeof n&&"https://http"===n.substring(0,12)&&(n=n.substring(8,n.length)),e.type===o.bV.CAROUSEL?(w.carouselImages=e.carouselImages,a?(t.setFieldValue(["images",[_+"_"+i.split("_")[1]]],n),w.carouselImages[i.split("_")[1]].link=n,w.link="",t.setFieldValue(_,"")):(e.carouselImages.forEach((e,a)=>{t.setFieldValue(["images",_+"_"+a],n),w.carouselImages[a].link=n,w.link=n}),t.setFieldValue(_,n))):(t.setFieldValue(_,n),w.link=n);break;case C:w={borderRadius:{...e.borderRadius,[r.wF[b]]:x[b],[r.wF[f]]:x[f],[r.wF[h]]:x[h],[r.wF[g]]:x[g],[r.wF[i]]:+s[i]}};break;case b:case f:case h:case g:w={borderRadius:{...e.borderRadius,[r.wF[C]]:null,[r.wF[i]]:+s[i]}};break;case c:case d:case m:case u:case p:w={mobileBorderRadius:{...e.mobileBorderRadius,[r.NW[d]]:x[d],[r.NW[m]]:x[m],[r.NW[u]]:x[u],[r.NW[p]]:x[p],[r.NW[i]]:s[i],classNamePrefix:"em-mob-border_radius_"+r.NW[i]+"-"}};break;default:w=s}return{...e,...w}}const M=a.createElement(l.Select,{className:"select-after"},a.createElement(s,{value:"px"},"px"),a.createElement(s,{value:"%"},"%")),P=a.createElement(l.Select,{className:"select-after"},a.createElement(s,{value:"px"},"px"))},85183:(e,t,n)=>{"use strict";n.d(t,{Gw:()=>i,WJ:()=>a,X_:()=>l,Y6:()=>o});const a=e=>{var t;if(0===e)return"0 B";const n=["B","KB","MB","GB","TB"],a=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1),l=null!==(t=n.at(a))&&void 0!==t?t:"B";return parseFloat((e/Math.pow(1024,a)).toFixed(1))+" "+l},l=e=>e?(new TextEncoder).encode(e).length:0,i=(e,t=90)=>e>1024*t,o=e=>{const t=[];let n=e;n=n.replace(/<!--\[if[^\]]*\]>[\s\S]*?<!\[endif\]-->/gi,e=>{const n=t.length,a=e.replace(/\s+/g," ").replace(/> </g,"><").replace(/\s+>/g,">").replace(/<!--\[if([^\]]*)\]>\s+/g,"\x3c!--[if$1]>").replace(/\s+<!\[endif\]-->/g,"<![endif]--\x3e");return t.push(a),`___CONDITIONAL_COMMENT_${n}___`});let a=n.replace(/<!--(?!\[if)[\s\S]*?-->/g,"").replace(/\s+/g," ").replace(/> </g,"><").replace(/\s+>/g,">").trim();return t.forEach((e,t)=>{a=a.replace(`___CONDITIONAL_COMMENT_${t}___`,e)}),a}},49591:(e,t,n)=>{"use strict";n.d(t,{r:()=>k});var a=n(93506),l=n(32638),i=n(1936),o=n(69962),r=n(84075),s=n(89591),c=n(38343),d=n(40867),m=n(52898),u=n(98173),p=n(19684),g=n(92079),h=n(68876),f=n(7314),b=n(42500),v=n(47706),E=n(6403),y=n(26557),_=n(83193);const C="AUTOSAVE_RECOVERY";function k(e){const{emailId:t,projectId:n}=(0,r.g)(),{__:k}=(0,v.s9)(),A=(0,E.hN)(),w=(0,h.rD)(),x=(0,o.d4)(c.M),S=(0,f.fn)(),L=(0,i.useRef)(0),T=(0,o.d4)(d.Wm),I=(0,o.d4)(d.B),N=(0,o.d4)(u.C1),B=(0,o.d4)(p.jY),[R,O]=(0,s.LX)(),M=(0,o.wA)(),{data:P,isSuccess:V}=(0,s.YV)({emailId:t},{skip:!t}),F=(null===P||void 0===P?void 0:P.data)||[],j=!0===(null===w||void 0===w?void 0:w.revisionService),W=(0,o.d4)(g.J3),D=(0,o.d4)(g.dA),H=(0,i.useCallback)(e=>{var t,n;M((0,m.no)(e)),null===S||void 0===S||S.setValue(null!==(t=null===(n=e.html)||void 0===n?void 0:n.replaceAll("\r\n","\n"))&&void 0!==t?t:"")},[M,S]);(0,i.useEffect)(()=>{if(j)return()=>{_.lH.cancelPolling(t),M((0,g.AG)())}},[t,M,j]),(0,i.useEffect)(()=>{j&&D&&A.info({key:C,message:k("Loading latest changes..."),duration:0})},[j,D,A,k]),(0,i.useEffect)(()=>{if(!j||!W||!S)return;if(W.emailId!==t)return;if(null===e||void 0===e||!e.id||e.id!==t)return;H(W.payload),M((0,g.AG)());const{phase:n}=W;"found"===n?A.success({key:C,message:k("Changes loaded"),duration:3}):"timeout"===n?A.warning({key:C,message:k("Locally saved version applied"),description:k("Syncing with the server in the background..."),duration:5}):"bg"===n&&A.info({key:"AUTOSAVE_BG_SYNCED",message:k("Email synced with the server"),duration:3})},[j,W,S,t,null===e||void 0===e?void 0:e.id,H,M,A,k]),(0,i.useEffect)(()=>{if(!O.isLoading)return;const e=e=>{e.preventDefault()};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[O.isLoading]);const z=(0,i.useCallback)(({parent:t})=>{if(e){const i=a.EW.isPlugin?B:e.project,o=(null===S||void 0===S?void 0:S.getValue())||"",r={parent:t,...void 0!==e.meta?{meta:e.meta}:{},title:e.title,author:e.author,project:i,html:o,excerpt:e.date_gmt,subject:e.subject,preheader:e.preheader,common_styles:e.common_styles,parent_email:e.parent_email};R({emailId:e.id,body:r}).then(async t=>{if(!function(e){return e.hasOwnProperty("data")}(t))throw t.error;if(!a.EW.isPlugin){var i;const o=(0,l.Wv)(a.Tm,n,e.id,null===(i=t.data)||void 0===i?void 0:i.modified);fetch(o,{mode:"no-cors"})}A.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:r,message:""},!0)}).catch(e=>{A.fromError("EMAIL_AUTOSAVE_ERROR",r,e,!0)})}},[R,e,S,n,A,B]),[U,q]=(0,i.useState)(!1),Z=(0,i.useCallback)(()=>{const e=null!==(t=F)&&void 0!==t&&t.length?[...t].sort((e,t)=>Date.parse(t.modified)-Date.parse(e.modified))[0]:null;var t;if(e){Date.parse((new Date).toString())-Date.parse(null===e||void 0===e?void 0:e.modified)>1.5*((null===w||void 0===w?void 0:w.autosaveTimeout)||1e4)&&T&&!x&&"Discuss"!==I&&z({parent:e.id})}else T&&!x&&"Discuss"!==I&&z({parent:null})},[F,x,T,I,z,null===w||void 0===w?void 0:w.autosaveTimeout]);(0,y.ZC)(([e])=>{U&&!e&&(Z(),q(!1))},[U,Z,q]);const $=null===N||void 0===N?void 0:N.autosaves,G=(0,i.useCallback)(()=>{x||(clearTimeout(L.current),L.current=setTimeout(()=>q(!0),(null===w||void 0===w?void 0:w.autosaveTimeout)||1e4))},[x,null===w||void 0===w?void 0:w.autosaveTimeout,q]);return(0,i.useEffect)(()=>{if($&&V&&void 0!==(null===e||void 0===e?void 0:e.id)){const t=(0,b.Og)(S,()=>{T&&null!==e&&void 0!==e&&e.is_inited&&G()});return()=>{t.dispose()}}},[S,G,$,V,null===e||void 0===e?void 0:e.id,T,null===e||void 0===e?void 0:e.is_inited]),(0,y.ZC)(([t,n])=>{$&&V&&void 0!==(null===e||void 0===e?void 0:e.id)&&T&&null!==e&&void 0!==e&&e.is_inited&&(t===(null===e||void 0===e?void 0:e.title)&&n===(null===e||void 0===e?void 0:e.common_styles)||G())},[null===e||void 0===e?void 0:e.title,null===e||void 0===e?void 0:e.common_styles,T,V,G,null===e||void 0===e?void 0:e.id,null===e||void 0===e?void 0:e.is_inited]),(0,i.useEffect)(()=>()=>{clearTimeout(L.current)},[N,null===e||void 0===e?void 0:e.renderGuid]),(0,i.useEffect)(()=>{clearTimeout(L.current)},[null===e||void 0===e?void 0:e.modified]),O}},14109:(e,t,n)=>{"use strict";n.d(t,{f:()=>h});var a=n(93506),l=n(65893),i=n(7714),o=n(65185),r=n(7314),s=n(42500),c=n(26557),d=n(1936),m=n(52898),u=n(61062),p=n(69962),g=n(40963);const h=(e,t)=>{var n,h,f,b,v;const E=(0,p.wA)(),y=(0,r.fn)(),_=(0,i.QC)(),C=(0,o.ml)(l.AZ.WILL_EMAIL_INIT_ID),k=(0,o.ml)(l.AZ.ON_EMAIL_INIT_ID),A=(0,o.ml)(l.AZ.ON_CONTENT_CHANGED_ID),w=(0,o.ml)(l.AZ.ON_EMAIL_CHANGED_ID),x=(0,o.ml)(l.AZ.ON_MODEL_CHANGE),S=(0,d.useRef)(!1),L=(0,d.useRef)(void 0);L.current=e,(0,d.useEffect)(()=>{const n=L.current;if(a.EW.isPlugin&&!S.current&&(null===e||void 0===e?void 0:e.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&null!==n&&void 0!==n&&n.is_inited&&n){const e=y.getValue();w.fire({...n,id:t||n.isNew?void 0:n.id,html:e})}},[y,null===e||void 0===e?void 0:e.preheader,null===e||void 0===e?void 0:e.common_styles,null===e||void 0===e?void 0:e.meta,null===e||void 0===e?void 0:e.subject,(null===e||void 0===e||null===(n=e.utm_parameters)||void 0===n?void 0:n.utm_campaign)||"",(null===e||void 0===e||null===(h=e.utm_parameters)||void 0===h?void 0:h.utm_content)||"",(null===e||void 0===e||null===(f=e.utm_parameters)||void 0===f?void 0:f.utm_medium)||"",(null===e||void 0===e||null===(b=e.utm_parameters)||void 0===b?void 0:b.utm_source)||"",(null===e||void 0===e||null===(v=e.utm_parameters)||void 0===v?void 0:v.utm_term)||"",w,t]),(0,c.ZC)(([e])=>{e!==y&&x.fire(y)},[y,x]),(0,d.useEffect)(()=>{if(a.EW.isPlugin){const n=y.onDidChangeContent(()=>{const n=L.current;if(!S.current&&(null===e||void 0===e?void 0:e.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const e=y.getValue();A.fire(e),w.fire({...n,id:t||n.isNew?void 0:n.id,html:e})}});return()=>n.dispose()}},[y,A,w,e,t]);const T=(0,d.useCallback)(async()=>{const e=L.current;try{var t;(0,s.po)(y),y.setValue((null===e||void 0===e||null===(t=e.html)||void 0===t?void 0:t.replaceAll("\r\n","\n"))||"")}finally{(0,s.SF)(y)}const n=y.getValue();await _.sendAsync(a.Ru.SANDBOX_SET_ENTITY,{html:n,guid:e.renderGuid})},[y,_]),I=(0,d.useCallback)(async()=>{const e=L.current;await _.sendAsync(a.Ru.SANDBOX_SET_ENTITY,{html:y.getValue(),guid:e.renderGuid})},[y,_]),N=(0,d.useCallback)(async()=>{const e=L.current;void 0!==e.preheader&&await _.sendAsync(a.Ru.SANDBOX_PREHEADER_UPDATE,{value:e.preheader,guid:e.renderGuid,force:!0})},[_]),B=(0,d.useCallback)(async()=>{const e=L.current;void 0!==e.subject&&await _.sendAsync(a.Ru.SANDBOX_SUBJECT_UPDATE,{value:e.subject,guid:e.renderGuid,force:!0})},[_]),R=(0,d.useCallback)(()=>{const e=L.current;return _.sendAsync(a.Ru.SANDBOX_INITED,{guid:e.renderGuid})},[_]),O=(0,d.useCallback)(e=>{const n=L.current;E(void 0===n.id?(0,u.Uh)(!0):(0,m.Wm)(!0));const a={...n,id:t||n.isNew?void 0:n.id,html:y.getValue()};return e&&(a.reset=!0),k.fire(a)},[E,k,y,t]),M=(0,d.useCallback)(()=>{const e=L.current;return _.sendAsync(a.Ru.SANDBOX_INIT_START,{guid:e.renderGuid})},[_]),P=(0,d.useCallback)(()=>{const e=L.current;return C.fire({...e,id:t||e.isNew?void 0:e.id,html:y.getValue()})},[C,y,t]),[V]=(0,c.cM)(function*(){try{S.current=!0,yield*(0,g.T1)(M),yield*(0,g.T1)(P),yield*(0,g.T1)(T),yield*(0,g.T1)(N),yield*(0,g.T1)(B),yield*(0,g.T1)(R),yield*(0,g.T1)(O)}finally{S.current=!1}},[T,N,B,O,P,M,R]),[F]=(0,c.cM)(function*(){try{yield*(0,g.T1)(M),yield*(0,g.T1)(P),yield*(0,g.T1)(I),yield*(0,g.T1)(N),yield*(0,g.T1)(B),yield*(0,g.T1)(R),yield*(0,g.T1)(O)}catch(e){}},[T,N,B,O,P,M,R]);(0,c.ZC)(async([t])=>{const n=null===e||void 0===e?void 0:e.renderGuid;n&&n!==t&&V()},[null===e||void 0===e?void 0:e.renderGuid,V]),(0,d.useEffect)(()=>{const e=_.addListenerAsync(a.Ru.RELOAD,async()=>{await F()});return()=>e.dispose()},[_,F])}},85469:(e,t,n)=>{"use strict";async function a(e){if("function"===typeof createImageBitmap)try{const n=await createImageBitmap(e);try{return{width:n.width,height:n.height}}finally{var t;null===(t=n.close)||void 0===t||t.call(n)}}catch{}return new Promise((t,n)=>{const a=URL.createObjectURL(e),l=new Image;l.onload=()=>{URL.revokeObjectURL(a);const e=l.naturalWidth||l.width,i=l.naturalHeight||l.height;e>0&&i>0?t({width:e,height:i}):n(new Error("Could not read image dimensions"))},l.onerror=()=>{URL.revokeObjectURL(a),n(new Error("Could not decode image"))},l.src=a})}n.d(t,{Q:()=>a})},50644:(e,t,n)=>{"use strict";function a(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("string"===typeof n&&n)return n}}function l(e){for(let t=0;t<e.length;t++){const n=e[t];if(n instanceof Blob)return n}}function i(e,t){for(let n=e.length-1;n>=0;n--){const a=e[n];if("string"===typeof a&&a&&a!==t)return a}}n.d(t,{L8:()=>a,RU:()=>i,Xb:()=>l})},65287:(e,t,n)=>{"use strict";function a(e){return e.trim()}function l(){const e=new Map,t=new Map;function n(e,t){return t?new Promise((n,a)=>{if(t.aborted)return void a(new DOMException("Aborted","AbortError"));const l=()=>{a(new DOMException("Aborted","AbortError"))};t.addEventListener("abort",l,{once:!0}),e.then(e=>{t.removeEventListener("abort",l),n(e)},e=>{t.removeEventListener("abort",l),a(e)})}):e}return{resolve:async function(l,i,o){const r=a(l);if(!r)throw new Error("Empty image URL");const s=e.get(r);if(s){if(null!==i&&void 0!==i&&i.aborted)throw new DOMException("Aborted","AbortError");return s}const c=t.get(r);if(c)return n(c.promise,i);const d=new AbortController,m=o(r,d.signal).then(n=>(t.delete(r),e.set(r,n),n)).catch(e=>{throw t.delete(r),e});return t.set(r,{promise:m,controller:d}),n(m,i)},abandonKey:function(n){const l=a(n);if(!l)return;const i=t.get(l);i&&(i.controller.abort(),t.delete(l)),e.delete(l)},invalidateAll:function(){for(const[,e]of t)e.controller.abort();t.clear(),e.clear()}}}n.d(t,{a:()=>l,e:()=>a})},47794:(e,t,n)=>{"use strict";n.d(t,{QM:()=>s,g0:()=>p,oF:()=>h,q2:()=>u,xi:()=>g});var a=n(15938),l=n.n(a),i=n(11822),o=n(86080),r=n(61069);function s(e,t){const n=document.createElement("input");n.type="file",n.accept=e,n.multiple=!1,n.setAttribute("data-testid","uploadFile"),n.style.position="absolute",n.style.opacity="0",n.style.pointerEvents="none",document.body.appendChild(n),n.onchange=()=>{var e;null!==(e=n.files)&&void 0!==e&&e.length&&t(n.files),document.body.removeChild(n)},n.click()}const c="index.html";function d(e,t){return e.find(function(e){return e.name.toLowerCase().endsWith(t)})}async function m(e,t,n){return await(0,i.An)(e,async e=>{const a=e.document;await(0,i.bc)(a,async e=>{e=e.replace("\\","/");const n=(0,i.$l)(e);return t(e,n)}),n&&n(e)})}async function u(e,t,a){if(!e)return;switch(function(e){const t=e.split(".");return t[t.length-1].toLowerCase()}(e.name)){case"zip":return async function(e,t,n){const a=new(l()),{files:o}=await a.loadAsync(e),r=Object.keys(o).map(e=>o[e]),s=o[c]||d(r,c)||d(r,".html")||d(r,".htm");if(s){const e=s.name.split("/"),a=document.location.pathname.split("/"),l=document.location.origin+a.slice(0,a.length-e.length).join("/")+"/",r=await s.async("text"),c=e.slice(0,e.length-1).join("/");return await(0,i.An)(r,async e=>{const a=e.document;await(0,i.bc)(a,async e=>{(e=e.replace("\\","/")).startsWith(".")&&(e=e.substring(1)),e.startsWith("/")&&(e=e.substring(1)),e.startsWith(l)&&(e=e.substring(l.length)),c&&!e.match("^(ht|f)tp(s?)://")&&(e=`${c}/${e}`);const n=o[e];if(n){const e=n.name,a=await n.async("blob");return t(a,e)}const a=(0,i.$l)(e);return t(e,a)}),n&&n(e)})}}(e,t,a);case"eml":{const l=await e.text(),{readEml:i}=await n.e(4504).then(n.bind(n,94504)),o=i(l);if(o instanceof Error)throw o;const r="string"===typeof o?o:o.html;if("undefined"===typeof r){throw new Error("Eml does not contain text/html")}return m(r,t,a)}default:return m(await e.text(),t,a)}}function p(e){if(e&&"object"===typeof e&&!Array.isArray(e)&&"code"in e&&"message"in e&&e.data){if(400===e.data.status)return{file_url:null,error:{code:e.code,message:e.message,status:e.data.status}};if(e.data.file_url)return{file_url:e.data.file_url,error:null}}if(Array.isArray(e)&&e.length>0){const n=e[0];if(n&&"object"===typeof n){var t;if("code"in n&&"message"in n&&400===(null===(t=n.data)||void 0===t?void 0:t.status))return{file_url:null,error:{code:n.code,message:n.message,status:n.data.status}};if("file_url"in n&&n.file_url)return{file_url:n.file_url,error:null}}}if(e&&"object"===typeof e&&!Array.isArray(e)&&0 in e){var n,a;if(400===(null===(n=e.data)||void 0===n?void 0:n.status))return{file_url:null,error:{status:e.data.status}};if(null!==(a=e[0])&&void 0!==a&&a.file_url)return{file_url:e[0].file_url,error:null}}return{file_url:null,error:null}}const g=(e,t,n,a)=>async(l,i)=>{try{const s=await async function(e,t){if("string"!==typeof e)return e;try{const n=(0,o.Ay)(e),a=await t({url:n});return null===a||void 0===a||a.data,(null===a||void 0===a?void 0:a.data)||null}catch{return null}}(l,e);if(!s)return"string"===typeof l?l:"";const c=function(e,t,n){if(!e||"string"!==typeof e)return`default.${n.extension(t)||"bin"}`;if(e.split(".").length<2){const a=n.extension(t);if(a)return`${e}.${a}`}return e}(i,s.type,r),d=new File([s],c.toLowerCase());return function(e,t){if(!e||e.error)return"string"===typeof t?t:"";const n=p(e.data);return n.error?"string"===typeof t?t:"":n.file_url?n.file_url:"string"===typeof t?t:""}(await t({user_id:n.id,folder:a.id,file:d}),l)}catch(s){return"string"===typeof l?l:""}},h=e=>t=>{const n=t.document;n.title=(null===n||void 0===n?void 0:n.title)||(0,i.Ay)(e.name)[0]}},42500:(e,t,n)=>{"use strict";n.d(t,{Og:()=>o,SF:()=>i,po:()=>l});const a=new Set;function l(e){return a.add(e),{dispose(){i(e)}}}function i(e){a.delete(e)}function o(e,t){let n=e.getVersionId();const l=[],i=e.onDidChangeContent(i=>{if(i.versionId>n+1){const o=e.onDidChangeContent(r=>{if(i.versionId===n+1)try{a.has(e)||t(i)}catch(s){}finally{n=i.versionId;const e=l.indexOf(o);e>=0&&l.splice(e,1),o.dispose()}});l.push(o)}else try{a.has(e)||t(i)}catch(o){}finally{n=i.versionId}});return{dispose:()=>{i.dispose(),l.forEach(e=>e.dispose())}}}},94994:(e,t,n)=>{"use strict";n.d(t,{OI:()=>r,yc:()=>o});var a=n(30831),l=n(18422),i=n(15703);function o(){return a.QE.get(l.$D)}function r(){return a.QE.get(i.L)}},47706:(e,t,n)=>{"use strict";n.d(t,{CY:()=>r,nr:()=>c,s9:()=>s});var a=n(1936),l=n(45103);function i(e){return{__:e.__.bind(e),_x:e._x.bind(e),_n:e._n.bind(e),_nx:e._nx.bind(e),sprintf:l.nv,isRTL:e.isRTL.bind(e),hasTranslation:e.hasTranslation.bind(e)}}const o=(0,a.createContext)(i(l.y3));function r(e){const{children:t,i18n:n=l.y3}=e,[,r]=(0,a.useReducer)(()=>[],[]);(0,a.useEffect)(()=>n.subscribe(r),[n]);const s=(0,a.useMemo)(()=>i(n),[n]);return(0,a.createElement)(o.Provider,{value:s},t)}const s=()=>(0,a.useContext)(o),c=l.y3},26557:(e,t,n)=>{"use strict";n.d(t,{ZC:()=>i,cM:()=>o});var a=n(1936),l=n(40963);const i=(e,t)=>{const n=(0,a.useRef)(void 0);n.current=e;const l=(0,a.useRef)(void 0);(0,a.useEffect)(()=>{null!==l.current&&n.current(l.current||[]),l.current=t},t)};function o(e,t){const n=(0,a.useRef)(void 0),i=(0,a.useCallback)(()=>{const e=n.current;e&&(0,l.eF)(e.halt)},[]);(0,a.useEffect)(()=>()=>i(),[i]);const o=(0,a.useCallback)(e,t);return[(0,a.useCallback)((...e)=>{i();const t=(0,l.eF)(()=>o(...e));return n.current=t,t},[i,o]),i]}},50879:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var a=n(1936),l=n(69962),i=n(20263),o=n(70529);function r(){const e=(0,l.Pj)();return(0,a.useMemo)(()=>function(e){if(!e)return!1;try{return void 0!==i.di.getInstance(e,o.Ef)}catch{return!1}}(e),[e])}},86457:(e,t,n)=>{"use strict";n.d(t,{A5:()=>d,FN:()=>c,Hk:()=>s,c8:()=>m});var a=n(1936),l=n(93506),i=n(7714);const o=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]"),r=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=light]"),s=e=>{let t,n;e===l.IJ?(t=l.vd,n=l.F3):(t=e===l.T?l.y2:l.CJ,n=e===l.nd?l.y2:l.CJ),[...r].forEach(e=>{e.media=t}),[...o].forEach(e=>{e.media=n})},c=(e={})=>{const t=document.querySelector("head"),n=document.createElement("style");if(n.type="text/css",n.dataset.themeVaribalse=!0,n.setAttribute("data-emailmaker","true"),Object.entries(e).length){let a="";Object.entries(e).forEach(([e,t])=>{"object"!==typeof t&&(a+=`\t--${e}: ${t};\n`)}),a=`.blocks-body, .blocks-app, .ant-modal-root, .ant-tooltip, .ant-notification {\n${a}}`,n.appendChild(document.createTextNode(a));const l=t.querySelector('[data-theme-varibalse="true"]');l?t.replaceChild(n,l):t.insertBefore(n,t.firstChild)}},d=e=>{const t=document.body;t.classList.contains(e)||setTimeout(()=>{t.classList.remove(e===l.nd?l.T:l.nd),e&&t.classList.add(e)},200)},m=()=>{const e=(0,i.XW)();return(0,a.useCallback)(()=>{const t=window.localStorage.getItem(l.V0.em_color_scheme),n=matchMedia(l.F3).matches?l.nd:l.T,a=t||n;e({operation:l.Ru.UPDATE_PREVIEW,theme:a})},[e])}},20387:(e,t,n)=>{"use strict";n.d(t,{a:()=>l,t:()=>i});var a=n(1331);function l(e,t,n,l){const i=(0,a.Sb)(e),o=Symbol(`once-handler-${t}`),r=i?e=>{e[o]||(e[o]=!0,n(e))}:n;return null===i||void 0===i||i.addEventListener(t,r,l),window.addEventListener(t,r,l),{dispose:()=>{null===i||void 0===i||i.removeEventListener(t,r,l),window.removeEventListener(t,r,l)}}}function i(e,t,n,l){const i=(0,a.Sb)(e),o=Symbol(`once-handler-${t}`),r=i?e=>{e[o]||(e[o]=!0,n(e))}:n;return null===i||void 0===i||i.addEventListener(t,r,l),document.addEventListener(t,r,l),{dispose:()=>{null===i||void 0===i||i.removeEventListener(t,r,l),document.removeEventListener(t,r,l)}}}},8855:(e,t,n)=>{"use strict";function a(e){return e=(e=(e=(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")).replace(/<\/?(?:script|embed|object|frameset|frame|iframe|applet|meta)[^>]*>/gi,"")).replace(/ on\w+="[^"]*"/g,"")).replace(/ on\w+='[^']*'/g,"")}n.d(t,{p:()=>a})},32463:(e,t,n)=>{"use strict";n.d(t,{e:()=>l});var a=n(69986);function l(e,t){if("amp"===t)e.handleRender(async({contentDocument:e,managedNodeController:t})=>{for(const n of e.querySelectorAll(".em-amp-show-disabled"))n.remove();await(0,a.Sc)(e,{mappedTags:{script:"___script"},commit:()=>t.commit()})});else if("html"===t){const t=e.document;for(const e of t.querySelectorAll(".em-amp-show-only"))e.remove();(0,a.Km)(t,{mappedTags:{script:"___script"}})}}},64433:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(47706);const l=()=>{const{__:e}=(0,a.s9)();return[{symbol:"\u2022",code:"•",description:e("Bullet")},{symbol:"+",code:"+",description:e("Plus")},{symbol:"\xbb",code:"»",description:e("Double quotation")},{symbol:"\xd7",code:"×",description:e("Cross")},{symbol:"\u2013",code:"—",description:e("Dash")},{symbol:"\u203a",code:"›",description:e("Single quotation")},{symbol:"\u2192",code:"→",description:e("Arrow")},{symbol:"\u21d2",code:"⇒",description:e("Double arrow")},{symbol:"\u25ba",code:"▸",description:e("Pointer")},{symbol:"\u2212",code:"−",description:e("Minus")},{symbol:"\u2217",code:"∗",description:e("Star")},{symbol:"\u2666",code:"♦",description:e("Diamond")}]}},30392:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(1936),l=n(69962),i=n(84075),o=n(89591),r=n(52898);const s=()=>{const e=(0,l.wA)(),t=(0,l.d4)(r.zn);let n=(0,i.zy)();(0,a.useEffect)(()=>{/emails\/[0-9]+$/.test(n.pathname)||t&&e(o.GY.util.invalidateTags([{type:"Emails",id:+t}]))},[n,e,t])}},15582:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),l=n(7714);function i(e,t){const n=(0,l.QC)();(0,a.useEffect)(()=>{const a=n.addListener(e,t);return()=>{a.dispose()}},[n,e,t])}},7959:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(1936),l=n(84075),i=n(69962),o=n(98173),r=n(487);const s=e=>{const t=(0,i.d4)(o.C1),[n,s]=(0,a.useState)({owner:!1,admin:!1}),c=(0,l.KC)(),{data:d}=(0,r.fo)(e,{skip:!e||!t.id||!(null!==c&&void 0!==c&&c.isUninitialized)}),m=(null===c||void 0===c?void 0:c.data)||d;return(0,a.useEffect)(()=>{if(m){var e,n;const{owner:a,admins:l,users:i}=m.members,o=l?l.map(e=>e.ID):l,r=i?i.map(e=>e.ID):i;s({owner:(null===(e=a.ID)||void 0===e?void 0:e.toString())===(null===(n=t.id)||void 0===n?void 0:n.toString()),admin:o&&o.includes(t.id),user:r&&r.includes(t.id)})}},[m,t.id]),n}},34972:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(1936),l=n(69962),i=n(84075),o=n(11105),r=n(93506),s=n(2527);const c=()=>{const e=(0,l.wA)(),t=(0,s.p)(),n=(0,l.d4)(o.Sl);let c=(0,i.zy)();(0,a.useEffect)(()=>{c.pathname.endsWith("/new")||n&&(e((0,o.X8)()),t.remove(r.A9.em_new_block))},[c,n,e,t])}},12723:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(1936),l=n(69962),i=n(84075),o=n(61062),r=n(93506),s=n(2527);const c=()=>{const e=(0,s.p)(),t=(0,l.wA)(),n=(0,l.d4)(o.$S);let c=(0,i.zy)();(0,a.useEffect)(()=>{c.pathname.endsWith("/new")||(e.remove(r.A9.em_new_email),e.remove(r.A9.em_template_email),n&&t((0,o.Et)()))},[c,n,t,e])}},25820:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(93506);const l=e=>{if(!a.EW.isPlugin){let t="";t="EmailMaker",document.title=e+" - "+t}}},49077:(e,t,n)=>{"use strict";n.d(t,{wf:()=>m,I9:()=>d,XJ:()=>o});var a=n(1936),l=n(57549),i=n(96040);const o=({integration:e,isConfigured:t,onClick:n,__:o})=>a.createElement(l.Zp,{hoverable:!0,onClick:n,style:{textAlign:"center",height:"100%",position:"relative"},bodyStyle:{padding:"12px 8px"}},t&&a.createElement(i.Ay,{icon:"CheckCircleOutlined",style:{color:"#52c41a",fontSize:"16px",position:"absolute",top:6,left:6}}),a.createElement(l.$x,{direction:"vertical",size:4},a.createElement("img",{src:e.icon,alt:e.name,style:{width:32,height:32},onError:e=>{e.target.style.display="none"}}),a.createElement(l.EY,{strong:!0},o(e.name))));var r=n(94395);const s=(e,t)=>{const n={placeholder:e.placeholder?t(e.placeholder):void 0},o={marginBottom:5};switch(e.type){case"password":return a.createElement(l._2,Object.assign({},n,{style:o,autoComplete:"new-password",iconRender:e=>e?a.createElement(i.Ay,{icon:"EyeOutlined"}):a.createElement(i.Ay,{icon:"EyeInvisibleOutlined"})}));case"email":return a.createElement(l.pd,Object.assign({},n,{type:"email",style:o}));case"number":return a.createElement(l.YI,Object.assign({},n,{style:{width:"100%",...o},min:1}));case"checkbox":return a.createElement(l.Sc,{style:o},t(e.label));default:return a.createElement(l.pd,Object.assign({},n,{style:o}))}},c=(e,t,n,a)=>{var l,i,o;if(!e.required)return"email"===e.type?[{type:"email",message:a("Please enter valid email")}]:[];const s=(null===n||void 0===n||null===(l=n.getFieldValue)||void 0===l?void 0:l.call(n,["integrations",t]))||{},c=r.Gn[t];return null!==(i=null===c||void 0===c||null===(o=c.settingsFields)||void 0===o?void 0:o.some(e=>e.required&&!!s[e.name]))&&void 0!==i&&i?[{required:!0,message:a(`Please enter ${e.label.toLowerCase()}`)},..."email"===e.type?[{type:"email",message:a("Please enter valid email")}]:[]]:"email"===e.type?[{type:"email",message:a("Please enter valid email")}]:[]},d=({integration:e,form:t,__:n})=>{const i=e.settingsFields,o=i.filter(e=>e.helpUrl),r=i.filter(e=>!e.helpUrl);return a.createElement(a.Fragment,null,o.map(i=>a.createElement(a.Fragment,{key:i.name},a.createElement(l.so,{justify:"space-between",style:{marginBottom:8}},a.createElement("span",null,i.required&&"api_key"!==i.name&&a.createElement("span",{style:{color:"#ff4d4f",marginRight:4}},"*"),"api_key"===i.name&&a.createElement("span",{style:{color:"#ff4d4f",marginRight:4}},"*"),n(i.label)),a.createElement("a",{href:i.helpUrl,target:"_blank",rel:"noopener noreferrer"},n("How to get an API key?"))),a.createElement(l.fI,{gutter:24},a.createElement(l.fv,{span:24},a.createElement(l.lV.Item,{name:["integrations",e.id,i.name],rules:c(i,e.id,t,n),extra:i.extra?n(i.extra):void 0,style:{marginBottom:24}},s(i,n)))))),(t=>{const i=r.filter(e=>e.fullWidth),o=r.filter(e=>!e.fullWidth),c=[...i,...o],d=null===(t=c[c.length-1])||void 0===t?void 0:t.name;return a.createElement(a.Fragment,null,i.map(t=>a.createElement(l.fI,{gutter:24,key:t.name},a.createElement(l.fv,{span:24},a.createElement(l.lV.Item,{label:n(t.label),name:["integrations",e.id,t.name],rules:[...t.required?[{required:!0,message:n(`Please enter ${t.label.toLowerCase()}`)}]:[],..."email"===t.type?[{type:"email",message:n("Please enter valid email")}]:[]],extra:t.extra?n(t.extra):void 0,style:t.name===d?{marginBottom:5}:void 0},s(t,n))))),a.createElement(l.fI,{gutter:24},o.map((t,i)=>{const r=i===o.length-1&&o.length%2===1?24:12,c=t.name===d;return a.createElement(l.fv,{span:r,key:t.name},a.createElement(l.lV.Item,{label:n(t.label),name:["integrations",e.id,t.name],rules:[...t.required?[{required:!0,message:n(`Please enter ${t.label.toLowerCase()}`)}]:[],..."email"===t.type?[{type:"email",message:n("Please enter valid email")}]:[]],extra:t.extra?n(t.extra):void 0,style:c?{marginBottom:5}:void 0},s(t,n)))})))})())},m=({integration:e,visible:t,loading:n=!1,onConfirm:i,onCancel:o,__:r})=>{const[s]=l.lV.useForm(),c=e.exportFields||[];(0,a.useEffect)(()=>{t||s.resetFields()},[t,s]);if(0===c.length)return null;const d=c.find(e=>e.helpText);return a.createElement(l.aF,{title:r(`Export to ${e.name}`),open:t,onOk:()=>{n||s.validateFields().then(e=>{i(e)})},onCancel:()=>{s.resetFields(),o()},okText:r("Export"),cancelText:r("Cancel"),confirmLoading:n,cancelButtonProps:{disabled:n}},d&&a.createElement(l.Fc,{message:r(d.label),description:r(d.helpText),type:"info",showIcon:!0,style:{marginBottom:16}}),a.createElement(l.lV,{form:s,layout:"vertical"},c.map(e=>a.createElement(l.lV.Item,{key:e.name,label:r(e.label),name:e.name,rules:[...e.required?[{required:!0,message:r(`Please enter ${e.label.toLowerCase()}`)}]:[],..."number"===e.type?[{type:"number",message:r(`${e.label} must be a number`)}]:[]]},((e,t)=>{const n={placeholder:e.placeholder?t(e.placeholder):void 0,style:{width:"100%"}};switch(e.type){case"number":return a.createElement(l.YI,Object.assign({},n,{min:1}));case"email":return a.createElement(l.pd,Object.assign({},n,{type:"email"}));default:return a.createElement(l.pd,n)}})(e,r)))))}},78679:(e,t,n)=>{"use strict";n.d(t,{_:()=>y});var a=n(33480),l=n(42161),i=n(48822),o=n(87644),r=n(69884),s=n(59283),c=n(16360),d=n(44056),m=n(20833),u=n(12465),p=n(98881),g=n(36472),h=n(79496),f=n(96968),b=n(77514),v=n(50121),E=n(47706);const y=()=>{const{__:e}=(0,E.s9)(),[t,{isLoading:n}]=(0,a.r)(),[y,{isLoading:_}]=(0,l.S)(),[C,{isLoading:k}]=(0,i._)(),[A,{isLoading:w}]=(0,o.k)(),[x,{isLoading:S}]=(0,r.c)(),[L,{isLoading:T}]=(0,s.X)(),[I,{isLoading:N}]=(0,c.X)(),[B,{isLoading:R}]=(0,d.T)(),[O,{isLoading:M}]=(0,m.T)(),[P,{isLoading:V}]=(0,u.X)(),[F,{isLoading:j}]=(0,p.X)(),[W,{isLoading:D}]=(0,g.X)(),[H,{isLoading:z}]=(0,h.X)(),[U,{isLoading:q}]=(0,f.b)(),[Z,{isLoading:$}]=(0,b.X)(),[G,{isLoading:K}]=(0,v.A)(),X={unisender:async(n,a,l,i)=>{try{var o;const r=await t({api_key:n.api_key,sender_name:n.sender_name,sender_email:n.sender_email,subject:i,body:l,list_id:a.list_id,generate_text:1,lang:"ru"}).unwrap();return null!==(o=r.result)&&void 0!==o&&o.message_id?{success:!0,message:e("Email successfully created!"),link:{url:`https://app.unisender.com/ru/v5/spa/email-campaign/editor/${r.result.message_id}?step=send`,text:e("Open in Unisender")}}:r.error?{success:!1,error:r.error+(r.code?` (${r.code})`:"")}:{success:!1,error:e("Unknown error")}}catch(r){return{success:!1,error:r.message||e("Failed to create email")}}},mailganer:async(t,n,a,l)=>{try{const i=await y({api_key:t.api_key,name:n.name,html_content:a,theme:n.theme||l,from_name:t.from_name,from_email:t.from_email}).unwrap();return 1===i.status&&i.public_id?{success:!0,message:e("Mailing successfully created!"),link:i.step1_url?{url:i.step1_url,text:e("Open in Mailganer")}:void 0}:i.error?{success:!1,error:i.error}:{success:!1,error:e("Unknown error")}}catch(i){return{success:!1,error:i.message||e("Failed to create mailing")}}},sendsay:async(t,n,a,l)=>{try{var i;const l=await C({login:t.login,api_key:t.api_key,name:n.name,subject:n.subject,html_content:a,from_name:t.from_name,from_email:t.from_email}).unwrap();return null!==(i=l.obj)&&void 0!==i&&i.id?{success:!0,message:e("Draft successfully created!"),link:{url:`https://app.sendsay.ru/content/drafts/email/${l.obj.id}/settings`,text:e("Open in Sendsay")}}:l.errors&&l.errors.length>0?{success:!1,error:l.errors.map(e=>e.explain).join(", ")}:l.error?{success:!1,error:l.explain||l.error}:{success:!1,error:e("Unknown error")}}catch(o){return{success:!1,error:o.message||e("Failed to create draft")}}},altcraft:async(t,n,a,l)=>{try{const i=await A({api_url:t.api_url,api_key:t.api_key,name:n.name,html_content:a,subject:n.subject||l,from_name:t.from_name,from_email:t.from_email}).unwrap();return 0===i.error?{success:!0,message:e("Template successfully created!")}:{success:!1,error:i.error_text||e("Unknown error")}}catch(i){return{success:!1,error:i.message||e("Failed to create template")}}},enkod:async(t,n,a,l)=>{try{const l=await x({api_key:t.api_key,subject:n.subject,html_content:a,sender_name:t.sender_name,sender_email:t.sender_email}).unwrap();if(l.success||l.messageId||l.id){const t=l.messageId||l.id;return{success:!0,message:e("Draft successfully created!"),link:t?{url:`https://app.enkod.ru/ensend/messages/detail/${t}/preview`,text:e("Open in enKod")}:void 0}}return l.error||l.message?{success:!1,error:l.error||l.message||e("Unknown error")}:{success:!1,error:e("Unknown error")}}catch(i){return{success:!1,error:i.message||e("Failed to create draft")}}},mailchimp:async(t,n,a,l)=>{try{const o=await L({api_key:t.api_key,list_id:n.list_id,subject:n.subject||l,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();if(o.id){var i;const n=(null===(i=t.api_key)||void 0===i?void 0:i.split("-")[1])||"us1";return{success:!0,message:e("Campaign successfully created!"),link:{url:`https://${n}.admin.mailchimp.com/campaigns/#r:campaignId=${o.id}`,text:e("Open in Mailchimp")}}}return{success:!1,error:e("Unknown error")}}catch(o){return{success:!1,error:o.message||e("Failed to create campaign")}}},klaviyo:async(t,n,a,l)=>{try{const i=await I({api_key:t.api_key,list_id:n.list_id,subject:n.subject||l,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();return i.id?{success:!0,message:e("Campaign successfully created!"),link:{url:`https://www.klaviyo.com/campaign/${i.id}/wizard/1`,text:e("Open in Klaviyo")}}:{success:!1,error:e("Unknown error")}}catch(i){return{success:!1,error:i.message||e("Failed to create campaign")}}},hubspot:async(t,n,a,l)=>{try{const i=await B({api_key:t.api_key,name:n.name,subject:n.subject||l,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();return i.id?{success:!0,message:e("Email successfully created!"),link:{url:`https://app.hubspot.com/email/0/edit/${i.id}`,text:e("Open in HubSpot")}}:{success:!1,error:e("Unknown error")}}catch(i){return{success:!1,error:i.message||e("Failed to create email")}}},salesforce_mc:async(t,n,a,l)=>{try{const i=await O({subdomain:t.subdomain,client_id:t.client_id,client_secret:t.client_secret,name:n.name,subject:n.subject||l,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();return i.id?{success:!0,message:e("Email successfully created!"),link:{url:`https://app.s7.exacttarget.com/ContentBuilder?app=contentbuilder&id=${i.id}`,text:e("Open in Marketing Cloud")}}:{success:!1,error:e("Unknown error")}}catch(i){return{success:!1,error:i.message||e("Failed to create email")}}},activecampaign:async(t,n,a,l)=>{try{const i=await P({api_url:t.api_url,api_key:t.api_key,list_id:t.list_id,name:n.name,subject:n.subject||l,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();if(i.campaignId){const n=(t.api_url||"").replace(/\/$/,"").match(/https?:\/\/([^.]+)\.api-/),a=n?n[1]:"",l=a?`https://${a}.activehosted.com/app/campaigns/${i.campaignId}`:"https://www.activecampaign.com/app/campaigns";return{success:!0,message:e("Draft campaign created! Open it to review and schedule."),link:{url:l,text:e("Open draft campaign")}}}return{success:!1,error:e("Unknown error")}}catch(i){const n=i.message||i.error||"";if("NO_MAILING_ADDRESS"===n){const n=(t.api_url||"").replace(/\/$/,"").match(/https?:\/\/([^.]+)\.api-/),a=n?n[1]:"",l=a?`https://${a}.activehosted.com/app/settings/addresses`:"https://www.activecampaign.com/app/settings/addresses";return{success:!1,error:e("No mailing address found. Add one in ActiveCampaign: ")+l}}return{success:!1,error:n||e("Failed to create campaign")}}},brevo:async(t,n,a,l)=>{try{const i=await F({api_key:t.api_key,list_id:Number(n.list_id),name:n.name,subject:n.subject||l,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();return i.id?{success:!0,message:e("Campaign successfully created!"),link:{url:`https://app.brevo.com/marketing-campaign/edit/${i.id}`,text:e("Open in Brevo")}}:{success:!1,error:e("Unknown error")}}catch(i){return{success:!1,error:i.message||e("Failed to create campaign")}}},campaign_monitor:async(t,n,a,l)=>{try{var i;const a=null===(i=n.html_url)||void 0===i?void 0:i.trim();if(!a)return{success:!1,error:e("HTML URL is required. Save the email first, or paste a custom URL to your hosted HTML.")};const o=await W({api_key:t.api_key,client_id:t.client_id,list_id:n.list_id,name:n.name,subject:n.subject||l,from_name:t.from_name,from_email:t.from_email,html_url:a.trim()}).unwrap();return o.id?{success:!0,message:e("Campaign successfully created!"),link:{url:`https://app.createsend.com/campaigns/#/${o.id}`,text:e("Open in Campaign Monitor")}}:{success:!1,error:e("Unknown error")}}catch(o){return{success:!1,error:o.message||e("Failed to create campaign")}}},constant_contact:async(t,n,a,l)=>{try{return(await H({access_token:t.access_token,list_id:n.list_id,name:n.name,subject:n.subject||l,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap()).campaign_id?{success:!0,message:e("Campaign successfully created!"),link:{url:"https://app.constantcontact.com/pages/email/campaigns",text:e("Open in Constant Contact")}}:{success:!1,error:e("Unknown error")}}catch(i){return{success:!1,error:i.message||e("Failed to create campaign")}}},getresponse:async(t,n,a,l)=>{try{const i=await U({api_key:t.api_key,from_field_id:t.from_field_id,campaign_id:n.campaign_id,name:n.name,subject:n.subject||l,html:a}).unwrap();return i.newsletterId?{success:!0,message:e("Newsletter successfully created!"),link:{url:`https://app.getresponse.com/letter/${i.newsletterId}`,text:e("Open in GetResponse")}}:{success:!1,error:e("Unknown error")}}catch(i){return{success:!1,error:i.message||e("Failed to create newsletter")}}},dotdigital:async(t,n,a,l)=>{try{const i=await Z({username:t.username,password:t.password,region:t.region||"r1",name:n.name,subject:n.subject||l,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();return i.id?{success:!0,message:i.usedAccountDefaultFromAddress?e("Campaign created. Dotdigital used your account default sender because this From email is not registered as a custom from address. Add the address in Dotdigital and export again to use it."):e("Campaign successfully created!"),link:{url:"https://login.dotdigital.com/",text:e("Open in Dotdigital")}}:{success:!1,error:e("Unknown error")}}catch(i){return{success:!1,error:i.message||e("Failed to create campaign")}}},bento:async(t,n,a,l)=>{try{return await G({publishable_key:t.publishable_key,secret_key:t.secret_key,site_uuid:t.site_uuid,name:n.name,subject:n.subject||l,from_name:t.from_name,from_email:t.from_email,html:a,inclusive_tags:n.inclusive_tags}).unwrap(),{success:!0,message:e("Broadcast successfully created!"),link:{url:"https://app.bentonow.com/",text:e("Open in Bento")}}}catch(i){return{success:!1,error:i.message||e("Failed to create broadcast")}}}};return{exportToIntegration:async(t,n,a,l,i)=>{const o=X[t];return o?o(n,a,l,i):{success:!1,error:e("Unknown integration")}},isLoading:n||_||k||w||S||T||N||R||M||V||j||D||z||q||$||K}}},29692:(e,t,n)=>{"use strict";n.d(t,{I9:()=>l.I9,XJ:()=>l.XJ,rg:()=>a.rg,v0:()=>a.v0,hS:()=>a.hS});var a=n(94395),l=n(49077);n(78679),n(1936);n(33480),n(42161),n(48822)},94395:(e,t,n)=>{"use strict";n.d(t,{Gn:()=>a,hS:()=>r,rg:()=>i,v0:()=>o});const a={unisender:{id:"unisender",name:"Unisender",icon:"/images/integrations/unisender.svg",description:"Export emails to Unisender",apps:["emailmaker"],settingsFields:[{name:"api_key",type:"password",label:"API Key",required:!0,placeholder:"Enter Unisender API key",helpUrl:"https://app.unisender.com/ru/v5/cp/user/info/api"},{name:"sender_email",type:"email",label:"Sender Email",required:!0,placeholder:"sender@example.com",extra:"This email must be verified in Unisender"},{name:"sender_name",type:"text",label:"Sender Name",required:!0,placeholder:"e.g., Your Company"}],exportFields:[{name:"list_id",type:"number",label:"Contact List ID",required:!0,placeholder:"e.g., 123456"}]},mailganer:{id:"mailganer",name:"Mailganer",icon:"/images/integrations/mailganer.svg",description:"Export emails to Mailganer",apps:["emailmaker"],settingsFields:[{name:"api_key",type:"password",label:"API Key",required:!0,placeholder:"Enter Mailganer API key",helpUrl:"https://mailganer.com/app/profile/"},{name:"from_email",type:"email",label:"Sender Email",required:!1,placeholder:"sender@example.com",extra:"This email must be verified in Mailganer"},{name:"from_name",type:"text",label:"Sender Name",required:!1,placeholder:"e.g., Your Company"}],exportFields:[{name:"name",type:"text",label:"Mailing Name",required:!0,placeholder:"e.g., Newsletter June 2026"},{name:"theme",type:"text",label:"Email Subject",required:!1,placeholder:"e.g., Special offer for you!"}]},sendsay:{id:"sendsay",name:"Sendsay",icon:"/images/integrations/sendsay.svg",description:"Export emails to Sendsay",apps:["emailmaker"],settingsFields:[{name:"login",type:"text",label:"Account Login",required:!0,placeholder:"e.g., myaccount or myaccount/sublogin",extra:"Your Sendsay account login (not email). For sublogin use format: account/sublogin",fullWidth:!0},{name:"api_key",type:"password",label:"API Key",required:!0,placeholder:"Enter Sendsay API key",helpUrl:"https://docs.sendsay.ru/sendsay-api/how-to-get-apikey"},{name:"from_email",type:"email",label:"Sender Email",required:!1,placeholder:"sender@example.com",extra:"This email must be verified in Sendsay"},{name:"from_name",type:"text",label:"Sender Name",required:!1,placeholder:"e.g., Your Company"}],exportFields:[{name:"name",type:"text",label:"Draft Name",required:!0,placeholder:"e.g., Newsletter June 2026"},{name:"subject",type:"text",label:"Email Subject",required:!0,placeholder:"e.g., Special offer for you!"}]},klaviyo:{id:"klaviyo",name:"Klaviyo",icon:"/images/integrations/klaviyo.svg",description:"Export emails to Klaviyo",apps:["useblocks"],settingsFields:[{name:"api_key",type:"password",label:"API Key",required:!0,placeholder:"e.g., pk_xxxxxxxx",helpUrl:"https://help.klaviyo.com/hc/en-us/articles/7423954176283-How-to-create-a-private-API-key",extra:"Use a custom key with templates:write and campaigns:write (or Full access). Campaigns-only is not enough \u2014 export creates a template first."},{name:"from_email",type:"email",label:"From Email",required:!0,placeholder:"sender@example.com",extra:"This email must be verified in Klaviyo"},{name:"from_name",type:"text",label:"From Name",required:!0,placeholder:"e.g., Your Company"}],exportFields:[{name:"list_id",type:"text",label:"List ID",required:!0,placeholder:"e.g., ABC123",helpText:"Find your List ID in Klaviyo: Lists & Segments \u2192 List \u2192 Settings"},{name:"subject",type:"text",label:"Email Subject",required:!1,placeholder:"e.g., Special offer for you!"}]},campaign_monitor:{id:"campaign_monitor",name:"Campaign Monitor",icon:"/images/integrations/campaign_monitor.svg",description:"Export emails to Campaign Monitor",apps:["useblocks"],settingsFields:[{name:"api_key",type:"password",label:"API Key",required:!0,placeholder:"Enter API Key",fullWidth:!0,helpUrl:"https://help.campaignmonitor.com/s/article/api-keys"},{name:"client_id",type:"text",label:"Client ID",required:!0,placeholder:"e.g., 4a397ccaaa55eb4e6aa1221e1e2d7122",helpText:"Find in Account Settings \u2192 API Keys"},{name:"from_email",type:"email",label:"From Email",required:!0,placeholder:"sender@example.com",extra:"Must be verified in Campaign Monitor"},{name:"from_name",type:"text",label:"From Name",required:!0,placeholder:"e.g., Your Company"}],exportFields:[{name:"name",type:"text",label:"Campaign Name",required:!0,placeholder:"e.g., Newsletter June 2026"},{name:"list_id",type:"text",label:"List ID",required:!0,placeholder:"e.g., a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",helpText:"Find in Lists \u2192 List ID"},{name:"subject",type:"text",label:"Email Subject",required:!1,placeholder:"e.g., Special offer for you!"}]},constant_contact:{id:"constant_contact",name:"Constant Contact",icon:"/images/integrations/constant_contact.svg",description:"Export emails to Constant Contact",apps:["useblocks"],settingsFields:[{name:"access_token",type:"password",label:"Access Token",required:!0,placeholder:"OAuth2 Bearer token",fullWidth:!0,helpText:"Get from Constant Contact Developer Portal. Token expires in 24 hours.",helpUrl:"https://developer.constantcontact.com/api_guide/getting_started.html"},{name:"from_email",type:"email",label:"From Email",required:!0,placeholder:"sender@example.com",extra:"Must be confirmed in Constant Contact"},{name:"from_name",type:"text",label:"From Name",required:!0,placeholder:"e.g., Your Company"}],exportFields:[{name:"name",type:"text",label:"Campaign Name",required:!0,placeholder:"e.g., Newsletter June 2026"},{name:"list_id",type:"text",label:"Contact List ID",required:!0,placeholder:"e.g., fa32f620-6d82-11e8-8b59-fa163e56c9b0",helpText:"Find via GET /contact_lists API"},{name:"subject",type:"text",label:"Email Subject",required:!1,placeholder:"e.g., Special offer for you!"}]},bento:{id:"bento",name:"Bento",icon:"/images/integrations/bento.svg",description:"Export emails to Bento",apps:["useblocks"],settingsFields:[{name:"publishable_key",type:"password",label:"Publishable Key",required:!0,placeholder:"Enter Publishable Key",fullWidth:!0,helpUrl:"https://app.bentonow.com/account/teams"},{name:"secret_key",type:"password",label:"Secret Key",required:!0,placeholder:"Enter Secret Key",fullWidth:!0},{name:"site_uuid",type:"text",label:"Site UUID",required:!0,placeholder:"Your site UUID",helpText:"Find in Bento dashboard"},{name:"from_email",type:"email",label:"From Email",required:!0,placeholder:"sender@example.com",extra:"Must be an author in your Bento account"},{name:"from_name",type:"text",label:"From Name",required:!0,placeholder:"e.g., Your Company"}],exportFields:[{name:"name",type:"text",label:"Broadcast Name",required:!0,placeholder:"e.g., Newsletter June 2026"},{name:"subject",type:"text",label:"Email Subject",required:!1,placeholder:"e.g., Special offer for you!"},{name:"inclusive_tags",type:"text",label:"Tags (inclusive)",required:!1,placeholder:"e.g., subscribers,newsletter",helpText:"Comma-separated tags to send to. Default: subscribers"}]},dotdigital:{id:"dotdigital",name:"Dotdigital",icon:"/images/integrations/dotdigital.svg",description:"Export emails to Dotdigital",apps:["useblocks"],settingsFields:[{name:"username",type:"text",label:"API Username",required:!0,placeholder:"API user email",helpText:"API user email from Settings \u2192 Access \u2192 API users",helpUrl:"https://developer.dotdigital.com/docs/setting-up-an-api-user"},{name:"password",type:"password",label:"API Password",required:!0,placeholder:"API user password",fullWidth:!0},{name:"region",type:"text",label:"Region",required:!0,placeholder:"r1, r2, or r3",helpText:"r1=Europe, r2=North America, r3=Asia Pacific"},{name:"from_email",type:"email",label:"From Email",required:!0,placeholder:"sender@example.com",fullWidth:!0,extra:"Use an email registered as a Custom from address in Dotdigital (see support.dotdigital.com \u2014 \u201cCreate a custom from address\u201d). If it does not match, export uses your account default sender."},{name:"from_name",type:"text",label:"From Name",required:!0,placeholder:"e.g., Your Company"}],exportFields:[{name:"name",type:"text",label:"Campaign Name",required:!0,placeholder:"e.g., Newsletter June 2026"},{name:"subject",type:"text",label:"Email Subject",required:!1,placeholder:"e.g., Special offer for you!"}]},getresponse:{id:"getresponse",name:"GetResponse",icon:"/images/integrations/getresponse.svg",description:"Export emails to GetResponse",apps:["useblocks"],settingsFields:[{name:"api_key",type:"password",label:"API Key",required:!0,placeholder:"Enter API Key",fullWidth:!0,helpUrl:"https://app.getresponse.com/api"},{name:"from_field_id",type:"text",label:"From Field ID",required:!0,placeholder:"e.g., V",helpText:"Find via GET /from-fields API"}],exportFields:[{name:"name",type:"text",label:"Newsletter Name",required:!0,placeholder:"e.g., Newsletter June 2026"},{name:"campaign_id",type:"text",label:"Campaign ID",required:!0,placeholder:"e.g., C",helpText:"List/campaign ID from GET /campaigns"},{name:"subject",type:"text",label:"Email Subject",required:!1,placeholder:"e.g., Special offer for you!"}]},brevo:{id:"brevo",name:"Brevo",icon:"/images/integrations/brevo.svg",description:"Export emails to Brevo",apps:["useblocks"],settingsFields:[{name:"api_key",type:"password",label:"API Key",required:!0,placeholder:"Enter API Key",fullWidth:!0,helpUrl:"https://help.brevo.com/hc/en-us/articles/209467485-Create-and-manage-your-API-keys"},{name:"from_email",type:"email",label:"From Email",required:!0,placeholder:"sender@example.com",extra:"Must be verified in Brevo"},{name:"from_name",type:"text",label:"From Name",required:!0,placeholder:"e.g., Your Company"}],exportFields:[{name:"name",type:"text",label:"Campaign Name",required:!0,placeholder:"e.g., Newsletter June 2026"},{name:"list_id",type:"number",label:"List ID",required:!0,placeholder:"e.g., 2",helpText:"Find in Contacts \u2192 Lists"},{name:"subject",type:"text",label:"Email Subject",required:!1,placeholder:"e.g., Special offer for you!"}]},activecampaign:{id:"activecampaign",name:"ActiveCampaign",icon:"/images/integrations/activecampaign.svg",description:"Export emails as draft campaigns to ActiveCampaign",apps:["useblocks"],settingsFields:[{name:"api_url",type:"text",label:"API URL",required:!0,placeholder:"e.g., https://youraccount.api-us1.com",helpText:"Find in Settings \u2192 Developer \u2192 API Access",helpUrl:"https://help.activecampaign.com/hc/en-us/articles/207317590-Getting-started-with-the-API"},{name:"api_key",type:"password",label:"API Key",required:!0,placeholder:"Enter API Key",fullWidth:!0},{name:"list_id",type:"text",label:"List ID",required:!0,placeholder:"e.g., 1",extra:"Find in Lists \u2192 Click your list \u2192 The ID is in the URL (e.g., /app/contacts?listid=1)"},{name:"from_email",type:"email",label:"From Email",required:!0,placeholder:"sender@example.com",extra:"Must be verified in ActiveCampaign"},{name:"from_name",type:"text",label:"From Name",required:!0,placeholder:"e.g., Your Company"}],exportFields:[{name:"name",type:"text",label:"Campaign Name",required:!0,placeholder:"e.g., Newsletter June 2026"},{name:"subject",type:"text",label:"Email Subject",required:!1,placeholder:"e.g., Special offer for you!"}]},salesforce_mc:{id:"salesforce_mc",name:"Salesforce",icon:"/images/integrations/salesforce.svg",description:"Export emails to Salesforce",apps:["useblocks"],settingsFields:[{name:"subdomain",type:"text",label:"Tenant Subdomain",required:!0,placeholder:"e.g., mc563885gzs27c5t9-63k636ttgm",helpText:"Find in Installed Packages \u2192 API Integration \u2192 REST Base URI",helpUrl:"https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/your-subdomain-tenant-specific-endpoints.html"},{name:"client_id",type:"text",label:"Client ID",required:!0,placeholder:"From Installed Package"},{name:"client_secret",type:"password",label:"Client Secret",required:!0,placeholder:"From Installed Package"},{name:"from_email",type:"email",label:"From Email",required:!0,placeholder:"sender@example.com",extra:"Must be verified in Marketing Cloud"},{name:"from_name",type:"text",label:"From Name",required:!0,placeholder:"e.g., Your Company"}],exportFields:[{name:"name",type:"text",label:"Email Name",required:!0,placeholder:"e.g., Newsletter June 2026"},{name:"subject",type:"text",label:"Email Subject",required:!1,placeholder:"e.g., Special offer for you!"}]},hubspot:{id:"hubspot",name:"HubSpot Email",icon:"/images/integrations/hubspot.svg",description:"Export emails to HubSpot",apps:["useblocks"],settingsFields:[{name:"api_key",type:"password",label:"Private App Access Token",required:!0,placeholder:"e.g., pat-na1-xxxx",helpUrl:"https://developers.hubspot.com/docs/api/private-apps"},{name:"from_email",type:"email",label:"From Email",required:!0,placeholder:"sender@example.com",extra:"This email must be verified in HubSpot"},{name:"from_name",type:"text",label:"From Name",required:!0,placeholder:"e.g., Your Company"}],exportFields:[{name:"name",type:"text",label:"Email Name",required:!0,placeholder:"e.g., Newsletter June 2026"},{name:"subject",type:"text",label:"Email Subject",required:!1,placeholder:"e.g., Special offer for you!"}]},mailchimp:{id:"mailchimp",name:"Mailchimp",icon:"/images/integrations/mailchimp.svg",description:"Export emails to Mailchimp",apps:["useblocks"],settingsFields:[{name:"api_key",type:"password",label:"API Key",required:!0,placeholder:"e.g., xxxxxxxx-us1",helpUrl:"https://mailchimp.com/help/about-api-keys/"},{name:"from_email",type:"email",label:"From Email",required:!0,placeholder:"sender@example.com",extra:"This email must be verified in Mailchimp"},{name:"from_name",type:"text",label:"From Name",required:!0,placeholder:"e.g., Your Company"}],exportFields:[{name:"list_id",type:"text",label:"Audience ID",required:!0,placeholder:"e.g., a1b2c3d4e5",helpText:"Find your Audience ID in Audience settings \u2192 Audience name and defaults"},{name:"subject",type:"text",label:"Email Subject",required:!1,placeholder:"e.g., Special offer for you!"}]},enkod:{id:"enkod",name:"enKod",icon:"/images/integrations/enkod.svg",description:"Export emails to enKod",apps:["emailmaker"],settingsFields:[{name:"api_key",type:"password",label:"API Key",required:!0,placeholder:"Enter enKod API key",helpUrl:"https://help.enkod.io/doku.php/api:start"},{name:"sender_email",type:"email",label:"Sender Email",required:!0,placeholder:"sender@example.com"},{name:"sender_name",type:"text",label:"Sender Name",required:!0,placeholder:"e.g., Your Company"}],exportFields:[{name:"subject",type:"text",label:"Email Subject",required:!0,placeholder:"e.g., Special offer for you!"}]}},l=(e,t)=>!e.apps||0===e.apps.length||e.apps.includes(t),i=e=>{const t=a[e];if(t&&l(t,"emailmaker"))return t},o=()=>{const e="emailmaker",t=Object.values(a).filter(t=>l(t,e));return t},r=(e,t)=>{if(!t)return!1;const n=a[e];if(!n)return!1;return n.settingsFields.filter(e=>e.required).every(e=>!!t[e.name])}},6403:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>m,O5:()=>f,hN:()=>h,x_:()=>u});var a=n(65893),l=n(65185),i=n(1936),o=n(57549),r=n(36234),s=n(51597),c=n(47085);const d="bottomRight";function m(e){return{id:e.id,code:e.html,title:e.title,subject:e.subject,preheader:e.preheader}}function u(e){return{id:e.id,code:e.html,title:e.title}}const p=e=>{var t,n,a,l;return e.message||(null===(t=e.error)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.code)||(null===(a=e.error)||void 0===a?void 0:a.status)||e.error||(null===(l=e.data)||void 0===l?void 0:l.code)||e.status||e||"Unknown error"},g=e=>{var t,n,a,l;return e.description||(null===(t=e.error)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.message)||(null===(a=e.error)||void 0===a?void 0:a.error)||(null===(l=e.data)||void 0===l?void 0:l.message)||e.error||"Unknown error"};function h(){const e=(0,l.ml)(a.AZ.ON_NOTIFICATION),{notification:t}=o.qw.useApp(),n=(0,i.useCallback)((n,a)=>{n.type||(n={...n,type:"info"});const l=(0,c.TB)({...n});return e.fire(l).then(e=>!!e.every(e=>!1!==e)&&(void 0===(n={...n,...l}).placement&&(n.placement=d),n=Object.assign(n,...e.filter(e=>"object"===typeof e)),a||(t[n.type]?t[n.type](n):n.message),n))},[t,e]),r=(0,i.useCallback)((e,t)=>{const a={...e,message:i.createElement("div",{dangerouslySetInnerHTML:{__html:p(e)}}),description:i.createElement("div",{dangerouslySetInnerHTML:{__html:g(e)}})};return n({...a,type:"error"},t)},[n]),s=(0,i.useCallback)((e="Success",t)=>n({..."string"===typeof e?{message:e}:e,type:"success"},t),[n]),m=(0,i.useCallback)((e,t)=>n({...e,type:"warning"},t),[n]),u=(0,i.useCallback)((e,t)=>n({...e,type:"info"},t),[n]),h=(0,i.useCallback)((e,t,n,a,l=d)=>{n&&r({id:e,data:t,message:n.data instanceof Error?"":p(n),description:g(n),placement:l,innerException:(null===n||void 0===n?void 0:n.data)instanceof Error?n.data:n},a)},[r]);return(0,i.useMemo)(()=>({notify:n,success:s,error:r,warning:m,fromError:h,info:u}),[n,s,r,m,h,u])}function f(){const{notify:e}=h();(0,r.D3)(s.Sb,e)}},66034:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var a=n(1936),l=n(84075),i=n(47706),o=n(69962),r=n(57549),s=n(98173),c=n(487),d=n(45988),m=n(66163),u=n(6403),p=n(85183);const g=(e,t="block",n=!1)=>{if(null===e||void 0===e||!e.html)return[];const{document:a,blockElements:l,styleElement:i,linksElements:o}=((e,t="block")=>{const n=new DOMParser,a=n.parseFromString(e,"text/html"),l=a.querySelectorAll(`[em="${t}"]`),i=a.querySelectorAll("link"),o=a.querySelector('[em="styles"]');return{parser:n,document:a,blockElements:l,styleElement:o,linksElements:i}})(e.html,t),r=function(e){return Array.from(e).map(e=>e.outerHTML).join("")}(o);if(!(l instanceof NodeList))return[];const s=a.querySelector("head"),c=s?s.innerHTML:"";return Array.from(l).map((t,a)=>{if(!(t instanceof Element)||!t.outerHTML)return null;const l=i?i.outerHTML:"";return{id:`${e.id}-${a}`,html:n?`<!DOCTYPE html>\n <html>\n <head>${c}</head>\n <body>\n <table>${t.outerHTML}</table>\n </body>\n </html>`:(0,p.Y6)(`${r}${l}${t.outerHTML.replace(/class="em-structure"/,'class=""')}`)}}).filter(Boolean)};const h=e=>e.replace(/<div\s+[^>]*style="font-family:[^>]*>(.*?)<\/div>/gs,e=>e.replace(/>(.*?)<\/div>/s,"></div>")),f=e=>e.replace(/src="[^"]*"/g,'src=""'),b=e=>/<div\s+[^>]*style="font-family:/i.test(e);var v=n(34706);const E=async e=>{const{block:t,form:n,projectData:a,projectId:l,addBlock:i,editProject:o,addTag:r,notification:s,__:c,handleCloseModal:d,htmlContent:m,refetch:u,refetchBlocks:p,reloadBlockScreens:g,values:h,tagIds:f,projectTagsArray:b}=e;try{await(0,v.Wv)({block:t,form:n,projectId:l,htmlContent:m,values:h,tagIds:f,addBlock:i,editProject:o,notification:s,refetch:u,refetchBlocks:p,reloadBlockScreens:g,projectTagsArray:b,__:c,handleCloseModal:d})}catch(E){throw E}};var y=n(41244),_=n(93506);var C=n(83111);const k=({isModalVisible:e,currentEmail:t,setIsShowAddAllBlocksModal:n,setTriggerOpenSavedBlocksTab:p,projectId:k})=>{const{__:A,_x:w,_n:x}=(0,i.s9)(),S=(0,C.NF)(),{data:L,refetch:T}=(0,l.KC)(),[I,N]=(0,a.useState)(!1),[B]=r.lV.useForm(),[R,O]=(0,a.useState)([]),[M,P]=(0,a.useState)([]),V=(0,a.useRef)({}),[F]=(0,d.Gr)(),[j]=(0,c.OD)(),[W,D]=(0,d.pP)(),H=(0,o.d4)(s.B)||(_.EW.isPlugin?void 0:"ru_RU"),z=(e=>{const t=new Set,n=[];for(const a of e)if(b(a.html)){const e=f(h(a.html));t.has(e)||(t.add(e),n.push(a))}else n.push(a);return n})(g(t)).map(e=>e),U=z.length,q=(0,u.hN)(),Z=()=>{I||G||n(!1)},{bulkSave:$,confirmSavingBlocksLoading:G}=(({projectData:e,addTag:t,addBlock:n,editProject:l,refetch:i,reloadBlockScreens:o,notification:r,__:s,handleCloseModal:c,setTriggerOpenSavedBlocksTab:d,setTagsOptions:m,form:u,projectId:p})=>{const[g,h]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{m((0,y._q)(e,_.YY).map(e=>({value:e.name})))},[e]),{bulkSave:async(a,m,g,f)=>{h(!0);try{if(!m)return;const{tagIds:h,projectTagsArray:y}=await(0,v.cr)({blockTags:f,projectData:e,projectId:p,addTag:t,editProject:l,notification:r,__:s});let _=!0,C=0;for(const i of a)try{await E({block:i,form:u,projectData:e,projectId:p,addBlock:n,editProject:l,addTag:t,notification:r,__:s,handleCloseModal:c,values:g,tagIds:h,projectTagsArray:y})}catch(b){_=!1,C++}if(_&&r.success({id:"BULK_SAVE_SUCCESS",message:s("All blocks saved successfully."),placement:"bottomRight"}),!_){if(C===a.length)throw new Error;r.warning({id:"BULK_SAVE_PARTIAL_SUCCESS",message:s("Some blocks were not saved successfully."),placement:"bottomRight"})}d(!0);try{i()}catch(b){}o()}catch(b){throw b}finally{h(!1),u.resetFields(),c()}},confirmSavingBlocksLoading:g}})({projectData:L,addTag:F,addBlock:W,editProject:j,refetch:T,reloadBlockScreens:v.MA,notification:q,__:A,handleCloseModal:Z,setTriggerOpenSavedBlocksTab:p,setTagsOptions:P,form:B,projectId:k}),K=async()=>{try{const{valid:e,values:n,blockTags:a}=await(0,v.q)({form:B,notification:q,__:A});p(!1),N(!0);const l=function(e,t,n){const{images:a}=e,{blocks:l}=t;return null===a||void 0===a?void 0:a.map(e=>{const t=l.find(t=>t.id===e.block_id);return{blockType:e.classification,blockTitle:e.name,htmlContent:(null===t||void 0===t?void 0:t.html)||"",projectId:n}})}(await(0,m.V)(t,H,V,z,S),V.current,t.project.toString());N(!1),await $(l,e,n,a)}catch(e){N(!1),n(!1),q.error({message:A("Failed to save blocks."),placement:"bottomRight"})}};return a.createElement(r.aF,{title:a.createElement("div",{className:"ant-modal-title"},A("Bulk saving of blocks")),open:e,onOk:K,onCancel:Z,footer:a.createElement("div",{className:"modal-footer"},!(I||G)&&a.createElement(r.$n,{key:"submit",size:"large",type:"primary",disabled:I||G,onClick:K},w("Save","block")+" "+U+" "+x("block","blocks",U)))},I||G?a.createElement("div",null,A("All blocks saved at this point can be found in the \u201cSaved Blocks\u201d section in the sidebar.")):a.createElement("div",null,A("Your letter contains")+" "+U+" "+x("block","blocks",U)+" "+A("that can be saved for future use.")),!(I||G)&&a.createElement(r.lV,{form:B,name:"add_all_blocks_form",layout:"vertical",onFinish:K,style:{paddingTop:24}},a.createElement(r.lV.Item,{label:A("Tags"),name:"tags",labelCol:{span:24},wrapperCol:{span:24},style:{display:"block",marginBottom:0}},a.createElement(r.Select,{size:"large",mode:"tags",placeholder:A("Add some tags"),style:{width:"100%"},value:R,onChange:O,disabled:D.isLoading,options:M}))),(G||I)&&a.createElement("div",{className:"modal-spinner"},a.createElement(r.tK,{size:"large"})))}},90308:(e,t,n)=>{"use strict";n.d(t,{G:()=>l,M:()=>a});const a="https://app.emailmaker.ru/api/wp-json/ai-generator/v1/identificate_blocks",l=["Menu","Header","Content","Banners","Lists","Buttons","Promocodes","Feature","Call to Action","E-Commerce","Articles","Polls","Applications","Separators","Contacts","Footer","Other"]},5134:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var a=n(1936),l=n(69962),i=n(84075),o=n(45988),r=n(487),s=n(6403),c=n(57549),d=n(96040),m=n(40867),u=n(41244),p=n(47706),g=n(68876),h=n(34706),f=n(93506);const b=({isModalVisible:e,htmlContent:t,projectId:n,setIsShowAddAllBlocksModal:b,setIsShowAddAllBlocksModalForNewEmail:v})=>{const{__:E}=(0,p.s9)(),y=(0,l.wA)(),[_]=c.lV.useForm(),[C,k]=(0,a.useState)([]),[A,w]=(0,o.pP)(),{data:x}=(0,o.h1)(),S=(0,s.hN)(),L=(0,g.rD)(),[T,I]=(0,a.useState)([]),{data:N,refetch:B}=(0,i.KC)(),{refetch:R}=(0,o.SB)({projectId:n,pageSize:1e3,page:1,tags:null,name:null,type:null,notEmbed:!0,order:"asc",orderby:"title"}),[O,M]=(0,o.Gr)(),[P,V]=(0,r.OD)();(0,a.useEffect)(()=>{I((0,u._q)(N,f.YY).map(e=>({value:e.name})))},[N]),(0,a.useEffect)(()=>{if(x){const e=x.schema.properties.acf.properties.type.items.enum;let t=[];for(let n in e)t.push({label:E(f.jg[e[n]]),value:e[n]});k(t)}},[x,E]);const F=()=>{y((0,m.Oo)())},j=()=>{b(!0),v(!1),F()},W=async()=>{await(0,h.x0)({form:_,projectData:N,projectId:n,addBlock:A,editProject:P,addTag:O,notification:S,__:E,handleCloseModal:F,htmlContent:t,refetch:B,refetchBlocks:R,reloadBlockScreens:h.MA})};return a.createElement(c.aF,{title:a.createElement("div",{className:"ant-modal-title"},E("Save block")),open:e,onOk:()=>j(),onCancel:F,footer:a.createElement("div",{style:{display:"flex",justifyContent:"space-between",padding:"8px 0"}},a.createElement(c.$n,{key:"create-all-blocks",size:"large",onClick:j},E("Save all blocks")),a.createElement(c.$n,{key:"submit",size:"large",type:"primary",loading:w.isLoading,onClick:W},a.createElement(d.Ay,{icon:"CreateBlock",className:"modal-new-block__icon-create"}),E("Save block")))},a.createElement(c.lV,{form:_,layout:"vertical",name:"add_new_block_form",onFinish:W,initialValues:{title:"",type:"",tags:[]},autoComplete:"off"},a.createElement(c.fI,{gutter:16},a.createElement(c.fv,{span:12},a.createElement(c.lV.Item,{label:E("Block name"),name:"title",rules:[{required:!0,message:E("Please input block name")}],style:{marginBottom:15}},a.createElement(c.pd,{disabled:w.isLoading||M.isLoading||V.isLoading,size:"large",placeholder:E("Enter block name"),spellCheck:"false"}))),a.createElement(c.fv,{span:12},a.createElement(c.lV.Item,{label:E("Type"),name:"type",rules:[{required:!0,message:E("Please choose block type")}],style:{marginBottom:15}},a.createElement(c.Select,{disabled:w.isLoading||M.isLoading||V.isLoading,size:"large",placeholder:E("Choose block type"),options:C})))),L.tagsEnabled&&a.createElement(c.lV.Item,{label:E("Tags"),name:"tags"},a.createElement(c.Select,{size:"large",mode:"tags",placeholder:E("Add some tags"),tooltip:{title:E("Tags help you find the block in the list."),icon:a.createElement(d.Ay,{icon:"InfoCircleOutlined"})},disabled:w.isLoading||M.isLoading||V.isLoading,options:T}))))}},34706:(e,t,n)=>{"use strict";n.d(t,{Wv:()=>m,Lm:()=>a,cr:()=>c,x0:()=>i,MA:()=>l,q:()=>d});const a=async({blockTags:e,projectTagsArray:t,addTag:n,parent:a,notification:l})=>{if(!e||0===e.length)return[];const i=e.map(e=>{const i=t.find(t=>t.name===e);return i?Promise.resolve(i.id):n({name:e,parent:a}).then(({error:t,data:n})=>400===(null===t||void 0===t?void 0:t.status)?t.data.data.term_id:n?n.id:t?(l.fromError("TAG_CREATING_ERROR",e,t),null):void 0)});return(await Promise.all(i)).filter(e=>null!==e&&void 0!==e)},l=()=>{document.querySelector(".blocks-search__blocks-wrapper")&&(document.querySelector(".blocks-search__blocks-wrapper").style.removeProperty("transition"),document.querySelector(".blocks-search__blocks-wrapper").style.opacity=0,document.querySelectorAll(".blocks-search__result-body").forEach(e=>e.style.removeProperty("height")),setTimeout(()=>{document.querySelectorAll(".blocks-search__result-body").forEach(e=>{e.style.height=207*e.offsetHeight/660+"px"}),document.querySelector(".blocks-search__blocks-wrapper").style.transition="opacity 0.2s",document.querySelectorAll(".blocks-search__blocks-wrapper").forEach(e=>e.style.opacity=1)},1500))},i=async e=>{const{block:t,form:n,projectData:a,projectId:l,addBlock:i,editProject:o,addTag:r,notification:s,__:u,handleCloseModal:p,htmlContent:g,refetch:h,refetchBlocks:f,reloadBlockScreens:b}=e;try{const{valid:e,values:v,blockTags:E}=await d({form:n,notification:s,__:u});if(!e)return;const{tagIds:y,projectTagsArray:_}=await c({blockTags:E,projectData:a,projectId:l,addTag:r,editProject:o,notification:s,__:u});await m({block:t,form:n,projectId:l,htmlContent:g,values:v,tagIds:y,addBlock:i,editProject:o,notification:s,refetch:h,refetchBlocks:f,reloadBlockScreens:b,projectTagsArray:_,__:u,handleCloseModal:p})}catch(v){}};var o=n(41244),r=n(93506),s=n(6403);const c=async({blockTags:e,projectData:t,projectId:n,addTag:l,editProject:i,notification:c,__:d})=>{const m=`project_${n}`,u=(0,o._q)(t,r.YY),p=u.find(e=>e.name===m),g=u||[];let h;if(p)h=p.id;else{const e=await l({name:m});if(e.error)throw c.fromError("FOLDER_CREATING_ERROR",m,e.error),new Error("\u041e\u0448\u0438\u0431\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0442\u0435\u0433\u0430");{const t=await i({projectId:n,blocktags:e.data.id});if(t.error)throw c.fromError("BLOCK_CLONING_ERROR",(0,s.x_)(e.data),t.error),new Error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441 \u043d\u043e\u0432\u044b\u043c \u0442\u0435\u0433\u043e\u043c");h=t.data.blocktags&&t.data.blocktags[0]}}return{tagIds:await a({blockTags:e,projectTagsArray:g,addTag:l,parent:h,notification:c}),projectTagsArray:g}},d=async({form:e,notification:t,__:n})=>{let a=!0;const l=await e.validateFields(),i=l.tags;return(null===i||void 0===i?void 0:i.length)>10&&(t.error({id:"BLOCK_TOO_MANY_TAGS_ERROR",data:(0,s.x_)(l),message:n("Maximum 10 tags available.")}),a=!1),{valid:a,values:l,blockTags:i}},m=async({block:e,form:t,projectId:n,htmlContent:a,values:l,tagIds:i,addBlock:o,editProject:r,notification:c,refetch:d,refetchBlocks:m,reloadBlockScreens:u,projectTagsArray:p,__:g,handleCloseModal:h})=>{const f=e?{title:e.blockTitle,project:e.projectId,html:e.htmlContent,type:e.blockType||"Other"}:{title:l.title,project:n,html:a||"",type:l.type||"Other"},b=await o({...f,blocktags:i.join(",")});if(b.error)throw c.error({id:"BLOCK_CREATING_ERROR",data:{title:f.title,html:f.html},innerException:b.error,message:b.error.data.code,description:b.error.data.message}),t.resetFields(),h(),new Error("\u041e\u0448\u0438\u0431\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u043b\u043e\u043a\u0430");e||(t.resetFields(),h());const v=p.map(e=>e.id),E=new Set([...v,...i]);!e&&d&&d();const y=await r({projectId:n,blocktags:[...E].join(",")});return y.error?c.error({code:y.error.data.code,message:y.error.data.message}):!e&&m&&(c.success({id:"BLOCK_CREATING_SUCCESS",data:(0,s.x_)(b.data),message:g("The block \u201c")+b.data.title+g("\u201d was successfully created.")}),m()),!e&&u&&u(),b.data}},73888:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var a=n(1936),l=n(57549),i=n(69962),o=n(47706),r=n(487),s=n(87796),c=n(78443),d=n(6403),m=n(93506),u=n(84075);const p=({taxonomy:e})=>{var t;const{__:n,_x:p}=(0,o.s9)(),g=(0,i.wA)(),[h]=l.lV.useForm(),f=(0,a.useRef)(null),b=(0,i.d4)(c.cL)===m.lx.ADD_NEW_GROUP_MODAL,v=(0,d.hN)();let E;({data:E}=(0,u.KC)());const y=`project_${E.id}`,_=null===(t=E[m.bV.GROUP])||void 0===t?void 0:t[0],[C]=(0,r.OD)(),[k]=(0,s.y$)(),A=(0,a.useCallback)(()=>{h.resetFields(),setTimeout(()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.focus({cursor:"start"})},0)},[h]);(0,a.useEffect)(()=>{b&&A()},[b,A]);const w=()=>g((0,c.Oo)()),[x,S]=(0,s.JI)(),[L,T]=(0,a.useState)(!1),[I,N]=(0,a.useState)(_),B=()=>{const t=(t,a)=>C({projectId:E.id,[e]:a||I}).then(async a=>{if("error"in a)v.error(a);else if("data"in a){const l=a.data,i=await x({name:t,parent:l[e][0]});if(!("error"in i))return v.success({message:n("The group \u201c")+i.data.name+p("\u201d was successfully created.",e)}),N(l[e][0]),k({parent:l[e][0]}).then(({data:e,error:t})=>{e?w():t&&v.error({error:t})});v.error({res_1:i})}});h.validateFields().then(({name:a})=>(T(!0),I?x({name:a,parent:I}).then(t=>{"error"in t?v.error(t):(v.success({message:n("The group \u201c")+t.data.name+p("\u201d was successfully created.",e)}),w(),k({parent:I}))}):x({name:y}).then(e=>{if(!("error"in e))return t(a,e.data.id);{const{data:n}=e.error;if("term_exists"===n.code&&n.data.term_id)return t(a,n.data.term_id);v.error(e)}}).catch(e=>{}).finally(()=>T(!1)))).catch(e=>{}).finally(()=>T(!1))};return a.createElement(l.aF,{title:n("Add a new group"),open:b,onOk:B,onCancel:w,className:"new-group-modal",footer:[a.createElement(l.$n,{key:"submit",type:"primary",size:"large",loading:S.isLoading||L,onClick:B},n("Create group"))]},a.createElement(l.lV,{form:h,layout:"vertical",name:"add_new_group_form",onFinish:B,initialValues:{remember:!1,name:""},autoComplete:"off",style:{paddingTop:10}},a.createElement(l.lV.Item,{name:"name",rules:[{required:!0,message:n("Please enter the group name")}]},a.createElement(l.pd,{disabled:S.isLoading,size:"large",placeholder:n("Enter the group name"),ref:f,style:{marginBottom:5}}))))}},52248:(e,t,n)=>{"use strict";n.d(t,{A:()=>N});var a=n(1936),l=n(69962),i=n(84075),o=n(88260),r=n(41387),s=n(47706),c=n(98173),d=n(78443),m=n(51432),u=n(57701),p=n(93506),g=n(62135),h=n(24671),f=n(39601),b=n(93953),v=n(16400),E=n(22884),y=n(95380),_=n(95340),C=n(11494),k=n(90408),A=n(77596),w=n(85660),x=n(92080),S=n(22422),L=n(47085),T=n(46234),I=n(33653);const N=()=>{var e,t,n,N,B,R,O,M,P,V,F,j,W,D,H;const{__:z,_n:U}=(0,s.s9)(),q=(0,l.wA)(),Z=(0,i.Zp)(),$=(0,i.zy)(),[G,K]=(0,o.ok)(),X=(0,l.d4)(c.C1),Y=$.pathname.startsWith("/billing"),[J,Q]=(0,a.useState)({kind:"idle"}),[ee,te]=(0,a.useState)(b.h2.EARLY),[ne,ae]=(0,a.useState)(null),[le,ie]=(0,a.useState)(null),[oe,re]=(0,a.useState)(null),[se,ce]=(0,a.useState)(null),de=(0,a.useRef)(null),[me]=(0,m.on)(),{isSuccess:ue,data:pe}=(0,m.W5)(void 0),ge=pe,{data:he}=(0,u.J)(void 0,{skip:!(null!==X&&void 0!==X&&X.id)||!Y}),{data:fe}=(0,u.Xi)(void 0,{skip:!(null!==X&&void 0!==X&&X.id)||!Y}),{promoState:be}=(0,_.m)(),ve=ee===b.h2.MONTHLY&&be.is_for_month||ee===b.h2.EARLY&&be.is_for_year,{initiatePayment:Ee,startPlanCardPayment:ye}=(0,E.U)({currentUser:X,payPeriod:ee,promoData:be,onPaymentStart:e=>{q((0,d.uK)(e))},onPaymentSuccess:()=>me(void 0)}),{pricingCards:_e}=(0,y.y)({period:ee,gateway:"cloudpayment",subscriptionsList:ge||[]}),{isLoading:Ce,enableRecurring:ke}=(0,C.C)({subscriptionId:null!=(null===X||void 0===X?void 0:X.subscription_id)?String(X.subscription_id):null,userId:null!=(null===X||void 0===X?void 0:X.id)?String(X.id):"",recurringPayments:!(null===X||void 0===X||!X.recurring_payments)}),{subscription_end:Ae,enterprise_users_limit:we,enterprise_price:xe,enterprise_12_price:Se}=X||{};(0,a.useEffect)(()=>{var e,t;const n=null===X||void 0===X||null===(e=X.subscription)||void 0===e||null===(t=e.post_title)||void 0===t?void 0:t.trim();n&&n.split(/\s+/).length>1?te(b.h2.EARLY):n&&te(b.h2.MONTHLY)},[null===X||void 0===X||null===(e=X.subscription)||void 0===e?void 0:e.post_title]),(0,a.useEffect)(()=>{var e,t;if(!ue||!ge||null===X||void 0===X||!X.subscription)return;const n=null===(e=X.subscription.ID)||void 0===e?void 0:e.toString();ae(null!==(t=ge.find(e=>{var t;return(null===(t=e.id)||void 0===t?void 0:t.toString())===n}))&&void 0!==t?t:null)},[ue,ge,null===X||void 0===X?void 0:X.subscription]);const Le=null!==(t=null===ne||void 0===ne||null===(n=ne.title)||void 0===n?void 0:n.split(" ")[0])&&void 0!==t?t:"",Te=(0,a.useMemo)(()=>{var e;if(null===X||void 0===X||!X.id)return!1;const t=Boolean(X.trial_enabled),n=Boolean(X.is_paying),a=null!==(e=X.counters)&&void 0!==e?e:{},l=(0,S.o)(a.payments_counter),i=Number(X.subscription_amount),o=Number.isFinite(i)&&i>0||"number"===typeof l&&l>0,r=n||o,s=(0,L.Y1)(t,Ae),c=Boolean(Le)&&"Free"!==Le&&"Community"!==Le;return t&&!(t&&(r||!s&&c))},[Le,X,Ae]),Ie=(0,a.useMemo)(()=>{var e;const t=(null===ne||void 0===ne||null===(e=ne.title)||void 0===e?void 0:e.split(" ")[0])||Le||z("Plan");return Te?z("Trial"):t},[z,ne,Le,Te]),Ne=(0,a.useMemo)(()=>(0,k.h)({currentBilling:ne,pricingCards:_e,enterprise_users_limit:we,enterprise_price:xe,enterprise_12_price:Se}),[ne,_e,we,xe,Se]),Be=(0,a.useCallback)(()=>{document.body.classList.remove("editor"),Z("/billing"),q((0,d.qf)(p.lx.SWITCH_TO_PLAN_MODAL))},[q,Z]),Re=(0,a.useCallback)(()=>{if(!le)return;const{subtitle:e,units:t,priceRub:n}=le,a=`${e} ${t} ${z("units")} \u2014 ${(0,w.ku)(n)}`;ie(null),re(a)},[z,le]),Oe=(0,a.useCallback)(()=>{const e=_e.find(e=>e.title.includes("Pro"));if(!e)return void r.Ay.info(z("The Pro plan is not available."));const t=e.title.split(" ")[0],n=parseFloat(e.price)||0,a=(0,A.L)(e,{enterpriseUsersLimit:null!==we&&void 0!==we?we:null,enterprisePrice:null!==xe&&void 0!==xe?xe:null,enterprise12Price:null!==Se&&void 0!==Se?Se:null},U);Q({kind:"idle"}),ce({title:e.title,currentItemTitle:t,price:n,isEnterpriseActivePrice:!1,featureLines:a})},[z,U,Se,xe,we,_e]),Me=(0,a.useCallback)(()=>{if("banner"!==J.kind||"plan_expiring"!==J.id){if(!Ne)return Z("/billing"),void r.Ay.info(z("Please complete payment on the Billing page."));Q({kind:"idle"}),Ee(Ne.title,Ne.currentItemTitle,Ne.price,Ne.isEnterpriseActivePrice,Le,ve,Be)}else Oe()},[Ne,Ee,Le,ve,Oe,Be,J,Z,z]),Pe=(0,a.useCallback)(()=>{ce(null)},[]),Ve=(0,a.useCallback)(()=>{if(!se)return;const e=se;ce(null);ye(e.title,e.currentItemTitle,e.price,e.isEnterpriseActivePrice,"Free",ve)||r.Ay.warning(z("Card payment is not available for this plan change. Please contact support."))},[z,ve,se,ye]),Fe=(0,a.useCallback)(()=>{se&&(re(se.title),ce(null))},[se]),je=(0,a.useCallback)(()=>{Q(e=>{if(de.current&&"idle"!==e.kind){const e=de.current;de.current=null;const t="plan_activated"===e.id?f.l.bannerPlanActivated:f.l.bannerPackageActivated;return(0,f.Yc)(t),{kind:"success",id:e.id,packageAmount:e.packageAmount}}return{kind:"idle"}})},[]),We=(0,a.useCallback)(e=>{const t="plan_activated"===e.id?f.l.bannerPlanActivated:f.l.bannerPackageActivated;(0,f.X$)(t)||Q(n=>"idle"===n.kind?((0,f.Yc)(t),{kind:"success",id:e.id,packageAmount:e.packageAmount}):(de.current=e,n))},[]);(0,a.useEffect)(()=>{const e=()=>We({id:"plan_activated"}),t=e=>{var t;We({id:"package_activated",packageAmount:null===(t=e.detail)||void 0===t?void 0:t.amount})};return window.addEventListener("em-billing-plan-payment-success",e),window.addEventListener("em-billing-extra-package-success",t),()=>{window.removeEventListener("em-billing-plan-payment-success",e),window.removeEventListener("em-billing-extra-package-success",t)}},[We]),(0,a.useEffect)(()=>{if(null===X||void 0===X||!X.id)return;let e=!1;try{e="1"===sessionStorage.getItem(f.rn)}catch{}const t="1"===G.get("billing_plan_success"),n=G.get("session_id");if(!e||!t&&!n)return;try{sessionStorage.removeItem(f.rn)}catch{}try{window.dispatchEvent(new CustomEvent("em-billing-plan-payment-success"))}catch{}me(void 0);const a=new URLSearchParams(G);a.delete("billing_plan_success"),a.delete("session_id"),a.toString()!==G.toString()&&K(a,{replace:!0})},[null===X||void 0===X?void 0:X.id,G,K,me]),(0,a.useEffect)(()=>{(0,f.lu)(null===X||void 0===X?void 0:X.id,null!==Ae&&void 0!==Ae?Ae:null,null!=(null===X||void 0===X?void 0:X.subscription_id)?String(X.subscription_id):null)},[null===X||void 0===X?void 0:X.id,Ae,null===X||void 0===X?void 0:X.subscription_id]),(0,a.useEffect)(()=>{var e,t,n,a;if(null===X||void 0===X||!X.id||"idle"!==J.kind)return;const l=(0,T.nz)(null===he||void 0===he?void 0:he.limits,null!==fe&&void 0!==fe?fe:void 0);if(l){const e=function(e){switch(e){case"ai":return f.l.limitUpgradeAi;case"email_generate":return f.l.limitUpgradeEmail;case"optimization":return f.l.limitUpgradeOptimization;case"image_generate":return f.l.limitUpgradeImageGenerate;case"preview":return f.l.limitUpgradePreview;case"link_check":return f.l.limitUpgradeLinkCheck;case"image_check":return f.l.limitUpgradeImageCheck;case"spam_check":return f.l.limitUpgradeSpamCheck;default:return e}}(l.kind);return void((0,f.X$)(e)||((0,f.Yc)(e),Q({kind:"limit",presetId:l.presetId,previousLimit:l.previousLimit,nextLimit:l.nextLimit})))}const i=Le&&"Free"!==Le&&"Community"!==Le,o=(0,x.WU)(null!==Ae&&void 0!==Ae?Ae:null),r=X.recurring_payments,s=Te||i&&!r,c=(0,f.X$)(f.l.bannerPlanExpiring);if(s&&Ae&&o>0&&o<=f.jO&&!c)return(0,f.Yc)(f.l.bannerPlanExpiring),void Q({kind:"banner",id:"plan_expiring",live:{plan:{planName:Ie,subscriptionEndDisplay:String(Ae),daysRemaining:o}}});const d=null===he||void 0===he||null===(e=he.limits)||void 0===e?void 0:e.ai,m=null===fe||void 0===fe||null===(t=fe.flags)||void 0===t||null===(n=t.ai)||void 0===n?void 0:n.limit_warning,u=null!==(a=null===d||void 0===d?void 0:d.percent)&&void 0!==a?a:0;d&&!d.is_unlimited&&(m||u>=f.w5)&&!(0,f.X$)(f.l.bannerAiLow)&&((0,f.Yc)(f.l.bannerAiLow),Q({kind:"banner",id:"ai_low",live:{ai:{current:d.used,total:Math.max(d.total_limit,1)}}}))},[null===X||void 0===X?void 0:X.id,J.kind,he,fe,Ae,Le,ne,null===X||void 0===X?void 0:X.recurring_payments,Te,Ie,z]);const De=(0,a.useMemo)(()=>{var e;return{planName:(null===ne||void 0===ne||null===(e=ne.title)||void 0===e?void 0:e.split(" ")[0])||Le||z("Plan"),subscriptionEndDisplay:Ae?String(Ae):"\u2014",daysRemaining:(0,x.WU)(null!==Ae&&void 0!==Ae?Ae:null)}},[ne,Le,Ae,z]);if(null===X||void 0===X||!X.id)return null;const He="limit"===J.kind?(0,g.Si)(J.presetId):null,ze="banner"===J.kind||"success"===J.kind?J.id:null,Ue=ze?(0,g.gM)(ze):null,qe="banner"===J.kind?J.live:"success"===J.kind&&"plan_activated"===J.id?{plan:De}:"success"===J.kind&&"package_activated"===J.id?{packageAmount:null!==(N=J.packageAmount)&&void 0!==N?N:0}:{},Ze="banner"===J.kind||"success"===J.kind,$e=ze,Ge="plan_expiring"===$e,Ke=Ge?Te:Boolean(null===Ue||void 0===Ue?void 0:Ue.showPay),Xe=Ge?!Te&&!X.recurring_payments:Boolean(null===Ue||void 0===Ue?void 0:Ue.showAutopay);return a.createElement(a.Fragment,null,He&&"limit"===J.kind?a.createElement(g.Xl,{open:!0,onClose:je,title:z(He.titleKey),subtitle:z(He.subtitleKey),usageResource:He.usageResource,previousDisplay:(0,g.hO)(J.previousLimit),nextDisplay:(0,g.hO)(J.nextLimit),onChangePlan:()=>{je(),Be()},secondaryAction:He.showSecondaryBuy?{label:(0,I.Q)(He.usageResource,z),onClick:()=>{je();const e=(0,v.mr)(He.usageResource)[0];e&&ie({type:He.usageResource,subtitle:(0,I.a)(He.usageResource,z),units:e.units,priceRub:e.priceRub})}}:void 0}):null,Ze&&$e&&Ue?a.createElement(g.rG,{open:!0,onClose:je,title:z(Ue.titleKey),subtitle:z(Ue.subtitleKey),bannerTone:Ue.bannerTone,bannerVariant:null!==(B=Ue.bannerVariant)&&void 0!==B?B:"default",bannerContent:(0,h.h)($e,{__:z,_n:U},qe),showAutopayButton:Xe,onEnableAutopay:()=>{ke()},autopayLoading:Ce,payAction:Ke?{label:z("Pay"),onClick:()=>{Me()}}:void 0}):null,a.createElement(g.pw,{open:!!le,onClose:()=>ie(null),limitType:null!==(R=null===le||void 0===le?void 0:le.type)&&void 0!==R?R:null,subtitle:null!==(O=null===le||void 0===le?void 0:le.subtitle)&&void 0!==O?O:"",units:null!==(M=null===le||void 0===le?void 0:le.units)&&void 0!==M?M:0,priceRub:null!==(P=null===le||void 0===le?void 0:le.priceRub)&&void 0!==P?P:0,userEmail:String(null!==(V=X.email)&&void 0!==V?V:""),onInvoiceForLegal:Re}),se?a.createElement(g.QO,{open:!0,onClose:Pe,planShortName:se.currentItemTitle,featureLines:se.featureLines,canPayWithCard:!0,onPayByCard:Ve,onInvoiceForLegal:Fe}):null,oe?a.createElement(g.OY,{open:!0,onClose:()=>re(null),requestTariff:oe,userEmail:String(null!==(F=X.email)&&void 0!==F?F:""),userName:String(null!==(j=X.name)&&void 0!==j?j:""),currentPlane:null!==(W=null===ne||void 0===ne?void 0:ne.title)&&void 0!==W?W:String(null!==(D=null===(H=X.subscription)||void 0===H?void 0:H.post_title)&&void 0!==D?D:"")}):null)}},99705:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var a=n(1936),l=n(57549),i=n(93506);const o=({users:e,isEditor:t,isPlugin:n,token:o})=>{const[r,s]=(0,a.useState)(!1),c=window.localStorage.getItem(i.V0.em_color_scheme),d=e=>{const t=(e=>{const{first_name:t,last_name:n,email:a}=e.user.name;return t&&n?`${t} ${n}`:t||a})(e);return a.createElement("span",null,t)};return a.createElement(a.Fragment,null,e.length>0&&t&&a.createElement("div",{className:"user-list "+(r?"open":""),style:n?{left:"60px",bottom:"10px"}:{},onMouseOver:()=>s(!0),onMouseOut:()=>s(!1)},e.map(e=>a.createElement("div",{key:e.user.color,className:"user",style:{"--user-color":e.user.color,"--border-color":null===o||void 0===o?void 0:o.colorBgContainer,"--text-color":"dark"===c?null===o||void 0===o?void 0:o.colorIconHover:null===o||void 0===o?void 0:o.colorWhite}},a.createElement(l.m_,{title:d(e),placement:"topLeft",trigger:"hover",color:null===o||void 0===o?void 0:o.colorBgSpotlight},a.createElement("div",null,(e=>{const{first_name:t,last_name:n,email:a}=e.user.name;if(t)return`${t.split("")[0]}${n?`${n.split("")[0]}`:""}`;return(null===a||void 0===a?void 0:a.split("")[0].toUpperCase())||" "})(e)))))))}},2896:(e,t,n)=>{"use strict";n.d(t,{LA:()=>r,LJ:()=>s,Pp:()=>i,Q9:()=>o,ZW:()=>a,k0:()=>c,pX:()=>l});const a="wss://yjs.emailmaker.ru",l=500,i=5e3,o=2e4,r="3769995",s="Not available for collaborative editing",c="Problem with internet connection"},19141:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var a=n(1936),l=n(57549),i=n(69962),o=n(98173),r=n(52898),s=n(93506),c=n(86457),d=n(68876),m=n(19684),u=n(72899),p=n(3875),g=n(92539);const h=(0,l.Aj)(),f=(0,u.TJ)(l.tN,{token:{colorDarken1:"rgba(0, 0, 0, 0.08)",colorFillSecondaryDarken:"rgba(0, 0, 0, 0.1)",formControlHeight:34,borderWidth:1,borderColorHover:"#C5C5C5",formItemMarginBottomMD:20,formItemMarginBottomXS:8,colorSecondaryH:265.03,colorSecondaryS:"63.92%",colorSecondaryL:"50%",colorSecondaryBgH:273,colorSecondaryBgS:"100%",colorSecondaryBgL:"93%",appZoom:1}}),b=(0,u.TJ)(l.tS,{token:{colorDarken1:"rgba(0, 0, 0, 0.9)",colorFillSecondaryDarken:"rgba(255, 255, 255, 0.16)",formControlHeight:34,borderWidth:1,borderColorHover:"rgba(255, 255, 255, 0.3)",formItemMarginBottomMD:20,formItemMarginBottomXS:8,appZoom:1}});const v=function({children:e}){const t=(0,i.d4)(r.Up),n=(0,i.d4)(o.C1),v=window.localStorage.getItem(s.V0.em_color_scheme),E=matchMedia(s.F3).matches?s.nd:s.T,[y,_]=(0,a.useState)(v||E),C=(0,d.rD)(),k=(0,i.wA)(),A=(0,c.c8)();(0,a.useEffect)(()=>{const e=s.EW.isPlugin?null===n||void 0===n?void 0:n.theme:v||E;_(e),(0,c.A5)(e),k((0,r.eX)(e===s.nd?`vs-${e}`:s.T)),A()},[v,t,E,null===n||void 0===n?void 0:n.theme,C.pathEnabled,k,A]);const w=(0,a.useCallback)(e=>{e&&e!==s.IJ?((0,c.Hk)(e),localStorage.setItem(s.V0.em_color_scheme,e)):localStorage.removeItem(s.V0.em_color_scheme)},[]);(0,a.useEffect)(()=>{const e=null===n||void 0===n?void 0:n.theme,t=localStorage.getItem(s.V0.em_color_scheme);e&&e!==t&&w(e)},[n,w]);const x=(0,a.useCallback)(()=>{const e=localStorage.getItem(s.V0.em_color_scheme);w(e)},[w]);(0,a.useEffect)(()=>{x()},[x]);const S=(0,i.d4)(m.RP),[L,T]=(0,a.useState)("light"===y?f:b),[I]=(0,a.useState)(1);(0,a.useEffect)(()=>{const e="light"===y?f:b,t=S[y],n=t?(0,u.TJ)(e,t):e;T({...n,token:{...n.token,appZoom:I}})},[T,y,S,I]);const N=(0,p.LG)(),B=(0,a.useCallback)(()=>N,[N]);return a.createElement(l.NP,{theme:L,getPopupContainer:B},a.createElement(l.N7,{transformers:[h]},a.createElement(l.qw,null,a.createElement(g.H,null,e))))}},43284:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});let a=null,l=null;const i=()=>{if(a)return Promise.resolve(a);if(l)return l;n.p.replace(/\/$/,"");return l=n.e(2642).then(n.t.bind(n,42642,19)).then(({default:e})=>(a=e,a)).catch(e=>{throw e}),l}},65017:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var a=n(1936),l=n(57549),i=n(69962),o=n(47706),r=n(93506),s=n(98173),c=n(19684),d=n(15582),m=n(96040),u=n(6403),p=n(64886),g=n(89591),h=n(45988),f=n(7714),b=n(41244),v=n(7314),E=n(6056),y=n.n(E),_=n(68876),C=n(91480);const k=({comments:e,subjectId:t,isLoggedIn:n,projectTitle:E="",emailElementType:k,email:A})=>{const{__:w,_n:x}=(0,o.s9)(),S=(0,f.XW)(),L=(0,u.hN)(),{token:T}=(0,l.rd)(),I=(0,_.rD)(),N=(0,C.u)(),B=(0,a.useRef)(null),[R,O]=(0,a.useState)(""),[M,P]=(0,a.useState)("ADD"),[V,F]=(0,a.useState)(!1),[j,W]=(0,a.useState)(null),[D,H]=(0,a.useState)(null),[z,U]=(0,a.useState)(""),[q,Z]=(0,a.useState)(""),[$,G]=(0,a.useState)(!1),[K,X]=(0,a.useState)(""),[Y,J]=(0,p.z2)(),[Q,ee]=(0,p.HI)(),[te,ne]=(0,p.kk)(),[ae,le]=(0,p.vn)(),[ie]=(0,g.LX)(),[oe]=(0,h.yW)(),re=(0,i.d4)(s.C1),se=(0,i.d4)(c.jY),ce=(0,v.fn)(),de=()=>{const e=r.EW.isPlugin?se:null===A||void 0===A?void 0:A.project,t={...void 0!==(null===A||void 0===A?void 0:A.meta)?{meta:A.meta}:{},title:null===A||void 0===A?void 0:A.title,emailId:null===A||void 0===A?void 0:A.id,project:e,html:null===ce||void 0===ce?void 0:ce.getValue(),excerpt:null===A||void 0===A?void 0:A.date_gmt};"email"===k?ie({emailId:null===A||void 0===A?void 0:A.id,body:t}).catch(e=>{}):oe({blockId:null===A||void 0===A?void 0:A.id,body:t}).catch(e=>{})};function me(e){H(j),U(""),P("REPLY")}const ue=()=>{L.error({maskClosable:!0,centered:!0,title:w("Please log in"),content:w("To leave comments you must be logged into EmailMaker and added to the project ")+`${E}.`,okText:w("Okay. I'll log in.")})};async function pe(){n?(await te({commentId:D,content:q,targetId:K}).unwrap(),P("ADD"),Z(""),H(0),G(!1),F(!1),X(""),S({operation:r.Ru.SANDBOX_DISCUSS_RESET})):ue()}const ge=e=>{P("ADD"),Z(""),H(0),G(!1),F(!1),X(""),S({operation:r.Ru.SANDBOX_DISCUSS_RESET})},he=async()=>{n?((R||z)&&await Y({subjectId:t,author:re.id,parent:"ADD"===M?"0":D,content:R||z,author_name:re.name,author_email:re.email,targetId:K}).then(e=>{e.error?L.error({message:e.error.data.code,description:e.error.data.message}):N({event:"submit",action:"send_discussion_chat_message",entity_type:"block"===k?"block":"email",entity_id:null===A||void 0===A?void 0:A.id,project_id:null===A||void 0===A?void 0:A.project,context:"editor"})}),X(""),P("ADD"),U(""),O(""),H(0),G(!1),F(!1),S({operation:r.Ru.SANDBOX_DISCUSS_RESET})):ue()};function fe(){$?(F(!1),G(!1),S({operation:r.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:K})):(F(!V),S({operation:r.Ru.SANDBOX_DISCUSS_SET_TARGET,value:!V}),V&&G(!1))}(0,d.A)(e=>{const t=e.data.operation;if(t===r.Ru.APPLICATION_DISCUSS_SET_ID&&(X(e.data.settings.value),""!==e.data.settings.value?(G(!0),F(!1)):(G(!1),F(!0))),t===r.Ru.APPLICATION_DISCUSS_SAVE_TARGET&&de(),t===r.Ru.APPLICATION_DISCUSS_GET_COMMENT)if(document.querySelector('.comment-icon-target[target-id="'+e.data.settings.targetId+'"]')){let t=document.querySelector('.comment-icon-target[target-id="'+e.data.settings.targetId+'"]').closest(".ant-comment");document.querySelector(".comment-block")?document.querySelector(".comment-block").scrollTo(0,t.offsetTop):document.querySelector(".em-analytics__email-tab-discuss .ant-tabs-content").scrollTo(0,t.offsetTop),t.classList.add("active"),setTimeout(()=>{t.classList.remove("active")},2e3)}else S({operation:r.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:e.data.settings.targetId}),L.error({message:w("There's no such comment.")});t===r.Ru.APPLICATION_DISCUSS_NO_COMMENT&&L.error({message:w("There's no such element in the email.")})});const be=e=>{S({operation:r.Ru.SANDBOX_DISCUSS_GET_TARGET,value:e})},ve=e=>(null===e||void 0===e||e.sort((e,t)=>e.date>t.date?1:-1),a.createElement(a.Fragment,null,e&&!!e.length&&a.createElement(l.B8,{className:"comment-list",itemLayout:"horizontal",dataSource:e,renderItem:e=>a.createElement(a.Fragment,null,a.createElement("li",{id:e.id},a.createElement(a.Fragment,null,"deleted"===e.status&&e.clildren&&a.createElement(l.Mw,{className:"deletedComment",content:a.createElement(l.Fc,{description:w("Comment was removed."),type:"info"}),children:ve(e.children)}),"deleted"!==e.status&&a.createElement(a.Fragment,null,a.createElement(l.Mw,{author_id:e.author_id,author:e.author_name,avatar:e.author_avatar_urls&&e.author_avatar_urls[48]||"",className:y()(e.target_id&&"targetted-comment-item",(!e.author_avatar_urls||!e.author_avatar_urls[48])&&"comment-item-noavatar"),content:a.createElement(l.ms,{key:"commenMenu",placement:"left",destroyPopupOnHide:!0,onOpenChange:()=>W(e.id),menu:{items:e.author===re.id?_e:Ce},overlayStyle:{minWidth:"auto",paddingRight:6}},a.createElement("div",{onClick:()=>e.target_id&&be(e.target_id),dangerouslySetInnerHTML:{__html:e.content}})),datetime:a.createElement(a.Fragment,null,a.createElement("span",{dangerouslySetInnerHTML:{__html:e.date&&(0,b.Yq)((0,b.Cl)(e.date),x,!0)}}),e.target_id&&a.createElement("span",{className:"comment-icon-target","target-id":e.target_id,onClick:()=>be(e.target_id)},a.createElement(m.Ay,{icon:"AimOutlined",style:{color:T.colorInfo,top:-2,position:"relative"}}))),children:a.createElement(a.Fragment,null,"REPLY"===M&&D===e.id&&ye,"EDIT"===M&&D===e.id&&Ee,ve(e.children))})))))}))),Ee=a.createElement(l.lV,{onFinish:pe,className:"commentForm"},a.createElement(l.lV.Item,{style:{marginBottom:10}},a.createElement(l.fs,{className:"textarea-reply",value:q,onChange:e=>Z(e.target.value),rows:4,placeholder:w("Editing comments"),onKeyDown:e=>"Escape"===e.key&&ge(),onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&pe(),ref:B})),a.createElement(l.lV.Item,{className:"buttons"},a.createElement(l.$x,null,$?a.createElement(l.iS,{title:w("Are you sure?"),okText:w("Yes"),cancelText:w("No"),onConfirm:function(e){G(!1),X(""),S({operation:r.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:K}),F(!0),S({operation:r.Ru.SANDBOX_DISCUSS_SET_TARGET,value:!0})}},a.createElement(l.$n,{loading:le.isLoading,type:V||$&&"EDIT"===M&&""!==K?"primary":"default",className:"button-target "+(V&&!$?"button-target_choose":""),style:$&&"EDIT"===M&&""!==K?{background:T.colorInfo}:{}},a.createElement(m.Ay,{icon:"AimOutlined",className:"icon-target"}))):a.createElement(l.$n,{onClick:fe,loading:le.isLoading,type:V||$&&"EDIT"===M&&""!==K?"primary":"default",className:"button-target "+(V&&!$?"button-target_choose":""),style:$&&"EDIT"===M&&""!==K?{background:T.colorInfo}:{}},a.createElement(m.Ay,{icon:"AimOutlined",className:"icon-target"})),a.createElement(l.$n,{className:"button-reply",type:"primary",loading:ne.isLoading,htmlType:"submit"},w("Save")," ",a.createElement(m.Ay,{icon:"SaveOutlined",size:16,strokeWidth:I.iconStrokeWidth})),a.createElement(l.$n,{onClick:ge,className:"button-reply"},w("Cancel"))))),ye=a.createElement(l.lV,{name:"reply",className:"commentForm",onFinish:he},a.createElement(l.lV.Item,{style:{marginBottom:10}},a.createElement(l.fs,{className:"textarea-reply",value:z,onChange:e=>U(e.target.value),rows:4,placeholder:w("Reply to the comment"),onKeyDown:e=>"Escape"===e.key&&ge(),onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&he(),ref:B})),a.createElement(l.lV.Item,{hidden:!0,name:"targetId"},a.createElement(l.pd,{type:"hidden"})),a.createElement(l.lV.Item,{className:"buttons"},a.createElement(l.$x,null,a.createElement(l.m_,{placement:"top",title:w("Add a note"),styles:{body:{maxWidth:"150px"}}},a.createElement(l.$n,{onClick:fe,type:V||$&&"REPLY"===M&&""!==K?"primary":"default",className:"button-target "+(V&&!$?"button-target_choose":""),style:$&&"REPLY"===M&&""!==K?{background:T.colorInfo}:{}},a.createElement(m.Ay,{icon:"AimOutlined",className:"icon-target"}))),a.createElement(l.$n,{className:"button-reply",type:"primary",loading:"REPLY"===M&&J.isLoading,htmlType:"submit"},w("Reply")," ",a.createElement(m.Ay,{icon:"SendOutlined",size:16,strokeWidth:I.iconStrokeWidth})),a.createElement(l.$n,{onClick:ge,className:"button-reply",ghost:!0,type:"primary"},w("Cancel")))));(0,a.useEffect)(()=>{"REPLY"===M&&B.current.focus({cursor:"start"}),"EDIT"===M&&B.current.focus({cursor:"end"})},[M]);let _e=[];_e.push({key:"Reply to comment",icon:a.createElement(m.Ay,{icon:"RollbackOutlined",style:{fontSize:"16px"}}),label:w("Reply"),onClick:me},{key:"Edit comment",icon:a.createElement(m.Ay,{icon:"EditOutlined",style:{fontSize:"16px"}}),label:w("Edit"),onClick:function(t){var n,a,l;H(j);const i=e.find(e=>{var t;return(null===(t=e.id)||void 0===t?void 0:t.toString())===j}),o=(null===i||void 0===i||null===(n=i.target_id)||void 0===n?void 0:n.toString())||"";G(Boolean(o)),X(o),Z(null===i||void 0===i||null===(a=i.content)||void 0===a||null===(l=a.slice(3,-5))||void 0===l?void 0:l.toString()),P("EDIT")}},{key:"Delete comment",icon:a.createElement(m.Ay,{icon:"DeleteOutlined",size:16}),label:w("Delete"),style:{color:T.colorError},onClick:function(){var t,n;H(j),e.filter(e=>e.parent===j).length?te({commentId:j,status:"deleted"}).unwrap():Q(j),(null===(t=document.querySelector('.discuss-main li[id="'+j+'"] .comment-icon-target'))||void 0===t?void 0:t.getAttribute("target-id"))&&S({operation:r.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:null===(n=document.querySelector('.discuss-main li[id="'+j+'"] .comment-icon-target'))||void 0===n?void 0:n.getAttribute("target-id")}),de(),X("")}});let Ce=[];return Ce.push({key:"Reply to comment",icon:a.createElement(m.Ay,{icon:"RollbackOutlined",style:{fontSize:"16px"}}),label:w("Reply"),onClick:me}),a.createElement("div",{className:"discuss-main"},e.length>0&&a.createElement(l.B8,{className:"comment-list",itemLayout:"horizontal",dataSource:function(e){let t=JSON.parse(JSON.stringify(e));if(!t||!t.length)return[];let n=[],a=new Map;for(let l=0,i=t.length;l<i;++l){let e=t[l],i=a.get(e.id);if(i&&!Array.isArray(i)||(i&&(e.children=i),a.set(e.id,e)),"0"===String(e.parent))n.push(e);else{let t=a.get(e.parent);if(t){(Array.isArray(t)?t:t.children=t.children||[]).push(e)}else a.set(e.parent,[e])}}return n.forEach(e=>{"deleted"!==e.status||e.children||!ee.isUninitialized&&!ee.isSuccess||Q(e.id).unwrap().catch(e=>{})}),n}(e),renderItem:e=>a.createElement("li",{id:e.id},"deleted"===e.comment_status&&a.createElement(l.Mw,{className:"deletedComment",content:a.createElement(l.Fc,{description:w("Comment was removed."),type:"info"}),children:ve(e.children)}),"deleted"!==e.comment_status&&a.createElement(a.Fragment,null,a.createElement(l.Mw,{author_id:e.author_id,author:e.author_name,avatar:e.author_avatar_urls&&e.author_avatar_urls[48]||"",className:y()(e.target_id&&"targetted-comment-item",(!e.author_avatar_urls||!e.author_avatar_urls[48])&&"comment-item-noavatar"),content:a.createElement(l.ms,{key:"commenMenu",placement:"left",destroyPopupOnHide:!0,onOpenChange:()=>W(e.id),menu:{items:e.author===re.id?_e:Ce},overlayStyle:{minWidth:"auto"}},a.createElement("div",{onClick:()=>e.target_id&&be(e.target_id),dangerouslySetInnerHTML:{__html:e.content}})),datetime:a.createElement(a.Fragment,null,a.createElement("span",{dangerouslySetInnerHTML:{__html:e.date&&(0,b.Yq)((0,b.Cl)(e.date),x,!0)}}),e.target_id&&a.createElement("span",{className:"comment-icon-target","target-id":e.target_id,onClick:()=>be(e.target_id)},a.createElement(m.Ay,{icon:"AimOutlined",style:{color:T.colorInfo,top:-2,position:"relative"}}))),children:a.createElement(a.Fragment,null,"REPLY"===M&&D===e.id&&ye,"EDIT"===M&&D===e.id&&Ee,ve(e.children))})))}),a.createElement(l.lV,{onFinish:he,className:"ADD"===M?"addMode":"replyEditMode"},a.createElement(l.lV.Item,{style:{marginBottom:10}},a.createElement(l.fs,{value:R,onChange:e=>O(e.target.value),rows:4,placeholder:w("Leave your comment"),className:"textarea-comment",onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&he()})),a.createElement(l.lV.Item,null,a.createElement(l.$x,{size:8},a.createElement(l.m_,{placement:"top",title:w("Add a note"),styles:{body:{maxWidth:"150px"}}},a.createElement(l.$n,{onClick:fe,type:V||$&&"ADD"===M&&""!==K?"primary":"default",className:"button-target "+(V&&!$?"button-target_choose":""),style:$&&"ADD"===M&&""!==K?{background:T.colorInfo}:{},icon:a.createElement(m.Ay,{icon:"Target",size:16,strokeWidth:I.iconStrokeWidth,className:"icon-target"})})),a.createElement(l.$n,{className:"button-add",type:"primary",loading:"ADD"===M&&J.isLoading,htmlType:"submit"},w("Send")," ",a.createElement(m.Ay,{icon:"SendOutlined",size:16,strokeWidth:I.iconStrokeWidth}))))))}},11421:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var a=n(1936),l=n(69962),i=n(57549),o=n(47706),r=n(96040),s=n(78443),c=n(98173),d=n(52898),m=n(51432),u=n(6403),p=n(41244),g=n(86457),h=n(7714),f=n(68876),b=n(93506);const{Option:v}=i.Select,E="profile",y=({isModalVisible:e})=>{const{__:t}=(0,o.s9)(),n=(0,l.d4)(c.C1),y=(0,l.d4)(c.yf),_=(0,u.hN)(),C=(0,h.XW)(),k=(0,l.wA)(),[A]=i.lV.useForm(),w=(0,f.rD)(),[x,S]=(0,m.b9)(),[L,T]=(0,m.hZ)(),[I,N]=(0,a.useState)([]),[B,R]=(0,a.useState)([]),[O,M]=(0,a.useState)(E),[P,V]=(0,a.useState)({currentPassword:!1,newPassword:!1,confirmPassword:!1}),[F,j]=(0,a.useState)(()=>n.locale),W=(0,a.useRef)(null),D=t("If you turn the switch off, lines of code will not wrap. If you turn the switch on, lines of code will wrap at the viewport.");(0,a.useEffect)(()=>{if(A&&e){M(E),L(void 0,!0);const e=n.code_editor;j(n.locale),A.setFieldsValue({firstName:n.first_name,lastName:n.last_name,email:n.email,theme:n.theme,currentPassword:"",newPassword:"",confirmPassword:"",autosaves:Boolean(n.autosaves),hideMergetags:Boolean(n.hide_mergetags),language:n.locale,newsLetterConsent:Boolean(n.newsletter_consent),codeEditor:{fontSize:e.font_size||10,fontFamily:e.font_family,tabSize:e.tab_size||2,wordWrap:Boolean(e.word_wrap),minimap:Boolean(e.minimap),insertSpaces:Boolean(e.insert_spaces)}})}},[n,A,e,L,j]),(0,a.useEffect)(()=>{if(A&&e){if(T.isSuccess){var t,n,a,l;let e=null===(t=(0,p.EU)(y,["acf","theme"]))||void 0===t||null===(n=t.items)||void 0===n?void 0:n.enum;const i=null===(a=(0,p.EU)(y,["acf","code_editor","font_family"]))||void 0===a||null===(l=a.items)||void 0===l?void 0:l.enum;N((0,p.d_)(e)),R((0,p.d_)(i))}T.isError&&_.error(T)}},[T,A,e,y]);const H=()=>{const e=window.localStorage.getItem(b.V0.em_color_scheme),t=matchMedia(b.F3).matches?b.nd:b.T;C({operation:b.Ru.UPDATE_PREVIEW,theme:e||t}),A.validateFields().then(e=>{const t=e.codeEditor;e.currentPassword&&e.newPassword?x({password:e.newPassword,old_password:e.currentPassword}):x({first_name:e.firstName,last_name:e.lastName,email:e.email,locale:e.language,autosaves:e.autosaves,hide_mergetags:e.hideMergetags,theme:e.theme,newsletter_consent:e.newsLetterConsent,code_editor:t?{font_size:t.fontSize,font_family:t.fontFamily,tab_size:t.tabSize,word_wrap:t.wordWrap,minimap:t.minimap,insert_spaces:t.insertSpaces}:null})})};(0,a.useEffect)(()=>{S.isError&&_.error(S)},[S]),(0,a.useEffect)(()=>{S.isSuccess&&(_.success(t("Your profile was successfully updated.")),k((0,s.Oo)()))},[k,S,t]);const[z,U]=(0,a.useState)("");(0,a.useEffect)(()=>{const t=window.localStorage.getItem(b.V0.em_color_scheme);e&&(A.setFieldsValue({theme:null!==t?t:b.IJ}),U(null!==t?t:b.IJ))},[A,e]);const q=(0,a.useCallback)(e=>{let t;if((0,g.Hk)(e),e===b.IJ){const e=matchMedia(b.F3).matches?b.nd:b.T;localStorage.removeItem(b.V0.em_color_scheme),t=e}else localStorage.setItem(b.V0.em_color_scheme,e),t=e;k((0,d.eX)(t===b.nd?`vs-${t}`:b.T)),(0,g.A5)(t)},[k]),Z=(0,a.useCallback)(()=>{z!==A.getFieldValue("theme")&&q(z),k((0,c.ww)(n.code_editor)),k((0,c.ko)(F)),k((0,s.Oo)())},[n.code_editor,k,A,z,q,F]),$="true"===localStorage.getItem("elama_user");let G=[{label:a.createElement(a.Fragment,null,a.createElement(r.Ay,{icon:"ImageUserIcon",size:18,strokeWidth:w.iconStrokeWidth}),t("Profile")),key:E,className:"em-analytics__profile-user",children:a.createElement(a.Fragment,null,a.createElement(i.fI,{gutter:16},a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:t("First name"),name:"firstName"},a.createElement(i.pd,{placeholder:t("Enter your first name")}))),a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:t("Last name"),name:"lastName"},a.createElement(i.pd,{placeholder:t("Enter your last name")})))),a.createElement(i.fI,{gutter:16},a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:t("Email"),name:"email"},a.createElement(i.pd,{disabled:!0,placeholder:t("Enter your email")}))),a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:t("Theme"),name:"theme"},a.createElement(i.Select,{placeholder:t("Select a theme")},I.map(e=>{let n="";switch(e.value){case"light":n=t("Light");break;case"dark":n=t("Dark");break;default:n=t("System")}return a.createElement(v,{key:e.value,value:e.value},n)}))))),a.createElement(i.fI,{gutter:16},a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:t("Newsletter Subscription"),valuePropName:"checked",name:["newsLetterConsent"]},a.createElement(i.dO,null))),a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:t("Autosave in editor"),valuePropName:"checked",name:["autosaves"]},a.createElement(i.dO,null)))))},{label:a.createElement(a.Fragment,null,a.createElement(r.Ay,{icon:"CodeBrowserIcon",size:18,strokeWidth:w.iconStrokeWidth}),t("Code editor")),key:"editor",className:"account-settings-codeiditor-tab-content em-analytics__profile-code-editor",children:a.createElement(a.Fragment,null,a.createElement(i.fI,{gutter:16},a.createElement(i.fv,{span:8},a.createElement(i.lV.Item,{label:t("Font size"),name:["codeEditor","fontSize"]},a.createElement(i.FQ,{min:6,max:100}))),a.createElement(i.fv,{span:8},a.createElement(i.lV.Item,{label:t("Tab size"),name:["codeEditor","tabSize"]},a.createElement(i.FQ,{min:1,max:10}))),a.createElement(i.fv,{span:8},a.createElement(i.lV.Item,{label:t("Font family"),name:["codeEditor","fontFamily"]},a.createElement(i.Select,{placeholder:t("Select a font family")},B.map(e=>a.createElement(v,{key:e.value,value:e.value},e.label)))))),a.createElement(i.fI,{gutter:16},a.createElement(i.fv,{span:8},a.createElement(i.lV.Item,{label:t("Line wrap"),valuePropName:"checked",name:["codeEditor","wordWrap"],tooltip:{title:D,icon:a.createElement(r.Ay,{icon:"InfoCircleIcon",size:16})}},a.createElement(i.dO,null))),a.createElement(i.fv,{span:8},a.createElement(i.lV.Item,{label:t("Minimap"),valuePropName:"checked",name:["codeEditor","minimap"],tooltip:{title:t("Display the minimap."),icon:a.createElement(r.Ay,{icon:"InfoCircleIcon",size:16})}},a.createElement(i.dO,null))),a.createElement(i.fv,{span:8},a.createElement(i.lV.Item,{label:t("Insert spaces"),valuePropName:"checked",name:["codeEditor","insertSpaces"],tooltip:{title:t("Prefer spaces over tabs."),icon:a.createElement(r.Ay,{icon:"InfoCircleIcon",size:16})}},a.createElement(i.dO,null)))))}];return $||G.push({label:a.createElement(a.Fragment,null,a.createElement(r.Ay,{icon:"ShieldTickIcon",size:18,strokeWidth:w.iconStrokeWidth}),t("Security")),key:"security",className:"account-settings-security-tab-content em-analytics__profile-code-editor",children:a.createElement(a.Fragment,null,a.createElement(i.fI,{gutter:16},a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:t("Current password"),name:"currentPassword"},a.createElement(i._2,{readOnly:!P.currentPassword,onFocus:()=>V(e=>({...e,currentPassword:!0})),ref:W,placeholder:t("Enter your current password")})))),a.createElement(i.fI,{gutter:16},a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:t("New password"),name:"newPassword",extra:t("At least 8 characters, including a combination of uppercase and lowercase letters, numbers, and special characters."),validateTrigger:["onSubmit"],rules:[{required:!1,message:t("Enter your new password")},({getFieldValue:e})=>({validator(n,a){if("security"===O){return e("currentPassword")?a.length>=8&&/[0-9]/.test(a)&&/[a-z]/.test(a)&&/[A-Z]/.test(a)&&/\W+|_/g.test(a)?Promise.resolve():Promise.reject(new Error(t("The password is too simple."))):Promise.reject(new Error("Enter your current password"))}return Promise.resolve()}})]},a.createElement(i._2,{readOnly:!P.newPassword,onFocus:()=>V(e=>({...e,newPassword:!0})),placeholder:t("Enter your new password")}))),a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:t("Confirmation"),name:"confirmPassword",validateTrigger:["onSubmit"],rules:[{required:"security"===O,message:t("Repeat the new password")},({getFieldValue:e})=>({validator:(n,a)=>a&&e("newPassword")!==a?Promise.reject(new Error(t("The two passwords that you entered do not match!"))):Promise.resolve()})]},a.createElement(i._2,{readOnly:!P.confirmPassword,onFocus:()=>V(e=>({...e,confirmPassword:!0})),placeholder:t("Repeat the new password")})))))}),a.createElement(i.aF,{width:572,className:"account-settings",title:a.createElement("div",null,a.createElement(r.Ay,{icon:"User03Icon",size:20,strokeWidth:2})," ",t("Account settings")),open:e,onOk:H,onCancel:Z,footer:[a.createElement(i.$n,{key:"Update",size:"large",className:"em-analytics__profile-save",type:"primary",loading:S.isLoading,onClick:H},t("Update"))]},a.createElement(i.lV,{form:A,layout:"vertical",name:"edit_profile_form",onFinish:H,initialValues:{remember:!1,firstName:"",lastName:"",email:"",theme:"system",currentPassword:"",newPassword:"",confirmPassword:"",autosaves:!1,email_builder_config:"simple",hideMergetags:!0,newsLetterConsent:!1,code_editor:{fontSize:10,fontFamily:"Anonymous Pro",tabSize:2,wordWrap:!0,minimap:!1,insertSpaces:!1}},onValuesChange:e=>{e.theme&&q(e.theme);const t=e.codeEditor;e.language&&k((0,c.ko)(e.language)),e.codeEditor&&k((0,c.ww)({font_size:t.fontSize,font_family:t.fontFamily,tab_size:t.tabSize,word_wrap:t.wordWrap,minimap:t.minimap,insert_spaces:t.insertSpaces}))},autoComplete:"off"},a.createElement(i.tU,{activeKey:O,onChange:e=>M(e),items:G,className:"modal-tabs"})))}},74516:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var a=n(1936),l=n(69962),i=n(57549),o=n(96040),r=n(487),s=n(22817),c=n(78443),d=n(47706),m=n(68876),u=n(29692),p=n(93506),g=n(6403);const h="mainsettings",f="ftpsettings",b="webhooksettings",v=({form:e,activeIntegration:t,setActiveIntegration:n,openFromAnotherPlace:l,inputRefWebHook:r,__:s})=>{const c=e.getFieldValue("webhook"),d=e.getFieldValue("integrations");return a.createElement(a.Fragment,null,null===t&&a.createElement(i.fI,{gutter:[8,8]},a.createElement(i.fv,{span:8},a.createElement(i.Zp,{hoverable:!0,onClick:()=>n("webhook"),style:{textAlign:"center",height:"100%",position:"relative"},bodyStyle:{padding:"12px 8px"}},c&&a.createElement(o.Ay,{icon:"CheckCircleOutlined",style:{color:"#52c41a",fontSize:"16px",position:"absolute",top:6,left:6}}),a.createElement(i.$x,{direction:"vertical",size:4},a.createElement(o.Ay,{icon:"WebHook",style:{fontSize:"32px",margin:0}}),a.createElement(i.EY,{strong:!0},s("Webhook"))))),(0,u.v0)().map(e=>a.createElement(i.fv,{span:8,key:e.id},a.createElement(u.XJ,{integration:e,isConfigured:(0,u.hS)(e.id,null===d||void 0===d?void 0:d[e.id]),onClick:()=>n(e.id),__:s})))),"webhook"===t&&a.createElement(a.Fragment,null,a.createElement(i.$n,{type:"link",icon:a.createElement(o.Ay,{icon:"ArrowLeftOutlined"}),onClick:()=>n(null),style:{padding:0,marginBottom:16}},s("Back to integrations")),a.createElement(i.fI,{gutter:24},a.createElement(i.fv,{span:24},a.createElement(i.lV.Item,{label:s("Webhook URL"),name:"webhook",extra:s("Before exporting the project, make sure to provide the URL where the webhook request will be sent"),rules:[{type:"url",message:s("Please enter the correct URL.")},l&&"webhook"===t&&{required:!0,message:s("Please type the webhook URL.")}]},a.createElement(i.pd,{ref:r,placeholder:s("Type in the project's webhook"),style:{marginBottom:5}}))))),t&&"webhook"!==t&&(()=>{const l=(0,u.v0)().find(e=>e.id===t);return l?a.createElement(a.Fragment,null,a.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16}},a.createElement(i.$n,{type:"link",icon:a.createElement(o.Ay,{icon:"ArrowLeftOutlined"}),onClick:()=>n(null),style:{padding:0}},s("Back to integrations")),a.createElement("div",{style:{display:"flex",alignItems:"center",gap:8}},a.createElement("img",{src:l.icon,alt:"",style:{width:20,height:20}}),a.createElement("span",{style:{fontWeight:500}},l.name))),a.createElement(u.I9,{integration:l,form:e,__:s})):null})())},E=({isModalVisible:e,selectedProject:t=null})=>{var n;const{__:E}=(0,d.s9)(),y=(0,l.wA)(),[_]=i.lV.useForm(),C=(0,a.useRef)(null),k=(0,a.useRef)(null),A=(0,a.useRef)(null),w=(0,l.d4)(s.yN),x=(0,l.d4)(c.gU),S=(0,g.hN)(),{modal:L}=i.qw.useApp(),T=(0,l.d4)(c.cL),[I,N]=(0,a.useState)(h),[B,R]=(0,a.useState)(!1),[O,M]=(0,a.useState)(null),P=t||w,V=[f,h,b].includes(x),[F,j]=(0,r.OD)(),W=(0,m.rD)();(0,a.useEffect)(()=>{if(T===p.lx.EDIT_PROJECT_MODAL){const e={mainsettings:C,ftpsettings:k,webhooksettings:A};setTimeout(()=>{var t;return null===(t=e[I].current)||void 0===t?void 0:t.focus({cursor:"end"})},200)}},[T,I]),(0,a.useEffect)(()=>{V&&N(x)},[x,V,N,y]);const D=(0,l.d4)(c.Tu);(0,a.useEffect)(()=>{T===p.lx.EDIT_PROJECT_MODAL&&D&&(N(b),M(D),y(M(null)))},[T,D,y]);let H=[{label:a.createElement(a.Fragment,null,a.createElement(o.Ay,{icon:"Settings04Icon",size:18,strokeWidth:W.iconStrokeWidth}),E("Main settings")),key:h,className:"em-analytics__mainsettings-project",children:a.createElement(a.Fragment,null,a.createElement(i.fI,{gutter:24},a.createElement(i.fv,{span:24},a.createElement(i.lV.Item,{label:E("Project name"),name:"name",extra:E("This can be\xa0the name of\xa0your company, department, website, project, marketing campaign, or\xa0other activity."),rules:[{required:!0,message:E("Please type the project name.")}]},a.createElement(i.pd,{ref:C,placeholder:E("Type the project name"),style:{marginBottom:5}})))))},{label:a.createElement(a.Fragment,null,a.createElement(o.Ay,{icon:"Server05Icon",size:18,strokeWidth:W.iconStrokeWidth}),E("FTP settings")),key:f,className:"em-analytics__ftpsettings-project",children:a.createElement(a.Fragment,null,a.createElement(i.fI,{gutter:24},a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:E("Host"),name:["ftpSettings","host"]},a.createElement(i.pd,{ref:k,placeholder:E("Type the FTP host"),disabled:B}))),a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:E("Port"),name:["ftpSettings","port"]},a.createElement(i.pd,{placeholder:E("Type the FTP port"),disabled:B})))),a.createElement(i.fI,{gutter:24},a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:E("Directory"),name:["ftpSettings","directory"]},a.createElement(i.pd,{placeholder:E("Type the file directory"),disabled:B}))),a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:E("URL catalog"),name:["ftpSettings","domain"]},a.createElement(i.pd,{placeholder:E("Type the URL catalog"),disabled:B})))),a.createElement(i.fI,{gutter:24},a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:E("Login"),name:["ftpSettings","login"]},a.createElement(i.pd,{placeholder:E("Type the FTP login"),disabled:B}))),a.createElement(i.fv,{span:12},a.createElement(i.lV.Item,{label:E("Password"),name:["ftpSettings","password"]},a.createElement(i._2,{placeholder:E("Type the FTP password"),disabled:B,iconRender:e=>e?a.createElement(o.Ay,{icon:"EyeOutlined"}):a.createElement(o.Ay,{icon:"EyeInvisibleOutlined"})})))),a.createElement(i.fI,{gutter:24},a.createElement(i.fv,{span:24},a.createElement(i.lV.Item,{noStyle:!0},a.createElement(i.Sc,{checked:B,onCheckedChange:R},E("Use default CDN"))))))},{label:a.createElement(a.Fragment,null,a.createElement(o.Ay,{icon:"WebHook",style:{fontSize:"16px",margin:0}}),E("Integrations")),key:b,className:"em-analytics__mainsettings-project",children:a.createElement(v,{form:_,activeIntegration:O,setActiveIntegration:M,openFromAnotherPlace:V,inputRefWebHook:A,__:E})}];(0,a.useEffect)(()=>{if(e&&P){const e=P.ftp_settings,t=P.integrations||{},n={};(0,u.v0)().forEach(e=>{const a=t[e.id]||{};n[e.id]={},e.settingsFields.forEach(t=>{n[e.id][t.name]=a[t.name]||""})}),R(null===e||void 0===e?void 0:e.use_default_cdn),_.setFieldsValue({name:P.title,webhook:P.webhook||"",ftpSettings:{host:(null===e||void 0===e?void 0:e.host)||"",port:(null===e||void 0===e?void 0:e.port)||"",directory:(null===e||void 0===e?void 0:e.directory)||"",domain:(null===e||void 0===e?void 0:e.domain)||"",login:(null===e||void 0===e?void 0:e.login)||"",password:(null===e||void 0===e?void 0:e.password)||""},integrations:n})}},[_,P,e]);const z=()=>{_.validateFields().then(e=>{const t=e.ftpSettings,n=e.integrations||{},a={...(null===P||void 0===P?void 0:P.integrations)||{}};Object.entries(n).forEach(([e,t])=>{t&&(0,u.hS)(e,t)?a[e]=t:a[e]&&!(0,u.hS)(e,t)&&delete a[e]}),P&&F({projectId:P.id,title:e.name,webhook:e.webhook?e.webhook:"",ftp_settings:t?{host:t.host,port:t.port,directory:t.directory,domain:t.domain,login:t.login,password:t.password,use_default_cdn:B}:null,integrations:Object.keys(a).length>0?a:void 0}).then(({data:e,error:t})=>{e?e.title!==P.title?S.success({message:E("The project \u201c")+P.title+E("\u201d was successfully changed to \u201c")+e.title+E("\u201d.")}):S.success({message:E("The project settings was successfully saved.")}):t&&S.error({error:t}),y((0,c.YF)("")),y((0,c.Oo)()),M(null)})})};return a.createElement(i.aF,{title:a.createElement("div",null,a.createElement(o.Ay,{icon:"SettingOutlined",size:20,strokeWidth:2})," ",E("Project settings")),open:e,onOk:z,onCancel:()=>{y((0,c.YF)("")),y((0,c.Oo)()),M(null)},footer:I===b&&null===O?null:[O&&"webhook"!==O&&(0,u.hS)(O,null===P||void 0===P||null===(n=P.integrations)||void 0===n?void 0:n[O])&&a.createElement(i.$n,{key:"disable",size:"large",danger:!0,onClick:()=>{const e=(0,u.v0)().find(e=>e.id===O);e&&P&&L.confirm({title:E("Disable integration"),content:E("Are you sure you want to disable this integration?"),okText:E("Disable"),cancelText:E("Cancel"),okButtonProps:{danger:!0},onOk:()=>{const t=_.getFieldValue("integrations")||{};_.setFieldsValue({integrations:{...t,[e.id]:e.settingsFields.reduce((e,t)=>({...e,[t.name]:""}),{})}});const n=_.getFieldsValue(),a=n.ftpSettings,l=n.integrations||{},i={...P.integrations||{}};Object.entries(l).forEach(([e,t])=>{t&&(0,u.hS)(e,t)?i[e]=t:i[e]&&!(0,u.hS)(e,t)&&delete i[e]}),F({projectId:P.id,title:n.name,webhook:n.webhook?n.webhook:"",ftp_settings:a?{host:a.host,port:a.port,directory:a.directory,domain:a.domain,login:a.login,password:a.password,use_default_cdn:B}:null,integrations:Object.keys(i).length>0?i:void 0}).then(({data:e,error:t})=>{e?S.success({message:E("The project settings was successfully saved.")}):t&&S.error({error:t}),y((0,c.YF)("")),y((0,c.Oo)()),M(null)})}})},style:{marginRight:8}},E("Disable integration")),a.createElement(i.$n,{key:"submit",size:"large",className:"em-analytics__project-save",type:"primary",loading:j.isLoading,onClick:z},E("Update"))].filter(Boolean)},a.createElement(i.lV,{form:_,layout:"vertical",name:`edit_project_form_${null===P||void 0===P?void 0:P.id}`,onFinish:z,initialValues:{remember:!1,name:""},autoComplete:"off"},a.createElement(i.tU,{activeKey:I,onChange:e=>{N(e),M(null)},items:H,className:"modal-tabs"})))}},58700:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var a=n(1936),l=n(84075),i=n(88260),o=n(57549),r=n(74291),s=n(69962),c=n(6056),d=n.n(c),m=n(48155),u=n.n(m),p=n(45988),g=n(89591),h=n(98173),f=n(52898),b=n(73378),v=n(7959),E=n(41244),y=n(47706),_=n(68876),C=n(93506),k=n(96040);const A=({element:e,setSearchFilters:t=()=>{},isTrash:n=!1,foldersList:c,projectTags:m=[],foldersHandlers:A={},selected:w=!1})=>{var x,S,L,T,I,N,B,R,O,M,P,V,F,j,W;const{__:D}=(0,y.s9)();let H=(0,l.zy)();const{projectId:z}=(0,l.g)(),{owner:U,admin:q}=(0,v.A)(),Z=(0,s.d4)(h.C1),$=(0,s.d4)(f.Yd),G=(0,a.useRef)(null),{token:K}=(0,o.rd)(),{handleRecover:X,handleClone:Y,handlerChangeFolder:J,handleRemove:Q}=A,ee=(0,_.rD)(),te=e.hasOwnProperty("type")?C.IE:C.Tm,ne=te===C.Tm?C.zh:C.YY,ae=te===C.Tm?D("New emails"):D("New blocks"),le=(e,t)=>`${e.pathname}/${t.id}`,[ie]=(0,p.pP)(),[oe]=(0,g.Kh)(),re=(e,t=z,n)=>{var a;let l=window.location.host.indexOf("localhost")>=0?"app.emailmaker.ru":`${window.location.host}`;const i=$[e],o=null!==(a=null!==i&&void 0!==i?i:n)&&void 0!==a?a:e,r=`&cacheControl=true&cache-hash=${u()(String(o))}`;return`https://scr.emcdn.ru/screenshot?${"block"===te?"":"minHeight=620&"}delay=1000&width=800&fullPage=true&deviceScaleFactor=0.755&format=jpg&force=false${r}&url=${encodeURIComponent(`https://${l}/get${te}/${e}?secret_hash=${u()(`${t}${e}${C.KI}`)}&raw=true`)}`},se=(null===(x=e[te===C.IE?"blockfolder":"folder"])||void 0===x?void 0:x[0])||null,ce={icon:a.createElement(k.Ay,{icon:"Email",size:18,strokeWidth:ee.iconStrokeWidth}),label:ae,key:C.y2,onClick:t=>J(t,e)},de=null===c||void 0===c?void 0:c.map(t=>({icon:a.createElement(k.Ay,{icon:"FolderIcon",size:16,strokeWidth:ee.iconStrokeWidth}),label:t.name,key:t.id,className:t.id,onClick:t=>J(t,e)})),me=(null===de||void 0===de?void 0:de.filter(e=>!se||e.key!==se))||[];se&&(null===me||void 0===me||me.unshift(ce));let ue=[];return(U||q||(null===(S=Z.id)||void 0===S?void 0:S.toString())===(null===(L=e.author)||void 0===L?void 0:L.toString()))&&!n&&ue.push({label:a.createElement(b.A,{key:"Lock",element:e}),icon:e.lock?a.createElement(k.Ay,{icon:"UnLock",size:16,strokeWidth:ee.iconStrokeWidth}):a.createElement(k.Ay,{icon:"Lock",size:16,strokeWidth:ee.iconStrokeWidth})}),(U||q||(null===(T=Z.id)||void 0===T?void 0:T.toString())===(null===(I=e.author)||void 0===I?void 0:I.toString()))&&!n&&me.length>0&&ue.push({label:D("Transfer to folder"),icon:a.createElement(k.Ay,{icon:"FolderIcon",size:16,strokeWidth:ee.iconStrokeWidth}),children:me,popupClassName:"element-card__folder-submenu"}),!n&&ue.push({label:D("Clone"),icon:a.createElement(k.Ay,{icon:"CopyOutlined",size:16,strokeWidth:ee.iconStrokeWidth}),key:"Clone",className:te===C.IE?"em-analytics__block-clone":"em-analytics__email-clone",disabled:te===C.IE?ie.isLoading:oe.isLoading,onClick:()=>Y(e)}),(U||q||(null===(N=Z.id)||void 0===N?void 0:N.toString())===(null===(B=e.author)||void 0===B?void 0:B.toString()))&&n&&ue.push({label:D("Recover"),icon:a.createElement(k.Ay,{icon:"FlipBackwardIcon",size:16,strokeWidth:ee.iconStrokeWidth}),key:"Recover",onClick:()=>X(e)}),(U||q||(null===(R=Z.id)||void 0===R?void 0:R.toString())===(null===(O=e.author)||void 0===O?void 0:O.toString()))&&ue.push({label:D("Remove"),icon:a.createElement(k.Ay,{icon:"DeleteOutlined",size:16,strokeWidth:ee.iconStrokeWidth}),key:"Remove",style:{color:"#ff4d4f"},className:te===C.IE?"em-analytics__block-remove":"em-analytics__email-remove",onClick:()=>Q(e)}),a.createElement(o.Zp,{className:`element-card element-card_${te}`,hoverable:!0,"data-testid":e.id,style:w?{border:`1px solid ${K.colorPrimary}`,borderRadius:16}:void 0,cover:a.createElement(a.Fragment,null,a.createElement(o.EA,{loading:!0,active:!0,avatar:!0,style:{position:"absolute",width:"83%",margin:"50px 10% 0 7%"}}),a.createElement(i.N_,{ref:G,className:"element-card__img-wrapper",to:n?"":le(H,e),onMouseMove:e=>(0,E.Hy)(e,G.current),style:{cursor:n?"default":"pointer"},onMouseLeave:E.Tr},re(e.id,e.project,e.modified)&&a.createElement("img",{className:"element-card__img",alt:e.title,src:re(e.id,e.project,e.modified)})),(e.is_template||(null===(M=e.acf)||void 0===M?void 0:M.is_template))&&a.createElement("div",{className:"element-card__is-template-wrapper"},D("Template")),(null===(P=e[ne])||void 0===P?void 0:P.length)&&a.createElement("div",{className:"element-card__tags-wrapper"},a.createElement(o.$x,{wrap:!0,size:8},e[ne].map(e=>{const n=null===m||void 0===m?void 0:m.find(t=>{var n;return(null===(n=t.id)||void 0===n?void 0:n.toString())===(null===e||void 0===e?void 0:e.toString())});return n&&a.createElement(o.vw,{color:K.colorPrimary,style:{borderRadius:6},key:n.id,onClick:()=>t(null,n.id)},n.name)}))))},a.createElement("div",{className:"ant-card-body__left"},a.createElement("div",{className:"element-card__title-row"},a.createElement(i.N_,{to:n?"":le(H,e),style:{cursor:n?"default":"pointer"}},a.createElement("span",{className:"element-card__title"},e.lock&&a.createElement(k.Ay,{icon:"Lock",size:16,strokeWidth:ee.iconStrokeWidth,className:d()("lock-icon",{"lock-icon__disabled":!(U||q||(null===(V=Z.id)||void 0===V?void 0:V.toString())===(null===(F=e.author)||void 0===F?void 0:F.toString()))})}),(null===(j=e.title)||void 0===j?void 0:j.trim())||(null===(W=e.subject)||void 0===W?void 0:W.trim()))),a.createElement(o.ms,{menu:{items:ue},arrow:"true",placement:"bottom",trigger:["hover"]},a.createElement(o.$n,{type:"default",className:"element-card_menu",onClick:()=>{}},a.createElement(k.Ay,{icon:"DotsVerticalIcon",size:16,strokeWidth:ee.iconStrokeWidth,key:"menu-button"})))),a.createElement("p",{className:"element-card__date"},D("Last update: ")," ",(0,E.Yq)((0,r.A)(e.modified),D))))}},96040:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>r});var a=n(1936),l=n(57549),i=n(68876),o=n(8855);const r=({icon:e,...t})=>{const n=(0,i.rD)(),r=(0,a.useMemo)(()=>{if(null===n||void 0===n||!n.icons)return;const e={};for(const[t,a]of Object.entries(n.icons))"string"===typeof a&&(e[t]=(0,o.p)(a));return Object.keys(e).length>0?e:void 0},[null===n||void 0===n?void 0:n.icons]);return a.createElement(l.HQ,Object.assign({icon:e,configIcons:r},t))}},68669:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var a=n(1936),l=n(18891),i=n(6056),o=n.n(i);const r=JSON.parse('{"yG":"iframe.612f5e3292f38c64ed91.html","l5":"iframe-eblock.612f5e3292f38c64ed91.html"}');var s=n(7314),c=n(69962),d=n(15582),m=n(68876),u=n(89591),p=n(93506),g=n(94994),h=n(6403),f=n(98173),b=n(47706),v=n(45092),E=n(7714),y=n(82106),_=n(42500),C=n(90946);function k(e,t){const{__:n}=(0,b.s9)(),l=(0,E.QC)(),i=(0,s.aD)(e),{error:o}=(0,h.hN)(),r=(0,a.useRef)(0),m=(0,a.useRef)(void 0),u=(0,a.useRef)(!1),k=(0,c.d4)(f.C1),A=(0,a.useCallback)(e=>new Promise((t,n)=>{const a=l.addListener(p.Ru.SANDBOX_READY,()=>{a.dispose(),t()});e&&setTimeout(()=>{a.dispose(),n("timeout")})}),[l]),w=(0,a.useCallback)(a=>{A(2e3).catch(e=>{}).finally(()=>{Promise.resolve().then(()=>{if(!u.current){if(++r.current){if(m.current){if(r.current<5){i.restoreSnapshot(m.current);for(let e=0;e<r.current;e++)i.undo()}}else m.current=i.createSnapshot();l.send(p.Ru.RELOAD)}setTimeout(()=>{if(0===--r.current){m.current=null;const l=new Error(a.message);a.stack&&(l.stack=a.stack);const r=C.Cp(l,{tags:{origin:"iframe"}}),s={past:i.getPast().slice(0,10),future:i.getFuture(),errorResolved:!u.current,text:e.getValue(),message:a.message,stack:a.stack,userId:null===k||void 0===k?void 0:k.id,entityId:null===t||void 0===t?void 0:t.id,entityType:document.location.pathname.indexOf("emails")>0?"email":"block",sentryEventId:r};o({id:"IFRAME_ERROR",data:s,message:n("Something went wrong")}),v.CJ.post("iframe_errors",s).catch(e=>{}),u.current=!1}},2e3)}})})},[i,e,o,null===k||void 0===k?void 0:k.id,null===t||void 0===t?void 0:t.id,n,A,l]);(0,d.A)(p.Ru.APPLICATION_DOMPARSER_ERROR,w),(0,a.useEffect)(()=>{let n=null,a=0;function i(e){const t=[];for(const{rangeOffset:n,rangeLength:a,text:l}of e.changes)t.push({range:{start:n,end:n+a},text:l});return t}let o=!1;const r=new y.j;return r.addDisposable((0,_.Og)(e,e=>(async e=>{if(o)await l.sendAsync(p.Ru.SANDBOX_UPDATE_ENTITY,{edits:[i(e)],guid:t.renderGuid});else if(n)n.push(e);else{n=[e];do{const e=n.splice(0,n.length);await l.sendAsync(p.Ru.SANDBOX_UPDATE_ENTITY,{edits:e.map(i),guid:t.renderGuid})}while(n.length);n=null}})(e).catch(e=>{}))),r.addDisposable(l.addListener(p.Ru.APPLICATION_UPDATE_ENTITY,function({guid:n,edits:l,pushUndoStop:i}){if(e&&n===t.renderGuid)try{o=!0;const t=(0,g.yc)(),n=t.canUndo(e.uri),r=t.canRedo(e.uri),s=l.map(({text:t,range:n})=>{const a=e.getPositionAt(n.start),l=e.getPositionAt(n.end);return{text:t,range:{startColumn:a.column,startLineNumber:a.lineNumber,endColumn:l.column,endLineNumber:l.lineNumber}}});i||n||r?e.pushEditOperations([],s,()=>null):e.applyEdits(s),!1!==i&&(a&&clearTimeout(a),a=setTimeout(()=>{e.pushStackElement(),a=0},1e3))}finally{o=!1}})),()=>{r.dispose(),a&&clearTimeout(a)}},[e,l,t.renderGuid])}const A=Symbol("isIframeEvent");function w({children:e}){const[t,n]=(0,a.useState)(),[l,i]=(0,a.useState)(),[o,r]=(0,a.useState)(!1),s=(0,E.QC)();return(0,a.useEffect)(()=>{if(t){const e=s.addListener(p.Ru.APPLICATION_IFRAME_DRAG_EVENT,e=>{if("drageleave"!==e.type&&"dragenter"!==e.type){const n=t.getBoundingClientRect(),a=e.clientX+n.x+window.scrollX,l=e.clientY+n.y+window.scrollY,i=document.elementFromPoint(a,l);if(i){const t=new DataTransfer,n=new DragEvent(e.type,{clientX:a,clientY:l,cancelable:!0,bubbles:!0,dataTransfer:t});n[A]=!0,i.dispatchEvent(n)}}});return()=>e.dispose()}},[s,t]),(0,a.useEffect)(()=>{const e=e=>{e[A]||r(!0)},t=e=>{e[A]||r(!1)};return window.addEventListener("dragstart",e),window.addEventListener("dragend",t),()=>{window.removeEventListener("dragstart",e),window.removeEventListener("dragend",t)}},[l]),(0,a.useEffect)(()=>{const e=e=>{if(!e[A]){var t;const n=l.getBoundingClientRect();s.send(p.Ru.SANDBOX_DRAG_EVENT,{value:(null===(t=e.dataTransfer)||void 0===t?void 0:t.getData("Text"))||"",type:e.type,clientX:e.pageX-n.x-window.scrollX,clientY:e.pageY-n.y-window.scrollY})}};if(l)return l.addEventListener("dragenter",e),l.addEventListener("dragover",e),l.addEventListener("dragleave",e),l.addEventListener("drop",e),l.addEventListener("dragend",e),()=>{l.removeEventListener("dragenter",e),l.removeEventListener("dragover",e),l.removeEventListener("dragleave",e),l.removeEventListener("drop",e),l.removeEventListener("dragend",e)}},[l,s]),a.createElement("div",{ref:n},o&&a.createElement("div",{ref:i,className:"iframe-provider"}),e)}var x=n(57549),S=n(48952);var L=n(65185),T=n(65893);const I=(0,a.forwardRef)(({className:e=null,email:t=null,handlerSendPosition:i=()=>{}},g)=>{const h=(0,c.wA)(),v=(0,s.fn)(),y=(0,m.rD)(),_=(0,E.ur)(),C=(0,E.XW)(),A=(0,E.QC)(),I=(0,L._q)(T.AZ.ON_EMAIL_INIT_ID),[N,B]=(0,a.useState)(),R=(0,a.useCallback)(e=>{const n=window.localStorage.getItem(p.V0.em_color_scheme),a=matchMedia(p.F3).matches?p.nd:p.T,l=window.localStorage.getItem(p.V0.em_code_mode_settings)?JSON.parse(window.localStorage.getItem(p.V0.em_code_mode_settings)):null,o={operation:p.Ru.UPDATE_PREVIEW,versionId:(null===v||void 0===v?void 0:v.getVersionId())||0,theme:n&&"system"!==n?n:a,commonStyles:"string"===typeof(null===t||void 0===t?void 0:t.common_styles)&&null!==t&&void 0!==t&&t.common_styles.startsWith("{")&&"{}"!==t.common_styles?JSON.parse(t.common_styles):p.BD,pathEnabled:y.pathEnabled,copyPasteEnabled:y.copyPasteEnabled,saveBlockEnabled:y.saveBlockEnabled,editImageControlEnabled:y.editImageControlEnabled,codeMode:!!l&&!(!l.isCodeMode||"left"!==l.codeModeDirection&&"right"!==l.codeModeDirection),elementAIimageEnabled:y.elementAIimageEnabled,imageCenterStockEnabled:y.imageCenterStockEnabled,imageCenterGifEnabled:y.imageCenterGifEnabled,imageCenterEditorEnabled:y.imageCenterEditorEnabled,blocksAddPanelEnabled:!1!==y.blocksAddPanelEnabled&&!1!==y.blocksSectionsShow,lockEditor:y.lockEditor,appName:"emailmaker"};B(e.target),_(e.target),g.current.resize(),C(o),i()},[y,i,C,v,t.common_styles,g,B,_]);(0,a.useEffect)(()=>{A.isInited()&&C({operation:p.Ru.UPDATE_PREVIEW,lockEditor:y.lockEditor})},[A,y.lockEditor]);const O=(0,a.useCallback)(e=>{var t;e.data.operation===p.Ru.SANDBOX_RESIZED&&(null===(t=g.current)||void 0===t||t.resize())},[g]);(0,a.useEffect)(()=>{const e=I(()=>{g.current.resize()});return()=>e.dispose()},[g,I]),(0,a.useEffect)(()=>()=>{_()},[_]);const M=(0,a.useCallback)(()=>new Promise(e=>{A.setTarget(void 0);const t=()=>{R({target:N}),e(),null===N||void 0===N||N.removeEventListener("load",t)};null===N||void 0===N||N.addEventListener("load",t)}),[A,R,N]);(0,a.useEffect)(()=>{const e=A.addListenerAsync(p.Ru.RELOAD,M,Number.MAX_SAFE_INTEGER);return()=>e.dispose()},[A,M]),(0,d.A)(O),(0,d.A)(()=>{var e;null===(e=g.current)||void 0===e||e.resize()},p.Ru.SANDBOX_INITED),function(){const e=(0,E.QC)(),t=(0,c.d4)(f.C1),{__:n}=(0,b.s9)(),[l,i]=(0,a.useState)("");(0,a.useEffect)(()=>{if(t.locale!==l){const a=(0,p.QV)(n),l=e.onInit(()=>{e.send(p.Ru.SANDBOX_TRANSLATIONS,{name:t.locale,data:a}),i(t.locale)});return()=>l.dispose()}},[t.locale,l,i,n,e]),(0,a.useEffect)(()=>{const t=e.addListener(p.Ru.RELOAD,()=>{i("")});return()=>t.dispose()},[i,e])}(),function(){const e=(0,E.QC)(),{token:t}=(0,x.rd)(),[n,l]=(0,a.useState)();(0,a.useEffect)(()=>{if(!(0,S.b)(n,t)){const n=e.onInit(()=>{e.send(p.Ru.SANDBOX_SET_THEME_VARIABLES,t),l(t)});return()=>n.dispose()}},[t,n,l,e]),(0,a.useEffect)(()=>{const t=e.addListener(p.Ru.RELOAD,()=>{l(void 0)});return()=>t.dispose()},[l,e])}(),(0,a.useEffect)(()=>{matchMedia(p.F3).addEventListener("change",e=>{const t=window.localStorage.getItem(p.V0.em_color_scheme),n=e.matches?p.nd:p.T;C({operation:p.Ru.UPDATE_PREVIEW,theme:t||n})})},[C]),k(v,t),(0,a.useEffect)(()=>{const e=v.onDidChangeContent(()=>{g.current.resize()});return()=>e.dispose()},[v,g]);const P=(0,a.useCallback)(e=>{e.data.operation===p.Ru.APPLICATION_COMMON_STYLES_UPDATE&&h(u.GY.util.updateQueryData("getEmail",t.id,t=>Object.assign(t,{common_styles:JSON.stringify(e.data.settings.commonStyles)})))},[h,t.id]);return(0,d.A)(P),a.createElement(w,null,a.createElement(l.A,{forwardRef:g,checkOrigin:!1,sandbox:"allow-top-navigation allow-scripts allow-popups allow-popups-to-escape-sandbox",className:o()("email-preview",{[e]:e}),width:"100%",minHeight:600,scrolling:"no",id:"email_iframe",allow:"clipboard-read; clipboard-write",src:(p.EW.isPlugin?`${n.p}iframe/`:"/iframe/")+(t.hasOwnProperty("type")?r.l5:r.yG),title:"Email content",onLoad:R}))})},79059:(e,t,n)=>{"use strict";n.d(t,{A:()=>re});var a=n(1936),l=n(57549),i=n(84075),o=n(69962),r=n(6056),s=n.n(r),c=n(47706),d=n(68876),m=n(32495),u=n(20587),p=n(61069),g=n(48873),h=n(1331),f=n(6403),b=n(32638),v=n(98612),E=n(73378),y=n(96040),_=n(85183);const C=({open:e,codeSize:t,onMinimize:n,onDownloadAsIs:i,onCancel:o})=>{const{__:r}=(0,c.s9)(),s=(0,_.WJ)(t);return a.createElement(l.aF,{open:e,onCancel:o,footer:null,className:"code-size-warning-modal",width:480},a.createElement("div",{className:"code-size-warning-modal__content"},a.createElement("h3",{className:"code-size-warning-modal__title"},r("Code Size Warning")),a.createElement("div",{className:"code-size-warning-modal__message"},a.createElement("p",null,r("The current code size is")," ",a.createElement("strong",null,s),","," ",r("which exceeds the recommended 90 KB limit.")),a.createElement("p",null,r("Large emails may have delivery issues and load slowly. We recommend minimizing code before exporting."))),a.createElement(l.$x,{className:"code-size-warning-modal__actions",size:"middle"},a.createElement(l.$n,{type:"primary",onClick:n,size:"large"},r("Minimize code")),a.createElement(l.$n,{onClick:i,size:"large"},r("Download as is")))))};var k=n(81644),A=n(49077),w=n(29692),x=n(98173),S=n(22817),L=n(78443),T=n(40867),I=n(52898),N=n(89591),B=n(28374),R=n(87796),O=n(6680),M=n(5823),P=n(79613),V=n(44004),F=n(78679),j=n(7959),W=n(41244),D=n(11822),H=n(47794),z=n(32463),U=n(65185),q=n(2527),Z=n(91480),$=n(7314),G=n(93506),K=n(65893),X=n(48155),Y=n.n(X),J=n(20110),Q=n(14139);const ee=({email:e,autoSaveEmailResult:t,autoSaveBlockResult:n})=>{var r,s,m,X,ee,te,ne,ae,le,ie,oe;const{__:re,_x:se}=(0,c.s9)(),ce=(0,o.wA)(),[de]=(0,P.mI)(),[me]=(0,V.dS)(),ue=(0,i.Zp)(),{owner:pe,admin:ge}=(0,j.A)(),he=(0,o.d4)(x.C1),fe=(0,o.d4)(S.yN),{modal:be}=l.qw.useApp(),ve=(0,f.hN)(),{confirm:Ee}=be,ye=(0,o.Pj)(),_e=(0,q.p)(),Ce=(0,d.rD)(),{projectId:ke}=(0,i.g)(),Ae=(0,U.ml)(K.AZ.ON_EMAIL_CLONE_ID),[we]=(0,O.N)(),{exportToIntegration:xe,isLoading:Se}=(0,F._)(),Le=(0,Z.u)(),[Te,Ie]=(0,a.useState)(!0),[Ne,Be]=(0,a.useState)(!1),[Re,Oe]=(0,a.useState)(null),[Me,Pe]=(0,a.useState)(""),[Ve,Fe]=(0,a.useState)(!1),[je,We]=(0,a.useState)(0),[De,He]=(0,a.useState)(null),[ze,Ue]=(0,a.useState)(""),qe=!(0,o.d4)(x.B$)&&(null===(r=he.id)||void 0===r?void 0:r.toString())===(null===fe||void 0===fe||null===(s=fe.members)||void 0===s?void 0:s.owner.ID),Ze="community"===(null===he||void 0===he||null===(m=he.subscription)||void 0===m?void 0:m.post_name),[$e]=N.GY.useDeleteEmailMutation(),[Ge,Ke]=(0,N.Kh)(),[Xe]=(0,B.ri)(),[Ye]=(0,B.cA)(),[Je]=(0,M.m)(),{data:Qe}=(0,i.KC)(),{data:et,refetch:tt}=(0,R.Jz)({parent:null===Qe||void 0===Qe||null===(X=Qe.folder)||void 0===X?void 0:X[0]},{skip:!(null!==Qe&&void 0!==Qe&&null!==(ee=Qe.folder)&&void 0!==ee&&ee[0])}),nt=(0,o.d4)(T.Wv);(0,a.useEffect)(()=>{nt.switched&&Ie(!1)},[nt]);const at=()=>null===e.title?re("New email title"):e.title,lt=(e,t)=>{const n=(0,_.X_)(e);(0,_.Gw)(n)?(Pe(e),Oe(()=>t),Be(!0)):t(e)},it=(0,$.fn)(),ot=(0,U._q)(K.AZ.ON_EMAIL_INIT_ID);(0,a.useEffect)(()=>{const e=ot(()=>{Ie(!1)});return()=>e.dispose()},[ot]);const rt=async(t,n=(null===it||void 0===it?void 0:it.getValue())||"")=>{const a=document.querySelector(".email-preview"),l=getComputedStyle(a);return n=await(0,D.PJ)(n,[l.width],e.utm_parameters,async e=>{dt(e)}),Xe({file:n,title:at(),notification:ve}).unwrap().then(e=>{const n={id:e._id,...e};return t(n,()=>Ye({id:n.id,notification:ve}))}).catch(e=>{var t,n;ve.error({message:null===(t=e.data)||void 0===t?void 0:t.code,description:null===(n=e.data)||void 0===n?void 0:n.message})})},st=(e=1)=>((e=1)=>rt((t,n)=>({href:(0,b.QG)(t.id,void 0,!1,e),dispose:n})))(e).then(({href:e,dispose:t})=>(0,D.SR)(e).finally(t)),ct=async e=>{const t=e.document.querySelectorAll("[em-operation=exportAsPicture]"),n=new Map;for(let a=0,l=t.length;a<l;a++){const e=t[a];e.setAttribute("em-export-id",String(a)),n.set(`[em-export-id='${a}']`,e)}n.size&&e.handleRender(async({contentDocument:e,managedNodeController:t})=>{try{const{data:l,dispose:i}=await((e,t,n=2)=>rt((t,a)=>({data:e.map(e=>({selector:e,href:(0,b.QG)(t.id,void 0,!1,n,e)})),dispose:a}),t))([...n.keys()],(0,h.b6)(e),2);try{const e=l.map(async({href:e,selector:a},l)=>{const i=n.get(a);if("TD"===i.tagName){i.removeAttribute("style");for(const e of[...i.classList])e.startsWith("em-mob-")&&i.classList.remove(e)}t.commit();const o=await(async(e,t)=>{var n;const a="string"===typeof e?null===(n=await de({url:e}))||void 0===n?void 0:n.data:e;if(t.split(".").length<2){const e=p.extension(a.type);e&&(t=`${t}.${e}`)}const l=new File([a],t.toLowerCase());try{const t=await me({user_id:he.id,folder:String(Qe.id),file:l}).unwrap(),n=(0,H.g0)(t);if(n.error)return"string"===typeof e?e:"";if(n.file_url)return n.file_url}catch(i){}return"string"===typeof e?e:""})(e,`${l}-${i.tagName.toLowerCase()}.png`),r=parseInt(getComputedStyle(i).width);let s=new Image(r);s.setAttribute("border","0"),s.setAttribute("style",`display: block; width: 100%; max-width: ${r}px;`),s.alt="",s.src=o;const c=i.querySelector("a");if(c){const e=document.createElement("a");e.setAttribute("target","_blank"),e.setAttribute("href",c.getAttribute("href")),e.appendChild(s),s=e}if("TD"===i.tagName){const e=i.cloneNode();e.removeAttribute("em-operation"),e.appendChild(s),s=e}i.replaceWith(s),t.commit()});await Promise.all(e)}catch(a){}finally{i()}}catch(a){}})},dt=t=>{var n,a;const l=t.document;if("0"===(null===Qe||void 0===Qe||null===(n=Qe.limits)||void 0===n?void 0:n.preview_limit)&&ke&&(null===he||void 0===he||null===(a=he.counters)||void 0===a?void 0:a.emails_counter)>2&&!l.querySelector(".em-powered-logo")){const t="https://emcdn.ru/emailmaker/powered.png",n="https%3A%2F%2Femailmaker.ru",a=`<a href="${`https://https://racs.emcdn.ru/v3/v3/link?app=emailmaker&project=${ke}&email=${e.id}&link=${n}`}" target="_blank"><img src="https://https://racs.emcdn.ru/v3/v3/pixel/123.png?image=${t}&project=${ke}&email=${e.id}" width="150" height="50" border="0" alt="" style="display: inline-block; width: 100%; max-width: 150px;"></a>`;l.querySelector("body > table:last-child > tbody:last-child > tr:last-child, body > div > table:last-child > tbody:last-child > tr:last-child")&&l.querySelector("body > table:last-child > tbody:last-child > tr:last-child, body > div > table:last-child > tbody:last-child > tr:last-child").insertAdjacentHTML("afterend",`<tr em="block" class="em-powered-logo">\n <td align="center" bgcolor="#FFFFFF">${a}</td>\n </tr>`)}},mt=t=>{const n=(null===it||void 0===it?void 0:it.getValue())||"";lt(n,n=>{Le({event:"click",action:"export_email",export_type:"HTML"});const a=document.querySelector(".email-preview"),l=getComputedStyle(a);(0,D.PJ)(n,[l.width],e.utm_parameters,async e=>{await ct(e),dt(e),await(0,z.e)(e,t)}).then(e=>{const t=new Blob([e],{type:"text/html;charset=utf-8"});(0,g.saveAs)(t,`${at()}.html`)}).catch(e=>{})})},ut=t=>{const n=(null===it||void 0===it?void 0:it.getValue())||"";lt(n,n=>{Le({event:"click",action:"export_email",export_type:"TEXT"});const a=document.querySelector(".email-preview"),l=getComputedStyle(a);(0,D.PJ)(n,[l.width],e.utm_parameters,async e=>{await ct(e),dt(e),await(0,z.e)(e,t),e.handleReadHtml(e=>{e.html=(0,J.G9)(e.contentDocument,Q.l)})}).then(e=>{const t=new Blob([e],{type:"text/plain;charset=utf-8"});(0,g.saveAs)(t,`${at()}.txt`)}).catch(e=>{})})},pt=t=>{const n=(null===it||void 0===it?void 0:it.getValue())||"";lt(n,n=>{Le({event:"click",action:"export_email",export_type:"Clipboard"});const a=document.querySelector(".email-preview"),l=getComputedStyle(a);(0,D.PJ)(n,[l.width],e.utm_parameters,async e=>{await ct(e),dt(e),await(0,z.e)(e,t)}).then(e=>navigator.clipboard.writeText(e).then(function(){ve.success(re("The email has been copied to the clipboard."))})).catch(e=>{})})},gt=t=>{if(fe.webhook){const n=(null===it||void 0===it?void 0:it.getValue())||"";lt(n,n=>{Le({event:"click",action:"export_email",export_type:"webhook"});const a=document.querySelector(".email-preview"),l=getComputedStyle(a);(0,D.PJ)(n,[l.width],e.utm_parameters,async e=>{await ct(e),dt(e),await(0,z.e)(e,t)}).then(t=>{we({url:fe.webhook,body:(0,u.E)({...e,code:t},ye)}).unwrap().then(t=>{Le({event:"export",action:"export_email",export_type:"webhook",email_id:e.id,project_id:ke,success:!0}),ve.success({message:re("Success!"),description:re("Webhook successfully sent!")})}).catch(t=>{Le({event:"export",action:"export_email",export_type:"webhook",email_id:e.id,project_id:ke,success:!1}),200===t.originalStatus?ve.success({message:re("Success!"),description:re("Webhook successfully sent!")}):ve.error({message:t.status,description:t.error})})})})}else ce((0,L.YF)("webhooksettings")),ce((0,L.qf)(G.lx.EDIT_PROJECT_MODAL))},ht=e=>new Promise((t,n)=>{fetch(e).then(e=>t(e.blob()),()=>(e=>{const t=_e.get(G.A9.em_token);return fetch(`https://app.emailmaker.ru/api/wp-json/cors-proxy/v1/get?url=${encodeURIComponent(e)}`,{headers:{authorization:`Bearer ${t}`}}).then(e=>e.blob())})(e).then(t,n)).catch(()=>{})}),ft=()=>{Le({event:"click",action:"click_delete_email_menu_item",entity_type:"email",entity_id:e.id,project_id:e.project,context:"editor"}),e.isNew?(G.EW.isPlugin||ue(`/projects/${Qe.id}/emails`),ve.success(re("The draft of the email has been deleted."))):bt(e,ue)},bt=(e,t)=>{Le({event:"open",action:"open_delete_email_modal",entity_type:"email",entity_id:e.id,project_id:e.project,context:"editor"}),Ee({maskClosable:!0,centered:!0,title:se('Are you sure to delete "',"email")+e.title+re('" email?'),icon:a.createElement(y.Ay,{icon:"DeleteOutlined",style:{color:"#ff4d4f"}}),okText:re("Yes"),cancelText:re("No"),onOk:()=>(async(e,t)=>{try{const n=await $e(e.id).unwrap();e.project&&!G.EW.isPlugin&&t(`/projects/${e.project}/emails`),ve.success(re('The email "')+n.title+se('" was successfully removed.',"email")),Le({event:"delete",action:"delete_email",entity_type:"email",entity_id:e.id,project_id:e.project,context:"editor"})}catch(n){ve.error(n)}})(e,t)})},vt=()=>{(0,H.QM)("application/zip, message/rfc822, text/html",Et)},Et=async e=>{const t=e[0];try{ce((0,T.M7)(!0));const e=(0,H.xi)(de,me,he,Qe),n=(0,H.oF)(t),a=await(0,H.q2)(t,e,n),[l]=(0,D.Ay)(t.name.replaceAll(" "," ")),i=l||(0,W.ez)(a)||"";it.pushEditOperations([],[{range:it.getFullModelRange(),text:a}],()=>null),ce((0,I.VK)(i)),ce((0,T.M7)(!1))}catch(n){ce((0,T.M7)(!1));const e=n instanceof Error?n.message:n;ve.error({message:e})}Le({event:"upload_file",action:"import_email"})},yt=[];Ce.emailDropdownMenuClone&&yt.push({label:re("Clone"),icon:a.createElement(y.Ay,{icon:"CopyOutlined",size:16,strokeWidth:Ce.iconStrokeWidth}),key:"Clone",className:"em-analytics__email-clone",disabled:Ke.isLoading,onClick:async()=>{if(Le({event:"click",action:"duplicate_email",entity_type:"email",entity_id:e.id,project_id:e.project,context:"editor"}),e.isNew)ve.warning({message:re("To create a copy, you need to save the email.")});else{var t,n,a,l,i;if((await Ae.fire(e)).some(e=>!1===e))return;Ge({title:(0,W.fq)(e.title),...void 0!==e.meta?{meta:e.meta}:{},project:null===Qe||void 0===Qe?void 0:Qe.id,description:e.description,html:(0,W.el)((null===it||void 0===it?void 0:it.getValue())||"",e.title),parent_email:e.parent_email||G.iU,common_styles:e.common_styles||"",utm_parameters:{utm_source:null===(t=e.utm_parameters)||void 0===t?void 0:t.utm_source,utm_medium:null===(n=e.utm_parameters)||void 0===n?void 0:n.utm_medium,utm_campaign:null===(a=e.utm_parameters)||void 0===a?void 0:a.utm_campaign,utm_term:null===(l=e.utm_parameters)||void 0===l?void 0:l.utm_term,utm_content:null===(i=e.utm_parameters)||void 0===i?void 0:i.utm_content},emailtags:e.emailtags,folder:e.folder}).unwrap().then(t=>{ue(`/projects/${Qe.id}/emails/${t.id}`),ve.success({message:re('The copy of email "')+e.title+re('" was successfully created.')}),Le({event:"duplicate",action:"duplicate_email_success",entity_type:"email",entity_id:e.id,cloned_entity_id:t.id,project_id:e.project,context:"editor"}),et&&tt()}).catch(e=>{ve.error({message:e.data.code,description:e.data.message})})}}}),Ce.emailDropdownMenuImport&&yt.push({label:se("Import","verb"),icon:a.createElement(y.Ay,{icon:"CloudUploadOutlined",size:16,strokeWidth:Ce.iconStrokeWidth}),key:"Import",className:"em-analytics__editor-page__import",onClick:()=>{Le({event:"click",action:"import_email"}),vt()}}),(pe||ge||(null===(te=he.id)||void 0===te?void 0:te.toString())===(null===(ne=e.author)||void 0===ne?void 0:ne.toString()))&&(Ce.emailDropdownMenuLock&&yt.push({label:a.createElement(E.A,{key:"Lock",element:e,context:"editor"}),icon:e.lock?a.createElement(y.Ay,{icon:"UnLock",size:16,strokeWidth:Ce.iconStrokeWidth}):a.createElement(y.Ay,{icon:"Lock",size:16,strokeWidth:Ce.iconStrokeWidth}),disabled:e.isNew}),Ce.emailDropdownMenuRemove&&yt.push({label:re("Remove"),icon:a.createElement(y.Ay,{icon:"DeleteOutlined",size:16,strokeWidth:Ce.iconStrokeWidth}),key:"Remove",className:"em-analytics__email-remove",style:{color:"#ff4d4f"},onClick:ft}));const _t=e.isAmp,Ct=[];if(Ce.exportHtmlEnabled&&Ct.push({key:"html",label:re("Code"),icon:a.createElement("span",{style:{position:"relative",display:"inline-flex"}},a.createElement(y.Ay,{icon:"FileTextOutlined",style:{fontSize:"16px"}}),qe&&a.createElement(y.Ay,{icon:"Lock",size:12,strokeWidth:Ce.iconStrokeWidth,style:{position:"absolute",bottom:-4,right:-4,borderRadius:"100%",backgroundColor:"var(--colorBgContainer)"}})),...qe?{onClick:()=>{Fe(!0),We(1)}}:_t?{children:[{key:"\u0441ode_html",label:re("AMP"),onClick:()=>mt("amp")},{key:"html_amp",label:re("HTML"),onClick:()=>mt("html")}]}:{onClick:()=>mt()}}),Ce.exportZipEnabled&&Ct.push({key:"zip",label:re("ZIP"),icon:a.createElement("span",{style:{position:"relative",display:"inline-flex"}},a.createElement(y.Ay,{icon:"FileZipOutlined",style:{fontSize:"16px"}}),qe&&a.createElement(y.Ay,{icon:"Lock",size:12,strokeWidth:Ce.iconStrokeWidth,style:{position:"absolute",bottom:-4,right:-4,borderRadius:"100%",backgroundColor:"var(--colorBgContainer)"}})),...qe?{onClick:()=>{Fe(!0),We(1)}}:{onClick:()=>(async()=>{const t=(null===it||void 0===it?void 0:it.getValue())||"";lt(t,async t=>{Le({event:"click",action:"export_email",export_type:"ZIP"});const n=document.querySelector(".email-preview"),a=getComputedStyle(n),l=await(0,D.Ce)(t,[a.width,void 0],e.utm_parameters,ht,async e=>{await ct(e),dt(e),_t&&await(0,z.e)(e,"html")});_t&&(l["amp.html"]=await(0,D.PJ)(t,[a.width],e.utm_parameters,async e=>{await ct(e),dt(e),await(0,z.e)(e,"amp")}));const i=await(0,D.hs)(l);(0,g.saveAs)(i,`${at()}.zip`)})})().catch(e=>{})}}),Ce.exportClipboardEnabled&&Ct.push({key:"clipboard",label:re("Clipboard"),icon:a.createElement("span",{style:{position:"relative",display:"inline-flex"}},a.createElement(y.Ay,{icon:"SnippetsOutlined",style:{fontSize:"16px"}}),qe&&a.createElement(y.Ay,{icon:"Lock",size:12,strokeWidth:Ce.iconStrokeWidth,style:{position:"absolute",bottom:-4,right:-4,borderRadius:"100%",backgroundColor:"var(--colorBgContainer)"}})),...qe?{onClick:()=>{Fe(!0),We(1)}}:_t?{children:[{key:"clipboard_html",label:re("AMP"),onClick:()=>pt("amp")},{key:"clipboard_amp",label:re("HTML"),onClick:()=>pt("html")}]}:{onClick:()=>pt()}}),Ce.exportTextEnabled&&Ct.push({key:"text",label:re("Text"),icon:a.createElement(y.Ay,{icon:"FileOutlined",style:{fontSize:"16px"}}),..._t?{children:[{key:"\u0441ode_txt",label:re("AMP"),onClick:()=>ut("amp")},{key:"html_txt",label:re("HTML"),onClick:()=>ut("html")}]}:{onClick:()=>ut()}}),Ce.exportOutlookEnabled&&Ct.push({key:"outlook",icon:a.createElement(y.Ay,{icon:"FileWordOutlined",style:{fontSize:"16px"}}),label:re("Outlook"),onClick:()=>(t=>{const n=(null===it||void 0===it?void 0:it.getValue())||"";lt(n,n=>{Le({event:"click",action:"export_email",export_type:"Outlook"});const a=document.querySelector(".email-preview"),l=getComputedStyle(a),i=async(e,t)=>{e.document,(0,z.e)(e,t),await ct(e),dt(e)};(0,D.pH)(e.title,n,[l.width,l.height],e.utm_parameters,t?e=>i(e,"html"):e=>i(e)).then(e=>{const t=new Blob([e],{type:"text/html;charset=utf-8"});(0,g.saveAs)(t,`${at()}.eml`)}).catch(e=>{})})})(_t)}),Ce.exportPdfEnabled&&Ct.push({key:"pdf",icon:a.createElement(y.Ay,{icon:"FilePdfOutlined",style:{fontSize:"16px"}}),label:re("PDF"),onClick:async()=>{const t=(null===it||void 0===it?void 0:it.getValue())||"";lt(t,async t=>{try{const n=document.querySelector(".email-preview"),a=getComputedStyle(n),l=await(0,D.PJ)(t,[a.width],e.utm_parameters,async e=>{dt(e)}),i=await Je({htmlContent:l,notification:ve}).unwrap(),o=window.URL.createObjectURL(new Blob([i],{type:"application/pdf"})),r=document.createElement("a");r.href=o,r.setAttribute("download",`${at()}.pdf`),document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(o)}catch(n){}})}}),Ce.exportPngEnabled&&Ct.push({key:"img",icon:a.createElement(y.Ay,{icon:"FileImageOutlined",style:{fontSize:"16px"}}),label:re("PNG"),onClick:()=>st(1).then(D.gZ).then(e=>(0,g.saveAs)(e,`${at()}.png`)).then(()=>Le({event:"click",action:"export_email",export_type:"Image"}))}),!G.EW.isPlugin){const t=(0,w.v0)(),n=[...t.filter(e=>{var t;return(0,w.hS)(e.id,null===(t=fe.integrations)||void 0===t?void 0:t[e.id])}),...t.filter(e=>{var t;return!(0,w.hS)(e.id,null===(t=fe.integrations)||void 0===t?void 0:t[e.id])})],l=Ce.exportWebHookEnabled?{key:"webhook",icon:a.createElement(y.Ay,{icon:"WebHook",style:{fontSize:"16px"}}),label:re("Webhook"),..._t?{children:[{key:"webhook_amp",label:re("AMP"),onClick:()=>gt("amp")},{key:"webhook_html",label:re("HTML"),onClick:()=>gt("html")}]}:{onClick:()=>gt()}}:null,i=[...n.map(t=>{var n;const l=(0,w.hS)(t.id,null===(n=fe.integrations)||void 0===n?void 0:n[t.id]);return{key:t.id,icon:a.createElement("span",{style:{position:"relative",display:"inline-flex",width:16,height:16}},a.createElement("img",{src:t.icon,alt:"",style:{width:16,height:16}}),Ze&&l&&a.createElement(y.Ay,{icon:"LockOutlined",style:{position:"absolute",bottom:-2,right:-2,fontSize:10,color:"var(--colorTextSecondary)"}})),label:re(t.name),onClick:Ze&&l?()=>Fe(!0):()=>(t=>{var n;const a=null===(n=fe.integrations)||void 0===n?void 0:n[t];if(!(0,w.rg)(t)||!(0,w.hS)(t,a))return ce((0,L.YF)("webhooksettings")),void ce((0,L.qf)(G.lx.EDIT_PROJECT_MODAL));const l=(null===it||void 0===it?void 0:it.getValue())||"";lt(l,n=>{Le({event:"click",action:"export_email",export_type:t});const a=document.querySelector(".email-preview"),l=getComputedStyle(a);(0,D.PJ)(n,[l.width],e.utm_parameters,async e=>{await ct(e),dt(e)}).then(e=>{Ue(e),He(t)})})})(t.id)}}),...l?[l]:[]];Ct.push({type:"divider",key:"integrations-divider"}),Ct.push({key:"email-platforms",label:re("Email platforms"),children:i,popupClassName:"em-export-platforms-submenu"})}return a.createElement(l.$x,null,Ce.emailDropdownMenuEnabled?a.createElement(l.ms,{key:"Actions",arrow:{pointAtCenter:!0},placement:"bottom",menu:{items:yt}},a.createElement(l.$n,{type:"default",block:!1,className:"email-page-header__btn email-page-header__btn_extra",onClick:()=>{}},a.createElement(y.Ay,{icon:"DotsHoriz",size:18,strokeWidth:Ce.iconStrokeWidth}))):Ce.emailDropdownMenuImport&&a.createElement(l.m_,{title:se("Import","verb"),placement:"bottom"},Ce.emailDropdownMenuImportButton?a.createElement(l.$n,{className:"em-analytics__editor-page__import",icon:a.createElement(y.Ay,{icon:"CloudUploadOutlined",size:16,strokeWidth:Ce.iconStrokeWidth}),onClick:()=>{Le({event:"click",action:"import_email"}),vt()}},re("Import")):a.createElement(l.$n,{className:"em-analytics__editor-page__import",type:"text",icon:a.createElement(y.Ay,{icon:"CloudUploadOutlined",size:22,strokeWidth:Ce.iconStrokeWidth}),onClick:()=>{Le({event:"click",action:"import_email"}),vt()}})),Ce.emailExportEnabled&&a.createElement(l.ms,{key:"Export",arrow:{pointAtCenter:!0},placement:"bottom",menu:{items:Ct}},a.createElement(l.$n,{key:"Export",className:"em-analytics__email-page__export",type:"default",icon:a.createElement(y.Ay,{icon:"CloudDownloadOutlined",size:16,strokeWidth:Ce.iconStrokeWidth})},re("Export"))),!e.hasOwnProperty("type")&&a.createElement(b.Ay,{disabled:Te,autoSaveEmailResult:t,key:"Save",email:e,isEditableRights:pe||ge||(null===(ae=he.id)||void 0===ae?void 0:ae.toString())===(null===(le=e.author)||void 0===le?void 0:le.toString())}),!!e.hasOwnProperty("type")&&a.createElement(v.A,{disabled:Te,rightCol:void 0,key:"Save",block:e,isEditableRights:pe||ge||(null===(ie=he.id)||void 0===ie?void 0:ie.toString())===(null===(oe=e.author)||void 0===oe?void 0:oe.toString()),autoSaveBlockResult:n}),a.createElement(C,{open:Ne,codeSize:(0,_.X_)(Me),onMinimize:()=>{if(Be(!1),Re&&Me){(0,_.X_)(Me);const e=(0,_.Y6)(Me);(0,_.X_)(e);Re(e),Oe(null),Pe("")}},onDownloadAsIs:()=>{Be(!1),Re&&Me&&(Re(Me),Oe(null),Pe(""))},onCancel:()=>{Be(!1),Oe(null),Pe("")}}),De&&(0,w.rg)(De)&&a.createElement(A.wf,{integration:(0,w.rg)(De),visible:!!De,loading:Se,onConfirm:async t=>{var n;if(!De)return;const l=null===(n=fe.integrations)||void 0===n?void 0:n[De],i=(0,w.rg)(De);if(!l||!i)return;const o=e.subject||e.title||"Email from EmailMaker";if("campaign_monitor"===De){const n="app.emailmaker.ru",a=null===e||void 0===e?void 0:e.id,l=ke||(null===fe||void 0===fe?void 0:fe.id);a&&l&&(t={...t,html_url:`https://${n}/getemail/${a}?secret_hash=${Y()(`${l}${a}${G.KI}`)}&raw=true`})}const r=await xe(De,l,t,ze,o);He(null),Ue(""),Le({event:"export",action:"export_email",export_type:De,email_id:e.id,project_id:ke,success:!0===r.success}),!0===r.success?ve.success({message:re("Success!"),description:r.link?a.createElement(a.Fragment,null,re(r.message),a.createElement("br",null),a.createElement("a",{href:r.link.url,target:"_blank",rel:"noopener noreferrer"},re(r.link.text))):re(r.message),duration:10}):ve.error({message:re("Error"),description:r.error})},onCancel:()=>{He(null),Ue("")},__:re}),a.createElement(k.A,{open:Ve,sideOnOk:void 0,onCancel:()=>Fe(!1),initialSlide:je}))};var te=n(72153),ne=n(25820),ae=n(7714),le=n(61062),ie=n(68069),oe=n(26557);const re=({email:e,autoSaveEmailResult:t,isCollaborationEditor:n})=>{var r,u,p,g;const[h]=l.lV.useForm(),{__:f}=(0,c.s9)();let b=(0,o.wA)(),v=(0,i.Zp)();const E=(0,o.d4)(x.C1),_=(0,o.d4)(x.B$),C=(0,o.d4)(S.yN),A=(0,ae.QC)(),w=(0,i.KC)(),L=null===w||void 0===w?void 0:w.data,{owner:N,admin:B}=(0,j.A)(),{token:R}=(0,l.rd)(),O=(0,d.rD)(),M=(0,Z.u)(),P=(0,a.useRef)(),V=(0,a.useRef)(),F=(0,a.useRef)(),D=(0,U.ml)(K.AZ.ON_PREVIOUSBUTTON_CLICK_ID),H=(0,U.ml)(K.AZ.ON_PREHEADER_CHANGED_ID),z=(0,U.ml)(K.AZ.ON_SUBJECT_CHANGED_ID),q=(0,o.d4)(T.yy),$=e.hasOwnProperty("type")?G.IE:G.Tm,X=(0,o.d4)(I.qX),Y=(0,o.d4)(ie.qX),J=$===G.Tm?X:Y,Q=(0,o.d4)(T.Fv),[re,se]=(0,a.useState)(!1),[ce,de]=(0,a.useState)(!1),me=!_&&(null===(r=E.id)||void 0===r?void 0:r.toString())===(null===C||void 0===C||null===(u=C.members)||void 0===u?void 0:u.owner.ID);(0,a.useEffect)(()=>{const e=!(null===J||void 0===J||!J.type)&&((null===J||void 0===J?void 0:J.type)===G.bV.TEXT||(null===J||void 0===J?void 0:J.type)===G.bV.LINK||J.type===G.bV.BUTTON)&&Q&&"bottom"!==q;se(e),b((0,T.oF)(e))},[J,q,Q]);const ue=(0,a.useCallback)(()=>{if(M({event:"click",action:"click_back_button",entity_type:$===G.IE?"block":"email",entity_id:null===e||void 0===e?void 0:e.id,project_id:(null===e||void 0===e?void 0:e.project)||(null===L||void 0===L?void 0:L.id),context:"editor"}),G.EW.isPlugin)D.fire(e);else{var t;const n=window.localStorage.getItem(G.V0.em_last_active_page);v(`/projects/${L.id}/emails?page=${n||1}&folder=${(null===(t=e.folder)||void 0===t?void 0:t[0])||G.y2}`)}},[v,D,e,null===L||void 0===L?void 0:L.id,M,$]),[pe,ge]=(0,a.useState)(),he=(0,U._q)(K.AZ.WILL_EMAIL_INIT_ID),fe=(0,U._q)(K.AZ.ON_EMAIL_INIT_ID);(0,oe.ZC)(([t])=>{pe&&t!==e.subject&&z.fire(e.subject)},[e.subject,pe]);const be=(0,a.useCallback)(e=>{const t=e.target.value;z.fire(t)},[z]),ve=(0,a.useCallback)(e=>{const t=e.target.value;H.fire(t)},[H]);(0,oe.ZC)(([t])=>{pe&&t!==e.preheader&&H.fire(e.preheader)},[e.preheader,pe]),(0,a.useEffect)(()=>{const e=new W.jG;return e.addDisposable(he(()=>ge(!1))),e.addDisposable(fe(e=>{ge(!0);const t=h.getFieldValue("subject");e.subject&&e.subject!==t&&h.setFieldValue("subject",e.subject);const n=h.getFieldValue("preheader");e.preheader&&e.preheader!==n&&h.setFieldValue("preheader",e.preheader)})),()=>e.dispose()},[ge,he,fe,h]);const Ee=(0,a.useCallback)(t=>{const n=t.target.value.trim();e.isNew?b((0,le.TU)(n)):b((0,I.HO)(n)),A.send(G.Ru.SANDBOX_SUBJECT_UPDATE,{value:n,guid:e.renderGuid})},[A,e.renderGuid,b,e.isNew]),ye=(0,U._q)(K.AZ.BEFORE_SAVE_EMAIL),_e=(0,a.useCallback)(async e=>{var t,n;const a=null===(t=V.current)||void 0===t?void 0:t.input;if(document.activeElement===a){const t=a.value.trim();t!==e.subject&&(e.subject=t,e.isNew?b((0,le.TU)(t)):b((0,I.HO)(t)),await A.sendAsync(G.Ru.SANDBOX_SUBJECT_UPDATE,{value:t,guid:e.renderGuid}))}const l=null===(n=F.current)||void 0===n?void 0:n.input;if(document.activeElement===l){const t=l.value.trim();t!==e.preheader&&(e.preheader=t,e.isNew?b((0,le.x3)(t)):b((0,I.pl)(t)),await A.sendAsync(G.Ru.SANDBOX_PREHEADER_UPDATE,{value:t,guid:e.renderGuid}))}},[A,b]);(0,a.useEffect)(()=>{const e=ye(_e);return()=>e.dispose()},[ye,_e]);const Ce=(0,a.useCallback)(t=>{const n=t.target.value.trim();e.isNew?b((0,le.x3)(n)):b((0,I.pl)(n)),A.send(G.Ru.SANDBOX_PREHEADER_UPDATE,{value:n,guid:e.renderGuid})},[A,e.renderGuid,b,e.isNew]),ke=e.isNew;(0,a.useEffect)(()=>{const t=new W.jG;return t.addDisposable(A.addListenerAsync(G.Ru.APPLICATION_SUBJECT_UPDATE,({guid:t,value:n})=>{if(t===e.renderGuid){const t=n!==(e.subject||h.getFieldValue("subject")||"")&&n;h.setFieldValue("subject",n),b(ke?(0,le.TU)(n):(0,I.HO)(n)),t&&M({event:"submit",action:"insert_generated_subject",entity_type:$===G.IE?"block":"email",entity_id:null===e||void 0===e?void 0:e.id,project_id:(null===e||void 0===e?void 0:e.project)||(null===L||void 0===L?void 0:L.id),context:"editor"})}})),t.addDisposable(A.addListenerAsync(G.Ru.APPLICATION_PREHEADER_UPDATE,({guid:t,value:n})=>{if(t===e.renderGuid){const t=n!==(e.preheader||h.getFieldValue("preheader")||"")&&n;h.setFieldValue("preheader",n),b(ke?(0,le.x3)(n):(0,I.pl)(n)),t&&M({event:"submit",action:"insert_generated_preheader",entity_type:$===G.IE?"block":"email",entity_id:null===e||void 0===e?void 0:e.id,project_id:(null===e||void 0===e?void 0:e.project)||(null===L||void 0===L?void 0:L.id),context:"editor"})}})),()=>t.dispose()},[A,b,ke,h,e.renderGuid,e.subject,e.preheader,M,$,e,L]),(0,ne.A)(null===e.title?f("New email title"):e.title);const Ae=(0,a.useCallback)(()=>{b((0,T.PM)(G.z$)),setTimeout(()=>{const e=document.querySelector('li.ai-response-change-context[role="theme-and-preheader-generator"]');e&&e.click()},100)},[b]),we=(0,a.useCallback)(()=>{me?de(!0):Ae()},[me,Ae]),xe=a.createElement(a.Fragment,null,a.createElement(l.$x,{ref:P,size:10},O.headerArrowBackVisible&&a.createElement(l.m_,{title:f("Back"),placement:"left"},a.createElement(l.$n,{type:"text",icon:a.createElement(y.Ay,{icon:"ArrowLeftOutlined",size:22,strokeWidth:O.iconStrokeWidth}),onClick:ue,shape:"circle"})),a.createElement("div",null,(O.headerTitleVisible||O.headerPreheaderVisible)&&a.createElement(l.lV,{form:h,layout:"vertical",name:"subject_preheader_form",autoComplete:"off",initialValues:{subject:"",preheader:""}},O.headerTitleVisible&&a.createElement("div",{style:{marginTop:pe?-3:0}},a.createElement(l.$x,{style:{width:"100%"},align:"baseline",size:12},a.createElement("div",{className:"subject_preheader_form__title"},f("Subject")),pe?a.createElement("div",{className:"ant-page-header-heading"},a.createElement(l.lV.Item,{name:"subject",style:{marginBottom:0}},a.createElement(l.pd,{className:"ant-page-header-heading-title",ref:V,placeholder:f("Enter subject line here"),variant:"borderless",onChange:be,onPressEnter:Ee,onBlur:e=>{Ee(e),document.querySelector(".ant-page-header-heading-title").closest(".ant-page-header-heading").classList.remove("focus")},onFocus:()=>{document.querySelector(".ant-page-header-heading-title").closest(".ant-page-header-heading").classList.add("focus")},disabled:O.lockPreheaderAndTitle})),O.aiAssistentEnabled&&a.createElement(l.m_,{title:f("Generate with AI")},a.createElement(y.Ay,{icon:"AI",size:12,strokeWidth:O.iconStrokeWidth,onClick:we}))):a.createElement(l.EA.Input,{active:!0,size:16,style:{width:"40%",marginTop:3}}))),O.headerPreheaderVisible&&a.createElement("div",null,a.createElement(l.$x,{style:{width:"100%"},align:"baseline",size:12},a.createElement("div",{className:"subject_preheader_form__title"},f("Preheader")),pe?a.createElement("div",{className:"ant-page-header-heading ant-page-header-heading_preheader"},a.createElement(l.lV.Item,{name:"preheader",style:{marginBottom:0}},a.createElement(l.pd,{className:"ant-page-header-heading-preheader",ref:F,placeholder:f("Enter preheader here"),variant:"borderless",onChange:ve,onPressEnter:Ce,onBlur:e=>{Ce(e),document.querySelector(".ant-page-header-heading-preheader").closest(".ant-page-header-heading").classList.remove("focus")},onFocus:()=>{document.querySelector(".ant-page-header-heading-preheader").closest(".ant-page-header-heading").classList.add("focus")},disabled:O.lockPreheaderAndTitle})),O.aiAssistentEnabled&&a.createElement(l.m_,{title:f("Generate with AI")},a.createElement(y.Ay,{icon:"AI",size:12,strokeWidth:O.iconStrokeWidth,onClick:we}))):a.createElement(l.EA.Input,{active:!0,size:16,style:{width:"80%",marginTop:2}}))))))),Se=a.createElement(a.Fragment,null,O.emailIdShow&&!!e.id&&a.createElement(a.Fragment,null,a.createElement("div",{className:"email-page-header__email-id"},"ID"+e.id),a.createElement(l.cG,{type:"vertical"})),a.createElement(m.A,{emailElement:e,isCollaborationEditor:n}),O.commandButtonsEnabled&&a.createElement(a.Fragment,null,e.lock?a.createElement(y.Ay,{icon:"Lock",size:18,strokeWidth:O.iconStrokeWidth,key:"Lock",className:s()("lock-icon",{"lock-icon__disabled":!(N||B||(null===(p=E.id)||void 0===p?void 0:p.toString())===(null===(g=e.author)||void 0===g?void 0:g.toString()))}),style:{color:R.colorPrimary,verticalAlign:"sub"}}):null,a.createElement(ee,{key:"Buttons",email:e,autoSaveEmailResult:t,isHeaderCodeMenuOpen:re})));return a.createElement(a.Fragment,null,a.createElement(te.A,{className:"email-pane__header",leftBlock:xe,rightBlock:Se,isHeaderCodeMenuOpen:re}),a.createElement(k.A,{open:ce,onCancel:()=>de(!1),initialSlide:9}))}},67351:(e,t,n)=>{"use strict";n.d(t,{A:()=>Gt});var a=n(1936),l=n(57549),i=n(69962),o=n(84075),r=n(47706),s=n(6403),c=n(6056),d=n.n(c),m=n(42414),u=n(16432),p=n(37148),g=n(93506),h=n(68876);const f=({email:e})=>{const{__:t}=(0,r.s9)(),n=e.hasOwnProperty("type")?g.IE:g.Tm,[i,o]=(0,a.useState)(g.yy),s=(0,h.rD)();let c=[{label:a.createElement(a.Fragment,null,t("Settings")),key:g.yy,forceRender:!0,className:"email-settings__collapse-panel",children:a.createElement(u.A,{className:"email-settings__collapse-panel-content",element:e})}];return s.UTMEnabled&&n===g.Tm&&c.push({label:a.createElement(a.Fragment,null,t("UTM parameters")),key:g.iW,forceRender:!0,className:"email-settings__collapse-panel",children:a.createElement(p.A,{className:"email-settings__collapse-panel-content",email:e})}),a.createElement(a.Fragment,null,a.createElement(l.tU,{className:"secondary-tabs email-settings__collapse",size:"large",activeKey:i,onChange:e=>o(e||""),items:c}))};var b=n(27468),v=n(96040),E=n(52898),y=n(40867),_=n(7714);const{backgroundColor:C,backgroundImage:k,backgroundPositionX:A,backgroundPositionY:w,backgroundRepeat:x,backgroundSize:S,responsive:L,backgroundColorContent:T,width:I}={backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",backgroundPositionX:"backgroundPositionX",backgroundPositionY:"backgroundPositionY",backgroundRepeat:"backgroundRepeat",backgroundSize:"backgroundSize",responsive:"responsive",backgroundColorContent:"backgroundColorContent",width:"width"},N={[C]:"",[k]:"",[A]:"",[w]:"",[x]:"checked",[S]:"",[T]:"",[I]:""},B=({className:e="",email:t})=>{var n,o,s;const{__:c}=(0,r.s9)(),{token:m}=(0,l.rd)(),u=(0,i.wA)(),p=(0,h.rD)(),[f]=l.lV.useForm(),T=(0,_.XW)(),I=(0,i.d4)(E.uJ),B=(0,i.d4)(E.iy),R=(0,i.d4)(y.B),O=(0,i.d4)(E.mD),[M,P]=(0,a.useState)(!0),V=c("Email not yet loaded or global container not found.");(0,a.useEffect)(()=>{O&&(u((0,E.S_)(!1)),T({operation:g.Ru.INIT_PREVIEW}))},[f,O,u,T,t.common_styles]);const F=[{label:c("Not defined"),value:"none"},{label:c("Do not repeat background (no-repeat)"),value:"no-repeat"},{label:c("Repeat background (repeat)"),value:"repeat"},{label:c("Repeat background horizontally (repeat-x)"),value:"repeat-x"},{label:c("Repeat background vertically (repeat-y)"),value:"repeat-y"}],j=[{label:c("Not defined"),value:""},{label:c("Contain"),value:"contain"},{label:c("Cover"),value:"cover"}];(0,a.useEffect)(()=>{var e,t,n,a;f.setFieldsValue({...I,width:null===(e=I.width)||void 0===e?void 0:e.value,widthDim:null===(t=I.width)||void 0===t?void 0:t.dim,backgroundImage:I.backgroundImage?null===(n=I.backgroundImage[0])||void 0===n?void 0:n.value:"",backgroundRepeat:""===I[x]?"repeat":I[x],backgroundSize:I[S],responsive:null===(a=I.responsive)||void 0===a?void 0:a.shutdown}),P(!I.backgroundImage)},[I,f]);return a.createElement("div",{className:d()("appearance-panel",{[e]:e})},a.createElement(l.lV,{form:f,layout:"vertical",name:"appearance_panel_form",initialValues:{remember:!1,...N},onValuesChange:e=>{var t;const n=f.getFieldsValue(!0),a=Object.keys(e)[0];switch(a){case A:case w:T({operation:g.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[a]:""===e[a]?"none":e[a]}});break;case k:P(""===e[a]),T({operation:g.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[a]:[{...null===I||void 0===I||null===(t=I.backgroundImage)||void 0===t?void 0:t[0],type:"url",value:e[a]}],backgroundSize:"cover"}});break;case L:T({operation:g.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{responsive:{shutdown:e[a],styles:e[a]},width:n.width}});break;default:T({operation:g.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:e})}},autoComplete:"off",className:"element-controls"},B?a.createElement(l.Fc,{style:{marginBottom:"24px"},message:V,type:"error"}):null,a.createElement(l.y9,{title:c("Email layout width"),dividerTop:!1},a.createElement(l.fI,{gutter:10},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:null!==(n=I.width)&&void 0!==n&&n.value?c("This field sets the width of the email."):c("Couldn`t determine the email width"),placement:"right"},a.createElement(l.lV.Item,{name:"width",style:{marginBottom:m.formItemMarginBottomXS}},a.createElement(l.YI,{min:0,max:700,placeholder:c("Width"),prefix:a.createElement(v.Ay,{icon:"ColumnWidthOutlined"}),disabled:!(null!==(o=I.width)&&void 0!==o&&o.value),addonAfter:"px"})))))),p.emailResponsiveControlEnabled&&a.createElement(a.Fragment,null,a.createElement(l.fI,{gutter:20},a.createElement(l.fv,{span:24},a.createElement(l.lV.Item,{name:"responsive",valuePropName:"checked"},a.createElement(l.dO,{id:"responsive",label:c("Responsive email"),size:"small",name:"responsive",disabled:void 0===(null===(s=I.responsive)||void 0===s?void 0:s.shutdown),onChange:e=>{u((0,y.wW)({shutdown:e,styles:e})),T({operation:g.Ru.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:document.querySelector(".email-pane__iframe").getBoundingClientRect().width}})}})))),a.createElement(l.cG,{className:"selected-td-form__divider"})),a.createElement(l.y9,{title:c("Email background color"),dividerTop:!p.emailResponsiveControlEnabled},a.createElement(l.fI,{gutter:10,style:{paddingBottom:M?16:4}},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:c("Background color"),placement:"bottom"},a.createElement(l.lV.Item,{name:C,style:{marginBottom:m.formItemMarginBottomXS},rules:[{message:c("Please set the background color")}]},a.createElement(l.it,{placeholder:c("Background color"),usedColors:I.usedColors,usedLabel:c("Used"),recommendedLabel:c("Recommended"),disabled:B})))),a.createElement(l.fv,{span:M?12:24},p.formEmailFieldBackgroundImageEnabled&&a.createElement(a.Fragment,null,a.createElement(b.A,{form:f,label:c("Background image"),name:k,tooltipTitle:c("Background image"),disabled:B||"Styles"!==R,elementSettings:I}),!M&&a.createElement(a.Fragment,null,a.createElement(l.lV.Item,{style:{marginBottom:"0"}},a.createElement(l.fI,{gutter:10},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:c("Horizontal position"),placement:"bottom"},a.createElement(l.lV.Item,{name:A,style:{marginBottom:m.formItemMarginBottomXS}},a.createElement(l.pd,{placeholder:c("Horizontal position"),prefix:a.createElement(v.Ay,{icon:"BgPositionHorizontal"})})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:c("Vertical position"),placement:"bottom"},a.createElement(l.lV.Item,{name:w,style:{marginBottom:m.formItemMarginBottomXS}},a.createElement(l.pd,{placeholder:c("Vertical position"),prefix:a.createElement(v.Ay,{icon:"BgPositionVertical"})})))))),a.createElement(l.fI,{gutter:10},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:c("Background image repeat"),placement:"bottom"},a.createElement(l.lV.Item,{name:x},a.createElement(l.Select,{placeholder:c("Please select"),disabled:B,options:F})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:c("Background image size"),placement:"top"},a.createElement(l.lV.Item,{name:S},a.createElement(l.Select,{placeholder:c("Please select"),disabled:B,options:j}))))))))))))};var R=n(68069);const{Option:O}=l.Select,{width:M,widthDim:P}={width:"width",widthDim:"widthDim"},V={[M]:"",[P]:""},F=({className:e=""})=>{const{__:t}=(0,r.s9)(),n=(0,i.d4)(R.JV),o=(0,i.d4)(R.iy),[s]=l.lV.useForm(),c=(0,_.XW)(),m=t("Block not yet loaded or global container not found.");(0,a.useEffect)(()=>{s.setFieldsValue({width:n.width.value,widthDim:n.width.dim})},[n,s]);return a.createElement("div",{className:d()("block-appearance-panel",{[e]:e})},a.createElement(l.lV,{form:s,layout:"vertical",name:"block_appearance_panel_form",initialValues:{remember:!1,...V},onValuesChange:e=>{const t=s.getFieldsValue(!0),n=Object.keys(e)[0];let a;switch(n){case"width":a={[n]:{value:e[n],dim:t.widthDim}};break;case"widthDim":a={width:{value:t.width,dim:e[n]}};break;default:return}c({operation:g.Ru.SANDBOX_BLOCK_SETTINGS_SET,settings:a})},autoComplete:"off"},o?a.createElement(l.Fc,{style:{marginBottom:"24px"},message:m,type:"error"}):null,a.createElement(l.lV.Item,{label:t("Container width"),name:M,tooltip:{title:t("Specifies the block width."),icon:a.createElement(v.Ay,{icon:"InfoCircleOutlined"})},rules:[{message:t("Please input container width")}]},a.createElement(l.pd,{disabled:o,placeholder:t("Container width"),addonAfter:a.createElement(l.lV.Item,{name:"widthDim",noStyle:!0},a.createElement(l.Select,{className:"select-after"},a.createElement(O,{value:"px"},"px"),a.createElement(O,{value:"%"},"%")))}))))};var j=n(43284),W=n(56315),D=n(71461),H=n(73847),z=n(20279);const U=e=>{var t,n,a,l,i,o,r,s,c,d,m,u,p,g,h,f,b,v;return{textFontFamily:e.text.fontFamily,textFontSize:e.text.fontSize,textFontSizeDim:e.text.fontSizeDim,textLineHeight:e.text.lineHeight,textLineHeightDim:e.text.lineHeightDim,textColor:e.text.color,textContrastColor:e.text.contrastColor||"#FFFFFF",textAlign:e.text.textAlign,textPaddingBottom:e.text.paddingBottom,textPaddingBottomDim:e.text.paddingBottomDim,headingFontFamily:e.headings.fontFamily,headingFontSize:e.headings.fontSize,headingFontSizeDim:e.headings.fontSizeDim,headingLineHeight:e.headings.lineHeight,headingLineHeightDim:e.headings.lineHeightDim,headingColor:e.headings.color,headingContrastColor:e.headings.contrastColor||"#FFFFFF",headingAlign:e.headings.textAlign,headingPaddingTop:e.headings.paddingTop,headingPaddingTopDim:e.headings.paddingTopDim,headingPaddingBottom:e.headings.paddingBottom,headingPaddingBottomDim:e.headings.paddingBottomDim,headingLetterSpacing:e.headings.letterSpacing,headingLetterSpacingDim:e.headings.letterSpacingDim,headingBold:e.headings.bold,headingItalic:e.headings.italic,linkColor:e.links.color,linkContrastColor:e.links.contrastColor||"#FFFFFF",linkUnderline:e.links.underline,buttonsFontFamily:e.buttons.fontFamily,buttonsFontSize:e.buttons.fontSize,buttonsFontSizeDim:e.buttons.fontSizeDim,buttonsLetterSpacing:e.buttons.letterSpacing,buttonsLetterSpacingDim:e.buttons.letterSpacingDim,buttonsColor:e.buttons.color,buttonsContrastColor:e.buttons.contrastColor||"#1C52DC",buttonsBold:e.buttons.bold,buttonsItalic:e.buttons.italic,buttonsBackgroundColor:e.buttons.backgroundColor,buttonsContrastBackgroundColor:e.buttons.contrastBackgroundColor||"#FFFFFF",buttonsMarginTop:e.buttons.marginTop,buttonsMarginTopDim:e.buttons.marginTopDim,buttonsMarginBottom:e.buttons.marginBottom,buttonsMarginBottomDim:e.buttons.marginBottomDim,buttonsBorder:e.buttons.border,buttonsAlign:e.buttons.textAlign,buttonsBorderRadius:e.buttons.borderRadius,buttonsPadding:e.buttons.padding,cardsContrastBackgroundColor:(null===(t=e.cards)||void 0===t?void 0:t.contrastBackgroundColor)||"#1C52DC",cardsBaseBackgroundColor:(null===(n=e.cards)||void 0===n?void 0:n.baseBackgroundColor)||"#F8F8F8",cardsContrastTextColor:(null===(a=e.cards)||void 0===a?void 0:a.contrastTextColor)||"#FFFFFF",cardsBaseTextColor:(null===(l=e.cards)||void 0===l?void 0:l.baseTextColor)||"#5A5A5A",cardsBorder:(null===(i=e.cards)||void 0===i?void 0:i.border)||{all:null,top:null,right:null,bottom:null,left:null},cardsBorderRadius:(null===(o=e.cards)||void 0===o?void 0:o.borderRadius)||{all:10,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},blockBackgroundColor:(null===(r=e.block)||void 0===r?void 0:r.backgroundColor)||"",blockContrastBackgroundColor:(null===(s=e.block)||void 0===s?void 0:s.contrastBackgroundColor)||"#1C52DC",blockPaddingAll:null===(c=e.block)||void 0===c||null===(d=c.padding)||void 0===d?void 0:d.all,blockPaddingTop:null===(m=e.block)||void 0===m||null===(u=m.padding)||void 0===u?void 0:u.top,blockPaddingRight:null===(p=e.block)||void 0===p||null===(g=p.padding)||void 0===g?void 0:g.right,blockPaddingBottom:null===(h=e.block)||void 0===h||null===(f=h.padding)||void 0===f?void 0:f.bottom,blockPaddingLeft:null===(b=e.block)||void 0===b||null===(v=b.padding)||void 0===v?void 0:v.left}},q={buttons_borderRadiusAll:"all",buttons_borderRadiusTopLeft:"topLeft",buttons_borderRadiusBottomLeft:"bottomLeft",buttons_borderRadiusTopRight:"topRight",buttons_borderRadiusBottomRight:"bottomRight"},Z={cards_borderRadiusAll:"all",cards_borderRadiusTopLeft:"topLeft",cards_borderRadiusBottomLeft:"bottomLeft",cards_borderRadiusTopRight:"topRight",cards_borderRadiusBottomRight:"bottomRight"},$=({className:e,email:t})=>{const{__:n}=(0,r.s9)(),o=(0,i.wA)(),s=(0,_.XW)(),[c]=l.lV.useForm(),m=(0,i.d4)(E.uJ),u=(0,i.d4)(E.dH),p=(0,h.rD)(),{token:f}=(0,l.rd)(),[b,C]=(0,a.useState)({}),[k,A]=(0,a.useState)({}),[w,x]=(0,a.useState)(!0),[S,L]=(0,a.useState)(!0),[T,I]=(0,a.useState)(!1),[N,B]=(0,a.useState)(!1),R={buttonsPaddingTop:"top",buttonsPaddingLeft:"left",buttonsPaddingRight:"right",buttonsPaddingBottom:"bottom"},O=t.common_styles&&"{}"!==t.common_styles?JSON.parse(t.common_styles):g.BD,[M,P]=(0,a.useState)(O.headings.bold),[V,F]=(0,a.useState)(O.headings.italic),[$,G]=(0,a.useState)(O.links.underline),[K,X]=(0,a.useState)(O.buttons.bold),[Y,J]=(0,a.useState)(O.buttons.italic),[Q,ee]=(0,a.useState)(null),te=!!t.common_styles&&"{}"!==t.common_styles,ne=(0,i.d4)(y.Wm);(0,a.useEffect)(()=>{ne||ee(null)},[O,ee,ne]),(0,a.useEffect)(()=>{ne&&!Q&&ee(U(O))},[O,Q,ne]),(0,a.useEffect)(()=>{u&&(o((0,E.RC)(!1)),c.setFieldsValue(U(O)))},[c,u,o,O]);const[ae,le]=(0,a.useState)(Math.min(O.headings.fontSize-1,19)),[ie,oe]=(0,a.useState)(Math.max(O.text.fontSize+1,20));(0,a.useEffect)(()=>{if(Q){var e,t,n,a,l,i,o,r,s,d,m,u,p;const g=Q.buttonsBorder;C(g);const h=Object.keys(g).find(e=>{var t,n,a;return(null===(t=g[e])||void 0===t?void 0:t.width)||(null===(n=g[e])||void 0===n?void 0:n.style)||(null===(a=g[e])||void 0===a?void 0:a.color)}),f=Q.cardsBorder;A(f);const b=Object.keys(f).find(e=>{var t,n,a;return(null===(t=f[e])||void 0===t?void 0:t.width)||(null===(n=f[e])||void 0===n?void 0:n.style)||(null===(a=f[e])||void 0===a?void 0:a.color)});c.setFieldsValue({buttons_borderPosition:h||"all",buttons_borderWidth:null!==(null===(e=g[h])||void 0===e?void 0:e.width)?null===(t=g[h])||void 0===t?void 0:t.width:"",buttons_borderColor:(null===(n=g[h])||void 0===n?void 0:n.color)||"",buttons_borderStyle:(null===(a=g[h])||void 0===a?void 0:a.style)||"",cards_borderPosition:b||"all",cards_borderWidth:null!==(null===(l=f[b])||void 0===l?void 0:l.width)?null===(i=f[b])||void 0===i?void 0:i.width:"",cards_borderColor:(null===(o=f[b])||void 0===o?void 0:o.color)||"",cards_borderStyle:(null===(r=f[b])||void 0===r?void 0:r.style)||"",buttons_borderRadiusAll:(0,z.ok)(Q.buttonsBorderRadius.all),buttons_borderRadiusTopLeft:(0,z.ok)(Q.buttonsBorderRadius.topLeft),buttons_borderRadiusBottomLeft:(0,z.ok)(Q.buttonsBorderRadius.bottomLeft),buttons_borderRadiusTopRight:(0,z.ok)(Q.buttonsBorderRadius.topRight),buttons_borderRadiusBottomRight:(0,z.ok)(Q.buttonsBorderRadius.bottomRight),cards_borderRadiusAll:(0,z.ok)(Q.cardsBorderRadius.all),cards_borderRadiusTopLeft:(0,z.ok)(Q.cardsBorderRadius.topLeft),cards_borderRadiusBottomLeft:(0,z.ok)(Q.cardsBorderRadius.bottomLeft),cards_borderRadiusTopRight:(0,z.ok)(Q.cardsBorderRadius.topRight),cards_borderRadiusBottomRight:(0,z.ok)(Q.cardsBorderRadius.bottomRight),blockPaddingAll:(0,z.ok)(Q.blockPaddingAll),blockPaddingTop:(0,z.ok)(Q.blockPaddingTop),blockPaddingRight:(0,z.ok)(Q.blockPaddingRight),blockPaddingBottom:(0,z.ok)(Q.blockPaddingBottom),blockPaddingLeft:(0,z.ok)(Q.blockPaddingLeft),blockPaddingLeftRight:(0,z.ok)(Q.blockPaddingRight)||(0,z.ok)(Q.blockPaddingLeft),blockPaddingTopBottom:(0,z.ok)(Q.blockPaddingTop)||(0,z.ok)(Q.blockPaddingBottom)}),(0,z.ok)(Q.blockPaddingAll)||!((0,z.ok)(Q.blockPaddingTop)||(0,z.ok)(Q.blockPaddingRight)||(0,z.ok)(Q.blockPaddingBottom)||(0,z.ok)(Q.blockPaddingLeft))||Q.blockPaddingTop===Q.blockPaddingBottom&&Q.blockPaddingRight===Q.blockPaddingLeft?B(!0):B(!1),!(0,z.ok)(Q.buttonsBorderRadius.all)&&((0,z.ok)(Q.buttonsBorderRadius.topLeft)||(0,z.ok)(Q.buttonsBorderRadius.bottomLeft)||(0,z.ok)(Q.buttonsBorderRadius.topRight)||(0,z.ok)(Q.buttonsBorderRadius.bottomRight))?x(!1):x(!0),Q.buttonsPadding&&!(0,z.ok)(Q.buttonsPadding.all)&&((0,z.ok)(Q.buttonsPadding.bottom)||(0,z.ok)(Q.buttonsPadding.right)||(0,z.ok)(Q.buttonsPadding.left)||(0,z.ok)(Q.buttonsPadding.top))&&I(!1),!(0,z.ok)(null===(s=Q.cardsBorderRadius)||void 0===s?void 0:s.all)&&((0,z.ok)(null===(d=Q.cardsBorderRadius)||void 0===d?void 0:d.topLeft)||(0,z.ok)(null===(m=Q.cardsBorderRadius)||void 0===m?void 0:m.bottomLeft)||(0,z.ok)(null===(u=Q.cardsBorderRadius)||void 0===u?void 0:u.topRight)||(0,z.ok)(null===(p=Q.cardsBorderRadius)||void 0===p?void 0:p.bottomRight))?L(!1):L(!0)}},[c,Q]);const re=e=>{const t=e.target.closest("button"),n=t.name,a=t.classList.contains("selected-td-form__button--active");t.className=a?"ant-btn ant-btn-default":"ant-btn ant-btn-default selected-td-form__button--active",t.blur(),"headingBold"===n?P(!a):"headingItalic"===n?F(!a):"linkUnderline"===n?G(!a):"buttonsBold"===n?X(!a):"buttonsItalic"===n&&J(!a),s({operation:g.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[n]:!a}})};return Q&&a.createElement("div",{className:d()("appearance-panel",{[e]:e})},a.createElement(l.lV,{form:c,layout:"vertical",name:"content_appearance_panel_form",initialValues:Q,onValuesChange:e=>{var t,n,a,l,i,o;const r=c.getFieldsValue(!0),d=Object.keys(e)[0];let m={};switch(d){case"headingFontSize":le(Math.min(r.headingFontSize-1,19)),m=e;break;case"textFontSize":oe(Math.max(r.textFontSize+1,20)),m=e;break;case"buttons_borderStyle":m={buttonsBorder:{[r.buttons_borderPosition]:{...b[r.buttons_borderPosition],style:e[d]}}},"all"===r.buttons_borderPosition?C(t=>({...g.iV,[r.buttons_borderPosition]:{...t[r.buttons_borderPosition],style:e[d]}})):C(t=>({...t,[r.buttons_borderPosition]:{...t[r.buttons_borderPosition],style:e[d]}}));break;case"buttons_borderColor":m={buttonsBorder:{[r.buttons_borderPosition]:{...b[r.buttonsBorderPosition],color:e[d]}}},"all"===r.buttons_borderPosition?C(t=>({...g.iV,[r.buttons_borderPosition]:{...t[r.buttons_borderPosition],color:e[d]}})):C(t=>({...t,[r.buttons_borderPosition]:{...t[r.buttons_borderPosition],color:e[d]}}));break;case"buttons_borderWidth":m={buttonsBorder:{[r.buttons_borderPosition]:{...b[r.buttons_borderPosition],width:e[d]}}},"all"===r.buttonsBorderPosition?C(t=>({...g.iV,[r.buttons_borderPosition]:{...t[r.buttons_borderPosition],width:e[d]}})):C(t=>({...t,[r.buttons_borderPosition]:{...t[r.buttons_borderPosition],width:e[d]}}));break;case"buttons_borderPosition":c.setFieldsValue({buttons_borderWidth:(null===(t=b[e[d]])||void 0===t?void 0:t.width)||"",buttons_borderColor:(null===(n=b[e[d]])||void 0===n?void 0:n.color)||"",buttons_borderStyle:(null===(a=b[e[d]])||void 0===a?void 0:a.style)||""});break;case"cards_borderStyle":m={cardsBorder:{[r.cards_borderPosition]:{...k[r.cards_borderPosition],style:e[d]}}},"all"===r.cards_borderPosition?A(t=>({...g.iV,[r.cards_borderPosition]:{...t[r.cards_borderPosition],style:e[d]}})):A(t=>({...t,[r.cards_borderPosition]:{...t[r.cards_borderPosition],style:e[d]}}));break;case"cards_borderColor":m={cardsBorder:{[r.cards_borderPosition]:{...k[r.cardsBorderPosition],color:e[d]}}},"all"===r.cards_borderPosition?A(t=>({...g.iV,[r.cards_borderPosition]:{...t[r.cards_borderPosition],color:e[d]}})):A(t=>({...t,[r.cards_borderPosition]:{...t[r.cards_borderPosition],color:e[d]}}));break;case"cards_borderWidth":m={cardsBorder:{[r.cards_borderPosition]:{...k[r.cards_borderPosition],width:e[d]}}},"all"===r.cardsBorderPosition?A(t=>({...g.iV,[r.cards_borderPosition]:{...t[r.cards_borderPosition],width:e[d]}})):A(t=>({...t,[r.cards_borderPosition]:{...t[r.cards_borderPosition],width:e[d]}}));break;case"cards_borderPosition":c.setFieldsValue({cards_borderWidth:(null===(l=k[e[d]])||void 0===l?void 0:l.width)||"",cards_borderColor:(null===(i=k[e[d]])||void 0===i?void 0:i.color)||"",cards_borderStyle:(null===(o=k[e[d]])||void 0===o?void 0:o.style)||""});break;case"buttons_borderRadiusAll":case"buttons_borderRadiusTopLeft":case"buttons_borderRadiusBottomLeft":case"buttons_borderRadiusTopRight":case"buttons_borderRadiusBottomRight":m={buttonsBorderRadius:{[q[d]]:+e[d]}};break;case"cards_borderRadiusAll":case"cards_borderRadiusTopLeft":case"cards_borderRadiusBottomLeft":case"cards_borderRadiusTopRight":case"cards_borderRadiusBottomRight":m={cardsBorderRadius:{[Z[d]]:+e[d]}};break;case"buttonsPaddingTop":case"buttonsPaddingLeft":case"buttonsPaddingRight":case"buttonsPaddingBottom":T?(m={padding:{all:+e[d]}},c.setFieldsValue({paddingTop:e[d],paddingLeft:e[d],paddingRight:e[d],paddingBottom:e[d]})):m={buttonsPadding:{[R[d]]:+e[d]}};break;case"blockPaddingTop":case"blockPaddingLeft":case"blockPaddingRight":case"blockPaddingBottom":m={blockPadding:{left:r.blockPaddingLeft||0,right:r.blockPaddingRight||0,top:r.blockPaddingTop||0,bottom:r.blockPaddingBottom||0,[R[d]]:+e[d]}};break;case"blockPaddingTopBottom":m={blockPadding:{left:r.blockPaddingLeft||0,right:r.blockPaddingRight||0,top:+e[d],bottom:+e[d]}},r.blockPaddingTop=r.blockPaddingBottom=+e[d];break;case"blockPaddingLeftRight":m={blockPadding:{top:r.blockPaddingTop||0,bottom:r.blockPaddingBottom||0,left:+e[d],right:+e[d]}},r.blockPaddingLeft=r.blockPaddingRight=+e[d];break;default:m=e}"buttons_borderPosition"!==d&&s({operation:g.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:m})},autoComplete:"off",className:"element-controls"},te?null:a.createElement(l.Fc,{style:{marginBottom:"24px"},message:n("It looks like the email was not created in our service, so the content styles won`t work. Read more about content styles in the help."),type:"info"}),a.createElement(l.y9,{title:n("Blocks"),dividerTop:!1},a.createElement(l.fI,{gutter:10},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Blocks background color"),placement:"bottom"},a.createElement(l.lV.Item,{name:"blockBackgroundColor",style:{marginBottom:f.formItemMarginBottomMD+4},rules:[{message:n("Please set the background color")}]},a.createElement(l.it,{placeholder:n("Background color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Background color of the contrast blocks"),placement:"bottom"},a.createElement(l.lV.Item,{name:"blockContrastBackgroundColor",style:{marginBottom:f.formItemMarginBottomMD+4},rules:[{message:n("Please set the background color")}]},a.createElement(l.it,{placeholder:n("Background color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")}))))),a.createElement(l.L1,{extended:N,onToggleExtended:()=>{B(e=>!e);const e=c.getFieldsValue(!0);N||(e.blockPaddingLeftRight=e.blockPaddingLeft,e.blockPaddingTopBottom=e.blockPaddingTop,e.blockPaddingRight=e.blockPaddingLeft,e.blockPaddingBottom=e.blockPaddingTop,s({operation:g.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{blockPadding:{top:e.blockPaddingTopBottom,bottom:e.blockPaddingTopBottom,left:e.blockPaddingLeftRight,right:e.blockPaddingLeftRight}}}))},fieldNames:{paddingLeftRight:"blockPaddingLeftRight",paddingLeft:"blockPaddingLeft",paddingRight:"blockPaddingRight",paddingTopBottom:"blockPaddingTopBottom",paddingTop:"blockPaddingTop",paddingBottom:"blockPaddingBottom"},labels:{horizontal:n("Horizontal padding"),vertical:n("Vertical padding"),left:n("Left padding"),right:n("Right padding"),top:n("Top padding"),bottom:n("Bottom padding"),individual:n("Individual padding")},gutter:10,rowStyle:{paddingBottom:4}})),a.createElement(l.y9,{title:n("General text"),dividerTop:!0},a.createElement(l.m_,{trigger:["hover"],title:n("Font of the general text"),placement:"bottom"},a.createElement(l.lV.Item,{name:"textFontFamily",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(l.LW,{loadGoogleFonts:j.c,getPopupContainer:e=>e.closest(".email-pane__content-col")}))),a.createElement(l.fI,{gutter:10},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Font size of the general text"),placement:"bottom"},a.createElement(l.lV.Item,{name:"textFontSize"},a.createElement(l.FQ,{min:15,max:ae,placeholder:n("Font size"),prefix:a.createElement(v.Ay,{icon:"FontSizeOutlined"}),addonAfter:"px"})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Line height of the general text"),placement:"bottom"},a.createElement(l.lV.Item,{name:"textLineHeight"},a.createElement(l.FQ,{min:0,placeholder:n("Line height"),prefix:a.createElement(v.Ay,{icon:"LineHeightOutlined"}),addonAfter:"px"}))))),a.createElement(l.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Color of the general text"),placement:"bottom"},a.createElement(l.lV.Item,{name:"textColor"},a.createElement(l.it,{placeholder:n("Text color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Contrast block text color"),placement:"bottom"},a.createElement(l.lV.Item,{name:"textContrastColor"},a.createElement(l.it,{placeholder:n("Text color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")}))))),a.createElement(l.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Bottom padding of the general text"),placement:"bottom"},a.createElement(l.lV.Item,{name:"textPaddingBottom"},a.createElement(l.FQ,{min:0,placeholder:n("Bottom padding"),prefix:a.createElement(v.Ay,{icon:"PaddingBottom"}),addonAfter:"px"})))))),a.createElement(l.y9,{title:n("Headings"),dividerTop:!0},a.createElement(l.m_,{trigger:["hover"],title:n("Heading font"),placement:"left"},a.createElement(l.lV.Item,{name:"headingFontFamily",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(l.LW,{loadGoogleFonts:j.c,getPopupContainer:e=>e.closest(".email-pane__content-col")}))),a.createElement(l.fI,{gutter:10},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Heading font size"),placement:"bottom"},a.createElement(l.lV.Item,{name:"headingFontSize",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(l.FQ,{min:ie,max:40,placeholder:n("Font size"),prefix:a.createElement(v.Ay,{icon:"FontSizeOutlined"}),addonAfter:"px"})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Heading line height"),placement:"bottom"},a.createElement(l.lV.Item,{name:"headingLineHeight",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(l.FQ,{min:0,placeholder:n("Line height"),prefix:a.createElement(v.Ay,{icon:"LineHeightOutlined"}),addonAfter:"px"}))))),a.createElement(l.fI,{gutter:10},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Heading letter spacing"),placement:"bottom"},a.createElement(l.lV.Item,{name:"headingLetterSpacing"},a.createElement(l.FQ,{min:0,placeholder:n("Letter spacing"),prefix:a.createElement(v.Ay,{icon:"ColumnWidthOutlined"}),addonAfter:"px"})))),a.createElement(l.fv,{span:12},a.createElement(l.$x,null,a.createElement(l.m_,{placement:"bottom",title:n("Strong")},a.createElement(l.$n,{className:d()({"selected-td-form__button--active":M}),type:"default",name:"headingBold",onClick:re},a.createElement(v.Ay,{icon:"BoldOutlined"}))),a.createElement(l.m_,{placement:"bottom",title:n("Italic")},a.createElement(l.$n,{className:d()({"selected-td-form__button--active":V}),type:"default",name:"headingItalic",onClick:re},a.createElement(v.Ay,{icon:"ItalicOutlined"})))))),a.createElement(l.fI,{gutter:10},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Heading color"),placement:"bottom"},a.createElement(l.lV.Item,{name:"headingColor"},a.createElement(l.it,{placeholder:n("Heading color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Contrast block header color"),placement:"bottom"},a.createElement(l.lV.Item,{name:"headingContrastColor"},a.createElement(l.it,{placeholder:n("Heading color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")}))))),a.createElement(l.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Top padding"),placement:"bottom"},a.createElement(l.lV.Item,{name:"headingPaddingTop"},a.createElement(l.FQ,{min:0,placeholder:n("Top padding"),prefix:a.createElement(v.Ay,{icon:"PaddingTop"}),addonAfter:"px"})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Bottom padding"),placement:"bottom"},a.createElement(l.lV.Item,{name:"headingPaddingBottom"},a.createElement(l.FQ,{min:0,placeholder:n("Bottom padding"),prefix:a.createElement(v.Ay,{icon:"PaddingBottom"}),addonAfter:"px"})))))),a.createElement(l.y9,{title:n("Links"),dividerTop:!0},a.createElement(l.fI,{gutter:10},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Link color"),placement:"bottom"},a.createElement(l.lV.Item,{name:"linkColor",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(l.it,{placeholder:n("Link color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{placement:"bottom",title:n("Underline")},a.createElement(l.$n,{className:d()({"selected-td-form__button--active":$}),type:"default",name:"linkUnderline",onClick:re},a.createElement(v.Ay,{icon:"UnderlineOutlined"}))))),a.createElement(l.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Link color in contrasting blocks"),placement:"bottom"},a.createElement(l.lV.Item,{name:"linkContrastColor"},a.createElement(l.it,{placeholder:n("Link color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))))),a.createElement(l.y9,{title:a.createElement(a.Fragment,null,n("Buttons")," ",a.createElement("span",{className:"section-title-bull"},"\u2022")," ",n("Text & background")),dividerTop:!0},a.createElement(l.m_,{trigger:["hover"],title:n("Buttons font"),placement:"left"},a.createElement(l.lV.Item,{name:"buttonsFontFamily",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(l.LW,{loadGoogleFonts:j.c,getPopupContainer:e=>e.closest(".email-pane__content-col")}))),a.createElement(l.fI,{gutter:10},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Buttons font size"),placement:"bottom"},a.createElement(l.lV.Item,{name:"buttonsFontSize",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(l.FQ,{min:0,placeholder:n("Font size"),prefix:a.createElement(v.Ay,{icon:"FontSizeOutlined"}),addonAfter:"px"})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Buttons letter spacing"),placement:"bottom"},a.createElement(l.lV.Item,{name:"buttonsLetterSpacing",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(l.FQ,{min:0,placeholder:n("Letter spacing"),prefix:a.createElement(v.Ay,{icon:"ColumnWidthOutlined"}),addonAfter:"px"}))))),a.createElement(l.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Buttons text color"),placement:"bottom"},a.createElement(l.lV.Item,{name:"buttonsColor",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(l.it,{placeholder:n("Buttons text color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Button text color in contrasting blocks"),placement:"bottom"},a.createElement(l.lV.Item,{name:"buttonsContrastColor",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(l.it,{placeholder:n("Buttons text color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Buttons background color"),placement:"bottom"},a.createElement(l.lV.Item,{name:"buttonsBackgroundColor"},a.createElement(l.it,{placeholder:n("Background color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Button background color in contrasting blocks"),placement:"bottom"},a.createElement(l.lV.Item,{name:"buttonsContrastBackgroundColor"},a.createElement(l.it,{placeholder:n("Background color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),p.formButtonFieldTextAlignEnabled&&a.createElement(l.fv,{span:12},a.createElement(W.A,{form:c,elementSettings:{textAlign:"",type:"email"},imgParent:!1,name:"buttonsAlign",withHotKeys:!1})),a.createElement(l.fv,{span:12},a.createElement(l.$x,null,a.createElement(l.m_,{placement:"bottom",title:n("Strong")},a.createElement(l.$n,{className:d()({"selected-td-form__button--active":K}),type:"default",name:"buttonsBold",onClick:re},a.createElement(v.Ay,{icon:"BoldOutlined"}))),a.createElement(l.m_,{placement:"bottom",title:n("Italic")},a.createElement(l.$n,{className:d()({"selected-td-form__button--active":Y}),type:"default",name:"buttonsItalic",onClick:re},a.createElement(v.Ay,{icon:"ItalicOutlined"}))))))),p.formFieldBorderEnabled&&a.createElement(l.y9,{title:a.createElement(a.Fragment,null,n("Buttons")," ",a.createElement("span",{className:"section-title-bull"},"\u2022")," ",n("Borders")),dividerTop:!0},a.createElement("div",{style:{paddingBottom:4}},a.createElement(D.A,{form:c,borders:b,namePrefix:"buttons_"}))),p.formFieldBorderRadiusEnabled&&a.createElement(l.y9,{title:a.createElement(a.Fragment,null,n("Buttons")," ",a.createElement("span",{className:"section-title-bull"},"\u2022")," ",n("Border radius")),dividerTop:!0},a.createElement("div",{style:{paddingBottom:4}},a.createElement(H.A,{form:c,oneBorderRadiusValue:w,setOneBorderRadiusValue:x,elementSettings:Q,namePrefix:"buttons_"}))),a.createElement(l.y9,{title:a.createElement(a.Fragment,null,n("Buttons")," ",a.createElement("span",{className:"section-title-bull"},"\u2022")," ",n("Margins")),dividerTop:!0},a.createElement(l.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Top margin"),placement:"bottom"},a.createElement(l.lV.Item,{name:"buttonsMarginTop"},a.createElement(l.FQ,{min:0,placeholder:n("Top margin"),prefix:a.createElement(v.Ay,{icon:"PaddingTop"}),addonAfter:"px"})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Bottom margin"),placement:"bottom"},a.createElement(l.lV.Item,{name:"buttonsMarginBottom"},a.createElement(l.FQ,{min:0,placeholder:n("Bottom margin"),prefix:a.createElement(v.Ay,{icon:"PaddingBottom"}),addonAfter:"px"})))))),a.createElement(l.y9,{title:a.createElement(a.Fragment,null,n("Cards")," ",a.createElement("span",{className:"section-title-bull"},"\u2022")," ",n("Colors")),dividerTop:!0},a.createElement(l.fI,{gutter:10},a.createElement(l.fv,{span:12},a.createElement(l.y9,{title:n("Base colors"),compact:!0},a.createElement(l.m_,{trigger:["hover"],title:n("Base background color"),placement:"bottom"},a.createElement(l.lV.Item,{name:"cardsBaseBackgroundColor",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(l.it,{placeholder:n("Base background color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")}))))),a.createElement(l.fv,{span:12},a.createElement(l.y9,{title:n("Contrasting colors"),compact:!0},a.createElement(l.m_,{trigger:["hover"],title:n("Contrasting background color"),placement:"bottom"},a.createElement(l.lV.Item,{name:"cardsContrastBackgroundColor",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(l.it,{placeholder:n("Contrasting background color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))))),a.createElement(l.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Base text color"),placement:"bottom"},a.createElement(l.lV.Item,{name:"cardsBaseTextColor"},a.createElement(l.it,{placeholder:n("Base text color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(l.fv,{span:12},a.createElement(l.m_,{trigger:["hover"],title:n("Contrasting text color"),placement:"bottom"},a.createElement(l.lV.Item,{name:"cardsContrastTextColor"},a.createElement(l.it,{placeholder:n("Contrasting text color"),usedColors:m.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))))),p.formFieldBorderEnabled&&a.createElement(l.y9,{title:a.createElement(a.Fragment,null,n("Cards")," ",a.createElement("span",{className:"section-title-bull"},"\u2022")," ",n("Borders")),dividerTop:!0},a.createElement("div",{style:{paddingBottom:4}},a.createElement(D.A,{form:c,borders:k,namePrefix:"cards_"}))),p.formFieldBorderRadiusEnabled&&a.createElement(l.y9,{title:a.createElement(a.Fragment,null,n("Cards")," ",a.createElement("span",{className:"section-title-bull"},"\u2022")," ",n("Border radius")),dividerTop:!0},a.createElement("div",{style:{paddingBottom:4}},a.createElement(H.A,{form:c,oneBorderRadiusValue:S,setOneBorderRadiusValue:L,elementSettings:Q,namePrefix:"cards_"})))))},G=({email:e})=>{const{__:t}=(0,r.s9)(),n=e.hasOwnProperty("type")?g.IE:g.Tm,[i,o]=(0,a.useState)(g.xz),s=(0,h.rD)(),c=!!e.common_styles&&"{}"!==e.common_styles;let d=[{label:a.createElement(a.Fragment,null,n===g.Tm?t("Global styles"):t("Block styles")),key:g.xz,forceRender:!0,className:"email-settings__collapse-panel",children:n===g.Tm?a.createElement(B,{className:"email-settings__collapse-panel-content",email:e}):a.createElement(F,{className:"email-settings__collapse-panel-content"})}];return n===g.Tm&&c&&s.commonStylesEnabled&&d.push({label:a.createElement(a.Fragment,null,t("Content styles")),key:"contentStyles",forceRender:!0,className:"email-settings__collapse-panel",children:a.createElement($,{className:"email-settings__collapse-panel-content",email:e})}),a.createElement(a.Fragment,null,a.createElement(l.tU,{className:"secondary-tabs email-settings__collapse appearance-panel__content-styles",size:"large",activeKey:i,onChange:e=>o(e||""),items:d}))};var K=n(1331),X=n(51121),Y=n(487),J=n(45988),Q=n(41244),ee=n(26557);const te=n.p+"static/media/icon-menu-block-welcome.1c534a003522feadd2e7.png";var ne=n(3875),ae=n(8855);const{name:le,type:ie,tags:oe}={name:"name",type:"type",tags:"tags"},re={[le]:"",[ie]:[],[oe]:[]},se={Header:10,Menu:20,Banners:30,Content:40,Lists:50,Buttons:60,Promocodes:70,"E-Commerce":80,Transactional:80,Articles:90,Polls:100,Applications:110,Feature:120,Separators:130,Contacts:140,Footer:150},ce=({parentEmailId:e=g.iU,blocksTab:t,search:n,reloadBlockScreens:c,email:m,setIsShowAddAllBlocksModal:u})=>{const{projectId:p}=(0,o.g)(),h=(0,Q.sh)(),f=(0,Q._9)(),[b]=l.lV.useForm(),{data:E}=(0,J.h1)(),{token:_}=(0,l.rd)(),{__:C,_x:k}=(0,r.s9)(),A=(0,s.hN)(),{modal:w}=l.qw.useApp(),{confirm:x}=w;let S=(0,o.zy)();const L=(0,i.d4)(y.V$),T=(0,a.useRef)(null),I=(0,a.useRef)(null),N=(0,ne.cR)(),B=207/660,R="string"===typeof(null===m||void 0===m?void 0:m.common_styles)&&null!==m&&void 0!==m&&m.common_styles.startsWith("{")?JSON.parse(m.common_styles):{},O=(0,a.useRef)(null),M=(0,a.useRef)(null),P=(0,a.useRef)(null),V=(0,i.Pj)();(0,a.useEffect)(()=>{var e;null===(e=I.current)||void 0===e||e.scrollTo({top:0})},[t,n]);const{data:F}=Y.Nq.endpoints.getProject.select(+p)(V.getState()),[j,W]=(0,a.useState)({projectId:p,pageSize:1e3,page:1,tags:null,name:null,type:null,notEmbed:!0,order:"asc",orderby:"title"});(0,a.useEffect)(()=>{n||(b.setFieldsValue(re),Ne({type:null,name:null}),c())},[n,b,c]),(0,a.useEffect)(()=>{if(E){const e=E.schema.properties.acf.properties.type.items.enum;let t=[];for(let n in e)t.push({label:C(g.jg[e[n]]),value:e[n]})}},[E,C]);const{isSuccess:D,isError:H,isLoading:z,isFetching:U,data:q,refetch:Z,error:$}=(0,J.SB)({...j,page:1}),G=(0,a.useMemo)(()=>{if(D&&q)return[...q].sort((e,t)=>se[e.type]-se[t.type])},[D,q]),[ce,de]=(0,a.useState)([]);(0,ee.ZC)(e=>{e!==H&&A.fromError("BLOCK_GET_ERROR",{},$,!0)},[H,$,A]);const[me,ue]=(0,a.useState)({emailId:e,pageSize:1e3,page:1,projectId:g.p5,notEmbed:!0,name:null,type:null}),{isSuccess:pe,isError:ge,isLoading:he,isFetching:fe}=(0,J.OD)({...me,emailId:e,page:1},{skip:!e||L.length}),be=(0,a.useMemo)(()=>{if(pe||L.length)return[...L].sort((e,t)=>se[e.type]-se[t.type])},[pe,L]),[ve,Ee]=(0,a.useState)([]);(0,a.useEffect)(()=>{const e=new Set;if(L.length&&be){for(const t of be)t.type&&e.add(t.type);Ee(Array.from(e))}else Ee([])},[L,be]);const[ye,_e]=(0,a.useState)({pageSize:1e3,page:1,notEmbed:!0,name:null,type:null}),{isSuccess:Ce,isError:ke,isLoading:Ae,isFetching:we,data:xe=[]}=(0,J.kz)({...ye,page:1}),Se=(0,a.useMemo)(()=>{if(xe.length)return[...xe].sort((e,t)=>se[e.type]-se[t.type])},[xe]),[Le,Te]=(0,a.useState)([]);(0,a.useEffect)(()=>{const e=new Set;if(Se&&xe.length){for(const t of Se)t.type&&e.add(t.type);Te(Array.from(e))}},[xe.length,Se]);const Ie=(0,a.useMemo)(()=>{const e=new Set;for(const t of ce)e.add(t);for(const t of ve)e.add(t);for(const t of Le)e.add(t);return Array.from(e)},[Le,ve,ce]),Ne=e=>{W(t=>({...t,...e,page:1})),ue(t=>({...t,...e,page:1})),_e(t=>({...t,...e,page:1}))},Be=(0,a.useCallback)(()=>{N.querySelector(".blocks-search__result-wrapper.is_search")&&(N.querySelector(".blocks-search__result-wrapper").style.removeProperty("transition"),N.querySelector(".blocks-search__result-wrapper").style.opacity=0,N.querySelectorAll(".blocks-search__result-body").forEach(e=>e.style.removeProperty("height")),N.querySelectorAll(".blocks-search__result-body").forEach(e=>{e.style.height=207*e.offsetHeight/660+"px"}),N.querySelector(".blocks-search__result-wrapper").style.transition="opacity 0.2s",N.querySelectorAll(".blocks-search__result-wrapper").forEach(e=>e.style.opacity=1))},[660,N]);(0,a.useEffect)(()=>{we||Ae||!Ce||"template"===t||(n?Be():c())},[we,Ae,Ce,Be,j.name,c,n,t]),(0,a.useEffect)(()=>{const e=new Set;if(D&&G){for(const t of G)t.type&&e.add(t.type);de(Array.from(e))}},[D,G]);const Re=e=>{c(),e.target.getAttribute("data-type")?(e.target.closest(".blocks-search").querySelectorAll(".blocks-search__result").forEach(e=>e.style.display="none"),e.target.closest(".blocks-search").querySelectorAll(`[data-type="${e.target.getAttribute("data-type")}"]`).forEach(e=>e.style.display="block")):e.target.closest(".blocks-search").querySelectorAll(".blocks-search__result").forEach(e=>e.style.display="block"),e.target.parentElement.querySelector(".active").classList.remove("active"),e.target.classList.add("active")};let Oe=null;const Me=e=>{clearTimeout(Oe);let t=N.querySelector(".block-search__preview")?N.querySelector(".block-search__preview"):null,n=N.querySelector(".block-search__preview-title")?N.querySelector(".block-search__preview-title"):null,a=N.querySelector(".block-search__preview-content")?N.querySelector(".block-search__preview-content"):null;N.querySelector(".block-search__preview")||(t=document.createElement("div"),t.classList.add("block-search__preview"),n=document.createElement("div"),n.classList.add("block-search__preview-title"),a=document.createElement("div"),a.classList.add("block-search__preview-content"),t.append(a),t.append(n),N.querySelector(".email-pane__col_settings-inner").append(t)),n.innerHTML="",a.innerHTML="",n.innerHTML=e.title;let l=e.html.replaceAll(/<style((.|\n|\r)*?)<\/style>/gi,"").trim();a.innerHTML=(0,ae.p)('<table cellspacing="0" cellpadding="0" border="0" width="100%">'+l+"</table>"),"1"!==t.style.opacity&&setTimeout(function(){t.style.opacity="1",t.style.transform=document.querySelector(".email-pane__col-wrapper_reverse")?"translateX(100%)":"translateX(-100%)"},10)},Pe=()=>{let e=N.querySelector(".block-search__preview");e&&(Oe=setTimeout(()=>{e.style.opacity="0",e.style.transform=document.querySelector(".email-pane__col-wrapper_reverse")?"translateX(99%)":"translateX(-99%)",setTimeout(function(){e.remove()},300)},300))};(0,a.useEffect)(()=>{N.querySelectorAll(".blocks-search__result").forEach(e=>{e.style.display="block"})},[t]);const Ve=!(null!==q&&void 0!==q&&q.length)&&(!e||!(null!==L&&void 0!==L&&L.length))&&!(null!==xe&&void 0!==xe&&xe.length)&&(j.tags||j.name||j.type)&&!(z||U);(0,a.useEffect)(()=>{z||U||c()},[z,U,c]),(0,a.useEffect)(()=>{("common"===t||n)&&setTimeout(c,50)},[q,c,t,n]);const Fe=e=>{x({maskClosable:!0,centered:!0,title:k("Are you sure you want to delete the \u201c","block")+e.title+C("\u201d block?"),icon:a.createElement(v.Ay,{icon:"DeleteOutlined"}),okText:C("Yes"),cancelText:C("No"),onOk:()=>(e=>V.dispatch(J.VM.endpoints.deleteBlock.initiate(e.id)).then(t=>{t.error&&A.fromError("BLOCK_REMOVING_ERROR",(0,s.x_)(e),t.error),A.success({id:"BLOCK_REMOVING_SUCCESS",data:(0,s.x_)(e),message:C('The block "')+t.data.title+k('" was successfully removed.',"block")});try{Z()}catch($){}}))(e)})},je=(e,t)=>`${e.pathname.split("emails")[0]}blocks/${t.id}`,We=e=>{let t=[{key:"Delete block",className:"blocks-search__result__menu-item",icon:a.createElement(v.Ay,{icon:"DeleteOutlined",size:16,style:{margin:0}}),style:{color:_.colorError},onClick:()=>Fe(e)}];return!g.EW.isPlugin&&t.unshift({key:"Edit block",className:"blocks-search__result__menu-item",icon:a.createElement(v.Ay,{icon:"EditOutlined",style:{fontSize:"16px",margin:0}}),label:a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:je(S,e)}," ")}),t},De=e=>{let t="<tr"===e.html.substring(0,3)?document.createElement("table"):document.createElement("div");if(t.replaceChildren(...(0,X.$$)(e.html)),0!==Object.keys(R).length&&(t.querySelectorAll(".em-contrast-card").forEach(e=>{var t,n;null!==(t=R.cards)&&void 0!==t&&t.contrastBackgroundColor&&(e.getAttribute("bgcolor")?R.cards.contrastBackgroundColor?e.setAttribute("bgcolor",R.cards.contrastBackgroundColor):e.removeAttribute("bgcolor"):R.cards.contrastBackgroundColor?e.style.backgroundColor=R.cards.contrastBackgroundColor:e.style.removeProperty("background-color")),null!==(n=R.cards)&&void 0!==n&&n.contrastTextColor&&e.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach(e=>{if("#ffffff"!==ze(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.cards.contrastTextColor};`);e.setAttribute("style",t)}})}),t.querySelectorAll(".em-card").forEach(e=>{var t,n;null!==(t=R.cards)&&void 0!==t&&t.baseBackgroundColor&&(e.getAttribute("bgcolor")?R.cards.baseBackgroundColor?e.setAttribute("bgcolor",R.cards.baseBackgroundColor):e.removeAttribute("bgcolor"):R.cards.baseBackgroundColor?e.style.backgroundColor=R.cards.baseBackgroundColor:e.style.removeProperty("background-color")),null!==(n=R.cards)&&void 0!==n&&n.baseTextColor&&e.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach(e=>{if("#ffffff"!==ze(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.cards.baseTextColor};`);e.setAttribute("style",t)}})}),t.querySelectorAll(".em-card, .em-contrast-card").forEach(e=>{var t,n,a,l,i,o;null!==(t=R.cards)&&void 0!==t&&t.border&&qe({settings:{border:null===(o=R.cards)||void 0===o?void 0:o.border},elem:e});if(null!==(n=R.cards)&&void 0!==n&&null!==(a=n.borderRadius)&&void 0!==a&&a.all){var r,s,c,d;if(e.style.borderBottomLeftRadius&&"0px"!==e.style.borderBottomLeftRadius)e.style.borderBottomLeftRadius=(null===(r=R.cards)||void 0===r?void 0:r.borderRadius.all)+"px";if(e.style.borderBottomRightRadius&&"0px"!==e.style.borderBottomRightRadius)e.style.borderBottomRightRadius=(null===(s=R.cards)||void 0===s?void 0:s.borderRadius.all)+"px";if(e.style.borderTopLeftRadius&&"0px"!==e.style.borderTopLeftRadius)e.style.borderTopLeftRadius=(null===(c=R.cards)||void 0===c?void 0:c.borderRadius.all)+"px";if(e.style.borderTopRightRadius&&"0px"!==e.style.borderTopRightRadius)e.style.borderTopRightRadius=(null===(d=R.cards)||void 0===d?void 0:d.borderRadius.all)+"px"}else if(""===(null===(l=R.cards)||void 0===l||null===(i=l.borderRadius)||void 0===i?void 0:i.all))e.style.removeProperty("border-radius");else{var m,u,p,g,h,f,b,v,E,y,_,C,k,A,w,x,S,L,T,I;if(null!==(m=R.cards)&&void 0!==m&&null!==(u=m.borderRadius)&&void 0!==u&&u.topLeft&&e.style.borderTopLeftRadius&&"0px"!==e.style.borderTopLeftRadius)e.style.borderTopLeftRadius=(null===(S=R.cards)||void 0===S?void 0:S.borderRadius.topLeft)+"px";else""===(null===(p=R.cards)||void 0===p||null===(g=p.borderRadius)||void 0===g?void 0:g.topLeft)&&e.style.removeProperty("border-top-left-radius");if(null!==(h=R.cards)&&void 0!==h&&null!==(f=h.borderRadius)&&void 0!==f&&f.topRight&&e.style.borderTopRightRadius&&"0px"!==e.style.borderTopRightRadius)e.style.borderTopRightRadius=(null===(L=R.cards)||void 0===L?void 0:L.borderRadius.topRight)+"px";else""===(null===(b=R.cards)||void 0===b||null===(v=b.borderRadius)||void 0===v?void 0:v.topRight)&&e.style.removeProperty("border-top-right-radius");if(null!==(E=R.cards)&&void 0!==E&&null!==(y=E.borderRadius)&&void 0!==y&&y.bottomRight&&e.style.borderBottomRightRadius&&"0px"!==e.style.borderBottomRightRadius)e.style.borderBottomRightRadius=(null===(T=R.cards)||void 0===T?void 0:T.borderRadius.bottomRight)+"px";else""===(null===(_=R.cards)||void 0===_||null===(C=_.borderRadius)||void 0===C?void 0:C.bottomRight)&&e.style.removeProperty("border-bottom-right-radius");if(null!==(k=R.cards)&&void 0!==k&&null!==(A=k.borderRadius)&&void 0!==A&&A.bottomLeft&&e.style.borderBottomLeftRadius&&"0px"!==e.style.borderBottomLeftRadius)e.style.borderBottomLeftRadius=(null===(I=R.cards)||void 0===I?void 0:I.borderRadius.bottomLeft)+"px";else""===(null===(w=R.cards)||void 0===w||null===(x=w.borderRadius)||void 0===x?void 0:x.bottomLeft)&&e.style.removeProperty("border-bottom-left-radius")}}),t.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach(e=>{if(!e.style.display&&parseFloat(e.style.fontSize)<=20){let a="",l=R.text.fontFamily;if(parseFloat(e.style.fontSize)>14&&(a=e.getAttribute("style").replace(/font-size:(\s+)?.*?px/,`font-size: ${R.text.fontSize}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${R.text.lineHeight}px`),e.setAttribute("style",a)),e.closest(".em-contrast-card, .em-card")||"#ffffff"===ze(e.style.color).toLowerCase()||(a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.text.color};`),e.setAttribute("style",a)),e.closest(".em-contrast-block")&&!e.closest(".em-contrast-card, .em-card")&&(a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.text.contrastColor};`),e.setAttribute("style",a)),"Safe Fonts"===l[0]?(e.style.fontFamily=l[1],He({elem:t})):"Google Fonts"===l[0]&&("Sans Serif"===l[1]?e.style.fontFamily="Helvetica, Arial, sans-serif":"Serif"===l[1]&&(e.style.fontFamily='"Times New Roman", Times, serif'),e.classList.remove(...[...e.classList].filter(e=>e.startsWith("em-font"))),e.classList.add(`em-font-${l[2].replace(/\s/g,"")}-${l[3].replace(/\s/g,"")}`),Ue({elem:t,fontFamilyArray:l})),e.closest('[em="atom"] > tr > td')&&e.closest('[em="atom"] > tr > td').style.paddingBottom)e.closest('[em="atom"] > tr > td').style.paddingBottom=R.text.paddingBottom+"px";else if(e.nextElementSibling||e.closest("table")&&e.closest("table").nextElementSibling){var n;let t=null!==(n=e.nextElementSibling)&&void 0!==n?n:e.closest("table").nextElementSibling;t&&"TABLE"===t.tagName&&(t.classList.contains("em-vindent-table")||""===t.querySelector("td").innerHTML)&&t.querySelector("td").setAttribute("height",R.text.paddingBottom)}}else if(!e.style.display&&parseFloat(e.style.fontSize)>=20&&"#eb3737"!==ze(e.style.color).toLowerCase()){let n="",a=R.headings.fontFamily;parseFloat(e.style.fontSize)<40&&(n=e.getAttribute("style").replace(/font-size:(\s+)?.*?px/,`font-size: ${R.headings.fontSize}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${R.headings.lineHeight}px`),e.setAttribute("style",n)),e.closest(".em-contrast-card, .em-card")||"#ffffff"===ze(e.style.color).toLowerCase()||(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.headings.color};`),e.setAttribute("style",n)),e.closest(".em-contrast-block")&&!e.closest(".em-contrast-card, .em-card")&&(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.headings.contrastColor};`),e.setAttribute("style",n)),"Safe Fonts"===a[0]?(e.style.fontFamily=a[1],He({elem:t})):"Google Fonts"===a[0]&&("Sans Serif"===a[1]?e.style.fontFamily="Helvetica, Arial, sans-serif":"Serif"===a[1]&&(e.style.fontFamily='"Times New Roman", Times, serif'),e.classList.remove(...[...e.classList].filter(e=>e.startsWith("em-font"))),e.classList.add(`em-font-${a[2].replace(/\s/g,"")}-${a[3].replace(/\s/g,"")}`),Ue({elem:t,fontFamilyArray:a}));let l="";if(l=R.headings.letterSpacing>0?e.style.letterSpacing?e.getAttribute("style").replace(/letter-spacing:(\s+)?.*?px/,`letter-spacing: ${R.headings.letterSpacing}px`):e.getAttribute("style")+` letter-spacing: ${R.headings.letterSpacing}px;`:e.getAttribute("style").replace(/(\s+)?letter-spacing:(\s+)?.*?px(;)?/,""),e.setAttribute("style",l),R.headings.bold?e.querySelector("b")?e.querySelector("b").replaceWith(...e.querySelector("b").childNodes):e.querySelector("strong")||(e.innerHTML="<strong>"+e.innerHTML+"</strong>"):e.querySelector("strong")?e.querySelector("strong").replaceWith(...e.querySelector("strong").childNodes):e.querySelector("b")&&e.querySelector("b").replaceWith(...e.querySelector("b").childNodes),e.style.fontWeight){let t=e.getAttribute("style").replace(/(\s+)?font-weight:(\s+)?(bold|[0-9]*)(;)?/,"");e.setAttribute("style",t)}if(R.headings.italic?e.querySelector("i")?e.querySelector("i").replaceWith(...e.querySelector("i").childNodes):e.querySelector("em")||(e.innerHTML="<em>"+e.innerHTML+"</em>"):e.querySelector("em")?e.querySelector("em").replaceWith(...e.querySelector("em").childNodes):e.querySelector("i")&&e.querySelector("i").replaceWith(...e.querySelector("i").childNodes),e.style.fontStyle){let t=e.getAttribute("style").replace(/(\s+)?font-style:(\s+)?.*?;/,"");e.setAttribute("style",t)}if(e.closest('[em="atom"] > tr > td')&&e.closest('[em="atom"] > tr > td').style.paddingTop)e.closest('[em="atom"] > tr > td').style.paddingTop=R.headings.paddingTop+"px";else if(e.previousElementSibling){let t=e.previousElementSibling;t&&"TABLE"===t.tagName&&(t.classList.contains("em-vindent-table")||""===t.querySelector("td").innerHTML)&&t.querySelector("td").setAttribute("height",R.headings.paddingTop)}if(e.closest('[em="atom"] > tr > td')&&e.closest('[em="atom"] > tr > td').style.paddingBottom)e.closest('[em="atom"] > tr > td').style.paddingBottom=R.headings.paddingBottom+"px";else if(e.nextElementSibling){let t=e.nextElementSibling;t&&"TABLE"===t.tagName&&(t.classList.contains("em-vindent-table")||""===t.querySelector("td").innerHTML)&&t.querySelector("td").setAttribute("height",R.headings.paddingBottom)}}}),t.querySelectorAll('a[style*="color"]').forEach(e=>{if(e.style.display){if(e.style.display&&"block"===e.style.display){let n="";if(n=e.getAttribute("style").replace(/font-size:(\s+)?.*?px/,`font-size: ${R.buttons.fontSize}px`),e.setAttribute("style",n),!e.closest("td").style.backgroundColor||e.closest("td").style.borderWidth||e.closest(".em-contrast-card"))if(e.closest("td").style.borderWidth)if(Object.values(R.buttons.border).every(e=>null===e)){if(e.closest(".em-contrast-block")){if(R.buttons.contrastBackgroundColor){let t=e.closest("td").getAttribute("style").replace(/border:\s*\d+px\s+solid\s+#[A-Fa-f0-9]{6}/,e=>e.replace(/#[A-Fa-f0-9]{6}/,`${R.buttons.contrastBackgroundColor}`));e.closest("td").setAttribute("style",t),n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.buttons.contrastBackgroundColor};`),e.setAttribute("style",n)}}else if(R.buttons.backgroundColor){let t=e.closest("td").getAttribute("style").replace(/border:\s*\d+px\s+solid\s+#[A-Fa-f0-9]{6}/,e=>e.replace(/#[A-Fa-f0-9]{6}/,`${R.buttons.backgroundColor}`));e.closest("td").setAttribute("style",t),n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.buttons.backgroundColor};`),e.setAttribute("style",n)}}else for(const t in R.buttons.border)R.buttons.border[t]&&void 0!==R.buttons.border[t].color&&(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.buttons.border[t].color};`),e.setAttribute("style",n));else e.closest(".em-contrast-block")?R.buttons.contrastBackgroundColor&&(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.buttons.contrastBackgroundColor};`),e.setAttribute("style",n)):R.buttons.backgroundColor&&(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.buttons.backgroundColor};`),e.setAttribute("style",n));else if(n=e.closest(".em-contrast-block")?e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.buttons.contrastColor};`):e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.buttons.color};`),e.setAttribute("style",n),e.closest(".em-contrast-block"))if(R.buttons.contrastBackgroundColor){let t=e.closest("td").getAttribute("style").replace(/background-color:(\s+)?.*?;/,`background-color: ${R.buttons.contrastBackgroundColor};`);e.closest("td").setAttribute("style",t)}else e.closest("td").style.removeProperty("background-color");else if(R.buttons.backgroundColor){let t=e.closest("td").getAttribute("style").replace(/background-color:(\s+)?.*?;/,`background-color: ${R.buttons.backgroundColor};`);e.closest("td").setAttribute("style",t)}else e.closest("td").style.removeProperty("background-color");let a=R.buttons.fontFamily;"Safe Fonts"===a[0]?(e.style.fontFamily=a[1],He({elem:t})):"Google Fonts"===a[0]&&("Sans Serif"===a[1]?e.style.fontFamily="Helvetica, Arial, sans-serif":"Serif"===a[1]&&(e.style.fontFamily='"Times New Roman", Times, serif'),e.classList.remove(...[...e.classList].filter(e=>e.startsWith("em-font"))),e.classList.add(`em-font-${a[2].replace(/\s/g,"")}-${a[3].replace(/\s/g,"")}`),Ue({elem:t,fontFamilyArray:a})),e.closest("td").setAttribute("align",R.buttons.textAlign);let l="";if(l=R.buttons.letterSpacing>0?e.style.letterSpacing?e.getAttribute("style").replace(/letter-spacing:(\s+)?.*?px/,`letter-spacing: ${R.buttons.letterSpacing}px`):e.getAttribute("style")+` letter-spacing: ${R.buttons.letterSpacing}px;`:e.getAttribute("style").replace(/(\s+)?letter-spacing:(\s+)?.*?px(;)?/,""),e.setAttribute("style",l),R.buttons.bold?e.querySelector("b")?e.querySelector("b").replaceWith(...e.querySelector("b").childNodes):e.querySelector("strong")||(e.innerHTML="<strong>"+e.innerHTML+"</strong>"):e.querySelector("strong")?e.querySelector("strong").replaceWith(...e.querySelector("strong").childNodes):e.querySelector("b")&&e.querySelector("b").replaceWith(...e.querySelector("b").childNodes),e.style.fontWeight){let t=e.getAttribute("style").replace(/(\s+)?font-weight:(\s+)?(bold|[0-9]*)(;)?/,"");e.setAttribute("style",t)}if(R.buttons.italic?e.querySelector("i")?e.querySelector("i").replaceWith(...e.querySelector("i").childNodes):e.querySelector("em")||(e.innerHTML="<em>"+e.innerHTML+"</em>"):e.querySelector("em")?e.querySelector("em").replaceWith(...e.querySelector("em").childNodes):e.querySelector("i")&&e.querySelector("i").replaceWith(...e.querySelector("i").childNodes),e.style.fontStyle){let t=e.getAttribute("style").replace(/(\s+)?font-style:(\s+)?.*?;/,"");e.setAttribute("style",t)}if(e.closest('[em="atom"] > tr > td')&&e.closest('[em="atom"] > tr > td').style.paddingTop)e.closest('[em="atom"] > tr > td').style.paddingTop=R.buttons.marginTop+"px";else if(e.closest("table").previousElementSibling){let t=e.closest("table").previousElementSibling;t&&"TABLE"===t.tagName&&(t.classList.contains("em-vindent-table")||""===t.querySelector("td").innerHTML)&&t.querySelector("td").setAttribute("height",R.buttons.marginTop)}if(e.closest('[em="atom"] > tr > td')&&e.closest('[em="atom"] > tr > td').style.paddingBottom)e.closest('[em="atom"] > tr > td').style.paddingBottom=R.buttons.marginBottom+"px";else if(e.closest("table").previousElementSibling){let t=e.closest("table").nextElementSibling;t&&"TABLE"===t.tagName&&(t.classList.contains("em-vindent-table")||""===t.querySelector("td").innerHTML)&&t.querySelector("td").setAttribute("height",R.buttons.marginBottom)}R.buttons.padding.all&&(e.style.padding=R.buttons.padding.all+"px"),R.buttons.padding.top&&(e.style.paddingTop=R.buttons.padding.top+"px"),R.buttons.padding.right&&(e.style.paddingRight=R.buttons.padding.right+"px"),R.buttons.padding.bottom&&(e.style.paddingBottom=R.buttons.padding.bottom+"px"),R.buttons.padding.left&&(e.style.paddingLeft=R.buttons.padding.left+"px"),qe({settings:{border:R.buttons.border},elem:e.closest("td")}),Ze({settings:{borderRadius:R.buttons.borderRadius},elem:e.closest("td")})}}else{let n=R.text.fontFamily;if("#1c52dc"===ze(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.links.color};`);e.setAttribute("style",t)}else{let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.text.color};`);e.setAttribute("style",t)}if(e.closest(".em-contrast-block")){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${R.links.contrastColor};`);e.setAttribute("style",t)}let a="";a=R.links.underline?e.style.textDecoration?e.getAttribute("style").replace(/(\s+)?text-decoration:(\s+)?.*?;/,"text-decoration: underline;"):e.getAttribute("style")+" text-decoration: underline;":e.style.textDecoration?e.getAttribute("style").replace(/(\s+)?text-decoration:(\s+)?.*?;/,"text-decoration: none;"):e.getAttribute("style")+" text-decoration: none;",e.setAttribute("style",a),"Safe Fonts"===n[0]?(e.style.fontFamily=n[1],He({elem:t})):"Google Fonts"===n[0]&&("Sans Serif"===n[1]?e.style.fontFamily="Helvetica, Arial, sans-serif":"Serif"===n[1]&&(e.style.fontFamily='"Times New Roman", Times, serif'),e.classList.remove(...[...e.classList].filter(e=>e.startsWith("em-font"))),e.classList.add(`em-font-${n[2].replace(/\s/g,"")}-${n[3].replace(/\s/g,"")}`),Ue({elem:t,fontFamilyArray:n}))}}),t.querySelector('[em="block"]'))){var n,a;const e=t.querySelectorAll('[em="block"]');null!==(n=R.block)&&void 0!==n&&n.backgroundColor&&e.forEach(e=>{e.querySelectorAll(":scope > td").forEach(e=>{e.setAttribute("bgcolor",R.block.backgroundColor)})}),null!==(a=R.block)&&void 0!==a&&a.padding&&e.forEach(e=>{e.querySelectorAll(":scope > td").forEach(e=>{e.style.paddingTop=R.block.padding.top+"px",e.style.paddingRight=R.block.padding.right+"px",e.style.paddingBottom=R.block.padding.bottom+"px",e.style.paddingLeft=R.block.padding.left+"px"})})}return"DIV"===t.tagName?(0,K.uL)(t):(0,K.uL)(t.querySelector("tbody"))},He=e=>{e.elem.querySelectorAll("link[em-class]").forEach(t=>{e.elem.querySelector("."+t.getAttribute("em-class"))||t.remove()})};function ze(e){if(e&&"r"===e.charAt(0)){if("a"===e.charAt(3))return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):"";{e=e.replace("rgb(","").replace(")","").split(",");let t=parseInt(e[0],10).toString(16),n=parseInt(e[1],10).toString(16),a=parseInt(e[2],10).toString(16);return t=1===t.length?"0"+t:t,n=1===n.length?"0"+n:n,a=1===a.length?"0"+a:a,"#"+t+n+a}}if(e&&"#"===e.charAt(0))return e}const Ue=e=>{var t;const n=e.elem.querySelectorAll("link"),a=`em-font-${e.fontFamilyArray[2].replace(/\s/g,"")}-${e.fontFamilyArray[3].replace(/\s/g,"")}`;if(!!(null===(t=Array.from(n))||void 0===t||!t.find(e=>e.getAttribute("em-class")===a))){let t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",`https://fonts.googleapis.com/css2?family=${e.fontFamilyArray[2]}:ital,wght@${$e[e.fontFamilyArray[3]].indexOf("i")>-1?"1":"0"},${$e[e.fontFamilyArray[3]].replaceAll("i","")}&display=swap`),t.setAttribute("em-class",a),e.elem.insertAdjacentElement("afterbegin",t)}!function(e){if(!e.elem.querySelector('style[em="styles"]')){let t=document.createElement("style");t.setAttribute("em","styles"),e.elem.append(t)}}({elem:e.elem});let l=`font-family: '${e.fontFamilyArray[2]}', ${Ge[e.fontFamilyArray[1]]}!important;`;l+=` font-weight: ${$e[e.fontFamilyArray[3]].replaceAll("i","")}!important;`,$e[e.fontFamilyArray[3]].indexOf("i")>-1&&(l+=" font-style: italic!important;"),e.elem.querySelector('style[em="styles"]').insertAdjacentHTML("beforeend",`\n.em-font-${e.fontFamilyArray[2].replace(/\s/g,"")}-${e.fontFamilyArray[3].replace(/\s/g,"")} { ${l} }`),setTimeout(()=>He({elem:e.elem}),0)},qe=e=>{e.settings.border.all?null!=e.settings.border.all.width&&(e.settings.border.all.style||e.settings.border.all.color)?(e.elem.style.borderWidth=e.settings.border.all.width+"px",e.elem.style.borderStyle=e.settings.border.all.style,e.elem.style.borderColor=e.settings.border.all.color):e.elem.style.removeProperty("border"):(e.settings.border.top&&(null!=e.settings.border.top.width&&(e.settings.border.top.style||e.settings.border.top.color)?(e.elem.style.borderTopWidth=e.settings.border.top.width+"px",e.elem.style.borderTopStyle=e.settings.border.top.style,e.elem.style.borderTopColor=e.settings.border.top.color):e.elem.style.removeProperty("border-top")),e.settings.border.right&&(null!=e.settings.border.right.width&&(e.settings.border.right.style||e.settings.border.right.color)?(e.elem.style.borderRightWidth=e.settings.border.right.width+"px",e.elem.style.borderRightStyle=e.settings.border.right.style,e.elem.style.borderRightColor=e.settings.border.right.color):e.elem.style.removeProperty("border-right")),e.settings.border.bottom&&(null!=e.settings.border.bottom.width&&(e.settings.border.bottom.style||e.settings.border.bottom.color)?(e.elem.style.borderBottomWidth=e.settings.border.bottom.width+"px",e.elem.style.borderBottomStyle=e.settings.border.bottom.style,e.elem.style.borderBottomColor=e.settings.border.bottom.color):e.elem.style.removeProperty("border-bottom")),e.settings.border.left&&(null!=e.settings.border.left.width&&(e.settings.border.left.style||e.settings.border.left.color)?(e.elem.style.borderLeftWidth=e.settings.border.left.width+"px",e.elem.style.borderLeftStyle=e.settings.border.left.style,e.elem.style.borderLeftColor=e.settings.border.left.color):e.elem.style.removeProperty("border-left")))},Ze=e=>{e.settings.borderRadius.all?e.elem.style.borderRadius=e.settings.borderRadius.all+"px":""===e.settings.borderRadius.all?e.elem.style.removeProperty("border-radius"):(e.settings.borderRadius.topLeft?e.elem.style.borderTopLeftRadius=e.settings.borderRadius.topLeft+"px":""===e.settings.borderRadius.topLeft&&e.elem.style.removeProperty("border-top-left-radius"),e.settings.borderRadius.topRight?e.elem.style.borderTopRightRadius=e.settings.borderRadius.topRight+"px":""===e.settings.borderRadius.topRight&&e.elem.style.removeProperty("border-top-right-radius"),e.settings.borderRadius.bottomRight?e.elem.style.borderBottomRightRadius=e.settings.borderRadius.bottomRight+"px":""===e.settings.borderRadius.bottomRight&&e.elem.style.removeProperty("border-bottom-right-radius"),e.settings.borderRadius.bottomLeft?e.elem.style.borderBottomLeftRadius=e.settings.borderRadius.bottomLeft+"px":""===e.settings.borderRadius.bottomLeft&&e.elem.style.removeProperty("border-bottom-left-radius"))},$e={Thin:"100","Thin Italic":"100i",ExtraLight:"200","ExtraLight Italic":"200i",Light:"300","Light Italic":"300i",Regular:"400","Regular Italic":"400i",Medium:"500","Medium Italic":"500i",SemiBold:"600","SemiBold Italic":"600i",Bold:"700","Bold Italic":"700i",ExtraBold:"800","ExtraBold Italic":"800i",Black:"900","Black Italic":"900i"},Ge={"Sans Serif":"sans-serif",Serif:"serif"};return a.createElement("div",{className:d()("blocks-search",{is_search:n})},a.createElement(l.lV,{className:d()("blocks-search__form",{is_search:n}),form:b,layout:"vertical",name:"blocks_search_form",initialValues:{...re},onValuesChange:e=>{const t=Object.keys(e)[0],n=b.getFieldsValue(!0);switch(t){case oe:const a=(0,Q._q)(F,g.YY).filter(n=>e[t].includes(n.name)).map(e=>e.id)||null;Ne({tags:a});break;case ie:Ne({type:n.type||null});break;case le:T.current&&window.clearTimeout(T.current),T.current=window.setTimeout(function(){Ne({name:n.name||null})},300)}},autoComplete:"off"},a.createElement(l.lV.Item,{name:le},a.createElement(l.DO,{placeholder:C("Search by title"),allowClear:!0,enterButton:!1}))),(H||ge||ke)&&a.createElement(l.Fc,{message:C("Error"),description:C("Error when receiving data. Try again (reload page) or contact support."),type:"error",showIcon:!0}),n&&!Ve&&a.createElement("div",{className:"blocks-search__type-wrapper"},a.createElement("ul",null,a.createElement("li",{key:"search_All","data-type":"",className:"active",onClick:Re},C("All")),Ie.map(e=>a.createElement("li",{"data-type":e,onClick:Re,key:"search_"+e},C(g.jg[e]))))),a.createElement("div",{ref:I,className:d()("blocks-search__result-wrapper",{is_search:n})},("project"===t||n)&&a.createElement(a.Fragment,null,!!ce.length&&!n&&a.createElement("div",{className:"blocks-search__type-wrapper"},a.createElement("ul",null,a.createElement("li",{key:"blocksSections_All","data-type":"",className:"active",onClick:Re},C("All")),ce.map(e=>a.createElement("li",{key:"blocksSections_"+e,"data-type":e,onClick:Re},C(g.jg[e]))))),a.createElement("div",{className:d()("blocks-search__blocks-wrapper",{is_search:n}),ref:O},a.createElement("div",{className:"blocks-search__result-holder project"},!(z||U)&&(null!==G&&void 0!==G&&G.length?G.map((e,t)=>{const n=(0,ae.p)('<table cellspacing="0" cellpadding="0" border="0" width="100%">'+e.html+"</table>");return a.createElement("div",{className:"blocks-search__result","data-type":e.type,key:e.id+t.toString()},a.createElement(l.ms,{key:"commenMenu",placement:"leftTop",menu:{items:We(e)},overlayStyle:{minWidth:"auto",paddingRight:6}},a.createElement("div",{className:"ant-card-hoverable blocks-search__result-body",draggable:!0,onClick:t=>h(t,e.html,"project"),onDragStart:t=>f(t,e.html,"project"),onMouseEnter:()=>Me({html:e.html,title:e.title}),onMouseLeave:Pe},a.createElement("div",{className:"blocks-search__result-html",dangerouslySetInnerHTML:{__html:n},style:{transform:`scale(${B})`}}))))}):!(j.tags||j.name||j.type)&&D&&!(z||U)&&!n&&a.createElement("div",{style:{padding:"10px 0 20px",display:"flex",flexDirection:"row",justifyContent:"space-between"}},a.createElement("div",{style:{width:"110%"}},a.createElement("h3",{style:{lineHeight:"1.2"}},C("You don`t have any saved blocks yet.")),C("To add a block from the dashboard click the"),' "',C("Save to Blocks button."),'" ',a.createElement(v.Ay,{icon:"SaveBlock",style:{position:"relative",top:"2px"}}),a.createElement("br",null),a.createElement("br",null),C("You can also save all blocks at once. The AI assistant will automatically determine the type and create a name for each block when saving."),a.createElement("br",null),a.createElement("br",null),a.createElement(l.so,{justify:"left"},a.createElement(l.$n,{type:"primary",onClick:()=>u(!0),style:{cursor:"pointer"}},C("Save all blocks")))),a.createElement("div",{style:{width:"80px",height:"200px"}},a.createElement("img",{src:te,style:{display:"block",width:80,position:"absolute",right:5}}))))),(z||U)&&a.createElement(l.EA,{active:!0}))),n&&(null===q||void 0===q?void 0:q.length)>0&&(null===L||void 0===L?void 0:L.length)>0&&a.createElement(l.cG,{className:"blocks-search__result-divider"}),("template"===t||n)&&a.createElement(a.Fragment,null,!!ve.length&&!n&&a.createElement("div",{className:"blocks-search__type-wrapper"},a.createElement("ul",null,a.createElement("li",{"data-type":"",className:"active",onClick:Re,key:"templateBlocksSections_All"},C("All")),ve.map(e=>a.createElement("li",{key:"templateBlocksSections_"+e,"data-type":e,onClick:Re},C(g.jg[e]))))),a.createElement("div",{className:d()("blocks-search__blocks-wrapper",{is_search:n}),ref:M},a.createElement("div",{className:"blocks-search__result-holder template"},L&&!he&&!fe&&null!==be&&void 0!==be&&be.length?a.createElement(a.Fragment,null,be.map((e,t)=>{const n=(0,ae.p)('<table cellspacing="0" cellpadding="0" border="0" width="100%">'+e.html+"</table>");return a.createElement("div",{className:"blocks-search__result","data-type":e.type,key:e.id+t.toString()},a.createElement("div",{className:"ant-card-hoverable blocks-search__result-body",draggable:!0,onClick:t=>h(t,e.html,"template"),onDragStart:t=>f(t,e.html,"template"),onMouseEnter:()=>Me({html:e.html,title:e.title}),onMouseLeave:()=>Pe()},a.createElement("div",{className:"blocks-search__result-html",dangerouslySetInnerHTML:{__html:n},style:{transform:`scale(${B})`}})))})):!n&&!Ae&&!fe&&a.createElement("div",{className:"blocks-search__type",style:{padding:"10px 0 20px"}},C("No related blocks found."))," "),(he||fe)&&a.createElement(l.EA,{active:!0}))),n&&(null===L||void 0===L?void 0:L.length)>0&&(null===xe||void 0===xe?void 0:xe.length)>0&&a.createElement(l.cG,{className:"blocks-search__result-divider"}),("common"===t||n)&&a.createElement(a.Fragment,null,!(null===Le||void 0===Le||!Le.length)&&!n&&a.createElement("div",{className:"blocks-search__type-wrapper"},a.createElement("ul",null,a.createElement("li",{"data-type":"",className:"active",onClick:Re,key:"commonBlocksSections_All"},C("All")),Le.map(e=>a.createElement("li",{"data-type":e,onClick:Re,key:"commonBlocksSections_"+e},C(g.jg[e]))))),a.createElement("div",{className:d()("blocks-search__blocks-wrapper",{is_search:n}),ref:P},a.createElement("div",{className:"blocks-search__result-holder common"},Ce&&!(null===Se||void 0===Se||!Se.length)&&!(we||Ae)&&a.createElement(a.Fragment,null,Se.map((e,t)=>{const n=De({html:(0,ae.p)('<table cellspacing="0" cellpadding="0" border="0" width="100%">'+e.html+"</table>")});return a.createElement("div",{className:"blocks-search__result","data-type":e.type,key:e.id+t.toString()},a.createElement("div",{className:"ant-card-hoverable blocks-search__result-body",draggable:!0,onClick:t=>h(t,De({html:e.html}),"common"),onDragStart:t=>f(t,De({html:e.html}),"common"),onMouseEnter:()=>Me({html:De({html:(0,ae.p)('<table cellspacing="0" cellpadding="0" border="0" width="100%">'+e.html+"</table>")}),title:e.title}),onMouseLeave:()=>Pe()},a.createElement("div",{className:"blocks-search__result-html",dangerouslySetInnerHTML:{__html:n},style:{transform:`scale(${B})`}})))}))," "),(Ae||we)&&a.createElement(l.EA,{active:!0}))),Ve&&a.createElement("div",{className:"blocks-search__type",style:{padding:"10px 0 20px"}},C("There are no blocks for this request."))))};var de=n(10336),me=n(50710);const ue=`<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%" class="em-mob-width-100perc" em="atom"><tr><td>\n <img src=${n.p+"static/media/empty-image.1827d6561f3c4042dfb3.png"} width="150" border="0" alt="" style="display: block; width: 100%; max-width: 150px;" />\n</td></tr></table>`,pe=`<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%" class="em-mob-width-100perc" em="atom"><tr><td>\n <img class="em-ai-img em-just-inserted" src="${n.p+"static/media/ai-image.7c42c2e12001ebf31881.png"}" width="150" border="0" alt="" style="display: block; width: 100%; max-width: 150px;" />\n</td></tr></table>`;var ge=n(77686),he=n.n(ge),fe=n(3236),be=n.n(fe),ve=n(55921),Ee=n.n(ve),ye=n(59019),_e=n.n(ye),Ce=n(42274),ke=n.n(Ce),Ae=n(48760),we=n.n(Ae),xe=n(90593),Se=n.n(xe),Le=n(3774);n(44731);function Te(e){return String(null!==e&&void 0!==e?e:"").replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<")}const Ie=(0,Le.v3)(),{iconSize:Ne,gap:Be,align:Re}={align:"center",iconSize:40,borderRadius:0,gap:8,bgEnabled:!1,bgColor:"",borderWidth:0,borderColor:"",buttonBorderColor:"",buttonBorderWidth:0,showLabel:!1},Oe=Math.max(0,Math.round(Number(Be)||0)),Me=Ie.length>1,Pe=Ie.map((e,t)=>{const n=function(e){var t;const n=String(null!==e&&void 0!==e?e:"").trim();if(!n)return"";if(/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(n))return n;const a="undefined"!==typeof window&&null!==(t=window.location)&&void 0!==t&&t.origin?window.location.origin:"";if(!a)return n;try{return new URL(n,a).href}catch{return n}}(Le.Ef[e.platform]);if(!n)return"";const a=Te(e.label),l=Te(e.href||""),i=Me?' draggable="true"':"";return`<td em-platform="${e.platform}"${i}><a href="${l}" target="_blank" draggable="false"><img src="${n}" width="${Ne}" border="0" alt="${a}" draggable="false" style="display:block;" /></a></td>`}).filter(Boolean).reduce((e,t,n)=>(n>0&&e.push(function(e){return e>0?`<td width="${e}"> </td>`:""}(Oe)),e.push(t),e),[]).join(""),Ve=`<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%" class="em-mob-width-100perc" em="atom" em-type="social"><tr><td align="${Re}">\n <table border="0" cellspacing="0" cellpadding="0">\n <tr>${Pe}\n </tr>\n </table>\n</td></tr></table>`;var Fe=n(74117),je=n.n(Fe);const We=new Date,De=new Date(+We+432e6).toISOString(),He=-(new Date).getTimezoneOffset()/60,ze=e=>`<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%" class="em-mob-width-100perc" em="atom"><tr><td align="center"><img class="em-countdown" em-cd-settings="locale=${e.replace("_","-")}&bg=FFFFFF&tp=false&color1=000000&color2=959595&size1=72&size2=28&font1=roboto&font2=roboto&border=10&delimiter=:&spacing=10&time=${De}&timezone=${He}&frames=20" src="${(e=>`https://cdt3.emcdn.ru/rndt?locale=${e.replace("_","-")}&bg=FFFFFF&tp=false&color1=000000&color2=959595&size1=72&size2=28&font1=roboto&font2=roboto&border=10&delimiter=:&spacing=10&time=${De}&timezone=${He}&frames=20`)(e)}" border="0" alt="" style="display: block;" /></td></tr></table>`,Ue=`<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%" class="em-mob-width-100perc" em="atom"><tr><td>\n <img class="em-video" src="${n.p+"static/media/video.854adea50295d0a3f7ae.png"}" width="150" border="0" alt="" style="display: inline-block; width: 100%; max-width: 150px;" />\n</td></tr></table>`;var qe=n(64383),Ze=n.n(qe),$e=n(91810),Ge=n.n($e),Ke=n(81644),Xe=n(98173),Ye=n(22817);const Je=()=>{var e,t;const n=(0,r.s9)(),{__:o}=n,s=(0,h.rD)(),c=(0,i.d4)(Ye.yN),d=(0,i.d4)(Xe.B$),m=(0,i.d4)(Xe.C1),u=(0,i.d4)(Xe.B),p=(0,Q.X7)(),g=(0,Q.Qi)(),[f,b]=(0,a.useState)(!1),[E,y]=(0,a.useState)(0);let _=!(d||(null===(e=m.id)||void 0===e?void 0:e.toString())!==(null===c||void 0===c||null===(t=c.members)||void 0===t?void 0:t.owner.ID));const C=[];s.elementImageEnabled&&C.push({title:o("Image"),icon:a.createElement(v.Ay,{icon:"ElementImage",size:24,strokeWidth:s.iconStrokeWidth}),html:ue,className:"",name:"image"}),s.elementAIimageEnabled&&C.push({title:o("AI image"),icon:a.createElement(v.Ay,{icon:"ElementImageAI",size:24,strokeWidth:s.iconStrokeWidth}),html:pe,className:"ai",name:"ai-image"}),s.elementTextEnabled&&C.push({title:o("Text"),icon:a.createElement(v.Ay,{icon:"ElementText",size:24,strokeWidth:s.iconStrokeWidth}),html:he()(n),className:"",name:"text"}),s.elementHeaderEnabled&&C.push({title:o("Header"),icon:a.createElement(v.Ay,{icon:"ElementTitle",size:24,strokeWidth:s.iconStrokeWidth}),html:be()(n),className:"",name:"header"}),s.elementButtonEnabled&&C.push({title:o("Button"),icon:a.createElement(v.Ay,{icon:"ElementButton",size:24,strokeWidth:s.iconStrokeWidth}),html:Ee()(n),className:"",name:"button"}),s.elementSpacerEnabled&&C.push({title:o("Spacer"),icon:a.createElement(v.Ay,{icon:"ElementSpacer",size:24,strokeWidth:s.iconStrokeWidth}),html:Se(),className:"",name:"spacer"}),s.elementListULEnabled&&C.push({title:o("List UL"),icon:a.createElement(v.Ay,{icon:"ElementListUL",size:24,strokeWidth:s.iconStrokeWidth}),html:_e()(n),className:"",name:"list-ul"}),s.elementListOLEnabled&&C.push({title:o("List OL"),icon:a.createElement(v.Ay,{icon:"ElementListOL",size:24,strokeWidth:s.iconStrokeWidth}),html:ke()(n),className:"",name:"list-ol"}),s.elementDividerEnabled&&C.push({title:o("Divider"),icon:a.createElement(v.Ay,{icon:"ElementDivider",size:24,strokeWidth:s.iconStrokeWidth}),html:we(),className:"",name:"divider"}),s.elementSocialEnabled&&C.push({title:o("Social media"),icon:a.createElement(v.Ay,{icon:"ElementSocial",size:24,strokeWidth:s.iconStrokeWidth}),html:Ve,className:"",name:"social"}),s.elementTableEnabled&&C.push({title:o("Table"),icon:a.createElement(v.Ay,{icon:"ElementTable",size:24,strokeWidth:s.iconStrokeWidth}),html:je()(n),className:"",name:"table"}),s.elementCountdownEnabled&&C.push({title:o("Countdown"),icon:a.createElement(v.Ay,{icon:"ElementCountdown",size:24,strokeWidth:s.iconStrokeWidth}),html:ze(u),className:"",name:"countdown"}),s.elementVideoEnabled&&C.push({title:o("Video"),icon:a.createElement(v.Ay,{icon:"ElementVideo",size:24,strokeWidth:s.iconStrokeWidth}),html:Ue,className:"",name:"video"}),s.elementCarouselEnabled&&C.push({title:o("Carousel"),icon:a.createElement(v.Ay,{icon:"ElementCarousel",size:24,strokeWidth:s.iconStrokeWidth}),html:Ze()(n),className:"amp",name:"amp-carousel"}),s.elementAccordionEnabled&&C.push({title:o("Accordion"),icon:a.createElement(v.Ay,{icon:"ElementAccordion",size:24,strokeWidth:s.iconStrokeWidth}),html:Ge()(n),className:"amp",name:"amp-accordion"}),s.elementFormEnabled&&C.push({title:o("Form"),icon:a.createElement(v.Ay,{icon:"ElementForm",size:24,strokeWidth:s.iconStrokeWidth}),html:null,className:"amp",name:"amp-form"});const k=e=>!_||"ai-image"!==e.name||(setTimeout(()=>{b(!0),y(2)},1e3),!1);return a.createElement("div",{className:"atoms"},a.createElement("div",{className:"atoms__list"},a.createElement(l.$x,{wrap:!0,style:{justifyContent:"space-between",rowGap:10}},C&&C.map((e,t)=>e.html?a.createElement("div",{className:"ant-card-hoverable atoms__item "+e.className,draggable:!0,onClick:t=>p(t,e.html),onDragStart:t=>g(t,e,k),key:e.title+t.toString(),"data-test-name":e.name},a.createElement("span",{className:"atom-image"},e.icon),a.createElement("span",{className:"atom-title"},e.title)):a.createElement(l.m_,{title:o("Coming soon"),placement:"top",key:e.title+t.toString()},a.createElement("div",{className:"atoms__item atoms__item_inactive "+e.className,key:e.title+t.toString(),"data-test-name":e.name},a.createElement("span",{className:"atom-image"},e.icon),a.createElement("span",{className:"atom-title"},e.title)))))),a.createElement(Ke.A,{open:f,onCancel:()=>b(!1),initialSlide:E}))};var Qe=n(65017),et=n(81793),tt=n(96553);const nt=()=>{},at=({email:e,formSettings:t,onClosePanel:n=nt})=>{var o,s;const{__:c}=(0,r.s9)(),d=(0,ne.cR)(),m=(0,i.wA)(),u=(0,_.XW)(),p=Object.prototype.hasOwnProperty.call(e,"type")?g.IE:g.Tm,f=(0,i.d4)(E.qX),b=(0,i.d4)(R.qX),v=(0,i.d4)(y.Tn),C=p===g.Tm?f:b,k=Object.keys(t).length>0?t.settings:C,A=(0,h.rD)(),w="customTable"===k.type,x=!!k.type&&!(null===(o=k.floatBlocks)||void 0===o||!o.items.length)>0&&!(null===(s=k.floatBlocks)||void 0===s||!s.items.filter(e=>!!e.width).length)>0,S=(0,a.useRef)(null);(0,a.useEffect)(()=>{const e=Object.values(g.bV),t=k.type&&e.includes(k.type)?`${k.type}-${JSON.stringify(k.path||[])}`:null;if(k.type&&e.includes(k.type)){const e=S.current!==t;if(S.current=t,"structure"!==k.activateSection){if(e){const e=d.querySelector(".email-pane .panel-form__body");e&&(e.scrollTop=0)}m((0,y.Bp)(g.WU))}else m((0,y.Bp)(g.mX))}else"{}"!==JSON.stringify(k)&&(S.current=null,m((0,y.Bp)("")))},[k,m,d]);const L=(0,a.useMemo)(()=>{const e=[{key:g.WU,label:a.createElement("span",{style:{textTransform:"capitalize"}},k.caption?k.caption:c("Edit element"))}];return x&&e.push({key:g.mX,label:c("Columns")}),e},[k.caption,x,c]),T=(0,a.useMemo)(()=>[{key:g.WU,label:c("Cell")},{key:g.zX,label:c("Table")}],[c]),I=a.createElement(a.Fragment,null,A.deleteButtonEnabled&&a.createElement(l.m_,{title:c("Remove element by Delete Key"),placement:"bottom"},a.createElement(l.$n,{type:"text",onClick:e=>{e.stopPropagation(),u({operation:g.Ru.SANDBOX_ELEMENT_REMOVE}),m(p===g.Tm?(0,E.A9)({}):(0,R.A9)({}))},disabled:!k.deletable,icon:a.createElement(l.HQ,{icon:"DeleteOutlined",size:18,strokeWidth:A.iconStrokeWidth})})),A.stepToOtherElementEnabled&&a.createElement(l.m_,{title:c("Up to parent element"),placement:"bottom"},a.createElement(l.$n,{type:"text",onClick:e=>{e.stopPropagation(),u({operation:g.Ru.SANDBOX_ELEMENT_PARENT_GET})},disabled:!k.parent,icon:a.createElement(l.HQ,{icon:"GoToParent",size:18,strokeWidth:A.iconStrokeWidth})}))),N=A.switchDesktopMobilePropsEnabled||A.stepToOtherElementEnabled||A.deleteButtonEnabled;return a.createElement(l.T8,null,a.createElement(l.T8.Header,{onClose:()=>{n(k),m((0,y.Fk)()),setTimeout(()=>{p===g.IE?m((0,R.A9)({type:null})):m((0,E.A9)({type:null}))},300),u({operation:g.Ru.SANDBOX_ELEMENT_ACTIVE_RESET})},closeIcon:a.createElement(l.HQ,{icon:"Close",size:24,strokeWidth:A.iconStrokeWidth}),extra:N?I:void 0},a.createElement(l.tU,{items:w?T:L,activeKey:v,onChange:e=>m((0,y.Bp)(e||""))})),a.createElement(l.T8.Body,null,w?a.createElement(a.Fragment,null,a.createElement("div",{style:{display:v===g.WU?void 0:"none"}},a.createElement(et.A,{className:"email-properties__collapse-panel selected-element-panel__content",formSettings:t,emailElementType:p,formName:`${g.om}`})),a.createElement("div",{style:{display:v===g.zX?void 0:"none"}},a.createElement(et.A,{className:"email-properties__collapse-panel selected-element-panel__content",formSettings:t,emailElementType:p,formName:`${g.zX}`}))):a.createElement(a.Fragment,null,a.createElement("div",{style:{display:v===g.WU?void 0:"none"}},a.createElement(et.A,{className:"email-properties__collapse-panel selected-element-panel__content",formSettings:t,emailElementType:p})),x&&a.createElement("div",{style:{display:v===g.mX?void 0:"none"}},a.createElement(tt.A,{selectedElement:k,emailElementType:p,isSelectedElement:!1})))))};at.defaultProps={formSettings:{},onClosePanel:nt};const lt=at;var it=n(74291),ot=n(91654),rt=n(83231),st=n(78344),ct=n(57701),dt=n(91480),mt=n(65185),ut=n(7314),pt=n(11822),gt=n(37444),ht=n(65893);const ft=e=>{const{__:t}=(0,r.s9)();return[{key:"\ud83d\udce7",label:a.createElement("div",{onClick:()=>{e("theme-and-preheader-generator")}},"\ud83d\udce7 ",t("Subject line & preheader generator"))},{key:"\ud83c\udf0e",label:a.createElement("div",{onClick:()=>{e("translator")}},"\ud83c\udf0e ",t("Translator"))},{key:"\ud83d\udcc4",label:a.createElement("div",{onClick:()=>{e("writer")}},"\ud83d\udcc4 ",t("Copywriter"))},{key:"\ud83d\udd0e",label:a.createElement("div",{onClick:()=>{e("corrector")}},"\ud83d\udd0e ",t("Proofreader"))},{key:"\ud83e\udde0",label:a.createElement("div",{onClick:()=>{e("psychologist")}},"\ud83e\udde0 ",t("Psychologist"))},{key:"\ud83d\udcc8",label:a.createElement("div",{onClick:()=>{e("marketolog")}},"\ud83d\udcc8 ",t("Marketer"))},{key:"\u2728",label:a.createElement("div",{onClick:()=>{e("email-generator")}},"\u2728 ",t("Email generator"))}]},bt=({messages:e,newEmailAiGeneratorRef:t})=>{const n=(0,ut.fn)(),{__:c,_n:d}=(0,r.s9)(),m=(0,i.wA)(),u=(0,o.Zp)(),p=(0,a.useRef)(null),f=(0,h.rD)(),b=(0,s.hN)(),{projectId:y,emailId:C}=(0,o.g)(),k=(0,dt.u)(),A=(0,mt.ml)(ht.AZ.ON_LIMIT_ID),[w,x]=(0,a.useState)(null),[S,L]=(0,a.useState)(0),[T,I]=(0,a.useState)(!1),[N,B]=(0,a.useState)(""),[R,O]=(0,a.useState)([]),[M,P]=(0,a.useState)(!1),[V,F]=(0,a.useState)(!1),[j,W]=(0,a.useState)(null),[D,H]=(0,a.useState)(0),[z,U]=(0,a.useState)(null),q=(0,i.d4)(E.Hs),Z=(0,i.d4)(Xe.C1),$=(0,_.QC)(),[G]=(0,rt.YG)(),K=(0,_.XW)(),[X,Y]=(0,rt.EQ)(),[J,{reset:ee}]=(0,st.MN)(),[te,{data:ne=[]}]=(0,st.y4)(),[ae]=(0,ct.Oq)(),le={cursor:T?"not-allowed":"default",pointerEvents:T?"none":"auto"};(0,a.useEffect)(()=>{z&&M&&(t.current=!0),M||(t.current=!1)},[z,M]);const ie=!(!f.limits||!f.counters)&&g.EW.isPlugin,{limits:oe}=g.EW.isPlugin&&f.limits?f:{limits:{ai_limit:0,ai_generator_limit:0}},{ai_limit:re,ai_generator_limit:se}=oe,ce=ie&&S>=re&&re>0,de=ie&&D>=se&&se>0,me=(0,a.useCallback)(()=>{A.fire({name:"AiChatCount",count:S+1})},[A,S]),ue=(0,a.useCallback)(()=>{A.fire({name:"AiGeneratorCount",count:D+1})},[A,D]),pe=(0,a.useCallback)(async e=>{var t;if(g.EW.isPlugin)return!0;const n=await ae(e);if(!(0,gt.jq)(null===(t=n.data)||void 0===t?void 0:t.stats))return!0;const a=c("email_generate"===e?"You have reached the limit of AI generator usage.":"You have reached the limit of AI chat usage.");return b.error({message:a,description:c("Please upgrade your plan.")}),O(e=>[...e,{data:{role:"assistant",message:a}}]),!1},[c,ae,b]);(0,a.useEffect)(()=>{var e,t;ie&&(L((null===f||void 0===f||null===(e=f.counters)||void 0===e?void 0:e.ai_counter)||0),H((null===f||void 0===f||null===(t=f.counters)||void 0===t?void 0:t.ai_generator_counter)||0))},[f,ie]),(0,a.useEffect)(()=>{U((()=>{var e;if(R.length<=0)return!1;return"email-generator"===(null===(e=R.toReversed().find(e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.context}))||void 0===e?void 0:e.data.context)})())},[R]);const ge=(0,a.useCallback)(async()=>await $.sendAsync(g.Ru.SANDBOX_IS_EMAIL_EMPTY),[$]),he=(0,a.useCallback)(()=>{var e;const t=null===(e=p.current)||void 0===e?void 0:e.closest(".ant-tabs-content.ant-tabs-content-top");setTimeout(()=>{null===t||void 0===t||t.scrollTo({top:t.scrollHeight,behavior:"smooth"})},0)},[p]),fe=(0,a.useCallback)(()=>{G({entity_id:C}).then(e=>{O(e.data.documents),he()})},[C,G,O,he]),be=(0,a.useCallback)(e=>{P(!0),I(!0),J({task_id:e||w,entity_id:C,status:"started"}).then(()=>{fe()})},[C,J,w,fe]),ve=(0,a.useCallback)(()=>{J({task_id:w,entity_id:C,status:"completed"}).then(e=>{403===e.data.status&&ee(),fe()}).catch(e=>{}),I(!1),P(!1)},[C,J,w,fe,ee]);(0,a.useEffect)(()=>{let e;if(M){var t,a;const l=null===(t=ne[ne.length-1])||void 0===t||null===(a=t.processing)||void 0===a?void 0:a.email;if(l){let t=ne[ne.length-1].status;e=setInterval(n.setValue(l),500),0===t&&ve()}j&&(clearInterval(e),m((0,E.AJ)(l)),P(!1),W(!1))}return()=>{clearInterval(e)}},[n,j,m,ne,M,q,C,w,fe,J,Y,ve]),(0,a.useEffect)(he,[he]),(0,a.useEffect)(()=>{(null===e||void 0===e?void 0:e.length)>0&&O(e),K({operation:g.Ru.SANDBOX_EMAIL_CONTENT_GET})},[e,K]),(0,a.useEffect)(()=>{const e=$.onInit(()=>{$.send({operation:g.Ru.SANDBOX_LOCK_EDIT,data:T}),$.send({operation:g.Ru.SANDBOX_LOCK_DISCUSS,value:T})});return()=>e.dispose()},[T,$]);const Ee=async()=>{if(N){const e=N.replaceAll(/\n/g,"<br>"),t={project_id:y,connection:"chat",entity_id:C,message:e,locale:Z.locale.slice(0,2),subject:q.subject||"",preheader:q.preheader||"",textContent:(0,pt.T5)(n.getValue())};if(z&&de||ce){b.error({message:c(z?"You have reached the limit of AI generator usage.":"You have reached the limit of AI chat usage."),description:c("Please upgrade your plan.")});const e={data:{role:"assistant",message:c(z?"You have reached the limit of AI generator usage.":"You have reached the limit of AI chat usage.")}};O(t=>[...t,e])}else{if(!await pe(z?"email_generate":"ai"))return void B("");ie&&(z&&D!==se?(ue(),H(e=>e+1)):S!==re&&(me(),L(e=>e+1))),k({event:"submit_form",action:"chat_whit_ai_assistant",entity_id:t.entity_id,project_id:t.project_id});const n=[{data:{role:"user",message:e,userInfo:{display_name:Z.first_name+" "+Z.last_name,avatar_url:Z.avatar_urls[24]}}},{data:{role:"assistant",message:c("Typing..."),isLoading:!0}}];O(e=>[...e,...n]),X({body:t}).then(e=>{if(401===e.data.status)throw new Error(g.ff);const t=q.hasOwnProperty("type")?g.IE:g.Tm;if(k({event:"submit",action:"send_discussion_chat_message",entity_type:t===g.IE?"block":"email",entity_id:C,project_id:y,context:"editor"}),e.data.task_id){let t=e.data.task_id;x(t),te({id:t,setError:W}),ge().then(e=>{e?be(t):F(!0)})}fe()}).catch(e=>{var t,n;b.error({message:(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.code)||c("Error"),description:(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.message)||c("Something went wrong.")})})}B("")}},ye=async e=>{const t={data:{role:"assistant",message:c("Typing..."),isLoading:!0}};O(e=>[...e,t]);const a={project_id:y,connection:"chat",entity_id:C,context:e,locale:Z.locale.slice(0,2),subject:q.subject||"",preheader:q.preheader||"",textContent:(0,pt.T5)(n.getValue())};if(ie&&(z&&D!==se?(ue(),H(e=>e+1)):S!==re&&(me(),L(e=>e+1))),ce){b.error({message:c("You have reached the limit of AI chat usage."),description:c("Please upgrade your plan.")});const e={data:{role:"assistant",message:c("You have reached the limit of AI chat usage.")}};O(t=>[...t,e])}else{if(!await pe("ai"))return;k({event:"select",action:"select_ai_assistant_role",context:a.context,entity_id:a.entity_id,project_id:a.project_id}),X({body:a}).then(e=>{if(401===e.data.status)throw new Error(g.ff);fe()}).catch(e=>{var t,n;b.error({message:(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.code)||"Error",description:(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.message)||"Something went wrong"})})}},_e=(0,a.useCallback)(async e=>{const t={data:{role:"user",message:e,userInfo:{display_name:Z.first_name+" "+Z.last_name,avatar_url:Z.avatar_urls[24]}}},a={data:{role:"assistant",message:c("Typing..."),isLoading:!0}};O(e=>[...e,t,a]);const l={project_id:y,connection:"chat",entity_id:C,message:e,locale:Z.locale.slice(0,2),subject:q.subject||"",preheader:q.preheader||"",textContent:(0,pt.T5)(n.getValue())};if(de){b.error({message:c("You have reached the limit of AI generator usage."),description:c("Please upgrade your plan.")});const e={data:{role:"assistant",message:c("You have reached the limit of AI chat usage.")}};O(t=>[...t,e])}else{if(!await pe(z?"email_generate":"ai"))return;X({body:l}).then(e=>{if(401===e.data.status)throw new Error(g.ff);const t=q.hasOwnProperty("type")?g.IE:g.Tm;if(k({event:"submit",action:"send_discussion_chat_message",entity_type:t===g.IE?"block":"email",entity_id:C,project_id:y,context:"editor"}),e.data.task_id){let t=e.data.task_id;x(t),te({id:t,setError:W}),ge().then(e=>{e?be(t):F(!0)})}ie&&(z&&D!==se?(ue(),H(e=>e+1)):S!==re&&(me(),L(e=>e+1))),fe()}).catch(e=>{var t,n;b.error({message:(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.code)||"Error",description:(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.message)||"Something went wrong"})})}},[c,S,D,ge,be,re,se,Z,q,C,z,de,me,ue,ie,n,b,pe,y,X,te,fe]);(0,a.useEffect)(()=>{const e=window.localStorage.getItem(g.V0.em_ai_settings);if(1===R.length&&"assistant"===R[0].data.role&&e&&C){const t=new Q.jG,n={project_id:y,connection:"chat",entity_id:C,context:"email-generator",locale:Z.locale.slice(0,2)};window.localStorage.removeItem(g.V0.em_ai_settings),X({body:n}).then(({data:n})=>{t.isDisposed()||_e(e)})}},[R,_e,C,Z.locale,y,X]);const Ce={replace:e=>{var t,n,i,o,r,s,d,m;if(null!==(t=e.attribs)&&void 0!==t&&null!==(n=t.class)&&void 0!==n&&n.split(" ").includes("ai-response-title"))return a.createElement(l.m_,{placement:"left",title:c("Replace the title")},a.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;$.send(g.Ru.SANDBOX_SUBJECT_UPDATE,{value:e.children[0].data,guid:q.renderGuid,fromAI:!0}),b.success({id:"EMAIL_TITLE_UPDATED_FROM_AI",message:c("Title copied to email settings"),data:t})})(e)},a.createElement("span",{className:"ai-response-title"},(0,ot.zd)(e.children,Ce))));if(null!==(i=e.attribs)&&void 0!==i&&null!==(o=i.class)&&void 0!==o&&o.split(" ").includes("ai-response-preheader"))return a.createElement(l.m_,{placement:"left",title:c("Replace the preheader")},a.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;$.send(g.Ru.SANDBOX_PREHEADER_UPDATE,{value:e.children[0].data,guid:q.renderGuid,fromAI:!0}),b.success({id:"EMAIL_TITLE_UPDATED_FROM_AI",message:c("Preheader copied to email settings"),data:t,duration:300})})(e)},a.createElement("span",{className:"ai-response-preheader"},(0,ot.zd)(e.children,Ce))));if(null!==(r=e.attribs)&&void 0!==r&&null!==(s=r.class)&&void 0!==s&&s.split(" ").includes("ai-response-copy"))return a.createElement(l.m_,{placement:"left",title:c("Copy to clipboard")},a.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;navigator.clipboard.writeText(t).then(()=>{b.success({id:"TEXT_COPIED_TO_CLIPBOARD",message:c("Text copied to clipboard"),data:t})}).catch(e=>{})})(e)},a.createElement("span",{className:"ai-response-copy"},(0,ot.zd)(e.children,Ce))));if(null!==(d=e.attribs)&&void 0!==d&&null!==(m=d.class)&&void 0!==m&&m.split(" ").includes("ai-response-user-message")){var u,p,h,f,v;const t=(null===(u=e.attribs)||void 0===u?void 0:u.data)||(null===(p=e.children)||void 0===p||null===(h=p[0])||void 0===h?void 0:h.data);return a.createElement("li",{className:null===(f=e.attribs)||void 0===f?void 0:f.class,data:null===(v=e.attribs)||void 0===v?void 0:v.data,onClick:()=>_e(t)},(0,ot.zd)(e.children,Ce))}}};return a.createElement("div",{ref:p,className:"discuss-main"},R.length>0&&a.createElement(l.B8,{onClick:e=>{"string"===typeof e.target.className&&e.target.className.includes("ai-response-change-context")&&(Y.isLoading||ye(e.target.role))},className:"comment-list",itemLayout:"horizontal",dataSource:R,renderItem:e=>{var t,n,i;return a.createElement("li",{key:e._id,id:e._id},a.createElement(l.Mw,{className:e.data.userInfo?"":"ai-comment",avatar:"assistant"===e.data.role?a.createElement(v.Ay,{icon:"ChatGpt",className:"anticon-robot",style:{color:"#ffffff",fontSize:16,width:24,height:24,borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"}}):!e.data.userInfo||!e.data._modified&&g.EW.isPlugin?Z.avatar_urls[24]||a.createElement(v.Ay,{icon:"UserOutlined",className:"anticon-user",style:{color:"#ffffff",fontSize:16,width:24,height:24,borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"}}):e.data.userInfo.avatar_url,author:a.createElement("div",{style:le},"user"===(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.role)?g.EW.isPlugin?(null===Z||void 0===Z?void 0:Z.username)||c("User"):null===(n=e.data)||void 0===n||null===(i=n.userInfo)||void 0===i?void 0:i.display_name:c("AI Assistant")),datetime:e._created?a.createElement("span",{dangerouslySetInnerHTML:{__html:(0,Q.Yq)((0,it.A)(e._created),d,!0)}}):null,content:e.data.isLoading?a.createElement("div",{className:"spin"},a.createElement(v.Ay,{icon:"LoadingOutlined",style:{fontSize:24},spin:!0})):a.createElement("div",{style:le},(0,ot.Ay)(e.data.message,Ce))}))}}),ie&&(z?a.createElement(l.xl,{text:`${D} ${c("of")} ${se>0?se:"\u221e"} ${c("mail generator")} ${d("was used","were used",D)}`,exceeded:se>0&&D>=se,style:{marginTop:-25},extra:a.createElement("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:()=>u(f.billingPageUrl||g.vc.billing)},c("Need more?"))}):a.createElement(l.xl,{text:`${S} ${c("of")} ${re>0?re:"\u221e"} ${c("messeges")} ${d("was used","were used",S)}`,exceeded:re>0&&S>=re,style:{marginTop:-25},extra:a.createElement("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:()=>u(f.billingPageUrl||g.vc.billing)},c("Need more?"))})),a.createElement(l.lV,{onFinish:Ee,className:"addMode"},a.createElement(l.lV.Item,{style:{marginBottom:10}},a.createElement(l.fs,{disabled:T,value:N,onChange:e=>B(e.target.value),rows:4,placeholder:c("Type your request"),className:"textarea-comment",onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&Ee(),spellCheck:"false"})),a.createElement(l.lV.Item,null,a.createElement(l.$x,{size:8},a.createElement(l.$n,{disabled:Y.isLoading||T,type:"default",style:{background:"var(--colorInfo)",color:"#ffffff"},className:"button-target"},a.createElement(l.ms,{placement:"top",disabled:T,key:"Export",arrow:{pointAtCenter:!0},menu:{items:ft(ye)}},a.createElement("div",{disabled:T,style:{margin:0,padding:0}},a.createElement(v.Ay,{icon:"ChatGpt",style:{marginRight:5}}),c("Role")))),a.createElement(l.$n,{disabled:Y.isLoading||T,className:"button-add",type:"primary",htmlType:"submit"},c("Send")," ",a.createElement(v.Ay,{icon:"SendOutlined",size:16,strokeWidth:f.iconStrokeWidth}))))),a.createElement(l.aF,{title:c("Warning"),open:V,onOk:()=>{be(),F(!1)},onCancel:()=>{ve(),F(!1)}},a.createElement("p",null,c("The current template will be changed to the generated one, are you sure about this?"))))};var vt=n(68669),Et=n(11128),yt=n(58716);const _t=({elementPath:e})=>{const{_x:t}=(0,r.s9)(),n=(0,i.wA)(),s=(0,_.QC)(),c=(0,h.rD)(),{emailId:d,blockId:m,projectId:u}=(0,o.g)(),p=(0,i.d4)(Ye.yN),f=(0,dt.u)(),b=(0,a.useCallback)(e=>{s.send({operation:g.Ru.SANDBOX_ELEMENT_ACTIVE_SET,index:e})},[s]),E=(0,a.useCallback)(e=>{var t,a,l,i,o,r;let c="element";null!==e&&void 0!==e&&null!==(t=e.target)&&void 0!==t&&t.closest("svg")||null!==e&&void 0!==e&&null!==(a=e.target)&&void 0!==a&&a.closest(".anticon")||null!==e&&void 0!==e&&null!==(l=e.target)&&void 0!==l&&l.closest('[class*="icon"]')?c="icon":null===e||void 0===e||null===(i=e.target)||void 0===i||!i.textContent||null!==e&&void 0!==e&&null!==(o=e.target)&&void 0!==o&&o.closest("svg")||null!==e&&void 0!==e&&null!==(r=e.target)&&void 0!==r&&r.closest(".anticon")||(c="text"),n((0,y.PM)(g.rY)),s.send({operation:g.Ru.SANDBOX_LOCK_EDIT,data:!1}),s.send({operation:g.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),f({event:"click",action:"click_breadcrumb_email",email_id:d||m,project_id:(null===p||void 0===p?void 0:p.id)||u,click_target:c})},[s,n,f,d,m,u,p]),C={title:a.createElement("span",{onClick:E},a.createElement(v.Ay,{icon:"Email",size:16,strokeWidth:c.iconStrokeWidth})," ",t("Email","letter"))},[k,A]=(0,a.useState)([C]),w=(0,a.useCallback)(e=>{s.send({operation:g.Ru.SANDBOX_ELEMENT_HOVER_SET,index:e})},[s]),x=(0,a.useCallback)((t,n)=>{return a.createElement("span",{className:t.className,onClick:t=>{var a;let l="element";t.target.closest("svg")||t.target.closest(".anticon")||t.target.closest('[class*="icon"]')?l="icon":!t.target.textContent||t.target.closest("svg")||t.target.closest(".anticon")||(l="text");const i=null===e||void 0===e?void 0:e[n],o=(null===i||void 0===i||null===(a=i.className)||void 0===a?void 0:a.replace("em-element-path-item-",""))||"unknown";f({event:"click",action:"click_breadcrumb_element",email_id:d||m,project_id:(null===p||void 0===p?void 0:p.id)||u,element_type:o,element_index:n,element_title:(null===i||void 0===i?void 0:i.title)||"",click_target:l}),b(n)},onMouseOver:()=>{w(n)}},(l=t.className).includes("em-element-path-item-text")?a.createElement(v.Ay,{icon:"ElementText",size:16,strokeWidth:c.iconStrokeWidth}):l.includes("em-element-path-item-image")?a.createElement(v.Ay,{icon:"ElementImage",size:16,strokeWidth:c.iconStrokeWidth}):l.includes("em-element-path-item-link")?a.createElement(v.Ay,{icon:"LinkOutlined",size:16,strokeWidth:c.iconStrokeWidth}):l.includes("em-element-path-item-atom")?a.createElement(v.Ay,{icon:"Atom",size:16,strokeWidth:c.iconStrokeWidth}):l.includes("em-element-path-item-column")?a.createElement(v.Ay,{icon:"Column",size:16,strokeWidth:c.iconStrokeWidth}):l.includes("em-element-path-item-block")?a.createElement(v.Ay,{icon:"Block",size:16,strokeWidth:c.iconStrokeWidth}):l.includes("em-element-path-item-group")?a.createElement(v.Ay,{icon:"Group",size:16,strokeWidth:c.iconStrokeWidth}):l.includes("em-element-path-item-button")?a.createElement(v.Ay,{icon:"ElementButton",size:16,strokeWidth:c.iconStrokeWidth}):l.includes("em-element-path-item-table")?a.createElement(v.Ay,{icon:"ElementTable",size:16,strokeWidth:c.iconStrokeWidth}):l.includes("em-element-path-item-amp")?a.createElement(v.Ay,{icon:"AMP",size:16,strokeWidth:c.iconStrokeWidth}):void 0," ",t.title);var l},[b,w,e,f,d,m,u,p]);return(0,a.useEffect)(()=>{if(e){const n=e.map((e,t)=>({title:x(e,t)}));A([{title:a.createElement("span",{onClick:E},a.createElement(v.Ay,{icon:"Email",size:16,strokeWidth:c.iconStrokeWidth})," ",t("Email","letter"))},...n])}},[e,x,E,t]),a.createElement(a.Fragment,null,a.createElement(l.Qp,{items:k,type:"separator",separator:""}))};var Ct=n(57774),kt=n(58022),At=(n(7729),n(85878),n(42512),n(43752),n(5333),n(99705)),wt=n(44004),xt=n(64886),St=n(51432),Lt=n(19684),Tt=n(78443),It=n(38343),Nt=n(69847),Bt=n(15582),Rt=n(2527),Ot=n(85183),Mt=n(20387),Pt=n(47794),Vt=n(50028);const Ft=(e,t)=>a.createElement(t,Object.assign({className:"email-pane__tab-bar"},e)),{Content:jt}=l.Layout,Wt=(0,a.memo)(e=>a.createElement(bt,e)),Dt=(0,a.memo)(e=>a.createElement(G,e)),Ht=(0,a.memo)(e=>a.createElement(ce,e)),zt=(0,a.memo)(e=>a.createElement(Et.A,e)),Ut=(0,a.memo)((0,a.forwardRef)((e,t)=>a.createElement(vt.A,Object.assign({},e,{ref:t})))),qt=(0,a.memo)(e=>a.createElement(Je,e)),Zt=(0,a.memo)(e=>a.createElement(f,e)),$t=(0,a.memo)(e=>a.createElement(yt.A,e)),Gt=({emailElement:e,isSuccess:t,setIsCollaborationEditor:n,isShowAddAllBlocksModal:c,triggerOpenSavedBlocksTab:u,setIsShowAddAllBlocksModal:p})=>{var f,b,C,k,A;const w=1200,{__:x,_x:S}=(0,r.s9)(),L=(0,_.QC)(),{emailId:T,blockId:I,projectId:N}=(0,o.g)(),B=(0,i.wA)(),{modal:O}=l.qw.useApp(),M=(0,h.rD)(),{token:P}=(0,l.rd)(),V=(0,s.hN)(),F=(0,dt.u)(),j=(0,i.d4)(Ye.yN),W=(0,Rt.p)(),D=(0,i.d4)(y.B),H=(0,i.d4)(Xe.C1),z=(0,i.d4)(Xe.B$),U=(0,i.d4)(Tt.cL),q=(0,i.d4)(y.NQ),Z=(0,i.d4)(E.qX),$=(0,i.d4)(R.qX),G=(0,i.d4)(y.Fv),K=(0,i.d4)(y.yy),X=(0,i.d4)(Nt.D2),Y=(0,i.d4)(Nt.jr),J=(0,i.d4)(Nt.hc),ee=(0,i.d4)(y.Tn),[te]=(0,st.Ll)(),[ae]=(0,wt.dS)(),[le,ie]=(0,a.useState)(!1),[oe,re]=(0,a.useState)(),[se,ce]=(0,a.useState)(M.defaultBuildPanel||"empty"),[ue,pe]=(0,a.useState)("empty"),[ge,he]=(0,a.useState)(!1),[fe,be]=(0,a.useState)([]),[ve,Ee]=(0,a.useState)(!1),[ye,_e]=(0,a.useState)([]),[Ce,ke]=(0,a.useState)(!1),[Ae,we]=(0,a.useState)(!1),xe=(0,ne.cR)(),Se=(0,ut.fn)(),[Le,Te]=(0,a.useState)((null===Se||void 0===Se?void 0:Se.getValue())||"");(0,a.useEffect)(()=>{if(!Se)return;Te(Se.getValue());const e=Se.onDidChangeContent(()=>{const e=Se.getValue();Te(e)});return()=>{e.dispose()}},[Se]);const Ie=(0,a.useMemo)(()=>(0,Ot.X_)(Le||(null===e||void 0===e?void 0:e.html)||""),[null===e||void 0===e?void 0:e.html,Le]),Ne=(0,Ot.WJ)(Ie),Be=(0,Ot.Gw)(Ie);let Re=!z&&(null===(f=H.id)||void 0===f?void 0:f.toString())===(null===j||void 0===j||null===(b=j.members)||void 0===b?void 0:b.owner.ID);const Oe=!g.EW.isPlugin||((null===M||void 0===M?void 0:M.configSwither)||!1);(0,a.useEffect)(()=>{B((0,y.sy)())},[B]),(0,a.useEffect)(()=>{const e=window.localStorage.getItem(g.V0.em_active_tab);e&&B((0,y.PM)(e))},[W,B]);const Me=T||I,Pe=e.hasOwnProperty("type")?g.IE:g.Tm,Ve=Pe===g.Tm?Z:$,[Fe,je]=(0,a.useState)({}),We=(0,a.useRef)(null),De=(0,a.useRef)(),He=(0,a.useRef)(),ze=(0,a.useRef)(),Ue=(0,a.useRef)(),qe=(0,a.useRef)(),Ze=(0,a.useRef)(null),$e=(0,a.useRef)(!1),Ge=(0,a.useRef)(!1),Je=(0,a.useCallback)(()=>{Ge.current=!1},[]),tt=(0,a.useCallback)(()=>{Ge.current=!0},[]),nt=(0,a.useCallback)(e=>{(null===e||void 0===e?void 0:e.type)===g.bV.SOCIAL&&tt()},[tt]),[at,it]=(0,a.useState)(!1),[ot,ct]=(0,a.useState)(!1),[mt]=(0,St.b9)(),[pt,gt]=(0,a.useState)(!1),[ht,ft]=(0,a.useState)(0),[bt,vt]=(0,a.useState)(!1),Et=g.EW.isPlugin?!!M.configSwither&&("pro"===localStorage.getItem("configSwither")||"editor"!==localStorage.getItem("configSwither")&&"pro"===M.mode):"pro"===H.email_builder_config||"simple"===H.email_builder_config,yt=(0,a.useCallback)(()=>{clearTimeout(Ze.current);const e=".blocks-search__result-holder";xe.querySelector(e)&&(X||Y||J)&&(xe.querySelector(e).style.removeProperty("transition"),xe.querySelector(e).style.opacity=0,xe.querySelectorAll(".blocks-search__result-body").forEach(e=>e.style.removeProperty("height")),Ze.current=setTimeout(()=>{xe.querySelectorAll(".blocks-search__result-body").forEach(e=>{e.style.height=207*e.getBoundingClientRect().height/660+"px"}),xe.querySelector(e)&&(xe.querySelector(e).style.transition="opacity 0.2s",xe.querySelectorAll(e).forEach(e=>e.style.opacity=1))},200))},[Y,X,J]),Gt=(0,a.useCallback)(e=>{const t=e.target;setTimeout(()=>{it(t.closest(".desktop_view")),ct(t.closest(".mobile_view"))},100)});(0,a.useEffect)(()=>{const e=(0,Mt.t)(xe,"mouseover",Gt);return()=>{e.dispose()}},[xe,Gt]),(0,a.useEffect)(()=>{B((0,y.wr)(le?g.ND:g.Vp))},[le,B]),(0,a.useEffect)(()=>{"function"===typeof n&&(ye.length>0?n(!0):n(!1))},[ye]);const[Kt]=(0,rt.EQ)(),{data:Xt={},refetch:Yt,status:Jt}=(0,rt.gb)({entity_id:Me},{skip:!Me||!1===M.aiAssistentEnabled}),[Qt,en]=(0,a.useState)([]),[tn,nn]=(0,a.useState)(""!==M.defaultBuildPanel?g.nA:g.Jy),[an,ln]=(0,a.useState)(null),on=(0,a.useCallback)(()=>{var e;const t=null===(e=He.current)||void 0===e?void 0:e.getBoundingClientRect(),n=null===oe||void 0===oe?void 0:oe.getBoundingClientRect();L.send({operation:g.Ru.SANDBOX_WINDOW_CHARACTERISTIC,settings:{iframeOffsetTop:G&&"bottom"!==K?0:30,scrollTop:-(null===t||void 0===t?void 0:t.top)+(null===n||void 0===n?void 0:n.top)+30,innerHeight:window.innerHeight,previewHeight:null===n||void 0===n?void 0:n.height,mode:G&&"bottom"!==K?"code":"default"}})},[K,G,oe,L]),rn=t&&e,sn=(0,a.useCallback)(e=>{const t=window.navigator.platform.match("Mac");M.codeEnabled&&M.codeSideEnabled&&e.altKey&&88===e.keyCode&&(B((0,y.vs)()),Re&&(gt(!0),ft(1))),((t?e.metaKey:e.ctrlKey)&&e.shiftKey&&76===e.keyCode||(t?e.metaKey:e.ctrlKey)&&e.shiftKey&&69===e.keyCode||(t?e.metaKey:e.ctrlKey)&&e.shiftKey&&82===e.keyCode)&&e.preventDefault()},[B,M.codeEnabled,Re,M.codeSideEnabled]),cn=U.includes("UPLOAD_IMAGE_")||U.includes("UPLOAD_BACKGROUND_"),dn=(0,a.useCallback)(t=>{document.querySelector(".easylogic-colorpicker")||xe.querySelector(".easylogic-colorpicker")||t.target.closest(".email-pane__collapse-wrapper")||t.target.closest(".selected-element-panel__columns-settings__controls__column__remove")||t.target.closest(".email-preview__content-col_main")||t.target.closest(".email-preview-menu")||t.target.closest(".monaco-editor")||t.target.closest(".main__pane-close-btn")||t.target.closest(".main__pane-trigger")||t.target.closest(".ant-modal-wrap")||t.target.closest(".email-pane__sizes")||t.target.closest(".ant-input-clear-icon")||t.target.closest(".ant-color-picker")||t.target.closest(".control-font-family-dropdown")||an||t.target.closest(".email-preview-menu__history")||t.target.closest(".selected-element-panel-content")||t.target.closest(".ant-select-dropdown")||t.target.closest(".toggle_view")||t.target.closest(".upload-bg-image__menu")||t.target.closest(".email-pane__paths")||t.target.closest(".ant-tabs-extra-content")||t.target.closest(".anticon-delete")||cn||U===g.lx.IMAGE_EDITOR_MODAL||(D===g.yI&&(tt(),B((0,y.Fk)()),L.send({operation:g.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),be([])),D===g.Vv&&B((0,y.PM)(g.Bv)),B((0,y.mi)(!0)),L.send({operation:g.Ru.SANDBOX_LOCK_EDIT,data:!1}),setTimeout(()=>{e.type?B((0,R.A9)({type:null})):B((0,E.A9)({type:null}))},300)),ln(null)},[B,e.type,U,an,D,L,cn]),[mn,un]=(0,a.useState)(!0),{data:pn=[],refetch:gn}=(0,xt.Cf)(Me,{skip:!Me}),[hn,fn]=(0,a.useState)(""),[bn,vn]=(0,a.useState)("");(0,a.useEffect)(()=>{Me&&gn()},[D,Me,gn]),(0,a.useEffect)(()=>{Me&&!Object.keys(Xt).length&&"fulfilled"===Jt&&Yt()},[D,Me,Yt,Xt,Jt]),(0,a.useEffect)(()=>{var e;const t=new Q.jG,n=window.localStorage.getItem(g.V0.em_active_tab);if(0===(null===Xt||void 0===Xt?void 0:Xt.totalCount)&&"pending"!==Jt){const e={project_id:N,connection:"chat",entity_id:Me,context:"default",locale:H.locale.slice(0,2)};n||Kt({body:e}).then(()=>{t.isDisposed()||"fulfilled"===Jt&&Yt()})}const a={data:{role:"assistant",message:x("Typing..."),isLoading:!0}};var l,i;(null===Xt||void 0===Xt||null===(e=Xt.documents)||void 0===e?void 0:e.length)>0?(window.localStorage.removeItem(g.V0.em_active_tab),en(null===Xt||void 0===Xt?void 0:Xt.documents),null!==Xt&&void 0!==Xt&&null!==(l=Xt.documents[(null===Xt||void 0===Xt||null===(i=Xt.documents)||void 0===i?void 0:i.length)-1].data)&&void 0!==l&&l.userInfo&&en([...null===Xt||void 0===Xt?void 0:Xt.documents,a])):n||en([a]);return()=>t.dispose()},[Me,H.locale,null===Xt||void 0===Xt?void 0:Xt.totalCount,null===Xt||void 0===Xt?void 0:Xt.documents,N,Yt,Kt,Jt]),(0,a.useEffect)(()=>{je({}),B(Pe===g.Tm?(0,E.A9)({}):(0,R.A9)({}))},[B,Pe]);const En=(0,a.useCallback)(e=>{B((0,E.G_)(e))},[B]),yn=(0,a.useCallback)(e=>{B((0,R.Dz)(e))},[B]),_n=(0,a.useCallback)(e=>{B(Pe===g.Tm?(0,E.A9)(e):(0,R.A9)(e))},[B,Pe]);(0,a.useEffect)(()=>{const e=Ue.current,t=ze.current;re(G?t:e)},[G,K]);const Cn=(0,a.useCallback)(e=>{ce(e),"search"===e?he(!0):(he(!1),pe(e)),setTimeout(yt,50)},[yt]),kn=(0,a.useCallback)(t=>{const n=t.data.operation,a=t.data,l=t.data.action;if("application_block_inserted"===n||"application_block_inserted"===t.data.operationId){const n=t.data.operationId?t.data.data:a||{},l="project"===n.type||"template"===n.type||"common"===n.type?"block":"structure",i=n.name||n.type||("block"===l?"block":"structure");F({event:"add",action:"add_element_to_email",element_type:l,element_name:i,entity_id:(null===e||void 0===e?void 0:e.id)||T||I,project_id:(null===j||void 0===j?void 0:j.id)||N})}if(n===g.Ru.APPLICATION_SCROLL_TO&&setTimeout(()=>{var e;null===(e=ze.current)||void 0===e||e.scrollTo({top:t.data.settings.value,behavior:"smooth"})},100),n===g.Ru.APPLICATION_PREVIEW_ALERT_SHOW&&ke(a.settings.show),n===g.Ru.APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW&&we(!0),n===g.Ru.APPLICATION_ACTION&&"toggle_editor"===l&&B((0,y.vs)()),n===g.Ru.APPLICATION_IFRAME_SET_HEIGHT&&(xe.querySelector(".email-pane__iframe").style.height=a.settings.height+"px"),n===g.Ru.APPLICATION_EMAIL_SETTINGS_SET){let e=Object.assign({},a.settings);delete e.preheader;Object.values(e).every(e=>!e)?(B((0,E.M7)(!0)),B((0,y.Fk)())):En(a.settings),a.settings.noBlocks,B((0,y.wW)(a.settings.responsive)),un(e.structuresMedia)}if(n===g.Ru.APPLICATION_BLOCK_SETTINGS_SET){Object.values(a.settings).every(e=>!e)?(B((0,R.rc)(!0)),B((0,y.Fk)())):(yn(a.settings),un(a.settings.structuresMedia))}if(n===g.Ru.APPLICATION_ELEMENT_SETTINGS_SET){var i,o;const e=Object.values(g.bV),t=!!a.tab||!e.includes(a.type);if(t&&D===g.yI&&B((0,y.Fk)()),a.type===g.bV.EMPTY_TABLE||a.type===g.bV.EMPTY_TD)B((0,y.PM)(g.Bv)),a.type===g.bV.EMPTY_TABLE?(nn(g.nA),a.tab?Cn(a.tab):Cn("common")):a.type===g.bV.EMPTY_TD&&nn(g.Jy);else if(a.type&&D!==g.yI){a.type===g.bV.SOCIAL&&Ge.current?Je():(Je(),B((0,y.PM)(g.yI)))}else a.type!==g.bV.SOCIAL&&Je();var r;if(a.type===g.bV.CAROUSEL||a.type===g.bV.ACCORDION||a.type===g.bV.SOCIAL?(je({settings:{...a.settings,type:t?null:a.type,caption:a.caption,parent:t?null:a.settings.parent},type:t?null:a.type,parent:t?null:a.settings.parent,caption:a.caption}),_n({})):(_n({...a.settings,type:t?null:a.type,parent:t?null:a.settings.parent,caption:a.caption}),je({})),(null===(i=a.settings)||void 0===i||null===(o=i.path)||void 0===o?void 0:o.length)>0)be(null===(r=a.settings)||void 0===r?void 0:r.path)}n===g.Ru.APPLICATION_ELEMENT_SETTINGS_CLOSE&&((null===Fe||void 0===Fe?void 0:Fe.type)===g.bV.SOCIAL&&tt(),B((0,y.Fk)()))},[B,En,yn,_n,D,Cn,xe,F,e,T,I,j,Fe,Je,tt]);(0,a.useEffect)(()=>{m.gV({id:null===H||void 0===H?void 0:H.id,email:null===H||void 0===H?void 0:H.email,username:null===H||void 0===H?void 0:H.name})},[H]),(0,a.useEffect)(()=>{H.email_builder_config&&B((0,Lt.bc)(H.email_builder_config))},[H.email_builder_config,B]),(0,a.useEffect)(()=>{var e,t;if(G&&Re&&B((0,y.vs)()),g.EW.isPlugin){if(M.configSwither){let e=localStorage.getItem("configSwither")||M.mode||"editor";localStorage.setItem("configSwither",e),B((0,Lt.bc)(e))}}else z||(null===(e=H.id)||void 0===e?void 0:e.toString())!==(null===j||void 0===j||null===(t=j.members)||void 0===t?void 0:t.owner.ID)?"simple"===M.mode&&B((0,Lt.bc)("pro")):B((0,Lt.bc)("simple"))},[]);const An=t=>{var n,a;z||(null===(n=H.id)||void 0===n||n.toString(),null===j||void 0===j||null===(a=j.members)||void 0===a||a.owner.ID),setTimeout(()=>{var n,a;if(z||(null===(n=H.id)||void 0===n?void 0:n.toString())!==(null===j||void 0===j||null===(a=j.members)||void 0===a?void 0:a.owner.ID)){let n=t?"pro":"editor";localStorage.setItem("configSwither",n),B((0,Lt.bc)(n)),F({event:"change",action:"change_config_mode",config_mode:n,entity_id:(null===e||void 0===e?void 0:e.id)||T||I,project_id:(null===j||void 0===j?void 0:j.id)||N})}else B((0,Lt.bc)("pro")),vt(!0),gt(!0),F({event:"change",action:"change_config_mode",config_mode:"pro",entity_id:(null===e||void 0===e?void 0:e.id)||T||I,project_id:(null===j||void 0===j?void 0:j.id)||N})},200)};(0,Bt.A)(kn);const wn=(0,a.useRef)({emailElementType:Pe,emailElementSettings:Z,blockElementSettings:$});wn.current={emailElementType:Pe,emailElementSettings:Z,blockElementSettings:$},(0,a.useEffect)(()=>{const e=L.addListener(e=>{var t,n;const a=void 0!==(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.operation)?e.data:e;if((null===a||void 0===a?void 0:a.operation)!==g.Ru.APPLICATION_NATIVE_IMAGE_DROP)return;const l=a.file,i=null!==(n=null===j||void 0===j?void 0:j.id)&&void 0!==n?n:N;l&&l instanceof File&&i&&null!==H&&void 0!==H&&H.id?(async()=>{try{let e=l;"image/gif"!==l.type&&(e=await(0,Vt.A)(l,{maxSizeMB:M.compressMaxSize||.45,maxWidthOrHeight:M.compressMaxWidthOrHeight||2e3}));const t=await ae({user_id:H.id,folder:String(i),file:e});if(t.error)return V.fromError("IMAGE_UPLOAD_ERROR",l,t.error,!0),void L.send({operation:g.Ru.SANDBOX_NATIVE_IMAGE_DROP_CLEAR});const n=(0,Pt.g0)(t.data);if(n.error||!n.file_url)return void L.send({operation:g.Ru.SANDBOX_NATIVE_IMAGE_DROP_CLEAR});const a=n.file_url;L.send({operation:g.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:g.bV.IMG,settings:{src:a}});const{emailElementType:o,emailElementSettings:r,blockElementSettings:s}=wn.current,c=o===g.Tm?r:s;(null===c||void 0===c?void 0:c.type)===g.bV.IMG&&_n({...c,src:a,changeKey:"src"})}catch(e){L.send({operation:g.Ru.SANDBOX_NATIVE_IMAGE_DROP_CLEAR})}})():L.send({operation:g.Ru.SANDBOX_NATIVE_IMAGE_DROP_CLEAR})});return()=>e.dispose()},[L,ae,H,N,null===j||void 0===j?void 0:j.id,M.compressMaxSize,M.compressMaxWidthOrHeight,V,_n]),(0,a.useEffect)(()=>{const t=L.addListener("application_atom_inserted",t=>{F({event:"add",action:"add_element_to_email",element_type:"atom",element_name:t||"atom",entity_id:(null===e||void 0===e?void 0:e.id)||T||I,project_id:(null===j||void 0===j?void 0:j.id)||N})}),n=L.addListener("application_block_inserted",t=>{const n="project"===(null===t||void 0===t?void 0:t.type)||"template"===(null===t||void 0===t?void 0:t.type)||"common"===(null===t||void 0===t?void 0:t.type)?"block":"structure",a=(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t?void 0:t.type)||("block"===n?"block":"structure");F({event:"add",action:"add_element_to_email",element_type:n,element_name:a,entity_id:(null===e||void 0===e?void 0:e.id)||T||I,project_id:(null===j||void 0===j?void 0:j.id)||N})});return()=>{null===t||void 0===t||t.dispose(),null===n||void 0===n||n.dispose()}},[L,F,null===e||void 0===e?void 0:e.id,T,I,N,null===j||void 0===j?void 0:j.id]);const xn=(0,a.useRef)(),[Sn,Ln]=(0,a.useState)("unset"),Tn=(0,a.useCallback)(()=>{var e,t;let n;const a=null===(e=ze.current)||void 0===e?void 0:e.getBoundingClientRect();if((null===xn||void 0===xn||null===(t=xn.current)||void 0===t?void 0:t.getBoundingClientRect().top)>=0){const e=a&&Math.round(a&&(null===a||void 0===a?void 0:a.height)-30);xn.current.style.height=`${e}px`,Ln(e-30)}n&&window.clearTimeout(n),n=window.setTimeout(function(){L.isInited()&&on()},100)},[on,L]);(0,a.useEffect)(()=>(D===g.z$?We.current=setInterval(()=>{Yt({entity_id:Me})},5e3):clearInterval(We.current),clearInterval(We.current)),[Me,Yt,D]);const In=window.localStorage.getItem(g.V0.em_code_mode_pane_sizes),[Nn,Bn]=(0,a.useState)(+In||50),Rn=(0,a.useRef)(Nn);(0,a.useEffect)(()=>{Rn.current=Nn},[Nn]);const On=()=>{let e=xe.querySelector(".block-search__preview");e&&(e.style.opacity="0",e.style.transform="translateX(-99%)",setTimeout(function(){e.remove()},300))};let Mn=[];const Pn={display:"flex",alignItems:"center",justifyContent:"center"};M.blocksEmptyEnabled&&Mn.push({label:a.createElement(l.m_,{placement:"top",title:x("Empty blocks")},a.createElement("div",{style:Pn},a.createElement(v.Ay,{icon:"BorderOuterOutlined",style:{fontSize:18}}))),value:"empty"}),M.blocksSavedEnabled&&Mn.push({label:a.createElement(l.m_,{placement:"top",title:x("Saved blocks")},a.createElement("div",{style:Pn},a.createElement(v.Ay,{icon:"AppstoreAddOutlined",style:{fontSize:18}}))),value:"project"}),M.blocksCommonEnabled&&Mn.push({label:a.createElement(l.m_,{placement:"top",title:x("Common blocks")},a.createElement("div",{style:Pn},a.createElement(v.Ay,{icon:"AppstoreOutlined",style:{fontSize:18}}))),value:"common"}),M.blocksTemplateEnabled&&Mn.push({label:a.createElement(l.m_,{placement:"top",title:x("Template blocks")},a.createElement("div",{style:Pn},a.createElement(v.Ay,{icon:"BuildOutlined",style:{fontSize:18}}))),value:"template"}),M.blocksSearchEnabled&&Mn.push({label:a.createElement(l.m_,{placement:"top",title:x("Blocks search")},a.createElement("div",{style:Pn},a.createElement(v.Ay,{icon:"SearchOutlined",style:{fontSize:18}}))),value:"search"});const Vn="empty"!==se||ge,Fn=!M.blocksSectionsShow||Vn?"100%":"calc(100% - 44px)";let jn=[{label:a.createElement("div",{className:"email-pane__tab"},x("Elements")),key:g.Jy,forceRender:!0,className:"email-pane__collapse-panel email-pane__atoms",children:a.createElement(qt,null)},{label:a.createElement("div",{className:"email-pane__tab"},x("Blocks")),key:g.nA,forceRender:!0,className:"email-pane__collapse-panel email-pane__blocks-search",style:{height:Fn},children:a.createElement("div",{className:d()("email-pane__blocks-panel",{"email-pane__blocks-panel_scrollable":Vn})},M.blocksSectionsShow&&a.createElement("div",{className:"email-pane__blocks-panel-header"},a.createElement(l.$x.Compact,{block:!0},!ge&&a.createElement(l.$q,{block:!0,style:{width:"100%",marginTop:24},onChange:Cn,value:se,options:Mn}),ge&&a.createElement("div",{style:{width:"100%",height:36}}),ge&&a.createElement("div",{style:{width:36,textAlign:"right",marginTop:22}},a.createElement(v.Ay,{icon:"CloseOutlined",style:{padding:"0 2px 0",cursor:"pointer"},onClick:()=>{he(!1),ce(ue)}}))),a.createElement("div",{className:"blocks-search__divider-wrapper",style:{marginTop:ge?28:12}},a.createElement(l.cG,{className:"blocks-search__divider"}))),a.createElement("div",{className:"email-pane__blocks-panel-body"},a.createElement("div",{className:"blocks-search__empty-shadow",style:{display:"empty"!==se||ge?"none":"block"}},mn?a.createElement(me.A,null):a.createElement(de.A,null)),a.createElement("div",{className:d()("email-pane__blocks-panel-results",{"email-pane__blocks-panel-results_visible":Vn})},a.createElement(Ht,{parentEmailId:null===e||void 0===e?void 0:e.parent_email,blocksTab:se,search:ge,reloadBlockScreens:yt,email:e,setIsShowAddAllBlocksModal:p}))))}],Wn=[{disabled:pt,key:g.yI,style:{height:M.sidePanelFloating?G&&"bottom"===K?Sn:"calc(100% - 30px)":"100%"},className:"em-analytics__email-tab-properties",children:a.createElement(a.Fragment,null,(!(null===Ve||void 0===Ve||!Ve.type)||!(null===Fe||void 0===Fe||!Fe.type))&&a.createElement("div",{className:d()("email-pane__collapse-wrapper",{"mobile-view":le,"mobile-properties":le&&ee!==g.mX}),onMouseLeave:On},a.createElement(lt,{email:e,formSettings:Fe,onClosePanel:nt})))},{disabled:pt,key:g.Vv,style:{height:M.sidePanelFloating?G&&"bottom"===K?Sn:"calc(100% - 30px)":"100%"},className:"em-analytics__email-tab-history",children:rn&&a.createElement("div",{className:"email-pane__collapse-wrapper",onMouseLeave:On},a.createElement($t,{setCollapsedHistory:()=>B((0,y.mi)(!0)),emailElement:rn}))},{key:g.rb,className:"em-analytics__email-tab-properties"},{disabled:pt,label:a.createElement(l.m_,{placement:"left",title:S("Build","tab")},a.createElement(v.Ay,{"data-testid":"contentIcon",icon:"PlusCircleOutlined",size:24,strokeWidth:M.iconStrokeWidth})),key:g.Bv,className:"em-analytics__email-tab-build",style:{height:M.sidePanelFloating?G&&"bottom"===K?Sn:"calc(100% - 30px)":"100%",overflow:"hidden"},children:a.createElement("div",{className:d()("email-pane__collapse-wrapper",{"email-pane__collapse-wrapper_no-topleft-radius":D===g.Bv||!D,"email-pane__collapse-wrapper_build":tn===g.nA&&Vn}),onMouseLeave:On},a.createElement(l.tU,{className:d()("secondary-tabs email-pane__collapse",{"secondary-tabs_unset_scroll":tn===g.nA}),size:"large",activeKey:tn,onChange:e=>nn(e||""),items:jn}))},{disabled:pt,label:a.createElement(l.m_,{styles:{body:{border:"2px dot-dash red"}},placement:"left",title:S("Styles","tab")},a.createElement(v.Ay,{"data-testid":"stylesIcon",icon:"Styles",size:24,strokeWidth:M.iconStrokeWidth})),key:g.rY,className:"em-analytics__email-tab-styles",style:{height:M.sidePanelFloating?G&&"bottom"===K?Sn:"calc(100% - 30px)":"100%",overflow:"hidden"},children:a.createElement("div",{className:"email-pane__collapse-wrapper"},a.createElement(Dt,{email:e}))}];M.commentsEnabled&&Wn.push({disabled:pt,label:a.createElement(l.m_,{placement:"left",title:S("Discuss","tab")},a.createElement(v.Ay,{"data-testid":"commentsIcon",icon:"CommentOutlined",size:24,strokeWidth:M.iconStrokeWidth}),Re&&a.createElement(v.Ay,{icon:"Lock",size:14,strokeWidth:M.iconStrokeWidth,className:"free-mode-firewall-icon free-mode-firewall-icon_emailpane"}),!!pn.length&&a.createElement("span",{className:"email-pane__comment-counter"},pn.filter(e=>"deleted"!==e.comment_status).length)),key:g.hc,className:"email-pane__tab-discuss em-analytics__email-tab-discuss",style:{height:M.sidePanelFloating?G&&"bottom"===K?Sn:"calc(100% - 30px)":"100%",overflow:"hidden"},children:a.createElement("div",{className:"email-pane__collapse-wrapper"},a.createElement(l.tU,{className:"secondary-tabs email-settings__collapse discuss-wrapper",size:"large",activeKey:g.hc,items:[{label:a.createElement(a.Fragment,null,x("Discuss")),key:g.hc,forceRender:!0,className:"email-settings__collapse-panel",children:Me?a.createElement(Qe.A,{email:e,comments:pn,subjectId:Me,isLoggedIn:!0,emailElementType:Pe}):a.createElement("div",{className:"aside-content-wrapper"},e.hasOwnProperty("type")?a.createElement(l.Fc,{description:x("Save the block before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}):a.createElement(l.Fc,{description:x("Save the email before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}))}]}))});const Dn=()=>{te({entity_id:Me}).then(e=>{e.error?V.error({message:e.error.data.code,description:e.error.data.message}):e.data.success&&V.success({message:x("Success"),description:e.data.success}),Yt(),Ee(!1)})};M.aiAssistentEnabled&&Wn.push({disabled:pt,label:a.createElement(l.m_,{placement:"left",title:S("AI assistant","tab")},a.createElement(v.Ay,{"data-testid":"aiAssistentIcon",icon:"AI",size:24,strokeWidth:M.iconStrokeWidth}),Re&&a.createElement(v.Ay,{icon:"Lock",size:14,strokeWidth:M.iconStrokeWidth,className:"free-mode-firewall-icon free-mode-firewall-icon_emailpane"}),(null===Xt||void 0===Xt?void 0:Xt.totalCount)>0&&Me&&a.createElement("span",{className:"email-pane__comment-counter"},null===Xt||void 0===Xt?void 0:Xt.totalCount)),key:g.z$,className:"email-pane__tab-discuss em-analytics__email-tab-discuss",style:{height:M.sidePanelFloating?G&&"bottom"===K?Sn:"calc(100% - 30px)":"100%",overflow:"hidden"},children:a.createElement(a.Fragment,null,a.createElement("div",{className:"email-pane__collapse-wrapper"},a.createElement(l.tU,{className:"secondary-tabs email-settings__collapse discuss-ai-wrapper",size:"large",activeKey:g.z$,tabBarExtraContent:a.createElement(l.m_,{placement:"top",title:x("Clear chat")},a.createElement(l.iS,{description:x("Clear chat history?"),onConfirm:Dn,okText:x("Yes"),cancelText:x("No"),icon:"",placement:"leftTop",title:!1},a.createElement(l.$n,{type:"text",icon:a.createElement(v.Ay,{icon:"ClearChat",style:{fontSize:16}}),style:{marginRight:16}}))),items:[{label:a.createElement(a.Fragment,null,x("AI assistant")),key:g.z$,forceRender:!0,className:"email-settings__collapse-panel",children:Me||window.localStorage.getItem(g.V0.em_active_tab)?a.createElement(Wt,{messages:Qt.length>0?Qt:[{data:{role:"assistant",message:x("Typing..."),isLoading:!0}}],newEmailAiGeneratorRef:$e}):a.createElement("div",{className:"aside-content-wrapper"},e.hasOwnProperty("type")?a.createElement(l.Fc,{description:x("Save the block before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}):a.createElement(l.Fc,{description:x("Save the email before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}))}]})))}),M.optimizeEnabled&&Wn.push({disabled:pt,label:a.createElement(l.m_,{styles:{body:{border:"2px dot-dash red"}},placement:"left",title:S("Optimize","tab")},a.createElement(v.Ay,{"data-testid":"optimizeIcon",icon:"Speed",size:24,strokeWidth:M.iconStrokeWidth}),Re&&a.createElement(v.Ay,{icon:"Lock",size:14,strokeWidth:M.iconStrokeWidth,className:"free-mode-firewall-icon free-mode-firewall-icon_emailpane"})),key:g.N7,className:"em-analytics__email-tab-optimise",style:{height:M.sidePanelFloating?G&&"bottom"===K?Sn:"calc(100% - 30px)":"100%",overflow:"hidden"},children:a.createElement("div",{className:"email-pane__collapse-wrapper"},a.createElement(l.tU,{className:"secondary-tabs secondary-tabs_optimise email-settings__collapse optimise-wrapper",size:"large",activeKey:g.N7,items:[{label:a.createElement(a.Fragment,null,x("Optimize")),key:g.N7,forceRender:!0,className:"email-settings__collapse-panel",children:a.createElement(Ct.A,null)}]}))}),M.settingsEnabled&&Wn.push({disabled:pt,label:a.createElement(l.m_,{placement:"left",title:S("Settings","tab")},a.createElement("span",null,a.createElement(v.Ay,{"data-testid":"settingsIcon",icon:"SettingOutlined",size:24,strokeWidth:M.iconStrokeWidth}))),key:g.zx,className:"em-analytics__email-tab-edit",style:{height:M.sidePanelFloating?G&&"bottom"===K?Sn:"calc(100% - 30px)":"100%",overflow:"hidden"},children:a.createElement("div",{className:"email-pane__collapse-wrapper"},a.createElement(Zt,{email:e}))});const[Hn,zn]=(0,a.useState)([]),[Un,qn]=(0,a.useState)(!1),[Zn,$n]=(0,a.useState)(0),[Gn,Kn]=(0,a.useState)(0),Xn=(null===(C=xe.querySelector(".email-pane__col_preview"))||void 0===C?void 0:C.getBoundingClientRect().width)-(M.sidePanelFloating?0:38),[Yn,Jn]=(0,a.useState)(null);(0,a.useEffect)(()=>{Me&&gn(Me)},[Me,gn]),(0,a.useEffect)(()=>{const e=L.onInit(()=>{L.send({operation:g.Ru.SANDBOX_LOCK_EDIT,data:!1}),L.send({operation:g.Ru.SANDBOX_LOCK_DISCUSS,value:Un})});return()=>e.dispose()},[Un,L]),(0,a.useEffect)(()=>{if(Hn.length<2){const e=null===oe||void 0===oe?void 0:oe.getBoundingClientRect(),t=setInterval(n,50);function n(){L.isInited()&&e&&(on(),clearInterval(t))}zn(e=>[...e,t])}return clearInterval(Hn[Hn.length-1])},[Hn,oe,on,L]);const Qn=(0,a.useCallback)((e=q)=>{var t;L.send({operation:g.Ru.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:e+2}}),null===(t=De.current)||void 0===t||t.resize()},[q,L]);(0,a.useEffect)(()=>{if(qn(D===g.hc),D!==g.rb){var e;const t=xe.querySelector(".email-pane__row"),n=null===t||void 0===t?void 0:t.getBoundingClientRect().width;(null===He||void 0===He||null===(e=He.current)||void 0===e?void 0:e.getBoundingClientRect().width)+540>n&&B((0,y.vc)("100%"))}},[B,D,xe]);const ea=(0,a.useCallback)(()=>{const e=He.current;e&&(e.style.borderWidth="1px",M.sidePanelFloating||(e.style.marginLeft="-1px",e.style.marginRight="-1px"),e.style.borderLeftColor=null,e.style.borderRightColor=null)},[M.sidePanelFloating]),ta=(0,a.useCallback)(e=>{const t=Rn.current;ia(!1),Yn&&(setTimeout(()=>Qn(),50),Jn(null)),e.target.classList.contains("email-pane__handle")||ea(),window.localStorage.setItem(g.V0.em_code_mode_pane_sizes,JSON.stringify(t))},[Qn,Yn,Rn.current,ea]),na=e=>t=>{t.target.classList.contains("email-pane__handle")&&(t.preventDefault(),$n(t.target.parentNode.offsetWidth),Kn(t.pageX),Jn(e),ln(e))},aa=e=>{const t=He.current;"string"!==typeof e||Yn&&Yn!==e?Yn||(ea(),xe.querySelector(".email-pane__iframe").style.width="1px",xe.querySelector(".email-pane__iframe").style.removeProperty("margin-left")):(xe.querySelector(".email-pane__iframe").style.width="calc(100% + 1px)","right"===e?(t.style.borderRightColor=P.colorPrimary,t.style.borderRightWidth="2px"):(t.style.borderLeftColor=P.colorPrimary,t.style.borderLeftWidth="2px",xe.querySelector(".email-pane__iframe").style.marginLeft="-1px"))},[la,ia]=(0,a.useState)(!1),oa=(0,a.useCallback)(e=>{if(!Yn)return;let t=2*(e.pageX-Gn),n=Zn+("left"===Yn?-t:t);const a=Math.min(Xn,w);if(n>318&&n<a){var l;const e=Math.min(n,w);B((0,y.vc)(e)),"number"===typeof e&&e<=425?le||ie(!0):le&&ie(!1),null===(l=De.current)||void 0===l||l.resize()}},[B,Zn,Gn,Yn,Xn,le,ie]),ra=(0,a.useCallback)(e=>{if(la)if("bottom"===K){const t=qe.current.getBoundingClientRect().height,n=qe.current.getBoundingClientRect().top,a=(e.clientY-n)/t*100;if(a<20||a>80)return;Bn(a),Tn()}else{const t=qe.current.getBoundingClientRect().width,n=qe.current.getBoundingClientRect().left,a=(e.clientX-n)/t*100,l=He.current.getBoundingClientRect().width;if(M.desktopMobileSwitchPanel&&"number"===typeof l&&l<=425&&(B((0,y.vc)(425)),le||ie(!0)),a<20||a>80)return;Bn(a)}},[la,K,Tn,le,B,M.desktopMobileSwitchPanel,ie]);(0,a.useEffect)(()=>{Tn()},[G,Tn]);const sa=t=>{const n="number"===typeof t?Math.min(t,w):t;B((0,y.vc)(n)),setTimeout(()=>Qn(n),700),"number"===typeof n&&n<=425?le||ie(!0):le&&ie(!1);const a="number"===typeof n?n:"100%"===n?"full":n,l="number"===typeof n&&n<=425?"mobile":"desktop";F({event:"change",action:"change_email_size",email_id:(null===e||void 0===e?void 0:e.id)||T||I,project_id:(null===j||void 0===j?void 0:j.id)||N,width:a,view_type:l})};(0,a.useEffect)(()=>{const e=new Q.jG;return e.addDisposable((0,Mt.a)(xe,"click",dn)),e.addDisposable((0,Mt.a)(xe,"mouseup",e=>ta(e,Nn),!0)),()=>{e.dispose()}},[xe,dn]),(0,a.useEffect)(()=>(window.addEventListener("scroll",Tn,!0),window.addEventListener("mousemove",oa,!0),window.addEventListener("mousemove",ra),window.addEventListener("keydown",sn),()=>{window.removeEventListener("mousemove",oa,!0),window.removeEventListener("mousemove",ra),window.removeEventListener("scroll",Tn,!0),window.removeEventListener("keydown",sn)}));const[ca,da]=(0,a.useState)(M.emailPaneDesktopSize||q);(0,a.useEffect)(()=>{M.emailPaneDesktopSize&&B((0,y.vc)(M.emailPaneDesktopSize))},[B,M.emailPaneDesktopSize]),(0,a.useEffect)(()=>{da(G&&"bottom"!==K&&!le&&M.desktopMobileSwitchPanel?"100%":q)},[B,M.emailPaneDesktopSize,G,K,le,M.desktopMobileSwitchPanel,q]);return(0,a.useEffect)(()=>{u&&(nn(g.nA),Cn("project"))},[u]),a.createElement(l.Layout,{className:d()("email-pane",{"email-pane_code-mode":G,"email-pane_only_code_mode_mobile":M.onlyCodeModeInMobile,"email-pane_code-mode-bottom":G&&"bottom"===K,"email-pane_no-element-navigation":!M.switchDesktopMobilePropsEnabled&&!M.stepToOtherElementEnabled&&!M.deleteButtonEnabled,"email-pane_is-mobile":le,"email-pane_path-enabled":M.pathEnabled})},a.createElement(jt,{className:"email-pane__container",ref:Ue},((null===Ve||void 0===Ve?void 0:Ve.type)===g.bV.TEXT||(null===Ve||void 0===Ve?void 0:Ve.type)===g.bV.LINK||Ve.type===g.bV.IMG||Ve.type===g.bV.BUTTON)&&G&&"bottom"!==K&&a.createElement(et.A,{className:d()("selected-element-panel__content selected-element-panel__content_abs",{"selected-element-panel__hidden":Ve.type===g.bV.IMG}),emailElementType:Pe,formSettings:Fe}),Ce&&le&&a.createElement(l.Fc,{message:x("Template is not mobile-friendly"),description:x("While editing, some elements of the email no longer fit the screen of the mobile device. Check that these elements are set to a smaller width for mobile devices."),type:"warning",className:"email-pane__col__alert",closable:!0}),Ae&&g.EW.isPlugin&&M.templateNotEmAlertShow&&a.createElement(l.Fc,{message:x("Template from another editor"),description:x("This template was created in another editor. Rebuild it from our components to get stable rendering, error-free editing, and full design control."),type:"warning",className:"email-pane__col__alert",closable:!0}),a.createElement(l.fI,{ref:qe,className:d()("email-pane__row",{"email-pane__left":G&&"right"===K,"email-pane__right":G&&"left"===K,"email-pane__bottom":G&&"bottom"===K,"email-pane__sizeSwitcher":M.desktopMobileSwitchPanel,"email-pane__reverse":"left"===M.menuDirection,"email-pane__pinch":!M.sidePanelFloating})},a.createElement(l.fv,{style:{flexGrow:1,overflowY:M.sidePanelFloating?"scroll":"hidden",overflowX:"hidden",height:G&&"bottom"===K?`calc(${Nn}%)`:"100%",width:`${"left"===K?100-Nn:"bottom"===K?100:Nn}%`},id:"pane-content-wrapper",ref:M.sidePanelFloating?ze:null},a.createElement("div",{className:"email-pane__iframe-scroll-top",id:"iframe-scroll-top"}),M.desktopMobileSwitchPanel&&a.createElement(l.$x,{className:"email-pane__sizes-panel-wrapper",direction:"vertical",size:10},a.createElement(l.$x,{className:"email-pane__sizes-panel",size:0},a.createElement(l.m_,{title:x("Desktop view"),placement:"top",open:at},a.createElement(l.$n,{type:le?"text":"primary",icon:a.createElement(v.Ay,{icon:"DesktopOutlined",size:18,strokeWidth:M.iconStrokeWidth}),shape:"circle",onClick:()=>sa(M.emailPaneDesktopSize||1e3),className:"toggle_view desktop_view"})),a.createElement(l.m_,{title:x("Mobile view"),placement:"top",open:ot},a.createElement(l.$n,{type:le?"primary":"text",icon:a.createElement(v.Ay,{icon:"MobileOutlined",size:18,strokeWidth:M.iconStrokeWidth}),shape:"circle",onClick:()=>sa(425),className:"toggle_view mobile_view"}))),M.codeSideEnabled&&a.createElement(l.m_,{title:x("Code mode"),placement:"right"},a.createElement(l.$n,{type:G?"primary":"default",icon:a.createElement(v.Ay,{icon:"Code"}),shape:"circle",onClick:()=>(t=>{const n=G?"visual":"code",a=!G;if(G?B((0,y.vs)()):"string"===typeof t?(B((0,y.Uf)(t)),!G&&B((0,y.vs)())):B((0,y.vs)()),a){const n=Pe===g.IE?"block":"email",a="string"===typeof t?t:K||"toggle";F({event:"activate",action:"activate_code_mode",entity_type:n,entity_id:(null===e||void 0===e?void 0:e.id)||T||I,project_id:(null===j||void 0===j?void 0:j.id)||N,code_mode_direction:a})}F({event:"change",action:"change_editor_mode",editor_mode:n,entity_id:(null===e||void 0===e?void 0:e.id)||T||I,project_id:(null===j||void 0===j?void 0:j.id)||N}),B((0,y.Fk)()),setTimeout(()=>{Pe===g.IE?B((0,R.A9)({type:null})):B((0,E.A9)({type:null}))},300),L.send({operation:g.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),B((0,It.rI)())})("right")}))),a.createElement(l.fI,{className:d()("email-pane__col-wrapper",{container:G&&"bottom"===K||!G,"email-pane__col-wrapper_reverse":"left"===M.menuDirection,"email-pane__col-wrapper_pinch":!M.sidePanelFloating}),style:{flexGrow:1,maxWidth:"unset",paddingTop:M.desktopMobileSwitchPanel&&G&&"bottom"!==K?"60px":""}},a.createElement(l.fv,{className:"email-pane__col email-pane__col_preview",style:{flexGrow:1,maxWidth:"unset"},ref:M.sidePanelFloating?null:ze},M.desktopMobileSwitchRule&&a.createElement("div",{className:`email-pane__sizes ${hn}`},a.createElement("div",{className:"email-pane__width-selectors-wrapper"},a.createElement("div",{className:"device-width__full",style:{flexGrow:1},onMouseEnter:()=>{fn("device-width__full-hovered"),vn(x("Desktop"))},onMouseLeave:()=>{fn(""),vn("")},onClick:()=>sa(1200)}),a.createElement("div",{className:"device-width__768",style:{width:171},onMouseEnter:()=>{fn("device-width__768-hovered"),vn(x("Small desktop \u2013 768px"))},onMouseLeave:()=>{fn(""),vn("")},onClick:()=>sa(768)}),a.createElement("div",{className:"device-width__425",style:{width:25},onMouseEnter:()=>{fn("device-width__425-hovered"),vn(x("Mobile L \u2013 425px"))},onMouseLeave:()=>{fn(""),vn("")},onClick:()=>sa(425)}),a.createElement("div",{className:"device-width__375",style:{width:28},onMouseEnter:()=>{fn("device-width__375-hovered"),vn(x("Mobile M \u2013 375px"))},onMouseLeave:()=>{fn(""),vn("")},onClick:()=>sa(375)}),a.createElement("div",{className:"device-width__320",style:{width:320},onMouseEnter:()=>{fn("device-width__320-hovered"),vn(x("Mobile S \u2013 320px"))},onMouseLeave:()=>{fn(""),vn("")},onClick:()=>sa(320)},bn),a.createElement("div",{className:"device-width__375",style:{width:28},onMouseEnter:()=>{fn("device-width__375-hovered"),vn(x("Mobile M \u2013 375px"))},onMouseLeave:()=>{fn(""),vn("")},onClick:()=>sa(375)}),a.createElement("div",{className:"device-width__425",style:{width:25},onMouseEnter:()=>{fn("device-width__425-hovered"),vn(x("Mobile L \u2013 425px"))},onMouseLeave:()=>{fn(""),vn("")},onClick:()=>sa(425)},a.createElement(l.m_,{title:x("Mobile view"),placement:"bottom"},a.createElement(l.$n,{type:"default",icon:a.createElement(v.Ay,{icon:"MobileOutlined",size:16,strokeWidth:2}),size:"small",shape:"circle",style:{right:-12,top:4,zIndex:999,padding:0,position:"absolute",onClick:()=>sa(425)}}))),a.createElement("div",{className:"device-width__768",style:{width:171},onMouseEnter:()=>{fn("device-width__768-hovered"),vn(x("Small desktop \u2013 768px"))},onMouseLeave:()=>{fn(""),vn("")},onClick:()=>sa(768)},a.createElement(l.m_,{title:x("Desktop view"),placement:"bottom"},a.createElement(l.$n,{type:"default",icon:a.createElement(v.Ay,{icon:"DesktopOutlined",size:16,strokeWidth:2}),size:"small",shape:"circle",style:{right:-12,top:4,zIndex:999,padding:0,position:"absolute",onClick:()=>sa(768)}}))),a.createElement("div",{className:"device-width__full",style:{flexGrow:1},onMouseEnter:()=>{fn("device-width__full-hovered"),vn(x("Desktop"))},onMouseLeave:()=>{fn(""),vn("")},onClick:()=>sa(1200)}))),a.createElement("div",{className:d()("email-pane__resizable",{"email-pane__resizable_drag":Yn||la}),style:{maxWidth:"number"===typeof ca?Math.min(ca,w):w}},a.createElement("div",{className:"email-pane__handle left",onMouseDown:na("left"),onMouseEnter:()=>aa("left"),onMouseLeave:aa}),a.createElement("div",{className:"email-pane__handle right",onMouseDown:na("right"),onMouseEnter:()=>aa("right"),onMouseLeave:aa}),a.createElement("div",{className:d()("email-pane__content-col email-pane__content-col_main",{"email-pane__content-col_disable":Yn||la}),ref:He,id:"pane-content-iframe"},a.createElement(Ut,{ref:De,className:"email-pane__iframe",email:e,handlerSendPosition:Tn})))),a.createElement(l.fv,{style:{display:G&&"bottom"!==K||M.disableSideMenu?"none":"initial"},ref:xn,className:d()("email-pane__content-col email-pane__content-col_menu email-pane__content-col_tabs email-pane__col email-pane__col_settings",{"email-pane__col_disabled":D===g.rb})},(!G||"bottom"===K)&&a.createElement(l.tU,{className:d()("email-pane__col_settings-inner",{"email-pane__col_settings-inner_reverse":"left"===M.menuDirection}),size:"middle",activeKey:D,onTabClick:t=>{xe.querySelector(".atoms__list");if(g.Bv,M.toggleSidePanel&&t===D?B((0,y.PM)(g.rb)):"Optimize"===t?(0,Q.Z1)(x,O):t!==g.yI&&t!==g.Vv?(B((0,y.PM)(t)),F({event:"navigate",action:"navigate_email_pane_tab",tab_name:t===g.rb?"DISABLED_TAB":t,entity_id:(null===e||void 0===e?void 0:e.id)||T||I,project_id:(null===j||void 0===j?void 0:j.id)||N}),L.send({operation:g.Ru.SANDBOX_LOCK_EDIT,data:!1}),L.send({operation:g.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),be([])):t!==g.yI&&t!==g.Vv||F({event:"navigate",action:"navigate_email_pane_tab",tab_name:t,entity_id:(null===e||void 0===e?void 0:e.id)||T||I,project_id:(null===j||void 0===j?void 0:j.id)||N}),Re&&("Discuss"===t||"Optimise"===t||"AiChat"===t))switch(gt(!0),t){case"Discuss":ft(7);break;case"Optimise":ft(6);break;case"AiChat":ft(9);break;default:ft(0)}},renderTabBar:Ft,tabPosition:"right",items:Wn,tabBarExtraContent:Oe&&a.createElement("div",{style:{paddingTop:15,textAlign:"center"}},z||(null===(k=H.id)||void 0===k?void 0:k.toString())!==(null===j||void 0===j||null===(A=j.members)||void 0===A?void 0:A.owner.ID)?a.createElement(l.dO,{variant:"editorMode",checkedChildren:"Pro",unCheckedChildren:"Pro",onChange:An,defaultChecked:Et}):a.createElement(l.dO,{variant:"editorMode",checkedChildren:"Pro",unCheckedChildren:"Pro",onChange:An,checked:bt}))}))),a.createElement("div",{className:"email-pane__iframe-scroll-bottom",id:"iframe-scroll-bottom"})),a.createElement(l.fv,{style:{width:`${"right"===K?100-Nn:"bottom"===K?100:Nn}%`,position:"relative",height:"bottom"===K?`calc(${100-Nn}%)`:"unset",display:G?"initial":"none"}},a.createElement("div",{className:"email-pane__code-divider",onMouseDown:()=>ia(!0)}),a.createElement("div",{className:"code-mode__pane code-mode__pane_editor email-pane__pane email-pane__pane_editor"},a.createElement("div",{className:"code-mode__pane-content email-pane__pane-content"},a.createElement(zt,{email:e,setOtherUsers:_e,readOnly:M.lockEditor,newEmailAiGeneratorRef:$e}))))),M.pathEnabled&&a.createElement("div",{className:"email-pane__paths"},a.createElement(_t,{elementPath:fe}),a.createElement(l.m_,{placement:"left",title:x(Be?"The code size exceeds the recommended value 90kB":"Code size")},a.createElement("span",{className:d()("email-pane__code-size",{"email-pane__code-size_exceeded":Be})},Ne))),a.createElement("div",{className:"collaborator-list"},a.createElement(At.b,{users:ye,isEditor:g._P.isEditor,isPlugin:g.EW.isPlugin,token:P}))),"img"===(null===Fe||void 0===Fe?void 0:Fe.type)&&G&&"bottom"!==K&&a.createElement("div",{className:"email-pane__collapse-wrapper email-pane__collapse-wrapper_disabled"},a.createElement(lt,{email:e,formSettings:Fe,onClosePanel:nt})),a.createElement(kt.I,null),a.createElement(Ke.A,{open:pt,onCancel:()=>{G&&B((0,y.vs)()),B((0,y.Fk)()),B((0,Lt.bc)("simple")),vt(!1),gt(!1),F({event:"change",action:"change_config_mode",config_mode:"simple",entity_id:(null===e||void 0===e?void 0:e.id)||T||I,project_id:(null===j||void 0===j?void 0:j.id)||N})},initialSlide:ht}),a.createElement(l.aF,{title:x("Warning"),open:ve,onOk:Dn,onCancel:()=>{Ee(!1)}},a.createElement("p",null,x("Clear chat history?"))))}},32495:(e,t,n)=>{"use strict";n.d(t,{A:()=>V});var a=n(1936),l=n(57549),i=n(69962),o=n(84075),r=n(48155),s=n.n(r),c=n(47706),d=n(87826),m=n(96040),u=n(81644),p=n(6403),g=n(78443),h=n(98173),f=n(40867),b=n(52898),v=n(68069),E=n(22817),y=n(89591),_=n(45988),C=n(44004),k=n(57701),A=n(93506),w=n(2896),x=n(7959),S=n(7714),L=n(7314),T=n(68876),I=n(91480),N=n(65185),B=n(65893),R=n(54729),O=n(50003),M=n(37444);const P=(0,O.Si)("preview_exceeded"),V=({emailElement:e,isCollaborationEditor:t})=>{var n,r,V,F;const{__:j}=(0,c.s9)(),W=(0,i.wA)(),D=(0,S.XW)(),{emailId:H,blockId:z}=(0,o.g)(),U=(0,i.d4)(g.cL),[q,Z]=(0,a.useState)(!1),[$,G]=(0,C.Zf)(),K=(0,o.Zp)(),X=(0,i.d4)(h.C1),[Y]=(0,y.YE)(H),[J]=(0,_.lx)(z),[Q]=(0,k.Oq)(),{owner:ee}=(0,x.A)(),te=(0,L.fn)(),ne=(0,L.aD)(te),ae=(0,L.TW)(te),le=(0,i.d4)(f.Wm),ie=(0,i.d4)(f.Fv),oe=(0,i.d4)(f.yy),{token:re}=(0,l.rd)(),se=(0,p.hN)(),ce=(0,T.rD)(),de=e.hasOwnProperty("type")?A.IE:A.Tm,me=(0,N.ml)(B.AZ.ON_SHARE_ID),ue=(0,N.ml)(B.AZ.ON_SHOW_PREVIEW_ID),[pe,ge]=(0,a.useState)(!1),[he,fe]=(0,a.useState)(0),[be,ve]=(0,a.useState)(!1),[Ee,ye]=(0,a.useState)(j("\u2014")),_e=(0,i.d4)(E.yN);let Ce=!(0,i.d4)(h.B$)&&(null===(n=X.id)||void 0===n?void 0:n.toString())===(null===_e||void 0===_e||null===(r=_e.members)||void 0===r?void 0:r.owner.ID);const ke=(0,I.u)(),Ae=H?"emailId":"blockId",we=null===e||void 0===e?void 0:e.project,xe=t=>{const n=de===A.IE?"block":"email";"string"===typeof t?(W((0,f.Uf)(t)),!ie&&W((0,f.vs)())):W((0,f.vs)()),ke({event:"activate",action:"activate_code_mode",entity_type:n,entity_id:(null===e||void 0===e?void 0:e.id)||H||z,project_id:(null===e||void 0===e?void 0:e.project)||we}),setTimeout(()=>{de===A.IE?W((0,v.A9)({type:null})):W((0,b.A9)({type:null}))},300),D({operation:A.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),Ce&&(ge(!0),fe(1))},Se=(0,a.useCallback)(async()=>{var e;if(A.EW.isPlugin)return!0;const t=await Q("preview"),n=(0,M.c0)("preview",null===(e=t.data)||void 0===e?void 0:e.stats);return!n||(ye(n.previousLimit),ve(!0),!1)},[Q]),Le=(0,a.useCallback)(async()=>{await Se()&&(ye(j("\u2014")),ve(!0))},[j,Se]);(0,a.useEffect)(()=>{G.isError&&(se.error(G),Z(!1))},[G]),(0,a.useEffect)(()=>{if(G.isSuccess&&q){var e;if(401===(null===(e=G.data)||void 0===e?void 0:e.status))se.error({message:G.data.code,description:G.data.message});else if(G.data){let e=document.createElement("A");e.setAttribute("target","_blank"),e.setAttribute("href",G.data.message),e.click()}Z(!1)}},[G,q,se]);const[Te,Ie]=(0,a.useState)(!1),Ne=()=>{D({operation:A.Ru.SANDBOX_LOCK_EDIT,data:le}),W((0,f.mi)(!le))},Be=H?Y:J;let Re=[];const Oe=(0,a.useCallback)(async()=>{const t=await ue.fire({project:we,id:H});!1!==t.find(e=>!1===e||"string"===typeof e)&&(window.open(t.find(e=>e)||`/email/${H}/raw?key=${s()(`${we}${H}${A.KI}`)}`),ke({event:"click",action:"open_email_preview",entity_type:de===A.IE?"block":"email",entity_id:(null===e||void 0===e?void 0:e.id)||H||z,project_id:(null===e||void 0===e?void 0:e.project)||we}))},[ue,we,H,ke,de,e,z]),Me=(0,a.useCallback)(async()=>{window.open(`/getemail/${H}?secret_hash=${s()(`${we}${H}${A.KI}`)}&raw=true`),ke({event:"click",action:"open_web_version",entity_type:de===A.IE?"block":"email",entity_id:(null===e||void 0===e?void 0:e.id)||H||z,project_id:(null===e||void 0===e?void 0:e.project)||we})},[we,H,ke,de,e,z]);ce.previewModeEnabled&&Re.push({key:"Preview_mode",icon:a.createElement(m.Ay,{icon:"EyeOutlined",size:18,strokeWidth:ce.iconStrokeWidth}),label:j("Preview mode"),onClick:Oe}),ce.livePreviewEnabled&&Re.push({key:"Live_preview",icon:q?a.createElement(m.Ay,{icon:"LoadingOutlined",style:{fontSize:16}}):a.createElement(m.Ay,{icon:"CheckCircleVerified",size:18,strokeWidth:ce.iconStrokeWidth}),label:j("Live preview"),onClick:(null===(V=X.id)||void 0===V?void 0:V.toString())===(null===(F=e.project_author)||void 0===F?void 0:F.toString())&&"community"===X.subscription.post_name&&ee?Le:async()=>{if(!q){if(!await Se())return;const t={email:H,subject:encodeURIComponent("#"+e.project+" "+e.title).replaceAll(/%20/gi,"+").replaceAll(/%0A/gi,"%0D%0A"),content:encodeURIComponent((null===te||void 0===te?void 0:te.getValue())||"").replaceAll(/%20/gi,"+").replaceAll(/%0A/gi,"%0D%0A")};$(t),Z(!0),ke({event:"click",action:"open_email_inbox_tests",entity_type:de===A.IE?"block":"email",entity_id:(null===e||void 0===e?void 0:e.id)||H||z,project_id:(null===e||void 0===e?void 0:e.project)||we})}}}),ce.webversionEnabled&&Re.push({key:"Web version",icon:a.createElement(m.Ay,{icon:"Web",size:18,strokeWidth:ce.iconStrokeWidth}),label:j("Web version"),onClick:Me}),ce.sharePreviewEnabled&&Re.push({key:"Share",icon:a.createElement(m.Ay,{icon:"ShareAltOutlined",size:18,strokeWidth:ce.iconStrokeWidth}),label:j("Share"),onClick:async()=>{const t=(await me.fire({project:we,id:H})).find(e=>!1===e||"string"===typeof e);!1!==t&&navigator.clipboard.writeText(t||`https://app.emailmaker.ru/email/${H}/raw?key=${s()(`${we}${H}${A.KI}`)}`).then(()=>{se.success(j("A shareable link to this page has been copied to the clipboard.")),ke({event:"click",action:"share_email",entity_type:de===A.IE?"block":"email",entity_id:(null===e||void 0===e?void 0:e.id)||H||z,project_id:(null===e||void 0===e?void 0:e.project)||we})})},className:"em-analytics__email-share"});const Pe=[{key:"Left_mode",icon:a.createElement(m.Ay,{icon:"PanelLeft",size:18,strokeWidth:ce.iconStrokeWidth,style:{color:"left"===oe&&ie?re.colorPrimary:"inherit"}}),label:j("Left Code panel"),onClick:()=>xe("left")},{key:"Right_mode",icon:a.createElement(m.Ay,{icon:"PanelLeft",size:18,strokeWidth:ce.iconStrokeWidth,style:{transform:"rotate(180deg)",color:"right"===oe&&ie?re.colorPrimary:"inherit"}}),label:j("Right Code panel"),onClick:()=>xe("right")},{key:"Bottom_mode",icon:a.createElement(m.Ay,{icon:"PanelLeft",size:18,strokeWidth:ce.iconStrokeWidth,style:{transform:"rotate(-90deg)",color:"bottom"===oe&&ie?re.colorPrimary:"inherit"}}),label:j("Bottom Code panel"),onClick:()=>xe("bottom")}];return a.createElement("div",{className:"email-preview-menu email-preview-menu_new"},a.createElement(l.$x,{size:32},a.createElement(l.$x,{className:"email-preview-menu__versions",size:8,style:{borderRadius:"calc(var(--borderRadius) * 1px"}},a.createElement(l.m_,{title:j(t?w.LJ:"Undo (Ctrl+Z)"),placement:"bottom"},a.createElement(l.$n,{type:"text",icon:a.createElement(m.Ay,{icon:"UndoOutlined",size:22,strokeWidth:ce.iconStrokeWidth}),onClick:()=>{ne.undo()},disabled:!ae.canUndo})),a.createElement(l.m_,{title:j(t?w.LJ:"Redo (Ctrl+Shift+Z)"),placement:"bottom"},a.createElement(l.$n,{type:"text",icon:a.createElement(m.Ay,{icon:"RedoOutlined",size:22,strokeWidth:ce.iconStrokeWidth}),onClick:()=>{ne.redo()},disabled:!ae.canRedo})),ce.historyEnabled&&a.createElement(l.m_,{title:j("Version history"),placement:"bottom"},a.createElement(l.$n,{type:le?"text":"primary",ghost:!le,onClick:()=>{le?(Ie(!0),Be({[Ae]:null===e||void 0===e?void 0:e.id}).then(t=>{t.isSuccess?0!==t.data.data.length||A.EW.isPlugin||se.error({message:j("No history records available.")}):t.isError&&se.error(t),Ne(),W((0,f.PM)(A.Vv)),Ie(!1),ke({event:"open",action:"open_version_control",entity_type:de===A.IE?"block":"email",entity_id:(null===e||void 0===e?void 0:e.id)||H||z,project_id:(null===e||void 0===e?void 0:e.project)||we}),Ce&&(ge(!0),fe(4))})):(W((0,f.Fk)()),Ne())},disabled:e.isNew||Te,className:"email-preview-menu__history",icon:Te?a.createElement(l.tK,{size:"small"}):a.createElement(a.Fragment,null,a.createElement(m.Ay,{icon:"HistoryOutlined",size:22,strokeWidth:ce.iconStrokeWidth,className:"email-preview-menu__list-item-icon email-preview-menu__list-item-icon_revert"}),Ce&&a.createElement(m.Ay,{icon:"Lock",size:14,strokeWidth:ce.iconStrokeWidth,className:"free-mode-firewall-icon"}))}))),a.createElement(l.$x,{size:8,style:{borderRadius:"calc(var(--borderRadius) * 1px"}},ce.codeEnabled&&a.createElement(l.ms,{arrow:!0,key:"Code mode",placement:"bottom",menu:{items:Pe},trigger:"hover",mouseEnterDelay:0,className:"email-preview-menu__code"},a.createElement(l.$n,{type:ie?"primary":"text",ghost:ie,icon:a.createElement(a.Fragment,null,a.createElement(m.Ay,{icon:"Code",size:22,strokeWidth:ce.iconStrokeWidth}),Ce&&a.createElement(m.Ay,{icon:"Lock",size:14,strokeWidth:ce.iconStrokeWidth,className:"free-mode-firewall-icon"})),onClick:xe})),ce.previewIconEnabled&&(Ce?a.createElement(l.m_,{title:j("Preview mode"),placement:"bottom"},a.createElement(l.$n,{type:"text",icon:a.createElement(a.Fragment,null,a.createElement(m.Ay,{icon:"EyeOutlined",size:22,strokeWidth:ce.iconStrokeWidth,className:"email-preview-menu__list-item-icon"}),a.createElement(m.Ay,{icon:"Lock",size:14,strokeWidth:ce.iconStrokeWidth,className:"free-mode-firewall-icon"})),onClick:()=>{ge(!0),fe(7)}})):a.createElement(l.ms,{arrow:!0,key:"Preview",placement:"bottom",menu:{items:Re},className:"email-preview-menu__preview"},a.createElement(l.$n,{type:"text",target:"_blank",rel:"noreferrer",icon:a.createElement(m.Ay,{icon:"EyeOutlined",size:22,strokeWidth:ce.iconStrokeWidth,className:"email-preview-menu__list-item-icon"}),onClick:ce.previewModeEnabled?Oe:void 0}))),ce.sendTestEnabled&&a.createElement(l.m_,{title:j("Send a test email"),placement:"bottom"},a.createElement(l.$n,{className:"em-analytics__email-open-test email-preview-menu__test",type:"text",icon:a.createElement(m.Ay,{icon:"SendOutlined",size:22,strokeWidth:ce.iconStrokeWidth,className:"email-preview-menu__list-item-icon"}),onClick:async()=>{await Se()&&(W((0,g.qf)(A.lx.SEND_TEST_EMAIL)),ke({event:"open",action:"open_test_email_modal",entity_type:de===A.IE?"block":"email",entity_id:(null===e||void 0===e?void 0:e.id)||H||z,project_id:(null===e||void 0===e?void 0:e.project)||we}))}})))),a.createElement(d.A,{isModalVisible:U===A.lx.SEND_TEST_EMAIL,email:e}),a.createElement(u.A,{open:pe,onCancel:()=>{le||(Ne(),W((0,f.Fk)())),ie&&W((0,f.vs)()),ge(!1)},initialSlide:he}),a.createElement(R.X,{open:be,onClose:()=>ve(!1),title:j(P.titleKey),subtitle:j(P.subtitleKey),usageResource:P.usageResource,previousDisplay:Ee,nextDisplay:(0,O.hO)("infinity"),onChangePlan:()=>{ve(!1),document.body.classList.remove("editor"),K("/billing"),W((0,g.qf)(A.lx.SWITCH_TO_PLAN_MODAL))}}))}},9907:(e,t,n)=>{"use strict";n.d(t,{A:()=>U});var a=n(1936),l=n(57549),i=n(74291),o=n(88260),r=n(84075),s=n(69962),c=n(6056),d=n.n(c),m=n(42414),u=n(73378),p=n(58700),g=n(48155),h=n.n(g),f=n(41244),b=n(2527),v=n(91480),E=n(47706),y=n(93506),_=n(98173);const C=({element:e,setSearchFilters:t=(e,t)=>{}})=>{var n;const{projectId:i}=(0,r.g)(),o=(0,r.Zp)(),c=(0,b.p)(),{token:d}=(0,l.rd)(),{__:m}=(0,E.s9)(),u=e.type?y.IE:y.Tm,p=`/projects/${i}/emails/new`,g=(0,v.u)(),C=(0,s.d4)(_.C1),k=(0,a.useRef)(null);return a.createElement(l.Zp,{className:`element-card element-card_${u} element-card_template`,hoverable:!0,id:e.id,style:{cursor:"pointer"},"data-testid":e.id,cover:a.createElement(a.Fragment,null,a.createElement("div",{ref:k,className:"element-card__img-wrapper"},a.createElement("img",{className:"element-card__img",alt:e.title,src:((e,t=i,n)=>`https://scr.emcdn.ru/screenshot?delay=1000&width=800&fullPage=true&deviceScaleFactor=0.8&format=jpg&force=false${n?`&cacheControl=true&cache-hash=${h()(n)}`:""}&url=${encodeURIComponent(`https://app.emailmaker.ru/get${u}/${e}?secret_hash=${h()(`${t}${e}${y.KI}`)}&raw=true`)}`)(e.id,e.project,e.modified),onMouseMove:e=>(0,f.Hy)(e,k.current),onMouseLeave:f.Tr})),e.is_template&&e.project===+i&&a.createElement("div",{className:"element-card__is-template-wrapper"},m("Template")),(0,f._q)(e,y.zh).length&&a.createElement("div",{className:"element-card__tags-wrapper"},a.createElement(l.$x,{wrap:!0,size:8},null===(n=(0,f._q)(e,y.zh))||void 0===n?void 0:n.map(e=>a.createElement(l.vw,{bordered:!1,color:d.colorPrimary,style:{borderRadius:6},key:e.id,onClick:()=>t(null,e.id)},e.name))))),onClick:()=>(t=>{var n;g({event:"select",action:"create_new_email",template_id:t,project_id:i,template_title:(0,f.ln)(e.title),description:"Create new email from template",subscription:null===C||void 0===C||null===(n=C.subscription)||void 0===n?void 0:n.post_title}),c.set(y.A9.em_new_email,t),(0,f.XZ)(o,p)})(e.id)},a.createElement("div",null,a.createElement(l.$n,{type:"link",className:"element-card__title"},(0,f.ln)(e.title))))};var k=n(12650),A=n(96040),w=n(78443);const x="description",S=()=>{const{__:e}=(0,E.s9)(),t=(0,s.wA)(),n=(0,v.u)(),[i]=l.lV.useForm(),o=(0,a.useRef)(null),c=(0,s.d4)(w.cL)===y.lx.ADD_NEW_AI_EMAIL,d=(0,b.p)(),m=(0,r.Zp)(),{projectId:u}=(0,r.g)(),p=(0,a.useCallback)(()=>{i.resetFields(),setTimeout(()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.focus()},0)},[i]);(0,a.useEffect)(()=>{c&&p()},[c,p]);const g=()=>t((0,w.Oo)()),h=()=>{const e=`/projects/${u}/emails/new`,t=String(278056);d.set(y.A9.em_new_email,t),i.validateFields().then(({description:t})=>{n({event:"submit_form",action:"ai_email_generation",project_id:u,ai_prompt:t}),window.localStorage.setItem(y.V0.em_active_tab,y.z$),window.localStorage.setItem(y.V0.em_ai_settings,t),(0,f.XZ)(m,e),g()})};return a.createElement(l.aF,{title:a.createElement(a.Fragment,null,a.createElement("span",null,e("I'd be happy to create an email for you! ")),a.createElement("p",null,e("Start with a detailed description of your email."))),open:c,onOk:h,onCancel:g,className:"new-folder-modal",footer:[a.createElement(l.$n,{key:"submit",type:"primary",size:"large",onClick:h},e("Generate Email"))]},a.createElement(l.lV,{form:i,layout:"vertical",name:"add_new_folder_form",onFinish:h,initialValues:{[x]:""},autoComplete:"off",style:{paddingTop:10}},a.createElement(l.lV.Item,{name:x,rules:[{required:!0,message:e("Please enter the description")}]},a.createElement(l.pd,{size:"large",placeholder:e("Please enter the description"),ref:o,style:{marginBottom:5}}))))};var L=n(40146),T=n(6403),I=n(68876),N=n(85986);const B=({viewMode:e,onSwitchView:t,sortOption:n,onChangeSort:i})=>{const{__:o}=(0,E.s9)(),r=(0,I.rD)();return a.createElement("div",{className:"selectedEmailsBar"},a.createElement(l.$x,{size:12,className:"cards-search__by-title_unselected"},a.createElement(N.A,{isBlocks:!1})),a.createElement(l.$x,{size:8},a.createElement(l.Select,{value:n,onChange:i,style:{width:180},options:[{value:"date-desc",label:o("Newest first")},{value:"date-asc",label:o("Oldest first")},{value:"name-asc",label:o("A-Z")},{value:"name-desc",label:o("Z-A")}]}),a.createElement(l.$q,{variant:"view-switcher",defaultValue:e,onChange:t,value:e,key:"Switch radio",options:[{value:y.Y$,label:a.createElement(l.m_,{title:o("Cards view"),placement:"top"},a.createElement(A.Ay,{icon:"Grid01Icon",size:14,strokeWidth:r.iconStrokeWidth}))},{value:y.rl,label:a.createElement(l.m_,{title:o("Table view"),placement:"top"},a.createElement(A.Ay,{icon:"ListViewIcon",size:18,strokeWidth:r.iconStrokeWidth}))}]})))};var R=n(89591),O=n(79613),M=n(44004),P=n(75354),V=n(52898),F=n(22817),j=n(7959);const W=({selectedCount:e,isDeletedEmails:t,onClear:n,onBulkDelete:i,onBulkMoveItems:o,onBulkCloneItems:r,onBulkToggleLock:s,selectedAllLocked:c,onRename:d})=>{const{__:m}=(0,E.s9)();return a.createElement("div",{className:"selectedEmailsBar"},a.createElement(l.$x,{size:12},a.createElement("span",null,e," ",m("selected")),a.createElement(l.m_,{title:m("Clear selection")},a.createElement(l.$n,{onClick:n},m("Clear")))),a.createElement(l.$x,{size:8,style:{padding:"1px 0"}},a.createElement(l.$n,{icon:c?a.createElement(A.Ay,{icon:"UnlockOutlined"}):a.createElement(A.Ay,{icon:"LockOutlined"}),onClick:s},m(c?"Unlock":"Lock")),d&&1===e&&a.createElement(l.$n,{icon:a.createElement(A.Ay,{icon:"EditOutlined"}),onClick:d},m("Rename")),a.createElement(l.ms,{arrow:!0,placement:"bottom",menu:{items:r||[],style:{maxHeight:"70vh",overflowY:"auto"}},trigger:["click"]},a.createElement(l.$n,{icon:a.createElement(A.Ay,{icon:"CopyOutlined",size:14})},m("Clone"))),!t&&a.createElement(l.ms,{arrow:!0,placement:"bottom",menu:{items:(null===o||void 0===o?void 0:o.items)||[],style:{maxHeight:"70vh",overflowY:"auto"}},trigger:["click"]},a.createElement(l.$n,{icon:a.createElement(A.Ay,{icon:"FolderOutlined"})},m("Transfer to folder"))),a.createElement(l.$n,{danger:!0,icon:a.createElement(A.Ay,{icon:"DeleteOutlined",size:14}),onClick:i},m(t?"Delete permanently":"Remove"))))};var D=n(47794),H=n(11822);const z=(e,t)=>`${e.pathname}/${t.id}`,U=({projectId:e,emailsView:t,createPage:n=!1,currentFolderId:c,foldersList:g,refetchProjectFolders:h,projectTags:x=[],activeTagId:N,setActiveTagHandler:U,projectEmailsCounter:q=0,registerFunction:Z=()=>{},groupType:$=null})=>{var G,K,X,Y,J,Q,ee,te,ne;const{__:ae,_x:le}=(0,E.s9)(),ie=(0,I.rD)(),oe=(0,s.wA)(),re=(0,s.d4)(P.MY),se=(0,s.d4)(P.aO),ce=(0,s.d4)(F.RP),de=(0,s.d4)(F.AQ),me=(0,s.d4)(F.qV),ue=(0,s.d4)(_.C1),pe=(0,s.d4)(P.NP),ge=(0,s.d4)(P.qM),he=(0,s.d4)(P.ux),fe=(0,s.d4)(V.CT),be=(0,s.d4)(F.GD),ve=(0,s.d4)(F.Rw),[Ee,ye]=(0,o.ok)(),_e=(0,b.p)(),Ce=(0,T.hN)(),{owner:ke,admin:Ae}=(0,j.A)();let we=(0,r.zy)();const xe=(0,r.Zp)(),{token:Se}=(0,l.rd)(),{modal:Le}=l.qw.useApp(),Te=(0,s.Pj)(),{confirm:Ie}=Le,Ne=(0,v.u)(),Be=[...be,...ve],[Re,Oe]=(0,a.useState)(null);(0,a.useEffect)(()=>{$===y.ti.ALL?Oe(ce+de):$===y.ti.PROJECT?Oe(de):$===y.ti.STANDARD&&Oe(ce)},[$,ce,de]);const Me=+Ee.get("page"),Pe=Ee.get("folder"),Ve=+Ee.get("tag");(0,a.useEffect)(()=>{window.localStorage.setItem(y.V0.em_last_active_page,Me)},[Me]);const[Fe,je]=(0,R.Kh)(),[We]=(0,R._3)(),[De]=(0,R.dN)(),{refetch:He}=(0,r.KC)(),[ze,Ue]=(0,a.useState)(!1),qe=`/projects/${e}/emails/new`,Ze=c&&c===y.UW,$e=c===y.y2&&!Ve;(0,a.useEffect)(()=>{oe((0,P.FC)())},[oe]);const[Ge,Ke]=(0,a.useState)({projectId:e,page:Me||1,pageSize:y.mU,notEmbed:!0,tags:null,folderTag:null}),{isLoading:Xe,isSuccess:Ye,isError:Je,isFetching:Qe,refetch:et,error:tt}=(0,R.Xw)({...Ge,folderTag:null,tags:null,status:"main"},{skip:n||!(null===(G=Ge.name)||void 0===G||!G.length)&&c!==y.y2}),[nt,at]=(0,a.useState)({page:Me||1,pageSize:y.mU,folderTag:null,tags:[],groupType:$}),{isLoading:lt,isSuccess:it,isError:ot,isFetching:rt,data:st=[],refetch:ct,error:dt}=(0,R.PX)({...nt,groupType:$},{skip:!n||(Math.ceil(ce+de/y.mU)||1)<nt.page||$===y.ti.PROJECT}),{isLoading:mt,isSuccess:ut,isError:pt,isFetching:gt,data:ht=[],refetch:ft,error:bt}=(0,R.PX)({...nt,projectId:e,groupType:$},{skip:!n||(Math.ceil(de/y.mU)||1)<nt.page||$===y.ti.STANDARD}),vt=(e,t)=>$===y.ti.ALL?e||t:$===y.ti.PROJECT?t:e,Et=vt(lt,mt),yt=vt(it,ut),_t=vt(ot,pt),Ct=vt(rt,gt),kt=vt(ct,ft),At=vt(dt,bt),[wt,xt]=(0,a.useState)({projectId:e,page:Me||1,pageSize:y.mU,notEmbed:!0,tags:Ve&&[Ve],folderTag:c}),{isLoading:St,isSuccess:Lt,isError:Tt,isFetching:It,error:Nt,refetch:Bt}=(0,R.Xw)({...wt,tags:c&&wt.folderTag?null:wt.tags,status:"custom"},{skip:n||Ze||c===y.y2||wt.folderTag!==c||!(null===(K=wt.name)||void 0===K||!K.length)&&(Ze||c===y.y2)}),[Rt,Ot]=(0,a.useState)({projectId:e,page:Ze?Me:1,pageSize:y.mU,notEmbed:!0,tags:Ve&&[Ve],folderTag:null,status:"trash"}),[Mt,Pt]=(0,a.useState)(!1),{isLoading:Vt,isSuccess:Ft,isError:jt,isFetching:Wt,data:Dt,refetch:Ht,error:zt}=(0,R.Xw)({...Rt,status:"trash",folderTag:null,page:Mt?Rt.page:1},{skip:n||(Math.ceil(se/y.mU)||1)<Rt.page||!(null===(X=Rt.name)||void 0===X||!X.length)&&!Ze||!(null===(Y=Rt.tags)||void 0===Y||!Y[0])&&he>0});(0,a.useEffect)(()=>{Ft&&Ht()},[null===g||void 0===g?void 0:g.length,Ht,Ft]),(0,a.useEffect)(()=>{Pt(!!Dt||Math.ceil(se/y.mU)>=Rt.page)},[Dt,Rt.page,se]);const Ut=(0,a.useMemo)(()=>{let e=[];return $!==y.ti.STANDARD&&ht&&me>=nt.page&&(e=[...ht]),$!==y.ti.PROJECT&&st&&(e=[...e,...st].slice(0,y.mU)),e},[$,ht,st,me,nt.page]),qt=n?nt:Ze?Rt:$e?Ge:wt,Zt=n?yt:Ze?Ft:$e?Ye:Lt,$t=n?Et:Ze?Vt:$e?Xe:St,Gt=n?_t:Ze?jt:$e?Je:Tt,Kt=n?Ct:Ze?Wt:$e?Qe:It,Xt=n?kt:Ze?Ht:$e?et:Bt,Yt=n?At:Ze?zt:$e?tt:Nt,Jt=(n?Re:Ze?se:$e?re:null===pe||void 0===pe||null===(J=pe[c||(null===(Q=wt.tags)||void 0===Q?void 0:Q[0])])||void 0===J?void 0:J.total)||0,Qt=n?Ut:Ze?he:$e?ge:null===pe||void 0===pe||null===(ee=pe[c||(null===(te=wt.tags)||void 0===te?void 0:te[0])])||void 0===ee?void 0:ee.list,en=(Qt||[]).map(e=>e.id).join(","),{selectedRowKeys:tn,setSelectedRowKeys:nn,clearSelection:an,toggleCardSelection:ln}=function(e,t=[]){const[n,l]=a.useState([]),[i,o]=a.useState(null),r=a.useMemo(()=>{const t={};return(e||[]).forEach((e,n)=>{t[e.id]=n}),t},[e]),s=a.useCallback(()=>{l([]),o(null)},[]);a.useEffect(()=>{s()},[s,...t]);const c=a.useCallback(()=>{const t=(e||[]).map(e=>e.id);var n;l(t),t.length&&o(null!==(n=r[t[t.length-1]])&&void 0!==n?n:null)},[e,r]),d=a.useCallback((t,{metaKey:a,ctrlKey:s,shiftKey:c})=>{const d=r[t];if(void 0!==d){if(c&&null!==i){const t=Math.min(i,d),o=Math.max(i,d),r=(e||[]).slice(t,o+1).map(e=>e.id);if(a||s){const e=new Set(n);r.forEach(t=>e.add(t)),l(Array.from(e))}else l(r);return}if(a||s)return n.includes(t)?l(n.filter(e=>e!==t)):l([...n,t]),void o(d);l([t]),o(d)}},[e,r,i,n]);return{selectedRowKeys:n,setSelectedRowKeys:l,clearSelection:s,selectAllOnPage:c,toggleCardSelection:d}}(Qt,[en,qt.page,t]),on=a.useCallback(()=>{const e=new Set(tn);return(Qt||[]).filter(t=>e.has(t.id))},[tn,Qt]),rn=a.useMemo(()=>{const e=on();return e.length>0&&e.every(e=>e.lock)},[on]),sn=()=>{const e=on();if(!e.length)return;const t=!rn;Promise.all(e.map(e=>De({emailId:e.id,lock:t}).catch(e=>{}))).then(()=>{Xt&&Xt(),h&&h()})},cn=async(e,t)=>{var n,a,l,i,o;const r=(await We(e)).data;if(!r)return;const s=await Fe({title:(0,f.fq)(r.title),...void 0!==r.meta?{meta:r.meta}:{},project:r.project,subject:r.subject,description:r.description,html:(0,f.el)(r.html||"",r.title),parent_email:r.parent_email||y.iU,common_styles:r.common_styles||"",utm_parameters:{utm_source:null===(n=r.utm_parameters)||void 0===n?void 0:n.utm_source,utm_medium:null===(a=r.utm_parameters)||void 0===a?void 0:a.utm_medium,utm_campaign:null===(l=r.utm_parameters)||void 0===l?void 0:l.utm_campaign,utm_term:null===(i=r.utm_parameters)||void 0===i?void 0:i.utm_term,utm_content:null===(o=r.utm_parameters)||void 0===o?void 0:o.utm_content},emailtags:r.emailtags,folder:t});var c,d;null!==s&&void 0!==s&&s.error?Ce.error({message:null===(c=s.error.data)||void 0===c?void 0:c.code,description:null===(d=s.error.data)||void 0===d?void 0:d.message}):Ne({event:"clone",action:"clone_email",email_id:e,cloned_email_id:s.data.id,project_id:r.project})},dn=async e=>{if(!tn.length)return;const t=e===y.y2?[]:[e];Ue(!0);for(const n of tn)await cn(n,t);Xt&&Xt(),h&&h(),an(),Ue(!1),Ce.success({message:ae("The copies were successfully created.")})},[mn,un]=(0,a.useState)({id:null,title:""}),pn=()=>{if(1!==tn.length)return;const e=tn[0],t=(Qt||[]).find(t=>t.id===e);un({id:e,title:(null===t||void 0===t?void 0:t.title)||(null===t||void 0===t?void 0:t.subject)||""}),oe((0,w.qf)(y.lx.RENAME_EMAIL_MODAL))},gn=e=>{_e.set(y.A9.em_elements_view,e),oe((0,P.NK)(e))},hn=a.useMemo(()=>{const e=((null===qt||void 0===qt?void 0:qt.order)||"desc").toLowerCase(),t=((null===qt||void 0===qt?void 0:qt.orderby)||"date").toLowerCase();return"title"===t?`name-${e}`:"modified"===t?`modified-${e}`:"date"===t?`date-${e}`:"date-desc"},[null===qt||void 0===qt?void 0:qt.order,null===qt||void 0===qt?void 0:qt.orderby]),fn=e=>{const[t,n]=String(e).split("-"),a="asc"===n?"asc":"desc",l="name"===t?"title":"modified"===t?"modified":"date";kn({page:qt.page||1,order:a,orderby:l,pageSize:y.mU})},bn=(e,t)=>{const n=(null===qt||void 0===qt?void 0:qt.orderby)===t,i="asc"===(null===qt||void 0===qt?void 0:qt.order);return a.createElement(l.XI.ColumnHeader,{label:e,isActive:n,isAsc:i,onClick:()=>(e=>{const t=(null===qt||void 0===qt?void 0:qt.orderby)||"date",n=(null===qt||void 0===qt?void 0:qt.order)||"desc";fn(`${"title"===e?"name":"modified"===e?"modified":"date"}-${t===e?"asc"===n?"desc":"asc":"desc"}`)})(t)})},vn=(0,s.d4)(P.Ni)||t,En=()=>{tn.length&&Ie({maskClosable:!0,centered:!0,title:le(Ze?"Are you sure to irrevocably delete selected emails?":"Are you sure to delete selected emails?","email"),icon:a.createElement(A.Ay,{icon:"DeleteOutlined",style:{color:"#ff4d4f"}}),okText:ae("Yes"),cancelText:ae("No"),onOk:async()=>{const e=(Qt||[]).reduce((e,t)=>(e[t.id]=t,e),{});for(const t of tn){const n=e[t];n&&await An(n)}an()}})},yn=e=>{if(!tn.length)return;const t=e===y.y2?[]:[e],n=e===y.y2;(Qt||[]).reduce((e,t)=>(e[t.id]=t,e),{});Promise.all(tn.map(e=>De({emailId:e,folder:t}).then(e=>{var t,n;null!==e&&void 0!==e&&e.error&&Ce.error({message:null===(t=e.error.data)||void 0===t?void 0:t.code,description:null===(n=e.error.data)||void 0===n?void 0:n.message});return e}).catch(e=>{}))).then(()=>{t[0]?oe(R.GY.endpoints.getEmails.initiate({...qt,folderTag:t[0]||null},{forceRefetch:!0})):n&&oe(R.GY.endpoints.getEmails.initiate({...Ge,folderTag:null,tags:null,status:"main"},{forceRefetch:!0})),c!==y.y2?oe(R.GY.endpoints.getEmails.initiate({...qt,folderTag:c||null},{forceRefetch:!0})):Xt&&Xt(),h&&h(),an()})},_n=()=>{if(Ze)return[];return[{icon:a.createElement(A.Ay,{icon:"MailOutlined",style:{fontSize:18}}),label:ae("New emails"),key:y.y2,onClick:()=>yn(y.y2)},...(null===g||void 0===g?void 0:g.map(e=>({icon:a.createElement(A.Ay,{icon:"FolderOutlined",style:{fontSize:18}}),label:e.name,key:e.id,onClick:()=>yn(e.id)})))||[]]},Cn=()=>[{icon:a.createElement(A.Ay,{icon:"MailOutlined",style:{fontSize:18}}),label:ae("New emails"),key:y.y2,onClick:()=>dn(y.y2)},...(null===g||void 0===g?void 0:g.map(e=>({icon:a.createElement(A.Ay,{icon:"FolderOutlined",style:{fontSize:18}}),label:e.name,key:e.id,onClick:()=>dn(e.id)})))||[]];(0,a.useEffect)(()=>{m.gV({id:null===ue||void 0===ue?void 0:ue.id,email:null===ue||void 0===ue?void 0:ue.email,username:null===ue||void 0===ue?void 0:ue.name})},[ue]),(0,a.useEffect)(()=>{Zt&&Xt&&Z(Xt)},[Z,Xt,Zt]);const kn=(0,a.useCallback)(e=>{const t={...e,folderTag:void 0===e.folderTag?null:e.folderTag};n?at(e=>({...e,...t})):Ze?Ot(t=>({...t,...e})):$e?Ke(t=>({...t,...e})):xt(t=>({...t,...e}))},[n,Ze,$e]);(0,a.useEffect)(()=>{var e;"rest_post_invalid_page_number"===(null===Yt||void 0===Yt||null===(e=Yt.data)||void 0===e?void 0:e.code)&&kn({page:1})},[Yt,kn]),(0,a.useEffect)(()=>{if(!n){(Pe&&Pe!==c||N&&Ve!==N)&&kn({folderTag:c,page:1});let e={page:Pe===c&&qt.page?qt.page:1};c&&!Ve&&(e.folder=c),N&&(e.tag=N),ye(e,{replace:!0})}},[qt.page,xe,n,Pe,c,N,Ve,kn,ye]);const An=e=>Te.dispatch(R.GY.endpoints.deleteEmail.initiate({id:e.id,force:Ze})).then(t=>{if(t.error)Ce.error(t);else if(t.data){Ce.success(ae('The email "')+t.data.title+le('" was successfully removed.',"email")),Ne({event:"delete",action:"delete_email",entity_type:"email",entity_id:e.id,project_id:e.project,context:"list",force:Ze}),Xt();try{h()}catch(tt){}if(Ht(),Ze&&He)try{He()}catch(tt){}}}),wn=e=>{Ne({event:"click",action:"click_delete_email_menu_item",entity_type:"email",entity_id:e.id,project_id:e.project,context:"list"}),Ne({event:"open",action:"open_delete_email_modal",entity_type:"email",entity_id:e.id,project_id:e.project,context:"list"}),Ie({maskClosable:!0,centered:!0,title:le(Ze?'Are you sure to irrevocably delete "':'Are you sure to delete "',"email")+e.title+ae('" email?'),icon:a.createElement(A.Ay,{icon:"DeleteOutlined",style:{color:"#ff4d4f"}}),okText:ae("Yes"),cancelText:ae("No"),onOk:()=>An(e)})},xn=e=>{Ue(!0),De({emailId:null===e||void 0===e?void 0:e.id,status:"publish"}).then(t=>{if(t.error)Ce.error({message:t.error.data.code,description:t.error.data.message});else{e.folder[0]?Xt():et();try{h()}catch(tt){}Ht(),Ce.success({message:ae("The email \u201c")+e.title+le("\u201d was successfully recovered.","recovery")})}Ue(!1)})},Sn=e=>{Ue(!0),We(null===e||void 0===e?void 0:e.id).then(t=>{var n,a,l,i,o;const r=t.data;Fe({title:(0,f.fq)(r.title),...void 0!==r.meta?{meta:r.meta}:{},project:r.project,subject:r.subject,description:r.description,html:(0,f.el)(r.html||"",r.title),parent_email:r.parent_email||y.iU,common_styles:r.common_styles||"",utm_parameters:{utm_source:null===(n=r.utm_parameters)||void 0===n?void 0:n.utm_source,utm_medium:null===(a=r.utm_parameters)||void 0===a?void 0:a.utm_medium,utm_campaign:null===(l=r.utm_parameters)||void 0===l?void 0:l.utm_campaign,utm_term:null===(i=r.utm_parameters)||void 0===i?void 0:i.utm_term,utm_content:null===(o=r.utm_parameters)||void 0===o?void 0:o.utm_content},emailtags:e.emailtags,folder:r.folder}).then(t=>{if(t.error)Ce.error({message:t.error.data.code,description:t.error.data.message});else{var n;Ne({event:"clone",action:"clone_email",email_id:e.id,cloned_email_id:t.data.id,project_id:r.project}),null!==(n=r.folder)&&void 0!==n&&n[0]?Bt():et();try{h()}catch(tt){}Ce.success({message:ae('The copy of email "')+e.title+le('" was successfully created.',"copy")})}Ue(!1)})})},Ln=(e,t)=>{De({emailId:t.id,folder:e.key===y.y2?[]:[e.key]}).then(e=>{var n,a;(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.folder[0])&&oe(R.GY.endpoints.getEmails.initiate({...qt,folderTag:(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.folder[0])||null})),c!==y.y2&&(oe((0,P.X)({folder:c,emailId:t.id})),oe(R.GY.endpoints.getEmails.initiate({...qt,folderTag:c||null}))),et();try{h()}catch(tt){}}).catch(e=>{})},Tn=null!==(ne=null===ie||void 0===ie?void 0:ie.iconStrokeWidth)&&void 0!==ne?ne:1.5,In=[{key:"selection",width:46,render:(e,t)=>a.createElement(l.Sc,{checked:tn.includes(t.id),onChange:e=>{e.stopPropagation(),ln(t.id,{metaKey:!0,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey})}})},{title:bn(ae("Title"),"title"),width:"calc(100% - 532px)",dataIndex:["title"],key:"name",className:l.bs.fileNameCol,render:(e,t)=>{var n,i,r;return a.createElement("div",{className:l.bs.fileName},a.createElement("div",{className:l.bs.fileNameRow},t.lock&&a.createElement(A.Ay,{icon:"LockOutlined",className:d()("lock-icon",l.bs.lockInline,{"lock-icon__disabled":!(ke||Ae||(null===(n=ue.id)||void 0===n?void 0:n.toString())===(null===(i=t.author)||void 0===i?void 0:i.toString()))})}),a.createElement(o.N_,{className:l.bs.title,to:Ze?"":z(we,t),style:{cursor:Ze?"default":"pointer"}},e||ae("No name"))),(null===(r=t.emailtags)||void 0===r?void 0:r.length)>0&&a.createElement("div",{className:l.bs.fileItemCount},a.createElement(l.$x,{wrap:!0,size:4},t.emailtags.map(e=>{const t=null===x||void 0===x?void 0:x.find(t=>{var n;return(null===(n=t.id)||void 0===n?void 0:n.toString())===(null===e||void 0===e?void 0:e.toString())});return t?a.createElement(l.vw,{color:Se.colorPrimary,style:{cursor:"pointer",borderRadius:6,margin:0},key:t.id,onClick:e=>{e.stopPropagation(),e.preventDefault(),U(null,t.id)}},t.name):null}))))}},{title:bn(ae("Creation date"),"date"),key:"date",width:185,className:"nobr",dataIndex:"date",render:e=>a.createElement("div",{className:l.bs.fileDate},e?(0,f.Yq)((0,i.A)(e),ae):"\u2014"),sortOrder:"date"===(null===qt||void 0===qt?void 0:qt.orderby)?(0,f.Np)(qt.order):null},{title:bn(ae("Update date"),"modified"),key:"modified",width:185,className:"nobr",dataIndex:"modified",render:e=>a.createElement("div",{className:l.bs.fileDate},e?(0,f.Yq)((0,i.A)(e),ae):"\u2014"),sortOrder:"modified"===(null===qt||void 0===qt?void 0:qt.orderby)?(0,f.Np)(qt.order):null},{width:80,title:"",dataIndex:"",key:"avatar-actions",onCell:()=>({style:{padding:0}}),render:(e,t)=>{var n,i,r,s,c,d,m,p,h,f,b,v;const E=null===(n=t._embedded)||void 0===n||null===(i=n.author)||void 0===i?void 0:i[0],_=(null===E||void 0===E?void 0:E.name)||(null===E||void 0===E?void 0:E.slug)||t.author_name||((null===(r=ue.id)||void 0===r?void 0:r.toString())===(null===(s=t.author)||void 0===s?void 0:s.toString())?ue.name||[ue.first_name,ue.last_name].filter(Boolean).join(" ")||ue.username:""),C=_?_.charAt(0).toUpperCase():"?",k=t.folder[0]||null,w={icon:a.createElement(A.Ay,{icon:"MailOutlined",style:{fontSize:18}}),label:ae("New emails"),key:y.y2,onClick:e=>Ln(e,t)},x=null===g||void 0===g?void 0:g.map(e=>({icon:a.createElement(A.Ay,{icon:"FolderOutlined",style:{fontSize:18}}),label:e.name,key:e.id,className:e.id,onClick:e=>Ln(e,t)})),S=(null===x||void 0===x?void 0:x.filter(e=>!k||e.key!==k))||[];k&&(null===S||void 0===S||S.unshift(w));let L=[];return(ke||Ae||(null===(c=ue.id)||void 0===c?void 0:c.toString())===(null===(d=t.author)||void 0===d?void 0:d.toString()))&&!Ze&&L.push({label:a.createElement(u.A,{key:"Lock",element:t}),icon:t.lock?a.createElement(A.Ay,{icon:"UnlockOutlined",style:{fontSize:"16px"}}):a.createElement(A.Ay,{icon:"LockOutlined",style:{fontSize:"16px"}})}),(ke||Ae||(null===(m=ue.id)||void 0===m?void 0:m.toString())===(null===(p=t.author)||void 0===p?void 0:p.toString()))&&!Ze&&S.length>0&&L.push({label:ae("Transfer to folder"),icon:a.createElement(A.Ay,{icon:"FolderOutlined",style:{fontSize:"16px"}}),children:S,popupClassName:"emails-table__folder-submenu"}),!Ze&&L.push({label:a.createElement(o.N_,{to:z(we,t)},ae("Edit")),icon:a.createElement(A.Ay,{icon:"EditOutlined",style:{fontSize:"16px"}}),key:"Enter",className:"em-analytics__email-enter"},{label:ae("Clone"),key:"Clone",icon:a.createElement(A.Ay,{icon:"CopyOutlined",size:16}),className:"em-analytics__email-clone",disabled:je.isLoading,onClick:()=>Sn(t)}),(ke||Ae||(null===(h=ue.id)||void 0===h?void 0:h.toString())===(null===(f=t.author)||void 0===f?void 0:f.toString()))&&Ze&&L.push({label:ae("Recover"),icon:a.createElement(A.Ay,{icon:"RollbackOutlined",style:{fontSize:"16px"}}),key:"Recover",onClick:()=>xn(t)}),(ke||Ae||(null===(b=ue.id)||void 0===b?void 0:b.toString())===(null===(v=t.author)||void 0===v?void 0:v.toString()))&&L.push({label:ae("Remove"),icon:a.createElement(A.Ay,{icon:"DeleteOutlined",size:16}),key:"Remove",className:"em-analytics__email-remove",style:{color:"#ff4d4f"},onClick:()=>wn(t)}),a.createElement("div",{className:l.bs.avatarActions},a.createElement(l.eu,{size:32,alt:_,selected:tn.includes(t.id)},C),a.createElement(l.ms,{arrow:!0,placement:"bottom",menu:{items:L,style:{maxHeight:"70vh",overflowY:"auto"}},trigger:["hover"]},a.createElement("span",{className:`${l.bs.tableMenu} tableMenuButton`,onClick:e=>{e.stopPropagation(),e.preventDefault()}},a.createElement(A.Ay,{icon:"DotsHoriz",size:16,strokeWidth:Tn}))))}}],[Nn,Bn]=(0,a.useState)(!1);(0,a.useEffect)(()=>{var e,t;for(let n in fe)if(n||""===n||0===n.length){Bn(!0),kn({...fe,folderTag:c,page:1});break}(null!==(e=fe.tags)&&void 0!==e&&e.length||fe.name)&&kn({...fe,folderTag:c,page:1}),null!==(t=fe.group)&&void 0!==t&&t.length&&at({...fe,group:fe.group,page:1,pageSize:y.mU})},[fe,oe,c,Ze,kn,n]);const[Rn,On]=(0,a.useState)(!1),[Mn]=(0,O.mI)(),[Pn]=(0,M.dS)(),{data:Vn}=(0,r.KC)(),Fn=async e=>{const t=e[0];try{On(!0);const e=(0,D.xi)(Mn,Pn,ue,Vn),n=(0,D.oF)(t),a=await(0,D.q2)(t,e,n),[l]=(0,H.Ay)(t.name.replaceAll(" "," ")),i=l||(0,f.ez)(a)||"";return Fe({title:i,project:Vn.id,subject:i,description:"",html:a,parent_email:y.iU,folder:[],common_styles:JSON.stringify(y.BD)}).then(e=>{e&&(e.error?Ce.error({message:e.error.data.code,description:e.error.data.message}):(xe(`/projects/${Vn.id}/emails/${e.data.id}`),Ne({event:"import",action:"import_email",email_id:e.data.id,project_id:Vn.id,file_name:t.name})))}).finally(()=>On(!1))}catch(n){On(!1);const e=n instanceof Error?n.message:n;Ce.error({message:e})}};return a.createElement("div",{className:"project-page__list"},n&&a.createElement("div",{className:"project-page__cards-grid create-buttons"},a.createElement(l.Zp,{className:"element-card element-card_email element-card_template element-card_template-empty",hoverable:!0,style:{cursor:"pointer"},cover:a.createElement("div",{className:"element-card__empty-template"},a.createElement(A.Ay,{icon:"NewEmail"}),a.createElement("div",{className:"element-card__empty-template__text"},a.createElement("div",{className:"element-card__empty-template__title"},ae("Blank template")),a.createElement("div",{className:"element-card__empty-template__description"},ae("Start from scratch")))),onClick:()=>((e,t)=>{var n;Ne({event:"select",action:"create_new_email",template_id:"0",description:"Create new email from scratch (template = 0)",subscription:null===ue||void 0===ue||null===(n=ue.subscription)||void 0===n?void 0:n.post_title}),_e.set(y.A9.em_new_email,e),t&&(window.localStorage.setItem(y.V0.em_active_tab,t),window.localStorage.setItem(y.V0.em_ai_settings,t)),(0,f.XZ)(xe,qe)})(278056)}),a.createElement(l.Zp,{className:"element-card element-card_email element-card_template element-card_template-empty",hoverable:!0,style:{cursor:"pointer"},loading:Rn,cover:a.createElement("div",{className:"element-card__empty-template"},a.createElement(A.Ay,{icon:"Import"}),a.createElement("div",{className:"element-card__empty-template__text"},a.createElement("div",{className:"element-card__empty-template__title"},ae("Import email")),a.createElement("div",{className:"element-card__empty-template__description"},ae("Work with your markup"))," ")),onClick:()=>{Ne({event:"click",action:"import_email"}),(0,D.QM)("application/zip, message/rfc822, text/html",Fn)}}),a.createElement(l.Zp,{className:"element-card element-card_email element-card_template element-card_template-empty",hoverable:!0,style:{cursor:"pointer"},cover:a.createElement("div",{className:"element-card__empty-template"},a.createElement(A.Ay,{icon:"generationAI"}),a.createElement("div",{className:"element-card__empty-template__text"},a.createElement("div",{className:"element-card__empty-template__title"},ae("AI email generation")),a.createElement("div",{className:"element-card__empty-template__description"},ae("Creating an email on request")," "))),onClick:()=>{Ne({event:"click",action:"ai_email_generation_open",project_id:e}),oe((0,w.qf)(y.lx.ADD_NEW_AI_EMAIL))}})),n&&(!!Re||!!Be.length)&&a.createElement("div",{className:"element-card__group-tag-wrapper"},a.createElement(l.so,{gap:"10px",style:{marginBottom:15,marginLeft:4},wrap:!0},Be.map(e=>a.createElement(l.vw,{className:"blue-color element-card__group-tag",key:e.key,color:"#1677ff"},e.name," ",a.createElement(A.Ay,{onClick:()=>{const t=Be.filter(t=>t.key!==e.key);oe(be.length?(0,F.es)(t):(0,F.BN)(t)),oe((0,V.ry)({[be.length?"group":"projectGroup"]:t,[be.length?"projectGroup":"group"]:[]}))},icon:"CloseTag"}))),Be.length>1&&a.createElement(l.vw,{className:"blue-color element-card__group-tag element-card__group-tag_close"},ae("Clear all")," ",a.createElement(A.Ay,{onClick:()=>{oe((0,F.mb)()),oe((0,V.ry)({group:[],projectGroup:[]}))},icon:"CloseAll"})))),!n&&vn===y.rl&&a.createElement(a.Fragment,null,tn.length?a.createElement(W,{selectedCount:tn.length,isDeletedEmails:Ze,onClear:an,selectedAllLocked:rn,onBulkDelete:En,onBulkToggleLock:sn,onRename:1===tn.length?pn:void 0,onBulkMoveItems:{items:_n()},onBulkCloneItems:Cn()}):a.createElement(B,{viewMode:vn,onSwitchView:gn,sortOption:hn,onChangeSort:fn})),!n&&vn===y.Y$&&a.createElement(a.Fragment,null,tn.length?a.createElement(W,{selectedCount:tn.length,isDeletedEmails:Ze,onClear:an,selectedAllLocked:rn,onBulkDelete:En,onBulkToggleLock:sn,onRename:1===tn.length?pn:void 0,onBulkMoveItems:{items:_n()},onBulkCloneItems:Cn()}):a.createElement(B,{viewMode:vn,onSwitchView:gn,sortOption:hn,onChangeSort:fn})),$t&&!(null!==Qt&&void 0!==Qt&&Qt.length)&&a.createElement(l.EA,{active:!0}),Gt&&a.createElement(l.Fc,{message:ae("Error"),description:ae("Error when receiving data. Try again (reload page) or contact support."),type:"error",showIcon:!0}),!$t&&!Kt&&0===(null===Qt||void 0===Qt?void 0:Qt.length)&&(Nn||q>0?a.createElement(l.Fc,{message:ae("Emails not found"),description:"",type:"info",showIcon:!0}):c!==y.y2?a.createElement(l.Fc,{message:ae("You don't have any emails in this folder."),description:ae("Add your first email to the folder..."),type:"info",showIcon:!0}):a.createElement(l.Fc,{message:ae("You don't have any emails yet."),description:ae("Add your first email by clicking the Create a new email button."),type:"info",showIcon:!0})),(null===Qt||void 0===Qt?void 0:Qt.length)>0&&!n&&vn===y.rl&&a.createElement(l.XI.Container,null,a.createElement(l.NP,{renderEmpty:()=>a.createElement(l.Sv,{variant:"hidden"})},a.createElement(l.XI,{rowKey:e=>e.id,dataSource:Qt,columns:In,loading:Kt||ze,onChange:(e,t,{order:n,field:a},{action:l})=>{if("sort"===l)if(n)kn({page:qt.page||1,order:(0,f.gq)(n),orderby:a,pageSize:y.mU});else{const e="asc"===((null===qt||void 0===qt?void 0:qt.order)||"desc")?"desc":"asc";kn({page:qt.page||1,order:e,orderby:a||(null===qt||void 0===qt?void 0:qt.orderby)||"date",pageSize:y.mU})}},showHeader:!0,tableLayout:"fixed",pagination:!1,rowClassName:e=>tn.includes(e.id)?l.zj:"",onRow:e=>({onClick:t=>{var n,a,l,i;const o=t.target,r=null===o||void 0===o||null===(n=o.closest)||void 0===n?void 0:n.call(o,".tableMenuButton"),s=null===o||void 0===o||null===(a=o.closest)||void 0===a?void 0:a.call(o,".ant-dropdown-menu"),c=null===o||void 0===o||null===(l=o.closest)||void 0===l?void 0:l.call(o,".ant-checkbox-wrapper"),d=null===o||void 0===o||null===(i=o.closest)||void 0===i?void 0:i.call(o,".ant-tag"),m=(e=>{var t,n;if(!e)return null;const a=e.nodeType===Node.TEXT_NODE?e.parentElement:e;return null!==(t=null===a||void 0===a||null===(n=a.closest)||void 0===n?void 0:n.call(a,"a"))&&void 0!==t?t:null})(o);if(!r&&!s&&!c&&!d){if((t.metaKey||t.ctrlKey)&&!t.shiftKey&&!Ze){if(m)return;return t.preventDefault(),void window.open(new URL(z(we,e),window.location.origin).href,"_blank","noopener,noreferrer")}if(m&&!Ze)return;ln(e.id,{metaKey:!0,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey})}},onDoubleClick:t=>{var n,a,l;const i=t.target;null!==i&&void 0!==i&&null!==(n=i.closest)&&void 0!==n&&n.call(i,".ant-checkbox-wrapper")||null!==i&&void 0!==i&&null!==(a=i.closest)&&void 0!==a&&a.call(i,".tableMenuButton")||null!==i&&void 0!==i&&null!==(l=i.closest)&&void 0!==l&&l.call(i,".ant-tag")||Ze||xe(z(we,e))}})})),Jt>y.mU&&a.createElement(l.XI.PaginationWrapper,null,a.createElement(l.dK,{current:qt.page||1,total:Jt,hideOnSinglePage:!0,showSizeChanger:!1,pageSize:y.mU,onChange:(t,n)=>{an(),kn({projectId:e,page:t,pageSize:n})}}))),((null===Qt||void 0===Qt?void 0:Qt.length)>0||Zt)&&(n||vn===y.Y$)&&a.createElement(a.Fragment,null,(Kt||ze||Rn)&&a.createElement("div",{className:"project-page__loader"},a.createElement(k.A,{small:!0})),a.createElement("div",{className:d()("project-page__cards-grid",{"project-page__cards-grid--show-checkboxes":tn.length>0})},Qt&&Qt.map(e=>n?a.createElement(C,{key:e.id,element:e,setSearchFilters:U}):a.createElement("div",{key:e.id,className:"emailCard",onClickCapture:t=>{t.shiftKey&&(t.preventDefault(),t.stopPropagation(),ln(e.id,{metaKey:t.metaKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey}))}},a.createElement("div",{className:"selectedEmailCheckbox"},a.createElement(l.Sc,{checked:tn.includes(e.id),onChange:t=>{t.stopPropagation();const n=t.shiftKey,a=!n&&!t.metaKey&&!t.ctrlKey;ln(e.id,{metaKey:a||t.metaKey,ctrlKey:t.ctrlKey,shiftKey:n})}})),a.createElement(p.A,{element:e,setSearchFilters:U,isTrash:Ze,foldersList:g,refetch:et,projectTags:x,selected:tn.includes(e.id),foldersHandlers:{handleRemove:wn,handleRecover:xn,handleClone:Sn,handlerChangeFolder:Ln}})))),Jt>y.mU&&a.createElement(l.dK,{current:qt.page||1,total:Jt,hideOnSinglePage:!0,showSizeChanger:!1,pageSize:y.mU,onChange:(e,t)=>kn({page:e,pageSize:t})})),a.createElement(S,null),a.createElement(L.A,{email:mn,onUpdated:Xt}))}},93718:(e,t,n)=>{var a={"./en_US.ts":[54955,2466],"./ru_RU.ts":[24408,6859]};function l(e){if(!n.o(a,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=a[e],l=t[0];return n.e(t[1]).then(()=>n(l))}l.keys=()=>Object.keys(a),l.id=93718,e.exports=l},84395:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAcCAYAAAAeC42RAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALqADAAQAAAABAAAAHAAAAACJc8/iAAAEmElEQVRYCd1YW2hcRRj+/tmz12TTXLombpbWpo0PKfrim3gDCxJ88AZ9UBRiizew+lSqCPaiFEUQRavgnSBCVLyRF/FBn8SHCoqKD0pam4uJ3U0sSfY+v/8cd7c9u3vO2Zx90oHdmfnn+7/55j9zOXOA/2iiTnSfQyYeg95HULdr8IT4jBO4X/INBp2X/Bf5fVeBnk5j6ayUW1L+/V07uVC6iwk3K+BqAQzJL0KMvNjmGPgV4I/jvQOztP/n9RaCJoOn8BzGdjBKjzL4biFON/m2VIWsJLivNKxnhnH2WwPIv3P59QA9QlpNMvG2FqcWA/1JhOk8rFMDU2fOtDTXDK7CsxjZz7BeFNG+gtuRa8XHkqeon6J4AIx4O4ynjbCkmR/uuX/xs3a4tsJXMPqUTIVjEil5qltPKl5F374saEyhMjEIDgeiMR0zk34pXkofpgdPly9V0sK4gsxJGc3xwKITGskbV2ENlhFaKyL8UxYoywQKlohYPV4ML51odndE/DzSt0kXH4loqxnYUV3YkjdlEd1RcMArmV5UdncwvR1ezooiviM6tfhp3dqI+BJGUrJDTAcWLYyRK/Itok1H1vw6VM45mLqATvMq47W/3treWG8N4RZCTwpJslOiZhyFGYm97ruYNXcBkN6DJgKN9CLyUN3fFr6KfrMnH6gbg+SRTAHWUMnVVa2Xoda6i7rMhsM8szdiOrGFV5C8QcqBo22IwiLcL6lc0Q/i3U6IljZW7zQgWzhD3+Pt4dOqZMcfcuxWbR3UBfcn0tahjVEz3WrMtnDZDHa2wXRsspJVqETVF09FwZS1L84HsNu01yKOlA/Yu9mS/Sjkv/BIM1SpS+GMQVv4UREvEfcPl5d0o9lft83QIcy9t9rJo44CWso5d6R/iy6EwNUaowecTYgsf5wHhWlaNX/2VJH8D1MJmvSmAudDvu4clQHKr6vE5vW3Jlxm3UxXZOJcyYZ9KThpb8G+OC+ArKbPTbsd8RRoVspdzfPSfMyrPzk7pIOhqDfGt5Wy8XD5SwOzhRPm81I46evnATDCq3+7v5vpvgj0gM/gPPhNk9wN3qX7ljdM2Rb+r5Fel3zZlIMkLhM2f3A/fCujvdJb8IXJjFypEHq2rq0hfDvmF8TY1ftKcS6B4u+JOncjr470QKe2fglqENjTWB/c1qMT629cNmzsDeGmksLCrCzUE6YcNG183+dYqNXBGMpjfUHp7PNBbmMvJA4sfYK5Pcs9CxNyM7GXjJOTcU04i8Wn5Yx7QlocA3Mi3Wsqbm5BWYTG5YS/aghsBaIxHbBcgZ6PTS0eae7NddLlkJmUzw2vynvwrmanDurroR5+Jf4ybQr2uNlRtpzkssxVPJY4uPBhO19PynmMZqLgQxL4e2XwI+0InDZak/o38u3luWEs2J8nNt9OXysvMkeIq5PygN23nYtEKxLl9/KIBPs8cZHHTLN0Qr76yH2UbpGHPi7r4EoZcb/UN2X+rck29aOUv66AZ0axeO5S33q58GZmDystAaDr5AmMySQYFWZLyPNQvCwvHvJRiT6IbcS+oEO/yXXpf5r+AQRWXmGeSGSoAAAAAElFTkSuQmCC"},58092:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF4AAAAcCAYAAADoQggJAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAXqADAAQAAAABAAAAHAAAAADtxwGRAAAGR0lEQVRoBe1ZXWwUVRS+Z6bd/sJWRVBEA/JgEOMf0QcM2pAIKtICAuKDD/4RTCREofJgooOJEVswWAjGmEiMwZiUQFsgQZTwE/wLRngBQgRskCi1ULpla7vLzj1+d7ezzN6dWdrdWR5M72bm3nPuOd+5882dM/fOCjFSRhgYYWCEgaIzQLkihBvq9wvBtTlsJDGdYOL3I03tLTnsRM3q+Q9IKRsFyyeIqMzPlolO9ja23av6p1qLQuf7YjE/WyKxpqex3fLqH726boUhxVIWIonlZYOxL+hZ17ZD7OQx5gB3kZSCElIYCRZOm9A2bOjVofSudlIPe+iZJPcZCfuUsPl3g8XGv5on/ugV09EZTiPP2gDp98F3S3jlvGl+GGNX1I1jaW8nwbNyke7n76vH9Xr1hRvqXicpNuQiPcNvLl0UJC4JOORVCN6Cq4WgaWgsEbb84Y5lZ3aOX3pqjB9eocQ7uFWYFg2OoNexEL0E3d26vhjyhDdn3wxca7jYxLw1wyfrJrjucVaf45nR8awpafekV8+Oc3rddVDEC6SImcKyfPD4eXfQYravlISWAX/scGMYnPgMM1YO3c8h2XVD1MRPF1acPGrLxKZpS38tTasHGz5E6WbXl4nFreHokZm6ZfXbc6ZgPCodFb2MWzV/rCBank+g+OKyE4LtTZm+yCHgUlHsHKl0pAgeJNnFNahO/lIYyfyjmgs7r4anp3TXzoERn4Q0zFnXoFMtU5ZOx2hKdH0gspE5/AGWjyPWbflil5ql68Fnh5+/i2M/E089XtQL9Y7Mkeu9w5VZLNBd8PLNegp0m0BkpDk22CoEq38xncNK5UnM2zNeOMnkkj3RNdPs24NFxTOakQiWeCEmV6+sTy/faq3aEiKerQcNTMbyzymjo0eexiVPdeR869iL5acpUTYH5B9TGE4mV600penG0KLgxX2nbhk08cIges4JcjQarsV4b3HkwGtXqiEy3wsKP/YKnYq9XPkQ8BaB8MPI5wOZXKtcPlg43cKNSef1ZKfqYnUi6nPMnTr/3Mt8AIBq6Xa/A6ZqMuz0rMMquy5zwMqC/4DVz2i8oKSCCh4n5Z96yvgRDSuCOI2I94GmH7LY/1rlNhhvq2j+d4Lg+BTksioDuyMsVwbnv7oBJg4bZxOTLqEIwIFNl3oa1TZDjVDKuB40f+KJLgO2Fbgb3KDYDc6osebV9FitEYO43jUhUmZkfI3RGMkBuR3zadt28r4ahnwHV6sh8Oe49INDfaRHNdTPMEl6P53nvVfDtiuiasdNnNQRwlGJY7Ak+hNHnLZT50+8QjCNNuzSMojHjRhPUfFg9ar5F5ntu5xATm0yHbKJax250Dr8xtxJIH2xjmPaRrM0OSu+bufImLcfYiP8mCMHVWM69JebFZOjGuBQJ4TmlhJ71rZ2YPb+pHdidbEIs+cpXQ/bbjFQpdJMMMU0mSuMdwGmT6A93R+3/RlMkMJQpKRVFzds/1tHKYj4JBgbu3VQvFGwbpVZGxmsCw53b9zam2Wfp4KlXII0nzXbkWfX5QkZpJtEmrV617dt9gLVZ4qXTU6dJHEId0+9QtxJFlt2t5iCwEbiq5xgw+1kcU+WC4tDkabWfVn6G6lgcQyLjLciTbv3+4UtmPjyvtDReFX8LLif7BdkUH8lNKpiz3VsCu7G15b1BYPoACQuYNFwQVdnyMR9WL0cxUt275WmXbsw79Rk9C0FE9+1uSWKz7DfIUJu4on3dVkt+jvGd2D5dOAZ+61n9MO7hGjPx93XB6vDtT1NbZ/4GugdQ0h0hed4FZQ5558gSRMyvtfHF7SMfyO24QupDBq3GHiBEF8uYr/g0erwHyASAPG3/v0B9DB1l8t4cwBINwQiEOI71+3tA7U5Xmh8rHdt++liXhFSarMaRzFjBIkdCPFqQPjor/K8dyHxjXdHYNpLZdXmp4Gh3QCgwIg3jBBWLHTVY8w2vmTghVekgv9K8cVkeae1458iRSgKbM5VDQn5JT6EHfSKjO31Sbf+8kctkfDq+uVYAdzu1mMXEYk27siwFQljH5VkfzhSfth0dDn+x48Lu2aSWOPIeg3bzpsqe7d0WAcG9D4ll4bonLzKvv6mLHGP6wv82+S5AMDuM7jdttdAR3QjDPzvGfgP96UKftxHR1QAAAAASUVORK5CYII="},12718:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAgCAYAAAAMq2gFAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGqADAAQAAAABAAAAIAAAAACnWBYtAAAG/ElEQVRIDa1Wa2xUxxU+Z+5j7768u17byMYpxrWxwbaIYopKSImgCq2jpFX+hPYfVIrJH6KoqlQJqarVH0mrRlErFClJ60aNqKpIVdMWVygVQmmxwY8amwKlNgbMYhaz6/Xuep/3MTM9u6CNbeJgSxnpaubOnHO+c858c2YQ1tnMD0OdfM7rLd7Xtepf3xxcp1pFTK2MHjNgPs1vu7ANvdAUP9YSYgA3FulrPTFjPka1vLxuIDDADzp0oEc8g1mlVQg4FwIUsq87AlGw8f1x+4sA1w9EVtRGp0qtdzZnY9qTTMEeAHk3kcr8hIW0i7Qc+dKAmApuUKFa8YqbwmIh6WADAB6TpnMx8fq2KQbWn4JPz2bwZeCrQSnVG2iq1ECVXlbF08wlbAQIopQHKLJvgYQD6LCWe2e2ha4fa3FJ8mC55Y0BPdR0tRdblBrHRwC58pSELuoPcUU5Y7jhR2FQDy4HKY3VvUf/8vx8OChTXt1KHN9zFhDJmS9uTIegVucMwRIbt5LaCyS9idwPUBBeCfh9YOLZxGutzyVV7M+ZbK7xnf8lVK/DmzTuGJQVp+aX40n9ramIHo5mZ4/sL64Jx0BjXpHAEJ/GlPZPabMuwXErIhqkU0VpZFJIS+SMVsORevTF7oJak8nWzYd8nRrnDQ7nh0wr9ZaYNyZIYXZNIFpAt8z4Ws3/wGCkP5refRgR9oEitqzSeUVyHBYFlirTe2ssGaxdyjdONjUEUBHvOYDT4TdGB1AWf79ghxPQ12GtMgAirQbmP6nrTv91z3HUoI1iaGAgy/YEQooxuKb57F9ZzJ5aqk3eKS8YluOmjXG7HGfJUdVagXIHolgSYCSqXZnb8ItL/02Jl7SAkq/g2QuuTRB1b0dknejIMADzcJAmRXaZUjcnGY4UUuxaDWiJbZEzdhlIldJjcMdXVSheTXvdPqEoIbLYQx4+SUkaBF78sCC8ynIgHnc1WwsukpNbH7BHls5OSgr4GzC40Fb489mKVzSo0FvjQm+/E+/wFqyolHK2JCQRaqn7NnnZ/8LMG0c/iPe0xexgsrRWaSRMJ2ZYgvgNk9Y3bY3/NhjwjVTWHw7KEZXGUhJlHNsfzOZPptx6EhRlNxnYS2kgyoJ/wQ51DKSfUWfNeugJjtwKmDwV1HiCZM4zCRNEtGm0xM1O62s25vrEmkBI/isSXK3RxCcxt386V6XGAUQHKbgofZoltK9cyHYWz2c7TQF4q9uMFL/umo0pXP4ODJxpzX4ce2D89GqM8n8losqq48CrY5fUkIp+wSARCfjSww11melwcJfNmEEH0+hf+M6B/lq4Jw/KK85zatGHnMPxjysmPm+wAog2H5ocpyegYZL25WmKsj5UMJWn7i+ETB2uzns8oazmIoYhVQHwIcNmItIreQmT4TeHroe8dUMziy029OHaqSt5oQlZ9Ernu7RjJIhbiSlO0LLzwUVbWr70+Ji7ZotQfbrpBF0CmFtKpRml6FUYDEpQJpLppXvNxplo6D2ZHz+KK+6nSkTkWbGlWBipEmKnghgsAUuUUSol/6LoPnD2n/TvcIuX2iXuGYv0DmWthi15q7qJyo5KidiHgHtBcV5Oy6p30oujF0h9Bb3LQIoQeV3KrJeLr1JJVYlldylto9SfIpDbzK1fA13sZGCrjMjZvunv2xP5lut30nvOZ/Kbv0GFmNJJqQQRJPYdApTd4Z+P7dJV5SObexYXftyeKQNpUhQ8XBR0kAGKIk6hRAngU8crB7riXcn9p/c7Rw4/tZ2R25RVvdp9s8GjJUcohaOZQmNIgtUGkjfQza4SWVqFhHpibCBnLl5G25qC3t5iGegJ204FHD4HAu8ggzdBsSaODvzwbil9azVDT6a7Nn80PvKPyXeNzk2Hyfg+RGvLMnmFjubrdBMNwxOBk2rQFDGdy1FVCMGketYwjdtpPZ1dpvC5w7wJ/plFbIEdkSOmuL+Lgm0kAukPhDFHBeAGQ/8fFPBMglefU+kCmdU5l7oKmd5TvROkQFvzaGNI/lGxKS2S91bKxPBsWt1Nk88CFOupEJXuIYe+e7Rnd6kyXeKYHebFQhz6/lhYca8/av6zmR+c2nmQhI+Qoe/lLIhfianKlfuKTnN0pZebIOMZYPguuTMEPx0boNmK0xV6PxReVzcyp8wkC7iZmFFKV+kcXJZMXgF03gbwRMFYyCwHKRndEJDNoXQIcwt5JWA5pUsOU4QzKVHQuw6n6NkwA9FMDt6fWnFYNwxkcSjYXC5mTGymfShQKMRMPEF19yL0DUZKBtdqG4poOq4sxXJIxuU5AjhH5+ZTMkxP4sIjEawGXDdQxhaZPMerS0U1R1s8ThHdgETdLThx+st95KezTqZo47UlW87Az/49uNrjx/3/H9o0K/vZg8gqAAAAAElFTkSuQmCC"},78232:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAAAYCAYAAABQiBvKAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAATKADAAQAAAABAAAAGAAAAADbKq7rAAAIqklEQVRYCe1Yf3DURxV/u9/v3SWQAAVFQFJCkwOCQIdSqBYVcGq1NZGQSBwNUKFCAh2mMuA444zT+0NnOiOj49iBJK1gW5jaAElqq4hTBKSKlpZKKL+S8KOA/AjYlEDC5e6+u372LnvZ7/cuSRPHGf7oztzse5/39n133+7b9/aIPmkD8gAbkPZdojzt6Tc/09XRPoMxGiU5RZiwL2YMD5xo3Pi1jv/3FHtzGDv/8iMbLOYs40RT001CShklxg7eoYzlwSW7L6XTmfjkrgm2xZsYYzBjNOb8rKmqNJS3amexxewdhoRg91RzzaLpJqbovOUNOcxHlZzRE9D5rFcO58UkyXekZM+01Cz6s1eu+EkVdfeT5NXQm2nOSUra31xT/NV0Y7yYeyE9Upm79M2f5yzZN10w9gVB9DvOJUjJ9Y9zCnAmH8mk8C96hrkpn8/6DhA/Fmj3/IT0Cf8WpWmTlduDJ3Swg02mlVAoxPMrGn7E/fI0I/njdM5S+li0TZJ9npMca47XdCgkOZy5E856CJhrTsTkbIJc6/bV96uUU/6Xt+G48pgUU8/dHvmWJPehxI4/2tsHhEOFXhlGv3q8puiCwoWklJOERb9vjtl+dcYmJuWzJCnTxHujLZ88lk72ypXXi4Dnp5PB9vCCi/VpI8mr36/D9ICc8r82P3Fk2a+eOfE4tYazNYxeDr+07bHxBhAnCypeDyIQH/Tg0nFkVRLjLGWSkmKNWp5fWT+fBK3UvNGrfWvFifsAxFXQsYSMhUf4x5409BIkjpYgsT4FN4CoRfMMtlfyYztMWRDSevvA9WB47dHFdKFzZNKokF1fSjLdhCCnBHEScOFSHj6TU3JIYePX1WYySbkuORiLZSZDkgtWQeS5/4jOSWbPzey8dV9T9aKJgbbIBO4LT0ColUkmtxz65cN3vDYnV+6ahbnM9eImz4lNMfneaLs3QTr8bE3hxeDK+sar4ew56xpL6Nlpv6dgVisWyWZC/xU9ZvHiWuuolMs1n+wl7aQQNhttSNgaKxl9CuFgtpuxAPsgAWD5rAELNcVwH2Mbm6uL4k6nl5fRcaIINC7jp5KHK4HokQ7Za3EazcPRyYh1wcn3aB3Q8zXdV28a6UuvW4Y1ENurmBtdQ+mHjQvpWngYViFmmYP/NTIwF+ucbGII3TDjvq0akw4VYNddGwbbV1p+/Xh7XCcE30jyaX3dY2GrplTW52q+vz5xkoVKPsmGe7QOYfzPJBAn2NT8tduwmL7bAB0GY9yOO0yZbYsOodDJxygm2APIUphHokkhl2ha96gsaptqim5onphVkKS7Cdw0rUkMJxE2m5O8JiTdLyQ7NGlV/fr88j/2u8AhHXYZdtTr+F1w/DvaZHfPZVe2a+M98jg7YIeFefsRdeFqYyfax1Ddv2eOaHnxK/cpbMpTdaNQbpRqeaKXQnBns4kh800z+QTNz7oxpxonMx7CJo7SYgxO8EY+tOtw8Pt1qaHfrTxrVbUP+/iUORa7+p+w1XnAlvwfJq5oJp05XszLD9hhFzaXt8HIe6ahmnMP05XIqPjFL7roG1hMT0aIK7KDLZtLPRNknzNtxGnhHDGx5ue/tYs4PWdiJo3vTCLOtuRX1L86P7TPFd5K75Yz+svoZptj4P3dag0RuxPZmHWZMs65qtH6bAN2mLLGpfUn02oM9+n6oyXxLCMttsyUKVoy5lr0jKV7hiIkJnj1sPhTXqy5quRpJMrVONWJu82rAB53Xdnlyx+lXPjCprVedYvLrQo7c926jLv3gksu5TwXn4YZlMNQSx3AArprn4TVm9GMB1XtBe940/eZIdmZu81v3x7WgaeNHGViig5YPMVhCm+uXlglmAzimz9FtvtQYd6G01acV/Ha1zWOUC1AEnEV1cgip7LEvQfjOjvKHBLMdY/Bxsi8NQ052ka6flAOiznDTsKYa3dwYh6KSLEUjshwfUjwau+jmMeQIT31Fe6Wtvc3FV90jTWYM1Ulrc3Vi35CMf9s5M89hihJMim+qxk84tYgC7teB5L4/pvsUhBPranqh3C/pvV1zyPyi5pO1w/KYed/uyCM3fi72yDL4iQq3ZgqJfhWN6ZCmqdkSMTVCa9eOr5pS+HZDG6jTJBnvXLUaKMVNnnFa9nYgJSrAQ6sRLI5rn+o8X6QaiPldeJSGZTDlAVM7i2XpQTzaTfGX3SVEt1ClAupGVKSOrXxlldZN3r66u3JolLjuj+2oLMd31fJx9WwiTcUICwHLwTqt+RwDdYMpz5PWEpm0eP666WwDnuusZQhjMS2FFABHH8ZYXVmgxPf1bzlUOUdylwRrGjYYQnxhuULnO7wR8L2zajPtv1BsZcqUFqk1Eyo3Opzv7cvg7GPVnrMa9Mfo2cPqIy7P7TAdUfrgYN2WEtN4XvBVQ2dMDREG3P37JQIBA67sUS44CF8rxfnsudvHWTVGQipCQihDQ5jG5xYJOaLUQf5fcyRMgvOTokM6B/NZvbu9kD7HDh/kmkfl3+HQJVhYppGzZgF/SzNYyPsa5dvzwDvKnG0POXDWtB/j2SOmqY3PWSzF/DMcdU5cd0AjcOCU8LNIakf3Vgf895xamOHY5wKs5Q5IzxP29Iqf7emqJOks8I7J0miNjaubWK6H7L6Oq++Q848L6b5QZ8wZYBxuQd/K3qqeiWgdhblNfojZi9iYhrk3kW3trxQeknpTV/9xoiwE51ojumLxslqCHB7xbHqwrbcNX8YQ7EIEoK7IYM/dz60POxGExzKj7+RhbxtvGuhH0ynq7D/yWHE/HsZi573GkfcbD+9ZWHaEIDuePyd7B4jWTJ0b925fscO3PNteLQci5iJyed7SxDYuIbjvYPb1ktNm76ZHOtzYsWwrf65SDbotbVUl6YNL6Xk98cuRhxfI8YZrxPuTxrwENigu7uNf7J2ZMBnj0PRmSWjPJoho+eO/6bsw7t71p/MLumB/wJBHTFIPdd6VwAAAABJRU5ErkJggg=="},16403:()=>{},63779:()=>{},77199:()=>{}}]);
|
|
2
|
+
//# sourceMappingURL=5215.a9897c36.js.map
|