PageSourceSearch

https://waytodeal.com/build/assets/select-vTTzKAdV.js

js waytodeal.com collected 2026-09-27 02:23:18 UTC 22,946 bytes, 6 lines download raw bytes

1import{r as o,j as r,d as Ne}from"./app-CxpiwYDE.js";import{d as q,c as N,a as Fe,P as Ue,u as Pe,C as We}from"./index-CiSaywgB.js";import{c as Me,g as Ke,A as ze,P as $e,h as Ge,u as Ye,R as qe,F as Xe,D as Ze,C as Je,i as Ce,b as De,V as Qe,f as et,a as tt}from"./Combination-BNefrpAA.js";import{a as ot,u as F,b as nt,c as oe}from"./button-DyqREa-r.js";import{P as k}from"./index-vduFKmeD.js";import{u as rt}from"./index-CAx3i_Qh.js";import{C as Oe}from"./chevron-down-DSpbogh1.js";/**
2 * @license lucide-react v0.475.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const st=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],lt=ot("ChevronUp",st);var ct=Object.defineProperty,at=(a,e)=>ct(a,"name",{value:e,configurable:!0});function xe(a,[e,l]){return Math.min(l,Math.max(e,a))}at(xe,"clamp");var it=Object.defineProperty,S=(a,e)=>it(a,"name",{value:e,configurable:!0}),dt=[" ","Enter","ArrowUp","ArrowDown"],ut=[" ","Enter"],ie="Select",[me,he,pt]=Ke(ie),[re,Qt]=Fe(ie,[pt,Me]),ye=Me(),[ft,X]=re(ie),[mt,ht]=re(ie);function Ae(a){const{__scopeSelect:e,children:l,open:t,defaultOpen:p,onOpenChange:i,value:f,defaultValue:c,onValueChange:s,dir:n,name:g,autoComplete:x,disabled:y,required:b,form:T,internal_do_not_use_render:R}=a,d=ye(e),[h,C]=o.useState(null),[m,u]=o.useState(null),[E,j]=o.useState(!1),Z=et(n),[O,B]=Pe({prop:t,defaultProp:p??!1,onChange:i,caller:ie}),[J,z]=Pe({prop:f,defaultProp:c,onChange:s,caller:ie}),U=o.useRef(null),W=o.useRef(J);o.useEffect(()=>{const M=T?h==null?void 0:h.ownerDocument.getElementById(T):h==null?void 0:h.form;if(M instanceof HTMLFormElement){const H=S(()=>z(W.current),"reset");return M.addEventListener("reset",H),()=>M.removeEventListener("reset",H)}},[T,h,z]);const Q=h?!!T||!!h.closest("form"):!0,[K,L]=o.useState(new Set),$=De(),G=Array.from(K).map(M=>M.props.value).join(";"),Y=o.useCallback(M=>{L(H=>new Set(H).add(M))},[]),V=o.useCallback(M=>{L(H=>{const ce=new Set(H);return ce.delete(M),ce})},[]),le={required:b,trigger:h,onTriggerChange:C,valueNode:m,onValueNodeChange:u,valueNodeHasChildren:E,onValueNodeHasChildrenChange:j,contentId:$,value:J,onValueChange:z,open:O,onOpenChange:B,dir:Z,triggerPointerDownPosRef:U,disabled:y,name:g,autoComplete:x,form:T,nativeOptions:K,nativeSelectKey:G,isFormControl:Q};return r.jsx(tt,{...d,children:r.jsx(ft,{scope:e,...le,children:r.jsx(me.Provider,{scope:e,children:r.jsx(mt,{scope:e,onNativeOptionAdd:Y,onNativeOptionRemove:V,children:Ve(R)?R(le):l})})})})}S(Ae,"SelectProvider");var vt=S(a=>{const{__scopeSelect:e,children:l,...t}=a;return r.jsx(Ae,{__scopeSelect:e,...t,internal_do_not_use_render:({isFormControl:p})=>r.jsxs(r.Fragment,{children:[l,p?r.jsx(Wt,{__scopeSelect:e}):null]})})},"Select"),gt="SelectTrigger",St=o.forwardRef(S(function(e,l){const{__scopeSelect:t,disabled:p=!1,...i}=e,f=ye(t),c=X(gt,t),s=c.disabled||p,n=F(l,c.onTriggerChange),g=he(t),x=o.useRef("touch"),[y,b,T]=be(d=>{const h=g().filter(u=>!u.disabled),C=h.find(u=>u.value===c.value),m=Te(h,d,C);m!==void 0&&c.onValueChange(m.value)}),R=S(d=>{s||(c.onOpenChange(!0),T()),d&&(c.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})},"handleOpen");return r.jsx(ze,{asChild:!0,...f,children:r.jsx(k.button,{type:"button",role:"combobox","aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":ue(c.value)?"":void 0,...i,ref:n,onClick:N(i.onClick,d=>{d.currentTarget.focus(),x.current!=="mouse"&&R(d)}),onPointerDown:N(i.onPointerDown,d=>{x.current=d.pointerType;const h=d.target;h.hasPointerCapture(d.pointerId)&&h.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(R(d),d.preventDefault())}),onKeyDown:N(i.onKeyDown,d=>{const h=y.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&b(d.key),!(h&&d.key===" ")&&dt.includes(d.key)&&(R(),d.preventDefault())})})})},"SelectTrigger")),xt="SelectValue",wt=o.forwardRef(S(function(e,l){const{__scopeSelect:t,className:p,style:i,children:f,placeholder:c="",...s}=e,n=X(xt,t),{onValueNodeHasChildrenChange:g}=n,x=f!==void 0,y=F(l,n.onValueNodeChange);q(()=>{g(x)},[g,x]);const b=ue(n.value);return r.jsx(k.span,{...s,asChild:b?!1:s.asChild,ref:y,style:{pointerEvents:"none"},children:r.jsx(o.Fragment,{children:b?c:f},b?"placeholder":"value")})},"SelectValue")),Ct=o.forwardRef(S(function(e,l){const{__scopeSelect:t,children:p,...i}=e;return r.jsx(k.span,{"aria-hidden":!0,...i,ref:l,children:p||"▼"})},"SelectIcon")),yt="SelectPortal",[It,bt]=re(yt,{forceMount:void 0}),Tt=S(a=>{const{__scopeSelect:e,forceMount:l,...t}=a;return r.jsx(It,{scope:a.__scopeSelect,forceMount:l,children:r.jsx($e,{asChild:!0,...t})})},"SelectPortal"),ne="SelectContent",Pt=o.forwardRef(S(function(e,l){const t=bt(ne,e.__scopeSelect),{forceMount:p=t.forceMount,...i}=e,f=X(ne,e.__scopeSelect),[c,s]=o.useState();return q(()=>{s(new DocumentFragment)},[]),r.jsx(Ue,{present:p||f.open,children:({present:n})=>n?r.jsx(Et,{...i,ref:l}):r.jsx(_t,{...i,fragment:c})})},"SelectContent")),_t=o.forwardRef(S(function(e,l){const{__scopeSelect:t,children:p,fragment:i}=e;return i?Ne.createPortal(r.jsx(ke,{scope:t,children:r.jsx(me.Slot,{scope:t,children:r.jsx("div",{ref:l,children:p})})}),i):null},"SelectContentFragment")),A=10,[ke,se]=re(ne),Rt=nt("SelectContent.RemoveScroll"),Et=o.forwardRef(S(function(e,l){const{__scopeSelect:t}=e,{position:p="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:f,onPointerDownOutside:c,side:s,sideOffset:n,align:g,alignOffset:x,arrowPadding:y,collisionBoundary:b,collisionPadding:T,sticky:R,hideWhenDetached:d,avoidCollisions:h,...C}
vendor: 8,755 bytes, line 6
6=e,m=X(ne,t),[u,E]=o.useState(null),[j,Z]=o.useState(null),O=F(l,E),[B,J]=o.useState(null),[z,U]=o.useState(null),W=he(t),[Q,K]=o.useState(!1),L=o.useRef(!1);o.useEffect(()=>{if(u)return Ge(u)},[u]),Ye();const $=o.useCallback(v=>{const[_,...D]=W().map(I=>I.ref.current),[P]=D.slice(-1),w=document.activeElement;for(const I of v)if(I===w||(I==null||I.scrollIntoView({block:"nearest"}),I===_&&j&&(j.scrollTop=0),I===P&&j&&(j.scrollTop=j.scrollHeight),I==null||I.focus(),document.activeElement!==w))return},[W,j]),G=o.useCallback(()=>$([B,u]),[$,B,u]);o.useEffect(()=>{Q&&G()},[Q,G]);const{onOpenChange:Y,triggerPointerDownPosRef:V}=m;o.useEffect(()=>{if(u){let v={x:0,y:0};const _=S(P=>{var w,I;v={x:Math.abs(Math.round(P.pageX)-(((w=V.current)==null?void 0:w.x)??0)),y:Math.abs(Math.round(P.pageY)-(((I=V.current)==null?void 0:I.y)??0))}},"handlePointerMove"),D=S(P=>{v.x<=10&&v.y<=10?P.preventDefault():P.composedPath().includes(u)||Y(!1),document.removeEventListener("pointermove",_),V.current=null},"handlePointerUp");return V.current!==null&&(document.addEventListener("pointermove",_),document.addEventListener("pointerup",D,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",D,{capture:!0})}}},[u,Y,V]),o.useEffect(()=>{const v=S(()=>Y(!1),"close");return window.addEventListener("blur",v),window.addEventListener("resize",v),()=>{window.removeEventListener("blur",v),window.removeEventListener("resize",v)}},[Y]);const[le,M]=be(v=>{const _=W().filter(w=>!w.disabled),D=_.find(w=>w.ref.current===document.activeElement),P=Te(_,v,D);P&&setTimeout(()=>{var w;return(w=P.ref.current)==null?void 0:w.focus()})}),H=o.useCallback((v,_,D)=>{const P=!L.current&&!D;(m.value!==void 0&&m.value===_||P)&&(J(v),P&&(L.current=!0))},[m.value]),ce=o.useCallback(()=>u==null?void 0:u.focus(),[u]),ae=o.useCallback((v,_,D)=>{const P=!L.current&&!D;(m.value!==void 0&&m.value===_||P)&&U(v)},[m.value]),pe=p==="popper"?_e:jt,de=pe===_e?{side:s,sideOffset:n,align:g,alignOffset:x,arrowPadding:y,collisionBoundary:b,collisionPadding:T,sticky:R,hideWhenDetached:d,avoidCollisions:h}:{};return r.jsx(ke,{scope:t,content:u,viewport:j,onViewportChange:Z,itemRefCallback:H,selectedItem:B,onItemLeave:ce,itemTextRefCallback:ae,focusSelectedItem:G,selectedItemText:z,position:p,isPositioned:Q,searchRef:le,children:r.jsx(qe,{as:Rt,allowPinchZoom:!0,children:r.jsx(Xe,{asChild:!0,trapped:m.open,onMountAutoFocus:v=>{v.preventDefault()},onUnmountAutoFocus:N(i,v=>{var _;(_=m.trigger)==null||_.focus({preventScroll:!0}),v.preventDefault()}),children:r.jsx(Ze,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:c,onFocusOutside:v=>v.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:r.jsx(pe,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:v=>v.preventDefault(),...C,...de,onPlaced:()=>K(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:N(C.onKeyDown,v=>{const _=v.ctrlKey||v.altKey||v.metaKey;if(v.key==="Tab"&&v.preventDefault(),!_&&v.key.length===1&&M(v.key),["ArrowUp","ArrowDown","Home","End"].includes(v.key)){let P=W().filter(w=>!w.disabled).map(w=>w.ref.current);if(["ArrowUp","End"].includes(v.key)&&(P=P.slice().reverse()),["ArrowUp","ArrowDown"].includes(v.key)){const w=v.target,I=P.indexOf(w);P=P.slice(I+1)}setTimeout(()=>$(P)),v.preventDefault()}})})})})})})},"SelectContentImpl")),jt=o.forwardRef(S(function(e,l){const{__scopeSelect:t,onPlaced:p,...i}=e,f=X(ne,t),c=se(ne,t),[s,n]=o.useState(null),[g,x]=o.useState(null),y=F(l,x),b=he(t),T=o.useRef(!1),R=o.useRef(!0),{viewport:d,selectedItem:h,selectedItemText:C,focusSelectedItem:m}=c,u=o.useCallback(()=>{if(f.trigger&&f.valueNode&&s&&g&&d&&h&&C){const O=f.trigger.getBoundingClientRect(),B=g.getBoundingClientRect(),J=f.valueNode.getBoundingClientRect(),z=C.getBoundingClientRect();if(f.dir!=="rtl"){const w=z.left-B.left,I=J.left-w,ee=O.left-I,te=O.width+ee,ve=Math.max(te,B.width),ge=window.innerWidth-A,Se=xe(I,[A,Math.max(A,ge-ve)]);s.style.minWidth=te+"px",s.style.left=Se+"px"}else{const w=B.right-z.right,I=window.innerWidth-J.right-w,ee=window.innerWidth-O.right-I,te=O.width+ee,ve=Math.max(te,B.width),ge=window.innerWidth-A,Se=xe(I,[A,Math.max(A,ge-ve)]);s.style.minWidth=te+"px",s.style.right=Se+"px"}const U=b(),W=window.innerHeight-A*2,Q=d.scrollHeight,K=window.getComputedStyle(g),L=parseInt(K.borderTopWidth,10),$=parseInt(K.paddingTop,10),G=parseInt(K.borderBottomWidth,10),Y=parseInt(K.paddingBottom,10),V=L+$+Q+Y+G,le=Math.min(h.offsetHeight*5,V),M=window.getComputedStyle(d),H=parseInt(M.paddingTop,10),ce=parseInt(M.paddingBottom,10),ae=O.top+O.height/2-A,pe=W-ae,de=h.offsetHeight/2,v=h.offsetTop+de,_=L+$+v,D=V-_;if(_<=ae){const w=U.length>0&&h===U[U.length-1].ref.current;s.style.bottom="0px";const I=g.clientHeight-d.offsetTop-d.offsetHeight,ee=Math.max(pe,de+(w?ce:0)+I+G),te=_+ee;s.style.height=te+"px"}else{const w=U.length>0&&h===U[0].ref.current;s.style.top="0px";const ee=Math.max(ae,L+d.offsetTop+(w?H:0)+de)+D;s.style.height=ee+"px",d.scrollTop=_-ae+d.offsetTop}s.style.margin=`${A}px 0`,s.style.minHeight=le+"px",s.style.maxHeight=W+"px",p==null||p(),requestAnimationFrame(()=>T.current=!0)}},[b,f.trigger,f.valueNode,s,g,d,h,C,f.dir,p]);q(()=>u(),[u]);const[E,j]=o.useState();q(()=>{g&&j(window.getComputedStyle(g).zIndex)},[g]);const Z=o.useCallback(O=>{O&&R.current===!0&&(u(),m==null||m(),R.current=!1)},[u,m]);return r.jsx(Nt,{scope:t,contentWrapper:s,shouldExpandOnScrollRef:T,onScrollButtonChange:Z,children:r.jsx("div",{ref:n,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:r.jsx(k.div,{...i,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})},"SelectItemAlignedPosition")),_e=o.forwardRef(S(function(e,l){const{__scopeSelect:t,align:p="start",collisionPadding:i=A,...f}=e,c=ye(t);return r.jsx(Je,{...c,...f,ref:l,align:p,collisionPadding:i,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[Nt,Ie]=re(ne,{}),Re="SelectViewport",Mt=o.forwardRef(S(function(e,l){const{__scopeSelect:t,nonce:p,...i}=e,f=se(Re,t),c=Ie(Re,t),s=F(l,f.onViewportChange),n=o.useRef(0);return r.jsxs(r.Fragment,{children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:p}),r.jsx(me.Slot,{scope:t,children:r.jsx(k.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:N(i.onScroll,g=>{const x=g.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:b}=c;if(b!=null&&b.current&&y){const T=Math.abs(n.current-x.scrollTop);if(T>0){const R=window.innerHeight-A*2,d=parseFloat(y.style.minHeight),h=parseFloat(y.style.height),C=Math.max(d,h);if(C<R){const m=C+T,u=Math.min(R,m),E=m-u;y.style.height=u+"px",y.style.bottom==="0px"&&(x.scrollTop=E>0?E:0,y.style.justifyContent="flex-end")}}}n.current=x.scrollTop})})})]})},"SelectViewport")),Dt="SelectGroup",[eo,to]=re(Dt),we="SelectItem",[Ot,Be]=re(we),At=o.forwardRef(S(function(e,l){const{__scopeSelect:t,value:p,disabled:i=!1,textValue:f,...c}=e,s=X(we,t),n=se(we,t),g=s.value===p,[x,y]=o.useState(f??""),[b,T]=o.useState(!1),R=Ce(u=>{var E;return(E=n.itemRefCallback)==null?void 0:E.call(n,u,p,i)}),d=F(l,R),h=De(),C=o.useRef("touch"),m=S(()=>{i||(s.onValueChange(p),s.onOpenChange(!1))},"handleSelect");return r.jsx(Ot,{scope:t,value:p,disabled:i,textId:h,isSelected:g,onItemTextChange:o.useCallback(u=>{y(E=>E||((u==null?void 0:u.textContent)??"").trim())},[]),children:r.jsx(me.ItemSlot,{scope:t,value:p,disabled:i,textValue:x,children:r.jsx(k.div,{role:"option","aria-labelledby":h,"data-highlighted":b?"":void 0,"aria-selected":g&&b,"data-state":g?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...c,ref:d,onFocus:N(c.onFocus,()=>T(!0)),onBlur:N(c.onBlur,()=>T(!1)),onClick:N(c.onClick,()=>{C.current!=="mouse"&&m()}),onPointerUp:N(c.onPointerUp,()=>{C.current==="mouse"&&m()}),onPointerDown:N(c.onPointerDown,u=>{C.current=u.pointerType}),onPointerMove:N(c.onPointerMove,u=>{var E;C.current=u.pointerType,i?(E=n.onItemLeave)==null||E.call(n):C.current==="mouse"&&u.currentTarget.focu
6s({preventScroll:!0})}),onPointerLeave:N(c.onPointerLeave,u=>{var E;u.currentTarget===document.activeElement&&((E=n.onItemLeave)==null||E.call(n))}),onKeyDown:N(c.onKeyDown,u=>{var j;i||u.target!==u.currentTarget||((j=n.searchRef)==null?void 0:j.current)!==""&&u.key===" "||(ut.includes(u.key)&&m(),u.key===" "&&u.preventDefault())})})})})},"SelectItem")),fe="SelectItemText",kt=o.forwardRef(S(function(e,l){const{__scopeSelect:t,className:p,style:i,...f}=e,c=X(fe,t),s=se(fe,t),n=Be(fe,t),g=ht(fe,t),[x,y]=o.useState(null),b=Ce(m=>{var u;return(u=s.itemTextRefCallback)==null?void 0:u.call(s,m,n.value,n.disabled)}),T=F(l,y,n.onItemTextChange,b),R=x==null?void 0:x.textContent,d=o.useMemo(()=>r.jsx("option",{value:n.value,disabled:n.disabled,children:R},n.value),[n.disabled,n.value,R]),{onNativeOptionAdd:h,onNativeOptionRemove:C}=g;return q(()=>(h(d),()=>C(d)),[h,C,d]),r.jsxs(r.Fragment,{children:[r.jsx(k.span,{id:n.textId,...f,ref:T}),n.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!ue(c.value)?Ne.createPortal(f.children,c.valueNode):null]})},"SelectItemText")),Bt="SelectItemIndicator",Lt=o.forwardRef(S(function(e,l){const{__scopeSelect:t,...p}=e;return Be(Bt,t).isSelected?r.jsx(k.span,{"aria-hidden":!0,...p,ref:l}):null},"SelectItemIndicator")),Ee="SelectScrollUpButton",Vt=o.forwardRef(S(function(e,l){const t=se(Ee,e.__scopeSelect),p=Ie(Ee,e.__scopeSelect),[i,f]=o.useState(!1),c=F(l,p.onScrollButtonChange);return q(()=>{if(t.viewport&&t.isPositioned){let s=function(){const g=n.scrollTop>0;f(g)};S(s,"handleScroll");const n=t.viewport;return s(),n.addEventListener("scroll",s),()=>n.removeEventListener("scroll",s)}},[t.viewport,t.isPositioned]),i?r.jsx(Le,{...e,ref:c,onAutoScroll:()=>{const{viewport:s,selectedItem:n}=t;s&&n&&(s.scrollTop=s.scrollTop-n.offsetHeight)}}):null},"SelectScrollUpButton")),je="SelectScrollDownButton",Ht=o.forwardRef(S(function(e,l){const t=se(je,e.__scopeSelect),p=Ie(je,e.__scopeSelect),[i,f]=o.useState(!1),c=F(l,p.onScrollButtonChange);return q(()=>{if(t.viewport&&t.isPositioned){let s=function(){const g=n.scrollHeight-n.clientHeight,x=Math.ceil(n.scrollTop)<g;f(x)};S(s,"handleScroll");const n=t.viewport;return s(),n.addEventListener("scroll",s),()=>n.removeEventListener("scroll",s)}},[t.viewport,t.isPositioned]),i?r.jsx(Le,{...e,ref:c,onAutoScroll:()=>{const{viewport:s,selectedItem:n}=t;s&&n&&(s.scrollTop=s.scrollTop+n.offsetHeight)}}):null},"SelectScrollDownButton")),Le=o.forwardRef(S(function(e,l){const{__scopeSelect:t,onAutoScroll:p,...i}=e,f=se("SelectScrollButton",t),c=o.useRef(null),s=he(t),n=o.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return o.useEffect(()=>()=>n(),[n]),q(()=>{var x;const g=s().find(y=>y.ref.current===document.activeElement);(x=g==null?void 0:g.ref.current)==null||x.scrollIntoView({block:"nearest"})},[s]),r.jsx(k.div,{"aria-hidden":!0,...i,ref:l,style:{flexShrink:0,...i.style},onPointerDown:N(i.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(p,50))}),onPointerMove:N(i.onPointerMove,()=>{var g;(g=f.onItemLeave)==null||g.call(f),c.current===null&&(c.current=window.setInterval(p,50))}),onPointerLeave:N(i.onPointerLeave,()=>{n()})})},"SelectScrollButtonImpl")),Ft=o.forwardRef(S(function(e,l){const{__scopeSelect:t,...p}=e;return r.jsx(k.div,{"aria-hidden":!0,...p,ref:l})},"SelectSeparator")),Ut="SelectBubbleInput",Wt=o.forwardRef(S(function({__scopeSelect:e,...l},t){const p=X(Ut,e),{value:i,onValueChange:f,required:c,disabled:s,name:n,autoComplete:g,form:x}=p,{nativeOptions:y,nativeSelectKey:b}=p,T=o.useRef(null),R=F(t,T),d=i??"",h=rt(d),C=Array.from(y).some(m=>(m.props.value??"")==="");return o.useEffect(()=>{const m=T.current;if(!m)return;const u=window.HTMLSelectElement.prototype,j=Object.getOwnPropertyDescriptor(u,"value").set;if(h!==d&&j){const Z=new Event("change",{bubbles:!0});j.call(m,d),m.dispatchEvent(Z)}},[h,d]),r.jsxs(k.select,{"aria-hidden":!0,required:c,tabIndex:-1,name:n,autoComplete:g,disabled:s,form:x,onChange:m=>f(m.target.value),...l,style:{...Qe,...l.style},ref:R,defaultValue:d,children:[ue(i)&&!C?r.jsx("option",{value:""}):null,Array.from(y)]},b)},"SelectBubbleInput"));function Ve(a){return typeof a=="function"}S(Ve,"isFunction");function ue(a){return a===""||a===void 0}S(ue,"shouldShowPlaceholder");function be(a){const e=Ce(a),l=o.useRef(""),t=o.useRef(0),p=o.useCallback(f=>{const c=l.current+f;e(c),S((function s(n){l.current=n,window.clearTimeout(t.current),n!==""&&(t.current=window.setTimeout(()=>s(""),1e3))}),"updateSearch")(c)},[e]),i=o.useCallback(()=>{l.current="",window.clearTimeout(t.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(t.current),[]),[l,p,i]}S(be,"useTypeaheadSearch");function Te(a,e,l){const p=e.length>1&&Array.from(e).every(n=>n===e[0])?e[0]:e,i=l?a.indexOf(l):-1;let f=He(a,Math.max(i,0));p.length===1&&(f=f.filter(n=>n!==l));const s=f.find(n=>n.textValue.toLowerCase().startsWith(p.toLowerCase()));return s!==l?s:void 0}S(Te,"findNextItem");function He(a,e){return a.map((l,t)=>a[(e+t)%a.length])}S(He,"wrapArray");function oo({...a}){return r.jsx(vt,{"data-slot":"select",...a})}function no({...a}){return r.jsx(wt,{"data-slot":"select-value",...a})}function ro({className:a,children:e,...l}){return r.jsxs(St,{"data-slot":"select-trigger",className:oe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex h-9 w-full items-center justify-between rounded-md border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&>span]:line-clamp-1",a),...l,children:[e,r.jsx(Ct,{asChild:!0,children:r.jsx(Oe,{className:"size-4 opacity-50"})})]})}function so({className:a,children:e,position:l="popper",...t}){return r.jsx(Tt,{children:r.jsxs(Pt,{"data-slot":"select-content",className:oe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
6de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",l==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:l,...t,children:[r.jsx(Kt,{}),r.jsx(Mt,{className:oe("p-1",l==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:e}),r.jsx(zt,{})]})})}function lo({className:a,children:e,...l}){return r.jsxs(At,{"data-slot":"select-item",className:oe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",a),...l,children:[r.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:r.jsx(Lt,{children:r.jsx(We,{className:"size-4"})})}),r.jsx(kt,{children:e})]})}function co({className:a,...e}){return r.jsx(Ft,{"data-slot":"select-separator",className:oe("bg-border pointer-events-none -mx-1 my-1 h-px",a),...e})}function Kt({className:a,...e}){return r.jsx(Vt,{"data-slot":"select-scroll-up-button",className:oe("flex cursor-default items-center justify-center py-1",a),...e,children:r.jsx(lt,{className:"size-4"})})}function zt({className:a,...e}){return r.jsx(Ht,{"data-slot":"select-scroll-down-button",className:oe("flex cursor-default items-center justify-center py-1",a),...e,children:r.jsx(Oe,{className:"size-4"})})}export{oo as S,ro as a,no as b,so as c,lo as d,co as 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.