import{a as m}from"/build/_shared/chunk-YHYICVTG.js";import{a as u,c as h}from"/build/_shared/chunk-TVJAN66A.js";import{a as x}from"/build/_shared/chunk-CG7OF7U6.js";import"/build/_shared/chunk-JWVFBRIV.js";import"/build/_shared/chunk-LIQTNBUG.js";import{e as p,g as f}from"/build/_shared/chunk-WZFE4PGD.js";import"/build/_shared/chunk-SLNM5P2A.js";import"/build/_shared/chunk-32YOKIWQ.js";import"/build/_shared/chunk-IHR7WGUA.js";import"/build/_shared/chunk-HTTIUZX4.js";import"/build/_shared/chunk-BH32IDM5.js";import"/build/_shared/chunk-J57633IL.js";import"/build/_shared/chunk-ZMXU4C7Z.js";import{a as v,b as w}from"/build/_shared/chunk-LRTFSTL7.js";import{a as g}from"/build/_shared/chunk-YCZ72ESF.js";import{h as d}from"/build/_shared/chunk-FCFTNN44.js";import"/build/_shared/chunk-N2QZPEPI.js";import{A as c,p as l,u as n}from"/build/_shared/chunk-IYEHZB2Y.js";import{d as o}from"/build/_shared/chunk-4AMCPB2Y.js";var y=o(g(),1);var i=o(v(),1);var t=o(w(),1);var e=o(c(),1);function k({exercise:r}){let s=p(r.exerciseNumber);return(0,e.jsx)("li",{children:(0,e.jsxs)(l,{className:d("relative flex items-center gap-4 px-4 py-3 text-lg font-semibold transition after:absolute after:right-10 after:-translate-x-2 after:opacity-0 after:transition after:content-['\u2192'] hover:bg-gray-50 hover:after:translate-x-0 hover:after:opacity-100 dark:hover:bg-white/5",s),to:`${r.exerciseNumber.toString().padStart(2,"0")}`,children:[(0,e.jsx)("span",{className:"text-xs font-normal tabular-nums opacity-50",children:r.exerciseNumber}),(0,e.jsx)("span",{children:r.title})]})},r.exerciseNumber)}function b(){let r=n(),s=(0,e.jsxs)("ul",{className:"flex flex-col divide-y divide-border dark:divide-border/50",children:[(0,e.jsx)("strong",{className:"px-10 pb-3 font-mono text-xs uppercase",children:"Sections"}),r.exercises.map(a=>(0,e.jsx)(k,{exercise:a},a.exerciseNumber))]});return(0,e.jsxs)("main",{className:"relative flex h-full w-full max-w-5xl flex-col justify-between border-r border-border md:w-3/4 lg:w-2/3",children:[(0,e.jsxs)("article",{"data-restore-scroll":"true",className:"shadow-on-scrollbox flex w-full flex-1 flex-col gap-12 overflow-y-scroll border-border px-10 py-12 pt-16 scrollbar-thin scrollbar-thumb-scrollbar",children:[(0,e.jsx)("div",{children:(0,e.jsx)("h1",{className:"px-10 text-[6vw] font-extrabold leading-none",children:r.title})}),(0,e.jsxs)("div",{className:"w-full max-w-none scroll-pt-6 border-t border-border px-10 pt-8",children:[(0,e.jsx)("h2",{className:"pb-5 font-mono text-xs font-semibold uppercase",children:"Intro"}),r.workshopReadme.compiled.status==="success"&&r.workshopReadme.compiled.code?(0,e.jsx)(x,{epicVideoInfosPromise:r.epicVideoInfosPromise,children:(0,e.jsx)("div",{className:"prose dark:prose-invert sm:prose-lg",children:(0,e.jsx)(h,{code:r.workshopReadme.compiled.code,components:{h1:()=>null}})})}):r.workshopReadme.compiled.status==="error"?(0,e.jsxs)("div",{className:"text-red-500",children:["There was an error:",(0,e.jsx)("pre",{children:r.workshopReadme.compiled.error})]}):"No instructions yet..."]}),(0,e.jsx)("div",{className:"pb-5 pt-10",children:r.workshopReadme.compiled.status==="success"&&r.workshopReadme.compiled.code&&r.workshopReadme.compiled.code?.length>500?s:null})]}),(0,e.jsx)(f,{type:"workshop-instructions",className:"h-14 border-t px-6"}),(0,e.jsx)("div",{className:"flex h-16 justify-center border-t border-border",children:(0,e.jsx)(u,{file:r.workshopReadme.file,relativePath:r.workshopReadme.relativePath})})]})}function N(){return(0,e.jsx)(m,{})}export{N as ErrorBoundary,b as default};
//# sourceMappingURL=/build/routes/_app+/index-J5CHMWIG.js.map
