@emailmaker/emailmaker 1.0.115 → 1.0.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +1 -1
  2. package/asset-manifest.json +63 -66
  3. package/emailmaker-esm.js +1 -1
  4. package/emailmaker.d.ts +72 -1
  5. package/emailmaker.js +1 -1
  6. package/fonts/SegoeUI-Bold.woff2 +0 -0
  7. package/fonts/SegoeUI-Semibold.woff2 +0 -0
  8. package/fonts/SegoeUI.woff2 +0 -0
  9. package/iframe/429.js +1 -1
  10. package/iframe/766.js +1 -1
  11. package/iframe/iframe-eblock.612f5e3292f38c64ed91.html +1 -0
  12. package/iframe/iframe.612f5e3292f38c64ed91.html +1 -0
  13. package/iframe/index.html +1 -1
  14. package/iframe/js/525.5461ecf3.js +1 -0
  15. package/iframe/js/667.25c21b63.js +1 -0
  16. package/iframe/js/882.de4b06e1.js +1 -0
  17. package/iframe/sandbox-eblock.js +1 -1
  18. package/package.json +1 -1
  19. package/react/index.js +1 -1
  20. package/react/index.mjs +1 -1
  21. package/static/css/2854.257728de.chunk.css +2 -0
  22. package/static/css/369.d740f134.chunk.css +2 -0
  23. package/static/css/{2557.2ede4a53.chunk.css → 8727.2f8ba497.chunk.css} +1 -1
  24. package/static/css/main.8c8bed31.css +2 -0
  25. package/static/js/1345.70eac4ec.js +3 -0
  26. package/static/js/1345.70eac4ec.js.LICENSE.txt +101 -0
  27. package/static/js/1532.5ef52703.js +3 -0
  28. package/static/js/{2491.d65e25c3.js.LICENSE.txt → 1532.5ef52703.js.LICENSE.txt} +8 -0
  29. package/static/js/1716.2d977604.js +3 -0
  30. package/static/js/1716.2d977604.js.LICENSE.txt +11 -0
  31. package/static/js/1902.9e9ca2af.js +3 -0
  32. package/static/js/{9503.529740b0.js.LICENSE.txt → 1902.9e9ca2af.js.LICENSE.txt} +41 -5
  33. package/static/js/1940.e77ca441.js +3 -0
  34. package/static/js/2022.b4591f7e.js +3 -0
  35. package/static/js/{566.a759ee99.js.LICENSE.txt → 2022.b4591f7e.js.LICENSE.txt} +0 -13
  36. package/static/js/{327.31ca6e0d.js → 262.19eb7dd4.js} +3 -3
  37. package/static/js/2798.9c98addb.js +3 -0
  38. package/static/js/2798.9c98addb.js.LICENSE.txt +97 -0
  39. package/static/js/284.7faba600.js +2 -0
  40. package/static/js/2854.10396f08.js +2 -0
  41. package/static/js/369.05739401.js +3 -0
  42. package/static/js/369.05739401.js.LICENSE.txt +10 -0
  43. package/static/js/3718.76cec3de.js +2 -0
  44. package/static/js/5215.a9897c36.js +2 -0
  45. package/static/js/5333.afbfef64.js +3 -0
  46. package/static/js/{emailmaker_core.03a31b5b.js.LICENSE.txt → 5333.afbfef64.js.LICENSE.txt} +15 -3
  47. package/static/js/6438.78acfa4a.js +2 -0
  48. package/static/js/8466.44341e69.js +2 -0
  49. package/static/js/{8580.fb06c399.js → 8580.4f3e7c56.js} +2 -2
  50. package/static/js/8722.cfde4eb7.js +3 -0
  51. package/static/js/8727.97602af2.js +2 -0
  52. package/static/js/emailmaker_core.d07551cd.js +2 -0
  53. package/iframe/iframe-eblock.8216ee8050e216f489af.html +0 -1
  54. package/iframe/iframe.8216ee8050e216f489af.html +0 -1
  55. package/iframe/js/525.df9e0411.js +0 -1
  56. package/iframe/js/667.43c0e8ce.js +0 -1
  57. package/iframe/js/882.89cce971.js +0 -1
  58. package/static/css/6310.98e625aa.chunk.css +0 -2
  59. package/static/css/9617.0a8094c7.chunk.css +0 -2
  60. package/static/css/main.b7275454.css +0 -2
  61. package/static/js/1902.8d2f3fce.js +0 -2
  62. package/static/js/1940.524f0244.js +0 -3
  63. package/static/js/2491.d65e25c3.js +0 -3
  64. package/static/js/2557.c5dfa9a5.js +0 -2
  65. package/static/js/284.efb80df6.js +0 -2
  66. package/static/js/3628.b5eb07c2.js +0 -3
  67. package/static/js/566.a759ee99.js +0 -3
  68. package/static/js/6310.cafc9a48.js +0 -2
  69. package/static/js/7234.d3966e99.js +0 -2
  70. package/static/js/7673.2db4eeee.js +0 -3
  71. package/static/js/7673.2db4eeee.js.LICENSE.txt +0 -48
  72. package/static/js/8013.e4dee415.js +0 -2
  73. package/static/js/8466.d3339ec9.js +0 -2
  74. package/static/js/912.42ae1bb7.js +0 -3
  75. package/static/js/912.42ae1bb7.js.LICENSE.txt +0 -32
  76. package/static/js/9503.529740b0.js +0 -3
  77. package/static/js/9578.629b57ca.js +0 -2
  78. package/static/js/9617.54df440a.js +0 -3
  79. package/static/js/9617.54df440a.js.LICENSE.txt +0 -32
  80. package/static/js/emailmaker_core.03a31b5b.js +0 -3
  81. package/static/media/fb.ff10384394f8044ec889.png +0 -0
  82. package/static/media/ig.47a89992b4bec92d4364.png +0 -0
  83. package/static/media/tg.10f004529a98df9732b9.png +0 -0
  84. package/static/media/vk.fe41df919f4e8718e0b3.png +0 -0
  85. package/static/media/xa.8e9f984ff84e3f51c6f6.png +0 -0
  86. package/static/media/yd.c40d05dde64ef695fdf2.png +0 -0
  87. package/static/media/yt.4ac57e55d158b40c7fc1.png +0 -0
  88. /package/iframe/js/{525.df9e0411.js.LICENSE.txt → 525.5461ecf3.js.LICENSE.txt} +0 -0
  89. /package/iframe/js/{667.43c0e8ce.js.LICENSE.txt → 667.25c21b63.js.LICENSE.txt} +0 -0
  90. /package/iframe/js/{882.89cce971.js.LICENSE.txt → 882.de4b06e1.js.LICENSE.txt} +0 -0
  91. /package/static/js/{1940.524f0244.js.LICENSE.txt → 1940.e77ca441.js.LICENSE.txt} +0 -0
  92. /package/static/js/{327.31ca6e0d.js.LICENSE.txt → 262.19eb7dd4.js.LICENSE.txt} +0 -0
  93. /package/static/js/{3628.b5eb07c2.js.LICENSE.txt → 8722.cfde4eb7.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ (()=>{var e={61578:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});class o{constructor(e=[]){this._inner=e,this._isDisposed=!1}addDisposable(e){return this._inner.push(e),e instanceof o&&e.addDispose(()=>{this.removeDisposable(e)}),e}addDispose(e){this.addDisposable({dispose:e})}removeDisposable(e){const t=this._inner.indexOf(e);t>=0&&this._inner.splice(t,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const e of[...this._inner])e.dispose()}}}},1331:(e,t,r)=>{"use strict";r.d(t,{A6:()=>d,AH:()=>f,BF:()=>u,Cn:()=>_,K8:()=>h,Lv:()=>T,M6:()=>c,ST:()=>p,Sb:()=>g,TM:()=>a,b6:()=>S,d1:()=>C,ih:()=>b,ir:()=>E,rq:()=>w,uE:()=>l,uL:()=>A,vq:()=>i,wz:()=>m});var o=r(43083);function a(e){return"<!DOCTYPE "+e.name+(e.publicId?' PUBLIC "'+e.publicId+'"':"")+(!e.publicId&&e.systemId?" SYSTEM":"")+(e.systemId?' "'+e.systemId+'"':"")+">"}const s=Object.create(null);function n(e,t){const r=s[e]||(s[e]=Object.create(null));let o=r[t];if("boolean"!==typeof o){const a=document.createElement(e)[t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(e,t)=>t.toUpperCase())];o=r[t]="undefined"!==typeof a&&"boolean"!==typeof a}return o}function i(e){return e.nodeType===Node.ELEMENT_NODE}function l(e){return i(e)&&!e.ownerSVGElement}function d(e){return"IMG"===e.tagName}function c(e){return"AMP-IMG"===e.tagName}function u(e){return"FORM"===e.tagName}function p(e){return"STYLE"===e.tagName}function m(e){return e.nodeType===Node.DOCUMENT_NODE}function h(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}let f;var y;function _(e){return e.nodeType===Node.COMMENT_NODE}function g(e){const t=e.getRootNode()||window.document;return function(e){return e&&!!e.host&&!!e.mode}(t)?t:null}(y=f||(f={})).isStyleRule=function(e){return"CSSStyleRule"===e.constructor.name},y.isImportRule=function(e){return"CSSImportRule"===e.constructor.name},y.isMediaRule=function(e){return"CSSMediaRule"===e.constructor.name},y.isFontFaceRule=function(e){return"CSSFontFaceRule"===e.constructor.name},y.isPageRule=function(e){return"CSSPageRule"===e.constructor.name},y.isKeyframesRule=function(e){return"CSSKeyframesRule"===e.constructor.name},y.isKeyframeRuleRule=function(e){return"CSSKeyframeRule"===e.constructor.name},y.isNamespaceRule=function(e){return"CSSNamespaceRule"===e.constructor.name},y.isCounterStyleRule=function(e){return"CSSCounterStyleRule"===e.constructor.name},y.isSupportsRule=function(e){return"CSSSupportsRule"===e.constructor.name},y.isFontFeatureValuesRuleRule=function(e){return"CSSFontFeatureValuesRule"===e.constructor.name};const v=/(<!(--)?\[if\s[()\w\s|&!]+\]>(?:<!--+>)?)((?:.|\r|\n)*?)((?:<!--)?<!\[endif\]\2>)/gi;function b(e){const t=S(e).matchAll(v);if(t)for(const r of t){const[,e,,t,o]=r;return{open:e,close:o,content:t}}}function E(e){return e.nodeType===Node.TEXT_NODE}function T(e){return"TABLE"===e.tagName}async function w(e,t=5e3){return"undefined"===typeof e.complete||e.complete?getComputedStyle(e):new Promise((r,o)=>{setTimeout(r,t),e.onload=()=>r(getComputedStyle(e)),e.onerror=e=>{}})}function S(e){if(i(e))return function(e){var t;const r=(null===(t=Object.getOwnPropertyDescriptor(e,"$$tagName"))||void 0===t?void 0:t.value)||e.tagName.toLowerCase(),a=function(e){const t=e.tagName.toLowerCase();let r="";for(const o of e.attributes){const e=o.name,a=o.value;r+=""!==a||"em"===e||n(t,e)?` ${e}="${a.replaceAll('"',"'")}"`:` ${e}`}return r}(e);return o.n1.has(r.toLowerCase())?"vk-snippet-end"===r?`<${r}${a}/>`:`<${r}${a}>`:p(e)?`<${r}${a}>${e.innerHTML}</${r}>`:`<${r}${a}>${A(e)}</${r}>`}(e);if(m(e))return[...e.childNodes].map(e=>S(e)).join("");if(function(e){return e.nodeType===Node.DOCUMENT_TYPE_NODE}(e))return a(e);const t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function A(e){let t="";for(const r of e.childNodes)t+=S(r);return t}function C(e,t){for(const s of[...e.childNodes])s.remove();let r=t.find(e=>function(e){return"HTML"===e.tagName}(e)),o=t.find(e=>function(e){return"BODY"===e.tagName}(e)),a=e;r||(r=document.createElement("html"),e.appendChild(r),a=r,o||(o=document.createElement("body"),r.appendChild(o),a=o));for(const s of t)a===e&&E(s)?a.appendChild(document.createComment(`%%%{{{${s.data}}}}%%%`)):a.appendChild(s)}},15301:(e,t,r)=>{"use strict";function o(e){return/#set\s*\(\s*.*=.*\)/.test(e)}function a(e){const t=e.indexOf("(");if(t<0)return!0;let r=0,o="",a=!1;for(let s=t;s<e.length;s++){const t=e[s];if(a)a=!1;else if("\\"!==t)if(o)t===o&&(o="");else if('"'!==t&&"'"!==t)if("("!==t){if(")"===t&&(r--,r<0))return!1}else r++;else o=t;else a=!0}return 0===r}function s(e,t){const r=e.length;for(let o=0;o<r;o++){const r=e.charCodeAt(o);if(0===r)return!1;if('"'===t&&34===r)return!1;if("'"===t&&39===r)return!1;if(""===t&&(32===r||9===r||10===r||13===r||12===r||34===r||39===r||60===r||62===r||61===r||96===r))return!1}return!0}r.d(t,{Hk:()=>g,uI:()=>E});const n=new class{constructor(){this._byKey=Object.create(null),this._byValue=Object.create(null)}getOrCreateByKey(e){let t=this._byKey[e];return void 0===t&&(t=function(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r=new Uint8Array(e);crypto.getRandomValues(r);let o="";for(let a=0;a<e;a++){const e=r[a]%62;o+=t.charAt(e)}return o}(8),this._byKey[e]=t,this._byValue[t]=e),t}getByValue(e){return this._byValue[e]}};function i(e,t){if(void 0!==t&&!s(e,t)){return`%|{${n.getOrCreateByKey(e)}}|%`}return e}function l(e){const t=n.getByValue(e.slice(3,e.length-3));return void 0===t?e:t}function d(e,t,r){if(void 0!==t){if(s(e,t))return e;return`%|{${n.getOrCreateByKey(e)}}|%`}return`\x3c!--${e}--\x3e`}function c(e){if(e.startsWith("\x3c!--")&&e.endsWith("--\x3e")){const t=e.slice(4,-3);return t.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&")}return e}function u(e,t,r){if(void 0!==t){if(s(e,t))return e;return`%|{${n.getOrCreateByKey(e)}}|%`}return r||function(e){const t=/[<>&]/g;let r;for(;null!==(r=t.exec(e));)return!0;return!1}(e)||function(e){let t=e;const r=e.match(/\[%\s*([^%]*?)\s*%\]/);r&&(t=r[1]);const o=t.trim();return/^(IF|ELSE|ELSIF|ELSEIF|END|FOREACH|WHILE|NEXT|LAST|BREAK|DO|UNLESS|CONTINUE|SET|UNSET|DEFINE|INCLUDE)\b/i.test(o)||/\w+\s*\(/.test(o)}(e)?`\x3c!--${e}--\x3e`:e}const p=(m=d,(e,t,r)=>!!a(e)&&m(e,t,r));var m;const h=(f=c,e=>!!a(e.startsWith("\x3c!--")&&e.endsWith("--\x3e")?e.slice(4,-3):e)&&f(e));var f;const y=function(e){return(t,r,s)=>!!a(t)&&(o(t)?e(t,r,s):t)}(d),_=function(e){return t=>{const r=t.startsWith("\x3c!--")&&t.endsWith("--\x3e")?t.slice(4,-3):t;return!!a(r)&&(o(r)?e(t):t)}}(c),g=e=>{e.escape("\x3c!--","--\x3e",e=>e,!1),e.escape("<style","</style>",e=>e,!1),e.escape("<script","<\/script>",e=>e,!1),e.unescape("%|{","}|%",l),e.escape("@{","}",d,!0).unescape("\x3c!--@{","}--\x3e",c,!0),e.unescape("\x3c!--%%%{{{","}}}%%%--\x3e",e=>e.substring(10,e.length-9),!1),e.escape("${","}",i,!0),e.escape("{{","}}",i,!0),e.escape("{%","%}",d).unescape("\x3c!--{%","%}--\x3e",c),e.escape("{#","#}",d).unescape("\x3c!--{#","#}--\x3e",c),e.escape("[%","%]",u,!0).unescape("\x3c!--[%","%]--\x3e",c,!0),e.createSyntax("getresponse").escape("[[IF","]]",d).escape("[[if","]]",d).escape("[[ELSE]]","",d).escape("[[else]]","",d).escape("[[ENDIF]]","",d).escape("[[endif]]","",d).unescape("\x3c!--[[IF","]]--\x3e",c).unescape("\x3c!--[[if","]]--\x3e",c).unescape("\x3c!--[[ELSE]]","--\x3e",c).unescape("\x3c!--[[else]]","--\x3e",c).unescape("\x3c!--[[ENDIF]]","--\x3e",c).unescape("\x3c!--[[endif]]","--\x3e",c),e.createSyntax("ExpertSender").escape("<if",">",d).escape("</if",">",d).escape("<else",">",d).escape("</else",">",d).escape("<var ",">",d,!0).unescape("\x3c!--<if ",">--\x3e",c).unescape("\x3c!--</if",">--\x3e",c).unescape("\x3c!--<else ",">--\x3e",c).unescape("\x3c!--</else",">--\x3e",c).unescape("\x3c!--<var",">--\x3e",c,!0),e.createSyntax("velocity").escape("#if",")",p).escape("#elseif",")",p).escape("#else","",d).escape("#foreach",")",p).escape("#macro",")",p).escape("#set",")",y,!0).escape("#parse",")",p).escape("#include",")",p).escape("#evaluate",")",p).escape("#end","",d).escape("#break","",d).escape("#stop","",d).unescape("\x3c!--#macro","--\x3e",h).unescape("\x3c!--#if","--\x3e",h).unescape("\x3c!--#elseif","--\x3e",h).unescape("\x3c!--#else","--\x3e",c).unescape("\x3c!--#foreach","--\x3e",h).unescape("\x3c!--#parse","--\x3e",h).unescape("\x3c!--#include","--\x3e",h).unescape("\x3c!--#evaluate","--\x3e",h).unescape("\x3c!--#end","--\x3e",c).unescape("\x3c!--#break","--\x3e",c).unescape("\x3c!--#stop","--\x3e",c).unescape("\x3c!--#set","--\x3e",_,!0),e.escape("*|","|*",d).unescape("\x3c!--*|","|*--\x3e",c)};function v(e,t,r,o,a=!1){const s=[];if(r&&(t=t.filter(e=>e.isVariable)),!t.length)return s;const n=function(e,t){const r=t.reduce((e,{mapFn:t,start:r,end:o,syntax:a})=>(e[r]||(e[r]=[]),e[r].push({value:o,mapFn:t,syntax:a}),e),Object.create(null)),o=Object.keys(r).map(e=>e.replace(/[-[\]{}()*+?.,\\^$|]/g,"\\$&")).join("|"),a=new RegExp(o,"g"),s=[];let n;for(;null!==(n=a.exec(e));){const e=n[0];s.push({start:n.index,startToken:e,endTokens:r[e]})}return s}(e,t);let i,l=!1,d=!1,c=!1,u=0;for(let m=0;m<n.length;m++){var p;const{start:t,startToken:r,endTokens:h}=n[m];if(o)d=!0,i='"';else for(let o=u;o<t;o++){const t=e[o];d?'"'===i||"'"===i?t===i&&(d=!1,i=void 0):c&&/[\s>]/.test(t)&&(d=!1,i=void 0,c=!1):"<"===t?l=!0:">"===t?l=!1:!l||'"'!==t&&"'"!==t?l&&/\S/.test(t)&&void 0===i&&"="===e[o-1]&&!['"',"'","`"].includes(t)&&(d=!0,i="",c=!0):(d=!0,i=t,c=!1)}u=t;const f=d?null!==(p=i)&&void 0!==p?p:"":void 0;for(const{mapFn:o,value:i}of h){let d=t+r.length,c=e.indexOf(i,d);for(;-1!==c;){let u=c,p=t+r.length,h=0;for(;-1!==u;){const t=e.indexOf(r,p);if(-1!==t&&t<u)h++,p=t+r.length,u=e.indexOf(i,p);else{if(!(h>0))break;h--,p=u+i.length,u=e.indexOf(i,p)}}if(u<0)break;const y=u+i.length,_=e.substring(t,y),g=o(_,f,l);if(!1===g){d=c+Math.max(i.length,1),c=e.indexOf(i,d);continue}(a||g!==_)&&s.push({range:{start:t,end:y},text:a?_:g});const v=n.findIndex(({start:e})=>e>=y);m=v>m?v-1:n.length;break}}}return s}function b(e,t){if(!t.length)return e;const r=t.slice().sort((e,t)=>t.range.start-e.range.start);let o=e;for(const{text:a,range:s}of r)o=o.slice(0,s.start)+a+o.slice(s.end);return o}class E{constructor(e=g){this._disposables=[],this._escapes=[],this._unescapes=[];const{_escapes:t,_unescapes:r}=this;e({createSyntax(e){return{...this,syntax:e}},escape(e,r,o,a){return t.push({start:e,end:r,mapFn:o,isVariable:a,syntax:this.syntax||e}),this},unescape(e,t,o,a){return r.push({start:e,end:t,mapFn:o,isVariable:a,syntax:this.syntax||e}),this}})}getMappings(e,t,r){return v(e,this._escapes,t,r)}getRevertMappings(e,t){return v(e,this._unescapes,t)}getDetectedMappings(e,t,r){return v(e,this._escapes,t,r,!0)}getEscapedText(e,t){return b(e,this.getMappings(e,t))}getUnescapedText(e,t){return b(e,this.getRevertMappings(e,t))}hasDetectedMappings(e,t,r){return this.getDetectedMappings(e,t,r).length>0}addDisposable(e){this._disposables.push(e)}dispose(){for(const e of this._disposables)e.dispose()}}},56211:(e,t,r)=>{"use strict";r.d(t,{vl:()=>a});var o=r(61578);class a extends o.j{constructor(e={}){super(),this._options=e,this._listeners=[],this.on=this.addEventListener.bind(this),this.once=(e,t=0)=>{const r=this.on(t=>{const o=e(t);return r.dispose(),o},t);return r},this.un=e=>{const t=this._listeners.findIndex(([t])=>t===e);t>=0&&this._listeners.splice(t,1),0===this._listeners.length&&this._options.onLastListenerRemove&&this._options.onLastListenerRemove()},this.event=this.on}addEventListener(e,t=0){const r=this._listeners.findIndex(([e,r])=>r<t);return this._listeners.splice(r<0?this._listeners.length:r,0,[e,t]),1===this._listeners.length&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(),{dispose:()=>this.un(e)}}fire(e){if(!this.isDisposed()){const r=[...this._listeners];for(const[o]of r)try{o(e)}catch(t){}}}hasListeners(){return!!this._listeners.length}}o.j},51121:(e,t,r)=>{"use strict";r.d(t,{$$:()=>f,Os:()=>m});var o=r(92882),a=r(26230),s=r(21944);const n=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr","vk-snippet-end"],i=new o.H(n),l=new a.X(i);const d=new Set(["onclick","onload","onchange","onsubmit","onmouseover","onkeydown","onerror"]),c=new Set(["script","style","xmp"]);const u=e=>{let t=e.indexOf("&");for(;-1!==t;){if(-1!==e.indexOf(";",t))return!0;t=e.indexOf("&",t+1)}return!1};function p(e,t,r){let o=e.tagName.toLowerCase();"html"===o&&(o="div");const a=`<${o} ${t}="${r}"/>`,s=function(e){let t;switch(null===e||void 0===e?void 0:e.toLowerCase()){case"tr":t=document.createElement("table");break;case"td":t=document.createElement("tr");break;case"head":case"body":t=document.createElement("html");break;case"documenttype":case"html":{const e=document.implementation.createHTMLDocument();for(const t of[...e.childNodes])t.remove();return e}default:t=document.createElement("div")}return t}(o);if(s instanceof Document)return;s.innerHTML=a;const n=s.querySelector(o);if(!n)throw new Error("targetElement is not defined");const i=n.getAttributeNode(t);i&&e.setAttributeNode(i.cloneNode())}function m(e,t,r){try{o=t,(a=e.tagName)&&c.has(a.toLowerCase())||d.has(o.toLowerCase())||u(r)?p(e,t,r):e.setAttribute(t,r)}catch{p(e,t,r)}var o,a}function h(e,t=!0){const r=e.content;switch(e.type){case s.Z.ROOT:{const r=document.implementation.createHTMLDocument();for(const e of[...r.childNodes])r.removeChild(e);if(t)for(const t of e.children)r.appendChild(h(t));return r}case s.Z.DOCTYPE:return(new DOMParser).parseFromString(`<!DOCTYPE${e.content}>`,"text/html").doctype;case s.Z.COMMENT:return document.createComment(r||"");case s.Z.ELEMENT:if(e.tag){const r=document.createElement(e.tag);if(Object.defineProperty(r,"$$tagName",{enumerable:!1,configurable:!1,value:e.tag}),e.attributes)for(const t of e.attributeNames){const a=e.attributes[t];try{m(r,t,"string"===typeof a?a:"")}catch(o){}}if(t)for(const t of e.children)r.appendChild(h(t));return r}return document.createTextNode("<");case s.Z.HTML:return function(e){if(e){const t=document.createElement("div");return t.insertAdjacentHTML("afterbegin",e),t.firstChild||document.createTextNode("")}return document.createTextNode("")}(r||"");default:throw new Error("unsupported node")}}function f(e){var t;return(t=e,l.parse(t)).roots.map(e=>h(e))}},29747:(e,t,r)=>{"use strict";let o;async function a(){return o||(o=await r.e(1729).then(r.t.bind(r,1729,19)).then(e=>e.default))}r.d(t,{F:()=>a})},69986:(e,t,r)=>{"use strict";r.d(t,{Km:()=>O,Sc:()=>q,Nh:()=>S});var o=r(1331),a=r(51121),s=r(29338),n=r(1528);const i="amp-custom";function l(e,t,r){for(const a of t)if(o.AH.isStyleRule(a)){const t=a.selectorText.split(/\+>~/).flatMap(e=>e.trim().split(" "));if(1===t.length&&t[0].trim().startsWith(".em-"))for(const s of a.style){if("important"===a.style.getPropertyPriority(s))for(const t of e.querySelectorAll(a.selectorText))if((0,o.uE)(t)){const e=t.style;for(const o of[...e])if(o.startsWith(s)){const a=r(o,e.getPropertyValue(o)),s=t.getAttribute("class");t.setAttribute("class",s?`${a} ${s}`:a),e.removeProperty(o)}}}}else o.AH.isMediaRule(a)&&l(e,a.cssRules,r)}function d(e,t){const r=t.sheet;if(r){const a=new Set;l(e,r.cssRules,(e,s)=>{const n=function(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}(e,s),i=[...r.cssRules],l=`.${n} { ${e}: ${s} }`;return i.find(e=>o.AH.isStyleRule(e)&&e.selectorText===`.${n}`)||a.has(l)||(a.add(l),t.innerHTML=`\n.${n} { ${e}: ${s} };\n${t.innerHTML}`),n}),a.size&&(t.innerHTML=`\n${[...a].join("\n")};\n${t.innerHTML}`)}else;const a=t.innerHTML,s=a.replace(/!important/g,"");a!==s&&(t.innerHTML=s)}const c='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',u="<!doctype html>";async function p(e,t={}){const r=document.createElement("amp-img"),s=await(0,o.rq)(e)||void 0,i=[];try{let l=e;for(;l&&(0,o.uE)(l);){const e=getComputedStyle(l);"none"===(null===e||void 0===e?void 0:e.display)&&(l.style.display="initial",i.push([l,l.style.display])),l=l.parentElement}const d=null!==s&&void 0!==s&&s.height?`${parseInt(s.height)}`:"",c=null!==s&&void 0!==s&&s.width?`${parseInt(s.width)}`:"",u=(0,n.xm)(e);let p=!1;if(u){const t=u.getAttribute("width");try{let r=c?`${c}px`:"";t||(u.setAttribute("width","720px"),r=getComputedStyle(e).width||""),u.setAttribute("width",!t||parseInt(t)>320?"320px":"720px"),r!==(getComputedStyle(e).width||"")&&(p=!0)}finally{t&&u.setAttribute("width",t||"")}}const m=e.src||e.srcset.split(",")[0];"100%"===e.style.width&&e.style.removeProperty("width"),"100%"===e.style.maxWidth&&e.style.removeProperty("max-width"),t={...(0,n.gu)(e),alt:e.alt,width:c,height:d,src:m,layout:p?"responsive":"fixed",...t};for(const e of Object.keys(t))(0,a.Os)(r,e,t[e])}finally{for(const[e,t]of i)e.style.display=t}return r}function m(e){const t=document.createElement("img"),{layout:r,height:o,...s}=(0,n.gu)(e),i="responsive"===r;for(const n of Object.keys(s))(0,a.Os)(t,n,s[n]);return i&&(t.style.maxWidth=s.width||"0px",t.style.width="100%"),t}var h=r(95583),f=r(65174),y=r(20414);function _(e,t){return`${y.gP}/${e.toLowerCase()}-${t}.js`}var g=r(29747);const v=new Map;const b=new Map;const E="$GLOBAL_ATTRS",T=new Map;async function w(){if(!T.size){var e;const t=null===(e=(await(0,g.F)()).attrLists.find(e=>e.name===E))||void 0===e?void 0:e.attrs;if(t)for(const e of t)T.set(e.name,e)}return T}function S(e){var t;return(0,o.vq)(e)&&(e.tagName.startsWith("AMP")||"FORM"===e.tagName||"TEMPLATE"===e.tagName&&"amp-mustache"===(null===(t=e.getAttribute("type"))||void 0===t?void 0:t.toLowerCase()))}function A(e,t,r){var a,s,n;if(t)if((0,o.vq)(e))switch(e.tagName.toLowerCase()){case"body":case r("script"):case"style":case"meta":case"title":return;case"head":case"html":l();break;default:i()||l()}else(0,o.wz)(e)?l():(0,o.ir)(e)&&(null!==(a=e.textContent)&&void 0!==a&&a.trim()||null!==(s=e.nextSibling)&&void 0!==s&&null!==(n=s.textContent)&&void 0!==n&&n.trim()&&(0,o.ir)(e.nextSibling))&&i();function i(){const r=t.compareDocumentPosition(e);if(!(8&r)){if(2&r)return t.insertBefore(e,t.firstChild),!0;if(4&r)return t.appendChild(e),!0}return!1}function l(){const o=[...e.childNodes];for(let e=o.length-1;e>=0;e--)A(o[e],t,r)}}async function C(e,t){const r=new Set,l=t.commit,c=e=>t.replaceSelectors(e.toLowerCase());if(t.replaceImages&&await async function(e,t){const r=[...e.querySelectorAll("img")],o=[];for(const s of r)o.push(p(s).then(e=>[s,e],()=>[s,void 0]));const a=[...e.querySelectorAll("picture")];for(const s of a){const e=s.querySelector("img");e?o.push(p(e).then(e=>[s,e],()=>[s,void 0])):o.push([s,void 0])}if(o.length){const e=await Promise.all(o);for(const[t,r]of e)r?t.replaceWith(r):t.remove();null===t||void 0===t||t()}}(e,l),t.injectExtensions){const C=t.replaceSelectors(y.Vq);if(!e.querySelector(C)){const P=t.createElementFn("script");P.setAttribute("src",y.zq),P.setAttribute("async","");(0,n.xy)(e).appendChild(P),null===l||void 0===l||l()}}t.injectRequiredTags&&((0,f.y)(e,t.createElementFn,c),function(e){const t=e.doctype;if(t){if((0,o.TM)(t)===u)return;const r=(new DOMParser).parseFromString(u,"text/html").doctype;e.replaceChild(r,t)}else{const t=(new DOMParser).parseFromString(u,"text/html").doctype;e.insertBefore(t,e.firstChild)}}(e),(0,s.R)(e),(0,h.C)(e),null===l||void 0===l||l()),t.replaceStylesAndLinks&&(!function(e){const t=(0,n.xy)(e),r=e.querySelectorAll('link[rel="stylesheet"]'),o=[...e.querySelectorAll("style")].filter(e=>!e.hasAttribute("amp4email-boilerplate"));if(1===o.length){const r=o[0];if(r.parentElement===t&&""===r.getAttribute(i))return void d(e,r)}const a=[];for(const s of o)a.push(s.innerHTML),s.remove();if(a.length){const r=e.createElement("style");r.innerHTML=`\n${a.join("")}\n`,r.setAttribute(i,""),t.append(r),d(e,r)}for(const s of r)s.remove()}(e),null===l||void 0===l||l());const m=await(0,g.F)(),E=await async function(){if(!v.size){const e=await(0,g.F)(),t=e.tags;for(let r=0;r<t.length;r++){const o=t[r],{selector:a,attrs:s,attrLists:n}=o,i=(null===n||void 0===n?void 0:n.flatMap(t=>e.attrLists.filter(({name:e})=>e===t).flatMap(e=>e.attrs)))||[];v.set(a,{...o,priority:r,attrs:new Map([...s,...i].map(e=>[e.name,e]))})}}return v}(),T=new Set(t.removeUnsupportedTags?e.querySelectorAll("*"):[]),S=new Map;for(let[q,O]of E)if(!O.deprecation){q=c(q);let j=[...e.querySelectorAll(q)].filter(e=>!S.has(e));O.unique&&j.length&&(j=[j[0]]),t.injectRequiredTags&&O.required&&!j.length&&(j=[...j,t.createElementFn(O.name)]);for(const k of j){if(t.injectRequiredAttributes&&k.getAttribute("on")&&!k.getAttribute("tabindex")&&k.setAttribute("tabindex","0"),t.removeUnsupportedStyles){let I=!1;for(const M of[...k.classList])M.startsWith("i-amphtml")&&(I=!0,k.classList.remove(M));I&&!k.classList.length&&k.removeAttribute("class")}const x=S.get(k);x&&x.priority>O.priority||S.set(k,O)}}null===l||void 0===l||l();for(const[U,D]of S){if(t.injectExtensions&&D.requiresExtension)for(const $ of D.requiresExtension)r.add($);const L=D.requiredParent?"$ROOT"===D.requiredParent?e:e.querySelector(D.requiredParent):null;!L||U.parentNode&&!t.moveInvalidTagPosition?U.parentNode||e.body.appendChild(U):L!==U.parentNode&&("HEAD"===D.name||(0,o.vq)(L)&&"HEAD"===L.tagName?L.insertBefore(U,L.firstChild):L.appendChild(U)),t.removeUnsupportedTags&&T.delete(U),null===l||void 0===l||l();const N=await w();if(t.removeUnsupportedAttributes||t.injectRequiredAttributes){const R=D.attrs,F=t.injectRequiredAttributes?new Set([...R].map(([e,t])=>t).filter(e=>e.required&&e.value)):void 0,G=U.getAttributeNames();for(const B of G){const H=R.get(B)||N.get(B);if(H){if("id"===B||"class"===B||"style"===B){null===F||void 0===F||F.delete(H);continue}if(t.removeUnsupportedAttributes){const Q=U.getAttribute(B);if(H.value&&H.value.indexOf(Q)<0){U.removeAttribute(B);continue}if(H.valueRegex){if(!new RegExp(H.valueRegex).test(Q)){U.removeAttribute(B);continue}}if(H.disallowedValueRegex){if(new RegExp(H.disallowedValueRegex).test(Q)){U.removeAttribute(B);continue}}const W=H.valueUrl;if(W)if(""===Q){if(!W.allowEmpty){U.removeAttribute(B);continue}}else if(Q.indexOf("\x3c!--")>0&&Q.indexOf("--\x3e")>0);else if(!W.allowRelative){if(Q.startsWith("#")||Q.startsWith("/")){U.removeAttribute(B);continue}{const V=W.protocol.length?W.protocol:["https"],K=Q.substring(0,Q.indexOf(":"));if(K){if(V.indexOf(K)<0){const z=V[0]+Q.substring(Q.indexOf(":"));if(!URL.canParse(z)){U.removeAttribute(B);continue}(0,a.Os)(U,B,z)}else if(!URL.canParse(Q)){U.removeAttribute(B);continue}}else{const X=V[0]+Q;if(!URL.canParse(X)){U.removeAttribute(B);continue}(0,a.Os)(U,B,X)}}}}null===F||void 0===F||F.delete(H)}else{if("id"===B||"class"===B||"style"===B)continue;t.removeUnsupportedAttributes&&U.removeAttribute(B)}}if(F)for(const Y of F)(0,a.Os)(U,Y.name,Y.value[0])}null===l||void 0===l||l()}t.moveInvalidTagPosition&&(A(e,e.body,c),null===l||void 0===l||l());for(const J of T)J.remove();if(null===l||void 0===l||l(),t.removeUnsupportedStyles){const Z=e.querySelectorAll("*"),ee=await async function(){if(!b.size){const e=await(0,g.F)();for(const t of e.declarations)b.set(t.name,t)}return b}();function te(e){const t=e.cssText.replaceAll(/\".*\"/g,"").replaceAll(/\'.*\'/g,"").replaceAll(/\/\*.*\*\/|(-moz-|-ms-|-o-|-webkit-)+\w+(?=:)/g,"").match(/[a-z-]+(?=:[^before|after|hover])/gi)||[];for(const r of t){if(!r)continue;const t=e.getPropertyValue(r);"important"===e.getPropertyPriority(r)&&e.setProperty(r,t);const o=ee.get(r);if(o){if(o.value)o.value.indexOf(t)<0&&e.removeProperty(r);else if(o.valueRegex){new RegExp(o.valueRegex).test(t)||e.removeProperty(r)}}else e.removeProperty(r)}null===l||void 0===l||l()}function re(e){return"CSSStyleRule"===e.constructor.name}function oe(e){return"CSSMediaRule"===e.constructor.name}function ae(e){const t=e.cssRules;for(let r=t.length-1;r>=0;r--){const o=t[r];re(o)?o.selectorText.indexOf("[")>=0||o.selectorText.indexOf(":")>=0?e.deleteRule(r):(te(o.style),o.style.cssText||e.deleteRule(r)):oe(o)?(ae(o),o.cssRules.length||e.deleteRule(r)):e.deleteRule(r)}}for(const ne of Z)if((0,o.uE)(ne)){const ie=ne.getAttribute("style");ie&&(te(ne.style),ne.style.length?ne.style.cssText!==ie&&ne.setAttribute("style",ne.style.cssText):ne.removeAttribute("style"))}const se=e.querySelector("style[amp-custom]");if(se){const le=se.sheet;le&&(ae(le),se.innerHTML=[...le.cssRules].map(e=>e.cssText).join("\n")),null===l||void 0===l||l()}}await async function(e,t,r){for(const{name:o,versions:a}of t){const t=r.replaceSelectors("amp-mustache"===o?`script[async][custom-template='${o}']`:`script[async][custom-element='${o}']`);if(!e.querySelector(t)){const t=(0,n.xy)(e),s=r.createElementFn("script"),i=_(o,a.findLast(e=>"latest"!==e)||"v0");s.setAttribute("async",""),s.setAttribute("amp-mustache"===o?"custom-template":"custom-element",o),s.setAttribute("src",i),t.appendChild(s),t.appendChild(e.createTextNode("\n"))}}}(e,m.extensions.filter(({name:e})=>r.has(e)),t)}function P(e,t){return Object.keys(t).reduce((e,r)=>e.replaceAll(r,t[r]),e)}function q(e,t={}){const{correct:r=!0,injectExtensions:o=!0,mappedTags:a={}}=t;return C(e,{replaceImages:r,replaceStylesAndLinks:r,injectRequiredTags:r,injectExtensions:o,formsAsAmpForms:o,injectRequiredAttributes:r,moveInvalidTagPosition:r,removeUnsupportedTags:r,removeUnsupportedAttributes:r,removeUnsupportedStyles:r,createElementFn:t=>e.createElement(a[t.toLowerCase()]||t),replaceSelectors:e=>P(e.toLowerCase(),a),commit:t.commit})}function O(e,t={}){const{correct:r=!0,removeExtensions:a=!0,mappedTags:l={}}=t,d=t.commit,p=t=>e.createElement(l[t.toLowerCase()]||t),h=e=>P(e,l);if(r){!function(e,t){const r=[...e.querySelectorAll("amp-img")];for(const o of r)o.replaceWith(m(o));r.length&&(null===t||void 0===t||t())}(e),function(e){const t=e.doctype;if(t&&(0,o.TM)(t).toLowerCase()===u){const r=(new DOMParser).parseFromString(c,"text/html").doctype;e.replaceChild(r,t)}}(e),function(e){const t=e.querySelector(`style[${i}]`);t&&t.removeAttribute(i)}(e),(0,s.C)(e);const t=(0,n.ep)(e);t.removeAttribute("\u26a14email"),t.removeAttribute("data-css-strict"),null===d||void 0===d||d()}a&&(!function(e,t){const r=e.querySelectorAll("*"),o=e.querySelectorAll(t.replaceSelectors("script[src]"));for(const s of o){var a;null!==(a=s.getAttribute("src"))&&void 0!==a&&a.startsWith(y.gP)&&s.remove()}for(const s of r)S(s)&&"FORM"!==s.tagName&&s.remove()}(e,{formsAsAmpForms:t.removeExtensions,createElementFn:p,replaceSelectors:h}),null===d||void 0===d||d())}},29338:(e,t,r)=>{"use strict";r.d(t,{C:()=>s,R:()=>a});var o=r(1528);function a(e){const t=(0,o.xy)(e);if(!e.querySelector("style[amp4email-boilerplate]")){const r=e.createElement("style");r.setAttribute("amp4email-boilerplate",""),r.innerHTML="body{visibility:hidden}",t.prepend(r)}}function s(e){const t=e.querySelector("style[amp4email-boilerplate]");t&&t.remove()}},20414:(e,t,r)=>{"use strict";r.d(t,{Vq:()=>s,gP:()=>o,zq:()=>a});const o="https://cdn.ampproject.org/v0",a=`${o}.js`,s=`script[src='${a}']`},95583:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var o=r(1528);function a(e){const t=e.querySelectorAll("meta");for(const o of t){const e=o.getAttribute("charset");if(e)return void("utf-8"!==e&&o.setAttribute("charset","utf-8"))}const r=(0,o.xy)(e),a=e.createElement("meta");a.setAttribute("charset","utf-8"),r.insertBefore(a,r.firstChild)}},65174:(e,t,r)=>{"use strict";function o(e,t,r){const o=r('script:not([type="application/ld+json"])'),a=e.querySelectorAll(o);for(const n of a){var s;null!==(s=n.getAttribute("src"))&&void 0!==s&&s.startsWith("https://cdn.ampproject.org/")||n.closest("amp-state")&&"application/json"===n.getAttribute("type")||n.remove()}}r.d(t,{y:()=>o})},1528:(e,t,r)=>{"use strict";function o(e){let t=e.documentElement;return t||(t=e.createElement("html"),e.appendChild(t)),t}function a(e){let t=e.head;if(!t){t=e.createElement("head");const r=o(e);r.insertBefore(t,r.firstChild)}return t}function s(e){const t=Object.create(null),r=e.getAttributeNames();for(const o of r)t[o]=e.getAttribute(o);return t}function n(e){for(const t of document.querySelectorAll("iframe"))if(t.contentDocument===e.ownerDocument)return t}r.d(t,{ep:()=>o,gu:()=>s,xm:()=>n,xy:()=>a})},92882:(e,t,r)=>{"use strict";r.d(t,{H:()=>o});class o{constructor(e){this._voidElements=void 0,this._voidElements=new Set(e)}isVoidElement(e){return this._voidElements.has(e.toLowerCase())}}},26230:(e,t,r)=>{"use strict";r.d(t,{X:()=>A});var o=r(21987);let a=function(e){return e[e.StartCommentTag=0]="StartCommentTag",e[e.Comment=1]="Comment",e[e.EndCommentTag=2]="EndCommentTag",e[e.StartTagOpen=3]="StartTagOpen",e[e.StartTagClose=4]="StartTagClose",e[e.StartTagSelfClose=5]="StartTagSelfClose",e[e.StartTag=6]="StartTag",e[e.EndTagOpen=7]="EndTagOpen",e[e.EndTagClose=8]="EndTagClose",e[e.EndTag=9]="EndTag",e[e.DelimiterAssign=10]="DelimiterAssign",e[e.AttributeName=11]="AttributeName",e[e.AttributeValue=12]="AttributeValue",e[e.StartDoctypeTag=13]="StartDoctypeTag",e[e.Doctype=14]="Doctype",e[e.EndDoctypeTag=15]="EndDoctypeTag",e[e.Content=16]="Content",e[e.Whitespace=17]="Whitespace",e[e.Unknown=18]="Unknown",e[e.Script=19]="Script",e[e.Styles=20]="Styles",e[e.EOS=21]="EOS",e[e.AdvancedStart=100]="AdvancedStart",e[e.AdvancedEnd=101]="AdvancedEnd",e}({});class s{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===_||e===g||e===h||e===y||e===f)>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 n="!".charCodeAt(0),i="-".charCodeAt(0),l="<".charCodeAt(0),d=">".charCodeAt(0),c="/".charCodeAt(0),u="=".charCodeAt(0),p='"'.charCodeAt(0),m="'".charCodeAt(0),h="\n".charCodeAt(0),f="\r".charCodeAt(0),y="\f".charCodeAt(0),_=" ".charCodeAt(0),g="\t".charCodeAt(0),v={"text/x-handlebars-template":!0,"text/html":!0};function b(e,t=0,r=o.S5.WithinContent,h=!1){const f=new s(e,t);let y,_,g,b,E,T=r,w=0,S=a.Unknown;function A(){return f.advanceIfRegExp(/^[_:a-zA-Z][_:\w-.\d]*/).toLowerCase()}function C(e,t,r){return S=t,w=e,y=r,t}function P(){const e=f.pos();if(f.eos())return C(e,a.EOS);let t;switch(T){case o.S5.WithinComment:return f.advanceIfChars([i,i,d])?(T=o.S5.WithinContent,C(e,a.EndCommentTag)):(f.advanceUntilChars([i,i,d]),C(e,a.Comment));case o.S5.WithinDoctype:return f.advanceIfChar(d)?(T=o.S5.WithinContent,C(e,a.EndDoctypeTag)):(f.advanceUntilChar(d),C(e,a.Doctype));case o.S5.WithinContent:if(f.advanceIfChar(l)){if(!f.eos()&&f.peekChar()===n){if(f.advanceIfChars([n,i,i]))return T=o.S5.WithinComment,C(e,a.StartCommentTag);if(f.advanceIfRegExp(/^!doctype/i))return T=o.S5.WithinDoctype,C(e,a.StartDoctypeTag)}return f.advanceIfChar(c)?(T=o.S5.AfterOpeningEndTag,C(e,a.EndTagOpen)):(T=o.S5.AfterOpeningStartTag,C(e,a.StartTagOpen))}return f.advanceUntilChar(l),C(e,a.Content);case o.S5.AfterOpeningEndTag:return A().length>0?(T=o.S5.WithinEndTag,C(e,a.EndTag)):f.skipWhitespace()?C(e,a.Whitespace,"Tag name must directly follow the open bracket."):(T=o.S5.WithinEndTag,f.advanceUntilChar(d),e<f.pos()?C(e,a.Unknown,"End tag name expected."):P());case o.S5.WithinEndTag:if(f.skipWhitespace())return C(e,a.Whitespace);if(f.advanceIfChar(d))return T=o.S5.WithinContent,C(e,a.EndTagClose);if(h&&f.peekChar()===l)return T=o.S5.WithinContent,C(e,a.EndTagClose,"Closing bracket missing.");t="Closing bracket expected.";break;case o.S5.AfterOpeningStartTag:return g=A(),E=void 0,b=void 0,g.length>0?(_=!1,T=o.S5.WithinTag,C(e,a.StartTag)):f.skipWhitespace()?C(e,a.Whitespace,"Tag name must directly follow the open bracket."):(T=o.S5.WithinTag,f.advanceUntilChar(d),e<f.pos()?C(e,a.Unknown,"Start tag name expected."):P());case o.S5.WithinTag:return f.skipWhitespace()?(_=!0,C(e,a.Whitespace)):_&&(b=f.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase(),b.length>0)?(T=o.S5.AfterAttributeName,_=!1,C(e,a.AttributeName)):f.advanceIfChars([c,d])?(T=o.S5.WithinContent,C(e,a.StartTagSelfClose)):f.advanceIfChar(d)?(T="script"===g?E&&v[E]?o.S5.WithinContent:o.S5.WithinScriptContent:"style"===g?o.S5.WithinStyleContent:o.S5.WithinContent,C(e,a.StartTagClose)):h&&f.peekChar()===l?(T=o.S5.WithinContent,C(e,a.StartTagClose,"Closing bracket missing.")):(f.advance(1),C(e,a.Unknown,"Unexpected character in tag."));case o.S5.AfterAttributeName:return f.skipWhitespace()?(_=!0,C(e,a.Whitespace)):f.advanceIfChar(u)?(T=o.S5.BeforeAttributeValue,C(e,a.DelimiterAssign)):(T=o.S5.WithinTag,P());case o.S5.BeforeAttributeValue:if(f.skipWhitespace())return C(e,a.Whitespace);let r=f.advanceIfRegExp(/^[^\s"'`=<>]+/);if(r.length>0)return f.peekChar()===d&&f.peekChar(-1)===c&&(f.goBack(1),r=r.substr(0,r.length-1)),"type"===b&&(E=r),T=o.S5.WithinTag,_=!1,C(e,a.AttributeValue);const s=f.peekChar();return s===m||s===p?(f.advance(1),f.advanceUntilChar(s)&&f.advance(1),"type"===b&&(E=f.getSource().substring(e+1,f.pos()-1)),T=o.S5.WithinTag,_=!1,C(e,a.AttributeValue)):(T=o.S5.WithinTag,_=!1,P());case o.S5.WithinScriptContent:let y=1;for(;!f.eos();){const t=f.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(0===t.length)return f.goToEnd(),C(e,a.Script);if("\x3c!--"===t)1===y&&(y=2);else if("--\x3e"===t)y=1;else if("/"!==t[1])2===y&&(y=3);else{if(3!==y){f.goBack(t.length);break}y=2}}return T=o.S5.WithinContent,e<f.pos()?C(e,a.Script):P();case o.S5.WithinStyleContent:return f.advanceUntilRegExp(/<\/style/i),T=o.S5.WithinContent,e<f.pos()?C(e,a.Styles):P()}return f.advance(1),T=o.S5.WithinContent,C(e,a.Unknown,t)}return{scan:function(){const e=f.pos(),t=P();return t===a.EOS||e!==f.pos()||h&&(t===a.StartTagClose||t===a.EndTagClose)?t:(f.advance(1),C(e,a.Unknown))},getTokenType:()=>S,getTokenOffset:()=>w,getTokenLength:()=>f.pos()-w,getTokenEnd:()=>f.pos(),getTokenText:()=>f.getSource().substring(w,f.pos()),getScannerState:()=>T,getTokenError:()=>y}}var E=r(92882),T=r(21944);function w(e){if("string"===typeof e){const t=e.startsWith("'")||e.startsWith('"')?1:0,r=e.endsWith("'")||e.endsWith('"')?e.length-1:e.length;return e.substring(t,r)}return e}class S{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,r){if(!this.node){const o=this.node=new T.b(e,this.text.length,[],r);o.type=this.type,o.startTagEnd=t,this.replaces=[]}}finish(e,t){const r=this.replaces,o=this.node,a=e+(t||0);if(r){for(const e of r){const t=e.parent;if(!t)throw new Error("parent not defined");const r=t.children.indexOf(e);t.children.splice(r,1)}this.replaces=void 0}if(o){const r=o.parent;if(!r)throw new Error("parent not defined");r.children.push(o),o.closed=void 0!==t,o.endTagStart=e,o.end=a,o.content=this.text.substring(o.startTagEnd,e),this.node=void 0}}}class A{constructor(e){this.dataManager=e}parse(e,t=[]){var r;const o=b(e,void 0,void 0,!0),s=new T.b(0,e.length,[],void 0);s.type=T.Z.ROOT;let n,i=s,l=-1,d=null,c=o.scan();const u=()=>{if(!i.tag){const t=i.parent.children,r=t[t.length-2],o=e.substring(i.start,i.end);(null===r||void 0===r?void 0:r.type)===T.Z.HTML?(r.content=(r.content||"")+o,r.end=i.end,t.splice(t.length-1,1)):(i.type=T.Z.HTML,i.content=o,i.children=[]),i.type=T.Z.HTML}i=i.parent},p=new S(e,T.Z.COMMENT),m=new S(e,T.Z.DOCTYPE),h=e=>{i.children.push(e)};for(;c!==a.EOS;){switch(c){case a.StartDoctypeTag:m.start(o.getTokenOffset(),o.getTokenEnd(),i);break;case a.EndDoctypeTag:{const t=i.lastChild,r=m.node;if(!r)throw new Error("");const a=t?t.end:void 0!==i.startTagEnd?i.startTagEnd:i.start;if(a!==r.start){const t=e.substring(a,r.start);if(t){const e=new T.b(a,r.start,[],i);e.type=T.Z.HTML,e.content=t,h(e)}}m.finish(o.getTokenOffset(),o.getTokenLength());break}case a.StartCommentTag:p.start(o.getTokenOffset(),o.getTokenEnd(),i);break;case a.EndCommentTag:{const t=i.lastChild,r=p.node;if(!r)throw new Error("");const a=t?t.end:void 0!==i.startTagEnd?i.startTagEnd:i.start;if(a!==r.start){const t=e.substring(a,r.start);if(t){const e=new T.b(a,r.start,[],i);e.type=T.Z.HTML,e.content=t,h(e)}}p.finish(o.getTokenOffset(),o.getTokenLength());break}case a.StartTagOpen:const t=i.lastChild,r=new T.b(o.getTokenOffset(),e.length,[],i),s=t?t.end:void 0!==i.startTagEnd?i.startTagEnd:i.start;if(s!==r.start){const t=e.substring(s,r.start);if(t){const e=new T.b(s,r.start,[],i);e.type=T.Z.HTML,e.content=t,h(e)}}h(r),i=r;break;case a.StartTag:i.tag=o.getTokenText();break;case a.StartTagClose:i.parent&&(i.end=o.getTokenEnd(),o.getTokenLength()?(i.startTagEnd=o.getTokenEnd(),i.tag&&this.dataManager.isVoidElement(i.tag)&&(i.closed=!0,u())):u());break;case a.StartTagSelfClose:i.parent&&(i.closed=!0,i.end=o.getTokenEnd(),i.startTagEnd=o.getTokenEnd(),u());break;case a.EndTagOpen:l=o.getTokenOffset(),n=void 0;break;case a.EndTag:n=o.getTokenText().toLowerCase();break;case a.EndTagClose:let c=i;for(;!c.isSameTag(n)&&c.parent;)c=c.parent;if(c.parent){const t=i.lastChild,r=t?t.end:void 0===i.startTagEnd?i.start:i.startTagEnd;if(r!==l){const t=e.substring(r,l);if(t){const e=new T.b(r,l,[],i);e.type=T.Z.HTML,e.content=t,h(e)}}for(;i!==c;)i.end=l,i.closed=!1,u();i.closed=!0,i.endTagStart=l,i.end=o.getTokenEnd(),u()}break;case a.AttributeName:{d=o.getTokenText();let e=i.attributes;e||(i.attributes=e={}),e[d]=null;break}case a.AttributeValue:{const e=o.getTokenText(),t=i.attributes;t&&d&&(t[d]=w(e),d=null);break}}c=o.scan()}for(;i.parent;)i.end=e.length,i.closed=!1,u();p.hasNode,p.finish(e.length);const f=(null===(r=s.lastChild)||void 0===r?void 0:r.end)||0;if(f<e.length){const t=e.substring(f);if(t){const r=new T.b(f,e.length,[],s);r.type=T.Z.HTML,r.content=t,h(r)}}return{roots:s.children,findNodeBefore:s.findNodeBefore.bind(s),findNodeAt:s.findNodeAt.bind(s)}}}const C=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr","vk-snippet-end"];new A(new E.H(C))},21944:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a,b:()=>n});var o=r(43083);let a=function(e){return e[e.HTML=0]="HTML",e[e.ELEMENT=1]="ELEMENT",e[e.ROOT=2]="ROOT",e[e.COMMENT=3]="COMMENT",e[e.DOCTYPE=4]="DOCTYPE",e[e.ADVANCED=5]="ADVANCED",e}({});const s=e=>e.type===a.HTML?e.start-1:e.start;class n{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}get root(){return this.parent?this.parent.root:this}constructor(e,t,r,o){this.start=e,this.end=t,this.children=r,this.parent=o,this.content=void 0,this.type=a.ELEMENT,this.tag=void 0,this.closed=!1,this.startTagEnd=void 0,this.endTagStart=void 0,this.attributes=void 0,this.createdBy=void 0,this.isDirty=void 0}isSameTag(e){return void 0===this.tag?void 0===e:void 0!==e&&this.tag.length===e.length&&this.tag.toLowerCase()===e}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(e){const t=(0,o.i8)(this.children,t=>e<=s(t))-1;if(t>=0){const r=this.children[t];if(e>s(r)){if(e<r.end)return r.findNodeBefore(e);const t=r.lastChild;return t&&t.end===r.end?r.findNodeBefore(e):r}}return this}findNodeAt(e){const t=(0,o.i8)(this.children,t=>e<=s(t))-1;if(t>=0){const o=this.children[t];if(e>=s(o)&&e<=((r=o).type===a.HTML?r.end+1:r.end))return o.findNodeAt(e)}var r;return this}find(e){if(e(this))return this;for(const t of this.children){const r=t.find(e);if(r)return r}}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 r=t?[this,...this.parents()]:this.parents();for(let o=r.length-1;o>=0;o--){const t=r[o];if(e(t))return t}}contains(e){return Boolean(e.closest(e=>e===this))}clone(e=this.parent,t=this.start,r=!0){const o=this.start-t,a=new n(t,this.end-o,[],e);return a.children=r?this.children.map(e=>e.clone(a,e.start-o)):[],a.attributes={...this.attributes},a.closed=this.closed,a.content=this.content,a.startTagEnd=this.startTagEnd,a.endTagStart=this.endTagStart,a.tag=this.tag,a.type=this.type,a}}},43083:(e,t,r)=>{"use strict";r.d(t,{Ll:()=>n,i8:()=>i,n1:()=>o});r(21944);const o=new Set(["area","br","col","embed","hr","img","input","link","meta","param","vk-snippet-end"]);const a=Object.create(null);function s(e,t){const r=a[e]||(a[e]=Object.create(null));let o=r[t];if("boolean"!==typeof o){const a=document.createElement(e)[t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(e,t)=>t.toUpperCase())];o=r[t]="undefined"!==typeof a&&"boolean"!==typeof a}return o}function n(e,t){if(e.start!==e.startTagEnd||t){var r;const t=(null===(r=e.tag)||void 0===r?void 0:r.toLowerCase())||"div",o=function(e){var t;const r=null===(t=e.tag)||void 0===t?void 0:t.toLowerCase();let o="";if(r){const t=e.attributes;if(t){const e=Object.keys(t);for(const a of e){const e=null===t[a]?"":t[a];"string"===typeof e&&(o+=""!==e||"em"===a||s(r,a)?` ${a}="${e.replaceAll('"',"'")}"`:` ${a}`)}}}return o}(e);return"vk-snippet-end"===t?`<${t}${o}/>`:`<${t}${o}>`}return""}function i(e,t){let r=0,o=e.length;if(0===o)return 0;for(;r<o;){const a=Math.floor((r+o)/2);t(e[a])?o=a:r=a+1}return r}},45386:(e,t,r)=>{"use strict";r.d(t,{R:()=>l});var o=r(56211),a=r(86451),s=r(11628),n=r(61578);class i extends o.vl{constructor(e={}){super(),this._mutationSummary=void 0,this._mutationSummary=new a.MutationSummary({...e,observeOwnChanges:!0,callback:e=>this.fire(e),queries:[{all:!0}]})}dispose(){this._mutationSummary.disconnect(),super.dispose()}trigger(e){const t=this._mutationSummary.takeSummaries();return(e||null!==t&&void 0!==t&&t.length)&&this.fire(t||[]),t}}class l extends n.j{_nextTickHandler(){(0,s.A)(()=>{this.trigger(),this._summaries.length&&(this._innerEmitter.hasListeners()?this._innerEmitter.fire(this._summaries):this._lostEmitter.fire(this._summaries),this._summaries=[])},Number.MAX_VALUE)}constructor(e={}){super(),this._mutationEmitter=void 0,this._innerEmitter=this.addDisposable(new o.vl({onFirstListenerAdd:()=>{this._nextTickHandler()}})),this._lostEmitter=this.addDisposable(new o.vl),this._paused=0,this._stopped=0,this._summaries=[],this.onMutate=this._innerEmitter.event,this.onLost=this._lostEmitter.event,this.onNativeMutate=void 0,this._mutationEmitter=this.addDisposable(new i(e)),this.onNativeMutate=this._mutationEmitter.event,this.addDisposable(this._mutationEmitter.event(e=>{this._stopped||(this._paused?this._lostEmitter.fire(e):(this._summaries.push(...e),(0,s.A)(()=>{this._summaries.length&&!this._innerEmitter.hasListeners()&&(this._lostEmitter.fire(this._summaries),this._summaries=[])},Number.MAX_VALUE)))}))}get isStoped(){return this._paused>0||this._stopped>0}stop(){this._mutationEmitter.trigger(),this._stopped++}start(){this._mutationEmitter.trigger(),this._stopped--}pause(){this._mutationEmitter.trigger(),this._paused++}resume(){this._mutationEmitter.trigger(),this._paused--}trigger(){this._mutationEmitter.trigger(!0)}}},22148:(e,t,r)=>{"use strict";r.d(t,{f:()=>a});var o=r(1331);function a(e){for(const a of e){if(a.removed)for(const e of a.removed){const r=a.getOldParentNode(e),o=a.getOldPreviousSibling(e);if(r){var t;const a=null!==(t=null===o||void 0===o?void 0:o.nextSibling)&&void 0!==t?t:null;r.insertBefore(e,a)}}if(a.added)for(const e of a.added)e.parentNode&&e.parentNode.removeChild(e);if(a.reordered)for(const e of a.reordered){const t=a.getOldParentNode(e),o=a.getOldPreviousSibling(e);if(t){var r;const a=null!==(r=null===o||void 0===o?void 0:o.nextSibling)&&void 0!==r?r:null;t.insertBefore(e,a)}}if(a.attributeChanged)for(const e of Object.keys(a.attributeChanged))for(const t of a.attributeChanged[e]){const r=a.getOldAttribute(t,e);null==r?t.removeAttribute(e):t.setAttribute(e,r)}if(a.characterDataChanged)for(const e of a.characterDataChanged)((0,o.ir)(e)||(0,o.Cn)(e)||(0,o.Cn)(e))&&(e.data=a.getOldCharacterData(e))}}},11628:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var o=r(56211);let a=0;const s=new Array(1e3);function n(){for(let e=0;e<a;e+=2){(0,s[e])(...s[e+1]),s[e]=void 0,s[e+1]=void 0}a=0}const i=function(){let e=0;const t=new MutationObserver(n),r=document.createTextNode("");return t.observe(r,{characterData:!0}),()=>{r.data=String(e=++e%2)}}();const l=new o.vl({onFirstListenerAdd:function e(){!function(e,...t){s[a]=e,s[a+1]=t,a+=2,2===a&&i()}(()=>{l.hasListeners()&&(l.fire(),e())})}}),d=l.once;const c=d},86080:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>n,oK:()=>l});const o=(e,t)=>t.some(t=>t instanceof RegExp?t.test(e):t===e),a=new Set(["https:","http:","file:"]),s=e=>{const t=e.indexOf(":");if(t<=0)return!1;const r=e.substring(0,t+1);return!!/^[a-zA-Z][a-zA-Z0-9+\-.]*:$/.test(r)&&(r.endsWith(":")&&!r.includes(".")&&!a.has(r))};function n(e,t){if(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},!e)return"";if(i(e)&&(e=l(e)),"string"!==typeof t.defaultProtocol||t.defaultProtocol.endsWith(":")||(t.defaultProtocol=`${t.defaultProtocol}:`),e=e.trim(),/^data:/i.test(e)||s(e))return e;const r=e.startsWith("//"),a=!r&&/^\.*\//.test(e);let n,d;try{n=a?new URL(e,"undefined"!==typeof document?document.baseURI:"http://localhost/").toString():e}catch{n=e}try{d=new URL(n)}catch{const t=document.createElement("a");t.href=e,d=new URL(t.href)}if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===d.protocol&&(d.protocol="http:"),t.forceHttps&&"http:"===d.protocol&&(d.protocol="https:"),t.stripAuthentication&&(d.username="",d.password=""),t.stripHash?d.hash="":t.stripTextFragment&&(d.hash=d.hash.replace(/#?:~:text.*?$/i,"")),d.pathname){const e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g;let t=0,r="";for(;;){const o=e.exec(d.pathname);if(!o)break;const a=o.index;r+=d.pathname.slice(t,a).replace(/\/{2,}/g,"/"),r+=o[0],t=a+o[0].length}r+=d.pathname.slice(t).replace(/\/{2,}/g,"/"),d.pathname=r;try{d.pathname=decodeURI(d.pathname)}catch{}}if(t.removeDirectoryIndex){let e=d.pathname.split("/");const r=e[e.length-1];Array.isArray(t.removeDirectoryIndex)&&o(r,t.removeDirectoryIndex)&&(e=e.slice(0,-1),d.pathname=e.join("/")+"/")}if(t.stripWWW&&/^www\.(?!www\.)[a-z\d\-]+(\.[a-z.\-]{2,63})+$/.test(d.hostname||"")&&(d.hostname=d.hostname.replace(/^www\./,"")),Array.isArray(t.removeQueryParameters))for(const s of[...d.searchParams.keys()])o(s,t.removeQueryParameters)&&d.searchParams.delete(s);if(t.sortQueryParameters){d.searchParams.sort();try{d.search=decodeURIComponent(d.search)}catch{}}t.removeTrailingSlash&&(d.pathname=d.pathname.replace(/\/$/,"")),t.removeExplicitPort&&d.port&&(d.port="");let c=d.toString();return t.removeSingleSlash||"/"!==d.pathname||e.endsWith("/")||""!==d.hash||(c=c.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===d.pathname)&&""===d.hash&&t.removeSingleSlash&&(c=c.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(c=c.replace(/^https?:\/\//,"//")),c}function i(e){if(!e)return!1;const t=e[0];return e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||function(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}(t)}function l(e){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")||!i(e)||/^(mailto:|tel:|fax:|sms:|geo:|blob:|data:|javascript:)/i.test(e))return e;if(e.startsWith("/"))return window.location.origin+e;const t=window.location.href,r=t.lastIndexOf("/");return(-1!==r?t.slice(0,r+1):t+"/")+e}},74778:(e,t,r)=>{"use strict";r.d(t,{RQ:()=>s,cM:()=>o});let o=function(e){return e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain",e}({});class a{constructor(e={}){this.baseUrl="https://api.emailmaker.ru/wp-json",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={[o.Json]:e=>null===e||"object"!==typeof e&&"string"!==typeof e?e:JSON.stringify(e),[o.Text]:e=>null!==e&&"string"!==typeof e?JSON.stringify(e):e,[o.FormData]:e=>Object.keys(e||{}).reduce((t,r)=>{const o=e[r];return t.append(r,o instanceof Blob?o:"object"===typeof o&&null!==o?JSON.stringify(o):`${o}`),t},new FormData),[o.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))},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||{}}}}async request({body:e,secure:t,path:r,type:a,query:s,format:n,baseUrl:i,cancelToken:l,extraQuery:d,proxyHandler:c,...u}){const p=("boolean"===typeof t?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},m=this.mergeRequestParams(u,p);d&&(s=s?{...s,...d}:d);const h=s&&this.toQueryString(s),f=this.contentFormatters[a||o.Json],y=n||m.format,_=`${i||this.baseUrl||""}${r}${h?`?${h}`:""}`,g=c?c(_,{body:e,secure:t,path:r,type:a,query:s,format:n,baseUrl:i,cancelToken:l,extraQuery:d,proxyHandler:c,...u}):_,v=new Request(g,{...m,headers:{...m.headers||{},...a&&a!==o.FormData?{"Content-Type":a}:{}},signal:(l?this.createAbortSignal(l):m.signal)||null,body:"undefined"===typeof e||null===e?null:f(e)});return this.customFetch(v).then(async e=>{const t=e;t.data=null,t.error=null,t.meta={request:v,response:t};const r=y?await e[y]().then(e=>(t.ok?t.data=e:t.error={data:e},t)).catch(e=>(t.error=e,t)):t;return l&&this.abortControllers.delete(l),r})}}class s extends a{constructor(...e){super(...e),this.limits={get_limits:(e,t={})=>this.request({path:"/limits/v1",method:"GET",query:e,...t}),stats_list:(e={})=>this.request({path:"/limits/v1/stats",method:"GET",...e}),stats_detail:({type:e,...t},r={})=>this.request({path:`/limits/v1/stats/${e}`,method:"GET",...r}),warnings_list:(e={})=>this.request({path:"/limits/v1/warnings",method:"GET",...e})},this.unisenderProxy={get_unisender_proxy:(e,t={})=>this.request({path:"/unisender-proxy/v1",method:"GET",query:e,...t}),create_message_create:(e={})=>this.request({path:"/unisender-proxy/v1/create-message",method:"POST",...e})},this.bdpwr={get_bdpwr:(e,t={})=>this.request({path:"/bdpwr/v1",method:"GET",query:e,...t}),reset_password_create:(e={})=>this.request({path:"/bdpwr/v1/reset-password",method:"POST",...e}),set_password_create:(e={})=>this.request({path:"/bdpwr/v1/set-password",method:"POST",...e}),validate_code_create:(e={})=>this.request({path:"/bdpwr/v1/validate-code",method:"POST",...e})},this.corsProxy={get_cors_proxy:(e,t={})=>this.request({path:"/cors-proxy/V1",method:"GET",query:e,...t}),get_list:(e,t={})=>this.request({path:"/cors-proxy/V1/get",method:"GET",query:e,...t})},this.saveFile={get_save_file:(e,t={})=>this.request({path:"/save-file/v1",method:"GET",query:e,...t}),ai_create:(e,t={})=>this.request({path:"/save-file/v1/ai",method:"POST",body:e,type:o.UrlEncoded,...t}),ai_status_list:(e,t={})=>this.request({path:"/save-file/v1/ai-status",method:"GET",query:e,...t}),test_list:(e={})=>this.request({path:"/save-file/v1/test",method:"GET",...e}),upload_create:(e,t={})=>this.request({path:"/save-file/v1/upload",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),shortener_create:(e,t={})=>this.request({path:"/save-file/v1/shortener",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),get_link_create:(e,t={})=>this.request({path:"/save-file/v1/get-link",method:"POST",body:e,type:o.UrlEncoded,...t}),send_email_create:(e,t={})=>this.request({path:"/save-file/v1/send-email",method:"POST",body:e,type:o.UrlEncoded,...t})},this.aiGenerator={get_ai_generator:(e,t={})=>this.request({path:"/ai-generator/v1",method:"GET",query:e,...t}),ai_create:(e,t={})=>this.request({path:"/ai-generator/v1/ai",method:"POST",body:e,type:o.UrlEncoded,...t}),ai_status_list:(e,t={})=>this.request({path:"/ai-generator/v1/ai-status",method:"GET",query:e,...t}),test_list:(e={})=>this.request({path:"/ai-generator/v1/test",method:"GET",...e}),clear_history_list:(e,t={})=>this.request({path:"/ai-generator/v1/clear-history",method:"GET",query:e,...t}),save_task_create:(e,t={})=>this.request({path:"/ai-generator/v1/save-task",method:"POST",body:e,type:o.UrlEncoded,...t}),identificate_blocks_create:(e,t={})=>this.request({path:"/ai-generator/v1/identificate_blocks",method:"POST",body:e,type:o.UrlEncoded,...t}),create_subject_create:(e,t={})=>this.request({path:"/ai-generator/v1/create_subject",method:"POST",body:e,type:o.UrlEncoded,...t})},this.auth={get_auth:(e,t={})=>this.request({path:"/auth/v1",method:"GET",query:e,...t}),users_register_create:(e,t={})=>this.request({path:"/auth/v1/users/register",method:"POST",body:e,type:o.UrlEncoded,...t}),check_auth_list:(e={})=>this.request({path:"/auth/v1/check_auth",method:"GET",...e}),yandex_callback_create:(e,t={})=>this.request({path:"/auth/v1/yandex/callback",method:"POST",body:e,type:o.UrlEncoded,...t}),google_callback_create:(e,t={})=>this.request({path:"/auth/v1/google/callback",method:"POST",body:e,type:o.UrlEncoded,...t}),elama_callback_list:(e,t={})=>this.request({path:"/auth/v1/elama/callback",method:"GET",query:e,...t}),elama_callback_create:(e,t={})=>this.request({path:"/auth/v1/elama/callback",method:"POST",body:e,type:o.UrlEncoded,...t}),elama_refresh_token_list:(e,t={})=>this.request({path:"/auth/v1/elama/refresh_token",method:"GET",query:e,...t}),elama_refresh_token_create:(e,t={})=>this.request({path:"/auth/v1/elama/refresh_token",method:"POST",body:e,type:o.UrlEncoded,...t})},this.inbox={get_inbox:(e,t={})=>this.request({path:"/inbox/v1",method:"GET",query:e,...t}),check_inbox_create:(e,t={})=>this.request({path:"/inbox/v1/check-inbox",method:"POST",body:e,type:o.UrlEncoded,...t})},this.promo={get_promo:(e,t={})=>this.request({path:"/promo/v1",method:"GET",query:e,...t}),set_code_create:(e,t={})=>this.request({path:"/promo/v1/set_code",method:"POST",body:e,type:o.UrlEncoded,...t}),get_code_info_list:(e,t={})=>this.request({path:"/promo/v1/get_code_info",method:"GET",query:e,...t}),get_referral_data_list:(e={})=>this.request({path:"/promo/v1/get_referral_data",method:"GET",...e})},this.optimization={get_optimization:(e,t={})=>this.request({path:"/optimization/v1",method:"GET",query:e,...t}),validate_images_create:(e,t={})=>this.request({path:"/optimization/v1/validate/images",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),validate_links_create:(e,t={})=>this.request({path:"/optimization/v1/validate/links",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),validate_spamassasin_create:(e,t={})=>this.request({path:"/optimization/v1/validate/spamassasin",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t})},this.emFiles={get_em_files:(e,t={})=>this.request({path:"/em-files/v1",method:"GET",query:e,...t}),folders_list:(e,t={})=>this.request({path:"/em-files/v1/folders",method:"GET",query:e,format:"json",...t}),folders_create:(e,t={})=>this.request({path:"/em-files/v1/folders",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),folders_delete:(e,t={})=>this.request({path:"/em-files/v1/folders",method:"DELETE",body:e,type:o.UrlEncoded,format:"json",...t}),empty_trash_create:(e,t={})=>this.request({path:"/em-files/v1/empty-trash",method:"POST",body:e,type:o.UrlEncoded,...t}),files_list:(e,t={})=>this.request({path:"/em-files/v1/files",method:"GET",query:e,format:"json",...t}),files_create:(e,t={})=>this.request({path:"/em-files/v1/files",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),files_delete:(e,t={})=>this.request({path:"/em-files/v1/files",method:"DELETE",body:e,type:o.UrlEncoded,format:"json",...t}),files_partial_update:(e,t={})=>this.request({path:"/em-files/v1/files",method:"PATCH",body:e,type:o.UrlEncoded,format:"json",...t}),files_upload_by_url_create:(e,t={})=>this.request({path:"/em-files/v1/files/upload-by-url",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),files_rename_partial_update:(e,t={})=>this.request({path:"/em-files/v1/files/rename",method:"PATCH",body:e,type:o.UrlEncoded,format:"json",...t}),items_move_partial_update:(e,t={})=>this.request({path:"/em-files/v1/items/move",method:"PATCH",body:e,type:o.UrlEncoded,format:"json",...t}),file_dimensions_list:(e,t={})=>this.request({path:"/em-files/v1/file/dimensions",method:"GET",query:e,format:"json",...t}),cache_clear_create:(e,t={})=>this.request({path:"/em-files/v1/cache/clear",method:"POST",body:e,type:o.UrlEncoded,...t})},this.projects={get_projects:(e,t={})=>this.request({path:"/projects/v1",method:"GET",query:e,...t}),flush_email_template_cache_create:(e={})=>this.request({path:"/projects/v1/flush-email-template-cache",method:"POST",...e}),list_advanced_list:(e,t={})=>this.request({path:"/projects/v1/list_advanced",method:"GET",query:e,...t}),top_used_list:(e,t={})=>this.request({path:"/projects/v1/top-used",method:"GET",query:e,...t}),members_bulk_create:(e,t={})=>this.request({path:"/projects/v1/members/bulk",method:"POST",body:e,type:o.UrlEncoded,...t}),flush_project_cache_create:(e,t={})=>this.request({path:"/projects/v1/flush-project-cache",method:"POST",body:e,type:o.UrlEncoded,...t}),profile_options_list:(e={})=>this.request({path:"/projects/v1/profile/options",method:"GET",...e}),profile_detail:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/profile/${e}`,method:"GET",...r}),profile_partial_update:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/profile/${e}`,method:"PATCH",...r}),storage_detail:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/storage/${e}`,method:"GET",...r}),storage_partial_update:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/storage/${e}`,method:"PATCH",...r}),storage_test_create:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/storage/${e}/test`,method:"POST",...r}),integrations_detail:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/integrations/${e}`,method:"GET",query:t,...r}),integrations_partial_update:({projectId:e,...t},r,a={})=>this.request({path:`/projects/v1/integrations/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,...a}),members_detail:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/members/${e}`,method:"GET",...r}),styles_detail:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/styles/${e}`,method:"GET",...r}),styles_partial_update:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/styles/${e}`,method:"PATCH",...r}),social_detail:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/social/${e}`,method:"GET",...r}),social_partial_update:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/social/${e}`,method:"PATCH",...r}),developer_credentials_detail:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/developer-credentials/${e}`,method:"GET",...r}),developer_credentials_partial_update:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/developer-credentials/${e}`,method:"PATCH",...r}),developer_credentials_rotate_secret_create:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/developer-credentials/${e}/rotate-secret`,method:"POST",...r}),developer_credentials_verify_secret_create:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/developer-credentials/${e}/verify-secret`,method:"POST",...r}),developer_kit_postman_collection_list:(e={})=>this.request({path:"/projects/v1/developer-kit/postman-collection",method:"GET",...e}),usage_detail:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/usage/${e}`,method:"GET",...r}),billing_context_detail:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/billing-context/${e}`,method:"GET",...r}),settings_summary_detail:({projectId:e,...t},r={})=>this.request({path:`/projects/v1/settings-summary/${e}`,method:"GET",...r})},this.wp={get_wp:(e,t={})=>this.request({path:"/wp/v2",method:"GET",query:e,...t}),confirmation_list:(e,t={})=>this.request({path:"/wp/v2/confirmation",method:"GET",query:e,...t}),users_register_create:(e={})=>this.request({path:"/wp/v2/users/register",method:"POST",...e}),users_lostpassword_create:(e={})=>this.request({path:"/wp/v2/users/lostpassword",method:"POST",...e}),users_lost_password_create:(e={})=>this.request({path:"/wp/v2/users/lost-password",method:"POST",...e}),posts_list:(e,t={})=>this.request({path:"/wp/v2/posts",method:"GET",query:e,format:"json",...t}),posts_create:(e,t={})=>this.request({path:"/wp/v2/posts",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),posts_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/posts/${e}`,method:"GET",query:t,format:"json",...r}),posts_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/posts/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),posts_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/posts/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),posts_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/posts/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),posts_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/posts/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),posts_revisions_list:({parent:e,...t},r={})=>this.request({path:`/wp/v2/posts/${e}/revisions`,method:"GET",query:t,format:"json",...r}),posts_revisions_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/posts/${e}/revisions/${t}`,method:"GET",query:r,format:"json",...o}),posts_revisions_delete:({parent:e,id:t,...r},a,s={})=>this.request({path:`/wp/v2/posts/${e}/revisions/${t}`,method:"DELETE",body:a,type:o.UrlEncoded,format:"json",...s}),posts_autosaves_list:({id:e,...t},r={})=>this.request({path:`/wp/v2/posts/${e}/autosaves`,method:"GET",query:t,format:"json",...r}),posts_autosaves_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/posts/${e}/autosaves`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),posts_autosaves_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/posts/${e}/autosaves/${t}`,method:"GET",query:r,format:"json",...o}),pages_list:(e,t={})=>this.request({path:"/wp/v2/pages",method:"GET",query:e,format:"json",...t}),pages_create:(e,t={})=>this.request({path:"/wp/v2/pages",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),pages_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/pages/${e}`,method:"GET",query:t,format:"json",...r}),pages_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/pages/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),pages_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/pages/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),pages_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/pages/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),pages_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/pages/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),pages_revisions_list:({parent:e,...t},r={})=>this.request({path:`/wp/v2/pages/${e}/revisions`,method:"GET",query:t,format:"json",...r}),pages_revisions_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/pages/${e}/revisions/${t}`,method:"GET",query:r,format:"json",...o}),pages_revisions_delete:({parent:e,id:t,...r},a,s={})=>this.request({path:`/wp/v2/pages/${e}/revisions/${t}`,method:"DELETE",body:a,type:o.UrlEncoded,format:"json",...s}),pages_autosaves_list:({id:e,...t},r={})=>this.request({path:`/wp/v2/pages/${e}/autosaves`,method:"GET",query:t,format:"json",...r}),pages_autosaves_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/pages/${e}/autosaves`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),pages_autosaves_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/pages/${e}/autosaves/${t}`,method:"GET",query:r,format:"json",...o}),media_list:(e,t={})=>this.request({path:"/wp/v2/media",method:"GET",query:e,format:"json",...t}),media_create:(e,t={})=>this.request({path:"/wp/v2/media",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),media_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/media/${e}`,method:"GET",query:t,format:"json",...r}),media_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/media/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),media_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/media/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),media_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/media/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),media_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/media/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),media_post_process_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/media/${e}/post-process`,method:"POST",body:r,type:o.UrlEncoded,...a}),media_edit_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/media/${e}/edit`,method:"POST",body:r,type:o.UrlEncoded,...a}),menu_items_list:(e,t={})=>this.request({path:"/wp/v2/menu-items",method:"GET",query:e,format:"json",...t}),menu_items_create:(e,t={})=>this.request({path:"/wp/v2/menu-items",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),menu_items_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:"GET",query:t,format:"json",...r}),menu_items_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),menu_items_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),menu_items_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),menu_items_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),menu_items_autosaves_list:({id:e,...t},r={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves`,method:"GET",query:t,format:"json",...r}),menu_items_autosaves_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),menu_items_autosaves_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves/${t}`,method:"GET",query:r,format:"json",...o}),blocks_list:(e,t={})=>this.request({path:"/wp/v2/blocks",method:"GET",query:e,format:"json",...t}),blocks_create:(e,t={})=>this.request({path:"/wp/v2/blocks",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),blocks_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:"GET",query:t,format:"json",...r}),blocks_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/blocks/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),blocks_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/blocks/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),blocks_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/blocks/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),blocks_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/blocks/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),blocks_revisions_list:({parent:e,...t},r={})=>this.request({path:`/wp/v2/blocks/${e}/revisions`,method:"GET",query:t,format:"json",...r}),blocks_revisions_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/blocks/${e}/revisions/${t}`,method:"GET",query:r,format:"json",...o}),blocks_revisions_delete:({parent:e,id:t,...r},a,s={})=>this.request({path:`/wp/v2/blocks/${e}/revisions/${t}`,method:"DELETE",body:a,type:o.UrlEncoded,format:"json",...s}),blocks_autosaves_list:({id:e,...t},r={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves`,method:"GET",query:t,format:"json",...r}),blocks_autosaves_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),blocks_autosaves_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves/${t}`,method:"GET",query:r,format:"json",...o}),templates_revisions_list:({parent:e,...t},r={})=>this.request({path:`/wp/v2/templates/${e}/revisions`,method:"GET",query:t,format:"json",...r}),templates_revisions_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/templates/${e}/revisions/${t}`,method:"GET",query:r,format:"json",...o}),templates_revisions_delete:({parent:e,id:t,...r},a,s={})=>this.request({path:`/wp/v2/templates/${e}/revisions/${t}`,method:"DELETE",body:a,type:o.UrlEncoded,format:"json",...s}),templates_autosaves_list:({id:e,...t},r={})=>this.request({path:`/wp/v2/templates/${e}/autosaves`,method:"GET",query:t,format:"json",...r}),templates_autosaves_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/templates/${e}/autosaves`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),templates_autosaves_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/templates/${e}/autosaves/${t}`,method:"GET",query:r,format:"json",...o}),templates_list:(e,t={})=>this.request({path:"/wp/v2/templates",method:"GET",query:e,format:"json",...t}),templates_create:(e,t={})=>this.request({path:"/wp/v2/templates",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),templates_lookup_list:(e,t={})=>this.request({path:"/wp/v2/templates/lookup",method:"GET",query:e,...t}),templates_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/templates/${e}`,method:"GET",query:t,format:"json",...r}),templates_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/templates/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),templates_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/templates/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),templates_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/templates/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),templates_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/templates/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),template_parts_revisions_list:({parent:e,...t},r={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions`,method:"GET",query:t,format:"json",...r}),template_parts_revisions_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions/${t}`,method:"GET",query:r,format:"json",...o}),template_parts_revisions_delete:({parent:e,id:t,...r},a,s={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions/${t}`,method:"DELETE",body:a,type:o.UrlEncoded,format:"json",...s}),template_parts_autosaves_list:({id:e,...t},r={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves`,method:"GET",query:t,format:"json",...r}),template_parts_autosaves_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),template_parts_autosaves_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves/${t}`,method:"GET",query:r,format:"json",...o}),template_parts_list:(e,t={})=>this.request({path:"/wp/v2/template-parts",method:"GET",query:e,format:"json",...t}),template_parts_create:(e,t={})=>this.request({path:"/wp/v2/template-parts",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),template_parts_lookup_list:(e,t={})=>this.request({path:"/wp/v2/template-parts/lookup",method:"GET",query:e,...t}),template_parts_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:"GET",query:t,format:"json",...r}),template_parts_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),template_parts_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),template_parts_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),template_parts_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),global_styles_revisions_list:({parent:e,...t},r={})=>this.request({path:`/wp/v2/global-styles/${e}/revisions`,method:"GET",query:t,format:"json",...r}),global_styles_revisions_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/global-styles/${e}/revisions/${t}`,method:"GET",query:r,format:"json",...o}),global_styles_themes_variations_list:({stylesheet:e,...t},r={})=>this.request({path:`/wp/v2/global-styles/themes/${e}/variations`,method:"GET",...r}),global_styles_themes_detail:({stylesheet:e,...t},r={})=>this.request({path:`/wp/v2/global-styles/themes/${e}`,method:"GET",...r}),global_styles_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:"GET",format:"json",...r}),global_styles_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),global_styles_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),global_styles_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),navigation_list:(e,t={})=>this.request({path:"/wp/v2/navigation",method:"GET",query:e,format:"json",...t}),navigation_create:(e,t={})=>this.request({path:"/wp/v2/navigation",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),navigation_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:"GET",query:t,format:"json",...r}),navigation_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/navigation/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),navigation_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/navigation/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),navigation_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/navigation/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),navigation_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/navigation/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),navigation_revisions_list:({parent:e,...t},r={})=>this.request({path:`/wp/v2/navigation/${e}/revisions`,method:"GET",query:t,format:"json",...r}),navigation_revisions_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/navigation/${e}/revisions/${t}`,method:"GET",query:r,format:"json",...o}),navigation_revisions_delete:({parent:e,id:t,...r},a,s={})=>this.request({path:`/wp/v2/navigation/${e}/revisions/${t}`,method:"DELETE",body:a,type:o.UrlEncoded,format:"json",...s}),navigation_autosaves_list:({id:e,...t},r={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves`,method:"GET",query:t,format:"json",...r}),navigation_autosaves_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),navigation_autosaves_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves/${t}`,method:"GET",query:r,format:"json",...o}),font_families_list:(e,t={})=>this.request({path:"/wp/v2/font-families",method:"GET",query:e,format:"json",...t}),font_families_create:(e,t={})=>this.request({path:"/wp/v2/font-families",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),font_families_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:"GET",query:t,format:"json",...r}),font_families_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/font-families/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),font_families_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/font-families/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),font_families_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/font-families/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),font_families_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/font-families/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),font_families_font_faces_list:({fontFamilyId:e,...t},r={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces`,method:"GET",query:t,format:"json",...r}),font_families_font_faces_create:({fontFamilyId:e,...t},r,a={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),font_families_font_faces_detail:({fontFamilyId:e,id:t,...r},o={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces/${t}`,method:"GET",query:r,format:"json",...o}),font_families_font_faces_delete:({fontFamilyId:e,id:t,...r},a,s={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces/${t}`,method:"DELETE",body:a,type:o.UrlEncoded,format:"json",...s}),eblock_list:(e,t={})=>this.request({path:"/wp/v2/eblock",method:"GET",query:e,format:"json",...t}),eblock_create:(e,t={})=>this.request({path:"/wp/v2/eblock",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),eblock_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:"GET",query:t,format:"json",...r}),eblock_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/eblock/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),eblock_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/eblock/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),eblock_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/eblock/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),eblock_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/eblock/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),eblock_revisions_list:({parent:e,...t},r={})=>this.request({path:`/wp/v2/eblock/${e}/revisions`,method:"GET",query:t,format:"json",...r}),eblock_revisions_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/eblock/${e}/revisions/${t}`,method:"GET",query:r,format:"json",...o}),eblock_revisions_delete:({parent:e,id:t,...r},a,s={})=>this.request({path:`/wp/v2/eblock/${e}/revisions/${t}`,method:"DELETE",body:a,type:o.UrlEncoded,format:"json",...s}),eblock_autosaves_list:({id:e,...t},r={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves`,method:"GET",query:t,format:"json",...r}),eblock_autosaves_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),eblock_autosaves_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves/${t}`,method:"GET",query:r,format:"json",...o}),email_list:(e,t={})=>this.request({path:"/wp/v2/email",method:"GET",query:e,format:"json",...t}),email_create:(e,t={})=>this.request({path:"/wp/v2/email",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),email_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/email/${e}`,method:"GET",query:t,format:"json",...r}),email_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/email/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),email_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/email/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),email_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/email/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),email_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/email/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),email_revisions_list:({parent:e,...t},r={})=>this.request({path:`/wp/v2/email/${e}/revisions`,method:"GET",query:t,format:"json",...r}),email_revisions_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/email/${e}/revisions/${t}`,method:"GET",query:r,format:"json",...o}),email_revisions_delete:({parent:e,id:t,...r},a,s={})=>this.request({path:`/wp/v2/email/${e}/revisions/${t}`,method:"DELETE",body:a,type:o.UrlEncoded,format:"json",...s}),email_autosaves_list:({id:e,...t},r={})=>this.request({path:`/wp/v2/email/${e}/autosaves`,method:"GET",query:t,format:"json",...r}),email_autosaves_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/email/${e}/autosaves`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),email_autosaves_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/email/${e}/autosaves/${t}`,method:"GET",query:r,format:"json",...o}),notification_list:(e,t={})=>this.request({path:"/wp/v2/notification",method:"GET",query:e,format:"json",...t}),notification_create:(e,t={})=>this.request({path:"/wp/v2/notification",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),notification_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/notification/${e}`,method:"GET",query:t,format:"json",...r}),notification_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/notification/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),notification_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/notification/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),notification_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/notification/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),notification_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/notification/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),notification_autosaves_list:({id:e,...t},r={})=>this.request({path:`/wp/v2/notification/${e}/autosaves`,method:"GET",query:t,format:"json",...r}),notification_autosaves_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/notification/${e}/autosaves`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),notification_autosaves_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/notification/${e}/autosaves/${t}`,method:"GET",query:r,format:"json",...o}),payment_list:(e,t={})=>this.request({path:"/wp/v2/payment",method:"GET",query:e,format:"json",...t}),payment_create:(e,t={})=>this.request({path:"/wp/v2/payment",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),payment_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/payment/${e}`,method:"GET",query:t,format:"json",...r}),payment_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/payment/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),payment_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/payment/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),payment_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/payment/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),payment_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/payment/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),project_list:(e,t={})=>this.request({path:"/wp/v2/project",method:"GET",query:e,format:"json",...t}),project_create:(e,t={})=>this.request({path:"/wp/v2/project",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),project_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/project/${e}`,method:"GET",query:t,format:"json",...r}),project_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/project/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),project_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/project/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),project_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/project/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),project_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/project/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),project_revisions_list:({parent:e,...t},r={})=>this.request({path:`/wp/v2/project/${e}/revisions`,method:"GET",query:t,format:"json",...r}),project_revisions_detail:({parent:e,id:t,...r},o={})=>this.request({path:`/wp/v2/project/${e}/revisions/${t}`,method:"GET",query:r,format:"json",...o}),project_revisions_delete:({parent:e,id:t,...r},a,s={})=>this.request({path:`/wp/v2/project/${e}/revisions/${t}`,method:"DELETE",body:a,type:o.UrlEncoded,format:"json",...s}),subscription_list:(e,t={})=>this.request({path:"/wp/v2/subscription",method:"GET",query:e,format:"json",...t}),subscription_create:(e,t={})=>this.request({path:"/wp/v2/subscription",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),subscription_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:"GET",query:t,format:"json",...r}),subscription_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/subscription/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),subscription_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/subscription/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),subscription_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/subscription/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),subscription_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/subscription/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),user_promocodes_list:(e,t={})=>this.request({path:"/wp/v2/user_promocodes",method:"GET",query:e,format:"json",...t}),user_promocodes_create:(e,t={})=>this.request({path:"/wp/v2/user_promocodes",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),user_promocodes_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:"GET",query:t,format:"json",...r}),user_promocodes_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),user_promocodes_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),user_promocodes_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),user_promocodes_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),types_list:(e,t={})=>this.request({path:"/wp/v2/types",method:"GET",query:e,format:"json",...t}),types_detail:({type:e,...t},r={})=>this.request({path:`/wp/v2/types/${e}`,method:"GET",query:t,format:"json",...r}),statuses_list:(e,t={})=>this.request({path:"/wp/v2/statuses",method:"GET",query:e,format:"json",...t}),statuses_detail:({status:e,...t},r={})=>this.request({path:`/wp/v2/statuses/${e}`,method:"GET",query:t,format:"json",...r}),taxonomies_list:(e,t={})=>this.request({path:"/wp/v2/taxonomies",method:"GET",query:e,format:"json",...t}),taxonomies_detail:({taxonomy:e,...t},r={})=>this.request({path:`/wp/v2/taxonomies/${e}`,method:"GET",query:t,format:"json",...r}),categories_list:(e,t={})=>this.request({path:"/wp/v2/categories",method:"GET",query:e,format:"json",...t}),categories_create:(e,t={})=>this.request({path:"/wp/v2/categories",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),categories_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/categories/${e}`,method:"GET",query:t,format:"json",...r}),categories_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/categories/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),categories_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/categories/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),categories_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/categories/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),categories_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/categories/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),tags_list:(e,t={})=>this.request({path:"/wp/v2/tags",method:"GET",query:e,format:"json",...t}),tags_create:(e,t={})=>this.request({path:"/wp/v2/tags",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),tags_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/tags/${e}`,method:"GET",query:t,format:"json",...r}),tags_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/tags/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),tags_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/tags/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),tags_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/tags/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),tags_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/tags/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),menus_list:(e,t={})=>this.request({path:"/wp/v2/menus",method:"GET",query:e,format:"json",...t}),menus_create:(e,t={})=>this.request({path:"/wp/v2/menus",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),menus_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/menus/${e}`,method:"GET",query:t,format:"json",...r}),menus_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/menus/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),menus_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/menus/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),menus_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/menus/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),menus_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/menus/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),wp_pattern_category_list:(e,t={})=>this.request({path:"/wp/v2/wp_pattern_category",method:"GET",query:e,format:"json",...t}),wp_pattern_category_create:(e,t={})=>this.request({path:"/wp/v2/wp_pattern_category",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),wp_pattern_category_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:"GET",query:t,format:"json",...r}),wp_pattern_category_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),wp_pattern_category_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),wp_pattern_category_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),wp_pattern_category_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),group_list:(e,t={})=>this.request({path:"/wp/v2/group",method:"GET",query:e,format:"json",...t}),group_create:(e,t={})=>this.request({path:"/wp/v2/group",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),group_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/group/${e}`,method:"GET",query:t,format:"json",...r}),group_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/group/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),group_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/group/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),group_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/group/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),group_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/group/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),blockfolder_list:(e,t={})=>this.request({path:"/wp/v2/blockfolder",method:"GET",query:e,format:"json",...t}),blockfolder_create:(e,t={})=>this.request({path:"/wp/v2/blockfolder",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),blockfolder_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:"GET",query:t,format:"json",...r}),blockfolder_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),blockfolder_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),blockfolder_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),blockfolder_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),blocktags_list:(e,t={})=>this.request({path:"/wp/v2/blocktags",method:"GET",query:e,format:"json",...t}),blocktags_create:(e,t={})=>this.request({path:"/wp/v2/blocktags",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),blocktags_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:"GET",query:t,format:"json",...r}),blocktags_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),blocktags_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),blocktags_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),blocktags_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),emailtags_list:(e,t={})=>this.request({path:"/wp/v2/emailtags",method:"GET",query:e,format:"json",...t}),emailtags_create:(e,t={})=>this.request({path:"/wp/v2/emailtags",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),emailtags_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:"GET",query:t,format:"json",...r}),emailtags_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),emailtags_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),emailtags_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),emailtags_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),folder_list:(e,t={})=>this.request({path:"/wp/v2/folder",method:"GET",query:e,format:"json",...t}),folder_create:(e,t={})=>this.request({path:"/wp/v2/folder",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),folder_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/folder/${e}`,method:"GET",query:t,format:"json",...r}),folder_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/folder/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),folder_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/folder/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),folder_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/folder/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),folder_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/folder/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),users_list:(e,t={})=>this.request({path:"/wp/v2/users",method:"GET",query:e,format:"json",...t}),users_create:(e,t={})=>this.request({path:"/wp/v2/users",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),users_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/users/${e}`,method:"GET",query:t,format:"json",...r}),users_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/users/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),users_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/users/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),users_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/users/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),users_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/users/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),users_me_list:(e,t={})=>this.request({path:"/wp/v2/users/me",method:"GET",query:e,format:"json",...t}),users_me_create:(e,t={})=>this.request({path:"/wp/v2/users/me",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),users_me_update:(e,t={})=>this.request({path:"/wp/v2/users/me",method:"PUT",body:e,type:o.UrlEncoded,format:"json",...t}),users_me_partial_update:(e,t={})=>this.request({path:"/wp/v2/users/me",method:"PATCH",body:e,type:o.UrlEncoded,format:"json",...t}),users_me_delete:(e,t={})=>this.request({path:"/wp/v2/users/me",method:"DELETE",body:e,type:o.UrlEncoded,format:"json",...t}),users_application_passwords_list:({userId:e,...t},r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:"GET",query:t,format:"json",...r}),users_application_passwords_create:({userId:e,...t},r,a={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),users_application_passwords_delete:({userId:e,...t},r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:"DELETE",format:"json",...r}),users_application_passwords_introspect_list:({userId:e,...t},r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/introspect`,method:"GET",query:t,format:"json",...r}),users_application_passwords_detail:({userId:e,uuid:t,...r},o={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:"GET",query:r,format:"json",...o}),users_application_passwords_create2:({userId:e,uuid:t,...r},a,s={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:"POST",body:a,type:o.UrlEncoded,format:"json",...s}),users_application_passwords_update:({userId:e,uuid:t,...r},a,s={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:"PUT",body:a,type:o.UrlEncoded,format:"json",...s}),users_application_passwords_partial_update:({userId:e,uuid:t,...r},a,s={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:"PATCH",body:a,type:o.UrlEncoded,format:"json",...s}),users_application_passwords_delete2:({userId:e,uuid:t,...r},o={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:"DELETE",format:"json",...o}),comments_list:(e,t={})=>this.request({path:"/wp/v2/comments",method:"GET",query:e,format:"json",...t}),comments_create:(e,t={})=>this.request({path:"/wp/v2/comments",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),comments_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/comments/${e}`,method:"GET",query:t,format:"json",...r}),comments_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/comments/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),comments_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/comments/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),comments_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/comments/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),comments_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/comments/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),search_list:(e,t={})=>this.request({path:"/wp/v2/search",method:"GET",query:e,format:"json",...t}),block_renderer_detail:({name:e,...t},r={})=>this.request({path:`/wp/v2/block-renderer/${e}`,method:"GET",query:t,format:"json",...r}),block_renderer_create:({name:e,...t},r,a={})=>this.request({path:`/wp/v2/block-renderer/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),block_types_list:(e,t={})=>this.request({path:"/wp/v2/block-types",method:"GET",query:e,format:"json",...t}),block_types_detail:({namespace:e,...t},r={})=>this.request({path:`/wp/v2/block-types/${e}`,method:"GET",query:t,format:"json",...r}),block_types_detail2:({name:e,namespace:t,...r},o={})=>this.request({path:`/wp/v2/block-types/${t}/${e}`,method:"GET",query:r,format:"json",...o}),settings_list:(e={})=>this.request({path:"/wp/v2/settings",method:"GET",format:"json",...e}),settings_create:(e,t={})=>this.request({path:"/wp/v2/settings",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),settings_update:(e,t={})=>this.request({path:"/wp/v2/settings",method:"PUT",body:e,type:o.UrlEncoded,format:"json",...t}),settings_partial_update:(e,t={})=>this.request({path:"/wp/v2/settings",method:"PATCH",body:e,type:o.UrlEncoded,format:"json",...t}),themes_list:(e,t={})=>this.request({path:"/wp/v2/themes",method:"GET",query:e,format:"json",...t}),themes_detail:({stylesheet:e,...t},r={})=>this.request({path:`/wp/v2/themes/${e}`,method:"GET",format:"json",...r}),plugins_list:(e,t={})=>this.request({path:"/wp/v2/plugins",method:"GET",query:e,format:"json",...t}),plugins_create:(e,t={})=>this.request({path:"/wp/v2/plugins",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),plugins_detail:({plugin:e,...t},r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:"GET",query:t,format:"json",...r}),plugins_create2:({plugin:e,...t},r,a={})=>this.request({path:`/wp/v2/plugins/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),plugins_update:({plugin:e,...t},r,a={})=>this.request({path:`/wp/v2/plugins/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),plugins_partial_update:({plugin:e,...t},r,a={})=>this.request({path:`/wp/v2/plugins/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),plugins_delete:({plugin:e,...t},r,a={})=>this.request({path:`/wp/v2/plugins/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),sidebars_list:(e,t={})=>this.request({path:"/wp/v2/sidebars",method:"GET",query:e,format:"json",...t}),sidebars_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:"GET",query:t,format:"json",...r}),sidebars_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),sidebars_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),sidebars_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),widget_types_list:(e,t={})=>this.request({path:"/wp/v2/widget-types",method:"GET",query:e,format:"json",...t}),widget_types_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/widget-types/${e}`,method:"GET",query:t,format:"json",...r}),widget_types_encode_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/widget-types/${e}/encode`,method:"POST",body:r,type:o.UrlEncoded,...a}),widget_types_render_create:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/widget-types/${e}/render`,method:"POST",body:r,type:o.UrlEncoded,...a}),widgets_list:(e,t={})=>this.request({path:"/wp/v2/widgets",method:"GET",query:e,format:"json",...t}),widgets_create:(e,t={})=>this.request({path:"/wp/v2/widgets",method:"POST",body:e,type:o.UrlEncoded,format:"json",...t}),widgets_detail:({id:e,...t},r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:"GET",query:t,format:"json",...r}),widgets_create2:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/widgets/${e}`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),widgets_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/widgets/${e}`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),widgets_partial_update:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/widgets/${e}`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),widgets_delete:({id:e,...t},r,a={})=>this.request({path:`/wp/v2/widgets/${e}`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),block_directory_search_list:(e,t={})=>this.request({path:"/wp/v2/block-directory/search",method:"GET",query:e,format:"json",...t}),pattern_directory_patterns_list:(e,t={})=>this.request({path:"/wp/v2/pattern-directory/patterns",method:"GET",query:e,format:"json",...t}),block_patterns_patterns_list:(e={})=>this.request({path:"/wp/v2/block-patterns/patterns",method:"GET",format:"json",...e}),block_patterns_categories_list:(e={})=>this.request({path:"/wp/v2/block-patterns/categories",method:"GET",format:"json",...e}),menu_locations_list:(e,t={})=>this.request({path:"/wp/v2/menu-locations",method:"GET",query:e,format:"json",...t}),menu_locations_detail:({location:e,...t},r={})=>this.request({path:`/wp/v2/menu-locations/${e}`,method:"GET",query:t,format:"json",...r}),font_collections_list:(e,t={})=>this.request({path:"/wp/v2/font-collections",method:"GET",query:e,format:"json",...t}),font_collections_detail:({slug:e,...t},r={})=>this.request({path:`/wp/v2/font-collections/${e}`,method:"GET",query:t,format:"json",...r})},this.userToProject={get_user_to_project:(e,t={})=>this.request({path:"/user_to_project/v1",method:"GET",query:e,...t}),add_user_create:(e,t={})=>this.request({path:"/user_to_project/v1/add_user",method:"POST",body:e,type:o.UrlEncoded,...t})},this.payment={get_payment:(e,t={})=>this.request({path:"/payment/v1",method:"GET",query:e,...t}),check_duplicate_list:(e,t={})=>this.request({path:"/payment/v1/check_duplicate",method:"GET",query:e,...t}),check_duplicate_create:(e,t={})=>this.request({path:"/payment/v1/check_duplicate",method:"POST",body:e,type:o.UrlEncoded,...t}),subscription_payment_create:(e,t={})=>this.request({path:"/payment/v1/subscription_payment",method:"POST",body:e,type:o.UrlEncoded,...t}),refund_create:(e,t={})=>this.request({path:"/payment/v1/refund",method:"POST",body:e,type:o.UrlEncoded,...t}),package_purchase_create:(e,t={})=>this.request({path:"/payment/v1/package_purchase",method:"POST",body:e,type:o.UrlEncoded,...t})},this.counters={get_counters:(e,t={})=>this.request({path:"/counters/v1",method:"GET",query:e,...t}),increment_counter_partial_update:(e={})=>this.request({path:"/counters/v1/increment_counter",method:"PATCH",...e})},this.users={get_users:(e,t={})=>this.request({path:"/users/v1",method:"GET",query:e,...t}),is_paying_user_list:(e={})=>this.request({path:"/users/v1/is_paying_user",method:"GET",...e})},this.wpOpenapi={wp_openapi_list:(e,t={})=>this.request({path:"/wp-openapi",method:"GET",query:e,...t}),stoplight_ui_list:(e={})=>this.request({path:"/wp-openapi/stoplight-ui",method:"GET",...e}),get_wp_openapi:(e,t={})=>this.request({path:"/wp-openapi/v1",method:"GET",query:e,...t}),schema_list:(e,t={})=>this.request({path:"/wp-openapi/v1/schema",method:"GET",query:e,...t})},this.email={get_email:(e,t={})=>this.request({path:"/email/v2",method:"GET",query:e,...t}),templates_list:(e,t={})=>this.request({path:"/email/v2/templates",method:"GET",query:e,...t}),html_list:(e,t={})=>this.request({path:"/email/v2/html",method:"GET",query:e,...t}),copy_create:(e,t={})=>this.request({path:"/email/v2/copy",method:"POST",body:e,type:o.UrlEncoded,...t})},this.subscription={get_subscription:(e,t={})=>this.request({path:"/subscription/v2",method:"GET",query:e,...t}),activate_trial_list:(e={})=>this.request({path:"/subscription/v2/activate_trial",method:"GET",...e}),me_list:(e={})=>this.request({path:"/subscription/v2/me",method:"GET",...e}),me_notification_preferences_update:(e={})=>this.request({path:"/subscription/v2/me/notification-preferences",method:"PUT",...e})},this.app={get_app:(e,t={})=>this.request({path:"/app/v1",method:"GET",query:e,...t}),app_init_create:(e,t={})=>this.request({path:"/app/v1/app_init",method:"POST",body:e,type:o.UrlEncoded,...t})},this.jwtAuth={get_jwt_auth:(e,t={})=>this.request({path:"/jwt-auth/v1",method:"GET",query:e,...t}),token_create:(e={})=>this.request({path:"/jwt-auth/v1/token",method:"POST",...e}),token_validate_create:(e={})=>this.request({path:"/jwt-auth/v1/token/validate",method:"POST",...e})},this.translations={translations_list:(e,t={})=>this.request({path:"/translations",method:"GET",query:e,...t}),post_translations:(e={})=>this.request({path:"/translations/v1",method:"POST",...e}),get_translations:(e,t={})=>this.request({path:"/translations/v1",method:"GET",query:e,...t}),get_translations2:({file:e,...t},r={})=>this.request({path:`/translations/v1/${e}`,method:"GET",...r}),get_translations3:({id:e,file:t,...r},o={})=>this.request({path:`/translations/v1/${t}/${e}`,method:"GET",...o})},this.em1CSync={get_em1_c_sync:(e,t={})=>this.request({path:"/em-1c-sync/v1",method:"GET",query:e,...t}),invoice_request_create:(e={})=>this.request({path:"/em-1c-sync/v1/invoice-request",method:"POST",...e}),ack_create:(e={})=>this.request({path:"/em-1c-sync/v1/ack",method:"POST",...e})},this.prmonline={get_prmonline:(e,t={})=>this.request({path:"/prmonline/v1",method:"GET",query:e,...t}),save_ref_create:(e={})=>this.request({path:"/prmonline/v1/save-ref",method:"POST",...e}),track_list:(e={})=>this.request({path:"/prmonline/v1/track",method:"GET",...e}),track_create:(e={})=>this.request({path:"/prmonline/v1/track",method:"POST",...e})},this.wpMailSmtp={get_wp_mail_smtp:(e,t={})=>this.request({path:"/wp-mail-smtp/v1",method:"GET",query:e,...t}),e_detail:({data:e,...t},r={})=>this.request({path:`/wp-mail-smtp/v1/e/${e}`,method:"GET",...r})},this.wpSiteHealth={get_wp_site_health:(e,t={})=>this.request({path:"/wp-site-health/v1",method:"GET",query:e,...t}),tests_background_updates_list:(e={})=>this.request({path:"/wp-site-health/v1/tests/background-updates",method:"GET",format:"json",...e}),tests_loopback_requests_list:(e={})=>this.request({path:"/wp-site-health/v1/tests/loopback-requests",method:"GET",format:"json",...e}),tests_https_status_list:(e={})=>this.request({path:"/wp-site-health/v1/tests/https-status",method:"GET",format:"json",...e}),tests_dotorg_communication_list:(e={})=>this.request({path:"/wp-site-health/v1/tests/dotorg-communication",method:"GET",format:"json",...e}),tests_authorization_header_list:(e={})=>this.request({path:"/wp-site-health/v1/tests/authorization-header",method:"GET",format:"json",...e}),directory_sizes_list:(e={})=>this.request({path:"/wp-site-health/v1/directory-sizes",method:"GET",...e}),tests_page_cache_list:(e={})=>this.request({path:"/wp-site-health/v1/tests/page-cache",method:"GET",...e})},this.wpBlockEditor={get_wp_block_editor:(e,t={})=>this.request({path:"/wp-block-editor/v1",method:"GET",query:e,...t}),url_details_list:(e,t={})=>this.request({path:"/wp-block-editor/v1/url-details",method:"GET",query:e,...t}),export_list:(e={})=>this.request({path:"/wp-block-editor/v1/export",method:"GET",...e}),navigation_fallback_list:(e={})=>this.request({path:"/wp-block-editor/v1/navigation-fallback",method:"GET",format:"json",...e})},this.wpAbilities={get_wp_abilities:(e,t={})=>this.request({path:"/wp-abilities/v1",method:"GET",query:e,...t}),categories_list:(e,t={})=>this.request({path:"/wp-abilities/v1/categories",method:"GET",query:e,format:"json",...t}),categories_detail:({slug:e,...t},r={})=>this.request({path:`/wp-abilities/v1/categories/${e}`,method:"GET",format:"json",...r}),abilities_run_list:({name:e,...t},r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:"GET",query:t,format:"json",...r}),abilities_run_create:({name:e,...t},r,a={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:"POST",body:r,type:o.UrlEncoded,format:"json",...a}),abilities_run_update:({name:e,...t},r,a={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:"PUT",body:r,type:o.UrlEncoded,format:"json",...a}),abilities_run_partial_update:({name:e,...t},r,a={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:"PATCH",body:r,type:o.UrlEncoded,format:"json",...a}),abilities_run_delete:({name:e,...t},r,a={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:"DELETE",body:r,type:o.UrlEncoded,format:"json",...a}),abilities_list:(e,t={})=>this.request({path:"/wp-abilities/v1/abilities",method:"GET",query:e,format:"json",...t}),abilities_detail:({name:e,...t},r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}`,method:"GET",format:"json",...r})}}}},26967:(e,t,r)=>{"use strict";r.d(t,{hI:()=>f,u$:()=>m,KU:()=>p,XB:()=>h,of:()=>y});var o=r(51260),a=r(20263),s=r(45092);let n=function(e){return e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain",e}({});class i{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={[n.Json]:e=>null===e||"object"!==typeof e&&"string"!==typeof e?e:JSON.stringify(e),[n.Text]:e=>null!==e&&"string"!==typeof e?JSON.stringify(e):e,[n.FormData]:e=>Object.keys(e||{}).reduce((t,r)=>{const o=e[r];return t.append(r,o instanceof Blob?o:"object"===typeof o&&null!==o?JSON.stringify(o):`${o}`),t},new FormData),[n.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))},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||{}}}}async request({body:e,secure:t,path:r,type:o,query:a,format:s,baseUrl:i,cancelToken:l,extraQuery:d,proxyHandler:c,...u}){const p=("boolean"===typeof t?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},m=this.mergeRequestParams(u,p);d&&(a=a?{...a,...d}:d);const h=a&&this.toQueryString(a),f=this.contentFormatters[o||n.Json],y=s||m.format,_=`${i||this.baseUrl||""}${r}${h?`?${h}`:""}`,g=c?c(_,{body:e,secure:t,path:r,type:o,query:a,format:s,baseUrl:i,cancelToken:l,extraQuery:d,proxyHandler:c,...u}):_,v=new Request(g,{...m,headers:{...m.headers||{},...o&&o!==n.FormData?{"Content-Type":o}:{}},signal:(l?this.createAbortSignal(l):m.signal)||null,body:"undefined"===typeof e||null===e?null:f(e)});return this.customFetch(v).then(async e=>{const t=e;t.data=null,t.error=null,t.meta={request:v,response:t};const r=y?await e[y]().then(e=>(t.ok?t.data=e:t.error={data:e},t)).catch(e=>(t.error=e,t)):t;return l&&this.abortControllers.delete(l),r})}}class l extends i{constructor(...e){super(...e),this.unsplashTest={appControllerGetUnsplashTest:(e={})=>this.request({path:"/unsplash_test",method:"GET",...e})},this.tasks={tasksControllerCreateTask:(e,t={})=>this.request({path:"/tasks",method:"POST",body:e,type:n.Json,...t}),tasksControllerGetTask:({id:e,...t},r={})=>this.request({path:`/tasks/${e}`,method:"GET",...r}),tasksControllerGetEmail:({id:e,...t},r={})=>this.request({path:`/tasks/${e}/email`,method:"GET",...r}),tasksControllerGetEmailHtml:({id:e,...t},r={})=>this.request({path:`/tasks/${e}/html`,method:"GET",...r})},this.parsing={manParseControllerLogoGen:(e,t={})=>this.request({path:"/parsing/logo-gen",method:"GET",query:e,...t}),manParseControllerSite:(e,t={})=>this.request({path:"/parsing/site",method:"GET",query:e,...t}),manParseControllerColor:(e,t={})=>this.request({path:"/parsing/color",method:"GET",query:e,...t}),manParseControllerStyle:(e,t={})=>this.request({path:"/parsing/style",method:"GET",query:e,...t}),manParseControllerColorScheme:(e,t={})=>this.request({path:"/parsing/color-scheme",method:"GET",query:e,...t}),manParseControllerImage:(e,t={})=>this.request({path:"/parsing/image",method:"GET",query:e,...t})},this.maintenance={maintenanceControllerReloadBlocks:(e={})=>this.request({path:"/maintenance/reload-blocks",method:"GET",...e}),maintenanceControllerReloadUnsplashTopics:(e={})=>this.request({path:"/maintenance/reload-unsplash-topics",method:"GET",...e})},this.unsplash={unsplashControllerUnsplashTest:(e={})=>this.request({path:"/unsplash/test",method:"GET",...e}),unsplashControllerSearchPhotos:(e,t={})=>this.request({path:"/unsplash/search",method:"GET",query:e,...t}),unsplashControllerGetTopics:(e={})=>this.request({path:"/unsplash/topics",method:"GET",...e}),unsplashControllerGetPhoto:(e,t={})=>this.request({path:"/unsplash/photo",method:"GET",query:e,...t})}}}var d=r(24524),c=r(69962),u=r(1936);const p=e=>a.di.getInstance(e,d.Pz),m=e=>a.di.getOrCreateInstance(e,d.Bl,()=>new l({baseUrl:"https://ai-mail.emcdn.ru"})),h=()=>{const e=(0,c.Pj)();return(0,u.useMemo)(()=>a.di.getInstance(e,d.Pz),[e])};function f(e){return(t,r,n)=>{const i=a.di.getInstance(r,s.no);return(0,o.fetchBaseQuery)({...e,fetchFn:(null===i||void 0===i?void 0:i.execute)||fetch})(t,r,n)}}const y=()=>{const e=(0,c.Pj)();return(0,u.useMemo)(()=>a.di.getInstance(e,d.M4),[e])}},24524:(e,t,r)=>{"use strict";r.d(t,{Bl:()=>s,M4:()=>i,Pz:()=>a,Zw:()=>n});var o=r(40713);const a=(0,o.Q)("client"),s=(0,o.Q)("ai_client"),n=(0,o.Q)(),i=(0,o.Q)();(0,o.Q)("autosave-recovery")},3875:(e,t,r)=>{"use strict";r.d(t,{LG:()=>i,ZU:()=>d,cR:()=>s,fh:()=>n,or:()=>a,r4:()=>l});var o=r(1936);const a=(0,o.createContext)({element:void 0}),s=()=>{var e;return null===(e=(0,o.useContext)(a))||void 0===e?void 0:e.element},n=(0,o.createContext)(void 0),i=()=>(0,o.useContext)(n),l=(0,o.createContext)(!1),d=()=>(0,o.useContext)(l)},87596:(e,t,r)=>{"use strict";r.d(t,{A:()=>me});var o=r(5620),a=r(83231),s=r(79613),n=r(22162),i=r(89600),l=r(89660),d=r(89591),c=r(45988),u=r(27092),p=r(44004),m=r(487),h=r(64886),f=r(1327),y=r(70339),_=r(28374),g=r(87796),v=r(61164),b=r(78790),E=r(6680),T=r(22908),w=r(85217),S=r(98750),A=r(42712),C=r(7836),P=r(83035),q=r(28112),O=r(85312),j=r(37316),k=r(24709),x=r(80293),I=r(84697),M=r(18949),U=r(8460),D=r(14698),L=r(36401),N=r(78344),$=r(64582),R=r(5823),F=r(25413),G=r(51432),B=r(57701),H=r(61518),Q=r(14154),W=r(91875),V=r(3711),K=r(65098),z=r(68726),X=r(98173),Y=r(52898),J=r(68069),Z=r(22817),ee=r(61062),te=r(11105),re=r(40867),oe=r(75354),ae=r(69847),se=r(19684),ne=r(78443),ie=r(74663),le=r(92079),de=r(38343),ce=r(20263),ue=r(83111);const pe=(0,o.HY)({[ce.di.reducerPath]:ce.di.reducer,[a.Zs.reducerPath]:a.Zs.reducer,[X.Ay.name]:X.Ay.reducer,[Y.Ay.name]:Y.Ay.reducer,[J.Ay.name]:J.Ay.reducer,[se.Ay.name]:se.Ay.reducer,[l.CL.reducerPath]:l.CL.reducer,[n.OV.reducerPath]:n.OV.reducer,[i.So.reducerPath]:i.So.reducer,[s.Z8.reducerPath]:s.Z8.reducer,[Z.Ay.name]:Z.Ay.reducer,[c.VM.reducerPath]:c.VM.reducer,[d.GY.reducerPath]:d.GY.reducer,[ee.Ay.name]:ee.Ay.reducer,[te.Ay.name]:te.Ay.reducer,[u.Ad.reducerPath]:u.Ad.reducer,[E.C.reducerPath]:E.C.reducer,[T.K.reducerPath]:T.K.reducer,[w.T.reducerPath]:w.T.reducer,[S.G.reducerPath]:S.G.reducer,[A.q.reducerPath]:A.q.reducer,[C.u.reducerPath]:C.u.reducer,[P.P.reducerPath]:P.P.reducer,[q.W.reducerPath]:q.W.reducer,[O.m.reducerPath]:O.m.reducer,[j.W.reducerPath]:j.W.reducer,[k.N.reducerPath]:k.N.reducer,[x.x.reducerPath]:x.x.reducer,[I.n.reducerPath]:I.n.reducer,[M.p.reducerPath]:M.p.reducer,[U.u.reducerPath]:U.u.reducer,[D.e.reducerPath]:D.e.reducer,[L.d.reducerPath]:L.d.reducer,[re.Ay.name]:re.Ay.reducer,[m.Nq.reducerPath]:m.Nq.reducer,[p.yH.reducerPath]:p.yH.reducer,[f.f.reducerPath]:f.f.reducer,[h.Jg.reducerPath]:h.Jg.reducer,[y.tO.reducerPath]:y.tO.reducer,[ae.Ay.name]:ae.Ay.reducer,[oe.Ay.name]:oe.Ay.reducer,[_.U8.reducerPath]:_.U8.reducer,[b.k.reducerPath]:b.k.reducer,[v.S.reducerPath]:v.S.reducer,[g.kE.reducerPath]:g.kE.reducer,[ne.Ay.name]:ne.Ay.reducer,[N.Uu.reducerPath]:N.Uu.reducer,[$.Mf.reducerPath]:$.Mf.reducer,[R.N.reducerPath]:R.N.reducer,[F.vx.reducerPath]:F.vx.reducer,[G.Q2.reducerPath]:G.Q2.reducer,[B.B3.reducerPath]:B.B3.reducer,[ie.Ay.name]:ie.Ay.reducer,[le.Ay.name]:le.Ay.reducer,[H.y.reducerPath]:H.y.reducer,[de.Ay.name]:de.Ay.reducer,[Q.yR.reducerPath]:Q.yR.reducer,[W.B.reducerPath]:W.B.reducer,[V.F.reducerPath]:V.F.reducer,[z.Sd.reducerPath]:z.Sd.reducer,[K.KA.reducerPath]:K.KA.reducer}),me=(e,t)=>"authorizationApi/resetApiState"===t.type?pe({[ue.IP]:e[ue.IP],[u.Ad.reducerPath]:e[u.Ad.reducerPath]},t):pe(e,t)},79465:(e,t,r)=>{"use strict";r.d(t,{F:()=>ee,y:()=>te});var o=r(65913),a=r(53366),s=r(87596),n=r(83231),i=r(89660),l=r(79613),d=r(89600),c=r(22162),u=r(89591),p=r(45988),m=r(27092),h=r(44004),f=r(487),y=r(1327),_=r(64886),g=r(70339),v=r(28374),b=r(78790),E=r(87796),T=r(6680),w=r(61164),S=r(22908),A=r(85217),C=r(98750),P=r(42712),q=r(7836),O=r(83035),j=r(28112),k=r(85312),x=r(37316),I=r(24709),M=r(80293),U=r(84697),D=r(18949),L=r(8460),N=r(14698),$=r(36401),R=r(78344),F=r(64582),G=r(5823),B=r(51432),H=r(57701),Q=r(25413),W=r(61518),V=r(14154),K=r(91875),z=r(3711),X=r(68726),Y=r(65098),J=r(72496),Z=r(40713);const ee=[n.Zs,i.CL,c.OV,l.Z8,u.GY,d.So,p.VM,T.C,S.K,A.T,C.G,P.q,q.u,O.P,j.W,k.m,x.W,I.N,M.x,U.n,D.p,L.u,N.e,$.d,m.Ad,y.f,f.Nq,_.Jg,g.tO,h.yH,v.U8,b.k,E.kE,w.S,R.Uu,F.Mf,B.Q2,H.B3,G.N,Q.vx,W.y,V.yR,K.B,z.F,X.Sd,Y.KA];function te(e){let t={};if(e){const r=(0,Z.Q)();J.Q.inject(r,e),t={INJECTION:r}}const r=(0,o.configureStore)({reducer:s.A,middleware:e=>e({serializableCheck:!1}).concat(ee.map(e=>e.middleware)),preloadedState:t});return(0,a.$k)(r.dispatch),r}},21477:e=>{e.exports='<tr em="block" class="empty-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" cellpadding="0" cellspacing="0" border="0" width="100%" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30" ></td></tr></table>\n\t\t\t\t\t<table align="center" cellpadding="0" cellspacing="0" border="0" width="91%">\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30" ></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n'},15756:e=>{e.exports='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <title></title>\n <style type="text/css">\n html {\n -webkit-text-size-adjust: none;\n -ms-text-size-adjust: none;\n }\n </style>\n <style em="styles">\n@media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-narrow-table {\n width: 100%!important;\n max-width: 660px!important;\n min-width: 320px!important;\n }\n}\n</style>\n</head>\n<body style="margin: 0; padding: 0;">\n <span class="preheader" style="display: none !important; visibility: hidden; opacity: 0; color: #F8F8F8; height: 0; width: 0; font-size: 1px;">&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>'},65893:(e,t,r)=>{"use strict";r.d(t,{AZ:()=>n,Zc:()=>l,cZ:()=>s,dB:()=>d});var o=r(40713),a=r(59059);function s(e){return(0,o.Q)(e)}let n;var i;function l(e,t){return e.getOrCreateInstance(t,()=>new a.lt).event}function d(e,t){return e.getOrCreateInstance(t,()=>new a.lt)}(i=n||(n={})).BEFORE_SAVE_EMAIL=s(),i.ON_SAVEBUTTON_CLICK_ID=s(),i.ON_NEXTBUTTON_CLICK_ID=s(),i.ON_PREVIOUSBUTTON_CLICK_ID=s(),i.ON_MODEL_CHANGE=s(),i.WILL_EMAIL_INIT_ID=s(),i.ON_EMAIL_INIT_ID=s(),i.ON_BLOCK_INIT_ID=s(),i.ON_CONTENT_CHANGED_ID=s(),i.ON_PREHEADER_CHANGED_ID=s(),i.ON_SUBJECT_CHANGED_ID=s(),i.ON_EMAIL_CHANGED_ID=s(),i.ON_BLOCK_CHANGED_ID=s(),i.ON_CHUNKS_LOADED=s(),i.ON_SEND_TESTEMAIL_ID=s(),i.ON_SEND_LIVEPREVIEW_ID=s(),i.ON_SHARE_ID=s(),i.ON_SHOW_PREVIEW_ID=s(),i.ON_EMAIL_CLONE_ID=s(),i.ON_SEND_EMAIL_MODAL_ID=s(),i.ON_NOTIFICATION=s(),i.READ_LOCALE=s(),i.ON_TRANSLATE_ID=s(),i.ON_CODE_VALIDATE_ID=s(),i.UPLOAD_EVENT_ID=s(),i.PROXY_URL_EVENT_ID=s(),i.FILE_PROXY_EVENT_ID=s(),i.ON_LIMIT_ID=s()},93506:(e,t,r)=>{"use strict";r.d(t,{A9:()=>l,BD:()=>me,Bv:()=>N,CJ:()=>p,DS:()=>ge,EW:()=>n,F3:()=>_,IE:()=>X,IJ:()=>f,Jy:()=>G,K0:()=>U,KI:()=>te,KN:()=>_e,N7:()=>B,ND:()=>ce,QV:()=>he,Ru:()=>E,Sr:()=>ae,T:()=>m,Tm:()=>Y,U1:()=>Q,UW:()=>c,V0:()=>d,Vp:()=>de,Vv:()=>O,WU:()=>k,Y$:()=>J,YY:()=>pe,_P:()=>i,bV:()=>w,dO:()=>re,e3:()=>ye,e8:()=>oe,eG:()=>ee,ff:()=>a,hc:()=>R,hz:()=>b,iU:()=>ie,iV:()=>z,iW:()=>x,jg:()=>fe,ky:()=>K,lx:()=>v,mU:()=>le,mX:()=>C,nA:()=>F,nd:()=>h,om:()=>M,oy:()=>s,p5:()=>ne,qG:()=>se,rW:()=>T,rY:()=>$,rb:()=>j,rl:()=>Z,sl:()=>H,ti:()=>S,vc:()=>g,vd:()=>y,xo:()=>W,xv:()=>V,xz:()=>A,y2:()=>u,yI:()=>q,yy:()=>P,z$:()=>L,zX:()=>I,zh:()=>ue,zx:()=>D});var o=r(82711);const a="ERROR",s="useblocks",n={isPlugin:!1},i={isEditor:!1},l={em_token:"em_token",em_elements_view:"em_elements_view",em_new_block:"em_new_block",em_new_email:"em_new_email",em_id:"em_id",em_name:"em_name",em_email:"em_email",em_locale:"em_locale",em_carrotquest_hash:"em_carrotquest_hash",em_ducalis_hash:"em_ducalis_hash",em_email_subscription_consent:"em_email_subscription_consent",em_folder:"em_folder",promocode:"promocode",em_active_tab:"em_active_tab"},d={em_color_scheme:"em_color_scheme",em_code_mode_pane_sizes:"em_code_mode_pane_sizes",em_preview_pane_sizes:"em_preview_pane_sizes",em_default_sizes:"em_default_sizes",em_pane_sizes:"em_pane_sizes",em_test_emails:"em_test_emails",em_menu_is_locked:"em_menu_is_locked",em_code_mode_settings:"em_code_mode_settings",em_folder_is_open:"em_folder_is_open",em_active_tab:"em_active_tab",em_ai_settings:"em_ai_settings",em_last_active_page:"em_last_active_page"},c="deleted",u="all",p="not all",m="light",h="dark",f="system",y="(prefers-color-scheme: light)",_="(prefers-color-scheme: dark)",g={auth:"/auth",projects_index:"/",projects:"/projects",project:"/projects/:projectId/emails",email:"/projects/:projectId/emails/:emailId",create_email:"/projects/:projectId/emails/new",billing:"/billing"},v={ADD_NEW_PROJECT_MODAL:"ADD_NEW_PROJECT_MODAL",EDIT_PROJECT_MODAL:"EDIT_PROJECT_MODAL",BLOCKS_MODAL:"BLOCKS_MODAL",EDIT_PROFILE_MODAL:"EDIT_PROFILE_MODAL",SEND_TEST_EMAIL:"SEND_TEST_EMAIL",ADD_NEW_EBLOCK_MODAL:"ADD_NEW_EBLOCK_MODAL",ADD_NEW_EMAIL_MODAL:"ADD_NEW_EMAIL_MODAL",ADD_NEW_AI_EMAIL:"ADD_NEW_AI_EMAIL",SWITCH_TO_PLAN_MODAL:"SWITCH_TO_PLAN_MODAL",IMAGE_EDITOR_MODAL:"IMAGE_EDITOR_MODAL",ADD_NEW_FOLDER_MODAL:"ADD_NEW_FOLDER_MODAL",EDIT_FOLDER_NAME_MODAL:"EDIT_FOLDER_NAME_MODAL",ADD_NEW_GROUP_MODAL:"ADD_NEW_GROUP_MODAL",EDIT_GROUP_NAME_MODAL:"EDIT_GROUP_NAME_MODAL",RENAME_EMAIL_MODAL:"RENAME_EMAIL_MODAL",RENAME_BLOCK_MODAL:"RENAME_BLOCK_MODAL",UPLOAD_IMAGE_MODAL:"UPLOAD_IMAGE_MODAL",UPLOAD_BACKGROUND_MODAL:"UPLOAD_BACKGROUND_MODAL",UPLOAD_IMAGE_MODAL_AI:"UPLOAD_IMAGE_MODAL_AI",UPLOAD_BACKGROUND_MODAL_AI:"UPLOAD_BACKGROUND_MODAL_AI",UPLOAD_IMAGE_MODAL_STOCK:"UPLOAD_IMAGE_MODAL_STOCK",UPLOAD_BACKGROUND_MODAL_STOCK:"UPLOAD_BACKGROUND_MODAL_STOCK",UPLOAD_IMAGE_MODAL_GIF:"UPLOAD_IMAGE_MODAL_GIF",UPLOAD_BACKGROUND_MODAL_GIF:"UPLOAD_BACKGROUND_MODAL_GIF",UPLOAD_IMAGE_MODAL_EDIT:"UPLOAD_IMAGE_MODAL_EDIT",UPLOAD_BACKGROUND_MODAL_EDIT:"UPLOAD_BACKGROUND_MODAL_EDIT",UPLOAD_IMAGE_MODAL_UPLOAD:"UPLOAD_IMAGE_MODAL_UPLOAD",UPLOAD_BACKGROUND_MODAL_UPLOAD:"UPLOAD_BACKGROUND_MODAL_UPLOAD"};const b="application/x-emailmaker-social-reorder",E={MESSAGE:"message",INIT_PREVIEW:"init_preview",UPDATE_PREVIEW:"update_preview",UPDATE_EDITOR:"update_editor",UPDATE_EDITOR_POSITION:"update_editor_position",UPDATE_SIDE_MENU_EDITOR:"update_side_menu_editor",SAVE_EMAIL:"saveEmail",SANDBOX_ELEMENT_SETTINGS_SET:"sandbox_element_settings_set",SANDBOX_CURRENT_IMAGE_RELOAD:"sandbox_current_image_reload",SANDBOX_NATIVE_IMAGE_DROP_CLEAR:"sandbox_native-image-drop-clear",SANDBOX_EMAIL_SETTINGS_SET:"sandbox_email_settings_set",SANDBOX_BLOCK_SETTINGS_SET:"sandbox_block_settings_set",SANDBOX_ELEMENT_PARENT_GET:"sandbox_element_parent_get",SANDBOX_ELEMENT_PARENT_TABLE_GET:"sandbox_element_parent_table_get",SANDBOX_ELEMENT_PREV_GET:"sandbox_element_prev_get",SANDBOX_ELEMENT_NEXT_GET:"sandbox_element_next_get",SANDBOX_ELEMENT_REMOVE:"sandbox_element_remove",SANDBOX_ELEMENT_ACTIVE_RESET:"sandbox_element_active_reset",SANDBOX_ELEMENT_ACTIVE_SET:"sandbox_element_active_set",SANDBOX_ELEMENT_HOVER_SET:"sandbox_element_hover_set",SANDBOX_ELEMENT_IMG_LINK:"sandbox_element_img_link",SANDBOX_ELEMENT_TEXT:"sandbox_element_text",SANDBOX_EMAIL_CONTENT_GET:"sandbox_email_content_get",SANDBOX_SET_POSITION_TO_IMG:"sandbox_set_position_to_img",SANDBOX_SET_POSITION_TO_LINK:"sandbox_set_position_to_link",SANDBOX_ACCORDION_ADD_SECTION:"sandbox_accordion_add_section",SANDBOX_ACCORDION_REMOVE_SECTION:"sandbox_accordion_remove_section",APPLICATION_FOCUS_IN_IFRAME:"application_focus_in_iframe",APPLICATION_EMAIL_SETTINGS_SET:"application_email_settings_set",APPLICATION_BLOCK_SETTINGS_SET:"application_block_settings_set",APPLICATION_ELEMENT_SETTINGS_SET:"application_element_settings_set",APPLICATION_ELEMENT_SETTINGS_CLOSE:"application_element_settings_close",APPLICATION_ACTION:"application_action",APPLICATION_EBLOCK_ADD:"application_eblock_add",APPLICATION_SCROLL_TO:"application_scroll-to",APPLICATION_SCROLL_BLOCK_SHOW:"application_scroll-block-show",APPLICATION_SCROLL_BLOCK_HIDE:"application_scroll-block-hide",APPLICATION_DISCUSS_SET_ID:"application_discuss_set_id",APPLICATION_DISCUSS_GET_COMMENT:"application_discuss_get_comment",APPLICATION_DISCUSS_NO_COMMENT:"application_discuss_no_comment",APPLICATION_DISCUSS_SAVE_TARGET:"application_discuss_save_target",APPLICATION_IFRAME_SET_HEIGHT:"application_iframe_set_height",APPLICATION_COMMON_STYLES_UPDATE:"application_commonStyles_update",APPLICATION_EMAIL_CONTENT_GET:"application_email_content_get",APPLICATION_OPEN_IMAGE_AI_POPUP:"application_open-image-ai-popup",APPLICATION_OPEN_IMAGE_UPLOAD_POPUP:"application_open-image-upload-popup",APPLICATION_OPEN_IMAGE_EDIT_POPUP:"application_open-image-edit-popup",APPLICATION_OPEN_IMAGE_GIF_POPUP:"application_open-image-gif-popup",APPLICATION_OPEN_IMAGE_STOCK_POPUP:"application_open-image-stock-popup",APPLICATION_CLOSE_IMAGE_EDIT_POPUP:"application_close-image-edit-popup",APPLICATION_NATIVE_IMAGE_DROP:"application_native-image-drop",APPLICATION_SUBJECT_UPDATE:(0,o.Qm)("application_subject_update"),APPLICATION_PREHEADER_UPDATE:(0,o.Qm)("application_preheader_update"),APPLICATION_DOMPARSER_ERROR:(0,o.Qm)("application_domparser_error"),APPLICATION_UPDATE_ENTITY:(0,o.Qm)("application_update_entity"),APPLICATION_IFRAME_DRAG_EVENT:(0,o.Qm)("application_iframe_drag_event"),APPLICATION_HAS_AMP:(0,o.Qm)("application_has_amp"),APPLICATION_PREVIEW_ALERT_SHOW:"application_preview_alert_show",APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW:"application_template_not_em_alert_show",SANDBOX_WINDOW_CHARACTERISTIC:"sandbox_window-characteristic",SANDBOX_IFRAME_SETSIZE:"sandbox_iframe-setsize",SANDBOX_BLOCK_INSERT:"sandbox_block-insert",SANDBOX_ATOM_INSERT:"sandbox_atom-insert",SANDBOX_DRAG_CANCEL:"sandbox_drag-cancel",UPDATE_EDITOR_POSITION_FROM_EDITOR:"update_position_from_editor",UPDATE_EDITOR_POSITION_FROM_IFRAME:"update_position_from_iframe",SANDBOX_CHANGE_PREVIEW:"sandbox_change_preview",APPLICATION_CHANGE_PREVIEW:"application_change_preview",SANDBOX_LOCK_EDIT:"sandbox_lock_edit",SANDBOX_FLOATBLOCK_ADD:"sandbox_floatBlock_add",SANDBOX_FLOATBLOCK_REMOVE:"sandbox_floatBlock_remove",EDITOR_CHANGE_FOCUS:"editor_change_focus",SANDBOX_RESIZED:"sandbox_resized",SANDBOX_LOCK_DISCUSS:"sandbox_lock_discuss",SANDBOX_DISCUSS_SET_TARGET:"sandbox_discuss_set_target",SANDBOX_DISCUSS_REMOVE_TARGET:"sandbox_discuss_remove_target",SANDBOX_DISCUSS_RESET:"sandbox_discuss_reset",SANDBOX_DISCUSS_GET_TARGET:"sandbox_discuss_get_target",SANDBOX_READY:(0,o.Qm)("SANDBOX_READY"),SANDBOX_FLOATBLOCK_WRAP:"sandbox_floatblock_wrap",SANDBOX_FLOATBLOCK_DIR:"sandbox_floatblock_dir",SANDBOX_SUBJECT_UPDATE:(0,o.Qm)("sandbox_subject_update"),SANDBOX_PREHEADER_UPDATE:(0,o.Qm)("sandbox_preheader_update"),SANDBOX_DRAG_EVENT:(0,o.Qm)("sandbox_drag_event"),SANDBOX_ADD_MERGETAG:(0,o.Qm)("sandbox_add_mergetag"),SANDBOX_TRANSLATIONS:(0,o.Qm)("sandbox_send_translations"),SANDBOX_SET_THEME_VARIABLES:(0,o.Qm)("sandbox_send_theme_variables"),SANDBOX_SET_ENTITY:(0,o.Qm)("sandbox_set_entity"),SANDBOX_INIT_START:(0,o.Qm)("sandbox_init_start"),SANDBOX_INITED:(0,o.Qm)("sandbox_inited"),SANDBOX_UPDATE_ENTITY:(0,o.Qm)("sandbox_update_entity"),RELOAD:(0,o.Qm)("reload"),SANDBOX_IS_EMAIL_EMPTY:(0,o.Qm)("sandbox_is_email_empty")},T={language:"html",detectIndentation:!1,wordWrap:"on",wrappingIndent:"same",smoothScrolling:!0,automaticLayout:!0,tabSize:2,indentSize:2};let w=function(e){return e.IMG="img",e.TEXT="text",e.LINK="a",e.TABLE="table",e.VINDENT="vindent",e.TD="td",e.STRUCTURE="structure",e.GROUP="group",e.BUTTON="button",e.DIV="div",e.FLOAT_BLOCK="floatBlock",e.VAR="var",e.EMPTY_TABLE="emptyTable",e.EMPTY_TD="emptyTd",e.COUNTDOWN="countdown",e.VIDEO="video",e.COLUMN="column",e.CAROUSEL="carousel",e.ACCORDION="accordion",e.CUSTOM_TABLE="customTable",e.SOCIAL="social",e}({});const S={ALL:"All",STANDARD:"Standard",PROJECT:"Project"},A="Appearance",C="Structure",P="Settings",q="Properties",O="History",j="Disabled_tab",k="Edit selected element",x="UTM parameters",I="Table properties",M="Edit selected table cells",U="#b9b1b1",D="Edit",L="AiChat",N="Build",$="Styles",R="Discuss",F="Blocks",G="Atoms",B="Optimise",H="FormEditorCalendar",Q="FormEditorDropdownList",W="FormEditorRadio",V="FormEditorCheckbox",K="FormEditorInput",z={top:{width:null,style:null,color:null},right:{width:null,style:null,color:null},bottom:{width:null,style:null,color:null},left:{width:null,style:null,color:null},all:{width:null,style:null,color:null}},X="block",Y="email",J="cards",Z="list",ee="pending",te="d41d8",re="valid",oe="warnings",ae="errors",se={LINKS:"Links",IMAGES:"Images",SPAM_ASSASSIN:"Spam assassin",PROBLEMS:"Problems"},ne="1865",ie=127017,le=24,de="desktop",ce="mobile",ue="emailtags",pe="blocktags",me={text:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif"],fontSize:16,fontSizeDim:"px",lineHeight:21,lineHeightDim:"px",color:"#5a5a5a",contrastColor:"#FFFFFF",textAlign:"left",paddingBottom:10,paddingBottomDim:"px"},headings:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif"],fontSize:24,fontSizeDim:"px",lineHeight:32,lineHeightDim:"px",color:"#333333",contrastColor:"#FFFFFF",textAlign:"left",paddingTop:20,paddingTopDim:"px",paddingBottom:20,paddingBottomDim:"px",letterSpacing:0,letterSpacingDim:"px",bold:!0,italic:!1},links:{color:"#1C52DC",contrastColor:"#FFFFFF",underline:!0},buttons:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif"],fontSize:16,fontSizeDim:"px",letterSpacing:0,letterSpacingDim:"px",color:"#FFFFFF",contrastColor:"#1C52DC",bold:!1,italic:!1,backgroundColor:"#1C52DC",contrastBackgroundColor:"#FFFFFF",marginTop:10,marginTopDim:"px",marginBottom:10,marginBottomDim:"px",border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:5,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},textAlign:"center",padding:{all:null,top:null,right:null,bottom:null,left:null}},block:{backgroundColor:"#FFFFFF",contrastBackgroundColor:"#1C52DC",padding:{all:null,top:null,right:null,bottom:null,left:null}},cards:{contrastBackgroundColor:"#1C52DC",contrastTextColor:"#FFFFFF",baseBackgroundColor:"#F8F8F8",baseTextColor:"#333333",border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:10,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null}}},he=e=>({REORDER_ATOM:e("Reorder element"),CLONE_ATOM:e("Clone element"),REMOVE_ATOM:e("Remove element"),EDIT_ATOM:e("Edit element"),CHANGE_IMAGE:e("Change image"),REORDER_BLOCK:e("Reorder block"),REORDER_BLOCK_UP:e("Move up"),REORDER_BLOCK_DOWN:e("Move down"),EDIT_BLOCK:e("Edit block"),CLONE_BLOCK:e("Clone block"),MERGE_BLOCK:e("Merge with the chosen block"),UNMERGE_BLOCK:e("Split blocks"),COPY_BLOCK_TO_CLIPBOARD:e("Copy block to clipboard"),PASTE_BLOCK_FROM_CLIPBOARD:e("Paste block from clipboard"),REMOVE_BLOCK:e("Remove block"),SAVE_TO_BLOCKS:e("Save to Blocks"),ADD_BLOCK:e("Add block"),ADD_EMPTY_BLOCK:e("Add an empty block"),ADD_SAVED_BLOCK:e("Add a saved block"),ADD_COMMON_BLOCK:e("Add a common block"),ADD_TEMPLATE_BLOCK:e("Add a template block"),ADD_SEARCH_BLOCK:e("Search a block"),REORDER_GROUP:e("Reorder group"),EDIT_GROUP:e("Edit group"),CLONE_GROUP:e("Clone group"),REMOVE_GROUP:e("Remove group"),ADD_GROUP:e("Add group"),LINK:e("link"),TABLE_COLUMN:e("cell"),TABLE:e("table"),FLOAT_BLOCK:e("column"),CONTAINER:e("container"),PICTURE:e("picture"),CAROUSEL:e("carousel"),ACCORDION:e("accordion"),SOCIAL:e("Social media"),VERTICAL_INDENT:e("indent"),TEXT:e("text"),BUTTON:e("button"),VAR:e("variable"),STRUCTURE:e("block"),EMAIL:e("email"),GROUP:e("group"),TYPOGRAF:e("Typograf"),COUNTDOWN:e("countdown"),ELEMENT:e("element"),VIDEO:e("video"),ELEMENT_PATH_LINK:e("Link"),ELEMENT_PATH_BLOCK:e("Block"),ELEMENT_PATH_ATOM:e("Element"),ELEMENT_PATH_TD:e("Cell"),ELEMENT_PATH_TABLE:e("Table"),ELEMENT_PATH_FLOATBLOCK:e("Column"),ELEMENT_PATH_TEXT:e("Text"),ELEMENT_PATH_DIV:e("Container"),ELEMENT_PATH_GROUP:e("Group"),ELEMENT_PATH_EMAIL:e("Email"),ELEMENT_PATH_IMG:e("Picture"),ELEMENT_PATH_VINDENT:e("Indent"),ELEMENT_PATH_BUTTON:e("Button"),ELEMENT_PATH_CAROUSEL:e("Carousel"),ELEMENT_PATH_ACCORDION:e("Accordion"),ELEMENT_PATH_SOCIAL:e("Social media"),ELEMENT_PATH_SECTION:e("Section"),TINYMCE_CHANGECASE:e("Case Change"),TINYMCE_UPPERCASE:e("Uppercase"),TINYMCE_LOWERCASE:e("Lowercase"),PASTE_HERE:e("Drop here"),INSERT_COLUMN_BEFORE_TABLE:e("Insert column before"),INSERT_COLUMN_AFTER_TABLE:e("Insert column after"),INSERT_ROW_BEFORE_TABLE:e("Insert row before"),INSERT_ROW_AFTER_TABLE:e("Insert row after"),MERGE_RIGHT_CELL_TABLE:e("Merge right cell"),MERGE_LEFT_CELL_TABLE:e("Merge left cell"),MERGE_TOP_CELL_TABLE:e("Merge top cell"),MERGE_BOTTOM_CELL_TABLE:e("Merge bottom cell"),SPLIT_CELL_TABLE:e("Split cell"),REMOVE_COLUMN_TABLE:e("Remove column"),REMOVE_ROW_TABLE:e("Remove row"),DROP_BLOCK_HINT:e("Click or drag a block")}),fe={Applications:"Apps",Articles:"Article",Banners:"Banners",Buttons:"Buttons","Call to Action":"Call to Action",Contacts:"Contacts",Content:"Content","E-Commerce":"E-Commerce",Feature:"Features",Footer:"Footers",Header:"Headers",Lists:"Lists",Menu:"Menus",Other:"Others",Polls:"Polls",Promocodes:"Promocodes",Separators:"Separators"},ye={maker:"https://ai-mail.emcdn.ru",blocks:"https://ai-mail.useblocks.io"},_e='\n <svg width="176" height="26" viewBox="0 0 1011 140" xmlns="http://www.w3.org/2000/svg">\n <path d="M439.573 130.401V5.63195H464.743V130.401H439.573Z" fill="currentColor"/>\n <path d="M389.906 130.401V42.8892H415.077V130.401H389.906ZM402.492 29.026C398.297 29.026 394.676 27.7264 391.63 25.127C388.585 22.4699 387.062 18.9464 387.062 14.5563C387.062 10.1086 388.585 6.58501 391.63 3.98566C394.676 1.32855 398.297 0 402.492 0C406.687 0 410.307 1.32855 413.353 3.98566C416.399 6.58501 417.922 10.1086 417.922 14.5563C417.922 18.9464 416.399 22.4699 413.353 25.127C410.307 27.7264 406.687 29.026 402.492 29.026Z" fill="currentColor"/>\n <path d="M313.564 133C305.232 133 297.79 131.065 291.238 127.195C284.687 123.267 279.515 117.808 275.722 110.819C271.987 103.83 270.119 95.7716 270.119 86.645C270.119 79.7712 271.182 73.5038 273.309 67.843C275.492 62.1822 278.538 57.3013 282.446 53.2001C286.354 49.0411 290.951 45.8641 296.238 43.6691C301.582 41.4164 307.358 40.29 313.564 40.29C321.84 40.29 328.822 42.0806 334.511 45.662C340.258 49.2433 344.453 53.9221 347.096 59.6984L343.562 65.1571V42.8893H365.457V130.401H343.562V108.133L347.096 113.592C344.453 119.368 340.258 124.047 334.511 127.628C328.822 131.209 321.84 133 313.564 133ZM317.616 111.079C321.983 111.079 325.891 110.097 329.339 108.133C332.787 106.111 335.488 103.281 337.442 99.6417C339.453 96.0026 340.459 91.6704 340.459 86.645C340.459 81.6196 339.453 77.2873 337.442 73.6483C335.488 70.0092 332.787 67.2076 329.339 65.2437C325.891 63.222 321.983 62.2111 317.616 62.2111C313.306 62.2111 309.427 63.222 305.979 65.2437C302.531 67.2076 299.801 70.0092 297.79 73.6483C295.836 77.2873 294.859 81.6196 294.859 86.645C294.859 91.6704 295.836 96.0026 297.79 99.6417C299.801 103.281 302.531 106.111 305.979 108.133C309.427 110.097 313.306 111.079 317.616 111.079Z" fill="currentColor"/>\n <path d="M109.755 130.401V42.8893H134.925V54.1532C137.109 51.0339 139.638 48.4635 142.511 46.4418C145.442 44.3623 148.545 42.8316 151.821 41.8496C155.154 40.8098 158.487 40.29 161.82 40.29C168.429 40.29 174.06 41.7918 178.715 44.7955C183.427 47.7414 186.674 51.6405 188.456 56.4926C192.134 50.7162 196.846 46.5862 202.593 44.1024C208.339 41.5608 214.345 40.29 220.609 40.29C228.941 40.29 235.521 41.9073 240.348 45.1421C245.176 48.3191 248.595 52.4491 250.606 57.5323C252.675 62.6155 253.709 67.9586 253.709 73.5616V130.401H228.539V80.8398C228.539 75.5833 227.131 71.3377 224.315 68.103C221.557 64.8682 217.477 63.2509 212.075 63.2509C208.684 63.2509 205.638 64.0018 202.937 65.5036C200.237 67.0055 198.11 69.0272 196.559 71.5688C195.064 74.0526 194.317 76.9119 194.317 80.1466V130.401H169.147V80.8398C169.147 75.5833 167.739 71.3377 164.923 68.103C162.107 64.8682 158.027 63.2509 152.683 63.2509C149.235 63.2509 146.16 64.0018 143.459 65.5036C140.816 67.0055 138.718 69.0272 137.167 71.5688C135.672 74.0526 134.925 76.9119 134.925 80.1466V130.401H109.755Z" fill="currentColor"/>\n <path d="M4 130.401V9.0978H86.4938V31.4522H29.5153V57.4456H77.7875V78.1538H29.5153V107.786H87.1834V130.401H4Z" fill="currentColor"/>\n <path d="M958.676 130.4V45.488H974.537V57.7916C977.928 52.2463 981.951 48.3762 986.605 46.1812C991.318 43.9284 996.317 42.8021 1001.6 42.8021C1003.27 42.8021 1004.88 42.8887 1006.43 43.062C1007.98 43.2353 1009.51 43.4663 1011 43.7551L1008.67 60.3043C1007.06 59.8422 1005.43 59.4956 1003.76 59.2646C1002.09 58.9758 1000.45 58.8314 998.846 58.8314C991.777 58.8314 985.944 61.0552 981.347 65.503C976.807 69.893 974.537 75.7849 974.537 83.1786V130.4H958.676Z" fill="currentColor"/>\n <path d="M899.208 132.999C890.244 132.999 882.342 131.122 875.503 127.367C868.665 123.613 863.32 118.385 859.47 111.685C855.62 104.926 853.695 97.0705 853.695 88.1172C853.695 81.6477 854.786 75.6403 856.97 70.095C859.211 64.5498 862.315 59.7554 866.28 55.712C870.302 51.6686 874.986 48.5205 880.331 46.2677C885.732 44.0149 891.594 42.8885 897.915 42.8885C904.754 42.8885 910.845 44.1016 916.19 46.5276C921.592 48.9537 926.045 52.3617 929.551 56.7517C933.114 61.084 935.671 66.196 937.223 72.0879C938.774 77.922 939.09 84.2759 938.171 91.1497H869.383C869.211 96.8105 870.36 101.778 872.831 106.053C875.302 110.269 878.865 113.562 883.52 115.93C888.232 118.298 893.806 119.483 900.243 119.483C904.955 119.483 909.552 118.732 914.035 117.23C918.517 115.728 922.482 113.504 925.93 110.558L932.654 122.429C929.896 124.681 926.62 126.616 922.827 128.234C919.092 129.793 915.184 130.977 911.104 131.786C907.024 132.595 903.059 132.999 899.208 132.999ZM870.245 78.7595H922.31C922.08 71.5969 919.868 66.0227 915.673 62.0371C911.478 57.9936 905.472 55.9719 897.657 55.9719C890.071 55.9719 883.807 57.9936 878.865 62.0371C873.923 66.0227 871.05 71.5969 870.245 78.7595Z" fill="currentColor"/>\n <path d="M769.271 130.4V5.63148H785.132V82.1389L821.078 45.4881H840.042L810.13 77.3735L845.042 130.4H825.905L798.58 87.6842L785.132 101.287V130.4H769.271Z" fill="currentColor"/>\n <path d="M695.277 132.999C686.772 132.999 679.244 131.006 672.692 127.021C666.141 123.035 661.027 117.663 657.349 110.905C653.671 104.089 651.832 96.4351 651.832 87.9439C651.832 81.5899 652.895 75.6692 655.021 70.1817C657.148 64.6942 660.136 59.9287 663.986 55.8853C667.836 51.7841 672.405 48.6071 677.692 46.3543C683.036 44.0438 688.898 42.8885 695.277 42.8885C703.782 42.8885 710.85 44.6792 716.482 48.2605C722.114 51.8419 726.51 56.4051 729.671 61.9504L727.343 65.4162V45.4879H741.825V130.4H727.343V110.472L729.671 113.851C726.51 119.396 722.114 123.988 716.482 127.627C710.85 131.209 703.782 132.999 695.277 132.999ZM697.001 118.616C702.633 118.616 707.632 117.374 712 114.89C716.367 112.349 719.787 108.796 722.258 104.233C724.786 99.6121 726.05 94.1823 726.05 87.9439C726.05 81.6477 724.786 76.2179 722.258 71.6546C719.787 67.0336 716.367 63.4811 712 60.9973C707.632 58.5135 702.633 57.2716 697.001 57.2716C691.369 57.2716 686.37 58.5135 682.002 60.9973C677.635 63.4811 674.187 67.0336 671.658 71.6546C669.129 76.2179 667.865 81.6477 667.865 87.9439C667.865 94.1823 669.129 99.6121 671.658 104.233C674.187 108.796 677.635 112.349 682.002 114.89C686.37 117.374 691.369 118.616 697.001 118.616Z" fill="currentColor"/>\n <path d="M505.425 130.4V9.09733H521.2L571.541 90.9768H565.335L613.952 9.09733H629.295V130.4H613.435L613.607 31.2784L616.796 32.3182L573.696 103.107H561.197L517.58 32.3182L520.079 31.2784L520.252 130.4H505.425Z" fill="currentColor"/>\n </svg>\n',ge='\n <svg width="47" height="24" viewBox="0 0 236 140" xmlns="http://www.w3.org/2000/svg">\n <path d="M4 130.401V9.09779H86.4938V31.4522H29.5153V57.4456H77.7875V78.1538H29.5153V107.786H87.1834V130.401H4Z" fill="currentColor"/>\n <path d="M107 130.4V9.09734H122.775L173.116 90.9768H166.91L215.527 9.09734H230.87V130.4H215.01L215.182 31.2784L218.371 32.3182L175.271 103.107H162.772L119.155 32.3182L121.654 31.2784L121.827 130.4H107Z" fill="currentColor"/>\n </svg>\n'},82711:(e,t,r)=>{"use strict";function o(e){return e}r.d(t,{Qm:()=>o,bg:()=>l});const a="INIT_MESSAGE";function s(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}class n{constructor(){this._children=[],this._isDisposed=!1}isDisposed(){return this._isDisposed}addDisposable(e){return this._children.push(e),e.hasOwnProperty("addDisposable")&&e.addDisposable({dispose:()=>{const t=this._children.indexOf(e);t>=0&&this._children.splice(t,1)}}),e}removeDisposable(e){const t=this._children.indexOf(e);t>=0&&this._children.splice(t,1)}dispose(){this._isDisposed=!0;for(const e of this._children)e.dispose()}}class i extends n{constructor(...e){super(...e),this._listeners=Object.create(null),this.addListenerAsync=(e,t,r=0,o)=>{const a=this._listeners[e]||(this._listeners[e]=[]);o&&"function"===typeof t&&(t=t.bind(o));const s=a.findIndex(([e,t])=>r<=t),n=[t,r];return this.isDisposed()||a.splice(s>=0?s:a.length,0,n),{dispose(){const e=a.indexOf(n);e>=0&&a.splice(e,1)}}},this.fireAsync=(e,t)=>{if(!this.isDisposed()){const r=this._listeners[e]||(this._listeners[e]=[]);let o;for(let e=0;e<r.length;e++){const t=r[e][0],a=o;o=e=>t(e,a)}if(o)return o(t)}},this.addListener=(e,t,r=0)=>this.addListenerAsync(e,(e,r)=>{try{t(e)}catch(o){}return r&&r(e)},r)}}class l extends n{constructor(e,t){super(),this._singleton=t,this._target=void 0,this._inited=!1,this._emitter=this.addDisposable(new i),this._onReceiveMessage=e=>{const t=e.data;if((r=t)&&"object"===typeof r&&e.source==this.target||this._singleton&&function(e,t){return e&&"object"===typeof e&&e.operationId===t}(t,a)){const r=this._emitter.fireAsync(t.operationId||"",void 0===t.operationId?e:t.data),o=t.result,a=t.error;o&&a&&Promise.resolve(r).then(e=>this._sendMessage(o,e),e=>this._sendMessage(a,e))}var r},window.addEventListener("message",this._onReceiveMessage),this.addListener(a,()=>{this._inited||(this._inited=!0,this.send(a))}),e&&this.setTarget(e)}setTarget(e){this._target!==e&&(this._target=e,e&&e.postMessage({operationId:a,data:{}},"*"))}getTarget(){return this._target}get target(){return this._target}_sendMessage(e,t,r=!0){if(!r&&!this.isInited())return;const o=this.addDisposable(this.onInit(r=>{const a=e?{operationId:e,data:t}:t;r.postMessage({...a},"*"),o.dispose()}))}send(e,t,r){return"string"===typeof e?this._sendMessage(e,t,r):this._sendMessage("",e,t)}sendAsync(e,t,r=!0){if(!r&&!this.isInited())return Promise.resolve();const o=s(),a=s();return new Promise((r,s)=>{const i=this.addDisposable(new n);i.addDisposable(this.onInit(n=>{n.postMessage({operationId:e,data:t,result:o,error:a},"*"),i.addDisposable(this._onMessage(o,e=>{r(e),i.dispose()})),i.addDisposable(this._onMessage(a,e=>{s(e),i.dispose()}))}))})}_onMessage(e,t,r=0){return this._emitter.addListener(e,t,r)}addListener(e,t,r){return t?this._onMessage(e,t,r):this._onMessage("",e)}addListenerAsyncPipe(e,t,r=0){return this._emitter.addListenerAsync(e,t,r)}addListenerAsync(e,t,r=0){return this._emitter.addListenerAsync(e,async(e,r)=>{const o=await t(e);return r?r(e):o},r)}isInited(){return this._inited}get inited(){return this._inited}onInit(e,t=!0,r=0){const o=this.addDisposable(new n);return this._inited&&this._target?t&&Promise.resolve().then(()=>{this._inited&&this._target?e(this._target):o.addDisposable(this.onInit(e,t,r))}):o.addDisposable(this._onMessage(a,()=>{e(this._target)},r)),o}dispose(){window.removeEventListener("message",this._onReceiveMessage),super.dispose()}}},68876:(e,t,r)=>{"use strict";r.d(t,{Mu:()=>g,cM:()=>b,Vi:()=>_,fy:()=>y,n1:()=>i,ZJ:()=>n,rD:()=>v});var o=r(69962),a=r(19684),s=r(28589);function n(e,t){for(const r of e)if(r&&t in r)return r[t]}function i(e){return Object.assign({},...e)}const l=["generic","stockImages","emFiles","cdn"];function d(e){return!!e&&"object"===typeof e&&!Array.isArray(e)}function c(e){return!!d(e)&&(!("match"in e||"rewrite"in e||"proxyBase"in e)&&Object.keys(e).some(e=>l.includes(e)))}function u(e){return 0===e.length?[]:1===e.length?e[0]:e}function p(e){let t=!1,r=[];for(const o of e)void 0!==o&&(t=!0,r=Array.isArray(o)?[...o,...r]:[o,...r]);if(t)return u(r)}function m(e){return d(e)&&("value"in e||"replace"in e)}function h(e,t){return void 0===t?e:Array.isArray(t)?[...t,...e]:[t,...e]}function f(e){let t=!1,r=[],o=!1;for(const s of e)void 0!==s&&(m(s)?(t=!0,s.replace&&(r=[],o=!0),void 0!==s.value&&(r=h(r,s.value),o=!0)):(r=h(r,s),o=!0));const a=o?u(r):void 0;return t?void 0!==a?{value:a}:void 0:a}function y(e){const t=e.filter(e=>void 0!==e);if(0===t.length)return;if(!t.some(e=>c(e)))return p(t);const r={};for(const o of l){const t=f(e.map(e=>{if(void 0!==e)return c(e)?e[o]:"generic"===o?e:void 0}));void 0!==t&&(r[o]=t)}return Object.keys(r).length>0?r:void 0}function _(e){return p(e)}function g(e){if(e){const{type:t,project:r,isNew:o,id:a}=e;return`/projects/${r}/${"block"===t?"blocks":"emails"}/${o?`new?template=${a}`:a}`}return""}function v(){return(0,o.d4)(a.zg)}function b(e,t,r){return null!==e&&void 0!==e&&e.length?e.map((e,o)=>function(e){return e.hasOwnProperty("children")}(e)?{key:(0,s.l)(),value:e.value,label:e.label,children:b(e.children,t,r),type:"group"}:{key:(0,s.l)(),label:e.label,value:e.value,onClick:t=>{r(e.value,t.domEvent)}}):void 0}},97503:(e,t,r)=>{"use strict";function o(){const e=new Date;return e.valueOf()-60*e.getTimezoneOffset()*1e3}r.d(t,{N:()=>o})},20263:(e,t,r)=>{"use strict";r.d(t,{di:()=>n});var o=r(38615),a=r(40713),s=r(83111);const n={getContainer:s.My,createIdentifier:a.Q,reducer:s.Ff,reducerPath:s.IP,getInstance:function(e,t){return(e instanceof o.m?e:(0,s.My)(e)).getInstance(t)},getInstanceAsync:function(e,t){return(e instanceof o.m?e:(0,s.My)(e)).getInstanceAsync(t)},getOrCreateInstance:function(e,t,r){return(e instanceof o.m?e:(0,s.My)(e)).getOrCreateInstance(t,r)},inject:function(e,t,r,o){return(0,s.My)(e).inject(t,r)},addService:function(e,t,r){return(0,s.My)(e).addService(t,r)},getServices:function(e,t){return(0,s.My)(e).getServices(t)},useInject:s.lg,useInstance:s.Nj,useInstanceAsync:s.rl,useServices:s.A$}},38615:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i,m:()=>n});var o=r(99182),a=r(82106);function s(e){return`service_container_${e}`}class n extends a.j{constructor(e){super(),this._parent=e,this._injections=Object.create(null),this._emitter=this.addDisposable(new o.v)}inject(e,t,r){if("function"===typeof t){const o=this._injections[e];let a="function"===typeof o?o():o;const s=this._injections[e]=()=>(a=t(this,a),a);r&&s()}else this._injections[e]=()=>t;this._emitter.fire(e)}_find(e){var t;return this._injections[e]||(null===(t=this._parent)||void 0===t?void 0:t._find(e))}_onInject(e,t,r=new a.j){return r.addDisposable(this._emitter.addEventListener(o=>{e===o&&(r.dispose(),t(this.getInstance(o)))})),this._parent&&r.addDisposable(this._parent._onInject(e,t,r)),this.addDisposable(r),r}getInstance(e){const t=this._find(e);if("function"===typeof t)return t()}getOrCreateInstance(e,t){const r=this._find(e);if("function"===typeof r)return r();{const r=t(this);return this.inject(e,r),r}}getInstanceAsync(e){const t=this._find(e);return"function"===typeof t?Promise.resolve(t()):new Promise(t=>this._onInject(e,()=>t(this.getInstance(e))))}addService(e,t){const r=s(e);this.inject(r,(e,r=[])=>r.indexOf(t)<0?[...r,t]:r);const o=new a.j;return o.addDispose(()=>{this.inject(r,(e,r=[])=>r.filter(e=>e!==t))}),o}getServices(e){var t;const r=s(e);return[...this.getInstance(r)||[],...(null===(t=this._parent)||void 0===t?void 0:t.getServices(e))||[]]}createChild(){return new n(this)}dispose(){this._injections=Object.create(null)}}const i=new n},40713:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a});var o=r(28589);function a(e=(0,o.l)()){return e}},72496:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o.Q});var o=r(38615)},83111:(e,t,r)=>{"use strict";r.d(t,{A$:()=>h,Ff:()=>d,IP:()=>l,My:()=>i.My,NF:()=>c,Nj:()=>p,lg:()=>u,rl:()=>m});var o=r(1936),a=r(69962),s=r(40713),n=r(38615),i=r(72749);const l=i.if,d=(e,t)=>{if(!e){const e=n.Q.createChild(),t=(0,s.Q)();return n.Q.inject(t,e),t}return e};function c(){const e=(0,a.Pj)();return(0,o.useMemo)(()=>(0,i.My)(e),[e])}function u(){const e=(0,a.Pj)(),t=(0,i.My)(e);return function(e,r){t.inject(e,r)}}function p(e){const t=(0,a.Pj)();return(0,i.My)(t).getInstance(e)}function m(e){const[t,r]=(0,o.useState)(),s=(0,a.Pj)(),n=(0,o.useRef)(Promise.resolve()),l=(0,i.My)(s);return(0,o.useEffect)(()=>{const t=n.current=n.current.then(()=>l.getInstanceAsync(e)).then(e=>{t===n.current&&r(e)},e=>{})},[r,e,s,l]),t}function h(e){const t=(0,a.Pj)();return(0,i.My)(t).getServices(e)}},67630:(e,t,r)=>{"use strict";r.d(t,{p:()=>a});var o=r(83111);function a(e){return(t,r,a,s)=>{const n=(0,o.My)(r);return e(n)(t,r,a,s)}}},72749:(e,t,r)=>{"use strict";r.d(t,{My:()=>n,dY:()=>s,if:()=>a});var o=r(38615);const a="INJECTION";function s(e){return e.getState}function n(e){if(s(e)){const t=e.getState()[a];return t&&o.Q.getInstance(t)}return e}},82106:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});class o{constructor(e=[]){this._inner=e,this._isDisposed=!1}addDisposable(e){return this._inner.push(e),e instanceof o&&e.addDispose(()=>{this.removeDisposable(e)}),e}addDispose(e){this.addDisposable({dispose:e})}removeDisposable(e){const t=this._inner.indexOf(e);t>=0&&this._inner.splice(t,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const e of[...this._inner])e.dispose()}}}},7714:(e,t,r)=>{"use strict";r.d(t,{K9:()=>p,QC:()=>c,XW:()=>u,ur:()=>d});var o=r(82711),a=r(20263),s=r(69962),n=r(40713),i=r(1936);const l=(0,n.Q)("MESSAGE_SERVICE");function d(){const e=c();return(0,i.useCallback)(t=>{e.setTarget(t instanceof Element?t.contentWindow:t)},[e])}function c(){const e=(0,s.Pj)();return(0,i.useMemo)(()=>function(e){return a.di.getOrCreateInstance(e,l,()=>new o.bg)}(e),[e])}function u(){const e=c();return(0,i.useCallback)(function(t){e.send(t)},[e])}function p(){const e=c();return(0,i.useCallback)(function(t,r){e.send(t,r)},[e])}},99182:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var o=r(82106);class a extends o.j{constructor(e){super(),this._options=e,this._listeners=[],this.fire=e=>{if(!this.isDisposed()){let t;const r=[...this._listeners];for(const o of r){if(!1===t)return!1;t=t instanceof Promise?t.then(e=>!1!==e&&!this.isDisposed()&&o(e)).catch(e=>{}):o(e)}return t}},this.addEventListener=e=>{const t=this._listeners,r=this._options;var o;(t.push(e),1===t.length)&&((null===(o=this._options)||void 0===o?void 0:o.onFirstListenerAdd)&&this._options.onFirstListenerAdd());return{dispose:()=>{const o=t.indexOf(e);o>=0&&(t.splice(o),t.length||(null===r||void 0===r?void 0:r.onFirstListenerAdd)&&r.onLastListenerRemove())}}},this.event=this.addEventListener}}let s;!function(e){function t(e){let t;const r=new a({onFirstListenerAdd(){t=e(r.fire)},onLastListenerRemove(){t.dispose()}});return r.event}e.snapshot=t,e.filter=function(e,r){return t(t=>e(e=>r(e)&&t(e)))},e.map=function(e,r){return t(t=>e(e=>t(r(e))))}}(s||(s={}))},11822:(e,t,r)=>{"use strict";r.d(t,{qy:()=>x,An:()=>O,T5:()=>B,pH:()=>w,Ay:()=>A,$l:()=>S,SR:()=>R,hs:()=>$,Ce:()=>N,gZ:()=>F,PJ:()=>M,bc:()=>k});var o=r(15938),a=r.n(o),s=r(30338),n=r(15301),i=r(1331),l=r(51121),d=r(28589);const c=Symbol("Error");function u(e){return Promise.all(e.map(e=>e instanceof Promise?e.catch(e=>c):e)).then(e=>e.filter(e=>e!==c))}var p=r(4889),m=r(61578),h=r(45386),f=r(22148),y=r(11628);class _ extends m.j{constructor(e){super(),this._commitPromise=void 0,this._mutationCollector=void 0,this._onLostSummaries=e=>{try{this._mutationCollector.stop(),(0,f.f)(e)}finally{this._mutationCollector.start()}},this._mutationCollector=this.addDisposable(new h.R({rootNode:e,oldPreviousSibling:!0})),this._mutationCollector.onLost(this._onLostSummaries)}commit(){if(this._commitPromise)return this._commitPromise;{const e=()=>new Promise(e=>{const t=this._mutationCollector.onMutate(r=>{this._commitPromise=void 0,e(),t.dispose()});(0,y.A)(()=>{this._commitPromise=void 0,e(),t.dispose()})});return this._commitPromise=e().catch(e=>{})}}}var g=r(59059);function v(e,t){const r=new g.lt,o=new g.lt;try{const a=(0,l.$$)(e),s=document.implementation.createHTMLDocument();return(0,i.d1)(s,a),{document:s,handleRender:o.event,handleReadHtml:r.event,async run(){if(o.hasListeners()){const a=document.createElement("iframe");a.style.position="absolute",a.style.left="-10000px",document.body.appendChild(a);const n=a.contentWindow.document,l=new _(a.contentDocument);try{if(t){const[e,r]=t;void 0!==e&&a.setAttribute("width",String(e)),void 0!==r&&a.setAttribute("height",String(r))}(0,i.d1)(n,[...s.childNodes]),l.commit()}catch(e){throw e}finally{try{try{await o.fire({managedNodeController:l,contentDocument:n})}catch(e){}const t={contentDocument:n,html:(0,i.b6)(n)};try{await r.fire(t)}finally{return t.html}}finally{a.parentNode===document.body&&document.body.removeChild(a)}}}else{const e={contentDocument:s,html:(0,i.b6)(s)};try{await r.fire(e)}finally{return e.html}}}}}catch(a){throw a}}const b=/url(?:\((['|"]?))(.*?\.(png|jpg|gif|jpeg|tiff){1})(?:['|"]?\))/gi,E="data:message/rfc822 eml,";function T(e){return e.replaceAll(/[\\\/:*?"<>|]/g,"_")}async function w(e,t,r,o,a){const s={Subject:e,"X-Unsent":1,"Content-Type":"function"===typeof a?"text/html;charset=utf-8":'multipart/alternative; boundary="boundary-string"'};return`${Object.keys(s).reduce((e,t)=>`${e}${t}:${s[t]}\n`,E)}\n${"function"===typeof a?await U(t,r,o,a):(await u(Object.keys(a).map(async e=>`\n--boundary-string\nContent-Type: ${e}\n\n${await U(t,r,o,a[e])}\n\n\n`))).join("")+"----boundary_string--"}`}function S(e,t=!0){const r=e.replace("\\","/").split("/"),o=r[r.length-1];return t?T(o):o}function A(e){const t=e.replace("\\","/").split("/"),r=t[t.length-1],o=r.lastIndexOf("."),a=r.slice(o+1);return-1!==o&&function(e){return!(e.length>8||e.length<1)&&!/[^\x00-\x7F]/.test(e)&&!/[\\\/:*?"<>|&=%]/.test(e)&&!!/[a-zA-Z]/.test(e)&&!/^\d+$/.test(e)}(a)?[T(r.slice(0,o)),a]:[T(r),""]}function C(e){return R(e).then(e=>F(e))}function P(e){return e.replace("<script","<___script").replace("<\/script>","</___script>")}const q=new n.uI(e=>{e.escape("<script","<\/script>",e=>P(e)).unescape("<___script","</___script>",e=>e.replace("<___script","<script").replace("</___script>","<\/script>")),e.escape("<script","/>",e=>P(e)).unescape("<___script","/>",e=>e.replace("<___script","<script")),(0,n.Hk)(e)});async function O(e,t,r){const o=v(e=q.getEscapedText(e),r);try{const r=o.document,s=r.querySelectorAll("tbody");for(const e of s)e.replaceWith(...e.childNodes);r.querySelectorAll("em-replace").forEach(e=>{if(e.hasAttribute("text")&&(e.insertAdjacentHTML("beforebegin",e.getAttribute("text")),e.parentNode.removeChild(e)),e.hasAttribute("src")){const t=e.querySelector("img");t.setAttribute("src",e.getAttribute("src")),e.replaceWith(t)}});try{await t(o,e)}catch(a){}e=await o.run()}catch(a){throw a}return q.getUnescapedText(e)}function j(e,t,r){try{if("function"===typeof r){const o=[];return String.prototype.replace.call(e,t,function(){return o.push(r.apply(void 0,arguments)),""}),u(o).then(function(r){return String.prototype.replace.call(e,t,function(){return r.shift()})})}return Promise.resolve(String.prototype.replace.call(e,t,r))}catch(o){return Promise.reject(o)}}async function k(e,t,r=new Map,o){await async function(e,t,r=new Map,o){const a=e=>{let o=r.get(e);return o||(o=t(e),r.set(e,o)),o instanceof Promise?o:Promise.resolve(o)};function s(e){return j(e,b,async(e,t="",r)=>`url(${t}${await a(r)}${t})`)}async function n(e){const t=e.getAttribute("style");if(t){const r=await s(t);t!==r&&(e.setAttribute("style",r),o&&o())}}const d=document.createNodeIterator(e,NodeFilter.SHOW_ALL),c=[];for(;;){const e=d.nextNode();if(null===e)break;if((0,i.vq)(e)){c.push(n(e));const t=e.getAttribute("background");if(t&&c.push(a(t).then(r=>{e.setAttribute("background",r||t),o&&o()})),(0,i.A6)(e)||(0,i.M6)(e)){const t=e.getAttribute("src"),r=t&&q.hasDetectedMappings(t,!0,!0)?t:("src"in e?e.src:"")||t;r&&c.push(a(r).then(t=>{t||(t=r),e.setAttribute("src",t),o&&o()}))}if((0,i.ST)(e)){const t=e.innerHTML;t&&c.push(s(t).then(r=>{r!==t&&(e.innerHTML=r,o&&o())}))}}else if((0,i.Cn)(e)){const t=(0,i.ih)(e),r=null===t||void 0===t?void 0:t.content;r&&c.push(j(r,/<v:fill.*>/gi,async e=>{const t=await j(e,/src="([^"]*)"/gi,async(e,t)=>`src="${await a(t)||t}"`);return j(t,/src='([^']*)'/gi,async(e,t)=>`src='${await a(t)||t}'`)}).then(a=>{r!==a&&(e.replaceWith((0,l.$$)(`${t.open}${a}${t.close}`)[0]),o&&o())}))}}return u(c)}(e,t,r,o)}const x=800;function I(e,t,r){let o=e.href;if(o=(0,p.o)(o),o&&e.protocol.startsWith("http")){const a=function(e){const t=new Map;let r=0;for(;r>=0;)if(r=e.indexOf("\x3c!--",r),r>=0){const o=e.indexOf("--\x3e",r);t.set(e.substring(r,o+3),(0,d.l)()),r=o}return t}(o);a.forEach((e,t)=>{o=o.replaceAll(t,e)});const s=o.indexOf("#");let n=s>=0?o.substring(0,s):o;const i=s>=0?o.substring(s+1):"",l=o.indexOf("?"),c=l>=0?n.substring(l+1):"";if(n=l>=0?n.substring(0,l):n,e.host!==document.location.host){const s=new Map(c.split("&").filter(e=>e.indexOf("=")>=0).map(e=>e.split("=")));let l=c;if(t){const e=Object.keys(t);for(const r of e)t[r]&&!s.has(r)&&(l=l+(l?"&":"")+`${r}=${t[r]}`)}l!==c&&(o=n+(l?`?${l}`:"")+(i?`#${i}`:""),a.forEach((e,t)=>{o=o.replaceAll(e,t)}),e.setAttribute("href",o),r&&r())}}}async function M(e,t,r,o){let[a,s]=t||[x];return"number"===typeof a&&(a+="px"),"number"===typeof s&&(s+="px"),e=await O(e,async e=>{const t=e.document;await k(t,e=>q.getEscapedText(e)!==e?e:(0,p.o)(e));const a=t.querySelectorAll("a");for(const o of a)I(o,r);if(o)return o(e)},[a,s])}async function U(e,t,r,o){let[a,s]=t||[x];return"number"===typeof a&&(a+="px"),"number"===typeof s&&(s+="px"),e=(e=await O(e,async e=>{const t=e.document;if(await k(t,e=>q.getEscapedText(e)!==e?e:(0,p.o)(e)),e.handleRender(async({contentDocument:e,managedNodeController:t})=>{const o=e.querySelectorAll("*");for(const a of o)if((0,i.A6)(a)){const e=await(0,i.rq)(a);if(e){const t=parseInt(e.height),r=parseInt(e.width);isNaN(t)||a.setAttribute("height",String(t)),isNaN(r)||a.getAttribute("width")||a.setAttribute("width",String(r))}t.commit()}else if((0,i.Lv)(a)){const e=parseInt(getComputedStyle(a).width);isNaN(e)||"BODY"===a.parentElement.tagName||a.setAttribute("width",String(e)),t.commit()}else"TD"===a.tagName||"A"===a.tagName&&I(a,r,()=>t.commit())}),o)return o(e)},[a,s])).replaceAll(/<tbody>/gi,"").replaceAll(/<\/tbody>/gi,"")}const D="images",L=40;async function N(e,t,r,o=C,a){const n=Object.create(null);let[i,l]=t||[x];"number"===typeof i&&(i+="px"),"number"===typeof l&&(l+="px");const d=new Set,c=await O(e,async e=>{const t=e.document;await k(t,async e=>{q.getEscapedText(e)===e&&(e=(0,p.o)(e));const t=await o(e);let[r,a]=A(e);if(r.length>L&&(r=function(){const e=new Date;return`${e.toISOString().slice(2,10).replace(/-/g,"").concat("_",e.toTimeString().slice(0,5).replace(/:/g,""))}_${Array.from({length:8},()=>"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()))).join("")}`}()),!a||!s.A.getType(a))try{a=s.A.getExtension(t.type)}catch(u){}let i=`${r}.${a}`,l=1;for(;d.has(i);)i=`${r}(${++l}).${a}`;d.add(i);const c=`${D}/${i}`;return n[c]=t,c});const i=t.querySelectorAll("a");for(const o of i)I(o,r);if(a)return a(e)},[i,l]);return n["index.html"]=new Blob([c],{type:"text/html;charset=utf-8"}),n}function $(e){const t=new(a());for(const r of Object.keys(e)){let o=t;const a=r.split("/"),s=a.length-1;for(let e=0;e<s;e++)o=t.folder(a[e]);o.file(a[s],e[r])}return t.generateAsync({type:"blob",compression:"DEFLATE"})}function R(e){const t=new Image;return t.crossOrigin="anonymous",new Promise((r,o)=>{t.onload=()=>r(t),t.onerror=o,t.src=e})}function F(e,t="image/png",r){const o=document.createElement("canvas");o.width=e.width,o.height=e.height;return o.getContext("2d").drawImage(e,0,0),new Promise((e,a)=>o.toBlob(t=>t?e(t):a("blob is null"),t,Number(r)||0))}function G(e){var t;const r=null===(t=e.ownerDocument)||void 0===t?void 0:t.body;if(r&&function(e,t){do{if(e===t)return!0;e=e.parentNode}while(e);return!1}(e,r)){if((0,i.vq)(e)){if("IMG"===e.tagName)return"";if("SPAN"===e.tagName&&e.classList.contains("preheader"))return""}if("#text"===e.nodeName)return e.textContent}return e.childNodes?[...e.childNodes].map(G).join(""):""}function B(e){const t=v(e),{document:r}=t;try{return G(r).replace(/\u2800/g,"").replace(/(\r\n|\r|\n){2,}/g,"\n").trim()}catch(o){return""}}},91480:(e,t,r)=>{"use strict";r.d(t,{u:()=>s});var o=r(1936),a=r(68876);const s=()=>{const e=(0,a.rD)();return(0,o.useCallback)((t,r)=>{!1!==e.pushToGTM&&((e,t)=>{const r=()=>{try{const t={...e,appLabel:"blocks_app"};window.dataLayer&&"function"===typeof window.dataLayer.push&&window.dataLayer.push(t);const r="string"===typeof t.event&&t.event.trim()?t.event.trim():null,o=("string"===typeof t.action&&t.action.trim()?t.action.trim():null)||("string"===typeof t.event_action&&t.event_action.trim()?t.event_action.trim():null);let a;a=r&&o?`${r}_${o}`:r||o||"event";const{event:s,action:n,...i}=t;"event_action"in i&&delete i.event_action;const l={...i,...r?{event:r}:{},...o?{action:o}:{}};"undefined"!==typeof window&&window.amplitude&&"function"===typeof window.amplitude.track&&window.amplitude.track(a,l)}catch(t){}};t?setTimeout(r,t):r()})(t,r)},[e.pushToGTM])}},28589:(e,t,r)=>{"use strict";function o(){let e=(new Date).getTime(),t="undefined"!==typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){let o=16*Math.random();return e>0?(o=(e+o)%16|0,e=Math.floor(e/16)):(o=(t+o)%16|0,t=Math.floor(t/16)),("x"===r?o:3&o|8).toString(16)})}r.d(t,{l:()=>o})},41244:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>B,Cl:()=>_,EU:()=>I,HT:()=>Q,Hy:()=>W,Id:()=>y,Np:()=>k,Qi:()=>$,Tr:()=>V,X7:()=>F,XZ:()=>L,Yq:()=>g,Z1:()=>G,_9:()=>N,_q:()=>H,au:()=>x,d_:()=>M,el:()=>A,ez:()=>C,fq:()=>v,gq:()=>j,i0:()=>U,iV:()=>D,jG:()=>u.j,ln:()=>K,sh:()=>R});var o=r(1936),a=r(74291),s=r(84075),n=r(69962),i=r(93506),l=r(21287),d=r.n(l),c=r(7714),u=r(82106),p=(r(99182),r(28589)),m=r(3875),h=r(91480),f=r(22817);const y=e=>{Object.keys(i.A9).forEach(t=>{"onboarding_success"!==e.get(i.A9[t])&&e.remove(i.A9[t])})};function _(e){const t=(0,a.A)(e);return isNaN(t)?new Date(e):t}const g=(e,t,r=!1)=>{Date;const o=new Date,a=e.getDate()===o.getDate()&&e.getMonth()===o.getMonth()&&e.getFullYear()===o.getFullYear();if(r&&a){const r=Math.floor((o-e)/1e3),a=Math.floor(r/60),s=Math.floor(a/60);if(r<60)return t("Just now");if(s>0){const e=a%60;return`${s} ${t("hour","hours",s)} ${e} ${t("minute","minutes",e)}`}return`${a} ${t("minute","minutes",a)}`}{const t=new Intl.DateTimeFormat(navigator.language,{dateStyle:"short"}),r=new Intl.DateTimeFormat(navigator.language,{timeStyle:"short"});return t.format(e)+" "+r.format(e)}},v=e=>{const t=e.match(/(\(copy\))( \d+)?$/),r=null===t||void 0===t?void 0:t[1],o=null===t||void 0===t?void 0:t[2];return r?o?`${e.slice(0,-o.length)} ${+o.slice(1)+1}`:`${e} 2`:`${e} (copy)`};function b(e,t,r){const o=new Map,a=new RegExp(`(${t})(.*?)(${r})`,"gis");return e=e.replaceAll(a,(e,t,r,a)=>{const s=(0,p.l)();return o.set(s,r),t+s+a}),{escapes:o,html:e}}function E(e,t){let r=[];for(const[o,a]of t){const{escapes:t,html:s}=b(e,o,a);e=s,r.push([o,a,t])}return{escapes:r,html:e}}function T(e,t,r,o){const a=new RegExp(`(${t})(.*?)(${r})`,"gis");return e.replaceAll(a,(e,t,r,a)=>{const s=o.get(r);return"string"===typeof s?t+s+a:e})}const w=/<title>([\s\S]*?)<\/title>/gim;function S(e){return null==e?"":String(e).replace(/\s+/g," ").trim()}const A=(e,t)=>{let{escapes:r,html:o}=E(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return o=o.replaceAll(w,(e,r)=>{if(null==t)return e;const o=S(r);return o===S(t)?`<title>${v(o)}</title>`:e}),function(e,t){for(const[r,o,a]of t)e=T(e,r,o,a);return e}(o,r.reverse())};function C(e){let{html:t}=E(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return[...t.matchAll(w)].map(e=>S(e[1])).find(e=>!!e)}const P="ascend",q="descend",O="desc",j=e=>{switch(e){case P:return"asc";case q:return O;default:return""}},k=e=>{switch(e){case"asc":return P;case O:return q;default:return""}},x=/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/,I=(e,t)=>{for(const r of t)"object"===typeof e.properties&&(e=e.properties[r]);return e},M=e=>e instanceof Array?e.map(e=>({label:e,value:e})):Object.keys(e).map(t=>({label:e[t],value:t})),U=(e,t,r=!0)=>{const o=Object.keys(t);for(const a of o){const o=t[a];void 0!==o&&null!==o&&(e[a]=r&&"object"===typeof o?U(e[a]||{},o,!0):o)}return e},D=e=>new Promise((t,r)=>{d().load({google:{families:[e]},classes:!1,active:t,inactive:r})}),L=(e,t)=>{t&&e(t)},N=()=>{const e=(0,c.XW)(),t=(0,m.cR)();return(0,o.useCallback)((r,o,a,s)=>{t.querySelectorAll(".block-search__preview").forEach(e=>e.remove());const n=t.querySelector("#iframe-scroll-top"),l=t.querySelector("#iframe-scroll-bottom"),d=t.querySelector("#email_iframe"),c=document.body.getBoundingClientRect().height,u=d.getClientRects()[0];u.top<0&&(n.style.display="block"),u.top+u.height>c&&(l.style.display="block");const p={operation:i.Ru.SANDBOX_BLOCK_INSERT,settings:{blockHTML:o||null,targetBlock:null,project:"emailmaker",type:a,name:s}};r.dataTransfer.setData("Text",JSON.stringify(p)),e(p)},[e])},$=()=>{const e=(0,c.XW)(),t=(0,m.cR)();return(0,o.useCallback)((r,o,a)=>{const s=t.querySelector("#iframe-scroll-top"),n=t.querySelector("#iframe-scroll-bottom"),l=t.querySelector("#email_iframe"),d=document.body.getBoundingClientRect().height,c=l.getClientRects()[0];c.top<0&&(s.style.display="block"),c.top+c.height>d&&(n.style.display="block");const u={operation:i.Ru.SANDBOX_ATOM_INSERT,settings:{atomHTML:o.html||null,targetBlock:null,name:o.name}};a(o)&&r.dataTransfer.setData("Text",JSON.stringify(u)),e(u)},[e,t])},R=()=>{const e=(0,c.XW)(),t=(0,h.u)(),{emailId:r,blockId:a,projectId:l}=(0,s.g)(),d=(0,n.d4)(f.yN);return(0,o.useCallback)((o,s,n,c)=>{const u="project"===n||"template"===n||"common"===n?"block":"structure",p="block"===u?c||n||"block":c||n||"structure";e({operation:i.Ru.SANDBOX_BLOCK_INSERT,action:"insert",settings:{blockHTML:s,type:n}}),t({event:"add",action:"add_element_to_email",element_type:u,element_name:p,entity_id:r||a,project_id:(null===d||void 0===d?void 0:d.id)||l})},[e,t,r,a,l,d])},F=()=>{const e=(0,c.XW)(),t=(0,h.u)(),{emailId:r,blockId:a,projectId:l}=(0,s.g)(),d=(0,n.d4)(f.yN);return(0,o.useCallback)((o,s)=>{e({operation:i.Ru.SANDBOX_ATOM_INSERT,action:"insert",settings:{atomHTML:s}}),t({event:"add",action:"add_element_to_email",element_type:"atom",element_name:s.name||"atom",entity_id:r||a,project_id:(null===d||void 0===d?void 0:d.id)||l})},[e,t,r,a,l,d])},G=(e,t)=>{t.success({maskClosable:!0,centered:!0,title:e("Coming soon"),content:e("The feature is under development."),okText:e("Ok. I'll be waiting"),onOk:()=>{}})},B=()=>{const e=(0,c.XW)();return(t,r)=>{e({operation:i.Ru.SANDBOX_ELEMENT_SETTINGS_SET,settings:t,type:r})}},H=(e,t="")=>{const r=[];var o,a;e&&(null===(o=e._embedded)||void 0===o||null===(a=o["wp:term"])||void 0===a||a.filter(e=>{var r;return!!e.length&&(!t||(null===(r=e[0])||void 0===r?void 0:r.taxonomy)===t)}).forEach(e=>{const t=e[0].taxonomy;r[t]||(r[t]=[]),r[t]=e.map(e=>({id:e.id,name:e.name,children:e.children})),r[r.length]=r[t]}));return""!==t&&r.length?r[t]:r},Q=(e,t="")=>{var r,o,a,s,n;return(null===(r=e._embedded)||void 0===r||null===(o=r["wp:term"])||void 0===o||null===(a=o.find(e=>{var r;return!!e.length&&(!t||(null===(r=e[0])||void 0===r?void 0:r.taxonomy)===t)}))||void 0===a||null===(s=a.find(e=>{var t;return null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.startsWith("project_")}))||void 0===s||null===(n=s.children)||void 0===n?void 0:n.map(e=>({id:e.id,name:e.name,count:e.count})))||null},W=(e,t)=>{const r=e.target,o=t.getBoundingClientRect().height,a=r.getBoundingClientRect().height-o,s=e.clientY-t.getBoundingClientRect().top-30,n=-a*(Math.min(Math.max(s,0),o-60)/(o-60));r.style.transform=`translateY(${n}px)`},V=({target:e})=>{e.style.transform="translateY(0)"};function K(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}},57097:(e,t,r)=>{"use strict";r.d(t,{B:()=>c,l:()=>d});var o=r(20263),a=r(82106),s=r(49793);function n(e){return"function"!==typeof e}function i(e){return t=>{const r=t.queryFn||((e,r,o,a)=>{if(!t.query)throw new Error("query not found EndpointDefinition");return a(t.query(e))});r&&(t.query=void 0,t.queryFn=async(t,a,s,i)=>{try{let l;const d=o.di.getServices(a,e);for(let e=d.length-1;e>=0;e--){const r=d[e];if(l=l?await l(async e=>await r.execute(e)):await r.execute(t),n(l))return{data:l,error:null}}return l=l?await l(async(e,t=a,o=s,n=i)=>{const l=await r(e,t,o,n);if(l.error)throw l.error;return l.data}):await r(t,a,s,i),{data:l,error:null}}catch(l){return{error:l}}})}}const l=new Set;function d(e){return(t,r)=>{const n=Object.create(null),d=Object.keys(r),c=new a.j;for(const a of d){const s=`api_listeners_flag_${t.reducerPath}/${a.toString()}`,d=o.di.createIdentifier(`api_listeners_${t.reducerPath}/${a.toString()}`);l.has(s)||(n[a]=i(d),l.add(s)),c.addDisposable(o.di.addService(e,d,{execute:r[a]}))}return Object.keys(n).length&&t.enhanceEndpoints({endpoints:n}),(0,s.PL)(e).addDisposable(c),c}}function c(e,t){for(const o of Object.keys(t))try{t[o](e)}catch(r){}}},39930:(e,t,r)=>{"use strict";r.d(t,{hs:()=>le,W5:()=>se,Be:()=>ne,l:()=>ae,dg:()=>de,Mi:()=>ie,no:()=>X});const o=3e5,a=new Map,s=new Map,n=new Set(["generic","stockImages","emFiles","cdn"]),i=/^https:\/\/(?:media\d*|i)\.giphy\.com\/media/i,l=/^https:\/\/api\.giphy\.com\/v1\/gifs/i,d=/^https:\/\/images\.unsplash\.com/i,c=/^https:\/\/api\.unsplash\.com/i,u=/^https:\/\/assets\.streamlinehq\.com/i,p=/^https:\/\/public-api\.streamlinehq\.com/i;function m(e){return"string"===typeof e&&e.trim().length>0}function h(){const e="https://px0.racs.rest/";if(m(e))return e;const t={}.REACT_APP_UNSPLASH_PROXY;return m(t)?t:void 0}function f(){return{stockImagesProxyUrl:"https://api.emailmaker.ru/services/stock_images",stockImagesProxyUrlApi:"https://api.emailmaker.ru/services/stock_images_api",genericProxyUrl:h()}}function y(e){return!!e}function _(e,t=!1){return void 0!==(null===e||void 0===e?void 0:e.resourceProxy)?e.resourceProxy:y(t)?null===e||void 0===e?void 0:e.resourceProxy:function(){const e=[],{stockImagesProxyUrl:t,stockImagesProxyUrlApi:r,genericProxyUrl:o}=f();return r&&e.push({id:"mode-default-stock-images-api",match:"https://api.unsplash.com/{path}",proxyBase:r,rewrite:"{path}?proxy_url={origin}{search}{hash}"}),t&&e.push({id:"mode-default-stock-images-cdn",match:"https://images.unsplash.com/{path}",proxyBase:t,rewrite:"{path}?proxy_url={origin}{search}{hash}"}),o&&e.push({id:"mode-default-generic",proxyBase:o,rewrite:"{path}?proxy_url={origin}{search}{hash}"}),e.length>0?e:void 0}()}function g(e){return null===e||void 0===e?void 0:e.backendProxy}function v(e){return e.replace(/\/$/,"")}function b(e){return/^https?:\/\//i.test(e)}function E(e){return!!e&&"object"===typeof e&&!Array.isArray(e)}function T(e){const t=new Set;return e.filter(e=>!(!e.url||t.has(e.url))&&(t.add(e.url),!0))}function w(e){return!!E(e)&&(!("match"in e||"rewrite"in e||"proxyBase"in e)&&Object.keys(e).some(e=>n.has(e)))}function S(e){if(void 0!==e&&null!==e)return E(e)&&("value"in e||"replace"in e)?e.value:e}function A(e,t="generic",r=!1){const o=_(e,r);var a;if(o)return w(o)?S(null!==(a=o[t])&&void 0!==a?a:o.generic):o}function C(e,t=!1){const r=_(e,t);return r?w(r)?Object.keys(r).filter(e=>n.has(e)).map(e=>S(r[e])).filter(Boolean):[r]:[]}function P(e,t,r=!1){var o,a,s,n;const i=function(e,t=!1){if(y(t))return{proxyBlobFetch:!0,proxyCdn:!0,proxyEmFiles:!0,proxyStockImages:!0};const{stockImagesProxyUrl:r,stockImagesProxyUrlApi:o,genericProxyUrl:a}=f();return m(a),{proxyBlobFetch:!0,proxyCdn:!1,proxyEmFiles:!1,proxyStockImages:m(r)||m(o)}}(0,r),l=null===t||void 0===t?void 0:t.resourceProxyPolicy;switch(e){case"cdn":return null!==(o=null===l||void 0===l?void 0:l.proxyCdn)&&void 0!==o?o:i.proxyCdn;case"emFiles":return null!==(a=null===l||void 0===l?void 0:l.proxyEmFiles)&&void 0!==a?a:i.proxyEmFiles;case"stockImages":return null!==(s=null===l||void 0===l?void 0:l.proxyStockImages)&&void 0!==s?s:i.proxyStockImages;default:return null!==(n=null===l||void 0===l?void 0:l.proxyBlobFetch)&&void 0!==n?n:i.proxyBlobFetch}}const q={url:".+",url_encoded:".+",origin:"https?:\\/\\/[^\\/?#]+",origin_encoded:".+",proxy_url:"https?:\\/\\/[^\\/?#]+",proxy_url_encoded:".+",path:"[^?#]*",pathname:"[^?#]*",path_with_slash:"\\/[^?#]*",pathname_with_slash:"\\/[^?#]*",query:"[^#]*",search:"\\?[^#]*",hash:"#.*",fragment:".*",pathname_after_wp_json:"[^?#]*",pathname_after_wp_json_with_slash:"\\/[^?#]*",rest_namespace:"[^/?#]*",rest_version:"[^/?#]*",rest_route:"[^?#]*",rest_route_with_slash:"\\/[^?#]*"};function O(e,t,r){if(r.endsWith("_encoded"))return!0;const o=e.slice(0,t),a=o.lastIndexOf("#"),s=o.lastIndexOf("?"),n=o.lastIndexOf("&"),i=o.lastIndexOf("=");return i>Math.max(s,n)&&i>a}function j(e,t){if(!e)return{};if(Array.isArray(e)){for(const r of e){const e=j(r,t);if(void 0!==e)return e}return}if("*"===e)return{};const r=function(e,t){if(function(e){return/[?#]/.test(e)||/\{(?:url|url_encoded|query|search|hash|fragment)\}/i.test(e)}(t))return e;try{const t=new URL(e);return`${t.origin}${t.pathname}`}catch{return e.split(/[?#]/)[0]||e}}(t,e),{regex:o,tokens:a}=function(e){const t=[],r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\{([a-z_]+)\\\}/gi,(e,r)=>(t.push(r),`(${q[r]||".+"})`));return{regex:new RegExp(`^${r}$`,"i"),tokens:t}}(e),s=o.exec(r);if(!s)return;const n={};return a.forEach((e,t)=>{n[`matched_${e}`]=s[t+1]||""}),n}function k(e,t,r={}){const o=function(e){try{const t=new URL(e),r=t.pathname.replace(/^\/+/,""),o=t.search.replace(/^\?/,""),a=t.hash.replace(/^#/,""),s=r.replace(/^wp-json\/?/i,""),n=s?`/${s}`:"/",i=s.match(/^([^/]+)(?:\/([^/]+))?(?:\/(.*))?$/),l=(null===i||void 0===i?void 0:i[1])||"",d=(null===i||void 0===i?void 0:i[2])||"",c=(null===i||void 0===i?void 0:i[3])||"";return{url:e,url_encoded:encodeURIComponent(e),origin:t.origin,origin_encoded:encodeURIComponent(t.origin),proxy_url:t.origin,proxy_url_encoded:encodeURIComponent(t.origin),path:r,pathname:r,path_with_slash:t.pathname||"/",pathname_with_slash:t.pathname||"/",query:o,search:t.search,hash:t.hash,fragment:a,pathname_after_wp_json:s,pathname_after_wp_json_with_slash:n,rest_namespace:l,rest_version:d,rest_route:c,rest_route_with_slash:c?`/${c}`:"/"}}catch{return}}(t);if(!o)return t;const a={...o,...r};let s="",n=0;const i=/\{([a-z_]+)\}/gi;let l;for(;l=i.exec(e);){var d;s+=e.slice(n,l.index);const t=null!==(d=a[l[1]])&&void 0!==d?d:"";s+=O(e,l.index,l[1])?encodeURIComponent(t):t,n=l.index+l[0].length}s+=e.slice(n);try{const e=new URL(s),r=new URL(t);return s.includes("{search}")||s.includes("{query}")||!r.search||r.searchParams.forEach((t,r)=>{e.searchParams.has(r)||e.searchParams.append(r,t)}),s.includes("{hash}")||s.includes("{fragment}")||!r.hash||e.hash||(e.hash=r.hash),e.toString()}catch{return s}}function x(e,t){try{const r=new URL(t),o=v(e);return`${o}/${r.pathname.replace(/^\//,"")}${r.search}${r.hash}`}catch{return t}}function I(e,t){const r=v(e);return t?b(t)?t:t.startsWith("?")||t.startsWith("#")?`${r}${t}`:`${r}${t.startsWith("/")?"":"/"}${t}`:r}function M(e,t,r,o){const a=e.match;return!a||(Array.isArray(a)?a.some(a=>M({...e,match:a},t,r,o)):"function"===typeof a?!!a({url:t,resourceType:r,intent:o}):"*"===a||void 0!==j(a,t))}function U(e,t,r,o,a,s){if(void 0===e||null===e)return[];const n=Array.isArray(e)?e:[e],i=[];return n.forEach((e,n)=>{if(!e)return;if("string"===typeof e){const a=e.includes("{")&&e.includes("}")?k(e,t):x(e,t);return void i.push({key:`${r}:${n}`,url:a,source:o})}if(!E(e)||!("rewrite"in e))return;const l=e;if(!M(l,t,a,s))return;const d=("string"===typeof l.match||Array.isArray(l.match))&&j(l.match,t)||{},c="string"===typeof l.proxyBase&&l.proxyBase.trim()?l.proxyBase.trim():void 0;(Array.isArray(l.rewrite)?l.rewrite:[l.rewrite]).filter(Boolean).forEach((e,u)=>{const p="function"===typeof e?(()=>{const r=e({url:t,proxyBase:c,resourceType:a,intent:s,...d}),o=c&&!b(r)?I(c,r):r;return o.includes("{")&&o.includes("}")?k(o,t,d):o})():c?k(I(c,e),t,d):e.includes("{")&&e.includes("}")?k(e,t,d):x(e,t);i.push({key:`${r}:${l.id||"rule"}:${n}:${u}`,url:p,source:o})})}),T(i)}function D(e,t,r,o){const a=e.match;return!a||(Array.isArray(a)?a.some(a=>D({...e,match:a},t,r,o)):"function"===typeof a?!!a({url:t,method:o,requestType:r}):"*"===a||void 0!==j(a,t))}function L(e,t,r,o="generic"){if(void 0===e||null===e)return[];const a=Array.isArray(e)?e:[e],s=[];return a.forEach((e,a)=>{if(!e)return;if("string"===typeof e){const r=e.includes("{")&&e.includes("}")?k(e,t):x(e,t);return void s.push({key:`backend:${a}`,url:r,source:"resource"})}if(!E(e)||!("rewrite"in e))return;const n=e;if(!D(n,t,o,r))return;const i=("string"===typeof n.match||Array.isArray(n.match))&&j(n.match,t)||{},l="string"===typeof n.proxyBase&&n.proxyBase.trim()?n.proxyBase.trim():void 0;(Array.isArray(n.rewrite)?n.rewrite:[n.rewrite]).filter(Boolean).forEach((e,d)=>{const c="function"===typeof e?(()=>{const a=e({url:t,proxyBase:l,method:r,requestType:o,...i}),s=l&&!b(a)?I(l,a):a;return s.includes("{")&&s.includes("}")?k(s,t,i):s})():l?k(I(l,e),t,i):e.includes("{")&&e.includes("}")?k(e,t,i):x(e,t);s.push({key:`backend:${n.id||"rule"}:${a}:${d}`,url:c,source:"resource"})})}),T(s)}function N(e,t,r){return[e,...r.map(e=>e.url)].join("|")}function $(e){var t;e&&(null===(t=s.get(e))||void 0===t||t.forEach(e=>{try{e()}catch{}}))}function R(e,t){if(!e)return!1;const r=a.get(e);return!(null===r||void 0===r||!r.failedUntil)&&r.activeUrl===t.url&&r.failedUntil>Date.now()}function F(e,t){const r=function(e,t){if(!e||t.length<2)return t;const r=a.get(e);if(null===r||void 0===r||!r.activeUrl)return t;const o=t.find(e=>e.url===r.activeUrl);return o?[o,...t.filter(e=>e.url!==r.activeUrl)]:t}(e,t);if(!e||r.length<2)return r;const o=[],s=[];return r.forEach(t=>{R(e,t)?s.push(t):o.push(t)}),[...o,...s]}function G(e,t){if(!e)return;const r=a.get(e);a.set(e,{activeUrl:t.url}),((null===r||void 0===r?void 0:r.activeUrl)!==t.url||null!==r&&void 0!==r&&r.failedUntil)&&$(e)}function B(e,t,r){if(!e)return;const s=function(e){var t;const r=null===e||void 0===e||null===(t=e.resourceProxyPolicy)||void 0===t?void 0:t.recoveryTtlMs;return"number"===typeof r&&r>0?r:o}(r),n={activeUrl:t.url,failedUntil:Date.now()+s},i=a.get(e);a.set(e,n),(null===i||void 0===i?void 0:i.activeUrl)===n.activeUrl&&(null===i||void 0===i?void 0:i.failedUntil)===n.failedUntil||$(e)}function H(e){return function(e){return u.test(e)||p.test(e)}(e)||function(e){return i.test(e)||l.test(e)}(e)}function Q(e,t){const r="https://emcdn.ru";return r&&e.startsWith(v(r))?"cdn":d.test(e)||c.test(e)?"stockImages":"generic"}function W(e,t){try{const o=new URL(e),a=new URL(t),s="/"===(r=a.pathname)?"":r.replace(/\/$/,""),n=""===s||(o.pathname===s||o.pathname.startsWith(`${s}/`));if(o.origin!==a.origin||!n)return null;const i=o.searchParams.get("url");if(i)return i;const l=o.searchParams.get("proxy_url");if(!l)return null;const d=new URL(l),c=""===s?o.pathname.replace(/^\/+/,""):o.pathname.slice(s.length).replace(/^\/+/,"");return d.pathname=c?`/${c}`:"/",o.searchParams.forEach((e,t)=>{"proxy_url"!==t&&"url"!==t&&(d.searchParams.has(t)||d.searchParams.append(t,e))}),o.hash&&!d.hash&&(d.hash=o.hash),d.toString()}catch{return null}var r}function V(e,t=[]){if(void 0===e||null===e)return t;return(Array.isArray(e)?e:[e]).forEach(e=>{if(!e)return;if("string"===typeof e){var r;const o=null===(r=e.split("{")[0])||void 0===r?void 0:r.trim();return void(o&&t.push(v(o)))}if(!E(e)||!("rewrite"in e))return;"string"===typeof e.proxyBase&&e.proxyBase.trim()&&t.push(v(e.proxyBase.trim()));(Array.isArray(e.rewrite)?e.rewrite:[e.rewrite]).forEach(e=>{var r;if("string"!==typeof e)return;const o=null===(r=e.split("{")[0])||void 0===r?void 0:r.trim();o&&t.push(v(o))})}),t}function K(e,t){const r=function(e){const t=g(e);return t?[t]:[]}(t).flatMap(e=>V(e)).filter(Boolean);return r.some(t=>t&&e.startsWith(t))}function z(e,t,r=!1){return function(e,t,r=!1){return C(t,r).flatMap(e=>V(e)).filter(Boolean).some(t=>t&&e.startsWith(t))}(e,t,r)}function X(e,t,r=!1){return function(e,t,r=!1){const o=C(t,r).flatMap(e=>V(e)).filter(Boolean);for(const a of o){const t=W(e,a);if(t)return t}return null}(e,t,r)||e}function Y(e,t={}){const r=t.config,o=X(e,r,t.standalone),a=t.resourceType||Q(o),s=t.intent||"display";if(H(o))return{resourceType:"generic",intent:s,candidates:[]};const n=function(e,t,r=!1){return!!A(t,e,r)&&P(e,t,r)}(a,r,t.standalone)?U(A(r,a,t.standalone),o,a,"resource",a,s):[];return{resourceType:a,intent:s,candidates:n,stabilityKey:n.length?N(a,0,n):void 0}}function J(e,t={}){const r=t.requestType||function(e){try{const t=new URL(e);return/(?:^|\/)wp-json\/em-files\/v\d+(?:\/|$)/i.test(t.pathname)?"emFiles":/(?:^|\/)wp-json\/ai-generator\/v\d+(?:\/|$)/i.test(t.pathname)?"ai":"generic"}catch{return"generic"}}(e);return function(e,t){return!!g(t)&&function(e,t){var r,o;const a={proxyEmFiles:!0,proxyAi:!1},s=null===t||void 0===t?void 0:t.backendProxyPolicy;switch(e){case"emFiles":return null!==(r=null===s||void 0===s?void 0:s.proxyEmFiles)&&void 0!==r?r:a.proxyEmFiles;case"ai":return null!==(o=null===s||void 0===s?void 0:s.proxyAi)&&void 0!==o?o:a.proxyAi;default:return!0}}(e,t)}(r,t.config)?L(g(t.config),e,t.method,r):[]}function Z(e,t={},r){const o=t.intent||r;if(z(e,t.config,t.standalone)){const r=X(e,t.config,t.standalone),a={key:"already-proxied",url:e,source:"direct"};return{chain:{resourceType:t.resourceType||Q(r,t.config),intent:o,candidates:[a]},candidates:[a]}}const a=X(e,t.config,t.standalone),s=Y(a,{...t,intent:o}),n=F(s.stabilityKey,s.candidates),i=function(e,t,r,o=!1){return!y(o)&&"downloadBlob"!==t&&"stockImages"===e&&P(e,r,o)}(s.resourceType,o,t.config,t.standalone);return{chain:s,candidates:T([...n,...i?[]:[{key:"direct",url:a,source:"direct"}]])}}function ee(e,t,r={},o){const{chain:a,candidates:s}=Z(e,r,o),n=s.find(e=>e.url===t);return n&&"resource"===n.source?{chain:a,candidate:n}:null}function te(e,t={}){return Z(e,t,"display").candidates.map(e=>e.url)}function re(e,t,r,o=!1){return{src:e,changed:r,exhausted:o,reason:t}}function oe(e,t={}){var r;const{chain:o,candidates:s}=Z(e,t,t.intent||"display"),n=o.stabilityKey?a.get(o.stabilityKey):void 0,i=(null===(r=s[0])||void 0===r?void 0:r.url)||e;return{originalUrl:e,resourceType:o.resourceType,intent:o.intent,stabilityKey:o.stabilityKey,currentSrc:i,runtimeState:n?{...n}:void 0,candidates:s.map(e=>({...e,isCurrent:e.url===i,isFailed:R(o.stabilityKey,e),failedUntil:(null===n||void 0===n?void 0:n.activeUrl)===e.url?null===n||void 0===n?void 0:n.failedUntil:void 0}))}}function ae(e,t={}){var r;let o=Z(e,t,"display"),a=o.candidates,n=(null===(r=a[0])||void 0===r?void 0:r.url)||e,i=Math.max(0,a.findIndex(e=>e.url===n));const l=()=>{var r;const s=Z(e,t,"display"),l=s.candidates,d=(null===(r=l[0])||void 0===r?void 0:r.url)||e;return d&&d!==n?(o=s,a=l,n=d,i=Math.max(0,l.findIndex(e=>e.url===n)),re(n,"runtime-update",!0)):(o=s,a=l,i=Math.max(0,l.findIndex(e=>e.url===n)),re(n,"unchanged",!1))};return{get src(){return n},get stabilityKey(){return o.chain.stabilityKey},handleChangeSrc:()=>l(),handleSuccess:()=>{!function(e,t,r={}){const o=ee(e,t,r,"display");o&&G(o.chain.stabilityKey,o.candidate)}(e,n,t)},handleError:()=>{!function(e,t,r={}){const o=ee(e,t,r,"display");o&&B(o.chain.stabilityKey,o.candidate,r.config)}(e,n,t);const r=l();if(r.changed&&r.src)return r;const o=a[i+1];return o&&o.url!==n?(n=o.url,i+=1,re(n,"candidate-fallback",!0)):re(null,"exhausted",!1,!0)},subscribeToSrcChange:e=>function(e,t){if(!e)return()=>{};const r=s.get(e)||new Set;return r.add(t),s.set(e,r),()=>{const r=s.get(e);r&&(r.delete(t),0===r.size&&s.delete(e))}}(o.chain.stabilityKey,()=>{const t=l();t.changed&&e(t)}),getDebugSnapshot:()=>oe(e,t)}}function se(e,t={}){return te(e,t)[0]||e}async function ne(e,t={}){if(z(e,t.config,t.standalone))return fetch(e,t.init);const r=t.config,{chain:o,candidates:a}=Z(e,t,t.intent||"downloadBlob");let s;for(const i of a)try{const e=await fetch(i.url,t.init);if(!e.ok)throw new Error(`Proxy fetch failed with status ${e.status}`);if(t.validateBlob){const r=await e.clone().blob();if(!await t.validateBlob(r))throw new Error("Proxy validation failed")}return"resource"===i.source&&G(o.stabilityKey,i),e}catch(n){s=n,"resource"===i.source&&B(o.stabilityKey,i,r)}throw s instanceof Error?s:new Error("Failed to fetch resource through proxy chain")}function ie(e,t={}){return K(e,t.config)?[e]:J(e,t).map(e=>e.url)}function le(e,t){const r="https://emcdn.ru",o=t.filter(Boolean).map(e=>String(e).replace(/^\/+|\/+$/g,""));return`${v(r)}/${o.join("/")}`}function de(e,t){const r="https://emcdn.ru";return e.startsWith(v(r))}},53687:(e,t,r)=>{"use strict";r.d(t,{Be:()=>o.Be,W5:()=>o.W5,dg:()=>o.dg,hs:()=>o.hs,l:()=>o.l,no:()=>o.no});var o=r(39930)},45092:(e,t,r)=>{"use strict";r.d(t,{CJ:()=>g,eT:()=>m,jY:()=>y,mg:()=>f,no:()=>_,qT:()=>d});var o=r(74778),a=(r(24524),r(70529)),s=r(40713),n=r(72749),i=r(39930);const l=e=>{const t=new FormData,r=(e,t,o)=>{void 0!==t&&null!==t&&(t instanceof Blob?e.append(o,t):Array.isArray(t)?t.forEach((t,a)=>{r(e,t,o?`${o}[${a}]`:`${a}`)}):"object"!==typeof t?e.append(o,String(t)):Object.keys(t).forEach(a=>{const s=t[a];r(e,s,o?`${o}[${a}]`:a)}))};return r(t,e),t};function d(e){for(;e.endsWith("/");)e=e.slice(0,e.length-1);return`${e}/wp-json`}const c={baseUrl:"https://app.emailmaker.ru/api//wp-json",baseApiParams:{secure:!0,credentials:"same-origin",format:"json"},securityWorker:()=>({credentials:"same-origin"})};c.baseUrl=d("https://app.emailmaker.ru/api/");const u=new Map;class p extends o.RQ{constructor(e={},t){super(e),this.container=t}buildRequestUrl(e){const{path:t,baseUrl:r,extraQuery:o}=e;let{query:a}=e;o&&(a=a?{...a,...o}:o);const s=a&&this.toQueryString(a);return`${r||this.baseUrl||""}${t}${s?`?${s}`:""}`}buildRequestKey(e,t){return`${t.toUpperCase()} ${e}`}getBackendProxyCandidates(e,t){var r,o;const s=function(e){var t;if(!e)return;return null===(t=e.getState().configSlice)||void 0===t?void 0:t.config}(null===(r=this.container)||void 0===r?void 0:r.getInstance(a.ax)),n=void 0!==(null===(o=this.container)||void 0===o?void 0:o.getInstance(a.Ef)),l=(0,i.Mi)(e,{config:s,method:t,standalone:n}),d=l.length>0?l:[e],c=this.buildRequestKey(e,t),p=u.get(c);return p&&d.includes(p)?[p,...d.filter(e=>e!==p)]:d}shouldRetryResponse(e){return 502===e.status||503===e.status||504===e.status}async request(e){const t=this.buildRequestUrl(e),r=e.method||"GET",o=this.buildRequestKey(t,r),a=this.getBackendProxyCandidates(t,r);let s,n;for(const l of a){const r=e=>e===t?l:e;try{const t=await super.request({...e,proxyHandler:r});if(!t.ok&&this.shouldRetryResponse(t)&&l!==a[a.length-1]){n=t,u.get(o)===l&&u.delete(o);continue}return u.set(o,l),t}catch(i){if(s=i,u.get(o)===l&&u.delete(o),i instanceof DOMException&&"AbortError"===i.name)throw i}}if(n)return n;throw s instanceof Error?s:new Error("Backend proxy chain failed")}}const m=(0,s.Q)();function h(e){return e.getOrCreateInstance(m,()=>function(e=c){const t=new Map;return{create(r,o){const a=new p({...e,...r},o);return a.contentFormatters["multipart/form-data"]=l,t.set(a,{options:r,container:o}),a},getOptions:()=>e,setOptions(r){e=r;for(const[o,a]of t)Object.assign(o,{...e,...a.options})}}}())}function f(e,t={}){const r=(0,n.dY)(e)?(0,n.My)(e):e;return h(r).create(t,r)}const y=(0,s.Q)(),_=((0,s.Q)(),(0,s.Q)());let g;!function(e){const t="https://racs.emcdn.ru/v3";e.post=function(e,r){const o={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};return fetch(`${t}?resource=${e}&dataset=${document.location.hostname}`,o)},e.getAll=async function(e,r=0){const o={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:`{"filter":{},"limit":${r}}`},a=await fetch(`${t}/get?resource=${e}&dataset=${document.location.hostname}`,o);return await a.json()}}(g||(g={}))},72227:(e,t,r)=>{"use strict";function o(e){return e}function a({data:e,...t},r){return t.error?t:{data:r(e,t.meta),...t}}function s(e){return t=>a(t,e)}function n(e){return t=>a(t,(t,r)=>t.hasOwnProperty("previous")?e(t.previous,r):e(t,r))}function i(e){return t=>function({data:e,...t},r){return t.error?t:{data:e.map(e=>r(e,t.meta)),...t}}(t,e)}r.d(t,{Ih:()=>i,PI:()=>n,SA:()=>a,SC:()=>s,ur:()=>o})},48952:(e,t,r)=>{"use strict";function o(e,t){if(e!==t){if(!e||!t||"object"!==typeof e||"object"!==typeof t)return!1;const r=t instanceof Array;if(e instanceof Array){if(!r)return!1;const a=e.length;if(t.length!==a)return!1;for(let r=0;r<a;r++)if(!o(e[r],t[r]))return!1}else if(r)return!1;const a=Object.keys(e),s=Object.keys(t),n=a.length;if(n!==s.length)return!1;for(let i=0;i<n;i++){const r=a[i];if(!t.hasOwnProperty(r)||!o(e[r],t[r]))return!1}}return!0}r.d(t,{b:()=>o})},39608:(e,t,r)=>{"use strict";function o(e,t){if(e===t)return!0;if("object"===typeof e&&e&&"object"===typeof t&&t){const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(const s of r)if(!o(e[s],t[s]))return!1;return!0}return!1}function a(e,t){if(!e)return t;const r={};for(const a of Object.keys(t))o(t[a],e[a])||(r[a]=t[a]);return r}r.d(t,{g:()=>a})},4889:(e,t,r)=>{"use strict";r.d(t,{o:()=>o.oK});var o=r(86080)},12465:(e,t,r)=>{"use strict";r.d(t,{N:()=>s,X:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"activecampaignApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,r,o)=>{var a,s,n;const i=e.api_url.replace(/\/$/,"");const l=e.api_key,d={"Content-Type":"application/json","Api-Token":l},c=await o({url:`?proxy_url=${encodeURIComponent(`${i}/api/3/addresses`)}`,method:"GET",headers:{"Api-Token":l}});if(c.error)return{error:{status:"CUSTOM_ERROR",error:"Failed to load mailing addresses. Check your API URL and Key."}};const u=c.data,p=null!==(a=null===u||void 0===u?void 0:u.addresses)&&void 0!==a?a:[],m=null!==(s=p.find(e=>"1"===e.isDefault))&&void 0!==s?s:p[0];if(null===m||void 0===m||!m.id)return{error:{status:"CUSTOM_ERROR",error:"NO_MAILING_ADDRESS"}};const h={message:{name:e.name,fromname:e.from_name,fromemail:e.from_email,email:e.from_email,reply2:e.from_email,subject:e.subject,html:e.html,text:(f=e.html,f.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()||" "),preheader_text:"",format:"mime"}};var f;const y=await o({url:`?proxy_url=${encodeURIComponent(`${i}/api/3/messages`)}`,method:"POST",headers:d,body:JSON.stringify(h)});if(y.error){var _;const e=y.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(_=e.data)||void 0===_?void 0:_.message)||(null===e||void 0===e?void 0:e.error)||"Failed to create message."}}}const g=y.data,v=null===g||void 0===g||null===(n=g.message)||void 0===n?void 0:n.id;if(!v)return{error:{status:"CUSTOM_ERROR",error:"Message created but no ID returned."}};const b=`${i}/admin/api.php?api_action=campaign_create&api_output=json`,E=new URLSearchParams;E.append("type","single"),E.append("name",e.name),E.append("sdate","2099-12-31 12:00:00"),E.append("status","0"),E.append("public","1"),E.append("trackreads","1"),E.append("tracklinks","all"),E.append("htmlunsub","1"),E.append("textunsub","1"),E.append("addressid",String(m.id)),E.append(`p[${e.list_id}]`,e.list_id),E.append(`m[${v}]`,"100");const T=await o({url:`?proxy_url=${encodeURIComponent(b)}`,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","Api-Token":l},body:E.toString()});if(T.error){var w;const e=T.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(w=e.data)||void 0===w?void 0:w.result_message)||(null===e||void 0===e?void 0:e.error)||"Message created, but campaign creation failed."}}}const S=T.data;if(0===Number(null===S||void 0===S?void 0:S.result_code))return{error:{status:"CUSTOM_ERROR",error:(null===S||void 0===S?void 0:S.result_message)||"Campaign creation failed (v1 API)."}};const A=null===S||void 0===S?void 0:S.id;return A?{data:{campaignId:String(A)}}:{error:{status:"CUSTOM_ERROR",error:(null===S||void 0===S?void 0:S.result_message)||"Campaign created but no ID returned."}}}})})}),{useCreateCampaignMutation:n}=s},87644:(e,t,r)=>{"use strict";r.d(t,{q:()=>s,k:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"altcraftApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({addTemplate:e.mutation({query:e=>{var t;const r=`${e.api_url}/api/v1.1/templates/add`,o={token:e.api_key,name:e.name,channels:[{sid:"email",fields:{html:e.html_content,text:"",subject:e.subject||e.name,from_email:e.from_email||"",from_name:e.from_name||"",replyto_email:"",replyto_name:"",is_not_inline:!0}}],is_draft:null!==(t=e.is_draft)&&void 0!==t&&t};return{url:`?proxy_url=${encodeURIComponent(r)}`,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}}})})}),{useAddTemplateMutation:n}=s},50121:(e,t,r)=>{"use strict";r.d(t,{d:()=>s,A:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"bentoApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createBroadcast:e.mutation({queryFn:async(e,t,r,o)=>{var a;const s={broadcasts:[{name:e.name,subject:e.subject,content:e.html,type:"raw",from:{email:e.from_email,name:e.from_name},inclusive_tags:e.inclusive_tags||"subscribers",exclusive_tags:"",segment_id:e.segment_id||"",batch_size_per_hour:500,approved:!1}]},n=`https://app.bentonow.com/api/v1/batch/broadcasts?site_uuid=${encodeURIComponent(e.site_uuid)}`,i=await o({url:`?proxy_url=${encodeURIComponent(n)}`,method:"POST",headers:{"Content-Type":"application/json",Authorization:(l=e.publishable_key,d=e.secret_key,`Basic ${btoa(`${l}:${d}`)}`),"User-Agent":"EmailMaker/1.0"},body:JSON.stringify(s)});var l,d;if(i.error){var c;const e=i.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(c=e.data)||void 0===c?void 0:c.message)||(null===e||void 0===e?void 0:e.error)||String(i.error)}}}const u=i.data;return{data:{count:null!==(a=null===u||void 0===u?void 0:u.count)&&void 0!==a?a:1}}}})})}),{useCreateBroadcastMutation:n}=s},98881:(e,t,r)=>{"use strict";r.d(t,{x:()=>s,X:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"brevoApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,r,o)=>{const a={name:e.name,subject:e.subject,sender:{name:e.from_name,email:e.from_email},htmlContent:e.html,recipients:{listIds:[e.list_id]}},s=await o({url:`?proxy_url=${encodeURIComponent("https://api.brevo.com/v3/emailCampaigns")}`,method:"POST",headers:{"Content-Type":"application/json","api-key":e.api_key},body:JSON.stringify(a)});if(s.error){var n,i;const e=s.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.message)||(null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.code)||(null===e||void 0===e?void 0:e.error)||String(s.error)}}}const l=s.data;if(null===l||void 0===l||!l.id){const e=s.data;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e?void 0:e.message)||"Failed to create campaign"}}}return{data:{id:l.id}}}})})}),{useCreateCampaignMutation:n}=s},36472:(e,t,r)=>{"use strict";r.d(t,{n:()=>s,X:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"campaignMonitorApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,r,o)=>{const a={Name:e.name,Subject:e.subject,FromName:e.from_name,FromEmail:e.from_email,ReplyTo:e.from_email,HtmlUrl:e.html_url,ListIDs:[e.list_id],InlineCss:!0},s=await o({url:`?proxy_url=${encodeURIComponent(`https://api.createsend.com/api/v3.3/campaigns/${e.client_id}.json`)}`,method:"POST",headers:{"Content-Type":"application/json",Authorization:(n=e.api_key,`Basic ${btoa(`${n}:x`)}`)},body:JSON.stringify(a)});var n;if(s.error){var i;const e=s.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.Message)||(null===e||void 0===e?void 0:e.error)||String(s.error)}}}const l=s.data,d="string"===typeof l?l:null===l||void 0===l?void 0:l.id;if(!d||"string"!==typeof d){return{error:{status:"CUSTOM_ERROR",error:(null===l||void 0===l?void 0:l.Message)||"Failed to create campaign"}}}return{data:{id:d}}}})})}),{useCreateCampaignMutation:n}=s},79496:(e,t,r)=>{"use strict";r.d(t,{p:()=>n,X:()=>i});var o=r(94104),a=r(53366);const s="https://api.cc.email/v3",n=(0,o.xP)({reducerPath:"constantContactApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,r,o)=>{var a;const n=(i=e.html).includes("[[trackingImage]]")?i:i.replace(/<body([^>]*)>/i,"<body$1>[[trackingImage]]");var i;const l={name:e.name,email_campaign_activities:[{format_type:5,from_email:e.from_email,reply_to_email:e.from_email,from_name:e.from_name,subject:e.subject,html_content:n}]},d=await o({url:`?proxy_url=${encodeURIComponent(`${s}/emails`)}`,method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.access_token}`},body:JSON.stringify(l)});if(d.error){var c,u;const e=d.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(c=e.data)||void 0===c?void 0:c.error_message)||(null===e||void 0===e||null===(u=e.data)||void 0===u?void 0:u.error_key)||(null===e||void 0===e?void 0:e.error)||String(d.error)}}}const p=d.data,m=null===p||void 0===p||null===(a=p.campaign_activities)||void 0===a?void 0:a.find(e=>"primary_email"===e.role),h=null===m||void 0===m?void 0:m.campaign_activity_id,f=null===p||void 0===p?void 0:p.campaign_id;if(!h||!f)return{error:{status:"CUSTOM_ERROR",error:"Failed to create campaign"}};const y={campaign_activity_id:h,campaign_id:f,role:"primary_email",contact_list_ids:[e.list_id],segment_ids:[],current_status:"DRAFT",format_type:5,from_email:e.from_email,from_name:e.from_name,reply_to_email:e.from_email,subject:e.subject,html_content:n},_=await o({url:`?proxy_url=${encodeURIComponent(`${s}/emails/activities/${h}`)}`,method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.access_token}`},body:JSON.stringify(y)});if(_.error){var g,v;const e=_.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(g=e.data)||void 0===g?void 0:g.error_message)||(null===e||void 0===e||null===(v=e.data)||void 0===v?void 0:v.error_key)||(null===e||void 0===e?void 0:e.error)||String(_.error)}}}return{data:{campaign_id:f}}}})})}),{useCreateCampaignMutation:i}=n},77514:(e,t,r)=>{"use strict";r.d(t,{e:()=>l,X:()=>d});var o=r(94104),a=r(53366);const s=(e,t)=>`Basic ${btoa(`${e}:${t}`)}`,n=e=>e&&"object"===typeof e&&"data"in e&&void 0!==e.data?e.data:e,i=e=>e.trim().toLowerCase(),l=(0,o.xP)({reducerPath:"dotdigitalApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,r,o)=>{const a=e.html.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim(),l=`https://${e.region||"r1"}-api.dotdigital.com/v2`;const d={"Content-Type":"application/json",Authorization:s(e.username,e.password)},c=await o({url:`?proxy_url=${encodeURIComponent(`${l}/custom-from-addresses`)}`,method:"GET",headers:{Authorization:s(e.username,e.password)}});let u=[];if(!c.error){const e=n(c.data);Array.isArray(e)?u=e:e&&"object"===typeof e&&Array.isArray(e.items)&&(u=e.items)}const p=i(e.from_email),m=u.find(e=>e.email&&i(e.email)===p),h={name:e.name,subject:e.subject,fromName:e.from_name,htmlContent:e.html,plainTextContent:a||"Newsletter"},f=!(null!==m&&void 0!==m&&m.id);null!=(null===m||void 0===m?void 0:m.id)&&(h.fromAddress={id:m.id});const y=await o({url:`?proxy_url=${encodeURIComponent(`${l}/campaigns`)}`,method:"POST",headers:d,body:JSON.stringify(h)});if(y.error){var _;const e=y.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(_=e.data)||void 0===_?void 0:_.message)||(null===e||void 0===e?void 0:e.error)||String(y.error)}}}const g=n(y.data);if(null===g||void 0===g||!g.id){const e=y.data;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e?void 0:e.message)||(null===g||void 0===g?void 0:g.message)||"Failed to create campaign"}}}return{data:{id:g.id,usedAccountDefaultFromAddress:f}}}})})}),{useCreateCampaignMutation:d}=l},69884:(e,t,r)=>{"use strict";r.d(t,{u:()=>s,c:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"enkodApi",baseQuery:(0,a.cw)({baseUrl:"https://api.enkod.ru"}),endpoints:e=>({createMessage:e.mutation({query:e=>{const t=e.html_content.replace(/<style[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<[^>]+>/g," ").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/\s+/g," ").trim()||e.subject;const r={message:{subject:e.subject,fromEmail:e.sender_email||"",fromName:e.sender_name||"",html:e.html_content,plainText:t},isDraft:!0};return{url:"/v1/message/onetime/",method:"POST",headers:{"Content-Type":"application/json",Apikey:e.api_key},body:r}}})})}),{useCreateMessageMutation:n}=s},96968:(e,t,r)=>{"use strict";r.d(t,{u:()=>s,b:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"getresponseApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createNewsletter:e.mutation({queryFn:async(e,t,r,o)=>{const a=e.html.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim(),s={name:e.name,type:"draft",subject:e.subject,fromField:{fromFieldId:e.from_field_id},replyTo:{fromFieldId:e.from_field_id},campaign:{campaignId:e.campaign_id},content:{html:e.html,plain:a||"Newsletter"},flags:["openrate","clicktrack"],sendSettings:{selectedCampaigns:[e.campaign_id]}},n=await o({url:`?proxy_url=${encodeURIComponent("https://api.getresponse.com/v3/newsletters")}`,method:"POST",headers:{"Content-Type":"application/json","X-Auth-Token":(i=e.api_key,`api-key ${i}`)},body:JSON.stringify(s)});var i;if(n.error){var l,d;const e=n.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.message)||(null===e||void 0===e||null===(d=e.data)||void 0===d?void 0:d.code)||(null===e||void 0===e?void 0:e.error)||String(n.error)}}}const c=n.data;if(null===c||void 0===c||!c.newsletterId){const e=n.data;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e?void 0:e.message)||"Failed to create newsletter"}}}return{data:{newsletterId:c.newsletterId}}}})})}),{useCreateNewsletterMutation:n}=s},44056:(e,t,r)=>{"use strict";r.d(t,{m:()=>s,T:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"hubspotApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createEmail:e.mutation({queryFn:async(e,t,r,o)=>{const a={"Content-Type":"application/json",Authorization:`Bearer ${e.api_key}`};const s={name:e.name,subject:e.subject,from:{fromName:e.from_name,replyTo:e.from_email},content:{templatePath:"@hubspot/email/dnd/plain_text.html",widgets:{"module-0-1-1":{body:{html:e.html,path:"@hubspot/rich_text",schema_version:2},child_css:{},css:{},id:"module-0-1-1",name:"module-0-1-1",order:2,styles:{},type:"module"},"module-1-1-1":{body:{align:"center",path:"@hubspot/email_footer",schema_version:2,unsubscribe_link_type:"both"},child_css:{},css:{},id:"module-1-1-1",name:"module-1-1-1",order:3,styles:{},type:"module"}}}},n=await o({url:`?proxy_url=${encodeURIComponent("https://api.hubapi.com/marketing/v3/emails/")}`,method:"POST",headers:a,body:JSON.stringify(s)});if(n.error){var i,l;const e=n.error,t=null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.errors,r=null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.message;return{error:{status:"CUSTOM_ERROR",error:null!==t&&void 0!==t&&t.length?t.map(e=>e.message||e.errorType).join("; "):r||(null===e||void 0===e?void 0:e.error)||String(n.error)}}}const d=n.data;if(null===d||void 0===d||!d.id){var c;const e=n.data;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(c=e.errors)||void 0===c?void 0:c.map(e=>e.message||e.errorType).join("; "))||"Failed to create email"}}}return{data:{id:d.id}}}})})}),{useCreateEmailMutation:n}=s},16360:(e,t,r)=>{"use strict";r.d(t,{W:()=>n,X:()=>i});var o=r(94104),a=r(53366);const s="https://a.klaviyo.com/api",n=(0,o.xP)({reducerPath:"klaviyoApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,r,o)=>{var a,n,i,l,d,c,u;const p={"Content-Type":"application/json",Accept:"application/json",Authorization:`Klaviyo-API-Key ${e.api_key}`,revision:"2025-04-15"};const m={data:{type:"template",attributes:{name:`Email ${Date.now()}`,editor_type:"CODE",html:e.html}}},h=await o({url:`?proxy_url=${encodeURIComponent(`${s}/templates`)}`,method:"POST",headers:p,body:JSON.stringify(m)});if(h.error){var f,y;const e=h.error,t=null===e||void 0===e||null===(f=e.data)||void 0===f?void 0:f.errors,r=null===e||void 0===e||null===(y=e.data)||void 0===y?void 0:y.detail;return{error:{status:"CUSTOM_ERROR",error:null!==t&&void 0!==t&&t.length?t.map(e=>e.detail||e.status).join("; "):r||(null===e||void 0===e?void 0:e.error)||String(h.error)}}}const _=h.data,g=null===_||void 0===_||null===(a=_.data)||void 0===a?void 0:a.id;if(!g)return{error:{status:"CUSTOM_ERROR",error:"Failed to create template"}};const v={data:{type:"campaign",attributes:{name:`Campaign ${Date.now()}`,audiences:{included:[e.list_id],excluded:[]},send_strategy:{method:"immediate"},"campaign-messages":{data:[{type:"campaign-message",attributes:{definition:{channel:"email",label:e.subject,content:{subject:e.subject,from_email:e.from_email,from_label:e.from_name,reply_to_email:e.from_email}}}}]}}}},b=await o({url:`?proxy_url=${encodeURIComponent(`${s}/campaigns`)}`,method:"POST",headers:p,body:JSON.stringify(v)});if(b.error){var E,T;const e=b.error,t=null===e||void 0===e||null===(E=e.data)||void 0===E?void 0:E.errors,r=null===e||void 0===e||null===(T=e.data)||void 0===T?void 0:T.detail;return{error:{status:"CUSTOM_ERROR",error:null!==t&&void 0!==t&&t.length?t.map(e=>e.detail||e.status).join("; "):r||(null===e||void 0===e?void 0:e.error)||String(b.error)}}}const w=b.data,S=null===w||void 0===w||null===(n=w.data)||void 0===n||null===(i=n.relationships)||void 0===i||null===(l=i["campaign-messages"])||void 0===l||null===(d=l.data)||void 0===d||null===(c=d[0])||void 0===c?void 0:c.id,A=null===w||void 0===w||null===(u=w.data)||void 0===u?void 0:u.id;if(!S)return{error:{status:"CUSTOM_ERROR",error:"Failed to get campaign message from campaign"}};const C={data:{type:"campaign-message",id:S,relationships:{template:{data:{type:"template",id:g}}}}},P=await o({url:`?proxy_url=${encodeURIComponent(`${s}/campaign-message-assign-template`)}`,method:"POST",headers:p,body:JSON.stringify(C)});if(P.error){var q,O;const e=P.error,t=null===e||void 0===e||null===(q=e.data)||void 0===q?void 0:q.errors,r=null===e||void 0===e||null===(O=e.data)||void 0===O?void 0:O.detail;return{error:{status:"CUSTOM_ERROR",error:null!==t&&void 0!==t&&t.length?t.map(e=>e.detail||e.status).join("; "):r||(null===e||void 0===e?void 0:e.error)||String(P.error)}}}return{data:{id:A,campaign_message_id:S}}}})})}),{useCreateCampaignMutation:i}=n},59283:(e,t,r)=>{"use strict";r.d(t,{P:()=>s,X:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"mailchimpApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createCampaign:e.mutation({queryFn:async(e,t,r,o)=>{const a=`https://${(e=>{const t=e.split("-");return t.length>1?t[1]:"us1"})(e.api_key)}.api.mailchimp.com/3.0`;const s=btoa(`anystring:${e.api_key}`),n={type:"regular",recipients:{list_id:e.list_id},settings:{subject_line:e.subject,from_name:e.from_name,reply_to:e.from_email}},i=await o({url:`?proxy_url=${encodeURIComponent(`${a}/campaigns`)}`,method:"POST",headers:{"Content-Type":"application/json",Authorization:`Basic ${s}`},body:JSON.stringify(n)});if(i.error){var l,d;const e=i.error,t=(null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.detail)||(null===e||void 0===e?void 0:e.error)||String(i.error),r=null===e||void 0===e||null===(d=e.data)||void 0===d?void 0:d.errors;return{error:{status:"CUSTOM_ERROR",error:null!==r&&void 0!==r&&r.length?r.map(e=>e.detail||e.title).join("; "):t}}}const c=i.data;if(null===c||void 0===c||!c.id){var u;const e=i.data;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(u=e.errors)||void 0===u?void 0:u.map(e=>e.detail||e.title).join("; "))||"Failed to create campaign"}}}const p={html:e.html},m=await o({url:`?proxy_url=${encodeURIComponent(`${a}/campaigns/${c.id}/content`)}`,method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Basic ${s}`},body:JSON.stringify(p)});if(m.error){var h;const e=m.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(h=e.data)||void 0===h?void 0:h.detail)||(null===e||void 0===e?void 0:e.error)||String(m.error)}}}return{data:{id:c.id,status:c.status,web_id:c.web_id}}}})})}),{useCreateCampaignMutation:n}=s},42161:(e,t,r)=>{"use strict";r.d(t,{T:()=>s,S:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"mailganerApi",baseQuery:(0,a.cw)({baseUrl:"https://mailganer.com"}),endpoints:e=>({createMailing:e.mutation({query:e=>{const t=new URLSearchParams;return t.append("api_key",e.api_key),t.append("name",e.name),t.append("html-content",e.html_content),e.theme&&t.append("theme",e.theme),e.from_name&&t.append("from_name",e.from_name),e.from_email&&t.append("from_email",e.from_email),e.segment_id&&t.append("segment_id",String(e.segment_id)),e.utm_campaign&&t.append("utm_campaign",e.utm_campaign),e.utm_source&&t.append("utm_source",e.utm_source),e.utm_medium&&t.append("utm_medium",e.utm_medium),{url:"/api/v1/mailing/create/",method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t.toString()}}})})}),{useCreateMailingMutation:n}=s},20833:(e,t,r)=>{"use strict";r.d(t,{W:()=>s,T:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"salesforceMcApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createEmail:e.mutation({queryFn:async(e,t,r,o)=>{const a=`https://${e.subdomain}.auth.marketingcloudapis.com/v2/token`,s=await o({url:`?proxy_url=${encodeURIComponent(a)}`,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({grant_type:"client_credentials",client_id:e.client_id,client_secret:e.client_secret})});if(s.error){var n,i;const e=s.error;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.error_description)||(null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.error)||(null===e||void 0===e?void 0:e.error)||String(s.error)}}}const l=s.data,d=null===l||void 0===l?void 0:l.access_token,c=null===l||void 0===l?void 0:l.rest_instance_url;if(!d||!c)return{error:{status:"CUSTOM_ERROR",error:(null===l||void 0===l?void 0:l.error_description)||(null===l||void 0===l?void 0:l.error)||"Failed to get access token"}};const u={name:e.name,assetType:{id:208,name:"htmlemail"},views:{html:{content:e.html},text:{},subjectline:{content:e.subject},preheader:{}},data:{email:{options:{characterEncoding:"utf-8"}}}},p=await o({url:`?proxy_url=${encodeURIComponent(`${c.replace(/\/$/,"")}/asset/v1/content/assets`)}`,method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d}`},body:JSON.stringify(u)});if(p.error){var m,h;const e=p.error,t=null===e||void 0===e||null===(m=e.data)||void 0===m?void 0:m.errors,r=null===e||void 0===e||null===(h=e.data)||void 0===h?void 0:h.message;return{error:{status:"CUSTOM_ERROR",error:null!==t&&void 0!==t&&t.length?t.map(e=>e.message||e.documentation).join("; "):r||(null===e||void 0===e?void 0:e.error)||String(p.error)}}}const f=p.data;if(null===f||void 0===f||!f.id){var y;const e=p.data;return{error:{status:"CUSTOM_ERROR",error:(null===e||void 0===e||null===(y=e.errors)||void 0===y?void 0:y.map(e=>e.message).join("; "))||"Failed to create email"}}}return{data:{id:f.id}}}})})}),{useCreateEmailMutation:n}=s},48822:(e,t,r)=>{"use strict";r.d(t,{G:()=>s,_:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"sendsayApi",baseQuery:(0,a.cw)({baseUrl:"https://api.sendsay.ru"}),endpoints:e=>({createDraft:e.mutation({query:e=>{const t={action:"issue.draft.set",apikey:e.api_key,return_fresh_obj:1,obj:{name:e.name,letter:{subject:e.subject,"from.name":e.from_name||void 0,"from.email":e.from_email||void 0,message:{html:e.html_content}}}};return{url:`/general/api/v100/json/${e.login.split("/").map(e=>encodeURIComponent(e)).join("/")}`,method:"POST",headers:{"Content-Type":"application/json"},body:t}}})})}),{useCreateDraftMutation:n}=s},33480:(e,t,r)=>{"use strict";r.d(t,{K:()=>s,r:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"unisenderApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({createEmailMessage:e.mutation({query:e=>{const t=new URLSearchParams;return t.append("format","json"),Object.entries(e).forEach(([e,r])=>{t.append(e,String(r))}),{url:`?proxy_url=${encodeURIComponent("https://api.unisender.com/ru/api/createEmailMessage")}`,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t.toString()}}})})}),{useCreateEmailMessageMutation:n}=s},70529:(e,t,r)=>{"use strict";r.d(t,{Ar:()=>d,Cd:()=>i,Ef:()=>u,Lz:()=>n,Xi:()=>c,ax:()=>l,f5:()=>a,sZ:()=>s});var o=r(40713);const a="Not implemented in plugin",s=(0,o.Q)(),n=(0,o.Q)(),i=(0,o.Q)(),l=(0,o.Q)(),d=(0,o.Q)(),c=(0,o.Q)(),u=((0,o.Q)(),(0,o.Q)())},33943:(e,t,r)=>{"use strict";var o=r(77447),a=r(70529),s=r(65893),n=r(82106);const i=(0,o.l)(e=>{const t=e.getInstance(a.Lz),r=(0,s.Zc)(e,s.AZ.ON_CHUNKS_LOADED),o=t.addDisposable(new n.j);return r(()=>{o.dispose()}),{setOptions(e){},instance:{}}});var l=r(74778),d=r(4799),c=r(93506),u=r(40713),p=r(45092);const m=(0,u.Q)(),h=(0,u.Q)(),f=(0,o.l)(e=>({setOptions(t){const r=(0,d.y)(),o=(0,p.mg)(e);e.addService(p.jY,{execute:r.decorate(async r=>{if(t.jwtAuth){let a=e.getInstance(m),s=e.getInstance(h);if(!s&&!a){const r=await o.jwtAuth.token_create({body:t.jwtAuth,type:l.cM.Json});if(r.error)throw s=c.ff,e.inject(h,c.ff),new Error(c.ff);a=r.data.token,e.inject(m,a)}s||r.headers.append("authorization",`Bearer ${a}`)}})})}}));var y=r(24524);const _=(0,o.l)(e=>{let t=!0;return{setOptions(r){if(r.hasOwnProperty("baseUrl")){const o=e.getInstance(p.eT),a=o.getOptions(),s=(0,p.qT)(r.baseUrl);a.baseUrl!==s&&(o.setOptions({baseUrl:s}),t=!0)}if(t){if(!e.getInstance(a.Ef)){const t=e.getInstance(y.Pz);e.inject(a.sZ,async(e,r)=>r||t.app.app_init_create({}).then(({data:e})=>e),!0)}t=!1}}}});var g=r(50548),v=r(48952),b=r(49141);const E=(0,o.l)(e=>{let t,r,o;return{async setOptions(s){const n=o!==s.getAuthToken,i=!(0,v.b)(t,s.user),l=r!==s.project;if(o=s.getAuthToken,t=s.user,r=s.project,e.getInstance(a.Ef)&&s.getAuthToken&&(n||i||l))try{const t=await s.getAuthToken(s.user,s.project);e.inject(a.Xi,Promise.resolve(t||""));const r=(0,b.Qb)(t);if(!r)return;e.inject(a.Ar,r);const o=e.getInstance(a.sZ),n=o?await o.catch(()=>{}):void 0;e.inject(a.sZ,Promise.resolve((0,b.yN)(r,n)))}catch(d){}}}});var T=r(61140),w=r(59059),S=r(36255);const A=(0,o.l)(e=>{const t=e.getInstance(a.Lz),r=new w.vl,o=(0,S.m)(r.event);t.addDispose(()=>{const t=e.getInstance(a.Cd);r.fire(t.instance)});const s=t.addDisposable(new S.U(o));return t.addDisposable(r),{setOptions({handleDestroy:e}){s.setListener(e)},instance:{handleDestroy:o,destroy:()=>t.dispose()}}}),C=(0,s.cZ)("APP_LOAD_EVENT"),P=(0,o.l)(e=>{const t=e.getInstance(a.Lz),r=(0,s.Zc)(e,C),o=(0,S.m)(r),n=new Promise((e,o)=>{const a=t.addDisposable(r(t=>{a.dispose(),e(t)}))}),i=t.addDisposable(new S.U(o));return{setOptions({handleLoad:e}){i.setListener(e)},instance:{handleLoad:o,reset:t=>n.then(r=>{const o=e.getInstance(a.Cd);return null!==o&&void 0!==o&&o.setOptions?Promise.resolve(o.setOptions(t)).then(()=>r):r})},destroy:()=>t.dispose()}});r(9478),r(38615);c.EW.isPlugin=!0,c._P.isEditor=!1;(0,o.E)([A,i,P,f,E,g.h,_,(0,T.X)(()=>Promise.all([r.e(6369),r.e(3158),r.e(1532),r.e(2022),r.e(5333),r.e(1716),r.e(5215),r.e(6438),r.e(369)]).then(r.bind(r,57296)).then(e=>e.default))]);r(11822),r(4889),r(69986)},49793:(e,t,r)=>{"use strict";r.d(t,{Qq:()=>y,PL:()=>g,KA:()=>_,wz:()=>v});var o=r(59059);class a extends o.IO{async execute([e],t){for(const r of t){const t=await r(e);t&&(void 0===t.id&&(t.id=e.value.id),e.value=t)}return e.value}}class s extends o.lt{}var n=r(41244),i=r(48952);class l extends n.jG{constructor(...e){super(...e),this._items=new Map,this._onChangeEmitter=new o.HN,this.onChange=this._onChangeEmitter.event}async _getOrCreate(e,t){const r=this._items;let o;if(r.has(e))try{o=await r.get(e)}catch{t&&(o=await t())}else t&&(o=await t(),o&&this._onChangeEmitter.fire());return o}async _addOrUpdate(e,t){let r;const o=this._items;if(o.has(e))try{r=await o.get(e)}catch{}const a=await t(r);return(0,i.b)(r,a)||this._onChangeEmitter.fire(),a}entries(){return Promise.all([...this._items.entries()].map(([e,t])=>t.then(t=>[e,t]))).then(e=>e.filter(([e,t])=>!!t))}values(){return Promise.all([...this._items.values()].map(e=>e).filter(e=>!!e))}getOrCreate(e,t){const r=this._getOrCreate(e,()=>t(e));return this._items.set(e,r),r}addOrUpdate(e,t){const r=this._addOrUpdate(e,t);return this._items.set(e,r),r}add(e,t){const r=Promise.resolve(t);return this._items.set(e,r),r}remove(e){if(this._items.has(e)){const t=this._items.get(e);return this._items.delete(e),this._onChangeEmitter.fire(),t}return Promise.resolve(void 0)}async setAll(e){try{this.suspendChange();const t=[],r=new Set(Array.from(e).map(([e,t])=>e)),o=(await this.entries()).filter(([e,t])=>!r.has(e));for(const[a,s]of e)t.push(this.addOrUpdate(a,()=>s)),r.add(a);for(const[e]of o)t.push(this.remove(e));return await Promise.all(t),o}finally{this.resumeChange()}}clear(){this._items.clear(),this._onChangeEmitter.fire()}suspendChange(){this._onChangeEmitter.suspend()}resumeChange(){this._onChangeEmitter.resume()}}var d=r(28589),c=r(39608);class u extends n.jG{constructor(...e){super(...e),this._cache=new l,this._readEmitter=new o.lt,this._saveEmitter=this.addDisposable(new a),this._removeEmitter=this.addDisposable(new s),this._foreignCache=Object.create(null),this.handlerRead=this._readEmitter.event,this.onSave=this._saveEmitter.event,this.onRemove=this._removeEmitter.event,this.onChange=this._cache.onChange}async get(e){return this._cache.getOrCreate(e,async t=>Object.assign({id:e},...(await this._readEmitter.fire(e)).filter(e=>!!e)))}get cache(){return this._cache}byForeignKey(e){let t=this._foreignCache[e];if(!t){const r=this.addDisposable(new n.jG);r.addDispose(()=>delete this._foreignCache[e]);const a=r.addDisposable(new l),s=r.addDisposable(new o.lt);t=this._foreignCache[e]={get:async(t,r={})=>(await a.getOrCreate(t,async()=>{try{const r=function(e=[]){if((e=e.filter(e=>e)).length<=1)return e[0];const t=new Map;for(const r of e)for(const e of r)if(void 0!==e.id){const r=t.get(e.id)||{};t.set(e.id,{...r,...e})}return[...t].map(([e,t])=>t)}(await s.fire(t))||[];for(const o of r)o[e]=t,await this._cache.add(o.id,o);return r}catch{return[]}}),function(e,{filter:t,order:r="asc",orderBy:o,page:a,pageSize:s=20}={}){const n=e.length;let i=e.length;if(void 0!==t){const r=Object.keys(t);i=(e=e.filter(e=>{for(const o of r){const r=e[o],a=t[o];return"id"===o||"string"!==typeof r?r===a:"string"===typeof a&&r.startsWith(a)}return!0})).length}return o&&(e=e.sort((e,t)=>(e[o]>t[o]?1:t[o]>e[o]?-1:0)*("asc"===r?1:-1))),void 0!==a&&(e=e.slice(s*(a-1),s*a-1)),{data:e,filteredTotal:i,total:n,totalPages:Math.floor(n/s)}}(await this._cache.values()||[],r)),first:(e,r={})=>t.get(e,{...r,page:1,pageSize:1}).then(e=>e[0]),handleRead:s.event,clear(){a.clear()},dispose(){r.dispose()}}}return t}async create(e,{source:t="",silent:r}={}){let o=e;return r||(o=await this._saveEmitter.fire({prev:void 0,patch:e,value:o,source:t})),void 0===o.id&&(o.id=(0,d.l)()),await this._cache.addOrUpdate(o.id,()=>o)}async update(e,t,{source:r="",silent:o}={}){return this._cache.addOrUpdate(e,async e=>{const a=e?{...e,...t}:t;if(!o)return t=e?(0,c.g)(e,t):t,await this._saveEmitter.fire({prev:e,patch:t,value:a,source:r})})}async remove(e,{source:t="",silent:r}={}){const o=await this._cache.remove(e);return r||await this._removeEmitter.fire({value:o,source:t}),o}refresh(){this._cache.clear();for(const e of Object.values(this._foreignCache))e.clear()}suspendChange(){this._cache.suspendChange()}resumeChange(){this._cache.resumeChange()}}r(19684);var p=r(51432),m=r(70529),h=r(20263),f=r(40713);function y(){const e=(0,f.Q)();return t=>h.di.getOrCreateInstance(t,e,()=>new u)}function _(e){const t=h.di.getInstance(e,m.ax);if(!t)throw new Error("Failed");return t}function g(e){const t=h.di.getInstance(e,m.Lz);if(!t)throw new Error("Failed");return t}async function v(e){const t=_(e),r=await t.dispatch(p.Q2.endpoints.getMe.initiate({},{forceRefetch:!0}));return Promise.resolve(r.data)}},50548:(e,t,r)=>{"use strict";r.d(t,{Y:()=>c,h:()=>u});var o=r(51171),a=r(77447),s=r(97503),n=r(45092),i=r(40713),l=r(48952),d=r(70529);const c=(0,i.Q)(),u=(0,a.l)(e=>{let t,r,a;e.addService(n.jY,{execute:async r=>{if(t){const t=await e.getInstanceAsync(c);t&&r.headers.append("authorization",`Bearer ${t}`)}}});return{setOptions(n){const i=!(0,l.b)(r,n.user),u=a!==n.project;var p,m;(t!==n.getAuthToken||i||u)&&(t=n.getAuthToken,r=n.user,a=n.project,p=n.user,m=n.project,e.inject(c,void 0),e.inject(c,async(r,a)=>{try{let r;if(a&&(r=await a),!r){const t=e.getInstance(d.Xi);t&&(r=await t)}var n;return t?!r||1e3*(null===(n=(0,o.A)(r))||void 0===n?void 0:n.exp)<=(0,s.N)()?await t(p,m,r):r:""}catch(i){return""}},!0))}}})},77447:(e,t,r)=>{"use strict";function o(e){return function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...e(t)||{}}}}function a(e){return t=>{const r={},o=[];for(const a of e)o.push(a(t));for(const e of o)Object.assign(r,e.instance);return{instance:r,setOptions:async e=>{for(const t of o)await t.setOptions(e)},dispose:()=>{for(const e of o)e.dispose()}}}}r.d(t,{E:()=>a,l:()=>o})},61140:(e,t,r)=>{"use strict";r.d(t,{X:()=>s,y:()=>a});var o=r(70529);function a(e){return t=>{let r=null,a=!1;return{async setOptions(s){if(!r&&!a){r=await e(t);const a=await t.getInstanceAsync(o.Cd);Object.assign(a.instance,r.instance||{})}r.setOptions&&await r.setOptions(s)},instance:{},dispose(){var e,t;null!==(e=r)&&void 0!==e&&e.dispose&&(null===(t=r)||void 0===t||t.dispose());a=!0}}}}function s(e){return a(async t=>(await e(t))(t))}},49141:(e,t,r)=>{"use strict";r.d(t,{yN:()=>f,Qb:()=>h,qT:()=>_,tF:()=>y});var o=r(79465),a=r(15938),s=r.n(a),n=r(51171),i=r(22817),l=r(70529),d=r(20263),c=r(28589),u=r(57097);const p={AiApi:new Set(["sendMessage","getDialog"]),imageApi:new Set(["sendAiImageRequest","getAiImage","getAiImageSSE"])};function m(e,t,r,o){const a=p[t];return null!==a&&void 0!==a&&a.has(r)?t=>function(e){return function(e){var t;return void 0!==(null===e||void 0===e?void 0:e.backendProxy)&&!0===(null===e||void 0===e||null===(t=e.backendProxyPolicy)||void 0===t?void 0:t.proxyAi)}(function(e){var t;return null===(t=e.getState().configSlice)||void 0===t?void 0:t.config}(e))}(e)?e=>e(t):o(t):o}function h(e){var t,r;if(!e)return;const o=null===(t=(0,n.A)(e))||void 0===t||null===(r=t.data)||void 0===r?void 0:r.scope,a=(Array.isArray(o)?o.flatMap(e=>String(e).split(/\s+/)):String(o||"").split(/\s+/)).find(e=>/^project_\d+$/.test(e));return(null===a||void 0===a?void 0:a.replace(/^project_/,""))||void 0}function f(e,t){return{project:Number(e),app_id:(null===t||void 0===t?void 0:t.app_id)||0,app_config:(null===t||void 0===t?void 0:t.app_config)||{},user:null===t||void 0===t?void 0:t.user}}async function y(e){const t=d.di.getInstance(e,l.Ar),r=t?void 0:await d.di.getInstanceAsync(e,l.sZ).catch(()=>{}),o=t||(void 0!==(null===r||void 0===r?void 0:r.project)?String(r.project):void 0);o&&e.dispatch((0,i.od)(function(e){return{id:Number(e),title:"",members:{owner:{ID:""},admins:[],users:[],invited_users:[]},group:[],folder:[],blockfolder:[],projects_test_emails:[]}}(o)))}async function _(e,t){try{var r;const a=function(t){const r=d.di.getInstance(e,l.Ar),o=r?f(r,t):t;d.di.inject(e,l.sZ,Promise.resolve(o))},n=function(e){const t=(0,u.l)(e);return(r,o)=>{const a=Object.fromEntries(Object.entries(o).map(([t,o])=>[t,"function"===typeof o?m(e,r.reducerPath,t,o):o]));return t(r,a)}}(e),i=await s().loadAsync(t,{base64:!0}),p=await(null===(r=i.files.key)||void 0===r?void 0:r.async("text"));if("string"===typeof p){const e=await function(e){const t=`blocks_${(0,c.l)().replaceAll("-","")}`,r=document.createElement("script");return r.type="text/javascript",r.text=`window.${t}(function(module, exports, require) { ${e}; })`,new Promise((e,o)=>{window[t]=function(t){const r={exports:{}};t(r,r.exports,()=>{}),e(r.exports)},document.head.appendChild(r)}).finally(()=>{r.remove(),delete window[t]})}(p);"object"===typeof e&&"function"===typeof e.execute&&e.execute(a,n,o.F)}}catch{}}},51171:(e,t,r)=>{"use strict";function o(e){const[t,r,o]=e.split("."),a=JSON.parse(function(e){const t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),r=atob(t),o=new Uint8Array(r.length);for(let a=0;a<r.length;a++)o[a]=r.charCodeAt(a);return(new TextDecoder).decode(o)}(r));return{exp:a.exp,createdAt:a.iat,data:a}}r.d(t,{A:()=>o})},59059:(e,t,r)=>{"use strict";r.d(t,{HN:()=>c,IO:()=>s,P9:()=>n,lt:()=>p,pb:()=>l,sg:()=>d,vl:()=>u});var o=r(82106);class a extends o.j{constructor(...e){super(...e),this._listeners=[],this.event=this._addListener.bind(this)}getListeners(e){return this._listeners.flatMap(([t])=>"function"===typeof t?t:t.getListeners(e))}hasListeners(){return this._listeners.length>0}_addListener(e,t=0,r){if(!this.isDisposed()){const o=this._listeners;r&&"function"===typeof e&&(e=e.bind(r));const a=o.findIndex(([e,r])=>t<r),s=[e,t];return o.splice(a>=0?a:o.length,0,s),{dispose(){const e=o.indexOf(s);e>=0&&o.splice(e,1)}}}}dispose(){this._listeners.splice(0,this._listeners.length),super.dispose()}}class s extends a{constructor(...e){super(...e),this.fire=this._fire.bind(this)}execute(e,t){for(const o of t)try{o(...e)}catch(r){}}_fire(...e){if(!this.isDisposed()){const t=this.execute(e,this.getListeners(e));return"undefined"===typeof t?void 0:t}}}function n(e,t=0){const r=new a;return r.addDisposable(e(r,t)),r.event}class i extends a{constructor(e){super(),this._filter=e}getListeners(e){return this._filter(...e)?super.getListeners(e):[]}}function l(e,t,r=0){const o=new i(t);return o.addDisposable(e(o,r)),o.event}function d(e,t=0,r=0){const o=new s;let a,n=0;return o.addDisposable(e((...e)=>{a=e,n||(n=setTimeout(()=>{o.fire(...a),n=0},t))},r)),o.event}class c extends s{constructor(...e){super(...e),this._suspendCounter=0,this._wasFired=!1}proccessResult(){}execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(const o of t)try{o(e)}catch(r){}}suspend(){this._suspendCounter++}resume(){0===--this._suspendCounter&&(this._wasFired&&this.fire(),this._wasFired=!1)}}class u extends s{execute([e],t){for(const o of t)try{o(e)}catch(r){}}}class p extends s{async execute([e],t){const r=[];for(const o of t){const t=await o(e);r.push(t)}return r}}},36255:(e,t,r)=>{"use strict";r.d(t,{U:()=>s,m:()=>n});var o=r(82106),a=r(59059);class s extends o.j{constructor(e){super(),this._event=e,this._listener=void 0,this._disposeEvent=void 0}setListener(e){this._listener!==e&&(this._listener=e,this._disposeEvent&&this._disposeEvent(),this._disposeEvent=e?this._event(e):void 0)}dispose(){this._disposeEvent&&this._disposeEvent(),super.dispose()}}function n(e,t,r){const o=(0,a.P9)(e);return(e,a,s)=>{const n=o(async o=>{const a=t?t(o):o;s&&e.bind(s);const n=await e(a);return r?r(n):n},a,s);return()=>n.dispose()}}},4799:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});const o=e=>{const t={current:Promise.resolve(),state:e,decorate:(e,r)=>(r&&(e=e.bind(r)),function(...r){const o=t.current.then(()=>e(...r));return t.current=o.then(e=>{t.state=e},e=>{}),o})};return t}},9478:(e,t,r)=>{"use strict";r.d(t,{s:()=>s,x:()=>a});var o=r(82106);function a(e,t){if("undefined"!==typeof e){if("string"===typeof e){if(e=document.querySelector(e))return e;const r=t.addDisposable(new o.j);return new Promise((t,o)=>{const a=new MutationObserver(()=>{(e=document.querySelector(e))&&(r.dispose(),t(e))});a.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),r.addDisposable({dispose:()=>a.disconnect()})})}return e}return e}const s=new Map},83231:(e,t,r)=>{"use strict";r.d(t,{EQ:()=>i,YG:()=>d,Zs:()=>n,gb:()=>l});var o=r(94104),a=r(26967);const s="Ai",n=(0,o.xP)({reducerPath:"AiApi",tagTypes:[s],baseQuery:(0,a.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/save-file/v1/"}),endpoints:e=>({sendMessage:e.mutation({queryFn:({body:e},t)=>(0,a.KU)(t).aiGenerator.ai_create(e)}),getDialog:e.query({queryFn({entity_id:e,connection:t="chat"},r){var o,s;if(!1===(null===(o=r.getState().configSlice)||void 0===o||null===(s=o.config)||void 0===s?void 0:s.aiAssistentEnabled))return Promise.resolve({data:{documents:[],totalCount:0}});return(0,a.KU)(r).aiGenerator.ai_status_list({connection:t,entity_id:e})},providesTags:e=>null!==e&&void 0!==e&&e.documents?[...e.documents.map(({id:e})=>({type:s,id:e})),{type:s,id:"LIST"}]:[{type:s,id:"LIST"}]})})}),{useSendMessageMutation:i,useGetDialogQuery:l,useLazyGetDialogQuery:d}=n},78344:(e,t,r)=>{"use strict";r.d(t,{Uu:()=>c,MN:()=>f,Ll:()=>m,y4:()=>h});var o=r(94104),a=r(27849),s=r(50548),n=r(90197),i=r(93506),l=r(20263),d=r(26967);const c=(0,o.xP)({reducerPath:"AiApiGenerator",baseQuery:async(e,t,r)=>{const o=(0,d.KU)(t).baseUrl.replaceAll(/[\\/]$/g,""),a=(0,d.hI)({baseUrl:o}),s=await a(e,t,r);if(s.error){let e=s.error;if("function"===typeof e.json)try{e=await e.json()}catch{e=await e}return{error:e}}return s},endpoints:e=>({generateIdForTask:e.mutation({queryFn:(e,t)=>(0,d.u$)(t).tasks.tasksControllerCreateTask(e).then(e=>e)}),clearAiChat:e.query({queryFn:(e,t)=>(0,d.KU)(t).aiGenerator.clear_history_list(e).then(e=>e)}),getGeneratedContent:e.query({queryFn:e=>({data:[]}),async onCacheEntryAdded({id:e,setError:t},r){const{updateCachedData:o,cacheEntryRemoved:c}=r,u=(0,d.KU)(r).baseUrl.indexOf("emailmaker")>=0?i.e3.maker:i.e3.blocks,p=i.EW.isPlugin?await l.di.getInstance(r,s.Y):a.A.get(i.A9.em_token),m=p?{Authorization:`Bearer ${p}`}:{},h=new n.EventSourcePolyfill(`${u}/tasks/${e}`,{headers:m});h.onmessage=e=>{const t=JSON.parse(e.data);o(e=>{e.push(t)})},h.onerror=e=>{t("Error connecting to EventSource"),h.close()},await c,h.close()}}),getAiGenerateStatus:e.mutation({query:e=>({url:"/constructor/v1/ai-save-task",method:"POST",body:e})})})}),{useGenerateIdForTaskMutation:u,useGetGeneratedContentQuery:p,useLazyClearAiChatQuery:m,useLazyGetGeneratedContentQuery:h,useGetAiGenerateStatusMutation:f}=c},83193:(e,t,r)=>{"use strict";r.d(t,{lH:()=>i});var o=r(92079);function a(e){return`em_autosave_pending_${e}`}function s(e){try{sessionStorage.removeItem(a(e))}catch{}}function n(e,t){var r;return!(null===(r=e.slug)||void 0===r||!r.includes("autosave"))&&Date.parse(e.modified)>=t-5e3}const i=new class{constructor(){this.polls=new Map,this.processedEmails=new Set}onAutoSaveStarted(e,t){!function(e,t){try{sessionStorage.setItem(a(e),JSON.stringify(t))}catch{}}(e,t)}onAutoSaveCompleted(e){}onHistoryFetched(e,t,r,i){const l=function(e){return null!==e&&void 0!==e&&e.length?[...e].sort((e,t)=>Date.parse(t.modified)-Date.parse(e.modified))[0]:null}(t),d=this.polls.get(e);if(d&&(d.triggerRefetch=i,d.dispatch=r),"fast"===(null===d||void 0===d?void 0:d.phase)){return void(!(!l||!n(l,d.pending.sentAt))&&(s(e),this.cancelPolling(e),r((0,o.H3)({emailId:e,payload:l,phase:"found"})),this.processedEmails.add(e)))}if("bg"===(null===d||void 0===d?void 0:d.phase))return void(l&&n(l,d.pending.sentAt)&&(s(e),this.cancelPolling(e),r((0,o.H3)({emailId:e,payload:l,phase:"bg"}))));if(this.processedEmails.has(e))return;const c=function(e){try{const t=sessionStorage.getItem(a(e));if(!t)return null;const r=JSON.parse(t);return Date.now()-r.sentAt>6e4?(sessionStorage.removeItem(a(e)),null):r}catch{return null}}(e);var u;c?l&&n(l,c.sentAt)?(s(e),r((0,o.H3)({emailId:e,payload:l,phase:"found"})),this.processedEmails.add(e)):this.startFastPoll(e,c,r,i):(null!==l&&void 0!==l&&null!==(u=l.slug)&&void 0!==u&&u.includes("autosave")&&r((0,o.H3)({emailId:e,payload:l,phase:"normal"})),this.processedEmails.add(e))}cancelPolling(e){const t=this.polls.get(e);null!==t&&void 0!==t&&t.timer&&clearTimeout(t.timer),t&&t.dispatch((0,o.Bn)(!1)),this.polls.delete(e),this.processedEmails.delete(e)}startFastPoll(e,t,r,a){r((0,o.Bn)(!0));const s={phase:"fast",attempts:0,pending:t,timer:null,triggerRefetch:a,dispatch:r};this.polls.set(e,s),this.scheduleNextPoll(e)}scheduleNextPoll(e){const t=this.polls.get(e);if(!t)return;const r="fast"===t.phase,a=r?2e3:5e3,n=r?5:4;t.timer=setTimeout(()=>{const t=this.polls.get(e);if(t)if(t.attempts++,t.triggerRefetch(),r&&t.attempts>=n){const{pending:r,dispatch:a}=t;s(e),a((0,o.Bn)(!1)),a((0,o.H3)({emailId:e,payload:{html:r.html,common_styles:r.common_styles,subject:r.subject,preheader:r.preheader},phase:"timeout"})),this.processedEmails.add(e),t.phase="bg",t.attempts=0,this.scheduleNextPoll(e)}else!r&&t.attempts>=n?(s(e),this.cancelPolling(e)):this.scheduleNextPoll(e)},a)}}},24709:(e,t,r)=>{"use strict";r.d(t,{N:()=>o.N});var o=r(12465)},91875:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});var o=r(94104),a=r(74778),s=r(26967);const n=(0,o.xP)({reducerPath:"addUserToProjectApi",baseQuery:(0,s.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/user_to_project/v1/add_user"}),endpoints:e=>({addUserToProject:e.mutation({queryFn:(e,t)=>(0,s.KU)(t).userToProject.add_user_create(e,{type:a.cM.FormData})})})}),{useAddUserToProjectMutation:i}=n},42712:(e,t,r)=>{"use strict";r.d(t,{q:()=>o.q});var o=r(87644)},51432:(e,t,r)=>{"use strict";r.d(t,{Q2:()=>p,b9:()=>f,CR:()=>m,W5:()=>_,i2:()=>g,on:()=>h,hZ:()=>y});var o=r(94104),a=r(74778),s=r(47085);const n=["is_paying","is_paying_user","paying","paying_user"];function i(e){if(!e||"object"!==typeof e)return!1;const t=e;for(const r of n){const e=t[r];if(!0===e||1===e||"1"===e)return!0;if("string"===typeof e&&"true"===e.trim().toLowerCase())return!0}return!1}function l(e){var t;const r=null!==(t=e.acf)&&void 0!==t?t:{},{autosaves:o,hide_mergetags:a,theme:n,newsletter_consent:l,code_editor:d,counters:c,subscription:u,subscription_end:p,recurring_payments:m,subscription_id:h,promocode:f,subscription_amount:y,enterprise_users_limit:_,enterprise_price:g,enterprise_12_price:v,privacy_policy_agreement:b,last_used_project:E,email_confirmation:T,email_builder_config:w}=r,{id:S,acf:A,...C}=e,P=function(e){var t,r;if(!e)return!1;const o=e,a=null!==(t=null!==(r=o.trial_enabled)&&void 0!==r?r:o.trial)&&void 0!==t?t:o.is_get_trial;return!0===a||1===a||"1"===a||"string"===typeof a&&"true"===a.toLowerCase()}(r),q=i(r)||i(C)||i(e.meta);return{...C,id:(0,s.WY)(S),username:C.username||"",email:C.email||"",password:C.password||"",trial_enabled:P,is_paying:q,autosaves:o,hide_mergetags:a,theme:n,newsletter_consent:l,code_editor:d?{...d,font_size:Number(d.font_size)}:void 0,counters:Object.keys(c).reduce((e,t)=>(e[t]=Number(c[t]),e),{}),subscription:u,subscription_end:p,recurring_payments:m,subscription_id:h,promocode:f,subscription_amount:y,enterprise_users_limit:_,enterprise_price:g,enterprise_12_price:v,privacy_policy_agreement:b,last_used_project:E,email_confirmation:T,email_builder_config:w}}function d({title:e,acf:{limits:t,price:r},...o}){return{...o,title:(0,s.vf)(e)||"",limits:t,price:r}}var c=r(26967),u=r(72227);const p=(0,o.xP)({reducerPath:"authorizationApi",baseQuery:(0,c.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({userRegistration:e.mutation({queryFn:(e,t)=>(0,c.KU)(t).wp.users_register_create({body:e,type:a.cM.Json})}),emailUserRegistration:e.mutation({query:e=>({url:`${"https://app.emailmaker.ru/api/".replaceAll(/[\\/]$/g,"")}/wp-json/auth/v1/users/register`,method:"POST",body:e})}),getMailConfirmation:e.query({queryFn:(e,t)=>(0,c.KU)(t).wp.confirmation_list({...e})}),getSchema:e.query({queryFn:(e,t)=>(0,c.KU)(t).wp.users_me_list(void 0,{method:"OPTIONS",extraQuery:{_fields:"schema"}})}),getMe:e.query({queryFn:(e,t)=>(0,c.KU)(t).wp.users_me_list(null).then((0,u.SC)(e=>e instanceof Array?e[0]:e)).then((0,u.SC)(l))}),getUser:e.query({queryFn:(e,t)=>(0,c.KU)(t).wp.users_detail({id:e}).then((0,u.SC)(l))}),editMe:e.mutation({queryFn(e,t){const r=(0,c.KU)(t),o=(0,s.TB)(function({autosaves:e,theme:t,newsletter_consent:r,code_editor:o,counters:a,subscription:n,subscription_end:i,recurring_payments:l,subscription_id:d,promocode:c,subscription_amount:u,enterprise_users_limit:p,enterprise_price:m,enterprise_12_price:h,privacy_policy_agreement:f,locale:y,last_used_project:_,email_confirmation:g,email_builder_config:v,trial_enabled:b,is_paying:E,id:T,...w}){return{...w,id:(0,s.mQ)(T),locale:y,acf:{autosaves:e,theme:t,newsletter_consent:r,code_editor:o?{...o,font_size:String(o.font_size)}:void 0,counters:a,subscription:n,subscription_end:i,recurring_payments:l,subscription_id:d,promocode:c,subscription_amount:u,enterprise_users_limit:p,enterprise_price:m,enterprise_12_price:h,privacy_policy_agreement:f,last_used_project:_,email_confirmation:g,email_builder_config:v,...void 0!==b?{trial_enabled:b}:{},...void 0!==E?{is_paying:E}:{}}}}(e),!0);return r.wp.users_me_create(o,{type:a.cM.Json}).then((0,u.SC)(l))}}),getSubscriptions:e.query({queryFn:(e,t)=>(0,c.KU)(t).wp.subscription_list(void 0).then((0,u.Ih)(d))}),activateTrial:e.mutation({query:e=>({url:`${"https://app.emailmaker.ru/api/".replaceAll(/[\\/]$/g,"")}/wp-json/subscription/v2/activate_trial`,method:"GET",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"}})}),getElamaCallback:e.mutation({query:e=>({url:`${"https://app.emailmaker.ru/api/".replaceAll(/[\\/]$/g,"")}/wp-json/auth/v1/elama/callback`,method:"POST",body:e})}),refreshElamaToken:e.mutation({query:e=>({url:`${"https://app.emailmaker.ru/api/".replaceAll(/[\\/]$/g,"")}/wp-json/auth/v1/elama/refresh_token`,method:"POST",body:{refresh_token:e}})})})}),{useGetMeQuery:m,useLazyGetMeQuery:h,useEditMeMutation:f,useLazyGetSchemaQuery:y,useGetSubscriptionsQuery:_,useLazyGetMailConfirmationQuery:g,useEmailUserRegistrationMutation:v,useActivateTrialMutation:b,useGetElamaCallbackMutation:E,useRefreshElamaTokenMutation:T}=p},36401:(e,t,r)=>{"use strict";r.d(t,{d:()=>o.d});var o=r(50121)},45988:(e,t,r)=>{"use strict";r.d(t,{VM:()=>h,pP:()=>T,Gr:()=>S,yW:()=>A,OZ:()=>w,SB:()=>f,h1:()=>b,OD:()=>E,kz:()=>C,lx:()=>v});var o=r(94104),a=r(74778),s=r(47085),n=r(28589);function i({id:e,type:t,title:r,excerpt:o,author:a,acf:{subject:i,description:l,html:d,project:c,related_email:u,tags:p,type:m,is_template:h,lock:f},...y}){return{...y,id:String(e),author:String(a),renderGuid:(0,n.l)(),description:l,html:d,excerpt:(0,s.vf)(r),project:(0,s.pT)(c)?c.ID:c,project_author:(0,s.pT)(c)?c.post_author:void 0,project_title:(0,s.pT)(c)?c.post_title:void 0,tags:p,is_template:h,type:m,related_email:(0,s.WY)((0,s.pT)(u)?u.ID:u),title:(0,s.vf)(r)||"",lock:f}}function l({title:e,subject:t,description:r,renderGuid:o,html:a,project:n,tags:i,type:l,related_email:d,is_template:c,lock:u,author:p,...m}){return{...m,author:(0,s.mQ)(p),title:e,acf:{description:r,related_email:(0,s.mQ)(d),html:a,project:n,tags:i,type:l,is_template:c,lock:u}}}function d({id:e,title:t,acf:{html:r},excerpt:o,parent:a,author:n,...i}){return{...i,id:(0,s.WY)(e),author:(0,s.WY)(n),parent:(0,s.WY)(a),title:(0,s.vf)(t)||"",html:r,excerpt:(0,s.pT)(o)?o.rendered:o}}var c=r(93506),u=r(72227),p=r(67630),m=r(26967);const h=(0,o.xP)({reducerPath:"blocksApi",tagTypes:["Blocks","TemplatesBlocks","ParentsBlocks","Block"],baseQuery:(0,m.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getBlocks:e.query({queryFn(e,t){var r,o;const a=(0,m.KU)(t),s={order:"desc",orderby:"modified"},n={};if(e.notEmbed||(n._embed=""),e.projectId&&(n._embed="author",n._fields="id,title,blocktags,blockfolder,group,modified,date,type,acf.lock,acf.project.ID,acf.type,author,acf.is_template,acf.html,_embedded",s["filter[meta_key]"]="project",s["filter[meta_value]"]=e.projectId),e.fields&&(n._fields=e.fields),e.page&&(s.page=e.page),e.order&&(s.order=e.order),e.orderby&&(s.orderby=e.orderby),e.folderTag&&e.folderTag!==c.y2?(s["filter[tax_query][relation]"]="AND",s["filter[tax_query][0][taxonomy]"]="blockfolder",s["filter[tax_query][0][field]"]="id",s["filter[tax_query][0][terms]"]=e.folderTag,s["filter[tax_query][0][include_children]"]="0"):!e.hasOwnProperty("folderTag")||e.folderTag===c.y2&&("object"!==typeof e.folderTag||null!==e.folderTag)||null!==(r=e.tags)&&void 0!==r&&r.length||!e.status||"trash"===e.status||(s["filter[tax_query][0][taxonomy]"]="blockfolder",s["filter[tax_query][0][operator]"]="NOT EXISTS"),(null===(o=e.tags)||void 0===o?void 0:o.length)>0&&"trash"!==e.status){s["filter[tax_query][relation]"]="AND";for(let t=0,r=e.tags.length;t<r;t++){const r=e.tags[t];s[`filter[tax_query][${t+1}][taxonomy]`]="blocktags",s[`filter[tax_query][${t+1}][field]`]="id",s[`filter[tax_query][${t+1}][terms]`]=r}}return e.type&&(s["filter[meta_query][2][key]"]="type",s["filter[meta_query][2][value]"]=e.type),e.name&&(s.search=e.name),e.pageSize&&(s.per_page=e.pageSize),"trash"===e.status&&(n.status="trash"),a.wp.eblock_list(s,{extraQuery:n}).then((0,u.Ih)(i))},providesTags:e=>e?[...e.map(({id:e})=>({type:"Blocks",id:e})),{type:"Blocks",id:"LIST"}]:[{type:"Blocks",id:"LIST"}],keepUnusedDataFor:0}),getBlocksSchema:e.query({queryFn:(e,t)=>(0,m.KU)(t).wp.eblock_list(void 0,{method:"OPTIONS",extraQuery:{_fields:"schema.properties.acf"}})}),getParentEmailBlocks:e.query({queryFn(e,t){var r;const o=(0,m.KU)(t),a={"filter[meta_query][0][compare]":"LIKE"},s={};if(e.notEmbed||(s._embed=""),e.emailId&&(a["filter[meta_query][0][key]"]="related_email",a["filter[meta_query][0][value]"]=e.emailId),e.fields&&(s._fields=e.fields),e.page&&(a.page=e.page),(null===(r=e.tags)||void 0===r?void 0:r.length)>0){a["filter[tax_query][relation]"]="AND";for(let t=0,r=e.tags.length;t<r;t++){const r=e.tags[t];a[`filter[tax_query][${t}][taxonomy]`]="blocktags",a[`filter[tax_query][${t}][field]`]="id",a[`filter[tax_query][${t}][terms]`]=r}}return e.type&&(a["filter[meta_query][2][key]"]="type",a["filter[meta_query][2][value]"]=e.type),e.name&&(a.search=e.name),e.pageSize&&(a.per_page=e.pageSize),o.wp.eblock_list(a,{extraQuery:s}).then((0,u.Ih)(i))},providesTags:e=>e?[...e.map(({id:e})=>({type:"ParentsBlocks",id:e})),{type:"ParentsBlocks",id:"LIST"}]:[{type:"ParentsBlocks",id:"LIST"}],keepUnusedDataFor:0}),getTemplateBlocks:e.query({queryFn:(e,t)=>{var r;const o=(0,m.KU)(t),a={"filter[meta_query][1][key]":"is_template","filter[meta_query][1][value]":"1",orderby:"modified",order:"desc"},s={};if(e.notEmbed||(s._embed=""),e.fields&&(s._fields=e.fields),e.page&&(a.page=e.page),(null===(r=e.tags)||void 0===r?void 0:r.length)>0){a["filter[tax_query][relation]"]="AND";for(let t=0,r=e.tags.length;t<r;t++){const r=e.tags[t];a[`filter[tax_query][${t}][taxonomy]`]="blocktags",a[`filter[tax_query][${t}][field]`]="id",a[`filter[tax_query][${t}][terms]`]=r}}return e.type&&(a["filter[meta_query][2][key]"]="type",a["filter[meta_query][2][value]"]=e.type),e.name&&(a.search=e.name),e.pageSize&&(a.per_page=e.pageSize),o.wp.eblock_list(a,{extraQuery:s}).then((0,u.Ih)(i))},providesTags:e=>e?[...e.map(({id:e})=>({type:"TemplatesBlocks",id:e})),{type:"TemplatesBlocks",id:"LIST"}]:[{type:"TemplatesBlocks",id:"LIST"}],keepUnusedDataFor:0}),getBlock:e.query({queryFn:(e,t)=>(0,m.KU)(t).wp.eblock_detail({id:(0,s.mQ)(e)},{extraQuery:{_embed:""}}).then((0,u.SC)(i)),providesTags:(e,t,r)=>[{type:"Block",id:r}],keepUnusedDataFor:0}),getBlockHistory:e.query({queryFn:({blockId:e,page:t=1},r)=>(0,m.KU)(r).wp.eblock_revisions_list({parent:e,per_page:20,page:t},{extraQuery:{_fields:"author,slug,date,modified,title,acf.html,acf.common_styles,id"}}).then(r=>(0,u.SA)(r,(r,o)=>({data:r.filter(e=>e.acf.html).map(e=>({...e,acf:{...e.acf,html:e.acf.html}})).map(d),totalPages:+o.response.headers.get("X-WP-TotalPages"),args:{blockId:e,page:t}}))),keepUnusedDataFor:0}),addBlock:e.mutation({queryFn:(e,t)=>(0,m.KU)(t).wp.eblock_create({...l(e),status:"publish"},{type:a.cM.Json}).then((0,u.SC)(i)),invalidatesTags:[{type:"Blocks",id:"LIST"}]}),editBlock:e.mutation({queryFn:(0,p.p)(e=>({blockId:t,source:r,...o},n)=>{const d=(0,m.KU)(e),c=(0,s.TB)(l(o));return d.wp.eblock_partial_update({id:t},c,{type:a.cM.Json,extraQuery:{_embed:"wp:term"}}).then((0,u.SC)(i))})}),deleteBlock:e.mutation({queryFn(e,t){const r=(0,m.KU)(t);let o,a;return"object"===typeof e?(o=e.id,a=e.force):(o=e,a=!1),r.wp.eblock_delete({id:o},{force:a}).then((0,u.PI)(i))},invalidatesTags:(e,t,r)=>[{type:"Blocks",id:r}]}),addTag:e.mutation({queryFn:(e,t)=>(0,m.KU)(t).wp.blocktags_create({...e},{type:a.cM.Json})}),getDeletableTag:e.query({queryFn:([e,t],r)=>(0,m.KU)(r).wp.eblock_list({status:["private"],"filter[meta_key]":"project","filter[meta_value]":e,blocktags:[t]},{extraQuery:{"_fields[]":"blocktags"}}).then((0,u.Ih)(i))}),autoSaveBlock:e.mutation({queryFn({blockId:e,body:t},r){const o=(0,m.KU)(r),n=function({parent:e,title:t,html:r,project:o,author:a,...n}){return{...n,author:(0,s.mQ)(a),parent:(0,s.mQ)(e),title:(0,s.vf)(t),"acf[html]":r,"acf[project]":(0,s.pT)(o)?o.id||o.ID:o}}(t);return o.wp.eblock_autosaves_create({id:e},n,{type:a.cM.FormData}).then((0,u.SC)(d))}})})}),{useGetBlocksQuery:f,useGetBlockQuery:y,useLazyGetBlockQuery:_,useGetBlockHistoryQuery:g,useLazyGetBlockHistoryQuery:v,useGetBlocksSchemaQuery:b,useGetParentEmailBlocksQuery:E,useAddBlockMutation:T,useEditBlockMutation:w,useAddTagMutation:S,useAutoSaveBlockMutation:A,useGetTemplateBlocksQuery:C}=h},80293:(e,t,r)=>{"use strict";r.d(t,{x:()=>o.x});var o=r(98881)},84697:(e,t,r)=>{"use strict";r.d(t,{n:()=>o.n});var o=r(36472)},64886:(e,t,r)=>{"use strict";r.d(t,{Jg:()=>c,z2:()=>p,HI:()=>m,vn:()=>f,kk:()=>h,Cf:()=>u});var o=r(94104),a=r(74778),s=r(47085);function n({id:e,post:t,parent:r,author:o,content:a,acf:{status:n,target_id:i},...l}){return{...l,id:(0,s.WY)(e),post:(0,s.WY)(t),parent:(0,s.WY)(r),author:(0,s.WY)(o),content:(0,s.vf)(a),target_id:i,comment_status:n}}var i=r(26967),l=r(72227);const d="Comments",c=(0,o.xP)({reducerPath:"commentsApi",tagTypes:[d],baseQuery:(0,i.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getComments:e.query({queryFn:function(e,t){return(0,i.KU)(t).wp.comments_list({post:[(0,s.mQ)(e)],per_page:50,order:"asc"}).then((0,l.Ih)(n))},providesTags:e=>e?[...e.map(({id:e})=>({type:d,id:e})),{type:d,id:"LIST"}]:[{type:d,id:"LIST"}]}),addComment:e.mutation({queryFn({subjectId:e,author:t,parent:r,content:o,author_name:d,author_email:c,targetId:u},p){const m=(0,i.KU)(p),h={post:(0,s.mQ)(e),author:(0,s.mQ)(t),author_name:d,author_email:c},f={};return o&&(h.content=o),r&&(h.parent=(0,s.mQ)(r)),u&&(f["acf[target_id]"]=u),m.wp.comments_create(h,{type:a.cM.UrlEncoded,extraQuery:f}).then((0,l.SC)(n))},invalidatesTags:[{type:d,id:"LIST"}]}),deleteComment:e.mutation({queryFn:(e,t)=>(0,i.KU)(t).wp.comments_delete({id:e},{}).then((0,l.PI)(n)),invalidatesTags:[{type:d,id:"LIST"}]}),editComment:e.mutation({queryFn({commentId:e,content:t,status:r,targetId:o},s){const d=(0,i.KU)(s),c={},u={};return t&&(c.content=t),r&&(u["acf[status]"]=r),o&&(u["acf[target_id]"]=o),d.wp.comments_update({id:e},c,{type:a.cM.UrlEncoded,extraQuery:u}).then((0,l.SC)(n))},invalidatesTags:[{type:d,id:"LIST"}]}),deleteTarget:e.mutation({queryFn:(e,t)=>(0,i.KU)(t).wp.comments_update({id:e},{},{type:a.cM.UrlEncoded,extraQuery:{"acf[target_id]":""}}).then((0,l.SC)(n)),invalidatesTags:[{type:d,id:"LIST"}]})})}),{useGetCommentsQuery:u,useAddCommentMutation:p,useDeleteCommentMutation:m,useEditCommentMutation:h,useDeleteTargetMutation:f}=c},3711:(e,t,r)=>{"use strict";r.d(t,{C:()=>n,F:()=>s});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"confirmationMailApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/",responseHandler:e=>e.text()}),endpoints:e=>({getConfirmationMail:e.query({query:({userId:e,email:t})=>({url:`?proxy_url=${encodeURIComponent(`https://webhook.latenode.com/5868/prod/f0da9c0f-ed12-4d23-8a86-b86f7bf1a276?user_id=${e}&user_email=${t}`)}`})})})}),{useLazyGetConfirmationMailQuery:n}=s},18949:(e,t,r)=>{"use strict";r.d(t,{p:()=>o.p});var o=r(79496)},14698:(e,t,r)=>{"use strict";r.d(t,{e:()=>o.e});var o=r(77514)},1327:(e,t,r)=>{"use strict";r.d(t,{f:()=>d});var o=r(94104),a=r(53366),s=r(45672),n=r(45092),i=r(72227);const l="EmailRaw",d=(0,o.xP)({reducerPath:"emailRawApi",tagTypes:[l],baseQuery:(0,a.cw)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getEmailRaw:e.query({queryFn:function({emailId:e,secret_hash:t},r){return(0,n.mg)(r).wp.email_detail({id:e},{extraQuery:{secret_hash:t}}).then((0,i.SC)(s.V))},providesTags:(e,t,r)=>[{type:l,id:r}]})})}),{useGetEmailRawQuery:c}=d},89591:(e,t,r)=>{"use strict";r.d(t,{GY:()=>h,Kh:()=>E,Gr:()=>A,LX:()=>C,dN:()=>T,YV:()=>v,sl:()=>_,Xw:()=>f,PX:()=>y,YE:()=>b,_3:()=>g});var o=r(94104),a=r(74778),s=r(45672),n=r(47085);function i({id:e,title:t,meta:r,acf:{html:o,common_styles:a},parent:s,excerpt:i,author:l,...d}){const c="object"===typeof(u=r)&&null!==u?u:void 0;var u;return{...d,...void 0!==c?{meta:c}:{},author:(0,n.WY)(l),id:(0,n.WY)(e),parent:(0,n.WY)(s),title:(0,n.vf)(t)||"",html:o,common_styles:a,excerpt:(0,n.pT)(i)?i.rendered:i}}var l=r(72227),d=r(67630),c=r(26967),u=r(83193),p=r(19684),m=r(93506);const h=(0,o.xP)({reducerPath:"emailsApi",tagTypes:["Emails","Email","EmailAutosaves","TemplateEmail"],baseQuery:(0,c.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getEmails:e.query({queryFn(e,t){var r,o;const a=(0,c.KU)(t),n={order:"desc",orderby:"modified"},i={};if(e.notEmbed||(i._embed=""),e.projectId&&(i._embed="author",i._fields="id,title,meta,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID,author,acf.is_template,_embedded",n["filter[meta_key]"]="project",n["filter[meta_value]"]=e.projectId),e.fields&&(i._fields=e.fields),e.page&&(n.page=e.page),e.order&&(n.order=e.order),e.orderby&&(n.orderby=e.orderby),e.folderTag&&e.folderTag!==m.y2?(n["filter[tax_query][relation]"]="AND",n["filter[tax_query][0][taxonomy]"]="folder",n["filter[tax_query][0][field]"]="id",n["filter[tax_query][0][terms]"]=e.folderTag,n["filter[tax_query][0][include_children]"]="0"):e.folderTag===m.y2&&("object"!==typeof e.folderTag||null!==e.folderTag)||null!==(r=e.tags)&&void 0!==r&&r.length||!e.status||"trash"===e.status||(n["filter[tax_query][0][taxonomy]"]="folder",n["filter[tax_query][0][operator]"]="NOT EXISTS"),(null===(o=e.tags)||void 0===o?void 0:o.length)>0&&"trash"!==e.status){n["filter[tax_query][relation]"]="AND";for(let t=0,r=e.tags.length;t<r;t++){const r=e.tags[t];n[`filter[tax_query][${t+1}][taxonomy]`]="emailtags",n[`filter[tax_query][${t+1}][field]`]="id",n[`filter[tax_query][${t+1}][terms]`]=r}}return e.name&&(n.search=e.name),e.pageSize&&(n.per_page=e.pageSize),"trash"===e.status&&(i.status="trash"),a.wp.email_list(n,{extraQuery:i}).then(e=>(0,l.Ih)(s.V)(e))},providesTags:(e,t,r,{response:o})=>{var a,s;const n=(null===o||void 0===o?void 0:o.headers.get("X-WP-Total"))||0;return e?[...e.map(({id:e})=>{var t;return{type:"Emails",id:`${r.folderTag||(null===(t=r.tags)||void 0===t?void 0:t[0])||r.projectId}_${r.page}_${r.status}_${n}`}}),{type:"Emails",id:`${r.folderTag||(null===(a=r.tags)||void 0===a?void 0:a[0])||r.projectId}_${r.page}_${r.status}_${n}`}]:[{type:"Emails",id:`${r.folderTag||(null===(s=r.tags)||void 0===s?void 0:s[0])||r.projectId}_${r.page}_${r.status}_${n}`}]},keepUnusedDataFor:0}),getTemplateEmails:e.query({queryFn(e,t){var r,o,a;const n=(0,c.KU)(t),i={"filter[meta_query][1][key]":"is_template","filter[meta_query][1][value]":"1","filter[meta_query][0][compare]":"LIKE",orderby:"modified",order:"desc"},d={_embed:"author,wp:term",_fields:"_embedded,id,title,meta,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID,acf.is_template"};if(e.emailId&&(i["filter[meta_query][0][key]"]="parent_email",i["filter[meta_query][0][value]"]=e.emailId),e.fields&&(d._fields=e.fields),(null===(r=e.group)||void 0===r?void 0:r.length)>0||(null===(o=e.projectGroup)||void 0===o?void 0:o.length)>0){const t=[...e.group||[],...e.projectGroup||[]].reduce((e,{key:t,parentId:r})=>(e[r]||(e[r]=[]),e[r].push(String(t)),e),{}),r=Object.values(t).map(e=>e.sort());i["filter[tax_query][relation]"]="AND",r.forEach((e,t)=>{i[`filter[tax_query][${t}][relation]`]="OR",e.forEach((e,r)=>{i[`filter[tax_query][${t}][${r}][taxonomy]`]="group",i[`filter[tax_query][${t}][${r}][field]`]="id",i[`filter[tax_query][${t}][${r}][terms]`]=e})})}if((null===(a=e.tags)||void 0===a?void 0:a.length)>0){i["filter[tax_query][relation]"]="AND";for(let t=0,r=e.tags.length;t<r;t++){const r=e.tags[t];i[`filter[tax_query][${t}][taxonomy]`]="emailtags",i[`filter[tax_query][${t}][field]`]="id",i[`filter[tax_query][${t}][terms]`]=r}}if(e.type&&(i["filter[meta_query][2][key]"]="type",i["filter[meta_query][2][value]"]=e.type),e.name&&(i.search=e.name),e.pageSize&&(i.per_page=e.pageSize),e.page){var u,p;i.page=e.page;const r=t.getState(),{groupsTemplateProjectTotal:o,groupsTemplateProjectTotalPages:a}=null===r||void 0===r?void 0:r.projectSlice;if((null===(u=e.projectGroup)||void 0===u||!u.length)&&(null===(p=e.group)||void 0===p||!p.length)&&a<e.page&&e.groupType===m.ti.ALL&&o&&a&&!e.projectId){const t=m.mU-o%m.mU+(e.page-(a+1))*m.mU;t&&(i.page=1,i.offset=t)}}return e.projectId&&(i["filter[meta_key]"]="project",i["filter[meta_value]"]=e.projectId),n.wp.email_list(i,{extraQuery:d}).then((0,l.Ih)(s.V))},keepUnusedDataFor:0}),getEmail:e.query({queryFn:(e,t)=>(0,c.KU)(t).wp.email_detail({id:(0,n.mQ)(e)},{extraQuery:{_embed:"wp:term",_fields:"_embedded,id,author,title,meta,emailtags,folder,group,modified,date,type,parent,date_gmt\n acf.description,\n acf.html,\n acf.common_styles,\n acf.is_template,\n acf.lock,\n acf.parent_email,\n acf.project,\n acf.secret_hash,\n acf.subject,\n acf.utm_parameters\n "}}).then((0,l.SC)(s.V)),providesTags:(e,t,r)=>[{type:"Email",id:r}],keepUnusedDataFor:0}),getTemplateEmail:e.query({queryFn:(e,t)=>(0,c.KU)(t).wp.email_detail({id:(0,n.mQ)(e)},{extraQuery:{_embed:"wp:term",_fields:"_embedded,id,author,title,meta,emailtags,folder,group,modified,date,type,parent,date_gmt\n acf.description,\n acf.html,\n acf.common_styles,\n acf.is_template,\n acf.lock,\n acf.parent_email,\n acf.project,\n acf.secret_hash,\n acf.subject,\n acf.utm_parameters\n "}}).then((0,l.SC)(s.V)),providesTags:(e,t,r)=>[{type:"TemplateEmail",id:r}],keepUnusedDataFor:0}),getEmailHistory:e.query({queryFn:({emailId:e,page:t=1},r)=>(0,c.KU)(r).wp.email_revisions_list({parent:e,per_page:20,page:t},{extraQuery:{_fields:"author,slug,date,modified,title,meta,acf.html,acf.common_styles,id,parent,date_gmt"}}).then(r=>(0,l.SA)(r,(r,o)=>({data:r.filter(e=>e.acf.html).map(e=>({...e,acf:{...e.acf,html:e.acf.html}})).map(i),totalPages:+o.response.headers.get("X-WP-TotalPages"),args:{emailId:e,page:t}}))),providesTags:e=>e?[...e.data.map(({id:e})=>({type:"EmailAutosaves",id:e})),{type:"EmailAutosaves",id:"LIST"}]:[{type:"EmailAutosaves",id:"LIST"}],keepUnusedDataFor:0,async onQueryStarted({emailId:e},{queryFulfilled:t,dispatch:r,getState:o}){try{const{data:a}=await t;(0,p.zg)(o()).revisionService&&u.lH.onHistoryFetched(e,a.data,r,()=>r(h.endpoints.getEmailHistory.initiate({emailId:e},{forceRefetch:!0})))}catch{}}}),addEmail:e.mutation({queryFn:(0,d.p)(e=>({source:t,...r})=>(0,c.KU)(e).wp.email_create({status:"publish",...(0,s.v)(r)},{type:a.cM.Json}).then((0,l.SC)(s.V))),invalidatesTags:[{type:"Emails",id:"LIST"}]}),editEmail:e.mutation({queryFn:(0,d.p)(e=>({emailId:t,source:r,...o})=>{const i=(0,c.KU)(e),d=(0,n.TB)((0,s.v)(o));return i.wp.email_partial_update({id:t},d,{type:a.cM.Json,extraQuery:{_embed:"wp:term",_fields:"_embedded,id,author,title,meta,emailtags,folder,group,modified,date,type,acf.description,acf.html,acf.common_styles,acf.is_template,acf.lock,acf.parent_email,acf.project,acf.secret_hash,acf.subject,acf.utm_parameters"}}).then((0,l.SC)(s.V))})}),deleteEmail:e.mutation({queryFn(e,t){const r=(0,c.KU)(t);let o,a;return"object"===typeof e?(o=e.id,a=e.force):(o=e,a=!1),r.wp.email_delete({id:o},{force:a}).then((0,l.PI)(s.V))},invalidatesTags:(e,t,r)=>[{type:"Emails",id:r}]}),addTag:e.mutation({queryFn:(e,t)=>(0,c.KU)(t).wp.emailtags_create({...e},{type:a.cM.Json})}),getDeletableTag:e.query({queryFn:([e,t],r)=>(0,c.KU)(r).wp.email_list({status:["private"],"filter[meta_key]":"project","filter[meta_value]":e,emailtags:[t]},{extraQuery:{"_fields[]":"emailtags"}}).then((0,l.Ih)(s.V))}),autoSaveEmail:e.mutation({queryFn({emailId:e,body:t},r){const o=(0,c.KU)(r),s=function({parent:e,title:t,html:r,project:o,subject:a,preheader:s,common_styles:i,author:l,parent_email:d,meta:c,...u}){return{...u,author:(0,n.mQ)(l),title:t,parent:(0,n.mQ)(e),"acf[html]":r,"acf[project]":(0,n.pT)(o)?o.id||o.ID:o,"acf[parent_email]":d,"acf[common_styles]":i}}(t);return o.wp.email_autosaves_create({id:e},s,{type:a.cM.FormData}).then((0,l.SC)(i))},async onQueryStarted({emailId:e,body:t},{queryFulfilled:r,getState:o}){const a=(0,p.zg)(o()).revisionService;var s,n;a&&u.lH.onAutoSaveStarted(e,{sentAt:Date.now(),html:null!==(s=t.html)&&void 0!==s?s:"",common_styles:null!==(n=t.common_styles)&&void 0!==n?n:"",subject:t.subject,preheader:t.preheader});try{await r,a&&u.lH.onAutoSaveCompleted(e)}catch{a&&u.lH.onAutoSaveCompleted(e)}}})})}),{useGetEmailsQuery:f,useGetTemplateEmailsQuery:y,useGetEmailQuery:_,useLazyGetEmailQuery:g,useGetEmailHistoryQuery:v,useLazyGetEmailHistoryQuery:b,useAddEmailMutation:E,useEditEmailMutation:T,useDeleteEmailMutation:w,useGetDeletableTagQuery:S,useAddTagMutation:A,useAutoSaveEmailMutation:C}=h},7836:(e,t,r)=>{"use strict";r.d(t,{u:()=>o.u});var o=r(69884)},28374:(e,t,r)=>{"use strict";r.d(t,{U8:()=>a,cA:()=>n,ri:()=>s});var o=r(53366);const a=(0,r(94104).xP)({reducerPath:"exportPngApi",baseQuery:async(e,t,r)=>{try{const{notification:a,...s}=e,n=await(0,o.cw)({baseUrl:"https://racs.emcdn.ru/v3"})(s,t,r);if(n.error)throw new Error;return n}catch(a){return(null===e||void 0===e?void 0:e.notification).error(a),{error:a}}},endpoints:e=>({makeTemporaryMailForPng:e.mutation({query:({file:e,title:t,notification:r})=>{const o=new Blob([e],{type:"text/html"}),a=new FormData;return a.append("file",o,"base.html"),a.append("contentType","text/html"),{url:"?resource=exportPngApi",method:"POST",body:a,notification:r}}}),deleteTemporaryMail:e.mutation({query:({id:e,notification:t})=>({url:`/${e}?resource=exportPngApi`,method:"DELETE",notification:t})})})}),{useMakeTemporaryMailForPngMutation:s,useDeleteTemporaryMailMutation:n}=a},6680:(e,t,r)=>{"use strict";r.d(t,{C:()=>s,N:()=>n});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"webHookApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({postDataByWebHook:e.mutation({query:({url:e,body:t})=>({url:`?proxy_url=${encodeURIComponent(e)}`,method:"POST",body:t})})})}),{usePostDataByWebHookMutation:n}=s},61518:(e,t,r)=>{"use strict";r.d(t,{O:()=>n,y:()=>s});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"getCheckoutUrlApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({GetCheckoutUrl:e.mutation({query:e=>({url:`?proxy_url=${encodeURIComponent({}.REACT_APP_PIPEDREAM_GET_CHECKOUT_URL)}`,method:"POST",body:e})})})}),{useGetCheckoutUrlMutation:n}=s},8460:(e,t,r)=>{"use strict";r.d(t,{u:()=>o.u});var o=r(96968)},78790:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});var o=r(94104),a=r(26967);const s=(0,o.xP)({reducerPath:"googleAuthApi",baseQuery:(0,a.hI)({baseUrl:"https://app.emailmaker.ru/api//wp-json/auth/v1/google/callback"}),endpoints:e=>({validateGoogleToken:e.mutation({query:e=>({url:"",method:"POST",body:e})})})}),{useValidateGoogleTokenMutation:n}=s},5823:(e,t,r)=>{"use strict";r.d(t,{N:()=>a,m:()=>s});var o=r(53366);const a=(0,r(94104).xP)({reducerPath:"htmlToPdfPlusApi",baseQuery:async(e,t,r)=>{try{const{notification:a,...s}=e,n=await(0,o.cw)({baseUrl:"https://html2pdf.emcdn.ru/convert/html-to-pdf"})(s,t,r);if(n.error)throw new Error;return n}catch(a){return(null===e||void 0===e?void 0:e.notification).error(a),{error:a}}},endpoints:e=>({generateHtmlToPdf:e.mutation({query:({htmlContent:e,notification:t})=>({url:"",method:"POST",body:e,notification:t,responseHandler:e=>e.blob()})})})}),{useGenerateHtmlToPdfMutation:s}=a},85312:(e,t,r)=>{"use strict";r.d(t,{m:()=>o.m});var o=r(44056)},89660:(e,t,r)=>{"use strict";r.d(t,{CL:()=>y,gg:()=>j,FQ:()=>_,eo:()=>q,h4:()=>b,Jg:()=>C,Mv:()=>T});var o=r(94104),a=r(27849),s=r(26967),n=r(90197),i=r(70529),l=r(50548),d=r(93506),c=r(20263),u=r(53687),p=r(39930),m=r(45092);function h(e){return{error:e instanceof Error?e:new Error(String(e))}}async function f(e){if(!e.ok)throw new Error(`Request failed with status ${e.status}`);const t=await e.text();try{return t?JSON.parse(t):null}catch(r){throw r}}const y=(0,o.xP)({reducerPath:"imageApi",baseQuery:void 0,endpoints:e=>({getImageInfo:e.query({queryFn:async function(e,t){try{var r,o;const a=(null===(r=t.getState().configSlice)||void 0===r||null===(o=r.config)||void 0===o?void 0:o.imageInfoToolUrl)||"https://scr.emcdn.ru/imageinfo",s=await fetch(`${a}?url=${encodeURIComponent(e)}`);return{data:await f(s)}}catch(a){return h(a)}}}),getSearchImage:e.query({queryFn:async function({query:e,page:t},r){const o=e.keywords.replace(/[^\w\d\s\u0430-\u044f\u0451\u0410-\u042f\u0401]|_/g,"").replace(/[\s_-]+/g," ");try{var a;const n=null===(a=r.getState().configSlice)||void 0===a?void 0:a.config,l=void 0!==c.di.getInstance(r,i.Ef),d=new URL("https://api.unsplash.com/search/photos");d.searchParams.set("client_id","S5iNcLqYgRBIOLQdluHdTsCJnjCvahzhG7JfYQOrV7o"),d.searchParams.set("lang","ru"),d.searchParams.set("per_page","18"),d.searchParams.set("query",o),d.searchParams.set("page",String(t)),""!==e.color&&d.searchParams.set("color",e.color),""!==e.orientation&&d.searchParams.set("orientation",e.orientation);const p=await(0,u.Be)(d.toString(),{config:n,standalone:l,resourceType:"stockImages",intent:"metadata"});return{data:(s=await f(p),s&&Array.isArray(s.results)?s:null!==s&&void 0!==s&&s.data&&Array.isArray(s.data.results)?s.data:null!==s&&void 0!==s&&s.response&&Array.isArray(s.response.results)?s.response:{...s||{},results:[]})}}catch(n){return h(n)}var s}}),getUnsplashImage:e.query({queryFn:async function(e,t){try{var r;const o=null===(r=t.getState().configSlice)||void 0===r?void 0:r.config,a=void 0!==c.di.getInstance(t,i.Ef),s=new URL(e);s.searchParams.set("client_id","S5iNcLqYgRBIOLQdluHdTsCJnjCvahzhG7JfYQOrV7o");const n=await(0,u.Be)(s.toString(),{config:o,standalone:a,resourceType:"stockImages",intent:"metadata"});return{data:await f(n)}}catch(o){return h(o)}}}),sendAiImageRequest:e.query({queryFn:async function({body:e},t){try{const r=(0,s.KU)(t);return await r.aiGenerator.ai_create(e)}catch(r){throw new Error(r)}}}),getAiImage:e.query({queryFn:async function(e,t){try{const r=(0,s.KU)(t);return await r.aiGenerator.ai_status_list(e)}catch(r){return h(r)}}}),getAiImageSSE:e.query({queryFn:e=>({data:[]}),async onCacheEntryAdded({task_id:e,entity_id:t,setError:r},o){var u;const{updateCachedData:h,cacheEntryRemoved:f}=o,y=(0,s.KU)(o).baseUrl||(0,m.qT)("https://app.emailmaker.ru/api/"),_=null===(u=o.getState().configSlice)||void 0===u?void 0:u.config,g=void 0!==c.di.getInstance(o,i.Ef),v=d.EW.isPlugin?await c.di.getInstance(o,l.Y):a.A.get(d.A9.em_token),b=v?{Authorization:`Bearer ${v}`}:{},E=`${y}/ai-generator/v1/ai-status?entity_id=${t}&stream=1&task_id=${e}`,T=(0,p.Mi)(E,{config:_,method:"GET",requestType:"ai",standalone:g}),w=function({candidates:e,headers:t,createEventSource:r,onMessage:o,onError:a}){const s=e.filter(Boolean);let n=!1,i=null;const l=()=>{var e;null===(e=i)||void 0===e||e.close(),i=null},d=e=>{if(n)return;const c=s[e];if(!c)return void(null===a||void 0===a||a(new Error("Failed to connect to EventSource through proxy chain")));l();const u=r(c,{headers:t});i=u,u.onmessage=e=>{n||i!==u||o(e)},u.onerror=t=>{n||i!==u||(l(),e+1<s.length?d(e+1):null===a||void 0===a||a(t))}};return d(0),{close(){n=!0,l()}}}({candidates:T.length>0?T:[E],headers:b,createEventSource:(e,t)=>new n.EventSourcePolyfill(e,t),onMessage:e=>{const t=JSON.parse(e.data);h(e=>{e.push(t)}),100===t.progress&&w.close()},onError:()=>{w.close()}});await f,w.close()}}),getSearchGif:e.query({queryFn:async function({query:e,page:t},r){const o=e.keywords.replace(/[^\w\d\s\u0430-\u044f\u0451\u0410-\u042f\u0401]|_/g,"").replace(/[\s_-]+/g," ");try{var a;const e=null===(a=r.getState().configSlice)||void 0===a?void 0:a.config,s=void 0!==c.di.getInstance(r,i.Ef),n=await(0,u.Be)(`https://api.giphy.com/v1/gifs/search?api_key=Nh77eBlPeMn1ed9MBAvL542NUGeNO26F&q=${encodeURIComponent(o)}&limit=25&offset=${t}&lang=en`,{config:e,standalone:s,resourceType:"generic",intent:"metadata"});return{data:await f(n)}}catch(s){return h(s)}}})})}),{useLazyGetImageInfoQuery:_,useGetImageInfoQuery:g,useGetSearchImageQuery:v,useLazyGetSearchImageQuery:b,useSendAiImageRequestQuery:E,useLazySendAiImageRequestQuery:T,useGetAiImageQuery:w,useLazyGetAiImageQuery:S,useGetUnsplashImageQuery:A,useLazyGetUnsplashImageQuery:C,useGetSearchGifQuery:P,useLazyGetSearchGifQuery:q,useGetAiImageSSEQuery:O,useLazyGetAiImageSSEQuery:j}=y},28112:(e,t,r)=>{"use strict";r.d(t,{W:()=>o.W});var o=r(16360)},57701:(e,t,r)=>{"use strict";r.d(t,{B3:()=>i,J:()=>l,Oq:()=>u,Xi:()=>p});var o=r(94104),a=r(26967);const s="https://app.emailmaker.ru/api/".replaceAll(/[\\/]$/g,""),n="wp-json/limits/v1",i=(0,o.xP)({reducerPath:"limitsApi",baseQuery:(0,a.hI)({baseUrl:s}),tagTypes:["LimitsStats","LimitsWarnings","SubscriptionMe"],endpoints:e=>({getLimitsStats:e.query({query:()=>({url:`${n}/stats`,method:"GET"}),providesTags:["LimitsStats"]}),getLimitsStatsByType:e.query({query:e=>({url:`${n}/stats/${e}`,method:"GET"}),providesTags:(e,t,r)=>[{type:"LimitsStats",id:r}]}),getLimitsWarnings:e.query({query:()=>({url:`${n}/warnings`,method:"GET"}),providesTags:["LimitsWarnings"]}),getSubscriptionMeV2:e.query({query:()=>({url:"wp-json/subscription/v2/me",method:"GET"}),providesTags:["SubscriptionMe"]})})}),{useGetLimitsStatsQuery:l,useLazyGetLimitsStatsQuery:d,useGetLimitsStatsByTypeQuery:c,useLazyGetLimitsStatsByTypeQuery:u,useGetLimitsWarningsQuery:p,useLazyGetLimitsWarningsQuery:m,useGetSubscriptionMeV2Query:h,useLazyGetSubscriptionMeV2Query:f}=i},27092:(e,t,r)=>{"use strict";r.d(t,{Ad:()=>i,HO:()=>u,Yj:()=>c});var o=r(94104),a=r(53366),s=r(26967);const n="LOCALES",i=(0,o.xP)({reducerPath:"localesApi",tagTypes:[n],baseQuery:(0,a.cw)({baseUrl:"https://app.emailmaker.ru/api/wp-json/translations/v1"}),endpoints:e=>({getLocale:e.query({async queryFn({id:e},t){const r=(0,s.KU)(t);try{return await r.translations.get_translations3({id:e,file:"react_app"})}catch(o){return r.translations.get_translations3({id:"en_US",file:"react_app"})}},providesTags:(e,t,r)=>[{type:n,id:r}]}),getLocales:e.query({queryFn:function(e,t){return(0,s.KU)(t).translations.get_translations2({file:"react_app"})},providesTags:(e,t,r)=>[{type:n,id:"react_app"}]})})}),{useGetLocalesQuery:l,useGetLocaleQuery:d,useLazyGetLocaleQuery:c,useLazyGetLocalesQuery:u}=i},83035:(e,t,r)=>{"use strict";r.d(t,{P:()=>o.P});var o=r(59283)},85217:(e,t,r)=>{"use strict";r.d(t,{T:()=>o.T});var o=r(42161)},45672:(e,t,r)=>{"use strict";r.d(t,{V:()=>s,v:()=>n});var o=r(28589),a=r(47085);function s({id:e,title:t,meta:r,type:s,guid:n,acf:{lock:i,subject:l,description:d,html:c,project:u,tags:p,utm_parameters:m,parent_email:h,common_styles:f,is_template:y},author:_,...g}){const v="object"===typeof(b=r)&&null!==b?b:void 0;var b;return{...g,...void 0!==v?{meta:v}:{},id:(0,a.WY)(e),author:(0,a.WY)(_),title:(0,a.vf)(t)||"",lock:i,renderGuid:(0,o.l)(),description:d,html:c,project:(0,a.pT)(u)?u.ID:u,project_author:(0,a.pT)(u)?u.post_author:void 0,project_title:(0,a.pT)(u)?u.post_title:void 0,tags:p,utm_parameters:m,parent_email:(0,a.WY)(h instanceof Array&&h[0]?h[0].ID:h),common_styles:f,is_template:y}}function n({title:e,lock:t,subject:r,description:o,html:s,project:n,tags:i,renderGuid:l,utm_parameters:d,parent_email:c,common_styles:u,is_template:p,author:m,meta:h,...f}){return{...f,author:(0,a.mQ)(m),title:e,acf:{lock:t,description:o,html:s,project:n,tags:i,utm_parameters:d,parent_email:(0,a.mQ)(c),common_styles:u,is_template:p}}}},47085:(e,t,r)=>{"use strict";function o(e,t=!1){const r={};for(const a of Object.keys(e)){let s=e[a];void 0===s||"number"===typeof s&&Number.isNaN(s)||(t&&"object"===typeof s&&null!==s&&(s=o(s)),r[a]=s)}return r}function a(e){return"object"===typeof e&&e}function s(e){const t=Number(e);return isNaN(t)?e:t}function n(e){return"number"===typeof e?String(e):e}function i(e){return"object"===typeof e?e.rendered:e}function l(e,t){var r,o;if(!e)return!1;let a;if(null==t)return!0;a="string"===typeof t?t:"number"===typeof t?String(t):i(t);const s=null!==(r=null===(o=a)||void 0===o?void 0:o.trim())&&void 0!==r?r:"";return!s||function(e){if(!e||"string"!==typeof e)return 0;const t=e.trim();let r;if(/^\d{4}-\d{2}-\d{2}/.test(t))r=new Date(t);else{const[e,o,a]=t.split(/[.\-/]/);r=e&&o&&a?new Date(Number(a),Number(o)-1,Number(e)):new Date(t)}if(Number.isNaN(r.getTime()))return 0;const o=new Date;o.setHours(0,0,0,0),r.setHours(0,0,0,0);const a=Math.ceil((r.getTime()-o.getTime())/864e5);return Math.max(0,a)}(s)>0}r.d(t,{TB:()=>o,WY:()=>n,Y1:()=>l,mQ:()=>s,pT:()=>a,vf:()=>i})},25413:(e,t,r)=>{"use strict";r.d(t,{vx:()=>c,I9:()=>u,bw:()=>p});var o=r(94104),a=r(74778),s=r(26967),n=r(47085);function i({title:e,content:t,acf:{seen:r,type:o,event:a,data:s},...i}){return{...i,seen:r,type:o,event:a,data:s,title:(0,n.vf)(e),content:t}}var l=r(72227);const d="Notifications",c=(0,o.xP)({reducerPath:"notificationsApi",tagTypes:[d],baseQuery:(0,s.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getNotifications:e.query({queryFn:(e,t)=>(0,s.KU)(t).wp.notification_list({author:[Number(e)]}).then((0,l.Ih)(i)),providesTags:e=>e?[...e.map(({id:e})=>({type:d,id:e})),{type:d,id:"LIST"}]:[{type:d,id:"LIST"}]}),notificationShown:e.mutation({queryFn:({id:e,datetime:t},r)=>(0,s.KU)(r).wp.notification_create2({id:e},{},{type:a.cM.Json,extraQuery:{"acf[seen]":t}}).then((0,l.SC)(i)),invalidatesTags:[{type:d,id:"LIST"}]})})}),{useGetNotificationsQuery:u,useNotificationShownMutation:p}=c},70339:(e,t,r)=>{"use strict";r.d(t,{Ju:()=>d,Sr:()=>c,ku:()=>l,tO:()=>i,wv:()=>n});var o=r(94104),a=r(26967);const s="Optimise",n="usage_limit_exceeded",i=(0,o.xP)({reducerPath:"optimiseApi",tagTypes:[s],baseQuery:async(e,t,r)=>{const o=(0,a.KU)(t).baseUrl.replaceAll(/[\\/]$/g,""),s=(0,a.hI)({baseUrl:`${o}/optimization/v1/validate`}),n=await s(e,t,r);if(n.error){let e=n.error;if("function"===typeof e.json)try{e=await e.json()}catch{e=await e}return{error:e}}return n},endpoints:e=>({editLinks:e.mutation({query:e=>({headers:{"Content-Type":"application/json",Accept:"application/json"},method:"POST",type:"application/json",url:"/links",body:e}),invalidatesTags:[s]}),editImages:e.mutation({query:e=>({headers:{"Content-Type":"application/json",Accept:"application/json"},method:"POST",type:"application/json",url:"/images",body:e})}),editSpam:e.mutation({query:e=>({headers:{"Content-Type":"application/json",Accept:"application/json"},method:"POST",type:"application/json",url:"/spamassasin",body:e})})})}),{useEditLinksMutation:l,useEditImagesMutation:d,useEditSpamMutation:c}=i},487:(e,t,r)=>{"use strict";r.d(t,{Nq:()=>u,OD:()=>f,fo:()=>m});var o=r(94104),a=r(26967),s=r(74778),n=r(47085);function i({title:e,acf:t,...r}){const{members:o,projects_test_emails:a,ftp_settings:s,emails:i,blocks:l,webhook:d,inbox_email:c,integrations:u}=t;return{...r,title:(0,n.vf)(e)||"",members:(0,n.pT)(o)?{admins:o.admins&&o.admins.map(e=>({...e,ID:(0,n.WY)(e.ID)})),users:o.users&&o.users.map(e=>({...e,ID:(0,n.WY)(e.ID)})),invited_users:o.invited_users&&o.invited_users.map(e=>({...e,ID:(0,n.WY)(e.ID)})),owner:(0,n.pT)(o.owner)?{...o.owner,ID:(0,n.WY)(o.owner.ID)}:o.owner}:void 0,projects_test_emails:a,inbox_email:c,ftp_settings:s,webhook:d,integrations:u,emails:i,blocks:l}}function l({title:e,members:t,projects_test_emails:r,inbox_email:o,ftp_settings:a,webhook:s,integrations:i,emails:l,blocks:d,...c}){const u=e=>({ID:(0,n.mQ)(e.ID||e)}),p=e=>{return(t=e,Array.isArray(t)?t:t?[t]:[]).map(u);var t};return{...c,title:e,acf:{members:t&&{admins:p(t.admins),users:p(t.users),invited_users:p(t.invited_users),owner:t.owner&&u(t.owner)},webhook:s,projects_test_emails:r,inbox_email:o,ftp_settings:a,integrations:i,emails:l,blocks:d}}}var d=r(72227);const c="Projects",u=(0,o.xP)({reducerPath:"projectsApi",tagTypes:[c,"project"],baseQuery:(0,a.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getProjects:e.query({queryFn(e={page:1},t){const r=(0,a.KU)(t),o={status:["private"]};return e.page&&(o.page=e.page),e.order&&(o.order=e.order),e.orderby&&(o.orderby=e.orderby),r.wp.project_list(o).then((0,d.Ih)(i))},providesTags:e=>e?[...e.map(({id:e})=>({type:c,id:e})),{type:c,id:"LIST"}]:[{type:c,id:"LIST"}]}),getProject:e.query({queryFn:(e,t)=>(0,a.KU)(t).wp.project_detail({id:e},{extraQuery:{_embed:"wp:term"}}).then((0,d.SC)(i)),providesTags:(e,t,r)=>[{type:"project",id:r}]}),addProject:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp.project_create({status:"private",...l(e)},{type:s.cM.Json}).then((0,d.SC)(i)),invalidatesTags:[{type:c,id:"LIST"}]}),editProject:e.mutation({queryFn({projectId:e,...t},r){const o=(0,a.KU)(r),c=(0,n.TB)(l(t),!0);return o.wp.project_partial_update({id:e},c,{type:s.cM.Json}).then((0,d.SC)(i))},invalidatesTags:(e,t,{projectId:r})=>[{type:c,id:r},{type:"project",id:r}]}),deleteProject:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp.project_delete({id:e},{}).then((0,d.PI)(i)),invalidatesTags:(e,t,r)=>[{type:c,id:r}]})})}),{useGetProjectsQuery:p,useGetProjectQuery:m,useAddProjectMutation:h,useEditProjectMutation:f}=u},89600:(e,t,r)=>{"use strict";r.d(t,{So:()=>s});var o=r(94104),a=r(26967);const s=(0,o.xP)({reducerPath:"promoApi",baseQuery:(0,a.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/promo/v1/"}),endpoints:e=>({checkPromo:e.mutation({queryFn:({code:e,type:t},r)=>(0,a.KU)(r).promo.set_code_create({code:e,type:t})}),getPromoInfo:e.query({queryFn:({code:e},t)=>(0,a.KU)(t).promo.get_code_info_list({code:e})})})}),{useCheckPromoMutation:n,useGetPromoInfoQuery:i}=s},79613:(e,t,r)=>{"use strict";r.d(t,{Z8:()=>s,mI:()=>i});var o=r(94104),a=r(26967);const s=(0,o.xP)({reducerPath:"proxyApi",tagTypes:["Proxy"],baseQuery:(0,a.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/cors-proxy/v1/get"}),endpoints:e=>({getFile:e.query({queryFn({url:e,tryFetch:t=!0,type:r},o){const s=(0,a.KU)(o),n=t?fetch(e):Promise.reject(),i=e=>(e=>{switch(r){case"json":return e.json();case"text":return e.text();default:return e.blob()}})(e).then(e=>({data:e}));return n.then(e=>i(e)).catch(()=>s.corsProxy.get_list({format:"blob",extraQuery:{url:encodeURIComponent(e)}}))}})})}),{useGetFileQuery:n,useLazyGetFileQuery:i}=s},14154:(e,t,r)=>{"use strict";r.d(t,{yR:()=>i});var o=r(94104),a=r(53366),s=r(74778),n=r(45092);const i=(0,o.xP)({reducerPath:"recoverPasswordApi",baseQuery:(0,a.cw)({baseUrl:"https://app.emailmaker.ru/api/wp-json/bdpwr/v1/"}),endpoints:e=>({resetPassword:e.mutation({queryFn:(e,t)=>(0,n.mg)(t).bdpwr.reset_password_create({body:e,type:s.cM.Json})}),setPassword:e.mutation({queryFn:(e,t)=>(0,n.mg)(t).bdpwr.set_password_create({body:e,type:s.cM.Json})}),validateRecoverPasswordCode:e.mutation({queryFn:(e,t)=>(0,n.mg)(t).bdpwr.validate_code_create({body:e,type:s.cM.Json})})})}),{useResetPasswordMutation:l,useSetPasswordMutation:d,useValidateRecoverPasswordCodeMutation:c}=i},65098:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>n,KA:()=>s});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"recurrenceSubscriptionsOffApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({getCanselRecurrence:e.query({query:e=>({url:`?proxy_url=${encodeURIComponent(`https://webhook.latenode.com/5868/prod/07ae4159-132b-4a00-998b-bc47c20365ba?subscription_id=${e.sid}&user_id=${e.uid}`)}`})})})}),{useLazyGetCanselRecurrenceQuery:n,useGetCanselRecurrenceQuery:i}=s},68726:(e,t,r)=>{"use strict";r.d(t,{IJ:()=>n,Sd:()=>s});var o=r(94104),a=r(53366);const s=(0,o.xP)({reducerPath:"recurrenceSubscriptionsOnApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({getRecurrence:e.query({query:e=>({url:`?proxy_url=${encodeURIComponent(`https://webhook.latenode.com/5868/prod/e1dd37b1-c3d4-4441-b329-d6b3aa51bfe7?subscription_id=${e.sid}&user_id=${e.uid}`)}`})})})}),{useLazyGetRecurrenceQuery:n,useGetRecurrenceQuery:i}=s},64582:(e,t,r)=>{"use strict";r.d(t,{Mf:()=>n,Nd:()=>l});var o=r(94104),a=r(53366);const s=async e=>{const t=await e.text();let r=t;try{r=JSON.parse(t)}catch{r=t}return r},n=(0,o.xP)({reducerPath:"requestPlaneApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({getRequest:e.mutation({query:e=>((e,t,r)=>{if(!e)throw new Error(`Set ${r}`);return{url:`?proxy_url=${encodeURIComponent(e)}`,method:"POST",body:t,responseHandler:s}})("https://webhook.latenode.com/5868/prod/9e7a6445-2244-4dd5-bda4-5bca82997bf8",e,"REACT_APP_PIPEDREAM_REQUEST_PLANE_SRC")}),getInvoiceRequest:e.mutation({query:e=>((e,t,r)=>{if(!e)throw new Error(`Set ${r}`);return{url:`?proxy_url=${encodeURIComponent(e)}`,method:"POST",headers:{"Content-Type":"application/json"},body:t,responseHandler:s}})("https://webhook.latenode.com/5868/prod/6e2d04a8-6cd9-4ec3-b884-ee2fd67267a3",e,"REACT_APP_REQUEST_PLANE_WEBHOOK_URL")})})}),{useGetRequestMutation:i,useGetInvoiceRequestMutation:l}=n},37316:(e,t,r)=>{"use strict";r.d(t,{W:()=>o.W});var o=r(20833)},44004:(e,t,r)=>{"use strict";r.d(t,{Zf:()=>d,dS:()=>i,lg:()=>l,tb:()=>c,yH:()=>n});var o=r(94104),a=r(74778),s=r(26967);const n=(0,o.xP)({reducerPath:"saveFileApi",tagTypes:["Images"],baseQuery:(0,s.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/save-file/v1/"}),endpoints:e=>({uploadImage:e.mutation({queryFn:(e,t)=>(0,s.KU)(t).saveFile.upload_create(e,{type:a.cM.FormData})}),sendTestEmail:e.mutation({queryFn:(e,t)=>(0,s.KU)(t).saveFile.send_email_create(e,{type:a.cM.FormData})}),sendLivePreview:e.mutation({queryFn:(e,t)=>(0,s.KU)(t).saveFile.get_link_create(e,{type:a.cM.FormData})}),sendShortLink:e.mutation({queryFn:(e,t)=>(0,s.KU)(t).saveFile.shortener_create(e,{type:a.cM.FormData})})})}),{useUploadImageMutation:i,useSendTestEmailMutation:l,useSendLivePreviewMutation:d,useSendShortLinkMutation:c}=n},98750:(e,t,r)=>{"use strict";r.d(t,{G:()=>o.G});var o=r(48822)},87796:(e,t,r)=>{"use strict";r.d(t,{CE:()=>u,JI:()=>p,Jz:()=>i,Lh:()=>c,Oo:()=>l,kE:()=>n,y$:()=>d});var o=r(94104),a=r(26967);const s=()=>window.location.toString().includes("/blocks")?"block":"",n=(0,o.xP)({reducerPath:"taxonomiesApi",tagTypes:["Taxonomies","folder","block_folder","Group"],baseQuery:(0,a.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({addFolder:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp[s()+"folder_create"](e).then(e=>e)}),editFolder:e.mutation({queryFn:({id:e,data:t},r)=>(0,a.KU)(r).wp[s()+"folder_partial_update"]({id:e},t).then(e=>e)}),deleteFolder:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp[s()+"folder_delete"]({id:e},{force:!0}).then(e=>e)}),getFolders:e.query({queryFn:(e,t)=>(0,a.KU)(t).wp[s()+"folder_list"]({per_page:100,...e}).then(e=>e),providesTags:(e,t,r)=>[{type:"folder",id:r}]}),addGroup:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp[s()+"group_create"](e).then(e=>e)}),editGroup:e.mutation({queryFn:({id:e,data:t},r)=>(0,a.KU)(r).wp[s()+"group_partial_update"]({id:e},t).then(e=>e)}),getGroups:e.query({queryFn:(e,t)=>(0,a.KU)(t).wp[s()+"group_list"]({per_page:100,...e}).then(e=>e),providesTags:(e,t,r)=>[{type:"Group",id:r}]}),deleteGroup:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp[s()+"group_delete"]({id:e},{force:!0}).then(e=>e)}),addEmailsTag:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp.emailtags_create(e).then(e=>e)}),editEmailsTag:e.mutation({queryFn:({id:e,...t},r)=>(0,a.KU)(r).wp.emailtags_partial_update(e,t).then(e=>e)}),deleteEmailsTag:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp.emailtags_delete(e,{force:!0}).then(e=>e)}),getTags:e.query({queryFn:(e,t)=>(0,a.KU)(t).wp[(window.location.toString().includes("/blocks")?"block":"email")+"tags_list"]({per_page:100,...e}).then(e=>e)})})}),{useGetFoldersQuery:i,useGetGroupsQuery:l,useLazyGetGroupsQuery:d,useDeleteGroupMutation:c,useEditGroupMutation:u,useAddGroupMutation:p,useGetTagsQuery:m,useLazyGetFoldersQuery:h,useAddFolderMutation:f,useEditFolderMutation:y}=n},22162:(e,t,r)=>{"use strict";r.d(t,{OV:()=>n});var o=r(94104),a=r(74778),s=r(26967);const n=(0,o.xP)({reducerPath:"tokenApi",baseQuery:(0,s.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/jwt-auth/v1/"}),endpoints:e=>({tokenCreate:e.mutation({queryFn:(e,t)=>(0,s.KU)(t).jwtAuth.token_create({body:e,type:a.cM.Json})}),tokenValidate:e.mutation({queryFn:(e,t)=>(0,s.KU)(t).jwtAuth.token_validate_create({type:a.cM.Json})})})}),{useTokenCreateMutation:i,useTokenValidateMutation:l}=n},22908:(e,t,r)=>{"use strict";r.d(t,{K:()=>o.K});var o=r(33480)},61164:(e,t,r)=>{"use strict";r.d(t,{S:()=>s});var o=r(94104),a=r(26967);const s=(0,o.xP)({reducerPath:"yandexAuthApi",baseQuery:(0,a.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/auth/v1/yandex/callback"}),endpoints:e=>({validateYandexToken:e.mutation({query:e=>({url:"",method:"POST",body:e})})})}),{useValidateYandexTokenMutation:n}=s},92079:(e,t,r)=>{"use strict";r.d(t,{AG:()=>d,Ay:()=>m,Bn:()=>c,H3:()=>l,J3:()=>u,dA:()=>p});var o=r(65913),a=r(72227);const s="autosaveRecovery",n=(0,a.ur)({revisionToApply:null,isRecovering:!1}),i=(0,o.createSlice)({name:s,initialState:n,reducers:{setRevisionToApply:(e,{payload:t})=>{e.revisionToApply=t},clearRevisionToApply:e=>{e.revisionToApply=null},setIsRecovering:(e,{payload:t})=>{e.isRecovering=t}}}),{setRevisionToApply:l,clearRevisionToApply:d,setIsRecovering:c}=i.actions,u=e=>e[s].revisionToApply,p=e=>e[s].isRecovering,m=i},68069:(e,t,r)=>{"use strict";r.d(t,{A9:()=>u,Ay:()=>S,Dz:()=>c,Fv:()=>g,JV:()=>v,Up:()=>T,b9:()=>b,eX:()=>d,gm:()=>_,iy:()=>w,nJ:()=>f,om:()=>m,qX:()=>E,rc:()=>p});var o=r(65913),a=r(45988);const s=(0,r(72227).ur)({invalidateBlockId:null,isCodeMode:!1,codeModeDirection:"right",editorThemeColor:"light",isSettingsDisabled:!1,settings:{width:""},elementSettings:{},searchFilters:{},block:{id:void 0,isNew:!1,subject:"",description:"",html:"",project:void 0,project_title:"",project_author:void 0,tags:[],type:"Other",title:null,isAmp:!1},monacoDidMount:!1}),n="blockSlice",i=(0,o.createSlice)({name:n,initialState:s,reducers:{switchCodeMode:e=>{e.isCodeMode=!e.isCodeMode},setEditorThemeColor:(e,t)=>{e.editorThemeColor=t.payload},setBlockSettings:(e,t)=>{Object.assign(e,{...e,settings:t.payload,isSettingsDisabled:!1})},setBlockSettingsDisable:(e,t)=>{e.isSettingsDisabled=t.payload},setElementSettings:(e,t)=>{e.elementSettings=t.payload},setSearchFilters:(e,t)=>{e.searchFilters=t.payload},setBlockHtml:(e,t)=>{e.block.html=t.payload},resetBlockSlice:()=>s,setBlockIsAmp:(e,t)=>{e.block.isAmp=t.payload}},extraReducers:e=>{e.addMatcher(e=>"blocksApi/queries/queryResultPatched"===e.type,(e,t)=>{var r,o;const a=t.payload.queryCacheKey.match(/\(([0-9]+)\)/),s=null===(r=t.payload)||void 0===r?void 0:r.patches[0];if(null!==s&&void 0!==s&&null!==(o=s.path)&&void 0!==o&&o[0]&&(e.block[null===s||void 0===s?void 0:s.path[0]]=s.value),null!==a&&void 0!==a&&a[1]&&(e.invalidateBlockId=a[1]),t.payload.queryCacheKey.startsWith("getBlock")){var n,i;const r=null===(n=t.payload)||void 0===n?void 0:n.patches[0];null!==r&&void 0!==r&&null!==(i=r.path)&&void 0!==i&&i[0]&&(e.block[null===r||void 0===r?void 0:r.path[0]]=r.value)}}),e.addMatcher(e=>"blocksApi/invalidateTags"===e.type,(e,t)=>{if(t.payload[0].id===+e.invalidateBlockId)return{...s,isCodeMode:null===e||void 0===e?void 0:e.isCodeMode,codeModeDirection:e.codeModeDirection}}),e.addMatcher(a.VM.endpoints.editBlock.matchFulfilled,(e,{payload:t})=>{e.invalidateBlockId=null,e.block={...e.block,...t,renderGuid:e.block.renderGuid}}),e.addMatcher(a.VM.endpoints.autoSaveBlock.matchFulfilled,(e,t)=>{var r,o;(null===e||void 0===e||null===(r=e.block.id)||void 0===r?void 0:r.toString())===(null===(o=t.payload.id)||void 0===o?void 0:o.toString())&&(e.block.html=t.payload.html)}),e.addMatcher(a.VM.endpoints.getBlock.matchFulfilled,(e,{payload:t})=>{e.block={...s.block,...t}})}}),{switchCodeMode:l,setEditorThemeColor:d,setBlockSettings:c,setElementSettings:u,setBlockSettingsDisable:p,setSearchFilters:m,setBlockHtml:h,resetBlockSlice:f,setBlockIsAmp:y}=i.actions,_=e=>e[n].block,g=e=>e[n].isCodeMode,v=e=>e[n].settings,b=e=>e[n].searchFilters,E=e=>e[n].elementSettings,T=e=>e[n].editorThemeColor,w=e=>e[n].isSettingsDisabled,S=i},69847:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g,D2:()=>f,hc:()=>_,jr:()=>y});var o=r(65913),a=r(27849),s=r(45988),n=r(72227),i=r(93506);const l=(0,n.ur)({blocksTotal:null,blocksTotalPages:null,parentEmailBlocksTotal:null,parentEmailBlocksTotalPages:null,templateBlocks:[],templateBlocksTotal:null,templateBlocksTotalPages:null,elementsView:!i.EW.isPlugin&&a.A.get(i.A9.em_elements_view)||i.Y$,elementsList:[],customFolders:{},blocksTrashTotal:0,elementsTrashList:[]}),d="blocksPageSlice",c=(0,o.createSlice)({name:d,initialState:l,reducers:{resetPagesAndTotal:()=>l,resetElementsList:e=>{e.elementsList=[]},toggleElementsView:(e,t)=>{e.elementsView=t.payload},removeBlockFromList:(e,{payload:t})=>{var r;const o=e.customFolders;t.folder!==i.y2&&null!==(r=o[t.folder])&&void 0!==r&&r.list&&(o[t.folder]={...o[t.folder],list:o[t.folder].list.filter(e=>e.id!==t.emailId),total:o[t.folder].total-1},e.customFolders=o)}},extraReducers:e=>{e.addMatcher(s.VM.endpoints.getBlocks.matchFulfilled,(e,{meta:t,payload:r})=>{var o,a,s,n,i,l,d,c;const u=(null===(o=t.baseQueryMeta)||void 0===o?void 0:o.response.headers.get("X-WP-Total"))||(null===r||void 0===r?void 0:r.length),p="trash"===(null===(a=t.arg.originalArgs)||void 0===a?void 0:a.status),m=!(null===(s=t.arg.originalArgs)||void 0===s||null===(n=s.name)||void 0===n||!n.length),h=null===(i=t.arg.originalArgs)||void 0===i?void 0:i.page,f=(null===(l=t.arg.originalArgs)||void 0===l?void 0:l.folderTag)||(null===(d=t.arg.originalArgs)||void 0===d||null===(c=d.tags)||void 0===c?void 0:c[0]);p?(m||(e.blocksTrashTotal=u),e.elementsTrashList=r):f?e.customFolders={...e.customFolders,[f]:{list:r,page:h,total:u}}:(e.blocksTotal=u,e.elementsList=r)}),e.addMatcher(s.VM.endpoints.getParentEmailBlocks.matchFulfilled,(e,{meta:t,payload:r})=>{var o,a;const s=(null===(o=t.baseQueryMeta)||void 0===o?void 0:o.response.headers.get("X-WP-Total"))||(null===r||void 0===r?void 0:r.length)||null,n=null===(a=t.baseQueryMeta)||void 0===a?void 0:a.response.headers.get("X-WP-TotalPages");e.parentEmailBlocksTotal=s,e.parentEmailBlocksTotalPages=n}),e.addMatcher(s.VM.endpoints.getTemplateBlocks.matchFulfilled,(e,{meta:t,payload:r})=>{var o,a;const s=(null===(o=t.baseQueryMeta)||void 0===o?void 0:o.response.headers.get("X-WP-Total"))||(null===r||void 0===r?void 0:r.length)||null,n=null===(a=t.baseQueryMeta)||void 0===a?void 0:a.response.headers.get("X-WP-TotalPages");e.templateBlocks=r,e.templateBlocksTotal=s,e.templateBlocksTotalPages=n}),e.addMatcher(s.VM.endpoints.editBlock.matchFulfilled,(e,{payload:t})=>{e.elementsList.map(e=>{var r,o;return(null===(r=e.id)||void 0===r?void 0:r.toString())===(null===(o=t.id)||void 0===o?void 0:o.toString())?Object.assign(e,{lock:t.lock,title:t.title,blocktags:t.blocktags}):e})})}}),{resetPagesAndTotal:u,resetElementsList:p,toggleElementsView:m,removeBlockFromList:h}=c.actions,f=e=>e[d].blocksTotal,y=e=>e[d].templateBlocksTotal,_=e=>e[d].parentEmailBlocksTotal,g=c},19684:(e,t,r)=>{"use strict";r.d(t,{bc:()=>g,Ay:()=>U,zg:()=>E,jY:()=>A,GH:()=>b,s0:()=>T,p5:()=>S,RP:()=>w,wj:()=>M,rh:()=>P,bn:()=>j,Kj:()=>I,Ir:()=>C});var o=r(65913);const a={pro:{config:{mode:"pro",autosaveTimeout:1e4,theme:"",themes:{},mergeTagsShow:!0,styles:"",revisionService:!1,headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,webversionEnabled:!0,commonStylesEnabled:!0,emailResponsiveControlEnabled:!0,templateNotEmAlertShow:!1,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuImportButton:!1,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportZipEnabled:!0,exportTextEnabled:!0,exportClipboardEnabled:!0,exportWebHookEnabled:!0,exportOutlookEnabled:!0,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,lockEditor:!1,lockPreheaderAndTitle:!1,disableSideMenu:!1,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!0,aiAssistentEnabled:!0,optimizeEnabled:!0,optimizeLinksEnabled:!0,optimizeImagesEnabled:!0,optimizeSpamAssassinEnabled:!0,optimizeCheckCodeEnabled:!0,settingsEnabled:!0,UTMEnabled:!0,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,isTemplateEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,blocksAddPanelEnabled:!0,imagePathDropdownEnabled:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!0,formFieldBorderRadiusEnabled:!0,formFieldBoxShadowEnabled:!0,formFieldVisibilityEnabled:!0,formFieldExportAsPictureEnabled:!0,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formButtonFieldReplacerEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formCellFieldSizeEnabled:!0,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formImageFieldVerticalAlignEnabled:!0,formImageFieldReplacerEnabled:!0,formImageFieldHeightEnabled:!0,formTextFieldTypografEnabled:!0,formTextFieldReplacerEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!0,elementVideoEnabled:!0,elementAIimageEnabled:!0,elementAItextEnabled:!0,elementCarouselEnabled:!0,elementAccordionEnabled:!0,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:"",resourceProxy:void 0,resourceProxyPolicy:void 0,imageCenterFileManagerView:!0,imageCenterLocalUploadEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterIconStockEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3,ampExportEnabled:!0,formFieldAmpVisibilityEnabled:!0,testEmails:[],pushToGTM:!0,activeNextButton:!0,iconStrokeWidth:1.4,fileManager:{defaultFolderName:"",enableMoveFolder:!0,enableEdit:!0,enableTrash:!0}},project:void 0,page:{isNew:!0,type:"email",project:0,id:""}},editor:{config:{mode:"editor",autosaveTimeout:1e4,theme:"",themes:{},mergeTagsShow:!1,styles:"",headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!1,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!1,webversionEnabled:!1,commonStylesEnabled:!1,emailResponsiveControlEnabled:!1,templateNotEmAlertShow:!1,emailDropdownMenuEnabled:!1,emailDropdownMenuClone:!0,emailDropdownMenuImport:!1,emailDropdownMenuImportButton:!1,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportTextEnabled:!1,exportZipEnabled:!0,exportClipboardEnabled:!1,exportWebHookEnabled:!1,exportOutlookEnabled:!0,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!1,saveBlockEnabled:!0,editImageControlEnabled:!0,lockEditor:!1,lockPreheaderAndTitle:!1,disableSideMenu:!1,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!1,aiAssistentEnabled:!1,optimizeEnabled:!1,optimizeLinksEnabled:!0,optimizeImagesEnabled:!0,optimizeSpamAssassinEnabled:!0,optimizeCheckCodeEnabled:!0,settingsEnabled:!0,UTMEnabled:!1,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!1,tagsEnabled:!0,isTemplateEnabled:!1,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!1,deleteButtonEnabled:!0,toggleSidePanel:!1,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,blocksAddPanelEnabled:!0,imagePathDropdownEnabled:!1,formFieldImageTitleEnabled:!1,formFieldBorderEnabled:!1,formFieldBorderRadiusEnabled:!1,formFieldBoxShadowEnabled:!1,formFieldVisibilityEnabled:!1,formFieldExportAsPictureEnabled:!1,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!1,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!1,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!1,formButtonFieldReplacerEnabled:!1,formCellFieldVerticalAlignEnabled:!1,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formCellFieldSizeEnabled:!1,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formImageFieldVerticalAlignEnabled:!1,formImageFieldReplacerEnabled:!1,formImageFieldHeightEnabled:!1,formTextFieldTypografEnabled:!1,formTextFieldReplacerEnabled:!1,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!0,elementVideoEnabled:!1,elementAIimageEnabled:!0,elementAItextEnabled:!1,elementCarouselEnabled:!1,elementAccordionEnabled:!1,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:"",resourceProxy:void 0,resourceProxyPolicy:void 0,imageCenterFileManagerView:!0,imageCenterLocalUploadEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterIconStockEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3,ampExportEnabled:!1,formFieldAmpVisibilityEnabled:!1,testEmails:[],pushToGTM:!0,activeNextButton:!0,iconStrokeWidth:1.4},project:void 0,page:{isNew:!1,type:"email",project:0,id:""}},simple:{config:{mode:"simple",autosaveTimeout:1e4,theme:"",themes:{},mergeTagsShow:!1,styles:"",headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,webversionEnabled:!1,commonStylesEnabled:!1,emailResponsiveControlEnabled:!1,templateNotEmAlertShow:!1,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuImportButton:!1,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportZipEnabled:!0,exportTextEnabled:!0,exportClipboardEnabled:!0,exportWebHookEnabled:!0,exportOutlookEnabled:!1,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,lockEditor:!1,lockPreheaderAndTitle:!1,disableSideMenu:!1,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!0,aiAssistentEnabled:!0,optimizeEnabled:!0,optimizeLinksEnabled:!0,optimizeImagesEnabled:!0,optimizeSpamAssassinEnabled:!0,optimizeCheckCodeEnabled:!0,settingsEnabled:!0,UTMEnabled:!1,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,isTemplateEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,blocksAddPanelEnabled:!0,imagePathDropdownEnabled:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!1,formFieldBorderRadiusEnabled:!1,formFieldBoxShadowEnabled:!1,formFieldVisibilityEnabled:!1,formFieldExportAsPictureEnabled:!1,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formButtonFieldReplacerEnabled:!1,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formCellFieldSizeEnabled:!1,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formImageFieldVerticalAlignEnabled:!1,formImageFieldReplacerEnabled:!1,formImageFieldHeightEnabled:!1,formTextFieldTypografEnabled:!1,formTextFieldReplacerEnabled:!1,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!1,elementCountdownEnabled:!1,elementVideoEnabled:!1,elementAIimageEnabled:!0,elementAItextEnabled:!1,elementCarouselEnabled:!1,elementAccordionEnabled:!1,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:"",resourceProxy:void 0,resourceProxyPolicy:void 0,imageCenterFileManagerView:!1,imageCenterLocalUploadEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterIconStockEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3,ampExportEnabled:!1,formFieldAmpVisibilityEnabled:!1,testEmails:[],pushToGTM:!0,activeNextButton:!0,iconStrokeWidth:1.4,fileManager:{defaultFolderName:"",enableMoveFolder:!0,enableEdit:!0,enableTrash:!0}},project:void 0,page:{isNew:!1,type:"email",project:0,id:""}},blocks:{config:{mode:"freeUserBlocks",autosaveTimeout:1e4,theme:"",themes:{},mergeTagsShow:!0,styles:"",revisionService:!1,headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,webversionEnabled:!0,commonStylesEnabled:!0,emailResponsiveControlEnabled:!0,templateNotEmAlertShow:!1,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportZipEnabled:!0,exportTextEnabled:!0,exportClipboardEnabled:!0,exportWebHookEnabled:!0,exportOutlookEnabled:!0,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,lockEditor:!1,lockPreheaderAndTitle:!1,disableSideMenu:!1,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!0,aiAssistentEnabled:!0,optimizeEnabled:!0,optimizeLinksEnabled:!0,optimizeImagesEnabled:!0,optimizeSpamAssassinEnabled:!0,optimizeCheckCodeEnabled:!0,settingsEnabled:!0,UTMEnabled:!0,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,isTemplateEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,blocksAddPanelEnabled:!0,imagePathDropdownEnabled:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!0,formFieldBorderRadiusEnabled:!0,formFieldBoxShadowEnabled:!0,formFieldVisibilityEnabled:!0,formFieldExportAsPictureEnabled:!0,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formCellFieldSizeEnabled:!0,formButtonFieldReplacerEnabled:!0,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formImageFieldVerticalAlignEnabled:!0,formImageFieldReplacerEnabled:!0,formImageFieldHeightEnabled:!0,formTextFieldTypografEnabled:!0,formTextFieldReplacerEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!1,elementCountdownEnabled:!0,elementVideoEnabled:!0,elementAIimageEnabled:!0,elementAItextEnabled:!0,elementCarouselEnabled:!0,elementAccordionEnabled:!0,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:"",resourceProxy:void 0,resourceProxyPolicy:void 0,imageCenterFileManagerView:!1,imageCenterLocalUploadEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterIconStockEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3,ampExportEnabled:!0,formFieldAmpVisibilityEnabled:!0,testEmails:[],pushToGTM:!0,activeNextButton:!0,iconStrokeWidth:1.4},project:void 0,page:{isNew:!0,type:"email",project:0,id:""}}},s=e=>{const t=a[e];return t||a.editor};var n=r(40867),i=r(51432),l=r(68876),d=r(72227);const c="configSlice",u=(0,d.ur)(s("pro"));function p(e){return e.user.mode||e.serverSide.mode||localStorage.getItem("configSwither")||"pro"}function m(e){var t;const r=p(e);return(null===(t=s(r))||void 0===t?void 0:t.config)||{}}function h(e){var t;const r=p(e);return(null===(t=e.serverSide.advancedConfigs)||void 0===t?void 0:t[r])||{}}function f(e){var t,r,o,a,s;const n=p(e),i=null===e||void 0===e||null===(t=e.user)||void 0===t||null===(r=t.advancedConfigs)||void 0===r?void 0:r[n],l=void 0!==i?i:null===e||void 0===e||null===(o=e.user)||void 0===o||null===(a=o.advancedConfigs)||void 0===a?void 0:a.pro;return{...(null===e||void 0===e||null===(s=e.advancedConfigs)||void 0===s?void 0:s[n])||{},...l||{}}}function y(e){const t=m(e),r=h(e);return[f(e),e.user,r,e.serverSide,t,e.base]}function _(e){const t=m(e),r=h(e),o=f(e),a=[e.base,t,e.serverSide,r,e.user,o],s=(0,l.n1)(a),n=function(e){let t;for(const r of e)null!==r&&void 0!==r&&r.fileManager&&(t={...t||{},...r.fileManager});return t}(a);void 0!==n&&(s.fileManager=n);const i=function(e){return(0,l.fy)(e.map(e=>null===e||void 0===e?void 0:e.resourceProxy))}(a);void 0!==i&&(s.resourceProxy=i);const d=function(e){return(0,l.n1)(e.map(e=>(null===e||void 0===e?void 0:e.resourceProxyPolicy)||{}).filter(Boolean))}(a);d&&Object.keys(d).length>0&&(s.resourceProxyPolicy=d);const c=function(e){return(0,l.Vi)(e.map(e=>null===e||void 0===e?void 0:e.backendProxy))}(a);void 0!==c&&(s.backendProxy=c);const u=function(e){return(0,l.n1)(e.map(e=>(null===e||void 0===e?void 0:e.backendProxyPolicy)||{}).filter(Boolean))}(a);return u&&Object.keys(u).length>0&&(s.backendProxyPolicy=u),s}const g=(0,o.createAsyncThunk)("config/changeConfigModeWithCodeCheck",async(e,{dispatch:t,getState:r})=>{var o,a,s;t(x(e)),t(i.Q2.endpoints.editMe.initiate({email_builder_config:e})),await new Promise(e=>setTimeout(e,0));const l=r(),d=null===(o=l.emailPageSlice)||void 0===o?void 0:o.isCodeMode;return!1===(null===(a=l.configSlice)||void 0===a||null===(s=a.config)||void 0===s?void 0:s.codeEnabled)&&d&&t((0,n.N6)(!1)),e}),v=(0,o.createSlice)({name:c,initialState:()=>{const e={...u,config:{...u.config,mergeTags:void 0}};return{base:e.config,serverSide:{},user:{},advancedConfigs:{},config:e.config,page:e.page,project:e.project}},reducers:{setPage:(e,t)=>{e.page=t.payload},setAllConfigs:(e,{payload:t})=>{var r;e.user=t.user,e.serverSide=t.serverSide,e.advancedConfigs={...t.advancedConfigs||{},...(null===(r=t.user)||void 0===r?void 0:r.advancedConfigs)||{}},e.config=_(e)},changeConfigMode:(e,t)=>{e.user.mode=t.payload,e.config=_(e)},setInitialMergeTags:(e,t)=>{e.base.mergeTags=t.payload,e.config.mergeTags=(0,l.ZJ)(y(e),"mergeTags")},setMergeTags:(e,t)=>{e.user.mergeTags=t.payload,e.config.mergeTags=(0,l.ZJ)(y(e),"mergeTags")},setUserConfig:(e,{payload:t})=>{e.user=t,e.config=_(e)},updateUserConfig:(e,{payload:t})=>{e.user={...e.user,...t},e.config=_(e)},setProject:(e,t)=>{e.project=t.payload},setActiveNextButton:(e,t)=>{e.user.activeNextButton=t.payload,e.config.activeNextButton=void 0!==(0,l.ZJ)(y(e),"activeNextButton")}},extraReducers:e=>{}}),b=e=>e[c].config.mergeTags,E=e=>e[c].config,T=e=>e[c].page,w=e=>e[c].config.themes,S=e=>e[c].config.styles,A=e=>e[c].project,{setPage:C,setAllConfigs:P,updateUserConfig:q,setUserConfig:O,setProject:j,setMergeTags:k,changeConfigMode:x,setInitialMergeTags:I,setActiveNextButton:M}=v.actions,U=v},38343:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,M:()=>d,YT:()=>l,rI:()=>i});var o=r(65913);const a=(0,r(72227).ur)({isCollapsed:!0,isMonacoFocusing:!1}),s="defaultModePanesSlice",n=(0,o.createSlice)({name:s,initialState:a,reducers:{setMonacoFocusing:(e,t)=>{e.isMonacoFocusing=t.payload},resetPanes:()=>a}}),{resetPanes:i,setMonacoFocusing:l}=n.actions,d=e=>e[s].isMonacoFocusing,c=n},40867:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>F,B:()=>L,Bp:()=>A,CS:()=>U,Ct:()=>I,Fk:()=>y,Fv:()=>O,M7:()=>P,N6:()=>w,NQ:()=>j,Oo:()=>h,PM:()=>f,Tn:()=>N,Uf:()=>b,V$:()=>x,Wm:()=>R,Wv:()=>$,cL:()=>k,mi:()=>_,oF:()=>q,oG:()=>M,qf:()=>m,sy:()=>C,vc:()=>g,vs:()=>v,wW:()=>E,wr:()=>T,yy:()=>D});var o,a=r(65913),s=r(45988),n=r(93506),i=r(72227);const l=null===(o=window.localStorage)||void 0===o?void 0:o.getItem(n.V0.em_code_mode_settings),d=l&&JSON.parse(l),c=(0,i.ur)({activeModal:"",lastActiveSettingsTab:n.Bv,activeSettingsTab:n.Bv,isPanelHistoryCollapsed:!0,monacoHeight:0,isCodeMode:(null===d||void 0===d?void 0:d.isCodeMode)||n.EW.isPlugin&&void 0===(null===d||void 0===d?void 0:d.isCodeMode),codeModeDirection:(null===d||void 0===d?void 0:d.codeModeDirection)||"left",isHeaderCodeMenuOpen:{current:!1,switched:!1},emailWidth:"100%",emailViewType:n.Vp,mobileViewActive:{shutdown:!0,styles:!0},emailMaxWidthSize:425,propertiesPanelKey:n.WU,parentBlocks:[],isGlobalLoading:!1});localStorage.getItem(n.V0.em_code_mode_settings)||window.localStorage.setItem(n.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:c.codeModeDirection,isCodeMode:c.isCodeMode}));const u="emailPageSlice",p=(0,a.createSlice)({name:u,initialState:c,reducers:{openModal:(e,t)=>{e.activeModal=t.payload},closeModal:e=>{e.activeModal=""},setActiveSettingsTab:(e,t)=>{e.lastActiveSettingsTab=e.activeSettingsTab,e.activeSettingsTab=t.payload,t.payload!==n.Vv&&(e.isPanelHistoryCollapsed=!0)},resetToLastActiveSettingsTab:e=>{"Properties"===e.lastActiveSettingsTab?e.activeSettingsTab="Build":e.activeSettingsTab=e.lastActiveSettingsTab,e.lastActiveSettingsTab!==n.Vv&&(e.isPanelHistoryCollapsed=!0)},switchIsPanelHistoryCollapsed:(e,t)=>{e.isPanelHistoryCollapsed=t.payload||!e.isPanelHistoryCollapsed},setEmailWidth:(e,{payload:t})=>{e.emailWidth=t,e.emailViewType=t>e.emailMaxWidthSize||"100%"===t?n.Vp:n.ND,window.localStorage.setItem(n.V0.em_default_sizes,JSON.stringify(t))},setEmailMaxWidthSize:(e,{payload:t})=>{e.emailMaxWidthSize=t},setEmailViewType:(e,t)=>{e.emailViewType=t.payload},switchCodeMode:e=>{const t=!e.isCodeMode;e.isCodeMode=t,window.localStorage.setItem(n.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:t}))},setCodeMode:(e,t)=>{const r=t.payload;e.isCodeMode!==r&&(e.isCodeMode=r,window.localStorage.setItem(n.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:r})))},switchCodeModeDirection:(e,t)=>{e.codeModeDirection=t.payload,window.localStorage.setItem(n.V0.em_code_mode_settings,JSON.stringify({isCodeMode:e.isCodeMode,codeModeDirection:t.payload}))},setMobileViewActive:(e,t)=>{e.mobileViewActive=t.payload},setPropertiesPanelKey:(e,t)=>{e.propertiesPanelKey=t.payload},resetParentBlocks:e=>{e.parentBlocks=[]},setParentBlocks:(e,t)=>{e.parentBlocks=t.payload},setIsGlobalLoading:(e,t)=>{e.isGlobalLoading=t.payload},setHeaderCodeMenuOpen:(e,t)=>{e.isHeaderCodeMenuOpen.current&&!t.payload?e.isHeaderCodeMenuOpen.switched=!0:e.isHeaderCodeMenuOpen.switched=!1,e.isHeaderCodeMenuOpen.current=t.payload}},extraReducers:e=>{e.addMatcher(s.VM.endpoints.getParentEmailBlocks.matchFulfilled,(e,t)=>{e.parentBlocks=t.payload})}}),{openModal:m,closeModal:h,setActiveSettingsTab:f,resetToLastActiveSettingsTab:y,switchIsPanelHistoryCollapsed:_,setEmailWidth:g,switchCodeMode:v,switchCodeModeDirection:b,setMobileViewActive:E,setEmailViewType:T,setCodeMode:w,setEmailMaxWidthSize:S,setPropertiesPanelKey:A,resetParentBlocks:C,setIsGlobalLoading:P,setHeaderCodeMenuOpen:q}=p.actions,O=e=>e[u].isCodeMode,j=e=>e[u].emailWidth,k=e=>e[u].activeModal,x=e=>e[u].parentBlocks,I=e=>e[u].emailViewType,M=e=>e[u].isGlobalLoading,U=e=>e[u].mobileViewActive,D=e=>e[u].codeModeDirection,L=e=>e[u].activeSettingsTab,N=e=>e[u].propertiesPanelKey,$=e=>e[u].isHeaderCodeMenuOpen,R=e=>e[u].isPanelHistoryCollapsed,F=p},52898:(e,t,r)=>{"use strict";r.d(t,{A9:()=>m,AJ:()=>v,Ay:()=>Q,Bj:()=>C,Bu:()=>q,CT:()=>D,G_:()=>p,HO:()=>_,Hs:()=>x,M7:()=>h,QV:()=>w,RC:()=>j,S_:()=>O,UI:()=>L,Up:()=>R,VK:()=>E,VO:()=>A,VZ:()=>B,Wm:()=>S,Yd:()=>N,dH:()=>k,eX:()=>u,iy:()=>G,mD:()=>H,no:()=>T,om:()=>f,pl:()=>g,ps:()=>P,qX:()=>$,rY:()=>M,rd:()=>U,ry:()=>y,ss:()=>b,uJ:()=>I,zn:()=>F});var o=r(65913),a=r(89591),s=r(487),n=r(87796);function i(e,t){return function(e){return Object.prototype.hasOwnProperty.call(e,"meta")}(e)?e.meta:t}const l=(0,r(72227).ur)({invalidateEmailId:null,editorThemeColor:"light",isSettingsDisabled:!1,emailAutosaveTimestamps:{},settings:{backgroundColor:"",backgroundImage:[{type:"url",value:""}],backgroundPositionX:"",backgroundPositionY:"",backgroundRepeat:"",textStrong:!1,textItalic:!1,textUnderline:!1},elementSettings:{},searchFilters:{},emailCommonStyles:"",saveTime:null,mobileViewActive:{shutdown:!0,styles:!0},email:{id:void 0,is_inited:!1,isNew:!1,subject:void 0,preheader:void 0,description:"",html:"",project:void 0,project_author:"",project_title:"",tags:[],utm_parameters:{utm_source:"",utm_medium:"",utm_campaign:"",utm_term:"",utm_content:""},parent_email:null,common_styles:"{}",title:null,emailtags:[],group:[],isAmp:!1},emailIsEdit:!1,isCodeMode:!1,codeModeDirection:void 0,emailViewType:void 0,changeKey:null,problemsList:[],activeProblemRange:null,emailGroups:{},parentGroupOfProject:null,projectGroups:[],isNeedUpdateAppearance:!1,isNeedUpdateContentAppearance:!1}),d="emailSlice",c=(0,o.createSlice)({name:d,initialState:l,reducers:{setEditorThemeColor:(e,t)=>{e.editorThemeColor=t.payload},setEmailFromHistory:(e,{payload:t})=>{const r=e.email,o=void 0===(null===t||void 0===t?void 0:t.preheader),a=void 0===(null===t||void 0===t?void 0:t.subject),s=i(t,r.meta);e.email={...r,html:null===t||void 0===t?void 0:t.html,preheader:o?r.preheader:null===t||void 0===t?void 0:t.preheader,subject:a?r.subject:null===t||void 0===t?void 0:t.subject,common_styles:"string"===typeof(null===t||void 0===t?void 0:t.common_styles)&&null!==t&&void 0!==t&&t.common_styles.startsWith("{")?null===t||void 0===t?void 0:t.common_styles:r.common_styles||"{}",...void 0!==s?{meta:s}:{}},e.isNeedUpdateAppearance=!0,e.isNeedUpdateContentAppearance=!0},setEmailSettings:(e,{payload:t})=>{Object.assign(e,{...e,settings:{...t},isSettingsDisabled:!1})},setEmailSettingsDisable:(e,t)=>{e.isSettingsDisabled=t.payload},setElementSettings:(e,{payload:t})=>{e.elementSettings=t},setSearchFilters:(e,t)=>{e.searchFilters=t.payload},updateSearchFilters:(e,t)=>{const r=e.searchFilters;e.searchFilters={...r,...t.payload}},setEmailHTML:(e,t)=>{e.email.html=t.payload},setEmailSubject:(e,t)=>{e.email.title!==e.email.subject&&(e.email.subject||e.email.title)||(e.email.title=t.payload),e.email.subject=t.payload},setEmailPreheader:(e,t)=>{e.email.preheader=t.payload},resetEmailSlice:e=>{const t=e.emailAutosaveTimestamps;return{...l,emailAutosaveTimestamps:t}},setEmailTitle:(e,t)=>{e.email.title=t.payload},setEmailMeta:(e,t)=>{var r;void 0!==t.payload?e.email.meta={...null!==(r=e.email.meta)&&void 0!==r?r:{},...t.payload}:delete e.email.meta},setIsInited:(e,t)=>{e.email.is_inited=t.payload},setEmailIsAmp:(e,t)=>{e.email.isAmp=t.payload},setProblemsList:(e,t)=>{e.problemsList=t.payload},setActiveProblemRange:(e,t)=>{e.activeProblemRange=t.payload},setIsNeedUpdateContentAppearance:(e,t)=>{e.isNeedUpdateContentAppearance=t.payload},setIsNeedUpdateAppearance:(e,t)=>{e.isNeedUpdateAppearance=t.payload},setEmailGroups:(e,{payload:t})=>{const r=Object.keys(t)[0],o=e.emailGroups,a=e.parentGroupOfProject,s=e.projectGroups,n={};var i;a&&s.length&&(null===(i=t[r])||void 0===i||i.forEach(e=>{const t=s.find(e=>e.id===+r),o=null===t||void 0===t?void 0:t.children.find(t=>t.id===+e);o?(n.hasOwnProperty(t.id)||(n[t.id]=[]),n[t.id].push({label:o.name,value:o.id})):(n.hasOwnProperty(r)||(n[r]=[]),n[r].push({label:e,value:null}))}),0===t[r].length&&(n[r]=[]));e.emailGroups={...o,...n}}},extraReducers:e=>{e.addMatcher(e=>"emailsApi/queries/queryResultPatched"===e.type,(e,t)=>{var r,o;const a=t.payload.queryCacheKey.match(/\("([0-9]+)"\)/),s=null===(r=t.payload)||void 0===r?void 0:r.patches[0];null!==s&&void 0!==s&&null!==(o=s.path)&&void 0!==o&&o[0]&&(e.email[null===s||void 0===s?void 0:s.path[0]]=s.value),null!==a&&void 0!==a&&a[1]&&(e.invalidateEmailId=a[1]),e.emailIsEdit=!0}),e.addMatcher(e=>"emailsApi/invalidateTags"===e.type,(e,t)=>{if(t.payload[0].id===+e.invalidateEmailId)return l}),e.addMatcher(a.GY.endpoints.editEmail.matchFulfilled,(e,{payload:t})=>{e.invalidateEmailId=null;const r=i(t,e.email.meta);e.email={...e.email,...t,renderGuid:e.email.renderGuid,...void 0!==r?{meta:r}:{}}}),e.addMatcher(a.GY.endpoints.autoSaveEmail.matchFulfilled,(e,t)=>{var r,o;(null===(r=e.email.id)||void 0===r?void 0:r.toString())===(null===(o=t.payload.parent)||void 0===o?void 0:o.toString())&&(e.email.html=t.payload.html,t.payload.modified&&(e.email.modified=t.payload.modified,e.emailAutosaveTimestamps[t.payload.parent]=t.payload.modified))}),e.addMatcher(a.GY.endpoints.getEmail.matchFulfilled,(e,{payload:t})=>{var r,o,a;const s=i(t,t.id===(null===(r=e.email)||void 0===r?void 0:r.id)?e.email.meta:void 0);e.email={...l.email,...t,is_inited:t.is_inited||(t.id===(null===(o=e.email)||void 0===o?void 0:o.id)?null===(a=e.email)||void 0===a?void 0:a.is_inited:l.email.is_inited),common_styles:"string"===typeof(null===t||void 0===t?void 0:t.common_styles)&&null!==t&&void 0!==t&&t.common_styles.startsWith("{")?null===t||void 0===t?void 0:t.common_styles:"{}",...void 0!==s?{meta:s}:{}},e.emailIsEdit=!1}),e.addMatcher(n.kE.endpoints.getGroups.matchFulfilled,(e,{meta:t,payload:r})=>{const o=e.email.group,a=t.arg.originalArgs.parent,s=r;a&&(e.parentGroupOfProject=a,e.projectGroups=s);const n={};a&&o.length&&s.length&&(null===o||void 0===o||o.forEach(e=>{null===s||void 0===s||s.forEach(t=>{const r=t.children.find(t=>t.id===e);r&&(n.hasOwnProperty(t.id)||(n[t.id]=[]),n[t.id].push({label:r.name,value:r.id}))})})),e.emailGroups=n}),e.addMatcher(s.Nq.endpoints.getProject.matchFulfilled,(e,{meta:t,payload:r})=>{var o;e.parentGroupOfProject=(null===(o=r.group)||void 0===o?void 0:o[0])||null})}}),{setEditorThemeColor:u,setEmailSettings:p,setElementSettings:m,setEmailSettingsDisable:h,setSearchFilters:f,updateSearchFilters:y,setEmailSubject:_,setEmailPreheader:g,setEmailHTML:v,resetEmailSlice:b,setEmailTitle:E,setEmailFromHistory:T,setEmailMeta:w,setIsInited:S,setEmailIsAmp:A,setProblemsList:C,setActiveProblemRange:P,setEmailGroups:q,setIsNeedUpdateAppearance:O,setIsNeedUpdateContentAppearance:j}=c.actions,k=e=>e[d].isNeedUpdateContentAppearance,x=e=>e[d].email,I=e=>e[d].settings,M=e=>e[d].emailGroups,U=e=>e[d].problemsList,D=e=>e[d].searchFilters,L=e=>e[d].projectGroups,N=e=>e[d].emailAutosaveTimestamps,$=e=>e[d].elementSettings,R=e=>e[d].editorThemeColor,F=e=>e[d].invalidateEmailId,G=e=>e[d].isSettingsDisabled,B=e=>e[d].activeProblemRange,H=e=>e[d].isNeedUpdateAppearance,Q=c},75354:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>E,FC:()=>m,MY:()=>f,NK:()=>p,NP:()=>g,Ni:()=>y,X:()=>h,aO:()=>v,ff:()=>u,qM:()=>_,ux:()=>b});var o=r(65913),a=r(27849),s=r(89591),n=r(72227),i=r(93506);const l=(0,n.ur)({emailsTotal:0,elementsList:[],emailsTrashTotal:0,elementsTrashList:[],customFolders:{},elementsView:!i.EW.isPlugin&&a.A.get(i.A9.em_elements_view)||i.Y$}),d="emailsPageSlice",c=(0,o.createSlice)({name:d,initialState:l,reducers:{resetPagesAndTotal:()=>l,resetElementsList:e=>{e.elementsList=[]},toggleElementsView:(e,t)=>{e.elementsView=t.payload},removeEmailFromList:(e,{payload:t})=>{var r;const o=e.customFolders;t.folder!==i.y2&&null!==(r=o[t.folder])&&void 0!==r&&r.list&&(o[t.folder]={...o[t.folder],list:o[t.folder].list.filter(e=>e.id!==t.emailId),total:o[t.folder].total-1},e.customFolders=o)}},extraReducers:e=>{e.addMatcher(s.GY.endpoints.getEmails.matchFulfilled,(e,{meta:t,payload:r})=>{var o,a,s,n,i,l,d,c;const u=+(null===(o=t.baseQueryMeta)||void 0===o?void 0:o.response.headers.get("X-WP-Total"))||0,p="trash"===(null===(a=t.arg.originalArgs)||void 0===a?void 0:a.status),m=!(null===(s=t.arg.originalArgs)||void 0===s||null===(n=s.name)||void 0===n||!n.length),h=null===(i=t.arg.originalArgs)||void 0===i?void 0:i.page,f=(null===(l=t.arg.originalArgs)||void 0===l?void 0:l.folderTag)||(null===(d=t.arg.originalArgs)||void 0===d||null===(c=d.tags)||void 0===c?void 0:c[0]);p?(m||(e.emailsTrashTotal=u),e.elementsTrashList=r):f?e.customFolders={...e.customFolders,[f]:{list:r,page:h,total:u}}:(e.emailsTotal=u,e.elementsList=r)}),e.addMatcher(s.GY.endpoints.getTemplateEmails.matchFulfilled,(e,{meta:t,payload:r})=>{var o;const a=+(null===(o=t.baseQueryMeta)||void 0===o?void 0:o.response.headers.get("X-WP-Total"))||0;e.elementsList=r,e.emailsTotal=a;const{projectGroup:s,projectId:n,tags:i}=t.arg.originalArgs;!(null!==s&&void 0!==s&&s.length&&n||null!==i&&void 0!==i&&i.length)&&(null!==i&&void 0!==i&&i.length||null!==s&&void 0!==s&&s.length)||(e.emailsTotal=a)}),e.addMatcher(s.GY.endpoints.editEmail.matchFulfilled,(e,{payload:t})=>{e.elementsList.map(e=>{var r,o;return(null===(r=e.id)||void 0===r?void 0:r.toString())===(null===(o=t.id)||void 0===o?void 0:o.toString())?Object.assign(e,{lock:t.lock,title:t.title,emailtags:t.emailtags}):e})})}}),{resetPagesAndTotal:u,toggleElementsView:p,resetElementsList:m,removeEmailFromList:h}=c.actions,f=e=>e[d].emailsTotal,y=e=>e[d].elementsView,_=e=>e[d].elementsList,g=e=>e[d].customFolders,v=e=>e[d].emailsTrashTotal,b=e=>e[d].elementsTrashList,E=c},11105:(e,t,r)=>{"use strict";r.d(t,{AS:()=>m,Ay:()=>v,Sl:()=>g,TB:()=>f,X8:()=>y});var o=r(65913),a=r(45988),s=r(487),n=r(21477),i=r.n(n);const l=(0,r(72227).ur)({block:{isNew:!0,subject:"",description:"",html:'<table cellspacing="0" cellpadding="0" border="0" width="100%">'+i()+"</table>",project:void 0,project_title:"",tags:[],type:"Other",title:null},hasChanged:!1}),d="newBlockSlice",c=(0,o.createSlice)({name:d,initialState:l,reducers:{setNewBlockAll:(e,{payload:{subject:t="",description:r="",renderGuid:o,html:a='<table cellspacing="0" cellpadding="0" border="0" width="100%">'+i()+"</table>",tags:s=[],type:n="Other",title:l,isAmp:d=!1}})=>{e.hasChanged||(e.hasChanged=!0),e.block.title=l,e.block.subject=t,e.block.description=r,e.block.html=a,e.block.tags=s,e.block.type=n,e.block.renderGuid=o,e.block.isAmp=d},setNewBlockTitle:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.block.title=t.payload},setNewBlockDescription:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.block.description=t.payload},setNewBlockHtml:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.block.html=t.payload},setNewBlockTags:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.block.tags=t.payload},resetNewBlockSlice:e=>({...l,block:{...l.block,project:e.block.project,project_title:e.block.project_title}}),setBlockIsAmp:(e,t)=>{e.block.isAmp=t.payload}},extraReducers:e=>{e.addMatcher(s.Nq.endpoints.getProject.matchFulfilled,(e,t)=>{e.block.project=t.payload.id,e.block.project_title=t.payload.title}),e.addMatcher(a.VM.endpoints.getBlock.matchFulfilled,e=>({...l,block:{...l.block,project:e.block.project,project_title:e.block.project_title}}))}}),{setNewBlockAll:u,setNewBlockTitle:p,setNewBlockDescription:m,setNewBlockHtml:h,setNewBlockTags:f,resetNewBlockSlice:y,setBlockIsAmp:_}=c.actions,g=e=>e[d].hasChanged,v=c},61062:(e,t,r)=>{"use strict";r.d(t,{$S:()=>M,Ay:()=>U,BQ:()=>y,Et:()=>O,K3:()=>S,MZ:()=>f,P3:()=>C,Qx:()=>x,TC:()=>b,TU:()=>_,Uh:()=>j,YG:()=>I,Zs:()=>v,aY:()=>E,lg:()=>k,mk:()=>P,ol:()=>A,x3:()=>g,yY:()=>w,zH:()=>q});var o=r(65913),a=r(89591),s=r(487),n=r(15756),i=r.n(n),l=r(93506),d=r(41244),c=r(72227),u=r(28589);const p=(0,c.ur)({emailtags:[],email:{isNew:!0,is_inited:!1,subject:void 0,preheader:void 0,description:"",html:i(),project:void 0,project_title:"",tags:[],utm_parameters:{utm_source:"",utm_medium:"",utm_campaign:"",utm_term:"",utm_content:""},parent_email:null,common_styles:"{}",title:"",emailtags:[],isAmp:!1},hasChanged:!1}),m="newEmailSlice",h=(0,o.createSlice)({name:m,initialState:p,reducers:{setNewEmailAll:(e,{payload:t})=>{var r;const{id:o,subject:a,description:s="",preheader:n,html:c=i(),utm_parameters:{utm_source:u="",utm_medium:p="",utm_campaign:m="",utm_term:h="",utm_content:f=""}={},common_styles:y="{}",emailtags:_=null,renderGuid:g,title:v,_embedded:b,isAmp:E=!1}=t;e.hasChanged||(e.hasChanged=!0),e.email.isAmp=E,e.email.title=v,!function(e){return Object.prototype.hasOwnProperty.call(e,"meta")}(t)?delete e.email.meta:e.email.meta=t.meta,e.emailtags=_,e.email.subject=a,e.email.description=s,e.email.common_styles=y||JSON.stringify(l.BD),e.email.preheader=n,e.email.is_template=!1,e.email.html=c,e.email.tags=(null===(r=(0,d._q)({_embedded:b},l.zh))||void 0===r?void 0:r.map(e=>e.name))||[],e.email.renderGuid=g,e.email.parent_email=o,e.email.utm_parameters={utm_source:u,utm_medium:p,utm_campaign:m,utm_term:h,utm_content:f}},setNewEmailTitle:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.email.title=t.payload},setNewEmailSubject:(e,t)=>{e.hasChanged||e.email.subject===t.payload||(e.hasChanged=!0),e.email.title!==e.email.subject&&(e.email.subject||e.email.title)||(e.email.title=t.payload),e.email.subject=t.payload},setNewEmailPreheader:(e,t)=>{e.hasChanged||e.email.preheader===t.payload||(e.hasChanged=!0),e.email.preheader=t.payload},setNewEmailDescription:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.email.description=t.payload},setNewEmailIsTemplate:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.email.is_template=t.payload},setNewEmailHtml:(e,t)=>{e.hasChanged||(e.hasChanged=!0),t.payload&&(e.email.html=t.payload)},setNewCommonStyles:(e,t)=>{e.hasChanged||(e.hasChanged=!0),t.payload&&(e.email.common_styles=t.payload)},setNewEmailTags:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.email.tags=t.payload},setNewEmailUtmSource:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_source=t.payload},setNewEmailUtmMedium:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_medium=t.payload},setNewEmailUtmCampaign:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_campaign=t.payload},setNewEmailUtmTerm:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_term=t.payload},setNewEmailUtmContent:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_content=t.payload},setNewIsInited:(e,t)=>{e.email.is_inited=t.payload},setNewEmailIsAmp:(e,t)=>{e.email.isAmp=t.payload},setNewEmailMeta:(e,t)=>{var r;void 0!==t.payload?e.email.meta={...null!==(r=e.email.meta)&&void 0!==r?r:{},...t.payload}:delete e.email.meta},resetNewEmailSlice:e=>({...p,email:{...p.email,guid:(0,u.l)(),project:e.email.project,project_title:e.email.project_title}})},extraReducers:e=>{e.addMatcher(s.Nq.endpoints.getProject.matchFulfilled,(e,t)=>{e.email.project=t.payload.id,e.email.project_title=t.payload.title}),e.addMatcher(a.GY.endpoints.getEmail.matchFulfilled,e=>({...p,email:{...p.email,project:e.email.project,project_title:e.email.project_title}}))}}),{setNewEmailAll:f,setNewEmailTitle:y,setNewEmailSubject:_,setNewEmailPreheader:g,setNewEmailDescription:v,setNewEmailIsTemplate:b,setNewEmailHtml:E,setNewCommonStyles:T,setNewEmailTags:w,setNewEmailUtmSource:S,setNewEmailUtmMedium:A,setNewEmailUtmCampaign:C,setNewEmailUtmContent:P,setNewEmailUtmTerm:q,resetNewEmailSlice:O,setNewIsInited:j,setNewEmailIsAmp:k,setNewEmailMeta:x}=h.actions,I=e=>e[m].email,M=e=>e[m].hasChanged,U=h},22817:(e,t,r)=>{"use strict";r.d(t,{AQ:()=>v,Ay:()=>b,BN:()=>u,GD:()=>f,RP:()=>y,Rw:()=>g,Rz:()=>_,es:()=>c,mb:()=>p,od:()=>d,qV:()=>m,yN:()=>h});var o=r(65913),a=r(487),s=r(89591);const n=(0,r(72227).ur)({project:null,activeGroupsTags:[],activeProjectGroupsTags:[],groupsTemplateTotal:null,groupsTemplateProjectTotalPages:null,groupsTemplateProjectTotal:null}),i="projectSlice",l=(0,o.createSlice)({name:i,initialState:n,reducers:{setProject:(e,{payload:t})=>{e.project=t},setActiveGroupsTags:(e,{payload:t})=>{e.activeGroupsTags=t,t.length&&(e.activeProjectGroupsTags=[])},setActiveProjectGroupsTags:(e,{payload:t})=>{e.activeProjectGroupsTags=t,t.length&&(e.activeGroupsTags=[])},resetAllTags:e=>{e.activeProjectGroupsTags=[],e.activeGroupsTags=[]}},extraReducers:e=>{e.addMatcher(a.Nq.endpoints.getProject.matchFulfilled,(e,{payload:t})=>{e.project={...n.project,...t}}),e.addMatcher(a.Nq.endpoints.editProject.matchFulfilled,(e,{payload:t})=>{e.project={...n.project,...t}}),e.addMatcher(s.GY.endpoints.getTemplateEmails.matchFulfilled,(e,{payload:t,meta:r})=>{const{projectId:o}=r.arg.originalArgs;var a,s,n;o?(e.groupsTemplateProjectTotal=+(null===(a=r.baseQueryMeta)||void 0===a?void 0:a.response.headers.get("X-WP-Total")),e.groupsTemplateProjectTotalPages=+(null===(s=r.baseQueryMeta)||void 0===s?void 0:s.response.headers.get("X-WP-TotalPages"))):e.groupsTemplateTotal=+(null===(n=r.baseQueryMeta)||void 0===n?void 0:n.response.headers.get("X-WP-Total"))})}}),{setProject:d,setActiveGroupsTags:c,setActiveProjectGroupsTags:u,resetAllTags:p}=l.actions,m=e=>e[i].groupsTemplateProjectTotalPages,h=e=>e[i].project,f=e=>e[i].activeGroupsTags,y=e=>e[i].groupsTemplateTotal,_=e=>{var t;return null===(t=e[i].project)||void 0===t?void 0:t.projects_test_emails},g=e=>e[i].activeProjectGroupsTags,v=e=>e[i].groupsTemplateProjectTotal,b=l},78443:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>P,Oo:()=>_,Os:()=>v,Tu:()=>C,Wz:()=>g,YF:()=>y,cL:()=>S,gU:()=>w,qf:()=>h,sK:()=>A,uK:()=>f});var o=r(65913),a=r(487),s=r(87796),n=r(93506),i=r(72227);const l=new URLSearchParams(window.location.search),d=l.get("tag"),c=l.get("folder"),u=(0,i.ur)({activeModal:"",switchToPlanRequestTitle:"",secondModal:"",projectsTotal:"",projectsTotalPages:"",folders:[],activeTagId:d||null,activeFolderId:c||(d?null:n.y2),activeTab:null,activeIntegration:null}),p="projectsPageSlice",m=(0,o.createSlice)({name:p,initialState:u,reducers:{openModal(e,t){e.activeModal=t.payload},setSwitchToPlanRequestTitle(e,t){e.switchToPlanRequestTitle="string"===typeof t.payload?t.payload:""},setActiveTab(e,t){e.activeTab=t.payload},closeModal(e){e.activeModal="",e.activeIntegration=null,e.switchToPlanRequestTitle=""},openSecondModal(e,t){e.secondModal=t.payload},closeSecondModal(e){e.secondModal=""},setFolders(e,{payload:t}){e.folders=t},setActiveTagId(e,{payload:t}){e.activeTagId=t},setActiveIntegration(e,t){e.activeIntegration=t.payload}},extraReducers:e=>{e.addMatcher(a.Nq.endpoints.getProjects.matchFulfilled,(e,{meta:t})=>{var r,o;const a=null===(r=t.baseQueryMeta)||void 0===r?void 0:r.response.headers.get("X-WP-Total"),s=null===(o=t.baseQueryMeta)||void 0===o?void 0:o.response.headers.get("X-WP-TotalPages");e.projectsTotal=a,e.projectsTotalPages=s}),e.addMatcher(s.kE.endpoints.getFolders.matchFulfilled,(e,{payload:t})=>{e.folders=t})}}),{openModal:h,setSwitchToPlanRequestTitle:f,setActiveTab:y,closeModal:_,openSecondModal:g,closeSecondModal:v,setFolders:b,setActiveTagId:E,setActiveIntegration:T}=m.actions,w=e=>e[p].activeTab,S=e=>e[p].activeModal,A=e=>e[p].secondModal,C=e=>e[p].activeIntegration,P=m},74663:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>m,RL:()=>u,p1:()=>p,qX:()=>d});var o=r(65913),a=r(89591),s=r(45988);const n=(0,r(72227).ur)({historyData:[],elementHistoryTotalPages:1}),i="revisionHistorySlice",l=(0,o.createSlice)({name:i,initialState:n,reducers:{resetElementHistorySlice:()=>({...n}),setElementHistory:(e,t)=>{0!==t.payload.length&&(e.historyData=t.payload)}},extraReducers:e=>{e.addMatcher(a.GY.endpoints.getEmailHistory.matchFulfilled,(e,{meta:t,payload:r})=>{var o;e.elementHistoryTotalPages=+(null===(o=t.baseQueryMeta)||void 0===o?void 0:o.response.headers.get("X-WP-TotalPages")),t.arg.originalArgs.page&&1!==t.arg.originalArgs.page||(e.historyData=r.data||[])}),e.addMatcher(s.VM.endpoints.getBlockHistory.matchFulfilled,(e,{meta:t,payload:r})=>{var o;e.elementHistoryTotalPages=+(null===(o=t.baseQueryMeta)||void 0===o?void 0:o.response.headers.get("X-WP-TotalPages")),r.args.page&&1!==r.args.page||(e.historyData=r.data||[])})}}),{resetElementHistorySlice:d}=l.actions,{setElementHistory:c}=l.actions,u=e=>e[i].elementHistoryTotalPages,p=e=>e[i].historyData,m=l},98173:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>T,B:()=>b,B$:()=>E,C1:()=>_,hZ:()=>v,ko:()=>h,ku:()=>p,ww:()=>c,yf:()=>g});var o=r(65913),a=r(51432),s=r(93506),n=r(72227),i=r(41244);const l=(0,n.ur)({currentUser:{},currentSchema:{},monacoOptions:s.rW,monacoDidMount:!1}),d="userSlice",c=(0,o.createAsyncThunk)("user/setMonacoOptions",async(e,{getState:t})=>{const r=t()[d],o="string"===typeof e.font_family?`${e.font_family}, sans-serif`:void 0,a=void 0!==e.word_wrap?e.word_wrap?"on":"off":void 0;return o&&r.monacoOptions.fontFamily!==o&&await(0,i.iV)(e.font_family),{tabSize:e.tab_size,fontFamily:o,fontSize:e.font_size,wordWrap:a,insertSpaces:e.insert_spaces,minimap:{enabled:e.minimap}}}),u=(0,o.createSlice)({name:d,initialState:l,reducers:{setMonacoDidMount:(e,{payload:t})=>{e.monacoDidMount=t},setTheme:(e,{payload:t})=>{e.currentUser.theme=t},setUserLocale:(e,{payload:t})=>{e.currentUser.locale=t},setUserAutosaves:(e,{payload:t})=>{e.currentUser.autosaves=t},setUser:(e,{payload:t})=>{e.currentUser={...e.currentUser,...t}}},extraReducers:e=>{e.addCase(c.fulfilled,(e,t)=>{const r=t.payload;e.monacoOptions=(0,i.i0)({...e.monacoOptions},r)}),e.addMatcher(a.Q2.endpoints.editMe.matchFulfilled,(e,t)=>{e.currentUser=t.payload}),e.addMatcher(a.Q2.endpoints.getMe.matchFulfilled,(e,t)=>{e.currentUser=t.payload}),e.addMatcher(a.Q2.endpoints.getSchema.matchFulfilled,(e,t)=>{e.currentSchema=t.payload.schema})}}),{setMonacoDidMount:p,setTheme:m,setUserLocale:h,setUserAutosaves:f,setUser:y}=u.actions,_=e=>e[d].currentUser,g=e=>e[d].currentSchema,v=e=>e[d].monacoOptions,b=e=>{var t;return null===(t=e[d].currentUser)||void 0===t?void 0:t.locale},E=e=>{var t;return 3891!==(null===(t=e[d].currentUser.subscription)||void 0===t?void 0:t.ID)},T=u}},t={};function r(o){var a=t[o];if(void 0!==a)return a.exports;var s=t[o]={exports:{}};return e[o].call(s.exports,s,s.exports,r),s.exports}r.m=e,r.amdO={},(()=>{var e=[];r.O=(t,o,a,s)=>{if(!o){var n=1/0;for(c=0;c<e.length;c++){for(var[o,a,s]=e[c],i=!0,l=0;l<o.length;l++)(!1&s||n>=s)&&Object.keys(r.O).every(e=>r.O[e](o[l]))?o.splice(l--,1):(i=!1,s<n&&(n=s));if(i){e.splice(c--,1);var d=a();void 0!==d&&(t=d)}}return t}s=s||0;for(var c=e.length;c>0&&e[c-1][2]>s;c--)e[c]=e[c-1];e[c]=[o,a,s]}})(),r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,a){if(1&a&&(o=this(o)),8&a)return o;if("object"===typeof o&&o){if(4&a&&o.__esModule)return o;if(16&a&&"function"===typeof o.then)return o}var s=Object.create(null);r.r(s);var n={};e=e||[null,t({}),t([]),t(t)];for(var i=2&a&&o;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(e=>n[e]=()=>o[e]);return n.default=()=>o,r.d(s,n),s}})(),r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>6369===e?"static/js/6369.5a01396a.js":3158===e?"static/js/3158.afc3bdd1.js":1532===e?"static/js/1532.5ef52703.js":2022===e?"static/js/2022.b4591f7e.js":5333===e?"static/js/5333.afbfef64.js":1716===e?"static/js/1716.2d977604.js":5215===e?"static/js/5215.a9897c36.js":6438===e?"static/js/6438.78acfa4a.js":"static/js/"+e+"."+{77:"9fcf0459",197:"6d76c202",262:"19eb7dd4",284:"7faba600",290:"b615a90b",369:"05739401",494:"447cdadd",737:"b395c2b2",1241:"e3e56034",1330:"ef930318",1332:"0cb959b4",1377:"2c61acc1",1454:"84d2c0a8",1502:"8a2f6e6b",1510:"e74cce46",1626:"3320a5f3",1640:"27be7178",1729:"a0be903e",1788:"d2bc729b",1872:"43ec6943",1940:"e77ca441",2066:"c62582aa",2114:"e385ca42",2139:"775a0a57",2278:"29663e62",2408:"c5572548",2438:"712814b0",2466:"a3a4151a",2642:"b60a63f6",2827:"36a23b69",2844:"54191136",2854:"10396f08",2917:"a6e819bf",2988:"2496986e",3302:"84e32b62",3411:"311c6ae0",3624:"c30f383e",3711:"102a68ee",3718:"76cec3de",3816:"8f941c79",3914:"72124e24",4425:"47aa4461",4504:"4f3bb0b0",4607:"f88cf27a",4686:"180d7a12",4702:"eb86f466",4813:"b282e8cb",4823:"ddb0914d",4863:"bc61c6b4",5108:"b3eccf14",5261:"8499aaa1",5322:"413feb5a",5365:"cc28300d",5432:"a1089dad",5466:"50904f4e",5653:"016de6aa",5827:"9dcc9443",5862:"faad8f74",5864:"6033ee51",5902:"33cce976",5980:"d73d6b51",6033:"eb6097f0",6135:"3b810692",6418:"59058d0d",6428:"57a30f96",6552:"271c84f5",6618:"feb19bcb",6764:"2a43d6d5",6832:"2e6f8499",6859:"a585514c",7231:"9ca1301e",7288:"efae06f4",7426:"1de30709",7974:"db4992e0",8466:"44341e69",8534:"a012d026",8580:"4f3e7c56",8590:"3e646adc",8682:"b39ae089",8722:"cfde4eb7",8727:"97602af2",8796:"27f3a38e",8839:"75fb5ef2",9169:"a1d48107",9200:"f1b7e119",9487:"6209c75a",9508:"4fb40b12",9716:"e99deec1",9830:"6890d559"}[e]+".js",r.miniCssF=e=>"static/css/"+e+"."+{369:"d740f134",2854:"257728de",8580:"aeb3f0bc",8727:"2f8ba497"}[e]+".chunk.css",r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="email-maker:";r.l=(o,a,s,n)=>{if(e[o])e[o].push(a);else{var i,l;if(void 0!==s)for(var d=document.getElementsByTagName("script"),c=0;c<d.length;c++){var u=d[c];if(u.getAttribute("src")==o||u.getAttribute("data-webpack")==t+s){i=u;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,r.nc&&i.setAttribute("nonce",r.nc),i.setAttribute("data-webpack",t+s),i.src=o),e[o]=[a];var p=(t,r)=>{i.onerror=i.onload=null,clearTimeout(m);var a=e[o];if(delete e[o],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(r)),t)return t(r)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}}})(),r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise((t,o)=>{var a=r.miniCssF(e),s=r.p+a;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var a=(n=r[o]).getAttribute("data-href")||n.getAttribute("href");if("stylesheet"===n.rel&&(a===e||a===t))return n}var s=document.getElementsByTagName("style");for(o=0;o<s.length;o++){var n;if((a=(n=s[o]).getAttribute("data-href"))===e||a===t)return n}})(a,s))return t();((e,t,o,a,s)=>{var n=document.createElement("link");n.setAttribute("data-emailmaker","true"),n.rel="stylesheet",n.type="text/css",r.nc&&(n.nonce=r.nc),n.onerror=n.onload=r=>{if(n.onerror=n.onload=null,"load"===r.type)a();else{var o=r&&r.type,i=r&&r.target&&r.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+i+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=o,l.request=i,n.parentNode&&n.parentNode.removeChild(n),s(l)}},n.href=t,o?o.parentNode.insertBefore(n,o.nextSibling):document.head.appendChild(n)})(e,s,null,t,o)}),t={6835:0};r.f.miniCss=(r,o)=>{t[r]?o.push(t[r]):0!==t[r]&&{369:1,2854:1,8580:1,8727:1}[r]&&o.push(t[r]=e(r).then(()=>{t[r]=0},e=>{throw delete t[r],e}))}}})(),(()=>{var e={6835:0};r.f.j=(t,o)=>{var a=r.o(e,t)?e[t]:void 0;if(0!==a)if(a)o.push(a[2]);else{var s=new Promise((r,o)=>a=e[t]=[r,o]);o.push(a[2]=s);var n=r.p+r.u(t),i=new Error;r.l(n,o=>{if(r.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var s=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;i.message="Loading chunk "+t+" failed.\n("+s+": "+n+")",i.name="ChunkLoadError",i.type=s,i.request=n,a[1](i)}},"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,o)=>{var a,s,[n,i,l]=o,d=0;if(n.some(t=>0!==e[t])){for(a in i)r.o(i,a)&&(r.m[a]=i[a]);if(l)var c=l(r)}for(t&&t(o);d<n.length;d++)s=n[d],r.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return r.O(c)},o=globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r.nc=void 0;var o=r.O(void 0,[1345],()=>r(33943));o=r.O(o)})();
2
+ //# sourceMappingURL=emailmaker_core.d07551cd.js.map