import{F as V,b3 as S,m as r,aM as E,aK as T,P as v,Q as l,R as s,T as n,W as o,a0 as i,X as c,a1 as u,a6 as N,a7 as P,_ as m,e as g,aO as $,a9 as z,a8 as D,aP as F,Z as H,aS as L}from"./vendor-DJC-2VPc.js";import{b2 as O,d as W}from"./index-BZco6cza.js";const A=["data-component-id"],K={class:"relative mx-auto w-full max-w-screen-xl px-5 md:px-12"},R={key:0,class:"mb-6 text-center text-2xl font-bold lg:text-5xl"},X={key:1,class:"mb-7 text-center text-base"},G={class:"relative"},M={key:0,class:"my-3 text-2xl font-bold uppercase"},Q={key:1,class:"text-sm"},Z={class:"vc-slider__navigation"},j={class:"vc-slider__btn vc-slider__btn--prev"},q={class:"vc-slider__btn vc-slider__btn--next"},J=V({__name:"slider",props:{id:{},height:{default:"auto"},background:{default:"bg-neutral-100"},slides:{},title:{},subtitle:{},isTransparent:{type:Boolean}},setup(b){S(e=>({"2ac880cc":f.value}));const a=b,x=E(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(()=>T()?.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=[L],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,U)=>{const B=v("VcImage"),_=v("VcIcon");return s(),l("div",{class:H(["slider-block",C.value]),"data-component-id":d.value},[n("div",K,[e.title?(s(),l("div",R,i(e.title),1)):o("",!0),e.subtitle?(s(),l("div",X,i(e.subtitle),1)):o("",!0),n("div",G,[c(g(F),{"slides-per-view":1,"space-between":1,class:"w-full",modules:y,navigation:k.value},{default:u(()=>[(s(!0),l(N,null,P(e.slides,(t,p)=>(s(),m(g($),{key:p,class:"text-center"},{default:u(()=>[(s(),m(z(t.url?w(t.url):"div"),D({class:"vc-slider__image-wrap"},{ref_for:!0},I(t)),{default:u(()=>[c(B,{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",M,i(t.title),1)):o("",!0),t.text?(s(),l("div",Q,i(t.text),1)):o("",!0)]),_:2},1024))),128))]),_:1},8,["navigation"]),n("div",Z,[n("div",j,[c(_,{class:"-ml-px",name:"chevron-left"})]),n("div",q,[c(_,{class:"-mr-px",name:"chevron-right"})])])])])],10,A)}}}),te=W(J,[["__scopeId","data-v-6fdbec28"]]);export{te as default};
//# sourceMappingURL=slider-BVCVT09N.js.map
