@emailmaker/emailmaker 1.0.66 → 1.0.67-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +1 -1
  2. package/asset-manifest.json +17 -19
  3. package/emailmaker-esm.js +1 -1
  4. package/emailmaker.d.ts +17 -1
  5. package/emailmaker.js +1 -1
  6. package/iframe/429.js +1 -1
  7. package/iframe/766.js +1 -1
  8. package/iframe/{iframe-eblock.8a49c7ae6b7ddbda68c6.html → iframe-eblock.3cf090aa091ec5177b19.html} +1 -1
  9. package/iframe/iframe.3cf090aa091ec5177b19.html +1 -0
  10. package/iframe/js/882.b62a2ae2.js +1 -0
  11. package/iframe/js/97.e25e3e41.js +1 -0
  12. package/iframe/sandbox-eblock.js +1 -1
  13. package/package.json +1 -1
  14. package/plugin.html +14 -14
  15. package/plugin_blocks_test.html +1 -1
  16. package/plugin_default.html +1 -1
  17. package/plugin_idigital.html +1 -1
  18. package/plugin_s.html +1 -1
  19. package/static/js/2117.ff58a29c.js +2 -0
  20. package/static/js/{6155.6fa7365b.js → 2327.83204f0b.js} +1 -1
  21. package/static/js/{3017.cd784f0e.chunk.js → 3017.d856ce23.chunk.js} +1 -1
  22. package/static/js/3600.0a45f914.js +1 -0
  23. package/static/js/6271.209b3f52.js +1 -0
  24. package/static/js/7298.310f64b1.js +2 -0
  25. package/static/js/{7352.530c404f.chunk.js → 7352.b97015c8.chunk.js} +2 -2
  26. package/static/js/{8084.be8b9fa1.chunk.js → 8084.67de697a.chunk.js} +1 -1
  27. package/static/js/{emailmaker_core.f50f1912.js → emailmaker_core.8676029f.js} +2 -2
  28. package/static/js/mocks.c196c616.chunk.js +1 -0
  29. package/translations.pot +20 -20
  30. package/iframe/iframe.8a49c7ae6b7ddbda68c6.html +0 -1
  31. package/iframe/js/882.0af3b11d.js +0 -1
  32. package/iframe/js/97.0d035714.js +0 -1
  33. package/static/js/2150.ad9a6d86.js +0 -2
  34. package/static/js/3600.ff635aee.js +0 -1
  35. package/static/js/5052.b304d1ad.chunk.js +0 -1
  36. package/static/js/7419.2ade6de6.js +0 -1
  37. package/static/js/8411.01fb7c30.js +0 -2
  38. package/static/js/ant-locale/locale-ru_RU-js.a1cd5bb3.chunk.js +0 -1
  39. package/static/js/mocks.4e11136d.chunk.js +0 -1
  40. /package/iframe/js/{882.0af3b11d.js.LICENSE.txt → 882.b62a2ae2.js.LICENSE.txt} +0 -0
  41. /package/static/js/{8411.01fb7c30.js.LICENSE.txt → 2117.ff58a29c.js.LICENSE.txt} +0 -0
  42. /package/static/js/{2150.ad9a6d86.js.LICENSE.txt → 7298.310f64b1.js.LICENSE.txt} +0 -0
  43. /package/static/js/{7352.530c404f.chunk.js.LICENSE.txt → 7352.b97015c8.chunk.js.LICENSE.txt} +0 -0
  44. /package/static/js/{emailmaker_core.f50f1912.js.LICENSE.txt → emailmaker_core.8676029f.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- (globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[7419],{88647:(e,t,a)=>{"use strict";a.d(t,{h:()=>i});var n,l=a(98173);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},r.apply(null,arguments)}function o({title:e,titleId:t,...a},o){return l.createElement("svg",r({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",ref:o,"aria-labelledby":t},a),e?l.createElement("title",{id:t},e):null,n||(n=l.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=l.forwardRef(o);a.p},77778:(e,t,a)=>{var n={"./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":[38379,2248],"./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":[68936],"./vi_VN.js":[43142,1241],"./zh_CN.js":[56721,9169],"./zh_HK.js":[29319,197],"./zh_TW.js":[85180,4813]};function l(e){if(!a.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],l=t[0];return Promise.all(t.slice(1).map(a.e)).then((()=>a(l)))}l.keys=()=>Object.keys(n),l.id=77778,e.exports=l},81509:(e,t,a)=>{"use strict";function n(e,t,a){const n=[];if(a&&(t=t.filter((e=>e.isVariable))),t.length){const a=function(e,t){const a=t.reduce(((e,{mapFn:t,start:a,end:n,syntax:l})=>(e[a]?e[a].push({value:n,mapFn:t,syntax:l}):e[a]=[{value:n,mapFn:t,syntax:l}],e)),Object.create(null)),n=new RegExp(t.map((({start:e})=>`(${e.replace(/[-[\]{}()*+?.,\\^$|]/g,"\\$&")})`)).join("|"),"g");return[...e.matchAll(n)].map((e=>({start:e.index,startToken:e[0],endTokens:a[e[0]]})))}(e,t);for(let t=0,l=a.length;t<l;t++){const{start:r,startToken:o,endTokens:i}=a[t];for(const{mapFn:s,value:c,syntax:d}of i){let o=e.indexOf(c,r);if(o>=0){for(let n=t+1;n<l;n++){const{start:t,startToken:l,endTokens:r}=a[n];r.some((e=>e.syntax===d))&&t<o&&(o=e.indexOf(c,o+1))}if(o>=0){const i=o+c.length,d=e.substring(r,i),m=s(d);!1!==m&&d!==m&&n.push({text:m,range:{start:r,end:i}});const u=a.findIndex((({start:e})=>e>=i));t=u>t?u-1:l;break}}}}}return n}function l(e,t){const a=[e];for(let n=t.length-1;n>=0;n--){const{text:e,range:l}=t[n],r=a[0];a.splice(0,1,r.substring(0,l.start),e,r.substring(l.end))}return a.join("")}function r(e){return`\x3c!--${e}--\x3e`}function o(e){return e.substring(4,e.length-3)}a.d(t,{Hk:()=>c,uI:()=>d});const i=/#set\s*\(\s*.*=.*\)/gm,s=/<!--#set\s*\(\s*.*=.*\)-->/gm,c=e=>{e.escape("\x3c!--","--\x3e",(e=>e),!1),e.escape("<style","</style>",(e=>e),!1),e.escape("<script","<\/script>",(e=>e),!1),e.escape("@{","}",r,!0).unescape("\x3c!--@{","}--\x3e",o,!0),e.unescape("\x3c!--%%%{{{","}}}%%%--\x3e",(e=>e.substring(10,e.length-9)),!1),e.escape("{%","%}",r,!0).unescape("\x3c!--{%","%}--\x3e",o,!0),e.escape("{#","#}",r,!0).unescape("\x3c!--{#","#}--\x3e",o,!0),e.escape("[[","]]",r,!0).unescape("\x3c!--[[","]]--\x3e",o,!0),e.createSyntax("ExpertSender").escape("<if",">",r).escape("</if",">",r).escape("<else",">",r).escape("</else",">",r).escape("<var ",">",r,!0).unescape("\x3c!--<if ",">--\x3e",o).unescape("\x3c!--</if",">--\x3e",o).unescape("\x3c!--<else ",">--\x3e",o).unescape("\x3c!--</else",">--\x3e",o).unescape("\x3c!--<var",">--\x3e",o,!0),e.createSyntax("velocity").escape("#if","#end",r).escape("#set",")",(e=>!!e.match(i)&&r(e)),!0).escape("#foreach","#end",r).escape("#macro","#end",r).unescape("\x3c!--#if","#end--\x3e",o).unescape("\x3c!--#set",")--\x3e",(e=>!!e.match(s)&&o(e)),!0).unescape("\x3c!--#foreach","#end--\x3e",o).unescape("\x3c!--#macro","#end--\x3e",o),e.escape("*|","|*",r,!0).unescape("\x3c!--*|","|*--\x3e",o,!0)};class d{constructor(e=c){this._disposables=[],this._escapes=[],this._unescapes=[];const{_escapes:t,_unescapes:a}=this;e({createSyntax(e){return{...this,syntax:e}},escape(e,a,n,l){return t.push({start:e,end:a,mapFn:n,isVariable:l,syntax:this.syntax||e}),this},unescape(e,t,n,l){return a.push({start:e,end:t,mapFn:n,isVariable:l,syntax:this.syntax||e}),this}})}getMappings(e,t){return n(e,this._escapes,t)}getRevertMappings(e,t){return n(e,this._unescapes,t)}getEscapedText(e,t){return l(e,this.getMappings(e,t))}getUnescapedText(e,t){return l(e,this.getRevertMappings(e,t))}addDisposable(e){this._disposables.push(e)}dispose(){for(const e of this._disposables)e.dispose()}}},9008:(e,t,a)=>{"use strict";let n;async function l(){return n||(n=await a.e(1729).then(a.t.bind(a,1729,19)).then((e=>e.default)))}a.d(t,{F:()=>l})},44779:(e,t,a)=>{"use strict";a.d(t,{C:()=>r,R:()=>l});var n=a(90717);function l(e){const t=(0,n.xy)(e);if(!e.querySelector("style[amp4email-boilerplate]")){const a=e.createElement("style");a.setAttribute("amp4email-boilerplate",""),a.innerHTML="body{visibility:hidden}",t.prepend(a)}}function r(e){const t=e.querySelector("style[amp4email-boilerplate]");t&&t.remove()}},1511:(e,t,a)=>{"use strict";a.d(t,{Vq:()=>r,gP:()=>n,zq:()=>l});const n="https://cdn.ampproject.org/v0",l=`${n}.js`,r=`script[src='${l}']`},46496:(e,t,a)=>{"use strict";a.d(t,{C:()=>l});var n=a(90717);function l(e){let t=e.querySelectorAll("meta");for(const n of t){const e=n.getAttribute("charset");if(e)return void("utf-8"!==e&&n.setAttribute("charset","utf-8"))}const a=(0,n.xy)(e),l=e.createElement("meta");l.setAttribute("charset","utf-8"),a.insertBefore(l,a.firstChild)}},16341:(e,t,a)=>{"use strict";function n(e,t,a){const n=a('script:not([type="application/ld+json"])'),l=e.querySelectorAll(n);for(const o of l){var r;null!==(r=o.getAttribute("src"))&&void 0!==r&&r.startsWith("https://cdn.ampproject.org/")||o.closest("amp-state")&&"application/json"===o.getAttribute("type")||o.remove()}}a.d(t,{y:()=>n})},90717:(e,t,a)=>{"use strict";function n(e){let t=e.documentElement;return t||(t=e.createElement("html"),e.appendChild(t)),t}function l(e){let t=e.head;if(!t){t=e.createElement("head");let a=n(e);a.insertBefore(t,a.firstChild)}return t}function r(e){const t=Object.create(null),a=e.getAttributeNames();for(const n of a)t[n]=e.getAttribute(n);return t}function o(e){for(const t of document.querySelectorAll("iframe"))if(t.contentDocument===e.ownerDocument)return t}a.d(t,{ep:()=>n,gu:()=>r,xm:()=>o,xy:()=>l})},80599:(e,t,a)=>{"use strict";a.d(t,{H:()=>n});class n{constructor(e){this._voidElements=void 0,this._voidElements=new Set(e)}isVoidElement(e,t){return this._voidElements.has(e.toLowerCase())}}},39244:(e,t,a)=>{"use strict";a.d(t,{X:()=>k});var n=a(83304);let l;!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"}(l||(l={}));class r{constructor(e,t){this.source=void 0,this.len=void 0,this.position=void 0,this.source=e,this.len=e.length,this.position=t}eos(){return this.len<=this.position}getSource(){return this.source}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}goToEnd(){this.position=this.source.length}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)}advanceIfChars(e){let t;if(this.position+e.length>this.source.length)return!1;for(t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceIfRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index+t[0].length,t[0]):""}advanceUntilRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index,t[0]):(this.goToEnd(),"")}advanceUntilChar(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1}advanceUntilChars(e){for(;this.position+e.length<=this.source.length;){let t=0;for(;t<e.length&&this.source.charCodeAt(this.position+t)===e[t];t++);if(t===e.length)return!0;this.advance(1)}return this.goToEnd(),!1}skipWhitespace(){return this.advanceWhileChar((e=>e===b||e===v||e===g||e===f||e===h))>0}advanceWhileChar(e){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}}const o="!".charCodeAt(0),i="-".charCodeAt(0),s="<".charCodeAt(0),c=">".charCodeAt(0),d="/".charCodeAt(0),m="=".charCodeAt(0),u='"'.charCodeAt(0),p="'".charCodeAt(0),g="\n".charCodeAt(0),h="\r".charCodeAt(0),f="\f".charCodeAt(0),b=" ".charCodeAt(0),v="\t".charCodeAt(0),E={"text/x-handlebars-template":!0,"text/html":!0};function C(e,t=0,a=n.S5.WithinContent,g=!1){const h=new r(e,t);let f,b,v,C,y,_=a,A=0,w=l.Unknown;function k(){return h.advanceIfRegExp(/^[_:a-zA-Z][_:\w-.\d]*/).toLowerCase()}function S(e,t,a){return w=t,A=e,f=a,t}function L(){const e=h.pos();if(h.eos())return S(e,l.EOS);let t;switch(_){case n.S5.WithinComment:return h.advanceIfChars([i,i,c])?(_=n.S5.WithinContent,S(e,l.EndCommentTag)):(h.advanceUntilChars([i,i,c]),S(e,l.Comment));case n.S5.WithinDoctype:return h.advanceIfChar(c)?(_=n.S5.WithinContent,S(e,l.EndDoctypeTag)):(h.advanceUntilChar(c),S(e,l.Doctype));case n.S5.WithinContent:if(h.advanceIfChar(s)){if(!h.eos()&&h.peekChar()===o){if(h.advanceIfChars([o,i,i]))return _=n.S5.WithinComment,S(e,l.StartCommentTag);if(h.advanceIfRegExp(/^!doctype/i))return _=n.S5.WithinDoctype,S(e,l.StartDoctypeTag)}return h.advanceIfChar(d)?(_=n.S5.AfterOpeningEndTag,S(e,l.EndTagOpen)):(_=n.S5.AfterOpeningStartTag,S(e,l.StartTagOpen))}return h.advanceUntilChar(s),S(e,l.Content);case n.S5.AfterOpeningEndTag:return k().length>0?(_=n.S5.WithinEndTag,S(e,l.EndTag)):h.skipWhitespace()?S(e,l.Whitespace,"Tag name must directly follow the open bracket."):(_=n.S5.WithinEndTag,h.advanceUntilChar(c),e<h.pos()?S(e,l.Unknown,"End tag name expected."):L());case n.S5.WithinEndTag:if(h.skipWhitespace())return S(e,l.Whitespace);if(h.advanceIfChar(c))return _=n.S5.WithinContent,S(e,l.EndTagClose);if(g&&h.peekChar()===s)return _=n.S5.WithinContent,S(e,l.EndTagClose,"Closing bracket missing.");t="Closing bracket expected.";break;case n.S5.AfterOpeningStartTag:return v=k(),y=void 0,C=void 0,v.length>0?(b=!1,_=n.S5.WithinTag,S(e,l.StartTag)):h.skipWhitespace()?S(e,l.Whitespace,"Tag name must directly follow the open bracket."):(_=n.S5.WithinTag,h.advanceUntilChar(c),e<h.pos()?S(e,l.Unknown,"Start tag name expected."):L());case n.S5.WithinTag:return h.skipWhitespace()?(b=!0,S(e,l.Whitespace)):b&&(C=h.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase(),C.length>0)?(_=n.S5.AfterAttributeName,b=!1,S(e,l.AttributeName)):h.advanceIfChars([d,c])?(_=n.S5.WithinContent,S(e,l.StartTagSelfClose)):h.advanceIfChar(c)?(_="script"===v?y&&E[y]?n.S5.WithinContent:n.S5.WithinScriptContent:"style"===v?n.S5.WithinStyleContent:n.S5.WithinContent,S(e,l.StartTagClose)):g&&h.peekChar()===s?(_=n.S5.WithinContent,S(e,l.StartTagClose,"Closing bracket missing.")):(h.advance(1),S(e,l.Unknown,"Unexpected character in tag."));case n.S5.AfterAttributeName:return h.skipWhitespace()?(b=!0,S(e,l.Whitespace)):h.advanceIfChar(m)?(_=n.S5.BeforeAttributeValue,S(e,l.DelimiterAssign)):(_=n.S5.WithinTag,L());case n.S5.BeforeAttributeValue:if(h.skipWhitespace())return S(e,l.Whitespace);let a=h.advanceIfRegExp(/^[^\s"'`=<>]+/);if(a.length>0)return h.peekChar()===c&&h.peekChar(-1)===d&&(h.goBack(1),a=a.substr(0,a.length-1)),"type"===C&&(y=a),_=n.S5.WithinTag,b=!1,S(e,l.AttributeValue);const r=h.peekChar();return r===p||r===u?(h.advance(1),h.advanceUntilChar(r)&&h.advance(1),"type"===C&&(y=h.getSource().substring(e+1,h.pos()-1)),_=n.S5.WithinTag,b=!1,S(e,l.AttributeValue)):(_=n.S5.WithinTag,b=!1,L());case n.S5.WithinScriptContent:let f=1;for(;!h.eos();){const t=h.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(0===t.length)return h.goToEnd(),S(e,l.Script);if("\x3c!--"===t)1===f&&(f=2);else if("--\x3e"===t)f=1;else if("/"!==t[1])2===f&&(f=3);else{if(3!==f){h.goBack(t.length);break}f=2}}return _=n.S5.WithinContent,e<h.pos()?S(e,l.Script):L();case n.S5.WithinStyleContent:return h.advanceUntilRegExp(/<\/style/i),_=n.S5.WithinContent,e<h.pos()?S(e,l.Styles):L()}return h.advance(1),_=n.S5.WithinContent,S(e,l.Unknown,t)}return{scan:function(){const e=h.pos(),t=L();return t===l.EOS||e!==h.pos()||g&&(t===l.StartTagClose||t===l.EndTagClose)?t:(h.advance(1),S(e,l.Unknown))},getTokenType:()=>w,getTokenOffset:()=>A,getTokenLength:()=>h.pos()-A,getTokenEnd:()=>h.pos(),getTokenText:()=>h.getSource().substring(A,h.pos()),getScannerState:()=>_,getTokenError:()=>f}}var y=a(80599),_=a(37918);function A(e){if("string"===typeof e){const t=e.startsWith("'")||e.startsWith('"')?1:0,a=e.endsWith("'")||e.endsWith('"')?e.length-1:e.length;return e.substring(t,a)}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,a){if(!this.node){const n=this.node=new _.b(e,this.text.length,[],a);n.type=this.type,n.startTagEnd=t,this.replaces=[]}}finish(e,t){const a=this.replaces,n=this.node,l=e+(t||0);if(a){for(const e of a){const t=e.parent;if(!t)throw new Error("parent not defined");const a=t.children.indexOf(e);t.children.splice(a,1)}this.replaces=void 0}if(n){const a=n.parent;if(!a)throw new Error("parent not defined");a.children.push(n),n.closed=void 0!==t,n.endTagStart=e,n.end=l,n.content=this.text.substring(n.startTagEnd,e),this.node=void 0}}}class k{constructor(e){this.dataManager=e}parse(e,t=[]){var a;const n=C(e,void 0,void 0,!0),r=new _.b(0,e.length,[],void 0);r.type=_.Z.ROOT;let o,i=r,s=-1,c=null,d=n.scan();const m=()=>{if(!i.tag){const t=i.parent.children,a=t[t.length-2],n=e.substring(i.start,i.end);(null===a||void 0===a?void 0:a.type)===_.Z.HTML?(a.content=(a.content||"")+n,a.end=i.end,t.splice(t.length-1,1)):(i.type=_.Z.HTML,i.content=n,i.children=[]),i.type=_.Z.HTML}i=i.parent},u=new w(e,_.Z.COMMENT),p=new w(e,_.Z.DOCTYPE),g=e=>{i.children.push(e)};for(;d!==l.EOS;){switch(d){case l.StartDoctypeTag:p.start(n.getTokenOffset(),n.getTokenEnd(),i);break;case l.EndDoctypeTag:{const t=i.lastChild,a=p.node;if(!a)throw new Error("");const l=t?t.end:void 0!==i.startTagEnd?i.startTagEnd:i.start;if(l!==a.start){const t=e.substring(l,a.start);if(t){const e=new _.b(l,a.start,[],i);e.type=_.Z.HTML,e.content=t,g(e)}}p.finish(n.getTokenOffset(),n.getTokenLength());break}case l.StartCommentTag:u.start(n.getTokenOffset(),n.getTokenEnd(),i);break;case l.EndCommentTag:{const t=i.lastChild,a=u.node;if(!a)throw new Error("");const l=t?t.end:void 0!==i.startTagEnd?i.startTagEnd:i.start;if(l!==a.start){const t=e.substring(l,a.start);if(t){const e=new _.b(l,a.start,[],i);e.type=_.Z.HTML,e.content=t,g(e)}}u.finish(n.getTokenOffset(),n.getTokenLength());break}case l.StartTagOpen:const a=i.lastChild,r=new _.b(n.getTokenOffset(),e.length,[],i),d=a?a.end:void 0!==i.startTagEnd?i.startTagEnd:i.start;if(d!==r.start){const t=e.substring(d,r.start);if(t){const e=new _.b(d,r.start,[],i);e.type=_.Z.HTML,e.content=t,g(e)}}g(r),i=r;break;case l.StartTag:i.tag=n.getTokenText();break;case l.StartTagClose:i.parent&&(i.end=n.getTokenEnd(),n.getTokenLength()?(i.startTagEnd=n.getTokenEnd(),i.tag&&this.dataManager.isVoidElement(i.tag,t)&&(i.closed=!0,m())):m());break;case l.StartTagSelfClose:i.parent&&(i.closed=!0,i.end=n.getTokenEnd(),i.startTagEnd=n.getTokenEnd(),m());break;case l.EndTagOpen:s=n.getTokenOffset(),o=void 0;break;case l.EndTag:o=n.getTokenText().toLowerCase();break;case l.EndTagClose:let h=i;for(;!h.isSameTag(o)&&h.parent;)h=h.parent;if(h.parent){const t=i.lastChild,a=t?t.end:void 0===i.startTagEnd?i.start:i.startTagEnd;if(a!==s){const t=e.substring(a,s);if(t){const e=new _.b(a,s,[],i);e.type=_.Z.HTML,e.content=t,g(e)}}for(;i!==h;)i.end=s,i.closed=!1,m();i.closed=!0,i.endTagStart=s,i.end=n.getTokenEnd(),m()}break;case l.AttributeName:{c=n.getTokenText();let e=i.attributes;e||(i.attributes=e={}),e[c]=null;break}case l.AttributeValue:{const e=n.getTokenText(),t=i.attributes;t&&c&&(t[c]=A(e),c=null);break}}d=n.scan()}for(;i.parent;)i.end=e.length,i.closed=!1,m();u.hasNode,u.finish(e.length);const h=(null===(a=r.lastChild)||void 0===a?void 0:a.end)||0;if(h<e.length){const t=e.substring(h);if(t){const a=new _.b(h,e.length,[],r);a.type=_.Z.HTML,a.content=t,g(a)}}return{roots:r.children,findNodeBefore:r.findNodeBefore.bind(r),findNodeAt:r.findNodeAt.bind(r)}}}const S=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"];new k(new y.H(S))},37918:(e,t,a)=>{"use strict";a.d(t,{b:()=>o,Z:()=>l});new Set(["area","br","col","embed","hr","img","input","link","meta","param"]);Object.create(null);function n(e,t){let a=0,n=e.length;if(0===n)return 0;for(;a<n;){let l=Math.floor((a+n)/2);t(e[l])?n=l:a=l+1}return a}let l;!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"}(l||(l={}));const r=e=>e.type===l.HTML?e.start-1:e.start;class o{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}get root(){return this.parent?this.parent.root:this}constructor(e,t,a,n){this.start=e,this.end=t,this.children=a,this.parent=n,this.content=void 0,this.type=l.ELEMENT,this.tag=void 0,this.closed=!1,this.startTagEnd=void 0,this.endTagStart=void 0,this.attributes=void 0,this.createdBy=void 0,this.isDirty=void 0}isSameTag(e){return void 0===this.tag?void 0===e:void 0!==e&&this.tag.length===e.length&&this.tag.toLowerCase()===e}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(e){const t=n(this.children,(t=>e<=r(t)))-1;if(t>=0){const a=this.children[t];if(e>r(a)){if(e<a.end)return a.findNodeBefore(e);const t=a.lastChild;return t&&t.end===a.end?a.findNodeBefore(e):a}}return this}findNodeAt(e){const t=n(this.children,(t=>e<=r(t)))-1;if(t>=0){const n=this.children[t];if(e>=r(n)&&e<=((a=n).type===l.HTML?a.end+1:a.end))return n.findNodeAt(e)}var a;return this}find(e){if(e(this))return this;for(const t of this.children){let a=t.find(e);if(a)return a}}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 a=t?[this,...this.parents()]:this.parents();for(let n=a.length-1;n>=0;n--){const t=a[n];if(e(t))return t}}contains(e){return Boolean(e.closest((e=>e===this)))}clone(e=this.parent,t=this.start,a=!0){const n=this.start-t,l=new o(t,this.end-n,[],e);return l.children=a?this.children.map((e=>e.clone(l,e.start-n))):[],l.attributes={...this.attributes},l.closed=this.closed,l.content=this.content,l.startTagEnd=this.startTagEnd,l.endTagStart=this.endTagStart,l.tag=this.tag,l.type=this.type,l}}},65053:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});const n=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e)),l=new Set(["https:","http:","file:"]),r=e=>{try{const{protocol:t}=new URL(e);return t.endsWith(":")&&!t.includes(".")&&!l.has(t)}catch{return!1}},o=(e,{stripHash:t})=>{var a,n;const l=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!l)throw new Error(`Invalid URL: ${e}`);let{type:r,data:o,hash:i}=l.groups;const s=r.split(";");i=t?"":i;let c=!1;"base64"===s[s.length-1]&&(s.pop(),c=!0);const d=null!==(a=null===(n=s.shift())||void 0===n?void 0:n.toLowerCase())&&void 0!==a?a:"",m=[...s.map((e=>{let[t,a=""]=e.split("=").map((e=>e.trim()));return"charset"===t&&(a=a.toLowerCase(),"us-ascii"===a)?"":`${t}${a?`=${a}`:""}`})).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(r(e))return e;const a=e.startsWith("//");!a&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));const l=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===l.protocol&&(l.protocol="http:"),t.forceHttps&&"http:"===l.protocol&&(l.protocol="https:"),t.stripAuthentication&&(l.username="",l.password=""),t.stripHash?l.hash="":t.stripTextFragment&&(l.hash=l.hash.replace(/#?:~:text.*?$/i,"")),l.pathname){const e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g;let t=0,a="";for(;;){const n=e.exec(l.pathname);if(!n)break;const r=n[0],o=n.index;a+=l.pathname.slice(t,o).replace(/\/{2,}/g,"/"),a+=r,t=o+r.length}a+=l.pathname.slice(t,l.pathname.length).replace(/\/{2,}/g,"/"),l.pathname=a}if(l.pathname)try{l.pathname=decodeURI(l.pathname)}catch{}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=l.pathname.split("/");const a=e[e.length-1];n(a,t.removeDirectoryIndex)&&(e=e.slice(0,-1),l.pathname=e.slice(1).join("/")+"/")}if(l.hostname&&(l.hostname=l.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(l.hostname)&&(l.hostname=l.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(const r of[...l.searchParams.keys()])n(r,t.removeQueryParameters)&&l.searchParams.delete(r);if(Array.isArray(t.keepQueryParameters)||!0!==t.removeQueryParameters||(l.search=""),Array.isArray(t.keepQueryParameters)&&t.keepQueryParameters.length>0)for(const r of[...l.searchParams.keys()])n(r,t.keepQueryParameters)||l.searchParams.delete(r);if(t.sortQueryParameters){l.searchParams.sort();try{l.search=decodeURIComponent(l.search)}catch{}}t.removeTrailingSlash&&(l.pathname=l.pathname.replace(/\/$/,"")),t.removeExplicitPort&&l.port&&(l.port="");const i=e;return e=l.toString(),t.removeSingleSlash||"/"!==l.pathname||i.endsWith("/")||""!==l.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===l.pathname)&&""===l.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),a&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}},58521:(e,t,a)=>{"use strict";a.d(t,{hI:()=>h,u$:()=>g,KU:()=>p});var n=a(96651),l=a(3792),r=a(76233);let o,i,s,c;!function(e){let t,a,n,l;t||(t=e.TasksControllerCreateTask||(e.TasksControllerCreateTask={})),a||(a=e.TasksControllerGetTask||(e.TasksControllerGetTask={})),n||(n=e.TasksControllerGetEmail||(e.TasksControllerGetEmail={})),l||(l=e.TasksControllerGetEmailHtml||(e.TasksControllerGetEmailHtml={}))}(o||(o={})),function(e){let t,a,n,l,r,o;t||(t=e.ManParseControllerLogoGen||(e.ManParseControllerLogoGen={})),a||(a=e.ManParseControllerSite||(e.ManParseControllerSite={})),n||(n=e.ManParseControllerColor||(e.ManParseControllerColor={})),l||(l=e.ManParseControllerStyle||(e.ManParseControllerStyle={})),r||(r=e.ManParseControllerColorScheme||(e.ManParseControllerColorScheme={})),o||(o=e.ManParseControllerImage||(e.ManParseControllerImage={}))}(i||(i={})),function(e){let t,a;t||(t=e.MaintenanceControllerReloadBlocks||(e.MaintenanceControllerReloadBlocks={})),a||(a=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,a)=>{const n=e[a];return t.append(a,n instanceof Blob?n:"object"===typeof n&&null!==n?JSON.stringify(n):`${n}`),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:a,type:n,query:l,format:r,baseUrl:o,cancelToken:i,extraQuery:s,...d})=>{const m=("boolean"===typeof t?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(d,m);s&&(l=l?{...l,...s}:s);const p=l&&this.toQueryString(l),g=this.contentFormatters[n||c.Json],h=r||u.format,f=new Request(`${o||this.baseUrl||""}${a}${p?`?${p}`:""}`,{...u,headers:{...u.headers||{},...n&&n!==c.FormData?{"Content-Type":n}:{}},signal:(i?this.createAbortSignal(i):u.signal)||null,body:"undefined"===typeof e||null===e?null:g(e)});return this.customFetch(f).then((async e=>{const t=e;t.data=null,t.error=null,t.meta={request:f,response:t};const a=h?await e[h]().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),a}))},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 u=a(74029);const p=e=>l.di.getInstance(e,u.Pz),g=e=>l.di.getOrCreateInstance(e,u.Bl,(()=>new m({baseUrl:"https://ai-mail.emcdn.ru"})));function h(e){return(t,a,o)=>{const i=l.di.getInstance(a,r.no);return(0,n.fetchBaseQuery)({...e,fetchFn:(null===i||void 0===i?void 0:i.execute)||fetch})(t,a,o)}}},13668:(e,t,a)=>{"use strict";a.d(t,{Kp:()=>n,Sb:()=>r,_1:()=>l});const n="SAVE",l="SHOW",r="NOTIFY"},39100:(e,t,a)=>{"use strict";a.d(t,{Y:()=>w});var n=a(98173),l=a(94043),r=a(12543),o=a(28973),i=a(12005),s=a(2604),c=a(61334),d=a.n(c),m=a(47014),u=a(32947),p=a(16390),g=a(64909),h=a(73180),f=a(90614),b=a(15626),v=a(3326);const E="locale",C="ant_locale",y="em_locale",_="em_ant_locale",A="em_mergeTags_locale",w=({children:e})=>{const[t,c]=(0,n.useState)((()=>(0,l.hU)())),[w,k]=(0,n.useState)(),[S,L]=(0,n.useState)(!0),x=(0,s.d4)(m.B),[T,I]=(0,i.HO)(),[N,R]=(0,i.Yj)(),B=(0,s.wA)(),M=(0,g.hN)(),O=x||(u.EW.isPlugin?void 0:"ru_RU");(0,n.useEffect)((()=>{try{let e=JSON.parse(localStorage.getItem(y));e||(e=JSON.parse(localStorage.getItem(E)),e&&(localStorage.removeItem(E),localStorage.setItem(y,JSON.stringify(e)))),c((0,l.hU)(e.data)),L(!1)}catch{L(!0)}try{let e=JSON.parse(localStorage.getItem(_));e||(e=JSON.parse(localStorage.getItem(C)),e&&(localStorage.removeItem(C),localStorage.setItem(_,JSON.stringify(e)))),k(e.data)}catch{}if(!u.EW.isPlugin)try{const e=JSON.parse(localStorage.getItem(A));B((0,p.Kj)(e.data))}catch{}}),[k,L,c,B]),(0,n.useEffect)((()=>{O&&a(77778)(`./${"uk"===O?"uk_UA":O}.js`).then((e=>{k(e.default),localStorage.setItem(_,JSON.stringify(e.default))}))}),[k,O]),(0,n.useEffect)((()=>{u.EW.isPlugin||O&&a(93718)(`./${"uk"===O?"uk_UA":O}.ts`).then((e=>{B((0,p.Kj)(e.default)),localStorage.setItem(A,JSON.stringify(e.default))}))}),[O,B]),(0,h.Z)((([e])=>{!e&&I.error&&M.fromError("GET_LOCALES_ERROR",void 0,I.error)}),[I.error,M]);const P=(0,f.ml)(b.AZ.READ_LOCALE),[H,V]=(0,n.useState)(!1);return(0,h.Z)((([e])=>{O!==e&&O&&P.fire(O).then((e=>{const t=e[0];if(t){var a;const e=null===(a=d()(t,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===a?void 0:a.locale_data.default;c((0,l.hU)(e)),V(!0)}else I.isSuccess?N({id:O}):T(void 0)}))}),[O,P,I,c,V]),(0,n.useEffect)((()=>{if(I.isSuccess){const e=I.data;if(O){const t=e.filter((([e])=>e===O));if(!t.length)return void V(!0);try{const e=JSON.parse(localStorage.getItem(y));if(t.every((([t,a])=>e.id===t&&a<=e.time)))return void V(!0)}catch{}N({id:O})}}}),[O,I,N,M,V]),(0,h.Z)((([e])=>{!e&&R.isError&&M.fromError("GET_LOCALE_ERROR",void 0,R.isError)}),[R.isError,M]),(0,n.useEffect)((()=>{if(I.isSuccess&&R.isSuccess){var e;if(R.originalArgs.id!==O)return;const t=I.data.filter((([e])=>e===O)),a=R.data,n=null===(e=d()(a,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===e?void 0:e.locale_data.default;try{localStorage.setItem(y,JSON.stringify({id:O,time:t[0][1],data:n}))}catch{}c((0,l.hU)(n)),V(!0)}}),[R,O,I,c,M,V]),n.createElement(r.CY,{i18n:t},n.createElement(v.r4.Provider,{value:S||H},n.createElement(o.Ay,{locale:w},e)))}},3326:(e,t,a)=>{"use strict";a.d(t,{LG:()=>o,ZU:()=>s,fh:()=>r,or:()=>l,r4:()=>i});var n=a(98173);const l=(0,n.createContext)({element:void 0}),r=(0,n.createContext)(void 0),o=()=>(0,n.useContext)(r),i=(0,n.createContext)(!1),s=()=>(0,n.useContext)(i)},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</style>\n<table cellpadding="0" cellspacing="0" border="0" width="100%" 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%" 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})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <amp-carousel width="800" height="600" layout="responsive" type="slides" controls>\n <amp-img src="${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='<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td height="0" style="padding: 20px 0 0; border-top: 1px solid #EEEEEE;">&nbsp;</td></tr></table>'},62315:e=>{e.exports=({__:e})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding: 20px 0 10px;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 24px; line-height: 32px; color: #333333;"><strong>${e("Header text")}</strong></div>\n</td></tr></table>`},80465:e=>{e.exports=({__:e})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding-bottom: 10px;">\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tr>\n <td align="left" valign="top" width="10">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">1.</div>\n </td>\n <td width="10">&nbsp;</td>\n <td align="left" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${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})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding-bottom: 10px;">\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tr>\n <td align="left" valign="top" width="10">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">&bull;</div>\n </td>\n <td width="10">&nbsp;</td>\n <td align="left" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${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='<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td height="20"></td></tr></table>'},45848:e=>{e.exports=({__:e})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom">\n <tr>\n <td align="center" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${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})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding-bottom: 10px;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${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;">&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;\u200c&nbsp;</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,a)=>{"use strict";a.d(t,{AO:()=>P,Ai:()=>p,NW:()=>R,RM:()=>u,TW:()=>B,Ze:()=>H,ok:()=>M,xc:()=>O,yy:()=>I});var n=a(98173),l=a(49823),r=a(48300),o=a(10267),i=a(63346),s=a(89715),c=a(61657),d=a(91447),m=a(32947);const u=({linkProtocol:e})=>{switch(e){case"https://":default:return n.createElement(r.A,{rev:""});case"mailto:":return n.createElement(o.A,{rev:""});case"tel:":return n.createElement(i.A,{rev:""});case"sms:":return n.createElement(s.A,{rev:""});case"ftp://":return n.createElement(c.A,{rev:""});case"skype:":return n.createElement(d.A,{rev:""})}},p=({handleLinkProtocolsChange:e,linkProtocol:t,__:a})=>n.createElement(l.A,{style:{width:90,textAlign:"left"},value:t,onChange:e,getPopupContainer:e=>e.parentNode,options:[{value:"https://",label:a("Site")},{value:"mailto:",label:a("E-mail")},{value:"tel:",label:a("Phone")},{value:"sms:",label:a("SMS")},{value:"ftp://",label:a("File")},{value:"skype:",label:a("Skype")},{value:"viber:",label:a("Viber")},{value:"",label:a("Other")}]}),{mobileBorderRadiusAll:g,mobileRadiusTopLeft:h,mobileRadiusBottomLeft:f,mobileRadiusTopRight:b,mobileRadiusBottomRight:v,borderRadiusBottomRight:E,borderRadiusTopRight:C,borderRadiusBottomLeft:y,borderRadiusTopLeft:_,alt:A,src:w,title:k,link:S,borderRadiusAll:L,imgReplacer:x,expanded:T}={link:"link",borderRadiusBottomRight:"borderRadiusBottomRight",borderRadiusTopRight:"borderRadiusTopRight",borderRadiusBottomLeft:"borderRadiusBottomLeft",borderRadiusTopLeft:"borderRadiusTopLeft",mobileBorderRadiusAll:"mobileBorderRadiusAll",mobileRadiusTopLeft:"mobileRadiusTopLeft",mobileRadiusBottomLeft:"mobileRadiusBottomLeft",mobileRadiusTopRight:"mobileRadiusTopRight",mobileRadiusBottomRight:"mobileRadiusBottomRight",alt:"alt",imgReplacer:"imgReplacer",src:"src",title:"title",borderRadiusAll:"borderRadiusAll",expanded:"expanded"},I={paddingTop:"top",paddingLeft:"left",paddingRight:"right",paddingBottom:"bottom",mobilePaddingTop:"top",mobilePaddingLeft:"left",mobilePaddingRight:"right",mobilePaddingBottom:"bottom"},N={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},R={mobileBorderRadiusAll:"all",mobileRadiusTopLeft:"topLeft",mobileRadiusBottomLeft:"bottomLeft",mobileRadiusTopRight:"topRight",mobileRadiusBottomRight:"bottomRight"},B=(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,M=e=>e||(0===e?"0":""),O=e=>e&&"auto"!==e?e:0===e?"0":"";function P(e){var t,a,n,l,r,o,i,s,c,d,m,u,p,g,h,f,b,v,E,C;let y={...e,link:e.link?e.link:"https://",borderRadiusAll:M(null===(t=e.borderRadius)||void 0===t?void 0:t.all),borderRadiusTopLeft:M(null===(a=e.borderRadius)||void 0===a?void 0:a.topLeft),borderRadiusBottomLeft:M(null===(n=e.borderRadius)||void 0===n?void 0:n.bottomLeft),borderRadiusTopRight:M(null===(l=e.borderRadius)||void 0===l?void 0:l.topRight),borderRadiusBottomRight:M(null===(r=e.borderRadius)||void 0===r?void 0:r.bottomRight),mobileBorderRadiusAll:M(null===(o=e.mobileBorderRadius)||void 0===o?void 0:o.all),mobileRadiusTopLeft:M(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),mobileRadiusBottomLeft:M(null!==(null===(d=e.mobileBorderRadius)||void 0===d?void 0:d.bottomLeft)?null===(m=e.mobileBorderRadius)||void 0===m?void 0:m.bottomLeft:null===(u=e.mobileBorderRadius)||void 0===u?void 0:u.all),mobileRadiusTopRight:M(null!==(null===(p=e.mobileBorderRadius)||void 0===p?void 0:p.topRight)?null===(g=e.mobileBorderRadius)||void 0===g?void 0:g.topRight:null===(h=e.mobileBorderRadius)||void 0===h?void 0:h.all),mobileRadiusBottomRight:M(null!==(null===(f=e.mobileBorderRadius)||void 0===f?void 0:f.bottomRight)?null===(b=e.mobileBorderRadius)||void 0===b?void 0:b.bottomRight:null===(v=e.mobileBorderRadius)||void 0===v?void 0:v.all),show:e.show?e.show:"all",altSrc:e.src};var _,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===(E=e.carouselImages)||void 0===E?void 0:E.length)>0){var w;let t={};null===(w=e.carouselImages)||void 0===w||w.map(((e,a)=>(Object.keys(e).forEach((n=>{t[n+"_"+a]=e[n]})),!0))),y.images=t}if((null===(C=e.sections)||void 0===C?void 0:C.length)>0){var k;let t=[];null===(k=e.sections)||void 0===k||k.map(((e,a)=>(t.push({[`expanded_${a}`]:e.expanded}),!0))),y.sections=t}return y}function H(e,t,a){const n=a.hasOwnProperty("images"),l=a.hasOwnProperty("sections"),r=Object.keys(n?a.images:l?a.sections:a)[0],o=n?a.images:l?a.sections:a;let i={};const s=t.getFieldsValue(!0);switch(r.split("_")[0]){case k:case w:case A:case x:if(n){let t=[...e.carouselImages];t[r.split("_")[1]][r.split("_")[0]]=o[r],i={carouselImages:t}}else i=o;break;case T:if(l){let t=[...e.sections];t[r.split("_")[1]][r.split("_")[0]]=o[r],i={sections:t}}break;case S:let a=o[r];"https://http"===a.substring(0,12)&&(a=a.substring(8,a.length)),e.type===m.bV.CAROUSEL?(i.carouselImages=e.carouselImages,n?(t.setFieldValue(["images",[S+"_"+r.split("_")[1]]],a),i.carouselImages[r.split("_")[1]].link=a,i.link="",t.setFieldValue(S,"https://")):(e.carouselImages.forEach(((e,n)=>{t.setFieldValue(["images",S+"_"+n],a),i.carouselImages[n].link=a,i.link=a})),t.setFieldValue(S,a))):(t.setFieldValue(S,a),i.link=a);break;case L:i={borderRadius:{...e.borderRadius,[N[_]]:s[_],[N[y]]:s[y],[N[C]]:s[C],[N[E]]:s[E],[N[r]]:+o[r]}};break;case _:case y:case C:case E:i={borderRadius:{...e.borderRadius,[N[L]]:null,[N[r]]:+o[r]}};break;case g:case h:case f:case b:case v:i={mobileBorderRadius:{...e.mobileBorderRadius,[R[h]]:s[h],[R[f]]:s[f],[R[b]]:s[b],[R[v]]:s[v],[R[r]]:o[r],classNamePrefix:"em-mob-border_radius_"+R[r]+"-"}};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">&nbsp;</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">&nbsp;</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,a)=>{"use strict";a.d(t,{Mu:()=>o,cM:()=>s,rD:()=>i});var n=a(2604),l=a(16390),r=a(39218);function o(e){if(e){const{type:t,project:a,isNew:n,id:l}=e;return`/projects/${a}/${"block"===t?"blocks":"emails"}/${n?`new?template=${l}`:l}`}return""}function i(){return(0,n.d4)(l.zg)}function s(e,t,a){return null!==e&&void 0!==e&&e.length?e.map(((e,n)=>function(e){return e.hasOwnProperty("children")}(e)?{key:(0,r.l)(),value:e.value,label:e.label,children:s(e.children,t,a),type:e.type}:{key:(0,r.l)(),label:e.label,value:e.value,onClick:t=>{a(e.value,t.domEvent)}})):void 0}},96734:(e,t,a)=>{"use strict";a.d(t,{p:()=>r});var n=a(74029),l=a(3792);const r=()=>l.di.useInstance(n.Zw)},3792:(e,t,a)=>{"use strict";a.d(t,{di:()=>o});var n=a(74568),l=a(88296),r=a(80148);const o={getContainer:r.My,createIdentifier:l.Q,reducer:r.Ff,reducerPath:r.IP,getInstance:function(e,t){return(e instanceof n.m?e:(0,r.My)(e)).getInstance(t)},getInstanceAsync:function(e,t){return(e instanceof n.m?e:(0,r.My)(e)).getInstanceAsync(t)},getOrCreateInstance:function(e,t,a){return(e instanceof n.m?e:(0,r.My)(e)).getOrCreateInstance(t,a)},inject:function(e,t,a,n){return(0,r.My)(e).inject(t,a)},addService:function(e,t,a){return(0,r.My)(e).addService(t,a)},getServices:function(e,t){return(0,r.My)(e).getServices(t)},useInject:r.lg,useInstance:r.Nj,useInstanceAsync:r.rl,useServices:r.A$}},50861:(e,t,a)=>{"use strict";a.d(t,{p:()=>l});var n=a(80148);function l(e){return(t,a,l,r)=>{const o=(0,n.My)(a);return e(o)(t,a,l,r)}}},52919:(e,t,a)=>{"use strict";a.d(t,{K9:()=>u,QC:()=>d,XW:()=>m,ur:()=>c});var n=a(35306),l=a(3792),r=a(2604),o=a(88296),i=a(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,r.Pj)();return(0,i.useMemo)((()=>function(e){return l.di.getOrCreateInstance(e,s,(()=>new n.bg))}(e)),[e])}function m(){const e=d();return(0,i.useCallback)((function(t){e.send(t)}),[e])}function u(){const e=d();return(0,i.useCallback)((function(t,a){e.send(t,a)}),[e])}},89613:(e,t,a)=>{"use strict";a.d(t,{u:()=>r});var n=a(98173),l=a(27941);const r=()=>{const e=(0,l.rD)();return(0,n.useCallback)(((t,a)=>{!1!==e.pushToGTM&&((e,t)=>{const a=()=>{try{const t={...e,appLabel:"blocks_app"};window.dataLayer&&"function"===typeof window.dataLayer.push&&window.dataLayer.push(t)}catch(t){}};t?setTimeout(a,t):a()})(t,a)}),[e.pushToGTM])}},97404:(e,t,a)=>{"use strict";a.d(t,{i:()=>l});var n=a(58521);const l=async(e,t,a)=>{const l=(0,n.KU)(t).baseUrl.replaceAll(/[\\/]$/g,""),r=(0,n.hI)({baseUrl:l});let o=await r(e,t,a);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,a)=>{"use strict";a.d(t,{f:()=>h});var n=a(32947),l=a(15626),r=a(52919),o=a(90614),i=a(86095),s=a(70687),c=a(73180),d=a(98173),m=a(1047),u=a(12741),p=a(2604),g=a(12279);const h=(e,t)=>{var a,h,f,b,v;const E=(0,p.wA)(),C=(0,i.fn)(),y=(0,r.QC)(),_=(0,o.ml)(l.AZ.WILL_EMAIL_INIT_ID),A=(0,o.ml)(l.AZ.ON_EMAIL_INIT_ID),w=(0,o.ml)(l.AZ.ON_CONTENT_CHANGED_ID),k=(0,o.ml)(l.AZ.ON_EMAIL_CHANGED_ID),S=(0,o.ml)(l.AZ.ON_MODEL_CHANGE),L=(0,d.useRef)(!1),x=(0,d.useRef)();x.current=e,(0,d.useEffect)((()=>{const a=x.current;if(n.EW.isPlugin&&!L.current&&(null===e||void 0===e?void 0:e.renderGuid)===(null===a||void 0===a?void 0:a.renderGuid)&&null!==a&&void 0!==a&&a.is_inited&&a){const e=C.getValue();k.fire({...a,id:t||a.isNew?void 0:a.id,html:e})}}),[C,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===(a=e.utm_parameters)||void 0===a?void 0:a.utm_campaign)||"",(null===e||void 0===e||null===(h=e.utm_parameters)||void 0===h?void 0:h.utm_content)||"",(null===e||void 0===e||null===(f=e.utm_parameters)||void 0===f?void 0:f.utm_medium)||"",(null===e||void 0===e||null===(b=e.utm_parameters)||void 0===b?void 0:b.utm_source)||"",(null===e||void 0===e||null===(v=e.utm_parameters)||void 0===v?void 0:v.utm_term)||"",k,t]),(0,c.Z)((([e])=>{e!==C&&S.fire(C)}),[C,S]),(0,d.useEffect)((()=>{if(n.EW.isPlugin){const a=C.onDidChangeContent((()=>{const a=x.current;if(!L.current&&(null===e||void 0===e?void 0:e.renderGuid)===(null===a||void 0===a?void 0:a.renderGuid)&&a){const e=C.getValue();w.fire(e),k.fire({...a,id:t||a.isNew?void 0:a.id,html:e})}}));return()=>a.dispose()}}),[C,w,k,e,t]);const T=(0,d.useCallback)((async()=>{const e=x.current;try{var t;(0,s.po)(C),C.setValue((null===e||void 0===e||null===(t=e.html)||void 0===t?void 0:t.replaceAll("\r\n","\n"))||"")}finally{(0,s.SF)(C)}const a=C.getValue();await y.sendAsync(n.Ru.SANDBOX_SET_ENTITY,{html:a,guid:e.renderGuid})}),[C,y]),I=(0,d.useCallback)((async()=>{const e=x.current;await y.sendAsync(n.Ru.SANDBOX_SET_ENTITY,{html:C.getValue(),guid:e.renderGuid})}),[C,y]),N=(0,d.useCallback)((async()=>{const e=x.current;void 0!==e.preheader&&await y.sendAsync(n.Ru.SANDBOX_PREHEADER_UPDATE,{value:e.preheader,guid:e.renderGuid,force:!0})}),[y]),R=(0,d.useCallback)((async()=>{const e=x.current;void 0!==e.subject&&await y.sendAsync(n.Ru.SANDBOX_SUBJECT_UPDATE,{value:e.subject,guid:e.renderGuid,force:!0})}),[y]),B=(0,d.useCallback)((()=>{const e=x.current;return y.sendAsync(n.Ru.SANDBOX_INITED,{guid:e.renderGuid})}),[y]),M=(0,d.useCallback)((e=>{const a=x.current;E(void 0===a.id?(0,u.Uh)(!0):(0,m.Wm)(!0));const n={...a,id:t||a.isNew?void 0:a.id,html:C.getValue()};return e&&(n.reset=!0),A.fire(n)}),[E,A,C,t]),O=(0,d.useCallback)((()=>{const e=x.current;return y.sendAsync(n.Ru.SANDBOX_INIT_START,{guid:e.renderGuid})}),[y]),P=(0,d.useCallback)((()=>{const e=x.current;return _.fire({...e,id:t||e.isNew?void 0:e.id,html:C.getValue()})}),[_,C,t]),[H]=(0,c.c)((function*(){try{L.current=!0,yield*(0,g.T1)(O),yield*(0,g.T1)(P),yield*(0,g.T1)(T),yield*(0,g.T1)(N),yield*(0,g.T1)(R),yield*(0,g.T1)(B),yield*(0,g.T1)(M)}finally{L.current=!1}}),[T,N,R,M,P,O,B]),[V]=(0,c.c)((function*(){try{yield*(0,g.T1)(O),yield*(0,g.T1)(P),yield*(0,g.T1)(I),yield*(0,g.T1)(N),yield*(0,g.T1)(R),yield*(0,g.T1)(B),yield*(0,g.T1)(M)}catch(e){}}),[T,N,R,M,P,O,B]);(0,c.Z)((async([t])=>{const a=null===e||void 0===e?void 0:e.renderGuid;a&&a!==t&&H()}),[null===e||void 0===e?void 0:e.renderGuid,H]),(0,d.useEffect)((()=>{const e=y.addListenerAsync(n.Ru.RELOAD,(async()=>{await V()}));return()=>e.dispose()}),[y,V])}},71854:(e,t,a)=>{"use strict";a.d(t,{$K:()=>g,QM:()=>i,Qm:()=>p,q2:()=>m,zn:()=>u});var n=a(94049),l=a.n(n),r=a(30315),o=a(65053);function i(e,t){const a=document.createElement("input");a.type="file",a.accept=e,a.multiple=!0,a.setAttribute("data-testid","uploadFile"),a.style.position="absolute",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.onchange=()=>{var e;null!==(e=a.files)&&void 0!==e&&e.length&&t(a.files),document.body.removeChild(a)},a.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,a){return await(0,r.bc)(e,(async e=>{e=e.replace("\\","/");const a=(0,r.$l)(e);return t(e,a)}),a)}async function m(e,t,n){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,a){const n=new(l()),{files:o}=await n.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("/"),n=document.location.pathname.split("/"),l=document.location.origin+n.slice(0,n.length-e.length).join("/")+"/",i=await d.async("text"),s=e.slice(0,e.length-1).join("/");return await(0,r.bc)(i,(async e=>{(e=e.replace("\\","/")).startsWith(".")&&(e=e.substring(1)),e.startsWith("/")&&(e=e.substring(1)),e.startsWith(l)&&(e=e.substring(l.length)),s&&!e.match("^(ht|f)tp(s?)://")&&(e=`${s}/${e}`);const a=o[e];if(a){const e=a.name,n=await a.async("blob");return t(n,e)}const n=(0,r.$l)(e);return t(e,n)}),a)}}(e,t,n);case"eml":{const l=await e.text(),{readEml:r}=await a.e(4309).then(a.bind(a,84309)),o=r(l);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,n)}default:return d(await e.text(),t,n)}}async function u(e,t){if("string"!==typeof e)return e;const a=(0,o.A)(e),n=await t({url:a});return null===n||void 0===n||n.data,(null===n||void 0===n?void 0:n.data)||null}function p(e,t,a){if(!e||"string"!==typeof e)return`default.${a.extension(t)||"bin"}`;if(e.split(".").length<2){const n=a.extension(t);if(n)return`${e}.${n}`}return e}function g(e,t){var a,n,l,r;return!e||e.error||400===(null===(a=e.data)||void 0===a||null===(n=a.data)||void 0===n?void 0:n.status)?"string"===typeof t?t:"":null!==(l=e.data)&&void 0!==l&&null!==(r=l[0])&&void 0!==r&&r.file_url?e.data[0].file_url:"string"===typeof t?t:""}},70687:(e,t,a)=>{"use strict";a.d(t,{Og:()=>o,SF:()=>r,po:()=>l});const n=new Set;function l(e){return n.add(e),{dispose(){r(e)}}}function r(e){n.delete(e)}function o(e,t){let a=e.getVersionId();const l=[],r=e.onDidChangeContent((r=>{if(r.versionId>a+1){const o=e.onDidChangeContent((i=>{if(r.versionId===a+1)try{n.has(e)||t(r)}catch(s){}finally{a=r.versionId;const e=l.indexOf(o);e>=0&&l.splice(e,1),o.dispose()}}));l.push(o)}else try{n.has(e)||t(r)}catch(o){}finally{a=r.versionId}}));return{dispose:()=>{r.dispose(),l.forEach((e=>e.dispose()))}}}},97993:(e,t,a)=>{"use strict";a.d(t,{y:()=>r});var n=a(28618),l=a(33105);function r(){return n.QE.get(l.$D)}},64909:(e,t,a)=>{"use strict";a.d(t,{Gy:()=>m,O5:()=>g,hN:()=>p,x_:()=>u});var n=a(15626),l=a(90614),r=a(98173),o=a(71446),i=a(90121),s=a(13668),c=a(31926);const d="bottomRight";function m(e){return{id:e.id,code:e.html,title:e.title,subject:e.subject,preheader:e.preheader}}function u(e){return{id:e.id,code:e.html,title:e.title}}function p(){const e=(0,l.ml)(n.AZ.ON_NOTIFICATION),{notification:t}=o.A.useApp(),a=(0,r.useCallback)(((a,n)=>{a.type||(a={...a,type:"info"}),e.fire((0,c.TB)({id:a.id,type:a.type,data:a.data,innerException:a.innerException})).then((e=>{if(e.every((e=>!1!==e))){a={...a};for(const t of e)"object"===typeof t&&Object.assign(a,t,t.style?{style:{...t.style,...a.style}}:{},t.props?{props:{...t.props,...a.props}}:{},t.className?{className:a.className?`${a.className} ${t.className}`:t.className}:{});n||((a=Object.assign(a,...e.filter((e=>"object"===typeof e)))).placement||(a.placement=d),t[a.type]?t[a.type](a):a.message)}}))}),[t,e]),i=(0,r.useCallback)(((e,t)=>a({...e,type:"error"},t)),[a]),s=(0,r.useCallback)(((e,t)=>a({...e,type:"success"},t)),[a]),m=(0,r.useCallback)(((e,t)=>a({...e,type:"warning"},t)),[a]),u=(0,r.useCallback)(((e,t)=>a({...e,type:"info"},t)),[a]),p=(0,r.useCallback)(((e,t,a,n,l=d)=>{var o,s;a&&i({id:e,data:t,message:a.data instanceof Error?"":r.createElement("div",{dangerouslySetInnerHTML:{__html:(null===(o=a.data)||void 0===o?void 0:o.code)||a.status||a}}),description:r.createElement("div",{dangerouslySetInnerHTML:{__html:(null===(s=a.data)||void 0===s?void 0:s.message)||a.error}}),placement:l,innerException:(null===a||void 0===a?void 0:a.data)instanceof Error?a.data:a},n)}),[i]);return(0,r.useMemo)((()=>({notify:a,success:s,error:i,warning:m,fromError:p,info:u})),[a,s,i,m,p,u])}function g(){const{notify:e}=p();(0,i.D3)(s.Sb,e)}},12543:(e,t,a)=>{"use strict";a.d(t,{CY:()=>i,s9:()=>s});var n=a(98173),l=a(94043);function r(e){return{__:e.__.bind(e),_x:e._x.bind(e),_n:e._n.bind(e),_nx:e._nx.bind(e),sprintf:l.nv,isRTL:e.isRTL.bind(e),hasTranslation:e.hasTranslation.bind(e)}}const o=(0,n.createContext)(r(l.y3));function i(e){const{children:t,i18n:a=l.y3}=e,[,i]=(0,n.useReducer)((()=>[]),[]);(0,n.useEffect)((()=>a.subscribe(i)),[a]);const s=(0,n.useMemo)((()=>r(a)),[a]);return(0,n.createElement)(o.Provider,{value:s},t)}const s=()=>(0,n.useContext)(o)},73180:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r,c:()=>o});var n=a(98173),l=a(12279);const r=(e,t)=>{const a=(0,n.useRef)();a.current=e;const l=(0,n.useRef)(void 0);(0,n.useEffect)((()=>{null!==l.current&&a.current(l.current||[]),l.current=t}),t)};function o(e,t){const a=(0,n.useRef)(),r=(0,n.useCallback)((()=>{const e=a.current;e&&(0,l.eF)(e.halt)}),[]);(0,n.useEffect)((()=>()=>r()),[r]);const o=(0,n.useCallback)(e,t);return[(0,n.useCallback)(((...e)=>{r();const t=(0,l.eF)((()=>o(...e)));return a.current=t,t}),[r,o]),r]}},39420:(e,t,a)=>{"use strict";a.d(t,{A5:()=>d,FN:()=>c,Hk:()=>s,c8:()=>m});var n=a(98173),l=a(32947),r=a(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,a;e===l.IJ?(t=l.vd,a=l.F3):(t=e===l.T?l.y2:l.CJ,a=e===l.nd?l.y2:l.CJ),[...i].forEach((e=>{e.media=t})),[...o].forEach((e=>{e.media=a}))},c=(e={})=>{const t=document.querySelector("head"),a=document.createElement("style");if(a.type="text/css",a.dataset.themeVaribalse=!0,Object.entries(e).length){let n="";Object.entries(e).forEach((([e,t])=>{"object"!==typeof t&&(n+=`\t--${e}: ${t};\n`)})),n=`.blocks-body, .blocks-app, .ant-modal-root, .ant-tooltip, .ant-notification {\n${n}}`,a.appendChild(document.createTextNode(n));const l=t.querySelector('[data-theme-varibalse="true"]');l?t.replaceChild(a,l):t.insertBefore(a,t.firstChild)}},d=e=>{const t=document.body;t.classList.contains(e)||setTimeout((()=>{t.classList.remove(e===l.nd?l.T:l.nd),t.classList.add(e)}),200)},m=()=>{const e=(0,r.XW)();return(0,n.useCallback)((()=>{const t=window.localStorage.getItem(l.V0.em_color_scheme),a=matchMedia(l.F3).matches?l.nd:l.T,n=t||a;e({operation:l.Ru.UPDATE_PREVIEW,theme:n})}),[e])}},93778:(e,t,a)=>{"use strict";function n(e){return e}function l({data:e,...t},a){return t.error?t:{data:a(e,t.meta),...t}}function r(e){return t=>l(t,e)}function o(e){return t=>l(t,((t,a)=>t.hasOwnProperty("previous")?e(t.previous,a):e(t,a)))}function i(e){return t=>function({data:e,...t},a){return t.error?t:{data:e.map((e=>a(e,t.meta))),...t}}(t,e)}a.d(t,{Ih:()=>i,PI:()=>o,SA:()=>l,SC:()=>r,ur:()=>n})},95669:(e,t,a)=>{"use strict";function n(e,t){if(e!==t){if(!e||!t||"object"!==typeof e||"object"!==typeof t)return!1;const a=t instanceof Array;if(e instanceof Array){if(!a)return!1;const l=e.length;if(t.length!==l)return!1;for(let a=0;a<l;a++)if(!n(e[a],t[a]))return!1}else if(a)return!1;const l=Object.keys(e),r=Object.keys(t),o=l.length;if(o!==r.length)return!1;for(let i=0;i<o;i++){const a=l[i];if(!t.hasOwnProperty(a)||!n(e[a],t[a]))return!1}}return!0}a.d(t,{b:()=>n})},22560:(e,t,a)=>{"use strict";a.d(t,{e:()=>l});var n=a(19504);async function l(e,t){if("amp"===t){for(const t of e.querySelectorAll(".em-amp-show-disabled"))t.remove();await(0,n.Sc)(e,{mappedTags:{script:"___script"}})}else if("html"===t){for(const t of e.querySelectorAll(".em-amp-show-only"))t.remove();(0,n.Km)(e,{mappedTags:{script:"___script"}})}}},62347:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(98173),l=a(2604),r=a(30150),o=a(98845),i=a(1047);const s=()=>{const e=(0,l.wA)(),t=(0,l.d4)(i.zn);let a=(0,r.zy)();(0,n.useEffect)((()=>{/emails\/[0-9]+$/.test(a.pathname)||t&&e(o.GY.util.invalidateTags([{type:"Emails",id:+t}]))}),[a,e,t])}},62093:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(98173),l=a(52919);function r(e,t){const a=(0,l.QC)();(0,n.useEffect)((()=>{const n=a.addListener(e,t);return()=>{n.dispose()}}),[a,e,t])}},80223:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(98173),l=a(30150),r=a(2604),o=a(47014),i=a(97032);const s=e=>{const t=(0,r.d4)(o.C1),[a,s]=(0,n.useState)({owner:!1,admin:!1}),c=(0,l.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,n.useEffect)((()=>{if(m){var e,a;const{owner:n,admins:l,users:r}=m.members,o=l?l.map((e=>e.ID)):l,i=r?r.map((e=>e.ID)):r;s({owner:(null===(e=n.ID)||void 0===e?void 0:e.toString())===(null===(a=t.id)||void 0===a?void 0:a.toString()),admin:o&&o.includes(t.id),user:i&&i.includes(t.id)})}}),[m,t.id]),a}},69201:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(98173),l=a(2604),r=a(30150),o=a(39206),i=a(32947),s=a(96734);const c=()=>{const e=(0,l.wA)(),t=(0,s.p)(),a=(0,l.d4)(o.Sl);let c=(0,r.zy)();(0,n.useEffect)((()=>{c.pathname.endsWith("/new")||a&&(e((0,o.X8)()),t.remove(i.A9.em_new_block))}),[c,a,e,t])}},49982:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(98173),l=a(2604),r=a(30150),o=a(12741),i=a(32947),s=a(96734);const c=()=>{const e=(0,s.p)(),t=(0,l.wA)(),a=(0,l.d4)(o.$S);let c=(0,r.zy)();(0,n.useEffect)((()=>{c.pathname.endsWith("/new")||(e.remove(i.A9.em_new_email),e.remove(i.A9.em_template_email),a&&t((0,o.Et)()))}),[c,a,t,e])}},54125:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(32947);const l=e=>{if(!n.EW.isPlugin){let t="";t="EmailMaker",document.title=e+" - "+t}}},30753:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var n=a(98173),l=a(40120),r=a(30150),o=a(67034);const i=({className:e,style:t,color:a,text:l,bordered:r,...i})=>{const s=l||"";return n.createElement(o.A,Object.assign({style:t,color:a,bordered:r,className:e},i),s)};var s=a(12543),c=a(27941);const d=({text:e,counter:t,limits:a,wrapperStyles:o})=>{const{__:d,_n:m}=(0,s.s9)(),u=(0,r.Zp)(),p=(0,c.rD)(),{token:g}=l.A.useToken(),h=+a>0,f=!h||t<+a,b=p.billingPageUrl||"/billing",v=t+" "+d("of")+" "+(h?a:"\u221e")+" "+(e||m("test","tests",a))+" "+d("were used");return n.createElement("div",{className:"limits-couter-wrapper",style:o},n.createElement(i,{bordered:!1,text:v,className:"limit-counter",style:{color:f?g.colorText:"white"},color:f?g.colorFillSecondary:"rgb(255, 77, 79)"}),h&&n.createElement("div",{style:{fontSize:14,textDecoration:"underline"},onClick:()=>u(b)},d("Need more?")))}},61736:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var n=a(98173),l=a(48753),r=a(10423),o=a(2604),i=a(30150),s=a(26298),c=a.n(s),d=a(12543),m=a(54838),u=a(32947),p=a(40277),g=a(96734);const h=a.p+"static/media/frame_light.png",f=a.p+"static/media/frame_dark.png",b=(a.p,({isModalVisible:e})=>{const{__:t}=(0,d.s9)(),a=(0,o.wA)(),s=(0,i.Zp)(),b=(0,g.p)();let v=(0,i.zy)();const E=(0,n.useRef)(null);let C=[];return C.push({title:t("From scratch"),click:()=>{a((0,m.Oo)()),b.set(u.A9.em_new_email,127017),(0,p.XZ)(s,`${v.pathname}/new`)}}),C.push({title:"\u0428\u0430\u0431\u043b\u043e\u043d \u0432 \u0441\u0432\u0435\u0442\u043b\u043e\u0439 \u0442\u0435\u043c\u0435",img:h,click:()=>{a((0,m.Oo)()),b.set(u.A9.em_template_email,1868),(0,p.XZ)(s,`${v.pathname}/new_from/1868`)}}),C.push({title:"\u0428\u0430\u0431\u043b\u043e\u043d \u0432 \u0442\u0451\u043c\u043d\u043e\u0439 \u0442\u0435\u043c\u0435",img:f,click:()=>{a((0,m.Oo)()),b.set(u.A9.em_template_email,1869),(0,p.XZ)(s,`${v.pathname}/new_from/1869`)}}),n.createElement(l.A,{title:t("Create new email"),open:e,onCancel:()=>{a((0,m.Oo)())},centered:!0,footer:!1,width:"inherit",className:"modal-new-email blocks-modal"},n.createElement("div",{className:"modal-new-email__cards-grid"},C&&C.map(((e,t)=>n.createElement(r.A,{key:e.img+t,className:"element-card element-card_new-email",hoverable:!0,cover:n.createElement(n.Fragment,null,n.createElement("div",{ref:E,className:c()({"element-card__img-wrapper":e.img,"element-card__no-img":!e.img}),onClick:()=>null===e||void 0===e?void 0:e.click()},e.img&&n.createElement("img",{className:"element-card__img",alt:e.title,src:e.img,onMouseMove:e=>(0,p.Hy)(e,E.current),onMouseLeave:p.Tr})))},n.createElement("div",{className:"element-card__title-wrapper",onClick:()=>null===e||void 0===e?void 0:e.click()},n.createElement("span",{className:"element-card__title"},e.title)))))))})},73631:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var n=a(98173),l=a(27499),r=a(48753),o=a(37969),i=a(8218),s=a(64909),c=a(30150),d=a(2604),m=a(12543),u=a(97032),p=a(23424),g=a(47014),h=a(32947),f=a(89613);const b=({isModalVisible:e})=>{const{__:t}=(0,m.s9)(),a=(0,d.wA)(),[b]=l.A.useForm(),v=(0,n.useRef)(null),E=(0,c.Zp)(),C=(0,s.hN)(),y=(0,d.d4)(g.C1),_=(0,f.u)(),[A,w]=(0,u.lD)();(0,n.useEffect)((()=>{e&&(b.resetFields(),setTimeout((()=>{var e;return null===(e=v.current)||void 0===e?void 0:e.focus({cursor:"end"})}),400))}),[e,b]);const k=()=>{b.validateFields().then((e=>(_({event:"submit_form",action:"create_new_project",label:e.name}),A({title:e.name,members:{owner:y.id}})))).then((e=>{if(e.error)throw C.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"}),a((0,p.Oo)()),new Error(h.ff);e.data&&(C.success({message:t("The project \u201c")+e.data.title+t("\u201d was successfully created."),placement:"bottomRight"}),a((0,p.Oo)()),E(`/projects/${e.data.id}/emails?status=new_project&page=1`))})).catch((e=>{}))};return n.createElement(r.A,{title:t("Add a new project"),open:e,onOk:k,onCancel:()=>a((0,p.Oo)()),className:"blocks-modal blocks-modal_create",centered:!0,footer:[n.createElement(o.Ay,{key:"submit",className:"em-analytics__project-add",type:"primary",size:"large",loading:w.isLoading,onClick:k},t("Create project"))],styles:{mask:{backgroundColor:"var(--colorBgLayout)"}}},n.createElement(l.A,{form:b,layout:"vertical",name:"add_new_project_form",onFinish:k,initialValues:{remember:!1,name:""},autoComplete:"off",style:{padding:"10px 24px 0"}},n.createElement(l.A.Item,{extra:t("This can be\xa0the name of\xa0your company, department, website, project, marketing campaign, or\xa0other activity."),name:"name",rules:[{required:!0,message:t("Please enter the project name")}]},n.createElement(i.A,{disabled:w.isLoading,size:"large",placeholder:t("Enter the project name"),ref:v,style:{marginBottom:5}}))))}},51275:(e,t,a)=>{"use strict";a.d(t,{A:()=>Z});var n=a(98173),l=a(47555),r=a(40120),o=a(201),i=a(66964),s=a(30150),c=a(79245),d=a(12543),m=a(46767),u=a(26298),p=a.n(u);const{useToken:g}=r.A,h=({className:e,fontSize:t,to:a})=>{const{token:l}=g();return n.createElement(c.N_,{className:p()("app-logo",{[e]:e}),style:{fontSize:t?`${t}px`:"40px",color:l.colorText},to:a},n.createElement("span",null,n.createElement("b",null,"Email"),"Maker"))};var f=a(56605),b=a(32947),v=a(39420),E=a(96734),C=a(82021);const{useToken:y}=r.A,_={},A={width:1012,color:"#fff",textAlign:"center",height:"100%"};var w;!function(e){e.fade="fade",e.scrollx="scrollx"}(w||(w={}));const k=({data:e=[],sliderStyle:t=_,coruselStyle:a=A,customDots:l=!1,carouselRef:r,effect:o=w.fade,header:i=!1,...s})=>{const{token:c}=y();return n.createElement(n.Fragment,null,l&&n.createElement("div",{className:"custom-dot"},e.length),n.createElement(C.A,Object.assign({style:a,ref:r,effect:o},s),e.map((e=>n.createElement("div",{key:e.id,style:a,className:"slide"},i&&n.createElement("div",{className:"slide-title",style:{color:c.colorText,fontWeight:700,lineHeight:"1.2",textAlign:"center",marginTop:10,marginBottom:20,marginLeft:"auto",marginRight:"auto"}},null===e||void 0===e?void 0:e.textHeader),null===e||void 0===e?void 0:e.content)))))};var S=a(20211),L=a(8807);const x={position:"relative",display:"inline-block",margin:20,width:50,height:50,borderRadius:"50%",overflow:"hidden",cursor:"pointer"},T={position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:0},I={fontSize:24,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1,color:"#1890FF"},N=({icon:e,isActive:t,onClick:a,duration:l,onComplete:r})=>{const[o,i]=(0,n.useState)(0),s=window.localStorage.getItem(b.V0.em_color_scheme),c=matchMedia(b.F3).matches?b.nd:b.T,d=s||c;return(0,n.useEffect)((()=>{if(t){let e=Date.now();const t=setInterval((()=>{const a=Date.now()-e,n=Math.min(a/l*100,100);i(n),100===n&&(clearInterval(t),r())}),10);return()=>clearInterval(t)}i(0)}),[t,l,r]),n.createElement("div",{style:{...x,backgroundColor:"dark"===d?"#1e1e1f":"#edeff1"},onClick:a},n.createElement(S.A,{type:"circle",percent:o,strokeColor:"#1890ff",strokeWidth:4,trailColor:"transparent",size:50,format:()=>null,style:T}),n.createElement(L.A,{icon:e,style:I}))},R=({carouselRef:e})=>{const[t,a]=(0,n.useState)(0),[l,r]=(0,n.useState)(!0),o=8e3,i=(0,n.useRef)(null),s=["SliderGroup","SliderTemplates","SliderBlocks","SliderAdaptive","SliderMagic"];(0,n.useEffect)((()=>{var a;null===(a=e.current)||void 0===a||a.goTo(t)}),[t,e]);const c=()=>{var n;null===(n=e.current)||void 0===n||n.goTo((t+1)%s.length),a((e=>(e+1)%s.length))};return(0,n.useEffect)((()=>{if(l)return i.current&&clearTimeout(i.current),i.current=setTimeout((()=>{a((e=>e%s.length))}),o),()=>clearTimeout(i.current)}),[l,o,s.length]),(0,n.useEffect)((()=>{r(!0)}),[]),n.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingTop:10}},s.map(((e,l)=>n.createElement(N,{key:l,icon:e,isActive:t===l,onClick:()=>(e=>{a(e),r(!1)})(l),duration:o,onComplete:c}))))},B=(0,n.forwardRef)((({data:e=[],sliderStyle:t,customDots:a=!1,...l},r)=>{const o=(0,n.useRef)(null);return n.createElement(n.Fragment,null,n.createElement(R,{carouselRef:o}),n.createElement(k,Object.assign({data:e,carouselRef:o,dots:!1,header:!0},l)))})),M=a.p+"static/media/sign_up_01.png",O=a.p+"static/media/sign_up_02.png",P=a.p+"static/media/sign_up_03.png",H=a.p+"static/media/sign_up_04.png",V=a.p+"static/media/sign_up_05.png";a.p,a.p,a.p,a.p,a.p;var D=a(98173);const F=[{id:"1",textHeader:"\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0432\u0430\u0448\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b",content:D.createElement("img",{src:M,alt:"login1stSlide"})},{id:"2",textHeader:"\u0411\u043e\u043b\u0435\u0435 100 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b",content:D.createElement("img",{src:O,alt:"login2stSlide"})},{id:"3",textHeader:"\u0421\u043e\u0437\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0438\u0441\u044c\u043c\u0430 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0431\u043b\u043e\u043a\u0438",content:D.createElement("img",{src:P,alt:"login3stSlide"})},{id:"4",textHeader:"\u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043f\u0438\u0441\u0435\u043c \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432",content:D.createElement("img",{src:H,alt:"login4stSlide"})},{id:"5",textHeader:"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 AI \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439",content:D.createElement("img",{src:V,alt:"login5stSlide"})}],{Content:j}=l.A,{useToken:z}=r.A,Z=({children:e})=>{var t,a;const{__:r}=(0,d.s9)(),{token:u}=z(),p=(0,s.Zp)(),[g,C]=(0,n.useState)(!1),y=(0,E.p)(),[,_]=(0,c.ok)(),[A]=(0,m.UH)(),w=(0,s.zy)(),k=null===w||void 0===w||null===(t=w.state)||void 0===t||null===(a=t.from)||void 0===a?void 0:a.search;return(0,n.useEffect)((()=>{k&&_(k)}),[k,_]),(0,n.useEffect)((()=>{(0,v.FN)(u)}),[u]),(0,n.useEffect)((()=>{y.get(b.A9.em_token)?A().then((e=>{if(e.error)return y.remove(b.A9.em_token),void C(!0);p("/projects",{replace:!0})})):C(!0)}),[p,A,y]),n.createElement(l.A,{className:"auth-page-layout"},g?n.createElement(j,{className:"auth-page-layout__container container"},n.createElement(o.A,{justify:"center",align:"middle",style:{minHeight:"100vh",flexFlow:"nowrap"}},n.createElement(i.A,{className:"auth-page-layout__col auth-page-layout__col_form",flex:1},n.createElement("div",null,n.createElement("div",{className:"auth-page-layout__heading"},n.createElement(h,{className:"auth-page-layout__logo",fontSize:30,to:"/projects"}),n.createElement("p",{className:"auth-page-layout__logo-text",style:{color:u.colorText,fontWeight:400,fontSize:14}},r("Email builder for your teamwork"))),e)),n.createElement(i.A,{className:"generel-col",flex:1},n.createElement(o.A,{align:"bottom",justify:"center",style:{minHeight:"100vh"}},n.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"center"}},n.createElement(B,{data:F})))))):n.createElement(f.A,null))}},18931:(e,t,a)=>{"use strict";a.d(t,{A:()=>z});var n=a(98173),l=a(40120),r=a(71446),o=a(49856),i=a(67034),s=a(38927),c=a(59010),d=a(38976),m=a(83991),u=a(73477),p=a(64909),g=a(40186),h=a(78446),f=a(10267),b=a(82648),v=a(47214),E=a(6969),C=a(35076),y=a(38256),_=a(71879),A=a(83612),w=a(30150),k=a(79245),S=a(2604),L=a(12543),x=a(26298),T=a.n(x),I=a(45271),N=a(50209),R=a(56605),B=a(5618),M=a(15812),O=a(22536),P=a(47014),H=a(40277),V=a(80223),D=a(32947);const{useToken:F}=l.A,j=(e,t)=>`${e.pathname}/${t.id}`,z=({projectId:e,emailsView:t,createPage:a=!1,currentFolderId:l,foldersList:x,refetchProjectFolders:z,projectTags:Z=[],activeTagId:q,setActiveTagHandler:U,projectEmailsCounter:G=0})=>{var $,W,X,K,Y,Q,J,ee;const{__:te,_x:ae}=(0,L.s9)(),ne=(0,S.wA)(),le=(0,S.d4)(M.D2),re=(0,S.d4)(M.dV),oe=(0,S.d4)(P.C1),ie=(0,S.d4)(M.NP),se=(0,S.d4)(M.qM),ce=(0,S.d4)(M.ux),de=(0,S.d4)(O.b9);let me=(0,w.zy)();const{owner:ue,admin:pe}=(0,V.A)(),ge=(0,w.Zp)(),{token:he}=F(),{modal:fe}=r.A.useApp(),be=(0,p.hN)(),{confirm:ve}=fe,Ee=(0,S.Pj)(),[Ce,ye]=(0,k.ok)(),{refetch:_e}=(0,w.KC)(),Ae=+Ce.get("page"),we=Ce.get("folder"),ke=+Ce.get("tag"),[Se,Le]=(0,B.pP)(),[xe]=(0,B.R2)(),[Te]=(0,B.OZ)(),[Ie,Ne]=(0,n.useState)(!1),Re=l&&l===D.UW,Be=l===D.y2&&!ke;(0,n.useEffect)((()=>{ne((0,M.FC)())}),[ne]);const[Me,Oe]=(0,n.useState)({projectId:e,page:Be?Ae:1,pageSize:D.mU,notEmbed:!0,tags:null,folderTag:null}),{isLoading:Pe,isSuccess:He,isError:Ve,isFetching:De,refetch:Fe,error:je}=(0,B.SB)({...Me,folderTag:null,tags:null,status:"main"},{skip:a||!(null===($=Me.name)||void 0===$||!$.length)&&l!==D.y2}),[ze,Ze]=(0,n.useState)({page:Ae||1,pageSize:D.mU,folderTag:null,tags:[]}),{isLoading:qe,isSuccess:Ue,isError:Ge,isFetching:$e,data:We=[],refetch:Xe,error:Ke}=(0,B.kz)(ze,{skip:!a||(Math.ceil(le/D.mU)||1)<ze.page}),[Ye,Qe]=(0,n.useState)({projectId:e,page:1,pageSize:D.mU,notEmbed:!0,tags:ke&&[ke],folderTag:l}),{isLoading:Je,isSuccess:et,isError:tt,isFetching:at,error:nt}=(0,B.SB)({...Ye,tags:l&&Ye.folderTag?null:Ye.tags,status:"custom"},{skip:a||Re||l===D.y2||Ye.folderTag!==l||!(null===(W=Ye.name)||void 0===W||!W.length)&&(Re||l===D.y2)}),[lt,rt]=(0,n.useState)({projectId:e,page:Re?Ae:1,pageSize:D.mU,notEmbed:!0,tags:ke&&[ke],folderTag:null,status:"trash"}),[ot,it]=(0,n.useState)(!1),{isLoading:st,isSuccess:ct,isError:dt,isFetching:mt,data:ut,refetch:pt,error:gt}=(0,B.SB)({...lt,status:"trash",folderTag:null,page:ot?lt.page:1},{skip:a||(Math.ceil(re/D.mU)||1)<lt.page||!(null===(X=lt.name)||void 0===X||!X.length)&&!Re||!(null===(K=lt.tags)||void 0===K||!K[0])&&ce>0});(0,n.useEffect)((()=>{it(!!ut||Math.ceil(re/D.mU)>=lt.page)}),[ut,lt.page,re]);const ht=a?ze:Re?lt:Be?Me:Ye,ft=a?Ue:Re?ct:Be?He:et,bt=a?qe:Re?st:Be?Pe:Je,vt=a?Ge:Re?dt:Be?Ve:tt,Et=a?$e:Re?mt:Be?De:at,Ct=a?Xe:Re?pt:Be?Fe:()=>{var e;return ne(B.VM.endpoints.getBlocks.initiate({...ht,folderTag:l||(null===(e=ht.tags)||void 0===e?void 0:e[0])||!1}))},yt=a?Ke:Re?gt:Be?je:nt,_t=(a?le:Re?re:Be?le:null===ie||void 0===ie||null===(Y=ie[l||(null===(Q=Ye.tags)||void 0===Q?void 0:Q[0])])||void 0===Y?void 0:Y.total)||0,At=a?We:Re?ce:Be?se:null===ie||void 0===ie||null===(J=ie[l||(null===(ee=Ye.tags)||void 0===ee?void 0:ee[0])])||void 0===J?void 0:J.list,wt=(0,n.useCallback)((e=>{a?Ze((t=>({...t,...e}))):Re?rt((t=>({...t,...e}))):Be?Oe((t=>({...t,...e}))):Qe((t=>({...t,...e})))}),[a,Re,Be]);(0,n.useEffect)((()=>{var e;"rest_post_invalid_page_number"===(null===yt||void 0===yt||null===(e=yt.data)||void 0===e?void 0:e.code)&&wt({page:1})}),[yt,wt]),(0,n.useEffect)((()=>{if(!a){(we&&we!==l||q&&ke!==q)&&wt({folderTag:l,page:1});let e={page:we===l&&ht.page?ht.page:1};l&&!ke&&(e.blockfolder=l),q&&(e.tag=q),ye(e,{replace:!0})}}),[ht.page,ge,a,we,l,q,ke,wt,ye]);const kt=e=>{ve({maskClosable:!0,centered:!0,title:ae(Re?"Are you sure to irrevocably delete the \u201c":"Are you sure you want to delete the \u201c","block")+e.title+te("\u201d block?"),icon:n.createElement(g.A,{style:{color:"#ff4d4f"}}),okText:te("Yes"),cancelText:te("No"),onOk:()=>(e=>Ee.dispatch(B.VM.endpoints.deleteBlock.initiate({id:e.id,force:Re})).then((e=>{e.error?(0,H.p6)(e,be):e.data&&((0,H.wB)(te("The block \u201c")+e.data.title+ae("\u201d was successfully removed.","block"),be),Ct(),z(),pt(),_e())})))(e)})},St=e=>{Ne(!0),Te({blockId:null===e||void 0===e?void 0:e.id,status:"publish"}).then((t=>{t.error?be.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.message}}),placement:"bottomRight"}):(e.blockfolder[0]?Ct():Fe(),z(),pt(),_e(),be.success({message:te("The block \u201c")+e.title+ae("\u201d was successfully recovered.","recovery"),placement:"bottomRight"})),Ne(!1)}))},Lt=e=>{Ne(!0),xe(null===e||void 0===e?void 0:e.id).then((e=>{const t=e.data;Se({title:(0,H.fq)(t.title),blocktags:t.blocktags,blockfolder:t.blockfolder,project:t.project,subject:t.subject,description:t.description,html:(0,H.el)(t.html||"",t.title),type:t.type?t.type:"Other"}).then((e=>{e.error?be.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"}):(Fe(),be.success({message:te("The copy of block \u201c")+t.title+ae("\u201d was successfully created.","block"),placement:"bottomRight"})),Ne(!1)}))}))},xt=(e,t)=>{Te({blockId:t.id,blockfolder:e.key===D.y2?[]:[e.key]}).then((e=>{var a,n;(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.blockfolder[0])&&ne(B.VM.endpoints.getBlocks.initiate({...ht,folderTag:(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.blockfolder[0])||null})),l!==D.y2&&(ne((0,M.wK)({blockfolder:l,blockId:t.id})),ne(B.VM.endpoints.getBlocks.initiate({...ht,folderTag:l||null}))),Fe(),z()})).catch((e=>{}))},Tt=[{width:"26%",title:te("Block"),dataIndex:"title",render:(e,t,a)=>n.createElement(k.N_,{to:j(me,t)},e)},{width:"14%",title:te("Type"),dataIndex:"type",render:(e,t,a)=>e},{width:"20%",title:te("Tags"),dataIndex:"blocktags",render:(e,t,a)=>n.createElement(o.A,{wrap:!0,size:10},e&&e.map((e=>{const t=null===Z||void 0===Z?void 0:Z.find((t=>{var a;return(null===(a=t.id)||void 0===a?void 0:a.toString())===(null===e||void 0===e?void 0:e.toString())}));return t&&n.createElement(i.A,{color:he.colorPrimary,style:{cursor:"pointer",borderRadius:6,marginRight:0},key:t.id,onClick:()=>U(null,t.id)},t.name)||null})))},{width:"3%",title:"",dataIndex:"lock",render:(e,t,a)=>{var l,r;return e&&n.createElement(h.A,{className:T()("lock-icon",{"lock-icon__disabled":!(ue||pe||(null===(l=oe.id)||void 0===l?void 0:l.toString())===(null===(r=t.author)||void 0===r?void 0:r.toString()))})})}},{width:"16%",title:te("Creator"),dataIndex:["_embedded","author"],render:(e,t,a)=>{var n;return(null===e||void 0===e||null===(n=e[0])||void 0===n?void 0:n.name)||""}},{width:"9%",title:ae("Created","block"),className:"nobr",dataIndex:"date",render:(e,t,a)=>(0,H.Yq)((0,A.A)(e),te),sorter:!0,sortOrder:(0,H.Np)(ht.order)},{width:"3%",title:"",dataIndex:"",key:"x",onCell:()=>({style:{padding:0}}),render:(e,t)=>{var a,l,r,o,i,c,d,m;const u=t.blockfolder[0]||null,p={icon:n.createElement(f.A,{style:{fontSize:18}}),label:te("New blocks"),key:D.y2,onClick:e=>xt(e,t)},A=null===x||void 0===x?void 0:x.map((e=>({icon:n.createElement(b.A,{style:{fontSize:18}}),label:e.name,key:e.id,className:e.id,onClick:e=>xt(e,t)}))),w=(null===A||void 0===A?void 0:A.filter((e=>!u||e.key!==u)))||[];u&&(null===w||void 0===w||w.unshift(p));let S=[];return(ue||pe||(null===(a=oe.id)||void 0===a?void 0:a.toString())===(null===(l=t.author)||void 0===l?void 0:l.toString()))&&!Re&&S.push({label:n.createElement(I.A,{key:"Lock",element:t}),icon:t.lock?n.createElement(v.A,{style:{fontSize:"16px"}}):n.createElement(h.A,{style:{fontSize:"16px"}})}),(ue||pe||(null===(r=oe.id)||void 0===r?void 0:r.toString())===(null===(o=t.author)||void 0===o?void 0:o.toString()))&&!Re&&w.length>0&&S.push({label:te("Transfer to folder"),icon:n.createElement(b.A,{style:{fontSize:"16px"}}),children:w}),!Re&&S.push({label:n.createElement(k.N_,{to:j(me,t)},te("Edit")),icon:n.createElement(E.A,{style:{fontSize:"16px"}}),key:"Export",className:"em-analytics__block-enter"},{label:te("Clone"),key:"Clone",icon:n.createElement(C.A,{style:{fontSize:"16px"}}),className:"em-analytics__block-clone",disabled:Le.isLoading,onClick:()=>Lt(t)}),(ue||pe||(null===(i=oe.id)||void 0===i?void 0:i.toString())===(null===(c=t.author)||void 0===c?void 0:c.toString()))&&Re&&S.push({label:te("Recover"),icon:n.createElement(y.A,{style:{fontSize:"16px"}}),key:"Recover",onClick:()=>St(t)}),(ue||pe||(null===(d=oe.id)||void 0===d?void 0:d.toString())===(null===(m=t.author)||void 0===m?void 0:m.toString()))&&S.push({label:te("Remove"),icon:n.createElement(g.A,{style:{fontSize:"16px"}}),key:"Remove",className:"em-analytics__block-remove",style:{color:"#ff4d4f"},onClick:()=>kt(t)}),n.createElement(s.A,{arrow:"true",placement:"bottomRight",menu:{items:S},trigger:["hover"]},n.createElement("span",{className:"projects-table__actions"},n.createElement(_.A,null)))}}],[It,Nt]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{var e;for(let t in de)if(t||""===t||0===t.length){Nt(!0),wt({...de,folderTag:l,page:1});break}(null!==(e=de.tags)&&void 0!==e&&e.length||de.name)&&wt({...de,folderTag:l,page:1})}),[de,ne,l,Re,wt,a]),n.createElement("div",{className:"project-blocks-page__list"},bt&&!(null!==At&&void 0!==At&&At.length)&&n.createElement(c.A,{active:!0}),vt&&n.createElement(d.A,{message:te("Error"),description:te("Error when receiving data. Try again (reload page) or contact support."),type:"error",showIcon:!0}),!bt&&!Et&&0===(null===At||void 0===At?void 0:At.length)&&(It||G>0?n.createElement(d.A,{message:te("Blocks not found"),description:"",type:"info",showIcon:!0}):l!==D.y2?n.createElement(d.A,{message:te("You don't have any blocks in this folder."),description:te("Add your first block to the folder..."),type:"info",showIcon:!0}):n.createElement(d.A,{message:te("You don't have any blocks yet."),description:te("Add your first block by clicking the Create a new block button."),type:"info",showIcon:!0})),(null===At||void 0===At?void 0:At.length)>0&&t===D.rl&&n.createElement(m.A,{rowKey:e=>e.id,bordered:!0,dataSource:At,columns:Tt,loading:Et||Ie,onChange:(e,t,{order:a,field:n},{action:l})=>{"sort"===l&&wt(a?{page:ht.page||1,order:(0,H.gq)(a),orderby:n,pageSize:D.mU}:{page:ht.page||1,pageSize:D.mU})},showSizeChanger:!1,pageSize:D.mU,pagination:{current:ht.page||1,total:_t,hideOnSinglePage:!0,showSizeChanger:!1,pageSize:D.mU,position:["bottomLeft"],onChange:(t,a)=>wt({projectId:e,page:t,pageSize:a})}}),((null===At||void 0===At?void 0:At.length)>0||ft)&&t===D.Y$&&n.createElement(n.Fragment,null,Pe&&n.createElement(c.A,{active:!0}),(Et||Ie)&&n.createElement("div",{className:"project-blocks-page__loader"},n.createElement(R.A,{small:!0})),n.createElement("div",{className:"project-blocks-page__cards-grid"},At&&At.map((e=>n.createElement(N.A,{key:e.id,element:e,setSearchFilters:U,isTrash:Re,foldersList:x,refetch:Fe,projectTags:Z,foldersHandlers:{handleRemove:kt,handleRecover:St,handleClone:Lt,handlerChangeFolder:xt}})))),n.createElement(u.A,{current:ht.page||1,total:_t,hideOnSinglePage:!0,showSizeChanger:!1,pageSize:D.mU,onChange:(t,a)=>wt({projectId:e,page:t,pageSize:a})})))}},79890:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var n=a(98173),l=a(40120),r=a(27499),o=a(201),i=a(8218),s=a(49823),c=a(80293),d=a(67107),m=a(2604),u=a(30150),p=a(12543),g=a(97032),h=a(98845),f=a(5618),b=a(22536),v=a(1047),E=a(40277),C=a(32947),y=a(84572);const{useToken:_}=l.A,{name:A,type:w,tags:k,group:S}={name:"name",type:"type",tags:"tags",group:"group"},L={[A]:"",[w]:[],[k]:[],[S]:[]},x=({isBlocks:e=!1,templateEmailId:t=!1})=>{const{__:a}=(0,p.s9)(),{projectId:l}=(0,u.g)(),[x]=r.A.useForm(),{data:T}=(0,f.h1)(),I=(0,m.wA)(),N=(0,m.d4)(b.b9),R=(0,m.d4)(v.CT),B=(0,m.d4)(y.GD),{token:M}=_(),O=(0,m.Pj)(),P=e?N:R,{isSuccess:H,data:V}=g.Nq.endpoints.getProject.select(+l)(O.getState(),{skip:t}),{isSuccess:D,data:F}=(0,h.sl)(+t,{skip:!t}),j=(0,n.useCallback)((()=>{I(e?(0,b.om)({}):(0,v.om)({}))}),[I,e]);(0,n.useEffect)((()=>{j()}),[j]),(0,n.useEffect)((()=>{}),[D,F,t]),(0,n.useEffect)((()=>{}),[H,V,e,t]);const[z,Z]=(0,n.useState)([]);let q;(0,n.useEffect)((()=>{if(T){const e=T.schema.properties.acf.properties.type.items.enum;let t=[];for(let n in e)t.push({label:a(C.jg[e[n]]),value:e[n]});Z(t)}}),[T,a]);const[U,G]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const a=t?D&&(0,E._q)(F,C.zh).filter((e=>{var t;return null===P||void 0===P||null===(t=P.tags)||void 0===t?void 0:t.includes(e.id)})).map((e=>e.name))||[]:H&&(0,E._q)(V,e?C.YY:C.zh).filter((e=>{var t;return null===P||void 0===P||null===(t=P.tags)||void 0===t?void 0:t.includes(e.id)})).map((e=>e.name))||[];x.setFieldsValue({tags:a})}),[H,P,e,x,V,D,F,t]),(0,n.useEffect)((()=>{x.setFieldsValue({group:B})}),[x,B]),n.createElement("div",{className:"cards-search"},n.createElement(r.A,{form:x,name:"cards_search_form",initialValues:{...L},onValuesChange:a=>{const n=Object.keys(a)[0],l=x.getFieldsValue(!0);switch(n){case k:const r=t?(0,E._q)(F,C.zh).filter((e=>a[n].includes(e.name))).map((e=>e.id))||null:(0,E._q)(V,e?C.YY:C.zh).filter((e=>a[n].includes(e.name))).map((e=>e.id))||null;I(e?(0,b.om)({...P,tags:r}):(0,v.om)({...P,tags:r}));break;case w:I(e?(0,b.om)({...P,type:l.type||null}):(0,v.om)({...P,type:l.type||null}));break;case A:q&&window.clearTimeout(q),q=window.setTimeout((function(){I(e?(0,b.om)({...P,name:l.name}):(0,v.om)({...P,name:l.name}))}),100);break;case S:I(e?(0,b.om)({...P,group:l.group||null}):(0,v.om)({...P,group:l.group||null}))}},autoComplete:"off"},n.createElement(o.A,{wrap:!1,gutter:0},n.createElement(r.A.Item,{className:"cards-search__by-title",name:A},n.createElement(i.A,{placeholder:a("Search by title"),allowClear:!0,bordered:!1,size:"large",prefix:n.createElement(c.A,{className:"cards-search__search-icon, input-icon",style:{cursor:"pointer",fontSize:20}})})),e&&n.createElement(r.A.Item,{className:"cards-search__type-select",name:w,rules:[{message:a("Please choose the block type")}]},n.createElement(s.A,{placeholder:a("Filter by type"),options:z,getPopupContainer:e=>e.parentNode,suffixIcon:n.createElement(d.A,{style:{fontSize:"16px",color:M.colorText},onClick:()=>G(!U),className:"input-icon"}),allowClear:!0,open:U,onDropdownVisibleChange:e=>{G(e)}})))))}},37507:(e,t,a)=>{"use strict";a.d(t,{b:()=>o});var n=a(98173),l=a(13785),r=a(32947);const o=({users:e,isEditor:t,isPlugin:a,token:o})=>{const[i,s]=(0,n.useState)(!1),c=window.localStorage.getItem(r.V0.em_color_scheme),d=e=>{const t=(e=>{const{first_name:t,last_name:a,email:n}=e.user.name;return t&&a?`${t} ${a}`:t||n})(e);return n.createElement("span",null,t)};return n.createElement(n.Fragment,null,e.length>0&&t&&n.createElement("div",{className:"user-list "+(i?"open":""),style:a?{left:"60px",bottom:"10px"}:{},onMouseOver:()=>s(!0),onMouseOut:()=>s(!1)},e.map((e=>n.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}},n.createElement(l.A,{title:d(e),placement:"topLeft",trigger:"hover",color:null===o||void 0===o?void 0:o.colorBgSpotlight},n.createElement("div",null,(e=>{const{first_name:t,last_name:a,email:n}=e.user.name;if(t)return`${t.split("")[0]}${a?`${a.split("")[0]}`:""}`;return(null===n||void 0===n?void 0:n.split("")[0].toUpperCase())||" "})(e))))))))}},55835:(e,t,a)=>{"use strict";a.d(t,{LA:()=>i,LJ:()=>s,Pp:()=>r,Q9:()=>o,ZW:()=>n,k0:()=>c,pX:()=>l});const n="wss://yjs.emailmaker.ru",l=500,r=5e3,o=2e4,i="3769995",s="Not available for collaborative editing",c="Problem with internet connection"},77637:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var n=a(98173),l=a(201),r=a(66964),o=a(37969),i=a(94674),s=a(6056),c=a(8218),d=a(26298),m=a.n(d),u=a(2604),p=a(12543),g=a(8807),h=a(1047);a(69039);const f=({id:e,onChange:t,value:a,alignRight:d,placeholder:f,isDisabled:b=!1,usedColors:v=[],codeMode:E=!1})=>{const{__:C}=(0,p.s9)(),y=(0,u.d4)(h.iy),[_,A]=(0,n.useState)(!0),w=(0,n.useRef)(null),k=(0,n.useRef)(null),S=(0,n.useRef)(t);(0,n.useEffect)((()=>{"undefined"===typeof EyeDropper&&A(!1)}),[a]);const L=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),w.current&&(w.current.style.backgroundColor=t),k.current&&(k.current.input.value=t)}catch(e){}};return n.createElement("div",{className:"color-picker-input"},n.createElement("div",{className:m()("color-picker-input__control-wrap",{"color-picker-input__empty":!a})},n.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:""===a?null:a,onChange:e=>{const t=e.toHexString().toUpperCase();S.current&&S.current(t),w.current&&(w.current.style.backgroundColor=t),k.current&&(k.current.input.value=t)},panelRender:(e,{components:{Picker:t,Presets:a}})=>n.createElement(l.A,{justify:"space-between",wrap:!1},n.createElement(r.A,{flex:"auto"},n.createElement(t,null),_&&n.createElement(o.Ay,{onClick:L,size:"small",style:{position:"absolute",top:215,left:179,height:28,width:28,padding:0,zIndex:2,minWidth:"auto",fontSize:18}},n.createElement(g.A,{icon:"Colorize",style:{position:"relative",top:-2}}))),n.createElement(i.A,{type:"vertical",style:{height:"auto"}}),n.createElement(r.A,{span:8},n.createElement(a,null))),presets:[{label:C("Used"),colors:v},{label:C("Recommended"),colors:["#000000","#595959","#BFBFBF","#E5E5E5","#F5F5F5","#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB"]}]}),""===a&&n.createElement("div",{className:"color-picker-input__empty-bg"}),n.createElement(c.A,{allowClear:!0,id:e,disabled:y||b,className:"color-picker-input__control",placeholder:f||C("Select color"),value:a,ref:k,onChange:t})))}},63335:(e,t,a)=>{"use strict";a.d(t,{A:()=>Tr});var n=a(98173),l=a(40120),r=a(28973),o=a(71446),i=a(2604),s=a(95349),c=a(30150),d=a(97041),m=a(51275),u=a(27499),p=a(94674),g=a(8218),h=a(37969),f=a(49856),b=a(38),v=a(93511),E=a(64909),C=a(78446),y=a(10267),_=a(79245),A=a(26298),w=a.n(A),k=a(12543),S=a(41118);a(72053);const L={view:"button",parentId:"buttonContainerId",buttonSize:"s",buttonView:"main",buttonTheme:"dark",buttonBorderRadius:"15",buttonIcon:"ya"},x=({yandexHandler:e})=>((0,n.useEffect)((()=>{window.YaAuthSuggest.init({client_id:"6456dd7eb0db47bcbcb2329c614723b5",response_type:"token",redirect_uri:`https://${document.location.host}/yandex-login`},`https://${document.location.host}`,L).then((({handler:e})=>e())).then((t=>e(t))).catch((e=>{}))}),[]),n.createElement("div",{style:{cursor:"pointer"},id:"buttonContainerId"}));var T=a(46767),I=a(59089),N=a(13216),R=a(52779),B=a(92485),M=a(32947),O=a(89613),P=a(96734);const H="sign_in_form",V="sign_up_form",D=({className:e})=>{const{__:t}=(0,k.s9)(),a=(0,c.Zp)(),l=(0,i.wA)(),{search:r}=(0,c.zy)(),[o]=(0,N.Lj)(),[s]=(0,T.uX)(),[d,m]=(0,n.useState)(H),A=(0,E.hN)(),L=(0,P.p)(),[D]=(0,R.p)(),[F]=(0,B.x)(),j=(0,O.u)(),z={name:"password",rules:[{required:!0,message:t("Please enter your password")}],placeholderForCreate:t("Create a password"),placeholderForSignIn:t("Enter your password"),prefix:n.createElement(C.A,{style:{fontSize:16,color:"#1890FF"}})},Z={name:"email",rules:[{required:!0,message:t("Please enter your email address"),type:"email"}],placeholder:t("Enter your email"),prefix:n.createElement(y.A,{style:{fontSize:16,color:"#1890FF"}})},q=[{name:H,tabTitle:t("Sign In"),fields:[Z,z],initialValues:{remember:!1,email:"",password:"",rememberMe:{valuePropName:"checked"}}},{name:V,tabTitle:t("Sign Up"),fields:[Z],initialValues:{remember:!1,email:"",password:"",privacyPolicy:!1,newsletterConsent:!1}}];(0,n.useEffect)((()=>{null!==r&&void 0!==r&&r.startsWith("?signup")&&m(V)}),[r]);const[U,G]=(0,n.useState)(""),$={[H]:{onFinish:(e,t=!1)=>{G(M.F5),l(N.Q2.util.resetApiState());(t?D({code:e.access_token}):s({username:e.email,password:e.password})).then((t=>{var a;if(t.error)throw A.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.message}}),placement:"bottomRight"}),G(M.ff),S.wd("Something went wrong in auth 1",{extra:t.error.data}),new Error(M.ff);if(401===(null===(a=t.data.data)||void 0===a?void 0:a.status))throw A.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.data.message}}),placement:"bottomRight"}),G(M.ff),S.wd("Something went wrong in auth 1 because of no email in yan or gmail",{extra:t.data}),new Error(M.ff);L.set(M.A9.em_token,t.data.token,{expires:e.rememberMe?30:1});let r=t;return l(N.Q2.endpoints.getMe.initiate()).then((e=>({result:e,tokenData:r})))})).then((e=>{var r,o,i,s,c,d;let{result:m,tokenData:u}=e;var p;if(m.error)throw A.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:m.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:m.error.data.message}}),placement:"bottomRight"}),G(M.ff),S.wd("Something went wrong in auth 2",{extra:null===(p=m.error)||void 0===p?void 0:p.data}),new Error(M.ff);const g=L.get(M.A9.promocode);g&&(L.remove(M.A9.promocode),l(I.So.endpoints.checkPromo.initiate({code:g,type:"by_link"})));const h=m.data.last_used_project?`/projects/${m.data.last_used_project}/emails`:"/projects",f=t&&null!==(r=u.data)&&void 0!==r&&r.is_reg?"/projects?status=newbie":h;a(f,{replace:!0}),j({type:t?"Yandex":"Default",event:"submit_form",action:t&&null!==(o=u.data)&&void 0!==o&&o.is_reg?"registration":"authorization",user_email:null===m||void 0===m||null===(i=m.data)||void 0===i?void 0:i.email,carrotquest_hash:null===m||void 0===m||null===(s=m.data)||void 0===s?void 0:s.carrotquest_hash,user_id:null===m||void 0===m||null===(c=m.data)||void 0===c?void 0:c.id,email_subscription_consent:null===m||void 0===m||null===(d=m.data)||void 0===d?void 0:d.email_subscription_consent})})).catch((e=>{var t;G(M.ff),S.wd("Something went wrong in auth 3",{extra:null===(t=e.error)||void 0===t?void 0:t.data})}))},onFinishFailed:e=>{S.wd("onFinishFailed SIGN_IN",{extra:e})}},[V]:{onFinish:e=>{G(M.F5),l(N.Q2.util.resetApiState()),o({email:e.email,username:e.email,reg_type:"simple"}).then((e=>{if(e.error)throw A.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"}),G(M.ff),S.wd("onFinishFailed SIGN_UP",{extra:e.error}),new Error(M.ff);return 200===e.data.code&&A.success({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.data.message}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.data.is_simple_reg_message}}),placement:"bottomRight"}),e})).then((t=>{var a;if(t.error)throw A.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.message}}),placement:"bottomRight"}),G(M.ff),S.wd("Something went wrong in auth 4",{extra:null===(a=t.error)||void 0===a?void 0:a.data}),new Error(M.ff);return L.set(M.A9.em_token,t.data.token,{expires:1}),l(N.Q2.endpoints.editMe.initiate({privacy_policy_agreement:e.privacyPolicy,newsletter_consent:e.newsletterConsent}))})).then((e=>{var t,l,r,o,i;if(e.error)throw A.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"}),S.wd("Something went wrong in auth 5",{extra:null===(i=e.error)||void 0===i?void 0:i.data}),new Error(M.ff);a("/projects?status=newbie",{replace:!0}),j({type:"Default",event:"submit_form",action:"registration",user_email:null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.email,carrotquest_hash:null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.carrotquest_hash,user_id:null===e||void 0===e||null===(r=e.data)||void 0===r?void 0:r.id,email_subscription_consent:null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.email_subscription_consent})})).catch((e=>{var t;S.wd("Something went wrong in auth 6",{extra:null===(t=e.error)||void 0===t?void 0:t.data}),G(M.ff)}))},onFinishFailed:e=>{S.wd("onFinishFailed SIGN_UP",{extra:e})}}};let W=[];return q.map((e=>W.push({label:e.tabTitle,key:e.name,className:"dfsdfsdf",children:n.createElement(u.A,{name:e.name,initialValues:e.initialValues,onFinish:$[e.name].onFinish,onFinishFailed:$[e.name].onFinishFailed,autoComplete:"off"},n.createElement(n.Fragment,null,n.createElement(u.A.Item,null,n.createElement(n.Fragment,null)),n.createElement(p.A,{plain:!0},t("or"))),e.fields.map((a=>n.createElement(u.A.Item,{style:{marginBottom:10},key:a.name,name:a.name,extra:e.name===V&&"password"===a.name&&t("At least 8 characters in both cases, including letters, numbers, and special characters."),validateTrigger:["onSubmit"],rules:"password"===a.name&&e.name===V?[{required:!0,message:t("Please enter your password")},()=>({validator:(e,a)=>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 does not meet the requirements:")))})]:a.rules},"password"===a.name?n.createElement(g.A.Password,{style:{border:"none",borderRadius:5,height:39,marginBottom:10},variant:"borderless",size:"large",disabled:U===M.F5,type:a.name,placeholder:e.name===H?a.placeholderForSignIn:a.placeholderForCreate,prefix:a.prefix,autoComplete:e.name===H?"":"new-password"}):n.createElement(g.A,{style:{border:"none",borderRadius:5,height:39},variant:"borderless",size:"large",disabled:U===M.F5,placeholder:a.placeholder,prefix:a.prefix,autoComplete:"off"})))),n.createElement(u.A.Item,null,n.createElement(h.Ay,{style:{height:44,borderRadius:5,marginTop:10,marginBottom:16,fontSize:18},size:"large",loading:U===M.F5,block:!0,type:"primary",htmlType:"submit",className:e.name===H?"em-analytics__sign-in":"em-analytics__sign-up"},e.tabTitle)),e.name===H&&n.createElement(u.A.Item,null,n.createElement(f.A,{style:{display:"flex"},className:"auth-form__space"},n.createElement(u.A.Item,{name:"rememberMe",valuePropName:"checked",noStyle:!0},n.createElement(b.A,{disabled:U===M.F5},t("Remember me"))),n.createElement(_.N_,{to:"/recover-password"},t("Forgot your password?")))),e.name===V&&n.createElement(n.Fragment,null,n.createElement(u.A.Item,{name:"privacyPolicy",valuePropName:"checked",className:"auth-form__checkbox auth-form__checkbox_pp",rules:[{validator:(e,a)=>a?Promise.resolve():Promise.reject(new Error(t("Please accept the agreement")))}]},n.createElement(b.A,{disabled:U===M.F5},t("I agree to the")," ",n.createElement("a",{href:"https://emailmaker.ru/terms/",target:"_blank",rel:"noopener noreferrer"},t("Terms"))," ",t("and"),"\xa0",n.createElement("a",{href:"https://emailmaker.ru/privacy-policy/",target:"_blank",rel:"noopener noreferrer"},t("Privacy Policy.")))),n.createElement(u.A.Item,{name:"newsletterConsent",valuePropName:"checked",className:"auth-form__checkbox"},n.createElement(b.A,{disabled:U===M.F5,className:"em-analytics__receive-updates-emailmaker"},t("I would like to receive updates from EmailMaker.")))))}))),n.createElement("div",{className:w()("auth-form",{[e]:e})},n.createElement("div",{className:"yandex-button"},n.createElement(x,{yandexHandler:e=>{$[H].onFinish(e,!0)}})),n.createElement(v.A,{activeKey:d,className:"auth-form__tabs",defaultActiveKey:d,onChange:e=>m(e),items:W}))},F=()=>n.createElement(m.A,{className:"auth-page"},n.createElement(D,{className:"auth-page__form"})),j=()=>((0,n.useEffect)((()=>{window.YaSendSuggestToken(`https://${document.location.host}/auth`,{flag:!0})}),[]),n.createElement(n.Fragment,null));var z=a(25911),Z=a(25864),q=a(53668),U=a(29734),G=a(67007),$=a(89687),W=a(41882),X=a(47555),K=a(63719),Y=a(13785),Q=a(62913),J=a(50078),ee=a(47091),te=a(79890),ae=a(47113),ne=a(93771),le=a(84572),re=a(1047),oe=a(8807);const ie=({className:e="",groups:t,isProjectGroups:a})=>{const l=(0,i.wA)(),r=(0,i.d4)(a?le.Rw:le.GD),o=a?"count_template":"count",[s,c]=(0,n.useState)([]),[d,m]=(0,n.useState)([]);(0,n.useEffect)((()=>{let e=[];s.length&&s.forEach((t=>{e.push(...null===t||void 0===t?void 0:t.children.map((e=>({...e,parentId:t.key}))))})),m(e)}),[l,s]);const u=(0,n.useCallback)((e=>null===e||void 0===e?void 0:e.children.reduce(((e,t)=>e+t[o]),0)),[o]);(0,n.useEffect)((()=>{null!==t&&void 0!==t&&t.length&&c(t.filter((e=>u(e)>0)).map((e=>({key:e.id,label:n.createElement("div",{className:"project-page__folder-title"},n.createElement("span",null,e.name),n.createElement("span",{className:"project-page__folder-count "},u(e))),icon:n.createElement(oe.A,{className:"groups__group-count",icon:"GroupArrow"}),count:u(e),children:null===e||void 0===e?void 0:e.children.filter((e=>e[o])).map((e=>({key:e.id,label:n.createElement("div",{className:"project-page__folder-title"},n.createElement("span",null,e.name),n.createElement("span",{className:"project-page__folder-count "},e[o])),name:e.name,count:e[o],className:"groups__menu-item"}))),className:"groups__menu-item"}))))}),[t,o,u]);const p=({selectedKeys:e})=>{const t=d.filter((t=>t.count&&e.includes(String(t.key))));l(a?(0,le.BN)(t):(0,le.es)(t)),l((0,re.ry)({[a?"projectGroup":"group"]:t,[a?"group":"projectGroup"]:[]}))};return!!s.length&&n.createElement("div",{className:`${e} groups`},n.createElement(ne.A,{style:{width:310},defaultOpenKeys:[],selectedKeys:null===r||void 0===r?void 0:r.map((e=>String(e.key))),mode:"inline",items:s,multiple:!0,onSelect:p,onDeselect:p}))};var se=a(83027),ce=a(40277);const{Content:de}=X.A,{Paragraph:me}=K.A,ue=()=>{var e,t,a;const{__:l,_x:r}=(0,k.s9)(),{projectId:o,emailId:s}=(0,c.g)(),d=(0,P.p)();let m=(0,c.Zp)();const u=(0,i.wA)(),g=(0,i.d4)(re.UI),b=(0,i.d4)(le.yN),v={all:r("All","group"),standard:r("Standard","group"),project:r("Project","group")},{data:E}=(0,se.Oo)({}),{data:C,refetch:y,isUninitialized:_}=(0,se.Oo)({parent:null===(e=b.group)||void 0===e?void 0:e[0]},{skip:!(null!==(t=b.group)&&void 0!==t&&t[0])});(0,n.useEffect)((()=>{!_&&y()}),[_,y]);const A=d.get(M.A9.em_template_email)||s;(0,n.useEffect)((()=>{document.body.classList.remove("editor")}),[]);const w=n.createElement(n.Fragment,null,n.createElement(f.A,{size:10},n.createElement(Y.A,{title:l("To emails"),placement:"left"},n.createElement(h.Ay,{type:"text",icon:n.createElement(J.A,null),onClick:()=>(0,ce.XZ)(m,`/projects/${o}`),shape:"circle"})),n.createElement(me,{className:"ant-page-header-heading-title"},l("Create email")),n.createElement(te.A,{isBlocks:!1,templateEmailId:A}))),S=n.createElement(n.Fragment,null),[L,x]=(0,n.useState)(M.ti.ALL);(0,n.useEffect)((()=>{L===M.ti.STANDARD?(u((0,le.BN)([])),u((0,re.ry)({projectGroup:[]}))):L===M.ti.PROJECT&&(u((0,le.es)([])),u((0,re.ry)({group:[]})))}),[u,L]);const T=[{label:v.all,value:M.ti.ALL},{label:v.standard,value:M.ti.STANDARD},{label:v.project,value:M.ti.PROJECT}];return n.createElement(X.A,{className:"template-page"},n.createElement(ae.A,{leftBlock:w,rightBlock:S}),n.createElement(de,{className:"template-page__container"},n.createElement("div",{className:"template-page__content container"},n.createElement("div",{className:"template-page__menu-wrapper"},n.createElement("div",{style:{position:"sticky",top:0}},L!==M.ti.PROJECT&&n.createElement(ie,{className:"template-page__menu",groups:E,isProjectGroups:!1}),!(null===C||void 0===C||null===(a=C.filter((e=>(null===e||void 0===e?void 0:e.children.reduce(((e,t)=>e+t.count_template),0))>0)))||void 0===a||!a.length)&&n.createElement(n.Fragment,null,L===M.ti.ALL&&n.createElement(p.A,null),L!==M.ti.STANDARD&&n.createElement(ie,{className:"template-page__menu",groups:C,isProjectGroups:!0})),!!g.length&&n.createElement(Q.A,{className:"template-page__segment",onChange:x,options:T}))),n.createElement(ee.A,{projectId:o,emailsView:M.Y$,createPage:!0,groupType:L}))))};var pe=a(97790),ge=a(96087),he=a(72570),fe=a(56605),be=a(38976),ve=a(53361),Ee=a(201),Ce=a(66964),ye=a(48753),_e=a(72915),Ae=a(37037),we=a(27941);const ke=({email:e})=>{const{__:t}=(0,k.s9)(),a=e.hasOwnProperty("type")?M.IE:M.Tm,[l,r]=(0,n.useState)(M.yy),o=(0,we.rD)();let i=[{label:n.createElement(n.Fragment,null,t("Settings")),key:M.yy,forceRender:!0,className:"email-settings__collapse-panel",children:n.createElement(_e.A,{className:"email-settings__collapse-panel-content",element:e})}];return o.UTMEnabled&&a===M.Tm&&i.push({label:n.createElement(n.Fragment,null,t("UTM parameters")),key:M.iW,forceRender:!0,className:"email-settings__collapse-panel",children:n.createElement(Ae.A,{className:"email-settings__collapse-panel-content",email:e})}),n.createElement(n.Fragment,null,n.createElement(v.A,{className:"secondary-tabs email-settings__collapse",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:l,onChange:e=>r(e||""),items:i}))};var Se=a(42490),Le=a(29123),xe=a(49823),Te=a(5795),Ie=a(77637),Ne=a(55207),Re=a(54838),Be=a(52919);const{backgroundColor:Me,backgroundImage:Oe,backgroundPositionX:Pe,backgroundPositionY:He,backgroundRepeat:Ve,backgroundSize:De,responsive:Fe,backgroundColorContent:je,width:ze}={backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",backgroundPositionX:"backgroundPositionX",backgroundPositionY:"backgroundPositionY",backgroundRepeat:"backgroundRepeat",backgroundSize:"backgroundSize",responsive:"responsive",backgroundColorContent:"backgroundColorContent",width:"width"},Ze={[Me]:"",[Oe]:"",[Pe]:"",[He]:"",[Ve]:"checked",[De]:"",[je]:"",[ze]:""},{useToken:qe}=l.A,Ue=({className:e,email:t})=>{var a,l,r;const{__:o}=(0,k.s9)(),{token:s}=qe(),c=(0,i.wA)(),d=(0,we.rD)(),[m]=u.A.useForm(),h=(0,Be.XW)(),b=(0,i.d4)(re.uJ),v=(0,i.d4)(re.iy),E=(0,i.d4)(Re.B),C=(0,i.d4)(re.mD),[y,_]=(0,n.useState)(!0),A=o("Email not yet loaded or global container not found.");(0,n.useEffect)((()=>{C&&(c((0,re.S_)(!1)),h({operation:M.Ru.INIT_PREVIEW}))}),[m,C,c,h,t.common_styles]);const S=[{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"}],L=[{label:o("Not defined"),value:""},{label:o("Contain"),value:"contain"},{label:o("Cover"),value:"cover"}];(0,n.useEffect)((()=>{var e,t,a,n;m.setFieldsValue({...b,width:null===(e=b.width)||void 0===e?void 0:e.value,widthDim:null===(t=b.width)||void 0===t?void 0:t.dim,backgroundImage:b.backgroundImage?null===(a=b.backgroundImage[0])||void 0===a?void 0:a.value:"",backgroundRepeat:""===b[Ve]?"repeat":b[Ve],backgroundSize:b[De],responsive:null===(n=b.responsive)||void 0===n?void 0:n.shutdown}),_(!b.backgroundImage)}),[b,m]);return n.createElement("div",{className:w()("appearance-panel",{[e]:e})},n.createElement(u.A,{form:m,layout:"vertical",name:"appearance_panel_form",initialValues:{remember:!1,...Ze},onValuesChange:e=>{var t;const a=m.getFieldsValue(!0),n=Object.keys(e)[0];switch(n){case Pe:case He:h({operation:M.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[n]:""===e[n]?"none":e[n]}});break;case Oe:_(""===e[n]),h({operation:M.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[n]:[{...null===b||void 0===b||null===(t=b.backgroundImage)||void 0===t?void 0:t[0],type:"url",value:e[n]}],backgroundSize:"cover"}});break;case Fe:h({operation:M.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{responsive:{shutdown:e[n],styles:e[n]},width:a.width}});break;default:h({operation:M.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:e})}},autoComplete:"off",className:"element-controls"},v?n.createElement(be.A,{style:{marginBottom:"24px"},message:A,type:"error"}):null,n.createElement(u.A.Item,{style:{marginBottom:"0"}},n.createElement("div",{className:"form-group-title",style:{paddingTop:0}},o("Email layout width")),n.createElement(Ee.A,{gutter:10},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:null!==(a=b.width)&&void 0!==a&&a.value?o("This field sets the width of the email."):o("Couldn`t determine the email width"),placement:"right"},n.createElement(u.A.Item,{name:"width",style:{marginBottom:s.formItemMarginBottomXS}},n.createElement(Se.A,{min:0,placeholder:o("Width"),prefix:n.createElement(Te.A,null),disabled:!(null!==(l=b.width)&&void 0!==l&&l.value),addonAfter:"px"}))))),n.createElement(Ee.A,{gutter:20},n.createElement(Ce.A,{span:24},n.createElement(f.A,{size:8,align:"baseline"},n.createElement(u.A.Item,{name:"responsive",valuePropName:"checked"},n.createElement(Le.A,{size:"small",name:"responsive",id:"responsive",disabled:void 0===(null===(r=b.responsive)||void 0===r?void 0:r.shutdown),onChange:e=>{c((0,Re.wW)({shutdown:e,styles:e})),h({operation:M.Ru.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:document.querySelector(".email-pane__iframe").getBoundingClientRect().width}})}})),n.createElement("div",{className:"ant-form-item-switch-label"},n.createElement("label",{htmlFor:"responsive",style:{verticalAlign:"middle"}},o("Responsive email"))))))),n.createElement(p.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},o("Email background color")),n.createElement(Ee.A,{gutter:10,style:{paddingBottom:y?16:4}},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:o("Background color"),placement:"bottom"},n.createElement(u.A.Item,{name:Me,style:{marginBottom:s.formItemMarginBottomXS},rules:[{message:o("Please set the background color")}]},n.createElement(Ie.A,{placeholder:o("Background color"),usedColors:b.usedColors})))),n.createElement(Ce.A,{span:y?12:24},d.formEmailFieldBackgroundImageEnabled&&n.createElement(n.Fragment,null,n.createElement(Ne.A,{form:m,label:o("Background image"),name:Oe,tooltipTitle:o("Background image"),disabled:v||"Styles"!==E,elementSettings:b}),!y&&n.createElement(n.Fragment,null,n.createElement(u.A.Item,{style:{marginBottom:"0"}},n.createElement(Ee.A,{gutter:10},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:o("Horizontal position"),placement:"bottom"},n.createElement(u.A.Item,{name:Pe,style:{marginBottom:s.formItemMarginBottomXS}},n.createElement(g.A,{placeholder:o("Horizontal position"),prefix:n.createElement(oe.A,{icon:"BgPositionHorizontal"})})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:o("Vertical position"),placement:"bottom"},n.createElement(u.A.Item,{name:He,style:{marginBottom:s.formItemMarginBottomXS}},n.createElement(g.A,{placeholder:o("Vertical position"),prefix:n.createElement(oe.A,{icon:"BgPositionVertical"})})))))),n.createElement(Ee.A,{gutter:10},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:o("Background image repeat"),placement:"bottom"},n.createElement(u.A.Item,{name:Ve},n.createElement(xe.A,{placeholder:o("Please select"),disabled:v,options:S,getPopupContainer:e=>e.parentNode})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:o("Background image size"),placement:"top"},n.createElement(u.A.Item,{name:De},n.createElement(xe.A,{placeholder:o("Please select"),disabled:v,options:L,getPopupContainer:e=>e.parentNode})))))))))))};Ue.defaultProps={className:""};const Ge=Ue;var $e=a(94780),We=a(22536);const{Option:Xe}=xe.A,{width:Ke,widthDim:Ye}={width:"width",widthDim:"widthDim"},Qe={[Ke]:"",[Ye]:""},Je=({className:e})=>{const{__:t}=(0,k.s9)(),a=(0,i.d4)(We.JV),l=(0,i.d4)(We.iy),[r]=u.A.useForm(),o=(0,Be.XW)(),s=t("Block not yet loaded or global container not found.");(0,n.useEffect)((()=>{r.setFieldsValue({width:a.width.value,widthDim:a.width.dim})}),[a,r]);return n.createElement("div",{className:w()("block-appearance-panel",{[e]:e})},n.createElement(u.A,{form:r,layout:"vertical",name:"block_appearance_panel_form",initialValues:{remember:!1,...Qe},onValuesChange:e=>{const t=r.getFieldsValue(!0),a=Object.keys(e)[0];let n;switch(a){case"width":n={[a]:{value:e[a],dim:t.widthDim}};break;case"widthDim":n={width:{value:t.width,dim:e[a]}};break;default:return}o({operation:M.Ru.SANDBOX_BLOCK_SETTINGS_SET,settings:n})},autoComplete:"off"},l?n.createElement(be.A,{style:{marginBottom:"24px"},message:s,type:"error"}):null,n.createElement(u.A.Item,{label:t("Container width"),name:Ke,tooltip:{title:t("Specifies the block width."),icon:n.createElement($e.A,null)},rules:[{message:t("Please input container width")}]},n.createElement(g.A,{disabled:l,placeholder:t("Container width"),addonAfter:n.createElement(u.A.Item,{name:"widthDim",noStyle:!0},n.createElement(xe.A,{className:"select-after",getPopupContainer:e=>e.parentNode},n.createElement(Xe,{value:"px"},"px"),n.createElement(Xe,{value:"%"},"%")))}))))};Je.defaultProps={className:""};const et=Je;var tt=a(46409),at=a(78320),nt=a(67073),lt=a(20721),rt=a(96698),ot=a(26548),it=a(11399),st=a(23863),ct=a(67151),dt=a(80877),mt=a(99512);const{useToken:ut}=l.A,pt=e=>{var t,a,n,l,r,o,i,s,c,d,m;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===(a=e.cards)||void 0===a?void 0:a.baseBackgroundColor)||"#F8F8F8",cardsContrastTextColor:(null===(n=e.cards)||void 0===n?void 0:n.contrastTextColor)||"#FFFFFF",cardsBaseTextColor:(null===(l=e.cards)||void 0===l?void 0:l.baseTextColor)||"#5A5A5A",cardsBorder:(null===(r=e.cards)||void 0===r?void 0:r.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:e.block.backgroundColor||"",blockContrastBackgroundColor:e.block.contrastBackgroundColor||"#1C52DC",blockPaddingAll:null===(i=e.block.padding)||void 0===i?void 0:i.all,blockPaddingTop:null===(s=e.block.padding)||void 0===s?void 0:s.top,blockPaddingRight:null===(c=e.block.padding)||void 0===c?void 0:c.right,blockPaddingBottom:null===(d=e.block.padding)||void 0===d?void 0:d.bottom,blockPaddingLeft:null===(m=e.block.padding)||void 0===m?void 0:m.left}},gt={buttons_borderRadiusAll:"all",buttons_borderRadiusTopLeft:"topLeft",buttons_borderRadiusBottomLeft:"bottomLeft",buttons_borderRadiusTopRight:"topRight",buttons_borderRadiusBottomRight:"bottomRight"},ht={cards_borderRadiusAll:"all",cards_borderRadiusTopLeft:"topLeft",cards_borderRadiusBottomLeft:"bottomLeft",cards_borderRadiusTopRight:"topRight",cards_borderRadiusBottomRight:"bottomRight"},ft=({className:e,email:t})=>{const{__:a}=(0,k.s9)(),l=(0,i.wA)(),r=(0,Be.XW)(),[o]=u.A.useForm(),s=(0,i.d4)(re.uJ),c=(0,i.d4)(re.dH),d=(0,we.rD)(),{token:m}=ut(),[g,b]=(0,n.useState)({}),[v,E]=(0,n.useState)({}),[C,y]=(0,n.useState)(!0),[_,A]=(0,n.useState)(!0),[S,L]=(0,n.useState)(!1),[x,T]=(0,n.useState)(!1),I={buttonsPaddingTop:"top",buttonsPaddingLeft:"left",buttonsPaddingRight:"right",buttonsPaddingBottom:"bottom"},N=t.common_styles&&"{}"!==t.common_styles?JSON.parse(t.common_styles):M.BD,[R,B]=(0,n.useState)(null),O=!!t.common_styles&&"{}"!==t.common_styles,P=(0,i.d4)(Re.Wm);(0,n.useEffect)((()=>{P||B(null)}),[N,B,P]),(0,n.useEffect)((()=>{P&&!R&&B(pt(N))}),[N,R,P]),(0,n.useEffect)((()=>{c&&(l((0,re.RC)(!1)),o.setFieldsValue(pt(N)))}),[o,c,l,N]);const[H,V]=(0,n.useState)(Math.min(N.headings.fontSize-1,19)),[D,F]=(0,n.useState)(Math.max(N.text.fontSize+1,20));(0,n.useEffect)((()=>{if(R){var e,t,a,n,l,r,i,s,c,d,m,u,p;const g=R.buttonsBorder;b(g);const h=Object.keys(g).find((e=>{var t,a,n;return(null===(t=g[e])||void 0===t?void 0:t.width)||(null===(a=g[e])||void 0===a?void 0:a.style)||(null===(n=g[e])||void 0===n?void 0:n.color)})),f=R.cardsBorder;E(f);const v=Object.keys(f).find((e=>{var t,a,n;return(null===(t=f[e])||void 0===t?void 0:t.width)||(null===(a=f[e])||void 0===a?void 0:a.style)||(null===(n=f[e])||void 0===n?void 0:n.color)}));o.setFieldsValue({buttons_borderPosition:h||"all",buttons_borderWidth:null!==(null===(e=g[h])||void 0===e?void 0:e.width)?null===(t=g[h])||void 0===t?void 0:t.width:"",buttons_borderColor:(null===(a=g[h])||void 0===a?void 0:a.color)||"",buttons_borderStyle:(null===(n=g[h])||void 0===n?void 0:n.style)||"",cards_borderPosition:v||"all",cards_borderWidth:null!==(null===(l=f[v])||void 0===l?void 0:l.width)?null===(r=f[v])||void 0===r?void 0:r.width:"",cards_borderColor:(null===(i=f[v])||void 0===i?void 0:i.color)||"",cards_borderStyle:(null===(s=f[v])||void 0===s?void 0:s.style)||"",buttons_borderRadiusAll:(0,mt.ok)(R.buttonsBorderRadius.all),buttons_borderRadiusTopLeft:(0,mt.ok)(R.buttonsBorderRadius.topLeft),buttons_borderRadiusBottomLeft:(0,mt.ok)(R.buttonsBorderRadius.bottomLeft),buttons_borderRadiusTopRight:(0,mt.ok)(R.buttonsBorderRadius.topRight),buttons_borderRadiusBottomRight:(0,mt.ok)(R.buttonsBorderRadius.bottomRight),cards_borderRadiusAll:(0,mt.ok)(R.cardsBorderRadius.all),cards_borderRadiusTopLeft:(0,mt.ok)(R.cardsBorderRadius.topLeft),cards_borderRadiusBottomLeft:(0,mt.ok)(R.cardsBorderRadius.bottomLeft),cards_borderRadiusTopRight:(0,mt.ok)(R.cardsBorderRadius.topRight),cards_borderRadiusBottomRight:(0,mt.ok)(R.cardsBorderRadius.bottomRight),blockPaddingAll:(0,mt.ok)(R.blockPaddingAll),blockPaddingTop:(0,mt.ok)(R.blockPaddingTop),blockPaddingRight:(0,mt.ok)(R.blockPaddingRight),blockPaddingBottom:(0,mt.ok)(R.blockPaddingBottom),blockPaddingLeft:(0,mt.ok)(R.blockPaddingLeft),blockPaddingLeftRight:(0,mt.ok)(R.blockPaddingRight)||(0,mt.ok)(R.blockPaddingLeft),blockPaddingTopBottom:(0,mt.ok)(R.blockPaddingTop)||(0,mt.ok)(R.blockPaddingBottom)}),(0,mt.ok)(R.blockPaddingAll)||!((0,mt.ok)(R.blockPaddingTop)||(0,mt.ok)(R.blockPaddingRight)||(0,mt.ok)(R.blockPaddingBottom)||(0,mt.ok)(R.blockPaddingLeft))||R.blockPaddingTop===R.blockPaddingBottom&&R.blockPaddingRight===R.blockPaddingLeft?T(!0):T(!1),!(0,mt.ok)(R.buttonsBorderRadius.all)&&((0,mt.ok)(R.buttonsBorderRadius.topLeft)||(0,mt.ok)(R.buttonsBorderRadius.bottomLeft)||(0,mt.ok)(R.buttonsBorderRadius.topRight)||(0,mt.ok)(R.buttonsBorderRadius.bottomRight))?y(!1):y(!0),R.buttonsPadding&&!(0,mt.ok)(R.buttonsPadding.all)&&((0,mt.ok)(R.buttonsPadding.bottom)||(0,mt.ok)(R.buttonsPadding.right)||(0,mt.ok)(R.buttonsPadding.left)||(0,mt.ok)(R.buttonsPadding.top))&&L(!1),!(0,mt.ok)(null===(c=R.cardsBorderRadius)||void 0===c?void 0:c.all)&&((0,mt.ok)(null===(d=R.cardsBorderRadius)||void 0===d?void 0:d.topLeft)||(0,mt.ok)(null===(m=R.cardsBorderRadius)||void 0===m?void 0:m.bottomLeft)||(0,mt.ok)(null===(u=R.cardsBorderRadius)||void 0===u?void 0:u.topRight)||(0,mt.ok)(null===(p=R.cardsBorderRadius)||void 0===p?void 0:p.bottomRight))?A(!1):A(!0)}}),[o,R]);const j=e=>{const t=e.target.closest("button"),a=t.name;t.className=t.classList.contains("selected-td-form__button--active")?"ant-btn ant-btn-default":"ant-btn ant-btn-default selected-td-form__button--active",t.blur(),r({operation:M.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[a]:t.classList.contains("selected-td-form__button--active")}})};return R&&n.createElement("div",{className:w()("appearance-panel",{[e]:e})},n.createElement(u.A,{form:o,layout:"vertical",name:"content_appearance_panel_form",initialValues:R,onValuesChange:e=>{var t,a,n,l,i,s;const c=o.getFieldsValue(!0),d=Object.keys(e)[0];let m={};switch(d){case"headingFontSize":V(Math.min(c.headingFontSize-1,19)),m=e;break;case"textFontSize":F(Math.max(c.textFontSize+1,20)),m=e;break;case"buttons_borderStyle":m={buttonsBorder:{[c.buttons_borderPosition]:{...g[c.buttons_borderPosition],style:e[d]}}},"all"===c.buttons_borderPosition?b((t=>({...M.iV,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],style:e[d]}}))):b((t=>({...t,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],style:e[d]}})));break;case"buttons_borderColor":m={buttonsBorder:{[c.buttons_borderPosition]:{...g[c.buttonsBorderPosition],color:e[d]}}},"all"===c.buttons_borderPosition?b((t=>({...M.iV,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],color:e[d]}}))):b((t=>({...t,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],color:e[d]}})));break;case"buttons_borderWidth":m={buttonsBorder:{[c.buttons_borderPosition]:{...g[c.buttons_borderPosition],width:e[d]}}},"all"===c.buttonsBorderPosition?b((t=>({...M.iV,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],width:e[d]}}))):b((t=>({...t,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],width:e[d]}})));break;case"buttons_borderPosition":o.setFieldsValue({buttons_borderWidth:(null===(t=g[e[d]])||void 0===t?void 0:t.width)||"",buttons_borderColor:(null===(a=g[e[d]])||void 0===a?void 0:a.color)||"",buttons_borderStyle:(null===(n=g[e[d]])||void 0===n?void 0:n.style)||""});break;case"cards_borderStyle":m={cardsBorder:{[c.cards_borderPosition]:{...v[c.cards_borderPosition],style:e[d]}}},"all"===c.cards_borderPosition?E((t=>({...M.iV,[c.cards_borderPosition]:{...t[c.cards_borderPosition],style:e[d]}}))):E((t=>({...t,[c.cards_borderPosition]:{...t[c.cards_borderPosition],style:e[d]}})));break;case"cards_borderColor":m={cardsBorder:{[c.cards_borderPosition]:{...v[c.cardsBorderPosition],color:e[d]}}},"all"===c.cards_borderPosition?E((t=>({...M.iV,[c.cards_borderPosition]:{...t[c.cards_borderPosition],color:e[d]}}))):E((t=>({...t,[c.cards_borderPosition]:{...t[c.cards_borderPosition],color:e[d]}})));break;case"cards_borderWidth":m={cardsBorder:{[c.cards_borderPosition]:{...v[c.cards_borderPosition],width:e[d]}}},"all"===c.cardsBorderPosition?E((t=>({...M.iV,[c.cards_borderPosition]:{...t[c.cards_borderPosition],width:e[d]}}))):E((t=>({...t,[c.cards_borderPosition]:{...t[c.cards_borderPosition],width:e[d]}})));break;case"cards_borderPosition":o.setFieldsValue({cards_borderWidth:(null===(l=v[e[d]])||void 0===l?void 0:l.width)||"",cards_borderColor:(null===(i=v[e[d]])||void 0===i?void 0:i.color)||"",cards_borderStyle:(null===(s=v[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:{[gt[d]]:+e[d]}};break;case"cards_borderRadiusAll":case"cards_borderRadiusTopLeft":case"cards_borderRadiusBottomLeft":case"cards_borderRadiusTopRight":case"cards_borderRadiusBottomRight":m={cardsBorderRadius:{[ht[d]]:+e[d]}};break;case"buttonsPaddingTop":case"buttonsPaddingLeft":case"buttonsPaddingRight":case"buttonsPaddingBottom":S?(m={padding:{all:+e[d]}},o.setFieldsValue({paddingTop:e[d],paddingLeft:e[d],paddingRight:e[d],paddingBottom:e[d]})):m={buttonsPadding:{[I[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,[I[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&&r({operation:M.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:m})},autoComplete:"off",className:"element-controls"},O?null:n.createElement(be.A,{style:{marginBottom:"24px"},message:a("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"}),n.createElement("div",{className:"form-group-title",style:{paddingTop:0}},a("Blocks")),n.createElement(Ee.A,{gutter:10},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Blocks background color"),placement:"bottom"},n.createElement(u.A.Item,{name:"blockBackgroundColor",style:{marginBottom:m.formItemMarginBottomMD+4},rules:[{message:a("Please set the background color")}]},n.createElement(Ie.A,{placeholder:a("Background color"),usedColors:s.usedColors})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Background color of the contrast blocks"),placement:"bottom"},n.createElement(u.A.Item,{name:"blockContrastBackgroundColor",style:{marginBottom:m.formItemMarginBottomMD+4},rules:[{message:a("Please set the background color")}]},n.createElement(Ie.A,{placeholder:a("Background color"),usedColors:s.usedColors}))))),n.createElement(Ee.A,{gutter:10,style:{paddingBottom:4}},n.createElement(n.Fragment,null,n.createElement(Ce.A,{span:10,style:{width:156,flex:"auto",maxWidth:"none"}},n.createElement("div",{className:"padding-collapsed",style:{display:x?"block":"none"}},n.createElement(Y.A,{title:a("Horizontal padding"),placement:"bottom"},n.createElement(u.A.Item,{name:"blockPaddingLeftRight"},n.createElement(dt.A,{min:0,placeholder:a("Horizontal"),prefix:n.createElement(oe.A,{icon:"PaddingLeftRight"}),addonAfter:"px"})))),n.createElement("div",{className:"padding-extended",style:{display:x?"none":"block"}},n.createElement(Y.A,{trigger:["hover"],title:a("Left padding"),placement:"bottom"},n.createElement(u.A.Item,{name:"blockPaddingLeft",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(dt.A,{min:0,placeholder:a("Left"),prefix:n.createElement(oe.A,{icon:"PaddingLeft"}),addonAfter:"px"}))),n.createElement(Y.A,{trigger:["hover"],title:a("Right padding"),placement:"bottom"},n.createElement(u.A.Item,{name:"blockPaddingRight"},n.createElement(dt.A,{min:0,placeholder:a("Right"),prefix:n.createElement(oe.A,{icon:"PaddingRight"}),addonAfter:"px"}))))),n.createElement(Ce.A,{span:10,style:{width:156,flex:"auto",maxWidth:"none"}},n.createElement("div",{className:"padding-collapsed",style:{display:x?"block":"none"}},n.createElement(Y.A,{title:a("Vertical padding"),placement:"bottom"},n.createElement(u.A.Item,{name:"blockPaddingTopBottom"},n.createElement(dt.A,{min:0,placeholder:a("Vertical"),prefix:n.createElement(oe.A,{icon:"PaddingTopBottom"}),addonAfter:"px"})))),n.createElement("div",{className:"padding-extended",style:{display:x?"none":"block"}},n.createElement(Y.A,{trigger:["hover"],title:a("Top padding"),placement:"bottom"},n.createElement(u.A.Item,{name:"blockPaddingTop",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(dt.A,{min:0,placeholder:a("Top"),prefix:n.createElement(oe.A,{icon:"PaddingTop"}),addonAfter:"px"}))),n.createElement(Y.A,{trigger:["hover"],title:a("Bottom padding"),placement:"bottom"},n.createElement(u.A.Item,{name:"blockPaddingBottom"},n.createElement(dt.A,{min:0,placeholder:a("Bottom"),prefix:n.createElement(oe.A,{icon:"PaddingBottom"}),addonAfter:"px"}))))),n.createElement(Ce.A,{span:4,style:{width:45,flex:"auto",maxWidth:"none"}},n.createElement(Y.A,{title:a("Individual padding"),placement:"bottom"},n.createElement(h.Ay,{className:w()("selected-td-form__button",{"selected-td-form__button--active":!x}),onClick:()=>{T((e=>!e));const e=o.getFieldsValue(!0);x||(e.blockPaddingLeftRight=e.blockPaddingLeft,e.blockPaddingTopBottom=e.blockPaddingTop,e.blockPaddingRight=e.blockPaddingLeft,e.blockPaddingBottom=e.blockPaddingTop,r({operation:M.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{blockPadding:{top:e.blockPaddingTopBottom,bottom:e.blockPaddingTopBottom,left:e.blockPaddingLeftRight,right:e.blockPaddingLeftRight}}}))}},n.createElement(oe.A,{icon:"PaddingSwitcher"})))))),n.createElement(p.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},a("General text")),n.createElement(Y.A,{trigger:["hover"],title:a("Font of the general text"),placement:"bottom"},n.createElement(u.A.Item,{name:"textFontFamily",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(ot.A,{value:R.textFontFamily}))),n.createElement(Ee.A,{gutter:10},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Font size of the general text"),placement:"bottom"},n.createElement(u.A.Item,{name:"textFontSize"},n.createElement(dt.A,{min:15,max:H,placeholder:a("Font size"),prefix:n.createElement(tt.A,null),addonAfter:"px"})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Line height of the general text"),placement:"bottom"},n.createElement(u.A.Item,{name:"textLineHeight"},n.createElement(dt.A,{min:0,placeholder:a("Line height"),prefix:n.createElement(at.A,null),addonAfter:"px"}))))),n.createElement(Ee.A,{gutter:10,style:{paddingBottom:4}},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Color of the general text"),placement:"bottom"},n.createElement(u.A.Item,{name:"textColor"},n.createElement(Ie.A,{placeholder:a("Text color"),usedColors:s.usedColors})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Contrast block text color"),placement:"bottom"},n.createElement(u.A.Item,{name:"textContrastColor"},n.createElement(Ie.A,{placeholder:a("Text color"),usedColors:s.usedColors}))))),n.createElement(Ee.A,{gutter:10,style:{paddingBottom:4}},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Bottom padding of the general text"),placement:"bottom"},n.createElement(u.A.Item,{name:"textPaddingBottom"},n.createElement(dt.A,{min:0,placeholder:a("Bottom padding"),prefix:n.createElement(oe.A,{icon:"PaddingBottom"}),addonAfter:"px"}))))),n.createElement(p.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},a("Headings")),n.createElement(Y.A,{trigger:["hover"],title:a("Heading font"),placement:"left"},n.createElement(u.A.Item,{name:"headingFontFamily",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(ot.A,null))),n.createElement(Ee.A,{gutter:10},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Heading font size"),placement:"bottom"},n.createElement(u.A.Item,{name:"headingFontSize",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(dt.A,{min:D,max:40,placeholder:a("Font size"),prefix:n.createElement(tt.A,null),addonAfter:"px"})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Heading line height"),placement:"bottom"},n.createElement(u.A.Item,{name:"headingLineHeight",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(dt.A,{min:0,placeholder:a("Line height"),prefix:n.createElement(at.A,null),addonAfter:"px"}))))),n.createElement(Ee.A,{gutter:10},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Heading letter spacing"),placement:"bottom"},n.createElement(u.A.Item,{name:"headingLetterSpacing"},n.createElement(dt.A,{min:0,placeholder:a("Letter spacing"),prefix:n.createElement(Te.A,null),addonAfter:"px"})))),n.createElement(Ce.A,{span:12},n.createElement(f.A,null,n.createElement(Y.A,{placement:"bottom",title:a("Strong")},n.createElement(h.Ay,{className:w()({"selected-td-form__button--active":R.headingBold}),type:"default",name:"headingBold",onClick:j},n.createElement(nt.A,null))),n.createElement(Y.A,{placement:"bottom",title:a("Italic")},n.createElement(h.Ay,{className:w()({"selected-td-form__button--active":R.headingItalic}),type:"default",name:"headingItalic",onClick:j},n.createElement(lt.A,null)))))),n.createElement(Ee.A,{gutter:10},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Heading color"),placement:"bottom"},n.createElement(u.A.Item,{name:"headingColor"},n.createElement(Ie.A,{placeholder:a("Heading color"),usedColors:s.usedColors})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Contrast block header color"),placement:"bottom"},n.createElement(u.A.Item,{name:"headingContrastColor"},n.createElement(Ie.A,{placeholder:a("Heading color"),usedColors:s.usedColors}))))),n.createElement(Ee.A,{gutter:10,style:{paddingBottom:4}},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Top padding"),placement:"bottom"},n.createElement(u.A.Item,{name:"headingPaddingTop"},n.createElement(dt.A,{min:0,placeholder:a("Top padding"),prefix:n.createElement(oe.A,{icon:"PaddingTop"}),addonAfter:"px"})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Bottom padding"),placement:"bottom"},n.createElement(u.A.Item,{name:"headingPaddingBottom"},n.createElement(dt.A,{min:0,placeholder:a("Bottom padding"),prefix:n.createElement(oe.A,{icon:"PaddingBottom"}),addonAfter:"px"}))))),n.createElement(p.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},a("Links")),n.createElement(Ee.A,{gutter:10},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Link color"),placement:"bottom"},n.createElement(u.A.Item,{name:"linkColor",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(Ie.A,{placeholder:a("Link color"),usedColors:s.usedColors})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{placement:"bottom",title:a("Underline")},n.createElement(h.Ay,{className:w()({"selected-td-form__button--active":R.linkUnderline}),type:"default",name:"linkUnderline",onClick:j},n.createElement(rt.A,null))))),n.createElement(Ee.A,{gutter:10,style:{paddingBottom:4}},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Link color in contrasting blocks"),placement:"bottom"},n.createElement(u.A.Item,{name:"linkContrastColor"},n.createElement(Ie.A,{placeholder:a("Link color"),usedColors:s.usedColors}))))),n.createElement(p.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},a("Buttons")," ",n.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",a("Text & background")),n.createElement(Y.A,{trigger:["hover"],title:a("Buttons font"),placement:"left"},n.createElement(u.A.Item,{name:"buttonsFontFamily",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(ot.A,null))),n.createElement(Ee.A,{gutter:10},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Buttons font size"),placement:"bottom"},n.createElement(u.A.Item,{name:"buttonsFontSize",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(dt.A,{min:0,placeholder:a("Font size"),prefix:n.createElement(tt.A,null),addonAfter:"px"})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Buttons letter spacing"),placement:"bottom"},n.createElement(u.A.Item,{name:"buttonsLetterSpacing",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(dt.A,{min:0,placeholder:a("Letter spacing"),prefix:n.createElement(Te.A,null),addonAfter:"px"}))))),n.createElement(Ee.A,{gutter:10,style:{paddingBottom:4}},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Buttons text color"),placement:"bottom"},n.createElement(u.A.Item,{name:"buttonsColor",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(Ie.A,{placeholder:a("Buttons text color"),usedColors:s.usedColors})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Button text color in contrasting blocks"),placement:"bottom"},n.createElement(u.A.Item,{name:"buttonsContrastColor",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(Ie.A,{placeholder:a("Buttons text color"),usedColors:s.usedColors})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Buttons background color"),placement:"bottom"},n.createElement(u.A.Item,{name:"buttonsBackgroundColor"},n.createElement(Ie.A,{placeholder:a("Background color"),usedColors:s.usedColors})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Button background color in contrasting blocks"),placement:"bottom"},n.createElement(u.A.Item,{name:"buttonsContrastBackgroundColor"},n.createElement(Ie.A,{placeholder:a("Background color"),usedColors:s.usedColors})))),d.formButtonFieldTextAlignEnabled&&n.createElement(Ce.A,{span:12},n.createElement(it.A,{form:o,elementSettings:{textAlign:"",type:"email"},imgParent:!1,name:"buttonsAlign",withHotKeys:!1})),n.createElement(Ce.A,{span:12},n.createElement(f.A,null,n.createElement(Y.A,{placement:"bottom",title:a("Strong")},n.createElement(h.Ay,{className:w()({"selected-td-form__button--active":R.buttonsBold}),type:"default",name:"buttonsBold",onClick:j},n.createElement(nt.A,null))),n.createElement(Y.A,{placement:"bottom",title:a("Italic")},n.createElement(h.Ay,{className:w()({"selected-td-form__button--active":R.buttonsItalic}),type:"default",name:"buttonsItalic",onClick:j},n.createElement(lt.A,null)))))),d.formFieldBorderEnabled&&n.createElement(n.Fragment,null,n.createElement(p.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},a("Buttons")," ",n.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",a("Borders")),n.createElement("div",{style:{paddingBottom:4}},n.createElement(st.A,{borders:g,namePrefix:"buttons_"}))),d.formFieldBorderRadiusEnabled&&n.createElement(n.Fragment,null,n.createElement(p.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},a("Buttons")," ",n.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",a("Border radius")),n.createElement("div",{style:{paddingBottom:4}},n.createElement(ct.A,{form:o,oneBorderRadiusValue:C,setOneBorderRadiusValue:y,elementSettings:R,namePrefix:"buttons_"}))),n.createElement(p.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},a("Buttons")," ",n.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",a("Margins")),n.createElement(Ee.A,{gutter:10,style:{paddingBottom:4}},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Top margin"),placement:"bottom"},n.createElement(u.A.Item,{name:"buttonsMarginTop"},n.createElement(dt.A,{min:0,placeholder:a("Top margin"),prefix:n.createElement(oe.A,{icon:"PaddingTop"}),addonAfter:"px"})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Bottom margin"),placement:"bottom"},n.createElement(u.A.Item,{name:"buttonsMarginBottom"},n.createElement(dt.A,{min:0,placeholder:a("Bottom margin"),prefix:n.createElement(oe.A,{icon:"PaddingBottom"}),addonAfter:"px"}))))),n.createElement(p.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},a("Cards")," ",n.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",a("Colors")),n.createElement(Ee.A,{gutter:10},n.createElement(Ce.A,{span:12},n.createElement("div",{className:"form-group-title",style:{paddingTop:0,paddingBottom:m.formItemMarginBottomXS}},a("Base colors")),n.createElement(Y.A,{trigger:["hover"],title:a("Base background color"),placement:"bottom"},n.createElement(u.A.Item,{name:"cardsBaseBackgroundColor",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(Ie.A,{placeholder:a("Base background color"),usedColors:s.usedColors})))),n.createElement(Ce.A,{span:12},n.createElement("div",{className:"form-group-title",style:{paddingTop:0,paddingBottom:m.formItemMarginBottomXS}},a("Contrasting colors")),n.createElement(Y.A,{trigger:["hover"],title:a("Contrasting background color"),placement:"bottom"},n.createElement(u.A.Item,{name:"cardsContrastBackgroundColor",style:{marginBottom:m.formItemMarginBottomXS}},n.createElement(Ie.A,{placeholder:a("Contrasting background color"),usedColors:s.usedColors}))))),n.createElement(Ee.A,{gutter:10,style:{paddingBottom:4}},n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Base text color"),placement:"bottom"},n.createElement(u.A.Item,{name:"cardsBaseTextColor"},n.createElement(Ie.A,{placeholder:a("Base text color"),usedColors:s.usedColors})))),n.createElement(Ce.A,{span:12},n.createElement(Y.A,{trigger:["hover"],title:a("Contrasting text color"),placement:"bottom"},n.createElement(u.A.Item,{name:"cardsContrastTextColor"},n.createElement(Ie.A,{placeholder:a("Contrasting text color"),usedColors:s.usedColors}))))),d.formFieldBorderEnabled&&n.createElement(n.Fragment,null,n.createElement(p.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},a("Cards")," ",n.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",a("Borders")),n.createElement("div",{style:{paddingBottom:4}},n.createElement(st.A,{borders:v,namePrefix:"cards_"}))),d.formFieldBorderRadiusEnabled&&n.createElement(n.Fragment,null,n.createElement(p.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},a("Cards")," ",n.createElement("span",{className:"form-group-title__bull"},"\u2022")," ",a("Border radius")),n.createElement("div",{style:{paddingBottom:4}},n.createElement(ct.A,{form:o,oneBorderRadiusValue:_,setOneBorderRadiusValue:A,elementSettings:R,namePrefix:"cards_"})))))};ft.defaultProps={className:""};const bt=ft,vt=({email:e})=>{const{__:t}=(0,k.s9)(),a=e.hasOwnProperty("type")?M.IE:M.Tm,[l,r]=(0,n.useState)(M.xz),o=!!e.common_styles&&"{}"!==e.common_styles;let i=[{label:n.createElement(n.Fragment,null,a===M.Tm?t("Global styles"):t("Block styles")),key:M.xz,forceRender:!0,className:"email-settings__collapse-panel",children:a===M.Tm?n.createElement(Ge,{className:"email-settings__collapse-panel-content",email:e}):n.createElement(et,{className:"email-settings__collapse-panel-content"})}];return a===M.Tm&&o&&i.push({label:n.createElement(n.Fragment,null,t("Content styles")),key:"contentStyles",forceRender:!0,className:"email-settings__collapse-panel",children:n.createElement(bt,{className:"email-settings__collapse-panel-content",email:e})}),n.createElement(n.Fragment,null,n.createElement(v.A,{className:"secondary-tabs email-settings__collapse appearance-panel__content-styles",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:l,onChange:e=>r(e||""),items:i}))};var Et=a(38927),Ct=a(59010),yt=a(40186),_t=a(6969),At=a(80293),wt=a(72510),kt=a(36434),St=a(97032),Lt=a(5618),xt=a(73180);const Tt=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:It,type:Nt,tags:Rt}={name:"name",type:"type",tags:"tags"},Bt={[It]:"",[Nt]:[],[Rt]:[]},Mt={Header:10,Menu:20,Banners:30,Content:40,Lists:50,Buttons:60,Promocodes:70,"E-Commerce":80,Articles:90,Polls:100,Applications:110,Feature:120,Separators:130,Contacts:140,Footer:150},{useToken:Ot}=l.A,Pt=({parentEmailId:e=M.iU,blocksTab:t,search:a,reloadBlockScreens:l,email:r})=>{const{projectId:s}=(0,c.g)(),d=(0,ce.sh)(),m=(0,ce._9)(),[h]=u.A.useForm(),{data:f}=(0,Lt.h1)(),{token:b}=Ot(),{__:v,_x:C}=(0,k.s9)(),y=(0,E.hN)(),{modal:_}=o.A.useApp(),{confirm:A}=_;let S=(0,c.zy)();const L=(0,i.d4)(Re.V$),x=(0,n.useRef)(null),T=(0,n.useRef)(null),I="string"===typeof(null===r||void 0===r?void 0:r.common_styles)&&null!==r&&void 0!==r&&r.common_styles.startsWith("{")?JSON.parse(r.common_styles):{},N=(0,n.useRef)(null),R=(0,n.useRef)(null),B=(0,n.useRef)(null),O=(0,i.Pj)();(0,n.useEffect)((()=>{var e;null===(e=T.current)||void 0===e||e.scrollTo({top:0})}),[t,a]);const{data:P}=St.Nq.endpoints.getProject.select(+s)(O.getState()),[H,V]=(0,n.useState)({projectId:s,pageSize:1e3,page:1,tags:null,name:null,type:null,notEmbed:!0,order:"asc",orderby:"title"});(0,n.useEffect)((()=>{a||(h.setFieldsValue(Bt),fe({type:null,name:null}),l())}),[a,h,l]),(0,n.useEffect)((()=>{if(f){const e=f.schema.properties.acf.properties.type.items.enum;let t=[];for(let a in e)t.push({label:v(M.jg[e[a]]),value:e[a]})}}),[f,v]);const{isSuccess:D,isError:F,isLoading:j,isFetching:z,data:Z,refetch:q,error:U}=(0,Lt.SB)({...H,page:1}),G=(0,n.useMemo)((()=>{if(D&&Z)return[...Z].sort(((e,t)=>Mt[e.type]-Mt[t.type]))}),[D,Z]),[$,W]=(0,n.useState)([]);(0,xt.Z)((e=>{e!==F&&y.fromError("BLOCK_GET_ERROR",{},U,!0)}),[F,U,y]);const[X,K]=(0,n.useState)({emailId:e,pageSize:1e3,page:1,projectId:M.p5,notEmbed:!0,name:null,type:null}),{isSuccess:Y,isError:Q,isLoading:J,isFetching:ee}=(0,Lt.OD)({...X,emailId:e,page:1},{skip:!e||L.length}),te=(0,n.useMemo)((()=>{if(Y||L.length)return[...L].sort(((e,t)=>Mt[e.type]-Mt[t.type]))}),[Y,L]),[ae,ne]=(0,n.useState)([]);(0,n.useEffect)((()=>{const e=new Set;if(L.length&&te){for(const t of te)t.type&&e.add(t.type);ne(Array.from(e))}else ne([])}),[L,te]);const[le,re]=(0,n.useState)({pageSize:1e3,page:1,notEmbed:!0,name:null,type:null}),{isSuccess:oe,isError:ie,isLoading:se,isFetching:de,data:me=[]}=(0,Lt.kz)({...le,page:1}),ue=(0,n.useMemo)((()=>{if(me.length)return[...me].sort(((e,t)=>Mt[e.type]-Mt[t.type]))}),[me]),[pe,ge]=(0,n.useState)([]);(0,n.useEffect)((()=>{const e=new Set;if(ue&&me.length){for(const t of ue)t.type&&e.add(t.type);ge(Array.from(e))}}),[me.length,ue]);const he=(0,n.useMemo)((()=>{const e=new Set;for(const t of $)e.add(t);for(const t of ae)e.add(t);for(const t of pe)e.add(t);return Array.from(e)}),[pe,ae,$]),fe=e=>{V((t=>({...t,...e,page:1}))),K((t=>({...t,...e,page:1}))),re((t=>({...t,...e,page:1})))},ve=(0,n.useCallback)((()=>{document.querySelector(".blocks-search__result-wrapper.is_search")&&(document.querySelector(".blocks-search__result-wrapper").style.removeProperty("transition"),document.querySelector(".blocks-search__result-wrapper").style.opacity=0,document.querySelectorAll(".blocks-search__result-body").forEach((e=>e.style.removeProperty("height"))),document.querySelectorAll(".blocks-search__result-body").forEach((e=>{e.style.height=207*e.offsetHeight/660+"px"})),document.querySelector(".blocks-search__result-wrapper").style.transition="opacity 0.2s",document.querySelectorAll(".blocks-search__result-wrapper").forEach((e=>e.style.opacity=1)))}),[]);(0,n.useEffect)((()=>{de||se||!oe||"template"===t||(a?ve():l())}),[de,se,oe,ve,H.name,l,a,t]),(0,n.useEffect)((()=>{const e=new Set;if(D&&G){for(const t of G)t.type&&e.add(t.type);W(Array.from(e))}}),[D,G]);const Ee=e=>{l(),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 Ce=null;const ye=e=>{clearTimeout(Ce);let t=document.querySelector(".block-search__preview")?document.querySelector(".block-search__preview"):null,a=document.querySelector(".block-search__preview-title")?document.querySelector(".block-search__preview-title"):null,n=document.querySelector(".block-search__preview-content")?document.querySelector(".block-search__preview-content"):null;document.querySelector(".block-search__preview")||(t=document.createElement("div"),t.classList.add("block-search__preview"),a=document.createElement("div"),a.classList.add("block-search__preview-title"),n=document.createElement("div"),n.classList.add("block-search__preview-content"),t.append(n),t.append(a),document.querySelector(".email-pane__col_settings-inner").append(t)),a.innerHTML="",n.innerHTML="",a.innerHTML=e.title;let l=e.html.replaceAll(/<style((.|\n|\r)*?)<\/style>/gi,"").trim();n.innerHTML=Tt('<table cellspacing="0" cellpadding="0" border="0" width="100%">'+l+"</table>"),"1"!==t.style.opacity&&setTimeout((function(){t.style.opacity="1",t.style.transform="translateX(-100%)"}),10)},_e=()=>{let e=document.querySelector(".block-search__preview");e&&(Ce=setTimeout((()=>{e.style.opacity="0",e.style.transform="translateX(-99%)",setTimeout((function(){e.remove()}),300)}),300))};(0,n.useEffect)((()=>{document.querySelectorAll(".blocks-search__result").forEach((e=>{e.style.display="block"}))}),[t]);const Ae=!(null!==Z&&void 0!==Z&&Z.length)&&(!e||!(null!==L&&void 0!==L&&L.length))&&!(null!==me&&void 0!==me&&me.length)&&(H.tags||H.name||H.type)&&!(j||z);(0,n.useEffect)((()=>{j||z||l()}),[j,z,l]),(0,n.useEffect)((()=>{("common"===t||a)&&setTimeout(l,50)}),[Z,l,t,a]);const we=e=>{A({maskClosable:!0,centered:!0,title:C("Are you sure you want to delete the \u201c","block")+e.title+v("\u201d block?"),icon:n.createElement(yt.A,null),okText:v("Yes"),cancelText:v("No"),onOk:()=>(e=>O.dispatch(Lt.VM.endpoints.deleteBlock.initiate(e.id)).then((t=>{t.error&&y.fromError("BLOCK_REMOVING_ERROR",(0,E.x_)(e),t.error),y.success({id:"BLOCK_REMOVING_SUCCESS",data:(0,E.x_)(e),message:v("The block \u201c")+t.data.title+C("\u201d was successfully removed.","block")}),q()})))(e)})},ke=(e,t)=>`${e.pathname.split("emails")[0]}blocks/${t.id}`,Se=e=>{let t=[{key:"Delete block",className:"blocks-search__result__menu-item",icon:n.createElement(yt.A,{style:{fontSize:"16px",margin:0}}),style:{color:b.colorError},onClick:()=>we(e)}];return!M.EW.isPlugin&&t.unshift({key:"Edit block",className:"blocks-search__result__menu-item",icon:n.createElement(_t.A,{style:{fontSize:"16px",margin:0}}),label:n.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:ke(S,e)}," ")}),t},Le=e=>{let t="<tr"===e.html.substring(0,3)?document.createElement("table"):document.createElement("div");if(t.replaceChildren(...(0,kt.$$)(e.html)),0!==Object.keys(I).length&&(t.querySelectorAll(".em-contrast-card").forEach((e=>{var t,a;null!==(t=I.cards)&&void 0!==t&&t.contrastBackgroundColor&&(e.getAttribute("bgcolor")?I.cards.contrastBackgroundColor?e.setAttribute("bgcolor",I.cards.contrastBackgroundColor):e.removeAttribute("bgcolor"):I.cards.contrastBackgroundColor?e.style.backgroundColor=I.cards.contrastBackgroundColor:e.style.removeProperty("background-color")),null!==(a=I.cards)&&void 0!==a&&a.contrastTextColor&&e.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach((e=>{if("#ffffff"!==Te(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.cards.contrastTextColor};`);e.setAttribute("style",t)}}))})),t.querySelectorAll(".em-card").forEach((e=>{var t,a;null!==(t=I.cards)&&void 0!==t&&t.baseBackgroundColor&&(e.getAttribute("bgcolor")?I.cards.baseBackgroundColor?e.setAttribute("bgcolor",I.cards.baseBackgroundColor):e.removeAttribute("bgcolor"):I.cards.baseBackgroundColor?e.style.backgroundColor=I.cards.baseBackgroundColor:e.style.removeProperty("background-color")),null!==(a=I.cards)&&void 0!==a&&a.baseTextColor&&e.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach((e=>{if("#ffffff"!==Te(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.cards.baseTextColor};`);e.setAttribute("style",t)}}))})),t.querySelectorAll(".em-card, .em-contrast-card").forEach((e=>{var t,a,n,l,r,o;null!==(t=I.cards)&&void 0!==t&&t.border&&Ne({settings:{border:null===(o=I.cards)||void 0===o?void 0:o.border},elem:e});if(null!==(a=I.cards)&&void 0!==a&&null!==(n=a.borderRadius)&&void 0!==n&&n.all){var i,s,c,d;if(e.style.borderBottomLeftRadius&&"0px"!==e.style.borderBottomLeftRadius)e.style.borderBottomLeftRadius=(null===(i=I.cards)||void 0===i?void 0:i.borderRadius.all)+"px";if(e.style.borderBottomRightRadius&&"0px"!==e.style.borderBottomRightRadius)e.style.borderBottomRightRadius=(null===(s=I.cards)||void 0===s?void 0:s.borderRadius.all)+"px";if(e.style.borderTopLeftRadius&&"0px"!==e.style.borderTopLeftRadius)e.style.borderTopLeftRadius=(null===(c=I.cards)||void 0===c?void 0:c.borderRadius.all)+"px";if(e.style.borderTopRightRadius&&"0px"!==e.style.borderTopRightRadius)e.style.borderTopRightRadius=(null===(d=I.cards)||void 0===d?void 0:d.borderRadius.all)+"px"}else if(""===(null===(l=I.cards)||void 0===l||null===(r=l.borderRadius)||void 0===r?void 0:r.all))e.style.removeProperty("border-radius");else{var m,u,p,g,h,f,b,v,E,C,y,_,A,w,k,S,L,x,T,N;if(null!==(m=I.cards)&&void 0!==m&&null!==(u=m.borderRadius)&&void 0!==u&&u.topLeft&&e.style.borderTopLeftRadius&&"0px"!==e.style.borderTopLeftRadius)e.style.borderTopLeftRadius=(null===(L=I.cards)||void 0===L?void 0:L.borderRadius.topLeft)+"px";else""===(null===(p=I.cards)||void 0===p||null===(g=p.borderRadius)||void 0===g?void 0:g.topLeft)&&e.style.removeProperty("border-top-left-radius");if(null!==(h=I.cards)&&void 0!==h&&null!==(f=h.borderRadius)&&void 0!==f&&f.topRight&&e.style.borderTopRightRadius&&"0px"!==e.style.borderTopRightRadius)e.style.borderTopRightRadius=(null===(x=I.cards)||void 0===x?void 0:x.borderRadius.topRight)+"px";else""===(null===(b=I.cards)||void 0===b||null===(v=b.borderRadius)||void 0===v?void 0:v.topRight)&&e.style.removeProperty("border-top-right-radius");if(null!==(E=I.cards)&&void 0!==E&&null!==(C=E.borderRadius)&&void 0!==C&&C.bottomRight&&e.style.borderBottomRightRadius&&"0px"!==e.style.borderBottomRightRadius)e.style.borderBottomRightRadius=(null===(T=I.cards)||void 0===T?void 0:T.borderRadius.bottomRight)+"px";else""===(null===(y=I.cards)||void 0===y||null===(_=y.borderRadius)||void 0===_?void 0:_.bottomRight)&&e.style.removeProperty("border-bottom-right-radius");if(null!==(A=I.cards)&&void 0!==A&&null!==(w=A.borderRadius)&&void 0!==w&&w.bottomLeft&&e.style.borderBottomLeftRadius&&"0px"!==e.style.borderBottomLeftRadius)e.style.borderBottomLeftRadius=(null===(N=I.cards)||void 0===N?void 0:N.borderRadius.bottomLeft)+"px";else""===(null===(k=I.cards)||void 0===k||null===(S=k.borderRadius)||void 0===S?void 0:S.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 n="",l=I.text.fontFamily;if(parseFloat(e.style.fontSize)>14&&(n=e.getAttribute("style").replace(/font-size:(\s+)?.*?px/,`font-size: ${I.text.fontSize}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${I.text.lineHeight}px`),e.setAttribute("style",n)),e.closest(".em-contrast-card, .em-card")||"#ffffff"===Te(e.style.color).toLowerCase()||(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.text.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: ${I.text.contrastColor};`),e.setAttribute("style",n)),"Safe Fonts"===l[0]?(e.style.fontFamily=l[1],xe({elem:t})):"Google Fonts"===l[0]&&("Sans Serif"===l[1]?e.style.fontFamily="Helvetica, Arial, sans-serif":"Serif"===l[1]&&(e.style.fontFamily='"Times New Roman", Times, serif'),e.classList.remove(...[...e.classList].filter((e=>e.startsWith("em-font")))),e.classList.add(`em-font-${l[2].replace(/\s/g,"")}-${l[3].replace(/\s/g,"")}`),Ie({elem:t,fontFamilyArray:l})),e.closest('[em="atom"] > tr > td')&&e.closest('[em="atom"] > tr > td').style.paddingBottom)e.closest('[em="atom"] > tr > td').style.paddingBottom=I.text.paddingBottom+"px";else if(e.nextElementSibling||e.closest("table")&&e.closest("table").nextElementSibling){var a;let t=null!==(a=e.nextElementSibling)&&void 0!==a?a:e.closest("table").nextElementSibling;t&&"TABLE"===t.tagName&&(t.classList.contains("em-vindent-table")||""===t.querySelector("td").innerHTML)&&t.querySelector("td").setAttribute("height",I.text.paddingBottom)}}else if(!e.style.display&&parseFloat(e.style.fontSize)>=20&&"#eb3737"!==Te(e.style.color).toLowerCase()){let a="",n=I.headings.fontFamily;parseFloat(e.style.fontSize)<40&&(a=e.getAttribute("style").replace(/font-size:(\s+)?.*?px/,`font-size: ${I.headings.fontSize}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${I.headings.lineHeight}px`),e.setAttribute("style",a)),e.closest(".em-contrast-card, .em-card")||"#ffffff"===Te(e.style.color).toLowerCase()||(a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.headings.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: ${I.headings.contrastColor};`),e.setAttribute("style",a)),"Safe Fonts"===n[0]?(e.style.fontFamily=n[1],xe({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,"")}`),Ie({elem:t,fontFamilyArray:n}));let l="";if(l=I.headings.letterSpacing>0?e.style.letterSpacing?e.getAttribute("style").replace(/letter-spacing:(\s+)?.*?px/,`letter-spacing: ${I.headings.letterSpacing}px`):e.getAttribute("style")+` letter-spacing: ${I.headings.letterSpacing}px;`:e.getAttribute("style").replace(/(\s+)?letter-spacing:(\s+)?.*?px(;)?/,""),e.setAttribute("style",l),I.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(I.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=I.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",I.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=I.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",I.headings.paddingBottom)}}})),t.querySelectorAll('a[style*="color"]').forEach((e=>{if(e.style.display){if(e.style.display&&"block"===e.style.display){let a="";if(a=e.getAttribute("style").replace(/font-size:(\s+)?.*?px/,`font-size: ${I.buttons.fontSize}px`),e.setAttribute("style",a),!e.closest("td").style.backgroundColor||e.closest("td").style.borderWidth||e.closest(".em-contrast-card"))if(e.closest("td").style.borderWidth)if(Object.values(I.buttons.border).every((e=>null===e))){if(e.closest(".em-contrast-block")){if(I.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}/,`${I.buttons.contrastBackgroundColor}`)));e.closest("td").setAttribute("style",t),a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.buttons.contrastBackgroundColor};`),e.setAttribute("style",a)}}else if(I.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}/,`${I.buttons.backgroundColor}`)));e.closest("td").setAttribute("style",t),a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.buttons.backgroundColor};`),e.setAttribute("style",a)}}else for(const t in I.buttons.border)I.buttons.border[t]&&void 0!==I.buttons.border[t].color&&(a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.buttons.border[t].color};`),e.setAttribute("style",a));else e.closest(".em-contrast-block")?I.buttons.contrastBackgroundColor&&(a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.buttons.contrastBackgroundColor};`),e.setAttribute("style",a)):I.buttons.backgroundColor&&(a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.buttons.backgroundColor};`),e.setAttribute("style",a));else if(a=e.closest(".em-contrast-block")?e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.buttons.contrastColor};`):e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.buttons.color};`),e.setAttribute("style",a),e.closest(".em-contrast-block"))if(I.buttons.contrastBackgroundColor){let t=e.closest("td").getAttribute("style").replace(/background-color:(\s+)?.*?;/,`background-color: ${I.buttons.contrastBackgroundColor};`);e.closest("td").setAttribute("style",t)}else e.closest("td").style.removeProperty("background-color");else if(I.buttons.backgroundColor){let t=e.closest("td").getAttribute("style").replace(/background-color:(\s+)?.*?;/,`background-color: ${I.buttons.backgroundColor};`);e.closest("td").setAttribute("style",t)}else e.closest("td").style.removeProperty("background-color");let n=I.buttons.fontFamily;"Safe Fonts"===n[0]?(e.style.fontFamily=n[1],xe({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,"")}`),Ie({elem:t,fontFamilyArray:n})),e.closest("td").setAttribute("align",I.buttons.textAlign);let l="";if(l=I.buttons.letterSpacing>0?e.style.letterSpacing?e.getAttribute("style").replace(/letter-spacing:(\s+)?.*?px/,`letter-spacing: ${I.buttons.letterSpacing}px`):e.getAttribute("style")+` letter-spacing: ${I.buttons.letterSpacing}px;`:e.getAttribute("style").replace(/(\s+)?letter-spacing:(\s+)?.*?px(;)?/,""),e.setAttribute("style",l),I.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(I.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=I.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",I.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=I.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",I.buttons.marginBottom)}I.buttons.padding.all&&(e.style.padding=I.buttons.padding.all+"px"),I.buttons.padding.top&&(e.style.paddingTop=I.buttons.padding.top+"px"),I.buttons.padding.right&&(e.style.paddingRight=I.buttons.padding.right+"px"),I.buttons.padding.bottom&&(e.style.paddingBottom=I.buttons.padding.bottom+"px"),I.buttons.padding.left&&(e.style.paddingLeft=I.buttons.padding.left+"px"),Ne({settings:{border:I.buttons.border},elem:e.closest("td")}),Be({settings:{borderRadius:I.buttons.borderRadius},elem:e.closest("td")})}}else{let a=I.text.fontFamily;if("#1c52dc"===Te(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.links.color};`);e.setAttribute("style",t)}else{let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.text.color};`);e.setAttribute("style",t)}if(e.closest(".em-contrast-block")){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${I.links.contrastColor};`);e.setAttribute("style",t)}let n="";n=I.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",n),"Safe Fonts"===a[0]?(e.style.fontFamily=a[1],xe({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,"")}`),Ie({elem:t,fontFamilyArray:a}))}})),t.querySelector('[em="block"]'))){var a,n;const e=t.querySelectorAll('[em="block"]');null!==(a=I.block)&&void 0!==a&&a.backgroundColor&&e.forEach((e=>{e.querySelectorAll(":scope > td").forEach((e=>{e.setAttribute("bgcolor",I.block.backgroundColor)}))})),null!==(n=I.block)&&void 0!==n&&n.padding&&e.forEach((e=>{e.querySelectorAll(":scope > td").forEach((e=>{e.style.paddingTop=I.block.padding.top+"px",e.style.paddingRight=I.block.padding.right+"px",e.style.paddingBottom=I.block.padding.bottom+"px",e.style.paddingLeft=I.block.padding.left+"px"}))}))}return"DIV"===t.tagName?(0,wt.uL)(t):(0,wt.uL)(t.querySelector("tbody"))},xe=e=>{e.elem.querySelectorAll("link[em-class]").forEach((t=>{e.elem.querySelector("."+t.getAttribute("em-class"))||t.remove()}))};function Te(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),a=parseInt(e[1],10).toString(16),n=parseInt(e[2],10).toString(16);return t=1===t.length?"0"+t:t,a=1===a.length?"0"+a:a,n=1===n.length?"0"+n:n,"#"+t+a+n}}if(e&&"#"===e.charAt(0))return e}const Ie=e=>{var t;const a=e.elem.querySelectorAll("link"),n=`em-font-${e.fontFamilyArray[2].replace(/\s/g,"")}-${e.fontFamilyArray[3].replace(/\s/g,"")}`;if(!!(null===(t=Array.from(a))||void 0===t||!t.find((e=>e.getAttribute("em-class")===n)))){let t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",`https://fonts.googleapis.com/css2?family=${e.fontFamilyArray[2]}:ital,wght@${Me[e.fontFamilyArray[3]].indexOf("i")>-1?"1":"0"},${Me[e.fontFamilyArray[3]].replaceAll("i","")}&display=swap`),t.setAttribute("em-class",n),e.elem.insertAdjacentElement("afterbegin",t)}!function(e){if(!e.elem.querySelector('style[em="styles"]')){let t=document.createElement("style");t.setAttribute("em","styles"),e.elem.append(t)}}({elem:e.elem});let l=`font-family: '${e.fontFamilyArray[2]}', ${Oe[e.fontFamilyArray[1]]}!important;`;l+=` font-weight: ${Me[e.fontFamilyArray[3]].replaceAll("i","")}!important;`,Me[e.fontFamilyArray[3]].indexOf("i")>-1&&(l+=" font-style: italic!important;"),e.elem.querySelector('style[em="styles"]').insertAdjacentHTML("beforeend",`\n.em-font-${e.fontFamilyArray[2].replace(/\s/g,"")}-${e.fontFamilyArray[3].replace(/\s/g,"")} { ${l} }`),setTimeout((()=>xe({elem:e.elem})),0)},Ne=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))},Be=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"))},Me={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"},Oe={"Sans Serif":"sans-serif",Serif:"serif"};return n.createElement("div",{className:w()("blocks-search",{is_search:a})},n.createElement(u.A,{className:w()("blocks-search__form",{is_search:a}),form:h,layout:"vertical",name:"blocks_search_form",initialValues:{...Bt},onValuesChange:e=>{const t=Object.keys(e)[0],a=h.getFieldsValue(!0);switch(t){case Rt:const n=(0,ce._q)(P,M.YY).filter((a=>e[t].includes(a.name))).map((e=>e.id))||null;fe({tags:n});break;case Nt:fe({type:a.type||null});break;case It:x.current&&window.clearTimeout(x.current),x.current=window.setTimeout((function(){fe({name:a.name||null})}),300)}},autoComplete:"off"},n.createElement(u.A.Item,{name:It},n.createElement(g.A,{placeholder:v("Search by title"),allowClear:!0,suffix:n.createElement(At.A,{className:"cards-search__search-icon, input-icon",style:{fontSize:"16px",cursor:"pointer"}})}))),(F||Q||ie)&&n.createElement(be.A,{message:v("Error"),description:v("Error when receiving data. Try again (reload page) or contact support."),type:"error",showIcon:!0}),a&&!Ae&&n.createElement("div",{className:"blocks-search__type-wrapper"},n.createElement("ul",null,n.createElement("li",{key:"search_All","data-type":"",className:"active",onClick:Ee},v("All")),he.map((e=>n.createElement("li",{"data-type":e,onClick:Ee,key:"search_"+e},v(M.jg[e])))))),n.createElement("div",{ref:T,className:w()("blocks-search__result-wrapper",{is_search:a})},("project"===t||a)&&n.createElement(n.Fragment,null,!!$.length&&!a&&n.createElement("div",{className:"blocks-search__type-wrapper"},n.createElement("ul",null,n.createElement("li",{key:"blocksSections_All","data-type":"",className:"active",onClick:Ee},v("All")),$.map((e=>n.createElement("li",{key:"blocksSections_"+e,"data-type":e,onClick:Ee},v(M.jg[e])))))),n.createElement("div",{className:w()("blocks-search__blocks-wrapper",{is_search:a}),ref:N},n.createElement("div",{className:"blocks-search__result-holder project"},!(j||z)&&(null!==G&&void 0!==G&&G.length?G.map(((e,t)=>{const a=Tt('<table cellspacing="0" cellpadding="0" border="0" width="100%">'+e.html+"</table>");return n.createElement("div",{className:"blocks-search__result","data-type":e.type,key:e.id+t.toString()},n.createElement(Et.A,{key:"commenMenu",placement:"leftTop",menu:{items:Se(e)},overlayStyle:{minWidth:"auto",paddingRight:6}},n.createElement("div",{className:"ant-card-hoverable blocks-search__result-body",draggable:!0,onClick:t=>d(t,e.html),onDragStart:t=>m(t,e.html,"project"),onMouseEnter:()=>ye({html:e.html,title:e.title}),onMouseLeave:_e},n.createElement("div",{className:"blocks-search__result-html",dangerouslySetInnerHTML:{__html:a},style:{transform:"scale("+207/660+")"}}))))})):!(H.tags||H.name||H.type)&&D&&!(j||z)&&!a&&n.createElement("div",{className:"blocks-search__type",style:{padding:"10px 0 20px"}},v("You don`t have any saved blocks yet."),n.createElement("br",null),n.createElement("br",null),v("To add a block from the dashboard click the"),n.createElement("br",null),n.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"},n.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"}))," ",v("Save to Blocks button.")))),(j||z)&&n.createElement(Ct.A,{active:!0}))),a&&(null===Z||void 0===Z?void 0:Z.length)>0&&(null===L||void 0===L?void 0:L.length)>0&&n.createElement(p.A,{className:"blocks-search__result-divider"}),("template"===t||a)&&n.createElement(n.Fragment,null,!!ae.length&&!a&&n.createElement("div",{className:"blocks-search__type-wrapper"},n.createElement("ul",null,n.createElement("li",{"data-type":"",className:"active",onClick:Ee,key:"templateBlocksSections_All"},v("All")),ae.map((e=>n.createElement("li",{key:"templateBlocksSections_"+e,"data-type":e,onClick:Ee},v(M.jg[e])))))),n.createElement("div",{className:w()("blocks-search__blocks-wrapper",{is_search:a}),ref:R},n.createElement("div",{className:"blocks-search__result-holder template"},L&&!J&&!ee&&null!==te&&void 0!==te&&te.length?n.createElement(n.Fragment,null,te.map(((e,t)=>{const a=Tt('<table cellspacing="0" cellpadding="0" border="0" width="100%">'+e.html+"</table>");return n.createElement("div",{className:"blocks-search__result","data-type":e.type,key:e.id+t.toString()},n.createElement("div",{className:"ant-card-hoverable blocks-search__result-body",draggable:!0,onClick:t=>d(t,e.html),onDragStart:t=>m(t,e.html,"template"),onMouseEnter:()=>ye({html:e.html,title:e.title}),onMouseLeave:()=>_e()},n.createElement("div",{className:"blocks-search__result-html",dangerouslySetInnerHTML:{__html:a},style:{transform:"scale("+207/660+")"}})))}))):!a&&!se&&!ee&&n.createElement("div",{className:"blocks-search__type",style:{padding:"10px 0 20px"}},v("No related blocks found."))," "),(J||ee)&&n.createElement(Ct.A,{active:!0}))),a&&(null===L||void 0===L?void 0:L.length)>0&&(null===me||void 0===me?void 0:me.length)>0&&n.createElement(p.A,{className:"blocks-search__result-divider"}),("common"===t||a)&&n.createElement(n.Fragment,null,!(null===pe||void 0===pe||!pe.length)&&!a&&n.createElement("div",{className:"blocks-search__type-wrapper"},n.createElement("ul",null,n.createElement("li",{"data-type":"",className:"active",onClick:Ee,key:"commonBlocksSections_All"},v("All")),pe.map((e=>n.createElement("li",{"data-type":e,onClick:Ee,key:"commonBlocksSections_"+e},v(M.jg[e])))))),n.createElement("div",{className:w()("blocks-search__blocks-wrapper",{is_search:a}),ref:B},n.createElement("div",{className:"blocks-search__result-holder common"},oe&&!(null===ue||void 0===ue||!ue.length)&&!(de||se)&&n.createElement(n.Fragment,null,ue.map(((e,t)=>{const a=Le({html:Tt('<table cellspacing="0" cellpadding="0" border="0" width="100%">'+e.html+"</table>")});return n.createElement("div",{className:"blocks-search__result","data-type":e.type,key:e.id+t.toString()},n.createElement("div",{className:"ant-card-hoverable blocks-search__result-body",draggable:!0,onClick:t=>d(t,Le({html:e.html})),onDragStart:t=>m(t,Le({html:e.html}),"common"),onMouseEnter:()=>ye({html:Le({html:Tt('<table cellspacing="0" cellpadding="0" border="0" width="100%">'+e.html+"</table>")}),title:e.title}),onMouseLeave:()=>_e()},n.createElement("div",{className:"blocks-search__result-html",dangerouslySetInnerHTML:{__html:a},style:{transform:"scale("+207/660+")"}})))})))," "),(se||de)&&n.createElement(Ct.A,{active:!0}))),Ae&&n.createElement("div",{className:"blocks-search__type",style:{padding:"10px 0 20px"}},v("There are no blocks for this request."))))};var Ht=a(45185),Vt=a(58099);const Dt=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <img src=${a.p+"static/media/empty-image.png"} width="150" border="0" alt="" style="display: block; width: 100%; max-width: 150px;" />\n</td></tr></table>`,Ft=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <img class="em-ai-img em-just-inserted" src="${a.p+"static/media/ai-image.png"}" width="150" border="0" alt="" style="display: block; width: 100%; max-width: 150px;" />\n</td></tr></table>`;var jt=a(34021),zt=a.n(jt),Zt=a(62315),qt=a.n(Zt),Ut=a(67558),Gt=a.n(Ut),$t=a(75995),Wt=a.n($t),Xt=a(80465),Kt=a.n(Xt),Yt=a(40845),Qt=a.n(Yt),Jt=a(66930),ea=a.n(Jt);const ta=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <table border="0" cellspacing="0" cellpadding="0">\n <tr>${[a.p+"static/media/tg.png",a.p+"static/media/yt.png",a.p+"static/media/vk.png",a.p+"static/media/yd.png",a.p+"static/media/tw.png",a.p+"static/media/ig.png",a.p+"static/media/fb.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 aa=a(45848),na=a.n(aa);const la=new Date,ra=new Date(+la+432e6).toISOString(),oa=-(new Date).getTimezoneOffset()/60,ia=e=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" 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=${ra}&timezone=${oa}&frames=20" src="${(e=>`https://cdt3.emcdn.ru/timer?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=${ra}&timezone=${oa}&frames=20`)(e)}" border="0" alt="" style="display: block;" /></td></tr></table>`,sa=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <img class="em-video" src="${a.p+"static/media/video.png"}" width="150" border="0" alt="" style="display: inline-block; width: 100%; max-width: 150px;" />\n</td></tr></table>`;var ca=a(74372),da=a.n(ca),ma=a(12133),ua=a.n(ma),pa=a(48956),ga=a(47014);const ha=()=>{var e,t;const a=(0,k.s9)(),{__:l}=a,r=(0,we.rD)(),o=(0,i.d4)(le.yN),s=(0,i.d4)(ga.B$),c=(0,i.d4)(ga.C1),d=(0,i.d4)(ga.B),m=(0,ce.X7)(),u=(0,ce.Qi)(),[p,g]=(0,n.useState)(!1),[h,b]=(0,n.useState)(0);let v=!(s||(null===(e=c.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=[];r.elementImageEnabled&&E.push({title:l("Image"),icon:n.createElement(oe.A,{icon:"ElementImage"}),html:Dt,className:"",name:"image"}),r.elementAIimageEnabled&&E.push({title:l("AI image"),icon:n.createElement(oe.A,{icon:"ElementImageAI"}),html:Ft,className:"ai",name:"ai-image"}),r.elementTextEnabled&&E.push({title:l("Text"),icon:n.createElement(oe.A,{icon:"ElementText"}),html:zt()(a),className:"",name:"text"}),r.elementHeaderEnabled&&E.push({title:l("Header"),icon:n.createElement(oe.A,{icon:"ElementTitle"}),html:qt()(a),className:"",name:"header"}),r.elementButtonEnabled&&E.push({title:l("Button"),icon:n.createElement(oe.A,{icon:"ElementButton"}),html:Gt()(a),className:"",name:"button"}),r.elementSpacerEnabled&&E.push({title:l("Spacer"),icon:n.createElement(oe.A,{icon:"ElementSpacer"}),html:ea(),className:"",name:"spacer"}),r.elementListULEnabled&&E.push({title:l("List UL"),icon:n.createElement(oe.A,{icon:"ElementListUL"}),html:Wt()(a),className:"",name:"list-ul"}),r.elementListOLEnabled&&E.push({title:l("List OL"),icon:n.createElement(oe.A,{icon:"ElementListOL"}),html:Kt()(a),className:"",name:"list-ol"}),r.elementDividerEnabled&&E.push({title:l("Divider"),icon:n.createElement(oe.A,{icon:"ElementDivider"}),html:Qt(),className:"",name:"divider"}),r.elementSocialEnabled&&E.push({title:l("Social media"),icon:n.createElement(oe.A,{icon:"ElementSocial"}),html:ta,className:"",name:"social"}),r.elementTableEnabled&&E.push({title:l("Table"),icon:n.createElement(oe.A,{icon:"ElementTable"}),html:na()(a),className:"",name:"table"}),r.elementCountdownEnabled&&E.push({title:l("Countdown"),icon:n.createElement(oe.A,{icon:"ElementCountdown"}),html:ia(d),className:"",name:"countdown"}),r.elementVideoEnabled&&E.push({title:l("Video"),icon:n.createElement(oe.A,{icon:"ElementVideo"}),html:sa,className:"",name:"video"}),r.elementCarouselEnabled&&E.push({title:l("Carousel"),icon:n.createElement(oe.A,{icon:"ElementCarousel"}),html:da()(a),className:"amp",name:"amp-carousel"}),r.elementAccordionEnabled&&E.push({title:l("Accordion"),icon:n.createElement(oe.A,{icon:"ElementAccordion"}),html:ua()(a),className:"amp",name:"amp-accordion"}),r.elementFormEnabled&&E.push({title:l("Form"),icon:n.createElement(oe.A,{icon:"ElementForm"}),html:null,className:"amp",name:"amp-form"});const C=e=>!v||"ai-image"!==e.name||(setTimeout((()=>{g(!0),b(2)}),1e3),!1);return n.createElement("div",{className:"atoms"},n.createElement("div",{className:"atoms__list"},n.createElement(f.A,{wrap:!0,style:{justifyContent:"space-between",rowGap:10}},E&&E.map(((e,t)=>e.html?n.createElement("div",{className:"ant-card-hoverable atoms__item "+e.className,draggable:!0,onClick:t=>m(t,e.html),onDragStart:t=>u(t,e,C),key:e.title+t.toString(),"data-test-name":e.name},n.createElement("span",{className:"atom-image"},e.icon),n.createElement("span",{className:"atom-title"},e.title)):n.createElement(Y.A,{title:l("Coming soon"),placement:"top",key:e.title+t.toString()},n.createElement("div",{className:"atoms__item atoms__item_inactive "+e.className,key:e.title+t.toString(),"data-test-name":e.name},n.createElement("span",{className:"atom-image"},e.icon),n.createElement("span",{className:"atom-title"},e.title))))))),n.createElement(pa.A,{open:p,onCancel:()=>g(!1),initialSlide:h}))};var fa=a(54880),ba=a(24075),va=a(33309),Ea=a(54855),Ca=a(37133);const ya=({emailElementType:e,isSelectedElement:t=!1,selectedElement:a})=>{var l,r,o,s,c,d,m,g,b;const{__:v}=(0,k.s9)(),E=(0,i.wA)(),C=(0,Be.XW)(),[y]=u.A.useForm(),_=(0,n.useRef)(),A=(0,n.useRef)(),w=(0,i.d4)(re.qX),S=(0,i.d4)(We.qX),L=(0,we.rD)(),x=a||(e===M.Tm?w:S),[T,I]=(0,n.useState)(null===(l=x.floatBlocks)||void 0===l?void 0:l.wrap),[N,R]=(0,n.useState)(null===(r=x.floatBlocks)||void 0===r?void 0:r.dirRevers),[B,O]=(0,n.useState)(null),[P,H]=(0,n.useState)(0),[V,D]=(0,n.useState)([]),F=(0,i.d4)(Re.Ct),j=(0,n.useCallback)((t=>{E(e===M.Tm?(0,re.A9)(t):(0,We.A9)(t))}),[E,e]);(0,n.useEffect)((()=>{if(x&&"{}"!==JSON.stringify(x)&&y._init){var e,t,a,n,l;if(y.resetFields(),y.setFieldsValue({gap:null===(e=x.floatBlocks)||void 0===e?void 0:e.gap,gapMobile:null===(t=x.floatBlocks)||void 0===t?void 0:t.gapMobile,gapDim:"px",valign:null===(a=x.floatBlocks)||void 0===a?void 0:a.valign}),(null===(n=x.floatBlocks)||void 0===n?void 0:n.items.length)>0){var r;const o=x.floatBlocks.items.reduce(((e,t)=>e+t.width),0),i=x.floatBlocks.items.map((e=>{var t;return null===(t=(e.width||0)/o*100)||void 0===t?void 0:t.toFixed(1)}));function s(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}H(o),s(i,V)||"gap"===x.changeKey||D(i),x.floatBlocks.items.forEach(((e,t)=>y.setFieldsValue({["width-"+t]:e.width||0}))),x.floatBlocks.items.length>=8?document.querySelector(".selected-element-panel__columns-settings__links__add").classList.add("noactive"):null!==(r=document.querySelector(".selected-element-panel__columns-settings__links__add"))&&void 0!==r&&r.classList.contains("noactive")&&document.querySelector(".selected-element-panel__columns-settings__links__add").classList.remove("noactive")}I(null===(l=x.floatBlocks)||void 0===l?void 0:l.wrap)}}),[y,x,B,V]);let z=0;(null===(o=x.floatBlocks)||void 0===o?void 0:o.items.length)>0&&(z=x.floatBlocks.items.length);const Z=(e,t)=>{Object.keys(t).forEach((t=>{if(t.includes("width")){const a=parseInt(t.match(/\d+/));y.setFieldsValue({[t]:e.items[a]})}}))},[q,U]=(0,n.useState)(!1);(0,n.useEffect)((()=>{const e=()=>U(!0),t=()=>U(!1);return document.addEventListener("keyup",t),document.addEventListener("keydown",e),()=>{document.removeEventListener("keyup",t),document.removeEventListener("keydown",e)}}),[]);const G=e=>{const a=y.getFieldsValue(!0),n=x.floatBlocks.items.map((e=>e.width)),l=x.floatBlocks.gap||20,r=e.cols-n.length;let o=[],i=n.reduce(((e,t)=>e+t),0);e.cols>=n.length?i-=l*r:i+=l*Math.abs(r);const s=Math.round(i/e.cols);o=function(t,a){const n=[];for(let o=0;o<t;o++){var l,r;n.push(null!==(l=e.width)&&void 0!==l&&l[o]?Math.round(i/100*(null===(r=e.width)||void 0===r?void 0:r[o])):a)}return n}(e.cols,s);const c=i-o.reduce(((e,t)=>e+t),0);if(0!==c){let e=o.map(((e,t)=>[t,e])).filter((e=>e[1]>30));const t=e.length-Math.abs(c);e=e.map(((e,a)=>{const n=t<=a?e[1]+(c>0?1:-1):e[1];return[e[0],n]})),e.map((e=>(o[e[0]]=e[1],e)))}let d={items:o,gap:a.gap||20};const m=o.reduce(((e,t)=>e+t),0);D(o.map((e=>{var t;return null===(t=e/m*100)||void 0===t?void 0:t.toFixed(1)}))),C({operation:M.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:"floatBlocksPreset",settings:d,editFromStructure:!!document.querySelector(".selected-element-panel__columns-settings__links__add").closest(".selected-element-panel")}),j({...x,activateSection:t?void 0:"structure",floatBlocks:{...x.floatBlocks,...d,items:d.items.map(((e,t)=>({width:e,current:!1})))},changeKey:"width"})},$=e=>{const a=y.getFieldsValue(!0);let n=0;document.querySelectorAll(".selected-element-panel__columns-settings__controls__column").forEach(((t,a)=>{t===e.target.closest(".selected-element-panel__columns-settings__controls__column")&&(n=a)}));const l=+x.floatBlocks.gap,r=+x.floatBlocks.items[n].width+l,o=x.floatBlocks.items.map((e=>+e.width)),i=(o.length-1)*l,s=o.reduce(((e,t)=>e+t),0)+i,c=o.length-1,d=Math.floor(r/c);let m=o.filter(((e,t)=>t!==n)).map((e=>e+d));const u=s-(m.reduce(((e,t)=>e+t),0)+(o.length-2)*l);if(0!==u){const e=m.length-Math.abs(u);m=m.map(((t,a)=>e<=a?t+(u>0?1:-1):t))}C({operation:M.Ru.SANDBOX_FLOATBLOCK_REMOVE,settings:{removedBlockIndex:n,gap:a.gap},editFromStructure:!!document.querySelector(".selected-element-panel__columns-settings__links__add").closest(".selected-element-panel")}),j({...x,activateSection:t?void 0:"structure",floatBlocks:{...x.floatBlocks,items:m.map(((e,t)=>({width:e,current:x.floatBlocks.items.filter(((e,t)=>t!==n))[t].current})))},changeKey:"width"})};return x.floatBlocks&&x.floatBlocks.items.length>0&&n.createElement(u.A,{layout:"vertical",form:y,name:"float_blocks_settings_form",autoComplete:"off",initialValues:{gap:(null===(s=x.floatBlocks)||void 0===s?void 0:s.gap)||0,gapDim:"px",gapMobile:(null===(c=x.floatBlocks)||void 0===c?void 0:c.gapMobile)||0,valign:(null===(d=x.floatBlocks)||void 0===d?void 0:d.valign)||"top",...null===(m=x.floatBlocks)||void 0===m?void 0:m.items.reduce(((e,{width:t},a)=>(e[`width-${a}`]=t,e)),{})},onValuesChange:e=>{A.current&&q&&clearTimeout(A.current),A.current=setTimeout((()=>function(e){const a=y.getFieldsValue(!0),n=Object.keys(e)[0];if(O(n),n.includes("width")){if(a[n]&&a[n]>=30){let l={items:[],gap:a.gap,valign:a.valign,activateSection:t?void 0:"structure"},r=0;if(document.querySelectorAll(".selected-element-panel__columns-settings__controls__column").length>1){r=parseFloat(Object.keys(e)[0].substring(Object.keys(e)[0].length-1));const t=a["width-"+(r+1)]?r+1:0;let n=P;Object.keys(a).forEach((e=>{e.includes("width")&&-1===e.indexOf("width-"+t)&&(n-=a[e])})),a["width-"+t]=n}Object.keys(a).forEach((e=>{e.includes("width")&&l.items.push(a[e])})),C({operation:M.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:"floatBlocksWidths",settings:l}),j({...x,activateSection:t?void 0:"structure",floatBlocks:{...x.floatBlocks,...l,items:x.floatBlocks.items.map(((e,t)=>({...x.floatBlocks.items[t],width:l.items[t]})))},changeKey:n})}}else if("gap"===n){const l={items:x.floatBlocks.items.map((e=>e.width)),gap:x.floatBlocks.gap},r=l.items.reduce(((e,t)=>e+t),0)+(l.items.length-1)*l.gap,o=a.gap,i=r-(l.items.length-1)*o;if(i>30*l.items.length||x.floatBlocks.gap-e>=0){const e=(e,t)=>Math.round(t*e/100);let s=l.items.map(((t,a)=>e(V[a],i)));const c=r-(s.reduce(((e,t)=>e+t),0)+(l.items.length-1)*o);if(0!==c){const e=s.length-Math.abs(c);s=s.map(((t,a)=>e<=a?t+(c>0?1:-1):t))}let d={items:s,gap:o||0};Z(d,a),C({operation:M.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:"floatBlocksGap",settings:d,editFromStructure:!!document.querySelector(".selected-element-panel__columns-settings__links__add").closest(".selected-element-panel")}),j({...x,activateSection:t?void 0:"structure",floatBlocks:{...x.floatBlocks,...d,items:x.floatBlocks.items.map(((e,t)=>({...e,width:d.items[t]})))},changeKey:n})}}else if("valign"===n){let e={valign:a.valign};C({operation:M.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:"floatBlocksValign",settings:e,editFromStructure:!!document.querySelector(".selected-element-panel__columns-settings__links__add").closest(".selected-element-panel")}),j({...x,activateSection:t?void 0:"structure",floatBlocks:{...x.floatBlocks,...e},changeKey:n})}else if("gapMobile"===n){let a={mobileHeight:{classNamePrefix:"em-mob-height-",value:e[n],dim:"px"}};C({operation:M.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:"floatBlocksGapMobile",settings:a,editFromStructure:!!document.querySelector(".selected-element-panel__columns-settings__links__add").closest(".selected-element-panel")}),j({...x,activateSection:t?void 0:"structure",floatBlocks:{...x.floatBlocks,gapMobile:a.mobileHeight.value},changeKey:n})}setTimeout((()=>(null===_||void 0===_?void 0:_.current)&&_.current.focus({cursor:"end"})),600)}(e)),50)},onFieldsChange:()=>setTimeout((()=>(null===_||void 0===_?void 0:_.current)&&_.current.focus({cursor:"end"})),300),className:"element-controls"},n.createElement("div",{className:"selected-element-panel__columns-settings",style:{paddingTop:L.switchDesktopMobilePropsEnabled||L.stepToOtherElementEnabled||L.deleteButtonEnabled||"structure"===x.type?0:24}},1===x.floatBlocks.items.length&&n.createElement(be.A,{style:{marginBottom:10},message:v('The selected element is in the block that supports a multicolumn structure. To add a new column, click the "Add a column" button.'),type:"info"}),F!==M.ND&&n.createElement(n.Fragment,null,n.createElement(f.A,{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"}},n.createElement("div",{className:"form-group-title",style:{paddingTop:0}},v("Columns")),n.createElement("div",{className:"selected-element-panel__columns-settings__links"},n.createElement("span",{className:"selected-element-panel__columns-settings__links__add",onClick:()=>{const e=y.getFieldsValue(!0);if(z<8){const a=x.floatBlocks.items.map((e=>e.width)),n=x.floatBlocks.gap,l=a.reduce(((e,t)=>e+(t>30?t:0)),0),r=(l-30-n)/l,o=a.map((e=>e>30?Math.round(e*r):e)).reduce(((e,t)=>e+(t>30?t:0)),0);let i=a.map((e=>e>30?Math.round(e*r):e));i.push(30);const s=l-o-30-n;if(0!==s){let e=i.map(((e,t)=>[t,e])).filter((e=>e[1]>30));const t=e.length-Math.abs(s);e=e.map(((e,a)=>{const n=t<=a?e[1]+(s>0?1:-1):e[1];return[e[0],n]})),e.map((e=>(i[e[0]]=e[1],e)))}C({operation:M.Ru.SANDBOX_FLOATBLOCK_ADD,settings:{gap:e.gap,gapMobile:e.gapMobile,minWidth:30},editFromStructure:!!document.querySelector(".selected-element-panel__columns-settings__links__add").closest(".selected-element-panel")}),j({...x,activateSection:t?void 0:"structure",floatBlocks:{...x.floatBlocks,items:i.map(((e,t)=>{var a;return{width:e,current:(null===(a=x.floatBlocks.items[t])||void 0===a?void 0:a.current)||!1}}))},changeKey:"width"})}else document.querySelector(".selected-element-panel__columns-settings__links__add").classList.add("noactive")}},n.createElement(va.A,null)," ",v("Add column")),x.floatBlocks.items.length>1&&n.createElement("span",{onClick:()=>{const e=y.getFieldsValue(!0),a=x.floatBlocks.items.map((e=>e.width));let n={items:[],gap:e.gap};const l=a.reduce(((e,t)=>e+t),0),r=a.length,o=Math.ceil(P/r)*r,i=o/r,s=l-o;if(n.items=Array(r).fill(i),0!==s){const e=a.length-Math.abs(s);n.items=n.items.map(((t,a)=>e<=a?t+(s>0?1:-1):t))}Z(n,e),C({operation:M.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:"floatBlocksWidths",settings:n,editFromStructure:!!document.querySelector(".selected-element-panel__columns-settings__links__add").closest(".selected-element-panel")}),j({...x,activateSection:t?void 0:"structure",floatBlocks:{...x.floatBlocks,...n,items:x.floatBlocks.items.map(((e,t)=>({...e,width:n.items[t]})))},changeKey:"width"})}},n.createElement(Y.A,{title:v("Make columns the same width.")},n.createElement(Te.A,null)," ",v("Equalize"))))),x.floatBlocks.items.length>1&&n.createElement(u.A.Item,{style:{marginBottom:16}},n.createElement("div",{className:"selected-element-panel__columns-settings__controls"},x.floatBlocks.items.map(((e,t)=>n.createElement("div",{key:"floatblock-"+t,className:"selected-element-panel__columns-settings__controls__column "+(e.current?"current":""),style:{width:e.width/P*100+"%"}},x.floatBlocks.items.length>1&&n.createElement("span",{className:"selected-element-panel__columns-settings__controls__column__remove",onClick:$},n.createElement(yt.A,{style:{color:"#ff4d4f"}})),n.createElement("div",{className:"selected-element-panel__columns-settings__controls__field"},n.createElement(u.A.Item,{label:"",name:"width-"+t},n.createElement(Se.A,{min:30,value:e.width||0,placeholder:v("Width"),ref:B==="width-"+t&&_})))))))),n.createElement(f.A,{size:7,className:"columns-presets"},n.createElement(h.Ay,{onClick:()=>{G({cols:1})}},n.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("rect",{y:"7",width:"32",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}))),n.createElement(h.Ay,{onClick:()=>{G({cols:2})}},n.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("rect",{y:"7",width:"15",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),n.createElement("rect",{x:"17",y:"7",width:"15",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}))),n.createElement(h.Ay,{onClick:()=>{G({cols:2,width:[66,34]})}},n.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("rect",{y:"7",width:"20.6667",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),n.createElement("rect",{x:"22.6667",y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}))),n.createElement(h.Ay,{onClick:()=>{G({cols:2,width:[34,66]})}},n.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("rect",{y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),n.createElement("rect",{x:"11.3333",y:"7",width:"20.6667",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}))),n.createElement(h.Ay,{onClick:()=>{G({cols:3})}},n.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("rect",{y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),n.createElement("rect",{x:"11.3333",y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),n.createElement("rect",{x:"22.6667",y:"7",width:"9.33333",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}))),n.createElement(h.Ay,{onClick:()=>{G({cols:4})}},n.createElement("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("rect",{y:"7",width:"6.5",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),n.createElement("rect",{x:"8.5",y:"7",width:"6.5",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),n.createElement("rect",{x:"17",y:"7",width:"6.5",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}),n.createElement("rect",{x:"25.5",y:"7",width:"6.5",height:"6",rx:"2",fill:"currentColor",fillOpacity:"0.65"}))))),x.floatBlocks.items.length>1&&n.createElement(n.Fragment,null,F===M.ND&&n.createElement(f.A,{style:{marginBottom:24}},n.createElement(Le.A,{size:"small",disabled:void 0===(null===(g=x.floatBlocks)||void 0===g?void 0:g.wrap),checked:T,onChange:e=>{I(e),C({operation:M.Ru.SANDBOX_FLOATBLOCK_WRAP,settings:{wrap:!T}}),j({...x,activateSection:t?void 0:"structure",floatBlocks:{...x.floatBlocks,wrap:!T},changeKey:"wrap"})}}),n.createElement("div",{style:{position:"relative",top:2}},v("Line break on mobile devices"))),F!==M.ND&&n.createElement(f.A,{style:{marginBottom:24}},n.createElement(Le.A,{size:"small",disabled:void 0===(null===(b=x.floatBlocks)||void 0===b?void 0:b.wrap),checked:N,onChange:e=>{R(e),C({operation:M.Ru.SANDBOX_FLOATBLOCK_DIR,settings:{dirRevert:!N}}),j({...x,activateSection:t?void 0:"structure",floatBlocks:{...x.floatBlocks,dirRevert:!N},changeKey:"dir"})}}),n.createElement("div",{style:{position:"relative",top:2}},v("Revers order on desktop")))),x.floatBlocks.items.length>1&&n.createElement(n.Fragment,null,n.createElement(p.A,{className:"selected-td-form__divider"}),n.createElement(Ee.A,{gutter:10},n.createElement(Ce.A,{span:12},n.createElement("div",{className:"form-group-title"},v("Vertical alignment")),n.createElement("div",{style:{paddingBottom:4}},n.createElement(Ca.A,{form:y,elementSettings:{},disabled:x.floatBlocks.items.length<=1}))),n.createElement(n.Fragment,null,F!==M.ND&&n.createElement(Ce.A,{span:12},n.createElement("div",{className:"form-group-title"},v("Indent between columns")),n.createElement(u.A.Item,{name:"gap",style:{marginBottom:20}},n.createElement(dt.A,{min:0,disabled:x.floatBlocks.items.length<=1,placeholder:v("Indent between columns"),prefix:n.createElement(Te.A,null),addonAfter:"px",ref:"gap"===B&&_}))),F===M.ND&&n.createElement(Ce.A,{span:12},n.createElement("div",{className:"form-group-title"},v("Indent in mobile")),n.createElement(u.A.Item,{name:"gapMobile",style:{marginBottom:20}},n.createElement(dt.A,{min:0,disabled:x.floatBlocks.items.length<=1,placeholder:v("Indent in mobile"),prefix:n.createElement(Ea.A,null),addonAfter:"px"}))))))))};ya.defaultProps={selectedElement:{parent:!1}};const _a=ya,Aa=({email:e,formSettings:t})=>{var a,l;const{__:r}=(0,k.s9)(),o=(0,i.wA)(),s=(0,Be.XW)(),c=e.hasOwnProperty("type")?M.IE:M.Tm,d=(0,i.d4)(re.qX),m=(0,i.d4)(We.qX),u=(0,i.d4)(Re.Tn),p=Object.keys(t).length>0?t.settings:c===M.Tm?d:m,g=(0,we.rD)();(0,n.useEffect)((()=>{const e=Object.values(M.bV);p.type&&e.includes(p.type)?"structure"!==p.activateSection?(document.querySelector(".email-pane .secondary-tabs .ant-tabs-content").scrollTop=0,o((0,Re.Bp)(M.WU))):o((0,Re.Bp)(M.mX)):"{}"!==JSON.stringify(p)&&o((0,Re.Bp)(""))}),[p,o]);let b=[{label:n.createElement("span",{style:{textTransform:"capitalize"}},p.caption?p.caption:r("Edit element")),key:M.WU,forceRender:!0,className:"email-properties__collapse-panel",children:n.createElement(ba.A,{className:"email-properties__collapse-panel",key:M.WU,selectedElement:p,formSettings:t,emailElementType:c,forceRender:!0})}];p.type&&!(null===(a=p.floatBlocks)||void 0===a||!a.items.length)>0&&!(null===(l=p.floatBlocks)||void 0===l||!l.items.filter((e=>!!e.width)).length)>0&&b.push({label:n.createElement(n.Fragment,null,r("Structure")),key:M.mX,forceRender:!0,className:"email-properties__collapse-panel",children:n.createElement(_a,{selectedElement:p,emailElementType:c,isSelectedElement:!1})});const E=e=>{e.stopPropagation(),s({operation:M.Ru.SANDBOX_ELEMENT_PARENT_GET})};return n.createElement(n.Fragment,null,n.createElement(v.A,{className:w()("secondary-tabs email-properties__collapse",{"secondary-tabs_unset_scroll":u===M.nA||u===M.WU}),size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:u,onChange:e=>o((0,Re.Bp)(e||"")),items:b}),((e,t,a)=>(g.switchDesktopMobilePropsEnabled||g.stepToOtherElementEnabled||g.deleteButtonEnabled)&&n.createElement(n.Fragment,null,n.createElement(f.A,{className:"selected-element-panel__extra-btn-container"},n.createElement(f.A,null,n.createElement(f.A,{size:5},g.deleteButtonEnabled&&n.createElement(Y.A,{title:r("Remove element by Delete Key"),placement:"bottom"},n.createElement(h.Ay,{type:"text",onClick:e=>((e,t,a)=>{e.stopPropagation(),s({operation:M.Ru.SANDBOX_ELEMENT_REMOVE}),t(a===M.Tm?(0,re.A9)({}):(0,We.A9)({}))})(e,t,a),icon:n.createElement(yt.A,null),disabled:!p.deletable})),g.stepToOtherElementEnabled&&n.createElement(Y.A,{title:r("Up to parent element"),placement:"bottom"},n.createElement(h.Ay,{type:"text",onClick:E,icon:n.createElement(oe.A,{icon:"GoToParent"}),disabled:!p.parent})))))))(p.parent,o,c),n.createElement(h.Ay,{type:"text",className:"ant-modal-close","aria-label":"Close",onClick:()=>{o((0,Re.Fk)()),setTimeout((()=>{c===M.IE?o((0,We.A9)({type:null})):o((0,re.A9)({type:null}))}),300),s({operation:M.Ru.SANDBOX_ELEMENT_ACTIVE_RESET})}},n.createElement(oe.A,{icon:"Close"})))};var wa=a(5553),ka=a(83612),Sa=a(25232),La=a(58316),xa=a(38826),Ta=a(30753),Ia=a(76047),Na=a(33932),Ra=a(70875),Ba=a(90614),Ma=a(86095),Oa=a(30315),Pa=a(15626);const Ha=e=>{const{__:t}=(0,k.s9)();return[{key:"\ud83d\udce7",label:n.createElement("div",{onClick:()=>{e("theme-and-preheader-generator")}},"\ud83d\udce7 ",t("Subject line & preheader generator"))},{key:"\ud83c\udf0e",label:n.createElement("div",{onClick:()=>{e("translator")}},"\ud83c\udf0e ",t("Translator"))},{key:"\ud83d\udcc4",label:n.createElement("div",{onClick:()=>{e("writer")}},"\ud83d\udcc4 ",t("Copywriter"))},{key:"\ud83d\udd0e",label:n.createElement("div",{onClick:()=>{e("corrector")}},"\ud83d\udd0e ",t("Proofreader"))},{key:"\ud83e\udde0",label:n.createElement("div",{onClick:()=>{e("psychologist")}},"\ud83e\udde0 ",t("Psychologist"))},{key:"\ud83d\udcc8",label:n.createElement("div",{onClick:()=>{e("marketolog")}},"\ud83d\udcc8 ",t("Marketer"))},{key:"\u2728",label:n.createElement("div",{onClick:()=>{e("email-generator")}},"\u2728 ",t("Email generator"))}]},{TextArea:Va}=g.A,Da=({messages:e,newEmailAiGeneratorRef:t})=>{const a=(0,Ma.fn)(),{__:l,_n:r}=(0,k.s9)(),o=(0,i.wA)(),s=(0,n.useRef)(null),d=(0,we.rD)(),m=(0,E.hN)(),{projectId:p,emailId:g}=(0,c.g)(),f=(0,O.u)(),b=(0,Ba.ml)(Pa.AZ.ON_LIMIT_ID),[v,C]=(0,n.useState)(null),[y,_]=(0,n.useState)(0),[A,w]=(0,n.useState)(!1),[S,L]=(0,n.useState)(""),[x,T]=(0,n.useState)([]),[I,N]=(0,n.useState)(!1),[R,B]=(0,n.useState)(!1),[P,H]=(0,n.useState)(null),[V,D]=(0,n.useState)(0),[F,j]=(0,n.useState)(null),z=(0,i.d4)(re.Hs),Z=(0,i.d4)(ga.C1),q=(0,Be.QC)(),[U]=(0,Na.YG)(),G=(0,Be.XW)(),[$,W]=(0,Na.EQ)(),[X,{reset:K}]=(0,Ra.MN)(),[Q,{data:J=[]}]=(0,Ra.y4)(),ee={cursor:A?"not-allowed":"default",pointerEvents:A?"none":"auto"};(0,n.useEffect)((()=>{F&&I&&(t.current=!0),I||(t.current=!1)}),[F,I]);const te=!(!d.limits||!d.counters)&&M.EW.isPlugin,{limits:ae}=M.EW.isPlugin&&d.limits?d:{limits:{ai_limit:0,ai_generator_limit:0}},{ai_limit:ne,ai_generator_limit:le}=ae,ie=te&&y>=ne&&ne>0,se=te&&V>=le&&le>0,de=(0,n.useCallback)((()=>{b.fire({name:"AiChatCount",count:y+1})}),[b,y]),me=(0,n.useCallback)((()=>{b.fire({name:"AiGeneratorCount",count:V+1})}),[b,V]);(0,n.useEffect)((()=>{var e,t;te&&(_((null===d||void 0===d||null===(e=d.counters)||void 0===e?void 0:e.ai_counter)||0),D((null===d||void 0===d||null===(t=d.counters)||void 0===t?void 0:t.ai_generator_counter)||0))}),[d,te]),(0,n.useEffect)((()=>{j((()=>{var e;if(x.length<=0)return!1;return"email-generator"===(null===(e=x.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)})())}),[x]);const ue=(0,n.useCallback)((async()=>await q.sendAsync(M.Ru.SANDBOX_IS_EMAIL_EMPTY)),[q]),pe=(0,n.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,n.useCallback)((()=>{U({entity_id:g}).then((e=>{T(e.data.documents),pe()}))}),[g,U,T,pe]),he=(0,n.useCallback)((()=>{N(!0),w(!0),X({task_id:v,entity_id:g,status:"started"}).then((()=>{ge()}))}),[g,X,v,ge]),fe=(0,n.useCallback)((()=>{X({task_id:v,entity_id:g,status:"completed"}).then((e=>{403===e.data.status&&K(),ge()})).catch((e=>{})),w(!1),N(!1)}),[g,X,v,ge,K]);(0,n.useEffect)((()=>{let e;if(I){var t,n;const l=null===(t=J[J.length-1])||void 0===t||null===(n=t.processing)||void 0===n?void 0:n.email;if(l){let t=J[J.length-1].status;e=setInterval(a.setValue(l),500),0===t&&fe()}P&&(clearInterval(e),o((0,re.AJ)(l)),N(!1),H(!1))}return()=>{clearInterval(e)}}),[a,P,o,J,I,z,g,v,ge,X,W,fe]),(0,n.useEffect)(pe,[pe]),(0,n.useEffect)((()=>{(null===e||void 0===e?void 0:e.length)>0&&T(e),G({operation:M.Ru.SANDBOX_EMAIL_CONTENT_GET})}),[e,G]),(0,n.useEffect)((()=>{const e=q.onInit((()=>{q.send({operation:M.Ru.SANDBOX_LOCK_EDIT,data:A}),q.send({operation:M.Ru.SANDBOX_LOCK_DISCUSS,value:A})}));return()=>e.dispose()}),[A,q]);const be=async()=>{if(S){const e=S.replaceAll(/\n/g,"<br>"),t={project_id:p,connection:"chat",entity_id:g,message:e,locale:Z.locale.slice(0,2),subject:z.subject||"",preheader:z.preheader||"",textContent:(0,Oa.T5)(a.getValue())};if(F&&se||ie){m.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:l(F?"You have reached the limit of AI generator usage.":"You have reached the limit of AI chat usage.")}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:l("Please upgrade your plan.")}}),placement:"bottomRight"});const e={data:{role:"assistant",message:l(F?"You have reached the limit of AI generator usage.":"You have reached the limit of AI chat usage.")}};T((t=>[...t,e]))}else{te&&(F&&V!==le?(me(),D((e=>e+1))):y!==ne&&(de(),_((e=>e+1)))),f({event:"submit_form",action:"chat_whit_ai_assistant",entity_id:t.entity_id,project_id:t.project_id});const a=[{data:{role:"user",message:e,userInfo:{display_name:Z.first_name+" "+Z.last_name,avatar_url:Z.avatar_urls[24]}}},{data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}}];T((e=>[...e,...a])),$({body:t}).then((e=>{if(401===e.data.status)throw new Error(M.ff);if(e.data.task_id){let t=e.data.task_id;C(t),Q({id:t,setError:H}),ue().then((e=>{e?he():B(!0)}))}ge()})).catch((e=>{var t,a;m.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.code)||l("Error")}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.message)||l("Something went wrong.")}}),placement:"bottomRight"})}))}L("")}},ve=e=>{const t={data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}};T((e=>[...e,t]));const r={project_id:p,connection:"chat",entity_id:g,context:e,locale:Z.locale.slice(0,2),subject:z.subject||"",preheader:z.preheader||"",textContent:(0,Oa.T5)(a.getValue())};if(te&&(F&&V!==le?(me(),D((e=>e+1))):y!==ne&&(de(),_((e=>e+1)))),ie){m.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:l("You have reached the limit of AI chat usage.")}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:l("Please upgrade your plan.")}}),placement:"bottomRight"});const e={data:{role:"assistant",message:l("You have reached the limit of AI chat usage.")}};T((t=>[...t,e]))}else f({event:"select",action:"select_ai_assistant_role",context:r.context,entity_id:r.entity_id,project_id:r.project_id}),$({body:r}).then((e=>{if(401===e.data.status)throw new Error(M.ff);ge()})).catch((e=>{var t,a;m.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.code)||"Error"}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.message)||"Something went wrong"}}),placement:"bottomRight"})}))},Ee=(0,n.useCallback)((e=>{const t={data:{role:"user",message:e,userInfo:{display_name:Z.first_name+" "+Z.last_name,avatar_url:Z.avatar_urls[24]}}},r={data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}};T((e=>[...e,t,r]));const o={project_id:p,connection:"chat",entity_id:g,message:e,locale:Z.locale.slice(0,2),subject:z.subject||"",preheader:z.preheader||"",textContent:(0,Oa.T5)(a.getValue())};if(se){m.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:l("You have reached the limit of AI generator usage.")}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:l("Please upgrade your plan.")}}),placement:"bottomRight"});const e={data:{role:"assistant",message:l("You have reached the limit of AI chat usage.")}};T((t=>[...t,e]))}else $({body:o}).then((e=>{if(401===e.data.status)throw new Error(M.ff);if(e.data.task_id){let t=e.data.task_id;C(t),Q({id:t,setError:H}),ue().then((e=>{e?he():B(!0)}))}te&&(F&&V!==le?(me(),D((e=>e+1))):y!==ne&&(de(),_((e=>e+1)))),ge()})).catch((e=>{var t,a;m.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.code)||"Error"}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.message)||"Something went wrong"}}),placement:"bottomRight"})}))}),[l,y,V,ue,he,ne,le,Z,z,g,F,se,de,me,te,a,m,p,$,Q,ge]);(0,n.useEffect)((()=>{const e=window.localStorage.getItem(M.V0.em_ai_settings);if(1===x.length&&"assistant"===x[0].data.role&&e&&g){const t=new ce.jG,a={project_id:p,connection:"chat",entity_id:g,context:"email-generator",locale:Z.locale.slice(0,2)};window.localStorage.removeItem(M.V0.em_ai_settings),$({body:a}).then((({data:a})=>{t.isDisposed()||Ee(e)}))}}),[x,Ee,g,Z.locale,p,$]);const Ce={replace:e=>{var t,a,r,o,i,s,c,d;if(null!==(t=e.attribs)&&void 0!==t&&null!==(a=t.class)&&void 0!==a&&a.split(" ").includes("ai-response-title"))return n.createElement(Y.A,{placement:"left",title:l("Replace the title")},n.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;q.send(M.Ru.SANDBOX_SUBJECT_UPDATE,{value:e.children[0].data,guid:z.renderGuid,fromAI:!0}),m.success({id:"EMAIL_TITLE_UPDATED_FROM_AI",message:l("Title copied to email settings"),placement:"bottomRight",data:t})})(e)},n.createElement("span",{className:"ai-response-title"},(0,Sa.zd)(e.children,Ce))));if(null!==(r=e.attribs)&&void 0!==r&&null!==(o=r.class)&&void 0!==o&&o.split(" ").includes("ai-response-preheader"))return n.createElement(Y.A,{placement:"left",title:l("Replace the preheader")},n.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;q.send(M.Ru.SANDBOX_PREHEADER_UPDATE,{value:e.children[0].data,guid:z.renderGuid,fromAI:!0}),m.success({id:"EMAIL_TITLE_UPDATED_FROM_AI",message:l("Preheader copied to email settings"),placement:"bottomRight",data:t,duration:300})})(e)},n.createElement("span",{className:"ai-response-preheader"},(0,Sa.zd)(e.children,Ce))));if(null!==(i=e.attribs)&&void 0!==i&&null!==(s=i.class)&&void 0!==s&&s.split(" ").includes("ai-response-copy"))return n.createElement(Y.A,{placement:"left",title:l("Copy to clipboard")},n.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;navigator.clipboard.writeText(t).then((()=>{m.success({id:"TEXT_COPIED_TO_CLIPBOARD",message:l("Text copied to clipboard"),placement:"bottomRight",data:t})})).catch((e=>{}))})(e)},n.createElement("span",{className:"ai-response-copy"},(0,Sa.zd)(e.children,Ce))));if(null!==(c=e.attribs)&&void 0!==c&&null!==(d=c.class)&&void 0!==d&&d.split(" ").includes("ai-response-user-message")){var u,p,g,h,f;const t=(null===(u=e.attribs)||void 0===u?void 0:u.data)||(null===(p=e.children)||void 0===p||null===(g=p[0])||void 0===g?void 0:g.data);return n.createElement("li",{className:null===(h=e.attribs)||void 0===h?void 0:h.class,data:null===(f=e.attribs)||void 0===f?void 0:f.data,onClick:()=>Ee(t)},(0,Sa.zd)(e.children,Ce))}}};return n.createElement("div",{ref:s,className:"discuss-main"},x.length>0&&n.createElement(wa.A,{onClick:e=>{"string"===typeof e.target.className&&e.target.className.includes("ai-response-change-context")&&(W.isLoading||ve(e.target.role))},className:"comment-list",itemLayout:"horizontal",dataSource:x,renderItem:e=>{var t,a,o;return n.createElement("li",{key:e._id,id:e._id},n.createElement(Ia.A,{className:e.data.userInfo?"":"ai-comment",avatar:"assistant"===e.data.role?n.createElement(oe.A,{icon:"ChatGpt",className:"anticon-robot",style:{color:"#ffffff",width:24,height:24,borderRadius:"50%",justifyContent:"center"}}):!e.data.userInfo||!e.data._modified&&M.EW.isPlugin?Z.avatar_urls[24]||n.createElement(La.A,{style:{color:"#ffffff",width:24,height:24,borderRadius:"50%",justifyContent:"center"}}):e.data.userInfo.avatar_url,author:n.createElement("div",{style:ee},"user"===(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.role)?M.EW.isPlugin?(null===Z||void 0===Z?void 0:Z.username)||l("User"):null===(a=e.data)||void 0===a||null===(o=a.userInfo)||void 0===o?void 0:o.display_name:l("AI Assistant")),datetime:e._created?n.createElement("span",{dangerouslySetInnerHTML:{__html:(0,ce.Yq)((0,ka.A)(e._created),r,!0)}}):null,content:e.data.isLoading?n.createElement("div",{className:"spin"},n.createElement(xa.A,{style:{fontSize:24},spin:!0})):n.createElement("div",{style:ee},(0,Sa.Ay)(e.data.message,Ce))}))}}),te&&(F?n.createElement(Ta.A,{text:l("mail generator"),counter:V,limits:le,wrapperStyles:{marginTop:-25}}):n.createElement(Ta.A,{text:l("messeges"),counter:y,limits:ne,wrapperStyles:{marginTop:-25}})),n.createElement(u.A,{onFinish:be,className:"addMode"},n.createElement(u.A.Item,{style:{marginBottom:10}},n.createElement(Va,{disabled:A,value:S,onChange:e=>L(e.target.value),rows:4,placeholder:l("Type your request"),className:"textarea-comment",onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&be(),spellCheck:"false"})),n.createElement(u.A.Item,null,n.createElement(h.Ay,{disabled:W.isLoading||A,type:"default",style:{background:"var(--colorInfo)",color:"#ffffff"},className:"button-target"},n.createElement(Et.A,{placement:"top",disabled:A,key:"Export",arrow:{pointAtCenter:!0},menu:{items:Ha(ve)}},n.createElement("div",{disabled:A,style:{margin:0,padding:0}},n.createElement(oe.A,{icon:"ChatGpt"}),l("Role")))),n.createElement(h.Ay,{disabled:W.isLoading||A,className:"button-add",type:"primary",htmlType:"submit"},l("Send")," ",n.createElement(oe.A,{icon:"SendOutlined"})))),n.createElement(ye.A,{title:l("Warning"),centered:!0,open:R,onOk:()=>{he(),B(!1)},onCancel:()=>{fe(),B(!1)}},n.createElement("p",null,l("The current template will be changed to the generated one, are you sure about this?"))))};var Fa=a(66079),ja=a(1753),za=a(67594),Za=a(98447),qa=a(5889),Ua=a(8122),Ga=a(40835),$a=a(871),Wa=a(23424),Xa=a(80772);function Ka(e,t){return{[e]:{Filter:t("Filter"),filter:t("filter"),Resize:t("Resize"),resize:t("resize"),Crop:t("Crop"),Width:t("Width"),width:t("width"),Height:t("Height"),height:t("height"),"Background color":t("Background color"),Cancel:t("Cancel"),Create:t("Create"),Objects:t("Objects"),Quality:t("Quality"),Save:t("Save"),"Loading Canvas":t("Loading Canvas"),"Loading Image":t("Loading Image"),"Loading State":t("Loading State"),"Processing Image":t("Processing Image"),Close:t("Close"),Apply:t("Apply"),Font:t("Font"),Color:t("Color"),Background:t("Background"),Image:t("Image"),Opacity:t("Opacity"),Outline:t("Outline"),Shadow:t("Shadow"),Gradient:t("Gradient"),Texture:t("Texture"),"Replace Image":t("Replace Image"),"Outline Color":t("Outline Color"),"Shadow Color":t("Shadow Color"),"Font Size":t("Font Size"),Radius:t("Radius"),"Brush Color":t("Brush Color"),"Brush Type":t("Brush Type"),"Brush Size":t("Brush Size"),History:t("History"),"Maintain aspect ratio":t("Maintain aspect ratio"),"New Text":t("New Text"),Size:t("Size"),Draw:t("Draw"),Text:t("Text"),Stickers:t("Stickers"),Frame:t("Frame"),Shapes:t("Shapes"),Corners:t("Corners"),corners:t("corners"),Done:t("Done"),"Applied Filters":t("Applied Filters"),"Resized Image":t("Resized Image"),"Cropped Image":t("Cropped Image"),"Added Drawing":t("Added Drawing"),"Added Text":t("Added Text"),"Added Shape":t("Added Shape"),"Added Sticker":t("Added Sticker"),"Added Frame":t("Added Frame"),"Merged Objects":t("Merged Objects"),"Rounded Corner":t("Rounded Corner"),"Replaced Background Image":t("Replaced Background Image"),"Added Image":t("Added Image"),Initial:t("Initial"),"Loaded State":t("Loaded State"),"Changed Style":t("Changed Style"),"Deleted object":t("Deleted object"),Merge:t("Merge"),Emoticons:t("Emoticons"),Doodles:t("Doodles"),Landmarks:t("Landmarks"),Bubbles:t("Bubbles"),Transportation:t("Transportation"),Beach:t("Beach"),PencilBrush:t("PencilBrush"),SprayBrush:t("SprayBrush"),CircleBrush:t("CircleBrush"),DiamondBrush:t("DiamondBrush"),VLineBrush:t("VLineBrush"),HLineBrush:t("HLineBrush"),SquareBrush:t("SquareBrush"),Square:t("Square"),square:t("square")}}}var Ya=a(76293),Qa=a(80320),Ja=a(3792),en=a(12352);function tn(e,t){if("json"===e)return new Blob([t],{type:"application/json"});if("svg"===e)return new Blob([t],{type:"image/svg+xml"});const a=`image/${e}`;return((e,t="application/octet-stream")=>fetch(`data:${t};base64,${e}`).then((e=>e.blob())))(t=t.replace(/data:image\/([a-z]*)?;base64,/,""),a)}const an=n.createElement(xa.A,{style:{fontSize:48},spin:!0}),nn=({currentImageLink:e,newLink:t,onSave:l,uploadImageResultIsLoading:r})=>{const o=(0,P.p)(),[s,c]=(0,n.useState)(),[d,m]=(0,n.useState)(),{__:u}=(0,k.s9)();let p=(0,i.wA)();const g=(0,i.Pj)(),f=(0,i.d4)(ga.C1),b=(0,i.d4)(Wa.sK),v=(0,i.d4)(le.yN),E=(0,n.useRef)(!1),[C,y]=(0,n.useState)(),_=(0,Ba.ml)(Pa.AZ.FILE_PROXY_EVENT_ID);(0,n.useEffect)((()=>{(async()=>{let t;try{const a=await fetch(e);t=await a.blob()}catch{if(t=await _.fire({url:e,project:v}).filter((e=>e instanceof Blob))[0],!t){const a=o.get(M.A9.em_token)||await Ja.di.getInstance(g,en.Y),n=await fetch(`https://app.emailmaker.ru/api/wp-json/cors-proxy/v1/get?url=${encodeURIComponent(e)}`,{headers:{authorization:`Bearer ${a}`}});t=await n.blob()}}if(t){let e=new FileReader;e.onload=()=>{null===C||void 0===C||C.tools.import.openBackgroundImage(s),e.result!==s&&(c(e.result),m(t.type))},e.readAsDataURL(t)}})().catch((e=>{}))}),[e,t,c,o,s,C,_,v,g]);const A=(0,n.useCallback)((()=>{c(null),m(null),p((0,Xa.BK)()),p((0,Wa.Os)()),p((0,Wa.Oo)(M.lx.UPLOAD_IMAGE_MODAL))}),[p]),w=(0,n.useRef)();w.current=async function(e,t,a){const n=await tn(a,e);l&&l(new File([n],t,{lastModified:(new Date).getTime(),type:n.type}))};const S=(0,n.useCallback)((e=>{if(e)if(E.current&&C);else{E.current=!0;const e=f.locale?f.locale.replace("_","-"):"ru-RU",t=f.theme===M.IJ?matchMedia(M.F3).matches?M.nd:M.T:f.theme;Promise.all([a.e(3085),a.e(9880)]).then(a.bind(a,85466)).then((({Pixie:a})=>{a.init({selector:"#pixie-editor",baseUrl:"https://emailmaker.ru/assets/pixie",image:s,activeLanguage:e,languages:Ka(e,u),tools:{text:{replaceDefault:!0,defaultCategory:"handwriting",items:[{family:"Montserrat Light",src:"customFonts/Montserrat-Light.woff2"},{family:"Montserrat Regular",src:"customFonts/Montserrat-Regular.woff2"},{family:"Montserrat Bold",src:"customFonts/Montserrat-Bold.woff2"},{family:"Montserrat Black",src:"customFonts/Montserrat-Black.woff2"},{family:"Roboto Light",src:"customFonts/Roboto-Light.woff2"},{family:"Roboto Regular",src:"customFonts/Roboto-Regular.woff2"},{family:"Roboto Bold",src:"customFonts/Roboto-Bold.woff2"},{family:"Roboto Black",src:"customFonts/Roboto-Black.woff2"},{family:"Lato Light",src:"customFonts/Lato-Light.woff2"},{family:"Lato Regular",src:"customFonts/Lato-Regular.woff2"},{family:"Lato Bold",src:"customFonts/Lato-Bold.woff2"},{family:"Lato Black",src:"customFonts/Lato-Black.woff2"},{family:"Rubik Light",src:"customFonts/Rubik-Light.woff2"},{family:"Rubik Regular",src:"customFonts/Rubik-Regular.woff2"},{family:"Rubik Bold",src:"customFonts/Rubik-Bold.woff2"},{family:"Rubik Black",src:"customFonts/Rubik-Black.woff2"},{family:"Bebas Neue Light",src:"customFonts/BebasNeueLight.woff2"},{family:"Bebas Neue Regular",src:"customFonts/BebasNeueRegular.woff2"},{family:"Bebas Neue Book",src:"customFonts/BebasNeueBook.woff2"},{family:"Bebas Neue Bold",src:"customFonts/BebasNeueBold.woff2"},{family:"Arial",src:"customFonts/ArialMT.woff2"},{family:"Arial Bold",src:"customFonts/Arial-BoldMT.woff2"}]}},ui:{menubar:{replaceDefaultItems:!0,items:[{type:"undoWidget",align:"left"},{type:"zoomWidget",align:"center",desktopOnly:!0},{type:"button",icon:n.createElement(Ya.A,{style:{fontSize:20}}),align:"right",desktopOnly:!0,action:e=>{e.togglePanel("history")}},{type:"button",icon:n.createElement(Qa.A,{style:{fontSize:20}}),align:"right",desktopOnly:!0,action:()=>A()}]},nav:{position:"top"},activeTheme:t,mode:"inline",forceOverlayModeOnMobile:!1},onSave:async function(e,t,a){w.current(e,t,a)}})})).then((e=>{y(e)})).catch((e=>{}))}}),[f.theme,s,C,y,f.locale,u,A]);return n.createElement(ye.A,{afterOpenChange:S,width:"100%",style:{maxWidth:"100%",minHeight:"100vh"},className:"image-editor-modal blocks-modal",centered:!0,closable:!1,zIndex:1100,mask:!1,open:b,footer:[n.createElement(h.Ay,{key:"Cancel",className:"em-analytics__profile-cancel",onClick:A},u("Cancel")),n.createElement(h.Ay,{key:"Ok",className:"em-analytics__profile-updapixiete",id:"save",type:"primary",onClick:()=>null===C||void 0===C?void 0:C.tools.export.save(null===e||void 0===e?void 0:e.split("/").pop().split(".")[0],null===d||void 0===d?void 0:d.split("/")[1])},u("Update"))]},r&&n.createElement("div",{style:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--colorBgLayout)",zIndex:10,opacity:.7}},n.createElement(Za.A,{size:"large",indicator:an})),n.createElement("div",{id:"pixie-editor"}))},ln=n.createElement(xa.A,{style:{fontSize:48},spin:!0}),rn=({currentImageLink:e,newLink:t,onSave:a,uploadImageResultIsLoading:l})=>n.createElement(n.Fragment,null,n.createElement("div",null,n.createElement("div",{className:"image-preview"},l&&n.createElement("div",{style:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--colorBgLayout)",zIndex:10,opacity:.7}},n.createElement(Za.A,{size:"large",indicator:ln})),(t||e)&&n.createElement("img",{alt:"uploadedImage",src:t||e}))),n.createElement(nn,{currentImageLink:e,newLink:t,onSave:a,uploadImageResultIsLoading:l}));var on=a(50483),sn=a(20127),cn=a(21867);const dn="blocks",mn=({setCurrentImageLink:e,setModalHeight:t,setModalWidth:a,setImageStockList:l,imageStockList:r,currentReq:o,setCurrentReq:i,inputRef:s,setStockLink:c,customRequest:d})=>{const[m,h]=(0,n.useState)(!1),[f,b]=(0,n.useState)(2),{__:v}=(0,k.s9)(),[E]=(0,$a.Jg)(),[C]=(0,$a.h4)();(0,n.useEffect)((()=>{""!==o.keywords&&y()}),[o.color,o.orientation]);const y=async()=>{const e=await C({query:o,page:1});e.data.results.length>0&&(l(e.data.results),setTimeout((()=>{a(1060),t("84vh")}),0))},[_,A]=(0,n.useState)(null);return n.createElement("div",{className:"stock-tab"},n.createElement(u.A,{onValuesChange:y,className:r.length>0?"serach-results":""},n.createElement(Ee.A,{gutter:24},n.createElement(Ce.A,{span:r.length>0?"":24},n.createElement(u.A.Item,{className:"stock-search-input"},n.createElement(g.A,{onKeyDown:e=>"Space"===e.code&&y(),onPressEnter:e=>y(),allowClear:!0,size:r.length>0?"medium":"large",placeholder:v("Search image"),value:o.keywords,onChange:e=>i((t=>({...t,keywords:e.target.value}))),ref:s,spellCheck:"false",suffix:n.createElement(At.A,{onClick:y,className:"cards-search__search-icon, input-icon",style:{fontSize:"16px",cursor:"pointer"}})}))),r.length>0&&n.createElement(n.Fragment,null,n.createElement(Ce.A,null,n.createElement(on.Ay.Group,{defaultValue:"",onChange:e=>i((t=>({...t,orientation:e.target.value})))},n.createElement(Y.A,{title:v("All"),placement:"top"},n.createElement(on.Ay.Button,{value:""},n.createElement(oe.A,{icon:"MixedView"}))),n.createElement(Y.A,{title:v("Landscape"),placement:"top"},n.createElement(on.Ay.Button,{value:"landscape"},n.createElement(oe.A,{icon:"LandscapeView"}))),n.createElement(Y.A,{title:v("Portrait"),placement:"top"},n.createElement(on.Ay.Button,{value:"portrait"},n.createElement(oe.A,{icon:"PortraitView"}))),n.createElement(Y.A,{title:v("Squarish"),placement:"top"},n.createElement(on.Ay.Button,{value:"squarish"},n.createElement(oe.A,{icon:"SquareView"}))))),n.createElement(Ce.A,null,n.createElement(on.Ay.Group,{defaultValue:"",className:"stock-color-filter",onChange:e=>i((t=>({...t,color:e.target.value})))},n.createElement(Y.A,{title:v("All"),placement:"top"},n.createElement(on.Ay.Button,{className:"all-colors",value:""},"All")),n.createElement(Y.A,{title:v("Black"),placement:"top"},n.createElement(on.Ay.Button,{className:"black-color",value:"black"},"B")),n.createElement(Y.A,{title:v("Black and White"),placement:"top"},n.createElement(on.Ay.Button,{className:"bw-color",value:"black_and_white"},"B&\xa7W")),n.createElement(Y.A,{title:v("White"),placement:"top"},n.createElement(on.Ay.Button,{className:"white-color",value:"white"},"W")),n.createElement(Y.A,{title:v("Orange"),placement:"top"},n.createElement(on.Ay.Button,{className:"orange-color",value:"orange"},"O")),n.createElement(Y.A,{title:v("Red"),placement:"top"},n.createElement(on.Ay.Button,{className:"red-color",value:"red"},"R")),n.createElement(Y.A,{title:v("Purple"),placement:"top"},n.createElement(on.Ay.Button,{className:"purple-color",value:"purple"},"P")),n.createElement(Y.A,{title:v("Magenta"),placement:"top"},n.createElement(on.Ay.Button,{className:"magenta-color",value:"magenta"},"M")),n.createElement(Y.A,{title:v("Green"),placement:"top"},n.createElement(on.Ay.Button,{className:"green-color",value:"green"},"G")),n.createElement(Y.A,{title:v("Teal"),placement:"top"},n.createElement(on.Ay.Button,{className:"teal-color",value:"teal"},"T")),n.createElement(Y.A,{title:v("Blue"),placement:"top"},n.createElement(on.Ay.Button,{className:"blue-color",value:"blue"},"Blue")))))),r.length>0&&n.createElement("div",{className:"blocks-search__divider-wrapper"},n.createElement("div",{className:"ant-divider ant-divider-horizontal",role:"separator"}))),n.createElement("div",{className:"serach-output-wrapper",style:{marginRight:-10}},r.length>0&&n.createElement("div",{id:"scrollableDiv",style:{width:"100%",height:"calc(84vh - 148px)",overflow:"auto",paddingTop:24,paddingRight:14,paddingLeft:24,marginLeft:-24,lineHeight:"0",boxSizing:"unset"}},n.createElement(sn.A,{dataLength:r&&r.length,next:async()=>{m||(h(!0),C({query:o,page:f}).then((e=>{l((t=>[...t,...e.data.results])),h(!1),b((e=>e+1))})).catch((()=>{h(!1)})))},hasMore:r,endMessage:n.createElement(p.A,{plain:!0},v("That`s all we could find.")," \ud83e\udd10"),scrollableTarget:"scrollableDiv",style:{overflow:"visible"},loader:null},n.createElement(cn.A,{breakpointCols:{default:3},className:"my-masonry-grid",columnClassName:"my-masonry-grid_column"},r.map((t=>n.createElement("div",{className:"list-item",key:t.id,onClick:()=>{return a=t.urls,n=t.links,l=t.id,E(n.download_location),A(l),setTimeout((()=>A(null)),2e3),c(`${a.raw}&w=1200&q=96`),e(`${a.raw}&w=1200&q=96`),void d(`${a.raw}&w=1200&q=96`);var a,n,l}},n.createElement("img",{className:_===t.id?"loaded-image":"",width:"322px",src:`${t.urls.raw}&w=644&q=96`,alt:t.description,onLoad:e=>e.target.parentNode.classList.add("loaded")}),n.createElement("p",{className:"creator-info",onClick:e=>e.stopPropagation()},"Photo by"," ",n.createElement("a",{target:"_blank",href:`${t.user.links.html}?utm_source=${dn}&utm_medium=referral`,rel:"noreferrer"},t.user.name)," ","on"," ",n.createElement("a",{target:"_blank",href:`https://unsplash.com/?utm_source=${dn}&utm_medium=referral`,rel:"noreferrer"},"Unsplash")),_===t.id&&n.createElement(Za.A,{className:"ant-spin",indicator:n.createElement(xa.A,{spin:!0})})))))))))};var un=a(82021),pn=a(35850),gn=a(36236);const hn=({images:e,transitionDuration:t=1e3})=>{const[a,l]=(0,n.useState)([]);return(0,n.useEffect)((()=>{if(e.length>0){const t=e[e.length-1];l((e=>[...e,{src:t,opacity:0}])),setTimeout((()=>{l((e=>e.map(((t,a)=>a===e.length-1?{...t,opacity:1}:t))))}),1e3)}}),[e]),n.createElement("div",{className:"slideshow-container"},a.map(((e,a)=>n.createElement("img",{key:a,src:`data:image/jpeg;base64, ${e.src}`,alt:`Slide ${a+1}`,className:"slideshow-image",style:{opacity:e.opacity,transition:`opacity ${t}ms linear`}}))))},fn=e=>{const{className:t,style:a,onClick:l}=e;return n.createElement("div",{className:t,style:{...a,zIndex:"3000",display:"block",position:"absolute",top:"50%",right:"0",transform:"translateY(-50%) translateX(-100%)",backgroundColor:"transparent",opacity:.8},onClick:l},n.createElement(h.Ay,{style:{borderRadius:100,right:10},size:"large",icon:n.createElement(pn.A,null)}))},bn=e=>{const{className:t,style:a,onClick:l}=e;return n.createElement("div",{className:t,style:{...a,display:"block",position:"absolute",zIndex:"1000",top:"50%",left:"0",transform:"translateY(-50%)",backgroundColor:"transparent",opacity:.8},onClick:l},n.createElement(h.Ay,{style:{borderRadius:100,left:10},size:"large",icon:n.createElement(J.A,null)}))},vn=({setModalHeight:e,customRequest:t,aiImageRequest:a,setAiImageRequest:l,aiTabRef:r,imageAiList:o,setImageAiList:i,isLoadingAi:s,setIsLoadingAi:d,inputAiRef:m,isImageUploaded:p,setIsImageUploaded:f})=>{const{__:b}=(0,k.s9)(),v=(0,we.rD)(),C=(0,E.hN)(),y=(0,O.u)(),{emailId:_,blockId:A,projectId:w}=(0,c.g)(),S=(0,Ba.ml)(Pa.AZ.ON_LIMIT_ID),[L,x]=(0,n.useState)(0),[T,I]=(0,n.useState)(null),[N,R]=(0,n.useState)(!1),[B,P]=(0,n.useState)(b("Evaluating the task")),[H,V]=(0,n.useState)(!1),[D]=(0,$a.Mv)(),[F,{data:j=[]}]=(0,$a.gg)(),z=_||A,{limits:Z}=null!==v&&void 0!==v&&v.limits?v:{limits:{ai_img_limit:0}},{ai_img_limit:q}=Z,U=L>=q&&q>0,G=!(!v.limits||!v.counters)&&M.EW.isPlugin,$=(0,n.useCallback)((()=>{S.fire({name:"AiImgCount",count:L+1})}),[S,L]);(0,n.useEffect)((()=>{var e;G&&x((null===v||void 0===v||null===(e=v.counters)||void 0===e?void 0:e.ai_img_counter)||0)}),[v,G]);const W=async()=>{P(b("Evaluating the task")),""===a||s||(d(!0),V(!0),i([]),y({event:"submit_form",action:"ai_image_generation",entity_id:_,project_id:w}),D({body:{project_id:w,request:"create-image",connection:"midjourney",message:a}}).then((({data:e})=>{if(401===e.data.status)throw new Error(M.ff);200===(null===e||void 0===e?void 0:e.data.status)?(null!==e&&void 0!==e&&e.data.task.id&&(P(e.data.task.message),I(e.data.task.id)),e.message&&C.success({id:"AI_IMAGE_SEND_SUCCESS",message:e.message,placement:"bottomRight",data:a}),F({task_id:null===e||void 0===e?void 0:e.data.task.id,entity_id:z})):(d(!1),V(!1),C.error({id:"AI_IMAGE_SEND_ERROR",message:(null===e||void 0===e?void 0:e.message)||b("Something went wrong, please try again"),placement:"bottomRight",data:a,innerException:e}))})).catch((e=>{d(!1),V(!1),e.error&&C.fromError("AI_IMAGE_SEND_ERROR",a,e.error)})))};(0,n.useEffect)((()=>{j.length>1&&("error"!==j[j.length-1].status||"Canceled"!==j[j.length-1].status?j[j.length-1].images?(P(j[j.length-1].status),100===j[j.length-1].progress&&(i(j[j.length-1].images),P(b("Evaluating the task")),I(null),V(!1))):(i([j[j.length-1].data]),d(!1)):(d(!1),V(!1),C.error({id:"AI_IMAGE_GET_ERROR",message:b("Something went wrong, please try again"),placement:"bottomRight",data:T})))}),[j,i,P,b,d,e,T,C]),(0,n.useEffect)((()=>{(s||o.length>0)&&setTimeout((()=>{let t=550;r.current&&(t=r.current.offsetHeight+68),e(t)}),0)}),[r,j,o.length,s,e]);const[X,K]=(0,n.useState)(!1);return n.createElement("div",{className:"image-ai"},G&&n.createElement(Ta.A,{text:b("images"),counter:L,limits:q,wrapperStyles:{marginTop:-25}}),n.createElement(Ee.A,{gutter:24,style:{padding:"0 2px"}},n.createElement(Ce.A,{span:24},n.createElement(u.A.Item,{style:{margin:0}},n.createElement("span",{className:"ant-input-affix-wrapper ant-input-affix-wrapper-lg "+(X?"ant-input-affix-wrapper-focused":""),style:{paddingLeft:0}},n.createElement(g.A.TextArea,{ref:m,onKeyDown:e=>{"Shift"===e.key?R(!0):"Enter"!==e.key||N||(e.preventDefault(),U?G&&C.error({message:b("The usage limit has been exceeded"),description:b("The maximum number of requests for the current subscription period has been reached.\nSelect the appropriate plan to fulfil more requests"),placement:"bottomRight"}):G?(x((e=>e+1)),$(),W()):W())},onKeyUp:e=>{"Shift"===e.key&&R(!1)},onFocus:()=>{K(!0)},onBlur:()=>{K(!1)},autoSize:!0,allowClear:!0,className:"text-area-input-hybrid",placeholder:b("Generate image"),value:a,onChange:t=>{l(t.target.value),setTimeout((()=>{let t=0;r.current&&(t=r.current.offsetHeight+68,s||0!==o.length||(t=r.current.offsetHeight+68)),setTimeout((()=>{e(t)}),0)}),10)},style:{fontSize:16},spellCheck:"false"}),n.createElement("span",{className:"ant-input-suffix"},s||H?n.createElement(xa.A,{style:{fontSize:18},className:"input-icon",spin:!0}):n.createElement(oe.A,{icon:"AI",style:{fontSize:16,top:0,right:0},className:"input-icon",onClick:()=>{G?U||(x((e=>e+1)),$(),W()):W()}})))))),(s||o.length>0)&&n.createElement(un.A,{dotPosition:"top",arrows:!0,nextArrow:n.createElement(fn,null),prevArrow:n.createElement(bn,null),style:{marginTop:24}},s&&n.createElement("div",{className:"image-ai__loading"},n.createElement("div",{className:"spin"},n.createElement(xa.A,{style:{fontSize:48},spin:!0}),n.createElement("p",{className:"status"},B))),o.length>0&&o.map(((e,a)=>n.createElement("div",{key:a,className:"image-ai__image-item"},n.createElement(hn,{images:o}),n.createElement("div",{className:"buttons"},"Ready"===j[j.length-1].status&&n.createElement(h.Ay,{onClick:()=>(e=>{if(!p){f(!0);const a=e.match(/^data:image\/([A-Za-z-+/]+);base64,(.+)$/),n=a[1],l=a[2],r=atob(l),o=new Array(r.length);for(let e=0;e<r.length;e++)o[e]=r.charCodeAt(e);const i=new Uint8Array(o),s=new Blob([i],{type:`image/${n}`}),c=new File([s],"image.jpeg",{type:s.type});t({file:c})}})(`data:image/jpeg;base64, ${e}`),icon:n.createElement(gn.A,null)},b("Use this variant"))))))))},En=({setNewLink:e,setCurrentImageLink:t,setModalHeight:a,setModalWidth:l,setImageGifList:r,imageGifList:o,currentReqGif:i,setCurrentReqGif:s,inputRef:c,setStockLink:d,customRequest:m})=>{const{__:h}=(0,k.s9)(),[f,b]=(0,n.useState)(null),[v,E]=(0,n.useState)(!1),[C,y]=(0,n.useState)(25),[_]=(0,$a.eo)(),A=async()=>{var e,t;const n=await _({query:i,page:0});(null===n||void 0===n||null===(e=n.data)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.length)>0&&(r(n.data.data),setTimeout((()=>{a("84vh"),l(1060)}),0))},w=n.createElement(xa.A,{style:{fontSize:20},spin:!0});return n.createElement("div",{className:"stock-tab"},n.createElement(u.A,{onValuesChange:A,className:o.length>0?"serach-results":""},n.createElement(Ee.A,{gutter:24},n.createElement(Ce.A,{span:o.length>0?"":24},n.createElement(u.A.Item,{className:"stock-search-input"},n.createElement(g.A,{onKeyDown:e=>"Space"===e.code&&A(),onPressEnter:e=>A(),allowClear:!0,size:o.length>0?"medium":"large",placeholder:h("Search GIFs"),value:i.keywords,onChange:e=>s((t=>({...t,keywords:e.target.value}))),ref:c,spellCheck:"false",suffix:n.createElement(At.A,{onClick:A,className:"cards-search__search-icon, input-icon",style:{fontSize:"16px",cursor:"pointer"}})})))),o.length>0&&n.createElement("div",{className:"blocks-search__divider-wrapper"},n.createElement("div",{className:"ant-divider ant-divider-horizontal blocks-search__divider",role:"separator"}))),n.createElement("div",{className:"serach-output-wrapper",style:{marginRight:-10}},o.length>0&&n.createElement("div",{id:"scrollableDiv",style:{width:"100%",height:"calc(84vh - 148px)",overflow:"auto",paddingTop:24,paddingRight:14,paddingLeft:24,marginLeft:-24,lineHeight:"0",boxSizing:"unset"}},n.createElement(sn.A,{dataLength:o&&o.length,next:async()=>{v||(E(!0),_({query:i,page:C}).then((e=>{r((t=>[...t,...e.data.data])),E(!1),y((e=>e+25))})).catch((()=>{E(!1)})))},hasMore:o,endMessage:n.createElement(p.A,{plain:!0},h("That`s all we could find.")," \ud83e\udd10"),scrollableTarget:"scrollableDiv",style:{overflow:"visible"},loader:n.createElement(Za.A,{indicator:w})},n.createElement(cn.A,{breakpointCols:{default:3},className:"my-masonry-grid",columnClassName:"my-masonry-grid_column"},o.map(((e,a)=>n.createElement("div",{className:"list-item",key:e.id+a,onClick:()=>{return a=e.images.downsized.url,n=e.id,b(n),setTimeout((()=>{b(null)}),2e3),d(`${a}`),t(`${a}`),void m(`${a}`);var a,n}},n.createElement("img",{className:f===e.id?"loaded-image":"",width:"322px",src:`${e.images.downsized.url}`,alt:e.title,onLoad:e=>e.target.parentNode.classList.add("loaded")}),n.createElement("a",{rel:"noreferrer",href:"https://giphy.com/",target:"_blank",onClick:e=>e.stopPropagation()},n.createElement("div",{className:"overlay-image",style:{backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+BnQM5P/BRgABx8sJWqTxoYAAAAASUVORK5CYII=)"}})),f===e.id&&n.createElement(Za.A,{className:"ant-spin",indicator:n.createElement(xa.A,{spin:!0})})))))))))},Cn="IMG",yn="BACKGROUND",_n="EDITOR",An="UPLOAD",wn="STOCK",kn="GIF",Sn="AI",{Dragger:Ln}=za.A,xn=()=>{var e,t;const a=(0,we.rD)(),{__:l}=(0,k.s9)(),r=(0,i.wA)(),{projectId:s}=(0,c.g)(),[d,m]=(0,Ga.dS)(),[p]=(0,$a.FQ)(),{modal:h}=o.A.useApp(),f=(0,E.hN)(),b=(0,i.d4)(ga.B$),C=(0,i.d4)(ga.C1),y=(0,i.d4)(Wa.cL),_=(0,i.d4)(Xa.js),A=(0,i.d4)(Xa.Ac),[w,S]=(0,n.useState)(""),[L,x]=(0,n.useState)(""),[T,I]=(0,n.useState)(""),[N,R]=(0,n.useState)(""),[B,O]=(0,n.useState)(An),[P,H]=(0,n.useState)({width:"",height:"",size:"",format:""}),[V,D]=(0,n.useState)("success"),[F,j]=(0,n.useState)(!1),z=n.useRef(null),Z=n.useRef(null),q=n.useRef(null),U=n.useRef(null),G=n.useRef(null),$=n.useRef(null),W=n.useRef(null),X=n.useRef(null),K=n.useRef(null),[Y,Q]=(0,n.useState)("auto"),[J,ee]=(0,n.useState)(572),[te,ae]=(0,n.useState)(null),[ne,re]=(0,n.useState)(!1),[oe,ie]=(0,n.useState)({keywords:"",color:"",orientation:""}),[se,de]=(0,n.useState)({keywords:""}),[me,ue]=(0,n.useState)([]),[pe,ge]=(0,n.useState)([]),[he,fe]=(0,n.useState)([]),[be,ve]=(0,n.useState)(!1),[Ee,Ce]=(0,n.useState)(""),[_e,Ae]=(0,n.useState)(!1),[ke,Se]=(0,n.useState)(0),Le=(0,i.d4)(le.yN),xe=(0,Ba.ml)(Pa.AZ.FILE_PROXY_EVENT_ID);let Te=!(b||(null===(e=C.id)||void 0===e?void 0:e.toString())!==(null===Le||void 0===Le||null===(t=Le.members)||void 0===t?void 0:t.owner.ID))&&!0;const Ie=async e=>{if(e)try{const t=await Ne(e);Be({url:e}),t&&Me(t)&&Oe({file:t})}catch(t){}},Ne=async e=>{try{const t=(await xe.fire({url:e,project:Le})).filter((e=>e instanceof Blob))[0];if(t)return t;const a=`https://api.emailmaker.ru/tools/file-proxy.php?url=${encodeURIComponent(e)}`,n=await fetch(a);if(!n.ok)throw new Error(`Server returned ${n.status}`);const l=await n.blob();return new File([l],e.split("/").pop(),{type:l.type})}catch(t){}};document.onpaste=function(e){const t=e.clipboardData.items[0];if(B===An&&N){if(0===t.type.indexOf("image")){const e=t.getAsFile();Me(e);const a={file:e};x(""),Oe(a)}0===t.type.indexOf("text")&&t.getAsString((e=>{"http"===e.slice(0,4)?(x(""),S(e),Be({url:e})):"meta"===e.toString().slice(1,5)&&(x(""),S(e.toString().split('"')[1]),Be({url:e.toString().split('"')[1]}))}))}};const Re=(0,n.useMemo)((()=>({IMG:_,BACKGROUND:A})),[_,A]);(0,n.useEffect)((()=>{const e=e=>{let t=null;y.includes("UPLOAD_BACKGROUND_MODAL")?(t=yn,R(yn)):y.includes("UPLOAD_IMAGE_MODAL")&&(R(Cn),t=Cn),Re[t]&&(S(Re[t]),O(e))};y===M.lx.UPLOAD_IMAGE_MODAL||y===M.lx.UPLOAD_BACKGROUND_MODAL?e(_n):y===M.lx.UPLOAD_IMAGE_MODAL_AI||y===M.lx.UPLOAD_BACKGROUND_MODAL_AI?(Te?(Ae(!0),Se(2)):e(Sn),setTimeout((()=>{var e;return null===(e=K.current)||void 0===e?void 0:e.focus({cursor:"start"})}),100)):y===M.lx.UPLOAD_IMAGE_MODAL_UPLOAD||y===M.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD?(e(An),setTimeout((()=>{var e;return null===(e=$.current)||void 0===e?void 0:e.focus({cursor:"start"})}),100)):y===M.lx.UPLOAD_IMAGE_MODAL_STOCK||y===M.lx.UPLOAD_BACKGROUND_MODAL_STOCK?(Te?(Ae(!0),Se(3)):e(wn),setTimeout((()=>{var e;return null===(e=X.current)||void 0===e?void 0:e.focus({cursor:"start"})}),100)):y===M.lx.UPLOAD_IMAGE_MODAL_GIF||y===M.lx.UPLOAD_BACKGROUND_MODAL_GIF?(Te?(Ae(!0),Se(3)):e(kn),setTimeout((()=>{var e;return null===(e=W.current)||void 0===e?void 0:e.focus({cursor:"start"})}),100)):y===M.lx.UPLOAD_IMAGE_MODAL_EDIT||y===M.lx.UPLOAD_BACKGROUND_MODAL_EDIT?(Te?(Ae(!0),Se(5)):e(_n),r((0,Wa.Wz)(M.lx.IMAGE_EDITOR_MODAL))):R("")}),[y,r,Te,Re]);const Be=(0,n.useCallback)((({url:e=w||""})=>{S(e),N===Cn&&r((0,Xa.tm)(e)),N===yn&&r((0,Xa.e_)(e)),setTimeout((()=>{ie({keywords:"",color:"",orientation:""}),de({keywords:""}),ge([]),ue([]),R(""),Ce(""),ve(!1),I(""),x(""),O(An)}),200),r((0,Wa.Oo)()),r((0,Wa.Os)())}),[w,r,N]);(0,n.useEffect)((()=>{const e=L||T;e?(0,ce.DI)(e).then((t=>{D(t),ee(572),setTimeout((()=>{let e=0;Z.current&&(e=Z.current.offsetHeight+62),Q(e)}),0),Be(e)})).catch((e=>{D(e)})):D("")}),[L,T,Be]),(0,n.useEffect)((()=>{w&&p(w).then((({data:e})=>{H({width:null===e||void 0===e?void 0:e.width,height:null===e||void 0===e?void 0:e.height,size:((null===e||void 0===e?void 0:e.fileSize)/1024).toFixed(2),format:null===e||void 0===e?void 0:e.format})}))}),[w,p]);(0,n.useEffect)((()=>{var e;""===oe.keywords&&(null===$||void 0===$||null===(e=$.current)||void 0===e||e.focus({cursor:"start"}),ge([]),setTimeout((()=>{Q("auto"),ee(572)}),0))}),[oe,ge,Q,ee]);const Me=e=>{const t="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/webp"===e.type||"image/gif"===e.type||"image/svg+xml"===e.type;return t||f.error({id:"IMAGE_UPLOAD_WRONG_FORMAT",data:e,message:"Upload",description:"You can only upload JPG/JPEG/PNG/WEBP/GIF/SVG file!",placement:"bottomRight"}),t},Oe=({file:e})=>{const t="image/svg+xml"===e.type,r="image/webp"===e.type,o=e=>{const t=new Image;t.src=URL.createObjectURL(e),t.onload=()=>{(async e=>{re(!0);const t=e.file;try{"image/gif"!==t.type&&(e.file=await(0,Ua.A)(t,{maxSizeMB:a.compressMaxSize||.45,maxWidthOrHeight:a.compressMaxWidthOrHeight||2e3})),d(e).then((({error:e,data:a})=>{var r;if(e)f.fromError("IMAGE_UPLOAD_ERROR",t,e);else if(400===(null===a||void 0===a||null===(r=a.data)||void 0===r?void 0:r.status))f.error({id:"IMAGE_UPLOAD_ERROR",data:t,innerException:null===a||void 0===a?void 0:a.data,message:n.createElement("div",{dangerouslySetInnerHTML:{__html:a.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:a.message}}),placement:"bottomRight"});else{var o;const e=null===a||void 0===a||null===(o=a[0])||void 0===o?void 0:o.file_url;e&&(Q("auto"),j(!1),Be({url:e})),f.success({id:"IMAGE_UPLOAD_SUCCESS",data:t,message:l("The image was successfully uploaded.")})}})).catch((e=>{})).finally((()=>{re(!1)}))}catch(r){re(!1)}})({user_id:C.id,folder:s,file:e})}};t?((e,t)=>{const a=new FileReader;a.onload=function(a){const n=a.target.result,l=new Blob([n],{type:"image/svg+xml;charset=utf-8"}),r=URL.createObjectURL(l),o=new Image;o.onload=function(){const a=document.createElement("canvas");a.width=2*o.width,a.height=2*o.height,a.getContext("2d").drawImage(o,0,0,a.width,a.height),a.toBlob((a=>{const n=new File([a],e.name.replace(".svg",".png"),{type:"image/png"});t(n),URL.revokeObjectURL(r)}),"image/png")},o.src=r},a.readAsText(e)})(e,(e=>o(e))):r?((e,t,a=90)=>{const n=new Image;n.src=URL.createObjectURL(e),n.onload=()=>{const e=document.createElement("canvas");e.width=n.width,e.height=n.height;const l=e.getContext("2d");l.imageSmoothingEnabled=!0,l.imageSmoothingQuality="high",l.drawImage(n,0,0,e.width,e.height),e.toBlob((e=>{const a=new File([e],"converted.jpg",{type:"image/jpeg"});t(a)}),"image/jpeg",a/100)},n.onerror=e=>{t(null)}})(e,(e=>o(e))):o(e)},Pe=e=>Oe({file:e});let He=[{label:l("Upload"),key:An,children:n.createElement("div",{ref:z,style:{paddingBottom:24}},n.createElement(Ln,{showUploadList:!1,name:"Image",beforeUpload:Me,customRequest:Oe,style:{marginBottom:10},multiple:!1,accept:"image/png, image/jpeg, image/jpg, image/webp, image/gif, image/svg+xml"},n.createElement("p",{className:"ant-upload-drag-icon"},n.createElement(qa.A,null)),n.createElement("p",{className:"ant-upload-text"},l("Click to select, paste from the clipboard, or drag and drop")),n.createElement("p",{className:"ant-upload-hint"},l("Accepted formats: PNG, JPG, WEBP, SVG or GIF."))),n.createElement(u.A,{style:{padding:"0 2px 0 2px"}},n.createElement(u.A.Item,{validateStatus:V},n.createElement(g.A,{ref:$,allowClear:!0,size:"large",placeholder:l("Paste image URL here"),value:L,onChange:e=>{const t=e.target.value;x(t),te&&clearTimeout(te);const a=setTimeout((()=>Ie(t)),1e3);ae(a)},spellCheck:"false"}))))}];a.imageCenterStockEnabled&&!Te&&He.push({label:l("Stock"),key:wn,children:n.createElement("div",{ref:q,style:{paddingBottom:24}},n.createElement(mn,{currentReq:oe,setCurrentReq:ie,imageStockList:pe,setImageStockList:ge,setModalWidth:ee,setModalHeight:Q,setStockLink:I,setCurrentImageLink:S,inputRef:X,customRequest:Ie}))}),a.imageCenterGifEnabled&&!Te&&He.push({label:l("GIF"),key:kn,children:n.createElement("div",{ref:U,style:{paddingBottom:24}},n.createElement(En,{currentReqGif:se,setCurrentReqGif:de,imageGifList:me,setImageGifList:ue,setModalWidth:ee,setModalHeight:Q,setStockLink:I,setCurrentImageLink:S,inputRef:W,customRequest:Ie}))}),a.elementAIimageEnabled&&!Te&&He.push({label:l("AI"),key:Sn,children:n.createElement("div",{ref:G,style:{paddingBottom:24}},n.createElement(vn,{setModalHeight:Q,customRequest:Oe,aiImageRequest:Ee,setAiImageRequest:Ce,imageAiList:he,setImageAiList:fe,isLoadingAi:be,setIsLoadingAi:ve,aiTabRef:G,inputAiRef:K,isImageUploaded:F,setIsImageUploaded:j}))}),a.imageCenterEditorEnabled&&He.push({label:"",key:_n,children:n.createElement("div",{ref:Z},n.createElement(rn,{currentImageLink:w,newLink:L,imageSize:P,onSave:Pe,uploadImageResultIsLoading:m.isLoading||!1}))});const Ve=n.createElement(xa.A,{style:{fontSize:32,margin:-16},spin:!0});return n.createElement(n.Fragment,null,n.createElement(ye.A,{width:J,className:"image-center blocks-modal",title:l("Image Center"),centered:!0,style:{minHeight:390},open:!!N,onOk:Be,onCancel:()=>{r((0,Wa.Oo)()),setTimeout((()=>{S(""),x(""),ge([]),ge([]),ie({keywords:"",color:"",orientation:""}),de({keywords:""}),Q("auto"),!be&&Ce(""),ee(572),O(An)}),200)},footer:B===_n?n.createElement(n.Fragment,null):null},n.createElement(Za.A,{spinning:ne,indicator:Ve},n.createElement(v.A,{activeKey:B,onChange:e=>{"GALLERY"===e?h.success({maskClosable:!0,centered:!0,title:l("Coming soon"),content:l("The feature is under development."),okText:l("Ok. I'll be waiting"),onOk:()=>{}}):e===_n&&""===w?h.warning({maskClosable:!0,centered:!0,title:l(""),content:l("To preview and edit the uploaded image"),okText:l("Upload Image"),onOk:()=>{O(An)}}):(setTimeout((()=>{let t=0,a=0;var n;if(e===An&&z.current)""===oe.keywords&&(null===(n=$.current)||void 0===n||n.focus({cursor:"start"})),t=300,a=572;else if(e===_n&&Z.current)t=Z.current.offsetHeight+62,a=572;else if(e===wn&&q.current){var l;""===oe.keywords&&(null===(l=X.current)||void 0===l||l.focus({cursor:"start"})),t=130,a=572,pe.length>0&&(a=1060,t="84vh")}else if(e===kn&&U.current){var r;""===oe.keywords&&(null===(r=W.current)||void 0===r||r.focus({cursor:"start"})),t=130,a=572,me.length>0&&(a=1060,t="84vh")}else if(e===Sn&&G.current){var o;if(""===Ee&&0===he.length)null===(o=K.current)||void 0===o||o.focus({cursor:"start"}),t=130;else t=G.current.offsetHeight+82;a=572}Q(t),ee(a)}),0),O(e))},items:He,style:{height:Y,minHeight:130}}))),n.createElement(pa.A,{open:_e,onCancel:()=>Ae(!1),initialSlide:ke}))};var Tn=a(98845),In=a(61058);const Nn=({emailElement:e})=>{const{__:t}=(0,k.s9)(),a=(0,Be.XW)(),l=(0,i.wA)(),{projectId:r}=(0,c.g)(),o=(0,Ma.fn)(),s=(0,i.d4)(In.p1),d=(0,i.d4)(In.RL),m=(0,i.d4)(Re.Wm),[u,p]=(0,n.useState)(!0),[g,f]=(0,n.useState)(!1),[b,E]=(0,n.useState)([]),[C,y]=(0,n.useState)([]),_=e=>l((0,Re.mi)(e)),A=(0,n.useCallback)((e=>{l((0,re.no)(e)),o.setValue(null===e||void 0===e?void 0:e.html.replaceAll("\r\n","\n"))}),[o,l]),{data:S}=St.Nq.useGetProjectQuery(Number(r),{skip:!r}),[L,x]=(0,n.useState)([]);(0,n.useEffect)((()=>{if(S){const{owner:e,admins:t,users:a}=null===S||void 0===S?void 0:S.members;x([e&&{...e},t&&Array.isArray(t)&&t.map((e=>({...e}))),a&&Array.isArray(a)&&a.map((e=>({...e})))].filter((e=>e)).flat(1).map((e=>({id:e.ID,display_name:e.display_name}))))}}),[S,null===S||void 0===S?void 0:S.members,t]);const[T,I]=(0,n.useState)(1),[N,R]=(0,n.useState)(!1);(0,n.useEffect)((()=>{const e=Array.isArray(s)&&s.length&&(null===s||void 0===s?void 0:s.map((e=>{var a;return{key:e.id,author:e.author,date:(0,ce.Yq)((0,ce.Cl)(e.date||e.modified),t),title:e.title,html:e.html,common_styles:e.common_styles,loading:!1,isAutosave:null===(a=e.slug)||void 0===a?void 0:a.includes("autosave")}})));y(e||[]),E(e),p(!1),d<2&&R(!0)}),[s,d,t]);const B=u||g||N?null:n.createElement("div",{style:{textAlign:"center",marginTop:24,marginBottom:24,height:32,lineHeight:"32px"}},n.createElement(h.Ay,{onClick:()=>{f(!0),y(b.concat([...new Array(3)].map((()=>({loading:!0}))))),l(Tn.GY.endpoints.getEmailHistory.initiate({emailId:e.id,page:T+1})).then((e=>{const{data:a,totalPages:n}=e.data,l=Array.isArray(a)&&(null===a||void 0===a?void 0:a.map((e=>({key:e.id,author:e.author,date:(0,ce.Yq)((0,ce.Cl)(e.date||e.modified),t),title:e.title,html:e.html,loading:!1})))),r=b.concat(l);y(r),E(r),f(!1),window.dispatchEvent(new Event("resize")),T+1>=n&&R(!0),I(T+1)}))}},t("loading more"))),[O,P]=(0,n.useState)(),[H,V]=(0,n.useState)(null),D=(0,n.useRef)();return D.current=e,(0,n.useEffect)((()=>{if(!m&&!H){const e=D.current;e&&V({html:o.getValue(),preheader:e.preheader,common_styles:e.common_styles,subject:e.subject})}}),[m,V,o,H]),(0,n.useEffect)((()=>{m&&H&&(A(H),V(null))}),[m,H,A]),n.createElement(n.Fragment,null,n.createElement(v.A,{className:"secondary-tabs email-settings__collapse secondary-tabs_unset_scroll",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:M.Vv,items:[{label:n.createElement(n.Fragment,null,t("Version history")),key:M.Vv,forceRender:!0,className:"email-settings__collapse-panel",style:{height:"100%"},children:n.createElement(wa.A,{className:"history-panel__list",loading:u,itemLayout:"horizontal",loadMore:B,dataSource:C,header:n.createElement("div",{className:"history-panel__list-header"},n.createElement("div",{className:"history-panel__list-date"},t("Time")),n.createElement("div",{className:"history-panel__list-author"},t("Author")),n.createElement("div",{className:"history-panel__restore"},"Set")),renderItem:(e,r)=>{var o;return n.createElement(wa.A.Item,{onClick:()=>{r!==O&&(P(r),A(b[r])),l((0,We.rc)(!0))},className:w()("history-panel__item",{"history-panel__item_active":r===O})},n.createElement(Ct.A,{title:!1,loading:e.loading||!1,active:!0},n.createElement("div",{className:"history-panel__list-date"},e.date),n.createElement("div",{className:"history-panel__list-author"},(null===(o=L.find((t=>{var a,n;return(null===(a=t.id)||void 0===a?void 0:a.toString())===(null===(n=e.author)||void 0===n?void 0:n.toString())})))||void 0===o?void 0:o.display_name)||"\u2013"),e.isAutosave&&O!==r&&n.createElement("div",{style:{opacity:.45},className:"history-panel__list-autosave"},t("Auto")),!e.isAutosave&&n.createElement(h.Ay,{size:"small",className:"history-panel__restore",type:"link",onClick:e=>{O===r&&e.stopPropagation(),A(b[r]),P(null),V(null),a({operation:M.Ru.SANDBOX_LOCK_EDIT,data:!1}),l((0,Re.Fk)())}},t("Set")),e.isAutosave&&O===r&&n.createElement(h.Ay,{size:"small",className:"history-panel__restore",type:"link",onClick:e=>{O===r&&e.stopPropagation(),A(b[r]),_(!0),P(null),V(null),a({operation:M.Ru.SANDBOX_LOCK_EDIT,data:!1})}},t("Set"))))}})}]}),n.createElement(h.Ay,{type:"text",className:"ant-modal-close","aria-label":"Close",onClick:()=>{l((0,Re.Fk)()),A(H),V(null),_(!0),a({operation:M.Ru.SANDBOX_LOCK_EDIT,data:!1})}},n.createElement(oe.A,{icon:"Close"})))};var Rn=a(26327),Bn=a(85897),Mn=a(48300);const On=({elementPath:e})=>{const{_x:t}=(0,k.s9)(),a=(0,i.wA)(),l=(0,Be.QC)(),r=(0,n.useCallback)((e=>{l.send({operation:M.Ru.SANDBOX_ELEMENT_ACTIVE_SET,index:e})}),[l]),o=(0,n.useCallback)((()=>{a((0,Re.PM)(M.rY)),l.send({operation:M.Ru.SANDBOX_LOCK_EDIT,data:!1}),l.send({operation:M.Ru.SANDBOX_ELEMENT_ACTIVE_RESET})}),[l,a]),s={title:n.createElement("span",{onClick:o},n.createElement(oe.A,{icon:"Email"})," ",t("Email","letter"))},[c,d]=(0,n.useState)([s]),m=(0,n.useCallback)((e=>{l.send({operation:M.Ru.SANDBOX_ELEMENT_HOVER_SET,index:e})}),[l]),u=(0,n.useCallback)(((e,t)=>{return n.createElement("span",{className:e.className,onClick:()=>{r(t)},onMouseOver:()=>{m(t)}},(a=e.className).includes("em-element-path-item-text")?n.createElement(oe.A,{icon:"ElementText"}):a.includes("em-element-path-item-image")?n.createElement(oe.A,{icon:"ElementImage"}):a.includes("em-element-path-item-link")?n.createElement(Mn.A,null):a.includes("em-element-path-item-atom")?n.createElement(oe.A,{icon:"Atom"}):a.includes("em-element-path-item-column")?n.createElement(oe.A,{icon:"Column"}):a.includes("em-element-path-item-block")?n.createElement(oe.A,{icon:"Block"}):a.includes("em-element-path-item-group")?n.createElement(oe.A,{icon:"Group"}):a.includes("em-element-path-item-button")?n.createElement(oe.A,{icon:"Button"}):a.includes("em-element-path-item-table")?n.createElement(oe.A,{icon:"Table"}):a.includes("em-element-path-item-amp")?n.createElement(oe.A,{icon:"AMP"}):void 0," ",e.title);var a}),[r,m]);return(0,n.useEffect)((()=>{if(e){const a=e.map(((e,t)=>({title:u(e,t)})));d([{title:n.createElement("span",{onClick:o},n.createElement(oe.A,{icon:"Email"})," ",t("Email","letter"))},...a])}}),[e,u,o,t]),n.createElement(n.Fragment,null,n.createElement(Bn.A,{items:c,type:"separator",separator:""}))};var Pn=a(53821),Hn=a(8111),Vn=a(16390),Dn=a(38540),Fn=a(15812),jn=a(62093),zn=a(37507);const Zn=(e,t)=>n.createElement(t,Object.assign({className:"email-pane__tab-bar"},e)),{Content:qn}=X.A,{useToken:Un}=l.A,Gn=(0,n.memo)((e=>n.createElement(Da,e))),$n=(0,n.memo)((e=>n.createElement(vt,e))),Wn=(0,n.memo)((e=>n.createElement(Pt,e))),Xn=(0,n.memo)((e=>n.createElement(ja.A,e))),Kn=(0,n.memo)((0,n.forwardRef)(((e,t)=>n.createElement(Fa.A,Object.assign({},e,{ref:t}))))),Yn=(0,n.memo)((e=>n.createElement(ha,e))),Qn=(0,n.memo)((e=>n.createElement(ke,e))),Jn=(0,n.memo)((e=>n.createElement(Nn,e))),el=({emailElement:e,isSuccess:t,setIsCollaborationEditor:a})=>{var l,r,s,d,m,u,g;const{__:b,_x:C}=(0,k.s9)(),y=(0,Be.QC)(),{emailId:_,blockId:A,projectId:S}=(0,c.g)(),L=(0,i.wA)(),{modal:x}=o.A.useApp(),T=(0,we.rD)(),{token:I}=Un(),R=(0,E.hN)(),B=(0,P.p)(),O=(0,i.d4)(Re.B),H=(0,i.d4)(ga.C1),V=(0,i.d4)(ga.B$),D=(0,i.d4)(Wa.cL),F=(0,i.d4)(Re.NQ),j=(0,i.d4)(re.qX),z=(0,i.d4)(We.qX),Z=(0,i.d4)(Re.Fv),q=(0,i.d4)(Re.yy),U=(0,i.d4)(Fn.D2),G=(0,i.d4)(Fn.jr),$=(0,i.d4)(Fn.hc),W=(0,i.d4)(Re.Tn),[K]=(0,Ra.Ll)(),[J,ee]=(0,n.useState)(!1),[te,ae]=(0,n.useState)(),[ne,ie]=(0,n.useState)(T.defaultBuildPanel||"empty"),[se,de]=(0,n.useState)("empty"),[me,ue]=(0,n.useState)(!1),[pe,ge]=(0,n.useState)([]),[he,fe]=(0,n.useState)(!1),[_e,Ae]=(0,n.useState)([]),ke=(0,i.d4)(le.yN);let Se=!V&&(null===(l=H.id)||void 0===l?void 0:l.toString())===(null===ke||void 0===ke||null===(r=ke.members)||void 0===r?void 0:r.owner.ID)&&!0;const Le=!M.EW.isPlugin||((null===T||void 0===T?void 0:T.configSwither)||!1);(0,n.useEffect)((()=>{L((0,Re.sy)())}),[L]),(0,n.useEffect)((()=>{const e=window.localStorage.getItem(M.V0.em_active_tab);e&&L((0,Re.PM)(e))}),[B,L]);const xe=_||A,Te=e.hasOwnProperty("type")?M.IE:M.Tm,Ie=Te===M.Tm?j:z,[Ne,Me]=(0,n.useState)({}),Oe=(0,n.useRef)(null),Pe=(0,n.useRef)(),He=(0,n.useRef)(),Ve=(0,n.useRef)(),De=(0,n.useRef)(),Fe=(0,n.useRef)(),je=(0,n.useRef)(null),ze=(0,n.useRef)(!1),[Ze,qe]=(0,n.useState)(!1),[Ue,Ge]=(0,n.useState)(!1),[$e]=(0,N.b9)(),[Xe,Ke]=(0,n.useState)(!1),[Ye,Qe]=(0,n.useState)(0),[Je,et]=(0,n.useState)(M.EW.isPlugin?"pro"===localStorage.getItem("configSwither"):"pro"===H.email_builder_config||V||(null===(s=H.id)||void 0===s?void 0:s.toString())!==(null===ke||void 0===ke||null===(d=ke.members)||void 0===d?void 0:d.owner.ID)),[tt,at]=(0,n.useState)("FreeMode"),nt=M.EW.isPlugin?T.configSwither&&"pro"===T.mode?"DesignerMode":"EditorMode":Je?"DesignerMode":"EditorMode",lt=(0,n.useCallback)((()=>{clearTimeout(je.current);const e=".blocks-search__result-holder";document.querySelector(e)&&(U||G||$)&&(document.querySelector(e).style.removeProperty("transition"),document.querySelector(e).style.opacity=0,document.querySelectorAll(".blocks-search__result-body").forEach((e=>e.style.removeProperty("height"))),je.current=setTimeout((()=>{document.querySelectorAll(".blocks-search__result-body").forEach((e=>{e.style.height=207*e.getBoundingClientRect().height/660+"px"})),document.querySelector(e)&&(document.querySelector(e).style.transition="opacity 0.2s",document.querySelectorAll(e).forEach((e=>e.style.opacity=1)))}),200))}),[G,U,$]);function rt(e){setTimeout((()=>{qe(e.target.closest(".desktop_view")),Ge(e.target.closest(".mobile_view"))}),100)}(0,n.useEffect)((()=>(document.addEventListener("mouseover",rt),()=>{document.removeEventListener("mouseover",rt)})),[]),(0,n.useEffect)((()=>{L((0,Re.wr)(J?M.ND:M.Vp))}),[J,L]),(0,n.useEffect)((()=>{"function"===typeof a&&(_e.length>0?a(!0):a(!1))}),[_e]);const[ot]=(0,Na.EQ)(),{data:it={},refetch:st,status:ct}=(0,Na.gb)({entity_id:xe},{skip:!xe}),[dt,mt]=(0,n.useState)([]),[ut,pt]=(0,n.useState)(""!==T.defaultBuildPanel?M.nA:M.Jy),[gt,ht]=(0,n.useState)(null),ft=(0,n.useCallback)((()=>{var e;const t=null===(e=He.current)||void 0===e?void 0:e.getBoundingClientRect(),a=null===te||void 0===te?void 0:te.getBoundingClientRect();y.send({operation:M.Ru.SANDBOX_WINDOW_CHARACTERISTIC,settings:{iframeOffsetTop:Z&&"bottom"!==q?0:30,scrollTop:-(null===t||void 0===t?void 0:t.top)+(null===a||void 0===a?void 0:a.top)+30,innerHeight:window.innerHeight,previewHeight:null===a||void 0===a?void 0:a.height,mode:Z&&"bottom"!==q?"code":"default"}})}),[q,Z,te,y]),bt=t&&e,vt=(0,n.useCallback)((e=>{const t=window.navigator.platform.match("Mac");T.codeEnabled&&T.codeSideEnabled&&e.altKey&&88===e.keyCode&&(L((0,Re.vs)()),Se&&(Ke(!0),Qe(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()}),[L,T.codeEnabled,Se,T.codeSideEnabled]),Et=(0,n.useCallback)((t=>{document.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")||gt||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")||D===M.lx.UPLOAD_IMAGE_MODAL||D===M.lx.UPLOAD_IMAGE_MODAL_AI||D===M.lx.UPLOAD_IMAGE_MODAL_UPLOAD||D===M.lx.UPLOAD_IMAGE_MODAL_EDIT||D===M.lx.IMAGE_EDITOR_MODAL||D===M.lx.UPLOAD_BACKGROUND_MODAL||(O===M.yI&&(L((0,Re.Fk)()),y.send({operation:M.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),ge([])),L((0,Re.mi)(!0)),y.send({operation:M.Ru.SANDBOX_LOCK_EDIT,data:!1}),setTimeout((()=>{e.type?L((0,We.A9)({type:null})):L((0,re.A9)({type:null}))}),300)),ht(null)}),[L,e.type,D,gt,O,y]),[Ct,yt]=(0,n.useState)(!0),{data:_t=[],refetch:At}=(0,Hn.Cf)(xe,{skip:!xe}),[wt,kt]=(0,n.useState)(""),[St,Lt]=(0,n.useState)("");(0,n.useEffect)((()=>{xe&&At()}),[O,xe,At]),(0,n.useEffect)((()=>{xe&&!Object.keys(it).length&&"fulfilled"===ct&&st()}),[O,xe,st,it,ct]),(0,n.useEffect)((()=>{var e;const t=new ce.jG,a=window.localStorage.getItem(M.V0.em_active_tab);if(0===(null===it||void 0===it?void 0:it.totalCount)&&"pending"!==ct){const e={project_id:S,connection:"chat",entity_id:xe,context:"default",locale:H.locale.slice(0,2)};a||ot({body:e}).then((()=>{t.isDisposed()||"fulfilled"===ct&&st()}))}const n={data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}};var l,r;(null===it||void 0===it||null===(e=it.documents)||void 0===e?void 0:e.length)>0?(window.localStorage.removeItem(M.V0.em_active_tab),mt(null===it||void 0===it?void 0:it.documents),null!==it&&void 0!==it&&null!==(l=it.documents[(null===it||void 0===it||null===(r=it.documents)||void 0===r?void 0:r.length)-1].data)&&void 0!==l&&l.userInfo&&mt([...null===it||void 0===it?void 0:it.documents,n])):a||mt([n]);return()=>t.dispose()}),[xe,H.locale,null===it||void 0===it?void 0:it.totalCount,null===it||void 0===it?void 0:it.documents,S,st,ot,ct]),(0,n.useEffect)((()=>{Me({}),L(Te===M.Tm?(0,re.A9)({}):(0,We.A9)({}))}),[L,Te]);const xt=(0,n.useCallback)((e=>{L((0,re.G_)(e))}),[L]),Tt=(0,n.useCallback)((e=>{L((0,We.Dz)(e))}),[L]),It=(0,n.useCallback)((e=>{L(Te===M.Tm?(0,re.A9)(e):(0,We.A9)(e))}),[L,Te]);(0,n.useEffect)((()=>{const e=De.current,t=Ve.current;ae(Z?t:e)}),[Z,q]);const Nt=(0,n.useCallback)((e=>{ie(e),"search"===e?ue(!0):(ue(!1),de(e)),setTimeout(lt,50)}),[lt]),Rt=(0,n.useCallback)((e=>{const t=e.data.operation,a=e.data,n=e.data.action;if(t===M.Ru.APPLICATION_SCROLL_TO&&setTimeout((()=>{var t;null===(t=Ve.current)||void 0===t||t.scrollTo({top:e.data.settings.value,behavior:"smooth"})}),100),t===M.Ru.APPLICATION_ACTION&&"toggle_editor"===n&&L((0,Re.vs)()),t===M.Ru.APPLICATION_IFRAME_SET_HEIGHT&&(document.querySelector(".email-pane__iframe").style.height=a.settings.height+"px"),t===M.Ru.APPLICATION_EMAIL_SETTINGS_SET){let e=Object.assign({},a.settings);delete e.preheader;Object.values(e).every((e=>!e))?(L((0,re.M7)(!0)),L((0,Re.Fk)())):xt(a.settings),a.settings.noBlocks,L((0,Re.wW)(a.settings.responsive)),yt(e.structuresMedia)}if(t===M.Ru.APPLICATION_BLOCK_SETTINGS_SET){Object.values(a.settings).every((e=>!e))?(L((0,We.rc)(!0)),L((0,Re.Fk)())):(Tt(a.settings),yt(a.settings.structuresMedia))}if(t===M.Ru.APPLICATION_ELEMENT_SETTINGS_SET){var l,r;const e=Object.values(M.bV),t=!!a.tab||!e.includes(a.type);var o;if(t&&O===M.yI&&L((0,Re.Fk)()),a.type===M.bV.EMPTY_TABLE||a.type===M.bV.EMPTY_TD?(L((0,Re.PM)(M.Bv)),a.type===M.bV.EMPTY_TABLE?(pt(M.nA),a.tab?Nt(a.tab):Nt("common")):a.type===M.bV.EMPTY_TD&&pt(M.Jy)):a.type&&O!==M.yI&&L((0,Re.PM)(M.yI)),a.type===M.bV.CAROUSEL||a.type===M.bV.ACCORDION?(Me({settings:{...a.settings,type:t?null:a.type,caption:a.caption,parent:t?null:a.settings.parent},type:t?null:a.type,parent:t?null:a.settings.parent,caption:a.caption}),It({})):(It({...a.settings,type:t?null:a.type,parent:t?null:a.settings.parent,caption:a.caption}),Me({})),(null===(l=a.settings)||void 0===l||null===(r=l.path)||void 0===r?void 0:r.length)>0)ge(null===(o=a.settings)||void 0===o?void 0:o.path)}t===M.Ru.APPLICATION_ELEMENT_SETTINGS_CLOSE&&L((0,Re.Fk)())}),[L,xt,Tt,It,O,Nt]);(0,n.useEffect)((()=>{var e,t;H.email_builder_config&&(et(M.EW.isPlugin?"pro"===localStorage.getItem("configSwither"):"pro"===H.email_builder_config||V||(null===(e=H.id)||void 0===e?void 0:e.toString())!==(null===ke||void 0===ke||null===(t=ke.members)||void 0===t?void 0:t.owner.ID)),L((0,Vn.EV)(H.email_builder_config)))}),[H.email_builder_config,L]),(0,n.useEffect)((()=>{var e,t;Z&&Se&&L((0,Re.vs)()),V||(null===(e=H.id)||void 0===e?void 0:e.toString())!==(null===ke||void 0===ke||null===(t=ke.members)||void 0===t?void 0:t.owner.ID)?"simple"===T.mode&&($e({email_builder_config:"pro"}),localStorage.setItem("configSwither","pro"),L((0,Vn.EV)("pro"))):($e({email_builder_config:"simple"}),localStorage.setItem("configSwither","simple"),L((0,Vn.EV)("simple")))}),[]);const Bt=e=>{var t,a;(V||(null===(t=H.id)||void 0===t?void 0:t.toString())!==(null===ke||void 0===ke||null===(a=ke.members)||void 0===a?void 0:a.owner.ID))&&et((e=>!e)),setTimeout((()=>{var t,a;if(V||(null===(t=H.id)||void 0===t?void 0:t.toString())!==(null===ke||void 0===ke||null===(a=ke.members)||void 0===a?void 0:a.owner.ID)){let t="DesignerMode"===e?"pro":"editor";$e({email_builder_config:t}),localStorage.setItem("configSwither",t),L((0,Vn.EV)(t))}else L((0,Vn.EV)("pro")),at("DesignerMode"),Ke(!0)}),200)};(0,jn.A)(Rt);const Mt=(0,n.useRef)(),[Ot,Pt]=(0,n.useState)("unset"),Dt=(0,n.useCallback)((()=>{var e,t;let a;const n=null===(e=Ve.current)||void 0===e?void 0:e.getBoundingClientRect();if((null===Mt||void 0===Mt||null===(t=Mt.current)||void 0===t?void 0:t.getBoundingClientRect().top)>=0){const e=n&&Math.round(n&&(null===n||void 0===n?void 0:n.height)-30);Mt.current.style.height=`${e}px`,Pt(e-30)}a&&window.clearTimeout(a),a=window.setTimeout((function(){y.isInited()&&ft()}),100)}),[ft,y]);(0,n.useEffect)((()=>(O===M.z$?Oe.current=setInterval((()=>{st({entity_id:xe})}),5e3):clearInterval(Oe.current),clearInterval(Oe.current))),[xe,st,O]);const Ft=window.localStorage.getItem(M.V0.em_code_mode_pane_sizes),[jt,zt]=(0,n.useState)(+Ft||50),Zt=()=>{let e=document.querySelector(".block-search__preview");e&&(e.style.opacity="0",e.style.transform="translateX(-99%)",setTimeout((function(){e.remove()}),300))};let qt=[];T.blocksEmptyEnabled&&qt.push({label:n.createElement(Y.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:b("Empty blocks")},n.createElement("div",{style:{paddingTop:4}},n.createElement(oe.A,{icon:"BorderOuterOutlined",style:{fontSize:18}}))),value:"empty"}),T.blocksSavedEnabled&&qt.push({label:n.createElement(Y.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:b("Saved blocks")},n.createElement("div",{style:{paddingTop:4}},n.createElement(oe.A,{icon:"AppstoreAddOutlined",style:{fontSize:18}}))),value:"project"}),T.blocksCommonEnabled&&qt.push({label:n.createElement(Y.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:b("Common blocks")},n.createElement("div",{style:{paddingTop:4}},n.createElement(oe.A,{icon:"AppstoreOutlined",style:{fontSize:18}}))),value:"common"}),T.blocksTemplateEnabled&&qt.push({label:n.createElement(Y.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:b("Template blocks")},n.createElement("div",{style:{paddingTop:4}},n.createElement(oe.A,{icon:"BuildOutlined",style:{fontSize:18}}))),value:"template"}),T.blocksSearchEnabled&&qt.push({label:n.createElement(Y.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:b("Blocks search")},n.createElement("div",{style:{paddingTop:4}},n.createElement(oe.A,{icon:"SearchOutlined",style:{fontSize:18}}))),value:"search"});let Ut=[{label:n.createElement("div",{className:"email-pane__tab"},b("Elements")),key:M.Jy,forceRender:!0,className:"email-pane__collapse-panel email-pane__atoms",children:n.createElement(Yn,null)},{label:n.createElement("div",{className:"email-pane__tab"},b("Blocks")),key:M.nA,forceRender:!0,className:"email-pane__collapse-panel email-pane__blocks-search",style:{height:T.blocksSectionsShow?"calc(100% - 44px)":"100%"},children:n.createElement(n.Fragment,null,T.blocksSectionsShow&&n.createElement(n.Fragment,null,n.createElement(f.A.Compact,{block:!0},!me&&n.createElement(Q.A,{block:!0,style:{width:"100%",marginTop:24},onChange:Nt,value:ne,options:qt}),me&&n.createElement("div",{style:{width:"100%",height:36}}),me&&n.createElement("div",{style:{width:36,textAlign:"right",marginTop:22}},n.createElement(oe.A,{icon:"CloseOutlined",style:{padding:"0 2px 0",cursor:"pointer"},onClick:()=>{ue(!1),ie(se)}}))),n.createElement("div",{className:"blocks-search__divider-wrapper",style:{marginTop:me?28:12}},n.createElement(p.A,{className:"blocks-search__divider"}))),n.createElement("div",{style:{height:"100%"}},n.createElement("div",{className:"blocks-search__empty-shadow",style:{display:"empty"!==ne||me?"none":"block"}},Ct?n.createElement(Vt.A,null):n.createElement(Ht.A,null)),n.createElement("div",{style:{height:T.blocksSectionsShow?"calc(100% - 24px)":"100%",display:"empty"!==ne||me?"block":"none"}},n.createElement(Wn,{parentEmailId:null===e||void 0===e?void 0:e.parent_email,blocksTab:ne,search:me,reloadBlockScreens:lt,email:e}))))}],Gt=[{disabled:Xe,key:M.yI,style:{height:T.sidePanelFloating?Z&&"bottom"===q?Ot:"calc(100% - 30px)":"100%"},className:"em-analytics__email-tab-properties",children:n.createElement(n.Fragment,null,(!(null===Ie||void 0===Ie||!Ie.type)||!(null===Ne||void 0===Ne||!Ne.type))&&n.createElement("div",{className:w()("email-pane__collapse-wrapper",{"mobile-view":J,"mobile-properties":J&&W!==M.mX}),onMouseLeave:Zt},n.createElement(Aa,{email:e,formSettings:Ne})))},{disabled:Xe,key:M.Vv,style:{height:T.sidePanelFloating?Z&&"bottom"===q?Ot:"calc(100% - 30px)":"100%"},className:"em-analytics__email-tab-history",children:bt&&n.createElement("div",{className:"email-pane__collapse-wrapper",onMouseLeave:Zt},n.createElement(Jn,{setCollapsedHistory:()=>L((0,Re.mi)(!0)),emailElement:bt}))},{key:M.rb,className:"em-analytics__email-tab-properties"},{disabled:Xe,label:n.createElement(Y.A,{overlayClassName:"email-pane__tooltip",placement:"left",title:C("Build","tab")},n.createElement(oe.A,{"data-testid":"contentIcon",icon:"PlusCircleOutlined"})),key:M.Bv,className:"em-analytics__email-tab-build",style:{height:T.sidePanelFloating?Z&&"bottom"===q?Ot:"calc(100% - 30px)":"100%",overflow:"hidden"},children:n.createElement("div",{className:w()("email-pane__collapse-wrapper",{"email-pane__collapse-wrapper_no-topleft-radius":O===M.Bv||!O}),onMouseLeave:Zt},n.createElement(v.A,{className:w()("secondary-tabs email-pane__collapse",{"secondary-tabs_unset_scroll":ut===M.nA}),size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:ut,onChange:e=>pt(e||""),items:Ut}))},{disabled:Xe,label:n.createElement(Y.A,{overlayClassName:"email-pane__tooltip",overlayInnerStyle:{border:"2px dot-dash red"},overlayStyle:{border:"2px dot-dash red"},placement:"left",title:C("Styles","tab")},n.createElement(n.Fragment,null,n.createElement(oe.A,{"data-testid":"stylesIcon",icon:"Styles"}))),key:M.rY,className:"em-analytics__email-tab-styles",style:{height:T.sidePanelFloating?Z&&"bottom"===q?Ot:"calc(100% - 30px)":"100%",overflow:"hidden"},children:n.createElement("div",{className:"email-pane__collapse-wrapper"},n.createElement($n,{email:e}))}];T.commentsEnabled&&Gt.push({disabled:Xe,label:n.createElement(Y.A,{overlayClassName:"email-pane__tooltip",placement:"left",title:C("Discuss","tab")},n.createElement(oe.A,{"data-testid":"commentsIcon",icon:"CommentOutlined"}),Se&&n.createElement(oe.A,{icon:"Lock",className:"free-mode-firewall-icon free-mode-firewall-icon_emailpane"}),!!_t.length&&n.createElement("span",{className:"email-pane__comment-counter"},_t.filter((e=>"deleted"!==e.comment_status)).length)),key:M.hc,className:"email-pane__tab-discuss em-analytics__email-tab-discuss",style:{height:T.sidePanelFloating?Z&&"bottom"===q?Ot:"calc(100% - 30px)":"100%",overflow:"hidden"},children:n.createElement("div",{className:"email-pane__collapse-wrapper"},n.createElement(v.A,{className:"secondary-tabs email-settings__collapse",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:M.hc,items:[{label:n.createElement(n.Fragment,null,b("Discuss")),key:M.hc,forceRender:!0,className:"email-settings__collapse-panel",children:xe?n.createElement(fa.A,{email:e,comments:_t,subjectId:xe,isLoggedIn:!0,emailElementType:Te}):n.createElement("div",{className:"aside-content-wrapper"},e.hasOwnProperty("type")?n.createElement(be.A,{description:b("Save the block before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}):n.createElement(be.A,{description:b("Save the email before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}))}]}))});const $t=()=>{K({entity_id:xe}).then((e=>{e.error?R.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"}):e.data.success&&R.success({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:b("Success")}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.data.success}}),placement:"bottomRight"}),st(),fe(!1)}))};T.aiAssistentEnabled&&Gt.push({disabled:Xe,label:n.createElement(Y.A,{overlayClassName:"email-pane__tooltip",placement:"left",title:C("AI assistant","tab")},n.createElement(oe.A,{"data-testid":"aiAssistentIcon",icon:"AI"}),Se&&n.createElement(oe.A,{icon:"Lock",className:"free-mode-firewall-icon free-mode-firewall-icon_emailpane"}),(null===it||void 0===it?void 0:it.totalCount)>0&&xe&&n.createElement("span",{className:"email-pane__comment-counter"},null===it||void 0===it?void 0:it.totalCount)),key:M.z$,className:"email-pane__tab-discuss em-analytics__email-tab-discuss",style:{height:T.sidePanelFloating?Z&&"bottom"===q?Ot:"calc(100% - 30px)":"100%",overflow:"hidden"},children:n.createElement(n.Fragment,null,n.createElement("div",{className:"email-pane__collapse-wrapper"},n.createElement(v.A,{className:"secondary-tabs email-settings__collapse",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:M.z$,tabBarExtraContent:n.createElement(Y.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:b("Clear chat")},n.createElement(ve.A,{description:"Clear chat history?",onConfirm:$t,okText:"Yes",cancelText:"No",icon:"",placement:"leftTop",title:!1},n.createElement(h.Ay,{type:"text",icon:n.createElement(oe.A,{icon:"ClearChat",style:{fontSize:16}}),style:{marginRight:16}}))),items:[{label:n.createElement(n.Fragment,null,b("AI assistant")),key:M.z$,forceRender:!0,className:"email-settings__collapse-panel",children:xe||window.localStorage.getItem(M.V0.em_active_tab)?n.createElement(Gn,{messages:dt.length>0?dt:[{data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}}],newEmailAiGeneratorRef:ze}):n.createElement("div",{className:"aside-content-wrapper"},e.hasOwnProperty("type")?n.createElement(be.A,{description:b("Save the block before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}):n.createElement(be.A,{description:b("Save the email before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}))}]})))}),T.optimizeEnabled&&Gt.push({disabled:Xe,label:n.createElement(Y.A,{overlayClassName:"email-pane__tooltip",overlayInnerStyle:{border:"2px dot-dash red"},overlayStyle:{border:"2px dot-dash red"},placement:"left",title:C("Optimize","tab")},n.createElement(n.Fragment,null,n.createElement(oe.A,{"data-testid":"optimizeIcon",icon:"Speed"}),Se&&n.createElement(oe.A,{icon:"Lock",className:"free-mode-firewall-icon free-mode-firewall-icon_emailpane"}))),key:M.N7,className:"em-analytics__email-tab-optimise",style:{height:T.sidePanelFloating?Z&&"bottom"===q?Ot:"calc(100% - 30px)":"100%",overflow:"hidden"},children:n.createElement("div",{className:"email-pane__collapse-wrapper"},n.createElement(v.A,{className:"secondary-tabs secondary-tabs_optimise email-settings__collapse",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:M.N7,items:[{label:n.createElement(n.Fragment,null,b("Optimize")),key:M.N7,forceRender:!0,className:"email-settings__collapse-panel",children:n.createElement(Pn.A,null)}]}))}),T.settingsEnabled&&Gt.push({disabled:Xe,label:n.createElement(Y.A,{overlayClassName:"email-pane__tooltip",placement:"left",title:C("Settings","tab")},n.createElement(oe.A,{"data-testid":"settingsIcon",icon:"SettingOutlined"})),key:M.zx,className:"em-analytics__email-tab-edit",style:{height:T.sidePanelFloating?Z&&"bottom"===q?Ot:"calc(100% - 30px)":"100%",overflow:"hidden"},children:n.createElement("div",{className:"email-pane__collapse-wrapper"},n.createElement(Qn,{email:e}))});const[Wt,Xt]=(0,n.useState)([]),[Kt,Yt]=(0,n.useState)(!1),[Qt,Jt]=(0,n.useState)(0),[ea,ta]=(0,n.useState)(0),aa=(null===(m=document.querySelector(".email-pane__col_preview"))||void 0===m?void 0:m.getBoundingClientRect().width)-(T.sidePanelFloating?0:38),[na,la]=(0,n.useState)(null);(0,n.useEffect)((()=>{xe&&At(xe)}),[xe,At]),(0,n.useEffect)((()=>{const e=y.onInit((()=>{y.send({operation:M.Ru.SANDBOX_LOCK_EDIT,data:!1}),y.send({operation:M.Ru.SANDBOX_LOCK_DISCUSS,value:Kt})}));return()=>e.dispose()}),[Kt,y]),(0,n.useEffect)((()=>{if(Wt.length<2){const e=null===te||void 0===te?void 0:te.getBoundingClientRect(),t=setInterval(a,50);function a(){y.isInited()&&e&&(ft(),clearInterval(t))}Xt((e=>[...e,t]))}return clearInterval(Wt[Wt.length-1])}),[Wt,te,ft,y]);const ra=(0,n.useCallback)(((e=F)=>{var t;y.send({operation:M.Ru.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:e+2}}),null===(t=Pe.current)||void 0===t||t.resize()}),[F,y]);(0,n.useEffect)((()=>{if(Yt(O===M.hc),O!==M.rb){var e;const t=document.querySelector(".email-pane__row"),a=null===t||void 0===t?void 0:t.getBoundingClientRect().width;(null===He||void 0===He||null===(e=He.current)||void 0===e?void 0:e.getBoundingClientRect().width)+540>a&&L((0,Re.vc)("100%"))}}),[L,O]);const oa=(0,n.useCallback)((()=>{const e=He.current;e&&(e.style.borderWidth="1px",T.sidePanelFloating||(e.style.marginLeft="-1px",e.style.marginRight="-1px"),e.style.borderLeftColor=null,e.style.borderRightColor=null)}),[T.sidePanelFloating]),ia=(0,n.useCallback)((e=>{ma(!1),na&&(setTimeout((()=>ra()),50),la(null)),e.target.classList.contains("email-pane__handle")||oa(),window.localStorage.setItem(M.V0.em_code_mode_pane_sizes,JSON.stringify(jt))}),[ra,na,jt,oa]),sa=e=>t=>{t.target.classList.contains("email-pane__handle")&&(t.preventDefault(),Jt(t.target.parentNode.offsetWidth),ta(t.pageX),la(e),ht(e))},ca=e=>{const t=He.current;"string"!==typeof e||na&&na!==e?na||(oa(),document.querySelector(".email-pane__iframe").style.width="1px",document.querySelector(".email-pane__iframe").style.removeProperty("margin-left")):(document.querySelector(".email-pane__iframe").style.width="calc(100% + 1px)","right"===e?(t.style.borderRightColor=I.colorPrimary,t.style.borderRightWidth="2px"):(t.style.borderLeftColor=I.colorPrimary,t.style.borderLeftWidth="2px",document.querySelector(".email-pane__iframe").style.marginLeft="-1px"))},[da,ma]=(0,n.useState)(!1),ua=(0,n.useCallback)((e=>{if(!na)return;let t=2*(e.pageX-ea),a=Qt+("left"===na?-t:t);var n;a>318&&a<aa&&(L((0,Re.vc)(a)),"number"===typeof a&&a<=425?J||ee(!0):J&&ee(!1),null===(n=Pe.current)||void 0===n||n.resize())}),[L,Qt,ea,na,aa,J,ee]),ha=(0,n.useCallback)((e=>{if(da)if("bottom"===q){const t=Fe.current.getBoundingClientRect().height,a=Fe.current.getBoundingClientRect().top,n=(e.clientY-a)/t*100;if(n<20||n>80)return;zt(n),Dt()}else{const t=Fe.current.getBoundingClientRect().width,a=Fe.current.getBoundingClientRect().left,n=(e.clientX-a)/t*100,l=He.current.getBoundingClientRect().width;if(T.desktopMobileSwitchPanel&&"number"===typeof l&&l<=425&&(L((0,Re.vc)(425)),J||ee(!0)),n<20||n>80)return;zt(n)}}),[da,q,Dt,J,L,T.desktopMobileSwitchPanel,ee]);(0,n.useEffect)((()=>{Dt()}),[Z,Dt]);const ba=e=>{L((0,Re.vc)(e)),setTimeout((()=>ra(e)),700),"number"===typeof e&&e<=425?J||ee(!0):J&&ee(!1)};(0,n.useEffect)((()=>(window.addEventListener("scroll",Dt,!0),window.addEventListener("mousemove",ua,!0),window.addEventListener("mousemove",ha),window.addEventListener("mouseup",ia,!0),window.addEventListener("click",Et),window.addEventListener("keydown",vt),()=>{window.removeEventListener("mousemove",ua,!0),window.removeEventListener("mousemove",ha),window.removeEventListener("mouseup",ia,!0),window.removeEventListener("scroll",Dt,!0),window.removeEventListener("keydown",vt),window.removeEventListener("click",Et)})));const[va,Ea]=(0,n.useState)(T.emailPaneDesktopSize||F);return(0,n.useEffect)((()=>{T.emailPaneDesktopSize&&L((0,Re.vc)(T.emailPaneDesktopSize))}),[L,T.emailPaneDesktopSize]),(0,n.useEffect)((()=>{Ea(Z&&"bottom"!==q&&!J&&T.desktopMobileSwitchPanel?"100%":F)}),[L,T.emailPaneDesktopSize,Z,q,J,T.desktopMobileSwitchPanel,F]),n.createElement(X.A,{className:w()("email-pane",{"email-pane_code-mode":Z,"email-pane_only_code_mode_mobile":T.onlyCodeModeInMobile,"email-pane_code-mode-bottom":Z&&"bottom"===q,"email-pane_no-element-navigation":!T.switchDesktopMobilePropsEnabled&&!T.stepToOtherElementEnabled&&!T.deleteButtonEnabled,"email-pane_is-mobile":J,"email-pane_path-enabled":T.pathEnabled})},n.createElement(qn,{className:"email-pane__container",ref:De},((null===Ie||void 0===Ie?void 0:Ie.type)===M.bV.TEXT||(null===Ie||void 0===Ie?void 0:Ie.type)===M.bV.LINK||Ie.type===M.bV.IMG||Ie.type===M.bV.BUTTON)&&Z&&"bottom"!==q&&n.createElement(Rn.A,{className:w()("selected-element-panel__content selected-element-panel__content_abs",{"selected-element-panel__hidden":Ie.type===M.bV.IMG}),emailElementType:Te,formSettings:Ne}),n.createElement(Ee.A,{ref:Fe,className:w()("email-pane__row",{"email-pane__left":Z&&"right"===q,"email-pane__right":Z&&"left"===q,"email-pane__bottom":Z&&"bottom"===q,"email-pane__sizeSwitcher":T.desktopMobileSwitchPanel,"email-pane__reverse":"left"===T.menuDirection,"email-pane__pinch":!T.sidePanelFloating})},n.createElement(Ce.A,{style:{flexGrow:1,overflowY:T.sidePanelFloating?"scroll":"hidden",overflowX:"hidden",height:Z&&"bottom"===q?`calc(${jt}%)`:"100%",width:`${"left"===q?100-jt:"bottom"===q?100:jt}%`},id:"pane-content-wrapper",ref:Ve},n.createElement("div",{className:"email-pane__iframe-scroll-top",id:"iframe-scroll-top"}),T.desktopMobileSwitchPanel&&n.createElement(f.A,{className:"email-pane__sizes-panel-wrapper",direction:"vertical",size:10},n.createElement(f.A,{className:"email-pane__sizes-panel",direction:"vertical",size:0},n.createElement(Y.A,{title:b("Desktop view"),placement:"right",open:Ze},n.createElement(h.Ay,{type:J?"text":"primary",icon:n.createElement(oe.A,{icon:"DesktopOutlined"}),shape:"circle",onClick:()=>ba(T.emailPaneDesktopSize||1e3),className:"toggle_view desktop_view"})),n.createElement(Y.A,{title:b("Mobile view"),placement:"right",open:Ue},n.createElement(h.Ay,{type:J?"primary":"text",icon:n.createElement(oe.A,{icon:"MobileOutlined"}),shape:"circle",onClick:()=>ba(425),className:"toggle_view mobile_view"}))),T.codeSideEnabled&&n.createElement(Y.A,{title:b("Code mode"),placement:"right"},n.createElement(h.Ay,{type:Z?"primary":"default",icon:n.createElement(oe.A,{icon:"Code"}),shape:"circle",onClick:()=>{return e="right",Z?L((0,Re.vs)()):"string"===typeof e?(L((0,Re.Uf)(e)),!Z&&L((0,Re.vs)())):L((0,Re.vs)()),L((0,Re.Fk)()),setTimeout((()=>{Te===M.IE?L((0,We.A9)({type:null})):L((0,re.A9)({type:null}))}),300),y.send({operation:M.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),void L((0,Dn.rI)());var e}}))),n.createElement(Ee.A,{className:w()("email-pane__col-wrapper",{container:Z&&"bottom"===q||!Z,"email-pane__col-wrapper_reverse":"left"===T.menuDirection,"email-pane__col-wrapper_pinch":!T.sidePanelFloating}),style:{flexGrow:1,maxWidth:"unset",paddingTop:T.desktopMobileSwitchPanel&&Z&&"bottom"!==q?"60px":""}},n.createElement(Ce.A,{className:"email-pane__col email-pane__col_preview",style:{flexGrow:1,maxWidth:"unset"}},T.desktopMobileSwitchRule&&n.createElement("div",{className:`email-pane__sizes ${wt}`},n.createElement("div",{className:"email-pane__width-selectors-wrapper"},n.createElement("div",{className:"device-width__full",style:{flexGrow:1},onMouseEnter:()=>{kt("device-width__full-hovered"),Lt(b("Desktop"))},onMouseLeave:()=>{kt(""),Lt("")},onClick:()=>ba("100%")}),n.createElement("div",{className:"device-width__768",style:{width:171},onMouseEnter:()=>{kt("device-width__768-hovered"),Lt(b("Small desktop \u2013 768px"))},onMouseLeave:()=>{kt(""),Lt("")},onClick:()=>ba(768)}),n.createElement("div",{className:"device-width__425",style:{width:25},onMouseEnter:()=>{kt("device-width__425-hovered"),Lt(b("Mobile L \u2013 425px"))},onMouseLeave:()=>{kt(""),Lt("")},onClick:()=>ba(425)}),n.createElement("div",{className:"device-width__375",style:{width:28},onMouseEnter:()=>{kt("device-width__375-hovered"),Lt(b("Mobile M \u2013 375px"))},onMouseLeave:()=>{kt(""),Lt("")},onClick:()=>ba(375)}),n.createElement("div",{className:"device-width__320",style:{width:320},onMouseEnter:()=>{kt("device-width__320-hovered"),Lt(b("Mobile S \u2013 320px"))},onMouseLeave:()=>{kt(""),Lt("")},onClick:()=>ba(320)},St),n.createElement("div",{className:"device-width__375",style:{width:28},onMouseEnter:()=>{kt("device-width__375-hovered"),Lt(b("Mobile M \u2013 375px"))},onMouseLeave:()=>{kt(""),Lt("")},onClick:()=>ba(375)}),n.createElement("div",{className:"device-width__425",style:{width:25},onMouseEnter:()=>{kt("device-width__425-hovered"),Lt(b("Mobile L \u2013 425px"))},onMouseLeave:()=>{kt(""),Lt("")},onClick:()=>ba(425)},n.createElement(Y.A,{title:b("Mobile view"),placement:"bottom"},n.createElement(h.Ay,{type:"default",icon:n.createElement(oe.A,{icon:"MobileOutlined"}),size:"small",shape:"circle",style:{right:-12,top:4,zIndex:999,padding:0,position:"absolute",onClick:()=>ba(425)}}))),n.createElement("div",{className:"device-width__768",style:{width:171},onMouseEnter:()=>{kt("device-width__768-hovered"),Lt(b("Small desktop \u2013 768px"))},onMouseLeave:()=>{kt(""),Lt("")},onClick:()=>ba(768)},n.createElement(Y.A,{title:b("Desktop view"),placement:"bottom"},n.createElement(h.Ay,{type:"default",icon:n.createElement(oe.A,{icon:"DesktopOutlined"}),size:"small",shape:"circle",style:{right:-12,top:4,zIndex:999,padding:0,position:"absolute",onClick:()=>ba(768)}}))),n.createElement("div",{className:"device-width__full",style:{flexGrow:1},onMouseEnter:()=>{kt("device-width__full-hovered"),Lt(b("Desktop"))},onMouseLeave:()=>{kt(""),Lt("")},onClick:()=>ba("100%")}))),n.createElement("div",{className:w()("email-pane__resizable",{"email-pane__resizable_drag":na||da}),style:{maxWidth:va}},n.createElement("div",{className:"email-pane__handle left",onMouseDown:sa("left"),onMouseEnter:()=>ca("left"),onMouseLeave:ca}),n.createElement("div",{className:"email-pane__handle right",onMouseDown:sa("right"),onMouseEnter:()=>ca("right"),onMouseLeave:ca}),n.createElement("div",{className:w()("email-pane__content-col email-pane__content-col_main",{"email-pane__content-col_disable":na||da}),ref:He,id:"pane-content-iframe"},n.createElement(Kn,{ref:Pe,className:"email-pane__iframe",email:e,handlerSendPosition:Dt})))),n.createElement(Ce.A,{style:{display:Z&&"bottom"!==q?"none":"initial"},ref:Mt,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":O===M.rb})},(!Z||"bottom"===q)&&n.createElement(v.A,{className:w()("email-pane__col_settings-inner",{"email-pane__col_settings-inner_reverse":"left"===T.menuDirection}),size:"middle",animated:{inkBar:!1,tabPane:!1},activeKey:O,onTabClick:e=>{let t=document.querySelector(".atoms__list");if(e===M.Bv&&"Disabled_tab"===O&&t&&setTimeout((()=>{t.style.opacity=1}),300),T.toggleSidePanel&&e===O?(L((0,Re.PM)(M.rb)),t&&(t.style.opacity=0)):"Optimize"===e?(0,ce.Z1)(b,x):e!==M.yI&&e!==M.Vv&&(L((0,Re.PM)(e)),y.send({operation:M.Ru.SANDBOX_LOCK_EDIT,data:!1}),y.send({operation:M.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),ge([])),Se&&("Discuss"===e||"Optimise"===e||"AiChat"===e))switch(Ke(!0),e){case"Discuss":Qe(7);break;case"Optimise":Qe(6);break;case"AiChat":Qe(9);break;default:Qe(0)}},renderTabBar:Zn,tabPosition:"right",items:Gt,tabBarExtraContent:Le&&n.createElement(n.Fragment,null,V||(null===(u=H.id)||void 0===u?void 0:u.toString())!==(null===ke||void 0===ke||null===(g=ke.members)||void 0===g?void 0:g.owner.ID)?n.createElement(Q.A,{options:[{value:"DesignerMode",icon:n.createElement(Y.A,{placement:"left",title:b("Designer mode")},n.createElement(oe.A,{icon:"DesignerMode",style:{fontSize:18,top:2}}))},{value:"EditorMode",icon:n.createElement(Y.A,{placement:"left",title:b("Editor mode")},n.createElement(oe.A,{icon:"EditorMode",style:{fontSize:18,top:4,left:2}}))}],className:"ant-segmented_editor-mode",onChange:Bt,defaultValue:nt}):n.createElement(Q.A,{options:[{value:"FreeMode",icon:n.createElement(Y.A,{placement:"left",title:b("Simple mode")},n.createElement("span",{style:{fontSize:14,fontWeight:600,position:"relative",top:-1}},"Free"))},{value:"DesignerMode",icon:n.createElement(Y.A,{placement:"left",title:b("Pro mode")},n.createElement(oe.A,{icon:"DesignerMode",style:{fontSize:20,top:2}}))}],className:"ant-segmented_editor-mode",onChange:Bt,value:tt}))}))),n.createElement("div",{className:"email-pane__iframe-scroll-bottom",id:"iframe-scroll-bottom"})),n.createElement(Ce.A,{style:{width:`${"right"===q?100-jt:"bottom"===q?100:jt}%`,position:"relative",height:"bottom"===q?`calc(${100-jt}%)`:"unset",display:Z?"initial":"none"}},n.createElement("div",{className:"email-pane__code-divider",onMouseDown:()=>ma(!0)}),n.createElement("div",{className:"code-mode__pane code-mode__pane_editor email-pane__pane email-pane__pane_editor"},n.createElement("div",{className:"code-mode__pane-content email-pane__pane-content"},n.createElement(Xn,{email:e,setOtherUsers:Ae,newEmailAiGeneratorRef:ze}))))),T.pathEnabled&&n.createElement("div",{className:"email-pane__paths"},n.createElement(On,{elementPath:pe})),n.createElement("div",{className:"collaborator-list"},n.createElement(zn.b,{users:_e,isEditor:M._P.isEditor,isPlugin:M.EW.isPlugin,token:I}))),"img"===(null===Ne||void 0===Ne?void 0:Ne.type)&&Z&&"bottom"!==q&&n.createElement("div",{className:"email-pane__collapse-wrapper email-pane__collapse-wrapper_disabled"},n.createElement(Aa,{email:e,formSettings:Ne})),n.createElement(xn,null),n.createElement(pa.A,{open:Xe,onCancel:()=>{Z&&L((0,Re.vs)()),L((0,Re.Fk)()),L((0,Vn.EV)("simple")),at("FreeMode"),Ke(!1)},initialSlide:Ye}),n.createElement(ye.A,{title:b("Warning"),centered:!0,open:he,onOk:$t,onCancel:()=>{fe(!1)}},n.createElement("p",null,b("Clear chat history?"))))};var tl,al=a(80703);function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},nl.apply(null,arguments)}function ll({title:e,titleId:t,...a},l){return n.createElement("svg",nl({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",ref:l,"aria-labelledby":t},a),e?n.createElement("title",{id:t},e):null,tl||(tl=n.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 rl=n.forwardRef(ll),ol=(a.p,({isModalVisible:e,htmlContent:t,projectId:a})=>{const{__:l}=(0,k.s9)(),r=(0,i.wA)(),[o]=u.A.useForm(),[s,d]=(0,n.useState)([]),[m,p]=(0,Lt.pP)(),{data:f}=(0,Lt.h1)(),b=(0,E.hN)(),v=(0,we.rD)(),[C,y]=(0,n.useState)([]),{data:_,refetch:A}=(0,c.KC)(),{refetch:w}=(0,Lt.SB)({projectId:a,pageSize:1e3,page:1,tags:null,name:null,type:null,notEmbed:!0,order:"asc",orderby:"title"}),S=`project_${a}`,L=_&&(0,ce._q)(_,M.YY).find((e=>e.name===S)),x=(0,ce._q)(_,M.YY)||[],T=null===x||void 0===x?void 0:x.map((e=>e.id)),[I,N]=(0,Lt.Gr)(),[R,B]=(0,St.OD)();(0,n.useEffect)((()=>{y((0,ce._q)(_,M.YY).map((e=>({value:e.name}))))}),[_]),(0,n.useEffect)((()=>{if(f){const e=f.schema.properties.acf.properties.type.items.enum;let t=[];for(let a in e)t.push({label:l(M.jg[e[a]]),value:e[a]});d(t)}}),[f,l]);const O=()=>{o.validateFields().then((e=>{const r=e.tags;if((null===r||void 0===r?void 0:r.length)>10)return void b.error({id:"BLOCK_TOO_MANY_TAGS_ERROR",data:(0,E.x_)(e),message:l("Maximum 10 tags available."),placement:"bottomRight"});const i=i=>{const s=null===r||void 0===r?void 0:r.map((e=>{const t=null===x||void 0===x?void 0:x.find((t=>t.name===e));return t?t.id:I({name:e,parent:i}).then((({error:t,data:a})=>{var n,l;return 400===(null===t||void 0===t?void 0:t.status)?null===t||void 0===t||null===(n=t.data)||void 0===n||null===(l=n.data)||void 0===l?void 0:l.term_id:a?a.id:void(t&&b.fromError("TAG_CREATING_ERROR",e,t))}))})),c=(e,r=[])=>{m({title:e.title,project:a,html:t,type:e.type?e.type:"Other",blocktags:r.join(",")}).then((i=>{if(i.error)return b.error({id:"BLOCK_CREATING_ERROR",data:{title:e.title,html:t},innerException:i.error,message:n.createElement("div",{dangerouslySetInnerHTML:{__html:i.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:i.error.data.message}}),placement:"bottomRight"}),o.resetFields(),void P();o.resetFields(),P();let s=new Set([...T,...r]);A(),R({projectId:a,blocktags:[...s].join(",")}).then((e=>{e.error&&b.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"}),b.success({id:"BLOCK_CREATING_SUCCESS",data:(0,E.x_)(i.data),message:l("The block \u201c")+i.data.title+l("\u201d was successfully created."),placement:"bottomRight"}),w()}))}))};s?Promise.all(s).then((t=>{c(e,t)})):c(e),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))};L?i(L.id):I({name:S}).then((async({data:e,error:t})=>{if(t)b.fromError("FOLDER_CREATING_ERROR",S,t);else{const{data:t,error:n}=await R({projectId:a,blocktags:e.id});n?b.fromError("BLOCK_CLONING_ERROR",(0,E.x_)(e),n):t&&i(t.blocktags&&t.blocktags[0])}})).catch((e=>{}))}))},P=()=>{r((0,Re.Oo)())};return n.createElement(ye.A,{title:n.createElement("div",null,n.createElement(al.A,null)," ",l("Add new block")),className:"blocks-modal",open:e,onOk:O,onCancel:P,centered:!0,footer:[n.createElement(h.Ay,{key:"submit",size:"large",type:"primary",loading:p.isLoading,onClick:O},n.createElement(rl,{className:"modal-new-block__icon-create"}),l("Create block"))]},n.createElement(u.A,{form:o,layout:"vertical",name:"add_new_block_form",onFinish:O,initialValues:{title:"",type:"",tags:[]},autoComplete:"off",style:{padding:"10px 24px 0"}},n.createElement(Ee.A,{gutter:16},n.createElement(Ce.A,{span:12}," ",n.createElement(u.A.Item,{label:l("Block name"),name:"title",rules:[{required:!0,message:l("Please input block name")}],style:{marginBottom:15}},n.createElement(g.A,{disabled:p.isLoading||N.isLoading||B.isLoading,size:"large",placeholder:l("Enter block name"),spellCheck:"false"}))),n.createElement(Ce.A,{span:12},n.createElement(u.A.Item,{label:l("Type"),name:"type",rules:[{required:!0,message:l("Please choose block type")}],style:{marginBottom:15}},n.createElement(xe.A,{disabled:p.isLoading||N.isLoading||B.isLoading,size:"large",placeholder:l("Choose block type"),options:s})))),v.tagsEnabled&&n.createElement(u.A.Item,{label:l("Tags"),name:"tags"},n.createElement(xe.A,{size:"large",mode:"tags",placeholder:l("Add some tags"),tooltip:{title:l("Tags help you find the block in the list."),icon:n.createElement($e.A,null)},disabled:p.isLoading||N.isLoading||B.isLoading,options:C}))))});var il=a(27264),sl=a(52218),cl=a.n(sl),dl=a(52995),ml=a(55835),ul=a(80223);const pl=n.createElement(xa.A,{style:{fontSize:20},spin:!0}),{useToken:gl}=l.A,hl=({emailElement:e,isCollaborationEditor:t})=>{var a,l,r,s;const{__:d}=(0,k.s9)(),m=(0,i.wA)(),u=(0,Be.XW)(),{emailId:p,blockId:g}=(0,c.g)(),b=(0,i.d4)(Wa.cL),[v,C]=(0,n.useState)(!1),[y,_]=(0,Ga.Zf)(),A=(0,c.Zp)(),w=(0,i.d4)(ga.C1),[S]=(0,Tn.YE)(p),[L]=(0,Lt.lx)(g),{owner:x}=(0,ul.A)(),T=(0,Ma.fn)(),I=(0,Ma.aD)(T),N=(0,Ma.TW)(T),R=(0,i.d4)(Re.Wm),B=(0,i.d4)(Re.Fv),O=(0,i.d4)(Re.yy),{token:P}=gl(),{modal:H}=o.A.useApp(),V=(0,E.hN)(),{confirm:D}=H,F=(0,we.rD)(),j=e.hasOwnProperty("type")?M.IE:M.Tm,z=(0,Ba.ml)(Pa.AZ.ON_SHARE_ID),Z=(0,Ba.ml)(Pa.AZ.ON_SHOW_PREVIEW_ID),[q,U]=(0,n.useState)(!1),[G,$]=(0,n.useState)(0),W=(0,i.d4)(le.yN);let X=!(0,i.d4)(ga.B$)&&(null===(a=w.id)||void 0===a?void 0:a.toString())===(null===W||void 0===W||null===(l=W.members)||void 0===l?void 0:l.owner.ID)&&!0;const K=p?"emailId":"blockId",Q=null===e||void 0===e?void 0:e.project,J=e=>{"string"===typeof e?(m((0,Re.Uf)(e)),!B&&m((0,Re.vs)())):m((0,Re.vs)()),setTimeout((()=>{j===M.IE?m((0,We.A9)({type:null})):m((0,re.A9)({type:null}))}),300),u({operation:M.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),X&&(U(!0),$(1))},ee=(0,n.useCallback)((()=>{D({title:d("Available on the Personal plan and higher."),icon:n.createElement(il.A,null),content:n.createElement("div",{style:{maxWidth:"330px"}},d("Upgrade your plan to use this feature")),centered:!0,okText:d("Choose your plan"),cancelText:d("Close & continue"),width:"unset",onOk(){A("/billing")},onCancel(){}})}),[A,d,D]);(0,n.useEffect)((()=>{_.isError&&((0,ce.p6)(_,V),C(!1))}),[_,V]),(0,n.useEffect)((()=>{if(_.isSuccess&&v){var e;if(401===(null===(e=_.data)||void 0===e?void 0:e.status))V.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:_.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:_.data.message}}),placement:"bottomRight"});else if(_.data){let e=document.createElement("A");e.setAttribute("target","_blank"),e.setAttribute("href",_.data.message),e.click()}C(!1)}}),[_,v,V]);const[te,ae]=(0,n.useState)(!1),ne=()=>{u({operation:M.Ru.SANDBOX_LOCK_EDIT,data:R}),m((0,Re.mi)(!R))},ie=p?S:L;let se=[];const de=(0,n.useCallback)((async()=>{const e=await Z.fire({project:Q,id:p});!1!==e.find((e=>!1===e||"string"===typeof e))&&window.open(e.find((e=>e))||`/email/${p}/raw?key=${cl()(`${Q}${p}${M.KI}`)}`)}),[Z,Q,p]),me=(0,n.useCallback)((async()=>{window.open(`/getemail/${p}?secret_hash=${cl()(`${Q}${p}${M.KI}`)}&raw=true`)}),[Q,p]);F.previewModeEnabled&&se.push({key:"Preview_mode",icon:n.createElement(oe.A,{icon:"EyeOutlined",style:{fontSize:16}}),label:d("Preview mode"),onClick:de}),F.livePreviewEnabled&&se.push({key:"Live_preview",icon:v?n.createElement(xa.A,{style:{fontSize:16}}):n.createElement(oe.A,{icon:"CheckCircleOutlined",style:{fontSize:16}}),label:d("Live preview"),onClick:(null===(r=w.id)||void 0===r?void 0:r.toString())===(null===(s=e.project_author)||void 0===s?void 0:s.toString())&&"community"===w.subscription.post_name&&x?ee:()=>{if(!v){const t={email:p,subject:encodeURIComponent("#"+e.project+" "+e.title).replaceAll(/%20/gi,"+").replaceAll(/%0A/gi,"%0D%0A"),content:encodeURIComponent((null===T||void 0===T?void 0:T.getValue())||"").replaceAll(/%20/gi,"+").replaceAll(/%0A/gi,"%0D%0A")};y(t),C(!0)}}}),F.webversionEnabled&&se.push({key:"Web version",icon:n.createElement(oe.A,{icon:"Web",style:{fontSize:16}}),label:d("Web version"),onClick:me}),F.sharePreviewEnabled&&se.push({key:"Share",icon:n.createElement(oe.A,{icon:"ShareAltOutlined",style:{fontSize:16}}),label:d("Share"),onClick:async()=>{const e=(await z.fire({project:Q,id:p})).find((e=>!1===e||"string"===typeof e));!1!==e&&navigator.clipboard.writeText(e||`https://app.emailmaker.ru/email/${p}/raw?key=${cl()(`${Q}${p}${M.KI}`)}`).then((()=>{(0,ce.wB)(d("A shareable link to this page has been copied to the clipboard."),V)}))},className:"em-analytics__email-share"});const ue=[{key:"Left_mode",icon:n.createElement(oe.A,{icon:"PanelLeft",style:{fontSize:"20px",color:"left"===O&&B?P.colorPrimary:"inherit"}}),label:d("Left Code panel"),onClick:()=>J("left")},{key:"Right_mode",icon:n.createElement(oe.A,{icon:"PanelLeft",style:{fontSize:"20px",transform:"rotate(180deg)",color:"right"===O&&B?P.colorPrimary:"inherit"}}),label:d("Right Code panel"),onClick:()=>J("right")},{key:"Bottom_mode",icon:n.createElement(oe.A,{icon:"PanelLeft",style:{fontSize:"20px",transform:"rotate(-90deg)",color:"bottom"===O&&B?P.colorPrimary:"inherit"}}),label:d("Bottom Code panel"),onClick:()=>J("bottom")}];return n.createElement("div",{className:"email-preview-menu email-preview-menu_new"},n.createElement(f.A,{size:32},n.createElement(f.A,{size:8,style:{borderRadius:"calc(var(--borderRadius) * 1px"}},n.createElement(Y.A,{title:d(t?ml.LJ:"Undo (Ctrl+Z)"),placement:"bottom"},n.createElement(h.Ay,{type:"text",icon:n.createElement(oe.A,{icon:"UndoOutlined",style:{fontSize:20}}),onClick:()=>{I.undo()},disabled:!N.canUndo})),n.createElement(Y.A,{title:d(t?ml.LJ:"Redo (Ctrl+Shift+Z)"),placement:"bottom"},n.createElement(h.Ay,{type:"text",icon:n.createElement(oe.A,{icon:"RedoOutlined",style:{fontSize:20}}),onClick:()=>{I.redo()},disabled:!N.canRedo})),F.historyEnabled&&n.createElement(Y.A,{title:d("Version history"),placement:"bottom"},n.createElement(h.Ay,{type:R?"text":"primary",ghost:!R,onClick:()=>{R?(ae(!0),ie({[K]:null===e||void 0===e?void 0:e.id}).then((e=>{e.isSuccess?0===e.data.data.length&&V.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:d("There`s no record of history.")}}),placement:"bottomRight"}):e.isError&&(0,ce.p6)(e,V),ne(),m((0,Re.PM)(M.Vv)),ae(!1),X&&(U(!0),$(4))}))):(m((0,Re.Fk)()),ne())},disabled:e.isNew||te,className:"email-preview-menu__history",icon:te?n.createElement(Za.A,{indicator:pl}):n.createElement(n.Fragment,null,n.createElement(oe.A,{icon:"HistoryOutlined",style:{fontSize:20},className:"email-preview-menu__list-item-icon email-preview-menu__list-item-icon_revert"}),X&&n.createElement(oe.A,{icon:"Lock",className:"free-mode-firewall-icon"}))}))),n.createElement(f.A,{size:8,style:{borderRadius:"calc(var(--borderRadius) * 1px"}},F.codeEnabled&&n.createElement(Et.A,{arrow:!0,key:"Code mode",placement:"bottom",menu:{items:ue},trigger:"hover",mouseEnterDelay:0},n.createElement(h.Ay,{type:B?"primary":"text",ghost:B,icon:n.createElement(n.Fragment,null,n.createElement(oe.A,{icon:"Code",style:{fontSize:20}}),X&&n.createElement(oe.A,{icon:"Lock",className:"free-mode-firewall-icon"})),onClick:J})),F.previewIconEnabled&&n.createElement(Et.A,{arrow:!0,key:"Preview",placement:"bottom",menu:{items:se}},n.createElement(h.Ay,{type:"text",target:"_blank",rel:"noreferrer",icon:F.previewModeEnabled?n.createElement("span",{onClick:de,style:{fontSize:"18px",color:P.colorText}},n.createElement(oe.A,{icon:"EyeOutlined",style:{fontSize:20},className:"email-preview-menu__list-item-icon"})):n.createElement(oe.A,{icon:"EyeOutlined",style:{fontSize:20},className:"email-preview-menu__list-item-icon"}),disabled:!N.canUndo})),F.sendTestEnabled&&n.createElement(Y.A,{title:d("Send a test email"),placement:"bottom"},n.createElement(h.Ay,{className:"em-analytics__email-open-test",type:"text",icon:n.createElement(oe.A,{icon:"SendOutlined",style:{fontSize:20}}),onClick:()=>{m((0,Wa.qf)(M.lx.SEND_TEST_EMAIL))}})))),n.createElement(dl.A,{isModalVisible:b===M.lx.SEND_TEST_EMAIL,email:e}),n.createElement(pa.A,{open:q,onCancel:()=>{R||(ne(),m((0,Re.Fk)())),B&&m((0,Re.vs)()),U(!1)},initialSlide:G}))};var fl=a(25488),bl=a(47638),vl=a(35076),El=a(73195),Cl=a(47214),yl=a(33747),_l=a(92419),Al=a(39415),wl=a(61657),kl=a(15804),Sl=a(53939),Ll=a(34981),xl=a(30560),Tl=a(99208),Il=a(19504),Nl=a(45887),Rl=a(40409),Bl=a(45271),Ml=a(38251),Ol=a(30397),Pl=a(64706),Hl=a(92960),Vl=a(71854),Dl=a(22560);const Fl=({email:e,autoSaveEmailResult:t,autoSaveBlockResult:a})=>{var l,r,s,d,m,u,p,g;const{__:b,_x:v}=(0,k.s9)(),y=(0,i.wA)(),[_]=(0,Hl.mI)(),[A]=(0,Ga.dS)();let w=(0,c.Zp)();const{owner:S,admin:L}=(0,ul.A)(),x=(0,i.d4)(ga.C1),T=(0,i.d4)(le.yN),{modal:I}=o.A.useApp(),N=(0,E.hN)(),{confirm:R}=I,B=(0,i.Pj)(),H=(0,P.p)(),V=(0,we.rD)(),{projectId:D}=(0,c.g)(),F=(0,Ba.ml)(Pa.AZ.ON_EMAIL_CLONE_ID),[j]=(0,Ol.N)(),z=(0,O.u)(),[Z,q]=(0,n.useState)(!0),[U,G]=(0,Tn.Kh)(),[$]=(0,Ml.ri)(),[W]=(0,Ml.cA)(),[X]=(0,Pl.m)(),{data:K}=(0,c.KC)(),{data:Q,refetch:J}=(0,se.Jz)({parent:null===(l=K.folder)||void 0===l?void 0:l[0]},{skip:!(null!==(r=K.folder)&&void 0!==r&&r[0])}),ee=(0,i.d4)(Re.Wv);(0,n.useEffect)((()=>{ee.switched&&q(!1)}),[ee]);const te=()=>null===e.title?b("New email title"):e.title,ae=(0,Ma.fn)(),ne=(0,Ba._q)(Pa.AZ.ON_EMAIL_INIT_ID);(0,n.useEffect)((()=>{const e=ne((()=>{q(!1)}));return()=>e.dispose()}),[ne]);const re=(e,t=(null===ae||void 0===ae?void 0:ae.getValue())||"")=>$({file:t,title:te(),notification:N}).then((t=>{if(t.error)return N.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.message}}),placement:"bottomRight"}),Promise.reject();{let a=t.data;const n={id:a._id,...a};return e(n,(()=>W({id:n.id,notification:N})))}})),ie=(e=1)=>((e=1)=>re(((t,a)=>({href:(0,Nl.QG)(t.id,void 0,!1,e),dispose:a}))))(e).then((({href:e,dispose:t})=>(0,Oa.SR)(e).finally(t))),de=async e=>{const t=e.querySelectorAll("[em-operation=exportAsPicture]"),a=new Map;for(let l=0,r=t.length;l<r;l++){const e=t[l];e.setAttribute("em-export-id",l),a.set(`[em-export-id='${l}']`,e)}if(a.size)try{const{data:t,dispose:l}=await((e,t,a=2)=>re(((t,n)=>({data:e.map((e=>({selector:e,href:(0,Nl.QG)(t.id,void 0,!1,a,e)}))),dispose:n})),t))([...a.keys()],(0,wt.b6)(e),2);try{const n=t.map((async({href:t,selector:n},l)=>{const r=a.get(n);if("TD"===r.tagName){r.removeAttribute("style");for(const e of[...r.classList])e.startsWith("em-mob-")&&r.classList.remove(e)}const o=await(async(e,t)=>{var a;const n="string"===typeof e?null===(a=await _({url:e}))||void 0===a?void 0:a.data:e;if(t.split(".").length<2){const e=bl.extension(n.type);e&&(t=`${t}.${e}`)}const l=new File([n],t.toLowerCase()),r=await A({user_id:x.id,folder:K.id,file:l});var o,i,s;return r.error||400===(null===(o=r.data.data)||void 0===o?void 0:o.status)?"string"===typeof e?e:"":null===(i=r.data)||void 0===i||null===(s=i[0])||void 0===s?void 0:s.file_url})(t,`${l}-${r.tagName.toLowerCase()}.png`),i=parseInt(getComputedStyle(r).width);let s=new Image(i);s.setAttribute("border","0"),s.setAttribute("style",`display: block; width: 100%; max-width: ${i}px;`),s.alt="",s.src=o;const c=r.querySelector("a");if(c){const t=e.createElement("a");t.setAttribute("target","_blank"),t.setAttribute("href",c.getAttribute("href")),t.appendChild(s),s=t}if("TD"===r.tagName){const e=r.cloneNode();e.removeAttribute("em-operation"),e.appendChild(s),s=e}r.replaceWith(s)}));await Promise.all(n)}catch(n){}finally{l()}}catch(n){}},me=t=>{var a,n;if("0"===(null===K||void 0===K||null===(a=K.limits)||void 0===a?void 0:a.preview_limit)&&D&&(null===x||void 0===x||null===(n=x.counters)||void 0===n?void 0:n.emails_counter)>2&&!t.querySelector(".em-powered-logo")){const a="https://emcdn.ru/emailmaker/powered.png",n="https%3A%2F%2Femailmaker.ru",l=`<a href="${`https://racs.rest/v3/link?app=emailmaker&project=${D}&email=${e.id}&link=${n}`}" target="_blank"><img src="https://racs.rest/v3/pixel/123.png?image=${a}&project=${D}&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>`)}return t},ue=t=>{z({event:"click",action:"export_email",export_type:"HTML"});const a=document.querySelector(".email-preview"),n=getComputedStyle(a);(0,Oa.PJ)(null===ae||void 0===ae?void 0:ae.getValue(),[n.width],e.utm_parameters,(async e=>{await de(e),me(e),await(0,Dl.e)(e,t)})).then((e=>{const t=new Blob([e],{type:"text/html;charset=utf-8"});(0,Tl.saveAs)(t,`${te()}.html`)})).catch((e=>{}))},pe=t=>{z({event:"click",action:"export_email",export_type:"Clipboard"});const a=document.querySelector(".email-preview"),n=getComputedStyle(a);(0,Oa.PJ)(null===ae||void 0===ae?void 0:ae.getValue(),[n.width],e.utm_parameters,(async e=>{await de(e),me(e),await(0,Dl.e)(e,t)})).then((e=>navigator.clipboard.writeText(e).then((function(){(0,ce.wB)(b("The email has been copied to the clipboard."),N)})))).catch((e=>{}))},ge=e=>new Promise(((t,a)=>{fetch(e).then((e=>t(e.blob())),(()=>(e=>{const t=H.get(M.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,a))).catch((()=>{}))})),he=t=>{z({event:"click",action:"export_email",export_type:"ZIP"});const a=document.querySelector(".email-preview"),n=getComputedStyle(a);(0,Oa.Mp)(null===ae||void 0===ae?void 0:ae.getValue(),[n.width],e.utm_parameters,ge,(async e=>{await de(e),me(e),await(0,Dl.e)(e,t)})).then((e=>(0,Tl.saveAs)(e,`${te()}.zip`))).catch((e=>{}))},fe=()=>{e.isNew?(M.EW.isPlugin||w(`/projects/${K.id}/emails`),(0,ce.wB)(b("The draft of the email has been deleted."),N)):be(e,w)},be=(e,t)=>{R({maskClosable:!0,centered:!0,title:v("Are you sure to delete \u201c","email")+e.title+b("\u201d email?"),icon:n.createElement(yt.A,{style:{color:"#ff4d4f"}}),okText:b("Yes"),cancelText:b("No"),onOk:()=>((e,t)=>B.dispatch(Tn.GY.endpoints.deleteEmail.initiate(e.id)).then((a=>{a.error&&(0,ce.p6)(a,N),e.project&&!M.EW.isPlugin&&t(`/projects/${e.project}/emails`),(0,ce.wB)(b("The email \u201c")+a.data.title+v("\u201d was successfully removed.","email"),N)})))(e,t)})},ve=()=>{(0,Vl.QM)("application/zip, message/rfc822, text/html",Ee)},Ee=async e=>{const t=e[0];try{y((0,Re.M7)(!0));const e=await(0,Vl.q2)(t,(async(e,t)=>{try{const a=await(0,Vl.zn)(e,_);if(!a)return"string"===typeof e?e:"";const n=(0,Vl.Qm)(t,a.type,bl),l=new File([a],n.toLowerCase()),r=await A({user_id:x.id,folder:K.id,file:l});return(0,Vl.$K)(r,e)}catch(a){return"string"===typeof e?e:""}}),(e=>{e.title=e.title||(0,Oa.Ay)(t.name)[0]}));ae.setValue(e),y((0,Re.M7)(!1))}catch(a){y((0,Re.M7)(!1));const e=a instanceof Error?a.message:a;N.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:e}}),placement:"bottomRight"})}z({event:"upload_file",action:"import_email"})};let Ce=[];V.emailDropdownMenuClone&&Ce.push({label:b("Clone"),icon:n.createElement(vl.A,{style:{fontSize:"16px"}}),key:"Clone",className:"em-analytics__email-clone",disabled:G.isLoading,onClick:async()=>{if(e.isNew)N.warning({message:b("To create a copy, you need to save the email."),placement:"bottomRight"});else{var t,a,l,r,o;if((await F.fire(e)).some((e=>!1===e)))return;U({title:(0,ce.fq)(e.title),project:null===K||void 0===K?void 0:K.id,description:e.description,html:(0,ce.el)((null===ae||void 0===ae?void 0:ae.getValue())||"",e.title),parent_email:e.parent_email||M.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===(a=e.utm_parameters)||void 0===a?void 0:a.utm_medium,utm_campaign:null===(l=e.utm_parameters)||void 0===l?void 0:l.utm_campaign,utm_term:null===(r=e.utm_parameters)||void 0===r?void 0:r.utm_term,utm_content:null===(o=e.utm_parameters)||void 0===o?void 0:o.utm_content},emailtags:e.emailtags,folder:e.folder}).then((t=>{t.error?N.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.message}}),placement:"bottomRight"}):(w(`/projects/${K.id}/emails/${t.data.id}`),N.success({message:b("The copy of email \u201c")+e.title+b("\u201d was successfully created."),placement:"bottomRight"}),Q&&J())}))}}}),V.emailDropdownMenuImport&&Ce.push({label:v("Import","verb"),icon:n.createElement(El.A,{style:{fontSize:"16px"}}),key:"Import",className:"em-analytics__editor-page__import",onClick:()=>{z({event:"click",action:"import_email"}),ve()}}),(S||L||(null===(s=x.id)||void 0===s?void 0:s.toString())===(null===(d=e.author)||void 0===d?void 0:d.toString()))&&(V.emailDropdownMenuLock&&Ce.push({label:n.createElement(Bl.A,{key:"Lock",element:e}),icon:e.lock?n.createElement(Cl.A,{style:{fontSize:"16px"}}):n.createElement(C.A,{style:{fontSize:"16px"}}),disabled:e.isNew}),V.emailDropdownMenuRemove&&Ce.push({label:b("Remove"),icon:n.createElement(yt.A,{style:{fontSize:"16px"}}),key:"Remove",className:"em-analytics__email-remove",style:{color:"#ff4d4f"},onClick:fe}));const ye=e.isAmp;let _e=[];return V.exportHtmlEnabled&&_e.push({key:"html",label:b("Code"),icon:n.createElement(yl.A,{style:{fontSize:"16px"}}),...ye?{children:[{key:"\u0441ode_html",label:b("AMP"),onClick:()=>ue("amp")},{key:"html_amp",label:b("HTML"),onClick:()=>ue("html")}]}:{onClick:()=>ue()}}),V.exportZipEnabled&&_e.push({key:"zip",label:b("ZIP"),icon:n.createElement(_l.A,{style:{fontSize:"16px"}}),...ye?{children:[{key:"zip_html",label:b("AMP"),onClick:()=>he("amp")},{key:"zip_amp",label:b("HTML"),onClick:()=>he("html")}]}:{onClick:()=>he()}}),V.exportClipboardEnabled&&_e.push({key:"clipboard",label:b("Clipboard"),icon:n.createElement(Al.A,{style:{fontSize:"16px"}}),...ye?{children:[{key:"clipboard_html",label:b("AMP"),onClick:()=>pe("amp")},{key:"clipboard_amp",label:b("HTML"),onClick:()=>pe("html")}]}:{onClick:()=>pe()}}),!M.EW.isPlugin&&V.exportWebHookEnabled&&_e.push({key:"webhook",icon:n.createElement(oe.A,{icon:"WebHook",style:{fontSize:"16px"}}),label:b("WebHook"),onClick:()=>{T.webhook?(z({event:"click",action:"export_email",export_type:"webhook"}),j({url:T.webhook,body:(0,fl.E)(e,B)}).then((e=>{e.error?200===e.error.originalStatus?N.success({message:b("Success!"),description:b("WebHook successfully sent!"),placement:"bottomRight"}):N.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.status}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.error}}),placement:"bottomRight"}):N.success({message:b("Success!"),description:b("WebHook successfully sent!"),placement:"bottomRight"})}))):(y((0,Wa.YF)("webhooksettings")),y((0,Wa.qf)(M.lx.EDIT_PROJECT_MODAL)))}}),V.exportOutlookEnabled&&_e.push({key:"outlook",icon:n.createElement(wl.A,{style:{fontSize:"16px"}}),label:b("Outlook"),onClick:()=>(t=>{z({event:"click",action:"export_email",export_type:"Outlook"});const a=document.querySelector(".email-preview"),n=getComputedStyle(a),l=async(e,t)=>{if("amp"===t){for(const t of e.querySelectorAll(".em-amp-show-disabled"))t.remove();await(0,Il.Sc)(e,{mappedTags:{script:"___script"}})}else if("html"===t){for(const t of e.querySelectorAll(".em-amp-show-only"))t.remove();(0,Il.Km)(e,{mappedTags:{script:"___script"}})}await de(e),me(e)};(0,Oa.pH)(e.title,null===ae||void 0===ae?void 0:ae.getValue(),[n.width,n.height],e.utm_parameters,t?{"text/html;charset=utf-8":e=>l(e,"amp"),"text/x-amp-html;charset=utf-8":e=>l(e,"html")}:l).then((e=>{const t=new Blob([e],{type:"text/html;charset=utf-8"});(0,Tl.saveAs)(t,`${te()}.eml`)})).catch((e=>{}))})(ye)}),V.exportPdfEnabled&&_e.push({key:"pdf",icon:n.createElement(kl.A,{style:{fontSize:"16px"}}),label:b("PDF"),onClick:async()=>{const t=null===e||void 0===e?void 0:e.html;try{const e=await X({htmlContent:t,notification:N}).unwrap(),a=window.URL.createObjectURL(new Blob([e],{type:"application/pdf"})),n=document.createElement("a");n.href=a,n.setAttribute("download",`${te()}.pdf`),document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(a)}catch(a){}}}),V.exportPngEnabled&&_e.push({key:"img",icon:n.createElement(Sl.A,{style:{fontSize:"16px"}}),label:b("PNG"),onClick:()=>ie(1).then(Oa.gZ).then((e=>(0,Tl.saveAs)(e,`${te()}.png`))).then(z({event:"click",action:"export_email",export_type:"Image"}))}),n.createElement(f.A,null,V.emailDropdownMenuEnabled?n.createElement(Et.A,{key:"Actions",arrow:{pointAtCenter:!0},placement:"bottom",menu:{items:Ce}},n.createElement(h.Ay,{type:"default",block:!1,className:"email-page-header__btn email-page-header__btn_extra",onClick:()=>{}},n.createElement(Ll.A,null))):V.emailDropdownMenuImport&&n.createElement(Y.A,{title:v("Import","verb"),placement:"bottom"},n.createElement(h.Ay,{className:"em-analytics__editor-page__import",type:"text",icon:n.createElement(El.A,{style:{fontSize:20}}),onClick:()=>{z({event:"click",action:"import_email"}),ve()}})),V.emailExportEnabled&&n.createElement(Et.A,{key:"Export",arrow:{pointAtCenter:!0},placement:"bottom",menu:{items:_e}},n.createElement(h.Ay,{key:"Export",className:"em-analytics__email-page__export",type:"default",icon:n.createElement(xl.A,null)},b("Export"))),!e.hasOwnProperty("type")&&n.createElement(Nl.Ay,{disabled:Z,autoSaveEmailResult:t,key:"Save",email:e,isEditableRights:S||L||(null===(m=x.id)||void 0===m?void 0:m.toString())===(null===(u=e.author)||void 0===u?void 0:u.toString())}),!!e.hasOwnProperty("type")&&n.createElement(Rl.A,{disabled:Z,key:"Save",block:e,isEditableRights:S||L||(null===(p=x.id)||void 0===p?void 0:p.toString())===(null===(g=e.author)||void 0===g?void 0:g.toString()),autoSaveBlockResult:a}))};var jl=a(54125),zl=a(12741);const{useToken:Zl}=l.A,ql=({email:e,autoSaveEmailResult:t,isCollaborationEditor:a})=>{var l,r;const[o]=u.A.useForm(),{__:s}=(0,k.s9)();let d=(0,i.wA)(),m=(0,c.Zp)();const b=(0,i.d4)(ga.C1),v=(0,Be.QC)(),{data:E}=(0,c.KC)(),{owner:y,admin:_}=(0,ul.A)(),{token:A}=Zl(),S=(0,we.rD)(),L=(0,n.useRef)(),x=(0,n.useRef)(),T=(0,n.useRef)(),I=(0,Ba.ml)(Pa.AZ.ON_PREVIOUSBUTTON_CLICK_ID),N=(0,i.d4)(Re.yy),R=e.hasOwnProperty("type")?M.IE:M.Tm,B=(0,i.d4)(re.qX),O=(0,i.d4)(We.qX),P=R===M.Tm?B:O,H=(0,i.d4)(Re.Fv),[V,D]=(0,n.useState)(!1);(0,n.useEffect)((()=>{const e=!(null===P||void 0===P||!P.type)&&((null===P||void 0===P?void 0:P.type)===M.bV.TEXT||(null===P||void 0===P?void 0:P.type)===M.bV.LINK||P.type===M.bV.BUTTON)&&H&&"bottom"!==N;D(e),d((0,Re.oF)(e))}),[P,N,H]);const F=(0,n.useCallback)((()=>{var t;M.EW.isPlugin?I.fire(e):m(`/projects/${E.id}/emails?page=1&folder=${(null===(t=e.folder)||void 0===t?void 0:t[0])||M.y2}`)}),[m,I,e,E.id]),[j,z]=(0,n.useState)(),Z=(0,Ba._q)(Pa.AZ.WILL_EMAIL_INIT_ID),q=(0,Ba._q)(Pa.AZ.ON_EMAIL_INIT_ID);(0,n.useEffect)((()=>{const e=new ce.jG;return e.addDisposable(Z((()=>z(!1)))),e.addDisposable(q((e=>{z(!0);const t=o.getFieldValue("subject");e.subject&&e.subject!==t&&o.setFieldValue("subject",e.subject);const a=o.getFieldValue("preheader");e.preheader&&e.preheader!==a&&o.setFieldValue("preheader",e.preheader)}))),()=>e.dispose()}),[z,Z,q,o]);const U=(0,n.useCallback)((t=>{const a=t.target.value.trim();e.isNew?d((0,zl.TU)(a)):d((0,re.HO)(a)),v.send(M.Ru.SANDBOX_SUBJECT_UPDATE,{value:a,guid:e.renderGuid})}),[v,e.renderGuid,d,e.isNew]),G=(0,Ba._q)(Pa.AZ.BEFORE_SAVE_EMAIL),$=(0,n.useCallback)((async e=>{var t,a;const n=null===(t=x.current)||void 0===t?void 0:t.input;if(document.activeElement===n){const t=n.value.trim();t!==e.subject&&(e.subject=t,e.isNew?d((0,zl.TU)(t)):d((0,re.HO)(t)),await v.sendAsync(M.Ru.SANDBOX_SUBJECT_UPDATE,{value:t,guid:e.renderGuid}))}const l=null===(a=T.current)||void 0===a?void 0:a.input;if(document.activeElement===l){const t=l.value.trim();t!==e.preheader&&(e.preheader=t,e.isNew?d((0,zl.x3)(t)):d((0,re.pl)(t)),await v.sendAsync(M.Ru.SANDBOX_PREHEADER_UPDATE,{value:t,guid:e.renderGuid}))}}),[v,d]);(0,n.useEffect)((()=>{const e=G($);return()=>e.dispose()}),[G,$]);const W=(0,n.useCallback)((t=>{const a=t.target.value.trim();e.isNew?d((0,zl.x3)(a)):d((0,re.pl)(a)),v.send(M.Ru.SANDBOX_PREHEADER_UPDATE,{value:a,guid:e.renderGuid})}),[v,e.renderGuid,d,e.isNew]),X=e.isNew;(0,n.useEffect)((()=>{const t=new ce.jG;return t.addDisposable(v.addListenerAsync(M.Ru.APPLICATION_SUBJECT_UPDATE,(({guid:t,value:a})=>{t===e.renderGuid&&(o.setFieldValue("subject",a),d(X?(0,zl.TU)(a):(0,re.HO)(a)))}))),t.addDisposable(v.addListenerAsync(M.Ru.APPLICATION_PREHEADER_UPDATE,(({guid:t,value:a})=>{t===e.renderGuid&&(o.setFieldValue("preheader",a),d(X?(0,zl.x3)(a):(0,re.pl)(a)))}))),()=>t.dispose()}),[v,d,X,o,e.renderGuid]),(0,jl.A)(null===e.title?s("New email title"):e.title);const K=n.createElement(n.Fragment,null,n.createElement(f.A,{ref:L,size:10},S.headerArrowBackVisible&&n.createElement(Y.A,{title:s("Back"),placement:"left"},n.createElement(h.Ay,{type:"text",icon:n.createElement(oe.A,{icon:"ArrowLeftOutlined"}),onClick:F,shape:"circle"})),n.createElement("div",null,(S.headerTitleVisible||S.headerPreheaderVisible)&&n.createElement(u.A,{form:o,layout:"vertical",name:"subject_preheader_form",autoComplete:"off",initialValues:{subject:"",preheader:""}},S.headerTitleVisible&&n.createElement("div",{style:{marginTop:j?-3:0}},n.createElement(f.A,{style:{width:"100%"},align:"baseline",size:12},n.createElement("div",{className:"subject_preheader_form__title"},s("Subject")),j?n.createElement(u.A.Item,{name:"subject",style:{marginBottom:0}},n.createElement(g.A,{bordered:!1,ref:x,placeholder:s("Enter subject line here"),className:"ant-page-header-heading-title",onPressEnter:U,onBlur:U})):n.createElement(Ct.A.Input,{active:!0,size:16,style:{width:"40%",marginTop:3}}))),S.headerPreheaderVisible&&n.createElement("div",null,n.createElement(f.A,{style:{width:"100%"},align:"baseline",size:12},n.createElement("div",{className:"subject_preheader_form__title"},s("Preheader")),j?n.createElement(u.A.Item,{name:"preheader",style:{marginBottom:0}},n.createElement(g.A,{ref:T,bordered:!1,placeholder:s("Enter preheader here"),className:"ant-page-header-heading-preheader",onPressEnter:W,onBlur:W})):n.createElement(Ct.A.Input,{active:!0,size:16,style:{width:"80%",marginTop:2}}))))))),Q=n.createElement(n.Fragment,null,S.emailIdShow&&!!e.id&&n.createElement(n.Fragment,null,n.createElement("div",{className:"email-page-header__email-id"},"ID"+e.id),n.createElement(p.A,{type:"vertical"})),n.createElement(hl,{emailElement:e,isCollaborationEditor:a}),S.commandButtonsEnabled&&n.createElement(n.Fragment,null,e.lock?n.createElement(C.A,{key:"Lock",className:w()("lock-icon",{"lock-icon__disabled":!(y||_||(null===(l=b.id)||void 0===l?void 0:l.toString())===(null===(r=e.author)||void 0===r?void 0:r.toString()))}),style:{color:A.colorPrimary,fontSize:"16px"}}):null,n.createElement(Fl,{key:"Buttons",email:e,autoSaveEmailResult:t,isHeaderCodeMenuOpen:V})));return n.createElement(ae.A,{className:"email-pane__header",leftBlock:K,rightBlock:Q,isHeaderCodeMenuOpen:V})};var Ul=a(79253),Gl=a(72762),$l=a(70687);const{Content:Wl}=X.A,Xl=()=>{const{__:e}=(0,k.s9)(),t=(0,Be.QC)(),{emailId:a,projectId:l,preview:r}=(0,c.g)(),s=(0,i.wA)(),d=(0,i.d4)(Re.Fv),m=(0,c.Zp)(),u=(0,i.d4)(Re.cL),p=(0,i.d4)(zl.YG),g=(0,i.d4)(re.Hs),f=(0,i.d4)(Re.oG),[b,v]=(0,_.ok)(),[C]=(0,N.on)(),y=(0,i.d4)(ga.C1),{isSuccess:A,data:w}=(0,N.W5)(),{owner:S}=(0,ul.A)(),L=(0,Ma.fn)(),{modal:x}=o.A.useApp(),T=(0,P.p)(),I=(0,we.rD)(),[R,B]=(0,n.useState)(!1),{confirm:H}=x,[V,D]=(0,n.useState)(!1),F=b.get("template")||!V&&!a&&T.get(M.A9.em_new_email),j=T.get(M.A9.em_template_email);(0,n.useEffect)((()=>{!V&&g.id&&D(!0)}),[D,V,g.id]);const{isSuccess:z,isLoading:Z,isError:q,error:U,data:G}=(0,Tn.sl)(F,{skip:!F||!!a}),{isLoading:$,isSuccess:W,isError:K,error:Y}=(0,Tn.sl)(a,{skip:!a});(0,n.useEffect)((()=>{F&&z&&(s((0,zl.MZ)(G)),D(!0),v({}))}),[F,z,s,G,j,v]),(0,n.useEffect)((()=>(s((0,Re.mi)(!0)),()=>s((0,Re.mi)(!0)))),[s]);const Q=F?G:a?g:p;(0,Gl.f)(Q,void 0===a);const J=function(e){const{emailId:t,projectId:a}=(0,c.g)(),l=(0,E.hN)(),r=(0,we.rD)(),o=(0,i.d4)(Dn.M),s=(0,Ma.fn)(),d=(0,n.useRef)(0),m=(0,i.d4)(In.p1),u=(0,i.d4)(Re.Wm),p=(0,i.d4)(Re.B),g=(0,i.d4)(ga.C1),h=(0,O.u)(),[f,b]=(0,Tn.LX)(),v=(0,i.wA)(),{isSuccess:C,isLoading:y}=(0,Tn.YV)({emailId:t},{skip:!t}),[_,A]=(0,n.useState)(null);(0,n.useEffect)((()=>{if(C&&!y&&null!==m&&void 0!==m&&m.length){const a=m[0];var t;a&&_!==(null===e||void 0===e?void 0:e.id)&&(null!==(t=a.slug)&&void 0!==t&&t.includes("autosave")&&s&&v((0,re.no)(a)),A(null===e||void 0===e?void 0:e.id))}}),[v,m,C,y,null===e||void 0===e?void 0:e.id,_,s,t]);const w=(0,n.useCallback)((({parent:t})=>{if(e){const n={parent:t,title:e.title,author:e.author,project:e.project,html:(null===s||void 0===s?void 0:s.getValue())||"",excerpt:e.date_gmt,subject:e.subject,preheader:e.preheader,common_styles:e.common_styles,parent_email:e.parent_email};f({emailId:e.id,body:n}).then((t=>{if(h({event:"save",action:"auto_save_email",email_id:e.id,project_id:a}),!function(e){return e.hasOwnProperty("data")}(t))throw t.error;var r,o;M.EW.isPlugin||fetch((0,Nl.Wv)(M.Tm,a,null===(r=t.data)||void 0===r?void 0:r.id,null===(o=t.data)||void 0===o?void 0:o.modified),{mode:"no-cors"}),l.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:n,message:""},!0)})).catch((e=>{l.fromError("EMAIL_AUTOSAVE_ERROR",n,e,!0)}))}}),[f,e,s,a,l,h]),[k,S]=(0,n.useState)(!1),L=(0,n.useCallback)((()=>{if((null===m||void 0===m?void 0:m.length)>0){const e=[...m].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===r||void 0===r?void 0:r.autosaveTimeout)||1e4)&&u&&!o&&"Discuss"!==p&&w({parent:e.id})}else u&&!o&&"Discuss"!==p&&w({parent:null})}),[m,o,u,p,w,null===r||void 0===r?void 0:r.autosaveTimeout]);(0,xt.Z)((([e])=>{k&&!e&&(L(),S(!1))}),[k,L,S]);const x=null===g||void 0===g?void 0:g.autosaves,T=(0,n.useCallback)((()=>{o||(clearTimeout(d.current),d.current=setTimeout((()=>S(!0)),(null===r||void 0===r?void 0:r.autosaveTimeout)||1e4))}),[o,null===r||void 0===r?void 0:r.autosaveTimeout,S]);return(0,n.useEffect)((()=>{if(x&&C&&void 0!==(null===e||void 0===e?void 0:e.id)){const t=(0,$l.Og)(s,(()=>{u&&null!==e&&void 0!==e&&e.is_inited&&T()}));return()=>{t.dispose()}}}),[s,T,x,C,null===e||void 0===e?void 0:e.id,u,null===e||void 0===e?void 0:e.is_inited]),(0,xt.Z)((([t,a])=>{x&&C&&void 0!==(null===e||void 0===e?void 0:e.id)&&u&&null!==e&&void 0!==e&&e.is_inited&&(t===(null===e||void 0===e?void 0:e.title)&&a===(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,u,C,T,null===e||void 0===e?void 0:e.id,null===e||void 0===e?void 0:e.is_inited]),(0,n.useEffect)((()=>()=>{clearTimeout(d.current)}),[g,null===e||void 0===e?void 0:e.renderGuid]),(0,n.useEffect)((()=>{clearTimeout(d.current)}),[null===e||void 0===e?void 0:e.modified]),b}(Q),{counters:{emails_counter:ee},subscription:te}=y,ae=(0,n.useCallback)((()=>{s((0,Re.vs)()),s((0,Dn.rI)())}),[s]);(0,n.useEffect)((()=>{r&&!d&&ae()}),[d,r,ae]),(0,n.useEffect)((()=>{s((0,Ul.ff)()),document.body.classList.add("editor"),s((0,Re.PM)(M.Bv))}),[s]);const[ne,le]=(0,n.useState)(!1);(0,n.useEffect)((()=>{!ne&&ee<3&&(C(),le(!0))}),[C,ee,ne]);const oe=F?z:W,ie=F?Z:$,se=F?q:K,ce=F?U:Y,de=(0,Ma.aD)(L),me=(0,n.useCallback)((()=>{de.undo()}),[de]),ue=(0,n.useCallback)((()=>{de.redo()}),[de]),pe=(0,n.useRef)();(0,n.useEffect)((()=>{pe.current!==(null===Q||void 0===Q?void 0:Q.id)&&(de.clear(),pe.current=null===Q||void 0===Q?void 0:Q.id)}),[Q,de]);const ge=(0,n.useCallback)((e=>{(window.navigator.appVersion.indexOf("Mac")&&e.metaKey||e.ctrlKey)&&"KeyZ"===e.code&&(e.preventDefault(),e.shiftKey?ue():me())}),[me,ue]);(0,n.useEffect)((()=>()=>{s((0,Dn.rI)()),s((0,In.qX)())}),[s]),(0,n.useEffect)((()=>{const e=t.addListener(M.Ru.APPLICATION_HAS_AMP,(e=>{s(null!==Q&&void 0!==Q&&Q.id?(0,re.VO)(e):(0,zl.lg)(e))}));return()=>e.dispose()}),[t,s,null===Q||void 0===Q?void 0:Q.id]);const[be,ve]=(0,n.useState)(),Ee=(0,n.useCallback)((e=>{const t=e.data.operation,a=e.data,n=e.data.action,l=document.getElementById("iframe-scroll-top"),r=document.getElementById("iframe-scroll-bottom");if(t===M.Ru.APPLICATION_EBLOCK_ADD&&(ve(a.data),s((0,Re.qf)(M.lx.ADD_NEW_EBLOCK_MODAL))),t===M.Ru.APPLICATION_ACTION&&("undo"===n?me():"redo"===n&&ue()),t===M.Ru.APPLICATION_SCROLL_BLOCK_SHOW){const e=document.getElementById("email_iframe"),t=document.body.getBoundingClientRect().height,a=e.getClientRects()[0];a.top<0&&(l.style.display="block"),a.top+a.height>t&&(r.style.display="block")}t===M.Ru.APPLICATION_SCROLL_BLOCK_HIDE&&(l.style.display="none",r.style.display="none")}),[s,me,ue]);(0,jn.A)(Ee);const Ce=e=>{e.preventDefault(),e.target&&t.send({operation:M.Ru.SANDBOX_DRAG_CANCEL}),document.querySelectorAll(".em-dragging-element").forEach((e=>{e.classList.remove("em-dragging-element")}))};(0,n.useEffect)((()=>(window.addEventListener("drop",Ce),window.addEventListener("dragover",ye),window.addEventListener("dragstart",Ae),window.addEventListener("dragend",_e),window.addEventListener("keydown",ge),window.addEventListener("dragenter dragleave",(e=>{e.preventDefault()})),()=>{window.removeEventListener("drop",Ce),window.removeEventListener("dragover",ye),window.removeEventListener("dragstart",Ae),window.removeEventListener("dragend",_e),window.removeEventListener("keydown",ge),window.removeEventListener("dragenter dragleave",(e=>{e.preventDefault()}))})));const ye=e=>{e.preventDefault();const t=document.getElementById("iframe-scroll-top"),a=document.getElementById("iframe-scroll-bottom"),n=I.sidePanelFloating?document.getElementById("pane-content-wrapper"):document.querySelector(".email-pane__col_preview"),l=document.getElementById("email_iframe"),{height:r,top:o}=l.getBoundingClientRect(),i=n.getBoundingClientRect().height;o>96?"block"===t.style.display&&(t.style.display="none"):"none"!==t.style.display&&""!==t.style.display||(t.style.display="block"),r-i+o<44?"block"===a.style.display&&(a.style.display="none"):"none"===a.style.display&&(a.style.display="block"),e.target===t&&n.scrollBy(0,-15),e.target===a&&n.scrollBy(0,15)},_e=()=>{const e=document.getElementById("iframe-scroll-top"),t=document.getElementById("iframe-scroll-bottom");e&&t&&(e.style.display="none",t.style.display="none"),document.querySelectorAll(".em-dragging-element").forEach((e=>{e.classList.remove("em-dragging-element")}))},Ae=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)},ke=(0,n.useCallback)((()=>{H({title:e("You reached the plan limit"),icon:n.createElement(il.A,null),content:n.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(){m("/billing")},onCancel(){}})}),[m,e,H]),[Se,Le]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{if(A&&w){var e,t;const n=null===w||void 0===w||null===(e=w.find((e=>{var t,a;return(null===(t=e.id)||void 0===t?void 0:t.toString())===(null===te||void 0===te||null===(a=te.ID)||void 0===a?void 0:a.toString())})))||void 0===e||null===(t=e.limits)||void 0===t?void 0:t.emails_limit;n&&ee>=n&&!Se&&!a&&S&&(ke(),Le(!0))}}),[w,A,te,ee,Se,ke,a,S]),(0,n.useEffect)((()=>{const e=t.onInit((()=>{t.send({operation:M.Ru.SANDBOX_LOCK_EDIT,data:!1})}));return()=>e.dispose()}),[t]),n.createElement(X.A,{className:"email-page"},ie&&n.createElement(fe.A,null),se&&ce&&n.createElement(Wl,{style:{paddingTop:"40px"}},n.createElement("div",{className:"container"},n.createElement(he.Ay,{status:ce.status,title:ce.status,subTitle:ce.data.message,extra:n.createElement(h.Ay,{type:"primary",onClick:()=>{m(`/projects/${l}/emails`)}},e("Back To Project"))}))),(!a&&!F&&V||W&&Q)&&!ie&&n.createElement(X.A,{className:"email-pane"},f&&n.createElement("div",{className:"email-pane__loader"},n.createElement(fe.A,{small:!0})),n.createElement(ql,{email:Q,autoSaveEmailResult:J,isCollaborationEditor:R}),n.createElement(el,{emailElement:Q,isSuccess:oe,setIsCollaborationEditor:B})),n.createElement(ol,{isModalVisible:u===M.lx.ADD_NEW_EBLOCK_MODAL,htmlContent:be,projectId:l}))};var Kl=a(39206);const{Paragraph:Yl}=K.A,{useToken:Ql}=l.A,Jl=({block:e,autoSaveBlockResult:t})=>{var a,l,r,s,d,m;const{__:u,_x:p}=(0,k.s9)();let g=(0,i.wA)(),b=(0,c.Zp)();const v=(0,i.d4)(ga.C1),{modal:y}=o.A.useApp(),_=(0,E.hN)(),{confirm:A}=y,{token:S}=Ql(),L=(0,i.d4)(Re.yy),x=e.hasOwnProperty("type")?M.IE:M.Tm,T=(0,i.d4)(re.qX),I=(0,i.d4)(We.qX),N=x===M.Tm?T:I,R=(0,i.d4)(Re.Fv),{data:B}=(0,c.KC)(),{owner:O,admin:P}=(0,ul.A)(),H=(0,i.Pj)(),V=(e,t)=>{A({maskClosable:!0,centered:!0,title:p("Are you sure you want to delete the \u201c","block")+e.title+u("\u201d block?"),icon:n.createElement(yt.A,null),okText:u("Yes"),cancelText:u("No"),onOk:()=>((e,t)=>H.dispatch(Lt.VM.endpoints.deleteBlock.initiate(e.id)).then((a=>{a.error&&_.fromError("BLOCK_REMOVING_ERROR",(0,E.x_)(e),a.error),t(`/projects/${e.project}/blocks`),_.success({id:"BLOCK_REMOVING_SUCCESS",message:u("The block \u201c")+a.data.title+p("\u201d was successfully removed.","block"),data:(0,E.x_)(e)})})))(e,t)})},[D,F]=(0,Lt.pP)(),j=(0,Ma.fn)();let z=[];z.push({label:u("Clone"),icon:n.createElement(vl.A,{style:{fontSize:"16px"}}),key:"Clone",className:"em-analytics__block-clone",disabled:F.isLoading,onClick:()=>{e.isNew?_.warning({id:"COPY_NOT_SAVED",payload:e,message:u("To create a copy, you need to save the block."),placement:"bottomRight"}):D({title:(0,ce.fq)(e.title),blocktags:e.blocktags,project:B.id,subject:e.subject,description:e.description,html:(null===j||void 0===j?void 0:j.getValue())||"",type:e.type?e.type:"Other"}).then((t=>{t.error?_.error({id:"BLOCK_CLONING_ERROR",data:(0,E.x_)(e),innerException:t.error,message:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.message}}),placement:"bottomRight"}):(b(`/projects/${B.id}/blocks/${t.data.id}`),_.success({id:"BLOCK_CLONING_SUCCESS",data:(0,E.x_)(e),message:u("The copy of block \u201c")+e.title+p("\u201d was successfully created.","block"),placement:"bottomRight"}))}))}}),(O||P||(null===(a=v.id)||void 0===a?void 0:a.toString())===(null===(l=e.author)||void 0===l?void 0:l.toString()))&&z.push({label:n.createElement(Bl.A,{key:"Lock",element:e}),icon:e.lock?n.createElement(Cl.A,{style:{fontSize:"16px"}}):n.createElement(C.A,{style:{fontSize:"16px"}}),disabled:e.isNew},{label:u("Remove"),icon:n.createElement(yt.A,{style:{fontSize:"16px"}}),key:"Remove",className:"em-analytics__block-remove",onClick:()=>{e.isNew?(b(`/projects/${B.id}/blocks`),_.success({id:"BLOCK_REMOVING_SUCCESS",message:u("The draft of the block has been deleted."),data:(0,E.x_)(e)})):V(e,b)},style:{color:"#ff4d4f"}}),(0,jl.A)(null===e.title?u("New block title"):e.title);const Z=n.createElement(n.Fragment,null,n.createElement(f.A,{size:10},n.createElement(Y.A,{title:u("To emails"),placement:"left"},n.createElement(h.Ay,{type:"text",icon:n.createElement(J.A,null),onClick:()=>{b(`/projects/${B.id}/blocks`)},shape:"circle"})),n.createElement(Yl,{className:"ant-page-header-heading-title",editable:{triggerType:["text","icon"],icon:n.createElement(_t.A,{className:"email-page-header__icon-edit"}),onChange:t=>{e.isNew?g((0,Kl.qT)(t)):g(Lt.VM.util.updateQueryData("getBlock",e.id,(e=>{Object.assign(e,{title:t})})))}}},null===e.title?u("New block title"):e.title))),q=n.createElement(n.Fragment,null,n.createElement(hl,{emailElement:e}),e.lock?n.createElement(C.A,{key:"Lock",className:w()("lock-icon",{"lock-icon__disabled":!(O||P||(null===(r=v.id)||void 0===r?void 0:r.toString())===(null===(s=e.author)||void 0===s?void 0:s.toString()))}),style:{color:S.colorPrimary,fontSize:"16px"}}):null,n.createElement(Et.A,{key:"Actions",arrow:"true",menu:{items:z}},n.createElement(h.Ay,{className:"block-page-header__btn block-page-header__btn_extra",onClick:()=>{}},n.createElement(Ll.A,null))),n.createElement(Rl.A,{key:"Save",className:"em-analytics__block-save",block:e,isEditableRights:O||P||(null===(d=v.id)||void 0===d?void 0:d.toString())===(null===(m=e.author)||void 0===m?void 0:m.toString()),autoSaveBlockResult:t}));return n.createElement(ae.A,{leftBlock:Z,rightBlock:q,className:"header_blocks",isHeaderCodeMenuOpen:((null===N||void 0===N?void 0:N.type)===M.bV.TEXT||(null===N||void 0===N?void 0:N.type)===M.bV.LINK||N.type===M.bV.BUTTON)&&R&&"bottom"!==L})},{Content:er}=X.A,tr=()=>{const{__:e}=(0,k.s9)(),t=(0,Be.XW)(),{blockId:a,projectId:l}=(0,c.g)(),r=(0,i.wA)();let o=(0,c.Zp)();const s=(0,Ma.fn)(),d=(0,P.p)(),m=(0,i.d4)(We.gm),u=(0,i.d4)(Kl.ah),p=(0,i.d4)(ga.C1),g=(0,i.d4)(Dn.M),f=(0,i.d4)(Re.Wm),b=(0,i.d4)(In.p1),[v]=(0,Lt.yW)(),E=d.get(M.A9.em_new_block),{isSuccess:C,data:y}=(0,Lt.bg)(+E,{skip:!E}),[_,A]=(0,n.useState)(!1);(0,n.useEffect)((()=>{E&&C&&(r((0,Kl.Bp)(y)),A(!0))}),[E,C,r,y]);const{isLoading:w,isSuccess:S,isError:L,error:x}=(0,Lt.bg)(a,{skip:!a}),T=E?C:S,I=S&&null!==m&&void 0!==m&&m.id?m:C&&u,N=(0,n.useRef)(0),{isSuccess:R,isLoading:B}=(0,Lt.J4)({blockId:+a},{skip:!a}),[O,H]=(0,n.useState)(null);(0,n.useEffect)((()=>{if(R&&!B&&null!==b&&void 0!==b&&b.length){var e;const n=b[0];if((null===O||void 0===O?void 0:O.toString())!==(null===(e=I.id)||void 0===e?void 0:e.toString())){var t;if(null!==(t=n.slug)&&void 0!==t&&t.includes("autosave")&&s){var a;const e=null===(a=n.html)||void 0===a?void 0:a.replaceAll("\r\n","\n");r((0,We.DL)(e))}H(I.id)}}}),[r,b,R,B,I,O,s,a]),(e=>{const t=(0,Ma.fn)(),a=(0,Be.QC)(),l=(null===e||void 0===e?void 0:e.html)||"",r=(0,n.useRef)();r.current=e;const o=(0,n.useCallback)((e=>{const t=r.current;if(e===(null===t||void 0===t?void 0:t.renderGuid))return a.sendAsync(M.Ru.SANDBOX_INITED,{guid:t.renderGuid})}),[a]),i=(0,n.useCallback)((e=>{const t=r.current;if(e===(null===t||void 0===t?void 0:t.renderGuid))return a.sendAsync(M.Ru.SANDBOX_INIT_START,{guid:t.renderGuid})}),[a]),s=(0,n.useCallback)((async e=>{const n=r.current;if((null===n||void 0===n?void 0:n.renderGuid)===e){const e=null===l||void 0===l?void 0:l.replaceAll("\r\n","\n");try{(0,$l.po)(t),t.setValue(e)}finally{(0,$l.SF)(t)}const r=t.getValue();await a.sendAsync(M.Ru.SANDBOX_SET_ENTITY,{html:r,guid:null===n||void 0===n?void 0:n.renderGuid})}}),[l,t,a]);(0,xt.Z)((async([t])=>{const a=null===e||void 0===e?void 0:e.renderGuid;a&&a!==t&&(await i(a),await s(a),await o(a))}),[null===e||void 0===e?void 0:e.renderGuid,null===e||void 0===e?void 0:e.id,s])})(I);const V=(0,n.useCallback)((()=>{const e=()=>{v({blockId:null===m||void 0===m?void 0:m.id,body:{title:null===m||void 0===m?void 0:m.title,emailId:null===m||void 0===m?void 0:m.id,project:null===m||void 0===m?void 0:m.project,html:null===s||void 0===s?void 0:s.getValue(),excerpt:null===m||void 0===m?void 0:m.date_gmt}}).then((e=>{})).catch((e=>{}))};if(b&&b.length>0){const t=[...b].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)-Date.parse(null===t||void 0===t?void 0:t.modified))/1e3>30&&f&&!g&&e()}else f&&!g&&e()}),[b,v,m,g,f,s]);(0,n.useEffect)((()=>{m&&null!==p&&void 0!==p&&p.autosaves&&!g&&(clearTimeout(N.current),N.current=setTimeout(V,1e4))}),[m,V,p,g]);const D=(0,Ma.aD)(s),F=(0,n.useCallback)((()=>{D.undo()}),[D]),j=(0,n.useCallback)((()=>{D.redo()}),[D]),z=(0,n.useRef)();(0,n.useEffect)((()=>{z.current!==(null===I||void 0===I?void 0:I.id)&&(D.clear(),z.current=null===I||void 0===I?void 0:I.id)}),[I,D]);const Z=(0,n.useCallback)((e=>{(window.navigator.appVersion.indexOf("Mac")&&e.metaKey||e.ctrlKey)&&"KeyZ"===e.code&&(e.preventDefault(),e.shiftKey?j():F())}),[F,j]);(0,n.useEffect)((()=>(document.body.classList.add("editor"),()=>{r((0,Dn.rI)()),r((0,In.qX)()),r((0,Re.PM)(M.Bv))})),[r]);(0,jn.A)((e=>{const t=e.data.operation,a=e.data.action,n=document.getElementById("iframe-scroll-top"),l=document.getElementById("iframe-scroll-bottom");if(t===M.Ru.APPLICATION_ACTION&&("undo"===a?F():"redo"===a&&j()),t===M.Ru.APPLICATION_SCROLL_BLOCK_SHOW){const e=document.getElementById("iframe-scroll-top"),t=document.getElementById("iframe-scroll-bottom"),a=document.getElementById("email_iframe"),n=document.body.getBoundingClientRect().height,l=a.getClientRects()[0];l.top<0&&(e.style.display="block"),l.top+l.height>n&&(t.style.display="block")}t===M.Ru.APPLICATION_SCROLL_BLOCK_HIDE&&(n.style.display="none",l.style.display="none")}));const q=e=>{e.preventDefault(),e.target&&t({operation:M.Ru.SANDBOX_DRAG_CANCEL})},U=()=>{},G=e=>{e.preventDefault();const t=document.getElementById("iframe-scroll-top"),a=document.getElementById("iframe-scroll-bottom"),n=document.getElementById("pane-content-iframe"),l=document.getElementById("email_iframe"),{height:r,top:o}=l.getBoundingClientRect(),i=document.body.getBoundingClientRect().height;o>1?"block"===t.style.display&&(t.style.display="none"):"none"===t.style.display&&(t.style.display="block"),r-i+o<1?"block"===a.style.display&&(a.style.display="none"):"none"===a.style.display&&(a.style.display="block"),e.target===t&&n.scrollBy(0,-20),e.target===a&&n.scrollBy(0,20)},$=()=>{const e=document.getElementById("iframe-scroll-top"),t=document.getElementById("iframe-scroll-bottom");e&&t&&(e.style.display="none",t.style.display="none")};return(0,n.useEffect)((()=>(window.addEventListener("dragstart",U),window.addEventListener("drop",q),window.addEventListener("dragend",$),window.addEventListener("dragover",G),window.addEventListener("keydown",Z),window.addEventListener("dragenter dragleave",(e=>{e.preventDefault()})),()=>{window.removeEventListener("dragstart",U),window.removeEventListener("drop",q),window.removeEventListener("dragover",G),window.removeEventListener("dragend",$),window.removeEventListener("keydown",Z),window.removeEventListener("dragenter dragleave",(e=>{e.preventDefault()}))}))),n.createElement(X.A,{className:"block-page"},I&&n.createElement(Jl,{block:I}),w&&n.createElement(fe.A,null),L&&x&&n.createElement(X.A,null,n.createElement(er,{style:{paddingTop:"40px"}},n.createElement("div",{className:"container"},n.createElement(he.Ay,{status:x.status,title:x.status,subTitle:x.data.message,extra:n.createElement(h.Ay,{type:"primary",onClick:()=>{o(`/projects/${l}/blocks`)}},e("Back To Project"))})))),(!a&&(!E||_&&u)||S&&m)&&n.createElement(el,{emailElement:I,isSuccess:T}))};var ar=a(14107),nr=a(2565),lr=a(73668),rr=a(49291),or=a(39420);const{useToken:ir}=l.A,sr=()=>{const{emailId:e}=(0,c.g)();let[t]=(0,_.ok)();const[a]=(0,T.UH)(),[l,r]=(0,n.useState)(!1),{token:o}=ir(),i=(0,P.p)();(0,n.useEffect)((()=>{(0,or.FN)(o)}),[o]);const{isLoading:s}=(0,N.CR)("",{skip:!i.get(M.A9.em_token)}),{isLoading:d,isSuccess:m,data:u}=(0,lr.c)({emailId:+e,secret_hash:t.get("key")},{skip:!e||!t.get("key")});(0,n.useEffect)((()=>{document.body.classList.add("editor")}),[]);const p=(0,n.useRef)(),g=p.current||(p.current=(0,Ma.$Z)());return(0,n.useEffect)((()=>{i.get(M.A9.em_token)?a().then((e=>{if(e.error)return i.remove(M.A9.em_token),void r(!1);r(!0)})):r(!1)}),[a,i]),d||s?n.createElement(fe.A,null):m&&n.createElement(Ma.kx.Provider,{value:g},n.createElement(rr.A,{email:u,viewMode:"view",isLoggedIn:l}))};var cr=a(10423),dr=a(20211),mr=a(30751),ur=a(6193),pr=a(47491),gr=a(90925);const{Paragraph:hr}=K.A,{Content:fr}=X.A,br="Early",vr="Monthly",Er=(e,t)=>t?e>100?"#FF4D4F":e<100?"#52c41a":100===e?"rgba(0, 0, 0, 0.25)":void 0:"transparent",Cr=()=>{const{__:e,_n:t}=(0,k.s9)();let a=(0,c.Zp)();const l=(0,i.wA)(),r=(0,i.d4)(ga.C1),o=(0,i.d4)(Wa.cL),[s,d]=(0,ur.Cl)(),[m,p]=(0,pr.IJ)(),[b,v]=(0,gr.O)(),{isSuccess:C,isLoading:y,data:_}=(0,N.W5)(),[A]=(0,N.on)(),S=(0,E.hN)(),[L,x]=(0,n.useState)(!1),[T]=u.A.useForm(),R=(0,P.p)(),[B,O]=(0,n.useState)({discount:null,promocode:null,expiration:null}),{counters:{emails_counter:H,projects_counter:V,users_counter:D,preview_counter:F,payments_counter:j,optimization_counter:z},subscription:Z,subscription_end:q,recurring_payments:U,subscription_id:G,promocode:$,subscription_amount:W,enterprise_users_limit:K,enterprise_price:Q,enterprise_12_price:ee,email:te,name:ne}=r,[le,re]=(0,n.useState)(br);(0,n.useEffect)((()=>{var e,t;(null===Z||void 0===Z||null===(e=Z.post_title)||void 0===e?void 0:e.split(" ").length)>1?re(br):1===(null===Z||void 0===Z||null===(t=Z.post_title)||void 0===t?void 0:t.split(" ").length)&&re(vr)}),[null===Z||void 0===Z?void 0:Z.post_title]);const[oe,ie]=(0,n.useState)([]);(0,n.useEffect)((()=>{ie([3891,le===vr?13719:13720,le===vr?3892:5295,le===vr?3893:5294,le===vr?3894:5296])}),[le]);const[se,de]=(0,n.useState)(null),me=null===se||void 0===se?void 0:se.limits,ue=null===se||void 0===se?void 0:se.title.split(" ")[0];(0,n.useEffect)((()=>{C&&_&&de(_.find((e=>{var t,a;return(null===(t=e.id)||void 0===t?void 0:t.toString())===(null===Z||void 0===Z||null===(a=Z.ID)||void 0===a?void 0:a.toString())})))}),[_,C,Z]),(0,n.useEffect)((()=>{{const e=document.createElement("script");e.src="https://widget.cloudpayments.ru/bundles/cloudpayments.js",e.async=!0,document.body.appendChild(e)}}),[]);const[pe,ge]=(0,n.useState)(""),he=(e,t,a,n)=>{ge(e);const o=R.get(M.A9.em_token);if("Personal"!==t&&"Advanced"!==t&&"Pro"!==t&&!n||"Community"!==ue&&"Free"!==ue)document.body.classList.remove("editor"),l((0,Wa.qf)(M.lx.SWITCH_TO_PLAN_MODAL));else{{const n=new cp.CloudPayments,l={},i=new Date;i.setMonth(i.getMonth()+(le===br?12:1)),i.setDate(i.getDate()-1);const s=`\u041e\u043f\u043b\u0430\u0442\u0430 ${le===br?"\u0433\u043e\u0434\u043e\u0432\u043e\u0439":"\u043c\u0435\u0441\u044f\u0447\u043d\u043e\u0439"} \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 ${t}${le===br?` (${ye(a)}\u20bd\xa0x\xa012)`:""}${B.promocode?" \u043f\u043e\xa0\u043f\u0440\u043e\u043c\u043e\u043a\u043e\u0434\u0443 "+B.promocode:" "}`,c=le===br?12*a:+a,d={Items:[{label:s,price:c,quantity:1,amount:ye(c),vat:0}],calculationPlace:"https://emailmaker.ru",taxationSystem:1,email:r.email,amounts:{electronic:ye(c)}},m={Items:[{label:s,price:c,quantity:1,amount:c,vat:0}],calculationPlace:"https://emailmaker.ru",taxationSystem:1,email:r.email,amounts:{electronic:c}},u={interval:"Month",period:le===br?12:1,customerReceipt:m,PersonalDate:i};l.CloudPayments={CustomerReceipt:d,recurrent:u,subscription:e,token:o,promocode:B.promocode?B.promocode:""},l.CloudPayments.CustomerReceipt.Items[0].amount=c,n.pay("charge",{publicId:"pk_e8c7c303759283dc35cf4ad7b396c",description:s,amount:ye(c),currency:"RUB",accountId:r.email,email:r.email,data:l,promocode:B.promocode||null},{onSuccess:function(e){},onFail:function(e,t){},onComplete:function(e,t){e.success&&setTimeout((()=>A()),3e3)}})}0}},[fe,be]=(0,n.useState)(!1);(0,n.useEffect)((()=>{be(U)}),[U]);(0,n.useEffect)((()=>{const e=setInterval((()=>{A()}),1e4);return()=>clearInterval(e)}),[A]);const ve=n.createElement(f.A,{size:10},n.createElement(h.Ay,{type:"text",icon:n.createElement(J.A,null),onClick:()=>(0,ce.XZ)(a,"/projects"),shape:"circle"}),n.createElement(hr,{className:"ant-page-header-heading-title"},e("Billing"))),Ee=n.createElement(n.Fragment,null),Ce=(0,n.useCallback)((e=>{x(!0),l(I.So.endpoints.checkPromo.initiate({code:e,type:"self"})).then((({data:t})=>400===(null===t||void 0===t?void 0:t.status)?{error:{data:t}}:e?l(I.So.endpoints.getPromoInfo.initiate({code:e})):void 0)).then((e=>{var t;if((e.error||e.data.hasOwnProperty("status")&&200!==(null===(t=e.data)||void 0===t?void 0:t.status))&&(0,ce.p6)(e,S),null!==e&&void 0!==e&&e.data){let t={...e.data};const l=new Date(e.data.expiration),r=new Date;var a,n;if(t.promocode=e.data.promocode.toUpperCase(),l>r)O(t),(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.message)&&(0,ce.wB)(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.message,S)}else B.promocode||O({...B,promocode:""})})).catch((e=>{(0,ce.p6)(e,S)})).finally((()=>{x(!1)}))}),[l,B,S]),ye=e=>{return B.discount&&e?(t=e-e*B.discount/100,"emailmaker"===M.oy?Math.round(t):10*Math.floor(t/10)):e;var t};(0,n.useEffect)((()=>{!+j&&$&&"Free"===ue&&null===B.promocode&&Ce($)}),[Ce,j,$,ue,B.promocode]);const _e=n.createElement(xa.A,{style:{fontSize:48},spin:!0});return n.createElement(X.A,{className:"billing-page"},n.createElement(ae.A,{leftBlock:ve,rightBlock:Ee}),(v.isLoading||v.isSuccess)&&n.createElement("div",{style:{position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--colorBgLayout)",zIndex:10,opacity:.5}},n.createElement(Za.A,{size:"large",indicator:_e})),n.createElement(fr,{className:"billing-page__container"},n.createElement("div",{className:"billing-page__content container"},y&&n.createElement(Ct.A,{active:!0}),me&&n.createElement(n.Fragment,null,n.createElement(on.Ay.Group,{defaultValue:br,value:le,style:{marginBottom:32,marginRight:25},onChange:e=>{re(e.target.value)}},n.createElement(on.Ay.Button,{value:br},e("Bill yearly (-15%)")),n.createElement(on.Ay.Button,{value:vr},e("Bill monthly"))),"Free"===ue&&!+j&&n.createElement(u.A,{form:T,layout:"inline",name:"promo_code_form",autoComplete:"off",initialValues:{promocode:""},onFinish:({promocode:e})=>{T.resetFields(),e&&Ce(e)},className:"billing-page__form"},n.createElement(u.A.Item,{name:"promocode",className:"billing-page__form-input"},n.createElement(g.A,{placeholder:e("Use promocode")})),n.createElement(u.A.Item,{className:"billing-page__form-submit"},n.createElement(h.Ay,{type:"primary",htmlType:"submit"},L?n.createElement(xa.A,null):n.createElement(gn.A,null)))),n.createElement("div",{className:"billing-page__cards-list"},oe.map((a=>{const{title:l,limits:{emails_limit:r,projects_limit:o,users_limit:i},price:s}=null===_||void 0===_?void 0:_.find((e=>{var t;return(null===(t=e.id)||void 0===t?void 0:t.toString())===(null===a||void 0===a?void 0:a.toString())})),c=r&&H>r||o&&V>o||i&&D>i,d=l.split(" ")[0];let m=null,u=null;return K&&Q&&"Enterprise"===l&&(m=!0),K&&ee&&"Enterprise 12"===l&&(u=!0),n.createElement(cr.A,{hoverable:!0,style:{width:240},key:l,"data-name":l},n.createElement("p",{className:"billing-page__card-title"},d),(("Enterprise"!==d||m||u)&&"Free"!==d&&B.discount&&!+j||l===se.title&&!!+W&&+W<+s)&&n.createElement("span",{className:"billing-page__card-price_old"},n.createElement("s",null,"\xa0","Enterprise"!==d?s:m?Q:u,"emailmaker"===M.oy?"$":"\u20bd","\xa0")),n.createElement("p",{className:"billing-page__card-price"},"Enterprise"!==d||m||u?"emailmaker"===M.oy&&"$":"",l===se.title&&"Free"!==se.title&&+W?W:"Enterprise"!==d?ye(s):m?ye(Q):u?ye(ee):e("By request"),("Community"===d||"Free"===d)&&"0","Enterprise"!==d||m||u?"emailmaker"!==M.oy&&"\u20bd":"",n.createElement("span",{className:"billing-page__card-price_sub"},("Personal"===d||"Advanced"===d||"Pro"===d)&&e("/ month"))),n.createElement("ul",{className:"billing-page__card-list"},n.createElement("li",null,"\u2022 ",r||"\u221e"," ",t(" email"," emails",r)),n.createElement("li",null,"\u2022 ",o||"\u221e"," ",t(" project"," projects",o)),n.createElement("li",null,"\u2022"," ","Enterprise"===d&&(m||u)&&K||i||"\u221e"," ",t(" member"," members",i))),n.createElement(Y.A,{className:"billing-page__tooltip",placement:"topLeft",title:"Community"!==ue&&"Free"!==ue||!c?"":e("Switching is not possible due to exceeding the limit")},n.createElement(h.Ay,{className:w()("billing-page__card-button",{"billing-page__card-button_current":l===se.title}),type:l===se.title?"default":"primary",size:"large",onClick:()=>he(l,d,s||m&&Q||u&&ee,m||u),disabled:("Community"===ue||"Free"===ue)&&c,title:"Community"!==ue&&"Free"!==ue||!c?"":e("Switching is not possible due to exceeding the limit")},l===se.title?e("Current plan"):e("Enterprise"!==d||m||u?"Switch to this plan":"Contact us"))))}))),B.promocode&&B.discount&&!+j&&"Free"===ue&&n.createElement("div",{style:{display:"flex",alignItems:"center"}},n.createElement("div",{className:"billing-page__promo-data"},e("Discount with promo code: ")," ",B.promocode),B.description&&n.createElement("div",{style:{marginBottom:"-45px"},dangerouslySetInnerHTML:{__html:B.description}})),"Community"!==ue&&"Free"!==ue&&q&&n.createElement("div",{className:"billing-page__paid-block"},n.createElement("div",{className:"billing-page__paid-data"},e("Paid until: "),q),G&&n.createElement("div",{className:"billing-page__recurring-switch-wrapper"},n.createElement(Le.A,{className:"billing-page__recurring-switch",checked:fe,onChange:(e,t)=>{t.preventDefault(),e?(()=>{const e={sid:G,uid:r.id};m(e).then((e=>{var t,a;e.isSuccess&&200===(null===e||void 0===e||null===(t=e.data)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.status)?(be(!0),A().then((t=>{var a;t.data&&(0,ce.wB)(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.message,S)}))):(be(!1),(0,ce.p6)(e,S))}))})():(()=>{const e={sid:G,uid:r.id};s(e).then((e=>{var t,a;e.isSuccess&&200===(null===e||void 0===e||null===(t=e.data)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.status)?(be(!1),A().then((t=>{var a;t.data&&(0,ce.wB)(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.message,S)}))):(be(!0),(0,ce.p6)(e,S))}))})()},disabled:d.isLoading||d.isFetching||p.isLoading||p.isFetching}),n.createElement("span",{className:"billing-page__recurring-switch-text"},e("Recurring payments")))),n.createElement("p",{className:"billing-page__title"},e("Usage")),n.createElement("div",{className:"billing-page__progress-block"},n.createElement(dr.A,{percent:H/me.emails_limit*100,format:()=>n.createElement("span",{className:"billing-page__progress-block-counts"},`${H} ${e("of")} ${me.emails_limit||"\u221e"} ${t(" email"," emails",me.emails_limit||"\u221e")}`),size:"medium",strokeColor:Er(H/me.emails_limit*100,me.emails_limit)}),n.createElement(dr.A,{percent:V/me.projects_limit*100,format:()=>n.createElement("span",{className:"billing-page__progress-block-counts"},`${V} ${e("of")} ${me.projects_limit||"\u221e"} ${t(" project"," projects",me.projects_limit||"\u221e")}`),size:"medium",strokeColor:Er(V/me.projects_limit*100,me.projects_limit)}),n.createElement(dr.A,{percent:D/("Enterprise"===ue&&K||me.users_limit)*100,format:()=>n.createElement("span",{className:"billing-page__progress-block-counts"},`${D} ${e("of")} ${"Enterprise"===ue&&K||me.users_limit||"\u221e"} ${t(" member"," members",me.users_limit)}`),size:"medium",strokeColor:Er(D/(me.users_limit||"Enterprise"===ue&&K)*100,me.users_limit||"Enterprise"===ue&&K)}),n.createElement(dr.A,{percent:F/me.preview_limit*100,format:()=>n.createElement("span",{className:"billing-page__progress-block-counts"},`${F} ${e("of")} ${me.preview_limit} ${t(" preview"," previews",me.preview_limit)}`),size:"medium",strokeColor:Er(F/me.preview_limit*100,me.preview_limit)}),n.createElement(dr.A,{percent:z/me.optimization_limit*100,format:()=>n.createElement("span",{className:"billing-page__progress-block-counts"},`${z} ${e("of")} ${me.optimization_limit>0?me.optimization_limit:"\u221e"} ${t(" optimisation"," optimisations",me.optimization_limit)}`),size:"medium",strokeColor:Er(z/me.optimization_limit*100,me.optimization_limit)}))))),n.createElement(mr.A,{isModalVisible:o===M.lx.SWITCH_TO_PLAN_MODAL,userEmail:te,subscriptionRequest:pe,userName:ne,currentPlane:null===se||void 0===se?void 0:se.title}))};var yr=a(45840);c.BV.propTypes={};const _r=()=>{const e=(0,i.wA)(),t=(0,P.p)(),a=(0,i.d4)(ga.C1);(0,n.useEffect)((()=>{const t=null===a||void 0===a?void 0:a.code_editor;t&&e((0,ga.ww)(t))}),[a,e]),(0,n.useEffect)((()=>{const a=t.get(M.A9.em_token),n=t.get(M.A9.promocode);a&&n&&(e(I.So.endpoints.checkPromo.initiate({code:n,type:"by_link"})),t.remove(M.A9.promocode))}),[e,t]),(0,n.useEffect)((()=>{if(!M.EW.isPlugin){const a=t.get(M.A9.em_token);if(a){const n=(new Date).getTime()/1e3,l=(0,yr.A)(a),r=l.exp,o=l.iat;r&&r-n<86400?(t.remove(M.A9.em_token),e(N.Q2.util.resetApiState())):n-o>216e4&&t.set(M.A9.em_token,a,{expires:30})}}}),[e,t]);const[l,r]=(0,n.useState)(null),o=(0,i.d4)(Vn.s0),s=o.project?(0,we.Mu)(o):void 0;return(0,n.useEffect)((()=>{if(!M.EW.isPlugin){const n=t.get(M.A9.em_token);null!==a&&void 0!==a&&a.last_used_project?r(null===a||void 0===a?void 0:a.last_used_project):a&&n&&e(St.Nq.endpoints.getProjects.initiate()).then((e=>{var t;r((null===(t=e.data)||void 0===t?void 0:t[0].id)||!1)})).catch((()=>r(!1)))}}),[a,e,t]),(0,E.O5)(),M.EW.isPlugin&&void 0===s?n.createElement(n.Fragment,null):n.createElement(c.BV,null,n.createElement(c.qh,{path:"/auth",element:n.createElement(d.A,null,n.createElement(F,null))}),n.createElement(c.qh,{path:"/yandex-login",element:n.createElement(j,null)}),n.createElement(c.qh,{path:"/recover-password",element:n.createElement(Z.A,null)}),n.createElement(c.qh,{path:"/email/:emailId/raw",element:n.createElement(sr,null)}),n.createElement(c.qh,{path:"/",element:n.createElement(d.A,null,n.createElement(z.A,null))},n.createElement(c.qh,{path:"/billing",element:n.createElement(Cr,null)}),n.createElement(c.qh,{index:!0,element:n.createElement(G.A,{to:s||"projects"})}),n.createElement(c.qh,{path:"emails"},n.createElement(c.qh,{index:!0,element:n.createElement($.A,{lastProjectId:l})}),n.createElement(c.qh,{path:"new",element:n.createElement($.A,{lastProjectId:l})})),n.createElement(c.qh,{path:"projects"},n.createElement(c.qh,{index:!0,element:n.createElement(q.A,null)}),n.createElement(c.qh,{path:":projectId",element:n.createElement(ar.A,null)},n.createElement(c.qh,{path:"emails"},n.createElement(c.qh,{index:!0,element:n.createElement(U.A,null)}),n.createElement(c.qh,{path:":emailId",element:n.createElement(Xl,null)},n.createElement(c.qh,{path:":preview",element:n.createElement(Xl,null)})),n.createElement(c.qh,{path:"new",element:n.createElement(Xl,null)}),n.createElement(c.qh,{path:"new_from"},n.createElement(c.qh,{index:!0,element:n.createElement(q.A,null)}),n.createElement(c.qh,{path:":emailId",element:n.createElement(W.A,null)})),n.createElement(c.qh,{path:"create"},n.createElement(c.qh,{index:!0,element:n.createElement(ue,null)}))),n.createElement(c.qh,{path:"blocks"},n.createElement(c.qh,{index:!0,element:n.createElement(pe.A,null)}),n.createElement(c.qh,{path:":blockId",element:n.createElement(tr,null)}),n.createElement(c.qh,{path:"new",element:n.createElement(tr,null)})),n.createElement(c.qh,{path:"members",element:n.createElement(nr.A,null)}))),n.createElement(c.qh,{path:"*",element:n.createElement(ge.A,null)})))};var Ar=a(25389),wr=a(3326);function kr(e,t){if("object"===typeof e&&e){t(e);for(const a of Object.values(e))kr(a,t)}}const Sr=function(e=".blocks-app"){e=`${e} &`;const t=new WeakSet;return{visit:a=>{if(!t.has(a)){const n={};let l;for(const r of Object.keys(a)){const o=a[r];"object"===typeof o&&o?(o._keyframe&&kr(o,(e=>t.add(e))),n[r]=o):(l||(l=n[e]={},t.add(l)),l[r]=o)}return n}return a}}}(),Lr={hashed:!1,algorithm:l.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}}},xr={hashed:!1,algorithm:l.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 Tr=function(){const e=(0,i.d4)(re.Up),t=(0,i.d4)(ga.C1),a=window.localStorage.getItem(M.V0.em_color_scheme),l=matchMedia(M.F3).matches?M.nd:M.T,[c,d]=(0,n.useState)(a||l),m=(0,we.rD)(),u=(0,i.wA)(),p=(0,or.c8)();(0,n.useEffect)((()=>{const e=M.EW.isPlugin?null===t||void 0===t?void 0:t.theme:a||l;d(e),(0,or.A5)(e),u((0,re.eX)(e===M.nd?`vs-${e}`:M.T)),p()}),[a,e,l,null===t||void 0===t?void 0:t.theme,m.pathEnabled,u,p]);const g=(0,n.useCallback)((e=>{e&&e!==M.IJ?((0,or.Hk)(e),localStorage.setItem(M.V0.em_color_scheme,e)):localStorage.removeItem(M.V0.em_color_scheme)}),[]);(0,n.useEffect)((()=>{const e=null===t||void 0===t?void 0:t.theme,a=localStorage.getItem(M.V0.em_color_scheme);e&&e!==a&&g(e)}),[t,g]);const h=(0,n.useCallback)((()=>{const e=localStorage.getItem(M.V0.em_color_scheme);g(e)}),[g]);(0,n.useEffect)((()=>{h()}),[h]);const f=(0,i.d4)(Vn.RP),[b,v]=(0,n.useState)("light"===c?Lr:xr),[E]=(0,n.useState)(1);(0,n.useEffect)((()=>{const e="light"===c?Lr:xr,t=f[c],a=t?(0,Ar.TJ)(e,t):e;v({...a,token:{...a.token,appZoom:E}})}),[v,c,f,E]);const C=(0,wr.LG)(),y=(0,n.useCallback)((()=>C),[C]);return n.createElement(r.Ay,{theme:b,getPopupContainer:y},n.createElement(s.N7,{transformers:[Sr]},n.createElement(o.A,null,n.createElement(_r,null))))}},26548:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(98173),l=a(73114),r=a(12543);const o=[{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, Roboto, Arial, sans-serif",value:"Helvetica, 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"}],i={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"},s=({value:e,onChange:t,textEditor:s=!1,codeMode:c=!1})=>{const{__:d}=(0,r.s9)(),m=[],u=[],[p,g]=(0,n.useState)(),[h,f]=(0,n.useState)(e),[b,v]=(0,n.useState)(null);(0,n.useEffect)((()=>{b||fetch(`${a.p}static/gfonts.json`).then((e=>{v(e.default)})).catch((e=>{}))}),[b]);const E=null===b||void 0===b?void 0:b.familyMetadataList.filter((e=>e.subsets.includes("cyrillic")&&"Sans Serif"===e.category&&e.popularity<100));null===E||void 0===E||E.forEach((e=>{m.push({label:e.family,value:e.family,children:Object.keys(e.fonts).filter((e=>i[e])).map((e=>({label:i[e],value:i[e]})))})}));const C=null===b||void 0===b?void 0:b.familyMetadataList.filter((e=>e.subsets.includes("cyrillic")&&"Serif"===e.category&&e.popularity<100));return null===C||void 0===C||C.forEach((e=>u.push({label:e.family,value:e.family,children:Object.keys(e.fonts).filter((e=>i[e])).map((e=>({label:i[e],value:i[e]})))}))),(0,n.useEffect)((()=>{if(b){if(s&&e!==h)if(e)if("Sans Serif"===e[1]){var t;g(["Google Fonts","Sans Serif",null===E||void 0===E||null===(t=E.find((t=>(null===t||void 0===t?void 0:t.family.replace(/\s/g,""))===e[2].replace(/\s/g,""))))||void 0===t?void 0:t.family,e[3].replace(/Italic/g," Italic")])}else if("Serif"===e[1]){var a;g(["Google Fonts","Serif",null===C||void 0===C||null===(a=C.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"Safe Fonts"!==e[0]&&void 0!==p||g(e);else g([""]);else void 0===p&&h&&g(e);s||g(e),f(e)}}),[e,b,E,C,p,s,h]),n.createElement(l.A,{allowClear:!1,showSearch:!0,value:p,placement:"bottomRight",options:[{label:d("Safe Fonts"),value:"Safe Fonts",children:o},{label:d("Google Fonts"),value:"Google Fonts",children:[{label:d("Sans Serif"),value:"Sans Serif",children:m},{label:d("Serif"),value:"Serif",children:u}]}],getPopupContainer:e=>e.closest(c?".selected_text_common_form_mobile":s?".email-pane__collapse-wrapper":".email-pane__content-col"),onChange:t})}},54880:(e,t,a)=>{"use strict";a.d(t,{A:()=>H});var n=a(98173),l=a(40120),r=a(8218),o=a(71446),i=a(5553),s=a(38976),c=a(38927),d=a(27499),m=a(49856),u=a(53361),p=a(37969),g=a(13785),h=a(76047),f=a(2604),b=a(85086),v=a(80703),E=a(38256),C=a(6969),y=a(40186),_=a(12543),A=a(32947),w=a(47014),k=a(62093),S=a(8807),L=a(8111),x=a(98845),T=a(5618),I=a(52919),N=a(40277),R=a(86095),B=a(26298),M=a.n(B);const{useToken:O}=l.A,{TextArea:P}=r.A,H=({comments:e,subjectId:t,isLoggedIn:a,projectTitle:l="",emailElementType:B,email:H})=>{const{__:V,_n:D}=(0,_.s9)(),F=(0,I.XW)(),{modal:j}=o.A.useApp(),{error:z,notification:Z}=j,{token:q}=O(),U=(0,n.useRef)(null),[G,$]=(0,n.useState)(""),[W,X]=(0,n.useState)("ADD"),[K,Y]=(0,n.useState)(!1),[Q,J]=(0,n.useState)(null),[ee,te]=(0,n.useState)(null),[ae,ne]=(0,n.useState)(""),[le,re]=(0,n.useState)(""),[oe,ie]=(0,n.useState)(!1),[se,ce]=(0,n.useState)(""),[de,me]=(0,L.z2)(),[ue,pe]=(0,L.HI)(),[ge,he]=(0,L.kk)(),[fe,be]=(0,L.vn)(),[ve]=(0,x.LX)(),[Ee]=(0,T.yW)(),Ce=(0,f.d4)(w.C1),ye=(0,R.fn)(),_e=()=>{const e={title:null===H||void 0===H?void 0:H.title,emailId:null===H||void 0===H?void 0:H.id,project:null===H||void 0===H?void 0:H.project,html:null===ye||void 0===ye?void 0:ye.getValue(),excerpt:null===H||void 0===H?void 0:H.date_gmt};"email"===B?ve({emailId:null===H||void 0===H?void 0:H.id,body:e}).catch((e=>{})):Ee({blockId:null===H||void 0===H?void 0:H.id,body:e}).catch((e=>{}))};function Ae(e){te(Q),ne(""),X("REPLY")}const we=()=>{z({maskClosable:!0,centered:!0,title:V("Please log in"),content:V("To leave comments you must be logged into EmailMaker and added to the project ")+`${l}.`,okText:V("Okay. I'll log in.")})};async function ke(){a?(await ge({commentId:ee,content:le,targetId:se}).unwrap(),X("ADD"),re(""),te(0),ie(!1),Y(!1),ce(""),F({operation:A.Ru.SANDBOX_DISCUSS_RESET})):we()}const Se=e=>{X("ADD"),re(""),te(0),ie(!1),Y(!1),ce(""),F({operation:A.Ru.SANDBOX_DISCUSS_RESET})},Le=async()=>{a?((G||ae)&&await de({subjectId:t,author:Ce.id,parent:"ADD"===W?"0":ee,content:G||ae,author_name:Ce.name,author_email:Ce.email,targetId:se}).then((e=>{e.error&&Z.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"})})),ce(""),X("ADD"),ne(""),$(""),te(0),ie(!1),Y(!1),F({operation:A.Ru.SANDBOX_DISCUSS_RESET})):we()};function xe(){oe?(Y(!1),ie(!1),F({operation:A.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:se})):(Y(!K),F({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 F({operation:A.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:e.data.settings.targetId}),Z.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:V("There's no such comment.")}}),placement:"bottomRight"});t===A.Ru.APPLICATION_DISCUSS_NO_COMMENT&&Z.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:V("There's no such element in the email.")}}),placement:"bottomRight"})}));const Te=e=>{F({operation:A.Ru.SANDBOX_DISCUSS_GET_TARGET,value:e})},Ie=e=>(null===e||void 0===e||e.sort(((e,t)=>e.date>t.date?1:-1)),n.createElement(n.Fragment,null,e&&!!e.length&&n.createElement(i.A,{className:"comment-list",itemLayout:"horizontal",dataSource:e,renderItem:e=>n.createElement(n.Fragment,null,n.createElement("li",{id:e.id},n.createElement(n.Fragment,null,"deleted"===e.status&&e.clildren&&n.createElement(h.A,{className:"deletedComment",content:n.createElement(s.A,{description:V("Comment was removed."),type:"info"}),children:Ie(e.children)}),"deleted"!==e.status&&n.createElement(n.Fragment,null,n.createElement(h.A,{author_id:e.author_id,author:e.author_name,avatar:e.author_avatar_urls&&e.author_avatar_urls[48]||"",className:M()(e.target_id&&"targetted-comment-item",(!e.author_avatar_urls||!e.author_avatar_urls[48])&&"comment-item-noavatar"),content:n.createElement(c.A,{key:"commenMenu",placement:"left",onOpenChange:()=>J(e.id),menu:{items:e.author===Ce.id?Be:Me},overlayStyle:{minWidth:"auto",paddingRight:6}},n.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}})),datetime:n.createElement(n.Fragment,null,n.createElement("span",{dangerouslySetInnerHTML:{__html:e.date&&(0,N.Yq)((0,N.Cl)(e.date),D,!0)}}),e.target_id&&n.createElement("span",{className:"comment-icon-target","target-id":e.target_id,onClick:()=>Te(e.target_id)},n.createElement(b.A,{style:{color:q.colorInfo,top:-2,position:"relative"}}))),children:n.createElement(n.Fragment,null,"REPLY"===W&&ee===e.id&&Re,"EDIT"===W&&ee===e.id&&Ne,Ie(e.children))})))))}))),Ne=n.createElement(d.A,{onFinish:ke,className:"commentForm"},n.createElement(d.A.Item,{style:{marginBottom:10}},n.createElement(P,{className:"textarea-reply",value:le,onChange:e=>re(e.target.value),rows:4,placeholder:V("Editing comments"),onKeyDown:e=>"Escape"===e.key&&Se(),onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&ke(),ref:U})),n.createElement(d.A.Item,{className:"buttons"},n.createElement(m.A,null,oe?n.createElement(u.A,{title:V("Are you sure?"),okText:V("Yes"),cancelText:V("No"),onConfirm:function(e){fe(ee),ie(!1),ce(""),F({operation:A.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:se})}},n.createElement(p.Ay,{loading:be.isLoading,type:K||oe&&"EDIT"===W&&""!==se?"primary":"default",className:"button-target "+(K&&!oe?"button-target_choose":""),style:oe&&"EDIT"===W&&""!==se?{background:q.colorInfo}:{}},n.createElement(b.A,{className:"icon-target"}))):n.createElement(p.Ay,{onClick:xe,loading:be.isLoading,type:K||oe&&"EDIT"===W&&""!==se?"primary":"default",className:"button-target "+(K&&!oe?"button-target_choose":""),style:oe&&"EDIT"===W&&""!==se?{background:q.colorInfo}:{}},n.createElement(b.A,{className:"icon-target"})),n.createElement(p.Ay,{className:"button-reply",type:"primary",loading:he.isLoading,htmlType:"submit"},V("Save")," ",n.createElement(v.A,null)),n.createElement(p.Ay,{onClick:Se,className:"button-reply"},V("Cancel"))))),Re=n.createElement(d.A,{name:"reply",className:"commentForm",onFinish:Le},n.createElement(d.A.Item,{style:{marginBottom:10}},n.createElement(P,{className:"textarea-reply",value:ae,onChange:e=>ne(e.target.value),rows:4,placeholder:V("Reply to the comment"),onKeyDown:e=>"Escape"===e.key&&Se(),onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&Le(),ref:U})),n.createElement(d.A.Item,{hidden:!0,name:"targetId"},n.createElement(r.A,{type:"hidden"})),n.createElement(d.A.Item,{className:"buttons"},n.createElement(m.A,null,n.createElement(g.A,{placement:"top",title:V("Add a note"),overlayStyle:{maxWidth:"150px"}},n.createElement(p.Ay,{onClick:xe,type:K||oe&&"REPLY"===W&&""!==se?"primary":"default",className:"button-target "+(K&&!oe?"button-target_choose":""),style:oe&&"REPLY"===W&&""!==se?{background:q.colorInfo}:{}},n.createElement(b.A,{className:"icon-target"}))),n.createElement(p.Ay,{className:"button-reply",type:"primary",loading:"REPLY"===W&&me.isLoading,htmlType:"submit"},V("Reply")," ",n.createElement(S.A,{icon:"SendOutlined"})),n.createElement(p.Ay,{onClick:Se,className:"button-reply",ghost:!0,type:"primary"},V("Cancel")))));(0,n.useEffect)((()=>{"REPLY"===W&&U.current.focus({cursor:"start"}),"EDIT"===W&&U.current.focus({cursor:"end"})}),[W]);let Be=[];Be.push({key:"Reply to comment",icon:n.createElement(E.A,{style:{fontSize:"16px"}}),label:V("Reply"),onClick:Ae},{key:"Edit comment",icon:n.createElement(C.A,{style:{fontSize:"16px"}}),label:V("Edit"),onClick:function(t){var a,n,l,r,o;te(Q),ie(Boolean(null===(a=e.find((e=>{var t;return(null===(t=e.id)||void 0===t?void 0:t.toString())===Q})))||void 0===a||null===(n=a.target_id)||void 0===n?void 0:n.toString())),re(null===(l=e.find((e=>{var t;return(null===(t=e.id)||void 0===t?void 0:t.toString())===Q})))||void 0===l||null===(r=l.content)||void 0===r||null===(o=r.slice(3,-5))||void 0===o?void 0:o.toString()),X("EDIT")}},{key:"Delete comment",icon:n.createElement(y.A,{style:{fontSize:"16px"}}),label:V("Delete"),style:{color:q.colorError},onClick:function(){var t,a;te(Q),e.filter((e=>e.parent===Q)).length?ge({commentId:Q,status:"deleted"}).unwrap():ue(Q),(null===(t=document.querySelector('.discuss-main li[id="'+Q+'"] .comment-icon-target'))||void 0===t?void 0:t.getAttribute("target-id"))&&F({operation:A.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:null===(a=document.querySelector('.discuss-main li[id="'+Q+'"] .comment-icon-target'))||void 0===a?void 0:a.getAttribute("target-id")}),_e(),ce("")}});let Me=[];return Me.push({key:"Reply to comment",icon:n.createElement(E.A,{style:{fontSize:"16px"}}),label:V("Reply"),onClick:Ae}),n.createElement("div",{className:"discuss-main"},e.length>0&&n.createElement(i.A,{className:"comment-list",itemLayout:"horizontal",dataSource:function(e){let t=JSON.parse(JSON.stringify(e));if(!t||!t.length)return[];let a=[],n=new Map;for(let l=0,r=t.length;l<r;++l){let e=t[l],r=n.get(e.id);if(r&&!Array.isArray(r)||(r&&(e.children=r),n.set(e.id,e)),"0"===String(e.parent))a.push(e);else{let t=n.get(e.parent);if(t){(Array.isArray(t)?t:t.children=t.children||[]).push(e)}else n.set(e.parent,[e])}}return a.forEach((e=>{"deleted"!==e.status||e.children||!pe.isUninitialized&&!pe.isSuccess||ue(e.id).unwrap().catch((e=>{}))})),a}(e),renderItem:e=>n.createElement("li",{id:e.id},"deleted"===e.comment_status&&n.createElement(h.A,{className:"deletedComment",content:n.createElement(s.A,{description:V("Comment was removed."),type:"info"}),children:Ie(e.children)}),"deleted"!==e.comment_status&&n.createElement(n.Fragment,null,n.createElement(h.A,{author_id:e.author_id,author:e.author_name,avatar:e.author_avatar_urls&&e.author_avatar_urls[48]||"",className:M()(e.target_id&&"targetted-comment-item",(!e.author_avatar_urls||!e.author_avatar_urls[48])&&"comment-item-noavatar"),content:n.createElement(c.A,{key:"commenMenu",placement:"left",destroyPopupOnHide:!0,onOpenChange:()=>J(e.id),menu:{items:e.author===Ce.id?Be:Me},overlayStyle:{minWidth:"auto"}},n.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}})),datetime:n.createElement(n.Fragment,null,n.createElement("span",{dangerouslySetInnerHTML:{__html:e.date&&(0,N.Yq)((0,N.Cl)(e.date),D,!0)}}),e.target_id&&n.createElement("span",{className:"comment-icon-target","target-id":e.target_id,onClick:()=>Te(e.target_id)},n.createElement(b.A,{style:{color:q.colorInfo,top:-2,position:"relative"}}))),children:n.createElement(n.Fragment,null,"REPLY"===W&&ee===e.id&&Re,"EDIT"===W&&ee===e.id&&Ne,Ie(e.children))})))}),n.createElement(d.A,{onFinish:Le,className:"ADD"===W?"addMode":"replyEditMode"},n.createElement(d.A.Item,{style:{marginBottom:10}},n.createElement(P,{value:G,onChange:e=>$(e.target.value),rows:4,placeholder:V("Leave your comment"),className:"textarea-comment",onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&Le()})),n.createElement(d.A.Item,null,n.createElement(g.A,{placement:"top",title:V("Add a note"),overlayStyle:{maxWidth:"150px"}},n.createElement(p.Ay,{onClick:xe,type:K||oe&&"ADD"===W&&""!==se?"primary":"default",className:"button-target "+(K&&!oe?"button-target_choose":""),style:oe&&"ADD"===W&&""!==se?{background:q.colorInfo}:{}},n.createElement(b.A,{className:"icon-target"}))),n.createElement(p.Ay,{className:"button-add",type:"primary",loading:"ADD"===W&&me.isLoading,htmlType:"submit"},V("Send")," ",n.createElement(S.A,{icon:"SendOutlined"})))))}},80877:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(98173),l=a(42490);const r=n.forwardRef(((e,t)=>{const[a,r]=(0,n.useState)(!1),[o,i]=(0,n.useState)(0),[s,c]=(0,n.useState)(e.value||e.defaultValue),[d,m]=(0,n.useState)(e.value||e.defaultValue),u=()=>r(!1),p=(0,n.useCallback)((t=>{if(a){const a=t.clientX-o;let n=(s||0)+a*e.dragspeed;n=Math.max(0,Math.round(n)),e.max&&(n=Math.min(n,e.max)),m(n),e.onChange&&e.onChange(n)}}),[a,e,s,o]);return(0,n.useEffect)((()=>{e.value||0===e.value?m(e.value):e.defaultValue||0===e.defaultValue?m(e.defaultValue):m(null)}),[e.value,e.defaultValue]),(0,n.useEffect)((()=>(document.addEventListener("mouseup",u),document.addEventListener("mousemove",p),()=>{document.removeEventListener("mouseup",u),document.removeEventListener("mousemove",p)})),[a,o,s,p]),n.createElement("div",{onMouseDown:e=>{var t,a;e.target.hasAttribute("class")&&null!==(t=e.target)&&void 0!==t&&null!==(a=t.className)&&void 0!==a&&a.includes("ant-input-number-affix-wrapper")&&(r(!0),i(e.clientX),c(d))}},n.createElement(l.A,Object.assign({},e,{ref:t,value:d,className:"input-draggable"})),a&&n.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",cursor:"ew-resize"},onMouseUp:u}))}));r.defaultProps={dragspeed:1};const o=r},99460:(e,t,a)=>{"use strict";a.d(t,{A:()=>R});var n=a(98173),l=a(2604),r=a(49823),o=a(27499),i=a(201),s=a(66964),c=a(8218),d=a(29123),m=a(48753),u=a(37969),p=a(93511),g=a(64909),h=a(352),f=a(5457),b=a(94780),v=a(76762),E=a(58316),C=a(12543),y=a(23424),_=a(47014),A=a(1047),w=a(13216),k=a(80877),S=a(40277),L=a(39420),x=a(52919),T=a(32947);const{Option:I}=r.A,N="profile",R=({isModalVisible:e})=>{const{__:t}=(0,C.s9)(),a=(0,l.d4)(_.C1),R=(0,l.d4)(_.yf),B=(0,g.hN)(),M=(0,x.XW)(),O=(0,l.wA)(),[P]=o.A.useForm(),[H,V]=(0,w.b9)(),[D,F]=(0,w.hZ)(),[j,z]=(0,n.useState)([]),[Z,q]=(0,n.useState)([]),[U,G]=(0,n.useState)(N),[$,W]=(0,n.useState)({currentPassword:!1,newPassword:!1,confirmPassword:!1}),[X,K]=(0,n.useState)((()=>a.locale)),Y=(0,n.useRef)(null),Q=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,n.useEffect)((()=>{if(P&&e){G(N),D(void 0,!0);const e=a.code_editor;K(a.locale),P.setFieldsValue({firstName:a.first_name,lastName:a.last_name,email:a.email,theme:a.theme,currentPassword:"",newPassword:"",confirmPassword:"",autosaves:Boolean(a.autosaves),hideMergetags:Boolean(a.hide_mergetags),language:a.locale,newsLetterConsent:Boolean(a.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)}})}}),[a,P,e,D,K]),(0,n.useEffect)((()=>{if(P&&e){if(F.isSuccess){var t,a,n,l;let e=null===(t=(0,S.EU)(R,["acf","theme"]))||void 0===t||null===(a=t.items)||void 0===a?void 0:a.enum;const r=null===(n=(0,S.EU)(R,["acf","code_editor","font_family"]))||void 0===n||null===(l=n.items)||void 0===l?void 0:l.enum;z((0,S.d_)(e)),q((0,S.d_)(r))}F.isError&&(0,S.p6)(F,B)}}),[F,P,e,R,B]);const J=()=>{const e=window.localStorage.getItem(T.V0.em_color_scheme),t=matchMedia(T.F3).matches?T.nd:T.T;M({operation:T.Ru.UPDATE_PREVIEW,theme:e||t}),P.validateFields().then((e=>{const t=e.codeEditor;e.currentPassword&&e.newPassword?H({password:e.newPassword,old_password:e.currentPassword}):H({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,n.useEffect)((()=>{V.isError&&(0,S.p6)(V,B)}),[V,B]),(0,n.useEffect)((()=>{V.isSuccess&&((0,S.wB)(t("Your profile was successfully updated."),B),O((0,y.Oo)()))}),[O,V,t,B]);const[ee,te]=(0,n.useState)("");(0,n.useEffect)((()=>{const t=window.localStorage.getItem(T.V0.em_color_scheme);e&&(P.setFieldsValue({theme:null!==t?t:T.IJ}),te(null!==t?t:T.IJ))}),[P,e]);const ae=(0,n.useCallback)((e=>{let t;if((0,L.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;O((0,A.eX)(t===T.nd?`vs-${t}`:T.T)),(0,L.A5)(t)}),[O]),ne=(0,n.useCallback)((()=>{ee!==P.getFieldValue("theme")&&ae(ee),O((0,_.ww)(a.code_editor)),O((0,_.ko)(X)),O((0,y.Oo)())}),[a.code_editor,O,P,ee,ae,X]);let le=[{label:n.createElement(n.Fragment,null,n.createElement(h.A,null),t("Profile")),key:N,className:"em-analytics__profile-user",children:n.createElement(n.Fragment,null,n.createElement(i.A,{gutter:16},n.createElement(s.A,{span:12}," ",n.createElement(o.A.Item,{label:t("First name"),name:"firstName"},n.createElement(c.A,{placeholder:t("Enter your first name")}))),n.createElement(s.A,{span:12},n.createElement(o.A.Item,{label:t("Last name"),name:"lastName"},n.createElement(c.A,{placeholder:t("Enter your last name")})))),n.createElement(i.A,{gutter:16},n.createElement(s.A,{span:12},n.createElement(o.A.Item,{label:t("Email"),name:"email"},n.createElement(c.A,{disabled:!0,placeholder:t("Enter your email")}))),n.createElement(s.A,{span:12},n.createElement(o.A.Item,{label:t("Theme"),name:"theme"},n.createElement(r.A,{placeholder:t("Select a theme")},j.map((e=>{let a="";switch(e.value){case"light":a=t("Light");break;case"dark":a=t("Dark");break;default:a=t("System")}return n.createElement(I,{key:e.value,value:e.value},a)})))))),n.createElement(i.A,{gutter:16},n.createElement(s.A,{span:12},n.createElement(o.A.Item,{label:t("Newsletter Subscription"),valuePropName:"checked",name:["newsLetterConsent"]},n.createElement(d.A,null))),n.createElement(s.A,{span:12},n.createElement(o.A.Item,{label:t("Autosave in editor"),valuePropName:"checked",name:["autosaves"]},n.createElement(d.A,null)))))},{label:n.createElement(n.Fragment,null,n.createElement(f.A,null),t("Code editor")),key:"editor",className:"account-settings-codeiditor-tab-content em-analytics__profile-code-editor",children:n.createElement(n.Fragment,null,n.createElement(i.A,{gutter:16},n.createElement(s.A,{span:8},n.createElement(o.A.Item,{label:t("Font size"),name:["codeEditor","fontSize"]},n.createElement(k.A,{min:6,max:100}))),n.createElement(s.A,{span:8},n.createElement(o.A.Item,{label:t("Tab size"),name:["codeEditor","tabSize"]},n.createElement(k.A,{min:1,max:10}))),n.createElement(s.A,{span:8},n.createElement(o.A.Item,{label:t("Font family"),name:["codeEditor","fontFamily"]},n.createElement(r.A,{placeholder:t("Select a font family")},Z.map((e=>n.createElement(I,{key:e.value,value:e.value},e.label))))))),n.createElement(i.A,{gutter:16},n.createElement(s.A,{span:8},n.createElement(o.A.Item,{label:t("Line wrap"),valuePropName:"checked",name:["codeEditor","wordWrap"],tooltip:{title:Q,icon:n.createElement(b.A,null)}},n.createElement(d.A,null))),n.createElement(s.A,{span:8},n.createElement(o.A.Item,{label:t("Minimap"),valuePropName:"checked",name:["codeEditor","minimap"],tooltip:{title:t("Display the minimap."),icon:n.createElement(b.A,null)}},n.createElement(d.A,null))),n.createElement(s.A,{span:8},n.createElement(o.A.Item,{label:t("Insert spaces"),valuePropName:"checked",name:["codeEditor","insertSpaces"],tooltip:{title:t("Prefer spaces over tabs."),icon:n.createElement(b.A,null)}},n.createElement(d.A,null)))))},{label:n.createElement(n.Fragment,null,n.createElement(v.A,null),t("Security")),key:"security",className:"account-settings-security-tab-content em-analytics__profile-code-editor",children:n.createElement(n.Fragment,null,n.createElement(i.A,{gutter:16},n.createElement(s.A,{span:12},n.createElement(o.A.Item,{label:t("Current password"),name:"currentPassword"},n.createElement(c.A.Password,{readOnly:!$.currentPassword,onFocus:()=>W((e=>({...e,currentPassword:!0}))),ref:Y,placeholder:t("Enter your current password")})))),n.createElement(i.A,{gutter:16},n.createElement(s.A,{span:12},n.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(a,n){if("security"===U){return e("currentPassword")?n.length>=8&&/[0-9]/.test(n)&&/[a-z]/.test(n)&&/[A-Z]/.test(n)&&/\W+|_/g.test(n)?Promise.resolve():Promise.reject(new Error(t("The password is too simple."))):Promise.reject(new Error("Enter your current password"))}return Promise.resolve()}})]},n.createElement(c.A.Password,{readOnly:!$.newPassword,onFocus:()=>W((e=>({...e,newPassword:!0}))),placeholder:t("Enter your new password")}))),n.createElement(s.A,{span:12},n.createElement(o.A.Item,{label:t("Confirmation"),name:"confirmPassword",validateTrigger:["onSubmit"],rules:[{required:"security"===U,message:t("Repeat the new password")},({getFieldValue:e})=>({validator:(a,n)=>n&&e("newPassword")!==n?Promise.reject(new Error(t("The two passwords that you entered do not match!"))):Promise.resolve()})]},n.createElement(c.A.Password,{readOnly:!$.confirmPassword,onFocus:()=>W((e=>({...e,confirmPassword:!0}))),placeholder:t("Repeat the new password")})))))}];return n.createElement(m.A,{width:572,className:"account-settings blocks-modal",title:n.createElement("div",null,n.createElement(E.A,null)," ",t("Account settings")),open:e,onOk:J,onCancel:ne,centered:!0,footer:[n.createElement(u.Ay,{key:"Update",size:"large",className:"em-analytics__profile-save",type:"primary",loading:V.isLoading,onClick:J},t("Update"))]},n.createElement(o.A,{form:P,layout:"vertical",name:"edit_profile_form",onFinish:J,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&&ae(e.theme);const t=e.codeEditor;e.language&&O((0,_.ko)(e.language)),e.codeEditor&&O((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"},n.createElement(p.A,{activeKey:U,onChange:e=>G(e),items:le})))}},63837:(e,t,a)=>{"use strict";a.d(t,{A:()=>T});var n=a(98173),l=a(27499),r=a(201),o=a(66964),i=a(8218),s=a(38),c=a(48753),d=a(37969),m=a(93511),u=a(64909),p=a(2604),g=a(12543),h=a(12910),f=a(6302),b=a(67756),v=a(62041),E=a(1549),C=a(97032),y=a(23424),_=a(84572),A=a(32947),w=a(40277);const k="mainsettings",S="ftpsettings",L="webhooksettings",x=({isModalVisible:e,selectedProject:t=null})=>{const{__:a}=(0,g.s9)(),x=(0,p.wA)(),[T]=l.A.useForm(),I=(0,n.useRef)(null),N=(0,n.useRef)(null),R=(0,n.useRef)(null),B=(0,p.d4)(_.yN),M=(0,p.d4)(y.gU),O=(0,u.hN)(),P=(0,p.d4)(y.cL),[H,V]=(0,n.useState)(k),[D,F]=(0,n.useState)(!1),j=t||B,z=[S,k,L].includes(M),[Z,q]=(0,C.OD)();(0,n.useEffect)((()=>{if(P===A.lx.EDIT_PROJECT_MODAL){const e={mainsettings:I,ftpsettings:N,webhooksettings:R};setTimeout((()=>{var t;return null===(t=e[H].current)||void 0===t?void 0:t.focus({cursor:"end"})}),200)}}),[P,H]),(0,n.useEffect)((()=>{z&&V(M)}),[M,z,V,x]);let U=[{label:n.createElement(n.Fragment,null,n.createElement(h.A,null),a("Main settings")),key:k,className:"em-analytics__mainsettings-project",children:n.createElement(n.Fragment,null,n.createElement(r.A,{gutter:24},n.createElement(o.A,{span:24},n.createElement(l.A.Item,{label:a("Project name"),name:"name",extra:a("This can be\xa0the name of\xa0your company, department, website, project, marketing campaign, or\xa0other activity."),rules:[{required:!0,message:a("Please type the project name.")}]},n.createElement(i.A,{ref:I,placeholder:a("Type the project name"),style:{marginBottom:5}})))))},{label:n.createElement(n.Fragment,null,n.createElement(f.A,null),a("FTP settings")),key:S,className:"em-analytics__ftpsettings-project",children:n.createElement(n.Fragment,null,n.createElement(r.A,{gutter:24},n.createElement(o.A,{span:12},n.createElement(l.A.Item,{label:a("Host"),name:["ftpSettings","host"]},n.createElement(i.A,{ref:N,placeholder:a("Type the FTP host"),disabled:D}))),n.createElement(o.A,{span:12},n.createElement(l.A.Item,{label:a("Port"),name:["ftpSettings","port"]},n.createElement(i.A,{placeholder:a("Type the FTP port"),disabled:D})))),n.createElement(r.A,{gutter:24},n.createElement(o.A,{span:12},n.createElement(l.A.Item,{label:a("Directory"),name:["ftpSettings","directory"]},n.createElement(i.A,{placeholder:a("Type the file directory"),disabled:D}))),n.createElement(o.A,{span:12},n.createElement(l.A.Item,{label:a("URL catalog"),name:["ftpSettings","domain"]},n.createElement(i.A,{placeholder:a("Type the URL catalog"),disabled:D})))),n.createElement(r.A,{gutter:24},n.createElement(o.A,{span:12},n.createElement(l.A.Item,{label:a("Login"),name:["ftpSettings","login"]},n.createElement(i.A,{placeholder:a("Type the FTP login"),disabled:D}))),n.createElement(o.A,{span:12},n.createElement(l.A.Item,{label:a("Password"),name:["ftpSettings","password"]},n.createElement(i.A.Password,{placeholder:a("Type the FTP password"),disabled:D,iconRender:e=>e?n.createElement(b.A,null):n.createElement(v.A,null)})))),n.createElement(r.A,{gutter:24},n.createElement(o.A,{span:24},n.createElement(l.A.Item,{noStyle:!0},n.createElement(s.A,{checked:D,onChange:e=>F(Boolean(e.target.checked))},a("Use default CDN"))))))},{label:n.createElement(n.Fragment,null,n.createElement(h.A,null),a("WebHook settings")),key:L,className:"em-analytics__mainsettings-project",children:n.createElement(n.Fragment,null,n.createElement(r.A,{gutter:24},n.createElement(o.A,{span:24},n.createElement(l.A.Item,{label:a("WebHook settings"),name:"webhook",extra:a("Before exporting the project you must fill in the url where the webHook request will be sent to"),rules:[{type:"url",message:a("Please enter correct url.")},z&&{required:!0,message:a("Please type the webhook url.")}]},n.createElement(i.A,{ref:R,placeholder:a("Type the project webHook"),style:{marginBottom:5}})))))}];(0,n.useEffect)((()=>{if(e&&j){const e=j.ftp_settings;F(e.use_default_cdn),T.setFieldsValue({name:j.title,webhook:j.webhook||"",ftpSettings:{host:e.host||"",port:e.port||"",directory:e.directory||"",domain:e.domain||"",login:e.login||"",password:e.password||""}})}}),[T,j,e]);const G=()=>{T.validateFields().then((e=>{const t=e.ftpSettings;j&&Z({projectId:j.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:D}:null}).then((({data:e,error:t})=>{e?e.title!==j.title?O.success({message:a("The project \u201c")+j.title+a("\u201d was successfully changed to \u201c")+e.title+a("\u201d."),placement:"bottomRight"}):O.success({message:a("The project settings was successfully saved."),placement:"bottomRight"}):t&&(0,w.p6)({error:t},O),x((0,y.YF)("")),x((0,y.Oo)())}))}))};return n.createElement(c.A,{title:n.createElement("div",null,n.createElement(E.A,null)," ",a("Project settings")),className:"blocks-modal",open:e,onOk:G,onCancel:()=>{x((0,y.YF)("")),x((0,y.Oo)())},centered:!0,footer:[n.createElement(d.Ay,{key:"submit",size:"large",className:"em-analytics__project-save",type:"primary",loading:q.isLoading,onClick:G},a("Update"))]},n.createElement(l.A,{form:T,layout:"vertical",name:`edit_project_form_${null===j||void 0===j?void 0:j.id}`,onFinish:G,initialValues:{remember:!1,name:""},autoComplete:"off"},n.createElement(m.A,{activeKey:H,onChange:V,items:U})))};x.defaultProps={selectedProject:null};const T=x},50209:(e,t,a)=>{"use strict";a.d(t,{A:()=>P});var n=a(98173),l=a(30150),r=a(79245),o=a(40120),i=a(10423),s=a(59010),c=a(49856),d=a(67034),m=a(38927),u=a(37969),p=a(10267),g=a(82648),h=a(47214),f=a(78446),b=a(35076),v=a(38256),E=a(40186),C=a(71879),y=a(83612),_=a(2604),A=a(26298),w=a.n(A),k=a(52218),S=a.n(k),L=a(5618),x=a(98845),T=a(47014),I=a(45271),N=a(80223),R=a(40277),B=a(12543),M=a(32947);const{useToken:O}=o.A,P=({element:e,setSearchFilters:t=()=>{},isTrash:a=!1,foldersList:o,projectTags:A=[],foldersHandlers:k={}})=>{var P,H,V,D,F,j,z,Z,q,U,G,$,W,X,K;const{__:Y}=(0,B.s9)();let Q=(0,l.zy)();const{projectId:J}=(0,l.g)(),{owner:ee,admin:te}=(0,N.A)(),ae=(0,_.d4)(T.C1),ne=(0,n.useRef)(null),{token:le}=O(),{handleRecover:re,handleClone:oe,handlerChangeFolder:ie,handleRemove:se}=k,ce=e.hasOwnProperty("type")?M.IE:M.Tm,de=ce===M.Tm?M.zh:M.YY,me=ce===M.Tm?Y("New emails"):Y("New blocks"),ue=(e,t)=>`${e.pathname}/${t.id}`,[pe]=(0,L.pP)(),[ge]=(0,x.Kh)(),he=(e,t=J,a)=>{const n=a?`&cacheControl=true&cache-hash=${S()(a)}`:"";return`https://scr.emcdn.ru/screenshot?${"block"===ce?"":"minHeight=620&"}delay=1000&width=800&fullPage=true&deviceScaleFactor=0.755&format=jpg&force=false${n}&url=${encodeURIComponent(`https://app.emailmaker.ru/get${ce}/${e}?secret_hash=${S()(`${t}${e}${M.KI}`)}&raw=true`)}`},fe=(null===(P=e[ce===M.IE?"blockfolder":"folder"])||void 0===P?void 0:P[0])||null,be={icon:n.createElement(p.A,{style:{fontSize:18}}),label:me,key:M.y2,onClick:t=>ie(t,e)},ve=null===o||void 0===o?void 0:o.map((t=>({icon:n.createElement(g.A,{style:{fontSize:18}}),label:t.name,key:t.id,className:t.id,onClick:t=>ie(t,e)}))),Ee=(null===ve||void 0===ve?void 0:ve.filter((e=>!fe||e.key!==fe)))||[];fe&&(null===Ee||void 0===Ee||Ee.unshift(be));let Ce=[];return(ee||te||(null===(H=ae.id)||void 0===H?void 0:H.toString())===(null===(V=e.author)||void 0===V?void 0:V.toString()))&&!a&&Ce.push({label:n.createElement(I.A,{key:"Lock",element:e}),icon:e.lock?n.createElement(h.A,{style:{fontSize:"16px"}}):n.createElement(f.A,{style:{fontSize:"16px"}})}),(ee||te||(null===(D=ae.id)||void 0===D?void 0:D.toString())===(null===(F=e.author)||void 0===F?void 0:F.toString()))&&!a&&Ee.length>0&&Ce.push({label:Y("Transfer to folder"),icon:n.createElement(g.A,{style:{fontSize:"16px"}}),children:Ee}),!a&&Ce.push({label:Y("Clone"),icon:n.createElement(b.A,{style:{fontSize:"16px"}}),key:"Clone",className:ce===M.IE?"em-analytics__block-clone":"em-analytics__email-clone",disabled:ce===M.IE?pe.isLoading:ge.isLoading,onClick:()=>oe(e)}),(ee||te||(null===(j=ae.id)||void 0===j?void 0:j.toString())===(null===(z=e.author)||void 0===z?void 0:z.toString()))&&a&&Ce.push({label:Y("Recover"),icon:n.createElement(v.A,{style:{fontSize:"16px"}}),key:"Recover",onClick:()=>re(e)}),(ee||te||(null===(Z=ae.id)||void 0===Z?void 0:Z.toString())===(null===(q=e.author)||void 0===q?void 0:q.toString()))&&Ce.push({label:Y("Remove"),icon:n.createElement(E.A,{style:{fontSize:"16px"}}),key:"Remove",style:{color:"#ff4d4f"},className:ce===M.IE?"em-analytics__block-remove":"em-analytics__email-remove",onClick:()=>se(e)}),n.createElement(i.A,{className:`element-card element-card_${ce}`,hoverable:!0,"data-testid":e.id,cover:n.createElement(n.Fragment,null,n.createElement(s.A,{loading:"true",active:!0,avatar:!0,style:{position:"absolute",width:"83%",margin:"50px 10% 0 7%"}}),n.createElement(r.N_,{ref:ne,className:"element-card__img-wrapper",to:a?"":ue(Q,e),onMouseMove:e=>(0,R.Hy)(e,ne.current),style:{cursor:a?"default":"pointer"},onMouseLeave:R.Tr},he(e.id,e.project,e.modified)&&n.createElement("img",{className:"element-card__img",alt:e.title,src:he(e.id,e.project,e.modified)})),(e.is_template||(null===(U=e.acf)||void 0===U?void 0:U.is_template))&&n.createElement("div",{className:"element-card__is-template-wrapper"},Y("Template")),(null===(G=e[de])||void 0===G?void 0:G.length)&&n.createElement("div",{className:"element-card__tags-wrapper"},n.createElement(c.A,{wrap:!0,size:8},e[de].map((e=>{const a=null===A||void 0===A?void 0:A.find((t=>{var a;return(null===(a=t.id)||void 0===a?void 0:a.toString())===(null===e||void 0===e?void 0:e.toString())}));return a&&n.createElement(d.A,{color:le.colorPrimary,style:{borderRadius:6},key:a.id,onClick:()=>t(null,a.id)},a.name)})))))},n.createElement("div",{className:"ant-card-body__left"},n.createElement(r.N_,{to:a?"":ue(Q,e),style:{cursor:a?"default":"pointer"}},n.createElement("span",{className:"element-card__title"},e.lock&&n.createElement(f.A,{className:w()("lock-icon",{"lock-icon__disabled":!(ee||te||(null===($=ae.id)||void 0===$?void 0:$.toString())===(null===(W=e.author)||void 0===W?void 0:W.toString()))})}),(null===(X=e.title)||void 0===X?void 0:X.trim())||(null===(K=e.subject)||void 0===K?void 0:K.trim()))),n.createElement("p",{className:"element-card__date"},Y("Last update: ")," ",(0,R.Yq)((0,y.A)(e.modified),Y))),n.createElement("div",{className:"ant-card-body__right"},n.createElement(m.A,{menu:{items:Ce},arrow:"true",placement:"bottom",trigger:["hover"]},n.createElement(u.Ay,{type:"default",className:"element-card_menu",onClick:()=>{}},n.createElement(C.A,{key:"menu-button",style:{fontSize:"16px"}})))))}},98351:(e,t,a)=>{"use strict";a.d(t,{A:()=>T});var n=a(98173),l=a(71446),r=a(13785),o=a(94674),i=a(93771),s=a(64909),c=a(27264),d=a(7333),m=a(83799),u=a(38826),p=a(6987),g=a(59913),h=a(26298),f=a.n(h),b=a(12543),v=a(2604),E=a(30150),C=a(23424),y=a(32947),_=a(52995),A=a(8807),w=a(40277),k=a(80223),S=a(47014),L=a(40835),x=a(86095);const T=({setSizes:e,sizes:t,codeModeShow:a,codeModeIsVisible:h,email:T})=>{var I,N;const{__:R}=(0,b.s9)(),B=(0,v.wA)(),M=(0,v.d4)(C.cL),{admin:O,owner:P,user:H}=(0,k.A)(T.project),V=O||P||H,[D,F]=(0,n.useState)(!1),[j,z]=(0,L.Zf)(),Z=(0,E.Zp)(),q=(0,v.d4)(S.C1),{modal:U}=l.A.useApp(),G=(0,s.hN)(),{confirm:$}=U,W=(0,x.fn)();(0,n.useEffect)((()=>{z.isError&&((0,w.p6)(z,G),F(!1))}),[z,G]),(0,n.useEffect)((()=>{if(z.isSuccess&&D){var e;if(401===(null===(e=z.data)||void 0===e?void 0:e.status))G.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:z.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:z.data.message}}),placement:"bottomRight"});else if(z.data){let e=document.createElement("A");e.setAttribute("target","_blank"),e.setAttribute("href",z.data.message),e.click()}F(!1)}}),[z,D,G]);const X=(0,n.useCallback)((()=>{$({title:R("Upgrade your plan to use this feature"),icon:n.createElement(c.A,null),content:n.createElement("div",{style:{maxWidth:"330px"}},R("Available on the Personal plan and higher.")),centered:!0,okText:R("Choose your plan"),cancelText:R("Close & continue"),width:"unset",onOk(){Z("/billing")},onCancel(){}})}),[Z,R,$]);let K=[{label:n.createElement(r.A,{placement:"right"},n.createElement(d.A,{className:"element-preview-menu__list-item-icon"})),key:"Desktop",className:[f()("element-preview-menu__list-item",{"element-preview-menu__list-item_active":(!t[0]||t[0]>80)&&!h}),"em-analytics__email-desktop"],onClick:e,disabled:h},{label:n.createElement(r.A,{placement:"right"},n.createElement(m.A,{className:"element-preview-menu__list-item-icon"})),key:"Mobile",className:[f()("element-preview-menu__list-item",{"element-preview-menu__list-item_active":t[0]<=80&&!h}),"em-analytics__email-mobile"],onClick:e,disabled:h},{label:n.createElement(o.A,{className:"email-preview-menu__list__divider"}),key:"divider",className:"element-preview-menu__list-item"},{label:n.createElement(r.A,{title:R("Live preview"),placement:"right"},D?n.createElement(u.A,{className:"preview-mode__list-item-icon"}):n.createElement(p.A,{className:"preview-mode__list-item-icon"})),key:"Live preview",className:"element-preview-menu__list-item em-analytics__email-live-preview",onClick:(null===q||void 0===q||null===(I=q.id)||void 0===I?void 0:I.toString())===(null===(N=T.project_author)||void 0===N?void 0:N.toString())&&"community"===(null===q||void 0===q?void 0:q.subscription.post_name)?X:()=>{if(!D){const e={email:T.id,subject:encodeURIComponent("#"+T.project+" "+T.title).replaceAll(/%20/gi,"+").replaceAll(/%0A/gi,"%0D%0A"),content:encodeURIComponent((null===W||void 0===W?void 0:W.getValue())||"").replaceAll(/%20/gi,"+").replaceAll(/%0A/gi,"%0D%0A")};j(e),F(!0)}},disabled:!V},{label:n.createElement(r.A,{title:R("Send a test email"),placement:"right"},n.createElement(A.A,{icon:"SendOutlined",className:"preview-mode__list-item-icon"})),key:"Send test email",className:"element-preview-menu__list-item em-analytics__email-open-test",onClick:()=>{B((0,C.qf)(y.lx.SEND_TEST_EMAIL))},disabled:!V},{label:n.createElement(r.A,{title:R("Share"),placement:"right"},n.createElement(g.A,{className:"preview-mode__list-item-icon"})),key:"Share",className:"element-preview-menu__list-item em-analytics__email-share",onClick:()=>{navigator.clipboard.writeText(window.location).then((()=>{(0,w.wB)(R("A shareable link to this page has been copied to the clipboard."),G)}))}}];return n.createElement("div",{className:"element-preview-menu"},n.createElement(i.A,{mode:"vertical",className:"element-preview-menu__list",items:K}),n.createElement(_.A,{isModalVisible:M===y.lx.SEND_TEST_EMAIL,email:T}))}},8807:(e,t,a)=>{"use strict";a.d(t,{A:()=>vn});var n=a(98173),l=a(5558),r=a(27941);const o=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"chat-gpt",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:o},e)),s=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"arrow-left",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:s},e)),d=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"styles-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:d},e)),u=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"close-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),p=({props:e})=>n.createElement(l.A,Object.assign({component:u},e)),g=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"drop-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),h=({props:e})=>n.createElement(l.A,Object.assign({component:g},e)),f=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"dark-white",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),b=({props:e})=>n.createElement(l.A,Object.assign({component:f},e)),v=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"min-width-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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"}),n.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"})),E=({props:e})=>n.createElement(l.A,Object.assign({component:v},e)),C=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"max-width-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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})=>n.createElement(l.A,Object.assign({component:C},e)),_=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"bg-position-horizontal",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.createElement("g",null,n.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"}),n.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"}),n.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})=>n.createElement(l.A,Object.assign({component:_},e)),w=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"bg-position-vertical",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.createElement("g",null,n.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"}),n.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"}),n.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})=>n.createElement(l.A,Object.assign({component:w},e)),S=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"up-to-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.createElement("g",null,n.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"}),n.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"}))),L=({props:e})=>n.createElement(l.A,Object.assign({component:S},e)),x=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"vertical-offset-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:x},e)),I=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-horizontal-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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"})),N=({props:e})=>n.createElement(l.A,Object.assign({component:I},e)),R=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-horizontal-center-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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"})),B=({props:e})=>n.createElement(l.A,Object.assign({component:R},e)),M=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-horizontal-right-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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"})),O=({props:e})=>n.createElement(l.A,Object.assign({component:M},e)),P=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-vertical-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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"})),H=({props:e})=>n.createElement(l.A,Object.assign({component:P},e)),V=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-vertical-center-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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"})),D=({props:e})=>n.createElement(l.A,Object.assign({component:V},e)),F=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-vertical-bottom-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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"})),j=({props:e})=>n.createElement(l.A,Object.assign({component:F},e)),z=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"mixed-view-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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})=>n.createElement(l.A,Object.assign({component:z},e)),q=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"landscape-view",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),U=({props:e})=>n.createElement(l.A,Object.assign({component:q},e)),G=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"portrait-view",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),$=({props:e})=>n.createElement(l.A,Object.assign({component:G},e)),W=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"square-view",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:W},e)),K=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"panel-left",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:K},e)),Q=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"sun-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),J=({props:e})=>n.createElement(l.A,Object.assign({component:Q},e)),ee=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"crescent-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:ee},e)),ae=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"vimeo-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),ne=({props:e})=>n.createElement(l.A,Object.assign({component:ae},e)),le=()=>n.createElement("svg",{viewBox:"0 0 20 20",focusable:"false","data-icon":"image-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),re=({props:e})=>n.createElement(l.A,Object.assign({component:le},e)),oe=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"blur-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:oe},e)),se=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"zoom-out-map",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:se},e)),de=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"paragraph-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:de},e)),ue=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-image-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),pe=({props:e})=>n.createElement(l.A,Object.assign({component:ue},e)),ge=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-image-ai",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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"}),n.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"}),n.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"})),he=({props:e})=>n.createElement(l.A,Object.assign({component:ge},e)),fe=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-text",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.createElement("path",{d:"M4.375 22.0865V20.2115H18.1249V22.0865H4.375ZM4.375 15.9807V14.1058H25.6249V15.9807H4.375ZM4.375 9.87497V8H25.6249V9.87497H4.375Z"})),be=({props:e})=>n.createElement(l.A,Object.assign({component:fe},e)),ve=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-title",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.createElement("path",{d:"M13.678 24.3749V8.28119H6.88708V5.625H23.125V8.28119H16.3341V24.3749H13.678Z"})),Ee=({props:e})=>n.createElement(l.A,Object.assign({component:ve},e)),Ce=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-button",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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})=>n.createElement(l.A,Object.assign({component:Ce},e)),_e=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-spacer",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:_e},e)),we=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-list",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:we},e)),Se=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-list-ol",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Le=({props:e})=>n.createElement(l.A,Object.assign({component:Se},e)),xe=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-devider",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.createElement("path",{d:"M6 14.35V16H24V14.35H6Z"}),n.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"}),n.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})=>n.createElement(l.A,Object.assign({component:xe},e)),Ie=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-social",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Ne=({props:e})=>n.createElement(l.A,Object.assign({component:Ie},e)),Re=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-table",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Be=({props:e})=>n.createElement(l.A,Object.assign({component:Re},e)),Me=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-countdown",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Oe=({props:e})=>n.createElement(l.A,Object.assign({component:Me},e)),Pe=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-video",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),He=({props:e})=>n.createElement(l.A,Object.assign({component:Pe},e)),Ve=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-text-ai",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.createElement("path",{d:"M4.375 22.0865V20.2115H18.1249V22.0865H4.375ZM4.375 15.9807V14.1058H25.6249V15.9807H4.375ZM4.375 9.87497V8H11V9.87497H4.375Z"}),n.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"}),n.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"}),n.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"}),n.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"})),De=({props:e})=>n.createElement(l.A,Object.assign({component:Ve},e)),Fe=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"element-form",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),je=({props:e})=>n.createElement(l.A,Object.assign({component:Fe},e)),ze=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"ai-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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"}),n.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})=>n.createElement(l.A,Object.assign({component:ze},e)),qe=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"typorgaf-icon",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.createElement("path",{d:"M12 6.43338L11.1167 9.98246H9.94694L11.069 6.43338H12ZM9.58089 6.43338L8.72148 9.98246H7.52784L8.6419 6.43338H9.58089Z"})),Ue=({props:e})=>n.createElement(l.A,Object.assign({component:qe},e)),Ge=()=>n.createElement("svg",{width:"42",height:"43",viewBox:"0 0 42 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("rect",{x:"0.00830078",y:"0.173828",width:"42",height:"42",rx:"21",fill:"#4597F7"}),n.createElement("g",{clipPath:"url(#clip0_2193_1178)"},n.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"}),n.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"})),n.createElement("defs",null,n.createElement("clipPath",{id:"clip0_2193_1178"},n.createElement("rect",{width:"24",height:"24",fill:"white",transform:"translate(9.0083 9.17383)"})))),$e=({props:e})=>n.createElement(l.A,Object.assign({component:Ge},e)),We=()=>n.createElement("svg",{width:"42",height:"43",viewBox:"0 0 42 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("rect",{x:"0.00830078",y:"0.173828",width:"42",height:"42",rx:"21",fill:"#6A32C9"}),n.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})=>n.createElement(l.A,Object.assign({component:We},e)),Ke=()=>n.createElement("svg",{width:"42",height:"43",viewBox:"0 0 42 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("rect",{x:"0.00830078",y:"0.173828",width:"42",height:"42",rx:"21",fill:"#72C240"}),n.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"}),n.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"}),n.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"}),n.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})=>n.createElement(l.A,Object.assign({component:Ke},e)),Qe=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-top-bottom-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},n.createElement("path",{d:"M7.43866e-05 1.03733V0L12 0.0407197V1.07805L7.43866e-05 1.03733ZM0 11.9593V10.922L12 10.9627V12L0 11.9593Z"}),n.createElement("rect",{x:"3.5",y:"3.5",width:"5",height:"5",fill:"none",stroke:"currentColor"})),Je=({props:e})=>n.createElement(l.A,Object.assign({component:Qe},e)),et=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-left-right-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},n.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"}),n.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})=>n.createElement(l.A,Object.assign({component:et},e)),at=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-switcher",fill:"currentColor",width:"1em",height:"1em","aria-hidden":"true"},n.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"}),n.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"})),nt=({props:e})=>n.createElement(l.A,Object.assign({component:at},e)),lt=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-top-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},n.createElement("path",{d:"M0 1.04086V0L11.9999 0.0408583V1.08172L0 1.04086Z"}),n.createElement("rect",{x:"3.5",y:"3.5",width:"5",height:"5",fill:"none",stroke:"currentColor"})),rt=({props:e})=>n.createElement(l.A,Object.assign({component:lt},e)),ot=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-bottom-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},n.createElement("path",{d:"M0 10.9591V12L11.9999 11.9591V10.9183L0 10.9591Z"}),n.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})=>n.createElement(l.A,Object.assign({component:ot},e)),st=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-left-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},n.createElement("path",{d:"M-8.67844e-05 -4.54974e-08L1.04077 0L0.999913 12L-0.0409456 12L-8.67844e-05 -4.54974e-08Z"}),n.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})=>n.createElement(l.A,Object.assign({component:st},e)),dt=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"padding-righr-icon",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},n.createElement("path",{d:"M12.0001 -4.54974e-08L10.9592 0L11.0001 12L12.0409 12L12.0001 -4.54974e-08Z"}),n.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})=>n.createElement(l.A,Object.assign({component:dt},e)),ut=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"code",width:"1em",height:"1em","aria-hidden":"true",fill:"currentColor"},n.createElement("path",{d:"M6.75582 1.62701L7.6995 1.87987L5.42377 10.373L4.48009 10.1201L6.75582 1.62701Z"}),n.createElement("path",{d:"M0 6.32085L2.76329 3.55756L3.45411 4.24838L1.38164 6.32085L3.45411 8.39332L2.76329 9.08414L0 6.32085Z"}),n.createElement("path",{d:"M12 6.32085L9.23671 3.55756L8.54589 4.24838L10.6184 6.32085L8.54589 8.39332L9.23671 9.08414L12 6.32085Z"})),pt=({props:e})=>n.createElement(l.A,Object.assign({component:ut},e)),gt=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"go-to-parrent",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),ht=({props:e})=>n.createElement(l.A,Object.assign({component:gt},e)),ft=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"undo",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),bt=({props:e})=>n.createElement(l.A,Object.assign({component:ft},e)),vt=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"redo",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Et=({props:e})=>n.createElement(l.A,Object.assign({component:vt},e)),Ct=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"history",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:Ct},e)),_t=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"eye",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:_t},e)),wt=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"send",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:wt},e)),St=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"check-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"})),Lt=({props:e})=>n.createElement(l.A,Object.assign({component:St},e)),xt=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"share-alt",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:xt},e)),It=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"mobile",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Nt=({props:e})=>n.createElement(l.A,Object.assign({component:It},e)),Rt=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"desktop",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Bt=({props:e})=>n.createElement(l.A,Object.assign({component:Rt},e)),Mt=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"plus-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"})),Ot=({props:e})=>n.createElement(l.A,Object.assign({component:Mt},e)),Pt=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"comment",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.createElement("defs",null,n.createElement("style",null)),n.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"}),n.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"}),n.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"})),Ht=({props:e})=>n.createElement(l.A,Object.assign({component:Pt},e)),Vt=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"setting",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Dt=({props:e})=>n.createElement(l.A,Object.assign({component:Vt},e)),Ft=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"border-outer",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),jt=({props:e})=>n.createElement(l.A,Object.assign({component:Ft},e)),zt=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"appstore-add",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.createElement("defs",null,n.createElement("style",null)),n.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})=>n.createElement(l.A,Object.assign({component:zt},e)),qt=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"appstore",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Ut=({props:e})=>n.createElement(l.A,Object.assign({component:qt},e)),Gt=()=>n.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"build",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),$t=({props:e})=>n.createElement(l.A,Object.assign({component:Gt},e)),Wt=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"search-outlined",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:Wt},e)),Kt=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"close-outlined",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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})=>n.createElement(l.A,Object.assign({component:Kt},e)),Qt=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"add-image",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Jt=({props:e})=>n.createElement(l.A,Object.assign({component:Qt},e)),ea=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"merge-tags",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),ta=({props:e})=>n.createElement(l.A,Object.assign({component:ea},e)),aa=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"light-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),na=({props:e})=>n.createElement(l.A,Object.assign({component:aa},e)),la=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"dark-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),ra=({props:e})=>n.createElement(l.A,Object.assign({component:la},e)),oa=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"auto-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),ia=({props:e})=>n.createElement(l.A,Object.assign({component:oa},e)),sa=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"email-confirmation",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),ca=({props:e})=>n.createElement(l.A,Object.assign({component:sa},e)),da=()=>n.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"atom",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),ma=({props:e})=>n.createElement(l.A,Object.assign({component:da},e)),ua=()=>n.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"column",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),pa=({props:e})=>n.createElement(l.A,Object.assign({component:ua},e)),ga=()=>n.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"block",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),ha=({props:e})=>n.createElement(l.A,Object.assign({component:ga},e)),fa=()=>n.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"group",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),ba=({props:e})=>n.createElement(l.A,Object.assign({component:fa},e)),va=()=>n.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"button",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Ea=({props:e})=>n.createElement(l.A,Object.assign({component:va},e)),Ca=()=>n.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"button",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),ya=({props:e})=>n.createElement(l.A,Object.assign({component:Ca},e)),_a=()=>n.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"button",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Aa=({props:e})=>n.createElement(l.A,Object.assign({component:_a},e)),wa=()=>n.createElement("svg",{viewBox:"0 -960 960 960",focusable:"false","data-icon":"button",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),ka=({props:e})=>n.createElement(l.A,Object.assign({component:wa},e)),Sa=({svgString:e,...t})=>n.createElement("span",Object.assign({role:"img",className:"anticon",dangerouslySetInnerHTML:{__html:e}},t)),La=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"slider-group",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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"}),n.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"}),n.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"}),n.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"})),xa=({props:e})=>n.createElement(l.A,Object.assign({component:La},e)),Ta=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"slider-templates",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Ia=({props:e})=>n.createElement(l.A,Object.assign({component:Ta},e)),Na=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"slider-blocks",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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"})),Ra=({props:e})=>n.createElement(l.A,Object.assign({component:Na},e)),Ba=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"slider-adaptive",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Ma=({props:e})=>n.createElement(l.A,Object.assign({component:Ba},e)),Oa=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"slider-magic",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"}),n.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"}),n.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"})),Pa=({props:e})=>n.createElement(l.A,Object.assign({component:Oa},e)),Ha=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"align-justify",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Va=({props:e})=>n.createElement(l.A,Object.assign({component:Ha},e)),Da=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"speed",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Fa=({props:e})=>n.createElement(l.A,Object.assign({component:Da},e)),ja=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"replacer",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"}),n.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"})),za=({props:e})=>n.createElement(l.A,Object.assign({component:ja},e)),Za=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"editor-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),qa=({props:e})=>n.createElement(l.A,Object.assign({component:Za},e)),Ua=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"designer-mode",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Ga=({props:e})=>n.createElement(l.A,Object.assign({component:Ua},e)),$a=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"clear-chat",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.createElement("path",{d:"M0 9.5V8.33327H9.33333V9.5H0ZM1.33333 6.58327V5.41672H10.6667V6.58327H1.33333ZM2.66667 3.66672V2.5H12V3.66672H2.66667Z"})),Wa=({props:e})=>n.createElement(l.A,Object.assign({component:$a},e)),Xa=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"webhook",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Ka=({props:e})=>n.createElement(l.A,Object.assign({component:Xa},e)),Ya=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"lock",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),Qa=({props:e})=>n.createElement(l.A,Object.assign({component:Ya},e)),Ja=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"web",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),en=({props:e})=>n.createElement(l.A,Object.assign({component:Ja},e)),tn=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"acordion",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),an=({props:e})=>n.createElement(l.A,Object.assign({component:tn},e)),nn=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"carousel",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),ln=({props:e})=>n.createElement(l.A,Object.assign({component:nn},e)),rn=()=>n.createElement("svg",{viewBox:"0 0 30 30",focusable:"false","data-icon":"reload",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),on=({props:e})=>n.createElement(l.A,Object.assign({component:rn},e)),sn=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"add-slide",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),cn=({props:e})=>n.createElement(l.A,Object.assign({component:sn},e)),dn=()=>n.createElement("svg",{viewBox:"0 0 12 12",focusable:"false","data-icon":"amp",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.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"})),mn=({props:e})=>n.createElement(l.A,Object.assign({component:dn},e)),un=()=>n.createElement("svg",{width:"18",height:"19",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("rect",{x:"0.371338",y:"0.878906",width:"17.29",height:"17.29",rx:"8.645",fill:"white"}),n.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"})),pn=({props:e})=>n.createElement(l.A,Object.assign({component:un},e)),gn=()=>n.createElement("svg",{width:"18",height:"19",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("rect",{x:"0.371338",y:"0.878906",width:"17.29",height:"17.29",rx:"8.645",fill:"#1F1F1F"}),n.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"})),hn=({props:e})=>n.createElement(l.A,Object.assign({component:gn},e)),fn=()=>n.createElement("svg",{width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.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"})),bn=({props:e})=>n.createElement(l.A,Object.assign({component:fn},e)),vn=({icon:e,...t})=>{const a=(0,r.rD)();if(a.icons&&a.icons[e]){const l=a.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 n.createElement(Sa,Object.assign({svgString:l},t))}switch(e){case"AddSlide":return n.createElement(cn,{props:t});case"AMP":return n.createElement(mn,{props:t});case"ElementAccordion":return n.createElement(an,{props:t});case"Reload":return n.createElement(on,{props:t});case"Web":return n.createElement(en,{props:t});case"Lock":return n.createElement(Qa,{props:t});case"DesignerMode":return n.createElement(Ga,{props:t});case"EditorMode":return n.createElement(qa,{props:t});case"ClearChat":return n.createElement(Wa,{props:t});case"Speed":return n.createElement(Fa,{props:t});case"Justify":return n.createElement(Va,{props:t});case"Colorize":return n.createElement(ka,{props:t});case"Email":return n.createElement(Aa,{props:t});case"Table":return n.createElement(ya,{props:t});case"Button":return n.createElement(Ea,{props:t});case"Group":return n.createElement(ba,{props:t});case"Block":return n.createElement(ha,{props:t});case"Column":return n.createElement(pa,{props:t});case"Atom":return n.createElement(ma,{props:t});case"Styles":return n.createElement(m,{props:t});case"Close":return n.createElement(p,{props:t});case"Drop":return n.createElement(h,{props:t});case"DarkWhite":return n.createElement(b,{props:t});case"MinWidth":return n.createElement(E,{props:t});case"MaxWidth":return n.createElement(y,{props:t});case"BgPositionHorizontal":return n.createElement(A,{props:t});case"BgPositionVertical":return n.createElement(k,{props:t});case"UpTo":return n.createElement(L,{props:t});case"VerticalOffset":return n.createElement(T,{props:t});case"AlignHorizontalLeft":return n.createElement(N,{props:t});case"AlignHorizontalCenter":return n.createElement(B,{props:t});case"AlignHorizontalRight":return n.createElement(O,{props:t});case"AlignVerticalTop":return n.createElement(H,{props:t});case"AlignVerticalCenter":return n.createElement(D,{props:t});case"AlignVerticalBottom":return n.createElement(j,{props:t});case"MixedView":return n.createElement(Z,{props:t});case"LandscapeView":return n.createElement(U,{props:t});case"PortraitView":return n.createElement($,{props:t});case"SquareView":return n.createElement(X,{props:t});case"PanelLeft":return n.createElement(Y,{props:t});case"Sun":return n.createElement(J,{props:t});case"Crescent":return n.createElement(te,{props:t});case"Vimeo":return n.createElement(ne,{props:t});case"Image":return n.createElement(re,{props:t});case"Blur":return n.createElement(ie,{props:t});case"ZoomOutMap":return n.createElement(ce,{props:t});case"Paragraph":return n.createElement(me,{props:t});case"ElementImage":return n.createElement(pe,{props:t});case"ElementImageAI":return n.createElement(he,{props:t});case"ElementText":return n.createElement(be,{props:t});case"ElementTitle":return n.createElement(Ee,{props:t});case"ElementButton":return n.createElement(ye,{props:t});case"ElementSpacer":return n.createElement(Ae,{props:t});case"ElementListUL":return n.createElement(ke,{props:t});case"ElementListOL":return n.createElement(Le,{props:t});case"ElementDivider":return n.createElement(Te,{props:t});case"ElementSocial":return n.createElement(Ne,{props:t});case"ElementTable":return n.createElement(Be,{props:t});case"ElementCountdown":return n.createElement(Oe,{props:t});case"ElementVideo":return n.createElement(He,{props:t});case"ElementTextAI":return n.createElement(De,{props:t});case"ElementCarousel":return n.createElement(ln,{props:t});case"ElementForm":return n.createElement(je,{props:t});case"AI":return n.createElement(Ze,{props:t});case"Typograf":return n.createElement(Ue,{props:t});case"NewEmail":return n.createElement($e,{props:t});case"Import":return n.createElement(Xe,{props:t});case"generationAI":return n.createElement(Ye,{props:t});case"PaddingTopBottom":return n.createElement(Je,{props:t});case"PaddingLeftRight":return n.createElement(tt,{props:t});case"PaddingSwitcher":return n.createElement(nt,{props:t});case"PaddingTop":return n.createElement(rt,{props:t});case"PaddingBottom":return n.createElement(it,{props:t});case"PaddingLeft":return n.createElement(ct,{props:t});case"PaddingRight":return n.createElement(mt,{props:t});case"Code":return n.createElement(pt,{props:t});case"GoToParent":return n.createElement(ht,{props:t});case"UndoOutlined":return n.createElement(bt,{props:t});case"RedoOutlined":return n.createElement(Et,{props:t});case"HistoryOutlined":return n.createElement(yt,{props:t});case"EyeOutlined":return n.createElement(At,{props:t});case"SendOutlined":return n.createElement(kt,{props:t});case"CheckCircleOutlined":return n.createElement(Lt,{props:t});case"ShareAltOutlined":return n.createElement(Tt,{props:t});case"MobileOutlined":return n.createElement(Nt,{props:t});case"DesktopOutlined":return n.createElement(Bt,{props:t});case"PlusCircleOutlined":return n.createElement(Ot,{props:t});case"CommentOutlined":return n.createElement(Ht,{props:t});case"SettingOutlined":return n.createElement(Dt,{props:t});case"BorderOuterOutlined":return n.createElement(jt,{props:t});case"AppstoreAddOutlined":return n.createElement(Zt,{props:t});case"AppstoreOutlined":return n.createElement(Ut,{props:t});case"BuildOutlined":return n.createElement($t,{props:t});case"SearchOutlined":return n.createElement(Xt,{props:t});case"CloseOutlined":return n.createElement(Yt,{props:t});case"AddImage":return n.createElement(Jt,{props:t});case"MergeTags":return n.createElement(ta,{props:t});case"ArrowLeftOutlined":return n.createElement(c,{props:t});case"ChatGpt":return n.createElement(i,{props:t});case"LightMode":return n.createElement(na,{props:t});case"DarkMode":return n.createElement(ra,{props:t});case"AutoMode":return n.createElement(ia,{props:t});case"EmailConfirmation":return n.createElement(ca,{props:t});case"SliderGroup":return n.createElement(xa,{props:t});case"SliderTemplates":return n.createElement(Ia,{props:t});case"SliderBlocks":return n.createElement(Ra,{props:t});case"SliderAdaptive":return n.createElement(Ma,{props:t});case"SliderMagic":return n.createElement(Pa,{props:t});case"Replacer":return n.createElement(za,{props:t});case"WebHook":return n.createElement(Ka,{props:t});case"CloseAll":return n.createElement(hn,{props:t});case"CloseTag":return n.createElement(pn,{props:t});case"GroupArrow":return n.createElement(bn,{props:t});default:return null}}},66079:(e,t,a)=>{"use strict";a.d(t,{A:()=>N});var n=a(98173),l=a(32656),r=a(26298),o=a.n(r);const i=JSON.parse('{"yG":"iframe.8a49c7ae6b7ddbda68c6.html","l5":"iframe-eblock.8a49c7ae6b7ddbda68c6.html"}');var s=a(86095),c=a(2604),d=a(62093),m=a(27941),u=a(98845),p=a(32947),g=a(97993),h=a(64909),f=a(47014),b=a(12543),v=a(76233),E=a(52919),C=a(37357),y=a(70687);function _(e,t){const{__:a}=(0,b.s9)(),l=(0,E.QC)(),r=(0,s.aD)(e),{error:o}=(0,h.hN)(),i=(0,n.useRef)(0),m=(0,n.useRef)(),u=(0,n.useRef)(!1),_=(0,c.d4)(f.C1),A=(0,n.useCallback)((e=>new Promise(((t,a)=>{const n=l.addListener(p.Ru.SANDBOX_READY,(()=>{n.dispose(),t()}));e&&setTimeout((()=>{n.dispose(),a("timeout")}))}))),[l]),w=(0,n.useCallback)((n=>{A(2e3).catch((e=>{})).finally((()=>{Promise.resolve().then((()=>{if(!u.current){if(++i.current){if(m.current){if(i.current<5){r.restoreSnapshot(m.current);for(let e=0;e<i.current;e++)r.undo()}}else m.current=r.createSnapshot();l.send(p.Ru.RELOAD)}setTimeout((()=>{if(0===--i.current){m.current=null;const l={past:r.getPast().slice(0,10),future:r.getFuture(),errorResolved:!u.current,text:e.getValue(),message:n.message,stack:n.stack,userId:null===_||void 0===_?void 0:_.id,entityId:null===t||void 0===t?void 0:t.id,entityType:document.location.pathname.indexOf("emails")>0?"email":"block"};o({id:"IFRAME_ERROR",data:l,message:a("Something went wrong")}),v.CJ.post("iframe_errors",l).catch((e=>{})),u.current=!1}}),2e3)}}))}))}),[r,e,o,null===_||void 0===_?void 0:_.id,null===t||void 0===t?void 0:t.id,a,A,l]);(0,d.A)(p.Ru.APPLICATION_DOMPARSER_ERROR,w),(0,n.useEffect)((()=>{let a=null,n=0;function r(e){const t=[];for(const{rangeOffset:a,rangeLength:n,text:l}of e.changes)t.push({range:{start:a,end:a+n},text:l});return t}let o=!1;const i=new C.j;return i.addDisposable((0,y.Og)(e,(e=>(async e=>{if(o)await l.sendAsync(p.Ru.SANDBOX_UPDATE_ENTITY,{edits:[r(e)],guid:t.renderGuid});else if(a)a.push(e);else{a=[e];do{const e=a.splice(0,a.length);await l.sendAsync(p.Ru.SANDBOX_UPDATE_ENTITY,{edits:e.map(r),guid:t.renderGuid})}while(a.length);a=null}})(e).catch((e=>{}))))),i.addDisposable(l.addListener(p.Ru.APPLICATION_UPDATE_ENTITY,(function({guid:a,edits:l,pushUndoStop:r}){if(e&&a===t.renderGuid)try{o=!0;const t=(0,g.y)(),a=t.canUndo(e.uri),i=t.canRedo(e.uri),s=l.map((({text:t,range:a})=>{const n=e.getPositionAt(a.start),l=e.getPositionAt(a.end);return{text:t,range:{startColumn:n.column,startLineNumber:n.lineNumber,endColumn:l.column,endLineNumber:l.lineNumber}}}));r||a||i?e.pushEditOperations([],s,(()=>null)):e.applyEdits(s),!1!==r&&(n&&clearTimeout(n),n=setTimeout((()=>{e.pushStackElement(),n=0}),1e3))}finally{o=!1}}))),()=>{i.dispose(),n&&clearTimeout(n)}}),[e,l,t.renderGuid])}const A=Symbol("isIframeEvent");function w({children:e}){const[t,a]=(0,n.useState)(),[l,r]=(0,n.useState)(),[o,i]=(0,n.useState)(!1),s=(0,E.QC)();return(0,n.useEffect)((()=>{if(t){const e=s.addListener(p.Ru.APPLICATION_IFRAME_DRAG_EVENT,(e=>{if("drageleave"!==e.type&&"dragenter"!==e.type){const a=t.getBoundingClientRect(),n=e.clientX+a.x+window.scrollX,l=e.clientY+a.y+window.scrollY,r=document.elementFromPoint(n,l);if(r){const t=new DataTransfer,a=new DragEvent(e.type,{clientX:n,clientY:l,cancelable:!0,bubbles:!0,dataTransfer:t});a[A]=!0,r.dispatchEvent(a)}}}));return()=>e.dispose()}}),[s,t]),(0,n.useEffect)((()=>{const e=e=>{e[A]||i(!0)},t=e=>{e[A]||i(!1)};return window.addEventListener("dragstart",e),window.addEventListener("dragend",t),()=>{window.removeEventListener("dragstart",e),window.removeEventListener("dragend",t)}}),[l]),(0,n.useEffect)((()=>{const e=e=>{if(!e[A]){var t;const a=l.getBoundingClientRect();s.send(p.Ru.SANDBOX_DRAG_EVENT,{value:(null===(t=e.dataTransfer)||void 0===t?void 0:t.getData("Text"))||"",type:e.type,clientX:e.pageX-a.x-window.scrollX,clientY:e.pageY-a.y-window.scrollY})}};if(l)return l.addEventListener("dragenter",e),l.addEventListener("dragover",e),l.addEventListener("dragleave",e),l.addEventListener("drop",e),l.addEventListener("dragend",e),()=>{l.removeEventListener("dragenter",e),l.removeEventListener("dragover",e),l.removeEventListener("dragleave",e),l.removeEventListener("drop",e),l.removeEventListener("dragend",e)}}),[l,s]),n.createElement("div",{ref:a},o&&n.createElement("div",{ref:r,className:"iframe-provider"}),e)}var k=a(40120),S=a(95669);const{useToken:L}=k.A;var x=a(90614),T=a(15626);const I=(0,n.forwardRef)((({className:e,email:t,handlerSendPosition:r},g)=>{const h=(0,c.wA)(),v=(0,s.fn)(),C=(0,m.rD)(),y=(0,E.ur)(),A=(0,E.XW)(),k=(0,E.QC)(),I=(0,x._q)(T.AZ.ON_EMAIL_INIT_ID),[N,R]=(0,n.useState)(),B=(0,n.useCallback)((e=>{const a=window.localStorage.getItem(p.V0.em_color_scheme),n=matchMedia(p.F3).matches?p.nd:p.T,l=window.localStorage.getItem(p.V0.em_code_mode_settings)?JSON.parse(window.localStorage.getItem(p.V0.em_code_mode_settings)):null,o={operation:p.Ru.UPDATE_PREVIEW,versionId:(null===v||void 0===v?void 0:v.getVersionId())||0,theme:a&&"system"!==a?a:n,commonStyles:"string"===typeof(null===t||void 0===t?void 0:t.common_styles)&&null!==t&&void 0!==t&&t.common_styles.startsWith("{")&&"{}"!==t.common_styles?JSON.parse(t.common_styles):p.BD,pathEnabled:C.pathEnabled,copyPasteEnabled:C.copyPasteEnabled,saveBlockEnabled:C.saveBlockEnabled,editImageControlEnabled:C.editImageControlEnabled,codeMode:!!l&&!(!l.isCodeMode||"left"!==l.codeModeDirection&&"right"!==l.codeModeDirection),elementAIimageEnabled:C.elementAIimageEnabled,imageCenterStockEnabled:C.imageCenterStockEnabled,imageCenterGifEnabled:C.imageCenterGifEnabled,imageCenterEditorEnabled:C.imageCenterEditorEnabled,blocksAddPanelEnabled:C.blocksAddPanelEnabled,lockEditor:C.lockEditor,appName:"emailmaker"};R(e.target),y(e.target),g.current.resize(),A(o),r()}),[C,r,A,v,t.common_styles,g,R,y]),M=(0,n.useCallback)((e=>{var t;e.data.operation===p.Ru.SANDBOX_RESIZED&&(null===(t=g.current)||void 0===t||t.resize())}),[g]);(0,n.useEffect)((()=>{const e=I((()=>{g.current.resize()}));return()=>e.dispose()}),[g,I]),(0,n.useEffect)((()=>()=>{y()}),[y]);const O=(0,n.useCallback)((()=>new Promise((e=>{k.setTarget(void 0);const t=()=>{B({target:N}),e(),null===N||void 0===N||N.removeEventListener("load",t)};null===N||void 0===N||N.addEventListener("load",t)}))),[k,B,N]);(0,n.useEffect)((()=>{const e=k.addListenerAsync(p.Ru.RELOAD,O,Number.MAX_SAFE_INTEGER);return()=>e.dispose()}),[k,O]),(0,d.A)(M),(0,d.A)((()=>{var e;null===(e=g.current)||void 0===e||e.resize()}),p.Ru.SANDBOX_INITED),function(){const e=(0,E.QC)(),t=(0,c.d4)(f.C1),{__:a}=(0,b.s9)(),[l,r]=(0,n.useState)("");(0,n.useEffect)((()=>{if(t.locale!==l){const n=(0,p.QV)(a),l=e.onInit((()=>{e.send(p.Ru.SANDBOX_TRANSLATIONS,{name:t.locale,data:n}),r(t.locale)}));return()=>l.dispose()}}),[t.locale,l,r,a,e]),(0,n.useEffect)((()=>{const t=e.addListener(p.Ru.RELOAD,(()=>{r("")}));return()=>t.dispose()}),[r,e])}(),function(){const e=(0,E.QC)(),{token:t}=L(),[a,l]=(0,n.useState)();(0,n.useEffect)((()=>{if(!(0,S.b)(a,t)){const a=e.onInit((()=>{e.send(p.Ru.SANDBOX_SET_THEME_VARIABLES,t),l(t)}));return()=>a.dispose()}}),[t,a,l,e]),(0,n.useEffect)((()=>{const t=e.addListener(p.Ru.RELOAD,(()=>{l(void 0)}));return()=>t.dispose()}),[l,e])}(),(0,n.useEffect)((()=>{matchMedia(p.F3).addEventListener("change",(e=>{const t=window.localStorage.getItem(p.V0.em_color_scheme),a=e.matches?p.nd:p.T;A({operation:p.Ru.UPDATE_PREVIEW,theme:t||a})}))}),[A]),_(v,t),(0,n.useEffect)((()=>{const e=v.onDidChangeContent((()=>{g.current.resize()}));return()=>e.dispose()}),[v,g]);const P=(0,n.useCallback)((e=>{e.data.operation===p.Ru.APPLICATION_COMMON_STYLES_UPDATE&&h(u.GY.util.updateQueryData("getEmail",t.id,(t=>Object.assign(t,{common_styles:JSON.stringify(e.data.settings.commonStyles)}))))}),[h,t.id]);return(0,d.A)(P),n.createElement(w,null,n.createElement(l.A,{forwardRef:g,checkOrigin:!1,sandbox:"allow-top-navigation allow-scripts allow-popups allow-popups-to-escape-sandbox",className:o()("email-preview",{[e]:e}),width:"100%",minHeight:600,scrolling:"no",id:"email_iframe",allow:"clipboard-read; clipboard-write",src:(p.EW.isPlugin?`${a.p}iframe/`:"/iframe/")+(t.hasOwnProperty("type")?i.l5:i.yG),title:"Email content",onLoad:B}))}));I.defaultProps={className:null,email:null,handlerSendPosition:()=>{}};const N=I},47091:(e,t,a)=>{"use strict";a.d(t,{A:()=>de});var n=a(98173),l=a(40120),r=a(71446),o=a(49856),i=a(67034),s=a(38927),c=a(10423),d=a(71832),m=a(59010),u=a(38976),p=a(83991),g=a(73477),h=a(40186),f=a(78446),b=a(10267),v=a(82648),E=a(47214),C=a(6969),y=a(35076),_=a(38256),A=a(71879),w=a(83612),k=a(79245),S=a(30150),L=a(2604),x=(a(65053),a(47638)),T=a(26298),I=a.n(T),N=a(45271),R=a(50209),B=a(37969),M=a(52218),O=a.n(M),P=a(40277),H=a(96734),V=a(89613),D=a(12543),F=a(32947);const{useToken:j}=l.A,z=({element:e,setSearchFilters:t=(e,t)=>{}})=>{var a;const{projectId:l}=(0,S.g)(),r=(0,S.Zp)(),s=(0,H.p)(),{token:d}=j(),{__:m}=(0,D.s9)(),u=e.type?F.IE:F.Tm,p=`/projects/${l}/emails/new`,g=(0,V.u)(),h=(0,n.useRef)(null);return n.createElement(c.A,{className:`element-card element-card_${u} element-card_template`,hoverable:!0,id:e.id,style:{cursor:"pointer"},"data-testid":e.id,cover:n.createElement(n.Fragment,null,n.createElement("div",{ref:h,className:"element-card__img-wrapper"},n.createElement("img",{className:"element-card__img",alt:e.title,src:((e,t=l,a)=>`https://scr.emcdn.ru/screenshot?delay=1000&width=800&fullPage=true&deviceScaleFactor=0.8&format=jpg&force=false${a?`&cacheControl=true&cache-hash=${O()(a)}`:""}&url=${encodeURIComponent(`https://app.emailmaker.ru/get${u}/${e}?secret_hash=${O()(`${t}${e}${F.KI}`)}&raw=true`)}`)(e.id,e.project,e.modified),onMouseMove:e=>(0,P.Hy)(e,h.current),onMouseLeave:P.Tr})),e.is_template&&e.project===+l&&n.createElement("div",{className:"element-card__is-template-wrapper"},m("Template")),(0,P._q)(e,F.zh).length&&n.createElement("div",{className:"element-card__tags-wrapper"},n.createElement(o.A,{wrap:!0,size:8},null===(a=(0,P._q)(e,F.zh))||void 0===a?void 0:a.map((e=>n.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,g({event:"select",action:"create_new_email",template_id:t,description:"Create new email from template"}),s.set(F.A9.em_new_email,t),void(0,P.XZ)(r,p);var t}},n.createElement("div",null,n.createElement(B.Ay,{type:"link",className:"element-card__title"},(0,P.ln)(e.title))))};var Z=a(56605),q=a(8807),U=a(27499),G=a(48753),$=a(8218),W=a(23424);const X="description",K=()=>{const{__:e}=(0,D.s9)(),t=(0,L.wA)(),[a]=U.A.useForm(),l=(0,n.useRef)(null),r=(0,L.d4)(W.cL)===F.lx.ADD_NEW_AI_EMAIL,o=(0,H.p)(),i=(0,S.Zp)(),{projectId:s}=(0,S.g)(),c=(0,n.useCallback)((()=>{a.resetFields(),setTimeout((()=>{var e;return null===(e=l.current)||void 0===e?void 0:e.focus()}),0)}),[a]);(0,n.useEffect)((()=>{r&&c()}),[r,c]);const d=()=>t((0,W.Oo)()),m=()=>{const e=`/projects/${s}/emails/new`,t=String(278056);o.set(F.A9.em_new_email,t),a.validateFields().then((({description:t})=>{window.localStorage.setItem(F.V0.em_active_tab,F.z$),window.localStorage.setItem(F.V0.em_ai_settings,t),(0,P.XZ)(i,e),d()}))};return n.createElement(G.A,{title:n.createElement(n.Fragment,null,n.createElement("span",null,e("I'd be happy to create an email for you! ")),n.createElement("p",null,e("Start with a detailed description of your email."))),open:r,onOk:m,onCancel:d,className:"new-folder-modal",centered:!0,footer:[n.createElement(B.Ay,{key:"submit",type:"primary",size:"large",onClick:m},e("Generate Email"))]},n.createElement(U.A,{form:a,layout:"vertical",name:"add_new_folder_form",onFinish:m,initialValues:{[X]:""},autoComplete:"off",style:{paddingTop:10}},n.createElement(U.A.Item,{name:X,rules:[{required:!0,message:e("Please enter the description")}]},n.createElement($.A,{size:"large",placeholder:e("Please enter the description"),ref:l,style:{marginBottom:5}}))))};var Y=a(98845),Q=a(92960),J=a(40835),ee=a(79253),te=a(1047),ae=a(84572),ne=a(47014),le=a(80223),re=a(71854),oe=a(30315),ie=a(64909);const{useToken:se}=l.A,ce=(e,t)=>`${e.pathname}/${t.id}`,de=({projectId:e,emailsView:t,createPage:a=!1,currentFolderId:l,foldersList:T,refetchProjectFolders:B,projectTags:M=[],activeTagId:O,setActiveTagHandler:j,projectEmailsCounter:U=0,registerFunction:G=()=>{},groupType:$=null})=>{var X,de,me,ue,pe,ge,he,fe;const{__:be,_x:ve}=(0,D.s9)(),Ee=(0,L.wA)(),Ce=(0,L.d4)(ee.MY),ye=(0,L.d4)(ee.aO),_e=(0,L.d4)(ae.RP),Ae=(0,L.d4)(ae.AQ),we=(0,L.d4)(ae.qV),ke=(0,L.d4)(ne.C1),Se=(0,L.d4)(ee.NP),Le=(0,L.d4)(ee.qM),xe=(0,L.d4)(ee.ux),Te=(0,L.d4)(te.CT),Ie=(0,L.d4)(ae.GD),Ne=(0,L.d4)(ae.Rw),[Re,Be]=(0,k.ok)(),Me=(0,H.p)(),Oe=(0,ie.hN)(),{owner:Pe,admin:He}=(0,le.A)();let Ve=(0,S.zy)();const De=(0,S.Zp)(),{token:Fe}=se(),{modal:je}=r.A.useApp(),ze=(0,L.Pj)(),{confirm:Ze}=je,qe=(0,V.u)(),Ue=[...Ie,...Ne],[Ge,$e]=(0,n.useState)(null);(0,n.useEffect)((()=>{$===F.ti.ALL?$e(_e+Ae):$===F.ti.PROJECT?$e(Ae):$===F.ti.STANDARD&&$e(_e)}),[$,_e,Ae]);const We=+Re.get("page"),Xe=Re.get("folder"),Ke=+Re.get("tag"),[Ye,Qe]=(0,Y.Kh)(),[Je]=(0,Y._3)(),[et]=(0,Y.dN)(),{refetch:tt}=(0,S.KC)(),[at,nt]=(0,n.useState)(!1),lt=`/projects/${e}/emails/new`,rt=l&&l===F.UW,ot=l===F.y2&&!Ke;(0,n.useEffect)((()=>{Ee((0,ee.FC)())}),[Ee]);const[it,st]=(0,n.useState)({projectId:e,page:ot?We:1,pageSize:F.mU,notEmbed:!0,tags:null,folderTag:null}),{isLoading:ct,isSuccess:dt,isError:mt,isFetching:ut,refetch:pt,error:gt}=(0,Y.Xw)({...it,folderTag:null,tags:null,status:"main"},{skip:a||!(null===(X=it.name)||void 0===X||!X.length)&&l!==F.y2}),[ht,ft]=(0,n.useState)({page:We||1,pageSize:F.mU,folderTag:null,tags:[],groupType:$}),{isLoading:bt,isSuccess:vt,isError:Et,isFetching:Ct,data:yt=[],refetch:_t,error:At}=(0,Y.PX)({...ht,groupType:$},{skip:!a||(Math.ceil(_e+Ae/F.mU)||1)<ht.page||$===F.ti.PROJECT}),{isLoading:wt,isSuccess:kt,isError:St,isFetching:Lt,data:xt=[],refetch:Tt,error:It}=(0,Y.PX)({...ht,projectId:e,groupType:$},{skip:!a||(Math.ceil(Ae/F.mU)||1)<ht.page||$===F.ti.STANDARD}),Nt=(e,t)=>$===F.ti.ALL?e||t:$===F.ti.PROJECT?t:e,Rt=Nt(bt,wt),Bt=Nt(vt,kt),Mt=Nt(Et,St),Ot=Nt(Ct,Lt),Pt=Nt(_t,Tt),Ht=Nt(At,It),[Vt,Dt]=(0,n.useState)({projectId:e,page:1,pageSize:F.mU,notEmbed:!0,tags:Ke&&[Ke],folderTag:l}),{isLoading:Ft,isSuccess:jt,isError:zt,isFetching:Zt,error:qt,refetch:Ut}=(0,Y.Xw)({...Vt,tags:l&&Vt.folderTag?null:Vt.tags,status:"custom"},{skip:a||rt||l===F.y2||Vt.folderTag!==l||!(null===(de=Vt.name)||void 0===de||!de.length)&&(rt||l===F.y2)}),[Gt,$t]=(0,n.useState)({projectId:e,page:rt?We:1,pageSize:F.mU,notEmbed:!0,tags:Ke&&[Ke],folderTag:null,status:"trash"}),[Wt,Xt]=(0,n.useState)(!1),{isLoading:Kt,isSuccess:Yt,isError:Qt,isFetching:Jt,data:ea,refetch:ta,error:aa}=(0,Y.Xw)({...Gt,status:"trash",folderTag:null,page:Wt?Gt.page:1},{skip:a||(Math.ceil(ye/F.mU)||1)<Gt.page||!(null===(me=Gt.name)||void 0===me||!me.length)&&!rt||!(null===(ue=Gt.tags)||void 0===ue||!ue[0])&&xe>0});(0,n.useEffect)((()=>{Xt(!!ea||Math.ceil(ye/F.mU)>=Gt.page)}),[ea,Gt.page,ye]);let na=[];$!==F.ti.STANDARD&&xt&&we>=ht.page&&na.unshift(...xt),$!==F.ti.PROJECT&&yt&&(na.push(...yt),na=na.slice(0,F.mU));const la=a?ht:rt?Gt:ot?it:Vt,ra=a?Bt:rt?Yt:ot?dt:jt,oa=a?Rt:rt?Kt:ot?ct:Ft,ia=a?Mt:rt?Qt:ot?mt:zt,sa=a?Ot:rt?Jt:ot?ut:Zt,ca=a?Pt:rt?ta:ot?pt:Ut,da=a?Ht:rt?aa:ot?gt:qt,ma=(a?Ge:rt?ye:ot?Ce:null===Se||void 0===Se||null===(pe=Se[l||(null===(ge=Vt.tags)||void 0===ge?void 0:ge[0])])||void 0===pe?void 0:pe.total)||0,ua=a?na:rt?xe:ot?Le:null===Se||void 0===Se||null===(he=Se[l||(null===(fe=Vt.tags)||void 0===fe?void 0:fe[0])])||void 0===he?void 0:he.list;(0,n.useEffect)((()=>{ra&&ca&&G(ca)}),[G,ca,ra]);const pa=(0,n.useCallback)((e=>{a?ft((t=>({...t,...e}))):rt?$t((t=>({...t,...e}))):ot?st((t=>({...t,...e}))):Dt((t=>({...t,...e})))}),[a,rt,ot]);(0,n.useEffect)((()=>{var e;"rest_post_invalid_page_number"===(null===da||void 0===da||null===(e=da.data)||void 0===e?void 0:e.code)&&pa({page:1})}),[da,pa]),(0,n.useEffect)((()=>{if(!a){(Xe&&Xe!==l||O&&Ke!==O)&&pa({folderTag:l,page:1});let e={page:Xe===l&&la.page?la.page:1};l&&!Ke&&(e.folder=l),O&&(e.tag=O),Be(e,{replace:!0})}}),[la.page,De,a,Xe,l,O,Ke,pa,Be]);const ga=e=>{Ze({maskClosable:!0,centered:!0,title:ve(rt?"Are you sure to irrevocably delete \u201c":"Are you sure to delete \u201c","email")+e.title+be("\u201d email?"),icon:n.createElement(h.A,{style:{color:"#ff4d4f"}}),okText:be("Yes"),cancelText:be("No"),onOk:()=>(e=>ze.dispatch(Y.GY.endpoints.deleteEmail.initiate({id:e.id,force:rt})).then((e=>{e.error?(0,P.p6)(e,Oe):e.data&&((0,P.wB)(be("The email \u201c")+e.data.title+ve("\u201d was successfully removed.","email"),Oe),ca(),B(),ta(),rt&&tt())})))(e)})},ha=e=>{nt(!0),et({emailId:null===e||void 0===e?void 0:e.id,status:"publish"}).then((t=>{t.error?Oe.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.message}}),placement:"bottomRight"}):(e.folder[0]?ca():pt(),B(),ta(),Oe.success({message:be("The email \u201c")+e.title+ve("\u201d was successfully recovered.","recovery"),placement:"bottomRight"})),nt(!1)}))},fa=e=>{nt(!0),Je(null===e||void 0===e?void 0:e.id).then((t=>{var a,l,r,o,i;const s=t.data;Ye({title:(0,P.fq)(s.title),project:s.project,subject:s.subject,description:s.description,html:(0,P.el)(s.html||"",s.title),parent_email:s.parent_email||F.iU,common_styles:s.common_styles||"",utm_parameters:{utm_source:null===(a=s.utm_parameters)||void 0===a?void 0:a.utm_source,utm_medium:null===(l=s.utm_parameters)||void 0===l?void 0:l.utm_medium,utm_campaign:null===(r=s.utm_parameters)||void 0===r?void 0:r.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 a;t.error?Oe.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.message}}),placement:"bottomRight"}):(null!==(a=s.folder)&&void 0!==a&&a[0]?Ut():pt(),B(),Oe.success({message:be("The copy of email \u201c")+e.title+ve("\u201d was successfully created.","copy"),placement:"bottomRight"}));nt(!1)}))}))},ba=(e,t)=>{et({emailId:t.id,folder:e.key===F.y2?[]:[e.key]}).then((e=>{var a,n;(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.folder[0])&&Ee(Y.GY.endpoints.getEmails.initiate({...la,folderTag:(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.folder[0])||null})),l!==F.y2&&(Ee((0,ee.X)({folder:l,emailId:t.id})),Ee(Y.GY.endpoints.getEmails.initiate({...la,folderTag:l||null}))),pt(),B()})).catch((e=>{}))},va=[{width:"40%",title:ve("Email","letter"),dataIndex:["title"],render:(e,t,a)=>n.createElement(k.N_,{to:rt?"":ce(Ve,t),style:{cursor:rt?"default":"pointer"}},e)},{width:"20%",title:be("Tags"),dataIndex:["emailtags"],render:(e,t,a)=>n.createElement(o.A,{wrap:!0,size:8},e&&e.map((e=>{const t=null===M||void 0===M?void 0:M.find((t=>{var a;return(null===(a=t.id)||void 0===a?void 0:a.toString())===(null===e||void 0===e?void 0:e.toString())}));return t&&n.createElement(i.A,{color:Fe.colorPrimary,style:{cursor:"pointer",borderRadius:6,marginRight:0},key:t.id,onClick:()=>j(null,t.id)},t.name)||null})))},{width:"3%",title:"",dataIndex:"lock",render:(e,t,a)=>{var l,r;return e&&n.createElement(f.A,{className:I()("lock-icon",{"lock-icon__disabled":!(Pe||He||(null===(l=ke.id)||void 0===l?void 0:l.toString())===(null===(r=t.author)||void 0===r?void 0:r.toString()))})})}},{width:"16%",title:be("Creator"),dataIndex:["_embedded","author"],render:(e,t,a)=>{var n;return(null===e||void 0===e||null===(n=e[0])||void 0===n?void 0:n.name)||""}},{width:"9%",title:be("Created"),className:"nobr",dataIndex:"date",render:(e,t,a)=>(0,P.Yq)((0,w.A)(e),be),sorter:!0,sortOrder:(0,P.Np)(la.order)},{width:"3%",title:"",dataIndex:"",key:"x",onCell:()=>({style:{padding:0}}),render:(e,t)=>{var a,l,r,o,i,c,d,m;const u=t.folder[0]||null,p={icon:n.createElement(b.A,{style:{fontSize:18}}),label:be("New emails"),key:F.y2,onClick:e=>ba(e,t)},g=null===T||void 0===T?void 0:T.map((e=>({icon:n.createElement(v.A,{style:{fontSize:18}}),label:e.name,key:e.id,className:e.id,onClick:e=>ba(e,t)}))),w=(null===g||void 0===g?void 0:g.filter((e=>!u||e.key!==u)))||[];u&&(null===w||void 0===w||w.unshift(p));let S=[];return(Pe||He||(null===(a=ke.id)||void 0===a?void 0:a.toString())===(null===(l=t.author)||void 0===l?void 0:l.toString()))&&!rt&&S.push({label:n.createElement(N.A,{key:"Lock",element:t}),icon:t.lock?n.createElement(E.A,{style:{fontSize:"16px"}}):n.createElement(f.A,{style:{fontSize:"16px"}})}),(Pe||He||(null===(r=ke.id)||void 0===r?void 0:r.toString())===(null===(o=t.author)||void 0===o?void 0:o.toString()))&&!rt&&w.length>0&&S.push({label:be("Transfer to folder"),icon:n.createElement(v.A,{style:{fontSize:"16px"}}),children:w}),!rt&&S.push({label:n.createElement(k.N_,{to:ce(Ve,t)},be("Edit")),icon:n.createElement(C.A,{style:{fontSize:"16px"}}),key:"Enter",className:"em-analytics__email-enter"},{label:be("Clone"),key:"Clone",icon:n.createElement(y.A,{style:{fontSize:"16px"}}),className:"em-analytics__email-clone",disabled:Qe.isLoading,onClick:()=>fa(t)}),(Pe||He||(null===(i=ke.id)||void 0===i?void 0:i.toString())===(null===(c=t.author)||void 0===c?void 0:c.toString()))&&rt&&S.push({label:be("Recover"),icon:n.createElement(_.A,{style:{fontSize:"16px"}}),key:"Recover",onClick:()=>ha(t)}),(Pe||He||(null===(d=ke.id)||void 0===d?void 0:d.toString())===(null===(m=t.author)||void 0===m?void 0:m.toString()))&&S.push({label:be("Remove"),icon:n.createElement(h.A,{style:{fontSize:"16px"}}),key:"Remove",className:"em-analytics__email-remove",style:{color:"#ff4d4f"},onClick:()=>ga(t)}),n.createElement(s.A,{arrow:"true",placement:"bottom",menu:{items:S},trigger:["hover"]},n.createElement("span",{className:"projects-table__actions"},n.createElement(A.A,null)))}}],[Ea,Ca]=(0,n.useState)(!1);(0,n.useEffect)((()=>{var e,t;for(let a in Te)if(a||""===a||0===a.length){Ca(!0),pa({...Te,folderTag:l,page:1});break}(null!==(e=Te.tags)&&void 0!==e&&e.length||Te.name)&&pa({...Te,folderTag:l,page:1}),null!==(t=Te.group)&&void 0!==t&&t.length&&ft({...Te,group:Te.group,page:1,pageSize:F.mU})}),[Te,Ee,l,rt,pa,a]);const[ya,_a]=(0,n.useState)(!1),[Aa]=(0,Q.mI)(),[wa]=(0,J.dS)(),{data:ka}=(0,S.KC)(),Sa=async e=>{const t=e[0];try{_a(!0);const e=await(0,re.q2)(t,(async(e,t)=>{try{const a=await(0,re.zn)(e,Aa);if(!a)return"string"===typeof e?e:"";const n=(0,re.Qm)(t,a.type,x),l=new File([a],n.toLowerCase()),r=await wa({user_id:ke.id,folder:ka.id,file:l});return(0,re.$K)(r,e)}catch(gt){return"string"===typeof e?e:""}}),(e=>{e.title=e.title||(0,oe.Ay)(t.name)[0]})),[a]=(0,oe.Ay)(t.name),l=(0,P.ez)(e)||a||"";return Ye({title:l,project:ka.id,subject:l,description:"",html:e,parent_email:F.iU,folder:[]}).then((e=>{e&&(e.error?Oe.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"}):(De(`/projects/${ka.id}/emails/${e.data.id}`),qe({event:"upload_file",action:"import_email"})))})).finally((()=>_a(!1)))}catch(a){_a(!1);const e=a instanceof Error?a.message:a;Oe.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:e}}),placement:"bottomRight"})}};return n.createElement("div",{className:"project-page__list"},a&&n.createElement("div",{className:"project-page__cards-grid create-buttons"},n.createElement(c.A,{className:"element-card element-card_email element-card_template element-card_template-empty",hoverable:!0,style:{cursor:"pointer"},cover:n.createElement("div",{className:"element-card__empty-template"},n.createElement(q.A,{icon:"NewEmail"}),n.createElement("div",{className:"element-card__empty-template__text"},n.createElement("div",{className:"element-card__empty-template__title"},be("Blank template")),n.createElement("div",{className:"element-card__empty-template__description"},be("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)"}),Me.set(F.A9.em_new_email,e),t&&(window.localStorage.setItem(F.V0.em_active_tab,t),window.localStorage.setItem(F.V0.em_ai_settings,t)),void(0,P.XZ)(De,lt);var e,t}}),n.createElement(c.A,{className:"element-card element-card_email element-card_template element-card_template-empty",hoverable:!0,style:{cursor:"pointer"},loading:ya,cover:n.createElement("div",{className:"element-card__empty-template"},n.createElement(q.A,{icon:"Import"}),n.createElement("div",{className:"element-card__empty-template__text"},n.createElement("div",{className:"element-card__empty-template__title"},be("Import email")),n.createElement("div",{className:"element-card__empty-template__description"},be("Work with your markup"))," ")),onClick:()=>{qe({event:"click",action:"import_email"}),(0,re.QM)("application/zip, message/rfc822, text/html",Sa)}}),n.createElement(c.A,{className:"element-card element-card_email element-card_template element-card_template-empty",hoverable:!0,style:{cursor:"pointer"},cover:n.createElement("div",{className:"element-card__empty-template"},n.createElement(q.A,{icon:"generationAI"}),n.createElement("div",{className:"element-card__empty-template__text"},n.createElement("div",{className:"element-card__empty-template__title"},be("AI email generation")),n.createElement("div",{className:"element-card__empty-template__description"},be("Creating an email on request")," "))),onClick:()=>Ee((0,W.qf)(F.lx.ADD_NEW_AI_EMAIL))})),a&&(!!Ge||!!Ue.length)&&n.createElement("div",{className:"element-card__group-tag-wrapper"},n.createElement(d.A,{gap:"10px",style:{marginBottom:15,marginLeft:4},wrap:!0},Ue.map((e=>n.createElement(i.A,{className:"blue-color element-card__group-tag",key:e.key,color:"#1677ff"},e.name," ",n.createElement(q.A,{onClick:()=>{const t=Ue.filter((t=>t.key!==e.key));Ee(Ie.length?(0,ae.es)(t):(0,ae.BN)(t)),Ee((0,te.ry)({[Ie.length?"group":"projectGroup"]:t,[Ie.length?"projectGroup":"group"]:[]}))},icon:"CloseTag"})))),Ue.length>1&&n.createElement(i.A,{className:"blue-color element-card__group-tag element-card__group-tag_close"},be("Clear all")," ",n.createElement(q.A,{onClick:()=>{Ee((0,ae.mb)()),Ee((0,te.ry)({group:[],projectGroup:[]}))},icon:"CloseAll"})))),oa&&!(null!==ua&&void 0!==ua&&ua.length)&&n.createElement(m.A,{active:!0}),ia&&n.createElement(u.A,{message:be("Error"),description:be("Error when receiving data. Try again (reload page) or contact support."),type:"error",showIcon:!0}),!oa&&!sa&&0===(null===ua||void 0===ua?void 0:ua.length)&&(Ea||U>0?n.createElement(u.A,{message:be("Emails not found"),description:"",type:"info",showIcon:!0}):l!==F.y2?n.createElement(u.A,{message:be("You don't have any emails in this folder."),description:be("Add your first email to the folder..."),type:"info",showIcon:!0}):n.createElement(u.A,{message:be("You don't have any emails yet."),description:be("Add your first email by clicking the Create a new email button."),type:"info",showIcon:!0})),(null===ua||void 0===ua?void 0:ua.length)>0&&t===F.rl&&n.createElement(p.A,{rowKey:e=>e.id,bordered:!0,dataSource:ua,columns:va,loading:sa||at,onChange:(e,t,{order:a,field:n},{action:l})=>{"sort"===l&&pa(a?{page:la.page||1,order:(0,P.gq)(a),orderby:n,pageSize:F.mU}:{page:la.page||1,pageSize:F.mU})},showSizeChanger:!1,pageSize:F.mU,pagination:{current:la.page||1,total:ma,hideOnSinglePage:!0,showSizeChanger:!1,pageSize:F.mU,position:["bottomLeft"],onChange:(t,a)=>pa({projectId:e,page:t,pageSize:a})}}),((null===ua||void 0===ua?void 0:ua.length)>0||ra)&&t===F.Y$&&n.createElement(n.Fragment,null,(sa||at||ya)&&n.createElement("div",{className:"project-page__loader"},n.createElement(Z.A,{small:!0})),n.createElement("div",{className:"project-page__cards-grid"},ua&&ua.map((e=>a?n.createElement(z,{key:e.id,element:e,setSearchFilters:j}):n.createElement(R.A,{key:e.id,element:e,setSearchFilters:j,isTrash:rt,foldersList:T,refetch:pt,projectTags:M,foldersHandlers:{handleRemove:ga,handleRecover:ha,handleClone:fa,handlerChangeFolder:ba}})))),n.createElement(g.A,{current:la.page||1,total:ma,hideOnSinglePage:!0,showSizeChanger:!1,pageSize:F.mU,onChange:(e,t)=>pa({page:e,pageSize:t})})),n.createElement(K,null))}},19862:(e,t,a)=>{"use strict";a.d(t,{A:()=>D});var n=a(98173),l=a(40120),r=a(71446),o=a(37969),i=a(38927),s=a(93771),c=a(49856),d=a(67034),m=a(64909),u=a(10267),p=a(40186),g=a(35076),h=a(71879),f=a(10585),b=a(82648),v=a(74984),E=a(79245),C=a(30150),y=a(2604),_=a(12543),A=a(26298),w=a.n(A),k=a(27499),S=a(48753),L=a(8218),x=a(97032),T=a(83027),I=a(23424),N=a(32947),R=a(40277);const B=({project:e,parentFolderId:t=null,folderTaxonomy:a})=>{const{__:l,_x:r}=(0,_.s9)(),i=(0,y.wA)(),[s]=k.A.useForm(),c=(0,n.useRef)(null),d=(0,y.d4)(I.cL)===N.lx.ADD_NEW_FOLDER_MODAL,u=(0,m.hN)(),p=`project_${e.id}`,[g]=(0,x.OD)(),[h]=(0,T.f1)(),f=(0,n.useCallback)((()=>{s.resetFields(),setTimeout((()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.focus({cursor:"start"})}),0)}),[s]);(0,n.useEffect)((()=>{d&&f()}),[d,f]);const b=()=>i((0,I.Oo)()),[v,E]=(0,T.Yb)(),[C,A]=(0,n.useState)(!1),[w,B]=(0,n.useState)(t),M=()=>{s.validateFields().then((({name:t})=>(A(!0),w?v({name:t,parent:w}).then((({data:e,error:t})=>{t?(0,R.p6)({error:t},u):(u.success({message:l("The folder \u201c")+e.name+r("\u201d was successfully created.","folder"),placement:"bottomRight"}),window.localStorage.setItem(N.V0.em_folder_is_open,"true"),b(),h({parent:w}))})):v({name:p}).then((({data:n,error:o})=>{if(!o)return g({projectId:e.id,[a]:n.id||w}).then((({data:e,error:n})=>{if(o)(0,R.p6)({error:o},u);else if(e)return v({name:t,parent:e[a][0]}).then((({data:t,error:n})=>{if(!n)return u.success({message:l("The folder \u201c")+t.name+r("\u201d was successfully created.","folder"),placement:"bottomRight"}),B(e[a][0]),h({parent:e[a][0]}).then(((e,t)=>{e?(window.localStorage.setItem(N.V0.em_folder_is_open,"true"),b()):t&&(0,R.p6)({error:t},u)}));(0,R.p6)({error:n},u)}))}));(0,R.p6)({error:o},u)})).catch((e=>{})).finally((()=>A(!1)))))).catch((e=>{})).finally((()=>A(!1)))};return n.createElement(S.A,{title:l("Add a new folder"),open:d,onOk:M,onCancel:b,className:"new-folder-modal",centered:!0,footer:[n.createElement(o.Ay,{key:"submit",type:"primary",size:"large",loading:E.isLoading||C,onClick:M},l("Create folder"))]},n.createElement(k.A,{form:s,layout:"vertical",name:"add_new_folder_form",onFinish:M,initialValues:{remember:!1,name:""},autoComplete:"off",style:{paddingTop:10}},n.createElement(k.A.Item,{name:"name",rules:[{required:!0,message:l("Please enter the folder name")}]},n.createElement(L.A,{disabled:E.isLoading,size:"large",placeholder:l("Enter the folder name"),ref:c,style:{marginBottom:5}}))))};var M=a(14023),O=a(79253),P=a(15812);const{useToken:H}=l.A;function V(e,t,a,n,l,r,o){return{key:t,icon:a,children:n,label:e,className:l,type:r,onTitleClick:o}}const D=({currentFolderId:e,setCurrentFolderId:t,setActiveTagHandler:a,activeTagId:l,projectTags:A,folderTaxonomy:k})=>{var S,L,x,R,D;const{__:F,_x:j}=(0,_.s9)(),z=(0,y.Pj)(),Z=(0,y.wA)(),q=(0,m.hN)(),{modal:U}=r.A.useApp(),{confirm:G}=U,{token:$}=H(),W=(0,y.d4)("folder"===k?O.MY:P.D2),X=(0,y.d4)("folder"===k?O.aO:P.dV),K=(0,y.d4)(I.o8),[Y]=(0,E.ok)(),Q=Y.get("folder"),{data:J}=(0,C.KC)(),ee=F("folder"===k?"New emails":"New blocks");let te;null!==window.localStorage.getItem(N.V0.em_folder_is_open)&&(te=window.localStorage.getItem(N.V0.em_folder_is_open));const[ae,ne]=(0,n.useState)({folderId:null,folderName:""}),{data:le,refetch:re}=(0,T.Jz)({parent:null===(S=J[k])||void 0===S?void 0:S[0]},{skip:!(null!==(L=J[k])&&void 0!==L&&L[0])});(0,n.useEffect)((()=>{Z((0,I.sB)(le||[]))}),[Z,le,k]);const oe=(a=null)=>{const l=null===me||void 0===me?void 0:me.filter((e=>!a||e.key!==a));null===l||void 0===l||l.unshift((e=>({icon:n.createElement(u.A,{style:{fontSize:18}}),label:e("New emails"),key:N.y2}))(F));const r=(a,l)=>{G({maskClosable:!0,centered:!0,title:j("Are you sure to delete \u201c","folder")+l+F("\u201d folder?"),icon:n.createElement(p.A,{style:{color:"#ff4d4f"}}),okText:F("Yes"),cancelText:F("No"),onOk:()=>(a=>{z.dispatch(T.kE.endpoints.deleteFolder.initiate(a)).then((({data:l,error:r})=>{r?q.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:r.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:r.data.message}}),placement:"bottomRight"}):null!==l&&void 0!==l&&l.deleted&&(q.success({message:F("The folder \u201c")+l.previous.name+j("\u201d was successfully deleted.","recovery"),placement:"bottomRight"}),a===+e&&t(N.y2),re())}))})(a)})};let s=[{label:F("Rename"),key:"Rename",icon:n.createElement(g.A,{style:{fontSize:"16px"}}),onClick:()=>((e,t)=>{Z((0,I.qf)(N.lx.EDIT_FOLDER_NAME_MODAL)),ne({folderId:e,folderName:t})})(a,K.find((e=>e.id===a)).name)},{label:F("Remove"),icon:n.createElement(p.A,{style:{fontSize:"16px"}}),key:"Remove",style:{color:"#ff4d4f"},onClick:()=>r(a,K.find((e=>e.id===a)).name)}];return n.createElement(o.Ay,{type:"text",className:"project-page__folder_menu","data-folder-id":a||"",size:"large",key:a},n.createElement(i.A,{disabled:!ie,className:"project-page__folder_menu-inner",placement:"right",menu:{items:s},trigger:["hover"]},n.createElement("span",{className:"projects-table__actions"},n.createElement(h.A,null))))},[ie,se]=(0,n.useState)("true"===te),[ce,de]=(0,n.useState)(!0);(0,n.useEffect)((()=>{se(!(null===K||void 0===K||!K.length)&&"true"===te)}),[null===K||void 0===K?void 0:K.length,te]);const me=null===K||void 0===K?void 0:K.map((t=>({icon:+e===t.id?n.createElement(f.A,{style:{fontSize:18}}):n.createElement(b.A,{style:{fontSize:18}}),label:n.createElement("div",{className:"project-page__folder-title"},n.createElement("span",null,t.name),!!t.count&&n.createElement("span",{className:"project-page__folder-count project-page__folder-count_menu "},t.count)),key:t.id,className:`folder_${t.id}`})));let ue=[V(n.createElement("div",{className:"project-page__folder-title"},n.createElement("span",null,ee),W>0&&n.createElement("span",{className:"project-page__folder-count "},W)),N.y2,n.createElement(u.A,{style:{fontSize:18}})),V(n.createElement("div",{className:"project-page__folder-title"},n.createElement("span",null,F("Folders")),(null===K||void 0===K?void 0:K.length)>0&&!!K.reduce(((e,t)=>e+t.count),0)&&ce&&!ie&&n.createElement("span",{className:"project-page__folder-count "},K.reduce(((e,t)=>e+t.count),0))),N.Ug,ie?n.createElement(f.A,{style:{fontSize:18}}):n.createElement(b.A,{style:{fontSize:18}}),null!==K&&void 0!==K&&K.length?me:null,"project-page__all-folders","inline",(({domEvent:e})=>{K.length||e.preventDefault()}))];ue.push(V(n.createElement("div",{className:"project-page__folder-title"},n.createElement("span",null,F("Deleted")),X>0&&n.createElement("span",{className:"project-page__folder-count "},X)),"deleted",n.createElement(p.A,{style:{fontSize:18}})));(0,n.useEffect)((()=>{ne((e=>{if(e.folderId){const t=K.find((t=>t.id===e.folderId));return{folderId:null===t||void 0===t?void 0:t.id,folderName:null===t||void 0===t?void 0:t.name}}return e})),se(!(null===K||void 0===K||!K.length)&&"true"===te)}),[K,te]);const pe=e=>{const t=e.target.closest(".project-page__all-folders .ant-menu-item"),a=e.target.closest(".project-page__all-folders"),n=e.target.closest(".project-page__add-folder"),l=t?t.querySelector(".project-page__folder-count"):null,r=e.target.closest("[data-folder-id]"),o=e.target.closest(".ant-dropdown-menu"),i=null===t||void 0===t?void 0:t.getAttribute("class").split(" "),s=null===i||void 0===i?void 0:i[i.length-1].slice(7),c=()=>document.querySelectorAll("[data-folder-id]").forEach((e=>e.style.opacity=0)),d=()=>document.querySelectorAll(".project-page__folder-count").forEach((e=>e.style.opacity=1)),m=document.querySelector(`[data-folder-id="${s}"]`);de(!(a||n)),t&&m||r||o?(r||o||(c(),d()),m&&(m.style.opacity=1,l&&(l.style.opacity=0))):(c(),d())};return(0,n.useEffect)((()=>{document.querySelectorAll(".project-page__folder_menu").forEach(((e,t)=>{e.style.transform=`translateY(${40*(t+1)}px)`}))}),[K]),(0,n.useEffect)((()=>(document.addEventListener("mouseover",pe),()=>{document.removeEventListener("mouseover",pe)})),[]),n.createElement("div",{style:{position:"sticky",top:0}},n.createElement(s.A,{items:ue,className:"project-page__folders",mode:"inline",defaultSelectedKeys:[Q||N.y2],defaultOpenKeys:["true"===te&&N.Ug],openKeys:ie&&[N.Ug],onOpenChange:e=>{se(e.includes(N.Ug)),window.localStorage.setItem(N.V0.em_folder_is_open,e.includes(N.Ug))},forceSubMenuRender:!0,onSelect:e=>{e.key!==N.Ug&&a(e.key)},selectedKeys:[l?null:e]}),n.createElement(o.Ay,{className:w()("project-page__add-folder",{"project-page__add-folder_hidden":!ie&&(null===K||void 0===K?void 0:K.length)>0&&ce}),type:"text",shape:"default",icon:n.createElement(v.A,{style:{fontSize:16}}),onClick:()=>Z((0,I.qf)(N.lx.ADD_NEW_FOLDER_MODAL))}),null===K||void 0===K?void 0:K.map((e=>oe(e.id))),n.createElement("div",{style:{maxWidth:"300px",padding:"20px 10px"}},n.createElement(c.A,{wrap:!0,size:10},null===A||void 0===A||null===(x=A.filter((e=>e.count)))||void 0===x||null===(R=x.sort(((e,t)=>e.count<t.count?1:-1)))||void 0===R?void 0:R.map((e=>n.createElement(d.A,{key:e.id,color:l===e.id?$.blue8:$.colorPrimary,style:{cursor:"pointer",borderRadius:6,marginRight:0},checked:l===e.id,onClick:()=>a(null,e.id)},n.createElement("span",null,e.name),n.createElement("span",{className:"tag__counter"},e.count)))))),n.createElement(B,{project:J,parentFolderId:(null===(D=J[k])||void 0===D?void 0:D[0])||null,folderTaxonomy:k}),n.createElement(M.A,{folder:ae,refetch:re}))}},55207:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var n=a(98173),l=a(40120),r=a(27499),o=a(86774),i=a(40277),s=a(32947);const{useToken:c}=l.A,d=({form:e,label:t,name:a,disabled:l,elementSettings:d})=>{var m,u;const p=(null===d||void 0===d?void 0:d.type)===s.bV.CAROUSEL?null===(m=e.getFieldValue("images"))||void 0===m?void 0:m[a]:e.getFieldValue(a),[g,h]=(0,n.useState)("success"),{token:f}=c();return(0,n.useEffect)((()=>{p?(0,i.DI)(p).then((e=>{h(e)})).catch((e=>{h(e)})):h("")}),[e,p]),n.createElement(r.A.Item,{name:a,validateStatus:g,style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(o.A,{validateStatus:g,placeholder:t,name:a,disabled:l,elementSettings:d,imageInfo:(null===d||void 0===d?void 0:d.type)===s.bV.CAROUSEL?null===d||void 0===d||null===(u=d.carouselImages)||void 0===u?void 0:u[a.split("_")[1]]:d}))};d.defaulProps={disabled:!1};const m=d},3783:(e,t,a)=>{"use strict";var n=a(98173),l=a(13785),r=a(27499),o=a(49856),i=a(29123),s=a(12543),c=a(86774),d=a(40277),m=a(52919),u=a(32947);const p=({form:e,placeholder:t,name:a,tooltipTitle:p,disabled:g,elementSettings:h})=>{var f;const{__:b}=(0,s.s9)(),v=(0,m.XW)(),E=e.getFieldValue(a),[C,y]=(0,n.useState)("success"),_=(0,n.useRef)(),[A,w]=(0,n.useState)(!(!h.mobileBackgroundImage||"none"!==h.mobileBackgroundImage[0].value));(0,n.useEffect)((()=>{E?(0,d.DI)(E).then((e=>{y(e)})).catch((e=>{y(e)})):y("")}),[e,E]);return n.createElement(n.Fragment,null,n.createElement(l.A,{trigger:["hover"],title:p,placement:"left"},n.createElement(r.A.Item,{name:a,validateStatus:C,style:{marginBottom:-7}},n.createElement(c.A,{validateStatus:C,placeholder:t,name:a,disabled:g,elementSettings:h,imageInfo:h.type===u.bV.CAROUSEL?null===(f=h.carouselImages)||void 0===f?void 0:f[a.split("_")[1]]:h})),n.createElement(o.A,{size:8,align:"end",style:{marginTop:-3,display:"flex"}},n.createElement(i.A,{ref:_,size:"small",checked:A,onChange:t=>{e.setFieldsValue({mobileBackgroundImage:""}),w((e=>!e)),v({operation:u.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:h.type,settings:{mobileBackgroundImage:[{classNamePrefix:"em-mob-background_image-",value:A?"":"none",type:"url"}]}})},id:"without-background-image"}),n.createElement("div",{className:"ant-form-item-switch-label-small",style:{position:"relative",top:2}},n.createElement("label",{htmlFor:"without-background-image"},b("Without background image"))))))};p.defaulProps={disabled:!1}},77306:(e,t,a)=>{"use strict";a.d(t,{A:()=>O});var n=a(98173),l=a(40120),r=a(71446),o=a(59010),i=a(201),s=a(66964),c=a(27499),d=a(37969),m=a(38927),u=a(49823),p=a(67034),g=a(40186),h=a(35076),f=a(71879),b=a(2604),v=a(12543),E=a(26298),C=a.n(E),y=a(48753),_=a(8218),A=a(64909),w=a(97032),k=a(83027),S=a(23424),L=a(40277),x=a(32947),T=a(30150);const I=({taxonomy:e})=>{var t;const{__:a,_x:l}=(0,v.s9)(),r=(0,b.wA)(),[o]=c.A.useForm(),i=(0,n.useRef)(null),s=(0,b.d4)(S.cL)===x.lx.ADD_NEW_GROUP_MODAL,m=(0,A.hN)();let u;({data:u}=(0,T.KC)());const p=`project_${u.id}`,g=null===(t=u[x.bV.GROUP])||void 0===t?void 0:t[0],[h]=(0,w.OD)(),[f]=(0,k.y$)(),E=(0,n.useCallback)((()=>{o.resetFields(),setTimeout((()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.focus({cursor:"start"})}),0)}),[o]);(0,n.useEffect)((()=>{s&&E()}),[s,E]);const C=()=>r((0,S.Oo)()),[I,N]=(0,k.JI)(),[R,B]=(0,n.useState)(!1),[M,O]=(0,n.useState)(g),P=()=>{const t=(t,n)=>h({projectId:u.id,[e]:n||M}).then((async n=>{if("error"in n)(0,L.p6)(n,m);else if("data"in n){let r=n.data;const o=await I({name:t,parent:r[e][0]});if(!("error"in o))return m.success({message:a("The group \u201c")+o.data.name+l("\u201d was successfully created.",e),placement:"bottomRight"}),O(r[e][0]),f({parent:r[e][0]}).then((({data:e,error:t})=>{e?C():t&&(0,L.p6)({error:t},m)}));(0,L.p6)(o,m)}}));o.validateFields().then((({name:n})=>(B(!0),M?I({name:n,parent:M}).then((t=>{"error"in t?(0,L.p6)(t,m):(m.success({message:a("The group \u201c")+t.data.name+l("\u201d was successfully created.",e),placement:"bottomRight"}),C(),f({parent:M}))})):I({name:p}).then((e=>{if(!("error"in e))return t(n,e.data.id);{const{data:a}=e.error;if("term_exists"===a.code&&a.data.term_id)return t(n,a.data.term_id);(0,L.p6)(e,m)}})).catch((e=>{})).finally((()=>B(!1)))))).catch((e=>{})).finally((()=>B(!1)))};return n.createElement(y.A,{title:a("Add a new group"),open:s,onOk:P,onCancel:C,className:"new-group-modal",centered:!0,footer:[n.createElement(d.Ay,{key:"submit",type:"primary",size:"large",loading:N.isLoading||R,onClick:P},a("Create group"))]},n.createElement(c.A,{form:o,layout:"vertical",name:"add_new_group_form",onFinish:P,initialValues:{remember:!1,name:""},autoComplete:"off",style:{paddingTop:10}},n.createElement(c.A.Item,{name:"name",rules:[{required:!0,message:a("Please enter the group name")}]},n.createElement(_.A,{disabled:N.isLoading,size:"large",placeholder:a("Enter the group name"),ref:i,style:{marginBottom:5}}))))};var N=a(15737),R=a(8807),B=a(1047);const{useToken:M}=l.A,O=({className:e,refetchProjectGroups:t,isLoading:a})=>{const{__:l,_x:E}=(0,v.s9)(),y=(0,b.wA)(),_=(0,A.hN)(),{modal:w}=r.A.useApp(),{confirm:L}=w,{token:T}=M(),O=(0,b.d4)(B.UI),[P]=(0,k.Lh)(),H=(e,a)=>{L({maskClosable:!0,centered:!0,title:E("Are you sure to delete \u201c","group")+a+l("\u201d group and all nested groups?"),icon:n.createElement(g.A,{style:{color:"#ff4d4f"},rev:void 0}),okText:l("Yes"),cancelText:l("No"),onOk:()=>(e=>{P(e).unwrap().then((e=>{null!==e&&void 0!==e&&e.deleted&&(_.success({message:l("The group \u201c")+e.previous.name+E("\u201d was successfully deleted.","recovery"),placement:"bottomRight"}),t())})).catch((e=>{_.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.data.message}}),placement:"bottomRight"})}))})(String(e))})};let V=e=>[{label:l("Rename"),key:"Rename",icon:n.createElement(h.A,{style:{fontSize:"16px"},rev:void 0}),onClick:()=>{return t=e.id,a=e.name,y((0,S.qf)(x.lx.EDIT_GROUP_NAME_MODAL)),void F({id:t,name:a});var t,a}},{label:l("Remove"),icon:n.createElement(g.A,{style:{fontSize:"16px"},rev:void 0}),key:"Remove",style:{color:"#ff4d4f"},onClick:()=>H(e.id,e.name)}];const[D,F]=(0,n.useState)({id:null,name:""});return n.createElement("div",{className:C()("groups-management",{[e]:e})},a?n.createElement(o.A,{active:!0}):n.createElement(i.A,null,!(null===O||void 0===O||!O.length)&&(null===O||void 0===O?void 0:O.map(((e,t)=>{var a;return n.createElement(s.A,{key:e.id,span:24},n.createElement(c.A.Item,{name:`group_${e.id}`,style:{marginBottom:T.formItemMarginBottomMD},label:n.createElement("div",{style:{display:"flex",justifyContent:"space-between",width:"100%",alignItems:"center"}},n.createElement("span",null,e.name),n.createElement(d.Ay,{type:"text",className:"groups-management__group_menu","data-group-id":e.id,size:"large"},n.createElement(m.A,{className:"groups-management__group_menu-inner",placement:"bottomLeft",menu:{items:V(e)},trigger:["hover"]},n.createElement("span",{className:"groups-management__actions"},n.createElement(f.A,{rev:void 0}))))),className:"groups-management__group-select",rules:[{message:"Please input category name!",type:"array"}]},n.createElement(u.A,{mode:"tags",style:{width:"100%"},placeholder:l("Type category here"),options:null===(a=e.children)||void 0===a?void 0:a.map((e=>({label:e.name,value:String(e.id)}))),tagRender:e=>{const{label:t,closable:a,onClose:l}=e;return n.createElement(p.A,{color:T.colorPrimary,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},closable:a,onClose:l,style:{borderRadius:6}},t)},getPopupContainer:()=>document.querySelector(".email-settings__collapse")})))}))),n.createElement(s.A,{span:24},n.createElement(c.A.Item,{style:{marginBottom:T.formItemMarginBottomMD}},n.createElement(d.Ay,{id:"add_group_button",icon:n.createElement(R.A,{icon:"AddSlide"}),style:{width:"100%"},onClick:()=>y((0,S.qf)(x.lx.ADD_NEW_GROUP_MODAL))},l("Add group"))))),n.createElement(I,{taxonomy:x.bV.GROUP}),n.createElement(N.A,{group:D,refetch:t}))}},47113:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(98173),l=a(84893),r=a(26298),o=a.n(r),i=a(40120),s=a(49856),c=a(95942),d=a(27941);const{useToken:m}=i.A,u=({className:e,leftBlock:t,rightBlock:a,isHeaderCodeMenuOpen:r=!1})=>{const{token:i}=m(),u=(0,n.useRef)(),p=(0,d.rD)();return n.createElement(n.Fragment,null,n.createElement(c.A,null),p.headerShow&&n.createElement("header",{className:o()("header",{[e]:e}),style:{borderColor:i.colorBorder}},!r&&n.createElement(l.A,{nodeRef:u,in:!r,timeout:300,classNames:"transition"},n.createElement("div",{className:"header__container container"},n.createElement("div",{className:"header__left",style:{flexGrow:1}},t),n.createElement("div",{className:"header__right"},n.createElement(s.A,{size:10},a))))))}},93718:(e,t,a)=>{var n={"./en_US.ts":[53640,2466],"./ru_RU.ts":[48755,6859]};function l(e){if(!a.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],l=t[0];return a.e(t[1]).then((()=>a(l)))}l.keys=()=>Object.keys(n),l.id=93718,e.exports=l},16403:()=>{},63779:()=>{},77199:()=>{}}]);