import { Component } from '@angular/core';
import { MatDialogModule } from '@angular/material/dialog';
// import { MatDialogActions, MatDialogClose, MatDialogContent, MatDialogTitle } from '@angular/material/dialog';
import { MatButtonModule } from '@angular/material/button';
import { TranslateModule } from '@ngx-translate/core';
import { LanguageEnum } from '@testlocallibrary/shared-kernel/models/enums';
import * as i0 from "@angular/core";
import * as i1 from "@testlocallibrary/shared-kernel/services/error-handler-pop-up-state";
import * as i2 from "@testlocallibrary/shared-kernel/services/language";
import * as i3 from "@angular/material/button";
import * as i4 from "@angular/cdk/bidi";
import * as i5 from "@angular/material/dialog";
export 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 }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItcG9wdXAuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2hhcmVkLWtlcm5lbC9jb21wb25lbnRzL2Vycm9yLXBvcHVwL3NyYy9lcnJvci1wb3B1cC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaGFyZWQta2VybmVsL2NvbXBvbmVudHMvZXJyb3ItcG9wdXAvc3JjL2Vycm9yLXBvcHVwLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzNELGlIQUFpSDtBQUNqSCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFFM0QsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBRXRELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSw4Q0FBOEMsQ0FBQzs7Ozs7OztBQVM1RSxNQUFNLE9BQU8sbUJBQW1CO0lBRzlCLFlBQW9CLFlBQTBDLEVBQVUsZUFBK0I7UUFBbkYsaUJBQVksR0FBWixZQUFZLENBQThCO1FBQVUsb0JBQWUsR0FBZixlQUFlLENBQWdCO1FBRnZHLGFBQVEsR0FBUSxFQUFFLENBQUM7UUFDbkIsaUJBQVksR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