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]="600a4159-a008-4483-a960-be1ba11462b2",e._sentryDebugIdIdentifier="sentry-dbid-600a4159-a008-4483-a960-be1ba11462b2")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5519],{54768:(e,t,s)=>{s.d(t,{A:()=>r});var n=s(95155),l=s(5514);function r(){return(0,n.jsxs)("div",{className:"flex items-center justify-center py-6",role:"status","aria-live":"polite","aria-busy":"true",children:[(0,n.jsx)(l.A,{icon:"FaSpinner",width:20,height:20,className:"animate-spin text-gray-400"}),(0,n.jsx)("span",{className:"sr-only",children:"Loading"})]})}},75617:(e,t,s)=>{s.r(t),s.d(t,{default:()=>d});var n=s(95155),l=s(12115),r=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,defaultValue:b,border:g=!0,labelText:f="",required:y=!1,error:v=!1,groupSelectionMode:w=!1,showGroupCounts:j=!1,collapseTags:N=!1,icon:$,iconBgColor:S="bg-secondary",size:k="md",customIcons:D,loading:C=!1}=e,I=(0,r.useRouter)(),P=(0,l.useRef)(null),A=(0,r.useSearchParams)(),E=h?null==A?void 0:A.get(h):"",M=(0,l.useMemo)(()=>E?x?E.split(","):[E]:b||[],[E,b,x]),_=(0,l.useMemo)(()=>JSON.stringify(M),[M]),[J,L]=(0,l.useState)(!1),[z,F]=(0,l.useState)(""),[R,O]=(0,l.useState)(()=>M),[T,U]=(0,l.useState)(_);T!==_&&(O(M),U(_));let W=e=>"options"in e&&Array.isArray(e.options),X=e=>e.options.map(e=>e.value),q=e=>X(e).every(e=>R.includes(e)),K=d&&!f&&u,B=K&&(J||R.length>0||z),G=e=>{let t;if(F(""),x){let s=(t=[...R]).indexOf(e);-1===s?t.push(e):t.splice(s,1)}else t=R[0]===e?[]:[e];O(t),s&&s(t),m&&V(t),L(!1)},H=e=>{for(let s of t)if(W(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(W(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 n=null==(t=P.current)?void 0:t.closest("form");if((null==n||null==(s=n.dataset)?void 0:s.mobileStagedSearch)!=="true"||!window.matchMedia("(max-width: 1023px)").matches)if(n&&1){let t=e.length>0?e.join(","):[],s=new URLSearchParams(window.location.search);s.delete("page"),h&&s.set(h,t);let n=`${window.location.pathname}?${s.toString()}`;I.replace(n,{scroll:!1})}else{let t=e.length>0?e.join(","):[],s=new URLSearchParams(A.toString());s.delete("page"),h&&s.set(h,t),s.set("page","1"),I.replace(`${window.location.pathname}?${s.toString()}`,{scroll:!1})}};(0,a.W)(P,()=>L(!1));let Y={sm:{padding:"py-2",iconSize:"w-6 h-6",iconPx:12,iconClass:"text-sm"},md:{padding:"py-3",iconSize:"w-7 h-7",iconPx:14,iconClass:"text-sm"},lg:{padding:"py-4",iconSize:"w-8 h-8",iconPx:16,iconClass:"text-base"}}[k];return(0,n.jsxs)("div",{className:`relative block atom-select ${p}`,ref:P,children:[f&&(0,n.jsxs)("label",{className:"block mb-2 text-gray-800",children:[f," ",y&&(0,n.jsx)("span",{className:"text-red-500",children:"*"})]}),K&&(0,n.jsxs)("label",{className:`absolute ${$?"left-14":"left-7"} transition-all duration-200 ease-in-out pointer-events-none z-10 ${B?"top-0 text-xs text-gray-600 px-1 -translate-y-1/2":"top-1/2 text-gray-500 -translate-y-1/2"}`,style:B?{backgroundColor:"var(--color-background)"}:void 0,children:[d," ",y&&(0,n.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,n.jsxs)("div",{className:`h-full ${(null==p?void 0:p.includes("bg-"))?"":"bg-white"} ${g?"border border-solid border-gray-300 px-3":""} relative cursor-pointer focus:outline-none ${Y.padding} rounded-full ${v&&y?"border-red-500":""}`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),L(!J)},role:"combobox","aria-expanded":J,"aria-haspopup":"listbox","aria-controls":`${h}-listbox`,"aria-invalid":v?"true":"false","aria-describedby":v?`${h}-error`:void 0,"aria-required":y?"true":"false",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between min-h-full gap-2",children:[$&&(0,n.jsx)("div",{className:`flex items-center justify-center ${Y.iconSize} rounded-full ${S} flex-shrink-0`,children:(0,n.jsx)(o.A,{icon:$,width:Y.iconPx,height:Y.iconPx,className:`text-white ${Y.iconClass}`,customIcons:D})}),(0,n.jsxs)("div",{className:"flex flex-wrap flex-1 min-w-0",children:[R.length>1&&N?(0,n.jsxs)("span",{className:"inline-flex items-center text-sm font-medium truncate",children:[d," (",R.length,")"]}):0!=R.length&&R.map((e,t)=>(0,n.jsxs)("span",{className:`inline-flex items-center mr-1 text-sm font-medium ${x?"px-2 py-1 my-1 text-gray-700 bg-gray-100 rounded-full":""}`,children:[Q(e)&&(0,n.jsx)("span",{className:"flex items-center justify-center w-5 h-5 rounded-full bg-secondary flex-shrink-0 mr-1.5",children:(0,n.jsx)(o.A,{icon:Q(e),width:8,height:8,className:"text-white text-[8px]",customIcons:D})}),H(e),x&&!N&&(0,n.jsxs)("button",{type:"button",className:"ml-2 focus:outline-none flex items-center",onMouseDown:t=>{let n;t.preventDefault(),t.stopPropagation(),O(n=R.filter(t=>t!==e)),s&&s(n),m&&V(n)},"aria-label":H(e),children:[(0,n.jsx)("span",{className:"sr-only",children:"Remove"}),(0,n.jsx)(o.A,{icon:"FaX",width:20,height:20,className:"text-gray-900",customIcons:D})]})]},t)),(0,n.jsx)("div",{className:"inline-block flex-1 min-w-[50px]",children:(0,n.jsx)("input",{type:"text",value:z,placeholder:K?"":0===R.length?d:"",className:`h-full min-h-[1.5rem] w-full bg-transparent border-0 outline-none placeholder:color-background-200 ${R.length>0&&!J?"invisible":""}`,onChange:e=>{F(e.target.value)},onFocus:()=>{L(!0)},onKeyDown:()=>{L(!0)},onMouseDown:e=>e.stopPropagation(),"aria-label":d,tabIndex:R.length>0&&!J?-1:0})})]}),(0,n.jsxs)("div",{className:"ml-2 flex items-center gap-2 flex-shrink-0",children:[x&&R.length>0&&(0,n.jsx)("button",{type:"button",className:"text-gray-400 hover:text-gray-600 focus:outline-none",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),O([]),s&&s([]),m&&V([])},"aria-label":"Clear selection",children:(0,n.jsx)(o.A,{icon:"FaX",width:10,height:10,className:"text-[10px]",customIcons:D})}),(0,n.jsx)(o.A,{icon:"FaChevronDown",width:20,height:20,className:"text-xs",customIcons:D})]})]}),J&&(0,n.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 rounded-2xl",onMouseDown:e=>e.stopPropagation(),children:C?(0,n.jsx)(c.A,{}):t.filter(e=>{let t=(0,i.J2)(z);if(W(e)){let s=(0,i.J2)(e.label).includes(t),n=e.options.some(e=>(0,i.J2)(e.label).includes(t));return s||n}return(0,i.J2)(e.label).includes(t)}).map((e,t)=>{let l;if(W(e)){let l,r=q(e),a=X(e).some(e=>R.includes(e))&&!q(e),c=X(e).filter(e=>R.includes(e)).length,d=e.options.length;return(0,n.jsxs)("div",{className:"border-b border-gray-100 last:border-b-0",children:[(0,n.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":""} ${r?"bg-blue-50 text-blue-700":""} ${a?"bg-blue-25 text-blue-600":""} ${!x&&w&&(l=e.value,R.includes(l))?"bg-secondary/10 border-secondary text-secondary":""}`,onClick:()=>w&&(e=>{let t;if(w){if(x){t=[...R];let s=X(e);q(e)?t=t.filter(e=>!s.includes(e)):s.forEach(e=>{t.includes(e)||t.push(e)})}else{let s=e.value;t=R[0]===s?[]:[s],L(!1)}O(t),s&&s(t),m&&V(t)}})(e),children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("div",{className:"flex items-center gap-2",children:(0,n.jsx)("span",{className:"text-gray-800",children:e.label})}),j&&(0,n.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)(z))).map((e,t)=>{let s;return(0,n.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,R.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,n.jsx)("span",{className:"flex items-center justify-center w-6 h-6 rounded-full bg-secondary flex-shrink-0",children:(0,n.jsx)(o.A,{icon:e.icon,width:10,height:10,className:"text-white text-[10px]",customIcons:D})}),(0,n.jsx)("span",{children:e.label})]},"sub"+t)})]},"group"+t)}return(0,n.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,R.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,n.jsx)("span",{className:"flex items-center justify-center w-6 h-6 rounded-full bg-secondary flex-shrink-0",children:(0,n.jsx)(o.A,{icon:e.icon,width:10,height:10,className:"text-white text-[10px]",customIcons:D})}),(0,n.jsx)("span",{children:e.label})]},"option"+t)})})]}),h&&(0,n.jsx)("input",{type:"hidden",name:h,value:R.join(","),readOnly:!0})]})}},90674:(e,t,s)=>{s.d(t,{W:()=>l});var n=s(12115);let l=(e,t)=>{(0,n.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.