"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 _chunkMQ2P64PXjs = require('./chunk-MQ2P64PX.js');var _chunkWX62UOE5js = require('./chunk-WX62UOE5.js');var _chunkD2DMBZG7js = require('./chunk-D2DMBZG7.js');var _react = require('react');var _authentication = require('@baseapp-frontend/authentication');var _displays = require('@baseapp-frontend/design-system/components/web/displays');var _material = require('@mui/material');var _reactrelay = require('react-relay');var _jsxruntime = require('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=_authentication.useCurrentProfile.call(void 0, ),i=n.currentProfile,u=_reactrelay.useLazyLoadQuery.call(void 0, _chunkD2DMBZG7js.a,{profileId:_optionalChain([i, 'optionalAccess', _2 => _2.id])||"",count:_chunkWX62UOE5js.b,orderBy:"status"});return u.profile?_jsxruntime.jsx.call(void 0, _chunkMQ2P64PXjs.a,b({userRef:_optionalChain([u, 'optionalAccess', _3 => _3.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?_displays.LoadingState:i,y=v(r,d);return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h4",variant:"h4",mb:1,children:o}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"p",variant:"body2",color:"text.secondary",mb:4,children:n}),_jsxruntime.jsx.call(void 0, _react.Suspense,{fallback:_jsxruntime.jsx.call(void 0, u,{CircularProgressProps:{size:20}}),children:_jsxruntime.jsx.call(void 0, x,b({},y))})]})},k= exports.a =E;exports.a = k;
//# sourceMappingURL=chunk-F5HW3OVV.js.map