@emailmaker/emailmaker 1.0.90 → 1.0.92
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 +33 -2
- package/asset-manifest.json +31 -26
- package/emailmaker-esm.js +1 -1
- package/emailmaker.js +1 -1
- package/iframe/429.js +1 -1
- package/iframe/766.js +1 -1
- package/iframe/iframe-eblock.bd2a2a73469f802abf17.html +1 -0
- package/iframe/iframe.bd2a2a73469f802abf17.html +1 -0
- package/iframe/js/826.c1a995fb.js +1 -0
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/plugin.html +1 -1
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +1 -1
- package/plugin_idigital.html +1 -1
- package/plugin_nota.html +1 -1
- package/plugin_s.html +1 -1
- package/static/css/2458.05166c0a.chunk.css +1 -0
- package/static/css/6501.e131603e.chunk.css +1 -0
- package/static/css/9272.a4e58dd0.chunk.css +1 -0
- package/static/js/1390.87d39fe1.js +2 -0
- package/static/js/{1538.c37b25fc.chunk.js → 1538.06811304.chunk.js} +2 -2
- package/static/js/241.9aaa5790.js +2 -0
- package/static/js/{6498.bfe18798.js.LICENSE.txt → 241.9aaa5790.js.LICENSE.txt} +1 -1
- package/static/js/2458.504bef1c.chunk.js +2 -0
- package/static/js/3017.2e1f6413.chunk.js +1 -0
- package/static/js/3085.b9d27236.chunk.js +2 -0
- package/static/js/4560.b03bbb3f.chunk.js +2 -0
- package/static/js/4560.b03bbb3f.chunk.js.LICENSE.txt +101 -0
- package/static/js/6501.616f4dec.chunk.js +1 -0
- package/static/js/7091.d1a56e4b.js +1 -0
- package/static/js/7729.13361a78.js +1 -0
- package/static/js/8285.c8bdf11b.js +2 -0
- package/static/js/{1302.39ea1b43.js.LICENSE.txt → 8285.c8bdf11b.js.LICENSE.txt} +1 -14
- package/static/js/8408.459779d0.js +2 -0
- package/static/js/8408.459779d0.js.LICENSE.txt +9 -0
- package/static/js/898.2dcef4f3.js +2 -0
- package/static/js/9272.d5a35d82.chunk.js +1 -0
- package/static/js/9960.6dcf66f0.chunk.js +2 -0
- package/static/js/9960.6dcf66f0.chunk.js.LICENSE.txt +30 -0
- package/static/js/emailmaker_core.1c694217.js +2 -0
- package/static/media/project-email-back.0ce470def19ce7c063e0.svg +29 -0
- package/translations.pot +109 -69
- package/emailmaker.d.ts +0 -1290
- package/iframe/iframe-eblock.2da62676cd51ab369172.html +0 -1
- package/iframe/iframe.2da62676cd51ab369172.html +0 -1
- package/iframe/js/826.203f82ea.js +0 -1
- package/static/css/3397.fc69a1a6.chunk.css +0 -1
- package/static/js/1302.39ea1b43.js +0 -2
- package/static/js/3017.1bbeda89.chunk.js +0 -1
- package/static/js/3085.59662838.chunk.js +0 -2
- package/static/js/3273.6cedb8e0.js +0 -2
- package/static/js/3397.c4e8daad.chunk.js +0 -2
- package/static/js/3758.c4bda075.js +0 -2
- package/static/js/3927.53e3058b.js +0 -1
- package/static/js/4138.7f4f36d7.js +0 -1
- package/static/js/6498.bfe18798.js +0 -2
- package/static/js/985.35d145ce.js +0 -1
- package/static/js/9880.74dc5e4f.chunk.js +0 -2
- package/static/js/9880.74dc5e4f.chunk.js.LICENSE.txt +0 -9
- package/static/js/emailmaker_core.b4c43c8c.js +0 -2
- /package/iframe/js/{826.203f82ea.js.LICENSE.txt → 826.c1a995fb.js.LICENSE.txt} +0 -0
- /package/static/js/{3273.6cedb8e0.js.LICENSE.txt → 1390.87d39fe1.js.LICENSE.txt} +0 -0
- /package/static/js/{1538.c37b25fc.chunk.js.LICENSE.txt → 1538.06811304.chunk.js.LICENSE.txt} +0 -0
- /package/static/js/{3397.c4e8daad.chunk.js.LICENSE.txt → 2458.504bef1c.chunk.js.LICENSE.txt} +0 -0
- /package/static/js/{3085.59662838.chunk.js.LICENSE.txt → 3085.b9d27236.chunk.js.LICENSE.txt} +0 -0
- /package/static/js/{3758.c4bda075.js.LICENSE.txt → 898.2dcef4f3.js.LICENSE.txt} +0 -0
- /package/static/js/{emailmaker_core.b4c43c8c.js.LICENSE.txt → emailmaker_core.1c694217.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[7729],{88647:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var a,r=n(98173);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},l.apply(null,arguments)}function o({title:e,titleId:t,...n},o){return r.createElement("svg",l({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,a||(a=r.createElement("path",{d:"M6.5 1.143H5.25A4.108 4.108 0 0 0 1.143 5.25V6.5c0 .078.064.143.142.143h1a.143.143 0 0 0 .143-.143V5.25A2.82 2.82 0 0 1 5.25 2.428H6.5a.143.143 0 0 0 .143-.143v-1a.143.143 0 0 0-.143-.142ZM14.857 6.5V5.25a4.108 4.108 0 0 0-4.107-4.107H9.5a.143.143 0 0 0-.143.142v1c0 .079.064.143.143.143h1.25A2.82 2.82 0 0 1 13.57 5.25V6.5c0 .078.065.143.143.143h1a.143.143 0 0 0 .143-.143ZM9.5 14.857h1.25a4.108 4.108 0 0 0 4.107-4.107V9.5a.143.143 0 0 0-.143-.143h-1a.143.143 0 0 0-.143.143v1.25a2.82 2.82 0 0 1-2.821 2.821H9.5a.143.143 0 0 0-.143.143v1c0 .079.064.143.143.143ZM1.143 9.5v1.25a4.108 4.108 0 0 0 4.107 4.107H6.5a.143.143 0 0 0 .143-.143v-1a.143.143 0 0 0-.143-.143H5.25a2.82 2.82 0 0 1-2.822-2.821V9.5a.143.143 0 0 0-.143-.143h-1a.143.143 0 0 0-.142.143Z",fill:"inherit"})))}const i=r.forwardRef(o);n.p},77778:(e,t,n)=>{var a={"./ar_EG.js":[66864,4607],"./az_AZ.js":[98980,3816],"./bg_BG.js":[20740,2844],"./bn_BD.js":[86085,6428],"./by_BY.js":[66660,9200],"./ca_ES.js":[20840,1626],"./context.js":[34962],"./cs_CZ.js":[79178,1377],"./da_DK.js":[56965,2066],"./de_DE.js":[56615,8796],"./el_GR.js":[74295,7288],"./en_GB.js":[14278,1502],"./en_US.js":[94609],"./es_ES.js":[6368,2114],"./et_EE.js":[54452,6135],"./eu_ES.js":[5153,9716],"./fa_IR.js":[39990,5322],"./fi_FI.js":[81264,6552],"./fr_BE.js":[73323,3411],"./fr_CA.js":[96235,494],"./fr_FR.js":[24113,1330],"./ga_IE.js":[32046,1872],"./gl_ES.js":[14314,3711],"./he_IL.js":[13205,7974],"./hi_IN.js":[32885,1332],"./hr_HR.js":[36886,1510],"./hu_HU.js":[1462,6764],"./hy_AM.js":[25907,737],"./id_ID.js":[76426,3624],"./index.js":[33733],"./is_IS.js":[45856,7426],"./it_IT.js":[59905,2408],"./ja_JP.js":[37148,8839],"./ka_GE.js":[46792,1454],"./kk_KZ.js":[56099,4425],"./km_KH.js":[52968,6033],"./kmr_IQ.js":[99784,9508],"./kn_IN.js":[63882,3914],"./ko_KR.js":[49656,5261],"./ku_IQ.js":[1414,5108],"./lt_LT.js":[94408,2438],"./lv_LV.js":[12173,3302],"./mk_MK.js":[81609,8466],"./ml_IN.js":[65643,290],"./mn_MN.js":[51320,6832],"./ms_MY.js":[15806,5980],"./my_MM.js":[91097,6618],"./nb_NO.js":[95370,2917],"./ne_NP.js":[71121,5827],"./nl_BE.js":[50627,5653],"./nl_NL.js":[16489,5466],"./pl_PL.js":[99842,5862],"./pt_BR.js":[93764,4702],"./pt_PT.js":[95746,8534],"./ro_RO.js":[13731,2988],"./ru_RU.js":[41735],"./si_LK.js":[57860,4823],"./sk_SK.js":[5011,6418],"./sl_SI.js":[16273,2827],"./sr_RS.js":[75748,8682],"./sv_SE.js":[51685,77],"./ta_IN.js":[39009,1640],"./th_TH.js":[62651,5902],"./tk_TK.js":[98442,5864],"./tr_TR.js":[94887,4686],"./uk_UA.js":[37224,1788],"./ur_PK.js":[68095,8590],"./useLocale.js":[46555],"./vi_VN.js":[43142,1241],"./zh_CN.js":[56721,9169],"./zh_HK.js":[29319,197],"./zh_TW.js":[85180,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},61631:(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()}}}},46805:(e,t,n)=>{"use strict";function a(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:()=>m,uI:()=>h});const r=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&&!a(e,t)){return`%|{${r.getOrCreateByKey(e)}}|%`}return e}function o(e){const t=r.getByValue(e.slice(3,e.length-3));return void 0===t?e:t}function i(e,t){if(void 0!==t){if(a(e,t))return e;return`%|{${r.getOrCreateByKey(e)}}|%`}return`\x3c!--${e}--\x3e`}function s(e){if(e.startsWith("\x3c!--")&&e.endsWith("--\x3e")){const t=e.slice(4,-3).trim();return t.replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")}return e}const c=/#set\s*\(\s*.*=.*\)/gm,d=/<!--#set\s*\(\s*.*=.*\)-->/gm,m=e=>{e.escape("\x3c!--","--\x3e",(e=>e),!1),e.escape("<style","</style>",(e=>e),!1),e.escape("<script","<\/script>",(e=>e),!1),e.unescape("%|{","}|%",o),e.escape("@{","}",i,!0).unescape("\x3c!--@{","}--\x3e",s,!0),e.unescape("\x3c!--%%%{{{","}}}%%%--\x3e",(e=>e.substring(10,e.length-9)),!1),e.escape("${","}",l,!0),e.escape("{{","}}",l,!0),e.escape("{%","%}",i).unescape("\x3c!--{%","%}--\x3e",s),e.escape("{#","#}",i).unescape("\x3c!--{#","#}--\x3e",s),e.escape("[%","%]",i,!0).unescape("\x3c!--[%","%]--\x3e",s,!0),e.createSyntax("getresponse").escape("[[IF","]]",i).escape("[[if","]]",i).escape("[[ELSE]]","",i).escape("[[else]]","",i).escape("[[ENDIF]]","",i).escape("[[endif]]","",i).unescape("\x3c!--[[IF","]]--\x3e",s).unescape("\x3c!--[[if","]]--\x3e",s).unescape("\x3c!--[[ELSE]]","--\x3e",s).unescape("\x3c!--[[else]]","--\x3e",s).unescape("\x3c!--[[ENDIF]]","--\x3e",s).unescape("\x3c!--[[endif]]","--\x3e",s),e.createSyntax("ExpertSender").escape("<if",">",i).escape("</if",">",i).escape("<else",">",i).escape("</else",">",i).escape("<var ",">",i,!0).unescape("\x3c!--<if ",">--\x3e",s).unescape("\x3c!--</if",">--\x3e",s).unescape("\x3c!--<else ",">--\x3e",s).unescape("\x3c!--</else",">--\x3e",s).unescape("\x3c!--<var",">--\x3e",s,!0),e.createSyntax("velocity").escape("#if",")",i).escape("#elseif",")",i).escape("#else","",i).escape("#foreach",")",i).escape("#macro",")",i).escape("#set",")",((e,t)=>!!e.match(c)&&i(e,t)),!0).escape("#parse",")",i).escape("#include",")",i).escape("#evaluate",")",i).escape("#end","",i).escape("#break","",i).escape("#stop","",i).unescape("\x3c!--#macro",")--\x3e",s).unescape("\x3c!--#if",")--\x3e",s).unescape("\x3c!--#elseif",")--\x3e",s).unescape("\x3c!--#else","--\x3e",s).unescape("\x3c!--#foreach",")--\x3e",s).unescape("\x3c!--#parse",")--\x3e",s).unescape("\x3c!--#include",")--\x3e",s).unescape("\x3c!--#evaluate",")--\x3e",s).unescape("\x3c!--#end","--\x3e",s).unescape("\x3c!--#break","--\x3e",s).unescape("\x3c!--#stop","--\x3e",s).unescape("\x3c!--#set",")--\x3e",(e=>!!e.match(d)&&s(e)),!0),e.escape("*|","|*",i).unescape("\x3c!--*|","|*--\x3e",s),e.escape("{%","%}",i).unescape("\x3c!--{%","%}--\x3e",s)};function p(e,t,n,a){const r=[];if(n&&(t=t.filter((e=>e.isVariable))),!t.length)return r;const l=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"),l=[];let o;for(;null!==(o=r.exec(e));){const e=o[0];l.push({start:o.index,startToken:e,endTokens:n[e]})}return l}(e,t);let o,i=!1,s=!1,c=!1,d=0;for(let p=0;p<l.length;p++){var m;const{start:t,startToken:n,endTokens:u}=l[p];if(a)s=!0,o='"';else for(let a=d;a<t;a++){const t=e[a];s?'"'===o||"'"===o?t===o&&(s=!1,o=void 0):c&&/[\s>]/.test(t)&&(s=!1,o=void 0,c=!1):"<"===t?i=!0:">"===t?i=!1:!i||'"'!==t&&"'"!==t?i&&/\S/.test(t)&&void 0===o&&"="===e[a-1]&&!['"',"'","`"].includes(t)&&(s=!0,o="",c=!0):(s=!0,o=t,c=!1)}d=t;const h=s?null!==(m=o)&&void 0!==m?m:"":void 0;for(const{mapFn:a,value:o}of u){let i=e.indexOf(o,t+n.length),s=t+n.length,c=0;for(;-1!==i;){const t=e.indexOf(n,s);if(-1!==t&&t<i)c++,s=t+n.length,i=e.indexOf(o,s);else{if(!(c>0))break;c--,s=i+o.length,i=e.indexOf(o,s)}}if(i>=0){const n=i+o.length,s=e.substring(t,n),c=a(s,h);!1!==c&&c!==s&&r.push({range:{start:t,end:n},text:c});const d=l.findIndex((({start:e})=>e>=n));p=d>p?d-1:l.length;break}}}return r}function u(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:l}of n)a=a.slice(0,l.start)+r+a.slice(l.end);return a}class h{constructor(e=m){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 p(e,this._escapes,t,n)}getRevertMappings(e,t){return p(e,this._unescapes,t)}getEscapedText(e,t){return u(e,this.getMappings(e,t))}getUnescapedText(e,t){return u(e,this.getRevertMappings(e,t))}addDisposable(e){this._disposables.push(e)}dispose(){for(const e of this._disposables)e.dispose()}}},99282:(e,t,n)=>{"use strict";n.d(t,{vl:()=>r});var a=n(61631);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},9008:(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})},44779:(e,t,n)=>{"use strict";n.d(t,{C:()=>l,R:()=>r});var a=n(90717);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 l(e){const t=e.querySelector("style[amp4email-boilerplate]");t&&t.remove()}},1511:(e,t,n)=>{"use strict";n.d(t,{Vq:()=>l,gP:()=>a,zq:()=>r});const a="https://cdn.ampproject.org/v0",r=`${a}.js`,l=`script[src='${r}']`},46496:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});var a=n(90717);function r(e){let 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)}},16341:(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 o of r){var l;null!==(l=o.getAttribute("src"))&&void 0!==l&&l.startsWith("https://cdn.ampproject.org/")||o.closest("amp-state")&&"application/json"===o.getAttribute("type")||o.remove()}}n.d(t,{y:()=>a})},90717:(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");let n=a(e);n.insertBefore(t,n.firstChild)}return t}function l(e){const t=Object.create(null),n=e.getAttributeNames();for(const a of n)t[a]=e.getAttribute(a);return t}function o(e){for(const t of document.querySelectorAll("iframe"))if(t.contentDocument===e.ownerDocument)return t}n.d(t,{ep:()=>a,gu:()=>l,xm:()=>o,xy:()=>r})},47904:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});const a={wordwrap:200,tables:!0,selectors:[...n(634).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:!0,longWordSplit:{forceWrapOnLimit:!0}}},634:(e,t,n)=>{"use strict";n.d(t,{lp:()=>Ee,G9:()=>we});var a={};n.r(a),n.d(a,{block:()=>W,blockHtml:()=>K,blockString:()=>F,blockTag:()=>G,inline:()=>z,inlineHtml:()=>X,inlineString:()=>Z,inlineSurround:()=>Y,inlineTag:()=>U,skip:()=>D});var r={};n.r(r),n.d(r,{anchor:()=>he,blockquote:()=>de,dataTable:()=>ve,heading:()=>ce,horizontalLine:()=>oe,image:()=>ue,lineBreak:()=>re,orderedList:()=>fe,paragraph:()=>ie,pre:()=>se,table:()=>Ce,unorderedList:()=>be,wbr:()=>le});var l=n(23915);function o(e){return new l.LC(i(e))}function i(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()]=i(n.cont);return(e,...n)=>{var a;const r=null===(a=e.tagName)||void 0===a?void 0:a.toLowerCase(),l=r&&t[r];return l?l(e,...n):[]}}(e);case"attrValue":return function(e){const t=[];for(const a of e.matchers){const e=a.predicate,n=i(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=i(e.cont);return(e,...a)=>e.hasAttribute(t)?n(e,...a):[]}(e);case"pushElement":return function(e){const t=i(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=i(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(28907),p=n.n(m);function u(e,t,n=()=>{}){if(void 0===e){const e=function(...n){return t(e,...n)};return e}return e>=0?function(...a){return t(u(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],l=t(r);n.set(l,n.has(l)?p()(r,n.get(l),{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 C(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 v=["I","X","C","M"],E=["V","L","D"];function y(e){return[...e+""].map((e=>+e)).reverse().map(((e,t)=>e%5<4?(e<5?"":E[t])+v[t].repeat(e%5):v[t]+(e<5?E[t]:v[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),l=a.lastIndexOf(this.wrapCharacters[n]);if(l>-1)e=a.substring(l+1)+r,t.push(a.substring(0,l+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 A{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}}class w extends A{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 k extends w{constructor(e,t=null,{interRowLineBreaks:n=1,leadingLineBreaks:a=2,maxLineLength:r,maxPrefixLength:l=0,prefixAlign:o="left"}={}){super(e,t,a,r),this.maxPrefixLength=l,this.prefixAlign=o,this.interRowLineBreaks=n}}class L extends w{constructor(e,t=null,{leadingLineBreaks:n=1,maxLineLength:a,prefix:r=""}={}){super(e,t,n,a),this.prefix=r}}class S extends A{constructor(e=null){super(e),this.rows=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}}class x extends A{constructor(e=null){super(e),this.cells=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}}class T extends A{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 A{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 l=n.stashedSpace;let o=!1,i=e.exec(t);if(i)for(o=!0,"\n"===i[0]?n.startNewLine():l||this.testLeadingWhitespace(t)?n.pushWord(a(i[0]),r):n.concatWord(a(i[0]),r);null!==(i=e.exec(t));)"\n"===i[0]?n.startNewLine():n.pushWord(a(i[0]),r);n.stashedSpace=l&&!o||this.testTrailingWhitespace(t)}}else{const e=new RegExp(`[^${t}]+`,"g");this.shrinkWrapAdd=function(t,n,a=e=>e,r=!1){if(!t)return;const l=n.stashedSpace;let o=!1,i=e.exec(t);if(i)for(o=!0,l||this.testLeadingWhitespace(t)?n.pushWord(a(i[0]),r):n.concatWord(a(i[0]),r);null!==(i=e.exec(t));)n.pushWord(a(i[0]),r);n.stashedSpace=l&&!o||this.testTrailingWhitespace(t)}}}addLiteral(e,t,n=!0){if(!e)return;const a=t.stashedSpace;let r=!1,l=this.newlineOrNonNewlineStringRe.exec(e);if(l)for(r=!0,"\n"===l[0]?t.startNewLine():a?t.pushWord(l[0],n):t.concatWord(l[0],n);null!==(l=this.newlineOrNonNewlineStringRe.exec(e));)"\n"===l[0]?t.startNewLine():t.pushWord(l[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 M{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 L||this._stackItem instanceof T)&&(this._stackItem.isPre?this._stackItem.rawText+="\n":this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof w||this._stackItem instanceof L||this._stackItem instanceof T)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(e,{noWordTransform:t=!1}={}){if(this._stackItem instanceof w||this._stackItem instanceof L||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 L||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);R(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 k(this.options,this._stackItem,{interRowLineBreaks:n,leadingLineBreaks:a,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:e,prefixAlign:t})}openListItem({prefix:e=""}={}){if(!(this._stackItem instanceof k))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 L(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);R(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&&R(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 x(this._stackItem)}openTableCell({maxColumnWidth:e}={}){if(!(this._stackItem instanceof x))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&&R(this._stackItem,a,t,n)}toString(){return N(this._stackItem.getRoot())}}function N(e){if(!(e instanceof w||e instanceof L||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 R(e,t,n,a){if(!(e instanceof w||e instanceof L||e instanceof T))throw new Error("Only blocks, list items and table cells can contain text.");const r=N(e),l=Math.max(e.stashedLineBreaks,n);e.inlineTextBuilder.clear(),r?e.rawText=r+"\n".repeat(l)+t:(e.rawText=t,e.leadingLineBreaks=l),e.stashedLineBreaks=a}function P(e,t){return t?P(t.transform(e),t.next):e}var H=n(72510);function V(e={}){const t=e.selectors.filter((e=>!e.format));if(t.length)throw new Error("Following selectors have no specified format: "+t.map((e=>`\`${e.selector}\``)).join(", "));const n=new l.bA(e.selectors.map((e=>[e.selector,e]))).build(o);"function"!==typeof e.encodeCharacters&&(e.encodeCharacters=function(e){if(!e||0===Object.keys(e).length)return;const t=Object.entries(e).filter((([,e])=>!1!==e)),n=new RegExp(t.map((([e])=>{return`(${t=[...e][0],t.replace(/[\s\S]/g,(e=>"\\u"+e.charCodeAt().toString(16).padStart(4,"0")))})`;var t})).join("|"),"g"),a=t.map((([,e])=>e)),r=(e,...t)=>a[t.findIndex((e=>e))];return e=>e.replace(n,r)}(e.encodeCharacters));const a=new l.bA(e.baseElements.selectors.map(((e,t)=>[e,t+1]))).build(o);function r(t){return function(e,t,n){const a=[];function r(e,r){r=[...r].slice(0,t.limits.maxChildNodes);for(const l of r){if(!(0,H.vq)(l))continue;const r=n.pick1(l);if(r>0?a.push({selectorIndex:r,element:l}):l.childNodes&&e([...l.childNodes]),a.length>=t.limits.maxBaseElements)return}}const l=u(t.limits.maxDepth,r);l(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 i=u(e.limits.maxDepth,O,(function(t,n){n.addInline(e.limits.ellipsis||"")}));return function(t,a=void 0){return function(e,t,n,a,r,l){const o=r([...e.childNodes]),i=new M(n,a,t);return l(o,i),i.toString()}(t,a,e,n,r,i)}}function O(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);(0,a.formatters[t.format])(r,e,n,t.options||{});break}}}var j=n(35574);function D(e,t,n,a){}function Z(e,t,n,a){n.addLiteral(a.string||"")}function F(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),n.addLiteral(a.string||""),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function z(e,t,n,a){t([...e.childNodes],n)}function W(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),t([...e.childNodes],n),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function q(e){return(0,j.Ll)(e)}function $(e){return`</${e.tagName.toLoserCase()}>`}function U(e,t,n,a){n.startNoWrap(),n.addLiteral(q(e)),n.stopNoWrap(),t([...e.childNodes],n),n.startNoWrap(),n.addLiteral($(e)),n.stopNoWrap()}function G(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral(q(e)),n.stopNoWrap(),t([...e.childNodes],n),n.startNoWrap(),n.addLiteral($(e)),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function X(e,t,n,a){n.startNoWrap(),n.addLiteral((0,H.b6)(e)),n.stopNoWrap()}function K(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral((0,H.b6)(e)),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function Y(e,t,n,a){n.addLiteral(a.prefix||""),t([...e.childNodes],n),n.addLiteral(a.suffix||"")}function J(e,t){return e[t]||(e[t]=[]),e[t]}function Q(e,t=0){for(;e[t];)t++;return t}function ee(e,t,n,a){for(let r=0;r<e.rowspan;r++){const l=J(t,n+r);for(let t=0;t<e.colspan;t++)l[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 l=e.length,o=[0];for(let c=0;c<l;c++){const n=J(a,c),l=e[c];let i=0;for(let e=0;e<l.length;e++){const r=l[e];i=Q(n,i),ee(r,a,c,i),i+=r.colspan,r.lines=r.text.split("\n");const s=r.lines.length;ne(o,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,l>r?l:r);const i=[],s=[0];for(let c=0;c<r;c++){let e,t=0;const r=Math.min(l,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],l=o[t]+n;i[l]=(i[l]||"").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=o[t];i[e]=i[e]||"",t++}}return i.join("\n")}function re(e,t,n,a){n.addLineBreak()}function le(e,t,n,a){n.addWordBreakOpportunity()}function oe(e,t,n,a){n.openBlock({leadingLineBreaks:a.leadingLineBreaks||2}),n.addInline("-".repeat(a.length||n.options.wordwrap||40)),n.closeBlock({trailingLineBreaks:a.trailingLineBreaks||2})}function ie(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 pe(e,t,n,a,r){const l="function"===typeof t?t(e,a,r):e;return"/"===l[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,"/")+l:l}function ue(e,t,n,a){const r=e.getAttribute("alt")||"",l=e.getAttribute("src")?pe(e.getAttribute("src"),a.pathRewrite,a.baseUrl,n.metadata,e):"",o=l?r?r+" "+me(l,a.linkBrackets):me(l,a.linkBrackets):r;n.addInline(o,{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=pe(t,a.pathRewrite,a.baseUrl,n.metadata,e),t)}();if(r){let l="";n.pushWordTransform((e=>(e&&(l+=e),e))),t([...e.childNodes],n),n.popWordTransform();a.hideLinkHrefIfSameAsText&&r===l||n.addInline(l?" "+me(r,a.linkBrackets):r,{noWordTransform:!0})}else t([...e.childNodes],n)}function ge(e,t,n,a,r){const l="li"===f(e,["parent","name"]);let o=0;const i=([...e.childNodes]||[]).filter((e=>!(0,H.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=l?r().trimStart():r();return n.length>o&&(o=n.length),{node:e,prefix:n}}));if(i.length){n.openList({interRowLineBreaks:1,leadingLineBreaks:l?1:a.leadingLineBreaks||2,maxPrefixLength:o,prefixAlign:"left"});for(const{node:e,prefix:a}of i)n.openListItem({prefix:a}),t([e],n),n.closeListItem();n.closeList({trailingLineBreaks:l?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,l;let o=Number((null===(r=e.getAttribute)||void 0===r?void 0:r.call(e,"start"))||"1");const i=function(e="1"){switch(e){case"a":return e=>C(e,"a");case"A":return e=>C(e,"A");case"i":return e=>y(e).toLowerCase();case"I":return e=>y(e);default:return e=>e.toString()}}(null===(l=e.getAttribute)||void 0===l?void 0:l.call(e,"type"));return ge(e,t,n,a,(()=>" "+i(o++)+". "))}function Ce(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(" "),l=(e.getAttribute("id")||"").split(" ");return r.some((e=>n.includes(e)))||l.some((e=>a.includes(e)))}(e,n.options.tables)?ve(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 ve(e,t,n,a){function r(e){const r=e.getAttribute("colspan")||1,l=e.getAttribute("rowspan")||1;n.openTableCell({maxColumnWidth:a.maxColumnWidth}),t([...e.childNodes],n),n.closeTableCell({colspan:r,rowspan:l})}n.openTable(),[...e.childNodes].forEach((function e(t){var l;if(!(0,H.vq)(t))return;const o=!1!==a.uppercaseHeaderCells?e=>{n.pushWordTransform((e=>e.toUpperCase())),r(e),n.popWordTransform()}:r;switch(null===(l=t.tagName)||void 0===l?void 0:l.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,H.vq)(e))switch(e.tagName.toLowerCase()){case"th":o(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"},ye=(e,t,n)=>[...t],_e=(e,t,n)=>e.some((e=>"object"===typeof e))?((e,t)=>[...e,...t])(e,t):ye(e,t,n);function Ae(e={}){return(e=p()(Ee,e,{arrayMerge:ye,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),V(e)}function we(e,t={},n=void 0){return Ae(t)(e,n)}},80599:(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())}}},39244:(e,t,n)=>{"use strict";n.d(t,{X:()=>k});var a=n(83304);let r;!function(e){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"}(r||(r={}));class l{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===C||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 o="!".charCodeAt(0),i="-".charCodeAt(0),s="<".charCodeAt(0),c=">".charCodeAt(0),d="/".charCodeAt(0),m="=".charCodeAt(0),p='"'.charCodeAt(0),u="'".charCodeAt(0),h="\n".charCodeAt(0),g="\r".charCodeAt(0),b="\f".charCodeAt(0),f=" ".charCodeAt(0),C="\t".charCodeAt(0),v={"text/x-handlebars-template":!0,"text/html":!0};function E(e,t=0,n=a.S5.WithinContent,h=!1){const g=new l(e,t);let b,f,C,E,y,_=n,A=0,w=r.Unknown;function k(){return g.advanceIfRegExp(/^[_:a-zA-Z][_:\w-.\d]*/).toLowerCase()}function L(e,t,n){return w=t,A=e,b=n,t}function S(){const e=g.pos();if(g.eos())return L(e,r.EOS);let t;switch(_){case a.S5.WithinComment:return g.advanceIfChars([i,i,c])?(_=a.S5.WithinContent,L(e,r.EndCommentTag)):(g.advanceUntilChars([i,i,c]),L(e,r.Comment));case a.S5.WithinDoctype:return g.advanceIfChar(c)?(_=a.S5.WithinContent,L(e,r.EndDoctypeTag)):(g.advanceUntilChar(c),L(e,r.Doctype));case a.S5.WithinContent:if(g.advanceIfChar(s)){if(!g.eos()&&g.peekChar()===o){if(g.advanceIfChars([o,i,i]))return _=a.S5.WithinComment,L(e,r.StartCommentTag);if(g.advanceIfRegExp(/^!doctype/i))return _=a.S5.WithinDoctype,L(e,r.StartDoctypeTag)}return g.advanceIfChar(d)?(_=a.S5.AfterOpeningEndTag,L(e,r.EndTagOpen)):(_=a.S5.AfterOpeningStartTag,L(e,r.StartTagOpen))}return g.advanceUntilChar(s),L(e,r.Content);case a.S5.AfterOpeningEndTag:return k().length>0?(_=a.S5.WithinEndTag,L(e,r.EndTag)):g.skipWhitespace()?L(e,r.Whitespace,"Tag name must directly follow the open bracket."):(_=a.S5.WithinEndTag,g.advanceUntilChar(c),e<g.pos()?L(e,r.Unknown,"End tag name expected."):S());case a.S5.WithinEndTag:if(g.skipWhitespace())return L(e,r.Whitespace);if(g.advanceIfChar(c))return _=a.S5.WithinContent,L(e,r.EndTagClose);if(h&&g.peekChar()===s)return _=a.S5.WithinContent,L(e,r.EndTagClose,"Closing bracket missing.");t="Closing bracket expected.";break;case a.S5.AfterOpeningStartTag:return C=k(),y=void 0,E=void 0,C.length>0?(f=!1,_=a.S5.WithinTag,L(e,r.StartTag)):g.skipWhitespace()?L(e,r.Whitespace,"Tag name must directly follow the open bracket."):(_=a.S5.WithinTag,g.advanceUntilChar(c),e<g.pos()?L(e,r.Unknown,"Start tag name expected."):S());case a.S5.WithinTag:return g.skipWhitespace()?(f=!0,L(e,r.Whitespace)):f&&(E=g.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase(),E.length>0)?(_=a.S5.AfterAttributeName,f=!1,L(e,r.AttributeName)):g.advanceIfChars([d,c])?(_=a.S5.WithinContent,L(e,r.StartTagSelfClose)):g.advanceIfChar(c)?(_="script"===C?y&&v[y]?a.S5.WithinContent:a.S5.WithinScriptContent:"style"===C?a.S5.WithinStyleContent:a.S5.WithinContent,L(e,r.StartTagClose)):h&&g.peekChar()===s?(_=a.S5.WithinContent,L(e,r.StartTagClose,"Closing bracket missing.")):(g.advance(1),L(e,r.Unknown,"Unexpected character in tag."));case a.S5.AfterAttributeName:return g.skipWhitespace()?(f=!0,L(e,r.Whitespace)):g.advanceIfChar(m)?(_=a.S5.BeforeAttributeValue,L(e,r.DelimiterAssign)):(_=a.S5.WithinTag,S());case a.S5.BeforeAttributeValue:if(g.skipWhitespace())return L(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&&(y=n),_=a.S5.WithinTag,f=!1,L(e,r.AttributeValue);const l=g.peekChar();return l===u||l===p?(g.advance(1),g.advanceUntilChar(l)&&g.advance(1),"type"===E&&(y=g.getSource().substring(e+1,g.pos()-1)),_=a.S5.WithinTag,f=!1,L(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(),L(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()?L(e,r.Script):S();case a.S5.WithinStyleContent:return g.advanceUntilRegExp(/<\/style/i),_=a.S5.WithinContent,e<g.pos()?L(e,r.Styles):S()}return g.advance(1),_=a.S5.WithinContent,L(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),L(e,r.Unknown))},getTokenType:()=>w,getTokenOffset:()=>A,getTokenLength:()=>g.pos()-A,getTokenEnd:()=>g.pos(),getTokenText:()=>g.getSource().substring(A,g.pos()),getScannerState:()=>_,getTokenError:()=>b}}var y=n(80599),_=n(93607);function A(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 k{constructor(e){this.dataManager=e}parse(e,t=[]){var n;const a=E(e,void 0,void 0,!0),l=new _.b(0,e.length,[],void 0);l.type=_.Z.ROOT;let o,i=l,s=-1,c=null,d=a.scan();const m=()=>{if(!i.tag){const t=i.parent.children,n=t[t.length-2],a=e.substring(i.start,i.end);(null===n||void 0===n?void 0:n.type)===_.Z.HTML?(n.content=(n.content||"")+a,n.end=i.end,t.splice(t.length-1,1)):(i.type=_.Z.HTML,i.content=a,i.children=[]),i.type=_.Z.HTML}i=i.parent},p=new w(e,_.Z.COMMENT),u=new w(e,_.Z.DOCTYPE),h=e=>{i.children.push(e)};for(;d!==r.EOS;){switch(d){case r.StartDoctypeTag:u.start(a.getTokenOffset(),a.getTokenEnd(),i);break;case r.EndDoctypeTag:{const t=i.lastChild,n=u.node;if(!n)throw new Error("");const r=t?t.end:void 0!==i.startTagEnd?i.startTagEnd:i.start;if(r!==n.start){const t=e.substring(r,n.start);if(t){const e=new _.b(r,n.start,[],i);e.type=_.Z.HTML,e.content=t,h(e)}}u.finish(a.getTokenOffset(),a.getTokenLength());break}case r.StartCommentTag:p.start(a.getTokenOffset(),a.getTokenEnd(),i);break;case r.EndCommentTag:{const t=i.lastChild,n=p.node;if(!n)throw new Error("");const r=t?t.end:void 0!==i.startTagEnd?i.startTagEnd:i.start;if(r!==n.start){const t=e.substring(r,n.start);if(t){const e=new _.b(r,n.start,[],i);e.type=_.Z.HTML,e.content=t,h(e)}}p.finish(a.getTokenOffset(),a.getTokenLength());break}case r.StartTagOpen:const t=i.lastChild,n=new _.b(a.getTokenOffset(),e.length,[],i),l=t?t.end:void 0!==i.startTagEnd?i.startTagEnd:i.start;if(l!==n.start){const t=e.substring(l,n.start);if(t){const e=new _.b(l,n.start,[],i);e.type=_.Z.HTML,e.content=t,h(e)}}h(n),i=n;break;case r.StartTag:i.tag=a.getTokenText();break;case r.StartTagClose:i.parent&&(i.end=a.getTokenEnd(),a.getTokenLength()?(i.startTagEnd=a.getTokenEnd(),i.tag&&this.dataManager.isVoidElement(i.tag)&&(i.closed=!0,m())):m());break;case r.StartTagSelfClose:i.parent&&(i.closed=!0,i.end=a.getTokenEnd(),i.startTagEnd=a.getTokenEnd(),m());break;case r.EndTagOpen:s=a.getTokenOffset(),o=void 0;break;case r.EndTag:o=a.getTokenText().toLowerCase();break;case r.EndTagClose:let d=i;for(;!d.isSameTag(o)&&d.parent;)d=d.parent;if(d.parent){const t=i.lastChild,n=t?t.end:void 0===i.startTagEnd?i.start:i.startTagEnd;if(n!==s){const t=e.substring(n,s);if(t){const e=new _.b(n,s,[],i);e.type=_.Z.HTML,e.content=t,h(e)}}for(;i!==d;)i.end=s,i.closed=!1,m();i.closed=!0,i.endTagStart=s,i.end=a.getTokenEnd(),m()}break;case r.AttributeName:{c=a.getTokenText();let e=i.attributes;e||(i.attributes=e={}),e[c]=null;break}case r.AttributeValue:{const e=a.getTokenText(),t=i.attributes;t&&c&&(t[c]=A(e),c=null);break}}d=a.scan()}for(;i.parent;)i.end=e.length,i.closed=!1,m();p.hasNode,p.finish(e.length);const g=(null===(n=l.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,[],l);n.type=_.Z.HTML,n.content=t,h(n)}}return{roots:l.children,findNodeBefore:l.findNodeBefore.bind(l),findNodeAt:l.findNodeAt.bind(l)}}}const L=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr","vk-snippet-end"];new k(new y.H(L))},93607:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r,b:()=>o});var a=n(35574);let r;!function(e){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"}(r||(r={}));const l=e=>e.type===r.HTML?e.start-1:e.start;class o{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}get root(){return this.parent?this.parent.root:this}constructor(e,t,n,a){this.start=e,this.end=t,this.children=n,this.parent=a,this.content=void 0,this.type=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<=l(t)))-1;if(t>=0){const n=this.children[t];if(e>l(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<=l(t)))-1;if(t>=0){const a=this.children[t];if(e>=l(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){let 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 o(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}}},35574:(e,t,n)=>{"use strict";n.d(t,{Ll:()=>o,i8:()=>i,n1:()=>a});n(93607);const a=new Set(["area","br","col","embed","hr","img","input","link","meta","param","vk-snippet-end"]);const r=Object.create(null);function l(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 o(e,t){if(e.start!==e.startTagEnd||t){var n;const t=(null===(n=e.tag)||void 0===n?void 0:n.toLowerCase())||"div",a=function(e){var t;const n=null===(t=e.tag)||void 0===t?void 0:t.toLowerCase();let a="";if(n){const t=e.attributes;if(t){const e=Object.keys(t);for(const r of e){const e=null===t[r]?"":t[r];"string"===typeof e&&(a+=""!==e||"em"===r||l(n,r)?` ${r}="${e.replaceAll('"',"'")}"`:` ${r}`)}}}return a}(e);return"vk-snippet-end"===t?`<${t}${a}/>`:`<${t}${a}>`}return""}function i(e,t){let n=0,a=e.length;if(0===a)return 0;for(;n<a;){let r=Math.floor((n+a)/2);t(e[r])?a=r:n=r+1}return n}},72717:(e,t,n)=>{"use strict";n.d(t,{R:()=>s});var a=n(99282),r=n(98792),l=n(19581),o=n(61631);class i 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 o.j{_nextTickHandler(){(0,l.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 i(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,l.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)}}},82899:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});var a=n(72510);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))}}},19581:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(99282);let r=0;const l=new Array(1e3);function o(){for(let e=0;e<r;e+=2){(0,l[e])(...l[e+1]),l[e]=void 0,l[e+1]=void 0}r=0}const i=function(){let e=0;const t=new MutationObserver(o),n=document.createTextNode("");return t.observe(n,{characterData:!0}),()=>{n.data=String(e=++e%2)}}();const s=new a.vl({onFirstListenerAdd:function e(){!function(e,...t){l[r]=e,l[r+1]=t,r+=2,2===r&&i()}((()=>{s.hasListeners()&&(s.fire(),e())}))}}),c=s.once;const d=c},65053:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const a=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e)),r=new Set(["https:","http:","file:"]),l=e=>{try{const{protocol:t}=new URL(e);return t.endsWith(":")&&!t.includes(".")&&!r.has(t)}catch{return!1}},o=(e,{stripHash:t})=>{var n,a;const r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:l,data:o,hash:i}=r.groups;const s=l.split(";");i=t?"":i;let c=!1;"base64"===s[s.length-1]&&(s.pop(),c=!0);const d=null!==(n=null===(a=s.shift())||void 0===a?void 0:a.toLowerCase())&&void 0!==n?n:"",m=[...s.map((e=>{let[t,n=""]=e.split("=").map((e=>e.trim()));return"charset"===t&&(n=n.toLowerCase(),"us-ascii"===n)?"":`${t}${n?`=${n}`:""}`})).filter(Boolean)];return c&&m.push("base64"),(m.length>0||d&&"text/plain"!==d)&&m.unshift(d),`data:${m.join(";")},${c?o.trim():o}${i?`#${i}`:""}`};function i(e,t){if("string"!==typeof(t={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,...t}).defaultProtocol||t.defaultProtocol.endsWith(":")||(t.defaultProtocol=`${t.defaultProtocol}:`),e=e.trim(),/^data:/i.test(e))return o(e,t);if(l(e))return e;const n=e.startsWith("//");!n&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));const r=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===r.protocol&&(r.protocol="http:"),t.forceHttps&&"http:"===r.protocol&&(r.protocol="https:"),t.stripAuthentication&&(r.username="",r.password=""),t.stripHash?r.hash="":t.stripTextFragment&&(r.hash=r.hash.replace(/#?:~:text.*?$/i,"")),r.pathname){const e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g;let t=0,n="";for(;;){const a=e.exec(r.pathname);if(!a)break;const l=a[0],o=a.index;n+=r.pathname.slice(t,o).replace(/\/{2,}/g,"/"),n+=l,t=o+l.length}n+=r.pathname.slice(t,r.pathname.length).replace(/\/{2,}/g,"/"),r.pathname=n}if(r.pathname)try{r.pathname=decodeURI(r.pathname)}catch{}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=r.pathname.split("/");const n=e[e.length-1];a(n,t.removeDirectoryIndex)&&(e=e.slice(0,-1),r.pathname=e.slice(1).join("/")+"/")}if(r.hostname&&(r.hostname=r.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(r.hostname)&&(r.hostname=r.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(const l of[...r.searchParams.keys()])a(l,t.removeQueryParameters)&&r.searchParams.delete(l);if(Array.isArray(t.keepQueryParameters)||!0!==t.removeQueryParameters||(r.search=""),Array.isArray(t.keepQueryParameters)&&t.keepQueryParameters.length>0)for(const l of[...r.searchParams.keys()])a(l,t.keepQueryParameters)||r.searchParams.delete(l);if(t.sortQueryParameters){r.searchParams.sort();try{r.search=decodeURIComponent(r.search)}catch{}}t.removeTrailingSlash&&(r.pathname=r.pathname.replace(/\/$/,"")),t.removeExplicitPort&&r.port&&(r.port="");const i=e;return e=r.toString(),t.removeSingleSlash||"/"!==r.pathname||i.endsWith("/")||""!==r.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===r.pathname)&&""===r.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),n&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}},58521:(e,t,n)=>{"use strict";n.d(t,{hI:()=>C,u$:()=>b,KU:()=>g,XB:()=>f,of:()=>v});var a=n(96651),r=n(3792),l=n(76233);let o,i,s,c;!function(e){let t,n,a,r;t||(t=e.TasksControllerCreateTask||(e.TasksControllerCreateTask={})),n||(n=e.TasksControllerGetTask||(e.TasksControllerGetTask={})),a||(a=e.TasksControllerGetEmail||(e.TasksControllerGetEmail={})),r||(r=e.TasksControllerGetEmailHtml||(e.TasksControllerGetEmailHtml={}))}(o||(o={})),function(e){let t,n,a,r,l,o;t||(t=e.ManParseControllerLogoGen||(e.ManParseControllerLogoGen={})),n||(n=e.ManParseControllerSite||(e.ManParseControllerSite={})),a||(a=e.ManParseControllerColor||(e.ManParseControllerColor={})),r||(r=e.ManParseControllerStyle||(e.ManParseControllerStyle={})),l||(l=e.ManParseControllerColorScheme||(e.ManParseControllerColorScheme={})),o||(o=e.ManParseControllerImage||(e.ManParseControllerImage={}))}(i||(i={})),function(e){let t,n;t||(t=e.MaintenanceControllerReloadBlocks||(e.MaintenanceControllerReloadBlocks={})),n||(n=e.MaintenanceControllerReloadUnsplashTopics||(e.MaintenanceControllerReloadUnsplashTopics={}))}(s||(s={})),function(e){e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain"}(c||(c={}));class d{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={[c.Json]:e=>null===e||"object"!==typeof e&&"string"!==typeof e?e:JSON.stringify(e),[c.Text]:e=>null!==e&&"string"!==typeof e?JSON.stringify(e):e,[c.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),[c.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:l,baseUrl:o,cancelToken:i,extraQuery:s,...d})=>{const m=("boolean"===typeof t?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},p=this.mergeRequestParams(d,m);s&&(r=r?{...r,...s}:s);const u=r&&this.toQueryString(r),h=this.contentFormatters[a||c.Json],g=l||p.format,b=new Request(`${o||this.baseUrl||""}${n}${u?`?${u}`:""}`,{...p,headers:{...p.headers||{},...a&&a!==c.FormData?{"Content-Type":a}:{}},signal:(i?this.createAbortSignal(i):p.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 i&&this.abortControllers.delete(i),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 m extends d{constructor(...e){super(...e),this.tasks={tasksControllerCreateTask:(e,t={})=>this.request({path:"/tasks",method:"POST",body:e,type:c.Json,...t}),tasksControllerGetTask:(e,t={})=>this.request({path:`/tasks/${e}`,method:"GET",...t}),tasksControllerGetEmail:(e,t={})=>this.request({path:`/tasks/${e}/email`,method:"GET",...t}),tasksControllerGetEmailHtml:(e,t={})=>this.request({path:`/tasks/${e}/html`,method:"GET",...t})},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})}}}var p=n(74029),u=n(2604),h=n(98173);const g=e=>r.di.getInstance(e,p.Pz),b=e=>r.di.getOrCreateInstance(e,p.Bl,(()=>new m({baseUrl:"https://ai-mail.emcdn.ru"}))),f=()=>{const e=(0,u.Pj)();return(0,h.useMemo)((()=>r.di.getInstance(e,p.Pz)),[e])};function C(e){return(t,n,o)=>{const i=r.di.getInstance(n,l.no);return(0,a.fetchBaseQuery)({...e,fetchFn:(null===i||void 0===i?void 0:i.execute)||fetch})(t,n,o)}}const v=()=>{const e=(0,u.Pj)();return(0,h.useMemo)((()=>r.di.getInstance(e,p.M4)),[e])}},13668:(e,t,n)=>{"use strict";n.d(t,{Kp:()=>a,Sb:()=>l,_1:()=>r});const a="SAVE",r="SHOW",l="NOTIFY"},66330:(e,t,n)=>{"use strict";n.d(t,{Y:()=>x});var a=n(98173),r=n(94043),l=n(12543),o=n(28973),i=n(12005),s=n(2604),c=n(61334),d=n.n(c),m=n(47014),p=n(32947),u=n(16390),h=n(64909),g=n(73180),b=n(90614),f=n(15626),C=n(3326);const v=n(41735).default;var E=n(80148),y=n(76550);const _="em_locale",A="em_ant_locale",w="em_mergeTags_locale",k=e=>{try{return JSON.parse(localStorage.getItem(e)||"")}catch{return null}},L=(e,t)=>{const n=k(e);return n?(localStorage.removeItem(e),localStorage.setItem(t,JSON.stringify(n)),n):null},S=()=>{var e,t;return(null===(e=k(A))||void 0===e?void 0:e.data)||(null===(t=L("ant_locale",A))||void 0===t?void 0:t.data)||v},x=({children:e})=>{const t=(0,E.NF)(),c=(0,s.wA)(),v=(0,h.hN)(),x=(0,s.d4)(m.C1),T=(0,s.d4)(m.B),[B,I]=(0,i.HO)(),[M,N]=(0,i.Yj)(),R=(0,b.ml)(f.AZ.READ_LOCALE),P=T||(p.EW.isPlugin?void 0:"ru_RU"),[H,V]=(0,a.useState)((()=>(0,r.hU)())),[O,j]=(0,a.useState)(S),[D,Z]=(0,a.useState)(!0),[F,z]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{const e=k(_)||L("locale",_);if(null!==e&&void 0!==e&&e.data&&(V((0,r.hU)(e.data)),Z(!1)),!p.EW.isPlugin){const e=k(w);null!==e&&void 0!==e&&e.data&&c((0,u.Kj)(e.data))}}),[]),(0,a.useEffect)((()=>{P&&n(77778)(`./${"uk"===P?"uk_UA":P}.js`).then((e=>{const t=e.default;j((n=>n.locale!==t.locale?(localStorage.setItem(A,JSON.stringify(e.default)),t):n))})).catch((e=>{}))}),[P,null===x||void 0===x?void 0:x.id]),(0,a.useEffect)((()=>{!p.EW.isPlugin&&P&&n(93718)(`./${"uk"===P?"uk_UA":P}.ts`).then((e=>{c((0,u.Kj)(e.default)),localStorage.setItem(w,JSON.stringify(e.default))}))}),[P,c,null===x||void 0===x?void 0:x.id]),(0,g.ZC)((([e])=>{!e&&I.error&&v.fromError("GET_LOCALES_ERROR",void 0,I.error)}),[I.error,v]),(0,g.ZC)((([e])=>{P&&e!==P&&R.fire(P).then((([e])=>{if(e){var n;const t=null===(n=d()(e,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===n?void 0:n.locale_data.default;V((0,r.hU)(t)),z(!0)}else p.EW.isPlugin&&t.getInstance(y.Ef)?z(!0):I.isSuccess?M({id:P}):B()}))}),[P,R,null===x||void 0===x?void 0:x.id]),(0,a.useEffect)((()=>{if(I.isSuccess&&P){const e=I.data.find((([e])=>e===P));if(!e)return void z(!0);const t=k(_);(null===t||void 0===t?void 0:t.id)===P&&e[1]<=t.time?z(!0):M({id:P})}}),[P,I,M,null===x||void 0===x?void 0:x.id]),(0,g.ZC)((([e])=>{!e&&N.isError&&v.fromError("GET_LOCALE_ERROR",void 0,N.isError)}),[N.isError,v]),(0,a.useEffect)((()=>{if(I.isSuccess&&N.isSuccess){var e,t;if((null===(e=N.originalArgs)||void 0===e?void 0:e.id)!==P)return;const n=N.data,a=I.data.find((([e])=>e===P)),l=null===(t=d()(n,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===t?void 0:t.locale_data.default;localStorage.setItem(_,JSON.stringify({id:P,time:(null===a||void 0===a?void 0:a[1])||Date.now(),data:l})),V((0,r.hU)(l)),z(!0)}}),[N,P,I,null===x||void 0===x?void 0:x.id]),a.createElement(l.CY,{i18n:H},a.createElement(C.r4.Provider,{value:!D||F},a.createElement(o.Ay,{locale:O},e)))}},3326:(e,t,n)=>{"use strict";n.d(t,{LG:()=>i,ZU:()=>c,cR:()=>l,fh:()=>o,or:()=>r,r4:()=>s});var a=n(98173);const r=(0,a.createContext)({element:void 0}),l=()=>{var e;return null===(e=(0,a.useContext)(r))||void 0===e?void 0:e.element},o=(0,a.createContext)(void 0),i=()=>(0,a.useContext)(o),s=(0,a.createContext)(!1),c=()=>(0,a.useContext)(s)},63233:(e,t,n)=>{"use strict";n.d(t,{A:()=>K});var a=n(16791),r=n(78915),l=n(46767),o=n(52779),i=n(92485),s=n(98119),c=n(65716),d=n(83027),m=n(98845),p=n(40835),u=n(19992),h=n(73668),g=n(79965),b=n(94160),f=n(6193),C=n(47491),v=n(90925),E=n(30397),y=n(64706),_=n(38251),A=n(23424),w=n(79253),k=n(15812),L=n(1047),S=n(54838),x=n(22536),T=n(12741),B=n(39206),I=n(47014),M=n(38540),N=n(61058),R=n(68984),P=n(12005),H=n(8111),V=n(705),O=n(92960),j=n(33932),D=n(70875),Z=n(59089),F=n(871),z=n(2952),W=n(80772),q=n(84572),$=n(16390),U=n(3792),G=n(80148);const X=(0,a.HY)({[U.di.reducerPath]:U.di.reducer,[O.Z8.reducerPath]:O.Z8.reducer,[P.Ad.reducerPath]:P.Ad.reducer,[r.Q2.reducerPath]:r.Q2.reducer,[o.S.reducerPath]:o.S.reducer,[i.k.reducerPath]:i.k.reducer,[l.OV.reducerPath]:l.OV.reducer,[s.yR.reducerPath]:s.yR.reducer,[c.Nq.reducerPath]:c.Nq.reducer,[d.kE.reducerPath]:d.kE.reducer,[m.GY.reducerPath]:m.GY.reducer,[R.VM.reducerPath]:R.VM.reducer,[p.yH.reducerPath]:p.yH.reducer,[u.B.reducerPath]:u.B.reducer,[h.f.reducerPath]:h.f.reducer,[H.Jg.reducerPath]:H.Jg.reducer,[F.CL.reducerPath]:F.CL.reducer,[z.tO.reducerPath]:z.tO.reducer,[V.vx.reducerPath]:V.vx.reducer,[g.M.reducerPath]:g.M.reducer,[b.F.reducerPath]:b.F.reducer,[f.KA.reducerPath]:f.KA.reducer,[C.Sd.reducerPath]:C.Sd.reducer,[v.y.reducerPath]:v.y.reducer,[A.Ay.name]:A.Ay.reducer,[w.Ay.name]:w.Ay.reducer,[k.Ay.name]:k.Ay.reducer,[L.Ay.name]:L.Ay.reducer,[S.Ay.name]:S.Ay.reducer,[x.Ay.name]:x.Ay.reducer,[T.Ay.name]:T.Ay.reducer,[B.Ay.name]:B.Ay.reducer,[I.Ay.name]:I.Ay.reducer,[M.Ay.name]:M.Ay.reducer,[W.Ay.name]:W.Ay.reducer,[N.Ay.name]:N.Ay.reducer,[j.Zs.reducerPath]:j.Zs.reducer,[D.Uu.reducerPath]:D.Uu.reducer,[q.Ay.name]:q.Ay.reducer,[Z.So.reducerPath]:Z.So.reducer,[$.Ay.name]:$.Ay.reducer,[E.C.reducerPath]:E.C.reducer,[y.N.reducerPath]:y.N.reducer,[_.U8.reducerPath]:_.U8.reducer}),K=(e,t)=>"authorizationApi/resetApiState"===t.type?X({[G.IP]:e[G.IP],[P.Ad.reducerPath]:e[P.Ad.reducerPath]},t):X(e,t)},12133: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, Roboto, 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, Roboto, 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>`},67558: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; height: 41px; font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; color: #FFFFFF; font-size: 16px; line-height: 41px; text-decoration: none; white-space: nowrap;">\n ${e("Button")}\n </a>\n </td>\n </tr>\n </table>\n</td></tr></table>`},74372: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>`},40845: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 #EEEEEE;"> </td></tr></table>'},62315: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, Roboto, Arial, sans-serif; font-size: 24px; line-height: 32px; color: #333333;"><strong>${e("Header text")}</strong></div>\n</td></tr></table>`},80465: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, Roboto, 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, Roboto, 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>`},75995: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, Roboto, 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, Roboto, 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>`},66930: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>'},45848: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">\n <tr>\n <td align="center" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${e("Column")} 1</div>\n </td>\n <td align="center" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${e("Column")} 2</div>\n </td>\n <td align="center" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${e("Column")} 3</div>\n </td>\n </tr>\n</table>`},34021: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, Roboto, 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>`},92048: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'},31557: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>'},99512:(e,t,n)=>{"use strict";n.d(t,{AO:()=>Z,Ai:()=>u,NW:()=>M,RH:()=>P,RM:()=>p,TW:()=>O,Vz:()=>H,Ze:()=>F,ax:()=>V,lS:()=>R,ok:()=>j,uE:()=>N,xc:()=>D,yy:()=>B});var a=n(98173),r=n(49823),l=n(48300),o=n(10267),i=n(63346),s=n(89715),c=n(61657),d=n(91447),m=n(32947);const p=({linkProtocol:e})=>{switch(e){case"https://":default:return a.createElement(l.A,null);case"mailto:":return a.createElement(o.A,null);case"tel:":return a.createElement(i.A,null);case"sms:":return a.createElement(s.A,null);case"ftp://":return a.createElement(c.A,null);case"skype:":return a.createElement(d.A,null)}},u=({handleLinkProtocolsChange:e,linkProtocol:t,__:n})=>a.createElement(r.A,{style:{width:90,textAlign:"left"},value:t,onChange:e,getPopupContainer:e=>e.parentNode,options:[{value:"https://",label:n("Site")},{value:"mailto:",label:n("E-mail")},{value:"tel:",label:n("Phone")},{value:"sms:",label:n("SMS")},{value:"ftp://",label:n("File")},{value:"skype:",label:n("Skype")},{value:"viber:",label:n("Viber")},{value:"",label:n("Other")}]}),{mobileBorderRadiusAll:h,mobileBorderRadiusTopLeft:g,mobileBorderRadiusBottomLeft:b,mobileBorderRadiusTopRight:f,mobileBorderRadiusBottomRight:C,borderRadiusBottomRight:v,borderRadiusTopRight:E,borderRadiusBottomLeft:y,borderRadiusTopLeft:_,alt:A,src:w,title:k,link:L,borderRadiusAll:S,imgReplacer:x,expanded:T}={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"},B={paddingTop:"top",paddingLeft:"left",paddingRight:"right",paddingBottom:"bottom",mobilePaddingTop:"top",mobilePaddingLeft:"left",mobilePaddingRight:"right",mobilePaddingBottom:"bottom"},I={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},M={mobileBorderRadiusAll:"all",mobileBorderRadiusTopLeft:"topLeft",mobileBorderRadiusBottomLeft:"bottomLeft",mobileBorderRadiusTopRight:"topRight",mobileBorderRadiusBottomRight:"bottomRight"},N={all:"borderAll",top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},R={all:"mobileBorderAll",top:"mobileBorderTop",right:"mobileBorderRight",bottom:"mobileBorderBottom",left:"mobileBorderLeft"},P={width:null,style:null,color:null},H={borderAll:"all",borderTop:"top",borderRight:"right",borderBottom:"bottom",borderLeft:"left"},V={mobileBorderAll:"all",mobileBorderTop:"top",mobileBorderRight:"right",mobileBorderBottom:"bottom",mobileBorderLeft:"left"},O=(e,t)=>e.startsWith("mailto:")?"mailto:":e.startsWith("tel:")?"tel:":e.startsWith("sms:")?"sms:":e.startsWith("ftp://")?"ftp://":e.startsWith("skype:")?"skype:":e.startsWith("viber:")?"viber:":t,j=e=>e||(0===e?"0":""),D=e=>e&&"auto"!==e?e:0===e?"0":"";function Z(e){var t,n,a,r,l,o,i,s,c,d,m,p,u,h,g,b,f,C,v,E;const y={...e,link:e.link?e.link:"https://",borderRadiusAll:j(null===(t=e.borderRadius)||void 0===t?void 0:t.all),borderRadiusTopLeft:j(null===(n=e.borderRadius)||void 0===n?void 0:n.topLeft),borderRadiusBottomLeft:j(null===(a=e.borderRadius)||void 0===a?void 0:a.bottomLeft),borderRadiusTopRight:j(null===(r=e.borderRadius)||void 0===r?void 0:r.topRight),borderRadiusBottomRight:j(null===(l=e.borderRadius)||void 0===l?void 0:l.bottomRight),mobileBorderRadiusAll:j(null===(o=e.mobileBorderRadius)||void 0===o?void 0:o.all),mobileBorderRadiusTopLeft:j(null!==(null===(i=e.mobileBorderRadius)||void 0===i?void 0:i.topLeft)?null===(s=e.mobileBorderRadius)||void 0===s?void 0:s.topLeft:null===(c=e.mobileBorderRadius)||void 0===c?void 0:c.all),mobileBorderRadiusBottomLeft:j(null!==(null===(d=e.mobileBorderRadius)||void 0===d?void 0:d.bottomLeft)?null===(m=e.mobileBorderRadius)||void 0===m?void 0:m.bottomLeft:null===(p=e.mobileBorderRadius)||void 0===p?void 0:p.all),mobileBorderRadiusTopRight:j(null!==(null===(u=e.mobileBorderRadius)||void 0===u?void 0:u.topRight)?null===(h=e.mobileBorderRadius)||void 0===h?void 0:h.topRight:null===(g=e.mobileBorderRadius)||void 0===g?void 0:g.all),mobileBorderRadiusBottomRight:j(null!==(null===(b=e.mobileBorderRadius)||void 0===b?void 0:b.bottomRight)?null===(f=e.mobileBorderRadius)||void 0===f?void 0:f.bottomRight:null===(C=e.mobileBorderRadius)||void 0===C?void 0:C.all),show:e.show?e.show:"all",altSrc:e.src};var _,A;e.video&&(y.videoPlayButton=null!==(_=e.video.playButton)&&void 0!==_?_:"youtube_red",y.videoSource=null!==(A=e.video.source)&&void 0!==A?A:"");if((null===(v=e.carouselImages)||void 0===v?void 0:v.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))),y.images=t}if((null===(E=e.sections)||void 0===E?void 0:E.length)>0){var k;const t=[];null===(k=e.sections)||void 0===k||k.map(((e,n)=>(t.push({[`expanded_${n}`]:e.expanded}),!0))),y.sections=t}return y}function F(e,t,n){const a=n.hasOwnProperty("images"),r=n.hasOwnProperty("sections"),l=Object.keys(a?n.images:r?n.sections:n)[0],o=a?n.images:r?n.sections:n;let i={};const s=t.getFieldsValue(!0);switch(l.split("_")[0]){case k:case w:case A:case x:if(a){const t=[...e.carouselImages];t[l.split("_")[1]][l.split("_")[0]]=o[l],i={carouselImages:t}}else i=o;break;case T:if(r){const t=[...e.sections];t[l.split("_")[1]][l.split("_")[0]]=o[l],i={sections:t}}break;case L:let n=o[l];"https://http"===n.substring(0,12)&&(n=n.substring(8,n.length)),e.type===m.bV.CAROUSEL?(i.carouselImages=e.carouselImages,a?(t.setFieldValue(["images",[L+"_"+l.split("_")[1]]],n),i.carouselImages[l.split("_")[1]].link=n,i.link="",t.setFieldValue(L,"https://")):(e.carouselImages.forEach(((e,a)=>{t.setFieldValue(["images",L+"_"+a],n),i.carouselImages[a].link=n,i.link=n})),t.setFieldValue(L,n))):(t.setFieldValue(L,n),i.link=n);break;case S:i={borderRadius:{...e.borderRadius,[I[_]]:s[_],[I[y]]:s[y],[I[E]]:s[E],[I[v]]:s[v],[I[l]]:+o[l]}};break;case _:case y:case E:case v:i={borderRadius:{...e.borderRadius,[I[S]]:null,[I[l]]:+o[l]}};break;case h:case g:case b:case f:case C:i={mobileBorderRadius:{...e.mobileBorderRadius,[M[g]]:s[g],[M[b]]:s[b],[M[f]]:s[f],[M[C]]:s[C],[M[l]]:o[l],classNamePrefix:"em-mob-border_radius_"+M[l]+"-"}};break;default:i=o}return{...e,...i}}},7549: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>'},29539: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>'},75424: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>'},6573: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" dir="rtl" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20">\n <table border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">\n <tr>\n <td width="180" dir="ltr" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="380" dir="ltr" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n </tr>\n </table>\n </td>\n</tr>'},43643: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>'},96786: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>'},10750: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'},97946: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'},36529: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'},50664: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'},22548: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'},20065: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'},27941:(e,t,n)=>{"use strict";n.d(t,{Mu:()=>o,ZJ:()=>c,cM:()=>s,rD:()=>i});var a=n(2604),r=n(16390),l=n(39218);function o(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 i(){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,l.l)(),value:e.value,label:e.label,children:s(e.children,t,n),type:"group"}:{key:(0,l.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]}},96734:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var a=n(74029),r=n(3792);const l=()=>r.di.useInstance(a.Zw)},51213:(e,t,n)=>{"use strict";function a(e){return class extends e{constructor(...t){super(...t);const n=Object.getOwnPropertyNames(e.prototype);for(const a of n){const t=Object.getOwnPropertyDescriptor(e.prototype,a);"constructor"!==a&&"function"===typeof(null===t||void 0===t?void 0:t.value)&&(this[a]=e.prototype[a].bind(this))}}}}n.d(t,{A:()=>a})},3792:(e,t,n)=>{"use strict";n.d(t,{di:()=>o});var a=n(74568),r=n(88296),l=n(80148);const o={getContainer:l.My,createIdentifier:r.Q,reducer:l.Ff,reducerPath:l.IP,getInstance:function(e,t){return(e instanceof a.m?e:(0,l.My)(e)).getInstance(t)},getInstanceAsync:function(e,t){return(e instanceof a.m?e:(0,l.My)(e)).getInstanceAsync(t)},getOrCreateInstance:function(e,t,n){return(e instanceof a.m?e:(0,l.My)(e)).getOrCreateInstance(t,n)},inject:function(e,t,n,a){return(0,l.My)(e).inject(t,n)},addService:function(e,t,n){return(0,l.My)(e).addService(t,n)},getServices:function(e,t){return(0,l.My)(e).getServices(t)},useInject:l.lg,useInstance:l.Nj,useInstanceAsync:l.rl,useServices:l.A$}},81551:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a.Q});var a=n(74568)},80148:(e,t,n)=>{"use strict";n.d(t,{A$:()=>h,Ff:()=>c,IP:()=>s,My:()=>i.My,NF:()=>d,Nj:()=>p,lg:()=>m,rl:()=>u});var a=n(98173),r=n(2604),l=n(88296),o=n(74568),i=n(73942);const s=i.if,c=(e,t)=>{if(!e){const e=o.Q.createChild(),t=(0,l.Q)();return o.Q.inject(t,e),t}return e};function d(){const e=(0,r.Pj)();return(0,a.useMemo)((()=>(0,i.My)(e)),[e])}function m(){const e=(0,r.Pj)(),t=(0,i.My)(e);return function(e,n){t.inject(e,n)}}function p(e){const t=(0,r.Pj)();return(0,i.My)(t).getInstance(e)}function u(e){const[t,n]=(0,a.useState)(),l=(0,r.Pj)(),o=(0,a.useRef)(Promise.resolve()),s=(0,i.My)(l);return(0,a.useEffect)((()=>{const t=o.current=o.current.then((()=>s.getInstanceAsync(e))).then((e=>{t===o.current&&n(e)}),(e=>{}))}),[n,e,l,s]),t}function h(e){const t=(0,r.Pj)();return(0,i.My)(t).getServices(e)}},50861:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});var a=n(80148);function r(e){return(t,n,r,l)=>{const o=(0,a.My)(n);return e(o)(t,n,r,l)}}},52919:(e,t,n)=>{"use strict";n.d(t,{K9:()=>p,QC:()=>d,XW:()=>m,ur:()=>c});var a=n(35306),r=n(3792),l=n(2604),o=n(88296),i=n(98173);const s=(0,o.Q)("MESSAGE_SERVICE");function c(){const e=d();return(0,i.useCallback)((t=>{e.setTarget(t instanceof Element?t.contentWindow:t)}),[e])}function d(){const e=(0,l.Pj)();return(0,i.useMemo)((()=>function(e){return r.di.getOrCreateInstance(e,s,(()=>new a.bg))}(e)),[e])}function m(){const e=d();return(0,i.useCallback)((function(t){e.send(t)}),[e])}function p(){const e=d();return(0,i.useCallback)((function(t,n){e.send(t,n)}),[e])}},89613:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var a=n(98173),r=n(27941);const l=()=>{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)}catch(t){}};t?setTimeout(n,t):n()})(t,n)}),[e.pushToGTM])}},97404:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var a=n(58521);const r=async(e,t,n)=>{const r=(0,a.KU)(t).baseUrl.replaceAll(/[\\/]$/g,""),l=(0,a.hI)({baseUrl:r});let o=await l(e,t,n);if(o.error){let e=o.error;if("function"===typeof e.json)try{e=await e.json()}catch{e=await e}return{error:e}}return o}},72762:(e,t,n)=>{"use strict";n.d(t,{f:()=>g});var a=n(32947),r=n(15626),l=n(52919),o=n(90614),i=n(86095),s=n(70687),c=n(73180),d=n(98173),m=n(1047),p=n(12741),u=n(2604),h=n(12279);const g=(e,t)=>{var n,g,b,f,C;const v=(0,u.wA)(),E=(0,i.fn)(),y=(0,l.QC)(),_=(0,o.ml)(r.AZ.WILL_EMAIL_INIT_ID),A=(0,o.ml)(r.AZ.ON_EMAIL_INIT_ID),w=(0,o.ml)(r.AZ.ON_CONTENT_CHANGED_ID),k=(0,o.ml)(r.AZ.ON_EMAIL_CHANGED_ID),L=(0,o.ml)(r.AZ.ON_MODEL_CHANGE),S=(0,d.useRef)(!1),x=(0,d.useRef)();x.current=e,(0,d.useEffect)((()=>{const n=x.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();k.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.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===(C=e.utm_parameters)||void 0===C?void 0:C.utm_term)||"",k,t]),(0,c.ZC)((([e])=>{e!==E&&L.fire(E)}),[E,L]),(0,d.useEffect)((()=>{if(a.EW.isPlugin){const n=E.onDidChangeContent((()=>{const n=x.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),k.fire({...n,id:t||n.isNew?void 0:n.id,html:e})}}));return()=>n.dispose()}}),[E,w,k,e,t]);const T=(0,d.useCallback)((async()=>{const e=x.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 y.sendAsync(a.Ru.SANDBOX_SET_ENTITY,{html:n,guid:e.renderGuid})}),[E,y]),B=(0,d.useCallback)((async()=>{const e=x.current;await y.sendAsync(a.Ru.SANDBOX_SET_ENTITY,{html:E.getValue(),guid:e.renderGuid})}),[E,y]),I=(0,d.useCallback)((async()=>{const e=x.current;void 0!==e.preheader&&await y.sendAsync(a.Ru.SANDBOX_PREHEADER_UPDATE,{value:e.preheader,guid:e.renderGuid,force:!0})}),[y]),M=(0,d.useCallback)((async()=>{const e=x.current;void 0!==e.subject&&await y.sendAsync(a.Ru.SANDBOX_SUBJECT_UPDATE,{value:e.subject,guid:e.renderGuid,force:!0})}),[y]),N=(0,d.useCallback)((()=>{const e=x.current;return y.sendAsync(a.Ru.SANDBOX_INITED,{guid:e.renderGuid})}),[y]),R=(0,d.useCallback)((e=>{const n=x.current;v(void 0===n.id?(0,p.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),A.fire(a)}),[v,A,E,t]),P=(0,d.useCallback)((()=>{const e=x.current;return y.sendAsync(a.Ru.SANDBOX_INIT_START,{guid:e.renderGuid})}),[y]),H=(0,d.useCallback)((()=>{const e=x.current;return _.fire({...e,id:t||e.isNew?void 0:e.id,html:E.getValue()})}),[_,E,t]),[V]=(0,c.cM)((function*(){try{S.current=!0,yield*(0,h.T1)(P),yield*(0,h.T1)(H),yield*(0,h.T1)(T),yield*(0,h.T1)(I),yield*(0,h.T1)(M),yield*(0,h.T1)(N),yield*(0,h.T1)(R)}finally{S.current=!1}}),[T,I,M,R,H,P,N]),[O]=(0,c.cM)((function*(){try{yield*(0,h.T1)(P),yield*(0,h.T1)(H),yield*(0,h.T1)(B),yield*(0,h.T1)(I),yield*(0,h.T1)(M),yield*(0,h.T1)(N),yield*(0,h.T1)(R)}catch(e){}}),[T,I,M,R,H,P,N]);(0,c.ZC)((async([t])=>{const n=null===e||void 0===e?void 0:e.renderGuid;n&&n!==t&&V()}),[null===e||void 0===e?void 0:e.renderGuid,V]),(0,d.useEffect)((()=>{const e=y.addListenerAsync(a.Ru.RELOAD,(async()=>{await O()}));return()=>e.dispose()}),[y,O])}},71854:(e,t,n)=>{"use strict";n.d(t,{$K:()=>h,QM:()=>i,Qm:()=>u,q2:()=>m,zn:()=>p});var a=n(94049),r=n.n(a),l=n(94779),o=n(65053);function i(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 s="index.html";function c(e,t){return e.find((function(e){return e.name.toLowerCase().endsWith(t)}))}async function d(e,t,n){return await(0,l.An)(e,(async(e,a,r)=>{await(0,l.bc)(e,(async e=>{e=e.replace("\\","/");const n=(0,l.$l)(e);return t(e,n)}),r),n&&n(e,a,r)}))}async function m(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:o}=await a.loadAsync(e),i=Object.keys(o).map((e=>o[e])),d=o[s]||c(i,s)||c(i,".html")||c(i,".htm");if(d){const e=d.name.split("/"),a=document.location.pathname.split("/"),r=document.location.origin+a.slice(0,a.length-e.length).join("/")+"/",i=await d.async("text"),s=e.slice(0,e.length-1).join("/");return await(0,l.An)(i,(async(e,a,i)=>{await(0,l.bc)(e,(async e=>{(e=e.replace("\\","/")).startsWith(".")&&(e=e.substring(1)),e.startsWith("/")&&(e=e.substring(1)),e.startsWith(r)&&(e=e.substring(r.length)),s&&!e.match("^(ht|f)tp(s?)://")&&(e=`${s}/${e}`);const n=o[e];if(n){const e=n.name,a=await n.async("blob");return t(a,e)}const a=(0,l.$l)(e);return t(e,a)}),i),n&&n(e,a,i)}))}}(e,t,a);case"eml":{const r=await e.text(),{readEml:l}=await n.e(4309).then(n.bind(n,84309)),o=l(r);if(o instanceof Error)throw o;const i="string"===typeof o?o:o.html;if("undefined"===typeof i){throw new Error("Eml does not contain text/html")}return d(i,t,a)}default:return d(await e.text(),t,a)}}async function p(e,t){if("string"!==typeof e)return e;const n=(0,o.A)(e),a=await t({url:n});return null===a||void 0===a||a.data,(null===a||void 0===a?void 0:a.data)||null}function u(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}function h(e,t){var n,a,r,l;return!e||e.error||400===(null===(n=e.data)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.status)?"string"===typeof t?t:"":null!==(r=e.data)&&void 0!==r&&null!==(l=r[0])&&void 0!==l&&l.file_url?e.data[0].file_url:"string"===typeof t?t:""}},70687:(e,t,n)=>{"use strict";n.d(t,{Og:()=>o,SF:()=>l,po:()=>r});const a=new Set;function r(e){return a.add(e),{dispose(){l(e)}}}function l(e){a.delete(e)}function o(e,t){let n=e.getVersionId();const r=[],l=e.onDidChangeContent((l=>{if(l.versionId>n+1){const o=e.onDidChangeContent((i=>{if(l.versionId===n+1)try{a.has(e)||t(l)}catch(s){}finally{n=l.versionId;const e=r.indexOf(o);e>=0&&r.splice(e,1),o.dispose()}}));r.push(o)}else try{a.has(e)||t(l)}catch(o){}finally{n=l.versionId}}));return{dispose:()=>{l.dispose(),r.forEach((e=>e.dispose()))}}}},81843:(e,t,n)=>{"use strict";n.d(t,{OI:()=>i,yc:()=>o});var a=n(28618),r=n(33105),l=n(83238);function o(){return a.QE.get(r.$D)}function i(){return a.QE.get(l.L)}},64909:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>m,O5:()=>h,hN:()=>u,x_:()=>p});var a=n(15626),r=n(90614),l=n(98173),o=n(75576),i=n(90121),s=n(13668),c=n(31926);const d="bottomRight";function m(e){return{id:e.id,code:e.html,title:e.title,subject:e.subject,preheader:e.preheader}}function p(e){return{id:e.id,code:e.html,title:e.title}}function u(){const e=(0,r.ml)(a.AZ.ON_NOTIFICATION),{notification:t}=o.A.useApp(),n=(0,l.useCallback)(((n,a)=>{n.type||(n={...n,type:"info"}),e.fire((0,c.TB)({id:n.id,type:n.type,data:n.data,innerException:n.innerException})).then((e=>{if(e.every((e=>!1!==e))){n={...n};for(const t of e)"object"===typeof t&&Object.assign(n,t,t.style?{style:{...t.style,...n.style}}:{},t.props?{props:{...t.props,...n.props}}:{},t.className?{className:n.className?`${n.className} ${t.className}`:t.className}:{});a||((n=Object.assign(n,...e.filter((e=>"object"===typeof e)))).placement||(n.placement=d),t[n.type]?t[n.type](n):n.message)}}))}),[t,e]),i=(0,l.useCallback)(((e,t)=>n({...e,type:"error"},t)),[n]),s=(0,l.useCallback)(((e,t)=>n({...e,type:"success"},t)),[n]),m=(0,l.useCallback)(((e,t)=>n({...e,type:"warning"},t)),[n]),p=(0,l.useCallback)(((e,t)=>n({...e,type:"info"},t)),[n]),u=(0,l.useCallback)(((e,t,n,a,r=d)=>{var o,s;n&&i({id:e,data:t,message:n.data instanceof Error?"":l.createElement("div",{dangerouslySetInnerHTML:{__html:(null===(o=n.data)||void 0===o?void 0:o.code)||n.status||n}}),description:l.createElement("div",{dangerouslySetInnerHTML:{__html:(null===(s=n.data)||void 0===s?void 0:s.message)||n.error}}),placement:r,innerException:(null===n||void 0===n?void 0:n.data)instanceof Error?n.data:n},a)}),[i]);return(0,l.useMemo)((()=>({notify:n,success:s,error:i,warning:m,fromError:u,info:p})),[n,s,i,m,u,p])}function h(){const{notify:e}=u();(0,i.D3)(s.Sb,e)}},12543:(e,t,n)=>{"use strict";n.d(t,{CY:()=>i,s9:()=>s});var a=n(98173),r=n(94043);function l(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 o=(0,a.createContext)(l(r.y3));function i(e){const{children:t,i18n:n=r.y3}=e,[,i]=(0,a.useReducer)((()=>[]),[]);(0,a.useEffect)((()=>n.subscribe(i)),[n]);const s=(0,a.useMemo)((()=>l(n)),[n]);return(0,a.createElement)(o.Provider,{value:s},t)}const s=()=>(0,a.useContext)(o)},73180:(e,t,n)=>{"use strict";n.d(t,{ZC:()=>l,cM:()=>o,mx:()=>i});var a=n(98173),r=n(12279);const l=(e,t)=>{const n=(0,a.useRef)();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 o(e,t){const n=(0,a.useRef)(),l=(0,a.useCallback)((()=>{const e=n.current;e&&(0,r.eF)(e.halt)}),[]);(0,a.useEffect)((()=>()=>l()),[l]);const o=(0,a.useCallback)(e,t);return[(0,a.useCallback)(((...e)=>{l();const t=(0,r.eF)((()=>o(...e)));return n.current=t,t}),[l,o]),l]}function i(e,t){const[n,r]=(0,a.useState)(void 0),l=(0,a.useRef)(!0);return(0,a.useEffect)((()=>(l.current=!0,r(void 0),e().then((e=>{l.current&&r(e)})),()=>{l.current=!1})),t),n}},39420:(e,t,n)=>{"use strict";n.d(t,{A5:()=>d,FN:()=>c,Hk:()=>s,c8:()=>m});var a=n(98173),r=n(32947),l=n(52919);const o=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]"),i=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),[...i].forEach((e=>{e.media=t})),[...o].forEach((e=>{e.media=n}))},c=(e={})=>{const t=document.querySelector("head"),n=document.createElement("style");if(n.type="text/css",n.dataset.themeVaribalse=!0,n.setAttribute("data-emailmaker","true"),Object.entries(e).length){let a="";Object.entries(e).forEach((([e,t])=>{"object"!==typeof t&&(a+=`\t--${e}: ${t};\n`)})),a=`.blocks-body, .blocks-app, .ant-modal-root, .ant-tooltip, .ant-notification {\n${a}}`,n.appendChild(document.createTextNode(a));const 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),t.classList.add(e)}),200)},m=()=>{const e=(0,l.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])}},93778:(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 l(e){return t=>r(t,e)}function o(e){return t=>r(t,((t,n)=>t.hasOwnProperty("previous")?e(t.previous,n):e(t,n)))}function i(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:()=>i,PI:()=>o,SA:()=>r,SC:()=>l,ur:()=>a})},14038:(e,t,n)=>{"use strict";n.d(t,{a:()=>r,t:()=>l});var a=n(72510);function r(e,t,n,r){const l=(0,a.Sb)(e),o=Symbol(`once-handler-${t}`),i=l?e=>{e[o]||(e[o]=!0,n(e))}:n;return null===l||void 0===l||l.addEventListener(t,i,r),window.addEventListener(t,i,r),{dispose:()=>{null===l||void 0===l||l.removeEventListener(t,i,r),window.removeEventListener(t,i,r)}}}function l(e,t,n,r){const l=(0,a.Sb)(e),o=Symbol(`once-handler-${t}`),i=l?e=>{e[o]||(e[o]=!0,n(e))}:n;return null===l||void 0===l||l.addEventListener(t,i,r),document.addEventListener(t,i,r),{dispose:()=>{null===l||void 0===l||l.removeEventListener(t,i,r),document.removeEventListener(t,i,r)}}}},95669:(e,t,n)=>{"use strict";function a(e,t){if(e!==t){if(!e||!t||"object"!==typeof e||"object"!==typeof t)return!1;const n=t instanceof Array;if(e instanceof Array){if(!n)return!1;const r=e.length;if(t.length!==r)return!1;for(let n=0;n<r;n++)if(!a(e[n],t[n]))return!1}else if(n)return!1;const r=Object.keys(e),l=Object.keys(t),o=r.length;if(o!==l.length)return!1;for(let i=0;i<o;i++){const n=r[i];if(!t.hasOwnProperty(n)||!a(e[n],t[n]))return!1}}return!0}n.d(t,{b:()=>a})},22560:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var a=n(19504);async function r(e,t,n){if("amp"===t){for(const t of e.querySelectorAll(".em-amp-show-disabled"))t.remove();await(0,a.Sc)(e,{mappedTags:{script:"___script"},commit:()=>n.commit()})}else if("html"===t){for(const t of e.querySelectorAll(".em-amp-show-only"))t.remove();(0,a.Km)(e,{mappedTags:{script:"___script"},commit:()=>n.commit()})}}},1473:(e,t,n)=>{"use strict";function a(e){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")||!function(e){if(!e)return!1;const t=e[0];return e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||function(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}(t)}(e))return e;if(e.startsWith("/"))return window.location.origin+e;const t=window.location.href,n=t.lastIndexOf("/");return(-1!==n?t.slice(0,n+1):t+"/")+e}n.d(t,{o:()=>a})},94338:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(12543);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")}]}},62347:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(98173),r=n(2604),l=n(62272),o=n(98845),i=n(1047);const s=()=>{const e=(0,r.wA)(),t=(0,r.d4)(i.zn);let n=(0,l.zy)();(0,a.useEffect)((()=>{/emails\/[0-9]+$/.test(n.pathname)||t&&e(o.GY.util.invalidateTags([{type:"Emails",id:+t}]))}),[n,e,t])}},62093:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(98173),r=n(52919);function l(e,t){const n=(0,r.QC)();(0,a.useEffect)((()=>{const a=n.addListener(e,t);return()=>{a.dispose()}}),[n,e,t])}},80223:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(98173),r=n(62272),l=n(2604),o=n(47014),i=n(65716);const s=e=>{const t=(0,l.d4)(o.C1),[n,s]=(0,a.useState)({owner:!1,admin:!1}),c=(0,r.KC)(),{data:d}=(0,i.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:l}=m.members,o=r?r.map((e=>e.ID)):r,i=l?l.map((e=>e.ID)):l;s({owner:(null===(e=a.ID)||void 0===e?void 0:e.toString())===(null===(n=t.id)||void 0===n?void 0:n.toString()),admin:o&&o.includes(t.id),user:i&&i.includes(t.id)})}}),[m,t.id]),n}},69201:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(98173),r=n(2604),l=n(62272),o=n(39206),i=n(32947),s=n(96734);const c=()=>{const e=(0,r.wA)(),t=(0,s.p)(),n=(0,r.d4)(o.Sl);let c=(0,l.zy)();(0,a.useEffect)((()=>{c.pathname.endsWith("/new")||n&&(e((0,o.X8)()),t.remove(i.A9.em_new_block))}),[c,n,e,t])}},49982:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(98173),r=n(2604),l=n(62272),o=n(12741),i=n(32947),s=n(96734);const c=()=>{const e=(0,s.p)(),t=(0,r.wA)(),n=(0,r.d4)(o.$S);let c=(0,l.zy)();(0,a.useEffect)((()=>{c.pathname.endsWith("/new")||(e.remove(i.A9.em_new_email),e.remove(i.A9.em_template_email),n&&t((0,o.Et)()))}),[c,n,t,e])}},54125:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(32947);const r=e=>{if(!a.EW.isPlugin){let t="";t="EmailMaker",document.title=e+" - "+t}}},30753:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(98173),r=n(40120),l=n(62272),o=n(67034);const i=({className:e,style:t,color:n,text:r,bordered:l,...i})=>{const s=r||"";return a.createElement(o.A,Object.assign({style:t,color:n,bordered:l,className:e},i),s)};var s=n(12543),c=n(27941);const d=({text:e,counter:t,limits:n,wrapperStyles:o})=>{const{__:d,_n:m}=(0,s.s9)(),p=(0,l.Zp)(),u=(0,c.rD)(),{token:h}=r.A.useToken(),g=+n>0,b=!g||t<+n,f=u.billingPageUrl||"/billing",C=t+" "+d("of")+" "+(g?n:"\u221e")+" "+(e||m("test","tests",n))+" "+m("was used","were used",t);return a.createElement("div",{className:"limits-couter-wrapper",style:o},a.createElement(i,{bordered:!1,text:C,className:"limit-counter",style:{color:b?h.colorText:"white"},color:b?h.colorFillSecondary:"rgb(255, 77, 79)"}),g&&a.createElement("div",{style:{fontSize:14,textDecoration:"underline"},onClick:()=>p(f)},d("Need more?")))}},24527:(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"]},76937:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var a=n(98173),r=n(27499),l=n(48753),o=n(37969),i=n(8218),s=n(64909),c=n(2604),d=n(12543),m=n(65716),p=n(83027),u=n(23424),h=n(40277),g=n(32947),b=n(62272);const f=({taxonomy:e})=>{var t;const{__:n,_x:f}=(0,d.s9)(),C=(0,c.wA)(),[v]=r.A.useForm(),E=(0,a.useRef)(null),y=(0,c.d4)(u.cL)===g.lx.ADD_NEW_GROUP_MODAL,_=(0,s.hN)();let A;({data:A}=(0,b.KC)());const w=`project_${A.id}`,k=null===(t=A[g.bV.GROUP])||void 0===t?void 0:t[0],[L]=(0,m.OD)(),[S]=(0,p.y$)(),x=(0,a.useCallback)((()=>{v.resetFields(),setTimeout((()=>{var e;return null===(e=E.current)||void 0===e?void 0:e.focus({cursor:"start"})}),0)}),[v]);(0,a.useEffect)((()=>{y&&x()}),[y,x]);const T=()=>C((0,u.Oo)()),[B,I]=(0,p.JI)(),[M,N]=(0,a.useState)(!1),[R,P]=(0,a.useState)(k),H=()=>{const t=(t,a)=>L({projectId:A.id,[e]:a||R}).then((async a=>{if("error"in a)(0,h.p6)(a,_);else if("data"in a){let r=a.data;const l=await B({name:t,parent:r[e][0]});if(!("error"in l))return _.success({message:n("The group \u201c")+l.data.name+f("\u201d was successfully created.",e),placement:"bottomRight"}),P(r[e][0]),S({parent:r[e][0]}).then((({data:e,error:t})=>{e?T():t&&(0,h.p6)({error:t},_)}));(0,h.p6)(l,_)}}));v.validateFields().then((({name:a})=>(N(!0),R?B({name:a,parent:R}).then((t=>{"error"in t?(0,h.p6)(t,_):(_.success({message:n("The group \u201c")+t.data.name+f("\u201d was successfully created.",e),placement:"bottomRight"}),T(),S({parent:R}))})):B({name:w}).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);(0,h.p6)(e,_)}})).catch((e=>{})).finally((()=>N(!1)))))).catch((e=>{})).finally((()=>N(!1)))};return a.createElement(l.A,{title:n("Add a new group"),open:y,onOk:H,onCancel:T,className:"new-group-modal",centered:!0,footer:[a.createElement(o.Ay,{key:"submit",type:"primary",size:"large",loading:I.isLoading||M,onClick:H},n("Create group"))]},a.createElement(r.A,{form:v,layout:"vertical",name:"add_new_group_form",onFinish:H,initialValues:{remember:!1,name:""},autoComplete:"off",style:{paddingTop:10}},a.createElement(r.A.Item,{name:"name",rules:[{required:!0,message:n("Please enter the group name")}]},a.createElement(i.A,{disabled:I.isLoading,size:"large",placeholder:n("Enter the group name"),ref:E,style:{marginBottom:5}}))))}},79890:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var a=n(98173),r=n(40120),l=n(27499),o=n(201),i=n(8218),s=n(49823),c=n(80293),d=n(67107),m=n(2604),p=n(62272),u=n(12543),h=n(65716),g=n(98845),b=n(68984),f=n(22536),C=n(1047),v=n(40277),E=n(32947),y=n(84572);const{useToken:_}=r.A,{name:A,type:w,tags:k,group:L}={name:"name",type:"type",tags:"tags",group:"group"},S={[A]:"",[w]:[],[k]:[],[L]:[]},x=({isBlocks:e=!1,templateEmailId:t=!1})=>{const{__:n}=(0,u.s9)(),{projectId:r}=(0,p.g)(),[x]=l.A.useForm(),{data:T}=(0,b.h1)(),B=(0,m.wA)(),I=(0,m.d4)(f.b9),M=(0,m.d4)(C.CT),N=(0,m.d4)(y.GD),{token:R}=_(),P=(0,m.Pj)(),H=e?I:M,{isSuccess:V,data:O}=h.Nq.endpoints.getProject.select(+r)(P.getState(),{skip:t}),{isSuccess:j,data:D}=(0,g.sl)(+t,{skip:!t}),Z=(0,a.useCallback)((()=>{B(e?(0,f.om)({}):(0,C.om)({}))}),[B,e]);(0,a.useEffect)((()=>{Z()}),[Z]),(0,a.useEffect)((()=>{}),[j,D,t]),(0,a.useEffect)((()=>{}),[V,O,e,t]);const[F,z]=(0,a.useState)([]);let W;(0,a.useEffect)((()=>{if(T){const e=T.schema.properties.acf.properties.type.items.enum;let t=[];for(let a in e)t.push({label:n(E.jg[e[a]]),value:e[a]});z(t)}}),[T,n]);const[q,$]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{const n=t?j&&(0,v._q)(D,E.zh).filter((e=>{var t;return null===H||void 0===H||null===(t=H.tags)||void 0===t?void 0:t.includes(e.id)})).map((e=>e.name))||[]:V&&(0,v._q)(O,e?E.YY:E.zh).filter((e=>{var t;return null===H||void 0===H||null===(t=H.tags)||void 0===t?void 0:t.includes(e.id)})).map((e=>e.name))||[];x.setFieldsValue({tags:n})}),[V,H,e,x,O,j,D,t]),(0,a.useEffect)((()=>{x.setFieldsValue({group:N})}),[x,N]),a.createElement("div",{className:"cards-search"},a.createElement(l.A,{form:x,name:"cards_search_form",initialValues:{...S},onValuesChange:n=>{const a=Object.keys(n)[0],r=x.getFieldsValue(!0);switch(a){case k:const l=t?(0,v._q)(D,E.zh).filter((e=>n[a].includes(e.name))).map((e=>e.id))||null:(0,v._q)(O,e?E.YY:E.zh).filter((e=>n[a].includes(e.name))).map((e=>e.id))||null;B(e?(0,f.om)({...H,tags:l}):(0,C.om)({...H,tags:l}));break;case w:B(e?(0,f.om)({...H,type:r.type||null}):(0,C.om)({...H,type:r.type||null}));break;case A:W&&window.clearTimeout(W),W=window.setTimeout((function(){B(e?(0,f.om)({...H,name:r.name}):(0,C.om)({...H,name:r.name}))}),100);break;case L:B(e?(0,f.om)({...H,group:r.group||null}):(0,C.om)({...H,group:r.group||null}))}},autoComplete:"off"},a.createElement(o.A,{wrap:!1,gutter:0},a.createElement(l.A.Item,{className:"cards-search__by-title",name:A},a.createElement(i.A,{placeholder:n("Search by title"),allowClear:!0,bordered:!1,size:"large",prefix:a.createElement(c.A,{className:"cards-search__search-icon, input-icon",style:{cursor:"pointer",fontSize:20}})})),e&&a.createElement(l.A.Item,{className:"cards-search__type-select",name:w,rules:[{message:n("Please choose the block type")}]},a.createElement(s.A,{placeholder:n("Filter by type"),options:F,getPopupContainer:e=>e.parentNode,suffixIcon:a.createElement(d.A,{style:{fontSize:"16px",color:R.colorText},onClick:()=>$(!q),className:"input-icon"}),allowClear:!0,open:q,onDropdownVisibleChange:e=>{$(e)}})))))}},37507:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var a=n(98173),r=n(13785),l=n(32947);const o=({users:e,isEditor:t,isPlugin:n,token:o})=>{const[i,s]=(0,a.useState)(!1),c=window.localStorage.getItem(l.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 "+(i?"open":""),style:n?{left:"60px",bottom:"10px"}:{},onMouseOver:()=>s(!0),onMouseOut:()=>s(!1)},e.map((e=>a.createElement("div",{key:e.user.color,className:"user",style:{"--user-color":e.user.color,"--border-color":null===o||void 0===o?void 0:o.colorBgContainer,"--text-color":"dark"===c?null===o||void 0===o?void 0:o.colorIconHover:null===o||void 0===o?void 0:o.colorWhite}},a.createElement(r.A,{title:d(e),placement:"topLeft",trigger:"hover",color:null===o||void 0===o?void 0:o.colorBgSpotlight},a.createElement("div",null,(e=>{const{first_name:t,last_name:n,email:a}=e.user.name;if(t)return`${t.split("")[0]}${n?`${n.split("")[0]}`:""}`;return(null===a||void 0===a?void 0:a.split("")[0].toUpperCase())||" "})(e))))))))}},55835:(e,t,n)=>{"use strict";n.d(t,{LA:()=>i,LJ:()=>s,Pp:()=>l,Q9:()=>o,ZW:()=>a,k0:()=>c,pX:()=>r});const a="wss://yjs.emailmaker.ru",r=500,l=5e3,o=2e4,i="3769995",s="Not available for collaborative editing",c="Problem with internet connection"},77637:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var a=n(98173),r=n(201),l=n(66964),o=n(37969),i=n(94674),s=n(6056),c=n(8218),d=n(85591),m=n.n(d),p=n(2604),u=n(12543),h=n(8807),g=n(1047);n(69039);const b=({id:e,onChange:t,value:n,externalValue:d,alignRight:b,placeholder:f,isDisabled:C=!1,usedColors:v=[],codeMode:E=!1})=>{const{__:y}=(0,u.s9)(),_=(0,p.d4)(g.iy),[A,w]=(0,a.useState)(!0),k=(0,a.useRef)(null),L=(0,a.useRef)(null),S=(0,a.useRef)(t),x=e=>{const t=e.toHexString().toUpperCase();S.current&&S.current(t),k.current&&(k.current.style.backgroundColor=t),L.current&&(L.current.input.value=t)};(0,a.useEffect)((()=>{"undefined"===typeof EyeDropper&&w(!1)}),[n]),(0,a.useEffect)((()=>{void 0!==d&&d!==n&&x({toHexString:()=>d})}),[d]);const T=async()=>{try{if("undefined"===typeof EyeDropper)return void alert("Your browser does not support the EyeDropper API.");const e=new EyeDropper,t=(await e.open()).sRGBHex.toUpperCase();S.current&&S.current(t),k.current&&(k.current.style.backgroundColor=t),L.current&&(L.current.input.value=t)}catch(e){}};return a.createElement("div",{className:"color-picker-input"},a.createElement("div",{className:m()("color-picker-input__control-wrap",{"color-picker-input__empty":!n})},a.createElement(s.A,{disabledAlpha:!0,format:"hex",defaultFormat:"hex",getPopupContainer:e=>e.closest(E?".selected_text_common_form_mobile":".email-pane__collapse-wrapper"),className:"color-picker-input__btn-wrap",rootClassName:"verticalColorpicker",value:""===n||null===n?void 0:n,onChange:x,panelRender:(e,{components:{Picker:t,Presets:n}})=>a.createElement(r.A,{justify:"space-between",wrap:!1},a.createElement(l.A,{flex:"auto"},a.createElement(t,null),A&&a.createElement(o.Ay,{onClick:T,size:"small",style:{position:"absolute",top:215,left:179,height:28,width:28,padding:0,zIndex:2,minWidth:"auto",fontSize:18}},a.createElement(h.A,{icon:"Colorize",style:{position:"relative",top:-2}}))),a.createElement(i.A,{type:"vertical",style:{height:"auto"}}),a.createElement(l.A,{span:8},a.createElement(n,null))),disabled:_||C,presets:[{label:y("Used"),colors:v},{label:y("Recommended"),colors:["#000000","#595959","#BFBFBF","#E5E5E5","#F5F5F5","#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB"]}]}),""===n&&a.createElement("div",{className:"color-picker-input__empty-bg"}),a.createElement(c.A,{allowClear:!0,id:e,disabled:_||C,className:"color-picker-input__control",placeholder:f||y("Select color"),value:n,ref:L,onChange:t})))}},55760:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var a=n(98173),r=n(40120),l=n(28973),o=n(75576),i=n(2604),s=n(12602),c=n(47014),d=n(1047),m=n(32947),p=n(39420),u=n(27941),h=n(16390),g=n(25389),b=n(3326);function f(e,t){if("object"===typeof e&&e){t(e);for(const n of Object.values(e))f(n,t)}}const C=function(e=".blocks-app"){e=`${e} &`;const t=new WeakSet;return{visit:n=>{if(!t.has(n)){const a={};let r;for(const l of Object.keys(n)){const o=n[l];"object"===typeof o&&o?(o._keyframe&&f(o,(e=>t.add(e))),a[l]=o):(r||(r=a[e]={},t.add(r)),r[l]=o)}return a}return n}}}(),v={hashed:!1,algorithm:r.A.defaultAlgorithm,token:{colorLink:"#1677ff",colorInfo:"#722ed1",colorTextBase:"#000000",colorBgLayout:"#f0f2f5",borderRadiusXL:16,borderRadiusLG:12,borderRadius:8,borderRadiusSM:6,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},components:{Progress:{colorFillSecondary:"#ffffff"},Tabs:{titleFontSize:16,titleFontSizeSM:16,fontSize:16,fontSizeLG:16}}},E={hashed:!1,algorithm:r.A.darkAlgorithm,token:{colorBgBase:"#1F1F1F",colorInfo:"#9254de",colorLink:"#1890ff",colorLinkHover:"#69c0ff",wireframe:!1,borderRadiusXL:16,borderRadiusLG:12,borderRadius:8,borderRadiusSM:6,borderWidth:1,colorDarken1:"rgba(0, 0, 0, 0.9)",colorFillSecondaryDarken:"rgba(255, 255, 255, 0.16)",formControlHeight:34,borderColorHover:"rgba(255, 255, 255, 0.3)",formItemMarginBottomMD:20,formItemMarginBottomXS:8,appZoom:1},components:{Tabs:{titleFontSize:16,titleFontSizeSM:16,fontSize:16,fontSizeLG:16}}};const y=function({children:e}){const t=(0,i.d4)(d.Up),n=(0,i.d4)(c.C1),r=window.localStorage.getItem(m.V0.em_color_scheme),f=matchMedia(m.F3).matches?m.nd:m.T,[y,_]=(0,a.useState)(r||f),A=(0,u.rD)(),w=(0,i.wA)(),k=(0,p.c8)();(0,a.useEffect)((()=>{const e=m.EW.isPlugin?null===n||void 0===n?void 0:n.theme:r||f;_(e),(0,p.A5)(e),w((0,d.eX)(e===m.nd?`vs-${e}`:m.T)),k()}),[r,t,f,null===n||void 0===n?void 0:n.theme,A.pathEnabled,w,k]);const L=(0,a.useCallback)((e=>{e&&e!==m.IJ?((0,p.Hk)(e),localStorage.setItem(m.V0.em_color_scheme,e)):localStorage.removeItem(m.V0.em_color_scheme)}),[]);(0,a.useEffect)((()=>{const e=null===n||void 0===n?void 0:n.theme,t=localStorage.getItem(m.V0.em_color_scheme);e&&e!==t&&L(e)}),[n,L]);const S=(0,a.useCallback)((()=>{const e=localStorage.getItem(m.V0.em_color_scheme);L(e)}),[L]);(0,a.useEffect)((()=>{S()}),[S]);const x=(0,i.d4)(h.RP),[T,B]=(0,a.useState)("light"===y?v:E),[I]=(0,a.useState)(1);(0,a.useEffect)((()=>{const e="light"===y?v:E,t=x[y],n=t?(0,g.TJ)(e,t):e;B({...n,token:{...n.token,appZoom:I}})}),[B,y,x,I]);const M=(0,b.LG)(),N=(0,a.useCallback)((()=>M),[M]);return a.createElement(l.Ay,{theme:T,getPopupContainer:N},a.createElement(s.N7,{transformers:[C]},a.createElement(o.A,null,e)))}},52427:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var a=n(98173),r=n(73114),l=n(98447),o=n(12543);let i=null,s=null;const c=[{label:"Segoe UI, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif",value:"-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif",className:"Segoe"},{label:"Helvetica, Helvetica Neue, Arial, Roboto, sans-serif",value:"Helvetica, 'Helvetica Neue', Roboto, 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"}],d={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"},m=({value:e,onChange:t,textEditor:m=!1,codeMode:p=!1})=>{const{__:u}=(0,o.s9)(),[h,g]=(0,a.useState)(),[b,f]=(0,a.useState)(e),[C,v]=(0,a.useState)(null),[E,y]=(0,a.useState)(!0),_=[],A=[];if((0,a.useEffect)((()=>{(i?Promise.resolve(i):s||(n.p.replace(/\/$/,""),s=n.e(2642).then(n.t.bind(n,42642,19)).then((({default:e})=>(i=e,i))).catch((e=>{throw e})),s)).then((e=>{v(e),y(!1)})).catch((()=>y(!1)))}),[]),(0,a.useEffect)((()=>{if(!C)return;const t=C.familyMetadataList.filter((e=>e.subsets.includes("cyrillic")&&"Sans Serif"===e.category&&e.popularity<100)),n=C.familyMetadataList.filter((e=>e.subsets.includes("cyrillic")&&"Serif"===e.category&&e.popularity<100));if(m&&e!==b)if(e)if("Sans Serif"===e[1]){var a;g(["Google Fonts","Sans Serif",null===(a=t.find((t=>(null===t||void 0===t?void 0:t.family.replace(/\s/g,""))===e[2].replace(/\s/g,""))))||void 0===a?void 0:a.family,e[3].replace(/Italic/g," Italic")])}else if("Serif"===e[1]){var r;g(["Google Fonts","Serif",null===(r=n.find((t=>(null===t||void 0===t?void 0:t.family.replace(/\s/g,""))===e[2].replace(/\s/g,""))))||void 0===r?void 0:r.family,e[3].replace(/Italic/g," Italic")])}else"Safe Fonts"!==e[0]&&void 0!==h||g(e);else g([""]);else void 0===h&&b&&g(e);m||g(e),f(e)}),[e,C,m,b,h]),C){C.familyMetadataList.filter((e=>e.subsets.includes("cyrillic")&&"Sans Serif"===e.category&&e.popularity<100)).forEach((e=>{_.push({label:e.family,value:e.family,children:Object.keys(e.fonts).filter((e=>d[e])).map((e=>({label:d[e],value:d[e]})))})}));C.familyMetadataList.filter((e=>e.subsets.includes("cyrillic")&&"Serif"===e.category&&e.popularity<100)).forEach((e=>A.push({label:e.family,value:e.family,children:Object.keys(e.fonts).filter((e=>d[e])).map((e=>({label:d[e],value:d[e]})))})))}return a.createElement(r.A,{allowClear:!1,showSearch:!0,value:h,placement:"bottomRight",options:E?[{label:a.createElement(l.A,{size:"small",style:{marginLeft:8}}),value:"loading",disabled:!0}]:[{label:u("Safe Fonts"),value:"Safe Fonts",children:c},{label:u("Google Fonts"),value:"Google Fonts",children:[{label:u("Sans Serif"),value:"Sans Serif",children:_},{label:u("Serif"),value:"Serif",children:A}]}],getPopupContainer:e=>e.closest(p?".selected_text_common_form_mobile":m?".email-pane__collapse-wrapper":".email-pane__content-col"),onChange:t})}},54880:(e,t,n)=>{"use strict";n.d(t,{A:()=>V});var a=n(98173),r=n(40120),l=n(8218),o=n(75576),i=n(5553),s=n(99291),c=n(38927),d=n(27499),m=n(49856),p=n(53361),u=n(37969),h=n(13785),g=n(76047),b=n(2604),f=n(85086),C=n(80703),v=n(38256),E=n(6969),y=n(40186),_=n(12543),A=n(32947),w=n(47014),k=n(62093),L=n(8807),S=n(8111),x=n(98845),T=n(68984),B=n(52919),I=n(40277),M=n(86095),N=n(85591),R=n.n(N);const{useToken:P}=r.A,{TextArea:H}=l.A,V=({comments:e,subjectId:t,isLoggedIn:n,projectTitle:r="",emailElementType:N,email:V})=>{const{__:O,_n:j}=(0,_.s9)(),D=(0,B.XW)(),{modal:Z}=o.A.useApp(),{error:F,notification:z}=Z,{token:W}=P(),q=(0,a.useRef)(null),[$,U]=(0,a.useState)(""),[G,X]=(0,a.useState)("ADD"),[K,Y]=(0,a.useState)(!1),[J,Q]=(0,a.useState)(null),[ee,te]=(0,a.useState)(null),[ne,ae]=(0,a.useState)(""),[re,le]=(0,a.useState)(""),[oe,ie]=(0,a.useState)(!1),[se,ce]=(0,a.useState)(""),[de,me]=(0,S.z2)(),[pe,ue]=(0,S.HI)(),[he,ge]=(0,S.kk)(),[be,fe]=(0,S.vn)(),[Ce]=(0,x.LX)(),[ve]=(0,T.yW)(),Ee=(0,b.d4)(w.C1),ye=(0,M.fn)(),_e=()=>{const e={title:null===V||void 0===V?void 0:V.title,emailId:null===V||void 0===V?void 0:V.id,project:null===V||void 0===V?void 0:V.project,html:null===ye||void 0===ye?void 0:ye.getValue(),excerpt:null===V||void 0===V?void 0:V.date_gmt};"email"===N?Ce({emailId:null===V||void 0===V?void 0:V.id,body:e}).catch((e=>{})):ve({blockId:null===V||void 0===V?void 0:V.id,body:e}).catch((e=>{}))};function Ae(e){te(J),ae(""),X("REPLY")}const we=()=>{F({maskClosable:!0,centered:!0,title:O("Please log in"),content:O("To leave comments you must be logged into EmailMaker and added to the project ")+`${r}.`,okText:O("Okay. I'll log in.")})};async function ke(){n?(await he({commentId:ee,content:re,targetId:se}).unwrap(),X("ADD"),le(""),te(0),ie(!1),Y(!1),ce(""),D({operation:A.Ru.SANDBOX_DISCUSS_RESET})):we()}const Le=e=>{X("ADD"),le(""),te(0),ie(!1),Y(!1),ce(""),D({operation:A.Ru.SANDBOX_DISCUSS_RESET})},Se=async()=>{n?(($||ne)&&await de({subjectId:t,author:Ee.id,parent:"ADD"===G?"0":ee,content:$||ne,author_name:Ee.name,author_email:Ee.email,targetId:se}).then((e=>{e.error&&z.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:a.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"})})),ce(""),X("ADD"),ae(""),U(""),te(0),ie(!1),Y(!1),D({operation:A.Ru.SANDBOX_DISCUSS_RESET})):we()};function xe(){oe?(Y(!1),ie(!1),D({operation:A.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:se})):(Y(!K),D({operation:A.Ru.SANDBOX_DISCUSS_SET_TARGET,value:!K}),K&&ie(!1))}(0,k.A)((e=>{const t=e.data.operation;if(t===A.Ru.APPLICATION_DISCUSS_SET_ID&&(ce(e.data.settings.value),""!==e.data.settings.value?(ie(!0),Y(!1)):(ie(!1),Y(!0))),t===A.Ru.APPLICATION_DISCUSS_SAVE_TARGET&&_e(),t===A.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 D({operation:A.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:e.data.settings.targetId}),z.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:O("There's no such comment.")}}),placement:"bottomRight"});t===A.Ru.APPLICATION_DISCUSS_NO_COMMENT&&z.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:O("There's no such element in the email.")}}),placement:"bottomRight"})}));const Te=e=>{D({operation:A.Ru.SANDBOX_DISCUSS_GET_TARGET,value:e})},Be=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(i.A,{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(g.A,{className:"deletedComment",content:a.createElement(s.A,{description:O("Comment was removed."),type:"info"}),children:Be(e.children)}),"deleted"!==e.status&&a.createElement(a.Fragment,null,a.createElement(g.A,{author_id:e.author_id,author:e.author_name,avatar:e.author_avatar_urls&&e.author_avatar_urls[48]||"",className:R()(e.target_id&&"targetted-comment-item",(!e.author_avatar_urls||!e.author_avatar_urls[48])&&"comment-item-noavatar"),content:a.createElement(c.A,{key:"commenMenu",placement:"left",onOpenChange:()=>Q(e.id),menu:{items:e.author===Ee.id?Ne:Re},overlayStyle:{minWidth:"auto",paddingRight:6}},a.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}})),datetime:a.createElement(a.Fragment,null,a.createElement("span",{dangerouslySetInnerHTML:{__html:e.date&&(0,I.Yq)((0,I.Cl)(e.date),j,!0)}}),e.target_id&&a.createElement("span",{className:"comment-icon-target","target-id":e.target_id,onClick:()=>Te(e.target_id)},a.createElement(f.A,{style:{color:W.colorInfo,top:-2,position:"relative"}}))),children:a.createElement(a.Fragment,null,"REPLY"===G&&ee===e.id&&Me,"EDIT"===G&&ee===e.id&&Ie,Be(e.children))})))))}))),Ie=a.createElement(d.A,{onFinish:ke,className:"commentForm"},a.createElement(d.A.Item,{style:{marginBottom:10}},a.createElement(H,{className:"textarea-reply",value:re,onChange:e=>le(e.target.value),rows:4,placeholder:O("Editing comments"),onKeyDown:e=>"Escape"===e.key&&Le(),onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&ke(),ref:q})),a.createElement(d.A.Item,{className:"buttons"},a.createElement(m.A,null,oe?a.createElement(p.A,{title:O("Are you sure?"),okText:O("Yes"),cancelText:O("No"),onConfirm:function(e){be(ee),ie(!1),ce(""),D({operation:A.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:se})}},a.createElement(u.Ay,{loading:fe.isLoading,type:K||oe&&"EDIT"===G&&""!==se?"primary":"default",className:"button-target "+(K&&!oe?"button-target_choose":""),style:oe&&"EDIT"===G&&""!==se?{background:W.colorInfo}:{}},a.createElement(f.A,{className:"icon-target"}))):a.createElement(u.Ay,{onClick:xe,loading:fe.isLoading,type:K||oe&&"EDIT"===G&&""!==se?"primary":"default",className:"button-target "+(K&&!oe?"button-target_choose":""),style:oe&&"EDIT"===G&&""!==se?{background:W.colorInfo}:{}},a.createElement(f.A,{className:"icon-target"})),a.createElement(u.Ay,{className:"button-reply",type:"primary",loading:ge.isLoading,htmlType:"submit"},O("Save")," ",a.createElement(C.A,null)),a.createElement(u.Ay,{onClick:Le,className:"button-reply"},O("Cancel"))))),Me=a.createElement(d.A,{name:"reply",className:"commentForm",onFinish:Se},a.createElement(d.A.Item,{style:{marginBottom:10}},a.createElement(H,{className:"textarea-reply",value:ne,onChange:e=>ae(e.target.value),rows:4,placeholder:O("Reply to the comment"),onKeyDown:e=>"Escape"===e.key&&Le(),onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&Se(),ref:q})),a.createElement(d.A.Item,{hidden:!0,name:"targetId"},a.createElement(l.A,{type:"hidden"})),a.createElement(d.A.Item,{className:"buttons"},a.createElement(m.A,null,a.createElement(h.A,{placement:"top",title:O("Add a note"),overlayStyle:{maxWidth:"150px"}},a.createElement(u.Ay,{onClick:xe,type:K||oe&&"REPLY"===G&&""!==se?"primary":"default",className:"button-target "+(K&&!oe?"button-target_choose":""),style:oe&&"REPLY"===G&&""!==se?{background:W.colorInfo}:{}},a.createElement(f.A,{className:"icon-target"}))),a.createElement(u.Ay,{className:"button-reply",type:"primary",loading:"REPLY"===G&&me.isLoading,htmlType:"submit"},O("Reply")," ",a.createElement(L.A,{icon:"SendOutlined"})),a.createElement(u.Ay,{onClick:Le,className:"button-reply",ghost:!0,type:"primary"},O("Cancel")))));(0,a.useEffect)((()=>{"REPLY"===G&&q.current.focus({cursor:"start"}),"EDIT"===G&&q.current.focus({cursor:"end"})}),[G]);let Ne=[];Ne.push({key:"Reply to comment",icon:a.createElement(v.A,{style:{fontSize:"16px"}}),label:O("Reply"),onClick:Ae},{key:"Edit comment",icon:a.createElement(E.A,{style:{fontSize:"16px"}}),label:O("Edit"),onClick:function(t){var n,a,r,l,o;te(J),ie(Boolean(null===(n=e.find((e=>{var t;return(null===(t=e.id)||void 0===t?void 0:t.toString())===J})))||void 0===n||null===(a=n.target_id)||void 0===a?void 0:a.toString())),le(null===(r=e.find((e=>{var t;return(null===(t=e.id)||void 0===t?void 0:t.toString())===J})))||void 0===r||null===(l=r.content)||void 0===l||null===(o=l.slice(3,-5))||void 0===o?void 0:o.toString()),X("EDIT")}},{key:"Delete comment",icon:a.createElement(y.A,{style:{fontSize:"16px"}}),label:O("Delete"),style:{color:W.colorError},onClick:function(){var t,n;te(J),e.filter((e=>e.parent===J)).length?he({commentId:J,status:"deleted"}).unwrap():pe(J),(null===(t=document.querySelector('.discuss-main li[id="'+J+'"] .comment-icon-target'))||void 0===t?void 0:t.getAttribute("target-id"))&&D({operation:A.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:null===(n=document.querySelector('.discuss-main li[id="'+J+'"] .comment-icon-target'))||void 0===n?void 0:n.getAttribute("target-id")}),_e(),ce("")}});let Re=[];return Re.push({key:"Reply to comment",icon:a.createElement(v.A,{style:{fontSize:"16px"}}),label:O("Reply"),onClick:Ae}),a.createElement("div",{className:"discuss-main"},e.length>0&&a.createElement(i.A,{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,l=t.length;r<l;++r){let e=t[r],l=a.get(e.id);if(l&&!Array.isArray(l)||(l&&(e.children=l),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||!ue.isUninitialized&&!ue.isSuccess||pe(e.id).unwrap().catch((e=>{}))})),n}(e),renderItem:e=>a.createElement("li",{id:e.id},"deleted"===e.comment_status&&a.createElement(g.A,{className:"deletedComment",content:a.createElement(s.A,{description:O("Comment was removed."),type:"info"}),children:Be(e.children)}),"deleted"!==e.comment_status&&a.createElement(a.Fragment,null,a.createElement(g.A,{author_id:e.author_id,author:e.author_name,avatar:e.author_avatar_urls&&e.author_avatar_urls[48]||"",className:R()(e.target_id&&"targetted-comment-item",(!e.author_avatar_urls||!e.author_avatar_urls[48])&&"comment-item-noavatar"),content:a.createElement(c.A,{key:"commenMenu",placement:"left",destroyPopupOnHide:!0,onOpenChange:()=>Q(e.id),menu:{items:e.author===Ee.id?Ne:Re},overlayStyle:{minWidth:"auto"}},a.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}})),datetime:a.createElement(a.Fragment,null,a.createElement("span",{dangerouslySetInnerHTML:{__html:e.date&&(0,I.Yq)((0,I.Cl)(e.date),j,!0)}}),e.target_id&&a.createElement("span",{className:"comment-icon-target","target-id":e.target_id,onClick:()=>Te(e.target_id)},a.createElement(f.A,{style:{color:W.colorInfo,top:-2,position:"relative"}}))),children:a.createElement(a.Fragment,null,"REPLY"===G&&ee===e.id&&Me,"EDIT"===G&&ee===e.id&&Ie,Be(e.children))})))}),a.createElement(d.A,{onFinish:Se,className:"ADD"===G?"addMode":"replyEditMode"},a.createElement(d.A.Item,{style:{marginBottom:10}},a.createElement(H,{value:$,onChange:e=>U(e.target.value),rows:4,placeholder:O("Leave your comment"),className:"textarea-comment",onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&Se()})),a.createElement(d.A.Item,null,a.createElement(h.A,{placement:"top",title:O("Add a note"),overlayStyle:{maxWidth:"150px"}},a.createElement(u.Ay,{onClick:xe,type:K||oe&&"ADD"===G&&""!==se?"primary":"default",className:"button-target "+(K&&!oe?"button-target_choose":""),style:oe&&"ADD"===G&&""!==se?{background:W.colorInfo}:{}},a.createElement(f.A,{className:"icon-target"}))),a.createElement(u.Ay,{className:"button-add",type:"primary",loading:"ADD"===G&&me.isLoading,htmlType:"submit"},O("Send")," ",a.createElement(L.A,{icon:"SendOutlined"})))))}},80877:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(98173),r=n(42490);const l=a.forwardRef(((e,t)=>{const[n,l]=(0,a.useState)(!1),[o,i]=(0,a.useState)(0),[s,c]=(0,a.useState)(e.value||e.defaultValue),[d,m]=(0,a.useState)(e.value||e.defaultValue),p=()=>l(!1),u=(0,a.useCallback)((t=>{if(n){const n=t.clientX-o;let a=(s||0)+n*e.dragspeed;a=Math.max(0,Math.round(a)),e.max&&(a=Math.min(a,e.max)),void 0!==e.min&&(a=Math.max(a,e.min)),m(a),e.onChange&&e.onChange(a)}}),[n,e,s,o]);return(0,a.useEffect)((()=>{e.value||0===e.value?m(e.value):e.defaultValue||0===e.defaultValue?m(e.defaultValue):m(null)}),[e.value,e.defaultValue]),(0,a.useEffect)((()=>(document.addEventListener("mouseup",p),document.addEventListener("mousemove",u),()=>{document.removeEventListener("mouseup",p),document.removeEventListener("mousemove",u)})),[n,o,s,u]),a.createElement("div",{onMouseDown:e=>{var t,n;e.target.hasAttribute("class")&&null!==(t=e.target)&&void 0!==t&&null!==(n=t.className)&&void 0!==n&&n.includes("ant-input-number-affix-wrapper")&&(l(!0),i(e.clientX),c(d))}},a.createElement(r.A,Object.assign({},e,{ref:t,value:d,className:"input-draggable"})),n&&a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",cursor:"ew-resize"},onMouseUp:p}))}));l.defaultProps={dragspeed:1};const o=l},99460:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var a=n(98173),r=n(2604),l=n(49823),o=n(27499),i=n(201),s=n(66964),c=n(8218),d=n(29123),m=n(48753),p=n(37969),u=n(93511),h=n(64909),g=n(352),b=n(5457),f=n(94780),C=n(76762),v=n(58316),E=n(12543),y=n(23424),_=n(47014),A=n(1047),w=n(78915),k=n(80877),L=n(40277),S=n(39420),x=n(52919),T=n(32947);const{Option:B}=l.A,I="profile",M=({isModalVisible:e})=>{const{__:t}=(0,E.s9)(),n=(0,r.d4)(_.C1),M=(0,r.d4)(_.yf),N=(0,h.hN)(),R=(0,x.XW)(),P=(0,r.wA)(),[H]=o.A.useForm(),[V,O]=(0,w.b9)(),[j,D]=(0,w.hZ)(),[Z,F]=(0,a.useState)([]),[z,W]=(0,a.useState)([]),[q,$]=(0,a.useState)(I),[U,G]=(0,a.useState)({currentPassword:!1,newPassword:!1,confirmPassword:!1}),[X,K]=(0,a.useState)((()=>n.locale)),Y=(0,a.useRef)(null),J=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(H&&e){$(I),j(void 0,!0);const e=n.code_editor;K(n.locale),H.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,H,e,j,K]),(0,a.useEffect)((()=>{if(H&&e){if(D.isSuccess){var t,n,a,r;let e=null===(t=(0,L.EU)(M,["acf","theme"]))||void 0===t||null===(n=t.items)||void 0===n?void 0:n.enum;const l=null===(a=(0,L.EU)(M,["acf","code_editor","font_family"]))||void 0===a||null===(r=a.items)||void 0===r?void 0:r.enum;F((0,L.d_)(e)),W((0,L.d_)(l))}D.isError&&(0,L.p6)(D,N)}}),[D,H,e,M,N]);const Q=()=>{const e=window.localStorage.getItem(T.V0.em_color_scheme),t=matchMedia(T.F3).matches?T.nd:T.T;R({operation:T.Ru.UPDATE_PREVIEW,theme:e||t}),H.validateFields().then((e=>{const t=e.codeEditor;e.currentPassword&&e.newPassword?V({password:e.newPassword,old_password:e.currentPassword}):V({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)((()=>{O.isError&&(0,L.p6)(O,N)}),[O,N]),(0,a.useEffect)((()=>{O.isSuccess&&((0,L.wB)(t("Your profile was successfully updated."),N),P((0,y.Oo)()))}),[P,O,t,N]);const[ee,te]=(0,a.useState)("");(0,a.useEffect)((()=>{const t=window.localStorage.getItem(T.V0.em_color_scheme);e&&(H.setFieldsValue({theme:null!==t?t:T.IJ}),te(null!==t?t:T.IJ))}),[H,e]);const ne=(0,a.useCallback)((e=>{let t;if((0,S.Hk)(e),e===T.IJ){const e=matchMedia(T.F3).matches?T.nd:T.T;localStorage.removeItem(T.V0.em_color_scheme),t=e}else localStorage.setItem(T.V0.em_color_scheme,e),t=e;P((0,A.eX)(t===T.nd?`vs-${t}`:T.T)),(0,S.A5)(t)}),[P]),ae=(0,a.useCallback)((()=>{ee!==H.getFieldValue("theme")&&ne(ee),P((0,_.ww)(n.code_editor)),P((0,_.ko)(X)),P((0,y.Oo)())}),[n.code_editor,P,H,ee,ne,X]);let re=[{label:a.createElement(a.Fragment,null,a.createElement(g.A,null),t("Profile")),key:I,className:"em-analytics__profile-user",children:a.createElement(a.Fragment,null,a.createElement(i.A,{gutter:16},a.createElement(s.A,{span:12}," ",a.createElement(o.A.Item,{label:t("First name"),name:"firstName"},a.createElement(c.A,{placeholder:t("Enter your first name")}))),a.createElement(s.A,{span:12},a.createElement(o.A.Item,{label:t("Last name"),name:"lastName"},a.createElement(c.A,{placeholder:t("Enter your last name")})))),a.createElement(i.A,{gutter:16},a.createElement(s.A,{span:12},a.createElement(o.A.Item,{label:t("Email"),name:"email"},a.createElement(c.A,{disabled:!0,placeholder:t("Enter your email")}))),a.createElement(s.A,{span:12},a.createElement(o.A.Item,{label:t("Theme"),name:"theme"},a.createElement(l.A,{placeholder:t("Select a theme")},Z.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(B,{key:e.value,value:e.value},n)})))))),a.createElement(i.A,{gutter:16},a.createElement(s.A,{span:12},a.createElement(o.A.Item,{label:t("Newsletter Subscription"),valuePropName:"checked",name:["newsLetterConsent"]},a.createElement(d.A,null))),a.createElement(s.A,{span:12},a.createElement(o.A.Item,{label:t("Autosave in editor"),valuePropName:"checked",name:["autosaves"]},a.createElement(d.A,null)))))},{label:a.createElement(a.Fragment,null,a.createElement(b.A,null),t("Code editor")),key:"editor",className:"account-settings-codeiditor-tab-content em-analytics__profile-code-editor",children:a.createElement(a.Fragment,null,a.createElement(i.A,{gutter:16},a.createElement(s.A,{span:8},a.createElement(o.A.Item,{label:t("Font size"),name:["codeEditor","fontSize"]},a.createElement(k.A,{min:6,max:100}))),a.createElement(s.A,{span:8},a.createElement(o.A.Item,{label:t("Tab size"),name:["codeEditor","tabSize"]},a.createElement(k.A,{min:1,max:10}))),a.createElement(s.A,{span:8},a.createElement(o.A.Item,{label:t("Font family"),name:["codeEditor","fontFamily"]},a.createElement(l.A,{placeholder:t("Select a font family")},z.map((e=>a.createElement(B,{key:e.value,value:e.value},e.label))))))),a.createElement(i.A,{gutter:16},a.createElement(s.A,{span:8},a.createElement(o.A.Item,{label:t("Line wrap"),valuePropName:"checked",name:["codeEditor","wordWrap"],tooltip:{title:J,icon:a.createElement(f.A,null)}},a.createElement(d.A,null))),a.createElement(s.A,{span:8},a.createElement(o.A.Item,{label:t("Minimap"),valuePropName:"checked",name:["codeEditor","minimap"],tooltip:{title:t("Display the minimap."),icon:a.createElement(f.A,null)}},a.createElement(d.A,null))),a.createElement(s.A,{span:8},a.createElement(o.A.Item,{label:t("Insert spaces"),valuePropName:"checked",name:["codeEditor","insertSpaces"],tooltip:{title:t("Prefer spaces over tabs."),icon:a.createElement(f.A,null)}},a.createElement(d.A,null)))))},{label:a.createElement(a.Fragment,null,a.createElement(C.A,null),t("Security")),key:"security",className:"account-settings-security-tab-content em-analytics__profile-code-editor",children:a.createElement(a.Fragment,null,a.createElement(i.A,{gutter:16},a.createElement(s.A,{span:12},a.createElement(o.A.Item,{label:t("Current password"),name:"currentPassword"},a.createElement(c.A.Password,{readOnly:!U.currentPassword,onFocus:()=>G((e=>({...e,currentPassword:!0}))),ref:Y,placeholder:t("Enter your current password")})))),a.createElement(i.A,{gutter:16},a.createElement(s.A,{span:12},a.createElement(o.A.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"===q){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(c.A.Password,{readOnly:!U.newPassword,onFocus:()=>G((e=>({...e,newPassword:!0}))),placeholder:t("Enter your new password")}))),a.createElement(s.A,{span:12},a.createElement(o.A.Item,{label:t("Confirmation"),name:"confirmPassword",validateTrigger:["onSubmit"],rules:[{required:"security"===q,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(c.A.Password,{readOnly:!U.confirmPassword,onFocus:()=>G((e=>({...e,confirmPassword:!0}))),placeholder:t("Repeat the new password")})))))}];return a.createElement(m.A,{width:572,className:"account-settings blocks-modal",title:a.createElement("div",null,a.createElement(v.A,null)," ",t("Account settings")),open:e,onOk:Q,onCancel:ae,centered:!0,footer:[a.createElement(p.Ay,{key:"Update",size:"large",className:"em-analytics__profile-save",type:"primary",loading:O.isLoading,onClick:Q},t("Update"))]},a.createElement(o.A,{form:H,layout:"vertical",name:"edit_profile_form",onFinish:Q,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&&ne(e.theme);const t=e.codeEditor;e.language&&P((0,_.ko)(e.language)),e.codeEditor&&P((0,_.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(u.A,{activeKey:q,onChange:e=>$(e),items:re})))}},63837:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var a=n(98173),r=n(27499),l=n(201),o=n(66964),i=n(8218),s=n(38),c=n(48753),d=n(37969),m=n(93511),p=n(64909),u=n(2604),h=n(12543),g=n(12910),b=n(6302),f=n(67756),C=n(62041),v=n(1549),E=n(65716),y=n(23424),_=n(84572),A=n(32947),w=n(40277);const k="mainsettings",L="ftpsettings",S="webhooksettings",x=({isModalVisible:e,selectedProject:t=null})=>{const{__:n}=(0,h.s9)(),x=(0,u.wA)(),[T]=r.A.useForm(),B=(0,a.useRef)(null),I=(0,a.useRef)(null),M=(0,a.useRef)(null),N=(0,u.d4)(_.yN),R=(0,u.d4)(y.gU),P=(0,p.hN)(),H=(0,u.d4)(y.cL),[V,O]=(0,a.useState)(k),[j,D]=(0,a.useState)(!1),Z=t||N,F=[L,k,S].includes(R),[z,W]=(0,E.OD)();(0,a.useEffect)((()=>{if(H===A.lx.EDIT_PROJECT_MODAL){const e={mainsettings:B,ftpsettings:I,webhooksettings:M};setTimeout((()=>{var t;return null===(t=e[V].current)||void 0===t?void 0:t.focus({cursor:"end"})}),200)}}),[H,V]),(0,a.useEffect)((()=>{F&&O(R)}),[R,F,O,x]);let q=[{label:a.createElement(a.Fragment,null,a.createElement(g.A,null),n("Main settings")),key:k,className:"em-analytics__mainsettings-project",children:a.createElement(a.Fragment,null,a.createElement(l.A,{gutter:24},a.createElement(o.A,{span:24},a.createElement(r.A.Item,{label:n("Project name"),name:"name",extra:n("This can be\xa0the name of\xa0your company, department, website, project, marketing campaign, or\xa0other activity."),rules:[{required:!0,message:n("Please type the project name.")}]},a.createElement(i.A,{ref:B,placeholder:n("Type the project name"),style:{marginBottom:5}})))))},{label:a.createElement(a.Fragment,null,a.createElement(b.A,null),n("FTP settings")),key:L,className:"em-analytics__ftpsettings-project",children:a.createElement(a.Fragment,null,a.createElement(l.A,{gutter:24},a.createElement(o.A,{span:12},a.createElement(r.A.Item,{label:n("Host"),name:["ftpSettings","host"]},a.createElement(i.A,{ref:I,placeholder:n("Type the FTP host"),disabled:j}))),a.createElement(o.A,{span:12},a.createElement(r.A.Item,{label:n("Port"),name:["ftpSettings","port"]},a.createElement(i.A,{placeholder:n("Type the FTP port"),disabled:j})))),a.createElement(l.A,{gutter:24},a.createElement(o.A,{span:12},a.createElement(r.A.Item,{label:n("Directory"),name:["ftpSettings","directory"]},a.createElement(i.A,{placeholder:n("Type the file directory"),disabled:j}))),a.createElement(o.A,{span:12},a.createElement(r.A.Item,{label:n("URL catalog"),name:["ftpSettings","domain"]},a.createElement(i.A,{placeholder:n("Type the URL catalog"),disabled:j})))),a.createElement(l.A,{gutter:24},a.createElement(o.A,{span:12},a.createElement(r.A.Item,{label:n("Login"),name:["ftpSettings","login"]},a.createElement(i.A,{placeholder:n("Type the FTP login"),disabled:j}))),a.createElement(o.A,{span:12},a.createElement(r.A.Item,{label:n("Password"),name:["ftpSettings","password"]},a.createElement(i.A.Password,{placeholder:n("Type the FTP password"),disabled:j,iconRender:e=>e?a.createElement(f.A,null):a.createElement(C.A,null)})))),a.createElement(l.A,{gutter:24},a.createElement(o.A,{span:24},a.createElement(r.A.Item,{noStyle:!0},a.createElement(s.A,{checked:j,onChange:e=>D(Boolean(e.target.checked))},n("Use default CDN"))))))},{label:a.createElement(a.Fragment,null,a.createElement(g.A,null),n("Webhook settings")),key:S,className:"em-analytics__mainsettings-project",children:a.createElement(a.Fragment,null,a.createElement(l.A,{gutter:24},a.createElement(o.A,{span:24},a.createElement(r.A.Item,{label:n("Webhook settings"),name:"webhook",extra:n("Before exporting the project, make sure to provide the URL where the webhook request will be sent"),rules:[{type:"url",message:n("Please enter the correct URL.")},F&&{required:!0,message:n("Please type the webhook URL.")}]},a.createElement(i.A,{ref:M,placeholder:n("Type in the project's webhook"),style:{marginBottom:5}})))))}];(0,a.useEffect)((()=>{if(e&&Z){const e=Z.ftp_settings;D(e.use_default_cdn),T.setFieldsValue({name:Z.title,webhook:Z.webhook||"",ftpSettings:{host:e.host||"",port:e.port||"",directory:e.directory||"",domain:e.domain||"",login:e.login||"",password:e.password||""}})}}),[T,Z,e]);const $=()=>{T.validateFields().then((e=>{const t=e.ftpSettings;Z&&z({projectId:Z.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:j}:null}).then((({data:e,error:t})=>{e?e.title!==Z.title?P.success({message:n("The project \u201c")+Z.title+n("\u201d was successfully changed to \u201c")+e.title+n("\u201d."),placement:"bottomRight"}):P.success({message:n("The project settings was successfully saved."),placement:"bottomRight"}):t&&(0,w.p6)({error:t},P),x((0,y.YF)("")),x((0,y.Oo)())}))}))};return a.createElement(c.A,{title:a.createElement("div",null,a.createElement(v.A,null)," ",n("Project settings")),className:"blocks-modal",open:e,onOk:$,onCancel:()=>{x((0,y.YF)("")),x((0,y.Oo)())},centered:!0,footer:[a.createElement(d.Ay,{key:"submit",size:"large",className:"em-analytics__project-save",type:"primary",loading:W.isLoading,onClick:$},n("Update"))]},a.createElement(r.A,{form:T,layout:"vertical",name:`edit_project_form_${null===Z||void 0===Z?void 0:Z.id}`,onFinish:$,initialValues:{remember:!1,name:""},autoComplete:"off"},a.createElement(m.A,{activeKey:V,onChange:O,items:q})))};x.defaultProps={selectedProject:null};const T=x},50209:(e,t,n)=>{"use strict";n.d(t,{A:()=>H});var a=n(98173),r=n(62272),l=n(79245),o=n(40120),i=n(10423),s=n(59010),c=n(49856),d=n(67034),m=n(38927),p=n(37969),u=n(10267),h=n(82648),g=n(47214),b=n(78446),f=n(35076),C=n(38256),v=n(40186),E=n(71879),y=n(83612),_=n(2604),A=n(85591),w=n.n(A),k=n(52218),L=n.n(k),S=n(68984),x=n(98845),T=n(47014),B=n(45271),I=n(80223),M=n(40277),N=n(12543),R=n(32947);const{useToken:P}=o.A,H=({element:e,setSearchFilters:t=()=>{},isTrash:n=!1,foldersList:o,projectTags:A=[],foldersHandlers:k={}})=>{var H,V,O,j,D,Z,F,z,W,q,$,U,G,X,K;const{__:Y}=(0,N.s9)();let J=(0,r.zy)();const{projectId:Q}=(0,r.g)(),{owner:ee,admin:te}=(0,I.A)(),ne=(0,_.d4)(T.C1),ae=(0,a.useRef)(null),{token:re}=P(),{handleRecover:le,handleClone:oe,handlerChangeFolder:ie,handleRemove:se}=k,ce=e.hasOwnProperty("type")?R.IE:R.Tm,de=ce===R.Tm?R.zh:R.YY,me=ce===R.Tm?Y("New emails"):Y("New blocks"),pe=(e,t)=>`${e.pathname}/${t.id}`,[ue]=(0,S.pP)(),[he]=(0,x.Kh)(),ge=(e,t=Q,n)=>{const a=n?`&cacheControl=true&cache-hash=${L()(n)}`:"";return`https://scr.emcdn.ru/screenshot?${"block"===ce?"":"minHeight=620&"}delay=1000&width=800&fullPage=true&deviceScaleFactor=0.755&format=jpg&force=false${a}&url=${encodeURIComponent(`https://app.emailmaker.ru/get${ce}/${e}?secret_hash=${L()(`${t}${e}${R.KI}`)}&raw=true`)}`},be=(null===(H=e[ce===R.IE?"blockfolder":"folder"])||void 0===H?void 0:H[0])||null,fe={icon:a.createElement(u.A,{style:{fontSize:18}}),label:me,key:R.y2,onClick:t=>ie(t,e)},Ce=null===o||void 0===o?void 0:o.map((t=>({icon:a.createElement(h.A,{style:{fontSize:18}}),label:t.name,key:t.id,className:t.id,onClick:t=>ie(t,e)}))),ve=(null===Ce||void 0===Ce?void 0:Ce.filter((e=>!be||e.key!==be)))||[];be&&(null===ve||void 0===ve||ve.unshift(fe));let Ee=[];return(ee||te||(null===(V=ne.id)||void 0===V?void 0:V.toString())===(null===(O=e.author)||void 0===O?void 0:O.toString()))&&!n&&Ee.push({label:a.createElement(B.A,{key:"Lock",element:e}),icon:e.lock?a.createElement(g.A,{style:{fontSize:"16px"}}):a.createElement(b.A,{style:{fontSize:"16px"}})}),(ee||te||(null===(j=ne.id)||void 0===j?void 0:j.toString())===(null===(D=e.author)||void 0===D?void 0:D.toString()))&&!n&&ve.length>0&&Ee.push({label:Y("Transfer to folder"),icon:a.createElement(h.A,{style:{fontSize:"16px"}}),children:ve}),!n&&Ee.push({label:Y("Clone"),icon:a.createElement(f.A,{style:{fontSize:"16px"}}),key:"Clone",className:ce===R.IE?"em-analytics__block-clone":"em-analytics__email-clone",disabled:ce===R.IE?ue.isLoading:he.isLoading,onClick:()=>oe(e)}),(ee||te||(null===(Z=ne.id)||void 0===Z?void 0:Z.toString())===(null===(F=e.author)||void 0===F?void 0:F.toString()))&&n&&Ee.push({label:Y("Recover"),icon:a.createElement(C.A,{style:{fontSize:"16px"}}),key:"Recover",onClick:()=>le(e)}),(ee||te||(null===(z=ne.id)||void 0===z?void 0:z.toString())===(null===(W=e.author)||void 0===W?void 0:W.toString()))&&Ee.push({label:Y("Remove"),icon:a.createElement(v.A,{style:{fontSize:"16px"}}),key:"Remove",style:{color:"#ff4d4f"},className:ce===R.IE?"em-analytics__block-remove":"em-analytics__email-remove",onClick:()=>se(e)}),a.createElement(i.A,{className:`element-card element-card_${ce}`,hoverable:!0,"data-testid":e.id,cover:a.createElement(a.Fragment,null,a.createElement(s.A,{loading:"true",active:!0,avatar:!0,style:{position:"absolute",width:"83%",margin:"50px 10% 0 7%"}}),a.createElement(l.N_,{ref:ae,className:"element-card__img-wrapper",to:n?"":pe(J,e),onMouseMove:e=>(0,M.Hy)(e,ae.current),style:{cursor:n?"default":"pointer"},onMouseLeave:M.Tr},ge(e.id,e.project,e.modified)&&a.createElement("img",{className:"element-card__img",alt:e.title,src:ge(e.id,e.project,e.modified)})),(e.is_template||(null===(q=e.acf)||void 0===q?void 0:q.is_template))&&a.createElement("div",{className:"element-card__is-template-wrapper"},Y("Template")),(null===($=e[de])||void 0===$?void 0:$.length)&&a.createElement("div",{className:"element-card__tags-wrapper"},a.createElement(c.A,{wrap:!0,size:8},e[de].map((e=>{const n=null===A||void 0===A?void 0:A.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(d.A,{color:re.colorPrimary,style:{borderRadius:6},key:n.id,onClick:()=>t(null,n.id)},n.name)})))))},a.createElement("div",{className:"ant-card-body__left"},a.createElement(l.N_,{to:n?"":pe(J,e),style:{cursor:n?"default":"pointer"}},a.createElement("span",{className:"element-card__title"},e.lock&&a.createElement(b.A,{className:w()("lock-icon",{"lock-icon__disabled":!(ee||te||(null===(U=ne.id)||void 0===U?void 0:U.toString())===(null===(G=e.author)||void 0===G?void 0:G.toString()))})}),(null===(X=e.title)||void 0===X?void 0:X.trim())||(null===(K=e.subject)||void 0===K?void 0:K.trim()))),a.createElement("p",{className:"element-card__date"},Y("Last update: ")," ",(0,M.Yq)((0,y.A)(e.modified),Y))),a.createElement("div",{className:"ant-card-body__right"},a.createElement(m.A,{menu:{items:Ee},arrow:"true",placement:"bottom",trigger:["hover"]},a.createElement(p.Ay,{type:"default",className:"element-card_menu",onClick:()=>{}},a.createElement(E.A,{key:"menu-button",style:{fontSize:"16px"}})))))}},8807:(e,t,n)=>{"use strict";n.d(t,{A:()=>_a});var a=n(98173),r=n(5558),l=n(27941);const o=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"chat-gpt",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M11.1396 4.91121C11.2741 4.50723 11.3208 4.07922 11.2764 3.65577C11.2321 3.23232 11.0979 2.82323 10.8827 2.45587C10.5636 1.90021 10.0763 1.46028 9.49105 1.19955C8.90578 0.938823 8.2528 0.870777 7.62631 1.00523C7.34374 0.68679 6.99643 0.432375 6.60757 0.259023C6.21871 0.0856726 5.79733 -0.00261924 5.3716 5.91632e-05C4.7311 -0.00148674 4.10665 0.200409 3.58828 0.576642C3.06991 0.952872 2.68442 1.484 2.48737 2.09345C2.07011 2.17886 1.67592 2.35242 1.33117 2.60252C0.98642 2.85261 0.699078 3.17346 0.488376 3.5436C0.166798 4.09773 0.02953 4.73964 0.0963679 5.37684C0.163206 6.01401 0.430694 6.61347 0.860259 7.08879C0.725757 7.49277 0.679098 7.92078 0.723405 8.34423C0.767712 8.76768 0.901962 9.17676 1.11717 9.54414C1.43623 10.0998 1.92355 10.5397 2.50882 10.8004C3.09409 11.0611 3.74707 11.1292 4.37353 10.9948C4.6561 11.3132 5.00344 11.5676 5.39227 11.741C5.78113 11.9143 6.20251 12.0026 6.62824 11.9999C7.26907 12.0016 7.89385 11.7996 8.4124 11.4232C8.93098 11.0467 9.31654 10.5152 9.51343 9.90537C9.93067 9.81996 10.3249 9.64641 10.6696 9.3963C11.0144 9.14622 11.3017 8.82534 11.5124 8.4552C11.8336 7.90113 11.9705 7.25937 11.9035 6.62244C11.8365 5.98551 11.569 5.38632 11.1396 4.91121ZM6.6292 11.2155C6.10315 11.2162 5.59363 11.032 5.18968 10.695C5.20789 10.6851 5.23984 10.6676 5.26066 10.6548L7.64998 9.27468C7.70995 9.24057 7.75975 9.1911 7.79425 9.13134C7.82878 9.07158 7.84675 9.00372 7.84633 8.93475V5.56626L8.85625 6.1494C8.86153 6.15204 8.86609 6.15594 8.86954 6.16077C8.87296 6.1656 8.87512 6.17121 8.87587 6.17706V8.96667C8.87512 9.5625 8.63824 10.1337 8.21713 10.5552C7.79602 10.9768 7.225 11.2142 6.6292 11.2155ZM1.79754 9.15192C1.53405 8.69664 1.43908 8.16321 1.52927 7.64496C1.54701 7.65561 1.578 7.67454 1.60024 7.68732L3.98956 9.06744C4.04911 9.10224 4.11685 9.1206 4.18582 9.1206C4.25476 9.1206 4.3225 9.10224 4.38205 9.06744L7.29916 7.38309V8.54937C7.29949 8.55531 7.29835 8.56128 7.29583 8.56668C7.29331 8.57208 7.2895 8.57679 7.28473 8.58036L4.86937 9.97491C4.35274 10.2725 3.73915 10.3529 3.16327 10.1986C2.58738 10.0443 2.09621 9.66789 1.79754 9.15192ZM1.16898 3.93582C1.43133 3.47994 1.8457 3.13092 2.33951 2.94981C2.33951 2.97039 2.33833 3.00684 2.33833 3.03213V5.7924C2.33791 5.86134 2.35586 5.92914 2.39033 5.98887C2.42479 6.04857 2.47454 6.09801 2.53445 6.13212L5.45155 7.81626L4.44166 8.39937C4.43668 8.40267 4.43095 8.40465 4.42501 8.40519C4.41907 8.40573 4.41307 8.4048 4.40758 8.40246L1.992 7.00671C1.47626 6.70803 1.10001 6.21705 0.945726 5.64138C0.791445 5.06574 0.871731 4.45239 1.16898 3.93582ZM9.46636 5.86668L6.54922 4.18233L7.55914 3.59943C7.56412 3.59616 7.56985 3.59415 7.57579 3.59361C7.58173 3.59307 7.5877 3.59403 7.59319 3.59637L10.0088 4.99092C10.3789 5.2047 10.6804 5.51946 10.878 5.89839C11.0757 6.27732 11.1613 6.7047 11.1248 7.13052C11.0884 7.55634 10.9313 7.96296 10.6721 8.30277C10.4129 8.64258 10.0623 8.90151 9.66127 9.04923C9.66127 9.02841 9.66127 8.99199 9.66127 8.96667V6.2064C9.66184 6.13758 9.64408 6.06984 9.60982 6.01014C9.57556 5.95044 9.52606 5.90094 9.46636 5.86668ZM10.4715 4.35384C10.4538 4.34295 10.4228 4.32426 10.4006 4.31151L8.01121 2.93136C7.95166 2.89662 7.88395 2.87829 7.81498 2.87829C7.74604 2.87829 7.6783 2.89662 7.61875 2.93136L4.70164 4.61574V3.44946C4.70131 3.44349 4.70245 3.43755 4.70497 3.43215C4.70749 3.42675 4.7113 3.42204 4.71607 3.41847L7.13143 2.02508C7.50145 1.81171 7.9246 1.70813 8.35135 1.72645C8.7781 1.74477 9.19078 1.88423 9.54118 2.12852C9.89155 2.37282 10.1651 2.71184 10.3299 3.10593C10.4946 3.50001 10.5438 3.93285 10.4715 4.35384ZM4.15258 6.43257L3.14242 5.84943C3.13714 5.84679 3.13255 5.84289 3.12913 5.83806C3.12571 5.83323 3.12352 5.82762 3.1228 5.82174V3.03213C3.12307 2.60489 3.24505 2.18654 3.47443 1.82609C3.70384 1.46563 4.03117 1.17798 4.41811 0.996792C4.80505 0.815607 5.23558 0.748392 5.65933 0.80301C6.08311 0.857628 6.48253 1.03182 6.81088 1.3052C6.79267 1.31514 6.76096 1.33265 6.7399 1.34542L4.35058 2.72555C4.29061 2.75963 4.24084 2.80907 4.20631 2.86878C4.17181 2.92848 4.15384 2.99631 4.15423 3.06525L4.15258 6.43257ZM4.70116 5.24973L6.0004 4.49934L7.29961 5.24925V6.74955L6.0004 7.49949L4.70116 6.74955V5.24973Z"})),i=({props:e})=>a.createElement(r.A,Object.assign({component:o},e)),s=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"arrow-left",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"})),c=({props:e})=>a.createElement(r.A,Object.assign({component:s},e)),d=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"styles-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M10.6725 11.5528C11.4031 11.5528 12 10.9475 12 10.2069C12 9.31236 10.6725 7.85275 10.6725 7.85275C10.6725 7.85275 9.34494 9.31236 9.34494 10.2069C9.34494 10.9475 9.94183 11.5528 10.6725 11.5528ZM4.36755 10.8154C4.48626 10.9342 4.67853 10.9342 4.79557 10.8154L9.07743 6.53525C9.19614 6.41654 9.19614 6.22427 9.07743 6.10723L4.79724 1.82704C4.78721 1.81701 4.77551 1.80698 4.7638 1.79862L3.45634 0.491154C3.42783 0.463014 3.38939 0.447235 3.34933 0.447235C3.30928 0.447235 3.27083 0.463014 3.24233 0.491154L2.43979 1.29369C2.41165 1.3222 2.39587 1.36064 2.39587 1.40069C2.39587 1.44075 2.41165 1.47919 2.43979 1.5077L3.56334 2.63125L0.0890313 6.10723C-0.0296771 6.22594 -0.0296771 6.41822 0.0890313 6.53525L4.36755 10.8154ZM4.58323 3.31508L7.57435 6.30619H1.59379L4.58323 3.31508Z"})),m=({props:e})=>a.createElement(r.A,Object.assign({component:d},e)),p=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"close-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.94975 10.9497L1.24264 10.2426L5.48528 6L1.24264 1.75736L1.94975 1.05025L6.19239 5.29289L10.435 1.05025L11.1421 1.75736L6.89949 6L11.1421 10.2426L10.435 10.9497L6.19239 6.70711L1.94975 10.9497Z"})),u=({props:e})=>a.createElement(r.A,Object.assign({component:p},e)),h=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"drop-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6 0L5.61832 0.458015C5.61832 0.458015 4.64123 1.6355 3.64886 3.09924C3.15268 3.83206 2.64123 4.63168 2.25955 5.40458C1.87787 6.17748 1.60306 6.91794 1.60306 7.60305C1.60306 10.0191 3.58397 12 6 12C8.41603 12 10.397 10.0191 10.397 7.60305C10.397 6.91794 10.1221 6.17748 9.74046 5.40458C9.35878 4.63168 8.84733 3.83206 8.35115 3.09924C7.35878 1.6355 6.38168 0.458015 6.38168 0.458015L6 0ZM6 1.57252C6.27291 1.91031 6.78436 2.50954 7.55726 3.64885C8.03817 4.35687 8.50382 5.1374 8.85497 5.84733C9.20611 6.55725 9.41985 7.21374 9.41985 7.60305C9.41985 9.48664 7.88359 11.0229 6 11.0229C4.11642 11.0229 2.58016 9.48664 2.58016 7.60305C2.58016 7.21374 2.7939 6.55725 3.14504 5.84733C3.49619 5.1374 3.96184 4.35687 4.44275 3.64885C5.21565 2.50954 5.7271 1.91031 6 1.57252ZM3.55726 7.60305C3.55726 8.94466 4.6584 10.0458 6 10.0458V9.0687C5.19084 9.0687 4.53436 8.41221 4.53436 7.60305H3.55726Z"})),g=({props:e})=>a.createElement(r.A,Object.assign({component:h},e)),b=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"dark-white",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0 6C0 2.68629 2.68629 0 6 0C9.31339 0 12 2.68661 12 6C12 9.31339 9.31339 12 6 12C2.68629 12 0 9.31371 0 6ZM6 10.9821C8.75089 10.9821 10.9821 8.75089 10.9821 6C10.9821 3.24911 8.75089 1.01786 6 1.01786V10.9821Z"})),f=({props:e})=>a.createElement(r.A,Object.assign({component:b},e)),C=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"min-width-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.35714 1.07143H0.607143C0.548214 1.07143 0.5 1.11964 0.5 1.17857V1.92857C0.5 1.9875 0.548214 2.03571 0.607143 2.03571H1.35714C1.41607 2.03571 1.46429 1.9875 1.46429 1.92857V1.17857C1.46429 1.11964 1.41607 1.07143 1.35714 1.07143ZM1.35714 3.29464H0.607143C0.548214 3.29464 0.5 3.34286 0.5 3.40178V4.15178C0.5 4.21071 0.548214 4.25893 0.607143 4.25893H1.35714C1.41607 4.25893 1.46429 4.21071 1.46429 4.15178V3.40178C1.46429 3.34286 1.41607 3.29464 1.35714 3.29464ZM1.35714 7.74107H0.607143C0.548214 7.74107 0.5 7.78928 0.5 7.84821V8.59821C0.5 8.65714 0.548214 8.70536 0.607143 8.70536H1.35714C1.41607 8.70536 1.46429 8.65714 1.46429 8.59821V7.84821C1.46429 7.78928 1.41607 7.74107 1.35714 7.74107ZM1.35714 9.96428H0.607143C0.548214 9.96428 0.5 10.0125 0.5 10.0714V10.8214C0.5 10.8804 0.548214 10.9286 0.607143 10.9286H1.35714C1.41607 10.9286 1.46429 10.8804 1.46429 10.8214V10.0714C1.46429 10.0125 1.41607 9.96428 1.35714 9.96428ZM1.35714 5.51786H0.607143C0.548214 5.51786 0.5 5.56607 0.5 5.625V6.375C0.5 6.43393 0.548214 6.48214 0.607143 6.48214H1.35714C1.41607 6.48214 1.46429 6.43393 1.46429 6.375V5.625C1.46429 5.56607 1.41607 5.51786 1.35714 5.51786Z"}),a.createElement("path",{d:"M11.3571 1.07143H10.6071C10.5482 1.07143 10.5 1.11964 10.5 1.17857V1.92857C10.5 1.9875 10.5482 2.03571 10.6071 2.03571H11.3571C11.4161 2.03571 11.4643 1.9875 11.4643 1.92857V1.17857C11.4643 1.11964 11.4161 1.07143 11.3571 1.07143ZM11.3571 3.29464H10.6071C10.5482 3.29464 10.5 3.34286 10.5 3.40178V4.15178C10.5 4.21071 10.5482 4.25893 10.6071 4.25893H11.3571C11.4161 4.25893 11.4643 4.21071 11.4643 4.15178V3.40178C11.4643 3.34286 11.4161 3.29464 11.3571 3.29464ZM11.3571 7.74107H10.6071C10.5482 7.74107 10.5 7.78928 10.5 7.84821V8.59821C10.5 8.65714 10.5482 8.70536 10.6071 8.70536H11.3571C11.4161 8.70536 11.4643 8.65714 11.4643 8.59821V7.84821C11.4643 7.78928 11.4161 7.74107 11.3571 7.74107ZM11.3571 9.96428H10.6071C10.5482 9.96428 10.5 10.0125 10.5 10.0714V10.8214C10.5 10.8804 10.5482 10.9286 10.6071 10.9286H11.3571C11.4161 10.9286 11.4643 10.8804 11.4643 10.8214V10.0714C11.4643 10.0125 11.4161 9.96428 11.3571 9.96428ZM11.3571 5.51786H10.6071C10.5482 5.51786 10.5 5.56607 10.5 5.625V6.375C10.5 6.43393 10.5482 6.48214 10.6071 6.48214H11.3571C11.4161 6.48214 11.4643 6.43393 11.4643 6.375V5.625C11.4643 5.56607 11.4161 5.51786 11.3571 5.51786Z"}),a.createElement("path",{d:"M11 5.51786H8.20535V4.67679C8.20535 4.59644 8.1116 4.5509 8.04865 4.60045L6.33973 5.95045C6.32816 5.95939 6.3188 5.97086 6.31236 5.98397C6.30592 5.99709 6.30257 6.01151 6.30257 6.02612C6.30257 6.04074 6.30592 6.05516 6.31236 6.06827C6.3188 6.08139 6.32816 6.09286 6.33973 6.10179L8.04732 7.45179C8.11026 7.50135 8.20401 7.45715 8.20401 7.37545V6.48215H11V5.51786Z"}),a.createElement("path",{d:"M1 5.51786H3.79465V4.67679C3.79465 4.59644 3.8884 4.5509 3.95135 4.60045L5.66027 5.95045C5.67184 5.95939 5.6812 5.97086 5.68764 5.98397C5.69408 5.99709 5.69743 6.01151 5.69743 6.02612C5.69743 6.04074 5.69408 6.05516 5.68764 6.06827C5.6812 6.08139 5.67184 6.09286 5.66027 6.10179L3.95268 7.45179C3.88974 7.50135 3.79599 7.45715 3.79599 7.37545V6.48215H1V5.51786Z"})),v=({props:e})=>a.createElement(r.A,Object.assign({component:C},e)),E=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"max-width-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.35714 1.07143H0.607143C0.548214 1.07143 0.5 1.11964 0.5 1.17857V1.92857C0.5 1.9875 0.548214 2.03571 0.607143 2.03571H1.35714C1.41607 2.03571 1.46429 1.9875 1.46429 1.92857V1.17857C1.46429 1.11964 1.41607 1.07143 1.35714 1.07143ZM1.35714 3.29464H0.607143C0.548214 3.29464 0.5 3.34286 0.5 3.40178V4.15178C0.5 4.21071 0.548214 4.25893 0.607143 4.25893H1.35714C1.41607 4.25893 1.46429 4.21071 1.46429 4.15178V3.40178C1.46429 3.34286 1.41607 3.29464 1.35714 3.29464ZM1.35714 7.74107H0.607143C0.548214 7.74107 0.5 7.78928 0.5 7.84821V8.59821C0.5 8.65714 0.548214 8.70536 0.607143 8.70536H1.35714C1.41607 8.70536 1.46429 8.65714 1.46429 8.59821V7.84821C1.46429 7.78928 1.41607 7.74107 1.35714 7.74107ZM1.35714 9.96428H0.607143C0.548214 9.96428 0.5 10.0125 0.5 10.0714V10.8214C0.5 10.8804 0.548214 10.9286 0.607143 10.9286H1.35714C1.41607 10.9286 1.46429 10.8804 1.46429 10.8214V10.0714C1.46429 10.0125 1.41607 9.96428 1.35714 9.96428ZM1.35714 5.51786H0.607143C0.548214 5.51786 0.5 5.56607 0.5 5.625V6.375C0.5 6.43393 0.548214 6.48214 0.607143 6.48214H1.35714C1.41607 6.48214 1.46429 6.43393 1.46429 6.375V5.625C1.46429 5.56607 1.41607 5.51786 1.35714 5.51786Z"}),a.createElement("path",{d:"M11.3571 1.07143H10.6071C10.5482 1.07143 10.5 1.11964 10.5 1.17857V1.92857C10.5 1.9875 10.5482 2.03571 10.6071 2.03571H11.3571C11.4161 2.03571 11.4643 1.9875 11.4643 1.92857V1.17857C11.4643 1.11964 11.4161 1.07143 11.3571 1.07143ZM11.3571 3.29464H10.6071C10.5482 3.29464 10.5 3.34286 10.5 3.40178V4.15178C10.5 4.21071 10.5482 4.25893 10.6071 4.25893H11.3571C11.4161 4.25893 11.4643 4.21071 11.4643 4.15178V3.40178C11.4643 3.34286 11.4161 3.29464 11.3571 3.29464ZM11.3571 7.74107H10.6071C10.5482 7.74107 10.5 7.78928 10.5 7.84821V8.59821C10.5 8.65714 10.5482 8.70536 10.6071 8.70536H11.3571C11.4161 8.70536 11.4643 8.65714 11.4643 8.59821V7.84821C11.4643 7.78928 11.4161 7.74107 11.3571 7.74107ZM11.3571 9.96428H10.6071C10.5482 9.96428 10.5 10.0125 10.5 10.0714V10.8214C10.5 10.8804 10.5482 10.9286 10.6071 10.9286H11.3571C11.4161 10.9286 11.4643 10.8804 11.4643 10.8214V10.0714C11.4643 10.0125 11.4161 9.96428 11.3571 9.96428ZM11.3571 5.51786H10.6071C10.5482 5.51786 10.5 5.56607 10.5 5.625V6.375C10.5 6.43393 10.5482 6.48214 10.6071 6.48214H11.3571C11.4161 6.48214 11.4643 6.43393 11.4643 6.375V5.625C11.4643 5.56607 11.4161 5.51786 11.3571 5.51786Z"}),a.createElement("path",{d:"M7.95133 4.54822L9.66026 5.89688C9.70848 5.93572 9.70848 6.01072 9.65758 6.04956L7.94999 7.39956C7.88705 7.44911 7.7933 7.40358 7.7933 7.32322V6.48215H4.20401V7.37545C4.20401 7.45715 4.11026 7.50135 4.04732 7.45179L2.33973 6.10179C2.32816 6.09286 2.3188 6.08139 2.31236 6.06827C2.30592 6.05516 2.30257 6.04074 2.30257 6.02612C2.30257 6.01151 2.30592 5.99709 2.31236 5.98397C2.3188 5.97085 2.32816 5.95939 2.33973 5.95045L4.04865 4.60045C4.1116 4.5509 4.20535 4.59644 4.20535 4.67679V5.51786H7.79464V4.62456C7.79459 4.60637 7.79967 4.58853 7.8093 4.57309C7.81892 4.55766 7.8327 4.54524 7.84906 4.53728C7.86541 4.52931 7.88368 4.52611 7.90177 4.52805C7.91986 4.52998 7.93703 4.53697 7.95133 4.54822Z"})),y=({props:e})=>a.createElement(r.A,Object.assign({component:E},e)),_=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"bg-position-horizontal",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("g",null,a.createElement("path",{opacity:"0.3",d:"M10.9286 0.85734H1.07142C0.834371 0.85734 0.642853 1.04886 0.642853 1.28591V11.1431C0.642853 11.3801 0.834371 11.5716 1.07142 11.5716H2.5958C2.65473 11.5716 2.70295 11.5234 2.70295 11.4645V10.7145C2.70295 10.6556 2.65473 10.6073 2.5958 10.6073H1.60714V1.82163H10.3929V5.10734C10.3929 5.16627 10.4411 5.21448 10.5 5.21448H11.25C11.3089 5.21448 11.3571 5.16627 11.3571 5.10734V1.28591C11.3571 1.04886 11.1656 0.85734 10.9286 0.85734Z"}),a.createElement("path",{d:"M10.9286 5.95536H3.85715C3.62009 5.95536 3.42857 6.14688 3.42857 6.38393V10.9286C3.42857 11.1656 3.62009 11.3571 3.85715 11.3571H10.9286C11.1656 11.3571 11.3571 11.1656 11.3571 10.9286V6.38393C11.3571 6.14688 11.1656 5.95536 10.9286 5.95536ZM10.3393 10.3393H4.44643V6.97322H10.3393V10.3393Z"}),a.createElement("path",{d:"M3.15129 3.31274H6.94594V2.47167C6.94594 2.39132 7.03969 2.34578 7.10264 2.39533L8.81157 3.74533C8.82313 3.75427 8.83249 3.76574 8.83893 3.77885C8.84537 3.79197 8.84872 3.80639 8.84872 3.821C8.84872 3.83562 8.84537 3.85004 8.83893 3.86315C8.83249 3.87627 8.82313 3.88774 8.81157 3.89667L7.10398 5.24667C7.04103 5.29623 6.94728 5.25203 6.94728 5.17033V4.27703H3.15129V3.31274Z"}))),A=({props:e})=>a.createElement(r.A,Object.assign({component:_},e)),w=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"bg-position-vertical",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("g",null,a.createElement("path",{opacity:"0.3",d:"M0.642854 11.143L0.642854 1.2859C0.642854 1.04885 0.834372 0.85733 1.07143 0.85733L10.9286 0.857331C11.1656 0.857331 11.3571 1.04885 11.3571 1.2859L11.3571 2.81028C11.3571 2.86921 11.3089 2.91742 11.25 2.91742L10.5 2.91742C10.4411 2.91742 10.3929 2.86921 10.3929 2.81028L10.3929 1.82162L1.60714 1.82162L1.60714 10.6073L4.89285 10.6073C4.95178 10.6073 5 10.6555 5 10.7145L5 11.4645C5 11.5234 4.95178 11.5716 4.89285 11.5716L1.07143 11.5716C0.834372 11.5716 0.642854 11.3801 0.642854 11.143Z"}),a.createElement("path",{d:"M5.74087 11.1431L5.74088 4.07162C5.74088 3.83457 5.93239 3.64305 6.16945 3.64305L10.7141 3.64305C10.9511 3.64305 11.1427 3.83457 11.1427 4.07162L11.1427 11.1431C11.1427 11.3801 10.9511 11.5716 10.7141 11.5716L6.16945 11.5716C5.93239 11.5716 5.74087 11.3801 5.74087 11.1431ZM10.1248 10.5538L10.1248 4.66091L6.75873 4.66091L6.75873 10.5538L10.1248 10.5538Z"}),a.createElement("path",{d:"M3.09827 3.36576L3.09827 7.1604L2.2572 7.1604C2.17684 7.1604 2.1313 7.25415 2.18086 7.3171L3.53086 9.02603C3.53979 9.03759 3.55126 9.04695 3.56438 9.0534C3.57749 9.05984 3.59191 9.06319 3.60653 9.06319C3.62114 9.06319 3.63556 9.05984 3.64868 9.0534C3.66179 9.04695 3.67326 9.03759 3.6822 9.02603L5.0322 7.31844C5.08175 7.25549 5.03755 7.16174 4.95586 7.16174L4.06255 7.16174L4.06255 3.36576L3.09827 3.36576Z"}))),k=({props:e})=>a.createElement(r.A,Object.assign({component:w},e)),L=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"up-to-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("g",null,a.createElement("path",{d:"M11.3571 1.07142L11.3571 10.9286C11.3571 11.1656 11.1656 11.3571 10.9286 11.3571H1.07142C0.834364 11.3571 0.642846 11.1656 0.642846 10.9286V6.10714C0.642846 6.04821 0.69106 6 0.749989 6H1.49999C1.55892 6 1.60713 6.04821 1.60713 6.10714V10.3929H10.3928L10.3928 1.60714L6.10713 1.60714C6.0482 1.60714 5.99999 1.55892 5.99999 1.5V0.749995C5.99999 0.691067 6.0482 0.642853 6.10713 0.642853L10.9286 0.642853C11.1656 0.642853 11.3571 0.834371 11.3571 1.07142Z"}),a.createElement("path",{d:"M1.80978 2.53298L1.11067 3.23209C1.09644 3.24625 1.07852 3.25614 1.05895 3.26062C1.03938 3.2651 1.01894 3.264 0.999964 3.25744C0.980987 3.25088 0.964231 3.23913 0.951603 3.22352C0.938975 3.20791 0.93098 3.18907 0.928529 3.16914L0.647279 0.766466C0.639243 0.698162 0.696833 0.639233 0.766476 0.647269L3.16916 0.928519C3.25755 0.939233 3.29505 1.04772 3.2321 1.11066L2.53032 1.81245L5.96156 5.2437C6.00308 5.28522 6.00308 5.35352 5.96156 5.39504L5.39371 5.96289C5.35219 6.00441 5.28389 6.00441 5.24237 5.96289L1.80978 2.53298Z"}))),S=({props:e})=>a.createElement(r.A,Object.assign({component:L},e)),x=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"vertical-offset-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M4.92856 10.4987L4.92856 1.17859C4.92856 1.11966 4.88034 1.07144 4.82141 1.07144L4.01784 1.07144C3.95891 1.07144 3.9107 1.11966 3.9107 1.17859L3.9107 9.28394L1.45981 7.35135C1.39016 7.29644 1.2857 7.346 1.2857 7.43573L1.2857 8.40671C1.2857 8.47234 1.31516 8.53394 1.3674 8.57546L4.23481 10.8362C4.51606 11.0572 4.92856 10.8576 4.92856 10.4987ZM8.08927 10.8214L8.08927 2.71609L10.5402 4.64868C10.6098 4.70359 10.7143 4.65403 10.7143 4.5643L10.7143 3.59332C10.7143 3.52769 10.6848 3.46609 10.6326 3.42457L7.76516 1.16385C7.48391 0.942871 7.07141 1.14243 7.07141 1.50001L7.07141 10.8214C7.07141 10.8804 7.11963 10.9286 7.17856 10.9286L7.98213 10.9286C8.04106 10.9286 8.08927 10.8804 8.08927 10.8214Z"})),T=({props:e})=>a.createElement(r.A,Object.assign({component:x},e)),B=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-horizontal-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.85714 1.07143H1.10714C1.04821 1.07143 1 1.11964 1 1.17857V10.8214C1 10.8804 1.04821 10.9286 1.10714 10.9286H1.85714C1.91607 10.9286 1.96429 10.8804 1.96429 10.8214V1.17857C1.96429 1.11964 1.91607 1.07143 1.85714 1.07143Z"}),a.createElement("path",{d:"M7.85714 7H3.10714C3.04821 7 3 7.04821 3 7.10714V8.85714C3 8.91607 3.04821 8.96429 3.10714 8.96429H7.85714C7.91607 8.96429 7.96429 8.91607 7.96429 8.85714V7.10714C7.96429 7.04821 7.91607 7 7.85714 7Z"}),a.createElement("path",{d:"M10.8571 3H3.10714C3.04821 3 3 3.04821 3 3.10714V4.85714C3 4.91607 3.04821 4.96429 3.10714 4.96429H10.8571C10.9161 4.96429 10.9643 4.91607 10.9643 4.85714V3.10714C10.9643 3.04821 10.9161 3 10.8571 3Z"})),I=({props:e})=>a.createElement(r.A,Object.assign({component:B},e)),M=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-horizontal-center-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6.375 1.07143H5.625C5.56607 1.07143 5.51786 1.11964 5.51786 1.17857V10.8214C5.51786 10.8804 5.56607 10.9286 5.625 10.9286H6.375C6.43393 10.9286 6.48214 10.8804 6.48214 10.8214V1.17857C6.48214 1.11964 6.43393 1.07143 6.375 1.07143Z"}),a.createElement("path",{d:"M8.85714 7H3.10714C3.04821 7 3 7.04821 3 7.10714V8.85714C3 8.91607 3.04821 8.96429 3.10714 8.96429H8.85714C8.91607 8.96429 8.96429 8.91607 8.96429 8.85714V7.10714C8.96429 7.04821 8.91607 7 8.85714 7Z"}),a.createElement("path",{d:"M10.8571 3H1.10714C1.04821 3 1 3.04821 1 3.10714V4.85714C1 4.91607 1.04821 4.96429 1.10714 4.96429H10.8571C10.9161 4.96429 10.9643 4.91607 10.9643 4.85714V3.10714C10.9643 3.04821 10.9161 3 10.8571 3Z"})),N=({props:e})=>a.createElement(r.A,Object.assign({component:M},e)),R=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-horizontal-right-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M10.1429 1.07143H10.8929C10.9518 1.07143 11 1.11964 11 1.17857V10.8214C11 10.8804 10.9518 10.9286 10.8929 10.9286H10.1429C10.0839 10.9286 10.0357 10.8804 10.0357 10.8214V1.17857C10.0357 1.11964 10.0839 1.07143 10.1429 1.07143Z"}),a.createElement("path",{d:"M4.14286 7H8.89286C8.95179 7 9 7.04821 9 7.10714V8.85714C9 8.91607 8.95179 8.96429 8.89286 8.96429H4.14286C4.08393 8.96429 4.03571 8.91607 4.03571 8.85714V7.10714C4.03571 7.04821 4.08393 7 4.14286 7Z"}),a.createElement("path",{d:"M1.14286 3H8.89286C8.95179 3 9 3.04821 9 3.10714V4.85714C9 4.91607 8.95179 4.96429 8.89286 4.96429H1.14286C1.08393 4.96429 1.03571 4.91607 1.03571 4.85714V3.10714C1.03571 3.04821 1.08393 3 1.14286 3Z"})),P=({props:e})=>a.createElement(r.A,Object.assign({component:R},e)),H=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-vertical-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.07143 1.85714L1.07143 1.10714C1.07143 1.04821 1.11964 1 1.17857 1L10.8214 1C10.8804 1 10.9286 1.04821 10.9286 1.10714L10.9286 1.85714C10.9286 1.91607 10.8804 1.96429 10.8214 1.96429L1.17857 1.96429C1.11964 1.96429 1.07143 1.91607 1.07143 1.85714Z"}),a.createElement("path",{d:"M7 7.85714L7 3.10714C7 3.04821 7.04821 3 7.10714 3L8.85714 3C8.91607 3 8.96429 3.04821 8.96429 3.10714L8.96429 7.85714C8.96429 7.91607 8.91607 7.96429 8.85714 7.96429L7.10714 7.96429C7.04821 7.96429 7 7.91607 7 7.85714Z"}),a.createElement("path",{d:"M3 10.8571L3 3.10714C3 3.04821 3.04821 3 3.10714 3L4.85714 3C4.91607 3 4.96429 3.04821 4.96429 3.10714L4.96429 10.8571C4.96429 10.9161 4.91607 10.9643 4.85714 10.9643L3.10714 10.9643C3.04821 10.9643 3 10.9161 3 10.8571Z"})),V=({props:e})=>a.createElement(r.A,Object.assign({component:H},e)),O=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-vertical-center-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.07143 5.625L1.07143 6.375C1.07143 6.43393 1.11964 6.48215 1.17857 6.48215L10.8214 6.48215C10.8804 6.48215 10.9286 6.43393 10.9286 6.375L10.9286 5.625C10.9286 5.56608 10.8804 5.51786 10.8214 5.51786L1.17857 5.51786C1.11964 5.51786 1.07143 5.56608 1.07143 5.625Z"}),a.createElement("path",{d:"M7 3.14286L7 8.89286C7 8.95179 7.04821 9 7.10714 9L8.85714 9C8.91607 9 8.96429 8.95179 8.96429 8.89286L8.96429 3.14286C8.96429 3.08393 8.91607 3.03571 8.85714 3.03571L7.10714 3.03571C7.04821 3.03571 7 3.08393 7 3.14286Z"}),a.createElement("path",{d:"M3 1.14286L3 10.8929C3 10.9518 3.04821 11 3.10714 11L4.85714 11C4.91607 11 4.96429 10.9518 4.96429 10.8929L4.96429 1.14286C4.96429 1.08393 4.91607 1.03571 4.85714 1.03571L3.10714 1.03571C3.04821 1.03571 3 1.08393 3 1.14286Z"})),j=({props:e})=>a.createElement(r.A,Object.assign({component:O},e)),D=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-vertical-bottom-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.07143 10.1429L1.07143 10.8929C1.07143 10.9518 1.11964 11 1.17857 11L10.8214 11C10.8804 11 10.9286 10.9518 10.9286 10.8929L10.9286 10.1429C10.9286 10.0839 10.8804 10.0357 10.8214 10.0357L1.17857 10.0357C1.11964 10.0357 1.07143 10.0839 1.07143 10.1429Z"}),a.createElement("path",{d:"M7 4.14286L7 8.89286C7 8.95179 7.04821 9 7.10714 9L8.85714 9C8.91607 9 8.96429 8.95179 8.96429 8.89286L8.96429 4.14286C8.96429 4.08393 8.91607 4.03571 8.85714 4.03571L7.10714 4.03571C7.04821 4.03571 7 4.08393 7 4.14286Z"}),a.createElement("path",{d:"M3 1.14286L3 8.89286C3 8.95179 3.04821 9 3.10714 9L4.85714 9C4.91607 9 4.96429 8.95179 4.96429 8.89286L4.96429 1.14286C4.96429 1.08393 4.91607 1.03571 4.85714 1.03571L3.10714 1.03571C3.04821 1.03571 3 1.08393 3 1.14286Z"})),Z=({props:e})=>a.createElement(r.A,Object.assign({component:D},e)),F=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"mixed-view-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M12.0357 11.6071L12.0357 4.42857C12.0357 4.19152 11.8442 4 11.6071 4L7.42857 4C7.19151 4 7 4.19152 7 4.42857L7 11.6071C7 11.8442 7.19151 12.0357 7.42857 12.0357L11.6071 12.0357C11.8442 12.0357 12.0357 11.8442 12.0357 11.6071ZM8.01785 11.0179L8.01785 5.01786L11.0178 5.01786L11.0178 11.0179L8.01785 11.0179Z"}),a.createElement("path",{d:"M6.03571 11.6071L6.0357 6.42857C6.0357 6.19152 5.84419 6 5.60713 6L0.428567 6C0.191514 6 -4.29991e-06 6.19152 -4.31027e-06 6.42857L-4.05979e-06 11.6071C-4.07016e-06 11.8442 0.191514 12.0357 0.428568 12.0357L5.60713 12.0357C5.84419 12.0357 6.03571 11.8442 6.03571 11.6071ZM1.01785 11.0179L1.01785 7.01786L5.01785 7.01786L5.01785 11.0179L1.01785 11.0179Z"}),a.createElement("path",{d:"M5.99999 5.03571L0.428572 5.03571C0.191518 5.03571 0 4.84419 0 4.60714L2.45825e-06 0.428573C2.43753e-06 0.191519 0.191521 0 0.428574 0H7.60714C7.84419 0 8.03571 0.191518 8.03571 0.428572L8.03571 3H7.01785L7.01786 1.01786L1.01786 1.01786L1.01786 4.01785L5.99999 4.01785V5.03571Z"})),z=({props:e})=>a.createElement(r.A,Object.assign({component:F},e)),W=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"landscape-view",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0.392859 10.0357L11.5714 10.0357C11.8085 10.0357 12 9.84419 12 9.60714L12 2.42858C12 2.19152 11.8085 2 11.5714 2L0.392862 2C0.155808 2 -0.0357096 2.19152 -0.0357097 2.42857L-0.0357132 9.60714C-0.0357132 9.84419 0.155805 10.0357 0.392859 10.0357ZM0.982149 3.01786L10.9821 3.01786L10.9821 9.01786L0.982145 9.01786L0.982149 3.01786Z"})),q=({props:e})=>a.createElement(r.A,Object.assign({component:W},e)),$=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"portrait-view",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M10 11.6071L10 0.428574C10 0.191521 9.80848 2.46721e-06 9.57143 2.45684e-06L2.39286 -3.32519e-07C2.15581 -3.42881e-07 1.96429 0.191518 1.96429 0.428571L1.96429 11.6071C1.96429 11.8442 2.15581 12.0357 2.39286 12.0357L9.57143 12.0357C9.80848 12.0357 10 11.8442 10 11.6071ZM2.98215 11.0179L2.98215 1.01786L8.98214 1.01786L8.98214 11.0179L2.98215 11.0179Z"})),U=({props:e})=>a.createElement(r.A,Object.assign({component:$},e)),G=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"square-view",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1 1.42857L1 10.5893C1 10.8263 1.19152 11.0179 1.42857 11.0179L10.5605 11.0179C10.7976 11.0179 10.9891 10.8263 10.9891 10.5893L10.9891 1.42857C10.9891 1.19151 10.7976 0.999997 10.5605 0.999997L1.42857 0.999997C1.19152 0.999997 1 1.19151 1 1.42857ZM9.97123 2.01785L9.97123 10L2.01786 10L2.01786 2.01785L9.97123 2.01785Z"})),X=({props:e})=>a.createElement(r.A,Object.assign({component:G},e)),K=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"panel-left",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M10.9286 0.64286H1.07143C0.834378 0.64286 0.64286 0.834378 0.64286 1.07143V10.9286C0.64286 11.1656 0.834378 11.3571 1.07143 11.3571H10.9286C11.1656 11.3571 11.3571 11.1656 11.3571 10.9286V1.07143C11.3571 0.834378 11.1656 0.64286 10.9286 0.64286ZM10.3929 10.3929H4.64315V1.60715H10.3929V10.3929Z"})),Y=({props:e})=>a.createElement(r.A,Object.assign({component:K},e)),J=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"sun-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M5.53842 -2.28882e-05V2.30768H6.4615V-2.28882e-05H5.53842ZM2.07687 1.42787L1.42783 2.07691L3.05764 3.72115L3.72111 3.05768L2.07687 1.42787ZM9.92305 1.42787L8.27882 3.05768L8.94228 3.72115L10.5721 2.07691L9.92305 1.42787ZM5.99996 2.76922C4.22051 2.76922 2.76918 4.22055 2.76918 6C2.76918 7.77945 4.22051 9.23078 5.99996 9.23078C7.77942 9.23078 9.23074 7.77945 9.23074 6C9.23074 4.22055 7.77942 2.76922 5.99996 2.76922ZM5.99996 3.6923C7.28002 3.6923 8.30766 4.71995 8.30766 6C8.30766 7.28005 7.28002 8.3077 5.99996 8.3077C4.71991 8.3077 3.69226 7.28005 3.69226 6C3.69226 4.71995 4.71991 3.6923 5.99996 3.6923ZM-6.10352e-05 5.53846V6.46154H2.30764V5.53846H-6.10352e-05ZM9.69228 5.53846V6.46154H12V5.53846H9.69228ZM3.05764 8.27885L1.42783 9.92309L2.07687 10.5721L3.72111 8.94232L3.05764 8.27885ZM8.94228 8.27885L8.27882 8.94232L9.92305 10.5721L10.5721 9.92309L8.94228 8.27885ZM5.53842 9.69232V12H6.4615V9.69232H5.53842Z"})),Q=({props:e})=>a.createElement(r.A,Object.assign({component:J},e)),ee=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"crescent-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6 1C6.112 1 6.22266 1.00383 6.332 1.0115C6.11066 1.48817 6 1.98433 6 2.5C6 2.974 6.0925 3.42717 6.2775 3.8595C6.4625 4.29183 6.71116 4.66417 7.0235 4.9765C7.33583 5.28883 7.70816 5.5375 8.1405 5.7225C8.57283 5.9075 9.026 6 9.5 6C10.0157 6 10.5118 5.88933 10.9885 5.668C10.9962 5.77733 11 5.888 11 6C11 6.453 10.9402 6.89567 10.8205 7.328C10.7008 7.76033 10.5335 8.1595 10.3185 8.5255C10.1035 8.8915 9.8425 9.22816 9.5355 9.5355C9.2285 9.84283 8.89183 10.1038 8.5255 10.3185C8.15916 10.5332 7.76 10.7005 7.328 10.8205C6.896 10.9405 6.45333 11.0003 6 11C5.54666 10.9997 5.104 10.9398 4.672 10.8205C4.24 10.7012 3.84083 10.5338 3.4745 10.3185C3.10817 10.1032 2.7715 9.84216 2.4645 9.5355C2.1575 9.22883 1.8965 8.89216 1.6815 8.5255C1.4665 8.15883 1.29917 7.75967 1.1795 7.328C1.05983 6.89633 1 6.45366 1 6C1 5.54633 1.05983 5.10367 1.1795 4.672C1.29917 4.24033 1.4665 3.84117 1.6815 3.4745C1.8965 3.10783 2.1575 2.77117 2.4645 2.4645C2.7715 2.15783 3.10817 1.89683 3.4745 1.6815C3.84083 1.46617 4.24 1.29883 4.672 1.1795C5.104 1.06017 5.54666 1.00033 6 1ZM5.0155 2.121C4.58583 2.23033 4.1855 2.40733 3.8145 2.652C3.4435 2.89667 3.1245 3.187 2.8575 3.523C2.5905 3.859 2.38083 4.24117 2.2285 4.6695C2.07617 5.09783 2 5.54117 2 5.9995C2 6.54116 2.1055 7.05866 2.3165 7.552C2.5275 8.04533 2.812 8.47116 3.17 8.8295C3.528 9.18783 3.95383 9.47233 4.4475 9.683C4.94116 9.89366 5.45866 9.99916 6 9.9995C6.45833 9.9995 6.90166 9.92333 7.33 9.771C7.75833 9.61866 8.1405 9.409 8.4765 9.142C8.8125 8.875 9.10283 8.556 9.3475 8.185C9.59216 7.814 9.76916 7.41366 9.8785 6.984C9.7665 6.99433 9.64016 6.9995 9.4995 6.9995C8.89016 6.9995 8.30816 6.88033 7.7535 6.642C7.19883 6.40366 6.72033 6.08333 6.318 5.681C5.91566 5.27867 5.59533 4.80017 5.357 4.2455C5.11867 3.69083 4.9995 3.10883 4.9995 2.4995C4.9995 2.35883 5.00516 2.233 5.0155 2.121Z"})),te=({props:e})=>a.createElement(r.A,Object.assign({component:ee},e)),ne=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"vimeo-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M10.9952 3.66719C10.9513 4.59967 10.2888 5.87689 9.00665 7.49794C7.68113 9.19101 6.55939 10.0376 5.64191 10.0376C5.07348 10.0376 4.59281 9.52102 4.19988 8.48818L3.41305 5.64743C3.12152 4.61411 2.80855 4.09732 2.47363 4.09732C2.40051 4.09732 2.14554 4.24829 1.70874 4.54983L1.25 3.96878C1.73068 3.55248 2.20404 3.13609 2.6701 2.72027C3.31116 2.1748 3.79184 1.88809 4.11213 1.85928C4.86971 1.78774 5.33576 2.29679 5.51077 3.38725C5.69992 4.56414 5.83106 5.29554 5.90419 5.58268C6.12259 6.55838 6.36293 7.04614 6.6252 7.04614C6.82898 7.04614 7.13513 6.73064 7.54268 6.09922C7.95072 5.46781 8.16913 4.98707 8.19838 4.65719C8.25639 4.11172 8.03799 3.83953 7.54268 3.83953C7.30966 3.83953 7.06932 3.88961 6.82167 3.98997C7.30235 2.45487 8.22031 1.70847 9.57508 1.75169C10.5798 1.7805 11.0537 2.41875 10.9952 3.66719Z"})),ae=({props:e})=>a.createElement(r.A,Object.assign({component:ne},e)),re=()=>a.createElement("svg",{viewBox:"0 0 20 20",focusable:"false","data-icon":"image-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M3.75 17.5C3.41667 17.5 3.125 17.375 2.875 17.125C2.625 16.875 2.5 16.5833 2.5 16.25V3.75C2.5 3.41667 2.625 3.125 2.875 2.875C3.125 2.625 3.41667 2.5 3.75 2.5H16.25C16.5833 2.5 16.875 2.625 17.125 2.875C17.375 3.125 17.5 3.41667 17.5 3.75V16.25C17.5 16.5833 17.375 16.875 17.125 17.125C16.875 17.375 16.5833 17.5 16.25 17.5H3.75ZM3.75 16.25H16.25V3.75H3.75V16.25ZM4.91667 14.2292H15.1042L12.0417 10.1458L9.29167 13.7083L7.35417 11.0625L4.91667 14.2292Z"})),le=({props:e})=>a.createElement(r.A,Object.assign({component:re},e)),oe=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"blur-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0.326321 7.56842C0.235089 7.56842 0.157895 7.53684 0.0947368 7.47368C0.0315789 7.41052 0 7.33333 0 7.24211C0 7.15088 0.0315789 7.07368 0.0947368 7.01053C0.157895 6.94737 0.235089 6.91579 0.326321 6.91579C0.417542 6.91579 0.494731 6.94737 0.557889 7.01053C0.621047 7.07368 0.652626 7.15088 0.652626 7.24211C0.652626 7.33333 0.621047 7.41052 0.557889 7.47368C0.494731 7.53684 0.417542 7.56842 0.326321 7.56842ZM0.326321 5.08421C0.235089 5.08421 0.157895 5.05263 0.0947368 4.98947C0.0315789 4.92632 0 4.84912 0 4.75789C0 4.66667 0.0315789 4.58948 0.0947368 4.52632C0.157895 4.46316 0.235089 4.43158 0.326321 4.43158C0.417542 4.43158 0.494731 4.46316 0.557889 4.52632C0.621047 4.58948 0.652626 4.66667 0.652626 4.75789C0.652626 4.84912 0.621047 4.92632 0.557889 4.98947C0.494731 5.05263 0.417542 5.08421 0.326321 5.08421ZM2.21163 10.4C2.03897 10.4 1.89386 10.3416 1.77632 10.2248C1.65877 10.108 1.59999 9.96325 1.59999 9.79058C1.59999 9.61792 1.6584 9.47281 1.77521 9.35526C1.89201 9.23772 2.03675 9.17894 2.20942 9.17894C2.38208 9.17894 2.52719 9.23735 2.64474 9.35416C2.76228 9.47096 2.82106 9.61569 2.82106 9.78837C2.82106 9.96103 2.76265 10.1061 2.64584 10.2237C2.52904 10.3412 2.38431 10.4 2.21163 10.4ZM2.21163 7.85263C2.03897 7.85263 1.89386 7.79423 1.77632 7.67743C1.65877 7.56062 1.59999 7.41588 1.59999 7.24322C1.59999 7.07054 1.6584 6.92544 1.77521 6.8079C1.89201 6.69035 2.03675 6.63158 2.20942 6.63158C2.38208 6.63158 2.52719 6.68998 2.64474 6.80678C2.76228 6.92359 2.82106 7.06833 2.82106 7.24099C2.82106 7.41366 2.76265 7.55877 2.64584 7.67632C2.52904 7.79386 2.38431 7.85263 2.21163 7.85263ZM2.21163 5.36842C2.03897 5.36842 1.89386 5.31002 1.77632 5.19322C1.65877 5.07641 1.59999 4.93167 1.59999 4.75901C1.59999 4.58634 1.6584 4.44123 1.77521 4.32368C1.89201 4.20614 2.03675 4.14737 2.20942 4.14737C2.38208 4.14737 2.52719 4.20577 2.64474 4.32257C2.76228 4.43938 2.82106 4.58412 2.82106 4.75678C2.82106 4.92946 2.76265 5.07456 2.64584 5.1921C2.52904 5.30965 2.38431 5.36842 2.21163 5.36842ZM2.21163 2.82106C2.03897 2.82106 1.89386 2.76265 1.77632 2.64584C1.65877 2.52904 1.59999 2.38431 1.59999 2.21163C1.59999 2.03897 1.6584 1.89386 1.77521 1.77632C1.89201 1.65877 2.03675 1.59999 2.20942 1.59999C2.38208 1.59999 2.52719 1.6584 2.64474 1.77521C2.76228 1.89201 2.82106 2.03675 2.82106 2.20942C2.82106 2.38208 2.76265 2.52719 2.64584 2.64474C2.52904 2.76228 2.38431 2.82106 2.21163 2.82106ZM4.75789 8.12632C4.51228 8.12632 4.30351 8.04035 4.13158 7.86842C3.95965 7.69649 3.87368 7.48772 3.87368 7.24211C3.87368 6.99649 3.95965 6.78772 4.13158 6.61579C4.30351 6.44386 4.51228 6.3579 4.75789 6.3579C5.00351 6.3579 5.21228 6.44386 5.38421 6.61579C5.55614 6.78772 5.6421 6.99649 5.6421 7.24211C5.6421 7.48772 5.55614 7.69649 5.38421 7.86842C5.21228 8.04035 5.00351 8.12632 4.75789 8.12632ZM4.75789 5.6421C4.51228 5.6421 4.30351 5.55614 4.13158 5.38421C3.95965 5.21228 3.87368 5.00351 3.87368 4.75789C3.87368 4.51228 3.95965 4.30351 4.13158 4.13158C4.30351 3.95965 4.51228 3.87368 4.75789 3.87368C5.00351 3.87368 5.21228 3.95965 5.38421 4.13158C5.55614 4.30351 5.6421 4.51228 5.6421 4.75789C5.6421 5.00351 5.55614 5.21228 5.38421 5.38421C5.21228 5.55614 5.00351 5.6421 4.75789 5.6421ZM4.75901 10.4C4.58634 10.4 4.44123 10.3416 4.32368 10.2248C4.20614 10.108 4.14737 9.96325 4.14737 9.79058C4.14737 9.61792 4.20577 9.47281 4.32257 9.35526C4.43938 9.23772 4.58412 9.17894 4.75678 9.17894C4.92946 9.17894 5.07456 9.23735 5.1921 9.35416C5.30965 9.47096 5.36842 9.61569 5.36842 9.78837C5.36842 9.96103 5.31002 10.1061 5.19322 10.2237C5.07641 10.3412 4.93167 10.4 4.75901 10.4ZM4.75901 2.82106C4.58634 2.82106 4.44123 2.76265 4.32368 2.64584C4.20614 2.52904 4.14737 2.38431 4.14737 2.21163C4.14737 2.03897 4.20577 1.89386 4.32257 1.77632C4.43938 1.65877 4.58412 1.59999 4.75678 1.59999C4.92946 1.59999 5.07456 1.6584 5.1921 1.77521C5.30965 1.89201 5.36842 2.03675 5.36842 2.20942C5.36842 2.38208 5.31002 2.52719 5.19322 2.64474C5.07641 2.76228 4.93167 2.82106 4.75901 2.82106ZM4.75789 12C4.66667 12 4.58948 11.9684 4.52632 11.9053C4.46316 11.8421 4.43158 11.7649 4.43158 11.6737C4.43158 11.5825 4.46316 11.5053 4.52632 11.4421C4.58948 11.379 4.66667 11.3474 4.75789 11.3474C4.84912 11.3474 4.92632 11.379 4.98947 11.4421C5.05263 11.5053 5.08421 11.5825 5.08421 11.6737C5.08421 11.7649 5.05263 11.8421 4.98947 11.9053C4.92632 11.9684 4.84912 12 4.75789 12ZM4.75789 0.652626C4.66667 0.652626 4.58948 0.621047 4.52632 0.55789C4.46316 0.494732 4.43158 0.417542 4.43158 0.326321C4.43158 0.235089 4.46316 0.157895 4.52632 0.0947368C4.58948 0.0315789 4.66667 0 4.75789 0C4.84912 0 4.92632 0.0315789 4.98947 0.0947368C5.05263 0.157895 5.08421 0.235089 5.08421 0.326321C5.08421 0.417542 5.05263 0.494732 4.98947 0.55789C4.92632 0.621047 4.84912 0.652626 4.75789 0.652626ZM7.24211 8.12632C6.99649 8.12632 6.78772 8.04035 6.61579 7.86842C6.44386 7.69649 6.3579 7.48772 6.3579 7.24211C6.3579 6.99649 6.44386 6.78772 6.61579 6.61579C6.78772 6.44386 6.99649 6.3579 7.24211 6.3579C7.48772 6.3579 7.69649 6.44386 7.86842 6.61579C8.04035 6.78772 8.12632 6.99649 8.12632 7.24211C8.12632 7.48772 8.04035 7.69649 7.86842 7.86842C7.69649 8.04035 7.48772 8.12632 7.24211 8.12632ZM7.24211 5.6421C6.99649 5.6421 6.78772 5.55614 6.61579 5.38421C6.44386 5.21228 6.3579 5.00351 6.3579 4.75789C6.3579 4.51228 6.44386 4.30351 6.61579 4.13158C6.78772 3.95965 6.99649 3.87368 7.24211 3.87368C7.48772 3.87368 7.69649 3.95965 7.86842 4.13158C8.04035 4.30351 8.12632 4.51228 8.12632 4.75789C8.12632 5.00351 8.04035 5.21228 7.86842 5.38421C7.69649 5.55614 7.48772 5.6421 7.24211 5.6421ZM7.24322 10.4C7.07054 10.4 6.92544 10.3416 6.8079 10.2248C6.69035 10.108 6.63158 9.96325 6.63158 9.79058C6.63158 9.61792 6.68998 9.47281 6.80678 9.35526C6.92359 9.23772 7.06833 9.17894 7.24099 9.17894C7.41366 9.17894 7.55877 9.23735 7.67632 9.35416C7.79386 9.47096 7.85263 9.61569 7.85263 9.78837C7.85263 9.96103 7.79423 10.1061 7.67743 10.2237C7.56062 10.3412 7.41588 10.4 7.24322 10.4ZM7.24322 2.82106C7.07054 2.82106 6.92544 2.76265 6.8079 2.64584C6.69035 2.52904 6.63158 2.38431 6.63158 2.21163C6.63158 2.03897 6.68998 1.89386 6.80678 1.77632C6.92359 1.65877 7.06833 1.59999 7.24099 1.59999C7.41366 1.59999 7.55877 1.6584 7.67632 1.77521C7.79386 1.89201 7.85263 2.03675 7.85263 2.20942C7.85263 2.38208 7.79423 2.52719 7.67743 2.64474C7.56062 2.76228 7.41588 2.82106 7.24322 2.82106ZM7.30527 12C7.21404 12 7.13684 11.9684 7.07368 11.9053C7.01053 11.8421 6.97895 11.7649 6.97895 11.6737C6.97895 11.5825 7.01053 11.5053 7.07368 11.4421C7.13684 11.379 7.21404 11.3474 7.30527 11.3474C7.39649 11.3474 7.47368 11.379 7.53684 11.4421C7.59999 11.5053 7.63157 11.5825 7.63157 11.6737C7.63157 11.7649 7.59999 11.8421 7.53684 11.9053C7.47368 11.9684 7.39649 12 7.30527 12ZM7.24211 0.652626C7.15088 0.652626 7.07368 0.621047 7.01053 0.55789C6.94737 0.494732 6.91579 0.417542 6.91579 0.326321C6.91579 0.235089 6.94737 0.157895 7.01053 0.0947368C7.07368 0.0315789 7.15088 0 7.24211 0C7.33333 0 7.41052 0.0315789 7.47368 0.0947368C7.53684 0.157895 7.56842 0.235089 7.56842 0.326321C7.56842 0.417542 7.53684 0.494732 7.47368 0.55789C7.41052 0.621047 7.33333 0.652626 7.24211 0.652626ZM9.79058 10.4C9.61792 10.4 9.47281 10.3416 9.35526 10.2248C9.23772 10.108 9.17894 9.96325 9.17894 9.79058C9.17894 9.61792 9.23735 9.47281 9.35416 9.35526C9.47096 9.23772 9.61569 9.17894 9.78837 9.17894C9.96103 9.17894 10.1061 9.23735 10.2237 9.35416C10.3412 9.47096 10.4 9.61569 10.4 9.78837C10.4 9.96103 10.3416 10.1061 10.2248 10.2237C10.108 10.3412 9.96325 10.4 9.79058 10.4ZM9.79058 7.85263C9.61792 7.85263 9.47281 7.79423 9.35526 7.67743C9.23772 7.56062 9.17894 7.41588 9.17894 7.24322C9.17894 7.07054 9.23735 6.92544 9.35416 6.8079C9.47096 6.69035 9.61569 6.63158 9.78837 6.63158C9.96103 6.63158 10.1061 6.68998 10.2237 6.80678C10.3412 6.92359 10.4 7.06833 10.4 7.24099C10.4 7.41366 10.3416 7.55877 10.2248 7.67632C10.108 7.79386 9.96325 7.85263 9.79058 7.85263ZM9.79058 5.36842C9.61792 5.36842 9.47281 5.31002 9.35526 5.19322C9.23772 5.07641 9.17894 4.93167 9.17894 4.75901C9.17894 4.58634 9.23735 4.44123 9.35416 4.32368C9.47096 4.20614 9.61569 4.14737 9.78837 4.14737C9.96103 4.14737 10.1061 4.20577 10.2237 4.32257C10.3412 4.43938 10.4 4.58412 10.4 4.75678C10.4 4.92946 10.3416 5.07456 10.2248 5.1921C10.108 5.30965 9.96325 5.36842 9.79058 5.36842ZM9.79058 2.82106C9.61792 2.82106 9.47281 2.76265 9.35526 2.64584C9.23772 2.52904 9.17894 2.38431 9.17894 2.21163C9.17894 2.03897 9.23735 1.89386 9.35416 1.77632C9.47096 1.65877 9.61569 1.59999 9.78837 1.59999C9.96103 1.59999 10.1061 1.6584 10.2237 1.77521C10.3412 1.89201 10.4 2.03675 10.4 2.20942C10.4 2.38208 10.3416 2.52719 10.2248 2.64474C10.108 2.76228 9.96325 2.82106 9.79058 2.82106ZM11.6737 7.56842C11.5825 7.56842 11.5053 7.53684 11.4421 7.47368C11.379 7.41052 11.3474 7.33333 11.3474 7.24211C11.3474 7.15088 11.379 7.07368 11.4421 7.01053C11.5053 6.94737 11.5825 6.91579 11.6737 6.91579C11.7649 6.91579 11.8421 6.94737 11.9053 7.01053C11.9684 7.07368 12 7.15088 12 7.24211C12 7.33333 11.9684 7.41052 11.9053 7.47368C11.8421 7.53684 11.7649 7.56842 11.6737 7.56842ZM11.6737 5.08421C11.5825 5.08421 11.5053 5.05263 11.4421 4.98947C11.379 4.92632 11.3474 4.84912 11.3474 4.75789C11.3474 4.66667 11.379 4.58948 11.4421 4.52632C11.5053 4.46316 11.5825 4.43158 11.6737 4.43158C11.7649 4.43158 11.8421 4.46316 11.9053 4.52632C11.9684 4.58948 12 4.66667 12 4.75789C12 4.84912 11.9684 4.92632 11.9053 4.98947C11.8421 5.05263 11.7649 5.08421 11.6737 5.08421Z"})),ie=({props:e})=>a.createElement(r.A,Object.assign({component:oe},e)),se=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"zoom-out-map",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0.650002 11.35V7.88241H1.64073V9.65585L3.7213 7.57528L4.42472 8.2787L2.34415 10.3593H4.11759V11.35H0.650002ZM7.88241 11.35V10.3593H9.65585L7.58519 8.28861L8.28861 7.58519L10.3593 9.65585V7.88241H11.35V11.35H7.88241ZM3.71139 4.41481L1.64073 2.34415V4.11759H0.650002V0.65H4.11759V1.64073H2.34415L4.41481 3.71139L3.71139 4.41481ZM8.28861 4.41481L7.58519 3.71139L9.65585 1.64073H7.88241V0.65H11.35V4.11759H10.3593V2.34415L8.28861 4.41481Z"})),ce=({props:e})=>a.createElement(r.A,Object.assign({component:se},e)),de=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"paragraph-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M5.01104 12V7.61696H4.94805C4.12998 7.61696 3.43412 7.29507 2.86047 6.65128C2.28682 6.00748 2 5.22655 2 4.30848C2 3.39041 2.28682 2.60947 2.86047 1.96568C3.43412 1.32189 4.12998 1 4.94805 1H10V2.10281H8.68975V12H7.70709V2.10281H5.99371V12H5.01104Z"})),me=({props:e})=>a.createElement(r.A,Object.assign({component:de},e)),pe=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-image-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6.63463 25.6249C6.00321 25.6249 5.46875 25.4062 5.03125 24.9687C4.59375 24.5312 4.375 23.9967 4.375 23.3653V6.63463C4.375 6.00321 4.59375 5.46875 5.03125 5.03125C5.46875 4.59375 6.00321 4.375 6.63463 4.375H23.3653C23.9967 4.375 24.5312 4.59375 24.9687 5.03125C25.4062 5.46875 25.6249 6.00321 25.6249 6.63463V23.3653C25.6249 23.9967 25.4062 24.5312 24.9687 24.9687C24.5312 25.4062 23.9967 25.6249 23.3653 25.6249H6.63463ZM6.63463 23.75H23.3653C23.4615 23.75 23.5496 23.7099 23.6298 23.6298C23.7099 23.5496 23.75 23.4615 23.75 23.3653V6.63463C23.75 6.53846 23.7099 6.4503 23.6298 6.37016C23.5496 6.29003 23.4615 6.24997 23.3653 6.24997H6.63463C6.53846 6.24997 6.4503 6.29003 6.37016 6.37016C6.29003 6.4503 6.24997 6.53846 6.24997 6.63463V23.3653C6.24997 23.4615 6.29003 23.5496 6.37016 23.6298C6.4503 23.7099 6.53846 23.75 6.63463 23.75ZM8.43753 20.9374H21.6586L17.548 15.4567L14.0384 20.024L11.5384 16.8269L8.43753 20.9374ZM10.625 12.1874C11.0577 12.1874 11.4262 12.0352 11.7307 11.7307C12.0352 11.4262 12.1874 11.0577 12.1874 10.625C12.1874 10.1923 12.0352 9.8237 11.7307 9.51922C11.4262 9.21474 11.0577 9.0625 10.625 9.0625C10.1923 9.0625 9.8237 9.21474 9.51922 9.51922C9.21474 9.8237 9.0625 10.1923 9.0625 10.625C9.0625 11.0577 9.21474 11.4262 9.51922 11.7307C9.8237 12.0352 10.1923 12.1874 10.625 12.1874Z"})),ue=({props:e})=>a.createElement(r.A,Object.assign({component:pe},e)),he=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-image-ai",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6.63463 25.2499C6.00321 25.2499 5.46875 25.0312 5.03125 24.5937C4.59375 24.1562 4.375 23.6217 4.375 22.9903V6.25963C4.375 5.62821 4.59375 5.09375 5.03125 4.65625C5.46875 4.21875 6.00321 4 6.63463 4H23.3653C23.9967 4 24.5312 4.21875 24.9687 4.65625C25.4062 5.09375 25.6249 5.62821 25.6249 6.25963V22.9903C25.6249 23.6217 25.4062 24.1562 24.9687 24.5937C24.5312 25.0312 23.9967 25.2499 23.3653 25.2499H6.63463ZM6.63463 23.375H23.3653C23.4615 23.375 23.5496 23.3349 23.6298 23.2548C23.7099 23.1746 23.75 23.0865 23.75 22.9903V6.25963C23.75 6.16346 23.7099 6.0753 23.6298 5.99516C23.5496 5.91503 23.4615 5.87497 23.3653 5.87497H6.63463C6.53846 5.87497 6.4503 5.91503 6.37016 5.99516C6.29003 6.0753 6.24997 6.16346 6.24997 6.25963V22.9903C6.24997 23.0865 6.29003 23.1746 6.37016 23.2548C6.4503 23.3349 6.53846 23.375 6.63463 23.375Z"}),a.createElement("path",{d:"M11 21C11 21 10.6521 19.5906 10.0308 18.9692C9.40939 18.3479 8 18 8 18C8 18 9.40939 17.6521 10.0308 17.0308C10.6521 16.4094 11 15 11 15C11 15 11.3479 16.4094 11.9692 17.0308C12.5906 17.6521 14 18 14 18C14 18 12.5906 18.3479 11.9692 18.9692C11.3479 19.5906 11 21 11 21Z"}),a.createElement("path",{d:"M17 18C17 18 16.4202 15.651 15.3846 14.6154C14.349 13.5798 12 13 12 13C12 13 14.349 12.4202 15.3846 11.3846C16.4202 10.349 17 8 17 8C17 8 17.5798 10.349 18.6154 11.3846C19.651 12.4202 22 13 22 13C22 13 19.651 13.5798 18.6154 14.6154C17.5798 15.651 17 18 17 18Z"}),a.createElement("path",{d:"M10 12C10 12 9.7681 11.0604 9.35385 10.6462C8.93959 10.2319 8 10 8 10C8 10 8.93959 9.7681 9.35385 9.35385C9.7681 8.93959 10 8 10 8C10 8 10.2319 8.93959 10.6462 9.35385C11.0604 9.7681 12 10 12 10C12 10 11.0604 10.2319 10.6462 10.6462C10.2319 11.0604 10 12 10 12Z"}),a.createElement("path",{d:"M20.5 21C20.5 21 20.3261 20.2953 20.0154 19.9846C19.7047 19.6739 19 19.5 19 19.5C19 19.5 19.7047 19.3261 20.0154 19.0154C20.3261 18.7047 20.5 18 20.5 18C20.5 18 20.6739 18.7047 20.9846 19.0154C21.2953 19.3261 22 19.5 22 19.5C22 19.5 21.2953 19.6739 20.9846 19.9846C20.6739 20.2953 20.5 21 20.5 21Z"})),ge=({props:e})=>a.createElement(r.A,Object.assign({component:he},e)),be=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-text",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M4.375 22.0865V20.2115H18.1249V22.0865H4.375ZM4.375 15.9807V14.1058H25.6249V15.9807H4.375ZM4.375 9.87497V8H25.6249V9.87497H4.375Z"})),fe=({props:e})=>a.createElement(r.A,Object.assign({component:be},e)),Ce=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-title",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M13.678 24.3749V8.28119H6.88708V5.625H23.125V8.28119H16.3341V24.3749H13.678Z"})),ve=({props:e})=>a.createElement(r.A,Object.assign({component:Ce},e)),Ee=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-button",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.03131 19.9687C4.46881 20.4062 5.00327 20.6249 5.63469 20.6249H7V18.75H5.63469C5.53852 18.75 5.45036 18.7099 5.37022 18.6298C5.29009 18.5496 5.25003 18.4615 5.25003 18.3653V7.63463C5.25003 7.53846 5.29009 7.4503 5.37022 7.37016C5.45036 7.29003 5.53852 7.24997 5.63469 7.24997H24.3654C24.4615 7.24997 24.5497 7.29003 24.6298 7.37016C24.71 7.4503 24.75 7.53846 24.75 7.63463V18.3653C24.75 18.4615 24.71 18.5496 24.6298 18.6298C24.5497 18.7099 24.4615 18.75 24.3654 18.75H23V20.6249H24.3654C24.9968 20.6249 25.5312 20.4062 25.9688 19.9687C26.4062 19.5312 26.625 18.9967 26.625 18.3653V7.63463C26.625 7.00321 26.4062 6.46875 25.9688 6.03125C25.5312 5.59375 24.9968 5.375 24.3654 5.375H5.63469C5.00327 5.375 4.46881 5.59375 4.03131 6.03125C3.59381 6.46875 3.37506 7.00321 3.37506 7.63463V18.3653C3.37506 18.9967 3.59381 19.5312 4.03131 19.9687Z"}),a.createElement("path",{d:"M14.225 28C13.825 28 13.4417 27.925 13.075 27.775C12.7083 27.625 12.3833 27.4083 12.1 27.125L7 22L7.825 21.15C8.05833 20.9167 8.34167 20.7583 8.675 20.675C9.00833 20.5917 9.34167 20.5917 9.675 20.675L11.4 21.175V13C11.4 12.7167 11.4958 12.4792 11.6875 12.2875C11.8792 12.0958 12.1167 12 12.4 12C12.6833 12 12.9208 12.0958 13.1125 12.2875C13.3042 12.4792 13.4 12.7167 13.4 13V23.825L10.95 23.125L13.525 25.7C13.625 25.8 13.7333 25.875 13.85 25.925C13.9667 25.975 14.0917 26 14.225 26H18.4C18.95 26 19.4208 25.8042 19.8125 25.4125C20.2042 25.0208 20.4 24.55 20.4 24V20C20.4 19.7167 20.4958 19.4792 20.6875 19.2875C20.8792 19.0958 21.1167 19 21.4 19C21.6833 19 21.9208 19.0958 22.1125 19.2875C22.3042 19.4792 22.4 19.7167 22.4 20V24C22.4 25.1 22.0083 26.0417 21.225 26.825C20.4417 27.6083 19.5 28 18.4 28H14.225ZM14.4 21V17C14.4 16.7167 14.4958 16.4792 14.6875 16.2875C14.8792 16.0958 15.1167 16 15.4 16C15.6833 16 15.9208 16.0958 16.1125 16.2875C16.3042 16.4792 16.4 16.7167 16.4 17V21H14.4ZM17.4 21V18C17.4 17.7167 17.4958 17.4792 17.6875 17.2875C17.8792 17.0958 18.1167 17 18.4 17C18.6833 17 18.9208 17.0958 19.1125 17.2875C19.3042 17.4792 19.4 17.7167 19.4 18V21H17.4Z"})),ye=({props:e})=>a.createElement(r.A,Object.assign({component:Ee},e)),_e=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-spacer",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6 4V5.65H24V4H6ZM15.0562 6.75L10.7812 10.93L11.9906 12.1125L14.2125 9.94V20.06L11.9906 17.8875L10.7812 19.07L15.0562 23.25L19.3312 19.07L18.1219 17.8875L15.9 20.06V9.94L18.1219 12.1125L19.3312 10.93L15.0562 6.75ZM6 24.35V26H24V24.35H6Z"})),Ae=({props:e})=>a.createElement(r.A,Object.assign({component:_e},e)),we=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-list",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M11.6346 23.4376V21.5627H25.6249V23.4376H11.6346ZM11.6346 15.9376V14.0627H25.6249V15.9376H11.6346ZM11.6346 8.43765V6.56271H25.6249V8.43765H11.6346ZM6.45431 24.5795C5.8825 24.5795 5.393 24.3759 4.98581 23.9687C4.5786 23.5615 4.375 23.072 4.375 22.5002C4.375 21.9284 4.5786 21.4389 4.98581 21.0317C5.393 20.6245 5.8825 20.4209 6.45431 20.4209C7.02613 20.4209 7.51563 20.6245 7.92281 21.0317C8.33 21.4389 8.53359 21.9284 8.53359 22.5002C8.53359 23.072 8.33 23.5615 7.92281 23.9687C7.51563 24.3759 7.02613 24.5795 6.45431 24.5795ZM6.45431 17.0795C5.8825 17.0795 5.393 16.8759 4.98581 16.4687C4.5786 16.0615 4.375 15.572 4.375 15.0002C4.375 14.4284 4.5786 13.9389 4.98581 13.5317C5.393 13.1245 5.8825 12.9209 6.45431 12.9209C7.02613 12.9209 7.51563 13.1245 7.92281 13.5317C8.33 13.9389 8.53359 14.4284 8.53359 15.0002C8.53359 15.572 8.33 16.0615 7.92281 16.4687C7.51563 16.8759 7.02613 17.0795 6.45431 17.0795ZM6.45431 9.57946C5.8825 9.57946 5.393 9.37587 4.98581 8.96868C4.5786 8.56149 4.375 8.07199 4.375 7.50018C4.375 6.92837 4.5786 6.43887 4.98581 6.03168C5.393 5.62449 5.8825 5.4209 6.45431 5.4209C7.02613 5.4209 7.51563 5.62449 7.92281 6.03168C8.33 6.43887 8.53359 6.92837 8.53359 7.50018C8.53359 8.07199 8.33 8.56149 7.92281 8.96868C7.51563 9.37587 7.02613 9.57946 6.45431 9.57946Z"})),ke=({props:e})=>a.createElement(r.A,Object.assign({component:we},e)),Le=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-list-ol",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M4.375 26.8749V25.3846H7.5V24.0624H5.625V22.5721H7.5V21.2499H4.375V19.7596H7.93269C8.23238 19.7596 8.48357 19.8609 8.68628 20.0637C8.88901 20.2664 8.99038 20.5176 8.99038 20.8173V22.3077C8.99038 22.6073 8.88901 22.8585 8.68628 23.0613C8.48357 23.264 8.23238 23.3653 7.93269 23.3653C8.23238 23.3653 8.48357 23.4667 8.68628 23.6694C8.88901 23.8721 8.99038 24.1233 8.99038 24.423V25.8173C8.99038 26.1169 8.88901 26.3681 8.68628 26.5708C8.48357 26.7736 8.23238 26.8749 7.93269 26.8749H4.375ZM4.375 18.5577V15.3125C4.375 15.0128 4.47636 14.7616 4.67909 14.5589C4.88182 14.3561 5.13302 14.2548 5.43269 14.2548H7.5V12.9327H4.375V11.4423H7.93269C8.23238 11.4423 8.48357 11.5436 8.68628 11.7464C8.88901 11.9491 8.99038 12.2003 8.99038 12.5V14.6875C8.99038 14.9871 8.88901 15.2383 8.68628 15.4411C8.48357 15.6438 8.23238 15.7452 7.93269 15.7452H5.86537V17.0673H8.99038V18.5577H4.375ZM6.25 10.2404V4.61538H4.375V3.125H7.74038V10.2404H6.25ZM11.6346 23.4374V21.5625H25.6249V23.4374H11.6346ZM11.6346 15.9374V14.0625H25.6249V15.9374H11.6346ZM11.6346 8.43744V6.5625H25.6249V8.43744H11.6346Z"})),Se=({props:e})=>a.createElement(r.A,Object.assign({component:Le},e)),xe=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-devider",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6 14.35V16H24V14.35H6Z"}),a.createElement("path",{d:"M11.2596 10.6249C10.6282 10.6249 10.0938 10.4062 9.65625 9.96869C9.21875 9.53119 9 8.99673 9 8.36531V6.63463C9 6.00321 9.21875 5.46875 9.65625 5.03125C10.0938 4.59375 10.6282 4.375 11.2596 4.375H18.9903C19.6217 4.375 20.1562 4.59375 20.5937 5.03125C21.0312 5.46875 21.2499 6.00321 21.2499 6.63463V8.36531C21.2499 8.99673 21.0312 9.53119 20.5937 9.96869C20.1562 10.4062 19.6217 10.6249 18.9903 10.6249H11.2596ZM11.2596 9H18.9903C19.0865 9 19.1746 8.95994 19.2548 8.87981C19.3349 8.79967 19.375 8.71151 19.375 8.61534V6.38466C19.375 6.28849 19.3349 6.20033 19.2548 6.12019C19.1746 6.04006 19.0865 6 18.9903 6H11.2596C11.1635 6 11.0753 6.04006 10.9952 6.12019C10.915 6.20033 10.875 6.28849 10.875 6.38466V8.61534C10.875 8.71151 10.915 8.79967 10.9952 8.87981C11.0753 8.95994 11.1635 9 11.2596 9Z"}),a.createElement("path",{d:"M11.2596 26.2499C10.6282 26.2499 10.0938 26.0312 9.65625 25.5937C9.21875 25.1562 9 24.6217 9 23.9903V22.2596C9 21.6282 9.21875 21.0938 9.65625 20.6562C10.0938 20.2188 10.6282 20 11.2596 20H18.9903C19.6217 20 20.1562 20.2188 20.5937 20.6562C21.0312 21.0938 21.2499 21.6282 21.2499 22.2596V23.9903C21.2499 24.6217 21.0312 25.1562 20.5937 25.5937C20.1562 26.0312 19.6217 26.2499 18.9903 26.2499H11.2596ZM11.2596 24.625H18.9903C19.0865 24.625 19.1746 24.5849 19.2548 24.5048C19.3349 24.4247 19.375 24.3365 19.375 24.2403V22.0097C19.375 21.9135 19.3349 21.8253 19.2548 21.7452C19.1746 21.6651 19.0865 21.625 18.9903 21.625H11.2596C11.1635 21.625 11.0753 21.6651 10.9952 21.7452C10.915 21.8253 10.875 21.9135 10.875 22.0097V24.2403C10.875 24.3365 10.915 24.4247 10.9952 24.5048C11.0753 24.5849 11.1635 24.625 11.2596 24.625Z"})),Te=({props:e})=>a.createElement(r.A,Object.assign({component:xe},e)),Be=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-social",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M22.5014 27.1875C21.5469 27.1875 20.7352 26.8533 20.0661 26.1848C19.397 25.5164 19.0625 24.7048 19.0625 23.75C19.0625 23.5939 19.0749 23.4323 19.0998 23.2652C19.1246 23.098 19.1618 22.9439 19.2115 22.8028L9.96631 17.3894C9.63619 17.7179 9.26039 17.9747 8.83891 18.1598C8.41743 18.3449 7.97111 18.4374 7.49997 18.4374C6.54511 18.4374 5.73349 18.1034 5.06509 17.4353C4.3967 16.7671 4.0625 15.9558 4.0625 15.0014C4.0625 14.0469 4.3967 13.2352 5.06509 12.5661C5.73349 11.897 6.54511 11.5625 7.49997 11.5625C7.97111 11.5625 8.41743 11.655 8.83891 11.8401C9.26039 12.0252 9.63619 12.282 9.96631 12.6106L19.2115 7.19709C19.1618 7.05607 19.1246 6.90197 19.0998 6.73478C19.0749 6.56761 19.0625 6.40601 19.0625 6.24997C19.0625 5.29512 19.3966 4.48349 20.0647 3.81509C20.7328 3.1467 21.5441 2.8125 22.4986 2.8125C23.453 2.8125 24.2648 3.14656 24.9338 3.81469C25.6029 4.48281 25.9374 5.29411 25.9374 6.24856C25.9374 7.20302 25.6032 8.01478 24.9348 8.68384C24.2665 9.35291 23.4548 9.68744 22.5 9.68744C22.0288 9.68744 21.5825 9.5949 21.161 9.40981C20.7396 9.22471 20.3638 8.9679 20.0336 8.63938L10.7884 14.0528C10.8381 14.1939 10.8754 14.3477 10.9002 14.5143C10.925 14.6809 10.9374 14.842 10.9374 14.9975C10.9374 15.153 10.925 15.3149 10.9002 15.4832C10.8754 15.6514 10.8381 15.8061 10.7884 15.9471L20.0336 21.3606C20.3638 21.032 20.7396 20.7752 21.161 20.5901C21.5825 20.405 22.0288 20.3125 22.5 20.3125C23.4548 20.3125 24.2665 20.6466 24.9348 21.3147C25.6032 21.9828 25.9374 22.7941 25.9374 23.7486C25.9374 24.703 25.6034 25.5148 24.9353 26.1838C24.2671 26.8529 23.4558 27.1875 22.5014 27.1875ZM22.5 7.81247C22.9343 7.81247 23.3033 7.66062 23.607 7.35694C23.9107 7.05323 24.0625 6.68423 24.0625 6.24994C24.0625 5.81565 23.9107 5.44665 23.607 5.14294C23.3033 4.83927 22.9343 4.68744 22.5 4.68744C22.0657 4.68744 21.6967 4.83928 21.393 5.14297C21.0893 5.44668 20.9374 5.81568 20.9374 6.24997C20.9374 6.68426 21.0893 7.05326 21.393 7.35697C21.6967 7.66066 22.0657 7.81247 22.5 7.81247ZM7.49997 16.5625C7.93426 16.5625 8.30326 16.4106 8.60697 16.1069C8.91066 15.8032 9.0625 15.4342 9.0625 14.9999C9.0625 14.5656 8.91066 14.1966 8.60697 13.8929C8.30326 13.5893 7.93426 13.4374 7.49997 13.4374C7.06568 13.4374 6.69668 13.5893 6.39297 13.893C6.08928 14.1967 5.93744 14.5657 5.93744 15C5.93744 15.4343 6.08928 15.8033 6.39297 16.107C6.69668 16.4107 7.06568 16.5625 7.49997 16.5625V16.5625ZM22.5 25.3125C22.9343 25.3125 23.3033 25.1606 23.607 24.8569C23.9107 24.5532 24.0625 24.1842 24.0625 23.7499C24.0625 23.3156 23.9107 22.9466 23.607 22.6429C23.3033 22.3393 22.9343 22.1874 22.5 22.1874C22.0657 22.1874 21.6967 22.3393 21.393 22.643C21.0893 22.9467 20.9374 23.3157 20.9374 23.75C20.9374 24.1843 21.0893 24.5533 21.393 24.857C21.6967 25.1607 22.0657 25.3125 22.5 25.3125Z"})),Ie=({props:e})=>a.createElement(r.A,Object.assign({component:Be},e)),Me=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-table",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M24.6153 25.6249H6.63463C6.00321 25.6249 5.46875 25.4062 5.03125 24.9687C4.59375 24.5312 4.375 23.9967 4.375 23.3653V6.63463C4.375 6.00321 4.59375 5.46875 5.03125 5.03125C5.46875 4.59375 6.00321 4.375 6.63463 4.375H24.6153C25.2467 4.375 25.7812 4.59375 26.2187 5.03125C26.6562 5.46875 26.8749 6.00321 26.8749 6.63463V23.3653C26.8749 23.9967 26.6562 24.5312 26.2187 24.9687C25.7812 25.4062 25.2467 25.6249 24.6153 25.6249ZM6.24997 10.3125H25V6.63463C25 6.53846 24.9599 6.4503 24.8798 6.37016C24.7996 6.29003 24.7115 6.24997 24.6153 6.24997H6.63463C6.53846 6.24997 6.4503 6.29003 6.37016 6.37016C6.29003 6.4503 6.24997 6.53846 6.24997 6.63463V10.3125ZM10.2404 12.1874H6.24997V23.3653C6.24997 23.4615 6.29003 23.5496 6.37016 23.6298C6.4503 23.7099 6.53846 23.75 6.63463 23.75H10.2404V12.1874ZM21.0096 12.1874V23.75H24.6153C24.7115 23.75 24.7996 23.7099 24.8798 23.6298C24.9599 23.5496 25 23.4615 25 23.3653V12.1874H21.0096ZM19.1346 12.1874H12.1153V23.75H19.1346V12.1874Z"})),Ne=({props:e})=>a.createElement(r.A,Object.assign({component:Me},e)),Re=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-countdown",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M19.3413 20.6586L20.6586 19.3413L15.9374 14.6199V8.74997H14.0625V15.3798L19.3413 20.6586ZM15.0021 26.8749C13.3596 26.8749 11.8159 26.5633 10.3707 25.9399C8.9255 25.3166 7.6684 24.4707 6.59938 23.4021C5.53033 22.3336 4.68401 21.077 4.06041 19.6325C3.4368 18.188 3.125 16.6445 3.125 15.0021C3.125 13.3596 3.43667 11.8159 4.06 10.3707C4.68333 8.9255 5.52927 7.6684 6.59781 6.59938C7.66638 5.53034 8.92293 4.68401 10.3675 4.06041C11.812 3.4368 13.3555 3.125 14.9979 3.125C16.6403 3.125 18.1841 3.43667 19.6293 4.06C21.0744 4.68333 22.3315 5.52927 23.4006 6.59781C24.4696 7.66638 25.3159 8.92293 25.9395 10.3675C26.5631 11.812 26.8749 13.3555 26.8749 14.9979C26.8749 16.6403 26.5633 18.1841 25.9399 19.6293C25.3166 21.0744 24.4707 22.3315 23.4021 23.4006C22.3336 24.4696 21.077 25.3159 19.6325 25.9395C18.188 26.5631 16.6445 26.8749 15.0021 26.8749ZM15 25C17.7708 25 20.1302 24.026 22.0781 22.0781C24.026 20.1302 25 17.7708 25 15C25 12.2291 24.026 9.86976 22.0781 7.92184C20.1302 5.97393 17.7708 4.99997 15 4.99997C12.2291 4.99997 9.86976 5.97393 7.92184 7.92184C5.97393 9.86976 4.99997 12.2291 4.99997 15C4.99997 17.7708 5.97393 20.1302 7.92184 22.0781C9.86976 24.026 12.2291 25 15 25Z"})),Pe=({props:e})=>a.createElement(r.A,Object.assign({component:Re},e)),He=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-video",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M12.1154 20.048L19.9759 15L12.1154 9.95194V20.048ZM6.63463 25.6249C6.00321 25.6249 5.46875 25.4062 5.03125 24.9687C4.59375 24.5312 4.375 23.9967 4.375 23.3653V6.63463C4.375 6.00321 4.59375 5.46875 5.03125 5.03125C5.46875 4.59375 6.00321 4.375 6.63463 4.375H23.3653C23.9967 4.375 24.5312 4.59375 24.9687 5.03125C25.4062 5.46875 25.6249 6.00321 25.6249 6.63463V23.3653C25.6249 23.9967 25.4062 24.5312 24.9687 24.9687C24.5312 25.4062 23.9967 25.6249 23.3653 25.6249H6.63463ZM6.63463 23.75H23.3653C23.4615 23.75 23.5496 23.7099 23.6298 23.6298C23.7099 23.5496 23.75 23.4615 23.75 23.3653V6.63463C23.75 6.53846 23.7099 6.4503 23.6298 6.37016C23.5496 6.29003 23.4615 6.24997 23.3653 6.24997H6.63463C6.53846 6.24997 6.4503 6.29003 6.37016 6.37016C6.29003 6.4503 6.24997 6.53846 6.24997 6.63463V23.3653C6.24997 23.4615 6.29003 23.5496 6.37016 23.6298C6.4503 23.7099 6.53846 23.75 6.63463 23.75Z"})),Ve=({props:e})=>a.createElement(r.A,Object.assign({component:He},e)),Oe=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-text-ai",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M4.375 22.0865V20.2115H18.1249V22.0865H4.375ZM4.375 15.9807V14.1058H25.6249V15.9807H4.375ZM4.375 9.87497V8H11V9.87497H4.375Z"}),a.createElement("path",{d:"M17 13C17 13 16.6521 11.5906 16.0308 10.9692C15.4094 10.3479 14 10 14 10C14 10 15.4094 9.65215 16.0308 9.03077C16.6521 8.40939 17 7 17 7C17 7 17.3479 8.40939 17.9692 9.03077C18.5906 9.65215 20 10 20 10C20 10 18.5906 10.3479 17.9692 10.9692C17.3479 11.5906 17 13 17 13Z"}),a.createElement("path",{d:"M22.5 11C22.5 11 21.8623 8.41612 20.7231 7.27692C19.5839 6.13773 17 5.5 17 5.5C17 5.5 19.5839 4.86227 20.7231 3.72308C21.8623 2.58388 22.5 0 22.5 0C22.5 0 23.1377 2.58388 24.2769 3.72308C25.4161 4.86227 28 5.5 28 5.5C28 5.5 25.4161 6.13773 24.2769 7.27692C23.1377 8.41612 22.5 11 22.5 11Z"}),a.createElement("path",{d:"M15 5C15 5 14.7681 4.06041 14.3538 3.64615C13.9396 3.2319 13 3 13 3C13 3 13.9396 2.7681 14.3538 2.35385C14.7681 1.93959 15 1 15 1C15 1 15.2319 1.93959 15.6462 2.35385C16.0604 2.7681 17 3 17 3C17 3 16.0604 3.2319 15.6462 3.64615C15.2319 4.06041 15 5 15 5Z"}),a.createElement("path",{d:"M27 13C27 13 26.7681 12.0604 26.3538 11.6462C25.9396 11.2319 25 11 25 11C25 11 25.9396 10.7681 26.3538 10.3538C26.7681 9.93959 27 9 27 9C27 9 27.2319 9.93959 27.6462 10.3538C28.0604 10.7681 29 11 29 11C29 11 28.0604 11.2319 27.6462 11.6462C27.2319 12.0604 27 13 27 13Z"})),je=({props:e})=>a.createElement(r.A,Object.assign({component:Oe},e)),De=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-form",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6.63463 25.6251C6.00321 25.6251 5.46875 25.4064 5.03125 24.9689C4.59375 24.5314 4.375 23.9969 4.375 23.3655V6.63484C4.375 6.00342 4.59375 5.46896 5.03125 5.03146C5.46875 4.59396 6.00321 4.37521 6.63463 4.37521H17.4543L15.5793 6.25018H6.63463C6.53846 6.25018 6.4503 6.29024 6.37016 6.37037C6.29003 6.45051 6.24997 6.53867 6.24997 6.63484V23.3655C6.24997 23.4617 6.29003 23.5498 6.37016 23.63C6.4503 23.7101 6.53846 23.7502 6.63463 23.7502H23.3653C23.4615 23.7502 23.5496 23.7101 23.6298 23.63C23.7099 23.5498 23.75 23.4617 23.75 23.3655V14.3415L25.6249 12.4665V23.3655C25.6249 23.9969 25.4062 24.5314 24.9687 24.9689C24.5312 25.4064 23.9967 25.6251 23.3653 25.6251H6.63463ZM11.875 18.1251V13.8343L23.1995 2.50984C23.3934 2.31592 23.6066 2.17449 23.8389 2.08555C24.0713 1.99662 24.3077 1.95215 24.5481 1.95215C24.7932 1.95215 25.0288 1.99662 25.2548 2.08555C25.4807 2.17449 25.6866 2.31191 25.8725 2.4978L27.4422 4.06271C27.6233 4.25661 27.7623 4.47054 27.8593 4.70452C27.9562 4.93848 28.0047 5.17565 28.0047 5.41602C28.0047 5.65642 27.9635 5.8896 27.8809 6.11555C27.7984 6.34149 27.6602 6.55142 27.4663 6.74533L16.1057 18.1251H11.875ZM13.75 16.2502H15.3077L23.0986 8.45927L22.3197 7.68043L21.4856 6.87755L13.75 14.6132V16.2502Z"})),Ze=({props:e})=>a.createElement(r.A,Object.assign({component:De},e)),Fe=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"ai-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M2.45454 11.7273C2.45454 11.7273 2.16994 10.446 1.66154 9.88113C1.15314 9.31625 0 9 0 9C0 9 1.15314 8.68374 1.66154 8.11887C2.16994 7.554 2.45454 6.27273 2.45454 6.27273C2.45454 6.27273 2.73915 7.554 3.24755 8.11887C3.75594 8.68374 4.90909 9 4.90909 9C4.90909 9 3.75594 9.31625 3.24755 9.88113C2.73915 10.446 2.45454 11.7273 2.45454 11.7273Z"}),a.createElement("path",{d:"M7.63636 9C7.63636 9 7.1304 6.94996 6.22658 6.04614C5.32276 5.14233 3.27273 4.63636 3.27273 4.63636C3.27273 4.63636 5.32276 4.1304 6.22658 3.22657C7.1304 2.32275 7.63636 0.272728 7.63636 0.272728C7.63636 0.272728 8.14233 2.32275 9.04615 3.22657C9.94996 4.1304 12 4.63636 12 4.63636C12 4.63636 9.94996 5.14233 9.04615 6.04614C8.14233 6.94996 7.63636 9 7.63636 9Z"}),a.createElement("path",{d:"M1.63636 4.09091C1.63636 4.09091 1.44663 3.19402 1.10769 2.7986C0.768758 2.40318 0 2.18182 0 2.18182C0 2.18182 0.768758 1.96046 1.10769 1.56503C1.44663 1.16961 1.63636 0.272728 1.63636 0.272728C1.63636 0.272728 1.8261 1.16961 2.16503 1.56503C2.50397 1.96046 3.27273 2.18182 3.27273 2.18182C3.27273 2.18182 2.50397 2.40318 2.16503 2.7986C1.8261 3.19402 1.63636 4.09091 1.63636 4.09091Z"}),a.createElement("path",{d:"M10.6364 11.7273C10.6364 11.7273 10.4782 11.0866 10.1958 10.8042C9.91336 10.5218 9.27273 10.3636 9.27273 10.3636C9.27273 10.3636 9.91336 10.2055 10.1958 9.92307C10.4782 9.64064 10.6364 9 10.6364 9C10.6364 9 10.7945 9.64064 11.0769 9.92307C11.3594 10.2055 12 10.3636 12 10.3636C12 10.3636 11.3594 10.5218 11.0769 10.8042C10.7945 11.0866 10.6364 11.7273 10.6364 11.7273Z"})),ze=({props:e})=>a.createElement(r.A,Object.assign({component:Fe},e)),We=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"typorgaf-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6.65333 7.21508H5.1671L3.00719 4.63822L5.1671 2H6.65333L4.44481 4.63822L6.65333 7.21508ZM3.64614 7.21508H2.17379L0 4.63822L2.17379 2H3.63919L1.43762 4.63822L3.64614 7.21508Z"}),a.createElement("path",{d:"M12 6.43338L11.1167 9.98246H9.94694L11.069 6.43338H12ZM9.58089 6.43338L8.72148 9.98246H7.52784L8.6419 6.43338H9.58089Z"})),qe=({props:e})=>a.createElement(r.A,Object.assign({component:We},e)),$e=()=>a.createElement("svg",{width:"42",height:"43",viewBox:"0 0 42 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"0.00830078",y:"0.173828",width:"42",height:"42",rx:"21",fill:"#4597F7"}),a.createElement("g",{clipPath:"url(#clip0_2193_1178)"},a.createElement("path",{d:"M14.0083 30.1739C13.4583 30.1739 12.9875 29.9781 12.5958 29.5864C12.2041 29.1948 12.0083 28.7239 12.0083 28.1739V14.1739C12.0083 13.6239 12.2041 13.1531 12.5958 12.7614C12.9875 12.3698 13.4583 12.1739 14.0083 12.1739H22.9333L20.9333 14.1739H14.0083V28.1739H28.0083V21.2239L30.0083 19.2239V28.1739C30.0083 28.7239 29.8125 29.1948 29.4208 29.5864C29.0291 29.9781 28.5583 30.1739 28.0083 30.1739H14.0083ZM18.0083 24.1739V19.9239L27.1833 10.7489C27.3833 10.5489 27.6083 10.3989 27.8583 10.2989C28.1083 10.1989 28.3583 10.1489 28.6083 10.1489C28.875 10.1489 29.1291 10.1989 29.3708 10.2989C29.6125 10.3989 29.8333 10.5489 30.0333 10.7489L31.4333 12.1739C31.6166 12.3739 31.7583 12.5948 31.8583 12.8364C31.9583 13.0781 32.0083 13.3239 32.0083 13.5739C32.0083 13.8239 31.9625 14.0698 31.8708 14.3114C31.7791 14.5531 31.6333 14.7739 31.4333 14.9739L22.2583 24.1739H18.0083ZM20.0083 22.1739H21.4083L27.2083 16.3739L26.5083 15.6739L25.7833 14.9739L20.0083 20.7489V22.1739Z",fill:"white"}),a.createElement("path",{d:"M14.0083 30.1739C13.4583 30.1739 12.9875 29.9781 12.5958 29.5864C12.2041 29.1948 12.0083 28.7239 12.0083 28.1739V14.1739C12.0083 13.6239 12.2041 13.1531 12.5958 12.7614C12.9875 12.3698 13.4583 12.1739 14.0083 12.1739H22.9333L20.9333 14.1739H14.0083V28.1739H28.0083V21.2239L30.0083 19.2239V28.1739C30.0083 28.7239 29.8125 29.1948 29.4208 29.5864C29.0291 29.9781 28.5583 30.1739 28.0083 30.1739H14.0083ZM18.0083 24.1739V19.9239L27.1833 10.7489C27.3833 10.5489 27.6083 10.3989 27.8583 10.2989C28.1083 10.1989 28.3583 10.1489 28.6083 10.1489C28.875 10.1489 29.1291 10.1989 29.3708 10.2989C29.6125 10.3989 29.8333 10.5489 30.0333 10.7489L31.4333 12.1739C31.6166 12.3739 31.7583 12.5948 31.8583 12.8364C31.9583 13.0781 32.0083 13.3239 32.0083 13.5739C32.0083 13.8239 31.9625 14.0698 31.8708 14.3114C31.7791 14.5531 31.6333 14.7739 31.4333 14.9739L22.2583 24.1739H18.0083ZM20.0083 22.1739H21.4083L27.2083 16.3739L26.5083 15.6739L25.7833 14.9739L20.0083 20.7489V22.1739Z",fill:"white"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_2193_1178"},a.createElement("rect",{width:"24",height:"24",fill:"white",transform:"translate(9.0083 9.17383)"})))),Ue=({props:e})=>a.createElement(r.A,Object.assign({component:$e},e)),Ge=()=>a.createElement("svg",{width:"42",height:"43",viewBox:"0 0 42 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"0.00830078",y:"0.173828",width:"42",height:"42",rx:"21",fill:"#6A32C9"}),a.createElement("path",{d:"M12.0083 14.0129C12.0083 13.5629 12.1736 13.1726 12.5041 12.8419C12.8347 12.5114 13.225 12.3462 13.6751 12.3462L18.5083 12.3462L18.5083 14.0129L13.6751 14.0129L13.6751 28.6794L28.3416 28.6794L28.3416 14.0129L23.5083 14.0129L23.5083 12.3462L28.3416 12.3462C28.7916 12.3462 29.1819 12.5114 29.5126 12.8419C29.8431 13.1726 30.0083 13.5629 30.0083 14.0129L30.0083 28.6794C30.0083 29.1294 29.843 29.5198 29.5125 29.8504C29.1819 30.1809 28.7916 30.3462 28.3416 30.3462L13.675 30.3462C13.225 30.3462 12.8347 30.1809 12.5041 29.8504C12.1736 29.5198 12.0083 29.1294 12.0083 28.6794L12.0083 14.0129ZM16.1251 19.7294L17.3583 18.5129L20.1751 21.3294L20.1751 12.3462L21.8416 12.3462L21.8416 21.3294L24.6583 18.5129L25.8916 19.7294L21.0083 24.6129L16.1251 19.7294Z",fill:"white"})),Xe=({props:e})=>a.createElement(r.A,Object.assign({component:Ge},e)),Ke=()=>a.createElement("svg",{width:"42",height:"43",viewBox:"0 0 42 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"0.00830078",y:"0.173828",width:"42",height:"42",rx:"21",fill:"#72C240"}),a.createElement("path",{d:"M15.0669 30.9687C15.0669 30.9687 14.59 28.8216 13.738 27.875C12.886 26.9284 10.9536 26.3984 10.9536 26.3984C10.9536 26.3984 12.886 25.8684 13.738 24.9218C14.59 23.9752 15.0669 21.8281 15.0669 21.8281C15.0669 21.8281 15.5438 23.9752 16.3958 24.9218C17.2478 25.8684 19.1802 26.3984 19.1802 26.3984C19.1802 26.3984 17.2478 26.9284 16.3958 27.875C15.5438 28.8216 15.0669 30.9687 15.0669 30.9687Z",fill:"white"}),a.createElement("path",{d:"M23.7505 26.0037C23.7505 26.0037 22.9026 22.5682 21.388 21.0536C19.8734 19.539 16.438 18.6912 16.438 18.6912C16.438 18.6912 19.8734 17.8433 21.388 16.3287C22.9026 14.8141 23.7505 11.3787 23.7505 11.3787C23.7505 11.3787 24.5984 14.8141 26.113 16.3287C27.6276 17.8433 31.063 18.6912 31.063 18.6912C31.063 18.6912 27.6276 19.539 26.113 21.0536C24.5984 22.5682 23.7505 26.0037 23.7505 26.0037Z",fill:"white"}),a.createElement("path",{d:"M13.6958 17.7771C13.6958 17.7771 13.3778 16.2741 12.8099 15.6115C12.2419 14.9488 10.9536 14.5779 10.9536 14.5779C10.9536 14.5779 12.2419 14.2069 12.8099 13.5443C13.3778 12.8816 13.6958 11.3787 13.6958 11.3787C13.6958 11.3787 14.0138 12.8816 14.5817 13.5443C15.1497 14.2069 16.438 14.5779 16.438 14.5779C16.438 14.5779 15.1497 14.9488 14.5817 15.6115C14.0138 16.2741 13.6958 17.7771 13.6958 17.7771Z",fill:"white"}),a.createElement("path",{d:"M28.7144 30.2357C28.7144 30.2357 28.4494 29.1622 27.9761 28.6889C27.5028 28.2156 26.4293 27.9506 26.4293 27.9506C26.4293 27.9506 27.5028 27.6856 27.9761 27.2123C28.4494 26.739 28.7144 25.6654 28.7144 25.6654C28.7144 25.6654 28.9794 26.739 29.4527 27.2123C29.926 27.6856 30.9996 27.9506 30.9996 27.9506C30.9996 27.9506 29.926 28.2156 29.4527 28.6889C28.9794 29.1622 28.7144 30.2357 28.7144 30.2357Z",fill:"white"})),Ye=({props:e})=>a.createElement(r.A,Object.assign({component:Ke},e)),Je=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-top-bottom-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},a.createElement("path",{d:"M7.43866e-05 1.03733V0L12 0.0407197V1.07805L7.43866e-05 1.03733ZM0 11.9593V10.922L12 10.9627V12L0 11.9593Z"}),a.createElement("rect",{x:"3.5",y:"3.5",width:"5",height:"5",fill:"none",stroke:"currentColor"})),Qe=({props:e})=>a.createElement(r.A,Object.assign({component:Je},e)),et=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-left-right-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},a.createElement("path",{d:"M10.9626 7.43413e-05L11.9999 7.43866e-05L11.9592 12L10.9218 12L10.9626 7.43413e-05ZM0.0405974 -5.22757e-07L1.07792 -4.77414e-07L1.0372 12L-0.00012271 12L0.0405974 -5.22757e-07Z"}),a.createElement("rect",{x:"8.5",y:"3.5",width:"5",height:"5",transform:"rotate(90 8.5 3.5)",fill:"none",stroke:"currentColor"})),tt=({props:e})=>a.createElement(r.A,Object.assign({component:et},e)),nt=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-switcher",fill:"currentColor",width:"1em",height:"1em","aria-hidden":"true"},a.createElement("path",{d:"M10.959 2.00007L11.9999 2.00007L11.959 10L10.9181 10L10.959 2.00007ZM-0.00012207 2L1.04074 2L0.999842 10L-0.041016 10L-0.00012207 2Z"}),a.createElement("path",{d:"M9.99993 10.9797L9.99993 12.0205L1.99995 11.9796L1.99995 10.9387L9.99993 10.9797ZM10 0.0205078L10 1.06137L1.99995 1.02043L1.99995 -0.0204332L10 0.0205078Z"})),at=({props:e})=>a.createElement(r.A,Object.assign({component:nt},e)),rt=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-top-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},a.createElement("path",{d:"M0 1.04086V0L11.9999 0.0408583V1.08172L0 1.04086Z"}),a.createElement("rect",{x:"3.5",y:"3.5",width:"5",height:"5",fill:"none",stroke:"currentColor"})),lt=({props:e})=>a.createElement(r.A,Object.assign({component:rt},e)),ot=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-bottom-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},a.createElement("path",{d:"M0 10.9591V12L11.9999 11.9591V10.9183L0 10.9591Z"}),a.createElement("rect",{x:"0.5",y:"-0.5",width:"5",height:"5",transform:"matrix(1 0 0 -1 3 8)",fill:"none",stroke:"currentColor"})),it=({props:e})=>a.createElement(r.A,Object.assign({component:ot},e)),st=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-left-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},a.createElement("path",{d:"M-8.67844e-05 -4.54974e-08L1.04077 0L0.999913 12L-0.0409456 12L-8.67844e-05 -4.54974e-08Z"}),a.createElement("rect",{x:"8.5",y:"3.5",width:"5",height:"5",transform:"rotate(90 8.5 3.5)",fill:"none",stroke:"currentColor"})),ct=({props:e})=>a.createElement(r.A,Object.assign({component:st},e)),dt=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-righr-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},a.createElement("path",{d:"M12.0001 -4.54974e-08L10.9592 0L11.0001 12L12.0409 12L12.0001 -4.54974e-08Z"}),a.createElement("rect",{x:"0.5",y:"0.5",width:"5",height:"5",transform:"matrix(4.37114e-08 1 1 -4.37114e-08 3 3)",fill:"none",stroke:"currentColor"})),mt=({props:e})=>a.createElement(r.A,Object.assign({component:dt},e)),pt=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"code",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},a.createElement("path",{d:"M6.75582 1.62701L7.6995 1.87987L5.42377 10.373L4.48009 10.1201L6.75582 1.62701Z"}),a.createElement("path",{d:"M0 6.32085L2.76329 3.55756L3.45411 4.24838L1.38164 6.32085L3.45411 8.39332L2.76329 9.08414L0 6.32085Z"}),a.createElement("path",{d:"M12 6.32085L9.23671 3.55756L8.54589 4.24838L10.6184 6.32085L8.54589 8.39332L9.23671 9.08414L12 6.32085Z"})),ut=({props:e})=>a.createElement(r.A,Object.assign({component:pt},e)),ht=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"go-to-parrent",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M10.2778 10.4815L7.87408 10.4815C7.29692 10.4815 6.81651 10.2897 6.43287 9.90602C6.04922 9.52238 5.8574 9.04197 5.8574 8.46481L5.8574 2.46064L8.25092 4.85417L8.97408 4.12592L5.34814 0.5L1.72222 4.12592L2.44537 4.85417L4.83889 2.46064L4.83889 8.46481C4.83889 9.32377 5.13002 10.0444 5.71227 10.6266C6.29452 11.2089 7.01512 11.5 7.87408 11.5L10.2778 11.5L10.2778 10.4815Z"})),gt=({props:e})=>a.createElement(r.A,Object.assign({component:ht},e)),bt=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"undo",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"})),ft=({props:e})=>a.createElement(r.A,Object.assign({component:bt},e)),Ct=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"redo",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"})),vt=({props:e})=>a.createElement(r.A,Object.assign({component:Ct},e)),Et=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"history",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"})),yt=({props:e})=>a.createElement(r.A,Object.assign({component:Et},e)),_t=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"eye",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"})),At=({props:e})=>a.createElement(r.A,Object.assign({component:_t},e)),wt=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"send",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0.5 1.5024L0.684652 2.29376L1.5024 6L0.684652 9.70623L0.5 10.4976L1.2518 10.1942L10.5372 6.39568L11.5 6L10.5372 5.60431L1.2518 1.80575L0.5 1.5024ZM1.67386 2.90048L8.22902 5.57793H2.26739L1.67386 2.90048ZM2.26739 6.42206H8.22902L1.67386 9.09952L2.26739 6.42206Z"})),kt=({props:e})=>a.createElement(r.A,Object.assign({component:wt},e)),Lt=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"check-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}),a.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"})),St=({props:e})=>a.createElement(r.A,Object.assign({component:Lt},e)),xt=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"share-alt",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"})),Tt=({props:e})=>a.createElement(r.A,Object.assign({component:xt},e)),Bt=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"mobile",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"})),It=({props:e})=>a.createElement(r.A,Object.assign({component:Bt},e)),Mt=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"desktop",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"})),Nt=({props:e})=>a.createElement(r.A,Object.assign({component:Mt},e)),Rt=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"plus-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}),a.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"})),Pt=({props:e})=>a.createElement(r.A,Object.assign({component:Rt},e)),Ht=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"comment",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("defs",null,a.createElement("style",null)),a.createElement("path",{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}),a.createElement("path",{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}),a.createElement("path",{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"})),Vt=({props:e})=>a.createElement(r.A,Object.assign({component:Ht},e)),Ot=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"setting",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"})),jt=({props:e})=>a.createElement(r.A,Object.assign({component:Ot},e)),Dt=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"border-outer",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM484 366h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM302 548h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm364 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-182 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 182h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z"})),Zt=({props:e})=>a.createElement(r.A,Object.assign({component:Dt},e)),Ft=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"appstore-add",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("defs",null,a.createElement("style",null)),a.createElement("path",{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zm52 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200zM424 712H296V584c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v128H104c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h128v128c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V776h128c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"})),zt=({props:e})=>a.createElement(r.A,Object.assign({component:Ft},e)),Wt=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"appstore",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"})),qt=({props:e})=>a.createElement(r.A,Object.assign({component:Wt},e)),$t=()=>a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"build",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z"})),Ut=({props:e})=>a.createElement(r.A,Object.assign({component:$t},e)),Gt=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"search-outlined",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M10.7667 11.5L6.80463 7.53797C6.49908 7.79599 6.14443 7.99799 5.74069 8.14398C5.33696 8.28997 4.90735 8.36297 4.45186 8.36297C3.34736 8.36297 2.4126 7.98017 1.64756 7.21458C0.88252 6.449 0.5 5.52131 0.5 4.43149C0.5 3.34168 0.882795 2.41397 1.64838 1.64838C2.41396 0.882795 3.34336 0.5 4.43658 0.5C5.52979 0.5 6.45748 0.882795 7.21967 1.64838C7.98187 2.41397 8.36297 3.34219 8.36297 4.43302C8.36297 4.87336 8.29167 5.29553 8.14908 5.69955C8.00649 6.10355 7.79939 6.47531 7.52778 6.81482L11.5 10.7667L10.7667 11.5ZM4.44167 7.34446C5.248 7.34446 5.93337 7.06012 6.4978 6.49144C7.06223 5.92277 7.34444 5.23612 7.34444 4.43149C7.34444 3.62685 7.06223 2.9402 6.4978 2.37153C5.93337 1.80286 5.248 1.51852 4.44167 1.51852C3.62968 1.51852 2.93949 1.80286 2.3711 2.37153C1.80271 2.9402 1.51851 3.62685 1.51851 4.43149C1.51851 5.23612 1.80271 5.92277 2.3711 6.49144C2.93949 7.06012 3.62968 7.34446 4.44167 7.34446Z"})),Xt=({props:e})=>a.createElement(r.A,Object.assign({component:Gt},e)),Kt=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"close-outlined",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.84745 11L1 10.1526L5.15255 6L1 1.84745L1.84745 1L6 5.15255L10.1526 1L11 1.84745L6.84745 6L11 10.1526L10.1526 11L6 6.84745L1.84745 11Z"})),Yt=({props:e})=>a.createElement(r.A,Object.assign({component:Kt},e)),Jt=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"add-image",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.11007 11.9944C0.804799 11.9944 0.543469 11.8858 0.326081 11.6684C0.108694 11.451 0 11.1896 0 10.8844V1.11563C0 0.810353 0.108694 0.549023 0.326081 0.331636C0.543469 0.114248 0.804799 0.0055542 1.11007 0.0055542H7.64848V1.11563H1.11007V10.8844H10.8788V4.35707H11.9889V10.8844C11.9889 11.1896 11.8802 11.451 11.6628 11.6684C11.4454 11.8858 11.1841 11.9944 10.8788 11.9944H1.11007ZM9.54672 3.80204V2.45883H8.20352V1.34876H9.54672V0.0055542H10.6568V1.34876H12V2.45883H10.6568V3.80204H9.54672ZM1.99815 9.30805H9.99074L7.55966 6.06661L5.4838 8.80852L3.9408 6.76596L1.99815 9.30805Z"})),Qt=({props:e})=>a.createElement(r.A,Object.assign({component:Jt},e)),en=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"merge-tags",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M7.2 10.8V9.60001H9C9.17 9.60001 9.3125 9.54251 9.4275 9.42751C9.5425 9.31251 9.6 9.17 9.6 9V7.8C9.6 7.42 9.71 7.07501 9.93 6.76501C10.15 6.45501 10.44 6.235 10.8 6.105V5.895C10.44 5.765 10.15 5.545 9.93 5.235C9.71 4.925 9.6 4.58 9.6 4.2V3C9.6 2.83 9.5425 2.6875 9.4275 2.5725C9.3125 2.4575 9.17 2.4 9 2.4H7.2V1.2H9C9.5 1.2 9.925 1.375 10.275 1.725C10.625 2.075 10.8 2.5 10.8 3V4.2C10.8 4.37 10.8575 4.5125 10.9725 4.6275C11.0875 4.7425 11.23 4.8 11.4 4.8H12V7.2H11.4C11.23 7.2 11.0875 7.25751 10.9725 7.37251C10.8575 7.48751 10.8 7.63 10.8 7.8V9C10.8 9.5 10.625 9.92501 10.275 10.275C9.925 10.625 9.5 10.8 9 10.8H7.2ZM3 10.8C2.5 10.8 2.075 10.625 1.725 10.275C1.375 9.92501 1.2 9.5 1.2 9V7.8C1.2 7.63 1.1425 7.48751 1.0275 7.37251C0.9125 7.25751 0.77 7.2 0.6 7.2H0V4.8H0.6C0.77 4.8 0.9125 4.7425 1.0275 4.6275C1.1425 4.5125 1.2 4.37 1.2 4.2V3C1.2 2.5 1.375 2.075 1.725 1.725C2.075 1.375 2.5 1.2 3 1.2H4.8V2.4H3C2.83 2.4 2.6875 2.4575 2.5725 2.5725C2.4575 2.6875 2.4 2.83 2.4 3V4.2C2.4 4.58 2.29 4.925 2.07 5.235C1.85 5.545 1.56 5.765 1.2 5.895V6.105C1.56 6.235 1.85 6.45501 2.07 6.76501C2.29 7.07501 2.4 7.42 2.4 7.8V9C2.4 9.17 2.4575 9.31251 2.5725 9.42751C2.6875 9.54251 2.83 9.60001 3 9.60001H4.8V10.8H3Z"})),tn=({props:e})=>a.createElement(r.A,Object.assign({component:en},e)),nn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"light-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6 7.81819C6.50303 7.81819 6.93182 7.64092 7.28637 7.28637C7.64092 6.93182 7.81819 6.50303 7.81819 6C7.81819 5.49697 7.64092 5.06818 7.28637 4.71363C6.93182 4.35908 6.50303 4.18181 6 4.18181C5.49697 4.18181 5.06818 4.35908 4.71363 4.71363C4.35908 5.06818 4.18181 5.49697 4.18181 6C4.18181 6.50303 4.35908 6.93182 4.71363 7.28637C5.06818 7.64092 5.49697 7.81819 6 7.81819ZM6 8.72727C5.24545 8.72727 4.60227 8.46136 4.07045 7.92955C3.53864 7.39773 3.27273 6.75455 3.27273 6C3.27273 5.24545 3.53864 4.60227 4.07045 4.07045C4.60227 3.53864 5.24545 3.27273 6 3.27273C6.75455 3.27273 7.39773 3.53864 7.92955 4.07045C8.46136 4.60227 8.72727 5.24545 8.72727 6C8.72727 6.75455 8.46136 7.39773 7.92955 7.92955C7.39773 8.46136 6.75455 8.72727 6 8.72727ZM2.18182 6.45454H0V5.54546H2.18182V6.45454ZM12 6.45454H9.81818V5.54546H12V6.45454ZM5.54546 2.18182V0H6.45454V2.18182H5.54546ZM5.54546 12V9.81818H6.45454V12H5.54546ZM3 3.6091L1.63182 2.28637L2.28181 1.61819L3.5909 2.98182L3 3.6091ZM9.72727 10.3727L8.39546 9.00454L9.0091 8.38182L10.3682 9.71363L9.72727 10.3727ZM8.38182 2.9909L9.71363 1.63182L10.3818 2.27273L9.02727 3.6L8.38182 2.9909ZM1.62727 9.71819L2.98636 8.38636L3.61818 9.0091L2.28637 10.3682L1.62727 9.71819Z"})),an=({props:e})=>a.createElement(r.A,Object.assign({component:nn},e)),rn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"dark-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6 11C4.61111 11 3.43056 10.5139 2.45833 9.54167C1.48611 8.56944 1 7.38889 1 6C1 4.61111 1.48611 3.43056 2.45833 2.45833C3.43056 1.48611 4.61111 1 6 1C6.09259 1 6.1875 1.00309 6.28472 1.00926C6.38194 1.01543 6.49382 1.02469 6.62036 1.03704C6.2716 1.32408 5.99769 1.68442 5.79861 2.11806C5.59954 2.55169 5.5 3.01234 5.5 3.5C5.5 4.33333 5.79167 5.04167 6.375 5.625C6.95833 6.20833 7.66667 6.5 8.5 6.5C8.99074 6.5 9.45216 6.40509 9.88426 6.21528C10.3164 6.02546 10.6759 5.76544 10.963 5.43519C10.9753 5.54939 10.9846 5.65047 10.9907 5.73843C10.9969 5.82639 11 5.91358 11 6C11 7.38889 10.5139 8.56944 9.54167 9.54167C8.56944 10.5139 7.38889 11 6 11ZM6 10.0741C6.94444 10.0741 7.77469 9.7909 8.49075 9.22454C9.20681 8.65818 9.67594 7.97376 9.89815 7.17129C9.68211 7.25463 9.45474 7.3179 9.21606 7.36111C8.97737 7.40431 8.73869 7.42592 8.5 7.42592C7.41242 7.42592 6.4862 7.0435 5.72135 6.27865C4.9565 5.5138 4.57408 4.58758 4.57408 3.5C4.57408 3.29012 4.59414 3.06944 4.63426 2.83796C4.67438 2.60648 4.74229 2.35185 4.83797 2.07407C3.99229 2.3395 3.29552 2.83487 2.74768 3.56018C2.19984 4.28549 1.92592 5.09876 1.92592 6C1.92592 7.12963 2.32252 8.09105 3.11574 8.88426C3.90895 9.67748 4.87037 10.0741 6 10.0741Z"})),ln=({props:e})=>a.createElement(r.A,Object.assign({component:rn},e)),on=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"auto-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M5.52714 9.9212C6.07297 9.9212 6.58669 9.79919 7.0683 9.55517C7.54992 9.31115 7.97052 8.98205 8.33012 8.56787C7.09078 8.49081 6.04087 8.02445 5.18038 7.16879C4.31991 6.31312 3.88967 5.27204 3.88967 4.04554C3.88967 3.89463 3.8993 3.74292 3.91857 3.59041C3.93783 3.4379 3.96031 3.28779 3.986 3.1401C3.38558 3.47402 2.89835 3.92352 2.5243 4.48861C2.15024 5.0537 1.96321 5.67659 1.96321 6.35727C1.96321 7.34725 2.30971 8.18873 3.0027 8.88171C3.69568 9.5747 4.53716 9.9212 5.52714 9.9212ZM5.52714 10.8844C4.26853 10.8844 3.19935 10.4445 2.31961 9.5648C1.43987 8.68506 1 7.61588 1 6.35727C1 5.09866 1.43987 4.02948 2.31961 3.14974C3.19935 2.27 4.26853 1.83013 5.52714 1.83013C5.5432 1.83013 5.55925 1.83093 5.5753 1.83253C5.59136 1.83414 5.60741 1.83494 5.62346 1.83494C5.36338 2.14317 5.16994 2.48672 5.04312 2.86558C4.9163 3.24446 4.85288 3.63777 4.85288 4.04554C4.85288 5.03552 5.19938 5.877 5.89237 6.56998C6.58535 7.26297 7.42683 7.60946 8.41681 7.60946C8.68331 7.60946 8.94739 7.57976 9.20906 7.52036C9.47074 7.46097 9.72037 7.37187 9.95796 7.25307C9.74605 8.31261 9.22431 9.18273 8.39273 9.86341C7.56115 10.5441 6.60595 10.8844 5.52714 10.8844ZM7.20315 5.16287L9.02883 0H10.1699L12 5.16287H10.9405L10.533 4.007H8.67018L8.26269 5.16287H7.20315ZM8.90805 3.26533H10.2951L9.60158 1.06918L8.90805 3.26533Z"})),sn=({props:e})=>a.createElement(r.A,Object.assign({component:on},e)),cn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"email-confirmation",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M8.00198 11.3105L5.85436 9.16288L6.47419 8.54304L8.00198 10.0708L11.1186 6.95415L11.7385 7.574L8.00198 11.3105ZM5.95912 5.48748L10.2718 2.75493H1.64641L5.95912 5.48748ZM5.95912 6.36049L1.61149 3.59303V9.2851H4.74564L5.61864 10.1581H1.61149C1.37577 10.1581 1.17134 10.0715 0.998197 9.8984C0.825052 9.72525 0.73848 9.52081 0.73848 9.2851V2.75493C0.73848 2.51922 0.825052 2.31479 0.998197 2.14165C1.17134 1.9685 1.37577 1.88193 1.61149 1.88193H10.3155C10.5512 1.88193 10.7556 1.9685 10.9288 2.14165C11.1019 2.31479 11.1885 2.51922 11.1885 2.75493V5.64463L10.3155 6.51766V3.59303L5.95912 6.36049Z"})),dn=({props:e})=>a.createElement(r.A,Object.assign({component:cn},e)),mn=()=>a.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"atom",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M480-200 200-480l280-280 280 280-280 280Zm0-91.999L668.001-480 480-668.001 291.999-480 480-291.999ZM480-480Z"})),pn=({props:e})=>a.createElement(r.A,Object.assign({component:mn},e)),un=()=>a.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"column",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M579.999-120q-26.999 0-46.833-19.833-19.833-19.833-19.833-46.833v-586.668q0-27 19.833-46.833Q553-840 579.999-840h193.335q27 0 46.833 19.833T840-773.334v586.668q0 27-19.833 46.833T773.334-120H579.999Zm0-653.334v586.668h193.335v-586.668H579.999ZM186.666-120q-27 0-46.833-19.833T120-186.666v-586.668q0-27 19.833-46.833T186.666-840h193.335q26.999 0 46.833 19.833 19.833 19.833 19.833 46.833v586.668q0 27-19.833 46.833Q407-120 380.001-120H186.666Zm0-653.334v586.668h193.335v-586.668H186.666Zm586.668 0H579.999h193.335Zm-393.333 0H186.666h193.335Z"})),hn=({props:e})=>a.createElement(r.A,Object.assign({component:un},e)),gn=()=>a.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"block",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M186.666-120q-27 0-46.833-19.833T120-186.666v-586.668q0-27 19.833-46.833T186.666-840h586.668q27 0 46.833 19.833T840-773.334v586.668q0 27-19.833 46.833T773.334-120H186.666Zm0-66.666h586.668v-586.668H186.666v586.668Zm0 0v-586.668 586.668Z"})),bn=({props:e})=>a.createElement(r.A,Object.assign({component:gn},e)),fn=()=>a.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"group",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M146.666-160q-27.5 0-47.083-19.583T80-226.666v-506.668q0-27.5 19.583-47.083T146.666-800h666.668q27.5 0 47.083 19.583T880-733.334v506.668q0 27.5-19.583 47.083T813.334-160H146.666Zm0-66.666h100.001v-506.668H146.666v506.668Zm166.667 0h333.334v-506.668H313.333v506.668Zm400 0h100.001v-506.668H713.333v506.668Zm-400-506.668v506.668-506.668Z"})),Cn=({props:e})=>a.createElement(r.A,Object.assign({component:fn},e)),vn=()=>a.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"button",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M186.666-280q-27 0-46.833-19.833T120-346.666v-266.668q0-27 19.833-46.833T186.666-680h586.668q27 0 46.833 19.833T840-613.334v266.668q0 27-19.833 46.833T773.334-280H186.666Zm0-66.666h586.668v-266.668H186.666v266.668Zm0 0v-266.668 266.668Z"})),En=({props:e})=>a.createElement(r.A,Object.assign({component:vn},e)),yn=()=>a.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"button",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M186.666-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"})),_n=({props:e})=>a.createElement(r.A,Object.assign({component:yn},e)),An=()=>a.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"button",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M146.666-160q-27 0-46.833-19.833T80-226.666v-506.668q0-27 19.833-46.833T146.666-800h666.668q27 0 46.833 19.833T880-733.334v506.668q0 27-19.833 46.833T813.334-160H146.666ZM480-454.667 146.666-670.001v443.335h666.668v-443.335L480-454.667Zm0-66.666 330.667-212.001H150l330 212.001ZM146.666-670.001v-63.333 506.668-443.335Z"})),wn=({props:e})=>a.createElement(r.A,Object.assign({component:An},e)),kn=()=>a.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"button",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"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"})),Ln=({props:e})=>a.createElement(r.A,Object.assign({component:kn},e)),Sn=({svgString:e,...t})=>a.createElement("span",Object.assign({role:"img",className:"anticon",dangerouslySetInnerHTML:{__html:e}},t)),xn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"slider-group",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M10.0385 4.8313C9.82428 4.61707 9.47693 4.61707 9.2627 4.8313C9.04846 5.04554 9.04846 5.39289 9.2627 5.60712C9.47693 5.82137 9.82428 5.82138 10.0385 5.60713C10.2527 5.3929 10.2528 5.04554 10.0385 4.8313ZM8.61987 4.18848C9.18913 3.61922 10.1121 3.61922 10.6813 4.18848C11.2506 4.75773 11.2506 5.68069 10.6813 6.24995C10.1121 6.81923 9.18912 6.81923 8.61987 6.24995C8.05062 5.68069 8.05062 4.75773 8.61987 4.18848Z"}),a.createElement("path",{d:"M5.22924 3.56484C4.80353 3.99055 4.80353 4.68074 5.22924 5.10645C5.65495 5.53216 6.34514 5.53215 6.77082 5.10646C7.19653 4.68075 7.19653 3.99054 6.77083 3.56484C6.34512 3.13913 5.65491 3.13915 5.22924 3.56484ZM4.58642 5.74927C3.80568 4.96854 3.80568 3.70274 4.58642 2.92201C5.36712 2.14128 6.63293 2.14129 7.41365 2.92201C8.19438 3.70274 8.19438 4.96854 7.41366 5.74927"}),a.createElement("path",{d:"M2.73736 4.8313C2.52311 4.61706 2.17576 4.61707 1.96153 4.8313C1.74729 5.04554 1.74729 5.39289 1.96153 5.60712C2.17576 5.82137 2.52311 5.82138 2.73736 5.60713C2.95159 5.3929 2.95159 5.04554 2.73736 4.8313V4.8313ZM1.31871 4.18847C1.88797 3.61922 2.81092 3.61922 3.38018 4.18847C3.94944 4.75773 3.94944 5.68069 3.38019 6.24995C2.81092 6.81923 1.88797 6.81923 1.31871 6.24995M1.31871 4.18847C0.749447 4.75773 0.749454 5.68069 1.31871 6.24995Z"}),a.createElement("path",{d:"M9.36315 7.42584C9.36315 7.1748 9.56666 6.97129 9.81769 6.97129H10.2149C11.1507 6.97129 11.9091 7.72966 11.9091 8.66549V9.20898C11.9091 9.46002 11.7056 9.66353 11.4545 9.66353C11.2035 9.66353 11 9.46002 11 9.20898V8.66549C11 8.23174 10.6486 7.88038 10.2149 7.88038H9.81769C9.56666 7.88038 9.36315 7.67688 9.36315 7.42584Z"}),a.createElement("path",{d:"M1.78513 7.88038C1.35136 7.88038 1 8.23174 1 8.66549V9.20898C1 9.46002 0.796496 9.66353 0.545457 9.66353C0.294419 9.66353 0.0909119 9.46002 0.0909119 9.20898V8.66549C0.0909119 7.72966 0.849299 6.97129 1.78513 6.97129H2.18231C2.43335 6.97129 2.63686 7.1748 2.63686 7.42584C2.63686 7.67688 2.43335 7.88038 2.18231 7.88038H1.78513Z"}),a.createElement("path",{d:"M2.89752 8.41507C2.89752 7.20553 3.87805 6.225 5.08759 6.225H6.91189C8.12143 6.225 9.10197 7.20553 9.10197 8.41507V9.20896C9.10197 9.45999 8.89846 9.6635 8.64742 9.6635C8.39638 9.6635 8.19288 9.45999 8.19288 9.20896V8.41507C8.19288 7.70761 7.61936 7.13409 6.91189 7.13409H5.08759C4.38013 7.13409 3.80661 7.70761 3.80661 8.41507V9.20896C3.80661 9.45999 3.60311 9.6635 3.35207 9.6635C3.10103 9.6635 2.89752 9.45999 2.89752 9.20896V8.41507Z"})),Tn=({props:e})=>a.createElement(r.A,Object.assign({component:xn},e)),Bn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"slider-templates",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0 1.82812C0 0.818477 0.818477 0 1.82812 0H7.73438C8.74401 0 9.5625 0.818477 9.5625 1.82812V4.50405C9.51598 4.50135 9.46907 4.5 9.42188 4.5H8.71875V1.82812C8.71875 1.28447 8.27803 0.84375 7.73438 0.84375H1.82812C1.28447 0.84375 0.84375 1.28447 0.84375 1.82812V8.29688C0.84375 8.84053 1.28447 9.28125 1.82812 9.28125H2.25V9.42188C2.25 9.66656 2.28677 9.9027 2.35507 10.125H1.82812C0.818483 10.125 0 9.30651 0 8.29688V1.82812ZM2.67188 1.6875C2.43888 1.6875 2.25 1.87638 2.25 2.10938C2.25 2.34237 2.43888 2.53125 2.67188 2.53125H6.89062C7.12361 2.53125 7.3125 2.34237 7.3125 2.10938C7.3125 1.87638 7.12361 1.6875 6.89062 1.6875H2.67188ZM3.375 3.51562C3.375 3.28263 3.56388 3.09375 3.79688 3.09375H6.89062C7.12361 3.09375 7.3125 3.28263 7.3125 3.51562C7.3125 3.74862 7.12361 3.9375 6.89062 3.9375H3.79688C3.56388 3.9375 3.375 3.74862 3.375 3.51562ZM2.8125 6.89062C2.8125 5.88099 3.63098 5.0625 4.64062 5.0625H9.42188C10.4315 5.0625 11.25 5.88099 11.25 6.89062V9.42188C11.25 10.4315 10.4315 11.25 9.42188 11.25H4.64062C3.63098 11.25 2.8125 10.4315 2.8125 9.42188V6.89062ZM4.64062 5.90625C4.35696 5.90625 4.10132 6.02623 3.92169 6.21821L7.03131 8.21723L10.1408 6.21821C9.9612 6.02623 9.70554 5.90625 9.42188 5.90625H4.64062ZM3.65625 9.42188C3.65625 9.96553 4.09697 10.4062 4.64062 10.4062H9.42188C9.96553 10.4062 10.4062 9.96553 10.4062 9.42188V7.05066L7.2594 9.07363C7.12046 9.16296 6.94209 9.16296 6.80316 9.07363L3.65625 7.05066V9.42188Z"})),In=({props:e})=>a.createElement(r.A,Object.assign({component:Bn},e)),Mn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"slider-blocks",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M5.81067 2.66667H8.82103C9.47215 2.66667 10 3.19453 10 3.84566V5.81065H9.21403V3.84566C9.21403 3.62862 9.03807 3.45267 8.82103 3.45267H5.81067V2.66667ZM3.45268 5.81065V8.82101C3.45268 9.03805 3.62863 9.21401 3.84568 9.21401H5.81067V10H3.84568C3.19454 10 2.66669 9.47213 2.66669 8.82101V5.81065H3.45268Z"}),a.createElement("path",{d:"M1 2.21875C1 1.54565 1.54565 1 2.21875 1H4.11458C4.78768 1 5.33333 1.54565 5.33333 2.21875V4.11458C5.33333 4.78768 4.78768 5.33333 4.11458 5.33333H2.21875C1.54565 5.33333 1 4.78768 1 4.11458V2.21875ZM2.21875 1.8125C1.99439 1.8125 1.8125 1.99439 1.8125 2.21875V4.11458C1.8125 4.33895 1.99439 4.52083 2.21875 4.52083H4.11458C4.33895 4.52083 4.52083 4.33895 4.52083 4.11458V2.21875C4.52083 1.99439 4.33895 1.8125 4.11458 1.8125H2.21875Z"}),a.createElement("path",{d:"M6.33334 7.53334C6.33334 6.87062 6.87062 6.33334 7.53334 6.33334H10.4667C11.1294 6.33334 11.6667 6.87062 11.6667 7.53334V10.4667C11.6667 11.1294 11.1294 11.6667 10.4667 11.6667H7.53334C6.87062 11.6667 6.33334 11.1294 6.33334 10.4667V7.53334ZM7.53334 7.13334C7.31244 7.13334 7.13334 7.31243 7.13334 7.53334V10.4667C7.13334 10.6876 7.31244 10.8667 7.53334 10.8667H10.4667C10.6876 10.8667 10.8667 10.6876 10.8667 10.4667V7.53334C10.8667 7.31243 10.6876 7.13334 10.4667 7.13334H7.53334Z"})),Nn=({props:e})=>a.createElement(r.A,Object.assign({component:Mn},e)),Rn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"slider-adaptive",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M2.11687 2.27574C2.29356 1.52741 2.95016 1 3.70508 1H8.96257C9.7175 1 10.3741 1.52741 10.5508 2.27574L11.6132 6.7753C11.9 7.98974 10.9973 9.1579 9.77217 9.1579H5.53398V8.34211H9.77217C10.4796 8.34211 11.0009 7.6675 10.8353 6.96625L9.77286 2.46668C9.68273 2.08488 9.34774 1.81579 8.96257 1.81579H3.70508C3.31992 1.81579 2.98492 2.08488 2.89477 2.46668L2.5348 3.99123H1.9334C1.85664 3.99123 1.78124 3.99724 1.70766 4.00883L2.11687 2.27574ZM5.52795 10.5175H9.13425C9.35521 10.5175 9.5343 10.3349 9.5343 10.1096C9.5343 9.88438 9.35521 9.70175 9.13425 9.70175H5.53398V10.3816C5.53398 10.4274 5.53195 10.4728 5.52795 10.5175ZM3.00031 7.25439C3.36855 7.25439 3.66707 6.95004 3.66707 6.57456C3.66707 6.19908 3.36855 5.89474 3.00031 5.89474C2.63206 5.89474 2.33354 6.19908 2.33354 6.57456C2.33354 6.95004 2.63206 7.25439 3.00031 7.25439ZM1 5.48684C1 4.9612 1.41793 4.53509 1.93348 4.53509H4.06713C4.58268 4.53509 5.00061 4.9612 5.00061 5.48684V10.3816C5.00061 10.9072 4.58268 11.3333 4.06713 11.3333H1.93347C1.41793 11.3333 1 10.9072 1 10.3816V5.48684ZM1.93348 5.35088C1.85982 5.35088 1.80012 5.41174 1.80012 5.48684V10.3816C1.80012 10.4567 1.85982 10.5175 1.93347 10.5175H4.06713C4.14078 10.5175 4.20049 10.4567 4.20049 10.3816V5.48684C4.20049 5.41174 4.14078 5.35088 4.06713 5.35088H1.93348Z"})),Pn=({props:e})=>a.createElement(r.A,Object.assign({component:Rn},e)),Hn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"slider-magic",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M9.5568 0.653814C9.5243 0.522457 9.40639 0.430084 9.27106 0.430084C9.1357 0.430084 9.01779 0.522409 8.98532 0.653814L8.98496 0.655251L8.98325 0.661939C8.98166 0.668112 8.97917 0.677645 8.97579 0.690173C8.96902 0.715244 8.95873 0.752211 8.94502 0.798175C8.91751 0.890365 8.87665 1.0174 8.82339 1.1565C8.71241 1.44638 8.56387 1.74441 8.39728 1.91099C8.2307 2.07757 7.93268 2.22611 7.64279 2.33709C7.50369 2.39035 7.37666 2.43122 7.28447 2.45872C7.2385 2.47244 7.20154 2.48273 7.17647 2.48949C7.16394 2.49287 7.15441 2.49537 7.14823 2.49696L7.14154 2.49866L7.14018 2.49901C7.00883 2.53151 6.91638 2.64943 6.91638 2.78477C6.91638 2.92013 7.0087 3.03804 7.14011 3.07051L7.14154 3.07087L7.14823 3.07258C7.15441 3.07417 7.16394 3.07666 7.17647 3.08004C7.20154 3.0868 7.2385 3.0971 7.28447 3.11081C7.37666 3.13832 7.50369 3.17918 7.64279 3.23244C7.93268 3.34342 8.2307 3.49196 8.39728 3.65854C8.56387 3.82513 8.71241 4.12315 8.82339 4.41304C8.87665 4.55214 8.91751 4.67917 8.94502 4.77136C8.95873 4.81732 8.96902 4.85429 8.97579 4.87936C8.97917 4.89189 8.98166 4.90142 8.98325 4.9076L8.98496 4.91428L8.9853 4.91564C9.0178 5.047 9.13573 5.13945 9.27106 5.13945C9.40643 5.13945 9.52433 5.04713 9.5568 4.91572L9.55716 4.91428L9.55887 4.9076C9.56046 4.90142 9.56295 4.89189 9.56633 4.87936C9.5731 4.85429 9.58339 4.81732 9.59711 4.77136C9.62461 4.67917 9.66548 4.55214 9.71873 4.41304C9.82972 4.12315 9.97825 3.82513 10.1448 3.65854C10.3114 3.49196 10.6094 3.34342 10.8993 3.23244C11.0384 3.17918 11.1655 3.13832 11.2577 3.11081C11.3036 3.0971 11.3406 3.0868 11.3657 3.08004C11.3782 3.07666 11.3877 3.07417 11.3939 3.07258L11.4006 3.07087L11.4019 3.07053C11.5333 3.03803 11.6257 2.92011 11.6257 2.78477C11.6257 2.6494 11.5334 2.53149 11.402 2.49903L11.4006 2.49867L11.3939 2.49696C11.3877 2.49537 11.3782 2.49287 11.3657 2.48949C11.3406 2.48273 11.3036 2.47244 11.2577 2.45872C11.1655 2.43122 11.0384 2.39035 10.8993 2.33709C10.6094 2.22611 10.3114 2.07757 10.1448 1.91099C9.97825 1.74441 9.82972 1.44638 9.71873 1.1565C9.66548 1.0174 9.62461 0.890364 9.59711 0.798175C9.58339 0.752211 9.5731 0.715244 9.56633 0.690173C9.56295 0.677645 9.56046 0.668112 9.55887 0.661938L9.55716 0.655251L9.5568 0.653814ZM10.4426 2.78477C10.1928 2.67242 9.92218 2.52084 9.72859 2.32724C9.53499 2.13364 9.38341 1.86299 9.27106 1.61323C9.15872 1.86299 9.00714 2.13364 8.81354 2.32724C8.61994 2.52084 8.34928 2.67242 8.09952 2.78477C8.34928 2.89711 8.61994 3.04869 8.81354 3.24229C9.00714 3.43589 9.15872 3.70654 9.27106 3.95631C9.38341 3.70654 9.53499 3.43589 9.72859 3.24229C9.92218 3.04869 10.1928 2.89711 10.4426 2.78477Z"}),a.createElement("path",{d:"M9.90356 6.32335C9.87931 6.22534 9.79133 6.15641 9.69035 6.15641C9.58934 6.15641 9.50136 6.2253 9.47714 6.32335L9.47687 6.32442L9.47559 6.32942C9.47441 6.33402 9.47255 6.34114 9.47002 6.35048C9.46498 6.36919 9.45729 6.39677 9.44706 6.43107C9.42654 6.49986 9.39604 6.59465 9.35631 6.69845C9.27349 6.91475 9.16266 7.13713 9.03835 7.26143C8.91405 7.38574 8.69167 7.49657 8.47537 7.57939C8.37157 7.61912 8.27678 7.64962 8.20799 7.67014C8.17369 7.68037 8.14611 7.68806 8.1274 7.6931C8.11805 7.69563 8.11094 7.69749 8.10634 7.69867L8.10134 7.69995C8.00333 7.7242 7.93333 7.81245 7.93333 7.91343C7.93333 8.01444 8.00222 8.10242 8.10027 8.12665L8.10634 8.12819C8.11094 8.12938 8.11805 8.13124 8.1274 8.13376C8.14611 8.1388 8.17369 8.14649 8.20799 8.15672C8.27678 8.17724 8.37157 8.20774 8.47537 8.24748C8.69167 8.33029 8.91405 8.44113 9.03835 8.56543C9.16266 8.68973 9.27349 8.91211 9.35631 9.12842C9.39604 9.23221 9.42654 9.327 9.44706 9.39579C9.45729 9.43009 9.46498 9.45767 9.47002 9.47638C9.47255 9.48573 9.47441 9.49284 9.47559 9.49745L9.47687 9.50244C9.50112 9.60045 9.58937 9.67045 9.69035 9.67045C9.79136 9.67045 9.87934 9.60156 9.90356 9.50351L9.90383 9.50244L9.90511 9.49745C9.9063 9.49284 9.90815 9.48573 9.91068 9.47638C9.91572 9.45767 9.92341 9.43009 9.93364 9.39579C9.95416 9.327 9.98466 9.23221 10.0244 9.12842C10.1072 8.91211 10.218 8.68973 10.3423 8.56543C10.4666 8.44113 10.689 8.33029 10.9053 8.24748C11.0091 8.20774 11.1039 8.17724 11.1727 8.15672C11.207 8.14649 11.2346 8.1388 11.2533 8.13376C11.2626 8.13124 11.2698 8.12938 11.2744 8.12819L11.2794 8.12691C11.3774 8.10267 11.4474 8.01442 11.4474 7.91343C11.4474 7.81242 11.3785 7.72444 11.2804 7.70022L11.2794 7.69995L11.2744 7.69867C11.2698 7.69749 11.2626 7.69563 11.2533 7.6931C11.2346 7.68806 11.207 7.68037 11.1727 7.67014C11.1039 7.64962 11.0091 7.61912 10.9053 7.57939C10.689 7.49657 10.4666 7.38574 10.3423 7.26143C10.218 7.13713 10.1072 6.91475 10.0244 6.69845C9.98466 6.59465 9.95416 6.49986 9.93364 6.43107C9.92341 6.39677 9.91572 6.36919 9.91068 6.35048C9.90815 6.34114 9.9063 6.33402 9.90511 6.32941L9.90383 6.32442L9.90356 6.32335ZM10.5645 7.91343C10.3782 7.8296 10.1762 7.71649 10.0317 7.57203C9.88729 7.42757 9.77418 7.22562 9.69035 7.03925C9.60652 7.22562 9.49341 7.42757 9.34895 7.57203C9.20449 7.71649 9.00254 7.8296 8.81617 7.91343C9.00254 7.99726 9.20449 8.11037 9.34895 8.25483C9.49341 8.39929 9.60652 8.60124 9.69035 8.78761C9.77418 8.60124 9.88729 8.39929 10.0317 8.25483C10.1762 8.11037 10.3782 7.99726 10.5645 7.91343Z"}),a.createElement("path",{d:"M4.03008 0.707933C4.00583 0.609917 3.91785 0.54099 3.81687 0.54099C3.71586 0.54099 3.62788 0.609881 3.60365 0.707933L3.60338 0.709005L3.60211 0.713995C3.60092 0.718602 3.59906 0.725715 3.59654 0.735063C3.59149 0.753771 3.58381 0.781355 3.57358 0.815652C3.55305 0.884443 3.52256 0.979231 3.48282 1.08303C3.40001 1.29933 3.28917 1.52171 3.16487 1.64601C3.04057 1.77032 2.81819 1.88115 2.60188 1.96397C2.49809 2.0037 2.4033 2.0342 2.33451 2.05472C2.30021 2.06496 2.27263 2.07264 2.25392 2.07768C2.24457 2.08021 2.23746 2.08207 2.23285 2.08325L2.22786 2.08453C2.12984 2.10878 2.05984 2.19703 2.05984 2.29801C2.05984 2.39902 2.12874 2.487 2.22679 2.51123L2.22786 2.51149L2.23285 2.51277C2.23746 2.51396 2.24457 2.51582 2.25392 2.51834C2.27263 2.52338 2.30021 2.53107 2.33451 2.5413C2.4033 2.56182 2.49809 2.59232 2.60188 2.63206C2.81819 2.71487 3.04057 2.82571 3.16487 2.95001C3.28917 3.07431 3.40001 3.29669 3.48282 3.513C3.52256 3.61679 3.55305 3.71158 3.57358 3.78037C3.58381 3.81467 3.59149 3.84225 3.59654 3.86096C3.59906 3.87031 3.60092 3.87742 3.60211 3.88203L3.60338 3.88702C3.62763 3.98503 3.71588 4.05503 3.81687 4.05503C3.91787 4.05503 4.00585 3.98614 4.03008 3.88809L4.03035 3.88702L4.03162 3.88203C4.03281 3.87742 4.03467 3.87031 4.03719 3.86096C4.04224 3.84225 4.04992 3.81467 4.06015 3.78037C4.08068 3.71158 4.11117 3.61679 4.15091 3.513C4.23372 3.29669 4.34456 3.07431 4.46886 2.95001C4.59316 2.82571 4.81554 2.71487 5.03185 2.63206C5.13565 2.59232 5.23043 2.56182 5.29922 2.5413C5.33352 2.53107 5.36111 2.52338 5.37981 2.51834C5.38916 2.51582 5.39627 2.51396 5.40088 2.51277L5.40587 2.51149C5.5039 2.48725 5.57389 2.399 5.57389 2.29801C5.57389 2.197 5.505 2.10902 5.40694 2.0848L5.40587 2.08453L5.40088 2.08325C5.39627 2.08207 5.38916 2.08021 5.37981 2.07768C5.36111 2.07264 5.33352 2.06496 5.29922 2.05472C5.23043 2.0342 5.13565 2.0037 5.03185 1.96397C4.81554 1.88115 4.59316 1.77032 4.46886 1.64601C4.34456 1.52171 4.23372 1.29933 4.15091 1.08303C4.11117 0.979231 4.08068 0.884443 4.06015 0.815652C4.04992 0.781355 4.04224 0.753771 4.03719 0.735063C4.03467 0.725715 4.03281 0.718602 4.03162 0.713995L4.03035 0.709005L4.03008 0.707933ZM4.69105 2.29801C4.50468 2.21418 4.30272 2.10107 4.15826 1.95661C4.0138 1.81215 3.90069 1.6102 3.81687 1.42383C3.73304 1.6102 3.61993 1.81215 3.47547 1.95661C3.33101 2.10107 3.12905 2.21418 2.94268 2.29801C3.12905 2.38184 3.33101 2.49495 3.47547 2.63941C3.61993 2.78387 3.73304 2.98582 3.81687 3.17219C3.9007 2.98582 4.0138 2.78387 4.15826 2.63941C4.30272 2.49495 4.50468 2.38184 4.69105 2.29801Z"}),a.createElement("path",{d:"M5.68126 4.37775C5.81404 4.24497 6.02931 4.24497 6.16209 4.37775L7.5664 5.78206C7.69918 5.91484 7.69918 6.13011 7.5664 6.26289L2.55813 11.2712C2.15979 11.6695 1.51397 11.6695 1.11563 11.2712L0.672988 10.8285C0.274654 10.4302 0.274653 9.78436 0.672988 9.38602L5.68126 4.37775ZM4.89535 6.12532L1.15382 9.86686C1.02104 9.99964 1.02104 10.2149 1.15382 10.3477L1.59646 10.7903C1.72924 10.9231 1.94452 10.9231 2.0773 10.7903L5.81886 7.04877C5.76742 7.03245 5.72012 7.00397 5.68125 6.9651L4.9791 6.26295C4.93919 6.22303 4.91127 6.17566 4.89535 6.12532ZM5.92167 5.80121L5.70035 6.02253L5.92167 6.24385L6.14299 6.02253L5.92167 5.80121Z"})),Vn=({props:e})=>a.createElement(r.A,Object.assign({component:Hn},e)),On=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-justify",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0.75 2.22321H11.25C11.3089 2.22321 11.3571 2.175 11.3571 2.11607V1.36607C11.3571 1.30714 11.3089 1.25893 11.25 1.25893L0.75 1.25893C0.691071 1.25893 0.642857 1.30714 0.642857 1.36607V2.11607C0.642857 2.175 0.691071 2.22321 0.75 2.22321ZM11.25 7.90178C11.3089 7.90178 11.3571 7.85357 11.3571 7.79464V7.04464C11.3571 6.98571 11.3089 6.9375 11.25 6.9375H0.75C0.691071 6.9375 0.642857 6.98571 0.642857 7.04464V7.79464C0.642857 7.85357 0.691071 7.90178 0.75 7.90178H11.25ZM11.25 9.77678H0.749999C0.691071 9.77678 0.642857 9.825 0.642857 9.88393V10.6339C0.642857 10.6929 0.691071 10.7411 0.749999 10.7411H11.25C11.3089 10.7411 11.3571 10.6929 11.3571 10.6339V9.88393C11.3571 9.825 11.3089 9.77678 11.25 9.77678ZM11.25 4.09821H0.749999C0.691071 4.09821 0.642857 4.14643 0.642857 4.20536V4.95536C0.642857 5.01428 0.691071 5.0625 0.749999 5.0625H11.25C11.3089 5.0625 11.3571 5.01428 11.3571 4.95536V4.20536C11.3571 4.14643 11.3089 4.09821 11.25 4.09821Z"})),jn=({props:e})=>a.createElement(r.A,Object.assign({component:On},e)),Dn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"speed",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M5.09583 8.04167C5.32917 8.275 5.63055 8.38924 6 8.38438C6.36944 8.37952 6.64167 8.24584 6.81667 7.98334L10.0833 3.08334L5.18333 6.35C4.92083 6.525 4.78229 6.79236 4.76771 7.15209C4.75312 7.51181 4.8625 7.80834 5.09583 8.04167ZM6 1.33334C6.57361 1.33334 7.12535 1.41354 7.65521 1.57396C8.18507 1.73438 8.68333 1.975 9.15 2.29584L8.04167 2.99584C7.72083 2.83056 7.38785 2.7066 7.04271 2.62396C6.69757 2.54132 6.35 2.5 6 2.5C4.70694 2.5 3.6059 2.95452 2.69687 3.86354C1.78785 4.77257 1.33333 5.87361 1.33333 7.16667C1.33333 7.575 1.38924 7.97847 1.50104 8.37709C1.61285 8.7757 1.77083 9.15 1.975 9.5H10.025C10.2486 9.13056 10.4115 8.74653 10.5135 8.34792C10.6156 7.94931 10.6667 7.53611 10.6667 7.10834C10.6667 6.75834 10.6253 6.41806 10.5427 6.0875C10.4601 5.75695 10.3361 5.43611 10.1708 5.125L10.8708 4.01667C11.1625 4.47361 11.3934 4.95972 11.5635 5.475C11.7337 5.99028 11.8236 6.525 11.8333 7.07917C11.8431 7.63334 11.7799 8.1632 11.6437 8.66875C11.5076 9.17431 11.3083 9.65556 11.0458 10.1125C10.9389 10.2875 10.7931 10.4236 10.6083 10.5208C10.4236 10.6181 10.2292 10.6667 10.025 10.6667H1.975C1.77083 10.6667 1.57639 10.6181 1.39167 10.5208C1.20694 10.4236 1.06111 10.2875 0.954166 10.1125C0.701388 9.675 0.506944 9.21077 0.370833 8.71979C0.234722 8.22882 0.166666 7.71111 0.166666 7.16667C0.166666 6.35972 0.319791 5.60382 0.626041 4.89896C0.932291 4.1941 1.35035 3.57674 1.88021 3.04688C2.41007 2.51702 3.02986 2.09896 3.73958 1.79271C4.4493 1.48646 5.20278 1.33334 6 1.33334Z"})),Zn=({props:e})=>a.createElement(r.A,Object.assign({component:Dn},e)),Fn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"replacer",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M8.08337 10V9.16663H9.58337C9.74721 9.16663 9.88538 9.11075 9.99788 8.999C10.1104 8.88717 10.1666 8.74863 10.1666 8.58338V7.41663C10.1666 7.10554 10.2597 6.82637 10.4459 6.57912C10.632 6.33196 10.8722 6.15975 11.1666 6.0625V5.9375C10.8722 5.84583 10.632 5.675 10.4459 5.425C10.2597 5.175 10.1666 4.89446 10.1666 4.58337V3.41663C10.1666 3.25138 10.1108 3.11283 9.999 3.001C9.88717 2.88925 9.74862 2.83337 9.58337 2.83337H8.08337V2H9.58337C9.97779 2 10.3125 2.13775 10.5875 2.41325C10.8625 2.68867 11 3.02313 11 3.41663V4.58337C11 4.74862 11.0559 4.88717 11.1678 4.999C11.2795 5.11075 11.418 5.16663 11.5834 5.16663H12V6.83338H11.5834C11.418 6.83338 11.2795 6.88925 11.1678 7.001C11.0559 7.11283 11 7.25138 11 7.41663V8.58338C11 8.97688 10.8623 9.31133 10.5868 9.58675C10.3113 9.86225 9.97687 10 9.58337 10H8.08337ZM2.41662 10C2.02221 10 1.6875 9.86225 1.4125 9.58675C1.1375 9.31133 1 8.97688 1 8.58338V7.41663C1 7.25138 0.944083 7.11283 0.83225 7.001C0.7205 6.88925 0.581958 6.83338 0.416625 6.83338H0V5.16663H0.416625C0.581958 5.16663 0.7205 5.11075 0.83225 4.999C0.944083 4.88717 1 4.74862 1 4.58337V3.41663C1 3.02313 1.13775 2.68867 1.41325 2.41325C1.68867 2.13775 2.02312 2 2.41662 2H3.91662V2.83337H2.41662C2.25279 2.83337 2.11463 2.88925 2.00213 3.001C1.88963 3.11283 1.83337 3.25138 1.83337 3.41663V4.58337C1.83337 4.89446 1.74029 5.175 1.55413 5.425C1.36804 5.675 1.12779 5.84583 0.833375 5.9375V6.0625C1.12779 6.15975 1.36804 6.33196 1.55413 6.57912C1.74029 6.82637 1.83337 7.10554 1.83337 7.41663V8.58338C1.83337 8.74863 1.88925 8.88717 2.001 8.999C2.11283 9.11075 2.25137 9.16663 2.41662 9.16663H3.91662V10H2.41662Z"}),a.createElement("path",{d:"M6.48214 7.88473V7.13473C6.48214 7.0758 6.43393 7.02759 6.375 7.02759H5.625C5.56607 7.02759 5.51786 7.0758 5.51786 7.13473V7.88473C5.51786 7.94366 5.56607 7.99187 5.625 7.99187H6.375C6.43393 7.99187 6.48214 7.94366 6.48214 7.88473ZM4.25893 7.88473V7.13473C4.25893 7.0758 4.21072 7.02759 4.15179 7.02759H3.40179C3.34286 7.02759 3.29464 7.0758 3.29464 7.13473V7.88473C3.29464 7.94366 3.34286 7.99187 3.40179 7.99187H4.15179C4.21072 7.99187 4.25893 7.94366 4.25893 7.88473ZM8.70536 7.88473V7.13473C8.70536 7.0758 8.65715 7.02759 8.59822 7.02759H7.84822C7.78929 7.02759 7.74107 7.0758 7.74107 7.13473V7.88473C7.74107 7.94366 7.78929 7.99187 7.84822 7.99187H8.59822C8.65715 7.99187 8.70536 7.94366 8.70536 7.88473Z"})),zn=({props:e})=>a.createElement(r.A,Object.assign({component:Fn},e)),Wn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"editor-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1 7.14578V6.10422H5.07403V7.14578H1ZM1 4.59375V3.55203H7.38889V4.59375H1ZM1 2.04172V1H7.38889V2.04172H1ZM6 11V9.07812L9.06944 5.64062C9.15278 5.54688 9.24537 5.47917 9.34722 5.4375C9.44907 5.39583 9.55093 5.375 9.65278 5.375C9.76389 5.375 9.87037 5.39844 9.97222 5.44531C10.0741 5.49219 10.1667 5.5625 10.25 5.65625L10.7639 6.23438C10.8442 6.32812 10.9036 6.43229 10.9421 6.54688C10.9807 6.66146 11 6.77604 11 6.89062C11 7.00521 10.98 7.1224 10.9399 7.24219C10.8997 7.36198 10.8382 7.46875 10.7554 7.5625L7.70833 11H6ZM6.83333 10.0625H7.36111L9.04167 8.15625L8.79167 7.85938L8.52778 7.57812L6.83333 9.46875V10.0625ZM8.79167 7.85938L8.52778 7.57812L9.04167 8.15625L8.79167 7.85938Z"})),qn=({props:e})=>a.createElement(r.A,Object.assign({component:Wn},e)),$n=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"designer-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6 12C5.18 12 4.405 11.8425 3.675 11.5275C2.945 11.2125 2.3075 10.7825 1.7625 10.2375C1.2175 9.6925 0.7875 9.055 0.4725 8.325C0.1575 7.595 0 6.82 0 6C0 5.1567 0.16085 4.37005 0.48255 3.64005C0.80415 2.91005 1.24245 2.27505 1.79745 1.73505C2.35245 1.19505 3.00165 0.77085 3.74505 0.46245C4.48835 0.15415 5.28335 0 6.13005 0C6.92335 0 7.675 0.13415 8.385 0.40245C9.095 0.67085 9.7175 1.04255 10.2525 1.51755C10.7875 1.99255 11.2125 2.55585 11.5275 3.20745C11.8425 3.85915 12 4.57 12 5.34C12 6.4433 11.6733 7.3058 11.02 7.9275C10.3666 8.5492 9.52665 8.86005 8.50005 8.86005H7.38C7.23 8.86005 7.10585 8.91505 7.00755 9.02505C6.90915 9.13505 6.85995 9.2567 6.85995 9.39C6.85995 9.61 6.9333 9.82085 7.08 10.0225C7.2267 10.2241 7.30005 10.4566 7.30005 10.72C7.30005 11.14 7.1842 11.4584 6.9525 11.6749C6.7208 11.8916 6.4033 12 6 12ZM2.56995 6.46005C2.78995 6.46005 2.9783 6.3817 3.135 6.225C3.2917 6.0683 3.37005 5.87995 3.37005 5.65995C3.37005 5.43995 3.2917 5.25165 3.135 5.09505C2.9783 4.93835 2.78995 4.86 2.56995 4.86C2.34995 4.86 2.16165 4.93835 2.00505 5.09505C1.84835 5.25165 1.77 5.43995 1.77 5.65995C1.77 5.87995 1.84835 6.0683 2.00505 6.225C2.16165 6.3817 2.34995 6.46005 2.56995 6.46005ZM4.42995 3.96C4.64995 3.96 4.8383 3.88165 4.995 3.72495C5.1517 3.56835 5.23005 3.38005 5.23005 3.16005C5.23005 2.94005 5.1517 2.7517 4.995 2.595C4.8383 2.4383 4.64995 2.35995 4.42995 2.35995C4.20995 2.35995 4.02165 2.4383 3.86505 2.595C3.70835 2.7517 3.63 2.94005 3.63 3.16005C3.63 3.38005 3.70835 3.56835 3.86505 3.72495C4.02165 3.88165 4.20995 3.96 4.42995 3.96ZM7.57005 3.96C7.79005 3.96 7.97835 3.88165 8.13495 3.72495C8.29165 3.56835 8.37 3.38005 8.37 3.16005C8.37 2.94005 8.29165 2.7517 8.13495 2.595C7.97835 2.4383 7.79005 2.35995 7.57005 2.35995C7.35005 2.35995 7.1617 2.4383 7.005 2.595C6.8483 2.7517 6.76995 2.94005 6.76995 3.16005C6.76995 3.38005 6.8483 3.56835 7.005 3.72495C7.1617 3.88165 7.35005 3.96 7.57005 3.96ZM9.48 6.46005C9.7 6.46005 9.88835 6.3817 10.045 6.225C10.2016 6.0683 10.28 5.87995 10.28 5.65995C10.28 5.43995 10.2016 5.25165 10.045 5.09505C9.88835 4.93835 9.7 4.86 9.48 4.86C9.26 4.86 9.07165 4.93835 8.91495 5.09505C8.75835 5.25165 8.68005 5.43995 8.68005 5.65995C8.68005 5.87995 8.75835 6.0683 8.91495 6.225C9.07165 6.3817 9.26 6.46005 9.48 6.46005ZM6 11C6.1033 11 6.17915 10.9766 6.22755 10.93C6.27585 10.8833 6.3 10.8133 6.3 10.72C6.3 10.58 6.22665 10.4384 6.07995 10.295C5.93335 10.1517 5.86005 9.88 5.86005 9.48C5.86005 9.0333 6.00835 8.65165 6.30495 8.33505C6.60165 8.01835 6.97335 7.86 7.42005 7.86H8.50005C9.22665 7.86 9.82495 7.6475 10.295 7.2225C10.765 6.7975 11 6.17 11 5.34C11 4.0567 10.5125 3.01255 9.53745 2.20755C8.56245 1.40255 7.42665 1.00005 6.13005 1.00005C4.70335 1.00005 3.49165 1.48335 2.49495 2.44995C1.49835 3.41665 1.00005 4.6 1.00005 6C1.00005 7.3833 1.48755 8.56245 2.46255 9.53745C3.43755 10.5125 4.6167 11 6 11Z"})),Un=({props:e})=>a.createElement(r.A,Object.assign({component:$n},e)),Gn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"clear-chat",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0 9.5V8.33327H9.33333V9.5H0ZM1.33333 6.58327V5.41672H10.6667V6.58327H1.33333ZM2.66667 3.66672V2.5H12V3.66672H2.66667Z"})),Xn=({props:e})=>a.createElement(r.A,Object.assign({component:Gn},e)),Kn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"webhook",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M2.89995 11.7C2.10335 11.7 1.42085 11.4159 0.85245 10.8476C0.28415 10.2792 0 9.59665 0 8.80005C0 8.11005 0.20585 7.50755 0.61755 6.99255C1.02915 6.47755 1.55665 6.14335 2.20005 5.98995V7.035C1.85005 7.1683 1.56255 7.39495 1.33755 7.71495C1.11255 8.03495 1.00005 8.39665 1.00005 8.80005C1.00005 9.32665 1.18505 9.77495 1.55505 10.145C1.92505 10.515 2.37335 10.7 2.89995 10.7C3.42665 10.7 3.875 10.515 4.245 10.145C4.615 9.77495 4.8 9.32665 4.8 8.80005V8.29995H8.46495C8.54495 8.20995 8.6408 8.13745 8.7525 8.08245C8.8642 8.02745 8.98005 7.99995 9.10005 7.99995C9.32335 7.99995 9.5125 8.07745 9.6675 8.23245C9.8225 8.38745 9.9 8.57665 9.9 8.80005C9.9 9.01665 9.8225 9.20415 9.6675 9.36255C9.5125 9.52085 9.32335 9.6 9.10005 9.6C8.98005 9.6 8.8642 9.5725 8.7525 9.5175C8.6408 9.4625 8.54495 9.39 8.46495 9.3H5.76C5.62 9.99 5.28415 10.5625 4.75245 11.0175C4.22085 11.4725 3.60335 11.7 2.89995 11.7ZM9.10005 11.7C8.59335 11.7 8.12915 11.5809 7.70745 11.3426C7.28585 11.1042 6.94505 10.79 6.68505 10.4H8.08005C8.22665 10.5 8.38665 10.575 8.56005 10.625C8.73335 10.675 8.91335 10.7 9.10005 10.7C9.62665 10.7 10.075 10.515 10.445 10.145C10.815 9.77495 11 9.32665 11 8.80005C11 8.27335 10.815 7.825 10.445 7.455C10.075 7.085 9.62665 6.9 9.10005 6.9C8.90665 6.9 8.7283 6.92415 8.565 6.97245C8.4017 7.02085 8.24505 7.09335 8.09505 7.18995L6.195 3.99495C5.9917 3.95495 5.82505 3.8633 5.69505 3.72C5.56505 3.5767 5.50005 3.40335 5.50005 3.19995C5.50005 2.97665 5.5792 2.7875 5.7375 2.6325C5.8958 2.4775 6.0833 2.4 6.3 2.4C6.5233 2.4 6.71245 2.4775 6.86745 2.6325C7.02245 2.7875 7.09995 2.97665 7.09995 3.19995C7.09995 3.24335 7.0983 3.28255 7.095 3.31755C7.0917 3.35255 7.08005 3.4017 7.06005 3.465L8.52495 5.955C8.62495 5.935 8.72495 5.92085 8.82495 5.91255C8.92495 5.90415 9.01665 5.89995 9.10005 5.89995C9.90335 5.89995 10.5875 6.18245 11.1525 6.74745C11.7175 7.31245 12 7.99665 12 8.80005C12 9.59665 11.7175 10.2792 11.1525 10.8476C10.5875 11.4159 9.90335 11.7 9.10005 11.7ZM2.89995 9.6C2.68335 9.6 2.49585 9.52085 2.33745 9.36255C2.17915 9.20415 2.1 9.01665 2.1 8.80005C2.1 8.60665 2.165 8.4383 2.295 8.295C2.425 8.1517 2.58665 8.05505 2.77995 8.00505L4.36005 5.355C4.06335 5.0717 3.82915 4.74585 3.65745 4.37745C3.48585 4.00915 3.40005 3.61665 3.40005 3.19995C3.40005 2.39665 3.6842 1.7125 4.2525 1.1475C4.8208 0.582503 5.5033 0.300003 6.3 0.300003C7.0833 0.300003 7.7558 0.572503 8.3175 1.1175C8.8792 1.6625 9.17335 2.32335 9.19995 3.10005H8.20005C8.18005 2.59335 7.9867 2.16665 7.62 1.81995C7.2533 1.47335 6.8133 1.30005 6.3 1.30005C5.7733 1.30005 5.32495 1.48505 4.95495 1.85505C4.58495 2.22505 4.39995 2.67335 4.39995 3.19995C4.39995 3.62335 4.52495 4.00085 4.77495 4.33245C5.02495 4.66415 5.3433 4.89165 5.73 5.01495L3.645 8.52C3.665 8.5767 3.67915 8.6267 3.68745 8.67C3.69585 8.7133 3.70005 8.75665 3.70005 8.80005C3.70005 9.01665 3.62255 9.20415 3.46755 9.36255C3.31255 9.52085 3.12335 9.6 2.89995 9.6Z"})),Yn=({props:e})=>a.createElement(r.A,Object.assign({component:Kn},e)),Jn=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"lock",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.5 12V4.5H3V3C3 2.175 3.29375 1.46875 3.88125 0.881251C4.46875 0.293751 5.175 0 6 0C6.825 0 7.53125 0.293751 8.11875 0.881251C8.70625 1.46875 9 2.175 9 3V4.5H10.5V12H1.5ZM4.5 4.5H7.5V3C7.5 2.575 7.35625 2.21875 7.06875 1.93125C6.78125 1.64375 6.425 1.5 6 1.5C5.575 1.5 5.21875 1.64375 4.93125 1.93125C4.64375 2.21875 4.5 2.575 4.5 3V4.5Z"})),Qn=({props:e})=>a.createElement(r.A,Object.assign({component:Jn},e)),ea=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"web",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6 12C5.1667 12 4.38505 11.8425 3.65505 11.5275C2.92505 11.2125 2.2892 10.7842 1.7475 10.2425C1.2058 9.70085 0.77915 9.06335 0.46755 8.32995C0.15585 7.59665 0 6.81335 0 5.98005C0 5.14335 0.15585 4.3625 0.46755 3.6375C0.77915 2.9125 1.2058 2.27915 1.7475 1.73745C2.2892 1.19585 2.92505 0.77085 3.65505 0.46245C4.38505 0.15415 5.1667 0 6 0C6.8367 0 7.6192 0.15415 8.3475 0.46245C9.0758 0.77085 9.7108 1.19585 10.2525 1.73745C10.7942 2.27915 11.2209 2.9125 11.5325 3.6375C11.8442 4.3625 12 5.14335 12 5.98005C12 6.81335 11.8442 7.59665 11.5325 8.32995C11.2209 9.06335 10.7942 9.70085 10.2525 10.2425C9.7108 10.7842 9.0758 11.2125 8.3475 11.5275C7.6192 11.8425 6.8367 12 6 12ZM6 11.01C6.32 10.65 6.59 10.25 6.81 9.81C7.03 9.37 7.21 8.86335 7.35 8.29005H4.66005C4.79335 8.83665 4.97 9.33495 5.19 9.78495C5.41 10.235 5.68 10.6433 6 11.01ZM4.63005 10.81C4.40335 10.4466 4.2075 10.0591 4.0425 9.64755C3.8775 9.23585 3.74 8.78335 3.63 8.29005H1.54005C1.89005 8.93005 2.3042 9.4467 2.7825 9.84C3.2608 10.2333 3.87665 10.5566 4.63005 10.81ZM7.38 10.8C8.0467 10.5867 8.6442 10.265 9.1725 9.83505C9.7008 9.40505 10.13 8.89005 10.46 8.29005H8.38005C8.26335 8.77665 8.12415 9.2258 7.96245 9.6375C7.80085 10.0492 7.6067 10.4367 7.38 10.8ZM1.17 7.29H3.43995C3.40995 7.0433 3.3908 6.8158 3.3825 6.6075C3.3742 6.3992 3.37005 6.19005 3.37005 5.98005C3.37005 5.74335 3.37585 5.5275 3.38745 5.3325C3.39915 5.1375 3.42 4.92665 3.45 4.69995H1.17C1.1067 4.92665 1.06255 5.13585 1.03755 5.32755C1.01255 5.51915 1.00005 5.73665 1.00005 5.98005C1.00005 6.22335 1.01255 6.44585 1.03755 6.64755C1.06255 6.84915 1.1067 7.0633 1.17 7.29ZM4.45995 7.29H7.54995C7.58665 7.0167 7.61085 6.78255 7.62255 6.58755C7.63415 6.39255 7.63995 6.19005 7.63995 5.98005C7.63995 5.77665 7.63415 5.5808 7.62255 5.3925C7.61085 5.2042 7.58665 4.97335 7.54995 4.69995H4.45995C4.42335 4.97335 4.3992 5.2042 4.3875 5.3925C4.3758 5.5808 4.36995 5.77665 4.36995 5.98005C4.36995 6.19005 4.3758 6.39255 4.3875 6.58755C4.3992 6.78255 4.42335 7.0167 4.45995 7.29ZM8.55 7.29H10.83C10.8933 7.0633 10.9375 6.84915 10.9625 6.64755C10.9875 6.44585 11 6.22335 11 5.98005C11 5.73665 10.9875 5.51915 10.9625 5.32755C10.9375 5.13585 10.8933 4.92665 10.83 4.69995H8.56005C8.59005 4.99995 8.61085 5.24415 8.62245 5.43255C8.63415 5.62085 8.64 5.80335 8.64 5.98005C8.64 6.19665 8.6325 6.40245 8.6175 6.59745C8.6025 6.79245 8.58 7.0233 8.55 7.29ZM8.37 3.70005H10.46C10.1434 3.07335 9.72085 2.545 9.19245 2.115C8.66415 1.685 8.05665 1.37665 7.36995 1.18995C7.59665 1.54665 7.79085 1.9275 7.95255 2.3325C8.11415 2.7375 8.2533 3.19335 8.37 3.70005ZM4.66005 3.70005H7.36005C7.24665 3.20005 7.07165 2.72005 6.83505 2.26005C6.59835 1.80005 6.32 1.38335 6 1.00995C5.7 1.30995 5.445 1.67165 5.235 2.09505C5.025 2.51835 4.83335 3.05335 4.66005 3.70005ZM1.54005 3.70005H3.64005C3.74335 3.21335 3.87415 2.76915 4.03245 2.36745C4.19085 1.96585 4.3867 1.5767 4.62 1.2C3.9333 1.3867 3.3308 1.6917 2.8125 2.115C2.2942 2.5383 1.87005 3.06665 1.54005 3.70005Z"})),ta=({props:e})=>a.createElement(r.A,Object.assign({component:ea},e)),na=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"acordion",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M1.5 10V9.16663H10.5V10H1.5ZM1.5 2.83337V2H10.5V2.83337H1.5ZM2.33337 7.90838C2.10837 7.90838 1.91321 7.82571 1.74788 7.66037C1.58263 7.49512 1.5 7.3 1.5 7.075V4.925C1.5 4.7 1.58263 4.50487 1.74788 4.33962C1.91321 4.17429 2.10837 4.09163 2.33337 4.09163H9.66663C9.89163 4.09163 10.0868 4.17429 10.2521 4.33962C10.4174 4.50487 10.5 4.7 10.5 4.925V7.075C10.5 7.3 10.4174 7.49512 10.2521 7.66037C10.0868 7.82571 9.89163 7.90838 9.66663 7.90838H2.33337ZM2.33337 7.075H9.66663V4.925H2.33337V7.075Z"})),aa=({props:e})=>a.createElement(r.A,Object.assign({component:na},e)),ra=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"carousel",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M0 7.73684V4.25716C0 3.96979 0.102474 3.72384 0.307421 3.51932C0.512263 3.31479 0.758579 3.21253 1.04637 3.21253C1.33426 3.21253 1.58 3.31479 1.78358 3.51932C1.98726 3.72384 2.08911 3.96979 2.08911 4.25716V7.73684C2.08911 8.02863 1.98663 8.27568 1.78168 8.478C1.57684 8.68021 1.33053 8.78132 1.04274 8.78132C0.754842 8.78132 0.509105 8.68021 0.305526 8.478C0.101842 8.27568 0 8.02863 0 7.73684ZM3.98384 10.1053C3.73616 10.1053 3.52242 10.0154 3.34263 9.83558C3.16284 9.65579 3.07295 9.44205 3.07295 9.19437V2.80563C3.07295 2.55795 3.16284 2.34421 3.34263 2.16442C3.52242 1.98463 3.73616 1.89474 3.98384 1.89474H8.01616C8.26384 1.89474 8.47758 1.98463 8.65737 2.16442C8.83716 2.34421 8.92705 2.55795 8.92705 2.80563V9.19437C8.92705 9.44205 8.83716 9.65579 8.65737 9.83558C8.47758 10.0154 8.26384 10.1053 8.01616 10.1053H3.98384ZM9.91089 7.73684V4.25716C9.91089 3.96979 10.0134 3.72384 10.2183 3.51932C10.4232 3.31479 10.6695 3.21253 10.9573 3.21253C11.2452 3.21253 11.4909 3.31479 11.6945 3.51932C11.8982 3.72384 12 3.96979 12 4.25716V7.73684C12 8.02863 11.8975 8.27568 11.6926 8.478C11.4877 8.68021 11.2414 8.78132 10.9536 8.78132C10.6657 8.78132 10.42 8.68021 10.2164 8.478C10.0127 8.27568 9.91089 8.02863 9.91089 7.73684ZM3.98384 9.38858H8.01616C8.07289 9.38858 8.11947 9.37037 8.15589 9.33395C8.19232 9.29753 8.21053 9.251 8.21053 9.19437V2.80563C8.21053 2.749 8.19232 2.70247 8.15589 2.66605C8.11947 2.62963 8.07289 2.61142 8.01616 2.61142H3.98384C3.92711 2.61142 3.88053 2.62963 3.84411 2.66605C3.80768 2.70247 3.78947 2.749 3.78947 2.80563V9.19437C3.78947 9.251 3.80768 9.29753 3.84411 9.33395C3.88053 9.37037 3.92711 9.38858 3.98384 9.38858Z"})),la=({props:e})=>a.createElement(r.A,Object.assign({component:ra},e)),oa=()=>a.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"reload",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M15.0625 24.6874C12.359 24.6874 10.0581 23.7467 8.1599 21.8653C6.26167 19.9839 5.31255 17.6955 5.31255 15V14.0239L3.00002 16.3365L1.68274 15.0192L6.25002 10.4519L10.8173 15.0192L9.50002 16.3365L7.18749 14.0239V15C7.18749 17.1714 7.95192 19.0164 9.48077 20.5348C11.0096 22.0533 12.8702 22.8125 15.0625 22.8125C15.5801 22.8125 16.0974 22.756 16.6142 22.643C17.131 22.5301 17.6354 22.3606 18.1274 22.1346L19.5336 23.5408C18.8301 23.919 18.1038 24.2047 17.3546 24.3978C16.6054 24.5909 15.8414 24.6874 15.0625 24.6874ZM23.75 19.548L19.1827 14.9808L20.5 13.6635L22.8126 15.976V15C22.8126 12.8285 22.0481 10.9835 20.5193 9.46509C18.9904 7.94666 17.1298 7.18744 14.9375 7.18744C14.4199 7.18744 13.9027 7.24393 13.3858 7.35691C12.869 7.46989 12.3646 7.63935 11.8726 7.86531L10.4664 6.45913C11.1699 6.08092 11.8963 5.79526 12.6455 5.60216C13.3947 5.40905 14.1587 5.3125 14.9375 5.3125C17.641 5.3125 19.9419 6.2532 21.8401 8.13459C23.7384 10.016 24.6875 12.3045 24.6875 15V15.976L27 13.6635L28.3173 14.9808L23.75 19.548Z"})),ia=({props:e})=>a.createElement(r.A,Object.assign({component:oa},e)),sa=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"add-slide",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M6.49995 7.42005H7.5V5.50005H9.42V4.5H7.5V2.58H6.49995V4.5H4.57995V5.50005H6.49995V7.42005ZM3 10C2.73 10 2.49585 9.90085 2.29755 9.70245C2.09915 9.50415 1.99995 9.27 1.99995 9V1.00005C1.99995 0.73005 2.09915 0.49585 2.29755 0.29745C2.49585 0.0991503 2.73 0 3 0H11C11.27 0 11.5041 0.0991503 11.7025 0.29745C11.9008 0.49585 12 0.73005 12 1.00005V9C12 9.27 11.9008 9.50415 11.7025 9.70245C11.5041 9.90085 11.27 10 11 10H3ZM3 9H11V1.00005H3V9ZM1.00005 12C0.73005 12 0.49585 11.9008 0.29745 11.7025C0.09915 11.5041 0 11.27 0 11V1.99995H1.00005V11H10V12H1.00005Z"})),ca=({props:e})=>a.createElement(r.A,Object.assign({component:sa},e)),da=()=>a.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"amp",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M4.88673 10.454L8.74382 5.82959H6.04045L6.55631 1.75526L3.08385 6.7769H5.41199L4.88673 10.454ZM3.85613 12L4.49319 7.57736H1.54678L6.79632 0H7.58039L6.94954 5.02912H10.4532L4.64019 12H3.85613Z"})),ma=({props:e})=>a.createElement(r.A,Object.assign({component:da},e)),pa=()=>a.createElement("svg",{width:"18",height:"19",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"0.371338",y:"0.878906",width:"17.29",height:"17.29",rx:"8.645",fill:"white"}),a.createElement("path",{d:"M5.30034 14.1689L4.37134 13.2399L8.08734 9.52391L4.37134 5.80791L5.30034 4.87891L9.01634 8.59491L12.7323 4.87891L13.6613 5.80791L9.94534 9.52391L13.6613 13.2399L12.7323 14.1689L9.01634 10.4529L5.30034 14.1689Z",fill:"#1677FF"})),ua=({props:e})=>a.createElement(r.A,Object.assign({component:pa},e)),ha=()=>a.createElement("svg",{width:"18",height:"19",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"0.371338",y:"0.878906",width:"17.29",height:"17.29",rx:"8.645",fill:"#1F1F1F"}),a.createElement("path",{d:"M5.30034 14.1689L4.37134 13.2399L8.08734 9.52391L4.37134 5.80791L5.30034 4.87891L9.01634 8.59491L12.7323 4.87891L13.6613 5.80791L9.94534 9.52391L13.6613 13.2399L12.7323 14.1689L9.01634 10.4529L5.30034 14.1689Z",fill:"white"})),ga=({props:e})=>a.createElement(r.A,Object.assign({component:ha},e)),ba=()=>a.createElement("svg",{width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M5.04156 6.58339L0.208313 1.75014L1.39156 0.566895L7.40831 6.58339L1.39156 12.6001L0.208313 11.4169L5.04156 6.58339Z",fill:"#545456"})),fa=({props:e})=>a.createElement(r.A,Object.assign({component:ba},e)),Ca=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 -960 960 960",width:"19px",fill:"#545456"},a.createElement("path",{d:"M760-160v-80q0-17 11.5-28.5T800-280h80v-40H760v-40h120q17 0 28.5 11.5T920-320v40q0 17-11.5 28.5T880-240h-80v40h120v40H760Zm-525-80 185-291-172-269h106l124 200h4l123-200h107L539-531l186 291H618L482-457h-4L342-240H235Z"})),va=({props:e})=>a.createElement(r.A,Object.assign({component:Ca},e)),Ea=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 -960 960 960",width:"19px",fill:"#545456"},a.createElement("path",{d:"M760-600v-80q0-17 11.5-28.5T800-720h80v-40H760v-40h120q17 0 28.5 11.5T920-760v40q0 17-11.5 28.5T880-680h-80v40h120v40H760ZM235-160l185-291-172-269h106l124 200h4l123-200h107L539-451l186 291H618L482-377h-4L342-160H235Z"})),ya=({props:e})=>a.createElement(r.A,Object.assign({component:Ea},e)),_a=({icon:e,...t})=>{const n=(0,l.rD)();if(n.icons&&n.icons[e]){const r=n.icons[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,"");return a.createElement(Sn,Object.assign({svgString:r},t))}switch(e){case"AddSlide":return a.createElement(ca,{props:t});case"AMP":return a.createElement(ma,{props:t});case"ElementAccordion":return a.createElement(aa,{props:t});case"Reload":return a.createElement(ia,{props:t});case"Web":return a.createElement(ta,{props:t});case"Lock":return a.createElement(Qn,{props:t});case"DesignerMode":return a.createElement(Un,{props:t});case"EditorMode":return a.createElement(qn,{props:t});case"ClearChat":return a.createElement(Xn,{props:t});case"Speed":return a.createElement(Zn,{props:t});case"Justify":return a.createElement(jn,{props:t});case"Colorize":return a.createElement(Ln,{props:t});case"Email":return a.createElement(wn,{props:t});case"Table":return a.createElement(_n,{props:t});case"Button":return a.createElement(En,{props:t});case"Group":return a.createElement(Cn,{props:t});case"Block":return a.createElement(bn,{props:t});case"Column":return a.createElement(hn,{props:t});case"Atom":return a.createElement(pn,{props:t});case"Styles":return a.createElement(m,{props:t});case"Close":return a.createElement(u,{props:t});case"Drop":return a.createElement(g,{props:t});case"DarkWhite":return a.createElement(f,{props:t});case"MinWidth":return a.createElement(v,{props:t});case"MaxWidth":return a.createElement(y,{props:t});case"BgPositionHorizontal":return a.createElement(A,{props:t});case"BgPositionVertical":return a.createElement(k,{props:t});case"UpTo":return a.createElement(S,{props:t});case"VerticalOffset":return a.createElement(T,{props:t});case"AlignHorizontalLeft":return a.createElement(I,{props:t});case"AlignHorizontalCenter":return a.createElement(N,{props:t});case"AlignHorizontalRight":return a.createElement(P,{props:t});case"AlignVerticalTop":return a.createElement(V,{props:t});case"AlignVerticalCenter":return a.createElement(j,{props:t});case"AlignVerticalBottom":return a.createElement(Z,{props:t});case"MixedView":return a.createElement(z,{props:t});case"LandscapeView":return a.createElement(q,{props:t});case"PortraitView":return a.createElement(U,{props:t});case"SquareView":return a.createElement(X,{props:t});case"PanelLeft":return a.createElement(Y,{props:t});case"Sun":return a.createElement(Q,{props:t});case"Crescent":return a.createElement(te,{props:t});case"Vimeo":return a.createElement(ae,{props:t});case"Image":return a.createElement(le,{props:t});case"Blur":return a.createElement(ie,{props:t});case"ZoomOutMap":return a.createElement(ce,{props:t});case"Paragraph":return a.createElement(me,{props:t});case"ElementImage":return a.createElement(ue,{props:t});case"ElementImageAI":return a.createElement(ge,{props:t});case"ElementText":return a.createElement(fe,{props:t});case"ElementTitle":return a.createElement(ve,{props:t});case"ElementButton":return a.createElement(ye,{props:t});case"ElementSpacer":return a.createElement(Ae,{props:t});case"ElementListUL":return a.createElement(ke,{props:t});case"ElementListOL":return a.createElement(Se,{props:t});case"ElementDivider":return a.createElement(Te,{props:t});case"ElementSocial":return a.createElement(Ie,{props:t});case"ElementTable":return a.createElement(Ne,{props:t});case"ElementCountdown":return a.createElement(Pe,{props:t});case"ElementVideo":return a.createElement(Ve,{props:t});case"ElementTextAI":return a.createElement(je,{props:t});case"ElementCarousel":return a.createElement(la,{props:t});case"ElementForm":return a.createElement(Ze,{props:t});case"AI":return a.createElement(ze,{props:t});case"Typograf":return a.createElement(qe,{props:t});case"NewEmail":return a.createElement(Ue,{props:t});case"Import":return a.createElement(Xe,{props:t});case"generationAI":return a.createElement(Ye,{props:t});case"PaddingTopBottom":return a.createElement(Qe,{props:t});case"PaddingLeftRight":return a.createElement(tt,{props:t});case"PaddingSwitcher":return a.createElement(at,{props:t});case"PaddingTop":return a.createElement(lt,{props:t});case"PaddingBottom":return a.createElement(it,{props:t});case"PaddingLeft":return a.createElement(ct,{props:t});case"PaddingRight":return a.createElement(mt,{props:t});case"Code":return a.createElement(ut,{props:t});case"GoToParent":return a.createElement(gt,{props:t});case"UndoOutlined":return a.createElement(ft,{props:t});case"RedoOutlined":return a.createElement(vt,{props:t});case"HistoryOutlined":return a.createElement(yt,{props:t});case"EyeOutlined":return a.createElement(At,{props:t});case"SendOutlined":return a.createElement(kt,{props:t});case"CheckCircleOutlined":return a.createElement(St,{props:t});case"ShareAltOutlined":return a.createElement(Tt,{props:t});case"MobileOutlined":return a.createElement(It,{props:t});case"DesktopOutlined":return a.createElement(Nt,{props:t});case"PlusCircleOutlined":return a.createElement(Pt,{props:t});case"CommentOutlined":return a.createElement(Vt,{props:t});case"SettingOutlined":return a.createElement(jt,{props:t});case"BorderOuterOutlined":return a.createElement(Zt,{props:t});case"AppstoreAddOutlined":return a.createElement(zt,{props:t});case"AppstoreOutlined":return a.createElement(qt,{props:t});case"BuildOutlined":return a.createElement(Ut,{props:t});case"SearchOutlined":return a.createElement(Xt,{props:t});case"CloseOutlined":return a.createElement(Yt,{props:t});case"AddImage":return a.createElement(Qt,{props:t});case"MergeTags":return a.createElement(tn,{props:t});case"ArrowLeftOutlined":return a.createElement(c,{props:t});case"ChatGpt":return a.createElement(i,{props:t});case"LightMode":return a.createElement(an,{props:t});case"DarkMode":return a.createElement(ln,{props:t});case"AutoMode":return a.createElement(sn,{props:t});case"EmailConfirmation":return a.createElement(dn,{props:t});case"SliderGroup":return a.createElement(Tn,{props:t});case"SliderTemplates":return a.createElement(In,{props:t});case"SliderBlocks":return a.createElement(Nn,{props:t});case"SliderAdaptive":return a.createElement(Pn,{props:t});case"SliderMagic":return a.createElement(Vn,{props:t});case"Replacer":return a.createElement(zn,{props:t});case"WebHook":return a.createElement(Yn,{props:t});case"CloseAll":return a.createElement(ga,{props:t});case"CloseTag":return a.createElement(ua,{props:t});case"GroupArrow":return a.createElement(fa,{props:t});case"Subscript":return a.createElement(va,{props:t});case"Superscript":return a.createElement(ya,{props:t});default:return null}}},66079:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var a=n(98173),r=n(32656),l=n(85591),o=n.n(l);const i=JSON.parse('{"l5":"iframe-eblock.bd2a2a73469f802abf17.html","yG":"iframe.bd2a2a73469f802abf17.html"}');var s=n(86095),c=n(2604),d=n(62093),m=n(27941),p=n(98845),u=n(32947),h=n(81843),g=n(64909),b=n(47014),f=n(12543),C=n(76233),v=n(52919),E=n(37357),y=n(70687),_=n(95014);function A(e,t){const{__:n}=(0,f.s9)(),r=(0,v.QC)(),l=(0,s.aD)(e),{error:o}=(0,g.hN)(),i=(0,a.useRef)(0),m=(0,a.useRef)(),p=(0,a.useRef)(!1),A=(0,c.d4)(b.C1),w=(0,a.useCallback)((e=>new Promise(((t,n)=>{const a=r.addListener(u.Ru.SANDBOX_READY,(()=>{a.dispose(),t()}));e&&setTimeout((()=>{a.dispose(),n("timeout")}))}))),[r]),k=(0,a.useCallback)((a=>{w(2e3).catch((e=>{})).finally((()=>{Promise.resolve().then((()=>{if(!p.current){if(++i.current){if(m.current){if(i.current<5){l.restoreSnapshot(m.current);for(let e=0;e<i.current;e++)l.undo()}}else m.current=l.createSnapshot();r.send(u.Ru.RELOAD)}setTimeout((()=>{if(0===--i.current){m.current=null;const r=new Error(a.message);a.stack&&(r.stack=a.stack);const i=_.Cp(r,{tags:{origin:"iframe"}}),s={past:l.getPast().slice(0,10),future:l.getFuture(),errorResolved:!p.current,text:e.getValue(),message:a.message,stack:a.stack,userId:null===A||void 0===A?void 0:A.id,entityId:null===t||void 0===t?void 0:t.id,entityType:document.location.pathname.indexOf("emails")>0?"email":"block",sentryEventId:i};o({id:"IFRAME_ERROR",data:s,message:n("Something went wrong")}),C.CJ.post("iframe_errors",s).catch((e=>{})),p.current=!1}}),2e3)}}))}))}),[l,e,o,null===A||void 0===A?void 0:A.id,null===t||void 0===t?void 0:t.id,n,w,r]);(0,d.A)(u.Ru.APPLICATION_DOMPARSER_ERROR,k),(0,a.useEffect)((()=>{let n=null,a=0;function l(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 o=!1;const i=new E.j;return i.addDisposable((0,y.Og)(e,(e=>(async e=>{if(o)await r.sendAsync(u.Ru.SANDBOX_UPDATE_ENTITY,{edits:[l(e)],guid:t.renderGuid});else if(n)n.push(e);else{n=[e];do{const e=n.splice(0,n.length);await r.sendAsync(u.Ru.SANDBOX_UPDATE_ENTITY,{edits:e.map(l),guid:t.renderGuid})}while(n.length);n=null}})(e).catch((e=>{}))))),i.addDisposable(r.addListener(u.Ru.APPLICATION_UPDATE_ENTITY,(function({guid:n,edits:r,pushUndoStop:l}){if(e&&n===t.renderGuid)try{o=!0;const t=(0,h.yc)(),n=t.canUndo(e.uri),i=t.canRedo(e.uri),s=r.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}}}));l||n||i?e.pushEditOperations([],s,(()=>null)):e.applyEdits(s),!1!==l&&(a&&clearTimeout(a),a=setTimeout((()=>{e.pushStackElement(),a=0}),1e3))}finally{o=!1}}))),()=>{i.dispose(),a&&clearTimeout(a)}}),[e,r,t.renderGuid])}const w=Symbol("isIframeEvent");function k({children:e}){const[t,n]=(0,a.useState)(),[r,l]=(0,a.useState)(),[o,i]=(0,a.useState)(!1),s=(0,v.QC)();return(0,a.useEffect)((()=>{if(t){const e=s.addListener(u.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,l=document.elementFromPoint(a,r);if(l){const t=new DataTransfer,n=new DragEvent(e.type,{clientX:a,clientY:r,cancelable:!0,bubbles:!0,dataTransfer:t});n[w]=!0,l.dispatchEvent(n)}}}));return()=>e.dispose()}}),[s,t]),(0,a.useEffect)((()=>{const e=e=>{e[w]||i(!0)},t=e=>{e[w]||i(!1)};return window.addEventListener("dragstart",e),window.addEventListener("dragend",t),()=>{window.removeEventListener("dragstart",e),window.removeEventListener("dragend",t)}}),[r]),(0,a.useEffect)((()=>{const e=e=>{if(!e[w]){var t;const n=r.getBoundingClientRect();s.send(u.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(r)return r.addEventListener("dragenter",e),r.addEventListener("dragover",e),r.addEventListener("dragleave",e),r.addEventListener("drop",e),r.addEventListener("dragend",e),()=>{r.removeEventListener("dragenter",e),r.removeEventListener("dragover",e),r.removeEventListener("dragleave",e),r.removeEventListener("drop",e),r.removeEventListener("dragend",e)}}),[r,s]),a.createElement("div",{ref:n},o&&a.createElement("div",{ref:l,className:"iframe-provider"}),e)}var L=n(40120),S=n(95669);const{useToken:x}=L.A;var T=n(90614),B=n(15626);const I=(0,a.forwardRef)((({className:e,email:t,handlerSendPosition:l},h)=>{const g=(0,c.wA)(),C=(0,s.fn)(),E=(0,m.rD)(),y=(0,v.ur)(),_=(0,v.XW)(),w=(0,v.QC)(),L=(0,T._q)(B.AZ.ON_EMAIL_INIT_ID),[I,M]=(0,a.useState)(),N=(0,a.useCallback)((e=>{const n=window.localStorage.getItem(u.V0.em_color_scheme),a=matchMedia(u.F3).matches?u.nd:u.T,r=window.localStorage.getItem(u.V0.em_code_mode_settings)?JSON.parse(window.localStorage.getItem(u.V0.em_code_mode_settings)):null,o={operation:u.Ru.UPDATE_PREVIEW,versionId:(null===C||void 0===C?void 0:C.getVersionId())||0,theme:n&&"system"!==n?n:a,commonStyles:"string"===typeof(null===t||void 0===t?void 0:t.common_styles)&&null!==t&&void 0!==t&&t.common_styles.startsWith("{")&&"{}"!==t.common_styles?JSON.parse(t.common_styles):u.BD,pathEnabled:E.pathEnabled,copyPasteEnabled:E.copyPasteEnabled,saveBlockEnabled:E.saveBlockEnabled,editImageControlEnabled:E.editImageControlEnabled,codeMode:!!r&&!(!r.isCodeMode||"left"!==r.codeModeDirection&&"right"!==r.codeModeDirection),elementAIimageEnabled:E.elementAIimageEnabled,imageCenterStockEnabled:E.imageCenterStockEnabled,imageCenterGifEnabled:E.imageCenterGifEnabled,imageCenterEditorEnabled:E.imageCenterEditorEnabled,blocksAddPanelEnabled:E.blocksAddPanelEnabled,lockEditor:E.lockEditor,appName:"emailmaker"};M(e.target),y(e.target),h.current.resize(),_(o),l()}),[E,l,_,C,t.common_styles,h,M,y]);(0,a.useEffect)((()=>{w.isInited()&&_({operation:u.Ru.UPDATE_PREVIEW,lockEditor:E.lockEditor})}),[w,E.lockEditor]);const R=(0,a.useCallback)((e=>{var t;e.data.operation===u.Ru.SANDBOX_RESIZED&&(null===(t=h.current)||void 0===t||t.resize())}),[h]);(0,a.useEffect)((()=>{const e=L((()=>{h.current.resize()}));return()=>e.dispose()}),[h,L]),(0,a.useEffect)((()=>()=>{y()}),[y]);const P=(0,a.useCallback)((()=>new Promise((e=>{w.setTarget(void 0);const t=()=>{N({target:I}),e(),null===I||void 0===I||I.removeEventListener("load",t)};null===I||void 0===I||I.addEventListener("load",t)}))),[w,N,I]);(0,a.useEffect)((()=>{const e=w.addListenerAsync(u.Ru.RELOAD,P,Number.MAX_SAFE_INTEGER);return()=>e.dispose()}),[w,P]),(0,d.A)(R),(0,d.A)((()=>{var e;null===(e=h.current)||void 0===e||e.resize()}),u.Ru.SANDBOX_INITED),function(){const e=(0,v.QC)(),t=(0,c.d4)(b.C1),{__:n}=(0,f.s9)(),[r,l]=(0,a.useState)("");(0,a.useEffect)((()=>{if(t.locale!==r){const a=(0,u.QV)(n),r=e.onInit((()=>{e.send(u.Ru.SANDBOX_TRANSLATIONS,{name:t.locale,data:a}),l(t.locale)}));return()=>r.dispose()}}),[t.locale,r,l,n,e]),(0,a.useEffect)((()=>{const t=e.addListener(u.Ru.RELOAD,(()=>{l("")}));return()=>t.dispose()}),[l,e])}(),function(){const e=(0,v.QC)(),{token:t}=x(),[n,r]=(0,a.useState)();(0,a.useEffect)((()=>{if(!(0,S.b)(n,t)){const n=e.onInit((()=>{e.send(u.Ru.SANDBOX_SET_THEME_VARIABLES,t),r(t)}));return()=>n.dispose()}}),[t,n,r,e]),(0,a.useEffect)((()=>{const t=e.addListener(u.Ru.RELOAD,(()=>{r(void 0)}));return()=>t.dispose()}),[r,e])}(),(0,a.useEffect)((()=>{matchMedia(u.F3).addEventListener("change",(e=>{const t=window.localStorage.getItem(u.V0.em_color_scheme),n=e.matches?u.nd:u.T;_({operation:u.Ru.UPDATE_PREVIEW,theme:t||n})}))}),[_]),A(C,t),(0,a.useEffect)((()=>{const e=C.onDidChangeContent((()=>{h.current.resize()}));return()=>e.dispose()}),[C,h]);const H=(0,a.useCallback)((e=>{e.data.operation===u.Ru.APPLICATION_COMMON_STYLES_UPDATE&&g(p.GY.util.updateQueryData("getEmail",t.id,(t=>Object.assign(t,{common_styles:JSON.stringify(e.data.settings.commonStyles)}))))}),[g,t.id]);return(0,d.A)(H),a.createElement(k,null,a.createElement(r.A,{forwardRef:h,checkOrigin:!1,sandbox:"allow-top-navigation allow-scripts allow-popups allow-popups-to-escape-sandbox",className:o()("email-preview",{[e]:e}),width:"100%",minHeight:600,scrolling:"no",id:"email_iframe",allow:"clipboard-read; clipboard-write",src:(u.EW.isPlugin?`${n.p}iframe/`:"/iframe/")+(t.hasOwnProperty("type")?i.l5:i.yG),title:"Email content",onLoad:N}))}));I.defaultProps={className:null,email:null,handlerSendPosition:()=>{}};const M=I},36717:(e,t,n)=>{"use strict";n.d(t,{A:()=>pt});var a,r=n(98173),l=n(47555),o=n(75576),i=n(72570),s=n(37969),c=n(62272),d=n(79245),m=n(2604),p=n(3326),u=n(61631),h=n(56605),g=n(583),b=n(27499),f=n(48753),C=n(201),v=n(66964),E=n(8218),y=n(49823),_=n(64909),A=n(94780),w=n(12543),k=n(68984),L=n(65716);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},S.apply(null,arguments)}function x({title:e,titleId:t,...n},l){return r.createElement("svg",S({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",ref:l,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,a||(a=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.39 3.12h7.383c.242 0 .438.195.438.437v3.719a.437.437 0 0 1-.438.437H9.547v3.227a.437.437 0 0 1-.438.437H1.727a.437.437 0 0 1-.438-.437V7.22c0-.241.196-.437.438-.437h3.226V3.557c0-.242.196-.438.438-.438Zm.493 7.327h2.734V7.713H5.883v2.734Zm3.664-3.664h2.734V4.05H9.547v2.734Z",fill:"inherit"})))}const T=r.forwardRef(x);n.p;var B=n(54838),I=n(40277),M=n(27941);const N=()=>{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))};var R=n(32947);const P=async({blockTags:e,projectData:t,projectId:n,addTag:a,editProject:r,notification:l,__:o})=>{const i=`project_${n}`,s=(0,I._q)(t,R.YY),c=s.find((e=>e.name===i)),d=s||[];let m;if(c)m=c.id;else{const e=await a({name:i});if(e.error)throw l.fromError("FOLDER_CREATING_ERROR",i,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 r({projectId:n,blocktags:e.data.id});if(t.error)throw l.fromError("BLOCK_CLONING_ERROR",(0,_.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");m=t.data.blocktags&&t.data.blocktags[0]}}const p=await(async({blockTags:e,projectTagsArray:t,addTag:n,parent:a,notification:r})=>{if(!e||0===e.length)return[];const l=e.map((e=>{const l=t.find((t=>t.name===e));return l?Promise.resolve(l.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(l)).filter((e=>null!==e&&void 0!==e))})({blockTags:e,projectTagsArray:d,addTag:a,parent:m,notification:l});return{tagIds:p,projectTagsArray:d}},H=async({form:e,notification:t,__:n})=>{let a=!0;const r=await e.validateFields(),l=r.tags;return(null===l||void 0===l?void 0:l.length)>10&&(t.error({id:"BLOCK_TOO_MANY_TAGS_ERROR",data:(0,_.x_)(r),message:n("Maximum 10 tags available."),placement:"bottomRight"}),a=!1),{valid:a,values:r,blockTags:l}},V=async({block:e,form:t,projectId:n,htmlContent:a,values:l,tagIds:o,addBlock:i,editProject:s,notification:c,refetch:d,refetchBlocks:m,reloadBlockScreens:p,projectTagsArray:u,__:h,handleCloseModal:g})=>{const b=e?{title:e.blockTitle,project:e.projectId,html:e.htmlContent,type:e.blockType||"Other"}:{title:l.title,project:n,html:a||"",type:l.type||"Other"},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:r.createElement("div",{dangerouslySetInnerHTML:{__html:f.error.data.code}}),description:r.createElement("div",{dangerouslySetInnerHTML:{__html:f.error.data.message}}),placement:"bottomRight"}),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 C=u.map((e=>e.id)),v=new Set([...C,...o]);!e&&d&&d();const E=await s({projectId:n,blocktags:[...v].join(",")});return E.error?c.error({message:r.createElement("div",{dangerouslySetInnerHTML:{__html:E.error.data.code}}),description:r.createElement("div",{dangerouslySetInnerHTML:{__html:E.error.data.message}}),placement:"bottomRight"}):!e&&m&&(c.success({id:"BLOCK_CREATING_SUCCESS",data:(0,_.x_)(f.data),message:h("The block \u201c")+f.data.title+h("\u201d was successfully created."),placement:"bottomRight"}),m()),!e&&p&&p(),f.data},O=({isModalVisible:e,htmlContent:t,projectId:n,setIsShowAddAllBlocksModal:a,setIsShowAddAllBlocksModalForNewEmail:l})=>{const{__:o}=(0,w.s9)(),i=(0,m.wA)(),[d]=b.A.useForm(),[p,u]=(0,r.useState)([]),[h,g]=(0,k.pP)(),{data:S}=(0,k.h1)(),x=(0,_.hN)(),O=(0,M.rD)(),[j,D]=(0,r.useState)([]),{data:Z,refetch:F}=(0,c.KC)(),{refetch:z}=(0,k.SB)({projectId:n,pageSize:1e3,page:1,tags:null,name:null,type:null,notEmbed:!0,order:"asc",orderby:"title"}),[W,q]=(0,k.Gr)(),[$,U]=(0,L.OD)();(0,r.useEffect)((()=>{D((0,I._q)(Z,R.YY).map((e=>({value:e.name}))))}),[Z]),(0,r.useEffect)((()=>{if(S){const e=S.schema.properties.acf.properties.type.items.enum;let t=[];for(let n in e)t.push({label:o(R.jg[e[n]]),value:e[n]});u(t)}}),[S,o]);const G=()=>{i((0,B.Oo)())},X=()=>{a(!0),l(!1),G()},K=async()=>{await(async e=>{const{block:t,form:n,projectData:a,projectId:r,addBlock:l,editProject:o,addTag:i,notification:s,__:c,handleCloseModal:d,htmlContent:m,refetch:p,refetchBlocks:u,reloadBlockScreens:h}=e;try{const{valid:e,values:g,blockTags:b}=await H({form:n,notification:s,__:c});if(!e)return;const{tagIds:f,projectTagsArray:C}=await P({blockTags:b,projectData:a,projectId:r,addTag:i,editProject:o,notification:s,__:c});await V({block:t,form:n,projectId:r,htmlContent:m,values:g,tagIds:f,addBlock:l,editProject:o,notification:s,refetch:p,refetchBlocks:u,reloadBlockScreens:h,projectTagsArray:C,__:c,handleCloseModal:d})}catch(g){}})({form:d,projectData:Z,projectId:n,addBlock:h,editProject:$,addTag:W,notification:x,__:o,handleCloseModal:G,htmlContent:t,refetch:F,refetchBlocks:z,reloadBlockScreens:N})};return r.createElement(f.A,{title:r.createElement("div",{className:"ant-modal-title"},o("Save block")),className:"blocks-modal",open:e,onOk:()=>X(),onCancel:G,centered:!0,footer:r.createElement("div",{style:{display:"flex",justifyContent:"space-between",padding:"8px 0"}},r.createElement(s.Ay,{key:"create-all-blocks",size:"large",onClick:X},o("Save all blocks")),r.createElement(s.Ay,{key:"submit",size:"large",type:"primary",loading:g.isLoading,onClick:K},r.createElement(T,{className:"modal-new-block__icon-create"}),o("Save block")))},r.createElement(b.A,{form:d,layout:"vertical",name:"add_new_block_form",onFinish:K,initialValues:{title:"",type:"",tags:[]},autoComplete:"off",style:{padding:"10px 24px 0"}},r.createElement(C.A,{gutter:16},r.createElement(v.A,{span:12},r.createElement(b.A.Item,{label:o("Block name"),name:"title",rules:[{required:!0,message:o("Please input block name")}],style:{marginBottom:15}},r.createElement(E.A,{disabled:g.isLoading||q.isLoading||U.isLoading,size:"large",placeholder:o("Enter block name"),spellCheck:"false"}))),r.createElement(v.A,{span:12},r.createElement(b.A.Item,{label:o("Type"),name:"type",rules:[{required:!0,message:o("Please choose block type")}],style:{marginBottom:15}},r.createElement(y.A,{disabled:g.isLoading||q.isLoading||U.isLoading,size:"large",placeholder:o("Choose block type"),options:p})))),O.tagsEnabled&&r.createElement(b.A.Item,{label:o("Tags"),name:"tags"},r.createElement(y.A,{size:"large",mode:"tags",placeholder:o("Add some tags"),tooltip:{title:o("Tags help you find the block in the list."),icon:r.createElement(A.A,null)},disabled:g.isLoading||q.isLoading||U.isLoading,options:j}))))};var j=n(40120),D=n(49856),Z=n(13785),F=n(59010),z=n(94674),W=n(78446),q=n(85591),$=n.n(q),U=n(79966),G=n(38927),X=n(25488),K=n(47638),Y=n(40186),J=n(35076),Q=n(73195),ee=n(47214),te=n(33747),ne=n(92419),ae=n(39415),re=n(61657),le=n(31220),oe=n(15804),ie=n(53939),se=n(34981),ce=n(30560),de=n(99208),me=n(19504),pe=n(72510),ue=n(45887),he=n(40409),ge=n(45271),be=n(8807),fe=n(47014),Ce=n(84572),ve=n(23424),Ee=n(98845),ye=n(38251),_e=n(83027),Ae=n(30397),we=n(64706),ke=n(92960),Le=n(40835),Se=n(80223),xe=n(94779),Te=n(71854),Be=n(22560),Ie=n(90614),Me=n(96734),Ne=n(89613),Re=n(86095),Pe=n(15626),He=n(634),Ve=n(47904);const Oe=({email:e,autoSaveEmailResult:t,autoSaveBlockResult:n})=>{var a,l,i,d,p,u,h,g;const{__:b,_x:f}=(0,w.s9)(),C=(0,m.wA)(),[v]=(0,ke.mI)(),[E]=(0,Le.dS)();let y=(0,c.Zp)();const{owner:A,admin:k}=(0,Se.A)(),L=(0,m.d4)(fe.C1),S=(0,m.d4)(Ce.yN),{modal:x}=o.A.useApp(),T=(0,_.hN)(),{confirm:N}=x,P=(0,m.Pj)(),H=(0,Me.p)(),V=(0,M.rD)(),{projectId:O}=(0,c.g)(),j=(0,Ie.ml)(Pe.AZ.ON_EMAIL_CLONE_ID),[F]=(0,Ae.N)(),z=(0,Ne.u)(),[q,$]=(0,r.useState)(!0),[U,Oe]=(0,Ee.Kh)(),[je]=(0,ye.ri)(),[De]=(0,ye.cA)(),[Ze]=(0,we.m)(),{data:Fe}=(0,c.KC)(),{data:ze,refetch:We}=(0,_e.Jz)({parent:null===Fe||void 0===Fe||null===(a=Fe.folder)||void 0===a?void 0:a[0]},{skip:!(null!==Fe&&void 0!==Fe&&null!==(l=Fe.folder)&&void 0!==l&&l[0])}),qe=(0,m.d4)(B.Wv);(0,r.useEffect)((()=>{qe.switched&&$(!1)}),[qe]);const $e=()=>null===e.title?b("New email title"):e.title,Ue=(0,Re.fn)(),Ge=(0,Ie._q)(Pe.AZ.ON_EMAIL_INIT_ID);(0,r.useEffect)((()=>{const e=Ge((()=>{$(!1)}));return()=>e.dispose()}),[Ge]);const Xe=async(t,n=(null===Ue||void 0===Ue?void 0:Ue.getValue())||"")=>{const a=document.querySelector(".email-preview"),l=getComputedStyle(a);return n=await(0,xe.PJ)(n,[l.width],e.utm_parameters,(async(e,t,n)=>{Je(e,n)})),je({file:n,title:$e(),notification:T}).then((e=>{if(e.error)return T.error({message:r.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:r.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"}),Promise.reject();{let n=e.data;const a={id:n._id,...n};return t(a,(()=>De({id:a.id,notification:T})))}}))},Ke=(e=1)=>((e=1)=>Xe(((t,n)=>({href:(0,ue.QG)(t.id,void 0,!1,e),dispose:n}))))(e).then((({href:e,dispose:t})=>(0,xe.SR)(e).finally(t))),Ye=async(e,t)=>{const n=e.querySelectorAll("[em-operation=exportAsPicture]"),a=new Map;for(let l=0,o=n.length;l<o;l++){const e=n[l];e.setAttribute("em-export-id",l),a.set(`[em-export-id='${l}']`,e)}if(t.commit(),a.size)try{const{data:n,dispose:l}=await((e,t,n=2)=>Xe(((t,a)=>({data:e.map((e=>({selector:e,href:(0,ue.QG)(t.id,void 0,!1,n,e)}))),dispose:a})),t))([...a.keys()],(0,pe.b6)(e),2);try{const r=n.map((async({href:n,selector:r},l)=>{const o=a.get(r);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 v({url:e}))||void 0===n?void 0:n.data:e;if(t.split(".").length<2){const e=K.extension(a.type);e&&(t=`${t}.${e}`)}const r=new File([a],t.toLowerCase()),l=await E({user_id:L.id,folder:Fe.id,file:r});var o,i,s;return l.error||400===(null===(o=l.data.data)||void 0===o?void 0:o.status)?"string"===typeof e?e:"":null===(i=l.data)||void 0===i||null===(s=i[0])||void 0===s?void 0:s.file_url})(n,`${l}-${o.tagName.toLowerCase()}.png`),s=parseInt(getComputedStyle(o).width);let c=new Image(s);c.setAttribute("border","0"),c.setAttribute("style",`display: block; width: 100%; max-width: ${s}px;`),c.alt="",c.src=i;const d=o.querySelector("a");if(d){const t=e.createElement("a");t.setAttribute("target","_blank"),t.setAttribute("href",d.getAttribute("href")),t.appendChild(c),c=t}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(r)}catch(r){}finally{l()}}catch(r){}},Je=(t,n)=>{var a,r;if("0"===(null===Fe||void 0===Fe||null===(a=Fe.limits)||void 0===a?void 0:a.preview_limit)&&O&&(null===L||void 0===L||null===(r=L.counters)||void 0===r?void 0:r.emails_counter)>2&&!t.querySelector(".em-powered-logo")){const a="https://emcdn.ru/emailmaker/powered.png",r="https%3A%2F%2Femailmaker.ru",l=`<a href="${`https://racs.rest/v3/link?app=emailmaker&project=${O}&email=${e.id}&link=${r}`}" target="_blank"><img src="https://racs.rest/v3/pixel/123.png?image=${a}&project=${O}&email=${e.id}" width="150" height="50" border="0" alt="" style="display: inline-block; width: 100%; max-width: 150px;"></a>`;t.querySelector("body > table:last-child > tbody:last-child > tr:last-child, body > div > table:last-child > tbody:last-child > tr:last-child")&&(t.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">${l}</td>\n </tr>`),n.commit())}return t},Qe=t=>{z({event:"click",action:"export_email",export_type:"HTML"});const n=document.querySelector(".email-preview"),a=getComputedStyle(n);(0,xe.PJ)(null===Ue||void 0===Ue?void 0:Ue.getValue(),[a.width],e.utm_parameters,(async(e,n,a)=>{await Ye(e,a),Je(e,a),await(0,Be.e)(e,t,a)})).then((e=>{const t=new Blob([e],{type:"text/html;charset=utf-8"});(0,de.saveAs)(t,`${$e()}.html`)})).catch((e=>{}))},et=t=>{z({event:"click",action:"export_email",export_type:"TEXT"});const n=document.querySelector(".email-preview"),a=getComputedStyle(n);(0,xe.PJ)(null===Ue||void 0===Ue?void 0:Ue.getValue(),[a.width],e.utm_parameters,(async(e,n,a)=>(await Ye(e,a),Je(e,a),await(0,Be.e)(e,t,a),(0,He.G9)(e,Ve.l)))).then((e=>{const t=new Blob([e],{type:"text/plain;charset=utf-8"});(0,de.saveAs)(t,`${$e()}.txt`)})).catch((e=>{}))},tt=t=>{z({event:"click",action:"export_email",export_type:"Clipboard"});const n=document.querySelector(".email-preview"),a=getComputedStyle(n);(0,xe.PJ)(null===Ue||void 0===Ue?void 0:Ue.getValue(),[a.width],e.utm_parameters,(async(e,n,a)=>{await Ye(e,a),Je(e,a),await(0,Be.e)(e,t,a)})).then((e=>navigator.clipboard.writeText(e).then((function(){(0,I.wB)(b("The email has been copied to the clipboard."),T)})))).catch((e=>{}))},nt=t=>{if(S.webhook){z({event:"click",action:"export_email",export_type:"webhook"});const n=document.querySelector(".email-preview"),a=getComputedStyle(n);(0,xe.PJ)(null===Ue||void 0===Ue?void 0:Ue.getValue(),[a.width],e.utm_parameters,(async(e,n,a)=>{await Ye(e,a),Je(e,a),await(0,Be.e)(e,t,a)})).then((t=>{F({url:S.webhook,body:(0,X.E)({...e,code:t},P)}).then((e=>{e.error?200===e.error.originalStatus?T.success({message:b("Success!"),description:b("Webhook successfully sent!"),placement:"bottomRight"}):T.error({message:r.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.status}}),description:r.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.error}}),placement:"bottomRight"}):T.success({message:b("Success!"),description:b("Webhook successfully sent!"),placement:"bottomRight"})}))}))}else C((0,ve.YF)("webhooksettings")),C((0,ve.qf)(R.lx.EDIT_PROJECT_MODAL))},at=e=>new Promise(((t,n)=>{fetch(e).then((e=>t(e.blob())),(()=>(e=>{const t=H.get(R.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((()=>{}))})),rt=()=>{e.isNew?(R.EW.isPlugin||y(`/projects/${Fe.id}/emails`),(0,I.wB)(b("The draft of the email has been deleted."),T)):lt(e,y)},lt=(e,t)=>{N({maskClosable:!0,centered:!0,title:f("Are you sure to delete \u201c","email")+e.title+b("\u201d email?"),icon:r.createElement(Y.A,{style:{color:"#ff4d4f"}}),okText:b("Yes"),cancelText:b("No"),onOk:()=>((e,t)=>P.dispatch(Ee.GY.endpoints.deleteEmail.initiate(e.id)).then((n=>{n.error&&(0,I.p6)(n,T),e.project&&!R.EW.isPlugin&&t(`/projects/${e.project}/emails`),(0,I.wB)(b("The email \u201c")+n.data.title+f("\u201d was successfully removed.","email"),T)})))(e,t)})},ot=()=>{(0,Te.QM)("application/zip, message/rfc822, text/html",it)},it=async e=>{const t=e[0];try{C((0,B.M7)(!0));const e=await(0,Te.q2)(t,(async(e,t)=>{try{const n=await(0,Te.zn)(e,v);if(!n)return"string"===typeof e?e:"";const a=(0,Te.Qm)(t,n.type,K),r=new File([n],a.toLowerCase()),l=await E({user_id:L.id,folder:Fe.id,file:r});return(0,Te.$K)(l,e)}catch(n){return"string"===typeof e?e:""}}),((e,n,a)=>{e.title=e.title||(0,xe.Ay)(t.name)[0],a.commit()}));Ue.pushEditOperations([],[{range:Ue.getFullModelRange(),text:e}],(()=>null)),C((0,B.M7)(!1))}catch(n){C((0,B.M7)(!1));const e=n instanceof Error?n.message:n;T.error({message:r.createElement("div",{dangerouslySetInnerHTML:{__html:e}}),placement:"bottomRight"})}z({event:"upload_file",action:"import_email"})};let st=[];V.emailDropdownMenuClone&&st.push({label:b("Clone"),icon:r.createElement(J.A,{style:{fontSize:"16px"}}),key:"Clone",className:"em-analytics__email-clone",disabled:Oe.isLoading,onClick:async()=>{if(e.isNew)T.warning({message:b("To create a copy, you need to save the email."),placement:"bottomRight"});else{var t,n,a,l,o;if((await j.fire(e)).some((e=>!1===e)))return;U({title:(0,I.fq)(e.title),project:null===Fe||void 0===Fe?void 0:Fe.id,description:e.description,html:(0,I.el)((null===Ue||void 0===Ue?void 0:Ue.getValue())||"",e.title),parent_email:e.parent_email||R.iU,common_styles:e.common_styles||"",utm_parameters:{utm_source:null===(t=e.utm_parameters)||void 0===t?void 0:t.utm_source,utm_medium:null===(n=e.utm_parameters)||void 0===n?void 0:n.utm_medium,utm_campaign:null===(a=e.utm_parameters)||void 0===a?void 0:a.utm_campaign,utm_term:null===(l=e.utm_parameters)||void 0===l?void 0:l.utm_term,utm_content:null===(o=e.utm_parameters)||void 0===o?void 0:o.utm_content},emailtags:e.emailtags,folder:e.folder}).then((t=>{t.error?T.error({message:r.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.code}}),description:r.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.message}}),placement:"bottomRight"}):(y(`/projects/${Fe.id}/emails/${t.data.id}`),T.success({message:b("The copy of email \u201c")+e.title+b("\u201d was successfully created."),placement:"bottomRight"}),ze&&We())}))}}}),V.emailDropdownMenuImport&&st.push({label:f("Import","verb"),icon:r.createElement(Q.A,{style:{fontSize:"16px"}}),key:"Import",className:"em-analytics__editor-page__import",onClick:()=>{z({event:"click",action:"import_email"}),ot()}}),(A||k||(null===(i=L.id)||void 0===i?void 0:i.toString())===(null===(d=e.author)||void 0===d?void 0:d.toString()))&&(V.emailDropdownMenuLock&&st.push({label:r.createElement(ge.A,{key:"Lock",element:e}),icon:e.lock?r.createElement(ee.A,{style:{fontSize:"16px"}}):r.createElement(W.A,{style:{fontSize:"16px"}}),disabled:e.isNew}),V.emailDropdownMenuRemove&&st.push({label:b("Remove"),icon:r.createElement(Y.A,{style:{fontSize:"16px"}}),key:"Remove",className:"em-analytics__email-remove",style:{color:"#ff4d4f"},onClick:rt}));const ct=e.isAmp;let dt=[];return V.exportHtmlEnabled&&dt.push({key:"html",label:b("Code"),icon:r.createElement(te.A,{style:{fontSize:"16px"}}),...ct?{children:[{key:"\u0441ode_html",label:b("AMP"),onClick:()=>Qe("amp")},{key:"html_amp",label:b("HTML"),onClick:()=>Qe("html")}]}:{onClick:()=>Qe()}}),V.exportZipEnabled&&dt.push({key:"zip",label:b("ZIP"),icon:r.createElement(ne.A,{style:{fontSize:"16px"}}),onClick:()=>(async()=>{z({event:"click",action:"export_email",export_type:"ZIP"});const t=document.querySelector(".email-preview"),n=getComputedStyle(t),a=null===Ue||void 0===Ue?void 0:Ue.getValue(),r=await(0,xe.Ce)(a,[n.width],e.utm_parameters,at,(async(e,t,n)=>{await Ye(e,n),Je(e,n),ct&&await(0,Be.e)(e,"html",n)}));ct&&(r["amp.html"]=await(0,xe.PJ)(a,[n.width],e.utm_parameters,(async(e,t,n)=>{await Ye(e,n),Je(e,n),await(0,Be.e)(e,"amp",n)})));const l=await(0,xe.hs)(r);(0,de.saveAs)(l,`${$e()}.zip`)})().catch((e=>{}))}),V.exportClipboardEnabled&&dt.push({key:"clipboard",label:b("Clipboard"),icon:r.createElement(ae.A,{style:{fontSize:"16px"}}),...ct?{children:[{key:"clipboard_html",label:b("AMP"),onClick:()=>tt("amp")},{key:"clipboard_amp",label:b("HTML"),onClick:()=>tt("html")}]}:{onClick:()=>tt()}}),V.exportTextEnabled&&dt.push({key:"text",label:b("Text"),icon:r.createElement(re.A,{style:{fontSize:"16px"}}),...ct?{children:[{key:"\u0441ode_txt",label:b("AMP"),onClick:()=>et("amp")},{key:"html_txt",label:b("HTML"),onClick:()=>et("html")}]}:{onClick:()=>et()}}),!R.EW.isPlugin&&V.exportWebHookEnabled&&dt.push({key:"webhook",icon:r.createElement(be.A,{icon:"WebHook",style:{fontSize:"16px"}}),label:b("Webhook"),...ct?{children:[{key:"webhook_html",label:b("AMP"),onClick:()=>nt("amp")},{key:"webhook_amp",label:b("HTML"),onClick:()=>nt("html")}]}:{onClick:()=>nt()}}),V.exportOutlookEnabled&&dt.push({key:"outlook",icon:r.createElement(le.A,{style:{fontSize:"16px"}}),label:b("Outlook"),onClick:()=>(t=>{z({event:"click",action:"export_email",export_type:"Outlook"});const n=document.querySelector(".email-preview"),a=getComputedStyle(n),r=async(e,t,n)=>{if("amp"===n){for(const t of e.querySelectorAll(".em-amp-show-disabled"))t.remove();await(0,me.Sc)(e,{mappedTags:{script:"___script"},commit:()=>t.commit()})}else if("html"===n){for(const t of e.querySelectorAll(".em-amp-show-only"))t.remove();(0,me.Km)(e,{mappedTags:{script:"___script"},commit:()=>t.commit()})}await Ye(e,t),Je(e,t)};(0,xe.pH)(e.title,null===Ue||void 0===Ue?void 0:Ue.getValue(),[a.width,a.height],e.utm_parameters,t?(e,t,n)=>r(e,n,"html"):(e,t,n)=>r(e,n)).then((e=>{const t=new Blob([e],{type:"text/html;charset=utf-8"});(0,de.saveAs)(t,`${$e()}.eml`)})).catch((e=>{}))})(ct)}),V.exportPdfEnabled&&dt.push({key:"pdf",icon:r.createElement(oe.A,{style:{fontSize:"16px"}}),label:b("PDF"),onClick:async()=>{try{const t=document.querySelector(".email-preview"),n=getComputedStyle(t),a=await(0,xe.PJ)(Ue.getValue(),[n.width],e.utm_parameters,(async(e,t,n)=>{Je(e,n)})),r=await Ze({htmlContent:a,notification:T}).unwrap(),l=window.URL.createObjectURL(new Blob([r],{type:"application/pdf"})),o=document.createElement("a");o.href=l,o.setAttribute("download",`${$e()}.pdf`),document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(l)}catch(t){}}}),V.exportPngEnabled&&dt.push({key:"img",icon:r.createElement(ie.A,{style:{fontSize:"16px"}}),label:b("PNG"),onClick:()=>Ke(1).then(xe.gZ).then((e=>(0,de.saveAs)(e,`${$e()}.png`))).then(z({event:"click",action:"export_email",export_type:"Image"}))}),r.createElement(D.A,null,V.emailDropdownMenuEnabled?r.createElement(G.A,{key:"Actions",arrow:{pointAtCenter:!0},placement:"bottom",menu:{items:st}},r.createElement(s.Ay,{type:"default",block:!1,className:"email-page-header__btn email-page-header__btn_extra",onClick:()=>{}},r.createElement(se.A,null))):V.emailDropdownMenuImport&&r.createElement(Z.A,{title:f("Import","verb"),placement:"bottom"},V.emailDropdownMenuImportButton?r.createElement(s.Ay,{className:"em-analytics__editor-page__import",icon:r.createElement(Q.A,null),onClick:()=>{z({event:"click",action:"import_email"}),ot()}},b("Import")):r.createElement(s.Ay,{className:"em-analytics__editor-page__import",type:"text",icon:r.createElement(Q.A,{style:{fontSize:20}}),onClick:()=>{z({event:"click",action:"import_email"}),ot()}})),V.emailExportEnabled&&r.createElement(G.A,{key:"Export",arrow:{pointAtCenter:!0},placement:"bottom",menu:{items:dt}},r.createElement(s.Ay,{key:"Export",className:"em-analytics__email-page__export",type:"default",icon:r.createElement(ce.A,null)},b("Export"))),!e.hasOwnProperty("type")&&r.createElement(ue.Ay,{disabled:q,autoSaveEmailResult:t,key:"Save",email:e,isEditableRights:A||k||(null===(p=L.id)||void 0===p?void 0:p.toString())===(null===(u=e.author)||void 0===u?void 0:u.toString())}),!!e.hasOwnProperty("type")&&r.createElement(he.A,{disabled:q,key:"Save",block:e,isEditableRights:A||k||(null===(h=L.id)||void 0===h?void 0:h.toString())===(null===(g=e.author)||void 0===g?void 0:g.toString()),autoSaveBlockResult:n}))};var je=n(35895),De=n(54125),Ze=n(52919),Fe=n(12741),ze=n(1047),We=n(22536),qe=n(73180);const{useToken:$e}=j.A,Ue=({email:e,autoSaveEmailResult:t,isCollaborationEditor:n})=>{var a,l;const[o]=b.A.useForm(),{__:i}=(0,w.s9)();let d=(0,m.wA)(),p=(0,c.Zp)();const u=(0,m.d4)(fe.C1),h=(0,Ze.QC)(),g=(0,c.KC)(),f=null===g||void 0===g?void 0:g.data,{owner:C,admin:v}=(0,Se.A)(),{token:y}=$e(),_=(0,M.rD)(),A=(0,r.useRef)(),k=(0,r.useRef)(),L=(0,r.useRef)(),S=(0,Ie.ml)(Pe.AZ.ON_PREVIOUSBUTTON_CLICK_ID),x=(0,Ie.ml)(Pe.AZ.ON_PREHEADER_CHANGED_ID),T=(0,Ie.ml)(Pe.AZ.ON_SUBJECT_CHANGED_ID),N=(0,m.d4)(B.yy),P=e.hasOwnProperty("type")?R.IE:R.Tm,H=(0,m.d4)(ze.qX),V=(0,m.d4)(We.qX),O=P===R.Tm?H:V,j=(0,m.d4)(B.Fv),[q,G]=(0,r.useState)(!1);(0,r.useEffect)((()=>{const e=!(null===O||void 0===O||!O.type)&&((null===O||void 0===O?void 0:O.type)===R.bV.TEXT||(null===O||void 0===O?void 0:O.type)===R.bV.LINK||O.type===R.bV.BUTTON)&&j&&"bottom"!==N;G(e),d((0,B.oF)(e))}),[O,N,j]);const X=(0,r.useCallback)((()=>{var t;R.EW.isPlugin?S.fire(e):p(`/projects/${f.id}/emails?page=1&folder=${(null===(t=e.folder)||void 0===t?void 0:t[0])||R.y2}`)}),[p,S,e,null===f||void 0===f?void 0:f.id]),[K,Y]=(0,r.useState)(),J=(0,Ie._q)(Pe.AZ.WILL_EMAIL_INIT_ID),Q=(0,Ie._q)(Pe.AZ.ON_EMAIL_INIT_ID);(0,qe.ZC)((([t])=>{K&&t!==e.subject&&T.fire(e.subject)}),[e.subject,K]);const ee=(0,r.useCallback)((e=>{const t=e.target.value;T.fire(t)}),[T]),te=(0,r.useCallback)((e=>{const t=e.target.value;x.fire(t)}),[x]);(0,qe.ZC)((([t])=>{K&&t!==e.preheader&&x.fire(e.preheader)}),[e.preheader,K]),(0,r.useEffect)((()=>{const e=new I.jG;return e.addDisposable(J((()=>Y(!1)))),e.addDisposable(Q((e=>{Y(!0);const t=o.getFieldValue("subject");e.subject&&e.subject!==t&&o.setFieldValue("subject",e.subject);const n=o.getFieldValue("preheader");e.preheader&&e.preheader!==n&&o.setFieldValue("preheader",e.preheader)}))),()=>e.dispose()}),[Y,J,Q,o]);const ne=(0,r.useCallback)((t=>{const n=t.target.value.trim();e.isNew?d((0,Fe.TU)(n)):d((0,ze.HO)(n)),h.send(R.Ru.SANDBOX_SUBJECT_UPDATE,{value:n,guid:e.renderGuid})}),[h,e.renderGuid,d,e.isNew]),ae=(0,Ie._q)(Pe.AZ.BEFORE_SAVE_EMAIL),re=(0,r.useCallback)((async e=>{var t,n;const a=null===(t=k.current)||void 0===t?void 0:t.input;if(document.activeElement===a){const t=a.value.trim();t!==e.subject&&(e.subject=t,e.isNew?d((0,Fe.TU)(t)):d((0,ze.HO)(t)),await h.sendAsync(R.Ru.SANDBOX_SUBJECT_UPDATE,{value:t,guid:e.renderGuid}))}const r=null===(n=L.current)||void 0===n?void 0:n.input;if(document.activeElement===r){const t=r.value.trim();t!==e.preheader&&(e.preheader=t,e.isNew?d((0,Fe.x3)(t)):d((0,ze.pl)(t)),await h.sendAsync(R.Ru.SANDBOX_PREHEADER_UPDATE,{value:t,guid:e.renderGuid}))}}),[h,d]);(0,r.useEffect)((()=>{const e=ae(re);return()=>e.dispose()}),[ae,re]);const le=(0,r.useCallback)((t=>{const n=t.target.value.trim();e.isNew?d((0,Fe.x3)(n)):d((0,ze.pl)(n)),h.send(R.Ru.SANDBOX_PREHEADER_UPDATE,{value:n,guid:e.renderGuid})}),[h,e.renderGuid,d,e.isNew]),oe=e.isNew;(0,r.useEffect)((()=>{const t=new I.jG;return t.addDisposable(h.addListenerAsync(R.Ru.APPLICATION_SUBJECT_UPDATE,(({guid:t,value:n})=>{t===e.renderGuid&&(o.setFieldValue("subject",n),d(oe?(0,Fe.TU)(n):(0,ze.HO)(n)))}))),t.addDisposable(h.addListenerAsync(R.Ru.APPLICATION_PREHEADER_UPDATE,(({guid:t,value:n})=>{t===e.renderGuid&&(o.setFieldValue("preheader",n),d(oe?(0,Fe.x3)(n):(0,ze.pl)(n)))}))),()=>t.dispose()}),[h,d,oe,o,e.renderGuid]),(0,De.A)(null===e.title?i("New email title"):e.title);const ie=(0,r.useCallback)((()=>{d((0,B.PM)(R.z$)),setTimeout((()=>{const e=document.querySelector('li.ai-response-change-context[role="theme-and-preheader-generator"]');e&&e.click()}),100)}),[d]),se=r.createElement(r.Fragment,null,r.createElement(D.A,{ref:A,size:10},_.headerArrowBackVisible&&r.createElement(Z.A,{title:i("Back"),placement:"left"},r.createElement(s.Ay,{type:"text",icon:r.createElement(be.A,{icon:"ArrowLeftOutlined"}),onClick:X,shape:"circle"})),r.createElement("div",null,(_.headerTitleVisible||_.headerPreheaderVisible)&&r.createElement(b.A,{form:o,layout:"vertical",name:"subject_preheader_form",autoComplete:"off",initialValues:{subject:"",preheader:""}},_.headerTitleVisible&&r.createElement("div",{style:{marginTop:K?-3:0}},r.createElement(D.A,{style:{width:"100%"},align:"baseline",size:12},r.createElement("div",{className:"subject_preheader_form__title"},i("Subject")),K?r.createElement("div",{className:"ant-page-header-heading"},r.createElement(b.A.Item,{name:"subject",style:{marginBottom:0}},r.createElement(E.A,{className:"ant-page-header-heading-title",ref:k,placeholder:i("Enter subject line here"),bordered:!1,onChange:ee,onPressEnter:ne,onBlur:e=>{ne(e),document.querySelector(".ant-page-header-heading-title").closest(".ant-page-header-heading").classList.remove("focus")},onFocus:()=>{document.querySelector(".ant-page-header-heading-title").closest(".ant-page-header-heading").classList.add("focus")},disabled:_.lockPreheaderAndTitle})),r.createElement(be.A,{icon:"AI",onClick:ie,style:{cursor:"pointer"}})):r.createElement(F.A.Input,{active:!0,size:16,style:{width:"40%",marginTop:3}}))),_.headerPreheaderVisible&&r.createElement("div",null,r.createElement(D.A,{style:{width:"100%"},align:"baseline",size:12},r.createElement("div",{className:"subject_preheader_form__title"},i("Preheader")),K?r.createElement("div",{className:"ant-page-header-heading ant-page-header-heading_preheader"},r.createElement(b.A.Item,{name:"preheader",style:{marginBottom:0}},r.createElement(E.A,{className:"ant-page-header-heading-preheader",ref:L,placeholder:i("Enter preheader here"),bordered:!1,onChange:te,onPressEnter:le,onBlur:e=>{le(e),document.querySelector(".ant-page-header-heading-preheader").closest(".ant-page-header-heading").classList.remove("focus")},onFocus:()=>{document.querySelector(".ant-page-header-heading-preheader").closest(".ant-page-header-heading").classList.add("focus")},disabled:_.lockPreheaderAndTitle})),r.createElement(be.A,{icon:"AI",onClick:ie,style:{cursor:"pointer"}})):r.createElement(F.A.Input,{active:!0,size:16,style:{width:"80%",marginTop:2}}))))))),ce=r.createElement(r.Fragment,null,_.emailIdShow&&!!e.id&&r.createElement(r.Fragment,null,r.createElement("div",{className:"email-page-header__email-id"},"ID"+e.id),r.createElement(z.A,{type:"vertical"})),r.createElement(U.A,{emailElement:e,isCollaborationEditor:n}),_.commandButtonsEnabled&&r.createElement(r.Fragment,null,e.lock?r.createElement(W.A,{key:"Lock",className:$()("lock-icon",{"lock-icon__disabled":!(C||v||(null===(a=u.id)||void 0===a?void 0:a.toString())===(null===(l=e.author)||void 0===l?void 0:l.toString()))}),style:{color:y.colorPrimary,fontSize:"16px"}}):null,r.createElement(Oe,{key:"Buttons",email:e,autoSaveEmailResult:t,isHeaderCodeMenuOpen:q})));return r.createElement(je.A,{className:"email-pane__header",leftBlock:se,rightBlock:ce,isHeaderCodeMenuOpen:q})};var Ge=n(98447),Xe=n(38826),Ke=n(7026);const Ye=(e,t="block",n=!1)=>{if(null===e||void 0===e||!e.html)return[];const{document:a,blockElements:r,styleElement:l,linksElements:o}=((e,t="block")=>{const n=new DOMParser,a=n.parseFromString(e,"text/html"),r=a.querySelectorAll(`[em="${t}"]`),l=a.querySelectorAll("link"),o=a.querySelector('[em="styles"]');return{parser:n,document:a,blockElements:r,styleElement:o,linksElements:l}})(e.html,t),i=function(e){return Array.from(e).map((e=>e.outerHTML)).join("")}(o);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=l?l.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>`:(o=`${i}${r}${t.outerHTML.replace(/class="em-structure"/,'class=""')}`,o.replace(/\s+/g," ").replace(/> </g,"><").replace(/\s+>/g,">").replace(/<\!--[\s\S]*?-->/g,"").trim())};var o})).filter(Boolean)};const Je=e=>e.replace(/<div\s+[^>]*style="font-family:[^>]*>(.*?)<\/div>/gs,(e=>e.replace(/>(.*?)<\/div>/s,"></div>"))),Qe=e=>e.replace(/src="[^"]*"/g,'src=""'),et=async e=>{const{block:t,form:n,projectData:a,projectId:r,addBlock:l,editProject:o,addTag:i,notification:s,__:c,handleCloseModal:d,htmlContent:m,refetch:p,refetchBlocks:u,reloadBlockScreens:h,values:g,tagIds:b,projectTagsArray:f}=e;try{await V({block:t,form:n,projectId:r,htmlContent:m,values:g,tagIds:b,addBlock:l,editProject:o,notification:s,refetch:p,refetchBlocks:u,reloadBlockScreens:h,projectTagsArray:f,__:c,handleCloseModal:d})}catch(C){throw C}},tt=({isModalVisible:e,currentEmail:t,setIsShowAddAllBlocksModal:n,setTriggerOpenSavedBlocksTab:a,projectId:l})=>{const{__:o,_x:i,_n:d}=(0,w.s9)(),{data:p,refetch:u}=(0,c.KC)(),[h,g]=(0,r.useState)(!1),[C]=b.A.useForm(),[v,E]=(0,r.useState)([]),[A,S]=(0,r.useState)([]),x=(0,r.useRef)({}),[T]=(0,k.Gr)(),[B]=(0,L.OD)(),[M,V]=(0,k.pP)(),O=(0,m.d4)(fe.B)||(R.EW.isPlugin?void 0:"ru_RU"),j=(e=>{const t=new Set,n=[];for(const r of e)if(a=r.html,/<div\s+[^>]*style="font-family:/i.test(a)){const e=Qe(Je(r.html));t.has(e)||(t.add(e),n.push(r))}else n.push(r);var a;return n})(Ye(t)).map((e=>e)),D=j.length,Z=(0,_.hN)(),F=()=>{h||W||n(!1)},{bulkSave:z,confirmSavingBlocksLoading:W}=(({projectData:e,addTag:t,addBlock:n,editProject:a,refetch:l,reloadBlockScreens:o,notification:i,__:s,handleCloseModal:c,setTriggerOpenSavedBlocksTab:d,setTagsOptions:m,form:p,projectId:u})=>{const[h,g]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{m((0,I._q)(e,R.YY).map((e=>({value:e.name}))))}),[e]),{bulkSave:async(r,m,h,b)=>{g(!0);try{if(!m)return;const{tagIds:g,projectTagsArray:C}=await P({blockTags:b,projectData:e,projectId:u,addTag:t,editProject:a,notification:i,__:s});let v=!0,E=0;for(const l of r)try{await et({block:l,form:p,projectData:e,projectId:u,addBlock:n,editProject:a,addTag:t,notification:i,__:s,handleCloseModal:c,values:h,tagIds:g,projectTagsArray:C})}catch(f){v=!1,E++}if(v&&i.success({id:"BULK_SAVE_SUCCESS",message:s("All blocks saved successfully."),placement:"bottomRight"}),!v){if(E===r.length)throw new Error;i.warning({id:"BULK_SAVE_PARTIAL_SUCCESS",message:s("Some blocks were not saved successfully."),placement:"bottomRight"})}d(!0),l(),o()}catch(f){throw f}finally{g(!1),p.resetFields(),c()}},confirmSavingBlocksLoading:h}})({projectData:p,addTag:T,addBlock:M,editProject:B,refetch:u,reloadBlockScreens:N,notification:Z,__:o,handleCloseModal:F,setTriggerOpenSavedBlocksTab:a,setTagsOptions:S,form:C,projectId:l}),q=async()=>{try{const{valid:e,values:n,blockTags:r}=await H({form:C,notification:Z,__:o});a(!1),g(!0);const l=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,Ke.V)(t,O,x,j),x.current,t.project.toString());g(!1),await z(l,e,n,r)}catch(e){g(!1),n(!1),Z.error({message:o("Failed to save blocks."),placement:"bottomRight"})}};return r.createElement(f.A,{title:r.createElement("div",{className:"ant-modal-title"},o("Bulk saving of blocks")),className:"blocks-modal",open:e,onOk:q,onCancel:F,centered:!0,footer:r.createElement("div",{className:"modal-footer"},!(h||W)&&r.createElement(s.Ay,{key:"submit",size:"large",type:"primary",disabled:h||W,onClick:q},i("Save","block")+" "+D+" "+d("block","blocks",D)))},h||W?r.createElement("div",{style:{padding:"10px 24px 0"}},o("All blocks saved at this point can be found in the \u201cSaved Blocks\u201d section in the sidebar.")):r.createElement("div",{style:{padding:"10px 24px 0"}},o("Your letter contains")+" "+D+" "+d("block","blocks",D)+" "+o("that can be saved for future use.")),!(h||W)&&r.createElement(b.A,{form:C,name:"add_all_blocks_form",layout:"vertical",style:{padding:"10px 24px 0"},onFinish:q},r.createElement(b.A.Item,{label:o("Tags"),name:"tags",labelCol:{span:24},wrapperCol:{span:24},style:{display:"block"}},r.createElement(y.A,{size:"large",mode:"tags",placeholder:o("Add some tags"),style:{width:"100%",marginBottom:"16px"},value:v,onChange:E,disabled:V.isLoading,options:A}))),(W||h)&&r.createElement("div",{className:"modal-spinner"},r.createElement(Ge.A,{size:"large",indicator:r.createElement(Xe.A,{style:{fontSize:48},spin:!0})})))};var nt=n(78915),at=n(38540),rt=n(79253),lt=n(61058),ot=n(62093),it=n(27264),st=n(72762),ct=n(70687);var dt=n(14038);const{Content:mt}=l.A,pt=()=>{const{__:e}=(0,w.s9)(),t=(0,Ze.QC)(),{emailId:n,projectId:a,preview:b}=(0,c.g)(),f=(0,m.wA)(),C=(0,m.d4)(B.Fv),v=(0,c.Zp)(),E=(0,m.d4)(B.cL),y=(0,m.d4)(Fe.YG),A=(0,m.d4)(ze.Hs),k=(0,m.d4)(B.oG),[L,S]=(0,d.ok)(),[x]=(0,nt.on)(),T=(0,m.d4)(fe.C1),{isSuccess:I,data:N}=(0,nt.W5)(),{owner:P}=(0,Se.A)(),H=(0,Re.fn)(),{modal:V}=o.A.useApp(),j=(0,Me.p)(),D=(0,M.rD)(),[Z,F]=(0,r.useState)(!1),z=(0,p.cR)(),[W,q]=(0,r.useState)(!1),[$,U]=(0,r.useState)(!1),[G,X]=(0,r.useState)(!1),{confirm:K}=V,[Y,J]=(0,r.useState)(!1),Q=L.get("template")||!Y&&!n&&j.get(R.A9.em_new_email),ee=j.get(R.A9.em_template_email);(0,r.useEffect)((()=>{!Y&&A.id&&J(!0)}),[J,Y,A.id]);const{isSuccess:te,isLoading:ne,isError:ae,error:re,data:le}=(0,Ee.sl)(Q,{skip:!Q||!!n}),{isLoading:oe,isSuccess:ie,isError:se,error:ce}=(0,Ee.sl)(n,{skip:!n});(0,r.useEffect)((()=>{Q&&te&&(f((0,Fe.MZ)(le)),J(!0),S({}))}),[Q,te,f,le,ee,S]),(0,r.useEffect)((()=>(f((0,B.mi)(!0)),()=>f((0,B.mi)(!0)))),[f]);const de=Q?le:n?A:y;(0,st.f)(de,void 0===n);const me=function(e){const{emailId:t,projectId:n}=(0,c.g)(),a=(0,_.hN)(),l=(0,M.rD)(),o=(0,m.d4)(at.M),i=(0,Re.fn)(),s=(0,r.useRef)(0),d=(0,m.d4)(lt.p1),p=(0,m.d4)(B.Wm),u=(0,m.d4)(B.B),h=(0,m.d4)(fe.C1),g=(0,Ne.u)(),[b,f]=(0,Ee.LX)(),C=(0,m.wA)(),{isSuccess:v,isLoading:E}=(0,Ee.YV)({emailId:t},{skip:!t}),[y,A]=(0,r.useState)(null);(0,r.useEffect)((()=>{if(v&&!E&&null!==d&&void 0!==d&&d.length){const n=d[0];var t;n&&y!==(null===e||void 0===e?void 0:e.id)&&(null!==(t=n.slug)&&void 0!==t&&t.includes("autosave")&&i&&C((0,ze.no)(n)),A(null===e||void 0===e?void 0:e.id))}}),[C,d,v,E,null===e||void 0===e?void 0:e.id,y,i,t]);const w=(0,r.useCallback)((({parent:t})=>{if(e){const r={parent:t,title:e.title,author:e.author,project:e.project,html:(null===i||void 0===i?void 0:i.getValue())||"",excerpt:e.date_gmt,subject:e.subject,preheader:e.preheader,common_styles:e.common_styles,parent_email:e.parent_email};b({emailId:e.id,body:r}).then((t=>{if(g({event:"save",action:"auto_save_email",email_id:e.id,project_id:n}),!function(e){return e.hasOwnProperty("data")}(t))throw t.error;var l,o;R.EW.isPlugin||fetch((0,ue.Wv)(R.Tm,n,null===(l=t.data)||void 0===l?void 0:l.id,null===(o=t.data)||void 0===o?void 0:o.modified),{mode:"no-cors"}),a.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:r,message:""},!0)})).catch((e=>{a.fromError("EMAIL_AUTOSAVE_ERROR",r,e,!0)}))}}),[b,e,i,n,a,g]),[k,L]=(0,r.useState)(!1),S=(0,r.useCallback)((()=>{if((null===d||void 0===d?void 0:d.length)>0){const e=[...d].sort(((e,t)=>Date.parse(null===t||void 0===t?void 0:t.modified)-Date.parse(null===e||void 0===e?void 0:e.modified)))[0];Date.parse((new Date).toString())-Date.parse(null===e||void 0===e?void 0:e.modified)>1.5*((null===l||void 0===l?void 0:l.autosaveTimeout)||1e4)&&p&&!o&&"Discuss"!==u&&w({parent:e.id})}else p&&!o&&"Discuss"!==u&&w({parent:null})}),[d,o,p,u,w,null===l||void 0===l?void 0:l.autosaveTimeout]);(0,qe.ZC)((([e])=>{k&&!e&&(S(),L(!1))}),[k,S,L]);const x=null===h||void 0===h?void 0:h.autosaves,T=(0,r.useCallback)((()=>{o||(clearTimeout(s.current),s.current=setTimeout((()=>L(!0)),(null===l||void 0===l?void 0:l.autosaveTimeout)||1e4))}),[o,null===l||void 0===l?void 0:l.autosaveTimeout,L]);return(0,r.useEffect)((()=>{if(x&&v&&void 0!==(null===e||void 0===e?void 0:e.id)){const t=(0,ct.Og)(i,(()=>{p&&null!==e&&void 0!==e&&e.is_inited&&T()}));return()=>{t.dispose()}}}),[i,T,x,v,null===e||void 0===e?void 0:e.id,p,null===e||void 0===e?void 0:e.is_inited]),(0,qe.ZC)((([t,n])=>{x&&v&&void 0!==(null===e||void 0===e?void 0:e.id)&&p&&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)||T())}),[null===e||void 0===e?void 0:e.title,null===e||void 0===e?void 0:e.common_styles,p,v,T,null===e||void 0===e?void 0:e.id,null===e||void 0===e?void 0:e.is_inited]),(0,r.useEffect)((()=>()=>{clearTimeout(s.current)}),[h,null===e||void 0===e?void 0:e.renderGuid]),(0,r.useEffect)((()=>{clearTimeout(s.current)}),[null===e||void 0===e?void 0:e.modified]),f}(de),{counters:pe,subscription:he}=T,ge=null===pe||void 0===pe?void 0:pe.emails_counter,be=(0,r.useCallback)((()=>{f((0,B.vs)()),f((0,at.rI)())}),[f]);(0,r.useEffect)((()=>{b&&!C&&be()}),[C,b,be]),(0,r.useEffect)((()=>{f((0,rt.ff)()),document.body.classList.add("editor"),f((0,B.PM)(R.Bv))}),[f]);const[Ce,ve]=(0,r.useState)(!1);(0,r.useEffect)((()=>{!Ce&&ge<3&&(x(),ve(!0))}),[x,ge,Ce]);const ye=Q?te:ie,_e=Q?ne:oe,Ae=Q?ae:se,we=Q?re:ce,ke=(0,Re.aD)(H),Le=(0,r.useCallback)((()=>{ke.undo()}),[ke]),xe=(0,r.useCallback)((()=>{ke.redo()}),[ke]),Te=(0,r.useRef)();(0,r.useEffect)((()=>{Te.current!==(null===de||void 0===de?void 0:de.id)&&(ke.clear(),Te.current=null===de||void 0===de?void 0:de.id)}),[de,ke]);const Be=(0,r.useCallback)((e=>{(window.navigator.appVersion.indexOf("Mac")&&e.metaKey||e.ctrlKey)&&"KeyZ"===e.code&&(e.preventDefault(),e.shiftKey?xe():Le())}),[Le,xe]);(0,r.useEffect)((()=>()=>{f((0,at.rI)()),f((0,lt.qX)())}),[f]),(0,r.useEffect)((()=>{const e=t.addListener(R.Ru.APPLICATION_HAS_AMP,(e=>{f(null!==de&&void 0!==de&&de.id?(0,ze.VO)(e):(0,Fe.lg)(e))}));return()=>e.dispose()}),[t,f,null===de||void 0===de?void 0:de.id]);const[Ie,Pe]=(0,r.useState)(),He=(0,r.useCallback)((e=>{const t=e.data.operation,n=e.data,a=e.data.action,r=z.querySelector("#iframe-scroll-top"),l=z.querySelector("#iframe-scroll-bottom");if(t===R.Ru.APPLICATION_EBLOCK_ADD&&(Pe(n.data),f((0,B.qf)(R.lx.ADD_NEW_EBLOCK_MODAL))),t===R.Ru.APPLICATION_ACTION&&("undo"===a?Le():"redo"===a&&xe()),t===R.Ru.APPLICATION_SCROLL_BLOCK_SHOW){const e=z.querySelector("#email_iframe"),t=document.body.getBoundingClientRect().height,n=e.getClientRects()[0];n.top<0&&(r.style.display="block"),n.top+n.height>t&&(l.style.display="block")}t===R.Ru.APPLICATION_SCROLL_BLOCK_HIDE&&(r.style.display="none",l.style.display="none")}),[f,Le,xe,z]);(0,ot.A)(He);const Ve=e=>{e.preventDefault(),e.target&&t.send({operation:R.Ru.SANDBOX_DRAG_CANCEL}),z.querySelectorAll(".em-dragging-element").forEach((e=>{e.classList.remove("em-dragging-element")}))};(0,r.useEffect)((()=>{const e=new u.j;return e.addDisposable((0,dt.a)(z,"drop",Ve)),e.addDisposable((0,dt.a)(z,"dragover",Oe)),e.addDisposable((0,dt.a)(z,"dragstart",De)),e.addDisposable((0,dt.a)(z,"dragend",je)),()=>{e.dispose()}}),[z]),(0,r.useEffect)((()=>{const e=e=>{e.preventDefault()};return window.addEventListener("keydown",Be),window.addEventListener("dragenter dragleave",e),()=>{window.removeEventListener("keydown",Be),window.removeEventListener("dragenter dragleave",e)}}));const Oe=e=>{e.preventDefault();const t=z.querySelector("#iframe-scroll-top"),n=z.querySelector("#iframe-scroll-bottom"),a=D.sidePanelFloating?z.querySelector("#pane-content-wrapper"):z.querySelector(".email-pane__col_preview"),r=z.querySelector("#email_iframe"),{height:l,top:o}=r.getBoundingClientRect(),i=a.getBoundingClientRect().height;o>96?"block"===t.style.display&&(t.style.display="none"):"none"!==t.style.display&&""!==t.style.display||(t.style.display="block"),l-i+o<44?"block"===n.style.display&&(n.style.display="none"):"none"===n.style.display&&(n.style.display="block"),e.target===t&&a.scrollBy(0,-15),e.target===n&&a.scrollBy(0,15)},je=()=>{const e=z.querySelector("#iframe-scroll-top"),t=z.querySelector("#iframe-scroll-bottom");e&&t&&(e.style.display="none",t.style.display="none"),z.querySelectorAll(".em-dragging-element").forEach((e=>{e.classList.remove("em-dragging-element")}))},De=e=>{e.target.parentElement.classList.add("em-dragging-element");var t=e.target.closest(".blocks-search__result-wrapper")?e.target.querySelector(".blocks-search__result-html").cloneNode(!0):e.target.cloneNode(!0);t.classList.add("em-ghost-element"),t.style.height=e.target.closest(".blocks-search__result-wrapper")?"auto":"70px",t.style.width=e.target.closest(".blocks-search__result-wrapper")?"600px":"109px",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.zIndex="-1",e.target.appendChild(t),e.dataTransfer.setDragImage(t,0,0),window.setTimeout((function(){t.parentNode.removeChild(t)}),1e3)},We=(0,r.useCallback)((()=>{K({title:e("You reached the plan limit"),icon:r.createElement(it.A,null),content:r.createElement("div",{style:{maxWidth:"330px"}},e("Switch to a different plan to save more emails.")),centered:!0,okText:e("Choose a plan"),cancelText:e("Continue without saving"),width:"unset",onOk(){v("/billing")},onCancel(){}})}),[v,e,K]),[$e,Ge]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{if(I&&N){var e,t;const a=null===N||void 0===N||null===(e=N.find((e=>{var t,n;return(null===(t=e.id)||void 0===t?void 0:t.toString())===(null===he||void 0===he||null===(n=he.ID)||void 0===n?void 0:n.toString())})))||void 0===e||null===(t=e.limits)||void 0===t?void 0:t.emails_limit;a&&ge>=a&&!$e&&!n&&P&&(We(),Ge(!0))}}),[N,I,he,ge,$e,We,n,P]),(0,r.useEffect)((()=>{const e=t.onInit((()=>{t.send({operation:R.Ru.SANDBOX_LOCK_EDIT,data:!1})}));return()=>e.dispose()}),[t]),r.createElement(l.A,{className:"email-page"},_e&&r.createElement(h.A,null),Ae&&we&&r.createElement(mt,{style:{paddingTop:"40px"}},r.createElement("div",{className:"container"},r.createElement(i.Ay,{status:we.status,title:we.status,subTitle:we.data.message,extra:r.createElement(s.Ay,{type:"primary",onClick:()=>{v(`/projects/${a}/emails`)}},e("Back To Project"))}))),(!n&&!Q&&Y||ie&&de)&&!_e&&r.createElement(l.A,{className:"email-pane"},k&&r.createElement("div",{className:"email-pane__loader"},r.createElement(h.A,{small:!0})),r.createElement(Ue,{email:de,autoSaveEmailResult:me,isCollaborationEditor:Z}),r.createElement(g.A,{emailElement:de,isSuccess:ye,setIsCollaborationEditor:F,setIsShowAddAllBlocksModal:q,triggerOpenSavedBlocksTab:G})),r.createElement(O,{isModalVisible:E===R.lx.ADD_NEW_EBLOCK_MODAL,htmlContent:Ie,projectId:a,setIsShowAddAllBlocksModal:q,setIsShowAddAllBlocksModalForNewEmail:U,currentEmail:de}),r.createElement(tt,{isModalVisible:W,currentEmail:de,setIsShowAddAllBlocksModal:q,setTriggerOpenSavedBlocksTab:X,autoStart:!$,projectId:a}))}},583:(e,t,n)=>{"use strict";n.d(t,{A:()=>Ln});var a=n(98173),r=n(47555),l=n(40120),o=n(75576),i=n(13785),s=n(49856),c=n(62913),d=n(94674),m=n(93511),p=n(99291),u=n(53361),h=n(37969),g=n(201),b=n(66964),f=n(29123),C=n(48753),v=n(2604),E=n(62272),y=n(12543),_=n(64909),A=n(85591),w=n.n(A),k=n(2917),L=n(91959),S=n(37037),x=n(32947),T=n(27941);const B=({email:e})=>{const{__:t}=(0,y.s9)(),n=e.hasOwnProperty("type")?x.IE:x.Tm,[r,l]=(0,a.useState)(x.yy),o=(0,T.rD)();let i=[{label:a.createElement(a.Fragment,null,t("Settings")),key:x.yy,forceRender:!0,className:"email-settings__collapse-panel",children:a.createElement(L.A,{className:"email-settings__collapse-panel-content",element:e})}];return o.UTMEnabled&&n===x.Tm&&i.push({label:a.createElement(a.Fragment,null,t("UTM parameters")),key:x.iW,forceRender:!0,className:"email-settings__collapse-panel",children:a.createElement(S.A,{className:"email-settings__collapse-panel-content",email:e})}),a.createElement(a.Fragment,null,a.createElement(m.A,{className:"secondary-tabs email-settings__collapse",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:r,onChange:e=>l(e||""),items:i}))};var I=n(27499),M=n(42490),N=n(8218),R=n(49823),P=n(5795),H=n(77637),V=n(55207),O=n(8807),j=n(1047),D=n(54838),Z=n(52919);const{backgroundColor:F,backgroundImage:z,backgroundPositionX:W,backgroundPositionY:q,backgroundRepeat:$,backgroundSize:U,responsive:G,backgroundColorContent:X,width:K}={backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",backgroundPositionX:"backgroundPositionX",backgroundPositionY:"backgroundPositionY",backgroundRepeat:"backgroundRepeat",backgroundSize:"backgroundSize",responsive:"responsive",backgroundColorContent:"backgroundColorContent",width:"width"},Y={[F]:"",[z]:"",[W]:"",[q]:"",[$]:"checked",[U]:"",[X]:"",[K]:""},{useToken:J}=l.A,Q=({className:e,email:t})=>{var n,r,l;const{__:o}=(0,y.s9)(),{token:c}=J(),m=(0,v.wA)(),u=(0,T.rD)(),[h]=I.A.useForm(),C=(0,Z.XW)(),E=(0,v.d4)(j.uJ),_=(0,v.d4)(j.iy),A=(0,v.d4)(D.B),k=(0,v.d4)(j.mD),[L,S]=(0,a.useState)(!0),B=o("Email not yet loaded or global container not found.");(0,a.useEffect)((()=>{k&&(m((0,j.S_)(!1)),C({operation:x.Ru.INIT_PREVIEW}))}),[h,k,m,C,t.common_styles]);const X=[{label:o("Not defined"),value:"none"},{label:o("Do not repeat background (no-repeat)"),value:"no-repeat"},{label:o("Repeat background (repeat)"),value:"repeat"},{label:o("Repeat background horizontally (repeat-x)"),value:"repeat-x"},{label:o("Repeat background vertically (repeat-y)"),value:"repeat-y"}],K=[{label:o("Not defined"),value:""},{label:o("Contain"),value:"contain"},{label:o("Cover"),value:"cover"}];(0,a.useEffect)((()=>{var e,t,n,a;h.setFieldsValue({...E,width:null===(e=E.width)||void 0===e?void 0:e.value,widthDim:null===(t=E.width)||void 0===t?void 0:t.dim,backgroundImage:E.backgroundImage?null===(n=E.backgroundImage[0])||void 0===n?void 0:n.value:"",backgroundRepeat:""===E[$]?"repeat":E[$],backgroundSize:E[U],responsive:null===(a=E.responsive)||void 0===a?void 0:a.shutdown}),S(!E.backgroundImage)}),[E,h]);return a.createElement("div",{className:w()("appearance-panel",{[e]:e})},a.createElement(I.A,{form:h,layout:"vertical",name:"appearance_panel_form",initialValues:{remember:!1,...Y},onValuesChange:e=>{var t;const n=h.getFieldsValue(!0),a=Object.keys(e)[0];switch(a){case W:case q:C({operation:x.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[a]:""===e[a]?"none":e[a]}});break;case z:S(""===e[a]),C({operation:x.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[a]:[{...null===E||void 0===E||null===(t=E.backgroundImage)||void 0===t?void 0:t[0],type:"url",value:e[a]}],backgroundSize:"cover"}});break;case G:C({operation:x.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{responsive:{shutdown:e[a],styles:e[a]},width:n.width}});break;default:C({operation:x.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:e})}},autoComplete:"off",className:"element-controls"},_?a.createElement(p.A,{style:{marginBottom:"24px"},message:B,type:"error"}):null,a.createElement("div",{className:"form-group-title",style:{paddingTop:0}},o("Email layout width")),a.createElement(g.A,{gutter:10},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:null!==(n=E.width)&&void 0!==n&&n.value?o("This field sets the width of the email."):o("Couldn`t determine the email width"),placement:"right"},a.createElement(I.A.Item,{name:"width",style:{marginBottom:c.formItemMarginBottomXS}},a.createElement(M.A,{min:0,placeholder:o("Width"),prefix:a.createElement(P.A,null),disabled:!(null!==(r=E.width)&&void 0!==r&&r.value),addonAfter:"px"}))))),u.emailResponsiveControlEnabled&&a.createElement(a.Fragment,null,a.createElement(g.A,{gutter:20},a.createElement(b.A,{span:24},a.createElement(s.A,{size:8,align:"baseline"},a.createElement(I.A.Item,{name:"responsive",valuePropName:"checked"},a.createElement(f.A,{size:"small",name:"responsive",id:"responsive",disabled:void 0===(null===(l=E.responsive)||void 0===l?void 0:l.shutdown),onChange:e=>{m((0,D.wW)({shutdown:e,styles:e})),C({operation:x.Ru.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:document.querySelector(".email-pane__iframe").getBoundingClientRect().width}})}})),a.createElement("div",{className:"ant-form-item-switch-label"},a.createElement("label",{htmlFor:"responsive",style:{verticalAlign:"middle"}},o("Responsive email")))))),a.createElement(d.A,{className:"selected-td-form__divider"})),a.createElement("div",{className:"form-group-title"},o("Email background color")),a.createElement(g.A,{gutter:10,style:{paddingBottom:L?16:4}},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:o("Background color"),placement:"bottom"},a.createElement(I.A.Item,{name:F,style:{marginBottom:c.formItemMarginBottomXS},rules:[{message:o("Please set the background color")}]},a.createElement(H.A,{placeholder:o("Background color"),usedColors:E.usedColors})))),a.createElement(b.A,{span:L?12:24},u.formEmailFieldBackgroundImageEnabled&&a.createElement(a.Fragment,null,a.createElement(V.A,{form:h,label:o("Background image"),name:z,tooltipTitle:o("Background image"),disabled:_||"Styles"!==A,elementSettings:E}),!L&&a.createElement(a.Fragment,null,a.createElement(I.A.Item,{style:{marginBottom:"0"}},a.createElement(g.A,{gutter:10},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:o("Horizontal position"),placement:"bottom"},a.createElement(I.A.Item,{name:W,style:{marginBottom:c.formItemMarginBottomXS}},a.createElement(N.A,{placeholder:o("Horizontal position"),prefix:a.createElement(O.A,{icon:"BgPositionHorizontal"})})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:o("Vertical position"),placement:"bottom"},a.createElement(I.A.Item,{name:q,style:{marginBottom:c.formItemMarginBottomXS}},a.createElement(N.A,{placeholder:o("Vertical position"),prefix:a.createElement(O.A,{icon:"BgPositionVertical"})})))))),a.createElement(g.A,{gutter:10},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:o("Background image repeat"),placement:"bottom"},a.createElement(I.A.Item,{name:$},a.createElement(R.A,{placeholder:o("Please select"),disabled:_,options:X,getPopupContainer:e=>e.parentNode})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:o("Background image size"),placement:"top"},a.createElement(I.A.Item,{name:U},a.createElement(R.A,{placeholder:o("Please select"),disabled:_,options:K,getPopupContainer:e=>e.parentNode})))))))))))};Q.defaultProps={className:""};const ee=Q;var te=n(94780),ne=n(22536);const{Option:ae}=R.A,{width:re,widthDim:le}={width:"width",widthDim:"widthDim"},oe={[re]:"",[le]:""},ie=({className:e})=>{const{__:t}=(0,y.s9)(),n=(0,v.d4)(ne.JV),r=(0,v.d4)(ne.iy),[l]=I.A.useForm(),o=(0,Z.XW)(),i=t("Block not yet loaded or global container not found.");(0,a.useEffect)((()=>{l.setFieldsValue({width:n.width.value,widthDim:n.width.dim})}),[n,l]);return a.createElement("div",{className:w()("block-appearance-panel",{[e]:e})},a.createElement(I.A,{form:l,layout:"vertical",name:"block_appearance_panel_form",initialValues:{remember:!1,...oe},onValuesChange:e=>{const t=l.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}o({operation:x.Ru.SANDBOX_BLOCK_SETTINGS_SET,settings:a})},autoComplete:"off"},r?a.createElement(p.A,{style:{marginBottom:"24px"},message:i,type:"error"}):null,a.createElement(I.A.Item,{label:t("Container width"),name:re,tooltip:{title:t("Specifies the block width."),icon:a.createElement(te.A,null)},rules:[{message:t("Please input container width")}]},a.createElement(N.A,{disabled:r,placeholder:t("Container width"),addonAfter:a.createElement(I.A.Item,{name:"widthDim",noStyle:!0},a.createElement(R.A,{className:"select-after",getPopupContainer:e=>e.parentNode},a.createElement(ae,{value:"px"},"px"),a.createElement(ae,{value:"%"},"%")))}))))};ie.defaultProps={className:""};const se=ie;var ce=n(46409),de=n(78320),me=n(67073),pe=n(20721),ue=n(96698),he=n(52427),ge=n(11399),be=n(23863),fe=n(67151),Ce=n(80877),ve=n(99512);const{useToken:Ee}=l.A,ye=e=>{var t,n,a,r,l,o,i,s,c,d,m,p,u,h,g,b,f,C;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===(l=e.cards)||void 0===l?void 0:l.border)||{all:null,top:null,right:null,bottom:null,left:null},cardsBorderRadius:(null===(o=e.cards)||void 0===o?void 0:o.borderRadius)||{all:10,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},blockBackgroundColor:(null===(i=e.block)||void 0===i?void 0:i.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===(p=m.padding)||void 0===p?void 0:p.top,blockPaddingRight:null===(u=e.block)||void 0===u||null===(h=u.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===(C=f.padding)||void 0===C?void 0:C.left}},_e={buttons_borderRadiusAll:"all",buttons_borderRadiusTopLeft:"topLeft",buttons_borderRadiusBottomLeft:"bottomLeft",buttons_borderRadiusTopRight:"topRight",buttons_borderRadiusBottomRight:"bottomRight"},Ae={cards_borderRadiusAll:"all",cards_borderRadiusTopLeft:"topLeft",cards_borderRadiusBottomLeft:"bottomLeft",cards_borderRadiusTopRight:"topRight",cards_borderRadiusBottomRight:"bottomRight"},we=({className:e,email:t})=>{const{__:n}=(0,y.s9)(),r=(0,v.wA)(),l=(0,Z.XW)(),[o]=I.A.useForm(),c=(0,v.d4)(j.uJ),m=(0,v.d4)(j.dH),u=(0,T.rD)(),{token:f}=Ee(),[C,E]=(0,a.useState)({}),[_,A]=(0,a.useState)({}),[k,L]=(0,a.useState)(!0),[S,B]=(0,a.useState)(!0),[M,N]=(0,a.useState)(!1),[R,V]=(0,a.useState)(!1),F={buttonsPaddingTop:"top",buttonsPaddingLeft:"left",buttonsPaddingRight:"right",buttonsPaddingBottom:"bottom"},z=t.common_styles&&"{}"!==t.common_styles?JSON.parse(t.common_styles):x.BD,[W,q]=(0,a.useState)(z.headings.bold),[$,U]=(0,a.useState)(z.headings.italic),[G,X]=(0,a.useState)(z.links.underline),[K,Y]=(0,a.useState)(z.buttons.bold),[J,Q]=(0,a.useState)(z.buttons.italic),[ee,te]=(0,a.useState)(null),ne=!!t.common_styles&&"{}"!==t.common_styles,ae=(0,v.d4)(D.Wm);(0,a.useEffect)((()=>{ae||te(null)}),[z,te,ae]),(0,a.useEffect)((()=>{ae&&!ee&&te(ye(z))}),[z,ee,ae]),(0,a.useEffect)((()=>{m&&(r((0,j.RC)(!1)),o.setFieldsValue(ye(z)))}),[o,m,r,z]);const[re,le]=(0,a.useState)(Math.min(z.headings.fontSize-1,19)),[oe,ie]=(0,a.useState)(Math.max(z.text.fontSize+1,20));(0,a.useEffect)((()=>{if(ee){var e,t,n,a,r,l,i,s,c,d,m,p,u;const h=ee.buttonsBorder;E(h);const g=Object.keys(h).find((e=>{var t,n,a;return(null===(t=h[e])||void 0===t?void 0:t.width)||(null===(n=h[e])||void 0===n?void 0:n.style)||(null===(a=h[e])||void 0===a?void 0:a.color)})),b=ee.cardsBorder;A(b);const f=Object.keys(b).find((e=>{var t,n,a;return(null===(t=b[e])||void 0===t?void 0:t.width)||(null===(n=b[e])||void 0===n?void 0:n.style)||(null===(a=b[e])||void 0===a?void 0:a.color)}));o.setFieldsValue({buttons_borderPosition:g||"all",buttons_borderWidth:null!==(null===(e=h[g])||void 0===e?void 0:e.width)?null===(t=h[g])||void 0===t?void 0:t.width:"",buttons_borderColor:(null===(n=h[g])||void 0===n?void 0:n.color)||"",buttons_borderStyle:(null===(a=h[g])||void 0===a?void 0:a.style)||"",cards_borderPosition:f||"all",cards_borderWidth:null!==(null===(r=b[f])||void 0===r?void 0:r.width)?null===(l=b[f])||void 0===l?void 0:l.width:"",cards_borderColor:(null===(i=b[f])||void 0===i?void 0:i.color)||"",cards_borderStyle:(null===(s=b[f])||void 0===s?void 0:s.style)||"",buttons_borderRadiusAll:(0,ve.ok)(ee.buttonsBorderRadius.all),buttons_borderRadiusTopLeft:(0,ve.ok)(ee.buttonsBorderRadius.topLeft),buttons_borderRadiusBottomLeft:(0,ve.ok)(ee.buttonsBorderRadius.bottomLeft),buttons_borderRadiusTopRight:(0,ve.ok)(ee.buttonsBorderRadius.topRight),buttons_borderRadiusBottomRight:(0,ve.ok)(ee.buttonsBorderRadius.bottomRight),cards_borderRadiusAll:(0,ve.ok)(ee.cardsBorderRadius.all),cards_borderRadiusTopLeft:(0,ve.ok)(ee.cardsBorderRadius.topLeft),cards_borderRadiusBottomLeft:(0,ve.ok)(ee.cardsBorderRadius.bottomLeft),cards_borderRadiusTopRight:(0,ve.ok)(ee.cardsBorderRadius.topRight),cards_borderRadiusBottomRight:(0,ve.ok)(ee.cardsBorderRadius.bottomRight),blockPaddingAll:(0,ve.ok)(ee.blockPaddingAll),blockPaddingTop:(0,ve.ok)(ee.blockPaddingTop),blockPaddingRight:(0,ve.ok)(ee.blockPaddingRight),blockPaddingBottom:(0,ve.ok)(ee.blockPaddingBottom),blockPaddingLeft:(0,ve.ok)(ee.blockPaddingLeft),blockPaddingLeftRight:(0,ve.ok)(ee.blockPaddingRight)||(0,ve.ok)(ee.blockPaddingLeft),blockPaddingTopBottom:(0,ve.ok)(ee.blockPaddingTop)||(0,ve.ok)(ee.blockPaddingBottom)}),(0,ve.ok)(ee.blockPaddingAll)||!((0,ve.ok)(ee.blockPaddingTop)||(0,ve.ok)(ee.blockPaddingRight)||(0,ve.ok)(ee.blockPaddingBottom)||(0,ve.ok)(ee.blockPaddingLeft))||ee.blockPaddingTop===ee.blockPaddingBottom&&ee.blockPaddingRight===ee.blockPaddingLeft?V(!0):V(!1),!(0,ve.ok)(ee.buttonsBorderRadius.all)&&((0,ve.ok)(ee.buttonsBorderRadius.topLeft)||(0,ve.ok)(ee.buttonsBorderRadius.bottomLeft)||(0,ve.ok)(ee.buttonsBorderRadius.topRight)||(0,ve.ok)(ee.buttonsBorderRadius.bottomRight))?L(!1):L(!0),ee.buttonsPadding&&!(0,ve.ok)(ee.buttonsPadding.all)&&((0,ve.ok)(ee.buttonsPadding.bottom)||(0,ve.ok)(ee.buttonsPadding.right)||(0,ve.ok)(ee.buttonsPadding.left)||(0,ve.ok)(ee.buttonsPadding.top))&&N(!1),!(0,ve.ok)(null===(c=ee.cardsBorderRadius)||void 0===c?void 0:c.all)&&((0,ve.ok)(null===(d=ee.cardsBorderRadius)||void 0===d?void 0:d.topLeft)||(0,ve.ok)(null===(m=ee.cardsBorderRadius)||void 0===m?void 0:m.bottomLeft)||(0,ve.ok)(null===(p=ee.cardsBorderRadius)||void 0===p?void 0:p.topRight)||(0,ve.ok)(null===(u=ee.cardsBorderRadius)||void 0===u?void 0:u.bottomRight))?B(!1):B(!0)}}),[o,ee]);const se=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?q(!a):"headingItalic"===n?U(!a):"linkUnderline"===n?X(!a):"buttonsBold"===n?Y(!a):"buttonsItalic"===n&&Q(!a),l({operation:x.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[n]:!a}})};return ee&&a.createElement("div",{className:w()("appearance-panel",{[e]:e})},a.createElement(I.A,{form:o,layout:"vertical",name:"content_appearance_panel_form",initialValues:ee,onValuesChange:e=>{var t,n,a,r,i,s;const c=o.getFieldsValue(!0),d=Object.keys(e)[0];let m={};switch(d){case"headingFontSize":le(Math.min(c.headingFontSize-1,19)),m=e;break;case"textFontSize":ie(Math.max(c.textFontSize+1,20)),m=e;break;case"buttons_borderStyle":m={buttonsBorder:{[c.buttons_borderPosition]:{...C[c.buttons_borderPosition],style:e[d]}}},"all"===c.buttons_borderPosition?E((t=>({...x.iV,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],style:e[d]}}))):E((t=>({...t,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],style:e[d]}})));break;case"buttons_borderColor":m={buttonsBorder:{[c.buttons_borderPosition]:{...C[c.buttonsBorderPosition],color:e[d]}}},"all"===c.buttons_borderPosition?E((t=>({...x.iV,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],color:e[d]}}))):E((t=>({...t,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],color:e[d]}})));break;case"buttons_borderWidth":m={buttonsBorder:{[c.buttons_borderPosition]:{...C[c.buttons_borderPosition],width:e[d]}}},"all"===c.buttonsBorderPosition?E((t=>({...x.iV,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],width:e[d]}}))):E((t=>({...t,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],width:e[d]}})));break;case"buttons_borderPosition":o.setFieldsValue({buttons_borderWidth:(null===(t=C[e[d]])||void 0===t?void 0:t.width)||"",buttons_borderColor:(null===(n=C[e[d]])||void 0===n?void 0:n.color)||"",buttons_borderStyle:(null===(a=C[e[d]])||void 0===a?void 0:a.style)||""});break;case"cards_borderStyle":m={cardsBorder:{[c.cards_borderPosition]:{..._[c.cards_borderPosition],style:e[d]}}},"all"===c.cards_borderPosition?A((t=>({...x.iV,[c.cards_borderPosition]:{...t[c.cards_borderPosition],style:e[d]}}))):A((t=>({...t,[c.cards_borderPosition]:{...t[c.cards_borderPosition],style:e[d]}})));break;case"cards_borderColor":m={cardsBorder:{[c.cards_borderPosition]:{..._[c.cardsBorderPosition],color:e[d]}}},"all"===c.cards_borderPosition?A((t=>({...x.iV,[c.cards_borderPosition]:{...t[c.cards_borderPosition],color:e[d]}}))):A((t=>({...t,[c.cards_borderPosition]:{...t[c.cards_borderPosition],color:e[d]}})));break;case"cards_borderWidth":m={cardsBorder:{[c.cards_borderPosition]:{..._[c.cards_borderPosition],width:e[d]}}},"all"===c.cardsBorderPosition?A((t=>({...x.iV,[c.cards_borderPosition]:{...t[c.cards_borderPosition],width:e[d]}}))):A((t=>({...t,[c.cards_borderPosition]:{...t[c.cards_borderPosition],width:e[d]}})));break;case"cards_borderPosition":o.setFieldsValue({cards_borderWidth:(null===(r=_[e[d]])||void 0===r?void 0:r.width)||"",cards_borderColor:(null===(i=_[e[d]])||void 0===i?void 0:i.color)||"",cards_borderStyle:(null===(s=_[e[d]])||void 0===s?void 0:s.style)||""});break;case"buttons_borderRadiusAll":case"buttons_borderRadiusTopLeft":case"buttons_borderRadiusBottomLeft":case"buttons_borderRadiusTopRight":case"buttons_borderRadiusBottomRight":m={buttonsBorderRadius:{[_e[d]]:+e[d]}};break;case"cards_borderRadiusAll":case"cards_borderRadiusTopLeft":case"cards_borderRadiusBottomLeft":case"cards_borderRadiusTopRight":case"cards_borderRadiusBottomRight":m={cardsBorderRadius:{[Ae[d]]:+e[d]}};break;case"buttonsPaddingTop":case"buttonsPaddingLeft":case"buttonsPaddingRight":case"buttonsPaddingBottom":M?(m={padding:{all:+e[d]}},o.setFieldsValue({paddingTop:e[d],paddingLeft:e[d],paddingRight:e[d],paddingBottom:e[d]})):m={buttonsPadding:{[F[d]]:+e[d]}};break;case"blockPaddingTop":case"blockPaddingLeft":case"blockPaddingRight":case"blockPaddingBottom":m={blockPadding:{left:c.blockPaddingLeft||0,right:c.blockPaddingRight||0,top:c.blockPaddingTop||0,bottom:c.blockPaddingBottom||0,[F[d]]:+e[d]}};break;case"blockPaddingTopBottom":m={blockPadding:{left:c.blockPaddingLeft||0,right:c.blockPaddingRight||0,top:+e[d],bottom:+e[d]}},c.blockPaddingTop=c.blockPaddingBottom=+e[d];break;case"blockPaddingLeftRight":m={blockPadding:{top:c.blockPaddingTop||0,bottom:c.blockPaddingBottom||0,left:+e[d],right:+e[d]}},c.blockPaddingLeft=c.blockPaddingRight=+e[d];break;default:m=e}"buttons_borderPosition"!==d&&l({operation:x.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:m})},autoComplete:"off",className:"element-controls"},ne?null:a.createElement(p.A,{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("div",{className:"form-group-title",style:{paddingTop:0}},n("Blocks")),a.createElement(g.A,{gutter:10},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Blocks background color"),placement:"bottom"},a.createElement(I.A.Item,{name:"blockBackgroundColor",style:{marginBottom:f.formItemMarginBottomMD+4},rules:[{message:n("Please set the background color")}]},a.createElement(H.A,{placeholder:n("Background color"),usedColors:c.usedColors})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Background color of the contrast blocks"),placement:"bottom"},a.createElement(I.A.Item,{name:"blockContrastBackgroundColor",style:{marginBottom:f.formItemMarginBottomMD+4},rules:[{message:n("Please set the background color")}]},a.createElement(H.A,{placeholder:n("Background color"),usedColors:c.usedColors}))))),a.createElement(g.A,{gutter:10,style:{paddingBottom:4}},a.createElement(a.Fragment,null,a.createElement(b.A,{span:10,style:{width:156,flex:"auto",maxWidth:"none"}},a.createElement("div",{className:"padding-collapsed",style:{display:R?"block":"none"}},a.createElement(i.A,{title:n("Horizontal padding"),placement:"bottom"},a.createElement(I.A.Item,{name:"blockPaddingLeftRight"},a.createElement(Ce.A,{min:0,placeholder:n("Horizontal"),prefix:a.createElement(O.A,{icon:"PaddingLeftRight"}),addonAfter:"px"})))),a.createElement("div",{className:"padding-extended",style:{display:R?"none":"block"}},a.createElement(i.A,{trigger:["hover"],title:n("Left padding"),placement:"bottom"},a.createElement(I.A.Item,{name:"blockPaddingLeft",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(Ce.A,{min:0,placeholder:n("Left"),prefix:a.createElement(O.A,{icon:"PaddingLeft"}),addonAfter:"px"}))),a.createElement(i.A,{trigger:["hover"],title:n("Right padding"),placement:"bottom"},a.createElement(I.A.Item,{name:"blockPaddingRight"},a.createElement(Ce.A,{min:0,placeholder:n("Right"),prefix:a.createElement(O.A,{icon:"PaddingRight"}),addonAfter:"px"}))))),a.createElement(b.A,{span:10,style:{width:156,flex:"auto",maxWidth:"none"}},a.createElement("div",{className:"padding-collapsed",style:{display:R?"block":"none"}},a.createElement(i.A,{title:n("Vertical padding"),placement:"bottom"},a.createElement(I.A.Item,{name:"blockPaddingTopBottom"},a.createElement(Ce.A,{min:0,placeholder:n("Vertical"),prefix:a.createElement(O.A,{icon:"PaddingTopBottom"}),addonAfter:"px"})))),a.createElement("div",{className:"padding-extended",style:{display:R?"none":"block"}},a.createElement(i.A,{trigger:["hover"],title:n("Top padding"),placement:"bottom"},a.createElement(I.A.Item,{name:"blockPaddingTop",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(Ce.A,{min:0,placeholder:n("Top"),prefix:a.createElement(O.A,{icon:"PaddingTop"}),addonAfter:"px"}))),a.createElement(i.A,{trigger:["hover"],title:n("Bottom padding"),placement:"bottom"},a.createElement(I.A.Item,{name:"blockPaddingBottom"},a.createElement(Ce.A,{min:0,placeholder:n("Bottom"),prefix:a.createElement(O.A,{icon:"PaddingBottom"}),addonAfter:"px"}))))),a.createElement(b.A,{span:4,style:{width:45,flex:"auto",maxWidth:"none"}},a.createElement(i.A,{title:n("Individual padding"),placement:"bottom"},a.createElement(h.Ay,{className:w()("selected-td-form__button",{"selected-td-form__button--active":!R}),onClick:()=>{V((e=>!e));const e=o.getFieldsValue(!0);R||(e.blockPaddingLeftRight=e.blockPaddingLeft,e.blockPaddingTopBottom=e.blockPaddingTop,e.blockPaddingRight=e.blockPaddingLeft,e.blockPaddingBottom=e.blockPaddingTop,l({operation:x.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{blockPadding:{top:e.blockPaddingTopBottom,bottom:e.blockPaddingTopBottom,left:e.blockPaddingLeftRight,right:e.blockPaddingLeftRight}}}))}},a.createElement(O.A,{icon:"PaddingSwitcher"})))))),a.createElement(d.A,{className:"selected-td-form__divider"}),a.createElement("div",{className:"form-group-title"},n("General text")),a.createElement(i.A,{trigger:["hover"],title:n("Font of the general text"),placement:"bottom"},a.createElement(I.A.Item,{name:"textFontFamily",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(he.A,{value:ee.textFontFamily}))),a.createElement(g.A,{gutter:10},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Font size of the general text"),placement:"bottom"},a.createElement(I.A.Item,{name:"textFontSize"},a.createElement(Ce.A,{min:15,max:re,placeholder:n("Font size"),prefix:a.createElement(ce.A,null),addonAfter:"px"})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Line height of the general text"),placement:"bottom"},a.createElement(I.A.Item,{name:"textLineHeight"},a.createElement(Ce.A,{min:0,placeholder:n("Line height"),prefix:a.createElement(de.A,null),addonAfter:"px"}))))),a.createElement(g.A,{gutter:10,style:{paddingBottom:4}},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Color of the general text"),placement:"bottom"},a.createElement(I.A.Item,{name:"textColor"},a.createElement(H.A,{placeholder:n("Text color"),usedColors:c.usedColors})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Contrast block text color"),placement:"bottom"},a.createElement(I.A.Item,{name:"textContrastColor"},a.createElement(H.A,{placeholder:n("Text color"),usedColors:c.usedColors}))))),a.createElement(g.A,{gutter:10,style:{paddingBottom:4}},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Bottom padding of the general text"),placement:"bottom"},a.createElement(I.A.Item,{name:"textPaddingBottom"},a.createElement(Ce.A,{min:0,placeholder:n("Bottom padding"),prefix:a.createElement(O.A,{icon:"PaddingBottom"}),addonAfter:"px"}))))),a.createElement(d.A,{className:"selected-td-form__divider"}),a.createElement("div",{className:"form-group-title"},n("Headings")),a.createElement(i.A,{trigger:["hover"],title:n("Heading font"),placement:"left"},a.createElement(I.A.Item,{name:"headingFontFamily",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(he.A,null))),a.createElement(g.A,{gutter:10},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Heading font size"),placement:"bottom"},a.createElement(I.A.Item,{name:"headingFontSize",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(Ce.A,{min:oe,max:40,placeholder:n("Font size"),prefix:a.createElement(ce.A,null),addonAfter:"px"})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Heading line height"),placement:"bottom"},a.createElement(I.A.Item,{name:"headingLineHeight",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(Ce.A,{min:0,placeholder:n("Line height"),prefix:a.createElement(de.A,null),addonAfter:"px"}))))),a.createElement(g.A,{gutter:10},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Heading letter spacing"),placement:"bottom"},a.createElement(I.A.Item,{name:"headingLetterSpacing"},a.createElement(Ce.A,{min:0,placeholder:n("Letter spacing"),prefix:a.createElement(P.A,null),addonAfter:"px"})))),a.createElement(b.A,{span:12},a.createElement(s.A,null,a.createElement(i.A,{placement:"bottom",title:n("Strong")},a.createElement(h.Ay,{className:w()({"selected-td-form__button--active":W}),type:"default",name:"headingBold",onClick:se},a.createElement(me.A,null))),a.createElement(i.A,{placement:"bottom",title:n("Italic")},a.createElement(h.Ay,{className:w()({"selected-td-form__button--active":$}),type:"default",name:"headingItalic",onClick:se},a.createElement(pe.A,null)))))),a.createElement(g.A,{gutter:10},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Heading color"),placement:"bottom"},a.createElement(I.A.Item,{name:"headingColor"},a.createElement(H.A,{placeholder:n("Heading color"),usedColors:c.usedColors})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Contrast block header color"),placement:"bottom"},a.createElement(I.A.Item,{name:"headingContrastColor"},a.createElement(H.A,{placeholder:n("Heading color"),usedColors:c.usedColors}))))),a.createElement(g.A,{gutter:10,style:{paddingBottom:4}},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Top padding"),placement:"bottom"},a.createElement(I.A.Item,{name:"headingPaddingTop"},a.createElement(Ce.A,{min:0,placeholder:n("Top padding"),prefix:a.createElement(O.A,{icon:"PaddingTop"}),addonAfter:"px"})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Bottom padding"),placement:"bottom"},a.createElement(I.A.Item,{name:"headingPaddingBottom"},a.createElement(Ce.A,{min:0,placeholder:n("Bottom padding"),prefix:a.createElement(O.A,{icon:"PaddingBottom"}),addonAfter:"px"}))))),a.createElement(d.A,{className:"selected-td-form__divider"}),a.createElement("div",{className:"form-group-title"},n("Links")),a.createElement(g.A,{gutter:10},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Link color"),placement:"bottom"},a.createElement(I.A.Item,{name:"linkColor",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(H.A,{placeholder:n("Link color"),usedColors:c.usedColors})))),a.createElement(b.A,{span:12},a.createElement(i.A,{placement:"bottom",title:n("Underline")},a.createElement(h.Ay,{className:w()({"selected-td-form__button--active":G}),type:"default",name:"linkUnderline",onClick:se},a.createElement(ue.A,null))))),a.createElement(g.A,{gutter:10,style:{paddingBottom:4}},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Link color in contrasting blocks"),placement:"bottom"},a.createElement(I.A.Item,{name:"linkContrastColor"},a.createElement(H.A,{placeholder:n("Link color"),usedColors:c.usedColors}))))),a.createElement(d.A,{className:"selected-td-form__divider"}),a.createElement("div",{className:"form-group-title"},n("Buttons")," ",a.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",n("Text & background")),a.createElement(i.A,{trigger:["hover"],title:n("Buttons font"),placement:"left"},a.createElement(I.A.Item,{name:"buttonsFontFamily",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(he.A,null))),a.createElement(g.A,{gutter:10},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Buttons font size"),placement:"bottom"},a.createElement(I.A.Item,{name:"buttonsFontSize",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(Ce.A,{min:0,placeholder:n("Font size"),prefix:a.createElement(ce.A,null),addonAfter:"px"})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Buttons letter spacing"),placement:"bottom"},a.createElement(I.A.Item,{name:"buttonsLetterSpacing",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(Ce.A,{min:0,placeholder:n("Letter spacing"),prefix:a.createElement(P.A,null),addonAfter:"px"}))))),a.createElement(g.A,{gutter:10,style:{paddingBottom:4}},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Buttons text color"),placement:"bottom"},a.createElement(I.A.Item,{name:"buttonsColor",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(H.A,{placeholder:n("Buttons text color"),usedColors:c.usedColors})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Button text color in contrasting blocks"),placement:"bottom"},a.createElement(I.A.Item,{name:"buttonsContrastColor",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(H.A,{placeholder:n("Buttons text color"),usedColors:c.usedColors})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Buttons background color"),placement:"bottom"},a.createElement(I.A.Item,{name:"buttonsBackgroundColor"},a.createElement(H.A,{placeholder:n("Background color"),usedColors:c.usedColors})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Button background color in contrasting blocks"),placement:"bottom"},a.createElement(I.A.Item,{name:"buttonsContrastBackgroundColor"},a.createElement(H.A,{placeholder:n("Background color"),usedColors:c.usedColors})))),u.formButtonFieldTextAlignEnabled&&a.createElement(b.A,{span:12},a.createElement(ge.A,{form:o,elementSettings:{textAlign:"",type:"email"},imgParent:!1,name:"buttonsAlign",withHotKeys:!1})),a.createElement(b.A,{span:12},a.createElement(s.A,null,a.createElement(i.A,{placement:"bottom",title:n("Strong")},a.createElement(h.Ay,{className:w()({"selected-td-form__button--active":K}),type:"default",name:"buttonsBold",onClick:se},a.createElement(me.A,null))),a.createElement(i.A,{placement:"bottom",title:n("Italic")},a.createElement(h.Ay,{className:w()({"selected-td-form__button--active":J}),type:"default",name:"buttonsItalic",onClick:se},a.createElement(pe.A,null)))))),u.formFieldBorderEnabled&&a.createElement(a.Fragment,null,a.createElement(d.A,{className:"selected-td-form__divider"}),a.createElement("div",{className:"form-group-title"},n("Buttons")," ",a.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",n("Borders")),a.createElement("div",{style:{paddingBottom:4}},a.createElement(be.A,{form:o,borders:C,namePrefix:"buttons_"}))),u.formFieldBorderRadiusEnabled&&a.createElement(a.Fragment,null,a.createElement(d.A,{className:"selected-td-form__divider"}),a.createElement("div",{className:"form-group-title"},n("Buttons")," ",a.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",n("Border radius")),a.createElement("div",{style:{paddingBottom:4}},a.createElement(fe.A,{form:o,oneBorderRadiusValue:k,setOneBorderRadiusValue:L,elementSettings:ee,namePrefix:"buttons_"}))),a.createElement(d.A,{className:"selected-td-form__divider"}),a.createElement("div",{className:"form-group-title"},n("Buttons")," ",a.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",n("Margins")),a.createElement(g.A,{gutter:10,style:{paddingBottom:4}},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Top margin"),placement:"bottom"},a.createElement(I.A.Item,{name:"buttonsMarginTop"},a.createElement(Ce.A,{min:0,placeholder:n("Top margin"),prefix:a.createElement(O.A,{icon:"PaddingTop"}),addonAfter:"px"})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Bottom margin"),placement:"bottom"},a.createElement(I.A.Item,{name:"buttonsMarginBottom"},a.createElement(Ce.A,{min:0,placeholder:n("Bottom margin"),prefix:a.createElement(O.A,{icon:"PaddingBottom"}),addonAfter:"px"}))))),a.createElement(d.A,{className:"selected-td-form__divider"}),a.createElement("div",{className:"form-group-title"},n("Cards")," ",a.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",n("Colors")),a.createElement(g.A,{gutter:10},a.createElement(b.A,{span:12},a.createElement("div",{className:"form-group-title",style:{paddingTop:0,paddingBottom:f.formItemMarginBottomXS}},n("Base colors")),a.createElement(i.A,{trigger:["hover"],title:n("Base background color"),placement:"bottom"},a.createElement(I.A.Item,{name:"cardsBaseBackgroundColor",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(H.A,{placeholder:n("Base background color"),usedColors:c.usedColors})))),a.createElement(b.A,{span:12},a.createElement("div",{className:"form-group-title",style:{paddingTop:0,paddingBottom:f.formItemMarginBottomXS}},n("Contrasting colors")),a.createElement(i.A,{trigger:["hover"],title:n("Contrasting background color"),placement:"bottom"},a.createElement(I.A.Item,{name:"cardsContrastBackgroundColor",style:{marginBottom:f.formItemMarginBottomXS}},a.createElement(H.A,{placeholder:n("Contrasting background color"),usedColors:c.usedColors}))))),a.createElement(g.A,{gutter:10,style:{paddingBottom:4}},a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Base text color"),placement:"bottom"},a.createElement(I.A.Item,{name:"cardsBaseTextColor"},a.createElement(H.A,{placeholder:n("Base text color"),usedColors:c.usedColors})))),a.createElement(b.A,{span:12},a.createElement(i.A,{trigger:["hover"],title:n("Contrasting text color"),placement:"bottom"},a.createElement(I.A.Item,{name:"cardsContrastTextColor"},a.createElement(H.A,{placeholder:n("Contrasting text color"),usedColors:c.usedColors}))))),u.formFieldBorderEnabled&&a.createElement(a.Fragment,null,a.createElement(d.A,{className:"selected-td-form__divider"}),a.createElement("div",{className:"form-group-title"},n("Cards")," ",a.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",n("Borders")),a.createElement("div",{style:{paddingBottom:4}},a.createElement(be.A,{form:o,borders:_,namePrefix:"cards_"}))),u.formFieldBorderRadiusEnabled&&a.createElement(a.Fragment,null,a.createElement(d.A,{className:"selected-td-form__divider"}),a.createElement("div",{className:"form-group-title"},n("Cards")," ",a.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",n("Border radius")),a.createElement("div",{style:{paddingBottom:4}},a.createElement(fe.A,{form:o,oneBorderRadiusValue:S,setOneBorderRadiusValue:B,elementSettings:ee,namePrefix:"cards_"})))))},ke=({email:e})=>{const{__:t}=(0,y.s9)(),n=e.hasOwnProperty("type")?x.IE:x.Tm,[r,l]=(0,a.useState)(x.xz),o=(0,T.rD)(),i=!!e.common_styles&&"{}"!==e.common_styles;let s=[{label:a.createElement(a.Fragment,null,n===x.Tm?t("Global styles"):t("Block styles")),key:x.xz,forceRender:!0,className:"email-settings__collapse-panel",children:n===x.Tm?a.createElement(ee,{className:"email-settings__collapse-panel-content",email:e}):a.createElement(se,{className:"email-settings__collapse-panel-content"})}];return n===x.Tm&&i&&o.commonStylesEnabled&&s.push({label:a.createElement(a.Fragment,null,t("Content styles")),key:"contentStyles",forceRender:!0,className:"email-settings__collapse-panel",children:a.createElement(we,{className:"email-settings__collapse-panel-content",email:e})}),a.createElement(a.Fragment,null,a.createElement(m.A,{className:"secondary-tabs email-settings__collapse appearance-panel__content-styles",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:r,onChange:e=>l(e||""),items:s}))};var Le=n(38927),Se=n(71832),xe=n(59010),Te=n(40186),Be=n(6969),Ie=n(80293),Me=n(72510),Ne=n(36434),Re=n(65716),Pe=n(68984),He=n(40277),Ve=n(73180);const Oe=n.p+"static/media/icon-menu-block-welcome.1c534a003522feadd2e7.png";var je=n(3326);const De=e=>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,""),{name:Ze,type:Fe,tags:ze}={name:"name",type:"type",tags:"tags"},We={[Ze]:"",[Fe]:[],[ze]:[]},qe={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},{useToken:$e}=l.A,Ue=({parentEmailId:e=x.iU,blocksTab:t,search:n,reloadBlockScreens:r,email:l,setIsShowAddAllBlocksModal:i})=>{const{projectId:s}=(0,E.g)(),c=(0,He.sh)(),m=(0,He._9)(),[u]=I.A.useForm(),{data:g}=(0,Pe.h1)(),{token:b}=$e(),{__:f,_x:C}=(0,y.s9)(),A=(0,_.hN)(),{modal:k}=o.A.useApp(),{confirm:L}=k;let S=(0,E.zy)();const T=(0,v.d4)(D.V$),B=(0,a.useRef)(null),M=(0,a.useRef)(null),R=(0,je.cR)(),P="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):{},H=(0,a.useRef)(null),V=(0,a.useRef)(null),O=(0,a.useRef)(null),j=(0,v.Pj)();(0,a.useEffect)((()=>{var e;null===(e=M.current)||void 0===e||e.scrollTo({top:0})}),[t,n]);const{data:Z}=Re.Nq.endpoints.getProject.select(+s)(j.getState()),[F,z]=(0,a.useState)({projectId:s,pageSize:1e3,page:1,tags:null,name:null,type:null,notEmbed:!0,order:"asc",orderby:"title"});(0,a.useEffect)((()=>{n||(u.setFieldsValue(We),Ee({type:null,name:null}),r())}),[n,u,r]),(0,a.useEffect)((()=>{if(g){const e=g.schema.properties.acf.properties.type.items.enum;let t=[];for(let n in e)t.push({label:f(x.jg[e[n]]),value:e[n]})}}),[g,f]);const{isSuccess:W,isError:q,isLoading:$,isFetching:U,data:G,refetch:X,error:K}=(0,Pe.SB)({...F,page:1}),Y=(0,a.useMemo)((()=>{if(W&&G)return[...G].sort(((e,t)=>qe[e.type]-qe[t.type]))}),[W,G]),[J,Q]=(0,a.useState)([]);(0,Ve.ZC)((e=>{e!==q&&A.fromError("BLOCK_GET_ERROR",{},K,!0)}),[q,K,A]);const[ee,te]=(0,a.useState)({emailId:e,pageSize:1e3,page:1,projectId:x.p5,notEmbed:!0,name:null,type:null}),{isSuccess:ne,isError:ae,isLoading:re,isFetching:le}=(0,Pe.OD)({...ee,emailId:e,page:1},{skip:!e||T.length}),oe=(0,a.useMemo)((()=>{if(ne||T.length)return[...T].sort(((e,t)=>qe[e.type]-qe[t.type]))}),[ne,T]),[ie,se]=(0,a.useState)([]);(0,a.useEffect)((()=>{const e=new Set;if(T.length&&oe){for(const t of oe)t.type&&e.add(t.type);se(Array.from(e))}else se([])}),[T,oe]);const[ce,de]=(0,a.useState)({pageSize:1e3,page:1,notEmbed:!0,name:null,type:null}),{isSuccess:me,isError:pe,isLoading:ue,isFetching:he,data:ge=[]}=(0,Pe.kz)({...ce,page:1}),be=(0,a.useMemo)((()=>{if(ge.length)return[...ge].sort(((e,t)=>qe[e.type]-qe[t.type]))}),[ge]),[fe,Ce]=(0,a.useState)([]);(0,a.useEffect)((()=>{const e=new Set;if(be&&ge.length){for(const t of be)t.type&&e.add(t.type);Ce(Array.from(e))}}),[ge.length,be]);const ve=(0,a.useMemo)((()=>{const e=new Set;for(const t of J)e.add(t);for(const t of ie)e.add(t);for(const t of fe)e.add(t);return Array.from(e)}),[fe,ie,J]),Ee=e=>{z((t=>({...t,...e,page:1}))),te((t=>({...t,...e,page:1}))),de((t=>({...t,...e,page:1})))},ye=(0,a.useCallback)((()=>{R.querySelector(".blocks-search__result-wrapper.is_search")&&(R.querySelector(".blocks-search__result-wrapper").style.removeProperty("transition"),R.querySelector(".blocks-search__result-wrapper").style.opacity=0,R.querySelectorAll(".blocks-search__result-body").forEach((e=>e.style.removeProperty("height"))),R.querySelectorAll(".blocks-search__result-body").forEach((e=>{e.style.height=207*e.offsetHeight/660+"px"})),R.querySelector(".blocks-search__result-wrapper").style.transition="opacity 0.2s",R.querySelectorAll(".blocks-search__result-wrapper").forEach((e=>e.style.opacity=1)))}),[]);(0,a.useEffect)((()=>{he||ue||!me||"template"===t||(n?ye():r())}),[he,ue,me,ye,F.name,r,n,t]),(0,a.useEffect)((()=>{const e=new Set;if(W&&Y){for(const t of Y)t.type&&e.add(t.type);Q(Array.from(e))}}),[W,Y]);const _e=e=>{r(),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 Ae=null;const we=e=>{clearTimeout(Ae);let t=R.querySelector(".block-search__preview")?R.querySelector(".block-search__preview"):null,n=R.querySelector(".block-search__preview-title")?R.querySelector(".block-search__preview-title"):null,a=R.querySelector(".block-search__preview-content")?R.querySelector(".block-search__preview-content"):null;R.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),R.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=De('<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)},ke=()=>{let e=R.querySelector(".block-search__preview");e&&(Ae=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)((()=>{R.querySelectorAll(".blocks-search__result").forEach((e=>{e.style.display="block"}))}),[t]);const Ue=!(null!==G&&void 0!==G&&G.length)&&(!e||!(null!==T&&void 0!==T&&T.length))&&!(null!==ge&&void 0!==ge&&ge.length)&&(F.tags||F.name||F.type)&&!($||U);(0,a.useEffect)((()=>{$||U||r()}),[$,U,r]),(0,a.useEffect)((()=>{("common"===t||n)&&setTimeout(r,50)}),[G,r,t,n]);const Ge=e=>{L({maskClosable:!0,centered:!0,title:C("Are you sure you want to delete the \u201c","block")+e.title+f("\u201d block?"),icon:a.createElement(Te.A,null),okText:f("Yes"),cancelText:f("No"),onOk:()=>(e=>j.dispatch(Pe.VM.endpoints.deleteBlock.initiate(e.id)).then((t=>{t.error&&A.fromError("BLOCK_REMOVING_ERROR",(0,_.x_)(e),t.error),A.success({id:"BLOCK_REMOVING_SUCCESS",data:(0,_.x_)(e),message:f("The block \u201c")+t.data.title+C("\u201d was successfully removed.","block")}),X()})))(e)})},Xe=(e,t)=>`${e.pathname.split("emails")[0]}blocks/${t.id}`,Ke=e=>{let t=[{key:"Delete block",className:"blocks-search__result__menu-item",icon:a.createElement(Te.A,{style:{fontSize:"16px",margin:0}}),style:{color:b.colorError},onClick:()=>Ge(e)}];return!x.EW.isPlugin&&t.unshift({key:"Edit block",className:"blocks-search__result__menu-item",icon:a.createElement(Be.A,{style:{fontSize:"16px",margin:0}}),label:a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:Xe(S,e)}," ")}),t},Ye=e=>{let t="<tr"===e.html.substring(0,3)?document.createElement("table"):document.createElement("div");if(t.replaceChildren(...(0,Ne.$$)(e.html)),0!==Object.keys(P).length&&(t.querySelectorAll(".em-contrast-card").forEach((e=>{var t,n;null!==(t=P.cards)&&void 0!==t&&t.contrastBackgroundColor&&(e.getAttribute("bgcolor")?P.cards.contrastBackgroundColor?e.setAttribute("bgcolor",P.cards.contrastBackgroundColor):e.removeAttribute("bgcolor"):P.cards.contrastBackgroundColor?e.style.backgroundColor=P.cards.contrastBackgroundColor:e.style.removeProperty("background-color")),null!==(n=P.cards)&&void 0!==n&&n.contrastTextColor&&e.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach((e=>{if("#ffffff"!==Qe(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.cards.contrastTextColor};`);e.setAttribute("style",t)}}))})),t.querySelectorAll(".em-card").forEach((e=>{var t,n;null!==(t=P.cards)&&void 0!==t&&t.baseBackgroundColor&&(e.getAttribute("bgcolor")?P.cards.baseBackgroundColor?e.setAttribute("bgcolor",P.cards.baseBackgroundColor):e.removeAttribute("bgcolor"):P.cards.baseBackgroundColor?e.style.backgroundColor=P.cards.baseBackgroundColor:e.style.removeProperty("background-color")),null!==(n=P.cards)&&void 0!==n&&n.baseTextColor&&e.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach((e=>{if("#ffffff"!==Qe(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.cards.baseTextColor};`);e.setAttribute("style",t)}}))})),t.querySelectorAll(".em-card, .em-contrast-card").forEach((e=>{var t,n,a,r,l,o;null!==(t=P.cards)&&void 0!==t&&t.border&&tt({settings:{border:null===(o=P.cards)||void 0===o?void 0:o.border},elem:e});if(null!==(n=P.cards)&&void 0!==n&&null!==(a=n.borderRadius)&&void 0!==a&&a.all){var i,s,c,d;if(e.style.borderBottomLeftRadius&&"0px"!==e.style.borderBottomLeftRadius)e.style.borderBottomLeftRadius=(null===(i=P.cards)||void 0===i?void 0:i.borderRadius.all)+"px";if(e.style.borderBottomRightRadius&&"0px"!==e.style.borderBottomRightRadius)e.style.borderBottomRightRadius=(null===(s=P.cards)||void 0===s?void 0:s.borderRadius.all)+"px";if(e.style.borderTopLeftRadius&&"0px"!==e.style.borderTopLeftRadius)e.style.borderTopLeftRadius=(null===(c=P.cards)||void 0===c?void 0:c.borderRadius.all)+"px";if(e.style.borderTopRightRadius&&"0px"!==e.style.borderTopRightRadius)e.style.borderTopRightRadius=(null===(d=P.cards)||void 0===d?void 0:d.borderRadius.all)+"px"}else if(""===(null===(r=P.cards)||void 0===r||null===(l=r.borderRadius)||void 0===l?void 0:l.all))e.style.removeProperty("border-radius");else{var m,p,u,h,g,b,f,C,v,E,y,_,A,w,k,L,S,x,T,B;if(null!==(m=P.cards)&&void 0!==m&&null!==(p=m.borderRadius)&&void 0!==p&&p.topLeft&&e.style.borderTopLeftRadius&&"0px"!==e.style.borderTopLeftRadius)e.style.borderTopLeftRadius=(null===(S=P.cards)||void 0===S?void 0:S.borderRadius.topLeft)+"px";else""===(null===(u=P.cards)||void 0===u||null===(h=u.borderRadius)||void 0===h?void 0:h.topLeft)&&e.style.removeProperty("border-top-left-radius");if(null!==(g=P.cards)&&void 0!==g&&null!==(b=g.borderRadius)&&void 0!==b&&b.topRight&&e.style.borderTopRightRadius&&"0px"!==e.style.borderTopRightRadius)e.style.borderTopRightRadius=(null===(x=P.cards)||void 0===x?void 0:x.borderRadius.topRight)+"px";else""===(null===(f=P.cards)||void 0===f||null===(C=f.borderRadius)||void 0===C?void 0:C.topRight)&&e.style.removeProperty("border-top-right-radius");if(null!==(v=P.cards)&&void 0!==v&&null!==(E=v.borderRadius)&&void 0!==E&&E.bottomRight&&e.style.borderBottomRightRadius&&"0px"!==e.style.borderBottomRightRadius)e.style.borderBottomRightRadius=(null===(T=P.cards)||void 0===T?void 0:T.borderRadius.bottomRight)+"px";else""===(null===(y=P.cards)||void 0===y||null===(_=y.borderRadius)||void 0===_?void 0:_.bottomRight)&&e.style.removeProperty("border-bottom-right-radius");if(null!==(A=P.cards)&&void 0!==A&&null!==(w=A.borderRadius)&&void 0!==w&&w.bottomLeft&&e.style.borderBottomLeftRadius&&"0px"!==e.style.borderBottomLeftRadius)e.style.borderBottomLeftRadius=(null===(B=P.cards)||void 0===B?void 0:B.borderRadius.bottomLeft)+"px";else""===(null===(k=P.cards)||void 0===k||null===(L=k.borderRadius)||void 0===L?void 0:L.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=P.text.fontFamily;if(parseFloat(e.style.fontSize)>14&&(a=e.getAttribute("style").replace(/font-size:(\s+)?.*?px/,`font-size: ${P.text.fontSize}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${P.text.lineHeight}px`),e.setAttribute("style",a)),e.closest(".em-contrast-card, .em-card")||"#ffffff"===Qe(e.style.color).toLowerCase()||(a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.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: ${P.text.contrastColor};`),e.setAttribute("style",a)),"Safe Fonts"===r[0]?(e.style.fontFamily=r[1],Je({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,"")}`),et({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=P.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",P.text.paddingBottom)}}else if(!e.style.display&&parseFloat(e.style.fontSize)>=20&&"#eb3737"!==Qe(e.style.color).toLowerCase()){let n="",a=P.headings.fontFamily;parseFloat(e.style.fontSize)<40&&(n=e.getAttribute("style").replace(/font-size:(\s+)?.*?px/,`font-size: ${P.headings.fontSize}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${P.headings.lineHeight}px`),e.setAttribute("style",n)),e.closest(".em-contrast-card, .em-card")||"#ffffff"===Qe(e.style.color).toLowerCase()||(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.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: ${P.headings.contrastColor};`),e.setAttribute("style",n)),"Safe Fonts"===a[0]?(e.style.fontFamily=a[1],Je({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,"")}`),et({elem:t,fontFamilyArray:a}));let r="";if(r=P.headings.letterSpacing>0?e.style.letterSpacing?e.getAttribute("style").replace(/letter-spacing:(\s+)?.*?px/,`letter-spacing: ${P.headings.letterSpacing}px`):e.getAttribute("style")+` letter-spacing: ${P.headings.letterSpacing}px;`:e.getAttribute("style").replace(/(\s+)?letter-spacing:(\s+)?.*?px(;)?/,""),e.setAttribute("style",r),P.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(P.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=P.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",P.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=P.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",P.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: ${P.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(P.buttons.border).every((e=>null===e))){if(e.closest(".em-contrast-block")){if(P.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}/,`${P.buttons.contrastBackgroundColor}`)));e.closest("td").setAttribute("style",t),n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.buttons.contrastBackgroundColor};`),e.setAttribute("style",n)}}else if(P.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}/,`${P.buttons.backgroundColor}`)));e.closest("td").setAttribute("style",t),n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.buttons.backgroundColor};`),e.setAttribute("style",n)}}else for(const t in P.buttons.border)P.buttons.border[t]&&void 0!==P.buttons.border[t].color&&(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.buttons.border[t].color};`),e.setAttribute("style",n));else e.closest(".em-contrast-block")?P.buttons.contrastBackgroundColor&&(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.buttons.contrastBackgroundColor};`),e.setAttribute("style",n)):P.buttons.backgroundColor&&(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.buttons.backgroundColor};`),e.setAttribute("style",n));else if(n=e.closest(".em-contrast-block")?e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.buttons.contrastColor};`):e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.buttons.color};`),e.setAttribute("style",n),e.closest(".em-contrast-block"))if(P.buttons.contrastBackgroundColor){let t=e.closest("td").getAttribute("style").replace(/background-color:(\s+)?.*?;/,`background-color: ${P.buttons.contrastBackgroundColor};`);e.closest("td").setAttribute("style",t)}else e.closest("td").style.removeProperty("background-color");else if(P.buttons.backgroundColor){let t=e.closest("td").getAttribute("style").replace(/background-color:(\s+)?.*?;/,`background-color: ${P.buttons.backgroundColor};`);e.closest("td").setAttribute("style",t)}else e.closest("td").style.removeProperty("background-color");let a=P.buttons.fontFamily;"Safe Fonts"===a[0]?(e.style.fontFamily=a[1],Je({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,"")}`),et({elem:t,fontFamilyArray:a})),e.closest("td").setAttribute("align",P.buttons.textAlign);let r="";if(r=P.buttons.letterSpacing>0?e.style.letterSpacing?e.getAttribute("style").replace(/letter-spacing:(\s+)?.*?px/,`letter-spacing: ${P.buttons.letterSpacing}px`):e.getAttribute("style")+` letter-spacing: ${P.buttons.letterSpacing}px;`:e.getAttribute("style").replace(/(\s+)?letter-spacing:(\s+)?.*?px(;)?/,""),e.setAttribute("style",r),P.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(P.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=P.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",P.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=P.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",P.buttons.marginBottom)}P.buttons.padding.all&&(e.style.padding=P.buttons.padding.all+"px"),P.buttons.padding.top&&(e.style.paddingTop=P.buttons.padding.top+"px"),P.buttons.padding.right&&(e.style.paddingRight=P.buttons.padding.right+"px"),P.buttons.padding.bottom&&(e.style.paddingBottom=P.buttons.padding.bottom+"px"),P.buttons.padding.left&&(e.style.paddingLeft=P.buttons.padding.left+"px"),tt({settings:{border:P.buttons.border},elem:e.closest("td")}),nt({settings:{borderRadius:P.buttons.borderRadius},elem:e.closest("td")})}}else{let n=P.text.fontFamily;if("#1c52dc"===Qe(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.links.color};`);e.setAttribute("style",t)}else{let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.text.color};`);e.setAttribute("style",t)}if(e.closest(".em-contrast-block")){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${P.links.contrastColor};`);e.setAttribute("style",t)}let a="";a=P.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],Je({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,"")}`),et({elem:t,fontFamilyArray:n}))}})),t.querySelector('[em="block"]'))){var n,a;const e=t.querySelectorAll('[em="block"]');null!==(n=P.block)&&void 0!==n&&n.backgroundColor&&e.forEach((e=>{e.querySelectorAll(":scope > td").forEach((e=>{e.setAttribute("bgcolor",P.block.backgroundColor)}))})),null!==(a=P.block)&&void 0!==a&&a.padding&&e.forEach((e=>{e.querySelectorAll(":scope > td").forEach((e=>{e.style.paddingTop=P.block.padding.top+"px",e.style.paddingRight=P.block.padding.right+"px",e.style.paddingBottom=P.block.padding.bottom+"px",e.style.paddingLeft=P.block.padding.left+"px"}))}))}return"DIV"===t.tagName?(0,Me.uL)(t):(0,Me.uL)(t.querySelector("tbody"))},Je=e=>{e.elem.querySelectorAll("link[em-class]").forEach((t=>{e.elem.querySelector("."+t.getAttribute("em-class"))||t.remove()}))};function Qe(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 et=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@${at[e.fontFamilyArray[3]].indexOf("i")>-1?"1":"0"},${at[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]}', ${rt[e.fontFamilyArray[1]]}!important;`;r+=` font-weight: ${at[e.fontFamilyArray[3]].replaceAll("i","")}!important;`,at[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((()=>Je({elem:e.elem})),0)},tt=e=>{e.settings.border.all?(null!==e.settings.border.all.width?e.elem.style.borderWidth=e.settings.border.all.width+"px":e.elem.style.removeProperty("border-width"),e.elem.style.borderStyle=e.settings.border.all.style,e.elem.style.borderColor=e.settings.border.all.color):(e.settings.border.top&&(null!==e.settings.border.top.width?e.elem.style.borderTopWidth=e.settings.border.top.width+"px":e.elem.style.removeProperty("border-top-width"),e.elem.style.borderTopStyle=e.settings.border.top.style,e.elem.style.borderTopColor=e.settings.border.top.color),e.settings.border.right&&(null!==e.settings.border.right.width?e.elem.style.borderRightWidth=e.settings.border.right.width+"px":e.elem.style.removeProperty("border-right-width"),e.elem.style.borderRightStyle=e.settings.border.right.style,e.elem.style.borderRightColor=e.settings.border.right.color),e.settings.border.bottom&&(null!==e.settings.border.bottom.width?e.elem.style.borderBottomWidth=e.settings.border.bottom.width+"px":e.elem.style.removeProperty("border-bottom-width"),e.elem.style.borderBottomStyle=e.settings.border.bottom.style,e.elem.style.borderBottomColor=e.settings.border.bottom.color),e.settings.border.left&&(null!==e.settings.border.left.width?e.elem.style.borderLeftWidth=e.settings.border.left.width+"px":e.elem.style.removeProperty("border-left-width"),e.elem.style.borderLeftStyle=e.settings.border.left.style,e.elem.style.borderLeftColor=e.settings.border.left.color))},nt=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"))},at={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"},rt={"Sans Serif":"sans-serif",Serif:"serif"};return a.createElement("div",{className:w()("blocks-search",{is_search:n})},a.createElement(I.A,{className:w()("blocks-search__form",{is_search:n}),form:u,layout:"vertical",name:"blocks_search_form",initialValues:{...We},onValuesChange:e=>{const t=Object.keys(e)[0],n=u.getFieldsValue(!0);switch(t){case ze:const a=(0,He._q)(Z,x.YY).filter((n=>e[t].includes(n.name))).map((e=>e.id))||null;Ee({tags:a});break;case Fe:Ee({type:n.type||null});break;case Ze:B.current&&window.clearTimeout(B.current),B.current=window.setTimeout((function(){Ee({name:n.name||null})}),300)}},autoComplete:"off"},a.createElement(I.A.Item,{name:Ze},a.createElement(N.A,{placeholder:f("Search by title"),allowClear:!0,suffix:a.createElement(Ie.A,{className:"cards-search__search-icon, input-icon",style:{fontSize:"16px",cursor:"pointer"}})}))),(q||ae||pe)&&a.createElement(p.A,{message:f("Error"),description:f("Error when receiving data. Try again (reload page) or contact support."),type:"error",showIcon:!0}),n&&!Ue&&a.createElement("div",{className:"blocks-search__type-wrapper"},a.createElement("ul",null,a.createElement("li",{key:"search_All","data-type":"",className:"active",onClick:_e},f("All")),ve.map((e=>a.createElement("li",{"data-type":e,onClick:_e,key:"search_"+e},f(x.jg[e])))))),a.createElement("div",{ref:M,className:w()("blocks-search__result-wrapper",{is_search:n})},("project"===t||n)&&a.createElement(a.Fragment,null,!!J.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:_e},f("All")),J.map((e=>a.createElement("li",{key:"blocksSections_"+e,"data-type":e,onClick:_e},f(x.jg[e])))))),a.createElement("div",{className:w()("blocks-search__blocks-wrapper",{is_search:n}),ref:H},a.createElement("div",{className:"blocks-search__result-holder project"},!($||U)&&(null!==Y&&void 0!==Y&&Y.length?Y.map(((e,t)=>{const n=De('<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(Le.A,{key:"commenMenu",placement:"leftTop",menu:{items:Ke(e)},overlayStyle:{minWidth:"auto",paddingRight:6}},a.createElement("div",{className:"ant-card-hoverable blocks-search__result-body",draggable:!0,onClick:t=>c(t,e.html,"project"),onDragStart:t=>m(t,e.html,"project"),onMouseEnter:()=>we({html:e.html,title:e.title}),onMouseLeave:ke},a.createElement("div",{className:"blocks-search__result-html",dangerouslySetInnerHTML:{__html:n},style:{transform:"scale("+207/660+")"}}))))})):!(F.tags||F.name||F.type)&&W&&!($||U)&&!n&&a.createElement("div",{style:{padding:"10px 0 20px",display:"flex",flexDirection:"row",justifyContent:"space-between"}},a.createElement("div",{style:{width:"110%"}},a.createElement("h3",{style:{lineHeight:"1.2"}},f("You don`t have any saved blocks yet.")),f("To add a block from the dashboard click the"),' "',f("Save to Blocks button."),'" ',a.createElement("svg",{style:{position:"relative",top:"2px"},xmlns:"http://www.w3.org/2000/svg",focusable:"false",viewBox:"0 0 448 512",width:"1em",height:"1em",fill:"currentColor"},a.createElement("path",{d:"M433.9 129.9l-83.9-83.9A48 48 0 0 0 316.1 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V163.9a48 48 0 0 0 -14.1-33.9zM272 80v80H144V80h128zm122 352H54a6 6 0 0 1 -6-6V86a6 6 0 0 1 6-6h42v104c0 13.3 10.7 24 24 24h176c13.3 0 24-10.7 24-24V83.9l78.2 78.2a6 6 0 0 1 1.8 4.2V426a6 6 0 0 1 -6 6zM224 232c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 128c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z"})),a.createElement("br",null),a.createElement("br",null),f("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(Se.A,{justify:"left"},a.createElement(h.Ay,{type:"primary",onClick:()=>i(!0),style:{cursor:"pointer"}},f("Save all blocks")))),a.createElement("div",{style:{width:"80px",height:"200px"}},a.createElement("img",{src:Oe,style:{display:"block",width:80,position:"absolute",right:5}}))))),($||U)&&a.createElement(xe.A,{active:!0}))),n&&(null===G||void 0===G?void 0:G.length)>0&&(null===T||void 0===T?void 0:T.length)>0&&a.createElement(d.A,{className:"blocks-search__result-divider"}),("template"===t||n)&&a.createElement(a.Fragment,null,!!ie.length&&!n&&a.createElement("div",{className:"blocks-search__type-wrapper"},a.createElement("ul",null,a.createElement("li",{"data-type":"",className:"active",onClick:_e,key:"templateBlocksSections_All"},f("All")),ie.map((e=>a.createElement("li",{key:"templateBlocksSections_"+e,"data-type":e,onClick:_e},f(x.jg[e])))))),a.createElement("div",{className:w()("blocks-search__blocks-wrapper",{is_search:n}),ref:V},a.createElement("div",{className:"blocks-search__result-holder template"},T&&!re&&!le&&null!==oe&&void 0!==oe&&oe.length?a.createElement(a.Fragment,null,oe.map(((e,t)=>{const n=De('<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=>c(t,e.html,"template"),onDragStart:t=>m(t,e.html,"template"),onMouseEnter:()=>we({html:e.html,title:e.title}),onMouseLeave:()=>ke()},a.createElement("div",{className:"blocks-search__result-html",dangerouslySetInnerHTML:{__html:n},style:{transform:"scale("+207/660+")"}})))}))):!n&&!ue&&!le&&a.createElement("div",{className:"blocks-search__type",style:{padding:"10px 0 20px"}},f("No related blocks found."))," "),(re||le)&&a.createElement(xe.A,{active:!0}))),n&&(null===T||void 0===T?void 0:T.length)>0&&(null===ge||void 0===ge?void 0:ge.length)>0&&a.createElement(d.A,{className:"blocks-search__result-divider"}),("common"===t||n)&&a.createElement(a.Fragment,null,!(null===fe||void 0===fe||!fe.length)&&!n&&a.createElement("div",{className:"blocks-search__type-wrapper"},a.createElement("ul",null,a.createElement("li",{"data-type":"",className:"active",onClick:_e,key:"commonBlocksSections_All"},f("All")),fe.map((e=>a.createElement("li",{"data-type":e,onClick:_e,key:"commonBlocksSections_"+e},f(x.jg[e])))))),a.createElement("div",{className:w()("blocks-search__blocks-wrapper",{is_search:n}),ref:O},a.createElement("div",{className:"blocks-search__result-holder common"},me&&!(null===be||void 0===be||!be.length)&&!(he||ue)&&a.createElement(a.Fragment,null,be.map(((e,t)=>{const n=Ye({html:De('<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=>c(t,Ye({html:e.html}),"common"),onDragStart:t=>m(t,Ye({html:e.html}),"common"),onMouseEnter:()=>we({html:Ye({html:De('<table cellspacing="0" cellpadding="0" border="0" width="100%">'+e.html+"</table>")}),title:e.title}),onMouseLeave:()=>ke()},a.createElement("div",{className:"blocks-search__result-html",dangerouslySetInnerHTML:{__html:n},style:{transform:"scale("+207/660+")"}})))})))," "),(ue||he)&&a.createElement(xe.A,{active:!0}))),Ue&&a.createElement("div",{className:"blocks-search__type",style:{padding:"10px 0 20px"}},f("There are no blocks for this request."))))};var Ge=n(45185),Xe=n(58099);const Ke=`<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>`,Ye=`<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 Je=n(34021),Qe=n.n(Je),et=n(62315),tt=n.n(et),nt=n(67558),at=n.n(nt),rt=n(75995),lt=n.n(rt),ot=n(80465),it=n.n(ot),st=n(40845),ct=n.n(st),dt=n(66930),mt=n.n(dt);const pt=`<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>${[n.p+"static/media/tg.10f004529a98df9732b9.png",n.p+"static/media/yt.4ac57e55d158b40c7fc1.png",n.p+"static/media/vk.fe41df919f4e8718e0b3.png",n.p+"static/media/yd.c40d05dde64ef695fdf2.png",n.p+"static/media/tw.823a7736ac2d82815c71.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 ut=n(45848),ht=n.n(ut);const gt=new Date,bt=new Date(+gt+432e6).toISOString(),ft=-(new Date).getTimezoneOffset()/60,Ct=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=${bt}&timezone=${ft}&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=${bt}&timezone=${ft}&frames=20`)(e)}" border="0" alt="" style="display: block;" /></td></tr></table>`,vt=`<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 Et=n(74372),yt=n.n(Et),_t=n(12133),At=n.n(_t),wt=n(48956),kt=n(47014),Lt=n(84572);const St=()=>{var e,t;const n=(0,y.s9)(),{__:r}=n,l=(0,T.rD)(),o=(0,v.d4)(Lt.yN),c=(0,v.d4)(kt.B$),d=(0,v.d4)(kt.C1),m=(0,v.d4)(kt.B),p=(0,He.X7)(),u=(0,He.Qi)(),[h,g]=(0,a.useState)(!1),[b,f]=(0,a.useState)(0);let C=!(c||(null===(e=d.id)||void 0===e?void 0:e.toString())!==(null===o||void 0===o||null===(t=o.members)||void 0===t?void 0:t.owner.ID))&&!0;const E=[];l.elementImageEnabled&&E.push({title:r("Image"),icon:a.createElement(O.A,{icon:"ElementImage"}),html:Ke,className:"",name:"image"}),l.elementAIimageEnabled&&E.push({title:r("AI image"),icon:a.createElement(O.A,{icon:"ElementImageAI"}),html:Ye,className:"ai",name:"ai-image"}),l.elementTextEnabled&&E.push({title:r("Text"),icon:a.createElement(O.A,{icon:"ElementText"}),html:Qe()(n),className:"",name:"text"}),l.elementHeaderEnabled&&E.push({title:r("Header"),icon:a.createElement(O.A,{icon:"ElementTitle"}),html:tt()(n),className:"",name:"header"}),l.elementButtonEnabled&&E.push({title:r("Button"),icon:a.createElement(O.A,{icon:"ElementButton"}),html:at()(n),className:"",name:"button"}),l.elementSpacerEnabled&&E.push({title:r("Spacer"),icon:a.createElement(O.A,{icon:"ElementSpacer"}),html:mt(),className:"",name:"spacer"}),l.elementListULEnabled&&E.push({title:r("List UL"),icon:a.createElement(O.A,{icon:"ElementListUL"}),html:lt()(n),className:"",name:"list-ul"}),l.elementListOLEnabled&&E.push({title:r("List OL"),icon:a.createElement(O.A,{icon:"ElementListOL"}),html:it()(n),className:"",name:"list-ol"}),l.elementDividerEnabled&&E.push({title:r("Divider"),icon:a.createElement(O.A,{icon:"ElementDivider"}),html:ct(),className:"",name:"divider"}),l.elementSocialEnabled&&E.push({title:r("Social media"),icon:a.createElement(O.A,{icon:"ElementSocial"}),html:pt,className:"",name:"social"}),l.elementTableEnabled&&E.push({title:r("Table"),icon:a.createElement(O.A,{icon:"ElementTable"}),html:ht()(n),className:"",name:"table"}),l.elementCountdownEnabled&&E.push({title:r("Countdown"),icon:a.createElement(O.A,{icon:"ElementCountdown"}),html:Ct(m),className:"",name:"countdown"}),l.elementVideoEnabled&&E.push({title:r("Video"),icon:a.createElement(O.A,{icon:"ElementVideo"}),html:vt,className:"",name:"video"}),l.elementCarouselEnabled&&E.push({title:r("Carousel"),icon:a.createElement(O.A,{icon:"ElementCarousel"}),html:yt()(n),className:"amp",name:"amp-carousel"}),l.elementAccordionEnabled&&E.push({title:r("Accordion"),icon:a.createElement(O.A,{icon:"ElementAccordion"}),html:At()(n),className:"amp",name:"amp-accordion"}),l.elementFormEnabled&&E.push({title:r("Form"),icon:a.createElement(O.A,{icon:"ElementForm"}),html:null,className:"amp",name:"amp-form"});const _=e=>!C||"ai-image"!==e.name||(setTimeout((()=>{g(!0),f(2)}),1e3),!1);return a.createElement("div",{className:"atoms"},a.createElement("div",{className:"atoms__list"},a.createElement(s.A,{wrap:!0,style:{justifyContent:"flex-start",rowGap:10}},E&&E.map(((e,t)=>e.html?a.createElement("div",{className:"ant-card-hoverable atoms__item "+e.className,draggable:!0,onClick:t=>p(t,e.html),onDragStart:t=>u(t,e,_),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(i.A,{title:r("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(wt.A,{open:h,onCancel:()=>g(!1),initialSlide:b}))};var xt=n(54880),Tt=n(24075),Bt=n(16515);const It=({email:e,formSettings:t})=>{var n,r;const{__:l}=(0,y.s9)(),o=(0,je.cR)(),c=(0,v.wA)(),d=(0,Z.XW)(),p=e.hasOwnProperty("type")?x.IE:x.Tm,u=(0,v.d4)(j.qX),g=(0,v.d4)(ne.qX),b=(0,v.d4)(D.Tn),f=Object.keys(t).length>0?t.settings:p===x.Tm?u:g,C=(0,T.rD)();(0,a.useEffect)((()=>{const e=Object.values(x.bV);f.type&&e.includes(f.type)?"structure"!==f.activateSection?(o.querySelector(".email-pane .secondary-tabs .ant-tabs-content").scrollTop=0,c((0,D.Bp)(x.WU))):c((0,D.Bp)(x.mX)):"{}"!==JSON.stringify(f)&&c((0,D.Bp)(""))}),[f,c,o]);let E=[{label:a.createElement("span",{style:{textTransform:"capitalize"}},f.caption?f.caption:l("Edit element")),key:x.WU,forceRender:!0,className:"email-properties__collapse-panel",children:a.createElement(Tt.A,{className:"email-properties__collapse-panel",key:x.WU,selectedElement:f,formSettings:t,emailElementType:p,forceRender:!0})}];f.type&&!(null===(n=f.floatBlocks)||void 0===n||!n.items.length)>0&&!(null===(r=f.floatBlocks)||void 0===r||!r.items.filter((e=>!!e.width)).length)>0&&E.push({label:a.createElement(a.Fragment,null,l("Structure")),key:x.mX,forceRender:!0,className:"email-properties__collapse-panel",children:a.createElement(Bt.A,{selectedElement:f,emailElementType:p,isSelectedElement:!1})});const _=e=>{e.stopPropagation(),d({operation:x.Ru.SANDBOX_ELEMENT_PARENT_GET})};return a.createElement(a.Fragment,null,a.createElement(m.A,{className:w()("secondary-tabs email-properties__collapse",{"secondary-tabs_unset_scroll":b===x.nA||b===x.WU}),size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:b,onChange:e=>c((0,D.Bp)(e||"")),items:E}),((e,t,n)=>(C.switchDesktopMobilePropsEnabled||C.stepToOtherElementEnabled||C.deleteButtonEnabled)&&a.createElement(a.Fragment,null,a.createElement(s.A,{className:"selected-element-panel__extra-btn-container"},a.createElement(s.A,null,a.createElement(s.A,{size:5},C.deleteButtonEnabled&&a.createElement(i.A,{title:l("Remove element by Delete Key"),placement:"bottom"},a.createElement(h.Ay,{type:"text",onClick:e=>((e,t,n)=>{e.stopPropagation(),d({operation:x.Ru.SANDBOX_ELEMENT_REMOVE}),t(n===x.Tm?(0,j.A9)({}):(0,ne.A9)({}))})(e,t,n),icon:a.createElement(Te.A,null),disabled:!f.deletable})),C.stepToOtherElementEnabled&&a.createElement(i.A,{title:l("Up to parent element"),placement:"bottom"},a.createElement(h.Ay,{type:"text",onClick:_,icon:a.createElement(O.A,{icon:"GoToParent"}),disabled:!f.parent})))))))(f.parent,c,p),a.createElement(h.Ay,{type:"text",className:"ant-modal-close","aria-label":"Close",onClick:()=>{c((0,D.Fk)()),setTimeout((()=>{p===x.IE?c((0,ne.A9)({type:null})):c((0,j.A9)({type:null}))}),300),d({operation:x.Ru.SANDBOX_ELEMENT_ACTIVE_RESET})}},a.createElement(O.A,{icon:"Close"})))};var Mt=n(5553),Nt=n(83612),Rt=n(25232),Pt=n(58316),Ht=n(38826),Vt=n(30753),Ot=n(76047),jt=n(33932),Dt=n(70875),Zt=n(89613),Ft=n(90614),zt=n(86095),Wt=n(94779),qt=n(15626);const $t=e=>{const{__:t}=(0,y.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"))}]},{TextArea:Ut}=N.A,Gt=({messages:e,newEmailAiGeneratorRef:t})=>{const n=(0,zt.fn)(),{__:r,_n:l}=(0,y.s9)(),o=(0,v.wA)(),s=(0,a.useRef)(null),c=(0,T.rD)(),d=(0,_.hN)(),{projectId:m,emailId:p}=(0,E.g)(),u=(0,Zt.u)(),g=(0,Ft.ml)(qt.AZ.ON_LIMIT_ID),[b,f]=(0,a.useState)(null),[A,w]=(0,a.useState)(0),[k,L]=(0,a.useState)(!1),[S,B]=(0,a.useState)(""),[M,N]=(0,a.useState)([]),[R,P]=(0,a.useState)(!1),[H,V]=(0,a.useState)(!1),[D,F]=(0,a.useState)(null),[z,W]=(0,a.useState)(0),[q,$]=(0,a.useState)(null),U=(0,v.d4)(j.Hs),G=(0,v.d4)(kt.C1),X=(0,Z.QC)(),[K]=(0,jt.YG)(),Y=(0,Z.XW)(),[J,Q]=(0,jt.EQ)(),[ee,{reset:te}]=(0,Dt.MN)(),[ne,{data:ae=[]}]=(0,Dt.y4)(),re={cursor:k?"not-allowed":"default",pointerEvents:k?"none":"auto"};(0,a.useEffect)((()=>{q&&R&&(t.current=!0),R||(t.current=!1)}),[q,R]);const le=!(!c.limits||!c.counters)&&x.EW.isPlugin,{limits:oe}=x.EW.isPlugin&&c.limits?c:{limits:{ai_limit:0,ai_generator_limit:0}},{ai_limit:ie,ai_generator_limit:se}=oe,ce=le&&A>=ie&&ie>0,de=le&&z>=se&&se>0,me=(0,a.useCallback)((()=>{g.fire({name:"AiChatCount",count:A+1})}),[g,A]),pe=(0,a.useCallback)((()=>{g.fire({name:"AiGeneratorCount",count:z+1})}),[g,z]);(0,a.useEffect)((()=>{var e,t;le&&(w((null===c||void 0===c||null===(e=c.counters)||void 0===e?void 0:e.ai_counter)||0),W((null===c||void 0===c||null===(t=c.counters)||void 0===t?void 0:t.ai_generator_counter)||0))}),[c,le]),(0,a.useEffect)((()=>{$((()=>{var e;if(M.length<=0)return!1;return"email-generator"===(null===(e=M.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)})())}),[M]);const ue=(0,a.useCallback)((async()=>await X.sendAsync(x.Ru.SANDBOX_IS_EMAIL_EMPTY)),[X]),he=(0,a.useCallback)((()=>{var e;const t=null===(e=s.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)}),[s]),ge=(0,a.useCallback)((()=>{K({entity_id:p}).then((e=>{N(e.data.documents),he()}))}),[p,K,N,he]),be=(0,a.useCallback)((()=>{P(!0),L(!0),ee({task_id:b,entity_id:p,status:"started"}).then((()=>{ge()}))}),[p,ee,b,ge]),fe=(0,a.useCallback)((()=>{ee({task_id:b,entity_id:p,status:"completed"}).then((e=>{403===e.data.status&&te(),ge()})).catch((e=>{})),L(!1),P(!1)}),[p,ee,b,ge,te]);(0,a.useEffect)((()=>{let e;if(R){var t,a;const r=null===(t=ae[ae.length-1])||void 0===t||null===(a=t.processing)||void 0===a?void 0:a.email;if(r){let t=ae[ae.length-1].status;e=setInterval(n.setValue(r),500),0===t&&fe()}D&&(clearInterval(e),o((0,j.AJ)(r)),P(!1),F(!1))}return()=>{clearInterval(e)}}),[n,D,o,ae,R,U,p,b,ge,ee,Q,fe]),(0,a.useEffect)(he,[he]),(0,a.useEffect)((()=>{(null===e||void 0===e?void 0:e.length)>0&&N(e),Y({operation:x.Ru.SANDBOX_EMAIL_CONTENT_GET})}),[e,Y]),(0,a.useEffect)((()=>{const e=X.onInit((()=>{X.send({operation:x.Ru.SANDBOX_LOCK_EDIT,data:k}),X.send({operation:x.Ru.SANDBOX_LOCK_DISCUSS,value:k})}));return()=>e.dispose()}),[k,X]);const Ce=async()=>{if(S){const e=S.replaceAll(/\n/g,"<br>"),t={project_id:m,connection:"chat",entity_id:p,message:e,locale:G.locale.slice(0,2),subject:U.subject||"",preheader:U.preheader||"",textContent:(0,Wt.T5)(n.getValue())};if(q&&de||ce){d.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:r(q?"You have reached the limit of AI generator usage.":"You have reached the limit of AI chat usage.")}}),description:a.createElement("div",{dangerouslySetInnerHTML:{__html:r("Please upgrade your plan.")}}),placement:"bottomRight"});const e={data:{role:"assistant",message:r(q?"You have reached the limit of AI generator usage.":"You have reached the limit of AI chat usage.")}};N((t=>[...t,e]))}else{le&&(q&&z!==se?(pe(),W((e=>e+1))):A!==ie&&(me(),w((e=>e+1)))),u({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:G.first_name+" "+G.last_name,avatar_url:G.avatar_urls[24]}}},{data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}}];N((e=>[...e,...n])),J({body:t}).then((e=>{if(401===e.data.status)throw new Error(x.ff);if(e.data.task_id){let t=e.data.task_id;f(t),ne({id:t,setError:F}),ue().then((e=>{e?be():V(!0)}))}ge()})).catch((e=>{var t,n;d.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.code)||r("Error")}}),description:a.createElement("div",{dangerouslySetInnerHTML:{__html:(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.message)||r("Something went wrong.")}}),placement:"bottomRight"})}))}B("")}},ve=e=>{const t={data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}};N((e=>[...e,t]));const l={project_id:m,connection:"chat",entity_id:p,context:e,locale:G.locale.slice(0,2),subject:U.subject||"",preheader:U.preheader||"",textContent:(0,Wt.T5)(n.getValue())};if(le&&(q&&z!==se?(pe(),W((e=>e+1))):A!==ie&&(me(),w((e=>e+1)))),ce){d.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:r("You have reached the limit of AI chat usage.")}}),description:a.createElement("div",{dangerouslySetInnerHTML:{__html:r("Please upgrade your plan.")}}),placement:"bottomRight"});const e={data:{role:"assistant",message:r("You have reached the limit of AI chat usage.")}};N((t=>[...t,e]))}else u({event:"select",action:"select_ai_assistant_role",context:l.context,entity_id:l.entity_id,project_id:l.project_id}),J({body:l}).then((e=>{if(401===e.data.status)throw new Error(x.ff);ge()})).catch((e=>{var t,n;d.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.code)||"Error"}}),description:a.createElement("div",{dangerouslySetInnerHTML:{__html:(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.message)||"Something went wrong"}}),placement:"bottomRight"})}))},Ee=(0,a.useCallback)((e=>{const t={data:{role:"user",message:e,userInfo:{display_name:G.first_name+" "+G.last_name,avatar_url:G.avatar_urls[24]}}},l={data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}};N((e=>[...e,t,l]));const o={project_id:m,connection:"chat",entity_id:p,message:e,locale:G.locale.slice(0,2),subject:U.subject||"",preheader:U.preheader||"",textContent:(0,Wt.T5)(n.getValue())};if(de){d.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:r("You have reached the limit of AI generator usage.")}}),description:a.createElement("div",{dangerouslySetInnerHTML:{__html:r("Please upgrade your plan.")}}),placement:"bottomRight"});const e={data:{role:"assistant",message:r("You have reached the limit of AI chat usage.")}};N((t=>[...t,e]))}else J({body:o}).then((e=>{if(401===e.data.status)throw new Error(x.ff);if(e.data.task_id){let t=e.data.task_id;f(t),ne({id:t,setError:F}),ue().then((e=>{e?be():V(!0)}))}le&&(q&&z!==se?(pe(),W((e=>e+1))):A!==ie&&(me(),w((e=>e+1)))),ge()})).catch((e=>{var t,n;d.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.code)||"Error"}}),description:a.createElement("div",{dangerouslySetInnerHTML:{__html:(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.message)||"Something went wrong"}}),placement:"bottomRight"})}))}),[r,A,z,ue,be,ie,se,G,U,p,q,de,me,pe,le,n,d,m,J,ne,ge]);(0,a.useEffect)((()=>{const e=window.localStorage.getItem(x.V0.em_ai_settings);if(1===M.length&&"assistant"===M[0].data.role&&e&&p){const t=new He.jG,n={project_id:m,connection:"chat",entity_id:p,context:"email-generator",locale:G.locale.slice(0,2)};window.localStorage.removeItem(x.V0.em_ai_settings),J({body:n}).then((({data:n})=>{t.isDisposed()||Ee(e)}))}}),[M,Ee,p,G.locale,m,J]);const ye={replace:e=>{var t,n,l,o,s,c,m,p;if(null!==(t=e.attribs)&&void 0!==t&&null!==(n=t.class)&&void 0!==n&&n.split(" ").includes("ai-response-title"))return a.createElement(i.A,{placement:"left",title:r("Replace the title")},a.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;X.send(x.Ru.SANDBOX_SUBJECT_UPDATE,{value:e.children[0].data,guid:U.renderGuid,fromAI:!0}),d.success({id:"EMAIL_TITLE_UPDATED_FROM_AI",message:r("Title copied to email settings"),placement:"bottomRight",data:t})})(e)},a.createElement("span",{className:"ai-response-title"},(0,Rt.zd)(e.children,ye))));if(null!==(l=e.attribs)&&void 0!==l&&null!==(o=l.class)&&void 0!==o&&o.split(" ").includes("ai-response-preheader"))return a.createElement(i.A,{placement:"left",title:r("Replace the preheader")},a.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;X.send(x.Ru.SANDBOX_PREHEADER_UPDATE,{value:e.children[0].data,guid:U.renderGuid,fromAI:!0}),d.success({id:"EMAIL_TITLE_UPDATED_FROM_AI",message:r("Preheader copied to email settings"),placement:"bottomRight",data:t,duration:300})})(e)},a.createElement("span",{className:"ai-response-preheader"},(0,Rt.zd)(e.children,ye))));if(null!==(s=e.attribs)&&void 0!==s&&null!==(c=s.class)&&void 0!==c&&c.split(" ").includes("ai-response-copy"))return a.createElement(i.A,{placement:"left",title:r("Copy to clipboard")},a.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;navigator.clipboard.writeText(t).then((()=>{d.success({id:"TEXT_COPIED_TO_CLIPBOARD",message:r("Text copied to clipboard"),placement:"bottomRight",data:t})})).catch((e=>{}))})(e)},a.createElement("span",{className:"ai-response-copy"},(0,Rt.zd)(e.children,ye))));if(null!==(m=e.attribs)&&void 0!==m&&null!==(p=m.class)&&void 0!==p&&p.split(" ").includes("ai-response-user-message")){var u,h,g,b,f;const t=(null===(u=e.attribs)||void 0===u?void 0:u.data)||(null===(h=e.children)||void 0===h||null===(g=h[0])||void 0===g?void 0:g.data);return a.createElement("li",{className:null===(b=e.attribs)||void 0===b?void 0:b.class,data:null===(f=e.attribs)||void 0===f?void 0:f.data,onClick:()=>Ee(t)},(0,Rt.zd)(e.children,ye))}}};return a.createElement("div",{ref:s,className:"discuss-main"},M.length>0&&a.createElement(Mt.A,{onClick:e=>{"string"===typeof e.target.className&&e.target.className.includes("ai-response-change-context")&&(Q.isLoading||ve(e.target.role))},className:"comment-list",itemLayout:"horizontal",dataSource:M,renderItem:e=>{var t,n,o;return a.createElement("li",{key:e._id,id:e._id},a.createElement(Ot.A,{className:e.data.userInfo?"":"ai-comment",avatar:"assistant"===e.data.role?a.createElement(O.A,{icon:"ChatGpt",className:"anticon-robot",style:{color:"#ffffff",width:24,height:24,borderRadius:"50%",justifyContent:"center"}}):!e.data.userInfo||!e.data._modified&&x.EW.isPlugin?G.avatar_urls[24]||a.createElement(Pt.A,{style:{color:"#ffffff",width:24,height:24,borderRadius:"50%",justifyContent:"center"}}):e.data.userInfo.avatar_url,author:a.createElement("div",{style:re},"user"===(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.role)?x.EW.isPlugin?(null===G||void 0===G?void 0:G.username)||r("User"):null===(n=e.data)||void 0===n||null===(o=n.userInfo)||void 0===o?void 0:o.display_name:r("AI Assistant")),datetime:e._created?a.createElement("span",{dangerouslySetInnerHTML:{__html:(0,He.Yq)((0,Nt.A)(e._created),l,!0)}}):null,content:e.data.isLoading?a.createElement("div",{className:"spin"},a.createElement(Ht.A,{style:{fontSize:24},spin:!0})):a.createElement("div",{style:re},(0,Rt.Ay)(e.data.message,ye))}))}}),le&&(q?a.createElement(Vt.A,{text:r("mail generator"),counter:z,limits:se,wrapperStyles:{marginTop:-25}}):a.createElement(Vt.A,{text:r("messeges"),counter:A,limits:ie,wrapperStyles:{marginTop:-25}})),a.createElement(I.A,{onFinish:Ce,className:"addMode"},a.createElement(I.A.Item,{style:{marginBottom:10}},a.createElement(Ut,{disabled:k,value:S,onChange:e=>B(e.target.value),rows:4,placeholder:r("Type your request"),className:"textarea-comment",onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&Ce(),spellCheck:"false"})),a.createElement(I.A.Item,null,a.createElement(h.Ay,{disabled:Q.isLoading||k,type:"default",style:{background:"var(--colorInfo)",color:"#ffffff"},className:"button-target"},a.createElement(Le.A,{placement:"top",disabled:k,key:"Export",arrow:{pointAtCenter:!0},menu:{items:$t(ve)}},a.createElement("div",{disabled:k,style:{margin:0,padding:0}},a.createElement(O.A,{icon:"ChatGpt"}),r("Role")))),a.createElement(h.Ay,{disabled:Q.isLoading||k,className:"button-add",type:"primary",htmlType:"submit"},r("Send")," ",a.createElement(O.A,{icon:"SendOutlined"})))),a.createElement(C.A,{title:r("Warning"),centered:!0,open:H,onOk:()=>{be(),V(!1)},onCancel:()=>{fe(),V(!1)}},a.createElement("p",null,r("The current template will be changed to the generated one, are you sure about this?"))))};var Xt=n(66079),Kt=n(1753),Yt=n(10148),Jt=n(27805),Qt=n(85897),en=n(48300);const tn=({elementPath:e})=>{const{_x:t}=(0,y.s9)(),n=(0,v.wA)(),r=(0,Z.QC)(),l=(0,a.useCallback)((e=>{r.send({operation:x.Ru.SANDBOX_ELEMENT_ACTIVE_SET,index:e})}),[r]),o=(0,a.useCallback)((()=>{n((0,D.PM)(x.rY)),r.send({operation:x.Ru.SANDBOX_LOCK_EDIT,data:!1}),r.send({operation:x.Ru.SANDBOX_ELEMENT_ACTIVE_RESET})}),[r,n]),i={title:a.createElement("span",{onClick:o},a.createElement(O.A,{icon:"Email"})," ",t("Email","letter"))},[s,c]=(0,a.useState)([i]),d=(0,a.useCallback)((e=>{r.send({operation:x.Ru.SANDBOX_ELEMENT_HOVER_SET,index:e})}),[r]),m=(0,a.useCallback)(((e,t)=>{return a.createElement("span",{className:e.className,onClick:()=>{l(t)},onMouseOver:()=>{d(t)}},(n=e.className).includes("em-element-path-item-text")?a.createElement(O.A,{icon:"ElementText"}):n.includes("em-element-path-item-image")?a.createElement(O.A,{icon:"ElementImage"}):n.includes("em-element-path-item-link")?a.createElement(en.A,null):n.includes("em-element-path-item-atom")?a.createElement(O.A,{icon:"Atom"}):n.includes("em-element-path-item-column")?a.createElement(O.A,{icon:"Column"}):n.includes("em-element-path-item-block")?a.createElement(O.A,{icon:"Block"}):n.includes("em-element-path-item-group")?a.createElement(O.A,{icon:"Group"}):n.includes("em-element-path-item-button")?a.createElement(O.A,{icon:"Button"}):n.includes("em-element-path-item-table")?a.createElement(O.A,{icon:"Table"}):n.includes("em-element-path-item-amp")?a.createElement(O.A,{icon:"AMP"}):void 0," ",e.title);var n}),[l,d]);return(0,a.useEffect)((()=>{if(e){const n=e.map(((e,t)=>({title:m(e,t)})));c([{title:a.createElement("span",{onClick:o},a.createElement(O.A,{icon:"Email"})," ",t("Email","letter"))},...n])}}),[e,m,o,t]),a.createElement(a.Fragment,null,a.createElement(Qt.A,{items:s,type:"separator",separator:""}))};var nn=n(53821),an=n(8111),rn=n(16390),ln=n(23424),on=n(38540),sn=n(15812),cn=n(78915),dn=n(62093),mn=n(96734),pn=n(37507),un=n(14038),hn=n(48122);const gn=(e,t)=>a.createElement(t,Object.assign({className:"email-pane__tab-bar"},e)),{Content:bn}=r.A,{useToken:fn}=l.A,Cn=(0,a.memo)((e=>a.createElement(Gt,e))),vn=(0,a.memo)((e=>a.createElement(ke,e))),En=(0,a.memo)((e=>a.createElement(Ue,e))),yn=(0,a.memo)((e=>a.createElement(Kt.A,e))),_n=(0,a.memo)((0,a.forwardRef)(((e,t)=>a.createElement(Xt.A,Object.assign({},e,{ref:t}))))),An=(0,a.memo)((e=>a.createElement(St,e))),wn=(0,a.memo)((e=>a.createElement(B,e))),kn=(0,a.memo)((e=>a.createElement(Yt.A,e))),Ln=({emailElement:e,isSuccess:t,setIsCollaborationEditor:n,isShowAddAllBlocksModal:l,triggerOpenSavedBlocksTab:A,setIsShowAddAllBlocksModal:L})=>{var S,B,I,M,N;const{__:R,_x:P}=(0,y.s9)(),H=(0,Z.QC)(),{emailId:V,blockId:F,projectId:z}=(0,E.g)(),W=(0,v.wA)(),{modal:q}=o.A.useApp(),$=(0,T.rD)(),{token:U}=fn(),G=(0,_.hN)(),X=(0,mn.p)(),K=(0,v.d4)(D.B),Y=(0,v.d4)(kt.C1),J=(0,v.d4)(kt.B$),Q=(0,v.d4)(ln.cL),ee=(0,v.d4)(D.NQ),te=(0,v.d4)(j.qX),ae=(0,v.d4)(ne.qX),re=(0,v.d4)(D.Fv),le=(0,v.d4)(D.yy),oe=(0,v.d4)(sn.D2),ie=(0,v.d4)(sn.jr),se=(0,v.d4)(sn.hc),ce=(0,v.d4)(D.Tn),[de]=(0,Dt.Ll)(),[me,pe]=(0,a.useState)(!1),[ue,he]=(0,a.useState)(),[ge,be]=(0,a.useState)($.defaultBuildPanel||"empty"),[fe,Ce]=(0,a.useState)("empty"),[ve,Ee]=(0,a.useState)(!1),[ye,_e]=(0,a.useState)([]),[Ae,we]=(0,a.useState)(!1),[ke,Le]=(0,a.useState)([]),Se=(0,v.d4)(Lt.yN),[xe,Te]=(0,a.useState)(!1),Be=(0,je.cR)();let Ie=!J&&(null===(S=Y.id)||void 0===S?void 0:S.toString())===(null===Se||void 0===Se||null===(B=Se.members)||void 0===B?void 0:B.owner.ID)&&!0;const Me=!x.EW.isPlugin||((null===$||void 0===$?void 0:$.configSwither)||!1);(0,a.useEffect)((()=>{W((0,D.sy)())}),[W]),(0,a.useEffect)((()=>{const e=window.localStorage.getItem(x.V0.em_active_tab);e&&W((0,D.PM)(e))}),[X,W]);const Ne=V||F,Re=e.hasOwnProperty("type")?x.IE:x.Tm,Pe=Re===x.Tm?te:ae,[Ve,Oe]=(0,a.useState)({}),De=(0,a.useRef)(null),Ze=(0,a.useRef)(),Fe=(0,a.useRef)(),ze=(0,a.useRef)(),We=(0,a.useRef)(),qe=(0,a.useRef)(),$e=(0,a.useRef)(null),Ue=(0,a.useRef)(!1),[Ke,Ye]=(0,a.useState)(!1),[Je,Qe]=(0,a.useState)(!1),[et]=(0,cn.b9)(),[tt,nt]=(0,a.useState)(!1),[at,rt]=(0,a.useState)(0),[lt,ot]=(0,a.useState)(!1),it=x.EW.isPlugin?!!$.configSwither&&("pro"===localStorage.getItem("configSwither")||"editor"!==localStorage.getItem("configSwither")&&"pro"===$.mode):"pro"===Y.email_builder_config||"simple"===Y.email_builder_config,st=(0,a.useCallback)((()=>{clearTimeout($e.current);const e=".blocks-search__result-holder";Be.querySelector(e)&&(oe||ie||se)&&(Be.querySelector(e).style.removeProperty("transition"),Be.querySelector(e).style.opacity=0,Be.querySelectorAll(".blocks-search__result-body").forEach((e=>e.style.removeProperty("height"))),$e.current=setTimeout((()=>{Be.querySelectorAll(".blocks-search__result-body").forEach((e=>{e.style.height=207*e.getBoundingClientRect().height/660+"px"})),Be.querySelector(e)&&(Be.querySelector(e).style.transition="opacity 0.2s",Be.querySelectorAll(e).forEach((e=>e.style.opacity=1)))}),200))}),[ie,oe,se]),ct=(0,a.useCallback)((e=>{setTimeout((()=>{Ye(e.target.closest(".desktop_view")),Qe(e.target.closest(".mobile_view"))}),100)}));(0,a.useEffect)((()=>{const e=(0,un.t)(Be,"mouseover",ct);return()=>{e.dispose()}}),[Be,ct]),(0,a.useEffect)((()=>{W((0,D.wr)(me?x.ND:x.Vp))}),[me,W]),(0,a.useEffect)((()=>{"function"===typeof n&&(ke.length>0?n(!0):n(!1))}),[ke]);const[dt]=(0,jt.EQ)(),{data:mt={},refetch:pt,status:ut}=(0,jt.gb)({entity_id:Ne},{skip:!Ne}),[ht,gt]=(0,a.useState)([]),[bt,ft]=(0,a.useState)(""!==$.defaultBuildPanel?x.nA:x.Jy),[Ct,vt]=(0,a.useState)(null),Et=(0,a.useCallback)((()=>{var e;const t=null===(e=Fe.current)||void 0===e?void 0:e.getBoundingClientRect(),n=null===ue||void 0===ue?void 0:ue.getBoundingClientRect();H.send({operation:x.Ru.SANDBOX_WINDOW_CHARACTERISTIC,settings:{iframeOffsetTop:re&&"bottom"!==le?0:30,scrollTop:-(null===t||void 0===t?void 0:t.top)+(null===n||void 0===n?void 0:n.top)+30,innerHeight:window.innerHeight,previewHeight:null===n||void 0===n?void 0:n.height,mode:re&&"bottom"!==le?"code":"default"}})}),[le,re,ue,H]),yt=t&&e,_t=(0,a.useCallback)((e=>{const t=window.navigator.platform.match("Mac");$.codeEnabled&&$.codeSideEnabled&&e.altKey&&88===e.keyCode&&(W((0,D.vs)()),Ie&&(nt(!0),rt(1))),((t?e.metaKey:e.ctrlKey)&&e.shiftKey&&76===e.keyCode||(t?e.metaKey:e.ctrlKey)&&e.shiftKey&&69===e.keyCode||(t?e.metaKey:e.ctrlKey)&&e.shiftKey&&82===e.keyCode)&&e.preventDefault()}),[W,$.codeEnabled,Ie,$.codeSideEnabled]),At=(0,a.useCallback)((t=>{document.querySelector(".easylogic-colorpicker")||Be.querySelector(".easylogic-colorpicker")||t.target.closest(".email-pane__collapse-wrapper")||t.target.closest(".selected-element-panel__columns-settings__controls__column__remove")||t.target.closest(".email-preview__content-col_main")||t.target.closest(".email-preview-menu")||t.target.closest(".monaco-editor")||t.target.closest(".main__pane-close-btn")||t.target.closest(".main__pane-trigger")||t.target.closest(".ant-modal-wrap")||t.target.closest(".email-pane__sizes")||t.target.closest(".ant-input-clear-icon")||Ct||t.target.closest(".email-preview-menu__history")||t.target.closest(".selected-element-panel-content")||t.target.closest(".toggle_view")||t.target.closest(".upload-bg-image__menu")||t.target.closest(".email-pane__paths")||t.target.closest(".ant-tabs-extra-content")||t.target.closest(".anticon-delete")||Q===x.lx.UPLOAD_IMAGE_MODAL||Q===x.lx.UPLOAD_IMAGE_MODAL_AI||Q===x.lx.UPLOAD_IMAGE_MODAL_UPLOAD||Q===x.lx.UPLOAD_IMAGE_MODAL_EDIT||Q===x.lx.IMAGE_EDITOR_MODAL||Q===x.lx.UPLOAD_BACKGROUND_MODAL||(K===x.yI&&(W((0,D.Fk)()),H.send({operation:x.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),_e([])),W((0,D.mi)(!0)),H.send({operation:x.Ru.SANDBOX_LOCK_EDIT,data:!1}),setTimeout((()=>{e.type?W((0,ne.A9)({type:null})):W((0,j.A9)({type:null}))}),300)),vt(null)}),[W,e.type,Q,Ct,K,H]),[St,Tt]=(0,a.useState)(!0),{data:Bt=[],refetch:Mt}=(0,an.Cf)(Ne,{skip:!Ne}),[Nt,Rt]=(0,a.useState)(""),[Pt,Ht]=(0,a.useState)("");(0,a.useEffect)((()=>{Ne&&Mt()}),[K,Ne,Mt]),(0,a.useEffect)((()=>{Ne&&!Object.keys(mt).length&&"fulfilled"===ut&&pt()}),[K,Ne,pt,mt,ut]),(0,a.useEffect)((()=>{var e;const t=new He.jG,n=window.localStorage.getItem(x.V0.em_active_tab);if(0===(null===mt||void 0===mt?void 0:mt.totalCount)&&"pending"!==ut){const e={project_id:z,connection:"chat",entity_id:Ne,context:"default",locale:Y.locale.slice(0,2)};n||dt({body:e}).then((()=>{t.isDisposed()||"fulfilled"===ut&&pt()}))}const a={data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}};var r,l;(null===mt||void 0===mt||null===(e=mt.documents)||void 0===e?void 0:e.length)>0?(window.localStorage.removeItem(x.V0.em_active_tab),gt(null===mt||void 0===mt?void 0:mt.documents),null!==mt&&void 0!==mt&&null!==(r=mt.documents[(null===mt||void 0===mt||null===(l=mt.documents)||void 0===l?void 0:l.length)-1].data)&&void 0!==r&&r.userInfo&>([...null===mt||void 0===mt?void 0:mt.documents,a])):n||gt([a]);return()=>t.dispose()}),[Ne,Y.locale,null===mt||void 0===mt?void 0:mt.totalCount,null===mt||void 0===mt?void 0:mt.documents,z,pt,dt,ut]),(0,a.useEffect)((()=>{Oe({}),W(Re===x.Tm?(0,j.A9)({}):(0,ne.A9)({}))}),[W,Re]);const Vt=(0,a.useCallback)((e=>{W((0,j.G_)(e))}),[W]),Ot=(0,a.useCallback)((e=>{W((0,ne.Dz)(e))}),[W]),Zt=(0,a.useCallback)((e=>{W(Re===x.Tm?(0,j.A9)(e):(0,ne.A9)(e))}),[W,Re]);(0,a.useEffect)((()=>{const e=We.current,t=ze.current;he(re?t:e)}),[re,le]);const Ft=(0,a.useCallback)((e=>{be(e),"search"===e?Ee(!0):(Ee(!1),Ce(e)),setTimeout(st,50)}),[st]),zt=(0,a.useCallback)((e=>{const t=e.data.operation,n=e.data,a=e.data.action;if(t===x.Ru.APPLICATION_SCROLL_TO&&setTimeout((()=>{var t;null===(t=ze.current)||void 0===t||t.scrollTo({top:e.data.settings.value,behavior:"smooth"})}),100),t===x.Ru.APPLICATION_PREVIEW_ALERT_SHOW&&Te(n.settings.show),t===x.Ru.APPLICATION_ACTION&&"toggle_editor"===a&&W((0,D.vs)()),t===x.Ru.APPLICATION_IFRAME_SET_HEIGHT&&(Be.querySelector(".email-pane__iframe").style.height=n.settings.height+"px"),t===x.Ru.APPLICATION_EMAIL_SETTINGS_SET){let e=Object.assign({},n.settings);delete e.preheader;Object.values(e).every((e=>!e))?(W((0,j.M7)(!0)),W((0,D.Fk)())):Vt(n.settings),n.settings.noBlocks,W((0,D.wW)(n.settings.responsive)),Tt(e.structuresMedia)}if(t===x.Ru.APPLICATION_BLOCK_SETTINGS_SET){Object.values(n.settings).every((e=>!e))?(W((0,ne.rc)(!0)),W((0,D.Fk)())):(Ot(n.settings),Tt(n.settings.structuresMedia))}if(t===x.Ru.APPLICATION_ELEMENT_SETTINGS_SET){var r,l;const e=Object.values(x.bV),t=!!n.tab||!e.includes(n.type);var o;if(t&&K===x.yI&&W((0,D.Fk)()),n.type===x.bV.EMPTY_TABLE||n.type===x.bV.EMPTY_TD?(W((0,D.PM)(x.Bv)),n.type===x.bV.EMPTY_TABLE?(ft(x.nA),n.tab?Ft(n.tab):Ft("common")):n.type===x.bV.EMPTY_TD&&ft(x.Jy)):n.type&&K!==x.yI&&W((0,D.PM)(x.yI)),n.type===x.bV.CAROUSEL||n.type===x.bV.ACCORDION?(Oe({settings:{...n.settings,type:t?null:n.type,caption:n.caption,parent:t?null:n.settings.parent},type:t?null:n.type,parent:t?null:n.settings.parent,caption:n.caption}),Zt({})):(Zt({...n.settings,type:t?null:n.type,parent:t?null:n.settings.parent,caption:n.caption}),Oe({})),(null===(r=n.settings)||void 0===r||null===(l=r.path)||void 0===l?void 0:l.length)>0)_e(null===(o=n.settings)||void 0===o?void 0:o.path)}t===x.Ru.APPLICATION_ELEMENT_SETTINGS_CLOSE&&W((0,D.Fk)())}),[W,Vt,Ot,Zt,K,Ft,Be]);(0,a.useEffect)((()=>{k.gV({id:null===Y||void 0===Y?void 0:Y.id,email:null===Y||void 0===Y?void 0:Y.email,username:null===Y||void 0===Y?void 0:Y.name})}),[Y]),(0,a.useEffect)((()=>{Y.email_builder_config&&W((0,rn.EV)(Y.email_builder_config))}),[Y.email_builder_config,W]),(0,a.useEffect)((()=>{var e,t;if(re&&Ie&&W((0,D.vs)()),x.EW.isPlugin){if($.configSwither){let e=localStorage.getItem("configSwither")||$.mode||"editor";localStorage.setItem("configSwither",e),W((0,rn.EV)(e))}}else J||(null===(e=Y.id)||void 0===e?void 0:e.toString())!==(null===Se||void 0===Se||null===(t=Se.members)||void 0===t?void 0:t.owner.ID)?"simple"===$.mode&&(et({email_builder_config:"pro"}),W((0,rn.EV)("pro"))):(et({email_builder_config:"simple"}),W((0,rn.EV)("simple")))}),[]);const Wt=e=>{var t,n;J||(null===(t=Y.id)||void 0===t||t.toString(),null===Se||void 0===Se||null===(n=Se.members)||void 0===n||n.owner.ID),setTimeout((()=>{var t,n;if(J||(null===(t=Y.id)||void 0===t?void 0:t.toString())!==(null===Se||void 0===Se||null===(n=Se.members)||void 0===n?void 0:n.owner.ID)){let t=e?"pro":"editor";et({email_builder_config:t}),localStorage.setItem("configSwither",t),W((0,rn.EV)(t))}else W((0,rn.EV)("pro")),ot(!0),nt(!0)}),200)};(0,dn.A)(zt);const qt=(0,a.useRef)(),[$t,Ut]=(0,a.useState)("unset"),Gt=(0,a.useCallback)((()=>{var e,t;let n;const a=null===(e=ze.current)||void 0===e?void 0:e.getBoundingClientRect();if((null===qt||void 0===qt||null===(t=qt.current)||void 0===t?void 0:t.getBoundingClientRect().top)>=0){const e=a&&Math.round(a&&(null===a||void 0===a?void 0:a.height)-30);qt.current.style.height=`${e}px`,Ut(e-30)}n&&window.clearTimeout(n),n=window.setTimeout((function(){H.isInited()&&Et()}),100)}),[Et,H]);(0,a.useEffect)((()=>(K===x.z$?De.current=setInterval((()=>{pt({entity_id:Ne})}),5e3):clearInterval(De.current),clearInterval(De.current))),[Ne,pt,K]);const Xt=window.localStorage.getItem(x.V0.em_code_mode_pane_sizes),[Kt,Yt]=(0,a.useState)(+Xt||50),Qt=()=>{let e=Be.querySelector(".block-search__preview");e&&(e.style.opacity="0",e.style.transform="translateX(-99%)",setTimeout((function(){e.remove()}),300))};let en=[];$.blocksEmptyEnabled&&en.push({label:a.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:R("Empty blocks")},a.createElement("div",{style:{paddingTop:4}},a.createElement(O.A,{icon:"BorderOuterOutlined",style:{fontSize:18}}))),value:"empty"}),$.blocksSavedEnabled&&en.push({label:a.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:R("Saved blocks")},a.createElement("div",{style:{paddingTop:4}},a.createElement(O.A,{icon:"AppstoreAddOutlined",style:{fontSize:18}}))),value:"project"}),$.blocksCommonEnabled&&en.push({label:a.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:R("Common blocks")},a.createElement("div",{style:{paddingTop:4}},a.createElement(O.A,{icon:"AppstoreOutlined",style:{fontSize:18}}))),value:"common"}),$.blocksTemplateEnabled&&en.push({label:a.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:R("Template blocks")},a.createElement("div",{style:{paddingTop:4}},a.createElement(O.A,{icon:"BuildOutlined",style:{fontSize:18}}))),value:"template"}),$.blocksSearchEnabled&&en.push({label:a.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:R("Blocks search")},a.createElement("div",{style:{paddingTop:4}},a.createElement(O.A,{icon:"SearchOutlined",style:{fontSize:18}}))),value:"search"});let Ln=[{label:a.createElement("div",{className:"email-pane__tab"},R("Elements")),key:x.Jy,forceRender:!0,className:"email-pane__collapse-panel email-pane__atoms",children:a.createElement(An,null)},{label:a.createElement("div",{className:"email-pane__tab"},R("Blocks")),key:x.nA,forceRender:!0,className:"email-pane__collapse-panel email-pane__blocks-search",style:{height:$.blocksSectionsShow?"calc(100% - 44px)":"100%"},children:a.createElement(a.Fragment,null,$.blocksSectionsShow&&a.createElement(a.Fragment,null,a.createElement(s.A.Compact,{block:!0},!ve&&a.createElement(c.A,{block:!0,style:{width:"100%",marginTop:24},onChange:Ft,value:ge,options:en}),ve&&a.createElement("div",{style:{width:"100%",height:36}}),ve&&a.createElement("div",{style:{width:36,textAlign:"right",marginTop:22}},a.createElement(O.A,{icon:"CloseOutlined",style:{padding:"0 2px 0",cursor:"pointer"},onClick:()=>{Ee(!1),be(fe)}}))),a.createElement("div",{className:"blocks-search__divider-wrapper",style:{marginTop:ve?28:12}},a.createElement(d.A,{className:"blocks-search__divider"}))),a.createElement("div",{style:{height:"100%"}},a.createElement("div",{className:"blocks-search__empty-shadow",style:{display:"empty"!==ge||ve?"none":"block"}},St?a.createElement(Xe.A,null):a.createElement(Ge.A,null)),a.createElement("div",{style:{height:$.blocksSectionsShow?"calc(100% - 24px)":"100%",display:"empty"!==ge||ve?"block":"none"}},a.createElement(En,{parentEmailId:null===e||void 0===e?void 0:e.parent_email,blocksTab:ge,search:ve,reloadBlockScreens:st,email:e,setIsShowAddAllBlocksModal:L}))))}],Sn=[{disabled:tt,key:x.yI,style:{height:$.sidePanelFloating?re&&"bottom"===le?$t:"calc(100% - 30px)":"100%"},className:"em-analytics__email-tab-properties",children:a.createElement(a.Fragment,null,(!(null===Pe||void 0===Pe||!Pe.type)||!(null===Ve||void 0===Ve||!Ve.type))&&a.createElement("div",{className:w()("email-pane__collapse-wrapper",{"mobile-view":me,"mobile-properties":me&&ce!==x.mX}),onMouseLeave:Qt},a.createElement(It,{email:e,formSettings:Ve})))},{disabled:tt,key:x.Vv,style:{height:$.sidePanelFloating?re&&"bottom"===le?$t:"calc(100% - 30px)":"100%"},className:"em-analytics__email-tab-history",children:yt&&a.createElement("div",{className:"email-pane__collapse-wrapper",onMouseLeave:Qt},a.createElement(kn,{setCollapsedHistory:()=>W((0,D.mi)(!0)),emailElement:yt}))},{key:x.rb,className:"em-analytics__email-tab-properties"},{disabled:tt,label:a.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"left",title:P("Build","tab")},a.createElement(O.A,{"data-testid":"contentIcon",icon:"PlusCircleOutlined"})),key:x.Bv,className:"em-analytics__email-tab-build",style:{height:$.sidePanelFloating?re&&"bottom"===le?$t:"calc(100% - 30px)":"100%",overflow:"hidden"},children:a.createElement("div",{className:w()("email-pane__collapse-wrapper",{"email-pane__collapse-wrapper_no-topleft-radius":K===x.Bv||!K}),onMouseLeave:Qt},a.createElement(m.A,{className:w()("secondary-tabs email-pane__collapse",{"secondary-tabs_unset_scroll":bt===x.nA}),size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:bt,onChange:e=>ft(e||""),items:Ln}))},{disabled:tt,label:a.createElement(i.A,{overlayClassName:"email-pane__tooltip",overlayInnerStyle:{border:"2px dot-dash red"},overlayStyle:{border:"2px dot-dash red"},placement:"left",title:P("Styles","tab")},a.createElement(a.Fragment,null,a.createElement(O.A,{"data-testid":"stylesIcon",icon:"Styles"}))),key:x.rY,className:"em-analytics__email-tab-styles",style:{height:$.sidePanelFloating?re&&"bottom"===le?$t:"calc(100% - 30px)":"100%",overflow:"hidden"},children:a.createElement("div",{className:"email-pane__collapse-wrapper"},a.createElement(vn,{email:e}))}];$.commentsEnabled&&Sn.push({disabled:tt,label:a.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"left",title:P("Discuss","tab")},a.createElement(O.A,{"data-testid":"commentsIcon",icon:"CommentOutlined"}),Ie&&a.createElement(O.A,{icon:"Lock",className:"free-mode-firewall-icon free-mode-firewall-icon_emailpane"}),!!Bt.length&&a.createElement("span",{className:"email-pane__comment-counter"},Bt.filter((e=>"deleted"!==e.comment_status)).length)),key:x.hc,className:"email-pane__tab-discuss em-analytics__email-tab-discuss",style:{height:$.sidePanelFloating?re&&"bottom"===le?$t:"calc(100% - 30px)":"100%",overflow:"hidden"},children:a.createElement("div",{className:"email-pane__collapse-wrapper"},a.createElement(m.A,{className:"secondary-tabs email-settings__collapse",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:x.hc,items:[{label:a.createElement(a.Fragment,null,R("Discuss")),key:x.hc,forceRender:!0,className:"email-settings__collapse-panel",children:Ne?a.createElement(xt.A,{email:e,comments:Bt,subjectId:Ne,isLoggedIn:!0,emailElementType:Re}):a.createElement("div",{className:"aside-content-wrapper"},e.hasOwnProperty("type")?a.createElement(p.A,{description:R("Save the block before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}):a.createElement(p.A,{description:R("Save the email before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}))}]}))});const xn=()=>{de({entity_id:Ne}).then((e=>{e.error?G.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:a.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"}):e.data.success&&G.success({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:R("Success")}}),description:a.createElement("div",{dangerouslySetInnerHTML:{__html:e.data.success}}),placement:"bottomRight"}),pt(),we(!1)}))};$.aiAssistentEnabled&&Sn.push({disabled:tt,label:a.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"left",title:P("AI assistant","tab")},a.createElement(O.A,{"data-testid":"aiAssistentIcon",icon:"AI"}),Ie&&a.createElement(O.A,{icon:"Lock",className:"free-mode-firewall-icon free-mode-firewall-icon_emailpane"}),(null===mt||void 0===mt?void 0:mt.totalCount)>0&&Ne&&a.createElement("span",{className:"email-pane__comment-counter"},null===mt||void 0===mt?void 0:mt.totalCount)),key:x.z$,className:"email-pane__tab-discuss em-analytics__email-tab-discuss",style:{height:$.sidePanelFloating?re&&"bottom"===le?$t:"calc(100% - 30px)":"100%",overflow:"hidden"},children:a.createElement(a.Fragment,null,a.createElement("div",{className:"email-pane__collapse-wrapper"},a.createElement(m.A,{className:"secondary-tabs email-settings__collapse",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:x.z$,tabBarExtraContent:a.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:R("Clear chat")},a.createElement(u.A,{description:"Clear chat history?",onConfirm:xn,okText:"Yes",cancelText:"No",icon:"",placement:"leftTop",title:!1},a.createElement(h.Ay,{type:"text",icon:a.createElement(O.A,{icon:"ClearChat",style:{fontSize:16}}),style:{marginRight:16}}))),items:[{label:a.createElement(a.Fragment,null,R("AI assistant")),key:x.z$,forceRender:!0,className:"email-settings__collapse-panel",children:Ne||window.localStorage.getItem(x.V0.em_active_tab)?a.createElement(Cn,{messages:ht.length>0?ht:[{data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}}],newEmailAiGeneratorRef:Ue}):a.createElement("div",{className:"aside-content-wrapper"},e.hasOwnProperty("type")?a.createElement(p.A,{description:R("Save the block before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}):a.createElement(p.A,{description:R("Save the email before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}))}]})))}),$.optimizeEnabled&&Sn.push({disabled:tt,label:a.createElement(i.A,{overlayClassName:"email-pane__tooltip",overlayInnerStyle:{border:"2px dot-dash red"},overlayStyle:{border:"2px dot-dash red"},placement:"left",title:P("Optimize","tab")},a.createElement(a.Fragment,null,a.createElement(O.A,{"data-testid":"optimizeIcon",icon:"Speed"}),Ie&&a.createElement(O.A,{icon:"Lock",className:"free-mode-firewall-icon free-mode-firewall-icon_emailpane"}))),key:x.N7,className:"em-analytics__email-tab-optimise",style:{height:$.sidePanelFloating?re&&"bottom"===le?$t:"calc(100% - 30px)":"100%",overflow:"hidden"},children:a.createElement("div",{className:"email-pane__collapse-wrapper"},a.createElement(m.A,{className:"secondary-tabs secondary-tabs_optimise email-settings__collapse",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:x.N7,items:[{label:a.createElement(a.Fragment,null,R("Optimize")),key:x.N7,forceRender:!0,className:"email-settings__collapse-panel",children:a.createElement(nn.A,null)}]}))}),$.settingsEnabled&&Sn.push({disabled:tt,label:a.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"left",title:P("Settings","tab")},a.createElement(O.A,{"data-testid":"settingsIcon",icon:"SettingOutlined"})),key:x.zx,className:"em-analytics__email-tab-edit",style:{height:$.sidePanelFloating?re&&"bottom"===le?$t:"calc(100% - 30px)":"100%",overflow:"hidden"},children:a.createElement("div",{className:"email-pane__collapse-wrapper"},a.createElement(wn,{email:e}))});const[Tn,Bn]=(0,a.useState)([]),[In,Mn]=(0,a.useState)(!1),[Nn,Rn]=(0,a.useState)(0),[Pn,Hn]=(0,a.useState)(0),Vn=(null===(I=Be.querySelector(".email-pane__col_preview"))||void 0===I?void 0:I.getBoundingClientRect().width)-($.sidePanelFloating?0:38),[On,jn]=(0,a.useState)(null);(0,a.useEffect)((()=>{Ne&&Mt(Ne)}),[Ne,Mt]),(0,a.useEffect)((()=>{const e=H.onInit((()=>{H.send({operation:x.Ru.SANDBOX_LOCK_EDIT,data:!1}),H.send({operation:x.Ru.SANDBOX_LOCK_DISCUSS,value:In})}));return()=>e.dispose()}),[In,H]),(0,a.useEffect)((()=>{if(Tn.length<2){const e=null===ue||void 0===ue?void 0:ue.getBoundingClientRect(),t=setInterval(n,50);function n(){H.isInited()&&e&&(Et(),clearInterval(t))}Bn((e=>[...e,t]))}return clearInterval(Tn[Tn.length-1])}),[Tn,ue,Et,H]);const Dn=(0,a.useCallback)(((e=ee)=>{var t;H.send({operation:x.Ru.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:e+2}}),null===(t=Ze.current)||void 0===t||t.resize()}),[ee,H]);(0,a.useEffect)((()=>{if(Mn(K===x.hc),K!==x.rb){var e;const t=Be.querySelector(".email-pane__row"),n=null===t||void 0===t?void 0:t.getBoundingClientRect().width;(null===Fe||void 0===Fe||null===(e=Fe.current)||void 0===e?void 0:e.getBoundingClientRect().width)+540>n&&W((0,D.vc)("100%"))}}),[W,K,Be]);const Zn=(0,a.useCallback)((()=>{const e=Fe.current;e&&(e.style.borderWidth="1px",$.sidePanelFloating||(e.style.marginLeft="-1px",e.style.marginRight="-1px"),e.style.borderLeftColor=null,e.style.borderRightColor=null)}),[$.sidePanelFloating]),Fn=(0,a.useCallback)((e=>{$n(!1),On&&(setTimeout((()=>Dn()),50),jn(null)),e.target.classList.contains("email-pane__handle")||Zn(),window.localStorage.setItem(x.V0.em_code_mode_pane_sizes,JSON.stringify(Kt))}),[Dn,On,Kt,Zn]),zn=e=>t=>{t.target.classList.contains("email-pane__handle")&&(t.preventDefault(),Rn(t.target.parentNode.offsetWidth),Hn(t.pageX),jn(e),vt(e))},Wn=e=>{const t=Fe.current;"string"!==typeof e||On&&On!==e?On||(Zn(),Be.querySelector(".email-pane__iframe").style.width="1px",Be.querySelector(".email-pane__iframe").style.removeProperty("margin-left")):(Be.querySelector(".email-pane__iframe").style.width="calc(100% + 1px)","right"===e?(t.style.borderRightColor=U.colorPrimary,t.style.borderRightWidth="2px"):(t.style.borderLeftColor=U.colorPrimary,t.style.borderLeftWidth="2px",Be.querySelector(".email-pane__iframe").style.marginLeft="-1px"))},[qn,$n]=(0,a.useState)(!1),Un=(0,a.useCallback)((e=>{if(!On)return;let t=2*(e.pageX-Pn),n=Nn+("left"===On?-t:t);var a;n>318&&n<Vn&&(W((0,D.vc)(n)),"number"===typeof n&&n<=425?me||pe(!0):me&&pe(!1),null===(a=Ze.current)||void 0===a||a.resize())}),[W,Nn,Pn,On,Vn,me,pe]),Gn=(0,a.useCallback)((e=>{if(qn)if("bottom"===le){const t=qe.current.getBoundingClientRect().height,n=qe.current.getBoundingClientRect().top,a=(e.clientY-n)/t*100;if(a<20||a>80)return;Yt(a),Gt()}else{const t=qe.current.getBoundingClientRect().width,n=qe.current.getBoundingClientRect().left,a=(e.clientX-n)/t*100,r=Fe.current.getBoundingClientRect().width;if($.desktopMobileSwitchPanel&&"number"===typeof r&&r<=425&&(W((0,D.vc)(425)),me||pe(!0)),a<20||a>80)return;Yt(a)}}),[qn,le,Gt,me,W,$.desktopMobileSwitchPanel,pe]);(0,a.useEffect)((()=>{Gt()}),[re,Gt]);const Xn=e=>{W((0,D.vc)(e)),setTimeout((()=>Dn(e)),700),"number"===typeof e&&e<=425?me||pe(!0):me&&pe(!1)};(0,a.useEffect)((()=>{const e=new He.jG;return e.addDisposable((0,un.a)(Be,"click",At)),e.addDisposable((0,un.a)(Be,"mouseup",Fn,!0)),()=>{e.dispose()}}),[Be,At]),(0,a.useEffect)((()=>(window.addEventListener("scroll",Gt,!0),window.addEventListener("mousemove",Un,!0),window.addEventListener("mousemove",Gn),window.addEventListener("keydown",_t),()=>{window.removeEventListener("mousemove",Un,!0),window.removeEventListener("mousemove",Gn),window.removeEventListener("scroll",Gt,!0),window.removeEventListener("keydown",_t)})));const[Kn,Yn]=(0,a.useState)($.emailPaneDesktopSize||ee);(0,a.useEffect)((()=>{$.emailPaneDesktopSize&&W((0,D.vc)($.emailPaneDesktopSize))}),[W,$.emailPaneDesktopSize]),(0,a.useEffect)((()=>{Yn(re&&"bottom"!==le&&!me&&$.desktopMobileSwitchPanel?"100%":ee)}),[W,$.emailPaneDesktopSize,re,le,me,$.desktopMobileSwitchPanel,ee]);return(0,a.useEffect)((()=>{A&&(ft(x.nA),Ft("project"))}),[A]),a.createElement(r.A,{className:w()("email-pane",{"email-pane_code-mode":re,"email-pane_only_code_mode_mobile":$.onlyCodeModeInMobile,"email-pane_code-mode-bottom":re&&"bottom"===le,"email-pane_no-element-navigation":!$.switchDesktopMobilePropsEnabled&&!$.stepToOtherElementEnabled&&!$.deleteButtonEnabled,"email-pane_is-mobile":me,"email-pane_path-enabled":$.pathEnabled})},a.createElement(bn,{className:"email-pane__container",ref:We},((null===Pe||void 0===Pe?void 0:Pe.type)===x.bV.TEXT||(null===Pe||void 0===Pe?void 0:Pe.type)===x.bV.LINK||Pe.type===x.bV.IMG||Pe.type===x.bV.BUTTON)&&re&&"bottom"!==le&&a.createElement(Jt.A,{className:w()("selected-element-panel__content selected-element-panel__content_abs",{"selected-element-panel__hidden":Pe.type===x.bV.IMG}),emailElementType:Re,formSettings:Ve}),xe&&me&&a.createElement(p.A,{message:R("Template is not mobile-friendly"),description:R("While editing, some elements of the email no longer fit the screen of the mobile device. Check that these elements are set to a smaller width for mobile devices."),type:"warning",className:"email-pane__col__alert",closable:!0}),a.createElement(g.A,{ref:qe,className:w()("email-pane__row",{"email-pane__left":re&&"right"===le,"email-pane__right":re&&"left"===le,"email-pane__bottom":re&&"bottom"===le,"email-pane__sizeSwitcher":$.desktopMobileSwitchPanel,"email-pane__reverse":"left"===$.menuDirection,"email-pane__pinch":!$.sidePanelFloating})},a.createElement(b.A,{style:{flexGrow:1,overflowY:$.sidePanelFloating?"scroll":"hidden",overflowX:"hidden",height:re&&"bottom"===le?`calc(${Kt}%)`:"100%",width:`${"left"===le?100-Kt:"bottom"===le?100:Kt}%`},id:"pane-content-wrapper",ref:$.sidePanelFloating?ze:null},a.createElement("div",{className:"email-pane__iframe-scroll-top",id:"iframe-scroll-top"}),$.desktopMobileSwitchPanel&&a.createElement(s.A,{className:"email-pane__sizes-panel-wrapper",direction:"vertical",size:10},a.createElement(s.A,{className:"email-pane__sizes-panel",size:0},a.createElement(i.A,{title:R("Desktop view"),placement:"top",open:Ke},a.createElement(h.Ay,{type:me?"text":"primary",icon:a.createElement(O.A,{icon:"DesktopOutlined"}),shape:"circle",onClick:()=>Xn($.emailPaneDesktopSize||1e3),className:"toggle_view desktop_view"})),a.createElement(i.A,{title:R("Mobile view"),placement:"top",open:Je},a.createElement(h.Ay,{type:me?"primary":"text",icon:a.createElement(O.A,{icon:"MobileOutlined"}),shape:"circle",onClick:()=>Xn(425),className:"toggle_view mobile_view"}))),$.codeSideEnabled&&a.createElement(i.A,{title:R("Code mode"),placement:"right"},a.createElement(h.Ay,{type:re?"primary":"default",icon:a.createElement(O.A,{icon:"Code"}),shape:"circle",onClick:()=>{return e="right",re?W((0,D.vs)()):"string"===typeof e?(W((0,D.Uf)(e)),!re&&W((0,D.vs)())):W((0,D.vs)()),W((0,D.Fk)()),setTimeout((()=>{Re===x.IE?W((0,ne.A9)({type:null})):W((0,j.A9)({type:null}))}),300),H.send({operation:x.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),void W((0,on.rI)());var e}}))),a.createElement(g.A,{className:w()("email-pane__col-wrapper",{container:re&&"bottom"===le||!re,"email-pane__col-wrapper_reverse":"left"===$.menuDirection,"email-pane__col-wrapper_pinch":!$.sidePanelFloating}),style:{flexGrow:1,maxWidth:"unset",paddingTop:$.desktopMobileSwitchPanel&&re&&"bottom"!==le?"60px":""}},a.createElement(b.A,{className:"email-pane__col email-pane__col_preview",style:{flexGrow:1,maxWidth:"unset"},ref:$.sidePanelFloating?null:ze},$.desktopMobileSwitchRule&&a.createElement("div",{className:`email-pane__sizes ${Nt}`},a.createElement("div",{className:"email-pane__width-selectors-wrapper"},a.createElement("div",{className:"device-width__full",style:{flexGrow:1},onMouseEnter:()=>{Rt("device-width__full-hovered"),Ht(R("Desktop"))},onMouseLeave:()=>{Rt(""),Ht("")},onClick:()=>Xn("100%")}),a.createElement("div",{className:"device-width__768",style:{width:171},onMouseEnter:()=>{Rt("device-width__768-hovered"),Ht(R("Small desktop \u2013 768px"))},onMouseLeave:()=>{Rt(""),Ht("")},onClick:()=>Xn(768)}),a.createElement("div",{className:"device-width__425",style:{width:25},onMouseEnter:()=>{Rt("device-width__425-hovered"),Ht(R("Mobile L \u2013 425px"))},onMouseLeave:()=>{Rt(""),Ht("")},onClick:()=>Xn(425)}),a.createElement("div",{className:"device-width__375",style:{width:28},onMouseEnter:()=>{Rt("device-width__375-hovered"),Ht(R("Mobile M \u2013 375px"))},onMouseLeave:()=>{Rt(""),Ht("")},onClick:()=>Xn(375)}),a.createElement("div",{className:"device-width__320",style:{width:320},onMouseEnter:()=>{Rt("device-width__320-hovered"),Ht(R("Mobile S \u2013 320px"))},onMouseLeave:()=>{Rt(""),Ht("")},onClick:()=>Xn(320)},Pt),a.createElement("div",{className:"device-width__375",style:{width:28},onMouseEnter:()=>{Rt("device-width__375-hovered"),Ht(R("Mobile M \u2013 375px"))},onMouseLeave:()=>{Rt(""),Ht("")},onClick:()=>Xn(375)}),a.createElement("div",{className:"device-width__425",style:{width:25},onMouseEnter:()=>{Rt("device-width__425-hovered"),Ht(R("Mobile L \u2013 425px"))},onMouseLeave:()=>{Rt(""),Ht("")},onClick:()=>Xn(425)},a.createElement(i.A,{title:R("Mobile view"),placement:"bottom"},a.createElement(h.Ay,{type:"default",icon:a.createElement(O.A,{icon:"MobileOutlined"}),size:"small",shape:"circle",style:{right:-12,top:4,zIndex:999,padding:0,position:"absolute",onClick:()=>Xn(425)}}))),a.createElement("div",{className:"device-width__768",style:{width:171},onMouseEnter:()=>{Rt("device-width__768-hovered"),Ht(R("Small desktop \u2013 768px"))},onMouseLeave:()=>{Rt(""),Ht("")},onClick:()=>Xn(768)},a.createElement(i.A,{title:R("Desktop view"),placement:"bottom"},a.createElement(h.Ay,{type:"default",icon:a.createElement(O.A,{icon:"DesktopOutlined"}),size:"small",shape:"circle",style:{right:-12,top:4,zIndex:999,padding:0,position:"absolute",onClick:()=>Xn(768)}}))),a.createElement("div",{className:"device-width__full",style:{flexGrow:1},onMouseEnter:()=>{Rt("device-width__full-hovered"),Ht(R("Desktop"))},onMouseLeave:()=>{Rt(""),Ht("")},onClick:()=>Xn("100%")}))),a.createElement("div",{className:w()("email-pane__resizable",{"email-pane__resizable_drag":On||qn}),style:{maxWidth:Kn}},a.createElement("div",{className:"email-pane__handle left",onMouseDown:zn("left"),onMouseEnter:()=>Wn("left"),onMouseLeave:Wn}),a.createElement("div",{className:"email-pane__handle right",onMouseDown:zn("right"),onMouseEnter:()=>Wn("right"),onMouseLeave:Wn}),a.createElement("div",{className:w()("email-pane__content-col email-pane__content-col_main",{"email-pane__content-col_disable":On||qn}),ref:Fe,id:"pane-content-iframe"},a.createElement(_n,{ref:Ze,className:"email-pane__iframe",email:e,handlerSendPosition:Gt})))),a.createElement(b.A,{style:{display:re&&"bottom"!==le||$.disableSideMenu?"none":"initial"},ref:qt,className:w()("email-pane__content-col email-pane__content-col_menu email-pane__content-col_tabs email-pane__col email-pane__col_settings",{"email-pane__col_disabled":K===x.rb})},(!re||"bottom"===le)&&a.createElement(m.A,{className:w()("email-pane__col_settings-inner",{"email-pane__col_settings-inner_reverse":"left"===$.menuDirection}),size:"middle",animated:{inkBar:!1,tabPane:!1},activeKey:K,onTabClick:e=>{let t=Be.querySelector(".atoms__list");if(e===x.Bv&&"Disabled_tab"===K&&t&&setTimeout((()=>{t.style.opacity=1}),300),$.toggleSidePanel&&e===K?(W((0,D.PM)(x.rb)),t&&(t.style.opacity=0)):"Optimize"===e?(0,He.Z1)(R,q):e!==x.yI&&e!==x.Vv&&(W((0,D.PM)(e)),H.send({operation:x.Ru.SANDBOX_LOCK_EDIT,data:!1}),H.send({operation:x.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),_e([])),Ie&&("Discuss"===e||"Optimise"===e||"AiChat"===e))switch(nt(!0),e){case"Discuss":rt(7);break;case"Optimise":rt(6);break;case"AiChat":rt(9);break;default:rt(0)}},renderTabBar:gn,tabPosition:"right",items:Sn,tabBarExtraContent:Me&&a.createElement("div",{style:{paddingTop:15,textAlign:"center"}},J||(null===(M=Y.id)||void 0===M?void 0:M.toString())!==(null===Se||void 0===Se||null===(N=Se.members)||void 0===N?void 0:N.owner.ID)?a.createElement(f.A,{className:"ant-switch_editor-mode",checkedChildren:"Pro",unCheckedChildren:"Pro",onChange:Wt,defaultChecked:it}):a.createElement(f.A,{className:"ant-switch_editor-mode",checkedChildren:"Pro",unCheckedChildren:"Pro",onChange:Wt,checked:lt}))}))),a.createElement("div",{className:"email-pane__iframe-scroll-bottom",id:"iframe-scroll-bottom"})),a.createElement(b.A,{style:{width:`${"right"===le?100-Kt:"bottom"===le?100:Kt}%`,position:"relative",height:"bottom"===le?`calc(${100-Kt}%)`:"unset",display:re?"initial":"none"}},a.createElement("div",{className:"email-pane__code-divider",onMouseDown:()=>$n(!0)}),a.createElement("div",{className:"code-mode__pane code-mode__pane_editor email-pane__pane email-pane__pane_editor"},a.createElement("div",{className:"code-mode__pane-content email-pane__pane-content"},a.createElement(yn,{email:e,setOtherUsers:Le,readOnly:$.lockEditor,newEmailAiGeneratorRef:Ue}))))),$.pathEnabled&&a.createElement("div",{className:"email-pane__paths"},a.createElement(tn,{elementPath:ye})),a.createElement("div",{className:"collaborator-list"},a.createElement(pn.b,{users:ke,isEditor:x._P.isEditor,isPlugin:x.EW.isPlugin,token:U}))),"img"===(null===Ve||void 0===Ve?void 0:Ve.type)&&re&&"bottom"!==le&&a.createElement("div",{className:"email-pane__collapse-wrapper email-pane__collapse-wrapper_disabled"},a.createElement(It,{email:e,formSettings:Ve})),a.createElement(hn.I,null),a.createElement(wt.A,{open:tt,onCancel:()=>{re&&W((0,D.vs)()),W((0,D.Fk)()),W((0,rn.EV)("simple")),ot(!1),nt(!1)},initialSlide:at}),a.createElement(C.A,{title:R("Warning"),centered:!0,open:Ae,onOk:xn,onCancel:()=>{we(!1)}},a.createElement("p",null,R("Clear chat history?"))))}},79966:(e,t,n)=>{"use strict";n.d(t,{A:()=>F});var a=n(98173),r=n(40120),l=n(75576),o=n(49856),i=n(13785),s=n(37969),c=n(98447),d=n(38927),m=n(64909),p=n(38826),u=n(27264),h=n(2604),g=n(62272),b=n(52218),f=n.n(b),C=n(12543),v=n(52995),E=n(8807),y=n(48956),_=n(23424),A=n(47014),w=n(54838),k=n(1047),L=n(22536),S=n(84572),x=n(98845),T=n(68984),B=n(40835),I=n(32947),M=n(55835),N=n(80223),R=n(40277),P=n(52919),H=n(86095),V=n(27941),O=n(90614),j=n(15626);const D=a.createElement(p.A,{style:{fontSize:20},spin:!0}),{useToken:Z}=r.A,F=({emailElement:e,isCollaborationEditor:t})=>{var n,r,b,F;const{__:z}=(0,C.s9)(),W=(0,h.wA)(),q=(0,P.XW)(),{emailId:$,blockId:U}=(0,g.g)(),G=(0,h.d4)(_.cL),[X,K]=(0,a.useState)(!1),[Y,J]=(0,B.Zf)(),Q=(0,g.Zp)(),ee=(0,h.d4)(A.C1),[te]=(0,x.YE)($),[ne]=(0,T.lx)(U),{owner:ae}=(0,N.A)(),re=(0,H.fn)(),le=(0,H.aD)(re),oe=(0,H.TW)(re),ie=(0,h.d4)(w.Wm),se=(0,h.d4)(w.Fv),ce=(0,h.d4)(w.yy),{token:de}=Z(),{modal:me}=l.A.useApp(),pe=(0,m.hN)(),{confirm:ue}=me,he=(0,V.rD)(),ge=e.hasOwnProperty("type")?I.IE:I.Tm,be=(0,O.ml)(j.AZ.ON_SHARE_ID),fe=(0,O.ml)(j.AZ.ON_SHOW_PREVIEW_ID),[Ce,ve]=(0,a.useState)(!1),[Ee,ye]=(0,a.useState)(0),_e=(0,h.d4)(S.yN);let Ae=!(0,h.d4)(A.B$)&&(null===(n=ee.id)||void 0===n?void 0:n.toString())===(null===_e||void 0===_e||null===(r=_e.members)||void 0===r?void 0:r.owner.ID)&&!0;const we=$?"emailId":"blockId",ke=null===e||void 0===e?void 0:e.project,Le=e=>{"string"===typeof e?(W((0,w.Uf)(e)),!se&&W((0,w.vs)())):W((0,w.vs)()),setTimeout((()=>{ge===I.IE?W((0,L.A9)({type:null})):W((0,k.A9)({type:null}))}),300),q({operation:I.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),Ae&&(ve(!0),ye(1))},Se=(0,a.useCallback)((()=>{ue({title:z("Available on the Personal plan and higher."),icon:a.createElement(u.A,null),content:a.createElement("div",{style:{maxWidth:"330px"}},z("Upgrade your plan to use this feature")),centered:!0,okText:z("Choose your plan"),cancelText:z("Close & continue"),width:"unset",onOk(){Q("/billing")},onCancel(){}})}),[Q,z,ue]);(0,a.useEffect)((()=>{J.isError&&((0,R.p6)(J,pe),K(!1))}),[J,pe]),(0,a.useEffect)((()=>{if(J.isSuccess&&X){var e;if(401===(null===(e=J.data)||void 0===e?void 0:e.status))pe.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:J.data.code}}),description:a.createElement("div",{dangerouslySetInnerHTML:{__html:J.data.message}}),placement:"bottomRight"});else if(J.data){let e=document.createElement("A");e.setAttribute("target","_blank"),e.setAttribute("href",J.data.message),e.click()}K(!1)}}),[J,X,pe]);const[xe,Te]=(0,a.useState)(!1),Be=()=>{q({operation:I.Ru.SANDBOX_LOCK_EDIT,data:ie}),W((0,w.mi)(!ie))},Ie=$?te:ne;let Me=[];const Ne=(0,a.useCallback)((async()=>{const e=await fe.fire({project:ke,id:$});!1!==e.find((e=>!1===e||"string"===typeof e))&&window.open(e.find((e=>e))||`/email/${$}/raw?key=${f()(`${ke}${$}${I.KI}`)}`)}),[fe,ke,$]),Re=(0,a.useCallback)((async()=>{window.open(`/getemail/${$}?secret_hash=${f()(`${ke}${$}${I.KI}`)}&raw=true`)}),[ke,$]);he.previewModeEnabled&&Me.push({key:"Preview_mode",icon:a.createElement(E.A,{icon:"EyeOutlined",style:{fontSize:16}}),label:z("Preview mode"),onClick:Ne}),he.livePreviewEnabled&&Me.push({key:"Live_preview",icon:X?a.createElement(p.A,{style:{fontSize:16}}):a.createElement(E.A,{icon:"CheckCircleOutlined",style:{fontSize:16}}),label:z("Live preview"),onClick:(null===(b=ee.id)||void 0===b?void 0:b.toString())===(null===(F=e.project_author)||void 0===F?void 0:F.toString())&&"community"===ee.subscription.post_name&&ae?Se:()=>{if(!X){const t={email:$,subject:encodeURIComponent("#"+e.project+" "+e.title).replaceAll(/%20/gi,"+").replaceAll(/%0A/gi,"%0D%0A"),content:encodeURIComponent((null===re||void 0===re?void 0:re.getValue())||"").replaceAll(/%20/gi,"+").replaceAll(/%0A/gi,"%0D%0A")};Y(t),K(!0)}}}),he.webversionEnabled&&Me.push({key:"Web version",icon:a.createElement(E.A,{icon:"Web",style:{fontSize:16}}),label:z("Web version"),onClick:Re}),he.sharePreviewEnabled&&Me.push({key:"Share",icon:a.createElement(E.A,{icon:"ShareAltOutlined",style:{fontSize:16}}),label:z("Share"),onClick:async()=>{const e=(await be.fire({project:ke,id:$})).find((e=>!1===e||"string"===typeof e));!1!==e&&navigator.clipboard.writeText(e||`https://app.emailmaker.ru/email/${$}/raw?key=${f()(`${ke}${$}${I.KI}`)}`).then((()=>{(0,R.wB)(z("A shareable link to this page has been copied to the clipboard."),pe)}))},className:"em-analytics__email-share"});const Pe=[{key:"Left_mode",icon:a.createElement(E.A,{icon:"PanelLeft",style:{fontSize:"20px",color:"left"===ce&&se?de.colorPrimary:"inherit"}}),label:z("Left Code panel"),onClick:()=>Le("left")},{key:"Right_mode",icon:a.createElement(E.A,{icon:"PanelLeft",style:{fontSize:"20px",transform:"rotate(180deg)",color:"right"===ce&&se?de.colorPrimary:"inherit"}}),label:z("Right Code panel"),onClick:()=>Le("right")},{key:"Bottom_mode",icon:a.createElement(E.A,{icon:"PanelLeft",style:{fontSize:"20px",transform:"rotate(-90deg)",color:"bottom"===ce&&se?de.colorPrimary:"inherit"}}),label:z("Bottom Code panel"),onClick:()=>Le("bottom")}];return a.createElement("div",{className:"email-preview-menu email-preview-menu_new"},a.createElement(o.A,{size:32},a.createElement(o.A,{className:"email-preview-menu__versions",size:8,style:{borderRadius:"calc(var(--borderRadius) * 1px"}},a.createElement(i.A,{title:z(t?M.LJ:"Undo (Ctrl+Z)"),placement:"bottom"},a.createElement(s.Ay,{type:"text",icon:a.createElement(E.A,{icon:"UndoOutlined",style:{fontSize:20}}),onClick:()=>{le.undo()},disabled:!oe.canUndo})),a.createElement(i.A,{title:z(t?M.LJ:"Redo (Ctrl+Shift+Z)"),placement:"bottom"},a.createElement(s.Ay,{type:"text",icon:a.createElement(E.A,{icon:"RedoOutlined",style:{fontSize:20}}),onClick:()=>{le.redo()},disabled:!oe.canRedo})),he.historyEnabled&&a.createElement(i.A,{title:z("Version history"),placement:"bottom"},a.createElement(s.Ay,{type:ie?"text":"primary",ghost:!ie,onClick:()=>{ie?(Te(!0),Ie({[we]:null===e||void 0===e?void 0:e.id}).then((e=>{e.isSuccess?0===e.data.data.length&&pe.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:z("No history records available.")}}),placement:"bottomRight"}):e.isError&&(0,R.p6)(e,pe),Be(),W((0,w.PM)(I.Vv)),Te(!1),Ae&&(ve(!0),ye(4))}))):(W((0,w.Fk)()),Be())},disabled:e.isNew||xe,className:"email-preview-menu__history",icon:xe?a.createElement(c.A,{indicator:D}):a.createElement(a.Fragment,null,a.createElement(E.A,{icon:"HistoryOutlined",style:{fontSize:20},className:"email-preview-menu__list-item-icon email-preview-menu__list-item-icon_revert"}),Ae&&a.createElement(E.A,{icon:"Lock",className:"free-mode-firewall-icon"}))}))),a.createElement(o.A,{size:8,style:{borderRadius:"calc(var(--borderRadius) * 1px"}},he.codeEnabled&&a.createElement(d.A,{arrow:!0,key:"Code mode",placement:"bottom",menu:{items:Pe},trigger:"hover",mouseEnterDelay:0,className:"email-preview-menu__code"},a.createElement(s.Ay,{type:se?"primary":"text",ghost:se,icon:a.createElement(a.Fragment,null,a.createElement(E.A,{icon:"Code",style:{fontSize:20}}),Ae&&a.createElement(E.A,{icon:"Lock",className:"free-mode-firewall-icon"})),onClick:Le})),he.previewIconEnabled&&a.createElement(d.A,{arrow:!0,key:"Preview",placement:"bottom",menu:{items:Me},className:"email-preview-menu__preview"},a.createElement(s.Ay,{type:"text",target:"_blank",rel:"noreferrer",icon:he.previewModeEnabled?a.createElement("span",{onClick:Ne,style:{fontSize:"18px",color:de.colorText}},a.createElement(E.A,{icon:"EyeOutlined",style:{fontSize:20},className:"email-preview-menu__list-item-icon"})):a.createElement(E.A,{icon:"EyeOutlined",style:{fontSize:20},className:"email-preview-menu__list-item-icon"}),disabled:!oe.canUndo})),he.sendTestEnabled&&a.createElement(i.A,{title:z("Send a test email"),placement:"bottom"},a.createElement(s.Ay,{className:"em-analytics__email-open-test email-preview-menu__test",type:"text",icon:a.createElement(E.A,{icon:"SendOutlined",style:{fontSize:20}}),onClick:()=>{W((0,_.qf)(I.lx.SEND_TEST_EMAIL))}})))),a.createElement(v.A,{isModalVisible:G===I.lx.SEND_TEST_EMAIL,email:e}),a.createElement(y.A,{open:Ce,onCancel:()=>{ie||(Be(),W((0,w.Fk)())),se&&W((0,w.vs)()),ve(!1)},initialSlide:Ee}))}},47091:(e,t,n)=>{"use strict";n.d(t,{A:()=>me});var a=n(98173),r=n(40120),l=n(75576),o=n(49856),i=n(67034),s=n(38927),c=n(10423),d=n(71832),m=n(59010),p=n(99291),u=n(10582),h=n(94118),g=n(40186),b=n(78446),f=n(10267),C=n(82648),v=n(47214),E=n(6969),y=n(35076),_=n(38256),A=n(71879),w=n(83612),k=n(79245),L=n(62272),S=n(2604),x=(n(65053),n(47638)),T=n(85591),B=n.n(T),I=n(2917),M=n(45271),N=n(50209),R=n(37969),P=n(52218),H=n.n(P),V=n(40277),O=n(96734),j=n(89613),D=n(12543),Z=n(32947);const{useToken:F}=r.A,z=({element:e,setSearchFilters:t=(e,t)=>{}})=>{var n;const{projectId:r}=(0,L.g)(),l=(0,L.Zp)(),s=(0,O.p)(),{token:d}=F(),{__:m}=(0,D.s9)(),p=e.type?Z.IE:Z.Tm,u=`/projects/${r}/emails/new`,h=(0,j.u)(),g=(0,a.useRef)(null);return a.createElement(c.A,{className:`element-card element-card_${p} 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:g,className:"element-card__img-wrapper"},a.createElement("img",{className:"element-card__img",alt:e.title,src:((e,t=r,n)=>`https://scr.emcdn.ru/screenshot?delay=1000&width=800&fullPage=true&deviceScaleFactor=0.8&format=jpg&force=false${n?`&cacheControl=true&cache-hash=${H()(n)}`:""}&url=${encodeURIComponent(`https://app.emailmaker.ru/get${p}/${e}?secret_hash=${H()(`${t}${e}${Z.KI}`)}&raw=true`)}`)(e.id,e.project,e.modified),onMouseMove:e=>(0,V.Hy)(e,g.current),onMouseLeave:V.Tr})),e.is_template&&e.project===+r&&a.createElement("div",{className:"element-card__is-template-wrapper"},m("Template")),(0,V._q)(e,Z.zh).length&&a.createElement("div",{className:"element-card__tags-wrapper"},a.createElement(o.A,{wrap:!0,size:8},null===(n=(0,V._q)(e,Z.zh))||void 0===n?void 0:n.map((e=>a.createElement(i.A,{bordered:!1,color:d.colorPrimary,style:{borderRadius:6},key:e.id,onClick:()=>t(null,e.id)},e.name)))))),onClick:()=>{return t=e.id,h({event:"select",action:"create_new_email",template_id:t,description:"Create new email from template"}),s.set(Z.A9.em_new_email,t),void(0,V.XZ)(l,u);var t}},a.createElement("div",null,a.createElement(R.Ay,{type:"link",className:"element-card__title"},(0,V.ln)(e.title))))};var W=n(56605),q=n(8807),$=n(27499),U=n(48753),G=n(8218),X=n(23424);const K="description",Y=()=>{const{__:e}=(0,D.s9)(),t=(0,S.wA)(),[n]=$.A.useForm(),r=(0,a.useRef)(null),l=(0,S.d4)(X.cL)===Z.lx.ADD_NEW_AI_EMAIL,o=(0,O.p)(),i=(0,L.Zp)(),{projectId:s}=(0,L.g)(),c=(0,a.useCallback)((()=>{n.resetFields(),setTimeout((()=>{var e;return null===(e=r.current)||void 0===e?void 0:e.focus()}),0)}),[n]);(0,a.useEffect)((()=>{l&&c()}),[l,c]);const d=()=>t((0,X.Oo)()),m=()=>{const e=`/projects/${s}/emails/new`,t=String(278056);o.set(Z.A9.em_new_email,t),n.validateFields().then((({description:t})=>{window.localStorage.setItem(Z.V0.em_active_tab,Z.z$),window.localStorage.setItem(Z.V0.em_ai_settings,t),(0,V.XZ)(i,e),d()}))};return a.createElement(U.A,{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:l,onOk:m,onCancel:d,className:"new-folder-modal",centered:!0,footer:[a.createElement(R.Ay,{key:"submit",type:"primary",size:"large",onClick:m},e("Generate Email"))]},a.createElement($.A,{form:n,layout:"vertical",name:"add_new_folder_form",onFinish:m,initialValues:{[K]:""},autoComplete:"off",style:{paddingTop:10}},a.createElement($.A.Item,{name:K,rules:[{required:!0,message:e("Please enter the description")}]},a.createElement(G.A,{size:"large",placeholder:e("Please enter the description"),ref:r,style:{marginBottom:5}}))))};var J=n(98845),Q=n(92960),ee=n(40835),te=n(79253),ne=n(1047),ae=n(84572),re=n(47014),le=n(80223),oe=n(71854),ie=n(94779),se=n(64909);const{useToken:ce}=r.A,de=(e,t)=>`${e.pathname}/${t.id}`,me=({projectId:e,emailsView:t,createPage:n=!1,currentFolderId:r,foldersList:T,refetchProjectFolders:R,projectTags:P=[],activeTagId:H,setActiveTagHandler:F,projectEmailsCounter:$=0,registerFunction:U=()=>{},groupType:G=null})=>{var K,me,pe,ue,he,ge,be,fe;const{__:Ce,_x:ve}=(0,D.s9)(),Ee=(0,S.wA)(),ye=(0,S.d4)(te.MY),_e=(0,S.d4)(te.aO),Ae=(0,S.d4)(ae.RP),we=(0,S.d4)(ae.AQ),ke=(0,S.d4)(ae.qV),Le=(0,S.d4)(re.C1),Se=(0,S.d4)(te.NP),xe=(0,S.d4)(te.qM),Te=(0,S.d4)(te.ux),Be=(0,S.d4)(ne.CT),Ie=(0,S.d4)(ae.GD),Me=(0,S.d4)(ae.Rw),[Ne,Re]=(0,k.ok)(),Pe=(0,O.p)(),He=(0,se.hN)(),{owner:Ve,admin:Oe}=(0,le.A)();let je=(0,L.zy)();const De=(0,L.Zp)(),{token:Ze}=ce(),{modal:Fe}=l.A.useApp(),ze=(0,S.Pj)(),{confirm:We}=Fe,qe=(0,j.u)(),$e=[...Ie,...Me],[Ue,Ge]=(0,a.useState)(null);(0,a.useEffect)((()=>{G===Z.ti.ALL?Ge(Ae+we):G===Z.ti.PROJECT?Ge(we):G===Z.ti.STANDARD&&Ge(Ae)}),[G,Ae,we]);const Xe=+Ne.get("page"),Ke=Ne.get("folder"),Ye=+Ne.get("tag"),[Je,Qe]=(0,J.Kh)(),[et]=(0,J._3)(),[tt]=(0,J.dN)(),{refetch:nt}=(0,L.KC)(),[at,rt]=(0,a.useState)(!1),lt=`/projects/${e}/emails/new`,ot=r&&r===Z.UW,it=r===Z.y2&&!Ye;(0,a.useEffect)((()=>{Ee((0,te.FC)())}),[Ee]);const[st,ct]=(0,a.useState)({projectId:e,page:it?Xe:1,pageSize:Z.mU,notEmbed:!0,tags:null,folderTag:null}),{isLoading:dt,isSuccess:mt,isError:pt,isFetching:ut,refetch:ht,error:gt}=(0,J.Xw)({...st,folderTag:null,tags:null,status:"main"},{skip:n||!(null===(K=st.name)||void 0===K||!K.length)&&r!==Z.y2}),[bt,ft]=(0,a.useState)({page:Xe||1,pageSize:Z.mU,folderTag:null,tags:[],groupType:G}),{isLoading:Ct,isSuccess:vt,isError:Et,isFetching:yt,data:_t=[],refetch:At,error:wt}=(0,J.PX)({...bt,groupType:G},{skip:!n||(Math.ceil(Ae+we/Z.mU)||1)<bt.page||G===Z.ti.PROJECT}),{isLoading:kt,isSuccess:Lt,isError:St,isFetching:xt,data:Tt=[],refetch:Bt,error:It}=(0,J.PX)({...bt,projectId:e,groupType:G},{skip:!n||(Math.ceil(we/Z.mU)||1)<bt.page||G===Z.ti.STANDARD}),Mt=(e,t)=>G===Z.ti.ALL?e||t:G===Z.ti.PROJECT?t:e,Nt=Mt(Ct,kt),Rt=Mt(vt,Lt),Pt=Mt(Et,St),Ht=Mt(yt,xt),Vt=Mt(At,Bt),Ot=Mt(wt,It),[jt,Dt]=(0,a.useState)({projectId:e,page:1,pageSize:Z.mU,notEmbed:!0,tags:Ye&&[Ye],folderTag:r}),{isLoading:Zt,isSuccess:Ft,isError:zt,isFetching:Wt,error:qt,refetch:$t}=(0,J.Xw)({...jt,tags:r&&jt.folderTag?null:jt.tags,status:"custom"},{skip:n||ot||r===Z.y2||jt.folderTag!==r||!(null===(me=jt.name)||void 0===me||!me.length)&&(ot||r===Z.y2)}),[Ut,Gt]=(0,a.useState)({projectId:e,page:ot?Xe:1,pageSize:Z.mU,notEmbed:!0,tags:Ye&&[Ye],folderTag:null,status:"trash"}),[Xt,Kt]=(0,a.useState)(!1),{isLoading:Yt,isSuccess:Jt,isError:Qt,isFetching:en,data:tn,refetch:nn,error:an}=(0,J.Xw)({...Ut,status:"trash",folderTag:null,page:Xt?Ut.page:1},{skip:n||(Math.ceil(_e/Z.mU)||1)<Ut.page||!(null===(pe=Ut.name)||void 0===pe||!pe.length)&&!ot||!(null===(ue=Ut.tags)||void 0===ue||!ue[0])&&Te>0});(0,a.useEffect)((()=>{Jt&&nn()}),[null===T||void 0===T?void 0:T.length,nn,Jt]),(0,a.useEffect)((()=>{Kt(!!tn||Math.ceil(_e/Z.mU)>=Ut.page)}),[tn,Ut.page,_e]);let rn=[];G!==Z.ti.STANDARD&&Tt&&ke>=bt.page&&rn.unshift(...Tt),G!==Z.ti.PROJECT&&_t&&(rn.push(..._t),rn=rn.slice(0,Z.mU));const ln=n?bt:ot?Ut:it?st:jt,on=n?Rt:ot?Jt:it?mt:Ft,sn=n?Nt:ot?Yt:it?dt:Zt,cn=n?Pt:ot?Qt:it?pt:zt,dn=n?Ht:ot?en:it?ut:Wt,mn=n?Vt:ot?nn:it?ht:$t,pn=n?Ot:ot?an:it?gt:qt,un=(n?Ue:ot?_e:it?ye:null===Se||void 0===Se||null===(he=Se[r||(null===(ge=jt.tags)||void 0===ge?void 0:ge[0])])||void 0===he?void 0:he.total)||0,hn=n?rn:ot?Te:it?xe:null===Se||void 0===Se||null===(be=Se[r||(null===(fe=jt.tags)||void 0===fe?void 0:fe[0])])||void 0===be?void 0:be.list;(0,a.useEffect)((()=>{I.gV({id:null===Le||void 0===Le?void 0:Le.id,email:null===Le||void 0===Le?void 0:Le.email,username:null===Le||void 0===Le?void 0:Le.name})}),[Le]),(0,a.useEffect)((()=>{on&&mn&&U(mn)}),[U,mn,on]);const gn=(0,a.useCallback)((e=>{const t={...e,folderTag:void 0===e.folderTag?null:e.folderTag};n?ft((e=>({...e,...t}))):ot?Gt((t=>({...t,...e}))):it?ct((t=>({...t,...e}))):Dt((t=>({...t,...e})))}),[n,ot,it]);(0,a.useEffect)((()=>{var e;"rest_post_invalid_page_number"===(null===pn||void 0===pn||null===(e=pn.data)||void 0===e?void 0:e.code)&&gn({page:1})}),[pn,gn]),(0,a.useEffect)((()=>{if(!n){(Ke&&Ke!==r||H&&Ye!==H)&&gn({folderTag:r,page:1});let e={page:Ke===r&&ln.page?ln.page:1};r&&!Ye&&(e.folder=r),H&&(e.tag=H),Re(e,{replace:!0})}}),[ln.page,De,n,Ke,r,H,Ye,gn,Re]);const bn=e=>{We({maskClosable:!0,centered:!0,title:ve(ot?"Are you sure to irrevocably delete \u201c":"Are you sure to delete \u201c","email")+e.title+Ce("\u201d email?"),icon:a.createElement(g.A,{style:{color:"#ff4d4f"}}),okText:Ce("Yes"),cancelText:Ce("No"),onOk:()=>(e=>ze.dispatch(J.GY.endpoints.deleteEmail.initiate({id:e.id,force:ot})).then((e=>{e.error?(0,V.p6)(e,He):e.data&&((0,V.wB)(Ce("The email \u201c")+e.data.title+ve("\u201d was successfully removed.","email"),He),mn(),R(),nn(),ot&&nt())})))(e)})},fn=e=>{rt(!0),tt({emailId:null===e||void 0===e?void 0:e.id,status:"publish"}).then((t=>{t.error?He.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.code}}),description:a.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.message}}),placement:"bottomRight"}):(e.folder[0]?mn():ht(),R(),nn(),He.success({message:Ce("The email \u201c")+e.title+ve("\u201d was successfully recovered.","recovery"),placement:"bottomRight"})),rt(!1)}))},Cn=e=>{rt(!0),et(null===e||void 0===e?void 0:e.id).then((t=>{var n,r,l,o,i;const s=t.data;Je({title:(0,V.fq)(s.title),project:s.project,subject:s.subject,description:s.description,html:(0,V.el)(s.html||"",s.title),parent_email:s.parent_email||Z.iU,common_styles:s.common_styles||"",utm_parameters:{utm_source:null===(n=s.utm_parameters)||void 0===n?void 0:n.utm_source,utm_medium:null===(r=s.utm_parameters)||void 0===r?void 0:r.utm_medium,utm_campaign:null===(l=s.utm_parameters)||void 0===l?void 0:l.utm_campaign,utm_term:null===(o=s.utm_parameters)||void 0===o?void 0:o.utm_term,utm_content:null===(i=s.utm_parameters)||void 0===i?void 0:i.utm_content},emailtags:e.emailtags,folder:s.folder}).then((t=>{var n;t.error?He.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.code}}),description:a.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.message}}),placement:"bottomRight"}):(null!==(n=s.folder)&&void 0!==n&&n[0]?$t():ht(),R(),He.success({message:Ce("The copy of email \u201c")+e.title+ve("\u201d was successfully created.","copy"),placement:"bottomRight"}));rt(!1)}))}))},vn=(e,t)=>{tt({emailId:t.id,folder:e.key===Z.y2?[]:[e.key]}).then((e=>{var n,a;(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.folder[0])&&Ee(J.GY.endpoints.getEmails.initiate({...ln,folderTag:(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.folder[0])||null})),r!==Z.y2&&(Ee((0,te.X)({folder:r,emailId:t.id})),Ee(J.GY.endpoints.getEmails.initiate({...ln,folderTag:r||null}))),ht(),R()})).catch((e=>{}))},En=[{width:"40%",title:ve("Email","letter"),dataIndex:["title"],render:(e,t,n)=>a.createElement(k.N_,{to:ot?"":de(je,t),style:{cursor:ot?"default":"pointer"}},e)},{width:"20%",title:Ce("Tags"),dataIndex:["emailtags"],render:(e,t,n)=>a.createElement(o.A,{wrap:!0,size:8},e&&e.map((e=>{const t=null===P||void 0===P?void 0:P.find((t=>{var n;return(null===(n=t.id)||void 0===n?void 0:n.toString())===(null===e||void 0===e?void 0:e.toString())}));return t&&a.createElement(i.A,{color:Ze.colorPrimary,style:{cursor:"pointer",borderRadius:6,marginRight:0},key:t.id,onClick:()=>F(null,t.id)},t.name)||null})))},{width:"3%",title:"",dataIndex:"lock",render:(e,t,n)=>{var r,l;return e&&a.createElement(b.A,{className:B()("lock-icon",{"lock-icon__disabled":!(Ve||Oe||(null===(r=Le.id)||void 0===r?void 0:r.toString())===(null===(l=t.author)||void 0===l?void 0:l.toString()))})})}},{width:"16%",title:Ce("Creator"),dataIndex:["_embedded","author"],render:(e,t,n)=>{var a;return(null===e||void 0===e||null===(a=e[0])||void 0===a?void 0:a.name)||""}},{width:"9%",title:Ce("Created"),className:"nobr",dataIndex:"date",render:(e,t,n)=>(0,V.Yq)((0,w.A)(e),Ce),sorter:!0,sortOrder:(0,V.Np)(ln.order)},{width:"3%",title:"",dataIndex:"",key:"x",onCell:()=>({style:{padding:0}}),render:(e,t)=>{var n,r,l,o,i,c,d,m;const p=t.folder[0]||null,u={icon:a.createElement(f.A,{style:{fontSize:18}}),label:Ce("New emails"),key:Z.y2,onClick:e=>vn(e,t)},h=null===T||void 0===T?void 0:T.map((e=>({icon:a.createElement(C.A,{style:{fontSize:18}}),label:e.name,key:e.id,className:e.id,onClick:e=>vn(e,t)}))),w=(null===h||void 0===h?void 0:h.filter((e=>!p||e.key!==p)))||[];p&&(null===w||void 0===w||w.unshift(u));let L=[];return(Ve||Oe||(null===(n=Le.id)||void 0===n?void 0:n.toString())===(null===(r=t.author)||void 0===r?void 0:r.toString()))&&!ot&&L.push({label:a.createElement(M.A,{key:"Lock",element:t}),icon:t.lock?a.createElement(v.A,{style:{fontSize:"16px"}}):a.createElement(b.A,{style:{fontSize:"16px"}})}),(Ve||Oe||(null===(l=Le.id)||void 0===l?void 0:l.toString())===(null===(o=t.author)||void 0===o?void 0:o.toString()))&&!ot&&w.length>0&&L.push({label:Ce("Transfer to folder"),icon:a.createElement(C.A,{style:{fontSize:"16px"}}),children:w}),!ot&&L.push({label:a.createElement(k.N_,{to:de(je,t)},Ce("Edit")),icon:a.createElement(E.A,{style:{fontSize:"16px"}}),key:"Enter",className:"em-analytics__email-enter"},{label:Ce("Clone"),key:"Clone",icon:a.createElement(y.A,{style:{fontSize:"16px"}}),className:"em-analytics__email-clone",disabled:Qe.isLoading,onClick:()=>Cn(t)}),(Ve||Oe||(null===(i=Le.id)||void 0===i?void 0:i.toString())===(null===(c=t.author)||void 0===c?void 0:c.toString()))&&ot&&L.push({label:Ce("Recover"),icon:a.createElement(_.A,{style:{fontSize:"16px"}}),key:"Recover",onClick:()=>fn(t)}),(Ve||Oe||(null===(d=Le.id)||void 0===d?void 0:d.toString())===(null===(m=t.author)||void 0===m?void 0:m.toString()))&&L.push({label:Ce("Remove"),icon:a.createElement(g.A,{style:{fontSize:"16px"}}),key:"Remove",className:"em-analytics__email-remove",style:{color:"#ff4d4f"},onClick:()=>bn(t)}),a.createElement(s.A,{arrow:"true",placement:"bottom",menu:{items:L},trigger:["hover"]},a.createElement("span",{className:"projects-table__actions"},a.createElement(A.A,null)))}}],[yn,_n]=(0,a.useState)(!1);(0,a.useEffect)((()=>{var e,t;for(let n in Be)if(n||""===n||0===n.length){_n(!0),gn({...Be,folderTag:r,page:1});break}(null!==(e=Be.tags)&&void 0!==e&&e.length||Be.name)&&gn({...Be,folderTag:r,page:1}),null!==(t=Be.group)&&void 0!==t&&t.length&&ft({...Be,group:Be.group,page:1,pageSize:Z.mU})}),[Be,Ee,r,ot,gn,n]);const[An,wn]=(0,a.useState)(!1),[kn]=(0,Q.mI)(),[Ln]=(0,ee.dS)(),{data:Sn}=(0,L.KC)(),xn=async e=>{const t=e[0];try{wn(!0);const e=await(0,oe.q2)(t,(async(e,t)=>{try{const n=await(0,oe.zn)(e,kn);if(!n)return"string"===typeof e?e:"";const a=(0,oe.Qm)(t,n.type,x),r=new File([n],a.toLowerCase()),l=await Ln({user_id:Le.id,folder:Sn.id,file:r});return(0,oe.$K)(l,e)}catch(gt){return"string"===typeof e?e:""}}),((e,n,a)=>{e.title=e.title||(0,ie.Ay)(t.name)[0],a.commit()})),[n]=(0,ie.Ay)(t.name),r=(0,V.ez)(e)||n||"";return Je({title:r,project:Sn.id,subject:r,description:"",html:e,parent_email:Z.iU,folder:[]}).then((e=>{e&&(e.error?He.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:a.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"}):(De(`/projects/${Sn.id}/emails/${e.data.id}`),qe({event:"upload_file",action:"import_email"})))})).finally((()=>wn(!1)))}catch(n){wn(!1);const e=n instanceof Error?n.message:n;He.error({message:a.createElement("div",{dangerouslySetInnerHTML:{__html:e}}),placement:"bottomRight"})}};return a.createElement("div",{className:"project-page__list"},n&&a.createElement("div",{className:"project-page__cards-grid create-buttons"},a.createElement(c.A,{className:"element-card element-card_email element-card_template element-card_template-empty",hoverable:!0,style:{cursor:"pointer"},cover:a.createElement("div",{className:"element-card__empty-template"},a.createElement(q.A,{icon:"NewEmail"}),a.createElement("div",{className:"element-card__empty-template__text"},a.createElement("div",{className:"element-card__empty-template__title"},Ce("Blank template")),a.createElement("div",{className:"element-card__empty-template__description"},Ce("Start from scratch")))),onClick:()=>{return e=278056,qe({event:"select",action:"create_new_email",template_id:"0",description:"Create new email from scratch (template = 0)"}),Pe.set(Z.A9.em_new_email,e),t&&(window.localStorage.setItem(Z.V0.em_active_tab,t),window.localStorage.setItem(Z.V0.em_ai_settings,t)),void(0,V.XZ)(De,lt);var e,t}}),a.createElement(c.A,{className:"element-card element-card_email element-card_template element-card_template-empty",hoverable:!0,style:{cursor:"pointer"},loading:An,cover:a.createElement("div",{className:"element-card__empty-template"},a.createElement(q.A,{icon:"Import"}),a.createElement("div",{className:"element-card__empty-template__text"},a.createElement("div",{className:"element-card__empty-template__title"},Ce("Import email")),a.createElement("div",{className:"element-card__empty-template__description"},Ce("Work with your markup"))," ")),onClick:()=>{qe({event:"click",action:"import_email"}),(0,oe.QM)("application/zip, message/rfc822, text/html",xn)}}),a.createElement(c.A,{className:"element-card element-card_email element-card_template element-card_template-empty",hoverable:!0,style:{cursor:"pointer"},cover:a.createElement("div",{className:"element-card__empty-template"},a.createElement(q.A,{icon:"generationAI"}),a.createElement("div",{className:"element-card__empty-template__text"},a.createElement("div",{className:"element-card__empty-template__title"},Ce("AI email generation")),a.createElement("div",{className:"element-card__empty-template__description"},Ce("Creating an email on request")," "))),onClick:()=>Ee((0,X.qf)(Z.lx.ADD_NEW_AI_EMAIL))})),n&&(!!Ue||!!$e.length)&&a.createElement("div",{className:"element-card__group-tag-wrapper"},a.createElement(d.A,{gap:"10px",style:{marginBottom:15,marginLeft:4},wrap:!0},$e.map((e=>a.createElement(i.A,{className:"blue-color element-card__group-tag",key:e.key,color:"#1677ff"},e.name," ",a.createElement(q.A,{onClick:()=>{const t=$e.filter((t=>t.key!==e.key));Ee(Ie.length?(0,ae.es)(t):(0,ae.BN)(t)),Ee((0,ne.ry)({[Ie.length?"group":"projectGroup"]:t,[Ie.length?"projectGroup":"group"]:[]}))},icon:"CloseTag"})))),$e.length>1&&a.createElement(i.A,{className:"blue-color element-card__group-tag element-card__group-tag_close"},Ce("Clear all")," ",a.createElement(q.A,{onClick:()=>{Ee((0,ae.mb)()),Ee((0,ne.ry)({group:[],projectGroup:[]}))},icon:"CloseAll"})))),sn&&!(null!==hn&&void 0!==hn&&hn.length)&&a.createElement(m.A,{active:!0}),cn&&a.createElement(p.A,{message:Ce("Error"),description:Ce("Error when receiving data. Try again (reload page) or contact support."),type:"error",showIcon:!0}),!sn&&!dn&&0===(null===hn||void 0===hn?void 0:hn.length)&&(yn||$>0?a.createElement(p.A,{message:Ce("Emails not found"),description:"",type:"info",showIcon:!0}):r!==Z.y2?a.createElement(p.A,{message:Ce("You don't have any emails in this folder."),description:Ce("Add your first email to the folder..."),type:"info",showIcon:!0}):a.createElement(p.A,{message:Ce("You don't have any emails yet."),description:Ce("Add your first email by clicking the Create a new email button."),type:"info",showIcon:!0})),(null===hn||void 0===hn?void 0:hn.length)>0&&t===Z.rl&&a.createElement(u.A,{rowKey:e=>e.id,bordered:!0,dataSource:hn,columns:En,loading:dn||at,onChange:(e,t,{order:n,field:a},{action:r})=>{"sort"===r&&gn(n?{page:ln.page||1,order:(0,V.gq)(n),orderby:a,pageSize:Z.mU}:{page:ln.page||1,pageSize:Z.mU})},showSizeChanger:!1,pageSize:Z.mU,pagination:{current:ln.page||1,total:un,hideOnSinglePage:!0,showSizeChanger:!1,pageSize:Z.mU,position:["bottomLeft"],onChange:(t,n)=>gn({projectId:e,page:t,pageSize:n})}}),((null===hn||void 0===hn?void 0:hn.length)>0||on)&&t===Z.Y$&&a.createElement(a.Fragment,null,(dn||at||An)&&a.createElement("div",{className:"project-page__loader"},a.createElement(W.A,{small:!0})),a.createElement("div",{className:"project-page__cards-grid"},hn&&hn.map((e=>n?a.createElement(z,{key:e.id,element:e,setSearchFilters:F}):a.createElement(N.A,{key:e.id,element:e,setSearchFilters:F,isTrash:ot,foldersList:T,refetch:ht,projectTags:P,foldersHandlers:{handleRemove:bn,handleRecover:fn,handleClone:Cn,handlerChangeFolder:vn}})))),a.createElement(h.A,{current:ln.page||1,total:un,hideOnSinglePage:!0,showSizeChanger:!1,pageSize:Z.mU,onChange:(e,t)=>gn({page:e,pageSize:t})})),a.createElement(Y,null))}},93718:(e,t,n)=>{var a={"./en_US.ts":[53640,2466],"./ru_RU.ts":[48755,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:()=>{}}]);
|