"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _chunk6MII42ZWjs = require('./chunk-6MII42ZW.js');


var _chunkBULDV55Zjs = require('./chunk-BULDV55Z.js');


var _chunkH2P2D7BTjs = require('./chunk-H2P2D7BT.js');


var _chunkJGLXIUWQjs = require('./chunk-JGLXIUWQ.js');

// tmp-babel/navigations/web/NavVertical/index.js
var _logos = require('@baseapp-frontend/design-system/components/web/logos');
var _scrollbars = require('@baseapp-frontend/design-system/components/web/scrollbars');
var _web = require('@baseapp-frontend/design-system/hooks/web');
var _Box = require('@mui/material/Box'); var _Box2 = _interopRequireDefault(_Box);
var _Stack = require('@mui/material/Stack'); var _Stack2 = _interopRequireDefault(_Stack);
var _jsxruntime = require('react/jsx-runtime');
function _typeof(o) {
  "@babel/helpers - typeof";
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
    return typeof o2;
  } : function(o2) {
    return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
  }, _typeof(o);
}
function ownKeys(e, r) {
  var t = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var o = Object.getOwnPropertySymbols(e);
    r && (o = o.filter(function(r2) {
      return Object.getOwnPropertyDescriptor(e, r2).enumerable;
    })), t.push.apply(t, o);
  }
  return t;
}
function _objectSpread(e) {
  for (var r = 1; r < arguments.length; r++) {
    var t = null != arguments[r] ? arguments[r] : {};
    r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
      _defineProperty(e, r2, t[r2]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
      Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
    });
  }
  return e;
}
function _defineProperty(e, r, t) {
  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
}
function _toPropertyKey(t) {
  var i = _toPrimitive(t, "string");
  return "symbol" == _typeof(i) ? i : i + "";
}
function _toPrimitive(t, r) {
  if ("object" != _typeof(t) || !t) return t;
  var e = t[Symbol.toPrimitive];
  if (void 0 !== e) {
    var i = e.call(t, r || "default");
    if ("object" != _typeof(i)) return i;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return ("string" === r ? String : Number)(t);
}
var NavVertical = function NavVertical2(_ref) {
  var navData = _ref.navData, LogoIcon = _ref.LogoIcon, LogoProps = _ref.LogoProps, openNav = _ref.openNav, onCloseNav = _ref.onCloseNav, _ref$hideToggleButton = _ref.hideToggleButton, hideToggleButton = _ref$hideToggleButton === void 0 ? false : _ref$hideToggleButton;
  var lgDown = _web.useResponsive.call(void 0, "down", "lg");
  if (lgDown) {
    return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBULDV55Zjs.VerticalDrawer_default, {
      navData,
      openNav,
      onCloseNav
    });
  }
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, {
    sx: {
      flexShrink: {
        lg: 0
      },
      width: {
        lg: _chunkJGLXIUWQjs.NAV_WIDTH.VERTICAL
      },
      display: {
        xs: "none",
        lg: "flex"
      }
    },
    children: [!hideToggleButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6MII42ZWjs.NavToggleButton, {}), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Stack2.default, {
      sx: {
        height: 1,
        position: "fixed",
        width: _chunkJGLXIUWQjs.NAV_WIDTH.VERTICAL,
        borderRight: function borderRight(theme) {
          return "solid 1px ".concat(theme.palette.divider);
        }
      },
      children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _scrollbars.Scrollbar, {
        sx: {
          height: 1,
          "& .simplebar-content": {
            height: 1,
            display: "flex",
            flexDirection: "column"
          }
        },
        children: [LogoIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _logos.Logo, _objectSpread(_objectSpread({}, LogoProps), {}, {
          sx: _objectSpread({
            mt: 3,
            ml: 4,
            mb: 1
          }, LogoProps === null || LogoProps === void 0 ? void 0 : LogoProps.sx),
          children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LogoIcon, {})
        })), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH2P2D7BTjs.NavSectionVertical_default, {
          navData
        }), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Box2.default, {
          sx: {
            flexGrow: 1
          }
        })]
      })
    })]
  });
};
var NavVertical_default = NavVertical;



exports.NavVertical_default = NavVertical_default;
//# sourceMappingURL=chunk-O3W2X5JM.js.map