"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.StyledToggleSliderOn = exports.StyledToggleSliderOff = exports.StyledToggleSlider = exports.StyledToggleCheckbox = exports.StyledToggle = void 0;
var _styledComponents = _interopRequireWildcard(require("styled-components"));
var _BoxSizingStyle = require("../BoxSizingStyle");
var _FontStyle = require("../FontStyle");
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
var StyledToggleSlider = exports.StyledToggleSlider = _styledComponents.default.div.withConfig({
  displayName: "Styles__StyledToggleSlider",
  componentId: "sc-4n6vdf-0"
})(["padding-left:6px;position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-evenly;background-color:transparent;border:1px solid var(--color-theme-600);overflow:hidden;border-radius:12.5px;font-size:11px;transition:0.3s;&::before{position:absolute;content:\"\";user-select:none;height:16px;width:16px;left:4px;bottom:3px;background-color:var(--color-theme-600);border-radius:50%;transition:0.3s;}"]);
StyledToggleSlider.displayName = "StyledToggleSlider";
var StyledToggleSliderOff = exports.StyledToggleSliderOff = _styledComponents.default.div.withConfig({
  displayName: "Styles__StyledToggleSliderOff",
  componentId: "sc-4n6vdf-1"
})(["user-select:none;transform:translateX(-3px);opacity:1;transition-duration:0.3s;white-space:nowrap;color:var(--color-theme-600);"]);
StyledToggleSliderOff.displayName = "StyledToggleSliderOff";
var StyledToggleSliderOn = exports.StyledToggleSliderOn = _styledComponents.default.div.withConfig({
  displayName: "Styles__StyledToggleSliderOn",
  componentId: "sc-4n6vdf-2"
})(["user-select:none;transform:translateX(-30px);opacity:0;transition-duration:0.3s;white-space:nowrap;color:var(--page-paper-main);"]);
StyledToggleSliderOn.displayName = "StyledToggleSliderOn";
var StyledToggleCheckbox = exports.StyledToggleCheckbox = _styledComponents.default.input.withConfig({
  displayName: "Styles__StyledToggleCheckbox",
  componentId: "sc-4n6vdf-3"
})(["opacity:0;width:0;height:0;&:checked + ", ":before{background-color:var(--page-paper-main);transform:translateX(25px);}&:checked + ", "{border-color:var(--color-sucess-green);background-color:var(--color-sucess-green);color:var(--color-sucess-green);", "{transform:translateX(30px);opacity:0;}", "{transform:translateX(0);opacity:1;}}&:disabled + ", "{opacity:0.5;cursor:default;}"], StyledToggleSlider, StyledToggleSlider, StyledToggleSliderOff, StyledToggleSliderOn, StyledToggleSlider);
StyledToggleCheckbox.displayName = "StyledToggleCheckbox";
var StyledHelper = (0, _styledComponents.css)(["", "{transform:translateX(0);}", " + ", ":before{transform:translateX(3px);}", ":checked + ", "{&::before{transform:translateX(23px);}", "{transform:translateX(-2px);}}"], StyledToggleSliderOff, StyledToggleCheckbox, StyledToggleSlider, StyledToggleCheckbox, StyledToggleSlider, StyledToggleSliderOn);
var StyledToggle = exports.StyledToggle = _styledComponents.default.label.withConfig({
  displayName: "Styles__StyledToggle",
  componentId: "sc-4n6vdf-4"
})(["", " ", " position:relative;display:inline-block;width:50px;height:24px;font-size:13px;font-weight:bold;line-height:13px;border-radius:12.5px;&:hover{", "}&:focus{outline:1px solid var(--color-sucess-green);outline-offset:4px;}", ""], _FontStyle.FontStyle, _BoxSizingStyle.BoxSizingStyle, StyledHelper, function (props) {
  return props.$isHovered && (0, _styledComponents.css)(["", ""], StyledHelper);
});
StyledToggle.displayName = "StyledToggle";
//# sourceMappingURL=Styles.js.map