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ACAkF,QAAA,CACAlF,QAAA,wEACA,EACAmF,QAAA,CACAnF,QAAA,wEACA,EACAoF,OAAA,CACApF,QAAA,qEACA,CACA,EACArE,KAAA,CACA0J,GAAA,CACArF,QAAA,CACA,eACA,iDACA,wDACA,uDACA,CACAI,MAAA,aACAnG,KAAA,SACA,EACAqL,GAAA,CACAtF,QAAA,CACA,eACA,iDACA,wDACA,uDACA,CACAI,MAAA,cACAnG,KAAA,SACA,EACAsL,GAAA,CACAvF,QAAA,CACA,eACA,iDACA,wDACA,uDACA,CACAI,MAAA,aACAnG,KAAA,SACA,CACA,EACA4B,OAAA,CACA2J,KAAA,CACAxF,QAAA,qDACA,EACAqF,GAAA,CACArF,QAAA,CACA,iDACA,wDACA,uDACA,EAEAsF,GAAA,CACAtF,QAAA,CACA,iDACA,wDACA,uDACA,EAEAuF,GAAA,CACAvF,QAAA,CACA,iDACA,wDACA,uDACA,EAEAyF,KAAA,CACAzF,QAAA,qDACA,CACA,EACAlE,YAAA,CACA4J,KAAA,CACAtF,MAAA,CACA,cACA,eACA,iBACA,sBACA,kBACA,uBACA,aACA,eACA,wCACA,2CACA,CAEA,EACAxK,WAAA,CACA8P,KAAA,CACA/F,KAAA,sCACA,CACA,EACAtK,UAAA,CACAqQ,KAAA,CACA1F,QAAA,uBACAI,MAAA,aACA,CACA,EACArN,iBAAA,CACA2S,KAAA,CACA1F,QAAA,kBACA/F,KAAA,kBACAmG,MAAA,iBACA,EACAuF,MAAA,CACA3F,QAAA,CACA,2BACA,qCACA,uBACA,qCACA,qBACA,sBACA,gCACA,CACA/F,KAAA,mDACAmG,MAAA,iFACA,CACA,CACA,EACAwF,gBAAA,CACAhK,MAAA,UACAD,KAAA,KACA/F,WAAA,GACAkG,YAAA,EACA,CACA,GACA+J,EAAoB,GAAApB,EAAAC,EAAA,EAAE,CACtB1F,MAAA,CACAW,KAAA,+BACAS,MAAA,2CACAJ,QAAA,uEACA8F,YAAA,iCACAtP,aAAA,wBACA,EACAsO,SAAA,CACA7L,WAAA,CACAyM,KAAA,CACAtF,MAAA,oDACA,CACA,EACA/K,UAAA,CACAqQ,KAAA,CACAI,YAAA,aACA,CACA,EACA/S,iBAAA,CACA2S,KAAA,GACAC,MAAA,CACAG,YAAA,+DACA,CACA,CACA,EACAF,gBAAA,CACAvQ,UAAA,GACA4D,WAAA,EACA,CACA,mFCjNA,SAAAoG,EAAA0G,CAAA,CAAAC,EAAA,IACA,IAAAjQ,EAAc,GAAAiL,EAAAxE,MAAA,EAAMuJ,GAIpB,MAHE,GAAAE,EAAAC,CAAA,EAAmB,KACrBnQ,EAAAK,OAAA,CAAA2P,CACA,GACS,GAAA/E,EAAAzB,WAAA,EAAW,IAAA4G,KACpB,IAAA3L,EACA,aAAAA,CAAAA,EAAAzE,EAAAK,OAAA,SAAAoE,EAAA4L,IAAA,CAAArQ,KAAAoQ,EACA,EAAGH,EACH","sources":["webpack://_N_E/./node_modules/@heroui/checkbox/dist/chunk-LK575OWX.mjs","webpack://_N_E/./node_modules/@heroui/checkbox/dist/chunk-FFVF7OUL.mjs","webpack://_N_E/./node_modules/@heroui/checkbox/node_modules/@react-stately/toggle/dist/useToggleState.mjs","webpack://_N_E/./node_modules/@heroui/checkbox/node_modules/@react-aria/form/dist/useFormValidation.mjs","webpack://_N_E/./node_modules/@heroui/checkbox/node_modules/@react-aria/checkbox/dist/useCheckbox.mjs","webpack://_N_E/./node_modules/@heroui/checkbox/node_modules/@react-aria/checkbox/dist/useCheckboxGroupItem.mjs","webpack://_N_E/./node_modules/@heroui/checkbox/dist/chunk-B4HPXQQT.mjs","webpack://_N_E/./node_modules/@heroui/checkbox/dist/chunk-MZRCPRP2.mjs","webpack://_N_E/./node_modules/@heroui/checkbox/node_modules/@react-aria/checkbox/dist/utils.mjs","webpack://_N_E/./node_modules/@heroui/checkbox/node_modules/@react-stately/form/dist/useFormValidationState.mjs","webpack://_N_E/./node_modules/@heroui/form/dist/chunk-BSTJ7ZCN.mjs","webpack://_N_E/./node_modules/@heroui/form/dist/chunk-SLABUSGS.mjs","webpack://_N_E/./node_modules/@heroui/theme/dist/chunk-UERLDXVP.mjs","webpack://_N_E/./node_modules/@heroui/use-callback-ref/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/checkbox-group-context.ts\nimport { createContext } from \"@heroui/react-utils\";\nvar [CheckboxGroupProvider, useCheckboxGroupContext] = createContext({\n name: \"CheckboxGroupContext\",\n strict: false\n});\n\nexport {\n CheckboxGroupProvider,\n useCheckboxGroupContext\n};\n","\"use client\";\n\n// src/checkbox-icon.tsx\nimport { jsx } from \"react/jsx-runtime\";\nfunction CheckIcon(props) {\n const { isSelected, disableAnimation, ...otherProps } = props;\n return /* @__PURE__ */ jsx(\n \"svg\",\n {\n \"aria-hidden\": \"true\",\n fill: \"none\",\n role: \"presentation\",\n stroke: \"currentColor\",\n strokeDasharray: 22,\n strokeDashoffset: isSelected ? 44 : 66,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: 2,\n style: !disableAnimation && isSelected ? {\n transition: \"stroke-dashoffset 250ms linear 0.2s\"\n } : {},\n viewBox: \"0 0 17 18\",\n ...otherProps,\n children: /* @__PURE__ */ jsx(\"polyline\", { points: \"1 9 7 14 15 4\" })\n }\n );\n}\nfunction IndeterminateIcon(props) {\n const { isSelected, disableAnimation, ...otherProps } = props;\n return /* @__PURE__ */ jsx(\"svg\", { stroke: \"currentColor\", strokeWidth: 3, viewBox: \"0 0 24 24\", ...otherProps, children: /* @__PURE__ */ jsx(\"line\", { x1: \"21\", x2: \"3\", y1: \"12\", y2: \"12\" }) });\n}\nfunction CheckboxIcon(props) {\n const { isIndeterminate, ...otherProps } = props;\n const BaseIcon = isIndeterminate ? IndeterminateIcon : CheckIcon;\n return /* @__PURE__ */ jsx(BaseIcon, { ...otherProps });\n}\n\nexport {\n CheckboxIcon\n};\n","import {useControlledState as $d8rik$useControlledState} from \"@react-stately/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $3017fa7ffdddec74$export$8042c6c013fd5226(props = {}) {\n let { isReadOnly: isReadOnly } = props;\n // have to provide an empty function so useControlledState doesn't throw a fit\n // can't use useControlledState's prop calling because we need the event object from the change\n let [isSelected, setSelected] = (0, $d8rik$useControlledState)(props.isSelected, props.defaultSelected || false, props.onChange);\n function updateSelected(value) {\n if (!isReadOnly) setSelected(value);\n }\n function toggleState() {\n if (!isReadOnly) setSelected(!isSelected);\n }\n return {\n isSelected: isSelected,\n setSelected: updateSelected,\n toggle: toggleState\n };\n}\n\n\nexport {$3017fa7ffdddec74$export$8042c6c013fd5226 as useToggleState};\n//# sourceMappingURL=useToggleState.module.js.map\n","import {setInteractionModality as $9Gacy$setInteractionModality} from \"@react-aria/interactions\";\nimport {useEffect as $9Gacy$useEffect} from \"react\";\nimport {useLayoutEffect as $9Gacy$useLayoutEffect, useEffectEvent as $9Gacy$useEffectEvent} from \"@react-aria/utils\";\n\n/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {\n let { validationBehavior: validationBehavior, focus: focus } = props;\n // This is a useLayoutEffect so that it runs before the useEffect in useFormValidationState, which commits the validation change.\n (0, $9Gacy$useLayoutEffect)(()=>{\n if (validationBehavior === 'native' && (ref === null || ref === void 0 ? void 0 : ref.current) && !ref.current.disabled) {\n let errorMessage = state.realtimeValidation.isInvalid ? state.realtimeValidation.validationErrors.join(' ') || 'Invalid value.' : '';\n ref.current.setCustomValidity(errorMessage);\n // Prevent default tooltip for validation message.\n // https://bugzilla.mozilla.org/show_bug.cgi?id=605277\n if (!ref.current.hasAttribute('title')) ref.current.title = '';\n if (!state.realtimeValidation.isInvalid) state.updateValidation($e93e671b31057976$var$getNativeValidity(ref.current));\n }\n });\n let onReset = (0, $9Gacy$useEffectEvent)(()=>{\n state.resetValidation();\n });\n let onInvalid = (0, $9Gacy$useEffectEvent)((e)=>{\n var _ref_current;\n // Only commit validation if we are not already displaying one.\n // This avoids clearing server errors that the user didn't actually fix.\n if (!state.displayValidation.isInvalid) state.commitValidation();\n // Auto focus the first invalid input in a form, unless the error already had its default prevented.\n let form = ref === null || ref === void 0 ? void 0 : (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.form;\n if (!e.defaultPrevented && ref && form && $e93e671b31057976$var$getFirstInvalidInput(form) === ref.current) {\n var _ref_current1;\n if (focus) focus();\n else (_ref_current1 = ref.current) === null || _ref_current1 === void 0 ? void 0 : _ref_current1.focus();\n // Always show focus ring.\n (0, $9Gacy$setInteractionModality)('keyboard');\n }\n // Prevent default browser error UI from appearing.\n e.preventDefault();\n });\n let onChange = (0, $9Gacy$useEffectEvent)(()=>{\n state.commitValidation();\n });\n (0, $9Gacy$useEffect)(()=>{\n let input = ref === null || ref === void 0 ? void 0 : ref.current;\n if (!input) return;\n let form = input.form;\n input.addEventListener('invalid', onInvalid);\n input.addEventListener('change', onChange);\n form === null || form === void 0 ? void 0 : form.addEventListener('reset', onReset);\n return ()=>{\n input.removeEventListener('invalid', onInvalid);\n input.removeEventListener('change', onChange);\n form === null || form === void 0 ? void 0 : form.removeEventListener('reset', onReset);\n };\n }, [\n ref,\n onInvalid,\n onChange,\n onReset,\n validationBehavior\n ]);\n}\nfunction $e93e671b31057976$var$getValidity(input) {\n // The native ValidityState object is live, meaning each property is a getter that returns the current state.\n // We need to create a snapshot of the validity state at the time this function is called to avoid unpredictable React renders.\n let validity = input.validity;\n return {\n badInput: validity.badInput,\n customError: validity.customError,\n patternMismatch: validity.patternMismatch,\n rangeOverflow: validity.rangeOverflow,\n rangeUnderflow: validity.rangeUnderflow,\n stepMismatch: validity.stepMismatch,\n tooLong: validity.tooLong,\n tooShort: validity.tooShort,\n typeMismatch: validity.typeMismatch,\n valueMissing: validity.valueMissing,\n valid: validity.valid\n };\n}\nfunction $e93e671b31057976$var$getNativeValidity(input) {\n return {\n isInvalid: !input.validity.valid,\n validationDetails: $e93e671b31057976$var$getValidity(input),\n validationErrors: input.validationMessage ? [\n input.validationMessage\n ] : []\n };\n}\nfunction $e93e671b31057976$var$getFirstInvalidInput(form) {\n for(let i = 0; i < form.elements.length; i++){\n let element = form.elements[i];\n if (!element.validity.valid) return element;\n }\n return null;\n}\n\n\nexport {$e93e671b31057976$export$b8473d3665f3a75a as useFormValidation};\n//# sourceMappingURL=useFormValidation.module.js.map\n","import {useEffect as $jNP0e$useEffect} from \"react\";\nimport {mergeProps as $jNP0e$mergeProps} from \"@react-aria/utils\";\nimport {useFormValidationState as $jNP0e$useFormValidationState, privateValidationStateProp as $jNP0e$privateValidationStateProp} from \"@react-stately/form\";\nimport {useFormValidation as $jNP0e$useFormValidation} from \"@react-aria/form\";\nimport {usePress as $jNP0e$usePress} from \"@react-aria/interactions\";\nimport {useToggle as $jNP0e$useToggle} from \"@react-aria/toggle\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $406796ff087fe49b$export$e375f10ce42261c5(props, state, inputRef) {\n // Create validation state here because it doesn't make sense to add to general useToggleState.\n let validationState = (0, $jNP0e$useFormValidationState)({\n ...props,\n value: state.isSelected\n });\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = validationState.displayValidation;\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $jNP0e$useToggle)({\n ...props,\n isInvalid: isInvalid\n }, state, inputRef);\n (0, $jNP0e$useFormValidation)(props, validationState, inputRef);\n let { isIndeterminate: isIndeterminate, isRequired: isRequired, validationBehavior: validationBehavior = 'aria' } = props;\n (0, $jNP0e$useEffect)(()=>{\n // indeterminate is a property, but it can only be set via javascript\n // https://css-tricks.com/indeterminate-checkboxes/\n if (inputRef.current) inputRef.current.indeterminate = !!isIndeterminate;\n });\n // Reset validation state on label press for checkbox with a hidden input.\n let { pressProps: pressProps } = (0, $jNP0e$usePress)({\n isDisabled: isDisabled || isReadOnly,\n onPress () {\n // @ts-expect-error\n let { [(0, $jNP0e$privateValidationStateProp)]: groupValidationState } = props;\n let { commitValidation: commitValidation } = groupValidationState ? groupValidationState : validationState;\n commitValidation();\n }\n });\n return {\n labelProps: (0, $jNP0e$mergeProps)(labelProps, pressProps),\n inputProps: {\n ...inputProps,\n checked: isSelected,\n 'aria-required': isRequired && validationBehavior === 'aria' || undefined,\n required: isRequired && validationBehavior === 'native'\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$406796ff087fe49b$export$e375f10ce42261c5 as useCheckbox};\n//# sourceMappingURL=useCheckbox.module.js.map\n","import {useCheckbox as $406796ff087fe49b$export$e375f10ce42261c5} from \"./useCheckbox.mjs\";\nimport {checkboxGroupData as $1ae600c947479353$export$ec98120685d4f57d} from \"./utils.mjs\";\nimport {useFormValidationState as $6clEo$useFormValidationState, DEFAULT_VALIDATION_RESULT as $6clEo$DEFAULT_VALIDATION_RESULT, privateValidationStateProp as $6clEo$privateValidationStateProp} from \"@react-stately/form\";\nimport {useRef as $6clEo$useRef, useEffect as $6clEo$useEffect} from \"react\";\nimport {useToggleState as $6clEo$useToggleState} from \"@react-stately/toggle\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $fba3e38d5ca8983f$export$353b32fc6898d37d(props, state, inputRef) {\n const toggleState = (0, $6clEo$useToggleState)({\n isReadOnly: props.isReadOnly || state.isReadOnly,\n isSelected: state.isSelected(props.value),\n onChange (isSelected) {\n if (isSelected) state.addValue(props.value);\n else state.removeValue(props.value);\n if (props.onChange) props.onChange(isSelected);\n }\n });\n let { name: name, descriptionId: descriptionId, errorMessageId: errorMessageId, validationBehavior: validationBehavior } = (0, $1ae600c947479353$export$ec98120685d4f57d).get(state);\n var _props_validationBehavior;\n validationBehavior = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : validationBehavior;\n // Local validation for this checkbox.\n let { realtimeValidation: realtimeValidation } = (0, $6clEo$useFormValidationState)({\n ...props,\n value: toggleState.isSelected,\n // Server validation is handled at the group level.\n name: undefined,\n validationBehavior: 'aria'\n });\n // Update the checkbox group state when realtime validation changes.\n let nativeValidation = (0, $6clEo$useRef)((0, $6clEo$DEFAULT_VALIDATION_RESULT));\n let updateValidation = ()=>{\n state.setInvalid(props.value, realtimeValidation.isInvalid ? realtimeValidation : nativeValidation.current);\n };\n (0, $6clEo$useEffect)(updateValidation);\n // Combine group and checkbox level validation.\n let combinedRealtimeValidation = state.realtimeValidation.isInvalid ? state.realtimeValidation : realtimeValidation;\n let displayValidation = validationBehavior === 'native' ? state.displayValidation : combinedRealtimeValidation;\n var _props_isRequired;\n let res = (0, $406796ff087fe49b$export$e375f10ce42261c5)({\n ...props,\n isReadOnly: props.isReadOnly || state.isReadOnly,\n isDisabled: props.isDisabled || state.isDisabled,\n name: props.name || name,\n isRequired: (_props_isRequired = props.isRequired) !== null && _props_isRequired !== void 0 ? _props_isRequired : state.isRequired,\n validationBehavior: validationBehavior,\n [(0, $6clEo$privateValidationStateProp)]: {\n realtimeValidation: combinedRealtimeValidation,\n displayValidation: displayValidation,\n resetValidation: state.resetValidation,\n commitValidation: state.commitValidation,\n updateValidation (v) {\n nativeValidation.current = v;\n updateValidation();\n }\n }\n }, toggleState, inputRef);\n return {\n ...res,\n inputProps: {\n ...res.inputProps,\n 'aria-describedby': [\n props['aria-describedby'],\n state.isInvalid ? errorMessageId : null,\n descriptionId\n ].filter(Boolean).join(' ') || undefined\n }\n };\n}\n\n\nexport {$fba3e38d5ca8983f$export$353b32fc6898d37d as useCheckboxGroupItem};\n//# sourceMappingURL=useCheckboxGroupItem.module.js.map\n","\"use client\";\nimport {\n useCheckboxGroupContext\n} from \"./chunk-LK575OWX.mjs\";\n\n// src/use-checkbox.ts\nimport { useProviderContext } from \"@heroui/system\";\nimport { useCallback, useId } from \"react\";\nimport { useMemo, useRef } from \"react\";\nimport { useToggleState } from \"@react-stately/toggle\";\nimport { checkbox } from \"@heroui/theme\";\nimport { useCallbackRef } from \"@heroui/use-callback-ref\";\nimport { useHover } from \"@react-aria/interactions\";\nimport { useFocusRing } from \"@react-aria/focus\";\nimport { mergeProps, chain } from \"@react-aria/utils\";\nimport { __DEV__, warn, clsx, dataAttr, safeAriaLabel } from \"@heroui/shared-utils\";\nimport {\n useCheckbox as useReactAriaCheckbox,\n useCheckboxGroupItem as useReactAriaCheckboxGroupItem\n} from \"@react-aria/checkbox\";\nimport { useSafeLayoutEffect } from \"@heroui/use-safe-layout-effect\";\nimport { mergeRefs } from \"@heroui/react-utils\";\nimport { FormContext, useSlottedContext } from \"@heroui/form\";\nfunction useCheckbox(props = {}) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n const globalContext = useProviderContext();\n const groupContext = useCheckboxGroupContext();\n const { validationBehavior: formValidationBehavior } = useSlottedContext(FormContext) || {};\n const isInGroup = !!groupContext;\n const {\n as,\n ref,\n value = \"\",\n children,\n icon,\n name,\n isRequired,\n isReadOnly: isReadOnlyProp = false,\n autoFocus = false,\n isSelected: isSelectedProp,\n size = (_a = groupContext == null ? void 0 : groupContext.size) != null ? _a : \"md\",\n color = (_b = groupContext == null ? void 0 : groupContext.color) != null ? _b : \"primary\",\n radius = groupContext == null ? void 0 : groupContext.radius,\n lineThrough = (_c = groupContext == null ? void 0 : groupContext.lineThrough) != null ? _c : false,\n isDisabled: isDisabledProp = (_d = groupContext == null ? void 0 : groupContext.isDisabled) != null ? _d : false,\n disableAnimation = (_f = (_e = groupContext == null ? void 0 : groupContext.disableAnimation) != null ? _e : globalContext == null ? void 0 : globalContext.disableAnimation) != null ? _f : false,\n validationState,\n isInvalid: isInvalidProp = validationState ? validationState === \"invalid\" : (_g = groupContext == null ? void 0 : groupContext.isInvalid) != null ? _g : false,\n isIndeterminate = false,\n validationBehavior = isInGroup ? groupContext.validationBehavior : (_h = formValidationBehavior != null ? formValidationBehavior : globalContext == null ? void 0 : globalContext.validationBehavior) != null ? _h : \"native\",\n defaultSelected,\n classNames,\n className,\n onValueChange,\n validate,\n ...otherProps\n } = props;\n if (groupContext && __DEV__) {\n if (isSelectedProp) {\n warn(\n \"The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.\",\n \"Checkbox\"\n );\n }\n if (defaultSelected) {\n warn(\n \"The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.\",\n \"Checkbox\"\n );\n }\n }\n const Component = as || \"label\";\n const domRef = useRef(null);\n const inputRef = useRef(null);\n let onChange = props.onChange;\n if (isInGroup) {\n const dispatch = () => {\n groupContext.groupState.resetValidation();\n };\n onChange = chain(dispatch, onChange);\n }\n const labelId = useId();\n const ariaCheckboxProps = useMemo(\n () => ({\n name,\n value,\n children,\n autoFocus,\n defaultSelected,\n isIndeterminate,\n isRequired,\n isInvalid: isInvalidProp,\n isSelected: isSelectedProp,\n isDisabled: isDisabledProp,\n isReadOnly: isReadOnlyProp,\n \"aria-label\": safeAriaLabel(otherProps[\"aria-label\"], children),\n \"aria-labelledby\": otherProps[\"aria-labelledby\"] || labelId,\n onChange: onValueChange\n }),\n [\n name,\n value,\n children,\n autoFocus,\n defaultSelected,\n isIndeterminate,\n isRequired,\n isInvalidProp,\n isSelectedProp,\n isDisabledProp,\n isReadOnlyProp,\n otherProps[\"aria-label\"],\n otherProps[\"aria-labelledby\"],\n labelId,\n onValueChange\n ]\n );\n const toggleState = useToggleState(ariaCheckboxProps);\n const validationProps = {\n isInvalid: isInvalidProp,\n isRequired,\n validate,\n validationState,\n validationBehavior\n };\n const {\n inputProps,\n isSelected,\n isDisabled,\n isReadOnly,\n isPressed,\n isInvalid: isAriaInvalid\n } = isInGroup ? (\n // eslint-disable-next-line\n useReactAriaCheckboxGroupItem(\n { ...ariaCheckboxProps, ...validationProps },\n groupContext.groupState,\n inputRef\n )\n ) : (\n // eslint-disable-next-line\n useReactAriaCheckbox({ ...ariaCheckboxProps, ...validationProps }, toggleState, inputRef)\n );\n const isInteractionDisabled = isDisabled || isReadOnly;\n const isInvalid = validationState === \"invalid\" || isInvalidProp || isAriaInvalid;\n const pressed = isInteractionDisabled ? false : isPressed;\n const { hoverProps, isHovered } = useHover({\n isDisabled: inputProps.disabled\n });\n const { focusProps, isFocused, isFocusVisible } = useFocusRing({\n autoFocus: inputProps.autoFocus\n });\n const slots = useMemo(\n () => checkbox({\n color,\n size,\n radius,\n isInvalid,\n lineThrough,\n isDisabled,\n disableAnimation\n }),\n [color, size, radius, isInvalid, lineThrough, isDisabled, disableAnimation]\n );\n useSafeLayoutEffect(() => {\n if (!inputRef.current) return;\n const isInputRefChecked = !!inputRef.current.checked;\n toggleState.setSelected(isInputRefChecked);\n }, [inputRef.current]);\n const onChangeProp = useCallbackRef(onChange);\n const handleCheckboxChange = useCallback(\n (event) => {\n if (isReadOnly || isDisabled) {\n event.preventDefault();\n return;\n }\n onChangeProp == null ? void 0 : onChangeProp(event);\n },\n [isReadOnly, isDisabled, onChangeProp]\n );\n const baseStyles = clsx(classNames == null ? void 0 : classNames.base, className);\n const getBaseProps = useCallback(() => {\n return {\n ref: domRef,\n className: slots.base({ class: baseStyles }),\n \"data-disabled\": dataAttr(isDisabled),\n \"data-selected\": dataAttr(isSelected || isIndeterminate),\n \"data-invalid\": dataAttr(isInvalid),\n \"data-hover\": dataAttr(isHovered),\n \"data-focus\": dataAttr(isFocused),\n \"data-pressed\": dataAttr(pressed),\n \"data-readonly\": dataAttr(inputProps.readOnly),\n \"data-focus-visible\": dataAttr(isFocusVisible),\n \"data-indeterminate\": dataAttr(isIndeterminate),\n ...mergeProps(hoverProps, otherProps)\n };\n }, [\n slots,\n baseStyles,\n isDisabled,\n isSelected,\n isIndeterminate,\n isInvalid,\n isHovered,\n isFocused,\n pressed,\n inputProps.readOnly,\n isFocusVisible,\n hoverProps,\n otherProps\n ]);\n const getWrapperProps = useCallback(\n (props2 = {}) => {\n return {\n ...props2,\n \"aria-hidden\": true,\n className: clsx(slots.wrapper({ class: clsx(classNames == null ? void 0 : classNames.wrapper, props2 == null ? void 0 : props2.className) }))\n };\n },\n [slots, classNames == null ? void 0 : classNames.wrapper]\n );\n const getInputProps = useCallback(() => {\n return {\n ref: mergeRefs(inputRef, ref),\n ...mergeProps(inputProps, focusProps),\n className: slots.hiddenInput({ class: classNames == null ? void 0 : classNames.hiddenInput }),\n onChange: chain(inputProps.onChange, handleCheckboxChange)\n };\n }, [inputProps, focusProps, handleCheckboxChange, classNames == null ? void 0 : classNames.hiddenInput]);\n const getLabelProps = useCallback(\n () => ({\n id: labelId,\n className: slots.label({ class: classNames == null ? void 0 : classNames.label })\n }),\n [slots, classNames == null ? void 0 : classNames.label, isDisabled, isSelected, isInvalid]\n );\n const getIconProps = useCallback(\n () => ({\n isSelected,\n isIndeterminate,\n disableAnimation,\n className: slots.icon({ class: classNames == null ? void 0 : classNames.icon })\n }),\n [slots, classNames == null ? void 0 : classNames.icon, isSelected, isIndeterminate, disableAnimation]\n );\n return {\n Component,\n icon,\n children,\n isSelected,\n isDisabled,\n isInvalid,\n isFocused,\n isHovered,\n isFocusVisible,\n getBaseProps,\n getWrapperProps,\n getInputProps,\n getLabelProps,\n getIconProps\n };\n}\n\nexport {\n useCheckbox\n};\n","\"use client\";\nimport {\n CheckboxIcon\n} from \"./chunk-FFVF7OUL.mjs\";\nimport {\n useCheckbox\n} from \"./chunk-B4HPXQQT.mjs\";\n\n// src/checkbox.tsx\nimport { forwardRef } from \"@heroui/system\";\nimport { cloneElement } from \"react\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar Checkbox = forwardRef((props, ref) => {\n const {\n Component,\n children,\n icon = /* @__PURE__ */ jsx(CheckboxIcon, {}),\n getBaseProps,\n getWrapperProps,\n getInputProps,\n getIconProps,\n getLabelProps\n } = useCheckbox({ ...props, ref });\n const clonedIcon = typeof icon === \"function\" ? icon(getIconProps()) : cloneElement(icon, getIconProps());\n return /* @__PURE__ */ jsxs(Component, { ...getBaseProps(), children: [\n /* @__PURE__ */ jsx(\"input\", { ...getInputProps() }),\n /* @__PURE__ */ jsx(\"span\", { ...getWrapperProps(), children: clonedIcon }),\n children && /* @__PURE__ */ jsx(\"span\", { ...getLabelProps(), children })\n ] });\n});\nCheckbox.displayName = \"HeroUI.Checkbox\";\nvar checkbox_default = Checkbox;\n\nexport {\n checkbox_default\n};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $1ae600c947479353$export$ec98120685d4f57d = new WeakMap();\n\n\nexport {$1ae600c947479353$export$ec98120685d4f57d as checkboxGroupData};\n//# sourceMappingURL=utils.module.js.map\n","import {createContext as $69F46$createContext, useMemo as $69F46$useMemo, useContext as $69F46$useContext, useState as $69F46$useState, useRef as $69F46$useRef, useEffect as $69F46$useEffect} from \"react\";\n\n/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nconst $e5be200c675c3b3a$export$aca958c65c314e6c = {\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valueMissing: false,\n valid: true\n};\nconst $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE = {\n ...$e5be200c675c3b3a$export$aca958c65c314e6c,\n customError: true,\n valid: false\n};\nconst $e5be200c675c3b3a$export$dad6ae84456c676a = {\n isInvalid: false,\n validationDetails: $e5be200c675c3b3a$export$aca958c65c314e6c,\n validationErrors: []\n};\nconst $e5be200c675c3b3a$export$571b5131b7e65c11 = (0, $69F46$createContext)({});\nconst $e5be200c675c3b3a$export$a763b9476acd3eb = '__formValidationState' + Date.now();\nfunction $e5be200c675c3b3a$export$fc1a364ae1f3ff10(props) {\n // Private prop for parent components to pass state to children.\n if (props[$e5be200c675c3b3a$export$a763b9476acd3eb]) {\n let { realtimeValidation: realtimeValidation, displayValidation: displayValidation, updateValidation: updateValidation, resetValidation: resetValidation, commitValidation: commitValidation } = props[$e5be200c675c3b3a$export$a763b9476acd3eb];\n return {\n realtimeValidation: realtimeValidation,\n displayValidation: displayValidation,\n updateValidation: updateValidation,\n resetValidation: resetValidation,\n commitValidation: commitValidation\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return $e5be200c675c3b3a$var$useFormValidationStateImpl(props);\n}\nfunction $e5be200c675c3b3a$var$useFormValidationStateImpl(props) {\n let { isInvalid: isInvalid, validationState: validationState, name: name, value: value, builtinValidation: builtinValidation, validate: validate, validationBehavior: validationBehavior = 'aria' } = props;\n // backward compatibility.\n if (validationState) isInvalid || (isInvalid = validationState === 'invalid');\n // If the isInvalid prop is controlled, update validation result in realtime.\n let controlledError = isInvalid !== undefined ? {\n isInvalid: isInvalid,\n validationErrors: [],\n validationDetails: $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE\n } : null;\n // Perform custom client side validation.\n let clientError = (0, $69F46$useMemo)(()=>{\n if (!validate || value == null) return null;\n let validateErrors = $e5be200c675c3b3a$var$runValidate(validate, value);\n return $e5be200c675c3b3a$var$getValidationResult(validateErrors);\n }, [\n validate,\n value\n ]);\n if (builtinValidation === null || builtinValidation === void 0 ? void 0 : builtinValidation.validationDetails.valid) builtinValidation = undefined;\n // Get relevant server errors from the form.\n let serverErrors = (0, $69F46$useContext)($e5be200c675c3b3a$export$571b5131b7e65c11);\n let serverErrorMessages = (0, $69F46$useMemo)(()=>{\n if (name) return Array.isArray(name) ? name.flatMap((name)=>$e5be200c675c3b3a$var$asArray(serverErrors[name])) : $e5be200c675c3b3a$var$asArray(serverErrors[name]);\n return [];\n }, [\n serverErrors,\n name\n ]);\n // Show server errors when the form gets a new value, and clear when the user changes the value.\n let [lastServerErrors, setLastServerErrors] = (0, $69F46$useState)(serverErrors);\n let [isServerErrorCleared, setServerErrorCleared] = (0, $69F46$useState)(false);\n if (serverErrors !== lastServerErrors) {\n setLastServerErrors(serverErrors);\n setServerErrorCleared(false);\n }\n let serverError = (0, $69F46$useMemo)(()=>$e5be200c675c3b3a$var$getValidationResult(isServerErrorCleared ? [] : serverErrorMessages), [\n isServerErrorCleared,\n serverErrorMessages\n ]);\n // Track the next validation state in a ref until commitValidation is called.\n let nextValidation = (0, $69F46$useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);\n let [currentValidity, setCurrentValidity] = (0, $69F46$useState)($e5be200c675c3b3a$export$dad6ae84456c676a);\n let lastError = (0, $69F46$useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);\n let commitValidation = ()=>{\n if (!commitQueued) return;\n setCommitQueued(false);\n let error = clientError || builtinValidation || nextValidation.current;\n if (!$e5be200c675c3b3a$var$isEqualValidation(error, lastError.current)) {\n lastError.current = error;\n setCurrentValidity(error);\n }\n };\n let [commitQueued, setCommitQueued] = (0, $69F46$useState)(false);\n (0, $69F46$useEffect)(commitValidation);\n // realtimeValidation is used to update the native input element's state based on custom validation logic.\n // displayValidation is the currently displayed validation state that the user sees (e.g. on input change/form submit).\n // With validationBehavior=\"aria\", all errors are displayed in realtime rather than on submit.\n let realtimeValidation = controlledError || serverError || clientError || builtinValidation || $e5be200c675c3b3a$export$dad6ae84456c676a;\n let displayValidation = validationBehavior === 'native' ? controlledError || serverError || currentValidity : controlledError || serverError || clientError || builtinValidation || currentValidity;\n return {\n realtimeValidation: realtimeValidation,\n displayValidation: displayValidation,\n updateValidation (value) {\n // If validationBehavior is 'aria', update in realtime. Otherwise, store in a ref until commit.\n if (validationBehavior === 'aria' && !$e5be200c675c3b3a$var$isEqualValidation(currentValidity, value)) setCurrentValidity(value);\n else nextValidation.current = value;\n },\n resetValidation () {\n // Update the currently displayed validation state to valid on form reset,\n // even if the native validity says it isn't. It'll show again on the next form submit.\n let error = $e5be200c675c3b3a$export$dad6ae84456c676a;\n if (!$e5be200c675c3b3a$var$isEqualValidation(error, lastError.current)) {\n lastError.current = error;\n setCurrentValidity(error);\n }\n // Do not commit validation after the next render. This avoids a condition where\n // useSelect calls commitValidation inside an onReset handler.\n if (validationBehavior === 'native') setCommitQueued(false);\n setServerErrorCleared(true);\n },\n commitValidation () {\n // Commit validation state so the user sees it on blur/change/submit. Also clear any server errors.\n // Wait until after the next render to commit so that the latest value has been validated.\n if (validationBehavior === 'native') setCommitQueued(true);\n setServerErrorCleared(true);\n }\n };\n}\nfunction $e5be200c675c3b3a$var$asArray(v) {\n if (!v) return [];\n return Array.isArray(v) ? v : [\n v\n ];\n}\nfunction $e5be200c675c3b3a$var$runValidate(validate, value) {\n if (typeof validate === 'function') {\n let e = validate(value);\n if (e && typeof e !== 'boolean') return $e5be200c675c3b3a$var$asArray(e);\n }\n return [];\n}\nfunction $e5be200c675c3b3a$var$getValidationResult(errors) {\n return errors.length ? {\n isInvalid: true,\n validationErrors: errors,\n validationDetails: $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE\n } : null;\n}\nfunction $e5be200c675c3b3a$var$isEqualValidation(a, b) {\n if (a === b) return true;\n return !!a && !!b && a.isInvalid === b.isInvalid && a.validationErrors.length === b.validationErrors.length && a.validationErrors.every((a, i)=>a === b.validationErrors[i]) && Object.entries(a.validationDetails).every(([k, v])=>b.validationDetails[k] === v);\n}\nfunction $e5be200c675c3b3a$export$75ee7c75d68f5b0e(...results) {\n let errors = new Set();\n let isInvalid = false;\n let validationDetails = {\n ...$e5be200c675c3b3a$export$aca958c65c314e6c\n };\n for (let v of results){\n var _validationDetails, _key;\n for (let e of v.validationErrors)errors.add(e);\n // Only these properties apply for checkboxes.\n isInvalid || (isInvalid = v.isInvalid);\n for(let key in validationDetails)(_validationDetails = validationDetails)[_key = key] || (_validationDetails[_key] = v.validationDetails[key]);\n }\n validationDetails.valid = !isInvalid;\n return {\n isInvalid: isInvalid,\n validationErrors: [\n ...errors\n ],\n validationDetails: validationDetails\n };\n}\n\n\nexport {$e5be200c675c3b3a$export$aca958c65c314e6c as VALID_VALIDITY_STATE, $e5be200c675c3b3a$export$dad6ae84456c676a as DEFAULT_VALIDATION_RESULT, $e5be200c675c3b3a$export$571b5131b7e65c11 as FormValidationContext, $e5be200c675c3b3a$export$a763b9476acd3eb as privateValidationStateProp, $e5be200c675c3b3a$export$fc1a364ae1f3ff10 as useFormValidationState, $e5be200c675c3b3a$export$75ee7c75d68f5b0e as mergeValidation};\n//# sourceMappingURL=useFormValidationState.module.js.map\n","\"use client\";\n\n// src/utils.ts\nimport { useContext, useMemo } from \"react\";\nimport { mergeProps, mergeRefs, useObjectRef } from \"@react-aria/utils\";\nvar DEFAULT_SLOT = Symbol(\"default\");\nfunction useSlottedContext(context, slot) {\n let ctx = useContext(context);\n if (slot === null) {\n return null;\n }\n if (ctx && typeof ctx === \"object\" && \"slots\" in ctx && ctx.slots) {\n let availableSlots = new Intl.ListFormat().format(Object.keys(ctx.slots).map((p) => `\"${p}\"`));\n if (!slot && !ctx.slots[DEFAULT_SLOT]) {\n throw new Error(`A slot prop is required. Valid slot names are ${availableSlots}.`);\n }\n let slotKey = slot || DEFAULT_SLOT;\n if (!ctx.slots[slotKey]) {\n throw new Error(`Invalid slot \"${slot}\". Valid slot names are ${availableSlots}.`);\n }\n return ctx.slots[slotKey];\n }\n return ctx;\n}\nfunction useContextProps(props, ref, context) {\n let ctx = useSlottedContext(context, props.slot) || {};\n let { ref: contextRef, ...contextProps } = ctx;\n let mergedRef = useObjectRef(useMemo(() => mergeRefs(ref, contextRef), [ref, contextRef]));\n let mergedProps = mergeProps(contextProps, props);\n if (\"style\" in contextProps && contextProps.style && \"style\" in props && props.style) {\n if (typeof contextProps.style === \"function\" || typeof props.style === \"function\") {\n mergedProps.style = (renderProps) => {\n let contextStyle = typeof contextProps.style === \"function\" ? contextProps.style(renderProps) : contextProps.style;\n let defaultStyle = { ...renderProps.defaultStyle, ...contextStyle };\n let style = typeof props.style === \"function\" ? props.style({ ...renderProps, defaultStyle }) : props.style;\n return { ...defaultStyle, ...style };\n };\n } else {\n mergedProps.style = { ...contextProps.style, ...props.style };\n }\n }\n return [mergedProps, mergedRef];\n}\n\nexport {\n DEFAULT_SLOT,\n useSlottedContext,\n useContextProps\n};\n","\"use client\";\nimport {\n useContextProps\n} from \"./chunk-BSTJ7ZCN.mjs\";\n\n// src/base-form.tsx\nimport { FormValidationContext } from \"@react-stately/form\";\nimport { createContext, forwardRef, useMemo } from \"react\";\nimport { form } from \"@heroui/theme\";\nimport { jsx } from \"react/jsx-runtime\";\nvar FormContext = createContext(null);\nvar Form = forwardRef(function Form2(props, ref) {\n [props, ref] = useContextProps(props, ref, FormContext);\n let { validationErrors, validationBehavior = \"native\", children, className, ...domProps } = props;\n const styles = useMemo(() => form({ className }), [className]);\n return /* @__PURE__ */ jsx(\"form\", { noValidate: validationBehavior !== \"native\", ...domProps, ref, className: styles, children: /* @__PURE__ */ jsx(FormContext.Provider, { value: { ...props, validationBehavior }, children: /* @__PURE__ */ jsx(FormValidationContext.Provider, { value: validationErrors != null ? validationErrors : {}, children }) }) });\n});\n\nexport {\n FormContext,\n Form\n};\n","import {\n tv\n} from \"./chunk-UWE6H66T.mjs\";\nimport {\n groupDataFocusVisibleClasses,\n hiddenInputClasses\n} from \"./chunk-CNTMWM4F.mjs\";\n\n// src/components/checkbox.ts\nvar checkbox = tv({\n slots: {\n base: \"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none\",\n wrapper: [\n \"relative\",\n \"inline-flex\",\n \"items-center\",\n \"justify-center\",\n \"flex-shrink-0\",\n \"overflow-hidden\",\n // before\n \"before:content-['']\",\n \"before:absolute\",\n \"before:inset-0\",\n \"before:border-solid\",\n \"before:border-2\",\n \"before:box-border\",\n \"before:border-default\",\n // after\n \"after:content-['']\",\n \"after:absolute\",\n \"after:inset-0\",\n \"after:scale-50\",\n \"after:opacity-0\",\n \"after:origin-center\",\n \"group-data-[selected=true]:after:scale-100\",\n \"group-data-[selected=true]:after:opacity-100\",\n // hover\n \"group-data-[hover=true]:before:bg-default-100\",\n // focus ring\n ...groupDataFocusVisibleClasses\n ],\n hiddenInput: hiddenInputClasses,\n icon: \"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none\",\n label: \"relative text-foreground select-none\"\n },\n variants: {\n color: {\n default: {\n wrapper: \"after:bg-default after:text-default-foreground text-default-foreground\"\n },\n primary: {\n wrapper: \"after:bg-primary after:text-primary-foreground text-primary-foreground\"\n },\n secondary: {\n wrapper: \"after:bg-secondary after:text-secondary-foreground text-secondary-foreground\"\n },\n success: {\n wrapper: \"after:bg-success after:text-success-foreground text-success-foreground\"\n },\n warning: {\n wrapper: \"after:bg-warning after:text-warning-foreground text-warning-foreground\"\n },\n danger: {\n wrapper: \"after:bg-danger after:text-danger-foreground text-danger-foreground\"\n }\n },\n size: {\n sm: {\n wrapper: [\n \"w-4 h-4 me-2\",\n \"rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n \"before:rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n \"after:rounded-[calc(theme(borderRadius.medium)*0.5)]\"\n ],\n label: \"text-small\",\n icon: \"w-3 h-2\"\n },\n md: {\n wrapper: [\n \"w-5 h-5 me-2\",\n \"rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n \"before:rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n \"after:rounded-[calc(theme(borderRadius.medium)*0.6)]\"\n ],\n label: \"text-medium\",\n icon: \"w-4 h-3\"\n },\n lg: {\n wrapper: [\n \"w-6 h-6 me-2\",\n \"rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n \"before:rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n \"after:rounded-[calc(theme(borderRadius.medium)*0.7)]\"\n ],\n label: \"text-large\",\n icon: \"w-5 h-4\"\n }\n },\n radius: {\n none: {\n wrapper: \"rounded-none before:rounded-none after:rounded-none\"\n },\n sm: {\n wrapper: [\n \"rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n \"before:rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n \"after:rounded-[calc(theme(borderRadius.medium)*0.5)]\"\n ]\n },\n md: {\n wrapper: [\n \"rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n \"before:rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n \"after:rounded-[calc(theme(borderRadius.medium)*0.6)]\"\n ]\n },\n lg: {\n wrapper: [\n \"rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n \"before:rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n \"after:rounded-[calc(theme(borderRadius.medium)*0.7)]\"\n ]\n },\n full: {\n wrapper: \"rounded-full before:rounded-full after:rounded-full\"\n }\n },\n lineThrough: {\n true: {\n label: [\n \"inline-flex\",\n \"items-center\",\n \"justify-center\",\n \"before:content-['']\",\n \"before:absolute\",\n \"before:bg-foreground\",\n \"before:w-0\",\n \"before:h-0.5\",\n \"group-data-[selected=true]:opacity-60\",\n \"group-data-[selected=true]:before:w-full\"\n ]\n }\n },\n isDisabled: {\n true: {\n base: \"opacity-disabled pointer-events-none\"\n }\n },\n isInvalid: {\n true: {\n wrapper: \"before:border-danger\",\n label: \"text-danger\"\n }\n },\n disableAnimation: {\n true: {\n wrapper: \"transition-none\",\n icon: \"transition-none\",\n label: \"transition-none\"\n },\n false: {\n wrapper: [\n \"before:transition-colors\",\n \"group-data-[pressed=true]:scale-95\",\n \"transition-transform\",\n \"after:transition-transform-opacity\",\n \"after:!ease-linear\",\n \"after:!duration-200\",\n \"motion-reduce:transition-none\"\n ],\n icon: \"transition-opacity motion-reduce:transition-none\",\n label: \"transition-colors-opacity before:transition-width motion-reduce:transition-none\"\n }\n }\n },\n defaultVariants: {\n color: \"primary\",\n size: \"md\",\n isDisabled: false,\n lineThrough: false\n }\n});\nvar checkboxGroup = tv({\n slots: {\n base: \"relative flex flex-col gap-2\",\n label: \"relative text-medium text-foreground-500\",\n wrapper: \"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row\",\n description: \"text-small text-foreground-400\",\n errorMessage: \"text-small text-danger\"\n },\n variants: {\n isRequired: {\n true: {\n label: \"after:content-['*'] after:text-danger after:ml-0.5\"\n }\n },\n isInvalid: {\n true: {\n description: \"text-danger\"\n }\n },\n disableAnimation: {\n true: {},\n false: {\n description: \"transition-colors !duration-150 motion-reduce:transition-none\"\n }\n }\n },\n defaultVariants: {\n isInvalid: false,\n isRequired: false\n }\n});\n\nexport {\n checkbox,\n checkboxGroup\n};\n","// src/index.ts\nimport { useCallback, useRef } from \"react\";\nimport { useSafeLayoutEffect } from \"@heroui/use-safe-layout-effect\";\nfunction useCallbackRef(fn, deps = []) {\n const ref = useRef(fn);\n useSafeLayoutEffect(() => {\n ref.current = fn;\n });\n return useCallback((...args) => {\n var _a;\n return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);\n }, deps);\n}\nexport {\n useCallbackRef\n};\n"],"names":["CheckboxGroupProvider","useCheckboxGroupContext","createContext","name","strict","CheckIcon","props","isSelected","disableAnimation","otherProps","jsx","fill","role","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeWidth","style","transition","viewBox","children","points","IndeterminateIcon","x1","x2","y1","y2","CheckboxIcon","isIndeterminate","$3017fa7ffdddec74$export$8042c6c013fd5226","isReadOnly","setSelected","useControlledState","z","defaultSelected","onChange","value","toggle","$406796ff087fe49b$export$e375f10ce42261c5","state","inputRef","validationState","useFormValidationState","Q3","isInvalid","validationErrors","validationDetails","displayValidation","labelProps","inputProps","isPressed","isDisabled","useToggle","O","ref","validationBehavior","focus","useLayoutEffect","b","current","disabled","input","validity","errorMessage","realtimeValidation","join","setCustomValidity","hasAttribute","title","updateValidation","valid","badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing","validationMessage","onReset","useEffectEvent","i","resetValidation","onInvalid","_ref_current","_ref_current1","commitValidation","form","e","defaultPrevented","$e93e671b31057976$var$getFirstInvalidInput","elements","length","element","useFocusVisible","_w","preventDefault","react","useEffect","addEventListener","removeEventListener","isRequired","indeterminate","pressProps","usePress","r","onPress","tL","groupValidationState","mergeProps","d","checked","undefined","required","Checkbox","forwardRef","Component","icon","getBaseProps","getWrapperProps","getInputProps","getIconProps","getLabelProps","useCheckbox","_a","_b","_c","_d","_e","_f","_g","_h","globalContext","useProviderContext","groupContext","formValidationBehavior","useSlottedContext","FormContext","isInGroup","as","isReadOnlyProp","autoFocus","isSelectedProp","size","color","radius","lineThrough","isDisabledProp","isInvalidProp","classNames","className","onValueChange","validate","__DEV__","warn","domRef","useRef","chain","groupState","labelId","useId","ariaCheckboxProps","useMemo","safeAriaLabel","toggleState","useToggleState","validationProps","isAriaInvalid","useReactAriaCheckboxGroupItem","_props_validationBehavior","_props_isRequired","addValue","removeValue","descriptionId","errorMessageId","utils","k","get","nativeValidation","PS","setInvalid","combinedRealtimeValidation","res","v","filter","Boolean","useReactAriaCheckbox","pressed","isInteractionDisabled","hoverProps","isHovered","useHover","focusProps","isFocused","isFocusVisible","useFocusRing","slots","checkbox","useSafeLayoutEffect","isInputRefChecked","onChangeProp","useCallbackRef","handleCheckboxChange","useCallback","event","baseStyles","clsx","base","class","dataAttr","readOnly","props2","wrapper","mergeRefs","hiddenInput","id","label","clonedIcon","cloneElement","jsxs","displayName","checkbox_default","$1ae600c947479353$export$ec98120685d4f57d","WeakMap","$e5be200c675c3b3a$export$aca958c65c314e6c","$e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE","$e5be200c675c3b3a$export$dad6ae84456c676a","$e5be200c675c3b3a$export$571b5131b7e65c11","react__WEBPACK_IMPORTED_MODULE_0__","$e5be200c675c3b3a$export$a763b9476acd3eb","Date","now","$e5be200c675c3b3a$export$fc1a364ae1f3ff10","$e5be200c675c3b3a$var$useFormValidationStateImpl","builtinValidation","controlledError","clientError","$e5be200c675c3b3a$var$getValidationResult","$e5be200c675c3b3a$var$runValidate","$e5be200c675c3b3a$var$asArray","serverErrors","useContext","serverErrorMessages","Array","isArray","flatMap","lastServerErrors","setLastServerErrors","useState","isServerErrorCleared","setServerErrorCleared","serverError","nextValidation","currentValidity","setCurrentValidity","lastError","commitQueued","setCommitQueued","error","$e5be200c675c3b3a$var$isEqualValidation","errors","a","every","Object","entries","$e5be200c675c3b3a$export$75ee7c75d68f5b0e","results","Set","add","key","_validationDetails","DEFAULT_SLOT","Symbol","context","slot","ctx","availableSlots","Intl","ListFormat","format","keys","map","concat","p","slotKey","_chunk_UWE6H66T_mjs__WEBPACK_IMPORTED_MODULE_0__","tv","_chunk_CNTMWM4F_mjs__WEBPACK_IMPORTED_MODULE_1__","ID","PZ","variants","default","primary","secondary","success","warning","danger","sm","md","lg","none","full","true","false","defaultVariants","checkboxGroup","description","fn","deps","_heroui_use_safe_layout_effect__WEBPACK_IMPORTED_MODULE_1__","G","args","call"],"sourceRoot":""}