1import{a as r}from"/build/_shared/chunk-DEVQKMWM.js";import{a as m}from"/build/_shared/chunk-5OBEDPFR.js";import{a as c}from"/build/_shared/chunk-H6S7FWVP.js";import{d as s}from"/build/_shared/chunk-T36URGAI.js";var b=s(c());var e=s(m()),v=(a,i)=>!Number.isFinite(i)||i<=0?a:Math.ceil(a/i)*i,u=a=>{let i=(0,b.useContext)(r),t=[75,40,50,80,60],n=[1,3,2],l=[];for(let d=0;d<n[a.id%n.length];d++)l[d]=(0,e.jsx)("div",{className:"mr-2 overflow-hidden rounded w-6 h-6 border border-grey animate-pulse bg-slate-200"},d);return(0,e.jsxs)("div",{className:`${a.isOnListingPage?"":"max-w-[400px]"} ${a.className||""}`,"data-test-id":"product-card-skeleton",style:a.style,children:[(0,e.jsx)("div",{className:`md:grid ${a.isOnListingPage?"":"pb-2 pr-2"} grid-cols-1`,children:a.isOverlayCard?(0,e.jsx)("div",{className:"animate-pulse pb-[133.33%] bg-slate-200 w-full"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:`animate-pulse ${i!=null&&i.squareImagesOnPLP?"pb-[100%]":i!=null&&i.fiveFourImagesOnPLP?"pb-[125%]":"pb-[150%]"} bg-slate-200`}),(0,e.jsxs)("div",{className:a.imageOnly?"hidden md:block pt-5":"pt-5",children:[(0,e.jsx)("div",{className:"animate-pulse h-[16px] bg-slate-200 mb-1 rounded",style:{width:`${t[a.id%t.length]}px`}}),(0,e.jsx)("div",{className:"animate-pulse h-[16px] bg-slate-200 mb-1 rounded"}),(0,e.jsx)("div",{className:"animate-pulse h-[16px] bg-slate-200 rounded",style:{width:`${t[a.id%t.length]}%`}})]}),(0,e.jsx)("div",{className:a.imageOnly?"hidden md:block mb-4 py-1":"mb-4 py-1",children:(0,e.jsx)("div",{className:"animate-pulse h-[20px] bg-slate-200 w-[95px] rounded"})})]})}),a.isSwatchHidden?(0,e.jsx)(e.Fragment,{}):(0,e.jsx)("div",{className:`grid gap-4 justify-between ${a.imageOnly?"hidden md:grid":""}`,children:(0,e.jsx)("div",{className:"flex items-center flex-wrap",children:l})})]})};export{v as a,u as b};
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.