@emailmaker/emailmaker 1.0.107-dev.3 → 1.0.107-dev.5

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 (325) hide show
  1. package/README.md +1 -1
  2. package/cli/dist/lib/cli/project.js +2 -16
  3. package/cli/dist/lib/config.js +20 -29
  4. package/cli/dist/lib/local-test.js +3 -19
  5. package/cli/dist/lib/paths.js +11 -0
  6. package/cli/dist/lib/resolveNpmSpawn.d.ts +20 -0
  7. package/cli/dist/lib/resolveNpmSpawn.js +71 -0
  8. package/cli/dist/lib/template-engine/context/pluginPackageJsonData.js +21 -19
  9. package/cli/dist/lib/template-engine/context/standVitePackageJsonData.js +7 -8
  10. package/cli/dist/lib/template-engine/resolveVariantDir.d.ts +5 -1
  11. package/cli/dist/lib/template-engine/resolveVariantDir.js +22 -0
  12. package/cli/dist/lib/templates/shared/i18n.js +2 -2
  13. package/cli/dist/lib/templates/shared/paths.js +3 -4
  14. package/cli/dist/lib/types/package-config.d.ts +1 -0
  15. package/cli/lib/cli/project.ts +2 -18
  16. package/cli/lib/config.ts +19 -30
  17. package/cli/lib/local-test.ts +3 -22
  18. package/cli/lib/paths.ts +15 -0
  19. package/cli/lib/resolveNpmSpawn.ts +72 -0
  20. package/cli/lib/template-engine/buildStandIndexHtml.test.ts +1 -0
  21. package/cli/lib/template-engine/context/pluginPackageJsonData.ts +23 -23
  22. package/cli/lib/template-engine/context/standVitePackageJsonData.ts +7 -12
  23. package/cli/lib/template-engine/pluginEtaParity.test.ts +1 -0
  24. package/cli/lib/template-engine/resolveVariantDir.ts +22 -0
  25. package/cli/lib/template-engine/standAdvancedViteDevHostEta.test.ts +4 -3
  26. package/cli/lib/template-engine/standWebpackDevHostEta.test.ts +7 -6
  27. package/cli/lib/templates/shared/i18n.ts +2 -2
  28. package/cli/lib/templates/shared/paths.ts +3 -4
  29. package/cli/lib/types/package-config.ts +1 -0
  30. package/cli/package.json +1 -1
  31. package/cli/project-templates/plugin/assets/vite/{plugin-build.config.mjs → plugin-build.config.ts} +7 -5
  32. package/cli/project-templates/plugin/assets/vite/{sandbox-build.config.mjs → sandbox-build.config.ts} +7 -5
  33. package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.module.cjs → plugin-build.legacy.module.ts} +20 -7
  34. package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.umd.cjs → plugin-build.legacy.umd.ts} +20 -7
  35. package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.module.cjs → plugin-build.modern.module.ts} +9 -4
  36. package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.umd.cjs → plugin-build.modern.umd.ts} +9 -4
  37. package/cli/project-templates/plugin/assets/webpack/{sandbox-build.config.cjs → sandbox-build.config.ts} +13 -3
  38. package/cli/project-templates/plugin/bundler-vite/release.html.eta +1 -0
  39. package/cli/project-templates/plugin/bundler-webpack/public/release.html.eta +1 -0
  40. package/cli/project-templates/plugin/shared-base/public/demo/product-1.svg +10 -0
  41. package/cli/project-templates/plugin/shared-base/public/demo/product-2.svg +10 -0
  42. package/cli/project-templates/plugin/shared-base/scripts/build-runner.ts +22 -0
  43. package/cli/project-templates/plugin/shared-base/scripts/build-types.ts +17 -0
  44. package/cli/project-templates/plugin/shared-base/scripts/clean.ts +16 -0
  45. package/cli/project-templates/plugin/shared-base/scripts/dev-runner.ts +52 -0
  46. package/cli/project-templates/plugin/shared-base/scripts/npmRun.ts +61 -0
  47. package/cli/project-templates/plugin/shared-base/scripts/release-runner.ts +18 -0
  48. package/cli/project-templates/plugin/shared-base/scripts/scriptRuntime.ts +10 -0
  49. package/cli/project-templates/plugin/shared-base/src/dev/hostApp.tsx.eta +1 -0
  50. package/cli/project-templates/plugin/shared-base/src/dev-release.tsx.eta +1 -0
  51. package/cli/project-templates/plugin/shared-base/src/dev.tsx.eta +1 -1
  52. package/cli/project-templates/shared/partials/plugin-dev-host-app-advanced.eta +93 -0
  53. package/cli/project-templates/shared/partials/plugin-dev-host-app-minimal.eta +54 -0
  54. package/cli/project-templates/shared/partials/plugin-dev-tsx-advanced.eta +3 -2
  55. package/cli/project-templates/shared/partials/plugin-dev-tsx-debug.eta +18 -0
  56. package/cli/project-templates/shared/partials/plugin-dev-tsx-release.eta +33 -0
  57. package/cli/project-templates/shared/partials/plugin-dev-tsx-runtime-helpers.eta +8 -8
  58. package/cli/project-templates/shared/partials/plugin-index-ts.eta +0 -1
  59. package/cli/project-templates/shared/partials/plugin-vite-dev-host.eta +9 -5
  60. package/cli/project-templates/shared/partials/plugin-vite-plugin-build.eta +7 -5
  61. package/cli/project-templates/shared/partials/plugin-vite-release-html.eta +12 -0
  62. package/cli/project-templates/shared/partials/plugin-vite-sandbox-build.eta +7 -5
  63. package/cli/project-templates/shared/partials/plugin-webpack-dev-host-legacy.eta +12 -5
  64. package/cli/project-templates/shared/partials/plugin-webpack-dev-host-modern.eta +13 -6
  65. package/cli/project-templates/shared/partials/plugin-webpack-release-html.eta +12 -0
  66. package/cli/project-templates/shared/partials/plugin-webpack-sandbox-build.eta +13 -3
  67. package/cli/project-templates/shared/partials/plugin-wp-legacy-module.eta +28 -10
  68. package/cli/project-templates/shared/partials/plugin-wp-legacy-umd.eta +28 -10
  69. package/cli/project-templates/shared/partials/plugin-wp-modern-module.eta +9 -4
  70. package/cli/project-templates/shared/partials/plugin-wp-modern-umd.eta +9 -4
  71. package/cli/project-templates/shared/partials/stand-dev-host-vite-memory.eta +3 -3
  72. package/cli/project-templates/shared/partials/stand-dev-host-vite-subpath.eta +8 -4
  73. package/cli/project-templates/shared/partials/stand-dev-host-vite-umd.eta +5 -5
  74. package/cli/project-templates/shared/partials/stand-dev-host-vite.eta +3 -3
  75. package/cli/project-templates/shared/partials/stand-dev-host-webpack-subpath.eta +8 -4
  76. package/cli/project-templates/shared/partials/stand-dev-host-webpack-umd.eta +9 -3
  77. package/cli/project-templates/shared/partials/stand-dev-host-webpack.eta +8 -4
  78. package/cli/project-templates/shared/partials/stand-dev-storage-middleware.eta +370 -0
  79. package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.ts +80 -0
  80. package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.ts.eta +1 -0
  81. package/cli/project-templates/shared/stand-webpack-base/config/lib/{createWebpackStandConfig.cjs → createWebpackStandConfig.ts} +31 -19
  82. package/cli/project-templates/{stand/advanced/umd/vite/config/lib/umdServeMiddleware.mjs → shared/stand-webpack-base/config/lib/umdServeMiddleware.ts} +19 -11
  83. package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.ts.eta +1 -0
  84. package/cli/project-templates/stand/advanced/memory-usage/vite/config/lib/{createMemoryUsageStandConfig.mjs → createMemoryUsageStandConfig.ts} +25 -20
  85. package/cli/project-templates/stand/advanced/umd/vite/config/lib/umdServeMiddleware.ts +68 -0
  86. package/cli/project-templates/stand/react-adapter/webpack/README.md.eta +1 -0
  87. package/cli/project-templates/stand/react-adapter/webpack/config/dev-host.ts.eta +1 -0
  88. package/cli/project-templates/stand/react-adapter/webpack/package.json.eta +1 -0
  89. package/cli/project-templates/stand/react-adapter/webpack/public/index.html.eta +1 -0
  90. package/cli/project-templates/stand/react-adapter/webpack/src/dev/editorConfig.ts.eta +1 -0
  91. package/cli/project-templates/stand/react-adapter/webpack/src/dev/email.html.eta +1 -0
  92. package/cli/project-templates/stand/react-adapter/webpack/src/dev/getAuthToken.ts.eta +1 -0
  93. package/cli/project-templates/stand/react-adapter/webpack/src/dev/oauthCredentials.ts +9 -0
  94. package/cli/project-templates/stand/react-adapter/webpack/src/dev/storageProvider.ts.eta +1 -0
  95. package/cli/project-templates/stand/react-adapter/webpack/src/index.tsx.eta +1 -0
  96. package/cli/scripts/cli-matrix-smoke.ts +19 -10
  97. package/cli/scripts/verify-global-cli.ts +1 -1
  98. package/cli/scripts/vite-plugin-version-matrix.ts +299 -0
  99. package/cli/tsconfig.json +2 -2
  100. package/emailmaker-core.ed344c04.js +1 -0
  101. package/emailmaker-esm.js +788 -153
  102. package/emailmaker.d.ts +32 -0
  103. package/emailmaker.js +4 -4
  104. package/iframe/js/amp.BGJMqoms.js +1 -1
  105. package/iframe/js/chunk.oX6nCJbK.js +1 -1
  106. package/iframe/js/iframe-eblock.js +1 -1
  107. package/iframe/js/iframe.js +1 -1
  108. package/iframe/js/rules.BSaCN7eK.js +1 -1
  109. package/iframe/js/sanitize-html.Dy7Uwo8P.js +1 -1
  110. package/images/integrations/activecampaign.svg +4 -0
  111. package/images/integrations/bento.svg +9 -0
  112. package/images/integrations/brevo.svg +7 -0
  113. package/images/integrations/campaign_monitor.svg +10 -0
  114. package/images/integrations/constant_contact.svg +24 -0
  115. package/images/integrations/dotdigital.svg +144 -0
  116. package/images/integrations/getresponse.svg +23 -0
  117. package/images/integrations/hubspot.svg +3 -0
  118. package/images/integrations/klaviyo.svg +10 -0
  119. package/images/integrations/mailchimp.svg +9 -0
  120. package/images/integrations/salesforce.svg +20 -0
  121. package/js/browser-image-compression.js +9 -0
  122. package/package.json +2 -5
  123. package/runtime/@ant-design/cssinjs/index.js +1 -1
  124. package/runtime/@ant-design/icons/index.js +1 -1
  125. package/runtime/@ant-design/pro-layout/index.js +1 -1
  126. package/runtime/README.md +13 -13
  127. package/runtime/antd/index.js +1 -1
  128. package/runtime/app-core/index.js +1 -2
  129. package/runtime/classnames/index.js +1 -1
  130. package/runtime/core/index.js +6 -6
  131. package/runtime/dayjs/index.js +1 -1
  132. package/runtime/di/index.js +1 -2
  133. package/runtime/disposable/index.js +1 -2
  134. package/runtime/errors-runtime/index.js +1 -2
  135. package/runtime/guid/index.js +1 -2
  136. package/runtime/index.js +2 -4
  137. package/runtime/package.json +2 -3
  138. package/runtime/prop-types/index.js +1 -1
  139. package/runtime/react/index.js +1 -1
  140. package/runtime/react/jsx-dev-runtime/index.js +1 -1
  141. package/runtime/react/jsx-runtime/index.js +1 -1
  142. package/runtime/react-dom/client/index.js +1 -1
  143. package/runtime/react-dom/index.js +1 -1
  144. package/runtime/react-router-dom/index.js +1 -1
  145. package/runtime/uuid/index.js +1 -1
  146. package/static/amd/{8fc2a596.js → 19aeb269.js} +88 -88
  147. package/static/core/192ec827.js +1 -0
  148. package/static/core/22c1de2e2.js +1 -0
  149. package/static/core/24faedf0.js +1 -0
  150. package/static/core/29231645.js +1 -0
  151. package/static/core/2a3177fc2.js +1 -0
  152. package/static/core/346aabd2.js +3 -0
  153. package/static/core/3b800ed6.js +1 -0
  154. package/static/core/3e840e90.js +1 -0
  155. package/static/core/40cc9fd7.js +1 -0
  156. package/static/core/421bdec22.js +1 -0
  157. package/static/core/50ff48bc.js +4 -0
  158. package/static/core/5282795d2.js +6 -0
  159. package/static/core/555e2e2f2.js +903 -0
  160. package/static/core/563a283d.js +1 -0
  161. package/static/core/5d47e095.js +47 -0
  162. package/static/core/5f574386.js +1 -0
  163. package/static/core/67a41193.js +1 -0
  164. package/static/core/698dace4.js +7 -0
  165. package/static/core/6b648e2d.js +1 -0
  166. package/static/core/7629adfd.js +1 -0
  167. package/static/core/7717f2932.js +3 -0
  168. package/static/core/776cb34a.js +1 -0
  169. package/static/core/78a1e31e.js +1 -0
  170. package/static/core/7d56d643.js +1 -0
  171. package/static/core/841752212.js +40 -0
  172. package/static/core/8477e97e.js +1 -0
  173. package/static/core/8756d562.js +1 -0
  174. package/static/core/91d328d8.js +1 -0
  175. package/static/core/9270dbb6.js +6 -0
  176. package/static/core/96371334.js +566 -0
  177. package/static/core/9b9ddaef2.js +168 -0
  178. package/static/core/af1da4b4.js +1 -0
  179. package/static/core/b5096b152.js +471 -0
  180. package/static/core/bde6775a.js +1 -0
  181. package/static/core/bf1b888c.js +4 -0
  182. package/static/core/c3747df72.js +598 -0
  183. package/static/core/cec8d739.js +11 -0
  184. package/static/core/cfac3d32.js +1 -0
  185. package/static/core/d21c95cf2.js +1 -0
  186. package/static/core/dbd9ca52.js +1 -0
  187. package/static/core/dc590181.js +1 -0
  188. package/static/core/e0039d55.js +1 -0
  189. package/static/core/e4071c1a.js +4 -0
  190. package/static/core/ef87b75c.js +41 -0
  191. package/static/core/f47701f32.js +20 -0
  192. package/static/core/f83d7ac42.js +3 -0
  193. package/static/core/fcc67e6b.js +1 -0
  194. package/static/core/fd40d85c.js +1 -0
  195. package/static/core/fe638847.js +1 -0
  196. package/static/esm/{e8401d17.js → 203c9644.js} +3 -3
  197. package/static/esm/4b679053.js +27 -0
  198. package/static/esm/{b273a6c2.js → f31a26c6.js} +1 -1
  199. package/static/runtime/disposable-CD74igiJ.js +1 -0
  200. package/static/runtime/guid-C0wuVR8v.js +1 -0
  201. package/vite/index.d.ts +17 -6
  202. package/vite/index.js +315 -270
  203. package/vite/pluginDev/index.d.ts +10 -19
  204. package/vite/pluginDev/index.js +251 -204
  205. package/webpack/index.d.ts +24 -5
  206. package/webpack/index.js +168 -144
  207. package/webpack/pluginDev/index.d.ts +21 -22
  208. package/webpack/pluginDev/index.js +242 -177
  209. package/cli/dist/lib/template-engine/buildStandIndexHtml.test.d.ts +0 -2
  210. package/cli/dist/lib/template-engine/buildStandIndexHtml.test.js +0 -89
  211. package/cli/dist/lib/template-engine/emitEtaTree.test.d.ts +0 -2
  212. package/cli/dist/lib/template-engine/emitEtaTree.test.js +0 -34
  213. package/cli/dist/lib/template-engine/pluginEtaParity.test.d.ts +0 -2
  214. package/cli/dist/lib/template-engine/pluginEtaParity.test.js +0 -105
  215. package/cli/dist/lib/template-engine/resolveVariantDir.test.d.ts +0 -2
  216. package/cli/dist/lib/template-engine/resolveVariantDir.test.js +0 -52
  217. package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.d.ts +0 -2
  218. package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.js +0 -67
  219. package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.d.ts +0 -2
  220. package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.js +0 -83
  221. package/cli/dist/lib/template-engine/storageProviderEta.test.d.ts +0 -2
  222. package/cli/dist/lib/template-engine/storageProviderEta.test.js +0 -26
  223. package/cli/project-templates/plugin/shared-base/scripts/build-types.cjs +0 -8
  224. package/cli/project-templates/plugin/shared-base/scripts/clean.cjs +0 -6
  225. package/cli/project-templates/plugin/shared-base/scripts/dev-runner.cjs +0 -48
  226. package/cli/project-templates/plugin/shared-base/scripts/release-runner.cjs +0 -63
  227. package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.mjs +0 -80
  228. package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.cjs +0 -235
  229. package/cli/project-templates/shared/stand-webpack-base/config/lib/umdServeMiddleware.cjs +0 -38
  230. package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.cjs +0 -235
  231. package/emailmaker-core.80d62b88.js +0 -569
  232. package/runtime/_core/app-core/index.js +0 -1
  233. package/runtime/_core/chunks/app-core-DphKKh8f.js +0 -1
  234. package/runtime/_core/chunks/chunk-oqAt0Dze.js +0 -1
  235. package/runtime/_core/chunks/di-BHUzE57z.js +0 -1
  236. package/runtime/_core/chunks/disposable-PhM3rJkj.js +0 -1
  237. package/runtime/_core/chunks/errors-runtime-VjCOXaQX.js +0 -1
  238. package/runtime/_core/chunks/guid-D2-FTZQG.js +0 -1
  239. package/runtime/_core/di/index.js +0 -1
  240. package/runtime/_core/disposable/index.js +0 -1
  241. package/runtime/_core/errors-runtime/index.js +0 -1
  242. package/runtime/_core/guid/index.js +0 -1
  243. package/runtime/_core/index.js +0 -1
  244. package/shared/hostBootstrap.js +0 -47
  245. package/shared/pluginDevOptions.js +0 -31
  246. package/shared/runtimeManifest.js +0 -72
  247. package/shared/stringCase.js +0 -16
  248. package/static/core/2360f32a.js +0 -3
  249. package/static/core/2687db56.js +0 -3
  250. package/static/core/2b250af6.js +0 -1261
  251. package/static/core/3469930c.js +0 -302
  252. package/static/core/34ce9042.js +0 -201
  253. package/static/core/4091ba5b.js +0 -25
  254. package/static/core/41ce3a6a.js +0 -173
  255. package/static/core/4ac4908c.js +0 -2213
  256. package/static/core/519096c1.js +0 -2597
  257. package/static/core/5fa1772b.js +0 -116550
  258. package/static/core/61312909.js +0 -3
  259. package/static/core/62a98c07.js +0 -75301
  260. package/static/core/6309c0f2.js +0 -3
  261. package/static/core/68d9f440.js +0 -3
  262. package/static/core/73b645ab.js +0 -2
  263. package/static/core/81019351.js +0 -280
  264. package/static/core/835b37ef.js +0 -591
  265. package/static/core/91242fb3.js +0 -3
  266. package/static/core/972b15b0.js +0 -92399
  267. package/static/core/974ef468.js +0 -493
  268. package/static/core/a17614422.js +0 -38078
  269. package/static/core/a2fa7b5b.js +0 -4232
  270. package/static/core/a513adfd.js +0 -89857
  271. package/static/core/a7c73a9b.js +0 -3813
  272. package/static/core/b64c7c90.js +0 -228
  273. package/static/core/cdc9ba92.js +0 -4711
  274. package/static/core/d1db685d.js +0 -2193
  275. package/static/core/d661febc.js +0 -3
  276. package/static/core/d6d2d2d0.js +0 -23
  277. package/static/core/df1a1225.js +0 -607
  278. package/static/core/e5bff179.js +0 -1302
  279. package/static/core/e5d602f5.js +0 -2
  280. package/static/core/eb029366.js +0 -1532
  281. package/static/core/f46c035a.js +0 -2
  282. package/static/core/f8b9d89a.js +0 -461
  283. package/static/core/fd897ad7.js +0 -3
  284. package/static/core/fdd890c7.js +0 -6168
  285. package/static/esm/29eb18ff.js +0 -164
  286. package/vite/mime-types.js +0 -179
  287. package/vite/utils.js +0 -44
  288. /package/cli/project-templates/plugin/bundler-vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  289. /package/cli/project-templates/plugin/bundler-vite/config/{plugin-build.mjs.eta → plugin-build.ts.eta} +0 -0
  290. /package/cli/project-templates/plugin/bundler-vite/config/{sandbox-build.mjs.eta → sandbox-build.ts.eta} +0 -0
  291. /package/cli/project-templates/plugin/bundler-webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  292. /package/cli/project-templates/plugin/bundler-webpack/config/{plugin-build.cjs.eta → plugin-build.ts.eta} +0 -0
  293. /package/cli/project-templates/plugin/bundler-webpack/config/{sandbox-build.cjs.eta → sandbox-build.ts.eta} +0 -0
  294. /package/cli/project-templates/stand/advanced/memory-usage/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  295. /package/cli/project-templates/stand/advanced/shadow-dom/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  296. /package/cli/project-templates/stand/advanced/shadow-dom/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  297. /package/cli/project-templates/stand/advanced/subpath/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  298. /package/cli/project-templates/stand/advanced/subpath/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  299. /package/cli/project-templates/stand/advanced/umd/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  300. /package/cli/project-templates/stand/advanced/umd/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  301. /package/cli/project-templates/stand/closed-loop/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  302. /package/cli/project-templates/stand/closed-loop/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  303. /package/cli/project-templates/stand/oauth/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  304. /package/cli/project-templates/stand/oauth/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  305. /package/cli/project-templates/stand/react-adapter/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  306. /package/iframe/{iframe-eblock.80d62b88.html → iframe-eblock.ed344c04.html} +0 -0
  307. /package/iframe/{iframe.80d62b88.html → iframe.ed344c04.html} +0 -0
  308. /package/{runtime/chunks → static/runtime}/DownloadOutlined-a2ZUz7zB.js +0 -0
  309. /package/{runtime/chunks → static/runtime}/chunk-D-iEO58U.js +0 -0
  310. /package/{runtime/chunks → static/runtime}/classnames-DBEldvch.js +0 -0
  311. /package/{runtime/chunks → static/runtime}/client-5XqXGmAI.js +0 -0
  312. /package/{runtime/chunks → static/runtime}/dayjs.min-CO3mzOeV.js +0 -0
  313. /package/{runtime/_core/chunks/defineProperty-BGJFuFMq.js → static/runtime/defineProperty-CGNmw-jw.js} +0 -0
  314. /package/{runtime/chunks → static/runtime}/dist-Cns8cA2n.js +0 -0
  315. /package/{runtime/chunks → static/runtime}/dist-Ct0xRt3Y.js +0 -0
  316. /package/{runtime/chunks → static/runtime}/es-0FFT3fCz.js +0 -0
  317. /package/{runtime/chunks → static/runtime}/es-BwJ3eGbx.js +0 -0
  318. /package/{runtime/chunks → static/runtime}/es-D8EsVtRL.js +0 -0
  319. /package/{runtime/chunks → static/runtime}/es-Da4O25Kw.js +0 -0
  320. /package/{runtime/chunks → static/runtime}/jsx-dev-runtime-V4_MuHNS.js +0 -0
  321. /package/{runtime/chunks → static/runtime}/jsx-runtime-DBeCoE0b.js +0 -0
  322. /package/{runtime/chunks → static/runtime}/objectWithoutProperties-Bk0EDksJ.js +0 -0
  323. /package/{runtime/chunks → static/runtime}/prop-types-DxD5wgQ0.js +0 -0
  324. /package/{runtime/chunks → static/runtime}/react-TEeeBWTl.js +0 -0
  325. /package/{runtime/chunks → static/runtime}/react-dom-BKKa1g6U.js +0 -0
