"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
;/* empty css                                                                                                                                                                                           */
;/* empty css                                                                                                                                                                                            */
;/* empty css                                                                                                                                                                                                    */
;/* empty css                                                                                                                                                                                               */
;/* empty css                                                                                                                                                                                               */
require("clsx");
const styles = require("../../../utils/styles.cjs");
const Box = require("../../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/core/Box/Box.cjs");
const DEFAULT_NAVBAR_Z_INDEX = 10;
const Navbar = ({ withBorder, zIndex, hidden = false, mod, sx, ...rest }) => {
  return /* @__PURE__ */ jsxRuntime.jsx(
    Box.Box,
    {
      mod: [{ "navbar-hidden": hidden }],
      sx: {
        flexShrink: 0,
        height: "100%",
        position: "relative",
        zIndex: zIndex ?? DEFAULT_NAVBAR_Z_INDEX,
        width: `var(--app-shell-navbar-width)`,
        transitionProperty: "width",
        transitionDuration: "var(--app-shell-transition-duration, 200ms)",
        transitionTimingFunction: "var(--app-shell-transition-timing-function, ease)",
        "&:where([data-navbar-hidden])": {
          width: 0
        }
      },
      children: /* @__PURE__ */ jsxRuntime.jsx(
        Box.Box,
        {
          component: "nav",
          mod: [{ "with-border": withBorder }, mod],
          sx: styles.mergeSxList([
            (theme) => ({
              backgroundColor: theme.colors.carbon[2],
              display: "flex",
              flexDirection: "column",
              height: "100%",
              width: `var(--app-shell-navbar-width)`,
              transitionProperty: "transform",
              transitionDuration: "var(--app-shell-transition-duration, 200ms)",
              transitionTimingFunction: "var(--app-shell-transition-timing-function, ease)",
              transform: hidden ? "translateX(-100%)" : "none",
              "&:where([data-with-border])": {
                borderRight: `1px solid ${theme.colors.carbon[3]}`
              }
            }),
            sx
          ]),
          ...rest
        }
      )
    }
  );
};
exports.Navbar = Navbar;
