import{w as s,a as n,L as l}from"./chunk-UIGDSWPH-1hkfewjj.js";import{j as r}from"./jsx-runtime-agliiQSw.js";import{E as c}from"./index-BaIF645K.js";import{E as m}from"./epic-video-DTKLtvzE.js";import{G as p}from"./error-boundary-Ca-EY0CX.js";import{u as a}from"./revalidation-ws-367FRWA_.js";import{E as d}from"./launch-editor-CXRQAcoM.js";import{P as f}from"./progress-DAUJ_Zz6.js";import{M as x}from"./mdx-BbPgj1nD.js";import{g as u}from"./root-loader-CIAkTEfn.js";import{g as b}from"./seo-DgDw-ivC.js";import{E as h}from"./error-boundary-D4E9wHBk.js";import"./index-BtyHvDgk.js";import"./index-sWE7Vh13.js";import"./misc-CJRwnByf.js";import"./tooltip-Dei6jwuV.js";import"./index-D93mqesT.js";import"./pe-jEPZ3eFB.js";import"./types-BzMnrBW1.js";import"./online-BJUQDd5b.js";import"./loading-DiAugSWv.js";import"./user-DPQPC1Ql.js";import"./workshop-config-BKSyfc8n.js";import"./preload-helper-xT6v_9JT.js";import"./progress-bar-CF3aJM3k.js";import"./index-Cdv7JOPa.js";import"./chunk-JG3XND5A-O3iOO-XZ.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"8bd8bc3153d70a1c10ccde8d38796bd67282553d"}}catch{}})();const _=({loaderData:o,matches:e})=>{const t=o?.exercise.exerciseNumber.toString().padStart(2,"0"),i=u(e);return!o||!i?[{title:"🦉 | Error"}]:b({title:`📝 | ${t}. ${o.exercise.title} | ${i?.workshopTitle}`,description:`Introduction for ${t}. ${o.exercise.title}`,ogTitle:o.exercise.title,ogDescription:`Introduction for exercise ${Number(t)}`,instructor:i.instructor,requestInfo:i.requestInfo})},g={h1:()=>null},z=s(function({loaderData:e}){a({watchPaths:[e.exerciseReadme.file]});const t=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(x,{code:e.exercise.instructionsCode,components:g})})}):"No instructions yet..."})]},e.articleId),r.jsx(c,{elementQuery:`#${e.articleId}`},`scroll-${e.articleId}`),r.jsx(f,{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(d,{file:e.exerciseReadme.file,relativePath:e.exerciseReadme.relativePath}),r.jsx(l,{to:`${t}/${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"})]})]})}),D=n(function(){return r.jsx(p,{className:"container flex items-center justify-center",statusHandlers:{404:h}})});export{D as ErrorBoundary,z as default,_ as meta};
//# sourceMappingURL=_exerciseNumber-BjyGCgAY.js.map
