"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOC25BW2Pjs = require('./chunk-OC25BW2P.js');var _authentication = require('@baseapp-frontend/authentication');var _material = require('@mui/material');var _jsxruntime = require('react/jsx-runtime');function c(e){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(e)}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(n){S(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S(e,t,r){return(t=x(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e){var t=B(e,"string");return c(t)=="symbol"?t:t+""}function B(e,t){if(c(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(c(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var k=function(t){var r=t.AccountPopoverProps,n=r===void 0?{}:r,u=t.additionalComponent,a=t.children,s=t.loginButtonLabel,v=s===void 0?"Login":s,P=t.loginButtonProps,p=t.onLoginClick,f=t.onRegisterClick,m=t.registerButtonLabel,j=m===void 0?"Register":m,O=t.registerButtonProps,h=_authentication.getUser.call(void 0, {noSSR:!1}),w=function(){return u||_jsxruntime.jsx.call(void 0, "div",{})},d=function(){return a||_jsxruntime.jsx.call(void 0, "div",{})};return h?_jsxruntime.jsxs.call(void 0, "div",{className:"grid w-full grid-cols-[1fr_40px_40px] items-center justify-center gap-1 min-lg:gap-2",children:[d(),w(),_jsxruntime.jsx.call(void 0, _chunkOC25BW2Pjs.a,o({},n))]}):_jsxruntime.jsxs.call(void 0, "div",{className:"grid w-full grid-cols-[1fr_max-content_max-content] items-center justify-center gap-1 min-lg:gap-2",children:[d(),f&&p&&_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _material.Button,o(o({onClick:f,variant:"outlined",color:"inherit",sx:{width:"fit-content"}},O),{},{children:j})),_jsxruntime.jsx.call(void 0, _material.Button,o(o({onClick:p,sx:{width:"fit-content"}},P),{},{children:v}))]})]})},N= exports.a =k;exports.a = N;
//# sourceMappingURL=chunk-MJJNBAQQ.js.map