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