import{C as V,aT as E,aA as N,q as r,az as S,N as v,D as l,E as s,P as n,a3 as o,R as i,Q as c,O as u,F as T,J as z,K as m,u as g,aB as D,M as L,L as $,aC as A,am as F,aG as H}from"./vendor-BGtMsOoo.js";import{aW as O,e as P}from"./index-CRze-aDK.js";const W=["data-component-id"],G={class:"relative mx-auto w-full max-w-screen-xl px-5 md:px-12"},K={key:0,class:"mb-6 text-center text-2xl font-bold lg:text-5xl"},R={key:1,class:"mb-7 text-center text-base"},q={class:"relative"},J={key:0,class:"my-3 text-2xl font-bold uppercase"},M={key:1,class:"text-sm"},Q={class:"vc-slider__navigation"},X={class:"vc-slider__btn vc-slider__btn--prev"},j={class:"vc-slider__btn vc-slider__btn--next"},U=V({__name:"slider",props:{id:{},height:{default:"auto"},background:{default:"bg-neutral-100"},slides:{},title:{},subtitle:{},isTransparent:{type:Boolean}},setup(x){E(e=>({"445d57b3":f.value}));const a=x,b=N(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=b.current().value.at(-1)||"xs";return a.height==="auto"?"auto":`${h[a.height][e]}px`}),d=r(()=>{var e;return(e=S())==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"})),C=[H],y=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,Y)=>{const B=v("VcImage"),_=v("VcIcon");return s(),l("div",{"data-component-id":d.value,class:F(y.value)},[n("div",G,[e.title?(s(),l("div",K,i(e.title),1)):o("",!0),e.subtitle?(s(),l("div",R,i(e.subtitle),1)):o("",!0),n("div",q,[c(g(A),{"slides-per-view":1,"space-between":1,class:"w-full",modules:C,navigation:k.value},{default:u(()=>[(s(!0),l(T,null,z(e.slides,(t,p)=>(s(),m(g(D),{key:p,class:"text-center"},{default:u(()=>[(s(),m(L(t.url?w(t.url):"div"),$({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",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",X,[c(_,{class:"-ml-px",name:"chevron-left"})]),n("div",j,[c(_,{class:"-mr-px",name:"chevron-right"})])])])])],10,W)}}}),te=P(U,[["__scopeId","data-v-89c805ec"]]);export{te as default};
//# sourceMappingURL=slider-DWBUk0aA.js.map
