-
Notifications
You must be signed in to change notification settings - Fork 0
/
2338d450064b9688b99b604bf0b863fb95326ac5-89d7eba73eaf54ca1db4.js.map
1 lines (1 loc) · 32.3 KB
/
2338d450064b9688b99b604bf0b863fb95326ac5-89d7eba73eaf54ca1db4.js.map
1
{"version":3,"file":"2338d450064b9688b99b604bf0b863fb95326ac5-89d7eba73eaf54ca1db4.js","mappings":"oKAIKA,EAAuBC,IAA2B,OAAc,CACnEC,KAAM,uBACNC,QAAQ,I,oBCDV,SAASC,EAAUC,GACjB,OAAuB,IAAAC,KACrB,IAAOC,IACP,CACEC,MAAO,QACPC,QAAS,YACTC,MAAO,CACLC,KAAM,OACNC,YAAa,EACbC,OAAQ,eACRC,gBAAiB,OAEhBT,EACHU,UAA0B,IAAAT,KAAI,WAAY,CAAEU,OAAQ,wBAG1D,CACA,SAASC,EAAkBZ,GACzB,OAAuB,IAAAC,KACrB,IAAOC,IACP,CACEC,MAAO,QACPC,QAAS,YACTC,MAAO,CAAEG,OAAQ,eAAgBD,YAAa,MAC3CP,EACHU,UAA0B,IAAAT,KAAI,OAAQ,CAAEY,GAAI,KAAMC,GAAI,IAAKC,GAAI,KAAMC,GAAI,QAG/E,CACA,SAASC,EAAajB,GACpB,MAAM,gBAAEkB,EAAe,UAAEC,KAAcC,GAASpB,EAC1CqB,EAAWH,EAAkBN,EAAoBb,EACvD,OAAOoB,GAAaD,GAAkC,IAAAjB,KACpD,IAAOqB,IACP,CACEjB,MAAO,CACLkB,QAAS,OACTC,WAAY,SACZC,eAAgB,SAChBC,OAAQ,QAEVhB,UAA0B,IAAAT,KAAIoB,EAAU,IAAKD,MAE7C,IACN,C,+DC9CIO,EAAsB,CACxBC,OAAQ,IACRC,KAAM,mBACNH,OAAQ,MACRvB,MAAO,MACP2B,OAAQ,OACRC,QAAS,IACTC,SAAU,SACVC,WAAY,SACZC,SAAU,YCZZ,MAAMC,EAAQ,IAA0B,oBAAbC,SCE3B,IAAIC,GAAW,EACXC,EAAW,KACXC,GAA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QACxDD,GAAW,QAAQuF,EAAMvF,SAAUa,IAErC,MAAM,MACJyD,EAAK,cACLN,EAAa,iBACbjB,EAAgB,cAChBqB,EAAa,aACbZ,GACErE,EAAY,IACXhE,EACHkE,aACAnE,YACA8E,aAEImG,ECtGR,SAAkCjL,GAChC,MAAOkL,EAAmBC,IAAwB,IAAApF,UAAS/F,IACpDiL,EAAeG,IAAoB,IAAArF,WAAS,GAKnD,OAJI/F,IAAckL,IAChBE,GAAiB,GACjBD,EAAqBnL,IAEhBiL,CACT,CD8FwBI,CAAyBjC,EAAMpJ,WAC/CsL,GAAa,IAAAC,UACjB,KAAM,CACJC,UAAYP,EAAyB7B,EAAMrJ,gBAAkB,GAAGmK,kBAAyCC,iBAAwC,GAAGP,sBAAxH,EAC5B6B,SAAUb,EACVc,MAAOf,KACJJ,EAAOM,QAEZ,CAACF,EAAWC,EAAUK,EAAe7B,EAAMrJ,gBAAiBwK,EAAOM,OAE/Dc,GAAa,IAAAC,cAAaf,EAAM,CACpCgB,MAAOP,EACPvL,gBAAiBqJ,EAAMrJ,gBACvBC,UAAWoJ,EAAMpJ,YAEnB,OAAuB,IAAA8L,MACrB,IAAOC,MACP,CACEF,MAAO,IAAKnC,KAAea,EAAOyB,WAClCtB,WAAW,IAAAuB,IAAG,kBAAmBvB,MAC9BpC,IACH/I,SAAU,EACQ,IAAAT,KACd,QACA,CACE4L,UAAW,4BACR5B,EAAciC,EAAY/C,MAGjB,IAAAlJ,KACd,IAAOoN,KACP,CACEL,MAAO,IAAKvC,KAAkBiB,EAAO4B,SACrCzB,UAAW,8BACR7C,IACHtI,SAAUoM,IAGdpM,IAA4B,IAAAT,KAC1B,IAAOoN,KACP,CACExB,UAAW,4BACRxB,IACH2C,MAAO,CACLO,YAAa3B,KACVF,EAAOwB,OAEZxM,eAMZ,IACA6K,EAASiC,YAAc,U","sources":["webpack://photonq/../node_modules/@chakra-ui/checkbox/dist/chunk-LYGBQ47X.mjs","webpack://photonq/../node_modules/@chakra-ui/checkbox/dist/chunk-ULEC7HZU.mjs","webpack://photonq/../node_modules/@chakra-ui/visually-hidden/dist/chunk-3JHDQ75O.mjs","webpack://photonq/../node_modules/@zag-js/dom-query/dist/platform.mjs","webpack://photonq/../node_modules/@zag-js/focus-visible/dist/index.mjs","webpack://photonq/../node_modules/@chakra-ui/checkbox/dist/chunk-7D6N5TE5.mjs","webpack://photonq/../node_modules/@chakra-ui/checkbox/dist/chunk-P675YKMR.mjs","webpack://photonq/../node_modules/@chakra-ui/checkbox/dist/chunk-2TOCDA5N.mjs"],"sourcesContent":["'use client'\n\n// src/checkbox-context.ts\nimport { createContext } from \"@chakra-ui/react-context\";\nvar [CheckboxGroupProvider, useCheckboxGroupContext] = createContext({\n name: \"CheckboxGroupContext\",\n strict: false\n});\n\nexport {\n CheckboxGroupProvider,\n useCheckboxGroupContext\n};\n//# sourceMappingURL=chunk-LYGBQ47X.mjs.map","'use client'\n\n// src/checkbox-icon.tsx\nimport { chakra } from \"@chakra-ui/system\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction CheckIcon(props) {\n return /* @__PURE__ */ jsx(\n chakra.svg,\n {\n width: \"1.2em\",\n viewBox: \"0 0 12 10\",\n style: {\n fill: \"none\",\n strokeWidth: 2,\n stroke: \"currentColor\",\n strokeDasharray: 16\n },\n ...props,\n children: /* @__PURE__ */ jsx(\"polyline\", { points: \"1.5 6 4.5 9 10.5 1\" })\n }\n );\n}\nfunction IndeterminateIcon(props) {\n return /* @__PURE__ */ jsx(\n chakra.svg,\n {\n width: \"1.2em\",\n viewBox: \"0 0 24 24\",\n style: { stroke: \"currentColor\", strokeWidth: 4 },\n ...props,\n children: /* @__PURE__ */ jsx(\"line\", { x1: \"21\", x2: \"3\", y1: \"12\", y2: \"12\" })\n }\n );\n}\nfunction CheckboxIcon(props) {\n const { isIndeterminate, isChecked, ...rest } = props;\n const BaseIcon = isIndeterminate ? IndeterminateIcon : CheckIcon;\n return isChecked || isIndeterminate ? /* @__PURE__ */ jsx(\n chakra.div,\n {\n style: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n height: \"100%\"\n },\n children: /* @__PURE__ */ jsx(BaseIcon, { ...rest })\n }\n ) : null;\n}\n\nexport {\n CheckboxIcon\n};\n//# sourceMappingURL=chunk-ULEC7HZU.mjs.map","'use client'\n\n// src/visually-hidden.style.ts\nvar visuallyHiddenStyle = {\n border: \"0\",\n clip: \"rect(0, 0, 0, 0)\",\n height: \"1px\",\n width: \"1px\",\n margin: \"-1px\",\n padding: \"0\",\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n position: \"absolute\"\n};\n\nexport {\n visuallyHiddenStyle\n};\n//# sourceMappingURL=chunk-3JHDQ75O.mjs.map","const isDom = () => typeof document !== \"undefined\";\nfunction getPlatform() {\n const agent = navigator.userAgentData;\n return agent?.platform ?? navigator.platform;\n}\nconst pt = (v) => isDom() && v.test(getPlatform());\nconst ua = (v) => isDom() && v.test(navigator.userAgent);\nconst vn = (v) => isDom() && v.test(navigator.vendor);\nconst isTouchDevice = () => isDom() && !!navigator.maxTouchPoints;\nconst isMac = () => pt(/^Mac/) && !isTouchDevice();\nconst isIPhone = () => pt(/^iPhone/);\nconst isSafari = () => isApple() && vn(/apple/i);\nconst isFirefox = () => ua(/firefox\\//i);\nconst isApple = () => pt(/mac|iphone|ipad|ipod/i);\nconst isIos = () => isApple() && !isMac();\n\nexport { getPlatform, isApple, isDom, isFirefox, isIPhone, isIos, isMac, isSafari, isTouchDevice };\n","import { isDom } from '@zag-js/dom-query';\n\nlet hasSetup = false;\nlet modality = null;\nlet hasEventBeforeFocus = false;\nlet hasBlurredWindowRecently = false;\nconst handlers = /* @__PURE__ */ new Set();\nfunction trigger(modality2, event) {\n handlers.forEach((handler) => handler(modality2, event));\n}\nconst isMac = typeof window !== \"undefined\" && window.navigator != null ? /^Mac/.test(window.navigator.platform) : false;\nfunction isValidKey(e) {\n return !(e.metaKey || !isMac && e.altKey || e.ctrlKey || e.key === \"Control\" || e.key === \"Shift\" || e.key === \"Meta\");\n}\nfunction onKeyboardEvent(event) {\n hasEventBeforeFocus = true;\n if (isValidKey(event)) {\n modality = \"keyboard\";\n trigger(\"keyboard\", event);\n }\n}\nfunction onPointerEvent(event) {\n modality = \"pointer\";\n if (event.type === \"mousedown\" || event.type === \"pointerdown\") {\n hasEventBeforeFocus = true;\n const target = event.composedPath ? event.composedPath()[0] : event.target;\n let matches = false;\n try {\n matches = target.matches(\":focus-visible\");\n } catch {\n }\n if (matches)\n return;\n trigger(\"pointer\", event);\n }\n}\nfunction isVirtualClick(event) {\n if (event.mozInputSource === 0 && event.isTrusted)\n return true;\n return event.detail === 0 && !event.pointerType;\n}\nfunction onClickEvent(e) {\n if (isVirtualClick(e)) {\n hasEventBeforeFocus = true;\n modality = \"virtual\";\n }\n}\nfunction onWindowFocus(event) {\n if (event.target === window || event.target === document) {\n return;\n }\n if (!hasEventBeforeFocus && !hasBlurredWindowRecently) {\n modality = \"virtual\";\n trigger(\"virtual\", event);\n }\n hasEventBeforeFocus = false;\n hasBlurredWindowRecently = false;\n}\nfunction onWindowBlur() {\n hasEventBeforeFocus = false;\n hasBlurredWindowRecently = true;\n}\nfunction isFocusVisible() {\n return modality !== \"pointer\";\n}\nfunction setupGlobalFocusEvents() {\n if (!isDom() || hasSetup) {\n return;\n }\n const { focus } = HTMLElement.prototype;\n HTMLElement.prototype.focus = function focusElement(...args) {\n hasEventBeforeFocus = true;\n focus.apply(this, args);\n };\n document.addEventListener(\"keydown\", onKeyboardEvent, true);\n document.addEventListener(\"keyup\", onKeyboardEvent, true);\n document.addEventListener(\"click\", onClickEvent, true);\n window.addEventListener(\"focus\", onWindowFocus, true);\n window.addEventListener(\"blur\", onWindowBlur, false);\n if (typeof PointerEvent !== \"undefined\") {\n document.addEventListener(\"pointerdown\", onPointerEvent, true);\n document.addEventListener(\"pointermove\", onPointerEvent, true);\n document.addEventListener(\"pointerup\", onPointerEvent, true);\n } else {\n document.addEventListener(\"mousedown\", onPointerEvent, true);\n document.addEventListener(\"mousemove\", onPointerEvent, true);\n document.addEventListener(\"mouseup\", onPointerEvent, true);\n }\n hasSetup = true;\n}\nfunction trackFocusVisible(fn) {\n setupGlobalFocusEvents();\n fn(isFocusVisible());\n const handler = () => fn(isFocusVisible());\n handlers.add(handler);\n return () => {\n handlers.delete(handler);\n };\n}\nfunction trackInteractionModality(fn) {\n setupGlobalFocusEvents();\n fn(modality);\n const handler = () => fn(modality);\n handlers.add(handler);\n return () => {\n handlers.delete(handler);\n };\n}\nfunction setInteractionModality(value) {\n modality = value;\n trigger(value, null);\n}\nfunction getInteractionModality() {\n return modality;\n}\n\nexport { getInteractionModality, setInteractionModality, trackFocusVisible, trackInteractionModality };\n","'use client'\n\n// src/use-checkbox.ts\nimport { useFormControlProps } from \"@chakra-ui/form-control\";\nimport { useSafeLayoutEffect } from \"@chakra-ui/react-use-safe-layout-effect\";\nimport { useUpdateEffect } from \"@chakra-ui/react-use-update-effect\";\nimport { useCallbackRef } from \"@chakra-ui/react-use-callback-ref\";\nimport { mergeRefs } from \"@chakra-ui/react-use-merge-refs\";\nimport { callAllHandlers, dataAttr } from \"@chakra-ui/shared-utils\";\n\n// ../../utilities/object-utils/src/omit.ts\nfunction omit(object, keysToOmit = []) {\n const clone = Object.assign({}, object);\n for (const key of keysToOmit) {\n if (key in clone) {\n delete clone[key];\n }\n }\n return clone;\n}\n\n// src/use-checkbox.ts\nimport { visuallyHiddenStyle } from \"@chakra-ui/visually-hidden\";\nimport { trackFocusVisible } from \"@zag-js/focus-visible\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nfunction useCheckbox(props = {}) {\n const formControlProps = useFormControlProps(props);\n const {\n isDisabled,\n isReadOnly,\n isRequired,\n isInvalid,\n id,\n onBlur,\n onFocus,\n \"aria-describedby\": ariaDescribedBy\n } = formControlProps;\n const {\n defaultChecked,\n isChecked: checkedProp,\n isFocusable,\n onChange,\n isIndeterminate,\n name,\n value,\n tabIndex = void 0,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-invalid\": ariaInvalid,\n ...rest\n } = props;\n const htmlProps = omit(rest, [\n \"isDisabled\",\n \"isReadOnly\",\n \"isRequired\",\n \"isInvalid\",\n \"id\",\n \"onBlur\",\n \"onFocus\",\n \"aria-describedby\"\n ]);\n const onChangeProp = useCallbackRef(onChange);\n const onBlurProp = useCallbackRef(onBlur);\n const onFocusProp = useCallbackRef(onFocus);\n const [isFocusVisible, setIsFocusVisible] = useState(false);\n const [isFocused, setFocused] = useState(false);\n const [isHovered, setHovered] = useState(false);\n const [isActive, setActive] = useState(false);\n useEffect(() => {\n return trackFocusVisible(setIsFocusVisible);\n }, []);\n const inputRef = useRef(null);\n const [rootIsLabelElement, setRootIsLabelElement] = useState(true);\n const [checkedState, setCheckedState] = useState(!!defaultChecked);\n const isControlled = checkedProp !== void 0;\n const isChecked = isControlled ? checkedProp : checkedState;\n const handleChange = useCallback(\n (event) => {\n if (isReadOnly || isDisabled) {\n event.preventDefault();\n return;\n }\n if (!isControlled) {\n if (isChecked) {\n setCheckedState(event.target.checked);\n } else {\n setCheckedState(isIndeterminate ? true : event.target.checked);\n }\n }\n onChangeProp == null ? void 0 : onChangeProp(event);\n },\n [\n isReadOnly,\n isDisabled,\n isChecked,\n isControlled,\n isIndeterminate,\n onChangeProp\n ]\n );\n useSafeLayoutEffect(() => {\n if (inputRef.current) {\n inputRef.current.indeterminate = Boolean(isIndeterminate);\n }\n }, [isIndeterminate]);\n useUpdateEffect(() => {\n if (isDisabled) {\n setFocused(false);\n }\n }, [isDisabled, setFocused]);\n useSafeLayoutEffect(() => {\n const el = inputRef.current;\n if (!(el == null ? void 0 : el.form))\n return;\n const formResetListener = () => {\n setCheckedState(!!defaultChecked);\n };\n el.form.addEventListener(\"reset\", formResetListener);\n return () => {\n var _a;\n return (_a = el.form) == null ? void 0 : _a.removeEventListener(\"reset\", formResetListener);\n };\n }, []);\n const trulyDisabled = isDisabled && !isFocusable;\n const onKeyDown = useCallback(\n (event) => {\n if (event.key === \" \") {\n setActive(true);\n }\n },\n [setActive]\n );\n const onKeyUp = useCallback(\n (event) => {\n if (event.key === \" \") {\n setActive(false);\n }\n },\n [setActive]\n );\n useSafeLayoutEffect(() => {\n if (!inputRef.current)\n return;\n const notInSync = inputRef.current.checked !== isChecked;\n if (notInSync) {\n setCheckedState(inputRef.current.checked);\n }\n }, [inputRef.current]);\n const getCheckboxProps = useCallback(\n (props2 = {}, forwardedRef = null) => {\n const onPressDown = (event) => {\n if (isFocused) {\n event.preventDefault();\n }\n setActive(true);\n };\n return {\n ...props2,\n ref: forwardedRef,\n \"data-active\": dataAttr(isActive),\n \"data-hover\": dataAttr(isHovered),\n \"data-checked\": dataAttr(isChecked),\n \"data-focus\": dataAttr(isFocused),\n \"data-focus-visible\": dataAttr(isFocused && isFocusVisible),\n \"data-indeterminate\": dataAttr(isIndeterminate),\n \"data-disabled\": dataAttr(isDisabled),\n \"data-invalid\": dataAttr(isInvalid),\n \"data-readonly\": dataAttr(isReadOnly),\n \"aria-hidden\": true,\n onMouseDown: callAllHandlers(props2.onMouseDown, onPressDown),\n onMouseUp: callAllHandlers(props2.onMouseUp, () => setActive(false)),\n onMouseEnter: callAllHandlers(\n props2.onMouseEnter,\n () => setHovered(true)\n ),\n onMouseLeave: callAllHandlers(\n props2.onMouseLeave,\n () => setHovered(false)\n )\n };\n },\n [\n isActive,\n isChecked,\n isDisabled,\n isFocused,\n isFocusVisible,\n isHovered,\n isIndeterminate,\n isInvalid,\n isReadOnly\n ]\n );\n const getIndicatorProps = useCallback(\n (props2 = {}, forwardedRef = null) => ({\n ...props2,\n ref: forwardedRef,\n \"data-active\": dataAttr(isActive),\n \"data-hover\": dataAttr(isHovered),\n \"data-checked\": dataAttr(isChecked),\n \"data-focus\": dataAttr(isFocused),\n \"data-focus-visible\": dataAttr(isFocused && isFocusVisible),\n \"data-indeterminate\": dataAttr(isIndeterminate),\n \"data-disabled\": dataAttr(isDisabled),\n \"data-invalid\": dataAttr(isInvalid),\n \"data-readonly\": dataAttr(isReadOnly)\n }),\n [\n isActive,\n isChecked,\n isDisabled,\n isFocused,\n isFocusVisible,\n isHovered,\n isIndeterminate,\n isInvalid,\n isReadOnly\n ]\n );\n const getRootProps = useCallback(\n (props2 = {}, forwardedRef = null) => ({\n ...htmlProps,\n ...props2,\n ref: mergeRefs(forwardedRef, (node) => {\n if (!node)\n return;\n setRootIsLabelElement(node.tagName === \"LABEL\");\n }),\n onClick: callAllHandlers(props2.onClick, () => {\n var _a;\n if (!rootIsLabelElement) {\n (_a = inputRef.current) == null ? void 0 : _a.click();\n requestAnimationFrame(() => {\n var _a2;\n (_a2 = inputRef.current) == null ? void 0 : _a2.focus({ preventScroll: true });\n });\n }\n }),\n \"data-disabled\": dataAttr(isDisabled),\n \"data-checked\": dataAttr(isChecked),\n \"data-invalid\": dataAttr(isInvalid)\n }),\n [htmlProps, isDisabled, isChecked, isInvalid, rootIsLabelElement]\n );\n const getInputProps = useCallback(\n (props2 = {}, forwardedRef = null) => {\n return {\n ...props2,\n ref: mergeRefs(inputRef, forwardedRef),\n type: \"checkbox\",\n name,\n value,\n id,\n tabIndex,\n onChange: callAllHandlers(props2.onChange, handleChange),\n onBlur: callAllHandlers(\n props2.onBlur,\n onBlurProp,\n () => setFocused(false)\n ),\n onFocus: callAllHandlers(\n props2.onFocus,\n onFocusProp,\n () => setFocused(true)\n ),\n onKeyDown: callAllHandlers(props2.onKeyDown, onKeyDown),\n onKeyUp: callAllHandlers(props2.onKeyUp, onKeyUp),\n required: isRequired,\n checked: isChecked,\n disabled: trulyDisabled,\n readOnly: isReadOnly,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-invalid\": ariaInvalid ? Boolean(ariaInvalid) : isInvalid,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-disabled\": isDisabled,\n style: visuallyHiddenStyle\n };\n },\n [\n name,\n value,\n id,\n handleChange,\n onBlurProp,\n onFocusProp,\n onKeyDown,\n onKeyUp,\n isRequired,\n isChecked,\n trulyDisabled,\n isReadOnly,\n ariaLabel,\n ariaLabelledBy,\n ariaInvalid,\n isInvalid,\n ariaDescribedBy,\n isDisabled,\n tabIndex\n ]\n );\n const getLabelProps = useCallback(\n (props2 = {}, forwardedRef = null) => ({\n ...props2,\n ref: forwardedRef,\n onMouseDown: callAllHandlers(props2.onMouseDown, stopEvent),\n \"data-disabled\": dataAttr(isDisabled),\n \"data-checked\": dataAttr(isChecked),\n \"data-invalid\": dataAttr(isInvalid)\n }),\n [isChecked, isDisabled, isInvalid]\n );\n const state = {\n isInvalid,\n isFocused,\n isChecked,\n isActive,\n isHovered,\n isIndeterminate,\n isDisabled,\n isReadOnly,\n isRequired\n };\n return {\n state,\n getRootProps,\n getCheckboxProps,\n getIndicatorProps,\n getInputProps,\n getLabelProps,\n htmlProps\n };\n}\nfunction stopEvent(event) {\n event.preventDefault();\n event.stopPropagation();\n}\n\nexport {\n useCheckbox\n};\n//# sourceMappingURL=chunk-7D6N5TE5.mjs.map","'use client'\nimport {\n useInitialAnimationState\n} from \"./chunk-2TOCDA5N.mjs\";\nimport {\n useCheckboxGroupContext\n} from \"./chunk-LYGBQ47X.mjs\";\nimport {\n CheckboxIcon\n} from \"./chunk-ULEC7HZU.mjs\";\nimport {\n useCheckbox\n} from \"./chunk-7D6N5TE5.mjs\";\n\n// src/checkbox.tsx\nimport { callAll, cx } from \"@chakra-ui/shared-utils\";\nimport {\n chakra,\n forwardRef,\n keyframes,\n omitThemingProps,\n useMultiStyleConfig\n} from \"@chakra-ui/system\";\nimport { cloneElement, useMemo } from \"react\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar controlStyles = {\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n verticalAlign: \"top\",\n userSelect: \"none\",\n flexShrink: 0\n};\nvar rootStyles = {\n cursor: \"pointer\",\n display: \"inline-flex\",\n alignItems: \"center\",\n verticalAlign: \"top\",\n position: \"relative\"\n};\nvar checkAnim = keyframes({\n from: {\n opacity: 0,\n strokeDashoffset: 16,\n transform: \"scale(0.95)\"\n },\n to: {\n opacity: 1,\n strokeDashoffset: 0,\n transform: \"scale(1)\"\n }\n});\nvar indeterminateOpacityAnim = keyframes({\n from: {\n opacity: 0\n },\n to: {\n opacity: 1\n }\n});\nvar indeterminateScaleAnim = keyframes({\n from: {\n transform: \"scaleX(0.65)\"\n },\n to: {\n transform: \"scaleX(1)\"\n }\n});\nvar Checkbox = forwardRef(function Checkbox2(props, ref) {\n const group = useCheckboxGroupContext();\n const mergedProps = { ...group, ...props };\n const styles = useMultiStyleConfig(\"Checkbox\", mergedProps);\n const ownProps = omitThemingProps(props);\n const {\n spacing = \"0.5rem\",\n className,\n children,\n iconColor,\n iconSize,\n icon = /* @__PURE__ */ jsx(CheckboxIcon, {}),\n isChecked: isCheckedProp,\n isDisabled = group == null ? void 0 : group.isDisabled,\n onChange: onChangeProp,\n inputProps,\n ...rest\n } = ownProps;\n let isChecked = isCheckedProp;\n if ((group == null ? void 0 : group.value) && ownProps.value) {\n isChecked = group.value.includes(ownProps.value);\n }\n let onChange = onChangeProp;\n if ((group == null ? void 0 : group.onChange) && ownProps.value) {\n onChange = callAll(group.onChange, onChangeProp);\n }\n const {\n state,\n getInputProps,\n getCheckboxProps,\n getLabelProps,\n getRootProps\n } = useCheckbox({\n ...rest,\n isDisabled,\n isChecked,\n onChange\n });\n const shouldAnimate = useInitialAnimationState(state.isChecked);\n const iconStyles = useMemo(\n () => ({\n animation: !shouldAnimate ? void 0 : state.isIndeterminate ? `${indeterminateOpacityAnim} 20ms linear, ${indeterminateScaleAnim} 200ms linear` : `${checkAnim} 200ms linear`,\n fontSize: iconSize,\n color: iconColor,\n ...styles.icon\n }),\n [iconColor, iconSize, shouldAnimate, state.isIndeterminate, styles.icon]\n );\n const clonedIcon = cloneElement(icon, {\n __css: iconStyles,\n isIndeterminate: state.isIndeterminate,\n isChecked: state.isChecked\n });\n return /* @__PURE__ */ jsxs(\n chakra.label,\n {\n __css: { ...rootStyles, ...styles.container },\n className: cx(\"chakra-checkbox\", className),\n ...getRootProps(),\n children: [\n /* @__PURE__ */ jsx(\n \"input\",\n {\n className: \"chakra-checkbox__input\",\n ...getInputProps(inputProps, ref)\n }\n ),\n /* @__PURE__ */ jsx(\n chakra.span,\n {\n __css: { ...controlStyles, ...styles.control },\n className: \"chakra-checkbox__control\",\n ...getCheckboxProps(),\n children: clonedIcon\n }\n ),\n children && /* @__PURE__ */ jsx(\n chakra.span,\n {\n className: \"chakra-checkbox__label\",\n ...getLabelProps(),\n __css: {\n marginStart: spacing,\n ...styles.label\n },\n children\n }\n )\n ]\n }\n );\n});\nCheckbox.displayName = \"Checkbox\";\n\nexport {\n Checkbox\n};\n//# sourceMappingURL=chunk-P675YKMR.mjs.map","'use client'\n\n// src/use-initial-animation-state.tsx\nimport { useState } from \"react\";\nfunction useInitialAnimationState(isChecked) {\n const [previousIsChecked, setPreviousIsChecked] = useState(isChecked);\n const [shouldAnimate, setShouldAnimate] = useState(false);\n if (isChecked !== previousIsChecked) {\n setShouldAnimate(true);\n setPreviousIsChecked(isChecked);\n }\n return shouldAnimate;\n}\n\nexport {\n useInitialAnimationState\n};\n//# sourceMappingURL=chunk-2TOCDA5N.mjs.map"],"names":["CheckboxGroupProvider","useCheckboxGroupContext","name","strict","CheckIcon","props","jsx","svg","width","viewBox","style","fill","strokeWidth","stroke","strokeDasharray","children","points","IndeterminateIcon","x1","x2","y1","y2","CheckboxIcon","isIndeterminate","isChecked","rest","BaseIcon","div","display","alignItems","justifyContent","height","visuallyHiddenStyle","border","clip","margin","padding","overflow","whiteSpace","position","isDom","document","hasSetup","modality","hasEventBeforeFocus","hasBlurredWindowRecently","handlers","Set","trigger","modality2","event","forEach","handler","window","navigator","test","platform","onKeyboardEvent","e","metaKey","altKey","ctrlKey","key","onPointerEvent","type","target","composedPath","matches","onClickEvent","mozInputSource","isTrusted","detail","pointerType","onWindowFocus","onWindowBlur","isFocusVisible","setupGlobalFocusEvents","focus","HTMLElement","prototype","args","apply","this","addEventListener","PointerEvent","trackFocusVisible","fn","add","delete","useCheckbox","formControlProps","isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","ariaDescribedBy","defaultChecked","checkedProp","isFocusable","onChange","value","tabIndex","ariaLabel","ariaLabelledBy","ariaInvalid","htmlProps","object","keysToOmit","clone","Object","assign","omit","onChangeProp","onBlurProp","onFocusProp","setIsFocusVisible","useState","isFocused","setFocused","isHovered","setHovered","isActive","setActive","useEffect","inputRef","useRef","rootIsLabelElement","setRootIsLabelElement","checkedState","setCheckedState","isControlled","handleChange","useCallback","preventDefault","checked","current","indeterminate","Boolean","el","form","formResetListener","_a","removeEventListener","trulyDisabled","onKeyDown","onKeyUp","getCheckboxProps","props2","forwardedRef","ref","onMouseDown","onMouseUp","onMouseEnter","onMouseLeave","getIndicatorProps","getRootProps","node","tagName","onClick","click","requestAnimationFrame","_a2","preventScroll","getInputProps","required","disabled","readOnly","getLabelProps","stopEvent","state","stopPropagation","controlStyles","verticalAlign","userSelect","flexShrink","rootStyles","cursor","checkAnim","from","opacity","strokeDashoffset","transform","to","indeterminateOpacityAnim","indeterminateScaleAnim","Checkbox","group","mergedProps","styles","ownProps","spacing","className","iconColor","iconSize","icon","isCheckedProp","inputProps","includes","shouldAnimate","previousIsChecked","setPreviousIsChecked","setShouldAnimate","useInitialAnimationState","iconStyles","useMemo","animation","fontSize","color","clonedIcon","cloneElement","__css","jsxs","label","container","cx","span","control","marginStart","displayName"],"sourceRoot":""}