import * as i0 from '@angular/core';
import { Component } from '@angular/core';
import * as i5 from '@angular/material/dialog';
import { MatDialogModule } from '@angular/material/dialog';
import * as i3 from '@angular/material/button';
import { MatButtonModule } from '@angular/material/button';
import { TranslateModule } from '@ngx-translate/core';
import { LanguageEnum } from '@testlocallibrary/shared-kernel/models/enums';
import * as i1 from '@testlocallibrary/shared-kernel/services/error-handler-pop-up-state';
import * as i2 from '@testlocallibrary/shared-kernel/services/language';
import * as i4 from '@angular/cdk/bidi';

class ErrorPopupComponent {
    constructor(popUpService, languageService) {
        this.popUpService = popUpService;
        this.languageService = languageService;
        this.language = "";
        this.LanguageEnum = LanguageEnum;
        this.language = languageService.getLanguage();
    }
    close() {
        this.popUpService.setIsPopUpOpenState(false);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorPopupComponent, deps: [{ token: i1.ErrorHandlerPopUpStateService }, { token: i2.LanguageService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ErrorPopupComponent, isStandalone: true, selector: "lib-error-popup", ngImport: i0, template: "<div\r\n  [class.ar]=\"language == LanguageEnum.Ar\"\r\n  [dir]=\"language == LanguageEnum.Ar ? 'rtl' : 'ltr'\"\r\n>\r\n  <div class=\"mat-header mat-error\">\r\n    <div>\r\n      <p mat-dialog-title>\r\n        <!-- {{ \"errorHandler.errorTitle\" | translate }} -->\r\n      </p>\r\n    </div>\r\n    <div><i class=\"icon-warning\"></i></div>\r\n  </div>\r\n\r\n  <mat-dialog-content>\r\n    <!-- {{\r\n    \"errorHandler.errorMsg\" | translate\r\n  }} -->\r\n  </mat-dialog-content>\r\n  <mat-dialog-actions>\r\n    <button mat-button mat-dialog-close (click)=\"close()\">\r\n      <!-- {{ \"errorHandler.closeActionButtonText\" | translate }} -->\r\n    </button>\r\n  </mat-dialog-actions>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: "    button[mat-button], button[mat-raised-button], button[mat-flat-button],    button[mat-stroked-button]  ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4.Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i5.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i5.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i5.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i5.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "ngmodule", type: TranslateModule }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorPopupComponent, decorators: [{
            type: Component,
            args: [{ selector: 'lib-error-popup', standalone: true, imports: [MatButtonModule, MatDialogModule, TranslateModule], template: "<div\r\n  [class.ar]=\"language == LanguageEnum.Ar\"\r\n  [dir]=\"language == LanguageEnum.Ar ? 'rtl' : 'ltr'\"\r\n>\r\n  <div class=\"mat-header mat-error\">\r\n    <div>\r\n      <p mat-dialog-title>\r\n        <!-- {{ \"errorHandler.errorTitle\" | translate }} -->\r\n      </p>\r\n    </div>\r\n    <div><i class=\"icon-warning\"></i></div>\r\n  </div>\r\n\r\n  <mat-dialog-content>\r\n    <!-- {{\r\n    \"errorHandler.errorMsg\" | translate\r\n  }} -->\r\n  </mat-dialog-content>\r\n  <mat-dialog-actions>\r\n    <button mat-button mat-dialog-close (click)=\"close()\">\r\n      <!-- {{ \"errorHandler.closeActionButtonText\" | translate }} -->\r\n    </button>\r\n  </mat-dialog-actions>\r\n</div>\r\n" }]
        }], ctorParameters: function () { return [{ type: i1.ErrorHandlerPopUpStateService }, { type: i2.LanguageService }]; } });

/**
 * Generated bundle index. Do not edit.
 */

export { ErrorPopupComponent };
//# sourceMappingURL=testlocallibrary-shared-kernel-components-error-popup.mjs.map
