1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74485],{74485:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(95155),o=r(19749),a=r(12115),l=r(47650),s=r(37570);function i(e){let t,r,i,c,u,f,p,x,b,m,h,v,g,w,k,j,y,N,E,L,C,_,S,z=(0,o.c)(80),{options:D,value:R,onChange:B,placeholder:A,className:M,disabled:q,searchable:W,openAbove:H,appearance:K,"aria-label":P,id:T}=e,U=void 0===M?"":M,F=void 0!==q&&q,G=void 0===W||W,I=void 0!==H&&H,J=void 0===K?"default":K,[O,Q]=(0,a.useState)(!1),[V,X]=(0,a.useState)(""),[Y,Z]=(0,a.useState)(-1),[$,ee]=(0,a.useState)("below");z[0]===Symbol.for("react.memo_cache_sentinel")?(t={},z[0]=t):t=z[0];let[,et]=(0,a.useState)(t);z[1]===Symbol.for("react.memo_cache_sentinel")?(r={top:0,left:0,width:0},z[1]=r):r=z[1];let[er,en]=(0,a.useState)(r),eo=(0,a.useRef)(null),ea=(0,a.useRef)(null),el=(0,a.useRef)(null);if(z[2]!==D||z[3]!==R){let e;z[5]!==R?(e=e=>e.value===R,z[5]=R,z[6]=e):e=z[6],i=D.find(e),z[2]=D,z[3]=R,z[4]=i}else i=z[4];let es=i;z[7]!==D||z[8]!==V||z[9]!==G?(c=G?D.filter(e=>{let t=V.toLowerCase().trim();return!t||e.label.toLowerCase().includes(t)||e.value.toLowerCase().includes(t)||e.flag&&e.flag.includes(V.trim())||e.aliases&&e.aliases.some(e=>e.toLowerCase().includes(t))}):D,z[7]=D,z[8]=V,z[9]=G,z[10]=c):c=z[10];let ei=c;z[11]!==O||z[12]!==I||z[13]!==G?(u=()=>{if(O&&eo.current){let e=eo.current.getBoundingClientRect();G&&el.current&&el.current.focus();let t=I;if(!t){let r=window.innerHeight-e.bottom,n=e.top;t=r<240&&n>240}ee(t?"above":"below"),en({top:t?e.top-240-4:e.bottom+4,left:e.left,width:e.width})}else et({})},f=[O,G,I],z[11]=O,z[12]=I,z[13]=G,z[14]=u,z[15]=f):(u=z[14],f=z[15]),(0,a.useEffect)(u,f),z[16]!==$||z[17]!==O||z[18]!==I?(p=()=>{if(O&&eo.current&&"u">typeof document){let e=()=>{if(eo.current){let e=eo.current.getBoundingClientRect();en({top:I||"above"===$?e.top-240-4:e.bottom+4,left:e.left,width:e.width})}};return e(),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}}},x=[O,I,$],z[16]=$,z[17]=O,z[18]=I,z[19]=p,z[20]=x):(p=z[19],x=z[20]),(0,a.useEffect)(p,x),z[21]!==O?(b=()=>{let e=e=>{let t=e.target,r=eo.current?.contains(t),n=ea.current?.contains(t);r||n||(Q(!1),X(""),Z(-1))};return O&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},m=[O],z[21]=O,z[22]=b,z[23]=m):(b=z[22],m=z[23]),(0,a.useEffect)(b,m),z[24]!==ei||z[25]!==Y||z[26]!==O||z[27]!==B?(h=e=>{if(!O){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),Q(!0));return}switch(e.key){case"ArrowDown":e.preventDefault(),Z(e=>e<ei.length-1?e+1:e);break;case"ArrowUp":e.preventDefault(),Z(d);break;case"Enter":e.preventDefault(),Y>=0&&ei[Y]&&(B(ei[Y].value),Q(!1),X(""),Z(-1));break;case"Escape":e.preventDefault(),Q(!1),X(""),Z(-1)}},z[24]=ei,z[25]=Y,z[26]=O,z[27]=B,z[28]=h):h=z[28];let ed=h;z[29]!==B?(v=e=>{B(e.value),Q(!1),X(""),Z(-1)},z[29]=B,z[30]=v):v=z[30];let ec=v,eu="webflow"===J,ef="quiz"===J;z[31]!==U?(g=(0,s.cn)("relative",U),z[31]=U,z[32]=g):g=z[32];let ep=ef?"quiz_form_input quiz_w-input relative flex w-full cursor-pointer items-center justify-between gap-2 text-left":eu?"wf_profile-form_input wf_profile-is-select-input flex w-full cursor-pointer items-center justify-between":"relative inline-flex w-full rounded-lg border border-input bg-background bg-clip-padding text-base/5 ring-ring/24 transition-[color,background-color,box-shadow,border-color] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-has-disabled:before:shadow-sm has-focus-visible:border-ring has-focus-visible:ring-[3px] has-disabled:opacity-64 sm:text-sm dark:bg-input/32 dark:bg-clip-border dark:shadow-black/24 dark:not-has-disabled:shadow-sm flex items-center justify-between cursor-pointer h-10 px-[calc(--spacing(3)-1px)] py-[calc(--spacing(1.5)-1px)]",ex=ef&&"pr-10",eb=F&&"opacity-50 cursor-not-allowed",em=!eu&&!ef&&O&&"ring-2 ring-blue-500 ring-opacity-50",eh=ef&&O&&"border-[#cfcfcf] bg-[#fafafa]";z[33]!==ep||z[34]!==ex||z[35]!==eb||z[36]!==em||z[37]!==eh?(w=(0,s.cn)(ep,ex,eb,em,eh),z[33]=ep,z[34]=ex,z[35]=eb,z[36]=em,z[37]=eh,z[38]=w):w=z[38],z[39]!==F||z[40]!==O?(k=()=>!F&&Q(!O),z[39]=F,z[40]=O,z[41]=k):k=z[41],z[42]!==es?(j=es?.flag&&(0,n.jsx)("span",{className:"flex-shrink-0 text-base leading-none",children:es.flag}),z[42]=es,z[43]=j):j=z[43];let ev=ef?es?"text-[#171717]":"text-[#17171799]":eu?"text-base":es?"text-foreground":"text-muted-foreground
1/64";z[44]!==ev?(y=(0,s.cn)("truncate text-base",ev),z[44]=ev,z[45]=y):y=z[45];let eg=es?es.label:void 0===A?"Select...":A;return z[46]!==y||z[47]!==eg?(N=(0,n.jsx)("span",{className:y,children:eg}),z[46]=y,z[47]=eg,z[48]=N):N=z[48],z[49]!==j||z[50]!==N?(E=(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2.5",children:[j,N]}),z[49]=j,z[50]=N,z[51]=E):E=z[51],z[52]!==O||z[53]!==ef||z[54]!==eu?(L=eu?null:(0,n.jsx)("svg",{className:(0,s.cn)("pointer-events-none h-4 w-4 flex-shrink-0 transition-transform",ef?"absolute right-3 top-1/2 -translate-y-1/2 text-[#707070]":"text-muted-foreground/64",O&&"rotate-180"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),z[52]=O,z[53]=ef,z[54]=eu,z[55]=L):L=z[55],z[56]!==P||z[57]!==F||z[58]!==T||z[59]!==O||z[60]!==w||z[61]!==k||z[62]!==E||z[63]!==L?(C=(0,n.jsxs)("button",{type:"button",id:T,"aria-label":P,"aria-haspopup":"listbox","aria-expanded":O,disabled:F,className:w,onClick:k,children:[E,L]}),z[56]=P,z[57]=F,z[58]=T,z[59]=O,z[60]=w,z[61]=k,z[62]=E,z[63]=L,z[64]=C):C=z[64],z[65]!==ei||z[66]!==ec||z[67]!==Y||z[68]!==O||z[69]!==ef||z[70]!==er||z[71]!==V||z[72]!==G||z[73]!==R?(_=O&&"u">typeof document&&(0,l.createPortal)((0,n.jsxs)("div",{ref:ea,role:"listbox",className:(0,s.cn)("fixed z-[9999] overflow-hidden rounded-[8px] border shadow-md",ef?"border-[#e5e5e5] bg-white text-[#171717]":"bg-popover text-popover-foreground border animate-in fade-in-0 zoom-in-95",G?"max-h-60":"max-h-96"),style:{top:er.top,left:er.left,width:er.width},children:[G&&(0,n.jsx)("div",{className:(0,s.cn)("border-b p-2",ef?"border-[#ececec] bg-[#f7f7f7]":"bg-muted/50"),children:(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("svg",{className:(0,s.cn)("pointer-events-none absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2",ef?"text-[#8a8a8a]":"text-muted-foreground"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,n.jsx)("input",{ref:el,type:"text",placeholder:"Search...",value:V,onChange:e=>{X(e.target.value),Z(-1)},className:(0,s.cn)("w-full rounded-md border py-1.5 pl-8 pr-3 text-sm outline-none",ef?"border-[#e5e5e5] bg-white text-[#171717] focus:border-[#171717]":"border-input bg-background focus:ring-2 focus:ring-ring focus:ring-offset-0")})]})}),(0,n.jsx)("div",{className:(0,s.cn)("overflow-y-auto p-1",G?"max-h-48":"max-h-96"),children:ei.length>0?ei.map((e,t)=>(0,n.jsxs)("div",{role:"option","aria-selected":e.value===R,className:(0,s.cn)("relative flex cursor-pointer select-none items-center gap-2 rounded-[6px] px-2.5 py-2 text-sm outline-none transition-colors",ef?t===Y||e.value===R?"bg-[#f1f1f1] text-[#171717]":"text-[#171717] hover:bg-[#f7f7f7]":(0,s.cn)((t===Y||e.value===R)&&"bg-accent text-accent-foreground",e.value===R&&"font-medium",t!==Y&&e.value!==R&&"hover:bg-accent hover:text-accent-foreground"),e.value===R&&"font-medium"),onClick:()=>ec(e),onMouseEnter:()=>Z(t),children:[e.flag&&(0,n.jsx)("span",{className:"flex-shrink-0 text-base leading-none",children:e.flag}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),e.value===R&&(0,n.jsx)("svg",{className:"h-4 w-4 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})]},e.value)):(0,n.jsxs)("div",{className:(0,s.cn)("px-2 py-6 text-center text-sm",ef?"text-[#8a8a8a]":"text-muted-foreground"),children:[(0,n.jsx)("div",{children:"No options found"}),(0,n.jsx)("div",{className:(0,s.cn)("mt-1 text-xs",ef?"text-[#a3a3a3]":"text-muted-foreground/70"),children:"Try a different search term"})]})})]}),document.body),z[65]=ei,z[66]=ec,z[67]=Y,z[68]=O,z[69]=ef,z[70]=er,z[71]=V,z[72]=G,z[73]=R,z[74]=_):_=z[74],z[75]!==ed||z[76]!==g||z[77]!==C||z[78]!==_?(S=(0,n.jsxs)("div",{ref:eo,className:g,onKeyDown:ed,children:[C,_]}),z[75]=ed,z[76]=g,z[77]=C,z[78]=_,z[79]=S):S=z[79],S}function d(e){return e>0?e-1:e}}}]);
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.