import{a as x,c as b}from"/build/_shared/chunk-ARDNBBAT.js";import{a as f}from"/build/_shared/chunk-T6RBLB6F.js";import"/build/_shared/chunk-WCC7U2ED.js";import"/build/_shared/chunk-7WW2YCZF.js";import{g as u}from"/build/_shared/chunk-DM3XB64W.js";import"/build/_shared/chunk-SLNM5P2A.js";import"/build/_shared/chunk-32YOKIWQ.js";import"/build/_shared/chunk-V7RVJIMX.js";import"/build/_shared/chunk-EYL65FZP.js";import"/build/_shared/chunk-ZI7LZGQS.js";import"/build/_shared/chunk-J57633IL.js";import{a as v,b as E}from"/build/_shared/chunk-LRTFSTL7.js";import{a as y}from"/build/_shared/chunk-YCZ72ESF.js";import{g as p}from"/build/_shared/chunk-LQI5VFCO.js";import"/build/_shared/chunk-BBE474FP.js";import{B as m,c as a,i as c,q as d,v as l}from"/build/_shared/chunk-FNLAOAQV.js";import{d as t}from"/build/_shared/chunk-4AMCPB2Y.js";var w=t(y(),1);var s=t(v(),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=l(),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 xl: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-3 py-4 pt-6 scrollbar-thin scrollbar-thumb-scrollbar md:px-10 md:py-12 md:pt-16",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)(d,{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-6XO4ODXC.js.map
