import{a as p}from"./chunk-XCDYESEI.mjs";import{b as f}from"./chunk-BQRERWAL.mjs";import{a as s}from"./chunk-7PGPVSIJ.mjs";import{Suspense as S}from"react";import{useCurrentProfile as h}from"@baseapp-frontend/authentication";import{LoadingState as _}from"@baseapp-frontend/design-system/components/web/displays";import{Typography as m}from"@mui/material";import{useLazyLoadQuery as L}from"react-relay";import{jsx as a,Fragment as w,jsxs as M}from"react/jsx-runtime";var d=["title","subtitle","InitialLoadingState"];function l(e){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},l(e)}function v(e,r){if(e==null)return{};var t,o,n=P(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],r.indexOf(t)===-1&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function P(e,r){if(e==null)return{};var t={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(r.indexOf(o)!==-1)continue;t[o]=e[o]}return t}function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function b(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?c(Object(t),!0).forEach(function(o){g(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}function g(e,r,t){return(r=O(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function O(e){var r=j(e,"string");return l(r)=="symbol"?r:r+""}function j(e,r){if(l(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var o=t.call(e,r||"default");if(l(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var x=function(r){var t=r.MembersListProps,o=t===void 0?{}:t,n=h(),i=n.currentProfile,u=L(s,{profileId:i?.id||"",count:f,orderBy:"status"});return u.profile?a(p,b({userRef:u?.profile},o)):null},E=function(r){var t=r.title,o=t===void 0?"Members":t,n=r.subtitle,i=r.InitialLoadingState,u=i===void 0?_:i,y=v(r,d);return M(w,{children:[a(m,{component:"h4",variant:"h4",mb:1,children:o}),a(m,{component:"p",variant:"body2",color:"text.secondary",mb:4,children:n}),a(S,{fallback:a(u,{CircularProgressProps:{size:20}}),children:a(x,b({},y))})]})},k=E;export{k as a};
//# sourceMappingURL=chunk-KBM3CBA4.mjs.map