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";
export class AiTutorConfirmPopupComponent {
    constructor(dialogRef, data) {
        this.dialogRef = dialogRef;
        this.data = data;
    }
    close() {
        this.dialogRef.close();
    }
    enrollNow(_enroll) {
        if (this.data.enroll) {
            this.dialogRef.close('enroll');
        }
        else {
            this.dialogRef.close('needToEnroll');
        }
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AiTutorConfirmPopupComponent, 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: AiTutorConfirmPopupComponent, selector: "ws-widget-ai-tutor-confirm-popup", ngImport: i0, template: "<div mat-dialog-content>\n  <div class=\"flex justify-center text-center\">\n    <img src=\"assets/icons/bot-chat-big.svg\"/>\n  </div>\n  <div class=\"text-center blue-text mt-3\">\n    Hey, it seems you are not enrolled. Do you want to enroll?\n  </div>\n</div>\n<div mat-dialog-actions class=\"flex flex-row mt-4 mx-10\">\n  <button mat-button class=\"cancel-btn\" (click)=\"close()\" >No</button>\n  <button mat-raised-button color='primary' class=\"action-btn mx-3\" (click)=\"enrollNow(true)\" cdkFocusInitial >\n    {{data.enroll ? 'Resume' : 'Enroll Now'}}\n  </button>\n</div>", styles: [".blue-text{color:#1b4ca1}.action-btn{opacity:1;color:#fff;font-family:Lato-Bold,sans-serif;font-size:14px;font-weight:700;font-style:normal;letter-spacing:.5px;text-align:center;line-height:20px;background:#1a4ca1;border-radius:64px;padding:8px 16px;border:none;width:100%;cursor:pointer}.cancel-btn{opacity:1;color:#1a4ca1;font-family:Lato-Bold,sans-serif;font-size:14px;font-weight:700;font-style:normal;letter-spacing:.5px;text-align:center;line-height:20px;background:#fff;border-radius:64px;padding:8px 16px;width:100%;border-color:#1a4ca1;cursor:pointer}\n"] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AiTutorConfirmPopupComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ws-widget-ai-tutor-confirm-popup', template: "<div mat-dialog-content>\n  <div class=\"flex justify-center text-center\">\n    <img src=\"assets/icons/bot-chat-big.svg\"/>\n  </div>\n  <div class=\"text-center blue-text mt-3\">\n    Hey, it seems you are not enrolled. Do you want to enroll?\n  </div>\n</div>\n<div mat-dialog-actions class=\"flex flex-row mt-4 mx-10\">\n  <button mat-button class=\"cancel-btn\" (click)=\"close()\" >No</button>\n  <button mat-raised-button color='primary' class=\"action-btn mx-3\" (click)=\"enrollNow(true)\" cdkFocusInitial >\n    {{data.enroll ? 'Resume' : 'Enroll Now'}}\n  </button>\n</div>", styles: [".blue-text{color:#1b4ca1}.action-btn{opacity:1;color:#fff;font-family:Lato-Bold,sans-serif;font-size:14px;font-weight:700;font-style:normal;letter-spacing:.5px;text-align:center;line-height:20px;background:#1a4ca1;border-radius:64px;padding:8px 16px;border:none;width:100%;cursor:pointer}.cancel-btn{opacity:1;color:#1a4ca1;font-family:Lato-Bold,sans-serif;font-size:14px;font-weight:700;font-style:normal;letter-spacing:.5px;text-align:center;line-height:20px;background:#fff;border-radius:64px;padding:8px 16px;width:100%;border-color:#1a4ca1;cursor:pointer}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.MatLegacyDialogRef }, { type: undefined, decorators: [{
                    type: Inject,
                    args: [MAT_DIALOG_DATA]
                }] }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWktdHV0b3ItY29uZmlybS1wb3B1cC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYX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