import{F as B,bd as S,P as p,Q as n,R as s,T as r,W as o,a0 as i,X as c,a1 as _,a5 as E,a6 as T,_ as x,e as g,aX as N,a8 as L,a7 as $,m as d,aS as z,Z as D,aL as F,aQ as H,aV as P}from"./vendor-Dd8T34zR.js";import{bc as W,_ as X}from"./index-Vd7lvnU9.js";const A=["data-component-id"],O={class:"relative mx-auto w-full max-w-screen-xl px-5 md:px-12"},Q={key:0,class:"mb-6 text-center text-2xl font-bold lg:text-5xl"},R={key:1,class:"mb-7 text-center text-base"},G={class:"relative"},K={key:0,class:"my-3 text-2xl font-bold uppercase"},Z={key:1,class:"text-sm"},j={class:"vc-slider__navigation"},q={class:"vc-slider__btn vc-slider__btn--prev"},J={class:"vc-slider__btn vc-slider__btn--next"},M=B({__name:"slider",props:{id:{},height:{default:"auto"},background:{default:"bg-neutral-100"},slides:{},title:{},subtitle:{},isTransparent:{type:Boolean}},setup(a){S(e=>({v74ec2124:f.value}));const l=a,b=F(W),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=d(()=>{const e=b.current().value.at(-1)||"xs";return l.height==="auto"?"auto":`${h[l.height][e]}px`}),u=d(()=>H()?.uid),k=d(()=>({prevEl:`[data-component-id="${u.value}"] .vc-slider__btn--prev`,nextEl:`[data-component-id="${u.value}"] .vc-slider__btn--next`,lockClass:"vc-slider__btn--lock",hiddenClass:"vc-slider__btn--hidden",disabledClass:"vc-slider__btn--disabled"})),y=[P],C=d(()=>({[l.background]:!l.isTransparent,"py-10 lg:py-24":l.title||l.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 V=p("VcImage"),v=p("VcIcon");return s(),n("div",{class:D(["slider-block",C.value]),"data-component-id":u.value},[r("div",O,[a.title?(s(),n("div",Q,i(a.title),1)):o("",!0),a.subtitle?(s(),n("div",R,i(a.subtitle),1)):o("",!0),r("div",G,[c(g(z),{"slides-per-view":1,"space-between":1,class:"w-full",modules:y,navigation:k.value},{default:_(()=>[(s(!0),n(E,null,T(a.slides,(t,m)=>(s(),x(g(N),{key:m,class:"text-center"},{default:_(()=>[(s(),x(L(t.url?w(t.url):"div"),$({class:"vc-slider__image-wrap"},{ref_for:!0},I(t)),{default:_(()=>[c(V,{src:t.image,"aria-label":t.title??e.$t("common.labels.slider_image"),lazy:m>0,class:"vc-slider__image"},null,8,["src","aria-label","lazy"])]),_:2},1040)),t.title?(s(),n("div",K,i(t.title),1)):o("",!0),t.text?(s(),n("div",Z,i(t.text),1)):o("",!0)]),_:2},1024))),128))]),_:1},8,["navigation"]),r("div",j,[r("div",q,[c(v,{class:"-ml-px",name:"chevron-left"})]),r("div",J,[c(v,{class:"-mr-px",name:"chevron-right"})])])])])],10,A)}}}),te=X(M,[["__scopeId","data-v-2a1b2989"]]);export{te as default};
//# sourceMappingURL=slider-zsltO7o5.js.map
