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