@deslop/auth 0.1.1291 → 0.1.1298

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-Bb0eB7X2.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/react-COyt-gOi.js","assets/utils-BhpMxGDd.js","assets/effect-BoshK8vr.js","assets/utils-yoDDCVmb.js","assets/route-Dwo4xLOk.js","assets/with-selector-CNqpWp5s.js","assets/components-Bc92YUqV.js","assets/reason-parts-Bo_ub0bo.js","assets/(home)-DWAshhW6.js","assets/people-Cflemnpx.js"])))=>i.map(i=>d[i]);
2
+ import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{Da as t,Do as n,En as r,La as i,Q as a,Qa as o,_i as s,bo as c,no as l,oo as u,uo as d,wo as f}from"./effect-BoshK8vr.js";import{$ as p,F as ee,I as te,J as ne,Q as m,Z as h,et as g,t as re}from"./utils-BhpMxGDd.js";import{a as ie,o as ae,r as oe}from"./react-COyt-gOi.js";import{c as se,d as ce,f as _,h as le,i as v,m as y,n as b,o as x,p as S,s as ue,t as de}from"./route-Dwo4xLOk.js";function fe({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function pe(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var C=[],w=0,{link:T,unlink:me,propagate:he,checkDirty:E,shallowPropagate:D}=fe({update(e){return e._update()},notify(e){C[k++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,M(e))}}),O=0,k=0,A,j=0;function ge(e){try{++j,e()}finally{--j||N()}}function M(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=me(n,e)}function N(){if(!(j>0)){for(;O<k;){let e=C[O];C[O++]=void 0,e.notify()}O=0,k=0}}function P(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return A!==void 0&&T(i,A,w),i._snapshot},subscribe(e){let t=pe(e),n={current:!1},r=F(()=>{i.get(),n.current?(A=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=A,o=t?.compare??Object.is;if(n)A=i,++w,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{A=a,n&&(i.flags&=-5),M(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&E(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&D(e)}}else e&32&&(i.flags=e&-33);return A!==void 0&&T(i,A,w),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(he(e),D(e),N())}},i}function F(e){let t=()=>{let t=A;A=n,++w,n.depsTail=void 0,n.flags=6;try{return e()}finally{A=t,n.flags&=-5,M(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&E(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,M(this)}};return t(),n}function I(e){return e=>{let t=b(e);return t.isRoot=!1,t}}var L=e(ae(),1);function R(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(le(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(p)p(a());else throw a()}return L.createElement(r,e)};return o.preload=a,o}var z=ie(),B=class extends L.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?L.createElement(this.props.errorComponent??_e,{error:e[0],reset:this.reset}):this.props.children}};function _e({error:e}){let[t,n]=L.useState(!1);return(0,z.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,z.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,z.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,z.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,z.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,z.jsx)(`div`,{children:(0,z.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,z.jsx)(`code`,{children:e.message}):null})}):null]})}var V=()=>!0,ve=()=>!1;function ye({children:e,fallback:t=null}){return(0,z.jsx)(L.Fragment,{children:be()?e:t})}function be(e=!0){return L.useSyncExternalStore(xe,V,e?ve:V)}function xe(){return()=>{}}function Se(e){let t=h(),n=`not-found-${v(t.stores.location,e=>e.pathname)}-${v(t.stores.status)}`;return(0,z.jsx)(B,{getResetKey:()=>n,onCatch:(t,n)=>{if(_(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(_(t))return e.fallback?.(t);throw t},children:e.children})}function Ce(){return(0,z.jsx)(`p`,{children:`Not Found`})}function H(e,t,n){return t.options.notFoundComponent?(0,z.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,z.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,z.jsx)(Ce,{})}function U(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,z.jsx)(n,{}):null}var we=(e,t)=>e[0]===t[0]&&e[1]===t[1],W=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,G=L.memo(function({routeId:e}){let t=h(),n=t.stores.getMatchStore(e);return Te(t,v(n))});function Te(e,t){let n=e.routesById[t.routeId],r=U(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=W(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,z.jsx)(Ee,{match:t});s&&(l=(0,z.jsx)(ye,{fallback:r,children:l})),o&&(l=(0,z.jsx)(Se,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return L.createElement(o,e)},children:l})),i&&(l=(0,z.jsx)(B,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(_(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,z.jsx)(L.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,z.jsx)(x.Provider,{value:t.routeId,children:(0,z.jsxs)(u,{children:[l,null]})}):(0,z.jsxs)(x.Provider,{value:t.routeId,children:[l,null]})}var Ee=L.memo(function({match:e}){let t=h(),n=e.routeId,r=t.routesById[n],i=L.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=L.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,z.jsx)(e,{},i):(0,z.jsx)(K,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!W(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return U(t,r)}if(e.status===`notFound`)return H(t,r,e.error);if(e.status===`error`)throw e.error;return a}),K=L.memo(function(){let e=h(),t=L.useContext(x),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=v(a,e=>[!!e._notFound,e.error],{compare:we}),i=v(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return H(e,e.routesById[t],r);if(!i)return null;let a=(0,z.jsx)(G,{routeId:i});return t===`__root__`?(0,z.jsx)(L.Suspense,{fallback:U(e),children:a}):a});function q(e,t){let n=e[1];e.length=0,n?.(t)}function De({t:e}){let t=h(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{q(n,!1),n.push(i,a),e(t),L.startTransition(r)}),g(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(S(r.publicHref)!==S(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...se(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function Oe(){let e=h(),t=e.routesById[ce],n=U(e,t),r=(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(De,{t:L.useState()[1]}),e.ssr?(0,z.jsx)(J,{}):(0,z.jsx)(L.Suspense,{fallback:n,children:(0,z.jsx)(J,{})})]});return e.options.InnerWrap?(0,z.jsx)(e.options.InnerWrap,{children:r}):r}function J(){let e=h(),t=e._rendered,n=v(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;g(()=>{t[0]===n&&q(t,!0)},[t,n]);let a=i?(0,z.jsx)(G,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,z.jsx)(B,{getResetKey:()=>r,onCatch:void 0,children:a})}function ke(){let e=h();return L.useCallback(t=>{let{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a,...o}=t;return e.matchRoute(o,{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a})},[e,v(e.stores.location,e=>e.href),v(e.stores.resolvedLocation,e=>e?.href),v(e.stores.status)])}var Ae=e=>({createMutableStore:P,createReadonlyStore:P,batch:ge}),je=e=>new Me(e),Me=class extends ue{constructor(e){super(e,Ae)}};function Ne({router:e,children:t,...n}){y(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,z.jsx)(m.Provider,{value:e,children:t});return e.options.Wrap?(0,z.jsx)(e.options.Wrap,{children:r}):r}function Pe({router:e,...t}){return(0,z.jsx)(Ne,{router:e,...t,children:(0,z.jsx)(Oe,{})})}var Fe=oe(),Y=new WeakSet;function Ie(e){let r=document.querySelector(`#root`);if(c(r))throw TypeError(`Missing application mount element with id "root"`);let p=je({context:{},defaultErrorComponent:te,defaultNotFoundComponent:ee,defaultPreload:`intent`,routeTree:e,scrollRestoration:!0}),m=a();function h(e,r,a){if(f(e)){if(Y.has(e))return;Y.add(e)}m.set(ne,{error:e,route:n(t(p.state.matches,t=>t.error===e),d(()=>i(p.state.matches)),o(e=>u(e.routeId,s)),l(()=>`__root__`)),source:r,stack:a})}return p.update({defaultOnCatch:(e,t)=>h(e,`route`,t.componentStack)}),(0,Fe.createRoot)(r,{onCaughtError:(e,t)=>h(e,`caught`,t.componentStack),onUncaughtError:(e,t)=>h(e,`uncaught`,t.componentStack)}).render((0,z.jsx)(L.StrictMode,{children:(0,z.jsx)(Pe,{router:p})})),p}var X=de({shellComponent:e=>(0,z.jsx)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:e.children})}),Z=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Le=function(e){return`/`+e},Re={},ze=function(e){return e.pathname.endsWith(`.css`)},Be=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Q=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Le(t,n);let r=s(t),i=ze(r);return Be(Re,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:Z,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Ve=I(`/(home)`)({component:R(()=>Q(()=>import(`./route-Bb0eB7X2.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),`component`),validateSearch:r(re)}),He=I(`/(home)/`)({component:R(()=>Q(()=>import(`./(home)-DWAshhW6.js`),__vite__mapDeps([10,1,2,3,4,5,9,6,7,8])),`component`)}),Ue=I(`/(home)/people`)({component:R(()=>Q(()=>import(`./people-Cflemnpx.js`),__vite__mapDeps([11,1,2,3,4,5,8])),`component`)}),$=Ve.update({id:`/(home)`,getParentRoute:()=>X}),We=He.update({id:`/`,path:`/`,getParentRoute:()=>$}),Ge={homePeopleRoute:Ue.update({id:`/people`,path:`/people`,getParentRoute:()=>$}),homeIndexRoute:We},Ke={homeRouteRoute:$._addFileChildren(Ge)};Ie(X._addFileChildren(Ke)._addFileTypes());export{ke as n,K as r,Q as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,n,o as r}from"./react-COyt-gOi.js";import{B as i,L as a,M as o,P as s,W as c,Y as l,a as u,n as d,y as f}from"./utils-BhpMxGDd.js";import{Do as p,Ra as m,Sa as h,Xa as g,lt as _,nr as v,tr as y,za as b}from"./effect-BoshK8vr.js";import{z as x}from"./utils-yoDDCVmb.js";import{_ as S,c as C,d as w,f as T,l as E,p as D,r as O,s as k,t as A,u as j}from"./components-Bc92YUqV.js";var M=e(r(),1),N=new Map([[`bold`,M.createElement(M.Fragment,null,M.createElement(`path`,{d:`M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204Z`}))],[`duotone`,M.createElement(M.Fragment,null,M.createElement(`path`,{d:`M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z`,opacity:`0.2`}),M.createElement(`path`,{d:`M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z`}))],[`fill`,M.createElement(M.Fragment,null,M.createElement(`path`,{d:`M224,56v56c0,52.72-25.52,84.67-46.93,102.19-23.06,18.86-46,25.27-47,25.53a8,8,0,0,1-4.2,0c-1-.26-23.91-6.67-47-25.53C57.52,196.67,32,164.72,32,112V56A16,16,0,0,1,48,40H208A16,16,0,0,1,224,56Z`}))],[`light`,M.createElement(M.Fragment,null,M.createElement(`path`,{d:`M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z`}))],[`regular`,M.createElement(M.Fragment,null,M.createElement(`path`,{d:`M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z`}))],[`thin`,M.createElement(M.Fragment,null,M.createElement(`path`,{d:`M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z`}))]]),P=M.forwardRef((e,t)=>M.createElement(x,{ref:t,...e,weights:N}));P.displayName=`ShieldIcon`;var F=new Map([[`bold`,M.createElement(M.Fragment,null,M.createElement(`path`,{d:`M125.18,156.94a64,64,0,1,0-82.36,0,100.23,100.23,0,0,0-39.49,32,12,12,0,0,0,19.35,14.2,76,76,0,0,1,122.64,0,12,12,0,0,0,19.36-14.2A100.33,100.33,0,0,0,125.18,156.94ZM44,108a40,40,0,1,1,40,40A40,40,0,0,1,44,108Zm206.1,97.67a12,12,0,0,1-16.78-2.57A76.31,76.31,0,0,0,172,172a12,12,0,0,1,0-24,40,40,0,1,0-10.3-78.67,12,12,0,1,1-6.16-23.19,64,64,0,0,1,57.64,110.8,100.23,100.23,0,0,1,39.49,32A12,12,0,0,1,250.1,205.67Z`}))],[`duotone`,M.createElement(M.Fragment,null,M.createElement(`path`,{d:`M136,108A52,52,0,1,1,84,56,52,52,0,0,1,136,108Z`,opacity:`0.2`}),M.createElement(`path`,{d:`M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z`}))],[`fill`,M.createElement(M.Fragment,null,M.createElement(`path`,{d:`M164.47,195.63a8,8,0,0,1-6.7,12.37H10.23a8,8,0,0,1-6.7-12.37,95.83,95.83,0,0,1,47.22-37.71,60,60,0,1,1,66.5,0A95.83,95.83,0,0,1,164.47,195.63Zm87.91-.15a95.87,95.87,0,0,0-47.13-37.56A60,60,0,0,0,144.7,54.59a4,4,0,0,0-1.33,6A75.83,75.83,0,0,1,147,150.53a4,4,0,0,0,1.07,5.53,112.32,112.32,0,0,1,29.85,30.83,23.92,23.92,0,0,1,3.65,16.47,4,4,0,0,0,3.95,4.64h60.3a8,8,0,0,0,7.73-5.93A8.22,8.22,0,0,0,252.38,195.48Z`}))],[`light`,M.createElement(M.Fragment,null,M.createElement(`path`,{d:`M112.6,158.43a58,58,0,1,0-57.2,0A93.83,93.83,0,0,0,5.21,196.72a6,6,0,0,0,10.05,6.56,82,82,0,0,1,137.48,0,6,6,0,0,0,10-6.56A93.83,93.83,0,0,0,112.6,158.43ZM38,108a46,46,0,1,1,46,46A46.06,46.06,0,0,1,38,108Zm211,97a6,6,0,0,1-8.3-1.74A81.8,81.8,0,0,0,172,166a6,6,0,0,1,0-12,46,46,0,1,0-17.08-88.73,6,6,0,1,1-4.46-11.14,58,58,0,0,1,50.14,104.3,93.83,93.83,0,0,1,50.19,38.29A6,6,0,0,1,249,205Z`}))],[`regular`,M.createElement(M.Fragment,null,M.createElement(`path`,{d:`M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z`}))],[`thin`,M.createElement(M.Fragment,null,M.createElement(`path`,{d:`M107.19,159a56,56,0,1,0-46.38,0A91.83,91.83,0,0,0,6.88,197.81a4,4,0,1,0,6.7,4.37,84,84,0,0,1,140.84,0,4,4,0,1,0,6.7-4.37A91.83,91.83,0,0,0,107.19,159ZM36,108a48,48,0,1,1,48,48A48.05,48.05,0,0,1,36,108Zm212,95.35a4,4,0,0,1-5.53-1.17A83.81,83.81,0,0,0,172,164a4,4,0,0,1,0-8,48,48,0,1,0-17.82-92.58,4,4,0,1,1-3-7.43,56,56,0,0,1,44,103,91.83,91.83,0,0,1,53.93,38.86A4,4,0,0,1,248,203.35Z`}))]]),I=M.forwardRef((e,t)=>M.createElement(x,{ref:t,...e,weights:F}));I.displayName=`UsersIcon`;var L=n(),R=t();function z(e){let t=(0,L.c)(21),n;t[0]!==e.person.id||t[1]!==e.person.name?(n=(0,R.jsx)(w,{children:(0,R.jsx)(A,{id:e.person.id,name:e.person.name,small:!0})}),t[0]=e.person.id,t[1]=e.person.name,t[2]=n):n=t[2];let r=e.person.fullName??e.person.name,i;t[3]===r?i=t[4]:(i=(0,R.jsx)(T,{children:r}),t[3]=r,t[4]=i);let a;t[5]!==e.person.fullName||t[6]!==e.person.name?(a=e.person.fullName!==void 0&&(0,R.jsxs)(j,{children:[`@`,e.person.name]}),t[5]=e.person.fullName,t[6]=e.person.name,t[7]=a):a=t[7];let o;t[8]===e.person.role?o=t[9]:(o=e.person.role===`Admin`&&(0,R.jsx)(P,{role:`img`,"aria-label":`Admin`,className:`text-primary size-4 shrink-0 self-center`}),t[8]=e.person.role,t[9]=o);let s;t[10]!==i||t[11]!==a||t[12]!==o?(s=(0,R.jsxs)(E,{children:[i,a,o]}),t[10]=i,t[11]=a,t[12]=o,t[13]=s):s=t[13];let c;t[14]!==e.children||t[15]!==n||t[16]!==s?(c=(0,R.jsxs)(k,{size:`row`,children:[n,s,e.children]}),t[14]=e.children,t[15]=n,t[16]=s,t[17]=c):c=t[17];let l;return t[18]!==e.footer||t[19]!==c?(l=(0,R.jsxs)(`div`,{role:`listitem`,children:[c,e.footer]}),t[18]=e.footer,t[19]=c,t[20]=l):l=t[20],l}function B(e){let t=(0,L.c)(25),n;t[0]===e.person.id?n=t[1]:(n=u(e.person.id),t[0]=e.person.id,t[1]=n);let[r,o]=i(n),s=e.person,c;t[2]===r?c=t[3]:(c=(0,R.jsx)(S,{result:r,className:`mb-2 ml-9`}),t[2]=r,t[3]=c);let l;t[4]===r?l=t[5]:(l=_(r),t[4]=r,t[5]=l);let d;t[6]===o?d=t[7]:(d=()=>o(!1),t[6]=o,t[7]=d);let f;t[8]!==l||t[9]!==d?(f=(0,R.jsx)(a,{variant:`outline`,size:`xs`,disabled:l,onClick:d,children:`Decline`}),t[8]=l,t[9]=d,t[10]=f):f=t[10];let p;t[11]===r?p=t[12]:(p=_(r),t[11]=r,t[12]=p);let m;t[13]===o?m=t[14]:(m=()=>o(!0),t[13]=o,t[14]=m);let h;t[15]!==p||t[16]!==m?(h=(0,R.jsx)(a,{size:`xs`,disabled:p,onClick:m,children:`Allow`}),t[15]=p,t[16]=m,t[17]=h):h=t[17];let g;t[18]!==f||t[19]!==h?(g=(0,R.jsxs)(C,{children:[f,h]}),t[18]=f,t[19]=h,t[20]=g):g=t[20];let v;return t[21]!==e.person||t[22]!==c||t[23]!==g?(v=(0,R.jsx)(z,{person:s,footer:c,children:g}),t[21]=e.person,t[22]=c,t[23]=g,t[24]=v):v=t[24],v}function V(e){let t=(0,L.c)(4),n;t[0]===e.since?n=t[1]:(n=p(v(e.since),y({month:`short`,year:`numeric`})),t[0]=e.since,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,R.jsx)(C,{children:(0,R.jsx)(`span`,{className:`text-muted-foreground w-16 shrink-0 text-right font-mono text-xs whitespace-nowrap tabular-nums`,children:n})}),t[2]=n,t[3]=r),r}function H(e){let t=(0,L.c)(5),n;t[0]===e.person.since?n=t[1]:(n=(0,R.jsx)(V,{since:e.person.since}),t[0]=e.person.since,t[1]=n);let r;return t[2]!==e.person||t[3]!==n?(r=(0,R.jsx)(z,{person:e.person,children:n}),t[2]=e.person,t[3]=n,t[4]=r):r=t[4],r}function U(){let e=(0,L.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,R.jsx)(s,{atom:f,children:W}),e[0]=t):t=e[0],t}function W(e){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`h1`,{className:`sr-only`,children:`People`}),b(e,{onEmpty:q,onNonEmpty:G})]})}function G(e){return(0,R.jsx)(D,{size:`list`,children:(0,R.jsx)(`div`,{role:`list`,"aria-label":`People`,children:m(e,K)})})}function K(e){return h(e.role===`Waiting`,{onFalse:()=>(0,R.jsx)(H,{person:e},e.id),onTrue:()=>(0,R.jsx)(B,{person:e},e.id)})}function q(){return(0,R.jsx)(o,{label:`No one yet`,icon:(0,R.jsx)(I,{className:`size-5`,weight:`light`})})}function J(){let e=(0,L.c)(2);if(!g(c(d).value,Y)){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,R.jsx)(l,{to:`/`}),e[0]=t):t=e[0],t}let t;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,R.jsx)(M.Suspense,{fallback:(0,R.jsx)(O,{}),children:(0,R.jsx)(U,{})}),e[1]=t):t=e[1],t}function Y(e){return e.role===`Admin`}export{J as component};