import{a as d}from"./chunk-A2V5HV2W.mjs";import{a as m}from"./chunk-QVKZ2F6L.mjs";import{LoadingState as D}from"@baseapp-frontend/design-system/components/web/displays";import{Box as F}from"@mui/material";import{Virtuoso as V}from"react-virtuoso";import{jsx as n}from"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?d:p,c=t.SearchNotFoundState,O=c===void 0?m:c,j=function(){return b?n(D,{sx:{paddingTop:3,paddingBottom:1},CircularProgressProps:{size:15},"aria-label":"loading more profiles"}):n(F,{sx:{paddingTop:3}})},f=a.length===0;return!s&&r&&f?n(O,{}):!s&&f?n(h,{}):n(V,L({data:a,itemContent:function($,x){return S(x)},style:{scrollbarWidth:"none",maxHeight:"250px"},components:{Footer:j},endReached:function(){g&&P(5)}},v))},k=C;export{k as a};
//# sourceMappingURL=chunk-7JB42AK2.mjs.map