1import{s as n}from"/build/_shared/chunk-J7XA4L7L.js";import{a as T}from"/build/_shared/chunk-SHH6ZRVL.js";import{ia as a,ma as w,oa as b}from"/build/_shared/chunk-XNV53SGE.js";import{d as g,g as x,h as e,i as u}from"/build/_shared/chunk-2ADOHOB6.js";u();var o=g(x()),d=g(T());function k({product:{images:v,name:t,id:f,slug:s}}){let{isMobile:S}=b(),[p,N]=(0,o.useState)(),[c,h]=(0,o.useState)(),[l,y]=(0,o.useState)(v),[{variantImages:m}]=w();return(0,o.useEffect)(()=>{m&&y([...m,...v]),c?.slickGoTo(0,!1),p?.slickGoTo(0,!1)},[m]),S?e.createElement("div",{className:"my-4 bg-[#f3f3f3] text-center"},e.createElement("div",{className:"relative -ml-1 -mr-4 -mb-2 overflow-hidden"},e.createElement(n,{className:"absolute right-4 top-4 z-10 dWEEEw",id:f}),e.createElement(d.default,{ref:i=>h(i),slidesToShow:1,swipeToSlide:!0,focusOnSelect:!0,pauseOnHover:!0,adaptiveHeight:!0,variableWidth:!0,arrows:!1},l?.map(({src:i},r)=>e.createElement("div",{key:r},e.createElement("div",{className:"loading1 mx-1 aspect-square w-[300px]"},e.createElement("img",{className:"inline-block align-bottom",title:t,width:550,height:550,src:a(i,{width:550},s),alt:t}))))))):e.createElement("div",{className:"grid grid-cols-[90px,1fr] gap-4 text-center overflow-hidden"},e.createElement("div",{className:"thumb-nav h-96 overscroll-y-auto"},e.createElement(d.default,{ref:i=>N(i),asNavFor:c,slidesToShow:l.length<4?l.length:4,swipeToSlide:!0,focusOnSelect:!0,vertical:!0,arrows:!1},l?.map(({src:i},r)=>e.createElement("img",{className:"loading1 mb-3 inline-block cursor-pointer border-2 border-transparent align-bottom shadow",title:t,width:90,height:90,src:a(i,{width:90},s),srcSet:`${a(i,{width:180},s)} 2x`,alt:t,key:r})))),e.createElement("div",{className:"relative"},e.createElement(n,{className:"absolute right-4 top-4 z-10 dWEEEw",id:f}),e.createElement(d.default,{ref:i=>h(i),asNavFor:p,slidesToShow:1,swipeToSlide:!0,adaptiveHeight:!0,focusOnSelect:!0,arrows:!1},l?.map(({src:i},r)=>e.createElement("div",{className:"px-1 text-center"},e.createElement("img",{className:"loading1 !inline-block max-h-[660px] align-bottom",title:t,src:a(i,{width:779},s),alt:t,key:r}))))))}export{k as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.