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

var _chunkVVFL6ADEjs = require('./chunk-VVFL6ADE.js');


var _chunkTJVQ6WFCjs = require('./chunk-TJVQ6WFC.js');

// tmp-babel/navigations/web/Header/index.js
var _icons = require('@baseapp-frontend/design-system/components/web/icons');
var _logos = require('@baseapp-frontend/design-system/components/web/logos');
var _web = require('@baseapp-frontend/design-system/hooks/web');
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 _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 Header = function Header2(_ref) {
  var children = _ref.children, onOpenNav = _ref.onOpenNav, LogoIcon = _ref.LogoIcon, LogoProps = _ref.LogoProps, _ref$AccountMenu = _ref.AccountMenu, AccountMenu = _ref$AccountMenu === void 0 ? _chunkVVFL6ADEjs.AccountMenu_default : _ref$AccountMenu, AccountMenuProps = _ref.AccountMenuProps, ToolbarProps = _ref.ToolbarProps;
  var _useUISettings = _web.useUISettings.call(void 0, ), settings = _useUISettings.settings;
  var isNavHorizontal = settings.themeLayout === "horizontal";
  var isNavCentered = settings.themeLayout === "centered";
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTJVQ6WFCjs.CustomAppBar, {
    themeLayout: settings.themeLayout,
    children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Toolbar2.default, _objectSpread(_objectSpread({
      sx: {
        height: 1,
        px: {
          lg: 5
        },
        justifyContent: "center",
        gap: 2
      }
    }, ToolbarProps), {}, {
      children: [LogoIcon && (isNavHorizontal || isNavCentered) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _logos.Logo, _objectSpread(_objectSpread({}, LogoProps), {}, {
        sx: _objectSpread({
          display: {
            xs: "none",
            lg: "flex"
          }
        }, LogoProps === null || LogoProps === void 0 ? void 0 : LogoProps.sx),
        children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LogoIcon, {})
      })), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _IconButton2.default, {
        onClick: onOpenNav,
        sx: {
          display: {
            xs: "flex",
            lg: "none"
          }
        },
        children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _icons.MenuIcon, {})
      }), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AccountMenu, _objectSpread(_objectSpread({}, AccountMenuProps), {}, {
        children
      }))]
    }))
  });
};
var Header_default = Header;



exports.Header_default = Header_default;
//# sourceMappingURL=chunk-JAUZAI42.js.map