"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGGVHDHJ6js = require('./chunk-GGVHDHJ6.js');var _chunkP6TSSCDPjs = require('./chunk-P6TSSCDP.js');var _displays = require('@baseapp-frontend/design-system/components/web/displays');var _material = require('@mui/material');var _reactvirtuoso = require('react-virtuoso');var _jsxruntime = require('react/jsx-runtime');function i(e){"@babel/helpers - typeof";return i=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},i(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,o)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(o){N(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function N(e,t,r){return(t=w(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e){var t=E(e,"string");return i(t)=="symbol"?t:t+""}function E(e,t){if(i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(i(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var C=function(t){var r=t.searchValue,o=t.profiles,a=o===void 0?[]:o,s=t.isPending,b=t.isLoadingNext,g=t.hasNext,P=t.loadNext,S=t.renderItem,u=t.VirtuosoProps,v=u===void 0?{}:u,p=t.EmptyProfilesListState,h=p===void 0?_chunkGGVHDHJ6js.a:p,c=t.SearchNotFoundState,O=c===void 0?_chunkP6TSSCDPjs.a:c,j=function(){return b?_jsxruntime.jsx.call(void 0, _displays.LoadingState,{sx:{paddingTop:3,paddingBottom:1},CircularProgressProps:{size:15},"aria-label":"loading more profiles"}):_jsxruntime.jsx.call(void 0, _material.Box,{sx:{paddingTop:3}})},f=a.length===0;return!s&&r&&f?_jsxruntime.jsx.call(void 0, O,{}):!s&&f?_jsxruntime.jsx.call(void 0, h,{}):_jsxruntime.jsx.call(void 0, _reactvirtuoso.Virtuoso,L({data:a,itemContent:function($,x){return S(x)},style:{scrollbarWidth:"none",maxHeight:"250px"},components:{Footer:j},endReached:function(){g&&P(5)}},v))},k= exports.a =C;exports.a = k;
//# sourceMappingURL=chunk-J7B5ZTQZ.js.map