PageSourceSearch

https://pawpals.ie/assets/select-saNJbJaa.js

js pawpals.ie collected 2026-10-09 22:02:56 UTC 22,684 bytes, 1 lines download raw bytes

vendor: 4,426 bytes, line 1
1import{c as mt,r as o,j as a,am as Re}from"./index-C6Uykf5v.js";import{c as be}from"./index-BdQq_4o_.js";import{P as _,b as Ne,s as ht,p as Ie,t as z,v as Ee,w as gt,c as N,x as vt,e as xt,q as St,y as wt,z as yt,B as Ct,F as It,E as Tt,G as bt,J as Nt}from"./AppShell-D9KoF92u.js";import{u as Rt,c as Et}from"./index-DVZfk7U1.js";import{a as Pt,u as L,c as G}from"./button-50Egdoc3.js";import{u as _t}from"./index-CGs3Y3uz.js";import{C as Pe}from"./chevron-down-BZDdxO-b.js";import{C as jt}from"./check-DczArloW.js";const Mt=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],At=mt("chevron-up",Mt);function Ot(t){const n=Dt(t),e=o.forwardRef((s,r)=>{const{children:d,...l}=s,c=o.Children.toArray(d),i=c.find(Vt);if(i){const p=i.props.children,g=c.map(x=>x===i?o.Children.count(p)>1?o.Children.only(null):o.isValidElement(p)?p.props.children:null:x);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 Dt(t){const n=o.forwardRef((e,s)=>{const{children:r,...d}=e;if(o.isValidElement(r)){const l=Bt(r),c=kt(d,r.props);return r.type!==o.Fragment&&(c.ref=s?Pt(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 Lt=Symbol("radix.slottable");function Vt(t){return o.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Lt}function kt(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 Bt(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 _e=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ht="VisuallyHidden",Wt=o.forwardRef((t,n)=>a.jsx(_.span,{...t,ref:n,style:{..._e,...t.style}}));Wt.displayName=Ht;var Ft=[" ","Enter","ArrowUp","ArrowDown"],Ut=[" ","Enter"],Q="Select",[ie,de,Kt]=Et(Q),[oe]=xt(Q,[Kt,Ee]),ue=Ee(),[$t,Y]=oe(Q),[zt,Gt]=oe(Q),je=t=>{const{__scopeSelect:n,children:e,open:s,defaultOpen:r,onOpenChange:d,value:l,defaultValue:c,onValueChange:i,dir:p,name:g,autoComplete:x,disabled:R,required:T,form:C}=t,u=ue(n),[h,S]=o.useState(null),[m,v]=o.useState(null),[F,M]=o.useState(!1),ne=Rt(p),[E,O]=Ne({prop:s,defaultProp:r??!1,onChange:d,caller:Q}),[U,Z]=Ne({prop:l,defaultProp:c,onChange:i,caller:Q}),V=o.useRef(null),k=h?C||!!h.closest("form"):!0,[K,B]=o.useState(new Set),H=Array.from(K).map(P=>P.props.value).join(";");return a.jsx(ht,{...u,children:a.jsxs($t,{required:T,scope:n,trigger:h,onTriggerChange:S,valueNode:m,onValueNodeChange:v,valueNodeHasChildren:F,onValueNodeHasChildrenChange:M,contentId:Ie(),value:U,onValueChange:Z,open:E,onOpenChange:O,dir:ne,triggerPointerDownPosRef:V,disabled:R,children:[a.jsx(ie.Provider,{scope:n,children:a.jsx(zt,{scope:t.__scopeSelect,onNativeOptionAdd:o.useCallback(P=>{B(D=>new Set(D).add(P))},[]),onNativeOptionRemove:o.useCallback(P=>{B(D=>{const W=new Set(D);return W.delete(P),W})},[]),children:e})}),k?a.jsxs(tt,{"aria-hidden":!0,required:T,tabIndex:-1,name:g,autoComplete:x,value:U,onChange:P=>Z(P.target.value),disabled:R,form:C,children:[U===void 0?a.jsx("option",{value:""}):null,Array.from(K)]},H):null]})})};je.displayName=Q;var Me="SelectTrigger",Ae=o.forwardRef((t,n)=>{const{__scopeSelect:e,disabled:s=!1,...r}=t,d=ue(e),l=Y(Me,e),c=l.disabled||s,i=L(n,l.onTriggerChange),p=de(e),g=o.useRef("touch"),[x,R,T]=nt(u=>{const h=p().filter(v=>!v.disabled),S=h.find(v=>v.value===l.value),m=rt(h,u,S);m!==void 0&&l.onValueChange(m.value)}),C=u=>{c||(l.onOpenChange(!0),T()),u&&(l.triggerPointerDownPosRef.current={x:Math.round(u.pageX),y:Math.round(u.pageY)})};return a.jsx(gt,{asChild:!0,...d,children:a.jsx(_.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":ot(l.value)?"":void 0,...r,ref:i,onClick:N(r.onClick,u=>
vendor: 16,106 bytes, line 1
1{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=x.current!=="";!(u.ctrlKey||u.altKey||u.metaKey)&&u.key.length===1&&R(u.key),!(h&&u.key===" ")&&Ft.includes(u.key)&&(C(),u.preventDefault())})})})});Ae.displayName=Me;var Oe="SelectValue",De=o.forwardRef((t,n)=>{const{__scopeSelect:e,className:s,style:r,children:d,placeholder:l="",...c}=t,i=Y(Oe,e),{onValueNodeHasChildrenChange:p}=i,g=d!==void 0,x=L(n,i.onValueNodeChange);return z(()=>{p(g)},[p,g]),a.jsx(_.span,{...c,ref:x,style:{pointerEvents:"none"},children:ot(i.value)?a.jsx(a.Fragment,{children:l}):d})});De.displayName=Oe;var Yt="SelectIcon",Le=o.forwardRef((t,n)=>{const{__scopeSelect:e,children:s,...r}=t;return a.jsx(_.span,{"aria-hidden":!0,...r,ref:n,children:s||"▼"})});Le.displayName=Yt;var qt="SelectPortal",Ve=t=>a.jsx(vt,{asChild:!0,...t});Ve.displayName=qt;var ee="SelectContent",ke=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(He,{...t,ref:n})});ke.displayName=ee;var A=10,[Be,q]=oe(ee),Zt="SelectContentImpl",Xt=Ot("SelectContent.RemoveScroll"),He=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:x,collisionBoundary:R,collisionPadding:T,sticky:C,hideWhenDetached:u,avoidCollisions:h,...S}=t,m=Y(ee,e),[v,F]=o.useState(null),[M,ne]=o.useState(null),E=L(n,f=>F(f)),[O,U]=o.useState(null),[Z,V]=o.useState(null),k=de(e),[K,B]=o.useState(!1),H=o.useRef(!1);o.useEffect(()=>{if(v)return wt(v)},[v]),yt();const P=o.useCallback(f=>{const[I,...j]=k().map(b=>b.ref.current),[w]=j.slice(-1),y=document.activeElement;for(const b of f)if(b===y||(b?.scrollIntoView({block:"nearest"}),b===I&&M&&(M.scrollTop=0),b===w&&M&&(M.scrollTop=M.scrollHeight),b?.focus(),document.activeElement!==y))return},[k,M]),D=o.useCallback(()=>P([O,v]),[P,O,v]);o.useEffect(()=>{K&&D()},[K,D]);const{onOpenChange:W,triggerPointerDownPosRef:$}=m;o.useEffect(()=>{if(v){let f={x:0,y:0};const I=w=>{f={x:Math.abs(Math.round(w.pageX)-($.current?.x??0)),y:Math.abs(Math.round(w.pageY)-($.current?.y??0))}},j=w=>{f.x<=10&&f.y<=10?w.preventDefault():v.contains(w.target)||W(!1),document.removeEventListener("pointermove",I),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",I),document.addEventListener("pointerup",j,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",I),document.removeEventListener("pointerup",j,{capture:!0})}}},[v,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]=nt(f=>{const I=k().filter(y=>!y.disabled),j=I.find(y=>y.ref.current===document.activeElement),w=rt(I,f,j);w&&setTimeout(()=>w.ref.current.focus())}),fe=o.useCallback((f,I,j)=>{const w=!H.current&&!j;(m.value!==void 0&&m.value===I||w)&&(U(f),w&&(H.current=!0))},[m.value]),me=o.useCallback(()=>v?.focus(),[v]),te=o.useCallback((f,I,j)=>{const w=!H.current&&!j;(m.value!==void 0&&m.value===I||w)&&V(f)},[m.value]),le=s==="popper"?xe:We,re=le===xe?{side:c,sideOffset:i,align:p,alignOffset:g,arrowPadding:x,collisionBoundary:R,collisionPadding:T,sticky:C,hideWhenDetached:u,avoidCollisions:h}:{};return a.jsx(Be,{scope:e,content:v,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(Ct,{as:Xt,allowPinchZoom:!0,children:a.jsx(It,{asChild:!0,trapped:m.open,onMountAutoFocus:f=>{f.preventDefault()},onUnmountAutoFocus:N(r,f=>{m.trigger?.focus({preventScroll:!0}),f.preventDefault()}),children:a.jsx(Tt,{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:()=>B(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:N(S.onKeyDown,f=>{const I=f.ctrlKey||f.altKey||f.metaKey;if(f.key==="Tab"&&f.preventDefault(),!I&&f.key.length===1&&ae(f.key),["ArrowUp","ArrowDown","Home","End"].includes(f.key)){let w=k().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,b=w.indexOf(y);w=w.slice(b+1)}setTimeout(()=>P(w)),f.preventDefault()}})})})})})})});He.displayName=Zt;var Jt="SelectItemAlignedPosition",We=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),x=L(n,E=>g(E)),R=de(e),T=o.useRef(!1),C=o.useRef(!0),{viewport:u,selectedItem:h,selectedItemText:S,focusSelectedItem:m}=l,v=o.useCallback(()=>{if(d.trigger&&d.valueNode&&c&&p&&u&&h&&S){const E=d.trigger.getBoundingClientRect(),O=p.getBoundingClientRect(),U=d.valueNode.getBoundingClientRect(),Z=S.getBoundingClientRect();if(d.dir!=="rtl"){const y=Z.left-O.left,b=U.left-y,X=E.left-b,J=E.width+X,he=Math.max(J,O.width),ge=window.innerWidth-A,ve=be(b,[A,Math.max(A,ge-he)]);c.style.minWidth=J+"px",c.style.left=ve+"px"}else{const y=O.right-Z.right,b=window.innerWidth-U.right-y,X=window.innerWidth-E.right-b,J=E.width+X,he=Math.max(J,O.width),ge=window.innerWidth-A,ve=be(b,[A,Math.max(A,ge-he)]);c.style.minWidth=J+"px",c.style.right=ve+"px"}const V=R(),k=window.innerHeight-A*2,K=u.scrollHeight,B=window.getComputedStyle(p),H=parseInt(B.borderTopWidth,10),P=parseInt(B.paddingTop,10),D=parseInt(B.borderBottomWidth,10),W=parseInt(B.paddingBottom,10),$=H+P+K+W+D,pe=Math.min(h.offsetHeight*5,$),ae=window.getComputedStyle(u),fe=parseInt(ae.paddingTop,10),me=parseInt(ae.paddingBottom,10),te=E.top+E.height/2-A,le=k-te,re=h.offsetHeight/2,f=h.offsetTop+re,I=H+P+f,j=$-I;if(I<=te){const y=V.length>0&&h===V[V.length-1].ref.current;c.style.bottom="0px";const b=p.clientHeight-u.offsetTop-u.offsetHeight,X=Math.max(le,re+(y?me:0)+b+D),J=I+X;c.style.height=J+"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)+j;c.style.height=X+"px",u.scrollTop=I-te+u.offsetTop}c.style.margin=`${A}px 0`,c.style.minHeight=pe+"px",c.style.maxHeight=k+"px",s?.(),requestAnimationFrame(()=>T.current=!0)}},[R,d.trigger,d.valueNode,c,p,u,h,S,d.dir,s]);z(()=>v(),[v]);const[F,M]=o.useState();z(()=>{p&&M(window.getComputedStyle(p).zIndex)},[p]);const ne=o.useCallback(E=>{E&&C.current===!0&&(v(),m?.(),C.current=!1)},[v,m]);return a.jsx(eo,{scope:e,contentWrapper:c,shouldExpandOnScrollRef:T,onScrollButtonChange:ne,children:a.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:a.jsx(_.div,{...r,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});We.displayName=Jt;var Qt="SelectPopperPosition",xe=o.forwardRef((t,n)=>{const{__scopeSelect:e,align:s="start",collisionPadding:r=A,...d}=t,l=ue(e);return a.jsx(bt,{...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)"}})});xe.displayName=Qt;var[eo,Te]=oe(ee,{}),Se="SelectViewport",Fe=o.forwardRef((t,n)=>{const{__scopeSelect:e,nonce:s,...r}=t,d=q(Se,e),l=Te(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(_.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:x,shouldExpandOnScrollRef:R}=l;if(R?.current&&x){const T=Math.abs(i.current-g.scrollTop);if(T>0){const C=window.innerHeight-A*2,u=parseFloat(x.style.minHeight),h=parseFloat(x.style.height),S=Math.max(u,h);if(S<C){const m=S+T,v=Math.min(C,m),F=m-v;x.style.height=v+"px",x.style.bottom==="0px"&&(g.scrollTop=F>0?F:0,x.style.justifyContent="flex-end")}}}i.current=g.scrollTop})})})]})});Fe.displayName=Se;var Ue="SelectGroup",[to,oo]=oe(Ue),no=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t,r=Ie();return a.jsx(to,{scope:e,id:r,children:a.jsx(_.div,{role:"group","aria-labelledby":r,...s,ref:n})})});no.displayName=Ue;var Ke="SelectLabel",$e=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t,r=oo(Ke,e);return a.jsx(_.div,{id:r.id,...s,ref:n})});$e.displayName=Ke;var ce="SelectItem",[ro,ze]=oe(ce),Ge=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,x]=o.useState(d??""),[R,T]=o.useState(!1),C=L(n,m=>i.itemRefCallback?.(m,s,r)),u=Ie(),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(ro,{scope:e,value:s,disabled:r,textId:u,isSelected:p,onItemTextChange:o.useCallback(m=>{x(v=>v||(m?.textContent??"").trim())},[]),children:a.jsx(ie.ItemSlot,{scope:e,value:s,disabled:r,textValue:g,children:a.jsx(_.div,{role:"option","aria-labelledby":u,"data-highlighted":R?"":void 0,"aria-selected":p&&R,"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,()=>T(!0)),onBlur:N(l.onBlur,()=>T(!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===" "||(Ut.includes(m.key)&&S(),m.key===" "&&m.preventDefault())})})})})});Ge.displayName=ce;var se="SelectItemText",Ye=o.forwardRef((t,n)=>{const{__scopeSelect:e,className:s,style:r,...d}=t,l=Y(se,e),c=q(se,e),i=ze(se,e),p=Gt(se,e),[g,x]=o.useState(null),R=L(n,S=>x(S),i.onItemTextChange,S=>c.itemTextRefCallback?.(S,i.value,i.disabled)),T=g?.textContent,C=o.useMemo(()=>a.jsx("option",{value:i.value,disabled:i.disabled,children:T},i.value),[i.disabled,i.value,T]),{onNativeOptionAdd:u,onNativeOptionRemove:h}=p;return z(()=>(u(C),()=>h(C)),[u,h,C]),a.jsxs(a.Fragment,{children:[a.jsx(_.span,{id:i.textId,...d,ref:R}),i.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Re.createPortal(d.children,l.valueNode):null]})});Ye.displayName=se;var qe="SelectItemIndicator",Ze=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t;return ze(qe,e).isSelected?a.jsx(_.span,{"aria-hidden":!0,...s,ref:n}):null});Ze.displayName=qe;var we="SelectScrollUpButton",Xe=o.forwardRef((t,n)=>{const e=q(we,t.__scopeSelect),s=Te(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});Xe.displayName=we;var ye="SelectScrollDownButton",Je=o.forwardRef((t,n)=>{const e=q(ye,t.__scopeSelect),s=Te(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});Je.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(_.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()})})}),so="SelectSeparator",et=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t;return a.jsx(_.div,{"aria-hidden":!0,...s,ref:n})});et.displayName=so;var Ce="SelectArrow",ao=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(Nt,{...r,...s,ref:n}):null});ao.displayName=Ce;var lo="SelectBubbleInput",tt=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 x=new Event("change",{bubbles:!0});g.call(c,n),c.dispatchEvent(x)}},[l,n]),a.jsx(_.select,{...e,style:{..._e,...e.style},ref:d,defaultValue:n})});tt.displayName=lo;function ot(t){return t===""||t===void 0}function nt(t){const n=St(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 rt(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=co(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 co(t,n){return t.map((e,s)=>t[(n+s)%t.length])}var io=je,st=Ae,uo=De,po=Le,fo=Ve,at=ke,mo=Fe,lt=$e,ct=Ge,ho=Ye,go=Ze,it=Xe,dt=Je,ut=et;const _o=io,jo=uo,vo=o.forwardRef(({className:t,children:n,...e},s)=>a.jsxs(st,{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 cursor-pointer 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(po,{asChild:!0,children:a.jsx(Pe,{className:"h-4 w-4 opacity-50"})})]}));vo.displayName=st.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(At,{className:"h-4 w-4"})}));pt.displayName=it.displayName;
1const ft=o.forwardRef(({className:t,...n},e)=>a.jsx(dt,{ref:e,className:G("flex cursor-default items-center justify-center py-1",t),...n,children:a.jsx(Pe,{className:"h-4 w-4"})}));ft.displayName=dt.displayName;const xo=o.forwardRef(({className:t,children:n,position:e="popper",...s},r)=>a.jsx(fo,{children:a.jsxs(at,{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(pt,{}),a.jsx(mo,{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(ft,{})]})}));xo.displayName=at.displayName;const So=o.forwardRef(({className:t,...n},e)=>a.jsx(lt,{ref:e,className:G("px-2 py-1.5 text-sm font-semibold",t),...n}));So.displayName=lt.displayName;const wo=o.forwardRef(({className:t,children:n,...e},s)=>a.jsxs(ct,{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(go,{children:a.jsx(jt,{className:"h-4 w-4"})})}),a.jsx(ho,{children:n})]}));wo.displayName=ct.displayName;const yo=o.forwardRef(({className:t,...n},e)=>a.jsx(ut,{ref:e,className:G("-mx-1 my-1 h-px bg-muted",t),...n}));yo.displayName=ut.displayName;export{_o as S,vo as a,jo as b,xo as c,wo 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.