import { jsx as t, jsxs as C } from "react/jsx-runtime";
import { useCallback as d } from "react";
import { n as u } from "./index.B0wX8xO7.js";
import { c as f } from "./index.CfM2L_w0.js";
import { a as L } from "./index.CfQlFjZU.js";
const N = "creator_navigationItemContainer_uXp9S", h = "creator_navigationItemContainer__profile_8Bwob", P = "creator_navigationItemContainer__active_PUTgh", S = "creator_navigationItemContainer__error_bJmcV", G = "creator_navigationItemContainer__disabled_a49Ab", w = "creator_navigationItemContainer__open_ASL7h", x = "creator_navigationItemLabelContainer_3aP9-", k = "creator_navigationItemLabel_PtceS", D = "creator_navigationItemSuffixContainer_KdeGg", y = "creator_navigationItemSecondaryLabel_2kG7o", j = "creator_navigationItemContainer__popup__sub_KUR6M", A = "creator_navigationItemContainer__label_LGSFG", B = "creator_navigationItemContainer__collapsed__view_NUbDi", R = "creator_navigationItemContainer__icon__view_zkBbm", V = "creator_navigationItemContentsGroup_RCdb0", W = "creator_navigationItemContentsGroup__collapsed__view_-eANk", M = "creator_navigationItemListContainer_ZlBWh", U = "creator_navigationItemDividerContainer_i5uk7", Z = "creator_navigationItemDivider_Db5wc", z = "creator_navigationItemContentsPopupWrapper_Vc8rG", J = "creator_navigationItemContentsPopup_8L7JE", K = "creator_avatarItemContainer_WR-j-", X = "creator_avatarItemContainer__active_D9BzZ", E = "creator_navbarItemComboContainer_GRh9I", F = "creator_navbarItemComboLink_VdMX5", T = "creator_navbarItemComboIcon_duAaY", Y = "creator_popupListItem_Zrjbr", q = "creator_listItem_MPfPh", a = { navigationItemContainer: N, navigationItemContainer__profile: h, navigationItemContainer__active: P, navigationItemContainer__error: S, navigationItemContainer__disabled: G, navigationItemContainer__open: w, navigationItemLabelContainer: x, navigationItemLabel: k, navigationItemSuffixContainer: D, navigationItemSecondaryLabel: y, navigationItemContainer__popup__sub: j, navigationItemContainer__label: A, navigationItemContainer__collapsed__view: B, navigationItemContainer__icon__view: R, navigationItemContentsGroup: V, navigationItemContentsGroup__collapsed__view: W, navigationItemListContainer: M, navigationItemDividerContainer: U, navigationItemDivider: Z, navigationItemContentsPopupWrapper: z, navigationItemContentsPopup: J, avatarItemContainer: K, avatarItemContainer__active: X, navbarItemComboContainer: E, navbarItemComboLink: F, navbarItemComboIcon: T, popupListItem: Y, listItem: q }, H = ({
  item: n,
  className: o,
  spotlight: r,
  onClickItem: e
}) => {
  const { type: _, icon: s, name: i, details: c } = n, m = d(
    (b) => {
      e?.(b, n);
    },
    [e, n]
  ), v = f(
    o,
    a.navigationItemContainer,
    a.navigationItemContainer__popup__sub,
    a.navigationItemContainer__profile
  ), I = a.navigationItemLabelContainer, l = a.navigationItemSecondaryLabel, g = a.navigationItemSuffixContainer, p = a.navigationItemLabel;
  return {
    item: n,
    spotlight: r,
    label: i,
    labelSecondary: c,
    className: o,
    prefixIcon: s,
    type: _,
    onClick: m,
    listItemClassName: a.listItem,
    navigationItemContainerClassName: v,
    navigationItemLabelContainerClassName: I,
    navigationItemLabelClassName: p,
    navigationItemSecondaryLabelClassName: l,
    navigationItemSuffixContainerClassName: g
  };
}, O = ({
  listItemClassName: n,
  navigationItemLabelContainerClassName: o,
  navigationItemLabelClassName: r,
  navigationItemSecondaryLabelClassName: e,
  navigationItemSuffixContainerClassName: _,
  label: s,
  labelSecondary: i,
  prefixIcon: c,
  suffixIcon: m,
  onClick: v,
  navigationItemContainerClassName: I
}) => /* @__PURE__ */ t("li", { className: n, children: /* @__PURE__ */ C("div", { className: I, onClick: v, children: [
  c,
  /* @__PURE__ */ C("div", { className: o, children: [
    /* @__PURE__ */ t("span", { className: r, children: s }),
    /* @__PURE__ */ t(
      u,
      {
        value: i,
        then: /* @__PURE__ */ t("span", { className: e, children: i })
      }
    )
  ] }),
  /* @__PURE__ */ t("div", { className: _, children: m })
] }) }), oa = L(
  O,
  H
);
export {
  O as N,
  oa as a,
  a as s,
  H as u
};
