import { jsxs as a, jsx as r } from "react/jsx-runtime";
import { a as l } from "./index.CfQlFjZU.js";
import { l as m } from "./index.C1ZfizMq.js";
import { n as f } from "./index.B0wX8xO7.js";
import { P as s } from "./PageHeader.BwFpx_pz.js";
import { O as n } from "./Onboarding.BDRBUM0D.js";
import { N as p, y as u } from "./NavbarItemLink.C-sAWVtW.js";
import { S as c } from "./SelectProfileItem.OK69yfPS.js";
function P({
  profiles: o,
  control: e,
  onClickProfile: t
}) {
  return {
    profiles: o || [],
    control: e && {
      ...e,
      level: p.POPUP_SUB
    },
    onClickProfile: t
  };
}
function S({
  profiles: o,
  control: e,
  onClickProfile: t
}) {
  return /* @__PURE__ */ a(n, { children: [
    /* @__PURE__ */ r(s, { title: "Select profile", height: "auto" }),
    /* @__PURE__ */ r(
      m,
      {
        values: o,
        layout: (i) => /* @__PURE__ */ r(c, { item: i, onClick: t })
      }
    ),
    /* @__PURE__ */ r(f, { value: e, then: /* @__PURE__ */ r(u, { item: e }) })
  ] });
}
const j = l(S, P);
export {
  j as S,
  S as a,
  P as u
};
