import { initializeStore as o } from "@seamless/store";
const O = 6e4, c = 1, s = {
  AEM_CONNECTION_NAME: "OWC_AEM_ENV",
  REGISTRY_CONNECTION_NAME: "OWC_COMPONENT_REGISTRY",
  TRACKING_CONNECTION_NAME: "OWC_TRACKING_MANAGER",
  AUTH_CONNECTION_NAME: "B2XCORE_AUTHENTICATION",
  PROFILE_CONNECTION_NAME: "B2XCORE_PROFILE"
};
async function T(n, t = O) {
  const e = o();
  return await E(n, t) ? e.getConnectionDispatchers(n) : {};
}
async function E(n, t = c) {
  return o().getConnectionDispatchers(n, t).then(() => !0).catch(() => !1);
}
async function _(n) {
  const t = o();
  return await E(s.REGISTRY_CONNECTION_NAME) ? new Promise((N) => {
    t.once(s.REGISTRY_CONNECTION_NAME, (i) => {
      const C = Object.values(i.components);
      N(n ? n(C) : C);
    });
  }) : [];
}
export {
  s as C,
  T as a,
  _ as g
};
//# sourceMappingURL=seamless.mjs.map
