import{o as e}from"./rolldown-runtime.C0FnF6B9.js";import{r as t}from"./emotion-is-prop-valid.esm.CuYlOKOk.js";import{ct as n,et as r,it as i,tt as a,v as o}from"./Tooltip.CcubhKj6.js";import{t as s}from"./useFocusRing.DKgtHVTa.js";import{t as c}from"./Hidden.tKmNEkoU.js";var l=e(t(),1),u=(0,l.createContext)({}),d=(0,l.forwardRef)(function(e,t){[e,t]=r(e,t,u);let{isDisabled:c,isInvalid:d,isReadOnly:f,onHoverStart:p,onHoverChange:m,onHoverEnd:h,...g}=e;c??=!!e[`aria-disabled`]&&e[`aria-disabled`]!==`false`,d??=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`;let{hoverProps:_,isHovered:v}=o({onHoverStart:p,onHoverChange:m,onHoverEnd:h,isDisabled:c}),{isFocused:y,isFocusVisible:b,focusProps:x}=s({within:!0}),S=a({...e,values:{isHovered:v,isFocusWithin:y,isFocusVisible:b,isDisabled:c,isInvalid:d},defaultClassName:`react-aria-Group`});return l.createElement(i.div,{...n(g,x,_),...S,ref:t,role:e.role??`group`,slot:e.slot??void 0,"data-focus-within":y||void 0,"data-hovered":v||void 0,"data-focus-visible":b||void 0,"data-disabled":c||void 0,"data-invalid":d||void 0,"data-readonly":f||void 0},S.children)}),f=(0,l.createContext)({}),p=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},m=c(function(e,t){[e,t]=r(e,t,f);let{hoverProps:c,isHovered:u}=o({...e,isDisabled:e.disabled}),{isFocused:d,isFocusVisible:m,focusProps:h}=s({isTextInput:!0,autoFocus:e.autoFocus}),g=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`,_=a({...e,values:{isHovered:u,isFocused:d,isFocusVisible:m,isDisabled:e.disabled||!1,isInvalid:g},defaultClassName:`react-aria-Input`});return l.createElement(i.input,{...n(p(e),h,c),..._,ref:t,"data-focused":d||void 0,"data-disabled":e.disabled||void 0,"data-hovered":u||void 0,"data-focus-visible":m||void 0,"data-invalid":g||void 0})});export{u as i,m as n,d as r,f as t};