package/emailmaker-esm.js CHANGED
@@ -1,127 +1,56 @@
1
- import { n as e, r as t, t as n } from "./static/esm/b273a6c2.js";
2
- import { i as r, n as i, t as a } from "./static/esm/e8401d17.js";
3
- //#region src/plugin/facade/remoteChunks.ts
4
- function o(e) {
5
- let t = window.__emailmaker__ === void 0 ? void 0 : window.__emailmaker__;
6
- if (t) return t;
7
- if (typeof window < "u") {
8
- let t = window;
9
- return t[e] = t[e] || {}, t[e];
10
- }
11
- return {};
12
- }
13
- function s(e) {
14
- return e.__remoteChunkState ||= {
15
- initialized: !1,
16
- modules: e.modules && typeof e.modules == "object" ? e.modules : {},
17
- pendingModules: {},
18
- resolvers: {},
19
- loadedScripts: {}
20
- }, e.modules = e.__remoteChunkState.modules, e.__remoteChunkState;
21
- }
22
- function c(e, t) {
23
- let n = s(e);
24
- n.modules[t.id] = t.module;
25
- let r = n.resolvers[t.id];
26
- r && (delete n.resolvers[t.id], r(t.module));
27
- }
28
- function l(e) {
29
- let t = s(e);
30
- if (t.initialized) return;
31
- let n = Array.isArray(e.chunks) ? e.chunks : [], r = n, i = Array.prototype.push;
32
- e.chunks = r, r.push = (...t) => {
33
- let n = i.apply(r, t);
34
- return t.forEach((t) => c(e, t)), n;
35
- }, t.initialized = !0, n.forEach((t) => c(e, t));
36
- }
37
- function u(e, t) {
38
- let n = s(e), r = n.modules[t];
39
- return r ? Promise.resolve(r) : n.pendingModules[t] || (n.pendingModules[t] = new Promise((e) => {
40
- n.resolvers[t] = (r) => {
41
- n.modules[t] = r, delete n.pendingModules[t], e(r);
42
- };
43
- }), n.pendingModules[t]);
44
- }
45
- function d(e) {
46
- let t = e || "./";
47
- try {
48
- let e = String(t);
49
- if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e) || e.indexOf("//") === 0) return e;
50
- let n = typeof document < "u" && document.baseURI ? document.baseURI : typeof window < "u" && window.location ? window.location.href : "";
51
- return n ? new URL(e, n).href : e;
52
- } catch {
53
- return String(t);
54
- }
55
- }
56
- function f(e, t, n, r) {
57
- let i = s(e);
58
- return i.loadedScripts[t] || (i.loadedScripts[t] = new Promise((a, o) => {
59
- if (typeof document > "u") {
60
- o(/* @__PURE__ */ Error(`[${r}] document is unavailable`));
61
- return;
62
- }
63
- let s = d(e.publicPath), c = new URL(t, s).href, l = document.createElement("script");
64
- l.type = "module", l.async = !0, l.src = c, l.setAttribute("data-emailmaker-remote", n), l.onload = () => {
65
- a();
66
- }, l.onerror = () => {
67
- delete i.loadedScripts[t], o(/* @__PURE__ */ Error(`[${r}] Failed to load remote script: ${c}`));
68
- }, (document.head || document.documentElement).appendChild(l);
69
- }), i.loadedScripts[t]);
70
- }
71
- //#endregion
1
+ import { n as e, r as t, t as n } from "./static/esm/f31a26c6.js";
2
+ import { i as r, n as i, t as a } from "./static/esm/203c9644.js";
72
3
  //#region src/plugin/facade/loadEngine.ts
