1import{b as o,r as n,a as l,j as e}from"./main-D9MJQiZR.js";import{a as m}from"./auth-B0TICSBt.js";function h(){const{user:r}=m(),{t,locale:i}=o(),[a,c]=n.useState(null);return n.useEffect(()=>{r&&l.get("/discord/link").then(s=>{s.success?window.location.href=s.data.authUrl:c(s.error.message)}).catch(()=>{c(t("toast.discordLinkError"))})},[r]),a?e.jsx("main",{className:"flex items-center justify-center min-h-screen",children:e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-red-600 mb-4",children:a}),e.jsx("a",{href:`/${i}/@me`,className:"text-sm text-primary hover:underline",children:t("common.backToAccount")})]})}):e.jsx("main",{className:"flex items-center justify-center min-h-screen",children:e.jsxs("svg",{className:"animate-spin w-8 h-8 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})})}export{h as component};
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.