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

var _chunkEZE7WP5Ljs = require('./chunk-EZE7WP5L.js');


var _chunkO3W2X5JMjs = require('./chunk-O3W2X5JM.js');


var _chunk2KOG3UOWjs = require('./chunk-2KOG3UOW.js');


var _chunk4KIF2EFTjs = require('./chunk-4KIF2EFT.js');


var _chunk3D344JGKjs = require('./chunk-3D344JGK.js');


var _chunkJAUZAI42js = require('./chunk-JAUZAI42.js');

// tmp-babel/navigations/web/NavigationLayout/index.js
var _web = require('@baseapp-frontend/design-system/hooks/web');
var _utils = require('@baseapp-frontend/utils');
var _Box = require('@mui/material/Box'); var _Box2 = _interopRequireDefault(_Box);
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 NavigationLayout = function NavigationLayout2(_ref) {
  var navData = _ref.navData, LogoIcon = _ref.LogoIcon, LogoProps = _ref.LogoProps, AccountMenu = _ref.AccountMenu, AccountMenuProps = _ref.AccountMenuProps, ToolbarProps = _ref.ToolbarProps, children = _ref.children, _ref$MainContainerPro = _ref.MainContainerProps, MainContainerProps = _ref$MainContainerPro === void 0 ? {} : _ref$MainContainerPro, _ref$MainContainer = _ref.MainContainer, MainContainer = _ref$MainContainer === void 0 ? _chunkEZE7WP5Ljs.MainContainer_default : _ref$MainContainer;
  var _useUISettings = _web.useUISettings.call(void 0, ), settings = _useUISettings.settings;
  var nav = _utils.useBoolean.call(void 0, );
  var isNavCentered = (settings === null || settings === void 0 ? void 0 : settings.themeLayout) === "centered";
  var isNavHorizontal = (settings === null || settings === void 0 ? void 0 : settings.themeLayout) === "horizontal";
  var isNavMini = (settings === null || settings === void 0 ? void 0 : settings.themeLayout) === "mini";
  if (isNavCentered) {
    return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, {
      children: [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJAUZAI42js.Header_default, {
        LogoIcon,
        LogoProps,
        onOpenNav: nav.onTrue,
        AccountMenu,
        AccountMenuProps,
        ToolbarProps,
        children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2KOG3UOWjs.NavCentered_default, {
          navData,
          openNav: nav.value,
          onCloseNav: nav.onFalse
        })
      }), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MainContainer, _objectSpread(_objectSpread({
        isNavCentered: true
      }, MainContainerProps), {}, {
        children
      }))]
    });
  }
  if (isNavHorizontal) {
    return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, {
      children: [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJAUZAI42js.Header_default, {
        LogoIcon,
        LogoProps,
        onOpenNav: nav.onTrue,
        AccountMenu,
        AccountMenuProps,
        ToolbarProps
      }), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4KIF2EFTjs.NavHorizontal_default, {
        navData,
        openNav: nav.value,
        onCloseNav: nav.onFalse
      }), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MainContainer, _objectSpread(_objectSpread({
        isNavHorizontal: true
      }, MainContainerProps), {}, {
        children
      }))]
    });
  }
  if (isNavMini) {
    return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, {
      children: [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJAUZAI42js.Header_default, {
        LogoIcon,
        LogoProps,
        onOpenNav: nav.onTrue,
        AccountMenu,
        AccountMenuProps,
        ToolbarProps
      }), /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, {
        sx: {
          minHeight: 1,
          display: "flex",
          flexDirection: {
            xs: "column",
            lg: "row"
          }
        },
        children: [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3D344JGKjs.NavMini_default, {
          navData,
          openNav: nav.value,
          onCloseNav: nav.onFalse,
          LogoIcon,
          LogoProps
        }), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MainContainer, _objectSpread(_objectSpread({
          isNavMini: true
        }, MainContainerProps), {}, {
          children
        }))]
      })]
    });
  }
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, {
    children: [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJAUZAI42js.Header_default, {
      LogoIcon,
      LogoProps,
      onOpenNav: nav.onTrue,
      AccountMenu,
      AccountMenuProps,
      ToolbarProps
    }), /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, {
      sx: {
        minHeight: 1,
        display: "flex",
        flexDirection: {
          xs: "column",
          lg: "row"
        }
      },
      children: [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO3W2X5JMjs.NavVertical_default, {
        navData,
        LogoIcon,
        LogoProps,
        openNav: nav.value,
        onCloseNav: nav.onFalse
      }), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MainContainer, _objectSpread(_objectSpread({}, MainContainerProps), {}, {
        children
      }))]
    })]
  });
};
var NavigationLayout_default = NavigationLayout;



exports.NavigationLayout_default = NavigationLayout_default;
//# sourceMappingURL=chunk-3A44LRDU.js.map