"use strict";

exports.__esModule = true;
exports.HiddenCheckboxInput = exports.Checkbox = void 0;
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _flex = _interopRequireDefault(require("../templates/flex"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
var HiddenCheckboxInput = exports.HiddenCheckboxInput = _styledComponents["default"].input.attrs({
  type: "checkbox"
}).withConfig({
  displayName: "styled__HiddenCheckboxInput",
  componentId: "sc-1qof7za-0"
})(["border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;"]);
var Checkbox = exports.Checkbox = (0, _styledComponents["default"])(_flex["default"]).attrs(function (props) {
  return _extends({
    width: "16px",
    height: "16px",
    round: 0.5,
    background: "inputBg",
    backgroundOpacity: props.disabled ? 0.4 : 1,
    alignItems: "center",
    border: props.error ? "error" : "inputBorder",
    _hover: {
      border: props.disabled ? "inputBorder" : props.error ? "errorText" : "inputBorderHover"
    },
    _focus: {
      border: props.disabled ? "inputBorder" : props.error ? "errorText" : "inputBorderFocus"
    }
  }, props);
}).withConfig({
  displayName: "styled__Checkbox",
  componentId: "sc-1qof7za-1"
})([""]);