73
- var p = null, m = "core";
74
- function h() {
75
- if (!p) {
76
- let e = o("__emailmaker__");
77
- l(e), p = Promise.resolve(typeof e.prefetch == "function" ? e.prefetch() : void 0).then(async () => {
78
- let t = u(e, m);
79
- return await f(e, "emailmaker-core.80d62b88.js", m, "loadEngine"), t;
80
- });
81
- }
82
- return p;
4
+ var o = null, s = "core";
5
+ function c() {
6
+ return typeof window.__emailmaker__?.require == "function" ? new Promise((e, t) => {
7
+ window.__emailmaker__.require([s], (t) => e(t), (e) => t(e instanceof Error ? e : /* @__PURE__ */ Error("[loadEngine] Failed to require core module")));
8
+ }) : Promise.reject(/* @__PURE__ */ Error("[loadEngine] AMD loader is unavailable"));
9
+ }
10
+ function l() {
11
+ return o ||= c(), o;
83
12
  }
84
13
  //#endregion
85
- //#region src/plugin/entries/preload.ts
86
- var g = null, _ = null;
87
- async function v(e) {
14
+ //#region src/plugin/loader/preload.ts
15
+ var u = null, d = null;
16
+ async function f(e) {
88
17
  typeof e?.prefetch == "function" && await e.prefetch();
89
18
  }
90
- function y() {
91
- return g ||= h().then(() => void 0), g;
19
+ function p() {
20
+ return u ||= l().then(() => void 0), u;
92
21
  }
93
- function b(e) {
94
- return _ ||= v(e), _;
22
+ function m(e) {
23
+ return d ||= f(e), d;
95
24
  }
96
- function x(e) {
97
- return Promise.all([y(), b(e)]).then(() => void 0);
25
+ function h(e) {
26
+ return Promise.all([p(), m(e)]).then(() => void 0);
98
27
  }
99
- function S(e) {
28
+ function g(e) {
100
29
  let t = e?.startupPrefetchMode;
101
30
  return t === "eager" || t === "idle" || t === "manual" || t === "off" ? t : "eager";
102
31
  }
103
- function C(e) {
104
- Promise.resolve().then(() => x(e)).catch(() => {});
32
+ function _(e) {
33
+ Promise.resolve().then(() => h(e)).catch(() => {});
105
34
  }
106
- function w(e) {
107
- Promise.resolve().then(() => b(e)).catch(() => {});
35
+ function v(e) {
36
+ Promise.resolve().then(() => m(e)).catch(() => {});
108
37
  }
109
- function T(e) {
110
- let t = S(e);
111
- if (t === "eager") C(e);
38
+ function y(e) {
39
+ let t = g(e);
40
+ if (t === "eager") _(e);
112
41
  else if (t === "idle") {
113
42
  let t = window.requestIdleCallback;
114
- typeof t == "function" ? t(() => C(e), { timeout: 1500 }) : setTimeout(() => C(e), 0);
43
+ typeof t == "function" ? t(() => _(e), { timeout: 1500 }) : setTimeout(() => _(e), 0);
115
44
  }
116
45
  }
117
46
  //#endregion
118
47
  //#region src/plugin/utils/startupSpinner.ts
119
- var E = "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z", D = "\n.blocks-app-initial-spinner-wrapper {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.blocks-app-initial-spinner {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 48px;\n height: 48px;\n font-size: 48px;\n color: #1677ff;\n line-height: 0;\n}\n\n.blocks-app-initial-spinner-icon {\n width: 1em;\n height: 1em;\n fill: currentColor;\n display: inline-block;\n animation: blocks-app-initial-spinner-rotate 1s linear infinite;\n will-change: transform;\n}\n\n@keyframes blocks-app-initial-spinner-rotate {\n 100% {\n transform: rotate(360deg);\n }\n}";
120
- function O() {
48
+ var b = "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z", x = "\n.blocks-app-initial-spinner-wrapper {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.blocks-app-initial-spinner {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 48px;\n height: 48px;\n font-size: 48px;\n color: #1677ff;\n line-height: 0;\n}\n\n.blocks-app-initial-spinner-icon {\n width: 1em;\n height: 1em;\n fill: currentColor;\n display: inline-block;\n animation: blocks-app-initial-spinner-rotate 1s linear infinite;\n will-change: transform;\n}\n\n@keyframes blocks-app-initial-spinner-rotate {\n 100% {\n transform: rotate(360deg);\n }\n}";
49
+ function S() {
121
50
  return () => {};
122
51
  }
123
- function k(e, t) {
124
- if (!e || typeof document > "u") return O();
52
+ function C(e, t) {
53
+ if (!e || typeof document > "u") return S();
125
54
  e.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((e) => {
126
55
  e.remove();
127
56
  });
@@ -132,14 +61,98 @@ function k(e, t) {
132
61
  let i = "http://www.w3.org/2000/svg", a = document.createElementNS(i, "svg");
133
62
  a.setAttribute("viewBox", "0 0 1024 1024"), a.setAttribute("focusable", "false"), a.setAttribute("aria-hidden", "true"), a.classList.add("blocks-app-initial-spinner-icon");
134
63
  let o = document.createElementNS(i, "path");
135
- o.setAttribute("d", E), a.appendChild(o), r.appendChild(a), n.appendChild(r);
64
+ o.setAttribute("d", b), a.appendChild(o), r.appendChild(a), n.appendChild(r);
136
65
  let s = document.createElement("style");
137
- s.setAttribute(t, "true"), s.textContent = D, document.head?.appendChild(s), e.appendChild(n);
66
+ s.setAttribute(t, "true"), s.textContent = x, document.head?.appendChild(s), e.appendChild(n);
138
67
  let c = !1;
139
68
  return () => {
140
69
  c || (c = !0, n.remove(), s.remove());
141
70
  };
142
71
  }
72
+ //#endregion
73
+ //#region src/plugin/loader/warmup/appInit.ts
74
+ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new Map();
75
+ function E(e) {
76
+ return D(String(e || "").trim() || "https://app.emailmaker.ru/api/");
77
+ }
78
+ function D(e) {
79
+ let t = e;
80
+ for (; t.endsWith("/");) t = t.slice(0, t.length - 1);
81
+ return `${t}/wp-json`;
82
+ }
83
+ async function O(e) {
84
+ if (!e.getAuthToken) return;
85
+ let t = await e.getAuthToken(e.user, e.project, void 0);
86
+ return t ? `Bearer ${t}` : void 0;
87
+ }
88
+ function k(e) {
89
+ return async ({ baseUrl: t }) => {
90
+ let n = E(t);
91
+ if (!n) throw Error("[Loader] appInit warmup requires baseUrl or REACT_APP_OPENAPI_BASE_URL");
92
+ let r = new Headers({
93
+ Accept: "application/json",
94
+ "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
95
+ }), i = await O(e);
96
+ i && r.set("authorization", i);
97
+ let a = await fetch(`${n}/app/v1/app_init`, {
98
+ method: "POST",
99
+ headers: r,
100
+ body: new URLSearchParams(),
101
+ credentials: "same-origin"
102
+ });
103
+ if (!a.ok) throw Error(`[Loader] appInit request failed: ${a.status} ${a.statusText}`);
104
+ return a.json();
105
+ };
106
+ }
107
+ function A(e) {
108
+ return JSON.stringify({
109
+ baseUrl: E(e.baseUrl) || "",
110
+ project: e.project ?? "",
111
+ userId: e.user?.id ?? ""
112
+ });
113
+ }
114
+ function j(e) {
115
+ return async (t) => {
116
+ let n = A(t), r = T.get(n);
117
+ if (r) return r;
118
+ let i = Promise.resolve(e(t)).catch((e) => {
119
+ throw T.delete(n), e;
120
+ });
121
+ return T.set(n, i), i;
122
+ };
123
+ }
124
+ function M(e) {
125
+ if (e.standaloneKey) return e;
126
+ let t = e.appInit || k(e), n = w.get(t);
127
+ return n || (n = j(t), w.set(t, n)), Promise.resolve(n({
128
+ baseUrl: e.baseUrl,
129
+ user: e.user,
130
+ project: e.project,
131
+ prevApp: void 0
132
+ })).catch((e) => {}), {
133
+ ...e,
134
+ appInit: n
135
+ };
136
+ }
137
+ //#endregion
138
+ //#region src/plugin/loader/warmup/authToken.ts
139
+ var N = /* @__PURE__ */ new WeakMap();
140
+ function P(e) {
141
+ let t = null;
142
+ return async (n, r, i) => (t ||= Promise.resolve(e(n, r, i)).finally(() => {
143
+ t = null;
144
+ }), t);
145
+ }
146
+ function F(e) {
147
+ if (e.standaloneKey) return e;
148
+ let t = e.getAuthToken;
149
+ if (!t) return e;
150
+ let n = N.get(t);
151
+ return n || (n = P(t), N.set(t, n)), Promise.resolve(n(e.user, e.project, void 0)).catch((e) => {}), {
152
+ ...e,
153
+ getAuthToken: n
154
+ };
155
+ }
143
156
  (function() {
144
157
  var e = window.__emailmaker__ || (window.__emailmaker__ = {}), t = e.prefetch, n = e.modules && typeof e.modules == "object" ? e.modules : {}, r = [
145
158
  "React",
@@ -156,9 +169,11 @@ function k(e, t) {
156
169
  "Classnames",
157
170
  "Dayjs",
158
171
  "Uuid",
159
- "Core",
160
- "EmailmakerUiKit"
161
- ];
172
+ "Core"
173
+ ], i = e.__diagnostics ||= {}, a = i.runtimeLoads ||= {
174
+ entries: [],
175
+ warnings: []
176
+ };
162
177
  window.__emailmaker__.publicPath || (window.__emailmaker__.publicPath = (function() {
163
178
  var e = (function() {
164
179
  try {
@@ -197,17 +212,654 @@ function k(e, t) {
197
212
  return o.slice(-1) !== "/" && (o += "/"), t(o + a);
198
213
  }
199
214
  });
200
- var i = import("./static/esm/29eb18ff.js").then(function(e) {
215
+ var o = window.__emailmaker__ || (window.__emailmaker__ = {});
216
+ (function() {
217
+ if (o !== void 0 && o.define) return;
218
+ o === void 0 && (window.__amdEnv = {});
219
+ var e = {}, t = {}, n = {}, r = {}, i = {}, a = "./", s = {};
220
+ function c(e, t) {
221
+ var n = /* @__PURE__ */ Error("[AMD] Failed to load module \"" + e + "\"" + (t ? ": " + t.message : ""));
222
+ return n.moduleId = e, n.cause = t, n;
223
+ }
224
+ function l(e, t, n) {
225
+ var r = /* @__PURE__ */ Error("[AMD] Failed to resolve dependency \"" + t + "\" for module \"" + e + "\"" + (n ? ": " + n.message : ""));
226
+ return r.moduleId = e, r.dependencyId = t, r.cause = n, r;
227
+ }
228
+ function u(e) {
229
+ for (var t = String(e || "").split("/"), n = [], r = 0; r < t.length; r++) {
230
+ var i = t[r];
231
+ if (!(!i || i === ".")) {
232
+ if (i === "..") {
233
+ n.length > 0 && n.pop();
234
+ continue;
235
+ }
236
+ n.push(i);
237
+ }
238
+ }
239
+ return n.join("/");
240
+ }
241
+ function d(e) {
242
+ var t = String(e || "").replace(/\\/g, "/"), n = String(a || "./").replace(/\\/g, "/");
243
+ return n = n.replace(/^\.\/+/, ""), n = n.replace(/^\/+/, ""), n && n.slice(-1) !== "/" && (n += "/"), n && t.indexOf(n) === 0 && (t = t.slice(n.length)), t.indexOf("./") === 0 && (t = t.slice(2)), t;
244
+ }
245
+ function f(e, t) {
246
+ var n = String(e || "");
247
+ if (!n) return n;
248
+ if (!(n.indexOf("./") === 0 || n.indexOf("../") === 0)) return d(u(n));
249
+ var r = u(t || ""), i = r ? r.split("/") : [];
250
+ i.length > 0 && i.pop();
251
+ for (var a = n.split("/"), o = 0; o < a.length; o++) {
252
+ var s = a[o];
253
+ if (!(!s || s === ".")) {
254
+ if (s === "..") {
255
+ i.length > 0 && i.pop();
256
+ continue;
257
+ }
258
+ i.push(s);
259
+ }
260
+ }
261
+ return d(i.join("/"));
262
+ }
263
+ function p(e) {
264
+ return /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e) || e.indexOf("//") === 0;
265
+ }
266
+ function m(e) {
267
+ var t = String(e || "");
268
+ if (!t || p(t)) return t;
269
+ try {
270
+ var n = typeof document < "u" && document.baseURI ? document.baseURI : typeof window < "u" && window.location ? window.location.href : "";
271
+ return n ? new URL(t, n).href : t;
272
+ } catch {
273
+ return t;
274
+ }
275
+ }
276
+ function h() {
277
+ var e = String(a || "./");
278
+ if (e.slice(-1) !== "/" && (e += "/"), p(e) || e.charAt(0) === "/") return e;
279
+ if (o !== void 0 && o && o.publicPath) try {
280
+ return new URL(e, m(o.publicPath)).href;
281
+ } catch {}
282
+ return m(e);
283
+ }
284
+ function g(e, t) {
285
+ var n = f(e, t), r = h(), i = Object.prototype.hasOwnProperty.call(s, n) ? String(s[n] || "") : n;
286
+ i.slice(-3) !== ".js" && (i += ".js");
287
+ try {
288
+ return new URL(i, r).href;
289
+ } catch {
290
+ return r + i;
291
+ }
292
+ }
293
+ function _() {
294
+ if (typeof document > "u") return "";
295
+ var e = document.currentScript;
296
+ if (e) {
297
+ var t = e.getAttribute("data-amd-module-id");
298
+ if (t) return t;
299
+ }
300
+ return "";
301
+ }
302
+ function v(t, n, r) {
303
+ if (Array.isArray(t) ? (r = n, n = t, t = _()) : typeof t == "function" ? (r = t, n = [], t = _()) : typeof n == "function" && (r = n, n = []), !t) throw Error("[AMD] Anonymous define() could not be associated with a module id");
304
+ t in e || (e[t] = {
305
+ deps: n || [],
306
+ factory: r
307
+ });
308
+ }
309
+ v.amd = { async: !0 };
310
+ function y() {
311
+ return function() {};
312
+ }
313
+ function b(e, t) {
314
+ return {
315
+ id: e,
316
+ exports: t,
317
+ uri: g(e)
318
+ };
319
+ }
320
+ function x(e, t, n, r) {
321
+ if (Array.isArray(e)) {
322
+ var i = Promise.all(e.map(function(e) {
323
+ return C(e, r);
324
+ })).then(function(e) {
325
+ return t && t.apply(null, e), e;
326
+ });
327
+ return n && i.catch(n), i;
328
+ }
329
+ return C(e, r);
330
+ }
331
+ function S(a, o) {
332
+ if (Array.isArray(a)) throw Error("[AMD] syncRequire does not support dependency arrays");
333
+ var s = f(a, o);
334
+ if (s in i) throw i[s];
335
+ if (s in t) return t[s];
336
+ if (s in n || s in r) throw c(s, /* @__PURE__ */ Error("Module is still loading asynchronously"));
337
+ if (!(s in e)) throw c(s, /* @__PURE__ */ Error("Module is not available for syncRequire"));
338
+ return T(s);
339
+ }
340
+ function C(r, a) {
341
+ var o = f(r, a);
342
+ return o in i ? Promise.reject(i[o]) : o in t ? Promise.resolve(t[o]) : o in n ? n[o] : o in e ? (n[o] = w(o), n[o]) : (n[o] = D(o).then(function() {
343
+ if (!(o in e)) {
344
+ var t = c(o, /* @__PURE__ */ Error("Module not defined after script load"));
345
+ throw i[o] = t, t;
346
+ }
347
+ return w(o);
348
+ }).catch(function(e) {
349
+ delete n[o];
350
+ var t = c(o, e);
351
+ throw i[o] = t, t;
352
+ }), n[o]);
353
+ }
354
+ function w(r) {
355
+ var a = e[r], o = E(r), s = y(), c = b(r, s);
356
+ return Promise.all(a.deps.map(function(e) {
357
+ return e === "exports" ? s : e === "require" ? o : e === "module" ? c : C(e, r).catch(function(t) {
358
+ throw l(r, e, t);
359
+ });
360
+ })).then(function(e) {
361
+ var i = a.factory.apply(null, e);
362
+ return i && typeof i.then == "function" ? i.then(function(e) {
363
+ return t[r] = e === void 0 ? c.exports : e, delete n[r], t[r];
364
+ }) : (t[r] = i === void 0 ? c.exports : i, delete n[r], t[r]);
365
+ }).catch(function(e) {
366
+ throw delete n[r], i[r] = e, e;
367
+ });
368
+ }
369
+ function T(n) {
370
+ var r = e[n], a = E(n), o = y(), s = b(n, o);
371
+ try {
372
+ var u = r.deps.map(function(e) {
373
+ if (e === "exports") return o;
374
+ if (e === "require") return a;
375
+ if (e === "module") return s;
376
+ try {
377
+ return S(e, n);
378
+ } catch (t) {
379
+ throw l(n, e, t);
380
+ }
381
+ }), d = r.factory.apply(null, u);
382
+ if (d && typeof d.then == "function") throw c(n, /* @__PURE__ */ Error("Module resolved asynchronously and cannot be syncRequired"));
383
+ return t[n] = d === void 0 ? s.exports : d, t[n];
384
+ } catch (e) {
385
+ throw i[n] = e, e;
386
+ }
387
+ }
388
+ function E(n) {
389
+ var r = function(r, i, a) {
390
+ if (Array.isArray(r)) return x(r, i, a, n);
391
+ var o = f(r, n);
392
+ return o in t ? t[o] : o in e ? S(r, n) : C(r, n);
393
+ };
394
+ return r.resolve = function(e) {
395
+ return f(e, n);
396
+ }, r.toUrl = function(e) {
397
+ return g(e, n);
398
+ }, r.sync = function(e) {
399
+ return S(e, n);
400
+ }, r;
401
+ }
402
+ function D(e) {
403
+ if (e in r) return r[e];
404
+ var t = g(e);
405
+ return document.querySelector("script[src=\"" + t + "\"]") ? (r[e] = Promise.resolve(), r[e]) : (r[e] = new Promise(function(n, i) {
406
+ var a = document.createElement("script");
407
+ a.src = t, a.setAttribute("data-amd-module-id", e), a.async = !0, a.onload = function() {
408
+ n();
409
+ }, a.onerror = function() {
410
+ delete r[e], i(/* @__PURE__ */ Error("Failed to load script: " + t));
411
+ }, document.head.appendChild(a);
412
+ }), r[e]);
413
+ }
414
+ x.config = function(e) {
415
+ if (e.baseUrl && (a = e.baseUrl), e.paths) for (var t in e.paths) Object.prototype.hasOwnProperty.call(e.paths, t) && (s[t] = e.paths[t]);
416
+ }, x.modules = e, x.resolved = t, x.errors = i, x.toUrl = g, x.sync = S, o.define = v, o.require = x, o.syncRequire = S;
417
+ })(), o.require.config({
418
+ baseUrl: "./",
419
+ paths: { core: "emailmaker-core.ed344c04.js" }
420
+ });
421
+ var s = import("./static/esm/4b679053.js").then(function(e) {
201
422
  for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && (n[t] = e[t]);
202
423
  return e;
203
- });
204
- e.modules = n, r.forEach(function(e) {
205
- n[e] = i.then(function(t) {
424
+ }), c = {
425
+ source: "legacy-shared",
426
+ modulesObject: n,
427
+ modulesPromise: s,
428
+ previousPrefetch: t,
429
+ stack: (/* @__PURE__ */ Error()).stack,
430
+ timestamp: Date.now()
431
+ };
432
+ if (a.entries.length > 0) {
433
+ var l = a.entries[a.entries.length - 1];
434
+ if (l && l.modulesObject !== n) {
435
+ var u = {
436
+ message: "[runtime] Duplicate runtime shared initialization detected",
437
+ current: c,
438
+ previous: l,
439
+ timestamp: Date.now()
440
+ };
441
+ a.warnings.push(u), typeof console < "u" && typeof console.warn == "function" && u.message;
442
+ }
443
+ }
444
+ if (a.entries.push(c), e.modules = n, r.forEach(function(e) {
445
+ n[e] = s.then(function(t) {
206
446
  var r = t[e];
207
447
  return n[e] = r, r;
208
448
  });
209
- }), e.prefetch = function() {
210
- return i.then(function() {
449
+ }), typeof e.define == "function") {
450
+ function t(e) {
451
+ if (!e || typeof e != "object" && typeof e != "function" || e.__esModule) return e;
452
+ var t = Object.create(null);
453
+ Object.defineProperties(t, {
454
+ __esModule: { value: !0 },
455
+ [Symbol.toStringTag]: { value: "Module" }
456
+ });
457
+ for (var n = Reflect.ownKeys(e), r = 0; r < n.length; r++) {
458
+ var i = n[r];
459
+ if (i !== "__esModule") {
460
+ var a = Object.getOwnPropertyDescriptor(e, i);
461
+ a && Object.defineProperty(t, i, a);
462
+ }
463
+ }
464
+ return t;
465
+ }
466
+ var d = e.__diagnostics ||= {}, f = d.runtimeLoads ||= {
467
+ entries: [],
468
+ warnings: []
469
+ }, p = d.runtimeModules ||= {
470
+ byModuleId: Object.create(null),
471
+ byExportName: Object.create(null),
472
+ warnings: []
473
+ };
474
+ function r(e, t) {
475
+ var n = {
476
+ message: e,
477
+ payload: t,
478
+ timestamp: Date.now()
479
+ };
480
+ p.warnings.push(n), f && f.warnings && f.warnings.push(n);
481
+ }
482
+ function i(e, t, n, i, a) {
483
+ var o = p.byModuleId[e];
484
+ o ||= p.byModuleId[e] = {
485
+ moduleId: e,
486
+ exportName: t,
487
+ records: [],
488
+ duplicateWarningShown: !1
489
+ };
490
+ var s = p.byExportName[t];
491
+ s ||= p.byExportName[t] = {
492
+ exportName: t,
493
+ moduleIds: [],
494
+ records: []
495
+ }, s.moduleIds.indexOf(e) < 0 && s.moduleIds.push(e);
496
+ var c = {
497
+ source: a,
498
+ originalValue: n,
499
+ resolvedValue: i,
500
+ timestamp: Date.now(),
501
+ stack: (/* @__PURE__ */ Error()).stack
502
+ };
503
+ return o.records.push(c), s.records.push(c), o.firstResolvedValue ? (o.firstResolvedValue !== i && o.firstOriginalValue !== n && !o.duplicateWarningShown && (o.duplicateWarningShown = !0, r("[runtime] Duplicate runtime module detected", {
504
+ moduleId: e,
505
+ exportName: t,
506
+ first: {
507
+ originalValue: o.firstOriginalValue,
508
+ resolvedValue: o.firstResolvedValue
509
+ },
510
+ second: {
511
+ originalValue: n,
512
+ resolvedValue: i
513
+ },
514
+ records: o.records
515
+ })), i) : (o.firstResolvedValue = i, o.firstOriginalValue = n, i);
516
+ }
517
+ e.define("react", [], function() {
518
+ var e = n.React;
519
+ return e && typeof e.then == "function" ? s.then(function(e) {
520
+ var n = e.React;
521
+ return i("react", "React", n, t(n), "barrel-promise");
522
+ }) : e === void 0 ? s.then(function(e) {
523
+ var n = e.React;
524
+ return i("react", "React", n, t(n), "barrel-fallback");
525
+ }) : i("react", "React", e, t(e), "modules-cache");
526
+ }), e.define("@emailmaker/emailmaker/runtime/react", [], function() {
527
+ var e = n.React;
528
+ return e && typeof e.then == "function" ? s.then(function(e) {
529
+ var n = e.React;
530
+ return i("@emailmaker/emailmaker/runtime/react", "React", n, t(n), "barrel-promise");
531
+ }) : e === void 0 ? s.then(function(e) {
532
+ var n = e.React;
533
+ return i("@emailmaker/emailmaker/runtime/react", "React", n, t(n), "barrel-fallback");
534
+ }) : i("@emailmaker/emailmaker/runtime/react", "React", e, t(e), "modules-cache");
535
+ }), e.define("react-dom", [], function() {
536
+ var e = n.ReactDom;
537
+ return e && typeof e.then == "function" ? s.then(function(e) {
538
+ var n = e.ReactDom;
539
+ return i("react-dom", "ReactDom", n, t(n), "barrel-promise");
540
+ }) : e === void 0 ? s.then(function(e) {
541
+ var n = e.ReactDom;
542
+ return i("react-dom", "ReactDom", n, t(n), "barrel-fallback");
543
+ }) : i("react-dom", "ReactDom", e, t(e), "modules-cache");
544
+ }), e.define("@emailmaker/emailmaker/runtime/react-dom", [], function() {
545
+ var e = n.ReactDom;
546
+ return e && typeof e.then == "function" ? s.then(function(e) {
547
+ var n = e.ReactDom;
548
+ return i("@emailmaker/emailmaker/runtime/react-dom", "ReactDom", n, t(n), "barrel-promise");
549
+ }) : e === void 0 ? s.then(function(e) {
550
+ var n = e.ReactDom;
551
+ return i("@emailmaker/emailmaker/runtime/react-dom", "ReactDom", n, t(n), "barrel-fallback");
552
+ }) : i("@emailmaker/emailmaker/runtime/react-dom", "ReactDom", e, t(e), "modules-cache");
553
+ }), e.define("react-dom/client", [], function() {
554
+ var e = n.ReactDomClient;
555
+ return e && typeof e.then == "function" ? s.then(function(e) {
556
+ var n = e.ReactDomClient;
557
+ return i("react-dom/client", "ReactDomClient", n, t(n), "barrel-promise");
558
+ }) : e === void 0 ? s.then(function(e) {
559
+ var n = e.ReactDomClient;
560
+ return i("react-dom/client", "ReactDomClient", n, t(n), "barrel-fallback");
561
+ }) : i("react-dom/client", "ReactDomClient", e, t(e), "modules-cache");
562
+ }), e.define("@emailmaker/emailmaker/runtime/react-dom/client", [], function() {
563
+ var e = n.ReactDomClient;
564
+ return e && typeof e.then == "function" ? s.then(function(e) {
565
+ var n = e.ReactDomClient;
566
+ return i("@emailmaker/emailmaker/runtime/react-dom/client", "ReactDomClient", n, t(n), "barrel-promise");
567
+ }) : e === void 0 ? s.then(function(e) {
568
+ var n = e.ReactDomClient;
569
+ return i("@emailmaker/emailmaker/runtime/react-dom/client", "ReactDomClient", n, t(n), "barrel-fallback");
570
+ }) : i("@emailmaker/emailmaker/runtime/react-dom/client", "ReactDomClient", e, t(e), "modules-cache");
571
+ }), e.define("react/jsx-runtime", [], function() {
572
+ var e = n.ReactJsxRuntime;
573
+ return e && typeof e.then == "function" ? s.then(function(e) {
574
+ var n = e.ReactJsxRuntime;
575
+ return i("react/jsx-runtime", "ReactJsxRuntime", n, t(n), "barrel-promise");
576
+ }) : e === void 0 ? s.then(function(e) {
577
+ var n = e.ReactJsxRuntime;
578
+ return i("react/jsx-runtime", "ReactJsxRuntime", n, t(n), "barrel-fallback");
579
+ }) : i("react/jsx-runtime", "ReactJsxRuntime", e, t(e), "modules-cache");
580
+ }), e.define("@emailmaker/emailmaker/runtime/react/jsx-runtime", [], function() {
581
+ var e = n.ReactJsxRuntime;
582
+ return e && typeof e.then == "function" ? s.then(function(e) {
583
+ var n = e.ReactJsxRuntime;
584
+ return i("@emailmaker/emailmaker/runtime/react/jsx-runtime", "ReactJsxRuntime", n, t(n), "barrel-promise");
585
+ }) : e === void 0 ? s.then(function(e) {
586
+ var n = e.ReactJsxRuntime;
587
+ return i("@emailmaker/emailmaker/runtime/react/jsx-runtime", "ReactJsxRuntime", n, t(n), "barrel-fallback");
588
+ }) : i("@emailmaker/emailmaker/runtime/react/jsx-runtime", "ReactJsxRuntime", e, t(e), "modules-cache");
589
+ }), e.define("react/jsx-dev-runtime", [], function() {
590
+ var e = n.ReactJsxDevRuntime;
591
+ return e && typeof e.then == "function" ? s.then(function(e) {
592
+ var n = e.ReactJsxDevRuntime;
593
+ return i("react/jsx-dev-runtime", "ReactJsxDevRuntime", n, t(n), "barrel-promise");
594
+ }) : e === void 0 ? s.then(function(e) {
595
+ var n = e.ReactJsxDevRuntime;
596
+ return i("react/jsx-dev-runtime", "ReactJsxDevRuntime", n, t(n), "barrel-fallback");
597
+ }) : i("react/jsx-dev-runtime", "ReactJsxDevRuntime", e, t(e), "modules-cache");
598
+ }), e.define("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime", [], function() {
599
+ var e = n.ReactJsxDevRuntime;
600
+ return e && typeof e.then == "function" ? s.then(function(e) {
601
+ var n = e.ReactJsxDevRuntime;
602
+ return i("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime", "ReactJsxDevRuntime", n, t(n), "barrel-promise");
603
+ }) : e === void 0 ? s.then(function(e) {
604
+ var n = e.ReactJsxDevRuntime;
605
+ return i("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime", "ReactJsxDevRuntime", n, t(n), "barrel-fallback");
606
+ }) : i("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime", "ReactJsxDevRuntime", e, t(e), "modules-cache");
607
+ }), e.define("prop-types", [], function() {
608
+ var e = n.PropTypes;
609
+ return e && typeof e.then == "function" ? s.then(function(e) {
610
+ var n = e.PropTypes;
611
+ return i("prop-types", "PropTypes", n, t(n), "barrel-promise");
612
+ }) : e === void 0 ? s.then(function(e) {
613
+ var n = e.PropTypes;
614
+ return i("prop-types", "PropTypes", n, t(n), "barrel-fallback");
615
+ }) : i("prop-types", "PropTypes", e, t(e), "modules-cache");
616
+ }), e.define("@emailmaker/emailmaker/runtime/prop-types", [], function() {
617
+ var e = n.PropTypes;
618
+ return e && typeof e.then == "function" ? s.then(function(e) {
619
+ var n = e.PropTypes;
620
+ return i("@emailmaker/emailmaker/runtime/prop-types", "PropTypes", n, t(n), "barrel-promise");
621
+ }) : e === void 0 ? s.then(function(e) {
622
+ var n = e.PropTypes;
623
+ return i("@emailmaker/emailmaker/runtime/prop-types", "PropTypes", n, t(n), "barrel-fallback");
624
+ }) : i("@emailmaker/emailmaker/runtime/prop-types", "PropTypes", e, t(e), "modules-cache");
625
+ }), e.define("react-router-dom", [], function() {
626
+ var e = n.ReactRouterDom;
627
+ return e && typeof e.then == "function" ? s.then(function(e) {
628
+ var n = e.ReactRouterDom;
629
+ return i("react-router-dom", "ReactRouterDom", n, t(n), "barrel-promise");
630
+ }) : e === void 0 ? s.then(function(e) {
631
+ var n = e.ReactRouterDom;
632
+ return i("react-router-dom", "ReactRouterDom", n, t(n), "barrel-fallback");
633
+ }) : i("react-router-dom", "ReactRouterDom", e, t(e), "modules-cache");
634
+ }), e.define("@emailmaker/emailmaker/runtime/react-router-dom", [], function() {
635
+ var e = n.ReactRouterDom;
636
+ return e && typeof e.then == "function" ? s.then(function(e) {
637
+ var n = e.ReactRouterDom;
638
+ return i("@emailmaker/emailmaker/runtime/react-router-dom", "ReactRouterDom", n, t(n), "barrel-promise");
639
+ }) : e === void 0 ? s.then(function(e) {
640
+ var n = e.ReactRouterDom;
641
+ return i("@emailmaker/emailmaker/runtime/react-router-dom", "ReactRouterDom", n, t(n), "barrel-fallback");
642
+ }) : i("@emailmaker/emailmaker/runtime/react-router-dom", "ReactRouterDom", e, t(e), "modules-cache");
643
+ }), e.define("antd", [], function() {
644
+ var e = n.Antd;
645
+ return e && typeof e.then == "function" ? s.then(function(e) {
646
+ var n = e.Antd;
647
+ return i("antd", "Antd", n, t(n), "barrel-promise");
648
+ }) : e === void 0 ? s.then(function(e) {
649
+ var n = e.Antd;
650
+ return i("antd", "Antd", n, t(n), "barrel-fallback");
651
+ }) : i("antd", "Antd", e, t(e), "modules-cache");
652
+ }), e.define("@emailmaker/emailmaker/runtime/antd", [], function() {
653
+ var e = n.Antd;
654
+ return e && typeof e.then == "function" ? s.then(function(e) {
655
+ var n = e.Antd;
656
+ return i("@emailmaker/emailmaker/runtime/antd", "Antd", n, t(n), "barrel-promise");
657
+ }) : e === void 0 ? s.then(function(e) {
658
+ var n = e.Antd;
659
+ return i("@emailmaker/emailmaker/runtime/antd", "Antd", n, t(n), "barrel-fallback");
660
+ }) : i("@emailmaker/emailmaker/runtime/antd", "Antd", e, t(e), "modules-cache");
661
+ }), e.define("@ant-design/icons", [], function() {
662
+ var e = n.AntDesignIcons;
663
+ return e && typeof e.then == "function" ? s.then(function(e) {
664
+ var n = e.AntDesignIcons;
665
+ return i("@ant-design/icons", "AntDesignIcons", n, t(n), "barrel-promise");
666
+ }) : e === void 0 ? s.then(function(e) {
667
+ var n = e.AntDesignIcons;
668
+ return i("@ant-design/icons", "AntDesignIcons", n, t(n), "barrel-fallback");
669
+ }) : i("@ant-design/icons", "AntDesignIcons", e, t(e), "modules-cache");
670
+ }), e.define("@emailmaker/emailmaker/runtime/@ant-design/icons", [], function() {
671
+ var e = n.AntDesignIcons;
672
+ return e && typeof e.then == "function" ? s.then(function(e) {
673
+ var n = e.AntDesignIcons;
674
+ return i("@emailmaker/emailmaker/runtime/@ant-design/icons", "AntDesignIcons", n, t(n), "barrel-promise");
675
+ }) : e === void 0 ? s.then(function(e) {
676
+ var n = e.AntDesignIcons;
677
+ return i("@emailmaker/emailmaker/runtime/@ant-design/icons", "AntDesignIcons", n, t(n), "barrel-fallback");
678
+ }) : i("@emailmaker/emailmaker/runtime/@ant-design/icons", "AntDesignIcons", e, t(e), "modules-cache");
679
+ }), e.define("@ant-design/cssinjs", [], function() {
680
+ var e = n.AntDesignCssinjs;
681
+ return e && typeof e.then == "function" ? s.then(function(e) {
682
+ var n = e.AntDesignCssinjs;
683
+ return i("@ant-design/cssinjs", "AntDesignCssinjs", n, t(n), "barrel-promise");
684
+ }) : e === void 0 ? s.then(function(e) {
685
+ var n = e.AntDesignCssinjs;
686
+ return i("@ant-design/cssinjs", "AntDesignCssinjs", n, t(n), "barrel-fallback");
687
+ }) : i("@ant-design/cssinjs", "AntDesignCssinjs", e, t(e), "modules-cache");
688
+ }), e.define("@emailmaker/emailmaker/runtime/@ant-design/cssinjs", [], function() {
689
+ var e = n.AntDesignCssinjs;
690
+ return e && typeof e.then == "function" ? s.then(function(e) {
691
+ var n = e.AntDesignCssinjs;
692
+ return i("@emailmaker/emailmaker/runtime/@ant-design/cssinjs", "AntDesignCssinjs", n, t(n), "barrel-promise");
693
+ }) : e === void 0 ? s.then(function(e) {
694
+ var n = e.AntDesignCssinjs;
695
+ return i("@emailmaker/emailmaker/runtime/@ant-design/cssinjs", "AntDesignCssinjs", n, t(n), "barrel-fallback");
696
+ }) : i("@emailmaker/emailmaker/runtime/@ant-design/cssinjs", "AntDesignCssinjs", e, t(e), "modules-cache");
697
+ }), e.define("@ant-design/pro-layout", [], function() {
698
+ var e = n.AntDesignProLayout;
699
+ return e && typeof e.then == "function" ? s.then(function(e) {
700
+ var n = e.AntDesignProLayout;
701
+ return i("@ant-design/pro-layout", "AntDesignProLayout", n, t(n), "barrel-promise");
702
+ }) : e === void 0 ? s.then(function(e) {
703
+ var n = e.AntDesignProLayout;
704
+ return i("@ant-design/pro-layout", "AntDesignProLayout", n, t(n), "barrel-fallback");
705
+ }) : i("@ant-design/pro-layout", "AntDesignProLayout", e, t(e), "modules-cache");
706
+ }), e.define("@emailmaker/emailmaker/runtime/@ant-design/pro-layout", [], function() {
707
+ var e = n.AntDesignProLayout;
708
+ return e && typeof e.then == "function" ? s.then(function(e) {
709
+ var n = e.AntDesignProLayout;
710
+ return i("@emailmaker/emailmaker/runtime/@ant-design/pro-layout", "AntDesignProLayout", n, t(n), "barrel-promise");
711
+ }) : e === void 0 ? s.then(function(e) {
712
+ var n = e.AntDesignProLayout;
713
+ return i("@emailmaker/emailmaker/runtime/@ant-design/pro-layout", "AntDesignProLayout", n, t(n), "barrel-fallback");
714
+ }) : i("@emailmaker/emailmaker/runtime/@ant-design/pro-layout", "AntDesignProLayout", e, t(e), "modules-cache");
715
+ }), e.define("classnames", [], function() {
716
+ var e = n.Classnames;
717
+ return e && typeof e.then == "function" ? s.then(function(e) {
718
+ var n = e.Classnames;
719
+ return i("classnames", "Classnames", n, t(n), "barrel-promise");
720
+ }) : e === void 0 ? s.then(function(e) {
721
+ var n = e.Classnames;
722
+ return i("classnames", "Classnames", n, t(n), "barrel-fallback");
723
+ }) : i("classnames", "Classnames", e, t(e), "modules-cache");
724
+ }), e.define("@emailmaker/emailmaker/runtime/classnames", [], function() {
725
+ var e = n.Classnames;
726
+ return e && typeof e.then == "function" ? s.then(function(e) {
727
+ var n = e.Classnames;
728
+ return i("@emailmaker/emailmaker/runtime/classnames", "Classnames", n, t(n), "barrel-promise");
729
+ }) : e === void 0 ? s.then(function(e) {
730
+ var n = e.Classnames;
731
+ return i("@emailmaker/emailmaker/runtime/classnames", "Classnames", n, t(n), "barrel-fallback");
732
+ }) : i("@emailmaker/emailmaker/runtime/classnames", "Classnames", e, t(e), "modules-cache");
733
+ }), e.define("dayjs", [], function() {
734
+ var e = n.Dayjs;
735
+ return e && typeof e.then == "function" ? s.then(function(e) {
736
+ var n = e.Dayjs;
737
+ return i("dayjs", "Dayjs", n, t(n), "barrel-promise");
738
+ }) : e === void 0 ? s.then(function(e) {
739
+ var n = e.Dayjs;
740
+ return i("dayjs", "Dayjs", n, t(n), "barrel-fallback");
741
+ }) : i("dayjs", "Dayjs", e, t(e), "modules-cache");
742
+ }), e.define("@emailmaker/emailmaker/runtime/dayjs", [], function() {
743
+ var e = n.Dayjs;
744
+ return e && typeof e.then == "function" ? s.then(function(e) {
745
+ var n = e.Dayjs;
746
+ return i("@emailmaker/emailmaker/runtime/dayjs", "Dayjs", n, t(n), "barrel-promise");
747
+ }) : e === void 0 ? s.then(function(e) {
748
+ var n = e.Dayjs;
749
+ return i("@emailmaker/emailmaker/runtime/dayjs", "Dayjs", n, t(n), "barrel-fallback");
750
+ }) : i("@emailmaker/emailmaker/runtime/dayjs", "Dayjs", e, t(e), "modules-cache");
751
+ }), e.define("uuid", [], function() {
752
+ var e = n.Uuid;
753
+ return e && typeof e.then == "function" ? s.then(function(e) {
754
+ var n = e.Uuid;
755
+ return i("uuid", "Uuid", n, t(n), "barrel-promise");
756
+ }) : e === void 0 ? s.then(function(e) {
757
+ var n = e.Uuid;
758
+ return i("uuid", "Uuid", n, t(n), "barrel-fallback");
759
+ }) : i("uuid", "Uuid", e, t(e), "modules-cache");
760
+ }), e.define("@emailmaker/emailmaker/runtime/uuid", [], function() {
761
+ var e = n.Uuid;
762
+ return e && typeof e.then == "function" ? s.then(function(e) {
763
+ var n = e.Uuid;
764
+ return i("@emailmaker/emailmaker/runtime/uuid", "Uuid", n, t(n), "barrel-promise");
765
+ }) : e === void 0 ? s.then(function(e) {
766
+ var n = e.Uuid;
767
+ return i("@emailmaker/emailmaker/runtime/uuid", "Uuid", n, t(n), "barrel-fallback");
768
+ }) : i("@emailmaker/emailmaker/runtime/uuid", "Uuid", e, t(e), "modules-cache");
769
+ }), e.define("di", [], function() {
770
+ var e = n.Core;
771
+ return e && typeof e.then == "function" ? s.then(function(e) {
772
+ var n = e.Core;
773
+ return i("di", "Core", n, t(n), "barrel-promise");
774
+ }) : e === void 0 ? s.then(function(e) {
775
+ var n = e.Core;
776
+ return i("di", "Core", n, t(n), "barrel-fallback");
777
+ }) : i("di", "Core", e, t(e), "modules-cache");
778
+ }), e.define("@emailmaker/emailmaker/runtime/di", [], function() {
779
+ var e = n.Core;
780
+ return e && typeof e.then == "function" ? s.then(function(e) {
781
+ var n = e.Core;
782
+ return i("@emailmaker/emailmaker/runtime/di", "Core", n, t(n), "barrel-promise");
783
+ }) : e === void 0 ? s.then(function(e) {
784
+ var n = e.Core;
785
+ return i("@emailmaker/emailmaker/runtime/di", "Core", n, t(n), "barrel-fallback");
786
+ }) : i("@emailmaker/emailmaker/runtime/di", "Core", e, t(e), "modules-cache");
787
+ }), e.define("disposable", [], function() {
788
+ var e = n.Core;
789
+ return e && typeof e.then == "function" ? s.then(function(e) {
790
+ var n = e.Core;
791
+ return i("disposable", "Core", n, t(n), "barrel-promise");
792
+ }) : e === void 0 ? s.then(function(e) {
793
+ var n = e.Core;
794
+ return i("disposable", "Core", n, t(n), "barrel-fallback");
795
+ }) : i("disposable", "Core", e, t(e), "modules-cache");
796
+ }), e.define("@emailmaker/emailmaker/runtime/disposable", [], function() {
797
+ var e = n.Core;
798
+ return e && typeof e.then == "function" ? s.then(function(e) {
799
+ var n = e.Core;
800
+ return i("@emailmaker/emailmaker/runtime/disposable", "Core", n, t(n), "barrel-promise");
801
+ }) : e === void 0 ? s.then(function(e) {
802
+ var n = e.Core;
803
+ return i("@emailmaker/emailmaker/runtime/disposable", "Core", n, t(n), "barrel-fallback");
804
+ }) : i("@emailmaker/emailmaker/runtime/disposable", "Core", e, t(e), "modules-cache");
805
+ }), e.define("guid", [], function() {
806
+ var e = n.Core;
807
+ return e && typeof e.then == "function" ? s.then(function(e) {
808
+ var n = e.Core;
809
+ return i("guid", "Core", n, t(n), "barrel-promise");
810
+ }) : e === void 0 ? s.then(function(e) {
811
+ var n = e.Core;
812
+ return i("guid", "Core", n, t(n), "barrel-fallback");
813
+ }) : i("guid", "Core", e, t(e), "modules-cache");
814
+ }), e.define("@emailmaker/emailmaker/runtime/guid", [], function() {
815
+ var e = n.Core;
816
+ return e && typeof e.then == "function" ? s.then(function(e) {
817
+ var n = e.Core;
818
+ return i("@emailmaker/emailmaker/runtime/guid", "Core", n, t(n), "barrel-promise");
819
+ }) : e === void 0 ? s.then(function(e) {
820
+ var n = e.Core;
821
+ return i("@emailmaker/emailmaker/runtime/guid", "Core", n, t(n), "barrel-fallback");
822
+ }) : i("@emailmaker/emailmaker/runtime/guid", "Core", e, t(e), "modules-cache");
823
+ }), e.define("app-core", [], function() {
824
+ var e = n.Core;
825
+ return e && typeof e.then == "function" ? s.then(function(e) {
826
+ var n = e.Core;
827
+ return i("app-core", "Core", n, t(n), "barrel-promise");
828
+ }) : e === void 0 ? s.then(function(e) {
829
+ var n = e.Core;
830
+ return i("app-core", "Core", n, t(n), "barrel-fallback");
831
+ }) : i("app-core", "Core", e, t(e), "modules-cache");
832
+ }), e.define("@emailmaker/emailmaker/runtime/app-core", [], function() {
833
+ var e = n.Core;
834
+ return e && typeof e.then == "function" ? s.then(function(e) {
835
+ var n = e.Core;
836
+ return i("@emailmaker/emailmaker/runtime/app-core", "Core", n, t(n), "barrel-promise");
837
+ }) : e === void 0 ? s.then(function(e) {
838
+ var n = e.Core;
839
+ return i("@emailmaker/emailmaker/runtime/app-core", "Core", n, t(n), "barrel-fallback");
840
+ }) : i("@emailmaker/emailmaker/runtime/app-core", "Core", e, t(e), "modules-cache");
841
+ }), e.define("errors-runtime", [], function() {
842
+ var e = n.Core;
843
+ return e && typeof e.then == "function" ? s.then(function(e) {
844
+ var n = e.Core;
845
+ return i("errors-runtime", "Core", n, t(n), "barrel-promise");
846
+ }) : e === void 0 ? s.then(function(e) {
847
+ var n = e.Core;
848
+ return i("errors-runtime", "Core", n, t(n), "barrel-fallback");
849
+ }) : i("errors-runtime", "Core", e, t(e), "modules-cache");
850
+ }), e.define("@emailmaker/emailmaker/runtime/errors-runtime", [], function() {
851
+ var e = n.Core;
852
+ return e && typeof e.then == "function" ? s.then(function(e) {
853
+ var n = e.Core;
854
+ return i("@emailmaker/emailmaker/runtime/errors-runtime", "Core", n, t(n), "barrel-promise");
855
+ }) : e === void 0 ? s.then(function(e) {
856
+ var n = e.Core;
857
+ return i("@emailmaker/emailmaker/runtime/errors-runtime", "Core", n, t(n), "barrel-fallback");
858
+ }) : i("@emailmaker/emailmaker/runtime/errors-runtime", "Core", e, t(e), "modules-cache");
859
+ });
860
+ }
861
+ e.prefetch = function() {
862
+ return s.then(function() {
211
863
  if (typeof t == "function") return t();
212
864
  });
213
865
  };
@@ -265,9 +917,8 @@ function k(e, t) {
265
917
  }, n.registerPackage ||= function(e) {
266
918
  n.packages[e.id] = e, n.validateAll();
267
919
  }, t.__compat.registerHost({
268
- version: "1.0.107-dev.3",
920
+ version: "1.0.107-dev.5",
269
921
  supports: {
270
- "ui-kit": "^0.1.0",
271
922
  "extensions-api": "^0.9.0",
272
923
  "extensions-react": "^0.9.0",
273
924
  "extensions-sandbox": "^0.9.0"
@@ -275,45 +926,29 @@ function k(e, t) {
275
926
  });
276
927
  }
277
928
  })(typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : void 0);
278
- var A = /* @__PURE__ */ new WeakMap();
279
- function j(e) {
280
- let t = null;
281
- return async (n, r, i) => (t ||= Promise.resolve(e(n, r, i)).finally(() => {
282
- t = null;
283
- }), t);
284
- }
285
- function M(e) {
286
- let t = e.getAuthToken;
287
- if (!t) return e;
288
- let n = A.get(t);
289
- return n || (n = j(t), A.set(t, n), Promise.resolve(n(e.user, e.project, void 0)).catch((e) => {})), {
290
- ...e,
291
- getAuthToken: n
292
- };
293
- }
294
- function N(e, t) {
929
+ function I(e, t) {
295
930
  return {
296
931
  ...e,
297
932
  element: t
298
933
  };
299
934
  }
300
- function P() {
935
+ function L() {
301
936
  return () => {};
302
937
  }
303
- function F(e) {
938
+ function R(e) {
304
939
  if (e.initialSpinner === !1 || typeof document > "u") return {
305
940
  options: e,
306
- cleanup: P()
941
+ cleanup: L()
307
942
  };
308
943
  let t = e.element;
309
944
  if (!t || typeof t == "string") return {
310
945
  options: e,
311
- cleanup: P()
946
+ cleanup: L()
312
947
  };
313
948
  t.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((e) => {
314
949
  e.remove();
315
950
  });
316
- let n = k(t, "data-emailmaker"), r = e.handleChunkLoaded;
951
+ let n = C(t, "data-emailmaker"), r = e.handleChunkLoaded;
317
952
  return {
318
953
  options: {
319
954
  ...e,
@@ -324,14 +959,14 @@ function F(e) {
324
959
  cleanup: n
325
960
  };
326
961
  }
327
- var I = "1.0.107-dev.3";
328
- async function L(e) {
329
- await x(window.__emailmaker__ === void 0 ? void 0 : window.__emailmaker__);
962
+ var z = "1.0.107-dev.5";
963
+ async function B(e) {
964
+ await h(window.__emailmaker__ === void 0 ? void 0 : window.__emailmaker__);
330
965
  }
331
- async function R(r) {
966
+ async function V(r) {
332
967
  let i = new t.Disposable(), a = await e(r.element, i);
333
968
  i.dispose();
334
- let o = M(N(r, a));
969
+ let o = M(F(I(r, a)));
335
970
  if (a) {
336
971
  let e = n.get(a);
337
972
  if (e) try {
@@ -341,20 +976,20 @@ async function R(r) {
341
976
  n.get(a) === e && n.delete(a);
342
977
  }
343
978
  }
344
- let s = F(o), c = s.options;
345
- await y(), w(window.__emailmaker__ === void 0 ? void 0 : window.__emailmaker__);
346
- let l = h().then((e) => e.init(c));
347
- a && n.set(a, l);
979
+ let s = R(o), c = s.options;
980
+ await p(), v(window.__emailmaker__ === void 0 ? void 0 : window.__emailmaker__);
981
+ let u = l().then((e) => e.init(c));
982
+ a && n.set(a, u);
348
983
  try {
349
- let e = await l;
984
+ let e = await u;
350
985
  return a && n.set(a, e), e;
351
986
  } catch (e) {
352
- throw s.cleanup(), a && n.get(a) === l && n.delete(a), e;
987
+ throw s.cleanup(), a && n.get(a) === u && n.delete(a), e;
353
988
  }
354
989
  }
355
- async function z(e) {
356
- return (await h()).parseAMP(e);
990
+ async function H(e) {
991
+ return (await l()).parseAMP(e);
357
992
  }
358
- typeof window < "u" && T(window.__emailmaker__ === void 0 ? void 0 : window.__emailmaker__);
993
+ typeof window < "u" && y(window.__emailmaker__ === void 0 ? void 0 : window.__emailmaker__);
359
994
  //#endregion
360
- export { i as errors, a as helpers, R as init, z as parseAMP, r as pluginRegistry, L as preload, I as version };
995
+ export { i as errors, a as helpers, V as init, H as parseAMP, r as pluginRegistry, B as preload, z as version };