"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 _chunkGJFTCPO7js = require('./chunk-GJFTCPO7.js');var _chunk4VJOA5BIjs = require('./chunk-4VJOA5BI.js');var _material = require('@mui/material');var _reactrelay = require('react-relay');var _jsxruntime = require('react/jsx-runtime');function b(t){"@babel/helpers - typeof";return b=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},b(t)}function P(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),o.push.apply(o,n)}return o}function v(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?P(Object(o),!0).forEach(function(n){A(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):P(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function A(t,r,o){return(r=F(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function F(t){var r=K(t,"string");return b(r)=="symbol"?r:r+""}function K(t,r){if(b(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,r||"default");if(b(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var N=function(r){var o,n,c=r.member,i=r.data,C=r.prevMember,x=r.nextMember,a=r.MemberItemComponent,m=r.memberItemComponentProps,O=r.searchQuery,e=_reactrelay.useFragment.call(void 0, _chunk4VJOA5BIjs.a,c),p=_reactrelay.useFragment.call(void 0, _chunk4VJOA5BIjs.a,x),u=_reactrelay.useFragment.call(void 0, _chunk4VJOA5BIjs.a,C),f=e.status===_chunkGJFTCPO7js.c.active,R=_optionalChain([u, 'optionalAccess', _ => _.status])!==_chunkGJFTCPO7js.c.active,D=!(u!=null&&u.status),Q=!(p!=null&&p.status),E=f&&R||f&&D,L=!f&&Q;if(!e)return null;if(E){var y,g;return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _material.Divider,{}),_jsxruntime.jsx.call(void 0, a,v({member:i,memberRole:"owner",status:_chunkGJFTCPO7js.c.active,searchQuery:O},m)),_jsxruntime.jsx.call(void 0, a,v({member:e==null||(y=e.user)===null||y===void 0?void 0:y.profile,memberRole:_optionalChain([e, 'optionalAccess', _2 => _2.role]),status:_optionalChain([e, 'optionalAccess', _3 => _3.status]),userId:e==null||(g=e.user)===null||g===void 0?void 0:g.id,canChangeMember:_optionalChain([i, 'optionalAccess', _4 => _4.canChangeRole])||!1},m))]})}if(L){var M,j;return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, a,v({member:e==null||(M=e.user)===null||M===void 0?void 0:M.profile,memberRole:_optionalChain([e, 'optionalAccess', _5 => _5.role]),status:_optionalChain([e, 'optionalAccess', _6 => _6.status]),userId:e==null||(j=e.user)===null||j===void 0?void 0:j.id,canChangeMember:_optionalChain([i, 'optionalAccess', _7 => _7.canChangeRole])||!1},m)),_jsxruntime.jsx.call(void 0, _material.Divider,{}),_jsxruntime.jsx.call(void 0, a,v({member:i,memberRole:"owner",status:_chunkGJFTCPO7js.c.active,searchQuery:O},m))]})}return _jsxruntime.jsx.call(void 0, a,v({member:e==null||(o=e.user)===null||o===void 0?void 0:o.profile,memberRole:_optionalChain([e, 'optionalAccess', _8 => _8.role]),status:_optionalChain([e, 'optionalAccess', _9 => _9.status]),userId:e==null||(n=e.user)===null||n===void 0?void 0:n.id,canChangeMember:_optionalChain([i, 'optionalAccess', _10 => _10.canChangeRole])||!1},m))},B= exports.a =N;exports.a = B;
//# sourceMappingURL=chunk-4LN3KLCD.js.map