1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2604],{45027:function(t,n,e){"use strict";e.r(n),e.d(n,{FiltersTabChips:function(){return m}});var l=e(52322),i=e(23807),a=e(27095),s=e.n(a),c=e(23685),o=e(41619),r=e(91099),u=e(74031),E=e(53117),_=e(82692),T=e(60467),R=e(29064),C=e(32556),d=e(45664),b=e(20268),A=e(75478),h=e(2784);let m=t=>{var n,e;let{quickFilters:a,searchSource:m,context:w}=t,I=(0,A.useTranslations)(),{query:p}=(0,b.d)(),{selectedFilters:f,selectedRangeFilters:v,selectedExtendedDocumentTypesFilters:S,onClearFilters:F,correctedSearchTerm:L}=(0,o.P)(),{removeOption:N,removeRangeFilterOption:O,checkIsChecked:k,getQueryParams:G,pushMultipleQueries:P,getQueryWithRemovedOption:j}=(0,r.m)(),{triggerSearchAnalytics:D}=(0,_.l)({context:w}),U=null===(n=G(c.wn.SEARCH_TERM))||void 0===n?void 0:n[0],x=null===(e=G(c.wn.SKIP_SPELL_CORRECTION))||void 0===e?void 0:e[0],{data:M}=(0,E.oy)(),g=(0,C.K)(),{default:V,current:K}=(0,d.d)(),Y=async(t,n)=>{n.startsWith(T.O)&&(null==M?void 0:M.site_filter_attribute)===T.O&&n===K.value?g({newSite:V.key,paramsValuesToRemove:[n]}):t===c.wn.SEARCH_TERM&&x?P({filtersToDelete:[c.wn.SEARCH_TERM,c.wn.SKIP_SPELL_CORRECTION]},{scroll:!1}):"string"==typeof p[c.wn.CATEGORY_PAGE]&&n.includes(p[c.wn.CATEGORY_PAGE])?N(c.wn.CATEGORY_PAGE,p[c.wn.CATEGORY_PAGE],{scroll:!1}):N(t,n,{scroll:!1}),D(R.DG.UnselectFilter,m,{smartFilter:j(t,n).join(",")})},y=U?L||U:void 0,H=(0,h.useMemo)(()=>p[c.wn.QUANTITIVE_FILTER]||p[c.be.FILTER]?a.filter(t=>k(c.wn.QUANTITIVE_FILTER,"".concat(t.slug,"_true"))):[],[k,p,a]),W=!!f.length||!!H.length||!!v.length||!!(null==S?void 0:S.length);return(0,l.jsxs)("div",{className:s().container,"data-testid":"filter-tab-chips-container",children:[y&&(0,l.jsx)(u.b,{title:I("ADVANCED_FILTERS.KEYWORD"),subtitle:y,onClick:()=>Y(c.wn.SEARCH_TERM,U),isKeyword:!0},"$search-".concat(y)),H.map(t=>{let{name:n,slug:e}=t;return(0,l.jsx)(u.b,{title:n,onClick:()=>Y(c.wn.QUANTITIVE_FILTER,"".concat(e,"_true"))},"".concat(n,"-").concat(e))}),null==S?void 0:S.map(t=>{let{name:n,slug:e}=t;return(0,l.jsx)(u.b,{title:I("FILTERS_BUTTONS.DOCUMENT_TYPES"),subtitle:n,onClick:()=>Y(c.wn.SMART_FILTER,e)},"".concat(n,"-").concat(e))}),f.map(t=>{let{name:n,slug:e,category_name:i,taxonomy_group_name:a}=t;return(0,l.jsx)(u.b,{title:a||i,subtitle:n,onClick:()=>Y(c.wn.SMART_FILTER,e)},"".concat(n,"-").concat(e))}),v.map(t=>{let{name:n,slug:e,valueFrom:a,valueTo:s,unit:c,units:o}=t;return(0,l.jsx)(i.o,{defaultUnit:o[0],unit:c,valueTo:s,valueFrom:a,name:n,onClick:()=>{O(e,t=>{D(R.DG.UnselectFilter,m,{quantFilter:t.length?t.join(","):null})})}},"".concat(n,"-").concat(e))}),W&&(0,l.jsx)("button",{onClick:F,className:s().button,"data-testid":"filter-tab-chips-clear",children:I("ADVANCED_FILTERS.CLEAR_BUTTON")})]})}},27095:function(t){t.exports={container:"filters-tab-chips_container__6WKHW",button:"filters-tab-chips_button__otvb7","shimmer-animation":"filters-tab-chips_shimmer-animation__BVR7p"}}}]);
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.