PageSourceSearch

https://www.tafensw.edu.au/_nuxt/eUHRlbn9.js

js tafensw.edu.au collected 2026-09-24 08:37:27 UTC 11,022 bytes, 1 lines download raw bytes

1import{_ as xe}from"./DP5_DDG2.js";import{_ as pe}from"./-1quNNvi.js";import{f as ve,g as ye,w as _e,h as be,i as n,o as i,n as d,q as o,t as g,A as x,p as e,C as r,y as a,U as he,al as we,a2 as A,D as Ce,v as Ie,x as c,F as C,P as I,j as Fe,b as ke,a3 as Oe}from"./B83PSHD9.js";import{_ as Se}from"./BRd7BSu8.js";import{_ as De}from"./DguWoYQS.js";import{_ as $e}from"./0Z7L-Uej.js";import{u as Be}from"./CMCaTV2J.js";import{u as Te}from"./CwLhTVkz.js";import{u as Re}from"./CoZv2ZKX.js";import{u as Ve}from"./D7fZy5lS.js";const ze={class:"px-3 py-4 md:px-4 md:py-6"},Ae={class:"relative flex w-full flex-row items-start justify-between md:items-start md:space-x-4"},Pe={class:"flex flex-1 flex-col space-y-2 md:flex-row md:justify-between md:space-y-0"},je={key:0,class:"flex flex-col text-grey-01"},Le=["id"],Me=["aria-label"],Ne=["id"],Ee={"aria-live":"polite",class:"-mt-1.5"},He=["aria-label","aria-checked"],Ke={class:"mt-5 flex flex-col flex-wrap items-start justify-between gap-y-6 md:mb-2 md:mt-4 md:flex-row md:items-center md:gap-y-4"},We={class:"flex w-full flex-row flex-wrap justify-start gap-4 md:justify-between",role:"list","aria-label":"Course summary"},qe={key:0,class:"flex flex-col gap-y-2"},Ge={class:"flex flex-row flex-wrap items-center text-grey-01"},Ue={class:"text-sm md:text-base"},Je={key:1,class:"flex flex-col gap-y-2"},Qe={class:"flex flex-row flex-wrap items-center text-grey-01"},Xe={class:"text-sm md:text-base"},Ye={key:2,class:"flex flex-col gap-y-2"},Ze={class:"flex flex-row flex-wrap items-center text-grey-01"},et={class:"text-sm md:text-base"},tt={class:"flex flex-col gap-y-2"},st={class:"flex flex-row flex-wrap items-center text-grey-01"},ot={class:"text-sm md:text-base"},lt={class:"hidden md:inline-block"},nt={class:"flex flex-col items-start md:items-end"},it=["aria-label"],at={class:"-mr-2 flex flex-col items-end"},rt={class:"flex flex-row items-center"},ft={class:"flex w-full flex-row items-end justify-between md:hidden"},dt={class:"flex flex-col items-start"},ct=["aria-label"],mt={class:"-ml-2 flex flex-col items-start"},ut={class:"flex flex-row items-center"},gt={class:"text-xs font-semibold text-grey-02"},xt={class:"hidden text-xs font-semibold text-grey-02 md:inline-block"},kt=ve({__name:"OfferingListCard",props:{offering:{default:void 0},shortlist:{type:Boolean,default:!1},isInactive:{type:Boolean,default:!1}},async setup(P){let h,k;const l=P,j={code:"",btnTxt:"Inactive",label:"Inactive",color:"grey-03",icon:"",tooltip:"Inactive offering",action:"",entryMethodStatus:""},L=ye(),{getOne:M,getMuleCourseById:N}=Be(),{getByOfferingId:E,add:H,remove:K}=Te(),{isHEDCourse:W,getOfferingDetails:q,isPsftOffering:G,checkDateOverride:U}=Re(),{showFeeFreeOfferingBadge:J,showReducedFeeOptionOfferingBadge:Q,showFeeFreeLimitedOfferingBadge:X}=Ve(),{tooltips:y}=Fe(),{formatDuration:O}=ke(),{gtag:S}=Oe(),Y=`offering-details-${l.offering?.id}`,{data:f}=([h,k]=_e(async()=>be(Y,async()=>l.offering?.id?await L.runWithContext(()=>q(l.offering?.id)):null,"$AiE05mzcJ_")),h=await h,k(),h),m=n(()=>M(l.offering?.courseId??"")),F=n(()=>N(l.offering?.courseId??"")),Z=n(()=>m.value?W(m.value):!1),_=n(()=>!!(l.offering&&E(l.offering?.id??""))),p=n(()=>f.value?.fee?.showOfferingCardFee?f.value.fee.feeDisplayText:"Pending"),D=n(()=>({index:0,course_area:m.value?.courseArea?.name,subject_group:m.value?.subjectGroup?.name,course_id:m.value?.id,course_list_name:m.value?.title,course_list_id:void 0,course_offering:l.offering?.campus?.name,course_type:m.value?.type,price:f.value?.fee?.upperFee,currency:"AUD",discount:void 0,quantity:1})),ee=n(()=>l.offering?.schedule?y[l.offering.schedule.toLowerCase()]:y.schedule),te=n(()=>Z.value&&l.offering?.schedule?.includes("Variable")?"This represents the duration when studying in full-time mode.":y.duration),se=n(()=>l.offering?.delivery?y[l.offering.delivery.toLowerCase()]:"Pending"),oe=n(()=>!l.isInactive&&f.value?.cta?f.value.cta:j),le=n(()=>f.value?.fee?.showFeeRange),$=n(()=>{if(!f.value?.fee?.showOfferingCardFee)return"";if(le.value&&p.value){const[s,t]=p.value.split(" - ");return`Cost estimate. From ${s||"$0"}. To ${t||p.value}. Subsidies available`}return`Cost estimate. ${p.value}`}),ne=n(()=>l.offering?G(l.offering):!1),w=n(()=>f.value?.fee?.feeRangeToolTip),B=n(()=>U(l.offering).startDate),T=n(()=>J(l.offering,F.value)),R=n(()=>Q(l.offering,F.value)),V=n(()=>X(l.offering,F.value)),z=n(()=>()=>{_.value?ae():ie()}),ie=()=>{l.offering&&(S("event","addToShortlist",D.value),H(l.offering))},ae=()=>{l.offering&&(l.isInactive||S("event","removeFromShortlist",D.value),K(l.offering))},re=s=>{switch(s){case"Online":return"IconWifi";case"Virtual":case"Connected":return"IconVirtualClassroom";case"Combination":return"IconCombination";case"Virtual classroom off campus":case"Virtual classroom on campus":return"IconClc";case"Workplace":return"IconBox";default:return"IconOnCampus"}},fe=s=>{switch(s){case"Full Time":return"IconFullTime";case"Part Time":return"IconPartTime";case"Variable":return"IconVariable";case"Self paced":return"IconSelfPaced";default:return"IconSchedule"}};return(s,t)=>{const de=xe,ce=pe,b=Ce,me=he,u=Se,v=De,ue=$e;return i(),d("section",null,[o(ne)&&s.offering?(i(),g(de,{key:0,offering:s.offering,shortlist:s.shortlist,"is-inactive":s.isInactive},null,8,["offering","shortlist","is-inactive"])):s.offering?(i(),g(ue,{key:1,class:"main-v2 transition-hover mb-4 rounded-lg bg-white shadow-none duration-300 hover:shadow-lg",role:"group","aria-labelledby":`course-title-${s.offering.id}`},{default:x(()=>[e("div",ze,[e("div",Ae,[e("div",Pe,[s.shortlist&&o(m)?(i(),d("div",je,[e("h4",{id:`course-title-${s.offering.id}`,class:"flex max-w-xl flex-col items-start border-grey-01 underline decoration-[1.5px] underline-offset-[5px]"},r(o(m).title),9,Le),e("span",{class:"mr-2 text-lg font-semibold md:max-w-[296px] md:text-xl","aria-label":`Location ${s.offering.campus?.name||"unknown"}`},r(s.offering.campus?.name),9,Me)])):(i(),d("h4",{key:1,id:`course-title-${s.offering.id}`,class:"inline border-grey-01 underline decoration-[1.5px] underline-offset-[5px]"},r(s.offering.campus?.name),9,Ne)),a(ce,{"offering-status":o(oe),class:"mt-2 inline-flex self-start md:mt-0",accented:""},null,8,["offering-status"])]),a(me,null,{default:x(()=>[e("div",Ee,[e("button",{class:"bg-grey flex items-center rounded-full border-2 border-transparent hover:bg-white/35","aria-label":o(_)?"Remove from shortlist":"Add to shortlist",role:"switch","aria-checked":o(_),onClick:t[0]||(t[0]=A(ge=>o(z)(),["prevent"])),onKeyup:t[1]||(t[1]=we(A(ge=>o(z)(),["prevent"]),["space"]))},[a(b,{name:o(_)?"IconFavouriteFilled":"IconFavourite",class:Ie(["text-4xl",o(_)?"text-error-02":"text-grey-02"])},null,8,["name","class"])],40,He)])]),_:1})]),e("div",Ke,[e("ul",We,[s.offering.delivery?(i(),d("li",qe,[t[2]||(t[2]=e("span",{class:"text-sm font-semibold text-grey-02"},"Study options",-1)),e("div",Ge,[a(b,{name:re(s.offering.delivery),class:"mr-px text-base md:text-lg",role:"img","aria-label":`Delivery: ${s.offering.delivery}`},null,8,["name","aria-label"]),e("p",Ue,r(s.offering.delivery),1),a(u,{msg:o(se),"icon-size":"text-lg ml-px"},null,8,["msg"])])])):c("",!0),s.offering.schedule?(i(),d("li",Je,[t[3]||(t[3]=e("span",{class:"text-sm font-semibold text-grey-02"},"Schedule",-1)),e("div",Qe,[a(b,{name:fe(s.offering.schedule),class:"mr-px text-base md:text-lg",role:"img","aria-label":`Schedule: ${s.offering.schedule}`},null,8,["name","aria-label"]),e("p",Xe,r(s.offering.schedule),1),a(u,{msg:o(ee),"icon-size":"text-lg ml-px"},null,8,["msg"])])])):c("",!0),s.offering.duration?(i(),d("li",Ye,[t[4]||(t[4]=e("span",{class:"text-sm font-semibold text-grey-02"},"Duration",-1)),e("div",Ze,[a(b,{name:"IconTimelapse",class:"mr-px text-base md:text-lg",role:"img","aria-label":`Duration: ${o(O)(s.offering.duration)}`},null,8,["aria-label"]),e("p",et,r(o(O)(s.offering.duration)),1),a(u,{msg:o(te),"icon-size":"text-lg ml-px"},null,8,["msg"])])])):c("",!0),e("li",tt,[t[5]||(t[5]=e("span",{class:"text-sm font-semibold text-grey-02"},"Start date",-1)),e("div",st,[a(b,{name:"IconDateRange",class:"mr-px text-base md:text-lg",role:"img","aria-label":`Start Date: ${o(B)}`},null,8,["aria-label"]),e("p",ot,r(o(B)),1),a(u,{msg:o(y).startDate,"icon-size":"text-lg ml-px"},null,8,["msg"])])]),e("li",lt,[e("div",nt,[o(f)?.fee?.showOfferingCardFee?(i(),d(C,{key:0},[e("p",{class:"flex flex-row items-center text-xl font-semibold","aria-label":o($)},[e("span",null,r(o(p)),1),a(u,{msg:o(w),"icon-size":"text-lg ml-px",class:"mb-0.5"},null,8,["msg"])],8,it),e("div",at,[o(R)?(i(),g(v,{key:0,variant:"simple",colour:"blue","icon-left":"IconMoneyOff"},{default:x(()=>t[6]||(t[6]=[e("span",{class:"text-xs md:text-sm"},"Reduced fee options",-1)])),_:1})):c("",!0),o(T)?(i(),g(v,{key:1,variant:"simple",colour:"green","icon-left":"IconCheckCircle"},{default:x(()=>t[7]||(t[7]=[e("span",{class:"text-xs md:text-sm"},"Fee-free available",-1)])),_:1})):c("",!0),o(V)?(i(),g(v,{key:2,variant:"simple","icon-left":"IconRemoveCircleOutline"},{default:x(()=>t[8]||(t[8]=[e("span",{class:"text-xs md:text-sm"},"Fee-free limited",-1)])),_:1})):c("",!0)])],64)):(i(),d(C,{key:1},[e("div",rt,[t[9]||(t[9]=e("p",{class:"text-xl font-semibold text-grey-01","aria-label":"Fee pending"},[I(" $"),e("em",{class:"ml-px text-lg"},"___")],-1)),a(u,{msg:o(w),"icon-size":"text-lg ml-px"},null,8,["msg"])]),t[10]||(t[10]=e("p",{class:"text-xs font-semibold text-grey-01 md:text-sm"}," Fee pending ",-1))],64))])])]),e("ul",ft,[e("li",null,[e("div",dt,[o(f)?.fee?.showOfferingCardFee?(i(),d(C,{key:0},[e("p",{class:"flex flex-row items-center text-xl font-semibold","aria-label":o($)},[e("span",null,r(o(p)),1),a(u,{msg:o(w),"icon-size":"text-lg ml-px",class:"mb-0.5"},null,8,["msg"])],8,ct),e("div",mt,[o(R)?(i(),g(v,{key:0,variant:"simple",colour:"blue","icon-left":"IconMoneyOff"},{default:x(()=>t[11]||(t[11]=[e("span",{class:"text-xs md:text-sm"},"Reduced fee options",-1)])),_:1})):c("",!0),o(T)?(i(),g(v,{key:1,variant:"simple",colour:"green","icon-left":"IconCheckCircle"},{default:x(()=>t[12]||(t[12]=[e("span",{class:"text-xs md:text-sm"},"Fee-free available",-1)])),_:1})):c("",!0),o(V)?(i(),g(v,{key:2,variant:"simple","icon-left":"IconRemoveCircleOutline"},{default:x(()=>t[13]||(t[13]=[e("span",{class:"text-xs md:text-sm"},"Fee-free limited",-1)])),_:1})):c("",!0)])],64)):(i(),d(C,{key:1},[e("div",ut,[t[14]||(t[14]=e("p",{class:"text-xl font-semibold text-grey-01","aria-label":"Fee pending"},[I(" $"),e("em",{class:"ml-px text-lg"},"___")],-1)),a(u,{msg:o(w),"icon-size":"text-lg ml-px"},null,8,["msg"])]),t[15]||(t[15]=e("p",{class:"text-xs font-semibold text-grey-01 md:text-sm"}," Fee pending ",-1))],64))])]),e("li",null,[e("p",gt,[t[16]||(t[16]=e("span",{class:"sr-only"},"ID code:",-1)),I(" "+r(s.offering.calocc||s.offering.id),1)])])])]),e("p",xt,[t[17]||(t[17]=e("span",{class:"sr-only"},"ID code:",-1)),I(" "+r(s.offering.calocc||s.offering.id),1)])])]),_:1},8,["aria-labelledby"])):c("",!0)])}}});
1export{kt as _};

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.