import{w as f,L as t,F as j}from"./chunk-EPOLDU6W-BCLmut3y.js";import{j as e}from"./jsx-runtime-C5WNSv3b.js";import{B as N}from"./button-Cd-ekki5.js";import{I as n,c as w}from"./misc-W4055b-0.js";import{u as l,O as d}from"./onboarding-indicator-B-XR90_G.js";import{S as c}from"./tooltip-Tlsyx2YO.js";import{u as v,a as b,b as k}from"./user-BsPobzjB.js";import{u}from"./workshop-config-Zfc8zU0x.js";import"./index-CqIc3cxq.js";import"./root-loader-BOzEMapJ.js";import"./index-vDCSPjrM.js";const F={getSitemapEntries:()=>null};function y(){const{product:{host:a}}=u();return`https://${a}/discord`}const S=f(function(){const s=v(),o=u(),r=b(),m=y(),i=k(),[h,x]=l("account-guide"),[p,g]=l("account-preferences");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"}),o.product.slug?e.jsx(c,{content:i?"You have access to this workshop":"You do not have full access to this workshop",children:e.jsx(n,{name:i?"Success":"Error",size:"lg",className:w(i?"bg-success text-success-foreground":"bg-warning text-warning-foreground","rounded-full p-1"),tabIndex:0})}):null]}),!i&&o.product.slug?e.jsx("div",{className:"prose",children:e.jsxs("callout-warning",{className:"notification",children:["Please"," ",e.jsx("a",{href:`https://${o.product.host}/workshops/${o.product.slug}`,className:"underline",children:"upgrade"})," ","your account to get full access to this workshop."]})}):null,e.jsx("p",{className:"text-muted-foreground text-center",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-muted-foreground text-center",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(t,{to:m,className:"inline-flex items-center gap-2 underline",children:[e.jsx(n,{name:"Discord",size:"lg"}),"Connect Discord"]}),e.jsx(c,{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(j,{method:"post",children:e.jsx(N,{varient:"mono",name:"intent",value:"logout",children:"Log device out"})}),e.jsx(c,{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(t,{to:`https://${o.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.jsxs(t,{to:"/preferences",className:"relative underline",onClick:g,children:[p?e.jsx(d,{tooltip:"Customize your workshop experience!",size:"sm",className:"-top-1 -left-4"}):null,"Manage your preferences"]})}),e.jsx("li",{children:e.jsxs(t,{to:"/guide",className:"relative underline",onClick:x,children:[h?e.jsx(d,{tooltip:"Learn how to use the workshop app!",size:"sm",className:"-top-1 -left-4"}):null,"Workshop app guide"]})}),e.jsx("li",{children:e.jsx(t,{to:"/support",className:"underline",children:"Get support"})})]})]})});export{S as default,F as handle};
//# sourceMappingURL=account-C96cpeZR.js.map
