1"use strict";(self.webpackChunkuol=self.webpackChunkuol||[]).push([[17],{2178(e,t,s){var i=s(1309),l=s(9644),r=(s(9809),s(3413));const n=["as","variant","block","className","children"],a={primary:"bg-primary text-stone-50 hover:bg-primary-700 focus-visible:outline-primary",secondary:"bg-secondary text-stone-50 hover:bg-secondary-700 focus-visible:outline-secondary",accent:"bg-accent text-primary-900 hover:bg-accent-600 focus-visible:outline-accent-700",outline:"border border-primary text-primary hover:bg-primary hover:text-white focus-visible:outline-primary",outlineLight:"border border-stone-50/50 text-stone-50 hover:border-stone-50 hover:bg-stone-50/10 focus-visible:outline-stone-50",ghost:"bg-white/10 text-white hover:bg-white/20 focus-visible:outline-white"},o=e=>{let t=e.as,s=void 0===t?"button":t,o=e.variant,c=void 0===o?"primary":o,d=e.block,m=void 0!==d&&d,u=e.className,x=void 0===u?"":u,v=e.children,h=(0,l.A)(e,n);return(0,r.jsx)(s,(0,i.A)((0,i.A)({className:"inline-flex cursor-pointer items-center justify-center gap-2 rounded-sm px-6 py-3 text-xs font-semibold uppercase tracking-wider transition-all duration-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ".concat(m?"w-full":""," ").concat(a[c]||a.primary," ").concat(x)},h),{},{children:v}))};s.d(t,["A",0,o])},5017(e,t,s){s.r(t);var i=s(9698),l=s(9809),r=s(3971),n=s(943),a=s(297),o=s(4118),c=s(4844),d=s(2178),m=s(686),u=s(7320),x=s(3413);const v=()=>{var e,t,s,v,h;const p=(0,r.zy)(),b=(0,r.Zp)(),g=(0,m.g)(),y=new URLSearchParams(p.search).get("id"),f=(0,l.useState)(null),j=(0,i.A)(f,2),A=j[0],N=j[1],P=(0,l.useState)(null),E=(0,i.A)(P,2),w=E[0],S=E[1],D=(0,l.useState)(!0),O=(0,i.A)(D,2),T=O[0],k=O[1];return(0,l.useEffect)(()=>{if(!y)return void k(!1);let e=!0;return k(!0),g.getProgramDetail(y).then(async t=>{if(!e)return;const s=(null===t||void 0===t?void 0:t[0])||null;if(N(s),null!==s&&void 0!==s&&s.DeptID){const t=await g.getDeptAbout(s.DeptID);e&&S((null===t||void 0===t?void 0:t[0])||null)}}).catch(()=>{}).finally(()=>{e&&k(!1)}),()=>{e=!1}},[y,g]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n.A,{}),(0,x.jsx)("div",{className:"mx-auto max-w-4xl px-4 py-12 sm:py-16 md:py-20",children:T?(0,x.jsx)(u.A,{lines:6}):A?(0,x.jsxs)(x.Fragment,{children:[w&&(0,x.jsxs)("button",{type:"button",onClick:()=>b("/DptHome?id=".concat(w.DeptID)),className:"mb-8 text-sm font-semibold text-primary-700 underline-offset-2 hover:underline",children:["\u2190 Back to ",w.DeptTitle]}),(0,x.jsxs)("div",{className:"mb-6 flex flex-wrap items-center gap-2",children:[(0,x.jsx)(c.A,{color:"secondary",children:A.DEGREE_TYPE}),(0,x.jsx)(c.A,{color:"accent",children:A.DURATION})]}),(0,x.jsx)(o.A,{level:3,className:"mb-8 text-primary-900",children:A.PGM_TITLE}),(0,x.jsx)("p",{className:"mb-10 text-lg leading-relaxed text-stone-700",children:A.PROGRAM_DESC}),((null===w||void 0===w||null===(e=w.PEOS)||void 0===e?void 0:e.length)>0||(null===w||void 0===w||null===(t=w.PLOS)||void 0===t?void 0:t.length)>0)&&(0,x.jsxs)("div",{className:"mb-10 grid grid-cols-1 gap-10 sm:grid-cols-2",children:[(null===(s=w.PEOS)||void 0===s?void 0:s.length)>0&&(0,x.jsxs)("div",{children:[(0,x.jsx)(o.A,{level:5,className:"mb-4 text-primary-900",children:"Program Educational Objectives"}),(0,x.jsx)("ul",{className:"m-0 list-disc space-y-2 pl-5 text-sm leading-relaxed text-stone-600",children:w.PEOS.map((e,t)=>(0,x.jsx)("li",{children:e.PEOS_TITLE},t))})]}),(null===(v=w.PLOS)||void 0===v?void 0:v.length)>0&&(0,x.jsxs)("div",{children:[(0,x.jsx)(o.A,{level:5,className:"mb-4 text-primary-900",children:"Program Learning Objectives"}),(0,x.jsx)("ul",{className:"m-0 list-disc space-y-2 pl-5 text-sm leading-relaxed text-stone-600",children:w.PLOS.map((e,t)=>(0,x.jsx)("li",{children:e.PLOS_TITLE},t))})]})]}),w&&(0,x.jsx)("div",{className:"mb-10",children:(0,x.jsx)(d.A,{variant:"outline",onClick:()=>b("/CourseScheme?id=".concat(w.DeptID)),children:"View Full Course Scheme \u2192"})}),(null===(h=A.CAREER_PATHS)||void 0===h?void 0:h.length)>0&&(0,x.jsxs)("div",{children:[(0,x.jsx)(o.A,{level:5,className:"mb-4 text-primary-900",children:"Career Prospects"}),(0,x.jsx)("div",{className:"flex flex-wrap gap-2.5",children:A.CAREER_PATHS.map(e=>(0,x.jsx)("span",{className:"rounded-sm bg-primary-50 px-3.5 py-2 text-sm font-medium text-primary-800",children:e},e))})]})]}):(0,x.jsx)("div",{className:"rounded-sm border border-dashed border-stone-300 bg-white p-10 text-center",children:(0,x.jsx)(o.A,{level:4,className:"mb-2 text-primary-800",children:"Program not found"})})}),(0,x.jsx)(a.A,{})]})};s.d(t,["default",0,v])}}]); 2//# sourceMappingURL=17.9ccee159.chunk.js.map
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.