PageSourceSearch

https://armes.ai/_next/static/chunks/76908-349e988e55831e12.js

js armes.ai collected 2026-10-05 13:51:38 UTC 23,398 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[76908],{4538:(e,t,a)=>{a.d(t,{k:()=>n});var r=a(12115);let s=(e,t)=>{let a=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(a.size!==r.size)return!1;for(let[e,t]of a)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0};function n(e){let t=r.useRef(void 0);return a=>{let r=e(a);return!function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;if(Symbol.iterator in e&&Symbol.iterator in t){if("entries"in e&&"entries"in t)return s(e,t);let a=e[Symbol.iterator](),r=t[Symbol.iterator](),n=a.next(),i=r.next();for(;!n.done&&!i.done;){if(!Object.is(n.value,i.value))return!1;n=a.next(),i=r.next()}return!!n.done&&!!i.done}return s({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}(t.current,r)?t.current=r:t.current}}},9540:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},11047:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("sticky-note",[["path",{d:"M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z",key:"qazsjp"}],["path",{d:"M15 3v4a2 2 0 0 0 2 2h4",key:"40519r"}]])},11362:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("shield-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]])},13406:(e,t,a)=>{a.d(t,{Xi:()=>c,av:()=>d,j7:()=>o,tU:()=>l});var r=a(95155),s=a(12115),n=a(25667),i=a(64269);let l=n.bL,o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.B8,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center gap-3 rounded-2xl p-1.5","bg-mzma-glass/20 backdrop-blur-sm border border-mzma-glass-light",a),...s})});o.displayName=n.B8.displayName;let c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.l9,{ref:t,className:(0,i.cn)("px-6 py-2.5 rounded-xl text-sm font-medium transition-all duration-300","data-[state=active]:mzma-gradient data-[state=active]:text-white data-[state=active]:shadow-lg data-[state=active]:shadow-mzma-purple/25","data-[state=inactive]:bg-mzma-glass data-[state=inactive]:text-gray-400 data-[state=inactive]:hover:bg-mzma-glass-dark data-[state=inactive]:hover:text-white","data-[state=inactive]:border data-[state=inactive]:border-mzma-glass-light",a),...s})});c.displayName=n.l9.displayName;let d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.UC,{ref:t,className:(0,i.cn)("mt-6 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mzma-purple focus-visible:ring-offset-2","transition-all duration-300",a),...s})});d.displayName=n.UC.displayName},20017:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},24573:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("user-minus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]])},25667:(e,t,a)=>{a.d(t,{B8:()=>M,UC:()=>E,bL:()=>q,l9:()=>S});var r=a(12115),s=a(92556),n=a(3468),i=a(72431),l=a(76842),o=a(88142),c=a(66218),d=a(23558),u=a(68946),h=a(95155),m="Tabs",[x,p]=(0,n.A)(m,[i.RG]),y=(0,i.RG)(),[f,v]=x(m),j=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:r,onValueChange:s,defaultValue:n,orientation:i="horizontal",dir:l,activationMode:x="automatic",...p}=e,y=(0,c.jH)(l),[v,j]=(0,d.i)({prop:r,onChange:s,defaultProp:null!=n?n:"",caller:m});return(0,h.jsx)(f,{scope:a,baseId:(0,u.B)(),value:v,onValueChange:j,orientation:i,dir:y,activationMode:x,children:(0,h.jsx)(o.sG.div,{dir:y,"data-orientation":i,...p,ref:t})})});j.displayName=m;var b="TabsList",g=r.forwardRef((e,t)=>
1{let{__scopeTabs:a,loop:r=!0,...s}=e,n=v(b,a),l=y(a);return(0,h.jsx)(i.bL,{asChild:!0,...l,orientation:n.orientation,dir:n.dir,loop:r,children:(0,h.jsx)(o.sG.div,{role:"tablist","aria-orientation":n.orientation,...s,ref:t})})});g.displayName=b;var k="TabsTrigger",N=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:r,disabled:n=!1,...l}=e,c=v(k,a),d=y(a),u=A(c.baseId,r),m=z(c.baseId,r),x=r===c.value;return(0,h.jsx)(i.q7,{asChild:!0,...d,focusable:!n,active:x,children:(0,h.jsx)(o.sG.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":m,"data-state":x?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:u,...l,ref:t,onMouseDown:(0,s.mK)(e.onMouseDown,e=>{n||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(r)}),onKeyDown:(0,s.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(r)}),onFocus:(0,s.mK)(e.onFocus,()=>{let e="manual"!==c.activationMode;x||n||!e||c.onValueChange(r)})})})});N.displayName=k;var w="TabsContent",C=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:s,forceMount:n,children:i,...c}=e,d=v(w,a),u=A(d.baseId,s),m=z(d.baseId,s),x=s===d.value,p=r.useRef(x);return r.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.jsx)(l.C,{present:n||x,children:a=>{let{present:r}=a;return(0,h.jsx)(o.sG.div,{"data-state":x?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:m,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&i})}})});function A(e,t){return"".concat(e,"-trigger-").concat(t)}function z(e,t){return"".concat(e,"-content-").concat(t)}C.displayName=w;var q=j,M=g,S=N,E=C},25978:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("arrow-up-narrow-wide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]])},47321:(e,t,a)=>{a.d(t,{b:()=>d});var r=a(12115);a(47650);var s=a(32467),n=a(95155),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let a=(0,s.TL)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:s,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(s?a:t,{...i,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),l="horizontal",o=["horizontal","vertical"],c=r.forwardRef((e,t)=>{var a;let{decorative:r,orientation:s=l,...c}=e,d=(a=s,o.includes(a))?s:l;return(0,n.jsx)(i.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...c,ref:t})});c.displayName="Separator";var d=c},70532:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},80003:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},80501:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("user-x",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]])},84853:(e,t,a)=>{a.d(t,{$:()=>G});var r=a(95155),s=a(12115),n=a(4538),i=a(46170),l=a(58781),o=a(85897),c=a(10817),d=a(64269);function u(e){let{profile:t,subtitle:a,actions:s,className:n}=e,i=(t.username||t.handle||"?").charAt(0).toUpperCase();return(0,r.jsxs)("div",{className:(0,d.cn)(c.qz.card,"flex items-center gap-3 px-4 py-3.5",n),children:[(0,r.jsxs)(o.eu,{className:"h-11 w-11 shrink-0 ring-2 ring-border/30",children:[t.avatarUrl&&(0,r.jsx)(o.BK,{src:t.avatarUrl,alt:"".concat(t.username,"'s avatar")}),(0,r.jsx)(o.q5,{className:"bg-primary/15 text-sm font-semibold text-primary",children:i})]}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"truncate text-sm font-semibold tracking-tight text-foreground",children:t.username}),(0,r.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:null!=a?a:"@".concat(t.handle)})]}),s&&(0,r.jsx)("div",{className:"flex shrink-0 items-center gap-1.5",children:s})]})}var h=a(67e3),m=a(11647),x=a(3998),p=a(65142),y=a(13406),f=a(98053),v=a(1275),j=a(82021),b=a(86651),g=a(5917),k=a(17181),N=a(35299),w=a(96583),C=a(26983),A=a(18756),z=a(23664),q=a(5937),M=a(91169),S=a(80501),E=a(24573),R=a(65229),I=a(11362),$=a(25496),F=a(59289),_=a(27838),O=a(28667),U=a(16965),L=a(2675),T=a(35369);function B(e){let{className:t,children:a,...s}=e;return(0,r.jsx)("button",{type:"button",className:(0,d.cn)("inline-flex shrink-0 items-center gap-1.5 rounded-full border px-3.5 py-2 text-xs font-medium transition-all","border-transparent bg-muted/30 text-muted-foreground hover:border-border/40 hover:bg-muted/50 hover:text-foreground","data-[state=active]:border-primary/40 data-[state=active]:bg-primary/15 data-[state=active]:text-primary data-[state=active]:shadow-sm data-[state=active]:shadow-primary/10",t),...s,children:a})}function D(e){let{isActive:t,onClick:a,children:s}=e;return(0,r.jsx)("button",{type:"button",onClick:a,className:(0,d.cn)("inline-flex shrink-0 items-center gap-1.5 rounded-full border px-3.5 py-2 text-xs font-medium transition-all",t?"border-primary/40 bg-primary/15 text-primary shadow-sm shadow-primary/10":"border-transparent bg-muted/30 text-muted-foreground hover:border-border/40 hover:bg-muted/50 hover:text-foreground"),children:s})}function K(e){let{query:t,mode:a}=e,{handle:n}=(0,F.x)(),{referralCode:i,shareUrl:l}=(0,_.K)(),{toast:o}
1=(0,j.dj)(),[u,m]=(0,s.useState)(!1),p="handle"===a?"@".concat(t.replace(/^@/,"")):t,y=(0,s.useCallback)(async()=>{let e=(0,T.iS)({handle:n,referralCode:i,shareUrl:l}),t=await (0,T.j$)(e,l);t.success&&(m(!0),"clipboard"===t.method&&o({title:"Invite copied!",description:i?"Includes your referral link — they'll get $10 off.":"Share it to get them on ARMES."}),setTimeout(()=>m(!1),2500))},[n,i,l,o]);return(0,r.jsx)(h._,{children:(0,r.jsxs)("div",{className:(0,d.cn)(c.qz.dashedEmpty,"space-y-4 px-6 py-10 text-center"),children:[(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-muted/40 ring-1 ring-border/30",children:(0,r.jsx)(b.A,{className:"h-5 w-5 text-primary/80"})})}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)("p",{className:"text-sm font-semibold tracking-tight text-foreground",children:["No match for ",p]}),(0,r.jsxs)("p",{className:"mx-auto max-w-xs text-xs leading-relaxed text-muted-foreground",children:["Either the ","handle"===a?"handle":"email"," doesn't exist, or that person hasn't made themselves findable yet."]})]}),(0,r.jsxs)("div",{className:"space-y-2.5",children:[(0,r.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Ask them to check ",(0,r.jsx)("span",{className:"font-medium text-foreground/80",children:"Settings → People → Discoverability"})]}),(0,r.jsxs)(x.$,{variant:"outline",size:"sm",className:(0,d.cn)("h-8 gap-1.5 text-xs",i&&"border-emerald-500/30 hover:border-emerald-500/50 hover:bg-emerald-500/5"),onClick:y,children:[u?(0,r.jsx)(g.A,{className:"h-3.5 w-3.5 text-emerald-500"}):(0,r.jsx)(k.A,{className:"h-3.5 w-3.5"}),u?"Shared!":i?"Invite them (they get $10 off)":"Send them an invite"]})]})]})})}function P(){let{toast:e}=(0,j.dj)(),t=(0,U.s)(e=>e.lookup),a=(0,U.s)(e=>
1e.sendRequest),[n,i]=(0,s.useState)("handle"),[l,o]=(0,s.useState)(""),[y,f]=(0,s.useState)(!1),[v,k]=(0,s.useState)(!1),[q,M]=(0,s.useState)(null),[S,E]=(0,s.useState)(!1),R=(0,s.useCallback)(async()=>{let a=l.trim();if(a&&!y){f(!0),M(null);try{let e=await t("handle"===n?{handle:a.replace(/^@/,"")}:{email:a});if(e.error)throw Error(e.error);M(e),E(!0)}catch(t){e({title:"Lookup failed",description:t instanceof Error?t.message:"Lookup failed.",variant:"destructive"})}finally{f(!1)}}},[l,n,y,t,e]),I=(0,s.useCallback)(async()=>{if((null==q?void 0:q.profile)&&!v){k(!0);try{await a(q.profile.userId),M({...q,relationship:"outgoing_pending"}),e({title:"Request sent",description:"Connection request sent to ".concat(q.profile.username,".")})}catch(t){e({title:"Request failed",description:t instanceof Error?t.message:"Failed to send request.",variant:"destructive"})}finally{k(!1)}}},[q,v,a,e]),$=(()=>{if(!(null==q?void 0:q.profile))return null;switch(q.relationship){case"none":return(0,r.jsx)(x.$,{size:"sm",className:"bg-primary text-primary-foreground hover:bg-primary/90",onClick:I,disabled:v,children:v?(0,r.jsx)(N.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.A,{className:"mr-1.5 h-4 w-4"})," Connect"]})});case"outgoing_pending":return(0,r.jsxs)(m.E,{variant:"secondary",children:[(0,r.jsx)(C.A,{className:"mr-1 h-3 w-3"})," Requested"]});case"incoming_pending":return(0,r.jsx)(m.E,{variant:"secondary",children:"Check your requests"});case"accepted":return(0,r.jsxs)(m.E,{variant:"secondary",children:[(0,r.jsx)(g.A,{className:"mr-1 h-3 w-3"})," Connected"]});case"blocked_by_me":return(0,r.jsx)(m.E,{variant:"destructive",children:"Blocked"});case"self":return(0,r.jsx)(m.E,{variant:"secondary",children:"This is you"});default:return null}})();return(0,r.jsxs)("div",{className:(0,d.cn)(c.qz.panel,"space-y-4 p-4"),children:[(0,r.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,r.jsxs)(D,{isActive:"handle"===n,onClick:()=>{i("handle"),M(null),E(!1)},children:[(0,r.jsx)(A.A,{className:"h-3.5 w-3.5"})," Handle"]}),(0,r.jsxs)(D,{isActive:"email"===n,onClick:()=>{i("email"),M(null),E(!1)},children:[(0,r.jsx)(z.A,{className:"h-3.5 w-3.5"})," Email"]})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(p.p,{value:l,onChange:e=>o(e.target.value),onKeyDown:e=>{"Enter"===e.key&&R()},placeholder:"handle"===n?"Exact handle, e.g. maya":"Exact email address",type:"email"===n?"email":"text",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,className:"border-border/50 bg-muted/30 backdrop-blur-sm"}),(0,r.jsxs)(x.$,{onClick:R,disabled:y||!l.trim(),className:"shrink-0",children:[y?(0,r.jsx)(N.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(b.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Search"})]})]}),(0,r.jsx)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:"Exact-match only. People control their own discoverability — there is no public directory."}),(null==q?void 0:q.profile)&&(0,r.jsx)(h._,{children:(0,r.jsx)(u,{profile:q.profile,actions:$})}),S&&q&&!q.profile&&(0,r.jsx)(K,{query:l,mode:n})]})}function G(e){let{showHeader:t=!0,showOrb:a=!0,className:o,tab:p,onTabChange:k}=e,{user:w}=(0,$.A)(),{toast:A}=(0,j.dj)(),{navigateToMessages:z}=(0,O.N2)(),[F,_]=(0,s.useState)("connections"),T=void 0!==p,D=T?p:F,K=(0,s.useCallback)(e=>{T&&k?k(e):_(e)},[T,k]),{snapshot:G,isLoading:H,initialized:V}=(0,U.s)((0,n.k)(e=>({snapshot:e.snapshot,isLoading:e.isLoading,initialized:e.initialized}))),Y=(0,U.s)(e=>e.setUser),X=(0,U.s)(e=>e.respondToRequest),Z=(0,U.s)(e=>e.removeConnection),Q=(0,U.s)(e=>e.blockUser),J=(0,U.s)(e=>e.unblockUser),[W,ee]=(0,s.useState)(null),[et,ea]=(0,s.useState)(null),[er,es]=(0,s.useState)(null),en=(0,s.useCallback)(async e=>{if(!er){es(e);try{let t=await L.l.getState().openDm(e);z(t)}catch(e){A({title:"Couldn't open conversation",description:e instanceof Error?e.message:"Failed to open conversation.",variant:"destructive"})}finally{es(null)}}},[er,z,A]),ei=(0,s.useCallback)(async e=>{let t=0===G.accepted.length;ee(e.id);try{await X(e.id,"accept"),t?A({title:"\uD83C\uDF89 Connected with ".concat(e.peer.username,"!"),description:"Your first connection — you're on your way.",action:(0,r.jsxs)(v.Qg,{altText:"Message ".concat(e.peer.username),onClick:()=>en(e.peer.userId),children:[(0,r.jsx)(q.A,{className:"mr-1.5 h-3.5 w-3.5"}),"Message them"]})}):A({title:"Connection added"})}catch(e){A({title:"Action failed",description:e instanceof Error?e.message:"Something went wrong.",variant:"destructive"})}finally{ee(null)}},[G.accepted.length,X,A,en]);(0,s.useEffect)(()=>{var e;if(!(null==w?void 0:w.uid))return;let t=U.s.getState();t.initialized&&(null==(e=t.user)?void 0:e.id)===w.uid||Y({id:w.uid})},[null==w?void 0:w.uid,Y]);let el=(0,s.useCallback)(async(e,t,a)=>{ee(e);try{await t(),A({title:a})}catch(e){A({title:"Action failed",description:e instanceof Error?e.message:"Something went wrong.",variant:"destructive"})}finally{ee(null)}},[A]),eo=G.incoming.length;return(0,r.jsxs)("div",{className:(0,d.cn)("mx-auto flex w-full max-w-3xl flex-1 flex-col gap-5 px-4 pb-10",o),children:[t&&(0,r.jsx)(i.j,{prefixTitle:"My",title:"People",subtitle:"Connections and requests",showSearch:!1}),(0,r.jsxs)(c.lM,{eyebrow:"Your network",children:["Your connections. Your rules."," ",(0,r.jsx)("span",{className:"text-foreground
1/80",children:"No public directory — only people you choose."})]}),(0,r.jsx)(c.OB,{}),(0,r.jsx)(c.LI,{onSwitchToFind:()=>K("find")}),(0,r.jsx)(c.BY,{}),(0,r.jsxs)(y.tU,{value:D,onValueChange:K,className:"w-full",children:[(0,r.jsxs)(y.j7,{className:"h-auto w-full justify-start gap-2 overflow-x-auto rounded-none border-0 bg-transparent p-0",children:[(0,r.jsx)(y.Xi,{value:"connections",asChild:!0,children:(0,r.jsxs)(B,{children:[(0,r.jsx)(M.A,{className:"h-3.5 w-3.5"})," Connections",G.accepted.length>0&&(0,r.jsx)(m.E,{variant:"secondary",className:"ml-0.5 h-5 min-w-5 justify-center px-1.5 text-[10px]",children:G.accepted.length})]})}),(0,r.jsx)(y.Xi,{value:"requests",asChild:!0,children:(0,r.jsxs)(B,{children:[(0,r.jsx)(C.A,{className:"h-3.5 w-3.5"})," Requests",eo>0&&(0,r.jsx)(m.E,{className:"ml-0.5 h-5 min-w-5 justify-center border-0 bg-primary/25 px-1.5 text-[10px] text-primary",children:eo})]})}),(0,r.jsx)(y.Xi,{value:"find",asChild:!0,children:(0,r.jsxs)(B,{children:[(0,r.jsx)(b.A,{className:"h-3.5 w-3.5"})," Find"]})}),(0,r.jsx)(y.Xi,{value:"blocked",asChild:!0,children:(0,r.jsxs)(B,{children:[(0,r.jsx)(S.A,{className:"h-3.5 w-3.5"})," Blocked"]})})]}),(0,r.jsx)(y.av,{value:"connections",className:"mt-5 space-y-2",children:!V&&H?(0,r.jsx)("div",{className:"flex justify-center py-16",children:(0,r.jsx)(N.A,{className:"h-6 w-6 animate-spin text-primary/70"})}):0===G.accepted.length?(0,r.jsx)(c.cb,{icon:M.A,title:"No connections yet",hint:"Find people by their exact handle or email in the Find tab, then send a connection request.",action:(0,r.jsxs)(x.$,{size:"sm",className:"mt-1 bg-primary text-primary-foreground hover:bg-primary/90",onClick:()=>K("find"),children:[(0,r.jsx)(b.A,{className:"mr-1.5 h-3.5 w-3.5"}),"Find people"]})}):G.accepted.map((e,t)=>(0,r.jsx)(h._,{delay:40*t,children:(0,r.jsx)(u,{profile:e.peer,actions:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.$,{size:"sm",className:"bg-primary text-primary-foreground hover:bg-primary/90",disabled:er===e.peer.userId,onClick:()=>en(e.peer.userId),"aria-label":"Message ".concat(e.peer.username),children:er===e.peer.userId?(0,r.jsx)(N.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(q.A,{className:"h-4 w-4"})}),(0,r.jsx)(x.$,{variant:"ghost",size:"sm",disabled:W===e.id,onClick:()=>el(e.id,()=>Z(e.id),"Connection removed"),"aria-label":"Remove ".concat(e.peer.username),children:(0,r.jsx)(E.A,{className:"h-4 w-4"})}),(0,r.jsx)(x.$,{variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive",onClick:()=>ea(e),"aria-label":"Block ".concat(e.peer.username),children:(0,r.jsx)(S.A,{className:"h-4 w-4"})})]})})},e.id))}),(0,r.jsxs)(y.av,{value:"requests",className:"mt-5 space-y-5",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("h3",{className:c.qz.sectionLabel,children:"Incoming"}),0===G.incoming.length?(0,r.jsx)("p",{className:"rounded-xl bg-muted/25 px-3 py-2.5 text-sm text-muted-foreground",children:"No incoming requests."}):G.incoming.map((e,t)=>(0,r.jsx)(h._,{delay:40*t,children:(0,r.jsx)(u,{profile:e.peer,subtitle:"@".concat(e.peer.handle," \xb7 wants to connect"),actions:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.$,{size:"sm",className:"bg-primary text-primary-foreground hover:bg-primary/90",disabled:W===e.id,onClick:()=>ei(e),children:W===e.id?(0,r.jsx)(N.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.A,{className:"mr-1 h-4 w-4"})," Accept"]})}),(0,r.jsx)(x.$,{variant:"ghost",size:"sm",disabled:W===e.id,onClick:()=>el(e.id,()=>X(e.id,"decline"),"Request declined"),"aria-label":"Decline request from ".concat(e.peer.username),children:(0,r.jsx)(R.A,{className:"h-4 w-4"})})]})})},e.id))]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("h3",{className:c.qz.sectionLabel,children:"Outgoing"}),0===G.outgoing.length?(0,r.jsx)("p",{className:"rounded-xl bg-muted/25 px-3 py-2.5 text-sm text-muted-foreground",children:"No outgoing requests."}):G.outgoing.map((e,t)=>(0,r.jsx)(h._,{delay:40*t,children:(0,r.jsx)(u,{profile:e.peer,subtitle:"@".concat(e.peer.handle," \xb7 pending"),actions:(0,r.jsx)(x.$,{variant:"ghost",size:"sm",disabled:W===e.id,onClick:()=>el(e.id,()=>Z(e.id),"Request cancelled"),children:"Cancel"})})},e.id))]})]}),(0,r.jsx)(y.av,{value:"find",className:"mt-5",children:(0,r.jsx)(P,{})}),(0,r.jsx)(y.av,{value:"blocked",className:"mt-5 space-y-2",children:0===G.blocked.length?(0,r.jsx)(c.cb,{icon:I.A,title:"No blocked users",hint:"People you block can't find you, send you requests, or see that they've been blocked."}):G.blocked.map((e,t)=>(0,r.jsx)(h._,{delay:40*t,children:(0,r.jsx)(u,{profile:e.peer,subtitle:"@".concat(e.peer.handle," \xb7 blocked"),actions:(0,r.jsx)(x.$,{variant:"ghost",size:"sm",disabled:W===e.id,onClick:()=>el(e.id,()=>J(e.peer.userId),"User unblocked"),children:"Unblock"})})},e.id))})]}),(0,r.jsx)(f.Lt,{open:!!et,onOpenChange:e=>{e||ea(null)},children:(0,r.jsxs)(f.EO,{children:[(0,r.jsxs)(f.wd,{children:[(0,r.jsxs)(f.r7,{children:["Block ",null==et?void 0:et.peer.username,"?"]}),(0,r.jsx)(f.$v,{children:"They won't be able to find you, send you requests, or see that they've been blocked. Your existing connection will be removed. Only you can undo this."})]}),(0,r.jsxs)(f.ck,{children:[(0,r.jsx)(f.Zr,{children:"Cancel"}),(0,r.jsx)(f.Rx,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:()=>{et&&(ea(null),el(et.id,()=>Q(et.peer.userId),"User blocked"))},children:"Block"})]})]})}),a&&(0,r.jsx)(l.N,{className:"bottom-8 right-4 md:right-8"})]})}},96583:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]])}}]);

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.