import{M as B,E as r,aL as S,aJ as E,N as l,W as n,a8 as o,Y as i,X as c,V as u,P as N,Q as T,e as v,aN as L,U as m,aA as P,b2 as $,O as s,R as g,aS as z,T as A,S as D,aP as H}from"./vendor-CsGITfgk.js";import{b0 as O,d as W}from"./index-GCDRvGOr.js";const F=["data-component-id"],R={class:"relative mx-auto w-full max-w-screen-xl px-5 md:px-12"},X={key:0,class:"mb-6 text-center text-2xl font-bold lg:text-5xl"},G={key:1,class:"mb-7 text-center text-base"},J={class:"relative"},K={key:0,class:"my-3 text-2xl font-bold uppercase"},M={key:1,class:"text-sm"},Q={class:"vc-slider__navigation"},U={class:"vc-slider__btn vc-slider__btn--prev"},Y={class:"vc-slider__btn vc-slider__btn--next"},j=B({__name:"slider",props:{id:{},height:{default:"auto"},background:{default:"bg-neutral-100"},slides:{},title:{},subtitle:{},isTransparent:{type:Boolean}},setup(b){$(e=>({"2ac880cc":f.value}));const a=b,x=S(O),h={small:{xs:250,sm:250,md:400,lg:400,xl:450,"2xl":450},medium:{xs:300,sm:300,md:450,lg:450,xl:500,"2xl":500},large:{xs:350,sm:350,md:500,lg:500,xl:550,"2xl":550}},f=r(()=>{const e=x.current().value.at(-1)||"xs";return a.height==="auto"?"auto":`${h[a.height][e]}px`}),d=r(()=>E()?.uid),k=r(()=>({prevEl:`[data-component-id="${d.value}"] .vc-slider__btn--prev`,nextEl:`[data-component-id="${d.value}"] .vc-slider__btn--next`,lockClass:"vc-slider__btn--lock",hiddenClass:"vc-slider__btn--hidden",disabledClass:"vc-slider__btn--disabled"})),y=[H],C=r(()=>({[a.background]:!a.isTransparent,"py-10 lg:py-24":a.title||a.subtitle}));function w(e){return e.startsWith("/")?"router-link":"a"}function I(e){return e.url?e.url.startsWith("/")?{to:e.url,title:e.title}:{href:e.url,title:e.title,target:"_blank"}:{}}return(e,q)=>{const V=m("VcImage"),_=m("VcIcon");return s(),l("div",{class:P(["slider-block",C.value]),"data-component-id":d.value},[n("div",R,[e.title?(s(),l("div",X,i(e.title),1)):o("",!0),e.subtitle?(s(),l("div",G,i(e.subtitle),1)):o("",!0),n("div",J,[c(v(L),{"slides-per-view":1,"space-between":1,class:"w-full",modules:y,navigation:k.value},{default:u(()=>[(s(!0),l(N,null,T(e.slides,(t,p)=>(s(),g(v(z),{key:p,class:"text-center"},{default:u(()=>[(s(),g(A(t.url?w(t.url):"div"),D({class:"vc-slider__image-wrap"},{ref_for:!0},I(t)),{default:u(()=>[c(V,{src:t.image,"aria-label":t.title??e.$t("common.labels.slider_image"),lazy:p>0,class:"vc-slider__image"},null,8,["src","aria-label","lazy"])]),_:2},1040)),t.title?(s(),l("div",K,i(t.title),1)):o("",!0),t.text?(s(),l("div",M,i(t.text),1)):o("",!0)]),_:2},1024))),128))]),_:1},8,["navigation"]),n("div",Q,[n("div",U,[c(_,{class:"-ml-px",name:"chevron-left"})]),n("div",Y,[c(_,{class:"-mr-px",name:"chevron-right"})])])])])],10,F)}}}),te=W(j,[["__scopeId","data-v-6fdbec28"]]);export{te as default};
//# sourceMappingURL=slider-DD9OEnBM.js.map
