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,SAAU,MADtR,IACuS,GAC5U,CACD,EACA,EACA,EACA,EACA,EACA,EACA,IAEI,GAAe,EAAI,cAAc,UAAS,KACvB,EAAI,oBAAoB,MAAM,MAAO,IAAK,IAAwB,SAAU,CACjG,GACgB,EAAI,oBAAoB,KAAK,QAAS,IAAK,OAC3C,EAAI,oBAAoB,KAAK,QAAS,IAAK,MAC3D,GACC,IAA+B,EAAI,oBAAoB,MAAM,MAAO,IAAK,IAA0B,SAAU,EAC5F,EAAI,oBAAoB,KAAK,6BAA8B,IAAK,IAAiC,UAAW,QAC5G,EAAI,oBAAoB,KAAK,6BAA8B,IAAK,IAAiC,UAAW,gBAG/H,CAAC,EAAc,EAAK,EAAqB,IACtC,GAAc,EAAI,cAAc,UAAS,IACzC,GACqB,EAAI,oBAAoB,MAAM,MAAO,IAAK,IAAuB,SAAU,EAChF,EAAI,oBAAoB,MAAM,MAAO,IAAK,IAAwB,SAAU,CACzF,GAAkB,EAA8B,KAAf,EAClC,KAEF,MAGmB,EAAI,oBAAoB,MAAM,oBAAoB,SAAU,CAAE,SAAU,EAC7E,EAAI,oBAAoB,MAAM,MAAO,IAAK,IAAwB,SAAU,CAC1F,EACA,KAEF,MAED,CACD,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,IAEF,OAAuB,EAAI,oBAAoB,MAAM,EAAW,IAAK,IAAgB,SAAU,CAC7F,GAAiB,EAAe,EAAe,KAC/C,IACE,IAEN,YAAY,YAAc,qBAC1B,IAAI,qBAAuB","file":"/npm/@heroui/number-input@2.0.22/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@heroui/number-input@2.0.22/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use client\";\n\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n  for (var name in all)\n    __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n  if (from && typeof from === \"object\" || typeof from === \"function\") {\n    for (let key of __getOwnPropNames(from))\n      if (!__hasOwnProp.call(to, key) && key !== except)\n        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n  }\n  return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar index_exports = {};\n__export(index_exports, {\n  NumberInput: () => number_input_default,\n  useNumberInput: () => useNumberInput\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/number-input.tsx\nvar import_shared_icons2 = require(\"@heroui/shared-icons\");\nvar import_react2 = require(\"react\");\nvar import_system2 = require(\"@heroui/system\");\n\n// src/use-number-input.ts\nvar import_system = require(\"@heroui/system\");\nvar import_use_safe_layout_effect = require(\"@heroui/use-safe-layout-effect\");\nvar import_focus = require(\"@react-aria/focus\");\nvar import_theme = require(\"@heroui/theme\");\nvar import_react_utils = require(\"@heroui/react-utils\");\nvar import_interactions = require(\"@react-aria/interactions\");\nvar import_i18n = require(\"@react-aria/i18n\");\nvar import_shared_utils = require(\"@heroui/shared-utils\");\nvar import_numberfield = require(\"@react-stately/numberfield\");\nvar import_numberfield2 = require(\"@react-aria/numberfield\");\nvar import_react = require(\"react\");\nvar import_form = require(\"@heroui/form\");\nfunction useNumberInput(originalProps) {\n  var _a, _b, _c;\n  const globalContext = (0, import_system.useProviderContext)();\n  const { validationBehavior: formValidationBehavior } = (0, import_form.useSlottedContext)(import_form.FormContext) || {};\n  const [props, variantProps] = (0, import_system.mapPropsVariants)(originalProps, import_theme.numberInput.variantKeys);\n  const {\n    ref,\n    as,\n    type,\n    label,\n    baseRef,\n    wrapperRef,\n    description,\n    className,\n    classNames,\n    autoFocus,\n    startContent,\n    endContent,\n    onClear,\n    onChange,\n    validationBehavior = (_a = formValidationBehavior != null ? formValidationBehavior : globalContext == null ? void 0 : globalContext.validationBehavior) != null ? _a : \"native\",\n    innerWrapperRef: innerWrapperRefProp,\n    onValueChange,\n    hideStepper,\n    ...otherProps\n  } = props;\n  const [isFocusWithin, setFocusWithin] = (0, import_react.useState)(false);\n  const Component = as || \"div\";\n  const disableAnimation = (_c = (_b = originalProps.disableAnimation) != null ? _b : globalContext == null ? void 0 : globalContext.disableAnimation) != null ? _c : false;\n  const domRef = (0, import_react_utils.useDOMRef)(ref);\n  const baseDomRef = (0, import_react_utils.useDOMRef)(baseRef);\n  const inputWrapperRef = (0, import_react_utils.useDOMRef)(wrapperRef);\n  const innerWrapperRef = (0, import_react_utils.useDOMRef)(innerWrapperRefProp);\n  const { locale } = (0, import_i18n.useLocale)();\n  const state = (0, import_numberfield.useNumberFieldState)({\n    ...originalProps,\n    validationBehavior,\n    locale,\n    onChange: (0, import_shared_utils.chain)(onValueChange, onChange)\n  });\n  const {\n    groupProps,\n    labelProps,\n    inputProps,\n    incrementButtonProps,\n    decrementButtonProps,\n    descriptionProps,\n    errorMessageProps,\n    isInvalid,\n    validationErrors,\n    validationDetails\n  } = (0, import_numberfield2.useNumberField)({ ...originalProps, validationBehavior }, state, domRef);\n  const inputValue = isNaN(state.numberValue) ? \"\" : state.numberValue;\n  const isFilled = !(0, import_shared_utils.isEmpty)(state.inputValue) && !(0, import_shared_utils.isEmpty)(inputValue);\n  const isFilledWithin = isFilled || isFocusWithin;\n  const baseStyles = (0, import_theme.cn)(classNames == null ? void 0 : classNames.base, className, isFilled ? \"is-filled\" : \"\");\n  const handleClear = (0, import_react.useCallback)(() => {\n    var _a2;\n    state.setInputValue(\"\");\n    onClear == null ? void 0 : onClear();\n    (_a2 = domRef.current) == null ? void 0 : _a2.focus();\n  }, [state.setInputValue, onClear]);\n  (0, import_use_safe_layout_effect.useSafeLayoutEffect)(() => {\n    if (!domRef.current) return;\n    state.setInputValue(domRef.current.value);\n  }, [domRef.current]);\n  const { isFocusVisible, isFocused, focusProps } = (0, import_focus.useFocusRing)({\n    autoFocus,\n    isTextInput: true\n  });\n  const { isHovered, hoverProps } = (0, import_interactions.useHover)({ isDisabled: !!(originalProps == null ? void 0 : originalProps.isDisabled) });\n  const { isHovered: isLabelHovered, hoverProps: labelHoverProps } = (0, import_interactions.useHover)({\n    isDisabled: !!(originalProps == null ? void 0 : originalProps.isDisabled)\n  });\n  const { focusProps: clearFocusProps, isFocusVisible: isClearButtonFocusVisible } = (0, import_focus.useFocusRing)();\n  const { focusWithinProps } = (0, import_interactions.useFocusWithin)({\n    onFocusWithinChange: setFocusWithin\n  });\n  const { pressProps: clearPressProps } = (0, import_interactions.usePress)({\n    isDisabled: !!(originalProps == null ? void 0 : originalProps.isDisabled) || !!(originalProps == null ? void 0 : originalProps.isReadOnly),\n    onPress: handleClear\n  });\n  const labelPlacement = (0, import_system.useLabelPlacement)({\n    labelPlacement: originalProps.labelPlacement,\n    label\n  });\n  const errorMessage = typeof props.errorMessage === \"function\" ? props.errorMessage({ isInvalid, validationErrors, validationDetails }) : props.errorMessage || (validationErrors == null ? void 0 : validationErrors.join(\" \"));\n  const isClearable = !!onClear || originalProps.isClearable;\n  const hasElements = !!label || !!description || !!errorMessage;\n  const hasPlaceholder = !!props.placeholder;\n  const hasLabel = !!label;\n  const hasHelper = !!description || !!errorMessage;\n  const shouldLabelBeOutside = labelPlacement === \"outside\" || labelPlacement === \"outside-left\" || labelPlacement === \"outside-top\";\n  const shouldLabelBeInside = labelPlacement === \"inside\";\n  const isPlaceholderShown = domRef.current ? (!domRef.current.value || domRef.current.value === \"\" || !inputValue) && hasPlaceholder : false;\n  const isOutsideLeft = labelPlacement === \"outside-left\";\n  const isOutsideTop = labelPlacement === \"outside-top\";\n  const hasStartContent = !!startContent;\n  const isLabelOutside = shouldLabelBeOutside ? labelPlacement === \"outside-left\" || isOutsideTop || hasPlaceholder || labelPlacement === \"outside\" && hasStartContent : false;\n  const isLabelOutsideAsPlaceholder = labelPlacement === \"outside\" && !hasPlaceholder && !hasStartContent;\n  const slots = (0, import_react.useMemo)(\n    () => (0, import_theme.numberInput)({\n      ...variantProps,\n      isInvalid,\n      labelPlacement,\n      isClearable,\n      disableAnimation\n    }),\n    [\n      (0, import_shared_utils.objectToDeps)(variantProps),\n      isInvalid,\n      labelPlacement,\n      isClearable,\n      hasStartContent,\n      disableAnimation\n    ]\n  );\n  const handleKeyDown = (0, import_react.useCallback)(\n    (e) => {\n      var _a2, _b2;\n      const inputElement = e.currentTarget;\n      const { selectionStart, selectionEnd, value } = inputElement;\n      const nf = new Intl.NumberFormat(locale, { useGrouping: true });\n      const groupChar = (_b2 = (_a2 = nf.formatToParts(1e3).find((p) => p.type === \"group\")) == null ? void 0 : _a2.value) != null ? _b2 : \",\";\n      if (e.key === \"Backspace\" && !originalProps.isReadOnly && !originalProps.isDisabled && selectionStart !== null && selectionEnd !== null && selectionStart === selectionEnd && selectionStart > 0 && value[selectionStart] === groupChar && value[selectionStart - 1] !== groupChar) {\n        e.preventDefault();\n        const newValue = value.slice(0, selectionStart - 1) + value.slice(selectionStart);\n        const cleanValue = newValue.replace(/[^\\d.-]/g, \"\");\n        if (cleanValue === \"\" || cleanValue === \"-\") {\n          state.setInputValue(\"\");\n        } else {\n          const numberValue = parseFloat(cleanValue);\n          if (!isNaN(numberValue)) {\n            state.setNumberValue(numberValue);\n          }\n        }\n        setTimeout(() => {\n          const pos = Math.max(0, selectionStart - 1);\n          inputElement.setSelectionRange(pos, pos);\n        }, 0);\n      } else if (e.key === \"Escape\" && inputValue && (isClearable || onClear) && !originalProps.isReadOnly) {\n        state.setInputValue(\"\");\n        onClear == null ? void 0 : onClear();\n      }\n    },\n    [inputValue, state, onClear, isClearable, originalProps.isReadOnly]\n  );\n  const getBaseProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        ref: baseDomRef,\n        className: slots.base({ class: baseStyles }),\n        \"data-slot\": \"base\",\n        \"data-filled\": (0, import_shared_utils.dataAttr)(\n          isFilled || hasPlaceholder || hasStartContent || isPlaceholderShown\n        ),\n        \"data-filled-within\": (0, import_shared_utils.dataAttr)(\n          isFilledWithin || hasPlaceholder || hasStartContent || isPlaceholderShown\n        ),\n        \"data-focus-within\": (0, import_shared_utils.dataAttr)(isFocusWithin),\n        \"data-focus-visible\": (0, import_shared_utils.dataAttr)(isFocusVisible),\n        \"data-readonly\": (0, import_shared_utils.dataAttr)(originalProps.isReadOnly),\n        \"data-focus\": (0, import_shared_utils.dataAttr)(isFocused),\n        \"data-hover\": (0, import_shared_utils.dataAttr)(isHovered || isLabelHovered),\n        \"data-required\": (0, import_shared_utils.dataAttr)(originalProps.isRequired),\n        \"data-invalid\": (0, import_shared_utils.dataAttr)(isInvalid),\n        \"data-disabled\": (0, import_shared_utils.dataAttr)(originalProps.isDisabled),\n        \"data-has-elements\": (0, import_shared_utils.dataAttr)(hasElements),\n        \"data-has-helper\": (0, import_shared_utils.dataAttr)(hasHelper),\n        \"data-has-label\": (0, import_shared_utils.dataAttr)(hasLabel),\n        \"data-has-value\": (0, import_shared_utils.dataAttr)(!isPlaceholderShown),\n        ...focusWithinProps,\n        ...props2\n      };\n    },\n    [\n      slots,\n      baseStyles,\n      isFilled,\n      isFocused,\n      isHovered,\n      isLabelHovered,\n      isInvalid,\n      hasHelper,\n      hasLabel,\n      hasElements,\n      isPlaceholderShown,\n      hasStartContent,\n      isFocusWithin,\n      isFocusVisible,\n      hasPlaceholder,\n      focusWithinProps,\n      originalProps.isReadOnly,\n      originalProps.isRequired,\n      originalProps.isDisabled\n    ]\n  );\n  const getLabelProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        \"data-slot\": \"label\",\n        className: slots.label({ class: classNames == null ? void 0 : classNames.label }),\n        ...(0, import_shared_utils.mergeProps)(labelProps, labelHoverProps, props2)\n      };\n    },\n    [slots, isLabelHovered, labelProps, classNames == null ? void 0 : classNames.label]\n  );\n  const getNumberInputProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        \"data-slot\": \"input\",\n        \"data-filled\": (0, import_shared_utils.dataAttr)(isFilled),\n        \"data-has-start-content\": (0, import_shared_utils.dataAttr)(hasStartContent),\n        \"data-has-end-content\": (0, import_shared_utils.dataAttr)(!!endContent),\n        className: slots.input({\n          class: (0, import_theme.cn)(classNames == null ? void 0 : classNames.input, isFilled ? \"is-filled\" : \"\")\n        }),\n        ...(0, import_shared_utils.mergeProps)(\n          focusProps,\n          inputProps,\n          (0, import_react_utils.filterDOMProps)(otherProps, {\n            enabled: true,\n            labelable: true,\n            omitEventNames: new Set(Object.keys(inputProps)),\n            omitPropNames: /* @__PURE__ */ new Set([\"value\", \"name\"])\n          }),\n          props2\n        ),\n        \"aria-readonly\": (0, import_shared_utils.dataAttr)(originalProps.isReadOnly),\n        onChange: (0, import_shared_utils.chain)(inputProps.onChange, onChange),\n        onKeyDown: (0, import_shared_utils.chain)(inputProps.onKeyDown, props2.onKeyDown, handleKeyDown),\n        ref: domRef\n      };\n    },\n    [\n      slots,\n      focusProps,\n      inputProps,\n      otherProps,\n      isFilled,\n      hasStartContent,\n      endContent,\n      classNames == null ? void 0 : classNames.input,\n      originalProps.isReadOnly,\n      originalProps.isRequired,\n      onChange,\n      handleKeyDown\n    ]\n  );\n  const getHiddenNumberInputProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        name: originalProps.name,\n        value: inputValue,\n        \"data-slot\": \"hidden-input\",\n        type: \"hidden\",\n        ...props2\n      };\n    },\n    [inputValue, originalProps.name]\n  );\n  const getInputWrapperProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        ref: inputWrapperRef,\n        \"data-slot\": \"input-wrapper\",\n        \"data-hover\": (0, import_shared_utils.dataAttr)(isHovered || isLabelHovered),\n        \"data-focus-visible\": (0, import_shared_utils.dataAttr)(isFocusVisible),\n        \"data-focus\": (0, import_shared_utils.dataAttr)(isFocused),\n        className: slots.inputWrapper({\n          class: (0, import_theme.cn)(classNames == null ? void 0 : classNames.inputWrapper, isFilled ? \"is-filled\" : \"\")\n        }),\n        ...(0, import_shared_utils.mergeProps)(props2, hoverProps),\n        onClick: (e) => {\n          if (domRef.current && e.currentTarget === e.target) {\n            domRef.current.focus();\n          }\n        },\n        style: {\n          cursor: \"text\",\n          ...props2.style\n        }\n      };\n    },\n    [\n      slots,\n      isHovered,\n      isLabelHovered,\n      isFocusVisible,\n      isFocused,\n      inputValue,\n      classNames == null ? void 0 : classNames.inputWrapper\n    ]\n  );\n  const getInnerWrapperProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        ref: innerWrapperRef,\n        \"data-slot\": \"inner-wrapper\",\n        onClick: (e) => {\n          if (domRef.current && e.currentTarget === e.target) {\n            domRef.current.focus();\n          }\n        },\n        className: slots.innerWrapper({\n          class: (0, import_theme.cn)(classNames == null ? void 0 : classNames.innerWrapper, props2 == null ? void 0 : props2.className)\n        }),\n        ...(0, import_shared_utils.mergeProps)(groupProps, props2)\n      };\n    },\n    [slots, classNames == null ? void 0 : classNames.innerWrapper]\n  );\n  const getMainWrapperProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        ...props2,\n        \"data-slot\": \"main-wrapper\",\n        className: slots.mainWrapper({\n          class: (0, import_theme.cn)(classNames == null ? void 0 : classNames.mainWrapper, props2 == null ? void 0 : props2.className)\n        })\n      };\n    },\n    [slots, classNames == null ? void 0 : classNames.mainWrapper]\n  );\n  const getHelperWrapperProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        ...props2,\n        \"data-slot\": \"helper-wrapper\",\n        className: slots.helperWrapper({\n          class: (0, import_theme.cn)(classNames == null ? void 0 : classNames.helperWrapper, props2 == null ? void 0 : props2.className)\n        })\n      };\n    },\n    [slots, classNames == null ? void 0 : classNames.helperWrapper]\n  );\n  const getDescriptionProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        ...props2,\n        ...descriptionProps,\n        \"data-slot\": \"description\",\n        className: slots.description({ class: (0, import_theme.cn)(classNames == null ? void 0 : classNames.description, props2 == null ? void 0 : props2.className) })\n      };\n    },\n    [slots, classNames == null ? void 0 : classNames.description]\n  );\n  const getErrorMessageProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        ...props2,\n        ...errorMessageProps,\n        \"data-slot\": \"error-message\",\n        className: slots.errorMessage({ class: (0, import_theme.cn)(classNames == null ? void 0 : classNames.errorMessage, props2 == null ? void 0 : props2.className) })\n      };\n    },\n    [slots, errorMessageProps, classNames == null ? void 0 : classNames.errorMessage]\n  );\n  const getClearButtonProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        ...props2,\n        type: \"button\",\n        tabIndex: -1,\n        disabled: originalProps.isDisabled,\n        \"aria-label\": \"clear input\",\n        \"data-slot\": \"clear-button\",\n        \"data-focus-visible\": (0, import_shared_utils.dataAttr)(isClearButtonFocusVisible),\n        className: slots.clearButton({ class: (0, import_theme.cn)(classNames == null ? void 0 : classNames.clearButton, props2 == null ? void 0 : props2.className) }),\n        ...(0, import_shared_utils.mergeProps)(clearPressProps, clearFocusProps)\n      };\n    },\n    [slots, isClearButtonFocusVisible, clearPressProps, clearFocusProps, classNames == null ? void 0 : classNames.clearButton]\n  );\n  const getStepperWrapperProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        ...props2,\n        \"data-slot\": \"stepper-wrapper\",\n        className: slots.stepperWrapper({\n          class: (0, import_theme.cn)(classNames == null ? void 0 : classNames.stepperWrapper, props2 == null ? void 0 : props2.className)\n        })\n      };\n    },\n    [slots]\n  );\n  const getStepperIncreaseButtonProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        ...props2,\n        type: \"button\",\n        disabled: originalProps.isDisabled,\n        \"data-slot\": \"increase-button\",\n        className: slots.stepperButton({\n          class: (0, import_theme.cn)(classNames == null ? void 0 : classNames.stepperButton, props2 == null ? void 0 : props2.className)\n        }),\n        ...(0, import_shared_utils.mergeProps)(incrementButtonProps, props2)\n      };\n    },\n    [slots, incrementButtonProps, classNames == null ? void 0 : classNames.stepperButton]\n  );\n  const getStepperDecreaseButtonProps = (0, import_react.useCallback)(\n    (props2 = {}) => {\n      return {\n        type: \"button\",\n        disabled: originalProps.isDisabled,\n        \"data-slot\": \"decrease-button\",\n        className: slots.stepperButton({\n          class: (0, import_theme.cn)(classNames == null ? void 0 : classNames.stepperButton, props2 == null ? void 0 : props2.className)\n        }),\n        ...(0, import_shared_utils.mergeProps)(decrementButtonProps, props2)\n      };\n    },\n    [slots, decrementButtonProps, classNames == null ? void 0 : classNames.stepperButton]\n  );\n  return {\n    Component,\n    classNames,\n    type,\n    domRef,\n    label,\n    description,\n    startContent,\n    endContent,\n    labelPlacement,\n    isClearable,\n    hasHelper,\n    hasStartContent,\n    isLabelOutside,\n    isOutsideLeft,\n    isOutsideTop,\n    isLabelOutsideAsPlaceholder,\n    shouldLabelBeOutside,\n    shouldLabelBeInside,\n    hasPlaceholder,\n    isInvalid,\n    errorMessage,\n    hideStepper,\n    incrementButtonProps,\n    decrementButtonProps,\n    getBaseProps,\n    getLabelProps,\n    getNumberInputProps,\n    getHiddenNumberInputProps,\n    getMainWrapperProps,\n    getInputWrapperProps,\n    getInnerWrapperProps,\n    getHelperWrapperProps,\n    getDescriptionProps,\n    getErrorMessageProps,\n    getClearButtonProps,\n    getStepperIncreaseButtonProps,\n    getStepperDecreaseButtonProps,\n    getStepperWrapperProps\n  };\n}\n\n// src/number-input-stepper.tsx\nvar import_button = require(\"@heroui/button\");\nvar import_shared_icons = require(\"@heroui/shared-icons\");\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar NumberInputStepper = ({ direction, ...otherProps }) => {\n  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { disableRipple: true, isIconOnly: true, ...otherProps, children: direction == \"up\" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_shared_icons.ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_shared_icons.ChevronDownIcon, {}) });\n};\nNumberInputStepper.displayName = \"HeroUI.NumberInputStepper\";\nvar number_input_stepper_default = NumberInputStepper;\n\n// src/number-input.tsx\nvar import_jsx_runtime2 = require(\"react/jsx-runtime\");\nvar NumberInput = (0, import_system2.forwardRef)((props, ref) => {\n  const {\n    Component,\n    label,\n    description,\n    isClearable,\n    startContent,\n    endContent,\n    labelPlacement,\n    hasHelper,\n    isOutsideLeft,\n    isOutsideTop,\n    shouldLabelBeOutside,\n    errorMessage,\n    isInvalid,\n    hideStepper,\n    getBaseProps,\n    getLabelProps,\n    getNumberInputProps,\n    getHiddenNumberInputProps,\n    getInnerWrapperProps,\n    getInputWrapperProps,\n    getMainWrapperProps,\n    getHelperWrapperProps,\n    getDescriptionProps,\n    getErrorMessageProps,\n    getClearButtonProps,\n    getStepperIncreaseButtonProps,\n    getStepperDecreaseButtonProps,\n    getStepperWrapperProps\n  } = useNumberInput({ ...props, ref });\n  const labelContent = label ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(\"label\", { ...getLabelProps(), children: label }) : null;\n  const end = (0, import_react2.useMemo)(() => {\n    if (isClearable) {\n      return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [\n        /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(\"button\", { ...getClearButtonProps(), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_shared_icons2.CloseFilledIcon, {}) }),\n        endContent\n      ] });\n    }\n    return endContent;\n  }, [isClearable, getClearButtonProps]);\n  const helperWrapper = (0, import_react2.useMemo)(() => {\n    const shouldShowError = isInvalid && errorMessage;\n    const hasContent = shouldShowError || description;\n    if (!hasHelper || !hasContent) return null;\n    return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(\"div\", { ...getHelperWrapperProps(), children: shouldShowError ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(\"div\", { ...getErrorMessageProps(), children: errorMessage }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(\"div\", { ...getDescriptionProps(), children: description }) });\n  }, [\n    hasHelper,\n    isInvalid,\n    errorMessage,\n    description,\n    getHelperWrapperProps,\n    getErrorMessageProps,\n    getDescriptionProps\n  ]);\n  const innerWrapper = (0, import_react2.useMemo)(() => {\n    return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(\"div\", { ...getInnerWrapperProps(), children: [\n      startContent,\n      /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(\"input\", { ...getNumberInputProps() }),\n      /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(\"input\", { ...getHiddenNumberInputProps() }),\n      end,\n      !hideStepper && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(\"div\", { ...getStepperWrapperProps(), children: [\n        /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(number_input_stepper_default, { ...getStepperIncreaseButtonProps(), direction: \"up\" }),\n        /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(number_input_stepper_default, { ...getStepperDecreaseButtonProps(), direction: \"down\" })\n      ] })\n    ] });\n  }, [startContent, end, getNumberInputProps, getInnerWrapperProps]);\n  const mainWrapper = (0, import_react2.useMemo)(() => {\n    if (shouldLabelBeOutside) {\n      return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(\"div\", { ...getMainWrapperProps(), children: [\n        /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(\"div\", { ...getInputWrapperProps(), children: [\n          !isOutsideLeft && !isOutsideTop ? labelContent : null,\n          innerWrapper\n        ] }),\n        helperWrapper\n      ] });\n    }\n    return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [\n      /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(\"div\", { ...getInputWrapperProps(), children: [\n        labelContent,\n        innerWrapper\n      ] }),\n      helperWrapper\n    ] });\n  }, [\n    labelPlacement,\n    helperWrapper,\n    shouldLabelBeOutside,\n    labelContent,\n    innerWrapper,\n    errorMessage,\n    description,\n    getMainWrapperProps,\n    getInputWrapperProps,\n    getErrorMessageProps,\n    getDescriptionProps\n  ]);\n  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Component, { ...getBaseProps(), children: [\n    isOutsideLeft || isOutsideTop ? labelContent : null,\n    mainWrapper\n  ] });\n});\nNumberInput.displayName = \"HeroUI.NumberInput\";\nvar number_input_default = NumberInput;\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n  NumberInput,\n  useNumberInput\n});\n"]}