{"ast":null,"code":"import $1bpvS$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport { forwardRef as $1bpvS$forwardRef, useState as $1bpvS$useState, useRef as $1bpvS$useRef, useEffect as $1bpvS$useEffect, createElement as $1bpvS$createElement } from \"react\";\nimport { useComposedRefs as $1bpvS$useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope as $1bpvS$createContextScope } from \"@radix-ui/react-context\";\nimport { composeEventHandlers as $1bpvS$composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState as $1bpvS$useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { usePrevious as $1bpvS$usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useSize as $1bpvS$useSize } from \"@radix-ui/react-use-size\";\nimport { Presence as $1bpvS$Presence } from \"@radix-ui/react-presence\";\nimport { Primitive as $1bpvS$Primitive } from \"@radix-ui/react-primitive\";\n\n/* -------------------------------------------------------------------------------------------------\n * Checkbox\n * -----------------------------------------------------------------------------------------------*/\nconst $e698a72e93240346$var$CHECKBOX_NAME = 'Checkbox';\nconst [$e698a72e93240346$var$createCheckboxContext, $e698a72e93240346$export$b566c4ff5488ea01] = $1bpvS$createContextScope($e698a72e93240346$var$CHECKBOX_NAME);\nconst [$e698a72e93240346$var$CheckboxProvider, $e698a72e93240346$var$useCheckboxContext] = $e698a72e93240346$var$createCheckboxContext($e698a72e93240346$var$CHECKBOX_NAME);\nconst $e698a72e93240346$export$48513f6b9f8ce62d = /*#__PURE__*/$1bpvS$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeCheckbox: __scopeCheckbox,\n    name: name,\n    checked: checkedProp,\n    defaultChecked: defaultChecked,\n    required: required,\n    disabled: disabled,\n    value = 'on',\n    onCheckedChange: onCheckedChange,\n    ...checkboxProps\n  } = props;\n  const [button, setButton] = $1bpvS$useState(null);\n  const composedRefs = $1bpvS$useComposedRefs(forwardedRef, node => setButton(node));\n  const hasConsumerStoppedPropagationRef = $1bpvS$useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)\n  const isFormControl = button ? Boolean(button.closest('form')) : true;\n  const [checked = false, setChecked] = $1bpvS$useControllableState({\n    prop: checkedProp,\n    defaultProp: defaultChecked,\n    onChange: onCheckedChange\n  });\n  const initialCheckedStateRef = $1bpvS$useRef(checked);\n  $1bpvS$useEffect(() => {\n    const form = button === null || button === void 0 ? void 0 : button.form;\n    if (form) {\n      const reset = () => setChecked(initialCheckedStateRef.current);\n      form.addEventListener('reset', reset);\n      return () => form.removeEventListener('reset', reset);\n    }\n  }, [button, setChecked]);\n  return /*#__PURE__*/$1bpvS$createElement($e698a72e93240346$var$CheckboxProvider, {\n    scope: __scopeCheckbox,\n    state: checked,\n    disabled: disabled\n  }, /*#__PURE__*/$1bpvS$createElement($1bpvS$Primitive.button, $1bpvS$babelruntimehelpersesmextends({\n    type: \"button\",\n    role: \"checkbox\",\n    \"aria-checked\": $e698a72e93240346$var$isIndeterminate(checked) ? 'mixed' : checked,\n    \"aria-required\": required,\n    \"data-state\": $e698a72e93240346$var$getState(checked),\n    \"data-disabled\": disabled ? '' : undefined,\n    disabled: disabled,\n    value: value\n  }, checkboxProps, {\n    ref: composedRefs,\n    onKeyDown: $1bpvS$composeEventHandlers(props.onKeyDown, event => {\n      // According to WAI ARIA, Checkboxes don't activate on enter keypress\n      if (event.key === 'Enter') event.preventDefault();\n    }),\n    onClick: $1bpvS$composeEventHandlers(props.onClick, event => {\n      setChecked(prevChecked => $e698a72e93240346$var$isIndeterminate(prevChecked) ? true : !prevChecked);\n      if (isFormControl) {\n        hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if checkbox is in a form, stop propagation from the button so that we only propagate\n        // one click event (from the input). We propagate changes from an input so that native\n        // form validation works and form events reflect checkbox updates.\n        if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n      }\n    })\n  })), isFormControl && /*#__PURE__*/$1bpvS$createElement($e698a72e93240346$var$BubbleInput, {\n    control: button,\n    bubbles: !hasConsumerStoppedPropagationRef.current,\n    name: name,\n    value: value,\n    checked: checked,\n    required: required,\n    disabled: disabled // We transform because the input is absolutely positioned but we have\n    ,\n\n    style: {\n      transform: 'translateX(-100%)'\n    }\n  }));\n});\n/*#__PURE__*/\nObject.assign($e698a72e93240346$export$48513f6b9f8ce62d, {\n  displayName: $e698a72e93240346$var$CHECKBOX_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * CheckboxIndicator\n * -----------------------------------------------------------------------------------------------*/\nconst $e698a72e93240346$var$INDICATOR_NAME = 'CheckboxIndicator';\nconst $e698a72e93240346$export$59aad738f51d1c05 = /*#__PURE__*/$1bpvS$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeCheckbox: __scopeCheckbox,\n    forceMount: forceMount,\n    ...indicatorProps\n  } = props;\n  const context = $e698a72e93240346$var$useCheckboxContext($e698a72e93240346$var$INDICATOR_NAME, __scopeCheckbox);\n  return /*#__PURE__*/$1bpvS$createElement($1bpvS$Presence, {\n    present: forceMount || $e698a72e93240346$var$isIndeterminate(context.state) || context.state === true\n  }, /*#__PURE__*/$1bpvS$createElement($1bpvS$Primitive.span, $1bpvS$babelruntimehelpersesmextends({\n    \"data-state\": $e698a72e93240346$var$getState(context.state),\n    \"data-disabled\": context.disabled ? '' : undefined\n  }, indicatorProps, {\n    ref: forwardedRef,\n    style: {\n      pointerEvents: 'none',\n      ...props.style\n    }\n  })));\n});\n/*#__PURE__*/\nObject.assign($e698a72e93240346$export$59aad738f51d1c05, {\n  displayName: $e698a72e93240346$var$INDICATOR_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */\nconst $e698a72e93240346$var$BubbleInput = props => {\n  const {\n    control: control,\n    checked: checked,\n    bubbles = true,\n    ...inputProps\n  } = props;\n  const ref = $1bpvS$useRef(null);\n  const prevChecked = $1bpvS$usePrevious(checked);\n  const controlSize = $1bpvS$useSize(control); // Bubble checked change to parents (e.g form change event)\n  $1bpvS$useEffect(() => {\n    const input = ref.current;\n    const inputProto = window.HTMLInputElement.prototype;\n    const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');\n    const setChecked = descriptor.set;\n    if (prevChecked !== checked && setChecked) {\n      const event = new Event('click', {\n        bubbles: bubbles\n      });\n      input.indeterminate = $e698a72e93240346$var$isIndeterminate(checked);\n      setChecked.call(input, $e698a72e93240346$var$isIndeterminate(checked) ? false : checked);\n      input.dispatchEvent(event);\n    }\n  }, [prevChecked, checked, bubbles]);\n  return /*#__PURE__*/$1bpvS$createElement(\"input\", $1bpvS$babelruntimehelpersesmextends({\n    type: \"checkbox\",\n    \"aria-hidden\": true,\n    defaultChecked: $e698a72e93240346$var$isIndeterminate(checked) ? false : checked\n  }, inputProps, {\n    tabIndex: -1,\n    ref: ref,\n    style: {\n      ...props.style,\n      ...controlSize,\n      position: 'absolute',\n      pointerEvents: 'none',\n      opacity: 0,\n      margin: 0\n    }\n  }));\n};\nfunction $e698a72e93240346$var$isIndeterminate(checked) {\n  return checked === 'indeterminate';\n}\nfunction $e698a72e93240346$var$getState(checked) {\n  return $e698a72e93240346$var$isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';\n}\nconst $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;\nconst $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;\nexport { $e698a72e93240346$export$b566c4ff5488ea01 as createCheckboxScope, $e698a72e93240346$export$48513f6b9f8ce62d as Checkbox, $e698a72e93240346$export$59aad738f51d1c05 as CheckboxIndicator, $e698a72e93240346$export$be92b6f5f03c0fe9 as Root, $e698a72e93240346$export$adb584737d712b70 as Indicator };","map":{"version":3,"names":["$e698a72e93240346$var$CHECKBOX_NAME","$e698a72e93240346$var$createCheckboxContext","$e698a72e93240346$export$b566c4ff5488ea01","$1bpvS$createContextScope","$e698a72e93240346$var$CheckboxProvider","$e698a72e93240346$var$useCheckboxContext","$e698a72e93240346$export$48513f6b9f8ce62d","$1bpvS$forwardRef","props","forwardedRef","__scopeCheckbox","name","checked","checkedProp","defaultChecked","required","disabled","value","onCheckedChange","checkboxProps","button","setButton","$1bpvS$useState","composedRefs","$1bpvS$useComposedRefs","node","hasConsumerStoppedPropagationRef","$1bpvS$useRef","isFormControl","Boolean","closest","setChecked","$1bpvS$useControllableState","prop","defaultProp","onChange","initialCheckedStateRef","$1bpvS$useEffect","form","reset","current","addEventListener","removeEventListener","$1bpvS$createElement","scope","state","$1bpvS$Primitive","$1bpvS$babelruntimehelpersesmextends","type","role","$e698a72e93240346$var$isIndeterminate","$e698a72e93240346$var$getState","undefined","ref","onKeyDown","$1bpvS$composeEventHandlers","event","key","preventDefault","onClick","prevChecked","isPropagationStopped","stopPropagation","$e698a72e93240346$var$BubbleInput","control","bubbles","style","transform","Object","assign","displayName","$e698a72e93240346$var$INDICATOR_NAME","$e698a72e93240346$export$59aad738f51d1c05","forceMount","indicatorProps","context","$1bpvS$Presence","present","span","pointerEvents","inputProps","$1bpvS$usePrevious","controlSize","$1bpvS$useSize","input","inputProto","window","HTMLInputElement","prototype","descriptor","getOwnPropertyDescriptor","set","Event","indeterminate","call","dispatchEvent","tabIndex","position","opacity","margin","isIndeterminate","getState","$e698a72e93240346$export$be92b6f5f03c0fe9","$e698a72e93240346$export$adb584737d712b70"],"sources":["C:\\Users\\user\\Desktop\\08portreact\\node_modules\\@radix-ui\\react-checkbox\\dist\\packages\\react\\checkbox\\src\\index.ts","C:\\Users\\user\\Desktop\\08portreact\\node_modules\\@radix-ui\\react-checkbox\\dist\\packages\\react\\checkbox\\src\\Checkbox.tsx"],"sourcesContent":["export {\n  createCheckboxScope,\n  //\n  Checkbox,\n  CheckboxIndicator,\n  //\n  Root,\n  Indicator,\n} from './Checkbox';\nexport type { CheckboxProps, CheckboxIndicatorProps } from './Checkbox';\n","import * as React from 'react';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { createContextScope } from '@radix-ui/react-context';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { usePrevious } from '@radix-ui/react-use-previous';\nimport { useSize } from '@radix-ui/react-use-size';\nimport { Presence } from '@radix-ui/react-presence';\nimport { Primitive } from '@radix-ui/react-primitive';\n\nimport type * as Radix from '@radix-ui/react-primitive';\nimport type { Scope } from '@radix-ui/react-context';\n\n/* -------------------------------------------------------------------------------------------------\n * Checkbox\n * -----------------------------------------------------------------------------------------------*/\n\nconst CHECKBOX_NAME = 'Checkbox';\n\ntype ScopedProps<P> = P & { __scopeCheckbox?: Scope };\nconst [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);\n\ntype CheckedState = boolean | 'indeterminate';\n\ntype CheckboxContextValue = {\n  state: CheckedState;\n  disabled?: boolean;\n};\n\nconst [CheckboxProvider, useCheckboxContext] =\n  createCheckboxContext<CheckboxContextValue>(CHECKBOX_NAME);\n\ntype CheckboxElement = React.ElementRef<typeof Primitive.button>;\ntype PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;\ninterface CheckboxProps extends Omit<PrimitiveButtonProps, 'checked' | 'defaultChecked'> {\n  checked?: CheckedState;\n  defaultChecked?: CheckedState;\n  required?: boolean;\n  onCheckedChange?(checked: CheckedState): void;\n}\n\nconst Checkbox = React.forwardRef<CheckboxElement, CheckboxProps>(\n  (props: ScopedProps<CheckboxProps>, forwardedRef) => {\n    const {\n      __scopeCheckbox,\n      name,\n      checked: checkedProp,\n      defaultChecked,\n      required,\n      disabled,\n      value = 'on',\n      onCheckedChange,\n      ...checkboxProps\n    } = props;\n    const [button, setButton] = React.useState<HTMLButtonElement | null>(null);\n    const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));\n    const hasConsumerStoppedPropagationRef = React.useRef(false);\n    // We set this to true by default so that events bubble to forms without JS (SSR)\n    const isFormControl = button ? Boolean(button.closest('form')) : true;\n    const [checked = false, setChecked] = useControllableState({\n      prop: checkedProp,\n      defaultProp: defaultChecked,\n      onChange: onCheckedChange,\n    });\n    const initialCheckedStateRef = React.useRef(checked);\n    React.useEffect(() => {\n      const form = button?.form;\n      if (form) {\n        const reset = () => setChecked(initialCheckedStateRef.current);\n        form.addEventListener('reset', reset);\n        return () => form.removeEventListener('reset', reset);\n      }\n    }, [button, setChecked]);\n\n    return (\n      <CheckboxProvider scope={__scopeCheckbox} state={checked} disabled={disabled}>\n        <Primitive.button\n          type=\"button\"\n          role=\"checkbox\"\n          aria-checked={isIndeterminate(checked) ? 'mixed' : checked}\n          aria-required={required}\n          data-state={getState(checked)}\n          data-disabled={disabled ? '' : undefined}\n          disabled={disabled}\n          value={value}\n          {...checkboxProps}\n          ref={composedRefs}\n          onKeyDown={composeEventHandlers(props.onKeyDown, (event) => {\n            // According to WAI ARIA, Checkboxes don't activate on enter keypress\n            if (event.key === 'Enter') event.preventDefault();\n          })}\n          onClick={composeEventHandlers(props.onClick, (event) => {\n            setChecked((prevChecked) => (isIndeterminate(prevChecked) ? true : !prevChecked));\n            if (isFormControl) {\n              hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n              // if checkbox is in a form, stop propagation from the button so that we only propagate\n              // one click event (from the input). We propagate changes from an input so that native\n              // form validation works and form events reflect checkbox updates.\n              if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n            }\n          })}\n        />\n        {isFormControl && (\n          <BubbleInput\n            control={button}\n            bubbles={!hasConsumerStoppedPropagationRef.current}\n            name={name}\n            value={value}\n            checked={checked}\n            required={required}\n            disabled={disabled}\n            // We transform because the input is absolutely positioned but we have\n            // rendered it **after** the button. This pulls it back to sit on top\n            // of the button.\n            style={{ transform: 'translateX(-100%)' }}\n          />\n        )}\n      </CheckboxProvider>\n    );\n  }\n);\n\nCheckbox.displayName = CHECKBOX_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * CheckboxIndicator\n * -----------------------------------------------------------------------------------------------*/\n\nconst INDICATOR_NAME = 'CheckboxIndicator';\n\ntype CheckboxIndicatorElement = React.ElementRef<typeof Primitive.span>;\ntype PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;\ninterface CheckboxIndicatorProps extends PrimitiveSpanProps {\n  /**\n   * Used to force mounting when more control is needed. Useful when\n   * controlling animation with React animation libraries.\n   */\n  forceMount?: true;\n}\n\nconst CheckboxIndicator = React.forwardRef<CheckboxIndicatorElement, CheckboxIndicatorProps>(\n  (props: ScopedProps<CheckboxIndicatorProps>, forwardedRef) => {\n    const { __scopeCheckbox, forceMount, ...indicatorProps } = props;\n    const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);\n    return (\n      <Presence present={forceMount || isIndeterminate(context.state) || context.state === true}>\n        <Primitive.span\n          data-state={getState(context.state)}\n          data-disabled={context.disabled ? '' : undefined}\n          {...indicatorProps}\n          ref={forwardedRef}\n          style={{ pointerEvents: 'none', ...props.style }}\n        />\n      </Presence>\n    );\n  }\n);\n\nCheckboxIndicator.displayName = INDICATOR_NAME;\n\n/* ---------------------------------------------------------------------------------------------- */\n\ntype InputProps = Radix.ComponentPropsWithoutRef<'input'>;\ninterface BubbleInputProps extends Omit<InputProps, 'checked'> {\n  checked: CheckedState;\n  control: HTMLElement | null;\n  bubbles: boolean;\n}\n\nconst BubbleInput = (props: BubbleInputProps) => {\n  const { control, checked, bubbles = true, ...inputProps } = props;\n  const ref = React.useRef<HTMLInputElement>(null);\n  const prevChecked = usePrevious(checked);\n  const controlSize = useSize(control);\n\n  // Bubble checked change to parents (e.g form change event)\n  React.useEffect(() => {\n    const input = ref.current!;\n    const inputProto = window.HTMLInputElement.prototype;\n    const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked') as PropertyDescriptor;\n    const setChecked = descriptor.set;\n\n    if (prevChecked !== checked && setChecked) {\n      const event = new Event('click', { bubbles });\n      input.indeterminate = isIndeterminate(checked);\n      setChecked.call(input, isIndeterminate(checked) ? false : checked);\n      input.dispatchEvent(event);\n    }\n  }, [prevChecked, checked, bubbles]);\n\n  return (\n    <input\n      type=\"checkbox\"\n      aria-hidden\n      defaultChecked={isIndeterminate(checked) ? false : checked}\n      {...inputProps}\n      tabIndex={-1}\n      ref={ref}\n      style={{\n        ...props.style,\n        ...controlSize,\n        position: 'absolute',\n        pointerEvents: 'none',\n        opacity: 0,\n        margin: 0,\n      }}\n    />\n  );\n};\n\nfunction isIndeterminate(checked?: CheckedState): checked is 'indeterminate' {\n  return checked === 'indeterminate';\n}\n\nfunction getState(checked: CheckedState) {\n  return isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';\n}\n\nconst Root = Checkbox;\nconst Indicator = CheckboxIndicator;\n\nexport {\n  createCheckboxScope,\n  //\n  Checkbox,\n  CheckboxIndicator,\n  //\n  Root,\n  Indicator,\n};\nexport type { CheckboxProps, CheckboxIndicatorProps };\n"],"mappings":";;;;;;;;;;;ACaA;;;AAIA,MAAMA,mCAAa,GAAG,UAAtB;AAGA,MAAM,CAACC,2CAAD,EAAwBC,yCAAxB,IAA+CC,yBAAkB,CAACH,mCAAD,CAAvE;AASA,MAAM,CAACI,sCAAD,EAAmBC,wCAAnB,IACJJ,2CAAqB,CAAuBD,mCAAvB,CADvB;AAYA,MAAMM,yCAAQ,gBAAGC,iBAAA,CACf,CAACC,KAAD,EAAoCC,YAApC,KAAqD;EACnD,MAAM;qBACJC,eADI;UAEJC,IAFI;IAGJC,OAAO,EAAEC,WAHL;oBAIJC,cAJI;cAKJC,QALI;cAMJC,QANI;IAOJC,KAAK,GAAG,IAPJ;qBAQJC,eARI;IASJ,GAAGC;EAAH,CATI,GAUFX,KAVJ;EAWA,MAAM,CAACY,MAAD,EAASC,SAAT,IAAsBC,eAAA,CAAyC,IAAzC,CAA5B;EACA,MAAMC,YAAY,GAAGC,sBAAe,CAACf,YAAD,EAAgBgB,IAAD,IAAUJ,SAAS,CAACI,IAAD,CAAlC,CAApC;EACA,MAAMC,gCAAgC,GAAGC,aAAA,CAAa,KAAb,CAAzC,CAdmD,CAenD;EACA,MAAMC,aAAa,GAA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