import{w as f,L as t,F as j}from"./chunk-UIGDSWPH-1hkfewjj.js";import{j as e}from"./jsx-runtime-agliiQSw.js";import{B as N}from"./button-BGNaL1rW.js";import{I as n,c as w}from"./misc-CJRwnByf.js";import{u as l,O as d}from"./onboarding-indicator-CKfAJ7mz.js";import{S as c}from"./tooltip-Dei6jwuV.js";import{u as b,a as v,b as y}from"./user-DPQPC1Ql.js";import{u}from"./workshop-config-BKSyfc8n.js";import"./index-BtyHvDgk.js";import"./root-loader-CIAkTEfn.js";import"./index-D93mqesT.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};i.SENTRY_RELEASE={id:"8bd8bc3153d70a1c10ccde8d38796bd67282553d"}}catch{}})();const P={getSitemapEntries:()=>null};function k(){const{product:{host:i}}=u();return`https://${i}/discord`}const F=f(function(){const s=b(),o=u(),r=v(),m=k(),a=y(),[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:a?"You have access to this workshop":"You do not have full access to this workshop",children:e.jsx(n,{name:a?"Success":"Error",size:"lg",className:w(a?"bg-success text-success-foreground":"bg-warning text-warning-foreground","rounded-full p-1"),tabIndex:0})}):null]}),!a&&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-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(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{F as default,P as handle};
//# sourceMappingURL=account-D-R9sN_Y.js.map
