PageSourceSearch

https://www.budget.vic.gov.au/_nuxt/Cj9-SA6o.js

js budget.vic.gov.au collected 2026-10-02 08:41:12 UTC 4,664 bytes, 1 lines download raw bytes

1import{d as M,n as E,o as n,f as o,c as d,a3 as $,j as x,i as V,t as C,h as c,s as j,$ as O,l as z,I as T,O as A,g as p,F as b,v as w,a4 as D,a6 as y}from"./B3RhqqJg.js";import{R as k}from"./B-s_87-9.js";import{R as q}from"./DhR2jnLd.js";import"./CwT4WOn1.js";const P={class:"rpl-media-gallery__content"},H=["id"],J=["id"],K=M({__name:"RplMediaGalleryContent",props:{id:{},title:{},caption:{default:void 0},image:{default:void 0},showFullScreen:{type:Boolean,default:!1}},emits:["fullscreen"],setup(e,{emit:f}){const s=e,m=f,{emitRplEvent:v}=E("rpl-media-gallery",m),r=z(()=>`View '${s.title}' fullscreen`),u=()=>{v("fullscreen",{action:"click",text:r.value,name:s.title})};return(i,g)=>(n(),o("div",P,[e.image?(n(),d($,{key:0,src:e.image,aspect:{xs:"wide"},sizes:"xs:768px",alt:"",class:"rpl-media-gallery__image rpl-u-print-only"},null,8,["src"])):x("",!0),V("h3",{id:`${e.id}-title`,class:"rpl-type-h3 rpl-u-margin-b-2","data-cy":"title"},C(e.title),9,H),e.caption?(n(),o("p",{key:1,id:`${e.id}-caption`,class:"rpl-media-gallery__caption rpl-type-p","data-cy":"caption"},C(e.caption),9,J)):x("",!0),e.showFullScreen?(n(),d(O,{key:2,variant:"none",class:"rpl-media-gallery__button rpl-u-screen-only","icon-name":"icon-enlarge-square-filled","icon-position":"left",theme:"default",onClick:u},{default:c(()=>[j(C(r.value),1)]),_:1})):x("",!0)]))}}),F=Object.assign(K,{__name:"RplMediaGalleryContent"}),Q=M({__name:"RplMediaGallery",props:{id:{},items:{},background:{type:Boolean,default:!0}},emits:["paginate","swipe","viewFullscreen"],setup(e,{emit:f}){const s=e,m=f,{emitRplEvent:v}=E("rpl-media-gallery",m),r=y(!1),u=y(0),i=y(0),g=y(0),_=y(0),L=a=>{u.value=a.value,S(a)},I=a=>{i.value=a.value,S(a)},N=({value:a})=>{g.value=a},U=({value:a})=>{_.value=a},S=({type:a,action:h,text:l,value:t})=>{v(a,{action:h,text:l,label:s.items[t].title,index:t+1},{global:!0})},R=({text:a})=>{r.value=!r.value,r.value&&(i.value=u.value,_.value=g.value),v("viewFullscreen",{action:r.value?"enter":"exit",text:a,label:s.items[i.value]?.title,index:u.value+1},{global:!0})},B=(a,h,l)=>{let t=`${a}-${s.id}-${l}-title`;return h?.caption&&(t+=` ${a}-${s.id}-${l}-caption`),t},G=a=>{r.value&&(a.key==="ArrowLeft"&&i.value>0?i.value=i.value-1:a.key==="ArrowRight"&&i.value<s.items.length-1&&(i.value=i.value+1))};return T(()=>{window.addEventListener("keydown",G,!1)}),A(()=>{window.removeEventListener("keydown",G,!1)}),(a,h)=>(n(),o("div",{class:D({"rpl-media-gallery":!0,"rpl-media-gallery--background":s.background})},[p(k,{"current-slide":u.value,"show-pagination":!1,"change-notice":!1,class:"rpl-media-gallery__primary-images rpl-u-screen-only","data-cy":"gallery-images",onChange:N},{default:c(()=>[(n(!0),o(b,null,w(e.items,(l,t)=>(n(),d($,{key:t,src:l.thumbnail,alt:l.alt,aspect:{xs:"wide"},sizes:"xs:768px","data-cy":"image",class:"rpl-media-gallery__image","aria-describedby":B("primary",l,t)},null,8,["src","alt","aria-describedby"]))),128))]),_:1},8,["current-slide"]),p(k,{effect:"fade","show-tally":!0,"current-slide":g.value,"change-notice":e.items[g.value].title,class:"rpl-media-gallery__primary-content","data-cy":"gallery-content",onChange:L},{default:c(()=>[(n(!0),o(b,null,w(e.items,(l,t)=>(n(),d(F,{id:`primary-${e.id}-${t}`,key:t,title:l.title,caption:l.caption,image:l.image,"show-full-screen":!0,onFullscreen:R},null,8,["id","title","caption","image"]))),128))]),_:1},8,["current-slide","change-notice"]),p(q,{"is-open":r.value,"class-name":"rpl-media-gallery__modal",onClose:R},{below:c(()=>[p(k,{effect:"fade","show-tally":!0,"current-slide":_.value,"change-notice":e.items[_.value].title,class:"rpl-media-gallery__modal-content",onChange:I},{default:c(()=>[(n(!0),o(b,null,w(e.items,(l,t)=>(n(),d(F,{id:`gallery-${e.id}-${t}`,key:t,title:l.title,caption:l.caption,image:l.image,"show-full-screen":!1},null,8,["id","title","caption","image"]))),128))]),_:1},8,["current-slide","change-notice"])]),default:c(()=>[p(k,{"current-slide":i.value,"show-pagination":!1,"change-notice":!1,class:"rpl-media-gallery__modal-images",onChange:U},{default:c(()=>[(n(!0),o(b,null,w(e.items,(l,t)=>(n(),d($,{key:t,src:l.image,alt:l.alt,fit:"contain",class:"rpl-media-gallery__image","aria-describedby":B("gallery",l,t)},null,8,["src","alt","aria-describedby"]))),128))]),_:1},8,["current-slide"])]),_:1},8,["is-open"])],2))}}),W=Object.assign(Q,{__name:"RplMediaGallery"}),X=M({__name:"MediaGallery",props:{id:{},items:{},hasSidebar:{type:Boolean},hasTitle:{type:Boolean}
1,pageBackground:{}},setup(e){return(f,s)=>{const m=W;return n(),d(m,{id:e.id,items:e.items},null,8,["id","items"])}}}),le=Object.assign(X,{__name:"TideLandingPageMediaGallery"});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.