"use strict";exports.id=3945,exports.ids=[3945],exports.modules={3155:(e,t,a)=>{a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__,fragment:()=>_});var s=a(25487),d=a(69029),l=a(9664),i=a(16652),n=a(15699),c=a(64199),r=a(83339),o=a(2614),y=a(52815),p=a(26174),x=a(32230),u=a(70643),h=a(52011),v=a(3303),f=a(2430),m=a(20997);let _=s.j9,__WEBPACK_DEFAULT_EXPORT__=function({facets:e,testId:t,dispatch:a,expanded:s,title:_}){let b=(0,v.T)(),{deliveryPromise:k}=b??{},{resetInfiniteScroll:F,state:g,setState:j}=(0,d.R)(),{openRegionSlider:$}=(0,i.l8)(),{facets:Z,labelsMap:E,isPickupAllEnabled:L,shouldDisplayDeliveryButton:A,onDeliveryFacetChange:C}=(0,h.z0)({allFacets:e,selectedFilterFacets:g.selectedFacets,deliveryPromiseSettings:k});return m.jsx(m.Fragment,{children:(0,m.jsxs)(n.Z,{testId:`desktop-${t}`,title:_,indicesExpanded:s,onAccordionChange:e=>a({type:"toggleExpanded",payload:e}),children:[A&&m.jsx(c.Z,{testId:t,index:0,type:"",label:E[h.gA]??"Delivery",description:k?.deliveryMethods?.description,children:m.jsx(r.Z,{"data-fs-filter-list-delivery-button":!0,variant:"secondary",onClick:()=>$(i.gK.setLocation),icon:m.jsx(o.Z,{name:"MapPin"}),children:k?.deliveryMethods?.setLocationButtonLabel??"Set Location"})},`${t}-delivery-unset`),Z.map((e,a)=>{let d=A?a+1:a,{__typename:i,label:n}=e,r=s.has(d),o=e.key===h.gA,v=e.key===h.DX,_=E[e.key]??n;return(0,m.jsxs)(c.Z,{testId:t,index:d,type:i,label:_,description:o?k?.deliveryMethods?.description:void 0,children:["StoreFacetBoolean"===i&&r&&m.jsx(y.Z,{children:e.values.map(a=>(a.value!==h.d||L)&&m.jsx(p.Z,{id:`${t}-${e.label}-${a.value}`,testId:t,onFacetChange:e=>{C({facet:e}),F(0)},selected:a.selected,value:a.value,quantity:a.quantity,facetKey:e.key,label:o?m.jsx(f.Z,{item:a,deliveryMethods:k?.deliveryMethods}):a.label,type:o||v?"radio":"checkbox"},`${t}-${e.label}-${a.value}`))}),"StoreFacetRange"===i&&r&&m.jsx(x.Z,{facetKey:e.key,min:e.min,max:e.max,formatter:"price"===e.key.toLowerCase()?u.P:void 0,onFacetChange:e=>{j({selectedFacets:(0,l.uL)(g.selectedFacets,e,!0),page:0}),F(0)}})]},`${t}-${_}-${d}`)})]})})}},82740:(e,t,a)=>{a.d(t,{Z:()=>i});var s=a(16689),d=a.n(s);let l=(0,s.forwardRef)(function({testId:e="fs-checkbox",partial:t,...a},s){return d().createElement("input",{ref:s,"data-fs-checkbox":!0,"data-testid":e,"data-fs-checkbox-partial":t,type:"checkbox",...a})}),i=l}};