this.primevue = this.primevue || {};
this.primevue.toggleswitch = this.primevue.toggleswitch || {};
this.primevue.toggleswitch.style = (function (BaseStyle) {
    'use strict';

    function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

    var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);

    var theme = function theme(_ref) {
      var dt = _ref.dt;
      return "\n.p-toggleswitch {\n    display: inline-block;\n    width: 2.5rem;\n    height: 1.5rem;\n}\n\n.p-toggleswitch-input {\n    cursor: pointer;\n    appearance: none;\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    padding: 0;\n    margin: 0;\n    opacity: 0;\n    z-index: 1;\n    outline: 0 none;\n    border-radius: ".concat(dt('toggleswitch.border.radius'), ";\n}\n\n.p-toggleswitch-slider {\n    position: absolute;\n    cursor: pointer;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    border: 0 none;\n    background: ").concat(dt('toggleswitch.background'), ";\n    transition: background ").concat(dt('transition.duration'), ", color ").concat(dt('transition.duration'), ", border-color ").concat(dt('transition.duration'), ", box-shadow ").concat(dt('transition.duration'), ", outline-color ").concat(dt('transition.duration'), ";\n    border-radius: ").concat(dt('toggleswitch.border.radius'), ";\n    outline-color: transparent;\n}\n\n.p-toggleswitch-slider:before {\n    position: absolute;\n    content: \"\";\n    top: 50%;\n    background: ").concat(dt('toggleswitch.handle.background'), ";\n    width: 1rem;\n    height: 1rem;\n    left: 0.25rem;\n    margin-top: -0.5rem;\n    border-radius: ").concat(dt('toggleswitch.handle.border.radius'), ";\n    transition: all ").concat(dt('transition.duration'), ";\n}\n\n.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider {\n    background: ").concat(dt('toggleswitch.checked.background'), ";\n}\n\n.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider:before {\n    background: ").concat(dt('toggleswitch.handle.checked.background'), ";\n    left: 1.25rem;\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider {\n    background: ").concat(dt('toggleswitch.hover.background'), ";\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider:before {\n    background: ").concat(dt('toggleswitch.handle.hover.background'), ";\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider {\n    background: ").concat(dt('toggleswitch.checked.hover.background'), ";\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider:before {\n    background: ").concat(dt('toggleswitch.handle.checked.hover.background'), ";\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider {\n    outline: ").concat(dt('focus.ring.width'), " ").concat(dt('focus.ring.style'), " ").concat(dt('focus.ring.color'), ";\n    outline-offset: ").concat(dt('focus.ring.offset'), ";\n}\n\n.p-toggleswitch.p-invalid > .p-toggleswitch-slider {\n    background: ").concat(dt('toggleswitch.invalid.background'), ";\n}\n\n.p-toggleswitch.p-invalid > .p-toggleswitch-slider:before {\n    background: ").concat(dt('toggleswitch.handle.invalid.background'), ";\n}\n");
    };
    var inlineStyles = {
      root: {
        position: 'relative'
      }
    };
    var classes = {
      root: function root(_ref2) {
        var instance = _ref2.instance,
          props = _ref2.props;
        return ['p-toggleswitch p-component', {
          'p-toggleswitch-checked': instance.checked,
          'p-disabled': props.disabled,
          'p-invalid': props.invalid
        }];
      },
      input: 'p-toggleswitch-input',
      slider: 'p-toggleswitch-slider'
    };
    var ToggleSwitchStyle = BaseStyle__default["default"].extend({
      name: 'toggleswitch',
      theme: theme,
      classes: classes,
      inlineStyles: inlineStyles
    });

    return ToggleSwitchStyle;

})(primevue.base.style);
