1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9f6427ef-a5a2-4209-8338-102fd86c0eab",e._sentryDebugIdIdentifier="sentry-dbid-9f6427ef-a5a2-4209-8338-102fd86c0eab")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6496],{54768:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(95155),l=r(5514);function n(){return(0,s.jsxs)("div",{className:"flex items-center justify-center py-6",role:"status","aria-live":"polite","aria-busy":"true",children:[(0,s.jsx)(l.A,{icon:"FaSpinner",width:20,height:20,className:"animate-spin text-gray-400"}),(0,s.jsx)("span",{className:"sr-only",children:"Loading"})]})}},81542:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});var s=r(95155),l=r(12115),n=r(73321),a=r(90674),o=r(5514),i=r(4948),d=r(54768);let c=e=>{let{options:t,onChange:r,placeholder:c,specialPlaceholder:u=!0,multiSelect:x=!1,name:m,className:h,addAsParam:p,rounded:b="md",defaultValue:f,border:g=!0,labelText:y="",required:v=!1,error:j=!1,groupSelectionMode:w=!1,showGroupCounts:N=!1,collapseTags:$=!1,customIcons:S,loading:k=!1}=e,D=(0,n.useRouter)(),A=(0,l.useRef)(null),C=(0,n.useSearchParams)(),E=m?null==C?void 0:C.get(m):"",I=(0,l.useMemo)(()=>E?x?E.split(","):[E]:f||[],[E,f,x]),M=(0,l.useMemo)(()=>JSON.stringify(I),[I]),[P,_]=(0,l.useState)(!1),[J,L]=(0,l.useState)(""),[F,R]=(0,l.useState)(()=>I),[O,z]=(0,l.useState)(M);O!==M&&(R(I),z(M));let T="",U=e=>"options"in e&&Array.isArray(e.options),W=e=>e.options.map(e=>e.value),X=e=>W(e).every(e=>F.includes(e)),q=c&&!y&&u,K=q&&(P||F.length>0||J);"md"==b&&(T="rounded-md"),"l-md"==b&&(T="rounded-l-md"),"full"==b&&(T="rounded-full");let B=e=>{let t;if(L(""),x){let r=(t=[...F]).indexOf(e);-1===r?t.push(e):t.splice(r,1)}else t=F[0]===e?[]:[e];R(t),r&&r(t),p&&Q(t),_(!1)},G=e=>{for(let r of t)if(U(r)){let t=r.options.find(t=>t.value.toString()===e.toString());if(t)return t.label}else if(r.value.toString()===e.toString())return r.label;return""},H=e=>{for(let r of t)if(U(r)){let t=r.options.find(t=>t.value.toString()===e.toString());if(t)return t.icon}else if(r.value.toString()===e.toString())return r.icon},Q=e=>{var t,r;let s=null==(t=A.current)?void 0:t.closest("form");if((null==s||null==(r=s.dataset)?void 0:r.mobileStagedSearch)!=="true"||!window.matchMedia("(max-width: 1023px)").matches)if(s&&1){let t=e.length>0?e.join(","):[],r=new URLSearchParams(window.location.search);r.delete("page"),m&&r.set(m,t);let s=`${window.location.pathname}?${r.toString()}`;D.replace(s,{scroll:!1})}else{let t=e.length>0?e.join(","):[],r=new URLSearchParams(C.toString());r.delete("page"),m&&r.set(m,t),r.set("page","1"),D.replace(`${window.location.pathname}?${r.toString()}`,{scroll:!1})}};return(0,a.W)(A,()=>_(!1)),(0,s.jsxs)("div",{className:`relative block atom-select ${h}`,ref:A,children:[y&&(0,s.jsxs)("label",{className:"block mb-2 text-gray-800",children:[y," ",v&&(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),q&&(0,s.jsxs)("label",{className:`absolute left-4 transition-all duration-200 ease-in-out pointer-events-none z-10 ${K?"top-0 text-xs text-gray-600 px-1 -translate-y-1/2 rounded-sm border-[1px] border-solid border-b-0":"top-1/2 text-gray-500 -translate-y-1/2"}`,style:K?{backgroundColor:"var(--color-background)"}:void 0,children:[c," ",v&&(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsxs)("div",{className:`h-full ${g?"border border-solid px-4":""} relative cursor-pointer focus:outline-none py-3 ${T} ${j&&v?"border-red-500":""}`,style:g&&!(j&&v)?{borderColor:"color-mix(in srgb, var(--color-primary-text) 20%, transparent)"}:void 0,onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),_(!P)},role:"combobox","aria-expanded":P,"aria-haspopup":"listbox","aria-controls":`${m}-listbox`,"aria-invalid":j?"true":"false","aria-describedby":j?`${m}-error`:void 0,"aria-required":v?"true":"false",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between min-h-[1.5rem]",children:[(0,s.jsxs)("div",{className:"flex flex-wrap flex-1 min-w-0 items-center min-h-[1.5rem]",children:[F.length>1&&$?(0,s.jsxs)("span",{className:"inline-flex items-center text-sm font-medium truncate",children:[c," (",F.length,")"]}):0!=F.length&&F.map((e,t)=>(0,s.jsxs)("span",{className:`inline-flex items-center mr-1 font-medium leading-normal ${x?"text-sm px-2 py-1 my-1 text-gray-700 bg-gray-100":""}`,children:[H(e)&&(0,s.jsx)("span",{className:"flex items-center justify-center w-5 h-5 rounded-full bg-secondary flex-shrink-0 mr-1.5",children:(0,s.jsx)(o.A,{icon:H(e),width:8,height:8,className:"text-white text-[8px]",customIcons:S})}),G(e),x&&!$&&(0,s.jsxs)("button",{type:"button",className:"ml-2 focus:outline-none flex items-center",onMouseDown:t=>{let s;t.preventDefault(),t.stopPropagation(),R(s=F.filter(t=>t!==e)),r&&r(s),p&&Q(s)},"aria-label":G(e),children:[(0,s.jsx)("span",{className:"sr-only",children:"Remove"}),(0,s.jsx)(o.A,{icon:"FaX",width:20,height:20,className:"text-gray-900"})]})]},t)),(0,s.jsx)("div",{className:"inline-block flex-1 min-w-[50px]",children:(0,s.jsx)("input",{type:"text",value:J,placeholder:q?"":0===F.length?c:"",className:`h-full min-h-[1.5rem] w-full bg-transparent border-0 outline-none leading-normal placeholder:color-background-200 ${F.length>0&&!P?"invisible":""}`,onChange:e=>{L(e.target.value)},onFocus:()=>{_(!0)},onKeyDown:()=>{_(!0)},onMouseDown:e=>e.stopPropagation(),"aria-label":c,autoComplete:"off",tabIndex:F.length>0&&!P?-1:0})})]}),(0,s.jsxs)("div",{className:"ml-2 flex items-center gap-2 flex-shrink-0",children:[x&&F.length>0&&(0,s.jsx)("button",{type:"button",className:"text-gray-400 hover:text-gray-600 focus:outline-none",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),R([]),r&&r([]),p&&Q([])},"aria-label":"Clear selection",children:(0,s.jsx)(o.A,{icon:"FaX",width:10,height:10,className:"text-[10px]"})}),(0,s.jsx)(o.A,{icon:"FaChevronDown",width:20,height:20,className:"text-xs"})]})]}),P&&(0,s.jsx)("div",{id:`${m}-listbox`,role:"listbox","data-lenis-prevent":!0,className:`absolute left-0 right-0 mt-3 py-2 bg-background color-primary-text shadow-md z-20 max-h-80 overflow-y-auto ${b?"rounded-md":""}`,onMouseDown:e=>e.stopPropagation(),children:k?(0,s.jsx)(d.A,{}):t.filter(e=>{let t=(0,i.J2)(J);if(U(e)){let r=(0,i.J2)(e.label).includes(t),s=e.options.some(e=>(0,i.J2)(e.label).includes(t));return r||s}return(0,i.J2)(e.label).includes(t)}).map((e,t)=>{let l;
1if(U(e)){let l,n=X(e),a=W(e).some(e=>F.includes(e))&&!X(e),d=W(e).filter(e=>F.includes(e)).length,c=e.options.length;return(0,s.jsxs)("div",{className:"border-b border-gray-100 last:border-b-0",children:[(0,s.jsx)("div",{className:`px-4 py-3 text-left text-sm font-semibold bg-gray-50 border-b border-gray-200 ${w?"cursor-pointer hover:bg-gray-100":""} ${n?"bg-blue-50 text-blue-700":""} ${a?"bg-blue-25 text-blue-600":""} ${!x&&w&&(l=e.value,F.includes(l))?"bg-secondary/10 border-secondary text-secondary":""}`,onClick:()=>w&&(e=>{let t;if(w){if(x){t=[...F];let r=W(e);X(e)?t=t.filter(e=>!r.includes(e)):r.forEach(e=>{t.includes(e)||t.push(e)})}else{let r=e.value;t=F[0]===r?[]:[r],_(!1)}R(t),r&&r(t),p&&Q(t)}})(e),children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsx)("span",{className:"text-gray-800",children:e.label})}),N&&(0,s.jsxs)("span",{className:"text-xs text-gray-500 bg-gray-200 px-2 py-1 rounded-full",children:[d,"/",c]})]})}),e.options.filter(e=>(0,i.J2)(e.label).includes((0,i.J2)(J))).map((e,t)=>{let r;return(0,s.jsxs)("div",{className:`px-8 py-3 text-left cursor-pointer hover:bg-gray-50 hover:text-gray-900 border-l-2 border-transparent hover:border-secondary flex items-center gap-2 ${(r=e.value,F.includes(r))?"bg-secondary/10 border-secondary text-secondary":""} ${e.disabled?"opacity-50 cursor-not-allowed":""}`,onClick:()=>!e.disabled&&B(e.value),children:[e.icon&&(0,s.jsx)("span",{className:"flex items-center justify-center w-6 h-6 rounded-full bg-secondary flex-shrink-0",children:(0,s.jsx)(o.A,{icon:e.icon,width:10,height:10,className:"text-white text-[10px]",customIcons:S})}),(0,s.jsx)("span",{children:e.label})]},"sub"+t)})]},"group"+t)}return(0,s.jsxs)("div",{className:`px-4 py-3 text-left cursor-pointer hover:bg-gray-50 hover:text-gray-900 border-l-2 border-transparent hover:border-secondary flex items-center gap-2 ${(l=e.value,F.includes(l))?"bg-secondary/10 border-secondary text-secondary":""} ${e.disabled?"opacity-50 cursor-not-allowed":""}`,onClick:()=>!e.disabled&&B(e.value),children:[e.icon&&(0,s.jsx)("span",{className:"flex items-center justify-center w-6 h-6 rounded-full bg-secondary flex-shrink-0",children:(0,s.jsx)(o.A,{icon:e.icon,width:10,height:10,className:"text-white text-[10px]",customIcons:S})}),(0,s.jsx)("span",{children:e.label})]},"option"+t)})})]}),m&&(0,s.jsx)("input",{type:"hidden",name:m,value:F.join(","),readOnly:!0})]})}},90674:(e,t,r)=>{r.d(t,{W:()=>l});var s=r(12115);let l=(e,t)=>{(0,s.useEffect)(()=>{let r=r=>{!e.current||e.current.contains(r.target)||t(r)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])}}}]);
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.