1import{_ as V}from"./BARCLSFM.js";import{_ as j}from"./BeDTnonf.js";import{i as H,G as O}from"./C677hslQ.js";import{_ as F}from"./BJ_W4llo.js";import{z,k as q,H as N,M as s,N as p,V as r,u as n,P as f,$ as E,Q as y,L as m,Z as x,J as S,_ as A,X as g,Y as L,b,w as C,G as D,E as J,al as T,am as G,an as M,a7 as P}from"./CrQeYvpp.js";import{_ as Q}from"./CTf5dhcI.js";import{_ as U}from"./DfEuLXg9.js";const X={class:"flex size-full flex-col"},Y={class:"relative bg-gray-200"},Z={class:"group absolute inset-0 bg-white/10 opacity-0 transition-opacity hover:pointer-events-auto hover:opacity-100"},K=["aria-label"],R={class:"-mx-px -mt-px flex grow flex-col justify-between bg-gray-500 px-4 pb-10 pt-5 text-white md:px-10 md:pb-14 md:pt-8"},W={key:0,class:"mb-3 whitespace-pre-wrap text-sm font-light md:max-w-3/4"},ee=["innerHTML"],te={key:0,class:"my-6 flex flex-wrap gap-x-3 md:mb-2"},ne=z({__name:"SliderSlide",props:{data:{type:Object,required:!0}},emits:["open-slider-full-screen"],setup(c){const d=c,e=q(()=>d.data.content_source.value==="linked"?d.data.entry:d.data);return(a,u)=>{const _=N("AppImage"),t=j,o=H,h=F;return s(),p("div",X,[r("div",Y,[n(e).image?(s(),f(_,{key:0,src:n(e).image,loading:"eager",class:E(["min-h-120 select-none object-contain md:h-[75vh]",{"w-full":n(e).image.width>n(e).image.height,"mx-auto w-auto":n(e).image.width<n(e).image.height}])},null,8,["src","class"])):y("",!0),r("div",Z,[r("button",{"aria-label":a.$t("open_slider_full_screen"),type:"button",class:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-10",onClick:u[0]||(u[0]=l=>a.$emit("open-slider-full-screen"))},[m(t,{class:"size-10 text-white transition-transform hover:scale-125"})],8,K)])]),r("div",R,[r("div",null,[n(e).heading?(s(),p("h3",W,x(n(e).heading),1)):y("",!0),r("div",{class:"wysiwyg-only-lists line-clamp-6 text-lg font-semibold md:text-xl",innerHTML:n(e).text},null,8,ee)]),n(e).links?(s(),p("div",te,[(s(!0),p(S,null,A(n(e).links,l=>(s(),p(S,null,[l.link?(s(),f(o,{key:l.id,to:l.link,class:"hover-focus:bg-white/90",variant:"primary"},{default:g(()=>[L(x(l.link_text),1)]),_:2},1032,["to"])):y("",!0)],64))),256))])):y("",!0),m(h,{class:"absolute bottom-4 left-4 !text-left md:left-10",copyright:n(e).copyright},null,8,["copyright"])])])}}}),se={class:"fixed inset-0 z-50 bg-white/60"},ae=["aria-label"],oe=z({__name:"SliderGallery",props:{open:{type:Boolean,default:!1},images:{type:Array,required:!0},activeIndex:{type:Number,default:1}},emits:["close"],setup(c){const d=c,e=b(null);let a=null,u=null;function _(t){u=t}return C(()=>d.activeIndex,t=>{u&&u.slideTo(t-1)}),C(()=>d.open,t=>{t?a.value=!0:a.value=!1}),D(()=>{e.value=document.body,a=O(e)}),J(()=>{a.value&&(a.value=!1)}),(t,o)=>{const h=Q,l=N("AppImage"),k=G,$=M;return s(),p("div",se,[r("button",{type:"button","aria-label":t.$t("close"),onClick:o[0]||(o[0]=w=>t.$emit("close"))},[m(h,{class:"absolute right-4 top-4 z-[60] size-6 text-black"})],8,ae),m($,{modules:[n(T)],"initial-slide":c.activeIndex-1,"slides-per-view":"auto","allow-touch-move":!0,navigation:!0,class:"customs-swiper-style-fullscreen h-full",onSwiper:_},{default:g(()=>[(s(!0),p(S,null,A(c.images,(w,I)=>(s(),f(k,{key:I,class:"p-[5%]"},{default:g(()=>[m(l,{src:w,loading:"eager",class:"size-full select-none object-contain"},null,8,["src"]),L(" "+x(c.activeIndex),1)]),_:2},1024))),128))]),_:1},8,["modules","initial-slide"])])}}}),le={class:"relative"},ie={class:"absolute bottom-4 right-4 z-10 text-white"},fe=z({__name:"Slider",props:{data:{},isOpen:{type:Boolean}},setup(c){const d=c,e=b(!1),a=b(1);function u(t){a.value=t.activeIndex+1}const _=b(0);return C(()=>d.isOpen,t=>{t&&_.value===0&&_.value++}),(t,o)=>{const h=V,l=ne,k=G,$=M,w=oe,I=U;return s(),f(I,{class:"w-auto"},{default:g(()=>{var B;return[m(h,{heading:t.data.heading,text:t.data.text},null,8,["heading","text"]),r("div",le,[m($,{modules:[n(T)],"slides-per-view":1,"allow-touch-move":!0,navigation:!0,class:"customs-swiper-style",onSlideChange:u},{default:g(()=>[(s(!0),p(S,null,A(t.data.slides,i=>(s(),f(k,{key:i.id},{default:g(()=>[(s(),f(l,{key:n(_),data:i,onOpenSliderFullScreen:o[0]||(o[0]=v=>e.value=!0)},null,8,["data"]))]),_:2},1024))),128))]),_:1},8,["modules"]),r("div",ie,x(n(a))+" / "+x((B=t.data.slides)==null?void 0:B.length),1)]),m(P,{name:"fade"},{default:g(()=>[n(e)?(s(),f(w,{key:0,images:t.data.slides.filter(i=>{var v;return i.image||((v=i.entry)==null?void 0:v.image)}).map(i=>{var v;return i.image||((v=i.entry)==null?void 0:v.image)}),"active-index":n(a),open:n(e),onClose:o[1]||(o[1]=i=>e.value=!1)},null,8,["images","active-index","open"])):y("",!0)]),_:1})]}),_:1})}}});
1export{fe as _}; 2//# sourceMappingURL=DoNoPG_g.js.map
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.