@emailmaker/emailmaker 1.0.107-dev.3 → 1.0.107-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cli/dist/lib/cli/project.js +2 -16
- package/cli/dist/lib/config.js +20 -29
- package/cli/dist/lib/local-test.js +3 -19
- package/cli/dist/lib/paths.js +11 -0
- package/cli/dist/lib/resolveNpmSpawn.d.ts +20 -0
- package/cli/dist/lib/resolveNpmSpawn.js +71 -0
- package/cli/dist/lib/template-engine/context/pluginPackageJsonData.js +21 -19
- package/cli/dist/lib/template-engine/context/standVitePackageJsonData.js +7 -8
- package/cli/dist/lib/template-engine/resolveVariantDir.d.ts +5 -1
- package/cli/dist/lib/template-engine/resolveVariantDir.js +22 -0
- package/cli/dist/lib/templates/shared/i18n.js +2 -2
- package/cli/dist/lib/templates/shared/paths.js +3 -4
- package/cli/dist/lib/types/package-config.d.ts +1 -0
- package/cli/lib/cli/project.ts +2 -18
- package/cli/lib/config.ts +19 -30
- package/cli/lib/local-test.ts +3 -22
- package/cli/lib/paths.ts +15 -0
- package/cli/lib/resolveNpmSpawn.ts +72 -0
- package/cli/lib/template-engine/buildStandIndexHtml.test.ts +1 -0
- package/cli/lib/template-engine/context/pluginPackageJsonData.ts +23 -23
- package/cli/lib/template-engine/context/standVitePackageJsonData.ts +7 -12
- package/cli/lib/template-engine/pluginEtaParity.test.ts +1 -0
- package/cli/lib/template-engine/resolveVariantDir.ts +22 -0
- package/cli/lib/template-engine/standAdvancedViteDevHostEta.test.ts +4 -3
- package/cli/lib/template-engine/standWebpackDevHostEta.test.ts +7 -6
- package/cli/lib/templates/shared/i18n.ts +2 -2
- package/cli/lib/templates/shared/paths.ts +3 -4
- package/cli/lib/types/package-config.ts +1 -0
- package/cli/package.json +1 -1
- package/cli/project-templates/plugin/assets/vite/{plugin-build.config.mjs → plugin-build.config.ts} +7 -5
- package/cli/project-templates/plugin/assets/vite/{sandbox-build.config.mjs → sandbox-build.config.ts} +7 -5
- package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.module.cjs → plugin-build.legacy.module.ts} +20 -7
- package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.umd.cjs → plugin-build.legacy.umd.ts} +20 -7
- package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.module.cjs → plugin-build.modern.module.ts} +9 -4
- package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.umd.cjs → plugin-build.modern.umd.ts} +9 -4
- package/cli/project-templates/plugin/assets/webpack/{sandbox-build.config.cjs → sandbox-build.config.ts} +13 -3
- package/cli/project-templates/plugin/bundler-vite/release.html.eta +1 -0
- package/cli/project-templates/plugin/bundler-webpack/public/release.html.eta +1 -0
- package/cli/project-templates/plugin/shared-base/public/demo/product-1.svg +10 -0
- package/cli/project-templates/plugin/shared-base/public/demo/product-2.svg +10 -0
- package/cli/project-templates/plugin/shared-base/scripts/build-runner.ts +22 -0
- package/cli/project-templates/plugin/shared-base/scripts/build-types.ts +17 -0
- package/cli/project-templates/plugin/shared-base/scripts/clean.ts +16 -0
- package/cli/project-templates/plugin/shared-base/scripts/dev-runner.ts +52 -0
- package/cli/project-templates/plugin/shared-base/scripts/npmRun.ts +61 -0
- package/cli/project-templates/plugin/shared-base/scripts/release-runner.ts +18 -0
- package/cli/project-templates/plugin/shared-base/scripts/scriptRuntime.ts +10 -0
- package/cli/project-templates/plugin/shared-base/src/dev/hostApp.tsx.eta +1 -0
- package/cli/project-templates/plugin/shared-base/src/dev-release.tsx.eta +1 -0
- package/cli/project-templates/plugin/shared-base/src/dev.tsx.eta +1 -1
- package/cli/project-templates/shared/partials/plugin-dev-host-app-advanced.eta +93 -0
- package/cli/project-templates/shared/partials/plugin-dev-host-app-minimal.eta +54 -0
- package/cli/project-templates/shared/partials/plugin-dev-tsx-advanced.eta +3 -2
- package/cli/project-templates/shared/partials/plugin-dev-tsx-debug.eta +18 -0
- package/cli/project-templates/shared/partials/plugin-dev-tsx-release.eta +33 -0
- package/cli/project-templates/shared/partials/plugin-dev-tsx-runtime-helpers.eta +8 -8
- package/cli/project-templates/shared/partials/plugin-index-ts.eta +0 -1
- package/cli/project-templates/shared/partials/plugin-vite-dev-host.eta +9 -5
- package/cli/project-templates/shared/partials/plugin-vite-plugin-build.eta +7 -5
- package/cli/project-templates/shared/partials/plugin-vite-release-html.eta +12 -0
- package/cli/project-templates/shared/partials/plugin-vite-sandbox-build.eta +7 -5
- package/cli/project-templates/shared/partials/plugin-webpack-dev-host-legacy.eta +12 -5
- package/cli/project-templates/shared/partials/plugin-webpack-dev-host-modern.eta +13 -6
- package/cli/project-templates/shared/partials/plugin-webpack-release-html.eta +12 -0
- package/cli/project-templates/shared/partials/plugin-webpack-sandbox-build.eta +13 -3
- package/cli/project-templates/shared/partials/plugin-wp-legacy-module.eta +28 -10
- package/cli/project-templates/shared/partials/plugin-wp-legacy-umd.eta +28 -10
- package/cli/project-templates/shared/partials/plugin-wp-modern-module.eta +9 -4
- package/cli/project-templates/shared/partials/plugin-wp-modern-umd.eta +9 -4
- package/cli/project-templates/shared/partials/stand-dev-host-vite-memory.eta +3 -3
- package/cli/project-templates/shared/partials/stand-dev-host-vite-subpath.eta +8 -4
- package/cli/project-templates/shared/partials/stand-dev-host-vite-umd.eta +5 -5
- package/cli/project-templates/shared/partials/stand-dev-host-vite.eta +3 -3
- package/cli/project-templates/shared/partials/stand-dev-host-webpack-subpath.eta +8 -4
- package/cli/project-templates/shared/partials/stand-dev-host-webpack-umd.eta +9 -3
- package/cli/project-templates/shared/partials/stand-dev-host-webpack.eta +8 -4
- package/cli/project-templates/shared/partials/stand-dev-storage-middleware.eta +370 -0
- package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.ts +80 -0
- package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.ts.eta +1 -0
- package/cli/project-templates/shared/stand-webpack-base/config/lib/{createWebpackStandConfig.cjs → createWebpackStandConfig.ts} +31 -19
- package/cli/project-templates/{stand/advanced/umd/vite/config/lib/umdServeMiddleware.mjs → shared/stand-webpack-base/config/lib/umdServeMiddleware.ts} +19 -11
- package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.ts.eta +1 -0
- package/cli/project-templates/stand/advanced/memory-usage/vite/config/lib/{createMemoryUsageStandConfig.mjs → createMemoryUsageStandConfig.ts} +25 -20
- package/cli/project-templates/stand/advanced/umd/vite/config/lib/umdServeMiddleware.ts +68 -0
- package/cli/project-templates/stand/react-adapter/webpack/README.md.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/config/dev-host.ts.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/package.json.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/public/index.html.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/editorConfig.ts.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/email.html.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/getAuthToken.ts.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/oauthCredentials.ts +9 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/storageProvider.ts.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/index.tsx.eta +1 -0
- package/cli/scripts/cli-matrix-smoke.ts +19 -10
- package/cli/scripts/verify-global-cli.ts +1 -1
- package/cli/scripts/vite-plugin-version-matrix.ts +299 -0
- package/cli/tsconfig.json +2 -2
- package/emailmaker-core.aa9efbce.js +1 -0
- package/emailmaker-esm.js +788 -153
- package/emailmaker.d.ts +32 -0
- package/emailmaker.js +4 -4
- package/iframe/js/amp.BGJMqoms.js +1 -1
- package/iframe/js/chunk.oX6nCJbK.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.BSaCN7eK.js +1 -1
- package/iframe/js/sanitize-html.Dy7Uwo8P.js +1 -1
- package/images/integrations/activecampaign.svg +4 -0
- package/images/integrations/bento.svg +9 -0
- package/images/integrations/brevo.svg +7 -0
- package/images/integrations/campaign_monitor.svg +10 -0
- package/images/integrations/constant_contact.svg +24 -0
- package/images/integrations/dotdigital.svg +144 -0
- package/images/integrations/getresponse.svg +23 -0
- package/images/integrations/hubspot.svg +3 -0
- package/images/integrations/klaviyo.svg +10 -0
- package/images/integrations/mailchimp.svg +9 -0
- package/images/integrations/salesforce.svg +20 -0
- package/js/browser-image-compression.js +9 -0
- package/package.json +2 -5
- package/runtime/@ant-design/cssinjs/index.js +1 -1
- package/runtime/@ant-design/icons/index.js +1 -1
- package/runtime/@ant-design/pro-layout/index.js +1 -1
- package/runtime/README.md +13 -13
- package/runtime/antd/index.js +1 -1
- package/runtime/app-core/index.js +1 -2
- package/runtime/classnames/index.js +1 -1
- package/runtime/core/index.js +6 -6
- package/runtime/dayjs/index.js +1 -1
- package/runtime/di/index.js +1 -2
- package/runtime/disposable/index.js +1 -2
- package/runtime/errors-runtime/index.js +1 -2
- package/runtime/guid/index.js +1 -2
- package/runtime/index.js +2 -4
- package/runtime/package.json +2 -3
- package/runtime/prop-types/index.js +1 -1
- package/runtime/react/index.js +1 -1
- package/runtime/react/jsx-dev-runtime/index.js +1 -1
- package/runtime/react/jsx-runtime/index.js +1 -1
- package/runtime/react-dom/client/index.js +1 -1
- package/runtime/react-dom/index.js +1 -1
- package/runtime/react-router-dom/index.js +1 -1
- package/runtime/uuid/index.js +1 -1
- package/static/amd/{8fc2a596.js → 19aeb269.js} +88 -88
- package/static/core/192ec827.js +1 -0
- package/static/core/22c1de2e2.js +1 -0
- package/static/core/24faedf0.js +1 -0
- package/static/core/29231645.js +1 -0
- package/static/core/2a3177fc2.js +1 -0
- package/static/core/346aabd2.js +3 -0
- package/static/core/3b800ed6.js +1 -0
- package/static/core/3e840e90.js +1 -0
- package/static/core/40cc9fd7.js +1 -0
- package/static/core/421bdec22.js +1 -0
- package/static/core/4aaa358b2.js +903 -0
- package/static/core/50ff48bc.js +4 -0
- package/static/core/5282795d2.js +6 -0
- package/static/core/563a283d.js +1 -0
- package/static/core/5d47e095.js +47 -0
- package/static/core/5f574386.js +1 -0
- package/static/core/67a41193.js +1 -0
- package/static/core/698dace4.js +7 -0
- package/static/core/6b648e2d.js +1 -0
- package/static/core/7629adfd.js +1 -0
- package/static/core/7717f2932.js +3 -0
- package/static/core/776cb34a.js +1 -0
- package/static/core/78a1e31e.js +1 -0
- package/static/core/7d56d643.js +1 -0
- package/static/core/841752212.js +40 -0
- package/static/core/8477e97e.js +1 -0
- package/static/core/8756d562.js +1 -0
- package/static/core/91d328d8.js +1 -0
- package/static/core/9270dbb6.js +6 -0
- package/static/core/96371334.js +566 -0
- package/static/core/9b9ddaef2.js +168 -0
- package/static/core/af1da4b4.js +1 -0
- package/static/core/b5096b152.js +471 -0
- package/static/core/bde6775a.js +1 -0
- package/static/core/bf1b888c.js +4 -0
- package/static/core/cec8d739.js +11 -0
- package/static/core/cf45bf332.js +598 -0
- package/static/core/cfac3d32.js +1 -0
- package/static/core/d21c95cf2.js +1 -0
- package/static/core/dbd9ca52.js +1 -0
- package/static/core/dc590181.js +1 -0
- package/static/core/e0039d55.js +1 -0
- package/static/core/e4071c1a.js +4 -0
- package/static/core/ef87b75c.js +41 -0
- package/static/core/f47701f32.js +20 -0
- package/static/core/f83d7ac42.js +3 -0
- package/static/core/fcc67e6b.js +1 -0
- package/static/core/fd40d85c.js +1 -0
- package/static/core/fe638847.js +1 -0
- package/static/esm/{e8401d17.js → 203c9644.js} +3 -3
- package/static/esm/4b679053.js +27 -0
- package/static/esm/{b273a6c2.js → f31a26c6.js} +1 -1
- package/static/runtime/disposable-CD74igiJ.js +1 -0
- package/static/runtime/guid-C0wuVR8v.js +1 -0
- package/vite/index.d.ts +17 -6
- package/vite/index.js +315 -270
- package/vite/pluginDev/index.d.ts +10 -19
- package/vite/pluginDev/index.js +251 -204
- package/webpack/index.d.ts +24 -5
- package/webpack/index.js +168 -144
- package/webpack/pluginDev/index.d.ts +21 -22
- package/webpack/pluginDev/index.js +242 -177
- package/cli/dist/lib/template-engine/buildStandIndexHtml.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/buildStandIndexHtml.test.js +0 -89
- package/cli/dist/lib/template-engine/emitEtaTree.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/emitEtaTree.test.js +0 -34
- package/cli/dist/lib/template-engine/pluginEtaParity.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/pluginEtaParity.test.js +0 -105
- package/cli/dist/lib/template-engine/resolveVariantDir.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/resolveVariantDir.test.js +0 -52
- package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.js +0 -67
- package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.js +0 -83
- package/cli/dist/lib/template-engine/storageProviderEta.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/storageProviderEta.test.js +0 -26
- package/cli/project-templates/plugin/shared-base/scripts/build-types.cjs +0 -8
- package/cli/project-templates/plugin/shared-base/scripts/clean.cjs +0 -6
- package/cli/project-templates/plugin/shared-base/scripts/dev-runner.cjs +0 -48
- package/cli/project-templates/plugin/shared-base/scripts/release-runner.cjs +0 -63
- package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.mjs +0 -80
- package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.cjs +0 -235
- package/cli/project-templates/shared/stand-webpack-base/config/lib/umdServeMiddleware.cjs +0 -38
- package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.cjs +0 -235
- package/emailmaker-core.80d62b88.js +0 -569
- package/runtime/_core/app-core/index.js +0 -1
- package/runtime/_core/chunks/app-core-DphKKh8f.js +0 -1
- package/runtime/_core/chunks/chunk-oqAt0Dze.js +0 -1
- package/runtime/_core/chunks/di-BHUzE57z.js +0 -1
- package/runtime/_core/chunks/disposable-PhM3rJkj.js +0 -1
- package/runtime/_core/chunks/errors-runtime-VjCOXaQX.js +0 -1
- package/runtime/_core/chunks/guid-D2-FTZQG.js +0 -1
- package/runtime/_core/di/index.js +0 -1
- package/runtime/_core/disposable/index.js +0 -1
- package/runtime/_core/errors-runtime/index.js +0 -1
- package/runtime/_core/guid/index.js +0 -1
- package/runtime/_core/index.js +0 -1
- package/shared/hostBootstrap.js +0 -47
- package/shared/pluginDevOptions.js +0 -31
- package/shared/runtimeManifest.js +0 -72
- package/shared/stringCase.js +0 -16
- package/static/core/2360f32a.js +0 -3
- package/static/core/2687db56.js +0 -3
- package/static/core/2b250af6.js +0 -1261
- package/static/core/3469930c.js +0 -302
- package/static/core/34ce9042.js +0 -201
- package/static/core/4091ba5b.js +0 -25
- package/static/core/41ce3a6a.js +0 -173
- package/static/core/4ac4908c.js +0 -2213
- package/static/core/519096c1.js +0 -2597
- package/static/core/5fa1772b.js +0 -116550
- package/static/core/61312909.js +0 -3
- package/static/core/62a98c07.js +0 -75301
- package/static/core/6309c0f2.js +0 -3
- package/static/core/68d9f440.js +0 -3
- package/static/core/73b645ab.js +0 -2
- package/static/core/81019351.js +0 -280
- package/static/core/835b37ef.js +0 -591
- package/static/core/91242fb3.js +0 -3
- package/static/core/972b15b0.js +0 -92399
- package/static/core/974ef468.js +0 -493
- package/static/core/a17614422.js +0 -38078
- package/static/core/a2fa7b5b.js +0 -4232
- package/static/core/a513adfd.js +0 -89857
- package/static/core/a7c73a9b.js +0 -3813
- package/static/core/b64c7c90.js +0 -228
- package/static/core/cdc9ba92.js +0 -4711
- package/static/core/d1db685d.js +0 -2193
- package/static/core/d661febc.js +0 -3
- package/static/core/d6d2d2d0.js +0 -23
- package/static/core/df1a1225.js +0 -607
- package/static/core/e5bff179.js +0 -1302
- package/static/core/e5d602f5.js +0 -2
- package/static/core/eb029366.js +0 -1532
- package/static/core/f46c035a.js +0 -2
- package/static/core/f8b9d89a.js +0 -461
- package/static/core/fd897ad7.js +0 -3
- package/static/core/fdd890c7.js +0 -6168
- package/static/esm/29eb18ff.js +0 -164
- package/vite/mime-types.js +0 -179
- package/vite/utils.js +0 -44
- /package/cli/project-templates/plugin/bundler-vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-vite/config/{plugin-build.mjs.eta → plugin-build.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-vite/config/{sandbox-build.mjs.eta → sandbox-build.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-webpack/config/{plugin-build.cjs.eta → plugin-build.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-webpack/config/{sandbox-build.cjs.eta → sandbox-build.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/memory-usage/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/shadow-dom/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/shadow-dom/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/subpath/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/subpath/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/umd/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/umd/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/closed-loop/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/closed-loop/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/oauth/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/oauth/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/react-adapter/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/iframe/{iframe-eblock.80d62b88.html → iframe-eblock.aa9efbce.html} +0 -0
- /package/iframe/{iframe.80d62b88.html → iframe.aa9efbce.html} +0 -0
- /package/{runtime/chunks → static/runtime}/DownloadOutlined-a2ZUz7zB.js +0 -0
- /package/{runtime/chunks → static/runtime}/chunk-D-iEO58U.js +0 -0
- /package/{runtime/chunks → static/runtime}/classnames-DBEldvch.js +0 -0
- /package/{runtime/chunks → static/runtime}/client-5XqXGmAI.js +0 -0
- /package/{runtime/chunks → static/runtime}/dayjs.min-CO3mzOeV.js +0 -0
- /package/{runtime/_core/chunks/defineProperty-BGJFuFMq.js → static/runtime/defineProperty-CGNmw-jw.js} +0 -0
- /package/{runtime/chunks → static/runtime}/dist-Cns8cA2n.js +0 -0
- /package/{runtime/chunks → static/runtime}/dist-Ct0xRt3Y.js +0 -0
- /package/{runtime/chunks → static/runtime}/es-0FFT3fCz.js +0 -0
- /package/{runtime/chunks → static/runtime}/es-BwJ3eGbx.js +0 -0
- /package/{runtime/chunks → static/runtime}/es-D8EsVtRL.js +0 -0
- /package/{runtime/chunks → static/runtime}/es-Da4O25Kw.js +0 -0
- /package/{runtime/chunks → static/runtime}/jsx-dev-runtime-V4_MuHNS.js +0 -0
- /package/{runtime/chunks → static/runtime}/jsx-runtime-DBeCoE0b.js +0 -0
- /package/{runtime/chunks → static/runtime}/objectWithoutProperties-Bk0EDksJ.js +0 -0
- /package/{runtime/chunks → static/runtime}/prop-types-DxD5wgQ0.js +0 -0
- /package/{runtime/chunks → static/runtime}/react-TEeeBWTl.js +0 -0
- /package/{runtime/chunks → static/runtime}/react-dom-BKKa1g6U.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__emailmaker__.define(`core`,[`require`,`exports`,`module`,`static/core/91d328d8.js`,`static/core/5d47e095.js`,`static/core/698dace4.js`,`static/core/bf1b888c.js`,`static/core/40cc9fd7.js`,`static/core/fe638847.js`,`static/core/29231645.js`,`di`,`app-core`],function(e,t,n){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),e(`./static/core/91d328d8.js`);let r=e(`./static/core/5d47e095.js`),i=e(`./static/core/fe638847.js`),a=e(`./static/core/40cc9fd7.js`),o=e(`./static/core/bf1b888c.js`),s=e(`./static/core/29231645.js`),c=e(`./static/core/698dace4.js`),l=e(`di`),u=e(`app-core`);function d(e){return async()=>(await e.app.app_init_create({})).data}function f(e,t,n){e.inject(i.t,void 0);let r;e.injectFactory(i.t,async(e,i)=>r||(r=(async()=>{let e=i?await i:void 0;return t({baseUrl:n.baseUrl,user:n.user,project:n.project,prevApp:e})})(),r),!0)}var p=a.a(e=>{let t,n,o,s,c=!1;function l(e){let t=String(e||``).trim();return t?r.Tr(t):void 0}return{setOptions(u){let p=!!e.getInstance(i.s),m=u.hasOwnProperty(`baseUrl`)?l(u.baseUrl):t;if(u.hasOwnProperty(`baseUrl`)){let n=e.getInstance(r.Cr);t!==m&&n?.setOptions(m?{baseUrl:m}:{})}let h=n!==u.appInit,g=!a.r(o,u.user),_=s!==u.project,v=t!==m;if(n=u.appInit,o=u.user,s=u.project,t=m,p||c&&!h&&!g&&!_&&!v)return;let y=e.getInstance(r.Mr);f(e,n||d(y),{baseUrl:t,user:u.user,project:u.project}),c=!0}}}),m=(0,l.createIdentifier)(),h=(0,l.createIdentifier)(),g=a.a(e=>({setOptions(t){let n=o.s();e.addService(r.Sr,{execute:n.decorate(async n=>{if(!t.jwtAuth)return;let i=e.getInstance(m);if(!e.getInstance(h)){if(!i)try{let n=e.getInstance(r.Cr)?.getOptions()?.baseUrl||``,a=await fetch(`${n}/jwt-auth/token`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t.jwtAuth)});if(!a.ok)throw Error(`JWT auth failed: ${a.status}`);i=(await a.json()).token,e.inject(m,i)}catch(t){throw console.error(`[JWTMixin] Token request failed:`,t),e.inject(h,r.Rn),Error(r.Rn)}i&&n.headers.append(`authorization`,`Bearer ${i}`)}})})}})),_=a.a(e=>{let t=e.getInstance(i.r),n=new r.Zr,a=o.o(n.event);t.addDispose(()=>{let t=e.getInstance(i.i);n.fire(t)});let s=t.addDisposable(new o.a(a));return t.addDisposable(n),{setOptions({handleDestroy:e}){s.setListener(e)},instance:{handleDestroy:a,destroy:()=>t.dispose()}}}),v=a.a(e=>{let t=e.getInstance(i.r),n=o.o(r.Rr(e,i.n)),a=t.addDisposable(new o.a(n));return{setOptions({handleLoad:e}){a.setListener(e)},instance:{handleLoad:n},destroy:()=>t.dispose()}}),y=a.a(e=>{let t=e.getInstance(i.r),n=t.addDisposable(new r.Yr),a=t.addDisposable(new r.Yr),s=t.addDisposable(new r.Yr),c=o.o(n.event),l=o.o(a.event),u=o.o(s.event),d=t.addDisposable(new o.a(c)),f=t.addDisposable(new o.a(l)),p=t.addDisposable(new o.a(u)),m=null,h=null,g=!1;return{instance:{handleSetOptions:c,handleOptionsChanged:l,handleConfigChanged:u},async setOptions(r){if(d.setListener(r.handleSetOptions),f.setListener(r.handleOptionsChanged),p.setListener(r.handleConfigChanged),await n.fire(r),!g){g=!0;let n=e.getInstance(i.c);n&&(h=n.getState().configSlice?.config??null,m=n.subscribe(()=>{let e=n.getState().configSlice?.config;h!==e&&e&&(s.fire(e),h=e)}),t.addDispose(m))}await a.fire(r)},dispose(){m&&=(m(),null)}}}),b=1e4;function x(e,t,n,r={}){let i=Object.assign({},e);for(let[e,a]of Object.entries(t))if(a!==void 0)if(n.includes(e)&&typeof a==`object`&&a){let t=i[e],n=r[e]??{};i[e]=Object.assign({},typeof t==`object`&&t?t:n,a)}else i[e]=a;return i}var S={border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:5,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},borderRadiusCards:{all:10,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},padding:{all:null,top:null,right:null,bottom:null,left:null}},C=class{constructor(e){this._editor=e}async getEmailLayoutSettings(){let e=await this._editor.container.getInstanceAsync(i.c);await this._waitForEmailSettingsFromIframe(e);let t=s.u(e.getState());return{backgroundColor:t.backgroundColor||``,backgroundImage:(t.backgroundImage||[]).map(e=>({type:`url`,value:e?.value||``})),backgroundPositionX:t.backgroundPositionX||``,backgroundPositionY:t.backgroundPositionY||``,backgroundRepeat:t.backgroundRepeat||``,backgroundSize:t.backgroundSize||``,backgroundColorContent:t.backgroundColorContent||``,textStrong:t.textStrong||!1,textItalic:t.textItalic||!1,textUnderline:t.textUnderline||!1,width:t.width,responsive:t.responsive}}async setEmailLayoutSettings(e){let t=await this._editor.container.getInstanceAsync(i.c);await this._waitForEmailSettingsFromIframe(t);let n={...s.u(t.getState()),...e};t.dispatch(s.T(n))}async _waitForEmailSettingsFromIframe(e,t=b){let n=e.getState(),i=s.o(n),a=s.u(n);if(i?.is_inited&&a&&Object.keys(a).length>0&&(a.backgroundColor||a.backgroundImage?.[0]?.value||a.width?.value||a.responsive!==void 0)||i?.is_inited)return;let o=this._editor.container,c=r.Rr(o,r.Ir.ON_EMAIL_INIT_ID);return new Promise(e=>{let n=!1,r,i=()=>{r&&=(clearTimeout(r),void 0)},a=c(()=>{n||(n=!0,i(),a.dispose(),e())});r=setTimeout(()=>{n||(n=!0,a.dispose(),`${t}`,e())},t)})}async getEmailContentStyles(){let e=s.o((await this._editor.container.getInstanceAsync(i.c)).getState()),t=r.En;try{t=e?.common_styles&&e.common_styles!==`{}`?JSON.parse(e.common_styles):r.En}catch{}return{text:{fontFamily:t.text?.fontFamily||[`Safe Fonts`,`-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif`],fontSize:t.text?.fontSize||16,fontSizeDim:t.text?.fontSizeDim||`px`,lineHeight:t.text?.lineHeight||21,lineHeightDim:t.text?.lineHeightDim||`px`,color:t.text?.color||`#5a5a5a`,contrastColor:t.text?.contrastColor||`#FFFFFF`,textAlign:t.text?.textAlign||`left`,paddingBottom:t.text?.paddingBottom||10,paddingBottomDim:t.text?.paddingBottomDim||`px`},headings:{fontFamily:t.headings?.fontFamily||[`Safe Fonts`,`-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif`],fontSize:t.headings?.fontSize||24,fontSizeDim:t.headings?.fontSizeDim||`px`,lineHeight:t.headings?.lineHeight||32,lineHeightDim:t.headings?.lineHeightDim||`px`,color:t.headings?.color||`#333333`,contrastColor:t.headings?.contrastColor||`#FFFFFF`,textAlign:t.headings?.textAlign||`left`,paddingTop:t.headings?.paddingTop||20,paddingTopDim:t.headings?.paddingTopDim||`px`,paddingBottom:t.headings?.paddingBottom||20,paddingBottomDim:t.headings?.paddingBottomDim||`px`,letterSpacing:t.headings?.letterSpacing||0,letterSpacingDim:t.headings?.letterSpacingDim||`px`,bold:t.headings?.bold??!0,italic:t.headings?.italic??!1},links:{color:t.links?.color||`#1C52DC`,contrastColor:t.links?.contrastColor||`#FFFFFF`,underline:t.links?.underline??!0},buttons:{fontFamily:t.buttons?.fontFamily||[`Safe Fonts`,`-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif`],fontSize:t.buttons?.fontSize||16,fontSizeDim:t.buttons?.fontSizeDim||`px`,letterSpacing:t.buttons?.letterSpacing||0,letterSpacingDim:t.buttons?.letterSpacingDim||`px`,color:t.buttons?.color||`#FFFFFF`,contrastColor:t.buttons?.contrastColor||`#1C52DC`,bold:t.buttons?.bold??!1,italic:t.buttons?.italic??!1,backgroundColor:t.buttons?.backgroundColor||`#1C52DC`,contrastBackgroundColor:t.buttons?.contrastBackgroundColor||`#FFFFFF`,marginTop:t.buttons?.marginTop||10,marginTopDim:t.buttons?.marginTopDim||`px`,marginBottom:t.buttons?.marginBottom||10,marginBottomDim:t.buttons?.marginBottomDim||`px`,border:t.buttons?.border||{all:null,top:null,right:null,bottom:null,left:null},borderRadius:t.buttons?.borderRadius||{all:5,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},textAlign:t.buttons?.textAlign||`center`,padding:t.buttons?.padding||{all:null,top:null,right:null,bottom:null,left:null}},block:{backgroundColor:t.block?.backgroundColor||`#FFFFFF`,contrastBackgroundColor:t.block?.contrastBackgroundColor||`#1C52DC`,padding:t.block?.padding||{all:null,top:null,right:null,bottom:null,left:null}},cards:{contrastBackgroundColor:t.cards?.contrastBackgroundColor||`#1C52DC`,contrastTextColor:t.cards?.contrastTextColor||`#FFFFFF`,baseBackgroundColor:t.cards?.baseBackgroundColor||`#F8F8F8`,baseTextColor:t.cards?.baseTextColor||`#333333`,border:t.cards?.border||{all:null,top:null,right:null,bottom:null,left:null},borderRadius:t.cards?.borderRadius||{all:10,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null}}}}async setEmailContentStyles(e){let t=await this._editor.container.getInstanceAsync(i.c),n=s.o(t.getState());if(!n)return;let a={...r.En};try{n.common_styles&&n.common_styles!==`{}`&&(a=JSON.parse(n.common_styles))}catch{}e.text!==void 0&&(a.text={...a.text||{},...e.text}),e.headings!==void 0&&(a.headings={...a.headings||{},...e.headings}),e.links!==void 0&&(a.links={...a.links||{},...e.links}),e.buttons!==void 0&&(a.buttons=x(a.buttons||{},e.buttons,[`border`,`borderRadius`,`padding`],{border:S.border,borderRadius:S.borderRadius,padding:S.padding})),e.block!==void 0&&(a.block=x(a.block||{},e.block,[`padding`],{padding:S.padding})),e.cards!==void 0&&(a.cards=x(a.cards||{},e.cards,[`border`,`borderRadius`],{border:S.border,borderRadius:S.borderRadiusCards})),t.dispatch(s.b({...n,common_styles:JSON.stringify(a)}))}},w={...r.zr,EmailSettingsApi:C};function T(e=l.DependencyResolver){return e.getOrCreateInstance(r.jr,()=>new u.PluginRegistry)}var E=T(),D={...r.zr,EmailSettingsApi:C};({...w});function O(){E.addAll(D)}a.i([_,v,y,g,a.t,p]);async function k(){return(await Promise.resolve().then(()=>e(`./static/core/4aaa358b2.js`))).default}var A=e=>{let t=null,n=!1;return{instance:{},async setOptions(r){if(!t&&!n){t=(await k())(e);let n=await e.getInstanceAsync(i.i);Object.assign(n,t.instance||{}),O()}t&&await t.setOptions(r)},dispose(){t?.dispose(),n=!0}}},j=a.i([...[_,v,y,g,a.t,p],A]),M=a.a(e=>{let t;function n(){if(!t)throw Error(`PluginCollection not initialized. Call init() first.`);return t}return{async setOptions(n){let a=e.getInstance(i.i),o=e.getInstance(r.jr);t||=new u.PluginCollection(a,o);let s=n?.plugins||[];a&&await t.setPlugins(s)},instance:{use(e){return typeof e==`function`?n().useByCtor(e):n().useByKey(e)},useAsync(e){return n().useAsync(e)},waitPlugin(e){return n().waitFor(e)}},dispose(){t?.dispose(),t=void 0}}}),N=class{_storage=Object.create(null);get(e){let t=this._storage[e];return t&&(!t.expires||t.expires<Date.now())?t.value:``}set(e,t,n){this._storage[e]={value:t,expires:n.expires?n.expires*1e3+Date.now():void 0}}remove(e){delete this._storage[e]}},P=100,F={events:[],container:null,collection:null};function I(e,t){F.container=e,F.collection=t,t.onLifecycle(e=>{F.events.push({...e,timestamp:Date.now()}),F.events.length>P&&(F.events=F.events.slice(-P))}),typeof window<`u`&&(window.__EMAILMAKER_DEVTOOLS__=L())}function L(){return{enabled:!0,plugins(){return F.collection?F.collection.getStatus().map(e=>({...e,hasInit:!0,hasDispose:!0,hasAfterInit:!0})):[]},registry(){if(!F.container)return[];try{return F.container.getInstance(r.jr).keys().map(String)}catch{return[]}},events(e=50){return F.events.slice(-e)},clearEvents(){F.events=[]},getPlugin(e){if(F.collection)try{return F.collection.use(e)}catch{`${e}`;return}}}}var R=a.i([j,M]);async function z(e){let t=new r.ni.Disposable;async function n(){let n=l.DependencyResolver.createChild();if(e.standaloneKey){n.inject(i.s,e.standaloneKey);let a=r.Rr(n,r.Ir.FILE_PROXY_EVENT_ID);t.addDisposable(a(async({url:e})=>(await fetch(e)).blob(),Number.MIN_VALUE))}n.inject(i.r,t),n.inject(r.Ar,new N),r.Er(n);let a=R(n),o={...a.instance,container:n};if(n.inject(i.i,o),await a.setOptions(e),e.devTools)try{let e=n.getInstance(i.o);e&&I(n,e)}catch{}return r.Lr(n,i.n).fire(o),o}return n()}async function B(e){let t=new Map;typeof e==`object`&&(e=e.code);let n=await c.t(e,async e=>{await c.f(e.document,e=>c.u.getEscapedText(e)===e?c.m(e):e,t);for(let t of e.document.querySelectorAll(`.em-amp-show-disabled`))t.remove();e.handleRender(async({contentDocument:e,managedNodeController:t})=>{await o.n(e,{mappedTags:{script:`___script`},commit:()=>t.commit()})})},[800]),r=await c.t(e,async e=>{await c.f(e.document,e=>c.u.getEscapedText(e)===e?c.m(e):e,t);for(let t of e.document.querySelectorAll(`.em-amp-show-only`))t.remove();await o.t(e.document,{mappedTags:{script:`___script`}})},[800]);return{code:e,html:r,ampHtml:n}}(function(e){if(!(!e||typeof e!=`object`)){var t=e.__emailmaker__||={},n=t.__compat||={};n.host=n.host||null,n.packages=n.packages||{},n.warned=n.warned||{},n.normalizeVersion||=function(e){return String(e||``).split(`-`)[0]||`0.0.0`},n.parseVersion||=function(e){var t=n.normalizeVersion(e).split(`.`);return{major:parseInt(t[0]||`0`,10),minor:parseInt(t[1]||`0`,10),patch:parseInt(t[2]||`0`,10)}},n.compareVersions||=function(e,t){var r=n.parseVersion(e),i=n.parseVersion(t);return r.major===i.major?r.minor===i.minor?r.patch-i.patch:r.minor-i.minor:r.major-i.major},n.satisfies||=function(e,t){if(!t||t===`*`||t===`latest`)return!0;var r=n.normalizeVersion(e),i=String(t||``).trim();if(!i)return!0;if(i.charAt(0)===`^`){var a=n.parseVersion(i.slice(1)),o=n.parseVersion(r);return n.compareVersions(r,i.slice(1))<0?!1:a.major>0?o.major===a.major:a.minor>0?o.major===0&&o.minor===a.minor:o.major===0&&o.minor===0&&o.patch===a.patch}return n.normalizeVersion(r)===n.normalizeVersion(i)},n.warnOnce||=function(e,t,r){n.warned[e]||(n.warned[e]=!0)},n.validateAll||=function(){var e=n.host,t=n.packages||{};e&&e.supports&&Object.keys(t).forEach(function(r){var i=t[r],a=e.supports[r];a&&!n.satisfies(i.version,a)&&n.warnOnce(`host:`+r+`:`+i.version+`:`+a,`Host supports a different package version range.`,{packageId:r,packageVersion:i.version,supportedRange:a,hostVersion:e.version})}),Object.keys(t).forEach(function(r){var i=t[r],a=i.requires||{};Object.keys(a).forEach(function(o){var s=a[o],c=o===`host`?e&&e.version:t[o]&&t[o].version;c&&(n.satisfies(c,s)||n.warnOnce(r+`:`+o+`:`+c+`:`+s,`Loaded package is outside the declared compatibility range.`,{packageId:r,packageVersion:i.version,targetId:o,targetVersion:c,requiredRange:s}))})})},n.registerHost||=function(e){n.host=e,n.validateAll()},n.registerPackage||=function(e){n.packages[e.id]=e,n.validateAll()},t.__compat.registerHost({version:`1.0.107-dev.4`,supports:{"extensions-api":`^0.9.0`,"extensions-react":`^0.9.0`,"extensions-sandbox":`^0.9.0`}})}})(typeof window<`u`?window:typeof globalThis<`u`?globalThis:void 0),t.init=z,t.parseAMP=B,t.version=`1.0.107-dev.4`});
|