import{a as x,c as b}from"/build/_shared/chunk-TVJAN66A.js";import{a as f}from"/build/_shared/chunk-CG7OF7U6.js";import"/build/_shared/chunk-JWVFBRIV.js";import"/build/_shared/chunk-LIQTNBUG.js";import{g as u}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 y,b as E}from"/build/_shared/chunk-LRTFSTL7.js";import{a as v}from"/build/_shared/chunk-YCZ72ESF.js";import{g as p}from"/build/_shared/chunk-FCFTNN44.js";import"/build/_shared/chunk-N2QZPEPI.js";import{A as m,b as a,h as c,p as l,u as d}from"/build/_shared/chunk-IYEHZB2Y.js";import{d as t}from"/build/_shared/chunk-4AMCPB2Y.js";var w=t(v(),1);var s=t(y(),1);var o=t(E(),1),r=t(m(),1),S=({data:e,matches:n})=>{if(!e)return[{title:"\u{1F4DD} | Error"}];let i=e.exercise.exerciseNumber.toString().padStart(2,"0"),h=n.find(N=>N.id==="root")?.data;return[{title:`\u{1F4DD} | ${i}. ${e.exercise.title} | ${h?.workshopTitle}`}]};function g(){let e=d(),i=`${String(e.firstStep?.stepNumber??"01").padStart(2,"0")}/${e.firstType}`;return(0,r.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,r.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,r.jsx)("div",{children:(0,r.jsx)("h1",{className:"text-[6vw] font-extrabold leading-none",children:e.exercise.title})}),(0,r.jsx)("div",{children:e.exercise.instructionsCode?(0,r.jsx)(f,{epicVideoInfosPromise:e.epicVideoInfosPromise,children:(0,r.jsx)("div",{className:"prose dark:prose-invert sm:prose-lg",children:(0,r.jsx)(b,{code:e.exercise?.instructionsCode,components:{h1:()=>null}})})}):"No instructions yet..."})]}),(0,r.jsx)(u,{type:"instructions",exerciseNumber:e.exerciseNumber,className:"h-14 border-t px-6"}),(0,r.jsxs)("div",{className:"flex h-16 justify-between border-b-4 border-t border-border lg:border-b-0",children:[(0,r.jsx)("div",{}),(0,r.jsx)(x,{file:e.exerciseReadme.file,relativePath:e.exerciseReadme.relativePath}),(0,r.jsx)(l,{to:i,prefetch:"intent",className:"flex h-full items-center justify-center bg-foreground px-7 text-background",children:"Start Learning"})]})]})}function T(){let e=c();return typeof document<"u"&&console.error(e),a(e)?e.status===404?(0,r.jsx)("p",{children:"Sorry, we couldn't find that step."}):(0,r.jsxs)("p",{children:[e.status," ",e.data]}):(0,r.jsx)("p",{children:p(e)})}export{T as ErrorBoundary,g as default,S as meta};
//# sourceMappingURL=/build/routes/_app+/_exercises+/$exerciseNumber-KN26YVQC.js.map
