PageSourceSearch

https://loft-space.co.uk/assets/CourseCompletionPage-sPy31YuE.js

js loft-space.co.uk collected 2026-10-06 17:05:16 UTC 3,459 bytes, 1 lines download raw bytes

1import{j as s}from"./vendor-puck-lPnaRYA0.js";import{u as j,e as b,r as g,L as N}from"./vendor-react-TOOSQ9Q-.js";import{b as h,u as C,a as w,aG as v,g as x,E as y,aH as I,c as D,aI as L,aJ as R,B,aE as E,A as S}from"./index-RB0XfhDF.js";import{L as A}from"./LoadingCourseDetails-Gx6QeNi2.js";import{G as F}from"./GlightBox-5YM0pHAL.js";import{u as H}from"./vendor-i18n-eTj0Pfmx.js";import{R as P,C as T,c as p}from"./vendor-bootstrap-fxQA9rHL.js";import"./vendor-luxon-2n2xc3QM.js";import"./vendor-calendar-WlMSM93F.js";import"./vendor-motion-BX6prKAE.js";const _=c=>{const{t:e}=H(),{getRoutePath:n}=h(),{coworker:i}=y(),{send:l}=I(),{isSmDown:t}=D(),{id:a,host:m,title:o,imageUrl:r}=c;return g.useEffect(()=>{L("course_completed",{course_id:a}),l(R.ACTION_SUCCESS,{type:"course_completed"})},[]),s.jsx(P,{className:"justify-content-center",children:s.jsx(T,{children:s.jsx(p,{className:"shadow-lg border-0 text-center",children:s.jsxs(p.Body,{children:[s.jsxs("div",{className:"text-center p-4",children:[s.jsx(B,{name:"claps",colors:[{from:"#FF5100",to:"var(--bs-primary)"}],size:100,className:"mb-4 icon-pulse",style:{animation:"pulse 2s infinite"}}),s.jsx("h2",{className:"fw-bolder",children:e("Congratulations!")}),s.jsx("p",{className:"lead",children:e("You have successfully completed this course.")})]}),s.jsxs("div",{style:{maxWidth:"600px"},className:"border p-4 rounded mb-4 mx-auto",children:[s.jsx("h2",{className:"fs-5 fw-bolder pb-3",children:e("Certificate of Completion")}),s.jsx("div",{className:"flex-shrink-0  border-3",children:s.jsx(F,{image:r,"data-width":"80%",children:s.jsx(E,{aspectRatio:t?4/3:800/300,className:"rounded-3 mb-4",style:{width:"100%"},alt:e("Course image for {{title}}",{title:o}),src:r})})}),s.jsx("p",{className:"pb-3 fs-sm",children:e("This certificate is awarded to")}),s.jsx("h3",{className:"fw-bolder fs-base pb-3",children:i?.FullName}),s.jsx("p",{className:"pb-3 fs-sm",children:e("For successfully completing the online course")}),s.jsx("h6",{className:"fw-bolder pb-3",children:o}),s.jsx("hr",{}),s.jsxs("div",{className:"align-item-end",children:[s.jsxs("div",{className:"d-flex justify-content-between align-items-start",children:[s.jsx("p",{className:"fs-sm mb-0",children:e("Date: ")}),s.jsx("p",{className:"fs-base fw-bolder mb-0",children:e("{{date}}",{date:new Date().toLocaleDateString()})})]}),s.jsxs("div",{className:"d-flex justify-content-between align-items-start align-items-center mt-3",children:[s.jsx("p",{className:"fs-sm mb-0",children:e("Hosted by: ")}),s.jsx("p",{className:"fs-base fw-bolder mb-0",children:e("{{host}}",{host:m})})]})]})]}),s.jsx(S,{variant:"outline-primary",label:e("Return to Course summary"),as:N,to:n(x.course_home,{courseId:a}),classNames:""})]})})})})},q=()=>{const{getRoutePath:c}=h(),e=j(),n=b(),{business:i}=C(),{getCourseSmallImage:l}=w(),t=v(Number(n.courseId));if(!t?.courseData)return s.jsx("div",{children:s.jsx(A,{})});const a=t.courseData?.Course,m=t.courseData.Lessons.filter(d=>d.IsComplete).length,o=t.courseData.Lessons.length,r=o>0?m/o*100:0,u=t.courseData.Lessons.find(d=>!d.IsComplete),f=u?u.Id:t.courseData.Lessons[0]?.Id;return r<100&&e(c(x.course_home,{courseId:a.Id})),s.jsx(_,{id:a.Id,description:a.FullDescription,overviewHtml:a.OverviewText,host:t.courseData.Host?.FullName,lessonsCount:t.courseData.Lessons.length,progressPercent:r,imageUrl:l(i,a,600,540),summary:a?.SummaryText,title:a?.Title,startLessonId:f})};export{q as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.