@emailmaker/emailmaker 1.0.57 → 1.0.58

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 (41) hide show
  1. package/README.md +1 -1
  2. package/asset-manifest.json +25 -23
  3. package/emailmaker-esm.js +1 -1
  4. package/emailmaker.d.ts +92 -3
  5. package/emailmaker.js +1 -1
  6. package/iframe/{iframe-eblock.27503aa002097b00f403.html → iframe-eblock.764252e02f79a12d1232.html} +1 -1
  7. package/iframe/{iframe.27503aa002097b00f403.html → iframe.764252e02f79a12d1232.html} +1 -1
  8. package/iframe/js/cssbeautify.js +1 -1
  9. package/iframe/sandbox-eblock.js +1 -1
  10. package/iframe/sandbox.js +1 -1
  11. package/package.json +1 -1
  12. package/plugin.html +1 -1
  13. package/plugin_blocks_test.html +1 -1
  14. package/plugin_default.html +1 -1
  15. package/plugin_idigital.html +1 -1
  16. package/plugin_s.html +1 -1
  17. package/static/css/5211.61fd92f8.css +1 -0
  18. package/static/js/189.367ef47a.js +1 -0
  19. package/static/js/2055.dbc72d9d.js +1 -0
  20. package/static/js/2088.1d8d8417.js +1 -0
  21. package/static/js/2299.bd334036.chunk.js +1 -0
  22. package/static/js/3422.933a6573.js +1 -0
  23. package/static/js/4529.32d541e6.js +1 -0
  24. package/static/js/5641.2fa58425.js +1 -0
  25. package/static/js/78.911fb968.js +1 -0
  26. package/static/js/{8458.fd859f69.js → 8458.34955e6d.js} +1 -1
  27. package/static/js/{8995.b91fd307.js → 8995.1e4e2d7e.js} +1 -1
  28. package/static/js/{emailmaker_core.2055f047.js → emailmaker_core.f3e957c5.js} +1 -1
  29. package/static/js/mocks.e00c8ba6.chunk.js +1 -0
  30. package/translations.pot +130 -130
  31. package/iframe/429.js +0 -1
  32. package/static/css/5211.75ee8dc3.css +0 -1
  33. package/static/js/2055.75cd195b.js +0 -1
  34. package/static/js/2088.1813eba6.js +0 -1
  35. package/static/js/2299.a10e8024.chunk.js +0 -1
  36. package/static/js/3430.23763cc6.js +0 -1
  37. package/static/js/7269.49adf8cd.js +0 -1
  38. package/static/js/78.a4deb390.js +0 -1
  39. package/static/js/898.045789ed.js +0 -1
  40. package/static/js/mocks.90ebae7c.chunk.js +0 -1
  41. /package/static/css/{3430.8008d20d.css → 4529.8008d20d.css} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[2088],{65675:(e,t,i)=>{i.d(t,{Np:()=>n,jA:()=>s,z9:()=>r});var o=i(6193);function r(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===o._.ICodeEditor}function n(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===o._.IDiffEditor}function s(e){return r(e)?e:n(e)?e.getModifiedEditor():null}},68935:(e,t,i)=>{i.d(t,{$z:()=>m,BA:()=>v,DW:()=>_,Hh:()=>u,Qn:()=>y,dO:()=>f,i_:()=>g,nz:()=>l,wt:()=>p});var o=i(69848),r=i(44783),n=i(6019),s=i(85345),d=i(33793),c=i(64709);class l{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new u(this.x-o.Yx.scrollX,this.y-o.Yx.scrollY)}}class u{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new l(this.clientX+o.Yx.scrollX,this.clientY+o.Yx.scrollY)}}class a{constructor(e,t,i,o){this.x=e,this.y=t,this.width=i,this.height=o,this._editorPagePositionBrand=void 0}}class h{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function p(e){const t=o.BK(e);return new a(t.left,t.top,t.width,t.height)}function g(e,t,i){const o=t.width/e.offsetWidth,r=t.height/e.offsetHeight,n=(i.x-t.x)/o,s=(i.y-t.y)/r;return new h(n,s)}class f extends n.P{constructor(e,t,i){super(e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new l(this.posx,this.posy),this.editorPos=p(i),this.relativePos=g(i,this.editorPos,this.pos)}}class m{constructor(e){this._editorViewDomNode=e}_create(e){return new f(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return o.ko(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return o.ko(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return o.ko(e,o.Bx.MOUSE_DOWN,(e=>{t(this._create(e))}))}onPointerDown(e,t){return o.ko(e,o.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onMouseLeave(e,t){return o.ko(e,o.Bx.MOUSE_LEAVE,(e=>{t(this._create(e))}))}onMouseMove(e,t){return o.ko(e,"mousemove",(e=>t(this._create(e))))}}class _{constructor(e){this._editorViewDomNode=e}_create(e){return new f(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return o.ko(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return o.ko(e,o.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onPointerLeave(e,t){return o.ko(e,o.Bx.POINTER_LEAVE,(e=>{t(this._create(e))}))}onPointerMove(e,t){return o.ko(e,"pointermove",(e=>t(this._create(e))))}}class v extends d.jG{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new r._),this._keydownListener=null}startMonitoring(e,t,i,r,n){this._keydownListener=o.b2(document,"keydown",(e=>{e.toKeybinding().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,(e=>{r(new f(e,!0,this._editorViewDomNode))}),(e=>{this._keydownListener.dispose(),n(e)}))}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class y{constructor(e){this._editor=e,this._instanceId=++y._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new s.uC((()=>this.garbageCollect()),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const r=this._counter++;i=new w(t,`dyn-rule-${this._instanceId}-${r}`,o.Cl(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}y._idPool=0;class w{constructor(e,t,i,r){this.key=e,this.className=t,this.properties=r,this._referenceCount=0,this._styleElement=o.li(i),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const o in t){const e=t[o];let r;r="object"===typeof e?`var(${(0,c.Bbc)(e.id)})`:e;i+=`\n\t${C(o)}: ${r};`}return i+="\n}",i}dispose(){this._styleElement.remove()}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function C(e){return e.replace(/(^[A-Z])/,(([e])=>e.toLowerCase())).replace(/([A-Z])/g,(([e])=>`-${e.toLowerCase()}`))}},95713:(e,t,i)=>{i.d(t,{DX:()=>E,E_:()=>b,Fl:()=>x,HW:()=>R,PF:()=>M,aU:()=>T,dS:()=>o,fE:()=>w,gW:()=>O,ih:()=>A,ke:()=>k,ks:()=>S,tc:()=>N,uB:()=>y,xX:()=>P});var o,r=i(84978),n=i(34235),s=i(39946),d=i(63102),c=i(61883),l=i(11615),u=i(52692),a=i(93308),h=i(75664),p=i(3660),g=i(7492),f=i(97980),m=i(35152),_=i(86448),v=i(92798);class y{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?h.M$.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};g.f.registerKeybindingRule(i)}}a.wb.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){u.ZG.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class w extends y{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i){return this._implementations.push({priority:e,name:t,implementation:i}),this._implementations.sort(((e,t)=>t.priority-e.priority)),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e].implementation===i)return void this._implementations.splice(e,1)}}}runCommand(e,t){const i=e.get(v.rr);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const o of this._implementations){const r=o.implementation(e,t);if(r){if(i.trace(`Command '${this.id}' was handled by '${o.name}'.`),"boolean"===typeof r)return;return r}}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class C extends y{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class E extends y{static bindToContribution(e){return class extends E{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,i,o){const r=e(i);r&&this._callback(r,o)}}}runCommand(e,t){const i=e.get(s.T),o=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(o)return o.invokeWithinContext((e=>{if(e.get(h.fN).contextMatchesRules((0,_.UH)(this.precondition)))return this.runEditorCommand(e,o,t)}))}}class S extends E{constructor(e){super(S.convertOptions(e)),this.label=e.label,this.alias=e.alias}static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=u.D8.EditorContext),t.title||(t.title=e.label),t.when=h.M$.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(m.k).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class M extends S{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort(((e,t)=>t[0]-e[0])),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e][1]===t)return void this._implementations.splice(e,1)}}}run(e,t,i){for(const o of this._implementations){const r=o[1](e,t,i);if(r){if("boolean"===typeof r)return;return r}}}}function k(e,t){a.wb.registerCommand(e,(function(e,...i){const o=e.get(p._Y),[r,s]=i;(0,_.j)(n.r.isUri(r)),(0,_.j)(d.y.isIPosition(s));const u=e.get(c.S).getModel(r);if(u){const e=d.y.lift(s);return o.invokeFunction(t,u,e,...i.slice(2))}return e.get(l.b).createModelReference(r).then((e=>new Promise(((r,n)=>{try{r(o.invokeFunction(t,e.object.textEditorModel,d.y.lift(s),i.slice(2)))}catch(c){n(c)}})).finally((()=>{e.dispose()}))))}))}function b(e){return D.INSTANCE.registerEditorCommand(e),e}function x(e){const t=new e;return D.INSTANCE.registerEditorAction(t),t}function O(e){return D.INSTANCE.registerEditorAction(e),e}function P(e){D.INSTANCE.registerEditorAction(e)}function R(e,t){D.INSTANCE.registerEditorContribution(e,t)}!function(e){e.getEditorCommand=function(e){return D.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return D.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return D.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return D.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return D.INSTANCE.getDiffEditorContributions()}}(o||(o={}));class D{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t){this.editorContributions.push({id:e,ctor:t})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function I(e){return e.register(),e}D.INSTANCE=new D,f.O.add("editor.contributions",D.INSTANCE);const T=I(new w({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"1_do",title:r.kg({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:u.D8.CommandPalette,group:"",title:r.kg("undo","Undo"),order:1}]}));I(new C(T,{id:"default:undo",precondition:void 0}));const A=I(new w({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"1_do",title:r.kg({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:u.D8.CommandPalette,group:"",title:r.kg("redo","Redo"),order:1}]}));I(new C(A,{id:"default:redo",precondition:void 0}));const N=I(new w({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:u.D8.MenubarSelectionMenu,group:"1_basic",title:r.kg({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:u.D8.CommandPalette,group:"",title:r.kg("selectAll","Select All"),order:1}]}))},88976:(e,t,i)=>{i.d(t,{C:()=>u});var o=i(16201),r=i(33793),n=i(19736),s=i(87357),d=function(e,t,i,o){var r,n=arguments.length,s=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s},c=function(e,t){return function(i,o){t(i,o,e)}},l=function(e,t,i,o){return new(i||(i=Promise))((function(r,n){function s(e){try{c(o.next(e))}catch(t){n(t)}}function d(e){try{c(o.throw(e))}catch(t){n(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,d)}c((o=o.apply(e,t||[])).next())}))};let u=class extends r.jG{constructor(e){super(),this._themeService=e,this._onCodeEditorAdd=this._register(new o.vl),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new o.vl),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new o.vl),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new o.vl),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new n.w,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const o=e.toString();let r;this._modelProperties.has(o)?r=this._modelProperties.get(o):(r=new Map,this._modelProperties.set(o,r)),r.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i)){return this._modelProperties.get(i).get(t)}}openCodeEditor(e,t,i){return l(this,void 0,void 0,(function*(){for(const o of this._codeEditorOpenHandlers){const r=yield o(e,t,i);if(null!==r)return r}return null}))}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return(0,r.s)(t)}};u=d([c(0,s.Gy)],u)},84258:(e,t,i)=>{i.d(t,{cw:()=>c,jN:()=>d,nu:()=>s});var o=i(3660),r=i(34235),n=i(86448);const s=(0,o.u1)("IWorkspaceEditService");class d{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(c.is(e))return c.lift(e);if(l.is(e))return l.lift(e);throw new Error("Unsupported edit")}))}}class c extends d{constructor(e,t,i=void 0,o){super(o),this.resource=e,this.textEdit=t,this.versionId=i}static is(e){return e instanceof c||(0,n.Gv)(e)&&r.r.isUri(e.resource)&&(0,n.Gv)(e.textEdit)}static lift(e){return e instanceof c?e:new c(e.resource,e.textEdit,e.versionId,e.metadata)}}class l extends d{constructor(e,t,i={},o){super(o),this.oldResource=e,this.newResource=t,this.options=i}static is(e){return e instanceof l||(0,n.Gv)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof l?e:new l(e.oldResource,e.newResource,e.options,e.metadata)}}},39946:(e,t,i)=>{i.d(t,{T:()=>o});const o=(0,i(3660).u1)("codeEditorService")},65167:(e,t,i)=>{i.d(t,{Bc:()=>S,Z6:()=>P});var o=i(85345),r=i(33793),n=i(75010),s=i(62865),d=i(93708),c=i(7117),l=i(30737),u=i(61883),a=i(40905),h=i(22231),p=i(8415),g=i(92798),f=i(39154),m=i(79734),_=i(51209),v=function(e,t,i,o){var r,n=arguments.length,s=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s},y=function(e,t){return function(i,o){t(i,o,e)}},w=function(e,t,i,o){return new(i||(i=Promise))((function(r,n){function s(e){try{c(o.next(e))}catch(t){n(t)}}function d(e){try{c(o.throw(e))}catch(t){n(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,d)}c((o=o.apply(e,t||[])).next())}))};const C=3e5;function E(e,t){const i=e.getModel(t);return!!i&&!i.isTooLargeForSyncing()}let S=class extends r.jG{constructor(e,t,i,o,r){super(),this._modelService=e,this._workerManager=this._register(new k(this._modelService,o)),this._logService=i,this._register(r.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(e,t)=>E(this._modelService,e.uri)?this._workerManager.withWorker().then((t=>t.computeLinks(e.uri))).then((e=>e&&{links:e})):Promise.resolve({links:[]})})),this._register(r.completionProvider.register("*",new M(this._workerManager,t,this._modelService,o)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return E(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then((o=>o.computedUnicodeHighlights(e,t,i)))}computeDiff(e,t,i,o){return this._workerManager.withWorker().then((r=>r.computeDiff(e,t,i,o)))}computeMoreMinimalEdits(e,t){if((0,p.EI)(t)){if(!E(this._modelService,e))return Promise.resolve(t);const i=f.W.create(!0),r=this._workerManager.withWorker().then((i=>i.computeMoreMinimalEdits(e,t)));return r.finally((()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed()))),Promise.race([r,(0,o.wR)(1e3).then((()=>t))])}return Promise.resolve(void 0)}canNavigateValueSet(e){return E(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then((o=>o.navigateValueSet(e,t,i)))}canComputeWordRanges(e){return E(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then((i=>i.computeWordRanges(e,t)))}};S=v([y(0,u.S),y(1,a.U),y(2,g.rr),y(3,c.JZ),y(4,_.u)],S);class M{constructor(e,t,i,o){this.languageConfigurationService=o,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return w(this,void 0,void 0,(function*(){const i=this._configurationService.getValue(e.uri,t,"editor");if(!i.wordBasedSuggestions)return;const o=[];if("currentDocument"===i.wordBasedSuggestionsMode)E(this._modelService,e.uri)&&o.push(e.uri);else for(const t of this._modelService.getModels())E(this._modelService,t.uri)&&(t===e?o.unshift(t.uri):"allDocuments"!==i.wordBasedSuggestionsMode&&t.getLanguageId()!==e.getLanguageId()||o.push(t.uri));if(0===o.length)return;const r=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),n=e.getWordAtPosition(t),s=n?new d.Q(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn):d.Q.fromPositions(t),c=s.setEndPosition(t.lineNumber,t.column),l=yield this._workerManager.withWorker(),u=yield l.textualSuggest(o,null===n||void 0===n?void 0:n.word,r);return u?{duration:u.duration,suggestions:u.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:c,replace:s}})))}:void 0}))}}class k extends r.jG{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime();this._register(new o.vb).cancelAndSet((()=>this._checkStopIdleWorker()),Math.round(15e4)),this._register(this._modelService.onModelRemoved((e=>this._checkStopEmptyWorker())))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;(new Date).getTime()-this._lastWorkerUsedTime>C&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new P(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class b extends r.jG{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const e=new o.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(3e4)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,r.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){const e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const i in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[i]>6e4&&t.push(i)}for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i)return;if(!t&&i.isTooLargeForSyncing())return;const o=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const n=new r.Cm;n.add(i.onDidChangeContent((e=>{this._proxy.acceptModelChanged(o.toString(),e)}))),n.add(i.onWillDispose((()=>{this._stopModelSync(o)}))),n.add((0,r.s)((()=>{this._proxy.acceptRemovedModel(o)}))),this._syncedModels[o]=n}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,r.AS)(t)}}class x{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class O{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class P extends r.jG{constructor(e,t,i,o){super(),this.languageConfigurationService=o,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new s.K(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new n.gk(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new O(this)))}catch(e){(0,n.IR)(e),this._worker=new x(new l.Wg(new O(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,(e=>((0,n.IR)(e),this._worker=new x(new l.Wg(new O(this),null)),this._getOrCreateWorker().getProxyObject())))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new b(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return w(this,void 0,void 0,(function*(){return this._disposed?Promise.reject((0,m.aD)()):this._getProxy().then((i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i)))}))}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then((o=>o.computeUnicodeHighlights(e.toString(),t,i)))}computeDiff(e,t,i,o){return this._withSyncedResources([e,t],!0).then((r=>r.computeDiff(e.toString(),t.toString(),i,o)))}computeMoreMinimalEdits(e,t){return this._withSyncedResources([e]).then((i=>i.computeMoreMinimalEdits(e.toString(),t)))}computeLinks(e){return this._withSyncedResources([e]).then((t=>t.computeLinks(e.toString())))}textualSuggest(e,t,i){return w(this,void 0,void 0,(function*(){const o=yield this._withSyncedResources(e),r=i.source,n=(0,h.RH)(i);return o.textualSuggest(e.map((e=>e.toString())),t,r,n)}))}computeWordRanges(e,t){return this._withSyncedResources([e]).then((i=>{const o=this._modelService.getModel(e);if(!o)return Promise.resolve(null);const r=this.languageConfigurationService.getLanguageConfiguration(o.getLanguageId()).getWordDefinition(),n=r.source,s=(0,h.RH)(r);return i.computeWordRanges(e.toString(),t,n,s)}))}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then((o=>{const r=this._modelService.getModel(e);if(!r)return null;const n=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId()).getWordDefinition(),s=n.source,d=(0,h.RH)(n);return o.navigateValueSet(e.toString(),t,i,s,d)}))}dispose(){super.dispose(),this._disposed=!0}}},55572:(e,t,i)=>{var o=i(25879),r=i(95713),n=function(e,t,i,o){var r,n=arguments.length,s=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s},s=function(e,t){return function(i,o){t(i,o,e)}};let d=class{constructor(e,t){}dispose(){}};d.ID="editor.contrib.markerDecorations",d=n([s(1,o.A)],d),(0,r.HW)(d.ID,d)},69587:(e,t,i)=>{i.d(t,{J:()=>w});var o=i(69848),r=i(99826),n=i(19736),s=i(19459),d=i(61535),c=i(15263),l=i(68040),u=i(34235),a=i(39946),h=i(93308),p=i(67676),g=i(49172),f=function(e,t,i,o){var r,n=arguments.length,s=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s},m=function(e,t){return function(i,o){t(i,o,e)}},_=function(e,t,i,o){return new(i||(i=Promise))((function(r,n){function s(e){try{c(o.next(e))}catch(t){n(t)}}function d(e){try{c(o.throw(e))}catch(t){n(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,d)}c((o=o.apply(e,t||[])).next())}))};let v=class{constructor(e){this._commandService=e}open(e,t){return _(this,void 0,void 0,(function*(){if(!(0,g.v$)(e,c.ny.command))return!1;if(!(null===t||void 0===t?void 0:t.allowCommands))return!0;"string"===typeof e&&(e=u.r.parse(e));let i=[];try{i=(0,d.q)(decodeURIComponent(e.query))}catch(o){try{i=(0,d.q)(e.query)}catch(r){}}return Array.isArray(i)||(i=[i]),yield this._commandService.executeCommand(e.path,...i),!0}))}};v=f([m(0,h.wT)],v);let y=class{constructor(e){this._editorService=e}open(e,t){return _(this,void 0,void 0,(function*(){"string"===typeof e&&(e=u.r.parse(e));const{selection:i,uri:o}=(0,g.ew)(e);return(e=o).scheme===c.ny.file&&(e=(0,l.Fd)(e)),yield this._editorService.openCodeEditor({resource:e,options:Object.assign({selection:i,source:(null===t||void 0===t?void 0:t.fromUserGesture)?p.$.USER:p.$.API},null===t||void 0===t?void 0:t.editorOptions)},this._editorService.getFocusedCodeEditor(),null===t||void 0===t?void 0:t.openToSide),!0}))}};y=f([m(0,a.T)],y);let w=class{constructor(e,t){this._openers=new n.w,this._validators=new n.w,this._resolvers=new n.w,this._resolvedUriTargets=new s.fT((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new n.w,this._defaultExternalOpener={openExternal:e=>_(this,void 0,void 0,(function*(){return(0,g.fV)(e,c.ny.http,c.ny.https)?o.jh(e):window.location.href=e,!0}))},this._openers.push({open:(e,t)=>_(this,void 0,void 0,(function*(){return!(!(null===t||void 0===t?void 0:t.openExternal)&&!(0,g.fV)(e,c.ny.mailto,c.ny.http,c.ny.https,c.ny.vsls))&&(yield this._doOpenExternal(e,t),!0)}))}),this._openers.push(new v(t)),this._openers.push(new y(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}registerValidator(e){return{dispose:this._validators.push(e)}}registerExternalUriResolver(e){return{dispose:this._resolvers.push(e)}}setDefaultExternalOpener(e){this._defaultExternalOpener=e}registerExternalOpener(e){return{dispose:this._externalOpeners.push(e)}}open(e,t){var i;return _(this,void 0,void 0,(function*(){const o="string"===typeof e?u.r.parse(e):e,r=null!==(i=this._resolvedUriTargets.get(o))&&void 0!==i?i:e;for(const e of this._validators)if(!(yield e.shouldOpen(r)))return!1;for(const i of this._openers){if(yield i.open(e,t))return!0}return!1}))}resolveExternalUri(e,t){return _(this,void 0,void 0,(function*(){for(const o of this._resolvers)try{const i=yield o.resolveExternalUri(e,t);if(i)return this._resolvedUriTargets.has(i.resolved)||this._resolvedUriTargets.set(i.resolved,e),i}catch(i){}throw new Error("Could not resolve external URI: "+e.toString())}))}_doOpenExternal(e,t){return _(this,void 0,void 0,(function*(){const i="string"===typeof e?u.r.parse(e):e;let o,n;try{o=(yield this.resolveExternalUri(i,t)).resolved}catch(s){o=i}if(n="string"===typeof e&&i.toString()===o.toString()?e:encodeURI(o.toString(!0)),null===t||void 0===t?void 0:t.allowContributedOpeners){const e="string"===typeof(null===t||void 0===t?void 0:t.allowContributedOpeners)?null===t||void 0===t?void 0:t.allowContributedOpeners:void 0;for(const t of this._externalOpeners){if(yield t.openExternal(n,{sourceUri:i,preferredOpenerId:e},r.X.None))return!0}}return this._defaultExternalOpener.openExternal(n,{sourceUri:i},r.X.None)}))}dispose(){this._validators.clear()}};w=f([m(0,a.T),m(1,h.wT)],w)},18189:(e,t,i)=>{i.d(t,{V:()=>n});var o=i(65167),r=i(86448);function n(e,t,i){return new s(e,t,i)}class s extends o.Z6{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?r.V0(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.fmr(t,i),o=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},r={};for(const e of t)r[e]=o(e,i);return r}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then((e=>this.getProxy()))}}},37037:(e,t,i)=>{i.d(t,{D:()=>o});class o{constructor(e,t,i){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=i}static capture(e){let t=null,i=0;if(0!==e.getScrollTop()){const o=e.getVisibleRanges();if(o.length>0){t=o[0].getStartPosition();const r=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-r}}return new o(t,i,e.getPosition())}restore(e){if(this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[2299],{37444:(e,t,n)=>{n.d(t,{F:()=>T,y:()=>$});var s=n(90536),i=n(31052),r=n(53369),c=n(39990),o=n(83351),a=n(65119),d=n(84568),u=n(93563),l=n(86739),f=n(53200),p=n(63531),g=n(55701),m=n(47036),h=n(94381),y=n(18777),v=n(141),j=n(1779),w=n(40869),I=n(56920),C=n(76793),b=n(843),E=n(35317),S=n(95679),x=n(88528),O=n(62689),M=n(46312),P=n(84612),A=n(58819),k=n(15865),Q=n(62677),D=n(48426),N=n(4115);const T=[c.Q2,o.OV,j.S,v.k,a.yR,d.Nq,u.kE,l.GY,f.B,g.VM,m.f,h.Ad,y.Jg,w.M,I.F,C.KA,b.Sd,E.y,S.CL,x.tO,O.vx,M.Z8,p.yH,P.Zs,A.Uu,k.So,Q.C,D.N,N.U8];function $(){const e=(0,s.configureStore)({reducer:r.A,middleware:e=>e({serializableCheck:!1}).concat(T.map((e=>e.middleware)))});return(0,i.$k)(e.dispatch),e}},90070:(e,t,n)=>{n.d(t,{W0:()=>o,p6:()=>r});var s=n(33288);const i=s.di.createIdentifier(),r=()=>s.di.useInstance(i);class c{constructor(){this._storage=Object.create(null)}get(e){const t=this._storage[e];return t&&(!t.expires||t.expires<Date.now())?t.value:""}set(e,t,n){this._storage[e]={value:t,expires:n.expires?1e3*n.expires+Date.now():void 0}}remove(e){delete this._storage[e]}}const o=e=>s.di.inject(e,i,new c)},33288:(e,t,n)=>{n.d(t,{di:()=>c});var s=n(95152),i=n(41664),r=n(23580);const c={getContainer:r.My,createIdentifier:i.Q,reducer:r.Ff,reducerPath:r.IP,getInstance:function(e,t){return(e instanceof s.m?e:(0,r.My)(e)).getInstance(t)},getInstanceAsync:function(e,t){return(e instanceof s.m?e:(0,r.My)(e)).getInstanceAsync(t)},getOrCreateInstance:function(e,t,n){return(e instanceof s.m?e:(0,r.My)(e)).getOrCreateInstance(t,n)},inject:function(e,t,n,s){return(0,r.My)(e).inject(t,n)},addService:function(e,t,n){return(0,r.My)(e).addService(t,n)},getServices:function(e,t){return(0,r.My)(e).getServices(t)},useInject:r.lg,useInstance:r.Nj,useInstanceAsync:r.rl,useServices:r.A$}},23580:(e,t,n)=>{n.d(t,{A$:()=>g,Ff:()=>d,IP:()=>a,My:()=>u,Nj:()=>f,if:()=>o,lg:()=>l,rl:()=>p});var s=n(92810),i=n(45934),r=n(82375),c=n(41664);const o="INJECTION",a=o,d=(e,t)=>{if(!e){const e=r.Q.createChild(),t=(0,c.Q)();return r.Q.inject(t,e),t}return e};function u(e){const t=e.getState()[o];return t&&r.Q.getInstance(t)}function l(){const e=u((0,i.Pj)());return function(t,n){e.inject(t,n)}}function f(e){return u((0,i.Pj)()).getInstance(e)}function p(e){const[t,n]=(0,s.useState)(),r=(0,i.Pj)(),c=(0,s.useRef)(Promise.resolve()),o=u(r);return(0,s.useEffect)((()=>{const t=c.current=c.current.then((()=>o.getInstanceAsync(e))).then((e=>{t===c.current&&n(e)}),(e=>console.log(e)))}),[n,e,r,o]),t}function g(e){return u((0,i.Pj)()).getServices(e)}},93982:(e,t,n)=>{n.d(t,{Zc:()=>d,_q:()=>u,cZ:()=>o,dB:()=>a,ml:()=>l});var s=n(45934),i=n(41664),r=n(23580),c=n(55654);function o(e){return(0,i.Q)(e)}function a(e,t){return(0,r.My)(e).getOrCreateInstance(t,(()=>new c.lt))}function d(e,t){return(0,r.My)(e).getOrCreateInstance(t,(()=>new c.lt)).event}function u(e){return l(e).event}function l(e){return a((0,s.Pj)(),e)}},39217:(e,t,n)=>{n.d(t,{CJ:()=>m,eT:()=>a,ft:()=>g,jY:()=>l,mg:()=>u,no:()=>p,qT:()=>c});var s=n(14315),i=n(44141),r=n(33288);function c(e){for(;e.endsWith("/");)e=e.slice(0,e.length-1);return`${e}/wp-json`}const o={baseUrl:"https://app.emailmaker.ru/api//wp-json",baseApiParams:{secure:!0,credentials:"same-origin",format:"json"},securityWorker:()=>({credentials:"same-origin"})};o.baseUrl=c("https://app.emailmaker.ru/api/");const a=r.di.createIdentifier();function d(e){return r.di.getOrCreateInstance(e,a,(()=>function(e=o){const t=new Map;return{create(n){const i=new s.RQ({...e,...n});return t.set(i,n),i},getOptions:()=>e,setOptions(n){e=n;for(const[s,i]of t)Object.assign(s,{...e,...i})}}}()))}function u(e,t={}){return d(e).create(t)}const l=r.di.createIdentifier(),f=r.di.createIdentifier(),p=r.di.createIdentifier(),g=e=>{var t;t=e,r.di.inject(t,p,{execute:async(e,n={})=>{const s=r.di.getServices(t,l),i=new Request(e,n);for(const t of s)await t.execute(i);let c=await fetch(i);const o=r.di.getServices(t,f);for(const t of o)c=await t.execute(c);return c}});const n=r.di.getInstance(e,p);r.di.inject(e,i.Pz,u(e,{customFetch:(null===n||void 0===n?void 0:n.execute)||fetch}))};let m;!function(e){const t="https://racs.rest/v3";e.post=function(e,n){const s={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)};return fetch(`${t}?resource=${e}&dataset=${document.location.hostname}`,s)},e.getAll=async function(e,n=0){const s={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:`{"filter":{},"limit":${n}}`},i=await fetch(`${t}/get?resource=${e}&dataset=${document.location.hostname}`,s);return await i.json()}}(m||(m={}))},15230:(e,t,n)=>{n.d(t,{Cd:()=>o,Lz:()=>c,ax:()=>a,f5:()=>i,sZ:()=>r});var s=n(41664);const i="Not implemented in plugin",r=(0,s.Q)(),c=(0,s.Q)(),o=(0,s.Q)(),a=(0,s.Q)();(0,s.Q)(),(0,s.Q)()},12299:(e,t,n)=>{n.r(t),n.d(t,{init:()=>E});var s=n(39217),i=n(90070),r=n(37444),c=n(77509),o=n(33288),a=n(15230),d=n(14386),u=n(8671),l=n(55853),f=n(19209),p=n(33746),g=n(25565),m=n(62410),h=n(63772),y=n(37e3),v=n(1383),j=n(1281),w=n(85163),I=n(93982),C=n(13522);w.EW.isPlugin=!0;const b=(0,d.E)([u.e,l.E,f.F,v.h,p.F,j.Z,g.i,m.r,h.Z,y.JR]);async function E(e){const t=(0,r.y)(),n=new c.j,d=await(0,y.qF)(e.element,n),u=y.sC.get(d);if(u){const t=await u;if(t.getElement()===d)return await t.reset(e)}const l=async function(){if(o.di.inject(t,a.ax,t),e.standaloneKey){o.di.inject(t,g.E,e.standaloneKey);const s=(0,I.Zc)(t,C.A.FILE_PROXY_EVENT_ID);n.addDisposable(s((async({url:e})=>(await fetch(e)).blob()),Number.MIN_VALUE))}o.di.inject(t,a.Lz,n),(0,i.W0)(t),(0,s.ft)(t);const r=await b(t);return await r.setOptions(e),o.di.inject(t,a.Cd,r),r.instance}();return d&&y.sC.set(d,l),l}},37e3:(e,t,n)=>{n.d(t,{JR:()=>y,qF:()=>v,sC:()=>j});n(57650),n(57964);var s=n(26254),i=n(89949),r=n(92810),c=n(97716),o=n(45934),a=n(64617),d=n(82212),u=n(32269),l=n(14386),f=n(893),p=n(33288),g=n(15230),m=n(17126),h=n(70082);const y=(0,l.l)((e=>{let t=null;const n=p.di.getInstance(e,g.Lz);let l;return{instance:{getElement:()=>t},async setOptions(y){let w=await v(y.element,n);const{instance:I}=p.di.getInstance(e,g.Cd)||{};if(t!==w){if(t&&j.delete(t),!(w&&j.has(w)&&I)){if(l&&l.dispose(),t=w,l=n.addDisposable(new u.jG),w)j.set(w,I);else{const e=document.createElement("div");e.style.position="absolute",e.style.left="-10000px",document.body.appendChild(e);const t=()=>{e.isConnected&&document.body.removeChild(e)};l.addDispose(t),w=e}return(t=>new Promise(((n,u)=>{var p;if(null!==(p=l)&&void 0!==p&&p.isDisposed())n();else{const u=(0,c.H)(t);u.render((0,h.jsx)(r.StrictMode,{children:(0,h.jsx)(o.Kq,{store:e,children:(0,h.jsx)(i.R,{onLoad:n,children:(0,h.jsx)(m.or.Provider,{value:{element:t},children:(0,h.jsx)(a.fS,{children:(0,h.jsx)(d.Y,{children:(0,h.jsx)(f.m,{children:(0,h.jsx)(s.A,{})})})})})})})})),l.addDispose(n),l.addDispose((()=>u.unmount()))}})))(w)}console.log("multiple init call on single HTMLELEMENT")}},dispose(){var e;null===(e=l)||void 0===e||e.dispose()}}}));function v(e,t){if("undefined"!==typeof e){if("string"===typeof e){if(e=document.querySelector(e))return e;const n=t.addDisposable(new u.jG);return new Promise(((t,s)=>{const i=new MutationObserver((()=>{(e=document.querySelector(e))&&(n.dispose(),t(e))}));i.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),n.addDisposable({dispose:()=>i.disconnect()})}))}return e}return e}const j=new Map},25565:(e,t,n)=>{n.d(t,{E:()=>u,i:()=>l});var s=n(20116),i=n(55084),r=n(14386),c=n(97001),o=n(44376),a=n(91738),d=n(33288);const u=d.di.createIdentifier(),l=(0,r.l)((async e=>{const t=d.di.getInstance(e,u);if(t){const s=(await n.e(9640).then(n.bind(n,76794))).injectStandaloneMocks;await s(e,t)}(0,s.BD)(e,i.A);const r=new c.P(e),l=new o.y(e);return{async setOptions(e){l.setOptions(e),await r.show(e.content)},instance:{...l.get(),show:e=>r.show(e),save:()=>r.save(),getEmail:()=>r.getEmail(),getBlocks:()=>r.getBlocks(),getEmailRevisions:()=>r.getEmailRevisions(),getComments:()=>r.getComments(),compileEmail:async e=>e?(0,a.AU)(e):await r.compileEmail(),getCodeErrors:()=>r.getCodeErrors()}}}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[3430],{28316:(e,t,i)=>{i.d(t,{Kp:()=>s,Sb:()=>o,_1:()=>n});const s="SAVE",n="SHOW",o="NOTIFY"},85163:(e,t,i)=>{i.d(t,{A9:()=>l,BD:()=>pe,Bv:()=>k,CJ:()=>p,EW:()=>r,F3:()=>A,F5:()=>n,G$:()=>z,IE:()=>q,IJ:()=>g,JE:()=>$,Jy:()=>G,KI:()=>se,N7:()=>F,ND:()=>le,QV:()=>me,Qz:()=>Q,Rn:()=>Ee,Ru:()=>D,St:()=>K,T:()=>m,Tm:()=>J,UW:()=>_,Ug:()=>ue,V0:()=>d,VG:()=>v,Vp:()=>ce,Vv:()=>N,WU:()=>P,Y$:()=>ee,YY:()=>_e,_P:()=>c,aO:()=>Y,bV:()=>I,e3:()=>ge,eA:()=>Z,eG:()=>ie,ff:()=>o,gY:()=>W,hc:()=>j,iU:()=>oe,iV:()=>H,iW:()=>w,jg:()=>he,lx:()=>f,m3:()=>V,mU:()=>ae,mX:()=>C,nA:()=>x,nd:()=>h,oy:()=>a,p5:()=>ne,rW:()=>T,rY:()=>U,rb:()=>M,rl:()=>te,ti:()=>S,vd:()=>E,wF:()=>re,xz:()=>L,y2:()=>u,yI:()=>y,yo:()=>X,yy:()=>b,z$:()=>B,zh:()=>de,zx:()=>R});var s=i(19378);const n="LOADING",o="ERROR",a="useblocks",r={isPlugin:!1},c={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"},_="deleted",u="all",p="not all",m="light",h="dark",g="system",E="(prefers-color-scheme: light)",A="(prefers-color-scheme: dark)",v="#1890ff",f={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",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"};let O;!function(e){e[e.Amp=0]="Amp",e[e.HTML=1]="HTML",e[e.Everywhere=2]="Everywhere"}(O||(O={}));const D={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_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_SUBJECT_UPDATE:(0,s.Qm)("application_subject_update"),APPLICATION_PREHEADER_UPDATE:(0,s.Qm)("application_preheader_update"),APPLICATION_DOMPARSER_ERROR:(0,s.Qm)("application_domparser_error"),APPLICATION_UPDATE_ENTITY:(0,s.Qm)("application_update_entity"),APPLICATION_IFRAME_DRAG_EVENT:(0,s.Qm)("application_iframe_drag_event"),APPLICATION_HAS_AMP:(0,s.Qm)("application_has_amp"),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,s.Qm)("SANDBOX_READY"),SANDBOX_FLOATBLOCK_WRAP:"sandbox_floatblock_wrap",SANDBOX_FLOATBLOCK_DIR:"sandbox_floatblock_dir",SANDBOX_SUBJECT_UPDATE:(0,s.Qm)("sandbox_subject_update"),SANDBOX_PREHEADER_UPDATE:(0,s.Qm)("sandbox_preheader_update"),SANDBOX_DRAG_EVENT:(0,s.Qm)("sandbox_drag_event"),SANDBOX_ADD_MERGETAG:(0,s.Qm)("sandbox_add_mergetag"),SANDBOX_TRANSLATIONS:(0,s.Qm)("sandbox_send_translations"),SANDBOX_SET_THEME_VARIABLES:(0,s.Qm)("sandbox_send_theme_variables"),SANDBOX_SET_ENTITY:(0,s.Qm)("sandbox_set_entity"),SANDBOX_INIT_START:(0,s.Qm)("sandbox_init_start"),SANDBOX_INITED:(0,s.Qm)("sandbox_inited"),SANDBOX_UPDATE_ENTITY:(0,s.Qm)("sandbox_update_entity"),RELOAD:(0,s.Qm)("reload"),SANDBOX_IS_EMAIL_EMPTY:(0,s.Qm)("sandbox_is_email_empty")},T={language:"html",detectIndentation:!1,wordWrap:"on",wrappingIndent:"same",smoothScrolling:!0,automaticLayout:!0,tabSize:2,indentSize:2};let I;!function(e){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"}(I||(I={}));const S={ALL:"All",STANDARD:"Standard",PROJECT:"Project"},L="Appearance",C="Structure",b="Settings",y="Properties",N="History",M="Disabled_tab",P="Edit selected element",w="UTM parameters",R="Edit",B="AiChat",k="Build",U="Styles",j="Discuss",x="Blocks",G="Atoms",F="Optimise",H={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}},X="Owner",K="Administrator",V="User",z="The invitation has been sent",W="Assign the project owner",Q="Change role to Administrator",Y="Change role to User",Z="Remove member",$="Revoke the invite",q="block",J="email",ee="cards",te="list",ie="pending",se="d41d8",ne="1865",oe=127017,ae=24,re={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},ce="desktop",le="mobile",de="emailtags",_e="blocktags",ue="all_folders",pe={text:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif"],fontSize:16,fontSizeDim:"px",lineHeight:21,lineHeightDim:"px",color:"#5a5a5a",textAlign:"left",paddingBottom:10,paddingBottomDim:"px"},headings:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif"],fontSize:24,fontSizeDim:"px",lineHeight:32,lineHeightDim:"px",color:"#333333",textAlign:"left",paddingTop:20,paddingTopDim:"px",paddingBottom:20,paddingBottomDim:"px",letterSpacing:0,letterSpacingDim:"px",bold:!0,italic:!1},links:{color:"#1C52DC",underline:!0},buttons:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif"],fontSize:16,fontSizeDim:"px",letterSpacing:0,letterSpacingDim:"px",color:"#FFFFFF",bold:!1,italic:!1,backgroundColor:"#1C52DC",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:""},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}}},me=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"),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_SECTION:e("Section"),TINYMCE_CHANGECASE:e("Case Change"),TINYMCE_UPPERCASE:e("Uppercase"),TINYMCE_LOWERCASE:e("Lowercase"),PASTE_HERE:e("Drop here")}),he={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"},ge={maker:"https://ai-mail.emcdn.ru",blocks:"https://ai-mail.useblocks.io"},Ee={maker:"https://app.emailmaker.ru/api",blocks:"https://app.useblocks.io/api"}},19378:(e,t,i)=>{function s(e){return e}i.d(t,{Qm:()=>s,bg:()=>c});const n="INIT_MESSAGE";function o(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}class a{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 r extends a{constructor(...e){super(...e),this._listeners=Object.create(null),this.addListenerAsync=(e,t,i=0,s)=>{const n=this._listeners[e]||(this._listeners[e]=[]);s&&"function"===typeof t&&(t=t.bind(s));const o=n.findIndex((([e,t])=>i<=t)),a=[t,i];return this.isDisposed()||n.splice(o>=0?o:n.length,0,a),{dispose(){const e=n.indexOf(a);e>=0&&n.splice(e,1)}}},this.fireAsync=(e,t)=>{if(!this.isDisposed()){const i=this._listeners[e]||(this._listeners[e]=[]);let s;for(let e=0;e<i.length;e++){let t=i[e][0],n=s;s=e=>t(e,n)}if(s)return s(t)}},this.addListener=(e,t,i=0)=>this.addListenerAsync(e,((e,i)=>{try{t(e)}catch(s){console.log(s)}return i&&i(e)}),i)}}class c extends a{constructor(e,t){super(),this._singleton=t,this._target=void 0,this._guid=o(),this._targetGuid="",this._emitter=this.addDisposable(new r),this._onReceiveMessage=e=>{const t=e.data;if(i=t,s=this._guid,i&&"object"===typeof i&&i.guid===s||this._singleton&&function(e,t){return e&&"object"===typeof e&&e.operationId===t}(t,n)){const i=this._emitter.fireAsync(t.operationId||"",void 0===t.operationId?e:t.data),s=t.result,n=t.error;s&&n&&Promise.resolve(i).then((e=>this._sendMessage(s,e)),(e=>this._sendMessage(n,e)))}var i,s},window.addEventListener("message",this._onReceiveMessage),this.addListener(n,(e=>{this._targetGuid!==e&&(this._targetGuid=e,this.send(n,this._guid))})),e&&this.setTarget(e)}setTarget(e){this._target!==e&&(this._target=e,this._targetGuid="",e&&e.postMessage({operationId:n,data:this._guid},"*"))}getTarget(){return this._target}get target(){return this._target}_sendMessage(e,t,i=!0){if(!i&&!this.isInited())return;const s=this.addDisposable(this.onInit(((i,n)=>{const o=e?{operationId:e,data:t}:t;i.postMessage({...o,guid:n},"*"),s.dispose()})))}send(e,t,i){return"string"===typeof e?this._sendMessage(e,t,i):this._sendMessage("",e,t)}sendAsync(e,t,i=!0){if(!i&&!this.isInited())return Promise.resolve();const s=o(),n=o();return new Promise(((i,o)=>{const r=this.addDisposable(new a);r.addDisposable(this.onInit(((a,c)=>{a.postMessage({operationId:e,data:t,guid:c,result:s,error:n},"*"),r.addDisposable(this._onMessage(s,(e=>{i(e),r.dispose()}))),r.addDisposable(this._onMessage(n,(e=>{o(e),r.dispose()})))})))}))}_onMessage(e,t,i=0){return this._emitter.addListener(e,t,i)}addListener(e,t,i){return t?this._onMessage(e,t,i):this._onMessage("",e)}addListenerAsyncPipe(e,t,i=0){return this._emitter.addListenerAsync(e,t,i)}addListenerAsync(e,t,i=0){return this._emitter.addListenerAsync(e,(async(e,i)=>{const s=await t(e);return i?i(e):s}),i)}isInited(){return!!this._targetGuid}get inited(){return!!this._targetGuid}onInit(e,t=!0,i=0){const s=this.addDisposable(new a);return this._targetGuid&&this._target?t&&Promise.resolve().then((()=>{this._targetGuid&&this._target?e(this._target,this._targetGuid):s.addDisposable(this.onInit(e,t,i))})):s.addDisposable(this._onMessage(n,(()=>{e(this._target,this._targetGuid)}),i)),s}dispose(){window.removeEventListener("message",this._onReceiveMessage),super.dispose()}}},13329:(e,t,i)=>{i.d(t,{D3:()=>_,RS:()=>d});var s=i(45934),n=i(92810),o=i(41664),a=i(23397),r=i(23580),c=i(95152);const l=(0,o.Q)();function d(e,t,i){e instanceof c.m||(e=(0,r.My)(e));e.getOrCreateInstance(l,(()=>new a.v)).fire({id:t,payload:i})}const _=(e,t)=>{const i=function(e){return(0,r.My)(e).getOrCreateInstance(l,(()=>new a.v)).addEventListener}((0,s.Pj)());(0,n.useEffect)((()=>{const s=i((({id:i,payload:s})=>{i===e&&t(s)}));return()=>s.dispose()}),[i,e,t])}},95152:(e,t,i)=>{i.d(t,{m:()=>a});var s=i(23397),n=i(77509);function o(e){return`service_container_${e}`}class a extends n.j{constructor(e){super(),this._parent=e,this._injections=Object.create(null),this._emitter=this.addDisposable(new s.v)}inject(e,t,i){if("function"===typeof t){let s=this._injections[e],n="function"===typeof s?s():s;const o=this._injections[e]=()=>(n=t(this,n),n);i&&o()}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,i=new n.j){return i.addDisposable(this._emitter.addEventListener((s=>{e===s&&(i.dispose(),t(this.getInstance(s)))}))),this._parent&&i.addDisposable(this._parent._onInject(e,t,i)),this.addDisposable(i),i}getInstance(e){const t=this._find(e);if("function"===typeof t)return t()}getOrCreateInstance(e,t){const i=this._find(e);if("function"===typeof i)return i();{const i=t(this);return this.inject(e,i),i}}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 i=o(e);this.inject(i,((e,i=[])=>i.indexOf(t)<0?[...i,t]:i));const s=new n.j;return s.addDispose((()=>{this.inject(i,((e,i=[])=>i.filter((e=>e!==t))))})),s}getServices(e){var t;const i=o(e);return[...this.getInstance(i)||[],...(null===(t=this._parent)||void 0===t?void 0:t.getServices(e))||[]]}createChild(){return new a(this)}dispose(){this._injections=Object.create(null)}}},45695:(e,t,i)=>{i.d(t,{K9:()=>u,QC:()=>d,XW:()=>_,ur:()=>l});var s=i(19378),n=i(33288),o=i(45934),a=i(41664),r=i(92810);const c=(0,a.Q)("MESSAGE_SERVICE");function l(){const e=d();return(0,r.useCallback)((t=>{e.setTarget(t instanceof Element?t.contentWindow:t)}),[e])}function d(){const e=(0,o.Pj)();return(0,r.useMemo)((()=>function(e){return n.di.getOrCreateInstance(e,c,(()=>new s.bg))}(e)),[e])}function _(){const e=d();return(0,r.useCallback)((function(t){e.send(t)}),[e])}function u(){const e=d();return(0,r.useCallback)((function(t,i){e.send(t,i)}),[e])}},23397:(e,t,i)=>{i.d(t,{v:()=>n});var s=i(77509);class n extends s.j{constructor(e){super(),this._options=e,this._listeners=[],this.fire=e=>{if(!this.isDisposed()){let t;const i=[...this._listeners];for(const s of i){if(!1===t)return!1;t=t instanceof Promise?t.then((e=>!1!==e&&!this.isDisposed()&&s(e))).catch((e=>console.log(e))):s(e)}return t}},this.addEventListener=e=>{const t=this._listeners;var i;(t.push(e),1===t.length)&&((null===(i=this._options)||void 0===i?void 0:i.onFirstListenerAdd)&&this._options.onFirstListenerAdd());return{dispose:()=>{const i=t.indexOf(e);var s;i>=0&&(t.splice(i),t.length||(null===(s=this._options)||void 0===s?void 0:s.onFirstListenerAdd)&&this._options.onLastListenerRemove())}}},this.event=this.addEventListener}}let o;!function(e){function t(e){let t;const i=new n({onFirstListenerAdd(){t=e(i.fire)},onLastListenerRemove(){t.dispose()}});return i.event}e.snapshot=t,e.filter=function(e,i){return t((t=>e((e=>i(e)&&t(e)))))},e.map=function(e,i){return t((t=>e((e=>t(i(e))))))}}(o||(o={}))},32269:(e,t,i)=>{i.d(t,{Cb:()=>K,Cl:()=>m,DI:()=>w,Dx:()=>M,EU:()=>R,HT:()=>z,Hy:()=>W,Id:()=>p,Np:()=>N,Qi:()=>G,Tr:()=>Q,X7:()=>H,XZ:()=>j,Yq:()=>h,Z1:()=>X,_9:()=>x,_q:()=>V,au:()=>P,d_:()=>B,el:()=>O,ez:()=>D,fq:()=>g,gq:()=>y,i0:()=>k,iV:()=>U,jG:()=>l.j,ln:()=>Y,p6:()=>I,sh:()=>F,vl:()=>d.v,wB:()=>S});var s=i(74267),n=i(92810),o=i(85163),a=i(1741),r=i.n(a),c=i(45695),l=i(77509),d=i(23397),_=i(71210),u=i(70082);const p=e=>{Object.keys(o.A9).forEach((t=>{"onboarding_success"!==e.get(o.A9[t])&&e.remove(o.A9[t])}))};function m(e){const t=(0,s.A)(e);return isNaN(t)?new Date(e):t}const h=(e,t,i=!1)=>{Date;const s=new Date,n=e.getDate()===s.getDate()&&e.getMonth()===s.getMonth()&&e.getFullYear()===s.getFullYear();if(i&&n){const i=Math.floor((s-e)/1e3),n=Math.floor(i/60),o=Math.floor(n/60);if(i<60)return t("Just now");if(o>0){const e=n%60;return`${o} ${t("hour","hours",o)} ${e} ${t("minute","minutes",e)}`}return`${n} ${t("minute","minutes",n)}`}{const t=new Intl.DateTimeFormat(navigator.language,{dateStyle:"short"}),i=new Intl.DateTimeFormat(navigator.language,{timeStyle:"short"});return t.format(e)+" "+i.format(e)}},g=e=>{const t=e.match(/(\(copy\))( \d+)?$/),i=null===t||void 0===t?void 0:t[1],s=null===t||void 0===t?void 0:t[2];return i?s?`${e.slice(0,-s.length)} ${+s.slice(1)+1}`:`${e} 2`:`${e} (copy)`};function E(e,t,i){const s=new Map,n=new RegExp(`(${t})(.*?)(${i})`,"gis");return e=e.replaceAll(n,((e,t,i,n)=>{const o=(0,_.l)();return s.set(o,i),t+o+n})),{escapes:s,html:e}}function A(e,t){let i=[];for(const[s,n]of t){const{escapes:t,html:o}=E(e,s,n);e=o,i.push([s,n,t])}return{escapes:i,html:e}}function v(e,t,i,s){const n=new RegExp(`(${t})(.*?)(${i})`,"gis");return e.replaceAll(n,((e,t,i,n)=>{const o=s.get(i);return"string"===typeof o?t+o+n:e}))}const f=/<title>(.*)<\/title>/gm,O=(e,t)=>{let{escapes:i,html:s}=A(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return s=s.replaceAll(f,((e,i)=>i===t?`<title>${g(i)}</title>`:e)),function(e,t){for(const[i,s,n]of t)e=v(e,i,s,n);return e}(s,i.reverse())};function D(e){let{html:t}=A(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return[...t.matchAll(f)].map((e=>e[1])).find((e=>!!e))}const T="bottomRight",I=(e,t,i=T)=>{var s,n,o,a;t.error({innerException:e.error instanceof Error?e.error:void 0,message:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(s=e.error)||void 0===s||null===(n=s.data)||void 0===n?void 0:n.code)||(null===(o=e.error)||void 0===o?void 0:o.status)||e.error}}),description:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(a=e.error.data)||void 0===a?void 0:a.message)||e.error.error}}),placement:i})},S=(e,t,i=T)=>{t.success({message:e,placement:i})},L="ascend",C="descend",b="desc",y=e=>{switch(e){case L:return"asc";case C:return b;default:return""}},N=e=>{switch(e){case"asc":return L;case b:return C;default:return""}},M=e=>{const t=document.createElement("div");return t.className=e||"resizer",t},P=/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/,w=e=>new Promise(((t,i)=>{let s=new Image;s.src=e,s.addEventListener("load",(()=>{t("success")})),s.addEventListener("error",(()=>{i("error")})),s=null})),R=(e,t)=>{for(const i of t)"object"===typeof e.properties&&(e=e.properties[i]);return e},B=e=>e instanceof Array?e.map((e=>({label:e,value:e}))):Object.keys(e).map((t=>({label:e[t],value:t}))),k=(e,t,i=!0)=>{const s=Object.keys(t);for(const n of s){const s=t[n];void 0!==s&&null!==s&&(e[n]=i&&"object"===typeof s?k(e[n]||{},s,!0):s)}return e},U=e=>new Promise(((t,i)=>{r().load({google:{families:[e]},classes:!1,active:t,inactive:i})})),j=(e,t)=>{t&&e(t)},x=()=>{const e=(0,c.XW)();return(0,n.useCallback)(((t,i)=>{document.querySelectorAll(".block-search__preview").forEach((e=>e.remove()));const s=document.getElementById("iframe-scroll-top"),n=document.getElementById("iframe-scroll-bottom"),a=document.getElementById("email_iframe"),r=document.body.getBoundingClientRect().height,c=a.getClientRects()[0];c.top<0&&(s.style.display="block"),c.top+c.height>r&&(n.style.display="block");const l={operation:o.Ru.SANDBOX_BLOCK_INSERT,settings:{blockHTML:i||null,targetBlock:null,project:"emailmaker"}};t.dataTransfer.setData("Text",JSON.stringify(l)),e(l)}),[e])},G=()=>{const e=(0,c.XW)();return(0,n.useCallback)(((t,i,s)=>{const n=document.getElementById("iframe-scroll-top"),a=document.getElementById("iframe-scroll-bottom"),r=document.getElementById("email_iframe"),c=document.body.getBoundingClientRect().height,l=r.getClientRects()[0];l.top<0&&(n.style.display="block"),l.top+l.height>c&&(a.style.display="block");const d={operation:o.Ru.SANDBOX_ATOM_INSERT,settings:{atomHTML:i.html||null,targetBlock:null}};s(i)&&t.dataTransfer.setData("Text",JSON.stringify(d)),e(d)}),[e])},F=()=>{const e=(0,c.XW)();return(0,n.useCallback)(((t,i)=>{e({operation:o.Ru.SANDBOX_BLOCK_INSERT,action:"insert",settings:{blockHTML:i}})}),[e])},H=()=>{const e=(0,c.XW)();return(0,n.useCallback)(((t,i)=>{e({operation:o.Ru.SANDBOX_ATOM_INSERT,action:"insert",settings:{atomHTML:i}})}),[e])},X=(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:()=>{}})},K=()=>{const e=(0,c.XW)();return(t,i)=>{e({operation:o.Ru.SANDBOX_ELEMENT_SETTINGS_SET,settings:t,type:i})}},V=(e,t="")=>{var i,s;const n=[];return null===(i=e._embedded)||void 0===i||null===(s=i["wp:term"])||void 0===s||s.filter((e=>{var i;return!!e.length&&(!t||(null===(i=e[0])||void 0===i?void 0:i.taxonomy)===t)})).forEach((e=>{const t=e[0].taxonomy;n[t]||(n[t]=[]),n[t]=e.map((e=>({id:e.id,name:e.name,children:e.children}))),n[n.length]=n[t]})),""!==t&&n.length?n[t]:n},z=(e,t="")=>{var i,s,n,o,a;return(null===(i=e._embedded)||void 0===i||null===(s=i["wp:term"])||void 0===s||null===(n=s.find((e=>{var i;return!!e.length&&(!t||(null===(i=e[0])||void 0===i?void 0:i.taxonomy)===t)})))||void 0===n||null===(o=n.find((e=>{var t;return null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.startsWith("project_")})))||void 0===o||null===(a=o.children)||void 0===a?void 0:a.map((e=>({id:e.id,name:e.name,count:e.count}))))||null},W=(e,t)=>{const i=e.target,s=t.getBoundingClientRect().height,n=i.getBoundingClientRect().height-s,o=e.clientY-t.getBoundingClientRect().top-30,a=-n*(Math.min(Math.max(o,0),s-60)/(s-60));i.style.transform=`translateY(${a}px)`},Q=({target:e})=>{e.style.transform="translateY(0)"};function Y(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}},20116:(e,t,i)=>{function s(e){return t=>{const i=t.query,s=t.queryFn||((e,t,s,n)=>n(i(e)));if(s){let i;if("object"===typeof e){const{queryFn:s,...n}=e;i=s;for(const e of Object.keys(n))t[e]=n[e]}else i=e;t.query=void 0,t.queryFn=async(e,t,n,o)=>{try{let a=await i(e);return"function"===typeof a&&(a=await a((async(e,i=t,a=n,r=o)=>{const c=await s(e,i,a,r);if(c.error)throw c.error;return c.data}))),{data:a,error:null}}catch(a){return{error:a}}}}}}function n(){return s((()=>{}))}function o(e,t){const i={},n=Object.keys(t);for(const o of n)i[o]=s(t[o]);e.enhanceEndpoints({endpoints:i})}function a(e,t){for(const i of Object.keys(t))t[i](e)}i.d(t,{BD:()=>a,BX:()=>o,nM:()=>s,pl:()=>n})},98589:(e,t,i)=>{function s(e,t){if(e===t)return!0;if("object"===typeof e&&e&&"object"===typeof t&&t){const i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;for(const o of i)if(!s(e[o],t[o]))return!1;return!0}return!1}function n(e,t){if(!e)return t;const i={};for(const n of Object.keys(t))s(t[n],e[n])||(i[n]=t[n]);return i}i.d(t,{g:()=>n})},88896:(e,t,i)=>{i.d(t,{X:()=>n});const s=Symbol("Error");function n(e){return Promise.all(e.map((e=>e instanceof Promise?e.catch((e=>(console.log(e),s))):e))).then((e=>e.filter((e=>e!==s))))}},91738:(e,t,i)=>{i.d(t,{AU:()=>d});var s=i(90854),n=i(58689),o=i(44824),a=i(26453),r=i(91391);const c=e=>function(e){var t;return function(e){return"___SCRIPT"===e.tagName}(e)&&(null===(t=e.src)||void 0===t?void 0:t.startsWith(r.gP))}(e)||(0,a.Nh)(e)||(0,s.BF)(e),l=e=>{if(c(e))return!0;if((0,s.vq)(e)||(0,s.wz)(e))for(const t of e.querySelectorAll("*"))if(c(t))return!0;return!1};async function d(e,t){"string"===typeof e&&(e={code:e});const i=e.code?await(0,n.PJ)(e.code||"",[n.qy],e.utm_parameters,(async e=>{void 0===t&&(t=l(e)),t&&await(0,o.e)(e,"html")})):"",s=e.code&&t?await(0,n.PJ)(e.code||"",[n.qy],e.utm_parameters,(async e=>{await(0,o.e)(e,"amp")})):"";return{...e,compiled:{html:i,ampHtml:s}}}},91366:(e,t,i)=>{i.d(t,{Qq:()=>g,PL:()=>A,KA:()=>E,wz:()=>v});var s=i(33288),n=i(41664),o=i(15230),a=i(32269),r=i(55654);class c extends r.IO{async execute([e],t){for(const i of t){const t=await i(e);t&&(void 0===t.id&&(t.id=e.value.id),e.value=t)}return e.value}}var l=i(98589);class d extends r.lt{}var _=i(56991);class u extends a.jG{constructor(...e){super(...e),this._items=new Map,this._onChangeEmitter=new r.HN,this.onChange=this._onChangeEmitter.event}async _getOrCreate(e,t){const i=this._items;let s;if(i.has(e))try{s=await i.get(e)}catch{t&&(s=await t())}else t&&(s=await t(),s&&this._onChangeEmitter.fire());return s}async _addOrUpdate(e,t){let i;const s=this._items;if(s.has(e))try{i=await s.get(e)}catch{}const n=await t(i);return(0,_.bD)(i,n)||this._onChangeEmitter.fire(),n}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){let i=this._getOrCreate(e,(()=>t(e)));return this._items.set(e,i),i}addOrUpdate(e,t){let i=this._addOrUpdate(e,t);return this._items.set(e,i),i}add(e,t){const i=Promise.resolve(t);return this._items.set(e,i),i}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=[],i=new Set(Array.from(e).map((([e,t])=>e))),s=(await this.entries()).filter((([e,t])=>!i.has(e)));for(const[n,o]of e)t.push(this.addOrUpdate(n,(()=>o))),i.add(n);for(const[e]of s)t.push(this.remove(e));return await Promise.all(t),s}finally{this.resumeChange()}}clear(){this._items.clear(),this._onChangeEmitter.fire()}suspendChange(){this._onChangeEmitter.suspend()}resumeChange(){this._onChangeEmitter.resume()}}var p=i(71210);class m extends a.jG{constructor(...e){super(...e),this._cache=new u,this._readEmitter=new r.lt,this._saveEmitter=this.addDisposable(new c),this._removeEmitter=this.addDisposable(new d),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 i=this.addDisposable(new a.jG);i.addDispose((()=>delete this._foreignCache[e]));const s=i.addDisposable(new u),n=i.addDisposable(new r.lt);t=this._foreignCache[e]={get:async(t,i={})=>(await s.getOrCreate(t,(async()=>{try{const i=function(e=[]){if((e=e.filter((e=>e))).length<=1)return e[0];let t=new Map;for(const i of e)for(const e of i)if(void 0!==e.id){let i=t.get(e.id)||{};t.set(e.id,{...i,...e})}return[...t].map((([e,t])=>t))}(await n.fire(t))||[];for(const s of i)s[e]=t,await this._cache.add(s.id,s);return i}catch{return[]}})),function(e,{filter:t,order:i="asc",orderBy:s,page:n,pageSize:o=20}={}){const a=e.length;let r=e.length;if(void 0!==t){const i=Object.keys(t);r=(e=e.filter((e=>{for(const s of i){const i=e[s],n=t[s];return"id"===s||"string"!==typeof i?i===n:"string"===typeof n&&i.startsWith(n)}return!0}))).length}return s&&(e=e.sort(((e,t)=>(e[s]>t[s]?1:t[s]>e[s]?-1:0)*("asc"===i?1:-1)))),void 0!==n&&(e=e.slice(o*(n-1),o*n-1)),{data:e,filteredTotal:r,total:a,totalPages:Math.floor(a/o)}}(await this._cache.values()||[],i)),first:(e,i={})=>t.get(e,{...i,page:1,pageSize:1}).then((e=>e[0])),handleRead:n.event,clear(){s.clear()},dispose(){i.dispose()}}}return t}async create(e,{source:t="",silent:i}={}){let s=e;return i||(s=await this._saveEmitter.fire({prev:void 0,patch:e,value:s,source:t})),void 0===s.id&&(s.id=(0,p.l)()),await this._cache.addOrUpdate(s.id,(()=>s))}async update(e,t,{source:i="",silent:s}={}){return this._cache.addOrUpdate(e,(async e=>{let n=e?{...e,...t}:t;if(!s)return t=e?(0,l.g)(e,t):t,await this._saveEmitter.fire({prev:e,patch:t,value:n,source:i})}))}async remove(e,{source:t="",silent:i}={}){const s=await this._cache.remove(e);return i||await this._removeEmitter.fire({value:s,source:t}),s}refresh(){this._cache.clear();for(const e of Object.values(this._foreignCache))e.clear()}suspendChange(){this._cache.suspendChange()}resumeChange(){this._cache.resumeChange()}}i(18398);var h=i(39990);function g(){const e=(0,n.Q)();return t=>s.di.getOrCreateInstance(t,e,(()=>new m))}function E(e){const t=s.di.getInstance(e,o.ax);if(!t)throw new Error("Failed");return t}function A(e){const t=s.di.getInstance(e,o.Lz);if(!t)throw new Error("Failed");return t}async function v(e){const t=E(e),i=await t.dispatch(h.Q2.endpoints.getMe.initiate({},{forceRefetch:!0}));return Promise.resolve(i.data)}},13437:(e,t,i)=>{i.d(t,{A:()=>a,i:()=>o});var s=i(71210),n=i(814);function o({code:e,...t},i){var n,o;const a=i.getState();return{...t,...e?{html:e}:{},renderGuid:(0,s.l)(),project:null===(n=a.projectSlice)||void 0===n||null===(o=n.project)||void 0===o?void 0:o.id}}function a({html:e,renderGuid:t,...i},s){const o=s.getState(),{project:a}=o.configSlice;return(0,n.TB)({...i,code:e,project:void 0===a?i.project:a,guid:void 0,link:void 0,status:void 0,slug:void 0,password:void 0,comment_status:void 0,template:void 0,blocktags:void 0,project_title:void 0,ping_status:void 0,lock:void 0,tag:void 0,is_template:void 0})}},25181:(e,t,i)=>{function s(e,t){var i;return{severity:Number(t.severity),message:t.message,source:t.source,startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn,get startOffset(){return e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn})},get endOffset(){return e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn})},tags:null===(i=t.tags)||void 0===i?void 0:i.map((e=>Number(e)))}}i.d(t,{B:()=>s})},91253:(e,t,i)=>{i.d(t,{I:()=>o,y:()=>n});var s=i(814);function n(e,t,i){const s=t.getState();var n,o;void 0===i&&(i=void 0===e.post?null===(n=s.emailSlice)||void 0===n||null===(o=n.email)||void 0===o?void 0:o.id:e.post);return{...e,content:e.content?`<p>${e.content}</p>`:"",post:i}}function o(e,t){return(0,s.TB)({...e,link:void 0,comment_status:void 0})}},81304:(e,t,i)=>{i.d(t,{E:()=>a,I:()=>o});var s=i(71210),n=i(814);function o({code:e,...t},i){var n,o;const a=i.getState();return{...t,...e?{html:e}:{},renderGuid:(0,s.l)(),project:null===(n=a.projectSlice)||void 0===n||null===(o=n.project)||void 0===o?void 0:o.id,utm_parameters:t.utm_parameters||{},_embedded:void 0}}function a({html:e,renderGuid:t,...i},s){const o=s.getState(),{project:a,config:r}=o.configSlice;return(0,n.TB)({...i,code:e,project:void 0===a?i.project:a,utm_parameters:r.UTMEnabled?i.utm_parameters:void 0,tags:void 0,template:void 0,guid:void 0,emailtags:void 0,project_title:void 0,project_author:void 0,is_template:void 0,is_inited:void 0,compiled:(0,n.TB)({html:e,ampHtml:e&&""})})}},4453:(e,t,i)=>{i.d(t,{E:()=>o,_:()=>n});var s=i(814);function n({code:e,...t},i,s){const n=i.getState();var o,a;void 0===s&&(s=void 0===t.parent?null===(o=n.emailSlice)||void 0===o||null===(a=o.email)||void 0===a?void 0:a.id:t.parent);return{...t,...e?{html:e}:{},parent:s}}function o({html:e,...t},i){return(0,s.TB)({...t,code:e,guid:void 0,compiled:(0,s.TB)({html:e,ampHtml:e&&""})})}},23036:(e,t,i)=>{i.d(t,{Wk:()=>l,Xy:()=>r,bg:()=>d,yc:()=>c});var s=i(20116),n=i(55701),o=i(91366),a=i(93982);const r=(0,o.Qq)(),c=(0,o.Qq)(),l=(0,a.cZ)();function d(e){const t=r(e),i=t.byForeignKey("project"),d=c(e),_=d.byForeignKey("parent"),{dispatch:u,getState:p}=(0,o.KA)(e),m=(0,o.PL)(e);m.addDisposable(t.onChange((()=>u(n.VM.util.invalidateTags(["Blocks"]))))),m.addDisposable(t.onSave((({prev:e,patch:t,value:i})=>{(e=e?{...e,...t}:t)&&i.html===e.html&&i.title===e.title&&(i.renderGuid=e.renderGuid)}),Number.MIN_VALUE));const h=(0,a.dB)(e,l);(0,s.BX)(n.VM,{async getBlocks(e){const t={};e.name&&(t.title=e.name),e.type&&(t.type=e.type);return await i.get(e.projectId,{filter:t,page:e.page,pageSize:e.pageSize,order:e.order,orderBy:e.orderby}).then((({data:e})=>e))},getBlocksSchema:()=>e=>e({}),getParentEmailBlocks:e=>t=>t(e),getTemplateBlocks:e=>async t=>{try{const e=(await h.fire()).filter((e=>e));if(e.length)return e.flat()}catch(i){console.log(i)}return t(e)},async getBlock(e){const t=p().projectSlice.project.id;return i.first(t,{filter:{id:e}})},getBlockHistory:async({blockId:e,page:t=1})=>({...await _.get(e,{page:t}),args:{blockId:e,page:t}}),addBlock:e=>async i=>{const s=await t.create(e);return p().configSlice.config.preventSendDataToEM||i(s).catch((e=>console.log(e))),s},editBlock:({blockId:e,...i})=>t.update(e,i),deleteBlock:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveBlock:({blockId:e,body:t})=>d.create({...t,parent:e})})}},72788:(e,t,i)=>{i.d(t,{B:()=>c,D:()=>r});var s=i(18777),n=i(91366),o=i(68415),a=i(20116);const r=(0,n.Qq)();function c(e){const t=r(e),i=t.byForeignKey("post"),{dispatch:c}=(0,n.KA)(e);(0,n.PL)(e).addDisposable(t.onChange((()=>c(s.Jg.util.invalidateTags(["Comments"]))))),(0,a.BX)(s.Jg,{getComments:e=>i.get(e).then((({data:e})=>e)),addComment({subjectId:e,author:i,parent:s,content:n,author_name:a,author_email:r,targetId:c}){const l={post:e,author:i,author_name:a,author_email:r,content:n,parent:s,target_id:c,date:(0,o.A)(new Date),author_avatar_urls:{}};return t.create(l)},deleteComment:e=>t.remove(e),editComment:({commentId:e,...i})=>t.update(e,i),deleteTarget:e=>t.update(e,{target_id:""})})}},87265:(e,t,i)=>{i.d(t,{Av:()=>r,jw:()=>c,sE:()=>l});var s=i(86739),n=i(91366),o=i(71210),a=i(20116);const r=(0,n.Qq)(),c=(0,n.Qq)();function l(e){const t=r(e),i=c(e),l=i.byForeignKey("parent"),{dispatch:d,getState:_}=(0,n.KA)(e),u=(0,n.PL)(e);u.addDisposable(t.onChange((async()=>{d(s.GY.util.invalidateTags(["Email"]))}))),u.addDisposable(i.onChange((()=>{d(s.GY.util.invalidateTags(["EmailAutosaves"]))}))),u.addDisposable(t.onSave((({prev:e,patch:t,value:i})=>{(e=e?{...e,...t}:t)&&i.subject===e.subject&&i.html===e.html&&i.preheader===e.preheader&&i.title===e.title&&(i.renderGuid=e.renderGuid)}),Number.MIN_VALUE)),(0,a.BX)(s.GY,{getEmails:e=>[],getTemplateEmails:e=>t=>t(e),getEmail:async e=>await t.get(e),getEmailHistory:({emailId:e,page:t=1})=>(l.clear(),async s=>{if(_().configSlice.config.revisionService){const n=await s({emailId:e,page:t});for(const e of n.data)i.cache.add(e.id,e);return n}return{...await l.get(e,{page:t}),args:{emailId:e,page:t}}}),async addEmail({source:e,...i}){const s=await t.create(i,{source:e});return s.renderGuid||(s.renderGuid=(0,o.l)()),s},editEmail:e=>async i=>{let{emailId:s,source:n,...o}=e;return _().configSlice.config.revisionService&&await i(e),t.update(s,o,{source:n})},deleteEmail:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveEmail:({emailId:e,body:t})=>async s=>(_().configSlice.config.revisionService&&await s({emailId:e,body:t}),await i.create({...t,parent:e,modified:(new Date).toString()}))})}},55084:(e,t,i)=>{i.d(t,{A:()=>I});var s=i(20116),n=i(53200);var o=i(84612);var a=i(91366),r=i(39990);var c=i(15230),l=i(47036);var d=i(95679);var _=i(62689);var u=i(84568);var p=i(46312),m=i(93982),h=i(13522);var g=i(65119);var E=i(63531),A=i(33288);A.di.createIdentifier();var v=i(83351);var f=i(23036),O=i(72788),D=i(94381);var T=i(87265);const I={addUserToProjectApiMock:function(){n.B.enhanceEndpoints({endpoints:{addUserToProject:(0,s.pl)()}})},AiApiMock:function(){(0,s.BX)(o.Zs,{sendMessage:({body:e})=>t=>t({body:e}).catch((()=>new Promise((e=>setTimeout(e,1e3))))),getDialog:e=>t=>t(e)})},authorizationApiMock:function(e){let t={id:"0",username:"",email:"",password:"",code_editor:{},theme:"light",locale:(0,a.KA)(e).getState().userSlice.currentUser.locale,counters:{},avatar_urls:{},autosaves:!0};r.Q2.enhanceEndpoints({endpoints:{userRegistration:(0,s.pl)(),getSchema:(0,s.nM)((()=>e=>e({}))),getMe:(0,s.nM)((()=>t)),editMe:(0,s.nM)((e=>t={...t,...e})),getSubscriptions:(0,s.nM)((()=>[]))}})},blocksApiMock:f.bg,commentsApiMock:O.B,emailsApiMock:T.sE,emailRawApiMock:function(){(0,s.BX)(l.f,{getEmailRaw({emailId:e,secret_hash:t}){throw new Error(c.f5)}})},imageApiMock:function(){(0,s.BX)(d.CL,{sendAiImageRequest:function({body:e}){return t=>t({body:e})},getAiImage:e=>t=>t(e)})},localesApiMock:function(e){(0,s.BX)(D.Ad,{getLocale:async({id:e})=>t=>t({id:e}),getLocales:()=>async e=>e({})})},notificationsApiMock:function(){(0,s.BX)(_.vx,{getNotifications:e=>[],notificationShown({id:e,datetime:t}){throw new Error(c.f5)}})},projectsApiMock:function(e){let t;(0,s.BX)(u.Nq,{getProjects:(e={page:1})=>[],getProject:e=>i=>t||(t=i(e).then((t=>({...t,id:e})))),addProject(e){throw new Error},editProject:({projectId:e,...i})=>t=t.then((t=>({...t,...i,id:e}))),deleteProject(e){throw new Error}})},proxyApiMock:function(e){const t=(0,m.dB)(e,h.A.FILE_PROXY_EVENT_ID);(0,s.BX)(p.Z8,{getFile:async({url:i,tryFetch:s=!0,type:n})=>async o=>{const a=e.getState(),{project:r}=a.configSlice,c=(await t.fire({url:i,project:r})).filter((e=>e instanceof Blob))[0];if(!c)return o({url:i,tryFetch:s,type:n});switch(n){case"json":return JSON.parse(await c.text());case"text":return c.text();default:return c}}})},recoverPasswordApiMock:function(){(0,s.BX)(g.yR,{resetPassword(e){throw new Error(c.f5)},setPassword(e){throw new Error(c.f5)},validateRecoverPasswordCode(e){throw new Error(c.f5)}})},saveFileApiMock:function(e){if(!A.di.getInstance(e,c.Lz))throw new Error("Something was wrong");const t=(0,m.dB)(e,h.A.UPLOAD_EVENT_ID),i=(0,m.dB)(e,h.A.ON_SEND_TESTEMAIL_ID),n=(0,m.dB)(e,h.A.ON_SEND_LIVEPREVIEW_ID);(0,s.BX)(E.yH,{uploadImage:i=>async s=>{const n=e.getState(),{project:o}=n.configSlice,a="tmp"===i.folder?null:await t.fire({file:i.file,project:o}),r=a?a.find((e=>e)):null;return r?[{file_url:r,project:o}]:s({...i,user_id:String((await A.di.getInstanceAsync(e,c.sZ)).app_id)})},sendTestEmail:t=>async s=>{const n=e.getState(),{project:o}=n.configSlice;(await i.fire({project:o,email_id:t.email_id,subject:t.subject,email:t.email,html:t.html,from_name:t.from_name})).some((e=>!1===e))&&await s({...t,user_id:String((await A.di.getInstanceAsync(e,c.sZ)).app_id)})},async sendLivePreview(t){const i=e.getState(),{project:s}=i.configSlice;(await n.fire({project:s,id:t.email,subject:t.subject,html:t.content})).some((e=>!1===e))},sendShortLink:e=>t=>t(e)})},tokenApiMock:function(){(0,s.BX)(v.OV,{tokenCreate:e=>t=>t(e),tokenValidate:()=>e=>e({})})}}},62410:(e,t,i)=>{i.d(t,{r:()=>v});var s=i(33288),n=i(14386),o=i(18398),a=i(47358),r=i(86286),c=i(39990),l=i(99751),d=i(15230),_=i(13652);function u(e){var t;return{fontSize:e.fontSize,fontFamily:e.fontFamily,tabSize:e.tabSize,wordWrap:"off"!==e.wordWrap,minimap:null===(t=e.minimap)||void 0===t?void 0:t.enabled,insertSpaces:e.insertSpaces}}var p=i(39217),m=i(32269),h=i(91366),g=i(93982),E=i(13522),A=i(48802);const v=(0,n.l)((e=>{const t=(0,h.PL)(e),i=(0,A.m)((0,g.Zc)(e,E.A.ON_LIMIT_ID)),n=t.addDisposable(new A.U(i)),v=(0,A.m)((0,g.Zc)(e,E.A.READ_LOCALE)),f=t.addDisposable(new A.U(v)),O=e.dispatch,D=s.di.getInstanceAsync(e,d.sZ).then((e=>(null===e||void 0===e?void 0:e.app_config)||{}),(e=>(console.log(e),{}))),T=(0,_.y)(),I=async(...t)=>{const i=Object.assign({},...t),s=Object.assign({},...t.map((e=>e.editor))),{locale:n="ru_RU",theme:r,codeModeDirection:l,...d}=i;void 0!==l&&("none"===l?O((0,a.N6)(!1)):(O((0,a.N6)(!0)),O((0,a.Uf)(l))));const _=await(0,h.wz)(e);var u;await O(c.Q2.endpoints.editMe.initiate({..._,code_editor:s?(u=s,{font_size:u.fontSize,font_family:u.fontFamily,tab_size:u.tabSize,word_wrap:u.wordWrap,minimap:u.minimap,insert_spaces:u.insertSpaces}):_.code_editor,locale:"string"===typeof n?n:_.locale,theme:"string"===typeof r?r:_.theme})),O((0,o._R)(d))};let S;return{setOptions:T.decorate((async({config:i={},project:a,user:r,advancedConfigs:d,handleReadLocale:_,handleLimitUsage:u})=>{var g;f.setListener(_),n.setListener(u);let E=await D,A=d||E.advancedConfigs,v=localStorage.getItem("configSwither"),T=A&&A[(null===i||void 0===i?void 0:i.mode)||v||"pro"]||(null===(g=(0,l.$)((null===i||void 0===i?void 0:i.mode)||v||"pro"))||void 0===g?void 0:g.config);if(T={...T,configSwither:i.configSwither||!1},await I(T,E,i),O((0,o.bn)(String(a))),O((0,o.ee)(A)),S&&S.dispose(),S=new m.jG,r){let i={...await(0,h.wz)(e),email:"",password:"",...r,id:"number"===typeof r.id?String(r.id):r.id};void 0===r.id&&delete i.id,O(c.Q2.endpoints.editMe.initiate(i)),r.id&&t.addDisposable(s.di.addService(e,p.jY,{execute(e){e.headers.append("user_id",i.id)}}))}a&&t.addDisposable(s.di.addService(e,p.jY,{execute(e){e.headers.append("project_id",String(a))}}))})),instance:{setConfig:T.decorate((async e=>{var t;let i=null===(t=(0,l.$)((null===e||void 0===e?void 0:e.mode)||"pro"))||void 0===t?void 0:t.config;await I(i,await D,e)})),getConfig:()=>function(e){var t,i;const s=e.getState(),n=s[r.Ay.name],c=s[o.Ay.name],l=s[a.Ay.name];return{...c.config,theme:null===(t=n.currentUser)||void 0===t?void 0:t.theme,locale:null===(i=n.currentUser)||void 0===i?void 0:i.locale,codeModeDirection:l.isCodeMode?l.codeModeDirection:"none",editor:u(n.monacoOptions)}}(e),updateConfig:T.decorate((e=>I(e))),handleReadLocale:v,handleLimitUsage:i}}}))},33746:(e,t,i)=>{i.d(t,{F:()=>c});var s=i(44141),n=i(33288),o=i(15230),a=i(14386),r=i(39217);const c=(0,a.l)((e=>{let t=!0;return{setOptions(i){if(i.hasOwnProperty("baseUrl")){const s=n.di.getInstance(e,r.eT),o=s.getOptions(),a=(0,r.qT)(i.baseUrl);o.baseUrl!==a&&(s.setOptions({baseUrl:a}),t=!0)}if(t){const i=n.di.getInstance(e,s.Pz);n.di.inject(e,o.sZ,(async(e,t)=>t||i.app.app_init_create({}).then((({data:e})=>e))),!0),t=!0}}}}))},19209:(e,t,i)=>{i.d(t,{F:()=>u});var s=i(14386),n=i(14315),o=i(33288),a=i(41664),r=i(39217),c=i(13652),l=i(85163);const d=(0,a.Q)(),_=(0,a.Q)(),u=(0,s.l)((e=>({setOptions(t){const i=(0,c.y)(),s=(0,r.mg)(e);o.di.addService(e,r.jY,{execute:i.decorate((async i=>{if(t.jwtAuth){let a=o.di.getInstance(e,d),r=o.di.getInstance(e,_);if(!r&&!a){const i=await s.jwtAuth.token_create({body:t.jwtAuth,type:n.cM.Json});if(i.error)throw r=l.ff,o.di.inject(e,_,l.ff),new Error(l.ff);a=i.data.token,o.di.inject(e,d,a)}r||i.headers.append("authorization",`Bearer ${a}`)}}))})}})))},1383:(e,t,i)=>{i.d(t,{Y:()=>l,h:()=>d});var s=i(14386),n=i(41664),o=i(33288),a=i(39217),r=i(47271),c=i(12264);const l=(0,n.Q)(),d=(0,s.l)((e=>{let t;return o.di.addService(e,a.jY,{execute:async i=>{if(t){const t=await o.di.getInstanceAsync(e,l);t&&i.headers.append("authorization",`Bearer ${t}`)}}}),{setOptions(i){t!==i.getAuthToken&&(t=i.getAuthToken,o.di.inject(e,l,void 0),o.di.inject(e,l,(async(e,i)=>{try{let e=await i;var s;return t?e&&1e3*(null===(s=(0,r.iU)(e))||void 0===s?void 0:s.exp)>(0,c.N)()?e:await t(e):""}catch(n){return console.log(n),""}}),!0))}}}))},14386:(e,t,i)=>{function s(e){return async function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...await e(t)||{}}}}function n(e){return async t=>{const i={},s=[];for(const n of e)s.push(await n(t));for(const e of s)Object.assign(i,e.instance);return{instance:i,setOptions:e=>{const t=s.map((t=>t.setOptions(e)));return t.some((e=>e instanceof Promise))?Promise.all(t).then((()=>{})):void 0},dispose:()=>{for(const e of s)e.dispose()}}}}i.d(t,{E:()=>n,l:()=>s})},893:(e,t,i)=>{i.d(t,{m:()=>c});var s=i(17126),n=i(92810),o=i(45934),a=i(18398),r=i(70082);const c=({children:e})=>{const[t,i]=(0,n.useState)(),c=(0,o.d4)(a.p5);return(0,r.jsxs)("div",{className:"App blocks-app blocks-plugin",children:[c&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:c}}),(0,r.jsx)(s.fh.Provider,{value:t,children:e}),(0,r.jsx)("div",{ref:i,className:"blocks-modal-container"})]})}},97001:(e,t,i)=>{i.d(t,{P:()=>S});var s=i(32269),n=i(93556),o=i(23580),a=i(71210),r=i(56991),c=i(13329),l=i(28316),d=i(18398),_=i(13437),u=i(81304),p=i(4453),m=i(91253),h=i(33288),g=i(15230),E=i(13652),A=i(13522),v=i(93982),f=i(91738),O=i(86739),D=i(39217),T=i(25181);const I="EXTERNAL";class S extends s.jG{constructor(e){super(),this._store=e,this._emailTemplateCache=Object.create(null),this._prevCommand=void 0,this._prevContent=void 0,this._dataSources=void 0,this._eventLock=void 0,this._queue=(0,E.y)(),this._model=void 0,this._currentEmail=void 0,this.show=this._queue.decorate(this._show,this),this.save=this._queue.decorate(this._save,this);const t=(0,o.My)(e);this._dataSources=(0,n.zC)(t),this._eventLock=(0,n.QQ)(t);const i=(0,v.Zc)(e,A.A.ON_MODEL_CHANGE),s=(0,v.Zc)(e,A.A.ON_EMAIL_CHANGED_ID);this.addDisposable(i((e=>{this._model=e}))),this.addDisposable(s((e=>{this._currentEmail=e}))),this.addDisposable(h.di.addService(e,D.jY,{execute:e=>{var t;null!==(t=this._currentEmail)&&void 0!==t&&t.id&&!this._currentEmail.isNew&&e.headers.append("email_id",this._currentEmail.id)}}))}async getProject(){const e=await h.di.getInstanceAsync(this._store,g.sZ);return null===e||void 0===e?void 0:e.project}async getTemplateEmail(e){e=String(e);let t=this._emailTemplateCache[e];if(!t){const i=await this._store.dispatch(O.GY.endpoints.getTemplateEmail.initiate(e));i.error?console.log(i.error):(t={...i.data,lock:!1,parent_email:e},delete t.id)}return t}async getBlocks(){const{cache:e}=this._dataSources.blocks,t=await this.getProject();return(await e.values()).filter((e=>e.project===t)).map((e=>(0,_.A)(e,this._store)))}async getComments(){const{cache:e}=this._dataSources.comments,t=await this.getEmail();return(await e.values()).filter((e=>e.post===t.id)).map((e=>(0,m.I)(e,this._store)))}async getEmailRevisions(){const{cache:e}=this._dataSources.emailRevisions,t=await this.getEmail();return(await e.values()).filter((e=>e.parent===t.id)).map((e=>(0,p.E)(e,this._store)))}async setBlocks(e=[]){const{cache:t}=this._dataSources.blocks;await t.setAll(e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,_.i)(e,this._store)])))}async setEmailRevisions(e=[],t){const{cache:i}=this._dataSources.emailRevisions,s=e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,p._)(e,this._store,t)]));await i.setAll(s)}async setComments(e=[],t){const{cache:i}=this._dataSources.comments,s=e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,m.y)(e,this._store,t)]));await i.setAll(s)}async getEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email,i=(0,u.E)({...t,html:this._model?this._model.getValue():t.html},this._store);return(0,f.AU)(i,t.isAmp)}async compileEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email,i=(0,u.E)({...t,html:this._model?this._model.getValue():t.html},this._store);return(0,f.AU)(i,t.isAmp)}async setEmail(e,t,i=!1){const s=this._dataSources.emails,n=s.cache,o=await this.getProject();e="string"===typeof e?{code:e}:{...e};let r=(0,u.I)(e,this._store);const c=r.id;let l=c;if(void 0!==c?r={...await s.get(c),...r,project:o}:(r={...r,project:o},l=(0,a.l)(),delete r.project),t){const e=await this.getTemplateEmail(String(t));e&&(r={...e,id:String(t),...r})}await n.setAll([[l,r]]),i&&this._runShowCommand({isNew:void 0===c,id:l,project:o})}_runShowCommand(e){const t={...e,type:"email"};this._prevCommand&&!(0,r.bD)(this._prevCommand,e)?(0,c.RS)(this._store,l._1,t):this._store.dispatch((0,d.Ir)(t)),this._prevCommand=e}async _show(e){try{if(!e)return;if(this._eventLock.suspendChange(),e!==this._prevContent){this._prevContent=e;const{email:t,blocks:i,autosaves:s,comments:o,templateId:a}=(0,n.Uw)(e),r=[];r.push(this.setBlocks(i)),void 0!==t.id&&(r.push(this.setComments(o)),r.push(this.setEmailRevisions(s))),r.push(this.setEmail(t,Number(a),!0)),await Promise.all(r)}}catch(t){console.log(t)}finally{this._eventLock.resumeChange()}return new Promise((e=>{(0,v.Zc)(this._store,A.A.ON_EMAIL_INIT_ID)((()=>e()))}))}_save(){return new Promise((async e=>{const t=this._dataSources.emails,i=this.addDisposable(t.onSave((({value:t,source:s})=>{s===I&&(i.dispose(),e((0,u.E)(t,this._store)))}),Number.MIN_VALUE));(0,c.RS)(this._store,l.Kp,I)}))}getCodeErrors(){var e;const t=this._store.getState(),i=this._model;return i?null===(e=t.emailSlice.problemsList)||void 0===e?void 0:e.map((e=>(0,T.B)(i,e))):void 0}}},44376:(e,t,i)=>{i.d(t,{y:()=>A});var s=i(23580),n=i(93556),o=i(81304),a=i(13437),r=i(91253),c=i(4453),l=i(32269),d=i(48802),_=i(13522),u=i(93982),p=i(18398),m=i(98589),h=i(55654),g=i(25181),E=i(23036);class A extends l.jG{constructor(e){super(),this._store=e,this._events=void 0,this._model=void 0,this._listenersUpdaters=void 0;const t=(0,u.Zc)(e,_.A.ON_MODEL_CHANGE);this.addDisposable(t((e=>{this._model=e})))}_get(){const e=this._store,t=(0,s.My)(e),{blocks:i,emails:l,comments:A,emailRevisions:v}=(0,n.zC)(t),f=(0,u.Zc)(e,E.Wk),O=(0,u.Zc)(e,_.A.ON_SAVEBUTTON_CLICK_ID),D=(0,u.Zc)(e,_.A.ON_PREVIOUSBUTTON_CLICK_ID),T=(0,u.Zc)(e,_.A.ON_NEXTBUTTON_CLICK_ID),I=(0,u.Zc)(e,_.A.ON_EMAIL_INIT_ID),S=(0,u.Zc)(e,_.A.ON_EMAIL_CHANGED_ID),L=(0,u.Zc)(e,_.A.ON_CONTENT_CHANGED_ID),C=(0,u.Zc)(e,_.A.ON_SEND_TESTEMAIL_ID),b=(0,u.Zc)(e,_.A.ON_SEND_EMAIL_MODAL_ID),y=(0,u.Zc)(e,_.A.ON_EMAIL_CLONE_ID),N=(0,u.Zc)(e,_.A.ON_SHARE_ID),M=(0,u.Zc)(e,_.A.ON_SHOW_PREVIEW_ID),P=(0,u.Zc)(e,_.A.ON_SEND_LIVEPREVIEW_ID),w=(0,u.Zc)(e,_.A.ON_CODE_VALIDATE_ID);return{handleValidate:(0,d.m)(w,(e=>this._model?e.map((e=>(0,g.B)(this._model,e))):[])),handleReadEmail:(0,d.m)(l.handlerRead,(e=>e),(t=>t&&(0,o.I)(t,e))),handleSaveEmail:(0,d.m)(l.onSave,(function({prev:t,patch:i,value:s,source:n}){const a=t?(0,o.E)(t,e):void 0;return{prev:a,patch:(0,m.g)(a,(0,o.E)(i,e)),value:(0,o.E)(s,e),source:n}}),(t=>t?(0,o.I)(t,e):void 0)),handleRemoveEmail:(0,d.m)(l.onRemove,(({value:t,source:i})=>({value:(0,o.E)(t,e),source:i})),(()=>{})),handleReadTemplateBlocks:(0,d.m)(f,(t=>(0,p.jY)(e.getState())||String(t)),(t=>null===t||void 0===t?void 0:t.map((t=>(0,a.i)(t,e))))),handleReadBlocks:(0,d.m)(i.byForeignKey("project").handleRead,(t=>(0,p.jY)(e.getState())||String(t)),(t=>null===t||void 0===t?void 0:t.map((t=>(0,a.i)(t,e))))),handleSaveBlock:(0,d.m)(i.onSave,(function({prev:t,patch:i,value:s,source:n}){const o=t?(0,a.A)(t,e):void 0;return{prev:o,patch:(0,m.g)(o,(0,a.A)(i,e)),value:(0,a.A)(s,e),source:n}}),(t=>t?(0,a.i)(t,e):void 0)),handleRemoveBlock:(0,d.m)(i.onRemove,(({value:t,source:i})=>({value:(0,a.A)(t,e),source:i})),(()=>{})),handleReadComments:(0,d.m)(A.byForeignKey("post").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>(0,r.y)(t,e))))),handleSaveComment:(0,d.m)(A.onSave,(function({prev:t,patch:i,value:s,source:n}){const o=t?(0,r.I)(t,e):void 0;return{prev:o,patch:(0,m.g)(o,(0,r.I)(i,e)),value:(0,r.I)(s,e),source:n}}),(t=>t?(0,r.y)(t,e):void 0)),handleRemoveComment:(0,d.m)(A.onRemove,(({value:t,source:i})=>({value:(0,r.I)(t,e),source:i})),(()=>{})),handleReadEmailRevisions:(0,d.m)(v.byForeignKey("parent").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>(0,c._)(t,e))))),handleEmailAutosave:(0,d.m)(v.onSave,(function({prev:t,patch:i,value:s,source:n}){return{value:(0,c.E)(s,e),source:n}}),(t=>t?(0,c._)(t,e):void 0)),handleRemoveEmailAutoSave:(0,d.m)(v.onRemove,(({value:t,source:i})=>({value:(0,c.E)(t,e),source:i})),(()=>{})),handleEmailChanged:(0,d.m)((0,h.sg)(S,100),(t=>(0,o.E)(t,e))),handleEmailInit:(0,d.m)(I,(t=>(0,o.E)(t,e))),handlePreviousButtonClick:(0,d.m)(D,(t=>(0,o.E)(t,e))),handleNextButtonClick:(0,d.m)(T,(t=>(0,o.E)(t,e))),handleSaveButtonClick:(0,d.m)(O,(t=>(0,o.E)(t,e))),handleHtmlChanged:(0,d.m)((0,h.sg)(L,100)),handleTestEmailSend:(0,d.m)(C,(({html:e,...t})=>({...t,code:e,compiled:{html:e,ampHtml:""}}))),handleTestEmailModal:(0,d.m)(b,(t=>(0,o.E)(t,e))),handleCloneEmail:(0,d.m)(y,(t=>(0,o.E)(t,e))),handleShareEmail:(0,d.m)(N),handlePreviewEmail:(0,d.m)(M),handleLivePreviewEmail:(0,d.m)(P)}}get(){return this._events||(this._events=this._get())}setOptions(e={}){const t=this.get();let i=this._listenersUpdaters;if(!i){i=this._listenersUpdaters={};for(const e of Object.keys(t))i[e]=this.addDisposable(new d.U(t[e]))}for(const s of Object.keys(t))i[s].setListener(e[s])}}},93556:(e,t,i)=>{i.d(t,{QQ:()=>r,Uw:()=>c,zC:()=>a});var s=i(23036),n=i(72788),o=i(87265);function a(e){return{emails:(0,o.Av)(e),blocks:(0,s.Xy)(e),emailRevisions:(0,o.jw)(e),blocksRevision:(0,s.yc)(e),comments:(0,n.D)(e)}}function r(e){const t=Object.values(a(e));return{suspendChange(){t.forEach((e=>e.suspendChange()))},resumeChange(){t.forEach((e=>e.resumeChange()))}}}function c(e){return"string"===typeof e?{email:{code:e}}:function(e){return!e.hasOwnProperty("email")&&!e.hasOwnProperty("block")&&!e.hasOwnProperty("templateId")}(e)?{email:e}:{...e,email:"string"===typeof e.email?{code:e.email}:e.email||{}}}},8671:(e,t,i)=>{i.d(t,{e:()=>c});var s=i(14386),n=i(33288),o=i(15230),a=i(32269),r=i(48802);const c=(0,s.l)((e=>{const t=n.di.getInstance(e,o.Lz),i=t.addDisposable(new a.vl),s=(0,r.m)(i.event),c=t.addDisposable(new r.U(s));return{setOptions({handleDestroy:e}){c.setListener(e)},instance:{handleDestroy:s,destroy:()=>t.dispose()}}}))},63772:(e,t,i)=>{i.d(t,{Z:()=>l});var s=i(14386),n=i(33288),o=i(48802),a=i(15230),r=i(93982),c=i(13522);const l=(0,s.l)((e=>{const t=n.di.getInstance(e,a.Lz),i=(0,r.Zc)(e,c.A.UPLOAD_EVENT_ID),s=(0,r.Zc)(e,c.A.FILE_PROXY_EVENT_ID),l=(0,o.m)(i),d=(0,o.m)(s),_=t.addDisposable(new o.U(l)),u=t.addDisposable(new o.U(d));return{setOptions(e){_.setListener(e.handleLoadImage),u.setListener(e.handleFileProxy)},instance:{handleLoadImage:l,handleFileProxy:d}}}))},55853:(e,t,i)=>{i.d(t,{E:()=>c});var s=i(14386),n=i(33288),o=i(15230),a=i(55654),r=i(48802);const c=(0,s.l)((e=>{const t=n.di.getInstance(e,o.Lz),i=t.addDisposable(new a.vl),s=n.di.getInstanceAsync(e,o.Cd);s.then((({instance:e})=>i.fire(e)));const c=(0,r.m)(i.event),l=t.addDisposable(new r.U(c));return{setOptions({handleLoad:e}){l.setListener(e)},instance:{handleLoad:c,reset:e=>s.then((({instance:t,setOptions:i})=>Promise.resolve(i(e)).then((()=>t))))},destroy:()=>t.dispose()}}))},1281:(e,t,i)=>{i.d(t,{Z:()=>g});var s=i(14386),n=i(33288),o=i(15230),a=i(48802),r=i(13329),c=i(28316),l=(i(92810),i(814)),d=i(70082);function _(e){return"string"===typeof e?e:e?(0,d.jsx)("div",{ref:t=>null===t||void 0===t?void 0:t.replaceWith(e)}):void 0}function u(e,t="success"){return"string"===typeof e&&(e={message:e}),(0,l.TB)({type:e.type||t,data:e.data,innerException:e.innerException,message:_(e.message),description:_(e.description),btn:_(e.btn),onClose:e.onClose,duration:e.duration,icon:_(e.icon),placement:e.placement,style:e.style,closeIcon:"boolean"===typeof e.closeIcon||"undefined"===typeof e.closeIcon?e.closeIcon:_(e.closeIcon),props:e.props,role:e.role})}var p=i(13522),m=i(55654),h=i(93982);const g=(0,s.l)((e=>{const t=n.di.getInstance(e,o.Lz),i=(0,h.Zc)(e,p.A.ON_NOTIFICATION),s=(0,m.pb)(i,(e=>"error"===e.type)),l=(0,m.pb)(i,(e=>"success"===e.type)),d=(0,a.m)(i,(e=>e),(e=>"string"===typeof e||"object"===typeof e?u(e):e)),_=(0,a.m)(s,(e=>e),(e=>"string"===typeof e||"object"===typeof e?u(e,"error"):e)),g=(0,a.m)(l,(e=>e),(e=>"string"===typeof e||"object"===typeof e?u(e):e)),E=t.addDisposable(new a.U(d)),A=t.addDisposable(new a.U(_)),v=t.addDisposable(new a.U(g));return{setOptions({handleNotify:e,handleSuccess:t,handleError:i}){E.setListener(e),A.setListener(i),v.setListener(t)},instance:{notify(t){(0,r.RS)(e,c.Sb,{placement:"bottomRight",...u(t)})},handleNotify:d,handleError:_,handleSuccess:g}}}))},89949:(e,t,i)=>{i.d(t,{R:()=>a});var s=i(92810),n=i(45934),o=i(39990);const a=({onLoad:e,children:t})=>{(0,s.useEffect)((()=>{e&&e()}),[e]);const i=(0,n.wA)();return(0,s.useMemo)((()=>i(o.Q2.endpoints.getMe.initiate({}))),[i]),t}},55654:(e,t,i)=>{i.d(t,{HN:()=>d,IO:()=>o,P9:()=>a,lt:()=>u,pb:()=>c,sg:()=>l,vl:()=>_});var s=i(32269);class n extends s.jG{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,i){if(!this.isDisposed()){const s=this._listeners;i&&"function"===typeof e&&(e=e.bind(i));const n=s.findIndex((([e,i])=>t<i)),o=[e,t];return s.splice(n>=0?n:s.length,0,o),{dispose(){const e=s.indexOf(o);e>=0&&s.splice(e,1)}}}}dispose(){this._listeners.splice(0,this._listeners.length),super.dispose()}}class o extends n{constructor(...e){super(...e),this.fire=this._fire.bind(this)}execute(e,t){for(const s of t)try{s(...e)}catch(i){console.log(i)}}_fire(...e){if(!this.isDisposed())return this.execute(e,this.getListeners(e))||void 0}}function a(e,t=0){const i=new n;return i.addDisposable(e(i,t)),i.event}class r extends n{constructor(e){super(),this._filter=e}getListeners(e){return this._filter(...e)?super.getListeners(e):[]}}function c(e,t,i=0){const s=new r(t);return s.addDisposable(e(s,i)),s.event}function l(e,t=0,i=0){const s=new o;let n,a=0;return s.addDisposable(e(((...e)=>{n=e,a||(a=setTimeout((()=>{s.fire(...n),a=0}),t))}),i)),s.event}class d extends o{constructor(...e){super(...e),this._suspendCounter=0,this._wasFired=!1}proccessResult(){}execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(const s of t)try{s(e)}catch(i){console.log(i)}}suspend(){this._suspendCounter++}resume(){0===--this._suspendCounter&&(this._wasFired&&this.fire(),this._wasFired=!1)}}class _ extends o{execute([e],t){for(const s of t)try{s(e)}catch(i){console.log(i)}}}class u extends o{async execute([e],t){const i=[];for(const s of t){const t=await s(e);i.push(t)}return i}}},48802:(e,t,i)=>{i.d(t,{U:()=>o,m:()=>a});var s=i(32269),n=i(55654);class o extends s.jG{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 a(e,t,i){const s=(0,n.P9)(e);return(e,n,o)=>{const a=s((async s=>{const n=t?t(s):s;o&&e.bind(o);const a=await e(n);return i?i(a):a}),n,o);return()=>a.dispose()}}},13652:(e,t,i)=>{i.d(t,{y:()=>s});const s=e=>{let t={current:Promise.resolve(),state:e,decorate:(e,i)=>(i&&(e=e.bind(i)),function(...i){const s=t.current.then((()=>e(...i)));return t.current=s.then((e=>{t.state=e}),(e=>{console.log(e)})),s})};return t}},18398:(e,t,i)=>{i.d(t,{Ay:()=>T,EV:()=>O,GH:()=>m,Ir:()=>h,Kj:()=>D,RP:()=>_,_R:()=>E,bn:()=>A,ee:()=>v,jY:()=>p,p5:()=>u,s0:()=>l,zg:()=>d});var s=i(90536),n=i(31770),o=i(99751);const a="configSlice",r=(0,n.ur)((0,o.$)("pro")),c=(0,s.createSlice)({name:a,initialState:{...r,initialMergeTags:void 0},reducers:{setPage:(e,t)=>{e.page=t.payload},setConfig:(e,t)=>{e.config={...r.config,...t.payload}},changeConfigMode:(e,t)=>{var i,s,n;const a=null!==(i=null===e||void 0===e||null===(s=e.advancedConfigs)||void 0===s?void 0:s[t.payload])&&void 0!==i?i:null===(n=(0,o.$)(t.payload))||void 0===n?void 0:n.config;if("simple"!==e.config.mode&&"simple"!==t.payload){const t={...e.config,...Object.fromEntries(Object.entries(a).filter((([e])=>o.i.includes(e))))};e.config=t}else e.config={...e.config,...(0,o.$)(t.payload).config}},setInitialMergeTags:(e,t)=>{e.initialMergeTags=t.payload},setMergeTags:(e,t)=>{e.config.mergeTags=t.payload},updateConfig:(e,t)=>{e.config={...e.config,...t.payload}},setProject:(e,t)=>{e.project=t.payload},setAdvancedConfigs:(e,t)=>{e.advancedConfigs=t.payload}},extraReducers:e=>{}}),l=e=>e[a].page,d=e=>e[a].config,_=e=>e[a].config.themes,u=e=>e[a].config.styles,p=e=>e[a].project,m=e=>e[a].config.mergeTags||e[a].initialMergeTags,{setPage:h,setConfig:g,updateConfig:E,setProject:A,setAdvancedConfigs:v,setMergeTags:f,changeConfigMode:O,setInitialMergeTags:D}=c.actions,T=c},47358:(e,t,i)=>{i.d(t,{Ay:()=>j,B:()=>b,Bp:()=>I,CS:()=>P,Ct:()=>M,Fk:()=>h,Fv:()=>R,M7:()=>L,N6:()=>D,NQ:()=>N,Oo:()=>p,PM:()=>m,Tn:()=>B,Uf:()=>v,V$:()=>k,Wm:()=>y,cL:()=>C,mi:()=>g,oG:()=>U,qf:()=>u,sy:()=>S,vc:()=>E,vs:()=>A,wW:()=>f,wr:()=>O,yy:()=>w});var s=i(90536),n=i(85163),o=i(31770),a=i(55701);const r=window.localStorage.getItem(n.V0.em_code_mode_settings),c=r&&JSON.parse(r),l=(0,o.ur)({activeModal:"",lastActiveSettingsTab:n.Bv,activeSettingsTab:n.Bv,isPanelHistoryCollapsed:!0,monacoHeight:0,isCodeMode:(null===c||void 0===c?void 0:c.isCodeMode)||n.EW.isPlugin,codeModeDirection:(null===c||void 0===c?void 0:c.codeModeDirection)||"left",emailWidth:"100%",emailViewType:n.Vp,mobileViewActive:{shutdown:!0,styles:!0},emailMaxWidthSize:425,propertiesPanelKey:n.WU,parentBlocks:[],isGlobalLoading:!1}),d="emailPageSlice",_=(0,s.createSlice)({name:d,initialState:l,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 i=t.payload;e.isCodeMode!==i&&(e.isCodeMode=i,window.localStorage.setItem(n.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:i})))},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}},extraReducers:e=>{e.addMatcher(a.VM.endpoints.getParentEmailBlocks.matchFulfilled,((e,t)=>{e.parentBlocks=t.payload}))}}),{openModal:u,closeModal:p,setActiveSettingsTab:m,resetToLastActiveSettingsTab:h,switchIsPanelHistoryCollapsed:g,setEmailWidth:E,switchCodeMode:A,switchCodeModeDirection:v,setMobileViewActive:f,setEmailViewType:O,setCodeMode:D,setEmailMaxWidthSize:T,setPropertiesPanelKey:I,resetParentBlocks:S,setIsGlobalLoading:L}=_.actions,C=e=>e[d].activeModal,b=e=>e[d].activeSettingsTab,y=e=>e[d].isPanelHistoryCollapsed,N=e=>e[d].emailWidth,M=e=>e[d].emailViewType,P=e=>e[d].mobileViewActive,w=e=>e[d].codeModeDirection,R=e=>e[d].isCodeMode,B=e=>e[d].propertiesPanelKey,k=e=>e[d].parentBlocks,U=e=>e[d].isGlobalLoading,j=_},57964:()=>{}}]);
@@ -1 +0,0 @@
1
- (globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[7269],{88647:(t,e,n)=>{"use strict";n.d(e,{h:()=>a});var i,d=n(92810);function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},l.apply(null,arguments)}function r({title:t,titleId:e,...n},r){return d.createElement("svg",l({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",ref:r,"aria-labelledby":e},n),t?d.createElement("title",{id:e},t):null,i||(i=d.createElement("path",{d:"M6.5 1.143H5.25A4.108 4.108 0 0 0 1.143 5.25V6.5c0 .078.064.143.142.143h1a.143.143 0 0 0 .143-.143V5.25A2.82 2.82 0 0 1 5.25 2.428H6.5a.143.143 0 0 0 .143-.143v-1a.143.143 0 0 0-.143-.142ZM14.857 6.5V5.25a4.108 4.108 0 0 0-4.107-4.107H9.5a.143.143 0 0 0-.143.142v1c0 .079.064.143.143.143h1.25A2.82 2.82 0 0 1 13.57 5.25V6.5c0 .078.065.143.143.143h1a.143.143 0 0 0 .143-.143ZM9.5 14.857h1.25a4.108 4.108 0 0 0 4.107-4.107V9.5a.143.143 0 0 0-.143-.143h-1a.143.143 0 0 0-.143.143v1.25a2.82 2.82 0 0 1-2.821 2.821H9.5a.143.143 0 0 0-.143.143v1c0 .079.064.143.143.143ZM1.143 9.5v1.25a4.108 4.108 0 0 0 4.107 4.107H6.5a.143.143 0 0 0 .143-.143v-1a.143.143 0 0 0-.143-.143H5.25a2.82 2.82 0 0 1-2.822-2.821V9.5a.143.143 0 0 0-.143-.143h-1a.143.143 0 0 0-.142.143Z",fill:"inherit"})))}const a=d.forwardRef(r);n.p},79154:(t,e,n)=>{"use strict";n.d(e,{h:()=>a});var i,d=n(92810);function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},l.apply(null,arguments)}function r({title:t,titleId:e,...n},r){return d.createElement("svg",l({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",ref:r,"aria-labelledby":e},n),t?d.createElement("title",{id:e},t):null,i||(i=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.39 3.12h7.383c.242 0 .438.195.438.437v3.719a.437.437 0 0 1-.438.437H9.547v3.227a.437.437 0 0 1-.438.437H1.727a.437.437 0 0 1-.438-.437V7.22c0-.241.196-.437.438-.437h3.226V3.557c0-.242.196-.438.438-.438Zm.493 7.327h2.734V7.713H5.883v2.734Zm3.664-3.664h2.734V4.05H9.547v2.734Z",fill:"inherit"})))}const a=d.forwardRef(r);n.p},40829:t=>{t.exports=({__:t})=>`<style em="styles">\n amp-accordion > section > * {\n background: none !important;\n padding: 0 !important;\n border: none !important;\n overflow: visible !important;\n }\n</style>\n<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <amp-accordion disable-session-states animate expand-single-section>\n <section>\n <div>\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tr>\n <td style="padding: 10px 0; border-bottom: 1px solid #CCCCCC;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;"><strong>${t("Section title")}</strong></div>\n </td>\n </tr>\n </table>\n </div>\n <div>\n <table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom">\n <tr>\n <td style="padding: 10px 0;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")}</div>\n </td>\n </tr>\n </table>\n </div>\n </section>\n </amp-accordion>\n</td></tr></table>`},95550:t=>{t.exports=({__:t})=>`<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n }\n</style>\n<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding: 10px 0;">\n <table cellpadding="0" cellspacing="0" border="0" width="200" class="em-mob-width-100perc">\n <tr>\n <td align="center" valign="middle" height="41" style="background-color: #1C52DC; border-radius: 5px; height: 41px;">\n <a href="" target="_blank" style="display: block; height: 41px; font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; color: #FFFFFF; font-size: 16px; line-height: 41px; text-decoration: none; white-space: nowrap;">\n ${t("Button")}\n </a>\n </td>\n </tr>\n </table>\n</td></tr></table>`},78588:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <amp-carousel width="800" height="600" layout="responsive" type="slides" controls>\n <amp-img src="${t("https://cdn.useblocks.io/1351/241031_18_JoH0f3E.png")}" width="800" height="600" layout="responsive" alt=""></amp-img>\n <amp-img src="${t("https://cdn.useblocks.io/1351/241031_18_aJAY1Xz.png")}" width="800" height="600" layout="responsive" alt=""></amp-img>\n <amp-img src="${t("https://cdn.useblocks.io/1351/241031_18_OQEyMEF.png")}" width="800" height="600" layout="responsive" alt=""></amp-img>\n </amp-carousel>\n</td></tr></table>`},59817:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const i=new Date,d=new Date(+i+432e6).toISOString(),l=-(new Date).getTimezoneOffset()/60,r=t=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td align="center"><img class="em-countdown" em-cd-settings="locale=${t.replace("_","-")}&bg=FFFFFF&tp=false&color1=000000&color2=959595&size1=72&size2=28&font1=roboto&font2=roboto&border=10&delimiter=:&spacing=10&time=${d}&timezone=${l}&frames=20" src="${(t=>`https://cdt3.emcdn.ru/timer?locale=${t.replace("_","-")}&bg=FFFFFF&tp=false&color1=000000&color2=959595&size1=72&size2=28&font1=roboto&font2=roboto&border=10&delimiter=:&spacing=10&time=${d}&timezone=${l}&frames=20`)(t)}" border="0" alt="" style="display: block;" /></td></tr></table>`},44789:t=>{t.exports='<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td height="0" style="padding: 20px 0 0; border-top: 1px solid #EEEEEE;">&nbsp;</td></tr></table>'},50483:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding: 20px 0 10px;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 24px; line-height: 32px; color: #333333;"><strong>${t("Header text")}</strong></div>\n</td></tr></table>`},74436:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <img src=${n.p+"static/media/empty-image.png"} width="150" border="0" alt="" style="display: block; width: 100%; max-width: 150px;" />\n</td></tr></table>`},24358:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <img class="em-ai-img em-just-inserted" src="${n.p+"static/media/ai-image.png"}" width="150" border="0" alt="" style="display: block; width: 100%; max-width: 150px;" />\n</td></tr></table>`},35465:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding-bottom: 10px;">\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tr>\n <td align="left" valign="top" width="10">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">1.</div>\n </td>\n <td width="10">&nbsp;</td>\n <td align="left" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")}</div>\n </td>\n </tr>\n </table>\n</td></tr></table>`},71811:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding-bottom: 10px;">\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tr>\n <td align="left" valign="top" width="10">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">&bull;</div>\n </td>\n <td width="10">&nbsp;</td>\n <td align="left" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")}</div>\n </td>\n </tr>\n </table>\n</td></tr></table>`},19032:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <table border="0" cellspacing="0" cellpadding="0">\n <tr>${[n.p+"static/media/tg.png",n.p+"static/media/yt.png",n.p+"static/media/vk.png",n.p+"static/media/yd.png",n.p+"static/media/tw.png",n.p+"static/media/ig.png",n.p+"static/media/fb.png"].map((t=>`\n <td width="40" align="center">\n <a href="" target="_blank"><img src="${t}" width="30" border="0" alt="" style="display: block;" /></a>\n </td>`)).join("")}\n </tr>\n </table>\n</td></tr></table>`},77098:t=>{t.exports='<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td height="20"></td></tr></table>'},48304:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom">\n <tr>\n <td align="center" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Column")} 1</div>\n </td>\n <td align="center" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Column")} 2</div>\n </td>\n <td align="center" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Column")} 3</div>\n </td>\n </tr>\n</table>`},42797:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding-bottom: 10px;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")}</div>\n</td></tr></table>`},79757:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <img class="em-video" src="${n.p+"static/media/video.png"}" width="150" border="0" alt="" style="display: inline-block; width: 100%; max-width: 150px;" />\n</td></tr></table>`},35880:t=>{t.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'},573:t=>{t.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>'},47520:(t,e,n)=>{"use strict";n.d(e,{AO:()=>j,Ai:()=>b,NW:()=>B,RM:()=>m,TW:()=>O,Ze:()=>M,ok:()=>N,xc:()=>D,yy:()=>S});n(92810);var i=n(81662),d=n(7228),l=n(9588),r=n(37517),a=n(73035),s=n(27071),o=n(86657),c=n(85163),p=n(70082);const m=({linkProtocol:t})=>{switch(t){case"https://":default:return(0,p.jsx)(d.A,{rev:""});case"mailto:":return(0,p.jsx)(l.A,{rev:""});case"tel:":return(0,p.jsx)(r.A,{rev:""});case"sms:":return(0,p.jsx)(a.A,{rev:""});case"ftp://":return(0,p.jsx)(s.A,{rev:""});case"skype:":return(0,p.jsx)(o.A,{rev:""})}},b=({handleLinkProtocolsChange:t,linkProtocol:e,__:n})=>(0,p.jsx)(i.A,{style:{width:90,textAlign:"left"},value:e,onChange:t,getPopupContainer:t=>t.parentNode,options:[{value:"https://",label:n("Site")},{value:"mailto:",label:n("E-mail")},{value:"tel:",label:n("Phone")},{value:"sms:",label:n("SMS")},{value:"ftp://",label:n("File")},{value:"skype:",label:n("Skype")},{value:"viber:",label:n("Viber")},{value:"",label:n("Other")}]}),{mobileBorderRadiusAll:u,mobileRadiusTopLeft:g,mobileRadiusBottomLeft:h,mobileRadiusTopRight:v,mobileRadiusBottomRight:f,borderRadiusBottomRight:w,borderRadiusTopRight:x,borderRadiusBottomLeft:y,borderRadiusTopLeft:A,alt:R,src:_,title:E,link:k,borderRadiusAll:T,imgReplacer:I,expanded:C}={link:"link",borderRadiusBottomRight:"borderRadiusBottomRight",borderRadiusTopRight:"borderRadiusTopRight",borderRadiusBottomLeft:"borderRadiusBottomLeft",borderRadiusTopLeft:"borderRadiusTopLeft",mobileBorderRadiusAll:"mobileBorderRadiusAll",mobileRadiusTopLeft:"mobileRadiusTopLeft",mobileRadiusBottomLeft:"mobileRadiusBottomLeft",mobileRadiusTopRight:"mobileRadiusTopRight",mobileRadiusBottomRight:"mobileRadiusBottomRight",alt:"alt",imgReplacer:"imgReplacer",src:"src",title:"title",borderRadiusAll:"borderRadiusAll",expanded:"expanded"},S={paddingTop:"top",paddingLeft:"left",paddingRight:"right",paddingBottom:"bottom",mobilePaddingTop:"top",mobilePaddingLeft:"left",mobilePaddingRight:"right",mobilePaddingBottom:"bottom"},L={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},B={mobileBorderRadiusAll:"all",mobileRadiusTopLeft:"topLeft",mobileRadiusBottomLeft:"bottomLeft",mobileRadiusTopRight:"topRight",mobileRadiusBottomRight:"bottomRight"},O=(t,e)=>t.startsWith("mailto:")?"mailto:":t.startsWith("tel:")?"tel:":t.startsWith("sms:")?"sms:":t.startsWith("ftp://")?"ftp://":t.startsWith("skype:")?"skype:":t.startsWith("viber:")?"viber:":e,N=t=>t||(0===t?"0":""),D=t=>t&&"auto"!==t?t:0===t?"0":"";function j(t){var e,n,i,d,l,r,a,s,o,c,p,m,b,u,g,h,v,f,w,x;let y={...t,link:t.link?t.link:"https://",borderRadiusAll:N(null===(e=t.borderRadius)||void 0===e?void 0:e.all),borderRadiusTopLeft:N(null===(n=t.borderRadius)||void 0===n?void 0:n.topLeft),borderRadiusBottomLeft:N(null===(i=t.borderRadius)||void 0===i?void 0:i.bottomLeft),borderRadiusTopRight:N(null===(d=t.borderRadius)||void 0===d?void 0:d.topRight),borderRadiusBottomRight:N(null===(l=t.borderRadius)||void 0===l?void 0:l.bottomRight),mobileBorderRadiusAll:N(null===(r=t.mobileBorderRadius)||void 0===r?void 0:r.all),mobileRadiusTopLeft:N(null!==(null===(a=t.mobileBorderRadius)||void 0===a?void 0:a.topLeft)?null===(s=t.mobileBorderRadius)||void 0===s?void 0:s.topLeft:null===(o=t.mobileBorderRadius)||void 0===o?void 0:o.all),mobileRadiusBottomLeft:N(null!==(null===(c=t.mobileBorderRadius)||void 0===c?void 0:c.bottomLeft)?null===(p=t.mobileBorderRadius)||void 0===p?void 0:p.bottomLeft:null===(m=t.mobileBorderRadius)||void 0===m?void 0:m.all),mobileRadiusTopRight:N(null!==(null===(b=t.mobileBorderRadius)||void 0===b?void 0:b.topRight)?null===(u=t.mobileBorderRadius)||void 0===u?void 0:u.topRight:null===(g=t.mobileBorderRadius)||void 0===g?void 0:g.all),mobileRadiusBottomRight:N(null!==(null===(h=t.mobileBorderRadius)||void 0===h?void 0:h.bottomRight)?null===(v=t.mobileBorderRadius)||void 0===v?void 0:v.bottomRight:null===(f=t.mobileBorderRadius)||void 0===f?void 0:f.all),show:t.show?t.show:"all",altSrc:t.src};var A,R;t.video&&(y.videoPlayButton=null!==(A=t.video.playButton)&&void 0!==A?A:"youtube_red",y.videoSource=null!==(R=t.video.source)&&void 0!==R?R:"");if((null===(w=t.carouselImages)||void 0===w?void 0:w.length)>0){var _;let e={};null===(_=t.carouselImages)||void 0===_||_.map(((t,n)=>(Object.keys(t).forEach((i=>{e[i+"_"+n]=t[i]})),!0))),y.images=e}if((null===(x=t.sections)||void 0===x?void 0:x.length)>0){var E;let e=[];null===(E=t.sections)||void 0===E||E.map(((t,n)=>(e.push({[`expanded_${n}`]:t.expanded}),!0))),y.sections=e}return y}function M(t,e,n){const i=n.hasOwnProperty("images"),d=n.hasOwnProperty("sections"),l=Object.keys(i?n.images:d?n.sections:n)[0],r=i?n.images:d?n.sections:n;let a={};const s=e.getFieldsValue(!0);switch(l.split("_")[0]){case E:case _:case R:case I:if(i){let e=[...t.carouselImages];e[l.split("_")[1]][l.split("_")[0]]=r[l],a={carouselImages:e}}else a=r;break;case C:if(d){let e=[...t.sections];e[l.split("_")[1]][l.split("_")[0]]=r[l],a={sections:e}}break;case k:let n=r[l];"https://http"===n.substring(0,12)&&(n=n.substring(8,n.length)),t.type===c.bV.CAROUSEL?(a.carouselImages=t.carouselImages,i?(e.setFieldValue(["images",[k+"_"+l.split("_")[1]]],n),a.carouselImages[l.split("_")[1]].link=n,a.link="",e.setFieldValue(k,"https://")):(t.carouselImages.forEach(((t,i)=>{e.setFieldValue(["images",k+"_"+i],n),a.carouselImages[i].link=n,a.link=n})),e.setFieldValue(k,n))):(e.setFieldValue(k,n),a.link=n);break;case T:a={borderRadius:{...t.borderRadius,[L[A]]:s[A],[L[y]]:s[y],[L[x]]:s[x],[L[w]]:s[w],[L[l]]:+r[l]}};break;case A:case y:case x:case w:a={borderRadius:{...t.borderRadius,[L[T]]:null,[L[l]]:+r[l]}};break;case u:case g:case h:case v:case f:a={mobileBorderRadius:{...t.mobileBorderRadius,[B[g]]:s[g],[B[h]]:s[h],[B[v]]:s[v],[B[f]]:s[f],[B[l]]:r[l],classNamePrefix:"em-mob-border_radius_"+B[l]+"-"}};break;default:a=r}return{...t,...a}}},28073:(t,e,n)=>{"use strict";function i(t,e){return{[t]:{Filter:e("Filter"),filter:e("filter"),Resize:e("Resize"),resize:e("resize"),Crop:e("Crop"),Width:e("Width"),width:e("width"),Height:e("Height"),height:e("height"),"Background color":e("Background color"),Cancel:e("Cancel"),Create:e("Create"),Objects:e("Objects"),Quality:e("Quality"),Save:e("Save"),"Loading Canvas":e("Loading Canvas"),"Loading Image":e("Loading Image"),"Loading State":e("Loading State"),"Processing Image":e("Processing Image"),Close:e("Close"),Apply:e("Apply"),Font:e("Font"),Color:e("Color"),Background:e("Background"),Image:e("Image"),Opacity:e("Opacity"),Outline:e("Outline"),Shadow:e("Shadow"),Gradient:e("Gradient"),Texture:e("Texture"),"Replace Image":e("Replace Image"),"Outline Color":e("Outline Color"),"Shadow Color":e("Shadow Color"),"Font Size":e("Font Size"),Radius:e("Radius"),"Brush Color":e("Brush Color"),"Brush Type":e("Brush Type"),"Brush Size":e("Brush Size"),History:e("History"),"Maintain aspect ratio":e("Maintain aspect ratio"),"New Text":e("New Text"),Size:e("Size"),Draw:e("Draw"),Text:e("Text"),Stickers:e("Stickers"),Frame:e("Frame"),Shapes:e("Shapes"),Corners:e("Corners"),corners:e("corners"),Done:e("Done"),"Applied Filters":e("Applied Filters"),"Resized Image":e("Resized Image"),"Cropped Image":e("Cropped Image"),"Added Drawing":e("Added Drawing"),"Added Text":e("Added Text"),"Added Shape":e("Added Shape"),"Added Sticker":e("Added Sticker"),"Added Frame":e("Added Frame"),"Merged Objects":e("Merged Objects"),"Rounded Corner":e("Rounded Corner"),"Replaced Background Image":e("Replaced Background Image"),"Added Image":e("Added Image"),Initial:e("Initial"),"Loaded State":e("Loaded State"),"Changed Style":e("Changed Style"),"Deleted object":e("Deleted object"),Merge:e("Merge"),Emoticons:e("Emoticons"),Doodles:e("Doodles"),Landmarks:e("Landmarks"),Bubbles:e("Bubbles"),Transportation:e("Transportation"),Beach:e("Beach"),PencilBrush:e("PencilBrush"),SprayBrush:e("SprayBrush"),CircleBrush:e("CircleBrush"),DiamondBrush:e("DiamondBrush"),VLineBrush:e("VLineBrush"),HLineBrush:e("HLineBrush"),SquareBrush:e("SquareBrush"),Square:e("Square"),square:e("square")}}}n.d(e,{g:()=>i})},69029:t=>{t.exports='<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n\n .em-mob-wrap {\n display: block!important;\n }\n\n .em-mob-padding_right-20 {\n padding-right: 20px!important;\n }\n \n .em-mob-padding_left-20 {\n padding-left: 20px!important;\n }\n }\n</style>\n<tr em="block" class="em-structure">\n <td align="center" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20">\n <table border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">\n <tr>\n <td width="580" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n </tr>\n </table>\n </td>\n</tr>'},41579:t=>{t.exports='<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n\n .em-mob-wrap {\n display: block!important;\n }\n\n .em-mob-padding_right-20 {\n padding-right: 20px!important;\n }\n \n .em-mob-padding_left-20 {\n padding-left: 20px!important;\n }\n\n .em-mob-height-20px {\n height: 20px!important;\n }\n }\n</style>\n<tr em="block" class="em-structure">\n <td align="center" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20">\n <table border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">\n <tr>\n <td width="180" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="380" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n </tr>\n </table>\n </td>\n</tr>'},8456:t=>{t.exports='<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n\n .em-mob-wrap {\n display: block!important;\n }\n\n .em-mob-padding_right-20 {\n padding-right: 20px!important;\n }\n \n .em-mob-padding_left-20 {\n padding-left: 20px!important;\n }\n\n .em-mob-height-20px {\n height: 20px!important;\n }\n }\n</style>\n<tr em="block" class="em-structure">\n <td align="center" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20">\n <table border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">\n <tr>\n <td width="280" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="280" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n </tr>\n </table>\n </td>\n</tr>'},70869:t=>{t.exports='<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n\n .em-mob-wrap {\n display: block!important;\n }\n\n .em-mob-padding_right-20 {\n padding-right: 20px!important;\n }\n \n .em-mob-padding_left-20 {\n padding-left: 20px!important;\n }\n\n .em-mob-height-20px {\n height: 20px!important;\n }\n }\n</style>\n<tr em="block" class="em-structure">\n <td align="center" dir="rtl" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20">\n <table border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">\n <tr>\n <td width="180" dir="ltr" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="380" dir="ltr" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n </tr>\n </table>\n </td>\n</tr>'},20931:t=>{t.exports='<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n\n .em-mob-wrap {\n display: block!important;\n }\n\n .em-mob-padding_right-20 {\n padding-right: 20px!important;\n }\n \n .em-mob-padding_left-20 {\n padding-left: 20px!important;\n }\n\n .em-mob-height-20px {\n height: 20px!important;\n }\n }\n</style>\n<tr em="block" class="em-structure">\n <td align="center" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20">\n <table border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">\n <tr>\n <td width="180" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="180" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="180" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n </tr>\n </table>\n </td>\n</tr>'},24186:t=>{t.exports='<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n\n .em-mob-wrap {\n display: block!important;\n }\n\n .em-mob-padding_right-20 {\n padding-right: 20px!important;\n }\n \n .em-mob-padding_left-20 {\n padding-left: 20px!important;\n }\n\n .em-mob-height-20px {\n height: 20px!important;\n }\n }\n</style>\n<tr em="block" class="em-structure">\n <td align="center" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20">\n <table border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">\n <tr>\n <td width="130" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="130" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="130" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n <td width="20" class="em-mob-wrap em-mob-height-20px"></td>\n <td width="130" valign="top" class="em-mob-wrap em-mob-width-100perc"></td>\n </tr>\n </table>\n </td>\n</tr>'},68694:t=>{t.exports='\n<style>\n\t@media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {\n\t\t.em-mob-width-100perc {\n\t\t\twidth: 100% !important;\n\t\t\tmax-width: 100% !important;\n\t\t}\n\n\t\t.em-mob-width-91perc {\n\t\t\twidth: 91% !important;\n\t\t\tmax-width: 91% !important;\n\t\t}\n\t}\n</style>\n<tr em="block" class="em-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center" valign="top">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30"></td></tr></table>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t<table border="0" cellspacing="0" cellpadding="0">\n\t\t\t\t\t<tr><td width="660" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 100%; max-width: 660px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="602" border="0" cellspacing="0" cellpadding="0" style="width: 91%; max-width: 602px;" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t</table><![endif]--\x3e\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="10"></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n\n'},38610:t=>{t.exports='\n<style>\n\t@media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {\n\t\t.em-mob-width-100perc {\n\t\t\twidth: 100% !important;\n\t\t\tmax-width: 100% !important;\n\t\t}\n\n\t\t.em-mob-width-91perc {\n\t\t\twidth: 91% !important;\n\t\t\tmax-width: 91% !important;\n\t\t}\n\t}\n</style>\n<tr em="block" class="em-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center" valign="top">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30"></td></tr></table>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t<table border="0" cellspacing="0" cellpadding="0">\n\t\t\t\t\t<tr><td width="207" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 207px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="187" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]></td><td width="413" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 413px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="393" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t</table><![endif]--\x3e\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="10"></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n\n'},41705:t=>{t.exports='\n<style>\n\t@media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {\n\t\t.em-mob-width-100perc {\n\t\t\twidth: 100% !important;\n\t\t\tmax-width: 100% !important;\n\t\t}\n\n\t\t.em-mob-width-91perc {\n\t\t\twidth: 91% !important;\n\t\t\tmax-width: 91% !important;\n\t\t}\n\t}\n</style>\n<tr em="block" class="em-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center" valign="top">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30"></td></tr></table>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t<table border="0" cellspacing="0" cellpadding="0">\n\t\t\t\t\t<tr><td width="311" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 311px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="291" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]></td><td width="311" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 311px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="291" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t</table><![endif]--\x3e\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="10"></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n\n'},73248:t=>{t.exports='\n<style>\n\t@media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {\n\t\t.em-mob-width-100perc {\n\t\t\twidth: 100% !important;\n\t\t\tmax-width: 100% !important;\n\t\t}\n\n\t\t.em-mob-width-91perc {\n\t\t\twidth: 91% !important;\n\t\t\tmax-width: 91% !important;\n\t\t}\n\t}\n</style>\n<tr em="block" class="em-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center" valign="top">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30"></td></tr></table>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t<table border="0" cellspacing="0" cellpadding="0">\n\t\t\t\t\t<tr><td width="413" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 413px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="393" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]></td><td width="207" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 207px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="187" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t</table><![endif]--\x3e\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="10"></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n\n'},96588:t=>{t.exports='\n<style>\n\t@media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {\n\t\t.em-mob-width-100perc {\n\t\t\twidth: 100% !important;\n\t\t\tmax-width: 100% !important;\n\t\t}\n\n\t\t.em-mob-width-91perc {\n\t\t\twidth: 91% !important;\n\t\t\tmax-width: 91% !important;\n\t\t}\n\t}\n</style>\n<tr em="block" class="em-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center" valign="top">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30"></td></tr></table>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t<table border="0" cellspacing="0" cellpadding="0">\n\t\t\t\t\t<tr><td width="207" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 207px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="187" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]></td><td width="207" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 207px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="187" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]></td><td width="207" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 207px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="187" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t</table><![endif]--\x3e\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="10"></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n\n'},97433:t=>{t.exports='\n<style>\n\t@media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {\n\t\t.em-mob-width-100perc {\n\t\t\twidth: 100% !important;\n\t\t\tmax-width: 100% !important;\n\t\t}\n\n\t\t.em-mob-width-91perc {\n\t\t\twidth: 91% !important;\n\t\t\tmax-width: 91% !important;\n\t\t}\n\t}\n</style>\n<tr em="block" class="em-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center" valign="top">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30"></td></tr></table>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t<table border="0" cellspacing="0" cellpadding="0">\n\t\t\t\t\t<tr><td width="310" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 310px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="290" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t\t<td width="20">&nbsp;</td>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]></td><td width="310" valign="top" align="center"><![endif]--\x3e\n\t\t\t\t\t<div style="display: inline-block; width: 310px; vertical-align: top;" class="em-mob-width-100perc">\n\t\t\t\t\t\t<table width="290" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-91perc">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t\t<td width="20">&nbsp;</td>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t</table><![endif]--\x3e\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="10"></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n\n'},56991:(t,e,n)=>{"use strict";n.d(e,{bD:()=>r,Mu:()=>a,cM:()=>o,rD:()=>s});var i=n(45934),d=n(18398),l=n(71210);function r(t,e){if(t!==e){if(!t||!e||"object"!==typeof t||"object"!==typeof e)return!1;const n=e instanceof Array;if(t instanceof Array){if(!n)return!1;const i=t.length;if(e.length!==i)return!1;for(let n=0;n<i;n++)if(!r(t[n],e[n]))return!1}else if(n)return!1;const i=Object.keys(t),d=Object.keys(e),l=i.length;if(l!==d.length)return!1;for(let a=0;a<l;a++){const n=i[a];if(!e.hasOwnProperty(n)||!r(t[n],e[n]))return!1}}return!0}function a(t){if(t){const{type:e,project:n,isNew:i,id:d}=t;return`/projects/${n}/${"block"===e?"blocks":"emails"}/${i?`new?template=${d}`:d}`}return""}function s(){return(0,i.d4)(d.zg)}function o(t,e,n){return null!==t&&void 0!==t&&t.length?t.map(((t,i)=>function(t){return t.hasOwnProperty("children")}(t)?{key:(0,l.l)(),value:t.value,label:t.label,children:o(t.children,e,n),type:t.type}:{key:(0,l.l)(),label:t.label,value:t.value,onClick:e=>{n(t.value,e.domEvent)}})):void 0}},12264:(t,e,n)=>{"use strict";function i(){const t=new Date;return t.valueOf()-60*t.getTimezoneOffset()*1e3}n.d(e,{N:()=>i})},41664:(t,e,n)=>{"use strict";n.d(e,{Q:()=>d});var i=n(71210);function d(t=(0,i.l)()){return t}},82375:(t,e,n)=>{"use strict";n.d(e,{Q:()=>i});const i=new(n(95152).m)},30725:(t,e,n)=>{"use strict";n.d(e,{p:()=>d});var i=n(23580);function d(t){return(e,n,d,l)=>{const r=(0,i.My)(n);return t(r)(e,n,d,l)}}},77509:(t,e,n)=>{"use strict";n.d(e,{j:()=>i});class i{constructor(t=[]){this._inner=t,this._isDisposed=!1}addDisposable(t){return this._inner.push(t),t instanceof i&&t.addDispose((()=>{this.removeDisposable(t)})),t}addDispose(t){this.addDisposable({dispose:t})}removeDisposable(t){const e=this._inner.indexOf(t);e>=0&&this._inner.splice(e,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const t of[...this._inner])t.dispose()}}}},47381:(t,e,n)=>{"use strict";n.d(e,{u:()=>l});var i=n(92810),d=n(56991);const l=()=>{const t=(0,d.rD)();return(0,i.useCallback)(((e,n)=>{!1!==t.pushToGTM&&((t,e)=>{const n=()=>{try{const e={...t,appLabel:"blocks_app"};window.dataLayer&&"function"===typeof window.dataLayer.push?window.dataLayer.push(e):console.log("Attempting to add to the dataLayer:",t)}catch(e){console.error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 GTM:",e)}};e?setTimeout(n,e):n()})(e,n)}),[t.pushToGTM])}},71210:(t,e,n)=>{"use strict";function i(){var t=(new Date).getTime(),e="undefined"!==typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var i=16*Math.random();return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(e+i)%16|0,e=Math.floor(e/16)),("x"===n?i:3&i|8).toString(16)}))}n.d(e,{l:()=>i})},14004:(t,e,n)=>{"use strict";n.d(e,{i:()=>d});var i=n(44141);const d=async(t,e,n)=>{const d=(0,i.KU)(e).baseUrl.replaceAll(/[\\/]$/g,""),l=(0,i.hI)({baseUrl:d});let r=await l(t,e,n);if(r.error){let t=r.error;if("function"===typeof t.json)try{t=await t.json()}catch{t=await t,console.log("error",t)}return{error:t}}return r}},89698:(t,e,n)=>{"use strict";n.d(e,{V:()=>o});var i=n(85163),d=n(45695),l=n(23287),r=n(92810),a=n(45934),s=n(86286);function o(){const t=(0,d.QC)(),e=(0,a.d4)(s.C1),{__:n}=(0,l.s9)(),[o,c]=(0,r.useState)("");(0,r.useEffect)((()=>{if(e.locale!==o){const d=(0,i.QV)(n),l=t.onInit((()=>{t.send(i.Ru.SANDBOX_TRANSLATIONS,{name:e.locale,data:d}),c(e.locale)}));return()=>l.dispose()}}),[e.locale,o,c,n,t]),(0,r.useEffect)((()=>{const e=t.addListener(i.Ru.RELOAD,(()=>{c("")}));return()=>e.dispose()}),[c,t])}},37969:(t,e,n)=>{"use strict";n.d(e,{y:()=>s});var i=n(85163),d=n(45695),l=n(92810),r=n(70082);const a=Symbol("isIframeEvent");function s({children:t}){const[e,n]=(0,l.useState)(),[s,o]=(0,l.useState)(),[c,p]=(0,l.useState)(!1),m=(0,d.QC)();return(0,l.useEffect)((()=>{if(e){const t=m.addListener(i.Ru.APPLICATION_IFRAME_DRAG_EVENT,(t=>{if("drageleave"!==t.type&&"dragenter"!==t.type){const n=e.getBoundingClientRect(),i=t.clientX+n.x+window.scrollX,d=t.clientY+n.y+window.scrollY,l=document.elementFromPoint(i,d);if(l){const e=new DataTransfer,n=new DragEvent(t.type,{clientX:i,clientY:d,cancelable:!0,bubbles:!0,dataTransfer:e});n[a]=!0,l.dispatchEvent(n)}}}));return()=>t.dispose()}}),[m,e]),(0,l.useEffect)((()=>{const t=t=>{t[a]||p(!0)},e=t=>{t[a]||p(!1)};return window.addEventListener("dragstart",t),window.addEventListener("dragend",e),()=>{window.removeEventListener("dragstart",t),window.removeEventListener("dragend",e)}}),[s]),(0,l.useEffect)((()=>{const t=t=>{if(!t[a]){var e;const n=s.getBoundingClientRect();m.send(i.Ru.SANDBOX_DRAG_EVENT,{value:(null===(e=t.dataTransfer)||void 0===e?void 0:e.getData("Text"))||"",type:t.type,clientX:t.pageX-n.x-window.scrollX,clientY:t.pageY-n.y-window.scrollY})}};if(s)return s.addEventListener("dragenter",t),s.addEventListener("dragover",t),s.addEventListener("dragleave",t),s.addEventListener("drop",t),s.addEventListener("dragend",t),()=>{s.removeEventListener("dragenter",t),s.removeEventListener("dragover",t),s.removeEventListener("dragleave",t),s.removeEventListener("drop",t),s.removeEventListener("dragend",t)}}),[s,m]),(0,r.jsxs)("div",{ref:n,children:[c&&(0,r.jsx)("div",{ref:o,className:"iframe-provider"}),t]})}},43672:(t,e,n)=>{"use strict";n.d(e,{w:()=>o});var i=n(95838),d=n(85163),l=n(56991),r=n(45695),a=n(92810);const{useToken:s}=i.A;function o(){const t=(0,r.QC)(),{token:e}=s(),[n,i]=(0,a.useState)();(0,a.useEffect)((()=>{if(!(0,l.bD)(n,e)){const n=t.onInit((()=>{t.send(d.Ru.SANDBOX_SET_THEME_VARIABLES,e),i(e)}));return()=>n.dispose()}}),[e,n,i,t]),(0,a.useEffect)((()=>{const e=t.addListener(d.Ru.RELOAD,(()=>{i(void 0)}));return()=>e.dispose()}),[i,t])}},38920:(t,e,n)=>{"use strict";n.d(e,{r:()=>x});var i=n(85163),d=n(59287),l=n(92810),r=n(45934),a=n(64617),s=n(86739),o=n(53204),c=n(47358),p=n(65983),m=n(39738),b=n(86286),u=n(56991),g=n(32411),h=n(83863),v=n(71157),f=n(42068),w=n(47381);function x(t){const{emailId:e,projectId:n}=(0,a.g)(),x=(0,v.hN)(),y=(0,u.rD)(),A=(0,r.d4)(o.M),R=(0,g.fn)(),_=(0,l.useRef)(0),E=(0,r.d4)(m.p1),k=(0,r.d4)(c.Wm),T=(0,r.d4)(c.B),I=(0,r.d4)(b.C1),C=(0,w.u)(),[S,L]=(0,s.LX)(),B=(0,r.wA)(),{isSuccess:O,isLoading:N}=(0,s.YV)({emailId:e},{skip:!e}),[D,j]=(0,l.useState)(null);(0,l.useEffect)((()=>{if(O&&!N&&null!==E&&void 0!==E&&E.length){const n=E[0];var e;if(n&&D!==(null===t||void 0===t?void 0:t.id))null!==(e=n.slug)&&void 0!==e&&e.includes("autosave")&&R&&B((0,p.no)(n)),j(null===t||void 0===t?void 0:t.id)}}),[B,E,O,N,null===t||void 0===t?void 0:t.id,D,R,e]);const M=(0,l.useCallback)((({parent:e})=>{if(t){const l={parent:e,title:t.title,author:t.author,project:t.project,html:(null===R||void 0===R?void 0:R.getValue())||"",excerpt:t.date_gmt,subject:t.subject,preheader:t.preheader,common_styles:t.common_styles,parent_email:t.parent_email};S({emailId:t.id,body:l}).then((e=>{if(C({event:"save",action:"auto_save_email",email_id:t.id,project_id:n}),!function(t){return t.hasOwnProperty("data")}(e))throw e.error;var r,a;i.EW.isPlugin||fetch((0,d.Wv)(i.Tm,n,null===(r=e.data)||void 0===r?void 0:r.id,null===(a=e.data)||void 0===a?void 0:a.modified),{mode:"no-cors"}),x.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:l,message:""},!0)})).catch((t=>{x.fromError("EMAIL_AUTOSAVE_ERROR",l,t,!0),console.log(t)}))}}),[S,t,R,n,x,C]),[F,U]=(0,l.useState)(!1),P=(0,l.useCallback)((()=>{if((null===E||void 0===E?void 0:E.length)>0){const t=[...E].sort(((t,e)=>Date.parse(null===e||void 0===e?void 0:e.modified)-Date.parse(null===t||void 0===t?void 0:t.modified)))[0];Date.parse((new Date).toString())-Date.parse(null===t||void 0===t?void 0:t.modified)>1.5*((null===y||void 0===y?void 0:y.autosaveTimeout)||1e4)&&k&&!A&&"Discuss"!==T&&M({parent:t.id})}else k&&!A&&"Discuss"!==T&&M({parent:null})}),[E,A,k,T,M,null===y||void 0===y?void 0:y.autosaveTimeout]);(0,f.Z)((([t])=>{F&&!t&&(P(),U(!1))}),[F,P,U]);const H=null===I||void 0===I?void 0:I.autosaves,[G,V]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{G&&!A&&(clearTimeout(_.current),_.current=setTimeout((()=>U(!0)),(null===y||void 0===y?void 0:y.autosaveTimeout)||1e4),V(!1))}),[G,A,null===y||void 0===y?void 0:y.autosaveTimeout,U,V]),(0,l.useEffect)((()=>{if(H&&O&&void 0!==(null===t||void 0===t?void 0:t.id)){const e=(0,h.Og)(R,(()=>{k&&null!==t&&void 0!==t&&t.is_inited&&V(!0)}));return()=>{e.dispose()}}}),[R,V,H,O,null===t||void 0===t?void 0:t.id,k,null===t||void 0===t?void 0:t.is_inited]),(0,f.Z)((([e,n])=>{H&&O&&void 0!==(null===t||void 0===t?void 0:t.id)&&k&&null!==t&&void 0!==t&&t.is_inited&&(e===(null===t||void 0===t?void 0:t.title)&&n===(null===t||void 0===t?void 0:t.common_styles)||V(!0))}),[null===t||void 0===t?void 0:t.title,null===t||void 0===t?void 0:t.common_styles,k,O,V,null===t||void 0===t?void 0:t.id,null===t||void 0===t?void 0:t.is_inited]),(0,l.useEffect)((()=>()=>{clearTimeout(_.current)}),[I,null===t||void 0===t?void 0:t.renderGuid]),(0,l.useEffect)((()=>{clearTimeout(_.current)}),[null===t||void 0===t?void 0:t.modified]),L}},9653:(t,e,n)=>{"use strict";n.d(e,{U:()=>o});var i=n(85163),d=n(45695),l=n(32411),r=n(83863),a=n(42068),s=n(92810);const o=t=>{const e=(0,l.fn)(),n=(0,d.QC)(),o=(null===t||void 0===t?void 0:t.html)||"",c=(0,s.useRef)();c.current=t;const p=(0,s.useCallback)((t=>{const e=c.current;if(t===(null===e||void 0===e?void 0:e.renderGuid))return n.sendAsync(i.Ru.SANDBOX_INITED,{guid:e.renderGuid})}),[n]),m=(0,s.useCallback)((t=>{const e=c.current;if(t===(null===e||void 0===e?void 0:e.renderGuid))return n.sendAsync(i.Ru.SANDBOX_INIT_START,{guid:e.renderGuid})}),[n]),b=(0,s.useCallback)((async t=>{const d=c.current;if((null===d||void 0===d?void 0:d.renderGuid)===t){const t=null===o||void 0===o?void 0:o.replaceAll("\r\n","\n");try{(0,r.po)(e),e.setValue(t)}finally{(0,r.SF)(e)}const l=e.getValue();await n.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:l,guid:null===d||void 0===d?void 0:d.renderGuid})}}),[o,e,n]);(0,a.Z)((async([e])=>{const n=null===t||void 0===t?void 0:t.renderGuid;n&&n!==e&&(await m(n),await b(n),await p(n))}),[null===t||void 0===t?void 0:t.renderGuid,null===t||void 0===t?void 0:t.id,b])}},69106:(t,e,n)=>{"use strict";n.d(e,{f:()=>g});var i=n(85163),d=n(13522),l=n(45695),r=n(93982),a=n(32411),s=n(83863),o=n(42068),c=n(92810),p=n(65983),m=n(8493),b=n(45934),u=n(87686);const g=(t,e)=>{var n,g,h,v,f;const w=(0,b.wA)(),x=(0,a.fn)(),y=(0,l.QC)(),A=(0,r.ml)(d.A.WILL_EMAIL_INIT_ID),R=(0,r.ml)(d.A.ON_EMAIL_INIT_ID),_=(0,r.ml)(d.A.ON_CONTENT_CHANGED_ID),E=(0,r.ml)(d.A.ON_EMAIL_CHANGED_ID),k=(0,r.ml)(d.A.ON_MODEL_CHANGE),T=(0,c.useRef)(!1),I=(0,c.useRef)();I.current=t;const C=(0,c.useMemo)((()=>null===t||void 0===t?void 0:t.utm_parameters),[(null===t||void 0===t||null===(n=t.utm_parameters)||void 0===n?void 0:n.utm_campaign)||"",(null===t||void 0===t||null===(g=t.utm_parameters)||void 0===g?void 0:g.utm_content)||"",(null===t||void 0===t||null===(h=t.utm_parameters)||void 0===h?void 0:h.utm_medium)||"",(null===t||void 0===t||null===(v=t.utm_parameters)||void 0===v?void 0:v.utm_source)||"",(null===t||void 0===t||null===(f=t.utm_parameters)||void 0===f?void 0:f.utm_term)||"",(null===t||void 0===t?void 0:t.utm_parameters)||[]]);(0,c.useEffect)((()=>{const n=I.current;if(i.EW.isPlugin&&!T.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n.is_inited&&n){const t=x.getValue();E.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}),[x,null===t||void 0===t?void 0:t.preheader,null===t||void 0===t?void 0:t.common_styles,null===t||void 0===t?void 0:t.subject,C,E,e]),(0,o.Z)((([t])=>{t!==x&&k.fire(x)}),[x,k]),(0,c.useEffect)((()=>{if(i.EW.isPlugin){const n=x.onDidChangeContent((()=>{const n=I.current;if(!T.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const t=x.getValue();_.fire(t),E.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}));return()=>n.dispose()}}),[x,_,E,t,e]);const S=(0,c.useCallback)((async()=>{const t=I.current;try{var e;(0,s.po)(x),x.setValue((null===t||void 0===t||null===(e=t.html)||void 0===e?void 0:e.replaceAll("\r\n","\n"))||"")}finally{(0,s.SF)(x)}const n=x.getValue();await y.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:n,guid:t.renderGuid})}),[x,y]),L=(0,c.useCallback)((async()=>{const t=I.current;await y.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:x.getValue(),guid:t.renderGuid})}),[x,y]),B=(0,c.useCallback)((async()=>{const t=I.current;void 0!==t.preheader&&await y.sendAsync(i.Ru.SANDBOX_PREHEADER_UPDATE,{value:t.preheader,guid:t.renderGuid,force:!0})}),[y]),O=(0,c.useCallback)((async()=>{const t=I.current;void 0!==t.subject&&await y.sendAsync(i.Ru.SANDBOX_SUBJECT_UPDATE,{value:t.subject,guid:t.renderGuid,force:!0})}),[y]),N=(0,c.useCallback)((()=>{const t=I.current;return y.sendAsync(i.Ru.SANDBOX_INITED,{guid:t.renderGuid})}),[y]),D=(0,c.useCallback)((()=>{const t=I.current;return w(void 0===t.id?(0,m.Uh)(!0):(0,p.Wm)(!0)),R.fire({...t,id:e||t.isNew?void 0:t.id,html:x.getValue()})}),[w,R,x,e]),j=(0,c.useCallback)((()=>{const t=I.current;return y.sendAsync(i.Ru.SANDBOX_INIT_START,{guid:t.renderGuid})}),[y]),M=(0,c.useCallback)((()=>{const t=I.current;return A.fire({...t,id:e||t.isNew?void 0:t.id,html:x.getValue()})}),[A,x,e]),[F]=(0,o.c)((function*(){try{T.current=!0,yield*(0,u.T1)(j),yield*(0,u.T1)(M),yield*(0,u.T1)(S),yield*(0,u.T1)(B),yield*(0,u.T1)(O),yield*(0,u.T1)(N),yield*(0,u.T1)(D)}finally{T.current=!1}}),[S,B,O,D,M,j,N]),[U]=(0,o.c)((function*(){try{yield*(0,u.T1)(j),yield*(0,u.T1)(M),yield*(0,u.T1)(L),yield*(0,u.T1)(B),yield*(0,u.T1)(O),yield*(0,u.T1)(N),yield*(0,u.T1)(D)}catch(t){console.log(t)}}),[S,B,O,D,M,j,N]);(0,o.Z)((async([e])=>{const n=null===t||void 0===t?void 0:t.renderGuid;n&&n!==e&&F()}),[null===t||void 0===t?void 0:t.renderGuid,F]),(0,c.useEffect)((()=>{const t=y.addListenerAsync(i.Ru.RELOAD,(async()=>{await U()}));return()=>t.dispose()}),[y,U])}},14598:(t,e,n)=>{"use strict";n.d(e,{QM:()=>a,q2:()=>p});var i=n(60564),d=n.n(i),l=n(58689),r=n(81158);function a(t,e){const n=document.createElement("input");n.type="file",n.accept=t,n.multiple=!0,n.onchange=()=>{var t;null!==(t=n.files)&&void 0!==t&&t.length&&e(n.files)},n.click()}const s="index.html";function o(t,e){return t.find((function(t){return t.name.toLowerCase().endsWith(e)}))}async function c(t,e,n){return await(0,l.bc)(t,(async t=>{t=t.replace("\\","/");const n=(0,l.$l)(t);return e(t,n)}),n)}async function p(t,e,n){if(t){switch(function(t){const e=t.split(".");return e[e.length-1].toLowerCase()}(t.name)){case"zip":return async function(t,e,n){var i=new(d());const{files:r}=await i.loadAsync(t),a=Object.keys(r).map((t=>r[t])),c=r[s]||o(a,s)||o(a,".html")||o(a,".htm");if(c){const t=c.name.split("/"),i=document.location.pathname.split("/"),d=document.location.origin+i.slice(0,i.length-t.length).join("/")+"/",a=await c.async("text"),s=t.slice(0,t.length-1).join("/");return await(0,l.bc)(a,(async t=>{(t=t.replace("\\","/")).startsWith(".")&&(t=t.substring(1)),t.startsWith("/")&&(t=t.substring(1)),t.startsWith(d)&&(t=t.substring(d.length)),s&&!t.match("^(ht|f)tp(s?)://")&&(t=`${s}/${t}`);const n=r[t];if(n){const t=n.name,i=await n.async("blob");return e(i,t)}const i=(0,l.$l)(t);return e(t,i)}),n)}}(t,e,n);case"eml":{const i=await t.text(),d=(0,r.bZ)(i);if(d instanceof Error)throw d;const l="string"===typeof d?d:d.html;if("undefined"===typeof l)throw new Error("Eml not contains text/html");return c(l,e,n)}default:return c(await t.text(),e,n)}}}},44396:(t,e,n)=>{"use strict";n.d(e,{Q:()=>a});var i=n(60089),d=n(70609);const l=100;class r extends i.m{constructor(t,e,n,i){super(t,e,n,i),this._onScrollDisposable=null,this._editor=t}updateColorDecorators(t){if(this._onScrollDisposable&&(this._onScrollDisposable.dispose(),this._onScrollDisposable=null),t.length>=500){const e=this._editor;let[n,i]=[Number.MAX_VALUE,Number.MIN_VALUE];const d=()=>{const d=e.getVisibleRanges(),[r,a]=d.reduce(((t,{startLineNumber:e,endLineNumber:n})=>[Math.min(e,t[0]),Math.max(n,t[1])]),[Number.MAX_VALUE,Number.MIN_VALUE]);if(n-r>l||a-i>l){let e=t.filter((({colorInfo:t})=>{const{startLineNumber:e,endLineNumber:n}=t.range;return r-e<l&&n-a<l}));super.updateColorDecorators(e)}};this._onScrollDisposable=e.onDidScrollChange(d),d()}else super.updateColorDecorators(t)}dispose(){var t;null===(t=this._onScrollDisposable)||void 0===t||t.dispose(),super.dispose()}}function a(){(0,d.D0)(r.ID,(()=>r))}},36671:(t,e,n)=>{"use strict";n.d(e,{h:()=>y});var i=n(92810),d=n(70609),l=n(85163),r=n(32411),a=n(64037),s=n(71157),o=n(45934),c=n(86286),p=n(23287),m=n(39217),b=n(45695),u=n(77509),g=n(83863);const h=1e3,v=2e3,f=10,w="iframe_errors",x=5;function y(t,e){const{__:n}=(0,p.s9)(),y=(0,b.QC)(),A=(0,r.aD)(t),{error:R}=(0,s.hN)(),_=(0,i.useRef)(0),E=(0,i.useRef)(),k=(0,i.useRef)(!1),T=(0,o.d4)(c.C1),I=(0,i.useCallback)((t=>new Promise(((e,n)=>{const i=y.addListener(l.Ru.SANDBOX_READY,(()=>{i.dispose(),e()}));t&&setTimeout((()=>{i.dispose(),n("timeout")}))}))),[y]),C=(0,i.useCallback)((i=>{I(v).catch((t=>console.log(t))).finally((()=>{Promise.resolve().then((()=>{if(!k.current){if(++_.current){if(E.current){if(_.current<x){A.restoreSnapshot(E.current);for(let t=0;t<_.current;t++)A.undo()}}else E.current=A.createSnapshot();y.send(l.Ru.RELOAD)}setTimeout((()=>{if(0===--_.current){E.current=null;const d={past:A.getPast().slice(0,f),future:A.getFuture(),errorResolved:!k.current,text:t.getValue(),message:i.message,stack:i.stack,userId:null===T||void 0===T?void 0:T.id,entityId:null===e||void 0===e?void 0:e.id,entityType:document.location.pathname.indexOf("emails")>0?"email":"block"};console.log(d),R({id:"IFRAME_ERROR",data:d,message:n("Something went wrong")}),m.CJ.post(w,d).catch((t=>console.log(t))),k.current=!1}}),v)}}))}))}),[A,t,R,null===T||void 0===T?void 0:T.id,null===e||void 0===e?void 0:e.id,n,I,y]);(0,a.A)(l.Ru.APPLICATION_DOMPARSER_ERROR,C),(0,i.useEffect)((()=>{let n=null,i=0;function r(t){const e=[];for(const{rangeOffset:n,rangeLength:i,text:d}of t.changes)e.push({range:{start:n,end:n+i},text:d});return e}let a=!1;const s=new u.j;return s.addDisposable((0,g.Og)(t,(t=>(async t=>{if(a)await y.sendAsync(l.Ru.SANDBOX_UPDATE_ENTITY,{edits:[r(t)],guid:e.renderGuid});else if(n)n.push(t);else{n=[t];do{const t=n.splice(0,n.length);await y.sendAsync(l.Ru.SANDBOX_UPDATE_ENTITY,{edits:t.map(r),guid:e.renderGuid})}while(n.length);n=null}})(t).catch((t=>console.log(t)))))),s.addDisposable(y.addListener(l.Ru.APPLICATION_UPDATE_ENTITY,(function({guid:n,edits:l,pushUndoStop:r}){if(t&&n===e.renderGuid)try{a=!0;const e=(0,d.yc)();let n=e.canUndo(t.uri),s=e.canRedo(t.uri);const o=l.map((({text:e,range:n})=>{const i=t.getPositionAt(n.start),d=t.getPositionAt(n.end);return{text:e,range:{startColumn:i.column,startLineNumber:i.lineNumber,endColumn:d.column,endLineNumber:d.lineNumber}}}));r||n||s?t.pushEditOperations([],o,(()=>null)):t.applyEdits(o),!1!==r&&(i&&clearTimeout(i),i=setTimeout((()=>{t.pushStackElement(),i=0}),h))}finally{a=!1}}))),()=>{s.dispose(),i&&clearTimeout(i)}}),[t,y,e.renderGuid])}},32411:(t,e,n)=>{"use strict";n.d(e,{$Z:()=>m,TW:()=>c,aD:()=>p,fn:()=>b,kx:()=>a});var i=n(70609),d=n(92810),l=n(60382),r=n(33695);const a=(0,d.createContext)(null),s={editorWorkerService:"editor.worker.js",html:"html.worker.js",css:"css.worker.js",typescript:"ts.worker.js",json:"json.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"};function o(t,e){/^(\/\/)/.test(t)&&(t=window.location.protocol+t);var n=new Blob(["/*"+e+'*/importScripts("'+t+'");'],{type:"application/javascript"});return URL.createObjectURL(n)}function c(t){const e=(0,i.yc)(),[n,l]=(0,d.useState)({canUndo:e.canUndo(t.uri),canRedo:e.canRedo(t.uri)});return(0,d.useEffect)((()=>{const n=t.onDidChangeContent((()=>{setTimeout((()=>l({canUndo:e.canUndo(t.uri),canRedo:e.canRedo(t.uri)})))}));return()=>{n.dispose()}}),[t,e]),n}function p(t){function e(t){var e;const n=(null===t||void 0===t||null===(e=t.actual)||void 0===e?void 0:e._data)||new r.Ov;return n instanceof r.Ov?n:r.Ov.deserialize(n)}const n=(0,i.yc)();return(0,d.useMemo)((()=>({undo:()=>n.undo(t.uri),redo:()=>n.redo(t.uri),clear:()=>n.removeElements(t.uri),getPast:()=>{var i,d;return(null===(i=n._editStacks.get(t.uri.toString()))||void 0===i||null===(d=i._past)||void 0===d?void 0:d.map(e))||[]},getFuture:()=>{var i,d;return(null===(i=n._editStacks.get(t.uri.toString()))||void 0===i||null===(d=i._future)||void 0===d?void 0:d.map(e))||[]},canUndo:()=>n.canUndo(t.uri),canRedo:()=>n.canRedo(t.uri),createSnapshot:()=>n.createSnapshot(t.uri),restoreSnapshot:t=>n.restoreSnapshot(t)})),[n,t])}function m(t="",e="html"){const n=l.editor.createModel(t,e);return n.setEOL(l.editor.EndOfLineSequence.LF),n}function b(){return(0,d.useContext)(a)}emailmakerMonacoEnvironment.getWorkerUrl=(t,e)=>{var i=n.p,d=(i?i.replace(/\/$/,"")+"/":"")+s[e],l=new URL(d,window.location.origin),r=l.protocol;if("http:"===r||"https:"===r){if(l.protocol!==window.location.protocol||l.hostname!==window.location.hostname)return o(d,e);if("localhost"===l.hostname&&(l.port||"80")!==(window.location.port||"80"))return o(d,e)}else if("file:"===r)return o(d,e);return d}},83863:(t,e,n)=>{"use strict";n.d(e,{Og:()=>r,SF:()=>l,po:()=>d});const i=new Set;function d(t){return i.add(t),{dispose(){l(t)}}}function l(t){i.delete(t)}function r(t,e){let n=t.getVersionId(),d=[];const l=t.onDidChangeContent((l=>{if(l.versionId>n+1){let r=t.onDidChangeContent((a=>{if(l.versionId===n+1)try{i.has(t)||e(l)}catch(s){console.log(s)}finally{n=l.versionId;let t=d.indexOf(r);t>=0&&d.splice(t,1),r.dispose()}}));d.push(r)}else try{i.has(t)||e(l)}catch(r){console.log(r)}finally{n=l.versionId}}));return{dispose:()=>{l.dispose(),d.forEach((t=>t.dispose()))}}}},70609:(t,e,n)=>{"use strict";n.d(e,{D0:()=>r,yc:()=>a});var i=n(95713),d=n(42443),l=n(60332);function r(t,e){const n=i.dS.getEditorContributions().find((e=>e.id===t));if(!n)throw new Error(`No contribution ${t}`);n.ctor=e(n)}function a(){return t=l.$D,d.QE.get(t);var t}},71157:(t,e,n)=>{"use strict";n.d(e,{Gy:()=>m,O5:()=>g,hN:()=>u,x_:()=>b});var i=n(13522),d=n(93982),l=n(92810),r=n(33206),a=n(13329),s=n(28316),o=n(814),c=n(70082);const p="bottomRight";function m(t){return{id:t.id,code:t.html,title:t.title,subject:t.subject,preheader:t.preheader}}function b(t){return{id:t.id,code:t.html,title:t.title}}function u(){const t=(0,d.ml)(i.A.ON_NOTIFICATION),{notification:e}=r.A.useApp(),n=(0,l.useCallback)(((n,i)=>{n.type||(n={...n,type:"info"}),t.fire((0,o.TB)({id:n.id,type:n.type,data:n.data,innerException:n.innerException})).then((t=>{if(t.every((t=>!1!==t))){n={...n};for(const e of t)"object"===typeof e&&Object.assign(n,e,e.style?{style:{...e.style,...n.style}}:{},e.props?{props:{...e.props,...n.props}}:{},e.className?{className:n.className?`${n.className} ${e.className}`:e.className}:{});i||((n=Object.assign(n,...t.filter((t=>"object"===typeof t)))).placement||(n.placement=p),e[n.type]?e[n.type](n):(console.log(n.type),console.log(n.id),n.message&&console.log(n.message)))}}))}),[e,t]),a=(0,l.useCallback)(((t,e)=>n({...t,type:"error"},e)),[n]),s=(0,l.useCallback)(((t,e)=>n({...t,type:"success"},e)),[n]),m=(0,l.useCallback)(((t,e)=>n({...t,type:"warning"},e)),[n]),b=(0,l.useCallback)(((t,e)=>n({...t,type:"info"},e)),[n]),u=(0,l.useCallback)(((t,e,n,i,d=p)=>{var l,r;n&&a({id:t,data:e,message:n.data instanceof Error?"":(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(l=n.data)||void 0===l?void 0:l.code)||n.status||n}}),description:(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(r=n.data)||void 0===r?void 0:r.message)||n.error}}),placement:d,innerException:(null===n||void 0===n?void 0:n.data)instanceof Error?n.data:n},i)}),[a]);return(0,l.useMemo)((()=>({notify:n,success:s,error:a,warning:m,fromError:u,info:b})),[n,s,a,m,u,b])}function g(){const{notify:t}=u();(0,a.D3)(s.Sb,t)}},23287:(t,e,n)=>{"use strict";n.d(e,{CY:()=>a,s9:()=>s});var i=n(92810),d=n(92032);function l(t){return{__:t.__.bind(t),_x:t._x.bind(t),_n:t._n.bind(t),_nx:t._nx.bind(t),sprintf:d.nv,isRTL:t.isRTL.bind(t),hasTranslation:t.hasTranslation.bind(t)}}const r=(0,i.createContext)(l(d.y3));function a(t){const{children:e,i18n:n=d.y3}=t,[,a]=(0,i.useReducer)((()=>[]),[]);(0,i.useEffect)((()=>n.subscribe(a)),[n]);const s=(0,i.useMemo)((()=>l(n)),[n]);return(0,i.createElement)(r.Provider,{value:s},e)}const s=()=>(0,i.useContext)(r)},42068:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l,c:()=>r});var i=n(92810),d=n(87686);const l=(t,e)=>{const n=(0,i.useRef)();n.current=t;const d=(0,i.useRef)(void 0);(0,i.useEffect)((()=>{null!==d.current&&n.current(d.current||[]),d.current=e}),e)};function r(t,e){const n=(0,i.useRef)(),l=(0,i.useCallback)((()=>{const t=n.current;t&&(0,d.eF)(t.halt)}),[]);(0,i.useEffect)((()=>()=>l()),[l]);const r=(0,i.useCallback)(t,e);return[(0,i.useCallback)(((...t)=>{l();const e=(0,d.eF)((()=>r(...t)));return n.current=e,e}),[l,r]),l]}},69156:(t,e,n)=>{"use strict";n.d(e,{A5:()=>c,FN:()=>o,Hk:()=>s,c8:()=>p});var i=n(92810),d=n(85163),l=n(45695);const r=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]"),a=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=light]"),s=t=>{let e,n;t===d.IJ?(e=d.vd,n=d.F3):(e=t===d.T?d.y2:d.CJ,n=t===d.nd?d.y2:d.CJ),[...a].forEach((t=>{t.media=e})),[...r].forEach((t=>{t.media=n}))},o=(t={})=>{const e=document.querySelector("head"),n=document.createElement("style");if(n.type="text/css",n.dataset.themeVaribalse=!0,Object.entries(t).length){let i="";Object.entries(t).forEach((([t,e])=>{"object"!==typeof e&&(i+=`\t--${t}: ${e};\n`)})),i=`.blocks-body, .blocks-app, .ant-modal-root, .ant-tooltip, .ant-notification {\n${i}}`,n.appendChild(document.createTextNode(i));const d=e.querySelector('[data-theme-varibalse="true"]');d?e.replaceChild(n,d):e.insertBefore(n,e.firstChild)}},c=t=>{const e=document.body;e.classList.contains(t)||setTimeout((()=>{e.classList.remove(t===d.nd?d.T:d.nd),e.classList.add(t)}),200)},p=()=>{const t=(0,l.XW)();return(0,i.useCallback)((()=>{const e=window.localStorage.getItem(d.V0.em_color_scheme),n=matchMedia(d.F3).matches?d.nd:d.T,i=e||n;t({operation:d.Ru.UPDATE_PREVIEW,theme:i})}),[t])}},31770:(t,e,n)=>{"use strict";function i(t){return t}function d({data:t,...e},n){return e.error?e:{data:n(t,e.meta),...e}}function l(t){return e=>d(e,t)}function r(t){return e=>d(e,((e,n)=>e.hasOwnProperty("previous")?t(e.previous,n):t(e,n)))}function a(t){return e=>function({data:t,...e},n){return e.error?e:{data:t.map((t=>n(t,e.meta))),...e}}(e,t)}n.d(e,{Ih:()=>a,PI:()=>r,SA:()=>d,SC:()=>l,ur:()=>i})},84869:(t,e,n)=>{"use strict";function i(t,e){if("object"===typeof t&&t){e(t);for(const n of Object.values(t))i(n,e)}}function d(t=".blocks-app"){t=`${t} &`;const e=new WeakSet;return{visit:n=>{if(!e.has(n)){const d={};let l;for(const r of Object.keys(n)){const a=n[r];"object"===typeof a&&a?(a._keyframe&&i(a,(t=>e.add(t))),d[r]=a):(l||(l=d[t]={},e.add(l)),l[r]=a)}return d}return n}}}n.d(e,{A:()=>d})},44824:(t,e,n)=>{"use strict";n.d(e,{e:()=>d});var i=n(26453);async function d(t,e){if("amp"===e){for(const e of t.querySelectorAll(".em-amp-show-disabled"))e.remove();await(0,i.Sc)(t,{mappedTags:{script:"___script"}})}else if("html"===e){for(const e of t.querySelectorAll(".em-amp-show-only"))e.remove();(0,i.Km)(t,{mappedTags:{script:"___script"}})}}},93718:(t,e,n)=>{var i={"./en_US.ts":[90944,2466],"./ru_RU.ts":[3099,6859]};function d(t){if(!n.o(i,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=i[t],d=e[0];return n.e(e[1]).then((()=>n(d)))}d.keys=()=>Object.keys(i),d.id=93718,t.exports=d},42811:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+BnQM5P/BRgABx8sJWqTxoYAAAAASUVORK5CYII="},59142:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_01_blocks.png"},50195:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_02_blocks.png"},27544:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_03_blocks.png"},59045:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_04_blocks.png"},97970:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_05_blocks.png"},84093:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_01.png"},42854:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_02.png"},81871:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_03.png"},39024:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_04.png"},35929:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_05.png"},54416:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/frame_dark.png"},98578:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/frame_light.png"},68777:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/frame_template_gallery.png"}}]);