1import{_ as a,t as B,bI as G,bJ as I,A as M,q as E,s as J,y as w,bK as K,a6 as Y,bL as Q,bM as U,I as X,v as u,$ as A,G as O,bN as Z}from"./listener.js";import{R as p,o as V,m as tt}from"./mobx.js";import{N as et}from"./client5.js";function R({direction:o,className:t,...i}){let n=o==="left"?G:I;return a("button",{className:B("kombos-slider-arrow",t),"aria-label":o==="left"?"Previous":"Next",...i},a(n,null))}var ot={One:1,Two:2,Three:3,Four:4,Five:5};function it(o){let{productList:t,title:i,addToCartText:n="Add to Cart",addedToCartText:r="Added to Cart",outOfStockText:e="Sold Out",goToProductText:d="View Product",desktopColumns:s,aspectRatio:f,objectFit:_,hideAddToCartButton:m,components:$,topTitle:F,buttonLink:W,subTitleHeaders:H,subTitleBodies:j}=o,T=ot[s??""]??4,h=M(null),[C,z]=E(!1),b=J(()=>{let l=h.current;l&&z(l.scrollWidth-l.clientWidth>1)},[]);w(()=>{let l=h.current;if(!l)return;l.addEventListener("scroll",b,{passive:!0}),window.addEventListener("resize",b);let c=new ResizeObserver(b);return c.observe(l),()=>{l.removeEventListener("scroll",b),window.removeEventListener("resize",b),c.disconnect()}},[b]);let k=(t==null?void 0:t.data)??[];w(()=>{k.forEach(l=>{l.productOptionSet||K(l)})},[k.length]);let D=Y(()=>`(max-width: 767px) calc((100vw - 48px) / 2), (max-width: 1023px) calc((100vw - 80px) / 2), calc((100vw - ${144+(T-1)*24}px) / ${T})`,[T]);if(!t)return null;let y=l=>{let c=h.current;if(!c)return;let g=c.scrollWidth-c.clientWidth,N=c.querySelector(".kombos-product-slider__card"),L=getComputedStyle(c),q=parseFloat(L.columnGap||L.gap||"0")||0,v=N?N.offsetWidth+q:c.clientWidth,S=Math.max(1,Math.round(c.clientWidth/v)),P=Math.round(c.scrollLeft/v);if(l==="right")if(c.scrollLeft>=g-1)c.scrollTo({left:0,behavior:"smooth"});else{let x=Math.min((P+S)*v,g);c.scrollTo({left:x,behavior:"smooth"})}else if(c.scrollLeft<=1)c.scrollTo({left:g,behavior:"smooth"});else{let x=Math.max((P-S)*v,0);c.scrollTo({left:x,behavior:"smooth"})}};return a("section",{className:"kombos-product-slider section-padding"},a("div",{className:"kombos-product-slider__wrapper kombos-container"},i&&a(et,{title:i,topTitle:F,buttonLink:W,subTitleHeaders:H,subTitleBodies:j}),a("div",{className:"kombos-product-slider__slider"},a(R,{direction:"left",className:"kombos-product-slider__arrow kombos-product-slider__arrow--left",onClick:()=>y("left"),disabled:!C}),a("div",{className:"kombos-product-slider__track",ref:h,style:{"--columns":T}},k.map((l,c)=>a(Q,{key:l.id,className:"kombos-product-slider__card"},a(U,{product:l,addToCartText:n,addedToCartText:r,outOfStockText:e,goToProductText:d,aspectRatio:f,objectFit:_,sizes:D,hideAddToCartButton:m,priority:c<4}),a(X,{id:`product-slider-product-${l.id}`,components:$,parentProps:o,map:{product:l},className:"kombos-product-slider__card-content"})))),a(R,{direction:"right",className:"kombos-product-slider__arrow kombos-product-slider__arrow--right",onClick:()=>y("right"),disabled:!C}))))}var rt=it;if(!u.__ikasRepairPatched){let o=function(i){var e,d;const n=i.__k;if(!n||n.length===0)return;let r;if(typeof i.type=="function"?r=i.__e?i.__e.parentNode:null:r=i.__e,!!r)for(let s=0;s<n.length;s++){const f=n[s];if(!(!f||!f.__e)){if(f.__e.parentNode!==r){let _=null;for(let m=s+1;m<n.length;m++)if(((d=(e=n[m])==null?void 0:e.__e)==null?void 0:d.parentNode)===r){_=n[m].__e;break}r.insertBefore(f.__e,_)}o(f)}}};u.__ikasRepairPatched=!0;const t=u.diffed;u.diffed=function(i){t&&t(i),o(i)}}if(!u.__ikasPortalPatched){let o=function(e,d){if(!e||d>50)return null;try{if(e.__e&&typeof e.__e.closest=="function"){const s=e.__e.closest('[class*="cc_"]');if(s){const f=s.getAttribute?s.getAttribute("class"):"",_=typeof f=="string"?f.match(/\bcc_\S+/):null;if(_){const m=s.getAttribute?s.getAttribute("data-cc-scope"):null;return{cls:_[0],ccScope:m}}}}}catch{}return o(e.__,d+1)},t=function(){if(!i)return null;try{return o(i,0)}catch{return null}};u.__ikasPortalPatched=!0;let i=null;const n=u.__r;u.__r=function(e){i=e,n&&n(e)};const r=A;try{A=function(e,d){const s=t();if(s){const f={class:s.cls,style:"display: contents;"};s.ccScope&&(f["data-cc-scope"]=s.ccScope);const _=a("div",f,e);return r(_,d)}return r(e,d)}}catch{}}function nt(o){function t(i){const[,n]=E(0),r=M(null);
1r.current||(r.current=new p("observer("+(o.displayName||o.name||"Component")+")",()=>n(d=>d+1))),w(()=>()=>{r.current&&(r.current.dispose(),r.current=null)},[]);let e;return r.current.track(()=>{e=o(i)}),e}return t}function ct(o,t,i,n,r={}){const e=document.querySelector(o);if(!e)return console.warn("Code component container not found:",o),()=>{};try{const d=nt(rt);e.innerHTML="",O(a(d,t),e)}catch(d){console.error("Error rendering code component ProductSlider:",d)}return()=>{try{O(null,e)}catch{}}}function at(o,t,i,n,r={}){const e={productList:(t==null?void 0:t.productList)??void 0,title:(t==null?void 0:t.title)??void 0,addToCartText:(t==null?void 0:t.addToCartText)??void 0,addedToCartText:(t==null?void 0:t.addedToCartText)??void 0,outOfStockText:(t==null?void 0:t.outOfStockText)??void 0,goToProductText:(t==null?void 0:t.goToProductText)??void 0,desktopColumns:(t==null?void 0:t.desktopColumns)??void 0,aspectRatio:(t==null?void 0:t.aspectRatio)??void 0,objectFit:(t==null?void 0:t.objectFit)??void 0,hideAddToCartButton:(t==null?void 0:t.hideAddToCartButton)??void 0,components:(t==null?void 0:t.components)??void 0,topTitle:(t==null?void 0:t.topTitle)??void 0,buttonLink:(t==null?void 0:t.buttonLink)??void 0,subTitleHeaders:(t==null?void 0:t.subTitleHeaders)??void 0,subTitleBodies:(t==null?void 0:t.subTitleBodies)??void 0},d=ct(o+' [ikas-TKw7yYLOaw="1"]',e);return()=>{d()}}function ft(o){const t=V(o),i=tt({});async function n(){}const r={};return(async()=>{})().then(n),{variables:i,propValues:t,events:r}}function _t({className:o,...t}){let{loaded:i,ref:n,onLoad:r,onError:e}=Z();return a("img",{...t,ref:n,onLoad:r,onError:e,className:B(typeof o=="string"?o:void 0,!i&&"kombos-skeleton")})}export{R as f,at as l,_t as p,ft as r};
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.