PageSourceSearch

https://www.thebikerschoice.com/_next/static/chunks/176rpnst9u-dq.js

js thebikerschoice.com collected 2026-09-26 12:18:57 UTC 31,539 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13824,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(9390),a=e.i(57688),l=e.i(67964),i=e.i(4737),n=e.i(67363),o=e.i(75183),d=e.i(20865),c=e.i(63448),m=e.i(80799);let u=(0,e.i(56420).default)("building",[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]]);var p=e.i(79258),h=e.i(64569),g=e.i(16410),x=e.i(19749),f=e.i(47163),v=e.i(70065),b=e.i(91291),y=e.i(76381),j=e.i(65434),w=e.i(75424);function N(e,s){switch(e){case"store":default:return(0,t.jsx)(o.Store,{className:s});case"map-pin":return(0,t.jsx)(d.MapPin,{className:s});case"shopping-bag":return(0,t.jsx)(c.ShoppingBag,{className:s});case"tag":return(0,t.jsx)(m.Tag,{className:s});case"building":return(0,t.jsx)(u,{className:s});case"package":return(0,t.jsx)(p.Package,{className:s});case"none":return null}}function L(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())&&e.substring(t.length).replace(/^[\s\-:,|]+/,"")||e}function k(e){if(!e)return;let t=new Date,s=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=new Date(s);r.setDate(r.getDate()+1);let a=null,l=e.match(/^\w+,?\s*(\w+)\s+(\d+)$/);if(l){let e=l[1],r=parseInt(l[2],10),i={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11}[e];if(void 0!==i){let e=t.getFullYear();new Date(e,i,r)<s&&e++,a=new Date(e,i,r)}}if(!a&&e.includes("-")&&e.length>=10){let t=new Date(e);isNaN(t.getTime())||(a=t)}if(!a)return e;let i=new Date(a.getFullYear(),a.getMonth(),a.getDate());return i.getTime()===s.getTime()?"Today":i.getTime()===r.getTime()?"Tomorrow":e}function C(e){return"variants"in e&&Array.isArray(e.variants)}function S(e){if(!e||"string"!=typeof e)return!1;try{return new URL(e),!0}catch{return!1}}e.s(["ProductCard",0,function({product:e,fromType:d,fromSlug:c,fromQuery:m,showStockBadge:u=!0,showVendorBadge:p=!1,showVendorText:B=!0,showThumbnails:M=!0,showMsrp:$=!0,showViewDetails:P=!0,showAddToCart:T=!0,deliveryDateFormatted:A,pickupDateFormatted:D,isPickupOnly:F=!1,showFreeShipping:I=!1,className:R="",cardBackground:E,cardBorderColor:O,cardTextColor:z,cardMutedColor:W,cardAccentColor:Z,cardTitleSize:U,cardContentItems:V,reservePriceSpace:J=!1,layout:H,index:Q,titleLineClamp:Y=2,onClick:K}){let q=3===Y?"line-clamp-3":"line-clamp-2",G=void 0!==Q&&Q<4,{addToCart:X}=(0,y.useCart)(),_=e=>{let t=V?.find(t=>t.type===e);return t?.settings},ee=_("title"),et=U??ee?.titleSize??"medium",es=_("price"),er=es?.showMsrp??$,ea=_("fulfillmentMessaging"),el=ea?.showPickup??!0,ei=ea?.showDelivery??!0,en=V?.find(e=>"thumbnails"===e.type),eo=en?.settings;_("brand"),_("stockBadge");let ed=e=>{if(e&&"auto"!==e)return(0,g.getBackgroundColor)(e)},ec=e=>{switch(e){case"none":return"0";case"sm":default:return"0.25rem";case"md":return"0.5rem";case"lg":return"0.75rem"}},em=e.id,eu=C(e)&&1===e.variants.length?e.variants[0].title:e.title,ep=e.vendor,eh=e.primaryImage,eg=e.minPrice,ex=e.maxPrice,ef=C(e)?e.minMsrp:void 0,ev=C(e)?e.variants:[];ev.find(e=>e.inStock)||ev[0],C(e);let eb=C(e)?e.options:void 0;ev.length>1||eb&&Object.keys(eb).length;let ey=C(e)?e.variants.map(e=>e.images?.[0]).filter(e=>!!e&&S(e)).filter((e,t,s)=>s.indexOf(e)===t):[],ej=C(e)?[eh,...e.variants[0]?.images||[]].filter(S):[eh].filter(S),ew=ej.length>0?ej[0]:null,eN=ey.length>1?ey[1]:null,eL=O&&"transparent"!==O?{"--card-border":O}:{},[ek,eC]=(0,s.useState)(!1),[eS,eB]=(0,s.useState)(ew),[eM,e$]=(0,s.useState)(!1),[eP,eT]=(0,s.useState)(!1),[eA,eD]=(0,s.useState)(new Set),eF=eM?eS:ek&&eN?eN:eS,eI=!eF||eP,eR=ey.slice(0,4),eE=(en?.enabled??M)&&eR.length>=1,eO=ef&&eg&&ef>eg,ez=eO&&ef&&eg?Math.round((ef-eg)/ef*100):0,{getDealForProduct:eW}=(0,j.useFlashDealsContext)(),eZ=eW(em),eU=eZ?.item.salePrice,eV=eZ?eZ.item.originalPrice??eZ.item.compareAtPrice??void 0:void 0,eJ=eZ?(0,w.getFlashDealDiscountPercent)(eZ):0,eH=(0,s.useMemo)(()=>{let e=V?.find(e=>"saleBadge"===e.type);return{enabled:e?.enabled??!0,color:e?.settings?.saleBadgeColor??"@accent",position:e?.settings?.saleBadgePosition??"right"}},[V]),eQ=(0,s.useMemo)(()=>{let e=V?.find(e=>"inStoreBadge"===e.type);return{enabled:e?.enabled??!0,color:e?.settings?.inStoreBadgeColor??"@primary",position:e?.settings?.inStoreBadgePosition??"left",icon:e?.settings?.inStoreBadgeIcon??"store",text:e?.settings?.inStoreBadgeText??"In Store"}},[V]),eY=eH.enabled&&(!!eZ||ez>=5),eK=eZ?(0,t.jsxs)("span",{className:"inline-flex items-center gap-0.5",children:[(0,t.jsx)(h.Zap,{className:"h-3 w-3"}),eJ>=1?`${eJ}% OFF`:"DEAL"]}):`${ez}% OFF`,eq=C(e)?(0,b.createProductSlug)(eu):e.slug||(0,b.createProductSlug)(eu),eG=eZ?eZ.item.variantId||eZ.item.sku:void 0,eX="number"==typeof eg&&"number"==typeof ex&&ex>eg,e_=eG??(!eX&&C(e)?e.sku:void 0),e0=e_?`&variant=${encodeURIComponent(e_)}`:"",e1=d?`/products/${eq}?id=${em}${e0}&from=${encodeURIComponent(d)}${c?`&fromSlug=${encodeURIComponent(c)}`:""}${m?`&fromQuery=${encodeURIComponent(m)}`:""}`:`/products/${eq}?id=${em}${e0}`,e5=!C(e)||ev.some(e=>e.inStock),e2=!!C(e)&&(e.hasRetailInventory??!1),e4=eQ.enabled&&e2,e6=!!C(e)&&!0===e.hideEstimates,e3=e6?void 0:D,e8=e6?void 0:A,e9=(0,s.useMemo)(()=>k(e3),[e3]),e7=(0,s.useMemo)(()=>k(e8),[e8]);if("list"===H){let e=V?[...V].sort((e,t)=>
1e.order-t.order):[{id:"title",type:"title",label:"Title",enabled:!0,order:0,settings:{spaceAbove:"none",spaceBelow:"none"}},{id:"brand",type:"brand",label:"Brand",enabled:B,order:1,settings:{spaceAbove:"none",spaceBelow:"none"}},{id:"price",type:"price",label:"Price",enabled:!0,order:2,settings:{spaceAbove:"none",spaceBelow:"none"}},{id:"stockBadge",type:"stockBadge",label:"In Stock",enabled:u,order:3,settings:{spaceAbove:"none",spaceBelow:"none"}},{id:"fulfillmentMessaging",type:"fulfillmentMessaging",label:"Fulfillment",enabled:!0,order:4,settings:{spaceAbove:"none",spaceBelow:"none"}}];return(0,t.jsx)(r.default,{href:e1,prefetch:!1,onClick:K,className:`group block ${R}`,children:(0,t.jsxs)("div",{className:`flex items-start gap-3 p-3 border hover:border-accent transition-all duration-300 overflow-hidden ${"transparent"===O?"border-transparent":O?"border-(--card-border)":"border-border"}`,style:{borderRadius:"var(--radius)",...E?{backgroundColor:E}:{},...eL,...z?{color:z}:{}},children:[(0,t.jsxs)("div",{className:"shrink-0 relative overflow-hidden bg-white",style:{width:"65px",height:"65px",borderRadius:"calc(var(--radius) * 0.5)"},children:[eI?(0,t.jsx)(x.ImagePlaceholder,{size:"sm"}):(0,t.jsx)(a.default,{src:eF,alt:eu,title:eu,width:65,height:65,className:"absolute inset-0 w-full h-full object-contain",sizes:"65px",priority:G,loading:G?"eager":"lazy",onError:()=>eT(!0)}),(e4||eY)&&(0,t.jsxs)("div",{className:"absolute top-1 left-1 right-1 flex items-center gap-0.5",children:[e4&&(0,t.jsxs)("div",{className:"flex items-center gap-0.5 text-[8px] font-bold px-1 py-0.5 rounded whitespace-nowrap",style:{backgroundColor:(0,g.getBackgroundColor)(eQ.color),color:(0,g.getContrastColor)(eQ.color)},children:[N(eQ.icon,"h-2.5 w-2.5"),eQ.text]}),e4&&eY&&(0,t.jsx)("div",{className:"flex-1"}),eY&&(0,t.jsx)("div",{className:`text-[10px] font-bold px-1 py-0.5 rounded whitespace-nowrap ${!e4?"ml-auto":""}`,style:{backgroundColor:(0,g.getBackgroundColor)(eH.color),color:(0,g.getContrastColor)(eH.color)},children:eZ?(0,t.jsxs)("span",{className:"inline-flex items-center gap-0.5",children:[(0,t.jsx)(h.Zap,{className:"h-2.5 w-2.5"}),eJ>=1?`${eJ}%`:"DEAL"]}):`${ez}%`})]})]}),(0,t.jsx)("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:e.map(e=>{if(!e.enabled)return null;switch(e.type){case"title":return(0,t.jsx)("p",{className:`font-semibold ${q} leading-tight group-hover:text-accent transition-colors`,style:{fontSize:"1.25rem"},children:L(eu,ep)},e.id);case"brand":if(!ep)return null;return(0,t.jsx)("p",{className:"text-[10px] text-muted-foreground uppercase tracking-wide",style:W?{color:W}:{},children:ep},e.id);case"price":let s=!eZ&&eg!==ex;return(0,t.jsxs)("div",{children:[s&&(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground",style:W?{color:W}:{},children:"As low as"}),(0,t.jsxs)("div",{className:"flex items-baseline gap-1.5 flex-wrap",children:[(0,t.jsx)("span",{className:"font-bold text-sm",children:void 0!==eU?(0,f.formatPrice)(eU):eg?(0,f.formatPrice)(eg):"Price unavailable"}),eZ?void 0!==eV&&eV>eZ.item.salePrice&&(0,t.jsx)("span",{className:"text-xs line-through text-muted-foreground",style:W?{color:W}:{},children:(0,f.formatPrice)(eV)}):er&&eO&&ef&&(0,t.jsx)("span",{className:"text-xs line-through text-muted-foreground",style:W?{color:W}:{},children:(0,f.formatPrice)(ef)})]})]},e.id);case"stockBadge":if(!e5)return null;return(0,t.jsxs)("div",{className:"flex items-center gap-1",style:Z?{color:Z}:{},children:[(0,t.jsx)(i.Check,{className:"h-3 w-3 text-green-800",style:Z?{color:Z}:void 0}),(0,t.jsx)("span",{className:"text-[10px] font-medium text-green-800",style:Z?{color:Z}:void 0,children:"In Stock"})]},e.id);case"fulfillmentMessaging":{let e=!e5||!e9,t=!e5||F||!e7;if((!el||e)&&(!ei||t))return null}return(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[el&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(o.Store,{className:"h-3 w-3 shrink-0 text-muted-foreground",style:W?{color:W}:void 0}),(0,t.jsxs)("span",{className:"text-[10px]",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Pickup:"})," ",e5&&e9?(0,t.jsx)("span",{className:"text-green-800 font-medium",style:Z?{color:Z}:void 0,children:e9}):(0,t.jsx)("span",{className:"text-muted-foreground",style:W?{color:W}:void 0,children:"Unavailable"})]})]}),ei&&(F||!e5)?(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(n.Truck,{className:"h-3 w-3 shrink-0 text-muted-foreground",style:W?{color:W}:void 0}),(0,t.jsxs)("span",{className:"text-[10px]",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Delivery:"})," ",(0,t.jsx)("span",{className:"text-muted-foreground",style:W?{color:W}:void 0,children:"Unavailable"})]})]}):ei&&e7?(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(n.Truck,{className:"h-3 w-3 shrink-0 text-muted-foreground",style:W?{color:W}:void 0}),(0,t.jsxs)("span",{className:"text-[10px]",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Delivery:"})," ",I&&(0,t.jsxs)("span",{className:"text-green-800 font-medium",style:Z?{color:Z}:void 0,children:["Free,"," "]}),(0,t.jsx)("span",{className:"text-green-800 font-medium",style:Z?{color:Z}:void 0,children:e7})]})]}):null]},e.id);default:return null}})})]})})}return(0,t.jsx)(r.default,{href:e1,prefetch:!1,onClick:K,className:`group block h-full ${R}`,children:(0,t.jsxs)(v.Card,{className:`overflow-hidden transition-all duration-300 hover:shadow-xl h-full pt-0 pb-4 flex flex-col gap-0 ${"transparent"===O?"border-0 hover:border hover:border-accent":O?"border border-(--card-border) hover:border-accent":"border border-border hover:border-accent"}`,style:{...E?{backgroundColor:E}:{},...eL,...z?{color:z}:{}},onMouseEnter:()=>eC(!0),onMouseLeave:()=>eC(!1),children:[(0,t.jsxs)("div",{className:"relative aspect-square overflow-hidden bg-white",style:{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},children:[(0,t.jsx)("div",{className:"absolute inset-5 flex items-center justify-center",children:eI?(0,t.jsx)(x.ImagePlaceholder,{size:"md"}):(0,t.jsx)(a.default,{src:eF,alt:eu,title:eu,width:800,height:800,className:"absolute inset-0 w-full h-full object-contain object-center transition-all duration-300 group-hover:scale-105",sizes:"(max-width: 640px) 50vw, (max-width: 1024px) 33vw, 25vw",priority:G,loading:G?"eager":"lazy",onError:()=>eT(!0)})}),p&&ep&&(0,t.jsx)("div",{className:"absolute top-3 left-3 bg-primary text-primary-foreground text-xs font-bold px-2 py-1 rounded uppercase tracking-wide",children:ep}),(e4||eY)&&(0,t.jsx)("div",{className:"absolute top-3 left-3 right-3 flex items-center gap-1.5",children:(()=>{let e=eQ.position,s=eH.position,r=e4&&eY,a=e4?(0,t.jsxs)("div",{className:`flex items-center gap-1 text-xs font-bold px-2 py-1 rounded whitespace-nowrap ${"full"===e?"flex-1 justify-center":""}
1`,style:{backgroundColor:(0,g.getBackgroundColor)(eQ.color),color:(0,g.getContrastColor)(eQ.color)},children:[N(eQ.icon,"h-3 w-3"),eQ.text]},"inStore"):null,l=eY?(0,t.jsx)("div",{className:`text-xs font-bold px-2 py-1 rounded whitespace-nowrap text-center ${"full"===s?"flex-1":""}`,style:{backgroundColor:(0,g.getBackgroundColor)(eH.color),color:(0,g.getContrastColor)(eH.color)},children:eK},"sale"):null;if(!r){let r=a||l,i=a?e:s;return(0,t.jsx)("div",{className:`flex w-full ${"left"===i?"justify-start":"right"===i?"justify-end":""}`,children:r})}let i=("left"===e?0:"full"===e?1:2)<=("left"===s?0:"full"===s?1:2),n=i?a:l,o=i?l:a,d=i?e:s;return d===(i?s:e)?(0,t.jsxs)("div",{className:`flex w-full gap-1.5 ${"left"===d?"justify-start":"right"===d?"justify-end":""}`,children:[n,o]}):(0,t.jsxs)(t.Fragment,{children:[n,(0,t.jsx)("div",{className:"flex-1"}),o]})})()})]}),(0,t.jsxs)(v.CardContent,{className:"flex-1 flex flex-col px-3 sm:px-6",children:[eE&&(0,t.jsx)("div",{className:"hidden sm:flex gap-1",style:{marginTop:ec(eo?.spaceAbove),marginBottom:ec(eo?.spaceBelow??"sm")},children:eR.map((e,s)=>(0,t.jsx)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),eB(e),e$(!0)},className:`relative w-10 h-10 border-2 overflow-hidden transition-all hover:border-primary ${eS===e?"border-primary":"border-transparent"}`,style:{borderRadius:"calc(var(--radius) * 0.35)"},children:eA.has(s)?(0,t.jsx)("div",{className:"flex items-center justify-center w-full h-full",children:(0,t.jsx)(l.ImageOff,{className:"h-4 w-4 text-muted-foreground opacity-50"})}):(0,t.jsx)(a.default,{src:e,alt:`${eu} variant ${s+1}`,title:`${eu} variant ${s+1}`,width:40,height:40,className:"absolute inset-0 w-full h-full object-cover",sizes:"32px",loading:"lazy",onError:()=>{eD(e=>new Set(e).add(s))}})},s))}),(V?[...V].sort((e,t)=>e.order-t.order):[{id:"title",type:"title",label:"Title",enabled:!0,order:0,settings:{spaceAbove:"sm",spaceBelow:"sm"}},{id:"brand",type:"brand",label:"Brand",enabled:B,order:1,settings:{spaceAbove:"sm",spaceBelow:"sm"}},{id:"price",type:"price",label:"Price",enabled:!0,order:2,settings:{spaceAbove:"sm",spaceBelow:"sm"}},{id:"stockBadge",type:"stockBadge",label:"In Stock",enabled:u,order:3,settings:{spaceAbove:"sm",spaceBelow:"sm"}},{id:"fulfillmentMessaging",type:"fulfillmentMessaging",label:"Fulfillment",enabled:!0,order:4,settings:{spaceAbove:"sm",spaceBelow:"sm"}}]).map(e=>{if(!e.enabled)return null;let s=e.settings?.showOnMobile===!1,r={marginTop:ec(e.settings?.spaceAbove),marginBottom:ec(e.settings?.spaceBelow)},a=r=>s?(0,t.jsx)("div",{className:"hidden lg:block",children:r},`mobile-wrap-${e.id}`):r;switch(e.type){case"title":let l="small"===et?.9375:"large"===et?1.5:1.25,d=`${1.4*l*2}rem`,c=ed(e.settings?.textColor)||z;return(0,t.jsx)("p",{className:`font-semibold ${q} group-hover:text-accent transition-colors`,style:{fontSize:`${l}rem`,lineHeight:1.4,minHeight:d,...c?{color:c}:{},...r},children:L(eu,ep)},e.id);case"brand":if(!ep)return null;let m=ed(e.settings?.textColor)||z;return a((0,t.jsx)("p",{className:`text-xs uppercase tracking-wide ${!m?"text-muted-foreground":""}`,style:{...m?{color:m}:{},...r},children:ep},e.id));case"price":let u=!eZ&&eg!==ex,p=ed(e.settings?.textColor)||z;return(0,t.jsxs)("div",{style:r,children:[(u||J&&!u)&&(0,t.jsx)("span",{className:`text-xs block ${!p?"text-muted-foreground":""}`,style:{...p?{color:p,opacity:.7}:{},visibility:u?"visible":"hidden"},children:"As low as"}),(0,t.jsxs)("div",{className:"flex items-baseline gap-1 sm:gap-2 flex-wrap",children:[(0,t.jsx)("p",{className:"font-bold text-base sm:text-lg",style:p?{color:p}:void 0,children:void 0!==eU?(0,f.formatPrice)(eU):eg?(0,f.formatPrice)(eg):"Price unavailable"}),eZ?void 0!==eV&&eV>eZ.item.salePrice&&(0,t.jsx)("p",{className:`text-sm sm:text-base line-through ${!p?"text-gray-500":""}`,style:p?{color:p,opacity:.6}:void 0,children:(0,f.formatPrice)(eV)}):er&&eO&&ef&&(0,t.jsx)("p",{className:`text-sm sm:text-base line-through ${!p?"text-gray-500":""}`,style:p?{color:p,opacity:.6}:void 0,children:(0,f.formatPrice)(ef)})]})]},e.id);case"stockBadge":let h=ed(e.settings?.textColor)||z;return a((0,t.jsxs)("div",{className:"flex items-center gap-1",style:{...e5&&h?{color:h}:{},...r,visibility:e5?"visible":"hidden"},children:[(0,t.jsx)(i.Check,{className:`h-3.5 w-3.5 ${!h?"text-green-800":""}`,style:h?{color:h}:void 0}),(0,t.jsx)("span",{className:`text-xs font-medium ${!h?"text-green-800":""}`,style:h?{color:h}:void 0,children:"In Stock"})]},e.id));case"fulfillmentMessaging":{let e=!e5||!e9,t=!e5||F||!e7;
1if((!el||e)&&(!ei||t))return null}let g=ed(e.settings?.textColor)||z;return a((0,t.jsxs)("div",{className:"flex flex-col gap-1",style:{...g?{color:g}:{},...r},children:[el&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(o.Store,{className:`h-4 w-4 shrink-0 ${!g?"text-muted-foreground":""}`,style:g?{color:g}:void 0}),(0,t.jsxs)("span",{className:"text-xs",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Pickup:"})," ",e5&&e9?(0,t.jsx)("span",{className:"font-medium",children:e9}):(0,t.jsx)("span",{style:{opacity:.7},children:"Unavailable"})]})]}),ei&&(F||!e5)?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.Truck,{className:`h-4 w-4 shrink-0 ${!g?"text-muted-foreground":""}`,style:g?{color:g}:void 0}),(0,t.jsxs)("span",{className:"text-xs",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Delivery:"})," ",(0,t.jsx)("span",{style:{opacity:.7},children:"Unavailable"})]})]}):ei&&e7&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.Truck,{className:`h-4 w-4 shrink-0 ${!g?"text-muted-foreground":""}`,style:g?{color:g}:void 0}),(0,t.jsxs)("span",{className:"text-xs",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Delivery:"})," ",I&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"font-medium",children:"Free"}),(0,t.jsxs)("span",{style:{opacity:.7},children:[" ","|"," "]})]}),(0,t.jsx)("span",{className:"font-medium",children:e7})]})]})]},e.id));default:return null}})]})]})})}],13824)},34697,e=>{"use strict";var t=e.i(43476),s=e.i(37902),r=e.i(71645),a=e.i(24071),l=e.i(67927),i=e.i(99847),n=e.i(13824),o=e.i(57199),d=e.i(55034);function c(e){return!!e&&"string"==typeof e&&0!==e.trim().length&&(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/"))}function m(e){return!!(c(e.primaryImage)||e.variants?.some(e=>e.images?.some(c)))}var u=e.i(16410);function p(e){if(e&&"transparent"!==e)return"@primary"===e?"hsl(var(--primary))":"@accent"===e?"hsl(var(--accent))":`hsl(${e})`}function h(e){if("@primary"===e)return"hsl(var(--primary-foreground))";if("@accent"===e)return"hsl(var(--accent-foreground))";let t=e.split(/[\s,]+/).map(e=>parseFloat(e.replace("%","")));if(t.length>=3)return t[2]<50?"hsl(0 0% 100%)":"hsl(0 0% 10%)"}let g={none:"",wave:"M0,30 C200,60 400,0 600,30 C800,60 1000,0 1200,30 L1200,60 L0,60 Z",curve:"M0,60 Q600,0 1200,60 L1200,60 L0,60 Z",slant:"M0,60 L1200,0 L1200,60 L0,60 Z",torn:"M0,45 L30,55 L50,35 L80,50 L120,30 L150,55 L180,40 L220,58 L260,25 L300,50 L340,35 L380,55 L420,28 L460,52 L500,38 L540,55 L580,30 L620,48 L660,35 L700,56 L740,25 L780,50 L820,38 L860,55 L900,30 L940,52 L980,40 L1020,55 L1060,28 L1100,50 L1140,35 L1180,52 L1200,45 L1200,60 L0,60 Z",rounded:"M0,60 C0,20 200,0 600,0 C1000,0 1200,20 1200,60 L1200,60 L0,60 Z"},x={none:"",wave:"M0,30 C200,0 400,60 600,30 C800,0 1000,60 1200,30 L1200,0 L0,0 Z",curve:"M0,0 Q600,60 1200,0 L1200,0 L0,0 Z",slant:"M0,0 L1200,60 L1200,0 L0,0 Z",torn:"M0,15 L30,5 L50,25 L80,10 L120,30 L150,5 L180,20 L220,2 L260,35 L300,10 L340,25 L380,5 L420,32 L460,8 L500,22 L540,5 L580,30 L620,12 L660,25 L700,4 L740,35 L780,10 L820,22 L860,5 L900,30 L940,8 L980,20 L1020,5 L1060,32 L1100,10 L1140,25 L1180,8 L1200,15 L1200,0 L0,0 Z",rounded:"M0,0 C0,40 200,60 600,60 C1000,60 1200,40 1200,0 L1200,0 L0,0 Z"};function f({shape:e,position:s,color:r}){if("none"===e||!r)return null;let a="top"===s,l=a?g[e]:x[e];return l?(0,t.jsx)("div",{style:{position:"absolute",left:0,right:0,top:a?"-40px":void 0,bottom:a?void 0:"-40px",width:"100%",height:"40px",lineHeight:0,pointerEvents:"none"},children:(0,t.jsx)("svg",{viewBox:"0 0 1200 60",preserveAspectRatio:"none",style:{width:"100%",height:"100%",display:"block"},children:(0,t.jsx)("path",{d:l,fill:r})})}):null}let v=["supplierInStock"],b=[{id:"saleBadge",type:"saleBadge",label:"Sale badge",enabled:!0,order:0,settings:{saleBadgeColor:"@accent",saleBadgePosition:"right"}},{id:"thumbnails",type:"thumbnails",label:"Thumbnails",enabled:!0,order:1,settings:{spaceAbove:"none",spaceBelow:"sm"}},{id:"brand",type:"brand",label:"Brand",enabled:!0,order:2},{id:"title",type:"title",label:"Title",enabled:!0,order:3,settings:{titleSize:"medium"}},{id:"stockBadge",type:"stockBadge",label:"In Stock",enabled:!0,order:4},{id:"price",type:"price",label:"Price",enabled:!0,order:5,settings:{showMsrp:!0}},{id:"fulfillmentMessaging",type:"fulfillmentMessaging",label:"Fulfillment messaging",enabled:!1,order:6,settings:{showPickup:!0,showDelivery:!0}}];function y({settings:e,tenant:c}){let g=function(){let[e,t]=(0,r.useState)(()=>{try{let e=window.parent!==window,t=sessionStorage.getItem("themeBuilderEditMode"),s=!!t&&JSON.parse(t)?.active===!0;return e||s}catch{return!1}});return(0,r.useEffect)(()=>{try{let s=window.parent!==window,r=sessionStorage.getItem("themeBuilderEditMode"),a=!!r&&JSON.parse(r)?.active===!0,l=s||a;l!==e&&t(l)}catch{}},[e]),e}(),{heading:x="Hot New Products",backgroundColor:j,textColor:w,paddingTop:N="medium",paddingBottom:L="medium",topShape:k="none",bottomShape:C="none",productLimit:S=12,matchMode:B="any",brand:M="",productTypes:$="",categories:P="",filterToggles:T,minDiscountPercent:A=15,onSaleOnly:D,supplierInStock:F,categoryTypes:I="",categoryVendors:R="",groups:E="",cardBackgroun
1dColor:O,cardBorderColor:z,showThumbnails:W,cardContentItems:Z,cardBackground:U,cardDisplayOptions:V}=e,J=T&&T.length>0?T:v,H=J.includes("onSaleOnly")||!0===D,Q=J.includes("supplierInStock")||!0===F,Y=(0,r.useMemo)(()=>Z&&Z.length>0?Z:V&&V.length>0?b.map(e=>({...e,enabled:"title"===e.type||"price"===e.type||V.includes("saleBadge"===e.type?"saleBadge":e.type)})):b,[Z,V]),K=W??V?.includes("thumbnails")??!0,q=O??U,G=p(q),X=q&&"transparent"!==q?h(q):void 0,_=q&&"transparent"!==q?function(e){if("@primary"===e||"@accent"===e)return"hsl(0 0% 80%)";let t=e.split(/[\s,]+/).map(e=>parseFloat(e.replace("%","")));if(t.length>=3)return t[2]<50?"hsl(0 0% 70%)":"hsl(0 0% 40%)"}(q):void 0,ee="transparent"===z?"transparent":p(z),et=p(j),es=function(e,t){if("@primary"===e)return"hsl(var(--primary))";if("@accent"===e)return"hsl(var(--accent))";if("@foreground"===e)return"hsl(var(--foreground))";if(!e||"auto"===e){if(!t||"transparent"===t)return;return h(t)}return`hsl(${e})`}(w,j),er="none"!==k||"none"!==C,ea=(0,r.useRef)(null),[el,ei]=(0,r.useState)(!1),[en,eo]=(0,r.useState)(!0),[ed,ec]=(0,r.useState)([]),[em,eu]=(0,r.useState)(!0),ep=(0,r.useMemo)(()=>M?M.split(",").map(e=>e.trim()).filter(e=>e.length>0):[],[M]),eh=(0,r.useMemo)(()=>$?$.split(",").map(e=>e.trim()).filter(e=>e.length>0):[],[$]),eg=(0,r.useMemo)(()=>I?I.split(",").map(e=>e.trim()).filter(e=>e.length>0):[],[I]),ex=(0,r.useMemo)(()=>R?R.split(",").map(e=>e.trim()).filter(e=>e.length>0):[],[R]),ef=(0,r.useMemo)(()=>E?E.split(",").map(e=>e.trim()).filter(e=>e.length>0):[],[E]);(0,r.useEffect)(()=>{let e=new AbortController,t=!1;return(async()=>{if(c)try{eu(!0);let e=[],s=ep.length>0,r=eh.length>0,a=ef.length>0,l=eg.length>0,i=ex.length>0,n=s||r||a||l||i,d={supplierInStock:Q,...H&&{discountAtOrAbove:A/100}};if(n)if(a){let t={...d,collections:ef},s=await (0,o.searchCatalog)(t,c);e=(0,o.convertCatalogToProductList)(s).items||[]}else if("all"===B){let t=[...ep,...ex],s=[...eh,...eg],r={...d,...t.length>0&&{vendors:t},...s.length>0&&{types:s}},a=await (0,o.searchCatalog)(r,c);e=(0,o.convertCatalogToProductList)(a).items||[]}else{let t=[];if(s){let e=await (0,o.searchCatalog)({...d,vendors:ep},c),s=(0,o.convertCatalogToProductList)(e);t.push(s.items||[])}if(r){let e=await (0,o.searchCatalog)({...d,types:eh},c),s=(0,o.convertCatalogToProductList)(e);t.push(s.items||[])}if(l||i){let e=await (0,o.searchCatalog)({...d,...l&&{types:eg},...i&&{vendors:ex}},c),s=(0,o.convertCatalogToProductList)(e);t.push(s.items||[])}let a=new Set,n=Math.max(...t.map(e=>e.length));for(let s=0;s<n;s++)for(let r of t)if(s<r.length){let t=r[s];a.has(t.id)||(a.add(t.id),e.push(t))}}else{let t=await (0,o.searchCatalog)(d,c);e=(0,o.convertCatalogToProductList)(t).items||[]}if(t)return;let u=[...e].sort((e,t)=>{let s=m(e),r=m(t),a=e.variants?.some(e=>e.inStock)??!1,l=t.variants?.some(e=>e.inStock)??!1;return+!s+ +!a-(+!r+ +!l)}).slice(0,S);ec(u)}catch(e){if(t)return;console.error("Failed to fetch products for carousel:",e),ec([])}finally{t||eu(!1)}})(),()=>{t=!0,e.abort()}},[c,B,H,A,Q,ep,eh,ef,eg,ex,S]);let ev=(0,r.useCallback)(()=>{if(!ea.current)return;let{scrollLeft:e,scrollWidth:t,clientWidth:s}=ea.current;ei(e>0),eo(e<t-s-10)},[]),eb=(0,r.useMemo)(()=>(0,d.throttle)(ev,100),[ev]);(0,r.useEffect)(()=>{let e=ea.current;if(e)return e.scrollLeft=0,ev(),e.addEventListener("scroll",eb),window.addEventListener("resize",ev),()=>{e.removeEventListener("scroll",eb),window.removeEventListener("resize",ev)}},[ev,eb,ed]);let ey=e=>{if(!ea.current)return;let t="left"===e?ea.current.scrollLeft-280:ea.current.scrollLeft+280;ea.current.scrollTo({left:t,behavior:"smooth"})};return em?(0,t.jsx)("div",{style:{paddingTop:(0,u.getSpacingValue)(N),paddingBottom:(0,u.getSpacingValue)(L)},children:(0,t.jsxs)("section",{style:{position:er?"relative":void 0,overflow:er?"visible":void 0,paddingTop:"var(--ml-section-padding-y)",paddingBottom:"var(--ml-section-padding-y)",backgroundColor:et,color:es},children:[(0,t.jsx)(f,{shape:k,position:"top",color:et}),(0,t.jsx)(f,{shape:C,position:"bottom",color:et}),(0,t.jsxs)("div",{className:"mx-auto px-4",style:{maxWidth:"var(--ml-content-width)"},children:[(0,t.jsx)("h2",{className:"text-base sm:text-lg md:text-2xl mb-4 sm:mb-6",style:{fontFamily:"var(--font-heading)",fontWeight:"var(--heading-weight)",textTransform:"var(--heading-transform)",letterSpacing:"var(--heading-letter-spacing)"},children:x}),(0,t.jsx)("div",{className:"overflow-x-auto scrollbar-hide py-4 -my-4",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:(0,t.jsx)("div",{className:"flex",style:{gap:"var(--ml-grid-gap)"},children:[void 0,void 0,void 0,void 0,void 0].map((e,s)=>(0,t.jsx)("div",{className:"w-64 h-80 bg-muted animate-pulse shrink-0",style:{borderRadius:"var(--radius)"}},s))})})]})]})}):0===ed.length?g?(0,t.jsx)("div",{style:{paddingTop:(0,u.getSpacingValue)(N),paddingBottom:(0,u.getSpacingValue)(L)},children:(0,t.jsxs)("section",{style:{position:er?"relative":void 0,overflow:er?"visible":void 0,paddingTop:"var(--ml-section-padding-y)",paddingBottom:"var(--ml-section-padding-y)",backgroundColor:et,color:es},children:[(0,t.jsx)(f,{shape:k,position:"top",color:et}),(0,t.jsx)(f,{shape:C,position:"bottom",color:et}),(0,t.jsxs)("div",{className:"mx-auto px-4",style:{maxWidth:"var(--ml-content-width)"},children:[(0,t.jsx)("h2",{className:"text-base sm:text-lg md:text-2xl mb-4 sm:mb-6",style:{fontFamily:"var(--font-heading)",fontWeight:"var(--heading-weight)",textTransform:"var(--heading-transform)",letterSpacing:"var(--heading-letter-spacing)"},children:x}),(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4 border-2 border-dashed border-amber-400 bg-amber-50 text-amber-800",style:{borderRadius:"var(--radius)"},children:[(0,t.jsx)(i.AlertCircle,{className:"h-5 w-5 shrink-0"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:"No products found"}),(0,t.jsxs)("p",{className:"text-sm opacity-80",children:[H&&"No sale items found in the catalog.",!H&&!M&&!$&&!E&&!P&&"No products found. Try adding a brand, product type, or group filter.",!H&&(M||$||E||P)&&`No products match the selected filters (${E?"groups":"all"===B?"all criteria":"any criteria"}).`]})]})]})]})]})}):null:(0,t.jsx)("div",{style:{paddingTop:(0,u.getSpacingValue)(N),paddingBottom:(0,u.getSpacingValue)(L)},children:(0,t.jsxs)("section",{style:{position:er?"relative":void 0,overflow:er?"visible":void 0,paddingTop:"var(--ml-section-padding-y)",paddingBottom:"var(--ml-section-padding-y)",backgroundColor:et,color:es},children:[(0,t.jsx)(f,{shape:k,position:"top",color:et}),(0,t.jsx)(f,{shape:C,position:"bottom",color:et}),(0,t.jsxs)("div",{style:{maxWidth:"var(--ml-content-width)"},className:"jsx-908da43435665297 mx-auto px-4",children:[(0,t.jsxs)("div",{className:"jsx-908da43435665297 flex items-center justify-between mb-4 sm:mb-6",children:[(0,t.jsx)("h2",{style:{fontFamily:"var(--font-heading)",fontWeight:"var(--heading-weight)",textTransform:"var(--heading-transform)",letterSpacing:"var(--heading-letter-spacing)"},className:"jsx-908da43435665297 text-base sm:text-lg md:text-2xl",children:x}),(0,t.jsxs)("div",{className:"jsx-908da43435665297 flex gap-1.5 sm:gap-2",children:[(0,t.jsx)("button",{onClick:()=>ey("left"),disabled:!el,style:{borderRadius:"var(--radius)"},"aria-label":"Scroll left",className:`jsx-908da43435665297 w-8 h-8 sm:w-10 sm:h-10 border border-border flex items-center justify-center transition-all ${el?"bg-white hover:bg-muted text-foreground":"bg-muted/50 text-muted-foreground cursor-not-allowed"}`,children:(0,t.jsx)(a.ChevronLeft,{className:"h-4 w-4 sm:h-5 sm:w-5"})}),(0,t.jsx)("button",{onClick:()=>ey("right"),disabled:!en,style:{borderRadius:"var(--radius)"},"aria-label":"Scroll right",className:`jsx-908da43435665297 w-8 h-8 sm:w-10 sm:h-10 border border-border flex items-center justify-center transition-all ${en?"bg-white hover:bg-muted text-foreground":"bg-muted/50 text-muted-foreground cursor-not-allowed"}`,children:(0,t.jsx)(l.ChevronRight,{className:"h-4 w-4 sm:h-5 sm:w-5"})})]})]}),(0,t.jsx)("div",{ref:ea,style:{scrollbarWidth:"none",msOverflowStyle:"none"},className:"jsx-908da43435665297 overflow-x-auto scrollbar-hide scroll-smooth snap-x snap-mandatory py-4 -my-4",children:(0,t.jsx)("div",{style:{gap:"var(--ml-grid-gap)"},className:"jsx-908da43435665297 flex",children:ed.map(e=>(0,t.jsx)("div",{className:"jsx-908da43435665297 snap-start w-64 shrink-0",children:(0,t.jsx)(n.ProductCard,{product:e,showThumbnails:K,cardBackgroun
1d:G,cardBorderColor:ee,cardTextColor:X,cardMutedColor:_,cardContentItems:Y,deliveryDateFormatted:e.deliveryEstimate?.deliveryDateFormatted,pickupDateFormatted:e.pickupEstimate?.pickupDateFormatted,isPickupOnly:e.isPickupOnly})},e.id))})}),(0,t.jsx)(s.default,{id:"908da43435665297",children:".scrollbar-hide.jsx-908da43435665297::-webkit-scrollbar{display:none}"})]})]})})}e.s(["ProductCarouselSection",0,y,"default",0,y],34697)},48457,function(e){e.n(e.i(34697))},55034,e=>{"use strict";e.s(["throttle",0,function(e,t){let s=0;return(...r)=>{let a=Date.now();a-s>=t&&(s=a,e(...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.