;
{
  try {
    let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
    n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1658f05b-61cd-4d7f-b830-0aa9dc448dce", e._sentryDebugIdIdentifier = "sentry-dbid-1658f05b-61cd-4d7f-b830-0aa9dc448dce");
  } catch (e) {
  }
}
;
import { jsx } from "preact/jsx-runtime";
import register from "preact-custom-element";
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-cyRWc5YB.js";
import { O as OnboardingDropinComponent } from "./OnboardingDropinComponent-CRXiG75O.js";
const AdyenOnboarding = ({
  rootlegalentityid,
  fetchToken,
  environment,
  locale,
  settings = {},
  experiments = {},
  openbankingpartnerconfigid
}) => /* @__PURE__ */ jsx(
  EmbedShell,
  {
    componentName: "adyen-onboarding",
    rootLegalEntityId: rootlegalentityid,
    settings,
    experiments,
    getSdkToken: fetchToken,
    locale,
    baseUrl: resolveEnvironment(environment),
    children: /* @__PURE__ */ jsx(
      OnboardingDropinComponent,
      {
        legalEntityId: rootlegalentityid,
        openBankingPartnerConfigId: openbankingpartnerconfigid
      }
    )
  }
);
register(
  AdyenOnboarding,
  "adyen-onboarding",
  [
    "rootlegalentityid",
    "fetchToken",
    "environment",
    "locale",
    "settings",
    "experiments",
    "openbankingpartnerconfigid"
  ],
  { shadow: true, adoptedStyleSheets: stylesheets }
);
export {
  AdyenOnboarding
};
