import { Component, Inject } from '@angular/core';
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy-dialog';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/legacy-dialog";
import * as i2 from "@angular/common";
import * as i3 from "@angular/material/icon";
import * as i4 from "@ngx-translate/core";
export class ConfirmDialogComponent {
    constructor(dialogRef, data) {
        this.dialogRef = dialogRef;
        this.data = data;
    }
    ngOnInit() {
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: i1.MatLegacyDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ConfirmDialogComponent, selector: "ws-widget-confirm-dialog", ngImport: i0, template: "<ng-container *ngIf=\"data && data?.from !== 'assessment' && data?.from !== 'approvedDomain' && data?.from !== 'openLanguageDialog' &&\ndata?.from !== 'openConfirmDialoge'\">\n  <div mat-dialog-content>\n    <ng-container *ngIf=\"data.title\">\n      <div class=\"dialog-header\">\n          <h1 class=\"mr-2 text-center\" mat-dialog-title>{{data.title}}</h1>\n          <mat-icon class=\"mat-icon notranslate material-icons close-icon\" matprefix=\"\" role=\"img\" aria-hidden=\"true\" [mat-dialog-close]=\"false\">close</mat-icon>\n      </div>\n    </ng-container>\n  <p class=\"text-center\">{{data.message}}</p>\n  </div>\n  <div class=\"flex btn-wrapper\" mat-dialog-actions>\n    <ng-container *ngIf=\"data.cancelButton\">\n      <button class=\"blue-border mat-stroked-button mat-accent cancelButton\" mat-button [mat-dialog-close]=\"false\" >{{data.cancelButton}}</button>\n    </ng-container>\n    <button class=\"mat-button mat-button-base text-white acceptbtn\" mat-button [mat-dialog-close]=\"data\" cdkFocusInitial>{{data.acceptButton}}</button>\n  </div>\n</ng-container>\n\n<ng-container *ngIf=\"data?.from === 'assessment'\">\n  <div mat-dialog-content class=\"confirmation-dialog-container\">\n    <div class=\"dialog-header\">\n        <h1 class=\"mr-2\" mat-dialog-title></h1>\n        <!-- <mat-icon class=\"mat-icon notranslate material-icons close-icon\" matprefix=\"\" role=\"img\" aria-hidden=\"true\" [mat-dialog-close]=\"false\">close</mat-icon> -->\n    </div>\n  <p class=\"message\">{{'playerbrief.assessmentBackConfirm' | translate}}</p>\n</div>\n<div class=\"flex btn-wrapper\" mat-dialog-actions>\n  <button class=\"blue-border mat-stroked-button mat-accent cancelButton\" mat-button [mat-dialog-close]=\"false\" >{{'playerbrief.assessmentBackCancelBtn' | translate}}</button>\n  <button class=\"mat-button mat-button-base text-white acceptbtn\" mat-button [mat-dialog-close]=\"data\" cdkFocusInitial>{{'playerbrief.assessmentBackConfirmBtn' | translate}}</button>\n</div>\n</ng-container>\n\n<ng-container *ngIf=\"data?.from === 'approvedDomain'\">\n  <div mat-dialog-content class=\"confirmation-dialog-container width-380\">\n    <div class=\"dialog-header\">\n        <mat-icon class=\"text-center notranslate material-icons info-icon\" matprefix=\"\" role=\"img\" aria-hidden=\"true\" [mat-dialog-close]=\"false\" height=\"24px\" width=\"24px\">info_outline</mat-icon>\n    </div>\n    <div class=\"domain-msg-wrapper\">\n      <p class=\"domain-message\">{{'profileInfo.emailApprovedPopupMsg' | translate}}</p>\n      <p class=\"domain-sub-message\">{{'profileInfo.emailApprovedPopupSubmsg' | translate}}</p>\n    </div> \n</div>\n\n<div class=\"flex btn-wrapper\" mat-dialog-actions>\n  <button class=\"mat-button mat-button-base text-white okButton\" mat-button [mat-dialog-close]=\"data\" cdkFocusInitial>{{'profileInfo.ok' | translate}}</button>\n</div>\n</ng-container>\n\n<ng-container *ngIf=\"data && data?.from === 'openConfirmDialoge'\">\n  <div class=\"flex flex-col items-center justify-center text-center\">\n    <img src=\"assets/icons/translate.svg\" alt=\"Congratulations Badge\" class=\"congrats-badge\">\n    <p class=\"mat-subheading-2\"> {{ data?.header}} </p>\n    <p class=\"mat-body-2\"> {{ data?.message}} </p>\n\n    <mat-dialog-actions align=\"end\">\n      <button  mat-dialog-close class=\"close-btn submit-btn\">{{ data.cancelButton}}</button>\n      <button [mat-dialog-close]=\"true\" class=\"accept-btn submit-btn\">{{ data.acceptButton}}</button>\n    </mat-dialog-actions>\n  </div>\n\n</ng-container>", styles: [".dialog-header{display:flex;align-items:flex-start;justify-content:space-between;position:relative}.dialog-header h1{opacity:1;color:#000000de;font-size:16px;font-weight:600;font-style:normal;letter-spacing:.12px;text-align:left;line-height:24px}.dialog-header h1{margin-right:16px}.close-icon{cursor:pointer}.acceptbtn{background:no-repeat padding-box #1b4ca1!important;border-radius:63px;max-width:auto!important;height:40px!important;color:#fff!important;width:182px!important;font-family:Lato;font-size:14px;font-weight:700;line-height:20px}.cancelButton{background:no-repeat padding-box #fff!important;border-radius:63px;max-width:auto!important;height:40px!important;color:#1b4ca1!important;width:182px!important;border:1px solid #1b4ca1!important;font-family:Lato;font-size:14px;font-weight:700;line-height:20px}.okButton{background:no-repeat padding-box #1b4ca1!important;max-width:auto!important;color:#fff!important;width:182px!important;font-family:Lato;padding:12px 16px;border-radius:20px;cursor:pointer;line-height:16px;font-size:14px;font-weight:700;width:100px!important}.message{font-family:Montserrat;font-size:16px;letter-spacing:.12px;line-height:24px;color:#000000de;text-align:center;font-weight:600}.btn-wrapper{align-items:center;justify-content:center;gap:16px;margin-bottom:0}@media screen and (max-width: 768px){::ng-deep .cdk-overlay-pane{max-width:100vw!important;pointer-events:auto;position:absolute!important;bottom:0!important}::ng-deep .info-icon{transform:scale(1)!important}}::ng-deep .mat-dialog-container{border-radius:8px!important}.width-380{width:380px;max-width:75vw}.dialog-header{display:flex;justify-content:center;align-items:center}.dialog-header .mat-icon{height:26px;width:26px;color:#f3962f;transform:scale(1.2)}.domain-msg-wrapper{text-align:center}.domain-msg-wrapper .domain-message{font-size:16px;color:#1b4ca1}.domain-msg-wrapper .domain-message .font-bold700{font-weight:700}.domain-msg-wrapper .domain-sub-message{font-size:14px}.lang-msg-wrapper{text-align:left;border:1px solid #E0E0E0;border-radius:8px;padding:8px;margin-top:8px;box-sizing:border-box}.confirmation-dialog-container .dialog-header{justify-content:space-between!important}.confirmation-dialog-container .dialog-header .close-icon{color:#817c7c;background-color:#fff}.submit-btn{padding:8px 12px;border-radius:4px;box-sizing:border-box;height:40px;font-size:14px;font-weight:700;cursor:pointer}.accept-btn{color:#fff;background:no-repeat padding-box #1b4ca1!important;margin-left:8px;border:1px solid #1b4ca1}.close-btn{color:#1b4ca1;background-color:#fff;border:1px solid #1b4ca1}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.MatLegacyDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1.MatLegacyDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatLegacyDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1.MatLegacyDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ws-widget-confirm-dialog', template: "<ng-container *ngIf=\"data && data?.from !== 'assessment' && data?.from !== 'approvedDomain' && data?.from !== 'openLanguageDialog' &&\ndata?.from !== 'openConfirmDialoge'\">\n  <div mat-dialog-content>\n    <ng-container *ngIf=\"data.title\">\n      <div class=\"dialog-header\">\n          <h1 class=\"mr-2 text-center\" mat-dialog-title>{{data.title}}</h1>\n          <mat-icon class=\"mat-icon notranslate material-icons close-icon\" matprefix=\"\" role=\"img\" aria-hidden=\"true\" [mat-dialog-close]=\"false\">close</mat-icon>\n      </div>\n    </ng-container>\n  <p class=\"text-center\">{{data.message}}</p>\n  </div>\n  <div class=\"flex btn-wrapper\" mat-dialog-actions>\n    <ng-container *ngIf=\"data.cancelButton\">\n      <button class=\"blue-border mat-stroked-button mat-accent cancelButton\" mat-button [mat-dialog-close]=\"false\" >{{data.cancelButton}}</button>\n    </ng-container>\n    <button class=\"mat-button mat-button-base text-white acceptbtn\" mat-button [mat-dialog-close]=\"data\" cdkFocusInitial>{{data.acceptButton}}</button>\n  </div>\n</ng-container>\n\n<ng-container *ngIf=\"data?.from === 'assessment'\">\n  <div mat-dialog-content class=\"confirmation-dialog-container\">\n    <div class=\"dialog-header\">\n        <h1 class=\"mr-2\" mat-dialog-title></h1>\n        <!-- <mat-icon class=\"mat-icon notranslate material-icons close-icon\" matprefix=\"\" role=\"img\" aria-hidden=\"true\" [mat-dialog-close]=\"false\">close</mat-icon> -->\n    </div>\n  <p class=\"message\">{{'playerbrief.assessmentBackConfirm' | translate}}</p>\n</div>\n<div class=\"flex btn-wrapper\" mat-dialog-actions>\n  <button class=\"blue-border mat-stroked-button mat-accent cancelButton\" mat-button [mat-dialog-close]=\"false\" >{{'playerbrief.assessmentBackCancelBtn' | translate}}</button>\n  <button class=\"mat-button mat-button-base text-white acceptbtn\" mat-button [mat-dialog-close]=\"data\" cdkFocusInitial>{{'playerbrief.assessmentBackConfirmBtn' | translate}}</button>\n</div>\n</ng-container>\n\n<ng-container *ngIf=\"data?.from === 'approvedDomain'\">\n  <div mat-dialog-content class=\"confirmation-dialog-container width-380\">\n    <div class=\"dialog-header\">\n        <mat-icon class=\"text-center notranslate material-icons info-icon\" matprefix=\"\" role=\"img\" aria-hidden=\"true\" [mat-dialog-close]=\"false\" height=\"24px\" width=\"24px\">info_outline</mat-icon>\n    </div>\n    <div class=\"domain-msg-wrapper\">\n      <p class=\"domain-message\">{{'profileInfo.emailApprovedPopupMsg' | translate}}</p>\n      <p class=\"domain-sub-message\">{{'profileInfo.emailApprovedPopupSubmsg' | translate}}</p>\n    </div> \n</div>\n\n<div class=\"flex btn-wrapper\" mat-dialog-actions>\n  <button class=\"mat-button mat-button-base text-white okButton\" mat-button [mat-dialog-close]=\"data\" cdkFocusInitial>{{'profileInfo.ok' | translate}}</button>\n</div>\n</ng-container>\n\n<ng-container *ngIf=\"data && data?.from === 'openConfirmDialoge'\">\n  <div class=\"flex flex-col items-center justify-center text-center\">\n    <img src=\"assets/icons/translate.svg\" alt=\"Congratulations Badge\" class=\"congrats-badge\">\n    <p class=\"mat-subheading-2\"> {{ data?.header}} </p>\n    <p class=\"mat-body-2\"> {{ data?.message}} </p>\n\n    <mat-dialog-actions align=\"end\">\n      <button  mat-dialog-close class=\"close-btn submit-btn\">{{ data.cancelButton}}</button>\n      <button [mat-dialog-close]=\"true\" class=\"accept-btn submit-btn\">{{ data.acceptButton}}</button>\n    </mat-dialog-actions>\n  </div>\n\n</ng-container>", styles: [".dialog-header{display:flex;align-items:flex-start;justify-content:space-between;position:relative}.dialog-header h1{opacity:1;color:#000000de;font-size:16px;font-weight:600;font-style:normal;letter-spacing:.12px;text-align:left;line-height:24px}.dialog-header h1{margin-right:16px}.close-icon{cursor:pointer}.acceptbtn{background:no-repeat padding-box #1b4ca1!important;border-radius:63px;max-width:auto!important;height:40px!important;color:#fff!important;width:182px!important;font-family:Lato;font-size:14px;font-weight:700;line-height:20px}.cancelButton{background:no-repeat padding-box #fff!important;border-radius:63px;max-width:auto!important;height:40px!important;color:#1b4ca1!important;width:182px!important;border:1px solid #1b4ca1!important;font-family:Lato;font-size:14px;font-weight:700;line-height:20px}.okButton{background:no-repeat padding-box #1b4ca1!important;max-width:auto!important;color:#fff!important;width:182px!important;font-family:Lato;padding:12px 16px;border-radius:20px;cursor:pointer;line-height:16px;font-size:14px;font-weight:700;width:100px!important}.message{font-family:Montserrat;font-size:16px;letter-spacing:.12px;line-height:24px;color:#000000de;text-align:center;font-weight:600}.btn-wrapper{align-items:center;justify-content:center;gap:16px;margin-bottom:0}@media screen and (max-width: 768px){::ng-deep .cdk-overlay-pane{max-width:100vw!important;pointer-events:auto;position:absolute!important;bottom:0!important}::ng-deep .info-icon{transform:scale(1)!important}}::ng-deep .mat-dialog-container{border-radius:8px!important}.width-380{width:380px;max-width:75vw}.dialog-header{display:flex;justify-content:center;align-items:center}.dialog-header .mat-icon{height:26px;width:26px;color:#f3962f;transform:scale(1.2)}.domain-msg-wrapper{text-align:center}.domain-msg-wrapper .domain-message{font-size:16px;color:#1b4ca1}.domain-msg-wrapper .domain-message .font-bold700{font-weight:700}.domain-msg-wrapper .domain-sub-message{font-size:14px}.lang-msg-wrapper{text-align:left;border:1px solid #E0E0E0;border-radius:8px;padding:8px;margin-top:8px;box-sizing:border-box}.confirmation-dialog-container .dialog-header{justify-content:space-between!important}.confirmation-dialog-container .dialog-header .close-icon{color:#817c7c;background-color:#fff}.submit-btn{padding:8px 12px;border-radius:4px;box-sizing:border-box;height:40px;font-size:14px;font-weight:700;cursor:pointer}.accept-btn{color:#fff;background:no-repeat padding-box #1b4ca1!important;margin-left:8px;border:1px solid #1b4ca1}.close-btn{color:#1b4ca1;background-color:#fff;border:1px solid #1b4ca1}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.MatLegacyDialogRef }, { type: undefined, decorators: [{
                    type: Inject,
                    args: [MAT_DIALOG_DATA]
                }] }]; } });
//# sourceMappingURL=data:application/json;base64, 