@emailmaker/emailmaker 1.0.36 → 1.0.38
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.
- package/README.md +1 -1
- package/asset-manifest.json +80 -80
- package/emailmaker-esm.js +1 -1
- package/emailmaker.d.ts +1 -0
- package/emailmaker.js +1 -1
- package/iframe/429.js +1 -1
- package/iframe/css/sandbox.css +12 -6
- package/iframe/{iframe-eblock.603d533b4efe6f5579a6.html → iframe-eblock.06d3786ea0462c884b7e.html} +1 -1
- package/iframe/{iframe.603d533b4efe6f5579a6.html → iframe.06d3786ea0462c884b7e.html} +1 -1
- package/iframe/js/cssbeautify.js +1 -1
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/plugin.html +1 -1
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +1 -1
- package/plugin_s.html +1 -1
- package/static/css/2208.56ea0abb.css +1 -0
- package/static/css/{5571.e9720eda.css → 5571.504f05c9.css} +1 -1
- package/static/css/6677.6f28a0c0.css +1 -0
- package/static/css/8458.31d6cfe0.css +0 -0
- package/static/js/1399.f981f0f4.js +1 -0
- package/static/js/160.c2020dc9.js +1 -0
- package/static/js/18.7d3e3257.js +1 -0
- package/static/js/2059.6f21f841.js +2 -0
- package/static/js/2208.cb758bc6.js +1 -0
- package/static/js/2299.afe87d63.chunk.js +1 -0
- package/static/js/2587.4ec88069.js +2 -0
- package/static/js/2896.ce4941ab.js +2 -0
- package/static/js/3447.63d0aafa.js +1 -0
- package/static/js/{3682.d155b110.js → 3682.4db8ba34.js} +2 -2
- package/static/js/3710.193d2d5a.chunk.js +1 -0
- package/static/js/4035.1e8d8ad5.js +1 -0
- package/static/js/4877.5b496b72.js +1 -0
- package/static/js/5552.9e96baf9.js +1 -0
- package/static/js/5571.30a43d6b.js +1 -0
- package/static/js/723.e748d062.js +2 -0
- package/static/js/7291.e2615c74.js +1 -0
- package/static/js/78.8f294da6.js +1 -0
- package/static/js/8458.657f471c.js +1 -0
- package/static/js/8689.63fa1dc3.chunk.js +1 -0
- package/static/js/9154.7ebae9e2.js +1 -0
- package/static/js/9335.20ecdadf.js +1 -0
- package/static/js/9560.50289051.js +2 -0
- package/static/js/9593.8a0e7a2e.js +2 -0
- package/static/js/{2582.d77da683.js.LICENSE.txt → 9593.8a0e7a2e.js.LICENSE.txt} +16 -0
- package/static/js/emailmaker_core.24103916.js +1 -0
- package/static/js/mergeTags/locale1.490fa827.chunk.js +1 -0
- package/static/media/fb.png +0 -0
- package/static/media/ig.png +0 -0
- package/static/media/tg.png +0 -0
- package/static/media/tw.png +0 -0
- package/static/media/vk.png +0 -0
- package/static/media/yd.png +0 -0
- package/static/media/yt.png +0 -0
- package/translations.pot +256 -212
- package/static/css/2256.d0db3199.css +0 -1
- package/static/css/6677.3a2b7cfe.css +0 -1
- package/static/css/698.9a48c3be.css +0 -1
- package/static/js/1399.cb6eb2fa.js +0 -1
- package/static/js/1792.81307cce.js +0 -1
- package/static/js/1795.8ada4a9a.js +0 -1
- package/static/js/197.a135382e.js +0 -1
- package/static/js/2223.17806e9a.js +0 -2
- package/static/js/2256.ade5bf3a.js +0 -1
- package/static/js/2464.2c009f8c.js +0 -2
- package/static/js/2582.d77da683.js +0 -2
- package/static/js/2896.fac80e3c.js +0 -2
- package/static/js/3959.42824ee0.js +0 -1
- package/static/js/4877.b90d1691.js +0 -1
- package/static/js/515.16219a24.js +0 -2
- package/static/js/515.16219a24.js.LICENSE.txt +0 -6
- package/static/js/5571.383ce8ce.js +0 -1
- package/static/js/5606.a93f532c.js +0 -1
- package/static/js/5927.d93485f1.chunk.js +0 -1
- package/static/js/5957.d2ad88af.js +0 -2
- package/static/js/6567.e70469eb.js +0 -1
- package/static/js/698.6e8cee9e.js +0 -1
- package/static/js/7471.ae85b39d.js +0 -1
- package/static/js/8179.acf16a1a.chunk.js +0 -1
- package/static/js/8236.bdefaa6b.js +0 -2
- package/static/js/8689.e2d021af.chunk.js +0 -1
- package/static/js/8738.3ba7b2e7.js +0 -2
- package/static/js/8738.3ba7b2e7.js.LICENSE.txt +0 -87
- package/static/js/9019.7efd13af.js +0 -2
- package/static/js/9019.7efd13af.js.LICENSE.txt +0 -96
- package/static/js/9328.74394e00.js +0 -1
- package/static/js/9649.b9c16408.js +0 -1
- package/static/js/9907.0d22d89d.js +0 -1
- package/static/js/emailmaker_core.ea017ac4.js +0 -1
- package/static/js/mergeTags/locale1.3448e6cb.chunk.js +0 -1
- /package/static/css/{1795.3b54559d.css → 5552.3b54559d.css} +0 -0
- /package/static/js/{8236.bdefaa6b.js.LICENSE.txt → 2059.6f21f841.js.LICENSE.txt} +0 -0
- /package/static/js/{2223.17806e9a.js.LICENSE.txt → 2587.4ec88069.js.LICENSE.txt} +0 -0
- /package/static/js/{2896.fac80e3c.js.LICENSE.txt → 2896.ce4941ab.js.LICENSE.txt} +0 -0
- /package/static/js/{3682.d155b110.js.LICENSE.txt → 3682.4db8ba34.js.LICENSE.txt} +0 -0
- /package/static/js/{5957.d2ad88af.js.LICENSE.txt → 723.e748d062.js.LICENSE.txt} +0 -0
- /package/static/js/{2464.2c009f8c.js.LICENSE.txt → 9560.50289051.js.LICENSE.txt} +0 -0
- /package/static/media/{ai-image.7c42c2e1.png → ai-image.png} +0 -0
- /package/static/media/{codicon.f13d28f3.ttf → codicon.ttf} +0 -0
- /package/static/media/{empty-image.1827d656.png → empty-image.png} +0 -0
- /package/static/media/{frame_dark.318d7ed5.png → frame_dark.png} +0 -0
- /package/static/media/{frame_light.22a9b4ec.png → frame_light.png} +0 -0
- /package/static/media/{frame_template_gallery.85693b39.png → frame_template_gallery.png} +0 -0
- /package/static/media/{sign_up_01.33327158.png → sign_up_01.png} +0 -0
- /package/static/media/{sign_up_01_blocks.5538cfdb.png → sign_up_01_blocks.png} +0 -0
- /package/static/media/{sign_up_02.d99d2aa6.png → sign_up_02.png} +0 -0
- /package/static/media/{sign_up_02_blocks.837fc2c9.png → sign_up_02_blocks.png} +0 -0
- /package/static/media/{sign_up_03.5545ffad.png → sign_up_03.png} +0 -0
- /package/static/media/{sign_up_03_blocks.126601f7.png → sign_up_03_blocks.png} +0 -0
- /package/static/media/{sign_up_04.398a4ca5.png → sign_up_04.png} +0 -0
- /package/static/media/{sign_up_04_blocks.255c5c07.png → sign_up_04_blocks.png} +0 -0
- /package/static/media/{sign_up_05.4c58df1b.png → sign_up_05.png} +0 -0
- /package/static/media/{sign_up_05_blocks.431b6844.png → sign_up_05_blocks.png} +0 -0
- /package/static/media/{video.854adea5.png → video.png} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[78],{7760:(e,a,l)=>{l.d(a,{A9:()=>p,Ay:()=>B,DL:()=>g,Dz:()=>c,Fv:()=>v,JV:()=>k,Up:()=>y,b9:()=>T,eX:()=>m,gm:()=>M,iy:()=>f,nJ:()=>E,om:()=>b,qX:()=>S,rc:()=>u,vs:()=>r});var t=l(90536),o=l(31770),i=l(55701);const d=(0,o.ur)({invalidateBlockId:null,isCodeMode:!1,codeModeDirection:"right",editorThemeColor:"light",isSettingsDisabled:!1,settings:{width:""},elementSettings:{},searchFilters:{},block:{id:void 0,isNew:!1,subject:"",description:"",html:"",project:void 0,project_title:"",project_author:void 0,tags:[],type:"Other",title:null,isAmp:!1},monacoDidMount:!1}),n="blockSlice",s=(0,t.createSlice)({name:n,initialState:d,reducers:{switchCodeMode:e=>{e.isCodeMode=!e.isCodeMode},setEditorThemeColor:(e,a)=>{e.editorThemeColor=a.payload},setBlockSettings:(e,a)=>{Object.assign(e,{...e,settings:a.payload,isSettingsDisabled:!1})},setBlockSettingsDisable:(e,a)=>{e.isSettingsDisabled=a.payload},setElementSettings:(e,a)=>{e.elementSettings=a.payload},setSearchFilters:(e,a)=>{e.searchFilters=a.payload},setBlockHtml:(e,a)=>{e.block.html=a.payload},resetBlockSlice:()=>d,setBlockIsAmp:(e,a)=>{e.block.isAmp=a.payload}},extraReducers:e=>{e.addMatcher((e=>"blocksApi/queries/queryResultPatched"===e.type),((e,a)=>{var l,t;const o=a.payload.queryCacheKey.match(/\(([0-9]+)\)/),i=null===(l=a.payload)||void 0===l?void 0:l.patches[0];if(null!==i&&void 0!==i&&null!==(t=i.path)&&void 0!==t&&t[0]&&(e.block[null===i||void 0===i?void 0:i.path[0]]=i.value),null!==o&&void 0!==o&&o[1]&&(e.invalidateBlockId=o[1]),a.payload.queryCacheKey.startsWith("getBlock")){var d,n;const l=null===(d=a.payload)||void 0===d?void 0:d.patches[0];null!==l&&void 0!==l&&null!==(n=l.path)&&void 0!==n&&n[0]&&(e.block[null===l||void 0===l?void 0:l.path[0]]=l.value)}})),e.addMatcher((e=>"blocksApi/invalidateTags"===e.type),((e,a)=>{if(a.payload[0].id===+e.invalidateBlockId)return{...d,isCodeMode:null===e||void 0===e?void 0:e.isCodeMode,codeModeDirection:e.codeModeDirection}})),e.addMatcher(i.VM.endpoints.editBlock.matchFulfilled,((e,{payload:a})=>{e.invalidateBlockId=null,e.block={...e.block,...a,renderGuid:e.block.renderGuid}})),e.addMatcher(i.VM.endpoints.autoSaveBlock.matchFulfilled,((e,a)=>{var l,t;(null===e||void 0===e||null===(l=e.block.id)||void 0===l?void 0:l.toString())===(null===(t=a.payload.id)||void 0===t?void 0:t.toString())&&(e.block.html=a.payload.html)})),e.addMatcher(i.VM.endpoints.getBlock.matchFulfilled,((e,{payload:a})=>{e.block={...d.block,...a}}))}}),{switchCodeMode:r,setEditorThemeColor:m,setBlockSettings:c,setElementSettings:p,setBlockSettingsDisable:u,setSearchFilters:b,setBlockHtml:g,resetBlockSlice:E,setBlockIsAmp:h}=s.actions,v=e=>e[n].isCodeMode,y=e=>e[n].editorThemeColor,k=e=>e[n].settings,S=e=>e[n].elementSettings,f=e=>e[n].isSettingsDisabled,T=e=>e[n].searchFilters,M=e=>e[n].block,B=s},34524:(e,a,l)=>{l.d(a,{Ay:()=>k,D2:()=>b,FC:()=>c,LZ:()=>g,NK:()=>p,NP:()=>E,dV:()=>y,qM:()=>h,ux:()=>v,wK:()=>u});var t=l(90536),o=l(55701),i=l(49211),d=l(85163);const n=(0,l(31770).ur)({blocksTotal:null,blocksTotalPages:null,parentEmailBlocksTotal:null,parentEmailBlocksTotalPages:null,templateBlocks:[],templateBlocksTotal:null,templateBlocksTotalPages:null,elementsView:!d.EW.isPlugin&&i.A.get(d.A9.em_elements_view)||d.Y$,elementsList:[],customFolders:{},blocksTrashTotal:0,elementsTrashList:[]}),s="blocksPageSlice",r=(0,t.createSlice)({name:s,initialState:n,reducers:{resetPagesAndTotal:()=>n,resetElementsList:e=>{e.elementsList=[]},toggleElementsView:(e,a)=>{e.elementsView=a.payload},removeBlockFromList:(e,{payload:a})=>{var l;let t=e.customFolders;a.folder!==d.y2&&null!==(l=t[a.folder])&&void 0!==l&&l.list&&(t[a.folder]={...t[a.folder],list:t[a.folder].list.filter((e=>e.id!==a.emailId)),total:t[a.folder].total-1},e.customFolders=t)}},extraReducers:e=>{e.addMatcher(o.VM.endpoints.getBlocks.matchFulfilled,((e,{meta:a,payload:l})=>{var t,o,i,d,n,s,r,m;const c=null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-Total"),p="trash"===(null===(o=a.arg.originalArgs)||void 0===o?void 0:o.status),u=!(null===(i=a.arg.originalArgs)||void 0===i||null===(d=i.name)||void 0===d||!d.length),b=null===(n=a.arg.originalArgs)||void 0===n?void 0:n.page,g=(null===(s=a.arg.originalArgs)||void 0===s?void 0:s.folderTag)||(null===(r=a.arg.originalArgs)||void 0===r||null===(m=r.tags)||void 0===m?void 0:m[0]);p?(u||(e.blocksTrashTotal=c),e.elementsTrashList=l):g?e.customFolders={...e.customFolders,[g]:{list:l,page:b,total:c}}:(a.arg.originalArgs.tags||u||(e.blocksTotal=c),e.elementsList=l)})),e.addMatcher(o.VM.endpoints.getParentEmailBlocks.matchFulfilled,((e,{meta:a})=>{var l,t;const o=null===(l=a.baseQueryMeta)||void 0===l?void 0:l.response.headers.get("X-WP-Total"),i=null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-TotalPages");e.parentEmailBlocksTotal=o,e.parentEmailBlocksTotalPages=i})),e.addMatcher(o.VM.endpoints.getTemplateBlocks.matchFulfilled,((e,{meta:a,payload:l})=>{var t,o;const i=null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-Total"),d=null===(o=a.baseQueryMeta)||void 0===o?void 0:o.response.headers.get("X-WP-TotalPages");e.templateBlocks=l,e.templateBlocksTotal=i,e.templateBlocksTotalPages=d})),e.addMatcher(o.VM.endpoints.editBlock.matchFulfilled,((e,{payload:a})=>{e.elementsList.map((e=>{var l,t;return(null===(l=e.id)||void 0===l?void 0:l.toString())===(null===(t=a.id)||void 0===t?void 0:t.toString())?Object.assign(e,{lock:a.lock,title:a.title,blocktags:a.blocktags}):e}))}))}}),{resetPagesAndTotal:m,resetElementsList:c,toggleElementsView:p,removeBlockFromList:u}=r.actions,b=e=>e[s].blocksTotal,g=e=>e[s].templateBlocks,E=e=>e[s].customFolders,h=e=>e[s].elementsList,v=e=>e[s].elementsTrashList,y=e=>e[s].blocksTrashTotal,k=r},99751:(e,a,l)=>{l.d(a,{i:()=>i,$:()=>o});const t={pro:{config:{mode:"pro",autosaveTimeout:1e4,theme:"",themes:{},mergeTags:void 0,styles:"",revisionService:!1,headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,webversionEnabled:!0,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportZipEnabled:!0,exportClipboardEnabled:!0,exportWebHookEnabled:!0,exportOutlookEnabled:!0,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!0,aiAssistentEnabled:!0,optimizeEnabled:!0,settingsEnabled:!0,UTMEnabled:!0,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!0,formFieldBorderRadiusEnabled:!0,formFieldBoxShadowEnabled:!0,formFieldVisibilityEnabled:!0,formFieldExportAsPictureEnabled:!0,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!0,elementVideoEnabled:!0,elementAIimageEnabled:!0,elementAItextEnabled:!0,elementCarouselEnabled:!0,elementAccordionEnabled:!0,elementFormEnabled:!0,preventSendDataToEM:!1,imageInfoToolUrl:"",imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3,ampExportEnabled:!0,formFieldAmpVisibilityEnabled:!0,testEmails:[]},project:void 0,page:{isNew:!0,type:"email",project:0,id:""}},editor:{config:{mode:"editor",autosaveTimeout:1e4,theme:"",themes:{},mergeTags:void 0,styles:"",headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,webversionEnabled:!0,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportZipEnabled:!0,exportClipboardEnabled:!0,exportWebHookEnabled:!0,exportOutlookEnabled:!0,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!1,editImageControlEnabled:!0,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!0,aiAssistentEnabled:!0,optimizeEnabled:!0,settingsEnabled:!0,UTMEnabled:!0,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!1,formFieldBorderRadiusEnabled:!1,formFieldBoxShadowEnabled:!1,formFieldVisibilityEnabled:!1,formFieldExportAsPictureEnabled:!1,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!1,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!0,elementVideoEnabled:!0,elementAIimageEnabled:!0,elementAItextEnabled:!0,elementCarouselEnabled:!0,elementAccordionEnabled:!0,elementFormEnabled:!0,preventSendDataToEM:!1,imageInfoToolUrl:"",imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3,ampExportEnabled:!0,formFieldAmpVisibilityEnabled:!0,testEmails:[]},project:void 0,page:{isNew:!1,type:"email",project:0,id:""}},simple:{config:{mode:"simple",autosaveTimeout:1e4,theme:"",themes:{},mergeTags:void 0,styles:"",headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportZipEnabled:!0,exportClipboardEnabled:!0,exportWebHookEnabled:!0,exportOutlookEnabled:!1,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!0,aiAssistentEnabled:!0,optimizeEnabled:!0,settingsEnabled:!0,UTMEnabled:!1,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!1,formFieldBorderRadiusEnabled:!1,formFieldBoxShadowEnabled:!1,formFieldVisibilityEnabled:!1,formFieldExportAsPictureEnabled:!1,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!1,elementVideoEnabled:!1,elementAIimageEnabled:!0,elementAItextEnabled:!1,elementCarouselEnabled:!1,elementAccordionEnabled:!1,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:"",imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3,ampExportEnabled:!1,formFieldAmpVisibilityEnabled:!1,testEmails:[]},project:void 0,page:{isNew:!1,type:"email",project:0,id:""}}},o=e=>{const a=t[e];return a||t.editor},i=["mode","formFieldBorderEnabled","formFieldBorderRadiusEnabled","formFieldBoxShadowEnabled","formFieldVisibilityEnabled","formFieldExportAsPictureEnabled","formButtonFieldInsertImageEnabled","formButtonFieldVerticalAlignEnabled","formButtonFieldTextAlignEnabled","formButtonFieldBackgroundImageEnabled","formButtonFieldPaddingsEnabled","formCellFieldVerticalAlignEnabled","formCellFieldBackgroundImageEnabled","formCellFieldPaddingsEnabled","formLinkFieldInsertImageEnabled","formTableFieldBackgroundImageEnabled","formDivFieldBackgroundImageEnabled","formEmailFieldBackgroundImageEnabled"]},53204:(e,a,l)=>{l.d(a,{Ay:()=>m,M:()=>r,YT:()=>s,rI:()=>n});var t=l(90536);const o=(0,l(31770).ur)({isCollapsed:!0,isMonacoFocusing:!1}),i="defaultModePanesSlice",d=(0,t.createSlice)({name:i,initialState:o,reducers:{setMonacoFocusing:(e,a)=>{e.isMonacoFocusing=a.payload},resetPanes:()=>o}}),{resetPanes:n,setMonacoFocusing:s}=d.actions,r=e=>e[i].isMonacoFocusing,m=d},65983:(e,a,l)=>{l.d(a,{A9:()=>c,AJ:()=>E,Ay:()=>j,Bj:()=>f,CT:()=>I,G_:()=>m,HO:()=>b,Hs:()=>P,M7:()=>p,Up:()=>B,VK:()=>v,VO:()=>S,VZ:()=>_,Wm:()=>k,eX:()=>r,iy:()=>C,no:()=>y,om:()=>u,pl:()=>g,ps:()=>T,qX:()=>w,rd:()=>A,ss:()=>h,uJ:()=>F,zn:()=>M});var t=l(90536),o=l(31770),i=l(17581);const d=(0,o.ur)({invalidateEmailId:null,editorThemeColor:"light",isSettingsDisabled:!1,settings:{backgroundColor:"",backgroundImage:[{type:"url",value:""}],backgroundPositionX:"",backgroundPositionY:"",backgroundRepeat:"",textStrong:!1,textItalic:!1,textUnderline:!1},elementSettings:{},searchFilters:{},emailCommonStyles:"",saveTime:null,mobileViewActive:{shutdown:!0,styles:!0},email:{id:void 0,is_inited:!1,isNew:!1,hasAmp:!1,subject:void 0,preheader:void 0,description:"",html:"",project:void 0,project_author:"",project_title:"",tags:[],utm_parameters:{utm_source:"",utm_medium:"",utm_campaign:"",utm_term:"",utm_content:""},parent_email:null,common_styles:"",title:null,emailtags:[],isAmp:!1},emailIsEdit:!1,isCodeMode:!1,codeModeDirection:void 0,emailViewType:void 0,changeKey:null,problemsList:[],activeProblemRange:null}),n="emailSlice",s=(0,t.createSlice)({name:n,initialState:d,reducers:{setEditorThemeColor:(e,a)=>{e.editorThemeColor=a.payload},setEmailFromHistory:(e,{payload:a})=>{const l=e.email,t=void 0===(null===a||void 0===a?void 0:a.preheader),o=void 0===(null===a||void 0===a?void 0:a.subject);e.email={...l,html:null===a||void 0===a?void 0:a.html,preheader:t?l.preheader:null===a||void 0===a?void 0:a.preheader,subject:o?l.subject:null===a||void 0===a?void 0:a.subject,common_styles:void 0===(null===a||void 0===a?void 0:a.common_styles)?l.common_styles:null===a||void 0===a?void 0:a.common_styles}},setEmailSettings:(e,{payload:a})=>{Object.assign(e,{...e,settings:{...a},isSettingsDisabled:!1})},setEmailSettingsDisable:(e,a)=>{e.isSettingsDisabled=a.payload},setElementSettings:(e,{payload:a})=>{e.elementSettings=a},setSearchFilters:(e,a)=>{e.searchFilters=a.payload},setEmailHTML:(e,a)=>{e.email.html=a.payload},setEmailSubject:(e,a)=>{e.email.title!==e.email.subject&&(e.email.subject||e.email.title)||(e.email.title=a.payload),e.email.subject=a.payload},setEmailPreheader:(e,a)=>{e.email.preheader=a.payload},resetEmailSlice:e=>d,setEmailTitle:(e,a)=>{e.email.title=a.payload},setIsInited:(e,a)=>{e.email.is_inited=a.payload},setEmailIsAmp:(e,a)=>{e.email.isAmp=a.payload},setProblemsList:(e,a)=>{e.problemsList=a.payload},setActiveProblemRange:(e,a)=>{e.activeProblemRange=a.payload}},extraReducers:e=>{e.addMatcher((e=>"emailsApi/queries/queryResultPatched"===e.type),((e,a)=>{var l,t;const o=a.payload.queryCacheKey.match(/\("([0-9]+)"\)/),i=null===(l=a.payload)||void 0===l?void 0:l.patches[0];null!==i&&void 0!==i&&null!==(t=i.path)&&void 0!==t&&t[0]&&(e.email[null===i||void 0===i?void 0:i.path[0]]=i.value),null!==o&&void 0!==o&&o[1]&&(e.invalidateEmailId=o[1]),e.emailIsEdit=!0})),e.addMatcher((e=>"emailsApi/invalidateTags"===e.type),((e,a)=>{if(a.payload[0].id===+e.invalidateEmailId)return d})),e.addMatcher(i.GY.endpoints.editEmail.matchFulfilled,((e,{payload:a})=>{e.invalidateEmailId=null,e.email={...e.email,...a,renderGuid:e.email.renderGuid}})),e.addMatcher(i.GY.endpoints.autoSaveEmail.matchFulfilled,((e,a)=>{var l,t;(null===(l=e.email.id)||void 0===l?void 0:l.toString())===(null===(t=a.payload.id)||void 0===t?void 0:t.toString())&&(e.email.html=a.payload.html)})),e.addMatcher(i.GY.endpoints.getEmail.matchFulfilled,((e,{payload:a})=>{var l,t;e.email={...d.email,...a,is_inited:a.is_inited||(a.id===(null===(l=e.email)||void 0===l?void 0:l.id)?null===(t=e.email)||void 0===t?void 0:t.is_inited:d.email.is_inited)},e.emailIsEdit=!1}))}}),{setEditorThemeColor:r,setEmailSettings:m,setElementSettings:c,setEmailSettingsDisable:p,setSearchFilters:u,setEmailSubject:b,setEmailPreheader:g,setEmailHTML:E,resetEmailSlice:h,setEmailTitle:v,setEmailFromHistory:y,setIsInited:k,setEmailIsAmp:S,setProblemsList:f,setActiveProblemRange:T}=s.actions,M=e=>e[n].invalidateEmailId,B=e=>e[n].editorThemeColor,F=e=>e[n].settings,w=e=>e[n].elementSettings,C=e=>e[n].isSettingsDisabled,I=e=>e[n].searchFilters,P=e=>e[n].email,A=e=>e[n].problemsList,_=e=>e[n].activeProblemRange,j=s},94925:(e,a,l)=>{l.d(a,{Ay:()=>y,FC:()=>p,MY:()=>b,NK:()=>c,NP:()=>v,X:()=>u,aO:()=>h,ff:()=>m,qM:()=>g,ux:()=>E});var t=l(90536),o=l(17581),i=l(49211),d=l(85163);const n=(0,l(31770).ur)({emailsTotal:0,elementsList:[],emailsTrashTotal:0,elementsTrashList:[],customFolders:{},elementsView:!d.EW.isPlugin&&i.A.get(d.A9.em_elements_view)||d.Y$}),s="emailsPageSlice",r=(0,t.createSlice)({name:s,initialState:n,reducers:{resetPagesAndTotal:()=>n,resetElementsList:e=>{e.elementsList=[]},toggleElementsView:(e,a)=>{e.elementsView=a.payload},removeEmailFromList:(e,{payload:a})=>{var l;let t=e.customFolders;a.folder!==d.y2&&null!==(l=t[a.folder])&&void 0!==l&&l.list&&(t[a.folder]={...t[a.folder],list:t[a.folder].list.filter((e=>e.id!==a.emailId)),total:t[a.folder].total-1},e.customFolders=t)}},extraReducers:e=>{e.addMatcher(o.GY.endpoints.getEmails.matchFulfilled,((e,{meta:a,payload:l})=>{var t,o,i,d,n,s,r,m;const c=+(null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-Total"))||0,p="trash"===(null===(o=a.arg.originalArgs)||void 0===o?void 0:o.status),u=!(null===(i=a.arg.originalArgs)||void 0===i||null===(d=i.name)||void 0===d||!d.length),b=null===(n=a.arg.originalArgs)||void 0===n?void 0:n.page,g=(null===(s=a.arg.originalArgs)||void 0===s?void 0:s.folderTag)||(null===(r=a.arg.originalArgs)||void 0===r||null===(m=r.tags)||void 0===m?void 0:m[0]);p?(u||(e.emailsTrashTotal=c),e.elementsTrashList=l):g?e.customFolders={...e.customFolders,[g]:{list:l,page:b,total:c}}:(a.arg.originalArgs.tags||u||(e.emailsTotal=c),e.elementsList=l)})),e.addMatcher(o.GY.endpoints.getTemplateEmails.matchFulfilled,((e,{meta:a,payload:l})=>{var t;const o=+(null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-Total"))||0;e.elementsList=l,e.emailsTotal=o})),e.addMatcher(o.GY.endpoints.editEmail.matchFulfilled,((e,{payload:a})=>{e.elementsList.map((e=>{var l,t;return(null===(l=e.id)||void 0===l?void 0:l.toString())===(null===(t=a.id)||void 0===t?void 0:t.toString())?Object.assign(e,{lock:a.lock,title:a.title,emailtags:a.emailtags}):e}))}))}}),{resetPagesAndTotal:m,toggleElementsView:c,resetElementsList:p,removeEmailFromList:u}=r.actions,b=e=>e[s].emailsTotal,g=e=>e[s].elementsList,E=e=>e[s].elementsTrashList,h=e=>e[s].emailsTrashTotal,v=e=>e[s].customFolders,y=r},77532:(e,a,l)=>{l.d(a,{Ac:()=>b,Ay:()=>g,BK:()=>c,Uf:()=>u,Yw:()=>r,e_:()=>m,js:()=>p,tm:()=>s});var t=l(90536),o=l(31770);const i="imageSlice",d=(0,o.ur)({currentImage:"",currentBackground:"",currentImageName:""}),n=(0,t.createSlice)({name:i,initialState:d,reducers:{setCurrentImageName(e,a){e.currentImageName=a.payload},setCurrentImage(e,a){e.currentImage=a.payload},setCurrentBackground(e,a){e.currentBackground=a.payload},clearCurrentImages(e,a){e.currentImage="",e.currentBackground=""}}}),{setCurrentImage:s,setCurrentImageName:r,setCurrentBackground:m,clearCurrentImages:c}=n.actions,p=e=>e[i].currentImage,u=e=>e[i].currentImageName,b=e=>e[i].currentBackground,g=n},87790:(e,a,l)=>{l.d(a,{AS:()=>u,Ay:()=>k,Bp:()=>c,Sl:()=>y,TB:()=>g,X8:()=>E,ah:()=>v,qT:()=>p});var t=l(90536),o=l(55701),i=l(84568),d=l(35880),n=l.n(d);const s=(0,l(31770).ur)({block:{isNew:!0,subject:"",description:"",html:'<table cellspacing="0" cellpadding="0" border="0" width="100%">'+n()+"</table>",project:void 0,project_title:"",tags:[],type:"Other",title:null},hasChanged:!1}),r="newBlockSlice",m=(0,t.createSlice)({name:r,initialState:s,reducers:{setNewBlockAll:(e,{payload:{subject:a="",description:l="",renderGuid:t,html:o='<table cellspacing="0" cellpadding="0" border="0" width="100%">'+n()+"</table>",tags:i=[],type:d="Other",title:s,isAmp:r=!1}})=>{e.hasChanged||(e.hasChanged=!0),e.block.title=s,e.block.subject=a,e.block.description=l,e.block.html=o,e.block.tags=i,e.block.type=d,e.block.renderGuid=t,e.block.isAmp=r},setNewBlockTitle:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.block.title=a.payload},setNewBlockDescription:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.block.description=a.payload},setNewBlockHtml:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.block.html=a.payload},setNewBlockTags:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.block.tags=a.payload},resetNewBlockSlice:e=>({...s,block:{...s.block,project:e.block.project,project_title:e.block.project_title}}),setBlockIsAmp:(e,a)=>{e.block.isAmp=a.payload}},extraReducers:e=>{e.addMatcher(i.Nq.endpoints.getProject.matchFulfilled,((e,a)=>{e.block.project=a.payload.id,e.block.project_title=a.payload.title})),e.addMatcher(o.VM.endpoints.getBlock.matchFulfilled,(e=>({...s,block:{...s.block,project:e.block.project,project_title:e.block.project_title}})))}}),{setNewBlockAll:c,setNewBlockTitle:p,setNewBlockDescription:u,setNewBlockHtml:b,setNewBlockTags:g,resetNewBlockSlice:E,setBlockIsAmp:h}=m.actions,v=e=>e[r].block,y=e=>e[r].hasChanged,k=m},8493:(e,a,l)=>{l.d(a,{$S:()=>j,Ay:()=>x,BQ:()=>E,Et:()=>I,K3:()=>M,MZ:()=>g,P3:()=>F,TC:()=>k,TU:()=>h,Uh:()=>P,YG:()=>_,Zs:()=>y,aY:()=>S,lg:()=>A,mk:()=>w,ol:()=>B,x3:()=>v,yY:()=>T,zH:()=>C});var t=l(90536),o=l(17581),i=l(84568),d=l(85163),n=l(573),s=l.n(n),r=l(31770),m=l(71210),c=l(32269);const p=(0,r.ur)({emailtags:[],email:{isNew:!0,is_inited:!1,subject:void 0,preheader:void 0,description:"",html:s(),project:void 0,project_title:"",tags:[],utm_parameters:{utm_source:"",utm_medium:"",utm_campaign:"",utm_term:"",utm_content:""},parent_email:null,common_styles:"{}",title:"",emailtags:[],isAmp:!1},hasChanged:!1}),u="newEmailSlice",b=(0,t.createSlice)({name:u,initialState:p,reducers:{setNewEmailAll:(e,{payload:{id:a,subject:l,description:t="",preheader:o,html:i=s(),utm_parameters:{utm_source:n="",utm_medium:r="",utm_campaign:m="",utm_term:p="",utm_content:u=""}={},common_styles:b={},emailtags:g=null,renderGuid:E,title:h,_embedded:v,isAmp:y=!1}})=>{var k;e.hasChanged||(e.hasChanged=!0),e.email.isAmp=y,e.email.title=h,e.emailtags=g,e.email.subject=l,e.email.description=t,e.email.common_styles=JSON.stringify(b),e.email.preheader=o,e.email.is_template=!1,e.email.html=i,e.email.tags=(null===(k=(0,c._q)({_embedded:v},d.zh))||void 0===k?void 0:k.map((e=>e.name)))||[],e.email.renderGuid=E,e.email.parent_email=a,e.email.utm_parameters={utm_source:n,utm_medium:r,utm_campaign:m,utm_term:p,utm_content:u},e.email.common_styles=JSON.stringify(d.BD)},setNewEmailTitle:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.title=a.payload},setNewEmailSubject:(e,a)=>{e.hasChanged||e.email.subject===a.payload||(e.hasChanged=!0),e.email.title!==e.email.subject&&(e.email.subject||e.email.title)||(e.email.title=a.payload),e.email.subject=a.payload},setNewEmailPreheader:(e,a)=>{e.hasChanged||e.email.preheader===a.payload||(e.hasChanged=!0),e.email.preheader=a.payload},setNewEmailDescription:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.description=a.payload},setNewEmailIsTemplate:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.is_template=a.payload},setNewEmailHtml:(e,a)=>{e.hasChanged||(e.hasChanged=!0),a.payload&&(e.email.html=a.payload)},setNewCommonStyles:(e,a)=>{e.hasChanged||(e.hasChanged=!0),a.payload&&(e.email.common_styles=a.payload)},setNewEmailTags:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.tags=a.payload},setNewEmailUtmSource:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_source=a.payload},setNewEmailUtmMedium:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_medium=a.payload},setNewEmailUtmCampaign:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_campaign=a.payload},setNewEmailUtmTerm:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_term=a.payload},setNewEmailUtmContent:(e,a)=>{e.hasChanged||(e.hasChanged=!0),e.email.utm_parameters.utm_content=a.payload},setNewIsInited:(e,a)=>{e.email.is_inited=a.payload},setNewEmailIsAmp:(e,a)=>{e.email.isAmp=a.payload},resetNewEmailSlice:e=>({...p,email:{...p.email,guid:(0,m.l)(),project:e.email.project,project_title:e.email.project_title}})},extraReducers:e=>{e.addMatcher(i.Nq.endpoints.getProject.matchFulfilled,((e,a)=>{e.email.project=a.payload.id,e.email.project_title=a.payload.title})),e.addMatcher(o.GY.endpoints.getEmail.matchFulfilled,(e=>({...p,email:{...p.email,project:e.email.project,project_title:e.email.project_title}})))}}),{setNewEmailAll:g,setNewEmailTitle:E,setNewEmailSubject:h,setNewEmailPreheader:v,setNewEmailDescription:y,setNewEmailIsTemplate:k,setNewEmailHtml:S,setNewCommonStyles:f,setNewEmailTags:T,setNewEmailUtmSource:M,setNewEmailUtmMedium:B,setNewEmailUtmCampaign:F,setNewEmailUtmContent:w,setNewEmailUtmTerm:C,resetNewEmailSlice:I,setNewIsInited:P,setNewEmailIsAmp:A}=b.actions,_=e=>e[u].email,j=e=>e[u].hasChanged,x=b},36404:(e,a,l)=>{l.d(a,{Ay:()=>c,od:()=>r,yN:()=>m});var t=l(90536),o=l(31770),i=l(84568);const d=(0,o.ur)({project:null}),n="projectSlice",s=(0,t.createSlice)({name:n,initialState:d,reducers:{setProject:(e,{payload:a})=>{e.project=a}},extraReducers:e=>{e.addMatcher(i.Nq.endpoints.getProject.matchFulfilled,((e,{payload:a})=>{e.project={...d.project,...a}})),e.addMatcher(i.Nq.endpoints.editProject.matchFulfilled,((e,{payload:a})=>{e.project={...d.project,...a}}))}}),{setProject:r}=s.actions,m=e=>e[n].project,c=s},64936:(e,a,l)=>{l.d(a,{Ay:()=>w,Cj:()=>k,Oo:()=>E,Os:()=>v,Wz:()=>h,YF:()=>g,cL:()=>S,gU:()=>F,o8:()=>M,qf:()=>b,sB:()=>y,sK:()=>f,uM:()=>B,vW:()=>T});var t=l(90536),o=l(31770),i=l(84568),d=l(93563),n=l(85163);const s=new URLSearchParams(window.location.search),r=s.get("tag"),m=s.get("folder"),c=(0,o.ur)({activeModal:"",secondModal:"",projectsTotal:"",projectsTotalPages:"",folders:[],activeTagId:r||null,activeFolderId:m||(r?null:n.y2),activeTab:null}),p="projectsPageSlice",u=(0,t.createSlice)({name:p,initialState:c,reducers:{openModal(e,a){e.activeModal=a.payload},setActiveTab(e,a){e.activeTab=a.payload},closeModal(e){e.activeModal=""},openSecondModal(e,a){e.secondModal=a.payload},closeSecondModal(e){e.secondModal=""},setFolders(e,{payload:a}){e.folders=a},setActiveTagId(e,{payload:a}){e.activeTagId=a}},extraReducers:e=>{e.addMatcher(i.Nq.endpoints.getProjects.matchFulfilled,((e,{meta:a})=>{var l,t;const o=null===(l=a.baseQueryMeta)||void 0===l?void 0:l.response.headers.get("X-WP-Total"),i=null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-TotalPages");e.projectsTotal=o,e.projectsTotalPages=i})),e.addMatcher(d.kE.endpoints.getFolders.matchFulfilled,((e,{payload:a})=>{e.folders=a}))}}),{openModal:b,setActiveTab:g,closeModal:E,openSecondModal:h,closeSecondModal:v,setFolders:y,setActiveTagId:k}=u.actions,S=e=>e[p].activeModal,f=e=>e[p].secondModal,T=e=>e[p].projectsTotal,M=e=>e[p].folders,B=e=>e[p].activeTagId,F=e=>e[p].activeTab,w=u},39738:(e,a,l)=>{l.d(a,{Ay:()=>u,RL:()=>p,p1:()=>c,qX:()=>r});var t=l(90536),o=l(17581),i=l(55701);const d=(0,l(31770).ur)({historyData:[],elementHistoryTotalPages:1}),n="revisionHistorySlice",s=(0,t.createSlice)({name:n,initialState:d,reducers:{resetElementHistorySlice:()=>({...d}),setElementHistory:(e,a)=>{0!==a.payload.length&&(e.historyData=a.payload)}},extraReducers:e=>{e.addMatcher(o.GY.endpoints.getEmailHistory.matchFulfilled,((e,{meta:a,payload:l})=>{var t;e.elementHistoryTotalPages=+(null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-TotalPages")),a.arg.originalArgs.page&&1!==a.arg.originalArgs.page||(e.historyData=l.data||[])})),e.addMatcher(i.VM.endpoints.getBlockHistory.matchFulfilled,((e,{meta:a,payload:l})=>{var t;e.elementHistoryTotalPages=+(null===(t=a.baseQueryMeta)||void 0===t?void 0:t.response.headers.get("X-WP-TotalPages")),l.args.page&&1!==l.args.page||(e.historyData=l.data||[])}))}}),{resetElementHistorySlice:r}=s.actions,{setElementHistory:m}=s.actions,c=e=>e[n].historyData,p=e=>e[n].elementHistoryTotalPages,u=s},86286:(e,a,l)=>{l.d(a,{Ay:()=>S,B:()=>E,B$:()=>k,C1:()=>h,hZ:()=>y,ko:()=>u,ku:()=>c,ww:()=>r,yf:()=>v});var t=l(90536),o=l(39990),i=l(85163),d=l(32269);const n=(0,l(31770).ur)({currentUser:{},currentSchema:{},monacoOptions:i.rW,monacoDidMount:!1}),s="userSlice",r=(0,t.createAsyncThunk)("user/setMonacoOptions",(async(e,{getState:a})=>{const l=a()[s],t="string"===typeof e.font_family?`${e.font_family}, sans-serif`:void 0,o=void 0!==e.word_wrap?e.word_wrap?"on":"off":void 0;return t&&l.monacoOptions.fontFamily!==t&&await(0,d.iV)(e.font_family),{tabSize:e.tab_size,fontFamily:t,fontSize:e.font_size,wordWrap:o,insertSpaces:e.insert_spaces,minimap:{enabled:e.minimap}}})),m=(0,t.createSlice)({name:s,initialState:n,reducers:{setMonacoDidMount:(e,{payload:a})=>{e.monacoDidMount=a},setTheme:(e,{payload:a})=>{e.currentUser.theme=a},setUserLocale:(e,{payload:a})=>{e.currentUser.locale=a},setUserAutosaves:(e,{payload:a})=>{e.currentUser.autosaves=a},setUser:(e,{payload:a})=>{e.currentUser={...e.currentUser,...a}}},extraReducers:e=>{e.addCase(r.fulfilled,((e,a)=>{const l=a.payload;e.monacoOptions=(0,d.i0)({...e.monacoOptions},l)})),e.addMatcher(o.Q2.endpoints.editMe.matchFulfilled,((e,a)=>{e.currentUser=a.payload})),e.addMatcher(o.Q2.endpoints.getMe.matchFulfilled,((e,a)=>{e.currentUser=a.payload})),e.addMatcher(o.Q2.endpoints.getSchema.matchFulfilled,((e,a)=>{e.currentSchema=a.payload.schema}))}}),{setMonacoDidMount:c,setTheme:p,setUserLocale:u,setUserAutosaves:b,setUser:g}=m.actions,E=e=>{var a;return null===(a=e[s].currentUser)||void 0===a?void 0:a.locale},h=e=>e[s].currentUser,v=e=>e[s].currentSchema,y=e=>e[s].monacoOptions,k=e=>{var a;return 3891!==(null===(a=e[s].currentUser.subscription)||void 0===a?void 0:a.ID)},S=m}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[8458],{90219:(e,t,a)=>{a.d(t,{A:()=>S});var s=a(92810),l=a(95838),i=a(12280),n=a(55039),r=a(81662),o=a(66522),c=a(28372),m=a(45934),d=a(64617),u=a(23287),p=a(38883),h=a.n(p),_=a(55701),g=a(17581),A=a(84568),x=a(8493),j=a(87790),y=a(65983),v=a(56991),b=a(32269),f=a(85163),k=a(70082);const{useToken:w}=l.A,{title:O,description:N,tags:D,type:C,is_template:I}={title:"title",description:"description",tags:"tags",type:"type",is_template:"is_template"},P={[O]:"",[N]:"",[D]:[],[I]:!1},E={[N]:"",[D]:[],[C]:""},L=({className:e,element:t})=>{const{__:a}=(0,u.s9)(),{projectId:l}=(0,d.g)(),p=(0,m.wA)(),[L]=i.A.useForm(),{token:S}=w(),z=(0,v.rD)(),M=(0,m.Pj)(),U=t.hasOwnProperty("type")?f.IE:f.Tm,T=t.hasOwnProperty("type")?f.YY:f.zh;const{data:G}=A.Nq.endpoints.getProject.select(+l)(M.getState());(0,s.useEffect)((()=>{var e;q(null===(e=function(e){const t=new Set;return null===e||void 0===e?void 0:e.filter((e=>!t.has(e.name)&&(t.add(e.name),!0)))}((0,b.HT)(G,T)))||void 0===e?void 0:e.map((e=>({value:e.name,key:e.id}))))}),[G,T]),(0,s.useEffect)((()=>{if(t){var e,a;const s=null===(e=(0,b._q)(t,T))||void 0===e?void 0:e.map((e=>e.name)),l=t.emailtags||t.blocktags,i=null===(a=(0,b._q)(t,T))||void 0===a?void 0:a.filter((e=>l.includes(e.id))).map((e=>e.name));L.setFieldsValue({title:t.title,description:t.description,tags:t.tags||i||s,type:t.type})}}),[L,t,T]);const{data:F}=(0,_.h1)(),[B,V]=(0,s.useState)([]),[R,q]=(0,s.useState)([]);return(0,s.useEffect)((()=>{if(F){const e=F.schema.properties.acf.properties.type.items.enum;let t=[];const s={Applications:a("Apps"),Articles:a("Article"),Banners:a("Banners"),Buttons:a("Buttons"),"Call to Action":a("Call to Action"),Contacts:a("Contacts"),Content:a("Content"),"E-Commerce":a("E-Commerce"),Feature:a("Features"),Footer:a("Footers"),Header:a("Headers"),Lists:a("Lists"),Menu:a("Menus"),Other:a("Others"),Polls:a("Polls"),Promocodes:a("Promocodes"),Separators:a("Separators")};for(let a in e)t.push({label:s[e[a]],value:e[a]});V(t)}}),[F,a]),(0,k.jsx)("div",{className:h()("settings-panel",{[e]:e}),children:(0,k.jsxs)(i.A,{form:L,layout:"vertical",name:"settings_panel_form",initialValues:U===f.Tm?{EmailInitialValues:P}:E,onValuesChange:e=>{const a=Object.keys(e)[0];switch(a){case O:t.isNew?p((0,x.BQ)(e[a])):p((0,y.VK)(e[a]));break;case N:U===f.Tm?t.isNew?p((0,x.Zs)(e[a])):p(g.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{description:e[a]})}))):t.isNew?p((0,j.AS)(e[a])):p(_.VM.util.updateQueryData("getBlock",t.id,(t=>{Object.assign(t,{description:e[a]})})));break;case I:t.isNew?p((0,x.TC)(e[a])):p(g.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{is_template:e[a]})})));break;case D:{const s=e[a].map((e=>e.trim()));U===f.Tm?t.isNew?p((0,x.yY)(s)):p(g.GY.util.updateQueryData("getEmail",t.id,(e=>{Object.assign(e,{tags:s})}))):t.isNew?p((0,j.TB)(s)):p(_.VM.util.updateQueryData("getBlock",t.id,(e=>{Object.assign(e,{tags:s})})));break}case C:p(_.VM.util.updateQueryData("getBlock",t.id,(t=>{Object.assign(t,{type:e[a]})})));break;default:return}},autoComplete:"off",children:[z.subjectEnabled&&U===f.Tm&&(0,k.jsx)(i.A.Item,{label:a("Title"),name:O,tooltip:{title:a("The title of the email is displayed in the list of the templates and usually matches the subject line, but you can change it."),icon:(0,k.jsx)(c.A,{})},children:(0,k.jsx)(n.A.TextArea,{placeholder:a("Type title here"),autoSize:{minRows:1}})}),z.descriptionEnabled&&(0,k.jsx)(i.A.Item,{label:a("Description"),name:N,tooltip:{title:a("Description is used in other sections of the service."),icon:(0,k.jsx)(c.A,{})},children:(0,k.jsx)(n.A.TextArea,{placeholder:a("Type your description here"),autoSize:{minRows:2}})}),z.tagsEnabled&&(0,k.jsx)(i.A.Item,{label:a("Tags"),name:D,tooltip:{title:a("Tags help you find the block in the list."),icon:(0,k.jsx)(c.A,{})},rules:[{message:"Please input your username!",type:"array"}],children:(0,k.jsx)(r.A,{mode:"tags",style:{width:"100%"},placeholder:a("Type your tags here"),options:R,tagRender:e=>{const{label:t,closable:a,onClose:s}=e;return(0,k.jsx)(o.A,{color:S.colorPrimary,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},closable:a,onClose:s,style:{borderRadius:6},children:t})},getPopupContainer:()=>document.querySelector(".email-settings__collapse")})}),U===f.IE&&(0,k.jsx)(i.A.Item,{name:C,label:a("Type"),tooltip:{title:a("Select the block type to find any block on the list faster."),icon:(0,k.jsx)(c.A,{})},rules:[{message:"Please input type!"}],children:(0,k.jsx)(r.A,{placeholder:a("Choose block type"),options:B,getPopupContainer:()=>document.querySelector(".email-settings__collapse")})})]})})};L.defaultProps={className:"",email:void 0};const S=L},13465:(e,t,a)=>{a.d(t,{A:()=>y});a(92810);var s=a(2018),l=a(7744),i=a(68694),n=a.n(i),r=a(38610),o=a.n(r),c=a(73248),m=a.n(c),d=a(41705),u=a.n(d),p=a(96588),h=a.n(p),_=a(97433),g=a.n(_),A=a(32269),x=(a(13591),a(70082));const j=[{sizeArray:[24],name:"column-one",html:n()},{sizeArray:[12,12],name:"column-two-50",html:u()},{sizeArray:[8,8,8],name:"column-three",html:h()},{sizeArray:[6,6,6,6],name:"column-four",html:g()},{sizeArray:[8,16],name:"column-two-33",html:o()},{sizeArray:[16,8],name:"column-two-66",html:m()}],y=()=>{const e=(0,A.sh)(),t=(0,A._9)();return(0,x.jsx)("div",{className:"structures blocks-search__empty-wrapper",children:(0,x.jsx)("div",{className:"structures__list",children:(0,x.jsx)("div",{children:j&&j.map(((a,i)=>(0,x.jsx)("div",{children:(0,x.jsx)("div",{className:"structures__item",draggable:!0,onClick:t=>e(t,a.html),onDragStart:e=>t(e,a.html),children:(0,x.jsx)(s.A,{gutter:[6,6],className:"structures__item-row",children:a.sizeArray.map(((e,t)=>(0,x.jsx)(l.A,{span:e,children:(0,x.jsx)("div",{className:"structures__item-col"})},a.name+t)))})})},a.name)))})})})}},85291:(e,t,a)=>{a.d(t,{A:()=>y});a(92810);var s=a(2018),l=a(7744),i=a(69029),n=a.n(i),r=a(41579),o=a.n(r),c=a(70869),m=a.n(c),d=a(8456),u=a.n(d),p=a(20931),h=a.n(p),_=a(24186),g=a.n(_),A=a(32269),x=(a(13591),a(70082));const j=[{sizeArray:[24],name:"column-one",html:n()},{sizeArray:[12,12],name:"column-two-50",html:u()},{sizeArray:[8,8,8],name:"column-three",html:h()},{sizeArray:[6,6,6,6],name:"column-four",html:g()},{sizeArray:[8,16],name:"column-two-33",html:o()},{sizeArray:[16,8],name:"column-two-66",html:m()}],y=()=>{const e=(0,A.sh)(),t=(0,A._9)();return(0,x.jsx)("div",{className:"structures blocks-search__empty-wrapper",children:(0,x.jsx)("div",{className:"structures__list",children:(0,x.jsx)("div",{children:j&&j.map(((a,i)=>(0,x.jsx)("div",{children:(0,x.jsx)("div",{className:"structures__item",draggable:!0,onClick:t=>e(t,a.html),onDragStart:e=>t(e,a.html),children:(0,x.jsx)(s.A,{gutter:[6,6],className:"structures__item-row",children:a.sizeArray.map(((e,t)=>(0,x.jsx)(l.A,{span:e,children:(0,x.jsx)("div",{className:"structures__item-col"})},a.name+t)))})})},a.name)))})})})}},57903:(e,t,a)=>{a.d(t,{A:()=>u});a(92810);var s=a(59018),l=a.n(s),i=a(23287),n=a(71157),r=a(17581),o=a(55701),c=a(32269),m=a(70082);const d=({element:e})=>{const{__:t,_x:a}=(0,i.s9)(),[s]=(0,r.dN)(),[l]=(0,o.OZ)(),d=(0,n.hN)(),u=(e,s)=>{if(e.error)return(0,c.p6)(e,d),!1;(0,c.wB)(t("The ")+(s.hasOwnProperty("type")?t("block"):a("email","letter"))+" "+t("\u201c")+e.data.title+t("\u201d")+t("was successfully")+" "+(s.lock?s.hasOwnProperty("type")?a("unlocked.","block"):a("unlocked.","email"):s.hasOwnProperty("type")?a("locked.","block"):a("locked.","email")),d)};return(0,m.jsx)("div",{className:e.hasOwnProperty("type")?"em-analytics__block-lock":"em-analytics__email-lock",onClick:()=>{e.hasOwnProperty("type")?l({blockId:e.id,lock:!e.lock}).then((t=>{u(t,e)})):s({emailId:e.id,lock:!e.lock}).then((t=>{u(t,e)}))},children:e.lock?t("Unlock"):t("Lock")})};d.defaultProps={element:l().shape({lock:null,id:null})};const u=d},90775:(e,t,a)=>{a.d(t,{A:()=>A});var s=a(92810),l=a(12280),i=a(14852),n=a(43005),r=a(2018),o=a(7744),c=a(55039),m=a(71157),d=a(45934),u=a(23287),p=a(64936),h=a(32269),_=a(40869),g=a(70082);const A=({isModalVisible:e,userEmail:t,subscriptionRequest:a,userName:A,currentPlane:x})=>{const{__:j}=(0,u.s9)(),y=(0,d.wA)(),[v]=l.A.useForm(),[b,f]=(0,_.E)(),k=(0,m.hN)(),w=()=>{y((0,p.Oo)())},O=()=>{v.validateFields().then((()=>{const e=v.getFieldsValue(!0);b(JSON.stringify(e)).then((e=>{var t,a,s;200===(null===e||void 0===e||null===(t=e.data)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.status)?((0,h.wB)(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message,k),w()):e.error&&(0,h.p6)(e,k)}))})).catch((e=>{console.warn(e)}))};return(0,s.useEffect)((()=>{a&&(null===v||void 0===v||v.setFieldsValue({request_tariff:a,user_name:A,user_email:t,user_tariff:x}))}),[v,a,x,A,t]),(0,g.jsx)(i.A,{title:j("Request for changing the pricing plan"),className:"blocks-modal",open:e,onOk:O,onCancel:w,centered:!0,width:572,footer:[(0,g.jsx)(n.Ay,{type:"primary",size:"large",onClick:O,disabled:f.isLoading,children:j("Send")},"submit")],forceRender:!0,children:(0,g.jsxs)(l.A,{form:v,layout:"vertical",name:"switch_to_plan_form",onFinish:O,initialValues:{request_email:t,request_phone:"",comment:"",request_tariff:a},autoComplete:"off",style:{padding:"10px 24px 0"},children:[(0,g.jsxs)(r.A,{gutter:16,children:[(0,g.jsxs)(o.A,{span:12,children:[" ",(0,g.jsx)(l.A.Item,{label:j("Email"),name:"request_email",rules:[{required:!0,message:j("Please enter your email address"),validator:(e,t)=>h.au.test(t)?Promise.resolve():Promise.reject(new Error(j("Please enter the correct email.")))}],children:(0,g.jsx)(c.A,{size:"large",placeholder:j("Email"),type:"email"})})]}),(0,g.jsxs)(o.A,{span:12,children:[" ",(0,g.jsx)(l.A.Item,{label:j("Phone number"),name:"request_phone",children:(0,g.jsx)(c.A,{size:"large",placeholder:j("Phone number")})})]})]}),(0,g.jsx)(l.A.Item,{label:j("Comment"),name:"comment",children:(0,g.jsx)(c.A.TextArea,{placeholder:j("Please add a comment to your request"),autoSize:{minRows:2}})})]})})}},4519:(e,t,a)=>{a.d(t,{A:()=>v});var s=a(92810),l=a(41919),i=a(76662),n=a(81e3),r=a(66726),o=a(43005),c=a(64617),m=a(58013),d=a(23287),u=a(98655),p=a(30961),h=a(20757),_=a(32269),g=a(85163),A=a(90070),x=a(70082);const{Content:j}=l.A,{Paragraph:y}=i.A,v=()=>{const{__:e}=(0,d.s9)(),{projectId:t,emailId:a}=(0,c.g)(),i=(0,A.p6)();let v=(0,c.Zp)();const b=i.get(g.A9.em_template_email)||a;(0,s.useEffect)((()=>{document.body.classList.remove("editor")}),[]);const f=(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(n.A,{size:10,children:[(0,x.jsx)(r.A,{title:e("To emails"),placement:"left",children:(0,x.jsx)(o.Ay,{type:"text",icon:(0,x.jsx)(m.A,{}),onClick:()=>(0,_.XZ)(v,`/projects/${t}`),shape:"circle"})}),(0,x.jsx)(y,{className:"ant-page-header-heading-title",children:e("Select email template")}),(0,x.jsx)(p.A,{isBlocks:!1,templateEmailId:b})]})}),k=(0,x.jsx)(x.Fragment,{});return(0,x.jsxs)(l.A,{className:"template-page",children:[(0,x.jsx)(h.A,{leftBlock:f,rightBlock:k}),(0,x.jsx)(j,{className:"template-page__container",children:(0,x.jsx)("div",{className:"template-page__content container",children:(0,x.jsx)(u.A,{projectId:g.p5,emailsView:g.Y$,templateEmailId:b})})})]})}},70656:(e,t,a)=>{a.d(t,{A:()=>_});var s=a(92810),l=a(37005),i=a(66726),n=a(45934),r=a(39990),o=a(62303),c=a(65983),m=a(69156),d=a(23287),u=a(45695),p=a(85163),h=a(70082);const _=()=>{var e;const{__:t}=(0,d.s9)(),a=(0,n.wA)(),[_]=(0,r.b9)(),[g,A]=(0,s.useState)(null===(e=window)||void 0===e?void 0:e.localStorage.getItem(p.V0.em_color_scheme)),x=(0,u.XW)(),j=(0,s.useCallback)(((e=null)=>{const t=e;(e=>{let t;if((0,m.Hk)(e),null===e){const e=matchMedia(p.F3).matches?p.nd:p.T;localStorage.removeItem(p.V0.em_color_scheme),t=e}else localStorage.setItem(p.V0.em_color_scheme,e),t=e;a((0,c.eX)(t===p.nd?`vs-${t}`:p.T)),(0,m.A5)(t),x({operation:p.Ru.UPDATE_PREVIEW,theme:t}),_({theme:e})})(t),A(t)}),[a,_,x]);return(0,s.useEffect)((()=>{matchMedia(p.F3).onchange=()=>j()}),[j]),(0,h.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,h.jsx)(l.A,{className:"theme-switcher",style:{cursor:"pointer",color:"var(--colorText)"},value:g,options:[{label:(0,h.jsx)(i.A,{title:t("Light theme"),children:(0,h.jsx)(o.A,{icon:"LightMode",style:{fontSize:18}})}),value:p.T},{label:(0,h.jsx)(i.A,{title:t("System theme"),children:(0,h.jsx)(o.A,{icon:"AutoMode",style:{fontSize:18}})}),value:null},{label:(0,h.jsx)(i.A,{title:t("Dark theme"),children:(0,h.jsx)(o.A,{icon:"DarkMode",style:{fontSize:18}})}),value:p.nd}],onChange:e=>j(e)})})}},54565:(e,t,a)=>{a.d(t,{A:()=>b});var s=a(92810),l=a(12280),i=a(29234),n=a(55039),r=a(28372),o=a(45934),c=a(38883),m=a.n(c),d=a(23287),u=a(17581),p=a(8493),h=a(70082);const{utm_source:_,utm_medium:g,utm_campaign:A,utm_term:x,utm_content:j}={utm_source:"utm_source",utm_medium:"utm_medium",utm_campaign:"utm_campaign",utm_term:"utm_term",utm_content:"utm_content"},y={[_]:"",[g]:"",[A]:"",[x]:"",[j]:""},v=({className:e,email:t})=>{const{__:a}=(0,d.s9)(),c=(0,o.wA)(),[v]=l.A.useForm();(0,s.useEffect)((()=>{var e,a,s,l,i;t&&v.setFieldsValue({utm_source:(null===(e=t.utm_parameters)||void 0===e?void 0:e.utm_source)||"",utm_medium:(null===(a=t.utm_parameters)||void 0===a?void 0:a.utm_medium)||"",utm_campaign:(null===(s=t.utm_parameters)||void 0===s?void 0:s.utm_campaign)||"",utm_term:(null===(l=t.utm_parameters)||void 0===l?void 0:l.utm_term)||"",utm_content:(null===(i=t.utm_parameters)||void 0===i?void 0:i.utm_content)||""})}),[v,t]);return(0,h.jsx)("div",{className:m()("settings-panel",{[e]:e}),children:(0,h.jsxs)(l.A,{form:v,layout:"vertical",name:"settings_panel_form_utm",initialValues:y,onValuesChange:e=>{const a=Object.keys(e)[0];switch(a){case _:t.isNew?c((0,p.K3)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_source:e[a]}})})));break;case g:t.isNew?c((0,p.ol)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_medium:e[a]}})})));break;case A:t.isNew?c((0,p.P3)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_campaign:e[a]}})})));break;case x:t.isNew?c((0,p.zH)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_term:e[a]}})})));break;case j:t.isNew?c((0,p.mk)(e[a])):c(u.GY.util.updateQueryData("getEmail",t.id,(t=>{Object.assign(t,{utm_parameters:{...t.utm_parameters,utm_content:e[a]}})})));break;default:return}},autoComplete:"off",children:[(0,h.jsx)(i.A,{message:a("The specified parameters will be added to all links when exporting the email."),type:"info",showIcon:!0,style:{marginBottom:20}}),(0,h.jsx)(l.A.Item,{label:a("utm_source"),name:_,tooltip:{title:a("Mandatory. Indicates the traffic source. Example: utm_source=google"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("google")})}),(0,h.jsx)(l.A.Item,{label:a("utm_medium"),name:g,tooltip:{title:a("Identifies what type of link was used, such as cost per click or email. For example: utm_medium=cpc"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("cpc")})}),(0,h.jsx)(l.A.Item,{label:a("utm_campaign"),name:A,tooltip:{title:a("Indicates a specific product promotion or a marketing campaign. Example: utm_campaign=spring_sale"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("spring_sale")})}),(0,h.jsx)(l.A.Item,{label:a("utm_term"),name:x,tooltip:{title:a("Identifies search terms. For example: utm_term=running+shoes"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("running+shoes")})}),(0,h.jsx)(l.A.Item,{label:a("utm_content"),name:j,tooltip:{title:a("Indicates what user clicked to get to the site: a banner or a text link. It is often used for A/B testing and ad campaigns. Example: utm_content=logolink or utm_content=textlink"),icon:(0,h.jsx)(r.A,{})},children:(0,h.jsx)(n.A,{placeholder:a("textlink")})})]})})};v.defaultProps={className:"",email:void 0};const b=v},5559:(e,t,a)=>{a.d(t,{A:()=>b});var s=a(92810),l=a(76662),i=a(43005),n=a(4800),r=a(55039),o=a(66726),c=a(45934),m=a(38883),d=a.n(m),u=a(23287),p=a(77532),h=a(62303),_=a(64936),g=a(95679),A=a(56991),x=a(85163),j=a(85677),y=a(70082);const{Text:v}=l.A,b=({onChange:e,value:t,validateStatus:a,placeholder:l,disabled:m,name:b,elementSettings:f,imageInfo:k})=>{const w=(0,A.rD)(),{__:O}=(0,u.s9)(),[N,D]=(0,s.useState)({width:"",height:"",size:""});let C=(0,c.wA)();const I=(0,c.d4)(p.js),P=(0,c.d4)(p.Uf),E=(0,c.d4)(p.Ac),[L]=(0,g.FQ)();(0,s.useEffect)((()=>{t&&L(t).then((({data:e})=>{e&&D({width:null===e||void 0===e?void 0:e.width,height:null===e||void 0===e?void 0:e.height,size:((null===e||void 0===e?void 0:e.fileSize)/1024).toFixed(0),format:null===e||void 0===e?void 0:e.format})}))}),[t,L]),(0,s.useEffect)((()=>{m||(b.startsWith("src")&&I&&((null===f||void 0===f?void 0:f.type)!==x.bV.CAROUSEL||P===b)?e(I):"backgroundImage"!==b||!E||(null===f||void 0===f?void 0:f.type)===x.bV.CAROUSEL&&P!==b||e(E),C((0,p.BK)()))}),[I,P,E,e,b,C,m,null===f||void 0===f?void 0:f.type]);const S=(e=null)=>{b.startsWith("src")?(C((0,p.Yw)(b)),C((0,p.tm)(t)),C((0,_.qf)(e||x.lx.UPLOAD_IMAGE_MODAL))):b.startsWith("backgroundImage")&&(C((0,p.Yw)(b)),C((0,p.e_)(t)),C((0,_.qf)(e||x.lx.UPLOAD_BACKGROUND_MODAL)))},z=[{label:O("Upload"),key:"Upload",onClick:()=>S(b.startsWith("src")?x.lx.UPLOAD_IMAGE_MODAL_UPLOAD:x.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD)},{label:O("Stock"),key:"Stock",onClick:()=>S(b.startsWith("src")?x.lx.UPLOAD_IMAGE_MODAL_STOCK:x.lx.UPLOAD_BACKGROUND_MODAL_STOCK)},{label:O("GIF"),key:"GIF",onClick:()=>S(b.startsWith("src")?x.lx.UPLOAD_IMAGE_MODAL_GIF:x.lx.UPLOAD_BACKGROUND_MODAL_GIF)},{label:O("AI"),key:"AI",onClick:()=>S(b.startsWith("src")?x.lx.UPLOAD_IMAGE_MODAL_AI:x.lx.UPLOAD_BACKGROUND_MODAL_AI)}];return(0,y.jsx)("div",{className:d()("upload-bg-image",{"upload-bg-image_disabled":m}),children:!t||t&&"error"===a?(0,y.jsxs)(i.Ay,{type:"default",block:!0,onClick:()=>S(b.startsWith("src")?x.lx.UPLOAD_IMAGE_MODAL_UPLOAD:x.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD),children:[(0,y.jsx)(h.A,{icon:"Image",style:{fontSize:20,verticalAlign:"text-top"}}),O("Add image")]}):(0,y.jsxs)("div",{className:"ant-input-file-uploader upload-bg-image__inner-wrap",onClick:e=>{var t,a,s,l;null!==(t=e.target)&&void 0!==t&&t.closest(".upload-bg-image__edit")||null!==(a=e.target)&&void 0!==a&&a.closest(".upload-bg-image__edit-menu")||null!==(s=e.target)&&void 0!==s&&s.closest(".upload-bg-image__menu")||null!==(l=e.target)&&void 0!==l&&l.closest(".inputGroup")||S(b.startsWith("src")?x.lx.UPLOAD_IMAGE_MODAL_UPLOAD:x.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD)},children:[(0,y.jsx)(n.A,{arrow:!0,dropdownRender:()=>(0,y.jsx)("div",{className:"inputGroup",children:(0,y.jsx)(r.A,{prefix:(0,y.jsx)(h.A,{icon:"Image",style:{fontSize:20,verticalAlign:"text-top"}}),allowClear:!0,onChange:e,value:t,placeholder:l,name:b,disabled:m,className:"upload-bg-image__input"})}),overlayClassName:"upload-bg-image__dropdown-overlay",overlayStyle:{top:32,marginTop:"8px",width:347,left:0},trigger:["hover"],placement:"bottom",getPopupContainer:e=>e.closest(".upload-bg-image__inner-wrap"),children:(0,y.jsxs)("div",{className:"upload-bg-image__hover-container",style:{display:"flex",alignItems:"center"},children:[(0,y.jsx)("div",{className:"upload-bg-image__uploader",children:(0,y.jsx)("div",{className:"upload-bg-image__uploader-content",children:(0,y.jsxs)("div",{className:"upload-bg-image__uploader-content-inner",children:[(0,y.jsx)("div",{className:"upload-bg-image__uploader-img-wrap",children:(0,y.jsx)("img",{className:"upload-bg-image__uploader-img",src:t,alt:""})}),(0,y.jsx)("div",{className:"upload-bg-image__uploader-icons-wrap",children:(0,y.jsx)("div",{className:"upload-bg-image__uploader-content"})})]})})}),N.width&&N.height?(0,y.jsxs)("div",{className:"image-size",children:[N.width," \xd7 ",N.height,!!f&&(f.type===x.bV.IMG||f.type===x.bV.CAROUSEL)&&" \u2192 "+k.renderedWidth+" \xd7 "+k.renderedHeight,(0,y.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,y.jsxs)("span",{children:[N.size," ",O("kB")]}),N.format&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,y.jsx)("span",{className:"image-size-format",children:N.format})]})]}):(0,y.jsx)(v,{type:"secondary",className:"image-empty-text",children:l})]})}),(0,y.jsx)("div",{style:{flexGrow:1}}),"gif"!==N.format&&w.imageCenterEditorEnabled&&(0,y.jsx)(o.A,{title:O("Edit"),children:(0,y.jsx)(v,{type:"link",className:"upload-bg-image__edit",children:(0,y.jsx)(j.A,{style:{fontSize:16},onClick:e=>{S(),C((0,_.Wz)(x.lx.IMAGE_EDITOR_MODAL))}})})}),(0,y.jsx)(n.A,{arrow:{pointAtCenter:!0},placement:"bottom",menu:{items:z},overlayClassName:"upload-bg-image__menu",children:(0,y.jsx)(v,{type:"link",className:"upload-bg-image__edit-menu image-change",children:!t||t&&"error"===a?O("Upload"):(0,y.jsx)(h.A,{style:{fontSize:20},icon:"Reload"})})},"Actions")]})})}},13591:()=>{}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[8689],{90854:(t,e,n)=>{n.d(e,{A6:()=>u,BF:()=>l,Cn:()=>d,Lv:()=>g,ST:()=>f,TM:()=>o,b6:()=>w,d1:()=>N,ih:()=>h,ir:()=>y,rq:()=>b,uE:()=>a,vq:()=>s,wz:()=>p});const r=new Set(["area","br","col","embed","hr","img","input","link","meta","param"]);function o(t){return"<!DOCTYPE "+t.name+(t.publicId?' PUBLIC "'+t.publicId+'"':"")+(!t.publicId&&t.systemId?" SYSTEM":"")+(t.systemId?' "'+t.systemId+'"':"")+">"}const c=Object.create(null);function i(t,e){const n=c[t]||(c[t]=Object.create(null));let r=n[e];if("boolean"!==typeof r){const o=document.createElement(t)[e.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,((t,e)=>e.toUpperCase()))];r=n[e]="undefined"!==typeof o&&"boolean"!==typeof o}return r}function s(t){return t.nodeType===Node.ELEMENT_NODE}function a(t){return s(t)&&!t.ownerSVGElement}function u(t){return"IMG"===t.tagName}function l(t){return"FORM"===t.tagName}function f(t){return"STYLE"===t.tagName}function p(t){return t.nodeType===Node.DOCUMENT_NODE}function d(t){return t.nodeType===Node.COMMENT_NODE}const m=/(<!(--)?\[if\s[()\w\s|&!]+\]>(?:<!--+>)?)((?:.|\r|\n)*?)((?:<!--)?<!\[endif\]\2>)/gi;function h(t){const e=w(t).matchAll(m);if(e)for(const n of e){const[,t,,e,r]=n;return{open:t,close:r,content:e}}}function y(t){return t.nodeType===Node.TEXT_NODE}function g(t){return"TABLE"===t.tagName}async function b(t,e=5e3){return"undefined"===typeof t.complete||t.complete?getComputedStyle(t):new Promise(((n,r)=>{setTimeout(n,e),t.onload=()=>n(getComputedStyle(t)),t.onerror=t=>console.log(t)}))}function w(t){if(s(t))return function(t){var e;const n=(null===(e=Object.getOwnPropertyDescriptor(t,"$$tagName"))||void 0===e?void 0:e.value)||t.tagName.toLowerCase(),o=function(t){const e=t.tagName.toLowerCase();let n="";for(const r of t.attributes){const t=r.name,o=r.value;n+=""!==o||"em"===t||i(e,t)?` ${t}="${o.replaceAll('"',"'")}"`:` ${t}`}return n}(t);return r.has(n.toLowerCase())?`<${n}${o}>`:f(t)?`<${n}${o}>${t.innerHTML}</${n}>`:`<${n}${o}>${function(t){let e="";for(const n of t.childNodes)e+=w(n);return e}(t)}</${n}>`}(t);if(p(t))return[...t.childNodes].map((t=>w(t))).join("");if(function(t){return t.nodeType===Node.DOCUMENT_TYPE_NODE}(t))return o(t);const e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}function N(t,e){for(const c of t.childNodes)c.remove();let n=e.find((t=>function(t){return"HTML"===t.tagName}(t))),r=e.find((t=>function(t){return"BODY"===t.tagName}(t))),o=t;n||(n=t.createElement("html"),t.appendChild(n),o=n,r||(r=t.createElement("body"),n.appendChild(r),o=r));for(const c of e)o===t&&y(c)?o.appendChild(t.createComment(`%%%{{{${c.data}}}}%%%`)):o.appendChild(c)}},58689:(t,e,n)=>{n.d(e,{$l:()=>m,An:()=>N,Ay:()=>h,Mp:()=>S,PJ:()=>E,SR:()=>x,T5:()=>L,bc:()=>A,gZ:()=>O,pH:()=>d,qy:()=>T});var r=n(60564),o=n.n(r),c=n(44335),i=n(45053),s=n(90854),a=n(84007),u=n(71210),l=n(88896);const f=/url(?:\((['|"]?))(.*?\.(png|jpg|gif|jpeg|tiff){1})(?:['|"]?\))/gi,p="data:message/rfc822 eml,";async function d(t,e,n,r,o){var c={Subject:t,"X-Unsent":1,"Content-Type":"function"===typeof o?"text/html;charset=utf-8":'multipart/alternative; boundary="boundary-string"'};return`${Object.keys(c).reduce(((t,e)=>`${t}${e}:${c[e]}\n`),p)}\n${"function"===typeof o?await C(e,n,r,o):(await(0,l.X)(Object.keys(o).map((async t=>`\n--boundary-string\nContent-Type: ${t}\n\n${await C(e,n,r,o[t])}\n\n\n`)))).join("")+"----boundary_string--"}`}function m(t){const e=t.replace("\\","/").split("/");return e[e.length-1]}function h(t){return m(t).split(".")}function y(t){return x(t).then((t=>O(t)))}function g(t,e){const n=document.createElement("iframe");n.style.position="absolute",n.style.left="-10000px",document.body.appendChild(n);const r=n.contentWindow.document;try{if(e){const[t,r]=e;void 0!==t&&n.setAttribute("width",String(t)),void 0!==r&&n.setAttribute("height",String(r))}const o=(0,a.$$)(t);(0,s.d1)(r,o)}catch(o){console.log(o)}return[n,()=>document.body.removeChild(n)]}function b(t){return t.replace("<script","<___script").replace("<\/script>","</___script>")}const w=new i.uI((t=>{t.escape("<script","<\/script>",(t=>b(t))).unescape("<___script","</___script>",(t=>t.replace("<___script","<script").replace("</___script>","<\/script>"))),t.escape("<script","/>",(t=>b(t))).unescape("<___script","/>",(t=>t.replace("<___script","<script"))),(0,i.Hk)(t)}));async function N(t,e,n){t=w.getEscapedText(t);const[r,o]=g(t,n);try{const n=r.contentDocument;try{await e(n,t)}catch(c){console.log(c)}const o=n.querySelectorAll("tbody");for(const t of o)t.replaceWith(...t.childNodes);n.querySelectorAll("em-replace").forEach((t=>{if(t.hasAttribute("text")&&(t.insertAdjacentHTML("beforebegin",t.getAttribute("text")),t.parentNode.removeChild(t)),t.hasAttribute("src")){const e=t.querySelector("img");e.setAttribute("src",t.getAttribute("src")),t.replaceWith(e)}})),t=(0,s.b6)(n)}catch(c){}finally{o()}return w.getUnescapedText(t)}function $(t,e,n){try{if("function"===typeof n){var r=[];return String.prototype.replace.call(t,e,(function(){return r.push(n.apply(void 0,arguments)),""})),(0,l.X)(r).then((function(n){return String.prototype.replace.call(t,e,(function(){return n.shift()}))}))}return Promise.resolve(String.prototype.replace.call(t,e,n))}catch(o){return Promise.reject(o)}}async function A(t,e,n,r){const o=new Map;return t=await N(t,(async(t,r)=>{await async function(t,e,n=new Map){const r=t=>{let r=n.get(t);return r||(r=e(t),n.set(t,r)),r};function o(t){return $(t,f,((t,e="",n)=>r(n).then((t=>`url(${e}${t}${e})`))))}async function c(t){const e=t.getAttribute("style");if(e){const n=await o(e);e!==n&&t.setAttribute("style",n)}}const i=document.createNodeIterator(t,NodeFilter.SHOW_ALL),u=[];for(;;){const t=i.nextNode();if(null===t)break;if((0,s.vq)(t)){u.push(c(t));const e=t.getAttribute("background");if(e&&u.push(r(e).then((n=>{t.setAttribute("background",n||e)}))),(0,s.A6)(t)){const e=t.getAttribute("src");e&&u.push(r(e).then((n=>t.src=n||e)))}if((0,s.ST)(t)){const e=t.sheet.cssRules,n=[];for(const t of e){const{cssText:e}=t;e&&n.push(o(e))}u.push((0,l.X)(n).then((n=>{n.some(((t,n)=>e[n].cssText!==t))&&(t.innerHTML=n.join("\n"))})))}}else if((0,s.Cn)(t)){const e=(0,s.ih)(t),n=null===e||void 0===e?void 0:e.content;n&&u.push($(n,/<v:fill.*>/gi,(async t=>{const e=await $(t,/src="([^"]*)"/gi,(async(t,e)=>`src="${await r(e)||e}"`));return $(e,/src='([^']*)'/gi,(async(t,e)=>`src='${await r(e)||e}'`))})).then((r=>{n!==r&&t.replaceWith((0,a.$$)(`${e.open}${r}${e.close}`)[0])})))}}return(0,l.X)(u)}(t,e,o),n&&n(t,r)}),r),t}const T=800;function _(t,e){let n=t.getAttribute("href");if(n&&t.protocol.startsWith("http")){const r=function(t){const e=new Map;let n=0;for(;n>=0;)if(n=t.indexOf("\x3c!--",n),n>=0){const r=t.indexOf("--\x3e",n);e.set(t.substring(n,r+3),(0,u.l)()),n=r}return e}(n);r.forEach(((t,e)=>{n=n.replaceAll(e,t)}));const o=n.indexOf("#");let c=o>=0?n.substring(0,o):n,i=o>=0?n.substring(o+1):"";const s=n.indexOf("?"),a=s>=0?c.substring(s+1):"";if(c=s>=0?c.substring(0,s):c,t.host!==document.location.host){const o=new Map(a.split("&").filter((t=>t.indexOf("=")>=0)).map((t=>t.split("=")))),s=Object.keys(e);let u=a;for(const t of s)e[t]&&!o.has(t)&&(u=u+(u?"&":"")+`${t}=${e[t]}`);u!==a&&(n=c+(u?`?${u}`:"")+(i?`#${i}`:""),r.forEach(((t,e)=>{n=n.replaceAll(t,e)})),t.setAttribute("href",n))}}}async function E(t,e,n,r){let[o,c]=e||[T];return"number"===typeof o&&(o+="px"),"number"===typeof c&&(c+="px"),t=await N(t,(e=>{const o=e.querySelectorAll("a");for(const t of o)_(t,n);if(r)return r(e,t)}),[o,c])}async function C(t,e,n,r){let[o,c]=e||[T];return"number"===typeof o&&(o+="px"),"number"===typeof c&&(c+="px"),t=(t=await N(t,(async e=>{const o=e.querySelectorAll("*");for(const t of o)if((0,s.A6)(t)){const e=await(0,s.rq)(t);if(e){const n=parseInt(e.height),r=parseInt(e.width);isNaN(n)||t.setAttribute("height",String(n)),isNaN(r)||t.getAttribute("width")||t.setAttribute("width",String(r))}}else if((0,s.Lv)(t)){const e=parseInt(getComputedStyle(t).width);isNaN(e)||"BODY"===t.parentElement.tagName||t.setAttribute("width",String(e))}else"TD"===t.tagName||"A"===t.tagName&&_(t,n);if(r)return r(e,t)}),[o,c])).replaceAll(/<tbody>/gi,"").replaceAll(/<\/tbody>/gi,"")}const v="images";async function S(t,e,n,r=y,i){let[s,a]=e||[T];"number"===typeof s&&(s+="px"),"number"===typeof a&&(a+="px");const u=new(o()),l=u.folder(v),f=new Set,p=await A(t,(async t=>{const e=await r(t);let[n,o=c.getExtension(e.type)]=h(t),i=`${n}.${o}`,s=1;for(;f.has(i);)i=`${n}(${++s}).${o}`;return f.add(i),l.file(i,e),`${v}/${i}`}),((t,e)=>{const r=t.querySelectorAll("a");for(const o of r)_(o,n);if(i)return i(t,e)}),[s,a]);return u.file("index.html",new Blob([p],{type:"text/html;charset=utf-8"})),u.generateAsync({type:"blob"})}function x(t){const e=new Image;return e.crossOrigin="anonymous",new Promise(((n,r)=>{e.onload=()=>n(e),e.onerror=r,e.src=t}))}function O(t,e="image/png",n){const r=document.createElement("canvas");r.width=t.width,r.height=t.height;return r.getContext("2d").drawImage(t,0,0),new Promise(((t,o)=>r.toBlob((e=>e?t(e):o("blob is null")),e,n)))}function M(t){var e;const n=null===(e=t.ownerDocument)||void 0===e?void 0:e.body;if(n&&function(t,e){do{if(t===e)return!0;t=t.parentNode}while(t);return!1}(t,n)){if((0,s.vq)(t)){if("IMG"===t.tagName)return"";if("SPAN"===t.tagName&&t.classList.contains("preheader"))return""}if("#text"===t.nodeName)return t.textContent}return t.childNodes?[...t.childNodes].map(M).join(""):""}function L(t){const[e,n]=g(t);try{return M(e.contentDocument.body).replace(/\u2800/g,"").replace(/(\r\n|\r|\n){2,}/g,"\n").trim()}finally{n()}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9154],{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 r({title:t,titleId:e,...n},r){return d.createElement("svg",a({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",ref:r,"aria-labelledby":e},n),t?d.createElement("title",{id:e},t):null,i||(i=d.createElement("path",{d:"M6.5 1.143H5.25A4.108 4.108 0 0 0 1.143 5.25V6.5c0 .078.064.143.142.143h1a.143.143 0 0 0 .143-.143V5.25A2.82 2.82 0 0 1 5.25 2.428H6.5a.143.143 0 0 0 .143-.143v-1a.143.143 0 0 0-.143-.142ZM14.857 6.5V5.25a4.108 4.108 0 0 0-4.107-4.107H9.5a.143.143 0 0 0-.143.142v1c0 .079.064.143.143.143h1.25A2.82 2.82 0 0 1 13.57 5.25V6.5c0 .078.065.143.143.143h1a.143.143 0 0 0 .143-.143ZM9.5 14.857h1.25a4.108 4.108 0 0 0 4.107-4.107V9.5a.143.143 0 0 0-.143-.143h-1a.143.143 0 0 0-.143.143v1.25a2.82 2.82 0 0 1-2.821 2.821H9.5a.143.143 0 0 0-.143.143v1c0 .079.064.143.143.143ZM1.143 9.5v1.25a4.108 4.108 0 0 0 4.107 4.107H6.5a.143.143 0 0 0 .143-.143v-1a.143.143 0 0 0-.143-.143H5.25a2.82 2.82 0 0 1-2.822-2.821V9.5a.143.143 0 0 0-.143-.143h-1a.143.143 0 0 0-.142.143Z",fill:"inherit"})))}const s=d.forwardRef(r);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 r({title:t,titleId:e,...n},r){return d.createElement("svg",a({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",ref:r,"aria-labelledby":e},n),t?d.createElement("title",{id:e},t):null,i||(i=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.39 3.12h7.383c.242 0 .438.195.438.437v3.719a.437.437 0 0 1-.438.437H9.547v3.227a.437.437 0 0 1-.438.437H1.727a.437.437 0 0 1-.438-.437V7.22c0-.241.196-.437.438-.437h3.226V3.557c0-.242.196-.438.438-.438Zm.493 7.327h2.734V7.713H5.883v2.734Zm3.664-3.664h2.734V4.05H9.547v2.734Z",fill:"inherit"})))}const s=d.forwardRef(r);n.p},40829:t=>{t.exports=({__:t})=>`<style em="styles">\n amp-accordion > section > * {\n background: none !important;\n padding: 0 !important;\n border: none !important;\n overflow: visible !important;\n }\n</style>\n<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <amp-accordion disable-session-states animate expand-single-section>\n <section>\n <div>\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tr>\n <td style="padding: 10px 0; border-bottom: 1px solid #CCCCCC;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;"><strong>${t("Section title")}</strong></div>\n </td>\n </tr>\n </table>\n </div>\n <div>\n <table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom">\n <tr>\n <td style="padding: 10px 0;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")}</div>\n </td>\n </tr>\n </table>\n </div>\n </section>\n </amp-accordion>\n</td></tr></table>`},95550:t=>{t.exports=({__:t})=>`<style em="styles">\n @media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-mob-width-100perc {\n width: 100%!important;\n max-width: 100%!important;\n }\n }\n</style>\n<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding: 10px 0;">\n <table cellpadding="0" cellspacing="0" border="0" width="200" class="em-mob-width-100perc">\n <tr>\n <td align="center" valign="middle" height="41" style="background-color: #1C52DC; border-radius: 5px; height: 41px;">\n <a href="" target="_blank" style="display: block; height: 41px; font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; color: #FFFFFF; font-size: 16px; line-height: 41px; text-decoration: none; white-space: nowrap;">\n ${t("Button")}\n </a>\n </td>\n </tr>\n </table>\n</td></tr></table>`},78588:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <amp-carousel width="800" height="600" layout="responsive" type="slides" controls>\n <amp-img src="${t("https://cdn.useblocks.io/1351/241031_18_JoH0f3E.png")}" width="800" height="600" layout="responsive" alt=""></amp-img>\n <amp-img src="${t("https://cdn.useblocks.io/1351/241031_18_aJAY1Xz.png")}" width="800" height="600" layout="responsive" alt=""></amp-img>\n <amp-img src="${t("https://cdn.useblocks.io/1351/241031_18_OQEyMEF.png")}" width="800" height="600" layout="responsive" alt=""></amp-img>\n </amp-carousel>\n</td></tr></table>`},59817:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const i=new Date,d=new Date(+i+432e6).toISOString(),a=-(new Date).getTimezoneOffset()/60,r=t=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td align="center"><img class="em-countdown" em-cd-settings="locale=${t.replace("_","-")}&bg=FFFFFF&tp=false&color1=000000&color2=959595&size1=72&size2=28&font1=roboto&font2=roboto&border=10&delimiter=:&spacing=10&time=${d}&timezone=${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;"> </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"> </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;">•</div>\n </td>\n <td width="10"> </td>\n <td align="left" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")}</div>\n </td>\n </tr>\n </table>\n</td></tr></table>`},19032:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <table border="0" cellspacing="0" cellpadding="0">\n <tr>${[n.p+"static/media/tg.png",n.p+"static/media/yt.png",n.p+"static/media/vk.png",n.p+"static/media/yd.png",n.p+"static/media/tw.png",n.p+"static/media/ig.png",n.p+"static/media/fb.png"].map((t=>`\n <td width="40" align="center">\n <a href="" target="_blank"><img src="${t}" width="30" border="0" alt="" style="display: block;" /></a>\n </td>`)).join("")}\n </tr>\n </table>\n</td></tr></table>`},77098:t=>{t.exports='<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td height="20"></td></tr></table>'},48304:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom">\n <tr>\n <td align="center" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Column")} 1</div>\n </td>\n <td align="center" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Column")} 2</div>\n </td>\n <td align="center" valign="top">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Column")} 3</div>\n </td>\n </tr>\n</table>`},42797:t=>{t.exports=({__:t})=>`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td style="padding-bottom: 10px;">\n <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">${t("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")}</div>\n</td></tr></table>`},79757:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=`<table cellpadding="0" cellspacing="0" border="0" width="100%" em="atom"><tr><td>\n <img class="em-video" src="${n.p+"static/media/video.png"}" width="150" border="0" alt="" style="display: inline-block; width: 100%; max-width: 150px;" />\n</td></tr></table>`},35880:t=>{t.exports='<tr em="block" class="empty-structure">\n\t<td align="center">\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t<table cellpadding="0" cellspacing="0" border="0" width="660"><tr><td>\n\t\t<![endif]--\x3e\n\t\t<table align="center" cellpadding="0" cellspacing="0" border="0" width="100%" style="max-width: 660px;">\n\t\t\t<tr>\n\t\t\t\t<td align="center">\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30" ></td></tr></table>\n\t\t\t\t\t<table align="center" cellpadding="0" cellspacing="0" border="0" width="91%">\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="30" ></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n'},573:t=>{t.exports='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <title></title>\n <style type="text/css">\n html {\n -webkit-text-size-adjust: none;\n -ms-text-size-adjust: none;\n }\n </style>\n <style em="styles">\n@media only screen and (max-device-width:660px),only screen and (max-width:660px) {\n .em-narrow-table {\n width: 100%!important;\n max-width: 660px!important;\n min-width: 320px!important;\n }\n}\n</style>\n</head>\n<body style="margin: 0; padding: 0;">\n <span class="preheader" style="display: none !important; visibility: hidden; opacity: 0; color: #F8F8F8; height: 0; width: 0; font-size: 1px;"> \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c </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>'},13522:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(93982);let d;var a;(a=d||(d={})).BEFORE_SAVE_EMAIL=(0,i.cZ)(),a.ON_SAVEBUTTON_CLICK_ID=(0,i.cZ)(),a.ON_NEXTBUTTON_CLICK_ID=(0,i.cZ)(),a.ON_PREVIOUSBUTTON_CLICK_ID=(0,i.cZ)(),a.ON_MODEL_CHANGE=(0,i.cZ)(),a.WILL_EMAIL_INIT_ID=(0,i.cZ)(),a.ON_EMAIL_INIT_ID=(0,i.cZ)(),a.ON_BLOCK_INIT_ID=(0,i.cZ)(),a.ON_CONTENT_CHANGED_ID=(0,i.cZ)(),a.ON_EMAIL_CHANGED_ID=(0,i.cZ)(),a.ON_BLOCK_CHANGED_ID=(0,i.cZ)(),a.ON_SEND_TESTEMAIL_ID=(0,i.cZ)(),a.ON_SEND_LIVEPREVIEW_ID=(0,i.cZ)(),a.ON_SHARE_ID=(0,i.cZ)(),a.ON_SHOW_PREVIEW_ID=(0,i.cZ)(),a.ON_EMAIL_CLONE_ID=(0,i.cZ)(),a.ON_SEND_EMAIL_MODAL_ID=(0,i.cZ)(),a.ON_NOTIFICATION=(0,i.cZ)(),a.READ_LOCALE=(0,i.cZ)(),a.ON_CODE_VALIDATE_ID=(0,i.cZ)()},47520:(t,e,n)=>{"use strict";n.d(e,{AO:()=>j,Ai:()=>b,NW:()=>N,RM:()=>m,TW:()=>O,Ze:()=>M,ok:()=>D,xc:()=>B,yy:()=>S});n(92810);var i=n(81662),d=n(7228),a=n(9588),r=n(37517),s=n(73035),l=n(27071),o=n(86657),c=n(85163),p=n(70082);const m=({linkProtocol:t})=>{switch(t){case"https://":default:return(0,p.jsx)(d.A,{rev:""});case"mailto:":return(0,p.jsx)(a.A,{rev:""});case"tel:":return(0,p.jsx)(r.A,{rev:""});case"sms:":return(0,p.jsx)(s.A,{rev:""});case"ftp://":return(0,p.jsx)(l.A,{rev:""});case"skype:":return(0,p.jsx)(o.A,{rev:""})}},b=({handleLinkProtocolsChange:t,linkProtocol:e,__:n})=>(0,p.jsx)(i.A,{style:{width:90,textAlign:"left"},value:e,onChange:t,getPopupContainer:t=>t.parentNode,options:[{value:"https://",label:n("Site")},{value:"mailto:",label:n("E-mail")},{value:"tel:",label:n("Phone")},{value:"sms:",label:n("SMS")},{value:"ftp://",label:n("File")},{value:"skype:",label:n("Skype")},{value:"viber:",label:n("Viber")},{value:"",label:n("Other")}]}),{mobileBorderRadiusAll:u,mobileRadiusTopLeft:g,mobileRadiusBottomLeft:h,mobileRadiusTopRight:f,mobileRadiusBottomRight:v,borderRadiusBottomRight:w,borderRadiusTopRight:x,borderRadiusBottomLeft:y,borderRadiusTopLeft:A,alt:_,src:E,title:R,link:I,borderRadiusAll:k,imgReplacer:C,expanded:T}={link:"link",borderRadiusBottomRight:"borderRadiusBottomRight",borderRadiusTopRight:"borderRadiusTopRight",borderRadiusBottomLeft:"borderRadiusBottomLeft",borderRadiusTopLeft:"borderRadiusTopLeft",mobileBorderRadiusAll:"mobileBorderRadiusAll",mobileRadiusTopLeft:"mobileRadiusTopLeft",mobileRadiusBottomLeft:"mobileRadiusBottomLeft",mobileRadiusTopRight:"mobileRadiusTopRight",mobileRadiusBottomRight:"mobileRadiusBottomRight",alt:"alt",imgReplacer:"imgReplacer",src:"src",title:"title",borderRadiusAll:"borderRadiusAll",expanded:"expanded"},S={paddingTop:"top",paddingLeft:"left",paddingRight:"right",paddingBottom:"bottom",mobilePaddingTop:"top",mobilePaddingLeft:"left",mobilePaddingRight:"right",mobilePaddingBottom:"bottom"},L={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},N={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,D=t=>t||(0===t?"0":""),B=t=>t&&"auto"!==t?t:0===t?"0":"";function j(t){var e,n,i,d,a,r,s,l,o,c,p,m,b,u,g,h,f,v,w,x;let y={...t,link:t.link?t.link:"https://",borderRadiusAll:D(null===(e=t.borderRadius)||void 0===e?void 0:e.all),borderRadiusTopLeft:D(null===(n=t.borderRadius)||void 0===n?void 0:n.topLeft),borderRadiusBottomLeft:D(null===(i=t.borderRadius)||void 0===i?void 0:i.bottomLeft),borderRadiusTopRight:D(null===(d=t.borderRadius)||void 0===d?void 0:d.topRight),borderRadiusBottomRight:D(null===(a=t.borderRadius)||void 0===a?void 0:a.bottomRight),mobileBorderRadiusAll:D(null===(r=t.mobileBorderRadius)||void 0===r?void 0:r.all),mobileRadiusTopLeft:D(null!==(null===(s=t.mobileBorderRadius)||void 0===s?void 0:s.topLeft)?null===(l=t.mobileBorderRadius)||void 0===l?void 0:l.topLeft:null===(o=t.mobileBorderRadius)||void 0===o?void 0:o.all),mobileRadiusBottomLeft:D(null!==(null===(c=t.mobileBorderRadius)||void 0===c?void 0:c.bottomLeft)?null===(p=t.mobileBorderRadius)||void 0===p?void 0:p.bottomLeft:null===(m=t.mobileBorderRadius)||void 0===m?void 0:m.all),mobileRadiusTopRight:D(null!==(null===(b=t.mobileBorderRadius)||void 0===b?void 0:b.topRight)?null===(u=t.mobileBorderRadius)||void 0===u?void 0:u.topRight:null===(g=t.mobileBorderRadius)||void 0===g?void 0:g.all),mobileRadiusBottomRight:D(null!==(null===(h=t.mobileBorderRadius)||void 0===h?void 0:h.bottomRight)?null===(f=t.mobileBorderRadius)||void 0===f?void 0:f.bottomRight:null===(v=t.mobileBorderRadius)||void 0===v?void 0:v.all),show:t.show?t.show:"all",altSrc:t.src};var A,_;t.video&&(y.videoPlayButton=null!==(A=t.video.playButton)&&void 0!==A?A:"youtube_red",y.videoSource=null!==(_=t.video.source)&&void 0!==_?_:"");if((null===(w=t.carouselImages)||void 0===w?void 0:w.length)>0){var E;let e={};null===(E=t.carouselImages)||void 0===E||E.map(((t,n)=>(Object.keys(t).forEach((i=>{e[i+"_"+n]=t[i]})),!0))),y.images=e}if((null===(x=t.sections)||void 0===x?void 0:x.length)>0){var R;let e=[];null===(R=t.sections)||void 0===R||R.map(((t,n)=>(e.push({[`expanded_${n}`]:t.expanded}),!0))),y.sections=e}return y}function M(t,e,n){const i=n.hasOwnProperty("images"),d=n.hasOwnProperty("sections"),a=Object.keys(i?n.images:d?n.sections:n)[0],r=i?n.images:d?n.sections:n;let s={};const l=e.getFieldsValue(!0);switch(a.split("_")[0]){case R:case E:case _:case C:if(i){let e=[...t.carouselImages];e[a.split("_")[1]][a.split("_")[0]]=r[a],s={carouselImages:e}}else s=r;break;case T:if(d){let e=[...t.sections];e[a.split("_")[1]][a.split("_")[0]]=r[a],s={sections:e}}break;case I:let n=r[a];"https://http"===n.substring(0,12)&&(n=n.substring(8,n.length)),t.type===c.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 k:s={borderRadius:{...t.borderRadius,[L[A]]:l[A],[L[y]]:l[y],[L[x]]:l[x],[L[w]]:l[w],[L[a]]:+r[a]}};break;case A:case y:case x:case w:s={borderRadius:{...t.borderRadius,[L[k]]:null,[L[a]]:+r[a]}};break;case u:case g:case h:case f:case v:s={mobileBorderRadius:{...t.mobileBorderRadius,[N[g]]:l[g],[N[h]]:l[h],[N[f]]:l[f],[N[v]]:l[v],[N[a]]:r[a],classNamePrefix:"em-mob-border_radius_"+N[a]+"-"}};break;default:s=r}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"> </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"> </td>\n\t\t\t\t\t\t\t\t<td align="left"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="20"></td></tr></table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t</table><![endif]--\x3e\n\t\t\t\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="10"></td></tr></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\x3c!--[if (gte mso 9)|(IE)]>\n\t\t</td></tr></table>\n\t\t<![endif]--\x3e\n\t</td>\n</tr>\n\n'},56991:(t,e,n)=>{"use strict";n.d(e,{bD:()=>r,Mu:()=>s,cM:()=>o,rD:()=>l});var i=n(45934),d=n(18398),a=n(71210);function r(t,e){if(t!==e){if(!t||!e||"object"!==typeof t||"object"!==typeof e)return!1;const n=e instanceof Array;if(t instanceof Array){if(!n)return!1;const i=t.length;if(e.length!==i)return!1;for(let n=0;n<i;n++)if(!r(t[n],e[n]))return!1}else if(n)return!1;const i=Object.keys(t),d=Object.keys(e),a=i.length;if(a!==d.length)return!1;for(let s=0;s<a;s++){const n=i[s];if(!e.hasOwnProperty(n)||!r(t[n],e[n]))return!1}}return!0}function s(t){if(t){const{type:e,project:n,isNew:i,id:d}=t;return`/projects/${n}/${"block"===e?"blocks":"emails"}/${i?`new?template=${d}`:d}`}return""}function l(){return(0,i.d4)(d.zg)}function o(t,e,n){return null!==t&&void 0!==t&&t.length?t.map(((t,i)=>function(t){return t.hasOwnProperty("children")}(t)?{key:(0,a.l)(),value:t.value,label:t.label,children:o(t.children,e,n),type:t.type}:{key:(0,a.l)(),label:t.label,value:t.value,onClick:e=>{n(t.value,e.domEvent)}})):void 0}},41664:(t,e,n)=>{"use strict";n.d(e,{Q:()=>d});var i=n(71210);function d(t=(0,i.l)()){return t}},82375:(t,e,n)=>{"use strict";n.d(e,{Q:()=>i});const i=new(n(95152).m)},30725:(t,e,n)=>{"use strict";n.d(e,{p:()=>d});var i=n(23580);function d(t){return(e,n,d,a)=>{const r=(0,i.My)(n);return t(r)(e,n,d,a)}}},77509:(t,e,n)=>{"use strict";n.d(e,{j:()=>i});class i{constructor(t=[]){this._inner=t,this._isDisposed=!1}addDisposable(t){return this._inner.push(t),t instanceof i&&t.addDispose((()=>{this.removeDisposable(t)})),t}addDispose(t){this.addDisposable({dispose:t})}removeDisposable(t){const e=this._inner.indexOf(t);e>=0&&this._inner.splice(e,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const t of[...this._inner])t.dispose()}}}},47381:(t,e,n)=>{"use strict";n.d(e,{d:()=>i});const i=(t,e)=>{const n=()=>{try{const e={...t,appLabel:"blocks_app"};window.dataLayer&&"function"===typeof window.dataLayer.push?window.dataLayer.push(e):console.log("Attempting to add to the dataLayer:",t)}catch(e){console.error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 GTM:",e)}};e?setTimeout(n,e):n()}},71210:(t,e,n)=>{"use strict";function i(){var t=(new Date).getTime(),e="undefined"!==typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var i=16*Math.random();return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(e+i)%16|0,e=Math.floor(e/16)),("x"===n?i:3&i|8).toString(16)}))}n.d(e,{l:()=>i})},14004:(t,e,n)=>{"use strict";n.d(e,{i:()=>d});var i=n(44141);const d=async(t,e,n)=>{const d=(0,i.KU)(e).baseUrl.replaceAll(/[\\/]$/g,""),a=(0,i.hI)({baseUrl:d});let r=await a(t,e,n);if(r.error){let t=r.error;if("function"===typeof t.json)try{t=await t.json()}catch{t=await t,console.log("error",t)}return{error:t}}return r}},89698:(t,e,n)=>{"use strict";n.d(e,{V:()=>o});var i=n(85163),d=n(45695),a=n(23287),r=n(92810),s=n(45934),l=n(86286);function o(){const t=(0,d.QC)(),e=(0,s.d4)(l.C1),{__:n}=(0,a.s9)(),[o,c]=(0,r.useState)("");(0,r.useEffect)((()=>{if(e.locale!==o){const d=(0,i.QV)(n),a=t.onInit((()=>{t.send(i.Ru.SANDBOX_TRANSLATIONS,{name:e.locale,data:d}),c(e.locale)}));return()=>a.dispose()}}),[e.locale,o,c,n,t]),(0,r.useEffect)((()=>{const e=t.addListener(i.Ru.RELOAD,(()=>{c("")}));return()=>e.dispose()}),[c,t])}},37969:(t,e,n)=>{"use strict";n.d(e,{y:()=>l});var i=n(85163),d=n(45695),a=n(92810),r=n(70082);const s=Symbol("isIframeEvent");function l({children:t}){const[e,n]=(0,a.useState)(),[l,o]=(0,a.useState)(),[c,p]=(0,a.useState)(!1),m=(0,d.QC)();return(0,a.useEffect)((()=>{if(e){const t=m.addListener(i.Ru.APPLICATION_IFRAME_DRAG_EVENT,(t=>{if("drageleave"!==t.type&&"dragenter"!==t.type){const n=e.getBoundingClientRect(),i=t.clientX+n.x+window.scrollX,d=t.clientY+n.y+window.scrollY,a=document.elementFromPoint(i,d);if(a){const e=new DataTransfer,n=new DragEvent(t.type,{clientX:i,clientY:d,cancelable:!0,bubbles:!0,dataTransfer:e});n[s]=!0,a.dispatchEvent(n)}}}));return()=>t.dispose()}}),[m,e]),(0,a.useEffect)((()=>{const t=t=>{t[s]||p(!0)},e=t=>{t[s]||p(!1)};return window.addEventListener("dragstart",t),window.addEventListener("dragend",e),()=>{window.removeEventListener("dragstart",t),window.removeEventListener("dragend",e)}}),[l]),(0,a.useEffect)((()=>{const t=t=>{if(!t[s]){var e;const n=l.getBoundingClientRect();m.send(i.Ru.SANDBOX_DRAG_EVENT,{value:(null===(e=t.dataTransfer)||void 0===e?void 0:e.getData("Text"))||"",type:t.type,clientX:t.pageX-n.x-window.scrollX,clientY:t.pageY-n.y-window.scrollY})}};if(l)return l.addEventListener("dragenter",t),l.addEventListener("dragover",t),l.addEventListener("dragleave",t),l.addEventListener("drop",t),l.addEventListener("dragend",t),()=>{l.removeEventListener("dragenter",t),l.removeEventListener("dragover",t),l.removeEventListener("dragleave",t),l.removeEventListener("drop",t),l.removeEventListener("dragend",t)}}),[l,m]),(0,r.jsxs)("div",{ref:n,children:[c&&(0,r.jsx)("div",{ref:o,className:"iframe-provider"}),t]})}},43672:(t,e,n)=>{"use strict";n.d(e,{w:()=>o});var i=n(95838),d=n(85163),a=n(56991),r=n(45695),s=n(92810);const{useToken:l}=i.A;function o(){const t=(0,r.QC)(),{token:e}=l(),[n,i]=(0,s.useState)();(0,s.useEffect)((()=>{if(!(0,a.bD)(n,e)){const n=t.onInit((()=>{t.send(d.Ru.SANDBOX_SET_THEME_VARIABLES,e),i(e)}));return()=>n.dispose()}}),[e,n,i,t]),(0,s.useEffect)((()=>{const e=t.addListener(d.Ru.RELOAD,(()=>{i(void 0)}));return()=>e.dispose()}),[i,t])}},38920:(t,e,n)=>{"use strict";n.d(e,{r:()=>x});var i=n(85163),d=n(59287),a=n(92810),r=n(45934),s=n(64617),l=n(17581),o=n(53204),c=n(47358),p=n(65983),m=n(39738),b=n(86286),u=n(56991),g=n(32411),h=n(83863),f=n(71157),v=n(42068),w=n(47381);function x(t){const{emailId:e,projectId:n}=(0,s.g)(),x=(0,f.hN)(),y=(0,u.rD)(),A=(0,r.d4)(o.M),_=(0,g.fn)(),E=(0,a.useRef)(0),R=(0,r.d4)(m.p1),I=(0,r.d4)(c.Wm),k=(0,r.d4)(c.B),C=(0,r.d4)(b.C1),[T,S]=(0,l.LX)(),L=(0,r.wA)(),{isSuccess:N,isLoading:O}=(0,l.YV)({emailId:e},{skip:!e}),[D,B]=(0,a.useState)(null);(0,a.useEffect)((()=>{if(N&&!O&&null!==R&&void 0!==R&&R.length){const n=R[0];var e;if(n&&D!==(null===t||void 0===t?void 0:t.id))null!==(e=n.slug)&&void 0!==e&&e.includes("autosave")&&_&&L((0,p.no)(n)),B(null===t||void 0===t?void 0:t.id)}}),[L,R,N,O,null===t||void 0===t?void 0:t.id,D,_,e]);const j=(0,a.useCallback)((({parent:e})=>{if(t){const a={parent:e,title:t.title,author:t.author,project:t.project,html:(null===_||void 0===_?void 0:_.getValue())||"",excerpt:t.date_gmt,subject:t.subject,preheader:t.preheader,common_styles:t.common_styles,parent_email:t.parent_email};T({emailId:t.id,body:a}).then((e=>{if((0,w.d)({event:"save",action:"auto_save_email",email_id:t.id,project_id:n}),!function(t){return t.hasOwnProperty("data")}(e))throw e.error;var r,s;fetch((0,d.Wv)(i.Tm,n,null===(r=e.data)||void 0===r?void 0:r.id,null===(s=e.data)||void 0===s?void 0:s.modified),{mode:"no-cors"}),x.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:a,message:""},!0)})).catch((t=>{x.fromError("EMAIL_AUTOSAVE_ERROR",a,t,!0),console.log(t)}))}}),[T,t,_,n,x]),[M,U]=(0,a.useState)(!1),F=(0,a.useCallback)((()=>{if((null===R||void 0===R?void 0:R.length)>0){const t=[...R].sort(((t,e)=>Date.parse(null===e||void 0===e?void 0:e.modified)-Date.parse(null===t||void 0===t?void 0:t.modified)))[0];Date.parse((new Date).toString())-Date.parse(null===t||void 0===t?void 0:t.modified)>1.5*((null===y||void 0===y?void 0:y.autosaveTimeout)||1e4)&&I&&!A&&"Discuss"!==k&&j({parent:t.id})}else I&&!A&&"Discuss"!==k&&j({parent:null})}),[R,A,I,k,j,null===y||void 0===y?void 0:y.autosaveTimeout]);(0,v.Z)((([t])=>{M&&!t&&(F(),U(!1))}),[M,F,U]);const P=null===C||void 0===C?void 0:C.autosaves,[H,V]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{H&&!A&&(clearTimeout(E.current),E.current=setTimeout((()=>U(!0)),(null===y||void 0===y?void 0:y.autosaveTimeout)||1e4),V(!1))}),[H,A,null===y||void 0===y?void 0:y.autosaveTimeout,U,V]),(0,a.useEffect)((()=>{if(P&&N&&void 0!==(null===t||void 0===t?void 0:t.id)){const e=(0,h.Og)(_,(()=>{I&&null!==t&&void 0!==t&&t.is_inited&&V(!0)}));return()=>{e.dispose()}}}),[_,V,P,N,null===t||void 0===t?void 0:t.id,I,null===t||void 0===t?void 0:t.is_inited]),(0,v.Z)((([e,n])=>{N&&void 0!==(null===t||void 0===t?void 0:t.id)&&I&&null!==t&&void 0!==t&&t.is_inited&&(e===(null===t||void 0===t?void 0:t.title)&&n===(null===t||void 0===t?void 0:t.common_styles)||V(!0))}),[null===t||void 0===t?void 0:t.title,null===t||void 0===t?void 0:t.common_styles,I,N,V,null===t||void 0===t?void 0:t.id,null===t||void 0===t?void 0:t.is_inited]),(0,a.useEffect)((()=>()=>{clearTimeout(E.current)}),[C,null===t||void 0===t?void 0:t.renderGuid]),(0,a.useEffect)((()=>{clearTimeout(E.current)}),[null===t||void 0===t?void 0:t.modified]),S}},9653:(t,e,n)=>{"use strict";n.d(e,{U:()=>o});var i=n(85163),d=n(45695),a=n(32411),r=n(83863),s=n(42068),l=n(92810);const o=t=>{const e=(0,a.fn)(),n=(0,d.QC)(),o=(null===t||void 0===t?void 0:t.html)||"",c=(0,l.useRef)();c.current=t;const p=(0,l.useCallback)((t=>{const e=c.current;if(t===(null===e||void 0===e?void 0:e.renderGuid))return n.sendAsync(i.Ru.SANDBOX_INITED,{guid:e.renderGuid})}),[n]),m=(0,l.useCallback)((t=>{const e=c.current;if(t===(null===e||void 0===e?void 0:e.renderGuid))return n.sendAsync(i.Ru.SANDBOX_INIT_START,{guid:e.renderGuid})}),[n]),b=(0,l.useCallback)((async t=>{const d=c.current;if((null===d||void 0===d?void 0:d.renderGuid)===t){const t=null===o||void 0===o?void 0:o.replaceAll("\r\n","\n");try{(0,r.po)(e),e.setValue(t)}finally{(0,r.SF)(e)}const a=e.getValue();await n.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:a,guid:null===d||void 0===d?void 0:d.renderGuid})}}),[o,e,n]);(0,s.Z)((async([e])=>{const n=null===t||void 0===t?void 0:t.renderGuid;n&&n!==e&&(await m(n),await b(n),await p(n))}),[null===t||void 0===t?void 0:t.renderGuid,null===t||void 0===t?void 0:t.id,b])}},69106:(t,e,n)=>{"use strict";n.d(e,{f:()=>g});var i=n(85163),d=n(13522),a=n(45695),r=n(93982),s=n(32411),l=n(83863),o=n(42068),c=n(92810),p=n(65983),m=n(8493),b=n(45934),u=n(87686);const g=(t,e)=>{const n=(0,b.wA)(),g=(0,s.fn)(),h=(0,a.QC)(),f=(0,r.ml)(d.A.WILL_EMAIL_INIT_ID),v=(0,r.ml)(d.A.ON_EMAIL_INIT_ID),w=(0,r.ml)(d.A.ON_CONTENT_CHANGED_ID),x=(0,r.ml)(d.A.ON_EMAIL_CHANGED_ID),y=(0,r.ml)(d.A.ON_MODEL_CHANGE),A=(0,c.useRef)(!1),_=(0,c.useRef)();_.current=t,(0,c.useEffect)((()=>{const n=_.current;if(i.EW.isPlugin&&!A.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const t=g.getValue();x.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}),[g,t,x,e]),(0,o.Z)((([t])=>{t!==g&&y.fire(g)}),[g,y]),(0,c.useEffect)((()=>{if(i.EW.isPlugin){const n=g.onDidChangeContent((()=>{const n=_.current;if(!A.current&&(null===t||void 0===t?void 0:t.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const t=g.getValue();w.fire(t),x.fire({...n,id:e||n.isNew?void 0:n.id,html:t})}}));return()=>n.dispose()}}),[g,w,x,t,e]);const E=(0,c.useCallback)((async()=>{const t=_.current;try{var e;(0,l.po)(g),g.setValue((null===t||void 0===t||null===(e=t.html)||void 0===e?void 0:e.replaceAll("\r\n","\n"))||"")}finally{(0,l.SF)(g)}const n=g.getValue();await h.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:n,guid:t.renderGuid})}),[g,h]),R=(0,c.useCallback)((async()=>{const t=_.current;await h.sendAsync(i.Ru.SANDBOX_SET_ENTITY,{html:g.getValue(),guid:t.renderGuid})}),[g,h]),I=(0,c.useCallback)((async()=>{const t=_.current;void 0!==t.preheader&&await h.sendAsync(i.Ru.SANDBOX_PREHEADER_UPDATE,{value:t.preheader,guid:t.renderGuid,force:!0})}),[h]),k=(0,c.useCallback)((async()=>{const t=_.current;void 0!==t.subject&&await h.sendAsync(i.Ru.SANDBOX_SUBJECT_UPDATE,{value:t.subject,guid:t.renderGuid,force:!0})}),[h]),C=(0,c.useCallback)((()=>{const t=_.current;return h.sendAsync(i.Ru.SANDBOX_INITED,{guid:t.renderGuid})}),[h]),T=(0,c.useCallback)((()=>{const t=_.current;return n(void 0===t.id?(0,m.Uh)(!0):(0,p.Wm)(!0)),v.fire({...t,id:e||t.isNew?void 0:t.id,html:g.getValue()})}),[n,v,g,e]),S=(0,c.useCallback)((()=>{const t=_.current;return h.sendAsync(i.Ru.SANDBOX_INIT_START,{guid:t.renderGuid})}),[h]),L=(0,c.useCallback)((()=>{const t=_.current;return f.fire({...t,id:e||t.isNew?void 0:t.id,html:g.getValue()})}),[f,g,e]),[N]=(0,o.c)((function*(){try{A.current=!0,yield*(0,u.T1)(S),yield*(0,u.T1)(L),yield*(0,u.T1)(E),yield*(0,u.T1)(I),yield*(0,u.T1)(k),yield*(0,u.T1)(C),yield*(0,u.T1)(T)}finally{A.current=!1}}),[E,I,k,T,L,S,C]),[O]=(0,o.c)((function*(){try{yield*(0,u.T1)(S),yield*(0,u.T1)(L),yield*(0,u.T1)(R),yield*(0,u.T1)(I),yield*(0,u.T1)(k),yield*(0,u.T1)(C),yield*(0,u.T1)(T)}finally{}}),[E,I,k,T,L,S,C]);(0,o.Z)((async([e])=>{const n=null===t||void 0===t?void 0:t.renderGuid;n&&n!==e&&N()}),[null===t||void 0===t?void 0:t.renderGuid,N]),(0,c.useEffect)((()=>{const t=h.addListenerAsync(i.Ru.RELOAD,(async()=>{await O()}));return()=>t.dispose()}),[h,O])}},14598:(t,e,n)=>{"use strict";n.d(e,{QM:()=>s,q2:()=>p});var i=n(60564),d=n.n(i),a=n(58689),r=n(81158);function s(t,e){const n=document.createElement("input");n.type="file",n.accept=t,n.multiple=!0,n.onchange=()=>{var t;null!==(t=n.files)&&void 0!==t&&t.length&&e(n.files)},n.click()}const l="index.html";function o(t,e){return t.find((function(t){return t.name.toLowerCase().endsWith(e)}))}async function c(t,e,n){return await(0,a.bc)(t,(async t=>{t=t.replace("\\","/");const n=(0,a.$l)(t);return e(t,n)}),n)}async function p(t,e,n){if(t){switch(function(t){const e=t.split(".");return e[e.length-1].toLowerCase()}(t.name)){case"zip":return async function(t,e,n){var i=new(d());const{files:r}=await i.loadAsync(t),s=Object.keys(r).map((t=>r[t])),c=r[l]||o(s,l)||o(s,".html")||o(s,".htm");if(c){const t=c.name.split("/"),i=document.location.pathname.split("/"),d=document.location.origin+i.slice(0,i.length-t.length).join("/")+"/",s=await c.async("text"),l=t.slice(0,t.length-1).join("/");return await(0,a.bc)(s,(async t=>{(t=t.replace("\\","/")).startsWith(".")&&(t=t.substring(1)),t.startsWith("/")&&(t=t.substring(1)),t.startsWith(d)&&(t=t.substring(d.length)),l&&!t.match("^(ht|f)tp(s?)://")&&(t=`${l}/${t}`);const n=r[t];if(n){const t=n.name,i=await n.async("blob");return e(i,t)}const i=(0,a.$l)(t);return e(t,i)}),n)}}(t,e,n);case"eml":{const i=await t.text(),d=(0,r.bZ)(i);if(d instanceof Error)throw d;const a="string"===typeof d?d:d.html;if("undefined"===typeof a)throw new Error("Eml not contains text/html");return c(a,e,n)}default:return c(await t.text(),e,n)}}}},44396:(t,e,n)=>{"use strict";n.d(e,{Q:()=>s});var i=n(60089),d=n(70609);const a=100;class r extends i.m{constructor(t,e,n,i){super(t,e,n,i),this._onScrollDisposable=null,this._editor=t}updateColorDecorators(t){if(this._onScrollDisposable&&(this._onScrollDisposable.dispose(),this._onScrollDisposable=null),t.length>=500){const e=this._editor;let[n,i]=[Number.MAX_VALUE,Number.MIN_VALUE];const d=()=>{const d=e.getVisibleRanges(),[r,s]=d.reduce(((t,{startLineNumber:e,endLineNumber:n})=>[Math.min(e,t[0]),Math.max(n,t[1])]),[Number.MAX_VALUE,Number.MIN_VALUE]);if(n-r>a||s-i>a){let e=t.filter((({colorInfo:t})=>{const{startLineNumber:e,endLineNumber:n}=t.range;return r-e<a&&n-s<a}));super.updateColorDecorators(e)}};this._onScrollDisposable=e.onDidScrollChange(d),d()}else super.updateColorDecorators(t)}dispose(){var t;null===(t=this._onScrollDisposable)||void 0===t||t.dispose(),super.dispose()}}function s(){(0,d.D0)(r.ID,(()=>r))}},36671:(t,e,n)=>{"use strict";n.d(e,{h:()=>y});var i=n(92810),d=n(70609),a=n(85163),r=n(32411),s=n(64037),l=n(71157),o=n(45934),c=n(86286),p=n(23287),m=n(39217),b=n(45695),u=n(77509),g=n(83863);const h=1e3,f=2e3,v=10,w="iframe_errors",x=5;function y(t,e){const{__:n}=(0,p.s9)(),y=(0,b.QC)(),A=(0,r.aD)(t),{error:_}=(0,l.hN)(),E=(0,i.useRef)(0),R=(0,i.useRef)(),I=(0,i.useRef)(!1),k=(0,o.d4)(c.C1),C=(0,i.useCallback)((t=>new Promise(((e,n)=>{const i=y.addListener(a.Ru.SANDBOX_READY,(()=>{i.dispose(),e()}));t&&setTimeout((()=>{i.dispose(),n("timeout")}))}))),[y]),T=(0,i.useCallback)((i=>{C(f).catch((t=>console.log(t))).finally((()=>{Promise.resolve().then((()=>{if(!I.current){if(++E.current){if(R.current){if(E.current<x){A.restoreSnapshot(R.current);for(let t=0;t<E.current;t++)A.undo()}}else R.current=A.createSnapshot();y.send(a.Ru.RELOAD)}setTimeout((()=>{if(0===--E.current){R.current=null;const d={past:A.getPast().slice(0,v),future:A.getFuture(),errorResolved:!I.current,text:t.getValue(),message:i.message,stack:i.stack,userId:null===k||void 0===k?void 0:k.id,entityId:null===e||void 0===e?void 0:e.id,entityType:document.location.pathname.indexOf("emails")>0?"email":"block"};console.log(d),_({id:"IFRAME_ERROR",data:d,message:n("Something went wrong")}),m.CJ.post(w,d).catch((t=>console.log(t))),I.current=!1}}),f)}}))}))}),[A,t,_,null===k||void 0===k?void 0:k.id,null===e||void 0===e?void 0:e.id,n,C,y]);(0,s.A)(a.Ru.APPLICATION_DOMPARSER_ERROR,T),(0,i.useEffect)((()=>{let n=null,i=0;function r(t){const e=[];for(const{rangeOffset:n,rangeLength:i,text:d}of t.changes)e.push({range:{start:n,end:n+i},text:d});return e}let s=!1;const l=new u.j;return l.addDisposable((0,g.Og)(t,(t=>(async t=>{if(s)await y.sendAsync(a.Ru.SANDBOX_UPDATE_ENTITY,{edits:[r(t)],guid:e.renderGuid});else if(n)n.push(t);else{n=[t];do{const t=n.splice(0,n.length);await y.sendAsync(a.Ru.SANDBOX_UPDATE_ENTITY,{edits:t.map(r),guid:e.renderGuid})}while(n.length);n=null}})(t).catch((t=>console.log(t)))))),l.addDisposable(y.addListener(a.Ru.APPLICATION_UPDATE_ENTITY,(function({guid:n,edits:a,pushUndoStop:r}){if(t&&n===e.renderGuid)try{s=!0;const e=(0,d.yc)();let n=e.canUndo(t.uri),l=e.canRedo(t.uri);const o=a.map((({text:e,range:n})=>{const i=t.getPositionAt(n.start),d=t.getPositionAt(n.end);return{text:e,range:{startColumn:i.column,startLineNumber:i.lineNumber,endColumn:d.column,endLineNumber:d.lineNumber}}}));r||n||l?t.pushEditOperations([],o,(()=>null)):t.applyEdits(o),!1!==r&&(i&&clearTimeout(i),i=setTimeout((()=>{t.pushStackElement(),i=0}),h))}finally{s=!1}}))),()=>{l.dispose(),i&&clearTimeout(i)}}),[t,y,e.renderGuid])}},32411:(t,e,n)=>{"use strict";n.d(e,{$Z:()=>m,TW:()=>c,aD:()=>p,fn:()=>b,kx:()=>s});var i=n(70609),d=n(92810),a=n(60382),r=n(33695);const s=(0,d.createContext)(null),l={editorWorkerService:"editor.worker.js",html:"html.worker.js",css:"css.worker.js",typescript:"ts.worker.js",json:"json.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"};function o(t,e){/^(\/\/)/.test(t)&&(t=window.location.protocol+t);var n=new Blob(["/*"+e+'*/importScripts("'+t+'");'],{type:"application/javascript"});return URL.createObjectURL(n)}function c(t){const e=(0,i.yc)(),[n,a]=(0,d.useState)({canUndo:e.canUndo(t.uri),canRedo:e.canRedo(t.uri)});return(0,d.useEffect)((()=>{const n=t.onDidChangeContent((()=>{setTimeout((()=>a({canUndo:e.canUndo(t.uri),canRedo:e.canRedo(t.uri)})))}));return()=>{n.dispose()}}),[t,e]),n}function p(t){function e(t){var e;const n=(null===t||void 0===t||null===(e=t.actual)||void 0===e?void 0:e._data)||new r.Ov;return n instanceof r.Ov?n:r.Ov.deserialize(n)}const n=(0,i.yc)();return(0,d.useMemo)((()=>({undo:()=>n.undo(t.uri),redo:()=>n.redo(t.uri),clear:()=>n.removeElements(t.uri),getPast:()=>{var i,d;return(null===(i=n._editStacks.get(t.uri.toString()))||void 0===i||null===(d=i._past)||void 0===d?void 0:d.map(e))||[]},getFuture:()=>{var i,d;return(null===(i=n._editStacks.get(t.uri.toString()))||void 0===i||null===(d=i._future)||void 0===d?void 0:d.map(e))||[]},canUndo:()=>n.canUndo(t.uri),canRedo:()=>n.canRedo(t.uri),createSnapshot:()=>n.createSnapshot(t.uri),restoreSnapshot:t=>n.restoreSnapshot(t)})),[n,t])}function m(t="",e="html"){const n=a.editor.createModel(t,e);return n.setEOL(a.editor.EndOfLineSequence.LF),n}function b(){return(0,d.useContext)(s)}emailmakerMonacoEnvironment.getWorkerUrl=(t,e)=>{var i=n.p,d=(i?i.replace(/\/$/,"")+"/":"")+l[e],a=new URL(d,window.location.origin),r=a.protocol;if("http:"===r||"https:"===r){if(a.protocol!==window.location.protocol||a.hostname!==window.location.hostname)return o(d,e);if("localhost"===a.hostname&&(a.port||"80")!==(window.location.port||"80"))return o(d,e)}else if("file:"===r)return o(d,e);return d}},83863:(t,e,n)=>{"use strict";n.d(e,{Og:()=>r,SF:()=>a,po:()=>d});const i=new Set;function d(t){return i.add(t),{dispose(){a(t)}}}function a(t){i.delete(t)}function r(t,e){let n=t.getVersionId(),d=[];const a=t.onDidChangeContent((a=>{if(a.versionId>n+1){let r=t.onDidChangeContent((s=>{if(a.versionId===n+1)try{i.has(t)||e(a)}catch(l){console.log(l)}finally{n=a.versionId;let t=d.indexOf(r);t>=0&&d.splice(t,1),r.dispose()}}));d.push(r)}else try{i.has(t)||e(a)}catch(r){console.log(r)}finally{n=a.versionId}}));return{dispose:()=>{a.dispose(),d.forEach((t=>t.dispose()))}}}},70609:(t,e,n)=>{"use strict";n.d(e,{D0:()=>r,yc:()=>s});var i=n(95713),d=n(42443),a=n(60332);function r(t,e){const n=i.dS.getEditorContributions().find((e=>e.id===t));if(!n)throw new Error(`No contribution ${t}`);n.ctor=e(n)}function s(){return t=a.$D,d.QE.get(t);var t}},71157:(t,e,n)=>{"use strict";n.d(e,{Gy:()=>m,O5:()=>g,hN:()=>u,x_:()=>b});var i=n(13522),d=n(93982),a=n(92810),r=n(33206),s=n(13329),l=n(28316),o=n(814),c=n(70082);const p="bottomRight";function m(t){return{id:t.id,code:t.html,title:t.title,subject:t.subject,preheader:t.preheader}}function b(t){return{id:t.id,code:t.html,title:t.title}}function u(){const t=(0,d.ml)(i.A.ON_NOTIFICATION),{notification:e}=r.A.useApp(),n=(0,a.useCallback)(((n,i)=>{n.type||(n={...n,type:"info"}),t.fire((0,o.TB)({id:n.id,type:n.type,data:n.data,innerException:n.innerException})).then((t=>{if(t.every((t=>!1!==t))){n={...n};for(const e of t)"object"===typeof e&&Object.assign(n,e,e.style?{style:{...e.style,...n.style}}:{},e.props?{props:{...e.props,...n.props}}:{},e.className?{className:n.className?`${n.className} ${e.className}`:e.className}:{});i||((n=Object.assign(n,...t.filter((t=>"object"===typeof t)))).placement||(n.placement=p),e[n.type]?e[n.type](n):(console.log(n.type),console.log(n.id),n.message&&console.log(n.message)))}}))}),[e,t]),s=(0,a.useCallback)(((t,e)=>n({...t,type:"error"},e)),[n]),l=(0,a.useCallback)(((t,e)=>n({...t,type:"success"},e)),[n]),m=(0,a.useCallback)(((t,e)=>n({...t,type:"warning"},e)),[n]),b=(0,a.useCallback)(((t,e)=>n({...t,type:"info"},e)),[n]),u=(0,a.useCallback)(((t,e,n,i,d=p)=>{var a,r;n&&s({id:t,data:e,message:n.data instanceof Error?"":(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(a=n.data)||void 0===a?void 0:a.code)||n.status||n}}),description:(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(r=n.data)||void 0===r?void 0:r.message)||n.error}}),placement:d,innerException:(null===n||void 0===n?void 0:n.data)instanceof Error?n.data:n},i)}),[s]);return(0,a.useMemo)((()=>({notify:n,success:l,error:s,warning:m,fromError:u,info:b})),[n,l,s,m,u,b])}function g(){const{notify:t}=u();(0,s.D3)(l.Sb,t)}},23287:(t,e,n)=>{"use strict";n.d(e,{CY:()=>s,s9:()=>l});var i=n(92810),d=n(92032);function a(t){return{__:t.__.bind(t),_x:t._x.bind(t),_n:t._n.bind(t),_nx:t._nx.bind(t),sprintf:d.nv,isRTL:t.isRTL.bind(t),hasTranslation:t.hasTranslation.bind(t)}}const r=(0,i.createContext)(a(d.y3));function s(t){const{children:e,i18n:n=d.y3}=t,[,s]=(0,i.useReducer)((()=>[]),[]);(0,i.useEffect)((()=>n.subscribe(s)),[n]);const l=(0,i.useMemo)((()=>a(n)),[n]);return(0,i.createElement)(r.Provider,{value:l},e)}const l=()=>(0,i.useContext)(r)},42068:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a,c:()=>r});var i=n(92810),d=n(87686);const a=(t,e)=>{const n=(0,i.useRef)();n.current=t;const d=(0,i.useRef)(void 0);(0,i.useEffect)((()=>{null!==d.current&&n.current(d.current||[]),d.current=e}),e)};function r(t,e){const n=(0,i.useRef)(),a=(0,i.useCallback)((()=>{const t=n.current;t&&(0,d.eF)(t.halt)}),[]);(0,i.useEffect)((()=>()=>a()),[a]);const r=(0,i.useCallback)(t,e);return[(0,i.useCallback)(((...t)=>{a();const e=(0,d.eF)((()=>r(...t)));return n.current=e,e}),[a,r]),a]}},69156:(t,e,n)=>{"use strict";n.d(e,{A5:()=>c,FN:()=>o,Hk:()=>l,c8:()=>p});var i=n(92810),d=n(85163),a=n(45695);const r=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]"),s=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=light]"),l=t=>{let e,n;t===d.IJ?(e=d.vd,n=d.F3):(e=t===d.T?d.y2:d.CJ,n=t===d.nd?d.y2:d.CJ),[...s].forEach((t=>{t.media=e})),[...r].forEach((t=>{t.media=n}))},o=(t={})=>{const e=document.querySelector("head"),n=document.createElement("style");if(n.type="text/css",n.dataset.themeVaribalse=!0,Object.entries(t).length){let i="";Object.entries(t).forEach((([t,e])=>{"object"!==typeof e&&(i+=`\t--${t}: ${e};\n`)})),i=`.blocks-body, .blocks-app, .ant-modal-root, .ant-tooltip, .ant-notification {\n${i}}`,n.appendChild(document.createTextNode(i));const d=e.querySelector('[data-theme-varibalse="true"]');d?e.replaceChild(n,d):e.insertBefore(n,e.firstChild)}},c=t=>{const e=document.body;e.classList.contains(t)||setTimeout((()=>{e.classList.remove(t===d.nd?d.T:d.nd),e.classList.add(t)}),200)},p=()=>{const t=(0,a.XW)();return(0,i.useCallback)((()=>{const e=window.localStorage.getItem(d.V0.em_color_scheme),n=matchMedia(d.F3).matches?d.nd:d.T,i=e||n;t({operation:d.Ru.UPDATE_PREVIEW,theme:i})}),[t])}},31770:(t,e,n)=>{"use strict";function i(t){return t}function d({data:t,...e},n){return e.error?e:{data:n(t,e.meta),...e}}function a(t){return e=>d(e,t)}function r(t){return e=>d(e,((e,n)=>e.hasOwnProperty("previous")?t(e.previous,n):t(e,n)))}function s(t){return e=>function({data:t,...e},n){return e.error?e:{data:t.map((t=>n(t,e.meta))),...e}}(e,t)}n.d(e,{Ih:()=>s,PI:()=>r,SA:()=>d,SC:()=>a,ur:()=>i})},84869:(t,e,n)=>{"use strict";function i(t,e){if("object"===typeof t&&t){e(t);for(const n of Object.values(t))i(n,e)}}function d(t=".blocks-app"){t=`${t} &`;const e=new WeakSet;return{visit:n=>{if(!e.has(n)){const d={};let a;for(const r of Object.keys(n)){const s=n[r];"object"===typeof s&&s?(s._keyframe&&i(s,(t=>e.add(t))),d[r]=s):(a||(a=d[t]={},e.add(a)),a[r]=s)}return d}return n}}}n.d(e,{A:()=>d})},44824:(t,e,n)=>{"use strict";n.d(e,{e:()=>d});var i=n(85974);async function d(t,e){if("amp"===e){for(const e of t.querySelectorAll(".em-amp-show-disabled"))e.remove();await(0,i.Sc)(t,{mappedTags:{script:"___script"}})}else if("html"===e){for(const e of t.querySelectorAll(".em-amp-show-only"))e.remove();(0,i.Km)(t,{mappedTags:{script:"___script"}})}}},78451:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(92810),d=n(45934),a=n(64617),r=n(17581),s=n(65983);const l=()=>{const t=(0,d.wA)(),e=(0,d.d4)(s.zn);let n=(0,a.zy)();(0,i.useEffect)((()=>{/emails\/[0-9]+$/.test(n.pathname)||e&&t(r.GY.util.invalidateTags([{type:"Emails",id:+e}]))}),[n,t,e])}},64037:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(92810),d=n(45695);function a(t,e){const n=(0,d.QC)();(0,i.useEffect)((()=>{const i=n.addListener(t,e);return()=>{i.dispose()}}),[n,t,e])}},31844:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(92810),d=n(64617),a=n(45934),r=n(86286),s=n(84568);const l=t=>{const e=(0,a.d4)(r.C1),[n,l]=(0,i.useState)({owner:!1,admin:!1}),o=(0,d.KC)(),{data:c}=(0,s.fo)(t,{skip:!t||!e.id||!(null!==o&&void 0!==o&&o.isUninitialized)}),p=(null===o||void 0===o?void 0:o.data)||c;return(0,i.useEffect)((()=>{if(p){var t,n;const{owner:i,admins:d,users:a}=p.members,r=d?d.map((t=>t.ID)):d,s=a?a.map((t=>t.ID)):a;l({owner:(null===(t=i.ID)||void 0===t?void 0:t.toString())===(null===(n=e.id)||void 0===n?void 0:n.toString()),admin:r&&r.includes(e.id),user:s&&s.includes(e.id)})}}),[p,e.id]),n}},3289:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(92810),d=n(45934),a=n(64617),r=n(87790),s=n(85163),l=n(90070);const o=()=>{const t=(0,d.wA)(),e=(0,l.p6)(),n=(0,d.d4)(r.Sl);let o=(0,a.zy)();(0,i.useEffect)((()=>{o.pathname.endsWith("/new")||n&&(t((0,r.X8)()),e.remove(s.A9.em_new_block))}),[o,n,t,e])}},19366:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(92810),d=n(45934),a=n(64617),r=n(8493),s=n(85163),l=n(90070);const o=()=>{const t=(0,l.p6)(),e=(0,d.wA)(),n=(0,d.d4)(r.$S);let o=(0,a.zy)();(0,i.useEffect)((()=>{o.pathname.endsWith("/new")||(t.remove(s.A9.em_new_email),t.remove(s.A9.em_template_email),n&&e((0,r.Et)()))}),[o,n,e,t])}},22197:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(85163);const d=t=>{if(!i.EW.isPlugin){let e="";e="EmailMaker",document.title=t+" - "+e}}},93718:(t,e,n)=>{var i={"./en_US.ts":[90944,2466],"./ru_RU.ts":[3099,6859]};function d(t){if(!n.o(i,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=i[t],d=e[0];return n.e(e[1]).then((()=>n(d)))}d.keys=()=>Object.keys(i),d.id=93718,t.exports=d},42811:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+BnQM5P/BRgABx8sJWqTxoYAAAAASUVORK5CYII="},59142:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_01_blocks.png"},50195:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_02_blocks.png"},27544:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_03_blocks.png"},59045:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_04_blocks.png"},97970:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_05_blocks.png"},84093:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_01.png"},42854:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_02.png"},81871:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_03.png"},39024:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_04.png"},35929:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/sign_up_05.png"},54416:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/frame_dark.png"},98578:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/frame_light.png"},68777:(t,e,n)=>{"use strict";t.exports=n.p+"static/media/frame_template_gallery.png"},58889:t=>{"use strict";t.exports=JSON.parse('{"yG":"iframe.06d3786ea0462c884b7e.html","l5":"iframe-eblock.06d3786ea0462c884b7e.html"}')}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9335],{33298:(e,t,n)=>{"use strict";n.d(t,{xP:()=>M});var r=n(31052),i=n(88027),u=n(92810),a=n(45934),o=n(90536),s=(n(29876),function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}),c=Object.defineProperty,l=Object.defineProperties,f=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,v=function(e,t,n){return t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},y=function(e,t){for(var n in t||(t={}))p.call(t,n)&&v(e,n,t[n]);if(d)for(var r=0,i=d(t);r<i.length;r++){n=i[r];h.call(t,n)&&v(e,n,t[n])}return e},m=function(e,t){return l(e,f(t))};function g(e,t,n,r){var i=(0,u.useMemo)((function(){return{queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}}),[e,t,n,r]),a=(0,u.useRef)(i);return(0,u.useEffect)((function(){a.current.serialized!==i.serialized&&(a.current=i)}),[i]),a.current.serialized===i.serialized?a.current.queryArgs:e}var b=Symbol();function O(e){var t=(0,u.useRef)(e);return(0,u.useEffect)((function(){(0,a.bN)(t.current,e)||(t.current=e)}),[e]),(0,a.bN)(t.current,e)?t.current:e}var w,S,A=WeakMap?new WeakMap:void 0,q=function(e){var t=e.endpointName,n=e.queryArgs,r="",i=null==A?void 0:A.get(n);if("string"===typeof i)r=i;else{var u=JSON.stringify(n,(function(e,t){return(0,o.isPlainObject)(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}));(0,o.isPlainObject)(n)&&(null==A||A.set(n,u)),r=u}return t+"("+r+")"},R="undefined"!==typeof window&&window.document&&window.document.createElement?u.useLayoutEffect:u.useEffect,_=function(e){return e},T=function(e){return e.isUninitialized?m(y({},e),{isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:r.RE.pending}):e};function j(e){return e.replace(e[0],e[0].toUpperCase())}function k(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,s([e],t))}(S=w||(w={})).query="query",S.mutation="mutation";var E=Symbol();var M=(0,r.l0)((0,r.m7)(),function(e){var t=void 0===e?{}:e,n=t.batch,o=void 0===n?a.vA:n,s=t.useDispatch,c=void 0===s?a.wA:s,l=t.useSelector,f=void 0===l?a.d4:l,d=t.useStore,p=void 0===d?a.Pj:d,h=t.unstable__sideEffectsInRender,v=void 0!==h&&h;return{name:E,init:function(e,t,n){var s=t.serializeQueryArgs,l=e,d=function(e){var t=e.api,n=e.moduleOptions,o=n.batch,s=n.useDispatch,c=n.useSelector,l=n.useStore,f=n.unstable__sideEffectsInRender,d=e.serializeQueryArgs,p=e.context,h=f?function(e){return e()}:u.useEffect;return{buildQueryHooks:function(e){var n=function(n,i){var a=void 0===i?{}:i,o=a.refetchOnReconnect,c=a.refetchOnFocus,l=a.refetchOnMountOrArgChange,f=a.skip,d=void 0!==f&&f,v=a.pollingInterval,y=void 0===v?0:v,m=t.endpoints[e].initiate,b=s(),w=g(d?r.hT:n,q,p.endpointDefinitions[e],e),S=O({refetchOnReconnect:o,refetchOnFocus:c,pollingInterval:y}),A=(0,u.useRef)(!1),R=(0,u.useRef)(),_=R.current||{},T=_.queryCacheKey,j=_.requestId,k=!1;if(T&&j){var E=b(t.internalActions.internal_probeSubscription({queryCacheKey:T,requestId:j}));k=!!E}var M=!k&&A.current;return h((function(){A.current=k})),h((function(){M&&(R.current=void 0)}),[M]),h((function(){var e,t=R.current;if(w===r.hT)return null==t||t.unsubscribe(),void(R.current=void 0);var n=null==(e=R.current)?void 0:e.subscriptionOptions;if(t&&t.arg===w)S!==n&&t.updateSubscriptionOptions(S);else{null==t||t.unsubscribe();var i=b(m(w,{subscriptionOptions:S,forceRefetch:l}));R.current=i}}),[b,m,l,w,S,M]),(0,u.useEffect)((function(){return function(){var e;null==(e=R.current)||e.unsubscribe(),R.current=void 0}}),[]),(0,u.useMemo)((function(){return{refetch:function(){var e;if(!R.current)throw new Error("Cannot refetch a query that has not been started yet.");return null==(e=R.current)?void 0:e.refetch()}}}),[])},f=function(n){var r=void 0===n?{}:n,i=r.refetchOnReconnect,a=r.refetchOnFocus,c=r.pollingInterval,l=void 0===c?0:c,f=t.endpoints[e].initiate,d=s(),p=(0,u.useState)(b),v=p[0],y=p[1],m=(0,u.useRef)(),g=O({refetchOnReconnect:i,refetchOnFocus:a,pollingInterval:l});h((function(){var e,t,n=null==(e=m.current)?void 0:e.subscriptionOptions;g!==n&&(null==(t=m.current)||t.updateSubscriptionOptions(g))}),[g]);var w=(0,u.useRef)(g);h((function(){w.current=g}),[g]);var S=(0,u.useCallback)((function(e,t){var n;return void 0===t&&(t=!1),o((function(){var r;null==(r=m.current)||r.unsubscribe(),m.current=n=d(f(e,{subscriptionOptions:w.current,forceRefetch:!t})),y(e)})),n}),[d,f]);return(0,u.useEffect)((function(){return function(){var e;null==(e=null==m?void 0:m.current)||e.unsubscribe()}}),[]),(0,u.useEffect)((function(){v===b||m.current||S(v,!0)}),[v,S]),(0,u.useMemo)((function(){return[S,v]}),[S,v])},w=function(n,o){var s=void 0===o?{}:o,f=s.skip,h=void 0!==f&&f,y=s.selectFromResult,m=t.endpoints[e].select,b=g(h?r.hT:n,d,p.endpointDefinitions[e],e),O=(0,u.useRef)(),w=(0,u.useMemo)((function(){return(0,i.createSelector)([m(b),function(e,t){return t},function(e){return b}],v)}),[m,b]),S=(0,u.useMemo)((function(){return y?(0,i.createSelector)([w],y):w}),[w,y]),A=c((function(e){return S(e,O.current)}),a.bN),q=l(),_=w(q.getState(),O.current);return R((function(){O.current=_}),[_]),A};return{useQueryState:w,useQuerySubscription:n,useLazyQuerySubscription:f,useLazyQuery:function(e){var t=f(e),n=t[0],r=t[1],i=w(r,m(y({},e),{skip:r===b})),a=(0,u.useMemo)((function(){return{lastArg:r}}),[r]);return(0,u.useMemo)((function(){return[n,i,a]}),[n,i,a])},useQuery:function(e,t){var i=n(e,t),a=w(e,y({selectFromResult:e===r.hT||(null==t?void 0:t.skip)?void 0:T},t)),o=a.data,s=a.status,c=a.isLoading,l=a.isSuccess,f=a.isError,d=a.error;return(0,u.useDebugValue)({data:o,status:s,isLoading:c,isSuccess:l,isError:f,error:d}),(0,u.useMemo)((function(){return y(y({},a),i)}),[a,i])}}},buildMutationHook:function(e){return function(n){var r=void 0===n?{}:n,l=r.selectFromResult,f=void 0===l?_:l,d=r.fixedCacheKey,p=t.endpoints[e],h=p.select,v=p.initiate,g=s(),b=(0,u.useState)(),O=b[0],w=b[1];(0,u.useEffect)((function(){return function(){(null==O?void 0:O.arg.fixedCacheKey)||null==O||O.reset()}}),[O]);var S=(0,u.useCallback)((function(e){var t=g(v(e,{fixedCacheKey:d}));return w(t),t}),[g,v,d]),A=(O||{}).requestId,q=(0,u.useMemo)((function(){return(0,i.createSelector)([h({fixedCacheKey:d,requestId:null==O?void 0:O.requestId})],f)}),[h,O,f,d]),R=c(q,a.bN),T=null==d?null==O?void 0:O.arg.originalArgs:void 0,j=(0,u.useCallback)((function(){o((function(){O&&w(void 0),d&&g(t.internalActions.removeMutationResult({requestId:A,fixedCacheKey:d}))}))}),[g,d,O,A]),k=R.endpointName,E=R.data,M=R.status,x=R.isLoading,C=R.isSuccess,Q=R.isError,I=R.error;(0,u.useDebugValue)({endpointName:k,data:E,status:M,isLoading:x,isSuccess:C,isError:Q,error:I});var P=(0,u.useMemo)((function(){return m(y({},R),{originalArgs:T,reset:j})}),[R,T,j]);return(0,u.useMemo)((function(){return[S,P]}),[S,P])}},usePrefetch:function(e,n){var r=s(),i=O(n);return(0,u.useCallback)((function(n,u){return r(t.util.prefetch(e,n,y(y({},i),u)))}),[e,r,i])}};function v(e,t,n){if((null==t?void 0:t.endpointName)&&e.isUninitialized){var r=t.endpointName,i=p.endpointDefinitions[r];d({queryArgs:t.originalArgs,endpointDefinition:i,endpointName:r})===d({queryArgs:n,endpointDefinition:i,endpointName:r})&&(t=void 0)}var u=e.isSuccess?e.data:null==t?void 0:t.data;void 0===u&&(u=e.data);var a=void 0!==u,o=e.isLoading,s=!a&&o,c=e.isSuccess||o&&a;return m(y({},e),{data:u,currentData:e.data,isFetching:o,isLoading:s,isSuccess:c})}}({api:e,moduleOptions:{batch:o,useDispatch:c,useSelector:f,useStore:p,unstable__sideEffectsInRender:v},serializeQueryArgs:s,context:n}),h=d.buildQueryHooks,S=d.buildMutationHook,A=d.usePrefetch;return k(l,{usePrefetch:A}),k(n,{batch:o}),{injectEndpoint:function(t,n){if(n.type===w.query){var r=h(t),i=r.useQuery,u=r.useLazyQuery,a=r.useLazyQuerySubscription,o=r.useQueryState,s=r.useQuerySubscription;k(l.endpoints[t],{useQuery:i,useLazyQuery:u,useLazyQuerySubscription:a,useQueryState:o,useQuerySubscription:s}),e["use"+j(t)+"Query"]=i,e["useLazy"+j(t)+"Query"]=u}else if(function(e){return e.type===w.mutation}(n)){var c=S(t);k(l.endpoints[t],{useMutation:c}),e["use"+j(t)+"Mutation"]=c}}}}}}())},93278:function(e,t,n){var r,i,u=this&&this.__generator||function(e,t){var n,r,i,u,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function o(u){return function(o){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,o])}}},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},o=Object.create,s=Object.defineProperty,c=Object.defineProperties,l=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,h=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,m=function(e,t,n){return t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},g=function(e,t){for(var n in t||(t={}))v.call(t,n)&&m(e,n,t[n]);if(p)for(var r=0,i=p(t);r<i.length;r++)y.call(t,n=i[r])&&m(e,n,t[n]);return e},b=function(e,t){return c(e,f(t))},O=function(e){return s(e,"__esModule",{value:!0})},w=function(e,t){var n={};for(var r in e)v.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&p)for(var i=0,u=p(e);i<u.length;i++)t.indexOf(r=u[i])<0&&y.call(e,r)&&(n[r]=e[r]);return n},S=function(e){return function(e,t,n){if(t&&"object"==typeof t||"function"==typeof t)for(var r=function(r){v.call(e,r)||"default"===r||s(e,r,{get:function(){return t[r]},enumerable:!(n=l(t,r))||n.enumerable})},i=0,u=d(t);i<u.length;i++)r(u[i]);return e}(O(s(null!=e?o(h(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)},A=function(e,t,n){return new Promise((function(r,i){var u=function(e){try{o(n.next(e))}catch(e){i(e)}},a=function(e){try{o(n.throw(e))}catch(e){i(e)}},o=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(u,a)};o((n=n.apply(e,t)).next())}))};O(t),function(e,t){for(var n in t)s(e,n,{get:t[n],enumerable:!0})}(t,{QueryStatus:function(){return r},buildCreateApi:function(){return we},copyWithStructuralSharing:function(){return _},coreModule:function(){return Fe},createApi:function(){return Ke},defaultSerializeQueryArgs:function(){return ge},fakeBaseQuery:function(){return Se},fetchBaseQuery:function(){return x},retry:function(){return P},setupListeners:function(){return U},skipSelector:function(){return de},skipToken:function(){return fe}}),(i=r||(r={})).uninitialized="uninitialized",i.pending="pending",i.fulfilled="fulfilled",i.rejected="rejected";var q=function(e){return[].concat.apply([],e)},R=S(n(90536)).isPlainObject;function _(e,t){if(e===t||!(R(e)&&R(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var n=Object.keys(t),r=Object.keys(e),i=n.length===r.length,u=Array.isArray(t)?[]:{},a=0,o=n;a<o.length;a++){var s=o[a];u[s]=_(e[s],t[s]),i&&(i=e[s]===u[s])}return i?e:u}var T=S(n(90536)),j=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fetch.apply(void 0,e)},k=function(e){return e.status>=200&&e.status<=299},E=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function M(e){if(!(0,T.isPlainObject)(e))return e;for(var t=g({},e),n=0,r=Object.entries(t);n<r.length;n++){var i=r[n];void 0===i[1]&&delete t[i[0]]}return t}function x(e){var t=this;void 0===e&&(e={});var n=e.baseUrl,r=e.prepareHeaders,i=void 0===r?function(e){return e}:r,a=e.fetchFn,o=void 0===a?j:a,s=e.paramsSerializer,c=e.isJsonContentType,l=void 0===c?E:c,f=e.jsonContentType,d=void 0===f?"application/json":f,p=e.jsonReplacer,h=e.timeout,v=e.responseHandler,y=e.validateStatus,m=w(e,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return"undefined"==typeof fetch&&o===j&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(e,r){return A(t,null,(function(){var t,a,c,f,S,A,q,R,_,j,E,x,C,Q,I,P,D,N,z,F,K,L,U,W,H,B,V,J,G,Y,$,X,Z,ee,te,ne;return u(this,(function(u){switch(u.label){case 0:return t=r.signal,a=r.getState,c=r.extra,f=r.endpoint,S=r.forced,A=r.type,_=(R="string"==typeof e?{url:e}:e).url,E=void 0===(j=R.headers)?new Headers(m.headers):j,C=void 0===(x=R.params)?void 0:x,I=void 0===(Q=R.responseHandler)?null!=v?v:"json":Q,D=void 0===(P=R.validateStatus)?null!=y?y:k:P,z=void 0===(N=R.timeout)?h:N,F=w(R,["url","headers","params","responseHandler","validateStatus","timeout"]),K=g(b(g({},m),{signal:t}),F),E=new Headers(M(E)),L=K,[4,i(E,{getState:a,extra:c,endpoint:f,forced:S,type:A})];case 1:L.headers=u.sent()||E,U=function(e){return"object"==typeof e&&((0,T.isPlainObject)(e)||Array.isArray(e)||"function"==typeof e.toJSON)},!K.headers.has("content-type")&&U(K.body)&&K.headers.set("content-type",d),U(K.body)&&l(K.headers)&&(K.body=JSON.stringify(K.body,p)),C&&(W=~_.indexOf("?")?"&":"?",H=s?s(C):new URLSearchParams(M(C)),_+=W+H),_=function(e,t){if(!e)return t;if(!t)return e;if(function(e){return new RegExp("(^|:)//").test(e)}(t))return t;var n=e.endsWith("/")||!t.startsWith("?")?"/":"";return""+(e=function(e){return e.replace(/\/$/,"")}(e))+n+function(e){return e.replace(/^\//,"")}(t)}(n,_),B=new Request(_,K),V=B.clone(),q={request:V},G=!1,Y=z&&setTimeout((function(){G=!0,r.abort()}),z),u.label=2;case 2:return u.trys.push([2,4,5,6]),[4,o(B)];case 3:return J=u.sent(),[3,6];case 4:return $=u.sent(),[2,{error:{status:G?"TIMEOUT_ERROR":"FETCH_ERROR",error:String($)},meta:q}];case 5:return Y&&clearTimeout(Y),[7];case 6:X=J.clone(),q.response=X,ee="",u.label=7;case 7:return u.trys.push([7,9,,10]),[4,Promise.all([O(J,I).then((function(e){return Z=e}),(function(e){return te=e})),X.text().then((function(e){return ee=e}),(function(){}))])];case 8:if(u.sent(),te)throw te;return[3,10];case 9:return ne=u.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:ee,error:String(ne)},meta:q}];case 10:return[2,D(J,Z)?{data:Z,meta:q}:{error:{status:J.status,data:Z},meta:q}]}}))}))};function O(e,t){return A(this,null,(function(){var n;return u(this,(function(r){switch(r.label){case 0:return"function"==typeof t?[2,t(e)]:("content-type"===t&&(t=l(e.headers)?"json":"text"),"json"!==t?[3,2]:[4,e.text()]);case 1:return[2,(n=r.sent()).length?JSON.parse(n):null];case 2:return[2,e.text()]}}))}))}}var C=function(e,t){void 0===t&&(t=void 0),this.value=e,this.meta=t};function Q(e,t){return void 0===e&&(e=0),void 0===t&&(t=5),A(this,null,(function(){var n,r;return u(this,(function(i){switch(i.label){case 0:return n=Math.min(e,t),r=~~((Math.random()+.4)*(300<<n)),[4,new Promise((function(e){return setTimeout((function(t){return e(t)}),r)}))];case 1:return i.sent(),[2]}}))}))}var I={},P=Object.assign((function(e,t){return function(n,r,i){return A(void 0,null,(function(){var a,o,s,c,l,f,d;return u(this,(function(u){switch(u.label){case 0:a=[5,(t||I).maxRetries,(i||I).maxRetries].filter((function(e){return void 0!==e})),o=a.slice(-1)[0],s=function(e,t,n){return n.attempt<=o},c=g(g({maxRetries:o,backoff:Q,retryCondition:s},t),i),l=0,u.label=1;case 1:u.label=2;case 2:return u.trys.push([2,4,,6]),[4,e(n,r,i)];case 3:if((f=u.sent()).error)throw new C(f);return[2,f];case 4:if(d=u.sent(),l++,d.throwImmediately){if(d instanceof C)return[2,d.value];throw d}return d instanceof C&&!c.retryCondition(d.value.error,n,{attempt:l,baseQueryApi:r,extraOptions:i})?[2,d.value]:[4,c.backoff(l,c.maxRetries)];case 5:return u.sent(),[3,6];case 6:return[3,1];case 7:return[2]}}))}))}}),{fail:function(e){throw Object.assign(new C({error:e}),{throwImmediately:!0})}}),D=S(n(90536)),N=(0,D.createAction)("__rtkq/focused"),z=(0,D.createAction)("__rtkq/unfocused"),F=(0,D.createAction)("__rtkq/online"),K=(0,D.createAction)("__rtkq/offline"),L=!1;function U(e,t){return t?t(e,{onFocus:N,onFocusLost:z,onOffline:K,onOnline:F}):(n=function(){return e(N())},r=function(){return e(F())},i=function(){return e(K())},u=function(){"visible"===window.document.visibilityState?n():e(z())},L||"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("visibilitychange",u,!1),window.addEventListener("focus",n,!1),window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),L=!0),function(){window.removeEventListener("focus",n),window.removeEventListener("visibilitychange",u),window.removeEventListener("online",r),window.removeEventListener("offline",i),L=!1});var n,r,i,u}var W,H,B=S(n(90536));function V(e){return e.type===W.query}function J(e,t,n,r,i,u){return"function"==typeof e?e(t,n,r,i).map(G).map(u):Array.isArray(e)?e.map(G).map(u):[]}function G(e){return"string"==typeof e?{type:e}:e}(H=W||(W={})).query="query",H.mutation="mutation";var Y=S(n(90536));function $(e){return null!=e}var X=Symbol("forceQueryFn"),Z=function(e){return"function"==typeof e[X]},ee=S(n(90536)),te=S(n(51996)),ne=S(n(90536));function re(e){return e}function ie(e,t,n,r){return J(n[e.meta.arg.endpointName][t],(0,ee.isFulfilled)(e)?e.payload:void 0,(0,ee.isRejectedWithValue)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}var ue=S(n(51996)),ae=S(n(51996));function oe(e,t,n){var r=e[t];r&&n(r)}function se(e){var t;return null!=(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)?t:e.requestId}function ce(e,t,n){var r=e[se(t)];r&&n(r)}var le={},fe=Symbol.for("RTKQ/skipToken"),de=fe,pe={status:r.uninitialized},he=(0,B.createNextState)(pe,(function(){})),ve=(0,B.createNextState)(pe,(function(){})),ye=S(n(90536)),me=WeakMap?new WeakMap:void 0,ge=function(e){var t=e.endpointName,n=e.queryArgs,r="",i=null==me?void 0:me.get(n);if("string"==typeof i)r=i;else{var u=JSON.stringify(n,(function(e,t){return(0,ye.isPlainObject)(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}));(0,ye.isPlainObject)(n)&&(null==me||me.set(n,u)),r=u}return t+"("+r+")"},be=S(n(90536)),Oe=S(n(88027));function we(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=(0,Oe.defaultMemoize)((function(e){var n,r;return null==(r=t.extractRehydrationInfo)?void 0:r.call(t,e,{reducerPath:null!=(n=t.reducerPath)?n:"api"})})),r=b(g({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},t),{extractRehydrationInfo:n,serializeQueryArgs:function(e){var n=ge;if("serializeQueryArgs"in e.endpointDefinition){var r=e.endpointDefinition.serializeQueryArgs;n=function(e){var t=r(e);return"string"==typeof t?t:ge(b(g({},e),{queryArgs:t}))}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:a([],t.tagTypes||[])}),i={endpointDefinitions:{},batch:function(e){e()},apiUid:(0,be.nanoid)(),extractRehydrationInfo:n,hasRehydrationInfo:(0,Oe.defaultMemoize)((function(e){return null!=n(e)}))},u={injectEndpoints:function(e){for(var t=e.endpoints({query:function(e){return b(g({},e),{type:W.query})},mutation:function(e){return b(g({},e),{type:W.mutation})}}),n=0,r=Object.entries(t);n<r.length;n++){var a=r[n],s=a[0],c=a[1];if(e.overrideExisting||!(s in i.endpointDefinitions)){i.endpointDefinitions[s]=c;for(var l=0,f=o;l<f.length;l++)f[l].injectEndpoint(s,c)}}return u},enhanceEndpoints:function(e){var t=e.addTagTypes,n=e.endpoints;if(t)for(var a=0,o=t;a<o.length;a++){var s=o[a];r.tagTypes.includes(s)||r.tagTypes.push(s)}if(n)for(var c=0,l=Object.entries(n);c<l.length;c++){var f=l[c],d=f[0],p=f[1];"function"==typeof p?p(i.endpointDefinitions[d]):Object.assign(i.endpointDefinitions[d]||{},p)}return u}},o=e.map((function(e){return e.init(u,r,i)}));return u.injectEndpoints({endpoints:t.endpoints})}}function Se(){return function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")}}var Ae,qe=S(n(90536)),Re=function(e){var t=e.reducerPath,n=e.api,r=e.context,i=e.internalState,u=n.internalActions,a=u.removeQueryResult,o=u.unsubscribeQueryResult;function s(e){var t=i.currentSubscriptions[e];return!!t&&!function(e){for(var t in e)return!1;return!0}(t)}var c={};function l(e,t,n,i){var u,o=r.endpointDefinitions[t],l=null!=(u=null==o?void 0:o.keepUnusedDataFor)?u:i.keepUnusedDataFor;if(1/0!==l){var f=Math.max(0,Math.min(l,2147482.647));if(!s(e)){var d=c[e];d&&clearTimeout(d),c[e]=setTimeout((function(){s(e)||n.dispatch(a({queryCacheKey:e})),delete c[e]}),1e3*f)}}}return function(e,i,u){var a;if(o.match(e)){var s=i.getState()[t];l(b=e.payload.queryCacheKey,null==(a=s.queries[b])?void 0:a.endpointName,i,s.config)}if(n.util.resetApiState.match(e))for(var f=0,d=Object.entries(c);f<d.length;f++){var p=d[f],h=p[0],v=p[1];v&&clearTimeout(v),delete c[h]}if(r.hasRehydrationInfo(e)){s=i.getState()[t];for(var y=r.extractRehydrationInfo(e).queries,m=0,g=Object.entries(y);m<g.length;m++){var b,O=g[m],w=O[1];l(b=O[0],null==w?void 0:w.endpointName,i,s.config)}}}},_e=S(n(90536)),Te=function(e){var t=e.reducerPath,n=e.context,i=e.context.endpointDefinitions,u=e.mutationThunk,a=e.api,o=e.assertTagType,s=e.refetchQuery,c=a.internalActions.removeQueryResult,l=(0,_e.isAnyOf)((0,_e.isFulfilled)(u),(0,_e.isRejectedWithValue)(u));function f(e,i){var u=i.getState(),o=u[t],l=a.util.selectInvalidatedBy(u,e);n.batch((function(){for(var e,t=0,n=Array.from(l.values());t<n.length;t++){var u=n[t].queryCacheKey,a=o.queries[u],f=null!=(e=o.subscriptions[u])?e:{};a&&(0===Object.keys(f).length?i.dispatch(c({queryCacheKey:u})):a.status!==r.uninitialized&&i.dispatch(s(a,u)))}}))}return function(e,t){l(e)&&f(ie(e,"invalidatesTags",i,o),t),a.util.invalidateTags.match(e)&&f(J(e.payload,void 0,void 0,void 0,void 0,o),t)}},je=function(e){var t=e.reducerPath,n=e.queryThunk,i=e.api,u=e.refetchQuery,a=e.internalState,o={};function s(e,n){var i=e.queryCacheKey,s=n.getState()[t].queries[i];if(s&&s.status!==r.uninitialized){var c=f(a.currentSubscriptions[i]);if(Number.isFinite(c)){var l=o[i];(null==l?void 0:l.timeout)&&(clearTimeout(l.timeout),l.timeout=void 0);var d=Date.now()+c,p=o[i]={nextPollTimestamp:d,pollingInterval:c,timeout:setTimeout((function(){p.timeout=void 0,n.dispatch(u(s,i))}),c)}}}}function c(e,n){var i=e.queryCacheKey,u=n.getState()[t].queries[i];if(u&&u.status!==r.uninitialized){var c=f(a.currentSubscriptions[i]);if(Number.isFinite(c)){var d=o[i],p=Date.now()+c;(!d||p<d.nextPollTimestamp)&&s({queryCacheKey:i},n)}else l(i)}}function l(e){var t=o[e];(null==t?void 0:t.timeout)&&clearTimeout(t.timeout),delete o[e]}function f(e){void 0===e&&(e={});var t=Number.POSITIVE_INFINITY;for(var n in e)e[n].pollingInterval&&(t=Math.min(e[n].pollingInterval,t));return t}return function(e,t){(i.internalActions.updateSubscriptionOptions.match(e)||i.internalActions.unsubscribeQueryResult.match(e))&&c(e.payload,t),(n.pending.match(e)||n.rejected.match(e)&&e.meta.condition)&&c(e.meta.arg,t),(n.fulfilled.match(e)||n.rejected.match(e)&&!e.meta.condition)&&s(e.meta.arg,t),i.util.resetApiState.match(e)&&function(){for(var e=0,t=Object.keys(o);e<t.length;e++)l(t[e])}()}},ke=S(n(90536)),Ee=new Error("Promise never resolved before cacheEntryRemoved."),Me=function(e){var t=e.api,n=e.reducerPath,r=e.context,i=e.queryThunk,u=e.mutationThunk,a=(0,ke.isAsyncThunkAction)(i),o=(0,ke.isAsyncThunkAction)(u),s=(0,ke.isFulfilled)(i,u),c={};function l(e,n,i,u,a){var o=r.endpointDefinitions[e],s=null==o?void 0:o.onCacheEntryAdded;if(s){var l={},f=new Promise((function(e){l.cacheEntryRemoved=e})),d=Promise.race([new Promise((function(e){l.valueResolved=e})),f.then((function(){throw Ee}))]);d.catch((function(){})),c[i]=l;var p=t.endpoints[e].select(o.type===W.query?n:i),h=u.dispatch((function(e,t,n){return n})),v=b(g({},u),{getCacheEntry:function(){return p(u.getState())},requestId:a,extra:h,updateCachedData:o.type===W.query?function(r){return u.dispatch(t.util.updateQueryData(e,n,r))}:void 0,cacheDataLoaded:d,cacheEntryRemoved:f}),y=s(n,v);Promise.resolve(y).catch((function(e){if(e!==Ee)throw e}))}}return function(e,r,f){var d=function(e){return a(e)?e.meta.arg.queryCacheKey:o(e)?e.meta.requestId:t.internalActions.removeQueryResult.match(e)?e.payload.queryCacheKey:t.internalActions.removeMutationResult.match(e)?se(e.payload):""}(e);if(i.pending.match(e)){var p=f[n].queries[d],h=r.getState()[n].queries[d];!p&&h&&l(e.meta.arg.endpointName,e.meta.arg.originalArgs,d,r,e.meta.requestId)}else if(u.pending.match(e))(h=r.getState()[n].mutations[d])&&l(e.meta.arg.endpointName,e.meta.arg.originalArgs,d,r,e.meta.requestId);else if(s(e))(null==(g=c[d])?void 0:g.valueResolved)&&(g.valueResolved({data:e.payload,meta:e.meta.baseQueryMeta}),delete g.valueResolved);else if(t.internalActions.removeQueryResult.match(e)||t.internalActions.removeMutationResult.match(e))(g=c[d])&&(delete c[d],g.cacheEntryRemoved());else if(t.util.resetApiState.match(e))for(var v=0,y=Object.entries(c);v<y.length;v++){var m=y[v],g=m[1];delete c[m[0]],g.cacheEntryRemoved()}}},xe=S(n(90536)),Ce=function(e){var t=e.api,n=e.context,r=e.queryThunk,i=e.mutationThunk,u=(0,xe.isPending)(r,i),a=(0,xe.isRejected)(r,i),o=(0,xe.isFulfilled)(r,i),s={};return function(e,r){var i,c,l;if(u(e)){var f=e.meta,d=f.requestId,p=f.arg,h=p.endpointName,v=p.originalArgs,y=n.endpointDefinitions[h],m=null==y?void 0:y.onQueryStarted;if(m){var O={},w=new Promise((function(e,t){O.resolve=e,O.reject=t}));w.catch((function(){})),s[d]=O;var S=t.endpoints[h].select(y.type===W.query?v:d),A=r.dispatch((function(e,t,n){return n})),q=b(g({},r),{getCacheEntry:function(){return S(r.getState())},requestId:d,extra:A,updateCachedData:y.type===W.query?function(e){return r.dispatch(t.util.updateQueryData(h,v,e))}:void 0,queryFulfilled:w});m(v,q)}}else if(o(e)){var R=e.meta,_=R.baseQueryMeta;null==(i=s[d=R.requestId])||i.resolve({data:e.payload,meta:_}),delete s[d]}else if(a(e)){var T=e.meta;_=T.baseQueryMeta,null==(l=s[d=T.requestId])||l.reject({error:null!=(c=e.payload)?c:e.error,isUnhandledError:!T.rejectedWithValue,meta:_}),delete s[d]}}},Qe=function(e){var t=e.api,n=e.context.apiUid;return function(e,r){t.util.resetApiState.match(e)&&r.dispatch(t.internalActions.middlewareRegistered(n))}},Ie=S(n(51996)),Pe="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:globalThis):function(e){return(Ae||(Ae=Promise.resolve())).then(e).catch((function(e){return setTimeout((function(){throw e}),0)}))};function De(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,a([e],t))}var Ne=S(n(51996)),ze=Symbol(),Fe=function(){return{name:ze,init:function(e,t,n){var i=t.baseQuery,o=t.reducerPath,s=t.serializeQueryArgs,c=t.keepUnusedDataFor,l=t.refetchOnMountOrArgChange,f=t.refetchOnFocus,d=t.refetchOnReconnect;(0,Ne.enablePatches)();var p=function(e){return e};Object.assign(e,{reducerPath:o,endpoints:{},internalActions:{onOnline:F,onOffline:K,onFocus:N,onFocusLost:z},util:{}});var h=function(e){var t=this,n=e.reducerPath,i=e.baseQuery,a=e.context.endpointDefinitions,o=e.serializeQueryArgs,s=e.api,c=function(e,n){return A(t,[e,n],(function(e,t){var n,r,o,s,c,f,d,p,h,v,y,m,g,b=t.signal,O=t.abort,w=t.rejectWithValue,S=t.fulfillWithValue,A=t.dispatch,q=t.getState,R=t.extra;return u(this,(function(t){switch(t.label){case 0:n=a[e.endpointName],t.label=1;case 1:return t.trys.push([1,8,,13]),r=re,o=void 0,s={signal:b,abort:O,dispatch:A,getState:q,extra:R,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?l(e,q()):void 0},(c="query"===e.type?e[X]:void 0)?(o=c(),[3,6]):[3,2];case 2:return n.query?[4,i(n.query(e.originalArgs),s,n.extraOptions)]:[3,4];case 3:return o=t.sent(),n.transformResponse&&(r=n.transformResponse),[3,6];case 4:return[4,n.queryFn(e.originalArgs,s,n.extraOptions,(function(e){return i(e,s,n.extraOptions)}))];case 5:o=t.sent(),t.label=6;case 6:if(o.error)throw new C(o.error,o.meta);return f=S,[4,r(o.data,o.meta,e.originalArgs)];case 7:return[2,f.apply(void 0,[t.sent(),(m={fulfilledTimeStamp:Date.now(),baseQueryMeta:o.meta},m[ne.SHOULD_AUTOBATCH]=!0,m)])];case 8:if(d=t.sent(),!((p=d)instanceof C))return[3,12];h=re,n.query&&n.transformErrorResponse&&(h=n.transformErrorResponse),t.label=9;case 9:return t.trys.push([9,11,,12]),v=w,[4,h(p.value,p.meta,e.originalArgs)];case 10:return[2,v.apply(void 0,[t.sent(),(g={baseQueryMeta:p.meta},g[ne.SHOULD_AUTOBATCH]=!0,g)])];case 11:return y=t.sent(),p=y,[3,12];case 12:throw console.error(p),p;case 13:return[2]}}))}))};function l(e,t){var r,i,u,a,o=null==(i=null==(r=t[n])?void 0:r.queries)?void 0:i[e.queryCacheKey],s=null==(u=t[n])?void 0:u.config.refetchOnMountOrArgChange,c=null==o?void 0:o.fulfilledTimeStamp,l=null!=(a=e.forceRefetch)?a:e.subscribe&&s;return!!l&&(!0===l||(Number(new Date)-Number(c))/1e3>=l)}var f=(0,ne.createAsyncThunk)(n+"/executeQuery",c,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[ne.SHOULD_AUTOBATCH]=!0,e},condition:function(e,t){var r,i,u,o=(0,t.getState)(),s=null==(i=null==(r=o[n])?void 0:r.queries)?void 0:i[e.queryCacheKey],c=null==s?void 0:s.fulfilledTimeStamp,f=e.originalArgs,d=null==s?void 0:s.originalArgs,p=a[e.endpointName];return!(!Z(e)&&("pending"===(null==s?void 0:s.status)||!l(e,o)&&(!V(p)||!(null==(u=null==p?void 0:p.forceRefetch)?void 0:u.call(p,{currentArg:f,previousArg:d,endpointState:s,state:o})))&&c))},dispatchConditionRejection:!0}),d=(0,ne.createAsyncThunk)(n+"/executeMutation",c,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[ne.SHOULD_AUTOBATCH]=!0,e}});function p(e){return function(t){var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:f,mutationThunk:d,prefetch:function(e,t,n){return function(r,i){var u=function(e){return"force"in e}(n)&&n.force,a=function(e){return"ifOlderThan"in e}(n)&&n.ifOlderThan,o=function(n){return void 0===n&&(n=!0),s.endpoints[e].initiate(t,{forceRefetch:n})},c=s.endpoints[e].select(t)(i());if(u)r(o());else if(a){var l=null==c?void 0:c.fulfilledTimeStamp;if(!l)return void r(o());(Number(new Date)-Number(new Date(l)))/1e3>=a&&r(o())}else r(o(!1))}},updateQueryData:function(e,t,n){return function(i,u){var a,o,c=s.endpoints[e].select(t)(u()),l={patches:[],inversePatches:[],undo:function(){return i(s.util.patchQueryData(e,t,l.inversePatches))}};if(c.status===r.uninitialized)return l;if("data"in c)if((0,te.isDraftable)(c.data)){var f=(0,te.produceWithPatches)(c.data,n),d=f[2];(a=l.patches).push.apply(a,f[1]),(o=l.inversePatches).push.apply(o,d)}else{var p=n(c.data);l.patches.push({op:"replace",path:[],value:p}),l.inversePatches.push({op:"replace",path:[],value:c.data})}return i(s.util.patchQueryData(e,t,l.patches)),l}},upsertQueryData:function(e,t,n){return function(r){var i;return r(s.endpoints[e].initiate(t,((i={subscribe:!1,forceRefetch:!0})[X]=function(){return{data:n}},i)))}},patchQueryData:function(e,t,n){return function(r){r(s.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:t,endpointDefinition:a[e],endpointName:e}),patches:n}))}},buildMatchThunkActions:function(e,t){return{matchPending:(0,ee.isAllOf)((0,ee.isPending)(e),p(t)),matchFulfilled:(0,ee.isAllOf)((0,ee.isFulfilled)(e),p(t)),matchRejected:(0,ee.isAllOf)((0,ee.isRejected)(e),p(t))}}}}({baseQuery:i,reducerPath:o,context:n,api:e,serializeQueryArgs:s}),v=h.queryThunk,y=h.mutationThunk,m=h.patchQueryData,O=h.updateQueryData,w=h.upsertQueryData,S=h.prefetch,R=h.buildMatchThunkActions,T=function(e){var t=e.reducerPath,n=e.queryThunk,i=e.mutationThunk,u=e.context,a=u.endpointDefinitions,o=u.apiUid,s=u.extractRehydrationInfo,c=u.hasRehydrationInfo,l=e.assertTagType,f=e.config,d=(0,Y.createAction)(t+"/resetApiState"),p=(0,Y.createSlice)({name:t+"/queries",initialState:le,reducers:{removeQueryResult:{reducer:function(e,t){delete e[t.payload.queryCacheKey]},prepare:(0,Y.prepareAutoBatched)()},queryResultPatched:function(e,t){var n=t.payload,r=n.patches;oe(e,n.queryCacheKey,(function(e){e.data=(0,ae.applyPatches)(e.data,r.concat())}))}},extraReducers:function(e){e.addCase(n.pending,(function(e,t){var n,i=t.meta,u=t.meta.arg,a=Z(u);(u.subscribe||a)&&(null!=e[n=u.queryCacheKey]||(e[n]={status:r.uninitialized,endpointName:u.endpointName})),oe(e,u.queryCacheKey,(function(e){e.status=r.pending,e.requestId=a&&e.requestId?e.requestId:i.requestId,void 0!==u.originalArgs&&(e.originalArgs=u.originalArgs),e.startedTimeStamp=i.startedTimeStamp}))})).addCase(n.fulfilled,(function(e,t){var n=t.meta,i=t.payload;oe(e,n.arg.queryCacheKey,(function(e){var t;if(e.requestId===n.requestId||Z(n.arg)){var u=a[n.arg.endpointName].merge;if(e.status=r.fulfilled,u)if(void 0!==e.data){var o=n.fulfilledTimeStamp,s=n.arg,c=n.baseQueryMeta,l=n.requestId,f=(0,Y.createNextState)(e.data,(function(e){return u(e,i,{arg:s.originalArgs,baseQueryMeta:c,fulfilledTimeStamp:o,requestId:l})}));e.data=f}else e.data=i;else e.data=null==(t=a[n.arg.endpointName].structuralSharing)||t?_((0,ue.isDraft)(e.data)?(0,ae.original)(e.data):e.data,i):i;delete e.error,e.fulfilledTimeStamp=n.fulfilledTimeStamp}}))})).addCase(n.rejected,(function(e,t){var n=t.meta,i=n.condition,u=n.requestId,a=t.error,o=t.payload;oe(e,n.arg.queryCacheKey,(function(e){if(i);else{if(e.requestId!==u)return;e.status=r.rejected,e.error=null!=o?o:a}}))})).addMatcher(c,(function(e,t){for(var n=s(t).queries,i=0,u=Object.entries(n);i<u.length;i++){var a=u[i],o=a[1];(null==o?void 0:o.status)!==r.fulfilled&&(null==o?void 0:o.status)!==r.rejected||(e[a[0]]=o)}}))}}),h=(0,Y.createSlice)({name:t+"/mutations",initialState:le,reducers:{removeMutationResult:{reducer:function(e,t){var n=se(t.payload);n in e&&delete e[n]},prepare:(0,Y.prepareAutoBatched)()}},extraReducers:function(e){e.addCase(i.pending,(function(e,t){var n=t.meta,i=n.requestId,u=n.arg,a=n.startedTimeStamp;u.track&&(e[se(t.meta)]={requestId:i,status:r.pending,endpointName:u.endpointName,startedTimeStamp:a})})).addCase(i.fulfilled,(function(e,t){var n=t.payload,i=t.meta;i.arg.track&&ce(e,i,(function(e){e.requestId===i.requestId&&(e.status=r.fulfilled,e.data=n,e.fulfilledTimeStamp=i.fulfilledTimeStamp)}))})).addCase(i.rejected,(function(e,t){var n=t.payload,i=t.error,u=t.meta;u.arg.track&&ce(e,u,(function(e){e.requestId===u.requestId&&(e.status=r.rejected,e.error=null!=n?n:i)}))})).addMatcher(c,(function(e,t){for(var n=s(t).mutations,i=0,u=Object.entries(n);i<u.length;i++){var a=u[i],o=a[0],c=a[1];(null==c?void 0:c.status)!==r.fulfilled&&(null==c?void 0:c.status)!==r.rejected||o===(null==c?void 0:c.requestId)||(e[o]=c)}}))}}),v=(0,Y.createSlice)({name:t+"/invalidation",initialState:le,reducers:{},extraReducers:function(e){e.addCase(p.actions.removeQueryResult,(function(e,t){for(var n=t.payload.queryCacheKey,r=0,i=Object.values(e);r<i.length;r++)for(var u=0,a=Object.values(i[r]);u<a.length;u++){var o=a[u],s=o.indexOf(n);-1!==s&&o.splice(s,1)}})).addMatcher(c,(function(e,t){for(var n,r,i,u,a=s(t).provided,o=0,c=Object.entries(a);o<c.length;o++)for(var l=c[o],f=l[0],d=0,p=Object.entries(l[1]);d<p.length;d++)for(var h=p[d],v=h[0],y=h[1],m=null!=(u=(r=null!=(n=e[f])?n:e[f]={})[i=v||"__internal_without_id"])?u:r[i]=[],g=0,b=y;g<b.length;g++){var O=b[g];m.includes(O)||m.push(O)}})).addMatcher((0,Y.isAnyOf)((0,Y.isFulfilled)(n),(0,Y.isRejectedWithValue)(n)),(function(e,t){for(var n,r,i,u,o=ie(t,"providesTags",a,l),s=t.meta.arg.queryCacheKey,c=0,f=Object.values(e);c<f.length;c++)for(var d=0,p=Object.values(f[c]);d<p.length;d++){var h=p[d],v=h.indexOf(s);-1!==v&&h.splice(v,1)}for(var y=0,m=o;y<m.length;y++){var g=m[y],b=g.type,O=g.id,w=null!=(u=(r=null!=(n=e[b])?n:e[b]={})[i=O||"__internal_without_id"])?u:r[i]=[];w.includes(s)||w.push(s)}}))}}),y=(0,Y.createSlice)({name:t+"/subscriptions",initialState:le,reducers:{updateSubscriptionOptions:function(e,t){},unsubscribeQueryResult:function(e,t){},internal_probeSubscription:function(e,t){}}}),m=(0,Y.createSlice)({name:t+"/internalSubscriptions",initialState:le,reducers:{subscriptionsUpdated:{reducer:function(e,t){return(0,ae.applyPatches)(e,t.payload)},prepare:(0,Y.prepareAutoBatched)()}}}),O=(0,Y.createSlice)({name:t+"/config",initialState:g({online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"==typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1},f),reducers:{middlewareRegistered:function(e,t){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t.payload||"conflict"}},extraReducers:function(e){e.addCase(F,(function(e){e.online=!0})).addCase(K,(function(e){e.online=!1})).addCase(N,(function(e){e.focused=!0})).addCase(z,(function(e){e.focused=!1})).addMatcher(c,(function(e){return g({},e)}))}}),w=(0,Y.combineReducers)({queries:p.reducer,mutations:h.reducer,provided:v.reducer,subscriptions:m.reducer,config:O.reducer});return{reducer:function(e,t){return w(d.match(t)?void 0:e,t)},actions:b(g(g(g(g(g({},O.actions),p.actions),y.actions),m.actions),h.actions),{unsubscribeMutationResult:h.actions.removeMutationResult,resetApiState:d})}}({context:n,queryThunk:v,mutationThunk:y,reducerPath:o,assertTagType:p,config:{refetchOnFocus:f,refetchOnReconnect:d,refetchOnMountOrArgChange:l,keepUnusedDataFor:c,reducerPath:o}}),j=T.reducer,k=T.actions;De(e.util,{patchQueryData:m,updateQueryData:O,upsertQueryData:w,prefetch:S,resetApiState:k.resetApiState}),De(e.internalActions,k);var E=function(e){var t=e.reducerPath,n=e.queryThunk,i=e.api,u=e.context,a=u.apiUid,o={invalidateTags:(0,qe.createAction)(t+"/invalidateTags")},s=[Qe,Re,Te,je,Me,Ce];return{middleware:function(n){var o=!1,l=b(g({},e),{internalState:{currentSubscriptions:{}},refetchQuery:c}),f=s.map((function(e){return e(l)})),d=function(e){var t=e.api,n=e.queryThunk,r=e.internalState,i=t.reducerPath+"/subscriptions",u=null,a=!1,o=t.internalActions,s=o.updateSubscriptionOptions,c=o.unsubscribeQueryResult;return function(e,o){var l,f;if(u||(u=JSON.parse(JSON.stringify(r.currentSubscriptions))),t.util.resetApiState.match(e))return u=r.currentSubscriptions={},[!0,!1];if(t.internalActions.internal_probeSubscription.match(e)){var d=e.payload;return[!1,!!(null==(l=r.currentSubscriptions[d.queryCacheKey])?void 0:l[d.requestId])]}var p=function(e,r){var i,u,a,o,l,f,d,p,h;if(s.match(r)){var v=r.payload,y=v.queryCacheKey,m=v.requestId;return(null==(i=null==e?void 0:e[y])?void 0:i[m])&&(e[y][m]=v.options),!0}if(c.match(r)){var g=r.payload;return m=g.requestId,e[y=g.queryCacheKey]&&delete e[y][m],!0}if(t.internalActions.removeQueryResult.match(r))return delete e[r.payload.queryCacheKey],!0;if(n.pending.match(r)){var b=r.meta;if(m=b.requestId,(S=b.arg).subscribe)return(O=null!=(a=e[u=S.queryCacheKey])?a:e[u]={})[m]=null!=(l=null!=(o=S.subscriptionOptions)?o:O[m])?l:{},!0}if(n.rejected.match(r)){var O,w=r.meta,S=w.arg;if(m=w.requestId,w.condition&&S.subscribe)return(O=null!=(d=e[f=S.queryCacheKey])?d:e[f]={})[m]=null!=(h=null!=(p=S.subscriptionOptions)?p:O[m])?h:{},!0}return!1}(r.currentSubscriptions,e);if(p){a||(Pe((function(){var e=JSON.parse(JSON.stringify(r.currentSubscriptions)),n=(0,Ie.produceWithPatches)(u,(function(){return e}));o.next(t.internalActions.subscriptionsUpdated(n[1])),u=e,a=!1})),a=!0);var h=!!(null==(f=e.type)?void 0:f.startsWith(i)),v=n.rejected.match(e)&&e.meta.condition&&!!e.meta.arg.subscribe;return[!h&&!v,!1]}return[!0,!1]}}(l),p=function(e){var t=e.reducerPath,n=e.context,i=e.refetchQuery,u=e.internalState,a=e.api.internalActions.removeQueryResult;function o(e,o){var s=e.getState()[t],c=s.queries,l=u.currentSubscriptions;n.batch((function(){for(var t=0,n=Object.keys(l);t<n.length;t++){var u=n[t],f=c[u],d=l[u];d&&f&&(Object.values(d).some((function(e){return!0===e[o]}))||Object.values(d).every((function(e){return void 0===e[o]}))&&s.config[o])&&(0===Object.keys(d).length?e.dispatch(a({queryCacheKey:u})):f.status!==r.uninitialized&&e.dispatch(i(f,u)))}}))}return function(e,t){N.match(e)&&o(t,"refetchOnFocus"),F.match(e)&&o(t,"refetchOnReconnect")}}(l);return function(e){return function(r){o||(o=!0,n.dispatch(i.internalActions.middlewareRegistered(a)));var s,c=b(g({},n),{next:e}),l=n.getState(),h=d(r,c,l),v=h[1];if(s=h[0]?e(r):v,n.getState()[t]&&(p(r,c,l),function(e){return!!e&&"string"==typeof e.type&&e.type.startsWith(t+"/")}(r)||u.hasRehydrationInfo(r)))for(var y=0,m=f;y<m.length;y++)(0,m[y])(r,c,l);return s}}},actions:o};function c(e,t,r){return void 0===r&&(r={}),n(g({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t},r))}}({reducerPath:o,context:n,queryThunk:v,mutationThunk:y,api:e,assertTagType:p}),M=E.middleware;De(e.util,E.actions),De(e,{reducer:j,middleware:M});var x=function(e){var t=e.serializeQueryArgs,n=e.reducerPath,i=function(e){return he},u=function(e){return ve};return{buildQuerySelector:function(e,n){return function(r){var u=t({queryArgs:r,endpointDefinition:n,endpointName:e});return(0,B.createSelector)(r===fe?i:function(e){var t,n,r;return null!=(r=null==(n=null==(t=o(e))?void 0:t.queries)?void 0:n[u])?r:he},a)}},buildMutationSelector:function(){return function(e){var t,n;return n="object"==typeof e?null!=(t=se(e))?t:fe:e,(0,B.createSelector)(n===fe?u:function(e){var t,r,i;return null!=(i=null==(r=null==(t=o(e))?void 0:t.mutations)?void 0:r[n])?i:ve},a)}},selectInvalidatedBy:function(e,t){for(var r,i=e[n],u=new Set,a=0,o=t.map(G);a<o.length;a++){var s=o[a],c=i.provided[s.type];if(c)for(var l=0,f=null!=(r=void 0!==s.id?c[s.id]:q(Object.values(c)))?r:[];l<f.length;l++)u.add(f[l])}return q(Array.from(u.values()).map((function(e){var t=i.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))}};function a(e){return g(g({},e),{status:t=e.status,isUninitialized:t===r.uninitialized,isLoading:t===r.pending,isSuccess:t===r.fulfilled,isError:t===r.rejected});var t}function o(e){return e[n]}}({serializeQueryArgs:s,reducerPath:o}),Q=x.buildQuerySelector,I=x.buildMutationSelector;De(e.util,{selectInvalidatedBy:x.selectInvalidatedBy});var P=function(e){var t=e.serializeQueryArgs,n=e.queryThunk,r=e.mutationThunk,i=e.api,o=e.context,s=new Map,c=new Map,l=i.internalActions,f=l.unsubscribeQueryResult,d=l.removeMutationResult,p=l.updateSubscriptionOptions;return{buildInitiateQuery:function(e,r){var a=function(o,c){var l=void 0===c?{}:c,d=l.subscribe,h=void 0===d||d,v=l.forceRefetch,y=l.subscriptionOptions,m=l[X];return function(c,l){var d,g,b=t({queryArgs:o,endpointDefinition:r,endpointName:e}),O=n(((d={type:"query",subscribe:h,forceRefetch:v,subscriptionOptions:y,endpointName:e,originalArgs:o,queryCacheKey:b})[X]=m,d)),w=i.endpoints[e].select(o),S=c(O),q=w(l()),R=S.requestId,_=S.abort,T=q.requestId!==R,j=null==(g=s.get(c))?void 0:g[b],k=function(){return w(l())},E=Object.assign(m?S.then(k):T&&!j?Promise.resolve(q):Promise.all([j,S]).then(k),{arg:o,requestId:R,subscriptionOptions:y,queryCacheKey:b,abort:_,unwrap:function(){return A(this,null,(function(){var e;return u(this,(function(t){switch(t.label){case 0:return[4,E];case 1:if((e=t.sent()).isError)throw e.error;return[2,e.data]}}))}))},refetch:function(){return c(a(o,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){h&&c(f({queryCacheKey:b,requestId:R}))},updateSubscriptionOptions:function(t){E.subscriptionOptions=t,c(p({endpointName:e,requestId:R,queryCacheKey:b,options:t}))}});if(!j&&!T&&!m){var M=s.get(c)||{};M[b]=E,s.set(c,M),E.then((function(){delete M[b],Object.keys(M).length||s.delete(c)}))}return E}};return a},buildInitiateMutation:function(e){return function(t,n){var i=void 0===n?{}:n,u=i.track,a=void 0===u||u,o=i.fixedCacheKey;return function(n,i){var u=r({type:"mutation",endpointName:e,originalArgs:t,track:a,fixedCacheKey:o}),s=n(u),l=s.requestId,f=s.abort,p=s.unwrap,h=s.unwrap().then((function(e){return{data:e}})).catch((function(e){return{error:e}})),v=function(){n(d({requestId:l,fixedCacheKey:o}))},y=Object.assign(h,{arg:s.arg,requestId:l,abort:f,unwrap:p,unsubscribe:v,reset:v}),m=c.get(n)||{};return c.set(n,m),m[l]=y,y.then((function(){delete m[l],Object.keys(m).length||c.delete(n)})),o&&(m[o]=y,y.then((function(){m[o]===y&&(delete m[o],Object.keys(m).length||c.delete(n))}))),y}}},getRunningQueryThunk:function(e,n){return function(r){var i,u=t({queryArgs:n,endpointDefinition:o.endpointDefinitions[e],endpointName:e});return null==(i=s.get(r))?void 0:i[u]}},getRunningMutationThunk:function(e,t){return function(e){var n;return null==(n=c.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return function(e){return Object.values(s.get(e)||{}).filter($)}},getRunningMutationsThunk:function(){return function(e){return Object.values(c.get(e)||{}).filter($)}},getRunningOperationPromises:function(){var e=function(e){return Array.from(e.values()).flatMap((function(e){return e?Object.values(e):[]}))};return a(a([],e(s)),e(c)).filter($)},removalWarning:function(){throw new Error("This method had to be removed due to a conceptual bug in RTK.\n Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.\n See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.")}}}({queryThunk:v,mutationThunk:y,api:e,serializeQueryArgs:s,context:n}),D=P.buildInitiateQuery,L=P.buildInitiateMutation;return De(e.util,{getRunningOperationPromises:P.getRunningOperationPromises,getRunningOperationPromise:P.removalWarning,getRunningMutationThunk:P.getRunningMutationThunk,getRunningMutationsThunk:P.getRunningMutationsThunk,getRunningQueryThunk:P.getRunningQueryThunk,getRunningQueriesThunk:P.getRunningQueriesThunk}),{name:ze,injectEndpoint:function(t,n){var r,i=e;null!=(r=i.endpoints)[t]||(r[t]={}),V(n)?De(i.endpoints[t],{name:t,select:Q(t,n),initiate:D(t,n)},R(v,t)):n.type===W.mutation&&De(i.endpoints[t],{name:t,select:I(),initiate:L(t)},R(y,t))}}}}},Ke=we(Fe())},88744:(e,t,n)=>{"use strict";n.d(t,{Ig:()=>i,UI:()=>u});var r="NOT_FOUND";var i=function(e,t){return e===t};function u(e,t){var n="object"===typeof t?t:{equalityCheck:t},u=n.equalityCheck,a=void 0===u?i:u,o=n.maxSize,s=void 0===o?1:o,c=n.resultEqualityCheck,l=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}(a),f=1===s?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:r},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(l):function(e,t){var n=[];function i(e){var i=n.findIndex((function(n){return t(e,n.key)}));if(i>-1){var u=n[i];return i>0&&(n.splice(i,1),n.unshift(u)),u.value}return r}return{get:i,put:function(t,u){i(t)===r&&(n.unshift({key:t,value:u}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(s,l);function d(){var t=f.get(arguments);if(t===r){if(t=e.apply(null,arguments),c){var n=f.getEntries().find((function(e){return c(e.value,t)}));n&&(t=n.value)}f.put(arguments,t)}return t}return d.clearCache=function(){return f.clear()},d}},88027:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createSelector:()=>u,createSelectorCreator:()=>i,createStructuredSelector:()=>a,defaultEqualityCheck:()=>r.Ig,defaultMemoize:()=>r.UI});var r=n(88744);function i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var u,a=0,o={memoizeOptions:void 0},s=r.pop();if("object"===typeof s&&(o=s,s=r.pop()),"function"!==typeof s)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof s+"]");var c=o.memoizeOptions,l=void 0===c?n:c,f=Array.isArray(l)?l:[l],d=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),p=e.apply(void 0,[function(){return a++,s.apply(null,arguments)}].concat(f)),h=e((function(){for(var e=[],t=d.length,n=0;n<t;n++)e.push(d[n].apply(null,arguments));return u=p.apply(null,e)}));return Object.assign(h,{resultFunc:s,memoizedResultFunc:p,dependencies:d,lastResult:function(){return u},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),h}}var u=i(r.UI),a=function(e,t){if(void 0===t&&(t=u),"object"!==typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e),r=t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t,r){return e[n[r]]=t,e}),{})}));return r}},35641:(e,t,n)=>{"use strict";n.d(t,{A:()=>q});var r=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,u="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),a="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(u):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var o=["top","right","bottom","left","width","height","size","weight"],s="undefined"!==typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function u(){n&&(n=!1,e()),r&&s()}function o(){a(u)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;o.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||u},d=g(0,0,0,0);function p(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=f(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],u=e["padding-"+i];t[i]=p(u)}return t}(r),u=i.left+i.right,a=i.top+i.bottom,o=p(r.width),s=p(r.height);if("border-box"===r.boxSizing&&(Math.round(o+u)!==t&&(o-=h(r,"left","right")+u),Math.round(s+a)!==n&&(s-=h(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var c=Math.round(o+u)-t,l=Math.round(s+a)-n;1!==Math.abs(c)&&(o-=c),1!==Math.abs(l)&&(s-=l)}return g(i.left,i.top,o,s)}var y="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"===typeof e.getBBox};function m(e){return i?y(e)?function(e){var t=e.getBBox();return g(0,0,t.width,t.height)}(e):v(e):d}function g(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),O=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,u="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(u.prototype);return l(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}(t);l(this,{target:e,contentRect:n})},w=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new O(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),S="undefined"!==typeof WeakMap?new WeakMap:new r,A=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new w(t,n,this);S.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){A.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}}));const q="undefined"!==typeof u.ResizeObserver?u.ResizeObserver:A}}]);
|