import { jsx as e, Fragment as t } from "@emotion/react/jsx-runtime";
import { createContext as x } from "react";
import { getComponentClasses as L } from "../../../../utils/getComponentSlotRoot.js";
import { ALL_SIDEBAR_SLOTS as I, SIDEBAR_KEY_COMPONENT as T } from "../../constants.js";
const a = L(T, I), b = {
  anchored: !1,
  visible: !0,
  onToggleAnchored: (o) => {
  },
  onToggleVisible: (o) => {
  },
  menuData: [],
  companyLogoUrl: "",
  companyLogoSmallUrl: "",
  /** Ignore menu clicks until a real sidebar provider is mounted. */
  onMenuItemClick: (o, n) => {
  },
  expandedWidth: "",
  companyName: "",
  companySlogan: "",
  classes: a,
  headerComponent: /* @__PURE__ */ e(t, {}),
  footerComponent: /* @__PURE__ */ e(t, {})
}, A = x(b), P = (o) => {
  const { value: n, children: r } = o, {
    anchored: m,
    visible: l,
    onToggleAnchored: i,
    onToggleVisible: c,
    menuData: d,
    onMenuItemClick: p,
    companyLogoUrl: s,
    companyLogoSmallUrl: g,
    expandedWidth: S,
    moduleSelectedId: C,
    companyName: h,
    companySlogan: u,
    urlIconPrefix: f,
    headerComponent: v,
    footerComponent: y,
    variant: _
  } = n;
  return (
    // Proporcionar el contexto con las propiedades desestructuradas
    /* @__PURE__ */ e(
      A.Provider,
      {
        value: {
          anchored: m,
          visible: l,
          onToggleAnchored: i,
          onToggleVisible: c,
          menuData: d,
          onMenuItemClick: p,
          companyLogoUrl: s,
          companyLogoSmallUrl: g,
          moduleSelectedId: C,
          expandedWidth: S,
          companyName: h,
          companySlogan: u,
          urlIconPrefix: f,
          classes: a,
          headerComponent: v,
          footerComponent: y,
          variant: _
        },
        children: r
      }
    )
  );
};
export {
  A as SideBarContext,
  P as SideBarProvider
};
