import{w as s,a as n,L as c}from"./chunk-JZWAC4HX-5kJHQiQ9.js";import{j as r}from"./jsx-runtime-C4_65a1U.js";import{E as l}from"./index-zkt0glVO.js";import{E as m}from"./epic-video-BZ1AWKL2.js";import{G as a}from"./error-boundary-BC83xzIm.js";import{u as d}from"./revalidation-ws-bT9ZdRVV.js";import{E as p}from"./launch-editor-CwyOLU4S.js";import{P as f}from"./progress-0t5gpm_A.js";import{M as u}from"./mdx-CNkHFdBV.js";import{g as x}from"./root-loader-Cnwtpb_k.js";import{g as b}from"./seo-B5xVovF0.js";import{E as h}from"./error-boundary-ClkDeGay.js";import"./index-B9zr-vzA.js";import"./use-event-source-Dip1vrZy.js";import"./index-nErvdZSM.js";import"./index-BzPxupzT.js";import"./index-BYdxj4vr.js";import"./misc-DRDyxdMg.js";import"./tooltip-mkBMB3mq.js";import"./pe-P58jSSsB.js";import"./schemas-RF4TJjJw.js";import"./online-CrGTaAx4.js";import"./loading-DDR0n-s7.js";import"./format-CKpZi3Um.js";import"./user-Pnhys2oT.js";import"./workshop-config-BVRT-ayZ.js";import"./preload-helper-DqNgO5-4.js";import"./progress-bar-BwLqNk15.js";import"./chunk-4LKRSAEJ-CfANpWuN.js";import"./coerce-BwxsmYWL.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"8a6db0ac5fe78363b0c97fe458a96ce773bf357c"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0d335a16-b62a-40a8-a969-f508ac29aa4a",t._sentryDebugIdIdentifier="sentry-dbid-0d335a16-b62a-40a8-a969-f508ac29aa4a")}catch{}})();const J=({loaderData:t,matches:e})=>{const o=t?.exercise.exerciseNumber.toString().padStart(2,"0"),i=x(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},K=s(function({loaderData:e}){d({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(u,{code:e.exercise.instructionsCode,components:g})})}):"No instructions yet..."})]},e.articleId),r.jsx(l,{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(p,{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"})]})]})}),U=n(function(){return r.jsx(a,{className:"container flex items-center justify-center",statusHandlers:{404:h}})});export{U as ErrorBoundary,K as default,J as meta};
//# sourceMappingURL=_exerciseNumber-30_Jsqrl.js.map
