@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/static/core/d661febc.js
DELETED
package/static/core/d6d2d2d0.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (e && (t = e(e = 0)), t), s = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), c = (e, n) => {
|
|
3
|
-
let r = {};
|
|
4
|
-
for (var i in e) t(r, i, {
|
|
5
|
-
get: e[i],
|
|
6
|
-
enumerable: !0
|
|
7
|
-
});
|
|
8
|
-
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
-
}, l = (e, i, o, s) => {
|
|
10
|
-
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
11
|
-
get: ((e) => i[e]).bind(null, d),
|
|
12
|
-
enumerable: !(s = n(i, d)) || s.enumerable
|
|
13
|
-
});
|
|
14
|
-
return e;
|
|
15
|
-
}, u = (e, t, n) => (l(e, t, "default"), n && l(n, t, "default")), d = (n, r, a) => (a = n == null ? {} : e(i(n)), l(r || !n || !n.__esModule ? t(a, "default", {
|
|
16
|
-
value: n,
|
|
17
|
-
enumerable: !0
|
|
18
|
-
}) : a, n)), f = (e) => a.call(e, "module.exports") ? e["module.exports"] : l(t({}, "__esModule", { value: !0 }), e), p = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
19
|
-
if (typeof require < "u") return require.apply(this, arguments);
|
|
20
|
-
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
21
|
-
});
|
|
22
|
-
//#endregion
|
|
23
|
-
export { p as a, u as i, o as n, f as o, c as r, d as s, s as t };
|
package/static/core/df1a1225.js
DELETED
|
@@ -1,607 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./d6d2d2d0.js";
|
|
2
|
-
import { g as n, u as r } from "./4091ba5b.js";
|
|
3
|
-
import { Bt as i, Ct as a, Ft as o, St as s, V as c, Vt as l, c as u, j as d, t as f, xt as p, zt as ee } from "./cdc9ba92.js";
|
|
4
|
-
import { Ht as m, I as te, Jt as ne, L as h, Rt as re, Zt as ie, c as g, d as ae } from "./4ac4908c.js";
|
|
5
|
-
import { a as _, m as v, p as oe, r as y } from "./a2fa7b5b.js";
|
|
6
|
-
import { d as se, l as ce } from "./972b15b0.js";
|
|
7
|
-
import { an as le, in as ue, rn as de, tn as b } from "./5fa1772b.js";
|
|
8
|
-
//#region \0globals:react-router-dom
|
|
9
|
-
var x = /* @__PURE__ */ t(((e) => {
|
|
10
|
-
var t = window.__emailmaker__.modules.ReactRouterDom;
|
|
11
|
-
Object.keys(t).forEach(function(n) {
|
|
12
|
-
n !== "default" && n !== "__esModule" && (e[n] = t[n]);
|
|
13
|
-
}), e.__esModule = !0, e.default = t.default === void 0 ? t : t.default;
|
|
14
|
-
})), S = /* @__PURE__ */ e(i());
|
|
15
|
-
function fe(e) {
|
|
16
|
-
return re.getOrCreateInstance(e, r, () => new ee());
|
|
17
|
-
}
|
|
18
|
-
function pe() {
|
|
19
|
-
let e = C();
|
|
20
|
-
return (0, S.useCallback)((t) => {
|
|
21
|
-
e.setTarget(t instanceof Element ? t.contentWindow : t);
|
|
22
|
-
}, [e]);
|
|
23
|
-
}
|
|
24
|
-
function C() {
|
|
25
|
-
let e = _();
|
|
26
|
-
return (0, S.useMemo)(() => fe(e), [e]);
|
|
27
|
-
}
|
|
28
|
-
function w() {
|
|
29
|
-
let e = C();
|
|
30
|
-
return (0, S.useCallback)(function(t) {
|
|
31
|
-
e.send(t);
|
|
32
|
-
}, [e]);
|
|
33
|
-
}
|
|
34
|
-
function me() {
|
|
35
|
-
let e = C();
|
|
36
|
-
return (0, S.useCallback)(function(t, n) {
|
|
37
|
-
e.send(t, n);
|
|
38
|
-
}, [e]);
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region src/app/rootContext.ts
|
|
42
|
-
var T = (0, S.createContext)({ element: void 0 }), E = () => (0, S.useContext)(T)?.element, D = (0, S.createContext)(void 0), he = () => (0, S.useContext)(D), O = (0, S.createContext)(!1), ge = () => (0, S.useContext)(O), _e = (e, t) => {
|
|
43
|
-
let n = () => {
|
|
44
|
-
try {
|
|
45
|
-
let t = {
|
|
46
|
-
...e,
|
|
47
|
-
appLabel: "blocks_app"
|
|
48
|
-
};
|
|
49
|
-
window.dataLayer && typeof window.dataLayer.push == "function" && window.dataLayer.push(t);
|
|
50
|
-
let n = typeof t.event == "string" && t.event.trim() ? t.event.trim() : null, r = (typeof t.action == "string" && t.action.trim() ? t.action.trim() : null) || (typeof t.event_action == "string" && t.event_action.trim() ? t.event_action.trim() : null), i;
|
|
51
|
-
i = n && r ? `${n}_${r}` : n || r || "event";
|
|
52
|
-
let { event: a, action: o, ...s } = t;
|
|
53
|
-
"event_action" in s && delete s.event_action;
|
|
54
|
-
let c = {
|
|
55
|
-
...s,
|
|
56
|
-
...n ? { event: n } : {},
|
|
57
|
-
...r ? { action: r } : {}
|
|
58
|
-
};
|
|
59
|
-
typeof window < "u" && window.amplitude && typeof window.amplitude.track == "function" && window.amplitude.track(i, c);
|
|
60
|
-
} catch (e) {
|
|
61
|
-
console.error("Ошибка при вызове GTM:", e);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
t ? setTimeout(n, t) : n();
|
|
65
|
-
}, k = () => {
|
|
66
|
-
let e = te();
|
|
67
|
-
return (0, S.useCallback)((t, n) => {
|
|
68
|
-
e.pushToGTM !== !1 && _e(t, n);
|
|
69
|
-
}, [e.pushToGTM]);
|
|
70
|
-
}, A = m({
|
|
71
|
-
project: null,
|
|
72
|
-
activeGroupsTags: [],
|
|
73
|
-
activeProjectGroupsTags: [],
|
|
74
|
-
groupsTemplateTotal: null,
|
|
75
|
-
groupsTemplateProjectTotalPages: null,
|
|
76
|
-
groupsTemplateProjectTotal: null
|
|
77
|
-
}), j = "projectSlice", M = v({
|
|
78
|
-
name: j,
|
|
79
|
-
initialState: A,
|
|
80
|
-
reducers: {
|
|
81
|
-
setProject: (e, { payload: t }) => {
|
|
82
|
-
e.project = t;
|
|
83
|
-
},
|
|
84
|
-
setActiveGroupsTags: (e, { payload: t }) => {
|
|
85
|
-
e.activeGroupsTags = t, t.length && (e.activeProjectGroupsTags = []);
|
|
86
|
-
},
|
|
87
|
-
setActiveProjectGroupsTags: (e, { payload: t }) => {
|
|
88
|
-
e.activeProjectGroupsTags = t, t.length && (e.activeGroupsTags = []);
|
|
89
|
-
},
|
|
90
|
-
resetAllTags: (e) => {
|
|
91
|
-
e.activeProjectGroupsTags = [], e.activeGroupsTags = [];
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
extraReducers: (e) => {
|
|
95
|
-
e.addMatcher(g.endpoints.getProject.matchFulfilled, (e, { payload: t }) => {
|
|
96
|
-
e.project = {
|
|
97
|
-
...A.project,
|
|
98
|
-
...t
|
|
99
|
-
};
|
|
100
|
-
}), e.addMatcher(g.endpoints.editProject.matchFulfilled, (e, { payload: t }) => {
|
|
101
|
-
e.project = {
|
|
102
|
-
...A.project,
|
|
103
|
-
...t
|
|
104
|
-
};
|
|
105
|
-
}), e.addMatcher(ae.endpoints.getTemplateEmails.matchFulfilled, (e, { payload: t, meta: n }) => {
|
|
106
|
-
let { projectId: r } = n.arg.originalArgs;
|
|
107
|
-
r ? (e.groupsTemplateProjectTotal = +n.baseQueryMeta?.response.headers.get("X-WP-Total"), e.groupsTemplateProjectTotalPages = +n.baseQueryMeta?.response.headers.get("X-WP-TotalPages")) : e.groupsTemplateTotal = +n.baseQueryMeta?.response.headers.get("X-WP-Total");
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
}), { setProject: ve, setActiveGroupsTags: ye, setActiveProjectGroupsTags: be, resetAllTags: xe } = M.actions, Se = (e) => e[j].groupsTemplateProjectTotalPages, N = (e) => e[j].project, Ce = (e) => e[j].activeGroupsTags, we = (e) => e[j].groupsTemplateTotal, Te = (e) => e[j].project?.projects_test_emails, Ee = (e) => e[j].activeProjectGroupsTags, De = (e) => e[j].groupsTemplateProjectTotal, P = x(), Oe = /* @__PURE__ */ e(ue()), ke = (e) => {
|
|
111
|
-
Object.keys(u).forEach((t) => {
|
|
112
|
-
e.get(u[t]) !== "onboarding_success" && e.remove(u[t]);
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
function Ae(e) {
|
|
116
|
-
let t = le(e);
|
|
117
|
-
return isNaN(t) ? new Date(e) : t;
|
|
118
|
-
}
|
|
119
|
-
var je = (e, t, n = !1) => {
|
|
120
|
-
e instanceof Date;
|
|
121
|
-
let r = /* @__PURE__ */ new Date(), i = e.getDate() === r.getDate() && e.getMonth() === r.getMonth() && e.getFullYear() === r.getFullYear();
|
|
122
|
-
if (n && i) {
|
|
123
|
-
let n = Math.floor((r - e) / 1e3), i = Math.floor(n / 60), a = Math.floor(i / 60);
|
|
124
|
-
if (n < 60) return t("Just now");
|
|
125
|
-
if (a > 0) {
|
|
126
|
-
let e = i % 60;
|
|
127
|
-
return `${a} ${t("hour", "hours", a)} ${e} ${t("minute", "minutes", e)}`;
|
|
128
|
-
} else return `${i} ${t("minute", "minutes", i)}`;
|
|
129
|
-
} else {
|
|
130
|
-
let t = new Intl.DateTimeFormat(navigator.language, { dateStyle: "short" }), n = new Intl.DateTimeFormat(navigator.language, { timeStyle: "short" });
|
|
131
|
-
return t.format(e) + " " + n.format(e);
|
|
132
|
-
}
|
|
133
|
-
}, F = (e) => {
|
|
134
|
-
let t = e.match(/(\(copy\))( \d+)?$/), n = t?.[1], r = t?.[2];
|
|
135
|
-
return n ? r ? `${e.slice(0, -r.length)} ${+r.slice(1) + 1}` : `${e} 2` : `${e} (copy)`;
|
|
136
|
-
};
|
|
137
|
-
function Me(e, t, n) {
|
|
138
|
-
let r = /* @__PURE__ */ new Map(), i = RegExp(`(${t})(.*?)(${n})`, "gis");
|
|
139
|
-
return e = e.replaceAll(i, (e, t, n, i) => {
|
|
140
|
-
let a = f();
|
|
141
|
-
return r.set(a, n), t + a + i;
|
|
142
|
-
}), {
|
|
143
|
-
escapes: r,
|
|
144
|
-
html: e
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
function I(e, t) {
|
|
148
|
-
let n = [];
|
|
149
|
-
for (let [r, i] of t) {
|
|
150
|
-
let { escapes: t, html: a } = Me(e, r, i);
|
|
151
|
-
e = a, n.push([
|
|
152
|
-
r,
|
|
153
|
-
i,
|
|
154
|
-
t
|
|
155
|
-
]);
|
|
156
|
-
}
|
|
157
|
-
return {
|
|
158
|
-
escapes: n,
|
|
159
|
-
html: e
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
function Ne(e, t, n, r) {
|
|
163
|
-
let i = RegExp(`(${t})(.*?)(${n})`, "gis");
|
|
164
|
-
return e.replaceAll(i, (e, t, n, i) => {
|
|
165
|
-
let a = r.get(n);
|
|
166
|
-
return typeof a == "string" ? t + a + i : e;
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
function Pe(e, t) {
|
|
170
|
-
for (let [n, r, i] of t) e = Ne(e, n, r, i);
|
|
171
|
-
return e;
|
|
172
|
-
}
|
|
173
|
-
var L = /<title>(.*)<\/title>/gm, Fe = (e, t) => {
|
|
174
|
-
let { escapes: n, html: r } = I(e, [
|
|
175
|
-
["<style.*?>", "<\\/style>"],
|
|
176
|
-
["<script.*?>", "<\\/script>"],
|
|
177
|
-
["<\\!--", "-->"]
|
|
178
|
-
]);
|
|
179
|
-
return r = r.replaceAll(L, (e, n) => n === t ? `<title>${F(n)}</title>` : e), Pe(r, n.reverse());
|
|
180
|
-
};
|
|
181
|
-
function Ie(e) {
|
|
182
|
-
let { html: t } = I(e, [
|
|
183
|
-
["<style.*?>", "<\\/style>"],
|
|
184
|
-
["<script.*?>", "<\\/script>"],
|
|
185
|
-
["<\\!--", "-->"]
|
|
186
|
-
]);
|
|
187
|
-
return [...t.matchAll(L)].map((e) => e[1]).find((e) => !!e);
|
|
188
|
-
}
|
|
189
|
-
var R = "ascend", z = "asc", B = "descend", V = "desc", Le = (e) => {
|
|
190
|
-
switch (e) {
|
|
191
|
-
case R: return z;
|
|
192
|
-
case B: return V;
|
|
193
|
-
default: return "";
|
|
194
|
-
}
|
|
195
|
-
}, Re = (e) => {
|
|
196
|
-
switch (e) {
|
|
197
|
-
case z: return R;
|
|
198
|
-
case V: return B;
|
|
199
|
-
default: return "";
|
|
200
|
-
}
|
|
201
|
-
}, ze = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/, Be = (e) => new Promise((t, n) => {
|
|
202
|
-
let r = new Image();
|
|
203
|
-
r.onload = () => {
|
|
204
|
-
t("success");
|
|
205
|
-
}, r.onerror = () => {
|
|
206
|
-
n("error");
|
|
207
|
-
}, r.src = e;
|
|
208
|
-
}), Ve = (e, t) => {
|
|
209
|
-
for (let n of t) typeof e.properties == "object" && (e = e.properties[n]);
|
|
210
|
-
return e;
|
|
211
|
-
}, He = (e) => e instanceof Array ? e.map((e) => ({
|
|
212
|
-
label: e,
|
|
213
|
-
value: e
|
|
214
|
-
})) : Object.keys(e).map((t) => ({
|
|
215
|
-
label: e[t],
|
|
216
|
-
value: t
|
|
217
|
-
})), H = (e, t, n = !0) => {
|
|
218
|
-
let r = Object.keys(t);
|
|
219
|
-
for (let i of r) {
|
|
220
|
-
let r = t[i];
|
|
221
|
-
r != null && (n && typeof r == "object" ? e[i] = H(e[i] || {}, r, !0) : e[i] = r);
|
|
222
|
-
}
|
|
223
|
-
return e;
|
|
224
|
-
}, Ue = (e) => new Promise((t, n) => {
|
|
225
|
-
Oe.default.load({
|
|
226
|
-
google: { families: [e] },
|
|
227
|
-
classes: !1,
|
|
228
|
-
active: t,
|
|
229
|
-
inactive: n
|
|
230
|
-
});
|
|
231
|
-
}), We = (e, t) => {
|
|
232
|
-
t && e(t);
|
|
233
|
-
}, Ge = () => {
|
|
234
|
-
let e = w(), t = E();
|
|
235
|
-
return (0, S.useCallback)((n, r, i, a) => {
|
|
236
|
-
t.querySelectorAll(".block-search__preview").forEach((e) => e.remove());
|
|
237
|
-
let o = t.querySelector("#iframe-scroll-top"), s = t.querySelector("#iframe-scroll-bottom"), c = t.querySelector("#email_iframe"), l = document.body.getBoundingClientRect().height, u = c.getClientRects()[0];
|
|
238
|
-
u.top < 0 && (o.style.display = "block"), u.top + u.height > l && (s.style.display = "block");
|
|
239
|
-
let f = {
|
|
240
|
-
operation: d.SANDBOX_BLOCK_INSERT,
|
|
241
|
-
settings: {
|
|
242
|
-
blockHTML: r || null,
|
|
243
|
-
targetBlock: null,
|
|
244
|
-
project: "emailmaker",
|
|
245
|
-
type: i,
|
|
246
|
-
name: a
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
n.dataTransfer.setData("Text", JSON.stringify(f)), e(f);
|
|
250
|
-
}, [e]);
|
|
251
|
-
}, Ke = () => {
|
|
252
|
-
let e = w(), t = E();
|
|
253
|
-
return (0, S.useCallback)((n, r, i) => {
|
|
254
|
-
let a = t.querySelector("#iframe-scroll-top"), o = t.querySelector("#iframe-scroll-bottom"), s = t.querySelector("#email_iframe"), c = document.body.getBoundingClientRect().height, l = s.getClientRects()[0];
|
|
255
|
-
l.top < 0 && (a.style.display = "block"), l.top + l.height > c && (o.style.display = "block");
|
|
256
|
-
let u = {
|
|
257
|
-
operation: d.SANDBOX_ATOM_INSERT,
|
|
258
|
-
settings: {
|
|
259
|
-
atomHTML: r.html || null,
|
|
260
|
-
targetBlock: null,
|
|
261
|
-
name: r.name
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
i(r) && n.dataTransfer.setData("Text", JSON.stringify(u)), e(u);
|
|
265
|
-
}, [e, t]);
|
|
266
|
-
}, qe = () => {
|
|
267
|
-
let e = w(), t = k(), { emailId: n, blockId: r, projectId: i } = (0, P.useParams)(), a = y(N);
|
|
268
|
-
return (0, S.useCallback)((o, s, c, l) => {
|
|
269
|
-
let u = c === "project" || c === "template" || c === "common" ? "block" : "structure", f = u === "block" ? l || c || "block" : l || c || "structure";
|
|
270
|
-
e({
|
|
271
|
-
operation: d.SANDBOX_BLOCK_INSERT,
|
|
272
|
-
action: "insert",
|
|
273
|
-
settings: {
|
|
274
|
-
blockHTML: s,
|
|
275
|
-
type: c
|
|
276
|
-
}
|
|
277
|
-
}), t({
|
|
278
|
-
event: "add",
|
|
279
|
-
action: "add_element_to_email",
|
|
280
|
-
element_type: u,
|
|
281
|
-
element_name: f,
|
|
282
|
-
entity_id: n || r,
|
|
283
|
-
project_id: a?.id || i
|
|
284
|
-
});
|
|
285
|
-
}, [
|
|
286
|
-
e,
|
|
287
|
-
t,
|
|
288
|
-
n,
|
|
289
|
-
r,
|
|
290
|
-
i,
|
|
291
|
-
a
|
|
292
|
-
]);
|
|
293
|
-
}, Je = () => {
|
|
294
|
-
let e = w(), t = k(), { emailId: n, blockId: r, projectId: i } = (0, P.useParams)(), a = y(N);
|
|
295
|
-
return (0, S.useCallback)((o, s) => {
|
|
296
|
-
e({
|
|
297
|
-
operation: d.SANDBOX_ATOM_INSERT,
|
|
298
|
-
action: "insert",
|
|
299
|
-
settings: {
|
|
300
|
-
atomHTML: s?.html ?? null,
|
|
301
|
-
targetBlock: null,
|
|
302
|
-
name: s?.name
|
|
303
|
-
}
|
|
304
|
-
}), t({
|
|
305
|
-
event: "add",
|
|
306
|
-
action: "add_element_to_email",
|
|
307
|
-
element_type: "atom",
|
|
308
|
-
element_name: s.name || "atom",
|
|
309
|
-
entity_id: n || r,
|
|
310
|
-
project_id: a?.id || i
|
|
311
|
-
});
|
|
312
|
-
}, [
|
|
313
|
-
e,
|
|
314
|
-
t,
|
|
315
|
-
n,
|
|
316
|
-
r,
|
|
317
|
-
i,
|
|
318
|
-
a
|
|
319
|
-
]);
|
|
320
|
-
}, Ye = (e, t) => {
|
|
321
|
-
t.success({
|
|
322
|
-
maskClosable: !0,
|
|
323
|
-
centered: !0,
|
|
324
|
-
title: e("Coming soon"),
|
|
325
|
-
content: e("The feature is under development."),
|
|
326
|
-
okText: e("Ok. I'll be waiting"),
|
|
327
|
-
onOk: () => {}
|
|
328
|
-
});
|
|
329
|
-
}, Xe = () => {
|
|
330
|
-
let e = w();
|
|
331
|
-
return (t, n) => {
|
|
332
|
-
e({
|
|
333
|
-
operation: d.SANDBOX_ELEMENT_SETTINGS_SET,
|
|
334
|
-
settings: t,
|
|
335
|
-
type: n
|
|
336
|
-
});
|
|
337
|
-
};
|
|
338
|
-
}, Ze = (e, t = "") => {
|
|
339
|
-
let n = [];
|
|
340
|
-
return e && e._embedded?.["wp:term"]?.filter((e) => !!e.length && (t ? e[0]?.taxonomy === t : !0)).forEach((e) => {
|
|
341
|
-
let t = e[0].taxonomy;
|
|
342
|
-
n[t] || (n[t] = []), n[t] = e.map((e) => ({
|
|
343
|
-
id: e.id,
|
|
344
|
-
name: e.name,
|
|
345
|
-
children: e.children
|
|
346
|
-
})), n[n.length] = n[t];
|
|
347
|
-
}), t !== "" && n.length ? n[t] : n;
|
|
348
|
-
}, Qe = (e, t = "") => e._embedded?.["wp:term"]?.find((e) => !!e.length && (t ? e[0]?.taxonomy === t : !0))?.find((e) => e?.name?.startsWith("project_"))?.children?.map((e) => ({
|
|
349
|
-
id: e.id,
|
|
350
|
-
name: e.name,
|
|
351
|
-
count: e.count
|
|
352
|
-
})) || null, $e = (e, t) => {
|
|
353
|
-
let n = e.target, r = t.getBoundingClientRect().height, i = n.getBoundingClientRect().height - r, a = e.clientY - t.getBoundingClientRect().top - 30, o = -(i * (Math.min(Math.max(a, 0), r - 60) / (r - 60)));
|
|
354
|
-
n.style.transform = `translateY(${o}px)`;
|
|
355
|
-
}, et = ({ target: e }) => {
|
|
356
|
-
e.style.transform = "translateY(0)";
|
|
357
|
-
};
|
|
358
|
-
function tt(e) {
|
|
359
|
-
let t = document.createElement("div");
|
|
360
|
-
return t.innerHTML = e, t.textContent || t.innerText || "";
|
|
361
|
-
}
|
|
362
|
-
//#endregion
|
|
363
|
-
//#region src/slices/userSlice.ts
|
|
364
|
-
var nt = m({
|
|
365
|
-
currentUser: {},
|
|
366
|
-
currentSchema: {},
|
|
367
|
-
monacoOptions: c,
|
|
368
|
-
monacoDidMount: !1
|
|
369
|
-
}), U = "userSlice", W = oe("user/setMonacoOptions", async (e, { getState: t }) => {
|
|
370
|
-
let n = t()[U], r = typeof e.font_family == "string" ? `${e.font_family}, sans-serif` : void 0, i = e.word_wrap === void 0 ? void 0 : e.word_wrap ? "on" : "off";
|
|
371
|
-
return r && n.monacoOptions.fontFamily !== r && await Ue(e.font_family), {
|
|
372
|
-
tabSize: e.tab_size,
|
|
373
|
-
fontFamily: r,
|
|
374
|
-
fontSize: e.font_size,
|
|
375
|
-
wordWrap: i,
|
|
376
|
-
insertSpaces: e.insert_spaces,
|
|
377
|
-
minimap: { enabled: e.minimap }
|
|
378
|
-
};
|
|
379
|
-
}), G = v({
|
|
380
|
-
name: U,
|
|
381
|
-
initialState: nt,
|
|
382
|
-
reducers: {
|
|
383
|
-
setMonacoDidMount: (e, { payload: t }) => {
|
|
384
|
-
e.monacoDidMount = t;
|
|
385
|
-
},
|
|
386
|
-
setTheme: (e, { payload: t }) => {
|
|
387
|
-
e.currentUser.theme = t;
|
|
388
|
-
},
|
|
389
|
-
setUserLocale: (e, { payload: t }) => {
|
|
390
|
-
e.currentUser.locale = t;
|
|
391
|
-
},
|
|
392
|
-
setUserAutosaves: (e, { payload: t }) => {
|
|
393
|
-
e.currentUser.autosaves = t;
|
|
394
|
-
},
|
|
395
|
-
setUser: (e, { payload: t }) => {
|
|
396
|
-
e.currentUser = {
|
|
397
|
-
...e.currentUser,
|
|
398
|
-
...t
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
extraReducers: (e) => {
|
|
403
|
-
e.addCase(W.fulfilled, (e, t) => {
|
|
404
|
-
let n = t.payload;
|
|
405
|
-
e.monacoOptions = H({ ...e.monacoOptions }, n);
|
|
406
|
-
}), e.addMatcher(h.endpoints.editMe.matchFulfilled, (e, t) => {
|
|
407
|
-
e.currentUser = t.payload;
|
|
408
|
-
}), e.addMatcher(h.endpoints.getMe.matchFulfilled, (e, t) => {
|
|
409
|
-
e.currentUser = t.payload;
|
|
410
|
-
}), e.addMatcher(h.endpoints.getSchema.matchFulfilled, (e, t) => {
|
|
411
|
-
e.currentSchema = t.payload.schema;
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
}), { setMonacoDidMount: rt, setTheme: it, setUserLocale: at, setUserAutosaves: ot, setUser: st } = G.actions, ct = (e) => e[U].currentUser, lt = (e) => e[U].currentSchema, ut = (e) => e[U].monacoOptions, dt = (e) => e[U].currentUser?.locale, ft = (e) => e[U].currentUser.subscription?.ID !== 3891;
|
|
415
|
-
//#endregion
|
|
416
|
-
//#region src/helpers/react-i18n.ts
|
|
417
|
-
function K(e) {
|
|
418
|
-
return {
|
|
419
|
-
__: e.__.bind(e),
|
|
420
|
-
_x: e._x.bind(e),
|
|
421
|
-
_n: e._n.bind(e),
|
|
422
|
-
_nx: e._nx.bind(e),
|
|
423
|
-
sprintf: de,
|
|
424
|
-
isRTL: e.isRTL.bind(e),
|
|
425
|
-
hasTranslation: e.hasTranslation.bind(e)
|
|
426
|
-
};
|
|
427
|
-
}
|
|
428
|
-
var q = (0, S.createContext)(K(b));
|
|
429
|
-
function pt(e) {
|
|
430
|
-
let { children: t, i18n: n = b } = e, [, r] = (0, S.useReducer)(() => [], []);
|
|
431
|
-
(0, S.useEffect)(() => n.subscribe(r), [n]);
|
|
432
|
-
let i = (0, S.useMemo)(() => K(n), [n]);
|
|
433
|
-
return (0, S.createElement)(q.Provider, { value: i }, t);
|
|
434
|
-
}
|
|
435
|
-
var mt = () => (0, S.useContext)(q), ht = b, gt = n();
|
|
436
|
-
function _t(e) {
|
|
437
|
-
return (0, gt.createIdentifier)(e);
|
|
438
|
-
}
|
|
439
|
-
function J(e, t) {
|
|
440
|
-
return p(e).getOrCreateInstance(t, () => new l());
|
|
441
|
-
}
|
|
442
|
-
function vt(e, t) {
|
|
443
|
-
return p(e).getOrCreateInstance(t, () => new l()).event;
|
|
444
|
-
}
|
|
445
|
-
function yt(e) {
|
|
446
|
-
return Y(e).event;
|
|
447
|
-
}
|
|
448
|
-
function Y(e) {
|
|
449
|
-
let t = _();
|
|
450
|
-
return (0, S.useMemo)(() => J(t, e), [t, e]);
|
|
451
|
-
}
|
|
452
|
-
//#endregion
|
|
453
|
-
//#region src/helpers/events/index.ts
|
|
454
|
-
var X = class extends ie.Disposable {
|
|
455
|
-
_listeners = [];
|
|
456
|
-
constructor(e) {
|
|
457
|
-
super(), this._options = e;
|
|
458
|
-
}
|
|
459
|
-
fire = (e) => {
|
|
460
|
-
if (!this.isDisposed()) {
|
|
461
|
-
let t, n = [...this._listeners];
|
|
462
|
-
for (let r of n) if (t === !1) return !1;
|
|
463
|
-
else t = t instanceof Promise ? t.then((e) => e === !1 || this.isDisposed() ? !1 : r(e)).catch((e) => console.log(e)) : r(e);
|
|
464
|
-
return t;
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
|
-
addEventListener = (e) => {
|
|
468
|
-
let t = this._listeners, n = this._options;
|
|
469
|
-
return t.push(e), t.length === 1 && this._options?.onFirstListenerAdd && this._options.onFirstListenerAdd(), { dispose: () => {
|
|
470
|
-
let r = t.indexOf(e);
|
|
471
|
-
r >= 0 && (t.splice(r), t.length || n?.onFirstListenerAdd && n.onLastListenerRemove());
|
|
472
|
-
} };
|
|
473
|
-
};
|
|
474
|
-
event = this.addEventListener;
|
|
475
|
-
}, bt;
|
|
476
|
-
(function(e) {
|
|
477
|
-
function t(e) {
|
|
478
|
-
let t, n = new X({
|
|
479
|
-
onFirstListenerAdd() {
|
|
480
|
-
t = e(n.fire);
|
|
481
|
-
},
|
|
482
|
-
onLastListenerRemove() {
|
|
483
|
-
t.dispose();
|
|
484
|
-
}
|
|
485
|
-
});
|
|
486
|
-
return n.event;
|
|
487
|
-
}
|
|
488
|
-
e.snapshot = t;
|
|
489
|
-
function n(e, n) {
|
|
490
|
-
return t((t) => e((e) => n(e) && t(e)));
|
|
491
|
-
}
|
|
492
|
-
e.filter = n;
|
|
493
|
-
function r(e, n) {
|
|
494
|
-
return t((t) => e((e) => t(n(e))));
|
|
495
|
-
}
|
|
496
|
-
e.map = r;
|
|
497
|
-
})(bt ||= {});
|
|
498
|
-
//#endregion
|
|
499
|
-
//#region src/helpers/commands.ts
|
|
500
|
-
var Z = a();
|
|
501
|
-
function xt(e, t, n) {
|
|
502
|
-
e instanceof s.Container || (e = p(e)), e.getOrCreateInstance(Z, () => new X()).fire({
|
|
503
|
-
id: t,
|
|
504
|
-
payload: n
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
function St(e, t) {
|
|
508
|
-
return p(e).getOrCreateInstance(Z, () => new X()).addEventListener;
|
|
509
|
-
}
|
|
510
|
-
var Ct = (e, t) => {
|
|
511
|
-
let n = St(_(), e);
|
|
512
|
-
(0, S.useEffect)(() => {
|
|
513
|
-
let r = n(({ id: n, payload: r }) => {
|
|
514
|
-
n === e && t(r);
|
|
515
|
-
});
|
|
516
|
-
return () => r.dispose();
|
|
517
|
-
}, [
|
|
518
|
-
n,
|
|
519
|
-
e,
|
|
520
|
-
t
|
|
521
|
-
]);
|
|
522
|
-
};
|
|
523
|
-
//#endregion
|
|
524
|
-
//#region src/app/command.ts
|
|
525
|
-
function Q(e) {
|
|
526
|
-
return e;
|
|
527
|
-
}
|
|
528
|
-
var wt = Q("SHOW"), Tt = Q("SAVE"), Et = Q("NOTIFY"), Dt = /* @__PURE__ */ e(se()), Ot = ce(), kt = "bottomRight";
|
|
529
|
-
function At(e) {
|
|
530
|
-
return {
|
|
531
|
-
id: e.id,
|
|
532
|
-
code: e.html,
|
|
533
|
-
title: e.title,
|
|
534
|
-
subject: e.subject,
|
|
535
|
-
preheader: e.preheader
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
function jt(e) {
|
|
539
|
-
return {
|
|
540
|
-
id: e.id,
|
|
541
|
-
code: e.html,
|
|
542
|
-
title: e.title
|
|
543
|
-
};
|
|
544
|
-
}
|
|
545
|
-
var Mt = (e) => e.message || e.error?.data?.code || e.error?.status || e.error || e.data?.code || e.status || e || "Unknown error", Nt = (e) => e.description || e.error?.data?.message || e.error?.error || e.data?.message || e.error || "Unknown error";
|
|
546
|
-
function $() {
|
|
547
|
-
let e = Y(o.ON_NOTIFICATION), { notification: t } = Dt.App.useApp(), n = (0, S.useCallback)((n, r) => {
|
|
548
|
-
n.type || (n = {
|
|
549
|
-
...n,
|
|
550
|
-
type: "info"
|
|
551
|
-
});
|
|
552
|
-
let i = ne({ ...n });
|
|
553
|
-
return e.fire(i).then((e) => e.every((e) => e !== !1) ? (n = {
|
|
554
|
-
...n,
|
|
555
|
-
...i
|
|
556
|
-
}, n.placement === void 0 && (n.placement = kt), n = Object.assign(n, ...e.filter((e) => typeof e == "object")), r || (t[n.type] ? t[n.type](n) : (n.type, n.id, n.message && n.message)), n) : !1);
|
|
557
|
-
}, [t, e]), r = (0, S.useCallback)((e, t) => n({
|
|
558
|
-
...e,
|
|
559
|
-
message: /* @__PURE__ */ (0, Ot.jsx)("div", { dangerouslySetInnerHTML: { __html: Mt(e) } }),
|
|
560
|
-
description: /* @__PURE__ */ (0, Ot.jsx)("div", { dangerouslySetInnerHTML: { __html: Nt(e) } }),
|
|
561
|
-
type: "error"
|
|
562
|
-
}, t), [n]), i = (0, S.useCallback)((e = "Success", t) => n({
|
|
563
|
-
...typeof e == "string" ? { message: e } : e,
|
|
564
|
-
type: "success"
|
|
565
|
-
}, t), [n]), a = (0, S.useCallback)((e, t) => n({
|
|
566
|
-
...e,
|
|
567
|
-
type: "warning"
|
|
568
|
-
}, t), [n]), s = (0, S.useCallback)((e, t) => n({
|
|
569
|
-
...e,
|
|
570
|
-
type: "info"
|
|
571
|
-
}, t), [n]), c = (0, S.useCallback)((e, t, n, i, a = kt) => {
|
|
572
|
-
n && r({
|
|
573
|
-
id: e,
|
|
574
|
-
data: t,
|
|
575
|
-
message: n.data instanceof Error ? "" : Mt(n),
|
|
576
|
-
description: Nt(n),
|
|
577
|
-
placement: a,
|
|
578
|
-
innerException: n?.data instanceof Error ? n.data : n
|
|
579
|
-
}, i);
|
|
580
|
-
}, [r]);
|
|
581
|
-
return (0, S.useMemo)(() => ({
|
|
582
|
-
notify: n,
|
|
583
|
-
success: i,
|
|
584
|
-
error: r,
|
|
585
|
-
warning: a,
|
|
586
|
-
fromError: c,
|
|
587
|
-
info: s
|
|
588
|
-
}), [
|
|
589
|
-
n,
|
|
590
|
-
i,
|
|
591
|
-
r,
|
|
592
|
-
a,
|
|
593
|
-
c,
|
|
594
|
-
s
|
|
595
|
-
]);
|
|
596
|
-
}
|
|
597
|
-
function Pt() {
|
|
598
|
-
let { notify: e } = $();
|
|
599
|
-
Ct(Et, e);
|
|
600
|
-
}
|
|
601
|
-
//#endregion
|
|
602
|
-
//#region src/helpers/getPublicPath.ts
|
|
603
|
-
function Ft() {
|
|
604
|
-
return window.__emailmaker__ !== void 0 && window.__emailmaker__?.publicPath ? window.__emailmaker__.publicPath : "/";
|
|
605
|
-
}
|
|
606
|
-
//#endregion
|
|
607
|
-
export { xe as $, Ye as A, Qe as B, dt as C, G as D, at as E, Fe as F, He as G, We as H, F as I, Ge as J, Ae as K, Re as L, ze as M, Ve as N, Be as O, je as P, M as Q, Le as R, ut as S, W as T, $e as U, Ie as V, et as W, Je as X, Xe as Y, qe as Z, ht as _, C as _t, Pt as a, N as at, ct as b, pe as bt, wt as c, be as ct, _t as d, O as dt, Ce as et, J as f, D as ft, pt as g, E as gt, Y as h, he as ht, $ as i, we as it, tt as j, ke as k, xt as l, ve as lt, yt as m, ge as mt, jt as n, De as nt, Et as o, Te as ot, vt as p, T as pt, Ke as q, At as r, Se as rt, Tt as s, ye as st, Ft as t, Ee as tt, Ct as u, k as ut, mt as v, w as vt, rt as w, ft as x, x as xt, lt as y, me as yt, Ze as z };
|