"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 _chunkNCSJCS36js = require('./chunk-NCSJCS36.js');require('react');var _buttons = require('@baseapp-frontend/design-system/components/web/buttons');var _icons = require('@baseapp-frontend/design-system/components/web/icons');var _jsxruntime = require('react/jsx-runtime');var I=function(e){var c=e.offsetRight,d=e.offsetTop,m=e.showDeleteButton,h=e.isDeletingItem,u=e.disableDeleteButton,p=e.handleDeleteDialogOpen,n=e.actions,l=n===void 0?[]:n,f=e.handleLongPressItemOptionsClose;return _jsxruntime.jsxs.call(void 0, _chunkNCSJCS36js.a,{offsetRight:c,offsetTop:d,"aria-label":"actions overlay",children:[m&&_jsxruntime.jsx.call(void 0, _buttons.IconButton,{onClick:p,disabled:h||u,"aria-label":"delete item",children:_jsxruntime.jsx.call(void 0, _icons.TrashCanIcon,{})}),_optionalChain([l, 'optionalAccess', _ => _.map, 'call', _2 => _2(function(o){var a=o.label,v=o.icon,i=o.onClick,C=o.disabled,D=o.hasPermission,b=o.closeOnClick;if(!D)return null;var g=function(){_optionalChain([i, 'optionalCall', _3 => _3()]),b&&f()};return _jsxruntime.jsx.call(void 0, _buttons.IconButton,{onClick:g,disabled:C,"aria-label":a,children:v},a)})])]})},H= exports.a =I;exports.a = H;
//# sourceMappingURL=chunk-KBNVAADP.js.map