import { jsx as a } from "../../../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
/* empty css                                  */
import { PaymentLinkSettingsProvider as f } from "./context/context.js";
import g from "./PaymentLinkSettings.js";
import { useMemo as s } from "../../../../../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js";
import { MENU_ITEMS as n } from "./context/constants.js";
import p from "../../../../../core/Context/preact/useCoreContext.js";
const P = ({
  settingsItems: t,
  storeIds: l,
  embeddedInOverview: c,
  ...r
}) => {
  const { i18n: o } = p(), e = s(
    () => t && t?.length > 0 ? n.filter((i) => t.includes(i.value)) : n,
    [t]
  ), u = s(() => (e.length > 0 ? e : n).map((m) => ({ ...m, label: o.get(m.label) })), [o, e]);
  return /* @__PURE__ */ a(
    f,
    {
      embeddedInOverview: c,
      selectedMenuItems: u,
      storeIds: l,
      navigateBack: r?.navigateBack,
      children: /* @__PURE__ */ a(g, { ...r })
    }
  );
};
export {
  P as default
};
