PageSourceSearch

https://khstores.com/_next/static/chunks/6457.4a5227c16acfff5d.js

js khstores.com collected 2026-10-04 01:51:40 UTC 7,280 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6457,9276],{67850:function(e,l,a){"use strict";a.r(l),a.d(l,{default:function(){return f}});var r=a(57437),t=a(2265),s=a(27648),i=a(25903),c=a(6759),o=a(27717),n=a(8455),u=a(69122),d=a(54423);let p=t.forwardRef(function(e,l){let{title:a,titleId:r,...s}=e;return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":r},s),a?t.createElement("title",{id:r},a):null,t.createElement("path",{fillRule:"evenodd",d:"M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}))});var _=a(49276),m=a(34346),v=a(19764);a(7354),a(76889),a(86968),a(57381);var h=a(73377),g=a(42123),C=a.n(g),f=e=>{let{name:l,productData:a,onProductClicked:g,carouselClassName:f,prevButtonId:x,nextButtonId:N,placement:P,viewAllUrl:j="",navPrevClass:w,navNextClass:I}=e,{storeData:y}=(0,u.G)(),[k,b]=(0,t.useState)(!1),[T,V]=(0,t.useState)(!0);(0,t.useEffect)(()=>{let e=(null==a?void 0:a.length)||0;b(e<1),V(e>4)},[a]);let E=(0,t.useCallback)((e,a)=>{g&&g(),i.Z.track("select_item",{item:e,position:a+1,placement:P,source:null!=l?l:""},y)},[g,y,P,l]),R=(0,t.useCallback)((e,l)=>{if((0,c.P9)(e))return(0,r.jsx)(m.Z,{product:e,productTileContainerClass:C().productTilePadding},e.id);{var a;let t=(0,o.DU)(e);return(0,r.jsx)(_.default,{productId:String(e.id)||"",productTitle:e.name||"",productType:e.productName||"",images:t,listingUrl:(0,n.e7)({listingSlug:null!==(a=e.listingSlug)&&void 0!==a?a:void 0,productId:(0,n.yL)(e.url||"")}),price:e.price||"",onProductClicked:()=>E(e,l),productTileContainerClass:C().productTilePadding})}},[E]),Z=k?"".concat(w," ").concat(C().navPrev):C().displayNone,D=T?"".concat(I," ").concat(C().navNext):C().displayNone;return a&&0!==a.length?(0,r.jsxs)("div",{className:f,children:[(0,r.jsxs)("div",{className:C().carouselContainer,children:[(0,r.jsx)("h2",{id:"you-might-also-like",children:l}),j.length>0&&(null==a?void 0:a.length)>4&&(0,r.jsx)(s.default,{href:j,children:(0,r.jsxs)("h5",{className:C().viewFullCollectionLink,children:["View full collection ",(0,r.jsx)(d.Z,{className:C().chevronRightIcon})]})})]}),(0,r.jsx)("div",{className:C().carouselRelative,children:(0,r.jsxs)("div",{className:C().carouselWFull,children:[(0,r.jsx)(v.tq,{slidesPerView:4,spaceBetween:20,navigation:{nextEl:N?"#".concat(N):void 0,prevEl:x?"#".concat(x):void 0},zoom:!0,pagination:{clickable:!0},breakpoints:{200:{slidesPerView:2,spaceBetween:20},768:{slidesPerView:3,spaceBetween:20},1024:{slidesPerView:4,spaceBetween:20}},virtual:!0,modules:[h.LG,h.oM,h.tl,h.W_],onSlideChange:e=>{let a=e.isBeginning,r=e.isEnd;b(!a),V(!r),i.Z.track("recommended_products_touched",{placement:P,source:l})},className:C().carouselList,"data-testid":"custom-collection-carousel",children:null==a?void 0:a.map((e,l)=>(0,r.jsx)(v.o5,{virtualIndex:Number(e.id),children:R(e,l)},e.id))}),(0,r.jsx)(p,{"data-testid":x,id:x,className:Z,"aria-hidden":"true"}),(0,r.jsx)(d.Z,{"data-testid":N,id:N,className:D,"aria-hidden":"true"})]})})]}):null}},49276:function(e,l,a){"use strict";a.r(l),a.d(l,{default:function(){return m}});var r=a(57437),t=a(2265),s=a(27648),i=a(86150),c=a(13962),o=a(75490),n=a.n(o),u=e=>{var l;let{images:a,interval:s=1e3,imageClass:i,imageAlt:o}=e,[u,d]=(0,t.useState)(0);return(0,t.useEffect)(()=>{let e;return u>0&&(e=window.setInterval(()=>{d(e=>(e+1)%a.length)},s)),()=>{clearInterval(e)}},[u,s,a.length]),(0,r.jsx)("div",{onMouseEnter:()=>{d(e=>(e+1)%a.length)},onMouseLeave:()=>{d(0)},className:n().imageContainer,children:a.length>0&&(0,r.jsx)(c.Z,{src:(null===(l=a[u])||void 0===l?void 0:l.src)||"",alt:o||"",fill:!0,sizes:"16rem",className:i,fallbackImage:a[0]})})},d=a(25903),p=a(51888),_=a.n(p),m=e=>{let l,{productId:a,productTitle:c,images:o,listingUrl:n,productType:p,price:m,currency:v,actionElement:h,onProductClicked:g,index:C,placement:f,productTileContainerClass:x}=e,N=(0,t.useCallback)(()=>{if(g&&g(),f&&"Search"===f){let e=C?C+1:0;d.Z.track("search_results_clicked",{price:m,position:e,listingUrl:n})}},[g,C,m,n,f]);return l=m&&!v?m:m&&v?(0,r.jsx)(i.Z,{amount:parseFloat(m),currencyCode:v}):(0,r.jsx)("span",{children:"Price not available"}),(null==o?void 0:o.length)>0?(0,r.jsxs)("div",{className:"".concat(_().productTile," ").concat(x),children:[h,(0,r.jsx)("div",{"data-testid":"product-image-container",className:_().productImageContainer,children:(0,r.jsxs)(s.default,{href:n,onClick:N,role:"link",children:[(0,r.jsx)("span",{className:"sr-only",children:c}),(0,r.jsx)(u,{images:o,imageAlt:c,imageClass:"".concat(_().productImage," group-hover:opacity-75")}
1)]},a)}),(0,r.jsxs)("div",{className:_().productInfoContainer,children:[(0,r.jsxs)("div",{className:_().productContent,children:[(0,r.jsx)("span",{"aria-hidden":"true",className:_().hiddenProductName}),(0,r.jsx)("span",{className:_().productName,children:c}),(0,r.jsx)("span",{className:_().productTypeClass,children:p})]}),(0,r.jsx)("span",{className:_().productPrice,children:l})]})]}):null}},86968:function(){},76889:function(){},42123:function(e){e.exports={carouselContainer:"Carousel_carouselContainer__LVfCY",carouselRelative:"Carousel_carouselRelative__ZMxs2",carouselWFull:"Carousel_carouselWFull__hKuAA",carouselList:"Carousel_carouselList__VI9ZO",carouselItem:"Carousel_carouselItem__xyiMM",carouselGroup:"Carousel_carouselGroup__P7cym",carouselImage:"Carousel_carouselImage__PuUU2",carouselImg:"Carousel_carouselImg__i7Jfe",carouselInfo:"Carousel_carouselInfo__xbr0u",carouselH3:"Carousel_carouselH3__6RKFq",carouselPrice:"Carousel_carouselPrice__DutHg",navPrev:"Carousel_navPrev__cdbBe",navNext:"Carousel_navNext__FijNd",displayNone:"Carousel_displayNone__KucHT",viewFullCollectionLink:"Carousel_viewFullCollectionLink__iJzC1",chevronRightIcon:"Carousel_chevronRightIcon__DcXoN",productTilePadding:"Carousel_productTilePadding__HG7Q4"}},75490:function(e){e.exports={imageContainer:"ImageCycle_imageContainer__imDOt"}},51888:function(e){e.exports={productTile:"ProductVisualDisplay_productTile__rqTw0",productImageContainer:"ProductVisualDisplay_productImageContainer__pc6R2",productImage:"ProductVisualDisplay_productImage__qF8cI",hiddenProductName:"ProductVisualDisplay_hiddenProductName__uhe26",productPrice:"ProductVisualDisplay_productPrice__kpgAh",productInfoContainer:"ProductVisualDisplay_productInfoContainer__WfezJ",productContent:"ProductVisualDisplay_productContent__Pw5C5",productName:"ProductVisualDisplay_productName__SCvU3",productTypeClass:"ProductVisualDisplay_productTypeClass__WefwZ"}},54423:function(e,l,a){"use strict";var r=a(2265);let t=r.forwardRef(function(e,l){let{title:a,titleId:t,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":t},s),a?r.createElement("title",{id:t},a):null,r.createElement("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});l.Z=t}}]);
2//# sourceMappingURL=6457.4a5227c16acfff5d.js.map

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.