"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 _material = require('@mui/material');var _jsxruntime = require('react/jsx-runtime');var a=function(l){var r=l.handlePopoverOnClose,n=l.menuItems;return!n||!n.length?null:_jsxruntime.jsx.call(void 0, _material.Box,{margin:1.5,children:_jsxruntime.jsx.call(void 0, _material.Stack,{component:_material.List,children:_optionalChain([n, 'optionalAccess', _ => _.map, 'call', _2 => _2(function(e){return _jsxruntime.jsx.call(void 0, _material.MenuItem,{onClick:function(){e.onClick(),r()},children:e.label},e.label)})])})})},f= exports.a =a;exports.a = f;
//# sourceMappingURL=chunk-C5IZ2GUC.js.map