@emailmaker/emailmaker 1.0.116-alpha.1 → 1.0.117-alpha.1
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 +275 -109
- package/asset-manifest.json +63 -67
- package/emailmaker-esm.js +1 -1
- package/emailmaker.d.ts +306 -38
- 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.3b8240bd8d75c6ee2a77.html +1 -0
- package/iframe/iframe.3b8240bd8d75c6ee2a77.html +1 -0
- package/iframe/index.html +1 -1
- package/iframe/js/525.7e478fc1.js +1 -0
- package/iframe/js/667.4d0450c5.js +1 -0
- package/iframe/js/882.46943f9a.js +1 -0
- package/iframe/sandbox-eblock.js +1 -1
- package/package.json +1 -1
- package/static/css/2854.257728de.chunk.css +2 -0
- package/static/css/5072.f959228f.chunk.css +2 -0
- package/static/css/{2557.2ede4a53.chunk.css → 8727.2f8ba497.chunk.css} +1 -1
- package/static/css/main.f5e75ca4.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.fa7e9fe6.js +3 -0
- package/static/js/{9503.529740b0.js.LICENSE.txt → 1902.fa7e9fe6.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.95e1c8d0.js +2 -0
- package/static/js/3718.76cec3de.js +2 -0
- package/static/js/5072.e5ce1614.js +3 -0
- package/static/js/5072.e5ce1614.js.LICENSE.txt +10 -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/598.61e6a78a.js +2 -0
- package/static/js/8430.12bfa59b.js +2 -0
- package/static/js/8466.44341e69.js +2 -0
- package/static/js/{8580.fb06c399.js → 8580.47fa4f83.js} +2 -2
- package/static/js/8722.cfde4eb7.js +3 -0
- package/static/js/8727.ef480f4b.js +2 -0
- package/static/js/emailmaker_core.1f145e15.js +2 -0
- package/iframe/iframe-eblock.8216ee8050e216f489af.html +0 -1
- package/iframe/iframe.8216ee8050e216f489af.html +0 -1
- package/iframe/js/525.87bb307e.js +0 -1
- package/iframe/js/667.5b6da6e1.js +0 -1
- package/iframe/js/882.46d35112.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.87bb307e.js.LICENSE.txt → 525.7e478fc1.js.LICENSE.txt} +0 -0
- /package/iframe/js/{667.5b6da6e1.js.LICENSE.txt → 667.4d0450c5.js.LICENSE.txt} +0 -0
- /package/iframe/js/{882.46d35112.js.LICENSE.txt → 882.46943f9a.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
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9578],{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":[5333,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 r(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],r=t[0];return Promise.all(t.slice(1).map(n.e)).then(()=>n(r))}r.keys=()=>Object.keys(a),r.id=77778,e.exports=r},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 r(e){const t=e.indexOf("(");if(t<0)return!0;let n=0,a="",r=!1;for(let o=t;o<e.length;o++){const t=e[o];if(r)r=!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 r=!0}return 0===n}function o(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:()=>C});const i=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 r=0;r<e;r++){const e=n[r]%62;a+=t.charAt(e)}return a}(8),this._byKey[e]=t,this._byValue[t]=e),t}getByValue(e){return this._byValue[e]}};function l(e,t){if(void 0!==t&&!o(e,t)){return`%|{${i.getOrCreateByKey(e)}}|%`}return e}function s(e){const t=i.getByValue(e.slice(3,e.length-3));return void 0===t?e:t}function c(e,t,n){if(void 0!==t){if(o(e,t))return e;return`%|{${i.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(o(e,t))return e;return`%|{${i.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)=>!!r(e)&&p(e,t,n));var p;const h=(g=d,e=>!!r(e.startsWith("\x3c!--")&&e.endsWith("--\x3e")?e.slice(4,-3):e)&&g(e));var g;const b=function(e){return(t,n,o)=>!!r(t)&&(a(t)?e(t,n,o):t)}(c),f=function(e){return t=>{const n=t.startsWith("\x3c!--")&&t.endsWith("--\x3e")?t.slice(4,-3):t;return!!r(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("${","}",l,!0),e.escape("{{","}}",l,!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",")",b,!0).escape("#parse",")",u).escape("#include",")",u).escape("#evaluate",")",u).escape("#end","",c).escape("#break","",c).escape("#stop","",c).unescape("\x3c!--#macro","--\x3e",h).unescape("\x3c!--#if","--\x3e",h).unescape("\x3c!--#elseif","--\x3e",h).unescape("\x3c!--#else","--\x3e",d).unescape("\x3c!--#foreach","--\x3e",h).unescape("\x3c!--#parse","--\x3e",h).unescape("\x3c!--#include","--\x3e",h).unescape("\x3c!--#evaluate","--\x3e",h).unescape("\x3c!--#end","--\x3e",d).unescape("\x3c!--#break","--\x3e",d).unescape("\x3c!--#stop","--\x3e",d).unescape("\x3c!--#set","--\x3e",f,!0),e.escape("*|","|*",c).unescape("\x3c!--*|","|*--\x3e",d)};function y(e,t,n,a,r=!1){const o=[];if(n&&(t=t.filter(e=>e.isVariable)),!t.length)return o;const i=function(e,t){const n=t.reduce((e,{mapFn:t,start:n,end:a,syntax:r})=>(e[n]||(e[n]=[]),e[n].push({value:a,mapFn:t,syntax:r}),e),Object.create(null)),a=Object.keys(n).map(e=>e.replace(/[-[\]{}()*+?.,\\^$|]/g,"\\$&")).join("|"),r=new RegExp(a,"g"),o=[];let i;for(;null!==(i=r.exec(e));){const e=i[0];o.push({start:i.index,startToken:e,endTokens:n[e]})}return o}(e,t);let l,s=!1,c=!1,d=!1,m=0;for(let p=0;p<i.length;p++){var u;const{start:t,startToken:n,endTokens:h}=i[p];if(a)c=!0,l='"';else for(let a=m;a<t;a++){const t=e[a];c?'"'===l||"'"===l?t===l&&(c=!1,l=void 0):d&&/[\s>]/.test(t)&&(c=!1,l=void 0,d=!1):"<"===t?s=!0:">"===t?s=!1:!s||'"'!==t&&"'"!==t?s&&/\S/.test(t)&&void 0===l&&"="===e[a-1]&&!['"',"'","`"].includes(t)&&(c=!0,l="",d=!0):(c=!0,l=t,d=!1)}m=t;const g=c?null!==(u=l)&&void 0!==u?u:"":void 0;for(const{mapFn:a,value:l}of h){let c=t+n.length,d=e.indexOf(l,c);for(;-1!==d;){let m=d,u=t+n.length,h=0;for(;-1!==m;){const t=e.indexOf(n,u);if(-1!==t&&t<m)h++,u=t+n.length,m=e.indexOf(l,u);else{if(!(h>0))break;h--,u=m+l.length,m=e.indexOf(l,u)}}if(m<0)break;const b=m+l.length,f=e.substring(t,b),v=a(f,g,s);if(!1===v){c=d+Math.max(l.length,1),d=e.indexOf(l,c);continue}(r||v!==f)&&o.push({range:{start:t,end:b},text:r?f:v});const y=i.findIndex(({start:e})=>e>=b);p=y>p?y-1:i.length;break}}}return o}function E(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:r,range:o}of n)a=a.slice(0,o.start)+r+a.slice(o.end);return a}class C{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,r){return t.push({start:e,end:n,mapFn:a,isVariable:r,syntax:this.syntax||e}),this},unescape(e,t,a,r){return n.push({start:e,end:t,mapFn:a,isVariable:r,syntax:this.syntax||e}),this}})}getMappings(e,t,n){return y(e,this._escapes,t,n)}getRevertMappings(e,t){return y(e,this._unescapes,t)}getDetectedMappings(e,t,n){return y(e,this._escapes,t,n,!0)}getEscapedText(e,t){return E(e,this.getMappings(e,t))}getUnescapedText(e,t){return E(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:()=>r});var a=n(61578);class r 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 r(){return a||(a=await n.e(1729).then(n.t.bind(n,1729,19)).then(e=>e.default))}n.d(t,{F:()=>r})},29338:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,R:()=>r});var a=n(1528);function r(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 o(e){const t=e.querySelector("style[amp4email-boilerplate]");t&&t.remove()}},20414:(e,t,n)=>{"use strict";n.d(t,{Vq:()=>o,gP:()=>a,zq:()=>r});const a="https://cdn.ampproject.org/v0",r=`${a}.js`,o=`script[src='${r}']`},95583:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});var a=n(1528);function r(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),r=e.createElement("meta");r.setAttribute("charset","utf-8"),n.insertBefore(r,n.firstChild)}},65174:(e,t,n)=>{"use strict";function a(e,t,n){const a=n('script:not([type="application/ld+json"])'),r=e.querySelectorAll(a);for(const i of r){var o;null!==(o=i.getAttribute("src"))&&void 0!==o&&o.startsWith("https://cdn.ampproject.org/")||i.closest("amp-state")&&"application/json"===i.getAttribute("type")||i.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 r(e){let t=e.head;if(!t){t=e.createElement("head");const n=a(e);n.insertBefore(t,n.firstChild)}return t}function o(e){const t=Object.create(null),n=e.getAttributeNames();for(const a of n)t[a]=e.getAttribute(a);return t}function i(e){for(const t of document.querySelectorAll("iframe"))if(t.contentDocument===e.ownerDocument)return t}n.d(t,{ep:()=>a,gu:()=>o,xm:()=>i,xy:()=>r})},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:()=>Ee,G9:()=>we});var a={};n.r(a),n.d(a,{block:()=>z,blockHtml:()=>Y,blockString:()=>D,blockTag:()=>G,inline:()=>$,inlineHtml:()=>X,inlineString:()=>W,inlineSurround:()=>K,inlineTag:()=>Z,skip:()=>H});var r={};n.r(r),n.d(r,{anchor:()=>he,blockquote:()=>de,dataTable:()=>ye,heading:()=>ce,horizontalLine:()=>ie,image:()=>pe,lineBreak:()=>re,orderedList:()=>fe,paragraph:()=>le,pre:()=>se,table:()=>ve,unorderedList:()=>be,wbr:()=>oe});var o=n(19481);function i(e){return new o.LC(l(e))}function l(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()]=l(n.cont);return(e,...n)=>{var a;const r=null===(a=e.tagName)||void 0===a?void 0:a.toLowerCase(),o=r&&t[r];return o?o(e,...n):[]}}(e);case"attrValue":return function(e){const t=[];for(const a of e.matchers){const e=a.predicate,n=l(a.cont);t.push((t,a,...r)=>e(t)?n(a,...r):[])}const n=e.name;return(e,...a)=>{const r=e.getAttribute(n);return null!==r?t.flatMap(t=>t(r,e,...a)):[]}}(e);case"attrPresence":return function(e){const t=e.name,n=l(e.cont);return(e,...a)=>e.hasAttribute(t)?n(e,...a):[]}(e);case"pushElement":return function(e){const t=l(e.cont),n="+"===e.combinator?c:d;return(e,...a)=>{const r=n(e);return r?t(r,e,...a):[]}}(e);case"popElement":return function(e){const t=l(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 h(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 g(e,t){const n=new Map;for(let a=e.length;a-- >0;){const r=e[a],o=t(r);n.set(o,n.has(o)?u()(r,n.get(o),{arrayMerge:b}):r)}return[...n.values()].reverse()}const b=(e,t,n)=>[...t];function f(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 r=t.charCodeAt(0);return a.reverse().map(e=>String.fromCharCode(r+e)).join("")}const y=["I","X","C","M"],E=["V","L","D"];function C(e){return[...e+""].map(e=>+e).reverse().map((e,t)=>e%5<4?(e<5?"":E[t])+y[t].repeat(e%5):y[t]+(e<5?E[t]:y[t+1])).reverse().join("")}class _{constructor(e,t=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=t||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=f(e,["longWordSplit","wrapCharacters"])||[],this.forceWrapOnLimit=f(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),r=e.substring(this.maxLineLength),o=a.lastIndexOf(this.wrapCharacters[n]);if(o>-1)e=a.substring(o+1)+r,t.push(a.substring(0,o+1));else{if(n++,!(n<this.wrapCharacters.length)){if(this.forceWrapOnLimit){if(t.push(a),(e=r).length>this.maxLineLength)continue}else e=a+r;break}e=a+r}}return t.push(e),t}}class k{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}}class w extends k{constructor(e,t=null,n=1,a=void 0){super(t),this.leadingLineBreaks=n,this.inlineTextBuilder=new _(e,a),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}}class A extends w{constructor(e,t=null,{interRowLineBreaks:n=1,leadingLineBreaks:a=2,maxLineLength:r,maxPrefixLength:o=0,prefixAlign:i="left"}={}){super(e,t,a,r),this.maxPrefixLength=o,this.prefixAlign=i,this.interRowLineBreaks=n}}class x extends w{constructor(e,t=null,{leadingLineBreaks:n=1,maxLineLength:a,prefix:r=""}={}){super(e,t,n,a),this.prefix=r}}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 _(e,n),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}}class B extends k{constructor(e=null,t){super(e),this.transform=t}}class I{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,r=!1){if(!t)return;const o=n.stashedSpace;let i=!1,l=e.exec(t);if(l)for(i=!0,"\n"===l[0]?n.startNewLine():o||this.testLeadingWhitespace(t)?n.pushWord(a(l[0]),r):n.concatWord(a(l[0]),r);null!==(l=e.exec(t));)"\n"===l[0]?n.startNewLine():n.pushWord(a(l[0]),r);n.stashedSpace=o&&!i||this.testTrailingWhitespace(t)}}else{const e=new RegExp(`[^${t}]+`,"g");this.shrinkWrapAdd=function(t,n,a=e=>e,r=!1){if(!t)return;const o=n.stashedSpace;let i=!1,l=e.exec(t);if(l)for(i=!0,o||this.testLeadingWhitespace(t)?n.pushWord(a(l[0]),r):n.concatWord(a(l[0]),r);null!==(l=e.exec(t));)n.pushWord(a(l[0]),r);n.stashedSpace=o&&!i||this.testTrailingWhitespace(t)}}}addLiteral(e,t,n=!0){if(!e)return;const a=t.stashedSpace;let r=!1,o=this.newlineOrNonNewlineStringRe.exec(e);if(o)for(r=!0,"\n"===o[0]?t.startNewLine():a?t.pushWord(o[0],n):t.concatWord(o[0],n);null!==(o=this.newlineOrNonNewlineStringRe.exec(e));)"\n"===o[0]?t.startNewLine():t.pushWord(o[0],n);t.stashedSpace=a&&!r}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 R{constructor(e,t,n=void 0){this.options=e,this.picker=t,this.metadata=n,this.whitespaceProcessor=new I(e),this._stackItem=new w(e),this._wordTransformer=void 0}pushWordTransform(e){this._wordTransformer=new B(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=>P(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 w||this._stackItem instanceof x||this._stackItem instanceof T)&&(this._stackItem.isPre?this._stackItem.rawText+="\n":this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof w||this._stackItem instanceof x||this._stackItem instanceof T)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(e,{noWordTransform:t=!1}={}){if(this._stackItem instanceof w||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 w||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 w(this.options,this._stackItem,e,a),n&&(this._stackItem.isPre=!0)}closeBlock({trailingLineBreaks:e=1,blockTransform:t}={}){const n=this._popStackItem(),a=t?t(N(n)):N(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 A(this.options,this._stackItem,{interRowLineBreaks:n,leadingLineBreaks:a,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:e,prefixAlign:t})}openListItem({prefix:e=""}={}){if(!(this._stackItem instanceof A))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))+N(e).replace(/\n/g,a),e.leadingLineBreaks,Math.max(e.stashedLineBreaks,t.interRowLineBreaks))}closeList({trailingLineBreaks:e=2}={}){const t=this._popStackItem(),n=N(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=h(N(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 N(this._stackItem.getRoot())}}function N(e){if(!(e instanceof w||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 w||e instanceof x||e instanceof T))throw new Error("Only blocks, list items and table cells can contain text.");const r=N(e),o=Math.max(e.stashedLineBreaks,n);e.inlineTextBuilder.clear(),r?e.rawText=r+"\n".repeat(o)+t:(e.rawText=t,e.leadingLineBreaks=o),e.stashedLineBreaks=a}function P(e,t){return t?P(t.transform(e),t.next):e}var M=n(1331);function F(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 o.bA(e.selectors.map(e=>[e.selector,e])).build(i);"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),r=(e,...t)=>a[t.findIndex(e=>e)];return e=>e.replace(n,r)}(e.encodeCharacters));const a=new o.bA(e.baseElements.selectors.map((e,t)=>[e,t+1])).build(i);function r(t){return function(e,t,n){const a=[];function r(e,r){r=[...r].slice(0,t.limits.maxChildNodes);for(const o of r){if(!(0,M.vq)(o))continue;const r=n.pick1(o);if(r>0?a.push({selectorIndex:r,element:o}):o.childNodes&&e([...o.childNodes]),a.length>=t.limits.maxBaseElements)return}}const o=p(t.limits.maxDepth,r);o(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 l=p(e.limits.maxDepth,j,function(t,n){n.addInline(e.limits.ellipsis||"")});return function(t,a=void 0){return function(e,t,n,a,r,o){const i=r([...e.childNodes]),l=new R(n,a,t);return o(i,l),l.toString()}(t,a,e,n,r,l)}}function j(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 r of t)switch(r.nodeType){case r.TEXT_NODE:n.addInline(r.data);break;case r.ELEMENT_NODE:{const t=n.picker.pick1(r),o=a.formatters[t.format];o&&o(r,e,n,t.options||{});break}}}var V=n(43083);function H(e,t,n,a){}function W(e,t,n,a){n.addLiteral(a.string||"")}function D(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),n.addLiteral(a.string||""),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function $(e,t,n,a){t([...e.childNodes],n)}function z(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),t([...e.childNodes],n),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function U(e){return(0,V.Ll)(e)}function q(e){return`</${e.tagName.toLoserCase()}>`}function Z(e,t,n,a){n.startNoWrap(),n.addLiteral(U(e)),n.stopNoWrap(),t([...e.childNodes],n),n.startNoWrap(),n.addLiteral(q(e)),n.stopNoWrap()}function G(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral(U(e)),n.stopNoWrap(),t([...e.childNodes],n),n.startNoWrap(),n.addLiteral(q(e)),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function X(e,t,n,a){n.startNoWrap(),n.addLiteral((0,M.b6)(e)),n.stopNoWrap()}function Y(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral((0,M.b6)(e)),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function K(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 r=0;r<e.rowspan;r++){const o=J(t,n+r);for(let t=0;t<e.colspan;t++)o[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 r=0;const o=e.length,i=[0];for(let c=0;c<o;c++){const n=J(a,c),o=e[c];let l=0;for(let e=0;e<o.length;e++){const r=o[e];l=Q(n,l),ee(r,a,c,l),l+=r.colspan,r.lines=r.text.split("\n");const s=r.lines.length;ne(i,c,r.rowspan,s+t)}r=n.length>r?n.length:r}!function(e,t){for(let n=0;n<t;n++){const t=J(e,n);for(let a=0;a<n;a++){const r=J(e,a);if(t[a]||r[n]){const e=t[a];t[a]=r[n],r[n]=e}}}}(a,o>r?o:r);const l=[],s=[0];for(let c=0;c<r;c++){let e,t=0;const r=Math.min(o,a[c].length);for(;t<r;)if(e=a[c][t],e){if(!e.rendered){let a=0;for(let n=0;n<e.lines.length;n++){const r=e.lines[n],o=i[t]+n;l[o]=(l[o]||"").padEnd(s[c])+r,a=r.length>a?r.length:a}ne(s,c,e.colspan,a+n),e.rendered=!0}t+=e.rowspan}else{const e=i[t];l[e]=l[e]||"",t++}}return l.join("\n")}function re(e,t,n,a){n.addLineBreak()}function oe(e,t,n,a){n.addWordBreakOpportunity()}function ie(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 le(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?h(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,r){const o="function"===typeof t?t(e,a,r):e;return"/"===o[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,"/")+o:o}function pe(e,t,n,a){const r=e.getAttribute("alt")||"",o=e.getAttribute("src")?ue(e.getAttribute("src"),a.pathRewrite,a.baseUrl,n.metadata,e):"",i=o?r?r+" "+me(o,a.linkBrackets):me(o,a.linkBrackets):r;n.addInline(i,{noWordTransform:!0})}function he(e,t,n,a){const r=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(r){let o="";n.pushWordTransform(e=>(e&&(o+=e),e)),t([...e.childNodes],n),n.popWordTransform();a.hideLinkHrefIfSameAsText&&r===o||n.addInline(o?" "+me(r,a.linkBrackets):r,{noWordTransform:!0})}else t([...e.childNodes],n)}function ge(e,t,n,a,r){const o="li"===f(e,["parent","name"]);let i=0;const l=([...e.childNodes]||[]).filter(e=>!(0,M.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=o?r().trimStart():r();return n.length>i&&(i=n.length),{node:e,prefix:n}});if(l.length){n.openList({interRowLineBreaks:1,leadingLineBreaks:o?1:a.leadingLineBreaks||2,maxPrefixLength:i,prefixAlign:"left"});for(const{node:e,prefix:a}of l)n.openListItem({prefix:a}),t([e],n),n.closeListItem();n.closeList({trailingLineBreaks:o?1:a.trailingLineBreaks||2})}}function be(e,t,n,a){const r=a.itemPrefix||" * ";return ge(e,t,n,a,()=>r)}function fe(e,t,n,a){var r,o;let i=Number((null===(r=e.getAttribute)||void 0===r?void 0:r.call(e,"start"))||"1");const l=function(e="1"){switch(e){case"a":return e=>v(e,"a");case"A":return e=>v(e,"A");case"i":return e=>C(e).toLowerCase();case"I":return e=>C(e);default:return e=>e.toString()}}(null===(o=e.getAttribute)||void 0===o?void 0:o.call(e,"type"));return ge(e,t,n,a,()=>" "+l(i++)+". ")}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),r=(e.getAttribute("class")||"").split(" "),o=(e.getAttribute("id")||"").split(" ");return r.some(e=>n.includes(e))||o.some(e=>a.includes(e))}(e,n.options.tables)?ye(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 ye(e,t,n,a){function r(e){const r=e.getAttribute("colspan")||1,o=e.getAttribute("rowspan")||1;n.openTableCell({maxColumnWidth:a.maxColumnWidth}),t([...e.childNodes],n),n.closeTableCell({colspan:r,rowspan:o})}n.openTable(),[...e.childNodes].forEach(function e(t){var o;if(!(0,M.vq)(t))return;const i=!1!==a.uppercaseHeaderCells?e=>{n.pushWordTransform(e=>e.toUpperCase()),r(e),n.popWordTransform()}:r;switch(null===(o=t.tagName)||void 0===o?void 0:o.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,M.vq)(e))switch(e.tagName.toLowerCase()){case"th":i(e);break;case"td":r(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 Ee={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"},Ce=(e,t,n)=>[...t],_e=(e,t,n)=>e.some(e=>"object"===typeof e)?((e,t)=>[...e,...t])(e,t):Ce(e,t,n);function ke(e={}){return(e=u()(Ee,e,{arrayMerge:Ce,customMerge:e=>"selectors"===e?_e:void 0})).formatters=Object.assign({},a,r,e.formatters),e.selectors=g(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=g(e.selectors,e=>e.selector)}function t(e,t,n){const a=t.pop();for(const r of t){let t=e[r];t||(t={},e[r]=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&&f(n,["options","noLinkBrackets"])&&t(n,["options","linkBrackets"],!1)}(e),F(e)}function we(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:()=>A});var a=n(21987);let r=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 o{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===f||e===v||e===h||e===b||e===g)>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 i="!".charCodeAt(0),l="-".charCodeAt(0),s="<".charCodeAt(0),c=">".charCodeAt(0),d="/".charCodeAt(0),m="=".charCodeAt(0),u='"'.charCodeAt(0),p="'".charCodeAt(0),h="\n".charCodeAt(0),g="\r".charCodeAt(0),b="\f".charCodeAt(0),f=" ".charCodeAt(0),v="\t".charCodeAt(0),y={"text/x-handlebars-template":!0,"text/html":!0};function E(e,t=0,n=a.S5.WithinContent,h=!1){const g=new o(e,t);let b,f,v,E,C,_=n,k=0,w=r.Unknown;function A(){return g.advanceIfRegExp(/^[_:a-zA-Z][_:\w-.\d]*/).toLowerCase()}function x(e,t,n){return w=t,k=e,b=n,t}function S(){const e=g.pos();if(g.eos())return x(e,r.EOS);let t;switch(_){case a.S5.WithinComment:return g.advanceIfChars([l,l,c])?(_=a.S5.WithinContent,x(e,r.EndCommentTag)):(g.advanceUntilChars([l,l,c]),x(e,r.Comment));case a.S5.WithinDoctype:return g.advanceIfChar(c)?(_=a.S5.WithinContent,x(e,r.EndDoctypeTag)):(g.advanceUntilChar(c),x(e,r.Doctype));case a.S5.WithinContent:if(g.advanceIfChar(s)){if(!g.eos()&&g.peekChar()===i){if(g.advanceIfChars([i,l,l]))return _=a.S5.WithinComment,x(e,r.StartCommentTag);if(g.advanceIfRegExp(/^!doctype/i))return _=a.S5.WithinDoctype,x(e,r.StartDoctypeTag)}return g.advanceIfChar(d)?(_=a.S5.AfterOpeningEndTag,x(e,r.EndTagOpen)):(_=a.S5.AfterOpeningStartTag,x(e,r.StartTagOpen))}return g.advanceUntilChar(s),x(e,r.Content);case a.S5.AfterOpeningEndTag:return A().length>0?(_=a.S5.WithinEndTag,x(e,r.EndTag)):g.skipWhitespace()?x(e,r.Whitespace,"Tag name must directly follow the open bracket."):(_=a.S5.WithinEndTag,g.advanceUntilChar(c),e<g.pos()?x(e,r.Unknown,"End tag name expected."):S());case a.S5.WithinEndTag:if(g.skipWhitespace())return x(e,r.Whitespace);if(g.advanceIfChar(c))return _=a.S5.WithinContent,x(e,r.EndTagClose);if(h&&g.peekChar()===s)return _=a.S5.WithinContent,x(e,r.EndTagClose,"Closing bracket missing.");t="Closing bracket expected.";break;case a.S5.AfterOpeningStartTag:return v=A(),C=void 0,E=void 0,v.length>0?(f=!1,_=a.S5.WithinTag,x(e,r.StartTag)):g.skipWhitespace()?x(e,r.Whitespace,"Tag name must directly follow the open bracket."):(_=a.S5.WithinTag,g.advanceUntilChar(c),e<g.pos()?x(e,r.Unknown,"Start tag name expected."):S());case a.S5.WithinTag:return g.skipWhitespace()?(f=!0,x(e,r.Whitespace)):f&&(E=g.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase(),E.length>0)?(_=a.S5.AfterAttributeName,f=!1,x(e,r.AttributeName)):g.advanceIfChars([d,c])?(_=a.S5.WithinContent,x(e,r.StartTagSelfClose)):g.advanceIfChar(c)?(_="script"===v?C&&y[C]?a.S5.WithinContent:a.S5.WithinScriptContent:"style"===v?a.S5.WithinStyleContent:a.S5.WithinContent,x(e,r.StartTagClose)):h&&g.peekChar()===s?(_=a.S5.WithinContent,x(e,r.StartTagClose,"Closing bracket missing.")):(g.advance(1),x(e,r.Unknown,"Unexpected character in tag."));case a.S5.AfterAttributeName:return g.skipWhitespace()?(f=!0,x(e,r.Whitespace)):g.advanceIfChar(m)?(_=a.S5.BeforeAttributeValue,x(e,r.DelimiterAssign)):(_=a.S5.WithinTag,S());case a.S5.BeforeAttributeValue:if(g.skipWhitespace())return x(e,r.Whitespace);let n=g.advanceIfRegExp(/^[^\s"'`=<>]+/);if(n.length>0)return g.peekChar()===c&&g.peekChar(-1)===d&&(g.goBack(1),n=n.substr(0,n.length-1)),"type"===E&&(C=n),_=a.S5.WithinTag,f=!1,x(e,r.AttributeValue);const o=g.peekChar();return o===p||o===u?(g.advance(1),g.advanceUntilChar(o)&&g.advance(1),"type"===E&&(C=g.getSource().substring(e+1,g.pos()-1)),_=a.S5.WithinTag,f=!1,x(e,r.AttributeValue)):(_=a.S5.WithinTag,f=!1,S());case a.S5.WithinScriptContent:let b=1;for(;!g.eos();){const t=g.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(0===t.length)return g.goToEnd(),x(e,r.Script);if("\x3c!--"===t)1===b&&(b=2);else if("--\x3e"===t)b=1;else if("/"!==t[1])2===b&&(b=3);else{if(3!==b){g.goBack(t.length);break}b=2}}return _=a.S5.WithinContent,e<g.pos()?x(e,r.Script):S();case a.S5.WithinStyleContent:return g.advanceUntilRegExp(/<\/style/i),_=a.S5.WithinContent,e<g.pos()?x(e,r.Styles):S()}return g.advance(1),_=a.S5.WithinContent,x(e,r.Unknown,t)}return{scan:function(){const e=g.pos(),t=S();return t===r.EOS||e!==g.pos()||h&&(t===r.StartTagClose||t===r.EndTagClose)?t:(g.advance(1),x(e,r.Unknown))},getTokenType:()=>w,getTokenOffset:()=>k,getTokenLength:()=>g.pos()-k,getTokenEnd:()=>g.pos(),getTokenText:()=>g.getSource().substring(k,g.pos()),getScannerState:()=>_,getTokenError:()=>b}}var C=n(92882),_=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 w{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 _.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,r=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=r,a.content=this.text.substring(a.startTagEnd,e),this.node=void 0}}}class A{constructor(e){this.dataManager=e}parse(e,t=[]){var n;const a=E(e,void 0,void 0,!0),o=new _.b(0,e.length,[],void 0);o.type=_.Z.ROOT;let i,l=o,s=-1,c=null,d=a.scan();const m=()=>{if(!l.tag){const t=l.parent.children,n=t[t.length-2],a=e.substring(l.start,l.end);(null===n||void 0===n?void 0:n.type)===_.Z.HTML?(n.content=(n.content||"")+a,n.end=l.end,t.splice(t.length-1,1)):(l.type=_.Z.HTML,l.content=a,l.children=[]),l.type=_.Z.HTML}l=l.parent},u=new w(e,_.Z.COMMENT),p=new w(e,_.Z.DOCTYPE),h=e=>{l.children.push(e)};for(;d!==r.EOS;){switch(d){case r.StartDoctypeTag:p.start(a.getTokenOffset(),a.getTokenEnd(),l);break;case r.EndDoctypeTag:{const t=l.lastChild,n=p.node;if(!n)throw new Error("");const r=t?t.end:void 0!==l.startTagEnd?l.startTagEnd:l.start;if(r!==n.start){const t=e.substring(r,n.start);if(t){const e=new _.b(r,n.start,[],l);e.type=_.Z.HTML,e.content=t,h(e)}}p.finish(a.getTokenOffset(),a.getTokenLength());break}case r.StartCommentTag:u.start(a.getTokenOffset(),a.getTokenEnd(),l);break;case r.EndCommentTag:{const t=l.lastChild,n=u.node;if(!n)throw new Error("");const r=t?t.end:void 0!==l.startTagEnd?l.startTagEnd:l.start;if(r!==n.start){const t=e.substring(r,n.start);if(t){const e=new _.b(r,n.start,[],l);e.type=_.Z.HTML,e.content=t,h(e)}}u.finish(a.getTokenOffset(),a.getTokenLength());break}case r.StartTagOpen:const t=l.lastChild,n=new _.b(a.getTokenOffset(),e.length,[],l),o=t?t.end:void 0!==l.startTagEnd?l.startTagEnd:l.start;if(o!==n.start){const t=e.substring(o,n.start);if(t){const e=new _.b(o,n.start,[],l);e.type=_.Z.HTML,e.content=t,h(e)}}h(n),l=n;break;case r.StartTag:l.tag=a.getTokenText();break;case r.StartTagClose:l.parent&&(l.end=a.getTokenEnd(),a.getTokenLength()?(l.startTagEnd=a.getTokenEnd(),l.tag&&this.dataManager.isVoidElement(l.tag)&&(l.closed=!0,m())):m());break;case r.StartTagSelfClose:l.parent&&(l.closed=!0,l.end=a.getTokenEnd(),l.startTagEnd=a.getTokenEnd(),m());break;case r.EndTagOpen:s=a.getTokenOffset(),i=void 0;break;case r.EndTag:i=a.getTokenText().toLowerCase();break;case r.EndTagClose:let d=l;for(;!d.isSameTag(i)&&d.parent;)d=d.parent;if(d.parent){const t=l.lastChild,n=t?t.end:void 0===l.startTagEnd?l.start:l.startTagEnd;if(n!==s){const t=e.substring(n,s);if(t){const e=new _.b(n,s,[],l);e.type=_.Z.HTML,e.content=t,h(e)}}for(;l!==d;)l.end=s,l.closed=!1,m();l.closed=!0,l.endTagStart=s,l.end=a.getTokenEnd(),m()}break;case r.AttributeName:{c=a.getTokenText();let e=l.attributes;e||(l.attributes=e={}),e[c]=null;break}case r.AttributeValue:{const e=a.getTokenText(),t=l.attributes;t&&c&&(t[c]=k(e),c=null);break}}d=a.scan()}for(;l.parent;)l.end=e.length,l.closed=!1,m();u.hasNode,u.finish(e.length);const g=(null===(n=o.lastChild)||void 0===n?void 0:n.end)||0;if(g<e.length){const t=e.substring(g);if(t){const n=new _.b(g,e.length,[],o);n.type=_.Z.HTML,n.content=t,h(n)}}return{roots:o.children,findNodeBefore:o.findNodeBefore.bind(o),findNodeAt:o.findNodeAt.bind(o)}}}const x=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr","vk-snippet-end"];new A(new C.H(x))},21944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r,b:()=>i});var a=n(43083);let r=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 o=e=>e.type===r.HTML?e.start-1:e.start;class i{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=r.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<=o(t))-1;if(t>=0){const n=this.children[t];if(e>o(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<=o(t))-1;if(t>=0){const a=this.children[t];if(e>=o(a)&&e<=((n=a).type===r.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,r=new i(t,this.end-a,[],e);return r.children=n?this.children.map(e=>e.clone(r,e.start-a)):[],r.attributes={...this.attributes},r.closed=this.closed,r.content=this.content,r.startTagEnd=this.startTagEnd,r.endTagStart=this.endTagStart,r.tag=this.tag,r.type=this.type,r}}},43083:(e,t,n)=>{"use strict";n.d(t,{Ll:()=>i,i8:()=>l,n1:()=>a});n(21944);const a=new Set(["area","br","col","embed","hr","img","input","link","meta","param","vk-snippet-end"]);const r=Object.create(null);function o(e,t){const n=r[e]||(r[e]=Object.create(null));let a=n[t];if("boolean"!==typeof a){const r=document.createElement(e)[t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(e,t)=>t.toUpperCase())];a=n[t]="undefined"!==typeof r&&"boolean"!==typeof r}return a}function i(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 r of e){const e=null===t[r]?"":t[r];"string"===typeof e&&(a+=""!==e||"em"===r||o(n,r)?` ${r}="${e.replaceAll('"',"'")}"`:` ${r}`)}}}return a}(e);return"vk-snippet-end"===t?`<${t}${a}/>`:`<${t}${a}>`}return""}function l(e,t){let n=0,a=e.length;if(0===a)return 0;for(;n<a;){const r=Math.floor((n+a)/2);t(e[r])?a=r:n=r+1}return n}},45386:(e,t,n)=>{"use strict";n.d(t,{R:()=>s});var a=n(56211),r=n(86451),o=n(11628),i=n(61578);class l extends a.vl{constructor(e={}){super(),this._mutationSummary=void 0,this._mutationSummary=new r.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 i.j{_nextTickHandler(){(0,o.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 l(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,o.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:()=>r});var a=n(1331);function r(e){for(const r of e){if(r.removed)for(const e of r.removed){const n=r.getOldParentNode(e),a=r.getOldPreviousSibling(e);if(n){var t;const r=null!==(t=null===a||void 0===a?void 0:a.nextSibling)&&void 0!==t?t:null;n.insertBefore(e,r)}}if(r.added)for(const e of r.added)e.parentNode&&e.parentNode.removeChild(e);if(r.reordered)for(const e of r.reordered){const t=r.getOldParentNode(e),a=r.getOldPreviousSibling(e);if(t){var n;const r=null!==(n=null===a||void 0===a?void 0:a.nextSibling)&&void 0!==n?n:null;t.insertBefore(e,r)}}if(r.attributeChanged)for(const e of Object.keys(r.attributeChanged))for(const t of r.attributeChanged[e]){const n=r.getOldAttribute(t,e);null==n?t.removeAttribute(e):t.setAttribute(e,n)}if(r.characterDataChanged)for(const e of r.characterDataChanged)((0,a.ir)(e)||(0,a.Cn)(e)||(0,a.Cn)(e))&&(e.data=r.getOldCharacterData(e))}}},11628:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(56211);let r=0;const o=new Array(1e3);function i(){for(let e=0;e<r;e+=2){(0,o[e])(...o[e+1]),o[e]=void 0,o[e+1]=void 0}r=0}const l=function(){let e=0;const t=new MutationObserver(i),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){o[r]=e,o[r+1]=t,r+=2,2===r&&l()}(()=>{s.hasListeners()&&(s.fire(),e())})}}),c=s.once;const d=c},32467:(e,t,n)=>{"use strict";n.d(t,{J:()=>o,xv:()=>r});const a="em_version";function r(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 o(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),r=n(41408),o=n(85537),i=n(73974),l=n(26071),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:h="bottom",className:g})=>{const b={...d,...m},[f,v]=(0,a.useState)(null!==e&&void 0!==e?e:"");(0,a.useEffect)(()=>{v(null!==e&&void 0!==e?e:"")},[e]);const y=e=>{const n=e===f?"":e;v(n),null===t||void 0===t||t(n)},E=a.createElement(r.A.Group,{disabled:n,value:f,className:"em-form-align-control"},a.createElement(o.A,{size:8},a.createElement(i.A,{placement:h,title:b.alignLeft},a.createElement(r.A.Button,{value:"left","aria-label":b.alignLeft,onClick:()=>y("left")},a.createElement(l.A,{icon:"AlignHorizontalLeft",size:p,strokeWidth:s,"aria-hidden":!0}))),a.createElement(i.A,{placement:h,title:b.alignCenter},a.createElement(r.A.Button,{value:"center","aria-label":b.alignCenter,onClick:()=>y("center")},a.createElement(l.A,{icon:"AlignHorizontalCenter",size:p,strokeWidth:s,"aria-hidden":!0}))),a.createElement(i.A,{placement:h,title:b.alignRight},a.createElement(r.A.Button,{value:"right","aria-label":b.alignRight,onClick:()=>y("right")},a.createElement(l.A,{icon:"AlignHorizontalRight",size:p,strokeWidth:s,"aria-hidden":!0})))));let C=E;return u&&(C=a.createElement(i.A,{placement:h,title:u},a.createElement("span",{style:{display:"inline-block"}},E))),g&&(C=a.createElement("div",{className:c()("em-form-align-control",g)},C)),a.createElement(a.Fragment,null,C)};m.displayName="FormAlignControl";const u=m},19844:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var a=n(1936),r=n(41408),o=n(85537),i=n(73974),l=n(26071),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:h="bottom",className:g})=>{const b={...d,...m},[f,v]=(0,a.useState)(null!==e&&void 0!==e?e:"");(0,a.useEffect)(()=>{v(null!==e&&void 0!==e?e:"")},[e]);const y=e=>{const n=e===f?"":e;v(n),null===t||void 0===t||t(n)},E=a.createElement(r.A.Group,{disabled:n,value:f,className:"em-form-align-control"},a.createElement(o.A,{size:8},a.createElement(i.A,{placement:h,title:b.alignLeft},a.createElement(r.A.Button,{value:"left","aria-label":b.alignLeft,onClick:()=>y("left")},a.createElement(l.A,{icon:"AlignLeftOutlined",size:p,strokeWidth:s,"aria-hidden":!0}))),a.createElement(i.A,{placement:h,title:b.alignCenter},a.createElement(r.A.Button,{value:"center","aria-label":b.alignCenter,onClick:()=>y("center")},a.createElement(l.A,{icon:"AlignCenterOutlined",size:p,strokeWidth:s,"aria-hidden":!0}))),a.createElement(i.A,{placement:h,title:b.alignRight},a.createElement(r.A.Button,{value:"right","aria-label":b.alignRight,onClick:()=>y("right")},a.createElement(l.A,{icon:"AlignRightOutlined",size:p,strokeWidth:s,"aria-hidden":!0}))),a.createElement(i.A,{placement:h,title:b.alignJustify},a.createElement(r.A.Button,{value:"justify","aria-label":b.alignJustify,onClick:()=>y("justify")},a.createElement(l.A,{icon:"Justify",size:p,strokeWidth:s,"aria-hidden":!0})))));let C=E;return u&&(C=a.createElement(i.A,{placement:h,title:u},a.createElement("span",{style:{display:"inline-block"}},E))),g&&(C=a.createElement("div",{className:c()("em-form-align-control",g)},C)),a.createElement(a.Fragment,null,C)};m.displayName="FormAlignTextControl";const u=m},78395:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var a=n(1936),r=n(6056),o=n.n(r),i=n(16633),l=n(77595),s=n(88145),c=n(73974),d=n(3327),m=n(13763),u=n(27496),p=n(26071);const h=[],g=[],b=({colorFieldName:e="backgroundColor",imageEnabled:t=!1,backgroundImageEmpty:n=!0,usedColors:r,backgroundRepeatOptions:b=h,backgroundSizeOptions:f=g,colorPlaceholder:v="Background color",usedLabel:y="Used",recommendedLabel:E="Recommended",imageUploadSlot:C,rowStyle:_,getPopupContainer:k,horizontalPositionPlaceholder:w="Horizontal position",horizontalPositionTooltip:A="Horizontal position",verticalPositionPlaceholder:x="Vertical position",verticalPositionTooltip:S="Vertical position",backgroundRepeatTooltip:L="Background image repeat",backgroundSizeTooltip:T="Background image size",selectPlaceholder:B="Please choose",namePrefix:I=""})=>{const R=`${I}backgroundPositionX`,N=`${I}backgroundPositionY`,O=`${I}backgroundRepeat`,P=`${I}backgroundSize`;return a.createElement(l.A,{gutter:10,className:o()("em-form-background-settings__row",{"em-form-background-settings__row--image-empty":n}),style:_},a.createElement(s.A,{span:12},a.createElement(c.A,{trigger:["hover"],title:v,placement:"bottom",zIndex:1,getPopupContainer:e=>e.parentNode},a.createElement(i.A.Item,{name:e,className:o()("em-form-background-settings__form-item-color",{"em-form-background-settings__form-item-color--image-enabled":t})},a.createElement(m.A,{placeholder:v,usedColors:r,usedLabel:y,recommendedLabel:E,placement:"bottomLeft",getPopupContainer:k})))),t&&a.createElement(s.A,{span:n?12:24},C&&a.createElement("div",{className:o()("em-form-background-settings__image-slot",{"em-form-background-settings__image-slot--empty":n})},C),!n&&a.createElement(i.A.Item,{className:"em-form-background-settings__form-item-wrapper"},a.createElement(l.A,{gutter:10},a.createElement(s.A,{span:12},a.createElement(c.A,{trigger:["hover"],title:A,placement:"bottom"},a.createElement(i.A.Item,{name:R,className:"em-form-background-settings__form-item-position"},a.createElement(u.A,{placeholder:w,prefix:a.createElement(p.A,{icon:"BgPositionHorizontal"})})))),a.createElement(s.A,{span:12},a.createElement(c.A,{trigger:["hover"],title:S,placement:"bottom"},a.createElement(i.A.Item,{name:N,className:"em-form-background-settings__form-item-position"},a.createElement(u.A,{placeholder:x,prefix:a.createElement(p.A,{icon:"BgPositionVertical"})}))))),a.createElement(l.A,{gutter:10},a.createElement(s.A,{span:12},a.createElement(c.A,{trigger:["hover"],title:L,placement:"top"},a.createElement(i.A.Item,{name:O,className:"em-form-background-settings__form-item-select"},a.createElement(d.A,{placeholder:B,options:b,placement:"bottomLeft",getPopupContainer:null!==k&&void 0!==k?k:void 0})))),a.createElement(s.A,{span:12},a.createElement(c.A,{trigger:["hover"],title:T,placement:"top"},a.createElement(i.A.Item,{name:P,className:"em-form-background-settings__form-item-select"},a.createElement(d.A,{placeholder:B,options:f,placement:"bottomLeft",getPopupContainer:null!==k&&void 0!==k?k:void 0}))))))))};b.displayName="FormBackgroundSettings";const f=b},66017:(e,t,n)=>{"use strict";n.d(t,{Ok:()=>N,sQ:()=>M,nD:()=>H,eZ:()=>G,vp:()=>A,mw:()=>S,v6:()=>ae,L1:()=>f,y9:()=>c,n6:()=>E,Pr:()=>q,H6:()=>J});var a=n(1936),r=n(6056),o=n.n(r),i=n(6426),l=n(26071);const s=({title:e,collapsible:t=!1,defaultOpen:n=!0,open:r,onToggle:s,dividerTop:c="auto",dividerBottom:d=!1,compact:m=!1,titleStyle:u,children:p,className:h,style:g})=>{const b=void 0!==r,[f,v]=(0,a.useState)(n),y=b?r:f,E=(0,a.useCallback)(()=>{const e=!y;b||v(e),null===s||void 0===s||s(e)},[y,b,s]);return a.createElement("div",{className:o()("form-section",{"form-section--collapsible":t,"form-section--compact":m},h),style:g},"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"}),a.createElement("div",{className:"form-section__header"},a.createElement("div",{className:"form-section__title",style:u},e),t&&a.createElement(i.A,{type:"text",className:"form-section__toggle",onClick:E,"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(l.A,{icon:"MinusOutlined","aria-hidden":!0}):a.createElement(l.A,{icon:"PlusOutlined","aria-hidden":!0}))),(!t||y)&&a.createElement("div",{className:"form-section__body"},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),h=n(27496);const g={horizontal:"Horizontal",vertical:"Vertical",left:"Left",right:"Right",top:"Top",bottom:"Bottom",individual:"Individual padding"},b=({namePrefix:e="",typeOfForm:t="desktop",extended:n,onToggleExtended:r,showHorizontal:s=!0,max:c=300,gutter:b=10,rowStyle:f,buttonClassName:v="selected-td-form__button",formItemClassName:y="form-item-margin-xs",fieldNames:E,labels:C={}})=>{var _,k,w,A,x,S;const L={...g,...C},T="mobile"===t,B=T?"mobilePaddingLeftRight":"paddingLeftRight",I=T?"mobilePaddingLeft":"paddingLeft",R=T?"mobilePaddingRight":"paddingRight",N=T?"mobilePaddingTopBottom":"paddingTopBottom",O=T?"mobilePaddingTop":"paddingTop",P=T?"mobilePaddingBottom":"paddingBottom",M=null!==(_=null===E||void 0===E?void 0:E.paddingLeftRight)&&void 0!==_?_:e+B,F=null!==(k=null===E||void 0===E?void 0:E.paddingLeft)&&void 0!==k?k:e+I,j=null!==(w=null===E||void 0===E?void 0:E.paddingRight)&&void 0!==w?w:e+R,V=null!==(A=null===E||void 0===E?void 0:E.paddingTopBottom)&&void 0!==A?A:e+N,H=null!==(x=null===E||void 0===E?void 0:E.paddingTop)&&void 0!==x?x:e+O,W=null!==(S=null===E||void 0===E?void 0:E.paddingBottom)&&void 0!==S?S:e+P;return a.createElement(m.A,{gutter:b,style:f,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(d.A.Item,{name:M},a.createElement(h.A,{min:0,max:c,placeholder:L.horizontal,prefix:a.createElement(l.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(d.A.Item,{name:F,className:y},a.createElement(h.A,{min:0,max:c,placeholder:L.left,prefix:a.createElement(l.A,{icon:"PaddingLeft"}),addonAfter:"px"}))),a.createElement(p.A,{trigger:["hover"],title:L.right,placement:"bottom"},a.createElement(d.A.Item,{name:j},a.createElement(h.A,{min:0,max:c,placeholder:L.right,prefix:a.createElement(l.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(d.A.Item,{name:V},a.createElement(h.A,{min:0,max:c,placeholder:L.vertical,prefix:a.createElement(l.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(d.A.Item,{name:H,className:y},a.createElement(h.A,{min:0,max:c,placeholder:L.top,prefix:a.createElement(l.A,{icon:"PaddingTop"}),addonAfter:"px"}))),a.createElement(p.A,{trigger:["hover"],title:L.bottom,placement:"bottom"},a.createElement(d.A.Item,{name:W},a.createElement(h.A,{min:0,max:c,placeholder:L.bottom,prefix:a.createElement(l.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(i.A,{"aria-label":L.individual,className:o()(v,"form-padding-inputs__toggle",{[`${v}--active`]:!n,"form-padding-inputs__toggle--active":!n}),onClick:r},a.createElement(l.A,{icon:"PaddingSwitcher","aria-hidden":!0}))))))};b.displayName="FormPaddingInputs";const f=b,v={width:"Width",height:"Height",minWidth:"Minimum width",maxWidth:"Maximum width"},y=({namePrefix:e="",typeOfForm:t="desktop",showWidth:n=!0,showHeight:r=!0,showMinMax:o=!1,maxWidth:i,dimensionSelect:s,minWidthDimensionSelect:c,maxWidthDimensionSelect:g,gutter:b=10,rowStyle:f,formItemClassName:y="form-size-inputs__form-item",fieldNames:E,labels:C={}})=>{var _,k,w,A,x,S,L;const T={...v,...C},B="mobile"===t,I=B?"mobileWidth":"width",R=B?"mobileHeight":"height",N=B?"mobileWidthDim":"widthDim",O=B?"mobileMinWidth":"minWidth",P=B?"mobileMaxWidth":"maxWidth",M=B?"mobileMinWidthDim":"minWidthDim",F=B?"mobileMaxWidthDim":"maxWidthDim",j=null!==(_=null===E||void 0===E?void 0:E.width)&&void 0!==_?_:e+I,V=null!==(k=null===E||void 0===E?void 0:E.height)&&void 0!==k?k:e+R,H=null!==(w=null===E||void 0===E?void 0:E.widthDim)&&void 0!==w?w:e+N,W=null!==(A=null===E||void 0===E?void 0:E.minWidth)&&void 0!==A?A:e+O,D=null!==(x=null===E||void 0===E?void 0:E.maxWidth)&&void 0!==x?x:e+P,$=null!==(S=null===E||void 0===E?void 0:E.minWidthDim)&&void 0!==S?S:e+M,z=null!==(L=null===E||void 0===E?void 0:E.maxWidthDim)&&void 0!==L?L:e+F,U=(n?1:0)+(r?1:0)+(o?2:0),q=U>0?Math.floor(24/U):24;return a.createElement(m.A,{gutter:b,style:f,className:"form-size-inputs"},n&&a.createElement(u.A,{span:q},a.createElement(p.A,{trigger:["hover"],title:T.width,placement:"bottom"},a.createElement(d.A.Item,{name:j,className:y},a.createElement(h.A,{min:0,max:i,placeholder:T.width,prefix:a.createElement(l.A,{icon:"ColumnWidthOutlined"}),addonAfter:s?a.createElement(d.A.Item,{name:H,noStyle:!0},s):"px"})))),r&&a.createElement(u.A,{span:q},a.createElement(p.A,{trigger:["hover"],title:T.height,placement:"bottom"},a.createElement(d.A.Item,{name:V,className:y},a.createElement(h.A,{min:0,placeholder:T.height,prefix:a.createElement(l.A,{icon:"ColumnHeightOutlined"}),addonAfter:"px"})))),o&&a.createElement(a.Fragment,null,a.createElement(u.A,{span:q},a.createElement(p.A,{trigger:["hover"],title:T.minWidth,placement:"bottom"},a.createElement(d.A.Item,{name:W,className:y},a.createElement(h.A,{min:0,placeholder:T.minWidth,prefix:a.createElement(l.A,{icon:"MinWidth"}),addonAfter:c?a.createElement(d.A.Item,{name:$,noStyle:!0},c):"px"})))),a.createElement(u.A,{span:q},a.createElement(p.A,{trigger:["hover"],title:T.maxWidth,placement:"bottom"},a.createElement(d.A.Item,{name:D,className:y},a.createElement(h.A,{min:0,placeholder:T.maxWidth,prefix:a.createElement(l.A,{icon:"MaxWidth"}),addonAfter:g?a.createElement(d.A.Item,{name:z,noStyle:!0},g):"px"}))))))};y.displayName="FormSizeInputs";const E=y;var C=n(41408),_=n(85537);const k={rtlLabel:"Right to left",ltrLabel:"Left to right"},w=({value:e,onChange:t,labels:n={},disabled:r=!1,size:i,strokeWidth:s,tooltipPlacement:c="top",className:d})=>{const m={...k,...n},[u,h]=(0,a.useState)(null!==e&&void 0!==e?e:"");(0,a.useEffect)(()=>{h(null!==e&&void 0!==e?e:"")},[e]);const g=e=>{const n=e===u?"":e;h(n),null===t||void 0===t||t(n)},b=a.createElement(C.A.Group,{disabled:r,value:u,className:"em-form-direction-control"},a.createElement(_.A,{size:8},a.createElement(p.A,{placement:c,title:m.rtlLabel},a.createElement(C.A.Button,{value:"rtl","aria-label":m.rtlLabel,onClick:()=>g("rtl")},a.createElement(l.A,{icon:"ArrowLeftOutlined",size:i,strokeWidth:s,"aria-hidden":!0}))),a.createElement(p.A,{placement:c,title:m.ltrLabel},a.createElement(C.A.Button,{value:"ltr","aria-label":m.ltrLabel,onClick:()=>g("ltr")},a.createElement(l.A,{icon:"ArrowRightOutlined",size:i,strokeWidth:s,"aria-hidden":!0}))))),f=d?a.createElement("div",{className:o()("em-form-direction-control",d)},b):b;return a.createElement(a.Fragment,null,f)};w.displayName="FormDirectionControl";const A=w,x=({children:e,directionControl:t,gutter:n=20,span:r=12,secondaryColumnAlign:i="right",className:l})=>{const s=`em-form-display-control__secondary--align-${i}`;return a.createElement(m.A,{gutter:n,className:o()("em-form-display-control",l)},a.createElement(u.A,{span:r},e),t&&a.createElement(u.A,{span:r,className:s},t))};x.displayName="FormDisplayControl";const S=x;var L=n(43167),T=n(61503),B=n(13763);const I={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"},R=({form:e,namePrefix:t="",typeOfForm:n="desktop",fieldStructure:r="nested",borderValues:i,fieldNames:s,usedColors:c,labels:h={}})=>{var g,b;const f={...I,...h},{token:v}=(0,L.rd)(),y="flat"===r,E=y||"mobile"===n,k=y?null!==(g=null===s||void 0===s?void 0:s.position)&&void 0!==g?g:"mobileBorderPosition":t+(E?"mobileBorderPosition":"borderPosition"),w=d.A.useWatch(k,e),A=E?"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 R,N,O,P,M;if(y){var F,j,V;R=null!==(F=null===s||void 0===s?void 0:s.color)&&void 0!==F?F:"mobileBorderColor",N=null!==(j=null===s||void 0===s?void 0:s.width)&&void 0!==j?j:"mobileBorderWidth",O=null!==(V=null===s||void 0===s?void 0:s.style)&&void 0!==V?V:"mobileBorderStyle",P={borderTop:"top",borderLeft:"left",borderAll:"all",borderRight:"right",borderBottom:"bottom"},M=e=>!!S(null===i||void 0===i?void 0:i[P[e]])}else{var H;const e=w?String(w).replace(t,""):A,n={borderAll:t+(E?"mobileBorderAll":"borderAll"),borderTop:t+(E?"mobileBorderTop":"borderTop"),borderBottom:t+(E?"mobileBorderBottom":"borderBottom"),borderRight:t+(E?"mobileBorderRight":"borderRight"),borderLeft:t+(E?"mobileBorderLeft":"borderLeft")},a=null!==(H=(E?{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!==H?H:"";R=[a,"color"],N=[a,"width"],O=[a,"style"],P=n,M=e=>!!S(x[n[e]])}const W=null!==(b=null===v||void 0===v?void 0:v.formItemMarginBottomXS)&&void 0!==b?b: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(d.A.Item,{name:R,className:"form-item-margin-xs"},a.createElement(B.A,{placeholder:f.color,usedColors:c,usedLabel:f.usedColors,recommendedLabel:f.recommendedColors})),a.createElement(d.A.Item,{name:N,className:"form-item-margin-xs"},a.createElement(T.A,{min:0,placeholder:f.width,addonAfter:"px"})),a.createElement(d.A.Item,{name:O,className:"form-item-margin-xs"},a.createElement(C.A.Group,null,a.createElement(_.A,{size:8},a.createElement(p.A,{placement:"bottom",title:f.none},a.createElement(C.A.Button,{value:"","aria-label":f.none},a.createElement(l.A,{icon:"CloseOutlined","aria-hidden":!0}))),a.createElement(p.A,{placement:"bottom",title:f.solid},a.createElement(C.A.Button,{value:"solid","aria-label":f.solid},a.createElement(l.A,{icon:"LineOutlined","aria-hidden":!0}))),a.createElement(p.A,{placement:"bottom",title:f.dashed},a.createElement(C.A.Button,{value:"dashed","aria-label":f.dashed},a.createElement(l.A,{icon:"DashOutlined","aria-hidden":!0}))),a.createElement(p.A,{placement:"bottom",title:f.dotted},a.createElement(C.A.Button,{value:"dotted","aria-label":f.dotted},a.createElement(l.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(C.A.Group,null,a.createElement(_.A,{size:W,direction:"vertical"},a.createElement(m.A,null,a.createElement(p.A,{placement:"top",title:f.above},a.createElement(C.A.Button,{value:P.borderTop,"aria-label":f.above,style:{margin:"auto"},className:o()("em-form-border-inputs__radio",{"em-form-border-inputs__radio--active":M("borderTop")})},a.createElement(l.A,{icon:"BorderTopOutlined","aria-hidden":!0})))),a.createElement(m.A,null,a.createElement(_.A,{size:W},a.createElement(p.A,{placement:"left",title:f.onLeft},a.createElement(C.A.Button,{value:P.borderLeft,"aria-label":f.onLeft,className:o()("em-form-border-inputs__radio",{"em-form-border-inputs__radio--active":M("borderLeft")})},a.createElement(l.A,{icon:"BorderLeftOutlined","aria-hidden":!0}))),a.createElement(p.A,{placement:"top",title:f.around},a.createElement(C.A.Button,{value:P.borderAll,"aria-label":f.around,className:o()("em-form-border-inputs__radio",{"em-form-border-inputs__radio--active":M("borderAll")})},a.createElement(l.A,{icon:"BorderOuterOutlined","aria-hidden":!0}))),a.createElement(p.A,{placement:"right",title:f.onRight},a.createElement(C.A.Button,{value:P.borderRight,"aria-label":f.onRight,className:o()("em-form-border-inputs__radio",{"em-form-border-inputs__radio--active":M("borderRight")})},a.createElement(l.A,{icon:"BorderRightOutlined","aria-hidden":!0}))))),a.createElement(m.A,null,a.createElement(p.A,{placement:"bottom",title:f.below},a.createElement(C.A.Button,{value:P.borderBottom,"aria-label":f.below,className:o()("em-form-border-inputs__radio",{"em-form-border-inputs__radio--active":M("borderBottom")}),style:{margin:"auto"}},a.createElement(l.A,{icon:"BorderBottomOutlined","aria-hidden":!0})))))))))};R.displayName="FormBorderInputs";const N=R,O={borderRadius:"Border radius",topLeft:"Top left corner",topRight:"Top right corner",bottomLeft:"Bottom left corner",bottomRight:"Bottom right corner",individualCorners:"Individual corner radii"},P=({namePrefix:e="",typeOfForm:t="desktop",oneBorderRadiusValue:n,onToggle:r,borderRadiusIcon:s,labels:c={},buttonClassName:g="selected-td-form__button",formItemClassName:b="form-item-margin-xs",fieldNames:f})=>{var v,y,E,C,k;const w={...O,...c},A="mobile"===t,x=A?"mobileBorderRadiusAll":"borderRadiusAll",S=A?"mobileBorderRadiusTopLeft":"borderRadiusTopLeft",L=A?"mobileBorderRadiusTopRight":"borderRadiusTopRight",T=A?"mobileBorderRadiusBottomRight":"borderRadiusBottomRight",B=A?"mobileBorderRadiusBottomLeft":"borderRadiusBottomLeft",I=e+(null!==(v=null===f||void 0===f?void 0:f.all)&&void 0!==v?v:x),R=e+(null!==(y=null===f||void 0===f?void 0:f.topLeft)&&void 0!==y?y:S),N=e+(null!==(E=null===f||void 0===f?void 0:f.topRight)&&void 0!==E?E:L),P=e+(null!==(C=null===f||void 0===f?void 0:f.bottomRight)&&void 0!==C?C:T),M=e+(null!==(k=null===f||void 0===f?void 0:f.bottomLeft)&&void 0!==k?k:B),F=null!==s&&void 0!==s?s:a.createElement(l.A,{icon:"RadiusUpleftOutlined"});return a.createElement(m.A,{gutter:10,className:"form-border-radius-inputs"},a.createElement(u.A,{span:12},a.createElement(_.A,{size:10,align:"start"},a.createElement(d.A.Item,{name:I},a.createElement(h.A,{min:0,placeholder:w.borderRadius,prefix:F,disabled:!n,addonAfter:"px"})))),a.createElement(u.A,{span:12},a.createElement(i.A,{"aria-label":w.individualCorners,className:o()(g,"form-border-radius-inputs__toggle",{[`${g}--active`]:!n,"form-border-radius-inputs__toggle--active":!n}),onClick:r},F)),a.createElement(u.A,null,a.createElement(m.A,{gutter:10,style:{marginTop:-10}},a.createElement(u.A,{span:12},a.createElement(p.A,{placement:"bottom",title:w.topLeft},a.createElement(d.A.Item,{hidden:n,name:R,className:b},a.createElement(h.A,{min:0,prefix:a.createElement(l.A,{icon:"RadiusUpleftOutlined"}),style:{minHeight:10},addonAfter:"px"}))),a.createElement(p.A,{placement:"bottom",title:w.bottomLeft},a.createElement(d.A.Item,{hidden:n,name:M},a.createElement(h.A,{min:0,prefix:a.createElement(l.A,{icon:"RadiusBottomleftOutlined"}),style:{minHeight:10},addonAfter:"px"})))),a.createElement(u.A,{span:12},a.createElement(p.A,{placement:"bottom",title:w.topRight},a.createElement(d.A.Item,{hidden:n,name:N,className:b},a.createElement(h.A,{min:0,prefix:a.createElement(l.A,{icon:"RadiusUprightOutlined"}),style:{minHeight:10},addonAfter:"px"}))),a.createElement(p.A,{placement:"bottom",title:w.bottomRight},a.createElement(d.A.Item,{hidden:n,name:P},a.createElement(h.A,{min:0,prefix:a.createElement(l.A,{icon:"RadiusBottomrightOutlined"}),style:{minHeight:10},addonAfter:"px"})))))))};P.displayName="FormBorderRadiusInputs";const M=P;var F=n(24503);const j={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"},V=({namePrefix:e="",typeOfForm:t="desktop",usedColors:n,labels:r={},formItemClassName:o="form-item-margin-xs",fieldNames:i})=>{var s,c,g,b,f,v;const y={...j,...r},E="mobile"===t,C=E?"mobileBoxShadowHOffset":"boxShadowHOffset",k=E?"mobileBoxShadowVOffset":"boxShadowVOffset",w=E?"mobileBoxShadowBlurRadius":"boxShadowBlurRadius",A=E?"mobileBoxShadowSpreadRadius":"boxShadowSpreadRadius",x=E?"mobileBoxShadowColor":"boxShadowColor",S=E?"mobileBoxShadowInset":"boxShadowInset",L=e+(null!==(s=null===i||void 0===i?void 0:i.hOffset)&&void 0!==s?s:C),T=e+(null!==(c=null===i||void 0===i?void 0:i.vOffset)&&void 0!==c?c:k),I=e+(null!==(g=null===i||void 0===i?void 0:i.blurRadius)&&void 0!==g?g:w),R=e+(null!==(b=null===i||void 0===i?void 0:i.spreadRadius)&&void 0!==b?b:A),N=e+(null!==(f=null===i||void 0===i?void 0:i.color)&&void 0!==f?f:x),O=e+(null!==(v=null===i||void 0===i?void 0:i.inset)&&void 0!==v?v:S);return a.createElement(m.A,{gutter:10,className:"form-box-shadow-inputs"},a.createElement(u.A,{span:12},a.createElement(p.A,{placement:"bottom",title:y.hOffset},a.createElement(d.A.Item,{name:L,className:o},a.createElement(h.A,{placeholder:y.hOffset,prefix:a.createElement(l.A,{icon:"SwapOutlined"}),addonAfter:"px"})))),a.createElement(u.A,{span:12},a.createElement(p.A,{placement:"bottom",title:y.vOffset},a.createElement(d.A.Item,{name:T,className:o},a.createElement(h.A,{placeholder:y.vOffset,prefix:a.createElement(l.A,{icon:"VerticalOffset"}),addonAfter:"px"})))),a.createElement(u.A,{span:12},a.createElement(p.A,{placement:"bottom",title:y.blurRadius},a.createElement(d.A.Item,{name:I,className:o},a.createElement(h.A,{min:0,placeholder:y.blurRadius,prefix:a.createElement(l.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:y.spreadRadius},a.createElement(d.A.Item,{name:R,className:o},a.createElement(h.A,{placeholder:y.spreadRadius,prefix:a.createElement(l.A,{icon:"ZoomOutMap"}),addonAfter:"px"})))),a.createElement(u.A,{span:12},a.createElement(_.A,{size:10,align:"start"},a.createElement(d.A.Item,{name:N},a.createElement(B.A,{usedColors:n,usedLabel:y.usedColors,recommendedLabel:y.recommendedColors})))),a.createElement(u.A,{span:12},a.createElement(p.A,{title:y.shadowDirection,key:"inset",placement:"bottom"},a.createElement(d.A.Item,{name:O,valuePropName:"value"},a.createElement(F.A,{style:{width:"100%"},options:[{label:y.outside,value:!1},{label:y.inside,value:!0}]})))))};V.displayName="FormBoxShadowInputs";const H=V,W=({name:e,tooltipTitle:t,icon:n,className:r})=>{var l;const s=d.A.useFormInstance(),c=null!==(l=d.A.useWatch(e,s))&&void 0!==l&&l;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(i.A,{type:"text",className:o()("form-style-toggle-btn","selected-td-form__button","selected-td-form__button_style",{"selected-td-form__button--active":c},r),onClick:()=>{var t;return s.setFieldValue(e,!(null!==(t=s.getFieldValue(e))&&void 0!==t&&t))}},n)))};W.displayName="FormStyleToggleButton";const D=W;var $=n(48077),z=n(31492);const U=({name:e,label:t,className:n})=>a.createElement(d.A.Item,{className:o()("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($.A,null)),a.createElement(z.A.Text,{className:"form-switch-row__label"},t)));U.displayName="FormSwitchRow";const q=U,Z=({name:e,label:t,usedColors:n,usedLabel:r,recommendedLabel:i,allowClear:l=!1,className:s})=>a.createElement("div",{className:o()("form-color-field",s)},a.createElement(z.A.Text,{type:"secondary",className:"form-color-field__label"},t),a.createElement(d.A.Item,{name:e,noStyle:!0},a.createElement(B.A,{className:"form-color-field__picker",allowClear:l,usedColors:n,usedLabel:r,recommendedLabel:i})));Z.displayName="FormColorField";const G=Z;var X=n(37266);const Y=e=>{var t;return null!==(t=e.parentNode)&&void 0!==t?t:document.body},K=({namePrefix:e,microLabel:t,usedColors:n,usedLabel:r,recommendedLabel:i,loadGoogleFonts:s,getPopupContainer:c=Y,formatLabels:g={},inputLabels:b={},className:f})=>{var v,y,E,C,_,k,w;const A={bold:null!==(v=g.bold)&&void 0!==v?v:"Strong ( Ctrl+B )",italic:null!==(y=g.italic)&&void 0!==y?y:"Italic ( Ctrl+I )",strikethrough:null!==(E=g.strikethrough)&&void 0!==E?E:"Strikethrough ( Alt+Shift+5 )",underline:null!==(C=g.underline)&&void 0!==C?C:"Underline ( Ctrl+U )"},x={fontSize:null!==(_=b.fontSize)&&void 0!==_?_:"Font size",lineHeight:null!==(k=b.lineHeight)&&void 0!==k?k:"Line height",textColor:null!==(w=b.textColor)&&void 0!==w?w:"Text color"};return a.createElement("div",{className:o()("form-typography-fields",f)},a.createElement("div",{className:"form-typography-fields__stack"},a.createElement(z.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(X.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(h.A,{min:8,max:90,placeholder:x.fontSize,prefix:a.createElement(l.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(h.A,{min:10,max:110,placeholder:x.lineHeight,prefix:a.createElement(l.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(B.A,{className:"form-typography-fields__color-picker",usedColors:n,usedLabel:r,recommendedLabel:i})))),a.createElement("div",{className:"form-typography-fields__fmt-btns"},a.createElement(D,{name:`${e}TextStrong`,tooltipTitle:A.bold,icon:a.createElement(l.A,{icon:"BoldOutlined",className:"selected-td-form__icon-radius"})}),a.createElement(D,{name:`${e}TextItalic`,tooltipTitle:A.italic,icon:a.createElement(l.A,{icon:"ItalicOutlined",className:"selected-td-form__icon-radius"})}),a.createElement(D,{name:`${e}TextStrikethrough`,tooltipTitle:A.strikethrough,icon:a.createElement(l.A,{icon:"StrikethroughOutlined",className:"selected-td-form__icon-radius"})}),a.createElement(D,{name:`${e}TextUnderline`,tooltipTitle:A.underline,icon:a.createElement(l.A,{icon:"UnderlineOutlined",className:"selected-td-form__icon-radius"})}))))};K.displayName="FormTypographyFields";const J=K;var Q=n(17142),ee=n(3327);function te({field:e,index:t,isOpen:n,onToggle:r,onRemove:s,canRemove:c,boundValueOptions:m,labels:u,getPopupContainer:h}){return a.createElement("div",{className:o()("form-options-list__option-block",n&&"form-options-list__option-block--open")},a.createElement("div",{className:o()("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:r},a.createElement("span",{className:"form-options-list__option-head-main"},a.createElement("span",null,u.itemTitle(t+1)),a.createElement(l.A,{icon:"DownOutlined",size:16,className:o()("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(i.A,{type:"text",icon:a.createElement(l.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(l.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:h}))))}const ne=({name:e,boundValueOptions:t,minItems:n=1,labels:r={},getPopupContainer:s,className:c})=>{var m,u,p,h,g,b,f,v;const[y,E]=(0,a.useState)(0),C={itemTitle:null!==(m=r.itemTitle)&&void 0!==m?m:e=>`Value ${e}`,headingLabel:null!==(u=r.headingLabel)&&void 0!==u?u:"Heading",valueLabel:null!==(p=r.valueLabel)&&void 0!==p?p:"Value",valueTooltip:null!==(h=r.valueTooltip)&&void 0!==h?h:null,addLabel:null!==(g=r.addLabel)&&void 0!==g?g:"Add value",removeTooltip:null!==(b=r.removeTooltip)&&void 0!==b?b:"Remove",headingPlaceholder:null!==(f=r.headingPlaceholder)&&void 0!==f?f:"Enter heading",valuePlaceholder:null!==(v=r.valuePlaceholder)&&void 0!==v?v:"Enter value"};return a.createElement("div",{className:o()("form-options-list",c)},a.createElement(d.A.List,{name:e},(e,{add:r,remove:o})=>a.createElement(a.Fragment,null,e.map((r,i)=>a.createElement(te,{key:r.key,field:r,index:i,isOpen:y===i,onToggle:()=>E(e=>e===i?-1:i),onRemove:()=>{o(r.name),E(e=>function(e,t){return e===t?Math.max(0,t-1):e>t?e-1:e}(e,i))},canRemove:e.length>n,boundValueOptions:t,labels:C,getPopupContainer:s})),a.createElement("div",{className:"form-options-list__add-wrap"},a.createElement(i.A,{type:"default",block:!0,className:"form-options-list__add-btn",icon:a.createElement(l.A,{icon:"PlusOutlined",size:16}),onClick:()=>{r({title:"",boundValue:void 0}),E(e.length)}},C.addLabel)))))};ne.displayName="FormOptionsList";const ae=ne},33367:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var a=n(1936),r=n(41408),o=n(85537),i=n(73974),l=n(26071),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:h=18,tooltipPlacement:g="bottom",className:b})=>{const f={...d,...u},[v,y]=(0,a.useState)(null!==e&&void 0!==e?e:"");(0,a.useEffect)(()=>{y(null!==e&&void 0!==e?e:"")},[e]);const E=e=>{const n=e===v?"":e;y(n),null===t||void 0===t||t(n)},C=a.createElement(r.A.Group,{disabled:n,value:v,className:"em-form-vertical-align-control"},a.createElement(o.A,{size:8},a.createElement(i.A,{placement:g,title:f.alignTop},a.createElement(r.A.Button,{value:"top","aria-label":f.alignTop,onClick:()=>E("top")},a.createElement(l.A,{icon:s?"NewVerticalAlignTop":"AlignVerticalTop",size:h,strokeWidth:m,"aria-hidden":!0}))),a.createElement(i.A,{placement:g,title:f.alignMiddle},a.createElement(r.A.Button,{value:"middle","aria-label":f.alignMiddle,onClick:()=>E("middle")},a.createElement(l.A,{icon:s?"NewVerticalAlignCenter":"AlignVerticalCenter",size:h,strokeWidth:m,"aria-hidden":!0}))),a.createElement(i.A,{placement:g,title:f.alignBottom},a.createElement(r.A.Button,{value:"bottom","aria-label":f.alignBottom,onClick:()=>E("bottom")},a.createElement(l.A,{icon:s?"NewVerticalAlignBottom":"AlignVerticalBottom",size:h,strokeWidth:m,"aria-hidden":!0})))));let _=C;return p&&(_=a.createElement(i.A,{placement:g,title:p},a.createElement("span",{style:{display:"inline-block"}},C))),b&&(_=a.createElement("div",{className:c()("em-form-vertical-align-control",b)},_)),a.createElement(a.Fragment,null,_)};m.displayName="FormVerticalAlignControl";const u=m},13763:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var a=n(1936),r=n(89197),o=n(92611),i=n(17142),l=n(77595),s=n(88145),c=n(6426),d=n(26071);const m={height:"auto"},u=["#000000","#595959","#BFBFBF","#E5E5E5","#F5F5F5","#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB"],p=(0,a.forwardRef)(({id:e,onChange:t,value:n,externalValue:p,placeholder:h="Select color",disabled:g=!1,usedColors:b=[],recommendedColors:f=u,getPopupContainer:v,allowClear:y=!0,placement:E="bottomLeft",usedLabel:C="Used",recommendedLabel:_="Recommended",className:k,style:w,showEyeDropper:A=!0},x)=>{const[S]=(0,a.useState)(()=>"function"===typeof globalThis.EyeDropper),L=(0,a.useRef)(null),T=(0,a.useRef)(p),B=(0,a.useCallback)(e=>{null===t||void 0===t||t(e)},[t]),I=(0,a.useCallback)(e=>{B(e.toHexString().toUpperCase())},[B]);(0,a.useEffect)(()=>{void 0!==p&&p!==T.current&&B(p),T.current=p},[p,B]);const R=(0,a.useCallback)(async()=>{const e=globalThis.EyeDropper;if(e)try{const t=await(new e).open();B(t.sRGBHex.toUpperCase())}catch{}},[B]),N=A&&S,O=(0,a.useMemo)(()=>[{label:C,colors:[...new Set(b)]},{label:_,colors:[...new Set(f)]}],[C,b,_,f]),P=(0,a.useCallback)((e,{components:{Picker:t,Presets:n}})=>a.createElement(l.A,{justify:"space-between",wrap:!1},a.createElement(s.A,{flex:"auto"},a.createElement("div",{className:"color-picker-input__panel-picker-stack"+(N?" color-picker-input__panel-picker-stack--dropper":"")},a.createElement(t,null),N?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(o.A,{type:"vertical",style:m}),a.createElement(s.A,{span:8},a.createElement(n,null))),[N,R]),M=(0,a.useCallback)(e=>{B(e.target.value)},[B]),F=!n,j=""===n||null==n?void 0:n;return a.createElement("div",{ref:x,className:["color-picker-input",k].filter(Boolean).join(" "),style:w},a.createElement("div",{className:"color-picker-input__control-wrap"+(F?" color-picker-input__empty":"")},a.createElement(r.A,{disabledAlpha:!0,disabledFormat:!0,format:"hex",defaultFormat:"hex",getPopupContainer:v,placement:E,autoAdjustOverflow:!1,className:"color-picker-input__btn-wrap",rootClassName:"verticalColorpicker",value:j,onChange:I,panelRender:P,disabled:g,presets:O}),F&&a.createElement("span",{className:"color-picker-input__dash","aria-hidden":!0}),a.createElement(i.A,{allowClear:y,id:e,disabled:g,className:"color-picker-input__control",placeholder:h,value:n,ref:L,onChange:M})))});p.displayName="ColorPickerInput";const h=p},37266:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var a=n(1936),r=n(36486),o=n(64668),i=n(47588);const l=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=>i.f5[e]).map(e=>({label:i.f5[e],value:i.f5[e]}))}))}const d=({value:e,onChange:t,textEditor:n=!1,safeFonts:d,googleFontsData:m,loadGoogleFonts:u,loading:p,getPopupContainer:h=l,style:g,placement:b="bottomRight",labels:f,filterOptions:v})=>{var y,E;const[C,_]=(0,a.useState)(),[k,w]=(0,a.useState)(e),[A,x]=(0,a.useState)(null),[S,L]=(0,a.useState)(!!u),T=(0,a.useMemo)(()=>({...i.xr,...f}),[f]),B=null!==(y=null===v||void 0===v?void 0:v.subsets)&&void 0!==y?y:i.It.subsets,I=null!==(E=null===v||void 0===v?void 0:v.maxPopularity)&&void 0!==E?E:i.It.maxPopularity,R=null!==d&&void 0!==d?d:i.Jn,N=null!==m&&void 0!==m?m:A,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:P,filteredSerif:M}=(0,a.useMemo)(()=>N?{filteredSansSerif:s(N.familyMetadataList,i.g4,B,I),filteredSerif:s(N.familyMetadataList,i.cP,B,I)}:{filteredSansSerif:[],filteredSerif:[]},[N,B,I]);(0,a.useEffect)(()=>{if(N){if(n&&e!==k)if(e)if(e[1]===i.g4){var t,a;_([i.Xr,i.g4,null!==(t=null===(a=P.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]===i.cP){var r,o;_([i.Xr,i.cP,null!==(r=null===(o=M.find(t=>(null===t||void 0===t?void 0:t.family.replace(/\s/g,""))===String(e[2]).replace(/\s/g,"")))||void 0===o?void 0:o.family)&&void 0!==r?r:"",String(e[3]).replace(/Italic/g," Italic")])}else e[0]!==i.Tg&&void 0!==C||_(e);else _([""]);else void 0===C&&k&&_(e);n||_(e),w(e)}},[e,N,n,k,C,P,M]);const F=(0,a.useMemo)(()=>c(P),[P]),j=(0,a.useMemo)(()=>c(M),[M]),V=(0,a.useMemo)(()=>{if(O)return[{label:a.createElement(o.A,{size:"small",style:{marginLeft:8}}),value:"loading",disabled:!0}];const e=[{label:T.safeFonts,value:i.Tg,children:R}];return N&&e.push({label:T.googleFonts,value:i.Xr,children:[{label:T.sansSerif,value:i.g4,children:F},{label:T.serif,value:i.cP,children:j}]}),e},[O,T,R,N,F,j]),H=(0,a.useCallback)((e,n)=>{const a=e.filter(e=>null!=e);null===t||void 0===t||t(a,n)},[t]),W=(0,a.useCallback)(e=>{var t,n;const a=l(e),r=null===h||void 0===h?void 0:h(e),o=null!==r&&void 0!==r?r:a,i=null===(t=e.ownerDocument)||void 0===t||null===(n=t.defaultView)||void 0===n?void 0:n.getComputedStyle(o);return null!=i&&("hidden"===i.overflowX||"clip"===i.overflowX||"hidden"===i.overflow||"clip"===i.overflow)?a:o},[h]);return a.createElement(r.A,{allowClear:!1,showSearch:!0,value:C,placement:b,popupClassName:"control-font-family-dropdown",options:V,getPopupContainer:W,onChange:H,style:g})};d.displayName="ControlFontFamily";const m=d},27496:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),r=n(61503);const o=a.forwardRef(({dragspeed:e=1,...t},n)=>{const[o,i]=(0,a.useState)(!1),[l,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=()=>i(!1),h=(0,a.useCallback)(n=>{if(o){const a=n.clientX-l;let r=(c||0)+a*e;r=Math.max(0,Math.round(r)),void 0!==t.max&&(r=Math.min(r,Number(t.max))),void 0!==t.min&&(r=Math.max(r,Number(t.min))),u(r),t.onChange&&t.onChange(r)}},[o,t.onChange,t.max,t.min,c,l,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",h),()=>{document.removeEventListener("mouseup",p),document.removeEventListener("mousemove",h)}),[o,l,c,h]),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")&&(i(!0),s(e.clientX),d(m))}},a.createElement(r.A,Object.assign({},t,{ref:n,value:m,className:"input-draggable"})),o&&a.createElement("div",{role:"none",className:"draggable-input-number-overlay",onMouseUp:p}))})},21419:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(1936),r=n(6619),o=n(17142),i=n(3327),l=n(85537),s=n(47588);const{Option:c}=i.A,d=({options:e,position:t,setPosition:n,unit:d,setUnit:m,placeholder:u="",prefix:p="",dropdownStyle:h})=>{const g=(0,a.useCallback)(t=>{if(!t)return!0;if(v(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]),b=(0,a.useCallback)(e=>{g(e)&&n(e)},[n,g]),f=(0,a.useCallback)(e=>{m(e)},[m]),v=e=>!!e&&(!isNaN(parseFloat(e))&&isFinite(parseFloat(e))),y={width:v(t)?s.yz:s.I1,height:s.jw},E={width:s.uZ},C=(0,a.useCallback)((e,t)=>{var n;if(v(e)){var a;const e=String(null!==(a=null===t||void 0===t?void 0:t.value)&&void 0!==a?a:"");return v(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())},[]),_=null!==e&&void 0!==e?e:[];return a.createElement(l.A.Compact,null,a.createElement(r.A,{className:"custom-autocomplete",onChange:b,options:_,style:y,filterOption:C,value:t,dropdownStyle:h},a.createElement(o.A,{value:t,placeholder:u,prefix:p,onKeyDown:t=>{if(!s.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()}})),v(t)&&a.createElement(i.A,{className:"select-after",style:E,value:d,onChange:f},a.createElement(c,{value:"px"},"px"),a.createElement(c,{value:"%"},"%")))}},42245:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(76626),o=n(47588);const i=({text:e,exceeded:t=!1,color:n=o.OT,exceededColor:i=o.MS,className:l,style:s,extra:c})=>{const d=["limits-counter-wrapper",l].filter(Boolean).join(" ");return a.createElement("div",{className:d,style:s},a.createElement(r.A,{bordered:!1,text:e,className:"limits-counter"+(t?" limits-counter--exceeded":""),color:t?i:n}),c&&a.createElement("div",{className:"limits-counter-extra"},c))}},1756:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1936),r=n(41408),o=n(73974);const i=({value:e,defaultValue:t="",onChange:n,options:i,tooltipPlacement:l="top",className:s})=>a.createElement(r.A.Group,{value:e,defaultValue:t,onChange:n,className:`radio-color-filter ${null!==s&&void 0!==s?s:""}`.trim()},i.map(e=>{var t;return a.createElement(o.A,{key:e.value,title:e.label,placement:l},a.createElement(r.A.Button,{value:e.value,className:e.colorClass},null!==(t=e.children)&&void 0!==t?t:e.label))}));i.displayName="RadioColorFilter";const l=i},43477:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var a=n(1936),r=n(6056),o=n.n(r),i=n(6426);const l=(0,a.createContext)(null),s=(0,a.forwardRef)(({children:e,className:t,style:n},r)=>a.createElement("span",{ref:r,className:o()("panel-form__header-title",t),style:n},e));s.displayName="PanelForm.HeaderTitle";const c=(0,a.forwardRef)(({children:e,title:t,extra:n,onClose:r,closeIcon:s,className:c,style:d},m)=>{const u=(0,a.useId)(),p=(0,a.useContext)(l);return(0,a.useEffect)(()=>{if(null!=t&&p)return p(u),()=>p("")},[t,u,p]),a.createElement("div",{ref:m,className:o()("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),r&&a.createElement(i.A,{type:"text",className:"panel-form__close-btn","aria-label":"Close",icon:s,onClick:r}))});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:r,style:i},l)=>{var s;return a.createElement("div",{ref:l,className:o()("panel-form__body",{"panel-form__body--no-scroll":n},r),style:i},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},r)=>a.createElement("div",{ref:r,className:o()("panel-form__footer",t),style:n},e));u.displayName="PanelForm.Footer";const p=(0,a.forwardRef)(({width:e,children:t,className:n,style:r,"aria-labelledby":i},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!==i&&void 0!==i?i:c||void 0;return a.createElement(l.Provider,{value:d},a.createElement("div",{ref:s,role:"region","aria-labelledby":p,className:o()("panel-form",m&&`panel-form--${e}`,n),style:{...u,...r}},t))});p.displayName="PanelForm";const h=Object.assign(p,{Header:c,HeaderTitle:s,Body:m,Footer:u})},89294:(e,t,n)=>{"use strict";var a=n(1936),r=n(67877);const o=e=>a.createElement(r.A,e);o.Ribbon=r.A.Ribbon,o.displayName="Badge"},32751:(e,t,n)=>{"use strict";n(1936)},26395:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(32380);const o=a.forwardRef((e,t)=>a.createElement(r.A,Object.assign({ref:t},e)));o.displayName="Card",o.Meta=r.A.Meta,o.Grid=r.A.Grid;const i=o},83675:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(12346);const o=e=>a.createElement(r.A,e);o.displayName="Comment";const i=o},79431:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c});var a=n(1936),r=n(60369),o=n(6056),i=n.n(o);const l={default:r.A.PRESENTED_IMAGE_DEFAULT,simple:r.A.PRESENTED_IMAGE_SIMPLE,hidden:a.createElement(a.Fragment,null)},s=({variant:e="default",image:t,description:n,className:o,...s})=>{const c=void 0!==t?t:l[e],d="hidden"===e?"":n;return a.createElement(r.A,Object.assign({image:c,description:d,className:i()("hidden"===e&&"empty--hidden",o)},s))};s.displayName="Empty";r.A.PRESENTED_IMAGE_DEFAULT,r.A.PRESENTED_IMAGE_SIMPLE;const c=s},84412:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(21261);const o=e=>a.createElement(r.A,e);o.PreviewGroup=r.A.PreviewGroup,o.displayName="Image";const i=o},17280:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,A:()=>l});var a=n(1936),r=n(3636);const o="list__item-borderless",i=e=>a.createElement(r.A,e);i.Item=r.A.Item;const l=i},54124:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(62131);const o=({status:e,centered:t,className:n,...o})=>{const i=function(e){if(null==e)return;const t=Number(e);return!Number.isNaN(t)&&[403,404,500].includes(t)?String(t):e}(e),l=[n,t?"result--centered":null].filter(Boolean).join(" ");return a.createElement(r.Ay,Object.assign({},o,{status:i,className:l||void 0}))};o.displayName="Result";const i=o},32632:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(66643);const o=e=>a.createElement(r.A,e);o.Button=r.A.Button,o.Avatar=r.A.Avatar,o.Input=r.A.Input,o.Image=r.A.Image,o.Node=r.A.Node;const i=o},36725:(e,t,n)=>{"use strict";n.d(t,{dK:()=>o.A,bs:()=>d,zj:()=>c,Ay:()=>u});var a=n(1936),r=n(77190),o=n(68076),i=n(6056),l=n.n(i),s=n(26071);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(r.A,e);m.Container=({className:e,children:t,...n})=>a.createElement("div",Object.assign({className:l()(d.container,e)},n),t),m.PaginationWrapper=({className:e,children:t,...n})=>a.createElement("div",Object.assign({className:l()(d.paginationWrapper,e)},n),t),m.ColumnHeader=({label:e,isActive:t=!1,isAsc:n=!1,onClick:r,icon:o})=>a.createElement("div",{className:d.columnHeader},a.createElement("span",{className:d.columnHeaderLabel},e),a.createElement("span",{className:l()(d.filterIcon,{[`${d.filterIcon}--active`]:t,[`${d.filterIcon}--asc`]:t&&n,[`${d.filterIcon}--desc`]:t&&!n}),onClick:e=>{e.stopPropagation(),null===r||void 0===r||r()},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),null===r||void 0===r||r())},role:"button",tabIndex:0},null!==o&&void 0!==o?o: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:()=>o,A:()=>i});var a=n(1936),r=n(50186);const o=({text:e,children:t,...n})=>a.createElement(r.A.CheckableTag,n,t||e||""),i=({text:e,children:t,...n})=>a.createElement(r.A,n,t||e||"")},6619:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(1974);const o=e=>e.parentNode,i=a.forwardRef(({getPopupContainer:e=o,...t},n)=>a.createElement(r.A,Object.assign({ref:n,getPopupContainer:e},t)))},36486:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1936),r=n(80782);const o=e=>e.parentNode,i=a.forwardRef(({getPopupContainer:e=o,...t},n)=>a.createElement(r.A,Object.assign({ref:n,getPopupContainer:e},t)));i.SHOW_PARENT=r.A.SHOW_PARENT,i.SHOW_CHILD=r.A.SHOW_CHILD;const l=i},27699:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),r=n(77550);const o=({children:e,onCheckedChange:t,onChange:n,loading:o=!1,disabled:i,...l})=>a.createElement(r.A,Object.assign({},l,{disabled:i||o,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:()=>i});var a=n(1936),r=n(45331);const o=e=>a.createElement(r.A,e);o.displayName="ColorPicker";const i=o},72629:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(71364);const o=a.forwardRef((e,t)=>a.createElement(r.A,Object.assign({ref:t},e)));o.displayName="DatePicker";const i=o},16633:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(92416);n(54529);const r=a.A},17142:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1936),r=n(92927),o=n(51913);const i=a.forwardRef((e,t)=>a.createElement(r.A,Object.assign({ref:t},e)));i.TextArea=r.A.TextArea,i.Password=o.A,i.Search=r.A.Search,i.Group=r.A.Group;const l=i},61503:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(98489);const o=a.forwardRef((e,t)=>a.createElement(r.A,Object.assign({ref:t},e)));o.displayName="InputNumber";const i=o},13724:(e,t,n)=>{"use strict";n(1936);n(92927).A.OTP},51913:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),r=n(92927);const o=a.forwardRef((e,t)=>a.createElement(r.A.Password,Object.assign({ref:t},e)))},41408:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(1936),r=n(83215),o=n(6056),i=n.n(o);const l=({className:e,...t})=>a.createElement(r.Ay.Group,Object.assign({className:i()("em-radio",e)},t));l.displayName="Radio.Group";const s=Object.assign(e=>a.createElement(r.Ay,Object.assign({className:i()("em-radio",e.className)},e)),{Group:l,Button:r.Ay.Button});s.displayName="Radio";const c=s},84631:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),r=n(92927);const o=a.forwardRef((e,t)=>a.createElement(r.A.Search,Object.assign({ref:t},e)))},3327:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1936),r=n(5464);const o=e=>e.parentNode,i=a.forwardRef(({getPopupContainer:e=o,...t},n)=>a.createElement(r.A,Object.assign({ref:n,getPopupContainer:e},t)));i.Option=r.A.Option,i.OptGroup=r.A.OptGroup;const l=i},48077:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(1936),r=n(35711),o=n(6056),i=n.n(o),l=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:o="default",labelStyle:c,labelClassName:d,id:m,...u},p)=>{const h=(0,a.useId)(),g=null!==m&&void 0!==m?m:h,b="small"===o?"ant-form-item-switch-label-small":"ant-form-item-switch-label",f=a.createElement(r.A,Object.assign({ref:p,id:n?g:m,className:i()(s[e],t)},u));return n?a.createElement(l.A,{size:8,align:"baseline"},f,a.createElement("div",{className:i()(b,d),style:c},a.createElement("label",{htmlFor:g},n))):f});c.displayName="Switch";const d=c},67393:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),r=n(92927);const o=a.forwardRef((e,t)=>a.createElement(r.A.TextArea,Object.assign({ref:t},e)))},40852:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(22531);const o=e=>a.createElement(r.A,e);o.Dragger=r.A.Dragger,o.displayName="Upload";const i=o},46007:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(28378);const o=e=>a.createElement(r.A,e);o.displayName="Alert";const i=o},33836:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(1936),r=n(51114),o=n(6056),i=n.n(o);const l=({className:e,centered:t=!0,rootClassName:n,...o})=>a.createElement(r.A,Object.assign({className:i()("em-modal",e),centered:t,rootClassName:i()("blocks-app",n)},o));l.displayName="Modal";const s=l},8461:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(1936),r=n(85562),o=n(6056),i=n.n(o);const l=({classNames:e,...t})=>{const n="object"===typeof e&&null!==e?{...e,root:i()("em-popconfirm",e.root)}:{root:"em-popconfirm"};return a.createElement(r.A,Object.assign({classNames:n},t))};l.displayName="Popconfirm";const s=l},64668:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1936),r=n(52225),o=n(26071);const i={small:16,default:24,large:48},l=({indicator:e,size:t="default",...n})=>{const l=a.createElement(o.A,{icon:"LoadingOutlined",style:{fontSize:i[t]||24},spin:!0});return a.createElement(r.A,Object.assign({indicator:null!==e&&void 0!==e?e:l,size:t},n))}},73974:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),r=n(236);const o=a.forwardRef((e,t)=>a.createElement(r.A,Object.assign({ref:t},e)))},13419:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(97508);const o=e=>a.createElement(r.A,e);o.displayName="App",o.useApp=r.A.useApp;const i=o},6426:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),r=n(59878);const o=a.forwardRef((e,t)=>a.createElement(r.Ay,Object.assign({ref:t},e)))},26071:(e,t,n)=>{"use strict";n.d(t,{A:()=>Fs});var a={};n.r(a),n.d(a,{AddImage:()=>Pe,AddSlide:()=>lt,AppstoreAddOutlined:()=>Ae,AppstoreOutlined:()=>Se,BgPositionHorizontal:()=>y,BgPositionVertical:()=>C,Blur:()=>V,BorderOuterOutlined:()=>ke,BorderRadius:()=>St,BuildOutlined:()=>Te,Button:()=>We,ChatGpt:()=>c,CheckCircleOutlined:()=>Ce,ClearChat:()=>tt,CloseAll:()=>mt,CloseOutlined:()=>Ne,CloseTag:()=>ct,Colorize:()=>Ue,CreateBlock:()=>Tt,Crescent:()=>P,DarkWhite:()=>p,DesignerMode:()=>Qe,Drop:()=>m,EditorMode:()=>Ke,ElamaLogo:()=>Ut,ElementListOL:()=>U,ElementTextAI:()=>K,EmailConfirmation:()=>Ve,Eyedropper:()=>Ze,FolderOpen:()=>At,GenerationAI:()=>oe,GroupArrow:()=>pt,Import:()=>ae,LandscapeView:()=>T,LayoutCol1:()=>It,LayoutCol2:()=>Nt,LayoutCol2WideLeft:()=>Pt,LayoutCol2WideRight:()=>Ft,LayoutCol3:()=>Vt,LayoutCol4:()=>Wt,MaxWidth:()=>f,MergeTags:()=>Fe,MinWidth:()=>g,MixedView:()=>S,NewEmail:()=>te,NewVerticalAlignBottom:()=>Ct,NewVerticalAlignCenter:()=>yt,NewVerticalAlignTop:()=>kt,OrderedListOutlined:()=>Z,PaddingBottom:()=>ge,PaddingLeft:()=>fe,PaddingLeftRight:()=>ce,PaddingRight:()=>ye,PaddingSwitcher:()=>me,PaddingTop:()=>pe,PaddingTopBottom:()=>le,Paragraph:()=>$,PortraitView:()=>I,Reload:()=>ot,Replacer:()=>Xe,SaveBlock:()=>$t,SearchOutlined:()=>Ie,SquareView:()=>N,Subscript:()=>gt,Superscript:()=>ft,Table:()=>$e,Typograf:()=>Q,UnorderedListOutlined:()=>X,UpTo:()=>k,VerticalOffset:()=>A,Vimeo:()=>F,WebHook:()=>at,ZoomOutMap:()=>W});var r={};n.r(r),n.d(r,{AimOutlined:()=>Dr,ArrowLeftAntd:()=>Ca,ArrowLeftOutlined:()=>_a,ArrowRightOutlined:()=>ka,BoldOutlined:()=>za,BorderBottomOutlined:()=>tr,BorderLeftOutlined:()=>nr,BorderOuterOutlined:()=>Ja,BorderRightOutlined:()=>er,BorderTopOutlined:()=>Qa,BugOutlined:()=>zr,BuildOutlined:()=>$r,CalendarOutlined:()=>Wr,CheckCircleFilled:()=>mr,CheckCircleOutlined:()=>ur,CheckOutlined:()=>Wa,CloseCircleFilled:()=>pr,CloseOutlined:()=>Da,ColumnHeightOutlined:()=>Ka,ColumnWidthOutlined:()=>Ya,CommentOutlined:()=>Nr,CopyOutlined:()=>ja,CreditCardOutlined:()=>Ur,DashOutlined:()=>sr,DeleteOutlined:()=>Fa,DesktopOutlined:()=>Vr,EditOutlined:()=>Ma,EllipsisOutlined:()=>Ra,ExclamationCircleOutlined:()=>hr,EyeInvisibleOutlined:()=>Cr,FileImageOutlined:()=>wr,FileOutlined:()=>_r,FilePdfOutlined:()=>Ar,FileTextOutlined:()=>kr,FileWordOutlined:()=>xr,FileZipOutlined:()=>Sr,FolderOutlined:()=>Lr,FontSizeOutlined:()=>Ga,HomeOutlined:()=>qr,InboxOutlined:()=>Tr,InfoCircleOutlined:()=>gr,ItalicOutlined:()=>Ua,LineHeightOutlined:()=>Xa,LineOutlined:()=>lr,LinkOutlined:()=>Br,LoadingOutlined:()=>dr,LockOutlined:()=>yr,LoginOutlined:()=>wa,LogoutOutlined:()=>Aa,MailOutlined:()=>Ir,MenuFoldOutlined:()=>Ta,MenuOutlined:()=>La,MenuUnfoldOutlined:()=>Ba,MinusOutlined:()=>Ha,MobileOutlined:()=>Hr,MoreOutlined:()=>Ia,PhoneOutlined:()=>Rr,PicLeftOutlined:()=>Oa,PlayCircleOutlined:()=>Fr,PlusOutlined:()=>Va,RadiusBottomleftOutlined:()=>or,RadiusBottomrightOutlined:()=>ir,RadiusUpleftOutlined:()=>ar,RadiusUprightOutlined:()=>rr,ReloadOutlined:()=>Zr,RightCircleOutlined:()=>jr,RightSquareOutlined:()=>Gr,RollbackOutlined:()=>xa,SettingOutlinedAntd:()=>Xr,SkypeOutlined:()=>Or,SmallDashOutlined:()=>cr,SnippetsOutlined:()=>$a,SplitCellsOutlined:()=>Pa,StrikethroughOutlined:()=>Za,SwapOutlined:()=>Sa,UnderlineOutlined:()=>qa,UnlockOutlined:()=>Er,UnorderedListOutlined:()=>Na,UserAddOutlined:()=>fr,UserOutlined:()=>br,UsergroupAddOutlined:()=>vr,VideoCameraOutlined:()=>Pr,YoutubeOutlined:()=>Mr});var o={};n.r(o),n.d(o,{AI:()=>Zl,AMP:()=>Gl,AlignCenterOutlined:()=>al,AlignHorizontalCenter:()=>ll,AlignHorizontalLeft:()=>il,AlignHorizontalRight:()=>sl,AlignLeftOutlined:()=>nl,AlignRightOutlined:()=>rl,AlignVerticalBottom:()=>ml,AlignVerticalCenter:()=>dl,AlignVerticalTop:()=>cl,Anchor:()=>Hi,AnnotationQuestionIcon:()=>_s,ArrowLeftOutlined:()=>fl,AtSignIcon:()=>ls,Atom:()=>gl,AutoMode:()=>Wl,BarChart03Icon:()=>Ns,BellRinging04Icon:()=>ks,Block:()=>hl,CheckCircleVerified:()=>zl,Close:()=>yl,CloudDownloadOutlined:()=>Fl,CloudUploadOutlined:()=>Ml,Code:()=>ql,CodeBrowserIcon:()=>ss,Column:()=>ul,CommentOutlined:()=>ts,Copy06Icon:()=>cs,CopyOutlined:()=>kl,CreditCard02Icon:()=>ws,DarkMode:()=>Hl,DeleteOutlined:()=>wl,DotsHoriz:()=>Ql,DotsVerticalIcon:()=>ds,DownOutlined:()=>El,Edit:()=>_l,ElementAccordion:()=>el,ElementButton:()=>$i,ElementCarousel:()=>tl,ElementCountdown:()=>Ki,ElementDivider:()=>Gi,ElementForm:()=>Qi,ElementImage:()=>zi,ElementImageAI:()=>Ui,ElementListUL:()=>Zi,ElementSocial:()=>Xi,ElementSpacer:()=>qi,ElementTable:()=>Yi,ElementText:()=>Wi,ElementTitle:()=>Di,ElementVideo:()=>Ji,Email:()=>Xl,EyeOutlined:()=>Rl,FileQuestion02Icon:()=>As,FlipBackwardIcon:()=>ms,FolderIcon:()=>us,FolderPlusIcon:()=>xs,GoToParent:()=>vl,Grid01Icon:()=>ps,Group:()=>pl,HistoryOutlined:()=>Bl,Image:()=>Ul,ImageAdd:()=>Sl,ImageUserIcon:()=>hs,InfoCircleIcon:()=>gs,Justify:()=>ol,LifeBuoy02Icon:()=>Ss,LightMode:()=>Vl,ListViewIcon:()=>Os,Lock:()=>Dl,LogOut01Icon:()=>Ls,MessageChatSquareIcon:()=>Ts,PanelLeft:()=>bl,PlusCircleOutlined:()=>xl,PlusIcon:()=>Bs,RedoOutlined:()=>Tl,RefreshCcw05Icon:()=>Is,RightOutlined:()=>Cl,Rocket02Icon:()=>Rs,SaveOutlined:()=>Al,SearchSmIcon:()=>bs,SendOutlined:()=>Nl,Server05Icon:()=>fs,SettingOutlined:()=>es,Settings04Icon:()=>vs,ShareAltOutlined:()=>Ol,ShieldTickIcon:()=>ys,SliderAdaptive:()=>os,SliderBlocks:()=>rs,SliderGroup:()=>ns,SliderMagic:()=>is,SliderTemplates:()=>as,Speed:()=>Kl,Styles:()=>Jl,Sun:()=>jl,SyncOutlined:()=>Il,Target:()=>Yl,UnLock:()=>$l,UndoOutlined:()=>Ll,User03Icon:()=>Es,Users02Icon:()=>Cs,Web:()=>Pl});var i=n(1936),l=n(58937);const s=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"chat-gpt",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),c=e=>i.createElement(l.A,Object.assign({component:s},e)),d=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"drop-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),m=e=>i.createElement(l.A,Object.assign({component:d},e)),u=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"dark-white",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),p=e=>i.createElement(l.A,Object.assign({component:u},e)),h=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"min-width-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"}),i.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"}),i.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"}),i.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"})),g=e=>i.createElement(l.A,Object.assign({component:h},e)),b=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"max-width-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"}),i.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"}),i.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"})),f=e=>i.createElement(l.A,Object.assign({component:b},e)),v=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"bg-position-horizontal",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.createElement("g",null,i.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"}),i.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"}),i.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"}))),y=e=>i.createElement(l.A,Object.assign({component:v},e)),E=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"bg-position-vertical",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.createElement("g",null,i.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"}),i.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"}),i.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"}))),C=e=>i.createElement(l.A,Object.assign({component:E},e)),_=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"up-to-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.createElement("g",null,i.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"}),i.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"}))),k=e=>i.createElement(l.A,Object.assign({component:_},e)),w=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"vertical-offset-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),A=e=>i.createElement(l.A,Object.assign({component:w},e)),x=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"mixed-view-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"}),i.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"}),i.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"})),S=e=>i.createElement(l.A,Object.assign({component:x},e)),L=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"landscape-view",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),T=e=>i.createElement(l.A,Object.assign({component:L},e)),B=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"portrait-view",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),I=e=>i.createElement(l.A,Object.assign({component:B},e)),R=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"square-view",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),N=e=>i.createElement(l.A,Object.assign({component:R},e)),O=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"crescent-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),P=e=>i.createElement(l.A,Object.assign({component:O},e)),M=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"vimeo-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),F=e=>i.createElement(l.A,Object.assign({component:M},e)),j=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"blur-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),V=e=>i.createElement(l.A,Object.assign({component:j},e)),H=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"zoom-out-map",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),W=e=>i.createElement(l.A,Object.assign({component:H},e)),D=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"paragraph-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),$=e=>i.createElement(l.A,Object.assign({component:D},e)),z=()=>i.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-list-ol",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),U=e=>i.createElement(l.A,Object.assign({component:z},e)),q=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M14 4L8 4M14 12L8 12M14 8L8 8",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),i.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"}),i.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"})),Z=e=>i.createElement(l.A,Object.assign({component:q},e)),G=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.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"})),X=e=>i.createElement(l.A,Object.assign({component:G},e)),Y=()=>i.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-text-ai",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.createElement("path",{d:"M4.375 22.0865V20.2115H18.1249V22.0865H4.375ZM4.375 15.9807V14.1058H25.6249V15.9807H4.375ZM4.375 9.87497V8H11V9.87497H4.375Z"}),i.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"}),i.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"}),i.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"}),i.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"})),K=e=>i.createElement(l.A,Object.assign({component:Y},e)),J=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"typograf-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"}),i.createElement("path",{d:"M12 6.43338L11.1167 9.98246H9.94694L11.069 6.43338H12ZM9.58089 6.43338L8.72148 9.98246H7.52784L8.6419 6.43338H9.58089Z"})),Q=e=>i.createElement(l.A,Object.assign({component:J},e)),ee=()=>i.createElement("svg",{width:"42",height:"43",viewBox:"0 0 42 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("rect",{x:"0.00830078",y:"0.173828",width:"42",height:"42",rx:"21",fill:"#4597F7"}),i.createElement("g",{clipPath:"url(#clip0_2193_1178)"},i.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"}),i.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"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_2193_1178"},i.createElement("rect",{width:"24",height:"24",fill:"white",transform:"translate(9.0083 9.17383)"})))),te=e=>i.createElement(l.A,Object.assign({component:ee},e)),ne=()=>i.createElement("svg",{width:"42",height:"43",viewBox:"0 0 42 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("rect",{x:"0.00830078",y:"0.173828",width:"42",height:"42",rx:"21",fill:"#6A32C9"}),i.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"})),ae=e=>i.createElement(l.A,Object.assign({component:ne},e)),re=()=>i.createElement("svg",{width:"42",height:"43",viewBox:"0 0 42 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("rect",{x:"0.00830078",y:"0.173828",width:"42",height:"42",rx:"21",fill:"#72C240"}),i.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"}),i.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"}),i.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"}),i.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"})),oe=e=>i.createElement(l.A,Object.assign({component:re},e)),ie=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-top-bottom-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},i.createElement("path",{d:"M7.43866e-05 1.03733V0L12 0.0407197V1.07805L7.43866e-05 1.03733ZM0 11.9593V10.922L12 10.9627V12L0 11.9593Z"}),i.createElement("rect",{x:"3.5",y:"3.5",width:"5",height:"5",fill:"none",stroke:"currentColor"})),le=e=>i.createElement(l.A,Object.assign({component:ie},e)),se=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-left-right-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},i.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"}),i.createElement("rect",{x:"8.5",y:"3.5",width:"5",height:"5",transform:"rotate(90 8.5 3.5)",fill:"none",stroke:"currentColor"})),ce=e=>i.createElement(l.A,Object.assign({component:se},e)),de=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-switcher",fill:"currentColor",width:"1em",height:"1em","aria-hidden":"true"},i.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"}),i.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"})),me=e=>i.createElement(l.A,Object.assign({component:de},e)),ue=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-top-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},i.createElement("path",{d:"M0 1.04086V0L11.9999 0.0408583V1.08172L0 1.04086Z"}),i.createElement("rect",{x:"3.5",y:"3.5",width:"5",height:"5",fill:"none",stroke:"currentColor"})),pe=e=>i.createElement(l.A,Object.assign({component:ue},e)),he=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-bottom-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},i.createElement("path",{d:"M0 10.9591V12L11.9999 11.9591V10.9183L0 10.9591Z"}),i.createElement("rect",{x:"0.5",y:"-0.5",width:"5",height:"5",transform:"matrix(1 0 0 -1 3 8)",fill:"none",stroke:"currentColor"})),ge=e=>i.createElement(l.A,Object.assign({component:he},e)),be=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-left-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},i.createElement("path",{d:"M-8.67844e-05 -4.54974e-08L1.04077 0L0.999913 12L-0.0409456 12L-8.67844e-05 -4.54974e-08Z"}),i.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=>i.createElement(l.A,Object.assign({component:be},e)),ve=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-right-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},i.createElement("path",{d:"M12.0001 -4.54974e-08L10.9592 0L11.0001 12L12.0409 12L12.0001 -4.54974e-08Z"}),i.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"})),ye=e=>i.createElement(l.A,Object.assign({component:ve},e)),Ee=()=>i.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"check-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"}),i.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"})),Ce=e=>i.createElement(l.A,Object.assign({component:Ee},e)),_e=()=>i.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"border-outer",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),ke=e=>i.createElement(l.A,Object.assign({component:_e},e)),we=()=>i.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"appstore-add",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.createElement("defs",null,i.createElement("style",null)),i.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"})),Ae=e=>i.createElement(l.A,Object.assign({component:we},e)),xe=()=>i.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"appstore",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),Se=e=>i.createElement(l.A,Object.assign({component:xe},e)),Le=()=>i.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"build",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),Te=e=>i.createElement(l.A,Object.assign({component:Le},e)),Be=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"search-outlined",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),Ie=e=>i.createElement(l.A,Object.assign({component:Be},e)),Re=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"close-outlined",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),Ne=e=>i.createElement(l.A,Object.assign({component:Re},e)),Oe=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"add-image",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),Pe=e=>i.createElement(l.A,Object.assign({component:Oe},e)),Me=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"merge-tags",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),Fe=e=>i.createElement(l.A,Object.assign({component:Me},e)),je=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"email-confirmation",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),Ve=e=>i.createElement(l.A,Object.assign({component:je},e)),He=()=>i.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"button",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),We=e=>i.createElement(l.A,Object.assign({component:He},e)),De=()=>i.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"table",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),$e=e=>i.createElement(l.A,Object.assign({component:De},e)),ze=()=>i.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"colorize",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),Ue=e=>i.createElement(l.A,Object.assign({component:ze},e)),qe=e=>i.createElement("svg",Object.assign({},e,{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","data-icon":"eyedropper"}),i.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"})),Ze=e=>i.createElement(l.A,Object.assign({component:qe},e)),Ge=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"replacer",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"}),i.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"})),Xe=e=>i.createElement(l.A,Object.assign({component:Ge},e)),Ye=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"editor-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),Ke=e=>i.createElement(l.A,Object.assign({component:Ye},e)),Je=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"designer-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),Qe=e=>i.createElement(l.A,Object.assign({component:Je},e)),et=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"clear-chat",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.createElement("path",{d:"M0 9.5V8.33327H9.33333V9.5H0ZM1.33333 6.58327V5.41672H10.6667V6.58327H1.33333ZM2.66667 3.66672V2.5H12V3.66672H2.66667Z"})),tt=e=>i.createElement(l.A,Object.assign({component:et},e)),nt=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"webhook",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),at=e=>i.createElement(l.A,Object.assign({component:nt},e)),rt=()=>i.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"reload",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),ot=e=>i.createElement(l.A,Object.assign({component:rt},e)),it=()=>i.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"add-slide",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},i.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"})),lt=e=>i.createElement(l.A,Object.assign({component:it},e)),st=()=>i.createElement("svg",{width:"18",height:"19",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("rect",{x:"0.371338",y:"0.878906",width:"17.29",height:"17.29",rx:"8.645",fill:"white"}),i.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"})),ct=e=>i.createElement(l.A,Object.assign({component:st},e)),dt=()=>i.createElement("svg",{width:"18",height:"19",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("rect",{x:"0.371338",y:"0.878906",width:"17.29",height:"17.29",rx:"8.645",fill:"#1F1F1F"}),i.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"})),mt=e=>i.createElement(l.A,Object.assign({component:dt},e)),ut=()=>i.createElement("svg",{width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.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"})),pt=e=>i.createElement(l.A,Object.assign({component:ut},e)),ht=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 -960 960 960",width:"1em",fill:"currentColor"},i.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"})),gt=e=>i.createElement(l.A,Object.assign({component:ht},e)),bt=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 -960 960 960",width:"1em",fill:"currentColor"},i.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"})),ft=e=>i.createElement(l.A,Object.assign({component:bt},e)),vt=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",style:{overflow:"visible"}},i.createElement("g",{transform:"translate(-5.5, -4.5)"},i.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"}))),yt=e=>i.createElement(l.A,Object.assign({component:vt},e)),Et=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",style:{overflow:"visible"}},i.createElement("g",{transform:"translate(-5.5, -4.5)"},i.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"}))),Ct=e=>i.createElement(l.A,Object.assign({component:Et},e)),_t=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",style:{overflow:"visible"}},i.createElement("g",{transform:"translate(-5.5, -4.5)"},i.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"}))),kt=e=>i.createElement(l.A,Object.assign({component:_t},e)),wt=()=>i.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none"},i.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"})),At=e=>i.createElement(l.A,Object.assign({component:wt},e)),xt=()=>i.createElement("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"1em",height:"1em","aria-hidden":"true"},i.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"})),St=e=>i.createElement(l.A,Object.assign({component:xt},e)),Lt=()=>i.createElement("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",width:"1em",height:"1em","aria-hidden":"true"},i.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"})),Tt=e=>i.createElement(l.A,Object.assign({component:Lt},e)),Bt=()=>i.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("rect",{y:"7",width:"32",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"})),It=e=>i.createElement(l.A,Object.assign({component:Bt},e)),Rt=()=>i.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("rect",{y:"7",width:"15",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),i.createElement("rect",{x:"17",y:"7",width:"15",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"})),Nt=e=>i.createElement(l.A,Object.assign({component:Rt},e)),Ot=()=>i.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("rect",{y:"7",width:"20.6667",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),i.createElement("rect",{x:"22.6667",y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"})),Pt=e=>i.createElement(l.A,Object.assign({component:Ot},e)),Mt=()=>i.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("rect",{y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),i.createElement("rect",{x:"11.3333",y:"7",width:"20.6667",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"})),Ft=e=>i.createElement(l.A,Object.assign({component:Mt},e)),jt=()=>i.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("rect",{y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),i.createElement("rect",{x:"11.3333",y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),i.createElement("rect",{x:"22.6667",y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"})),Vt=e=>i.createElement(l.A,Object.assign({component:jt},e)),Ht=()=>i.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("rect",{y:"7",width:"6.5",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),i.createElement("rect",{x:"8.5",y:"7",width:"6.5",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),i.createElement("rect",{x:"17",y:"7",width:"6.5",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),i.createElement("rect",{x:"25.5",y:"7",width:"6.5",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"})),Wt=e=>i.createElement(l.A,Object.assign({component:Ht},e)),Dt=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",focusable:"false",viewBox:"0 0 448 512",width:"1em",height:"1em",fill:"currentColor"},i.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"})),$t=e=>i.createElement(l.A,Object.assign({component:Dt},e)),zt=()=>i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 40 40",preserveAspectRatio:"xMidYMid meet"},i.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"})),Ut=e=>i.createElement(l.A,Object.assign({component:zt},e));var qt=n(91796),Zt=n(86588),Gt=n(75248),Xt=n(42895),Yt=n(71947),Kt=n(70739),Jt=n(67078),Qt=n(22490),en=n(47362),tn=n(86107),nn=n(99031),an=n(9865),rn=n(6221),on=n(64116),ln=n(85420),sn=n(42279),cn=n(70389),dn=n(29064),mn=n(5488),un=n(96526),pn=n(11930),hn=n(52844),gn=n(54621),bn=n(49654),fn=n(53630),vn=n(99784),yn=n(81400),En=n(27904),Cn=n(82355),_n=n(17536),kn=n(43344),wn=n(78777),An=n(27159),xn=n(83715),Sn=n(72986),Ln=n(48459),Tn=n(83318),Bn=n(11374),In=n(22323),Rn=n(12409),Nn=n(87067),On=n(99230),Pn=n(14638),Mn=n(83356),Fn=n(60222),jn=n(38008),Vn=n(9438),Hn=n(94771),Wn=n(30294),Dn=n(52322),$n=n(53304),zn=n(22697),Un=n(74052),qn=n(6500),Zn=n(73394),Gn=n(34765),Xn=n(78811),Yn=n(35985),Kn=n(77971),Jn=n(54030),Qn=n(74168),ea=n(93927),ta=n(5199),na=n(75774),aa=n(65587),ra=n(74515),oa=n(59588),ia=n(97101),la=n(62860),sa=n(85592),ca=n(73656),da=n(12505),ma=n(71259),ua=n(80310),pa=n(8233),ha=n(36208),ga=n(11915),ba=n(1637),fa=n(80163),va=n(41077),ya=n(56902),Ea=n(22161);const Ca=e=>i.createElement(qt.A,e),_a=e=>i.createElement(qt.A,e),ka=e=>i.createElement(Zt.A,e),wa=e=>i.createElement(Gt.A,e),Aa=e=>i.createElement(Xt.A,e),xa=e=>i.createElement(Yt.A,e),Sa=e=>i.createElement(Kt.A,e),La=e=>i.createElement(Jt.A,e),Ta=e=>i.createElement(Qt.A,e),Ba=e=>i.createElement(en.A,e),Ia=e=>i.createElement(tn.A,e),Ra=e=>i.createElement(nn.A,e),Na=e=>i.createElement(an.A,e),Oa=e=>i.createElement(rn.A,e),Pa=e=>i.createElement(on.A,e),Ma=e=>i.createElement(ln.A,e),Fa=e=>i.createElement(sn.A,e),ja=e=>i.createElement(cn.A,e),Va=e=>i.createElement(dn.A,e),Ha=e=>i.createElement(mn.A,e),Wa=e=>i.createElement(un.A,e),Da=e=>i.createElement(pn.A,e),$a=e=>i.createElement(hn.A,e),za=e=>i.createElement(gn.A,e),Ua=e=>i.createElement(bn.A,e),qa=e=>i.createElement(fn.A,e),Za=e=>i.createElement(vn.A,e),Ga=e=>i.createElement(yn.A,e),Xa=e=>i.createElement(En.A,e),Ya=e=>i.createElement(Cn.A,e),Ka=e=>i.createElement(_n.A,e),Ja=e=>i.createElement(kn.A,e),Qa=e=>i.createElement(wn.A,e),er=e=>i.createElement(An.A,e),tr=e=>i.createElement(xn.A,e),nr=e=>i.createElement(Sn.A,e),ar=e=>i.createElement(Ln.A,e),rr=e=>i.createElement(Tn.A,e),or=e=>i.createElement(Bn.A,e),ir=e=>i.createElement(In.A,e),lr=e=>i.createElement(Rn.A,e),sr=e=>i.createElement(Nn.A,e),cr=e=>i.createElement(On.A,e),dr=e=>i.createElement(Pn.A,e),mr=e=>i.createElement(Mn.A,e),ur=e=>i.createElement(Fn.A,e),pr=e=>i.createElement(jn.A,e),hr=e=>i.createElement(Vn.A,e),gr=e=>i.createElement(Hn.A,e),br=e=>i.createElement(Wn.A,e),fr=e=>i.createElement(Dn.A,e),vr=e=>i.createElement($n.A,e),yr=e=>i.createElement(zn.A,e),Er=e=>i.createElement(Un.A,e),Cr=e=>i.createElement(qn.A,e),_r=e=>i.createElement(Zn.A,e),kr=e=>i.createElement(Gn.A,e),wr=e=>i.createElement(Xn.A,e),Ar=e=>i.createElement(Yn.A,e),xr=e=>i.createElement(Kn.A,e),Sr=e=>i.createElement(Jn.A,e),Lr=e=>i.createElement(Qn.A,e),Tr=e=>i.createElement(ea.A,e),Br=e=>i.createElement(ta.A,e),Ir=e=>i.createElement(na.A,e),Rr=e=>i.createElement(aa.A,e),Nr=e=>i.createElement(ra.A,e),Or=e=>i.createElement(oa.A,e),Pr=e=>i.createElement(ia.A,e),Mr=e=>i.createElement(la.A,e),Fr=e=>i.createElement(sa.A,e),jr=e=>i.createElement(ca.A,e),Vr=e=>i.createElement(da.A,e),Hr=e=>i.createElement(ma.A,e),Wr=e=>i.createElement(ua.A,e),Dr=e=>i.createElement(pa.A,e),$r=e=>i.createElement(ha.A,e),zr=e=>i.createElement(ga.A,e),Ur=e=>i.createElement(ba.A,e),qr=e=>i.createElement(fa.A,e),Zr=e=>i.createElement(va.A,e),Gr=e=>i.createElement(ya.A,e),Xr=e=>i.createElement(Ea.A,e);var Yr=n(4495),Kr=n(33152),Jr=n(61043),Qr=n(67765),eo=n(83496),to=n(25988),no=n(86671),ao=n(42060),ro=n(14411),oo=n(35602),io=n(52631),lo=n(86251),so=n(75971),co=n(43587),mo=n(5958),uo=n(47603),po=n(52),ho=n(45371),go=n(50409),bo=n(47281),fo=n(8599),vo=n(72234),yo=n(36474),Eo=n(46251),Co=n(88083),_o=n(76172),ko=n(45246),wo=n(62610),Ao=n(96992),xo=n(58711),So=n(50741),Lo=n(37179),To=n(33084),Bo=n(9441),Io=n(45841),Ro=n(54231),No=n(74386),Oo=n(52183),Po=n(56466),Mo=n(53916),Fo=n(59223),jo=n(32607),Vo=n(71014),Ho=n(4947),Wo=n(32517),Do=n(19615),$o=n(42085),zo=n(6931),Uo=n(82363),qo=n(81594),Zo=n(61698),Go=n(114),Xo=n(83285),Yo=n(39768),Ko=n(5115),Jo=n(79755),Qo=n(65745),ei=n(48174),ti=n(47086),ni=n(35967),ai=n(30066),ri=n(52312),oi=n(79513),ii=n(6072),li=n(37802),si=n(27941),ci=n(60282),di=n(11964),mi=n(86514),ui=n(46539),pi=n(59893),hi=n(62648),gi=n(79865),bi=n(93869),fi=n(99842),vi=n(35430),yi=n(28816),Ei=n(29505),Ci=n(7490),_i=n(5608),ki=n(27240),wi=n(97100),Ai=n(91503),xi=n(36108),Si=n(59922),Li=n(38995),Ti=n(59415),Bi=n(76919),Ii=n(51996),Ri=n(46668),Ni=n(69063),Oi=n(36067),Pi=n(91382),Mi=n(7956),Fi=n(34435),ji=n(11306),Vi=n(26458);const Hi=e=>{var t;return i.createElement(Yr.M,Object.assign({size:null!==(t=e.size)&&void 0!==t?t:18},e))},Wi=e=>i.createElement(Kr.T,e),Di=e=>i.createElement(Jr.M,e),$i=e=>i.createElement(Qr.Y,e),zi=e=>i.createElement(eo.p,e),Ui=e=>i.createElement(to.B,e),qi=e=>i.createElement(no.y,e),Zi=e=>i.createElement(ao.B,e),Gi=e=>i.createElement(ro.c,e),Xi=e=>i.createElement(oo.h,e),Yi=e=>i.createElement(io.W,e),Ki=e=>i.createElement(lo.M,e),Ji=e=>i.createElement(so.u,e),Qi=e=>i.createElement(co.k,e),el=e=>i.createElement(mo.f,e),tl=e=>i.createElement(uo.G,e),nl=e=>i.createElement(Kr.T,e),al=e=>i.createElement(po.x,e),rl=e=>i.createElement(ho.G,e),ol=e=>i.createElement(go.m,e),il=e=>i.createElement(bo.k,e),ll=e=>i.createElement(fo.U,e),sl=e=>i.createElement(vo.R,e),cl=e=>i.createElement(yo.D,e),dl=e=>i.createElement(Eo.Q,e),ml=e=>i.createElement(Co.e,e),ul=e=>i.createElement(_o.x,e),pl=e=>i.createElement(ko.L,e),hl=e=>i.createElement(wo.H,e),gl=e=>i.createElement(Ao.l,e),bl=e=>i.createElement(xo.Y,e),fl=e=>i.createElement(So.M,e),vl=e=>i.createElement(Lo.A,e),yl=e=>i.createElement(To.X,e),El=e=>i.createElement(Bo.y,e),Cl=e=>i.createElement(Io.c,e),_l=e=>i.createElement(Ro.s,e),kl=e=>i.createElement(No.N,e),wl=e=>i.createElement(Oo._,e),Al=e=>i.createElement(Po.p,e),xl=e=>i.createElement(Mo.f,e),Sl=e=>i.createElement(Fo.e,e),Ll=e=>i.createElement(jo.u,e),Tl=e=>i.createElement(Vo.p,e),Bl=e=>i.createElement(Ho.Q,e),Il=e=>i.createElement(Wo.w,e),Rl=e=>i.createElement(Do.k,e),Nl=e=>i.createElement($o.E,e),Ol=e=>i.createElement(oo.h,e),Pl=e=>i.createElement(zo.m,e),Ml=e=>i.createElement(Uo.C,e),Fl=e=>i.createElement(qo.P,e),jl=e=>i.createElement(Zo.b,e),Vl=e=>i.createElement(Zo.b,e),Hl=e=>i.createElement(Go.Z,e),Wl=e=>i.createElement(Xo.U,e),Dl=e=>i.createElement(Yo.R,e),$l=e=>i.createElement(Ko.k,e),zl=e=>i.createElement(Jo.C,e),Ul=e=>i.createElement(eo.p,e),ql=e=>i.createElement(Qo.a,e),Zl=e=>i.createElement(ei.T,e),Gl=e=>i.createElement(ti.H,e),Xl=e=>i.createElement(ni.M,e),Yl=e=>i.createElement(ai.$,e),Kl=e=>i.createElement(ri.d,e),Jl=e=>i.createElement(oi.O,e),Ql=e=>i.createElement(ii.F,e),es=e=>i.createElement(li.T,e),ts=e=>i.createElement(si.w,e),ns=e=>i.createElement(ci.F,e),as=e=>i.createElement(di.T,e),rs=e=>i.createElement(mi.r,e),os=e=>i.createElement(ui.I,e),is=e=>i.createElement(pi.W,e),ls=e=>i.createElement(hi.T,e),ss=e=>i.createElement(gi.A,e),cs=e=>i.createElement(bi.G,e),ds=e=>i.createElement(fi.t,e),ms=e=>i.createElement(vi.n,e),us=e=>i.createElement(yi.v,e),ps=e=>i.createElement(Ei.g,e),hs=e=>i.createElement(Ci.v,e),gs=e=>i.createElement(_i.d,e),bs=e=>i.createElement(ki.V,e),fs=e=>i.createElement(wi.r,e),vs=e=>i.createElement(Ai._,e),ys=e=>i.createElement(xi.L,e),Es=e=>i.createElement(Si.h,e),Cs=e=>i.createElement(ci.F,e),_s=e=>i.createElement(Li.y,e),ks=e=>i.createElement(Ti.U,e),ws=e=>i.createElement(Bi.O,e),As=e=>i.createElement(Ii.z,e),xs=e=>i.createElement(Ri.J,e),Ss=e=>i.createElement(Ni.M,e),Ls=e=>i.createElement(Oi.O,e),Ts=e=>i.createElement(Pi.$,e),Bs=e=>i.createElement(Mi.F,e),Is=e=>i.createElement(Fi.u,e),Rs=e=>i.createElement(ji.B,e),Ns=e=>i.createElement(Vi.D,e),Os=e=>i.createElement(ao.B,e),Ps={...r,...a,...o,generationAI:oe},Ms=({svgString:e,...t})=>i.createElement("span",Object.assign({},t,{dangerouslySetInnerHTML:{__html:e}})),Fs=({icon:e,configIcons:t,...n})=>{if(null!==t&&void 0!==t&&t[e])return i.createElement(Ms,Object.assign({svgString:t[e]},n));const a=Ps[e];return a?i.createElement(a,n):null}},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 r(e=".blocks-app"){const t=`${e} &`,n=new WeakSet;return{visit:e=>{if(!n.has(e)){const r={};let o;for(const i of Object.keys(e)){const l=e[i];"object"===typeof l&&l?(l._keyframe&&a(l,e=>n.add(e)),r[i]=l):(o||(o=r[t]={},n.add(o)),o[i]=l)}return r}return e}}}n.d(t,{A:()=>r})},43167:(e,t,n)=>{"use strict";n.d(t,{tS:()=>d,Ay:()=>u,tN:()=>c,rd:()=>m});var a=n(1936),r=n(18021),o=n(27335),i=n(13419);const{defaultAlgorithm:l,darkAlgorithm:s}=r.A,c={hashed:!1,algorithm:l,token:{colorLink:"#1677ff",colorInfo:"#722ed1",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=r.A.useToken,u=(r.A.defaultAlgorithm,r.A.darkAlgorithm,r.A.compactAlgorithm,({withApp:e=!1,children:t,...n})=>{const r=e?a.createElement(i.A,null,t):t;return a.createElement(o.Ay,n,r)})},88145:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(7494);const o=(0,a.forwardRef)((e,t)=>a.createElement(r.A,Object.assign({ref:t},e)));o.displayName="Col";const i=o},92611:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),r=n(54760);const o=e=>a.createElement(r.A,e)},93944:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(69495);const o=(0,a.forwardRef)((e,t)=>a.createElement(r.A,Object.assign({ref:t},e)));o.displayName="Flex";const i=o},77595:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(14516);const o=(0,a.forwardRef)((e,t)=>a.createElement(r.A,Object.assign({ref:t},e)));o.displayName="Row";const i=o},85537:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(69588);const o=(0,a.forwardRef)((e,t)=>a.createElement(r.A,Object.assign({ref:t},e)));o.displayName="Space";const i=Object.assign(o,{Compact:r.A.Compact})},129:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(32937);const r=a.A;r.Header=a.A.Header,r.Content=a.A.Content,r.Sider=a.A.Sider,r.Footer=a.A.Footer;const o=r},93974:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1936),r=n(26071),o=n(47588);const i=({icon:e,isActive:t,onClick:n,duration:i,onComplete:l})=>{const s=globalThis.localStorage.getItem(o.V0.em_color_scheme),c=matchMedia(o.F3).matches?o.nd:o.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:o.EZ,strokeDasharray:o.uz,strokeDashoffset:o.uz,style:{animationDuration:`${i}ms`},onAnimationEnd:l})),a.createElement(r.A,{icon:e,className:"carousel-custom-dots-item__icon"}))},l=({items:e,duration:t=8e3,autoplay:n=!0,activeIndex:r,defaultActiveIndex:o=0,onChange:l,className:s,style:c})=>{const d=void 0!==r,[m,u]=(0,a.useState)(o),p=d?r:m,[h,g]=(0,a.useState)(n),b=(0,a.useRef)(null),f=(0,a.useCallback)(e=>{d||u(e),null===l||void 0===l||l(e)},[d,l]),v=(0,a.useCallback)(e=>{f(e),g(!1)},[f]),y=(0,a.useCallback)(()=>{const t=(p+1)%e.length;f(t)},[p,e.length,f]);(0,a.useEffect)(()=>{if(n&&h)return b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{f((p+1)%e.length)},t),()=>clearTimeout(b.current)},[n,h,p,t,e.length,f]),(0,a.useEffect)(()=>{n&&g(!0)},[n]);const E=["carousel-custom-dots",s].filter(Boolean).join(" ");return a.createElement("div",{className:E,style:c},e.map((e,n)=>a.createElement(i,{key:e,icon:e,isActive:p===n,onClick:()=>v(n),duration:t,onComplete:y})))}},76387:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(43167),r=n(1936),o=n(92828),i=n(47588);const l=r.forwardRef(({data:e=[],coruselStyle:t,customDots:n=!1,carouselRef:l,effect:s=i.Mj.fade,header:c=!1,className:d,style:m,children:u,...p},h)=>{const{token:g}=(0,a.rd)(),b=null!==h&&void 0!==h?h:l,f=null!==u&&void 0!==u?u:e.map(e=>r.createElement("div",{key:e.id,className:"slide"},c&&r.createElement("div",{className:"slide-title",style:{color:g.colorText}},null===e||void 0===e?void 0:e.textHeader),null===e||void 0===e?void 0:e.content));return r.createElement(r.Fragment,null,n&&e.length>0&&r.createElement("div",{className:"custom-dot"},e.length),r.createElement(o.A,Object.assign({ref:b,style:null!==m&&void 0!==m?m:t,className:null!==d&&void 0!==d?d:"em-carousel",effect:s},p),f))});l.displayName="Carousel";const s=l},3690:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(19623);const o=e=>a.createElement(r.A,e);o.Item=r.A.Item,o.displayName="Breadcrumb";const i=o},35259:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(1936),r=n(94533),o=n(6056),i=n.n(o);const l=({className:e,...t})=>a.createElement(r.A,Object.assign({className:i()("em-dropdown",e)},t));l.displayName="Dropdown";const s=l;s.Button=r.A.Button;const c=s},21414:(e,t,n)=>{"use strict";var a=n(1936),r=n(57943);const o=e=>a.createElement(r.A,e);o.Group=r.A.Group,o.BackTop=r.A.BackTop},9612:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(1936),r=n(22722),o=n(6056),i=n.n(o);const l=({className:e,...t})=>a.createElement(r.A,Object.assign({className:i()("em-menu",e)},t));l.displayName="Menu";const s=l},24503:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1936),r=n(6056),o=n.n(r),i=n(90947);const l=({variant:e="default",className:t,...n})=>a.createElement(i.A,Object.assign({},n,{className:o()(t,"view-switcher"===e&&"segmented_view-switcher")}))},70626:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(46447);const o={inkBar:!1,tabPane:!1},i=a.forwardRef(({animated:e=o,...t},n)=>a.createElement(r.A,Object.assign({ref:n,animated:e},t)))},49514:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(28380);const o=a.forwardRef((e,t)=>a.createElement(r.A.Link,Object.assign({ref:t},e)));o.displayName="Link";const i=o},72838:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(28380);const o=a.forwardRef((e,t)=>a.createElement(r.A.Paragraph,Object.assign({ref:t},e)));o.displayName="Paragraph";const i=o},46338:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(28380);const o=a.forwardRef((e,t)=>a.createElement(r.A.Text,Object.assign({ref:t},e)));o.displayName="Text";const i=o},22641:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1936),r=n(28380);const o=a.forwardRef((e,t)=>a.createElement(r.A.Title,Object.assign({ref:t},e)));o.displayName="Title";const i=o},31492:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var a=n(1936),r=n(28380),o=n(22641),i=n(46338),l=n(49514),s=n(72838);const c=a.forwardRef((e,t)=>a.createElement(r.A,Object.assign({ref:t},e)));c.displayName="Typography";const d=c;d.Title=o.A,d.Text=i.A,d.Paragraph=s.A,d.Link=l.A;const m=d},47588:(e,t,n)=>{"use strict";n.d(t,{EZ:()=>l,F3:()=>o,I1:()=>p,It:()=>E,Jn:()=>f,MS:()=>d,Mj:()=>m,OT:()=>c,T:()=>r,Tg:()=>C,V0:()=>i,Xr:()=>_,cP:()=>w,f5:()=>v,g4:()=>k,jw:()=>g,nd:()=>a,qW:()=>b,uZ:()=>h,uz:()=>s,xr:()=>y,yz:()=>u});const a="dark",r="light",o="(prefers-color-scheme: dark)",i={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"},l=24,s=2*Math.PI*l,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%",h="34%",g=34,b=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Tab","Enter","Home","End"],f=[{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"},y={safeFonts:"Safe Fonts",googleFonts:"Google Fonts",sansSerif:"Sans Serif",serif:"Serif"},E={subsets:["cyrillic"],maxPopularity:100},C="Safe Fonts",_="Google Fonts",k="Sans Serif",w="Serif"},26967:(e,t,n)=>{"use strict";n.d(t,{hI:()=>g,u$:()=>p,KU:()=>u,XB:()=>h,of:()=>b});var a=n(51260),r=n(20263),o=n(45092);let i=function(e){return e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain",e}({});class l{constructor(e={}){this.baseUrl="",this.securityData=null,this.securityWorker=void 0,this.abortControllers=new Map,this.customFetch=(...e)=>fetch(...e),this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"},this.setSecurityData=e=>{this.securityData=e},this.contentFormatters={[i.Json]:e=>null===e||"object"!==typeof e&&"string"!==typeof e?e:JSON.stringify(e),[i.Text]:e=>null!==e&&"string"!==typeof e?JSON.stringify(e):e,[i.FormData]:e=>Object.keys(e||{}).reduce((t,n)=>{const a=e[n];return t.append(n,a instanceof Blob?a:"object"===typeof a&&null!==a?JSON.stringify(a):`${a}`),t},new FormData),[i.UrlEncoded]:e=>this.toQueryString(e)},this.createAbortSignal=e=>{if(this.abortControllers.has(e)){const t=this.abortControllers.get(e);return t?t.signal:void 0}const t=new AbortController;return this.abortControllers.set(e,t),t.signal},this.abortRequest=e=>{const t=this.abortControllers.get(e);t&&(t.abort(),this.abortControllers.delete(e))},this.request=async({body:e,secure:t,path:n,type:a,query:r,format:o,baseUrl:l,cancelToken:s,extraQuery:c,...d})=>{const m=("boolean"===typeof t?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(d,m);c&&(r=r?{...r,...c}:c);const p=r&&this.toQueryString(r),h=this.contentFormatters[a||i.Json],g=o||u.format,b=new Request(`${l||this.baseUrl||""}${n}${p?`?${p}`:""}`,{...u,headers:{...u.headers||{},...a&&a!==i.FormData?{"Content-Type":a}:{}},signal:(s?this.createAbortSignal(s):u.signal)||null,body:"undefined"===typeof e||null===e?null:h(e)});return this.customFetch(b).then(async e=>{const t=e;t.data=null,t.error=null,t.meta={request:b,response:t};const n=g?await e[g]().then(e=>(t.ok?t.data=e:t.error={data:e},t)).catch(e=>(t.error=e,t)):t;return s&&this.abortControllers.delete(s),n})},Object.assign(this,e)}encodeQueryParam(e,t){return`${encodeURIComponent(e)}=${encodeURIComponent("number"===typeof t?t:`${t}`)}`}addQueryParam(e,t){return this.encodeQueryParam(t,e[t])}addArrayQueryParam(e,t){return e[t].map(e=>this.encodeQueryParam(t,e)).join("&")}toQueryString(e){const t=e||{};return Object.keys(t).filter(e=>"undefined"!==typeof t[e]).map(e=>Array.isArray(t[e])?this.addArrayQueryParam(t,e):this.addQueryParam(t,e)).join("&")}addQueryParams(e){const t=this.toQueryString(e);return t?`?${t}`:""}mergeRequestParams(e,t){return{...this.baseApiParams,...e,...t||{},headers:{...this.baseApiParams.headers||{},...e.headers||{},...t&&t.headers||{}}}}}class s extends l{constructor(...e){super(...e),this.unsplashTest={appControllerGetUnsplashTest:(e={})=>this.request({path:"/unsplash_test",method:"GET",...e})},this.tasks={tasksControllerCreateTask:(e,t={})=>this.request({path:"/tasks",method:"POST",body:e,type:i.Json,...t}),tasksControllerGetTask:({id:e,...t},n={})=>this.request({path:`/tasks/${e}`,method:"GET",...n}),tasksControllerGetEmail:({id:e,...t},n={})=>this.request({path:`/tasks/${e}/email`,method:"GET",...n}),tasksControllerGetEmailHtml:({id:e,...t},n={})=>this.request({path:`/tasks/${e}/html`,method:"GET",...n})},this.parsing={manParseControllerLogoGen:(e,t={})=>this.request({path:"/parsing/logo-gen",method:"GET",query:e,...t}),manParseControllerSite:(e,t={})=>this.request({path:"/parsing/site",method:"GET",query:e,...t}),manParseControllerColor:(e,t={})=>this.request({path:"/parsing/color",method:"GET",query:e,...t}),manParseControllerStyle:(e,t={})=>this.request({path:"/parsing/style",method:"GET",query:e,...t}),manParseControllerColorScheme:(e,t={})=>this.request({path:"/parsing/color-scheme",method:"GET",query:e,...t}),manParseControllerImage:(e,t={})=>this.request({path:"/parsing/image",method:"GET",query:e,...t})},this.maintenance={maintenanceControllerReloadBlocks:(e={})=>this.request({path:"/maintenance/reload-blocks",method:"GET",...e}),maintenanceControllerReloadUnsplashTopics:(e={})=>this.request({path:"/maintenance/reload-unsplash-topics",method:"GET",...e})},this.unsplash={unsplashControllerUnsplashTest:(e={})=>this.request({path:"/unsplash/test",method:"GET",...e}),unsplashControllerSearchPhotos:(e,t={})=>this.request({path:"/unsplash/search",method:"GET",query:e,...t}),unsplashControllerGetTopics:(e={})=>this.request({path:"/unsplash/topics",method:"GET",...e}),unsplashControllerGetPhoto:(e,t={})=>this.request({path:"/unsplash/photo",method:"GET",query:e,...t})}}}var c=n(24524),d=n(71715),m=n(1936);const u=e=>r.di.getInstance(e,c.Pz),p=e=>r.di.getOrCreateInstance(e,c.Bl,()=>new s({baseUrl:"https://ai-mail.emcdn.ru"})),h=()=>{const e=(0,d.Pj)();return(0,m.useMemo)(()=>r.di.getInstance(e,c.Pz),[e])};function g(e){return(t,n,i)=>{const l=r.di.getInstance(n,o.no);return(0,a.fetchBaseQuery)({...e,fetchFn:(null===l||void 0===l?void 0:l.execute)||fetch})(t,n,i)}}const b=()=>{const e=(0,d.Pj)();return(0,m.useMemo)(()=>r.di.getInstance(e,c.M4),[e])}},51597:(e,t,n)=>{"use strict";n.d(t,{Kp:()=>r,Sb:()=>o,_1:()=>a});const a="SHOW",r="SAVE",o="NOTIFY"},60915:(e,t,n)=>{"use strict";n.d(t,{Y:()=>S});var a=n(1936),r=n(71715),o=n(3875),i=n(45103),l=n(87771),s=n.n(l),c=n(69622),d=n(31345),m=n(98173),u=n(27092),p=n(6403),h=n(26557),g=n(83111),b=n(47706),f=n(65185);const v=c.ti;var y=n(93506),E=n(65893),C=n(70529);const _="em_locale",k="em_ant_locale",w="em_mergeTags_locale",A=e=>{try{return JSON.parse(localStorage.getItem(e)||"")}catch{return null}},x=()=>{const e=A(k);return(null===e||void 0===e?void 0:e.data)||v},S=({children:e})=>{const t=(0,g.NF)(),l=(0,r.wA)(),v=(0,p.hN)(),S=(0,r.d4)(m.C1),L=(0,r.d4)(m.B),[T,B]=(0,u.HO)(),[I,R]=(0,u.Yj)(),N=(0,f.ml)(E.AZ.READ_LOCALE),O=L||(y.EW.isPlugin?void 0:"ru_RU"),[P,M]=(0,a.useState)(()=>(0,i.hU)()),[F,j]=(0,a.useState)(x),[V,H]=(0,a.useState)(!0),[W,D]=(0,a.useState)(!1),$=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if($.current||!O)return;$.current=!0;const e=A(_)||((e,t)=>{const n=A(e);return n?(localStorage.removeItem(e),localStorage.setItem(t,JSON.stringify(n)),n):null})("locale",_);if(null!==e&&void 0!==e&&e.data&&e.id===O&&(M((0,i.hU)(e.data)),H(!1)),!y.EW.isPlugin){const e=A(w);null!==e&&void 0!==e&&e.data&&l((0,d.Kj)(e.data))}},[O]),(0,a.useEffect)(()=>{O&&n(77778)(`./${"uk"===O?"uk_UA":O}.js`).then(e=>{const t=e.default;j(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)(()=>{!y.EW.isPlugin&&O&&n(93718)(`./${"uk"===O?"uk_UA":O}.ts`).then(e=>{l((0,d.Kj)(e.default)),localStorage.setItem(w,JSON.stringify(e.default))})},[O,l,null===S||void 0===S?void 0:S.id]),(0,h.ZC)(([e])=>{!e&&B.error&&v.fromError("GET_LOCALES_ERROR",void 0,B.error)},[B.error,v]),(0,h.ZC)(([e])=>{O&&e!==O&&N.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;M((0,i.hU)(t)),D(!0)}else y.EW.isPlugin&&t.getInstance(C.Ef)?D(!0):B.isSuccess?I({id:O}):T()})},[O,N,null===S||void 0===S?void 0:S.id]),(0,a.useEffect)(()=>{if(B.isSuccess&&O){const e=B.data.find(([e])=>e===O);if(!e)return void D(!0);const t=A(_);(null===t||void 0===t?void 0:t.id)===O&&e[1]<=t.time?D(!0):I({id:O})}},[O,B,I,null===S||void 0===S?void 0:S.id]),(0,h.ZC)(([e])=>{!e&&R.isError&&v.fromError("GET_LOCALE_ERROR",void 0,R.isError)},[R.isError,v]),(0,a.useEffect)(()=>{if(B.isSuccess&&R.isSuccess){var e,t;if((null===(e=R.originalArgs)||void 0===e?void 0:e.id)!==O)return;const n=R.data,a=B.data.find(([e])=>e===O),r=null===(t=s()(n,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===t?void 0:t.locale_data.default;localStorage.setItem(_,JSON.stringify({id:O,time:(null===a||void 0===a?void 0:a[1])||Date.now(),data:r})),M((0,i.hU)(r)),D(!0)}},[R,O,B,null===S||void 0===S?void 0:S.id]),a.createElement(b.CY,{i18n:P},a.createElement(o.r4.Provider,{value:!V||W},a.createElement(c.NP,{locale:F},e)))}},3875:(e,t,n)=>{"use strict";n.d(t,{LG:()=>l,ZU:()=>c,cR:()=>o,fh:()=>i,or:()=>r,r4:()=>s});var a=n(1936);const r=(0,a.createContext)({element:void 0}),o=()=>{var e;return null===(e=(0,a.useContext)(r))||void 0===e?void 0:e.element},i=(0,a.createContext)(void 0),l=()=>(0,a.useContext)(i),s=(0,a.createContext)(!1),c=()=>(0,a.useContext)(s)},87596:(e,t,n)=>{"use strict";n.d(t,{A:()=>ue});var a=n(5620),r=n(83231),o=n(79613),i=n(22162),l=n(89600),s=n(60034),c=n(89591),d=n(60791),m=n(27092),u=n(44004),p=n(72531),h=n(64886),g=n(1327),b=n(70339),f=n(28374),v=n(87796),y=n(61164),E=n(78790),C=n(6680),_=n(22908),k=n(85217),w=n(98750),A=n(42712),x=n(7836),S=n(83035),L=n(28112),T=n(85312),B=n(37316),I=n(24709),R=n(80293),N=n(84697),O=n(18949),P=n(8460),M=n(14698),F=n(36401),j=n(82994),V=n(64582),H=n(5823),W=n(25413),D=n(3758),$=n(61518),z=n(14154),U=n(91875),q=n(3711),Z=n(65098),G=n(68726),X=n(98173),Y=n(52898),K=n(68069),J=n(22817),Q=n(61062),ee=n(11105),te=n(40867),ne=n(75354),ae=n(69847),re=n(31345),oe=n(78443),ie=n(74663),le=n(92079),se=n(38343),ce=n(20263),de=n(83111);const me=(0,a.HY)({[ce.di.reducerPath]:ce.di.reducer,[r.Zs.reducerPath]:r.Zs.reducer,[X.Ay.name]:X.Ay.reducer,[Y.Ay.name]:Y.Ay.reducer,[K.Ay.name]:K.Ay.reducer,[re.Ay.name]:re.Ay.reducer,[s.CL.reducerPath]:s.CL.reducer,[i.OV.reducerPath]:i.OV.reducer,[l.So.reducerPath]:l.So.reducer,[o.Z8.reducerPath]:o.Z8.reducer,[J.Ay.name]:J.Ay.reducer,[d.VM.reducerPath]:d.VM.reducer,[c.GY.reducerPath]:c.GY.reducer,[Q.Ay.name]:Q.Ay.reducer,[ee.Ay.name]:ee.Ay.reducer,[m.Ad.reducerPath]:m.Ad.reducer,[C.C.reducerPath]:C.C.reducer,[_.K.reducerPath]:_.K.reducer,[k.T.reducerPath]:k.T.reducer,[w.G.reducerPath]:w.G.reducer,[A.q.reducerPath]:A.q.reducer,[x.u.reducerPath]:x.u.reducer,[S.P.reducerPath]:S.P.reducer,[L.W.reducerPath]:L.W.reducer,[T.m.reducerPath]:T.m.reducer,[B.W.reducerPath]:B.W.reducer,[I.N.reducerPath]:I.N.reducer,[R.x.reducerPath]:R.x.reducer,[N.n.reducerPath]:N.n.reducer,[O.p.reducerPath]:O.p.reducer,[P.u.reducerPath]:P.u.reducer,[M.e.reducerPath]:M.e.reducer,[F.d.reducerPath]:F.d.reducer,[te.Ay.name]:te.Ay.reducer,[p.Nq.reducerPath]:p.Nq.reducer,[u.yH.reducerPath]:u.yH.reducer,[g.f.reducerPath]:g.f.reducer,[h.Jg.reducerPath]:h.Jg.reducer,[b.tO.reducerPath]:b.tO.reducer,[ae.Ay.name]:ae.Ay.reducer,[ne.Ay.name]:ne.Ay.reducer,[f.U8.reducerPath]:f.U8.reducer,[E.k.reducerPath]:E.k.reducer,[y.S.reducerPath]:y.S.reducer,[v.kE.reducerPath]:v.kE.reducer,[oe.Ay.name]:oe.Ay.reducer,[j.Uu.reducerPath]:j.Uu.reducer,[V.M.reducerPath]:V.M.reducer,[H.N.reducerPath]:H.N.reducer,[W.vx.reducerPath]:W.vx.reducer,[D.Q2.reducerPath]:D.Q2.reducer,[ie.Ay.name]:ie.Ay.reducer,[le.Ay.name]:le.Ay.reducer,[$.y.reducerPath]:$.y.reducer,[se.Ay.name]:se.Ay.reducer,[z.yR.reducerPath]:z.yR.reducer,[U.B.reducerPath]:U.B.reducer,[q.F.reducerPath]:q.F.reducer,[G.Sd.reducerPath]:G.Sd.reducer,[Z.KA.reducerPath]:Z.KA.reducer}),ue=(e,t)=>"authorizationApi/resetApiState"===t.type?me({[de.IP]:e[de.IP],[m.Ad.reducerPath]:e[m.Ad.reducerPath]},t):me(e,t)},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>`},21477:e=>{e.exports='<tr em="block" class="empty-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" cellpadding="0" cellspacing="0" border="0" width="100%" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30" ></td></tr></table>\n\t\t\t\t\t<table align="center" cellpadding="0" cellspacing="0" border="0" width="91%">\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30" ></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n'},15756:e=>{e.exports='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <title></title>\n <style type="text/css">\n html {\n -webkit-text-size-adjust: none;\n -ms-text-size-adjust: none;\n }\n </style>\n <style em="styles">\n@media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-narrow-table {\n width: 100%!important;\n max-width: 660px!important;\n min-width: 320px!important;\n }\n}\n</style>\n</head>\n<body style="margin: 0; padding: 0;">\n <span class="preheader" style="display: none !important; visibility: hidden; opacity: 0; color: #F8F8F8; height: 0; width: 0; font-size: 1px;"> \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c </span>\n \x3c!--[if !mso]>\x3c!--\x3e\n <div style="font-size:0px;color:transparent;opacity:0;">\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800</div>\n \x3c!--<![endif]--\x3e\n <table cellpadding="0" cellspacing="0" border="0" width="100%" style="font-size: 1px; line-height: normal;">\n <tr em="group">\n <td align="center" bgcolor="#F8F8F8">\n \x3c!--[if (gte mso 9)|(IE)]>\n <table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n <![endif]--\x3e\n <table cellpadding="0" cellspacing="0" width="100%" border="0" style="max-width: 660px; min-width: 660px; width: 660px;" class="em-narrow-table"></table>\n \x3c!--[if (gte mso 9)|(IE)]>\n </td></tr></table>\n <![endif]--\x3e\n </td>\n </tr>\n </table>\n</body>\n</html>'},57546:(e,t,n)=>{"use strict";n.d(t,{NW:()=>o,RH:()=>s,Vz:()=>c,ax:()=>d,lS:()=>l,uE:()=>i,wF:()=>r,yy:()=>a});const a={paddingTop:"top",paddingLeft:"left",paddingRight:"right",paddingBottom:"bottom",mobilePaddingTop:"top",mobilePaddingLeft:"left",mobilePaddingRight:"right",mobilePaddingBottom:"bottom"},r={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},o={mobileBorderRadiusAll:"all",mobileBorderRadiusTopLeft:"topLeft",mobileBorderRadiusBottomLeft:"bottomLeft",mobileBorderRadiusTopRight:"topRight",mobileBorderRadiusBottomRight:"bottomRight"},i={all:"borderAll",top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},l={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"}},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'},942:(e,t,n)=>{"use strict";n.d(t,{Mu:()=>i,ZJ:()=>c,cM:()=>s,n1:()=>d,rD:()=>l});var a=n(71715),r=n(31345),o=n(28589);function i(e){if(e){const{type:t,project:n,isNew:a,id:r}=e;return`/projects/${n}/${"block"===t?"blocks":"emails"}/${a?`new?template=${r}`:r}`}return""}function l(){return(0,a.d4)(r.zg)}function s(e,t,n){return null!==e&&void 0!==e&&e.length?e.map((e,a)=>function(e){return e.hasOwnProperty("children")}(e)?{key:(0,o.l)(),value:e.value,label:e.label,children:s(e.children,t,n),type:"group"}:{key:(0,o.l)(),label:e.label,value:e.value,onClick:t=>{n(e.value,t.domEvent)}}):void 0}function c(e,t){for(const n of e)if(n&&t in n)return n[t]}function d(e){return Object.assign({},...e)}},2527:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var a=n(24524),r=n(20263);const o=()=>r.di.useInstance(a.Zw)},20263:(e,t,n)=>{"use strict";n.d(t,{di:()=>i});var a=n(38615),r=n(40713),o=n(83111);const i={getContainer:o.My,createIdentifier:r.Q,reducer:o.Ff,reducerPath:o.IP,getInstance:function(e,t){return(e instanceof a.m?e:(0,o.My)(e)).getInstance(t)},getInstanceAsync:function(e,t){return(e instanceof a.m?e:(0,o.My)(e)).getInstanceAsync(t)},getOrCreateInstance:function(e,t,n){return(e instanceof a.m?e:(0,o.My)(e)).getOrCreateInstance(t,n)},inject:function(e,t,n,a){return(0,o.My)(e).inject(t,n)},addService:function(e,t,n){return(0,o.My)(e).addService(t,n)},getServices:function(e,t){return(0,o.My)(e).getServices(t)},useInject:o.lg,useInstance:o.Nj,useInstanceAsync:o.rl,useServices:o.A$}},72496:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a.Q});var a=n(38615)},83111:(e,t,n)=>{"use strict";n.d(t,{A$:()=>h,Ff:()=>c,IP:()=>s,My:()=>l.My,NF:()=>d,Nj:()=>u,lg:()=>m,rl:()=>p});var a=n(1936),r=n(71715),o=n(40713),i=n(38615),l=n(72749);const s=l.if,c=(e,t)=>{if(!e){const e=i.Q.createChild(),t=(0,o.Q)();return i.Q.inject(t,e),t}return e};function d(){const e=(0,r.Pj)();return(0,a.useMemo)(()=>(0,l.My)(e),[e])}function m(){const e=(0,r.Pj)(),t=(0,l.My)(e);return function(e,n){t.inject(e,n)}}function u(e){const t=(0,r.Pj)();return(0,l.My)(t).getInstance(e)}function p(e){const[t,n]=(0,a.useState)(),o=(0,r.Pj)(),i=(0,a.useRef)(Promise.resolve()),s=(0,l.My)(o);return(0,a.useEffect)(()=>{const t=i.current=i.current.then(()=>s.getInstanceAsync(e)).then(e=>{t===i.current&&n(e)},e=>{})},[n,e,o,s]),t}function h(e){const t=(0,r.Pj)();return(0,l.My)(t).getServices(e)}},67630:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});var a=n(83111);function r(e){return(t,n,r,o)=>{const i=(0,a.My)(n);return e(i)(t,n,r,o)}}},7714:(e,t,n)=>{"use strict";n.d(t,{K9:()=>u,QC:()=>d,XW:()=>m,ur:()=>c});var a=n(82711),r=n(20263),o=n(71715),i=n(40713),l=n(1936);const s=(0,i.Q)("MESSAGE_SERVICE");function c(){const e=d();return(0,l.useCallback)(t=>{e.setTarget(t instanceof Element?t.contentWindow:t)},[e])}function d(){const e=(0,o.Pj)();return(0,l.useMemo)(()=>function(e){return r.di.getOrCreateInstance(e,s,()=>new a.bg)}(e),[e])}function m(){const e=d();return(0,l.useCallback)(function(t){e.send(t)},[e])}function u(){const e=d();return(0,l.useCallback)(function(t,n){e.send(t,n)},[e])}},20279:(e,t,n)=>{"use strict";n.d(t,{AO:()=>N,Ai:()=>x,N_:()=>B,RM:()=>A,TW:()=>S,TX:()=>M,Ze:()=>O,b9:()=>L,kl:()=>T,ok:()=>I,xc:()=>R,z$:()=>P});var a=n(1936),r=n(69622),o=n(96040),i=n(93506),l=n(57546);const{Option:s}=r.Select,{mobileBorderRadiusAll:c,mobileBorderRadiusTopLeft:d,mobileBorderRadiusBottomLeft:m,mobileBorderRadiusTopRight:u,mobileBorderRadiusBottomRight:p,borderRadiusBottomRight:h,borderRadiusTopRight:g,borderRadiusBottomLeft:b,borderRadiusTopLeft:f,alt:v,src:y,title:E,link:C,borderRadiusAll:_,imgReplacer:k,expanded:w}={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"},A=({linkProtocol:e})=>{switch(e){case"https://":case"#":default:return a.createElement(o.A,{icon:"LinkOutlined"});case"mailto:":return a.createElement(o.A,{icon:"MailOutlined"});case"tel:":return a.createElement(o.A,{icon:"PhoneOutlined"});case"sms:":return a.createElement(o.A,{icon:"CommentOutlined"});case"ftp://":return a.createElement(o.A,{icon:"FileOutlined"})}},x=({handleLinkProtocolsChange:e,linkProtocol:t,__:n})=>{const o=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(r.Select,{style:{width:90,textAlign:"left"},value:t,onChange:e,options:o})},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]}}},B=(e,t,n)=>{if(!e||!e.startsWith("mailto:"))return e;const a=e.split("?")[0],r=[];return t&&r.push(`subject=${encodeURIComponent(t)}`),n&&r.push(`body=${encodeURIComponent(n)}`),r.length>0?`${a}?${r.join("&")}`:a},I=e=>e||(0===e?"0":""),R=e=>e&&"auto"!==e?e:0===e?"0":"";function N(e){var t,n,a,r,o,i,l,s,c,d,m,u,p,h,g,b,f,v,y,E;const C={...e,link:null==e.link?"https://":e.link,borderRadiusAll:I(null===(t=e.borderRadius)||void 0===t?void 0:t.all),borderRadiusTopLeft:I(null===(n=e.borderRadius)||void 0===n?void 0:n.topLeft),borderRadiusBottomLeft:I(null===(a=e.borderRadius)||void 0===a?void 0:a.bottomLeft),borderRadiusTopRight:I(null===(r=e.borderRadius)||void 0===r?void 0:r.topRight),borderRadiusBottomRight:I(null===(o=e.borderRadius)||void 0===o?void 0:o.bottomRight),mobileBorderRadiusAll:I(null===(i=e.mobileBorderRadius)||void 0===i?void 0:i.all),mobileBorderRadiusTopLeft:I(null!==(null===(l=e.mobileBorderRadius)||void 0===l?void 0:l.topLeft)?null===(s=e.mobileBorderRadius)||void 0===s?void 0:s.topLeft:null===(c=e.mobileBorderRadius)||void 0===c?void 0:c.all),mobileBorderRadiusBottomLeft:I(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:I(null!==(null===(p=e.mobileBorderRadius)||void 0===p?void 0:p.topRight)?null===(h=e.mobileBorderRadius)||void 0===h?void 0:h.topRight:null===(g=e.mobileBorderRadius)||void 0===g?void 0:g.all),mobileBorderRadiusBottomRight:I(null!==(null===(b=e.mobileBorderRadius)||void 0===b?void 0:b.bottomRight)?null===(f=e.mobileBorderRadius)||void 0===f?void 0:f.bottomRight:null===(v=e.mobileBorderRadius)||void 0===v?void 0:v.all),show:e.show?e.show:"all",altSrc:e.src};var _,k;e.video&&(C.videoPlayButton=null!==(_=e.video.playButton)&&void 0!==_?_:"youtube_red",C.videoSource=null!==(k=e.video.source)&&void 0!==k?k:"");if((null===(y=e.carouselImages)||void 0===y?void 0:y.length)>0){var w;const t={};null===(w=e.carouselImages)||void 0===w||w.map((e,n)=>(Object.keys(e).forEach(a=>{t[a+"_"+n]=e[a]}),!0)),C.images=t}if((null===(E=e.sections)||void 0===E?void 0:E.length)>0){var A;const t=[];null===(A=e.sections)||void 0===A||A.map((e,n)=>(t.push({[`expanded_${n}`]:e.expanded}),!0)),C.sections=t}return C}function O(e,t,n){const a=n.hasOwnProperty("images"),r=n.hasOwnProperty("sections"),o=Object.keys(a?n.images:r?n.sections:n)[0],s=a?n.images:r?n.sections:n;let A={};const x=t.getFieldsValue(!0);switch(o.split("_")[0]){case E:case y:case v:case k:if(a){const t=[...e.carouselImages];t[o.split("_")[1]][o.split("_")[0]]=s[o],A={carouselImages:t}}else A=s;break;case w:if(r){const t=[...e.sections];t[o.split("_")[1]][o.split("_")[0]]=s[o],A={sections:t}}break;case C:let n=s[o];"string"===typeof n&&"https://http"===n.substring(0,12)&&(n=n.substring(8,n.length)),e.type===i.bV.CAROUSEL?(A.carouselImages=e.carouselImages,a?(t.setFieldValue(["images",[C+"_"+o.split("_")[1]]],n),A.carouselImages[o.split("_")[1]].link=n,A.link="",t.setFieldValue(C,"")):(e.carouselImages.forEach((e,a)=>{t.setFieldValue(["images",C+"_"+a],n),A.carouselImages[a].link=n,A.link=n}),t.setFieldValue(C,n))):(t.setFieldValue(C,n),A.link=n);break;case _:A={borderRadius:{...e.borderRadius,[l.wF[f]]:x[f],[l.wF[b]]:x[b],[l.wF[g]]:x[g],[l.wF[h]]:x[h],[l.wF[o]]:+s[o]}};break;case f:case b:case g:case h:A={borderRadius:{...e.borderRadius,[l.wF[_]]:null,[l.wF[o]]:+s[o]}};break;case c:case d:case m:case u:case p:A={mobileBorderRadius:{...e.mobileBorderRadius,[l.NW[d]]:x[d],[l.NW[m]]:x[m],[l.NW[u]]:x[u],[l.NW[p]]:x[p],[l.NW[o]]:s[o],classNamePrefix:"em-mob-border_radius_"+l.NW[o]+"-"}};break;default:A=s}return{...e,...A}}const P=a.createElement(r.Select,{className:"select-after"},a.createElement(s,{value:"px"},"px"),a.createElement(s,{value:"%"},"%")),M=a.createElement(r.Select,{className:"select-after"},a.createElement(s,{value:"px"},"px"))},85183:(e,t,n)=>{"use strict";n.d(t,{Gw:()=>o,WJ:()=>a,X_:()=>r,Y6:()=>i});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),r=null!==(t=n.at(a))&&void 0!==t?t:"B";return parseFloat((e/Math.pow(1024,a)).toFixed(1))+" "+r},r=e=>e?(new TextEncoder).encode(e).length:0,o=(e,t=90)=>e>1024*t,i=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}},91480:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var a=n(1936),r=n(942);const o=()=>{const e=(0,r.rD)();return(0,a.useCallback)((t,n)=>{!1!==e.pushToGTM&&((e,t)=>{const n=()=>{try{const t={...e,appLabel:"blocks_app"};window.dataLayer&&"function"===typeof window.dataLayer.push&&window.dataLayer.push(t);const n="string"===typeof t.event&&t.event.trim()?t.event.trim():null,a=("string"===typeof t.action&&t.action.trim()?t.action.trim():null)||("string"===typeof t.event_action&&t.event_action.trim()?t.event_action.trim():null);let r;r=n&&a?`${n}_${a}`:n||a||"event";const{event:o,action:i,...l}=t;"event_action"in l&&delete l.event_action;const s={...l,...n?{event:n}:{},...a?{action:a}:{}};"undefined"!==typeof window&&window.amplitude&&"function"===typeof window.amplitude.track&&window.amplitude.track(r,s)}catch(t){}};t?setTimeout(n,t):n()})(t,n)},[e.pushToGTM])}},39565:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var a=n(26967);const r=async(e,t,n)=>{const r=(0,a.KU)(t).baseUrl.replaceAll(/[\\/]$/g,""),o=(0,a.hI)({baseUrl:r}),i=await o(e,t,n);if(i.error){let e=i.error;if("function"===typeof e.json)try{e=await e.json()}catch{e=await e}return{error:e}}return i}},22449:(e,t,n)=>{"use strict";n.d(t,{V:()=>c});var a=n(93506),r=n(7714),o=n(47706),i=n(1936),l=n(71715),s=n(98173);function c(){const e=(0,r.QC)(),t=(0,l.d4)(s.C1),{__:n}=(0,o.s9)(),[c,d]=(0,i.useState)("");(0,i.useEffect)(()=>{if(t.locale!==c){const r=(0,a.QV)(n),o=e.onInit(()=>{e.send(a.Ru.SANDBOX_TRANSLATIONS,{name:t.locale,data:r}),d(t.locale)});return()=>o.dispose()}},[t.locale,c,d,n,e]),(0,i.useEffect)(()=>{const t=e.addListener(a.Ru.RELOAD,()=>{d("")});return()=>t.dispose()},[d,e])}},44946:(e,t,n)=>{"use strict";n.d(t,{y:()=>l});var a=n(93506),r=n(7714),o=n(1936);const i=Symbol("isIframeEvent");function l({children:e}){const[t,n]=(0,o.useState)(),[l,s]=(0,o.useState)(),[c,d]=(0,o.useState)(!1),m=(0,r.QC)();return(0,o.useEffect)(()=>{if(t){const e=m.addListener(a.Ru.APPLICATION_IFRAME_DRAG_EVENT,e=>{if("drageleave"!==e.type&&"dragenter"!==e.type){const n=t.getBoundingClientRect(),a=e.clientX+n.x+window.scrollX,r=e.clientY+n.y+window.scrollY,o=document.elementFromPoint(a,r);if(o){const t=new DataTransfer,n=new DragEvent(e.type,{clientX:a,clientY:r,cancelable:!0,bubbles:!0,dataTransfer:t});n[i]=!0,o.dispatchEvent(n)}}});return()=>e.dispose()}},[m,t]),(0,o.useEffect)(()=>{const e=e=>{e[i]||d(!0)},t=e=>{e[i]||d(!1)};return window.addEventListener("dragstart",e),window.addEventListener("dragend",t),()=>{window.removeEventListener("dragstart",e),window.removeEventListener("dragend",t)}},[l]),(0,o.useEffect)(()=>{const e=e=>{if(!e[i]){var t;const n=l.getBoundingClientRect();m.send(a.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,m]),o.createElement("div",{ref:n},c&&o.createElement("div",{ref:s,className:"iframe-provider"}),e)}},61933:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var a=n(69622),r=n(93506),o=n(48952),i=n(7714),l=n(1936);function s(){const e=(0,i.QC)(),{token:t}=(0,a.rd)(),[n,s]=(0,l.useState)();(0,l.useEffect)(()=>{if(!(0,o.b)(n,t)){const n=e.onInit(()=>{e.send(r.Ru.SANDBOX_SET_THEME_VARIABLES,t),s(t)});return()=>n.dispose()}},[t,n,s,e]),(0,l.useEffect)(()=>{const t=e.addListener(r.Ru.RELOAD,()=>{s(void 0)});return()=>t.dispose()},[s,e])}},49591:(e,t,n)=>{"use strict";n.d(t,{r:()=>_});var a=n(93506),r=n(32638),o=n(1936),i=n(71715),l=n(84075),s=n(89591),c=n(38343),d=n(40867),m=n(52898),u=n(98173),p=n(31345),h=n(92079),g=n(942),b=n(7314),f=n(42500),v=n(6403),y=n(26557),E=n(83193);const C="AUTOSAVE_RECOVERY";function _(e){const{emailId:t,projectId:n}=(0,l.g)(),_=(0,v.hN)(),k=(0,g.rD)(),w=(0,i.d4)(c.M),A=(0,b.fn)(),x=(0,o.useRef)(0),S=(0,i.d4)(d.Wm),L=(0,i.d4)(d.B),T=(0,i.d4)(u.C1),B=(0,i.d4)(p.jY),[I,R]=(0,s.LX)(),N=(0,i.wA)(),{data:O,isSuccess:P}=(0,s.YV)({emailId:t},{skip:!t}),M=(null===O||void 0===O?void 0:O.data)||[],F=!0===(null===k||void 0===k?void 0:k.revisionService),j=(0,i.d4)(h.J3),V=(0,i.d4)(h.dA),H=(0,o.useCallback)(e=>{var t,n;N((0,m.no)(e)),null===A||void 0===A||A.setValue(null!==(t=null===(n=e.html)||void 0===n?void 0:n.replaceAll("\r\n","\n"))&&void 0!==t?t:"")},[N,A]);(0,o.useEffect)(()=>{if(F)return()=>{E.lH.cancelPolling(t),N((0,h.AG)())}},[t,N,F]),(0,o.useEffect)(()=>{F&&V&&_.info({key:C,message:"\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f...",duration:0})},[F,V,_]),(0,o.useEffect)(()=>{if(!F||!j||!A)return;if(j.emailId!==t)return;if(null===e||void 0===e||!e.id||e.id!==t)return;H(j.payload),N((0,h.AG)());const{phase:n}=j;"found"===n?_.success({key:C,message:"\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b",duration:3}):"timeout"===n?_.warning({key:C,message:"\u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f",description:"\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0444\u043e\u043d\u0435...",duration:5}):"bg"===n&&_.info({key:"AUTOSAVE_BG_SYNCED",message:"\u041f\u0438\u0441\u044c\u043c\u043e \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c",duration:3})},[F,j,A,t,null===e||void 0===e?void 0:e.id,H,N,_]),(0,o.useEffect)(()=>{if(!R.isLoading)return;const e=e=>{e.preventDefault()};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[R.isLoading]);const W=(0,o.useCallback)(({parent:t})=>{if(e){const o=a.EW.isPlugin?B:e.project,i=(null===A||void 0===A?void 0:A.getValue())||"",l={parent:t,...void 0!==e.meta?{meta:e.meta}:{},title:e.title,author:e.author,project:o,html:i,excerpt:e.date_gmt,subject:e.subject,preheader:e.preheader,common_styles:e.common_styles,parent_email:e.parent_email};I({emailId:e.id,body:l}).then(async t=>{if(!function(e){return e.hasOwnProperty("data")}(t))throw t.error;if(!a.EW.isPlugin){var o;const i=(0,r.Wv)(a.Tm,n,e.id,null===(o=t.data)||void 0===o?void 0:o.modified);fetch(i,{mode:"no-cors"})}_.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:l,message:""},!0)}).catch(e=>{_.fromError("EMAIL_AUTOSAVE_ERROR",l,e,!0)})}},[I,e,A,n,_,B]),[D,$]=(0,o.useState)(!1),z=(0,o.useCallback)(()=>{const e=null!==(t=M)&&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===k||void 0===k?void 0:k.autosaveTimeout)||1e4)&&S&&!w&&"Discuss"!==L&&W({parent:e.id})}else S&&!w&&"Discuss"!==L&&W({parent:null})},[M,w,S,L,W,null===k||void 0===k?void 0:k.autosaveTimeout]);(0,y.ZC)(([e])=>{D&&!e&&(z(),$(!1))},[D,z,$]);const U=null===T||void 0===T?void 0:T.autosaves,q=(0,o.useCallback)(()=>{w||(clearTimeout(x.current),x.current=setTimeout(()=>$(!0),(null===k||void 0===k?void 0:k.autosaveTimeout)||1e4))},[w,null===k||void 0===k?void 0:k.autosaveTimeout,$]);return(0,o.useEffect)(()=>{if(U&&P&&void 0!==(null===e||void 0===e?void 0:e.id)){const t=(0,f.Og)(A,()=>{S&&null!==e&&void 0!==e&&e.is_inited&&q()});return()=>{t.dispose()}}},[A,q,U,P,null===e||void 0===e?void 0:e.id,S,null===e||void 0===e?void 0:e.is_inited]),(0,y.ZC)(([t,n])=>{U&&P&&void 0!==(null===e||void 0===e?void 0:e.id)&&S&&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)||q())},[null===e||void 0===e?void 0:e.title,null===e||void 0===e?void 0:e.common_styles,S,P,q,null===e||void 0===e?void 0:e.id,null===e||void 0===e?void 0:e.is_inited]),(0,o.useEffect)(()=>()=>{clearTimeout(x.current)},[T,null===e||void 0===e?void 0:e.renderGuid]),(0,o.useEffect)(()=>{clearTimeout(x.current)},[null===e||void 0===e?void 0:e.modified]),R}},14109:(e,t,n)=>{"use strict";n.d(t,{f:()=>g});var a=n(93506),r=n(65893),o=n(7714),i=n(65185),l=n(7314),s=n(42500),c=n(26557),d=n(1936),m=n(52898),u=n(61062),p=n(71715),h=n(40963);const g=(e,t)=>{var n,g,b,f,v;const y=(0,p.wA)(),E=(0,l.fn)(),C=(0,o.QC)(),_=(0,i.ml)(r.AZ.WILL_EMAIL_INIT_ID),k=(0,i.ml)(r.AZ.ON_EMAIL_INIT_ID),w=(0,i.ml)(r.AZ.ON_CONTENT_CHANGED_ID),A=(0,i.ml)(r.AZ.ON_EMAIL_CHANGED_ID),x=(0,i.ml)(r.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=E.getValue();A.fire({...n,id:t||n.isNew?void 0:n.id,html:e})}},[E,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===(g=e.utm_parameters)||void 0===g?void 0:g.utm_content)||"",(null===e||void 0===e||null===(b=e.utm_parameters)||void 0===b?void 0:b.utm_medium)||"",(null===e||void 0===e||null===(f=e.utm_parameters)||void 0===f?void 0:f.utm_source)||"",(null===e||void 0===e||null===(v=e.utm_parameters)||void 0===v?void 0:v.utm_term)||"",A,t]),(0,c.ZC)(([e])=>{e!==E&&x.fire(E)},[E,x]),(0,d.useEffect)(()=>{if(a.EW.isPlugin){const n=E.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=E.getValue();w.fire(e),A.fire({...n,id:t||n.isNew?void 0:n.id,html:e})}});return()=>n.dispose()}},[E,w,A,e,t]);const T=(0,d.useCallback)(async()=>{const e=L.current;try{var t;(0,s.po)(E),E.setValue((null===e||void 0===e||null===(t=e.html)||void 0===t?void 0:t.replaceAll("\r\n","\n"))||"")}finally{(0,s.SF)(E)}const n=E.getValue();await C.sendAsync(a.Ru.SANDBOX_SET_ENTITY,{html:n,guid:e.renderGuid})},[E,C]),B=(0,d.useCallback)(async()=>{const e=L.current;await C.sendAsync(a.Ru.SANDBOX_SET_ENTITY,{html:E.getValue(),guid:e.renderGuid})},[E,C]),I=(0,d.useCallback)(async()=>{const e=L.current;void 0!==e.preheader&&await C.sendAsync(a.Ru.SANDBOX_PREHEADER_UPDATE,{value:e.preheader,guid:e.renderGuid,force:!0})},[C]),R=(0,d.useCallback)(async()=>{const e=L.current;void 0!==e.subject&&await C.sendAsync(a.Ru.SANDBOX_SUBJECT_UPDATE,{value:e.subject,guid:e.renderGuid,force:!0})},[C]),N=(0,d.useCallback)(()=>{const e=L.current;return C.sendAsync(a.Ru.SANDBOX_INITED,{guid:e.renderGuid})},[C]),O=(0,d.useCallback)(e=>{const n=L.current;y(void 0===n.id?(0,u.Uh)(!0):(0,m.Wm)(!0));const a={...n,id:t||n.isNew?void 0:n.id,html:E.getValue()};return e&&(a.reset=!0),k.fire(a)},[y,k,E,t]),P=(0,d.useCallback)(()=>{const e=L.current;return C.sendAsync(a.Ru.SANDBOX_INIT_START,{guid:e.renderGuid})},[C]),M=(0,d.useCallback)(()=>{const e=L.current;return _.fire({...e,id:t||e.isNew?void 0:e.id,html:E.getValue()})},[_,E,t]),[F]=(0,c.cM)(function*(){try{S.current=!0,yield*(0,h.T1)(P),yield*(0,h.T1)(M),yield*(0,h.T1)(T),yield*(0,h.T1)(I),yield*(0,h.T1)(R),yield*(0,h.T1)(N),yield*(0,h.T1)(O)}finally{S.current=!1}},[T,I,R,O,M,P,N]),[j]=(0,c.cM)(function*(){try{yield*(0,h.T1)(P),yield*(0,h.T1)(M),yield*(0,h.T1)(B),yield*(0,h.T1)(I),yield*(0,h.T1)(R),yield*(0,h.T1)(N),yield*(0,h.T1)(O)}catch(e){}},[T,I,R,O,M,P,N]);(0,c.ZC)(async([t])=>{const n=null===e||void 0===e?void 0:e.renderGuid;n&&n!==t&&F()},[null===e||void 0===e?void 0:e.renderGuid,F]),(0,d.useEffect)(()=>{const e=C.addListenerAsync(a.Ru.RELOAD,async()=>{await j()});return()=>e.dispose()},[C,j])}},47794:(e,t,n)=>{"use strict";n.d(t,{QM:()=>s,g0:()=>p,oF:()=>g,q2:()=>u,xi:()=>h});var a=n(15938),r=n.n(a),o=n(11822),i=n(86080),l=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,o.An)(e,async e=>{const a=e.document;await(0,o.bc)(a,async e=>{e=e.replace("\\","/");const n=(0,o.$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(r()),{files:i}=await a.loadAsync(e),l=Object.keys(i).map(e=>i[e]),s=i[c]||d(l,c)||d(l,".html")||d(l,".htm");if(s){const e=s.name.split("/"),a=document.location.pathname.split("/"),r=document.location.origin+a.slice(0,a.length-e.length).join("/")+"/",l=await s.async("text"),c=e.slice(0,e.length-1).join("/");return await(0,o.An)(l,async e=>{const a=e.document;await(0,o.bc)(a,async e=>{(e=e.replace("\\","/")).startsWith(".")&&(e=e.substring(1)),e.startsWith("/")&&(e=e.substring(1)),e.startsWith(r)&&(e=e.substring(r.length)),c&&!e.match("^(ht|f)tp(s?)://")&&(e=`${c}/${e}`);const n=i[e];if(n){const e=n.name,a=await n.async("blob");return t(a,e)}const a=(0,o.$l)(e);return t(e,a)}),n&&n(e)})}}(e,t,a);case"eml":{const r=await e.text(),{readEml:o}=await n.e(4504).then(n.bind(n,94504)),i=o(r);if(i instanceof Error)throw i;const l="string"===typeof i?i:i.html;if("undefined"===typeof l){throw new Error("Eml does not contain text/html")}return m(l,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 h=(e,t,n,a)=>async(r,o)=>{try{const s=await async function(e,t){if("string"!==typeof e)return e;try{const n=(0,i.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}}(r,e);if(!s)return"string"===typeof r?r:"";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}(o,s.type,l),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}),r)}catch(s){return"string"===typeof r?r:""}},g=e=>t=>{const n=t.document;n.title=(null===n||void 0===n?void 0:n.title)||(0,o.Ay)(e.name)[0]}},63922:(e,t,n)=>{"use strict";n.d(t,{h:()=>_});var a=n(1936),r=n(94994),o=n(93506),i=n(7314),l=n(15582),s=n(6403),c=n(71715),d=n(98173),m=n(47706),u=n(45092),p=n(7714),h=n(82106),g=n(42500),b=n(90946);const f=1e3,v=2e3,y=10,E="iframe_errors",C=5;function _(e,t){const{__:n}=(0,m.s9)(),_=(0,p.QC)(),k=(0,i.aD)(e),{error:w}=(0,s.hN)(),A=(0,a.useRef)(0),x=(0,a.useRef)(void 0),S=(0,a.useRef)(!1),L=(0,c.d4)(d.C1),T=(0,a.useCallback)(e=>new Promise((t,n)=>{const a=_.addListener(o.Ru.SANDBOX_READY,()=>{a.dispose(),t()});e&&setTimeout(()=>{a.dispose(),n("timeout")})}),[_]),B=(0,a.useCallback)(a=>{T(v).catch(e=>{}).finally(()=>{Promise.resolve().then(()=>{if(!S.current){if(++A.current){if(x.current){if(A.current<C){k.restoreSnapshot(x.current);for(let e=0;e<A.current;e++)k.undo()}}else x.current=k.createSnapshot();_.send(o.Ru.RELOAD)}setTimeout(()=>{if(0===--A.current){x.current=null;const r=new Error(a.message);a.stack&&(r.stack=a.stack);const o=b.Cp(r,{tags:{origin:"iframe"}}),i={past:k.getPast().slice(0,y),future:k.getFuture(),errorResolved:!S.current,text:e.getValue(),message:a.message,stack:a.stack,userId:null===L||void 0===L?void 0:L.id,entityId:null===t||void 0===t?void 0:t.id,entityType:document.location.pathname.indexOf("emails")>0?"email":"block",sentryEventId:o};w({id:"IFRAME_ERROR",data:i,message:n("Something went wrong")}),u.CJ.post(E,i).catch(e=>{}),S.current=!1}},v)}})})},[k,e,w,null===L||void 0===L?void 0:L.id,null===t||void 0===t?void 0:t.id,n,T,_]);(0,l.A)(o.Ru.APPLICATION_DOMPARSER_ERROR,B),(0,a.useEffect)(()=>{let n=null,a=0;function i(e){const t=[];for(const{rangeOffset:n,rangeLength:a,text:r}of e.changes)t.push({range:{start:n,end:n+a},text:r});return t}let l=!1;const s=new h.j;return s.addDisposable((0,g.Og)(e,e=>(async e=>{if(l)await _.sendAsync(o.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 _.sendAsync(o.Ru.SANDBOX_UPDATE_ENTITY,{edits:e.map(i),guid:t.renderGuid})}while(n.length);n=null}})(e).catch(e=>{}))),s.addDisposable(_.addListener(o.Ru.APPLICATION_UPDATE_ENTITY,function({guid:n,edits:o,pushUndoStop:i}){if(e&&n===t.renderGuid)try{l=!0;const t=(0,r.yc)(),n=t.canUndo(e.uri),s=t.canRedo(e.uri),c=o.map(({text:t,range:n})=>{const a=e.getPositionAt(n.start),r=e.getPositionAt(n.end);return{text:t,range:{startColumn:a.column,startLineNumber:a.lineNumber,endColumn:r.column,endLineNumber:r.lineNumber}}});i||n||s?e.pushEditOperations([],c,()=>null):e.applyEdits(c),!1!==i&&(a&&clearTimeout(a),a=setTimeout(()=>{e.pushStackElement(),a=0},f))}finally{l=!1}})),()=>{s.dispose(),a&&clearTimeout(a)}},[e,_,t.renderGuid])}},42500:(e,t,n)=>{"use strict";n.d(t,{Og:()=>i,SF:()=>o,po:()=>r});const a=new Set;function r(e){return a.add(e),{dispose(){o(e)}}}function o(e){a.delete(e)}function i(e,t){let n=e.getVersionId();const r=[],o=e.onDidChangeContent(o=>{if(o.versionId>n+1){const i=e.onDidChangeContent(l=>{if(o.versionId===n+1)try{a.has(e)||t(o)}catch(s){}finally{n=o.versionId;const e=r.indexOf(i);e>=0&&r.splice(e,1),i.dispose()}});r.push(i)}else try{a.has(e)||t(o)}catch(i){}finally{n=o.versionId}});return{dispose:()=>{o.dispose(),r.forEach(e=>e.dispose())}}}},94994:(e,t,n)=>{"use strict";n.d(t,{OI:()=>l,yc:()=>i});var a=n(30831),r=n(18422),o=n(15703);function i(){return a.QE.get(r.$D)}function l(){return a.QE.get(o.L)}},47706:(e,t,n)=>{"use strict";n.d(t,{CY:()=>l,nr:()=>c,s9:()=>s});var a=n(1936),r=n(45103);function o(e){return{__:e.__.bind(e),_x:e._x.bind(e),_n:e._n.bind(e),_nx:e._nx.bind(e),sprintf:r.nv,isRTL:e.isRTL.bind(e),hasTranslation:e.hasTranslation.bind(e)}}const i=(0,a.createContext)(o(r.y3));function l(e){const{children:t,i18n:n=r.y3}=e,[,l]=(0,a.useReducer)(()=>[],[]);(0,a.useEffect)(()=>n.subscribe(l),[n]);const s=(0,a.useMemo)(()=>o(n),[n]);return(0,a.createElement)(i.Provider,{value:s},t)}const s=()=>(0,a.useContext)(i),c=r.y3},26557:(e,t,n)=>{"use strict";n.d(t,{ZC:()=>o,cM:()=>i});var a=n(1936),r=n(40963);const o=(e,t)=>{const n=(0,a.useRef)(void 0);n.current=e;const r=(0,a.useRef)(void 0);(0,a.useEffect)(()=>{null!==r.current&&n.current(r.current||[]),r.current=t},t)};function i(e,t){const n=(0,a.useRef)(void 0),o=(0,a.useCallback)(()=>{const e=n.current;e&&(0,r.eF)(e.halt)},[]);(0,a.useEffect)(()=>()=>o(),[o]);const i=(0,a.useCallback)(e,t);return[(0,a.useCallback)((...e)=>{o();const t=(0,r.eF)(()=>i(...e));return n.current=t,t},[o,i]),o]}},70514:(e,t,n)=>{"use strict";n.d(t,{W:()=>E,i:()=>C});const a=/^https:\/\/(?:media\d*|i)\.giphy\.com\/media/i,r=/^https:\/\/api\.giphy\.com\/v1\/gifs/i,o=/^https:\/\/images\.unsplash\.com/i,i=/^https:\/\/api\.unsplash\.com/i,l=/^https:\/\/assets\.streamlinehq\.com\/image\/private/i,s=/^https:\/\/public-api\.streamlinehq\.com/i,c="https://api.emailmaker.ru/services/stock_images",d="https://api.emailmaker.ru/services/stock_icons",m="https://api.emailmaker.ru/services/stock_images_api",u="https://api.emailmaker.ru/services/stock_icons_api",p="https://px0.racs.rest/",h=[c?{pattern:o,proxy:c,pathTransform:e=>e}:null,d?{pattern:l,proxy:d,pathTransform:e=>e.replace(/^\/image\/private\/?/,"/")||"/"}:null,m?{pattern:i,proxy:m,pathTransform:e=>e}:null,u?{pattern:s,proxy:u,pathTransform:e=>e}:null].filter(Boolean),g=[o,i,a,r,l,s];function b(e){return e.replace(/\/$/,"")}function f(e){return[p,...h.map(({proxy:e})=>e)].filter(Boolean).map(e=>b(e)).some(t=>e.startsWith(t))}function v(e,t,n){const a=b(t),r=n(e.pathname);return`${a}/${r.startsWith("/")?r.slice(1):r}${e.search}${e.hash}`}function y(e){return a.test(e)||r.test(e)}function E(e){try{if(f(e))return e;const t=new URL(e);for(const{pattern:n,proxy:a,pathTransform:r}of h)if(n.test(e))return v(t,a,r);if(y(e))return e;if(p){const e=b(p),n=(t.pathname||"/").replace(/^\//,""),a=new URLSearchParams(t.searchParams);return a.set("proxy_url",t.origin),`${e}/${n}?${a}${t.hash}`}return e}catch{return e}}function C(e){try{if(f(e))return e;const t=new URL(e);for(const{pattern:n,proxy:a,pathTransform:r}of h)if(n.test(e))return v(t,a,r);if(y(e))return e;if(function(e){return g.some(t=>t.test(e))}(e))return e;if(p){const e=b(p),n=(t.pathname||"/").replace(/^\//,""),a=new URLSearchParams(t.searchParams);return a.set("proxy_url",t.origin),`${e}/${n}?${a}${t.hash}`}return e}catch{return e}}},86457:(e,t,n)=>{"use strict";n.d(t,{A5:()=>d,FN:()=>c,Hk:()=>s,c8:()=>m});var a=n(1936),r=n(93506),o=n(7714);const i=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]"),l=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=light]"),s=e=>{let t,n;e===r.IJ?(t=r.vd,n=r.F3):(t=e===r.T?r.y2:r.CJ,n=e===r.nd?r.y2:r.CJ),[...l].forEach(e=>{e.media=t}),[...i].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 r=t.querySelector('[data-theme-varibalse="true"]');r?t.replaceChild(n,r):t.insertBefore(n,t.firstChild)}},d=e=>{const t=document.body;t.classList.contains(e)||setTimeout(()=>{t.classList.remove(e===r.nd?r.T:r.nd),e&&t.classList.add(e)},200)},m=()=>{const e=(0,o.XW)();return(0,a.useCallback)(()=>{const t=window.localStorage.getItem(r.V0.em_color_scheme),n=matchMedia(r.F3).matches?r.nd:r.T,a=t||n;e({operation:r.Ru.UPDATE_PREVIEW,theme:a})},[e])}},72227:(e,t,n)=>{"use strict";function a(e){return e}function r({data:e,...t},n){return t.error?t:{data:n(e,t.meta),...t}}function o(e){return t=>r(t,e)}function i(e){return t=>r(t,(t,n)=>t.hasOwnProperty("previous")?e(t.previous,n):e(t,n))}function l(e){return t=>function({data:e,...t},n){return t.error?t:{data:e.map(e=>n(e,t.meta)),...t}}(t,e)}n.d(t,{Ih:()=>l,PI:()=>i,SA:()=>r,SC:()=>o,ur:()=>a})},20387:(e,t,n)=>{"use strict";n.d(t,{a:()=>r,t:()=>o});var a=n(1331);function r(e,t,n,r){const o=(0,a.Sb)(e),i=Symbol(`once-handler-${t}`),l=o?e=>{e[i]||(e[i]=!0,n(e))}:n;return null===o||void 0===o||o.addEventListener(t,l,r),window.addEventListener(t,l,r),{dispose:()=>{null===o||void 0===o||o.removeEventListener(t,l,r),window.removeEventListener(t,l,r)}}}function o(e,t,n,r){const o=(0,a.Sb)(e),i=Symbol(`once-handler-${t}`),l=o?e=>{e[i]||(e[i]=!0,n(e))}:n;return null===o||void 0===o||o.addEventListener(t,l,r),document.addEventListener(t,l,r),{dispose:()=>{null===o||void 0===o||o.removeEventListener(t,l,r),document.removeEventListener(t,l,r)}}}},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:()=>r});var a=n(69986);function r(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:()=>r});var a=n(47706);const r=()=>{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),r=n(71715),o=n(84075),i=n(89591),l=n(52898);const s=()=>{const e=(0,r.wA)(),t=(0,r.d4)(l.zn);let n=(0,o.zy)();(0,a.useEffect)(()=>{/emails\/[0-9]+$/.test(n.pathname)||t&&e(i.GY.util.invalidateTags([{type:"Emails",id:+t}]))},[n,e,t])}},15582:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(1936),r=n(7714);function o(e,t){const n=(0,r.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),r=n(84075),o=n(71715),i=n(98173),l=n(72531);const s=e=>{const t=(0,o.d4)(i.C1),[n,s]=(0,a.useState)({owner:!1,admin:!1}),c=(0,r.KC)(),{data:d}=(0,l.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:r,users:o}=m.members,i=r?r.map(e=>e.ID):r,l=o?o.map(e=>e.ID):o;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:i&&i.includes(t.id),user:l&&l.includes(t.id)})}},[m,t.id]),n}},34972:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(1936),r=n(71715),o=n(84075),i=n(11105),l=n(93506),s=n(2527);const c=()=>{const e=(0,r.wA)(),t=(0,s.p)(),n=(0,r.d4)(i.Sl);let c=(0,o.zy)();(0,a.useEffect)(()=>{c.pathname.endsWith("/new")||n&&(e((0,i.X8)()),t.remove(l.A9.em_new_block))},[c,n,e,t])}},12723:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(1936),r=n(71715),o=n(84075),i=n(61062),l=n(93506),s=n(2527);const c=()=>{const e=(0,s.p)(),t=(0,r.wA)(),n=(0,r.d4)(i.$S);let c=(0,o.zy)();(0,a.useEffect)(()=>{c.pathname.endsWith("/new")||(e.remove(l.A9.em_new_email),e.remove(l.A9.em_template_email),n&&t((0,i.Et)()))},[c,n,t,e])}},25820:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(93506);const r=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:()=>i});var a=n(1936),r=n(69622),o=n(96040);const i=({integration:e,isConfigured:t,onClick:n,__:i})=>a.createElement(r.Zp,{hoverable:!0,onClick:n,style:{textAlign:"center",height:"100%",position:"relative"},bodyStyle:{padding:"12px 8px"}},t&&a.createElement(o.A,{icon:"CheckCircleOutlined",style:{color:"#52c41a",fontSize:"16px",position:"absolute",top:6,left:6}}),a.createElement(r.$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(r.EY,{strong:!0},i(e.name))));var l=n(94395);const s=(e,t)=>{const n={placeholder:e.placeholder?t(e.placeholder):void 0},i={marginBottom:5};switch(e.type){case"password":return a.createElement(r._2,Object.assign({},n,{style:i,autoComplete:"new-password",iconRender:e=>e?a.createElement(o.A,{icon:"EyeOutlined"}):a.createElement(o.A,{icon:"EyeInvisibleOutlined"})}));case"email":return a.createElement(r.pd,Object.assign({},n,{type:"email",style:i}));case"number":return a.createElement(r.YI,Object.assign({},n,{style:{width:"100%",...i},min:1}));case"checkbox":return a.createElement(r.Sc,{style:i},t(e.label));default:return a.createElement(r.pd,Object.assign({},n,{style:i}))}},c=(e,t,n,a)=>{var r,o,i;if(!e.required)return"email"===e.type?[{type:"email",message:a("Please enter valid email")}]:[];const s=(null===n||void 0===n||null===(r=n.getFieldValue)||void 0===r?void 0:r.call(n,["integrations",t]))||{},c=l.Gn[t];return null!==(o=null===c||void 0===c||null===(i=c.settingsFields)||void 0===i?void 0:i.some(e=>e.required&&!!s[e.name]))&&void 0!==o&&o?[{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 o=e.settingsFields,i=o.filter(e=>e.helpUrl),l=o.filter(e=>!e.helpUrl);return a.createElement(a.Fragment,null,i.map(o=>a.createElement(a.Fragment,{key:o.name},a.createElement(r.so,{justify:"space-between",style:{marginBottom:8}},a.createElement("span",null,o.required&&"api_key"!==o.name&&a.createElement("span",{style:{color:"#ff4d4f",marginRight:4}},"*"),"api_key"===o.name&&a.createElement("span",{style:{color:"#ff4d4f",marginRight:4}},"*"),n(o.label)),a.createElement("a",{href:o.helpUrl,target:"_blank",rel:"noopener noreferrer"},n("How to get an API key?"))),a.createElement(r.fI,{gutter:24},a.createElement(r.fv,{span:24},a.createElement(r.lV.Item,{name:["integrations",e.id,o.name],rules:c(o,e.id,t,n),extra:o.extra?n(o.extra):void 0,style:{marginBottom:24}},s(o,n)))))),(t=>{const o=l.filter(e=>e.fullWidth),i=l.filter(e=>!e.fullWidth),c=[...o,...i],d=null===(t=c[c.length-1])||void 0===t?void 0:t.name;return a.createElement(a.Fragment,null,o.map(t=>a.createElement(r.fI,{gutter:24,key:t.name},a.createElement(r.fv,{span:24},a.createElement(r.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(r.fI,{gutter:24},i.map((t,o)=>{const l=o===i.length-1&&i.length%2===1?24:12,c=t.name===d;return a.createElement(r.fv,{span:l,key:t.name},a.createElement(r.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:o,onCancel:i,__:l})=>{const[s]=r.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(r.aF,{title:l(`Export to ${e.name}`),open:t,onOk:()=>{n||s.validateFields().then(e=>{o(e)})},onCancel:()=>{s.resetFields(),i()},okText:l("Export"),cancelText:l("Cancel"),confirmLoading:n,cancelButtonProps:{disabled:n}},d&&a.createElement(r.Fc,{message:l(d.label),description:l(d.helpText),type:"info",showIcon:!0,style:{marginBottom:16}}),a.createElement(r.lV,{form:s,layout:"vertical"},c.map(e=>a.createElement(r.lV.Item,{key:e.name,label:l(e.label),name:e.name,rules:[...e.required?[{required:!0,message:l(`Please enter ${e.label.toLowerCase()}`)}]:[],..."number"===e.type?[{type:"number",message:l(`${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(r.YI,Object.assign({},n,{min:1}));case"email":return a.createElement(r.pd,Object.assign({},n,{type:"email"}));default:return a.createElement(r.pd,n)}})(e,l)))))}},78679:(e,t,n)=>{"use strict";n.d(t,{_:()=>E});var a=n(33480),r=n(42161),o=n(48822),i=n(87644),l=n(69884),s=n(59283),c=n(16360),d=n(44056),m=n(20833),u=n(12465),p=n(98881),h=n(36472),g=n(79496),b=n(96968),f=n(77514),v=n(50121),y=n(47706);const E=()=>{const{__:e}=(0,y.s9)(),[t,{isLoading:n}]=(0,a.r)(),[E,{isLoading:C}]=(0,r.S)(),[_,{isLoading:k}]=(0,o._)(),[w,{isLoading:A}]=(0,i.k)(),[x,{isLoading:S}]=(0,l.c)(),[L,{isLoading:T}]=(0,s.X)(),[B,{isLoading:I}]=(0,c.X)(),[R,{isLoading:N}]=(0,d.T)(),[O,{isLoading:P}]=(0,m.T)(),[M,{isLoading:F}]=(0,u.X)(),[j,{isLoading:V}]=(0,p.X)(),[H,{isLoading:W}]=(0,h.X)(),[D,{isLoading:$}]=(0,g.X)(),[z,{isLoading:U}]=(0,b.b)(),[q,{isLoading:Z}]=(0,f.X)(),[G,{isLoading:X}]=(0,v.A)(),Y={unisender:async(n,a,r,o)=>{try{var i;const l=await t({api_key:n.api_key,sender_name:n.sender_name,sender_email:n.sender_email,subject:o,body:r,list_id:a.list_id,generate_text:1,lang:"ru"}).unwrap();return null!==(i=l.result)&&void 0!==i&&i.message_id?{success:!0,message:e("Email successfully created!"),link:{url:`https://app.unisender.com/ru/v5/spa/email-campaign/editor/${l.result.message_id}?step=send`,text:e("Open in Unisender")}}:l.error?{success:!1,error:l.error+(l.code?` (${l.code})`:"")}:{success:!1,error:e("Unknown error")}}catch(l){return{success:!1,error:l.message||e("Failed to create email")}}},mailganer:async(t,n,a,r)=>{try{const o=await E({api_key:t.api_key,name:n.name,html_content:a,theme:n.theme||r,from_name:t.from_name,from_email:t.from_email}).unwrap();return 1===o.status&&o.public_id?{success:!0,message:e("Mailing successfully created!"),link:o.step1_url?{url:o.step1_url,text:e("Open in Mailganer")}:void 0}:o.error?{success:!1,error:o.error}:{success:!1,error:e("Unknown error")}}catch(o){return{success:!1,error:o.message||e("Failed to create mailing")}}},sendsay:async(t,n,a,r)=>{try{var o;const r=await _({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!==(o=r.obj)&&void 0!==o&&o.id?{success:!0,message:e("Draft successfully created!"),link:{url:`https://app.sendsay.ru/content/drafts/email/${r.obj.id}/settings`,text:e("Open in Sendsay")}}:r.errors&&r.errors.length>0?{success:!1,error:r.errors.map(e=>e.explain).join(", ")}:r.error?{success:!1,error:r.explain||r.error}:{success:!1,error:e("Unknown error")}}catch(i){return{success:!1,error:i.message||e("Failed to create draft")}}},altcraft:async(t,n,a,r)=>{try{const o=await w({api_url:t.api_url,api_key:t.api_key,name:n.name,html_content:a,subject:n.subject||r,from_name:t.from_name,from_email:t.from_email}).unwrap();return 0===o.error?{success:!0,message:e("Template successfully created!")}:{success:!1,error:o.error_text||e("Unknown error")}}catch(o){return{success:!1,error:o.message||e("Failed to create template")}}},enkod:async(t,n,a,r)=>{try{const r=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(r.success||r.messageId||r.id){const t=r.messageId||r.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 r.error||r.message?{success:!1,error:r.error||r.message||e("Unknown error")}:{success:!1,error:e("Unknown error")}}catch(o){return{success:!1,error:o.message||e("Failed to create draft")}}},mailchimp:async(t,n,a,r)=>{try{const i=await L({api_key:t.api_key,list_id:n.list_id,subject:n.subject||r,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();if(i.id){var o;const n=(null===(o=t.api_key)||void 0===o?void 0:o.split("-")[1])||"us1";return{success:!0,message:e("Campaign successfully created!"),link:{url:`https://${n}.admin.mailchimp.com/campaigns/#r:campaignId=${i.id}`,text:e("Open in Mailchimp")}}}return{success:!1,error:e("Unknown error")}}catch(i){return{success:!1,error:i.message||e("Failed to create campaign")}}},klaviyo:async(t,n,a,r)=>{try{const o=await B({api_key:t.api_key,list_id:n.list_id,subject:n.subject||r,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();return o.id?{success:!0,message:e("Campaign successfully created!"),link:{url:`https://www.klaviyo.com/campaign/${o.id}/wizard/1`,text:e("Open in Klaviyo")}}:{success:!1,error:e("Unknown error")}}catch(o){return{success:!1,error:o.message||e("Failed to create campaign")}}},hubspot:async(t,n,a,r)=>{try{const o=await R({api_key:t.api_key,name:n.name,subject:n.subject||r,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();return o.id?{success:!0,message:e("Email successfully created!"),link:{url:`https://app.hubspot.com/email/0/edit/${o.id}`,text:e("Open in HubSpot")}}:{success:!1,error:e("Unknown error")}}catch(o){return{success:!1,error:o.message||e("Failed to create email")}}},salesforce_mc:async(t,n,a,r)=>{try{const o=await O({subdomain:t.subdomain,client_id:t.client_id,client_secret:t.client_secret,name:n.name,subject:n.subject||r,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();return o.id?{success:!0,message:e("Email successfully created!"),link:{url:`https://app.s7.exacttarget.com/ContentBuilder?app=contentbuilder&id=${o.id}`,text:e("Open in Marketing Cloud")}}:{success:!1,error:e("Unknown error")}}catch(o){return{success:!1,error:o.message||e("Failed to create email")}}},activecampaign:async(t,n,a,r)=>{try{const o=await M({api_url:t.api_url,api_key:t.api_key,list_id:t.list_id,name:n.name,subject:n.subject||r,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();if(o.campaignId){const n=(t.api_url||"").replace(/\/$/,"").match(/https?:\/\/([^.]+)\.api-/),a=n?n[1]:"",r=a?`https://${a}.activehosted.com/app/campaigns/${o.campaignId}`:"https://www.activecampaign.com/app/campaigns";return{success:!0,message:e("Draft campaign created! Open it to review and schedule."),link:{url:r,text:e("Open draft campaign")}}}return{success:!1,error:e("Unknown error")}}catch(o){const n=o.message||o.error||"";if("NO_MAILING_ADDRESS"===n){const n=(t.api_url||"").replace(/\/$/,"").match(/https?:\/\/([^.]+)\.api-/),a=n?n[1]:"",r=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: ")+r}}return{success:!1,error:n||e("Failed to create campaign")}}},brevo:async(t,n,a,r)=>{try{const o=await j({api_key:t.api_key,list_id:Number(n.list_id),name:n.name,subject:n.subject||r,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();return o.id?{success:!0,message:e("Campaign successfully created!"),link:{url:`https://app.brevo.com/marketing-campaign/edit/${o.id}`,text:e("Open in Brevo")}}:{success:!1,error:e("Unknown error")}}catch(o){return{success:!1,error:o.message||e("Failed to create campaign")}}},campaign_monitor:async(t,n,a,r)=>{try{var o;const a=null===(o=n.html_url)||void 0===o?void 0:o.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 i=await H({api_key:t.api_key,client_id:t.client_id,list_id:n.list_id,name:n.name,subject:n.subject||r,from_name:t.from_name,from_email:t.from_email,html_url:a.trim()}).unwrap();return i.id?{success:!0,message:e("Campaign successfully created!"),link:{url:`https://app.createsend.com/campaigns/#/${i.id}`,text:e("Open in Campaign Monitor")}}:{success:!1,error:e("Unknown error")}}catch(i){return{success:!1,error:i.message||e("Failed to create campaign")}}},constant_contact:async(t,n,a,r)=>{try{return(await D({access_token:t.access_token,list_id:n.list_id,name:n.name,subject:n.subject||r,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(o){return{success:!1,error:o.message||e("Failed to create campaign")}}},getresponse:async(t,n,a,r)=>{try{const o=await z({api_key:t.api_key,from_field_id:t.from_field_id,campaign_id:n.campaign_id,name:n.name,subject:n.subject||r,html:a}).unwrap();return o.newsletterId?{success:!0,message:e("Newsletter successfully created!"),link:{url:`https://app.getresponse.com/letter/${o.newsletterId}`,text:e("Open in GetResponse")}}:{success:!1,error:e("Unknown error")}}catch(o){return{success:!1,error:o.message||e("Failed to create newsletter")}}},dotdigital:async(t,n,a,r)=>{try{const o=await q({username:t.username,password:t.password,region:t.region||"r1",name:n.name,subject:n.subject||r,from_name:t.from_name,from_email:t.from_email,html:a}).unwrap();return o.id?{success:!0,message:o.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(o){return{success:!1,error:o.message||e("Failed to create campaign")}}},bento:async(t,n,a,r)=>{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||r,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(o){return{success:!1,error:o.message||e("Failed to create broadcast")}}}};return{exportToIntegration:async(t,n,a,r,o)=>{const i=Y[t];return i?i(n,a,r,o):{success:!1,error:e("Unknown integration")}},isLoading:n||C||k||A||S||T||I||N||P||F||V||W||$||U||Z||X}}},29692:(e,t,n)=>{"use strict";n.d(t,{I9:()=>r.I9,XJ:()=>r.XJ,rg:()=>a.rg,v0:()=>a.v0,hS:()=>a.hS});var a=n(94395),r=n(49077);n(78679),n(1936);n(33480),n(42161),n(48822)},12465:(e,t,n)=>{"use strict";n.d(t,{N:()=>o,X:()=>i});var a=n(94104),r=n(53366);const o=(0,a.xP)({reducerPath:"activecampaignApi",baseQuery:(0,r.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,n,a)=>{var r,o,i;const l=e.api_url.replace(/\/$/,"");const s=e.api_key,c={"Content-Type":"application/json","Api-Token":s},d=await a({url:`?proxy_url=${encodeURIComponent(`${l}/api/3/addresses`)}`,method:"GET",headers:{"Api-Token":s}});if(d.error)return{error:{status:"CUSTOM_ERROR",error:"Failed to load mailing addresses. Check your API URL and Key."}};const m=d.data,u=null!==(r=null===m||void 0===m?void 0:m.addresses)&&void 0!==r?r:[],p=null!==(o=u.find(e=>"1"===e.isDefault))&&void 0!==o?o:u[0];if(null===p||void 0===p||!p.id)return{error:{status:"CUSTOM_ERROR",error:"NO_MAILING_ADDRESS"}};const h={message:{name:e.name,fromname:e.from_name,fromemail:e.from_email,email:e.from_email,reply2:e.from_email,subject:e.subject,html:e.html,text:(g=e.html,g.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()||" "),preheader_text:"",format:"mime"}};var g;const b=await a({url:`?proxy_url=${encodeURIComponent(`${l}/api/3/messages`)}`,method:"POST",headers:c,body:JSON.stringify(h)});if(b.error){var f;const e=b.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(f=e.data)||void 0===f?void 0:f.message)||(null===e||void 0===e?void 0:e.error)||"Failed to create message."}}}const v=b.data,y=null===v||void 0===v||null===(i=v.message)||void 0===i?void 0:i.id;if(!y)return{error:{status:"CUSTOM_ERROR",error:"Message created but no ID returned."}};const E=`${l}/admin/api.php?api_action=campaign_create&api_output=json`,C=new URLSearchParams;C.append("type","single"),C.append("name",e.name),C.append("sdate","2099-12-31 12:00:00"),C.append("status","0"),C.append("public","1"),C.append("trackreads","1"),C.append("tracklinks","all"),C.append("htmlunsub","1"),C.append("textunsub","1"),C.append("addressid",String(p.id)),C.append(`p[${e.list_id}]`,e.list_id),C.append(`m[${y}]`,"100");const _=await a({url:`?proxy_url=${encodeURIComponent(E)}`,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","Api-Token":s},body:C.toString()});if(_.error){var k;const e=_.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(k=e.data)||void 0===k?void 0:k.result_message)||(null===e||void 0===e?void 0:e.error)||"Message created, but campaign creation failed."}}}const w=_.data;if(0===Number(null===w||void 0===w?void 0:w.result_code))return{error:{status:"CUSTOM_ERROR",error:(null===w||void 0===w?void 0:w.result_message)||"Campaign creation failed (v1 API)."}};const A=null===w||void 0===w?void 0:w.id;return A?{data:{campaignId:String(A)}}:{error:{status:"CUSTOM_ERROR",error:(null===w||void 0===w?void 0:w.result_message)||"Campaign created but no ID returned."}}}})})}),{useCreateCampaignMutation:i}=o},87644:(e,t,n)=>{"use strict";n.d(t,{q:()=>o,k:()=>i});var a=n(94104),r=n(53366);const o=(0,a.xP)({reducerPath:"altcraftApi",baseQuery:(0,r.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({addTemplate:e.mutation({query:e=>{var t;const n=`${e.api_url}/api/v1.1/templates/add`,a={token:e.api_key,name:e.name,channels:[{sid:"email",fields:{html:e.html_content,text:"",subject:e.subject||e.name,from_email:e.from_email||"",from_name:e.from_name||"",replyto_email:"",replyto_name:"",is_not_inline:!0}}],is_draft:null!==(t=e.is_draft)&&void 0!==t&&t};return{url:`?proxy_url=${encodeURIComponent(n)}`,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}}})})}),{useAddTemplateMutation:i}=o},50121:(e,t,n)=>{"use strict";n.d(t,{d:()=>o,A:()=>i});var a=n(94104),r=n(53366);const o=(0,a.xP)({reducerPath:"bentoApi",baseQuery:(0,r.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createBroadcast:e.mutation({queryFn:async(e,t,n,a)=>{var r;const o={broadcasts:[{name:e.name,subject:e.subject,content:e.html,type:"raw",from:{email:e.from_email,name:e.from_name},inclusive_tags:e.inclusive_tags||"subscribers",exclusive_tags:"",segment_id:e.segment_id||"",batch_size_per_hour:500,approved:!1}]},i=`https://app.bentonow.com/api/v1/batch/broadcasts?site_uuid=${encodeURIComponent(e.site_uuid)}`,l=await a({url:`?proxy_url=${encodeURIComponent(i)}`,method:"POST",headers:{"Content-Type":"application/json",Authorization:(s=e.publishable_key,c=e.secret_key,`Basic ${btoa(`${s}:${c}`)}`),"User-Agent":"EmailMaker/1.0"},body:JSON.stringify(o)});var s,c;if(l.error){var d;const e=l.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(d=e.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.error)||String(l.error)}}}const m=l.data;return{data:{count:null!==(r=null===m||void 0===m?void 0:m.count)&&void 0!==r?r:1}}}})})}),{useCreateBroadcastMutation:i}=o},98881:(e,t,n)=>{"use strict";n.d(t,{x:()=>o,X:()=>i});var a=n(94104),r=n(53366);const o=(0,a.xP)({reducerPath:"brevoApi",baseQuery:(0,r.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,n,a)=>{const r={name:e.name,subject:e.subject,sender:{name:e.from_name,email:e.from_email},htmlContent:e.html,recipients:{listIds:[e.list_id]}},o=await a({url:`?proxy_url=${encodeURIComponent("https://api.brevo.com/v3/emailCampaigns")}`,method:"POST",headers:{"Content-Type":"application/json","api-key":e.api_key},body:JSON.stringify(r)});if(o.error){var i,l;const e=o.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.message)||(null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.code)||(null===e||void 0===e?void 0:e.error)||String(o.error)}}}const s=o.data;if(null===s||void 0===s||!s.id){const e=o.data;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e?void 0:e.message)||"Failed to create campaign"}}}return{data:{id:s.id}}}})})}),{useCreateCampaignMutation:i}=o},36472:(e,t,n)=>{"use strict";n.d(t,{n:()=>o,X:()=>i});var a=n(94104),r=n(53366);const o=(0,a.xP)({reducerPath:"campaignMonitorApi",baseQuery:(0,r.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,n,a)=>{const r={Name:e.name,Subject:e.subject,FromName:e.from_name,FromEmail:e.from_email,ReplyTo:e.from_email,HtmlUrl:e.html_url,ListIDs:[e.list_id],InlineCss:!0},o=await a({url:`?proxy_url=${encodeURIComponent(`https://api.createsend.com/api/v3.3/campaigns/${e.client_id}.json`)}`,method:"POST",headers:{"Content-Type":"application/json",Authorization:(i=e.api_key,`Basic ${btoa(`${i}:x`)}`)},body:JSON.stringify(r)});var i;if(o.error){var l;const e=o.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.Message)||(null===e||void 0===e?void 0:e.error)||String(o.error)}}}const s=o.data,c="string"===typeof s?s:null===s||void 0===s?void 0:s.id;if(!c||"string"!==typeof c){return{error:{status:"CUSTOM_ERROR",error:(null===s||void 0===s?void 0:s.Message)||"Failed to create campaign"}}}return{data:{id:c}}}})})}),{useCreateCampaignMutation:i}=o},79496:(e,t,n)=>{"use strict";n.d(t,{p:()=>i,X:()=>l});var a=n(94104),r=n(53366);const o="https://api.cc.email/v3",i=(0,a.xP)({reducerPath:"constantContactApi",baseQuery:(0,r.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,n,a)=>{var r;const i=(l=e.html).includes("[[trackingImage]]")?l:l.replace(/<body([^>]*)>/i,"<body$1>[[trackingImage]]");var l;const s={name:e.name,email_campaign_activities:[{format_type:5,from_email:e.from_email,reply_to_email:e.from_email,from_name:e.from_name,subject:e.subject,html_content:i}]},c=await a({url:`?proxy_url=${encodeURIComponent(`${o}/emails`)}`,method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.access_token}`},body:JSON.stringify(s)});if(c.error){var d,m;const e=c.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(d=e.data)||void 0===d?void 0:d.error_message)||(null===e||void 0===e||null===(m=e.data)||void 0===m?void 0:m.error_key)||(null===e||void 0===e?void 0:e.error)||String(c.error)}}}const u=c.data,p=null===u||void 0===u||null===(r=u.campaign_activities)||void 0===r?void 0:r.find(e=>"primary_email"===e.role),h=null===p||void 0===p?void 0:p.campaign_activity_id,g=null===u||void 0===u?void 0:u.campaign_id;if(!h||!g)return{error:{status:"CUSTOM_ERROR",error:"Failed to create campaign"}};const b={campaign_activity_id:h,campaign_id:g,role:"primary_email",contact_list_ids:[e.list_id],segment_ids:[],current_status:"DRAFT",format_type:5,from_email:e.from_email,from_name:e.from_name,reply_to_email:e.from_email,subject:e.subject,html_content:i},f=await a({url:`?proxy_url=${encodeURIComponent(`${o}/emails/activities/${h}`)}`,method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.access_token}`},body:JSON.stringify(b)});if(f.error){var v,y;const e=f.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(v=e.data)||void 0===v?void 0:v.error_message)||(null===e||void 0===e||null===(y=e.data)||void 0===y?void 0:y.error_key)||(null===e||void 0===e?void 0:e.error)||String(f.error)}}}return{data:{campaign_id:g}}}})})}),{useCreateCampaignMutation:l}=i},77514:(e,t,n)=>{"use strict";n.d(t,{e:()=>s,X:()=>c});var a=n(94104),r=n(53366);const o=(e,t)=>`Basic ${btoa(`${e}:${t}`)}`,i=e=>e&&"object"===typeof e&&"data"in e&&void 0!==e.data?e.data:e,l=e=>e.trim().toLowerCase(),s=(0,a.xP)({reducerPath:"dotdigitalApi",baseQuery:(0,r.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,n,a)=>{const r=e.html.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim(),s=`https://${e.region||"r1"}-api.dotdigital.com/v2`;const c={"Content-Type":"application/json",Authorization:o(e.username,e.password)},d=await a({url:`?proxy_url=${encodeURIComponent(`${s}/custom-from-addresses`)}`,method:"GET",headers:{Authorization:o(e.username,e.password)}});let m=[];if(!d.error){const e=i(d.data);Array.isArray(e)?m=e:e&&"object"===typeof e&&Array.isArray(e.items)&&(m=e.items)}const u=l(e.from_email),p=m.find(e=>e.email&&l(e.email)===u),h={name:e.name,subject:e.subject,fromName:e.from_name,htmlContent:e.html,plainTextContent:r||"Newsletter"},g=!(null!==p&&void 0!==p&&p.id);null!=(null===p||void 0===p?void 0:p.id)&&(h.fromAddress={id:p.id});const b=await a({url:`?proxy_url=${encodeURIComponent(`${s}/campaigns`)}`,method:"POST",headers:c,body:JSON.stringify(h)});if(b.error){var f;const e=b.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(f=e.data)||void 0===f?void 0:f.message)||(null===e||void 0===e?void 0:e.error)||String(b.error)}}}const v=i(b.data);if(null===v||void 0===v||!v.id){const e=b.data;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e?void 0:e.message)||(null===v||void 0===v?void 0:v.message)||"Failed to create campaign"}}}return{data:{id:v.id,usedAccountDefaultFromAddress:g}}}})})}),{useCreateCampaignMutation:c}=s},69884:(e,t,n)=>{"use strict";n.d(t,{u:()=>o,c:()=>i});var a=n(94104),r=n(53366);const o=(0,a.xP)({reducerPath:"enkodApi",baseQuery:(0,r.cw)({baseUrl:"https://api.enkod.ru"}),endpoints:e=>({createMessage:e.mutation({query:e=>{const t=e.html_content.replace(/<style[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<[^>]+>/g," ").replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/\s+/g," ").trim()||e.subject;const n={message:{subject:e.subject,fromEmail:e.sender_email||"",fromName:e.sender_name||"",html:e.html_content,plainText:t},isDraft:!0};return{url:"/v1/message/onetime/",method:"POST",headers:{"Content-Type":"application/json",Apikey:e.api_key},body:n}}})})}),{useCreateMessageMutation:i}=o},96968:(e,t,n)=>{"use strict";n.d(t,{u:()=>o,b:()=>i});var a=n(94104),r=n(53366);const o=(0,a.xP)({reducerPath:"getresponseApi",baseQuery:(0,r.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createNewsletter:e.mutation({queryFn:async(e,t,n,a)=>{const r=e.html.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim(),o={name:e.name,type:"draft",subject:e.subject,fromField:{fromFieldId:e.from_field_id},replyTo:{fromFieldId:e.from_field_id},campaign:{campaignId:e.campaign_id},content:{html:e.html,plain:r||"Newsletter"},flags:["openrate","clicktrack"],sendSettings:{selectedCampaigns:[e.campaign_id]}},i=await a({url:`?proxy_url=${encodeURIComponent("https://api.getresponse.com/v3/newsletters")}`,method:"POST",headers:{"Content-Type":"application/json","X-Auth-Token":(l=e.api_key,`api-key ${l}`)},body:JSON.stringify(o)});var l;if(i.error){var s,c;const e=i.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message)||(null===e||void 0===e||null===(c=e.data)||void 0===c?void 0:c.code)||(null===e||void 0===e?void 0:e.error)||String(i.error)}}}const d=i.data;if(null===d||void 0===d||!d.newsletterId){const e=i.data;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e?void 0:e.message)||"Failed to create newsletter"}}}return{data:{newsletterId:d.newsletterId}}}})})}),{useCreateNewsletterMutation:i}=o},44056:(e,t,n)=>{"use strict";n.d(t,{m:()=>o,T:()=>i});var a=n(94104),r=n(53366);const o=(0,a.xP)({reducerPath:"hubspotApi",baseQuery:(0,r.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createEmail:e.mutation({queryFn:async(e,t,n,a)=>{const r={"Content-Type":"application/json",Authorization:`Bearer ${e.api_key}`};const o={name:e.name,subject:e.subject,from:{fromName:e.from_name,replyTo:e.from_email},content:{templatePath:"@hubspot/email/dnd/plain_text.html",widgets:{"module-0-1-1":{body:{html:e.html,path:"@hubspot/rich_text",schema_version:2},child_css:{},css:{},id:"module-0-1-1",name:"module-0-1-1",order:2,styles:{},type:"module"},"module-1-1-1":{body:{align:"center",path:"@hubspot/email_footer",schema_version:2,unsubscribe_link_type:"both"},child_css:{},css:{},id:"module-1-1-1",name:"module-1-1-1",order:3,styles:{},type:"module"}}}},i=await a({url:`?proxy_url=${encodeURIComponent("https://api.hubapi.com/marketing/v3/emails/")}`,method:"POST",headers:r,body:JSON.stringify(o)});if(i.error){var l,s;const e=i.error,t=null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.errors,n=null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message;return{error:{status:"CUSTOM_ERROR",error:null!==t&&void 0!==t&&t.length?t.map(e=>e.message||e.errorType).join("; "):n||(null===e||void 0===e?void 0:e.error)||String(i.error)}}}const c=i.data;if(null===c||void 0===c||!c.id){var d;const e=i.data;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(d=e.errors)||void 0===d?void 0:d.map(e=>e.message||e.errorType).join("; "))||"Failed to create email"}}}return{data:{id:c.id}}}})})}),{useCreateEmailMutation:i}=o},16360:(e,t,n)=>{"use strict";n.d(t,{W:()=>i,X:()=>l});var a=n(94104),r=n(53366);const o="https://a.klaviyo.com/api",i=(0,a.xP)({reducerPath:"klaviyoApi",baseQuery:(0,r.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,n,a)=>{var r,i,l,s,c,d,m;const u={"Content-Type":"application/json",Accept:"application/json",Authorization:`Klaviyo-API-Key ${e.api_key}`,revision:"2025-04-15"};const p={data:{type:"template",attributes:{name:`Email ${Date.now()}`,editor_type:"CODE",html:e.html}}},h=await a({url:`?proxy_url=${encodeURIComponent(`${o}/templates`)}`,method:"POST",headers:u,body:JSON.stringify(p)});if(h.error){var g,b;const e=h.error,t=null===e||void 0===e||null===(g=e.data)||void 0===g?void 0:g.errors,n=null===e||void 0===e||null===(b=e.data)||void 0===b?void 0:b.detail;return{error:{status:"CUSTOM_ERROR",error:null!==t&&void 0!==t&&t.length?t.map(e=>e.detail||e.status).join("; "):n||(null===e||void 0===e?void 0:e.error)||String(h.error)}}}const f=h.data,v=null===f||void 0===f||null===(r=f.data)||void 0===r?void 0:r.id;if(!v)return{error:{status:"CUSTOM_ERROR",error:"Failed to create template"}};const y={data:{type:"campaign",attributes:{name:`Campaign ${Date.now()}`,audiences:{included:[e.list_id],excluded:[]},send_strategy:{method:"immediate"},"campaign-messages":{data:[{type:"campaign-message",attributes:{definition:{channel:"email",label:e.subject,content:{subject:e.subject,from_email:e.from_email,from_label:e.from_name,reply_to_email:e.from_email}}}}]}}}},E=await a({url:`?proxy_url=${encodeURIComponent(`${o}/campaigns`)}`,method:"POST",headers:u,body:JSON.stringify(y)});if(E.error){var C,_;const e=E.error,t=null===e||void 0===e||null===(C=e.data)||void 0===C?void 0:C.errors,n=null===e||void 0===e||null===(_=e.data)||void 0===_?void 0:_.detail;return{error:{status:"CUSTOM_ERROR",error:null!==t&&void 0!==t&&t.length?t.map(e=>e.detail||e.status).join("; "):n||(null===e||void 0===e?void 0:e.error)||String(E.error)}}}const k=E.data,w=null===k||void 0===k||null===(i=k.data)||void 0===i||null===(l=i.relationships)||void 0===l||null===(s=l["campaign-messages"])||void 0===s||null===(c=s.data)||void 0===c||null===(d=c[0])||void 0===d?void 0:d.id,A=null===k||void 0===k||null===(m=k.data)||void 0===m?void 0:m.id;if(!w)return{error:{status:"CUSTOM_ERROR",error:"Failed to get campaign message from campaign"}};const x={data:{type:"campaign-message",id:w,relationships:{template:{data:{type:"template",id:v}}}}},S=await a({url:`?proxy_url=${encodeURIComponent(`${o}/campaign-message-assign-template`)}`,method:"POST",headers:u,body:JSON.stringify(x)});if(S.error){var L,T;const e=S.error,t=null===e||void 0===e||null===(L=e.data)||void 0===L?void 0:L.errors,n=null===e||void 0===e||null===(T=e.data)||void 0===T?void 0:T.detail;return{error:{status:"CUSTOM_ERROR",error:null!==t&&void 0!==t&&t.length?t.map(e=>e.detail||e.status).join("; "):n||(null===e||void 0===e?void 0:e.error)||String(S.error)}}}return{data:{id:A,campaign_message_id:w}}}})})}),{useCreateCampaignMutation:l}=i},59283:(e,t,n)=>{"use strict";n.d(t,{P:()=>o,X:()=>i});var a=n(94104),r=n(53366);const o=(0,a.xP)({reducerPath:"mailchimpApi",baseQuery:(0,r.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,n,a)=>{const r=`https://${(e=>{const t=e.split("-");return t.length>1?t[1]:"us1"})(e.api_key)}.api.mailchimp.com/3.0`;const o=btoa(`anystring:${e.api_key}`),i={type:"regular",recipients:{list_id:e.list_id},settings:{subject_line:e.subject,from_name:e.from_name,reply_to:e.from_email}},l=await a({url:`?proxy_url=${encodeURIComponent(`${r}/campaigns`)}`,method:"POST",headers:{"Content-Type":"application/json",Authorization:`Basic ${o}`},body:JSON.stringify(i)});if(l.error){var s,c;const e=l.error,t=(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.detail)||(null===e||void 0===e?void 0:e.error)||String(l.error),n=null===e||void 0===e||null===(c=e.data)||void 0===c?void 0:c.errors;return{error:{status:"CUSTOM_ERROR",error:null!==n&&void 0!==n&&n.length?n.map(e=>e.detail||e.title).join("; "):t}}}const d=l.data;if(null===d||void 0===d||!d.id){var m;const e=l.data;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(m=e.errors)||void 0===m?void 0:m.map(e=>e.detail||e.title).join("; "))||"Failed to create campaign"}}}const u={html:e.html},p=await a({url:`?proxy_url=${encodeURIComponent(`${r}/campaigns/${d.id}/content`)}`,method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Basic ${o}`},body:JSON.stringify(u)});if(p.error){var h;const e=p.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(h=e.data)||void 0===h?void 0:h.detail)||(null===e||void 0===e?void 0:e.error)||String(p.error)}}}return{data:{id:d.id,status:d.status,web_id:d.web_id}}}})})}),{useCreateCampaignMutation:i}=o},42161:(e,t,n)=>{"use strict";n.d(t,{T:()=>o,S:()=>i});var a=n(94104),r=n(53366);const o=(0,a.xP)({reducerPath:"mailganerApi",baseQuery:(0,r.cw)({baseUrl:"https://mailganer.com"}),endpoints:e=>({createMailing:e.mutation({query:e=>{const t=new URLSearchParams;return t.append("api_key",e.api_key),t.append("name",e.name),t.append("html-content",e.html_content),e.theme&&t.append("theme",e.theme),e.from_name&&t.append("from_name",e.from_name),e.from_email&&t.append("from_email",e.from_email),e.segment_id&&t.append("segment_id",String(e.segment_id)),e.utm_campaign&&t.append("utm_campaign",e.utm_campaign),e.utm_source&&t.append("utm_source",e.utm_source),e.utm_medium&&t.append("utm_medium",e.utm_medium),{url:"/api/v1/mailing/create/",method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t.toString()}}})})}),{useCreateMailingMutation:i}=o},20833:(e,t,n)=>{"use strict";n.d(t,{W:()=>o,T:()=>i});var a=n(94104),r=n(53366);const o=(0,a.xP)({reducerPath:"salesforceMcApi",baseQuery:(0,r.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createEmail:e.mutation({queryFn:async(e,t,n,a)=>{const r=`https://${e.subdomain}.auth.marketingcloudapis.com/v2/token`,o=await a({url:`?proxy_url=${encodeURIComponent(r)}`,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({grant_type:"client_credentials",client_id:e.client_id,client_secret:e.client_secret})});if(o.error){var i,l;const e=o.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.error_description)||(null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.error)||(null===e||void 0===e?void 0:e.error)||String(o.error)}}}const s=o.data,c=null===s||void 0===s?void 0:s.access_token,d=null===s||void 0===s?void 0:s.rest_instance_url;if(!c||!d)return{error:{status:"CUSTOM_ERROR",error:(null===s||void 0===s?void 0:s.error_description)||(null===s||void 0===s?void 0:s.error)||"Failed to get access token"}};const m={name:e.name,assetType:{id:208,name:"htmlemail"},views:{html:{content:e.html},text:{},subjectline:{content:e.subject},preheader:{}},data:{email:{options:{characterEncoding:"utf-8"}}}},u=await a({url:`?proxy_url=${encodeURIComponent(`${d.replace(/\/$/,"")}/asset/v1/content/assets`)}`,method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${c}`},body:JSON.stringify(m)});if(u.error){var p,h;const e=u.error,t=null===e||void 0===e||null===(p=e.data)||void 0===p?void 0:p.errors,n=null===e||void 0===e||null===(h=e.data)||void 0===h?void 0:h.message;return{error:{status:"CUSTOM_ERROR",error:null!==t&&void 0!==t&&t.length?t.map(e=>e.message||e.documentation).join("; "):n||(null===e||void 0===e?void 0:e.error)||String(u.error)}}}const g=u.data;if(null===g||void 0===g||!g.id){var b;const e=u.data;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(b=e.errors)||void 0===b?void 0:b.map(e=>e.message).join("; "))||"Failed to create email"}}}return{data:{id:g.id}}}})})}),{useCreateEmailMutation:i}=o},48822:(e,t,n)=>{"use strict";n.d(t,{G:()=>o,_:()=>i});var a=n(94104),r=n(53366);const o=(0,a.xP)({reducerPath:"sendsayApi",baseQuery:(0,r.cw)({baseUrl:"https://api.sendsay.ru"}),endpoints:e=>({createDraft:e.mutation({query:e=>{const t={action:"issue.draft.set",apikey:e.api_key,return_fresh_obj:1,obj:{name:e.name,letter:{subject:e.subject,"from.name":e.from_name||void 0,"from.email":e.from_email||void 0,message:{html:e.html_content}}}};return{url:`/general/api/v100/json/${e.login.split("/").map(e=>encodeURIComponent(e)).join("/")}`,method:"POST",headers:{"Content-Type":"application/json"},body:t}}})})}),{useCreateDraftMutation:i}=o},33480:(e,t,n)=>{"use strict";n.d(t,{K:()=>o,r:()=>i});var a=n(94104),r=n(53366);const o=(0,a.xP)({reducerPath:"unisenderApi",baseQuery:(0,r.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createEmailMessage:e.mutation({query:e=>{const t=new URLSearchParams;return t.append("format","json"),Object.entries(e).forEach(([e,n])=>{t.append(e,String(n))}),{url:`?proxy_url=${encodeURIComponent("https://api.unisender.com/ru/api/createEmailMessage")}`,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t.toString()}}})})}),{useCreateEmailMessageMutation:i}=o},94395:(e,t,n)=>{"use strict";n.d(t,{Gn:()=>a,hS:()=>l,rg:()=>o,v0:()=>i});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!"}]}},r=(e,t)=>!e.apps||0===e.apps.length||e.apps.includes(t),o=e=>{const t=a[e];if(t&&r(t,"emailmaker"))return t},i=()=>{const e="emailmaker",t=Object.values(a).filter(t=>r(t,e));return t},l=(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:()=>b,hN:()=>g,x_:()=>u});var a=n(65893),r=n(65185),o=n(1936),i=n(69622),l=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,r;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===(r=e.data)||void 0===r?void 0:r.code)||e.status||e||"Unknown error"},h=e=>{var t,n,a,r;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===(r=e.data)||void 0===r?void 0:r.message)||e.error||"Unknown error"};function g(){const e=(0,r.ml)(a.AZ.ON_NOTIFICATION),{notification:t}=i.qw.useApp(),n=(0,o.useCallback)((n,a)=>{n.type||(n={...n,type:"info"});const r=(0,c.TB)({...n});return e.fire(r).then(e=>!!e.every(e=>!1!==e)&&(void 0===(n={...n,...r}).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]),l=(0,o.useCallback)((e,t)=>{const a={...e,message:o.createElement("div",{dangerouslySetInnerHTML:{__html:p(e)}}),description:o.createElement("div",{dangerouslySetInnerHTML:{__html:h(e)}})};return n({...a,type:"error"},t)},[n]),s=(0,o.useCallback)((e="Success",t)=>n({..."string"===typeof e?{message:e}:e,type:"success"},t),[n]),m=(0,o.useCallback)((e,t)=>n({...e,type:"warning"},t),[n]),u=(0,o.useCallback)((e,t)=>n({...e,type:"info"},t),[n]),g=(0,o.useCallback)((e,t,n,a,r=d)=>{n&&l({id:e,data:t,message:n.data instanceof Error?"":p(n),description:h(n),placement:r,innerException:(null===n||void 0===n?void 0:n.data)instanceof Error?n.data:n},a)},[l]);return(0,o.useMemo)(()=>({notify:n,success:s,error:l,warning:m,fromError:g,info:u}),[n,s,l,m,g,u])}function b(){const{notify:e}=g();(0,l.D3)(s.Sb,e)}},66034:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var a=n(1936),r=n(84075),o=n(47706),i=n(71715),l=n(69622),s=n(98173),c=n(72531),d=n(60791),m=n(66163),u=n(6403),p=n(85183);const h=(e,t="block",n=!1)=>{if(null===e||void 0===e||!e.html)return[];const{document:a,blockElements:r,styleElement:o,linksElements:i}=((e,t="block")=>{const n=new DOMParser,a=n.parseFromString(e,"text/html"),r=a.querySelectorAll(`[em="${t}"]`),o=a.querySelectorAll("link"),i=a.querySelector('[em="styles"]');return{parser:n,document:a,blockElements:r,styleElement:i,linksElements:o}})(e.html,t),l=function(e){return Array.from(e).map(e=>e.outerHTML).join("")}(i);if(!(r instanceof NodeList))return[];const s=a.querySelector("head"),c=s?s.innerHTML:"";return Array.from(r).map((t,a)=>{if(!(t instanceof Element)||!t.outerHTML)return null;const r=o?o.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)(`${l}${r}${t.outerHTML.replace(/class="em-structure"/,'class=""')}`)}}).filter(Boolean)};const g=e=>e.replace(/<div\s+[^>]*style="font-family:[^>]*>(.*?)<\/div>/gs,e=>e.replace(/>(.*?)<\/div>/s,"></div>")),b=e=>e.replace(/src="[^"]*"/g,'src=""'),f=e=>/<div\s+[^>]*style="font-family:/i.test(e);var v=n(34706);const y=async e=>{const{block:t,form:n,projectData:a,projectId:r,addBlock:o,editProject:i,addTag:l,notification:s,__:c,handleCloseModal:d,htmlContent:m,refetch:u,refetchBlocks:p,reloadBlockScreens:h,values:g,tagIds:b,projectTagsArray:f}=e;try{await(0,v.Wv)({block:t,form:n,projectId:r,htmlContent:m,values:g,tagIds:b,addBlock:o,editProject:i,notification:s,refetch:u,refetchBlocks:p,reloadBlockScreens:h,projectTagsArray:f,__:c,handleCloseModal:d})}catch(y){throw y}};var E=n(41244),C=n(93506);var _=n(83111);const k=({isModalVisible:e,currentEmail:t,setIsShowAddAllBlocksModal:n,setTriggerOpenSavedBlocksTab:p,projectId:k})=>{const{__:w,_x:A,_n:x}=(0,o.s9)(),S=(0,_.NF)(),{data:L,refetch:T}=(0,r.KC)(),[B,I]=(0,a.useState)(!1),[R]=l.lV.useForm(),[N,O]=(0,a.useState)([]),[P,M]=(0,a.useState)([]),F=(0,a.useRef)({}),[j]=(0,d.Gr)(),[V]=(0,c.OD)(),[H,W]=(0,d.pP)(),D=(0,i.d4)(s.B)||(C.EW.isPlugin?void 0:"ru_RU"),$=(e=>{const t=new Set,n=[];for(const a of e)if(f(a.html)){const e=b(g(a.html));t.has(e)||(t.add(e),n.push(a))}else n.push(a);return n})(h(t)).map(e=>e),z=$.length,U=(0,u.hN)(),q=()=>{B||G||n(!1)},{bulkSave:Z,confirmSavingBlocksLoading:G}=(({projectData:e,addTag:t,addBlock:n,editProject:r,refetch:o,reloadBlockScreens:i,notification:l,__:s,handleCloseModal:c,setTriggerOpenSavedBlocksTab:d,setTagsOptions:m,form:u,projectId:p})=>{const[h,g]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{m((0,E._q)(e,C.YY).map(e=>({value:e.name})))},[e]),{bulkSave:async(a,m,h,b)=>{g(!0);try{if(!m)return;const{tagIds:g,projectTagsArray:E}=await(0,v.cr)({blockTags:b,projectData:e,projectId:p,addTag:t,editProject:r,notification:l,__:s});let C=!0,_=0;for(const o of a)try{await y({block:o,form:u,projectData:e,projectId:p,addBlock:n,editProject:r,addTag:t,notification:l,__:s,handleCloseModal:c,values:h,tagIds:g,projectTagsArray:E})}catch(f){C=!1,_++}if(C&&l.success({id:"BULK_SAVE_SUCCESS",message:s("All blocks saved successfully."),placement:"bottomRight"}),!C){if(_===a.length)throw new Error;l.warning({id:"BULK_SAVE_PARTIAL_SUCCESS",message:s("Some blocks were not saved successfully."),placement:"bottomRight"})}d(!0);try{o()}catch(f){}i()}catch(f){throw f}finally{g(!1),u.resetFields(),c()}},confirmSavingBlocksLoading:h}})({projectData:L,addTag:j,addBlock:H,editProject:V,refetch:T,reloadBlockScreens:v.MA,notification:U,__:w,handleCloseModal:q,setTriggerOpenSavedBlocksTab:p,setTagsOptions:M,form:R,projectId:k}),X=async()=>{try{const{valid:e,values:n,blockTags:a}=await(0,v.q)({form:R,notification:U,__:w});p(!1),I(!0);const r=function(e,t,n){const{images:a}=e,{blocks:r}=t;return null===a||void 0===a?void 0:a.map(e=>{const t=r.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,D,F,$,S),F.current,t.project.toString());I(!1),await Z(r,e,n,a)}catch(e){I(!1),n(!1),U.error({message:w("Failed to save blocks."),placement:"bottomRight"})}};return a.createElement(l.aF,{title:a.createElement("div",{className:"ant-modal-title"},w("Bulk saving of blocks")),open:e,onOk:X,onCancel:q,footer:a.createElement("div",{className:"modal-footer"},!(B||G)&&a.createElement(l.$n,{key:"submit",size:"large",type:"primary",disabled:B||G,onClick:X},A("Save","block")+" "+z+" "+x("block","blocks",z)))},B||G?a.createElement("div",null,w("All blocks saved at this point can be found in the \u201cSaved Blocks\u201d section in the sidebar.")):a.createElement("div",null,w("Your letter contains")+" "+z+" "+x("block","blocks",z)+" "+w("that can be saved for future use.")),!(B||G)&&a.createElement(l.lV,{form:R,name:"add_all_blocks_form",layout:"vertical",onFinish:X,style:{paddingTop:24}},a.createElement(l.lV.Item,{label:w("Tags"),name:"tags",labelCol:{span:24},wrapperCol:{span:24},style:{display:"block",marginBottom:0}},a.createElement(l.Select,{size:"large",mode:"tags",placeholder:w("Add some tags"),style:{width:"100%"},value:N,onChange:O,disabled:W.isLoading,options:P}))),(G||B)&&a.createElement("div",{className:"modal-spinner"},a.createElement(l.tK,{size:"large"})))}},90308:(e,t,n)=>{"use strict";n.d(t,{G:()=>r,M:()=>a});const a="https://app.emailmaker.ru/api/wp-json/ai-generator/v1/identificate_blocks",r=["Menu","Header","Content","Banners","Lists","Buttons","Promocodes","Feature","Call to Action","E-Commerce","Articles","Polls","Applications","Separators","Contacts","Footer","Other"]},22574:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var a=n(1936),r=n(69622),o=n(71715),i=n(47706),l=n(84075),s=n(2527),c=n(78443),d=n(93506),m=n(41244),u=n(91480);const p="description",h=()=>{const{__:e}=(0,i.s9)(),t=(0,o.wA)(),n=(0,u.u)(),[h]=r.lV.useForm(),g=(0,a.useRef)(null),b=(0,o.d4)(c.cL)===d.lx.ADD_NEW_AI_EMAIL,f=(0,s.p)(),v=(0,l.Zp)(),{projectId:y}=(0,l.g)(),E=(0,a.useCallback)(()=>{h.resetFields(),setTimeout(()=>{var e;return null===(e=g.current)||void 0===e?void 0:e.focus()},0)},[h]);(0,a.useEffect)(()=>{b&&E()},[b,E]);const C=()=>t((0,c.Oo)()),_=()=>{const e=`/projects/${y}/emails/new`,t=String(278056);f.set(d.A9.em_new_email,t),h.validateFields().then(({description:t})=>{n({event:"submit_form",action:"ai_email_generation",project_id:y,ai_prompt:t}),window.localStorage.setItem(d.V0.em_active_tab,d.z$),window.localStorage.setItem(d.V0.em_ai_settings,t),(0,m.XZ)(v,e),C()})};return a.createElement(r.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:b,onOk:_,onCancel:C,className:"new-folder-modal",footer:[a.createElement(r.$n,{key:"submit",type:"primary",size:"large",onClick:_},e("Generate Email"))]},a.createElement(r.lV,{form:h,layout:"vertical",name:"add_new_folder_form",onFinish:_,initialValues:{[p]:""},autoComplete:"off",style:{paddingTop:10}},a.createElement(r.lV.Item,{name:p,rules:[{required:!0,message:e("Please enter the description")}]},a.createElement(r.pd,{size:"large",placeholder:e("Please enter the description"),ref:g,style:{marginBottom:5}}))))}},5134:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var a=n(1936),r=n(71715),o=n(84075),i=n(60791),l=n(72531),s=n(6403),c=n(69622),d=n(96040),m=n(40867),u=n(41244),p=n(47706),h=n(942),g=n(34706),b=n(93506);const f=({isModalVisible:e,htmlContent:t,projectId:n,setIsShowAddAllBlocksModal:f,setIsShowAddAllBlocksModalForNewEmail:v})=>{const{__:y}=(0,p.s9)(),E=(0,r.wA)(),[C]=c.lV.useForm(),[_,k]=(0,a.useState)([]),[w,A]=(0,i.pP)(),{data:x}=(0,i.h1)(),S=(0,s.hN)(),L=(0,h.rD)(),[T,B]=(0,a.useState)([]),{data:I,refetch:R}=(0,o.KC)(),{refetch:N}=(0,i.SB)({projectId:n,pageSize:1e3,page:1,tags:null,name:null,type:null,notEmbed:!0,order:"asc",orderby:"title"}),[O,P]=(0,i.Gr)(),[M,F]=(0,l.OD)();(0,a.useEffect)(()=>{B((0,u._q)(I,b.YY).map(e=>({value:e.name})))},[I]),(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:y(b.jg[e[n]]),value:e[n]});k(t)}},[x,y]);const j=()=>{E((0,m.Oo)())},V=()=>{f(!0),v(!1),j()},H=async()=>{await(0,g.x0)({form:C,projectData:I,projectId:n,addBlock:w,editProject:M,addTag:O,notification:S,__:y,handleCloseModal:j,htmlContent:t,refetch:R,refetchBlocks:N,reloadBlockScreens:g.MA})};return a.createElement(c.aF,{title:a.createElement("div",{className:"ant-modal-title"},y("Save block")),open:e,onOk:()=>V(),onCancel:j,footer:a.createElement("div",{style:{display:"flex",justifyContent:"space-between",padding:"8px 0"}},a.createElement(c.$n,{key:"create-all-blocks",size:"large",onClick:V},y("Save all blocks")),a.createElement(c.$n,{key:"submit",size:"large",type:"primary",loading:A.isLoading,onClick:H},a.createElement(d.A,{icon:"CreateBlock",className:"modal-new-block__icon-create"}),y("Save block")))},a.createElement(c.lV,{form:C,layout:"vertical",name:"add_new_block_form",onFinish:H,initialValues:{title:"",type:"",tags:[]},autoComplete:"off"},a.createElement(c.fI,{gutter:16},a.createElement(c.fv,{span:12},a.createElement(c.lV.Item,{label:y("Block name"),name:"title",rules:[{required:!0,message:y("Please input block name")}],style:{marginBottom:15}},a.createElement(c.pd,{disabled:A.isLoading||P.isLoading||F.isLoading,size:"large",placeholder:y("Enter block name"),spellCheck:"false"}))),a.createElement(c.fv,{span:12},a.createElement(c.lV.Item,{label:y("Type"),name:"type",rules:[{required:!0,message:y("Please choose block type")}],style:{marginBottom:15}},a.createElement(c.Select,{disabled:A.isLoading||P.isLoading||F.isLoading,size:"large",placeholder:y("Choose block type"),options:_})))),L.tagsEnabled&&a.createElement(c.lV.Item,{label:y("Tags"),name:"tags"},a.createElement(c.Select,{size:"large",mode:"tags",placeholder:y("Add some tags"),tooltip:{title:y("Tags help you find the block in the list."),icon:a.createElement(d.A,{icon:"InfoCircleOutlined"})},disabled:A.isLoading||P.isLoading||F.isLoading,options:T}))))}},34706:(e,t,n)=>{"use strict";n.d(t,{Wv:()=>m,Lm:()=>a,cr:()=>c,x0:()=>o,MA:()=>r,q:()=>d});const a=async({blockTags:e,projectTagsArray:t,addTag:n,parent:a,notification:r})=>{if(!e||0===e.length)return[];const o=e.map(e=>{const o=t.find(t=>t.name===e);return o?Promise.resolve(o.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?(r.fromError("TAG_CREATING_ERROR",e,t),null):void 0)});return(await Promise.all(o)).filter(e=>null!==e&&void 0!==e)},r=()=>{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))},o=async e=>{const{block:t,form:n,projectData:a,projectId:r,addBlock:o,editProject:i,addTag:l,notification:s,__:u,handleCloseModal:p,htmlContent:h,refetch:g,refetchBlocks:b,reloadBlockScreens:f}=e;try{const{valid:e,values:v,blockTags:y}=await d({form:n,notification:s,__:u});if(!e)return;const{tagIds:E,projectTagsArray:C}=await c({blockTags:y,projectData:a,projectId:r,addTag:l,editProject:i,notification:s,__:u});await m({block:t,form:n,projectId:r,htmlContent:h,values:v,tagIds:E,addBlock:o,editProject:i,notification:s,refetch:g,refetchBlocks:b,reloadBlockScreens:f,projectTagsArray:C,__:u,handleCloseModal:p})}catch(v){}};var i=n(41244),l=n(93506),s=n(6403);const c=async({blockTags:e,projectData:t,projectId:n,addTag:r,editProject:o,notification:c,__:d})=>{const m=`project_${n}`,u=(0,i._q)(t,l.YY),p=u.find(e=>e.name===m),h=u||[];let g;if(p)g=p.id;else{const e=await r({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 o({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");g=t.data.blocktags&&t.data.blocktags[0]}}return{tagIds:await a({blockTags:e,projectTagsArray:h,addTag:r,parent:g,notification:c}),projectTagsArray:h}},d=async({form:e,notification:t,__:n})=>{let a=!0;const r=await e.validateFields(),o=r.tags;return(null===o||void 0===o?void 0:o.length)>10&&(t.error({id:"BLOCK_TOO_MANY_TAGS_ERROR",data:(0,s.x_)(r),message:n("Maximum 10 tags available.")}),a=!1),{valid:a,values:r,blockTags:o}},m=async({block:e,form:t,projectId:n,htmlContent:a,values:r,tagIds:o,addBlock:i,editProject:l,notification:c,refetch:d,refetchBlocks:m,reloadBlockScreens:u,projectTagsArray:p,__:h,handleCloseModal:g})=>{const b=e?{title:e.blockTitle,project:e.projectId,html:e.htmlContent,type:e.blockType||"Other"}:{title:r.title,project:n,html:a||"",type:r.type||"Other"},f=await i({...b,blocktags:o.join(",")});if(f.error)throw c.error({id:"BLOCK_CREATING_ERROR",data:{title:b.title,html:b.html},innerException:f.error,message:f.error.data.code,description:f.error.data.message}),t.resetFields(),g(),new Error("\u041e\u0448\u0438\u0431\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u043b\u043e\u043a\u0430");e||(t.resetFields(),g());const v=p.map(e=>e.id),y=new Set([...v,...o]);!e&&d&&d();const E=await l({projectId:n,blocktags:[...y].join(",")});return E.error?c.error({code:E.error.data.code,message:E.error.data.message}):!e&&m&&(c.success({id:"BLOCK_CREATING_SUCCESS",data:(0,s.x_)(f.data),message:h("The block \u201c")+f.data.title+h("\u201d was successfully created.")}),m()),!e&&u&&u(),f.data}},73888:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var a=n(1936),r=n(69622),o=n(71715),i=n(47706),l=n(72531),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,i.s9)(),h=(0,o.wA)(),[g]=r.lV.useForm(),b=(0,a.useRef)(null),f=(0,o.d4)(c.cL)===m.lx.ADD_NEW_GROUP_MODAL,v=(0,d.hN)();let y;({data:y}=(0,u.KC)());const E=`project_${y.id}`,C=null===(t=y[m.bV.GROUP])||void 0===t?void 0:t[0],[_]=(0,l.OD)(),[k]=(0,s.y$)(),w=(0,a.useCallback)(()=>{g.resetFields(),setTimeout(()=>{var e;return null===(e=b.current)||void 0===e?void 0:e.focus({cursor:"start"})},0)},[g]);(0,a.useEffect)(()=>{f&&w()},[f,w]);const A=()=>h((0,c.Oo)()),[x,S]=(0,s.JI)(),[L,T]=(0,a.useState)(!1),[B,I]=(0,a.useState)(C),R=()=>{const t=(t,a)=>_({projectId:y.id,[e]:a||B}).then(async a=>{if("error"in a)v.error(a);else if("data"in a){const r=a.data,o=await x({name:t,parent:r[e][0]});if(!("error"in o))return v.success({message:n("The group \u201c")+o.data.name+p("\u201d was successfully created.",e)}),I(r[e][0]),k({parent:r[e][0]}).then(({data:e,error:t})=>{e?A():t&&v.error({error:t})});v.error({res_1:o})}});g.validateFields().then(({name:a})=>(T(!0),B?x({name:a,parent:B}).then(t=>{"error"in t?v.error(t):(v.success({message:n("The group \u201c")+t.data.name+p("\u201d was successfully created.",e)}),A(),k({parent:B}))}):x({name:E}).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(r.aF,{title:n("Add a new group"),open:f,onOk:R,onCancel:A,className:"new-group-modal",footer:[a.createElement(r.$n,{key:"submit",type:"primary",size:"large",loading:S.isLoading||L,onClick:R},n("Create group"))]},a.createElement(r.lV,{form:g,layout:"vertical",name:"add_new_group_form",onFinish:R,initialValues:{remember:!1,name:""},autoComplete:"off",style:{paddingTop:10}},a.createElement(r.lV.Item,{name:"name",rules:[{required:!0,message:n("Please enter the group name")}]},a.createElement(r.pd,{disabled:S.isLoading,size:"large",placeholder:n("Enter the group name"),ref:b,style:{marginBottom:5}}))))}},66482:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var a=n(1936),r=n(6056),o=n.n(r),i=n(69622),l=n(71715),s=n(47706),c=n(27468),d=n(96040),m=n(93506),u=n(52898),p=n(40867),h=n(7714),g=n(942);const{backgroundColor:b,backgroundImage:f,backgroundPositionX:v,backgroundPositionY:y,backgroundRepeat:E,backgroundSize:C,responsive:_,backgroundColorContent:k,width:w}={backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",backgroundPositionX:"backgroundPositionX",backgroundPositionY:"backgroundPositionY",backgroundRepeat:"backgroundRepeat",backgroundSize:"backgroundSize",responsive:"responsive",backgroundColorContent:"backgroundColorContent",width:"width"},A={[b]:"",[f]:"",[v]:"",[y]:"",[E]:"checked",[C]:"",[k]:"",[w]:""},x=({className:e="",email:t})=>{var n,r,k;const{__:w}=(0,s.s9)(),{token:x}=(0,i.rd)(),S=(0,l.wA)(),L=(0,g.rD)(),[T]=i.lV.useForm(),B=(0,h.XW)(),I=(0,l.d4)(u.uJ),R=(0,l.d4)(u.iy),N=(0,l.d4)(p.B),O=(0,l.d4)(u.mD),[P,M]=(0,a.useState)(!0),F=w("Email not yet loaded or global container not found.");(0,a.useEffect)(()=>{O&&(S((0,u.S_)(!1)),B({operation:m.Ru.INIT_PREVIEW}))},[T,O,S,B,t.common_styles]);const j=[{label:w("Not defined"),value:"none"},{label:w("Do not repeat background (no-repeat)"),value:"no-repeat"},{label:w("Repeat background (repeat)"),value:"repeat"},{label:w("Repeat background horizontally (repeat-x)"),value:"repeat-x"},{label:w("Repeat background vertically (repeat-y)"),value:"repeat-y"}],V=[{label:w("Not defined"),value:""},{label:w("Contain"),value:"contain"},{label:w("Cover"),value:"cover"}];(0,a.useEffect)(()=>{var e,t,n,a;T.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[E]?"repeat":I[E],backgroundSize:I[C],responsive:null===(a=I.responsive)||void 0===a?void 0:a.shutdown}),M(!I.backgroundImage)},[I,T]);return a.createElement("div",{className:o()("appearance-panel",{[e]:e})},a.createElement(i.lV,{form:T,layout:"vertical",name:"appearance_panel_form",initialValues:{remember:!1,...A},onValuesChange:e=>{var t;const n=T.getFieldsValue(!0),a=Object.keys(e)[0];switch(a){case v:case y:B({operation:m.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[a]:""===e[a]?"none":e[a]}});break;case f:M(""===e[a]),B({operation:m.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 _:B({operation:m.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{responsive:{shutdown:e[a],styles:e[a]},width:n.width}});break;default:B({operation:m.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:e})}},autoComplete:"off",className:"element-controls"},R?a.createElement(i.Fc,{style:{marginBottom:"24px"},message:F,type:"error"}):null,a.createElement(i.y9,{title:w("Email layout width"),dividerTop:!1},a.createElement(i.fI,{gutter:10},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:null!==(n=I.width)&&void 0!==n&&n.value?w("This field sets the width of the email."):w("Couldn`t determine the email width"),placement:"right"},a.createElement(i.lV.Item,{name:"width",style:{marginBottom:x.formItemMarginBottomXS}},a.createElement(i.YI,{min:0,max:700,placeholder:w("Width"),prefix:a.createElement(d.A,{icon:"ColumnWidthOutlined"}),disabled:!(null!==(r=I.width)&&void 0!==r&&r.value),addonAfter:"px"})))))),L.emailResponsiveControlEnabled&&a.createElement(a.Fragment,null,a.createElement(i.fI,{gutter:20},a.createElement(i.fv,{span:24},a.createElement(i.lV.Item,{name:"responsive",valuePropName:"checked"},a.createElement(i.dO,{id:"responsive",label:w("Responsive email"),size:"small",name:"responsive",disabled:void 0===(null===(k=I.responsive)||void 0===k?void 0:k.shutdown),onChange:e=>{S((0,p.wW)({shutdown:e,styles:e})),B({operation:m.Ru.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:document.querySelector(".email-pane__iframe").getBoundingClientRect().width}})}})))),a.createElement(i.cG,{className:"selected-td-form__divider"})),a.createElement(i.y9,{title:w("Email background color"),dividerTop:!L.emailResponsiveControlEnabled},a.createElement(i.fI,{gutter:10,style:{paddingBottom:P?16:4}},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:w("Background color"),placement:"bottom"},a.createElement(i.lV.Item,{name:b,style:{marginBottom:x.formItemMarginBottomXS},rules:[{message:w("Please set the background color")}]},a.createElement(i.it,{placeholder:w("Background color"),usedColors:I.usedColors,usedLabel:w("Used"),recommendedLabel:w("Recommended"),disabled:R})))),a.createElement(i.fv,{span:P?12:24},L.formEmailFieldBackgroundImageEnabled&&a.createElement(a.Fragment,null,a.createElement(c.A,{form:T,label:w("Background image"),name:f,tooltipTitle:w("Background image"),disabled:R||"Styles"!==N,elementSettings:I}),!P&&a.createElement(a.Fragment,null,a.createElement(i.lV.Item,{style:{marginBottom:"0"}},a.createElement(i.fI,{gutter:10},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:w("Horizontal position"),placement:"bottom"},a.createElement(i.lV.Item,{name:v,style:{marginBottom:x.formItemMarginBottomXS}},a.createElement(i.pd,{placeholder:w("Horizontal position"),prefix:a.createElement(d.A,{icon:"BgPositionHorizontal"})})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:w("Vertical position"),placement:"bottom"},a.createElement(i.lV.Item,{name:y,style:{marginBottom:x.formItemMarginBottomXS}},a.createElement(i.pd,{placeholder:w("Vertical position"),prefix:a.createElement(d.A,{icon:"BgPositionVertical"})})))))),a.createElement(i.fI,{gutter:10},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:w("Background image repeat"),placement:"bottom"},a.createElement(i.lV.Item,{name:E},a.createElement(i.Select,{placeholder:w("Please select"),disabled:R,options:j})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:w("Background image size"),placement:"top"},a.createElement(i.lV.Item,{name:C},a.createElement(i.Select,{placeholder:w("Please select"),disabled:R,options:V}))))))))))))}},25623:(e,t,n)=>{"use strict";n.d(t,{A:()=>$});var a=n(1936),r=n(69622),o=n(47706);const i=`<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>`,l=`<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 s=n(77686),c=n.n(s),d=n(3236),m=n.n(d),u=n(55921),p=n.n(u),h=n(59019),g=n.n(h),b=n(42274),f=n.n(b),v=n(48760),y=n.n(v),E=n(90593),C=n.n(E);const _=n.p+"static/media/tg.10f004529a98df9732b9.png",k=n.p+"static/media/yt.4ac57e55d158b40c7fc1.png",w=(n.p,n.p,`<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 border="0" cellspacing="0" cellpadding="0">\n <tr>${[_,k,n.p+"static/media/xa.8e9f984ff84e3f51c6f6.png",n.p+"static/media/ig.47a89992b4bec92d4364.png",n.p+"static/media/fb.ff10384394f8044ec889.png"].map(e=>`\n <td width="40" align="center">\n <a href="" target="_blank"><img src="${e}" width="30" border="0" alt="" style="display: block;" /></a>\n </td>`).join("")}\n </tr>\n </table>\n</td></tr></table>`);var A=n(74117),x=n.n(A);const S=new Date,L=new Date(+S+432e6).toISOString(),T=-(new Date).getTimezoneOffset()/60,B=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=${L}&timezone=${T}&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=${L}&timezone=${T}&frames=20`)(e)}" border="0" alt="" style="display: block;" /></td></tr></table>`,I=`<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 R=n(64383),N=n.n(R),O=n(91810),P=n.n(O),M=n(96040),F=n(81644),j=n(98173),V=n(22817),H=n(41244),W=n(942),D=n(71715);const $=()=>{var e,t;const n=(0,o.s9)(),{__:s}=n,d=(0,W.rD)(),u=(0,D.d4)(V.yN),h=(0,D.d4)(j.B$),b=(0,D.d4)(j.C1),v=(0,D.d4)(j.B),E=(0,H.X7)(),_=(0,H.Qi)(),[k,A]=(0,a.useState)(!1),[S,L]=(0,a.useState)(0);let T=!(h||(null===(e=b.id)||void 0===e?void 0:e.toString())!==(null===u||void 0===u||null===(t=u.members)||void 0===t?void 0:t.owner.ID));const R=[];d.elementImageEnabled&&R.push({title:s("Image"),icon:a.createElement(M.A,{icon:"ElementImage",size:24,strokeWidth:d.iconStrokeWidth}),html:i,className:"",name:"image"}),d.elementAIimageEnabled&&R.push({title:s("AI image"),icon:a.createElement(M.A,{icon:"ElementImageAI",size:24,strokeWidth:d.iconStrokeWidth}),html:l,className:"ai",name:"ai-image"}),d.elementTextEnabled&&R.push({title:s("Text"),icon:a.createElement(M.A,{icon:"ElementText",size:24,strokeWidth:d.iconStrokeWidth}),html:c()(n),className:"",name:"text"}),d.elementHeaderEnabled&&R.push({title:s("Header"),icon:a.createElement(M.A,{icon:"ElementTitle",size:24,strokeWidth:d.iconStrokeWidth}),html:m()(n),className:"",name:"header"}),d.elementButtonEnabled&&R.push({title:s("Button"),icon:a.createElement(M.A,{icon:"ElementButton",size:24,strokeWidth:d.iconStrokeWidth}),html:p()(n),className:"",name:"button"}),d.elementSpacerEnabled&&R.push({title:s("Spacer"),icon:a.createElement(M.A,{icon:"ElementSpacer",size:24,strokeWidth:d.iconStrokeWidth}),html:C(),className:"",name:"spacer"}),d.elementListULEnabled&&R.push({title:s("List UL"),icon:a.createElement(M.A,{icon:"ElementListUL",size:24,strokeWidth:d.iconStrokeWidth}),html:g()(n),className:"",name:"list-ul"}),d.elementListOLEnabled&&R.push({title:s("List OL"),icon:a.createElement(M.A,{icon:"ElementListOL",size:24,strokeWidth:d.iconStrokeWidth}),html:f()(n),className:"",name:"list-ol"}),d.elementDividerEnabled&&R.push({title:s("Divider"),icon:a.createElement(M.A,{icon:"ElementDivider",size:24,strokeWidth:d.iconStrokeWidth}),html:y(),className:"",name:"divider"}),d.elementSocialEnabled&&R.push({title:s("Social media"),icon:a.createElement(M.A,{icon:"ElementSocial",size:24,strokeWidth:d.iconStrokeWidth}),html:w,className:"",name:"social"}),d.elementTableEnabled&&R.push({title:s("Table"),icon:a.createElement(M.A,{icon:"ElementTable",size:24,strokeWidth:d.iconStrokeWidth}),html:x()(n),className:"",name:"table"}),d.elementCountdownEnabled&&R.push({title:s("Countdown"),icon:a.createElement(M.A,{icon:"ElementCountdown",size:24,strokeWidth:d.iconStrokeWidth}),html:B(v),className:"",name:"countdown"}),d.elementVideoEnabled&&R.push({title:s("Video"),icon:a.createElement(M.A,{icon:"ElementVideo",size:24,strokeWidth:d.iconStrokeWidth}),html:I,className:"",name:"video"}),d.elementCarouselEnabled&&R.push({title:s("Carousel"),icon:a.createElement(M.A,{icon:"ElementCarousel",size:24,strokeWidth:d.iconStrokeWidth}),html:N()(n),className:"amp",name:"amp-carousel"}),d.elementAccordionEnabled&&R.push({title:s("Accordion"),icon:a.createElement(M.A,{icon:"ElementAccordion",size:24,strokeWidth:d.iconStrokeWidth}),html:P()(n),className:"amp",name:"amp-accordion"}),d.elementFormEnabled&&R.push({title:s("Form"),icon:a.createElement(M.A,{icon:"ElementForm",size:24,strokeWidth:d.iconStrokeWidth}),html:null,className:"amp",name:"amp-form"});const O=e=>!T||"ai-image"!==e.name||(setTimeout(()=>{A(!0),L(2)},1e3),!1);return a.createElement("div",{className:"atoms"},a.createElement("div",{className:"atoms__list"},a.createElement(r.$x,{wrap:!0,style:{justifyContent:"space-between",rowGap:10}},R&&R.map((e,t)=>e.html?a.createElement("div",{className:"ant-card-hoverable atoms__item "+e.className,draggable:!0,onClick:t=>E(t,e.html),onDragStart:t=>_(t,e,O),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(r.m_,{title:s("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(F.A,{open:k,onCancel:()=>A(!1),initialSlide:S}))}},54410:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var a=n(1936),r=n(6056),o=n.n(r),i=n(69622),l=n(96040),s=n(71715),c=n(47706),d=n(93506),m=n(68069),u=n(7714);const{Option:p}=i.Select,{width:h,widthDim:g}={width:"width",widthDim:"widthDim"},b={[h]:"",[g]:""},f=({className:e=""})=>{const{__:t}=(0,c.s9)(),n=(0,s.d4)(m.JV),r=(0,s.d4)(m.iy),[g]=i.lV.useForm(),f=(0,u.XW)(),v=t("Block not yet loaded or global container not found.");(0,a.useEffect)(()=>{g.setFieldsValue({width:n.width.value,widthDim:n.width.dim})},[n,g]);return a.createElement("div",{className:o()("block-appearance-panel",{[e]:e})},a.createElement(i.lV,{form:g,layout:"vertical",name:"block_appearance_panel_form",initialValues:{remember:!1,...b},onValuesChange:e=>{const t=g.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}f({operation:d.Ru.SANDBOX_BLOCK_SETTINGS_SET,settings:a})},autoComplete:"off"},r?a.createElement(i.Fc,{style:{marginBottom:"24px"},message:v,type:"error"}):null,a.createElement(i.lV.Item,{label:t("Container width"),name:h,tooltip:{title:t("Specifies the block width."),icon:a.createElement(l.A,{icon:"InfoCircleOutlined"})},rules:[{message:t("Please input container width")}]},a.createElement(i.pd,{disabled:r,placeholder:t("Container width"),addonAfter:a.createElement(i.lV.Item,{name:"widthDim",noStyle:!0},a.createElement(i.Select,{className:"select-after"},a.createElement(p,{value:"px"},"px"),a.createElement(p,{value:"%"},"%")))}))))}},81557:(e,t,n)=>{"use strict";n.d(t,{A:()=>L});var a=n(1936),r=n(69622),o=n(6403),i=n(96040),l=n(84075),s=n(71715),c=n(47706),d=n(6056),m=n.n(d),u=n(1331),p=n(51121),h=n(72531),g=n(60791),b=n(40867),f=n(93506),v=n(41244),y=n(26557);const E=n.p+"static/media/icon-menu-block-welcome.1c534a003522feadd2e7.png";var C=n(3875),_=n(8855);const{name:k,type:w,tags:A}={name:"name",type:"type",tags:"tags"},x={[k]:"",[w]:[],[A]:[]},S={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},L=({parentEmailId:e=f.iU,blocksTab:t,search:n,reloadBlockScreens:d,email:L,setIsShowAddAllBlocksModal:T})=>{const{projectId:B}=(0,l.g)(),I=(0,v.sh)(),R=(0,v._9)(),[N]=r.lV.useForm(),{data:O}=(0,g.h1)(),{token:P}=(0,r.rd)(),{__:M,_x:F}=(0,c.s9)(),j=(0,o.hN)(),{modal:V}=r.qw.useApp(),{confirm:H}=V;let W=(0,l.zy)();const D=(0,s.d4)(b.V$),$=(0,a.useRef)(null),z=(0,a.useRef)(null),U=(0,C.cR)(),q=207/660,Z="string"===typeof(null===L||void 0===L?void 0:L.common_styles)&&null!==L&&void 0!==L&&L.common_styles.startsWith("{")?JSON.parse(L.common_styles):{},G=(0,a.useRef)(null),X=(0,a.useRef)(null),Y=(0,a.useRef)(null),K=(0,s.Pj)();(0,a.useEffect)(()=>{var e;null===(e=z.current)||void 0===e||e.scrollTo({top:0})},[t,n]);const{data:J}=h.Nq.endpoints.getProject.select(+B)(K.getState()),[Q,ee]=(0,a.useState)({projectId:B,pageSize:1e3,page:1,tags:null,name:null,type:null,notEmbed:!0,order:"asc",orderby:"title"});(0,a.useEffect)(()=>{n||(N.setFieldsValue(x),Ie({type:null,name:null}),d())},[n,N,d]),(0,a.useEffect)(()=>{if(O){const e=O.schema.properties.acf.properties.type.items.enum;let t=[];for(let n in e)t.push({label:M(f.jg[e[n]]),value:e[n]})}},[O,M]);const{isSuccess:te,isError:ne,isLoading:ae,isFetching:re,data:oe,refetch:ie,error:le}=(0,g.SB)({...Q,page:1}),se=(0,a.useMemo)(()=>{if(te&&oe)return[...oe].sort((e,t)=>S[e.type]-S[t.type])},[te,oe]),[ce,de]=(0,a.useState)([]);(0,y.ZC)(e=>{e!==ne&&j.fromError("BLOCK_GET_ERROR",{},le,!0)},[ne,le,j]);const[me,ue]=(0,a.useState)({emailId:e,pageSize:1e3,page:1,projectId:f.p5,notEmbed:!0,name:null,type:null}),{isSuccess:pe,isError:he,isLoading:ge,isFetching:be}=(0,g.OD)({...me,emailId:e,page:1},{skip:!e||D.length}),fe=(0,a.useMemo)(()=>{if(pe||D.length)return[...D].sort((e,t)=>S[e.type]-S[t.type])},[pe,D]),[ve,ye]=(0,a.useState)([]);(0,a.useEffect)(()=>{const e=new Set;if(D.length&&fe){for(const t of fe)t.type&&e.add(t.type);ye(Array.from(e))}else ye([])},[D,fe]);const[Ee,Ce]=(0,a.useState)({pageSize:1e3,page:1,notEmbed:!0,name:null,type:null}),{isSuccess:_e,isError:ke,isLoading:we,isFetching:Ae,data:xe=[]}=(0,g.kz)({...Ee,page:1}),Se=(0,a.useMemo)(()=>{if(xe.length)return[...xe].sort((e,t)=>S[e.type]-S[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 Be=(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]),Ie=e=>{ee(t=>({...t,...e,page:1})),ue(t=>({...t,...e,page:1})),Ce(t=>({...t,...e,page:1}))},Re=(0,a.useCallback)(()=>{U.querySelector(".blocks-search__result-wrapper.is_search")&&(U.querySelector(".blocks-search__result-wrapper").style.removeProperty("transition"),U.querySelector(".blocks-search__result-wrapper").style.opacity=0,U.querySelectorAll(".blocks-search__result-body").forEach(e=>e.style.removeProperty("height")),U.querySelectorAll(".blocks-search__result-body").forEach(e=>{e.style.height=207*e.offsetHeight/660+"px"}),U.querySelector(".blocks-search__result-wrapper").style.transition="opacity 0.2s",U.querySelectorAll(".blocks-search__result-wrapper").forEach(e=>e.style.opacity=1))},[660,U]);(0,a.useEffect)(()=>{Ae||we||!_e||"template"===t||(n?Re():d())},[Ae,we,_e,Re,Q.name,d,n,t]),(0,a.useEffect)(()=>{const e=new Set;if(te&&se){for(const t of se)t.type&&e.add(t.type);de(Array.from(e))}},[te,se]);const Ne=e=>{d(),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 Pe=e=>{clearTimeout(Oe);let t=U.querySelector(".block-search__preview")?U.querySelector(".block-search__preview"):null,n=U.querySelector(".block-search__preview-title")?U.querySelector(".block-search__preview-title"):null,a=U.querySelector(".block-search__preview-content")?U.querySelector(".block-search__preview-content"):null;U.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),U.querySelector(".email-pane__col_settings-inner").append(t)),n.innerHTML="",a.innerHTML="",n.innerHTML=e.title;let r=e.html.replaceAll(/<style((.|\n|\r)*?)<\/style>/gi,"").trim();a.innerHTML=(0,_.p)('<table cellspacing="0" cellpadding="0" border="0" width="100%">'+r+"</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)},Me=()=>{let e=U.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)(()=>{U.querySelectorAll(".blocks-search__result").forEach(e=>{e.style.display="block"})},[t]);const Fe=!(null!==oe&&void 0!==oe&&oe.length)&&(!e||!(null!==D&&void 0!==D&&D.length))&&!(null!==xe&&void 0!==xe&&xe.length)&&(Q.tags||Q.name||Q.type)&&!(ae||re);(0,a.useEffect)(()=>{ae||re||d()},[ae,re,d]),(0,a.useEffect)(()=>{("common"===t||n)&&setTimeout(d,50)},[oe,d,t,n]);const je=e=>{H({maskClosable:!0,centered:!0,title:F("Are you sure you want to delete the \u201c","block")+e.title+M("\u201d block?"),icon:a.createElement(i.A,{icon:"DeleteOutlined"}),okText:M("Yes"),cancelText:M("No"),onOk:()=>(e=>K.dispatch(g.VM.endpoints.deleteBlock.initiate(e.id)).then(t=>{t.error&&j.fromError("BLOCK_REMOVING_ERROR",(0,o.x_)(e),t.error),j.success({id:"BLOCK_REMOVING_SUCCESS",data:(0,o.x_)(e),message:M('The block "')+t.data.title+F('" was successfully removed.',"block")});try{ie()}catch(le){}}))(e)})},Ve=(e,t)=>`${e.pathname.split("emails")[0]}blocks/${t.id}`,He=e=>{let t=[{key:"Delete block",className:"blocks-search__result__menu-item",icon:a.createElement(i.A,{icon:"DeleteOutlined",size:16,style:{margin:0}}),style:{color:P.colorError},onClick:()=>je(e)}];return!f.EW.isPlugin&&t.unshift({key:"Edit block",className:"blocks-search__result__menu-item",icon:a.createElement(i.A,{icon:"EditOutlined",style:{fontSize:"16px",margin:0}}),label:a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:Ve(W,e)}," ")}),t},We=e=>{let t="<tr"===e.html.substring(0,3)?document.createElement("table"):document.createElement("div");if(t.replaceChildren(...(0,p.$$)(e.html)),0!==Object.keys(Z).length&&(t.querySelectorAll(".em-contrast-card").forEach(e=>{var t,n;null!==(t=Z.cards)&&void 0!==t&&t.contrastBackgroundColor&&(e.getAttribute("bgcolor")?Z.cards.contrastBackgroundColor?e.setAttribute("bgcolor",Z.cards.contrastBackgroundColor):e.removeAttribute("bgcolor"):Z.cards.contrastBackgroundColor?e.style.backgroundColor=Z.cards.contrastBackgroundColor:e.style.removeProperty("background-color")),null!==(n=Z.cards)&&void 0!==n&&n.contrastTextColor&&e.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach(e=>{if("#ffffff"!==$e(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.cards.contrastTextColor};`);e.setAttribute("style",t)}})}),t.querySelectorAll(".em-card").forEach(e=>{var t,n;null!==(t=Z.cards)&&void 0!==t&&t.baseBackgroundColor&&(e.getAttribute("bgcolor")?Z.cards.baseBackgroundColor?e.setAttribute("bgcolor",Z.cards.baseBackgroundColor):e.removeAttribute("bgcolor"):Z.cards.baseBackgroundColor?e.style.backgroundColor=Z.cards.baseBackgroundColor:e.style.removeProperty("background-color")),null!==(n=Z.cards)&&void 0!==n&&n.baseTextColor&&e.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach(e=>{if("#ffffff"!==$e(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.cards.baseTextColor};`);e.setAttribute("style",t)}})}),t.querySelectorAll(".em-card, .em-contrast-card").forEach(e=>{var t,n,a,r,o,i;null!==(t=Z.cards)&&void 0!==t&&t.border&&Ue({settings:{border:null===(i=Z.cards)||void 0===i?void 0:i.border},elem:e});if(null!==(n=Z.cards)&&void 0!==n&&null!==(a=n.borderRadius)&&void 0!==a&&a.all){var l,s,c,d;if(e.style.borderBottomLeftRadius&&"0px"!==e.style.borderBottomLeftRadius)e.style.borderBottomLeftRadius=(null===(l=Z.cards)||void 0===l?void 0:l.borderRadius.all)+"px";if(e.style.borderBottomRightRadius&&"0px"!==e.style.borderBottomRightRadius)e.style.borderBottomRightRadius=(null===(s=Z.cards)||void 0===s?void 0:s.borderRadius.all)+"px";if(e.style.borderTopLeftRadius&&"0px"!==e.style.borderTopLeftRadius)e.style.borderTopLeftRadius=(null===(c=Z.cards)||void 0===c?void 0:c.borderRadius.all)+"px";if(e.style.borderTopRightRadius&&"0px"!==e.style.borderTopRightRadius)e.style.borderTopRightRadius=(null===(d=Z.cards)||void 0===d?void 0:d.borderRadius.all)+"px"}else if(""===(null===(r=Z.cards)||void 0===r||null===(o=r.borderRadius)||void 0===o?void 0:o.all))e.style.removeProperty("border-radius");else{var m,u,p,h,g,b,f,v,y,E,C,_,k,w,A,x,S,L,T,B;if(null!==(m=Z.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=Z.cards)||void 0===S?void 0:S.borderRadius.topLeft)+"px";else""===(null===(p=Z.cards)||void 0===p||null===(h=p.borderRadius)||void 0===h?void 0:h.topLeft)&&e.style.removeProperty("border-top-left-radius");if(null!==(g=Z.cards)&&void 0!==g&&null!==(b=g.borderRadius)&&void 0!==b&&b.topRight&&e.style.borderTopRightRadius&&"0px"!==e.style.borderTopRightRadius)e.style.borderTopRightRadius=(null===(L=Z.cards)||void 0===L?void 0:L.borderRadius.topRight)+"px";else""===(null===(f=Z.cards)||void 0===f||null===(v=f.borderRadius)||void 0===v?void 0:v.topRight)&&e.style.removeProperty("border-top-right-radius");if(null!==(y=Z.cards)&&void 0!==y&&null!==(E=y.borderRadius)&&void 0!==E&&E.bottomRight&&e.style.borderBottomRightRadius&&"0px"!==e.style.borderBottomRightRadius)e.style.borderBottomRightRadius=(null===(T=Z.cards)||void 0===T?void 0:T.borderRadius.bottomRight)+"px";else""===(null===(C=Z.cards)||void 0===C||null===(_=C.borderRadius)||void 0===_?void 0:_.bottomRight)&&e.style.removeProperty("border-bottom-right-radius");if(null!==(k=Z.cards)&&void 0!==k&&null!==(w=k.borderRadius)&&void 0!==w&&w.bottomLeft&&e.style.borderBottomLeftRadius&&"0px"!==e.style.borderBottomLeftRadius)e.style.borderBottomLeftRadius=(null===(B=Z.cards)||void 0===B?void 0:B.borderRadius.bottomLeft)+"px";else""===(null===(A=Z.cards)||void 0===A||null===(x=A.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="",r=Z.text.fontFamily;if(parseFloat(e.style.fontSize)>14&&(a=e.getAttribute("style").replace(/font-size:(\s+)?.*?px/,`font-size: ${Z.text.fontSize}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${Z.text.lineHeight}px`),e.setAttribute("style",a)),e.closest(".em-contrast-card, .em-card")||"#ffffff"===$e(e.style.color).toLowerCase()||(a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.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: ${Z.text.contrastColor};`),e.setAttribute("style",a)),"Safe Fonts"===r[0]?(e.style.fontFamily=r[1],De({elem:t})):"Google Fonts"===r[0]&&("Sans Serif"===r[1]?e.style.fontFamily="Helvetica, Arial, sans-serif":"Serif"===r[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-${r[2].replace(/\s/g,"")}-${r[3].replace(/\s/g,"")}`),ze({elem:t,fontFamilyArray:r})),e.closest('[em="atom"] > tr > td')&&e.closest('[em="atom"] > tr > td').style.paddingBottom)e.closest('[em="atom"] > tr > td').style.paddingBottom=Z.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",Z.text.paddingBottom)}}else if(!e.style.display&&parseFloat(e.style.fontSize)>=20&&"#eb3737"!==$e(e.style.color).toLowerCase()){let n="",a=Z.headings.fontFamily;parseFloat(e.style.fontSize)<40&&(n=e.getAttribute("style").replace(/font-size:(\s+)?.*?px/,`font-size: ${Z.headings.fontSize}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${Z.headings.lineHeight}px`),e.setAttribute("style",n)),e.closest(".em-contrast-card, .em-card")||"#ffffff"===$e(e.style.color).toLowerCase()||(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.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: ${Z.headings.contrastColor};`),e.setAttribute("style",n)),"Safe Fonts"===a[0]?(e.style.fontFamily=a[1],De({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,"")}`),ze({elem:t,fontFamilyArray:a}));let r="";if(r=Z.headings.letterSpacing>0?e.style.letterSpacing?e.getAttribute("style").replace(/letter-spacing:(\s+)?.*?px/,`letter-spacing: ${Z.headings.letterSpacing}px`):e.getAttribute("style")+` letter-spacing: ${Z.headings.letterSpacing}px;`:e.getAttribute("style").replace(/(\s+)?letter-spacing:(\s+)?.*?px(;)?/,""),e.setAttribute("style",r),Z.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(Z.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=Z.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",Z.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=Z.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",Z.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: ${Z.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(Z.buttons.border).every(e=>null===e)){if(e.closest(".em-contrast-block")){if(Z.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}/,`${Z.buttons.contrastBackgroundColor}`));e.closest("td").setAttribute("style",t),n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.buttons.contrastBackgroundColor};`),e.setAttribute("style",n)}}else if(Z.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}/,`${Z.buttons.backgroundColor}`));e.closest("td").setAttribute("style",t),n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.buttons.backgroundColor};`),e.setAttribute("style",n)}}else for(const t in Z.buttons.border)Z.buttons.border[t]&&void 0!==Z.buttons.border[t].color&&(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.buttons.border[t].color};`),e.setAttribute("style",n));else e.closest(".em-contrast-block")?Z.buttons.contrastBackgroundColor&&(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.buttons.contrastBackgroundColor};`),e.setAttribute("style",n)):Z.buttons.backgroundColor&&(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.buttons.backgroundColor};`),e.setAttribute("style",n));else if(n=e.closest(".em-contrast-block")?e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.buttons.contrastColor};`):e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.buttons.color};`),e.setAttribute("style",n),e.closest(".em-contrast-block"))if(Z.buttons.contrastBackgroundColor){let t=e.closest("td").getAttribute("style").replace(/background-color:(\s+)?.*?;/,`background-color: ${Z.buttons.contrastBackgroundColor};`);e.closest("td").setAttribute("style",t)}else e.closest("td").style.removeProperty("background-color");else if(Z.buttons.backgroundColor){let t=e.closest("td").getAttribute("style").replace(/background-color:(\s+)?.*?;/,`background-color: ${Z.buttons.backgroundColor};`);e.closest("td").setAttribute("style",t)}else e.closest("td").style.removeProperty("background-color");let a=Z.buttons.fontFamily;"Safe Fonts"===a[0]?(e.style.fontFamily=a[1],De({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,"")}`),ze({elem:t,fontFamilyArray:a})),e.closest("td").setAttribute("align",Z.buttons.textAlign);let r="";if(r=Z.buttons.letterSpacing>0?e.style.letterSpacing?e.getAttribute("style").replace(/letter-spacing:(\s+)?.*?px/,`letter-spacing: ${Z.buttons.letterSpacing}px`):e.getAttribute("style")+` letter-spacing: ${Z.buttons.letterSpacing}px;`:e.getAttribute("style").replace(/(\s+)?letter-spacing:(\s+)?.*?px(;)?/,""),e.setAttribute("style",r),Z.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(Z.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=Z.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",Z.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=Z.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",Z.buttons.marginBottom)}Z.buttons.padding.all&&(e.style.padding=Z.buttons.padding.all+"px"),Z.buttons.padding.top&&(e.style.paddingTop=Z.buttons.padding.top+"px"),Z.buttons.padding.right&&(e.style.paddingRight=Z.buttons.padding.right+"px"),Z.buttons.padding.bottom&&(e.style.paddingBottom=Z.buttons.padding.bottom+"px"),Z.buttons.padding.left&&(e.style.paddingLeft=Z.buttons.padding.left+"px"),Ue({settings:{border:Z.buttons.border},elem:e.closest("td")}),qe({settings:{borderRadius:Z.buttons.borderRadius},elem:e.closest("td")})}}else{let n=Z.text.fontFamily;if("#1c52dc"===$e(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.links.color};`);e.setAttribute("style",t)}else{let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.text.color};`);e.setAttribute("style",t)}if(e.closest(".em-contrast-block")){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${Z.links.contrastColor};`);e.setAttribute("style",t)}let a="";a=Z.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],De({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,"")}`),ze({elem:t,fontFamilyArray:n}))}}),t.querySelector('[em="block"]'))){var n,a;const e=t.querySelectorAll('[em="block"]');null!==(n=Z.block)&&void 0!==n&&n.backgroundColor&&e.forEach(e=>{e.querySelectorAll(":scope > td").forEach(e=>{e.setAttribute("bgcolor",Z.block.backgroundColor)})}),null!==(a=Z.block)&&void 0!==a&&a.padding&&e.forEach(e=>{e.querySelectorAll(":scope > td").forEach(e=>{e.style.paddingTop=Z.block.padding.top+"px",e.style.paddingRight=Z.block.padding.right+"px",e.style.paddingBottom=Z.block.padding.bottom+"px",e.style.paddingLeft=Z.block.padding.left+"px"})})}return"DIV"===t.tagName?(0,u.uL)(t):(0,u.uL)(t.querySelector("tbody"))},De=e=>{e.elem.querySelectorAll("link[em-class]").forEach(t=>{e.elem.querySelector("."+t.getAttribute("em-class"))||t.remove()})};function $e(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 ze=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@${Ze[e.fontFamilyArray[3]].indexOf("i")>-1?"1":"0"},${Ze[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 r=`font-family: '${e.fontFamilyArray[2]}', ${Ge[e.fontFamilyArray[1]]}!important;`;r+=` font-weight: ${Ze[e.fontFamilyArray[3]].replaceAll("i","")}!important;`,Ze[e.fontFamilyArray[3]].indexOf("i")>-1&&(r+=" 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,"")} { ${r} }`),setTimeout(()=>De({elem:e.elem}),0)},Ue=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")))},qe=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"))},Ze={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:m()("blocks-search",{is_search:n})},a.createElement(r.lV,{className:m()("blocks-search__form",{is_search:n}),form:N,layout:"vertical",name:"blocks_search_form",initialValues:{...x},onValuesChange:e=>{const t=Object.keys(e)[0],n=N.getFieldsValue(!0);switch(t){case A:const a=(0,v._q)(J,f.YY).filter(n=>e[t].includes(n.name)).map(e=>e.id)||null;Ie({tags:a});break;case w:Ie({type:n.type||null});break;case k:$.current&&window.clearTimeout($.current),$.current=window.setTimeout(function(){Ie({name:n.name||null})},300)}},autoComplete:"off"},a.createElement(r.lV.Item,{name:k},a.createElement(r.DO,{placeholder:M("Search by title"),allowClear:!0,enterButton:!1}))),(ne||he||ke)&&a.createElement(r.Fc,{message:M("Error"),description:M("Error when receiving data. Try again (reload page) or contact support."),type:"error",showIcon:!0}),n&&!Fe&&a.createElement("div",{className:"blocks-search__type-wrapper"},a.createElement("ul",null,a.createElement("li",{key:"search_All","data-type":"",className:"active",onClick:Ne},M("All")),Be.map(e=>a.createElement("li",{"data-type":e,onClick:Ne,key:"search_"+e},M(f.jg[e]))))),a.createElement("div",{ref:z,className:m()("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:Ne},M("All")),ce.map(e=>a.createElement("li",{key:"blocksSections_"+e,"data-type":e,onClick:Ne},M(f.jg[e]))))),a.createElement("div",{className:m()("blocks-search__blocks-wrapper",{is_search:n}),ref:G},a.createElement("div",{className:"blocks-search__result-holder project"},!(ae||re)&&(null!==se&&void 0!==se&&se.length?se.map((e,t)=>{const n=(0,_.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(r.ms,{key:"commenMenu",placement:"leftTop",menu:{items:He(e)},overlayStyle:{minWidth:"auto",paddingRight:6}},a.createElement("div",{className:"ant-card-hoverable blocks-search__result-body",draggable:!0,onClick:t=>I(t,e.html,"project"),onDragStart:t=>R(t,e.html,"project"),onMouseEnter:()=>Pe({html:e.html,title:e.title}),onMouseLeave:Me},a.createElement("div",{className:"blocks-search__result-html",dangerouslySetInnerHTML:{__html:n},style:{transform:`scale(${q})`}}))))}):!(Q.tags||Q.name||Q.type)&&te&&!(ae||re)&&!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"}},M("You don`t have any saved blocks yet.")),M("To add a block from the dashboard click the"),' "',M("Save to Blocks button."),'" ',a.createElement(i.A,{icon:"SaveBlock",style:{position:"relative",top:"2px"}}),a.createElement("br",null),a.createElement("br",null),M("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(r.so,{justify:"left"},a.createElement(r.$n,{type:"primary",onClick:()=>T(!0),style:{cursor:"pointer"}},M("Save all blocks")))),a.createElement("div",{style:{width:"80px",height:"200px"}},a.createElement("img",{src:E,style:{display:"block",width:80,position:"absolute",right:5}}))))),(ae||re)&&a.createElement(r.EA,{active:!0}))),n&&(null===oe||void 0===oe?void 0:oe.length)>0&&(null===D||void 0===D?void 0:D.length)>0&&a.createElement(r.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:Ne,key:"templateBlocksSections_All"},M("All")),ve.map(e=>a.createElement("li",{key:"templateBlocksSections_"+e,"data-type":e,onClick:Ne},M(f.jg[e]))))),a.createElement("div",{className:m()("blocks-search__blocks-wrapper",{is_search:n}),ref:X},a.createElement("div",{className:"blocks-search__result-holder template"},D&&!ge&&!be&&null!==fe&&void 0!==fe&&fe.length?a.createElement(a.Fragment,null,fe.map((e,t)=>{const n=(0,_.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=>I(t,e.html,"template"),onDragStart:t=>R(t,e.html,"template"),onMouseEnter:()=>Pe({html:e.html,title:e.title}),onMouseLeave:()=>Me()},a.createElement("div",{className:"blocks-search__result-html",dangerouslySetInnerHTML:{__html:n},style:{transform:`scale(${q})`}})))})):!n&&!we&&!be&&a.createElement("div",{className:"blocks-search__type",style:{padding:"10px 0 20px"}},M("No related blocks found."))," "),(ge||be)&&a.createElement(r.EA,{active:!0}))),n&&(null===D||void 0===D?void 0:D.length)>0&&(null===xe||void 0===xe?void 0:xe.length)>0&&a.createElement(r.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:Ne,key:"commonBlocksSections_All"},M("All")),Le.map(e=>a.createElement("li",{"data-type":e,onClick:Ne,key:"commonBlocksSections_"+e},M(f.jg[e]))))),a.createElement("div",{className:m()("blocks-search__blocks-wrapper",{is_search:n}),ref:Y},a.createElement("div",{className:"blocks-search__result-holder common"},_e&&!(null===Se||void 0===Se||!Se.length)&&!(Ae||we)&&a.createElement(a.Fragment,null,Se.map((e,t)=>{const n=We({html:(0,_.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=>I(t,We({html:e.html}),"common"),onDragStart:t=>R(t,We({html:e.html}),"common"),onMouseEnter:()=>Pe({html:We({html:(0,_.p)('<table cellspacing="0" cellpadding="0" border="0" width="100%">'+e.html+"</table>")}),title:e.title}),onMouseLeave:()=>Me()},a.createElement("div",{className:"blocks-search__result-html",dangerouslySetInnerHTML:{__html:n},style:{transform:`scale(${q})`}})))}))," "),(we||Ae)&&a.createElement(r.EA,{active:!0}))),Fe&&a.createElement("div",{className:"blocks-search__type",style:{padding:"10px 0 20px"}},M("There are no blocks for this request."))))}},86743:(e,t,n)=>{"use strict";n.d(t,{A:()=>K});var a=n(1936),r=n(69622),o=n(84075),i=n(71715),l=n(20587),s=n(61069),c=n(48873),d=n(1331),m=n(6403),u=n(32638),p=n(98612),h=n(73378),g=n(96040),b=n(47706),f=n(85183);const v=({open:e,codeSize:t,onMinimize:n,onDownloadAsIs:o,onCancel:i})=>{const{__:l}=(0,b.s9)(),s=(0,f.WJ)(t);return a.createElement(r.aF,{open:e,onCancel:i,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"},l("Code Size Warning")),a.createElement("div",{className:"code-size-warning-modal__message"},a.createElement("p",null,l("The current code size is")," ",a.createElement("strong",null,s),","," ",l("which exceeds the recommended 90 KB limit.")),a.createElement("p",null,l("Large emails may have delivery issues and load slowly. We recommend minimizing code before exporting."))),a.createElement(r.$x,{className:"code-size-warning-modal__actions",size:"middle"},a.createElement(r.$n,{type:"primary",onClick:n,size:"large"},l("Minimize code")),a.createElement(r.$n,{onClick:o,size:"large"},l("Download as is")))))};var y=n(81644),E=n(49077),C=n(29692),_=n(98173),k=n(22817),w=n(78443),A=n(40867),x=n(52898),S=n(89591),L=n(28374),T=n(87796),B=n(6680),I=n(5823),R=n(79613),N=n(44004),O=n(78679),P=n(7959),M=n(41244),F=n(11822),j=n(47794),V=n(32463),H=n(65185),W=n(2527),D=n(91480),$=n(942),z=n(7314),U=n(93506),q=n(65893),Z=n(48155),G=n.n(Z),X=n(20110),Y=n(14139);const K=({email:e,autoSaveEmailResult:t,autoSaveBlockResult:n})=>{var Z,K,J,Q,ee,te,ne,ae,re,oe,ie;const{__:le,_x:se}=(0,b.s9)(),ce=(0,i.wA)(),[de]=(0,R.mI)(),[me]=(0,N.dS)(),ue=(0,o.Zp)(),{owner:pe,admin:he}=(0,P.A)(),ge=(0,i.d4)(_.C1),be=(0,i.d4)(k.yN),{modal:fe}=r.qw.useApp(),ve=(0,m.hN)(),{confirm:ye}=fe,Ee=(0,i.Pj)(),Ce=(0,W.p)(),_e=(0,$.rD)(),{projectId:ke}=(0,o.g)(),we=(0,H.ml)(q.AZ.ON_EMAIL_CLONE_ID),[Ae]=(0,B.N)(),{exportToIntegration:xe,isLoading:Se}=(0,O._)(),Le=(0,D.u)(),[Te,Be]=(0,a.useState)(!0),[Ie,Re]=(0,a.useState)(!1),[Ne,Oe]=(0,a.useState)(null),[Pe,Me]=(0,a.useState)(""),[Fe,je]=(0,a.useState)(!1),[Ve,He]=(0,a.useState)(0),[We,De]=(0,a.useState)(null),[$e,ze]=(0,a.useState)(""),Ue=!(0,i.d4)(_.B$)&&(null===(Z=ge.id)||void 0===Z?void 0:Z.toString())===(null===be||void 0===be||null===(K=be.members)||void 0===K?void 0:K.owner.ID),qe="community"===(null===ge||void 0===ge||null===(J=ge.subscription)||void 0===J?void 0:J.post_name),[Ze]=S.GY.useDeleteEmailMutation(),[Ge,Xe]=(0,S.Kh)(),[Ye]=(0,L.ri)(),[Ke]=(0,L.cA)(),[Je]=(0,I.m)(),{data:Qe}=(0,o.KC)(),{data:et,refetch:tt}=(0,T.Jz)({parent:null===Qe||void 0===Qe||null===(Q=Qe.folder)||void 0===Q?void 0:Q[0]},{skip:!(null!==Qe&&void 0!==Qe&&null!==(ee=Qe.folder)&&void 0!==ee&&ee[0])}),nt=(0,i.d4)(A.Wv);(0,a.useEffect)(()=>{nt.switched&&Be(!1)},[nt]);const at=()=>null===e.title?le("New email title"):e.title,rt=(e,t)=>{const n=(0,f.X_)(e);(0,f.Gw)(n)?(Me(e),Oe(()=>t),Re(!0)):t(e)},ot=(0,z.fn)(),it=(0,H._q)(q.AZ.ON_EMAIL_INIT_ID);(0,a.useEffect)(()=>{const e=it(()=>{Be(!1)});return()=>e.dispose()},[it]);const lt=async(t,n=(null===ot||void 0===ot?void 0:ot.getValue())||"")=>{const a=document.querySelector(".email-preview"),r=getComputedStyle(a);return n=await(0,F.PJ)(n,[r.width],e.utm_parameters,async e=>{dt(e)}),Ye({file:n,title:at(),notification:ve}).unwrap().then(e=>{const n={id:e._id,...e};return t(n,()=>Ke({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)=>lt((t,n)=>({href:(0,u.QG)(t.id,void 0,!1,e),dispose:n})))(e).then(({href:e,dispose:t})=>(0,F.SR)(e).finally(t)),ct=async e=>{const t=e.document.querySelectorAll("[em-operation=exportAsPicture]"),n=new Map;for(let a=0,r=t.length;a<r;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:r,dispose:o}=await((e,t,n=2)=>lt((t,a)=>({data:e.map(e=>({selector:e,href:(0,u.QG)(t.id,void 0,!1,n,e)})),dispose:a}),t))([...n.keys()],(0,d.b6)(e),2);try{const e=r.map(async({href:e,selector:a},r)=>{const o=n.get(a);if("TD"===o.tagName){o.removeAttribute("style");for(const e of[...o.classList])e.startsWith("em-mob-")&&o.classList.remove(e)}t.commit();const i=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=s.extension(a.type);e&&(t=`${t}.${e}`)}const r=new File([a],t.toLowerCase());try{const t=await me({user_id:ge.id,folder:String(Qe.id),file:r}).unwrap(),n=(0,j.g0)(t);if(n.error)return"string"===typeof e?e:"";if(n.file_url)return n.file_url}catch(o){}return"string"===typeof e?e:""})(e,`${r}-${o.tagName.toLowerCase()}.png`),l=parseInt(getComputedStyle(o).width);let c=new Image(l);c.setAttribute("border","0"),c.setAttribute("style",`display: block; width: 100%; max-width: ${l}px;`),c.alt="",c.src=i;const d=o.querySelector("a");if(d){const e=document.createElement("a");e.setAttribute("target","_blank"),e.setAttribute("href",d.getAttribute("href")),e.appendChild(c),c=e}if("TD"===o.tagName){const e=o.cloneNode();e.removeAttribute("em-operation"),e.appendChild(c),c=e}o.replaceWith(c),t.commit()});await Promise.all(e)}catch(a){}finally{o()}}catch(a){}})},dt=t=>{var n,a;const r=t.document;if("0"===(null===Qe||void 0===Qe||null===(n=Qe.limits)||void 0===n?void 0:n.preview_limit)&&ke&&(null===ge||void 0===ge||null===(a=ge.counters)||void 0===a?void 0:a.emails_counter)>2&&!r.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>`;r.querySelector("body > table:last-child > tbody:last-child > tr:last-child, body > div > table:last-child > tbody:last-child > tr:last-child")&&r.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===ot||void 0===ot?void 0:ot.getValue())||"";rt(n,n=>{Le({event:"click",action:"export_email",export_type:"HTML"});const a=document.querySelector(".email-preview"),r=getComputedStyle(a);(0,F.PJ)(n,[r.width],e.utm_parameters,async e=>{await ct(e),dt(e),await(0,V.e)(e,t)}).then(e=>{const t=new Blob([e],{type:"text/html;charset=utf-8"});(0,c.saveAs)(t,`${at()}.html`)}).catch(e=>{})})},ut=t=>{const n=(null===ot||void 0===ot?void 0:ot.getValue())||"";rt(n,n=>{Le({event:"click",action:"export_email",export_type:"TEXT"});const a=document.querySelector(".email-preview"),r=getComputedStyle(a);(0,F.PJ)(n,[r.width],e.utm_parameters,async e=>{await ct(e),dt(e),await(0,V.e)(e,t),e.handleReadHtml(e=>{e.html=(0,X.G9)(e.contentDocument,Y.l)})}).then(e=>{const t=new Blob([e],{type:"text/plain;charset=utf-8"});(0,c.saveAs)(t,`${at()}.txt`)}).catch(e=>{})})},pt=t=>{const n=(null===ot||void 0===ot?void 0:ot.getValue())||"";rt(n,n=>{Le({event:"click",action:"export_email",export_type:"Clipboard"});const a=document.querySelector(".email-preview"),r=getComputedStyle(a);(0,F.PJ)(n,[r.width],e.utm_parameters,async e=>{await ct(e),dt(e),await(0,V.e)(e,t)}).then(e=>navigator.clipboard.writeText(e).then(function(){ve.success(le("The email has been copied to the clipboard."))})).catch(e=>{})})},ht=t=>{if(be.webhook){const n=(null===ot||void 0===ot?void 0:ot.getValue())||"";rt(n,n=>{Le({event:"click",action:"export_email",export_type:"webhook"});const a=document.querySelector(".email-preview"),r=getComputedStyle(a);(0,F.PJ)(n,[r.width],e.utm_parameters,async e=>{await ct(e),dt(e),await(0,V.e)(e,t)}).then(t=>{Ae({url:be.webhook,body:(0,l.E)({...e,code:t},Ee)}).unwrap().then(t=>{Le({event:"export",action:"export_email",export_type:"webhook",email_id:e.id,project_id:ke,success:!0}),ve.success({message:le("Success!"),description:le("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:le("Success!"),description:le("Webhook successfully sent!")}):ve.error({message:t.status,description:t.error})})})})}else ce((0,w.YF)("webhooksettings")),ce((0,w.qf)(U.lx.EDIT_PROJECT_MODAL))},gt=e=>new Promise((t,n)=>{fetch(e).then(e=>t(e.blob()),()=>(e=>{const t=Ce.get(U.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(()=>{})}),bt=()=>{Le({event:"click",action:"click_delete_email_menu_item",entity_type:"email",entity_id:e.id,project_id:e.project,context:"editor"}),e.isNew?(U.EW.isPlugin||ue(`/projects/${Qe.id}/emails`),ve.success(le("The draft of the email has been deleted."))):ft(e,ue)},ft=(e,t)=>{Le({event:"open",action:"open_delete_email_modal",entity_type:"email",entity_id:e.id,project_id:e.project,context:"editor"}),ye({maskClosable:!0,centered:!0,title:se('Are you sure to delete "',"email")+e.title+le('" email?'),icon:a.createElement(g.A,{icon:"DeleteOutlined",style:{color:"#ff4d4f"}}),okText:le("Yes"),cancelText:le("No"),onOk:()=>(async(e,t)=>{try{const n=await Ze(e.id).unwrap();e.project&&!U.EW.isPlugin&&t(`/projects/${e.project}/emails`),ve.success(le('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,j.QM)("application/zip, message/rfc822, text/html",yt)},yt=async e=>{const t=e[0];try{ce((0,A.M7)(!0));const e=(0,j.xi)(de,me,ge,Qe),n=(0,j.oF)(t),a=await(0,j.q2)(t,e,n),[r]=(0,F.Ay)(t.name.replaceAll(" "," ")),o=r||(0,M.ez)(a)||"";ot.pushEditOperations([],[{range:ot.getFullModelRange(),text:a}],()=>null),ce((0,x.VK)(o)),ce((0,A.M7)(!1))}catch(n){ce((0,A.M7)(!1));const e=n instanceof Error?n.message:n;ve.error({message:e})}Le({event:"upload_file",action:"import_email"})},Et=[];_e.emailDropdownMenuClone&&Et.push({label:le("Clone"),icon:a.createElement(g.A,{icon:"CopyOutlined",size:16,strokeWidth:_e.iconStrokeWidth}),key:"Clone",className:"em-analytics__email-clone",disabled:Xe.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:le("To create a copy, you need to save the email.")});else{var t,n,a,r,o;if((await we.fire(e)).some(e=>!1===e))return;Ge({title:(0,M.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,M.el)((null===ot||void 0===ot?void 0:ot.getValue())||"",e.title),parent_email:e.parent_email||U.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===(r=e.utm_parameters)||void 0===r?void 0:r.utm_term,utm_content:null===(o=e.utm_parameters)||void 0===o?void 0:o.utm_content},emailtags:e.emailtags,folder:e.folder}).unwrap().then(t=>{ue(`/projects/${Qe.id}/emails/${t.id}`),ve.success({message:le('The copy of email "')+e.title+le('" 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})})}}}),_e.emailDropdownMenuImport&&Et.push({label:se("Import","verb"),icon:a.createElement(g.A,{icon:"CloudUploadOutlined",size:16,strokeWidth:_e.iconStrokeWidth}),key:"Import",className:"em-analytics__editor-page__import",onClick:()=>{Le({event:"click",action:"import_email"}),vt()}}),(pe||he||(null===(te=ge.id)||void 0===te?void 0:te.toString())===(null===(ne=e.author)||void 0===ne?void 0:ne.toString()))&&(_e.emailDropdownMenuLock&&Et.push({label:a.createElement(h.A,{key:"Lock",element:e,context:"editor"}),icon:e.lock?a.createElement(g.A,{icon:"UnLock",size:16,strokeWidth:_e.iconStrokeWidth}):a.createElement(g.A,{icon:"Lock",size:16,strokeWidth:_e.iconStrokeWidth}),disabled:e.isNew}),_e.emailDropdownMenuRemove&&Et.push({label:le("Remove"),icon:a.createElement(g.A,{icon:"DeleteOutlined",size:16,strokeWidth:_e.iconStrokeWidth}),key:"Remove",className:"em-analytics__email-remove",style:{color:"#ff4d4f"},onClick:bt}));const Ct=e.isAmp,_t=[];if(_e.exportHtmlEnabled&&_t.push({key:"html",label:le("Code"),icon:a.createElement("span",{style:{position:"relative",display:"inline-flex"}},a.createElement(g.A,{icon:"FileTextOutlined",style:{fontSize:"16px"}}),Ue&&a.createElement(g.A,{icon:"Lock",size:12,strokeWidth:_e.iconStrokeWidth,style:{position:"absolute",bottom:-4,right:-4,borderRadius:"100%",backgroundColor:"var(--colorBgContainer)"}})),...Ue?{onClick:()=>{je(!0),He(1)}}:Ct?{children:[{key:"\u0441ode_html",label:le("AMP"),onClick:()=>mt("amp")},{key:"html_amp",label:le("HTML"),onClick:()=>mt("html")}]}:{onClick:()=>mt()}}),_e.exportZipEnabled&&_t.push({key:"zip",label:le("ZIP"),icon:a.createElement("span",{style:{position:"relative",display:"inline-flex"}},a.createElement(g.A,{icon:"FileZipOutlined",style:{fontSize:"16px"}}),Ue&&a.createElement(g.A,{icon:"Lock",size:12,strokeWidth:_e.iconStrokeWidth,style:{position:"absolute",bottom:-4,right:-4,borderRadius:"100%",backgroundColor:"var(--colorBgContainer)"}})),...Ue?{onClick:()=>{je(!0),He(1)}}:{onClick:()=>(async()=>{const t=(null===ot||void 0===ot?void 0:ot.getValue())||"";rt(t,async t=>{Le({event:"click",action:"export_email",export_type:"ZIP"});const n=document.querySelector(".email-preview"),a=getComputedStyle(n),r=await(0,F.Ce)(t,[a.width,void 0],e.utm_parameters,gt,async e=>{await ct(e),dt(e),Ct&&await(0,V.e)(e,"html")});Ct&&(r["amp.html"]=await(0,F.PJ)(t,[a.width],e.utm_parameters,async e=>{await ct(e),dt(e),await(0,V.e)(e,"amp")}));const o=await(0,F.hs)(r);(0,c.saveAs)(o,`${at()}.zip`)})})().catch(e=>{})}}),_e.exportClipboardEnabled&&_t.push({key:"clipboard",label:le("Clipboard"),icon:a.createElement("span",{style:{position:"relative",display:"inline-flex"}},a.createElement(g.A,{icon:"SnippetsOutlined",style:{fontSize:"16px"}}),Ue&&a.createElement(g.A,{icon:"Lock",size:12,strokeWidth:_e.iconStrokeWidth,style:{position:"absolute",bottom:-4,right:-4,borderRadius:"100%",backgroundColor:"var(--colorBgContainer)"}})),...Ue?{onClick:()=>{je(!0),He(1)}}:Ct?{children:[{key:"clipboard_html",label:le("AMP"),onClick:()=>pt("amp")},{key:"clipboard_amp",label:le("HTML"),onClick:()=>pt("html")}]}:{onClick:()=>pt()}}),_e.exportTextEnabled&&_t.push({key:"text",label:le("Text"),icon:a.createElement(g.A,{icon:"FileOutlined",style:{fontSize:"16px"}}),...Ct?{children:[{key:"\u0441ode_txt",label:le("AMP"),onClick:()=>ut("amp")},{key:"html_txt",label:le("HTML"),onClick:()=>ut("html")}]}:{onClick:()=>ut()}}),_e.exportOutlookEnabled&&_t.push({key:"outlook",icon:a.createElement(g.A,{icon:"FileWordOutlined",style:{fontSize:"16px"}}),label:le("Outlook"),onClick:()=>(t=>{const n=(null===ot||void 0===ot?void 0:ot.getValue())||"";rt(n,n=>{Le({event:"click",action:"export_email",export_type:"Outlook"});const a=document.querySelector(".email-preview"),r=getComputedStyle(a),o=async(e,t)=>{e.document,(0,V.e)(e,t),await ct(e),dt(e)};(0,F.pH)(e.title,n,[r.width,r.height],e.utm_parameters,t?e=>o(e,"html"):e=>o(e)).then(e=>{const t=new Blob([e],{type:"text/html;charset=utf-8"});(0,c.saveAs)(t,`${at()}.eml`)}).catch(e=>{})})})(Ct)}),_e.exportPdfEnabled&&_t.push({key:"pdf",icon:a.createElement(g.A,{icon:"FilePdfOutlined",style:{fontSize:"16px"}}),label:le("PDF"),onClick:async()=>{const t=(null===ot||void 0===ot?void 0:ot.getValue())||"";rt(t,async t=>{try{const n=document.querySelector(".email-preview"),a=getComputedStyle(n),r=await(0,F.PJ)(t,[a.width],e.utm_parameters,async e=>{dt(e)}),o=await Je({htmlContent:r,notification:ve}).unwrap(),i=window.URL.createObjectURL(new Blob([o],{type:"application/pdf"})),l=document.createElement("a");l.href=i,l.setAttribute("download",`${at()}.pdf`),document.body.appendChild(l),l.click(),document.body.removeChild(l),window.URL.revokeObjectURL(i)}catch(n){}})}}),_e.exportPngEnabled&&_t.push({key:"img",icon:a.createElement(g.A,{icon:"FileImageOutlined",style:{fontSize:"16px"}}),label:le("PNG"),onClick:()=>st(1).then(F.gZ).then(e=>(0,c.saveAs)(e,`${at()}.png`)).then(()=>Le({event:"click",action:"export_email",export_type:"Image"}))}),!U.EW.isPlugin){const t=(0,C.v0)(),n=[...t.filter(e=>{var t;return(0,C.hS)(e.id,null===(t=be.integrations)||void 0===t?void 0:t[e.id])}),...t.filter(e=>{var t;return!(0,C.hS)(e.id,null===(t=be.integrations)||void 0===t?void 0:t[e.id])})],r=_e.exportWebHookEnabled?{key:"webhook",icon:a.createElement(g.A,{icon:"WebHook",style:{fontSize:"16px"}}),label:le("Webhook"),...Ct?{children:[{key:"webhook_amp",label:le("AMP"),onClick:()=>ht("amp")},{key:"webhook_html",label:le("HTML"),onClick:()=>ht("html")}]}:{onClick:()=>ht()}}:null,o=[...n.map(t=>{var n;const r=(0,C.hS)(t.id,null===(n=be.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}}),qe&&r&&a.createElement(g.A,{icon:"LockOutlined",style:{position:"absolute",bottom:-2,right:-2,fontSize:10,color:"var(--colorTextSecondary)"}})),label:le(t.name),onClick:qe&&r?()=>je(!0):()=>(t=>{var n;const a=null===(n=be.integrations)||void 0===n?void 0:n[t];if(!(0,C.rg)(t)||!(0,C.hS)(t,a))return ce((0,w.YF)("webhooksettings")),void ce((0,w.qf)(U.lx.EDIT_PROJECT_MODAL));const r=(null===ot||void 0===ot?void 0:ot.getValue())||"";rt(r,n=>{Le({event:"click",action:"export_email",export_type:t});const a=document.querySelector(".email-preview"),r=getComputedStyle(a);(0,F.PJ)(n,[r.width],e.utm_parameters,async e=>{await ct(e),dt(e)}).then(e=>{ze(e),De(t)})})})(t.id)}}),...r?[r]:[]];_t.push({type:"divider",key:"integrations-divider"}),_t.push({key:"email-platforms",label:le("Email platforms"),children:o,popupClassName:"em-export-platforms-submenu"})}return a.createElement(r.$x,null,_e.emailDropdownMenuEnabled?a.createElement(r.ms,{key:"Actions",arrow:{pointAtCenter:!0},placement:"bottom",menu:{items:Et}},a.createElement(r.$n,{type:"default",block:!1,className:"email-page-header__btn email-page-header__btn_extra",onClick:()=>{}},a.createElement(g.A,{icon:"DotsHoriz",size:18,strokeWidth:_e.iconStrokeWidth}))):_e.emailDropdownMenuImport&&a.createElement(r.m_,{title:se("Import","verb"),placement:"bottom"},_e.emailDropdownMenuImportButton?a.createElement(r.$n,{className:"em-analytics__editor-page__import",icon:a.createElement(g.A,{icon:"CloudUploadOutlined",size:16,strokeWidth:_e.iconStrokeWidth}),onClick:()=>{Le({event:"click",action:"import_email"}),vt()}},le("Import")):a.createElement(r.$n,{className:"em-analytics__editor-page__import",type:"text",icon:a.createElement(g.A,{icon:"CloudUploadOutlined",size:22,strokeWidth:_e.iconStrokeWidth}),onClick:()=>{Le({event:"click",action:"import_email"}),vt()}})),_e.emailExportEnabled&&a.createElement(r.ms,{key:"Export",arrow:{pointAtCenter:!0},placement:"bottom",menu:{items:_t}},a.createElement(r.$n,{key:"Export",className:"em-analytics__email-page__export",type:"default",icon:a.createElement(g.A,{icon:"CloudDownloadOutlined",size:16,strokeWidth:_e.iconStrokeWidth})},le("Export"))),!e.hasOwnProperty("type")&&a.createElement(u.Ay,{disabled:Te,autoSaveEmailResult:t,key:"Save",email:e,isEditableRights:pe||he||(null===(ae=ge.id)||void 0===ae?void 0:ae.toString())===(null===(re=e.author)||void 0===re?void 0:re.toString())}),!!e.hasOwnProperty("type")&&a.createElement(p.A,{disabled:Te,rightCol:void 0,key:"Save",block:e,isEditableRights:pe||he||(null===(oe=ge.id)||void 0===oe?void 0:oe.toString())===(null===(ie=e.author)||void 0===ie?void 0:ie.toString()),autoSaveBlockResult:n}),a.createElement(v,{open:Ie,codeSize:(0,f.X_)(Pe),onMinimize:()=>{if(Re(!1),Ne&&Pe){(0,f.X_)(Pe);const e=(0,f.Y6)(Pe);(0,f.X_)(e);Ne(e),Oe(null),Me("")}},onDownloadAsIs:()=>{Re(!1),Ne&&Pe&&(Ne(Pe),Oe(null),Me(""))},onCancel:()=>{Re(!1),Oe(null),Me("")}}),We&&(0,C.rg)(We)&&a.createElement(E.wf,{integration:(0,C.rg)(We),visible:!!We,loading:Se,onConfirm:async t=>{var n;if(!We)return;const r=null===(n=be.integrations)||void 0===n?void 0:n[We],o=(0,C.rg)(We);if(!r||!o)return;const i=e.subject||e.title||"Email from EmailMaker";if("campaign_monitor"===We){const n="app.emailmaker.ru",a=null===e||void 0===e?void 0:e.id,r=ke||(null===be||void 0===be?void 0:be.id);a&&r&&(t={...t,html_url:`https://${n}/getemail/${a}?secret_hash=${G()(`${r}${a}${U.KI}`)}&raw=true`})}const l=await xe(We,r,t,$e,i);De(null),ze(""),Le({event:"export",action:"export_email",export_type:We,email_id:e.id,project_id:ke,success:!0===l.success}),!0===l.success?ve.success({message:le("Success!"),description:l.link?a.createElement(a.Fragment,null,le(l.message),a.createElement("br",null),a.createElement("a",{href:l.link.url,target:"_blank",rel:"noopener noreferrer"},le(l.link.text))):le(l.message),duration:10}):ve.error({message:le("Error"),description:l.error})},onCancel:()=>{De(null),ze("")},__:le}),a.createElement(y.A,{open:Fe,sideOnOk:void 0,onCancel:()=>je(!1),initialSlide:Ve}))}},99705:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var a=n(1936),r=n(69622),o=n(93506);const i=({users:e,isEditor:t,isPlugin:n,token:i})=>{const[l,s]=(0,a.useState)(!1),c=window.localStorage.getItem(o.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 "+(l?"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===i||void 0===i?void 0:i.colorBgContainer,"--text-color":"dark"===c?null===i||void 0===i?void 0:i.colorIconHover:null===i||void 0===i?void 0:i.colorWhite}},a.createElement(r.m_,{title:d(e),placement:"topLeft",trigger:"hover",color:null===i||void 0===i?void 0:i.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:()=>l,LJ:()=>s,Pp:()=>o,Q9:()=>i,ZW:()=>a,k0:()=>c,pX:()=>r});const a="wss://yjs.emailmaker.ru",r=500,o=5e3,i=2e4,l="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),r=n(69622),o=n(71715),i=n(98173),l=n(52898),s=n(93506),c=n(86457),d=n(942),m=n(31345),u=n(72899),p=n(3875),h=n(92539);const g=(0,r.Aj)(),b=(0,u.TJ)(r.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}}),f=(0,u.TJ)(r.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,o.d4)(l.Up),n=(0,o.d4)(i.C1),v=window.localStorage.getItem(s.V0.em_color_scheme),y=matchMedia(s.F3).matches?s.nd:s.T,[E,C]=(0,a.useState)(v||y),_=(0,d.rD)(),k=(0,o.wA)(),w=(0,c.c8)();(0,a.useEffect)(()=>{const e=s.EW.isPlugin?null===n||void 0===n?void 0:n.theme:v||y;C(e),(0,c.A5)(e),k((0,l.eX)(e===s.nd?`vs-${e}`:s.T)),w()},[v,t,y,null===n||void 0===n?void 0:n.theme,_.pathEnabled,k,w]);const A=(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&&A(e)},[n,A]);const x=(0,a.useCallback)(()=>{const e=localStorage.getItem(s.V0.em_color_scheme);A(e)},[A]);(0,a.useEffect)(()=>{x()},[x]);const S=(0,o.d4)(m.RP),[L,T]=(0,a.useState)("light"===E?b:f),[B]=(0,a.useState)(1);(0,a.useEffect)(()=>{const e="light"===E?b:f,t=S[E],n=t?(0,u.TJ)(e,t):e;T({...n,token:{...n.token,appZoom:B}})},[T,E,S,B]);const I=(0,p.LG)(),R=(0,a.useCallback)(()=>I,[I]);return a.createElement(r.NP,{theme:L,getPopupContainer:R},a.createElement(r.N7,{transformers:[g]},a.createElement(r.qw,null,a.createElement(h.H,null,e))))}},98311:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var a=n(1936),r=n(6056),o=n.n(r),i=n(69622),l=n(47706),s=n(71715),c=n(43284),d=n(56315),m=n(71461),u=n(73847),p=n(96040),h=n(52898),g=n(40867),b=n(7714),f=n(942),v=n(20279),y=n(93506);const E=e=>{var t,n,a,r,o,i,l,s,c,d,m,u,p,h,g,b,f,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===(r=e.cards)||void 0===r?void 0:r.baseTextColor)||"#5A5A5A",cardsBorder:(null===(o=e.cards)||void 0===o?void 0:o.border)||{all:null,top:null,right:null,bottom:null,left:null},cardsBorderRadius:(null===(i=e.cards)||void 0===i?void 0:i.borderRadius)||{all:10,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},blockBackgroundColor:(null===(l=e.block)||void 0===l?void 0:l.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===(h=p.padding)||void 0===h?void 0:h.right,blockPaddingBottom:null===(g=e.block)||void 0===g||null===(b=g.padding)||void 0===b?void 0:b.bottom,blockPaddingLeft:null===(f=e.block)||void 0===f||null===(v=f.padding)||void 0===v?void 0:v.left}},C={buttons_borderRadiusAll:"all",buttons_borderRadiusTopLeft:"topLeft",buttons_borderRadiusBottomLeft:"bottomLeft",buttons_borderRadiusTopRight:"topRight",buttons_borderRadiusBottomRight:"bottomRight"},_={cards_borderRadiusAll:"all",cards_borderRadiusTopLeft:"topLeft",cards_borderRadiusBottomLeft:"bottomLeft",cards_borderRadiusTopRight:"topRight",cards_borderRadiusBottomRight:"bottomRight"},k=({className:e,email:t})=>{const{__:n}=(0,l.s9)(),r=(0,s.wA)(),k=(0,b.XW)(),[w]=i.lV.useForm(),A=(0,s.d4)(h.uJ),x=(0,s.d4)(h.dH),S=(0,f.rD)(),{token:L}=(0,i.rd)(),[T,B]=(0,a.useState)({}),[I,R]=(0,a.useState)({}),[N,O]=(0,a.useState)(!0),[P,M]=(0,a.useState)(!0),[F,j]=(0,a.useState)(!1),[V,H]=(0,a.useState)(!1),W={buttonsPaddingTop:"top",buttonsPaddingLeft:"left",buttonsPaddingRight:"right",buttonsPaddingBottom:"bottom"},D=t.common_styles&&"{}"!==t.common_styles?JSON.parse(t.common_styles):y.BD,[$,z]=(0,a.useState)(D.headings.bold),[U,q]=(0,a.useState)(D.headings.italic),[Z,G]=(0,a.useState)(D.links.underline),[X,Y]=(0,a.useState)(D.buttons.bold),[K,J]=(0,a.useState)(D.buttons.italic),[Q,ee]=(0,a.useState)(null),te=!!t.common_styles&&"{}"!==t.common_styles,ne=(0,s.d4)(g.Wm);(0,a.useEffect)(()=>{ne||ee(null)},[D,ee,ne]),(0,a.useEffect)(()=>{ne&&!Q&&ee(E(D))},[D,Q,ne]),(0,a.useEffect)(()=>{x&&(r((0,h.RC)(!1)),w.setFieldsValue(E(D)))},[w,x,r,D]);const[ae,re]=(0,a.useState)(Math.min(D.headings.fontSize-1,19)),[oe,ie]=(0,a.useState)(Math.max(D.text.fontSize+1,20));(0,a.useEffect)(()=>{if(Q){var e,t,n,a,r,o,i,l,s,c,d,m,u;const p=Q.buttonsBorder;B(p);const h=Object.keys(p).find(e=>{var t,n,a;return(null===(t=p[e])||void 0===t?void 0:t.width)||(null===(n=p[e])||void 0===n?void 0:n.style)||(null===(a=p[e])||void 0===a?void 0:a.color)}),g=Q.cardsBorder;R(g);const b=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)});w.setFieldsValue({buttons_borderPosition:h||"all",buttons_borderWidth:null!==(null===(e=p[h])||void 0===e?void 0:e.width)?null===(t=p[h])||void 0===t?void 0:t.width:"",buttons_borderColor:(null===(n=p[h])||void 0===n?void 0:n.color)||"",buttons_borderStyle:(null===(a=p[h])||void 0===a?void 0:a.style)||"",cards_borderPosition:b||"all",cards_borderWidth:null!==(null===(r=g[b])||void 0===r?void 0:r.width)?null===(o=g[b])||void 0===o?void 0:o.width:"",cards_borderColor:(null===(i=g[b])||void 0===i?void 0:i.color)||"",cards_borderStyle:(null===(l=g[b])||void 0===l?void 0:l.style)||"",buttons_borderRadiusAll:(0,v.ok)(Q.buttonsBorderRadius.all),buttons_borderRadiusTopLeft:(0,v.ok)(Q.buttonsBorderRadius.topLeft),buttons_borderRadiusBottomLeft:(0,v.ok)(Q.buttonsBorderRadius.bottomLeft),buttons_borderRadiusTopRight:(0,v.ok)(Q.buttonsBorderRadius.topRight),buttons_borderRadiusBottomRight:(0,v.ok)(Q.buttonsBorderRadius.bottomRight),cards_borderRadiusAll:(0,v.ok)(Q.cardsBorderRadius.all),cards_borderRadiusTopLeft:(0,v.ok)(Q.cardsBorderRadius.topLeft),cards_borderRadiusBottomLeft:(0,v.ok)(Q.cardsBorderRadius.bottomLeft),cards_borderRadiusTopRight:(0,v.ok)(Q.cardsBorderRadius.topRight),cards_borderRadiusBottomRight:(0,v.ok)(Q.cardsBorderRadius.bottomRight),blockPaddingAll:(0,v.ok)(Q.blockPaddingAll),blockPaddingTop:(0,v.ok)(Q.blockPaddingTop),blockPaddingRight:(0,v.ok)(Q.blockPaddingRight),blockPaddingBottom:(0,v.ok)(Q.blockPaddingBottom),blockPaddingLeft:(0,v.ok)(Q.blockPaddingLeft),blockPaddingLeftRight:(0,v.ok)(Q.blockPaddingRight)||(0,v.ok)(Q.blockPaddingLeft),blockPaddingTopBottom:(0,v.ok)(Q.blockPaddingTop)||(0,v.ok)(Q.blockPaddingBottom)}),(0,v.ok)(Q.blockPaddingAll)||!((0,v.ok)(Q.blockPaddingTop)||(0,v.ok)(Q.blockPaddingRight)||(0,v.ok)(Q.blockPaddingBottom)||(0,v.ok)(Q.blockPaddingLeft))||Q.blockPaddingTop===Q.blockPaddingBottom&&Q.blockPaddingRight===Q.blockPaddingLeft?H(!0):H(!1),!(0,v.ok)(Q.buttonsBorderRadius.all)&&((0,v.ok)(Q.buttonsBorderRadius.topLeft)||(0,v.ok)(Q.buttonsBorderRadius.bottomLeft)||(0,v.ok)(Q.buttonsBorderRadius.topRight)||(0,v.ok)(Q.buttonsBorderRadius.bottomRight))?O(!1):O(!0),Q.buttonsPadding&&!(0,v.ok)(Q.buttonsPadding.all)&&((0,v.ok)(Q.buttonsPadding.bottom)||(0,v.ok)(Q.buttonsPadding.right)||(0,v.ok)(Q.buttonsPadding.left)||(0,v.ok)(Q.buttonsPadding.top))&&j(!1),!(0,v.ok)(null===(s=Q.cardsBorderRadius)||void 0===s?void 0:s.all)&&((0,v.ok)(null===(c=Q.cardsBorderRadius)||void 0===c?void 0:c.topLeft)||(0,v.ok)(null===(d=Q.cardsBorderRadius)||void 0===d?void 0:d.bottomLeft)||(0,v.ok)(null===(m=Q.cardsBorderRadius)||void 0===m?void 0:m.topRight)||(0,v.ok)(null===(u=Q.cardsBorderRadius)||void 0===u?void 0:u.bottomRight))?M(!1):M(!0)}},[w,Q]);const le=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?z(!a):"headingItalic"===n?q(!a):"linkUnderline"===n?G(!a):"buttonsBold"===n?Y(!a):"buttonsItalic"===n&&J(!a),k({operation:y.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[n]:!a}})};return Q&&a.createElement("div",{className:o()("appearance-panel",{[e]:e})},a.createElement(i.lV,{form:w,layout:"vertical",name:"content_appearance_panel_form",initialValues:Q,onValuesChange:e=>{var t,n,a,r,o,i;const l=w.getFieldsValue(!0),s=Object.keys(e)[0];let c={};switch(s){case"headingFontSize":re(Math.min(l.headingFontSize-1,19)),c=e;break;case"textFontSize":ie(Math.max(l.textFontSize+1,20)),c=e;break;case"buttons_borderStyle":c={buttonsBorder:{[l.buttons_borderPosition]:{...T[l.buttons_borderPosition],style:e[s]}}},"all"===l.buttons_borderPosition?B(t=>({...y.iV,[l.buttons_borderPosition]:{...t[l.buttons_borderPosition],style:e[s]}})):B(t=>({...t,[l.buttons_borderPosition]:{...t[l.buttons_borderPosition],style:e[s]}}));break;case"buttons_borderColor":c={buttonsBorder:{[l.buttons_borderPosition]:{...T[l.buttonsBorderPosition],color:e[s]}}},"all"===l.buttons_borderPosition?B(t=>({...y.iV,[l.buttons_borderPosition]:{...t[l.buttons_borderPosition],color:e[s]}})):B(t=>({...t,[l.buttons_borderPosition]:{...t[l.buttons_borderPosition],color:e[s]}}));break;case"buttons_borderWidth":c={buttonsBorder:{[l.buttons_borderPosition]:{...T[l.buttons_borderPosition],width:e[s]}}},"all"===l.buttonsBorderPosition?B(t=>({...y.iV,[l.buttons_borderPosition]:{...t[l.buttons_borderPosition],width:e[s]}})):B(t=>({...t,[l.buttons_borderPosition]:{...t[l.buttons_borderPosition],width:e[s]}}));break;case"buttons_borderPosition":w.setFieldsValue({buttons_borderWidth:(null===(t=T[e[s]])||void 0===t?void 0:t.width)||"",buttons_borderColor:(null===(n=T[e[s]])||void 0===n?void 0:n.color)||"",buttons_borderStyle:(null===(a=T[e[s]])||void 0===a?void 0:a.style)||""});break;case"cards_borderStyle":c={cardsBorder:{[l.cards_borderPosition]:{...I[l.cards_borderPosition],style:e[s]}}},"all"===l.cards_borderPosition?R(t=>({...y.iV,[l.cards_borderPosition]:{...t[l.cards_borderPosition],style:e[s]}})):R(t=>({...t,[l.cards_borderPosition]:{...t[l.cards_borderPosition],style:e[s]}}));break;case"cards_borderColor":c={cardsBorder:{[l.cards_borderPosition]:{...I[l.cardsBorderPosition],color:e[s]}}},"all"===l.cards_borderPosition?R(t=>({...y.iV,[l.cards_borderPosition]:{...t[l.cards_borderPosition],color:e[s]}})):R(t=>({...t,[l.cards_borderPosition]:{...t[l.cards_borderPosition],color:e[s]}}));break;case"cards_borderWidth":c={cardsBorder:{[l.cards_borderPosition]:{...I[l.cards_borderPosition],width:e[s]}}},"all"===l.cardsBorderPosition?R(t=>({...y.iV,[l.cards_borderPosition]:{...t[l.cards_borderPosition],width:e[s]}})):R(t=>({...t,[l.cards_borderPosition]:{...t[l.cards_borderPosition],width:e[s]}}));break;case"cards_borderPosition":w.setFieldsValue({cards_borderWidth:(null===(r=I[e[s]])||void 0===r?void 0:r.width)||"",cards_borderColor:(null===(o=I[e[s]])||void 0===o?void 0:o.color)||"",cards_borderStyle:(null===(i=I[e[s]])||void 0===i?void 0:i.style)||""});break;case"buttons_borderRadiusAll":case"buttons_borderRadiusTopLeft":case"buttons_borderRadiusBottomLeft":case"buttons_borderRadiusTopRight":case"buttons_borderRadiusBottomRight":c={buttonsBorderRadius:{[C[s]]:+e[s]}};break;case"cards_borderRadiusAll":case"cards_borderRadiusTopLeft":case"cards_borderRadiusBottomLeft":case"cards_borderRadiusTopRight":case"cards_borderRadiusBottomRight":c={cardsBorderRadius:{[_[s]]:+e[s]}};break;case"buttonsPaddingTop":case"buttonsPaddingLeft":case"buttonsPaddingRight":case"buttonsPaddingBottom":F?(c={padding:{all:+e[s]}},w.setFieldsValue({paddingTop:e[s],paddingLeft:e[s],paddingRight:e[s],paddingBottom:e[s]})):c={buttonsPadding:{[W[s]]:+e[s]}};break;case"blockPaddingTop":case"blockPaddingLeft":case"blockPaddingRight":case"blockPaddingBottom":c={blockPadding:{left:l.blockPaddingLeft||0,right:l.blockPaddingRight||0,top:l.blockPaddingTop||0,bottom:l.blockPaddingBottom||0,[W[s]]:+e[s]}};break;case"blockPaddingTopBottom":c={blockPadding:{left:l.blockPaddingLeft||0,right:l.blockPaddingRight||0,top:+e[s],bottom:+e[s]}},l.blockPaddingTop=l.blockPaddingBottom=+e[s];break;case"blockPaddingLeftRight":c={blockPadding:{top:l.blockPaddingTop||0,bottom:l.blockPaddingBottom||0,left:+e[s],right:+e[s]}},l.blockPaddingLeft=l.blockPaddingRight=+e[s];break;default:c=e}"buttons_borderPosition"!==s&&k({operation:y.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:c})},autoComplete:"off",className:"element-controls"},te?null:a.createElement(i.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(i.y9,{title:n("Blocks"),dividerTop:!1},a.createElement(i.fI,{gutter:10},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Blocks background color"),placement:"bottom"},a.createElement(i.lV.Item,{name:"blockBackgroundColor",style:{marginBottom:L.formItemMarginBottomMD+4},rules:[{message:n("Please set the background color")}]},a.createElement(i.it,{placeholder:n("Background color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Background color of the contrast blocks"),placement:"bottom"},a.createElement(i.lV.Item,{name:"blockContrastBackgroundColor",style:{marginBottom:L.formItemMarginBottomMD+4},rules:[{message:n("Please set the background color")}]},a.createElement(i.it,{placeholder:n("Background color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")}))))),a.createElement(i.L1,{extended:V,onToggleExtended:()=>{H(e=>!e);const e=w.getFieldsValue(!0);V||(e.blockPaddingLeftRight=e.blockPaddingLeft,e.blockPaddingTopBottom=e.blockPaddingTop,e.blockPaddingRight=e.blockPaddingLeft,e.blockPaddingBottom=e.blockPaddingTop,k({operation:y.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(i.y9,{title:n("General text"),dividerTop:!0},a.createElement(i.m_,{trigger:["hover"],title:n("Font of the general text"),placement:"bottom"},a.createElement(i.lV.Item,{name:"textFontFamily",style:{marginBottom:L.formItemMarginBottomXS}},a.createElement(i.LW,{loadGoogleFonts:c.c,getPopupContainer:e=>e.closest(".email-pane__content-col")}))),a.createElement(i.fI,{gutter:10},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Font size of the general text"),placement:"bottom"},a.createElement(i.lV.Item,{name:"textFontSize"},a.createElement(i.FQ,{min:15,max:ae,placeholder:n("Font size"),prefix:a.createElement(p.A,{icon:"FontSizeOutlined"}),addonAfter:"px"})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Line height of the general text"),placement:"bottom"},a.createElement(i.lV.Item,{name:"textLineHeight"},a.createElement(i.FQ,{min:0,placeholder:n("Line height"),prefix:a.createElement(p.A,{icon:"LineHeightOutlined"}),addonAfter:"px"}))))),a.createElement(i.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Color of the general text"),placement:"bottom"},a.createElement(i.lV.Item,{name:"textColor"},a.createElement(i.it,{placeholder:n("Text color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Contrast block text color"),placement:"bottom"},a.createElement(i.lV.Item,{name:"textContrastColor"},a.createElement(i.it,{placeholder:n("Text color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")}))))),a.createElement(i.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Bottom padding of the general text"),placement:"bottom"},a.createElement(i.lV.Item,{name:"textPaddingBottom"},a.createElement(i.FQ,{min:0,placeholder:n("Bottom padding"),prefix:a.createElement(p.A,{icon:"PaddingBottom"}),addonAfter:"px"})))))),a.createElement(i.y9,{title:n("Headings"),dividerTop:!0},a.createElement(i.m_,{trigger:["hover"],title:n("Heading font"),placement:"left"},a.createElement(i.lV.Item,{name:"headingFontFamily",style:{marginBottom:L.formItemMarginBottomXS}},a.createElement(i.LW,{loadGoogleFonts:c.c,getPopupContainer:e=>e.closest(".email-pane__content-col")}))),a.createElement(i.fI,{gutter:10},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Heading font size"),placement:"bottom"},a.createElement(i.lV.Item,{name:"headingFontSize",style:{marginBottom:L.formItemMarginBottomXS}},a.createElement(i.FQ,{min:oe,max:40,placeholder:n("Font size"),prefix:a.createElement(p.A,{icon:"FontSizeOutlined"}),addonAfter:"px"})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Heading line height"),placement:"bottom"},a.createElement(i.lV.Item,{name:"headingLineHeight",style:{marginBottom:L.formItemMarginBottomXS}},a.createElement(i.FQ,{min:0,placeholder:n("Line height"),prefix:a.createElement(p.A,{icon:"LineHeightOutlined"}),addonAfter:"px"}))))),a.createElement(i.fI,{gutter:10},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Heading letter spacing"),placement:"bottom"},a.createElement(i.lV.Item,{name:"headingLetterSpacing"},a.createElement(i.FQ,{min:0,placeholder:n("Letter spacing"),prefix:a.createElement(p.A,{icon:"ColumnWidthOutlined"}),addonAfter:"px"})))),a.createElement(i.fv,{span:12},a.createElement(i.$x,null,a.createElement(i.m_,{placement:"bottom",title:n("Strong")},a.createElement(i.$n,{className:o()({"selected-td-form__button--active":$}),type:"default",name:"headingBold",onClick:le},a.createElement(p.A,{icon:"BoldOutlined"}))),a.createElement(i.m_,{placement:"bottom",title:n("Italic")},a.createElement(i.$n,{className:o()({"selected-td-form__button--active":U}),type:"default",name:"headingItalic",onClick:le},a.createElement(p.A,{icon:"ItalicOutlined"})))))),a.createElement(i.fI,{gutter:10},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Heading color"),placement:"bottom"},a.createElement(i.lV.Item,{name:"headingColor"},a.createElement(i.it,{placeholder:n("Heading color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Contrast block header color"),placement:"bottom"},a.createElement(i.lV.Item,{name:"headingContrastColor"},a.createElement(i.it,{placeholder:n("Heading color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")}))))),a.createElement(i.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Top padding"),placement:"bottom"},a.createElement(i.lV.Item,{name:"headingPaddingTop"},a.createElement(i.FQ,{min:0,placeholder:n("Top padding"),prefix:a.createElement(p.A,{icon:"PaddingTop"}),addonAfter:"px"})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Bottom padding"),placement:"bottom"},a.createElement(i.lV.Item,{name:"headingPaddingBottom"},a.createElement(i.FQ,{min:0,placeholder:n("Bottom padding"),prefix:a.createElement(p.A,{icon:"PaddingBottom"}),addonAfter:"px"})))))),a.createElement(i.y9,{title:n("Links"),dividerTop:!0},a.createElement(i.fI,{gutter:10},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Link color"),placement:"bottom"},a.createElement(i.lV.Item,{name:"linkColor",style:{marginBottom:L.formItemMarginBottomXS}},a.createElement(i.it,{placeholder:n("Link color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{placement:"bottom",title:n("Underline")},a.createElement(i.$n,{className:o()({"selected-td-form__button--active":Z}),type:"default",name:"linkUnderline",onClick:le},a.createElement(p.A,{icon:"UnderlineOutlined"}))))),a.createElement(i.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Link color in contrasting blocks"),placement:"bottom"},a.createElement(i.lV.Item,{name:"linkContrastColor"},a.createElement(i.it,{placeholder:n("Link color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))))),a.createElement(i.y9,{title:a.createElement(a.Fragment,null,n("Buttons")," ",a.createElement("span",{className:"section-title-bull"},"\u2022")," ",n("Text & background")),dividerTop:!0},a.createElement(i.m_,{trigger:["hover"],title:n("Buttons font"),placement:"left"},a.createElement(i.lV.Item,{name:"buttonsFontFamily",style:{marginBottom:L.formItemMarginBottomXS}},a.createElement(i.LW,{loadGoogleFonts:c.c,getPopupContainer:e=>e.closest(".email-pane__content-col")}))),a.createElement(i.fI,{gutter:10},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Buttons font size"),placement:"bottom"},a.createElement(i.lV.Item,{name:"buttonsFontSize",style:{marginBottom:L.formItemMarginBottomXS}},a.createElement(i.FQ,{min:0,placeholder:n("Font size"),prefix:a.createElement(p.A,{icon:"FontSizeOutlined"}),addonAfter:"px"})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Buttons letter spacing"),placement:"bottom"},a.createElement(i.lV.Item,{name:"buttonsLetterSpacing",style:{marginBottom:L.formItemMarginBottomXS}},a.createElement(i.FQ,{min:0,placeholder:n("Letter spacing"),prefix:a.createElement(p.A,{icon:"ColumnWidthOutlined"}),addonAfter:"px"}))))),a.createElement(i.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Buttons text color"),placement:"bottom"},a.createElement(i.lV.Item,{name:"buttonsColor",style:{marginBottom:L.formItemMarginBottomXS}},a.createElement(i.it,{placeholder:n("Buttons text color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Button text color in contrasting blocks"),placement:"bottom"},a.createElement(i.lV.Item,{name:"buttonsContrastColor",style:{marginBottom:L.formItemMarginBottomXS}},a.createElement(i.it,{placeholder:n("Buttons text color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Buttons background color"),placement:"bottom"},a.createElement(i.lV.Item,{name:"buttonsBackgroundColor"},a.createElement(i.it,{placeholder:n("Background color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Button background color in contrasting blocks"),placement:"bottom"},a.createElement(i.lV.Item,{name:"buttonsContrastBackgroundColor"},a.createElement(i.it,{placeholder:n("Background color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),S.formButtonFieldTextAlignEnabled&&a.createElement(i.fv,{span:12},a.createElement(d.A,{form:w,elementSettings:{textAlign:"",type:"email"},imgParent:!1,name:"buttonsAlign",withHotKeys:!1})),a.createElement(i.fv,{span:12},a.createElement(i.$x,null,a.createElement(i.m_,{placement:"bottom",title:n("Strong")},a.createElement(i.$n,{className:o()({"selected-td-form__button--active":X}),type:"default",name:"buttonsBold",onClick:le},a.createElement(p.A,{icon:"BoldOutlined"}))),a.createElement(i.m_,{placement:"bottom",title:n("Italic")},a.createElement(i.$n,{className:o()({"selected-td-form__button--active":K}),type:"default",name:"buttonsItalic",onClick:le},a.createElement(p.A,{icon:"ItalicOutlined"}))))))),S.formFieldBorderEnabled&&a.createElement(i.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(m.A,{form:w,borders:T,namePrefix:"buttons_"}))),S.formFieldBorderRadiusEnabled&&a.createElement(i.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(u.A,{form:w,oneBorderRadiusValue:N,setOneBorderRadiusValue:O,elementSettings:Q,namePrefix:"buttons_"}))),a.createElement(i.y9,{title:a.createElement(a.Fragment,null,n("Buttons")," ",a.createElement("span",{className:"section-title-bull"},"\u2022")," ",n("Margins")),dividerTop:!0},a.createElement(i.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Top margin"),placement:"bottom"},a.createElement(i.lV.Item,{name:"buttonsMarginTop"},a.createElement(i.FQ,{min:0,placeholder:n("Top margin"),prefix:a.createElement(p.A,{icon:"PaddingTop"}),addonAfter:"px"})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Bottom margin"),placement:"bottom"},a.createElement(i.lV.Item,{name:"buttonsMarginBottom"},a.createElement(i.FQ,{min:0,placeholder:n("Bottom margin"),prefix:a.createElement(p.A,{icon:"PaddingBottom"}),addonAfter:"px"})))))),a.createElement(i.y9,{title:a.createElement(a.Fragment,null,n("Cards")," ",a.createElement("span",{className:"section-title-bull"},"\u2022")," ",n("Colors")),dividerTop:!0},a.createElement(i.fI,{gutter:10},a.createElement(i.fv,{span:12},a.createElement(i.y9,{title:n("Base colors"),compact:!0},a.createElement(i.m_,{trigger:["hover"],title:n("Base background color"),placement:"bottom"},a.createElement(i.lV.Item,{name:"cardsBaseBackgroundColor",style:{marginBottom:L.formItemMarginBottomXS}},a.createElement(i.it,{placeholder:n("Base background color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")}))))),a.createElement(i.fv,{span:12},a.createElement(i.y9,{title:n("Contrasting colors"),compact:!0},a.createElement(i.m_,{trigger:["hover"],title:n("Contrasting background color"),placement:"bottom"},a.createElement(i.lV.Item,{name:"cardsContrastBackgroundColor",style:{marginBottom:L.formItemMarginBottomXS}},a.createElement(i.it,{placeholder:n("Contrasting background color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))))),a.createElement(i.fI,{gutter:10,style:{paddingBottom:4}},a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Base text color"),placement:"bottom"},a.createElement(i.lV.Item,{name:"cardsBaseTextColor"},a.createElement(i.it,{placeholder:n("Base text color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))),a.createElement(i.fv,{span:12},a.createElement(i.m_,{trigger:["hover"],title:n("Contrasting text color"),placement:"bottom"},a.createElement(i.lV.Item,{name:"cardsContrastTextColor"},a.createElement(i.it,{placeholder:n("Contrasting text color"),usedColors:A.usedColors,usedLabel:n("Used"),recommendedLabel:n("Recommended")})))))),S.formFieldBorderEnabled&&a.createElement(i.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(m.A,{form:w,borders:I,namePrefix:"cards_"}))),S.formFieldBorderRadiusEnabled&&a.createElement(i.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(u.A,{form:w,oneBorderRadiusValue:P,setOneBorderRadiusValue:M,elementSettings:Q,namePrefix:"cards_"})))))}},43284:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});let a=null,r=null;const o=()=>{if(a)return Promise.resolve(a);if(r)return r;n.p.replace(/\/$/,"");return r=n.e(2642).then(n.t.bind(n,42642,19)).then(({default:e})=>(a=e,a)).catch(e=>{throw e}),r}},65017:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var a=n(1936),r=n(69622),o=n(71715),i=n(47706),l=n(93506),s=n(98173),c=n(31345),d=n(15582),m=n(96040),u=n(6403),p=n(64886),h=n(89591),g=n(60791),b=n(7714),f=n(41244),v=n(7314),y=n(6056),E=n.n(y),C=n(942),_=n(91480);const k=({comments:e,subjectId:t,isLoggedIn:n,projectTitle:y="",emailElementType:k,email:w})=>{const{__:A,_n:x}=(0,i.s9)(),S=(0,b.XW)(),L=(0,u.hN)(),{token:T}=(0,r.rd)(),B=(0,C.rD)(),I=(0,_.u)(),R=(0,a.useRef)(null),[N,O]=(0,a.useState)(""),[P,M]=(0,a.useState)("ADD"),[F,j]=(0,a.useState)(!1),[V,H]=(0,a.useState)(null),[W,D]=(0,a.useState)(null),[$,z]=(0,a.useState)(""),[U,q]=(0,a.useState)(""),[Z,G]=(0,a.useState)(!1),[X,Y]=(0,a.useState)(""),[K,J]=(0,p.z2)(),[Q,ee]=(0,p.HI)(),[te,ne]=(0,p.kk)(),[ae,re]=(0,p.vn)(),[oe]=(0,h.LX)(),[ie]=(0,g.yW)(),le=(0,o.d4)(s.C1),se=(0,o.d4)(c.jY),ce=(0,v.fn)(),de=()=>{const e=l.EW.isPlugin?se:null===w||void 0===w?void 0:w.project,t={...void 0!==(null===w||void 0===w?void 0:w.meta)?{meta:w.meta}:{},title:null===w||void 0===w?void 0:w.title,emailId:null===w||void 0===w?void 0:w.id,project:e,html:null===ce||void 0===ce?void 0:ce.getValue(),excerpt:null===w||void 0===w?void 0:w.date_gmt};"email"===k?oe({emailId:null===w||void 0===w?void 0:w.id,body:t}).catch(e=>{}):ie({blockId:null===w||void 0===w?void 0:w.id,body:t}).catch(e=>{})};function me(e){D(V),z(""),M("REPLY")}const ue=()=>{L.error({maskClosable:!0,centered:!0,title:A("Please log in"),content:A("To leave comments you must be logged into EmailMaker and added to the project ")+`${y}.`,okText:A("Okay. I'll log in.")})};async function pe(){n?(await te({commentId:W,content:U,targetId:X}).unwrap(),M("ADD"),q(""),D(0),G(!1),j(!1),Y(""),S({operation:l.Ru.SANDBOX_DISCUSS_RESET})):ue()}const he=e=>{M("ADD"),q(""),D(0),G(!1),j(!1),Y(""),S({operation:l.Ru.SANDBOX_DISCUSS_RESET})},ge=async()=>{n?((N||$)&&await K({subjectId:t,author:le.id,parent:"ADD"===P?"0":W,content:N||$,author_name:le.name,author_email:le.email,targetId:X}).then(e=>{e.error?L.error({message:e.error.data.code,description:e.error.data.message}):I({event:"submit",action:"send_discussion_chat_message",entity_type:"block"===k?"block":"email",entity_id:null===w||void 0===w?void 0:w.id,project_id:null===w||void 0===w?void 0:w.project,context:"editor"})}),Y(""),M("ADD"),z(""),O(""),D(0),G(!1),j(!1),S({operation:l.Ru.SANDBOX_DISCUSS_RESET})):ue()};function be(){Z?(j(!1),G(!1),S({operation:l.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:X})):(j(!F),S({operation:l.Ru.SANDBOX_DISCUSS_SET_TARGET,value:!F}),F&&G(!1))}(0,d.A)(e=>{const t=e.data.operation;if(t===l.Ru.APPLICATION_DISCUSS_SET_ID&&(Y(e.data.settings.value),""!==e.data.settings.value?(G(!0),j(!1)):(G(!1),j(!0))),t===l.Ru.APPLICATION_DISCUSS_SAVE_TARGET&&de(),t===l.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:l.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:e.data.settings.targetId}),L.error({message:A("There's no such comment.")});t===l.Ru.APPLICATION_DISCUSS_NO_COMMENT&&L.error({message:A("There's no such element in the email.")})});const fe=e=>{S({operation:l.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(r.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(r.Mw,{className:"deletedComment",content:a.createElement(r.Fc,{description:A("Comment was removed."),type:"info"}),children:ve(e.children)}),"deleted"!==e.status&&a.createElement(a.Fragment,null,a.createElement(r.Mw,{author_id:e.author_id,author:e.author_name,avatar:e.author_avatar_urls&&e.author_avatar_urls[48]||"",className:E()(e.target_id&&"targetted-comment-item",(!e.author_avatar_urls||!e.author_avatar_urls[48])&&"comment-item-noavatar"),content:a.createElement(r.ms,{key:"commenMenu",placement:"left",destroyPopupOnHide:!0,onOpenChange:()=>H(e.id),menu:{items:e.author===le.id?Ce:_e},overlayStyle:{minWidth:"auto",paddingRight:6}},a.createElement("div",{onClick:()=>e.target_id&&fe(e.target_id),dangerouslySetInnerHTML:{__html:e.content}})),datetime:a.createElement(a.Fragment,null,a.createElement("span",{dangerouslySetInnerHTML:{__html:e.date&&(0,f.Yq)((0,f.Cl)(e.date),x,!0)}}),e.target_id&&a.createElement("span",{className:"comment-icon-target","target-id":e.target_id,onClick:()=>fe(e.target_id)},a.createElement(m.A,{icon:"AimOutlined",style:{color:T.colorInfo,top:-2,position:"relative"}}))),children:a.createElement(a.Fragment,null,"REPLY"===P&&W===e.id&&Ee,"EDIT"===P&&W===e.id&&ye,ve(e.children))})))))}))),ye=a.createElement(r.lV,{onFinish:pe,className:"commentForm"},a.createElement(r.lV.Item,{style:{marginBottom:10}},a.createElement(r.fs,{className:"textarea-reply",value:U,onChange:e=>q(e.target.value),rows:4,placeholder:A("Editing comments"),onKeyDown:e=>"Escape"===e.key&&he(),onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&pe(),ref:R})),a.createElement(r.lV.Item,{className:"buttons"},a.createElement(r.$x,null,Z?a.createElement(r.iS,{title:A("Are you sure?"),okText:A("Yes"),cancelText:A("No"),onConfirm:function(e){G(!1),Y(""),S({operation:l.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:X}),j(!0),S({operation:l.Ru.SANDBOX_DISCUSS_SET_TARGET,value:!0})}},a.createElement(r.$n,{loading:re.isLoading,type:F||Z&&"EDIT"===P&&""!==X?"primary":"default",className:"button-target "+(F&&!Z?"button-target_choose":""),style:Z&&"EDIT"===P&&""!==X?{background:T.colorInfo}:{}},a.createElement(m.A,{icon:"AimOutlined",className:"icon-target"}))):a.createElement(r.$n,{onClick:be,loading:re.isLoading,type:F||Z&&"EDIT"===P&&""!==X?"primary":"default",className:"button-target "+(F&&!Z?"button-target_choose":""),style:Z&&"EDIT"===P&&""!==X?{background:T.colorInfo}:{}},a.createElement(m.A,{icon:"AimOutlined",className:"icon-target"})),a.createElement(r.$n,{className:"button-reply",type:"primary",loading:ne.isLoading,htmlType:"submit"},A("Save")," ",a.createElement(m.A,{icon:"SaveOutlined",size:16,strokeWidth:B.iconStrokeWidth})),a.createElement(r.$n,{onClick:he,className:"button-reply"},A("Cancel"))))),Ee=a.createElement(r.lV,{name:"reply",className:"commentForm",onFinish:ge},a.createElement(r.lV.Item,{style:{marginBottom:10}},a.createElement(r.fs,{className:"textarea-reply",value:$,onChange:e=>z(e.target.value),rows:4,placeholder:A("Reply to the comment"),onKeyDown:e=>"Escape"===e.key&&he(),onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&ge(),ref:R})),a.createElement(r.lV.Item,{hidden:!0,name:"targetId"},a.createElement(r.pd,{type:"hidden"})),a.createElement(r.lV.Item,{className:"buttons"},a.createElement(r.$x,null,a.createElement(r.m_,{placement:"top",title:A("Add a note"),styles:{body:{maxWidth:"150px"}}},a.createElement(r.$n,{onClick:be,type:F||Z&&"REPLY"===P&&""!==X?"primary":"default",className:"button-target "+(F&&!Z?"button-target_choose":""),style:Z&&"REPLY"===P&&""!==X?{background:T.colorInfo}:{}},a.createElement(m.A,{icon:"AimOutlined",className:"icon-target"}))),a.createElement(r.$n,{className:"button-reply",type:"primary",loading:"REPLY"===P&&J.isLoading,htmlType:"submit"},A("Reply")," ",a.createElement(m.A,{icon:"SendOutlined",size:16,strokeWidth:B.iconStrokeWidth})),a.createElement(r.$n,{onClick:he,className:"button-reply",ghost:!0,type:"primary"},A("Cancel")))));(0,a.useEffect)(()=>{"REPLY"===P&&R.current.focus({cursor:"start"}),"EDIT"===P&&R.current.focus({cursor:"end"})},[P]);let Ce=[];Ce.push({key:"Reply to comment",icon:a.createElement(m.A,{icon:"RollbackOutlined",style:{fontSize:"16px"}}),label:A("Reply"),onClick:me},{key:"Edit comment",icon:a.createElement(m.A,{icon:"EditOutlined",style:{fontSize:"16px"}}),label:A("Edit"),onClick:function(t){var n,a,r;D(V);const o=e.find(e=>{var t;return(null===(t=e.id)||void 0===t?void 0:t.toString())===V}),i=(null===o||void 0===o||null===(n=o.target_id)||void 0===n?void 0:n.toString())||"";G(Boolean(i)),Y(i),q(null===o||void 0===o||null===(a=o.content)||void 0===a||null===(r=a.slice(3,-5))||void 0===r?void 0:r.toString()),M("EDIT")}},{key:"Delete comment",icon:a.createElement(m.A,{icon:"DeleteOutlined",size:16}),label:A("Delete"),style:{color:T.colorError},onClick:function(){var t,n;D(V),e.filter(e=>e.parent===V).length?te({commentId:V,status:"deleted"}).unwrap():Q(V),(null===(t=document.querySelector('.discuss-main li[id="'+V+'"] .comment-icon-target'))||void 0===t?void 0:t.getAttribute("target-id"))&&S({operation:l.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:null===(n=document.querySelector('.discuss-main li[id="'+V+'"] .comment-icon-target'))||void 0===n?void 0:n.getAttribute("target-id")}),de(),Y("")}});let _e=[];return _e.push({key:"Reply to comment",icon:a.createElement(m.A,{icon:"RollbackOutlined",style:{fontSize:"16px"}}),label:A("Reply"),onClick:me}),a.createElement("div",{className:"discuss-main"},e.length>0&&a.createElement(r.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 r=0,o=t.length;r<o;++r){let e=t[r],o=a.get(e.id);if(o&&!Array.isArray(o)||(o&&(e.children=o),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(r.Mw,{className:"deletedComment",content:a.createElement(r.Fc,{description:A("Comment was removed."),type:"info"}),children:ve(e.children)}),"deleted"!==e.comment_status&&a.createElement(a.Fragment,null,a.createElement(r.Mw,{author_id:e.author_id,author:e.author_name,avatar:e.author_avatar_urls&&e.author_avatar_urls[48]||"",className:E()(e.target_id&&"targetted-comment-item",(!e.author_avatar_urls||!e.author_avatar_urls[48])&&"comment-item-noavatar"),content:a.createElement(r.ms,{key:"commenMenu",placement:"left",destroyPopupOnHide:!0,onOpenChange:()=>H(e.id),menu:{items:e.author===le.id?Ce:_e},overlayStyle:{minWidth:"auto"}},a.createElement("div",{onClick:()=>e.target_id&&fe(e.target_id),dangerouslySetInnerHTML:{__html:e.content}})),datetime:a.createElement(a.Fragment,null,a.createElement("span",{dangerouslySetInnerHTML:{__html:e.date&&(0,f.Yq)((0,f.Cl)(e.date),x,!0)}}),e.target_id&&a.createElement("span",{className:"comment-icon-target","target-id":e.target_id,onClick:()=>fe(e.target_id)},a.createElement(m.A,{icon:"AimOutlined",style:{color:T.colorInfo,top:-2,position:"relative"}}))),children:a.createElement(a.Fragment,null,"REPLY"===P&&W===e.id&&Ee,"EDIT"===P&&W===e.id&&ye,ve(e.children))})))}),a.createElement(r.lV,{onFinish:ge,className:"ADD"===P?"addMode":"replyEditMode"},a.createElement(r.lV.Item,{style:{marginBottom:10}},a.createElement(r.fs,{value:N,onChange:e=>O(e.target.value),rows:4,placeholder:A("Leave your comment"),className:"textarea-comment",onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&ge()})),a.createElement(r.lV.Item,null,a.createElement(r.$x,{size:8},a.createElement(r.m_,{placement:"top",title:A("Add a note"),styles:{body:{maxWidth:"150px"}}},a.createElement(r.$n,{onClick:be,type:F||Z&&"ADD"===P&&""!==X?"primary":"default",className:"button-target "+(F&&!Z?"button-target_choose":""),style:Z&&"ADD"===P&&""!==X?{background:T.colorInfo}:{},icon:a.createElement(m.A,{icon:"Target",size:16,strokeWidth:B.iconStrokeWidth,className:"icon-target"})})),a.createElement(r.$n,{className:"button-add",type:"primary",loading:"ADD"===P&&J.isLoading,htmlType:"submit"},A("Send")," ",a.createElement(m.A,{icon:"SendOutlined",size:16,strokeWidth:B.iconStrokeWidth}))))))}},24906:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var a=n(1936),r=n(69622),o=n(74291),i=n(84075),l=n(91654),s=n(71715),c=n(96040),d=n(83231),m=n(82994),u=n(98173),p=n(52898),h=n(41244),g=n(47706),b=n(942),f=n(91480),v=n(65185),y=n(6403),E=n(7714),C=n(7314),_=n(11822),k=n(93506),w=n(65893);const A=e=>{const{__:t}=(0,g.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"))}]},x=({messages:e,newEmailAiGeneratorRef:t})=>{const n=(0,C.fn)(),{__:x,_n:S}=(0,g.s9)(),L=(0,s.wA)(),T=(0,i.Zp)(),B=(0,a.useRef)(null),I=(0,b.rD)(),R=(0,y.hN)(),{projectId:N,emailId:O}=(0,i.g)(),P=(0,f.u)(),M=(0,v.ml)(w.AZ.ON_LIMIT_ID),[F,j]=(0,a.useState)(null),[V,H]=(0,a.useState)(0),[W,D]=(0,a.useState)(!1),[$,z]=(0,a.useState)(""),[U,q]=(0,a.useState)([]),[Z,G]=(0,a.useState)(!1),[X,Y]=(0,a.useState)(!1),[K,J]=(0,a.useState)(null),[Q,ee]=(0,a.useState)(0),[te,ne]=(0,a.useState)(null),ae=(0,s.d4)(p.Hs),re=(0,s.d4)(u.C1),oe=(0,E.QC)(),[ie]=(0,d.YG)(),le=(0,E.XW)(),[se,ce]=(0,d.EQ)(),[de,{reset:me}]=(0,m.MN)(),[ue,{data:pe=[]}]=(0,m.y4)(),he={cursor:W?"not-allowed":"default",pointerEvents:W?"none":"auto"};(0,a.useEffect)(()=>{te&&Z&&(t.current=!0),Z||(t.current=!1)},[te,Z]);const ge=!(!I.limits||!I.counters)&&k.EW.isPlugin,{limits:be}=k.EW.isPlugin&&I.limits?I:{limits:{ai_limit:0,ai_generator_limit:0}},{ai_limit:fe,ai_generator_limit:ve}=be,ye=ge&&V>=fe&&fe>0,Ee=ge&&Q>=ve&&ve>0,Ce=(0,a.useCallback)(()=>{M.fire({name:"AiChatCount",count:V+1})},[M,V]),_e=(0,a.useCallback)(()=>{M.fire({name:"AiGeneratorCount",count:Q+1})},[M,Q]);(0,a.useEffect)(()=>{var e,t;ge&&(H((null===I||void 0===I||null===(e=I.counters)||void 0===e?void 0:e.ai_counter)||0),ee((null===I||void 0===I||null===(t=I.counters)||void 0===t?void 0:t.ai_generator_counter)||0))},[I,ge]),(0,a.useEffect)(()=>{ne((()=>{var e;if(U.length<=0)return!1;return"email-generator"===(null===(e=U.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)})())},[U]);const ke=(0,a.useCallback)(async()=>await oe.sendAsync(k.Ru.SANDBOX_IS_EMAIL_EMPTY),[oe]),we=(0,a.useCallback)(()=>{var e;const t=null===(e=B.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)},[B]),Ae=(0,a.useCallback)(()=>{ie({entity_id:O}).then(e=>{q(e.data.documents),we()})},[O,ie,q,we]),xe=(0,a.useCallback)(e=>{G(!0),D(!0),de({task_id:e||F,entity_id:O,status:"started"}).then(()=>{Ae()})},[O,de,F,Ae]),Se=(0,a.useCallback)(()=>{de({task_id:F,entity_id:O,status:"completed"}).then(e=>{403===e.data.status&&me(),Ae()}).catch(e=>{}),D(!1),G(!1)},[O,de,F,Ae,me]);(0,a.useEffect)(()=>{let e;if(Z){var t,a;const r=null===(t=pe[pe.length-1])||void 0===t||null===(a=t.processing)||void 0===a?void 0:a.email;if(r){let t=pe[pe.length-1].status;e=setInterval(n.setValue(r),500),0===t&&Se()}K&&(clearInterval(e),L((0,p.AJ)(r)),G(!1),J(!1))}return()=>{clearInterval(e)}},[n,K,L,pe,Z,ae,O,F,Ae,de,ce,Se]),(0,a.useEffect)(we,[we]),(0,a.useEffect)(()=>{(null===e||void 0===e?void 0:e.length)>0&&q(e),le({operation:k.Ru.SANDBOX_EMAIL_CONTENT_GET})},[e,le]),(0,a.useEffect)(()=>{const e=oe.onInit(()=>{oe.send({operation:k.Ru.SANDBOX_LOCK_EDIT,data:W}),oe.send({operation:k.Ru.SANDBOX_LOCK_DISCUSS,value:W})});return()=>e.dispose()},[W,oe]);const Le=()=>{if($){const e=$.replaceAll(/\n/g,"<br>"),t={project_id:N,connection:"chat",entity_id:O,message:e,locale:re.locale.slice(0,2),subject:ae.subject||"",preheader:ae.preheader||"",textContent:(0,_.T5)(n.getValue())};if(te&&Ee||ye){R.error({message:x(te?"You have reached the limit of AI generator usage.":"You have reached the limit of AI chat usage."),description:x("Please upgrade your plan.")});const e={data:{role:"assistant",message:x(te?"You have reached the limit of AI generator usage.":"You have reached the limit of AI chat usage.")}};q(t=>[...t,e])}else{ge&&(te&&Q!==ve?(_e(),ee(e=>e+1)):V!==fe&&(Ce(),H(e=>e+1))),P({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:re.first_name+" "+re.last_name,avatar_url:re.avatar_urls[24]}}},{data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}}];q(e=>[...e,...n]),se({body:t}).then(e=>{if(401===e.data.status)throw new Error(k.ff);const t=ae.hasOwnProperty("type")?k.IE:k.Tm;if(P({event:"submit",action:"send_discussion_chat_message",entity_type:t===k.IE?"block":"email",entity_id:O,project_id:N,context:"editor"}),e.data.task_id){let t=e.data.task_id;j(t),ue({id:t,setError:J}),ke().then(e=>{e?xe(t):Y(!0)})}Ae()}).catch(e=>{var t,n;R.error({message:(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.code)||x("Error"),description:(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.message)||x("Something went wrong.")})})}z("")}},Te=e=>{const t={data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}};q(e=>[...e,t]);const a={project_id:N,connection:"chat",entity_id:O,context:e,locale:re.locale.slice(0,2),subject:ae.subject||"",preheader:ae.preheader||"",textContent:(0,_.T5)(n.getValue())};if(ge&&(te&&Q!==ve?(_e(),ee(e=>e+1)):V!==fe&&(Ce(),H(e=>e+1))),ye){R.error({message:x("You have reached the limit of AI chat usage."),description:x("Please upgrade your plan.")});const e={data:{role:"assistant",message:x("You have reached the limit of AI chat usage.")}};q(t=>[...t,e])}else P({event:"select",action:"select_ai_assistant_role",context:a.context,entity_id:a.entity_id,project_id:a.project_id}),se({body:a}).then(e=>{if(401===e.data.status)throw new Error(k.ff);Ae()}).catch(e=>{var t,n;R.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"})})},Be=(0,a.useCallback)(e=>{const t={data:{role:"user",message:e,userInfo:{display_name:re.first_name+" "+re.last_name,avatar_url:re.avatar_urls[24]}}},a={data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}};q(e=>[...e,t,a]);const r={project_id:N,connection:"chat",entity_id:O,message:e,locale:re.locale.slice(0,2),subject:ae.subject||"",preheader:ae.preheader||"",textContent:(0,_.T5)(n.getValue())};if(Ee){R.error({message:x("You have reached the limit of AI generator usage."),description:x("Please upgrade your plan.")});const e={data:{role:"assistant",message:x("You have reached the limit of AI chat usage.")}};q(t=>[...t,e])}else se({body:r}).then(e=>{if(401===e.data.status)throw new Error(k.ff);const t=ae.hasOwnProperty("type")?k.IE:k.Tm;if(P({event:"submit",action:"send_discussion_chat_message",entity_type:t===k.IE?"block":"email",entity_id:O,project_id:N,context:"editor"}),e.data.task_id){let t=e.data.task_id;j(t),ue({id:t,setError:J}),ke().then(e=>{e?xe(t):Y(!0)})}ge&&(te&&Q!==ve?(_e(),ee(e=>e+1)):V!==fe&&(Ce(),H(e=>e+1))),Ae()}).catch(e=>{var t,n;R.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"})})},[x,V,Q,ke,xe,fe,ve,re,ae,O,te,Ee,Ce,_e,ge,n,R,N,se,ue,Ae]);(0,a.useEffect)(()=>{const e=window.localStorage.getItem(k.V0.em_ai_settings);if(1===U.length&&"assistant"===U[0].data.role&&e&&O){const t=new h.jG,n={project_id:N,connection:"chat",entity_id:O,context:"email-generator",locale:re.locale.slice(0,2)};window.localStorage.removeItem(k.V0.em_ai_settings),se({body:n}).then(({data:n})=>{t.isDisposed()||Be(e)})}},[U,Be,O,re.locale,N,se]);const Ie={replace:e=>{var t,n,o,i,s,c,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(r.m_,{placement:"left",title:x("Replace the title")},a.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;oe.send(k.Ru.SANDBOX_SUBJECT_UPDATE,{value:e.children[0].data,guid:ae.renderGuid,fromAI:!0}),R.success({id:"EMAIL_TITLE_UPDATED_FROM_AI",message:x("Title copied to email settings"),data:t})})(e)},a.createElement("span",{className:"ai-response-title"},(0,l.zd)(e.children,Ie))));if(null!==(o=e.attribs)&&void 0!==o&&null!==(i=o.class)&&void 0!==i&&i.split(" ").includes("ai-response-preheader"))return a.createElement(r.m_,{placement:"left",title:x("Replace the preheader")},a.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;oe.send(k.Ru.SANDBOX_PREHEADER_UPDATE,{value:e.children[0].data,guid:ae.renderGuid,fromAI:!0}),R.success({id:"EMAIL_TITLE_UPDATED_FROM_AI",message:x("Preheader copied to email settings"),data:t,duration:300})})(e)},a.createElement("span",{className:"ai-response-preheader"},(0,l.zd)(e.children,Ie))));if(null!==(s=e.attribs)&&void 0!==s&&null!==(c=s.class)&&void 0!==c&&c.split(" ").includes("ai-response-copy"))return a.createElement(r.m_,{placement:"left",title:x("Copy to clipboard")},a.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;navigator.clipboard.writeText(t).then(()=>{R.success({id:"TEXT_COPIED_TO_CLIPBOARD",message:x("Text copied to clipboard"),data:t})}).catch(e=>{})})(e)},a.createElement("span",{className:"ai-response-copy"},(0,l.zd)(e.children,Ie))));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,g,b;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===(g=e.attribs)||void 0===g?void 0:g.class,data:null===(b=e.attribs)||void 0===b?void 0:b.data,onClick:()=>Be(t)},(0,l.zd)(e.children,Ie))}}};return a.createElement("div",{ref:B,className:"discuss-main"},U.length>0&&a.createElement(r.B8,{onClick:e=>{"string"===typeof e.target.className&&e.target.className.includes("ai-response-change-context")&&(ce.isLoading||Te(e.target.role))},className:"comment-list",itemLayout:"horizontal",dataSource:U,renderItem:e=>{var t,n,i;return a.createElement("li",{key:e._id,id:e._id},a.createElement(r.Mw,{className:e.data.userInfo?"":"ai-comment",avatar:"assistant"===e.data.role?a.createElement(c.A,{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&&k.EW.isPlugin?re.avatar_urls[24]||a.createElement(c.A,{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:he},"user"===(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.role)?k.EW.isPlugin?(null===re||void 0===re?void 0:re.username)||x("User"):null===(n=e.data)||void 0===n||null===(i=n.userInfo)||void 0===i?void 0:i.display_name:x("AI Assistant")),datetime:e._created?a.createElement("span",{dangerouslySetInnerHTML:{__html:(0,h.Yq)((0,o.A)(e._created),S,!0)}}):null,content:e.data.isLoading?a.createElement("div",{className:"spin"},a.createElement(c.A,{icon:"LoadingOutlined",style:{fontSize:24},spin:!0})):a.createElement("div",{style:he},(0,l.Ay)(e.data.message,Ie))}))}}),ge&&(te?a.createElement(r.xl,{text:`${Q} ${x("of")} ${ve>0?ve:"\u221e"} ${x("mail generator")} ${S("was used","were used",Q)}`,exceeded:ve>0&&Q>=ve,style:{marginTop:-25},extra:a.createElement("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:()=>T(I.billingPageUrl||k.vc.billing)},x("Need more?"))}):a.createElement(r.xl,{text:`${V} ${x("of")} ${fe>0?fe:"\u221e"} ${x("messeges")} ${S("was used","were used",V)}`,exceeded:fe>0&&V>=fe,style:{marginTop:-25},extra:a.createElement("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:()=>T(I.billingPageUrl||k.vc.billing)},x("Need more?"))})),a.createElement(r.lV,{onFinish:Le,className:"addMode"},a.createElement(r.lV.Item,{style:{marginBottom:10}},a.createElement(r.fs,{disabled:W,value:$,onChange:e=>z(e.target.value),rows:4,placeholder:x("Type your request"),className:"textarea-comment",onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&Le(),spellCheck:"false"})),a.createElement(r.lV.Item,null,a.createElement(r.$x,{size:8},a.createElement(r.$n,{disabled:ce.isLoading||W,type:"default",style:{background:"var(--colorInfo)",color:"#ffffff"},className:"button-target"},a.createElement(r.ms,{placement:"top",disabled:W,key:"Export",arrow:{pointAtCenter:!0},menu:{items:A(Te)}},a.createElement("div",{disabled:W,style:{margin:0,padding:0}},a.createElement(c.A,{icon:"ChatGpt",style:{marginRight:5}}),x("Role")))),a.createElement(r.$n,{disabled:ce.isLoading||W,className:"button-add",type:"primary",htmlType:"submit"},x("Send")," ",a.createElement(c.A,{icon:"SendOutlined",size:16,strokeWidth:I.iconStrokeWidth}))))),a.createElement(r.aF,{title:x("Warning"),open:X,onOk:()=>{xe(),Y(!1)},onCancel:()=>{Se(),Y(!1)}},a.createElement("p",null,x("The current template will be changed to the generated one, are you sure about this?"))))}},11421:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var a=n(1936),r=n(71715),o=n(69622),i=n(47706),l=n(96040),s=n(78443),c=n(98173),d=n(52898),m=n(3758),u=n(6403),p=n(41244),h=n(86457),g=n(7714),b=n(942),f=n(93506);const{Option:v}=o.Select,y="profile",E=({isModalVisible:e})=>{const{__:t}=(0,i.s9)(),n=(0,r.d4)(c.C1),E=(0,r.d4)(c.yf),C=(0,u.hN)(),_=(0,g.XW)(),k=(0,r.wA)(),[w]=o.lV.useForm(),A=(0,b.rD)(),[x,S]=(0,m.b9)(),[L,T]=(0,m.hZ)(),[B,I]=(0,a.useState)([]),[R,N]=(0,a.useState)([]),[O,P]=(0,a.useState)(y),[M,F]=(0,a.useState)({currentPassword:!1,newPassword:!1,confirmPassword:!1}),[j,V]=(0,a.useState)(()=>n.locale),H=(0,a.useRef)(null),W=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(w&&e){P(y),L(void 0,!0);const e=n.code_editor;V(n.locale),w.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,w,e,L,V]),(0,a.useEffect)(()=>{if(w&&e){if(T.isSuccess){var t,n,a,r;let e=null===(t=(0,p.EU)(E,["acf","theme"]))||void 0===t||null===(n=t.items)||void 0===n?void 0:n.enum;const o=null===(a=(0,p.EU)(E,["acf","code_editor","font_family"]))||void 0===a||null===(r=a.items)||void 0===r?void 0:r.enum;I((0,p.d_)(e)),N((0,p.d_)(o))}T.isError&&C.error(T)}},[T,w,e,E]);const D=()=>{const e=window.localStorage.getItem(f.V0.em_color_scheme),t=matchMedia(f.F3).matches?f.nd:f.T;_({operation:f.Ru.UPDATE_PREVIEW,theme:e||t}),w.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&&C.error(S)},[S]),(0,a.useEffect)(()=>{S.isSuccess&&(C.success(t("Your profile was successfully updated.")),k((0,s.Oo)()))},[k,S,t]);const[$,z]=(0,a.useState)("");(0,a.useEffect)(()=>{const t=window.localStorage.getItem(f.V0.em_color_scheme);e&&(w.setFieldsValue({theme:null!==t?t:f.IJ}),z(null!==t?t:f.IJ))},[w,e]);const U=(0,a.useCallback)(e=>{let t;if((0,h.Hk)(e),e===f.IJ){const e=matchMedia(f.F3).matches?f.nd:f.T;localStorage.removeItem(f.V0.em_color_scheme),t=e}else localStorage.setItem(f.V0.em_color_scheme,e),t=e;k((0,d.eX)(t===f.nd?`vs-${t}`:f.T)),(0,h.A5)(t)},[k]),q=(0,a.useCallback)(()=>{$!==w.getFieldValue("theme")&&U($),k((0,c.ww)(n.code_editor)),k((0,c.ko)(j)),k((0,s.Oo)())},[n.code_editor,k,w,$,U,j]),Z="true"===localStorage.getItem("elama_user");let G=[{label:a.createElement(a.Fragment,null,a.createElement(l.A,{icon:"ImageUserIcon",size:18,strokeWidth:A.iconStrokeWidth}),t("Profile")),key:y,className:"em-analytics__profile-user",children:a.createElement(a.Fragment,null,a.createElement(o.fI,{gutter:16},a.createElement(o.fv,{span:12},a.createElement(o.lV.Item,{label:t("First name"),name:"firstName"},a.createElement(o.pd,{placeholder:t("Enter your first name")}))),a.createElement(o.fv,{span:12},a.createElement(o.lV.Item,{label:t("Last name"),name:"lastName"},a.createElement(o.pd,{placeholder:t("Enter your last name")})))),a.createElement(o.fI,{gutter:16},a.createElement(o.fv,{span:12},a.createElement(o.lV.Item,{label:t("Email"),name:"email"},a.createElement(o.pd,{disabled:!0,placeholder:t("Enter your email")}))),a.createElement(o.fv,{span:12},a.createElement(o.lV.Item,{label:t("Theme"),name:"theme"},a.createElement(o.Select,{placeholder:t("Select a theme")},B.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(o.fI,{gutter:16},a.createElement(o.fv,{span:12},a.createElement(o.lV.Item,{label:t("Newsletter Subscription"),valuePropName:"checked",name:["newsLetterConsent"]},a.createElement(o.dO,null))),a.createElement(o.fv,{span:12},a.createElement(o.lV.Item,{label:t("Autosave in editor"),valuePropName:"checked",name:["autosaves"]},a.createElement(o.dO,null)))))},{label:a.createElement(a.Fragment,null,a.createElement(l.A,{icon:"CodeBrowserIcon",size:18,strokeWidth:A.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(o.fI,{gutter:16},a.createElement(o.fv,{span:8},a.createElement(o.lV.Item,{label:t("Font size"),name:["codeEditor","fontSize"]},a.createElement(o.FQ,{min:6,max:100}))),a.createElement(o.fv,{span:8},a.createElement(o.lV.Item,{label:t("Tab size"),name:["codeEditor","tabSize"]},a.createElement(o.FQ,{min:1,max:10}))),a.createElement(o.fv,{span:8},a.createElement(o.lV.Item,{label:t("Font family"),name:["codeEditor","fontFamily"]},a.createElement(o.Select,{placeholder:t("Select a font family")},R.map(e=>a.createElement(v,{key:e.value,value:e.value},e.label)))))),a.createElement(o.fI,{gutter:16},a.createElement(o.fv,{span:8},a.createElement(o.lV.Item,{label:t("Line wrap"),valuePropName:"checked",name:["codeEditor","wordWrap"],tooltip:{title:W,icon:a.createElement(l.A,{icon:"InfoCircleIcon",size:16})}},a.createElement(o.dO,null))),a.createElement(o.fv,{span:8},a.createElement(o.lV.Item,{label:t("Minimap"),valuePropName:"checked",name:["codeEditor","minimap"],tooltip:{title:t("Display the minimap."),icon:a.createElement(l.A,{icon:"InfoCircleIcon",size:16})}},a.createElement(o.dO,null))),a.createElement(o.fv,{span:8},a.createElement(o.lV.Item,{label:t("Insert spaces"),valuePropName:"checked",name:["codeEditor","insertSpaces"],tooltip:{title:t("Prefer spaces over tabs."),icon:a.createElement(l.A,{icon:"InfoCircleIcon",size:16})}},a.createElement(o.dO,null)))))}];return Z||G.push({label:a.createElement(a.Fragment,null,a.createElement(l.A,{icon:"ShieldTickIcon",size:18,strokeWidth:A.iconStrokeWidth}),t("Security")),key:"security",className:"account-settings-security-tab-content em-analytics__profile-code-editor",children:a.createElement(a.Fragment,null,a.createElement(o.fI,{gutter:16},a.createElement(o.fv,{span:12},a.createElement(o.lV.Item,{label:t("Current password"),name:"currentPassword"},a.createElement(o._2,{readOnly:!M.currentPassword,onFocus:()=>F(e=>({...e,currentPassword:!0})),ref:H,placeholder:t("Enter your current password")})))),a.createElement(o.fI,{gutter:16},a.createElement(o.fv,{span:12},a.createElement(o.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(o._2,{readOnly:!M.newPassword,onFocus:()=>F(e=>({...e,newPassword:!0})),placeholder:t("Enter your new password")}))),a.createElement(o.fv,{span:12},a.createElement(o.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(o._2,{readOnly:!M.confirmPassword,onFocus:()=>F(e=>({...e,confirmPassword:!0})),placeholder:t("Repeat the new password")})))))}),a.createElement(o.aF,{width:572,className:"account-settings",title:a.createElement("div",null,a.createElement(l.A,{icon:"User03Icon",size:20,strokeWidth:2})," ",t("Account settings")),open:e,onOk:D,onCancel:q,footer:[a.createElement(o.$n,{key:"Update",size:"large",className:"em-analytics__profile-save",type:"primary",loading:S.isLoading,onClick:D},t("Update"))]},a.createElement(o.lV,{form:w,layout:"vertical",name:"edit_profile_form",onFinish:D,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&&U(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(o.tU,{activeKey:O,onChange:e=>P(e),items:G,className:"modal-tabs"})))}},74516:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var a=n(1936),r=n(71715),o=n(69622),i=n(96040),l=n(72531),s=n(22817),c=n(78443),d=n(47706),m=n(942),u=n(29692),p=n(93506),h=n(6403);const g="mainsettings",b="ftpsettings",f="webhooksettings",v=({form:e,activeIntegration:t,setActiveIntegration:n,openFromAnotherPlace:r,inputRefWebHook:l,__:s})=>{const c=e.getFieldValue("webhook"),d=e.getFieldValue("integrations");return a.createElement(a.Fragment,null,null===t&&a.createElement(o.fI,{gutter:[8,8]},a.createElement(o.fv,{span:8},a.createElement(o.Zp,{hoverable:!0,onClick:()=>n("webhook"),style:{textAlign:"center",height:"100%",position:"relative"},bodyStyle:{padding:"12px 8px"}},c&&a.createElement(i.A,{icon:"CheckCircleOutlined",style:{color:"#52c41a",fontSize:"16px",position:"absolute",top:6,left:6}}),a.createElement(o.$x,{direction:"vertical",size:4},a.createElement(i.A,{icon:"WebHook",style:{fontSize:"32px",margin:0}}),a.createElement(o.EY,{strong:!0},s("Webhook"))))),(0,u.v0)().map(e=>a.createElement(o.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(o.$n,{type:"link",icon:a.createElement(i.A,{icon:"ArrowLeftOutlined"}),onClick:()=>n(null),style:{padding:0,marginBottom:16}},s("Back to integrations")),a.createElement(o.fI,{gutter:24},a.createElement(o.fv,{span:24},a.createElement(o.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.")},r&&"webhook"===t&&{required:!0,message:s("Please type the webhook URL.")}]},a.createElement(o.pd,{ref:l,placeholder:s("Type in the project's webhook"),style:{marginBottom:5}}))))),t&&"webhook"!==t&&(()=>{const r=(0,u.v0)().find(e=>e.id===t);return r?a.createElement(a.Fragment,null,a.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16}},a.createElement(o.$n,{type:"link",icon:a.createElement(i.A,{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:r.icon,alt:"",style:{width:20,height:20}}),a.createElement("span",{style:{fontWeight:500}},r.name))),a.createElement(u.I9,{integration:r,form:e,__:s})):null})())},y=({isModalVisible:e,selectedProject:t=null})=>{var n;const{__:y}=(0,d.s9)(),E=(0,r.wA)(),[C]=o.lV.useForm(),_=(0,a.useRef)(null),k=(0,a.useRef)(null),w=(0,a.useRef)(null),A=(0,r.d4)(s.yN),x=(0,r.d4)(c.gU),S=(0,h.hN)(),{modal:L}=o.qw.useApp(),T=(0,r.d4)(c.cL),[B,I]=(0,a.useState)(g),[R,N]=(0,a.useState)(!1),[O,P]=(0,a.useState)(null),M=t||A,F=[b,g,f].includes(x),[j,V]=(0,l.OD)(),H=(0,m.rD)();(0,a.useEffect)(()=>{if(T===p.lx.EDIT_PROJECT_MODAL){const e={mainsettings:_,ftpsettings:k,webhooksettings:w};setTimeout(()=>{var t;return null===(t=e[B].current)||void 0===t?void 0:t.focus({cursor:"end"})},200)}},[T,B]),(0,a.useEffect)(()=>{F&&I(x)},[x,F,I,E]);const W=(0,r.d4)(c.Tu);(0,a.useEffect)(()=>{T===p.lx.EDIT_PROJECT_MODAL&&W&&(I(f),P(W),E(P(null)))},[T,W,E]);let D=[{label:a.createElement(a.Fragment,null,a.createElement(i.A,{icon:"Settings04Icon",size:18,strokeWidth:H.iconStrokeWidth}),y("Main settings")),key:g,className:"em-analytics__mainsettings-project",children:a.createElement(a.Fragment,null,a.createElement(o.fI,{gutter:24},a.createElement(o.fv,{span:24},a.createElement(o.lV.Item,{label:y("Project name"),name:"name",extra:y("This can be\xa0the name of\xa0your company, department, website, project, marketing campaign, or\xa0other activity."),rules:[{required:!0,message:y("Please type the project name.")}]},a.createElement(o.pd,{ref:_,placeholder:y("Type the project name"),style:{marginBottom:5}})))))},{label:a.createElement(a.Fragment,null,a.createElement(i.A,{icon:"Server05Icon",size:18,strokeWidth:H.iconStrokeWidth}),y("FTP settings")),key:b,className:"em-analytics__ftpsettings-project",children:a.createElement(a.Fragment,null,a.createElement(o.fI,{gutter:24},a.createElement(o.fv,{span:12},a.createElement(o.lV.Item,{label:y("Host"),name:["ftpSettings","host"]},a.createElement(o.pd,{ref:k,placeholder:y("Type the FTP host"),disabled:R}))),a.createElement(o.fv,{span:12},a.createElement(o.lV.Item,{label:y("Port"),name:["ftpSettings","port"]},a.createElement(o.pd,{placeholder:y("Type the FTP port"),disabled:R})))),a.createElement(o.fI,{gutter:24},a.createElement(o.fv,{span:12},a.createElement(o.lV.Item,{label:y("Directory"),name:["ftpSettings","directory"]},a.createElement(o.pd,{placeholder:y("Type the file directory"),disabled:R}))),a.createElement(o.fv,{span:12},a.createElement(o.lV.Item,{label:y("URL catalog"),name:["ftpSettings","domain"]},a.createElement(o.pd,{placeholder:y("Type the URL catalog"),disabled:R})))),a.createElement(o.fI,{gutter:24},a.createElement(o.fv,{span:12},a.createElement(o.lV.Item,{label:y("Login"),name:["ftpSettings","login"]},a.createElement(o.pd,{placeholder:y("Type the FTP login"),disabled:R}))),a.createElement(o.fv,{span:12},a.createElement(o.lV.Item,{label:y("Password"),name:["ftpSettings","password"]},a.createElement(o._2,{placeholder:y("Type the FTP password"),disabled:R,iconRender:e=>e?a.createElement(i.A,{icon:"EyeOutlined"}):a.createElement(i.A,{icon:"EyeInvisibleOutlined"})})))),a.createElement(o.fI,{gutter:24},a.createElement(o.fv,{span:24},a.createElement(o.lV.Item,{noStyle:!0},a.createElement(o.Sc,{checked:R,onCheckedChange:N},y("Use default CDN"))))))},{label:a.createElement(a.Fragment,null,a.createElement(i.A,{icon:"WebHook",style:{fontSize:"16px",margin:0}}),y("Integrations")),key:f,className:"em-analytics__mainsettings-project",children:a.createElement(v,{form:C,activeIntegration:O,setActiveIntegration:P,openFromAnotherPlace:F,inputRefWebHook:w,__:y})}];(0,a.useEffect)(()=>{if(e&&M){const e=M.ftp_settings,t=M.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]||""})}),N(null===e||void 0===e?void 0:e.use_default_cdn),C.setFieldsValue({name:M.title,webhook:M.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})}},[C,M,e]);const $=()=>{C.validateFields().then(e=>{const t=e.ftpSettings,n=e.integrations||{},a={...(null===M||void 0===M?void 0:M.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]}),M&&j({projectId:M.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:R}:null,integrations:Object.keys(a).length>0?a:void 0}).then(({data:e,error:t})=>{e?e.title!==M.title?S.success({message:y("The project \u201c")+M.title+y("\u201d was successfully changed to \u201c")+e.title+y("\u201d.")}):S.success({message:y("The project settings was successfully saved.")}):t&&S.error({error:t}),E((0,c.YF)("")),E((0,c.Oo)()),P(null)})})};return a.createElement(o.aF,{title:a.createElement("div",null,a.createElement(i.A,{icon:"SettingOutlined",size:20,strokeWidth:2})," ",y("Project settings")),open:e,onOk:$,onCancel:()=>{E((0,c.YF)("")),E((0,c.Oo)()),P(null)},footer:B===f&&null===O?null:[O&&"webhook"!==O&&(0,u.hS)(O,null===M||void 0===M||null===(n=M.integrations)||void 0===n?void 0:n[O])&&a.createElement(o.$n,{key:"disable",size:"large",danger:!0,onClick:()=>{const e=(0,u.v0)().find(e=>e.id===O);e&&M&&L.confirm({title:y("Disable integration"),content:y("Are you sure you want to disable this integration?"),okText:y("Disable"),cancelText:y("Cancel"),okButtonProps:{danger:!0},onOk:()=>{const t=C.getFieldValue("integrations")||{};C.setFieldsValue({integrations:{...t,[e.id]:e.settingsFields.reduce((e,t)=>({...e,[t.name]:""}),{})}});const n=C.getFieldsValue(),a=n.ftpSettings,r=n.integrations||{},o={...M.integrations||{}};Object.entries(r).forEach(([e,t])=>{t&&(0,u.hS)(e,t)?o[e]=t:o[e]&&!(0,u.hS)(e,t)&&delete o[e]}),j({projectId:M.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:R}:null,integrations:Object.keys(o).length>0?o:void 0}).then(({data:e,error:t})=>{e?S.success({message:y("The project settings was successfully saved.")}):t&&S.error({error:t}),E((0,c.YF)("")),E((0,c.Oo)()),P(null)})}})},style:{marginRight:8}},y("Disable integration")),a.createElement(o.$n,{key:"submit",size:"large",className:"em-analytics__project-save",type:"primary",loading:V.isLoading,onClick:$},y("Update"))].filter(Boolean)},a.createElement(o.lV,{form:C,layout:"vertical",name:`edit_project_form_${null===M||void 0===M?void 0:M.id}`,onFinish:$,initialValues:{remember:!1,name:""},autoComplete:"off"},a.createElement(o.tU,{activeKey:B,onChange:e=>{I(e),P(null)},items:D,className:"modal-tabs"})))}},58700:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var a=n(1936),r=n(84075),o=n(88260),i=n(69622),l=n(74291),s=n(71715),c=n(6056),d=n.n(c),m=n(48155),u=n.n(m),p=n(60791),h=n(89591),g=n(98173),b=n(52898),f=n(73378),v=n(7959),y=n(41244),E=n(47706),C=n(942),_=n(93506),k=n(96040);const w=({element:e,setSearchFilters:t=()=>{},isTrash:n=!1,foldersList:c,projectTags:m=[],foldersHandlers:w={},selected:A=!1})=>{var x,S,L,T,B,I,R,N,O,P,M,F,j,V,H;const{__:W}=(0,E.s9)();let D=(0,r.zy)();const{projectId:$}=(0,r.g)(),{owner:z,admin:U}=(0,v.A)(),q=(0,s.d4)(g.C1),Z=(0,s.d4)(b.Yd),G=(0,a.useRef)(null),{token:X}=(0,i.rd)(),{handleRecover:Y,handleClone:K,handlerChangeFolder:J,handleRemove:Q}=w,ee=(0,C.rD)(),te=e.hasOwnProperty("type")?_.IE:_.Tm,ne=te===_.Tm?_.zh:_.YY,ae=te===_.Tm?W("New emails"):W("New blocks"),re=(e,t)=>`${e.pathname}/${t.id}`,[oe]=(0,p.pP)(),[ie]=(0,h.Kh)(),le=(e,t=$,n)=>{var a;let r=window.location.host.indexOf("localhost")>=0?"app.emailmaker.ru":`${window.location.host}`;const o=Z[e],i=null!==(a=null!==o&&void 0!==o?o:n)&&void 0!==a?a:e,l=`&cacheControl=true&cache-hash=${u()(String(i))}`;return`https://scr.emcdn.ru/screenshot?${"block"===te?"":"minHeight=620&"}delay=1000&width=800&fullPage=true&deviceScaleFactor=0.755&format=jpg&force=false${l}&url=${encodeURIComponent(`https://${r}/get${te}/${e}?secret_hash=${u()(`${t}${e}${_.KI}`)}&raw=true`)}`},se=(null===(x=e[te===_.IE?"blockfolder":"folder"])||void 0===x?void 0:x[0])||null,ce={icon:a.createElement(k.A,{icon:"Email",size:18,strokeWidth:ee.iconStrokeWidth}),label:ae,key:_.y2,onClick:t=>J(t,e)},de=null===c||void 0===c?void 0:c.map(t=>({icon:a.createElement(k.A,{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(z||U||(null===(S=q.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(f.A,{key:"Lock",element:e}),icon:e.lock?a.createElement(k.A,{icon:"UnLock",size:16,strokeWidth:ee.iconStrokeWidth}):a.createElement(k.A,{icon:"Lock",size:16,strokeWidth:ee.iconStrokeWidth})}),(z||U||(null===(T=q.id)||void 0===T?void 0:T.toString())===(null===(B=e.author)||void 0===B?void 0:B.toString()))&&!n&&me.length>0&&ue.push({label:W("Transfer to folder"),icon:a.createElement(k.A,{icon:"FolderIcon",size:16,strokeWidth:ee.iconStrokeWidth}),children:me,popupClassName:"element-card__folder-submenu"}),!n&&ue.push({label:W("Clone"),icon:a.createElement(k.A,{icon:"CopyOutlined",size:16,strokeWidth:ee.iconStrokeWidth}),key:"Clone",className:te===_.IE?"em-analytics__block-clone":"em-analytics__email-clone",disabled:te===_.IE?oe.isLoading:ie.isLoading,onClick:()=>K(e)}),(z||U||(null===(I=q.id)||void 0===I?void 0:I.toString())===(null===(R=e.author)||void 0===R?void 0:R.toString()))&&n&&ue.push({label:W("Recover"),icon:a.createElement(k.A,{icon:"FlipBackwardIcon",size:16,strokeWidth:ee.iconStrokeWidth}),key:"Recover",onClick:()=>Y(e)}),(z||U||(null===(N=q.id)||void 0===N?void 0:N.toString())===(null===(O=e.author)||void 0===O?void 0:O.toString()))&&ue.push({label:W("Remove"),icon:a.createElement(k.A,{icon:"DeleteOutlined",size:16,strokeWidth:ee.iconStrokeWidth}),key:"Remove",style:{color:"#ff4d4f"},className:te===_.IE?"em-analytics__block-remove":"em-analytics__email-remove",onClick:()=>Q(e)}),a.createElement(i.Zp,{className:`element-card element-card_${te}`,hoverable:!0,"data-testid":e.id,style:A?{border:`1px solid ${X.colorPrimary}`,borderRadius:16}:void 0,cover:a.createElement(a.Fragment,null,a.createElement(i.EA,{loading:!0,active:!0,avatar:!0,style:{position:"absolute",width:"83%",margin:"50px 10% 0 7%"}}),a.createElement(o.N_,{ref:G,className:"element-card__img-wrapper",to:n?"":re(D,e),onMouseMove:e=>(0,y.Hy)(e,G.current),style:{cursor:n?"default":"pointer"},onMouseLeave:y.Tr},le(e.id,e.project,e.modified)&&a.createElement("img",{className:"element-card__img",alt:e.title,src:le(e.id,e.project,e.modified)})),(e.is_template||(null===(P=e.acf)||void 0===P?void 0:P.is_template))&&a.createElement("div",{className:"element-card__is-template-wrapper"},W("Template")),(null===(M=e[ne])||void 0===M?void 0:M.length)&&a.createElement("div",{className:"element-card__tags-wrapper"},a.createElement(i.$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(i.vw,{color:X.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(o.N_,{to:n?"":re(D,e),style:{cursor:n?"default":"pointer"}},a.createElement("span",{className:"element-card__title"},e.lock&&a.createElement(k.A,{icon:"Lock",size:16,strokeWidth:ee.iconStrokeWidth,className:d()("lock-icon",{"lock-icon__disabled":!(z||U||(null===(F=q.id)||void 0===F?void 0:F.toString())===(null===(j=e.author)||void 0===j?void 0:j.toString()))})}),(null===(V=e.title)||void 0===V?void 0:V.trim())||(null===(H=e.subject)||void 0===H?void 0:H.trim()))),a.createElement(i.ms,{menu:{items:ue},arrow:"true",placement:"bottom",trigger:["hover"]},a.createElement(i.$n,{type:"default",className:"element-card_menu",onClick:()=>{}},a.createElement(k.A,{icon:"DotsVerticalIcon",size:16,strokeWidth:ee.iconStrokeWidth,key:"menu-button"})))),a.createElement("p",{className:"element-card__date"},W("Last update: ")," ",(0,y.Yq)((0,l.A)(e.modified),W))))}},68882:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var a=n(1936),r=n(71715),o=n(84075),i=n(47706),l=n(69622),s=n(96040),c=n(7714),d=n(942),m=n(91480),u=n(93506),p=n(40867),h=n(22817);const g=({elementPath:e})=>{const{_x:t}=(0,i.s9)(),n=(0,r.wA)(),g=(0,c.QC)(),b=(0,d.rD)(),{emailId:f,blockId:v,projectId:y}=(0,o.g)(),E=(0,r.d4)(h.yN),C=(0,m.u)(),_=(0,a.useCallback)(e=>{g.send({operation:u.Ru.SANDBOX_ELEMENT_ACTIVE_SET,index:e})},[g]),k=(0,a.useCallback)(e=>{var t,a,r,o,i,l;let s="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!==(r=e.target)&&void 0!==r&&r.closest('[class*="icon"]')?s="icon":null===e||void 0===e||null===(o=e.target)||void 0===o||!o.textContent||null!==e&&void 0!==e&&null!==(i=e.target)&&void 0!==i&&i.closest("svg")||null!==e&&void 0!==e&&null!==(l=e.target)&&void 0!==l&&l.closest(".anticon")||(s="text"),n((0,p.PM)(u.rY)),g.send({operation:u.Ru.SANDBOX_LOCK_EDIT,data:!1}),g.send({operation:u.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),C({event:"click",action:"click_breadcrumb_email",email_id:f||v,project_id:(null===E||void 0===E?void 0:E.id)||y,click_target:s})},[g,n,C,f,v,y,E]),w={title:a.createElement("span",{onClick:k},a.createElement(s.A,{icon:"Email",size:16,strokeWidth:b.iconStrokeWidth})," ",t("Email","letter"))},[A,x]=(0,a.useState)([w]),S=(0,a.useCallback)(e=>{g.send({operation:u.Ru.SANDBOX_ELEMENT_HOVER_SET,index:e})},[g]),L=(0,a.useCallback)((t,n)=>{return a.createElement("span",{className:t.className,onClick:t=>{var a;let r="element";t.target.closest("svg")||t.target.closest(".anticon")||t.target.closest('[class*="icon"]')?r="icon":!t.target.textContent||t.target.closest("svg")||t.target.closest(".anticon")||(r="text");const o=null===e||void 0===e?void 0:e[n],i=(null===o||void 0===o||null===(a=o.className)||void 0===a?void 0:a.replace("em-element-path-item-",""))||"unknown";C({event:"click",action:"click_breadcrumb_element",email_id:f||v,project_id:(null===E||void 0===E?void 0:E.id)||y,element_type:i,element_index:n,element_title:(null===o||void 0===o?void 0:o.title)||"",click_target:r}),_(n)},onMouseOver:()=>{S(n)}},(r=t.className).includes("em-element-path-item-text")?a.createElement(s.A,{icon:"ElementText",size:16,strokeWidth:b.iconStrokeWidth}):r.includes("em-element-path-item-image")?a.createElement(s.A,{icon:"ElementImage",size:16,strokeWidth:b.iconStrokeWidth}):r.includes("em-element-path-item-link")?a.createElement(s.A,{icon:"LinkOutlined",size:16,strokeWidth:b.iconStrokeWidth}):r.includes("em-element-path-item-atom")?a.createElement(s.A,{icon:"Atom",size:16,strokeWidth:b.iconStrokeWidth}):r.includes("em-element-path-item-column")?a.createElement(s.A,{icon:"Column",size:16,strokeWidth:b.iconStrokeWidth}):r.includes("em-element-path-item-block")?a.createElement(s.A,{icon:"Block",size:16,strokeWidth:b.iconStrokeWidth}):r.includes("em-element-path-item-group")?a.createElement(s.A,{icon:"Group",size:16,strokeWidth:b.iconStrokeWidth}):r.includes("em-element-path-item-button")?a.createElement(s.A,{icon:"ElementButton",size:16,strokeWidth:b.iconStrokeWidth}):r.includes("em-element-path-item-table")?a.createElement(s.A,{icon:"ElementTable",size:16,strokeWidth:b.iconStrokeWidth}):r.includes("em-element-path-item-amp")?a.createElement(s.A,{icon:"AMP",size:16,strokeWidth:b.iconStrokeWidth}):void 0," ",t.title);var r},[_,S,e,C,f,v,y,E]);return(0,a.useEffect)(()=>{if(e){const n=e.map((e,t)=>({title:L(e,t)}));x([{title:a.createElement("span",{onClick:k},a.createElement(s.A,{icon:"Email",size:16,strokeWidth:b.iconStrokeWidth})," ",t("Email","letter"))},...n])}},[e,L,k,t]),a.createElement(a.Fragment,null,a.createElement(l.Qp,{items:A,type:"separator",separator:""}))}},13386:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var a=n(1936),r=n(84075),o=n(71715),i=n(69622),l=n(48155),s=n.n(l),c=n(41244),d=n(2527),m=n(91480),u=n(47706),p=n(93506),h=n(98173);const g=({element:e,setSearchFilters:t=(e,t)=>{}})=>{var n;const{projectId:l}=(0,r.g)(),g=(0,r.Zp)(),b=(0,d.p)(),{token:f}=(0,i.rd)(),{__:v}=(0,u.s9)(),y=e.type?p.IE:p.Tm,E=`/projects/${l}/emails/new`,C=(0,m.u)(),_=(0,o.d4)(h.C1),k=(0,a.useRef)(null);return a.createElement(i.Zp,{className:`element-card element-card_${y} 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=l,n)=>`https://scr.emcdn.ru/screenshot?delay=1000&width=800&fullPage=true&deviceScaleFactor=0.8&format=jpg&force=false${n?`&cacheControl=true&cache-hash=${s()(n)}`:""}&url=${encodeURIComponent(`https://app.emailmaker.ru/get${y}/${e}?secret_hash=${s()(`${t}${e}${p.KI}`)}&raw=true`)}`)(e.id,e.project,e.modified),onMouseMove:e=>(0,c.Hy)(e,k.current),onMouseLeave:c.Tr})),e.is_template&&e.project===+l&&a.createElement("div",{className:"element-card__is-template-wrapper"},v("Template")),(0,c._q)(e,p.zh).length&&a.createElement("div",{className:"element-card__tags-wrapper"},a.createElement(i.$x,{wrap:!0,size:8},null===(n=(0,c._q)(e,p.zh))||void 0===n?void 0:n.map(e=>a.createElement(i.vw,{bordered:!1,color:f.colorPrimary,style:{borderRadius:6},key:e.id,onClick:()=>t(null,e.id)},e.name))))),onClick:()=>(t=>{var n;C({event:"select",action:"create_new_email",template_id:t,project_id:l,template_title:(0,c.ln)(e.title),description:"Create new email from template",subscription:null===_||void 0===_||null===(n=_.subscription)||void 0===n?void 0:n.post_title}),b.set(p.A9.em_new_email,t),(0,c.XZ)(g,E)})(e.id)},a.createElement("div",null,a.createElement(i.$n,{type:"link",className:"element-card__title"},(0,c.ln)(e.title))))}},93718:(e,t,n)=>{var a={"./en_US.ts":[54955,2466],"./ru_RU.ts":[24408,6859]};function r(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],r=t[0];return n.e(t[1]).then(()=>n(r))}r.keys=()=>Object.keys(a),r.id=93718,e.exports=r},16403:()=>{},63779:()=>{},77199:()=>{},58889:e=>{"use strict";e.exports=JSON.parse('{"yG":"iframe.8216ee8050e216f489af.html","l5":"iframe-eblock.8216ee8050e216f489af.html"}')}}]);
|
|
2
|
-
//# sourceMappingURL=9578.629b57ca.js.map
|