PageSourceSearch

https://reiv.com.au/_nuxt/Bn2FYEXC.js

js reiv.com.au collected 2026-09-24 18:30:20 UTC 3,394 bytes, 1 lines download raw bytes

1import{_ as V}from"./nFr76YY6.js";import{_ as $}from"./CatJ1OUG.js";import{U as j,Z as a,j as o,g as h,ah as k,i as u,ao as s,F as I,a7 as F,o as E,aF as L,n as P,f as M,a6 as f,av as U,ap as z,h as H,I as R,aM as p}from"./HUMTGNfc.js";import{u as S}from"./CHoc2Kwp.js";import"./Ct07UC_o.js";import"./DlAUqK2U.js";import"./C4_QyQ5x.js";import"./C-dX8HYa.js";import"./CnlnER6P.js";import"./Cpj98o6Y.js";const O={class:"pd-listing reiv-container"},Z={class:"mb-8 flex items-center justify-between"},G={key:0},X={class:"mb-12 flex flex-col items-start gap-5 md:flex-row md:gap-8"},q=["innerHTML"],J={key:0,class:"pd-listing__events mb-12 grid grid-cols-12 gap-8",role:"tabpanel"},K={class:"flex flex-row justify-center gap-4"},Q={key:0,class:"col-span-6 flex justify-center"},W={key:1,class:"col-span-8 col-start-3 text-center"},Y={key:2,class:"col-span-6 flex h-fit justify-center"},ee=100,A=6,ue={__name:"ProfessionalDevelopmentListingFiltered",props:{blok:{type:Object,default:()=>({})},rels:{type:Array,default:()=>[]}},setup(l){z(e=>({v66b98265:e.tabDescHeight}));const y=U(),n=l,x=f([]),r=f([]),g=f([]),v=f(1),_=f(""),m=f(!1),N=M(()=>({description:p(n.blok.description),webinar:p(n.blok.webinar_category_description),course:p(n.blok.course_category_description),event:p(n.blok.event_category_description),onDemand:p(n.blok.on_demand_category_description)}));let b="";{const{getIdToken:e}=S();b=e()}function T(e){return!n.blok.target_audience||!Array.isArray(n.blok.target_audience)||n.blok.target_audience.length===0?e:e.filter(i=>{if(!i.target_audience)return!1;const d=i.target_audience.split(",").map(t=>t.trim());return n.blok.target_audience.some(t=>d.includes(t))})}async function B(){m.value=!0,_.value="",r.value=[];let e=[],c=0,i=1;const d=b?{headers:{Authorization:`Bearer ${b}`}}:{};try{do{const D=`${y.public.REIV_API_URL}/events/find?page=${i}&size=${ee}`,w=await $fetch(D,d);c=w.data.total_count,e=e.concat(w.data?.items||[]),i++}while(e.length<c);x.value=e;const t=T(x.value);g.value=t,v.value=1,r.value=t.slice(0,A),g.value.length||(_.value="No results. Please try a different search.")}catch(t){console.error("[PDListing] fetchEvents error:",t),_.value=y.public.NUXT_ENV==="development"?t.data?.error?.reasons?.[0].reason:"Unable to fetch results. Please try again later."}finally{m.value=!1}}function C(){v.value++;const e=g.value.slice(0,v.value*A);r.value=e}return j(async()=>{await B()}),(e,c)=>{const i=V,d=$;return a(),o("section",O,[h("div",Z,[l.blok.heading?(a(),o("h2",G,k(l.blok.heading),1)):u("",!0)]),h("div",X,[l.blok.description?(a(),o("div",{key:0,innerHTML:s(N).description},null,8,q)):u("",!0)]),s(r).length?(a(),o("div",J,[(a(!0),o(I,null,F(s(r),t=>(a(),H(i,R({key:t.event_code,class:["col-span-12 h-full md:col-span-6",s(r).length<=2&&!e.isLoggedInPd?"lg:col-span-6":"xl:col-span-4"]},{ref_for:!0},t),null,16,["class"]))),128))])):u("",!0),h("div",K,[s(r).length<s(g).length?(a(),o("div",Q,[E(d,{class:"relative mb-8",disabled:s(m),"show-spinner":s(m),"use-spinner":"",onClick:C},{default:L(()=>[...c[0]||(c[0]=[P(" Load more ",-1)])]),_:1},8,["disabled","show-spinner"])])):u("",!0),!s(m)&&s(_)?(a(),o("div",W,[h("h4",null,k(s(_)),1)])):u("",!0),l.blok.button_text?(a(),o("div",Y,[E(d,{"nuxt-link":"/"+l.blok.button_url.cached_url,class:"mb-8"},{default:L(()=>[P(k(l.blok.button_text),1)]),_:1},8,["nuxt-link"])])):u("",!0)])])}}};export{ue 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.