1import{b as k}from"/build/_shared/chunk-QGKIPCNV.js";import{ga as d}from"/build/_shared/chunk-JDCYZ4LL.js";import{G as c,K as a,O as f,U as A,sa as u,wa as h}from"/build/_shared/chunk-FES3B5QL.js";import{a as b}from"/build/_shared/chunk-G3QUQOKW.js";import{a as C}from"/build/_shared/chunk-F3RAJA4O.js";import{e as m}from"/build/_shared/chunk-O3BUCIVF.js";var w=m(C());var v="/build/_assets/styles-VJBC4SB5.css";var e=m(b()),_=()=>[{rel:"stylesheet",href:v}];function x({appliedFlag:s,filterFlags:p,productFilterGroups:l,setFlagFilter:r,setProductFilterGroups:y}){let{setAnnouncement:R}=k();return!(l!=null&&l.find(t=>{var i;return((i=t.filters)==null?void 0:i.find(n=>n.applied))!==void 0}))&&!s?null:(0,e.jsx)("section",{className:"applied-filters-container",children:(0,e.jsxs)(u,{style:{marginBottom:3,textAlign:"justify"},children:[(0,e.jsx)(h,{order:3,fw:600,children:"Applied Filters"}),(0,e.jsxs)(a,{align:"center",gap:16,rowGap:8,wrap:"wrap",children:[p&&p.length>0&&p[0].filters.map((t,i)=>s?(0,e.jsxs)(a,{className:"filter-card",children:[(0,e.jsxs)(f,{component:"p",style:{display:"inline-block",marginRight:1},children:[t.name," "]}),(0,e.jsx)(a,{children:(0,e.jsx)(c,{"aria-label":t.name,className:"filter-close",size:"xs",variant:"filled",onClick:n=>{r&&r(n)},children:(0,e.jsx)(d,{role:"presentation"})})})]},t.name):null),l.map((t,i)=>(0,e.jsx)(w.default.Fragment,{children:t==null?void 0:t.filters.map((n,o)=>n.applied?(0,e.jsxs)(a,{className:"filter-card",children:[(0,e.jsxs)(f,{component:"p",style:{display:"inline-block",marginRight:1},children:[n.name," "]}),(0,e.jsx)(a,{children:(0,e.jsx)(c,{"aria-label":`Filter: ${n.name}. Select to remove filter`,className:"filter-close",size:"xs",variant:"filled",onClick:()=>{y(S=>{let g=[...S];return g[i].filters[o].applied=!1,g})},children:(0,e.jsx)(d,{role:"presentation"})})})]},o):null)},i)),(0,e.jsx)(A,{"aria-label":"Clear all filters. Select to remove all filters",fw:400,variant:"subtle",onClick:t=>{y(i=>i.map(n=>({...n,filters:n.filters.map(o=>({...o,applied:!1}))}))),r&&s&&r(t),R("All Filters have been Cleared")},children:"Clear All"})]})]})})}var P=x;export{_ as a,P 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.