1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="993d1c93-f96e-4340-a718-ffb55c28d472",e._sentryDebugIdIdentifier="sentry-dbid-993d1c93-f96e-4340-a718-ffb55c28d472")}catch(e){}}();import"./_sentry-release-injection-file-SYOkQ1Km.js";import{a as e}from"./rolldown-runtime-BBzOAo5_.js";import{t}from"./react-DuV36FPs.js";import{K as r}from"./index-CRc22cjs.js";import{n}from"./FacetSubmitButton-6gN5MkbS.js";import{t as o}from"./FloatingSubmitButton-CRCRLeE5.js";var a=e(t()),s=r(),l="all",d=({facets:e})=>{const[t,r]=(0,a.useState)(!1),d=(0,a.useRef)(null),[i,c]=(0,a.useState)((0,a.useMemo)((()=>{if(!e?.dealer_country_code)return[l];const t=Object.values(e.dealer_country_code).filter((e=>e.selected)).map((e=>e.value));return t.length>0?t:[l]}),[e?.dealer_country_code])),u=(0,a.useCallback)((()=>{r(!0);const e=new URL(window.location);e.searchParams.delete("dealer_country_code"),i.length>0&&(e.searchParams.delete("page"),e.searchParams.set("dealer_country_code",i.join("."))),window.location.href=e.toString()}),[i]),f=(0,a.useCallback)((e=>{c((t=>{if(e===l)return[l];const r=t.filter((e=>e!==l)),n=r.includes(e)?r.filter((t=>t!==e)):[...r,e];return n.sort(),n.length>0?n:[l]}))}),[]);return(0,s.jsxs)("div",{className:"facet-editor",ref:d,children:[(0,s.jsx)(n,{facets:e.dealer_country_code,selectedValues:i,onChange:f}),(0,s.jsx)(o,{onClick:u,disabled:t,updating:t,buttonContainerRef:d})]})};export{d as default}; 2//# sourceMappingURL=CollectionFilters-DSXeetPp.js.map
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.