import { jsx as t, jsxs as l } from "react/jsx-runtime";
import { c as p } from "./index.CfM2L_w0.js";
import { a as b } from "./index.CfQlFjZU.js";
import { f as d } from "./index.dWlEA7uO.js";
const u = "creator_navigationItemContainer_-n42n", f = "creator_navigationItemContainer__profile_ykxEi", L = "creator_navigationItemContainer__active_sVNmI", N = "creator_navigationItemContainer__error_-xGht", x = "creator_navigationItemContainer__disabled_T635H", S = "creator_navigationItemContainer__open_Fet--", w = "creator_navigationItemLabelContainer_KJTBA", h = "creator_navigationItemLabel_LZiO7", y = "creator_navigationItemSuffixContainer_XlaNp", P = "creator_navigationItemSecondaryLabel_GgmL-", G = "creator_navigationItemContainer__popup__sub_fxz2v", k = "creator_navigationItemContainer__label_wb9nO", z = "creator_navigationItemContainer__collapsed__view_vnFFJ", D = "creator_navigationItemContainer__icon__view_-VzFX", F = "creator_navigationItemContentsGroup_rxexY", O = "creator_navigationItemContentsGroup__collapsed__view_gmoqt", T = "creator_navigationItemListContainer_N08MV", V = "creator_navigationItemDividerContainer_akPfI", W = "creator_navigationItemDivider_ZftOW", J = "creator_navigationItemContentsPopupWrapper_vwcZT", K = "creator_navigationItemContentsPopup_p8WYo", R = "creator_avatarItemContainer_JYLRx", Y = "creator_avatarItemContainer__active_3c0IK", Z = "creator_navbarItemComboContainer_8ounT", j = "creator_navbarItemComboLink_yzsLB", q = "creator_navbarItemComboIcon_qQUOE", A = "creator_popupListItem_RGNQr", B = "creator_listItem_a2faN", n = { navigationItemContainer: u, navigationItemContainer__profile: f, navigationItemContainer__active: L, navigationItemContainer__error: N, navigationItemContainer__disabled: x, navigationItemContainer__open: S, navigationItemLabelContainer: w, navigationItemLabel: h, navigationItemSuffixContainer: y, navigationItemSecondaryLabel: P, navigationItemContainer__popup__sub: G, navigationItemContainer__label: k, navigationItemContainer__collapsed__view: z, navigationItemContainer__icon__view: D, navigationItemContentsGroup: F, navigationItemContentsGroup__collapsed__view: O, navigationItemListContainer: T, navigationItemDividerContainer: V, navigationItemDivider: W, navigationItemContentsPopupWrapper: J, navigationItemContentsPopup: K, avatarItemContainer: R, avatarItemContainer__active: Y, navbarItemComboContainer: Z, navbarItemComboLink: j, navbarItemComboIcon: q, popupListItem: A, listItem: B };
function E({
  item: a,
  onClick: e
}) {
  const { details: o, icon: i, name: r, url: _ } = a, c = p(
    n.navigationItemContainer,
    n.navigationItemContainer__popup__sub,
    n.navigationItemContainer__profile
  ), s = n.navigationItemLabelContainer, m = n.navigationItemSecondaryLabel, v = n.navigationItemSuffixContainer, I = n.navigationItemLabel;
  function C(g) {
    e?.(g, a);
  }
  return {
    domain: o,
    onClick: C,
    profileUrl: _,
    icon: i,
    label: r,
    listItemClassName: n.listItem,
    navigationItemContainerClassName: c,
    navigationItemLabelContainerClassName: s,
    navigationItemLabelClassName: I,
    navigationItemSecondaryLabelClassName: m,
    navigationItemSuffixContainerClassName: v
  };
}
function M({
  icon: a,
  label: e,
  domain: o,
  onClick: i,
  profileUrl: r,
  listItemClassName: _,
  navigationItemLabelContainerClassName: c,
  navigationItemLabelClassName: s,
  navigationItemSecondaryLabelClassName: m,
  navigationItemSuffixContainerClassName: v,
  navigationItemContainerClassName: I
}) {
  return /* @__PURE__ */ t("div", { className: _, children: /* @__PURE__ */ l(
    "a",
    {
      href: r,
      onClick: i,
      className: I,
      children: [
        a,
        /* @__PURE__ */ l("div", { className: c, children: [
          /* @__PURE__ */ t("span", { className: s, children: e }),
          /* @__PURE__ */ t("span", { className: m, children: o })
        ] }),
        /* @__PURE__ */ t("div", { className: v, children: /* @__PURE__ */ t(d, { size: 24 }) })
      ]
    }
  ) });
}
const $ = b(
  M,
  E
);
export {
  $ as S,
  M as a,
  E as u
};
