import{w as n,L as l}from"./chunk-JZWAC4HX-5kJHQiQ9.js";import{j as e}from"./jsx-runtime-C4_65a1U.js";import{E as a}from"./index-zkt0glVO.js";import{r as c}from"./index-B9zr-vzA.js";import{E as d}from"./epic-video-BZ1AWKL2.js";import{I as m,c as f}from"./misc-DRDyxdMg.js";import{L as p}from"./loading-DDR0n-s7.js";import{N as h}from"./nav-chevrons-C0ZOSWsA.js";import{R as u}from"./retrieval-practice-DELUJi9y.js";import{u as x}from"./revalidation-ws-bT9ZdRVV.js";import{M as b}from"./mdx-CNkHFdBV.js";import{u as j}from"./online-CrGTaAx4.js";import{g}from"./root-loader-Cnwtpb_k.js";import{g as w}from"./seo-B5xVovF0.js";import{E as v}from"./launch-editor-CwyOLU4S.js";import{P as y}from"./progress-0t5gpm_A.js";import{u as N}from"./index-BYdxj4vr.js";import"./use-event-source-Dip1vrZy.js";import"./index-nErvdZSM.js";import"./index-BzPxupzT.js";import"./schemas-RF4TJjJw.js";import"./tooltip-mkBMB3mq.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"./pe-P58jSSsB.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"8a6db0ac5fe78363b0c97fe458a96ce773bf357c"};var s=new r.Error().stack;s&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[s]="4ed96b77-dd0b-446b-9af7-fec533b65c0a",r._sentryDebugIdIdentifier="sentry-dbid-4ed96b77-dd0b-446b-9af7-fec533b65c0a")}catch{}})();const se={getSitemapEntries:()=>[{route:"/finished"}]},re=({matches:r})=>{const s=g(r);return s?w({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}):[]},E={h1:()=>null},oe=n(function({loaderData:s}){return x({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.jsxs("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(b,{code:s.finishedCode,components:E})})}):"No finished instructions yet...",e.jsx(u,{})]}),e.jsx(a,{elementQuery:`#${s.articleId}`}),e.jsx(y,{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(v,{file:s.workshopFinished.file,relativePath:s.workshopFinished.relativePath}):null,e.jsx(h,{prev:s.prevStepLink,next:{to:"/"}})]})]}),e.jsx(k,{workshopTitle:s.workshopTitle,workshopFormEmbedUrl:s.workshopFormEmbedUrl})]})})});function k({workshopTitle:r,workshopFormEmbedUrl:s}){const o=N(),[i,t]=c.useState(!1);return j()?e.jsxs("div",{className:"relative shrink-0",children:[i?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 ",r," Elaboration form"]})})}),e.jsx("iframe",{onLoad:()=>t(!0),onError:()=>t(!0),title:"Elaboration",src:s,className:f("absolute inset-0 flex h-full w-full transition-opacity duration-300",i?"opacity-100":"opacity-0"),style:{colorScheme:o}})]}):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:`${r} feedback form`})," when offline"]})})})})}export{oe as default,se as handle,re as meta};
//# sourceMappingURL=finished-BC76s141.js.map
