import{w as n,L as l}from"./chunk-UIGDSWPH-1hkfewjj.js";import{j as e}from"./jsx-runtime-agliiQSw.js";import{E as a}from"./index-BaIF645K.js";import{r as c}from"./index-BtyHvDgk.js";import{E as d}from"./epic-video-DTKLtvzE.js";import{I as m,c as f}from"./misc-CJRwnByf.js";import{L as p}from"./loading-DiAugSWv.js";import{N as h}from"./nav-chevrons-CQean-Ez.js";import{u}from"./revalidation-ws-367FRWA_.js";import{M as x}from"./mdx-BbPgj1nD.js";import{u as j}from"./online-BJUQDd5b.js";import{g as b}from"./root-loader-CIAkTEfn.js";import{g}from"./seo-DgDw-ivC.js";import{E as w}from"./launch-editor-CXRQAcoM.js";import{P as v}from"./progress-DAUJ_Zz6.js";import{u as N}from"./index-sWE7Vh13.js";import"./types-BzMnrBW1.js";import"./user-DPQPC1Ql.js";import"./workshop-config-BKSyfc8n.js";import"./index-D93mqesT.js";import"./index-Cdv7JOPa.js";import"./preload-helper-xT6v_9JT.js";import"./progress-bar-CF3aJM3k.js";import"./pe-jEPZ3eFB.js";import"./tooltip-Dei6jwuV.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 K={getSitemapEntries:()=>[{route:"/finished"}]},X=({matches:o})=>{const s=b(o);return s?g({title:`🎉 ${s?.workshopTitle}`,description:`Elaboration for ${s?.workshopTitle}`,ogTitle:`Finished ${s?.workshopTitle}`,ogDescription:"You finished! Time to submit feedback.",instructor:s.instructor,requestInfo:s.requestInfo}):[]},y={h1:()=>null},Z=n(function({loaderData:s}){return u({watchPaths:["./exercises/FINISHED.mdx"]}),e.jsx("div",{className:"flex h-full grow flex-col",children:e.jsxs("main",{className:"grid h-full grow grid-cols-1 grid-rows-2 lg:grid-cols-2 lg:grid-rows-1",children:[e.jsxs("div",{className:"relative col-span-1 row-span-1 flex h-full flex-col lg:border-r",children:[e.jsx("h1",{className:"h-14 border-b pr-5 pl-10 text-sm leading-none font-medium uppercase",children:e.jsx("div",{className:"flex h-14 flex-wrap items-center justify-between gap-x-2 py-2",children:e.jsxs("div",{className:"flex items-center justify-start gap-x-2",children:[e.jsx(l,{to:"/",className:"hover:underline",children:s.workshopTitle}),e.jsx("span",{children:"/"}),e.jsx("span",{children:"Elaboration"})]})})}),e.jsx("article",{className:"shadow-on-scrollbox scrollbar-thin scrollbar-thumb-scrollbar h-full w-full max-w-none flex-1 scroll-pt-6 space-y-6 overflow-y-auto p-2 sm:p-10 sm:pt-8",id:s.articleId,children:s.finishedCode?e.jsx(d,{epicVideoInfosPromise:s.epicVideoInfosPromise,children:e.jsx("div",{className:"prose dark:prose-invert sm:prose-lg",children:e.jsx(x,{code:s.finishedCode,components:y})})}):"No finished instructions yet..."}),e.jsx(a,{elementQuery:`#${s.articleId}`}),e.jsx(v,{type:"workshop-finished",className:"h-14 border-t px-6"}),e.jsxs("div",{className:"@container flex h-16 justify-between border-t border-b-4 lg:border-b-0",children:[e.jsx("div",{}),s.workshopFinished.status==="success"?e.jsx(w,{file:s.workshopFinished.file,relativePath:s.workshopFinished.relativePath}):null,e.jsx(h,{prev:s.prevStepLink,next:{to:"/"}})]})]}),e.jsx(E,{workshopTitle:s.workshopTitle,workshopFormEmbedUrl:s.workshopFormEmbedUrl})]})})});function E({workshopTitle:o,workshopFormEmbedUrl:s}){const t=N(),[r,i]=c.useState(!1);return j()?e.jsxs("div",{className:"relative shrink-0",children:[r?null:e.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center",children:e.jsx(p,{children:e.jsxs("span",{children:["Loading ",o," Elaboration form"]})})}),e.jsx("iframe",{onLoad:()=>i(!0),onError:()=>i(!0),title:"Elaboration",src:s,className:f("absolute inset-0 flex h-full w-full transition-opacity duration-300",r?"opacity-100":"opacity-0"),style:{colorScheme:t}})]}):e.jsx("div",{className:"relative shrink-0",children:e.jsx("div",{className:"text-foreground-destructive absolute inset-0 z-10 flex items-center justify-center",children:e.jsx(m,{name:"WifiNoConnection",size:"xl",children:e.jsxs("span",{children:["Unable to load the ",e.jsx("a",{href:s,className:"underline",children:`${o} feedback form`})," when offline"]})})})})}export{Z as default,K as handle,X as meta};
//# sourceMappingURL=finished-BC0nIB71.js.map
