import{w as s,a as n,L as c}from"./chunk-UIGDSWPH-BWkP6tD5.js";import{j as r}from"./jsx-runtime-C5WNSv3b.js";import{E as l}from"./index-BwZqB-mh.js";import{E as m}from"./epic-video-Rho2ab6H.js";import{G as p}from"./error-boundary-C3WmGDj-.js";import{u as a}from"./revalidation-ws-BahUMYqf.js";import{E as x}from"./launch-editor-dGpSXAZC.js";import{P as u}from"./progress-DJ4oeyzx.js";import{M as f}from"./mdx-5oKUb-AI.js";import{g as d}from"./root-loader-C5P2c7MU.js";import{g as b}from"./seo-t5J-DRxw.js";import{E as h}from"./error-boundary-ChRytjv2.js";import"./index-Az39ZADK.js";import"./index-_LzGTKVC.js";import"./misc-BapXpylh.js";import"./tooltip-C2AQeNhD.js";import"./index-CjiomtK6.js";import"./pe-Bs-DFNma.js";import"./types-Cl2NuNg4.js";import"./online-Dw7HU4wM.js";import"./loading-DyvhEH4Q.js";import"./user-DtZkTMil.js";import"./workshop-config-DCYN9tG7.js";import"./preload-helper-BXl3LOEh.js";import"./progress-bar-D66irkpP.js";import"./index-Dd9cSrtE.js";import"./chunk-JG3XND5A-pL43G3x8.js";const D=({loaderData:t,matches:e})=>{const o=t?.exercise.exerciseNumber.toString().padStart(2,"0"),i=d(e);return!t||!i?[{title:"🦉 | Error"}]:b({title:`📝 | ${o}. ${t.exercise.title} | ${i?.workshopTitle}`,description:`Introduction for ${o}. ${t.exercise.title}`,ogTitle:t.exercise.title,ogDescription:`Introduction for exercise ${Number(o)}`,instructor:i.instructor,requestInfo:i.requestInfo})},g={h1:()=>null},J=s(function({loaderData:e}){a({watchPaths:[e.exerciseReadme.file]});const o=String(e.firstStep?.stepNumber??"01").padStart(2,"0");return r.jsxs("main",{className:"relative flex h-full w-full max-w-5xl flex-col justify-between border-r md:w-3/4 xl:w-2/3",children:[r.jsxs("article",{id:e.articleId,className:"shadow-on-scrollbox scrollbar-thin scrollbar-thumb-scrollbar flex w-full flex-1 flex-col gap-12 overflow-y-scroll px-3 py-4 pt-6 md:px-10 md:py-12 md:pt-16",children:[r.jsx("div",{children:r.jsx("h1",{className:"text-[clamp(3rem,6vw,7.5rem)] leading-none font-extrabold",children:e.exercise.title})}),r.jsx("div",{children:e.exercise.instructionsCode?r.jsx(m,{epicVideoInfosPromise:e.epicVideoInfosPromise,children:r.jsx("div",{className:"prose dark:prose-invert sm:prose-lg",children:r.jsx(f,{code:e.exercise.instructionsCode,components:g})})}):"No instructions yet..."})]},e.articleId),r.jsx(l,{elementQuery:`#${e.articleId}`},`scroll-${e.articleId}`),r.jsx(u,{type:"instructions",exerciseNumber:e.exerciseNumber,className:"h-14 border-t px-6"}),r.jsxs("div",{className:"@container flex h-16 justify-between border-t border-b-4 lg:border-b-0",children:[r.jsx("div",{}),r.jsx(x,{file:e.exerciseReadme.file,relativePath:e.exerciseReadme.relativePath}),r.jsx(c,{to:`${o}/${e.firstType}`,prefetch:"intent",className:"bg-foreground text-background flex h-full items-center justify-center px-7","data-keyboard-action":"g+n",children:"Start Learning"})]})]})}),K=n(function(){return r.jsx(p,{className:"container flex items-center justify-center",statusHandlers:{404:h}})});export{K as ErrorBoundary,J as default,D as meta};
//# sourceMappingURL=_exerciseNumber-lPQ9EJYW.js.map
