"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQY5FWMPEjs = require('./chunk-QY5FWMPE.js');var _chunkC5IZ2GUCjs = require('./chunk-C5IZ2GUC.js');var _chunk2IIS36RMjs = require('./chunk-2IIS36RM.js');var _chunk6S5LPSJPjs = require('./chunk-6S5LPSJP.js');var _authentication = require('@baseapp-frontend/authentication');var _material = require('@mui/material');var _jsxruntime = require('react/jsx-runtime');function i(r){"@babel/helpers - typeof";return i=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},i(r)}function S(r,e){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable})),o.push.apply(o,t)}return o}function j(r){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?S(Object(o),!0).forEach(function(t){x(r,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):S(Object(o)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(o,t))})}return r}function x(r,e,o){return(e=U(e))in r?Object.defineProperty(r,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[e]=o,r}function U(r){var e=L(r,"string");return i(e)=="symbol"?e:e+""}function L(r,e){if(i(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var t=o.call(r,e||"default");if(i(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var K=function(e){var o,t=e.CurrentUser,u=t===void 0?_chunkQY5FWMPEjs.a:t,a=e.CurrentProfile,p=a===void 0?_chunk2IIS36RMjs.a:a,c=e.SwitchProfileMenu,f=c===void 0?_chunk6S5LPSJPjs.a:c,m=e.SwitchProfileMenuProps,M=m===void 0?{}:m,P=e.MenuItems,g=P===void 0?_chunkC5IZ2GUCjs.a:P,v=e.MenuItemsProps,l=v===void 0?{}:v,D=e.handlePopoverOnClose,I=e.setOpenProfilesList,_=_authentication.useCurrentProfile.call(void 0, {noSSR:!1}),B=_.currentProfile,s=!!p&&!!B,y=!s&&!!u,$=!!(s||y||f);return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[s&&_jsxruntime.jsx.call(void 0, p,{}),y&&_jsxruntime.jsx.call(void 0, u,{}),s&&!!f&&_jsxruntime.jsx.call(void 0, f,j({openProfilesList:function(){return I(!0)}},M)),!!(!(l==null||(o=l.menuItems)===null||o===void 0)&&o.length)&&_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[$&&_jsxruntime.jsx.call(void 0, _material.Divider,{sx:{borderStyle:"solid"}}),_jsxruntime.jsx.call(void 0, g,j({handlePopoverOnClose:D},l))]})]})},G= exports.a =K;exports.a = G;
//# sourceMappingURL=chunk-OFXE5KF4.js.map