/**
 * @fileoverview added by tsickle
 * Generated from: lib/user/settings/theme/theme.service.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Injectable, RendererFactory2, Inject } from '@angular/core';
import { DOCUMENT } from '@angular/common';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
var ThemeService = /** @class */ (function () {
    function ThemeService(rendererFactory, document) {
        this.rendererFactory = rendererFactory;
        this.document = document;
        this.renderer = this.rendererFactory.createRenderer(null, null);
    }
    /**
     * @return {?}
     */
    ThemeService.prototype.enableDark = /**
     * @return {?}
     */
    function () {
        this.renderer.addClass(this.document.body, 'dark-theme');
    };
    /**
     * @return {?}
     */
    ThemeService.prototype.enableLight = /**
     * @return {?}
     */
    function () {
        this.renderer.removeClass(this.document.body, 'dark-theme');
    };
    ThemeService.decorators = [
        { type: Injectable, args: [{
                    providedIn: 'root'
                },] }
    ];
    /** @nocollapse */
    ThemeService.ctorParameters = function () { return [
        { type: RendererFactory2 },
        { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
    ]; };
    /** @nocollapse */ ThemeService.ngInjectableDef = i0.defineInjectable({ factory: function ThemeService_Factory() { return new ThemeService(i0.inject(i0.RendererFactory2), i0.inject(i1.DOCUMENT)); }, token: ThemeService, providedIn: "root" });
    return ThemeService;
}());
export { ThemeService };
if (false) {
    /** @type {?} */
    ThemeService.prototype.renderer;
    /**
     * @type {?}
     * @private
     */
    ThemeService.prototype.rendererFactory;
    /**
     * @type {?}
     * @private
     */
    ThemeService.prototype.document;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWUuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpbmNsb3VkZWQvaW9uaWM0LWluY2xvdWRlZC1saWIvIiwic291cmNlcyI6WyJsaWIvdXNlci9zZXR0aW5ncy90aGVtZS90aGVtZS5zZXJ2aWNlLnRzIl0sIm5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