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 De=t=>{throw TypeError(t)};var le=(t,e,s)=>e.has(t)||De("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)?De("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 Me,t as st,h as rt,k as it,l as Fe,m as Y,o as at,r as E,u as qe,c as ze,j as n,B as nt,q as ot,b as ct}from"../script.js";import{m as M}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,L,$,F,D,ee,G,V,P,H,U,W,d,X,fe,pe,me,ge,xe,be,ye,Be,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,L);p(this,$);p(this,F);p(this,D);p(this,ee);p(this,G);p(this,V);p(this,P);p(this,H);p(this,U);p(this,W,new Set);this.options=s,l(this,S,e),l(this,D,null),l(this,F,Te()),this.options.experimental_prefetchInRender||r(this,F).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),Ue(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&&_e(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))&&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,$,this.options),l(this,L,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 ke;const i=r(this,h),c=this.options,o=r(this,C),a=r(this,L),m=r(this,$),f=e!==i?e.state:r(this,Z),{state:R}=e;let x={...R},I=!1,b;if(s._optimisticResults){const j=this.hasListeners(),z=!j&&Ue(e,s),B=j&&_e(e,i,s,c);(z||B)&&(x={...x,...it(R.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=Fe(o==null?void 0:o.data,b,s),l(this,G,b),l(this,D,null)}catch(j){l(this,D,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((ke=r(this,V))==null?void 0:ke.state.data,r(this,V)):s.placeholderData,s.select&&j!==void 0)try{j=s.select(j),l(this,D,null)}catch(z){l(this,D,z)}j!==void 0&&(v="success",b=Fe(o==null?void 0:o.data,j,s),I=!0)}r(this,D)&&(y=r(this,D),b=r(this,G),O=Date.now(),v="error");const q=x.fetchStatus==="fetching",oe=v==="pending",ce=v==="error",Qe=oe&&q,Ie=b!==void 0,k={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:q,isRefetching:q&&!oe,isLoadingError:ce&&!Ie,isPaused:x.fetchStatus==="paused",isPlaceholderData:I,isRefetchError:ce&&Ie,isStale:Ne(e,s),refetch:this.refetch,promise:r(this,F)};if(this.options.experimental_prefetchInRender){const j=re=>{k.status==="error"?re.reject(k.error):k.data!==void 0&&re.resolve(k.data)},z=()=>{const re=l(this,F,k.promise=Te());j(re)},B=r(this,F);switch(B.status){case"pending":e.queryHash===i.queryHash&&j(B);break;case"fulfilled":(k.status==="error"||k.data!==B.value)&&z();break;case"rejected":(k.status!=="error"||k.error!==B.reason)&&z();break}}return k}updateResult(e){const s=r(this,C),i=this.createResult(r(this,h),this.options);if(l(this,L,r(this,h).state),l(this,$,this.options),r(this,L).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 R=f;return r(this,C)[R]!==s[R]&&g.has(R)})};(e==null?void 0:e.listeners)!==!1&&o()&&(c.listeners=!0),u(this,d,Be).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,L=new WeakMap,$=new WeakMap,F=new WeakMap,D=new WeakMap,ee=new WeakMap,G=new WeakMap,V=new WeakMap,P=new WeakMap,H=new WeakMap,U=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||!Me(e))return;const i=st(r(this,C).dataUpdatedAt,e)+1;l(this,P,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,U,e),!(de||T(this.options.enabled,r(this,h))===!1||!Me(r(this,U))||r(this,U)===0)&&l(this,H,setInterval(()=>{(this.options.refetchIntervalInBackground||rt.isFocused())&&u(this,d,X).call(this)},r(this,U)))},ge=function(){u(this,d,fe).call(this),u(this,d,me).call(this,u(this,d,pe).call(this))},xe=function(){r(this,P)&&(clearTimeout(r(this,P)),l(this,P,void 0))},be=function(){r(this,H)&&(clearInterval(r(this,H)),l(this,H,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))},Be=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 Ue(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 _e(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,A,K,Q,_,te,se,w,we,Re,ae,Oe,je,He,mt=(He=class extends Ae{constructor(e,s,i){super();p(this,w);p(this,J);p(this,N);p(this,A);p(this,K);p(this,Q);p(this,_);p(this,te);p(this,se);l(this,J,e),l(this,K,i),l(this,A,[]),l(this,Q,[]),l(this,N,[]),this.setQueries(s)}onSubscribe(){this.listeners.size===1&&r(this,Q).forEach(e=>{e.subscribe(s=>{u(this,w,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,A,e),l(this,K,s),Y.batch(()=>{const c=r(this,Q),o=u(this,w,ae).call(this,r(this,A));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,R)=>f!==c[R]);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(R=>{u(this,w,Oe).call(this,f,R)})}),u(this,w,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,w,ae).call(this,e).map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[c,o=>u(this,w,Re).call(this,o??c,s),()=>u(this,w,we).call(this,c,e)]}},J=new WeakMap,N=new WeakMap,A=new WeakMap,K=new WeakMap,Q=new WeakMap,_=new WeakMap,te=new WeakMap,se=new WeakMap,w=new WeakSet,we=function(e,s){const i=u(this,w,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)})})})},Re=function(e,s){return s?((!r(this,_)||r(this,N)!==r(this,se)||s!==r(this,te))&&(l(this,te,s),l(this,se,r(this,N)),l(this,_,at(r(this,_),s(e)))),r(this,_)):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,w,je).call(this))},je=function(){var e;if(this.hasListeners()){const s=r(this,_),i=u(this,w,Re).call(this,u(this,w,we).call(this,r(this,N),r(this,A)),(e=r(this,K))==null?void 0:e.combine);s!==i&&Y.batch(()=>{this.listeners.forEach(c=>{c(r(this,N))})})}},He),$e=E.createContext(!1),Ge=()=>E.useContext($e);$e.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,R]=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 I=g.some((y,O)=>Se(a[O],y))?g.flatMap((y,O)=>{const v=a[O];if(v){const q=new Ee(i,v);if(Se(v,y))return ne(v,q,o);Ye(y,c)&&ne(v,q,o)}return[]}):[];if(I.length>0)throw Promise.all(I);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(R())}function vt(t,e,s){var R,x,I,b,y;const i=qe(),c=Ge(),o=Ve(),a=i.defaultQueryOptions(t);(x=(R=i.getDefaultOptions().queries)==null?void 0:R._experimental_beforeQuery)==null||x.call(R,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=(I=i.getDefaultOptions().queries)==null?void 0:I._experimental_afterQuery)==null||b.call(I,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 wt(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 Rt=ze("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=ze("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(M.div,{whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},className:"bg-white shadow-lg rounded-lg p-6 border border-gray-200 flex flex-col justify-between",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 border-2 border-cornflower-blue"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-gray-900 text-lg",children:t.name||t.login}),n.jsx("p",{className:"text-sm text-cornflower-blue font-medium",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 flex-grow",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 transition-colors duration-200",children:"View GitHub Profile →"})]})}function Ct({repo:t}){return n.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},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(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[n.jsx(ut,{className:"h-5 w-5 text-yellow-500"}),n.jsx("span",{children:t.stargazers_count})]}),n.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[n.jsx(Ot,{className:"h-5 w-5 text-gray-600"}),n.jsx("span",{children:t.forks_count})]}),n.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[n.jsx(Rt,{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:"Oversees the development and maintenance of the Snigdha OS core system, ensuring a robust and scalable architecture."},{username:"d3v1l0n",role:"Co-Maintainer & Tools Developer",description:"Specializes in integrating security tools and maintaining critical packages for enhanced system functionality."},{username:"iconized",role:"Co-Maintainer & Server Designer",description:"Focuses on designing and optimizing server infrastructures for seamless tool integration and performance."},{username:"alokified",role:"Web Infrastructure Developer",description:"Develops and maintains the web infrastructure, ensuring efficient and secure online operations."},{username:"utkrshift",role:"UI/UX Designer for DM/WM",description:"Leads the design and customization of desktop and window manager interfaces to enhance user experience."}];function Ut(){const t=yt({queries:he.map(a=>({queryKey:["github-user",a.username],queryFn:()=>Et(a.username)}))}),{data:e,isLoading:s,error:i}=wt({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(M.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(M.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(M.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(M.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{Ut as default};
|