import { Component, EventEmitter, Output } from '@angular/core';
import { LibConstants } from '../../models/LibConstants';
import * as i0 from "@angular/core";
import * as i1 from "../../services/idle/idle.service";
import * as i2 from "../../services/login/login.service";
import * as i3 from "@angular/router";
import * as i4 from "@ionic/angular";
import * as i5 from "primeng/dialog";
const _c0 = () => ({ width: "37.5vw" });
const _c1 = () => ({ "1200px": "660px", "992px": "660px", "768px": "660px", "576px": "100vw" });
export class IdmeComponent {
    constructor(is, ls, r) {
        this.is = is;
        this.ls = ls;
        this.r = r;
        this.success = new EventEmitter();
        this.error = new EventEmitter();
        this.onClose = new EventEmitter();
    }
    close() {
        this.onClose.emit();
    }
    logout() {
        this.ls.logout();
        window.open(`${LibConstants.idmeBaseUrl.trim() + "oauth/authorize?client_id=" + LibConstants.idmeClientId + "&redirect_uri=" + LibConstants.idmeRedirectUrl + "&response_type=code&scope=" + LibConstants.idmeScope}`, '_self');
        this.is.reset();
    }
    static { this.ɵfac = function IdmeComponent_Factory(t) { return new (t || IdmeComponent)(i0.ɵɵdirectiveInject(i1.IdleService), i0.ɵɵdirectiveInject(i2.LoginService), i0.ɵɵdirectiveInject(i3.Router)); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IdmeComponent, selectors: [["app-idme"]], outputs: { success: "success", error: "error", onClose: "onClose" }, decls: 31, vars: 6, consts: [["visible", "true", "modal", "true", "appendTo", "body", "position", "top", 3, "showHeader", "breakpoints"], [2, "font-weight", "500"], [2, "text-align", "left"], [2, "color", "var(--ion-color-dark-grey)", "padding-left", "20px"], [1, "full-image-button", 2, "width", "200px", "padding-left", "10px", 3, "click"], ["src", "assets/icon/IDMEverify.svg", "alt", "IDME Verification"], [2, "padding-left", "20px"], ["href", "https://mdes.ms.gov/win-job-centers/", "target", "_blank", "rel", "noopener noreferrer"], [1, "ion-padding"], [1, "ion-text-right"], ["shape", "round", "fill", "solid", "type", "reset", 3, "click"]], template: function IdmeComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "p-dialog", 0)(1, "h4", 1);
            i0.ɵɵtext(2, "Verify identity");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(3, "div", 2)(4, "ion-row")(5, "h6", 3)(6, "b");
            i0.ɵɵtext(7, "Online");
            i0.ɵɵelementEnd();
            i0.ɵɵtext(8, ": Tap");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(9, "ion-button", 4);
            i0.ɵɵlistener("click", function IdmeComponent_Template_ion_button_click_9_listener() { return ctx.logout(); });
            i0.ɵɵelement(10, "img", 5);
            i0.ɵɵelementEnd()();
            i0.ɵɵelementStart(11, "h5", 6);
            i0.ɵɵtext(12, "Or");
            i0.ɵɵelementEnd()();
            i0.ɵɵelementStart(13, "h6", 3)(14, "b");
            i0.ɵɵtext(15, "In Person");
            i0.ɵɵelementEnd();
            i0.ɵɵtext(16, ": Visit a ");
            i0.ɵɵelementStart(17, "a", 7);
            i0.ɵɵtext(18, "WIN Job Center");
            i0.ɵɵelementEnd()();
            i0.ɵɵelementStart(19, "h6", 3);
            i0.ɵɵtext(20, "Be sure to bring:");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(21, "h6", 3);
            i0.ɵɵtext(22, "- your drivers license, state ID or passport");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(23, "h6", 3);
            i0.ɵɵtext(24, "- a recent check stub");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(25, "h6", 3);
            i0.ɵɵtext(26, "- a utility bill addressed to you (cellphone, electric, etc.)");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(27, "ion-row", 8)(28, "ion-col", 9)(29, "ion-button", 10);
            i0.ɵɵlistener("click", function IdmeComponent_Template_ion_button_click_29_listener() { return ctx.close(); });
            i0.ɵɵtext(30, "Close");
            i0.ɵɵelementEnd()()()();
        } if (rf & 2) {
            i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c0));
            i0.ɵɵproperty("showHeader", false)("breakpoints", i0.ɵɵpureFunction0(5, _c1));
        } }, dependencies: [i4.IonButton, i4.IonCol, i4.IonRow, i5.Dialog], styles: [".full-image-button[_ngcontent-%COMP%]{--padding-top: 0px;--padding-bottom: 0px;--padding-start: 0px;--padding-end: 0px}"] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IdmeComponent, [{
        type: Component,
        args: [{ selector: 'app-idme', template: "<p-dialog visible=\"true\" modal=\"true\" appendTo=\"body\" position=\"top\" [showHeader]=\"false\"\r\n    [breakpoints]=\"{'1200px': '660px', '992px': '660px', '768px': '660px', '576px': '100vw'}\" [style]=\"{width: '37.5vw'}\">\r\n    <h4 style=\"font-weight: 500;\">Verify identity</h4>\r\n    <div style=\"text-align: left;\">\r\n        <ion-row>\r\n            <h6 style=\"color: var(--ion-color-dark-grey); padding-left: 20px;\"><b>Online</b>: Tap</h6>\r\n        <ion-button style=\"width: 200px; padding-left: 10px;\" class=\"full-image-button\" (click)=\"logout()\">\r\n            <img src=\"assets/icon/IDMEverify.svg\" alt=\"IDME Verification\">\r\n        </ion-button>\r\n        </ion-row>\r\n        <h5 style=\"padding-left: 20px;\">Or</h5>\r\n    </div>\r\n        <h6 style=\"color: var(--ion-color-dark-grey); padding-left: 20px;\"><b>In Person</b>: Visit a <a href=\"https://mdes.ms.gov/win-job-centers/\" target=\"_blank\" rel=\"noopener noreferrer\">WIN Job Center</a></h6>\r\n        <h6 style=\"color: var(--ion-color-dark-grey); padding-left: 20px;\">Be sure to bring:</h6>\r\n        <h6 style=\"color: var(--ion-color-dark-grey); padding-left: 20px;\">- your drivers license, state ID or passport</h6>\r\n        <h6 style=\"color: var(--ion-color-dark-grey); padding-left: 20px;\">- a recent check stub</h6>\r\n        <h6 style=\"color: var(--ion-color-dark-grey); padding-left: 20px;\">- a utility bill addressed to you (cellphone, electric, etc.)</h6>\r\n    <ion-row class=\"ion-padding\">\r\n        <ion-col class=\"ion-text-right\">\r\n            <ion-button shape=\"round\" fill=\"solid\" type=\"reset\" (click)=\"close()\">Close</ion-button>\r\n        </ion-col>\r\n    </ion-row>\r\n</p-dialog>", styles: [".full-image-button{--padding-top: 0px;--padding-bottom: 0px;--padding-start: 0px;--padding-end: 0px}\n"] }]
    }], () => [{ type: i1.IdleService }, { type: i2.LoginService }, { type: i3.Router }], { success: [{
            type: Output
        }], error: [{
            type: Output
        }], onClose: [{
            type: Output
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(IdmeComponent, { className: "IdmeComponent", filePath: "lib\\components\\idme\\idme.component.ts", lineNumber: 12 }); })();
//# sourceMappingURL=data:application/json;base64, 