1import{u as r}from"./jsxRuntime.module.BdCR_W1i.min.js";import{q as T}from"./hooks.module.DPQCO04a.min.js";import{P as k}from"./plp-nosto-filter-group.BDJKKS4U.min.js";import{k as S}from"./preact.module.BHYxSqn9.min.js";import"./plp-nosto-filter-accordion.CPJDSAm8.min.js";import"./icon.DsspsfcM.min.js";import"./plp-nosto-filter-range.fzmVBl8a.min.js";import"./_commonjsHelpers.Cpj98o6Y.min.js";import"./compat.module.DnHXNsdI.min.js";import"./plp-nosto-filter-items.Cjns7fru.min.js";function I({faces:i,selectedFaces:a,setSelectedFaces:l,applyFilters:s,isFiltering:p,isMobile:h,setCurrentPage:c,totalResult:m,handleToggleFilter:g,isFilterOpended:x}){const y=T((t,e,w)=>{const F=l(n=>{const o=n[t]??[],u=t==="price"?e===""?[]:String(e).split(":"):o.length===0?[e]:w?o.includes(e)?o.filter(f=>f!==e):[...o,e]:o[0]===e?[]:[e];if(u.length===0){const{[t]:f,...P}=n;return P}return{...n,[t]:u}});s({page:1,selectedFaces:F}),c(1)},[s,l,c]),b=i.filter(t=>!["productType"].includes(t.field)),N=i.find(t=>t.field==="productType"),d=[...b,N].filter(Boolean);return r(S,{children:[r("div",{className:"flex h-auto md:flex-1 flex-col overflow-auto px-3 pb-8 md:px-6",children:d.length>0?d.map(t=>r(k,{isFiltering:p,group:t,type:t.type,isMultiple:!0,selectedFaces:a,onSelect:y,isMobile:h,isFilterOpended:x},t.id)):r("div",{className:"bg-grey-100 mt-6 p-6",children:[r("h3",{className:"h6 text-grey-700 mb-3",children:"text 1"}),r("div",{className:"text-grey-700",dangerouslySetInnerHTML:{__html:"text 2"}})]})}),r("div",{className:"sticky bottom-0 z-10 px-3 pt-3 pb-8 md:p-6",children:r("button",{type:"button",className:"button-fill-default button-large w-full",onClick:()=>g(!1),children:p?"Loading...":`View ${m??0} result${(m??0)!==1?"s":""}`})})]})}export{I as P};
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.