"use strict";exports.id=608,exports.ids=[608],exports.modules={62003:(e,r,l)=>{l.d(r,{s:()=>ChevronLeft});var s=l(20997);let ChevronLeft=e=>s.jsx("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...e,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})},10608:(e,r,l)=>{l.a(e,async(e,s)=>{try{l.r(r),l.d(r,{default:()=>ReviewImageModal});var t=l(20997),i=l(25675),a=l.n(i),o=l(45009),n=l(62003),d=l(86998),c=l(18537),x=l(36805),h=l(16689),u=e([x]);x=(u.then?(await u)():u)[0];let m={slidesPerView:1,spaceBetween:0};function ReviewImageModal(){let{data:e}=(0,o.X9)(),[r,l]=(0,h.useState)(null),s=(0,h.useRef)(null),i=(0,h.useRef)(null);return(0,t.jsxs)("div",{className:"m-auto block w-full rounded p-6 xs:w-[450px] xs:p-5 md:w-[590px] lg:w-[720px] lg:p-7",children:[(0,t.jsxs)("div",{className:"relative mb-3 w-full overflow-hidden xs:mt-8 md:mt-10 xl:mb-5",children:[t.jsx(x.tq,{id:"reviewGallery",speed:400,allowTouchMove:!1,thumbs:{swiper:r},modules:[x.W_,x.o3],navigation:{prevEl:s.current,nextEl:i.current},...m,children:e?.images?.map(e=>t.jsx(x.o5,{className:"relative flex aspect-[3/2] items-center justify-center bg-light-200 dark:bg-dark-200",children:t.jsx(a(),{fill:!0,src:e?.original??c.Z,alt:`Product gallery ${e.id}`,className:"object-contain"})},`review-gallery-${e.id}`))}),(0,t.jsxs)("div",{className:"absolute top-2/4 z-10 flex w-full items-center justify-between px-2.5 xl:px-4",children:[t.jsx("div",{ref:s,className:"flex h-8 w-8 -translate-y-1/2 transform cursor-pointer items-center justify-center rounded-full border border-light-400 bg-light text-dark/90 shadow-xl transition duration-300 hover:bg-light-200 hover:text-brand-dark focus:outline-none xl:h-9 xl:w-9",children:t.jsx(n.s,{className:"h-4 w-4 xl:h-[18px] xl:w-[18px]"})}),t.jsx("div",{ref:i,className:"flex h-8 w-8 -translate-y-1/2 transform cursor-pointer items-center justify-center rounded-full border border-light-400 bg-light text-dark/90 shadow-xl transition duration-300 hover:bg-light-200 hover:text-brand-dark focus:outline-none xl:h-9 xl:w-9",children:t.jsx(d._,{className:"h-4 w-4 xl:h-[18px] xl:w-[18px]"})})]})]}),t.jsx("div",{className:"flex-shrink-0",children:t.jsx(x.tq,{id:"reviewGalleryThumbs",freeMode:!0,observer:!0,slidesPerView:4,onSwiper:l,observeParents:!0,watchSlidesProgress:!0,children:e?.images?.map(e=>t.jsx(x.o5,{className:"relative flex aspect-[3/2] cursor-pointer items-center justify-center border border-light-500 transition hover:opacity-75 dark:border-dark-500",children:t.jsx(a(),{fill:!0,src:e?.thumbnail??c.Z,alt:`Review thumb gallery ${e.id}`,className:"object-cover"})},`review-thumb-gallery-${e.id}`))})})]})}s()}catch(e){s(e)}})}};