@emailmaker/emailmaker 1.0.58 → 1.0.59

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.
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[4529],{66047:(e,t,i)=>{i.r(t),i.d(t,{CancellationTokenSource:()=>o.CancellationTokenSource,Emitter:()=>o.Emitter,KeyCode:()=>o.KeyCode,KeyMod:()=>o.KeyMod,MarkerSeverity:()=>o.MarkerSeverity,MarkerTag:()=>o.MarkerTag,Position:()=>o.Position,Range:()=>o.Range,Selection:()=>o.Selection,SelectionDirection:()=>o.SelectionDirection,Token:()=>o.Token,Uri:()=>o.Uri,__esModule:()=>o.__esModule,editor:()=>o.editor,languages:()=>o.languages});i(12132),i(25401),i(58185),i(91426),i(71075),i(89879),i(68251),i(74028),i(23777),i(94951),i(21109),i(39455),i(10156),i(28902),i(901);var o=i(6295)},28316:(e,t,i)=>{i.d(t,{Kp:()=>o,Sb:()=>s,_1:()=>n});const o="SAVE",n="SHOW",s="NOTIFY"},85163:(e,t,i)=>{i.d(t,{A9:()=>l,BD:()=>me,Bv:()=>B,CJ:()=>m,EW:()=>r,F3:()=>A,F5:()=>n,G$:()=>W,IE:()=>q,IJ:()=>g,JE:()=>Z,Jy:()=>G,KI:()=>oe,N7:()=>F,ND:()=>le,QV:()=>pe,Qz:()=>Q,Rn:()=>Ee,Ru:()=>T,St:()=>V,T:()=>p,Tm:()=>J,UW:()=>_,Ug:()=>ue,V0:()=>d,VG:()=>f,Vp:()=>ce,Vv:()=>N,WU:()=>w,Y$:()=>ee,YY:()=>_e,_P:()=>c,aO:()=>$,bV:()=>D,e3:()=>ge,eA:()=>Y,eG:()=>ie,ff:()=>s,gY:()=>z,hc:()=>j,iU:()=>se,iV:()=>K,iW:()=>P,jg:()=>he,lx:()=>v,m3:()=>X,mU:()=>ae,mX:()=>b,nA:()=>x,nd:()=>h,oy:()=>a,p5:()=>ne,rW:()=>S,rY:()=>U,rb:()=>M,rl:()=>te,ti:()=>C,vd:()=>E,wF:()=>re,xz:()=>I,y2:()=>u,yI:()=>L,yo:()=>H,yy:()=>y,z$:()=>k,zh:()=>de,zx:()=>R});var o=i(19378);const n="LOADING",s="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",m="not all",p="light",h="dark",g="system",E="(prefers-color-scheme: light)",A="(prefers-color-scheme: dark)",f="#1890ff",v={ADD_NEW_PROJECT_MODAL:"ADD_NEW_PROJECT_MODAL",EDIT_PROJECT_MODAL:"EDIT_PROJECT_MODAL",BLOCKS_MODAL:"BLOCKS_MODAL",EDIT_PROFILE_MODAL:"EDIT_PROFILE_MODAL",SEND_TEST_EMAIL:"SEND_TEST_EMAIL",ADD_NEW_EBLOCK_MODAL:"ADD_NEW_EBLOCK_MODAL",ADD_NEW_EMAIL_MODAL:"ADD_NEW_EMAIL_MODAL",ADD_NEW_AI_EMAIL:"ADD_NEW_AI_EMAIL",SWITCH_TO_PLAN_MODAL:"SWITCH_TO_PLAN_MODAL",IMAGE_EDITOR_MODAL:"IMAGE_EDITOR_MODAL",ADD_NEW_FOLDER_MODAL:"ADD_NEW_FOLDER_MODAL",EDIT_FOLDER_NAME_MODAL:"EDIT_FOLDER_NAME_MODAL",ADD_NEW_GROUP_MODAL:"ADD_NEW_GROUP_MODAL",EDIT_GROUP_NAME_MODAL:"EDIT_GROUP_NAME_MODAL",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 T={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,o.Qm)("application_subject_update"),APPLICATION_PREHEADER_UPDATE:(0,o.Qm)("application_preheader_update"),APPLICATION_DOMPARSER_ERROR:(0,o.Qm)("application_domparser_error"),APPLICATION_UPDATE_ENTITY:(0,o.Qm)("application_update_entity"),APPLICATION_IFRAME_DRAG_EVENT:(0,o.Qm)("application_iframe_drag_event"),APPLICATION_HAS_AMP:(0,o.Qm)("application_has_amp"),SANDBOX_WINDOW_CHARACTERISTIC:"sandbox_window-characteristic",SANDBOX_IFRAME_SETSIZE:"sandbox_iframe-setsize",SANDBOX_BLOCK_INSERT:"sandbox_block-insert",SANDBOX_ATOM_INSERT:"sandbox_atom-insert",SANDBOX_DRAG_CANCEL:"sandbox_drag-cancel",UPDATE_EDITOR_POSITION_FROM_EDITOR:"update_position_from_editor",UPDATE_EDITOR_POSITION_FROM_IFRAME:"update_position_from_iframe",SANDBOX_CHANGE_PREVIEW:"sandbox_change_preview",APPLICATION_CHANGE_PREVIEW:"application_change_preview",SANDBOX_LOCK_EDIT:"sandbox_lock_edit",SANDBOX_FLOATBLOCK_ADD:"sandbox_floatBlock_add",SANDBOX_FLOATBLOCK_REMOVE:"sandbox_floatBlock_remove",EDITOR_CHANGE_FOCUS:"editor_change_focus",SANDBOX_RESIZED:"sandbox_resized",SANDBOX_LOCK_DISCUSS:"sandbox_lock_discuss",SANDBOX_DISCUSS_SET_TARGET:"sandbox_discuss_set_target",SANDBOX_DISCUSS_REMOVE_TARGET:"sandbox_discuss_remove_target",SANDBOX_DISCUSS_RESET:"sandbox_discuss_reset",SANDBOX_DISCUSS_GET_TARGET:"sandbox_discuss_get_target",SANDBOX_READY:(0,o.Qm)("SANDBOX_READY"),SANDBOX_FLOATBLOCK_WRAP:"sandbox_floatblock_wrap",SANDBOX_FLOATBLOCK_DIR:"sandbox_floatblock_dir",SANDBOX_SUBJECT_UPDATE:(0,o.Qm)("sandbox_subject_update"),SANDBOX_PREHEADER_UPDATE:(0,o.Qm)("sandbox_preheader_update"),SANDBOX_DRAG_EVENT:(0,o.Qm)("sandbox_drag_event"),SANDBOX_ADD_MERGETAG:(0,o.Qm)("sandbox_add_mergetag"),SANDBOX_TRANSLATIONS:(0,o.Qm)("sandbox_send_translations"),SANDBOX_SET_THEME_VARIABLES:(0,o.Qm)("sandbox_send_theme_variables"),SANDBOX_SET_ENTITY:(0,o.Qm)("sandbox_set_entity"),SANDBOX_INIT_START:(0,o.Qm)("sandbox_init_start"),SANDBOX_INITED:(0,o.Qm)("sandbox_inited"),SANDBOX_UPDATE_ENTITY:(0,o.Qm)("sandbox_update_entity"),RELOAD:(0,o.Qm)("reload"),SANDBOX_IS_EMAIL_EMPTY:(0,o.Qm)("sandbox_is_email_empty")},S={language:"html",detectIndentation:!1,wordWrap:"on",wrappingIndent:"same",smoothScrolling:!0,automaticLayout:!0,tabSize:2,indentSize:2};let D;!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"}(D||(D={}));const C={ALL:"All",STANDARD:"Standard",PROJECT:"Project"},I="Appearance",b="Structure",y="Settings",L="Properties",N="History",M="Disabled_tab",w="Edit selected element",P="UTM parameters",R="Edit",k="AiChat",B="Build",U="Styles",j="Discuss",x="Blocks",G="Atoms",F="Optimise",K={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}},H="Owner",V="Administrator",X="User",W="The invitation has been sent",z="Assign the project owner",Q="Change role to Administrator",$="Change role to User",Y="Remove member",Z="Revoke the invite",q="block",J="email",ee="cards",te="list",ie="pending",oe="d41d8",ne="1865",se=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",me={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}}},pe=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"}},13329:(e,t,i)=>{i.d(t,{D3:()=>_,RS:()=>d});var o=i(45934),n=i(92810),s=i(41664),a=i(23397),r=i(23580),c=i(95152);const l=(0,s.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,o.Pj)());(0,n.useEffect)((()=>{const o=i((({id:i,payload:o})=>{i===e&&t(o)}));return()=>o.dispose()}),[i,e,t])}},95152:(e,t,i)=>{i.d(t,{m:()=>a});var o=i(23397),n=i(77509);function s(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 o.v)}inject(e,t,i){if("function"===typeof t){let o=this._injections[e],n="function"===typeof o?o():o;const s=this._injections[e]=()=>(n=t(this,n),n);i&&s()}else this._injections[e]=()=>t;this._emitter.fire(e)}_find(e){var t;return this._injections[e]||(null===(t=this._parent)||void 0===t?void 0:t._find(e))}_onInject(e,t,i=new n.j){return i.addDisposable(this._emitter.addEventListener((o=>{e===o&&(i.dispose(),t(this.getInstance(o)))}))),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=s(e);this.inject(i,((e,i=[])=>i.indexOf(t)<0?[...i,t]:i));const o=new n.j;return o.addDispose((()=>{this.inject(i,((e,i=[])=>i.filter((e=>e!==t))))})),o}getServices(e){var t;const i=s(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 o=i(19378),n=i(33288),s=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,s.Pj)();return(0,r.useMemo)((()=>function(e){return n.di.getOrCreateInstance(e,c,(()=>new o.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 o=i(77509);class n extends o.j{constructor(e){super(),this._options=e,this._listeners=[],this.fire=e=>{if(!this.isDisposed()){let t;const i=[...this._listeners];for(const o of i){if(!1===t)return!1;t=t instanceof Promise?t.then((e=>!1!==e&&!this.isDisposed()&&o(e))).catch((e=>console.log(e))):o(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 o;i>=0&&(t.splice(i),t.length||(null===(o=this._options)||void 0===o?void 0:o.onFirstListenerAdd)&&this._options.onLastListenerRemove())}}},this.event=this.addEventListener}}let s;!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))))))}}(s||(s={}))},32269:(e,t,i)=>{i.d(t,{Cb:()=>V,Cl:()=>p,DI:()=>P,Dx:()=>M,EU:()=>R,HT:()=>W,Hy:()=>z,Id:()=>m,Np:()=>N,Qi:()=>G,Tr:()=>Q,X7:()=>K,XZ:()=>j,Yq:()=>h,Z1:()=>H,_9:()=>x,_q:()=>X,au:()=>w,d_:()=>k,el:()=>O,ez:()=>T,fq:()=>g,gq:()=>L,i0:()=>B,iV:()=>U,jG:()=>l.j,ln:()=>$,p6:()=>D,sh:()=>F,vl:()=>d.v,wB:()=>C});var o=i(74267),n=i(92810),s=i(85163),a=i(1741),r=i.n(a),c=i(45695),l=i(77509),d=i(23397),_=i(71210),u=i(70082);const m=e=>{Object.keys(s.A9).forEach((t=>{"onboarding_success"!==e.get(s.A9[t])&&e.remove(s.A9[t])}))};function p(e){const t=(0,o.A)(e);return isNaN(t)?new Date(e):t}const h=(e,t,i=!1)=>{Date;const o=new Date,n=e.getDate()===o.getDate()&&e.getMonth()===o.getMonth()&&e.getFullYear()===o.getFullYear();if(i&&n){const i=Math.floor((o-e)/1e3),n=Math.floor(i/60),s=Math.floor(n/60);if(i<60)return t("Just now");if(s>0){const e=n%60;return`${s} ${t("hour","hours",s)} ${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],o=null===t||void 0===t?void 0:t[2];return i?o?`${e.slice(0,-o.length)} ${+o.slice(1)+1}`:`${e} 2`:`${e} (copy)`};function E(e,t,i){const o=new Map,n=new RegExp(`(${t})(.*?)(${i})`,"gis");return e=e.replaceAll(n,((e,t,i,n)=>{const s=(0,_.l)();return o.set(s,i),t+s+n})),{escapes:o,html:e}}function A(e,t){let i=[];for(const[o,n]of t){const{escapes:t,html:s}=E(e,o,n);e=s,i.push([o,n,t])}return{escapes:i,html:e}}function f(e,t,i,o){const n=new RegExp(`(${t})(.*?)(${i})`,"gis");return e.replaceAll(n,((e,t,i,n)=>{const s=o.get(i);return"string"===typeof s?t+s+n:e}))}const v=/<title>(.*)<\/title>/gm,O=(e,t)=>{let{escapes:i,html:o}=A(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return o=o.replaceAll(v,((e,i)=>i===t?`<title>${g(i)}</title>`:e)),function(e,t){for(const[i,o,n]of t)e=f(e,i,o,n);return e}(o,i.reverse())};function T(e){let{html:t}=A(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return[...t.matchAll(v)].map((e=>e[1])).find((e=>!!e))}const S="bottomRight",D=(e,t,i=S)=>{var o,n,s,a;t.error({innerException:e.error instanceof Error?e.error:void 0,message:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(o=e.error)||void 0===o||null===(n=o.data)||void 0===n?void 0:n.code)||(null===(s=e.error)||void 0===s?void 0:s.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})},C=(e,t,i=S)=>{t.success({message:e,placement:i})},I="ascend",b="descend",y="desc",L=e=>{switch(e){case I:return"asc";case b:return y;default:return""}},N=e=>{switch(e){case"asc":return I;case y:return b;default:return""}},M=e=>{const t=document.createElement("div");return t.className=e||"resizer",t},w=/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/,P=e=>new Promise(((t,i)=>{let o=new Image;o.src=e,o.addEventListener("load",(()=>{t("success")})),o.addEventListener("error",(()=>{i("error")})),o=null})),R=(e,t)=>{for(const i of t)"object"===typeof e.properties&&(e=e.properties[i]);return e},k=e=>e instanceof Array?e.map((e=>({label:e,value:e}))):Object.keys(e).map((t=>({label:e[t],value:t}))),B=(e,t,i=!0)=>{const o=Object.keys(t);for(const n of o){const o=t[n];void 0!==o&&null!==o&&(e[n]=i&&"object"===typeof o?B(e[n]||{},o,!0):o)}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 o=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&&(o.style.display="block"),c.top+c.height>r&&(n.style.display="block");const l={operation:s.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,o)=>{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:s.Ru.SANDBOX_ATOM_INSERT,settings:{atomHTML:i.html||null,targetBlock:null}};o(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:s.Ru.SANDBOX_BLOCK_INSERT,action:"insert",settings:{blockHTML:i}})}),[e])},K=()=>{const e=(0,c.XW)();return(0,n.useCallback)(((t,i)=>{e({operation:s.Ru.SANDBOX_ATOM_INSERT,action:"insert",settings:{atomHTML:i}})}),[e])},H=(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:()=>{}})},V=()=>{const e=(0,c.XW)();return(t,i)=>{e({operation:s.Ru.SANDBOX_ELEMENT_SETTINGS_SET,settings:t,type:i})}},X=(e,t="")=>{var i,o;const n=[];return null===(i=e._embedded)||void 0===i||null===(o=i["wp:term"])||void 0===o||o.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},W=(e,t="")=>{var i,o,n,s,a;return(null===(i=e._embedded)||void 0===i||null===(o=i["wp:term"])||void 0===o||null===(n=o.find((e=>{var i;return!!e.length&&(!t||(null===(i=e[0])||void 0===i?void 0:i.taxonomy)===t)})))||void 0===n||null===(s=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===s||null===(a=s.children)||void 0===a?void 0:a.map((e=>({id:e.id,name:e.name,count:e.count}))))||null},z=(e,t)=>{const i=e.target,o=t.getBoundingClientRect().height,n=i.getBoundingClientRect().height-o,s=e.clientY-t.getBoundingClientRect().top-30,a=-n*(Math.min(Math.max(s,0),o-60)/(o-60));i.style.transform=`translateY(${a}px)`},Q=({target:e})=>{e.style.transform="translateY(0)"};function $(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}},20116:(e,t,i)=>{i.d(t,{B:()=>l,l:()=>c});var o=i(33288),n=i(77509),s=i(19378),a=i(91366);function r(e){return t=>{const i=t.queryFn||((e,i,o,n)=>{if(!t.query)throw new Error("query not found EndpointDefinition");return n(t.query(e))});i&&(t.query=void 0,t.queryFn=async(t,n,s,a)=>{try{let r;const c=o.di.getServices(n,e);for(let e=c.length-1;e>=0;e--){const i=c[e];if(r=r?await r((async(...e)=>await i.execute(e))):await i.execute(t),"function"!==typeof r)return{data:r,error:null}}return r=r?await r((async(e,t=n,o=s,r=a)=>{const c=await i(e,t,o,r);if(c.error)throw c.error;return c.data})):await i(t,n,s,a),{data:r,error:null}}catch(r){return{error:r}}})}}function c(e){return(t,i)=>{const c=Object.create(null),l=Object.keys(i),d=new n.j;for(const n of l){const a=(0,s.Qm)(`api_listeners_flag_${t.reducerPath}/${n.toString()}`),l=o.di.createIdentifier(`api_listeners_${t.reducerPath}/${n.toString()}`);o.di.getInstance(e,a)||(c[n]=r(l)),d.addDisposable(o.di.addService(e,l,{execute:i[n]}))}return Object.keys(c).length&&t.enhanceEndpoints({endpoints:c}),(0,a.PL)(e).addDisposable(d),d}}function l(e,t){for(const o of Object.keys(t))try{t[o](e)}catch(i){console.error(`Error while initialize mock ${o}:`,i)}}},32411:(e,t,i)=>{i.d(t,{$Z:()=>p,TW:()=>d,VA:()=>u,aD:()=>m,fn:()=>h,kx:()=>r});var o=i(70609),n=i(92810),s=i(60382),a=i(33695);const r=(0,n.createContext)(null),c={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 l(e,t){/^(\/\/)/.test(e)&&(e=window.location.protocol+e);const i=new Blob(["/*"+t+'*/importScripts("'+e+'");'],{type:"application/javascript"});return URL.createObjectURL(i)}function d(e){const t=(0,o.yc)(),[i,s]=(0,n.useState)({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)});return(0,n.useEffect)((()=>{const i=e.onDidChangeContent((()=>{setTimeout((()=>s({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)})))}));return()=>{i.dispose()}}),[e,t]),i}function _(e){var t;const i=(null===e||void 0===e||null===(t=e.actual)||void 0===t?void 0:t._data)||new a.Ov;return i instanceof a.Ov?i:a.Ov.deserialize(i)}function u(e){const t=(0,o.yc)();return{undo:()=>t.undo(e.uri),redo:()=>t.redo(e.uri),clear:()=>t.removeElements(e.uri),getPast:()=>{var i,o;return(null===(i=t._editStacks.get(e.uri.toString()))||void 0===i||null===(o=i._past)||void 0===o?void 0:o.map(_))||[]},getFuture:()=>{var i,o;return(null===(i=t._editStacks.get(e.uri.toString()))||void 0===i||null===(o=i._future)||void 0===o?void 0:o.map(_))||[]},canUndo:()=>t.canUndo(e.uri),canRedo:()=>t.canRedo(e.uri),createSnapshot:()=>t.createSnapshot(e.uri),restoreSnapshot:e=>t.restoreSnapshot(e)}}function m(e){return(0,n.useMemo)((()=>u(e)),[e])}function p(e="",t="html"){const i=s.editor.createModel(e,t);return i.setEOL(s.editor.EndOfLineSequence.LF),i}function h(){return(0,n.useContext)(r)}emailmakerMonacoEnvironment.getWorkerUrl=(e,t)=>{const o=i.p,n=(o?o.replace(/\/$/,"")+"/":"")+c[t];const s=new URL(n,window.location.origin),a=s.protocol;if("http:"===a||"https:"===a){if(s.protocol!==window.location.protocol||s.hostname!==window.location.hostname)return l(n,t);if("localhost"===s.hostname&&(s.port||"80")!==(window.location.port||"80"))return l(n,t)}else if("file:"===a)return l(n,t);return n}},98589:(e,t,i)=>{function o(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 s of i)if(!o(e[s],t[s]))return!1;return!0}return!1}function n(e,t){if(!e)return t;const i={};for(const n of Object.keys(t))o(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 o=Symbol("Error");function n(e){return Promise.all(e.map((e=>e instanceof Promise?e.catch((e=>(console.log(e),o))):e))).then((e=>e.filter((e=>e!==o))))}},91738:(e,t,i)=>{i.d(t,{AU:()=>d});var o=i(90854),n=i(58689),s=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,o.BF)(e),l=e=>{if(c(e))return!0;if((0,o.vq)(e)||(0,o.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,s.e)(e,"html")})):"",o=e.code&&t?await(0,n.PJ)(e.code||"",[n.qy],e.utm_parameters,(async e=>{await(0,s.e)(e,"amp")})):"";return{...e,compiled:{html:i,ampHtml:o}}}},91366:(e,t,i)=>{i.d(t,{Qq:()=>g,PL:()=>A,KA:()=>E,wz:()=>f});var o=i(33288),n=i(41664),s=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 o;if(i.has(e))try{o=await i.get(e)}catch{t&&(o=await t())}else t&&(o=await t(),o&&this._onChangeEmitter.fire());return o}async _addOrUpdate(e,t){let i;const o=this._items;if(o.has(e))try{i=await o.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))),o=(await this.entries()).filter((([e,t])=>!i.has(e)));for(const[n,s]of e)t.push(this.addOrUpdate(n,(()=>s))),i.add(n);for(const[e]of o)t.push(this.remove(e));return await Promise.all(t),o}finally{this.resumeChange()}}clear(){this._items.clear(),this._onChangeEmitter.fire()}suspendChange(){this._onChangeEmitter.suspend()}resumeChange(){this._onChangeEmitter.resume()}}var m=i(71210);class p 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 o=i.addDisposable(new u),n=i.addDisposable(new r.lt);t=this._foreignCache[e]={get:async(t,i={})=>(await o.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 o of i)o[e]=t,await this._cache.add(o.id,o);return i}catch{return[]}})),function(e,{filter:t,order:i="asc",orderBy:o,page:n,pageSize:s=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 o of i){const i=e[o],n=t[o];return"id"===o||"string"!==typeof i?i===n:"string"===typeof n&&i.startsWith(n)}return!0}))).length}return o&&(e=e.sort(((e,t)=>(e[o]>t[o]?1:t[o]>e[o]?-1:0)*("asc"===i?1:-1)))),void 0!==n&&(e=e.slice(s*(n-1),s*n-1)),{data:e,filteredTotal:r,total:a,totalPages:Math.floor(a/s)}}(await this._cache.values()||[],i)),first:(e,i={})=>t.get(e,{...i,page:1,pageSize:1}).then((e=>e[0])),handleRead:n.event,clear(){o.clear()},dispose(){i.dispose()}}}return t}async create(e,{source:t="",silent:i}={}){let o=e;return i||(o=await this._saveEmitter.fire({prev:void 0,patch:e,value:o,source:t})),void 0===o.id&&(o.id=(0,m.l)()),await this._cache.addOrUpdate(o.id,(()=>o))}async update(e,t,{source:i="",silent:o}={}){return this._cache.addOrUpdate(e,(async e=>{let n=e?{...e,...t}:t;if(!o)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 o=await this._cache.remove(e);return i||await this._removeEmitter.fire({value:o,source:t}),o}refresh(){this._cache.clear();for(const e of Object.values(this._foreignCache))e.clear()}suspendChange(){this._cache.suspendChange()}resumeChange(){this._cache.resumeChange()}}i(18398);var h=i(39990);function g(){const e=(0,n.Q)();return t=>o.di.getOrCreateInstance(t,e,(()=>new p))}function E(e){const t=o.di.getInstance(e,s.ax);if(!t)throw new Error("Failed");return t}function A(e){const t=o.di.getInstance(e,s.Lz);if(!t)throw new Error("Failed");return t}async function f(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:()=>s});var o=i(71210),n=i(814);function s({code:e,...t},i){var n,s;const a=i.getState();return{...t,...e?{html:e}:{},renderGuid:(0,o.l)(),project:null===(n=a.projectSlice)||void 0===n||null===(s=n.project)||void 0===s?void 0:s.id}}function a({html:e,renderGuid:t,...i},o){const s=o.getState(),{project:a}=s.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 o(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:()=>o})},91253:(e,t,i)=>{i.d(t,{I:()=>s,y:()=>n});var o=i(814);function n(e,t,i){const o=t.getState();var n,s;void 0===i&&(i=void 0===e.post?null===(n=o.emailSlice)||void 0===n||null===(s=n.email)||void 0===s?void 0:s.id:e.post);return{...e,content:e.content?`<p>${e.content}</p>`:"",post:i}}function s(e,t){return(0,o.TB)({...e,link:void 0,comment_status:void 0})}},81304:(e,t,i)=>{i.d(t,{E:()=>a,I:()=>s});var o=i(71210),n=i(814);function s({code:e,...t},i){var n,s;const a=i.getState();return{...t,...e?{html:e}:{},renderGuid:(0,o.l)(),project:null===(n=a.projectSlice)||void 0===n||null===(s=n.project)||void 0===s?void 0:s.id,utm_parameters:t.utm_parameters||{},_embedded:void 0}}function a({html:e,renderGuid:t,...i},o){const s=o.getState(),{project:a,config:r}=s.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:()=>s,_:()=>n});var o=i(814);function n({code:e,...t},i,o){const n=i.getState();var s,a;void 0===o&&(o=void 0===t.parent?null===(s=n.emailSlice)||void 0===s||null===(a=s.email)||void 0===a?void 0:a.id:t.parent);return{...t,...e?{html:e}:{},parent:o}}function s({html:e,...t},i){return(0,o.TB)({...t,code:e,guid:void 0,compiled:(0,o.TB)({html:e,ampHtml:e&&""})})}},23036:(e,t,i)=>{i.d(t,{Wk:()=>l,Xy:()=>r,bg:()=>_,ll:()=>d,yc:()=>c});var o=i(55701),n=i(91366),s=i(93982),a=i(20116);const r=(0,n.Qq)(),c=(0,n.Qq)(),l=(0,s.cZ)(),d=(0,s.cZ)();function _(e){const t=(0,a.l)(e),i=r(e),_=i.byForeignKey("project"),u=c(e),m=u.byForeignKey("parent"),{dispatch:p,getState:h}=(0,n.KA)(e),g=(0,n.PL)(e);g.addDisposable(i.onChange((()=>p(o.VM.util.invalidateTags(["Blocks"]))))),g.addDisposable(i.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 E=(0,s.dB)(e,d),A=(0,s.dB)(e,l);t(o.VM,{async getBlocks(e){const t={};e.name&&(t.title=e.name),e.type&&(t.type=e.type);return await _.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=>async t=>{try{const t=h().configSlice.project||"",i=(await A.fire({project:t,emailId:e.emailId||""})).filter((e=>e));if(i.length)return i.flat()}catch(i){console.log(i)}return t(e)},getTemplateBlocks:e=>async t=>{try{const t=h().configSlice.project||"",i=(await E.fire({project:t,emailId:e.emailId||""})).filter((e=>e));if(i.length)return i.flat()}catch(i){console.log(i)}return t(e)},async getBlock(e){const t=h().projectSlice.project.id;return _.first(t,{filter:{id:e}})},getBlockHistory:async({blockId:e,page:t=1})=>({...await m.get(e,{page:t}),args:{blockId:e,page:t}}),addBlock:e=>async t=>{const o=await i.create(e);return h().configSlice.config.preventSendDataToEM||t(o).catch((e=>{})),o},editBlock:({blockId:e,...t})=>i.update(e,t),deleteBlock:e=>i.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveBlock:({blockId:e,body:t})=>u.create({...t,parent:e})})}},72788:(e,t,i)=>{i.d(t,{B:()=>c,D:()=>r});var o=i(18777),n=i(91366),s=i(68415),a=i(20116);const r=(0,n.Qq)();function c(e){const t=(0,a.l)(e),i=r(e),c=i.byForeignKey("post"),{dispatch:l}=(0,n.KA)(e);(0,n.PL)(e).addDisposable(i.onChange((()=>l(o.Jg.util.invalidateTags(["Comments"]))))),t(o.Jg,{getComments:e=>c.get(e).then((({data:e})=>e)),addComment({subjectId:e,author:t,parent:o,content:n,author_name:a,author_email:r,targetId:c}){const l={post:e,author:t,author_name:a,author_email:r,content:n,parent:o,target_id:c,date:(0,s.A)(new Date),author_avatar_urls:{}};return i.create(l)},deleteComment:e=>i.remove(e),editComment:({commentId:e,...t})=>i.update(e,t),deleteTarget:e=>i.update(e,{target_id:""})})}},87265:(e,t,i)=>{i.d(t,{Av:()=>r,jw:()=>c,sE:()=>l});var o=i(86739),n=i(91366),s=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),m=(0,a.l)(e);u.addDisposable(t.onChange((async()=>{d(o.GY.util.invalidateTags(["Email"]))}))),u.addDisposable(i.onChange((()=>{d(o.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)),m(o.GY,{getEmails:e=>[],getTemplateEmails:e=>t=>t(e),getEmail:async e=>await t.get(e),getEmailHistory:({emailId:e,page:t=1})=>(l.clear(),async o=>{if(_().configSlice.config.revisionService){const n=await o({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 o=await t.create(i,{source:e});return o.renderGuid||(o.renderGuid=(0,s.l)()),o},editEmail:e=>async i=>{const{emailId:o,source:n,...s}=e;return _().configSlice.config.revisionService&&await i(e),t.update(o,s,{source:n})},deleteEmail:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveEmail:({emailId:e,body:t})=>async o=>(_().configSlice.config.revisionService&&await o({emailId:e,body:t}),await i.create({...t,parent:e,modified:(new Date).toString()}))})}},55084:(e,t,i)=>{i.d(t,{A:()=>D});var o=i(20116),n=i(53200);var s=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 m=i(46312),p=i(93982),h=i(13522);var g=i(65119);var E=i(63531),A=i(33288);A.di.createIdentifier();var f=i(83351);var v=i(23036),O=i(72788),T=i(94381);var S=i(87265);const D={addUserToProjectApiMock:function(e){(0,o.l)(e)(n.B,{addUserToProject:()=>{}})},AiApiMock:function(e){(0,o.l)(e)(s.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};(0,o.l)(e)(r.Q2,{userRegistration:()=>{},getSchema:()=>e=>e({}),getMe:()=>t,editMe:e=>t={...t,...e},getSubscriptions:()=>[]})},blocksApiMock:v.bg,commentsApiMock:O.B,emailsApiMock:S.sE,emailRawApiMock:function(e){(0,o.l)(e)(l.f,{getEmailRaw({emailId:e,secret_hash:t}){throw new Error(c.f5)}})},imageApiMock:function(e){(0,o.l)(e)(d.CL,{sendAiImageRequest:function({body:e}){return t=>t({body:e})},getAiImage:e=>t=>t(e)})},localesApiMock:function(e){(0,o.l)(e)(T.Ad,{getLocale:async({id:e})=>t=>t({id:e}),getLocales:()=>async e=>e({})})},notificationsApiMock:function(e){(0,o.l)(e)(_.vx,{getNotifications:e=>[],notificationShown({id:e,datetime:t}){throw new Error(c.f5)}})},projectsApiMock:function(e){let t;(0,o.l)(e)(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,o.l)(e),i=(0,p.dB)(e,h.A.FILE_PROXY_EVENT_ID);t(m.Z8,{getFile:async({url:t,tryFetch:o=!0,type:n})=>async s=>{const a=e.getState(),{project:r}=a.configSlice,c=(await i.fire({url:t,project:r})).filter((e=>e instanceof Blob))[0];if(!c)return s({url:t,tryFetch:o,type:n});switch(n){case"json":return JSON.parse(await c.text());case"text":return c.text();default:return c}}})},recoverPasswordApiMock:function(e){(0,o.l)(e)(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){const t=(0,o.l)(e);if(!A.di.getInstance(e,c.Lz))throw new Error("Something was wrong");const i=(0,p.dB)(e,h.A.UPLOAD_EVENT_ID),n=(0,p.dB)(e,h.A.ON_SEND_TESTEMAIL_ID),s=(0,p.dB)(e,h.A.ON_SEND_LIVEPREVIEW_ID);t(E.yH,{uploadImage:t=>async o=>{const n=e.getState(),{project:s}=n.configSlice,a="tmp"===t.folder?null:await i.fire({file:t.file,project:s}),r=a?a.find((e=>e)):null;return r?[{file_url:r,project:s}]:o({...t,user_id:String((await A.di.getInstanceAsync(e,c.sZ)).app_id)})},sendTestEmail:t=>async i=>{const o=e.getState(),{project:s}=o.configSlice;(await n.fire({project:s,email_id:t.email_id,subject:t.subject,email:t.email,html:t.html,from_name:t.from_name})).some((e=>!1===e))&&await i({...t,user_id:String((await A.di.getInstanceAsync(e,c.sZ)).app_id)})},async sendLivePreview(t){const i=e.getState(),{project:o}=i.configSlice;(await s.fire({project:o,id:t.email,subject:t.subject,html:t.content})).some((e=>!1===e))},sendShortLink:e=>t=>t(e)})},tokenApiMock:function(e){(0,o.l)(e)(f.OV,{tokenCreate:e=>t=>t(e),tokenValidate:()=>e=>e({})})}}},62410:(e,t,i)=>{i.d(t,{r:()=>f});var o=i(33288),n=i(14386),s=i(18398),a=i(47358),r=i(86286),c=i(39990),l=i(68548),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 m=i(39217),p=i(32269),h=i(91366),g=i(93982),E=i(13522),A=i(48802);const f=(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)),f=(0,A.m)((0,g.Zc)(e,E.A.READ_LOCALE)),v=t.addDisposable(new A.U(f)),O=e.dispatch,T=o.di.getInstanceAsync(e,d.sZ).then((e=>(null===e||void 0===e?void 0:e.app_config)||{}),(e=>(console.log(e),{}))),S=(0,_.y)(),D=async(...t)=>{const i=Object.assign({},...t),o=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:o?(u=o,{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,s._R)(d))};let C;return{setOptions:S.decorate((async({config:i={},project:a,user:r,advancedConfigs:d,handleReadLocale:_,handleLimitUsage:u})=>{var g;v.setListener(_),n.setListener(u);let E=await T,A=d||E.advancedConfigs,f=localStorage.getItem("configSwither"),S=A&&A[(null===i||void 0===i?void 0:i.mode)||f||"pro"]||(null===(g=(0,l.$)((null===i||void 0===i?void 0:i.mode)||f||"pro"))||void 0===g?void 0:g.config);if(S={...S,configSwither:i.configSwither||!1},await D(S,E,i),O((0,s.bn)(String(a))),O((0,s.ee)(A)),C&&C.dispose(),C=new p.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(o.di.addService(e,m.jY,{execute(e){e.headers.append("user_id",i.id)}}))}a&&t.addDisposable(o.di.addService(e,m.jY,{execute(e){e.headers.append("project_id",String(a))}}))})),instance:{setConfig:S.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 D(i,await T,e)})),getConfig:()=>function(e){var t,i;const o=e.getState(),n=o[r.Ay.name],c=o[s.Ay.name],l=o[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:S.decorate((e=>D(e))),handleReadLocale:f,handleLimitUsage:i}}}))},33746:(e,t,i)=>{i.d(t,{F:()=>c});var o=i(44141),n=i(33288),s=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 o=n.di.getInstance(e,r.eT),s=o.getOptions(),a=(0,r.qT)(i.baseUrl);s.baseUrl!==a&&(o.setOptions({baseUrl:a}),t=!0)}if(t){const i=n.di.getInstance(e,o.Pz);n.di.inject(e,s.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 o=i(14386),n=i(14315),s=i(33288),a=i(41664),r=i(39217),c=i(13652),l=i(85163);const d=(0,a.Q)(),_=(0,a.Q)(),u=(0,o.l)((e=>({setOptions(t){const i=(0,c.y)(),o=(0,r.mg)(e);s.di.addService(e,r.jY,{execute:i.decorate((async i=>{if(t.jwtAuth){let a=s.di.getInstance(e,d),r=s.di.getInstance(e,_);if(!r&&!a){const i=await o.jwtAuth.token_create({body:t.jwtAuth,type:n.cM.Json});if(i.error)throw r=l.ff,s.di.inject(e,_,l.ff),new Error(l.ff);a=i.data.token,s.di.inject(e,d,a)}r||i.headers.append("authorization",`Bearer ${a}`)}}))})}})))},1383:(e,t,i)=>{i.d(t,{Y:()=>l,h:()=>d});var o=i(14386),n=i(41664),s=i(33288),a=i(39217),r=i(47271),c=i(12264);const l=(0,n.Q)(),d=(0,o.l)((e=>{let t;return s.di.addService(e,a.jY,{execute:async i=>{if(t){const t=await s.di.getInstanceAsync(e,l);t&&i.headers.append("authorization",`Bearer ${t}`)}}}),{setOptions(i){t!==i.getAuthToken&&(t=i.getAuthToken,s.di.inject(e,l,void 0),s.di.inject(e,l,(async(e,i)=>{try{let e=await i;var o;return t?e&&1e3*(null===(o=(0,r.iU)(e))||void 0===o?void 0:o.exp)>(0,c.N)()?e:await t(e):""}catch(n){return console.log(n),""}}),!0))}}}))},14386:(e,t,i)=>{function o(e){return async function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...await e(t)||{}}}}function n(e){return async t=>{const i={},o=[];for(const n of e)o.push(await n(t));for(const e of o)Object.assign(i,e.instance);return{instance:i,setOptions:e=>{const t=o.map((t=>t.setOptions(e)));return t.some((e=>e instanceof Promise))?Promise.all(t).then((()=>{})):void 0},dispose:()=>{for(const e of o)e.dispose()}}}}i.d(t,{E:()=>n,l:()=>o})},893:(e,t,i)=>{i.d(t,{m:()=>c});var o=i(17126),n=i(92810),s=i(45934),a=i(18398),r=i(70082);const c=({children:e})=>{const[t,i]=(0,n.useState)(),c=(0,s.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)(o.fh.Provider,{value:t,children:e}),(0,r.jsx)("div",{ref:i,className:"blocks-modal-container"})]})}},97001:(e,t,i)=>{i.d(t,{P:()=>C});var o=i(32269),n=i(93556),s=i(23580),a=i(71210),r=i(56991),c=i(13329),l=i(28316),d=i(18398),_=i(13437),u=i(81304),m=i(4453),p=i(91253),h=i(33288),g=i(15230),E=i(13652),A=i(13522),f=i(93982),v=i(91738),O=i(86739),T=i(39217),S=i(25181);const D="EXTERNAL";class C extends o.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,s.My)(e);this._dataSources=(0,n.zC)(t),this._eventLock=(0,n.QQ)(t);const i=(0,f.Zc)(e,A.A.ON_MODEL_CHANGE),o=(0,f.Zc)(e,A.A.ON_EMAIL_CHANGED_ID);this.addDisposable(i((e=>{this._model=e}))),this.addDisposable(o((e=>{this._currentEmail=e}))),this.addDisposable(h.di.addService(e,T.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,p.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,m.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,o=e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,m._)(e,this._store,t)]));await i.setAll(o)}async setComments(e=[],t){const{cache:i}=this._dataSources.comments,o=e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,p.y)(e,this._store,t)]));await i.setAll(o)}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,v.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,v.AU)(i,t.isAmp)}async setEmail(e,t,i=!1){const o=this._dataSources.emails,n=o.cache,s=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 o.get(c),...r,project:s}:(r={...r,project:s},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:s})}_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:o,comments:s,templateId:a}=(0,n.Uw)(e),r=[];r.push(this.setBlocks(i)),void 0!==t.id&&(r.push(this.setComments(s)),r.push(this.setEmailRevisions(o))),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,f.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:o})=>{o===D&&(i.dispose(),e((0,u.E)(t,this._store)))}),Number.MIN_VALUE));(0,c.RS)(this._store,l.Kp,D)}))}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,S.B)(i,e))):void 0}}},44376:(e,t,i)=>{i.d(t,{y:()=>A});var o=i(23580),n=i(93556),s=i(81304),a=i(13437),r=i(91253),c=i(4453),l=i(32269),d=i(48802),_=i(13522),u=i(93982),m=i(18398),p=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,o.My)(e),{blocks:i,emails:l,comments:A,emailRevisions:f}=(0,n.zC)(t),v=(0,u.Zc)(e,E.Wk),O=(0,u.Zc)(e,E.ll),T=(0,u.Zc)(e,_.A.ON_SAVEBUTTON_CLICK_ID),S=(0,u.Zc)(e,_.A.ON_PREVIOUSBUTTON_CLICK_ID),D=(0,u.Zc)(e,_.A.ON_NEXTBUTTON_CLICK_ID),C=(0,u.Zc)(e,_.A.ON_EMAIL_INIT_ID),I=(0,u.Zc)(e,_.A.ON_EMAIL_CHANGED_ID),b=(0,u.Zc)(e,_.A.ON_CONTENT_CHANGED_ID),y=(0,u.Zc)(e,_.A.ON_SEND_TESTEMAIL_ID),L=(0,u.Zc)(e,_.A.ON_SEND_EMAIL_MODAL_ID),N=(0,u.Zc)(e,_.A.ON_EMAIL_CLONE_ID),M=(0,u.Zc)(e,_.A.ON_SHARE_ID),w=(0,u.Zc)(e,_.A.ON_SHOW_PREVIEW_ID),P=(0,u.Zc)(e,_.A.ON_SEND_LIVEPREVIEW_ID),R=(0,u.Zc)(e,_.A.ON_CODE_VALIDATE_ID);return{handleValidate:(0,d.m)(R,(e=>this._model?e.map((e=>(0,g.B)(this._model,e))):[])),handleReadEmail:(0,d.m)(l.handlerRead,(e=>e),(t=>t&&(0,s.I)(t,e))),handleSaveEmail:(0,d.m)(l.onSave,(function({prev:t,patch:i,value:o,source:n}){const a=t?(0,s.E)(t,e):void 0;return{prev:a,patch:(0,p.g)(a,(0,s.E)(i,e)),value:(0,s.E)(o,e),source:n}}),(t=>t?(0,s.I)(t,e):void 0)),handleRemoveEmail:(0,d.m)(l.onRemove,(({value:t,source:i})=>({value:(0,s.E)(t,e),source:i})),(()=>{})),handleReadCommonBlocks:(0,d.m)(O,(e=>e.project),(t=>null===t||void 0===t?void 0:t.map((t=>(0,a.i)(t,e))))),handleReadTemplateBlocks:(0,d.m)(v,(e=>e),(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,m.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:o,source:n}){const s=t?(0,a.A)(t,e):void 0;return{prev:s,patch:(0,p.g)(s,(0,a.A)(i,e)),value:(0,a.A)(o,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:o,source:n}){const s=t?(0,r.I)(t,e):void 0;return{prev:s,patch:(0,p.g)(s,(0,r.I)(i,e)),value:(0,r.I)(o,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)(f.byForeignKey("parent").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>(0,c._)(t,e))))),handleEmailAutosave:(0,d.m)(f.onSave,(function({prev:t,patch:i,value:o,source:n}){return{value:(0,c.E)(o,e),source:n}}),(t=>t?(0,c._)(t,e):void 0)),handleRemoveEmailAutoSave:(0,d.m)(f.onRemove,(({value:t,source:i})=>({value:(0,c.E)(t,e),source:i})),(()=>{})),handleEmailChanged:(0,d.m)((0,h.sg)(I,100),(t=>(0,s.E)(t,e))),handleEmailInit:(0,d.m)(C,(t=>(0,s.E)(t,e))),handlePreviousButtonClick:(0,d.m)(S,(t=>(0,s.E)(t,e))),handleNextButtonClick:(0,d.m)(D,(t=>(0,s.E)(t,e))),handleSaveButtonClick:(0,d.m)(T,(t=>(0,s.E)(t,e))),handleHtmlChanged:(0,d.m)((0,h.sg)(b,100)),handleTestEmailSend:(0,d.m)(y,(({html:e,...t})=>({...t,code:e,compiled:{html:e,ampHtml:""}}))),handleTestEmailModal:(0,d.m)(L,(t=>(0,s.E)(t,e))),handleCloneEmail:(0,d.m)(N,(t=>(0,s.E)(t,e))),handleShareEmail:(0,d.m)(M),handlePreviewEmail:(0,d.m)(w),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 o of Object.keys(t))i[o].setListener(e[o])}}},93556:(e,t,i)=>{i.d(t,{QQ:()=>r,Uw:()=>c,zC:()=>a});var o=i(23036),n=i(72788),s=i(87265);function a(e){return{emails:(0,s.Av)(e),blocks:(0,o.Xy)(e),emailRevisions:(0,s.jw)(e),blocksRevision:(0,o.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 o=i(14386),n=i(33288),s=i(15230),a=i(32269),r=i(48802);const c=(0,o.l)((e=>{const t=n.di.getInstance(e,s.Lz),i=t.addDisposable(new a.vl),o=(0,r.m)(i.event),c=t.addDisposable(new r.U(o));return{setOptions({handleDestroy:e}){c.setListener(e)},instance:{handleDestroy:o,destroy:()=>t.dispose()}}}))},63772:(e,t,i)=>{i.d(t,{Z:()=>l});var o=i(14386),n=i(33288),s=i(48802),a=i(15230),r=i(93982),c=i(13522);const l=(0,o.l)((e=>{const t=n.di.getInstance(e,a.Lz),i=(0,r.Zc)(e,c.A.UPLOAD_EVENT_ID),o=(0,r.Zc)(e,c.A.FILE_PROXY_EVENT_ID),l=(0,s.m)(i),d=(0,s.m)(o),_=t.addDisposable(new s.U(l)),u=t.addDisposable(new s.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 o=i(14386),n=i(33288),s=i(15230),a=i(55654),r=i(48802);const c=(0,o.l)((e=>{const t=n.di.getInstance(e,s.Lz),i=t.addDisposable(new a.vl),o=n.di.getInstanceAsync(e,s.Cd);o.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=>o.then((({instance:t,setOptions:i})=>Promise.resolve(i(e)).then((()=>t))))},destroy:()=>t.dispose()}}))},1281:(e,t,i)=>{i.d(t,{Z:()=>g});var o=i(14386),n=i(33288),s=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 m=i(13522),p=i(55654),h=i(93982);const g=(0,o.l)((e=>{const t=n.di.getInstance(e,s.Lz),i=(0,h.Zc)(e,m.A.ON_NOTIFICATION),o=(0,p.pb)(i,(e=>"error"===e.type)),l=(0,p.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)(o,(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(_)),f=t.addDisposable(new a.U(g));return{setOptions({handleNotify:e,handleSuccess:t,handleError:i}){E.setListener(e),A.setListener(i),f.setListener(t)},instance:{notify(t){(0,r.RS)(e,c.Sb,{placement:"bottomRight",...u(t)})},handleNotify:d,handleError:_,handleSuccess:g}}}))},92268:(e,t,i)=>{i.d(t,{w:()=>c});var o=i(14386),n=i(91366),s=i(93982),a=i(13522),r=i(32411);const c=(0,o.l)((e=>{let t;const i=(0,n.PL)(e),o=(0,s.Zc)(e,a.A.ON_MODEL_CHANGE);return i.addDisposable(o((e=>{t=(0,r.VA)(e)}))),{instance:{undoRedoService:{undo:()=>t.undo(),redo:()=>t.redo(),clear:()=>t.clear(),getPast:()=>t.getPast(),getFuture:()=>t.getFuture(),canUndo:()=>t.canUndo(),canRedo:()=>t.canRedo(),createSnapshot:()=>t.createSnapshot(),restoreSnapshot:e=>t.restoreSnapshot(e)}}}}))},89949:(e,t,i)=>{i.d(t,{R:()=>a});var o=i(92810),n=i(45934),s=i(39990);const a=({onLoad:e,children:t})=>{(0,o.useEffect)((()=>{e&&e()}),[e]);const i=(0,n.wA)();return(0,o.useMemo)((()=>i(s.Q2.endpoints.getMe.initiate({}))),[i]),t}},55654:(e,t,i)=>{i.d(t,{HN:()=>d,IO:()=>s,P9:()=>a,lt:()=>u,pb:()=>c,sg:()=>l,vl:()=>_});var o=i(32269);class n extends o.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 o=this._listeners;i&&"function"===typeof e&&(e=e.bind(i));const n=o.findIndex((([e,i])=>t<i)),s=[e,t];return o.splice(n>=0?n:o.length,0,s),{dispose(){const e=o.indexOf(s);e>=0&&o.splice(e,1)}}}}dispose(){this._listeners.splice(0,this._listeners.length),super.dispose()}}class s extends n{constructor(...e){super(...e),this.fire=this._fire.bind(this)}execute(e,t){for(const o of t)try{o(...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 o=new r(t);return o.addDisposable(e(o,i)),o.event}function l(e,t=0,i=0){const o=new s;let n,a=0;return o.addDisposable(e(((...e)=>{n=e,a||(a=setTimeout((()=>{o.fire(...n),a=0}),t))}),i)),o.event}class d extends s{constructor(...e){super(...e),this._suspendCounter=0,this._wasFired=!1}proccessResult(){}execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(const o of t)try{o(e)}catch(i){console.log(i)}}suspend(){this._suspendCounter++}resume(){0===--this._suspendCounter&&(this._wasFired&&this.fire(),this._wasFired=!1)}}class _ extends s{execute([e],t){for(const o of t)try{o(e)}catch(i){console.log(i)}}}class u extends s{async execute([e],t){const i=[];for(const o of t){const t=await o(e);i.push(t)}return i}}},48802:(e,t,i)=>{i.d(t,{U:()=>s,m:()=>a});var o=i(32269),n=i(55654);class s extends o.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 o=(0,n.P9)(e);return(e,n,s)=>{const a=o((async o=>{const n=t?t(o):o;s&&e.bind(s);const a=await e(n);return i?i(a):a}),n,s);return()=>a.dispose()}}},13652:(e,t,i)=>{i.d(t,{y:()=>o});const o=e=>{let t={current:Promise.resolve(),state:e,decorate:(e,i)=>(i&&(e=e.bind(i)),function(...i){const o=t.current.then((()=>e(...i)));return t.current=o.then((e=>{t.state=e}),(e=>{console.log(e)})),o})};return t}},18398:(e,t,i)=>{i.d(t,{Ay:()=>S,EV:()=>O,GH:()=>p,Ir:()=>h,Kj:()=>T,RP:()=>_,_R:()=>E,bn:()=>A,ee:()=>f,jY:()=>m,p5:()=>u,s0:()=>l,zg:()=>d});var o=i(90536),n=i(31770),s=i(68548);const a="configSlice",r=(0,n.ur)((0,s.$)("pro")),c=(0,o.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,o,n;const a=null!==(i=null===e||void 0===e||null===(o=e.advancedConfigs)||void 0===o?void 0:o[t.payload])&&void 0!==i?i:null===(n=(0,s.$)(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])=>s.i.includes(e))))};e.config=t}else e.config={...e.config,...(0,s.$)(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,m=e=>e[a].project,p=e=>e[a].config.mergeTags||e[a].initialMergeTags,{setPage:h,setConfig:g,updateConfig:E,setProject:A,setAdvancedConfigs:f,setMergeTags:v,changeConfigMode:O,setInitialMergeTags:T}=c.actions,S=c},47358:(e,t,i)=>{i.d(t,{Ay:()=>j,B:()=>y,Bp:()=>D,CS:()=>w,Ct:()=>M,Fk:()=>h,Fv:()=>R,M7:()=>I,N6:()=>T,NQ:()=>N,Oo:()=>m,PM:()=>p,Tn:()=>k,Uf:()=>f,V$:()=>B,Wm:()=>L,cL:()=>b,mi:()=>g,oG:()=>U,qf:()=>u,sy:()=>C,vc:()=>E,vs:()=>A,wW:()=>v,wr:()=>O,yy:()=>P});var o=i(90536),n=i(85163),s=i(31770),a=i(55701);const r=window.localStorage.getItem(n.V0.em_code_mode_settings),c=r&&JSON.parse(r),l=(0,s.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,o.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:m,setActiveSettingsTab:p,resetToLastActiveSettingsTab:h,switchIsPanelHistoryCollapsed:g,setEmailWidth:E,switchCodeMode:A,switchCodeModeDirection:f,setMobileViewActive:v,setEmailViewType:O,setCodeMode:T,setEmailMaxWidthSize:S,setPropertiesPanelKey:D,resetParentBlocks:C,setIsGlobalLoading:I}=_.actions,b=e=>e[d].activeModal,y=e=>e[d].activeSettingsTab,L=e=>e[d].isPanelHistoryCollapsed,N=e=>e[d].emailWidth,M=e=>e[d].emailViewType,w=e=>e[d].mobileViewActive,P=e=>e[d].codeModeDirection,R=e=>e[d].isCodeMode,k=e=>e[d].propertiesPanelKey,B=e=>e[d].parentBlocks,U=e=>e[d].isGlobalLoading,j=_},95713:(e,t,i)=>{i.d(t,{DX:()=>T,E_:()=>I,Fl:()=>b,HW:()=>N,PF:()=>D,aU:()=>P,dS:()=>o,fE:()=>v,gW:()=>y,ih:()=>R,ke:()=>C,ks:()=>S,tc:()=>k,uB:()=>f,xX:()=>L});var o,n=i(84978),s=i(34235),a=i(39946),r=i(63102),c=i(61883),l=i(11615),d=i(52692),_=i(93308),u=i(75664),m=i(3660),p=i(7492),h=i(97980),g=i(35152),E=i(86448),A=i(92798);class f{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?u.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};p.f.registerKeybindingRule(i)}}_.wb.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){d.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 v extends f{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(A.rr);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const o of this._implementations){const n=o.implementation(e,t);if(n){if(i.trace(`Command '${this.id}' was handled by '${o.name}'.`),"boolean"===typeof n)return;return n}}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class O extends f{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class T extends f{static bindToContribution(e){return class extends T{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,i,o){const n=e(i);n&&this._callback(n,o)}}}runCommand(e,t){const i=e.get(a.T),o=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(o)return o.invokeWithinContext((e=>{if(e.get(u.fN).contextMatchesRules((0,E.UH)(this.precondition)))return this.runEditorCommand(e,o,t)}))}}class S extends T{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=d.D8.EditorContext),t.title||(t.title=e.label),t.when=u.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(g.k).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class D 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 n=o[1](e,t,i);if(n){if("boolean"===typeof n)return;return n}}}}function C(e,t){_.wb.registerCommand(e,(function(e,...i){const o=e.get(m._Y),[n,a]=i;(0,E.j)(s.r.isUri(n)),(0,E.j)(r.y.isIPosition(a));const d=e.get(c.S).getModel(n);if(d){const e=r.y.lift(a);return o.invokeFunction(t,d,e,...i.slice(2))}return e.get(l.b).createModelReference(n).then((e=>new Promise(((n,s)=>{try{n(o.invokeFunction(t,e.object.textEditorModel,r.y.lift(a),i.slice(2)))}catch(c){s(c)}})).finally((()=>{e.dispose()}))))}))}function I(e){return M.INSTANCE.registerEditorCommand(e),e}function b(e){const t=new e;return M.INSTANCE.registerEditorAction(t),t}function y(e){return M.INSTANCE.registerEditorAction(e),e}function L(e){M.INSTANCE.registerEditorAction(e)}function N(e,t){M.INSTANCE.registerEditorContribution(e,t)}!function(e){e.getEditorCommand=function(e){return M.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return M.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return M.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return M.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return M.INSTANCE.getDiffEditorContributions()}}(o||(o={}));class M{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 w(e){return e.register(),e}M.INSTANCE=new M,h.O.add("editor.contributions",M.INSTANCE);const P=w(new v({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:d.D8.MenubarEditMenu,group:"1_do",title:n.kg({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:d.D8.CommandPalette,group:"",title:n.kg("undo","Undo"),order:1}]}));w(new O(P,{id:"default:undo",precondition:void 0}));const R=w(new v({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:d.D8.MenubarEditMenu,group:"1_do",title:n.kg({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:d.D8.CommandPalette,group:"",title:n.kg("redo","Redo"),order:1}]}));w(new O(R,{id:"default:redo",precondition:void 0}));const k=w(new v({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:d.D8.MenubarSelectionMenu,group:"1_basic",title:n.kg({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:d.D8.CommandPalette,group:"",title:n.kg("selectAll","Select All"),order:1}]}))},57964:()=>{}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[5641],{81154:(e,t,n)=>{n.d(t,{A:()=>i});const i=[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"]},56991:(e,t,n)=>{n.d(t,{bD:()=>s,Mu:()=>a,cM:()=>l,rD:()=>d});var i=n(45934),o=n(18398),r=n(71210);function s(e,t){if(e!==t){if(!e||!t||"object"!==typeof e||"object"!==typeof t)return!1;const n=t instanceof Array;if(e instanceof Array){if(!n)return!1;const i=e.length;if(t.length!==i)return!1;for(let n=0;n<i;n++)if(!s(e[n],t[n]))return!1}else if(n)return!1;const i=Object.keys(e),o=Object.keys(t),r=i.length;if(r!==o.length)return!1;for(let a=0;a<r;a++){const n=i[a];if(!t.hasOwnProperty(n)||!s(e[n],t[n]))return!1}}return!0}function a(e){if(e){const{type:t,project:n,isNew:i,id:o}=e;return`/projects/${n}/${"block"===t?"blocks":"emails"}/${i?`new?template=${o}`:o}`}return""}function d(){return(0,i.d4)(o.zg)}function l(e,t,n){return null!==e&&void 0!==e&&e.length?e.map(((e,i)=>function(e){return e.hasOwnProperty("children")}(e)?{key:(0,r.l)(),value:e.value,label:e.label,children:l(e.children,t,n),type:e.type}:{key:(0,r.l)(),label:e.label,value:e.value,onClick:t=>{n(e.value,t.domEvent)}})):void 0}},12264:(e,t,n)=>{function i(){const e=new Date;return e.valueOf()-60*e.getTimezoneOffset()*1e3}n.d(t,{N:()=>i})},33288:(e,t,n)=>{n.d(t,{di:()=>s});var i=n(95152),o=n(41664),r=n(23580);const s={getContainer:r.My,createIdentifier:o.Q,reducer:r.Ff,reducerPath:r.IP,getInstance:function(e,t){return(e instanceof i.m?e:(0,r.My)(e)).getInstance(t)},getInstanceAsync:function(e,t){return(e instanceof i.m?e:(0,r.My)(e)).getInstanceAsync(t)},getOrCreateInstance:function(e,t,n){return(e instanceof i.m?e:(0,r.My)(e)).getOrCreateInstance(t,n)},inject:function(e,t,n,i){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$}},41664:(e,t,n)=>{n.d(t,{Q:()=>o});var i=n(71210);function o(e=(0,i.l)()){return e}},82375:(e,t,n)=>{n.d(t,{Q:()=>i});const i=new(n(95152).m)},30725:(e,t,n)=>{n.d(t,{p:()=>o});var i=n(23580);function o(e){return(t,n,o,r)=>{const s=(0,i.My)(n);return e(s)(t,n,o,r)}}},77509:(e,t,n)=>{n.d(t,{j:()=>i});class i{constructor(e=[]){this._inner=e,this._isDisposed=!1}addDisposable(e){return this._inner.push(e),e instanceof i&&e.addDispose((()=>{this.removeDisposable(e)})),e}addDispose(e){this.addDisposable({dispose:e})}removeDisposable(e){const t=this._inner.indexOf(e);t>=0&&this._inner.splice(t,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const e of[...this._inner])e.dispose()}}}},47381:(e,t,n)=>{n.d(t,{u:()=>r});var i=n(92810),o=n(56991);const r=()=>{const e=(0,o.rD)();return(0,i.useCallback)(((t,n)=>{!1!==e.pushToGTM&&((e,t)=>{const n=()=>{try{const t={...e,appLabel:"blocks_app"};window.dataLayer&&"function"===typeof window.dataLayer.push?window.dataLayer.push(t):console.log("Attempting to add to the dataLayer:",e)}catch(t){console.error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 GTM:",t)}};t?setTimeout(n,t):n()})(t,n)}),[e.pushToGTM])}},71210:(e,t,n)=>{function i(){var e=(new Date).getTime(),t="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 e>0?(i=(e+i)%16|0,e=Math.floor(e/16)):(i=(t+i)%16|0,t=Math.floor(t/16)),("x"===n?i:3&i|8).toString(16)}))}n.d(t,{l:()=>i})},14004:(e,t,n)=>{n.d(t,{i:()=>o});var i=n(44141);const o=async(e,t,n)=>{const o=(0,i.KU)(t).baseUrl.replaceAll(/[\\/]$/g,""),r=(0,i.hI)({baseUrl:o});let s=await r(e,t,n);if(s.error){let e=s.error;if("function"===typeof e.json)try{e=await e.json()}catch{e=await e,console.log("error",e)}return{error:e}}return s}},89698:(e,t,n)=>{n.d(t,{V:()=>l});var i=n(85163),o=n(45695),r=n(23287),s=n(92810),a=n(45934),d=n(86286);function l(){const e=(0,o.QC)(),t=(0,a.d4)(d.C1),{__:n}=(0,r.s9)(),[l,c]=(0,s.useState)("");(0,s.useEffect)((()=>{if(t.locale!==l){const o=(0,i.QV)(n),r=e.onInit((()=>{e.send(i.Ru.SANDBOX_TRANSLATIONS,{name:t.locale,data:o}),c(t.locale)}));return()=>r.dispose()}}),[t.locale,l,c,n,e]),(0,s.useEffect)((()=>{const t=e.addListener(i.Ru.RELOAD,(()=>{c("")}));return()=>t.dispose()}),[c,e])}},37969:(e,t,n)=>{n.d(t,{y:()=>d});var i=n(85163),o=n(45695),r=n(92810),s=n(70082);const a=Symbol("isIframeEvent");function d({children:e}){const[t,n]=(0,r.useState)(),[d,l]=(0,r.useState)(),[c,u]=(0,r.useState)(!1),f=(0,o.QC)();return(0,r.useEffect)((()=>{if(t){const e=f.addListener(i.Ru.APPLICATION_IFRAME_DRAG_EVENT,(e=>{if("drageleave"!==e.type&&"dragenter"!==e.type){const n=t.getBoundingClientRect(),i=e.clientX+n.x+window.scrollX,o=e.clientY+n.y+window.scrollY,r=document.elementFromPoint(i,o);if(r){const t=new DataTransfer,n=new DragEvent(e.type,{clientX:i,clientY:o,cancelable:!0,bubbles:!0,dataTransfer:t});n[a]=!0,r.dispatchEvent(n)}}}));return()=>e.dispose()}}),[f,t]),(0,r.useEffect)((()=>{const e=e=>{e[a]||u(!0)},t=e=>{e[a]||u(!1)};return window.addEventListener("dragstart",e),window.addEventListener("dragend",t),()=>{window.removeEventListener("dragstart",e),window.removeEventListener("dragend",t)}}),[d]),(0,r.useEffect)((()=>{const e=e=>{if(!e[a]){var t;const n=d.getBoundingClientRect();f.send(i.Ru.SANDBOX_DRAG_EVENT,{value:(null===(t=e.dataTransfer)||void 0===t?void 0:t.getData("Text"))||"",type:e.type,clientX:e.pageX-n.x-window.scrollX,clientY:e.pageY-n.y-window.scrollY})}};if(d)return d.addEventListener("dragenter",e),d.addEventListener("dragover",e),d.addEventListener("dragleave",e),d.addEventListener("drop",e),d.addEventListener("dragend",e),()=>{d.removeEventListener("dragenter",e),d.removeEventListener("dragover",e),d.removeEventListener("dragleave",e),d.removeEventListener("drop",e),d.removeEventListener("dragend",e)}}),[d,f]),(0,s.jsxs)("div",{ref:n,children:[c&&(0,s.jsx)("div",{ref:l,className:"iframe-provider"}),e]})}},43672:(e,t,n)=>{n.d(t,{w:()=>l});var i=n(95838),o=n(85163),r=n(56991),s=n(45695),a=n(92810);const{useToken:d}=i.A;function l(){const e=(0,s.QC)(),{token:t}=d(),[n,i]=(0,a.useState)();(0,a.useEffect)((()=>{if(!(0,r.bD)(n,t)){const n=e.onInit((()=>{e.send(o.Ru.SANDBOX_SET_THEME_VARIABLES,t),i(t)}));return()=>n.dispose()}}),[t,n,i,e]),(0,a.useEffect)((()=>{const t=e.addListener(o.Ru.RELOAD,(()=>{i(void 0)}));return()=>t.dispose()}),[i,e])}},38920:(e,t,n)=>{n.d(t,{r:()=>b});var i=n(85163),o=n(59287),r=n(92810),s=n(45934),a=n(64617),d=n(86739),l=n(53204),c=n(47358),u=n(65983),f=n(39738),v=n(86286),p=n(56991),m=n(32411),h=n(83863),y=n(71157),g=n(42068),_=n(47381);function b(e){const{emailId:t,projectId:n}=(0,a.g)(),b=(0,y.hN)(),E=(0,p.rD)(),A=(0,s.d4)(l.M),T=(0,m.fn)(),w=(0,r.useRef)(0),D=(0,s.d4)(f.p1),N=(0,s.d4)(c.Wm),C=(0,s.d4)(c.B),S=(0,s.d4)(v.C1),I=(0,_.u)(),[x,R]=(0,d.LX)(),L=(0,s.wA)(),{isSuccess:O,isLoading:k}=(0,d.YV)({emailId:t},{skip:!t}),[j,M]=(0,r.useState)(null);(0,r.useEffect)((()=>{if(O&&!k&&null!==D&&void 0!==D&&D.length){const n=D[0];var t;if(n&&j!==(null===e||void 0===e?void 0:e.id))null!==(t=n.slug)&&void 0!==t&&t.includes("autosave")&&T&&L((0,u.no)(n)),M(null===e||void 0===e?void 0:e.id)}}),[L,D,O,k,null===e||void 0===e?void 0:e.id,j,T,t]);const G=(0,r.useCallback)((({parent:t})=>{if(e){const r={parent:t,title:e.title,author:e.author,project:e.project,html:(null===T||void 0===T?void 0:T.getValue())||"",excerpt:e.date_gmt,subject:e.subject,preheader:e.preheader,common_styles:e.common_styles,parent_email:e.parent_email};x({emailId:e.id,body:r}).then((t=>{if(I({event:"save",action:"auto_save_email",email_id:e.id,project_id:n}),!function(e){return e.hasOwnProperty("data")}(t))throw t.error;var s,a;i.EW.isPlugin||fetch((0,o.Wv)(i.Tm,n,null===(s=t.data)||void 0===s?void 0:s.id,null===(a=t.data)||void 0===a?void 0:a.modified),{mode:"no-cors"}),b.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:r,message:""},!0)})).catch((e=>{b.fromError("EMAIL_AUTOSAVE_ERROR",r,e,!0),console.log(e)}))}}),[x,e,T,n,b,I]),[P,V]=(0,r.useState)(!1),X=(0,r.useCallback)((()=>{if((null===D||void 0===D?void 0:D.length)>0){const e=[...D].sort(((e,t)=>Date.parse(null===t||void 0===t?void 0:t.modified)-Date.parse(null===e||void 0===e?void 0:e.modified)))[0];Date.parse((new Date).toString())-Date.parse(null===e||void 0===e?void 0:e.modified)>1.5*((null===E||void 0===E?void 0:E.autosaveTimeout)||1e4)&&N&&!A&&"Discuss"!==C&&G({parent:e.id})}else N&&!A&&"Discuss"!==C&&G({parent:null})}),[D,A,N,C,G,null===E||void 0===E?void 0:E.autosaveTimeout]);(0,g.Z)((([e])=>{P&&!e&&(X(),V(!1))}),[P,X,V]);const B=null===S||void 0===S?void 0:S.autosaves,[U,$]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{U&&!A&&(clearTimeout(w.current),w.current=setTimeout((()=>V(!0)),(null===E||void 0===E?void 0:E.autosaveTimeout)||1e4),$(!1))}),[U,A,null===E||void 0===E?void 0:E.autosaveTimeout,V,$]),(0,r.useEffect)((()=>{if(B&&O&&void 0!==(null===e||void 0===e?void 0:e.id)){const t=(0,h.Og)(T,(()=>{N&&null!==e&&void 0!==e&&e.is_inited&&$(!0)}));return()=>{t.dispose()}}}),[T,$,B,O,null===e||void 0===e?void 0:e.id,N,null===e||void 0===e?void 0:e.is_inited]),(0,g.Z)((([t,n])=>{B&&O&&void 0!==(null===e||void 0===e?void 0:e.id)&&N&&null!==e&&void 0!==e&&e.is_inited&&(t===(null===e||void 0===e?void 0:e.title)&&n===(null===e||void 0===e?void 0:e.common_styles)||$(!0))}),[null===e||void 0===e?void 0:e.title,null===e||void 0===e?void 0:e.common_styles,N,O,$,null===e||void 0===e?void 0:e.id,null===e||void 0===e?void 0:e.is_inited]),(0,r.useEffect)((()=>()=>{clearTimeout(w.current)}),[S,null===e||void 0===e?void 0:e.renderGuid]),(0,r.useEffect)((()=>{clearTimeout(w.current)}),[null===e||void 0===e?void 0:e.modified]),R}},9653:(e,t,n)=>{n.d(t,{U:()=>l});var i=n(85163),o=n(45695),r=n(32411),s=n(83863),a=n(42068),d=n(92810);const l=e=>{const t=(0,r.fn)(),n=(0,o.QC)(),l=(null===e||void 0===e?void 0:e.html)||"",c=(0,d.useRef)();c.current=e;const u=(0,d.useCallback)((e=>{const t=c.current;if(e===(null===t||void 0===t?void 0:t.renderGuid))return n.sendAsync(i.Ru.SANDBOX_INITED,{guid:t.renderGuid})}),[n]),f=(0,d.useCallback)((e=>{const t=c.current;if(e===(null===t||void 0===t?void 0:t.renderGuid))return n.sendAsync(i.Ru.SANDBOX_INIT_START,{guid:t.renderGuid})}),[n]),v=(0,d.useCallback)((async e=>{const o=c.current;if((null===o||void 0===o?void 0:o.renderGuid)===e){const e=null===l||void 0===l?void 0:l.replaceAll("\r\n","\n");try{(0,s.po)(t),t.setValue(e)}finally{(0,s.SF)(t)}const r=t.getValue();await n.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:r,guid:null===o||void 0===o?void 0:o.renderGuid})}}),[l,t,n]);(0,a.Z)((async([t])=>{const n=null===e||void 0===e?void 0:e.renderGuid;n&&n!==t&&(await f(n),await v(n),await u(n))}),[null===e||void 0===e?void 0:e.renderGuid,null===e||void 0===e?void 0:e.id,v])}},69106:(e,t,n)=>{n.d(t,{f:()=>m});var i=n(85163),o=n(13522),r=n(45695),s=n(93982),a=n(32411),d=n(83863),l=n(42068),c=n(92810),u=n(65983),f=n(8493),v=n(45934),p=n(87686);const m=(e,t)=>{var n,m,h,y,g;const _=(0,v.wA)(),b=(0,a.fn)(),E=(0,r.QC)(),A=(0,s.ml)(o.A.WILL_EMAIL_INIT_ID),T=(0,s.ml)(o.A.ON_EMAIL_INIT_ID),w=(0,s.ml)(o.A.ON_CONTENT_CHANGED_ID),D=(0,s.ml)(o.A.ON_EMAIL_CHANGED_ID),N=(0,s.ml)(o.A.ON_MODEL_CHANGE),C=(0,c.useRef)(!1),S=(0,c.useRef)();S.current=e,(0,c.useEffect)((()=>{const n=S.current;if(i.EW.isPlugin&&!C.current&&(null===e||void 0===e?void 0:e.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&null!==n&&void 0!==n&&n.is_inited&&n){const e=b.getValue();D.fire({...n,id:t||n.isNew?void 0:n.id,html:e})}}),[b,null===e||void 0===e?void 0:e.preheader,null===e||void 0===e?void 0:e.common_styles,null===e||void 0===e?void 0:e.subject,(null===e||void 0===e||null===(n=e.utm_parameters)||void 0===n?void 0:n.utm_campaign)||"",(null===e||void 0===e||null===(m=e.utm_parameters)||void 0===m?void 0:m.utm_content)||"",(null===e||void 0===e||null===(h=e.utm_parameters)||void 0===h?void 0:h.utm_medium)||"",(null===e||void 0===e||null===(y=e.utm_parameters)||void 0===y?void 0:y.utm_source)||"",(null===e||void 0===e||null===(g=e.utm_parameters)||void 0===g?void 0:g.utm_term)||"",D,t]),(0,l.Z)((([e])=>{e!==b&&N.fire(b)}),[b,N]),(0,c.useEffect)((()=>{if(i.EW.isPlugin){const n=b.onDidChangeContent((()=>{const n=S.current;if(!C.current&&(null===e||void 0===e?void 0:e.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const e=b.getValue();w.fire(e),D.fire({...n,id:t||n.isNew?void 0:n.id,html:e})}}));return()=>n.dispose()}}),[b,w,D,e,t]);const I=(0,c.useCallback)((async()=>{const e=S.current;try{var t;(0,d.po)(b),b.setValue((null===e||void 0===e||null===(t=e.html)||void 0===t?void 0:t.replaceAll("\r\n","\n"))||"")}finally{(0,d.SF)(b)}const n=b.getValue();await E.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:n,guid:e.renderGuid})}),[b,E]),x=(0,c.useCallback)((async()=>{const e=S.current;await E.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:b.getValue(),guid:e.renderGuid})}),[b,E]),R=(0,c.useCallback)((async()=>{const e=S.current;void 0!==e.preheader&&await E.sendAsync(i.Ru.SANDBOX_PREHEADER_UPDATE,{value:e.preheader,guid:e.renderGuid,force:!0})}),[E]),L=(0,c.useCallback)((async()=>{const e=S.current;void 0!==e.subject&&await E.sendAsync(i.Ru.SANDBOX_SUBJECT_UPDATE,{value:e.subject,guid:e.renderGuid,force:!0})}),[E]),O=(0,c.useCallback)((()=>{const e=S.current;return E.sendAsync(i.Ru.SANDBOX_INITED,{guid:e.renderGuid})}),[E]),k=(0,c.useCallback)((()=>{const e=S.current;return _(void 0===e.id?(0,f.Uh)(!0):(0,u.Wm)(!0)),T.fire({...e,id:t||e.isNew?void 0:e.id,html:b.getValue()})}),[_,T,b,t]),j=(0,c.useCallback)((()=>{const e=S.current;return E.sendAsync(i.Ru.SANDBOX_INIT_START,{guid:e.renderGuid})}),[E]),M=(0,c.useCallback)((()=>{const e=S.current;return A.fire({...e,id:t||e.isNew?void 0:e.id,html:b.getValue()})}),[A,b,t]),[G]=(0,l.c)((function*(){try{C.current=!0,yield*(0,p.T1)(j),yield*(0,p.T1)(M),yield*(0,p.T1)(I),yield*(0,p.T1)(R),yield*(0,p.T1)(L),yield*(0,p.T1)(O),yield*(0,p.T1)(k)}finally{C.current=!1}}),[I,R,L,k,M,j,O]),[P]=(0,l.c)((function*(){try{yield*(0,p.T1)(j),yield*(0,p.T1)(M),yield*(0,p.T1)(x),yield*(0,p.T1)(R),yield*(0,p.T1)(L),yield*(0,p.T1)(O),yield*(0,p.T1)(k)}catch(e){console.log(e)}}),[I,R,L,k,M,j,O]);(0,l.Z)((async([t])=>{const n=null===e||void 0===e?void 0:e.renderGuid;n&&n!==t&&G()}),[null===e||void 0===e?void 0:e.renderGuid,G]),(0,c.useEffect)((()=>{const e=E.addListenerAsync(i.Ru.RELOAD,(async()=>{await P()}));return()=>e.dispose()}),[E,P])}},14598:(e,t,n)=>{n.d(t,{QM:()=>a,q2:()=>u});var i=n(60564),o=n.n(i),r=n(58689),s=n(81158);function a(e,t){const n=document.createElement("input");n.type="file",n.accept=e,n.multiple=!0,n.onchange=()=>{var e;null!==(e=n.files)&&void 0!==e&&e.length&&t(n.files)},n.click()}const d="index.html";function l(e,t){return e.find((function(e){return e.name.toLowerCase().endsWith(t)}))}async function c(e,t,n){return await(0,r.bc)(e,(async e=>{e=e.replace("\\","/");const n=(0,r.$l)(e);return t(e,n)}),n)}async function u(e,t,n){if(e){switch(function(e){const t=e.split(".");return t[t.length-1].toLowerCase()}(e.name)){case"zip":return async function(e,t,n){var i=new(o());const{files:s}=await i.loadAsync(e),a=Object.keys(s).map((e=>s[e])),c=s[d]||l(a,d)||l(a,".html")||l(a,".htm");if(c){const e=c.name.split("/"),i=document.location.pathname.split("/"),o=document.location.origin+i.slice(0,i.length-e.length).join("/")+"/",a=await c.async("text"),d=e.slice(0,e.length-1).join("/");return await(0,r.bc)(a,(async e=>{(e=e.replace("\\","/")).startsWith(".")&&(e=e.substring(1)),e.startsWith("/")&&(e=e.substring(1)),e.startsWith(o)&&(e=e.substring(o.length)),d&&!e.match("^(ht|f)tp(s?)://")&&(e=`${d}/${e}`);const n=s[e];if(n){const e=n.name,i=await n.async("blob");return t(i,e)}const i=(0,r.$l)(e);return t(e,i)}),n)}}(e,t,n);case"eml":{const i=await e.text(),o=(0,s.bZ)(i);if(o instanceof Error)throw o;const r="string"===typeof o?o:o.html;if("undefined"===typeof r)throw new Error("Eml not contains text/html");return c(r,t,n)}default:return c(await e.text(),t,n)}}}},44396:(e,t,n)=>{n.d(t,{Q:()=>a});var i=n(60089),o=n(70609);const r=100;class s extends i.m{constructor(e,t,n,i){super(e,t,n,i),this._onScrollDisposable=null,this._editor=e}updateColorDecorators(e){if(this._onScrollDisposable&&(this._onScrollDisposable.dispose(),this._onScrollDisposable=null),e.length>=500){const t=this._editor;let[n,i]=[Number.MAX_VALUE,Number.MIN_VALUE];const o=()=>{const o=t.getVisibleRanges(),[s,a]=o.reduce(((e,{startLineNumber:t,endLineNumber:n})=>[Math.min(t,e[0]),Math.max(n,e[1])]),[Number.MAX_VALUE,Number.MIN_VALUE]);if(n-s>r||a-i>r){let t=e.filter((({colorInfo:e})=>{const{startLineNumber:t,endLineNumber:n}=e.range;return s-t<r&&n-a<r}));super.updateColorDecorators(t)}};this._onScrollDisposable=t.onDidScrollChange(o),o()}else super.updateColorDecorators(e)}dispose(){var e;null===(e=this._onScrollDisposable)||void 0===e||e.dispose(),super.dispose()}}function a(){(0,o.D0)(s.ID,(()=>s))}},36671:(e,t,n)=>{n.d(t,{h:()=>E});var i=n(92810),o=n(70609),r=n(85163),s=n(32411),a=n(64037),d=n(71157),l=n(45934),c=n(86286),u=n(23287),f=n(39217),v=n(45695),p=n(77509),m=n(83863);const h=1e3,y=2e3,g=10,_="iframe_errors",b=5;function E(e,t){const{__:n}=(0,u.s9)(),E=(0,v.QC)(),A=(0,s.aD)(e),{error:T}=(0,d.hN)(),w=(0,i.useRef)(0),D=(0,i.useRef)(),N=(0,i.useRef)(!1),C=(0,l.d4)(c.C1),S=(0,i.useCallback)((e=>new Promise(((t,n)=>{const i=E.addListener(r.Ru.SANDBOX_READY,(()=>{i.dispose(),t()}));e&&setTimeout((()=>{i.dispose(),n("timeout")}))}))),[E]),I=(0,i.useCallback)((i=>{S(y).catch((e=>console.log(e))).finally((()=>{Promise.resolve().then((()=>{if(!N.current){if(++w.current){if(D.current){if(w.current<b){A.restoreSnapshot(D.current);for(let e=0;e<w.current;e++)A.undo()}}else D.current=A.createSnapshot();E.send(r.Ru.RELOAD)}setTimeout((()=>{if(0===--w.current){D.current=null;const o={past:A.getPast().slice(0,g),future:A.getFuture(),errorResolved:!N.current,text:e.getValue(),message:i.message,stack:i.stack,userId:null===C||void 0===C?void 0:C.id,entityId:null===t||void 0===t?void 0:t.id,entityType:document.location.pathname.indexOf("emails")>0?"email":"block"};console.log(o),T({id:"IFRAME_ERROR",data:o,message:n("Something went wrong")}),f.CJ.post(_,o).catch((e=>console.log(e))),N.current=!1}}),y)}}))}))}),[A,e,T,null===C||void 0===C?void 0:C.id,null===t||void 0===t?void 0:t.id,n,S,E]);(0,a.A)(r.Ru.APPLICATION_DOMPARSER_ERROR,I),(0,i.useEffect)((()=>{let n=null,i=0;function s(e){const t=[];for(const{rangeOffset:n,rangeLength:i,text:o}of e.changes)t.push({range:{start:n,end:n+i},text:o});return t}let a=!1;const d=new p.j;return d.addDisposable((0,m.Og)(e,(e=>(async e=>{if(a)await E.sendAsync(r.Ru.SANDBOX_UPDATE_ENTITY,{edits:[s(e)],guid:t.renderGuid});else if(n)n.push(e);else{n=[e];do{const e=n.splice(0,n.length);await E.sendAsync(r.Ru.SANDBOX_UPDATE_ENTITY,{edits:e.map(s),guid:t.renderGuid})}while(n.length);n=null}})(e).catch((e=>console.log(e)))))),d.addDisposable(E.addListener(r.Ru.APPLICATION_UPDATE_ENTITY,(function({guid:n,edits:r,pushUndoStop:s}){if(e&&n===t.renderGuid)try{a=!0;const t=(0,o.yc)();let n=t.canUndo(e.uri),d=t.canRedo(e.uri);const l=r.map((({text:t,range:n})=>{const i=e.getPositionAt(n.start),o=e.getPositionAt(n.end);return{text:t,range:{startColumn:i.column,startLineNumber:i.lineNumber,endColumn:o.column,endLineNumber:o.lineNumber}}}));s||n||d?e.pushEditOperations([],l,(()=>null)):e.applyEdits(l),!1!==s&&(i&&clearTimeout(i),i=setTimeout((()=>{e.pushStackElement(),i=0}),h))}finally{a=!1}}))),()=>{d.dispose(),i&&clearTimeout(i)}}),[e,E,t.renderGuid])}},83863:(e,t,n)=>{n.d(t,{Og:()=>s,SF:()=>r,po:()=>o});const i=new Set;function o(e){return i.add(e),{dispose(){r(e)}}}function r(e){i.delete(e)}function s(e,t){let n=e.getVersionId(),o=[];const r=e.onDidChangeContent((r=>{if(r.versionId>n+1){let s=e.onDidChangeContent((a=>{if(r.versionId===n+1)try{i.has(e)||t(r)}catch(d){console.log(d)}finally{n=r.versionId;let e=o.indexOf(s);e>=0&&o.splice(e,1),s.dispose()}}));o.push(s)}else try{i.has(e)||t(r)}catch(s){console.log(s)}finally{n=r.versionId}}));return{dispose:()=>{r.dispose(),o.forEach((e=>e.dispose()))}}}},70609:(e,t,n)=>{n.d(t,{D0:()=>s,yc:()=>a});var i=n(95713),o=n(42443),r=n(60332);function s(e,t){const n=i.dS.getEditorContributions().find((t=>t.id===e));if(!n)throw new Error(`No contribution ${e}`);n.ctor=t(n)}function a(){return e=r.$D,o.QE.get(e);var e}},71157:(e,t,n)=>{n.d(t,{Gy:()=>f,O5:()=>m,hN:()=>p,x_:()=>v});var i=n(13522),o=n(93982),r=n(92810),s=n(33206),a=n(13329),d=n(28316),l=n(814),c=n(70082);const u="bottomRight";function f(e){return{id:e.id,code:e.html,title:e.title,subject:e.subject,preheader:e.preheader}}function v(e){return{id:e.id,code:e.html,title:e.title}}function p(){const e=(0,o.ml)(i.A.ON_NOTIFICATION),{notification:t}=s.A.useApp(),n=(0,r.useCallback)(((n,i)=>{n.type||(n={...n,type:"info"}),e.fire((0,l.TB)({id:n.id,type:n.type,data:n.data,innerException:n.innerException})).then((e=>{if(e.every((e=>!1!==e))){n={...n};for(const t of e)"object"===typeof t&&Object.assign(n,t,t.style?{style:{...t.style,...n.style}}:{},t.props?{props:{...t.props,...n.props}}:{},t.className?{className:n.className?`${n.className} ${t.className}`:t.className}:{});i||((n=Object.assign(n,...e.filter((e=>"object"===typeof e)))).placement||(n.placement=u),t[n.type]?t[n.type](n):(console.log(n.type),console.log(n.id),n.message&&console.log(n.message)))}}))}),[t,e]),a=(0,r.useCallback)(((e,t)=>n({...e,type:"error"},t)),[n]),d=(0,r.useCallback)(((e,t)=>n({...e,type:"success"},t)),[n]),f=(0,r.useCallback)(((e,t)=>n({...e,type:"warning"},t)),[n]),v=(0,r.useCallback)(((e,t)=>n({...e,type:"info"},t)),[n]),p=(0,r.useCallback)(((e,t,n,i,o=u)=>{var r,s;n&&a({id:e,data:t,message:n.data instanceof Error?"":(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(r=n.data)||void 0===r?void 0:r.code)||n.status||n}}),description:(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(s=n.data)||void 0===s?void 0:s.message)||n.error}}),placement:o,innerException:(null===n||void 0===n?void 0:n.data)instanceof Error?n.data:n},i)}),[a]);return(0,r.useMemo)((()=>({notify:n,success:d,error:a,warning:f,fromError:p,info:v})),[n,d,a,f,p,v])}function m(){const{notify:e}=p();(0,a.D3)(d.Sb,e)}},23287:(e,t,n)=>{n.d(t,{CY:()=>a,s9:()=>d});var i=n(92810),o=n(92032);function r(e){return{__:e.__.bind(e),_x:e._x.bind(e),_n:e._n.bind(e),_nx:e._nx.bind(e),sprintf:o.nv,isRTL:e.isRTL.bind(e),hasTranslation:e.hasTranslation.bind(e)}}const s=(0,i.createContext)(r(o.y3));function a(e){const{children:t,i18n:n=o.y3}=e,[,a]=(0,i.useReducer)((()=>[]),[]);(0,i.useEffect)((()=>n.subscribe(a)),[n]);const d=(0,i.useMemo)((()=>r(n)),[n]);return(0,i.createElement)(s.Provider,{value:d},t)}const d=()=>(0,i.useContext)(s)},42068:(e,t,n)=>{n.d(t,{Z:()=>r,c:()=>s});var i=n(92810),o=n(87686);const r=(e,t)=>{const n=(0,i.useRef)();n.current=e;const o=(0,i.useRef)(void 0);(0,i.useEffect)((()=>{null!==o.current&&n.current(o.current||[]),o.current=t}),t)};function s(e,t){const n=(0,i.useRef)(),r=(0,i.useCallback)((()=>{const e=n.current;e&&(0,o.eF)(e.halt)}),[]);(0,i.useEffect)((()=>()=>r()),[r]);const s=(0,i.useCallback)(e,t);return[(0,i.useCallback)(((...e)=>{r();const t=(0,o.eF)((()=>s(...e)));return n.current=t,t}),[r,s]),r]}},69156:(e,t,n)=>{n.d(t,{A5:()=>c,FN:()=>l,Hk:()=>d,c8:()=>u});var i=n(92810),o=n(85163),r=n(45695);const s=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]"),a=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=light]"),d=e=>{let t,n;e===o.IJ?(t=o.vd,n=o.F3):(t=e===o.T?o.y2:o.CJ,n=e===o.nd?o.y2:o.CJ),[...a].forEach((e=>{e.media=t})),[...s].forEach((e=>{e.media=n}))},l=(e={})=>{const t=document.querySelector("head"),n=document.createElement("style");if(n.type="text/css",n.dataset.themeVaribalse=!0,Object.entries(e).length){let i="";Object.entries(e).forEach((([e,t])=>{"object"!==typeof t&&(i+=`\t--${e}: ${t};\n`)})),i=`.blocks-body, .blocks-app, .ant-modal-root, .ant-tooltip, .ant-notification {\n${i}}`,n.appendChild(document.createTextNode(i));const o=t.querySelector('[data-theme-varibalse="true"]');o?t.replaceChild(n,o):t.insertBefore(n,t.firstChild)}},c=e=>{const t=document.body;t.classList.contains(e)||setTimeout((()=>{t.classList.remove(e===o.nd?o.T:o.nd),t.classList.add(e)}),200)},u=()=>{const e=(0,r.XW)();return(0,i.useCallback)((()=>{const t=window.localStorage.getItem(o.V0.em_color_scheme),n=matchMedia(o.F3).matches?o.nd:o.T,i=t||n;e({operation:o.Ru.UPDATE_PREVIEW,theme:i})}),[e])}},31770:(e,t,n)=>{function i(e){return e}function o({data:e,...t},n){return t.error?t:{data:n(e,t.meta),...t}}function r(e){return t=>o(t,e)}function s(e){return t=>o(t,((t,n)=>t.hasOwnProperty("previous")?e(t.previous,n):e(t,n)))}function a(e){return t=>function({data:e,...t},n){return t.error?t:{data:e.map((e=>n(e,t.meta))),...t}}(t,e)}n.d(t,{Ih:()=>a,PI:()=>s,SA:()=>o,SC:()=>r,ur:()=>i})},84869:(e,t,n)=>{function i(e,t){if("object"===typeof e&&e){t(e);for(const n of Object.values(e))i(n,t)}}function o(e=".blocks-app"){e=`${e} &`;const t=new WeakSet;return{visit:n=>{if(!t.has(n)){const o={};let r;for(const s of Object.keys(n)){const a=n[s];"object"===typeof a&&a?(a._keyframe&&i(a,(e=>t.add(e))),o[s]=a):(r||(r=o[e]={},t.add(r)),r[s]=a)}return o}return n}}}n.d(t,{A:()=>o})},44824:(e,t,n)=>{n.d(t,{e:()=>o});var i=n(26453);async function o(e,t){if("amp"===t){for(const t of e.querySelectorAll(".em-amp-show-disabled"))t.remove();await(0,i.Sc)(e,{mappedTags:{script:"___script"}})}else if("html"===t){for(const t of e.querySelectorAll(".em-amp-show-only"))t.remove();(0,i.Km)(e,{mappedTags:{script:"___script"}})}}},54416:(e,t,n)=>{e.exports=n.p+"static/media/frame_dark.png"},98578:(e,t,n)=>{e.exports=n.p+"static/media/frame_light.png"},68777:(e,t,n)=>{e.exports=n.p+"static/media/frame_template_gallery.png"}}]);
@@ -1 +0,0 @@
1
- (globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[78],{88647:(t,e,n)=>{"use strict";n.d(e,{h:()=>s});var i,d=n(92810);function a(){return a=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},a.apply(null,arguments)}function l({title:t,titleId:e,...n},l){return d.createElement("svg",a({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",ref:l,"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 s=d.forwardRef(l);n.p},79154:(t,e,n)=>{"use strict";n.d(e,{h:()=>s});var i,d=n(92810);function a(){return a=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},a.apply(null,arguments)}function l({title:t,titleId:e,...n},l){return d.createElement("svg",a({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",ref:l,"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 s=d.forwardRef(l);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:()=>l});const i=new Date,d=new Date(+i+432e6).toISOString(),a=-(new Date).getTimezoneOffset()/60,l=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=${a}&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=${a}&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>`},16409:(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(81154).A.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:()=>H,Ai:()=>m,NW:()=>T,RM:()=>b,TW:()=>O,Ze:()=>D,ok:()=>M,xc:()=>F,yy:()=>C});n(92810);var i=n(81662),d=n(7228),a=n(9588),l=n(37517),s=n(73035),r=n(27071),o=n(86657),p=n(85163),c=n(70082);const b=({linkProtocol:t})=>{switch(t){case"https://":default:return(0,c.jsx)(d.A,{rev:""});case"mailto:":return(0,c.jsx)(a.A,{rev:""});case"tel:":return(0,c.jsx)(l.A,{rev:""});case"sms:":return(0,c.jsx)(s.A,{rev:""});case"ftp://":return(0,c.jsx)(r.A,{rev:""});case"skype:":return(0,c.jsx)(o.A,{rev:""})}},m=({handleLinkProtocolsChange:t,linkProtocol:e,__:n})=>(0,c.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:g,mobileRadiusTopLeft:h,mobileRadiusBottomLeft:u,mobileRadiusTopRight:w,mobileRadiusBottomRight:x,borderRadiusBottomRight:v,borderRadiusTopRight:f,borderRadiusBottomLeft:y,borderRadiusTopLeft:R,alt:A,src:_,title:k,link:I,borderRadiusAll:B,imgReplacer:E,expanded:L}={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"},C={paddingTop:"top",paddingLeft:"left",paddingRight:"right",paddingBottom:"bottom",mobilePaddingTop:"top",mobilePaddingLeft:"left",mobilePaddingRight:"right",mobilePaddingBottom:"bottom"},S={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},T={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,M=t=>t||(0===t?"0":""),F=t=>t&&"auto"!==t?t:0===t?"0":"";function H(t){var e,n,i,d,a,l,s,r,o,p,c,b,m,g,h,u,w,x,v,f;let y={...t,link:t.link?t.link:"https://",borderRadiusAll:M(null===(e=t.borderRadius)||void 0===e?void 0:e.all),borderRadiusTopLeft:M(null===(n=t.borderRadius)||void 0===n?void 0:n.topLeft),borderRadiusBottomLeft:M(null===(i=t.borderRadius)||void 0===i?void 0:i.bottomLeft),borderRadiusTopRight:M(null===(d=t.borderRadius)||void 0===d?void 0:d.topRight),borderRadiusBottomRight:M(null===(a=t.borderRadius)||void 0===a?void 0:a.bottomRight),mobileBorderRadiusAll:M(null===(l=t.mobileBorderRadius)||void 0===l?void 0:l.all),mobileRadiusTopLeft:M(null!==(null===(s=t.mobileBorderRadius)||void 0===s?void 0:s.topLeft)?null===(r=t.mobileBorderRadius)||void 0===r?void 0:r.topLeft:null===(o=t.mobileBorderRadius)||void 0===o?void 0:o.all),mobileRadiusBottomLeft:M(null!==(null===(p=t.mobileBorderRadius)||void 0===p?void 0:p.bottomLeft)?null===(c=t.mobileBorderRadius)||void 0===c?void 0:c.bottomLeft:null===(b=t.mobileBorderRadius)||void 0===b?void 0:b.all),mobileRadiusTopRight:M(null!==(null===(m=t.mobileBorderRadius)||void 0===m?void 0:m.topRight)?null===(g=t.mobileBorderRadius)||void 0===g?void 0:g.topRight:null===(h=t.mobileBorderRadius)||void 0===h?void 0:h.all),mobileRadiusBottomRight:M(null!==(null===(u=t.mobileBorderRadius)||void 0===u?void 0:u.bottomRight)?null===(w=t.mobileBorderRadius)||void 0===w?void 0:w.bottomRight:null===(x=t.mobileBorderRadius)||void 0===x?void 0:x.all),show:t.show?t.show:"all",altSrc:t.src};var R,A;t.video&&(y.videoPlayButton=null!==(R=t.video.playButton)&&void 0!==R?R:"youtube_red",y.videoSource=null!==(A=t.video.source)&&void 0!==A?A:"");if((null===(v=t.carouselImages)||void 0===v?void 0:v.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===(f=t.sections)||void 0===f?void 0:f.length)>0){var k;let e=[];null===(k=t.sections)||void 0===k||k.map(((t,n)=>(e.push({[`expanded_${n}`]:t.expanded}),!0))),y.sections=e}return y}function D(t,e,n){const i=n.hasOwnProperty("images"),d=n.hasOwnProperty("sections"),a=Object.keys(i?n.images:d?n.sections:n)[0],l=i?n.images:d?n.sections:n;let s={};const r=e.getFieldsValue(!0);switch(a.split("_")[0]){case k:case _:case A:case E:if(i){let e=[...t.carouselImages];e[a.split("_")[1]][a.split("_")[0]]=l[a],s={carouselImages:e}}else s=l;break;case L:if(d){let e=[...t.sections];e[a.split("_")[1]][a.split("_")[0]]=l[a],s={sections:e}}break;case I:let n=l[a];"https://http"===n.substring(0,12)&&(n=n.substring(8,n.length)),t.type===p.bV.CAROUSEL?(s.carouselImages=t.carouselImages,i?(e.setFieldValue(["images",[I+"_"+a.split("_")[1]]],n),s.carouselImages[a.split("_")[1]].link=n,s.link="",e.setFieldValue(I,"https://")):(t.carouselImages.forEach(((t,i)=>{e.setFieldValue(["images",I+"_"+i],n),s.carouselImages[i].link=n,s.link=n})),e.setFieldValue(I,n))):(e.setFieldValue(I,n),s.link=n);break;case B:s={borderRadius:{...t.borderRadius,[S[R]]:r[R],[S[y]]:r[y],[S[f]]:r[f],[S[v]]:r[v],[S[a]]:+l[a]}};break;case R:case y:case f:case v:s={borderRadius:{...t.borderRadius,[S[B]]:null,[S[a]]:+l[a]}};break;case g:case h:case u:case w:case x:s={mobileBorderRadius:{...t.mobileBorderRadius,[T[h]]:r[h],[T[u]]:r[u],[T[w]]:r[w],[T[x]]:r[x],[T[a]]:l[a],classNamePrefix:"em-mob-border_radius_"+T[a]+"-"}};break;default:s=l}return{...t,...s}}},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'},19378:(t,e,n)=>{"use strict";function i(t){return t}n.d(e,{Qm:()=>i,bg:()=>r});const d="INIT_MESSAGE";function a(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}class l{constructor(){this._children=[],this._isDisposed=!1}isDisposed(){return this._isDisposed}addDisposable(t){return this._children.push(t),t.hasOwnProperty("addDisposable")&&t.addDisposable({dispose:()=>{const e=this._children.indexOf(t);e>=0&&this._children.splice(e,1)}}),t}removeDisposable(t){const e=this._children.indexOf(t);e>=0&&this._children.splice(e,1)}dispose(){this._isDisposed=!0;for(const t of this._children)t.dispose()}}class s extends l{constructor(...t){super(...t),this._listeners=Object.create(null),this.addListenerAsync=(t,e,n=0,i)=>{const d=this._listeners[t]||(this._listeners[t]=[]);i&&"function"===typeof e&&(e=e.bind(i));const a=d.findIndex((([t,e])=>n<=e)),l=[e,n];return this.isDisposed()||d.splice(a>=0?a:d.length,0,l),{dispose(){const t=d.indexOf(l);t>=0&&d.splice(t,1)}}},this.fireAsync=(t,e)=>{if(!this.isDisposed()){const n=this._listeners[t]||(this._listeners[t]=[]);let i;for(let t=0;t<n.length;t++){let e=n[t][0],d=i;i=t=>e(t,d)}if(i)return i(e)}},this.addListener=(t,e,n=0)=>this.addListenerAsync(t,((t,n)=>{try{e(t)}catch(i){console.log(i)}return n&&n(t)}),n)}}class r extends l{constructor(t,e){super(),this._singleton=e,this._target=void 0,this._guid=a(),this._targetGuid="",this._emitter=this.addDisposable(new s),this._onReceiveMessage=t=>{const e=t.data;if(n=e,i=this._guid,n&&"object"===typeof n&&n.guid===i||this._singleton&&function(t,e){return t&&"object"===typeof t&&t.operationId===e}(e,d)){const n=this._emitter.fireAsync(e.operationId||"",void 0===e.operationId?t:e.data),i=e.result,d=e.error;i&&d&&Promise.resolve(n).then((t=>this._sendMessage(i,t)),(t=>this._sendMessage(d,t)))}var n,i},window.addEventListener("message",this._onReceiveMessage),this.addListener(d,(t=>{this._targetGuid!==t&&(this._targetGuid=t,this.send(d,this._guid))})),t&&this.setTarget(t)}setTarget(t){this._target!==t&&(this._target=t,this._targetGuid="",t&&t.postMessage({operationId:d,data:this._guid},"*"))}getTarget(){return this._target}get target(){return this._target}_sendMessage(t,e,n=!0){if(!n&&!this.isInited())return;const i=this.addDisposable(this.onInit(((n,d)=>{const a=t?{operationId:t,data:e}:e;n.postMessage({...a,guid:d},"*"),i.dispose()})))}send(t,e,n){return"string"===typeof t?this._sendMessage(t,e,n):this._sendMessage("",t,e)}sendAsync(t,e,n=!0){if(!n&&!this.isInited())return Promise.resolve();const i=a(),d=a();return new Promise(((n,a)=>{const s=this.addDisposable(new l);s.addDisposable(this.onInit(((l,r)=>{l.postMessage({operationId:t,data:e,guid:r,result:i,error:d},"*"),s.addDisposable(this._onMessage(i,(t=>{n(t),s.dispose()}))),s.addDisposable(this._onMessage(d,(t=>{a(t),s.dispose()})))})))}))}_onMessage(t,e,n=0){return this._emitter.addListener(t,e,n)}addListener(t,e,n){return e?this._onMessage(t,e,n):this._onMessage("",t)}addListenerAsyncPipe(t,e,n=0){return this._emitter.addListenerAsync(t,e,n)}addListenerAsync(t,e,n=0){return this._emitter.addListenerAsync(t,(async(t,n)=>{const i=await e(t);return n?n(t):i}),n)}isInited(){return!!this._targetGuid}get inited(){return!!this._targetGuid}onInit(t,e=!0,n=0){const i=this.addDisposable(new l);return this._targetGuid&&this._target?e&&Promise.resolve().then((()=>{this._targetGuid&&this._target?t(this._target,this._targetGuid):i.addDisposable(this.onInit(t,e,n))})):i.addDisposable(this._onMessage(d,(()=>{t(this._target,this._targetGuid)}),n)),i}dispose(){window.removeEventListener("message",this._onReceiveMessage),super.dispose()}}},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"}}]);