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EAA4B,CACrC,CACAN,YAAiBK,EAAAE,EAAkB,CACnC7J,KAAA,oFACAwJ,MAAA,sCACA,EACAM,SAAA,CACAxF,MAAA,CACAyF,QAAA,CACAX,QAAA,wEACA,EACAY,QAAA,CACAZ,QAAA,wEACA,EACAa,UAAA,CACAb,QAAA,8EACA,EACAc,QAAA,CACAd,QAAA,wEACA,EACAe,QAAA,CACAf,QAAA,wEACA,EACAgB,OAAA,CACAhB,QAAA,qEACA,CACA,EACA/E,KAAA,CACAgG,GAAA,CACAjB,QAAA,CACA,eACA,iDACA,wDACA,uDACA,CACAI,MAAA,aACAxJ,KAAA,SACA,EACAsK,GAAA,CACAlB,QAAA,CACA,eACA,iDACA,wDACA,uDACA,CACAI,MAAA,cACAxJ,KAAA,SACA,EACAuK,GAAA,CACAnB,QAAA,CACA,eACA,iDACA,wDACA,uDACA,CACAI,MAAA,aACAxJ,KAAA,SACA,CACA,EACAuE,OAAA,CACAiG,KAAA,CACApB,QAAA,qDACA,EACAiB,GAAA,CACAjB,QAAA,CACA,iDACA,wDACA,uDACA,EAEAkB,GAAA,CACAlB,QAAA,CACA,iDACA,wDACA,uDACA,EAEAmB,GAAA,CACAnB,QAAA,CACA,iDACA,wDACA,uDACA,EAEAqB,KAAA,CACArB,QAAA,qDACA,CACA,EACA5E,YAAA,CACAkG,KAAA,CACAlB,MAAA,CACA,cACA,eACA,iBACA,sBACA,kBACA,uBACA,aACA,eACA,wCACA,2CACA,CAEA,EACA9H,WAAA,CACAgJ,KAAA,CACA3B,KAAA,sCACA,CACA,EACA5H,UAAA,CACAuJ,KAAA,CACAtB,QAAA,uBACAI,MAAA,aACA,CACA,EACAxL,iBAAA,CACA0M,KAAA,CACAtB,QAAA,kBACApJ,KAAA,kBACAwJ,MAAA,iBACA,EACAmB,MAAA,CACAvB,QAAA,CACA,2BACA,qCACA,uBACA,qCACA,qBACA,sBACA,gCACA,CACApJ,KAAA,mDACAwJ,MAAA,iFACA,CACA,CACA,EACAoB,gBAAA,C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AA2G,EAAApH,EACA,EAOA6K,OANA,WACApK,GAAA2G,EAAA,CAAAvK,EACA,CAKA,CACA","sources":["webpack://_N_E/./node_modules/@nextui-org/checkbox/dist/chunk-5E6Z6LLK.mjs","webpack://_N_E/./node_modules/@nextui-org/checkbox/dist/chunk-ACAJT7GC.mjs","webpack://_N_E/./node_modules/@nextui-org/checkbox/dist/chunk-CKQ4RPMV.mjs","webpack://_N_E/./node_modules/@react-aria/checkbox/dist/useCheckbox.mjs","webpack://_N_E/./node_modules/@react-aria/checkbox/dist/useCheckboxGroupItem.mjs","webpack://_N_E/./node_modules/@nextui-org/checkbox/dist/chunk-STC4KFAA.mjs","webpack://_N_E/./node_modules/@nextui-org/theme/dist/chunk-2CFQPGZ4.mjs","webpack://_N_E/./node_modules/@nextui-org/use-callback-ref/dist/index.mjs","webpack://_N_E/./node_modules/@react-aria/checkbox/dist/utils.mjs","webpack://_N_E/./node_modules/@react-aria/toggle/dist/useToggle.mjs","webpack://_N_E/./node_modules/@react-stately/toggle/dist/useToggleState.mjs"],"sourcesContent":["\"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(\"svg\", { \"aria-hidden\": \"true\", role: \"presentation\", viewBox: \"0 0 17 18\", ...otherProps, children: /* @__PURE__ */ jsx(\n \"polyline\",\n {\n fill: \"none\",\n points: \"1 9 7 14 15 4\",\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 }\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","\"use client\";\n\n// src/checkbox-group-context.ts\nimport { createContext } from \"@nextui-org/react-utils\";\nvar [CheckboxGroupProvider, useCheckboxGroupContext] = createContext({\n name: \"CheckboxGroupContext\",\n strict: false\n});\n\nexport {\n CheckboxGroupProvider,\n useCheckboxGroupContext\n};\n","\"use client\";\nimport {\n CheckboxIcon\n} from \"./chunk-5E6Z6LLK.mjs\";\nimport {\n useCheckbox\n} from \"./chunk-STC4KFAA.mjs\";\n\n// src/checkbox.tsx\nimport { forwardRef } from \"@nextui-org/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 = \"NextUI.Checkbox\";\nvar checkbox_default = Checkbox;\n\nexport {\n checkbox_default\n};\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-ACAJT7GC.mjs\";\n\n// src/use-checkbox.ts\nimport { useProviderContext } from \"@nextui-org/system\";\nimport { useCallback, useId } from \"react\";\nimport { useMemo, useRef } from \"react\";\nimport { useToggleState } from \"@react-stately/toggle\";\nimport { checkbox } from \"@nextui-org/theme\";\nimport { useCallbackRef } from \"@nextui-org/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 \"@nextui-org/shared-utils\";\nimport {\n useCheckbox as useReactAriaCheckbox,\n useCheckboxGroupItem as useReactAriaCheckboxGroupItem\n} from \"@react-aria/checkbox\";\nimport { useSafeLayoutEffect } from \"@nextui-org/use-safe-layout-effect\";\nimport { mergeRefs } from \"@nextui-org/react-utils\";\nimport { FormContext, useSlottedContext } from \"@nextui-org/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 ? useReactAriaCheckboxGroupItem(\n { ...ariaCheckboxProps, ...validationProps },\n groupContext.groupState,\n inputRef\n ) : useReactAriaCheckbox({ ...ariaCheckboxProps, ...validationProps }, toggleState, inputRef);\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)\n 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","import {\n tv\n} from \"./chunk-UWE6H66T.mjs\";\nimport {\n groupDataFocusVisibleClasses,\n hiddenInputClasses\n} from \"./chunk-GH5E4FQB.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: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: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 \"group-data-[hover=true]:before:bg-default-100\",\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 \"@nextui-org/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","/*\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 {mergeProps as $bvdLj$mergeProps, filterDOMProps as $bvdLj$filterDOMProps, useFormReset as $bvdLj$useFormReset} from \"@react-aria/utils\";\nimport {useFocusable as $bvdLj$useFocusable} from \"@react-aria/focus\";\nimport {usePress as $bvdLj$usePress} from \"@react-aria/interactions\";\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\nfunction $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {\n let { isDisabled: isDisabled = false, isReadOnly: isReadOnly = false, value: value, name: name, children: children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, validationState: validationState = 'valid', isInvalid: isInvalid } = props;\n let onChange = (e)=>{\n // since we spread props on label, onChange will end up there as well as in here.\n // so we have to stop propagation at the lowest level that we care about\n e.stopPropagation();\n state.setSelected(e.target.checked);\n };\n let hasChildren = children != null;\n let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;\n if (!hasChildren && !hasAriaLabel) console.warn('If you do not provide children, you must specify an aria-label for accessibility');\n // This handles focusing the input on pointer down, which Safari does not do by default.\n let { pressProps: pressProps, isPressed: isPressed } = (0, $bvdLj$usePress)({\n isDisabled: isDisabled\n });\n // iOS does not toggle checkboxes if you drag off and back onto the label, so handle it ourselves.\n let { pressProps: labelProps, isPressed: isLabelPressed } = (0, $bvdLj$usePress)({\n isDisabled: isDisabled || isReadOnly,\n onPress () {\n state.toggle();\n }\n });\n let { focusableProps: focusableProps } = (0, $bvdLj$useFocusable)(props, ref);\n let interactions = (0, $bvdLj$mergeProps)(pressProps, focusableProps);\n let domProps = (0, $bvdLj$filterDOMProps)(props, {\n labelable: true\n });\n (0, $bvdLj$useFormReset)(ref, state.isSelected, state.setSelected);\n return {\n labelProps: (0, $bvdLj$mergeProps)(labelProps, {\n onClick: (e)=>e.preventDefault()\n }),\n inputProps: (0, $bvdLj$mergeProps)(domProps, {\n 'aria-invalid': isInvalid || validationState === 'invalid' || undefined,\n 'aria-errormessage': props['aria-errormessage'],\n 'aria-controls': props['aria-controls'],\n 'aria-readonly': isReadOnly || undefined,\n onChange: onChange,\n disabled: isDisabled,\n ...value == null ? {} : {\n value: value\n },\n name: name,\n type: 'checkbox',\n ...interactions\n }),\n isSelected: state.isSelected,\n isPressed: isPressed || isLabelPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid || validationState === 'invalid'\n };\n}\n\n\nexport {$d2c8e2b0480f3f34$export$cbe85ee05b554577 as useToggle};\n//# sourceMappingURL=useToggle.module.js.map\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"],"names":["CheckIcon","props","isSelected","disableAnimation","otherProps","jsx","role","viewBox","children","fill","points","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeWidth","style","transition","IndeterminateIcon","x1","x2","y1","y2","CheckboxIcon","isIndeterminate","CheckboxGroupProvider","useCheckboxGroupContext","createContext","name","strict","Checkbox","forwardRef","ref","Component","icon","getBaseProps","getWrapperProps","getInputProps","getIconProps","getLabelProps","useCheckbox","clonedIcon","cloneElement","jsxs","displayName","checkbox_default","$406796ff087fe49b$export$e375f10ce42261c5","state","inputRef","validationState","useFormValidationState","Q3","value","isInvalid","validationErrors","validationDetails","displayValidation","labelProps","inputProps","isPressed","isDisabled","isReadOnly","useToggle","O","useFormValidation","Q","isRequired","validationBehavior","react","useEffect","current","indeterminate","pressProps","usePress","r","onPress","tL","groupValidationState","commitValidation","mergeProps","d","checked","undefined","required","_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","defaultSelected","classNames","className","onValueChange","validate","__DEV__","warn","domRef","useRef","onChange","chain","groupState","resetValidation","labelId","useId","ariaCheckboxProps","useMemo","safeAriaLabel","toggleState","useToggleState","validationProps","isAriaInvalid","useReactAriaCheckboxGroupItem","_props_validationBehavior","_props_isRequired","l","addValue","removeValue","descriptionId","errorMessageId","utils","k","get","realtimeValidation","nativeValidation","PS","updateValidation","setInvalid","combinedRealtimeValidation","res","v","filter","Boolean","join","useReactAriaCheckbox","pressed","isInteractionDisabled","hoverProps","isHovered","useHover","disabled","focusProps","isFocused","isFocusVisible","useFocusRing","slots","checkbox","useSafeLayoutEffect","isInputRefChecked","setSelected","onChangeProp","useCallbackRef","handleCheckboxChange","useCallback","event","preventDefault","baseStyles","clsx","base","class","dataAttr","readOnly","props2","wrapper","mergeRefs","hiddenInput","id","label","_chunk_UWE6H66T_mjs__WEBPACK_IMPORTED_MODULE_0__","tv","_chunk_GH5E4FQB_mjs__WEBPACK_IMPORTED_MODULE_1__","ID","PZ","variants","default","primary","secondary","success","warning","danger","sm","md","lg","none","full","true","false","defaultVariants","checkboxGroup","description","errorMessage","fn","deps","react__WEBPACK_IMPORTED_MODULE_0__","_nextui_org_use_safe_layout_effect__WEBPACK_IMPORTED_MODULE_1__","G","args","call","$1ae600c947479353$export$ec98120685d4f57d","WeakMap","$d2c8e2b0480f3f34$export$cbe85ee05b554577","ariaLabel","ariaLabelledby","console","_react_aria_interactions__WEBPACK_IMPORTED_MODULE_0__","isLabelPressed","toggle","focusableProps","_react_aria_focus__WEBPACK_IMPORTED_MODULE_1__","interactions","_react_aria_utils__WEBPACK_IMPORTED_MODULE_2__","domProps","_react_aria_utils__WEBPACK_IMPORTED_MODULE_3__","z","labelable","_react_aria_utils__WEBPACK_IMPORTED_MODULE_4__","y","onClick","e","stopPropagation","target","type","$3017fa7ffdddec74$export$8042c6c013fd5226","_react_stately_utils__WEBPACK_IMPORTED_MODULE_0__"],"sourceRoot":""}