@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
package/emailmaker.d.ts
CHANGED
|
@@ -1322,6 +1322,8 @@ declare namespace ExportedApi {
|
|
|
1322
1322
|
imageCenterLocalUploadEnabled: boolean;
|
|
1323
1323
|
imageCenterStockEnabled: boolean;
|
|
1324
1324
|
imageCenterGifEnabled: boolean;
|
|
1325
|
+
/** Вкладка icon stock (Streamline) в image center / file manager; при false — отключено (как stock/gif). */
|
|
1326
|
+
imageCenterIconStockEnabled: boolean;
|
|
1325
1327
|
imageCenterEditorEnabled: boolean;
|
|
1326
1328
|
compressMaxSize: number;
|
|
1327
1329
|
compressMaxWidthOrHeight: number;
|
|
@@ -1438,10 +1440,28 @@ declare namespace ExportedApi {
|
|
|
1438
1440
|
interface Instance extends AppConfigMixin.Instance {}
|
|
1439
1441
|
}
|
|
1440
1442
|
declare namespace ExportedApi {
|
|
1443
|
+
export interface AppInitResult {
|
|
1444
|
+
project: number;
|
|
1445
|
+
app_id: number;
|
|
1446
|
+
app_config: Partial<Config>;
|
|
1447
|
+
user?: {
|
|
1448
|
+
user_email: string;
|
|
1449
|
+
user_id: string;
|
|
1450
|
+
user_name: string;
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
export type AppInitCallback = (params: {
|
|
1454
|
+
baseUrl?: string;
|
|
1455
|
+
user?: User;
|
|
1456
|
+
project?: string | number;
|
|
1457
|
+
prevApp?: AppInitResult;
|
|
1458
|
+
}) => MayBePromise<AppInitResult>;
|
|
1441
1459
|
namespace AppInitMixin {
|
|
1442
1460
|
interface Options {
|
|
1443
1461
|
/** base url of the app server */
|
|
1444
1462
|
baseUrl?: string;
|
|
1463
|
+
/** optional app init callback override */
|
|
1464
|
+
appInit?: AppInitCallback;
|
|
1445
1465
|
}
|
|
1446
1466
|
interface Instance {}
|
|
1447
1467
|
}
|
|
@@ -2278,6 +2298,18 @@ declare namespace ExportedApi {
|
|
|
2278
2298
|
storageProvider?: StorageProvider;
|
|
2279
2299
|
}
|
|
2280
2300
|
export interface FileManagerOptions {
|
|
2301
|
+
/**
|
|
2302
|
+
* Maximum file size in bytes for client-side compression. Files larger than this will not be compressed.
|
|
2303
|
+
* Set to 0 or undefined to disable compression.
|
|
2304
|
+
* @default 5 * 1024 * 1024 (5 MB)
|
|
2305
|
+
*/
|
|
2306
|
+
compressMaxSize?: number;
|
|
2307
|
+
/**
|
|
2308
|
+
* Maximum width or height in pixels for client-side image compression. Images larger than this will be resized.
|
|
2309
|
+
* Set to 0 or undefined to disable resizing.
|
|
2310
|
+
* @default 2000
|
|
2311
|
+
*/
|
|
2312
|
+
compressMaxWidthOrHeight?: number;
|
|
2281
2313
|
/**
|
|
2282
2314
|
* Expand all folders in root on init
|
|
2283
2315
|
* @default true
|
package/emailmaker.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
})(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : this, function() {
|
|
13
13
|
'use strict';
|
|
14
14
|
|
|
15
|
-
(function(){"use strict";if(
|
|
15
|
+
var e=window.__emailmaker__||(window.__emailmaker__={});(function(){"use strict";if(e!==void 0&&e.define)return;e===void 0&&(window.__amdEnv={});var t={},n={},r={},i={},a={},o=`./`,s={};function c(e,t){var n=Error(`[AMD] Failed to load module "`+e+`"`+(t?`: `+t.message:``));return n.moduleId=e,n.cause=t,n}function l(e,t,n){var r=Error(`[AMD] Failed to resolve dependency "`+t+`" for module "`+e+`"`+(n?`: `+n.message:``));return r.moduleId=e,r.dependencyId=t,r.cause=n,r}function u(e){for(var t=String(e||``).split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];if(!(!i||i===`.`)){if(i===`..`){n.length>0&&n.pop();continue}n.push(i)}}return n.join(`/`)}function d(e){var t=String(e||``).replace(/\\/g,`/`),n=String(o||`./`).replace(/\\/g,`/`);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}function f(e,t){var n=String(e||``);if(!n)return n;if(!(n.indexOf(`./`)===0||n.indexOf(`../`)===0))return d(u(n));var r=u(t||``),i=r?r.split(`/`):[];i.length>0&&i.pop();for(var a=n.split(`/`),o=0;o<a.length;o++){var s=a[o];if(!(!s||s===`.`)){if(s===`..`){i.length>0&&i.pop();continue}i.push(s)}}return d(i.join(`/`))}function p(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||e.indexOf(`//`)===0}function m(e){var t=String(e||``);if(!t||p(t))return t;try{var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return t}}function h(){var t=String(o||`./`);if(t.slice(-1)!==`/`&&(t+=`/`),p(t)||t.charAt(0)===`/`)return t;if(e!==void 0&&e&&e.publicPath)try{return new URL(t,m(e.publicPath)).href}catch{}return m(t)}function g(e,t){var n=f(e,t),r=h(),i=Object.prototype.hasOwnProperty.call(s,n)?String(s[n]||``):n;i.slice(-3)!==`.js`&&(i+=`.js`);try{return new URL(i,r).href}catch{return r+i}}function _(){if(typeof document>`u`)return``;var e=document.currentScript;if(e){var t=e.getAttribute(`data-amd-module-id`);if(t)return t}return``}function v(e,n,r){if(Array.isArray(e)?(r=n,n=e,e=_()):typeof e==`function`?(r=e,n=[],e=_()):typeof n==`function`&&(r=n,n=[]),!e)throw Error(`[AMD] Anonymous define() could not be associated with a module id`);e in t||(t[e]={deps:n||[],factory:r})}v.amd={async:!0};function y(){return function(){}}function b(e,t){return{id:e,exports:t,uri:g(e)}}function x(e,t,n,r){if(Array.isArray(e)){var i=Promise.all(e.map(function(e){return C(e,r)})).then(function(e){return t&&t.apply(null,e),e});return n&&i.catch(n),i}return C(e,r)}function S(e,o){if(Array.isArray(e))throw Error(`[AMD] syncRequire does not support dependency arrays`);var s=f(e,o);if(s in a)throw a[s];if(s in n)return n[s];if(s in r||s in i)throw c(s,Error(`Module is still loading asynchronously`));if(!(s in t))throw c(s,Error(`Module is not available for syncRequire`));return T(s)}function C(e,i){var o=f(e,i);return o in a?Promise.reject(a[o]):o in n?Promise.resolve(n[o]):o in r?r[o]:o in t?(r[o]=w(o),r[o]):(r[o]=D(o).then(function(){if(!(o in t)){var e=c(o,Error(`Module not defined after script load`));throw a[o]=e,e}return w(o)}).catch(function(e){delete r[o];var t=c(o,e);throw a[o]=t,t}),r[o])}function w(e){var i=t[e],o=E(e),s=y(),c=b(e,s);return Promise.all(i.deps.map(function(t){return t===`exports`?s:t===`require`?o:t===`module`?c:C(t,e).catch(function(n){throw l(e,t,n)})})).then(function(t){var a=i.factory.apply(null,t);return a&&typeof a.then==`function`?a.then(function(t){return n[e]=t===void 0?c.exports:t,delete r[e],n[e]}):(n[e]=a===void 0?c.exports:a,delete r[e],n[e])}).catch(function(t){throw delete r[e],a[e]=t,t})}function T(e){var r=t[e],i=E(e),o=y(),s=b(e,o);try{var u=r.deps.map(function(t){if(t===`exports`)return o;if(t===`require`)return i;if(t===`module`)return s;try{return S(t,e)}catch(n){throw l(e,t,n)}}),d=r.factory.apply(null,u);if(d&&typeof d.then==`function`)throw c(e,Error(`Module resolved asynchronously and cannot be syncRequired`));return n[e]=d===void 0?s.exports:d,n[e]}catch(t){throw a[e]=t,t}}function E(e){var r=function(r,i,a){if(Array.isArray(r))return x(r,i,a,e);var o=f(r,e);return o in n?n[o]:o in t?S(r,e):C(r,e)};return r.resolve=function(t){return f(t,e)},r.toUrl=function(t){return g(t,e)},r.sync=function(t){return S(t,e)},r}function D(e){if(e in i)return i[e];var t=g(e);return document.querySelector(`script[src="`+t+`"]`)?(i[e]=Promise.resolve(),i[e]):(i[e]=new Promise(function(n,r){var a=document.createElement(`script`);a.src=t,a.setAttribute(`data-amd-module-id`,e),a.async=!0,a.onload=function(){n()},a.onerror=function(){delete i[e],r(Error(`Failed to load script: `+t))},document.head.appendChild(a)}),i[e])}x.config=function(e){if(e.baseUrl&&(o=e.baseUrl),e.paths)for(var t in e.paths)Object.prototype.hasOwnProperty.call(e.paths,t)&&(s[t]=e.paths[t])},x.modules=t,x.resolved=n,x.errors=a,x.toUrl=g,x.sync=S,e.define=v,e.require=x,e.syncRequire=S})(),e.require.config({baseUrl:`static/amd/`,paths:{core:`../../emailmaker-core.aa9efbce.js`}});
|
|
16
16
|
|
|
17
17
|
// PublicPath (script detection via document.currentScript)
|
|
18
18
|
if (!__emailmaker__.publicPath) {
|
|
@@ -47,9 +47,9 @@ __emailmaker__.publicPath = (function() {
|
|
|
47
47
|
})();
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
__emailmaker__.define(`
|
|
50
|
+
__emailmaker__.define(`fce442e5.js`,[`require`,`exports`,`module`],function(e,t,n){var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>()=>(e&&(t=e(e=0)),t),u=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n},f=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},p=(e,t,n)=>(n=e==null?{}:r(s(e)),f(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)),m=e=>c.call(e,`module.exports`)?e[`module.exports`]:f(i({},`__esModule`,{value:!0}),e),h=class e{_isDisposed=!1;constructor(e=[]){this._inner=e}addDisposable(t){return this._inner.push(t),t instanceof e&&t.addDispose(()=>{this.removeDisposable(t)}),t}addDispose(e){this.addDisposable({dispose:e})}removeDisposable(e){let t=this._inner.indexOf(e);t>=0&&this._inner.splice(t,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(let e of[...this._inner])e.dispose()}}},g=class{_plugins=new Map;_listeners=new Map;_getOrCreateEntry(e){let t=this._plugins.get(e);return t||(t={overrides:[]},this._plugins.set(e,t)),t}_applyOverrides(e,t){let n=this._plugins.get(e);if(n?.overrides)for(let e of n.overrides)t=e(t)||t;return t}_notifyListeners(e,t){let n=this._listeners.get(e);if(!n||n.length===0)return;for(let r of n)try{r.callback(t)}catch{`${String(e)}`}let r=n.filter(e=>!e.once);r.length>0?this._listeners.set(e,r):this._listeners.delete(e)}get(e){let t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor)}async getAsync(e){let t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor);if(t?.loading){let n=await t.loading;return this._applyOverrides(e,n)}if(t?.factory){let n=Promise.resolve(t.factory()).then(n=>(t.ctor=n,t.loading=void 0,this._notifyListeners(e,n),n));t.loading=n;let r=await n;return this._applyOverrides(e,r)}return new Promise(t=>{this.on(e,n=>t(this._applyOverrides(e,n)))})}add(e,t){let n=this._getOrCreateEntry(e);n.ctor=t,this._notifyListeners(e,t)}addAll(e){for(let t of Object.keys(e)){let n=e[t];n!==void 0&&this.add(t,n)}}addAsync(e,t){let n=this._getOrCreateEntry(e);return n.factory=t,{dispose:()=>{n.ctor||(n.factory=void 0)}}}has(e){let t=this._plugins.get(e);return!!(t?.ctor||t?.factory)}isLoaded(e){return!!this._plugins.get(e)?.ctor}override(e,t){let n=this._getOrCreateEntry(e);return n.overrides.push(t),{dispose:()=>{let e=n.overrides.indexOf(t);e>=0&&n.overrides.splice(e,1)}}}on(e,t){let n=this.get(e);n&&t(n);let r=this._listeners.get(e);r||(r=[],this._listeners.set(e,r));let i={callback:t,once:!1};return r.push(i),{dispose:()=>this._removeListener(e,t)}}once(e,t){let n=this.get(e);if(n)return t(n),{dispose:()=>{}};let r=this._listeners.get(e);r||(r=[],this._listeners.set(e,r));let i={callback:t,once:!0};return r.push(i),{dispose:()=>this._removeListener(e,t)}}off(e,t){this._removeListener(e,t)}_removeListener(e,t){let n=this._listeners.get(e);if(n){let r=n.findIndex(e=>e.callback===t);r>=0&&n.splice(r,1),n.length===0&&this._listeners.delete(e)}}keys(){return Array.from(this._plugins.keys())}forContext(){let e=this;return{add(t,n){e.add(t,n)}}}};function _(e){return`service_container_${e}`}var v=class e extends h{static _globalContainer=new this(null);_injectCallbacks=[];static get globalContainer(){return this._globalContainer}_injections=Object.create(null);_runCallbacks(e){this._injectCallbacks.forEach(t=>t(e))}constructor(t=e._globalContainer){super(),this._parent=t,t&&this.addDisposable(t.onInject(e=>this._runCallbacks(e)))}onInject=e=>(this._injectCallbacks.push(e),{dispose:()=>{let t=this._injectCallbacks.indexOf(e);t>=0&&this._injectCallbacks.splice(t,1)}});inject(e,t){this._injections[e]=()=>t,this._runCallbacks(e)}injectFactory(e,t,n){let r=this._injections[e],i=typeof r==`function`?r():r,a=this._injections[e]=()=>(i=t(this,i),i);n&&a(),this._runCallbacks(e)}_find(e,t=!0){return this._injections[e]||t&&this._parent?._find(e)}_onInject(e,t,n=new h){return n.addDisposable(this.onInject(r=>{e===r&&(n.dispose(),t(this.getInstance(r)))})),this._parent&&n.addDisposable(this._parent._onInject(e,t,n)),this.addDisposable(n),n}getInstance(e,t=!0){let n=this._find(e,t);if(typeof n==`function`)return n()}getOrCreateInstance(e,t){let n=this._find(e);if(typeof n==`function`)return n();{let n=t(this);return this.inject(e,n),n}}getInstanceAsync(e){let t=this._find(e);return typeof t==`function`?Promise.resolve(t()):new Promise(t=>this._onInject(e,()=>t(this.getInstance(e))))}addService(e,t){let n=_(e);this.injectFactory(n,(e,n=[])=>n.indexOf(t)<0?[...n,t]:n);let r=new h;return r.addDispose(()=>{this.injectFactory(n,(e,n=[])=>n.filter(e=>e!==t))}),r}addServiceFactory(e,t,n){let r=_(e),i;this.injectFactory(r,(e,n=[])=>(i=t(e,i),n.indexOf(i)<0?[...n,i]:n),n);let a=new h;return a.addDispose(()=>{this.injectFactory(r,(e,t=[])=>t.filter(e=>e!==i))}),a}getServices(e){let t=_(e);return[...this.getInstance(t,!1)||[],...this._parent?.getServices(e)||[]]}createChild(){return new e(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{let n=this._parent?.getOrCreateIsolatedContainer(t);return new e(n)})}dispose(){this._injections=Object.create(null)}};function y(){let e=new Date().getTime(),t=typeof performance<`u`&&performance.now&&performance.now()*1e3||0;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(n){let r=Math.random()*16;return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),(n===`x`?r:r&3|8).toString(16)})}function b(e=y()){return e}function x(e){if(typeof globalThis>`u`)return e;let t=`__emailmaker__`,n=globalThis,r=n[t]=n[t]||{},i=r.__diagnostics=r.__diagnostics||{},a=i.dependencyResolver=i.dependencyResolver||{entries:[],warnings:[]},o={container:e,source:`packages/di/index.ts`,timestamp:Date.now(),stack:Error().stack};if(a.entries.push(o),a.entries.length>1){let e=a.entries[0];if(a.entries.some(t=>t.container!==e.container)&&!a.duplicateWarningShown){a.duplicateWarningShown=!0;let e={message:`[di] Multiple DependencyResolver instances detected`,namespaceKey:t,entries:a.entries};a.warnings.push(e),typeof console<`u`&&typeof console.warn==`function`&&e.message}}return e}var S=x(v.globalContainer),C=class e extends Error{code;httpStatus;details;constructor(t,n,r,i){super(t),this.name=`FileManagerApiError`,this.code=n,this.httpStatus=r,this.details=i,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function w(e,t=`BackendError`){switch(e){case 400:return`ValidationError`;case 401:return`AuthenticationFailed`;case 403:return`AuthorizationFailed`;case 404:return`FileNotFound`;case 413:return`PayloadTooLarge`;case 415:return`UnsupportedMediaType`;case 429:return`RateLimitExceeded`;case 500:return`BackendError`;case 503:return`ServiceUnavailable`;case 504:return`Timeout`;default:return t}}Object.defineProperty(t,`a`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(t,`c`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(t,`d`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(t,`f`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(t,`i`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(t,`l`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(t,`m`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(t,`n`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(t,`o`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(t,`p`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(t,`r`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(t,`s`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(t,`t`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(t,`u`,{enumerable:!0,get:function(){return u}})});
|
|
51
51
|
|
|
52
|
-
__emailmaker__.define(`emailmaker.js`,[`require`,`exports`,`module`,`
|
|
52
|
+
__emailmaker__.define(`emailmaker.js`,[`require`,`exports`,`module`,`fce442e5.js`],function(e,t,n){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let r=e(`./static/amd/fce442e5.js`);var i=null,a=`core`;function o(){return typeof __emailmaker__?.require==`function`?new Promise((e,t)=>{__emailmaker__.require([a],t=>e(t),e=>t(e instanceof Error?e:Error(`[loadEngine] Failed to require core module`)))}):Promise.reject(Error(`[loadEngine] AMD loader is unavailable`))}function s(){return i||=o(),i}var c=null,l=null;async function u(e){typeof e?.prefetch==`function`&&await e.prefetch()}function d(){return c||=s().then(()=>void 0),c}function f(e){return l||=u(e),l}function p(e){return Promise.all([d(),f(e)]).then(()=>void 0)}function m(e){let t=e?.startupPrefetchMode;return t===`eager`||t===`idle`||t===`manual`||t===`off`?t:`eager`}function h(e){Promise.resolve().then(()=>p(e)).catch(()=>{})}function g(e){Promise.resolve().then(()=>f(e)).catch(()=>{})}function _(e){let t=m(e);if(t===`eager`)h(e);else if(t===`idle`){let t=window.requestIdleCallback;typeof t==`function`?t(()=>h(e),{timeout:1500}):setTimeout(()=>h(e),0)}}function v(e){return r.i(e)}r.i(),v(`HANDLE_ATOM_INSERT`),r.i(),r.i(`MESSAGE_SERVICE`),v(`SETTINGS_PANEL_EVENT`),v(`MODAL_SHOW_EVENT`),v(`MODAL_CLOSE_EVENT`),v(`MODAL_UPDATE_EVENT`),r.i(`client`),r.i(`ai_client`),r.i(),r.i(),r.i(`autosave-recovery`);var y=r.i(`PluginRegistry`);function b(e=r.r){return e.getOrCreateInstance(y,()=>new r.c)}var x=b();function S(e,t){if(e!==void 0)if(typeof e==`string`){if(e=document.querySelector(e),e)return e;let n=t.addDisposable(new r.l);return new Promise((t,r)=>{let i=new MutationObserver(()=>{e=document.querySelector(e),e&&(n.dispose(),t(e))});i.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),n.addDisposable({dispose:()=>i.disconnect()})})}else return e;else return e}var C=new Map,w=`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`,T=`
|
|
53
53
|
.blocks-app-initial-spinner-wrapper {
|
|
54
54
|
width: 100%;
|
|
55
55
|
height: 100%;
|
|
@@ -82,7 +82,7 @@ __emailmaker__.define(`emailmaker.js`,[`require`,`exports`,`module`,`f55ef59b.js
|
|
|
82
82
|
100% {
|
|
83
83
|
transform: rotate(360deg);
|
|
84
84
|
}
|
|
85
|
-
}`;function M(){return()=>{}}function N(e,t){if(!e||typeof document>`u`)return M();e.querySelectorAll(`.blocks-app-initial-spinner-wrapper`).forEach(e=>{e.remove()});let n=document.createElement(`div`);n.classList.add(`blocks-app-initial-spinner-wrapper`);let r=document.createElement(`span`);r.classList.add(`blocks-app-initial-spinner`);let i=`http://www.w3.org/2000/svg`,a=document.createElementNS(i,`svg`);a.setAttribute(`viewBox`,`0 0 1024 1024`),a.setAttribute(`focusable`,`false`),a.setAttribute(`aria-hidden`,`true`),a.classList.add(`blocks-app-initial-spinner-icon`);let o=document.createElementNS(i,`path`);o.setAttribute(`d`,A),a.appendChild(o),r.appendChild(a),n.appendChild(r);let s=document.createElement(`style`);s.setAttribute(t,`true`),s.textContent=j,document.head?.appendChild(s),e.appendChild(n);let c=!1;return()=>{c||(c=!0,n.remove(),s.remove())}}var P=r.f({FileManagerApiError:()=>r.t}),F=r.f({mapHttpStatusToErrorCode:()=>r.n});(function(){"use strict";var t=window.__emailmaker__||(window.__emailmaker__={}),n=t.prefetch,r=t.modules&&typeof t.modules==`object`?t.modules:{},i=[`React`,`ReactDom`,`ReactDomClient`,`ReactJsxRuntime`,`ReactJsxDevRuntime`,`PropTypes`,`ReactRouterDom`,`Antd`,`AntDesignIcons`,`AntDesignCssinjs`,`AntDesignProLayout`,`Classnames`,`Dayjs`,`Uuid`,`Core`,`EmailmakerUiKit`];window.__emailmaker__.publicPath||(window.__emailmaker__.publicPath=(function(){var e=(function(){try{var e={}.url;return e.substring(0,e.lastIndexOf(`/`)+1)}catch{return`./`}})();e||=`./`;try{var t=String(e);if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(t)||t.indexOf(`//`)===0)return t;var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return String(e)}})()),window.__emailmaker__.assetUrl||(window.__emailmaker__.assetUrl=function(e){function t(e){try{var t=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return t?new URL(String(e||``),t).href:String(e||``)}catch{return String(e||``)}}var n=String(e||``);if(!n)return``;if(/^(?:data:|blob:)/.test(n))return n;if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(n)||n.indexOf(`//`)===0||n.charAt(0)===`/`)return t(n);var r=n.replace(/^\.\/+/,``).replace(/^\/+/,``),i=`static/media`.replace(/^\.\/+/,``).replace(/^\/+/,``).replace(/\/+$/,``),a=i&&r.indexOf(i+`/`)!==0?i+`/`+r:r,o=window.__emailmaker__.publicPath||`./`;try{return new URL(a,o).href}catch{return o.slice(-1)!==`/`&&(o+=`/`),t(o+a)}});var a=Promise.resolve().then(()=>e(`./static/amd/8fc2a596.js`)).then(function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return e});t.modules=r,i.forEach(function(e){r[e]=a.then(function(t){var n=t[e];return r[e]=n,n})}),t.prefetch=function(){return a.then(function(){if(typeof n==`function`)return 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.3`,supports:{"ui-kit":`^0.1.0`,"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);var I=new WeakMap;function L(e){let t=null;return async(n,r,i)=>(t||=Promise.resolve(e(n,r,i)).finally(()=>{t=null}),t)}function R(e){let t=e.getAuthToken;if(!t)return e;let n=I.get(t);return n||(n=L(t),I.set(t,n),Promise.resolve(n(e.user,e.project,void 0)).catch(e=>{})),{...e,getAuthToken:n}}function z(e,t){return{...e,element:t}}function B(){return()=>{}}function V(e){if(e.initialSpinner===!1||typeof document>`u`)return{options:e,cleanup:B()};let t=e.element;if(!t||typeof t==`string`)return{options:e,cleanup:B()};t.querySelectorAll(`.blocks-app-initial-spinner-wrapper`).forEach(e=>{e.remove()});let n=N(t,`data-emailmaker`),r=e.handleChunkLoaded;return{options:{...e,handleChunkLoaded:()=>{n(),r?.()}},cleanup:n}}var H=`1.0.107-dev.3`;async function U(e){await y(typeof __emailmaker__<`u`?__emailmaker__:void 0)}async function W(e){let t=new r.l,n=await O(e.element,t);t.dispose();let i=R(z(e,n));if(n){let e=k.get(n);if(e)try{let t=await e;if(t.getElement()===n)return t.reset(i)}catch{k.get(n)===e&&k.delete(n)}}let a=V(i),o=a.options;await _(),S(typeof __emailmaker__<`u`?__emailmaker__:void 0);let s=p().then(e=>e.init(o));n&&k.set(n,s);try{let e=await s;return n&&k.set(n,e),e}catch(e){throw a.cleanup(),n&&k.get(n)===s&&k.delete(n),e}}async function G(e){return(await p()).parseAMP(e)}typeof window<`u`&&C(typeof __emailmaker__<`u`?__emailmaker__:void 0),Object.defineProperty(t,`errors`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(t,`helpers`,{enumerable:!0,get:function(){return F}}),t.init=W,t.parseAMP=G,t.pluginRegistry=D,t.preload=U,t.version=H});
|
|
85
|
+
}`;function E(){return()=>{}}function D(e,t){if(!e||typeof document>`u`)return E();e.querySelectorAll(`.blocks-app-initial-spinner-wrapper`).forEach(e=>{e.remove()});let n=document.createElement(`div`);n.classList.add(`blocks-app-initial-spinner-wrapper`);let r=document.createElement(`span`);r.classList.add(`blocks-app-initial-spinner`);let i=`http://www.w3.org/2000/svg`,a=document.createElementNS(i,`svg`);a.setAttribute(`viewBox`,`0 0 1024 1024`),a.setAttribute(`focusable`,`false`),a.setAttribute(`aria-hidden`,`true`),a.classList.add(`blocks-app-initial-spinner-icon`);let o=document.createElementNS(i,`path`);o.setAttribute(`d`,w),a.appendChild(o),r.appendChild(a),n.appendChild(r);let s=document.createElement(`style`);s.setAttribute(t,`true`),s.textContent=T,document.head?.appendChild(s),e.appendChild(n);let c=!1;return()=>{c||(c=!0,n.remove(),s.remove())}}var O=new WeakMap,k=new Map;function A(e){return j(String(e||``).trim()||`https://app.emailmaker.ru/api/`)}function j(e){let t=e;for(;t.endsWith(`/`);)t=t.slice(0,t.length-1);return`${t}/wp-json`}async function M(e){if(!e.getAuthToken)return;let t=await e.getAuthToken(e.user,e.project,void 0);return t?`Bearer ${t}`:void 0}function N(e){return async({baseUrl:t})=>{let n=A(t);if(!n)throw Error(`[Loader] appInit warmup requires baseUrl or REACT_APP_OPENAPI_BASE_URL`);let r=new Headers({Accept:`application/json`,"Content-Type":`application/x-www-form-urlencoded;charset=UTF-8`}),i=await M(e);i&&r.set(`authorization`,i);let a=await fetch(`${n}/app/v1/app_init`,{method:`POST`,headers:r,body:new URLSearchParams,credentials:`same-origin`});if(!a.ok)throw Error(`[Loader] appInit request failed: ${a.status} ${a.statusText}`);return a.json()}}function P(e){return JSON.stringify({baseUrl:A(e.baseUrl)||``,project:e.project??``,userId:e.user?.id??``})}function F(e){return async t=>{let n=P(t),r=k.get(n);if(r)return r;let i=Promise.resolve(e(t)).catch(e=>{throw k.delete(n),e});return k.set(n,i),i}}function I(e){if(e.standaloneKey)return e;let t=e.appInit||N(e),n=O.get(t);return n||(n=F(t),O.set(t,n)),Promise.resolve(n({baseUrl:e.baseUrl,user:e.user,project:e.project,prevApp:void 0})).catch(e=>{}),{...e,appInit:n}}var L=new WeakMap;function R(e){let t=null;return async(n,r,i)=>(t||=Promise.resolve(e(n,r,i)).finally(()=>{t=null}),t)}function z(e){if(e.standaloneKey)return e;let t=e.getAuthToken;if(!t)return e;let n=L.get(t);return n||(n=R(t),L.set(t,n)),Promise.resolve(n(e.user,e.project,void 0)).catch(e=>{}),{...e,getAuthToken:n}}var B=r.f({FileManagerApiError:()=>r.t}),V=r.f({mapHttpStatusToErrorCode:()=>r.n});(function(){"use strict";var t=window.__emailmaker__||(window.__emailmaker__={}),n=t.prefetch,r=t.modules&&typeof t.modules==`object`?t.modules:{},i=[`React`,`ReactDom`,`ReactDomClient`,`ReactJsxRuntime`,`ReactJsxDevRuntime`,`PropTypes`,`ReactRouterDom`,`Antd`,`AntDesignIcons`,`AntDesignCssinjs`,`AntDesignProLayout`,`Classnames`,`Dayjs`,`Uuid`,`Core`],a=t.__diagnostics||={},o=a.runtimeLoads||={entries:[],warnings:[]};window.__emailmaker__.publicPath||(window.__emailmaker__.publicPath=(function(){var e=(function(){try{var e={}.url;return e.substring(0,e.lastIndexOf(`/`)+1)}catch{return`./`}})();e||=`./`;try{var t=String(e);if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(t)||t.indexOf(`//`)===0)return t;var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return String(e)}})()),window.__emailmaker__.assetUrl||(window.__emailmaker__.assetUrl=function(e){function t(e){try{var t=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return t?new URL(String(e||``),t).href:String(e||``)}catch{return String(e||``)}}var n=String(e||``);if(!n)return``;if(/^(?:data:|blob:)/.test(n))return n;if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(n)||n.indexOf(`//`)===0||n.charAt(0)===`/`)return t(n);var r=n.replace(/^\.\/+/,``).replace(/^\/+/,``),i=`static/media`.replace(/^\.\/+/,``).replace(/^\/+/,``).replace(/\/+$/,``),a=i&&r.indexOf(i+`/`)!==0?i+`/`+r:r,o=window.__emailmaker__.publicPath||`./`;try{return new URL(a,o).href}catch{return o.slice(-1)!==`/`&&(o+=`/`),t(o+a)}});var s=Promise.resolve().then(()=>e(`./static/amd/19aeb269.js`)).then(function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return e}),c={source:`legacy-shared`,modulesObject:r,modulesPromise:s,previousPrefetch:n,stack:Error().stack,timestamp:Date.now()};if(o.entries.length>0){var l=o.entries[o.entries.length-1];if(l&&l.modulesObject!==r){var u={message:`[runtime] Duplicate runtime shared initialization detected`,current:c,previous:l,timestamp:Date.now()};o.warnings.push(u),typeof console<`u`&&typeof console.warn==`function`&&u.message}}if(o.entries.push(c),t.modules=r,i.forEach(function(e){r[e]=s.then(function(t){var n=t[e];return r[e]=n,n})}),typeof t.define==`function`){function e(e){if(!e||typeof e!=`object`&&typeof e!=`function`||e.__esModule)return e;var t=Object.create(null);Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});for(var n=Reflect.ownKeys(e),r=0;r<n.length;r++){var i=n[r];if(i!==`__esModule`){var a=Object.getOwnPropertyDescriptor(e,i);a&&Object.defineProperty(t,i,a)}}return t}var d=t.__diagnostics||={},f=d.runtimeLoads||={entries:[],warnings:[]},p=d.runtimeModules||={byModuleId:Object.create(null),byExportName:Object.create(null),warnings:[]};function n(e,t){var n={message:e,payload:t,timestamp:Date.now()};p.warnings.push(n),f&&f.warnings&&f.warnings.push(n)}function i(e,t,r,i,a){var o=p.byModuleId[e];o||=p.byModuleId[e]={moduleId:e,exportName:t,records:[],duplicateWarningShown:!1};var s=p.byExportName[t];s||=p.byExportName[t]={exportName:t,moduleIds:[],records:[]},s.moduleIds.indexOf(e)<0&&s.moduleIds.push(e);var c={source:a,originalValue:r,resolvedValue:i,timestamp:Date.now(),stack:Error().stack};return o.records.push(c),s.records.push(c),o.firstResolvedValue?(o.firstResolvedValue!==i&&o.firstOriginalValue!==r&&!o.duplicateWarningShown&&(o.duplicateWarningShown=!0,n(`[runtime] Duplicate runtime module detected`,{moduleId:e,exportName:t,first:{originalValue:o.firstOriginalValue,resolvedValue:o.firstResolvedValue},second:{originalValue:r,resolvedValue:i},records:o.records})),i):(o.firstResolvedValue=i,o.firstOriginalValue=r,i)}t.define(`react`,[],function(){var t=r.React;return t&&typeof t.then==`function`?s.then(function(t){var n=t.React;return i(`react`,`React`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.React;return i(`react`,`React`,n,e(n),`barrel-fallback`)}):i(`react`,`React`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/react`,[],function(){var t=r.React;return t&&typeof t.then==`function`?s.then(function(t){var n=t.React;return i(`@emailmaker/emailmaker/runtime/react`,`React`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.React;return i(`@emailmaker/emailmaker/runtime/react`,`React`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react`,`React`,t,e(t),`modules-cache`)}),t.define(`react-dom`,[],function(){var t=r.ReactDom;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactDom;return i(`react-dom`,`ReactDom`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactDom;return i(`react-dom`,`ReactDom`,n,e(n),`barrel-fallback`)}):i(`react-dom`,`ReactDom`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/react-dom`,[],function(){var t=r.ReactDom;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactDom;return i(`@emailmaker/emailmaker/runtime/react-dom`,`ReactDom`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactDom;return i(`@emailmaker/emailmaker/runtime/react-dom`,`ReactDom`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react-dom`,`ReactDom`,t,e(t),`modules-cache`)}),t.define(`react-dom/client`,[],function(){var t=r.ReactDomClient;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactDomClient;return i(`react-dom/client`,`ReactDomClient`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactDomClient;return i(`react-dom/client`,`ReactDomClient`,n,e(n),`barrel-fallback`)}):i(`react-dom/client`,`ReactDomClient`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/react-dom/client`,[],function(){var t=r.ReactDomClient;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactDomClient;return i(`@emailmaker/emailmaker/runtime/react-dom/client`,`ReactDomClient`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactDomClient;return i(`@emailmaker/emailmaker/runtime/react-dom/client`,`ReactDomClient`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react-dom/client`,`ReactDomClient`,t,e(t),`modules-cache`)}),t.define(`react/jsx-runtime`,[],function(){var t=r.ReactJsxRuntime;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactJsxRuntime;return i(`react/jsx-runtime`,`ReactJsxRuntime`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactJsxRuntime;return i(`react/jsx-runtime`,`ReactJsxRuntime`,n,e(n),`barrel-fallback`)}):i(`react/jsx-runtime`,`ReactJsxRuntime`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/react/jsx-runtime`,[],function(){var t=r.ReactJsxRuntime;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactJsxRuntime;return i(`@emailmaker/emailmaker/runtime/react/jsx-runtime`,`ReactJsxRuntime`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactJsxRuntime;return i(`@emailmaker/emailmaker/runtime/react/jsx-runtime`,`ReactJsxRuntime`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react/jsx-runtime`,`ReactJsxRuntime`,t,e(t),`modules-cache`)}),t.define(`react/jsx-dev-runtime`,[],function(){var t=r.ReactJsxDevRuntime;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactJsxDevRuntime;return i(`react/jsx-dev-runtime`,`ReactJsxDevRuntime`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactJsxDevRuntime;return i(`react/jsx-dev-runtime`,`ReactJsxDevRuntime`,n,e(n),`barrel-fallback`)}):i(`react/jsx-dev-runtime`,`ReactJsxDevRuntime`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/react/jsx-dev-runtime`,[],function(){var t=r.ReactJsxDevRuntime;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactJsxDevRuntime;return i(`@emailmaker/emailmaker/runtime/react/jsx-dev-runtime`,`ReactJsxDevRuntime`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactJsxDevRuntime;return i(`@emailmaker/emailmaker/runtime/react/jsx-dev-runtime`,`ReactJsxDevRuntime`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react/jsx-dev-runtime`,`ReactJsxDevRuntime`,t,e(t),`modules-cache`)}),t.define(`prop-types`,[],function(){var t=r.PropTypes;return t&&typeof t.then==`function`?s.then(function(t){var n=t.PropTypes;return i(`prop-types`,`PropTypes`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.PropTypes;return i(`prop-types`,`PropTypes`,n,e(n),`barrel-fallback`)}):i(`prop-types`,`PropTypes`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/prop-types`,[],function(){var t=r.PropTypes;return t&&typeof t.then==`function`?s.then(function(t){var n=t.PropTypes;return i(`@emailmaker/emailmaker/runtime/prop-types`,`PropTypes`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.PropTypes;return i(`@emailmaker/emailmaker/runtime/prop-types`,`PropTypes`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/prop-types`,`PropTypes`,t,e(t),`modules-cache`)}),t.define(`react-router-dom`,[],function(){var t=r.ReactRouterDom;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactRouterDom;return i(`react-router-dom`,`ReactRouterDom`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactRouterDom;return i(`react-router-dom`,`ReactRouterDom`,n,e(n),`barrel-fallback`)}):i(`react-router-dom`,`ReactRouterDom`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/react-router-dom`,[],function(){var t=r.ReactRouterDom;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactRouterDom;return i(`@emailmaker/emailmaker/runtime/react-router-dom`,`ReactRouterDom`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactRouterDom;return i(`@emailmaker/emailmaker/runtime/react-router-dom`,`ReactRouterDom`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react-router-dom`,`ReactRouterDom`,t,e(t),`modules-cache`)}),t.define(`antd`,[],function(){var t=r.Antd;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Antd;return i(`antd`,`Antd`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Antd;return i(`antd`,`Antd`,n,e(n),`barrel-fallback`)}):i(`antd`,`Antd`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/antd`,[],function(){var t=r.Antd;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Antd;return i(`@emailmaker/emailmaker/runtime/antd`,`Antd`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Antd;return i(`@emailmaker/emailmaker/runtime/antd`,`Antd`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/antd`,`Antd`,t,e(t),`modules-cache`)}),t.define(`@ant-design/icons`,[],function(){var t=r.AntDesignIcons;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AntDesignIcons;return i(`@ant-design/icons`,`AntDesignIcons`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AntDesignIcons;return i(`@ant-design/icons`,`AntDesignIcons`,n,e(n),`barrel-fallback`)}):i(`@ant-design/icons`,`AntDesignIcons`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/@ant-design/icons`,[],function(){var t=r.AntDesignIcons;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AntDesignIcons;return i(`@emailmaker/emailmaker/runtime/@ant-design/icons`,`AntDesignIcons`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AntDesignIcons;return i(`@emailmaker/emailmaker/runtime/@ant-design/icons`,`AntDesignIcons`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/@ant-design/icons`,`AntDesignIcons`,t,e(t),`modules-cache`)}),t.define(`@ant-design/cssinjs`,[],function(){var t=r.AntDesignCssinjs;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AntDesignCssinjs;return i(`@ant-design/cssinjs`,`AntDesignCssinjs`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AntDesignCssinjs;return i(`@ant-design/cssinjs`,`AntDesignCssinjs`,n,e(n),`barrel-fallback`)}):i(`@ant-design/cssinjs`,`AntDesignCssinjs`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/@ant-design/cssinjs`,[],function(){var t=r.AntDesignCssinjs;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AntDesignCssinjs;return i(`@emailmaker/emailmaker/runtime/@ant-design/cssinjs`,`AntDesignCssinjs`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AntDesignCssinjs;return i(`@emailmaker/emailmaker/runtime/@ant-design/cssinjs`,`AntDesignCssinjs`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/@ant-design/cssinjs`,`AntDesignCssinjs`,t,e(t),`modules-cache`)}),t.define(`@ant-design/pro-layout`,[],function(){var t=r.AntDesignProLayout;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AntDesignProLayout;return i(`@ant-design/pro-layout`,`AntDesignProLayout`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AntDesignProLayout;return i(`@ant-design/pro-layout`,`AntDesignProLayout`,n,e(n),`barrel-fallback`)}):i(`@ant-design/pro-layout`,`AntDesignProLayout`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/@ant-design/pro-layout`,[],function(){var t=r.AntDesignProLayout;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AntDesignProLayout;return i(`@emailmaker/emailmaker/runtime/@ant-design/pro-layout`,`AntDesignProLayout`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AntDesignProLayout;return i(`@emailmaker/emailmaker/runtime/@ant-design/pro-layout`,`AntDesignProLayout`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/@ant-design/pro-layout`,`AntDesignProLayout`,t,e(t),`modules-cache`)}),t.define(`classnames`,[],function(){var t=r.Classnames;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Classnames;return i(`classnames`,`Classnames`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Classnames;return i(`classnames`,`Classnames`,n,e(n),`barrel-fallback`)}):i(`classnames`,`Classnames`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/classnames`,[],function(){var t=r.Classnames;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Classnames;return i(`@emailmaker/emailmaker/runtime/classnames`,`Classnames`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Classnames;return i(`@emailmaker/emailmaker/runtime/classnames`,`Classnames`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/classnames`,`Classnames`,t,e(t),`modules-cache`)}),t.define(`dayjs`,[],function(){var t=r.Dayjs;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Dayjs;return i(`dayjs`,`Dayjs`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Dayjs;return i(`dayjs`,`Dayjs`,n,e(n),`barrel-fallback`)}):i(`dayjs`,`Dayjs`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/dayjs`,[],function(){var t=r.Dayjs;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Dayjs;return i(`@emailmaker/emailmaker/runtime/dayjs`,`Dayjs`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Dayjs;return i(`@emailmaker/emailmaker/runtime/dayjs`,`Dayjs`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/dayjs`,`Dayjs`,t,e(t),`modules-cache`)}),t.define(`uuid`,[],function(){var t=r.Uuid;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Uuid;return i(`uuid`,`Uuid`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Uuid;return i(`uuid`,`Uuid`,n,e(n),`barrel-fallback`)}):i(`uuid`,`Uuid`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/uuid`,[],function(){var t=r.Uuid;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Uuid;return i(`@emailmaker/emailmaker/runtime/uuid`,`Uuid`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Uuid;return i(`@emailmaker/emailmaker/runtime/uuid`,`Uuid`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/uuid`,`Uuid`,t,e(t),`modules-cache`)}),t.define(`di`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`di`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`di`,`Core`,n,e(n),`barrel-fallback`)}):i(`di`,`Core`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/di`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime/di`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime/di`,`Core`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/di`,`Core`,t,e(t),`modules-cache`)}),t.define(`disposable`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`disposable`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`disposable`,`Core`,n,e(n),`barrel-fallback`)}):i(`disposable`,`Core`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/disposable`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime/disposable`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime/disposable`,`Core`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/disposable`,`Core`,t,e(t),`modules-cache`)}),t.define(`guid`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`guid`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`guid`,`Core`,n,e(n),`barrel-fallback`)}):i(`guid`,`Core`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/guid`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime/guid`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime/guid`,`Core`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/guid`,`Core`,t,e(t),`modules-cache`)}),t.define(`app-core`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`app-core`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`app-core`,`Core`,n,e(n),`barrel-fallback`)}):i(`app-core`,`Core`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/app-core`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime/app-core`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime/app-core`,`Core`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/app-core`,`Core`,t,e(t),`modules-cache`)}),t.define(`errors-runtime`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`errors-runtime`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`errors-runtime`,`Core`,n,e(n),`barrel-fallback`)}):i(`errors-runtime`,`Core`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/errors-runtime`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime/errors-runtime`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime/errors-runtime`,`Core`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/errors-runtime`,`Core`,t,e(t),`modules-cache`)})}t.prefetch=function(){return s.then(function(){if(typeof n==`function`)return 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);function H(e,t){return{...e,element:t}}function U(){return()=>{}}function W(e){if(e.initialSpinner===!1||typeof document>`u`)return{options:e,cleanup:U()};let t=e.element;if(!t||typeof t==`string`)return{options:e,cleanup:U()};t.querySelectorAll(`.blocks-app-initial-spinner-wrapper`).forEach(e=>{e.remove()});let n=D(t,`data-emailmaker`),r=e.handleChunkLoaded;return{options:{...e,handleChunkLoaded:()=>{n(),r?.()}},cleanup:n}}var G=`1.0.107-dev.4`;async function K(e){await p(typeof __emailmaker__<`u`?__emailmaker__:void 0)}async function q(e){let t=new r.l,n=await S(e.element,t);t.dispose();let i=I(z(H(e,n)));if(n){let e=C.get(n);if(e)try{let t=await e;if(t.getElement()===n)return t.reset(i)}catch{C.get(n)===e&&C.delete(n)}}let a=W(i),o=a.options;await d(),g(typeof __emailmaker__<`u`?__emailmaker__:void 0);let c=s().then(e=>e.init(o));n&&C.set(n,c);try{let e=await c;return n&&C.set(n,e),e}catch(e){throw a.cleanup(),n&&C.get(n)===c&&C.delete(n),e}}async function J(e){return(await s()).parseAMP(e)}typeof window<`u`&&_(typeof __emailmaker__<`u`?__emailmaker__:void 0),Object.defineProperty(t,`errors`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(t,`helpers`,{enumerable:!0,get:function(){return V}}),t.init=q,t.parseAMP=J,t.pluginRegistry=x,t.preload=K,t.version=G});
|
|
86
86
|
|
|
87
87
|
// Возвращаем API из entry модуля
|
|
88
88
|
return __emailmaker__.syncRequire("emailmaker.js");
|