1"use strict";(self.webpackChunkwoocommerce_filters=self.webpackChunkwoocommerce_filters||[]).push([[1832],{4933:function(e,a,t){t.r(a);var r=t(9196),s=t(9233),l=t(2819),u=t(4548),i=t(7536),f=t(374),o=t(5736),n=t(389),c=t(9950),m=t(4271),g=t(5893);a.default=({name:e,value:a,setValue:t,group:p,...d})=>{var v;const{watch:y,resetField:h}=(0,i.Gc)(),{getGroup:A,prefilledValues:w,setPrefilling:b,submittedValues:E,getStoredValue:C}=(0,n.CR)(),k=A(p),V=!!(0,l.has)(k,"data."+d.facet.slug)&&(0,r.useMemo)((()=>k.data[d.facet.slug]),[k.data[d.facet.slug]]);let x=V.max,N=V.min,S=C(p,e);(0,l.isEmpty)(S)||Array.isArray(S)||(S=S.split(","));const T=y(e,!!Array.isArray(S)&&S),[B,F]=(0,r.useState)(Array.isArray(S)?S:[N,x]),G=null!==(v=V?.unit)&&void 0!==v?v:"",M=e=>(0,o.sprintf)("%s %s",e,G);(0,r.useEffect)((()=>{let e=T;(0,l.isEmpty)(e)?F([N,x]):Array.isArray(e)||(e=e.split(",").map(Number),F(e))}),[T]),(0,u.l)((()=>{!1===a&&F([N,x])}),[a]),(0,r.useEffect)((()=>{(0,l.has)(w,e)&&(b(!0),t(e,w[e]),F(w[e].map(Number)),b(!1))}),[w]),(0,r.useEffect)((()=>{(0,l.has)(E,e)||(b(!0),h(e),F([N,x]),b(!1))}),[E]),(0,r.useEffect)((()=>(m.YB.on("filterToggled-"+e,(a=>{h(e),t(e,!1),F([N,x])})),()=>{m.YB.remove("filterToggled-"+e)})),[]),(0,f.Z)("wcf-reset-filters",(()=>{b(!0),t(e,!1),F([N,x]),b(!1)}));const Y=(0,m.wN)(B);return(0,g.jsx)(s.Z,{value:Y,onChange:({value:e})=>F(e),min:N,max:x,valueToLabel:e=>M(e),overrides:(0,c.eM)(M),onFinalChange:({value:a})=>t(e,a.toString())})}}}]);
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.