PageSourceSearch

https://vu.ac.ug/_nuxt/CNvpx15L.js

js vu.ac.ug collected 2026-10-02 11:52:00 UTC 2,972 bytes, 1 lines download raw bytes

1import{d as L,L as B,h as d,u as $,c as _,g as c,w as p,j as n,b as e,t as v,F as N,r as U,p as D,v as H,i as R,y as g,o as u,l as V,k as A,_ as O}from"./Bddq2Ns3.js";import{_ as P}from"./1ILHO3ll.js";import{_ as E}from"./FPycvbrH.js";import{_ as F}from"./CG8V12a4.js";import{_ as I}from"./VMthDg7K.js";import{u as T}from"./B9SMG2nW.js";const j={class:"container-fluid px-0 mx-0"},z={class:"hero-highlight",style:{"text-transform":"capitalize"}},q={class:"main-content padding-left padding-right mt-5 mb-5 mx-0 text-start"},G={class:"row px-0 mx-0"},J={class:"col-md-3 d-none d-md-block side-nav"},K={class:"col-md-9",id:"levels"},M={class:"section-header mb-4"},Q={class:"section-title"},W={class:"levels-grid"},X={key:0,class:"empty-state"},Y=L({__name:"[code]",async setup(Z){let s,a;const f=B(),b=H().public.apiBaseUrl,m=f.params.code.toUpperCase(),{data:o}=([s,a]=d(async()=>T(`short-course-levels-${m}`,async()=>{try{const l=await R.get(`${b}website/public/short-courses/${m}/levels`);return l.data.success&&l.data.message==="Short course levels fetched successfully"?{shortCourse:l.data.shortCourse,levels:l.data.data}:null}catch{return null}})),s=await s,a(),s);(!o.value||!o.value.shortCourse)&&([s,a]=d(()=>g("/programmes/short-courses")),await s,a()),o.value?.levels&&o.value.levels.length===1&&([s,a]=d(()=>g(`/short-course/${o.value.levels[0].id}`)),await s,a());const r=o.value?.shortCourse??null,h=o.value?.levels??[];$({title:`${r?.title??"Short Course"} | Victoria University`});const x=[{name:"Home",url:"/"},{name:"Short Courses",url:"/programmes/short-courses"},{name:r?.title??"",url:`/programmes/short-courses/${m.toLowerCase()}`}];return(l,t)=>{const C=V,y=P,w=E,S=F,k=I;return u(),_("div",j,[c(y,{breadcrumbs:x,label:n(r)?.category?.title??"SHORT COURSES",subtitle:"Choose the level that fits your goals and schedule."},{title:p(()=>[e("span",z,v(n(r)?.title.toLowerCase()),1)]),actions:p(()=>[t[1]||(t[1]=e("a",{href:"#levels",class:"hero-btn-primary"},[e("span",null,"Browse Levels"),e("i",{class:"bx bx-right-arrow-alt"})],-1)),c(C,{to:"/programmes/short-courses",class:"hero-btn-outline"},{default:p(()=>[...t[0]||(t[0]=[e("span",null,"All Short Courses",-1)])]),_:1})]),_:1},8,["label"]),e("section",q,[e("div",G,[e("div",J,[t[2]||(t[2]=e("h4",{class:"pb-2"},"Our Programmes",-1)),c(w)]),e("div",K,[e("div",M,[e("h2",Q,v(n(r)?.title)+" - Levels",1),t[3]||(t[3]=e("div",{class:"title-accent"},null,-1))]),e("div",W,[(u(!0),_(N,null,U(n(h),i=>(u(),A(S,{key:i.id,"level-id":i.id,"level-title":i.title,"short-course-title":n(r)?.title??"",duration:i.duration,image:i.websiteProgramDetail?.image_path_url??""},null,8,["level-id","level-title","short-course-title","duration","image"]))),128))]),n(h).length===0?(u(),_("div",X,[...t[4]||(t[4]=[e("i",{class:"bx bx-book-open"},null,-1),e("p",null,"No levels are currently available for this course.",-1)])])):D("",!0)])])]),c(k)])}}}),le=O(Y,[["__scopeId","data-v-2519cace"]]);export{le 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.