import{a as g}from"/build/_shared/chunk-67EXRCE4.js";import{a as n}from"/build/_shared/chunk-QTXW5A25.js";import{b as p,c as f}from"/build/_shared/chunk-IFKH6WES.js";import{a as F}from"/build/_shared/chunk-SLNM5P2A.js";import{a as O}from"/build/_shared/chunk-32YOKIWQ.js";import"/build/_shared/chunk-J57633IL.js";import{a as b}from"/build/_shared/chunk-YCZ72ESF.js";import"/build/_shared/chunk-FCFTNN44.js";import{b as m}from"/build/_shared/chunk-N2QZPEPI.js";import{A as l,j as s,p as a,u,w as d}from"/build/_shared/chunk-IYEHZB2Y.js";import{b as N,d as o}from"/build/_shared/chunk-4AMCPB2Y.js";var y=N((k,h)=>{h.exports={}});var x=o(b(),1);var A=o(y(),1),i=o(O(),1);var L=o(F(),1);var e=o(l(),1);function w(){let v=u(),D=d(),t=p(),r=f(),c=g();return(0,e.jsxs)("main",{className:"container flex h-full w-full max-w-3xl flex-grow flex-col items-center justify-center gap-4",children:[(0,e.jsx)("img",{className:"h-36 w-36 rounded-full",alt:r?.displayName??t.name??t.email,src:t.avatarUrl}),(0,e.jsx)("h1",{className:"mb-1 text-2xl",children:"Your Account"}),(0,e.jsx)("p",{className:"text-center text-gray-700 dark:text-gray-300",children:t.name?`Hi ${r?.displayName??t.name}, your device is logged in with ${t.email}.`:`Your device is logged in with ${t.email}.`}),r?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("p",{className:"text-center text-gray-700 dark:text-gray-300",children:["And you are connected to discord as ",r.displayName," (",r.id,")."]}),(0,e.jsx)(D.Form,{method:"post",className:"mt-2",children:(0,e.jsx)(n,{varient:"mono",name:"intent",value:"disconnect-discord",children:"Disconnect Discord"})})]}):(0,e.jsxs)(a,{to:v.discordAuthUrl,className:"inline-flex items-center gap-2 underline",children:[(0,e.jsx)(m,{name:"Discord",size:24}),"Connect Discord"]}),(0,e.jsxs)(s,{method:"POST",children:[(0,e.jsx)("input",{name:"optOut",type:"hidden",value:c?.optOut?"false":"true"}),(0,e.jsxs)(n,{varient:"mono",name:"intent",value:"presence-opt-out",children:[c?.optOut?"Opt in to":"Opt out of"," presence"]})]}),(0,e.jsx)("p",{children:(0,e.jsxs)("small",{children:["Note: it is your ",(0,e.jsx)("i",{className:"italic",children:"device"})," that's logged in, not your browser. So all browsers on this device will be logged in with the same account on this device."]})}),(0,e.jsx)(s,{method:"post",className:"mt-2",children:(0,e.jsx)(n,{varient:"primary",name:"intent",value:"logout",children:"Log out"})}),(0,e.jsxs)("p",{children:["Check"," ",(0,e.jsx)(a,{to:"/support",className:"underline",children:"/support"})," ","if you need support."]})]})}export{w as default};
//# sourceMappingURL=/build/routes/_app+/account-U3ZCA3C5.js.map
