import{a as g}from"./chunk-FJZXQ6GI.mjs";import{getUser as L}from"@baseapp-frontend/authentication";import{Button as y}from"@mui/material";import{jsx as i,Fragment as A,jsxs as l}from"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=L({noSSR:!1}),w=function(){return u||i("div",{})},d=function(){return a||i("div",{})};return h?l("div",{className:"grid w-full grid-cols-[1fr_40px_40px] items-center justify-center gap-1 min-lg:gap-2",children:[d(),w(),i(g,o({},n))]}):l("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&&l(A,{children:[i(y,o(o({onClick:f,variant:"outlined",color:"inherit",sx:{width:"fit-content"}},O),{},{children:j})),i(y,o(o({onClick:p,sx:{width:"fit-content"}},P),{},{children:v}))]})]})},N=k;export{N as a};
//# sourceMappingURL=chunk-IE7ORAVJ.mjs.map