"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 _chunkIYGIDEQ3js = require('./chunk-IYGIDEQ3.js');var _chunkNKHDPFJZjs = require('./chunk-NKHDPFJZ.js');var _chunkKMGI4UUWjs = require('./chunk-KMGI4UUW.js');var _chunkWON4KFVRjs = require('./chunk-WON4KFVR.js');var _chunkOE4CHRJCjs = require('./chunk-OE4CHRJC.js');var _utils = require('@baseapp-frontend/utils');var _Box = require('@mui/material/Box'); var _Box2 = _interopRequireDefault(_Box);var _jsxruntime = require('react/jsx-runtime');var T=function(t){var l=t.navData,o=t.settings,m=t.setSettings,a=t.LogoIcon,c=t.AccountMenu,u=t.AccountMenuProps,v=t.ToolbarProps,p=t.children,n=_utils.useBoolean.call(void 0, ),L=_optionalChain([o, 'optionalAccess', _ => _.themeLayout])==="centered",A=_optionalChain([o, 'optionalAccess', _2 => _2.themeLayout])==="horizontal",P=_optionalChain([o, 'optionalAccess', _3 => _3.themeLayout])==="mini";return L?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkOE4CHRJCjs.a,{settings:o,LogoIcon:a,onOpenNav:n.onTrue,AccountMenu:c,AccountMenuProps:u,ToolbarProps:v,children:_jsxruntime.jsx.call(void 0, _chunkIYGIDEQ3js.a,{navData:l,openNav:n.value,onCloseNav:n.onFalse})}),_jsxruntime.jsx.call(void 0, _chunkP4OPK6IAjs.a,{isNavCentered:!0,children:p})]}):A?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkOE4CHRJCjs.a,{settings:o,LogoIcon:a,onOpenNav:n.onTrue,AccountMenu:c,AccountMenuProps:u,ToolbarProps:v}),_jsxruntime.jsx.call(void 0, _chunkNKHDPFJZjs.a,{navData:l,openNav:n.value,onCloseNav:n.onFalse}),_jsxruntime.jsx.call(void 0, _chunkP4OPK6IAjs.a,{isNavHorizontal:!0,children:p})]}):P?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkOE4CHRJCjs.a,{settings:o,LogoIcon:a,onOpenNav:n.onTrue,AccountMenu:c,AccountMenuProps:u,ToolbarProps:v}),_jsxruntime.jsxs.call(void 0, _Box2.default,{sx:{minHeight:1,display:"flex",flexDirection:{xs:"column",lg:"row"}},children:[_jsxruntime.jsx.call(void 0, _chunkKMGI4UUWjs.a,{navData:l,openNav:n.value,onCloseNav:n.onFalse,LogoIcon:a,settings:o,setSettings:m}),_jsxruntime.jsx.call(void 0, _chunkP4OPK6IAjs.a,{isNavMini:!0,children:p})]})]}):_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkOE4CHRJCjs.a,{settings:o,LogoIcon:a,onOpenNav:n.onTrue,AccountMenu:c,AccountMenuProps:u,ToolbarProps:v}),_jsxruntime.jsxs.call(void 0, _Box2.default,{sx:{minHeight:1,display:"flex",flexDirection:{xs:"column",lg:"row"}},children:[_jsxruntime.jsx.call(void 0, _chunkWON4KFVRjs.a,{navData:l,settings:o,setSettings:m,LogoIcon:a,openNav:n.value,onCloseNav:n.onFalse}),_jsxruntime.jsx.call(void 0, _chunkP4OPK6IAjs.a,{children:p})]})]})},S= exports.a =T;exports.a = S;
//# sourceMappingURL=chunk-UAVSLTID.js.map