import { jsx as e, Fragment as n } from "@emotion/react/jsx-runtime";
import { createContext as L } from "react";
import { getComponentClasses as _ } from "../../../../utils/getComponentSlotRoot.js";
import { ALL_SIDEBAR_SLOTS as I, SIDEBAR_KEY_COMPONENT as T } from "../../constants.js";
const t = _(T, I), b = {
  anchored: !1,
  visible: !0,
  onToggleAnchored: (o) => {
  },
  onToggleVisible: (o) => {
  },
  menuData: [],
  companyLogoUrl: "",
  companyLogoSmallUrl: "",
  onMenuItemClick: (o) => {
  },
  expandedWidth: "",
  companyName: "",
  companySlogan: "",
  classes: t,
  headerComponent: /* @__PURE__ */ e(n, {}),
  footerComponent: /* @__PURE__ */ e(n, {})
}, A = L(b), P = (o) => {
  const { value: a, 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: x
  } = a;
  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: t,
          headerComponent: v,
          footerComponent: y,
          variant: x
        },
        children: r
      }
    )
  );
};
export {
  A as SideBarContext,
  P as SideBarProvider
};
