"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 _chunkMJJNBAQQjs = require('./chunk-MJJNBAQQ.js');var _chunkJ3SOYA2Qjs = require('./chunk-J3SOYA2Q.js');var _icons = require('@baseapp-frontend/design-system/components/web/icons');var _logos = require('@baseapp-frontend/design-system/components/web/logos');var _IconButton = require('@mui/material/IconButton'); var _IconButton2 = _interopRequireDefault(_IconButton);var _Toolbar = require('@mui/material/Toolbar'); var _Toolbar2 = _interopRequireDefault(_Toolbar);var _jsxruntime = require('react/jsx-runtime');function c(o){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(o)}function m(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),t.push.apply(t,r)}return t}function n(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?m(Object(t),!0).forEach(function(r){h(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function h(o,e,t){return(e=j(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function j(o){var e=O(o,"string");return c(e)=="symbol"?e:e+""}function O(o,e){if(c(o)!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e||"default");if(c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}var A=function(e){var t=e.settings,r=e.children,s=e.onOpenNav,p=e.LogoIcon,u=e.LogoProps,a=e.AccountMenu,y=a===void 0?_chunkMJJNBAQQjs.a:a,b=e.AccountMenuProps,g=e.ToolbarProps,v=t.themeLayout==="horizontal",d=t.themeLayout==="centered";return _jsxruntime.jsx.call(void 0, _chunkJ3SOYA2Qjs.a,{themeLayout:t.themeLayout,children:_jsxruntime.jsxs.call(void 0, _Toolbar2.default,n(n({sx:{height:1,px:{lg:5},justifyContent:"center",gap:2}},g),{},{children:[p&&(v||d)&&_jsxruntime.jsx.call(void 0, _logos.Logo,n(n({},u),{},{sx:n({display:{xs:"none",lg:"flex"}},_optionalChain([u, 'optionalAccess', _ => _.sx])),children:_jsxruntime.jsx.call(void 0, p,{})})),_jsxruntime.jsx.call(void 0, _IconButton2.default,{onClick:s,sx:{display:{xs:"flex",lg:"none"}},children:_jsxruntime.jsx.call(void 0, _icons.MenuIcon,{})}),_jsxruntime.jsx.call(void 0, y,n(n({},b),{},{children:r}))]}))})},H= exports.a =A;exports.a = H;
//# sourceMappingURL=chunk-4RLLX3TM.js.map