
import { linkModules } from '/home/circleci/.bvm/versions/1.13.112/bit-1.13.112/node_modules/@teambit/preview/dist/preview-modules.js';

// strip leading/trailing slashes from any id we compare
function __bitNormalizeId(id) {
  if (!id) return "";
  return String(id).trim().replace(/^\/+|\/+$/g, "");
}

function __bitActiveComponentId() {
  try {
    const { hash } = window.location;
    if (!hash) return null;
    const [idPart] = hash.slice(1).split("?");
    const id = __bitNormalizeId(idPart);
    const idWithoutVersion = id.split('@')[0];
    return idWithoutVersion || null;
  } catch {
    return null;
  }
}

const __bitActiveId = __bitActiveComponentId();

function __bitShouldSurfaceFor(componentId) {
  if (!__bitActiveId) return false;
  const act = __bitNormalizeId(__bitActiveId);
  const cmp = __bitNormalizeId(componentId);
  if (!act || !cmp) return false;
  if (act === cmp) return true;
  return false;
}

// Surface caught errors to the overlay without breaking fallback.
// Only for the active component in this iframe.
function __bitSurfaceToOverlay(err, componentId) {
  if (process.env.NODE_ENV === "production") return;
  if (!__bitShouldSurfaceFor(componentId)) return;
  const e = err instanceof Error ? err : new Error(String(err));
  const msg = (err && err.message) ? err.message : String(err);
  console.error('[preview][load:fail]', componentId, msg);
  setTimeout(() => {
    void Promise.reject(e);
  }, 0);
}

import {defaultMainModule} from "/home/circleci/bit/bit/node_modules/@teambit/_local/preview-modules-0557d705b67dd1e1bccbac0bd34835a41036cf72.mjs";
(async function initializeModules() {


linkModules('overview', {
  modulesMap: {
    "default": defaultMainModule
  },
  isSplitComponentBundle: true,
  componentMap: {

  }
});
})();
