import{K as V,a$ as N,aI as S,B as r,aH as E,S as v,L as l,M as s,U as n,a7 as o,W as i,V as c,T as u,N as T,O as $,P as m,b as g,aJ as H,R as L,Q as z,aK as D,aq as K,aN as O}from"./vendor-bSWkQivH.js";import{an as P,e as W}from"./index-Dqv5IkpS.js";const A=["data-component-id"],F={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"},q={key:1,class:"mb-7 text-center text-base"},G={class:"relative"},J={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"},X={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(x){N(e=>({"815d25a4":f.value}));const a=x,b=S(P),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=b.current().value.at(-1)||"xs";return a.height==="auto"?"auto":`${h[a.height][e]}px`}),d=r(()=>{var e;return(e=E())==null?void 0: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=[O],C=r(()=>({[a.background]:!a.isTransparent,"py-10 lg:py-24":a.title||a.subtitle}));function I(e){return e.startsWith("/")?"router-link":"a"}function w(e){return e.url?e.url.startsWith("/")?{to:e.url,title:e.title}:{href:e.url,title:e.title,target:"_blank"}:{}}return(e,Y)=>{const B=v("VcImage"),_=v("VcIcon");return s(),l("div",{"data-component-id":d.value,class:K(C.value)},[n("div",F,[e.title?(s(),l("div",R,i(e.title),1)):o("",!0),e.subtitle?(s(),l("div",q,i(e.subtitle),1)):o("",!0),n("div",G,[c(g(D),{"slides-per-view":1,"space-between":1,class:"w-full",modules:y,navigation:k.value},{default:u(()=>[(s(!0),l(T,null,$(e.slides,(t,p)=>(s(),m(g(H),{key:p,class:"text-center"},{default:u(()=>[(s(),m(L(t.url?I(t.url):"div"),z({class:"vc-slider__image-wrap",ref_for:!0},w(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",J,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",X,[c(_,{class:"-mr-px",name:"chevron-right"})])])])])],10,A)}}}),te=W(j,[["__scopeId","data-v-4e81e614"]]);export{te as default};
//# sourceMappingURL=slider-CELx73pN.js.map
