mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-05 20:26:43 +02:00
12 lines
21 KiB
JavaScript
12 lines
21 KiB
JavaScript
var Me=t=>{throw TypeError(t)};var le=(t,e,s)=>e.has(t)||Me("Cannot "+s);var r=(t,e,s)=>(le(t,e,"read from private field"),s?s.call(t):e.get(t)),p=(t,e,s)=>e.has(t)?Me("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),l=(t,e,s,i)=>(le(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),u=(t,e,s)=>(le(t,e,"access private method"),s);import{S as Ae,p as Te,d as T,s as ue,e as ie,n as tt,i as de,g as De,t as st,h as rt,k as it,l as _e,m as Y,o as at,r as E,u as qe,c as Be,j as n,B as nt,q as ot,b as ct}from"../script.js";import{m as $}from"./proxy-D4owT0uO.js";import{M as lt}from"./map-pin-Dh5sOFp6.js";import{U as ht}from"./users-BmJA6T-g.js";import{S as ut}from"./star-DBf-izIT.js";var S,h,Z,C,U,z,D,M,ee,G,V,L,P,_,W,d,X,fe,pe,me,ge,xe,be,ye,$e,Pe,Ee=(Pe=class extends Ae{constructor(e,s){super();p(this,d);p(this,S);p(this,h);p(this,Z);p(this,C);p(this,U);p(this,z);p(this,D);p(this,M);p(this,ee);p(this,G);p(this,V);p(this,L);p(this,P);p(this,_);p(this,W,new Set);this.options=s,l(this,S,e),l(this,M,null),l(this,D,Te()),this.options.experimental_prefetchInRender||r(this,D).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,h).addObserver(this),Fe(r(this,h),this.options)?u(this,d,X).call(this):this.updateResult(),u(this,d,ge).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ve(r(this,h),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ve(r(this,h),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,u(this,d,xe).call(this),u(this,d,be).call(this),r(this,h).removeObserver(this)}setOptions(e,s){const i=this.options,c=r(this,h);if(this.options=r(this,S).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof T(this.options.enabled,r(this,h))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");u(this,d,ye).call(this),r(this,h).setOptions(this.options),i._defaulted&&!ue(this.options,i)&&r(this,S).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,h),observer:this});const o=this.hasListeners();o&&Ue(r(this,h),c,this.options,i)&&u(this,d,X).call(this),this.updateResult(s),o&&(r(this,h)!==c||T(this.options.enabled,r(this,h))!==T(i.enabled,r(this,h))||ie(this.options.staleTime,r(this,h))!==ie(i.staleTime,r(this,h)))&&u(this,d,fe).call(this);const a=u(this,d,pe).call(this);o&&(r(this,h)!==c||T(this.options.enabled,r(this,h))!==T(i.enabled,r(this,h))||a!==r(this,_))&&u(this,d,me).call(this,a)}getOptimisticResult(e){const s=r(this,S).getQueryCache().build(r(this,S),e),i=this.createResult(s,e);return ft(this,i)&&(l(this,C,i),l(this,z,this.options),l(this,U,r(this,h).state)),i}getCurrentResult(){return r(this,C)}trackResult(e,s){const i={};return Object.keys(e).forEach(c=>{Object.defineProperty(i,c,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(c),s==null||s(c),e[c])})}),i}trackProp(e){r(this,W).add(e)}getCurrentQuery(){return r(this,h)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const s=r(this,S).defaultQueryOptions(e),i=r(this,S).getQueryCache().build(r(this,S),s);return i.fetch().then(()=>this.createResult(i,s))}fetch(e){return u(this,d,X).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,C)))}createResult(e,s){var Ie;const i=r(this,h),c=this.options,o=r(this,C),a=r(this,U),m=r(this,z),f=e!==i?e.state:r(this,Z),{state:w}=e;let x={...w},k=!1,b;if(s._optimisticResults){const j=this.hasListeners(),q=!j&&Fe(e,s),B=j&&Ue(e,i,s,c);(q||B)&&(x={...x,...it(w.data,e.options)}),s._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:y,errorUpdatedAt:O,status:v}=x;if(s.select&&x.data!==void 0)if(o&&x.data===(a==null?void 0:a.data)&&s.select===r(this,ee))b=r(this,G);else try{l(this,ee,s.select),b=s.select(x.data),b=_e(o==null?void 0:o.data,b,s),l(this,G,b),l(this,M,null)}catch(j){l(this,M,j)}else b=x.data;if(s.placeholderData!==void 0&&b===void 0&&v==="pending"){let j;if(o!=null&&o.isPlaceholderData&&s.placeholderData===(m==null?void 0:m.placeholderData))j=o.data;else if(j=typeof s.placeholderData=="function"?s.placeholderData((Ie=r(this,V))==null?void 0:Ie.state.data,r(this,V)):s.placeholderData,s.select&&j!==void 0)try{j=s.select(j),l(this,M,null)}catch(q){l(this,M,q)}j!==void 0&&(v="success",b=_e(o==null?void 0:o.data,j,s),k=!0)}r(this,M)&&(y=r(this,M),b=r(this,G),O=Date.now(),v="error");const A=x.fetchStatus==="fetching",oe=v==="pending",ce=v==="error",Qe=oe&&A,ke=b!==void 0,I={status:v,fetchStatus:x.fetchStatus,isPending:oe,isSuccess:v==="success",isError:ce,isInitialLoading:Qe,isLoading:Qe,data:b,dataUpdatedAt:x.dataUpdatedAt,error:y,errorUpdatedAt:O,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>f.dataUpdateCount||x.errorUpdateCount>f.errorUpdateCount,isFetching:A,isRefetching:A&&!oe,isLoadingError:ce&&!ke,isPaused:x.fetchStatus==="paused",isPlaceholderData:k,isRefetchError:ce&&ke,isStale:Ne(e,s),refetch:this.refetch,promise:r(this,D)};if(this.options.experimental_prefetchInRender){const j=re=>{I.status==="error"?re.reject(I.error):I.data!==void 0&&re.resolve(I.data)},q=()=>{const re=l(this,D,I.promise=Te());j(re)},B=r(this,D);switch(B.status){case"pending":e.queryHash===i.queryHash&&j(B);break;case"fulfilled":(I.status==="error"||I.data!==B.value)&&q();break;case"rejected":(I.status!=="error"||I.error!==B.reason)&&q();break}}return I}updateResult(e){const s=r(this,C),i=this.createResult(r(this,h),this.options);if(l(this,U,r(this,h).state),l(this,z,this.options),r(this,U).data!==void 0&&l(this,V,r(this,h)),ue(i,s))return;l(this,C,i);const c={},o=()=>{if(!s)return!0;const{notifyOnChangeProps:a}=this.options,m=typeof a=="function"?a():a;if(m==="all"||!m&&!r(this,W).size)return!0;const g=new Set(m??r(this,W));return this.options.throwOnError&&g.add("error"),Object.keys(r(this,C)).some(f=>{const w=f;return r(this,C)[w]!==s[w]&&g.has(w)})};(e==null?void 0:e.listeners)!==!1&&o()&&(c.listeners=!0),u(this,d,$e).call(this,{...c,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&u(this,d,ge).call(this)}},S=new WeakMap,h=new WeakMap,Z=new WeakMap,C=new WeakMap,U=new WeakMap,z=new WeakMap,D=new WeakMap,M=new WeakMap,ee=new WeakMap,G=new WeakMap,V=new WeakMap,L=new WeakMap,P=new WeakMap,_=new WeakMap,W=new WeakMap,d=new WeakSet,X=function(e){u(this,d,ye).call(this);let s=r(this,h).fetch(this.options,e);return e!=null&&e.throwOnError||(s=s.catch(tt)),s},fe=function(){u(this,d,xe).call(this);const e=ie(this.options.staleTime,r(this,h));if(de||r(this,C).isStale||!De(e))return;const i=st(r(this,C).dataUpdatedAt,e)+1;l(this,L,setTimeout(()=>{r(this,C).isStale||this.updateResult()},i))},pe=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,h)):this.options.refetchInterval)??!1},me=function(e){u(this,d,be).call(this),l(this,_,e),!(de||T(this.options.enabled,r(this,h))===!1||!De(r(this,_))||r(this,_)===0)&&l(this,P,setInterval(()=>{(this.options.refetchIntervalInBackground||rt.isFocused())&&u(this,d,X).call(this)},r(this,_)))},ge=function(){u(this,d,fe).call(this),u(this,d,me).call(this,u(this,d,pe).call(this))},xe=function(){r(this,L)&&(clearTimeout(r(this,L)),l(this,L,void 0))},be=function(){r(this,P)&&(clearInterval(r(this,P)),l(this,P,void 0))},ye=function(){const e=r(this,S).getQueryCache().build(r(this,S),this.options);if(e===r(this,h))return;const s=r(this,h);l(this,h,e),l(this,Z,e.state),this.hasListeners()&&(s==null||s.removeObserver(this),e.addObserver(this))},$e=function(e){Y.batch(()=>{e.listeners&&this.listeners.forEach(s=>{s(r(this,C))}),r(this,S).getQueryCache().notify({query:r(this,h),type:"observerResultsUpdated"})})},Pe);function dt(t,e){return T(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Fe(t,e){return dt(t,e)||t.state.data!==void 0&&ve(t,e,e.refetchOnMount)}function ve(t,e,s){if(T(e.enabled,t)!==!1){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&Ne(t,e)}return!1}function Ue(t,e,s,i){return(t!==e||T(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Ne(t,s)}function Ne(t,e){return T(e.enabled,t)!==!1&&t.isStaleByTime(ie(e.staleTime,t))}function ft(t,e){return!ue(t.getCurrentResult(),e)}function Le(t,e){return t.filter(s=>!e.includes(s))}function pt(t,e,s){const i=t.slice(0);return i[e]=s,i}var J,N,H,K,Q,F,te,se,R,Re,we,ae,Oe,je,He,mt=(He=class extends Ae{constructor(e,s,i){super();p(this,R);p(this,J);p(this,N);p(this,H);p(this,K);p(this,Q);p(this,F);p(this,te);p(this,se);l(this,J,e),l(this,K,i),l(this,H,[]),l(this,Q,[]),l(this,N,[]),this.setQueries(s)}onSubscribe(){this.listeners.size===1&&r(this,Q).forEach(e=>{e.subscribe(s=>{u(this,R,Oe).call(this,e,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,r(this,Q).forEach(e=>{e.destroy()})}setQueries(e,s,i){l(this,H,e),l(this,K,s),Y.batch(()=>{const c=r(this,Q),o=u(this,R,ae).call(this,r(this,H));o.forEach(f=>f.observer.setOptions(f.defaultedQueryOptions,i));const a=o.map(f=>f.observer),m=a.map(f=>f.getCurrentResult()),g=a.some((f,w)=>f!==c[w]);c.length===a.length&&!g||(l(this,Q,a),l(this,N,m),this.hasListeners()&&(Le(c,a).forEach(f=>{f.destroy()}),Le(a,c).forEach(f=>{f.subscribe(w=>{u(this,R,Oe).call(this,f,w)})}),u(this,R,je).call(this)))})}getCurrentResult(){return r(this,N)}getQueries(){return r(this,Q).map(e=>e.getCurrentQuery())}getObservers(){return r(this,Q)}getOptimisticResult(e,s){const c=u(this,R,ae).call(this,e).map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[c,o=>u(this,R,we).call(this,o??c,s),()=>u(this,R,Re).call(this,c,e)]}},J=new WeakMap,N=new WeakMap,H=new WeakMap,K=new WeakMap,Q=new WeakMap,F=new WeakMap,te=new WeakMap,se=new WeakMap,R=new WeakSet,Re=function(e,s){const i=u(this,R,ae).call(this,s);return i.map((c,o)=>{const a=e[o];return c.defaultedQueryOptions.notifyOnChangeProps?a:c.observer.trackResult(a,m=>{i.forEach(g=>{g.observer.trackProp(m)})})})},we=function(e,s){return s?((!r(this,F)||r(this,N)!==r(this,se)||s!==r(this,te))&&(l(this,te,s),l(this,se,r(this,N)),l(this,F,at(r(this,F),s(e)))),r(this,F)):e},ae=function(e){const s=new Map(r(this,Q).map(c=>[c.options.queryHash,c])),i=[];return e.forEach(c=>{const o=r(this,J).defaultQueryOptions(c),a=s.get(o.queryHash);a?i.push({defaultedQueryOptions:o,observer:a}):i.push({defaultedQueryOptions:o,observer:new Ee(r(this,J),o)})}),i},Oe=function(e,s){const i=r(this,Q).indexOf(e);i!==-1&&(l(this,N,pt(r(this,N),i,s)),u(this,R,je).call(this))},je=function(){var e;if(this.hasListeners()){const s=r(this,F),i=u(this,R,we).call(this,u(this,R,Re).call(this,r(this,N),r(this,H)),(e=r(this,K))==null?void 0:e.combine);s!==i&&Y.batch(()=>{this.listeners.forEach(c=>{c(r(this,N))})})}},He),ze=E.createContext(!1),Ge=()=>E.useContext(ze);ze.Provider;function gt(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var xt=E.createContext(gt()),Ve=()=>E.useContext(xt);function bt(t,e){return typeof t=="function"?t(...e):!!t}function Ce(){}var We=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},Je=t=>{E.useEffect(()=>{t.clearReset()},[t])},Ke=({result:t,errorResetBoundary:e,throwOnError:s,query:i})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&bt(s,[t.error,i]),Xe=t=>{t.suspense&&(t.staleTime===void 0&&(t.staleTime=1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},Ye=(t,e)=>t.isLoading&&t.isFetching&&!e,Se=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,ne=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function yt({queries:t,...e},s){const i=qe(),c=Ge(),o=Ve(),a=E.useMemo(()=>t.map(y=>{const O=i.defaultQueryOptions(y);return O._optimisticResults=c?"isRestoring":"optimistic",O}),[t,i,c]);a.forEach(y=>{Xe(y),We(y,o)}),Je(o);const[m]=E.useState(()=>new mt(i,a,e)),[g,f,w]=m.getOptimisticResult(a,e.combine);E.useSyncExternalStore(E.useCallback(y=>c?Ce:m.subscribe(Y.batchCalls(y)),[m,c]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),E.useEffect(()=>{m.setQueries(a,e,{listeners:!1})},[a,e,m]);const k=g.some((y,O)=>Se(a[O],y))?g.flatMap((y,O)=>{const v=a[O];if(v){const A=new Ee(i,v);if(Se(v,y))return ne(v,A,o);Ye(y,c)&&ne(v,A,o)}return[]}):[];if(k.length>0)throw Promise.all(k);const b=g.find((y,O)=>{const v=a[O];return v&&Ke({result:y,errorResetBoundary:o,throwOnError:v.throwOnError,query:i.getQueryCache().get(v.queryHash)})});if(b!=null&&b.error)throw b.error;return f(w())}function vt(t,e,s){var w,x,k,b,y;const i=qe(),c=Ge(),o=Ve(),a=i.defaultQueryOptions(t);(x=(w=i.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||x.call(w,a),a._optimisticResults=c?"isRestoring":"optimistic",Xe(a),We(a,o),Je(o);const m=!i.getQueryCache().get(a.queryHash),[g]=E.useState(()=>new e(i,a)),f=g.getOptimisticResult(a);if(E.useSyncExternalStore(E.useCallback(O=>{const v=c?Ce:g.subscribe(Y.batchCalls(O));return g.updateResult(),v},[g,c]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),E.useEffect(()=>{g.setOptions(a,{listeners:!1})},[a,g]),Se(a,f))throw ne(a,g,o);if(Ke({result:f,errorResetBoundary:o,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash)}))throw f.error;if((b=(k=i.getDefaultOptions().queries)==null?void 0:k._experimental_afterQuery)==null||b.call(k,a,f),a.experimental_prefetchInRender&&!de&&Ye(f,c)){const O=m?ne(a,g,o):(y=i.getQueryCache().get(a.queryHash))==null?void 0:y.promise;O==null||O.catch(Ce).finally(()=>{g.updateResult()})}return a.notifyOnChangeProps?f:g.trackResult(f)}function Rt(t,e){return vt(t,Ee)}/**
|
|
* @license lucide-react v0.344.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const wt=Be("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
* @license lucide-react v0.344.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ot=Be("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);function jt({user:t,role:e,description:s}){return n.jsxs($.div,{whileHover:{y:-5},className:"bg-white/80 backdrop-blur-sm p-6 rounded-lg border border-gray-200",children:[n.jsxs("div",{className:"flex items-start gap-4",children:[n.jsx("img",{src:t.avatar_url,alt:`${t.login}'s avatar`,className:"w-16 h-16 rounded-full"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-gray-900",children:t.name||t.login}),n.jsx("p",{className:"text-sm text-cornflower-blue",children:e}),t.location&&n.jsxs("div",{className:"flex items-center gap-1 text-sm text-gray-500 mt-1",children:[n.jsx(lt,{className:"h-4 w-4"}),n.jsx("span",{children:t.location})]})]})]}),n.jsx("p",{className:"mt-4 text-gray-600",children:s}),n.jsxs("div",{className:"mt-4 flex items-center gap-4 text-sm text-gray-500",children:[n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(ht,{className:"h-4 w-4"}),n.jsxs("span",{children:[t.followers.toLocaleString()," followers"]})]}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(nt,{className:"h-4 w-4"}),n.jsxs("span",{children:[t.public_repos," repos"]})]})]}),n.jsx("a",{href:t.html_url,target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex items-center text-sm text-cornflower-blue hover:underline",children:"View GitHub Profile →"})]})}function Ct({repo:t}){return n.jsxs($.div,{whileHover:{y:-5,scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300},className:"bg-white/80 backdrop-blur-sm p-6 rounded-lg border border-gray-200 shadow-lg hover:shadow-xl transition-shadow duration-300",children:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:n.jsx("a",{href:t.html_url,target:"_blank",rel:"noopener noreferrer",className:"hover:text-cornflower-blue transition-colors","aria-label":`Visit ${t.name} repository`,children:t.name})}),t.description&&n.jsx("p",{className:"mt-2 text-gray-600 line-clamp-3",children:t.description}),n.jsxs("div",{className:"mt-4 flex items-center gap-6 text-sm text-gray-500",children:[t.language&&n.jsxs("span",{className:"flex items-center gap-1",children:[n.jsx("span",{className:"w-3 h-3 rounded-full bg-cornflower-blue","aria-hidden":"true"}),n.jsx("span",{children:t.language})]}),n.jsxs("span",{className:"flex items-center gap-1",children:[n.jsx(ut,{className:"h-5 w-5 text-yellow-500"}),n.jsx("span",{children:t.stargazers_count})]}),n.jsxs("span",{className:"flex items-center gap-1",children:[n.jsx(Ot,{className:"h-5 w-5 text-gray-600"}),n.jsx("span",{children:t.forks_count})]}),n.jsxs("span",{className:"flex items-center gap-1",children:[n.jsx(wt,{className:"h-5 w-5 text-gray-600"}),n.jsx("span",{children:ot(t.updated_at)})]})]})]})}const Ze="https://api.github.com";function St(t){const e=localStorage.getItem(t);if(!e)return!0;const{timestamp:s}=JSON.parse(e);return Date.now()-s>36e5}async function et(t,e){if(!St(e)){const o=localStorage.getItem(e);if(o)return console.log("Serving from cache"),JSON.parse(o).data}console.log("Fetching from GitHub API");const s=await fetch(t);if(!s.ok){const o=await s.json().catch(()=>({}));throw console.error(`GitHub API Error (${s.status}):`,o),new Error(`Failed to fetch data: ${s.statusText}`)}const i=await s.json(),c={data:i,timestamp:Date.now()};return localStorage.setItem(e,JSON.stringify(c)),i}async function Et(t){const e=`github-user-${t}`,s=`${Ze}/users/${t}`;return et(s,e)}async function Nt(t){const e=`github-org-repos-${t}`,s=`${Ze}/orgs/${t}/repos?sort=updated&per_page=100`;return et(s,e)}const he=[{username:"eshanized",role:"Lead Developer & Maintainer",description:"Leading the development of Snigdha OS core system and architecture"},{username:"d3v1l0n",role:"Co Maintainer & Tools Developer",description:"Managing security tools integration and package maintenance"},{username:"iconized",role:"Co Maintainer & Server Designer",description:"Managing security tools integration and package maintenance"},{username:"alokified",role:"Co Web Infrastructure Developer",description:"Managing security tools integration and package maintenance"},{username:"utkrshift",role:"DM/WM UI Moders",description:"Managing security tools integration and package maintenance"}];function Ft(){const t=yt({queries:he.map(a=>({queryKey:["github-user",a.username],queryFn:()=>Et(a.username)}))}),{data:e,isLoading:s,error:i}=Rt({queryKey:["github-repos","Snigdha-OS"],queryFn:()=>Nt("Snigdha-OS")}),c=t.some(a=>a.isLoading)||s,o=t.some(a=>a.isError)||i;return c?n.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:n.jsx(ct,{className:"h-8 w-8 animate-spin text-cornflower-blue"})}):o?n.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:n.jsx("p",{className:"text-red-500 text-lg font-semibold",children:"Oops! Something went wrong. Please try again later."})}):n.jsx("div",{className:"py-16 bg-gradient-to-b from-gray-50 to-gray-100",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-12",children:[n.jsxs($.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[n.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold text-gray-900",children:"Meet Our Team"}),n.jsxs("p",{className:"mt-4 text-lg md:text-xl text-gray-600",children:["The talented developers behind ",n.jsx("span",{className:"text-cornflower-blue font-semibold",children:"Snigdha OS"})]})]}),n.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-10",children:t.map((a,m)=>a.data&&n.jsx($.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:m*.2},className:"bg-white rounded-lg shadow-lg hover:shadow-xl transform hover:-translate-y-1 hover:scale-105 transition-all duration-300",children:n.jsx(jt,{user:a.data,role:he[m].role,description:he[m].description})},a.data.login))}),n.jsxs($.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"mt-20 text-center",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-semibold text-gray-900 mb-8",children:"Our Repositories"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10",children:e==null?void 0:e.map(a=>n.jsx($.div,{className:"bg-white rounded-lg shadow-lg hover:shadow-xl transform hover:-translate-y-1 hover:scale-105 transition-all duration-300",children:n.jsx(Ct,{repo:a})},a.id))})]})]})})}export{Ft as default};
|