;
{
  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] = "8b79abbc-dc55-4228-9d2d-f4ff4953c5d4", e._sentryDebugIdIdentifier = "sentry-dbid-8b79abbc-dc55-4228-9d2d-f4ff4953c5d4");
  } catch (e) {
  }
}
;
import { jsx } from "preact/jsx-runtime";
import { useRef } from "preact/hooks";
import register from "preact-custom-element";
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-cyRWc5YB.js";
import { M as ManageIndividualComponent } from "./ManageIndividualComponent-CcnCVDBu.js";
import { e as emitAdyenSdkEvent } from "./emitEvent-CzZf80Am.js";
const AdyenManageIndividual = ({
  rootlegalentityid,
  fetchToken,
  environment,
  locale,
  settings = {},
  experiments = {}
}) => {
  const eventEmitterRef = useRef(null);
  const handleOnClick = () => {
    emitAdyenSdkEvent(eventEmitterRef, "click");
  };
  return /* @__PURE__ */ jsx("div", { ref: eventEmitterRef, style: "width:100%;", children: /* @__PURE__ */ jsx(
    EmbedShell,
    {
      componentName: "adyen-individual-status",
      rootLegalEntityId: rootlegalentityid,
      settings,
      experiments,
      getSdkToken: fetchToken,
      locale,
      baseUrl: resolveEnvironment(environment),
      children: /* @__PURE__ */ jsx(ManageIndividualComponent, { legalEntityId: rootlegalentityid, onClick: handleOnClick })
    }
  ) });
};
register(
  AdyenManageIndividual,
  "adyen-individual-status",
  ["rootlegalentityid", "fetchToken", "environment", "locale", "settings", "experiments"],
  { shadow: true, adoptedStyleSheets: stylesheets }
);
