"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _authentication = require('@baseapp-frontend/authentication');var _utils = require('@baseapp-frontend/utils');var _material = require('@mui/material');var _jsxruntime = require('react/jsx-runtime');var u=function(){var t=_authentication.useJWTUser.call(void 0, ),r=t.user;return r?_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{m:1.5,px:1,py:.75},children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"p",variant:"subtitle2",noWrap:!0,children:_utils.joinWithSeparator.call(void 0, [_optionalChain([r, 'optionalAccess', _ => _.firstName]),_optionalChain([r, 'optionalAccess', _2 => _2.lastName])])}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",sx:{color:"text.secondary"},noWrap:!0,children:_optionalChain([r, 'optionalAccess', _3 => _3.email])})]}):null},x= exports.a =u;exports.a = x;
//# sourceMappingURL=chunk-QY5FWMPE.js.map