const currentImports = {};
      const exportSet = new Set(['Module', '__esModule', 'default', '_export_sfc']);
      let moduleMap = {
"email/core/web":()=>{
      dynamicLoadingCss(["style-CYo_kJUo.css"], false, 'email/core/web');
      return __federation_import('./__federation_expose_emailCoreWeb-D019xm6L.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"email/core/common":()=>{
      dynamicLoadingCss(["style-CYo_kJUo.css"], false, 'email/core/common');
      return __federation_import('./__federation_expose_emailCoreCommon-B0f8t5U8.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"email/transactional-lib/web":()=>{
      dynamicLoadingCss(["style-CYo_kJUo.css"], false, 'email/transactional-lib/web');
      return __federation_import('./__federation_expose_emailTransactional-libWeb-BXnknSEs.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"email/transactional-lib/common":()=>{
      dynamicLoadingCss(["style-CYo_kJUo.css"], false, 'email/transactional-lib/common');
      return __federation_import('./__federation_expose_emailTransactional-libCommon-DGf_6pMr.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"postmark/core/web":()=>{
      dynamicLoadingCss(["style-CYo_kJUo.css"], false, 'postmark/core/web');
      return __federation_import('./__federation_expose_postmarkCoreWeb-CDsV5Jit.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"postmark/core/common":()=>{
      dynamicLoadingCss(["style-CYo_kJUo.css"], false, 'postmark/core/common');
      return __federation_import('./__federation_expose_postmarkCoreCommon-C_j07Hee.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},};
    const seen = {};
    const dynamicLoadingCss = (cssFilePaths, dontAppendStylesToHead, exposeItemName) => {
      const metaUrl = import.meta.url;
      if (typeof metaUrl == 'undefined') {
        console.warn('The remote style takes effect only when the build.target option in the vite.config.ts file is higher than that of "es2020".');
        return
      }
      const curUrl = metaUrl.substring(0, metaUrl.lastIndexOf('remoteEntry.js'));

      cssFilePaths.forEach(cssFilePath => {
        const href = curUrl + cssFilePath;
        if (href in seen) return
        seen[href] = true;
        if (dontAppendStylesToHead) {
          const key = 'css__plugin-email__' + exposeItemName;
          if (window[key] == null) window[key] = [];
          window[key].push(href);
        } else {
          const element = document.head.appendChild(document.createElement('link'));
          element.href = href;
          element.rel = 'stylesheet';
        }
      });
    };
    async function __federation_import(name) {
        currentImports[name] ??= import(name);
        return currentImports[name]
    }    const get =(module) => {
      if(!moduleMap[module]) throw new Error('Can not find remote module ' + module)
      return moduleMap[module]();
    };
    const init =(shareScope) => {
      globalThis.__federation_shared__= globalThis.__federation_shared__|| {};
      Object.entries(shareScope).forEach(([key, value]) => {
        const versionKey = Object.keys(value)[0];
        const versionValue = Object.values(value)[0];
        const scope = versionValue.scope || 'default';
        globalThis.__federation_shared__[scope] = globalThis.__federation_shared__[scope] || {};
        const shared= globalThis.__federation_shared__[scope];
        (shared[key] = shared[key]||{})[versionKey] = versionValue;
      });
    };

export { dynamicLoadingCss, get, init };
//# sourceMappingURL=remoteEntry.js.map
