@emailmaker/emailmaker 1.0.68 → 1.0.69

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 (35) hide show
  1. package/README.md +1 -1
  2. package/asset-manifest.json +12 -15
  3. package/emailmaker-esm.js +1 -1
  4. package/emailmaker.js +1 -1
  5. package/iframe/429.js +1 -1
  6. package/iframe/766.js +1 -1
  7. package/iframe/iframe.7f4a25eb84aaea5b3817.html +1 -1
  8. package/iframe/js/882.e44a0ef7.js +1 -0
  9. package/iframe/js/97.47c4f6e3.js +1 -0
  10. package/iframe/sandbox-eblock.js +1 -1
  11. package/package.json +1 -1
  12. package/plugin.html +1 -1
  13. package/plugin_blocks_test.html +1 -1
  14. package/plugin_default.html +1 -1
  15. package/plugin_idigital.html +1 -1
  16. package/plugin_s.html +1 -1
  17. package/static/css/7327.aba2da0b.chunk.css +1 -0
  18. package/static/js/{3017.4f68b70a.chunk.js → 3017.de375fc8.chunk.js} +1 -1
  19. package/static/js/{9167.044611fd.js → 4560.1deed372.js} +2 -2
  20. package/static/js/{6162.0d7e5643.chunk.js → 7327.54656928.chunk.js} +2 -2
  21. package/static/js/7725.7c0a7012.js +1 -0
  22. package/static/js/9449.d7921ac5.js +1 -0
  23. package/static/js/{emailmaker_core.06effbe1.js → emailmaker_core.92d3e3ba.js} +2 -2
  24. package/translations.pot +8 -8
  25. package/iframe/js/882.d2dae328.js +0 -1
  26. package/iframe/js/97.690a8ad1.js +0 -1
  27. package/static/css/6162.77c3ee71.chunk.css +0 -1
  28. package/static/js/1250.85fde73e.js +0 -1
  29. package/static/js/3739.adfe38c2.js +0 -1
  30. package/static/js/7721.470251b4.js +0 -1
  31. package/static/js/mocks.c196c616.chunk.js +0 -1
  32. /package/iframe/js/{882.d2dae328.js.LICENSE.txt → 882.e44a0ef7.js.LICENSE.txt} +0 -0
  33. /package/static/js/{9167.044611fd.js.LICENSE.txt → 4560.1deed372.js.LICENSE.txt} +0 -0
  34. /package/static/js/{6162.0d7e5643.chunk.js.LICENSE.txt → 7327.54656928.chunk.js.LICENSE.txt} +0 -0
  35. /package/static/js/{emailmaker_core.06effbe1.js.LICENSE.txt → emailmaker_core.92d3e3ba.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- (globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[3739],{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":[41735],"./si_LK.js":[57860,4823],"./sk_SK.js":[5011,6418],"./sl_SI.js":[16273,2827],"./sr_RS.js":[75748,8682],"./sv_SE.js":[51685,77],"./ta_IN.js":[39009,1640],"./th_TH.js":[62651,5902],"./tk_TK.js":[98442,5864],"./tr_TR.js":[94887,4686],"./uk_UA.js":[37224,1788],"./ur_PK.js":[68095,8590],"./useLocale.js":[46555],"./vi_VN.js":[43142,1241],"./zh_CN.js":[56721,9169],"./zh_HK.js":[29319,197],"./zh_TW.js":[85180,4813]};function 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===f||e===E||e===g||e===b||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),b="\f".charCodeAt(0),f=" ".charCodeAt(0),E="\t".charCodeAt(0),C={"text/x-handlebars-template":!0,"text/html":!0};function v(e,t=0,a=n.S5.WithinContent,g=!1){const h=new r(e,t);let b,f,E,v,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,b=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 E=k(),y=void 0,v=void 0,E.length>0?(f=!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()?(f=!0,S(e,l.Whitespace)):f&&(v=h.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase(),v.length>0)?(_=n.S5.AfterAttributeName,f=!1,S(e,l.AttributeName)):h.advanceIfChars([d,c])?(_=n.S5.WithinContent,S(e,l.StartTagSelfClose)):h.advanceIfChar(c)?(_="script"===E?y&&C[y]?n.S5.WithinContent:n.S5.WithinScriptContent:"style"===E?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()?(f=!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"===v&&(y=a),_=n.S5.WithinTag,f=!1,S(e,l.AttributeValue);const r=h.peekChar();return r===p||r===u?(h.advance(1),h.advanceUntilChar(r)&&h.advance(1),"type"===v&&(y=h.getSource().substring(e+1,h.pos()-1)),_=n.S5.WithinTag,f=!1,S(e,l.AttributeValue)):(_=n.S5.WithinTag,f=!1,L());case n.S5.WithinScriptContent:let b=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===b&&(b=2);else if("--\x3e"===t)b=1;else if("/"!==t[1])2===b&&(b=3);else{if(3!==b){h.goBack(t.length);break}b=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:()=>b}}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=v(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,b=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(b).then((async e=>{const t=e;t.data=null,t.error=null,t.meta={request:b,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"},66330:(e,t,a)=>{"use strict";a.d(t,{Y:()=>S});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),b=a(90614),f=a(15626),E=a(3326);const C=a(41735).default,v="em_locale",y="em_ant_locale",_="em_mergeTags_locale",A=e=>{try{return JSON.parse(localStorage.getItem(e)||"")}catch{return null}},w=(e,t)=>{const a=A(e);return a?(localStorage.removeItem(e),localStorage.setItem(t,JSON.stringify(a)),a):null},k=()=>{var e,t;return(null===(e=A(y))||void 0===e?void 0:e.data)||(null===(t=w("ant_locale",y))||void 0===t?void 0:t.data)||C},S=({children:e})=>{const t=(0,s.wA)(),c=(0,g.hN)(),C=(0,s.d4)(m.B),[S,L]=(0,i.HO)(),[x,T]=(0,i.Yj)(),I=(0,b.ml)(f.AZ.READ_LOCALE),M=C||(u.EW.isPlugin?void 0:"ru_RU"),[N,R]=(0,n.useState)((()=>(0,l.hU)())),[B,H]=(0,n.useState)(k),[P,V]=(0,n.useState)(!0),[O,D]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const e=A(v)||w("locale",v);if(null!==e&&void 0!==e&&e.data&&(R((0,l.hU)(e.data)),V(!1)),!u.EW.isPlugin){const e=A(_);null!==e&&void 0!==e&&e.data&&t((0,p.Kj)(e.data))}}),[]),(0,n.useEffect)((()=>{M&&a(77778)(`./${"uk"===M?"uk_UA":M}.js`).then((e=>{const t=e.default;H((a=>a.locale!==t.locale?(localStorage.setItem(y,JSON.stringify(e.default)),t):a))})).catch((e=>{}))}),[M]),(0,n.useEffect)((()=>{!u.EW.isPlugin&&M&&a(93718)(`./${"uk"===M?"uk_UA":M}.ts`).then((e=>{t((0,p.Kj)(e.default)),localStorage.setItem(_,JSON.stringify(e.default))}))}),[M,t]),(0,h.Z)((([e])=>{!e&&L.error&&c.fromError("GET_LOCALES_ERROR",void 0,L.error)}),[L.error,c]),(0,h.Z)((([e])=>{M&&e!==M&&I.fire(M).then((([e])=>{if(e){var t;const a=null===(t=d()(e,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===t?void 0:t.locale_data.default;R((0,l.hU)(a)),D(!0)}else L.isSuccess?x({id:M}):S()}))}),[M,I]),(0,n.useEffect)((()=>{if(L.isSuccess&&M){const e=L.data.find((([e])=>e===M));if(!e)return void D(!0);const t=A(v);(null===t||void 0===t?void 0:t.id)===M&&e[1]<=t.time?D(!0):x({id:M})}}),[M,L,x]),(0,h.Z)((([e])=>{!e&&T.isError&&c.fromError("GET_LOCALE_ERROR",void 0,T.isError)}),[T.isError,c]),(0,n.useEffect)((()=>{if(L.isSuccess&&T.isSuccess){var e,t;if((null===(e=T.originalArgs)||void 0===e?void 0:e.id)!==M)return;const a=T.data,n=L.data.find((([e])=>e===M)),r=null===(t=d()(a,{format:"jed",fuzzy:!0,domain:"default"}))||void 0===t?void 0:t.locale_data.default;localStorage.setItem(v,JSON.stringify({id:M,time:(null===n||void 0===n?void 0:n[1])||Date.now(),data:r})),R((0,l.hU)(r)),D(!0)}}),[T,M,L]),n.createElement(r.CY,{i18n:N},n.createElement(E.r4.Provider,{value:!P||O},n.createElement(o.Ay,{locale:B},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)},63233:(e,t,a)=>{"use strict";a.d(t,{A:()=>K});var n=a(16791),l=a(78915),r=a(46767),o=a(52779),i=a(92485),s=a(98119),c=a(65716),d=a(83027),m=a(98845),u=a(40835),p=a(19992),g=a(73668),h=a(79965),b=a(94160),f=a(6193),E=a(47491),C=a(90925),v=a(30397),y=a(64706),_=a(38251),A=a(23424),w=a(79253),k=a(15812),S=a(1047),L=a(54838),x=a(22536),T=a(12741),I=a(39206),M=a(47014),N=a(38540),R=a(61058),B=a(68984),H=a(12005),P=a(8111),V=a(705),O=a(92960),D=a(33932),F=a(70875),j=a(59089),Z=a(871),z=a(2952),q=a(80772),W=a(84572),U=a(16390),$=a(3792),G=a(80148);const X=(0,n.HY)({[$.di.reducerPath]:$.di.reducer,[O.Z8.reducerPath]:O.Z8.reducer,[H.Ad.reducerPath]:H.Ad.reducer,[l.Q2.reducerPath]:l.Q2.reducer,[o.S.reducerPath]:o.S.reducer,[i.k.reducerPath]:i.k.reducer,[r.OV.reducerPath]:r.OV.reducer,[s.yR.reducerPath]:s.yR.reducer,[c.Nq.reducerPath]:c.Nq.reducer,[d.kE.reducerPath]:d.kE.reducer,[m.GY.reducerPath]:m.GY.reducer,[B.VM.reducerPath]:B.VM.reducer,[u.yH.reducerPath]:u.yH.reducer,[p.B.reducerPath]:p.B.reducer,[g.f.reducerPath]:g.f.reducer,[P.Jg.reducerPath]:P.Jg.reducer,[Z.CL.reducerPath]:Z.CL.reducer,[z.tO.reducerPath]:z.tO.reducer,[V.vx.reducerPath]:V.vx.reducer,[h.M.reducerPath]:h.M.reducer,[b.F.reducerPath]:b.F.reducer,[f.KA.reducerPath]:f.KA.reducer,[E.Sd.reducerPath]:E.Sd.reducer,[C.y.reducerPath]:C.y.reducer,[A.Ay.name]:A.Ay.reducer,[w.Ay.name]:w.Ay.reducer,[k.Ay.name]:k.Ay.reducer,[S.Ay.name]:S.Ay.reducer,[L.Ay.name]:L.Ay.reducer,[x.Ay.name]:x.Ay.reducer,[T.Ay.name]:T.Ay.reducer,[I.Ay.name]:I.Ay.reducer,[M.Ay.name]:M.Ay.reducer,[N.Ay.name]:N.Ay.reducer,[q.Ay.name]:q.Ay.reducer,[R.Ay.name]:R.Ay.reducer,[D.Zs.reducerPath]:D.Zs.reducer,[F.Uu.reducerPath]:F.Uu.reducer,[W.Ay.name]:W.Ay.reducer,[j.So.reducerPath]:j.So.reducer,[U.Ay.name]:U.Ay.reducer,[v.C.reducerPath]:v.C.reducer,[y.N.reducerPath]:y.N.reducer,[_.U8.reducerPath]:_.U8.reducer}),K=(e,t)=>"authorizationApi/resetApiState"===t.type?X({[G.IP]:e[G.IP],[H.Ad.reducerPath]:e[H.Ad.reducerPath]},t):X(e,t)},12133:e=>{e.exports=({__:e})=>`<style em="styles">\n amp-accordion > section > * {\n background: none !important;\n padding: 0 !important;\n border: none !important;\n overflow: visible !important;\n }\n</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:()=>N,RM:()=>u,TW:()=>R,Ze:()=>V,ok:()=>B,xc:()=>H,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:b,mobileRadiusTopRight:f,mobileRadiusBottomRight:E,borderRadiusBottomRight:C,borderRadiusTopRight:v,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"},M={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},N={mobileBorderRadiusAll:"all",mobileRadiusTopLeft:"topLeft",mobileRadiusBottomLeft:"bottomLeft",mobileRadiusTopRight:"topRight",mobileRadiusBottomRight:"bottomRight"},R=(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,B=e=>e||(0===e?"0":""),H=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,b,f,E,C,v;let y={...e,link:e.link?e.link:"https://",borderRadiusAll:B(null===(t=e.borderRadius)||void 0===t?void 0:t.all),borderRadiusTopLeft:B(null===(a=e.borderRadius)||void 0===a?void 0:a.topLeft),borderRadiusBottomLeft:B(null===(n=e.borderRadius)||void 0===n?void 0:n.bottomLeft),borderRadiusTopRight:B(null===(l=e.borderRadius)||void 0===l?void 0:l.topRight),borderRadiusBottomRight:B(null===(r=e.borderRadius)||void 0===r?void 0:r.bottomRight),mobileBorderRadiusAll:B(null===(o=e.mobileBorderRadius)||void 0===o?void 0:o.all),mobileRadiusTopLeft:B(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:B(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:B(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:B(null!==(null===(b=e.mobileBorderRadius)||void 0===b?void 0:b.bottomRight)?null===(f=e.mobileBorderRadius)||void 0===f?void 0:f.bottomRight:null===(E=e.mobileBorderRadius)||void 0===E?void 0:E.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===(C=e.carouselImages)||void 0===C?void 0:C.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===(v=e.sections)||void 0===v?void 0:v.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 V(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,[M[_]]:s[_],[M[y]]:s[y],[M[v]]:s[v],[M[C]]:s[C],[M[r]]:+o[r]}};break;case _:case y:case v:case C:i={borderRadius:{...e.borderRadius,[M[L]]:null,[M[r]]:+o[r]}};break;case g:case h:case b:case f:case E:i={mobileBorderRadius:{...e.mobileBorderRadius,[N[h]]:s[h],[N[b]]:s[b],[N[f]]:s[f],[N[E]]:s[E],[N[r]]:o[r],classNamePrefix:"em-mob-border_radius_"+N[r]+"-"}};break;default:i=o}return{...e,...i}}},56545:(e,t,a)=>{"use strict";function n(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")}}}a.d(t,{g:()=>n})},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$}},81551:(e,t,a)=>{"use strict";a.d(t,{Q:()=>n.Q});var n=a(74568)},80148:(e,t,a)=>{"use strict";a.d(t,{A$:()=>p,Ff:()=>c,IP:()=>s,My:()=>i.My,Nj:()=>m,lg:()=>d,rl:()=>u});var n=a(98173),l=a(2604),r=a(88296),o=a(74568),i=a(73942);const s=i.if,c=(e,t)=>{if(!e){const e=o.Q.createChild(),t=(0,r.Q)();return o.Q.inject(t,e),t}return e};function d(){const e=(0,l.Pj)(),t=(0,i.My)(e);return function(e,a){t.inject(e,a)}}function m(e){const t=(0,l.Pj)();return(0,i.My)(t).getInstance(e)}function u(e){const[t,a]=(0,n.useState)(),r=(0,l.Pj)(),o=(0,n.useRef)(Promise.resolve()),s=(0,i.My)(r);return(0,n.useEffect)((()=>{const t=o.current=o.current.then((()=>s.getInstanceAsync(e))).then((e=>{t===o.current&&a(e)}),(e=>{}))}),[a,e,r,s]),t}function p(e){const t=(0,l.Pj)();return(0,i.My)(t).getServices(e)}},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,b,f,E;const C=(0,p.wA)(),v=(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=v.getValue();k.fire({...a,id:t||a.isNew?void 0:a.id,html:e})}}),[v,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===(b=e.utm_parameters)||void 0===b?void 0:b.utm_medium)||"",(null===e||void 0===e||null===(f=e.utm_parameters)||void 0===f?void 0:f.utm_source)||"",(null===e||void 0===e||null===(E=e.utm_parameters)||void 0===E?void 0:E.utm_term)||"",k,t]),(0,c.Z)((([e])=>{e!==v&&S.fire(v)}),[v,S]),(0,d.useEffect)((()=>{if(n.EW.isPlugin){const a=v.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=v.getValue();w.fire(e),k.fire({...a,id:t||a.isNew?void 0:a.id,html:e})}}));return()=>a.dispose()}}),[v,w,k,e,t]);const T=(0,d.useCallback)((async()=>{const e=x.current;try{var t;(0,s.po)(v),v.setValue((null===e||void 0===e||null===(t=e.html)||void 0===t?void 0:t.replaceAll("\r\n","\n"))||"")}finally{(0,s.SF)(v)}const a=v.getValue();await y.sendAsync(n.Ru.SANDBOX_SET_ENTITY,{html:a,guid:e.renderGuid})}),[v,y]),I=(0,d.useCallback)((async()=>{const e=x.current;await y.sendAsync(n.Ru.SANDBOX_SET_ENTITY,{html:v.getValue(),guid:e.renderGuid})}),[v,y]),M=(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]),N=(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]),R=(0,d.useCallback)((()=>{const e=x.current;return y.sendAsync(n.Ru.SANDBOX_INITED,{guid:e.renderGuid})}),[y]),B=(0,d.useCallback)((e=>{const a=x.current;C(void 0===a.id?(0,u.Uh)(!0):(0,m.Wm)(!0));const n={...a,id:t||a.isNew?void 0:a.id,html:v.getValue()};return e&&(n.reset=!0),A.fire(n)}),[C,A,v,t]),H=(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:v.getValue()})}),[_,v,t]),[V]=(0,c.c)((function*(){try{L.current=!0,yield*(0,g.T1)(H),yield*(0,g.T1)(P),yield*(0,g.T1)(T),yield*(0,g.T1)(M),yield*(0,g.T1)(N),yield*(0,g.T1)(R),yield*(0,g.T1)(B)}finally{L.current=!1}}),[T,M,N,B,P,H,R]),[O]=(0,c.c)((function*(){try{yield*(0,g.T1)(H),yield*(0,g.T1)(P),yield*(0,g.T1)(I),yield*(0,g.T1)(M),yield*(0,g.T1)(N),yield*(0,g.T1)(R),yield*(0,g.T1)(B)}catch(e){}}),[T,M,N,B,P,H,R]);(0,c.Z)((async([t])=>{const a=null===e||void 0===e?void 0:e.renderGuid;a&&a!==t&&V()}),[null===e||void 0===e?void 0:e.renderGuid,V]),(0,d.useEffect)((()=>{const e=y.addListenerAsync(n.Ru.RELOAD,(async()=>{await O()}));return()=>e.dispose()}),[y,O])}},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()))}}}},81843:(e,t,a)=>{"use strict";a.d(t,{OI:()=>i,yc:()=>o});var n=a(28618),l=a(33105),r=a(83238);function o(){return n.QE.get(l.$D)}function i(){return n.QE.get(r.L)}},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(65716);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,b=!h||t<+a,f=p.billingPageUrl||"/billing",E=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:E,className:"limit-counter",style:{color:b?g.colorText:"white"},color:b?g.colorFillSecondary:"rgb(255, 77, 79)"}),h&&n.createElement("div",{style:{fontSize:14,textDecoration:"underline"},onClick:()=>u(f)},d("Need more?")))}},61736:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});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",b=a.p+"static/media/frame_dark.png",f=(a.p,({isModalVisible:e})=>{const{__:t}=(0,d.s9)(),a=(0,o.wA)(),s=(0,i.Zp)(),f=(0,g.p)();let E=(0,i.zy)();const C=(0,n.useRef)(null);let v=[];return v.push({title:t("From scratch"),click:()=>{a((0,m.Oo)()),f.set(u.A9.em_new_email,127017),(0,p.XZ)(s,`${E.pathname}/new`)}}),v.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)()),f.set(u.A9.em_template_email,1868),(0,p.XZ)(s,`${E.pathname}/new_from/1868`)}}),v.push({title:"\u0428\u0430\u0431\u043b\u043e\u043d \u0432 \u0442\u0451\u043c\u043d\u043e\u0439 \u0442\u0435\u043c\u0435",img:b,click:()=>{a((0,m.Oo)()),f.set(u.A9.em_template_email,1869),(0,p.XZ)(s,`${E.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"},v&&v.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:C,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,C.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)))))))})},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(65716),h=a(98845),b=a(68984),f=a(22536),E=a(1047),C=a(40277),v=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,b.h1)(),I=(0,m.wA)(),M=(0,m.d4)(f.b9),N=(0,m.d4)(E.CT),R=(0,m.d4)(y.GD),{token:B}=_(),H=(0,m.Pj)(),P=e?M:N,{isSuccess:V,data:O}=g.Nq.endpoints.getProject.select(+l)(H.getState(),{skip:t}),{isSuccess:D,data:F}=(0,h.sl)(+t,{skip:!t}),j=(0,n.useCallback)((()=>{I(e?(0,f.om)({}):(0,E.om)({}))}),[I,e]);(0,n.useEffect)((()=>{j()}),[j]),(0,n.useEffect)((()=>{}),[D,F,t]),(0,n.useEffect)((()=>{}),[V,O,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(v.jg[e[n]]),value:e[n]});z(t)}}),[T,a]);const[W,U]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const a=t?D&&(0,C._q)(F,v.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))||[]:V&&(0,C._q)(O,e?v.YY:v.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})}),[V,P,e,x,O,D,F,t]),(0,n.useEffect)((()=>{x.setFieldsValue({group:R})}),[x,R]),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,C._q)(F,v.zh).filter((e=>a[n].includes(e.name))).map((e=>e.id))||null:(0,C._q)(O,e?v.YY:v.zh).filter((e=>a[n].includes(e.name))).map((e=>e.id))||null;I(e?(0,f.om)({...P,tags:r}):(0,E.om)({...P,tags:r}));break;case w:I(e?(0,f.om)({...P,type:l.type||null}):(0,E.om)({...P,type:l.type||null}));break;case A:q&&window.clearTimeout(q),q=window.setTimeout((function(){I(e?(0,f.om)({...P,name:l.name}):(0,E.om)({...P,name:l.name}))}),100);break;case S:I(e?(0,f.om)({...P,group:l.group||null}):(0,E.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:B.colorText},onClick:()=>U(!W),className:"input-icon"}),allowClear:!0,open:W,onDropdownVisibleChange:e=>{U(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:()=>b});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 b=({id:e,onChange:t,value:a,alignRight:d,placeholder:b,isDisabled:f=!1,usedColors:E=[],codeMode:C=!1})=>{const{__:v}=(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(C?".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:v("Used"),colors:E},{label:v("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||f,className:"color-picker-input__control",placeholder:b||v("Select color"),value:a,ref:k,onChange:t})))}},55760:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var n=a(98173),l=a(40120),r=a(28973),o=a(71446),i=a(2604),s=a(95349),c=a(47014),d=a(1047),m=a(32947),u=a(39420),p=a(27941),g=a(16390),h=a(25389),b=a(3326);function f(e,t){if("object"===typeof e&&e){t(e);for(const a of Object.values(e))f(a,t)}}const E=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&&f(o,(e=>t.add(e))),n[r]=o):(l||(l=n[e]={},t.add(l)),l[r]=o)}return n}return a}}}(),C={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}}},v={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 y=function({children:e}){const t=(0,i.d4)(d.Up),a=(0,i.d4)(c.C1),l=window.localStorage.getItem(m.V0.em_color_scheme),f=matchMedia(m.F3).matches?m.nd:m.T,[y,_]=(0,n.useState)(l||f),A=(0,p.rD)(),w=(0,i.wA)(),k=(0,u.c8)();(0,n.useEffect)((()=>{const e=m.EW.isPlugin?null===a||void 0===a?void 0:a.theme:l||f;_(e),(0,u.A5)(e),w((0,d.eX)(e===m.nd?`vs-${e}`:m.T)),k()}),[l,t,f,null===a||void 0===a?void 0:a.theme,A.pathEnabled,w,k]);const S=(0,n.useCallback)((e=>{e&&e!==m.IJ?((0,u.Hk)(e),localStorage.setItem(m.V0.em_color_scheme,e)):localStorage.removeItem(m.V0.em_color_scheme)}),[]);(0,n.useEffect)((()=>{const e=null===a||void 0===a?void 0:a.theme,t=localStorage.getItem(m.V0.em_color_scheme);e&&e!==t&&S(e)}),[a,S]);const L=(0,n.useCallback)((()=>{const e=localStorage.getItem(m.V0.em_color_scheme);S(e)}),[S]);(0,n.useEffect)((()=>{L()}),[L]);const x=(0,i.d4)(g.RP),[T,I]=(0,n.useState)("light"===y?C:v),[M]=(0,n.useState)(1);(0,n.useEffect)((()=>{const e="light"===y?C:v,t=x[y],a=t?(0,h.TJ)(e,t):e;I({...a,token:{...a.token,appZoom:M}})}),[I,y,x,M]);const N=(0,b.LG)(),R=(0,n.useCallback)((()=>N),[N]);return n.createElement(r.Ay,{theme:T,getPopupContainer:R},n.createElement(s.N7,{transformers:[E]},n.createElement(o.A,null,e)))}},52427:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var n=a(98173),l=a(73114),r=a(98447),o=a(12543);let i=null,s=null;const c=[{label:"Segoe UI, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif",value:"-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif",className:"Segoe"},{label:"Helvetica, 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"}],d={100:"Thin","100i":"Thin Italic",200:"ExtraLight","200i":"ExtraLight Italic",300:"Light","300i":"Light Italic",400:"Regular","400i":"Regular Italic",500:"Medium","500i":"Medium Italic",600:"SemiBold","600i":"SemiBold Italic",700:"Bold","700i":"Bold Italic",800:"ExtraBold","800i":"ExtraBold Italic",900:"Black","900i":"Black Italic"},m=({value:e,onChange:t,textEditor:m=!1,codeMode:u=!1})=>{const{__:p}=(0,o.s9)(),[g,h]=(0,n.useState)(),[b,f]=(0,n.useState)(e),[E,C]=(0,n.useState)(null),[v,y]=(0,n.useState)(!0),_=[],A=[];if((0,n.useEffect)((()=>{(i?Promise.resolve(i):s||(a.p.replace(/\/$/,""),s=a.e(2642).then(a.t.bind(a,42642,19)).then((({default:e})=>(i=e,i))).catch((e=>{throw e})),s)).then((e=>{C(e),y(!1)})).catch((()=>y(!1)))}),[]),(0,n.useEffect)((()=>{if(!E)return;const t=E.familyMetadataList.filter((e=>e.subsets.includes("cyrillic")&&"Sans Serif"===e.category&&e.popularity<100)),a=E.familyMetadataList.filter((e=>e.subsets.includes("cyrillic")&&"Serif"===e.category&&e.popularity<100));if(m&&e!==b)if(e)if("Sans Serif"===e[1]){var n;h(["Google Fonts","Sans Serif",null===(n=t.find((t=>(null===t||void 0===t?void 0:t.family.replace(/\s/g,""))===e[2].replace(/\s/g,""))))||void 0===n?void 0:n.family,e[3].replace(/Italic/g," Italic")])}else if("Serif"===e[1]){var l;h(["Google Fonts","Serif",null===(l=a.find((t=>(null===t||void 0===t?void 0:t.family.replace(/\s/g,""))===e[2].replace(/\s/g,""))))||void 0===l?void 0:l.family,e[3].replace(/Italic/g," Italic")])}else"Safe Fonts"!==e[0]&&void 0!==g||h(e);else h([""]);else void 0===g&&b&&h(e);m||h(e),f(e)}),[e,E,m,b,g]),E){E.familyMetadataList.filter((e=>e.subsets.includes("cyrillic")&&"Sans Serif"===e.category&&e.popularity<100)).forEach((e=>{_.push({label:e.family,value:e.family,children:Object.keys(e.fonts).filter((e=>d[e])).map((e=>({label:d[e],value:d[e]})))})}));E.familyMetadataList.filter((e=>e.subsets.includes("cyrillic")&&"Serif"===e.category&&e.popularity<100)).forEach((e=>A.push({label:e.family,value:e.family,children:Object.keys(e.fonts).filter((e=>d[e])).map((e=>({label:d[e],value:d[e]})))})))}return n.createElement(l.A,{allowClear:!1,showSearch:!0,value:g,placement:"bottomRight",options:v?[{label:n.createElement(r.A,{size:"small",style:{marginLeft:8}}),value:"loading",disabled:!0}]:[{label:p("Safe Fonts"),value:"Safe Fonts",children:c},{label:p("Google Fonts"),value:"Google Fonts",children:[{label:p("Sans Serif"),value:"Sans Serif",children:_},{label:p("Serif"),value:"Serif",children:A}]}],getPopupContainer:e=>e.closest(u?".selected_text_common_form_mobile":m?".email-pane__collapse-wrapper":".email-pane__content-col"),onChange:t})}},54880:(e,t,a)=>{"use strict";a.d(t,{A:()=>V});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),b=a(2604),f=a(85086),E=a(80703),C=a(38256),v=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(68984),I=a(52919),M=a(40277),N=a(86095),R=a(26298),B=a.n(R);const{useToken:H}=l.A,{TextArea:P}=r.A,V=({comments:e,subjectId:t,isLoggedIn:a,projectTitle:l="",emailElementType:R,email:V})=>{const{__:O,_n:D}=(0,_.s9)(),F=(0,I.XW)(),{modal:j}=o.A.useApp(),{error:Z,notification:z}=j,{token:q}=H(),W=(0,n.useRef)(null),[U,$]=(0,n.useState)(""),[G,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)(),[be,fe]=(0,L.vn)(),[Ee]=(0,x.LX)(),[Ce]=(0,T.yW)(),ve=(0,b.d4)(w.C1),ye=(0,N.fn)(),_e=()=>{const e={title:null===V||void 0===V?void 0:V.title,emailId:null===V||void 0===V?void 0:V.id,project:null===V||void 0===V?void 0:V.project,html:null===ye||void 0===ye?void 0:ye.getValue(),excerpt:null===V||void 0===V?void 0:V.date_gmt};"email"===R?Ee({emailId:null===V||void 0===V?void 0:V.id,body:e}).catch((e=>{})):Ce({blockId:null===V||void 0===V?void 0:V.id,body:e}).catch((e=>{}))};function Ae(e){te(Q),ne(""),X("REPLY")}const we=()=>{Z({maskClosable:!0,centered:!0,title:O("Please log in"),content:O("To leave comments you must be logged into EmailMaker and added to the project ")+`${l}.`,okText:O("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?((U||ae)&&await de({subjectId:t,author:ve.id,parent:"ADD"===G?"0":ee,content:U||ae,author_name:ve.name,author_email:ve.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:O("There's no such comment.")}}),placement:"bottomRight"});t===A.Ru.APPLICATION_DISCUSS_NO_COMMENT&&z.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:O("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:O("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:B()(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===ve.id?Re:Be},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,M.Yq)((0,M.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(f.A,{style:{color:q.colorInfo,top:-2,position:"relative"}}))),children:n.createElement(n.Fragment,null,"REPLY"===G&&ee===e.id&&Ne,"EDIT"===G&&ee===e.id&&Me,Ie(e.children))})))))}))),Me=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:O("Editing comments"),onKeyDown:e=>"Escape"===e.key&&Se(),onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&ke(),ref:W})),n.createElement(d.A.Item,{className:"buttons"},n.createElement(m.A,null,oe?n.createElement(u.A,{title:O("Are you sure?"),okText:O("Yes"),cancelText:O("No"),onConfirm:function(e){be(ee),ie(!1),ce(""),F({operation:A.Ru.SANDBOX_DISCUSS_REMOVE_TARGET,value:se})}},n.createElement(p.Ay,{loading:fe.isLoading,type:K||oe&&"EDIT"===G&&""!==se?"primary":"default",className:"button-target "+(K&&!oe?"button-target_choose":""),style:oe&&"EDIT"===G&&""!==se?{background:q.colorInfo}:{}},n.createElement(f.A,{className:"icon-target"}))):n.createElement(p.Ay,{onClick:xe,loading:fe.isLoading,type:K||oe&&"EDIT"===G&&""!==se?"primary":"default",className:"button-target "+(K&&!oe?"button-target_choose":""),style:oe&&"EDIT"===G&&""!==se?{background:q.colorInfo}:{}},n.createElement(f.A,{className:"icon-target"})),n.createElement(p.Ay,{className:"button-reply",type:"primary",loading:he.isLoading,htmlType:"submit"},O("Save")," ",n.createElement(E.A,null)),n.createElement(p.Ay,{onClick:Se,className:"button-reply"},O("Cancel"))))),Ne=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:O("Reply to the comment"),onKeyDown:e=>"Escape"===e.key&&Se(),onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&Le(),ref:W})),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:O("Add a note"),overlayStyle:{maxWidth:"150px"}},n.createElement(p.Ay,{onClick:xe,type:K||oe&&"REPLY"===G&&""!==se?"primary":"default",className:"button-target "+(K&&!oe?"button-target_choose":""),style:oe&&"REPLY"===G&&""!==se?{background:q.colorInfo}:{}},n.createElement(f.A,{className:"icon-target"}))),n.createElement(p.Ay,{className:"button-reply",type:"primary",loading:"REPLY"===G&&me.isLoading,htmlType:"submit"},O("Reply")," ",n.createElement(S.A,{icon:"SendOutlined"})),n.createElement(p.Ay,{onClick:Se,className:"button-reply",ghost:!0,type:"primary"},O("Cancel")))));(0,n.useEffect)((()=>{"REPLY"===G&&W.current.focus({cursor:"start"}),"EDIT"===G&&W.current.focus({cursor:"end"})}),[G]);let Re=[];Re.push({key:"Reply to comment",icon:n.createElement(C.A,{style:{fontSize:"16px"}}),label:O("Reply"),onClick:Ae},{key:"Edit comment",icon:n.createElement(v.A,{style:{fontSize:"16px"}}),label:O("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:O("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 Be=[];return Be.push({key:"Reply to comment",icon:n.createElement(C.A,{style:{fontSize:"16px"}}),label:O("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:O("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:B()(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===ve.id?Re:Be},overlayStyle:{minWidth:"auto"}},n.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}})),datetime:n.createElement(n.Fragment,null,n.createElement("span",{dangerouslySetInnerHTML:{__html:e.date&&(0,M.Yq)((0,M.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(f.A,{style:{color:q.colorInfo,top:-2,position:"relative"}}))),children:n.createElement(n.Fragment,null,"REPLY"===G&&ee===e.id&&Ne,"EDIT"===G&&ee===e.id&&Me,Ie(e.children))})))}),n.createElement(d.A,{onFinish:Le,className:"ADD"===G?"addMode":"replyEditMode"},n.createElement(d.A.Item,{style:{marginBottom:10}},n.createElement(P,{value:U,onChange:e=>$(e.target.value),rows:4,placeholder:O("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:O("Add a note"),overlayStyle:{maxWidth:"150px"}},n.createElement(p.Ay,{onClick:xe,type:K||oe&&"ADD"===G&&""!==se?"primary":"default",className:"button-target "+(K&&!oe?"button-target_choose":""),style:oe&&"ADD"===G&&""!==se?{background:q.colorInfo}:{}},n.createElement(f.A,{className:"icon-target"}))),n.createElement(p.Ay,{className:"button-add",type:"primary",loading:"ADD"===G&&me.isLoading,htmlType:"submit"},O("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:()=>N});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),b=a(5457),f=a(94780),E=a(76762),C=a(58316),v=a(12543),y=a(23424),_=a(47014),A=a(1047),w=a(78915),k=a(80877),S=a(40277),L=a(39420),x=a(52919),T=a(32947);const{Option:I}=r.A,M="profile",N=({isModalVisible:e})=>{const{__:t}=(0,v.s9)(),a=(0,l.d4)(_.C1),N=(0,l.d4)(_.yf),R=(0,g.hN)(),B=(0,x.XW)(),H=(0,l.wA)(),[P]=o.A.useForm(),[V,O]=(0,w.b9)(),[D,F]=(0,w.hZ)(),[j,Z]=(0,n.useState)([]),[z,q]=(0,n.useState)([]),[W,U]=(0,n.useState)(M),[$,G]=(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){U(M),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)(N,["acf","theme"]))||void 0===t||null===(a=t.items)||void 0===a?void 0:a.enum;const r=null===(n=(0,S.EU)(N,["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,R)}}),[F,P,e,N,R]);const J=()=>{const e=window.localStorage.getItem(T.V0.em_color_scheme),t=matchMedia(T.F3).matches?T.nd:T.T;B({operation:T.Ru.UPDATE_PREVIEW,theme:e||t}),P.validateFields().then((e=>{const t=e.codeEditor;e.currentPassword&&e.newPassword?V({password:e.newPassword,old_password:e.currentPassword}):V({first_name:e.firstName,last_name:e.lastName,email:e.email,locale:e.language,autosaves:e.autosaves,hide_mergetags:e.hideMergetags,theme:e.theme,newsletter_consent:e.newsLetterConsent,code_editor:t?{font_size:t.fontSize,font_family:t.fontFamily,tab_size:t.tabSize,word_wrap:t.wordWrap,minimap:t.minimap,insert_spaces:t.insertSpaces}:null})}))};(0,n.useEffect)((()=>{O.isError&&(0,S.p6)(O,R)}),[O,R]),(0,n.useEffect)((()=>{O.isSuccess&&((0,S.wB)(t("Your profile was successfully updated."),R),H((0,y.Oo)()))}),[H,O,t,R]);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;H((0,A.eX)(t===T.nd?`vs-${t}`:T.T)),(0,L.A5)(t)}),[H]),ne=(0,n.useCallback)((()=>{ee!==P.getFieldValue("theme")&&ae(ee),H((0,_.ww)(a.code_editor)),H((0,_.ko)(X)),H((0,y.Oo)())}),[a.code_editor,H,P,ee,ae,X]);let le=[{label:n.createElement(n.Fragment,null,n.createElement(h.A,null),t("Profile")),key:M,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(b.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(f.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(f.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(f.A,null)}},n.createElement(d.A,null)))))},{label:n.createElement(n.Fragment,null,n.createElement(E.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:()=>G((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"===W){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:()=>G((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"===W,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:()=>G((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(C.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:O.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&&H((0,_.ko)(e.language)),e.codeEditor&&H((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:W,onChange:e=>U(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),b=a(6302),f=a(67756),E=a(62041),C=a(1549),v=a(65716),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),M=(0,n.useRef)(null),N=(0,n.useRef)(null),R=(0,p.d4)(_.yN),B=(0,p.d4)(y.gU),H=(0,u.hN)(),P=(0,p.d4)(y.cL),[V,O]=(0,n.useState)(k),[D,F]=(0,n.useState)(!1),j=t||R,Z=[S,k,L].includes(B),[z,q]=(0,v.OD)();(0,n.useEffect)((()=>{if(P===A.lx.EDIT_PROJECT_MODAL){const e={mainsettings:I,ftpsettings:M,webhooksettings:N};setTimeout((()=>{var t;return null===(t=e[V].current)||void 0===t?void 0:t.focus({cursor:"end"})}),200)}}),[P,V]),(0,n.useEffect)((()=>{Z&&O(B)}),[B,Z,O,x]);let W=[{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(b.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:M,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(f.A,null):n.createElement(E.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:N,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 U=()=>{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?H.success({message:a("The project \u201c")+j.title+a("\u201d was successfully changed to \u201c")+e.title+a("\u201d."),placement:"bottomRight"}):H.success({message:a("The project settings was successfully saved."),placement:"bottomRight"}):t&&(0,w.p6)({error:t},H),x((0,y.YF)("")),x((0,y.Oo)())}))}))};return n.createElement(c.A,{title:n.createElement("div",null,n.createElement(C.A,null)," ",a("Project settings")),className:"blocks-modal",open:e,onOk:U,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:U},a("Update"))]},n.createElement(l.A,{form:T,layout:"vertical",name:`edit_project_form_${null===j||void 0===j?void 0:j.id}`,onFinish:U,initialValues:{remember:!1,name:""},autoComplete:"off"},n.createElement(m.A,{activeKey:V,onChange:O,items:W})))};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),b=a(78446),f=a(35076),E=a(38256),C=a(40186),v=a(71879),y=a(83612),_=a(2604),A=a(26298),w=a.n(A),k=a(52218),S=a.n(k),L=a(68984),x=a(98845),T=a(47014),I=a(45271),M=a(80223),N=a(40277),R=a(12543),B=a(32947);const{useToken:H}=o.A,P=({element:e,setSearchFilters:t=()=>{},isTrash:a=!1,foldersList:o,projectTags:A=[],foldersHandlers:k={}})=>{var P,V,O,D,F,j,Z,z,q,W,U,$,G,X,K;const{__:Y}=(0,R.s9)();let Q=(0,l.zy)();const{projectId:J}=(0,l.g)(),{owner:ee,admin:te}=(0,M.A)(),ae=(0,_.d4)(T.C1),ne=(0,n.useRef)(null),{token:le}=H(),{handleRecover:re,handleClone:oe,handlerChangeFolder:ie,handleRemove:se}=k,ce=e.hasOwnProperty("type")?B.IE:B.Tm,de=ce===B.Tm?B.zh:B.YY,me=ce===B.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}${B.KI}`)}&raw=true`)}`},be=(null===(P=e[ce===B.IE?"blockfolder":"folder"])||void 0===P?void 0:P[0])||null,fe={icon:n.createElement(p.A,{style:{fontSize:18}}),label:me,key:B.y2,onClick:t=>ie(t,e)},Ee=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)}))),Ce=(null===Ee||void 0===Ee?void 0:Ee.filter((e=>!be||e.key!==be)))||[];be&&(null===Ce||void 0===Ce||Ce.unshift(fe));let ve=[];return(ee||te||(null===(V=ae.id)||void 0===V?void 0:V.toString())===(null===(O=e.author)||void 0===O?void 0:O.toString()))&&!a&&ve.push({label:n.createElement(I.A,{key:"Lock",element:e}),icon:e.lock?n.createElement(h.A,{style:{fontSize:"16px"}}):n.createElement(b.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&&Ce.length>0&&ve.push({label:Y("Transfer to folder"),icon:n.createElement(g.A,{style:{fontSize:"16px"}}),children:Ce}),!a&&ve.push({label:Y("Clone"),icon:n.createElement(f.A,{style:{fontSize:"16px"}}),key:"Clone",className:ce===B.IE?"em-analytics__block-clone":"em-analytics__email-clone",disabled:ce===B.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&&ve.push({label:Y("Recover"),icon:n.createElement(E.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()))&&ve.push({label:Y("Remove"),icon:n.createElement(C.A,{style:{fontSize:"16px"}}),key:"Remove",style:{color:"#ff4d4f"},className:ce===B.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,N.Hy)(e,ne.current),style:{cursor:a?"default":"pointer"},onMouseLeave:N.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===(W=e.acf)||void 0===W?void 0:W.is_template))&&n.createElement("div",{className:"element-card__is-template-wrapper"},Y("Template")),(null===(U=e[de])||void 0===U?void 0:U.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(b.A,{className:w()("lock-icon",{"lock-icon__disabled":!(ee||te||(null===($=ae.id)||void 0===$?void 0:$.toString())===(null===(G=e.author)||void 0===G?void 0:G.toString()))})}),(null===(X=e.title)||void 0===X?void 0:X.trim())||(null===(K=e.subject)||void 0===K?void 0:K.trim()))),n.createElement("p",{className:"element-card__date"},Y("Last update: ")," ",(0,N.Yq)((0,y.A)(e.modified),Y))),n.createElement("div",{className:"ant-card-body__right"},n.createElement(m.A,{menu:{items:ve},arrow:"true",placement:"bottom",trigger:["hover"]},n.createElement(u.Ay,{type:"default",className:"element-card_menu",onClick:()=>{}},n.createElement(v.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),b=a.n(h),f=a(12543),E=a(2604),C=a(30150),v=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,M;const{__:N}=(0,f.s9)(),R=(0,E.wA)(),B=(0,E.d4)(v.cL),{admin:H,owner:P,user:V}=(0,k.A)(T.project),O=H||P||V,[D,F]=(0,n.useState)(!1),[j,Z]=(0,L.Zf)(),z=(0,C.Zp)(),q=(0,E.d4)(S.C1),{modal:W}=l.A.useApp(),U=(0,s.hN)(),{confirm:$}=W,G=(0,x.fn)();(0,n.useEffect)((()=>{Z.isError&&((0,w.p6)(Z,U),F(!1))}),[Z,U]),(0,n.useEffect)((()=>{if(Z.isSuccess&&D){var e;if(401===(null===(e=Z.data)||void 0===e?void 0:e.status))U.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,U]);const X=(0,n.useCallback)((()=>{$({title:N("Upgrade your plan to use this feature"),icon:n.createElement(c.A,null),content:n.createElement("div",{style:{maxWidth:"330px"}},N("Available on the Personal plan and higher.")),centered:!0,okText:N("Choose your plan"),cancelText:N("Close & continue"),width:"unset",onOk(){z("/billing")},onCancel(){}})}),[z,N,$]);let K=[{label:n.createElement(r.A,{placement:"right"},n.createElement(d.A,{className:"element-preview-menu__list-item-icon"})),key:"Desktop",className:[b()("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:[b()("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:N("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===(M=T.project_author)||void 0===M?void 0:M.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===G||void 0===G?void 0:G.getValue())||"").replaceAll(/%20/gi,"+").replaceAll(/%0A/gi,"%0D%0A")};j(e),F(!0)}},disabled:!O},{label:n.createElement(r.A,{title:N("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:()=>{R((0,v.qf)(y.lx.SEND_TEST_EMAIL))},disabled:!O},{label:n.createElement(r.A,{title:N("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)(N("A shareable link to this page has been copied to the clipboard."),U)}))}}];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:B===y.lx.SEND_TEST_EMAIL,email:T}))}},8807:(e,t,a)=>{"use strict";a.d(t,{A:()=>En});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)),b=()=>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"})),f=({props:e})=>n.createElement(l.A,Object.assign({component:b},e)),E=()=>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"})),C=({props:e})=>n.createElement(l.A,Object.assign({component:E},e)),v=()=>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:v},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"})),M=({props:e})=>n.createElement(l.A,Object.assign({component:I},e)),N=()=>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"})),R=({props:e})=>n.createElement(l.A,Object.assign({component:N},e)),B=()=>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"})),H=({props:e})=>n.createElement(l.A,Object.assign({component:B},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"})),V=({props:e})=>n.createElement(l.A,Object.assign({component:P},e)),O=()=>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:O},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"})),W=({props:e})=>n.createElement(l.A,Object.assign({component:q},e)),U=()=>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:U},e)),G=()=>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:G},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)),be=()=>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"})),fe=({props:e})=>n.createElement(l.A,Object.assign({component:be},e)),Ee=()=>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"})),Ce=({props:e})=>n.createElement(l.A,Object.assign({component:Ee},e)),ve=()=>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:ve},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"})),Me=({props:e})=>n.createElement(l.A,Object.assign({component:Ie},e)),Ne=()=>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"})),Re=({props:e})=>n.createElement(l.A,Object.assign({component:Ne},e)),Be=()=>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"})),He=({props:e})=>n.createElement(l.A,Object.assign({component:Be},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"})),Ve=({props:e})=>n.createElement(l.A,Object.assign({component:Pe},e)),Oe=()=>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:Oe},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"})),We=({props:e})=>n.createElement(l.A,Object.assign({component:qe},e)),Ue=()=>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:Ue},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:"#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:Ge},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)),bt=()=>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"})),ft=({props:e})=>n.createElement(l.A,Object.assign({component:bt},e)),Et=()=>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"})),Ct=({props:e})=>n.createElement(l.A,Object.assign({component:Et},e)),vt=()=>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:vt},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"})),Mt=({props:e})=>n.createElement(l.A,Object.assign({component:It},e)),Nt=()=>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"})),Rt=({props:e})=>n.createElement(l.A,Object.assign({component:Nt},e)),Bt=()=>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"})),Ht=({props:e})=>n.createElement(l.A,Object.assign({component:Bt},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"})),Vt=({props:e})=>n.createElement(l.A,Object.assign({component:Pt},e)),Ot=()=>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:Ot},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"})),Wt=({props:e})=>n.createElement(l.A,Object.assign({component:qt},e)),Ut=()=>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:Ut},e)),Gt=()=>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:Gt},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)),ba=()=>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"})),fa=({props:e})=>n.createElement(l.A,Object.assign({component:ba},e)),Ea=()=>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"})),Ca=({props:e})=>n.createElement(l.A,Object.assign({component:Ea},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-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:va},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)),Ma=()=>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"})),Na=({props:e})=>n.createElement(l.A,Object.assign({component:Ma},e)),Ra=()=>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"})),Ba=({props:e})=>n.createElement(l.A,Object.assign({component:Ra},e)),Ha=()=>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:Ha},e)),Va=()=>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"})),Oa=({props:e})=>n.createElement(l.A,Object.assign({component:Va},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)),Wa=()=>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"})),Ua=({props:e})=>n.createElement(l.A,Object.assign({component:Wa},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"})),Ga=({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)),bn=()=>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"})),fn=({props:e})=>n.createElement(l.A,Object.assign({component:bn},e)),En=({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(Ua,{props:t});case"EditorMode":return n.createElement(qa,{props:t});case"ClearChat":return n.createElement(Ga,{props:t});case"Speed":return n.createElement(Fa,{props:t});case"Justify":return n.createElement(Oa,{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(Ca,{props:t});case"Group":return n.createElement(fa,{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(f,{props:t});case"MinWidth":return n.createElement(C,{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(M,{props:t});case"AlignHorizontalCenter":return n.createElement(R,{props:t});case"AlignHorizontalRight":return n.createElement(H,{props:t});case"AlignVerticalTop":return n.createElement(V,{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(W,{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(fe,{props:t});case"ElementTitle":return n.createElement(Ce,{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(Me,{props:t});case"ElementTable":return n.createElement(Re,{props:t});case"ElementCountdown":return n.createElement(He,{props:t});case"ElementVideo":return n.createElement(Ve,{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(We,{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(ft,{props:t});case"RedoOutlined":return n.createElement(Ct,{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(Mt,{props:t});case"DesktopOutlined":return n.createElement(Rt,{props:t});case"PlusCircleOutlined":return n.createElement(Ht,{props:t});case"CommentOutlined":return n.createElement(Vt,{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(Wt,{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(Na,{props:t});case"SliderAdaptive":return n.createElement(Ba,{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(fn,{props:t});default:return null}}},66079:(e,t,a)=>{"use strict";a.d(t,{A:()=>M});var n=a(98173),l=a(32656),r=a(26298),o=a.n(r);const i=JSON.parse('{"yG":"iframe.7f4a25eb84aaea5b3817.html","l5":"iframe-eblock.7f4a25eb84aaea5b3817.html"}');var s=a(86095),c=a(2604),d=a(62093),m=a(27941),u=a(98845),p=a(32947),g=a(81843),h=a(64909),b=a(47014),f=a(12543),E=a(76233),C=a(52919),v=a(37357),y=a(70687);function _(e,t){const{__:a}=(0,f.s9)(),l=(0,C.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)(b.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")}),E.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 v.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.yc)(),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,C.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)(),E=(0,s.fn)(),v=(0,m.rD)(),y=(0,C.ur)(),A=(0,C.XW)(),k=(0,C.QC)(),I=(0,x._q)(T.AZ.ON_EMAIL_INIT_ID),[M,N]=(0,n.useState)(),R=(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===E||void 0===E?void 0:E.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:v.pathEnabled,copyPasteEnabled:v.copyPasteEnabled,saveBlockEnabled:v.saveBlockEnabled,editImageControlEnabled:v.editImageControlEnabled,codeMode:!!l&&!(!l.isCodeMode||"left"!==l.codeModeDirection&&"right"!==l.codeModeDirection),elementAIimageEnabled:v.elementAIimageEnabled,imageCenterStockEnabled:v.imageCenterStockEnabled,imageCenterGifEnabled:v.imageCenterGifEnabled,imageCenterEditorEnabled:v.imageCenterEditorEnabled,blocksAddPanelEnabled:v.blocksAddPanelEnabled,lockEditor:v.lockEditor,appName:"emailmaker"};N(e.target),y(e.target),g.current.resize(),A(o),r()}),[v,r,A,E,t.common_styles,g,N,y]),B=(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 H=(0,n.useCallback)((()=>new Promise((e=>{k.setTarget(void 0);const t=()=>{R({target:M}),e(),null===M||void 0===M||M.removeEventListener("load",t)};null===M||void 0===M||M.addEventListener("load",t)}))),[k,R,M]);(0,n.useEffect)((()=>{const e=k.addListenerAsync(p.Ru.RELOAD,H,Number.MAX_SAFE_INTEGER);return()=>e.dispose()}),[k,H]),(0,d.A)(B),(0,d.A)((()=>{var e;null===(e=g.current)||void 0===e||e.resize()}),p.Ru.SANDBOX_INITED),function(){const e=(0,C.QC)(),t=(0,c.d4)(b.C1),{__:a}=(0,f.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,C.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]),_(E,t),(0,n.useEffect)((()=>{const e=E.onDidChangeContent((()=>{g.current.resize()}));return()=>e.dispose()}),[E,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:R}))}));I.defaultProps={className:null,email:null,handlerSendPosition:()=>{}};const M=I},60557:(e,t,a)=>{"use strict";a.d(t,{A:()=>Xe});var n,l=a(98173),r=a(47555),o=a(71446),i=a(72570),s=a(37969),c=a(30150),d=a(79245),m=a(2604),u=a(12543),p=a(56605),g=a(78478),h=a(27499),b=a(48753),f=a(201),E=a(66964),C=a(8218),v=a(49823),y=a(64909),_=a(80703),A=a(94780),w=a(68984),k=a(65716);function S(){return S=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},S.apply(null,arguments)}function L({title:e,titleId:t,...a},r){return l.createElement("svg",S({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",ref:r,"aria-labelledby":t},a),e?l.createElement("title",{id:t},e):null,n||(n=l.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 x=l.forwardRef(L);a.p;var T=a(54838),I=a(40277),M=a(27941),N=a(32947);const R=({isModalVisible:e,htmlContent:t,projectId:a})=>{const{__:n}=(0,u.s9)(),r=(0,m.wA)(),[o]=h.A.useForm(),[i,d]=(0,l.useState)([]),[p,g]=(0,w.pP)(),{data:S}=(0,w.h1)(),L=(0,y.hN)(),R=(0,M.rD)(),[B,H]=(0,l.useState)([]),{data:P,refetch:V}=(0,c.KC)(),{refetch:O}=(0,w.SB)({projectId:a,pageSize:1e3,page:1,tags:null,name:null,type:null,notEmbed:!0,order:"asc",orderby:"title"}),D=`project_${a}`,F=P&&(0,I._q)(P,N.YY).find((e=>e.name===D)),j=(0,I._q)(P,N.YY)||[],Z=null===j||void 0===j?void 0:j.map((e=>e.id)),[z,q]=(0,w.Gr)(),[W,U]=(0,k.OD)();(0,l.useEffect)((()=>{H((0,I._q)(P,N.YY).map((e=>({value:e.name}))))}),[P]),(0,l.useEffect)((()=>{if(S){const e=S.schema.properties.acf.properties.type.items.enum;let t=[];for(let a in e)t.push({label:n(N.jg[e[a]]),value:e[a]});d(t)}}),[S,n]);const $=()=>{o.validateFields().then((e=>{const r=e.tags;if((null===r||void 0===r?void 0:r.length)>10)return void L.error({id:"BLOCK_TOO_MANY_TAGS_ERROR",data:(0,y.x_)(e),message:n("Maximum 10 tags available."),placement:"bottomRight"});const i=i=>{const s=null===r||void 0===r?void 0:r.map((e=>{const t=null===j||void 0===j?void 0:j.find((t=>t.name===e));return t?t.id:z({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&&L.fromError("TAG_CREATING_ERROR",e,t))}))})),c=(e,r=[])=>{p({title:e.title,project:a,html:t,type:e.type?e.type:"Other",blocktags:r.join(",")}).then((i=>{if(i.error)return L.error({id:"BLOCK_CREATING_ERROR",data:{title:e.title,html:t},innerException:i.error,message:l.createElement("div",{dangerouslySetInnerHTML:{__html:i.error.data.code}}),description:l.createElement("div",{dangerouslySetInnerHTML:{__html:i.error.data.message}}),placement:"bottomRight"}),o.resetFields(),void G();o.resetFields(),G();let s=new Set([...Z,...r]);V(),W({projectId:a,blocktags:[...s].join(",")}).then((e=>{e.error&&L.error({message:l.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:l.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"}),L.success({id:"BLOCK_CREATING_SUCCESS",data:(0,y.x_)(i.data),message:n("The block \u201c")+i.data.title+n("\u201d was successfully created."),placement:"bottomRight"}),O()}))}))};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))};F?i(F.id):z({name:D}).then((async({data:e,error:t})=>{if(t)L.fromError("FOLDER_CREATING_ERROR",D,t);else{const{data:t,error:n}=await W({projectId:a,blocktags:e.id});n?L.fromError("BLOCK_CLONING_ERROR",(0,y.x_)(e),n):t&&i(t.blocktags&&t.blocktags[0])}})).catch((e=>{}))}))},G=()=>{r((0,T.Oo)())};return l.createElement(b.A,{title:l.createElement("div",null,l.createElement(_.A,null)," ",n("Add new block")),className:"blocks-modal",open:e,onOk:$,onCancel:G,centered:!0,footer:[l.createElement(s.Ay,{key:"submit",size:"large",type:"primary",loading:g.isLoading,onClick:$},l.createElement(x,{className:"modal-new-block__icon-create"}),n("Create block"))]},l.createElement(h.A,{form:o,layout:"vertical",name:"add_new_block_form",onFinish:$,initialValues:{title:"",type:"",tags:[]},autoComplete:"off",style:{padding:"10px 24px 0"}},l.createElement(f.A,{gutter:16},l.createElement(E.A,{span:12}," ",l.createElement(h.A.Item,{label:n("Block name"),name:"title",rules:[{required:!0,message:n("Please input block name")}],style:{marginBottom:15}},l.createElement(C.A,{disabled:g.isLoading||q.isLoading||U.isLoading,size:"large",placeholder:n("Enter block name"),spellCheck:"false"}))),l.createElement(E.A,{span:12},l.createElement(h.A.Item,{label:n("Type"),name:"type",rules:[{required:!0,message:n("Please choose block type")}],style:{marginBottom:15}},l.createElement(v.A,{disabled:g.isLoading||q.isLoading||U.isLoading,size:"large",placeholder:n("Choose block type"),options:i})))),R.tagsEnabled&&l.createElement(h.A.Item,{label:n("Tags"),name:"tags"},l.createElement(v.A,{size:"large",mode:"tags",placeholder:n("Add some tags"),tooltip:{title:n("Tags help you find the block in the list."),icon:l.createElement(A.A,null)},disabled:g.isLoading||q.isLoading||U.isLoading,options:B}))))};var B=a(40120),H=a(49856),P=a(13785),V=a(59010),O=a(94674),D=a(78446),F=a(26298),j=a.n(F),Z=a(79966),z=a(38927),q=a(25488),W=a(47638),U=a(40186),$=a(35076),G=a(73195),X=a(47214),K=a(33747),Y=a(92419),Q=a(39415),J=a(61657),ee=a(15804),te=a(53939),ae=a(34981),ne=a(30560),le=a(99208),re=a(19504),oe=a(72510),ie=a(45887),se=a(40409),ce=a(45271),de=a(8807),me=a(47014),ue=a(84572),pe=a(23424),ge=a(98845),he=a(38251),be=a(83027),fe=a(30397),Ee=a(64706),Ce=a(92960),ve=a(40835),ye=a(80223),_e=a(30315),Ae=a(71854),we=a(22560),ke=a(90614),Se=a(96734),Le=a(89613),xe=a(86095),Te=a(15626);const Ie=({email:e,autoSaveEmailResult:t,autoSaveBlockResult:a})=>{var n,r,i,d,p,g,h,b;const{__:f,_x:E}=(0,u.s9)(),C=(0,m.wA)(),[v]=(0,Ce.mI)(),[_]=(0,ve.dS)();let A=(0,c.Zp)();const{owner:w,admin:k}=(0,ye.A)(),S=(0,m.d4)(me.C1),L=(0,m.d4)(ue.yN),{modal:x}=o.A.useApp(),R=(0,y.hN)(),{confirm:B}=x,V=(0,m.Pj)(),O=(0,Se.p)(),F=(0,M.rD)(),{projectId:j}=(0,c.g)(),Z=(0,ke.ml)(Te.AZ.ON_EMAIL_CLONE_ID),[Ie]=(0,fe.N)(),Me=(0,Le.u)(),[Ne,Re]=(0,l.useState)(!0),[Be,He]=(0,ge.Kh)(),[Pe]=(0,he.ri)(),[Ve]=(0,he.cA)(),[Oe]=(0,Ee.m)(),{data:De}=(0,c.KC)(),{data:Fe,refetch:je}=(0,be.Jz)({parent:null===De||void 0===De||null===(n=De.folder)||void 0===n?void 0:n[0]},{skip:!(null!==De&&void 0!==De&&null!==(r=De.folder)&&void 0!==r&&r[0])}),Ze=(0,m.d4)(T.Wv);(0,l.useEffect)((()=>{Ze.switched&&Re(!1)}),[Ze]);const ze=()=>null===e.title?f("New email title"):e.title,qe=(0,xe.fn)(),We=(0,ke._q)(Te.AZ.ON_EMAIL_INIT_ID);(0,l.useEffect)((()=>{const e=We((()=>{Re(!1)}));return()=>e.dispose()}),[We]);const Ue=(e,t=(null===qe||void 0===qe?void 0:qe.getValue())||"")=>Pe({file:t,title:ze(),notification:R}).then((t=>{if(t.error)return R.error({message:l.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.code}}),description:l.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,(()=>Ve({id:n.id,notification:R})))}})),$e=(e=1)=>((e=1)=>Ue(((t,a)=>({href:(0,ie.QG)(t.id,void 0,!1,e),dispose:a}))))(e).then((({href:e,dispose:t})=>(0,_e.SR)(e).finally(t))),Ge=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)=>Ue(((t,n)=>({data:e.map((e=>({selector:e,href:(0,ie.QG)(t.id,void 0,!1,a,e)}))),dispose:n})),t))([...a.keys()],(0,oe.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 v({url:e}))||void 0===a?void 0:a.data:e;if(t.split(".").length<2){const e=W.extension(n.type);e&&(t=`${t}.${e}`)}const l=new File([n],t.toLowerCase()),r=await _({user_id:S.id,folder:De.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){}},Xe=t=>{var a,n;if("0"===(null===De||void 0===De||null===(a=De.limits)||void 0===a?void 0:a.preview_limit)&&j&&(null===S||void 0===S||null===(n=S.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=${j}&email=${e.id}&link=${n}`}" target="_blank"><img src="https://racs.rest/v3/pixel/123.png?image=${a}&project=${j}&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},Ke=t=>{Me({event:"click",action:"export_email",export_type:"HTML"});const a=document.querySelector(".email-preview"),n=getComputedStyle(a);(0,_e.PJ)(null===qe||void 0===qe?void 0:qe.getValue(),[n.width],e.utm_parameters,(async e=>{await Ge(e),Xe(e),await(0,we.e)(e,t)})).then((e=>{const t=new Blob([e],{type:"text/html;charset=utf-8"});(0,le.saveAs)(t,`${ze()}.html`)})).catch((e=>{}))},Ye=t=>{Me({event:"click",action:"export_email",export_type:"Clipboard"});const a=document.querySelector(".email-preview"),n=getComputedStyle(a);(0,_e.PJ)(null===qe||void 0===qe?void 0:qe.getValue(),[n.width],e.utm_parameters,(async e=>{await Ge(e),Xe(e),await(0,we.e)(e,t)})).then((e=>navigator.clipboard.writeText(e).then((function(){(0,I.wB)(f("The email has been copied to the clipboard."),R)})))).catch((e=>{}))},Qe=e=>new Promise(((t,a)=>{fetch(e).then((e=>t(e.blob())),(()=>(e=>{const t=O.get(N.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((()=>{}))})),Je=t=>{Me({event:"click",action:"export_email",export_type:"ZIP"});const a=document.querySelector(".email-preview"),n=getComputedStyle(a);(0,_e.Mp)(null===qe||void 0===qe?void 0:qe.getValue(),[n.width],e.utm_parameters,Qe,(async e=>{await Ge(e),Xe(e),await(0,we.e)(e,t)})).then((e=>(0,le.saveAs)(e,`${ze()}.zip`))).catch((e=>{}))},et=()=>{e.isNew?(N.EW.isPlugin||A(`/projects/${De.id}/emails`),(0,I.wB)(f("The draft of the email has been deleted."),R)):tt(e,A)},tt=(e,t)=>{B({maskClosable:!0,centered:!0,title:E("Are you sure to delete \u201c","email")+e.title+f("\u201d email?"),icon:l.createElement(U.A,{style:{color:"#ff4d4f"}}),okText:f("Yes"),cancelText:f("No"),onOk:()=>((e,t)=>V.dispatch(ge.GY.endpoints.deleteEmail.initiate(e.id)).then((a=>{a.error&&(0,I.p6)(a,R),e.project&&!N.EW.isPlugin&&t(`/projects/${e.project}/emails`),(0,I.wB)(f("The email \u201c")+a.data.title+E("\u201d was successfully removed.","email"),R)})))(e,t)})},at=()=>{(0,Ae.QM)("application/zip, message/rfc822, text/html",nt)},nt=async e=>{const t=e[0];try{C((0,T.M7)(!0));const e=await(0,Ae.q2)(t,(async(e,t)=>{try{const a=await(0,Ae.zn)(e,v);if(!a)return"string"===typeof e?e:"";const n=(0,Ae.Qm)(t,a.type,W),l=new File([a],n.toLowerCase()),r=await _({user_id:S.id,folder:De.id,file:l});return(0,Ae.$K)(r,e)}catch(a){return"string"===typeof e?e:""}}),(e=>{e.title=e.title||(0,_e.Ay)(t.name)[0]}));qe.setValue(e),C((0,T.M7)(!1))}catch(a){C((0,T.M7)(!1));const e=a instanceof Error?a.message:a;R.error({message:l.createElement("div",{dangerouslySetInnerHTML:{__html:e}}),placement:"bottomRight"})}Me({event:"upload_file",action:"import_email"})};let lt=[];F.emailDropdownMenuClone&&lt.push({label:f("Clone"),icon:l.createElement($.A,{style:{fontSize:"16px"}}),key:"Clone",className:"em-analytics__email-clone",disabled:He.isLoading,onClick:async()=>{if(e.isNew)R.warning({message:f("To create a copy, you need to save the email."),placement:"bottomRight"});else{var t,a,n,r,o;if((await Z.fire(e)).some((e=>!1===e)))return;Be({title:(0,I.fq)(e.title),project:null===De||void 0===De?void 0:De.id,description:e.description,html:(0,I.el)((null===qe||void 0===qe?void 0:qe.getValue())||"",e.title),parent_email:e.parent_email||N.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===(n=e.utm_parameters)||void 0===n?void 0:n.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?R.error({message:l.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.code}}),description:l.createElement("div",{dangerouslySetInnerHTML:{__html:t.error.data.message}}),placement:"bottomRight"}):(A(`/projects/${De.id}/emails/${t.data.id}`),R.success({message:f("The copy of email \u201c")+e.title+f("\u201d was successfully created."),placement:"bottomRight"}),Fe&&je())}))}}}),F.emailDropdownMenuImport&&lt.push({label:E("Import","verb"),icon:l.createElement(G.A,{style:{fontSize:"16px"}}),key:"Import",className:"em-analytics__editor-page__import",onClick:()=>{Me({event:"click",action:"import_email"}),at()}}),(w||k||(null===(i=S.id)||void 0===i?void 0:i.toString())===(null===(d=e.author)||void 0===d?void 0:d.toString()))&&(F.emailDropdownMenuLock&&lt.push({label:l.createElement(ce.A,{key:"Lock",element:e}),icon:e.lock?l.createElement(X.A,{style:{fontSize:"16px"}}):l.createElement(D.A,{style:{fontSize:"16px"}}),disabled:e.isNew}),F.emailDropdownMenuRemove&&lt.push({label:f("Remove"),icon:l.createElement(U.A,{style:{fontSize:"16px"}}),key:"Remove",className:"em-analytics__email-remove",style:{color:"#ff4d4f"},onClick:et}));const rt=e.isAmp;let ot=[];return F.exportHtmlEnabled&&ot.push({key:"html",label:f("Code"),icon:l.createElement(K.A,{style:{fontSize:"16px"}}),...rt?{children:[{key:"\u0441ode_html",label:f("AMP"),onClick:()=>Ke("amp")},{key:"html_amp",label:f("HTML"),onClick:()=>Ke("html")}]}:{onClick:()=>Ke()}}),F.exportZipEnabled&&ot.push({key:"zip",label:f("ZIP"),icon:l.createElement(Y.A,{style:{fontSize:"16px"}}),...rt?{children:[{key:"zip_html",label:f("AMP"),onClick:()=>Je("amp")},{key:"zip_amp",label:f("HTML"),onClick:()=>Je("html")}]}:{onClick:()=>Je()}}),F.exportClipboardEnabled&&ot.push({key:"clipboard",label:f("Clipboard"),icon:l.createElement(Q.A,{style:{fontSize:"16px"}}),...rt?{children:[{key:"clipboard_html",label:f("AMP"),onClick:()=>Ye("amp")},{key:"clipboard_amp",label:f("HTML"),onClick:()=>Ye("html")}]}:{onClick:()=>Ye()}}),!N.EW.isPlugin&&F.exportWebHookEnabled&&ot.push({key:"webhook",icon:l.createElement(de.A,{icon:"WebHook",style:{fontSize:"16px"}}),label:f("WebHook"),onClick:()=>{L.webhook?(Me({event:"click",action:"export_email",export_type:"webhook"}),Ie({url:L.webhook,body:(0,q.E)(e,V)}).then((e=>{e.error?200===e.error.originalStatus?R.success({message:f("Success!"),description:f("WebHook successfully sent!"),placement:"bottomRight"}):R.error({message:l.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.status}}),description:l.createElement("div",{dangerouslySetInnerHTML:{__html:e.error.error}}),placement:"bottomRight"}):R.success({message:f("Success!"),description:f("WebHook successfully sent!"),placement:"bottomRight"})}))):(C((0,pe.YF)("webhooksettings")),C((0,pe.qf)(N.lx.EDIT_PROJECT_MODAL)))}}),F.exportOutlookEnabled&&ot.push({key:"outlook",icon:l.createElement(J.A,{style:{fontSize:"16px"}}),label:f("Outlook"),onClick:()=>(t=>{Me({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,re.Sc)(e,{mappedTags:{script:"___script"}})}else if("html"===t){for(const t of e.querySelectorAll(".em-amp-show-only"))t.remove();(0,re.Km)(e,{mappedTags:{script:"___script"}})}await Ge(e),Xe(e)};(0,_e.pH)(e.title,null===qe||void 0===qe?void 0:qe.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,le.saveAs)(t,`${ze()}.eml`)})).catch((e=>{}))})(rt)}),F.exportPdfEnabled&&ot.push({key:"pdf",icon:l.createElement(ee.A,{style:{fontSize:"16px"}}),label:f("PDF"),onClick:async()=>{const t=null===e||void 0===e?void 0:e.html;try{const e=await Oe({htmlContent:t,notification:R}).unwrap(),a=window.URL.createObjectURL(new Blob([e],{type:"application/pdf"})),n=document.createElement("a");n.href=a,n.setAttribute("download",`${ze()}.pdf`),document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(a)}catch(a){}}}),F.exportPngEnabled&&ot.push({key:"img",icon:l.createElement(te.A,{style:{fontSize:"16px"}}),label:f("PNG"),onClick:()=>$e(1).then(_e.gZ).then((e=>(0,le.saveAs)(e,`${ze()}.png`))).then(Me({event:"click",action:"export_email",export_type:"Image"}))}),l.createElement(H.A,null,F.emailDropdownMenuEnabled?l.createElement(z.A,{key:"Actions",arrow:{pointAtCenter:!0},placement:"bottom",menu:{items:lt}},l.createElement(s.Ay,{type:"default",block:!1,className:"email-page-header__btn email-page-header__btn_extra",onClick:()=>{}},l.createElement(ae.A,null))):F.emailDropdownMenuImport&&l.createElement(P.A,{title:E("Import","verb"),placement:"bottom"},l.createElement(s.Ay,{className:"em-analytics__editor-page__import",type:"text",icon:l.createElement(G.A,{style:{fontSize:20}}),onClick:()=>{Me({event:"click",action:"import_email"}),at()}})),F.emailExportEnabled&&l.createElement(z.A,{key:"Export",arrow:{pointAtCenter:!0},placement:"bottom",menu:{items:ot}},l.createElement(s.Ay,{key:"Export",className:"em-analytics__email-page__export",type:"default",icon:l.createElement(ne.A,null)},f("Export"))),!e.hasOwnProperty("type")&&l.createElement(ie.Ay,{disabled:Ne,autoSaveEmailResult:t,key:"Save",email:e,isEditableRights:w||k||(null===(p=S.id)||void 0===p?void 0:p.toString())===(null===(g=e.author)||void 0===g?void 0:g.toString())}),!!e.hasOwnProperty("type")&&l.createElement(se.A,{disabled:Ne,key:"Save",block:e,isEditableRights:w||k||(null===(h=S.id)||void 0===h?void 0:h.toString())===(null===(b=e.author)||void 0===b?void 0:b.toString()),autoSaveBlockResult:a}))};var Me=a(47113),Ne=a(54125),Re=a(52919),Be=a(12741),He=a(1047),Pe=a(22536);const{useToken:Ve}=B.A,Oe=({email:e,autoSaveEmailResult:t,isCollaborationEditor:a})=>{var n,r;const[o]=h.A.useForm(),{__:i}=(0,u.s9)();let d=(0,m.wA)(),p=(0,c.Zp)();const g=(0,m.d4)(me.C1),b=(0,Re.QC)(),f=(0,c.KC)(),E=null===f||void 0===f?void 0:f.data,{owner:v,admin:y}=(0,ye.A)(),{token:_}=Ve(),A=(0,M.rD)(),w=(0,l.useRef)(),k=(0,l.useRef)(),S=(0,l.useRef)(),L=(0,ke.ml)(Te.AZ.ON_PREVIOUSBUTTON_CLICK_ID),x=(0,m.d4)(T.yy),R=e.hasOwnProperty("type")?N.IE:N.Tm,B=(0,m.d4)(He.qX),F=(0,m.d4)(Pe.qX),z=R===N.Tm?B:F,q=(0,m.d4)(T.Fv),[W,U]=(0,l.useState)(!1);(0,l.useEffect)((()=>{const e=!(null===z||void 0===z||!z.type)&&((null===z||void 0===z?void 0:z.type)===N.bV.TEXT||(null===z||void 0===z?void 0:z.type)===N.bV.LINK||z.type===N.bV.BUTTON)&&q&&"bottom"!==x;U(e),d((0,T.oF)(e))}),[z,x,q]);const $=(0,l.useCallback)((()=>{var t;N.EW.isPlugin?L.fire(e):p(`/projects/${E.id}/emails?page=1&folder=${(null===(t=e.folder)||void 0===t?void 0:t[0])||N.y2}`)}),[p,L,e,null===E||void 0===E?void 0:E.id]),[G,X]=(0,l.useState)(),K=(0,ke._q)(Te.AZ.WILL_EMAIL_INIT_ID),Y=(0,ke._q)(Te.AZ.ON_EMAIL_INIT_ID);(0,l.useEffect)((()=>{const e=new I.jG;return e.addDisposable(K((()=>X(!1)))),e.addDisposable(Y((e=>{X(!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()}),[X,K,Y,o]);const Q=(0,l.useCallback)((t=>{const a=t.target.value.trim();e.isNew?d((0,Be.TU)(a)):d((0,He.HO)(a)),b.send(N.Ru.SANDBOX_SUBJECT_UPDATE,{value:a,guid:e.renderGuid})}),[b,e.renderGuid,d,e.isNew]),J=(0,ke._q)(Te.AZ.BEFORE_SAVE_EMAIL),ee=(0,l.useCallback)((async e=>{var t,a;const n=null===(t=k.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,Be.TU)(t)):d((0,He.HO)(t)),await b.sendAsync(N.Ru.SANDBOX_SUBJECT_UPDATE,{value:t,guid:e.renderGuid}))}const l=null===(a=S.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,Be.x3)(t)):d((0,He.pl)(t)),await b.sendAsync(N.Ru.SANDBOX_PREHEADER_UPDATE,{value:t,guid:e.renderGuid}))}}),[b,d]);(0,l.useEffect)((()=>{const e=J(ee);return()=>e.dispose()}),[J,ee]);const te=(0,l.useCallback)((t=>{const a=t.target.value.trim();e.isNew?d((0,Be.x3)(a)):d((0,He.pl)(a)),b.send(N.Ru.SANDBOX_PREHEADER_UPDATE,{value:a,guid:e.renderGuid})}),[b,e.renderGuid,d,e.isNew]),ae=e.isNew;(0,l.useEffect)((()=>{const t=new I.jG;return t.addDisposable(b.addListenerAsync(N.Ru.APPLICATION_SUBJECT_UPDATE,(({guid:t,value:a})=>{t===e.renderGuid&&(o.setFieldValue("subject",a),d(ae?(0,Be.TU)(a):(0,He.HO)(a)))}))),t.addDisposable(b.addListenerAsync(N.Ru.APPLICATION_PREHEADER_UPDATE,(({guid:t,value:a})=>{t===e.renderGuid&&(o.setFieldValue("preheader",a),d(ae?(0,Be.x3)(a):(0,He.pl)(a)))}))),()=>t.dispose()}),[b,d,ae,o,e.renderGuid]),(0,Ne.A)(null===e.title?i("New email title"):e.title);const ne=l.createElement(l.Fragment,null,l.createElement(H.A,{ref:w,size:10},A.headerArrowBackVisible&&l.createElement(P.A,{title:i("Back"),placement:"left"},l.createElement(s.Ay,{type:"text",icon:l.createElement(de.A,{icon:"ArrowLeftOutlined"}),onClick:$,shape:"circle"})),l.createElement("div",null,(A.headerTitleVisible||A.headerPreheaderVisible)&&l.createElement(h.A,{form:o,layout:"vertical",name:"subject_preheader_form",autoComplete:"off",initialValues:{subject:"",preheader:""}},A.headerTitleVisible&&l.createElement("div",{style:{marginTop:G?-3:0}},l.createElement(H.A,{style:{width:"100%"},align:"baseline",size:12},l.createElement("div",{className:"subject_preheader_form__title"},i("Subject")),G?l.createElement(h.A.Item,{name:"subject",style:{marginBottom:0}},l.createElement(C.A,{bordered:!1,ref:k,placeholder:i("Enter subject line here"),className:"ant-page-header-heading-title",onPressEnter:Q,onBlur:Q})):l.createElement(V.A.Input,{active:!0,size:16,style:{width:"40%",marginTop:3}}))),A.headerPreheaderVisible&&l.createElement("div",null,l.createElement(H.A,{style:{width:"100%"},align:"baseline",size:12},l.createElement("div",{className:"subject_preheader_form__title"},i("Preheader")),G?l.createElement(h.A.Item,{name:"preheader",style:{marginBottom:0}},l.createElement(C.A,{ref:S,bordered:!1,placeholder:i("Enter preheader here"),className:"ant-page-header-heading-preheader",onPressEnter:te,onBlur:te})):l.createElement(V.A.Input,{active:!0,size:16,style:{width:"80%",marginTop:2}}))))))),le=l.createElement(l.Fragment,null,A.emailIdShow&&!!e.id&&l.createElement(l.Fragment,null,l.createElement("div",{className:"email-page-header__email-id"},"ID"+e.id),l.createElement(O.A,{type:"vertical"})),l.createElement(Z.A,{emailElement:e,isCollaborationEditor:a}),A.commandButtonsEnabled&&l.createElement(l.Fragment,null,e.lock?l.createElement(D.A,{key:"Lock",className:j()("lock-icon",{"lock-icon__disabled":!(v||y||(null===(n=g.id)||void 0===n?void 0:n.toString())===(null===(r=e.author)||void 0===r?void 0:r.toString()))}),style:{color:_.colorPrimary,fontSize:"16px"}}):null,l.createElement(Ie,{key:"Buttons",email:e,autoSaveEmailResult:t,isHeaderCodeMenuOpen:W})));return l.createElement(Me.A,{className:"email-pane__header",leftBlock:ne,rightBlock:le,isHeaderCodeMenuOpen:W})};var De=a(78915),Fe=a(38540),je=a(79253),Ze=a(61058),ze=a(62093),qe=a(27264),We=a(72762),Ue=a(70687),$e=a(73180);const{Content:Ge}=r.A,Xe=()=>{const{__:e}=(0,u.s9)(),t=(0,Re.QC)(),{emailId:a,projectId:n,preview:h}=(0,c.g)(),b=(0,m.wA)(),f=(0,m.d4)(T.Fv),E=(0,c.Zp)(),C=(0,m.d4)(T.cL),v=(0,m.d4)(Be.YG),_=(0,m.d4)(He.Hs),A=(0,m.d4)(T.oG),[w,k]=(0,d.ok)(),[S]=(0,De.on)(),L=(0,m.d4)(me.C1),{isSuccess:x,data:I}=(0,De.W5)(),{owner:B}=(0,ye.A)(),H=(0,xe.fn)(),{modal:P}=o.A.useApp(),V=(0,Se.p)(),O=(0,M.rD)(),[D,F]=(0,l.useState)(!1),{confirm:j}=P,[Z,z]=(0,l.useState)(!1),q=w.get("template")||!Z&&!a&&V.get(N.A9.em_new_email),W=V.get(N.A9.em_template_email);(0,l.useEffect)((()=>{!Z&&_.id&&z(!0)}),[z,Z,_.id]);const{isSuccess:U,isLoading:$,isError:G,error:X,data:K}=(0,ge.sl)(q,{skip:!q||!!a}),{isLoading:Y,isSuccess:Q,isError:J,error:ee}=(0,ge.sl)(a,{skip:!a});(0,l.useEffect)((()=>{q&&U&&(b((0,Be.MZ)(K)),z(!0),k({}))}),[q,U,b,K,W,k]),(0,l.useEffect)((()=>(b((0,T.mi)(!0)),()=>b((0,T.mi)(!0)))),[b]);const te=q?K:a?_:v;(0,We.f)(te,void 0===a);const ae=function(e){const{emailId:t,projectId:a}=(0,c.g)(),n=(0,y.hN)(),r=(0,M.rD)(),o=(0,m.d4)(Fe.M),i=(0,xe.fn)(),s=(0,l.useRef)(0),d=(0,m.d4)(Ze.p1),u=(0,m.d4)(T.Wm),p=(0,m.d4)(T.B),g=(0,m.d4)(me.C1),h=(0,Le.u)(),[b,f]=(0,ge.LX)(),E=(0,m.wA)(),{isSuccess:C,isLoading:v}=(0,ge.YV)({emailId:t},{skip:!t}),[_,A]=(0,l.useState)(null);(0,l.useEffect)((()=>{if(C&&!v&&null!==d&&void 0!==d&&d.length){const a=d[0];var t;a&&_!==(null===e||void 0===e?void 0:e.id)&&(null!==(t=a.slug)&&void 0!==t&&t.includes("autosave")&&i&&E((0,He.no)(a)),A(null===e||void 0===e?void 0:e.id))}}),[E,d,C,v,null===e||void 0===e?void 0:e.id,_,i,t]);const w=(0,l.useCallback)((({parent:t})=>{if(e){const l={parent:t,title:e.title,author:e.author,project:e.project,html:(null===i||void 0===i?void 0:i.getValue())||"",excerpt:e.date_gmt,subject:e.subject,preheader:e.preheader,common_styles:e.common_styles,parent_email:e.parent_email};b({emailId:e.id,body:l}).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;N.EW.isPlugin||fetch((0,ie.Wv)(N.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"}),n.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:l,message:""},!0)})).catch((e=>{n.fromError("EMAIL_AUTOSAVE_ERROR",l,e,!0)}))}}),[b,e,i,a,n,h]),[k,S]=(0,l.useState)(!1),L=(0,l.useCallback)((()=>{if((null===d||void 0===d?void 0:d.length)>0){const e=[...d].sort(((e,t)=>Date.parse(null===t||void 0===t?void 0:t.modified)-Date.parse(null===e||void 0===e?void 0:e.modified)))[0];Date.parse((new Date).toString())-Date.parse(null===e||void 0===e?void 0:e.modified)>1.5*((null===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})}),[d,o,u,p,w,null===r||void 0===r?void 0:r.autosaveTimeout]);(0,$e.Z)((([e])=>{k&&!e&&(L(),S(!1))}),[k,L,S]);const x=null===g||void 0===g?void 0:g.autosaves,I=(0,l.useCallback)((()=>{o||(clearTimeout(s.current),s.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,l.useEffect)((()=>{if(x&&C&&void 0!==(null===e||void 0===e?void 0:e.id)){const t=(0,Ue.Og)(i,(()=>{u&&null!==e&&void 0!==e&&e.is_inited&&I()}));return()=>{t.dispose()}}}),[i,I,x,C,null===e||void 0===e?void 0:e.id,u,null===e||void 0===e?void 0:e.is_inited]),(0,$e.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)||I())}),[null===e||void 0===e?void 0:e.title,null===e||void 0===e?void 0:e.common_styles,u,C,I,null===e||void 0===e?void 0:e.id,null===e||void 0===e?void 0:e.is_inited]),(0,l.useEffect)((()=>()=>{clearTimeout(s.current)}),[g,null===e||void 0===e?void 0:e.renderGuid]),(0,l.useEffect)((()=>{clearTimeout(s.current)}),[null===e||void 0===e?void 0:e.modified]),f}(te),{counters:{emails_counter:ne},subscription:le}=L,re=(0,l.useCallback)((()=>{b((0,T.vs)()),b((0,Fe.rI)())}),[b]);(0,l.useEffect)((()=>{h&&!f&&re()}),[f,h,re]),(0,l.useEffect)((()=>{b((0,je.ff)()),document.body.classList.add("editor"),b((0,T.PM)(N.Bv))}),[b]);const[oe,se]=(0,l.useState)(!1);(0,l.useEffect)((()=>{!oe&&ne<3&&(S(),se(!0))}),[S,ne,oe]);const ce=q?U:Q,de=q?$:Y,ue=q?G:J,pe=q?X:ee,he=(0,xe.aD)(H),be=(0,l.useCallback)((()=>{he.undo()}),[he]),fe=(0,l.useCallback)((()=>{he.redo()}),[he]),Ee=(0,l.useRef)();(0,l.useEffect)((()=>{Ee.current!==(null===te||void 0===te?void 0:te.id)&&(he.clear(),Ee.current=null===te||void 0===te?void 0:te.id)}),[te,he]);const Ce=(0,l.useCallback)((e=>{(window.navigator.appVersion.indexOf("Mac")&&e.metaKey||e.ctrlKey)&&"KeyZ"===e.code&&(e.preventDefault(),e.shiftKey?fe():be())}),[be,fe]);(0,l.useEffect)((()=>()=>{b((0,Fe.rI)()),b((0,Ze.qX)())}),[b]),(0,l.useEffect)((()=>{const e=t.addListener(N.Ru.APPLICATION_HAS_AMP,(e=>{b(null!==te&&void 0!==te&&te.id?(0,He.VO)(e):(0,Be.lg)(e))}));return()=>e.dispose()}),[t,b,null===te||void 0===te?void 0:te.id]);const[ve,_e]=(0,l.useState)(),Ae=(0,l.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===N.Ru.APPLICATION_EBLOCK_ADD&&(_e(a.data),b((0,T.qf)(N.lx.ADD_NEW_EBLOCK_MODAL))),t===N.Ru.APPLICATION_ACTION&&("undo"===n?be():"redo"===n&&fe()),t===N.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===N.Ru.APPLICATION_SCROLL_BLOCK_HIDE&&(l.style.display="none",r.style.display="none")}),[b,be,fe]);(0,ze.A)(Ae);const we=e=>{e.preventDefault(),e.target&&t.send({operation:N.Ru.SANDBOX_DRAG_CANCEL}),document.querySelectorAll(".em-dragging-element").forEach((e=>{e.classList.remove("em-dragging-element")}))};(0,l.useEffect)((()=>(window.addEventListener("drop",we),window.addEventListener("dragover",ke),window.addEventListener("dragstart",Ie),window.addEventListener("dragend",Te),window.addEventListener("keydown",Ce),window.addEventListener("dragenter dragleave",(e=>{e.preventDefault()})),()=>{window.removeEventListener("drop",we),window.removeEventListener("dragover",ke),window.removeEventListener("dragstart",Ie),window.removeEventListener("dragend",Te),window.removeEventListener("keydown",Ce),window.removeEventListener("dragenter dragleave",(e=>{e.preventDefault()}))})));const ke=e=>{e.preventDefault();const t=document.getElementById("iframe-scroll-top"),a=document.getElementById("iframe-scroll-bottom"),n=O.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)},Te=()=>{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")}))},Ie=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)},Me=(0,l.useCallback)((()=>{j({title:e("You reached the plan limit"),icon:l.createElement(qe.A,null),content:l.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(){E("/billing")},onCancel(){}})}),[E,e,j]),[Ne,Pe]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{if(x&&I){var e,t;const n=null===I||void 0===I||null===(e=I.find((e=>{var t,a;return(null===(t=e.id)||void 0===t?void 0:t.toString())===(null===le||void 0===le||null===(a=le.ID)||void 0===a?void 0:a.toString())})))||void 0===e||null===(t=e.limits)||void 0===t?void 0:t.emails_limit;n&&ne>=n&&!Ne&&!a&&B&&(Me(),Pe(!0))}}),[I,x,le,ne,Ne,Me,a,B]),(0,l.useEffect)((()=>{const e=t.onInit((()=>{t.send({operation:N.Ru.SANDBOX_LOCK_EDIT,data:!1})}));return()=>e.dispose()}),[t]),l.createElement(r.A,{className:"email-page"},de&&l.createElement(p.A,null),ue&&pe&&l.createElement(Ge,{style:{paddingTop:"40px"}},l.createElement("div",{className:"container"},l.createElement(i.Ay,{status:pe.status,title:pe.status,subTitle:pe.data.message,extra:l.createElement(s.Ay,{type:"primary",onClick:()=>{E(`/projects/${n}/emails`)}},e("Back To Project"))}))),(!a&&!q&&Z||Q&&te)&&!de&&l.createElement(r.A,{className:"email-pane"},A&&l.createElement("div",{className:"email-pane__loader"},l.createElement(p.A,{small:!0})),l.createElement(Oe,{email:te,autoSaveEmailResult:ae,isCollaborationEditor:D}),l.createElement(g.A,{emailElement:te,isSuccess:ce,setIsCollaborationEditor:F})),l.createElement(R,{isModalVisible:C===N.lx.ADD_NEW_EBLOCK_MODAL,htmlContent:ve,projectId:n}))}},78478:(e,t,a)=>{"use strict";a.d(t,{A:()=>La});var n=a(98173),l=a(47555),r=a(40120),o=a(71446),i=a(13785),s=a(49856),c=a(62913),d=a(94674),m=a(93511),u=a(38976),p=a(53361),g=a(37969),h=a(201),b=a(66964),f=a(48753),E=a(2604),C=a(30150),v=a(12543),y=a(64909),_=a(26298),A=a.n(_),w=a(72915),k=a(37037),S=a(32947),L=a(27941);const x=({email:e})=>{const{__:t}=(0,v.s9)(),a=e.hasOwnProperty("type")?S.IE:S.Tm,[l,r]=(0,n.useState)(S.yy),o=(0,L.rD)();let i=[{label:n.createElement(n.Fragment,null,t("Settings")),key:S.yy,forceRender:!0,className:"email-settings__collapse-panel",children:n.createElement(w.A,{className:"email-settings__collapse-panel-content",element:e})}];return o.UTMEnabled&&a===S.Tm&&i.push({label:n.createElement(n.Fragment,null,t("UTM parameters")),key:S.iW,forceRender:!0,className:"email-settings__collapse-panel",children:n.createElement(k.A,{className:"email-settings__collapse-panel-content",email:e})}),n.createElement(n.Fragment,null,n.createElement(m.A,{className:"secondary-tabs email-settings__collapse",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:l,onChange:e=>r(e||""),items:i}))};var T=a(27499),I=a(42490),M=a(29123),N=a(8218),R=a(49823),B=a(5795),H=a(77637),P=a(55207),V=a(8807),O=a(1047),D=a(54838),F=a(52919);const{backgroundColor:j,backgroundImage:Z,backgroundPositionX:z,backgroundPositionY:q,backgroundRepeat:W,backgroundSize:U,responsive:$,backgroundColorContent:G,width:X}={backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",backgroundPositionX:"backgroundPositionX",backgroundPositionY:"backgroundPositionY",backgroundRepeat:"backgroundRepeat",backgroundSize:"backgroundSize",responsive:"responsive",backgroundColorContent:"backgroundColorContent",width:"width"},K={[j]:"",[Z]:"",[z]:"",[q]:"",[W]:"checked",[U]:"",[G]:"",[X]:""},{useToken:Y}=r.A,Q=({className:e,email:t})=>{var a,l,r;const{__:o}=(0,v.s9)(),{token:c}=Y(),m=(0,E.wA)(),p=(0,L.rD)(),[g]=T.A.useForm(),f=(0,F.XW)(),C=(0,E.d4)(O.uJ),y=(0,E.d4)(O.iy),_=(0,E.d4)(D.B),w=(0,E.d4)(O.mD),[k,x]=(0,n.useState)(!0),G=o("Email not yet loaded or global container not found.");(0,n.useEffect)((()=>{w&&(m((0,O.S_)(!1)),f({operation:S.Ru.INIT_PREVIEW}))}),[g,w,m,f,t.common_styles]);const X=[{label:o("Not defined"),value:"none"},{label:o("Do not repeat background (no-repeat)"),value:"no-repeat"},{label:o("Repeat background (repeat)"),value:"repeat"},{label:o("Repeat background horizontally (repeat-x)"),value:"repeat-x"},{label:o("Repeat background vertically (repeat-y)"),value:"repeat-y"}],Q=[{label:o("Not defined"),value:""},{label:o("Contain"),value:"contain"},{label:o("Cover"),value:"cover"}];(0,n.useEffect)((()=>{var e,t,a,n;g.setFieldsValue({...C,width:null===(e=C.width)||void 0===e?void 0:e.value,widthDim:null===(t=C.width)||void 0===t?void 0:t.dim,backgroundImage:C.backgroundImage?null===(a=C.backgroundImage[0])||void 0===a?void 0:a.value:"",backgroundRepeat:""===C[W]?"repeat":C[W],backgroundSize:C[U],responsive:null===(n=C.responsive)||void 0===n?void 0:n.shutdown}),x(!C.backgroundImage)}),[C,g]);return n.createElement("div",{className:A()("appearance-panel",{[e]:e})},n.createElement(T.A,{form:g,layout:"vertical",name:"appearance_panel_form",initialValues:{remember:!1,...K},onValuesChange:e=>{var t;const a=g.getFieldsValue(!0),n=Object.keys(e)[0];switch(n){case z:case q:f({operation:S.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[n]:""===e[n]?"none":e[n]}});break;case Z:x(""===e[n]),f({operation:S.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[n]:[{...null===C||void 0===C||null===(t=C.backgroundImage)||void 0===t?void 0:t[0],type:"url",value:e[n]}],backgroundSize:"cover"}});break;case $:f({operation:S.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{responsive:{shutdown:e[n],styles:e[n]},width:a.width}});break;default:f({operation:S.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:e})}},autoComplete:"off",className:"element-controls"},y?n.createElement(u.A,{style:{marginBottom:"24px"},message:G,type:"error"}):null,n.createElement(T.A.Item,{style:{marginBottom:"0"}},n.createElement("div",{className:"form-group-title",style:{paddingTop:0}},o("Email layout width")),n.createElement(h.A,{gutter:10},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:null!==(a=C.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(T.A.Item,{name:"width",style:{marginBottom:c.formItemMarginBottomXS}},n.createElement(I.A,{min:0,placeholder:o("Width"),prefix:n.createElement(B.A,null),disabled:!(null!==(l=C.width)&&void 0!==l&&l.value),addonAfter:"px"}))))),n.createElement(h.A,{gutter:20},n.createElement(b.A,{span:24},n.createElement(s.A,{size:8,align:"baseline"},n.createElement(T.A.Item,{name:"responsive",valuePropName:"checked"},n.createElement(M.A,{size:"small",name:"responsive",id:"responsive",disabled:void 0===(null===(r=C.responsive)||void 0===r?void 0:r.shutdown),onChange:e=>{m((0,D.wW)({shutdown:e,styles:e})),f({operation:S.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(d.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},o("Email background color")),n.createElement(h.A,{gutter:10,style:{paddingBottom:k?16:4}},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:o("Background color"),placement:"bottom"},n.createElement(T.A.Item,{name:j,style:{marginBottom:c.formItemMarginBottomXS},rules:[{message:o("Please set the background color")}]},n.createElement(H.A,{placeholder:o("Background color"),usedColors:C.usedColors})))),n.createElement(b.A,{span:k?12:24},p.formEmailFieldBackgroundImageEnabled&&n.createElement(n.Fragment,null,n.createElement(P.A,{form:g,label:o("Background image"),name:Z,tooltipTitle:o("Background image"),disabled:y||"Styles"!==_,elementSettings:C}),!k&&n.createElement(n.Fragment,null,n.createElement(T.A.Item,{style:{marginBottom:"0"}},n.createElement(h.A,{gutter:10},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:o("Horizontal position"),placement:"bottom"},n.createElement(T.A.Item,{name:z,style:{marginBottom:c.formItemMarginBottomXS}},n.createElement(N.A,{placeholder:o("Horizontal position"),prefix:n.createElement(V.A,{icon:"BgPositionHorizontal"})})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:o("Vertical position"),placement:"bottom"},n.createElement(T.A.Item,{name:q,style:{marginBottom:c.formItemMarginBottomXS}},n.createElement(N.A,{placeholder:o("Vertical position"),prefix:n.createElement(V.A,{icon:"BgPositionVertical"})})))))),n.createElement(h.A,{gutter:10},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:o("Background image repeat"),placement:"bottom"},n.createElement(T.A.Item,{name:W},n.createElement(R.A,{placeholder:o("Please select"),disabled:y,options:X,getPopupContainer:e=>e.parentNode})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:o("Background image size"),placement:"top"},n.createElement(T.A.Item,{name:U},n.createElement(R.A,{placeholder:o("Please select"),disabled:y,options:Q,getPopupContainer:e=>e.parentNode})))))))))))};Q.defaultProps={className:""};const J=Q;var ee=a(94780),te=a(22536);const{Option:ae}=R.A,{width:ne,widthDim:le}={width:"width",widthDim:"widthDim"},re={[ne]:"",[le]:""},oe=({className:e})=>{const{__:t}=(0,v.s9)(),a=(0,E.d4)(te.JV),l=(0,E.d4)(te.iy),[r]=T.A.useForm(),o=(0,F.XW)(),i=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:A()("block-appearance-panel",{[e]:e})},n.createElement(T.A,{form:r,layout:"vertical",name:"block_appearance_panel_form",initialValues:{remember:!1,...re},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:S.Ru.SANDBOX_BLOCK_SETTINGS_SET,settings:n})},autoComplete:"off"},l?n.createElement(u.A,{style:{marginBottom:"24px"},message:i,type:"error"}):null,n.createElement(T.A.Item,{label:t("Container width"),name:ne,tooltip:{title:t("Specifies the block width."),icon:n.createElement(ee.A,null)},rules:[{message:t("Please input container width")}]},n.createElement(N.A,{disabled:l,placeholder:t("Container width"),addonAfter:n.createElement(T.A.Item,{name:"widthDim",noStyle:!0},n.createElement(R.A,{className:"select-after",getPopupContainer:e=>e.parentNode},n.createElement(ae,{value:"px"},"px"),n.createElement(ae,{value:"%"},"%")))}))))};oe.defaultProps={className:""};const ie=oe;var se=a(46409),ce=a(78320),de=a(67073),me=a(20721),ue=a(96698),pe=a(52427),ge=a(11399),he=a(23863),be=a(67151),fe=a(80877),Ee=a(99512);const{useToken:Ce}=r.A,ve=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}},ye={buttons_borderRadiusAll:"all",buttons_borderRadiusTopLeft:"topLeft",buttons_borderRadiusBottomLeft:"bottomLeft",buttons_borderRadiusTopRight:"topRight",buttons_borderRadiusBottomRight:"bottomRight"},_e={cards_borderRadiusAll:"all",cards_borderRadiusTopLeft:"topLeft",cards_borderRadiusBottomLeft:"bottomLeft",cards_borderRadiusTopRight:"topRight",cards_borderRadiusBottomRight:"bottomRight"},Ae=({className:e,email:t})=>{const{__:a}=(0,v.s9)(),l=(0,E.wA)(),r=(0,F.XW)(),[o]=T.A.useForm(),c=(0,E.d4)(O.uJ),m=(0,E.d4)(O.dH),p=(0,L.rD)(),{token:f}=Ce(),[C,y]=(0,n.useState)({}),[_,w]=(0,n.useState)({}),[k,x]=(0,n.useState)(!0),[I,M]=(0,n.useState)(!0),[N,R]=(0,n.useState)(!1),[P,j]=(0,n.useState)(!1),Z={buttonsPaddingTop:"top",buttonsPaddingLeft:"left",buttonsPaddingRight:"right",buttonsPaddingBottom:"bottom"},z=t.common_styles&&"{}"!==t.common_styles?JSON.parse(t.common_styles):S.BD,[q,W]=(0,n.useState)(z.headings.bold),[U,$]=(0,n.useState)(z.headings.italic),[G,X]=(0,n.useState)(z.links.underline),[K,Y]=(0,n.useState)(z.buttons.bold),[Q,J]=(0,n.useState)(z.buttons.italic),[ee,te]=(0,n.useState)(null),ae=!!t.common_styles&&"{}"!==t.common_styles,ne=(0,E.d4)(D.Wm);(0,n.useEffect)((()=>{ne||te(null)}),[z,te,ne]),(0,n.useEffect)((()=>{ne&&!ee&&te(ve(z))}),[z,ee,ne]),(0,n.useEffect)((()=>{m&&(l((0,O.RC)(!1)),o.setFieldsValue(ve(z)))}),[o,m,l,z]);const[le,re]=(0,n.useState)(Math.min(z.headings.fontSize-1,19)),[oe,ie]=(0,n.useState)(Math.max(z.text.fontSize+1,20));(0,n.useEffect)((()=>{if(ee){var e,t,a,n,l,r,i,s,c,d,m,u,p;const g=ee.buttonsBorder;y(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)})),b=ee.cardsBorder;w(b);const f=Object.keys(b).find((e=>{var t,a,n;return(null===(t=b[e])||void 0===t?void 0:t.width)||(null===(a=b[e])||void 0===a?void 0:a.style)||(null===(n=b[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:f||"all",cards_borderWidth:null!==(null===(l=b[f])||void 0===l?void 0:l.width)?null===(r=b[f])||void 0===r?void 0:r.width:"",cards_borderColor:(null===(i=b[f])||void 0===i?void 0:i.color)||"",cards_borderStyle:(null===(s=b[f])||void 0===s?void 0:s.style)||"",buttons_borderRadiusAll:(0,Ee.ok)(ee.buttonsBorderRadius.all),buttons_borderRadiusTopLeft:(0,Ee.ok)(ee.buttonsBorderRadius.topLeft),buttons_borderRadiusBottomLeft:(0,Ee.ok)(ee.buttonsBorderRadius.bottomLeft),buttons_borderRadiusTopRight:(0,Ee.ok)(ee.buttonsBorderRadius.topRight),buttons_borderRadiusBottomRight:(0,Ee.ok)(ee.buttonsBorderRadius.bottomRight),cards_borderRadiusAll:(0,Ee.ok)(ee.cardsBorderRadius.all),cards_borderRadiusTopLeft:(0,Ee.ok)(ee.cardsBorderRadius.topLeft),cards_borderRadiusBottomLeft:(0,Ee.ok)(ee.cardsBorderRadius.bottomLeft),cards_borderRadiusTopRight:(0,Ee.ok)(ee.cardsBorderRadius.topRight),cards_borderRadiusBottomRight:(0,Ee.ok)(ee.cardsBorderRadius.bottomRight),blockPaddingAll:(0,Ee.ok)(ee.blockPaddingAll),blockPaddingTop:(0,Ee.ok)(ee.blockPaddingTop),blockPaddingRight:(0,Ee.ok)(ee.blockPaddingRight),blockPaddingBottom:(0,Ee.ok)(ee.blockPaddingBottom),blockPaddingLeft:(0,Ee.ok)(ee.blockPaddingLeft),blockPaddingLeftRight:(0,Ee.ok)(ee.blockPaddingRight)||(0,Ee.ok)(ee.blockPaddingLeft),blockPaddingTopBottom:(0,Ee.ok)(ee.blockPaddingTop)||(0,Ee.ok)(ee.blockPaddingBottom)}),(0,Ee.ok)(ee.blockPaddingAll)||!((0,Ee.ok)(ee.blockPaddingTop)||(0,Ee.ok)(ee.blockPaddingRight)||(0,Ee.ok)(ee.blockPaddingBottom)||(0,Ee.ok)(ee.blockPaddingLeft))||ee.blockPaddingTop===ee.blockPaddingBottom&&ee.blockPaddingRight===ee.blockPaddingLeft?j(!0):j(!1),!(0,Ee.ok)(ee.buttonsBorderRadius.all)&&((0,Ee.ok)(ee.buttonsBorderRadius.topLeft)||(0,Ee.ok)(ee.buttonsBorderRadius.bottomLeft)||(0,Ee.ok)(ee.buttonsBorderRadius.topRight)||(0,Ee.ok)(ee.buttonsBorderRadius.bottomRight))?x(!1):x(!0),ee.buttonsPadding&&!(0,Ee.ok)(ee.buttonsPadding.all)&&((0,Ee.ok)(ee.buttonsPadding.bottom)||(0,Ee.ok)(ee.buttonsPadding.right)||(0,Ee.ok)(ee.buttonsPadding.left)||(0,Ee.ok)(ee.buttonsPadding.top))&&R(!1),!(0,Ee.ok)(null===(c=ee.cardsBorderRadius)||void 0===c?void 0:c.all)&&((0,Ee.ok)(null===(d=ee.cardsBorderRadius)||void 0===d?void 0:d.topLeft)||(0,Ee.ok)(null===(m=ee.cardsBorderRadius)||void 0===m?void 0:m.bottomLeft)||(0,Ee.ok)(null===(u=ee.cardsBorderRadius)||void 0===u?void 0:u.topRight)||(0,Ee.ok)(null===(p=ee.cardsBorderRadius)||void 0===p?void 0:p.bottomRight))?M(!1):M(!0)}}),[o,ee]);const Ae=e=>{const t=e.target.closest("button"),a=t.name,n=t.classList.contains("selected-td-form__button--active");t.className=n?"ant-btn ant-btn-default":"ant-btn ant-btn-default selected-td-form__button--active",t.blur(),"headingBold"===a?W(!n):"headingItalic"===a?$(!n):"linkUnderline"===a?X(!n):"buttonsBold"===a?Y(!n):"buttonsItalic"===a&&J(!n),r({operation:S.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{[a]:!n}})};return ee&&n.createElement("div",{className:A()("appearance-panel",{[e]:e})},n.createElement(T.A,{form:o,layout:"vertical",name:"content_appearance_panel_form",initialValues:ee,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":re(Math.min(c.headingFontSize-1,19)),m=e;break;case"textFontSize":ie(Math.max(c.textFontSize+1,20)),m=e;break;case"buttons_borderStyle":m={buttonsBorder:{[c.buttons_borderPosition]:{...C[c.buttons_borderPosition],style:e[d]}}},"all"===c.buttons_borderPosition?y((t=>({...S.iV,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],style:e[d]}}))):y((t=>({...t,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],style:e[d]}})));break;case"buttons_borderColor":m={buttonsBorder:{[c.buttons_borderPosition]:{...C[c.buttonsBorderPosition],color:e[d]}}},"all"===c.buttons_borderPosition?y((t=>({...S.iV,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],color:e[d]}}))):y((t=>({...t,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],color:e[d]}})));break;case"buttons_borderWidth":m={buttonsBorder:{[c.buttons_borderPosition]:{...C[c.buttons_borderPosition],width:e[d]}}},"all"===c.buttonsBorderPosition?y((t=>({...S.iV,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],width:e[d]}}))):y((t=>({...t,[c.buttons_borderPosition]:{...t[c.buttons_borderPosition],width:e[d]}})));break;case"buttons_borderPosition":o.setFieldsValue({buttons_borderWidth:(null===(t=C[e[d]])||void 0===t?void 0:t.width)||"",buttons_borderColor:(null===(a=C[e[d]])||void 0===a?void 0:a.color)||"",buttons_borderStyle:(null===(n=C[e[d]])||void 0===n?void 0:n.style)||""});break;case"cards_borderStyle":m={cardsBorder:{[c.cards_borderPosition]:{..._[c.cards_borderPosition],style:e[d]}}},"all"===c.cards_borderPosition?w((t=>({...S.iV,[c.cards_borderPosition]:{...t[c.cards_borderPosition],style:e[d]}}))):w((t=>({...t,[c.cards_borderPosition]:{...t[c.cards_borderPosition],style:e[d]}})));break;case"cards_borderColor":m={cardsBorder:{[c.cards_borderPosition]:{..._[c.cardsBorderPosition],color:e[d]}}},"all"===c.cards_borderPosition?w((t=>({...S.iV,[c.cards_borderPosition]:{...t[c.cards_borderPosition],color:e[d]}}))):w((t=>({...t,[c.cards_borderPosition]:{...t[c.cards_borderPosition],color:e[d]}})));break;case"cards_borderWidth":m={cardsBorder:{[c.cards_borderPosition]:{..._[c.cards_borderPosition],width:e[d]}}},"all"===c.cardsBorderPosition?w((t=>({...S.iV,[c.cards_borderPosition]:{...t[c.cards_borderPosition],width:e[d]}}))):w((t=>({...t,[c.cards_borderPosition]:{...t[c.cards_borderPosition],width:e[d]}})));break;case"cards_borderPosition":o.setFieldsValue({cards_borderWidth:(null===(l=_[e[d]])||void 0===l?void 0:l.width)||"",cards_borderColor:(null===(i=_[e[d]])||void 0===i?void 0:i.color)||"",cards_borderStyle:(null===(s=_[e[d]])||void 0===s?void 0:s.style)||""});break;case"buttons_borderRadiusAll":case"buttons_borderRadiusTopLeft":case"buttons_borderRadiusBottomLeft":case"buttons_borderRadiusTopRight":case"buttons_borderRadiusBottomRight":m={buttonsBorderRadius:{[ye[d]]:+e[d]}};break;case"cards_borderRadiusAll":case"cards_borderRadiusTopLeft":case"cards_borderRadiusBottomLeft":case"cards_borderRadiusTopRight":case"cards_borderRadiusBottomRight":m={cardsBorderRadius:{[_e[d]]:+e[d]}};break;case"buttonsPaddingTop":case"buttonsPaddingLeft":case"buttonsPaddingRight":case"buttonsPaddingBottom":N?(m={padding:{all:+e[d]}},o.setFieldsValue({paddingTop:e[d],paddingLeft:e[d],paddingRight:e[d],paddingBottom:e[d]})):m={buttonsPadding:{[Z[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,[Z[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:S.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:m})},autoComplete:"off",className:"element-controls"},ae?null:n.createElement(u.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(h.A,{gutter:10},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Blocks background color"),placement:"bottom"},n.createElement(T.A.Item,{name:"blockBackgroundColor",style:{marginBottom:f.formItemMarginBottomMD+4},rules:[{message:a("Please set the background color")}]},n.createElement(H.A,{placeholder:a("Background color"),usedColors:c.usedColors})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Background color of the contrast blocks"),placement:"bottom"},n.createElement(T.A.Item,{name:"blockContrastBackgroundColor",style:{marginBottom:f.formItemMarginBottomMD+4},rules:[{message:a("Please set the background color")}]},n.createElement(H.A,{placeholder:a("Background color"),usedColors:c.usedColors}))))),n.createElement(h.A,{gutter:10,style:{paddingBottom:4}},n.createElement(n.Fragment,null,n.createElement(b.A,{span:10,style:{width:156,flex:"auto",maxWidth:"none"}},n.createElement("div",{className:"padding-collapsed",style:{display:P?"block":"none"}},n.createElement(i.A,{title:a("Horizontal padding"),placement:"bottom"},n.createElement(T.A.Item,{name:"blockPaddingLeftRight"},n.createElement(fe.A,{min:0,placeholder:a("Horizontal"),prefix:n.createElement(V.A,{icon:"PaddingLeftRight"}),addonAfter:"px"})))),n.createElement("div",{className:"padding-extended",style:{display:P?"none":"block"}},n.createElement(i.A,{trigger:["hover"],title:a("Left padding"),placement:"bottom"},n.createElement(T.A.Item,{name:"blockPaddingLeft",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(fe.A,{min:0,placeholder:a("Left"),prefix:n.createElement(V.A,{icon:"PaddingLeft"}),addonAfter:"px"}))),n.createElement(i.A,{trigger:["hover"],title:a("Right padding"),placement:"bottom"},n.createElement(T.A.Item,{name:"blockPaddingRight"},n.createElement(fe.A,{min:0,placeholder:a("Right"),prefix:n.createElement(V.A,{icon:"PaddingRight"}),addonAfter:"px"}))))),n.createElement(b.A,{span:10,style:{width:156,flex:"auto",maxWidth:"none"}},n.createElement("div",{className:"padding-collapsed",style:{display:P?"block":"none"}},n.createElement(i.A,{title:a("Vertical padding"),placement:"bottom"},n.createElement(T.A.Item,{name:"blockPaddingTopBottom"},n.createElement(fe.A,{min:0,placeholder:a("Vertical"),prefix:n.createElement(V.A,{icon:"PaddingTopBottom"}),addonAfter:"px"})))),n.createElement("div",{className:"padding-extended",style:{display:P?"none":"block"}},n.createElement(i.A,{trigger:["hover"],title:a("Top padding"),placement:"bottom"},n.createElement(T.A.Item,{name:"blockPaddingTop",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(fe.A,{min:0,placeholder:a("Top"),prefix:n.createElement(V.A,{icon:"PaddingTop"}),addonAfter:"px"}))),n.createElement(i.A,{trigger:["hover"],title:a("Bottom padding"),placement:"bottom"},n.createElement(T.A.Item,{name:"blockPaddingBottom"},n.createElement(fe.A,{min:0,placeholder:a("Bottom"),prefix:n.createElement(V.A,{icon:"PaddingBottom"}),addonAfter:"px"}))))),n.createElement(b.A,{span:4,style:{width:45,flex:"auto",maxWidth:"none"}},n.createElement(i.A,{title:a("Individual padding"),placement:"bottom"},n.createElement(g.Ay,{className:A()("selected-td-form__button",{"selected-td-form__button--active":!P}),onClick:()=>{j((e=>!e));const e=o.getFieldsValue(!0);P||(e.blockPaddingLeftRight=e.blockPaddingLeft,e.blockPaddingTopBottom=e.blockPaddingTop,e.blockPaddingRight=e.blockPaddingLeft,e.blockPaddingBottom=e.blockPaddingTop,r({operation:S.Ru.SANDBOX_EMAIL_SETTINGS_SET,settings:{blockPadding:{top:e.blockPaddingTopBottom,bottom:e.blockPaddingTopBottom,left:e.blockPaddingLeftRight,right:e.blockPaddingLeftRight}}}))}},n.createElement(V.A,{icon:"PaddingSwitcher"})))))),n.createElement(d.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},a("General text")),n.createElement(i.A,{trigger:["hover"],title:a("Font of the general text"),placement:"bottom"},n.createElement(T.A.Item,{name:"textFontFamily",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(pe.A,{value:ee.textFontFamily}))),n.createElement(h.A,{gutter:10},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Font size of the general text"),placement:"bottom"},n.createElement(T.A.Item,{name:"textFontSize"},n.createElement(fe.A,{min:15,max:le,placeholder:a("Font size"),prefix:n.createElement(se.A,null),addonAfter:"px"})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Line height of the general text"),placement:"bottom"},n.createElement(T.A.Item,{name:"textLineHeight"},n.createElement(fe.A,{min:0,placeholder:a("Line height"),prefix:n.createElement(ce.A,null),addonAfter:"px"}))))),n.createElement(h.A,{gutter:10,style:{paddingBottom:4}},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Color of the general text"),placement:"bottom"},n.createElement(T.A.Item,{name:"textColor"},n.createElement(H.A,{placeholder:a("Text color"),usedColors:c.usedColors})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Contrast block text color"),placement:"bottom"},n.createElement(T.A.Item,{name:"textContrastColor"},n.createElement(H.A,{placeholder:a("Text color"),usedColors:c.usedColors}))))),n.createElement(h.A,{gutter:10,style:{paddingBottom:4}},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Bottom padding of the general text"),placement:"bottom"},n.createElement(T.A.Item,{name:"textPaddingBottom"},n.createElement(fe.A,{min:0,placeholder:a("Bottom padding"),prefix:n.createElement(V.A,{icon:"PaddingBottom"}),addonAfter:"px"}))))),n.createElement(d.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},a("Headings")),n.createElement(i.A,{trigger:["hover"],title:a("Heading font"),placement:"left"},n.createElement(T.A.Item,{name:"headingFontFamily",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(pe.A,null))),n.createElement(h.A,{gutter:10},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Heading font size"),placement:"bottom"},n.createElement(T.A.Item,{name:"headingFontSize",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(fe.A,{min:oe,max:40,placeholder:a("Font size"),prefix:n.createElement(se.A,null),addonAfter:"px"})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Heading line height"),placement:"bottom"},n.createElement(T.A.Item,{name:"headingLineHeight",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(fe.A,{min:0,placeholder:a("Line height"),prefix:n.createElement(ce.A,null),addonAfter:"px"}))))),n.createElement(h.A,{gutter:10},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Heading letter spacing"),placement:"bottom"},n.createElement(T.A.Item,{name:"headingLetterSpacing"},n.createElement(fe.A,{min:0,placeholder:a("Letter spacing"),prefix:n.createElement(B.A,null),addonAfter:"px"})))),n.createElement(b.A,{span:12},n.createElement(s.A,null,n.createElement(i.A,{placement:"bottom",title:a("Strong")},n.createElement(g.Ay,{className:A()({"selected-td-form__button--active":q}),type:"default",name:"headingBold",onClick:Ae},n.createElement(de.A,null))),n.createElement(i.A,{placement:"bottom",title:a("Italic")},n.createElement(g.Ay,{className:A()({"selected-td-form__button--active":U}),type:"default",name:"headingItalic",onClick:Ae},n.createElement(me.A,null)))))),n.createElement(h.A,{gutter:10},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Heading color"),placement:"bottom"},n.createElement(T.A.Item,{name:"headingColor"},n.createElement(H.A,{placeholder:a("Heading color"),usedColors:c.usedColors})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Contrast block header color"),placement:"bottom"},n.createElement(T.A.Item,{name:"headingContrastColor"},n.createElement(H.A,{placeholder:a("Heading color"),usedColors:c.usedColors}))))),n.createElement(h.A,{gutter:10,style:{paddingBottom:4}},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Top padding"),placement:"bottom"},n.createElement(T.A.Item,{name:"headingPaddingTop"},n.createElement(fe.A,{min:0,placeholder:a("Top padding"),prefix:n.createElement(V.A,{icon:"PaddingTop"}),addonAfter:"px"})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Bottom padding"),placement:"bottom"},n.createElement(T.A.Item,{name:"headingPaddingBottom"},n.createElement(fe.A,{min:0,placeholder:a("Bottom padding"),prefix:n.createElement(V.A,{icon:"PaddingBottom"}),addonAfter:"px"}))))),n.createElement(d.A,{className:"selected-td-form__divider"}),n.createElement("div",{className:"form-group-title"},a("Links")),n.createElement(h.A,{gutter:10},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Link color"),placement:"bottom"},n.createElement(T.A.Item,{name:"linkColor",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(H.A,{placeholder:a("Link color"),usedColors:c.usedColors})))),n.createElement(b.A,{span:12},n.createElement(i.A,{placement:"bottom",title:a("Underline")},n.createElement(g.Ay,{className:A()({"selected-td-form__button--active":G}),type:"default",name:"linkUnderline",onClick:Ae},n.createElement(ue.A,null))))),n.createElement(h.A,{gutter:10,style:{paddingBottom:4}},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Link color in contrasting blocks"),placement:"bottom"},n.createElement(T.A.Item,{name:"linkContrastColor"},n.createElement(H.A,{placeholder:a("Link color"),usedColors:c.usedColors}))))),n.createElement(d.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(i.A,{trigger:["hover"],title:a("Buttons font"),placement:"left"},n.createElement(T.A.Item,{name:"buttonsFontFamily",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(pe.A,null))),n.createElement(h.A,{gutter:10},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Buttons font size"),placement:"bottom"},n.createElement(T.A.Item,{name:"buttonsFontSize",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(fe.A,{min:0,placeholder:a("Font size"),prefix:n.createElement(se.A,null),addonAfter:"px"})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Buttons letter spacing"),placement:"bottom"},n.createElement(T.A.Item,{name:"buttonsLetterSpacing",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(fe.A,{min:0,placeholder:a("Letter spacing"),prefix:n.createElement(B.A,null),addonAfter:"px"}))))),n.createElement(h.A,{gutter:10,style:{paddingBottom:4}},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Buttons text color"),placement:"bottom"},n.createElement(T.A.Item,{name:"buttonsColor",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(H.A,{placeholder:a("Buttons text color"),usedColors:c.usedColors})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Button text color in contrasting blocks"),placement:"bottom"},n.createElement(T.A.Item,{name:"buttonsContrastColor",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(H.A,{placeholder:a("Buttons text color"),usedColors:c.usedColors})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Buttons background color"),placement:"bottom"},n.createElement(T.A.Item,{name:"buttonsBackgroundColor"},n.createElement(H.A,{placeholder:a("Background color"),usedColors:c.usedColors})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Button background color in contrasting blocks"),placement:"bottom"},n.createElement(T.A.Item,{name:"buttonsContrastBackgroundColor"},n.createElement(H.A,{placeholder:a("Background color"),usedColors:c.usedColors})))),p.formButtonFieldTextAlignEnabled&&n.createElement(b.A,{span:12},n.createElement(ge.A,{form:o,elementSettings:{textAlign:"",type:"email"},imgParent:!1,name:"buttonsAlign",withHotKeys:!1})),n.createElement(b.A,{span:12},n.createElement(s.A,null,n.createElement(i.A,{placement:"bottom",title:a("Strong")},n.createElement(g.Ay,{className:A()({"selected-td-form__button--active":K}),type:"default",name:"buttonsBold",onClick:Ae},n.createElement(de.A,null))),n.createElement(i.A,{placement:"bottom",title:a("Italic")},n.createElement(g.Ay,{className:A()({"selected-td-form__button--active":Q}),type:"default",name:"buttonsItalic",onClick:Ae},n.createElement(me.A,null)))))),p.formFieldBorderEnabled&&n.createElement(n.Fragment,null,n.createElement(d.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(he.A,{borders:C,namePrefix:"buttons_"}))),p.formFieldBorderRadiusEnabled&&n.createElement(n.Fragment,null,n.createElement(d.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(be.A,{form:o,oneBorderRadiusValue:k,setOneBorderRadiusValue:x,elementSettings:ee,namePrefix:"buttons_"}))),n.createElement(d.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(h.A,{gutter:10,style:{paddingBottom:4}},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Top margin"),placement:"bottom"},n.createElement(T.A.Item,{name:"buttonsMarginTop"},n.createElement(fe.A,{min:0,placeholder:a("Top margin"),prefix:n.createElement(V.A,{icon:"PaddingTop"}),addonAfter:"px"})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Bottom margin"),placement:"bottom"},n.createElement(T.A.Item,{name:"buttonsMarginBottom"},n.createElement(fe.A,{min:0,placeholder:a("Bottom margin"),prefix:n.createElement(V.A,{icon:"PaddingBottom"}),addonAfter:"px"}))))),n.createElement(d.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(h.A,{gutter:10},n.createElement(b.A,{span:12},n.createElement("div",{className:"form-group-title",style:{paddingTop:0,paddingBottom:f.formItemMarginBottomXS}},a("Base colors")),n.createElement(i.A,{trigger:["hover"],title:a("Base background color"),placement:"bottom"},n.createElement(T.A.Item,{name:"cardsBaseBackgroundColor",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(H.A,{placeholder:a("Base background color"),usedColors:c.usedColors})))),n.createElement(b.A,{span:12},n.createElement("div",{className:"form-group-title",style:{paddingTop:0,paddingBottom:f.formItemMarginBottomXS}},a("Contrasting colors")),n.createElement(i.A,{trigger:["hover"],title:a("Contrasting background color"),placement:"bottom"},n.createElement(T.A.Item,{name:"cardsContrastBackgroundColor",style:{marginBottom:f.formItemMarginBottomXS}},n.createElement(H.A,{placeholder:a("Contrasting background color"),usedColors:c.usedColors}))))),n.createElement(h.A,{gutter:10,style:{paddingBottom:4}},n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Base text color"),placement:"bottom"},n.createElement(T.A.Item,{name:"cardsBaseTextColor"},n.createElement(H.A,{placeholder:a("Base text color"),usedColors:c.usedColors})))),n.createElement(b.A,{span:12},n.createElement(i.A,{trigger:["hover"],title:a("Contrasting text color"),placement:"bottom"},n.createElement(T.A.Item,{name:"cardsContrastTextColor"},n.createElement(H.A,{placeholder:a("Contrasting text color"),usedColors:c.usedColors}))))),p.formFieldBorderEnabled&&n.createElement(n.Fragment,null,n.createElement(d.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(he.A,{borders:_,namePrefix:"cards_"}))),p.formFieldBorderRadiusEnabled&&n.createElement(n.Fragment,null,n.createElement(d.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(be.A,{form:o,oneBorderRadiusValue:I,setOneBorderRadiusValue:M,elementSettings:ee,namePrefix:"cards_"})))))};Ae.defaultProps={className:""};const we=Ae,ke=({email:e})=>{const{__:t}=(0,v.s9)(),a=e.hasOwnProperty("type")?S.IE:S.Tm,[l,r]=(0,n.useState)(S.xz),o=!!e.common_styles&&"{}"!==e.common_styles;let i=[{label:n.createElement(n.Fragment,null,a===S.Tm?t("Global styles"):t("Block styles")),key:S.xz,forceRender:!0,className:"email-settings__collapse-panel",children:a===S.Tm?n.createElement(J,{className:"email-settings__collapse-panel-content",email:e}):n.createElement(ie,{className:"email-settings__collapse-panel-content"})}];return a===S.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(we,{className:"email-settings__collapse-panel-content",email:e})}),n.createElement(n.Fragment,null,n.createElement(m.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 Se=a(38927),Le=a(59010),xe=a(40186),Te=a(6969),Ie=a(80293),Me=a(72510),Ne=a(36434),Re=a(65716),Be=a(68984),He=a(40277),Pe=a(73180);const Ve=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:Oe,type:De,tags:Fe}={name:"name",type:"type",tags:"tags"},je={[Oe]:"",[De]:[],[Fe]:[]},Ze={Header:10,Menu:20,Banners:30,Content:40,Lists:50,Buttons:60,Promocodes:70,"E-Commerce":80,Transactional:80,Articles:90,Polls:100,Applications:110,Feature:120,Separators:130,Contacts:140,Footer:150},{useToken:ze}=r.A,qe=({parentEmailId:e=S.iU,blocksTab:t,search:a,reloadBlockScreens:l,email:r})=>{const{projectId:i}=(0,C.g)(),s=(0,He.sh)(),c=(0,He._9)(),[m]=T.A.useForm(),{data:p}=(0,Be.h1)(),{token:g}=ze(),{__:h,_x:b}=(0,v.s9)(),f=(0,y.hN)(),{modal:_}=o.A.useApp(),{confirm:w}=_;let k=(0,C.zy)();const L=(0,E.d4)(D.V$),x=(0,n.useRef)(null),I=(0,n.useRef)(null),M="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):{},R=(0,n.useRef)(null),B=(0,n.useRef)(null),H=(0,n.useRef)(null),P=(0,E.Pj)();(0,n.useEffect)((()=>{var e;null===(e=I.current)||void 0===e||e.scrollTo({top:0})}),[t,a]);const{data:V}=Re.Nq.endpoints.getProject.select(+i)(P.getState()),[O,F]=(0,n.useState)({projectId:i,pageSize:1e3,page:1,tags:null,name:null,type:null,notEmbed:!0,order:"asc",orderby:"title"});(0,n.useEffect)((()=>{a||(m.setFieldsValue(je),fe({type:null,name:null}),l())}),[a,m,l]),(0,n.useEffect)((()=>{if(p){const e=p.schema.properties.acf.properties.type.items.enum;let t=[];for(let a in e)t.push({label:h(S.jg[e[a]]),value:e[a]})}}),[p,h]);const{isSuccess:j,isError:Z,isLoading:z,isFetching:q,data:W,refetch:U,error:$}=(0,Be.SB)({...O,page:1}),G=(0,n.useMemo)((()=>{if(j&&W)return[...W].sort(((e,t)=>Ze[e.type]-Ze[t.type]))}),[j,W]),[X,K]=(0,n.useState)([]);(0,Pe.Z)((e=>{e!==Z&&f.fromError("BLOCK_GET_ERROR",{},$,!0)}),[Z,$,f]);const[Y,Q]=(0,n.useState)({emailId:e,pageSize:1e3,page:1,projectId:S.p5,notEmbed:!0,name:null,type:null}),{isSuccess:J,isError:ee,isLoading:te,isFetching:ae}=(0,Be.OD)({...Y,emailId:e,page:1},{skip:!e||L.length}),ne=(0,n.useMemo)((()=>{if(J||L.length)return[...L].sort(((e,t)=>Ze[e.type]-Ze[t.type]))}),[J,L]),[le,re]=(0,n.useState)([]);(0,n.useEffect)((()=>{const e=new Set;if(L.length&&ne){for(const t of ne)t.type&&e.add(t.type);re(Array.from(e))}else re([])}),[L,ne]);const[oe,ie]=(0,n.useState)({pageSize:1e3,page:1,notEmbed:!0,name:null,type:null}),{isSuccess:se,isError:ce,isLoading:de,isFetching:me,data:ue=[]}=(0,Be.kz)({...oe,page:1}),pe=(0,n.useMemo)((()=>{if(ue.length)return[...ue].sort(((e,t)=>Ze[e.type]-Ze[t.type]))}),[ue]),[ge,he]=(0,n.useState)([]);(0,n.useEffect)((()=>{const e=new Set;if(pe&&ue.length){for(const t of pe)t.type&&e.add(t.type);he(Array.from(e))}}),[ue.length,pe]);const be=(0,n.useMemo)((()=>{const e=new Set;for(const t of X)e.add(t);for(const t of le)e.add(t);for(const t of ge)e.add(t);return Array.from(e)}),[ge,le,X]),fe=e=>{F((t=>({...t,...e,page:1}))),Q((t=>({...t,...e,page:1}))),ie((t=>({...t,...e,page:1})))},Ee=(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)((()=>{me||de||!se||"template"===t||(a?Ee():l())}),[me,de,se,Ee,O.name,l,a,t]),(0,n.useEffect)((()=>{const e=new Set;if(j&&G){for(const t of G)t.type&&e.add(t.type);K(Array.from(e))}}),[j,G]);const Ce=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 ve=null;const ye=e=>{clearTimeout(ve);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=Ve('<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&&(ve=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!==W&&void 0!==W&&W.length)&&(!e||!(null!==L&&void 0!==L&&L.length))&&!(null!==ue&&void 0!==ue&&ue.length)&&(O.tags||O.name||O.type)&&!(z||q);(0,n.useEffect)((()=>{z||q||l()}),[z,q,l]),(0,n.useEffect)((()=>{("common"===t||a)&&setTimeout(l,50)}),[W,l,t,a]);const we=e=>{w({maskClosable:!0,centered:!0,title:b("Are you sure you want to delete the \u201c","block")+e.title+h("\u201d block?"),icon:n.createElement(xe.A,null),okText:h("Yes"),cancelText:h("No"),onOk:()=>(e=>P.dispatch(Be.VM.endpoints.deleteBlock.initiate(e.id)).then((t=>{t.error&&f.fromError("BLOCK_REMOVING_ERROR",(0,y.x_)(e),t.error),f.success({id:"BLOCK_REMOVING_SUCCESS",data:(0,y.x_)(e),message:h("The block \u201c")+t.data.title+b("\u201d was successfully removed.","block")}),U()})))(e)})},ke=(e,t)=>`${e.pathname.split("emails")[0]}blocks/${t.id}`,qe=e=>{let t=[{key:"Delete block",className:"blocks-search__result__menu-item",icon:n.createElement(xe.A,{style:{fontSize:"16px",margin:0}}),style:{color:g.colorError},onClick:()=>we(e)}];return!S.EW.isPlugin&&t.unshift({key:"Edit block",className:"blocks-search__result__menu-item",icon:n.createElement(Te.A,{style:{fontSize:"16px",margin:0}}),label:n.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:ke(k,e)}," ")}),t},We=e=>{let t="<tr"===e.html.substring(0,3)?document.createElement("table"):document.createElement("div");if(t.replaceChildren(...(0,Ne.$$)(e.html)),0!==Object.keys(M).length&&(t.querySelectorAll(".em-contrast-card").forEach((e=>{var t,a;null!==(t=M.cards)&&void 0!==t&&t.contrastBackgroundColor&&(e.getAttribute("bgcolor")?M.cards.contrastBackgroundColor?e.setAttribute("bgcolor",M.cards.contrastBackgroundColor):e.removeAttribute("bgcolor"):M.cards.contrastBackgroundColor?e.style.backgroundColor=M.cards.contrastBackgroundColor:e.style.removeProperty("background-color")),null!==(a=M.cards)&&void 0!==a&&a.contrastTextColor&&e.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach((e=>{if("#ffffff"!==$e(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.cards.contrastTextColor};`);e.setAttribute("style",t)}}))})),t.querySelectorAll(".em-card").forEach((e=>{var t,a;null!==(t=M.cards)&&void 0!==t&&t.baseBackgroundColor&&(e.getAttribute("bgcolor")?M.cards.baseBackgroundColor?e.setAttribute("bgcolor",M.cards.baseBackgroundColor):e.removeAttribute("bgcolor"):M.cards.baseBackgroundColor?e.style.backgroundColor=M.cards.baseBackgroundColor:e.style.removeProperty("background-color")),null!==(a=M.cards)&&void 0!==a&&a.baseTextColor&&e.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach((e=>{if("#ffffff"!==$e(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.cards.baseTextColor};`);e.setAttribute("style",t)}}))})),t.querySelectorAll(".em-card, .em-contrast-card").forEach((e=>{var t,a,n,l,r,o;null!==(t=M.cards)&&void 0!==t&&t.border&&Xe({settings:{border:null===(o=M.cards)||void 0===o?void 0:o.border},elem:e});if(null!==(a=M.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=M.cards)||void 0===i?void 0:i.borderRadius.all)+"px";if(e.style.borderBottomRightRadius&&"0px"!==e.style.borderBottomRightRadius)e.style.borderBottomRightRadius=(null===(s=M.cards)||void 0===s?void 0:s.borderRadius.all)+"px";if(e.style.borderTopLeftRadius&&"0px"!==e.style.borderTopLeftRadius)e.style.borderTopLeftRadius=(null===(c=M.cards)||void 0===c?void 0:c.borderRadius.all)+"px";if(e.style.borderTopRightRadius&&"0px"!==e.style.borderTopRightRadius)e.style.borderTopRightRadius=(null===(d=M.cards)||void 0===d?void 0:d.borderRadius.all)+"px"}else if(""===(null===(l=M.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,b,f,E,C,v,y,_,A,w,k,S,L,x,T,I;if(null!==(m=M.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=M.cards)||void 0===L?void 0:L.borderRadius.topLeft)+"px";else""===(null===(p=M.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=M.cards)&&void 0!==h&&null!==(b=h.borderRadius)&&void 0!==b&&b.topRight&&e.style.borderTopRightRadius&&"0px"!==e.style.borderTopRightRadius)e.style.borderTopRightRadius=(null===(x=M.cards)||void 0===x?void 0:x.borderRadius.topRight)+"px";else""===(null===(f=M.cards)||void 0===f||null===(E=f.borderRadius)||void 0===E?void 0:E.topRight)&&e.style.removeProperty("border-top-right-radius");if(null!==(C=M.cards)&&void 0!==C&&null!==(v=C.borderRadius)&&void 0!==v&&v.bottomRight&&e.style.borderBottomRightRadius&&"0px"!==e.style.borderBottomRightRadius)e.style.borderBottomRightRadius=(null===(T=M.cards)||void 0===T?void 0:T.borderRadius.bottomRight)+"px";else""===(null===(y=M.cards)||void 0===y||null===(_=y.borderRadius)||void 0===_?void 0:_.bottomRight)&&e.style.removeProperty("border-bottom-right-radius");if(null!==(A=M.cards)&&void 0!==A&&null!==(w=A.borderRadius)&&void 0!==w&&w.bottomLeft&&e.style.borderBottomLeftRadius&&"0px"!==e.style.borderBottomLeftRadius)e.style.borderBottomLeftRadius=(null===(I=M.cards)||void 0===I?void 0:I.borderRadius.bottomLeft)+"px";else""===(null===(k=M.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=M.text.fontFamily;if(parseFloat(e.style.fontSize)>14&&(n=e.getAttribute("style").replace(/font-size:(\s+)?.*?px/,`font-size: ${M.text.fontSize}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${M.text.lineHeight}px`),e.setAttribute("style",n)),e.closest(".em-contrast-card, .em-card")||"#ffffff"===$e(e.style.color).toLowerCase()||(n=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.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: ${M.text.contrastColor};`),e.setAttribute("style",n)),"Safe Fonts"===l[0]?(e.style.fontFamily=l[1],Ue({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,"")}`),Ge({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=M.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",M.text.paddingBottom)}}else if(!e.style.display&&parseFloat(e.style.fontSize)>=20&&"#eb3737"!==$e(e.style.color).toLowerCase()){let a="",n=M.headings.fontFamily;parseFloat(e.style.fontSize)<40&&(a=e.getAttribute("style").replace(/font-size:(\s+)?.*?px/,`font-size: ${M.headings.fontSize}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${M.headings.lineHeight}px`),e.setAttribute("style",a)),e.closest(".em-contrast-card, .em-card")||"#ffffff"===$e(e.style.color).toLowerCase()||(a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.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: ${M.headings.contrastColor};`),e.setAttribute("style",a)),"Safe Fonts"===n[0]?(e.style.fontFamily=n[1],Ue({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,"")}`),Ge({elem:t,fontFamilyArray:n}));let l="";if(l=M.headings.letterSpacing>0?e.style.letterSpacing?e.getAttribute("style").replace(/letter-spacing:(\s+)?.*?px/,`letter-spacing: ${M.headings.letterSpacing}px`):e.getAttribute("style")+` letter-spacing: ${M.headings.letterSpacing}px;`:e.getAttribute("style").replace(/(\s+)?letter-spacing:(\s+)?.*?px(;)?/,""),e.setAttribute("style",l),M.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(M.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=M.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",M.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=M.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",M.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: ${M.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(M.buttons.border).every((e=>null===e))){if(e.closest(".em-contrast-block")){if(M.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}/,`${M.buttons.contrastBackgroundColor}`)));e.closest("td").setAttribute("style",t),a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.buttons.contrastBackgroundColor};`),e.setAttribute("style",a)}}else if(M.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}/,`${M.buttons.backgroundColor}`)));e.closest("td").setAttribute("style",t),a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.buttons.backgroundColor};`),e.setAttribute("style",a)}}else for(const t in M.buttons.border)M.buttons.border[t]&&void 0!==M.buttons.border[t].color&&(a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.buttons.border[t].color};`),e.setAttribute("style",a));else e.closest(".em-contrast-block")?M.buttons.contrastBackgroundColor&&(a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.buttons.contrastBackgroundColor};`),e.setAttribute("style",a)):M.buttons.backgroundColor&&(a=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.buttons.backgroundColor};`),e.setAttribute("style",a));else if(a=e.closest(".em-contrast-block")?e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.buttons.contrastColor};`):e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.buttons.color};`),e.setAttribute("style",a),e.closest(".em-contrast-block"))if(M.buttons.contrastBackgroundColor){let t=e.closest("td").getAttribute("style").replace(/background-color:(\s+)?.*?;/,`background-color: ${M.buttons.contrastBackgroundColor};`);e.closest("td").setAttribute("style",t)}else e.closest("td").style.removeProperty("background-color");else if(M.buttons.backgroundColor){let t=e.closest("td").getAttribute("style").replace(/background-color:(\s+)?.*?;/,`background-color: ${M.buttons.backgroundColor};`);e.closest("td").setAttribute("style",t)}else e.closest("td").style.removeProperty("background-color");let n=M.buttons.fontFamily;"Safe Fonts"===n[0]?(e.style.fontFamily=n[1],Ue({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,"")}`),Ge({elem:t,fontFamilyArray:n})),e.closest("td").setAttribute("align",M.buttons.textAlign);let l="";if(l=M.buttons.letterSpacing>0?e.style.letterSpacing?e.getAttribute("style").replace(/letter-spacing:(\s+)?.*?px/,`letter-spacing: ${M.buttons.letterSpacing}px`):e.getAttribute("style")+` letter-spacing: ${M.buttons.letterSpacing}px;`:e.getAttribute("style").replace(/(\s+)?letter-spacing:(\s+)?.*?px(;)?/,""),e.setAttribute("style",l),M.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(M.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=M.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",M.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=M.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",M.buttons.marginBottom)}M.buttons.padding.all&&(e.style.padding=M.buttons.padding.all+"px"),M.buttons.padding.top&&(e.style.paddingTop=M.buttons.padding.top+"px"),M.buttons.padding.right&&(e.style.paddingRight=M.buttons.padding.right+"px"),M.buttons.padding.bottom&&(e.style.paddingBottom=M.buttons.padding.bottom+"px"),M.buttons.padding.left&&(e.style.paddingLeft=M.buttons.padding.left+"px"),Xe({settings:{border:M.buttons.border},elem:e.closest("td")}),Ke({settings:{borderRadius:M.buttons.borderRadius},elem:e.closest("td")})}}else{let a=M.text.fontFamily;if("#1c52dc"===$e(e.style.color).toLowerCase()){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.links.color};`);e.setAttribute("style",t)}else{let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.text.color};`);e.setAttribute("style",t)}if(e.closest(".em-contrast-block")){let t=e.getAttribute("style").replace(/color:(\s+)?.*?;/,`color: ${M.links.contrastColor};`);e.setAttribute("style",t)}let n="";n=M.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],Ue({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,"")}`),Ge({elem:t,fontFamilyArray:a}))}})),t.querySelector('[em="block"]'))){var a,n;const e=t.querySelectorAll('[em="block"]');null!==(a=M.block)&&void 0!==a&&a.backgroundColor&&e.forEach((e=>{e.querySelectorAll(":scope > td").forEach((e=>{e.setAttribute("bgcolor",M.block.backgroundColor)}))})),null!==(n=M.block)&&void 0!==n&&n.padding&&e.forEach((e=>{e.querySelectorAll(":scope > td").forEach((e=>{e.style.paddingTop=M.block.padding.top+"px",e.style.paddingRight=M.block.padding.right+"px",e.style.paddingBottom=M.block.padding.bottom+"px",e.style.paddingLeft=M.block.padding.left+"px"}))}))}return"DIV"===t.tagName?(0,Me.uL)(t):(0,Me.uL)(t.querySelector("tbody"))},Ue=e=>{e.elem.querySelectorAll("link[em-class]").forEach((t=>{e.elem.querySelector("."+t.getAttribute("em-class"))||t.remove()}))};function $e(e){if(e&&"r"===e.charAt(0)){if("a"===e.charAt(3))return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):"";{e=e.replace("rgb(","").replace(")","").split(",");let t=parseInt(e[0],10).toString(16),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 Ge=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@${Ye[e.fontFamilyArray[3]].indexOf("i")>-1?"1":"0"},${Ye[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]}', ${Qe[e.fontFamilyArray[1]]}!important;`;l+=` font-weight: ${Ye[e.fontFamilyArray[3]].replaceAll("i","")}!important;`,Ye[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((()=>Ue({elem:e.elem})),0)},Xe=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))},Ke=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"))},Ye={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"},Qe={"Sans Serif":"sans-serif",Serif:"serif"};return n.createElement("div",{className:A()("blocks-search",{is_search:a})},n.createElement(T.A,{className:A()("blocks-search__form",{is_search:a}),form:m,layout:"vertical",name:"blocks_search_form",initialValues:{...je},onValuesChange:e=>{const t=Object.keys(e)[0],a=m.getFieldsValue(!0);switch(t){case Fe:const n=(0,He._q)(V,S.YY).filter((a=>e[t].includes(a.name))).map((e=>e.id))||null;fe({tags:n});break;case De:fe({type:a.type||null});break;case Oe:x.current&&window.clearTimeout(x.current),x.current=window.setTimeout((function(){fe({name:a.name||null})}),300)}},autoComplete:"off"},n.createElement(T.A.Item,{name:Oe},n.createElement(N.A,{placeholder:h("Search by title"),allowClear:!0,suffix:n.createElement(Ie.A,{className:"cards-search__search-icon, input-icon",style:{fontSize:"16px",cursor:"pointer"}})}))),(Z||ee||ce)&&n.createElement(u.A,{message:h("Error"),description:h("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:Ce},h("All")),be.map((e=>n.createElement("li",{"data-type":e,onClick:Ce,key:"search_"+e},h(S.jg[e])))))),n.createElement("div",{ref:I,className:A()("blocks-search__result-wrapper",{is_search:a})},("project"===t||a)&&n.createElement(n.Fragment,null,!!X.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:Ce},h("All")),X.map((e=>n.createElement("li",{key:"blocksSections_"+e,"data-type":e,onClick:Ce},h(S.jg[e])))))),n.createElement("div",{className:A()("blocks-search__blocks-wrapper",{is_search:a}),ref:R},n.createElement("div",{className:"blocks-search__result-holder project"},!(z||q)&&(null!==G&&void 0!==G&&G.length?G.map(((e,t)=>{const a=Ve('<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(Se.A,{key:"commenMenu",placement:"leftTop",menu:{items:qe(e)},overlayStyle:{minWidth:"auto",paddingRight:6}},n.createElement("div",{className:"ant-card-hoverable blocks-search__result-body",draggable:!0,onClick:t=>s(t,e.html),onDragStart:t=>c(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+")"}}))))})):!(O.tags||O.name||O.type)&&j&&!(z||q)&&!a&&n.createElement("div",{className:"blocks-search__type",style:{padding:"10px 0 20px"}},h("You don`t have any saved blocks yet."),n.createElement("br",null),n.createElement("br",null),h("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"}))," ",h("Save to Blocks button.")))),(z||q)&&n.createElement(Le.A,{active:!0}))),a&&(null===W||void 0===W?void 0:W.length)>0&&(null===L||void 0===L?void 0:L.length)>0&&n.createElement(d.A,{className:"blocks-search__result-divider"}),("template"===t||a)&&n.createElement(n.Fragment,null,!!le.length&&!a&&n.createElement("div",{className:"blocks-search__type-wrapper"},n.createElement("ul",null,n.createElement("li",{"data-type":"",className:"active",onClick:Ce,key:"templateBlocksSections_All"},h("All")),le.map((e=>n.createElement("li",{key:"templateBlocksSections_"+e,"data-type":e,onClick:Ce},h(S.jg[e])))))),n.createElement("div",{className:A()("blocks-search__blocks-wrapper",{is_search:a}),ref:B},n.createElement("div",{className:"blocks-search__result-holder template"},L&&!te&&!ae&&null!==ne&&void 0!==ne&&ne.length?n.createElement(n.Fragment,null,ne.map(((e,t)=>{const a=Ve('<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=>s(t,e.html),onDragStart:t=>c(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&&!de&&!ae&&n.createElement("div",{className:"blocks-search__type",style:{padding:"10px 0 20px"}},h("No related blocks found."))," "),(te||ae)&&n.createElement(Le.A,{active:!0}))),a&&(null===L||void 0===L?void 0:L.length)>0&&(null===ue||void 0===ue?void 0:ue.length)>0&&n.createElement(d.A,{className:"blocks-search__result-divider"}),("common"===t||a)&&n.createElement(n.Fragment,null,!(null===ge||void 0===ge||!ge.length)&&!a&&n.createElement("div",{className:"blocks-search__type-wrapper"},n.createElement("ul",null,n.createElement("li",{"data-type":"",className:"active",onClick:Ce,key:"commonBlocksSections_All"},h("All")),ge.map((e=>n.createElement("li",{"data-type":e,onClick:Ce,key:"commonBlocksSections_"+e},h(S.jg[e])))))),n.createElement("div",{className:A()("blocks-search__blocks-wrapper",{is_search:a}),ref:H},n.createElement("div",{className:"blocks-search__result-holder common"},se&&!(null===pe||void 0===pe||!pe.length)&&!(me||de)&&n.createElement(n.Fragment,null,pe.map(((e,t)=>{const a=We({html:Ve('<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=>s(t,We({html:e.html})),onDragStart:t=>c(t,We({html:e.html}),"common"),onMouseEnter:()=>ye({html:We({html:Ve('<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+")"}})))})))," "),(de||me)&&n.createElement(Le.A,{active:!0}))),Ae&&n.createElement("div",{className:"blocks-search__type",style:{padding:"10px 0 20px"}},h("There are no blocks for this request."))))};var We=a(45185),Ue=a(58099);const $e=`<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>`,Ge=`<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 Xe=a(34021),Ke=a.n(Xe),Ye=a(62315),Qe=a.n(Ye),Je=a(67558),et=a.n(Je),tt=a(75995),at=a.n(tt),nt=a(80465),lt=a.n(nt),rt=a(40845),ot=a.n(rt),it=a(66930),st=a.n(it);const ct=`<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 dt=a(45848),mt=a.n(dt);const ut=new Date,pt=new Date(+ut+432e6).toISOString(),gt=-(new Date).getTimezoneOffset()/60,ht=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=${pt}&timezone=${gt}&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=${pt}&timezone=${gt}&frames=20`)(e)}" border="0" alt="" style="display: block;" /></td></tr></table>`,bt=`<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 ft=a(74372),Et=a.n(ft),Ct=a(12133),vt=a.n(Ct),yt=a(48956),_t=a(47014),At=a(84572);const wt=()=>{var e,t;const a=(0,v.s9)(),{__:l}=a,r=(0,L.rD)(),o=(0,E.d4)(At.yN),c=(0,E.d4)(_t.B$),d=(0,E.d4)(_t.C1),m=(0,E.d4)(_t.B),u=(0,He.X7)(),p=(0,He.Qi)(),[g,h]=(0,n.useState)(!1),[b,f]=(0,n.useState)(0);let C=!(c||(null===(e=d.id)||void 0===e?void 0:e.toString())!==(null===o||void 0===o||null===(t=o.members)||void 0===t?void 0:t.owner.ID))&&!0;const y=[];r.elementImageEnabled&&y.push({title:l("Image"),icon:n.createElement(V.A,{icon:"ElementImage"}),html:$e,className:"",name:"image"}),r.elementAIimageEnabled&&y.push({title:l("AI image"),icon:n.createElement(V.A,{icon:"ElementImageAI"}),html:Ge,className:"ai",name:"ai-image"}),r.elementTextEnabled&&y.push({title:l("Text"),icon:n.createElement(V.A,{icon:"ElementText"}),html:Ke()(a),className:"",name:"text"}),r.elementHeaderEnabled&&y.push({title:l("Header"),icon:n.createElement(V.A,{icon:"ElementTitle"}),html:Qe()(a),className:"",name:"header"}),r.elementButtonEnabled&&y.push({title:l("Button"),icon:n.createElement(V.A,{icon:"ElementButton"}),html:et()(a),className:"",name:"button"}),r.elementSpacerEnabled&&y.push({title:l("Spacer"),icon:n.createElement(V.A,{icon:"ElementSpacer"}),html:st(),className:"",name:"spacer"}),r.elementListULEnabled&&y.push({title:l("List UL"),icon:n.createElement(V.A,{icon:"ElementListUL"}),html:at()(a),className:"",name:"list-ul"}),r.elementListOLEnabled&&y.push({title:l("List OL"),icon:n.createElement(V.A,{icon:"ElementListOL"}),html:lt()(a),className:"",name:"list-ol"}),r.elementDividerEnabled&&y.push({title:l("Divider"),icon:n.createElement(V.A,{icon:"ElementDivider"}),html:ot(),className:"",name:"divider"}),r.elementSocialEnabled&&y.push({title:l("Social media"),icon:n.createElement(V.A,{icon:"ElementSocial"}),html:ct,className:"",name:"social"}),r.elementTableEnabled&&y.push({title:l("Table"),icon:n.createElement(V.A,{icon:"ElementTable"}),html:mt()(a),className:"",name:"table"}),r.elementCountdownEnabled&&y.push({title:l("Countdown"),icon:n.createElement(V.A,{icon:"ElementCountdown"}),html:ht(m),className:"",name:"countdown"}),r.elementVideoEnabled&&y.push({title:l("Video"),icon:n.createElement(V.A,{icon:"ElementVideo"}),html:bt,className:"",name:"video"}),r.elementCarouselEnabled&&y.push({title:l("Carousel"),icon:n.createElement(V.A,{icon:"ElementCarousel"}),html:Et()(a),className:"amp",name:"amp-carousel"}),r.elementAccordionEnabled&&y.push({title:l("Accordion"),icon:n.createElement(V.A,{icon:"ElementAccordion"}),html:vt()(a),className:"amp",name:"amp-accordion"}),r.elementFormEnabled&&y.push({title:l("Form"),icon:n.createElement(V.A,{icon:"ElementForm"}),html:null,className:"amp",name:"amp-form"});const _=e=>!C||"ai-image"!==e.name||(setTimeout((()=>{h(!0),f(2)}),1e3),!1);return n.createElement("div",{className:"atoms"},n.createElement("div",{className:"atoms__list"},n.createElement(s.A,{wrap:!0,style:{justifyContent:"space-between",rowGap:10}},y&&y.map(((e,t)=>e.html?n.createElement("div",{className:"ant-card-hoverable atoms__item "+e.className,draggable:!0,onClick:t=>u(t,e.html),onDragStart:t=>p(t,e,_),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(i.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(yt.A,{open:g,onCancel:()=>h(!1),initialSlide:b}))};var kt=a(54880),St=a(24075),Lt=a(33309),xt=a(54855),Tt=a(37133);const It=({emailElementType:e,isSelectedElement:t=!1,selectedElement:a})=>{var l,r,o,c,m,p,f,C,y;const{__:_}=(0,v.s9)(),A=(0,E.wA)(),w=(0,F.XW)(),[k]=T.A.useForm(),x=(0,n.useRef)(),N=(0,n.useRef)(),R=(0,E.d4)(O.qX),H=(0,E.d4)(te.qX),P=(0,L.rD)(),V=a||(e===S.Tm?R:H),[j,Z]=(0,n.useState)(null===(l=V.floatBlocks)||void 0===l?void 0:l.wrap),[z,q]=(0,n.useState)(null===(r=V.floatBlocks)||void 0===r?void 0:r.dirRevers),[W,U]=(0,n.useState)(null),[$,G]=(0,n.useState)(0),[X,K]=(0,n.useState)([]),Y=(0,E.d4)(D.Ct),Q=(0,n.useCallback)((t=>{A(e===S.Tm?(0,O.A9)(t):(0,te.A9)(t))}),[A,e]);(0,n.useEffect)((()=>{if(V&&"{}"!==JSON.stringify(V)&&k._init){var e,t,a,n,l;if(k.resetFields(),k.setFieldsValue({gap:null===(e=V.floatBlocks)||void 0===e?void 0:e.gap,gapMobile:null===(t=V.floatBlocks)||void 0===t?void 0:t.gapMobile,gapDim:"px",valign:null===(a=V.floatBlocks)||void 0===a?void 0:a.valign}),(null===(n=V.floatBlocks)||void 0===n?void 0:n.items.length)>0){var r;const o=V.floatBlocks.items.reduce(((e,t)=>e+t.width),0),i=V.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}G(o),s(i,X)||"gap"===V.changeKey||K(i),V.floatBlocks.items.forEach(((e,t)=>k.setFieldsValue({["width-"+t]:e.width||0}))),V.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")}Z(null===(l=V.floatBlocks)||void 0===l?void 0:l.wrap)}}),[k,V,W,X]);let J=0;(null===(o=V.floatBlocks)||void 0===o?void 0:o.items.length)>0&&(J=V.floatBlocks.items.length);const ee=(e,t)=>{Object.keys(t).forEach((t=>{if(t.includes("width")){const a=parseInt(t.match(/\d+/));k.setFieldsValue({[t]:e.items[a]})}}))},[ae,ne]=(0,n.useState)(!1);(0,n.useEffect)((()=>{const e=()=>ne(!0),t=()=>ne(!1);return document.addEventListener("keyup",t),document.addEventListener("keydown",e),()=>{document.removeEventListener("keyup",t),document.removeEventListener("keydown",e)}}),[]);const le=e=>{const a=k.getFieldsValue(!0),n=V.floatBlocks.items.map((e=>e.width)),l=V.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);K(o.map((e=>{var t;return null===(t=e/m*100)||void 0===t?void 0:t.toFixed(1)}))),w({operation:S.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:"floatBlocksPreset",settings:d,editFromStructure:!!document.querySelector(".selected-element-panel__columns-settings__links__add").closest(".selected-element-panel")}),Q({...V,activateSection:t?void 0:"structure",floatBlocks:{...V.floatBlocks,...d,items:d.items.map(((e,t)=>({width:e,current:!1})))},changeKey:"width"})},re=e=>{const a=k.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=+V.floatBlocks.gap,r=+V.floatBlocks.items[n].width+l,o=V.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))}w({operation:S.Ru.SANDBOX_FLOATBLOCK_REMOVE,settings:{removedBlockIndex:n,gap:a.gap},editFromStructure:!!document.querySelector(".selected-element-panel__columns-settings__links__add").closest(".selected-element-panel")}),Q({...V,activateSection:t?void 0:"structure",floatBlocks:{...V.floatBlocks,items:m.map(((e,t)=>({width:e,current:V.floatBlocks.items.filter(((e,t)=>t!==n))[t].current})))},changeKey:"width"})};return V.floatBlocks&&V.floatBlocks.items.length>0&&n.createElement(T.A,{layout:"vertical",form:k,name:"float_blocks_settings_form",autoComplete:"off",initialValues:{gap:(null===(c=V.floatBlocks)||void 0===c?void 0:c.gap)||0,gapDim:"px",gapMobile:(null===(m=V.floatBlocks)||void 0===m?void 0:m.gapMobile)||0,valign:(null===(p=V.floatBlocks)||void 0===p?void 0:p.valign)||"top",...null===(f=V.floatBlocks)||void 0===f?void 0:f.items.reduce(((e,{width:t},a)=>(e[`width-${a}`]=t,e)),{})},onValuesChange:e=>{N.current&&ae&&clearTimeout(N.current),N.current=setTimeout((()=>function(e){const a=k.getFieldsValue(!0),n=Object.keys(e)[0];if(U(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=$;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])})),w({operation:S.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:"floatBlocksWidths",settings:l}),Q({...V,activateSection:t?void 0:"structure",floatBlocks:{...V.floatBlocks,...l,items:V.floatBlocks.items.map(((e,t)=>({...V.floatBlocks.items[t],width:l.items[t]})))},changeKey:n})}}else if("gap"===n){const l={items:V.floatBlocks.items.map((e=>e.width)),gap:V.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||V.floatBlocks.gap-e>=0){const e=(e,t)=>Math.round(t*e/100);let s=l.items.map(((t,a)=>e(X[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};ee(d,a),w({operation:S.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:"floatBlocksGap",settings:d,editFromStructure:!!document.querySelector(".selected-element-panel__columns-settings__links__add").closest(".selected-element-panel")}),Q({...V,activateSection:t?void 0:"structure",floatBlocks:{...V.floatBlocks,...d,items:V.floatBlocks.items.map(((e,t)=>({...e,width:d.items[t]})))},changeKey:n})}}else if("valign"===n){let e={valign:a.valign};w({operation:S.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:"floatBlocksValign",settings:e,editFromStructure:!!document.querySelector(".selected-element-panel__columns-settings__links__add").closest(".selected-element-panel")}),Q({...V,activateSection:t?void 0:"structure",floatBlocks:{...V.floatBlocks,...e},changeKey:n})}else if("gapMobile"===n){let a={mobileHeight:{classNamePrefix:"em-mob-height-",value:e[n],dim:"px"}};w({operation:S.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:"floatBlocksGapMobile",settings:a,editFromStructure:!!document.querySelector(".selected-element-panel__columns-settings__links__add").closest(".selected-element-panel")}),Q({...V,activateSection:t?void 0:"structure",floatBlocks:{...V.floatBlocks,gapMobile:a.mobileHeight.value},changeKey:n})}setTimeout((()=>(null===x||void 0===x?void 0:x.current)&&x.current.focus({cursor:"end"})),600)}(e)),50)},onFieldsChange:()=>setTimeout((()=>(null===x||void 0===x?void 0:x.current)&&x.current.focus({cursor:"end"})),300),className:"element-controls"},n.createElement("div",{className:"selected-element-panel__columns-settings",style:{paddingTop:P.switchDesktopMobilePropsEnabled||P.stepToOtherElementEnabled||P.deleteButtonEnabled||"structure"===V.type?0:24}},1===V.floatBlocks.items.length&&n.createElement(u.A,{style:{marginBottom:10},message:_('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"}),Y!==S.ND&&n.createElement(n.Fragment,null,n.createElement(s.A,{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"}},n.createElement("div",{className:"form-group-title",style:{paddingTop:0}},_("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=k.getFieldsValue(!0);if(J<8){const a=V.floatBlocks.items.map((e=>e.width)),n=V.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)))}w({operation:S.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")}),Q({...V,activateSection:t?void 0:"structure",floatBlocks:{...V.floatBlocks,items:i.map(((e,t)=>{var a;return{width:e,current:(null===(a=V.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(Lt.A,null)," ",_("Add column")),V.floatBlocks.items.length>1&&n.createElement("span",{onClick:()=>{const e=k.getFieldsValue(!0),a=V.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($/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))}ee(n,e),w({operation:S.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:"floatBlocksWidths",settings:n,editFromStructure:!!document.querySelector(".selected-element-panel__columns-settings__links__add").closest(".selected-element-panel")}),Q({...V,activateSection:t?void 0:"structure",floatBlocks:{...V.floatBlocks,...n,items:V.floatBlocks.items.map(((e,t)=>({...e,width:n.items[t]})))},changeKey:"width"})}},n.createElement(i.A,{title:_("Make columns the same width.")},n.createElement(B.A,null)," ",_("Equalize"))))),V.floatBlocks.items.length>1&&n.createElement(T.A.Item,{style:{marginBottom:16}},n.createElement("div",{className:"selected-element-panel__columns-settings__controls"},V.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/$*100+"%"}},V.floatBlocks.items.length>1&&n.createElement("span",{className:"selected-element-panel__columns-settings__controls__column__remove",onClick:re},n.createElement(xe.A,{style:{color:"#ff4d4f"}})),n.createElement("div",{className:"selected-element-panel__columns-settings__controls__field"},n.createElement(T.A.Item,{label:"",name:"width-"+t},n.createElement(I.A,{min:30,value:e.width||0,placeholder:_("Width"),ref:W==="width-"+t&&x})))))))),n.createElement(s.A,{size:7,className:"columns-presets"},n.createElement(g.Ay,{onClick:()=>{le({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(g.Ay,{onClick:()=>{le({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(g.Ay,{onClick:()=>{le({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(g.Ay,{onClick:()=>{le({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(g.Ay,{onClick:()=>{le({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(g.Ay,{onClick:()=>{le({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"}))))),V.floatBlocks.items.length>1&&n.createElement(n.Fragment,null,Y===S.ND&&n.createElement(s.A,{style:{marginBottom:24}},n.createElement(M.A,{size:"small",disabled:void 0===(null===(C=V.floatBlocks)||void 0===C?void 0:C.wrap),checked:j,onChange:e=>{Z(e),w({operation:S.Ru.SANDBOX_FLOATBLOCK_WRAP,settings:{wrap:!j}}),Q({...V,activateSection:t?void 0:"structure",floatBlocks:{...V.floatBlocks,wrap:!j},changeKey:"wrap"})}}),n.createElement("div",{style:{position:"relative",top:2}},_("Line break on mobile devices"))),Y!==S.ND&&n.createElement(s.A,{style:{marginBottom:24}},n.createElement(M.A,{size:"small",disabled:void 0===(null===(y=V.floatBlocks)||void 0===y?void 0:y.wrap),checked:z,onChange:e=>{q(e),w({operation:S.Ru.SANDBOX_FLOATBLOCK_DIR,settings:{dirRevert:!z}}),Q({...V,activateSection:t?void 0:"structure",floatBlocks:{...V.floatBlocks,dirRevert:!z},changeKey:"dir"})}}),n.createElement("div",{style:{position:"relative",top:2}},_("Revers order on desktop")))),V.floatBlocks.items.length>1&&n.createElement(n.Fragment,null,n.createElement(d.A,{className:"selected-td-form__divider"}),n.createElement(h.A,{gutter:10},n.createElement(b.A,{span:12},n.createElement("div",{className:"form-group-title"},_("Vertical alignment")),n.createElement("div",{style:{paddingBottom:4}},n.createElement(Tt.A,{form:k,elementSettings:{},disabled:V.floatBlocks.items.length<=1}))),n.createElement(n.Fragment,null,Y!==S.ND&&n.createElement(b.A,{span:12},n.createElement("div",{className:"form-group-title"},_("Indent between columns")),n.createElement(T.A.Item,{name:"gap",style:{marginBottom:20}},n.createElement(fe.A,{min:0,disabled:V.floatBlocks.items.length<=1,placeholder:_("Indent between columns"),prefix:n.createElement(B.A,null),addonAfter:"px",ref:"gap"===W&&x}))),Y===S.ND&&n.createElement(b.A,{span:12},n.createElement("div",{className:"form-group-title"},_("Indent in mobile")),n.createElement(T.A.Item,{name:"gapMobile",style:{marginBottom:20}},n.createElement(fe.A,{min:0,disabled:V.floatBlocks.items.length<=1,placeholder:_("Indent in mobile"),prefix:n.createElement(xt.A,null),addonAfter:"px"}))))))))};It.defaultProps={selectedElement:{parent:!1}};const Mt=It,Nt=({email:e,formSettings:t})=>{var a,l;const{__:r}=(0,v.s9)(),o=(0,E.wA)(),c=(0,F.XW)(),d=e.hasOwnProperty("type")?S.IE:S.Tm,u=(0,E.d4)(O.qX),p=(0,E.d4)(te.qX),h=(0,E.d4)(D.Tn),b=Object.keys(t).length>0?t.settings:d===S.Tm?u:p,f=(0,L.rD)();(0,n.useEffect)((()=>{const e=Object.values(S.bV);b.type&&e.includes(b.type)?"structure"!==b.activateSection?(document.querySelector(".email-pane .secondary-tabs .ant-tabs-content").scrollTop=0,o((0,D.Bp)(S.WU))):o((0,D.Bp)(S.mX)):"{}"!==JSON.stringify(b)&&o((0,D.Bp)(""))}),[b,o]);let C=[{label:n.createElement("span",{style:{textTransform:"capitalize"}},b.caption?b.caption:r("Edit element")),key:S.WU,forceRender:!0,className:"email-properties__collapse-panel",children:n.createElement(St.A,{className:"email-properties__collapse-panel",key:S.WU,selectedElement:b,formSettings:t,emailElementType:d,forceRender:!0})}];b.type&&!(null===(a=b.floatBlocks)||void 0===a||!a.items.length)>0&&!(null===(l=b.floatBlocks)||void 0===l||!l.items.filter((e=>!!e.width)).length)>0&&C.push({label:n.createElement(n.Fragment,null,r("Structure")),key:S.mX,forceRender:!0,className:"email-properties__collapse-panel",children:n.createElement(Mt,{selectedElement:b,emailElementType:d,isSelectedElement:!1})});const y=e=>{e.stopPropagation(),c({operation:S.Ru.SANDBOX_ELEMENT_PARENT_GET})};return n.createElement(n.Fragment,null,n.createElement(m.A,{className:A()("secondary-tabs email-properties__collapse",{"secondary-tabs_unset_scroll":h===S.nA||h===S.WU}),size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:h,onChange:e=>o((0,D.Bp)(e||"")),items:C}),((e,t,a)=>(f.switchDesktopMobilePropsEnabled||f.stepToOtherElementEnabled||f.deleteButtonEnabled)&&n.createElement(n.Fragment,null,n.createElement(s.A,{className:"selected-element-panel__extra-btn-container"},n.createElement(s.A,null,n.createElement(s.A,{size:5},f.deleteButtonEnabled&&n.createElement(i.A,{title:r("Remove element by Delete Key"),placement:"bottom"},n.createElement(g.Ay,{type:"text",onClick:e=>((e,t,a)=>{e.stopPropagation(),c({operation:S.Ru.SANDBOX_ELEMENT_REMOVE}),t(a===S.Tm?(0,O.A9)({}):(0,te.A9)({}))})(e,t,a),icon:n.createElement(xe.A,null),disabled:!b.deletable})),f.stepToOtherElementEnabled&&n.createElement(i.A,{title:r("Up to parent element"),placement:"bottom"},n.createElement(g.Ay,{type:"text",onClick:y,icon:n.createElement(V.A,{icon:"GoToParent"}),disabled:!b.parent})))))))(b.parent,o,d),n.createElement(g.Ay,{type:"text",className:"ant-modal-close","aria-label":"Close",onClick:()=>{o((0,D.Fk)()),setTimeout((()=>{d===S.IE?o((0,te.A9)({type:null})):o((0,O.A9)({type:null}))}),300),c({operation:S.Ru.SANDBOX_ELEMENT_ACTIVE_RESET})}},n.createElement(V.A,{icon:"Close"})))};var Rt=a(5553),Bt=a(83612),Ht=a(25232),Pt=a(58316),Vt=a(38826),Ot=a(30753),Dt=a(76047),Ft=a(33932),jt=a(70875),Zt=a(89613),zt=a(90614),qt=a(86095),Wt=a(30315),Ut=a(15626);const $t=e=>{const{__:t}=(0,v.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:Gt}=N.A,Xt=({messages:e,newEmailAiGeneratorRef:t})=>{const a=(0,qt.fn)(),{__:l,_n:r}=(0,v.s9)(),o=(0,E.wA)(),s=(0,n.useRef)(null),c=(0,L.rD)(),d=(0,y.hN)(),{projectId:m,emailId:u}=(0,C.g)(),p=(0,Zt.u)(),h=(0,zt.ml)(Ut.AZ.ON_LIMIT_ID),[b,_]=(0,n.useState)(null),[A,w]=(0,n.useState)(0),[k,x]=(0,n.useState)(!1),[I,M]=(0,n.useState)(""),[N,R]=(0,n.useState)([]),[B,H]=(0,n.useState)(!1),[P,D]=(0,n.useState)(!1),[j,Z]=(0,n.useState)(null),[z,q]=(0,n.useState)(0),[W,U]=(0,n.useState)(null),$=(0,E.d4)(O.Hs),G=(0,E.d4)(_t.C1),X=(0,F.QC)(),[K]=(0,Ft.YG)(),Y=(0,F.XW)(),[Q,J]=(0,Ft.EQ)(),[ee,{reset:te}]=(0,jt.MN)(),[ae,{data:ne=[]}]=(0,jt.y4)(),le={cursor:k?"not-allowed":"default",pointerEvents:k?"none":"auto"};(0,n.useEffect)((()=>{W&&B&&(t.current=!0),B||(t.current=!1)}),[W,B]);const re=!(!c.limits||!c.counters)&&S.EW.isPlugin,{limits:oe}=S.EW.isPlugin&&c.limits?c:{limits:{ai_limit:0,ai_generator_limit:0}},{ai_limit:ie,ai_generator_limit:se}=oe,ce=re&&A>=ie&&ie>0,de=re&&z>=se&&se>0,me=(0,n.useCallback)((()=>{h.fire({name:"AiChatCount",count:A+1})}),[h,A]),ue=(0,n.useCallback)((()=>{h.fire({name:"AiGeneratorCount",count:z+1})}),[h,z]);(0,n.useEffect)((()=>{var e,t;re&&(w((null===c||void 0===c||null===(e=c.counters)||void 0===e?void 0:e.ai_counter)||0),q((null===c||void 0===c||null===(t=c.counters)||void 0===t?void 0:t.ai_generator_counter)||0))}),[c,re]),(0,n.useEffect)((()=>{U((()=>{var e;if(N.length<=0)return!1;return"email-generator"===(null===(e=N.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)})())}),[N]);const pe=(0,n.useCallback)((async()=>await X.sendAsync(S.Ru.SANDBOX_IS_EMAIL_EMPTY)),[X]),ge=(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]),he=(0,n.useCallback)((()=>{K({entity_id:u}).then((e=>{R(e.data.documents),ge()}))}),[u,K,R,ge]),be=(0,n.useCallback)((()=>{H(!0),x(!0),ee({task_id:b,entity_id:u,status:"started"}).then((()=>{he()}))}),[u,ee,b,he]),fe=(0,n.useCallback)((()=>{ee({task_id:b,entity_id:u,status:"completed"}).then((e=>{403===e.data.status&&te(),he()})).catch((e=>{})),x(!1),H(!1)}),[u,ee,b,he,te]);(0,n.useEffect)((()=>{let e;if(B){var t,n;const l=null===(t=ne[ne.length-1])||void 0===t||null===(n=t.processing)||void 0===n?void 0:n.email;if(l){let t=ne[ne.length-1].status;e=setInterval(a.setValue(l),500),0===t&&fe()}j&&(clearInterval(e),o((0,O.AJ)(l)),H(!1),Z(!1))}return()=>{clearInterval(e)}}),[a,j,o,ne,B,$,u,b,he,ee,J,fe]),(0,n.useEffect)(ge,[ge]),(0,n.useEffect)((()=>{(null===e||void 0===e?void 0:e.length)>0&&R(e),Y({operation:S.Ru.SANDBOX_EMAIL_CONTENT_GET})}),[e,Y]),(0,n.useEffect)((()=>{const e=X.onInit((()=>{X.send({operation:S.Ru.SANDBOX_LOCK_EDIT,data:k}),X.send({operation:S.Ru.SANDBOX_LOCK_DISCUSS,value:k})}));return()=>e.dispose()}),[k,X]);const Ee=async()=>{if(I){const e=I.replaceAll(/\n/g,"<br>"),t={project_id:m,connection:"chat",entity_id:u,message:e,locale:G.locale.slice(0,2),subject:$.subject||"",preheader:$.preheader||"",textContent:(0,Wt.T5)(a.getValue())};if(W&&de||ce){d.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:l(W?"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(W?"You have reached the limit of AI generator usage.":"You have reached the limit of AI chat usage.")}};R((t=>[...t,e]))}else{re&&(W&&z!==se?(ue(),q((e=>e+1))):A!==ie&&(me(),w((e=>e+1)))),p({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:G.first_name+" "+G.last_name,avatar_url:G.avatar_urls[24]}}},{data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}}];R((e=>[...e,...a])),Q({body:t}).then((e=>{if(401===e.data.status)throw new Error(S.ff);if(e.data.task_id){let t=e.data.task_id;_(t),ae({id:t,setError:Z}),pe().then((e=>{e?be():D(!0)}))}he()})).catch((e=>{var t,a;d.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"})}))}M("")}},Ce=e=>{const t={data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}};R((e=>[...e,t]));const r={project_id:m,connection:"chat",entity_id:u,context:e,locale:G.locale.slice(0,2),subject:$.subject||"",preheader:$.preheader||"",textContent:(0,Wt.T5)(a.getValue())};if(re&&(W&&z!==se?(ue(),q((e=>e+1))):A!==ie&&(me(),w((e=>e+1)))),ce){d.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.")}};R((t=>[...t,e]))}else p({event:"select",action:"select_ai_assistant_role",context:r.context,entity_id:r.entity_id,project_id:r.project_id}),Q({body:r}).then((e=>{if(401===e.data.status)throw new Error(S.ff);he()})).catch((e=>{var t,a;d.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"})}))},ve=(0,n.useCallback)((e=>{const t={data:{role:"user",message:e,userInfo:{display_name:G.first_name+" "+G.last_name,avatar_url:G.avatar_urls[24]}}},r={data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}};R((e=>[...e,t,r]));const o={project_id:m,connection:"chat",entity_id:u,message:e,locale:G.locale.slice(0,2),subject:$.subject||"",preheader:$.preheader||"",textContent:(0,Wt.T5)(a.getValue())};if(de){d.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.")}};R((t=>[...t,e]))}else Q({body:o}).then((e=>{if(401===e.data.status)throw new Error(S.ff);if(e.data.task_id){let t=e.data.task_id;_(t),ae({id:t,setError:Z}),pe().then((e=>{e?be():D(!0)}))}re&&(W&&z!==se?(ue(),q((e=>e+1))):A!==ie&&(me(),w((e=>e+1)))),he()})).catch((e=>{var t,a;d.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,A,z,pe,be,ie,se,G,$,u,W,de,me,ue,re,a,d,m,Q,ae,he]);(0,n.useEffect)((()=>{const e=window.localStorage.getItem(S.V0.em_ai_settings);if(1===N.length&&"assistant"===N[0].data.role&&e&&u){const t=new He.jG,a={project_id:m,connection:"chat",entity_id:u,context:"email-generator",locale:G.locale.slice(0,2)};window.localStorage.removeItem(S.V0.em_ai_settings),Q({body:a}).then((({data:a})=>{t.isDisposed()||ve(e)}))}}),[N,ve,u,G.locale,m,Q]);const ye={replace:e=>{var t,a,r,o,s,c,m,u;if(null!==(t=e.attribs)&&void 0!==t&&null!==(a=t.class)&&void 0!==a&&a.split(" ").includes("ai-response-title"))return n.createElement(i.A,{placement:"left",title:l("Replace the title")},n.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;X.send(S.Ru.SANDBOX_SUBJECT_UPDATE,{value:e.children[0].data,guid:$.renderGuid,fromAI:!0}),d.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,Ht.zd)(e.children,ye))));if(null!==(r=e.attribs)&&void 0!==r&&null!==(o=r.class)&&void 0!==o&&o.split(" ").includes("ai-response-preheader"))return n.createElement(i.A,{placement:"left",title:l("Replace the preheader")},n.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;X.send(S.Ru.SANDBOX_PREHEADER_UPDATE,{value:e.children[0].data,guid:$.renderGuid,fromAI:!0}),d.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,Ht.zd)(e.children,ye))));if(null!==(s=e.attribs)&&void 0!==s&&null!==(c=s.class)&&void 0!==c&&c.split(" ").includes("ai-response-copy"))return n.createElement(i.A,{placement:"left",title:l("Copy to clipboard")},n.createElement("div",{onClick:()=>(e=>{const t=e.children[0].data;navigator.clipboard.writeText(t).then((()=>{d.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,Ht.zd)(e.children,ye))));if(null!==(m=e.attribs)&&void 0!==m&&null!==(u=m.class)&&void 0!==u&&u.split(" ").includes("ai-response-user-message")){var p,g,h,b,f;const t=(null===(p=e.attribs)||void 0===p?void 0:p.data)||(null===(g=e.children)||void 0===g||null===(h=g[0])||void 0===h?void 0:h.data);return n.createElement("li",{className:null===(b=e.attribs)||void 0===b?void 0:b.class,data:null===(f=e.attribs)||void 0===f?void 0:f.data,onClick:()=>ve(t)},(0,Ht.zd)(e.children,ye))}}};return n.createElement("div",{ref:s,className:"discuss-main"},N.length>0&&n.createElement(Rt.A,{onClick:e=>{"string"===typeof e.target.className&&e.target.className.includes("ai-response-change-context")&&(J.isLoading||Ce(e.target.role))},className:"comment-list",itemLayout:"horizontal",dataSource:N,renderItem:e=>{var t,a,o;return n.createElement("li",{key:e._id,id:e._id},n.createElement(Dt.A,{className:e.data.userInfo?"":"ai-comment",avatar:"assistant"===e.data.role?n.createElement(V.A,{icon:"ChatGpt",className:"anticon-robot",style:{color:"#ffffff",width:24,height:24,borderRadius:"50%",justifyContent:"center"}}):!e.data.userInfo||!e.data._modified&&S.EW.isPlugin?G.avatar_urls[24]||n.createElement(Pt.A,{style:{color:"#ffffff",width:24,height:24,borderRadius:"50%",justifyContent:"center"}}):e.data.userInfo.avatar_url,author:n.createElement("div",{style:le},"user"===(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.role)?S.EW.isPlugin?(null===G||void 0===G?void 0:G.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,He.Yq)((0,Bt.A)(e._created),r,!0)}}):null,content:e.data.isLoading?n.createElement("div",{className:"spin"},n.createElement(Vt.A,{style:{fontSize:24},spin:!0})):n.createElement("div",{style:le},(0,Ht.Ay)(e.data.message,ye))}))}}),re&&(W?n.createElement(Ot.A,{text:l("mail generator"),counter:z,limits:se,wrapperStyles:{marginTop:-25}}):n.createElement(Ot.A,{text:l("messeges"),counter:A,limits:ie,wrapperStyles:{marginTop:-25}})),n.createElement(T.A,{onFinish:Ee,className:"addMode"},n.createElement(T.A.Item,{style:{marginBottom:10}},n.createElement(Gt,{disabled:k,value:I,onChange:e=>M(e.target.value),rows:4,placeholder:l("Type your request"),className:"textarea-comment",onPressEnter:e=>"Enter"===e.key&&e.ctrlKey&&Ee(),spellCheck:"false"})),n.createElement(T.A.Item,null,n.createElement(g.Ay,{disabled:J.isLoading||k,type:"default",style:{background:"var(--colorInfo)",color:"#ffffff"},className:"button-target"},n.createElement(Se.A,{placement:"top",disabled:k,key:"Export",arrow:{pointAtCenter:!0},menu:{items:$t(Ce)}},n.createElement("div",{disabled:k,style:{margin:0,padding:0}},n.createElement(V.A,{icon:"ChatGpt"}),l("Role")))),n.createElement(g.Ay,{disabled:J.isLoading||k,className:"button-add",type:"primary",htmlType:"submit"},l("Send")," ",n.createElement(V.A,{icon:"SendOutlined"})))),n.createElement(f.A,{title:l("Warning"),centered:!0,open:P,onOk:()=>{be(),D(!1)},onCancel:()=>{fe(),D(!1)}},n.createElement("p",null,l("The current template will be changed to the generated one, are you sure about this?"))))};var Kt=a(66079),Yt=a(1753),Qt=a(23796),Jt=a(98845),ea=a(61058);const ta=({emailElement:e})=>{const{__:t}=(0,v.s9)(),a=(0,F.XW)(),l=(0,E.wA)(),{projectId:r}=(0,C.g)(),o=(0,qt.fn)(),i=(0,E.d4)(ea.p1),s=(0,E.d4)(ea.RL),c=(0,E.d4)(D.Wm),[d,u]=(0,n.useState)(!0),[p,h]=(0,n.useState)(!1),[b,f]=(0,n.useState)([]),[y,_]=(0,n.useState)([]),w=e=>l((0,D.mi)(e)),k=(0,n.useCallback)((e=>{l((0,O.no)(e)),o.setValue(null===e||void 0===e?void 0:e.html.replaceAll("\r\n","\n"))}),[o,l]),{data:L}=Re.Nq.useGetProjectQuery(Number(r),{skip:!r}),[x,T]=(0,n.useState)([]);(0,n.useEffect)((()=>{if(L){const{owner:e,admins:t,users:a}=null===L||void 0===L?void 0:L.members;T([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}))))}}),[L,null===L||void 0===L?void 0:L.members,t]);const[I,M]=(0,n.useState)(1),[N,R]=(0,n.useState)(!1);(0,n.useEffect)((()=>{const e=Array.isArray(i)&&i.length&&(null===i||void 0===i?void 0:i.map((e=>{var a;return{key:e.id,author:e.author,date:(0,He.Yq)((0,He.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")}})));_(e||[]),f(e),u(!1),s<2&&R(!0)}),[i,s,t]);const B=d||p||N?null:n.createElement("div",{style:{textAlign:"center",marginTop:24,marginBottom:24,height:32,lineHeight:"32px"}},n.createElement(g.Ay,{onClick:()=>{h(!0),_(b.concat([...new Array(3)].map((()=>({loading:!0}))))),l(Jt.GY.endpoints.getEmailHistory.initiate({emailId:e.id,page:I+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,He.Yq)((0,He.Cl)(e.date||e.modified),t),title:e.title,html:e.html,loading:!1})))),r=b.concat(l);_(r),f(r),h(!1),window.dispatchEvent(new Event("resize")),I+1>=n&&R(!0),M(I+1)}))}},t("loading more"))),[H,P]=(0,n.useState)(),[j,Z]=(0,n.useState)(null),z=(0,n.useRef)();return z.current=e,(0,n.useEffect)((()=>{if(!c&&!j){const e=z.current;e&&Z({html:o.getValue(),preheader:e.preheader,common_styles:e.common_styles,subject:e.subject})}}),[c,Z,o,j]),(0,n.useEffect)((()=>{c&&j&&(k(j),Z(null))}),[c,j,k]),n.createElement(n.Fragment,null,n.createElement(m.A,{className:"secondary-tabs email-settings__collapse secondary-tabs_unset_scroll",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:S.Vv,items:[{label:n.createElement(n.Fragment,null,t("Version history")),key:S.Vv,forceRender:!0,className:"email-settings__collapse-panel",style:{height:"100%"},children:n.createElement(Rt.A,{className:"history-panel__list",loading:d,itemLayout:"horizontal",loadMore:B,dataSource:y,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(Rt.A.Item,{onClick:()=>{r!==H&&(P(r),k(b[r])),l((0,te.rc)(!0))},className:A()("history-panel__item",{"history-panel__item_active":r===H})},n.createElement(Le.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=x.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&&H!==r&&n.createElement("div",{style:{opacity:.45},className:"history-panel__list-autosave"},t("Auto")),!e.isAutosave&&n.createElement(g.Ay,{size:"small",className:"history-panel__restore",type:"link",onClick:e=>{H===r&&e.stopPropagation(),k(b[r]),P(null),Z(null),a({operation:S.Ru.SANDBOX_LOCK_EDIT,data:!1}),l((0,D.Fk)())}},t("Set")),e.isAutosave&&H===r&&n.createElement(g.Ay,{size:"small",className:"history-panel__restore",type:"link",onClick:e=>{H===r&&e.stopPropagation(),k(b[r]),w(!0),P(null),Z(null),a({operation:S.Ru.SANDBOX_LOCK_EDIT,data:!1})}},t("Set"))))}})}]}),n.createElement(g.Ay,{type:"text",className:"ant-modal-close","aria-label":"Close",onClick:()=>{l((0,D.Fk)()),k(j),Z(null),w(!0),a({operation:S.Ru.SANDBOX_LOCK_EDIT,data:!1})}},n.createElement(V.A,{icon:"Close"})))};var aa=a(26327),na=a(85897),la=a(48300);const ra=({elementPath:e})=>{const{_x:t}=(0,v.s9)(),a=(0,E.wA)(),l=(0,F.QC)(),r=(0,n.useCallback)((e=>{l.send({operation:S.Ru.SANDBOX_ELEMENT_ACTIVE_SET,index:e})}),[l]),o=(0,n.useCallback)((()=>{a((0,D.PM)(S.rY)),l.send({operation:S.Ru.SANDBOX_LOCK_EDIT,data:!1}),l.send({operation:S.Ru.SANDBOX_ELEMENT_ACTIVE_RESET})}),[l,a]),i={title:n.createElement("span",{onClick:o},n.createElement(V.A,{icon:"Email"})," ",t("Email","letter"))},[s,c]=(0,n.useState)([i]),d=(0,n.useCallback)((e=>{l.send({operation:S.Ru.SANDBOX_ELEMENT_HOVER_SET,index:e})}),[l]),m=(0,n.useCallback)(((e,t)=>{return n.createElement("span",{className:e.className,onClick:()=>{r(t)},onMouseOver:()=>{d(t)}},(a=e.className).includes("em-element-path-item-text")?n.createElement(V.A,{icon:"ElementText"}):a.includes("em-element-path-item-image")?n.createElement(V.A,{icon:"ElementImage"}):a.includes("em-element-path-item-link")?n.createElement(la.A,null):a.includes("em-element-path-item-atom")?n.createElement(V.A,{icon:"Atom"}):a.includes("em-element-path-item-column")?n.createElement(V.A,{icon:"Column"}):a.includes("em-element-path-item-block")?n.createElement(V.A,{icon:"Block"}):a.includes("em-element-path-item-group")?n.createElement(V.A,{icon:"Group"}):a.includes("em-element-path-item-button")?n.createElement(V.A,{icon:"Button"}):a.includes("em-element-path-item-table")?n.createElement(V.A,{icon:"Table"}):a.includes("em-element-path-item-amp")?n.createElement(V.A,{icon:"AMP"}):void 0," ",e.title);var a}),[r,d]);return(0,n.useEffect)((()=>{if(e){const a=e.map(((e,t)=>({title:m(e,t)})));c([{title:n.createElement("span",{onClick:o},n.createElement(V.A,{icon:"Email"})," ",t("Email","letter"))},...a])}}),[e,m,o,t]),n.createElement(n.Fragment,null,n.createElement(na.A,{items:s,type:"separator",separator:""}))};var oa=a(53821),ia=a(8111),sa=a(16390),ca=a(23424),da=a(38540),ma=a(15812),ua=a(78915),pa=a(62093),ga=a(96734),ha=a(37507);const ba=(e,t)=>n.createElement(t,Object.assign({className:"email-pane__tab-bar"},e)),{Content:fa}=l.A,{useToken:Ea}=r.A,Ca=(0,n.memo)((e=>n.createElement(Xt,e))),va=(0,n.memo)((e=>n.createElement(ke,e))),ya=(0,n.memo)((e=>n.createElement(qe,e))),_a=(0,n.memo)((e=>n.createElement(Yt.A,e))),Aa=(0,n.memo)((0,n.forwardRef)(((e,t)=>n.createElement(Kt.A,Object.assign({},e,{ref:t}))))),wa=(0,n.memo)((e=>n.createElement(wt,e))),ka=(0,n.memo)((e=>n.createElement(x,e))),Sa=(0,n.memo)((e=>n.createElement(ta,e))),La=({emailElement:e,isSuccess:t,setIsCollaborationEditor:a})=>{var r,_,w,k,x,T,I;const{__:M,_x:N}=(0,v.s9)(),R=(0,F.QC)(),{emailId:B,blockId:H,projectId:P}=(0,C.g)(),j=(0,E.wA)(),{modal:Z}=o.A.useApp(),z=(0,L.rD)(),{token:q}=Ea(),W=(0,y.hN)(),U=(0,ga.p)(),$=(0,E.d4)(D.B),G=(0,E.d4)(_t.C1),X=(0,E.d4)(_t.B$),K=(0,E.d4)(ca.cL),Y=(0,E.d4)(D.NQ),Q=(0,E.d4)(O.qX),J=(0,E.d4)(te.qX),ee=(0,E.d4)(D.Fv),ae=(0,E.d4)(D.yy),ne=(0,E.d4)(ma.D2),le=(0,E.d4)(ma.jr),re=(0,E.d4)(ma.hc),oe=(0,E.d4)(D.Tn),[ie]=(0,jt.Ll)(),[se,ce]=(0,n.useState)(!1),[de,me]=(0,n.useState)(),[ue,pe]=(0,n.useState)(z.defaultBuildPanel||"empty"),[ge,he]=(0,n.useState)("empty"),[be,fe]=(0,n.useState)(!1),[Ee,Ce]=(0,n.useState)([]),[ve,ye]=(0,n.useState)(!1),[_e,Ae]=(0,n.useState)([]),we=(0,E.d4)(At.yN);let ke=!X&&(null===(r=G.id)||void 0===r?void 0:r.toString())===(null===we||void 0===we||null===(_=we.members)||void 0===_?void 0:_.owner.ID)&&!0;const Se=!S.EW.isPlugin||((null===z||void 0===z?void 0:z.configSwither)||!1);(0,n.useEffect)((()=>{j((0,D.sy)())}),[j]),(0,n.useEffect)((()=>{const e=window.localStorage.getItem(S.V0.em_active_tab);e&&j((0,D.PM)(e))}),[U,j]);const Le=B||H,xe=e.hasOwnProperty("type")?S.IE:S.Tm,Te=xe===S.Tm?Q:J,[Ie,Me]=(0,n.useState)({}),Ne=(0,n.useRef)(null),Re=(0,n.useRef)(),Be=(0,n.useRef)(),Pe=(0,n.useRef)(),Ve=(0,n.useRef)(),Oe=(0,n.useRef)(),De=(0,n.useRef)(null),Fe=(0,n.useRef)(!1),[je,Ze]=(0,n.useState)(!1),[ze,qe]=(0,n.useState)(!1),[$e]=(0,ua.b9)(),[Ge,Xe]=(0,n.useState)(!1),[Ke,Ye]=(0,n.useState)(0),[Qe,Je]=(0,n.useState)(S.EW.isPlugin?"pro"===localStorage.getItem("configSwither"):"pro"===G.email_builder_config||X||(null===(w=G.id)||void 0===w?void 0:w.toString())!==(null===we||void 0===we||null===(k=we.members)||void 0===k?void 0:k.owner.ID)),[et,tt]=(0,n.useState)("FreeMode"),at=S.EW.isPlugin?z.configSwither&&"pro"===z.mode?"DesignerMode":"EditorMode":Qe?"DesignerMode":"EditorMode",nt=(0,n.useCallback)((()=>{clearTimeout(De.current);const e=".blocks-search__result-holder";document.querySelector(e)&&(ne||le||re)&&(document.querySelector(e).style.removeProperty("transition"),document.querySelector(e).style.opacity=0,document.querySelectorAll(".blocks-search__result-body").forEach((e=>e.style.removeProperty("height"))),De.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))}),[le,ne,re]);function lt(e){setTimeout((()=>{Ze(e.target.closest(".desktop_view")),qe(e.target.closest(".mobile_view"))}),100)}(0,n.useEffect)((()=>(document.addEventListener("mouseover",lt),()=>{document.removeEventListener("mouseover",lt)})),[]),(0,n.useEffect)((()=>{j((0,D.wr)(se?S.ND:S.Vp))}),[se,j]),(0,n.useEffect)((()=>{"function"===typeof a&&(_e.length>0?a(!0):a(!1))}),[_e]);const[rt]=(0,Ft.EQ)(),{data:ot={},refetch:it,status:st}=(0,Ft.gb)({entity_id:Le},{skip:!Le}),[ct,dt]=(0,n.useState)([]),[mt,ut]=(0,n.useState)(""!==z.defaultBuildPanel?S.nA:S.Jy),[pt,gt]=(0,n.useState)(null),ht=(0,n.useCallback)((()=>{var e;const t=null===(e=Be.current)||void 0===e?void 0:e.getBoundingClientRect(),a=null===de||void 0===de?void 0:de.getBoundingClientRect();R.send({operation:S.Ru.SANDBOX_WINDOW_CHARACTERISTIC,settings:{iframeOffsetTop:ee&&"bottom"!==ae?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:ee&&"bottom"!==ae?"code":"default"}})}),[ae,ee,de,R]),bt=t&&e,ft=(0,n.useCallback)((e=>{const t=window.navigator.platform.match("Mac");z.codeEnabled&&z.codeSideEnabled&&e.altKey&&88===e.keyCode&&(j((0,D.vs)()),ke&&(Xe(!0),Ye(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()}),[j,z.codeEnabled,ke,z.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")||pt||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")||K===S.lx.UPLOAD_IMAGE_MODAL||K===S.lx.UPLOAD_IMAGE_MODAL_AI||K===S.lx.UPLOAD_IMAGE_MODAL_UPLOAD||K===S.lx.UPLOAD_IMAGE_MODAL_EDIT||K===S.lx.IMAGE_EDITOR_MODAL||K===S.lx.UPLOAD_BACKGROUND_MODAL||($===S.yI&&(j((0,D.Fk)()),R.send({operation:S.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),Ce([])),j((0,D.mi)(!0)),R.send({operation:S.Ru.SANDBOX_LOCK_EDIT,data:!1}),setTimeout((()=>{e.type?j((0,te.A9)({type:null})):j((0,O.A9)({type:null}))}),300)),gt(null)}),[j,e.type,K,pt,$,R]),[Ct,vt]=(0,n.useState)(!0),{data:wt=[],refetch:St}=(0,ia.Cf)(Le,{skip:!Le}),[Lt,xt]=(0,n.useState)(""),[Tt,It]=(0,n.useState)("");(0,n.useEffect)((()=>{Le&&St()}),[$,Le,St]),(0,n.useEffect)((()=>{Le&&!Object.keys(ot).length&&"fulfilled"===st&&it()}),[$,Le,it,ot,st]),(0,n.useEffect)((()=>{var e;const t=new He.jG,a=window.localStorage.getItem(S.V0.em_active_tab);if(0===(null===ot||void 0===ot?void 0:ot.totalCount)&&"pending"!==st){const e={project_id:P,connection:"chat",entity_id:Le,context:"default",locale:G.locale.slice(0,2)};a||rt({body:e}).then((()=>{t.isDisposed()||"fulfilled"===st&&it()}))}const n={data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}};var l,r;(null===ot||void 0===ot||null===(e=ot.documents)||void 0===e?void 0:e.length)>0?(window.localStorage.removeItem(S.V0.em_active_tab),dt(null===ot||void 0===ot?void 0:ot.documents),null!==ot&&void 0!==ot&&null!==(l=ot.documents[(null===ot||void 0===ot||null===(r=ot.documents)||void 0===r?void 0:r.length)-1].data)&&void 0!==l&&l.userInfo&&dt([...null===ot||void 0===ot?void 0:ot.documents,n])):a||dt([n]);return()=>t.dispose()}),[Le,G.locale,null===ot||void 0===ot?void 0:ot.totalCount,null===ot||void 0===ot?void 0:ot.documents,P,it,rt,st]),(0,n.useEffect)((()=>{Me({}),j(xe===S.Tm?(0,O.A9)({}):(0,te.A9)({}))}),[j,xe]);const Mt=(0,n.useCallback)((e=>{j((0,O.G_)(e))}),[j]),Rt=(0,n.useCallback)((e=>{j((0,te.Dz)(e))}),[j]),Bt=(0,n.useCallback)((e=>{j(xe===S.Tm?(0,O.A9)(e):(0,te.A9)(e))}),[j,xe]);(0,n.useEffect)((()=>{const e=Ve.current,t=Pe.current;me(ee?t:e)}),[ee,ae]);const Ht=(0,n.useCallback)((e=>{pe(e),"search"===e?fe(!0):(fe(!1),he(e)),setTimeout(nt,50)}),[nt]),Pt=(0,n.useCallback)((e=>{const t=e.data.operation,a=e.data,n=e.data.action;if(t===S.Ru.APPLICATION_SCROLL_TO&&setTimeout((()=>{var t;null===(t=Pe.current)||void 0===t||t.scrollTo({top:e.data.settings.value,behavior:"smooth"})}),100),t===S.Ru.APPLICATION_ACTION&&"toggle_editor"===n&&j((0,D.vs)()),t===S.Ru.APPLICATION_IFRAME_SET_HEIGHT&&(document.querySelector(".email-pane__iframe").style.height=a.settings.height+"px"),t===S.Ru.APPLICATION_EMAIL_SETTINGS_SET){let e=Object.assign({},a.settings);delete e.preheader;Object.values(e).every((e=>!e))?(j((0,O.M7)(!0)),j((0,D.Fk)())):Mt(a.settings),a.settings.noBlocks,j((0,D.wW)(a.settings.responsive)),vt(e.structuresMedia)}if(t===S.Ru.APPLICATION_BLOCK_SETTINGS_SET){Object.values(a.settings).every((e=>!e))?(j((0,te.rc)(!0)),j((0,D.Fk)())):(Rt(a.settings),vt(a.settings.structuresMedia))}if(t===S.Ru.APPLICATION_ELEMENT_SETTINGS_SET){var l,r;const e=Object.values(S.bV),t=!!a.tab||!e.includes(a.type);var o;if(t&&$===S.yI&&j((0,D.Fk)()),a.type===S.bV.EMPTY_TABLE||a.type===S.bV.EMPTY_TD?(j((0,D.PM)(S.Bv)),a.type===S.bV.EMPTY_TABLE?(ut(S.nA),a.tab?Ht(a.tab):Ht("common")):a.type===S.bV.EMPTY_TD&&ut(S.Jy)):a.type&&$!==S.yI&&j((0,D.PM)(S.yI)),a.type===S.bV.CAROUSEL||a.type===S.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}),Bt({})):(Bt({...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)Ce(null===(o=a.settings)||void 0===o?void 0:o.path)}t===S.Ru.APPLICATION_ELEMENT_SETTINGS_CLOSE&&j((0,D.Fk)())}),[j,Mt,Rt,Bt,$,Ht]);(0,n.useEffect)((()=>{var e,t;G.email_builder_config&&(Je(S.EW.isPlugin?"pro"===localStorage.getItem("configSwither"):"pro"===G.email_builder_config||X||(null===(e=G.id)||void 0===e?void 0:e.toString())!==(null===we||void 0===we||null===(t=we.members)||void 0===t?void 0:t.owner.ID)),j((0,sa.EV)(G.email_builder_config)))}),[G.email_builder_config,j]),(0,n.useEffect)((()=>{var e,t;ee&&ke&&j((0,D.vs)()),X||(null===(e=G.id)||void 0===e?void 0:e.toString())!==(null===we||void 0===we||null===(t=we.members)||void 0===t?void 0:t.owner.ID)?"simple"===z.mode&&($e({email_builder_config:"pro"}),localStorage.setItem("configSwither","pro"),j((0,sa.EV)("pro"))):($e({email_builder_config:"simple"}),localStorage.setItem("configSwither","simple"),j((0,sa.EV)("simple")))}),[]);const Vt=e=>{var t,a;(X||(null===(t=G.id)||void 0===t?void 0:t.toString())!==(null===we||void 0===we||null===(a=we.members)||void 0===a?void 0:a.owner.ID))&&Je((e=>!e)),setTimeout((()=>{var t,a;if(X||(null===(t=G.id)||void 0===t?void 0:t.toString())!==(null===we||void 0===we||null===(a=we.members)||void 0===a?void 0:a.owner.ID)){let t="DesignerMode"===e?"pro":"editor";$e({email_builder_config:t}),localStorage.setItem("configSwither",t),j((0,sa.EV)(t))}else j((0,sa.EV)("pro")),tt("DesignerMode"),Xe(!0)}),200)};(0,pa.A)(Pt);const Ot=(0,n.useRef)(),[Dt,Zt]=(0,n.useState)("unset"),zt=(0,n.useCallback)((()=>{var e,t;let a;const n=null===(e=Pe.current)||void 0===e?void 0:e.getBoundingClientRect();if((null===Ot||void 0===Ot||null===(t=Ot.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);Ot.current.style.height=`${e}px`,Zt(e-30)}a&&window.clearTimeout(a),a=window.setTimeout((function(){R.isInited()&&ht()}),100)}),[ht,R]);(0,n.useEffect)((()=>($===S.z$?Ne.current=setInterval((()=>{it({entity_id:Le})}),5e3):clearInterval(Ne.current),clearInterval(Ne.current))),[Le,it,$]);const qt=window.localStorage.getItem(S.V0.em_code_mode_pane_sizes),[Wt,Ut]=(0,n.useState)(+qt||50),$t=()=>{let e=document.querySelector(".block-search__preview");e&&(e.style.opacity="0",e.style.transform="translateX(-99%)",setTimeout((function(){e.remove()}),300))};let Gt=[];z.blocksEmptyEnabled&&Gt.push({label:n.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:M("Empty blocks")},n.createElement("div",{style:{paddingTop:4}},n.createElement(V.A,{icon:"BorderOuterOutlined",style:{fontSize:18}}))),value:"empty"}),z.blocksSavedEnabled&&Gt.push({label:n.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:M("Saved blocks")},n.createElement("div",{style:{paddingTop:4}},n.createElement(V.A,{icon:"AppstoreAddOutlined",style:{fontSize:18}}))),value:"project"}),z.blocksCommonEnabled&&Gt.push({label:n.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:M("Common blocks")},n.createElement("div",{style:{paddingTop:4}},n.createElement(V.A,{icon:"AppstoreOutlined",style:{fontSize:18}}))),value:"common"}),z.blocksTemplateEnabled&&Gt.push({label:n.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:M("Template blocks")},n.createElement("div",{style:{paddingTop:4}},n.createElement(V.A,{icon:"BuildOutlined",style:{fontSize:18}}))),value:"template"}),z.blocksSearchEnabled&&Gt.push({label:n.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:M("Blocks search")},n.createElement("div",{style:{paddingTop:4}},n.createElement(V.A,{icon:"SearchOutlined",style:{fontSize:18}}))),value:"search"});let Xt=[{label:n.createElement("div",{className:"email-pane__tab"},M("Elements")),key:S.Jy,forceRender:!0,className:"email-pane__collapse-panel email-pane__atoms",children:n.createElement(wa,null)},{label:n.createElement("div",{className:"email-pane__tab"},M("Blocks")),key:S.nA,forceRender:!0,className:"email-pane__collapse-panel email-pane__blocks-search",style:{height:z.blocksSectionsShow?"calc(100% - 44px)":"100%"},children:n.createElement(n.Fragment,null,z.blocksSectionsShow&&n.createElement(n.Fragment,null,n.createElement(s.A.Compact,{block:!0},!be&&n.createElement(c.A,{block:!0,style:{width:"100%",marginTop:24},onChange:Ht,value:ue,options:Gt}),be&&n.createElement("div",{style:{width:"100%",height:36}}),be&&n.createElement("div",{style:{width:36,textAlign:"right",marginTop:22}},n.createElement(V.A,{icon:"CloseOutlined",style:{padding:"0 2px 0",cursor:"pointer"},onClick:()=>{fe(!1),pe(ge)}}))),n.createElement("div",{className:"blocks-search__divider-wrapper",style:{marginTop:be?28:12}},n.createElement(d.A,{className:"blocks-search__divider"}))),n.createElement("div",{style:{height:"100%"}},n.createElement("div",{className:"blocks-search__empty-shadow",style:{display:"empty"!==ue||be?"none":"block"}},Ct?n.createElement(Ue.A,null):n.createElement(We.A,null)),n.createElement("div",{style:{height:z.blocksSectionsShow?"calc(100% - 24px)":"100%",display:"empty"!==ue||be?"block":"none"}},n.createElement(ya,{parentEmailId:null===e||void 0===e?void 0:e.parent_email,blocksTab:ue,search:be,reloadBlockScreens:nt,email:e}))))}],Kt=[{disabled:Ge,key:S.yI,style:{height:z.sidePanelFloating?ee&&"bottom"===ae?Dt:"calc(100% - 30px)":"100%"},className:"em-analytics__email-tab-properties",children:n.createElement(n.Fragment,null,(!(null===Te||void 0===Te||!Te.type)||!(null===Ie||void 0===Ie||!Ie.type))&&n.createElement("div",{className:A()("email-pane__collapse-wrapper",{"mobile-view":se,"mobile-properties":se&&oe!==S.mX}),onMouseLeave:$t},n.createElement(Nt,{email:e,formSettings:Ie})))},{disabled:Ge,key:S.Vv,style:{height:z.sidePanelFloating?ee&&"bottom"===ae?Dt:"calc(100% - 30px)":"100%"},className:"em-analytics__email-tab-history",children:bt&&n.createElement("div",{className:"email-pane__collapse-wrapper",onMouseLeave:$t},n.createElement(Sa,{setCollapsedHistory:()=>j((0,D.mi)(!0)),emailElement:bt}))},{key:S.rb,className:"em-analytics__email-tab-properties"},{disabled:Ge,label:n.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"left",title:N("Build","tab")},n.createElement(V.A,{"data-testid":"contentIcon",icon:"PlusCircleOutlined"})),key:S.Bv,className:"em-analytics__email-tab-build",style:{height:z.sidePanelFloating?ee&&"bottom"===ae?Dt:"calc(100% - 30px)":"100%",overflow:"hidden"},children:n.createElement("div",{className:A()("email-pane__collapse-wrapper",{"email-pane__collapse-wrapper_no-topleft-radius":$===S.Bv||!$}),onMouseLeave:$t},n.createElement(m.A,{className:A()("secondary-tabs email-pane__collapse",{"secondary-tabs_unset_scroll":mt===S.nA}),size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:mt,onChange:e=>ut(e||""),items:Xt}))},{disabled:Ge,label:n.createElement(i.A,{overlayClassName:"email-pane__tooltip",overlayInnerStyle:{border:"2px dot-dash red"},overlayStyle:{border:"2px dot-dash red"},placement:"left",title:N("Styles","tab")},n.createElement(n.Fragment,null,n.createElement(V.A,{"data-testid":"stylesIcon",icon:"Styles"}))),key:S.rY,className:"em-analytics__email-tab-styles",style:{height:z.sidePanelFloating?ee&&"bottom"===ae?Dt:"calc(100% - 30px)":"100%",overflow:"hidden"},children:n.createElement("div",{className:"email-pane__collapse-wrapper"},n.createElement(va,{email:e}))}];z.commentsEnabled&&Kt.push({disabled:Ge,label:n.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"left",title:N("Discuss","tab")},n.createElement(V.A,{"data-testid":"commentsIcon",icon:"CommentOutlined"}),ke&&n.createElement(V.A,{icon:"Lock",className:"free-mode-firewall-icon free-mode-firewall-icon_emailpane"}),!!wt.length&&n.createElement("span",{className:"email-pane__comment-counter"},wt.filter((e=>"deleted"!==e.comment_status)).length)),key:S.hc,className:"email-pane__tab-discuss em-analytics__email-tab-discuss",style:{height:z.sidePanelFloating?ee&&"bottom"===ae?Dt:"calc(100% - 30px)":"100%",overflow:"hidden"},children:n.createElement("div",{className:"email-pane__collapse-wrapper"},n.createElement(m.A,{className:"secondary-tabs email-settings__collapse",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:S.hc,items:[{label:n.createElement(n.Fragment,null,M("Discuss")),key:S.hc,forceRender:!0,className:"email-settings__collapse-panel",children:Le?n.createElement(kt.A,{email:e,comments:wt,subjectId:Le,isLoggedIn:!0,emailElementType:xe}):n.createElement("div",{className:"aside-content-wrapper"},e.hasOwnProperty("type")?n.createElement(u.A,{description:M("Save the block before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}):n.createElement(u.A,{description:M("Save the email before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}))}]}))});const Yt=()=>{ie({entity_id:Le}).then((e=>{e.error?W.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&&W.success({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:M("Success")}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.data.success}}),placement:"bottomRight"}),it(),ye(!1)}))};z.aiAssistentEnabled&&Kt.push({disabled:Ge,label:n.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"left",title:N("AI assistant","tab")},n.createElement(V.A,{"data-testid":"aiAssistentIcon",icon:"AI"}),ke&&n.createElement(V.A,{icon:"Lock",className:"free-mode-firewall-icon free-mode-firewall-icon_emailpane"}),(null===ot||void 0===ot?void 0:ot.totalCount)>0&&Le&&n.createElement("span",{className:"email-pane__comment-counter"},null===ot||void 0===ot?void 0:ot.totalCount)),key:S.z$,className:"email-pane__tab-discuss em-analytics__email-tab-discuss",style:{height:z.sidePanelFloating?ee&&"bottom"===ae?Dt:"calc(100% - 30px)":"100%",overflow:"hidden"},children:n.createElement(n.Fragment,null,n.createElement("div",{className:"email-pane__collapse-wrapper"},n.createElement(m.A,{className:"secondary-tabs email-settings__collapse",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:S.z$,tabBarExtraContent:n.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"top",title:M("Clear chat")},n.createElement(p.A,{description:"Clear chat history?",onConfirm:Yt,okText:"Yes",cancelText:"No",icon:"",placement:"leftTop",title:!1},n.createElement(g.Ay,{type:"text",icon:n.createElement(V.A,{icon:"ClearChat",style:{fontSize:16}}),style:{marginRight:16}}))),items:[{label:n.createElement(n.Fragment,null,M("AI assistant")),key:S.z$,forceRender:!0,className:"email-settings__collapse-panel",children:Le||window.localStorage.getItem(S.V0.em_active_tab)?n.createElement(Ca,{messages:ct.length>0?ct:[{data:{role:"assistant",message:"\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442",isLoading:!0}}],newEmailAiGeneratorRef:Fe}):n.createElement("div",{className:"aside-content-wrapper"},e.hasOwnProperty("type")?n.createElement(u.A,{description:M("Save the block before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}):n.createElement(u.A,{description:M("Save the email before commenting."),type:"info",showIcon:!0,style:{marginBottom:20}}))}]})))}),z.optimizeEnabled&&Kt.push({disabled:Ge,label:n.createElement(i.A,{overlayClassName:"email-pane__tooltip",overlayInnerStyle:{border:"2px dot-dash red"},overlayStyle:{border:"2px dot-dash red"},placement:"left",title:N("Optimize","tab")},n.createElement(n.Fragment,null,n.createElement(V.A,{"data-testid":"optimizeIcon",icon:"Speed"}),ke&&n.createElement(V.A,{icon:"Lock",className:"free-mode-firewall-icon free-mode-firewall-icon_emailpane"}))),key:S.N7,className:"em-analytics__email-tab-optimise",style:{height:z.sidePanelFloating?ee&&"bottom"===ae?Dt:"calc(100% - 30px)":"100%",overflow:"hidden"},children:n.createElement("div",{className:"email-pane__collapse-wrapper"},n.createElement(m.A,{className:"secondary-tabs secondary-tabs_optimise email-settings__collapse",size:"large",animated:{inkBar:!1,tabPane:!1},activeKey:S.N7,items:[{label:n.createElement(n.Fragment,null,M("Optimize")),key:S.N7,forceRender:!0,className:"email-settings__collapse-panel",children:n.createElement(oa.A,null)}]}))}),z.settingsEnabled&&Kt.push({disabled:Ge,label:n.createElement(i.A,{overlayClassName:"email-pane__tooltip",placement:"left",title:N("Settings","tab")},n.createElement(V.A,{"data-testid":"settingsIcon",icon:"SettingOutlined"})),key:S.zx,className:"em-analytics__email-tab-edit",style:{height:z.sidePanelFloating?ee&&"bottom"===ae?Dt:"calc(100% - 30px)":"100%",overflow:"hidden"},children:n.createElement("div",{className:"email-pane__collapse-wrapper"},n.createElement(ka,{email:e}))});const[Jt,ea]=(0,n.useState)([]),[ta,na]=(0,n.useState)(!1),[la,La]=(0,n.useState)(0),[xa,Ta]=(0,n.useState)(0),Ia=(null===(x=document.querySelector(".email-pane__col_preview"))||void 0===x?void 0:x.getBoundingClientRect().width)-(z.sidePanelFloating?0:38),[Ma,Na]=(0,n.useState)(null);(0,n.useEffect)((()=>{Le&&St(Le)}),[Le,St]),(0,n.useEffect)((()=>{const e=R.onInit((()=>{R.send({operation:S.Ru.SANDBOX_LOCK_EDIT,data:!1}),R.send({operation:S.Ru.SANDBOX_LOCK_DISCUSS,value:ta})}));return()=>e.dispose()}),[ta,R]),(0,n.useEffect)((()=>{if(Jt.length<2){const e=null===de||void 0===de?void 0:de.getBoundingClientRect(),t=setInterval(a,50);function a(){R.isInited()&&e&&(ht(),clearInterval(t))}ea((e=>[...e,t]))}return clearInterval(Jt[Jt.length-1])}),[Jt,de,ht,R]);const Ra=(0,n.useCallback)(((e=Y)=>{var t;R.send({operation:S.Ru.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:e+2}}),null===(t=Re.current)||void 0===t||t.resize()}),[Y,R]);(0,n.useEffect)((()=>{if(na($===S.hc),$!==S.rb){var e;const t=document.querySelector(".email-pane__row"),a=null===t||void 0===t?void 0:t.getBoundingClientRect().width;(null===Be||void 0===Be||null===(e=Be.current)||void 0===e?void 0:e.getBoundingClientRect().width)+540>a&&j((0,D.vc)("100%"))}}),[j,$]);const Ba=(0,n.useCallback)((()=>{const e=Be.current;e&&(e.style.borderWidth="1px",z.sidePanelFloating||(e.style.marginLeft="-1px",e.style.marginRight="-1px"),e.style.borderLeftColor=null,e.style.borderRightColor=null)}),[z.sidePanelFloating]),Ha=(0,n.useCallback)((e=>{Da(!1),Ma&&(setTimeout((()=>Ra()),50),Na(null)),e.target.classList.contains("email-pane__handle")||Ba(),window.localStorage.setItem(S.V0.em_code_mode_pane_sizes,JSON.stringify(Wt))}),[Ra,Ma,Wt,Ba]),Pa=e=>t=>{t.target.classList.contains("email-pane__handle")&&(t.preventDefault(),La(t.target.parentNode.offsetWidth),Ta(t.pageX),Na(e),gt(e))},Va=e=>{const t=Be.current;"string"!==typeof e||Ma&&Ma!==e?Ma||(Ba(),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=q.colorPrimary,t.style.borderRightWidth="2px"):(t.style.borderLeftColor=q.colorPrimary,t.style.borderLeftWidth="2px",document.querySelector(".email-pane__iframe").style.marginLeft="-1px"))},[Oa,Da]=(0,n.useState)(!1),Fa=(0,n.useCallback)((e=>{if(!Ma)return;let t=2*(e.pageX-xa),a=la+("left"===Ma?-t:t);var n;a>318&&a<Ia&&(j((0,D.vc)(a)),"number"===typeof a&&a<=425?se||ce(!0):se&&ce(!1),null===(n=Re.current)||void 0===n||n.resize())}),[j,la,xa,Ma,Ia,se,ce]),ja=(0,n.useCallback)((e=>{if(Oa)if("bottom"===ae){const t=Oe.current.getBoundingClientRect().height,a=Oe.current.getBoundingClientRect().top,n=(e.clientY-a)/t*100;if(n<20||n>80)return;Ut(n),zt()}else{const t=Oe.current.getBoundingClientRect().width,a=Oe.current.getBoundingClientRect().left,n=(e.clientX-a)/t*100,l=Be.current.getBoundingClientRect().width;if(z.desktopMobileSwitchPanel&&"number"===typeof l&&l<=425&&(j((0,D.vc)(425)),se||ce(!0)),n<20||n>80)return;Ut(n)}}),[Oa,ae,zt,se,j,z.desktopMobileSwitchPanel,ce]);(0,n.useEffect)((()=>{zt()}),[ee,zt]);const Za=e=>{j((0,D.vc)(e)),setTimeout((()=>Ra(e)),700),"number"===typeof e&&e<=425?se||ce(!0):se&&ce(!1)};(0,n.useEffect)((()=>(window.addEventListener("scroll",zt,!0),window.addEventListener("mousemove",Fa,!0),window.addEventListener("mousemove",ja),window.addEventListener("mouseup",Ha,!0),window.addEventListener("click",Et),window.addEventListener("keydown",ft),()=>{window.removeEventListener("mousemove",Fa,!0),window.removeEventListener("mousemove",ja),window.removeEventListener("mouseup",Ha,!0),window.removeEventListener("scroll",zt,!0),window.removeEventListener("keydown",ft),window.removeEventListener("click",Et)})));const[za,qa]=(0,n.useState)(z.emailPaneDesktopSize||Y);return(0,n.useEffect)((()=>{z.emailPaneDesktopSize&&j((0,D.vc)(z.emailPaneDesktopSize))}),[j,z.emailPaneDesktopSize]),(0,n.useEffect)((()=>{qa(ee&&"bottom"!==ae&&!se&&z.desktopMobileSwitchPanel?"100%":Y)}),[j,z.emailPaneDesktopSize,ee,ae,se,z.desktopMobileSwitchPanel,Y]),n.createElement(l.A,{className:A()("email-pane",{"email-pane_code-mode":ee,"email-pane_only_code_mode_mobile":z.onlyCodeModeInMobile,"email-pane_code-mode-bottom":ee&&"bottom"===ae,"email-pane_no-element-navigation":!z.switchDesktopMobilePropsEnabled&&!z.stepToOtherElementEnabled&&!z.deleteButtonEnabled,"email-pane_is-mobile":se,"email-pane_path-enabled":z.pathEnabled})},n.createElement(fa,{className:"email-pane__container",ref:Ve},((null===Te||void 0===Te?void 0:Te.type)===S.bV.TEXT||(null===Te||void 0===Te?void 0:Te.type)===S.bV.LINK||Te.type===S.bV.IMG||Te.type===S.bV.BUTTON)&&ee&&"bottom"!==ae&&n.createElement(aa.A,{className:A()("selected-element-panel__content selected-element-panel__content_abs",{"selected-element-panel__hidden":Te.type===S.bV.IMG}),emailElementType:xe,formSettings:Ie}),n.createElement(h.A,{ref:Oe,className:A()("email-pane__row",{"email-pane__left":ee&&"right"===ae,"email-pane__right":ee&&"left"===ae,"email-pane__bottom":ee&&"bottom"===ae,"email-pane__sizeSwitcher":z.desktopMobileSwitchPanel,"email-pane__reverse":"left"===z.menuDirection,"email-pane__pinch":!z.sidePanelFloating})},n.createElement(b.A,{style:{flexGrow:1,overflowY:z.sidePanelFloating?"scroll":"hidden",overflowX:"hidden",height:ee&&"bottom"===ae?`calc(${Wt}%)`:"100%",width:`${"left"===ae?100-Wt:"bottom"===ae?100:Wt}%`},id:"pane-content-wrapper",ref:z.sidePanelFloating?Pe:null},n.createElement("div",{className:"email-pane__iframe-scroll-top",id:"iframe-scroll-top"}),z.desktopMobileSwitchPanel&&n.createElement(s.A,{className:"email-pane__sizes-panel-wrapper",direction:"vertical",size:10},n.createElement(s.A,{className:"email-pane__sizes-panel",direction:"vertical",size:0},n.createElement(i.A,{title:M("Desktop view"),placement:"right",open:je},n.createElement(g.Ay,{type:se?"text":"primary",icon:n.createElement(V.A,{icon:"DesktopOutlined"}),shape:"circle",onClick:()=>Za(z.emailPaneDesktopSize||1e3),className:"toggle_view desktop_view"})),n.createElement(i.A,{title:M("Mobile view"),placement:"right",open:ze},n.createElement(g.Ay,{type:se?"primary":"text",icon:n.createElement(V.A,{icon:"MobileOutlined"}),shape:"circle",onClick:()=>Za(425),className:"toggle_view mobile_view"}))),z.codeSideEnabled&&n.createElement(i.A,{title:M("Code mode"),placement:"right"},n.createElement(g.Ay,{type:ee?"primary":"default",icon:n.createElement(V.A,{icon:"Code"}),shape:"circle",onClick:()=>{return e="right",ee?j((0,D.vs)()):"string"===typeof e?(j((0,D.Uf)(e)),!ee&&j((0,D.vs)())):j((0,D.vs)()),j((0,D.Fk)()),setTimeout((()=>{xe===S.IE?j((0,te.A9)({type:null})):j((0,O.A9)({type:null}))}),300),R.send({operation:S.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),void j((0,da.rI)());var e}}))),n.createElement(h.A,{className:A()("email-pane__col-wrapper",{container:ee&&"bottom"===ae||!ee,"email-pane__col-wrapper_reverse":"left"===z.menuDirection,"email-pane__col-wrapper_pinch":!z.sidePanelFloating}),style:{flexGrow:1,maxWidth:"unset",paddingTop:z.desktopMobileSwitchPanel&&ee&&"bottom"!==ae?"60px":""}},n.createElement(b.A,{className:"email-pane__col email-pane__col_preview",style:{flexGrow:1,maxWidth:"unset"},ref:z.sidePanelFloating?null:Pe},z.desktopMobileSwitchRule&&n.createElement("div",{className:`email-pane__sizes ${Lt}`},n.createElement("div",{className:"email-pane__width-selectors-wrapper"},n.createElement("div",{className:"device-width__full",style:{flexGrow:1},onMouseEnter:()=>{xt("device-width__full-hovered"),It(M("Desktop"))},onMouseLeave:()=>{xt(""),It("")},onClick:()=>Za("100%")}),n.createElement("div",{className:"device-width__768",style:{width:171},onMouseEnter:()=>{xt("device-width__768-hovered"),It(M("Small desktop \u2013 768px"))},onMouseLeave:()=>{xt(""),It("")},onClick:()=>Za(768)}),n.createElement("div",{className:"device-width__425",style:{width:25},onMouseEnter:()=>{xt("device-width__425-hovered"),It(M("Mobile L \u2013 425px"))},onMouseLeave:()=>{xt(""),It("")},onClick:()=>Za(425)}),n.createElement("div",{className:"device-width__375",style:{width:28},onMouseEnter:()=>{xt("device-width__375-hovered"),It(M("Mobile M \u2013 375px"))},onMouseLeave:()=>{xt(""),It("")},onClick:()=>Za(375)}),n.createElement("div",{className:"device-width__320",style:{width:320},onMouseEnter:()=>{xt("device-width__320-hovered"),It(M("Mobile S \u2013 320px"))},onMouseLeave:()=>{xt(""),It("")},onClick:()=>Za(320)},Tt),n.createElement("div",{className:"device-width__375",style:{width:28},onMouseEnter:()=>{xt("device-width__375-hovered"),It(M("Mobile M \u2013 375px"))},onMouseLeave:()=>{xt(""),It("")},onClick:()=>Za(375)}),n.createElement("div",{className:"device-width__425",style:{width:25},onMouseEnter:()=>{xt("device-width__425-hovered"),It(M("Mobile L \u2013 425px"))},onMouseLeave:()=>{xt(""),It("")},onClick:()=>Za(425)},n.createElement(i.A,{title:M("Mobile view"),placement:"bottom"},n.createElement(g.Ay,{type:"default",icon:n.createElement(V.A,{icon:"MobileOutlined"}),size:"small",shape:"circle",style:{right:-12,top:4,zIndex:999,padding:0,position:"absolute",onClick:()=>Za(425)}}))),n.createElement("div",{className:"device-width__768",style:{width:171},onMouseEnter:()=>{xt("device-width__768-hovered"),It(M("Small desktop \u2013 768px"))},onMouseLeave:()=>{xt(""),It("")},onClick:()=>Za(768)},n.createElement(i.A,{title:M("Desktop view"),placement:"bottom"},n.createElement(g.Ay,{type:"default",icon:n.createElement(V.A,{icon:"DesktopOutlined"}),size:"small",shape:"circle",style:{right:-12,top:4,zIndex:999,padding:0,position:"absolute",onClick:()=>Za(768)}}))),n.createElement("div",{className:"device-width__full",style:{flexGrow:1},onMouseEnter:()=>{xt("device-width__full-hovered"),It(M("Desktop"))},onMouseLeave:()=>{xt(""),It("")},onClick:()=>Za("100%")}))),n.createElement("div",{className:A()("email-pane__resizable",{"email-pane__resizable_drag":Ma||Oa}),style:{maxWidth:za}},n.createElement("div",{className:"email-pane__handle left",onMouseDown:Pa("left"),onMouseEnter:()=>Va("left"),onMouseLeave:Va}),n.createElement("div",{className:"email-pane__handle right",onMouseDown:Pa("right"),onMouseEnter:()=>Va("right"),onMouseLeave:Va}),n.createElement("div",{className:A()("email-pane__content-col email-pane__content-col_main",{"email-pane__content-col_disable":Ma||Oa}),ref:Be,id:"pane-content-iframe"},n.createElement(Aa,{ref:Re,className:"email-pane__iframe",email:e,handlerSendPosition:zt})))),n.createElement(b.A,{style:{display:ee&&"bottom"!==ae?"none":"initial"},ref:Ot,className:A()("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":$===S.rb})},(!ee||"bottom"===ae)&&n.createElement(m.A,{className:A()("email-pane__col_settings-inner",{"email-pane__col_settings-inner_reverse":"left"===z.menuDirection}),size:"middle",animated:{inkBar:!1,tabPane:!1},activeKey:$,onTabClick:e=>{let t=document.querySelector(".atoms__list");if(e===S.Bv&&"Disabled_tab"===$&&t&&setTimeout((()=>{t.style.opacity=1}),300),z.toggleSidePanel&&e===$?(j((0,D.PM)(S.rb)),t&&(t.style.opacity=0)):"Optimize"===e?(0,He.Z1)(M,Z):e!==S.yI&&e!==S.Vv&&(j((0,D.PM)(e)),R.send({operation:S.Ru.SANDBOX_LOCK_EDIT,data:!1}),R.send({operation:S.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),Ce([])),ke&&("Discuss"===e||"Optimise"===e||"AiChat"===e))switch(Xe(!0),e){case"Discuss":Ye(7);break;case"Optimise":Ye(6);break;case"AiChat":Ye(9);break;default:Ye(0)}},renderTabBar:ba,tabPosition:"right",items:Kt,tabBarExtraContent:Se&&n.createElement(n.Fragment,null,X||(null===(T=G.id)||void 0===T?void 0:T.toString())!==(null===we||void 0===we||null===(I=we.members)||void 0===I?void 0:I.owner.ID)?n.createElement(c.A,{options:[{value:"DesignerMode",icon:n.createElement(i.A,{placement:"left",title:M("Designer mode")},n.createElement(V.A,{icon:"DesignerMode",style:{fontSize:18,top:2}}))},{value:"EditorMode",icon:n.createElement(i.A,{placement:"left",title:M("Editor mode")},n.createElement(V.A,{icon:"EditorMode",style:{fontSize:18,top:4,left:2}}))}],className:"ant-segmented_editor-mode",onChange:Vt,defaultValue:at}):n.createElement(c.A,{options:[{value:"FreeMode",icon:n.createElement(i.A,{placement:"left",title:M("Simple mode")},n.createElement("span",{style:{fontSize:14,fontWeight:600,position:"relative",top:-1}},"Free"))},{value:"DesignerMode",icon:n.createElement(i.A,{placement:"left",title:M("Pro mode")},n.createElement(V.A,{icon:"DesignerMode",style:{fontSize:20,top:2}}))}],className:"ant-segmented_editor-mode",onChange:Vt,value:et}))}))),n.createElement("div",{className:"email-pane__iframe-scroll-bottom",id:"iframe-scroll-bottom"})),n.createElement(b.A,{style:{width:`${"right"===ae?100-Wt:"bottom"===ae?100:Wt}%`,position:"relative",height:"bottom"===ae?`calc(${100-Wt}%)`:"unset",display:ee?"initial":"none"}},n.createElement("div",{className:"email-pane__code-divider",onMouseDown:()=>Da(!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(_a,{email:e,setOtherUsers:Ae,newEmailAiGeneratorRef:Fe}))))),z.pathEnabled&&n.createElement("div",{className:"email-pane__paths"},n.createElement(ra,{elementPath:Ee})),n.createElement("div",{className:"collaborator-list"},n.createElement(ha.b,{users:_e,isEditor:S._P.isEditor,isPlugin:S.EW.isPlugin,token:q}))),"img"===(null===Ie||void 0===Ie?void 0:Ie.type)&&ee&&"bottom"!==ae&&n.createElement("div",{className:"email-pane__collapse-wrapper email-pane__collapse-wrapper_disabled"},n.createElement(Nt,{email:e,formSettings:Ie})),n.createElement(Qt.A,null),n.createElement(yt.A,{open:Ge,onCancel:()=>{ee&&j((0,D.vs)()),j((0,D.Fk)()),j((0,sa.EV)("simple")),tt("FreeMode"),Xe(!1)},initialSlide:Ke}),n.createElement(f.A,{title:M("Warning"),centered:!0,open:ve,onOk:Yt,onCancel:()=>{ye(!1)}},n.createElement("p",null,M("Clear chat history?"))))}},79966:(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(13785),s=a(37969),c=a(98447),d=a(38927),m=a(64909),u=a(38826),p=a(27264),g=a(2604),h=a(30150),b=a(52218),f=a.n(b),E=a(12543),C=a(52995),v=a(8807),y=a(48956),_=a(23424),A=a(47014),w=a(54838),k=a(1047),S=a(22536),L=a(84572),x=a(98845),T=a(68984),I=a(40835),M=a(32947),N=a(55835),R=a(80223),B=a(40277),H=a(52919),P=a(86095),V=a(27941),O=a(90614),D=a(15626);const F=n.createElement(u.A,{style:{fontSize:20},spin:!0}),{useToken:j}=l.A,Z=({emailElement:e,isCollaborationEditor:t})=>{var a,l,b,Z;const{__:z}=(0,E.s9)(),q=(0,g.wA)(),W=(0,H.XW)(),{emailId:U,blockId:$}=(0,h.g)(),G=(0,g.d4)(_.cL),[X,K]=(0,n.useState)(!1),[Y,Q]=(0,I.Zf)(),J=(0,h.Zp)(),ee=(0,g.d4)(A.C1),[te]=(0,x.YE)(U),[ae]=(0,T.lx)($),{owner:ne}=(0,R.A)(),le=(0,P.fn)(),re=(0,P.aD)(le),oe=(0,P.TW)(le),ie=(0,g.d4)(w.Wm),se=(0,g.d4)(w.Fv),ce=(0,g.d4)(w.yy),{token:de}=j(),{modal:me}=r.A.useApp(),ue=(0,m.hN)(),{confirm:pe}=me,ge=(0,V.rD)(),he=e.hasOwnProperty("type")?M.IE:M.Tm,be=(0,O.ml)(D.AZ.ON_SHARE_ID),fe=(0,O.ml)(D.AZ.ON_SHOW_PREVIEW_ID),[Ee,Ce]=(0,n.useState)(!1),[ve,ye]=(0,n.useState)(0),_e=(0,g.d4)(L.yN);let Ae=!(0,g.d4)(A.B$)&&(null===(a=ee.id)||void 0===a?void 0:a.toString())===(null===_e||void 0===_e||null===(l=_e.members)||void 0===l?void 0:l.owner.ID)&&!0;const we=U?"emailId":"blockId",ke=null===e||void 0===e?void 0:e.project,Se=e=>{"string"===typeof e?(q((0,w.Uf)(e)),!se&&q((0,w.vs)())):q((0,w.vs)()),setTimeout((()=>{he===M.IE?q((0,S.A9)({type:null})):q((0,k.A9)({type:null}))}),300),W({operation:M.Ru.SANDBOX_ELEMENT_ACTIVE_RESET}),Ae&&(Ce(!0),ye(1))},Le=(0,n.useCallback)((()=>{pe({title:z("Available on the Personal plan and higher."),icon:n.createElement(p.A,null),content:n.createElement("div",{style:{maxWidth:"330px"}},z("Upgrade your plan to use this feature")),centered:!0,okText:z("Choose your plan"),cancelText:z("Close & continue"),width:"unset",onOk(){J("/billing")},onCancel(){}})}),[J,z,pe]);(0,n.useEffect)((()=>{Q.isError&&((0,B.p6)(Q,ue),K(!1))}),[Q,ue]),(0,n.useEffect)((()=>{if(Q.isSuccess&&X){var e;if(401===(null===(e=Q.data)||void 0===e?void 0:e.status))ue.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:Q.data.code}}),description:n.createElement("div",{dangerouslySetInnerHTML:{__html:Q.data.message}}),placement:"bottomRight"});else if(Q.data){let e=document.createElement("A");e.setAttribute("target","_blank"),e.setAttribute("href",Q.data.message),e.click()}K(!1)}}),[Q,X,ue]);const[xe,Te]=(0,n.useState)(!1),Ie=()=>{W({operation:M.Ru.SANDBOX_LOCK_EDIT,data:ie}),q((0,w.mi)(!ie))},Me=U?te:ae;let Ne=[];const Re=(0,n.useCallback)((async()=>{const e=await fe.fire({project:ke,id:U});!1!==e.find((e=>!1===e||"string"===typeof e))&&window.open(e.find((e=>e))||`/email/${U}/raw?key=${f()(`${ke}${U}${M.KI}`)}`)}),[fe,ke,U]),Be=(0,n.useCallback)((async()=>{window.open(`/getemail/${U}?secret_hash=${f()(`${ke}${U}${M.KI}`)}&raw=true`)}),[ke,U]);ge.previewModeEnabled&&Ne.push({key:"Preview_mode",icon:n.createElement(v.A,{icon:"EyeOutlined",style:{fontSize:16}}),label:z("Preview mode"),onClick:Re}),ge.livePreviewEnabled&&Ne.push({key:"Live_preview",icon:X?n.createElement(u.A,{style:{fontSize:16}}):n.createElement(v.A,{icon:"CheckCircleOutlined",style:{fontSize:16}}),label:z("Live preview"),onClick:(null===(b=ee.id)||void 0===b?void 0:b.toString())===(null===(Z=e.project_author)||void 0===Z?void 0:Z.toString())&&"community"===ee.subscription.post_name&&ne?Le:()=>{if(!X){const t={email:U,subject:encodeURIComponent("#"+e.project+" "+e.title).replaceAll(/%20/gi,"+").replaceAll(/%0A/gi,"%0D%0A"),content:encodeURIComponent((null===le||void 0===le?void 0:le.getValue())||"").replaceAll(/%20/gi,"+").replaceAll(/%0A/gi,"%0D%0A")};Y(t),K(!0)}}}),ge.webversionEnabled&&Ne.push({key:"Web version",icon:n.createElement(v.A,{icon:"Web",style:{fontSize:16}}),label:z("Web version"),onClick:Be}),ge.sharePreviewEnabled&&Ne.push({key:"Share",icon:n.createElement(v.A,{icon:"ShareAltOutlined",style:{fontSize:16}}),label:z("Share"),onClick:async()=>{const e=(await be.fire({project:ke,id:U})).find((e=>!1===e||"string"===typeof e));!1!==e&&navigator.clipboard.writeText(e||`https://app.emailmaker.ru/email/${U}/raw?key=${f()(`${ke}${U}${M.KI}`)}`).then((()=>{(0,B.wB)(z("A shareable link to this page has been copied to the clipboard."),ue)}))},className:"em-analytics__email-share"});const He=[{key:"Left_mode",icon:n.createElement(v.A,{icon:"PanelLeft",style:{fontSize:"20px",color:"left"===ce&&se?de.colorPrimary:"inherit"}}),label:z("Left Code panel"),onClick:()=>Se("left")},{key:"Right_mode",icon:n.createElement(v.A,{icon:"PanelLeft",style:{fontSize:"20px",transform:"rotate(180deg)",color:"right"===ce&&se?de.colorPrimary:"inherit"}}),label:z("Right Code panel"),onClick:()=>Se("right")},{key:"Bottom_mode",icon:n.createElement(v.A,{icon:"PanelLeft",style:{fontSize:"20px",transform:"rotate(-90deg)",color:"bottom"===ce&&se?de.colorPrimary:"inherit"}}),label:z("Bottom Code panel"),onClick:()=>Se("bottom")}];return n.createElement("div",{className:"email-preview-menu email-preview-menu_new"},n.createElement(o.A,{size:32},n.createElement(o.A,{size:8,style:{borderRadius:"calc(var(--borderRadius) * 1px"}},n.createElement(i.A,{title:z(t?N.LJ:"Undo (Ctrl+Z)"),placement:"bottom"},n.createElement(s.Ay,{type:"text",icon:n.createElement(v.A,{icon:"UndoOutlined",style:{fontSize:20}}),onClick:()=>{re.undo()},disabled:!oe.canUndo})),n.createElement(i.A,{title:z(t?N.LJ:"Redo (Ctrl+Shift+Z)"),placement:"bottom"},n.createElement(s.Ay,{type:"text",icon:n.createElement(v.A,{icon:"RedoOutlined",style:{fontSize:20}}),onClick:()=>{re.redo()},disabled:!oe.canRedo})),ge.historyEnabled&&n.createElement(i.A,{title:z("Version history"),placement:"bottom"},n.createElement(s.Ay,{type:ie?"text":"primary",ghost:!ie,onClick:()=>{ie?(Te(!0),Me({[we]:null===e||void 0===e?void 0:e.id}).then((e=>{e.isSuccess?0===e.data.data.length&&ue.error({message:n.createElement("div",{dangerouslySetInnerHTML:{__html:z("There`s no record of history.")}}),placement:"bottomRight"}):e.isError&&(0,B.p6)(e,ue),Ie(),q((0,w.PM)(M.Vv)),Te(!1),Ae&&(Ce(!0),ye(4))}))):(q((0,w.Fk)()),Ie())},disabled:e.isNew||xe,className:"email-preview-menu__history",icon:xe?n.createElement(c.A,{indicator:F}):n.createElement(n.Fragment,null,n.createElement(v.A,{icon:"HistoryOutlined",style:{fontSize:20},className:"email-preview-menu__list-item-icon email-preview-menu__list-item-icon_revert"}),Ae&&n.createElement(v.A,{icon:"Lock",className:"free-mode-firewall-icon"}))}))),n.createElement(o.A,{size:8,style:{borderRadius:"calc(var(--borderRadius) * 1px"}},ge.codeEnabled&&n.createElement(d.A,{arrow:!0,key:"Code mode",placement:"bottom",menu:{items:He},trigger:"hover",mouseEnterDelay:0},n.createElement(s.Ay,{type:se?"primary":"text",ghost:se,icon:n.createElement(n.Fragment,null,n.createElement(v.A,{icon:"Code",style:{fontSize:20}}),Ae&&n.createElement(v.A,{icon:"Lock",className:"free-mode-firewall-icon"})),onClick:Se})),ge.previewIconEnabled&&n.createElement(d.A,{arrow:!0,key:"Preview",placement:"bottom",menu:{items:Ne}},n.createElement(s.Ay,{type:"text",target:"_blank",rel:"noreferrer",icon:ge.previewModeEnabled?n.createElement("span",{onClick:Re,style:{fontSize:"18px",color:de.colorText}},n.createElement(v.A,{icon:"EyeOutlined",style:{fontSize:20},className:"email-preview-menu__list-item-icon"})):n.createElement(v.A,{icon:"EyeOutlined",style:{fontSize:20},className:"email-preview-menu__list-item-icon"}),disabled:!oe.canUndo})),ge.sendTestEnabled&&n.createElement(i.A,{title:z("Send a test email"),placement:"bottom"},n.createElement(s.Ay,{className:"em-analytics__email-open-test",type:"text",icon:n.createElement(v.A,{icon:"SendOutlined",style:{fontSize:20}}),onClick:()=>{q((0,_.qf)(M.lx.SEND_TEST_EMAIL))}})))),n.createElement(C.A,{isModalVisible:G===M.lx.SEND_TEST_EMAIL,email:e}),n.createElement(y.A,{open:Ee,onCancel:()=>{ie||(Ie(),q((0,w.Fk)())),se&&q((0,w.vs)()),Ce(!1)},initialSlide:ve}))}},11885:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var n=a(98173),l=a(30150),r=a(79245),o=a(40120),i=a(73668),s=a(46767),c=a(78915),d=a(56605),m=a(49291),u=a(86095),p=a(39420),g=a(32947),h=a(96734);const{useToken:b}=o.A,f=()=>{const{emailId:e}=(0,l.g)();let[t]=(0,r.ok)();const[a]=(0,s.UH)(),[o,f]=(0,n.useState)(!1),{token:E}=b(),C=(0,h.p)();(0,n.useEffect)((()=>{(0,p.FN)(E)}),[E]);const{isLoading:v}=(0,c.CR)("",{skip:!C.get(g.A9.em_token)}),{isLoading:y,isSuccess:_,data:A}=(0,i.c)({emailId:+e,secret_hash:t.get("key")},{skip:!e||!t.get("key")});(0,n.useEffect)((()=>{document.body.classList.add("editor")}),[]);const w=(0,n.useRef)(),k=w.current||(w.current=(0,u.$Z)());return(0,n.useEffect)((()=>{C.get(g.A9.em_token)?a().then((e=>{if(e.error)return C.remove(g.A9.em_token),void f(!1);f(!0)})):f(!1)}),[a,C]),y||v?n.createElement(d.A,null):_&&n.createElement(u.kx.Provider,{value:k},n.createElement(m.A,{email:A,viewMode:"view",isLoggedIn:o}))}},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),b=a(78446),f=a(10267),E=a(82648),C=a(47214),v=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),M=a(45271),N=a(50209),R=a(37969),B=a(52218),H=a.n(B),P=a(40277),V=a(96734),O=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,V.p)(),{token:d}=j(),{__:m}=(0,D.s9)(),u=e.type?F.IE:F.Tm,p=`/projects/${l}/emails/new`,g=(0,O.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=${H()(a)}`:""}&url=${encodeURIComponent(`https://app.emailmaker.ru/get${u}/${e}?secret_hash=${H()(`${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(R.Ay,{type:"link",className:"element-card__title"},(0,P.ln)(e.title))))};var z=a(56605),q=a(8807),W=a(27499),U=a(48753),$=a(8218),G=a(23424);const X="description",K=()=>{const{__:e}=(0,D.s9)(),t=(0,L.wA)(),[a]=W.A.useForm(),l=(0,n.useRef)(null),r=(0,L.d4)(G.cL)===F.lx.ADD_NEW_AI_EMAIL,o=(0,V.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,G.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(U.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(R.Ay,{key:"submit",type:"primary",size:"large",onClick:m},e("Generate Email"))]},n.createElement(W.A,{form:a,layout:"vertical",name:"add_new_folder_form",onFinish:m,initialValues:{[X]:""},autoComplete:"off",style:{paddingTop:10}},n.createElement(W.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:R,projectTags:B=[],activeTagId:H,setActiveTagHandler:j,projectEmailsCounter:W=0,registerFunction:U=()=>{},groupType:$=null})=>{var X,de,me,ue,pe,ge,he,be;const{__:fe,_x:Ee}=(0,D.s9)(),Ce=(0,L.wA)(),ve=(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),Me=(0,L.d4)(ae.Rw),[Ne,Re]=(0,k.ok)(),Be=(0,V.p)(),He=(0,ie.hN)(),{owner:Pe,admin:Ve}=(0,le.A)();let Oe=(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,O.u)(),We=[...Ie,...Me],[Ue,$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 Ge=+Ne.get("page"),Xe=Ne.get("folder"),Ke=+Ne.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)((()=>{Ce((0,ee.FC)())}),[Ce]);const[it,st]=(0,n.useState)({projectId:e,page:ot?Ge: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,bt]=(0,n.useState)({page:Ge||1,pageSize:F.mU,folderTag:null,tags:[],groupType:$}),{isLoading:ft,isSuccess:Et,isError:Ct,isFetching:vt,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}),Mt=(e,t)=>$===F.ti.ALL?e||t:$===F.ti.PROJECT?t:e,Nt=Mt(ft,wt),Rt=Mt(Et,kt),Bt=Mt(Ct,St),Ht=Mt(vt,Lt),Pt=Mt(_t,Tt),Vt=Mt(At,It),[Ot,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:Wt}=(0,Y.Xw)({...Ot,tags:l&&Ot.folderTag?null:Ot.tags,status:"custom"},{skip:a||rt||l===F.y2||Ot.folderTag!==l||!(null===(de=Ot.name)||void 0===de||!de.length)&&(rt||l===F.y2)}),[Ut,$t]=(0,n.useState)({projectId:e,page:rt?Ge:1,pageSize:F.mU,notEmbed:!0,tags:Ke&&[Ke],folderTag:null,status:"trash"}),[Gt,Xt]=(0,n.useState)(!1),{isLoading:Kt,isSuccess:Yt,isError:Qt,isFetching:Jt,data:ea,refetch:ta,error:aa}=(0,Y.Xw)({...Ut,status:"trash",folderTag:null,page:Gt?Ut.page:1},{skip:a||(Math.ceil(ye/F.mU)||1)<Ut.page||!(null===(me=Ut.name)||void 0===me||!me.length)&&!rt||!(null===(ue=Ut.tags)||void 0===ue||!ue[0])&&xe>0});(0,n.useEffect)((()=>{Xt(!!ea||Math.ceil(ye/F.mU)>=Ut.page)}),[ea,Ut.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?Ut:ot?it:Ot,ra=a?Rt:rt?Yt:ot?dt:jt,oa=a?Nt:rt?Kt:ot?ct:Ft,ia=a?Bt:rt?Qt:ot?mt:Zt,sa=a?Ht:rt?Jt:ot?ut:zt,ca=a?Pt:rt?ta:ot?pt:Wt,da=a?Vt:rt?aa:ot?gt:qt,ma=(a?Ue:rt?ye:ot?ve:null===Se||void 0===Se||null===(pe=Se[l||(null===(ge=Ot.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===(be=Ot.tags)||void 0===be?void 0:be[0])])||void 0===he?void 0:he.list;(0,n.useEffect)((()=>{ra&&ca&&U(ca)}),[U,ca,ra]);const pa=(0,n.useCallback)((e=>{a?bt((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||H&&Ke!==H)&&pa({folderTag:l,page:1});let e={page:Xe===l&&la.page?la.page:1};l&&!Ke&&(e.folder=l),H&&(e.tag=H),Re(e,{replace:!0})}}),[la.page,De,a,Xe,l,H,Ke,pa,Re]);const ga=e=>{ze({maskClosable:!0,centered:!0,title:Ee(rt?"Are you sure to irrevocably delete \u201c":"Are you sure to delete \u201c","email")+e.title+fe("\u201d email?"),icon:n.createElement(h.A,{style:{color:"#ff4d4f"}}),okText:fe("Yes"),cancelText:fe("No"),onOk:()=>(e=>Ze.dispatch(Y.GY.endpoints.deleteEmail.initiate({id:e.id,force:rt})).then((e=>{e.error?(0,P.p6)(e,He):e.data&&((0,P.wB)(fe("The email \u201c")+e.data.title+Ee("\u201d was successfully removed.","email"),He),ca(),R(),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?He.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(),R(),ta(),He.success({message:fe("The email \u201c")+e.title+Ee("\u201d was successfully recovered.","recovery"),placement:"bottomRight"})),nt(!1)}))},ba=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?He.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]?Wt():pt(),R(),He.success({message:fe("The copy of email \u201c")+e.title+Ee("\u201d was successfully created.","copy"),placement:"bottomRight"}));nt(!1)}))}))},fa=(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])&&Ce(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&&(Ce((0,ee.X)({folder:l,emailId:t.id})),Ce(Y.GY.endpoints.getEmails.initiate({...la,folderTag:l||null}))),pt(),R()})).catch((e=>{}))},Ea=[{width:"40%",title:Ee("Email","letter"),dataIndex:["title"],render:(e,t,a)=>n.createElement(k.N_,{to:rt?"":ce(Oe,t),style:{cursor:rt?"default":"pointer"}},e)},{width:"20%",title:fe("Tags"),dataIndex:["emailtags"],render:(e,t,a)=>n.createElement(o.A,{wrap:!0,size:8},e&&e.map((e=>{const t=null===B||void 0===B?void 0:B.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(b.A,{className:I()("lock-icon",{"lock-icon__disabled":!(Pe||Ve||(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:fe("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:fe("Created"),className:"nobr",dataIndex:"date",render:(e,t,a)=>(0,P.Yq)((0,w.A)(e),fe),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(f.A,{style:{fontSize:18}}),label:fe("New emails"),key:F.y2,onClick:e=>fa(e,t)},g=null===T||void 0===T?void 0:T.map((e=>({icon:n.createElement(E.A,{style:{fontSize:18}}),label:e.name,key:e.id,className:e.id,onClick:e=>fa(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||Ve||(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(M.A,{key:"Lock",element:t}),icon:t.lock?n.createElement(C.A,{style:{fontSize:"16px"}}):n.createElement(b.A,{style:{fontSize:"16px"}})}),(Pe||Ve||(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:fe("Transfer to folder"),icon:n.createElement(E.A,{style:{fontSize:"16px"}}),children:w}),!rt&&S.push({label:n.createElement(k.N_,{to:ce(Oe,t)},fe("Edit")),icon:n.createElement(v.A,{style:{fontSize:"16px"}}),key:"Enter",className:"em-analytics__email-enter"},{label:fe("Clone"),key:"Clone",icon:n.createElement(y.A,{style:{fontSize:"16px"}}),className:"em-analytics__email-clone",disabled:Qe.isLoading,onClick:()=>ba(t)}),(Pe||Ve||(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:fe("Recover"),icon:n.createElement(_.A,{style:{fontSize:"16px"}}),key:"Recover",onClick:()=>ha(t)}),(Pe||Ve||(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:fe("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)))}}],[Ca,va]=(0,n.useState)(!1);(0,n.useEffect)((()=>{var e,t;for(let a in Te)if(a||""===a||0===a.length){va(!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&&bt({...Te,group:Te.group,page:1,pageSize:F.mU})}),[Te,Ce,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?He.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;He.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"},fe("Blank template")),n.createElement("div",{className:"element-card__empty-template__description"},fe("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)"}),Be.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"},fe("Import email")),n.createElement("div",{className:"element-card__empty-template__description"},fe("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"},fe("AI email generation")),n.createElement("div",{className:"element-card__empty-template__description"},fe("Creating an email on request")," "))),onClick:()=>Ce((0,G.qf)(F.lx.ADD_NEW_AI_EMAIL))})),a&&(!!Ue||!!We.length)&&n.createElement("div",{className:"element-card__group-tag-wrapper"},n.createElement(d.A,{gap:"10px",style:{marginBottom:15,marginLeft:4},wrap:!0},We.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=We.filter((t=>t.key!==e.key));Ce(Ie.length?(0,ae.es)(t):(0,ae.BN)(t)),Ce((0,te.ry)({[Ie.length?"group":"projectGroup"]:t,[Ie.length?"projectGroup":"group"]:[]}))},icon:"CloseTag"})))),We.length>1&&n.createElement(i.A,{className:"blue-color element-card__group-tag element-card__group-tag_close"},fe("Clear all")," ",n.createElement(q.A,{onClick:()=>{Ce((0,ae.mb)()),Ce((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:fe("Error"),description:fe("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)&&(Ca||W>0?n.createElement(u.A,{message:fe("Emails not found"),description:"",type:"info",showIcon:!0}):l!==F.y2?n.createElement(u.A,{message:fe("You don't have any emails in this folder."),description:fe("Add your first email to the folder..."),type:"info",showIcon:!0}):n.createElement(u.A,{message:fe("You don't have any emails yet."),description:fe("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:Ea,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(N.A,{key:e.id,element:e,setSearchFilters:j,isTrash:rt,foldersList:T,refetch:pt,projectTags:B,foldersHandlers:{handleRemove:ga,handleRecover:ha,handleClone:ba,handlerChangeFolder:fa}})))),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),b=a(10585),f=a(82648),E=a(74984),C=a(79245),v=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(65716),T=a(83027),I=a(23424),M=a(32947),N=a(40277);const R=({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)===M.lx.ADD_NEW_FOLDER_MODAL,u=(0,m.hN)(),p=`project_${e.id}`,[g]=(0,x.OD)(),[h]=(0,T.f1)(),b=(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&&b()}),[d,b]);const f=()=>i((0,I.Oo)()),[E,C]=(0,T.Yb)(),[v,A]=(0,n.useState)(!1),[w,R]=(0,n.useState)(t),B=()=>{s.validateFields().then((({name:t})=>(A(!0),w?E({name:t,parent:w}).then((({data:e,error:t})=>{t?(0,N.p6)({error:t},u):(u.success({message:l("The folder \u201c")+e.name+r("\u201d was successfully created.","folder"),placement:"bottomRight"}),window.localStorage.setItem(M.V0.em_folder_is_open,"true"),f(),h({parent:w}))})):E({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,N.p6)({error:o},u);else if(e)return E({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"}),R(e[a][0]),h({parent:e[a][0]}).then(((e,t)=>{e?(window.localStorage.setItem(M.V0.em_folder_is_open,"true"),f()):t&&(0,N.p6)({error:t},u)}));(0,N.p6)({error:n},u)}))}));(0,N.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:B,onCancel:f,className:"new-folder-modal",centered:!0,footer:[n.createElement(o.Ay,{key:"submit",type:"primary",size:"large",loading:C.isLoading||v,onClick:B},l("Create folder"))]},n.createElement(k.A,{form:s,layout:"vertical",name:"add_new_folder_form",onFinish:B,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:C.isLoading,size:"large",placeholder:l("Enter the folder name"),ref:c,style:{marginBottom:5}}))))};var B=a(14023),H=a(79253),P=a(15812);const{useToken:V}=l.A;function O(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,N,D;const{__:F,_x:j}=(0,_.s9)(),Z=(0,y.Pj)(),z=(0,y.wA)(),q=(0,m.hN)(),{modal:W}=r.A.useApp(),{confirm:U}=W,{token:$}=V(),G=(0,y.d4)("folder"===k?H.MY:P.D2),X=(0,y.d4)("folder"===k?H.aO:P.dV),K=(0,y.d4)(I.o8),[Y]=(0,C.ok)(),Q=Y.get("folder"),{data:J}=(0,v.KC)(),ee=F("folder"===k?"New emails":"New blocks");let te;null!==window.localStorage.getItem(M.V0.em_folder_is_open)&&(te=window.localStorage.getItem(M.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:M.y2}))(F));const r=(a,l)=>{U({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(M.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)(M.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(b.A,{style:{fontSize:18}}):n.createElement(f.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=[O(n.createElement("div",{className:"project-page__folder-title"},n.createElement("span",null,ee),G>0&&n.createElement("span",{className:"project-page__folder-count "},G)),M.y2,n.createElement(u.A,{style:{fontSize:18}})),O(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))),M.Ug,ie?n.createElement(b.A,{style:{fontSize:18}}):n.createElement(f.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(O(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||M.y2],defaultOpenKeys:["true"===te&&M.Ug],openKeys:ie&&[M.Ug],onOpenChange:e=>{se(e.includes(M.Ug)),window.localStorage.setItem(M.V0.em_folder_is_open,e.includes(M.Ug))},forceSubMenuRender:!0,onSelect:e=>{e.key!==M.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(E.A,{style:{fontSize:16}}),onClick:()=>z((0,I.qf)(M.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===(N=x.sort(((e,t)=>e.count<t.count?1:-1)))||void 0===N?void 0:N.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(R,{project:J,parentFolderId:(null===(D=J[k])||void 0===D?void 0:D[0])||null,folderTaxonomy:k}),n.createElement(B.A,{folder:ae,refetch:re}))}},55207:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(98173),l=a(40120),r=a(27499),o=a(86774),i=a(40277),s=a(32947),c=a(87396);const{useToken:d}=l.A,m=({form:e,label:t,name:a,disabled:l,elementSettings:m})=>{var u;const p=(0,c.FH)((null===m||void 0===m?void 0:m.type)===s.bV.CAROUSEL?["images",a]:[a],e),[g,h]=(0,n.useState)("success"),{token:b}=d();return(0,n.useEffect)((()=>{p?(0,i.DI)(p).then((e=>{h(e)})).catch((e=>{h(e)})):h("")}),[p]),n.createElement(r.A.Item,{name:a,validateStatus:g,style:{marginBottom:b.formItemMarginBottomXS}},n.createElement(o.A,{validateStatus:g,placeholder:t,name:a,disabled:l,elementSettings:m,imageInfo:(null===m||void 0===m?void 0:m.type)===s.bV.CAROUSEL?null===m||void 0===m||null===(u=m.carouselImages)||void 0===u?void 0:u[a.split("_")[1]]:m}))};m.defaulProps={disabled:!1};const u=m},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 b;const{__:f}=(0,s.s9)(),E=(0,m.XW)(),C=e.getFieldValue(a),[v,y]=(0,n.useState)("success"),_=(0,n.useRef)(),[A,w]=(0,n.useState)(!(!h.mobileBackgroundImage||"none"!==h.mobileBackgroundImage[0].value));(0,n.useEffect)((()=>{C?(0,d.DI)(C).then((e=>{y(e)})).catch((e=>{y(e)})):y("")}),[e,C]);return n.createElement(n.Fragment,null,n.createElement(l.A,{trigger:["hover"],title:p,placement:"left"},n.createElement(r.A.Item,{name:a,validateStatus:v,style:{marginBottom:-7}},n.createElement(c.A,{validateStatus:v,placeholder:t,name:a,disabled:g,elementSettings:h,imageInfo:h.type===u.bV.CAROUSEL?null===(b=h.carouselImages)||void 0===b?void 0:b[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)),E({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"},f("Without background image"))))))};p.defaulProps={disabled:!1}},77306:(e,t,a)=>{"use strict";a.d(t,{A:()=>H});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),b=a(71879),f=a(2604),E=a(12543),C=a(26298),v=a.n(C),y=a(48753),_=a(8218),A=a(64909),w=a(65716),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,E.s9)(),r=(0,f.wA)(),[o]=c.A.useForm(),i=(0,n.useRef)(null),s=(0,f.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)(),[b]=(0,k.y$)(),C=(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&&C()}),[s,C]);const v=()=>r((0,S.Oo)()),[I,M]=(0,k.JI)(),[N,R]=(0,n.useState)(!1),[B,H]=(0,n.useState)(g),P=()=>{const t=(t,n)=>h({projectId:u.id,[e]:n||B}).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"}),H(r[e][0]),b({parent:r[e][0]}).then((({data:e,error:t})=>{e?v():t&&(0,L.p6)({error:t},m)}));(0,L.p6)(o,m)}}));o.validateFields().then((({name:n})=>(R(!0),B?I({name:n,parent:B}).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"}),v(),b({parent:B}))})):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((()=>R(!1)))))).catch((e=>{})).finally((()=>R(!1)))};return n.createElement(y.A,{title:a("Add a new group"),open:s,onOk:P,onCancel:v,className:"new-group-modal",centered:!0,footer:[n.createElement(d.Ay,{key:"submit",type:"primary",size:"large",loading:M.isLoading||N,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:M.isLoading,size:"large",placeholder:a("Enter the group name"),ref:i,style:{marginBottom:5}}))))};var M=a(15737),N=a(8807),R=a(1047);const{useToken:B}=l.A,H=({className:e,refetchProjectGroups:t,isLoading:a})=>{const{__:l,_x:C}=(0,E.s9)(),y=(0,f.wA)(),_=(0,A.hN)(),{modal:w}=r.A.useApp(),{confirm:L}=w,{token:T}=B(),H=(0,f.d4)(R.UI),[P]=(0,k.Lh)(),V=(e,a)=>{L({maskClosable:!0,centered:!0,title:C("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+C("\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 O=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:()=>V(e.id,e.name)}];const[D,F]=(0,n.useState)({id:null,name:""});return n.createElement("div",{className:v()("groups-management",{[e]:e})},a?n.createElement(o.A,{active:!0}):n.createElement(i.A,null,!(null===H||void 0===H||!H.length)&&(null===H||void 0===H?void 0:H.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:O(e)},trigger:["hover"]},n.createElement("span",{className:"groups-management__actions"},n.createElement(b.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(N.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(M.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))))))}},88972:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var n=a(98173),l=a(30150),r=a(37969),o=a(201),i=a(66964),s=a(27499),c=a(8218),d=a(82021),m=a(35850),u=a(50078),p=a(38826),g=a(36236),h=a(871),b=a(8807);const f=({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`}}))))};var E=a(30753),C=a(12543),v=a(27941),y=a(89613),_=a(90614),A=a(64909),w=a(15626),k=a(32947);const S=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(r.Ay,{style:{borderRadius:100,right:10},size:"large",icon:n.createElement(m.A,null)}))},L=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(r.Ay,{style:{borderRadius:100,left:10},size:"large",icon:n.createElement(u.A,null)}))},x=({setModalHeight:e,customRequest:t,aiImageRequest:a,setAiImageRequest:m,aiTabRef:u,imageAiList:x,setImageAiList:T,isLoadingAi:I,setIsLoadingAi:M,inputAiRef:N,isImageUploaded:R,setIsImageUploaded:B})=>{const{__:H}=(0,C.s9)(),P=(0,v.rD)(),V=(0,A.hN)(),O=(0,y.u)(),{emailId:D,blockId:F,projectId:j}=(0,l.g)(),Z=(0,_.ml)(w.AZ.ON_LIMIT_ID),[z,q]=(0,n.useState)(0),[W,U]=(0,n.useState)(null),[$,G]=(0,n.useState)(!1),[X,K]=(0,n.useState)(H("Evaluating the task")),[Y,Q]=(0,n.useState)(!1),[J]=(0,h.Mv)(),[ee,{data:te=[]}]=(0,h.gg)(),ae=D||F,{limits:ne}=null!==P&&void 0!==P&&P.limits?P:{limits:{ai_img_limit:0}},{ai_img_limit:le}=ne,re=z>=le&&le>0,oe=!(!P.limits||!P.counters)&&k.EW.isPlugin,ie=(0,n.useCallback)((()=>{Z.fire({name:"AiImgCount",count:z+1})}),[Z,z]);(0,n.useEffect)((()=>{var e;oe&&q((null===P||void 0===P||null===(e=P.counters)||void 0===e?void 0:e.ai_img_counter)||0)}),[P,oe]);const se=async()=>{K(H("Evaluating the task")),""===a||I||(M(!0),Q(!0),T([]),O({event:"submit_form",action:"ai_image_generation",entity_id:D,project_id:j}),J({body:{project_id:j,request:"create-image",connection:"midjourney",message:a}}).then((({data:e})=>{if(401===e.data.status)throw new Error(k.ff);200===(null===e||void 0===e?void 0:e.data.status)?(null!==e&&void 0!==e&&e.data.task.id&&(K(e.data.task.message),U(e.data.task.id)),e.message&&V.success({id:"AI_IMAGE_SEND_SUCCESS",message:e.message,placement:"bottomRight",data:a}),ee({task_id:null===e||void 0===e?void 0:e.data.task.id,entity_id:ae})):(M(!1),Q(!1),V.error({id:"AI_IMAGE_SEND_ERROR",message:(null===e||void 0===e?void 0:e.message)||H("Something went wrong, please try again"),placement:"bottomRight",data:a,innerException:e}))})).catch((e=>{M(!1),Q(!1),e.error&&V.fromError("AI_IMAGE_SEND_ERROR",a,e.error)})))};(0,n.useEffect)((()=>{te.length>1&&("error"!==te[te.length-1].status||"Canceled"!==te[te.length-1].status?te[te.length-1].images?(K(te[te.length-1].status),100===te[te.length-1].progress&&(T(te[te.length-1].images),K(H("Evaluating the task")),U(null),Q(!1))):(T([te[te.length-1].data]),M(!1)):(M(!1),Q(!1),V.error({id:"AI_IMAGE_GET_ERROR",message:H("Something went wrong, please try again"),placement:"bottomRight",data:W})))}),[te,T,K,H,M,e,W,V]),(0,n.useEffect)((()=>{(I||x.length>0)&&setTimeout((()=>{let t=550;u.current&&(t=u.current.offsetHeight+68),e(t)}),0)}),[u,te,x.length,I,e]);const[ce,de]=(0,n.useState)(!1);return n.createElement("div",{className:"image-ai"},oe&&n.createElement(E.A,{text:H("images"),counter:z,limits:le,wrapperStyles:{marginTop:-25}}),n.createElement(o.A,{gutter:24,style:{padding:"0 2px"}},n.createElement(i.A,{span:24},n.createElement(s.A.Item,{style:{margin:0}},n.createElement("span",{className:"ant-input-affix-wrapper ant-input-affix-wrapper-lg "+(ce?"ant-input-affix-wrapper-focused":""),style:{paddingLeft:0}},n.createElement(c.A.TextArea,{ref:N,onKeyDown:e=>{"Shift"===e.key?G(!0):"Enter"!==e.key||$||(e.preventDefault(),re?oe&&V.error({message:H("The usage limit has been exceeded"),description:H("The maximum number of requests for the current subscription period has been reached.\nSelect the appropriate plan to fulfil more requests"),placement:"bottomRight"}):oe?(q((e=>e+1)),ie(),se()):se())},onKeyUp:e=>{"Shift"===e.key&&G(!1)},onFocus:()=>{de(!0)},onBlur:()=>{de(!1)},autoSize:!0,allowClear:!0,className:"text-area-input-hybrid",placeholder:H("Generate image"),value:a,onChange:t=>{m(t.target.value),setTimeout((()=>{let t=0;u.current&&(t=u.current.offsetHeight+68,I||0!==x.length||(t=u.current.offsetHeight+68)),setTimeout((()=>{e(t)}),0)}),10)},style:{fontSize:16},spellCheck:"false"}),n.createElement("span",{className:"ant-input-suffix"},I||Y?n.createElement(p.A,{style:{fontSize:18},className:"input-icon",spin:!0}):n.createElement(b.A,{icon:"AI",style:{fontSize:16,top:0,right:0},className:"input-icon",onClick:()=>{oe?re||(q((e=>e+1)),ie(),se()):se()}})))))),(I||x.length>0)&&n.createElement(d.A,{dotPosition:"top",arrows:!0,nextArrow:n.createElement(S,null),prevArrow:n.createElement(L,null),style:{marginTop:24}},I&&n.createElement("div",{className:"image-ai__loading"},n.createElement("div",{className:"spin"},n.createElement(p.A,{style:{fontSize:48},spin:!0}),n.createElement("p",{className:"status"},X))),x.length>0&&x.map(((e,a)=>n.createElement("div",{key:a,className:"image-ai__image-item"},n.createElement(f,{images:x}),n.createElement("div",{className:"buttons"},"Ready"===te[te.length-1].status&&n.createElement(r.Ay,{onClick:()=>(e=>{if(!R){B(!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(g.A,null)},H("Use this variant"))))))))}},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},42811:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+BnQM5P/BRgABx8sJWqTxoYAAAAASUVORK5CYII="},16403:()=>{},63779:()=>{},77199:()=>{}}]);