@emailmaker/emailmaker 1.0.35 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +1 -1
  2. package/asset-manifest.json +48 -44
  3. package/emailmaker-esm.js +1 -1
  4. package/emailmaker.d.ts +2 -1
  5. package/emailmaker.js +1 -1
  6. package/iframe/429.js +1 -0
  7. package/iframe/css/sandbox.css +12 -6
  8. package/iframe/{iframe-eblock.5edb895b1b04e652428a.html → iframe-eblock.73bcbc874fc3021cba78.html} +1 -1
  9. package/iframe/{iframe.5edb895b1b04e652428a.html → iframe.73bcbc874fc3021cba78.html} +1 -1
  10. package/iframe/js/cssbeautify.js +1 -1
  11. package/iframe/sandbox-eblock.js +1 -1
  12. package/iframe/sandbox.js +1 -1
  13. package/package.json +1 -1
  14. package/plugin.html +1 -1
  15. package/plugin_blocks_test.html +1 -1
  16. package/plugin_default.html +1 -1
  17. package/plugin_s.html +1 -1
  18. package/static/css/2208.56ea0abb.css +1 -0
  19. package/static/css/{5571.e9720eda.css → 5571.504f05c9.css} +1 -1
  20. package/static/css/8458.31d6cfe0.css +0 -0
  21. package/static/js/1399.f981f0f4.js +1 -0
  22. package/static/js/18.7d3e3257.js +1 -0
  23. package/static/js/2208.115694e9.js +1 -0
  24. package/static/js/2575.b05c7813.js +1 -0
  25. package/static/js/2896.ce4941ab.js +2 -0
  26. package/static/js/3710.193d2d5a.chunk.js +1 -0
  27. package/static/js/4035.1e8d8ad5.js +1 -0
  28. package/static/js/4877.5b496b72.js +1 -0
  29. package/static/js/5552.c5a9c252.js +1 -0
  30. package/static/js/5571.30a43d6b.js +1 -0
  31. package/static/js/5927.791b2edc.chunk.js +1 -0
  32. package/static/js/7291.e2615c74.js +1 -0
  33. package/static/js/78.8f294da6.js +1 -0
  34. package/static/js/8236.cc02400e.js +2 -0
  35. package/static/js/8458.657f471c.js +1 -0
  36. package/static/js/8483.7b71c205.js +1 -0
  37. package/static/js/8689.63fa1dc3.chunk.js +1 -0
  38. package/static/js/946.9512007a.js +2 -0
  39. package/static/js/{2582.d77da683.js.LICENSE.txt → 946.9512007a.js.LICENSE.txt} +16 -0
  40. package/static/js/emailmaker_core.21ced917.js +1 -0
  41. package/static/js/mergeTags/locale1.490fa827.chunk.js +1 -0
  42. package/static/media/fb.ff103843.png +0 -0
  43. package/static/media/ig.47a89992.png +0 -0
  44. package/static/media/tg.10f00452.png +0 -0
  45. package/static/media/tw.823a7736.png +0 -0
  46. package/static/media/vk.fe41df91.png +0 -0
  47. package/static/media/yd.c40d05dd.png +0 -0
  48. package/static/media/yt.4ac57e55.png +0 -0
  49. package/translations.pot +290 -246
  50. package/static/css/2256.d0db3199.css +0 -1
  51. package/static/css/698.9a48c3be.css +0 -1
  52. package/static/js/1399.cb6eb2fa.js +0 -1
  53. package/static/js/1792.4d853bea.js +0 -1
  54. package/static/js/1795.8ada4a9a.js +0 -1
  55. package/static/js/2256.ae8285fc.js +0 -1
  56. package/static/js/2582.d77da683.js +0 -2
  57. package/static/js/2896.fac80e3c.js +0 -2
  58. package/static/js/4877.b90d1691.js +0 -1
  59. package/static/js/515.16219a24.js +0 -2
  60. package/static/js/515.16219a24.js.LICENSE.txt +0 -6
  61. package/static/js/5571.b22ca480.js +0 -1
  62. package/static/js/5927.d93485f1.chunk.js +0 -1
  63. package/static/js/6567.e70469eb.js +0 -1
  64. package/static/js/698.6e8cee9e.js +0 -1
  65. package/static/js/7471.ae85b39d.js +0 -1
  66. package/static/js/8179.acf16a1a.chunk.js +0 -1
  67. package/static/js/8236.bdefaa6b.js +0 -2
  68. package/static/js/8689.e2d021af.chunk.js +0 -1
  69. package/static/js/8738.3ba7b2e7.js +0 -2
  70. package/static/js/8738.3ba7b2e7.js.LICENSE.txt +0 -87
  71. package/static/js/9019.7efd13af.js +0 -2
  72. package/static/js/9019.7efd13af.js.LICENSE.txt +0 -96
  73. package/static/js/9649.ff98467b.js +0 -1
  74. package/static/js/9907.0d22d89d.js +0 -1
  75. package/static/js/emailmaker_core.ea017ac4.js +0 -1
  76. package/static/js/mergeTags/locale1.3448e6cb.chunk.js +0 -1
  77. /package/static/css/{1795.3b54559d.css → 5552.3b54559d.css} +0 -0
  78. /package/static/js/{2896.fac80e3c.js.LICENSE.txt → 2896.ce4941ab.js.LICENSE.txt} +0 -0
  79. /package/static/js/{8236.bdefaa6b.js.LICENSE.txt → 8236.cc02400e.js.LICENSE.txt} +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,2 @@
