1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6591],{86591:(e,a,l)=>{l.r(a),l.d(a,{default:()=>o});var s=l(95155),d=l(26240),c=l(59876),n=l(8362),r=l(74946),t=l(38445),i=l(6739),h=l(83541),m=l(12115);let x=(e,a)=>{let l=new Set;return a.forEach(e=>{l.add(e.id)}),e.map(e=>({...e,checked:l.has(e.id)}))},o=e=>{let{selectedBrands:a,onCancel:l,onConfirm:o}=e,{colourBrands:f}=(0,t.K)(e=>e),{data:p,loading:u}=(0,i.A)(r.Ah5),[k,j]=(0,m.useState)(x(f,a));return((0,m.useEffect)(()=>{p&&j(x(p,a))},[p,a]),u)?(0,s.jsx)(c.A,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-1 flex-col px-4 md:px-8",children:[(0,s.jsx)("h5",{className:"text-xl",children:"Colour brand"}),(0,s.jsx)("ul",{className:"shrink grow basis-0 overflow-auto py-4",children:k.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(d.S,{fontBold:!1,fontSans:!0,label:e.name,checked:e.checked,onChange:()=>{var a;return a=e.id,void j(e=>e.map(e=>e.id!==a?e:{...e,checked:!e.checked}))}})},e.id))})]}),(0,s.jsx)(n.Es,{confirmText:h.pJk,className:"mt-4 px-4 pb-4 md:mt-8 md:px-8 md:pb-10",onCancel:l,onConfirm:()=>{o(k.filter(e=>e.checked).map(e=>({id:e.id,name:e.name,value:e.value})))}})]})}}}]);
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.