import{a as p,b as T,J as s,O as r,N as i,ah as B,L as m,X as t,M as O,u as n,ai as w,a2 as v,a3 as f,a4 as L,a5 as _,aj as N,ak as z}from"./swiper-vue.DQP6BQs2.js";import{_ as R}from"./client-only.saeGHt6_.js";import{k as V,s as j}from"./entry.D6zHP6Ts.js";const q={key:0,class:"absolute"},Y={class:"fixed top-0 z-[999] h-screen w-full bg-[rgba(0,0,0,0.8)] md:max-w-pc"},A={class:"fixed top-1/2 w-full -translate-y-1/2 md:max-w-pc"},E={class:"px-5"},F=["src"],J={class:"mx-auto mt-8 flex p-4"},M=["src"],K={__name:"ReviewImgSwiper",props:{reviewImgs:{type:Array,required:!0},isOpen:{type:Boolean,required:!0}},emits:["closeReviewImgList"],setup(a,{emit:b}){const g=a,x=b,o=p(0),c=p(null),S=e=>{c.value=e},y=e=>{o.value=e.activeIndex},C=e=>{o.value=e.activeIndex},k=()=>{x("closeReviewImgList"),c.value=null,o.value=0};return T(()=>g.isOpen,e=>{e?(document.body.style.overflowY="hidden",V()):(document.body.style.overflowY="auto",j())}),(e,X)=>{const d=N,h=z,I=R;return s(),r(I,null,{default:i(()=>[(s(),r(B,{to:"#main_wrapper"},[a.isOpen?(s(),m("div",q,[t("div",Y,[t("i",{class:"rb-close fixed right-5 top-10 z-[999] cursor-pointer text-32xl text-white md:right-[calc(50%-163px)] md:top-10 xl:right-[calc(50%-350px)]",onClick:k}),t("div",A,[O(h,{modules:["SwiperThumbs"in e?e.SwiperThumbs:n(w)],thumbs:{swiper:n(c)},"slides-per-view":1,onSlideChange:y},{default:i(()=>[(s(!0),m(v,null,f(a.reviewImgs,(u,l)=>(s(),r(d,{key:l,class:"my-auto flex"},{default:i(()=>[t("div",E,[t("img",{src:u,class:"mx-auto h-full max-h-80"},null,8,F)])]),_:2},1024))),128))]),_:1},8,["modules","thumbs"]),t("div",J,[a.reviewImgs.length>1?(s(),r(h,{key:0,modules:["SwiperThumbs"in e?e.SwiperThumbs:n(w)],"watch-slides-progress":!0,"slides-per-view":a.reviewImgs.length,"space-between":6,class:"reviewImgThumbSwiper max-h-20 w-full",onSwiper:S,onSlideChange:C},{default:i(()=>[(s(!0),m(v,null,f(a.reviewImgs,(u,l)=>(s(),r(d,{key:l,class:"max-h-20 max-w-20"},{default:i(()=>[t("img",{src:u,class:L(["!h-20 !w-20 border object-cover",{"border-white":n(o)==l,"border-transparent":n(o)!=l}])},null,10,M)]),_:2},1024))),128))]),_:1},8,["modules","slides-per-view"])):_("",!0)])])])])):_("",!0)]))]),_:1})}}};export{K as default};