1
+ /*! For license information please see 8236.cc02400e.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[8236],{86524:(e,t,n)=>{(0,n(92810).createContext)(null)},68582:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var s;n.d(t,{AO:()=>u,Gh:()=>k,HS:()=>O,Rr:()=>c,V1:()=>w,pX:()=>U,pb:()=>x,rc:()=>s,sC:()=>i,tH:()=>D,ue:()=>h}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(s||(s={}));function i(e){void 0===e&&(e={});let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:i=!1}=e;t=n.map(((e,t)=>d(e,"string"===typeof e?null:e.state,0===t?"default":void 0)));let c=p(null==r?t.length-1:r),l=s.Pop,h=null;function p(e){return Math.min(Math.max(e,0),t.length-1)}function f(){return t[c]}function d(e,n,r){void 0===n&&(n=null);let s=a(t?f().pathname:"/",e,n,r);return o("/"===s.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),s}return{get index(){return c},get action(){return l},get location(){return f()},createHref:e=>"string"===typeof e?e:u(e),push(e,n){l=s.Push;let r=d(e,n);c+=1,t.splice(c,t.length,r),i&&h&&h({action:l,location:r})},replace(e,n){l=s.Replace;let r=d(e,n);t[c]=r,i&&h&&h({action:l,location:r})},go(e){l=s.Pop,c=p(c+e),h&&h({action:l,location:f()})},listen:e=>(h=e,()=>{h=null})}}function o(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function a(e,t,n,s){return void 0===n&&(n=null),r({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?c(t):t,{state:n,key:t&&t.key||s||Math.random().toString(36).substr(2,8)})}function u(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function c(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var l;function h(e,t,n){void 0===n&&(n="/");let r=x(("string"===typeof t?c(t):t).pathname||"/",n);if(null==r)return null;let s=p(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(s);let i=null;for(let o=0;null==i&&o<s.length;++o)i=b(s[o],r);return i}function p(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=""),e.forEach(((e,s)=>{let i={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:s,route:e};i.relativePath.startsWith("/")&&(w(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let o=O([r,i.relativePath]),a=n.concat(i);e.children&&e.children.length>0&&(w(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),p(e.children,t,a,o)),(null!=e.path||e.index)&&t.push({path:o,score:S(o,e.index),routesMeta:a})})),t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(l||(l={}));const f=/^:\w+$/,d=3,_=2,v=1,g=10,m=-2,y=e=>"*"===e;function S(e,t){let n=e.split("/"),r=n.length;return n.some(y)&&(r+=m),t&&(r+=_),n.filter((e=>!y(e))).reduce(((e,t)=>e+(f.test(t)?d:""===t?v:g)),r)}function b(e,t){let{routesMeta:n}=e,r={},s="/",i=[];for(let o=0;o<n.length;++o){let e=n[o],a=o===n.length-1,u="/"===s?t:t.slice(s.length)||"/",c=E({path:e.relativePath,caseSensitive:e.caseSensitive,end:a},u);if(!c)return null;Object.assign(r,c.params);let l=e.route;i.push({params:r,pathname:O([s,c.pathname]),pathnameBase:P(O([s,c.pathnameBase])),route:l}),"/"!==c.pathnameBase&&(s=O([s,c.pathnameBase]))}return i}function E(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);R("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((e,t)=>(r.push(t),"([^\\/]+)")));e.endsWith("*")?(r.push("*"),s+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":""!==e&&"/"!==e&&(s+="(?:(?=\\/|$))");let i=new RegExp(s,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=a[n]||"";o=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return R(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(a[n]||"",t),e}),{}),pathname:i,pathnameBase:o,pattern:e}}function x(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function w(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function R(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function C(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function k(e,t,n,s){let i;void 0===s&&(s=!1),"string"===typeof e?i=c(e):(i=r({},e),w(!i.pathname||!i.pathname.includes("?"),C("?","pathname","search",i)),w(!i.pathname||!i.pathname.includes("#"),C("#","pathname","hash",i)),w(!i.search||!i.search.includes("#"),C("#","search","hash",i)));let o,a=""===e||""===i.pathname,u=a?"/":i.pathname;if(s||null==u)o=n;else{let e=t.length-1;if(u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:s=""}="string"===typeof e?c(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:T(r),hash:j(s)}}(i,o),h=u&&"/"!==u&&u.endsWith("/"),p=(a||"."===u)&&n.endsWith("/");return l.pathname.endsWith("/")||!h&&!p||(l.pathname+="/"),l}const O=e=>e.join("/").replace(/\/\/+/g,"/"),P=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),T=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",j=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class D extends Error{}class N{constructor(e,t,n){this.status=e,this.statusText=t||"",this.data=n}}function U(e){return e instanceof N}},29993:(e,t,n)=>{n.d(t,{wd:()=>s});var r=n(46909);function s(e,t){var n="string"===typeof t?t:void 0,s="string"!==typeof t?{captureContext:t}:void 0;return(0,r.BF)().captureMessage(e,n,s)}},46909:(e,t,n)=>{n.d(t,{BF:()=>_});var r=n(69002),s=n(53107),i=n(10686),o=n(27833),a=n(42062),u=n(42090),c=n(70318),l=4,h=100;class p{__init(){this._stack=[{}]}constructor(e,t=new u.H,n=l){this._version=n,p.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=u.H.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:(0,r.eJ)(),s=new Error("Sentry syntheticException");return this._withClient(((r,i)=>{r.captureException(e,{originalException:e,syntheticException:s,...t,event_id:n},i)})),n}captureMessage(e,t,n){var s=this._lastEventId=n&&n.event_id?n.event_id:(0,r.eJ)(),i=new Error(e);return this._withClient(((r,o)=>{r.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:s},o)})),s}captureEvent(e,t){var n=t&&t.event_id?t.event_id:(0,r.eJ)();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient(((r,s)=>{r.captureEvent(e,{...t,event_id:n},s)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=h}=r.getOptions&&r.getOptions()||{};if(!(a<=0)){var u={timestamp:(0,s.lu)(),...e},c=o?(0,i.pq)((()=>o(u,t))):u;null!==c&&n.addBreadcrumb(c,a)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=d(this);try{e(this)}finally{d(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&(0,c.Vu)(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:s}=n&&n.getOptions()||{};var i=(0,o.V)();const{userAgent:a}=i.navigator||{};var u=(0,c.fj)({release:r,environment:s,...t&&{user:t.getUser()},...a&&{userAgent:a},...e});if(t){var l=t.getSession&&t.getSession();l&&"ok"===l.status&&(0,c.qO)(l,{status:"exited"}),this.endSession(),t.setSession(u)}return u}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=f().__SENTRY__;if(n&&n.extensions&&"function"===typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function f(){var e=(0,o.V)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function d(e){var t=f(),n=g(t);return m(t,e),n}function _(){var e=f();return v(e)&&!g(e).isOlderThan(l)||m(e,new p),(0,a.wD)()?function(e){try{var t=f().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return g(e);if(!v(n)||g(n).isOlderThan(l)){var r=g(e).getStackTop();m(n,new p(r.client,u.H.clone(r.scope)))}return g(n)}catch(s){return g(e)}}(e):g(e)}function v(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function g(e){return(0,o.B)("hub",(()=>new p),e)}function m(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},42090:(e,t,n)=>{n.d(t,{H:()=>l});var r=n(83190),s=n(53107),i=n(45688),o=n(10686),a=n(69002),u=n(27833),c=n(70318);class l{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new l;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,c.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"===typeof e){var t=e(this);return t instanceof l?t:this}return e instanceof l?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,r.Qd)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"===typeof t?t:100;if(n<=0)return this;var r={timestamp:(0,s.lu)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...h(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,s=0){return new i.T2(((i,a)=>{var u=e[s];if(null===t||"function"!==typeof u)i(t);else{var c=u({...t},n);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.id&&null===c&&o.vF.log(`Event processor "${u.id}" dropped event`),(0,r.Qg)(c)?c.then((t=>this._notifyEventProcessors(e,t,n,s+1).then(i))).then(null,a):this._notifyEventProcessors(e,c,n,s+1).then(i).then(null,a)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,a.k9)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function h(){return(0,u.B)("globalEventProcessors",(()=>[]))}},83190:(e,t,n)=>{n.d(t,{Qd:()=>i,Qg:()=>o});var r=Object.prototype.toString;function s(e,t){return r.call(e)===`[object ${t}]`}function i(e){return s(e,"Object")}function o(e){return Boolean(e&&e.then&&"function"===typeof e.then)}},10686:(e,t,n)=>{n.d(t,{pq:()=>o,vF:()=>u});var r=n(27833),s=(0,r.V)(),i=["debug","info","warn","error","log","assert","trace"];function o(e){var t=(0,r.V)();if(!("console"in t))return e();var n=t.console,s={};i.forEach((e=>{var r=n[e]&&n[e].__sentry_original__;e in t.console&&r&&(s[e]=n[e],n[e]=r)}));try{return e()}finally{Object.keys(s).forEach((e=>{n[e]=s[e]}))}}function a(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?i.forEach((n=>{t[n]=(...t)=>{e&&o((()=>{s.console[n](`Sentry Logger [${n}]:`,...t)}))}})):i.forEach((e=>{t[e]=()=>{}})),t}let u;u="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,r.B)("logger",a):a()},69002:(e,t,n)=>{n.d(t,{eJ:()=>s,k9:()=>i});var r=n(27833);function s(){var e=(0,r.V)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function i(e){return Array.isArray(e)?e:[e]}},42062:(e,t,n)=>{n.d(t,{fj:()=>o,wD:()=>i});var r=n(62571);e=n.hmd(e);var s=n(29876);function i(){return!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof s?s:0)}function o(e,t){return e.require(t)}},27445:(e,t,n)=>{n.d(t,{Ce:()=>s});var r=n(83190);function s(e){return i(e,new Map)}function i(e,t){if((0,r.Qd)(e)){if(void 0!==(o=t.get(e)))return o;var n={};for(var s of(t.set(e,n),Object.keys(e)))"undefined"!==typeof e[s]&&(n[s]=i(e[s],t));return n}if(Array.isArray(e)){var o;if(void 0!==(o=t.get(e)))return o;n=[];return t.set(e,n),e.forEach((e=>{n.push(i(e,t))})),n}return e}},45688:(e,t,n)=>{n.d(t,{T2:()=>i});var r,s=n(83190);!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(r||(r={}));class i{__init(){this._state=r.PENDING}__init2(){this._handlers=[]}constructor(e){i.prototype.__init.call(this),i.prototype.__init2.call(this),i.prototype.__init3.call(this),i.prototype.__init4.call(this),i.prototype.__init5.call(this),i.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new i(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(s){r(s)}else n(t)},e=>{if(t)try{n(t(e))}catch(s){r(s)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new i(((t,n)=>{let r,s;return this.then((t=>{s=!1,r=t,e&&e()}),(t=>{s=!0,r=t,e&&e()})).then((()=>{s?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,s.Qg)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==r.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}},53107:(e,t,n)=>{n.d(t,{lu:()=>u,zf:()=>c});var r=n(27833),s=n(42062);e=n.hmd(e);var i={nowSeconds:()=>Date.now()/1e3};var o=(0,s.wD)()?function(){try{return(0,s.fj)(e,"perf_hooks").performance}catch(t){return}}():function(){const{performance:e}=(0,r.V)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),a=void 0===o?i:{nowSeconds:()=>(o.timeOrigin+o.now())/1e3},u=i.nowSeconds.bind(i),c=a.nowSeconds.bind(a);let l;(()=>{const{performance:e}=(0,r.V)();if(e&&e.now){var t=36e5,n=e.now(),s=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-s):t,o=i<t,a=e.timing&&e.timing.navigationStart,u="number"===typeof a?Math.abs(a+n-s):t;return o||u<t?i<=u?(l="timeOrigin",e.timeOrigin):(l="navigationStart",a):(l="dateNow",s)}l="none"})()},68415:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(18897);function s(e){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function i(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}function o(e,t){var n,o;(0,r.A)(1,arguments);var a=function(e){(0,r.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===s(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e);if(isNaN(a.getTime()))throw new RangeError("Invalid time value");var u=String(null!==(n=null===t||void 0===t?void 0:t.format)&&void 0!==n?n:"extended"),c=String(null!==(o=null===t||void 0===t?void 0:t.representation)&&void 0!==o?o:"complete");if("extended"!==u&&"basic"!==u)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==c&&"time"!==c&&"complete"!==c)throw new RangeError("representation must be 'date', 'time', or 'complete'");var l="",h="",p="extended"===u?"-":"",f="extended"===u?":":"";if("time"!==c){var d=i(a.getDate(),2),_=i(a.getMonth()+1,2),v=i(a.getFullYear(),4);l="".concat(v).concat(p).concat(_).concat(p).concat(d)}if("date"!==c){var g=a.getTimezoneOffset();if(0!==g){var m=Math.abs(g),y=i(Math.floor(m/60),2),S=i(m%60,2);h="".concat(g<0?"+":"-").concat(y,":").concat(S)}else h="Z";var b=""===l?"":"T",E=[i(a.getHours(),2),i(a.getMinutes(),2),i(a.getSeconds(),2)].join(f);l="".concat(l).concat(b).concat(E).concat(h)}return l}},89780:(e,t,n)=>{n.d(t,{w:()=>o});var r=n(13272),s=n(9613);function i(e){void 0===e&&(e=r.t);var t=e===r.t?s.P:(0,s.N)(e);return function(){return t().dispatch}}var o=i()},21811:(e,t,n)=>{n.d(t,{n:()=>i});var r=n(92810),s=n(13272);function i(){return(0,r.useContext)(s.t)}},20471:(e,t,n)=>{n.d(t,{d:()=>l});var r=n(92810),s=n(21811),i=n(32471),o=n(8229),a=n(13272),u=function(e,t){return e===t};function c(e){void 0===e&&(e=a.t);var t=e===a.t?s.n:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=u);var s=t(),a=function(e,t,n,s){var a,u=(0,r.useReducer)((function(e){return e+1}),0)[1],c=(0,r.useMemo)((function(){return(0,i.K)(n,s)}),[n,s]),l=(0,r.useRef)(),h=(0,r.useRef)(),p=(0,r.useRef)(),f=(0,r.useRef)(),d=n.getState();try{if(e!==h.current||d!==p.current||l.current){var _=e(d);a=void 0!==f.current&&t(_,f.current)?f.current:_}else a=f.current}catch(v){throw l.current&&(v.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),v}return(0,o.E)((function(){h.current=e,p.current=d,f.current=a,l.current=void 0})),(0,o.E)((function(){function e(){try{var e=n.getState();if(e===p.current)return;var r=h.current(e);if(t(r,f.current))return;f.current=r,p.current=e}catch(v){l.current=v}u()}return c.onStateChange=e,c.trySubscribe(),e(),function(){return c.tryUnsubscribe()}}),[n,c]),a}(e,n,s.store,s.subscription);return(0,r.useDebugValue)(a),a}}var l=c()},94822:(e,t,n)=>{n.d(t,{N_:()=>l,ok:()=>f});var r=n(92810),s=n(64617),i=n(68582);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e,t){if(null==e)return{};var n,r,s={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(s[n]=e[n]);return s}function u(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}const c=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];const l=r.forwardRef((function(e,t){let{onClick:n,relative:u,reloadDocument:l,replace:h,state:p,target:f,to:d,preventScrollReset:_}=e,v=a(e,c),g=(0,s.$P)(d,{relative:u}),m=function(e,t){let{target:n,replace:o,state:a,preventScrollReset:u,relative:c}=void 0===t?{}:t,l=(0,s.Zp)(),h=(0,s.zy)(),p=(0,s.x$)(e,{relative:c});return r.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==o?o:(0,i.AO)(h)===(0,i.AO)(p);l(e,{replace:n,state:a,preventScrollReset:u,relative:c})}}),[h,l,p,o,a,n,e,u,c])}(d,{replace:h,state:p,target:f,preventScrollReset:_,relative:u});return r.createElement("a",o({},v,{href:g,onClick:l?n:function(e){n&&n(e),e.defaultPrevented||m(e)},ref:t,target:f}))}));var h,p;function f(e){let t=r.useRef(u(e)),n=(0,s.zy)(),i=r.useMemo((()=>function(e,t){let n=u(e);for(let r of t.keys())n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}));return n}(n.search,t.current)),[n.search]),o=(0,s.Zp)(),a=r.useCallback(((e,t)=>{const n=u("function"===typeof e?e(i):e);o("?"+n,t)}),[o,i]);return[i,a]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(h||(h={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(p||(p={}))},64617:(e,t,n)=>{var r;n.d(t,{$P:()=>S,BV:()=>A,C5:()=>B,KC:()=>C,Zp:()=>w,fS:()=>$,g:()=>k,qh:()=>I,sv:()=>M,x$:()=>O,zy:()=>E});var s=n(68582),i=n(92810);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}const a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},{useState:u,useEffect:c,useLayoutEffect:l,useDebugValue:h}=r||(r=n.t(i,2));function p(e){const t=e.getSnapshot,n=e.value;try{const e=t();return!a(n,e)}catch(r){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement,(r||(r=n.t(i,2))).useSyncExternalStore;const f=i.createContext(null);const d=i.createContext(null);const _=i.createContext(null);const v=i.createContext(null);const g=i.createContext(null);const m=i.createContext({outlet:null,matches:[]});const y=i.createContext(null);function S(e,t){let{relative:n}=void 0===t?{}:t;b()||(0,s.V1)(!1);let{basename:r,navigator:o}=i.useContext(v),{hash:a,pathname:u,search:c}=O(e,{relative:n}),l=u;return"/"!==r&&(l="/"===u?r:(0,s.HS)([r,u])),o.createHref({pathname:l,search:c,hash:a})}function b(){return null!=i.useContext(g)}function E(){return b()||(0,s.V1)(!1),i.useContext(g).location}function x(e){return e.filter(((t,n)=>0===n||!t.route.index&&t.pathnameBase!==e[n-1].pathnameBase))}function w(){b()||(0,s.V1)(!1);let{basename:e,navigator:t}=i.useContext(v),{matches:n}=i.useContext(m),{pathname:r}=E(),o=JSON.stringify(x(n).map((e=>e.pathnameBase))),a=i.useRef(!1);return i.useEffect((()=>{a.current=!0})),i.useCallback((function(n,i){if(void 0===i&&(i={}),!a.current)return;if("number"===typeof n)return void t.go(n);let u=(0,s.Gh)(n,JSON.parse(o),r,"path"===i.relative);"/"!==e&&(u.pathname="/"===u.pathname?e:(0,s.HS)([e,u.pathname])),(i.replace?t.replace:t.push)(u,i.state,i)}),[e,t,o,r])}const R=i.createContext(null);function C(){return i.useContext(R)}function k(){let{matches:e}=i.useContext(m),t=e[e.length-1];return t?t.params:{}}function O(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=i.useContext(m),{pathname:o}=E(),a=JSON.stringify(x(r).map((e=>e.pathnameBase)));return i.useMemo((()=>(0,s.Gh)(e,JSON.parse(a),o,"path"===n)),[e,a,o,n])}function P(){let e=function(){var e;let t=i.useContext(y),n=L(U.UseRouteError),r=i.useContext(m),o=r.matches[r.matches.length-1];if(t)return t;return r||(0,s.V1)(!1),!o.route.id&&(0,s.V1)(!1),null==(e=n.errors)?void 0:e[o.route.id]}(),t=(0,s.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unhandled Thrown Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:o},n):null,i.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own\xa0",i.createElement("code",{style:a},"errorElement")," props on\xa0",i.createElement("code",{style:a},"<Route>")))}class T extends i.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?i.createElement(y.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function j(e){let{routeContext:t,match:n,children:r}=e,s=i.useContext(f);return s&&n.route.errorElement&&(s._deepestRenderedBoundaryId=n.route.id),i.createElement(m.Provider,{value:t},r)}function D(e,t,n){if(void 0===t&&(t=[]),null==e){if(null==n||!n.errors)return null;e=n.matches}let r=e,o=null==n?void 0:n.errors;if(null!=o){let e=r.findIndex((e=>e.route.id&&(null==o?void 0:o[e.route.id])));e>=0||(0,s.V1)(!1),r=r.slice(0,Math.min(r.length,e+1))}return r.reduceRight(((e,s,a)=>{let u=s.route.id?null==o?void 0:o[s.route.id]:null,c=n?s.route.errorElement||i.createElement(P,null):null,l=()=>i.createElement(j,{match:s,routeContext:{outlet:e,matches:t.concat(r.slice(0,a+1))}},u?c:void 0!==s.route.element?s.route.element:e);return n&&(s.route.errorElement||0===a)?i.createElement(T,{location:n.location,component:c,error:u,children:l()}):l()}),null)}var N,U;function L(e){let t=i.useContext(_);return t||(0,s.V1)(!1),t}!function(e){e.UseRevalidator="useRevalidator"}(N||(N={})),function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(U||(U={}));function $(e){let{basename:t,children:n,initialEntries:r,initialIndex:o}=e,a=i.useRef();null==a.current&&(a.current=(0,s.sC)({initialEntries:r,initialIndex:o,v5Compat:!0}));let u=a.current,[c,l]=i.useState({action:u.action,location:u.location});return i.useLayoutEffect((()=>u.listen(l)),[u]),i.createElement(V,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u})}function B(e){let{to:t,replace:n,state:r,relative:o}=e;b()||(0,s.V1)(!1);let a=i.useContext(_),u=w();return i.useEffect((()=>{a&&"idle"!==a.navigation.state||u(t,{replace:n,state:r,relative:o})})),null}function M(e){return function(e){let t=i.useContext(m).outlet;return t?i.createElement(R.Provider,{value:e},t):t}(e.context)}function I(e){(0,s.V1)(!1)}function V(e){let{basename:t="/",children:n=null,location:r,navigationType:o=s.rc.Pop,navigator:a,static:u=!1}=e;b()&&(0,s.V1)(!1);let c=t.replace(/^\/*/,"/"),l=i.useMemo((()=>({basename:c,navigator:a,static:u})),[c,a,u]);"string"===typeof r&&(r=(0,s.Rr)(r));let{pathname:h="/",search:p="",hash:f="",state:d=null,key:_="default"}=r,m=i.useMemo((()=>{let e=(0,s.pb)(h,c);return null==e?null:{pathname:e,search:p,hash:f,state:d,key:_}}),[c,h,p,f,d,_]);return null==m?null:i.createElement(v.Provider,{value:l},i.createElement(g.Provider,{children:n,value:{location:m,navigationType:o}}))}function A(e){let{children:t,location:n}=e,r=i.useContext(d);return function(e,t){b()||(0,s.V1)(!1);let n=i.useContext(_),{matches:r}=i.useContext(m),a=r[r.length-1],u=a?a.params:{},c=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let l,h=E();if(t){var p;let e="string"===typeof t?(0,s.Rr)(t):t;"/"===c||(null==(p=e.pathname)?void 0:p.startsWith(c))||(0,s.V1)(!1),l=e}else l=h;let f=l.pathname||"/",d="/"===c?f:f.slice(c.length)||"/",v=(0,s.ue)(e,{pathname:d}),y=D(v&&v.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:(0,s.HS)([c,e.pathname]),pathnameBase:"/"===e.pathnameBase?c:(0,s.HS)([c,e.pathnameBase])}))),r,n||void 0);return t?i.createElement(g.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:s.rc.Pop}},y):y}(r&&!t?r.router.routes:F(t),n)}var q;!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(q||(q={}));new Promise((()=>{}));i.Component;function F(e,t){void 0===t&&(t=[]);let n=[];return i.Children.forEach(e,((e,r)=>{if(!i.isValidElement(e))return;if(e.type===i.Fragment)return void n.push.apply(n,F(e.props.children,t));e.type!==I&&(0,s.V1)(!1),e.props.index&&e.props.children&&(0,s.V1)(!1);let o=[...t,r],a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,hasErrorBoundary:null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle};e.props.children&&(a.children=F(e.props.children,o)),n.push(a)})),n}},15269:(e,t)=>{var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||d}function m(){}function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||d}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=g.prototype;var S=y.prototype=new m;S.constructor=y,_(S,g.prototype),S.isPureReactComponent=!0;var b=Array.isArray,E=Object.prototype.hasOwnProperty,x={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,r){var s,i={},o=null,a=null;if(null!=t)for(s in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)E.call(t,s)&&!w.hasOwnProperty(s)&&(i[s]=t[s]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(s in u=e.defaultProps)void 0===i[s]&&(i[s]=u[s]);return{$$typeof:n,type:e,key:o,ref:a,props:i,_owner:x.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var k=/\/+/g;function O(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,s,i,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var u=!1;if(null===e)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return o=o(u=e),e=""===i?"."+O(u,0):i,b(o)?(s="",null!=e&&(s=e.replace(k,"$&/")+"/"),P(o,t,s,"",(function(e){return e}))):null!=o&&(C(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,s+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(k,"$&/")+"/")+e)),t.push(o)),1;if(u=0,i=""===i?".":i+":",b(e))for(var c=0;c<e.length;c++){var l=i+O(a=e[c],c);u+=P(a,t,s,l,o)}else if(l=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof l)for(e=l.call(e),c=0;!(a=e.next()).done;)u+=P(a=a.value,t,s,l=i+O(a,c++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function T(e,t,n){if(null==e)return e;var r=[],s=0;return P(e,r,"","",(function(e){return t.call(n,e,s++)})),r}function j(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},N={transition:null},U={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:N,ReactCurrentOwner:x};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=s,t.Profiler=o,t.PureComponent=y,t.StrictMode=i,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=_({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,a=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)E.call(t,c)&&!w.hasOwnProperty(c)&&(s[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)s.children=r;else if(1<c){u=Array(c);for(var l=0;l<c;l++)u[l]=arguments[l+2];s.children=u}return{$$typeof:n,type:e.type,key:i,ref:o,props:s,_owner:a}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.2.0"},92810:(e,t,n)=>{e.exports=n(15269)}}]);
@@ -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([[8483],{81154:(e,t,n)=>{n.d(t,{A:()=>o});const o=[n.p+"static/media/tg.10f00452.png",n.p+"static/media/yt.4ac57e55.png",n.p+"static/media/vk.fe41df91.png",n.p+"static/media/yd.c40d05dd.png",n.p+"static/media/tw.823a7736.png",n.p+"static/media/ig.47a89992.png",n.p+"static/media/fb.ff103843.png"]},56991:(e,t,n)=>{n.d(t,{bD:()=>s,Mu:()=>a,cM:()=>d,rD:()=>c});var o=n(45934),r=n(18398),i=n(71210);function s(e,t){if(e!==t){if(!e||!t||"object"!==typeof e||"object"!==typeof t)return!1;const n=t instanceof Array;if(e instanceof Array){if(!n)return!1;const o=e.length;if(t.length!==o)return!1;for(let n=0;n<o;n++)if(!s(e[n],t[n]))return!1}else if(n)return!1;const o=Object.keys(e),r=Object.keys(t),i=o.length;if(i!==r.length)return!1;for(let a=0;a<i;a++){const n=o[a];if(!t.hasOwnProperty(n)||!s(e[n],t[n]))return!1}}return!0}function a(e){if(e){const{type:t,project:n,isNew:o,id:r}=e;return`/projects/${n}/${"block"===t?"blocks":"emails"}/${o?`new?template=${r}`:r}`}return""}function c(){return(0,o.d4)(r.zg)}function d(e,t,n){return null!==e&&void 0!==e&&e.length?e.map(((e,o)=>function(e){return e.hasOwnProperty("children")}(e)?{key:(0,i.l)(),value:e.value,label:e.label,children:d(e.children,t,n),type:e.type}:{key:(0,i.l)(),label:e.label,value:e.value,onClick:t=>{n(e.value,t.domEvent)}})):void 0}},33288:(e,t,n)=>{n.d(t,{di:()=>s});var o=n(95152),r=n(41664),i=n(23580);const s={getContainer:i.My,createIdentifier:r.Q,reducer:i.Ff,reducerPath:i.IP,getInstance:function(e,t){return(e instanceof o.m?e:(0,i.My)(e)).getInstance(t)},getInstanceAsync:function(e,t){return(e instanceof o.m?e:(0,i.My)(e)).getInstanceAsync(t)},getOrCreateInstance:function(e,t,n){return(e instanceof o.m?e:(0,i.My)(e)).getOrCreateInstance(t,n)},inject:function(e,t,n,o){return(0,i.My)(e).inject(t,n)},addService:function(e,t,n){return(0,i.My)(e).addService(t,n)},getServices:function(e,t){return(0,i.My)(e).getServices(t)},useInject:i.lg,useInstance:i.Nj,useInstanceAsync:i.rl,useServices:i.A$}},41664:(e,t,n)=>{n.d(t,{Q:()=>r});var o=n(71210);function r(e=(0,o.l)()){return e}},82375:(e,t,n)=>{n.d(t,{Q:()=>o});const o=new(n(95152).m)},30725:(e,t,n)=>{n.d(t,{p:()=>r});var o=n(23580);function r(e){return(t,n,r,i)=>{const s=(0,o.My)(n);return e(s)(t,n,r,i)}}},77509:(e,t,n)=>{n.d(t,{j:()=>o});class o{constructor(e=[]){this._inner=e,this._isDisposed=!1}addDisposable(e){return this._inner.push(e),e instanceof o&&e.addDispose((()=>{this.removeDisposable(e)})),e}addDispose(e){this.addDisposable({dispose:e})}removeDisposable(e){const t=this._inner.indexOf(e);t>=0&&this._inner.splice(t,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const e of[...this._inner])e.dispose()}}}},45695:(e,t,n)=>{n.d(t,{K9:()=>f,QC:()=>l,XW:()=>u,ur:()=>d});var o=n(19378),r=n(33288),i=n(45934),s=n(41664),a=n(92810);const c=(0,s.Q)("MESSAGE_SERVICE");function d(){const e=l();return(0,a.useCallback)((t=>{e.setTarget(t instanceof Element?t.contentWindow:t)}),[e])}function l(){const e=(0,i.Pj)();return(0,a.useMemo)((()=>function(e){return r.di.getOrCreateInstance(e,c,(()=>new o.bg))}(e)),[e])}function u(){const e=l();return(0,a.useCallback)((function(t){e.send(t)}),[e])}function f(){const e=l();return(0,a.useCallback)((function(t,n){e.send(t,n)}),[e])}},47381:(e,t,n)=>{n.d(t,{d:()=>o});const o=(e,t)=>{const n=()=>{try{const t={...e,appLabel:"blocks_app"};window.dataLayer&&"function"===typeof window.dataLayer.push?window.dataLayer.push(t):console.log("Attempting to add to the dataLayer:",e)}catch(t){console.error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 GTM:",t)}};t?setTimeout(n,t):n()}},71210:(e,t,n)=>{function o(){var e=(new Date).getTime(),t="undefined"!==typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var o=16*Math.random();return e>0?(o=(e+o)%16|0,e=Math.floor(e/16)):(o=(t+o)%16|0,t=Math.floor(t/16)),("x"===n?o:3&o|8).toString(16)}))}n.d(t,{l:()=>o})},14004:(e,t,n)=>{n.d(t,{i:()=>r});var o=n(44141);const r=async(e,t,n)=>{const r=(0,o.KU)(t).baseUrl.replaceAll(/[\\/]$/g,""),i=(0,o.hI)({baseUrl:r});let s=await i(e,t,n);if(s.error){let e=s.error;if("function"===typeof e.json)try{e=await e.json()}catch{e=await e,console.log("error",e)}return{error:e}}return s}},89698:(e,t,n)=>{n.d(t,{V:()=>d});var o=n(85163),r=n(45695),i=n(23287),s=n(92810),a=n(45934),c=n(86286);function d(){const e=(0,r.QC)(),t=(0,a.d4)(c.C1),{__:n}=(0,i.s9)(),[d,l]=(0,s.useState)("");(0,s.useEffect)((()=>{if(t.locale!==d){const r=(0,o.QV)(n),i=e.onInit((()=>{e.send(o.Ru.SANDBOX_TRANSLATIONS,{name:t.locale,data:r}),l(t.locale)}));return()=>i.dispose()}}),[t.locale,d,l,n,e]),(0,s.useEffect)((()=>{const t=e.addListener(o.Ru.RELOAD,(()=>{l("")}));return()=>t.dispose()}),[l,e])}},37969:(e,t,n)=>{n.d(t,{y:()=>c});var o=n(85163),r=n(45695),i=n(92810),s=n(70082);const a=Symbol("isIframeEvent");function c({children:e}){const[t,n]=(0,i.useState)(),[c,d]=(0,i.useState)(),[l,u]=(0,i.useState)(!1),f=(0,r.QC)();return(0,i.useEffect)((()=>{if(t){const e=f.addListener(o.Ru.APPLICATION_IFRAME_DRAG_EVENT,(e=>{if("drageleave"!==e.type&&"dragenter"!==e.type){const n=t.getBoundingClientRect(),o=e.clientX+n.x+window.scrollX,r=e.clientY+n.y+window.scrollY,i=document.elementFromPoint(o,r);if(i){const t=new DataTransfer,n=new DragEvent(e.type,{clientX:o,clientY:r,cancelable:!0,bubbles:!0,dataTransfer:t});n[a]=!0,i.dispatchEvent(n)}}}));return()=>e.dispose()}}),[f,t]),(0,i.useEffect)((()=>{const e=e=>{e[a]||u(!0)},t=e=>{e[a]||u(!1)};return window.addEventListener("dragstart",e),window.addEventListener("dragend",t),()=>{window.removeEventListener("dragstart",e),window.removeEventListener("dragend",t)}}),[c]),(0,i.useEffect)((()=>{const e=e=>{if(!e[a]){var t;const n=c.getBoundingClientRect();f.send(o.Ru.SANDBOX_DRAG_EVENT,{value:(null===(t=e.dataTransfer)||void 0===t?void 0:t.getData("Text"))||"",type:e.type,clientX:e.pageX-n.x-window.scrollX,clientY:e.pageY-n.y-window.scrollY})}};if(c)return c.addEventListener("dragenter",e),c.addEventListener("dragover",e),c.addEventListener("dragleave",e),c.addEventListener("drop",e),c.addEventListener("dragend",e),()=>{c.removeEventListener("dragenter",e),c.removeEventListener("dragover",e),c.removeEventListener("dragleave",e),c.removeEventListener("drop",e),c.removeEventListener("dragend",e)}}),[c,f]),(0,s.jsxs)("div",{ref:n,children:[l&&(0,s.jsx)("div",{ref:d,className:"iframe-provider"}),e]})}},43672:(e,t,n)=>{n.d(t,{w:()=>d});var o=n(95838),r=n(85163),i=n(56991),s=n(45695),a=n(92810);const{useToken:c}=o.A;function d(){const e=(0,s.QC)(),{token:t}=c(),[n,o]=(0,a.useState)();(0,a.useEffect)((()=>{if(!(0,i.bD)(n,t)){const n=e.onInit((()=>{e.send(r.Ru.SANDBOX_SET_THEME_VARIABLES,t),o(t)}));return()=>n.dispose()}}),[t,n,o,e]),(0,a.useEffect)((()=>{const t=e.addListener(r.Ru.RELOAD,(()=>{o(void 0)}));return()=>t.dispose()}),[o,e])}},38920:(e,t,n)=>{n.d(t,{r:()=>E});var o=n(85163),r=n(59287),i=n(92810),s=n(45934),a=n(64617),c=n(17581),d=n(53204),l=n(47358),u=n(65983),f=n(39738),p=n(86286),v=n(56991),m=n(32411),h=n(83863),g=n(71157),y=n(42068),b=n(47381);function E(e){const{emailId:t,projectId:n}=(0,a.g)(),E=(0,g.hN)(),_=(0,v.rD)(),w=(0,s.d4)(d.M),A=(0,m.fn)(),T=(0,i.useRef)(0),S=(0,s.d4)(f.p1),C=(0,s.d4)(l.Wm),D=(0,s.d4)(l.B),k=(0,s.d4)(p.C1),[I,N]=(0,c.LX)(),R=(0,s.wA)(),{isSuccess:x,isLoading:L}=(0,c.YV)({emailId:t},{skip:!t}),[O,j]=(0,i.useState)(null);(0,i.useEffect)((()=>{if(x&&!L&&null!==S&&void 0!==S&&S.length){const n=S[0];var t;if(n&&O!==(null===e||void 0===e?void 0:e.id))null!==(t=n.slug)&&void 0!==t&&t.includes("autosave")&&A&&R((0,u.no)(n)),j(null===e||void 0===e?void 0:e.id)}}),[R,S,x,L,null===e||void 0===e?void 0:e.id,O,A,t]);const M=(0,i.useCallback)((({parent:t})=>{if(e){const i={parent:t,title:e.title,author:e.author,project:e.project,html:(null===A||void 0===A?void 0:A.getValue())||"",excerpt:e.date_gmt,subject:e.subject,preheader:e.preheader,common_styles:e.common_styles,parent_email:e.parent_email};I({emailId:e.id,body:i}).then((t=>{if((0,b.d)({event:"save",action:"auto_save_email",email_id:e.id,project_id:n}),!function(e){return e.hasOwnProperty("data")}(t))throw t.error;var s,a;fetch((0,r.Wv)(o.Tm,n,null===(s=t.data)||void 0===s?void 0:s.id,null===(a=t.data)||void 0===a?void 0:a.modified),{mode:"no-cors"}),E.success({id:"EMAIL_AUTOSAVE_SUCCESS",data:i,message:""},!0)})).catch((e=>{E.fromError("EMAIL_AUTOSAVE_ERROR",i,e,!0),console.log(e)}))}}),[I,e,A,n,E]),[G,P]=(0,i.useState)(!1),U=(0,i.useCallback)((()=>{if((null===S||void 0===S?void 0:S.length)>0){const e=[...S].sort(((e,t)=>Date.parse(null===t||void 0===t?void 0:t.modified)-Date.parse(null===e||void 0===e?void 0:e.modified)))[0];Date.parse((new Date).toString())-Date.parse(null===e||void 0===e?void 0:e.modified)>1.5*((null===_||void 0===_?void 0:_.autosaveTimeout)||1e4)&&C&&!w&&"Discuss"!==D&&M({parent:e.id})}else C&&!w&&"Discuss"!==D&&M({parent:null})}),[S,w,C,D,M,null===_||void 0===_?void 0:_.autosaveTimeout]);(0,y.Z)((([e])=>{G&&!e&&(U(),P(!1))}),[G,U,P]);const V=null===k||void 0===k?void 0:k.autosaves,[X,B]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{X&&!w&&(clearTimeout(T.current),T.current=setTimeout((()=>P(!0)),(null===_||void 0===_?void 0:_.autosaveTimeout)||1e4),B(!1))}),[X,w,null===_||void 0===_?void 0:_.autosaveTimeout,P,B]),(0,i.useEffect)((()=>{if(V&&x&&void 0!==(null===e||void 0===e?void 0:e.id)){const t=(0,h.Og)(A,(()=>{C&&null!==e&&void 0!==e&&e.is_inited&&B(!0)}));return()=>{t.dispose()}}}),[A,B,V,x,null===e||void 0===e?void 0:e.id,C,null===e||void 0===e?void 0:e.is_inited]),(0,y.Z)((([t,n])=>{x&&void 0!==(null===e||void 0===e?void 0:e.id)&&C&&null!==e&&void 0!==e&&e.is_inited&&(t===(null===e||void 0===e?void 0:e.title)&&n===(null===e||void 0===e?void 0:e.common_styles)||B(!0))}),[null===e||void 0===e?void 0:e.title,null===e||void 0===e?void 0:e.common_styles,C,x,B,null===e||void 0===e?void 0:e.id,null===e||void 0===e?void 0:e.is_inited]),(0,i.useEffect)((()=>()=>{clearTimeout(T.current)}),[k,null===e||void 0===e?void 0:e.renderGuid]),(0,i.useEffect)((()=>{clearTimeout(T.current)}),[null===e||void 0===e?void 0:e.modified]),N}},9653:(e,t,n)=>{n.d(t,{U:()=>d});var o=n(85163),r=n(45695),i=n(32411),s=n(83863),a=n(42068),c=n(92810);const d=e=>{const t=(0,i.fn)(),n=(0,r.QC)(),d=(null===e||void 0===e?void 0:e.html)||"",l=(0,c.useRef)();l.current=e;const u=(0,c.useCallback)((e=>{const t=l.current;if(e===(null===t||void 0===t?void 0:t.renderGuid))return n.sendAsync(o.Ru.SANDBOX_INITED,{guid:t.renderGuid})}),[n]),f=(0,c.useCallback)((e=>{const t=l.current;if(e===(null===t||void 0===t?void 0:t.renderGuid))return n.sendAsync(o.Ru.SANDBOX_INIT_START,{guid:t.renderGuid})}),[n]),p=(0,c.useCallback)((async e=>{const r=l.current;if((null===r||void 0===r?void 0:r.renderGuid)===e){const e=null===d||void 0===d?void 0:d.replaceAll("\r\n","\n");try{(0,s.po)(t),t.setValue(e)}finally{(0,s.SF)(t)}const i=t.getValue();await n.sendAsync(o.Ru.SANDBOX_SET_ENTITY,{html:i,guid:null===r||void 0===r?void 0:r.renderGuid})}}),[d,t,n]);(0,a.Z)((async([t])=>{const n=null===e||void 0===e?void 0:e.renderGuid;n&&n!==t&&(await f(n),await p(n),await u(n))}),[null===e||void 0===e?void 0:e.renderGuid,null===e||void 0===e?void 0:e.id,p])}},69106:(e,t,n)=>{n.d(t,{f:()=>m});var o=n(85163),r=n(13522),i=n(45695),s=n(93982),a=n(32411),c=n(83863),d=n(42068),l=n(92810),u=n(65983),f=n(8493),p=n(45934),v=n(32464);const m=(e,t)=>{const n=(0,p.wA)(),m=(0,a.fn)(),h=(0,i.QC)(),g=(0,s.ml)(r.A.WILL_EMAIL_INIT_ID),y=(0,s.ml)(r.A.ON_EMAIL_INIT_ID),b=(0,s.ml)(r.A.ON_CONTENT_CHANGED_ID),E=(0,s.ml)(r.A.ON_EMAIL_CHANGED_ID),_=(0,s.ml)(r.A.ON_MODEL_CHANGE),w=(0,l.useRef)(!1),A=(0,l.useRef)();A.current=e,(0,l.useEffect)((()=>{const n=A.current;if(o.EW.isPlugin&&!w.current&&(null===e||void 0===e?void 0:e.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const e=m.getValue();E.fire({...n,id:t||n.isNew?void 0:n.id,html:e})}}),[m,e,E,t]),(0,d.Z)((([e])=>{e!==m&&_.fire(m)}),[m,_]),(0,l.useEffect)((()=>{if(o.EW.isPlugin){const n=m.onDidChangeContent((()=>{const n=A.current;if(!w.current&&(null===e||void 0===e?void 0:e.renderGuid)===(null===n||void 0===n?void 0:n.renderGuid)&&n){const e=m.getValue();b.fire(e),E.fire({...n,id:t||n.isNew?void 0:n.id,html:e})}}));return()=>n.dispose()}}),[m,b,E,e,t]);const T=(0,l.useCallback)((async()=>{const e=A.current;try{var t;(0,c.po)(m),m.setValue((null===e||void 0===e||null===(t=e.html)||void 0===t?void 0:t.replaceAll("\r\n","\n"))||"")}finally{(0,c.SF)(m)}const n=m.getValue();await h.sendAsync(o.Ru.SANDBOX_SET_ENTITY,{html:n,guid:e.renderGuid})}),[m,h]),S=(0,l.useCallback)((async()=>{const e=A.current;await h.sendAsync(o.Ru.SANDBOX_SET_ENTITY,{html:m.getValue(),guid:e.renderGuid})}),[m,h]),C=(0,l.useCallback)((async()=>{const e=A.current;void 0!==e.preheader&&await h.sendAsync(o.Ru.SANDBOX_PREHEADER_UPDATE,{value:e.preheader,guid:e.renderGuid,force:!0})}),[h]),D=(0,l.useCallback)((async()=>{const e=A.current;void 0!==e.subject&&await h.sendAsync(o.Ru.SANDBOX_SUBJECT_UPDATE,{value:e.subject,guid:e.renderGuid,force:!0})}),[h]),k=(0,l.useCallback)((()=>{const e=A.current;return h.sendAsync(o.Ru.SANDBOX_INITED,{guid:e.renderGuid})}),[h]),I=(0,l.useCallback)((()=>{const e=A.current;return n(void 0===e.id?(0,f.Uh)(!0):(0,u.Wm)(!0)),y.fire({...e,id:t||e.isNew?void 0:e.id,html:m.getValue()})}),[n,y,m,t]),N=(0,l.useCallback)((()=>{const e=A.current;return h.sendAsync(o.Ru.SANDBOX_INIT_START,{guid:e.renderGuid})}),[h]),R=(0,l.useCallback)((()=>{const e=A.current;return g.fire({...e,id:t||e.isNew?void 0:e.id,html:m.getValue()})}),[g,m,t]),[x]=(0,d.c)((function*(){try{w.current=!0,yield*(0,v.T1)(N),yield*(0,v.T1)(R),yield*(0,v.T1)(T),yield*(0,v.T1)(C),yield*(0,v.T1)(D),yield*(0,v.T1)(k),yield*(0,v.T1)(I)}finally{w.current=!1}}),[T,C,D,I,R,N,k]),[L]=(0,d.c)((function*(){try{yield*(0,v.T1)(N),yield*(0,v.T1)(R),yield*(0,v.T1)(S),yield*(0,v.T1)(C),yield*(0,v.T1)(D),yield*(0,v.T1)(k),yield*(0,v.T1)(I)}finally{}}),[T,C,D,I,R,N,k]);(0,d.Z)((async([t])=>{const n=null===e||void 0===e?void 0:e.renderGuid;n&&n!==t&&x()}),[null===e||void 0===e?void 0:e.renderGuid,x]),(0,l.useEffect)((()=>{const e=h.addListenerAsync(o.Ru.RELOAD,(async()=>{await L()}));return()=>e.dispose()}),[h,L])}},14598:(e,t,n)=>{n.d(t,{QM:()=>a,q2:()=>u});var o=n(60564),r=n.n(o),i=n(58689),s=n(81158);function a(e,t){const n=document.createElement("input");n.type="file",n.accept=e,n.multiple=!0,n.onchange=()=>{var e;null!==(e=n.files)&&void 0!==e&&e.length&&t(n.files)},n.click()}const c="index.html";function d(e,t){return e.find((function(e){return e.name.toLowerCase().endsWith(t)}))}async function l(e,t,n){return await(0,i.bc)(e,(async e=>{e=e.replace("\\","/");const n=(0,i.$l)(e);return t(e,n)}),n)}async function u(e,t,n){if(e){switch(function(e){const t=e.split(".");return t[t.length-1].toLowerCase()}(e.name)){case"zip":return async function(e,t,n){var o=new(r());const{files:s}=await o.loadAsync(e),a=Object.keys(s).map((e=>s[e])),l=s[c]||d(a,c)||d(a,".html")||d(a,".htm");if(l){const e=l.name.split("/"),o=document.location.pathname.split("/"),r=document.location.origin+o.slice(0,o.length-e.length).join("/")+"/",a=await l.async("text"),c=e.slice(0,e.length-1).join("/");return await(0,i.bc)(a,(async e=>{(e=e.replace("\\","/")).startsWith(".")&&(e=e.substring(1)),e.startsWith("/")&&(e=e.substring(1)),e.startsWith(r)&&(e=e.substring(r.length)),c&&!e.match("^(ht|f)tp(s?)://")&&(e=`${c}/${e}`);const n=s[e];if(n){const e=n.name,o=await n.async("blob");return t(o,e)}const o=(0,i.$l)(e);return t(e,o)}),n)}}(e,t,n);case"eml":{const o=await e.text(),r=(0,s.bZ)(o);if(r instanceof Error)throw r;const i="string"===typeof r?r:r.html;if("undefined"===typeof i)throw new Error("Eml not contains text/html");return l(i,t,n)}default:return l(await e.text(),t,n)}}}},44396:(e,t,n)=>{n.d(t,{Q:()=>a});var o=n(60089),r=n(70609);const i=100;class s extends o.m{constructor(e,t,n,o){super(e,t,n,o),this._onScrollDisposable=null,this._editor=e}updateColorDecorators(e){if(this._onScrollDisposable&&(this._onScrollDisposable.dispose(),this._onScrollDisposable=null),e.length>=500){const t=this._editor;let[n,o]=[Number.MAX_VALUE,Number.MIN_VALUE];const r=()=>{const r=t.getVisibleRanges(),[s,a]=r.reduce(((e,{startLineNumber:t,endLineNumber:n})=>[Math.min(t,e[0]),Math.max(n,e[1])]),[Number.MAX_VALUE,Number.MIN_VALUE]);if(n-s>i||a-o>i){let t=e.filter((({colorInfo:e})=>{const{startLineNumber:t,endLineNumber:n}=e.range;return s-t<i&&n-a<i}));super.updateColorDecorators(t)}};this._onScrollDisposable=t.onDidScrollChange(r),r()}else super.updateColorDecorators(e)}dispose(){var e;null===(e=this._onScrollDisposable)||void 0===e||e.dispose(),super.dispose()}}function a(){(0,r.D0)(s.ID,(()=>s))}},36671:(e,t,n)=>{n.d(t,{h:()=>_});var o=n(92810),r=n(70609),i=n(85163),s=n(32411),a=n(64037),c=n(71157),d=n(45934),l=n(86286),u=n(23287),f=n(39217),p=n(45695),v=n(77509),m=n(83863);const h=1e3,g=2e3,y=10,b="iframe_errors",E=5;function _(e,t){const{__:n}=(0,u.s9)(),_=(0,p.QC)(),w=(0,s.aD)(e),{error:A}=(0,c.hN)(),T=(0,o.useRef)(0),S=(0,o.useRef)(),C=(0,o.useRef)(!1),D=(0,d.d4)(l.C1),k=(0,o.useCallback)((e=>new Promise(((t,n)=>{const o=_.addListener(i.Ru.SANDBOX_READY,(()=>{o.dispose(),t()}));e&&setTimeout((()=>{o.dispose(),n("timeout")}))}))),[_]),I=(0,o.useCallback)((o=>{k(g).catch((e=>console.log(e))).finally((()=>{Promise.resolve().then((()=>{if(!C.current){if(++T.current){if(S.current){if(T.current<E){w.restoreSnapshot(S.current);for(let e=0;e<T.current;e++)w.undo()}}else S.current=w.createSnapshot();_.send(i.Ru.RELOAD)}setTimeout((()=>{if(0===--T.current){S.current=null;const r={past:w.getPast().slice(0,y),future:w.getFuture(),errorResolved:!C.current,text:e.getValue(),message:o.message,stack:o.stack,userId:null===D||void 0===D?void 0:D.id,entityId:null===t||void 0===t?void 0:t.id,entityType:document.location.pathname.indexOf("emails")>0?"email":"block"};console.log(r),A({id:"IFRAME_ERROR",data:r,message:n("Something went wrong")}),f.CJ.post(b,r).catch((e=>console.log(e))),C.current=!1}}),g)}}))}))}),[w,e,A,null===D||void 0===D?void 0:D.id,null===t||void 0===t?void 0:t.id,n,k,_]);(0,a.A)(i.Ru.APPLICATION_DOMPARSER_ERROR,I),(0,o.useEffect)((()=>{let n=null,o=0;function s(e){const t=[];for(const{rangeOffset:n,rangeLength:o,text:r}of e.changes)t.push({range:{start:n,end:n+o},text:r});return t}let a=!1;const c=new v.j;return c.addDisposable((0,m.Og)(e,(e=>(async e=>{if(a)await _.sendAsync(i.Ru.SANDBOX_UPDATE_ENTITY,{edits:[s(e)],guid:t.renderGuid});else if(n)n.push(e);else{n=[e];do{const e=n.splice(0,n.length);await _.sendAsync(i.Ru.SANDBOX_UPDATE_ENTITY,{edits:e.map(s),guid:t.renderGuid})}while(n.length);n=null}})(e).catch((e=>console.log(e)))))),c.addDisposable(_.addListener(i.Ru.APPLICATION_UPDATE_ENTITY,(function({guid:n,edits:i,pushUndoStop:s}){if(e&&n===t.renderGuid)try{a=!0;const t=(0,r.yc)();let n=t.canUndo(e.uri),c=t.canRedo(e.uri);const d=i.map((({text:t,range:n})=>{const o=e.getPositionAt(n.start),r=e.getPositionAt(n.end);return{text:t,range:{startColumn:o.column,startLineNumber:o.lineNumber,endColumn:r.column,endLineNumber:r.lineNumber}}}));s||n||c?e.pushEditOperations([],d,(()=>null)):e.applyEdits(d),!1!==s&&(o&&clearTimeout(o),o=setTimeout((()=>{e.pushStackElement(),o=0}),h))}finally{a=!1}}))),()=>{c.dispose(),o&&clearTimeout(o)}}),[e,_,t.renderGuid])}},32411:(e,t,n)=>{n.d(t,{$Z:()=>f,TW:()=>l,aD:()=>u,fn:()=>p,kx:()=>a});var o=n(70609),r=n(92810),i=n(60382),s=n(33695);const a=(0,r.createContext)(null),c={editorWorkerService:"editor.worker.js",html:"html.worker.js",css:"css.worker.js",typescript:"ts.worker.js",json:"json.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"};function d(e,t){/^(\/\/)/.test(e)&&(e=window.location.protocol+e);var n=new Blob(["/*"+t+'*/importScripts("'+e+'");'],{type:"application/javascript"});return URL.createObjectURL(n)}function l(e){const t=(0,o.yc)(),[n,i]=(0,r.useState)({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)});return(0,r.useEffect)((()=>{const n=e.onDidChangeContent((()=>{setTimeout((()=>i({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)})))}));return()=>{n.dispose()}}),[e,t]),n}function u(e){function t(e){var t;const n=(null===e||void 0===e||null===(t=e.actual)||void 0===t?void 0:t._data)||new s.Ov;return n instanceof s.Ov?n:s.Ov.deserialize(n)}const n=(0,o.yc)();return(0,r.useMemo)((()=>({undo:()=>n.undo(e.uri),redo:()=>n.redo(e.uri),clear:()=>n.removeElements(e.uri),getPast:()=>{var o,r;return(null===(o=n._editStacks.get(e.uri.toString()))||void 0===o||null===(r=o._past)||void 0===r?void 0:r.map(t))||[]},getFuture:()=>{var o,r;return(null===(o=n._editStacks.get(e.uri.toString()))||void 0===o||null===(r=o._future)||void 0===r?void 0:r.map(t))||[]},canUndo:()=>n.canUndo(e.uri),canRedo:()=>n.canRedo(e.uri),createSnapshot:()=>n.createSnapshot(e.uri),restoreSnapshot:e=>n.restoreSnapshot(e)})),[n,e])}function f(e="",t="html"){const n=i.editor.createModel(e,t);return n.setEOL(i.editor.EndOfLineSequence.LF),n}function p(){return(0,r.useContext)(a)}emailmakerMonacoEnvironment.getWorkerUrl=(e,t)=>{var o=n.p,r=(o?o.replace(/\/$/,"")+"/":"")+c[t],i=new URL(r.startsWith("/")?window.location.origin+r:r),s=i.protocol;if("http:"===s||"https:"===s){if(i.protocol!==window.location.protocol||i.hostname!==window.location.hostname)return d(r,t);if("localhost"===i.hostname&&(i.port||"80")!==(window.location.port||"80"))return d(r,t)}else if("file:"===s)return d(r,t);return r}},83863:(e,t,n)=>{n.d(t,{Og:()=>s,SF:()=>i,po:()=>r});const o=new Set;function r(e){return o.add(e),{dispose(){i(e)}}}function i(e){o.delete(e)}function s(e,t){let n=e.getVersionId(),r=[];const i=e.onDidChangeContent((i=>{if(i.versionId>n+1){let s=e.onDidChangeContent((a=>{if(i.versionId===n+1)try{o.has(e)||t(i)}catch(c){console.log(c)}finally{n=i.versionId;let e=r.indexOf(s);e>=0&&r.splice(e,1),s.dispose()}}));r.push(s)}else try{o.has(e)||t(i)}catch(s){console.log(s)}finally{n=i.versionId}}));return{dispose:()=>{i.dispose(),r.forEach((e=>e.dispose()))}}}},70609:(e,t,n)=>{n.d(t,{D0:()=>s,yc:()=>a});var o=n(95713),r=n(42443),i=n(60332);function s(e,t){const n=o.dS.getEditorContributions().find((t=>t.id===e));if(!n)throw new Error(`No contribution ${e}`);n.ctor=t(n)}function a(){return e=i.$D,r.QE.get(e);var e}},71157:(e,t,n)=>{n.d(t,{Gy:()=>f,O5:()=>m,hN:()=>v,x_:()=>p});var o=n(13522),r=n(93982),i=n(92810),s=n(33206),a=n(13329),c=n(28316),d=n(814),l=n(70082);const u="bottomRight";function f(e){return{id:e.id,code:e.html,title:e.title,subject:e.subject,preheader:e.preheader}}function p(e){return{id:e.id,code:e.html,title:e.title}}function v(){const e=(0,r.ml)(o.A.ON_NOTIFICATION),{notification:t}=s.A.useApp(),n=(0,i.useCallback)(((n,o)=>{n.type||(n={...n,type:"info"}),e.fire((0,d.TB)({id:n.id,type:n.type,data:n.data,innerException:n.innerException})).then((e=>{if(e.every((e=>!1!==e))){n={...n};for(const t of e)"object"===typeof t&&Object.assign(n,t,t.style?{style:{...t.style,...n.style}}:{},t.props?{props:{...t.props,...n.props}}:{},t.className?{className:n.className?`${n.className} ${t.className}`:t.className}:{});o||((n=Object.assign(n,...e.filter((e=>"object"===typeof e)))).placement||(n.placement=u),t[n.type]?t[n.type](n):(console.log(n.type),console.log(n.id),n.message&&console.log(n.message)))}}))}),[t,e]),a=(0,i.useCallback)(((e,t)=>n({...e,type:"error"},t)),[n]),c=(0,i.useCallback)(((e,t)=>n({...e,type:"success"},t)),[n]),f=(0,i.useCallback)(((e,t)=>n({...e,type:"warning"},t)),[n]),p=(0,i.useCallback)(((e,t)=>n({...e,type:"info"},t)),[n]),v=(0,i.useCallback)(((e,t,n,o,r=u)=>{var i,s;n&&a({id:e,data:t,message:n.data instanceof Error?"":(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(i=n.data)||void 0===i?void 0:i.code)||n.status||n}}),description:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(s=n.data)||void 0===s?void 0:s.message)||n.error}}),placement:r,innerException:(null===n||void 0===n?void 0:n.data)instanceof Error?n.data:n},o)}),[a]);return(0,i.useMemo)((()=>({notify:n,success:c,error:a,warning:f,fromError:v,info:p})),[n,c,a,f,v,p])}function m(){const{notify:e}=v();(0,a.D3)(c.Sb,e)}},23287:(e,t,n)=>{n.d(t,{CY:()=>a,s9:()=>c});var o=n(92810),r=n(42108);function i(e){return{__:e.__.bind(e),_x:e._x.bind(e),_n:e._n.bind(e),_nx:e._nx.bind(e),sprintf:r.nv,isRTL:e.isRTL.bind(e),hasTranslation:e.hasTranslation.bind(e)}}const s=(0,o.createContext)(i(r.y3));function a(e){const{children:t,i18n:n=r.y3}=e,[,a]=(0,o.useReducer)((()=>[]),[]);(0,o.useEffect)((()=>n.subscribe(a)),[n]);const c=(0,o.useMemo)((()=>i(n)),[n]);return(0,o.createElement)(s.Provider,{value:c},t)}const c=()=>(0,o.useContext)(s)},42068:(e,t,n)=>{n.d(t,{Z:()=>i,c:()=>s});var o=n(92810),r=n(32464);const i=(e,t)=>{const n=(0,o.useRef)();n.current=e;const r=(0,o.useRef)(void 0);(0,o.useEffect)((()=>{null!==r.current&&n.current(r.current||[]),r.current=t}),t)};function s(e,t){const n=(0,o.useRef)(),i=(0,o.useCallback)((()=>{const e=n.current;e&&(0,r.eF)(e.halt)}),[]);(0,o.useEffect)((()=>()=>i()),[i]);const s=(0,o.useCallback)(e,t);return[(0,o.useCallback)(((...e)=>{i();const t=(0,r.eF)((()=>s(...e)));return n.current=t,t}),[i,s]),i]}},69156:(e,t,n)=>{n.d(t,{A5:()=>l,FN:()=>d,Hk:()=>c,c8:()=>u});var o=n(92810),r=n(85163),i=n(45695);const s=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]"),a=document.querySelectorAll("link[rel=stylesheet][media*=prefers-color-scheme][media*=light]"),c=e=>{let t,n;e===r.IJ?(t=r.vd,n=r.F3):(t=e===r.T?r.y2:r.CJ,n=e===r.nd?r.y2:r.CJ),[...a].forEach((e=>{e.media=t})),[...s].forEach((e=>{e.media=n}))},d=(e={})=>{const t=document.querySelector("head"),n=document.createElement("style");if(n.type="text/css",n.dataset.themeVaribalse=!0,Object.entries(e).length){let o="";Object.entries(e).forEach((([e,t])=>{"object"!==typeof t&&(o+=`\t--${e}: ${t};\n`)})),o=`.blocks-body, .blocks-app, .ant-modal-root, .ant-tooltip, .ant-notification {\n${o}}`,n.appendChild(document.createTextNode(o));const r=t.querySelector('[data-theme-varibalse="true"]');r?t.replaceChild(n,r):t.insertBefore(n,t.firstChild)}},l=e=>{const t=document.body;t.classList.contains(e)||setTimeout((()=>{t.classList.remove(e===r.nd?r.T:r.nd),t.classList.add(e)}),200)},u=()=>{const e=(0,i.XW)();return(0,o.useCallback)((()=>{const t=window.localStorage.getItem(r.V0.em_color_scheme),n=matchMedia(r.F3).matches?r.nd:r.T,o=t||n;e({operation:r.Ru.UPDATE_PREVIEW,theme:o})}),[e])}},31770:(e,t,n)=>{function o(e){return e}function r({data:e,...t},n){return t.error?t:{data:n(e,t.meta),...t}}function i(e){return t=>r(t,e)}function s(e){return t=>r(t,((t,n)=>t.hasOwnProperty("previous")?e(t.previous,n):e(t,n)))}function a(e){return t=>function({data:e,...t},n){return t.error?t:{data:e.map((e=>n(e,t.meta))),...t}}(t,e)}n.d(t,{Ih:()=>a,PI:()=>s,SA:()=>r,SC:()=>i,ur:()=>o})},84869:(e,t,n)=>{function o(e,t){if("object"===typeof e&&e){t(e);for(const n of Object.values(e))o(n,t)}}function r(e=".blocks-app"){e=`${e} &`;const t=new WeakSet;return{visit:n=>{if(!t.has(n)){const r={};let i;for(const s of Object.keys(n)){const a=n[s];"object"===typeof a&&a?(a._keyframe&&o(a,(e=>t.add(e))),r[s]=a):(i||(i=r[e]={},t.add(i)),i[s]=a)}return r}return n}}}n.d(t,{A:()=>r})},44824:(e,t,n)=>{n.d(t,{e:()=>r});var o=n(85974);async function r(e,t){if("amp"===t){for(const t of e.querySelectorAll(".em-amp-show-disabled"))t.remove();await(0,o.Sc)(e,{mappedTags:{script:"___script"}})}else if("html"===t){for(const t of e.querySelectorAll(".em-amp-show-only"))t.remove();(0,o.Km)(e,{mappedTags:{script:"___script"}})}}},78451:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(92810),r=n(45934),i=n(64617),s=n(17581),a=n(65983);const c=()=>{const e=(0,r.wA)(),t=(0,r.d4)(a.zn);let n=(0,i.zy)();(0,o.useEffect)((()=>{/emails\/[0-9]+$/.test(n.pathname)||t&&e(s.GY.util.invalidateTags([{type:"Emails",id:+t}]))}),[n,e,t])}},64037:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(92810),r=n(45695);function i(e,t){const n=(0,r.QC)();(0,o.useEffect)((()=>{const o=n.addListener(e,t);return()=>{o.dispose()}}),[n,e,t])}},31844:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(92810),r=n(64617),i=n(45934),s=n(86286),a=n(84568);const c=e=>{const t=(0,i.d4)(s.C1),[n,c]=(0,o.useState)({owner:!1,admin:!1}),d=(0,r.KC)(),{data:l}=(0,a.fo)(e,{skip:!e||!t.id||!(null!==d&&void 0!==d&&d.isUninitialized)}),u=(null===d||void 0===d?void 0:d.data)||l;return(0,o.useEffect)((()=>{if(u){var e,n;const{owner:o,admins:r,users:i}=u.members,s=r?r.map((e=>e.ID)):r,a=i?i.map((e=>e.ID)):i;c({owner:(null===(e=o.ID)||void 0===e?void 0:e.toString())===(null===(n=t.id)||void 0===n?void 0:n.toString()),admin:s&&s.includes(t.id),user:a&&a.includes(t.id)})}}),[u,t.id]),n}},3289:(e,t,n)=>{n.d(t,{A:()=>d});var o=n(92810),r=n(45934),i=n(64617),s=n(87790),a=n(85163),c=n(90070);const d=()=>{const e=(0,r.wA)(),t=(0,c.p6)(),n=(0,r.d4)(s.Sl);let d=(0,i.zy)();(0,o.useEffect)((()=>{d.pathname.endsWith("/new")||n&&(e((0,s.X8)()),t.remove(a.A9.em_new_block))}),[d,n,e,t])}},19366:(e,t,n)=>{n.d(t,{A:()=>d});var o=n(92810),r=n(45934),i=n(64617),s=n(8493),a=n(85163),c=n(90070);const d=()=>{const e=(0,c.p6)(),t=(0,r.wA)(),n=(0,r.d4)(s.$S);let d=(0,i.zy)();(0,o.useEffect)((()=>{d.pathname.endsWith("/new")||(e.remove(a.A9.em_new_email),e.remove(a.A9.em_template_email),n&&t((0,s.Et)()))}),[d,n,t,e])}},22197:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(85163);const r=e=>{if(!o.EW.isPlugin){let t="";t="EmailMaker",document.title=e+" - "+t}}},54416:(e,t,n)=>{e.exports=n.p+"static/media/frame_dark.318d7ed5.png"},98578:(e,t,n)=>{e.exports=n.p+"static/media/frame_light.22a9b4ec.png"},68777:(e,t,n)=>{e.exports=n.p+"static/media/frame_template_gallery.85693b39.png"},58889:e=>{e.exports=JSON.parse('{"yG":"iframe.73bcbc874fc3021cba78.html","l5":"iframe-eblock.73bcbc874fc3021cba78.html"}')}}]);
@@ -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()}}}}]);