import { Component } from '@angular/core';
import { LoginService } from 'dotcms-js/dotcms-js';
import * as $ from './semantic/assets/jquery.min.js';
window['$'] = $;
window['jQuery'] = $;
var AppRulesComponent = (function () {
    function AppRulesComponent(loginService) {
        this.loginService = loginService;
    }
    AppRulesComponent.prototype.ngOnInit = function () {
        // TODO: need to find a better wat to login
        if (!this.loginService.auth) {
            this.loginService.loginUser('admin@dotcms.com', 'admin', false, 'en-US').subscribe(function (res) {
                console.log('fake login', res);
            });
        }
    };
    return AppRulesComponent;
}());
export { AppRulesComponent };
AppRulesComponent.decorators = [
    { type: Component, args: [{
                selector: 'app-rules',
                template: '<cw-rule-engine-container class="rules__engine-container" *ngIf="this.loginService.auth"></cw-rule-engine-container>'
            },] },
];
/** @nocollapse */
AppRulesComponent.ctorParameters = function () { return [
    { type: LoginService, },
]; };
//# sourceMappingURL=app.component.js.map