1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./jsx-runtime-By_aJMXI.js";import{t as n}from"./react-DiVRNtpo.js";import{t as r}from"./withTranslation-CWGDH_j9.js";import{lr as i}from"./pro-solid-svg-icons-CrSqfV4d.js";import{t as a}from"./Loader-B2ElroUC.js";import{dt as o,g as s,ot as c,t as l,u,y as d}from"./index-C4Fz2al5.js";import{t as f}from"./Card-CGYOwc1w.js";import{t as p}from"./useLayoutUpdate-CnF_nUl3.js";var m=e(n()),h=`_container_x0c10_1`,g=`_center_x0c10_9`,_=t(),v=({children:e,center:t,className:n=``})=>(0,_.jsx)(`div`,{className:`${h} ${t?g:``} ${n}`,children:e}),y=`#import "../../fragments/UserFragment.graphql" 2 3query GetUsersQuery { 4 users(filter: { isCommunityContributor: true }) { 5 edges { 6 node { 7 id 8 ... on User { 9 ...UserFragment 10 } 11 } 12 } 13 } 14} 15`,b={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`query`,name:{kind:`Name`,value:`GetUsersQuery`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`users`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`filter`},value:{kind:`ObjectValue`,fields:[{kind:`ObjectField`,name:{kind:`Name`,value:`isCommunityContributor`},value:{kind:`BooleanValue`,value:!0}}]}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`edges`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`node`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`User`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`FragmentSpread`,name:{kind:`Name`,value:`UserFragment`}}]}}]}}]}}]}}]}}],loc:{start:0,end:274}};b.loc.source={name:`GraphQL request`,locationOffset:{line:1,column:1}},b.loc.source.body=y,b.definitions=(e=>{let t=Object.create(null);return e.filter(function(e){if(e.kind!==`FragmentDefinition`)return!0;let n=e.name.value;return!t[n]&&(t[n]=!0,!0)})})(b.definitions.concat(u.definitions)),((e,t)=>{let n=(e,t)=>{if(e.kind===`FragmentSpread`)t.add(e.name.value);else if(e.kind===`VariableDefinition`){let n=e.type;n.kind===`NamedType`&&t.add(n.name.value)}return e&&`selectionSet`in e&&e.selectionSet&&e.selectionSet.selections.forEach(e=>{n(e,t)}),e&&`variableDefinitions`in e&&e.variableDefinitions&&e.variableDefinitions.forEach(e=>{n(e,t)}),e&&`definitions`in e&&e.definitions&&e.definitions.forEach(e=>{n(e,t)}),t},r=e=>{let t=Object.create(null);return e.definitions.forEach(function(e){`name`in e&&e.name&&(t[e.name.value]=n(e,new Set))}),t},i=(e,t)=>{for(let n=0;n<e.definitions.length;n++){let r=e.definitions[n];if(r&&`name`in r&&r.name&&r.name.value===t)return r}},a=r(e),o=i(e,t);if(!o)throw Error(`vite-plugin-graphql-loader: operation "${t}" not found in document`);let s=Object.assign({},e,{definitions:[o]}),c=a[t]||new Set,l=new Set,u=new Set;for(c.forEach(e=>{u.add(e)});u.size>0;){let e=u;u=new Set,e.forEach(e=>{l.has(e)||(l.add(e),(a[e]||new Set).forEach(e=>{u.add(e)}))})}return l.forEach(t=>{let n=i(e,t);n&&s.definitions.push(n)}),s})(b,`GetUsersQuery`);var x=r()(({t:e})=>{let{loading:t,error:n,data:r}=o(b);p({title:e(`Team`),history:[{title:e(`Team`)}]});let{obtainBadge:u}=s();if((0,m.useEffect)(()=>{u(`9c993668-0985-4dea-b9a3-4a946b926579`)},[u]),t&&!r)return(0,_.jsx)(a,{});if(n)return(0,_.jsx)(c,{icon:i,message:e(`An error occurred while loading the team.`)});let h=r.users.edges,g=h.filter(e=>e.node.role===`ADMINISTRATOR`),y=h.filter(e=>e.node.role===`MODERATOR`),x=h.filter(e=>e.node.role===`USER`);return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(f,{children:[g.length>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(l,{h:1,children:e(`The administrators`)}),(0,_.jsx)(v,{children:g.map(e=>(0,_.jsx)(d,{size:`75px`,...e.node},e.node.id))})]}),y.length>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(l,{h:1,children:e(`The moderators`)}),(0,_.jsx)(v,{children:y.map(e=>(0,_.jsx)(d,{size:`75px`,...e.node,showBorders:!0},e.node.id))})]}),x.length>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(l,{h:1,children:e(`A big thanks toâ¦`)}),(0,_.jsx)(v,{children:x.map(e=>
15(0,_.jsx)(d,{size:`75px`,...e.node,showBorders:!0},e.node.id))})]})]})})});export{x as default}; 16//# sourceMappingURL=Team-ByIPYI4o.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.