import{w as g,L as t,F as j}from"./chunk-UIGDSWPH-C8mvmDRm.js";import{j as e}from"./jsx-runtime-CbGirg_M.js";import{B as N}from"./button-D9Cejd2c.js";import{I as r,c as w}from"./misc-D4V-U9nd.js";import{u as a,O as d}from"./onboarding-indicator-CeK4IFNg.js";import{S as l}from"./tooltip-DpaM3OdK.js";import{u as b,a as v,b as y}from"./user-DjQP8Fan.js";import{u}from"./workshop-config-C0r84dtp.js";import"./index-BoRhKTB8.js";import"./root-loader-AwLG1D86.js";import"./index-BJDrpBtR.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:"28ce3948dcef68c9e8b5be7c5619a3bd17c18150"}}catch{}})();const P={getSitemapEntries:()=>null};function k(){const{product:{host:i}}=u();return`https://${i}/discord`}const F=g(function(){const s=b(),o=u(),n=v(),m=k(),c=y(),[h,x]=a("account-guide"),[p,f]=a("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:n?.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(r,{name:"User",size:"xl"})}),e.jsx("p",{className:"text-muted-foreground mt-2 text-center text-xs",children:n?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(l,{content:c?"You have access to this workshop":"You do not have full access to this workshop",children:e.jsx(r,{name:c?"Success":"Error",size:"lg",className:w(c?"bg-success text-success-foreground":"bg-warning text-warning-foreground","rounded-full p-1"),tabIndex:0})}):null]}),!c&&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 ${n?.displayName??s.name}, your device is logged in with ${s.email}.`:`Your device is logged in with ${s.email}.`}),n?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/${n.id}`,target:"_blank",rel:"noopener noreferrer",className:"underline",children:n.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(r,{name:"Discord",size:"lg"}),"Connect Discord"]}),e.jsx(l,{content:"This will give you access to the exclusive Discord channels for Epic Web",children:e.jsx(r,{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(l,{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(r,{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(r,{name:"ExternalLink"})]})}),e.jsx("li",{children:e.jsxs(t,{to:"/preferences",className:"relative underline",onClick:f,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-DL6QVpvA.js.map
