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

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


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

// tmp-babel/navigations/web/__shared__/VerticalDrawer/index.js
var _react = require('react');
var _logos = require('@baseapp-frontend/design-system/components/web/logos');
var _scrollbars = require('@baseapp-frontend/design-system/components/web/scrollbars');
var _Box = require('@mui/material/Box'); var _Box2 = _interopRequireDefault(_Box);
var _Drawer = require('@mui/material/Drawer'); var _Drawer2 = _interopRequireDefault(_Drawer);
var _navigation = require('next/navigation');
var _jsxruntime = require('react/jsx-runtime');
var VerticalDrawer = function VerticalDrawer2(_ref) {
  var navData = _ref.navData, LogoIcon = _ref.LogoIcon, openNav = _ref.openNav, onCloseNav = _ref.onCloseNav;
  var pathname = _navigation.usePathname.call(void 0, );
  _react.useEffect.call(void 0, function() {
    if (openNav) {
      onCloseNav();
    }
  }, [pathname]);
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Drawer2.default, {
    open: openNav,
    onClose: onCloseNav,
    PaperProps: {
      sx: {
        width: _chunkJGLXIUWQjs.NAV_WIDTH.VERTICAL,
        height: "100% !important"
      }
    },
    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, {
        sx: {
          mt: 3,
          ml: 4,
          mb: 1
        },
        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 VerticalDrawer_default = VerticalDrawer;



exports.VerticalDrawer_default = VerticalDrawer_default;
//# sourceMappingURL=chunk-BULDV55Z.js.map