import{_ as g,a as w}from"./icon_r-D0QarJc4.js";import{d as y,r as p,f,o as l,c as o,a as e,F as b,g as k,n as c,t as v,h as _}from"./index-DgWYpsy5.js";const D={class:"overflow-visible"},C={class:"relative"},$=["src","alt"],B={class:"absolute top-2/3 md:top-3/4 px-[8%] text-white"},S={key:0,class:"text-3xl font-bold"},j={key:1,class:"mt-3 text-xl md:text-base leading-9 text-wrap"},F={class:"flex mt-8 md:mt-14"},N=e("img",{class:"w-[18px] h-[18px]",src:g,alt:"left"},null,-1),O=[N],R=e("img",{src:w,alt:"right"},null,-1),V=[R],E=y({__name:"ImageSwiper",props:{gap:{},imageData:{}},setup(h){const n=h,i=p(!1),a=p(0),d=f(()=>a.value>=0),u=f(()=>(i.value?(n.imageData.length-1)*-100:(n.imageData.length-2)*-50)>=a.value);function m(s){d.value&&s===1||u.value&&s===-1||(i.value=document.body.getBoundingClientRect().width<768,a.value+=(i.value?100:50)*s,i.value&&a.value%100&&(a.value+=50))}return(s,r)=>(l(),o("div",D,[e("div",{class:"whitespace-nowrap transition-transform duration-500 ease-in-out",style:c({transform:`translateX(${a.value}%)`})},[(l(!0),o(b,null,k(n.imageData,(t,x)=>(l(),o("div",{key:x,class:"inline-block w-full md:w-1/2",style:c({paddingRight:n.gap})},[e("div",C,[e("img",{src:t.src,alt:t.title},null,8,$),e("div",B,[t.title?(l(),o("h3",S,v(s.$t(t.title)),1)):_("",!0),t.desc?(l(),o("p",j,v(s.$t(t.desc)),1)):_("",!0)])])],4))),128))],4),e("div",F,[e("div",{class:"w-[60px] h-[60px] rounded-full flex justify-center items-center mr-[30px]",style:c({"background-color":d.value?"#e7e7e7":"#000",cursor:d.value?"not-allowed":"pointer"}),onClick:r[0]||(r[0]=t=>m(1))},O,4),e("div",{class:"w-[60px] h-[60px] rounded-full flex justify-center items-center",style:c({"background-color":u.value?"#e7e7e7":"#000",cursor:u.value?"not-allowed":"pointer"}),onClick:r[1]||(r[1]=t=>m(-1))},V,4)])]))}});export{E as _};