"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 _chunk6OLZMMLKjs = require('./chunk-6OLZMMLK.js');var _chunkGJFTCPO7js = require('./chunk-GJFTCPO7.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(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=_authentication.useCurrentProfile.call(void 0, ),i=n.currentProfile,u=_reactrelay.useLazyLoadQuery.call(void 0, _chunkD2DMBZG7js.a,{profileId:_optionalChain([i, 'optionalAccess', _2 => _2.id])||"",count:_chunkGJFTCPO7js.b,orderBy:"status"});return u.profile?_jsxruntime.jsx.call(void 0, _chunk6OLZMMLKjs.a,b({userRef:_optionalChain([u, 'optionalAccess', _3 => _3.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?_displays.LoadingState:i,y=v(e,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,{}),children:_jsxruntime.jsx.call(void 0, x,b({},y))})]})},C= exports.a =E;exports.a = C;
//# sourceMappingURL=chunk-NUNFZPYS.js.map