import{w as s,a as n,L as l}from"./chunk-UIGDSWPH-C8mvmDRm.js";import{j as r}from"./jsx-runtime-CbGirg_M.js";import{E as c}from"./index-CU92LMzx.js";import{E as m}from"./epic-video-9ssNJt3Q.js";import{G as p}from"./error-boundary-osO-X691.js";import{u as a}from"./revalidation-ws-8OzMCGYO.js";import{E as f}from"./launch-editor-BRoJyd9c.js";import{P as d}from"./progress-CARy9Upb.js";import{M as x}from"./mdx-D0_Xs1A2.js";import{g as u}from"./root-loader-AwLG1D86.js";import{g as b}from"./seo-BQ85iuS6.js";import{E as h}from"./error-boundary-CaqPh_Tw.js";import"./index-BoRhKTB8.js";import"./use-event-source-ZDun4YKa.js";import"./index-BC6L6d4X.js";import"./index-BJDrpBtR.js";import"./index-BN_canAo.js";import"./misc-D4V-U9nd.js";import"./tooltip-DpaM3OdK.js";import"./pe-D6_3VIe8.js";import"./types-s0-I03ry.js";import"./online-C_a_7ixK.js";import"./loading-DGPrsY7f.js";import"./user-DjQP8Fan.js";import"./workshop-config-C0r84dtp.js";import"./preload-helper-NxnseRRn.js";import"./progress-bar-DOQwgoY5.js";import"./chunk-JG3XND5A-sdI4lmNx.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:"28ce3948dcef68c9e8b5be7c5619a3bd17c18150"}}catch{}})();const z=({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},D=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(d,{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(f,{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"})]})]})}),J=n(function(){return r.jsx(p,{className:"container flex items-center justify-center",statusHandlers:{404:h}})});export{J as ErrorBoundary,D as default,z as meta};
//# sourceMappingURL=_exerciseNumber-Bp0D_UYY.js.map
