"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
var _chunkEY5IIETTcjs = require('./chunk-EY5IIETT.cjs');var _chunkZJDXJT76cjs = require('./chunk-ZJDXJT76.cjs');var _chunk5KRCPBZRcjs = require('./chunk-5KRCPBZR.cjs');var _react = require('react');var _freesolidsvgicons = require('@fortawesome/free-solid-svg-icons');var _reactfontawesome = require('@fortawesome/react-fontawesome');var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var _jsxruntime = require('react/jsx-runtime');var h=_react.forwardRef.call(void 0, ({className:x,indeterminate:o,name:d,value:k,...f},C)=>{let{checked:s,disabled:I,focusVisible:N,getInputProps:S,readOnly:w}=_chunkZJDXJT76cjs.a.call(void 0, f),t=_react.useRef.call(void 0, null),a=_chunk5KRCPBZRcjs.i.call(void 0, C,t),y=_chunk5KRCPBZRcjs.d.call(void 0, f),e=_chunkEY5IIETTcjs.a.call(void 0, {checked:s,disabled:I,focusVisible:N,indeterminate:o,readOnly:w});return _react.useEffect.call(void 0, ()=>{_optionalChain([t, 'optionalAccess', _ => _.current])&&typeof o<"u"&&(t.current.indeterminate=o)},[o,a]),_jsxruntime.jsxs.call(void 0, _chunkEY5IIETTcjs.e,{className:_clsx2.default.call(void 0, x,e.root),children:[s&&_jsxruntime.jsx.call(void 0, _reactfontawesome.FontAwesomeIcon,{className:_clsx2.default.call(void 0, e.icon),icon:_freesolidsvgicons.faCheck}),o&&!s&&_jsxruntime.jsx.call(void 0, _reactfontawesome.FontAwesomeIcon,{className:_clsx2.default.call(void 0, e.icon),icon:_freesolidsvgicons.faMinus}),_jsxruntime.jsx.call(void 0, _chunkEY5IIETTcjs.f,{...S(),...y,className:_clsx2.default.call(void 0, e.input),name:d,ref:a,type:"checkbox",value:k})]})});h.displayName="Checkbox";var F=h;exports.a = F;
