"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkP4OPK6IAjs = require('./chunk-P4OPK6IA.js');var _chunkVK24SFLBjs = require('./chunk-VK24SFLB.js');var _chunkHH746CQEjs = require('./chunk-HH746CQE.js');var _chunk6547UELOjs = require('./chunk-6547UELO.js');var _chunkEOCTF5NRjs = require('./chunk-EOCTF5NR.js');var _chunk4RLLX3TMjs = require('./chunk-4RLLX3TM.js');var _utils = require('@baseapp-frontend/utils');var _Box = require('@mui/material/Box'); var _Box2 = _interopRequireDefault(_Box);var _jsxruntime = require('react/jsx-runtime');var C=function(t){var c=t.navData,o=t.settings,d=t.setSettings,r=t.LogoIcon,a=t.LogoProps,u=t.AccountMenu,v=t.AccountMenuProps,p=t.ToolbarProps,g=t.children,n=_utils.useBoolean.call(void 0, ),x=_optionalChain([o, 'optionalAccess', _ => _.themeLayout])==="centered",A=_optionalChain([o, 'optionalAccess', _2 => _2.themeLayout])==="horizontal",f=_optionalChain([o, 'optionalAccess', _3 => _3.themeLayout])==="mini";return x?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunk4RLLX3TMjs.a,{settings:o,LogoIcon:r,LogoProps:a,onOpenNav:n.onTrue,AccountMenu:u,AccountMenuProps:v,ToolbarProps:p,children:_jsxruntime.jsx.call(void 0, _chunkHH746CQEjs.a,{navData:c,openNav:n.value,onCloseNav:n.onFalse})}),_jsxruntime.jsx.call(void 0, _chunkP4OPK6IAjs.a,{isNavCentered:!0,children:g})]}):A?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunk4RLLX3TMjs.a,{settings:o,LogoIcon:r,LogoProps:a,onOpenNav:n.onTrue,AccountMenu:u,AccountMenuProps:v,ToolbarProps:p}),_jsxruntime.jsx.call(void 0, _chunk6547UELOjs.a,{navData:c,openNav:n.value,onCloseNav:n.onFalse}),_jsxruntime.jsx.call(void 0, _chunkP4OPK6IAjs.a,{isNavHorizontal:!0,children:g})]}):f?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunk4RLLX3TMjs.a,{settings:o,LogoIcon:r,LogoProps:a,onOpenNav:n.onTrue,AccountMenu:u,AccountMenuProps:v,ToolbarProps:p}),_jsxruntime.jsxs.call(void 0, _Box2.default,{sx:{minHeight:1,display:"flex",flexDirection:{xs:"column",lg:"row"}},children:[_jsxruntime.jsx.call(void 0, _chunkEOCTF5NRjs.a,{navData:c,openNav:n.value,onCloseNav:n.onFalse,LogoIcon:r,LogoProps:a,settings:o,setSettings:d}),_jsxruntime.jsx.call(void 0, _chunkP4OPK6IAjs.a,{isNavMini:!0,children:g})]})]}):_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunk4RLLX3TMjs.a,{settings:o,LogoIcon:r,LogoProps:a,onOpenNav:n.onTrue,AccountMenu:u,AccountMenuProps:v,ToolbarProps:p}),_jsxruntime.jsxs.call(void 0, _Box2.default,{sx:{minHeight:1,display:"flex",flexDirection:{xs:"column",lg:"row"}},children:[_jsxruntime.jsx.call(void 0, _chunkVK24SFLBjs.a,{navData:c,settings:o,setSettings:d,LogoIcon:r,LogoProps:a,openNav:n.value,onCloseNav:n.onFalse}),_jsxruntime.jsx.call(void 0, _chunkP4OPK6IAjs.a,{children:g})]})]})},w= exports.a =C;exports.a = w;
//# sourceMappingURL=chunk-DVQRNYBY.js.map