import{a as p}from"./chunk-LIACMRTC.mjs";import{b as f}from"./chunk-BHP27HO3.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(r){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(r)}function v(r,e){if(r==null)return{};var t,o,n=P(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(o=0;o<i.length;o++)t=i[o],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(r,t)&&(n[t]=r[t])}return n}function P(r,e){if(r==null)return{};var t={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(e.indexOf(o)!==-1)continue;t[o]=r[o]}return t}function c(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,o)}return t}function b(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?c(Object(t),!0).forEach(function(o){O(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}function O(r,e,t){return(e=g(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function g(r){var e=j(r,"string");return l(e)=="symbol"?e:e+""}function j(r,e){if(l(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(l(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var x=function(e){var t=e.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(e){var t=e.title,o=t===void 0?"Members":t,n=e.subtitle,i=e.InitialLoadingState,u=i===void 0?_:i,y=v(e,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,{}),children:a(x,b({},y))})]})},C=E;export{C as a};
//# sourceMappingURL=chunk-CQG64T3B.mjs.map