PageSourceSearch

https://fossy.dev/assets/select-B3DIBxZ2.js

js fossy.dev collected 2026-09-28 07:13:40 UTC 22,192 bytes, 1 lines download raw bytes

vendor: 4,385 bytes, line 1
1import{r as o,j as a,br as ft,aa as mt,M as Te,bs as ht,bt as be,K as L,ad as z,P as j,bu as Pe,bf as gt,bv as xt,bw as vt,N,bx as St,by as Re,Q as wt,ac as yt,bz as Ct,bA as bt,bB as It,bC as Tt,bD as Nt,bE as Pt,bF as Rt,am as Ee,c as G,z as Et}from"./index-Dwxnp4cR.js";import{c as Ne}from"./index-BdQq_4o_.js";import{u as _t}from"./index-B5zZMuCt.js";import{x as jt}from"./NavArrowUp-B5m5zlan.js";function Mt(t){const n=At(t),e=o.forwardRef((s,r)=>{const{children:d,...l}=s,c=o.Children.toArray(d),i=c.find(Dt);if(i){const p=i.props.children,g=c.map(v=>v===i?o.Children.count(p)>1?o.Children.only(null):o.isValidElement(p)?p.props.children:null:v);return a.jsx(n,{...l,ref:r,children:o.isValidElement(p)?o.cloneElement(p,void 0,g):null})}return a.jsx(n,{...l,ref:r,children:d})});return e.displayName=`${t}.Slot`,e}function At(t){const n=o.forwardRef((e,s)=>{const{children:r,...d}=e;if(o.isValidElement(r)){const l=Vt(r),c=Lt(d,r.props);return r.type!==o.Fragment&&(c.ref=s?ft(s,l):l),o.cloneElement(r,c)}return o.Children.count(r)>1?o.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Ot=Symbol("radix.slottable");function Dt(t){return o.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Ot}function Lt(t,n){const e={...n};for(const s in n){const r=t[s],d=n[s];/^on[A-Z]/.test(s)?r&&d?e[s]=(...c)=>{const i=d(...c);return r(...c),i}:r&&(e[s]=r):s==="style"?e[s]={...r,...d}:s==="className"&&(e[s]=[r,d].filter(Boolean).join(" "))}return{...t,...e}}function Vt(t){let n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,e=n&&"isReactWarning"in n&&n.isReactWarning;return e?t.ref:(n=Object.getOwnPropertyDescriptor(t,"ref")?.get,e=n&&"isReactWarning"in n&&n.isReactWarning,e?t.props.ref:t.props.ref||t.ref)}var Bt=[" ","Enter","ArrowUp","ArrowDown"],kt=[" ","Enter"],J="Select",[ie,de,Ht]=gt(J),[oe]=wt(J,[Ht,Pe]),ue=Pe(),[Wt,Y]=oe(J),[Ft,Ut]=oe(J),_e=t=>{const{__scopeSelect:n,children:e,open:s,defaultOpen:r,onOpenChange:d,value:l,defaultValue:c,onValueChange:i,dir:p,name:g,autoComplete:v,disabled:P,required:I,form:C}=t,u=ue(n),[h,S]=o.useState(null),[m,x]=o.useState(null),[F,M]=o.useState(!1),ne=mt(p),[R,O]=Te({prop:s,defaultProp:r??!1,onChange:d,caller:J}),[U,Z]=Te({prop:l,defaultProp:c,onChange:i,caller:J}),V=o.useRef(null),B=h?C||!!h.closest("form"):!0,[K,k]=o.useState(new Set),H=Array.from(K).map(E=>E.props.value).join(";");return a.jsx(ht,{...u,children:a.jsxs(Wt,{required:I,scope:n,trigger:h,onTriggerChange:S,valueNode:m,onValueNodeChange:x,valueNodeHasChildren:F,onValueNodeHasChildrenChange:M,contentId:be(),value:U,onValueChange:Z,open:R,onOpenChange:O,dir:ne,triggerPointerDownPosRef:V,disabled:P,children:[a.jsx(ie.Provider,{scope:n,children:a.jsx(Ft,{scope:t.__scopeSelect,onNativeOptionAdd:o.useCallback(E=>{k(D=>new Set(D).add(E))},[]),onNativeOptionRemove:o.useCallback(E=>{k(D=>{const W=new Set(D);return W.delete(E),W})},[]),children:e})}),B?a.jsxs(et,{"aria-hidden":!0,required:I,tabIndex:-1,name:g,autoComplete:v,value:U,onChange:E=>Z(E.target.value),disabled:P,form:C,children:[U===void 0?a.jsx("option",{value:""}):null,Array.from(K)]},H):null]})})};_e.displayName=J;var je="SelectTrigger",Me=o.forwardRef((t,n)=>{const{__scopeSelect:e,disabled:s=!1,...r}=t,d=ue(e),l=Y(je,e),c=l.disabled||s,i=L(n,l.onTriggerChange),p=de(e),g=o.useRef("touch"),[v,P,I]=ot(u=>{const h=p().filter(x=>!x.disabled),S=h.find(x=>x.value===l.value),m=nt(h,u,S);m!==void 0&&l.onValueChange(m.value)}),C=u=>{c||(l.onOpenChange(!0),I()),u&&(l.triggerPointerDownPosRef.current={x:Math.round(u.pageX),y:Math.round(u.pageY)})};return a.jsx(vt,{asChild:!0,...d,children:a.jsx(j.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":tt(l.value)?"":void 0,...r,ref:i,onClick:N(r.onClick,u=>{u.currentTarget.focus(),g.current!=="mouse"&&C(u)}),onPointerDown:N(r.onPointerDown,u=>{g.current=u.pointerType;const h=u.target;h.hasPointerCapture(u.pointerId)&&h.releasePointerCapture(u.pointerId),u.button===0&&u.ctrlKey===!1&&u.pointerType==="mouse"&&(C(u),u.preventDefault())}),onKeyDown:N(r.onKeyDown,u=>{const h=v.current!=="";!(u.ctrlKey||u.altKey||u.metaKey)&&u.key.length===1&&P(u.key),!(h&&u.key===" ")&&Bt.includes(u.key)&&
vendor: 13,299 bytes, line 1
1(C(),u.preventDefault())})})})});Me.displayName=je;var Ae="SelectValue",Oe=o.forwardRef((t,n)=>{const{__scopeSelect:e,className:s,style:r,children:d,placeholder:l="",...c}=t,i=Y(Ae,e),{onValueNodeHasChildrenChange:p}=i,g=d!==void 0,v=L(n,i.onValueNodeChange);return z(()=>{p(g)},[p,g]),a.jsx(j.span,{...c,ref:v,style:{pointerEvents:"none"},children:tt(i.value)?a.jsx(a.Fragment,{children:l}):d})});Oe.displayName=Ae;var Kt="SelectIcon",De=o.forwardRef((t,n)=>{const{__scopeSelect:e,children:s,...r}=t;return a.jsx(j.span,{"aria-hidden":!0,...r,ref:n,children:s||"▼"})});De.displayName=Kt;var $t="SelectPortal",Le=t=>a.jsx(St,{asChild:!0,...t});Le.displayName=$t;var ee="SelectContent",Ve=o.forwardRef((t,n)=>{const e=Y(ee,t.__scopeSelect),[s,r]=o.useState();if(z(()=>{r(new DocumentFragment)},[]),!e.open){const d=s;return d?Re.createPortal(a.jsx(Be,{scope:t.__scopeSelect,children:a.jsx(ie.Slot,{scope:t.__scopeSelect,children:a.jsx("div",{children:t.children})})}),d):null}return a.jsx(ke,{...t,ref:n})});Ve.displayName=ee;var A=10,[Be,q]=oe(ee),zt="SelectContentImpl",Gt=Mt("SelectContent.RemoveScroll"),ke=o.forwardRef((t,n)=>{const{__scopeSelect:e,position:s="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:d,onPointerDownOutside:l,side:c,sideOffset:i,align:p,alignOffset:g,arrowPadding:v,collisionBoundary:P,collisionPadding:I,sticky:C,hideWhenDetached:u,avoidCollisions:h,...S}=t,m=Y(ee,e),[x,F]=o.useState(null),[M,ne]=o.useState(null),R=L(n,f=>F(f)),[O,U]=o.useState(null),[Z,V]=o.useState(null),B=de(e),[K,k]=o.useState(!1),H=o.useRef(!1);o.useEffect(()=>{if(x)return Ct(x)},[x]),bt();const E=o.useCallback(f=>{const[b,..._]=B().map(T=>T.ref.current),[w]=_.slice(-1),y=document.activeElement;for(const T of f)if(T===y||(T?.scrollIntoView({block:"nearest"}),T===b&&M&&(M.scrollTop=0),T===w&&M&&(M.scrollTop=M.scrollHeight),T?.focus(),document.activeElement!==y))return},[B,M]),D=o.useCallback(()=>E([O,x]),[E,O,x]);o.useEffect(()=>{K&&D()},[K,D]);const{onOpenChange:W,triggerPointerDownPosRef:$}=m;o.useEffect(()=>{if(x){let f={x:0,y:0};const b=w=>{f={x:Math.abs(Math.round(w.pageX)-($.current?.x??0)),y:Math.abs(Math.round(w.pageY)-($.current?.y??0))}},_=w=>{f.x<=10&&f.y<=10?w.preventDefault():x.contains(w.target)||W(!1),document.removeEventListener("pointermove",b),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",b),document.addEventListener("pointerup",_,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",_,{capture:!0})}}},[x,W,$]),o.useEffect(()=>{const f=()=>W(!1);return window.addEventListener("blur",f),window.addEventListener("resize",f),()=>{window.removeEventListener("blur",f),window.removeEventListener("resize",f)}},[W]);const[pe,ae]=ot(f=>{const b=B().filter(y=>!y.disabled),_=b.find(y=>y.ref.current===document.activeElement),w=nt(b,f,_);w&&setTimeout(()=>w.ref.current.focus())}),fe=o.useCallback((f,b,_)=>{const w=!H.current&&!_;(m.value!==void 0&&m.value===b||w)&&(U(f),w&&(H.current=!0))},[m.value]),me=o.useCallback(()=>x?.focus(),[x]),te=o.useCallback((f,b,_)=>{const w=!H.current&&!_;(m.value!==void 0&&m.value===b||w)&&V(f)},[m.value]),le=s==="popper"?ve:He,re=le===ve?{side:c,sideOffset:i,align:p,alignOffset:g,arrowPadding:v,collisionBoundary:P,collisionPadding:I,sticky:C,hideWhenDetached:u,avoidCollisions:h}:{};return a.jsx(Be,{scope:e,content:x,viewport:M,onViewportChange:ne,itemRefCallback:fe,selectedItem:O,onItemLeave:me,itemTextRefCallback:te,focusSelectedItem:D,selectedItemText:Z,position:s,isPositioned:K,searchRef:pe,children:a.jsx(It,{as:Gt,allowPinchZoom:!0,children:a.jsx(Tt,{asChild:!0,trapped:m.open,onMountAutoFocus:f=>{f.preventDefault()},onUnmountAutoFocus:N(r,f=>{m.trigger?.focus({preventScroll:!0}),f.preventDefault()}),children:a.jsx(Nt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:l,onFocusOutside:f=>f.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:a.jsx(le,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:f=>f.preventDefault(),...S,...re,onPlaced:()=>k(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:N(S.onKeyDown,f=>{const b=f.ctrlKey||f.altKey||f.metaKey;if(f.key==="Tab"&&f.preventDefault(),!b&&f.key.length===1&&ae(f.key),["ArrowUp","ArrowDown","Home","End"].includes(f.key)){let w=B().filter(y=>!y.disabled).map(y=>y.ref.current);if(["ArrowUp","End"].includes(f.key)&&(w=w.slice().reverse()),["ArrowUp","ArrowDown"].includes(f.key)){const y=f.target,T=w.indexOf(y);w=w.slice(T+1)}setTimeout(()=>E(w)),f.preventDefault()}})})})})})})});ke.displayName=zt;var Yt="SelectItemAlignedPosition",He=o.forwardRef((t,n)=>{const{__scopeSelect:e,onPlaced:s,...r}=t,d=Y(ee,e),l=q(ee,e),[c,i]=o.useState(null),[p,g]=o.useState(null),v=L(n,R=>g(R)),P=de(e),I=o.useRef(!1),C=o.useRef(!0),{viewport:u,selectedItem:h,selectedItemText:S,focusSelectedItem:m}=l,x=o.useCallback(()=>{if(d.trigger&&d.valueNode&&c&&p&&u&&h&&S){const R=d.trigger.getBoundingClientRect(),O=p.getBoundingClientRect(),U=d.valueNode.getBoundingClientRect(),Z=S.getBoundingClientRect();if(d.dir!=="rtl"){const y=Z.left-O.left,T=U.left-y,X=R.left-T,Q=R.width+X,he=Math.max(Q,O.width),ge=window.innerWidth-A,xe=Ne(T,[A,Math.max(A,ge-he)]);c.style.minWidth=Q+"px",c.style.left=xe+"px"}else{const y=O.right-Z.right,T=window.innerWidth-U.right-y,X=window.innerWidth-R.right-T,Q=R.width+X,he=Math.max(Q,O.width),ge=window.innerWidth-A,xe=Ne(T,[A,Math.max(A,ge-he)]);c.style.minWidth=Q+"px",c.style.right=xe+"px"}const V=P(),B=window.innerHeight-A*2,K=u.scrollHeight,k=window.getComputedStyle(p),H=parseInt(k.borderTopWidth,10),E=parseInt(k.paddingTop,10),D=parseInt(k.borderBottomWidth,10),W=parseInt(k.paddingBottom,10),$=H+E+K+W+D,pe=Math.min(h.offsetHeight*5,$),ae=window.getComputedStyle(u),fe=parseInt(ae.paddingTop,10),me=parseInt(ae.paddingBottom,10),te=R.top+R.height/2-A,le=B-te,re=h.offsetHeight/2,f=h.offsetTop+re,b=H+E+f,_=$-b;if(b<=te){const y=V.length>0&&h===V[V.length-1].ref.current;c.style.bottom="0px";const T=p.clientHeight-u.offsetTop-u.offsetHeight,X=Math.max(le,re+(y?me:0)+T+D),Q=b+X;c.style.height=Q+"px"}else{const y=V.length>0&&h===V[0].ref.current;c.style.top="0px";const X=Math.max(te,H+u.offsetTop+(y?fe:0)+re)+_;c.style.height=X+"px",u.scrollTop=b-te+u.offsetTop}c.style.margin=`${A}px 0`,c.style.minHeight=pe+"px",c.style.maxHeight=B+"px",s?.(),requestAnimationFrame(()=>I.current=!0)}},[P,d.trigger,d.valueNode,c,p,u,h,S,d.dir,s]);z(()=>x(),[x]);const[F,M]=o.useState();z(()=>{p&&M(window.getComputedStyle(p).zIndex)},[p]);const ne=o.useCallback(R=>{R&&C.current===!0&&(x(),m?.(),C.current=!1)},[x,m]);return a.jsx(Zt,{scope:e,contentWrapper:c,shouldExpandOnScrollRef:I,onScrollButtonChange:ne,children:a.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:a.jsx(j.div,{...r,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});He.displayName=Yt;var qt="SelectPopperPosition",ve=o.forwardRef((t,n)=>{const{__scopeSelect:e,align:s="start",collisionPadding:r=A,...d}=t,l=ue(e);return a.jsx(Pt,{...l,...d,ref:n,align:s,collisionPadding:r,style:{boxSizing:"border-box",...d.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)"}})});ve.displayName=qt;var[Zt,Ie]=oe(ee,{}),Se="SelectViewport",We=o.forwardRef((t,n)=>{const{__scopeSelect:e,nonce:s,...r}=t,d=q(Se,e),l=Ie(Se,e),c=L(n,d.onViewportChange),i=o.useRef(0);return a.jsxs(a.Fragment,{children:[a.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:s}),a.jsx(ie.Slot,{scope:e,children:a.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:N(r.onScroll,p=>{const g=p.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:P}=l;if(P?.current&&v){const I=Math.abs(i.current-g.scrollTop);if(I>0){const C=window.innerHeight-A*2,u=parseFloat(v.style.minHeight),h=parseFloat(v.style.height),S=Math.max(u,h);if(S<C){const m=S+I,x=Math.min(C,m),F=m-x;v.style.height=x+"px",v.style.bottom==="0px"&&(g.scrollTop=F>0?F:0,v.style.justifyContent="flex-end")}}}i.current=g.scrollTop})})})]})});We.displayName=Se;var Fe="SelectGroup",[Xt,Qt]=oe(Fe),Jt=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t,r=be();return a.jsx(Xt,{scope:e,id:r,children:a.jsx(j.div,{role:"group","aria-labelledby":r,...s,ref:n})})});Jt.displayName=Fe;var Ue="SelectLabel",Ke=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t,r=Qt(Ue,e);return a.jsx(j.div,{id:r.id,...s,ref:n})});Ke.displayName=Ue;var ce="SelectItem",[eo,$e]=oe(ce),ze=o.forwardRef((t,n)=>{const{__scopeSelect:e,value:s,disabled:r=!1,textValue:d,...l}=t,c=Y(ce,e),i=q(ce,e),p=c.value===s,[g,v]=o.useState(d??""),[P,I]=o.useState(!1),C=L(n,m=>i.itemRefCallback?.(m,s,r)),u=be(),h=o.useRef("touch"),S=()=>{r||(c.onValueChange(s),c.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return a.jsx(eo,{scope:e,value:s,disabled:r,textId:u,isSelected:p,onItemTextChange:o.useCallback(m=>{v(x=>x||(m?.textContent??"").trim())},[]),children:a.jsx(ie.ItemSlot,{scope:e,value:s,disabled:r,textValue:g,children:a.jsx(j.div,{role:"option","aria-labelledby":u,"data-highlighted":P?"":void 0,"aria-selected":p&&P,"data-state":p?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...l,ref:C,onFocus:N(l.onFocus,()=>I(!0)),onBlur:N(l.onBlur,()=>I(!1)),onClick:N(l.onClick,()=>{h.current!=="mouse"&&S()}),onPointerUp:N(l.onPointerUp,()=>{h.current==="mouse"&&S()}),onPointerDown:N(l.onPointerDown,m=>{h.current=m.pointerType}),onPointerMove:N(l.onPointerMove,m=>{h.current=m.pointerType,r?i.onItemLeave?.():h.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(l.onPointerLeave,m=>{m.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:N(l.onKeyDown,m=>{i.searchRef?.current!==""&&m.key===" "||(kt.includes(m.key)&&S(),m.key===" "&&m.preventDefault())})})})})});ze.displayName=ce;var se="SelectItemText",Ge=o.forwardRef((t,n)=>{const{__scopeSelect:e,className:s,style:r,...d}=t,l=Y(se,e),c=q(se,e),i=$e(se,e),p=Ut(se,e),[g,v]=o.useState(null),P=L(n,S=>v(S),i.onItemTextChange,S=>c.itemTextRefCallback?.(S,i.value,i.disabled)),I=g?.textContent,C=o.useMemo(()=>a.jsx("option",{value:i.value,disabled:i.disabled,children:I},i.value),[i.disabled,i.value,I]),{onNativeOptionAdd:u,onNativeOptionRemove:h}=p;return z(()=>(u(C),()=>h(C)),[u,h,C]),a.jsxs(a.Fragment,{children:[a.jsx(j.span,{id:i.textId,...d,ref:P}),i.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Re.createPortal(d.children,l.valueNode):null]})});Ge.displayName=se;var Ye="SelectItemIndicator",qe=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t;return $e(Ye,e).isSelected?a.jsx(j.span,{"aria-hidden":!0,...s,ref:n}):null});qe.displayName=Ye;var we="SelectScrollUpButton",Ze=o.forwardRef((t,n)=>{const e=q(we,t.__scopeSelect),s=Ie(we,t.__scopeSelect),[r,d]=o.useState(!1),l=L(n,s.onScrollButtonChange);return z(()=>{if(e.viewport&&e.isPositioned){let c=function(){const p=i.scrollTop>0;d(p)};const i=e.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[e.viewport,e.isPositioned]),r?a.jsx(Qe,{...t,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=e;c&&i&&(c.scrollTop=c.scrollTop-i.offsetHeight)}}):null});Ze.displayName=we;var ye="SelectScrollDownButton",Xe=o.forwardRef((t,n)=>{const e=q(ye,t.__scopeSelect),s=Ie(ye,t.__scopeSelect),[r,d]=o.useState(!1),l=L(n,s.onScrollButtonChange);return z(()=>{if(e.viewport&&e.isPositioned){let c=function(){const p=i.scrollHeight-i.clientHeight,g=Math.ceil(i.scrollTop)<p;d(g)};const i=e.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[e.viewport,e.isPositioned]),r?a.jsx(Qe,{...t,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=e;c&&i&&(c.scrollTop=c.scrollTop+i.offsetHeight)}}):null});Xe.displayName=ye;var Qe=o.forwardRef((t,n)=>{const{__scopeSelect:e,onAutoScroll:s,...r}=t,d=q("SelectScrollButton",e),l=o.useRef(null),c=de(e),i=o.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return o.useEffect(()=>()=>i(),[i]),z(()=>{c().find(g=>g.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),a.jsx(j.div,{"aria-hidden":!0,...r,ref:n,style:{flexShrink:0,...r.style},onPointerDown:N(r.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(s,50))}),onPointerMove:N(r.onPointerMove,()=>{d.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(s,50))}),onPointerLeave:N(r.onPointerLeave,()=>{i()})})}
1),to="SelectSeparator",Je=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t;return a.jsx(j.div,{"aria-hidden":!0,...s,ref:n})});Je.displayName=to;var Ce="SelectArrow",oo=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t,r=ue(e),d=Y(Ce,e),l=q(Ce,e);return d.open&&l.position==="popper"?a.jsx(Rt,{...r,...s,ref:n}):null});oo.displayName=Ce;var no="SelectBubbleInput",et=o.forwardRef(({__scopeSelect:t,value:n,...e},s)=>{const r=o.useRef(null),d=L(s,r),l=_t(n);return o.useEffect(()=>{const c=r.current;if(!c)return;const i=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(i,"value").set;if(l!==n&&g){const v=new Event("change",{bubbles:!0});g.call(c,n),c.dispatchEvent(v)}},[l,n]),a.jsx(j.select,{...e,style:{...xt,...e.style},ref:d,defaultValue:n})});et.displayName=no;function tt(t){return t===""||t===void 0}function ot(t){const n=yt(t),e=o.useRef(""),s=o.useRef(0),r=o.useCallback(l=>{const c=e.current+l;n(c),(function i(p){e.current=p,window.clearTimeout(s.current),p!==""&&(s.current=window.setTimeout(()=>i(""),1e3))})(c)},[n]),d=o.useCallback(()=>{e.current="",window.clearTimeout(s.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(s.current),[]),[e,r,d]}function nt(t,n,e){const r=n.length>1&&Array.from(n).every(p=>p===n[0])?n[0]:n,d=e?t.indexOf(e):-1;let l=ro(t,Math.max(d,0));r.length===1&&(l=l.filter(p=>p!==e));const i=l.find(p=>p.textValue.toLowerCase().startsWith(r.toLowerCase()));return i!==e?i:void 0}function ro(t,n){return t.map((e,s)=>t[(n+s)%t.length])}var so=_e,rt=Me,ao=Oe,lo=De,co=Le,st=Ve,io=We,at=Ke,lt=ze,uo=Ge,po=qe,ct=Ze,it=Xe,dt=Je;const Co=so,bo=ao,fo=o.forwardRef(({className:t,children:n,...e},s)=>a.jsxs(rt,{ref:s,className:G("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...e,children:[n,a.jsx(lo,{asChild:!0,children:a.jsx(Ee,{className:"h-4 w-4 opacity-50"})})]}));fo.displayName=rt.displayName;const ut=o.forwardRef(({className:t,...n},e)=>a.jsx(ct,{ref:e,className:G("flex cursor-default items-center justify-center py-1",t),...n,children:a.jsx(jt,{className:"h-4 w-4"})}));ut.displayName=ct.displayName;const pt=o.forwardRef(({className:t,...n},e)=>a.jsx(it,{ref:e,className:G("flex cursor-default items-center justify-center py-1",t),...n,children:a.jsx(Ee,{className:"h-4 w-4"})}));pt.displayName=it.displayName;const mo=o.forwardRef(({className:t,children:n,position:e="popper",...s},r)=>a.jsx(co,{children:a.jsxs(st,{ref:r,className:G("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-select-content-transform-origin)",e==="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",t),position:e,...s,children:[a.jsx(ut,{}),a.jsx(io,{className:G("p-1",e==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),a.jsx(pt,{})]})}));mo.displayName=st.displayName;const ho=o.forwardRef(({className:t,...n},e)=>a.jsx(at,{ref:e,className:G("px-2 py-1.5 text-sm font-semibold",t),...n}));ho.displayName=at.displayName;const go=o.forwardRef(({className:t,children:n,...e},s)=>a.jsxs(lt,{ref:s,className:G("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...e,children:[a.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(po,{children:a.jsx(Et,{className:"h-4 w-4"})})}),a.jsx(uo,{children:n})]}));go.displayName=lt.displayName;const xo=o.forwardRef(({className:t,...n},e)=>a.jsx(dt,{ref:e,className:G("-mx-1 my-1 h-px bg-muted",t),...n}));xo.displayName=dt.displayName;export{Co as S,fo as a,bo as b,mo as c,go as d};

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.