PageSourceSearch

https://dashboard.passpass.be/assets/js/select-BjZJQRfL.js

js passpass.be collected 2026-10-02 05:35:16 UTC 22,159 bytes, 1 lines download raw bytes

vendor: 10,153 bytes, line 1
1import{Dt as e,S as t,x as n}from"./axios-CVtdmYWx.js";import{Rr as r,Sr as i,gr as a,l as o,v as s,zr as c}from"./esm-CvS0L6tt.js";import{i as l,s as u,u as d}from"./button-Cwr90cYD.js";import{a as f,n as p,o as m,r as h,t as g}from"./dist-xAX7oVbQ.js";import{r as _,t as v}from"./dist-CUf-rdmz.js";import{n as y,t as b}from"./dist-CqJZBxSU.js";import{a as x,c as S,i as C,l as w,n as T,o as E,s as D,t as O}from"./es2015-B4cXaxgx.js";import{t as k}from"./dist-Dk0CEx86.js";import{a as A,i as j,n as M,r as N,t as P}from"./dist-B4sYz7xv.js";var F=e(t(),1),I=e(n(),1),L=c(),R=[` `,`Enter`,`ArrowUp`,`ArrowDown`],ee=[` `,`Enter`],z=`Select`,[B,V,H]=y(z),[U,W]=f(z,[H,A]),G=A(),[te,K]=U(z),[ne,re]=U(z),ie=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m}=e,h=G(t),[_,v]=F.useState(null),[y,x]=F.useState(null),[S,C]=F.useState(!1),T=b(l),[E,D]=g({prop:r,defaultProp:i??!1,onChange:a,caller:z}),[O,k]=g({prop:o,defaultProp:s,onChange:c,caller:z}),A=F.useRef(null),M=_?m||!!_.closest(`form`):!0,[N,P]=F.useState(new Set),I=Array.from(N).map(e=>e.props.value).join(`;`);return(0,L.jsx)(j,{...h,children:(0,L.jsxs)(te,{required:p,scope:t,trigger:_,onTriggerChange:v,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:w(),value:O,onValueChange:k,open:E,onOpenChange:D,dir:T,triggerPointerDownPosRef:A,disabled:f,children:[(0,L.jsx)(B.Provider,{scope:t,children:(0,L.jsx)(ne,{scope:e.__scopeSelect,onNativeOptionAdd:F.useCallback(e=>{P(t=>new Set(t).add(e))},[]),onNativeOptionRemove:F.useCallback(e=>{P(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),M?(0,L.jsxs)(Ke,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:O,onChange:e=>k(e.target.value),disabled:f,form:m,children:[O===void 0?(0,L.jsx)(`option`,{value:``}):null,Array.from(N)]},I):null]})})};ie.displayName=z;var q=`SelectTrigger`,ae=F.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=G(n),o=K(q,n),s=o.disabled||r,c=d(t,o.onTriggerChange),l=V(n),u=F.useRef(`touch`),[f,p,g]=Je(e=>{let t=l().filter(e=>!e.disabled),n=Ye(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),_=e=>{s||(o.onOpenChange(!0),g()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,L.jsx)(P,{asChild:!0,...a,children:(0,L.jsx)(m.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":qe(o.value)?``:void 0,...i,ref:c,onClick:h(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&_(e)}),onPointerDown:h(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(_(e),e.preventDefault())}),onKeyDown:h(i.onKeyDown,e=>{let t=f.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&p(e.key),!(t&&e.key===` `)&&R.includes(e.key)&&(_(),e.preventDefault())})})})});ae.displayName=q;var oe=`SelectValue`,se=F.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=K(oe,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,f=d(t,c.onValueNodeChange);return p(()=>{l(u)},[l,u]),(0,L.jsx)(m.span,{...s,ref:f,style:{pointerEvents:`none`},children:qe(c.value)?(0,L.jsx)(L.Fragment,{children:o}):a})});se.displayName=oe;var ce=`SelectIcon`,le=F.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,L.jsx)(m.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});le.displayName=ce;var ue=`SelectPortal`,de=e=>(0,L.jsx)(x,{asChild:!0,...e});de.displayName=ue;var J=`SelectContent`,fe=F.forwardRef((e,t)=>{let n=K(J,e.__scopeSelect),[r,i]=F.useState();if(p(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?I.createPortal((0,L.jsx)(pe,{scope:e.__scopeSelect,children:(0,L.jsx)(B.Slot,{scope:e.__scopeSelect,children:(0,L.jsx)(`div`,{children:e.children})})}),t):null}return(0,L.jsx)(ge,{...e,ref:t})});fe.displayName=J;var Y=10,[pe,X]=U(J),me=`SelectContentImpl`,he=u(`SelectContent.RemoveScroll`),ge=F.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:g,hideWhenDetached:_,avoidCollisions:v,...y}=e,b=K(J,n),[x,S]=F.useState(null),[w,k]=F.useState(null),A=d(t,e=>S(e)),[j,M]=F.useState(null),[N,P]=F.useState(null),I=V(n),[R,ee]=F.useState(!1),z=F.useRef(!1);F.useEffect(()=>{if(x)return O(x)},[x]),C();let B=F.useCallback(e=>{let[t,...n]=I().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&w&&(w.scrollTop=0),n===r&&w&&(w.scrollTop=w.scrollHeight),n?.focus(),document.activeElement!==i))return},[I,w]),H=F.useCallback(()=>B([j,x]),[B,j,x]);F.useEffect(()=>{R&&H()},[R,H]);let{onOpenChange:U,triggerPointerDownPosRef:W}=b;F.useEffect(()=>{if(x){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(W.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(W.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():x.contains(n.target)||U(!1),document.removeEventListener(`pointermove`,t),W.current=null};return W.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[x,U,W]),F.useEffect(()=>{let e=()=>U(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[U]);let[G,te]=Je(e=>{let t=I().filter(e=>!e.disabled),n=Ye(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),ne=F.useCallback((e,t,n)=>{let r=!z.current&&!n;(b.value!==void 0&&b.value===t||r)&&(M(e),r&&(z.current=!0))},[b.value]),re=F.useCallback(()=>x?.focus(),[x]),ie=F.useCallback((e,t,n)=>{let r=!z.current&&!n;(b.value!==void 0&&b.value===t||r)&&P(e)},[b.value]),q=r===`popper`?be:ve,ae=q===be?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:g,hideWhenDetached:_,avoidCollisions:v}:{};return(0,L.jsx)(pe,{scope:n,content:x,viewport:w,onViewportChange:k,itemRefCallback:ne,selectedItem:j,onItemLeave:re,itemTextRefCallback:ie,focusSelectedItem:H,selectedItemText:N,position:r,isPositioned:R,searchRef:G,children:(0,L.jsx)(T,{as:he,allowPinchZoom:!0,children:(0,L.jsx)(E,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:h(i,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,L.jsx)(D,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:(0,L.jsx)(q,{role:`listbox`,id:b.contentId,"data-state":b.open?`open`:`closed`,dir:b.dir,onContextMenu:e=>e.preventDefault(),...y,...ae,onPlaced:()=>ee(!0),ref:A,style:{display:`flex`,flexDirection:`column`,outline:`none`,...y.style},onKeyDown:h(y.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&te(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=I().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>B(t)),e.preventDefault()}})})})})})})});ge.displayName=me;var _e=`SelectItemAlignedPosition`,ve=F.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=K(J,n),o=X(J,n),[s,c]=F.useState(null),[l,u]=F.useState(null),f=d(t,e=>u(e)),h=V(n),g=F.useRef(!1),_=F.useRef(!0),{viewport:y,selectedItem:b,selectedItemText:x,focusSelectedItem:S}=o,C=F.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&y&&b&&x){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=x.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-Y,d=v(a,[Y,Math.max(Y,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-Y,d=v(a,[Y,Math.max(Y,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=h(),c=window.innerHeight-Y*2,u=y.scrollHeight,d=window.getComputedStyle(l),f=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),m=parseInt(d.borderBottomWidth,10),_=parseInt(d.paddingBottom,10),S=f+p+u+_+m,C=Math.min(b.offsetHeight*5,S),w=window.getComputedStyle(y),T=parseInt(w.paddingTop,10),E=parseInt(w.paddingBottom,10),D=e.top+e.height/2-Y,O=c-D,k=b.offsetHeight/2,A=b.offsetTop+k,j=f+p+A,M=S-j;if(j<=D){let e=o.length>0&&b===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-y.offsetTop-y.offsetHeight,n=j+Math.max(O,k+(e?E:0)+t+m);s.style.height=n+`px`}else{let e=o.length>0&&b===o[0].ref.current;s.style.top=`0px`;let t=Math.max(D,f+y.offsetTop+(e?T:0)+k)+M;s.style.height=t+`px`,y.scrollTop=j-D+y.offsetTop}s.style.margin=`${Y}px 0`,s.style.minHeight=C+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>g.current=!0)}},[h,a.trigger,a.valueNode,s,l,y,b,x,a.dir,r]);p(()=>C(),[C]);let[w,T]=F.useState();return p(()=>{l&&T(window.getComputedStyle(l).zIndex)},[l]),(0,L.jsx)(xe,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:F.useCallback(e=>{e&&_.current===!0&&(C(),S?.(),_.current=!1)},[C,S]),children:(0,L.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:w},children:(0,L.jsx)(m.div,{...i,ref:f,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});ve.displayName=_e;var ye=`SelectPopperPosition`,be=F.forwardRef((e,t)=>
vendor: 4,319 bytes, line 1
1{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Y,...a}=e,o=G(n);return(0,L.jsx)(N,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.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)`}})});be.displayName=ye;var[xe,Se]=U(J,{}),Ce=`SelectViewport`,we=F.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=X(Ce,n),o=Se(Ce,n),s=d(t,a.onViewportChange),c=F.useRef(0);return(0,L.jsxs)(L.Fragment,{children:[(0,L.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:r}),(0,L.jsx)(B.Slot,{scope:n,children:(0,L.jsx)(m.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:h(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-Y*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})});we.displayName=Ce;var Te=`SelectGroup`,[Ee,De]=U(Te),Oe=F.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=w();return(0,L.jsx)(Ee,{scope:n,id:i,children:(0,L.jsx)(m.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});Oe.displayName=Te;var ke=`SelectLabel`,Ae=F.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=De(ke,n);return(0,L.jsx)(m.div,{id:i.id,...r,ref:t})});Ae.displayName=ke;var Z=`SelectItem`,[je,Me]=U(Z),Ne=F.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=K(Z,n),c=X(Z,n),l=s.value===r,[u,f]=F.useState(a??``),[p,g]=F.useState(!1),_=d(t,e=>c.itemRefCallback?.(e,r,i)),v=w(),y=F.useRef(`touch`),b=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r===``)throw 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(0,L.jsx)(je,{scope:n,value:r,disabled:i,textId:v,isSelected:l,onItemTextChange:F.useCallback(e=>{f(t=>t||(e?.textContent??``).trim())},[]),children:(0,L.jsx)(B.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,L.jsx)(m.div,{role:`option`,"aria-labelledby":v,"data-highlighted":p?``:void 0,"aria-selected":l&&p,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:_,onFocus:h(o.onFocus,()=>g(!0)),onBlur:h(o.onBlur,()=>g(!1)),onClick:h(o.onClick,()=>{y.current!==`mouse`&&b()}),onPointerUp:h(o.onPointerUp,()=>{y.current===`mouse`&&b()}),onPointerDown:h(o.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:h(o.onPointerMove,e=>{y.current=e.pointerType,i?c.onItemLeave?.():y.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:h(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:h(o.onKeyDown,e=>{c.searchRef?.current!==``&&e.key===` `||(ee.includes(e.key)&&b(),e.key===` `&&e.preventDefault())})})})})});Ne.displayName=Z;var Q=`SelectItemText`,Pe=F.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=K(Q,n),s=X(Q,n),c=Me(Q,n),l=re(Q,n),[u,f]=F.useState(null),h=d(t,e=>f(e),c.onItemTextChange,e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),g=u?.textContent,_=F.useMemo(()=>(0,L.jsx)(`option`,{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=l;return p(()=>(v(_),()=>y(_)),[v,y,_]),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(m.span,{id:c.textId,...a,ref:h}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?I.createPortal(a.children,o.valueNode):null]})});Pe.displayName=Q;var Fe=`SelectItemIndicator`,Ie=F.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e;return Me(Fe,n).isSelected?(0,L.jsx)(m.span,{"aria-hidden":!0,...r,ref:t}):null});Ie.displayName=Fe;var $=`SelectScrollUpButton`,Le=F.forwardRef((e,t)=>{let n=X($,e.__scopeSelect),r=Se($,e.__scopeSelect),[i,a]=F.useState(!1),o=d(t,r.onScrollButtonChange);return p(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,L.jsx)(Be,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});Le.displayName=$;var Re=`SelectScrollDownButton`,ze=F.forwardRef((e,t)=>{let n=X(Re,e.__scopeSelect),r=Se(Re,e.__scopeSelect),[i,a]=F.useState(!1),o=d(t,r.onScrollButtonChange);return p(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,L.jsx)(Be,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});ze.displayName=Re;var Be=F.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=X(`SelectScrollButton`,n),o=F.useRef(null),s=V(n),c=F.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return F.useEffect(()=>()=>c(),[c]),p(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,L.jsx)(m.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:h(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:h(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:h(i.onPointerLeave,()=>{c()})})}),Ve=`SelectSeparator`,He=F.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,L.jsx)(m.div,{"aria-hidden":!0,...r,ref:t})});He.displayName=Ve;var Ue=`SelectArrow`,We=F.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=G(n),a=K(Ue,n),o=X(Ue,n);return a.open&&o.position===`popper`?(0,L.jsx)(M,{...i,...r,ref:t}):null});We.displayName=Ue;var Ge=`SelectBubbleInput`,Ke=F.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=F.useRef(null),a=d(r,i),o=k(t);return F.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,L.jsx)(m.select,{...n,style:{..._,...n.style},ref:a,defaultValue:t})});Ke.displayName=Ge;function qe(e){return e===``||e===void 0}function Je(e){let t=S(e),n=F.useRef(``),r=F.useRef(0),i=F.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=F.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return F.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function Ye(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Xe(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Xe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ze=ie,Qe=ae,$e=se,et=le,tt=de,nt=fe,rt=we,it=Oe,at=Ae,ot=Ne,st=Pe,ct=Ie,lt=Le,ut=ze,dt=He;function ft({...e}){return(0,L.jsx)(Ze,{"data-slot":`select`,...e})}function pt({className:e,...t}){return(0,L.jsx)(it,{"data-slot":`select-group`,className:l(`scroll-my-1 p-1`,e),...t})}function mt({...e}){return(0,L.jsx)($e,{"data-slot":`select-value`,...e})}function ht({className:e,size:t=`default`,children:n,...a}){return(0,L.jsxs)(Qe,{"data-slot":`select-trigger`,"data-size":t,className:l(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-foreground
1/30 focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-0 data-placeholder:text-muted-foreground/60 data-[size=default]:h-10 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...a,children:[n,(0,L.jsx)(et,{asChild:!0,children:(0,L.jsx)(r,{icon:i,strokeWidth:2,className:`pointer-events-none size-4 text-muted-foreground`})})]})}function gt({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,L.jsx)(tt,{children:(0,L.jsxs)(nt,{"data-slot":`select-content`,"data-align-trigger":n===`item-aligned`,className:l(`relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,n===`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`,e),position:n,align:r,...i,children:[(0,L.jsx)(bt,{}),(0,L.jsx)(rt,{"data-position":n,className:l(`data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)`,n===`popper`&&``),children:t}),(0,L.jsx)(xt,{})]})})}function _t({className:e,...t}){return(0,L.jsx)(at,{"data-slot":`select-label`,className:l(`px-2 py-1.5 text-xs text-muted-foreground`,e),...t})}function vt({className:e,children:t,...n}){return(0,L.jsxs)(ot,{"data-slot":`select-item`,className:l(`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 focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground 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`,e),...n,children:[(0,L.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`,children:(0,L.jsx)(ct,{children:(0,L.jsx)(r,{icon:a,strokeWidth:2,className:`pointer-events-none`})})}),(0,L.jsx)(st,{children:t})]})}function yt({className:e,...t}){return(0,L.jsx)(dt,{"data-slot":`select-separator`,className:l(`pointer-events-none -mx-1 my-1 h-px bg-border`,e),...t})}function bt({className:e,...t}){return(0,L.jsx)(lt,{"data-slot":`select-scroll-up-button`,className:l(`z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,L.jsx)(r,{icon:s,strokeWidth:2})})}function xt({className:e,...t}){return(0,L.jsx)(ut,{"data-slot":`select-scroll-down-button`,className:l(`z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,L.jsx)(r,{icon:o,strokeWidth:2})})}export{_t as a,mt as c,vt as i,gt as n,yt as o,pt as r,ht as s,ft as 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.