1import{_ as N}from"./Ch5DBI1_.js";import{m as w,b as $,R as H,d as U,w as T,f,S as R,v as C,g as W,T as E,i as o,o as b,c as y,C as D,h as k,F as v}from"./3LWHPPPh.js";async function L({immediate:_=!1}){const r=$().public.yearSlug,i=`getHomepageCities-${r}`,{execute:c,pending:h,data:t,error:l}=await w(i,()=>H(r),{immediate:_});return{homepageCitiesData:t,homepageCitiesErrorMessage:l,doGetHomepageCitiesIsRunning:h,doGetHomepageCities:async()=>{t.value||await c()}}}const G={key:0},V={key:1},I=U({__name:"DateSection",async setup(_){let s,r;const i=$(),{homepageCitiesData:c,doGetHomepageCities:h}=([s,r]=T(()=>L({immediate:!0})),s=await s,r(),s),t=f(()=>c.value?.cities||[]),l={sydney:"NSW",melbourne:"VIC",perth:"WA",canberra:"ACT",brisbane:"QLD",adelaide:"SA","byron-bay":"NSW",ballina:"NSW","gold-coast":"QLD",hobart:"TAS","victor-harbor":"SA","mount-gambier":"SA",renmark:"SA",parramatta:"NSW",bunbury:"WA",bendigo:"VIC",darwin:"NT",warrawong:"NSW"};function u(e,a){if(!e||!a)return"TBA";const n=new Date(e),p=new Date(a),A={day:"numeric",month:"long"};return`${n.toLocaleDateString("en-AU",A)} - ${p.toLocaleDateString("en-AU",A)}`}const d=f(()=>!t.value||t.value.length===0?[]:t.value.filter(e=>e.isNational).map(e=>({city:`${e.name}, ${e.state||l[e.keyUrl]||""}`,dates:u(e.dateStart,e.dateEnd),link:`${i.public.hostURL}/${e.keyUrl}`,disabled:!e.isActive}))),m=f(()=>!t.value||t.value.length===0?[]:t.value.filter(e=>!e.isNational).map(e=>({city:`${e.name}, ${e.state||l[e.keyUrl]||""}`,dates:u(e.dateStart,e.dateEnd),link:`${i.public.hostURL}/${e.keyUrl}`,disabled:!e.isActive}))),{$gsap:x}=R(),g=C(),S=C();return W(()=>{g.value&&(S.value=x.context(e=>{e.selector("h1__deprecated").forEach((n,p)=>{x.from(n,{opacity:0,y:50,duration:5,delay:p*.1,scrollTrigger:{trigger:n,start:"top 80%",end:"top 30%",scrub:!0,once:!0}})})},g.value))}),E(()=>{S.value?.revert()}),(e,a)=>{const n=N;return o(d).length||o(m).length?(b(),y("div",{key:0,class:"container mx-auto px-4 lg:px-8 pt-10 pb-20 space-y-12",ref_key:"container",ref:g},[o(d).length?(b(),y("div",G,[a[0]||(a[0]=D("h1",{class:"font-af text-af-text-accent text-4xl border-b-4 border-af-border-accent mb-4"},"Festival Dates",-1)),k(n,{festivals:o(d)},null,8,["festivals"])])):v("",!0),o(m).length?(b(),y("div",V,[a[1]||(a[1]=D("h1",{class:"font-af text-af-text-accent text-4xl border-b-4 border-af-border-accent mb-4"},"Regional Dates",-1)),k(n,{festivals:o(m)},null,8,["festivals"])])):v("",!0)],512)):v("",!0)}}});export{I 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.