1import{a as v}from"/build/_shared/chunk-VXXU7DUA.js";import{a as x}from"/build/_shared/chunk-CCXUG7EA.js";import{b as g}from"/build/_shared/chunk-GLNX7PBK.js";import{n as p}from"/build/_shared/chunk-XHXRPQY5.js";import{K as w,R as h,t as C,wa as a,z as u}from"/build/_shared/chunk-FES3B5QL.js";import{g as y}from"/build/_shared/chunk-XC7SPKRF.js";import{a as l}from"/build/_shared/chunk-G3QUQOKW.js";import{e as s}from"/build/_shared/chunk-O3BUCIVF.js";var b="/build/_assets/styles-V4CISTIP.css";var o=s(l()),m={MOBILE:5,DESKTOP:10},T="h4",k=({isMobile:r})=>{let e=r?`${m.MOBILE*16}`:`${m.DESKTOP*16}`;return(0,o.jsx)(v,{className:"swiftlyCouponCategory__placeholder","data-testid":"swiftlyCouponCategory__placeholder",height:e,width:e})},$=()=>[{rel:"stylesheet",href:b}],N=({imgURL:r,isMobile:e,name:n="",order:d=1,to:i})=>{let c=e?`${m.MOBILE}rem`:`${m.DESKTOP}rem`,S=r?void 0:(0,o.jsx)(k,{isMobile:e});return(0,o.jsx)(p,{"aria-label":n,className:g("swiftlyCouponCategory",{"swiftlyCouponCategory--mobile":e}),"data-testid":"swiftlyCouponCategory",tabIndex:0,to:i,children:(0,o.jsxs)(w,{align:"center",justify:"center",direction:"column",children:[(0,o.jsx)(h,{alt:"",className:g("swiftlyCouponCategory__avatar",{"swiftlyCouponCategory__avatar--mobile":e}),role:"presentation",size:c,src:r,children:S}),(0,o.jsx)(a,{className:g("swiftlyCouponCategory__title",{"swiftlyCouponCategory__title--mobile":e}),"data-testid":"swiftlyCouponCategory__title",lineClamp:3,order:d,size:T,children:n})]})})},_=N;var I=_;var z="/build/_assets/styles-2PFTNXBD.css";var t=s(l()),J=()=>[{rel:"stylesheet",href:z}];function f({categoriesData:r,onCategoryClick:e,title:n}){let d=y(`(max-width: ${x.MOBILE})`)||!1;return(0,t.jsxs)("section",{children:[(0,t.jsx)(C,{className:"product-category-title",children:(0,t.jsx)(a,{className:"category-title",order:1,tabIndex:0,children:n})}),(0,t.jsxs)("div",{className:"category-grid",children:[(0,t.jsx)(u,{children:(0,t.jsx)(a,{order:2,children:"Main list of categories"})}),r.map((i,c)=>(0,t.jsx)(I,{imgURL:i.imgUrl,isMobile:d,name:i.displayName,order:3,to:e(i.id)},c))]})]})}var Y=f;export{$ as a,J as b,Y as c};
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.