import{w as m,L as c,F as u}from"./chunk-UIGDSWPH-BWkP6tD5.js";import{j as e}from"./jsx-runtime-C5WNSv3b.js";import{B as x}from"./button-Ds94YjAg.js";import{I as n,c as h}from"./misc-BapXpylh.js";import{S as a}from"./tooltip-C2AQeNhD.js";import{u as p,a as g,b as f}from"./user-DtZkTMil.js";import{u as l}from"./workshop-config-DCYN9tG7.js";import"./index-Az39ZADK.js";import"./index-CjiomtK6.js";import"./root-loader-C5P2c7MU.js";const A={getSitemapEntries:()=>null};function j(){const{product:{host:i}}=l();return`https://${i}/discord`}const E=m(function(){const s=p(),t=l(),r=g(),d=j(),o=f();return e.jsxs("main",{className:"container flex h-full w-full max-w-3xl grow flex-col items-center justify-center gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[s.imageUrlLarge?e.jsx("img",{className:"h-36 w-36 rounded-full",alt:r?.displayName??s.name??s.email,src:s.imageUrlLarge}):e.jsx("div",{className:"bg-muted flex h-36 w-36 items-center justify-center rounded-full",children:e.jsx(n,{name:"User",size:"xl"})}),e.jsx("p",{className:"text-muted-foreground mt-2 text-center text-xs",children:r?e.jsxs(e.Fragment,{children:["Photo from"," ",e.jsx("a",{href:"https://discord.com/channels/@me",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"Discord"})]}):e.jsxs(e.Fragment,{children:["Photo from"," ",e.jsx("a",{href:"https://gravatar.com",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"Gravatar"})," ","or connect Discord below"]})})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h1",{className:"mb-1 text-2xl",children:"Your Account"}),t.product.slug?e.jsx(a,{content:o?"You have access to this workshop":"You do not have full access to this workshop",children:e.jsx(n,{name:o?"Success":"Error",size:"lg",className:h(o?"bg-success text-success-foreground":"bg-warning text-warning-foreground","rounded-full p-1"),tabIndex:0})}):null]}),!o&&t.product.slug?e.jsx("div",{className:"prose",children:e.jsxs("callout-warning",{className:"notification",children:["Please"," ",e.jsx("a",{href:`https://${t.product.host}/workshops/${t.product.slug}`,className:"underline",children:"upgrade"})," ","your account to get full access to this workshop."]})}):null,e.jsx("p",{className:"text-center text-gray-700 dark:text-gray-300",children:s.name?`Hi ${r?.displayName??s.name}, your device is logged in with ${s.email}.`:`Your device is logged in with ${s.email}.`}),r?e.jsx(e.Fragment,{children:e.jsxs("p",{className:"text-center text-gray-700 dark:text-gray-300",children:["And you are connected to discord as"," ",e.jsx("a",{href:`https://discord.com/users/${r.id}`,target:"_blank",rel:"noopener noreferrer",className:"underline",children:r.displayName}),"."]})}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(c,{to:d,className:"inline-flex items-center gap-2 underline",children:[e.jsx(n,{name:"Discord",size:"lg"}),"Connect Discord"]}),e.jsx(a,{content:"This will give you access to the exclusive Discord channels for Epic Web",children:e.jsx(n,{name:"Question",tabIndex:0})})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(u,{method:"post",children:e.jsx(x,{varient:"mono",name:"intent",value:"logout",children:"Log device out"})}),e.jsx(a,{content:e.jsxs("div",{children:["Note: it is your ",e.jsx("i",{className:"italic",children:"device"})," that's logged in, not your browser.",e.jsx("br",{}),"So all browsers on this device will be logged in with the same account on this device."]}),children:e.jsx(n,{name:"Question",tabIndex:0})})]}),e.jsx("hr",{className:"w-full"}),e.jsxs("ul",{className:"flex list-inside list-disc flex-col gap-2 self-start",children:[e.jsx("li",{children:e.jsxs(c,{to:`https://${t.product.host}/profile`,className:"inline-flex gap-1 underline",children:[e.jsx("span",{children:"Manage your account"}),e.jsx(n,{name:"ExternalLink"})]})}),e.jsx("li",{children:e.jsx(c,{to:"/preferences",className:"underline",children:"Manage your preferences"})}),e.jsx("li",{children:e.jsx(c,{to:"/support",className:"underline",children:"Get support"})})]})]})});export{E as default,A as handle};
//# sourceMappingURL=account-D8tPswXT.js.map
