1import{a as v,b as F,d as p,e as b,f as h,g as D,h as E,i as S}from"./cx-JWMrrZN5.js";import{r as x,$ as g}from"./chunk-OIYGIGL5-gwPc8tBz.js";import{$ as H,a as R,b as T}from"./bundle-mjs-BWt8Cp2A.js";function w(e,s){let{elementType:r="a",onPress:o,onPressStart:c,onPressEnd:i,onClick:f,isDisabled:a,...$}=e,d={};r!=="a"&&(d={role:"link",tabIndex:a?void 0:0});let{focusableProps:n}=v(e,s),{pressProps:t,isPressed:l}=F({onPress:o,onPressStart:c,onPressEnd:i,onClick:f,isDisabled:a,ref:s}),C=p($,{labelable:!0}),k=b(n,t),m=H(),y=R(e);return{isPressed:l,linkProps:b(C,y,{...k,...d,"aria-disabled":a||void 0,"aria-current":e["aria-current"],onClick:P=>{var u;(u=t.onClick)===null||u===void 0||u.call(t,P),T(P,m,e.href,e.routerOptions)}})}}const L=x.createContext(null),N=x.forwardRef(function(s,r){[s,r]=h(s,r,L);let o=s.href&&!s.isDisabled?"a":"span",{linkProps:c,isPressed:i}=w({...s,elementType:o},r),{hoverProps:f,isHovered:a}=D(s),{focusProps:$,isFocused:d,isFocusVisible:n}=E(),t=S({...s,defaultClassName:"react-aria-Link",values:{isCurrent:!!s["aria-current"],isDisabled:s.isDisabled||!1,isPressed:i,isHovered:a,isFocused:d,isFocusVisible:n}}),l=p(s,{global:!0});return delete l.onClick,g.createElement(o,{ref:r,slot:s.slot||void 0,...b(l,t,c,f,$),"data-focused":d||void 0,"data-hovered":a||void 0,"data-pressed":i||void 0,"data-focus-visible":n||void 0,"data-current":!!s["aria-current"]||void 0,"data-disabled":s.isDisabled||void 0},t.children)}),V=e=>typeof e=="function",_=e=>typeof e=="function"&&e.prototype&&(!!e.prototype.isReactComponent||!!e.prototype.render),j=e=>typeof e=="object"&&e!==null&&e.$$typeof.toString()==="Symbol(react.forward_ref)",q=e=>V(e)||j(e)||_(e);export{N as $,q as i}; 2//# sourceMappingURL=is-react-component-CT1NlcGF.js.map
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.