1import{p as g,b as c,x as f,Q as l,R as n,U as t,Y as w,a1 as V,z as r,u as e,ab as _,a7 as k,a8 as y,a9 as b,$ as v,a3 as P,F as x,Z as B,ac as C}from"./BjkNzLDZ.js";import{u as S}from"./-pI9FhSw.js";import{b as N,c as $,V as z,d as M,a as A}from"./Bu5EdTVt.js";const F={class:"text-center"},D=g({__name:"ThePhotosSwiper",props:{page:{}},setup(u){const d=u,{request:h}=S(),a=c([]),s=c({loop:!0,breakpoints:{0:{slidesPerView:1,spaceBetween:20},500:{slidesPerView:2,spaceBetween:20},768:{slidesPerView:3,spaceBetween:20}}});async function m(){try{const{data:o}=await h("primary",`gallery-photo?page=${d.page}`);a.value=o,a.value.length<4&&(s.value.loop=!1,s.value.breakpoints[768].slidesPerView=Math.min(a.value.length,3),s.value.breakpoints[500].slidesPerView=Math.min(a.value.length,2),s.value.breakpoints[0].slidesPerView=1)}catch(o){console.log(o)}}return f(()=>{m()}),(o,I)=>(l(),n(z,null,{default:t(()=>[w("h2",F,V(o.$t("photos")),1),r($,{class:"pa-4"},{default:t(()=>[r(N,{cols:"12",class:"mx-auto mt-10"},{default:t(()=>[e(a).length?(l(),n(e(_),{key:0,modules:[e(k),e(y),e(b)],autoplay:{delay:3e3,disableOnInteraction:!1},pagination:{clickable:!0},loop:e(s).loop,breakpoints:e(s).breakpoints,class:"custom-height-gallery"},{default:t(()=>[(l(!0),v(x,null,P(e(a),(i,p)=>(l(),n(e(C),{key:p},{default:t(()=>[r(M,{class:"pa-0 rounded-xl position-relative",height:"400px"},{default:t(()=>[r(A,{height:"100%",src:i,"lazy-src":i,alt:`news_${p}`,cover:""},null,8,["src","lazy-src","alt"])]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["modules","loop","breakpoints"])):B("",!0)]),_:1})]),_:1})]),_:1}))}});export{D 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.