import { ChangeDetectionStrategy, Component, EventEmitter, Output, ViewChild } from '@angular/core';
import { NG_VALUE_ACCESSOR, UntypedFormControl, Validators } from '@angular/forms';
import { ClaimAppEmpRequestModel } from '../../models/questionnaire/ClaimAppEmpRequestModel';
import { Input } from '@angular/core';
import { RequalifyLiftPageModel } from '../../models/RequalifyLiftPageModel';
import * as i0 from "@angular/core";
import * as i1 from "../../services/claims/claims.service";
import * as i2 from "../../services/login/login.service";
import * as i3 from "@angular/router";
import * as i4 from "@angular/forms";
import * as i5 from "../../services/logger/logger.service";
import * as i6 from "@ionic/angular";
import * as i7 from "@angular/common";
import * as i8 from "primeng/api";
import * as i9 from "primeng/dialog";
import * as i10 from "primeng/table";
import * as i11 from "primeng/inputtext";
import * as i12 from "../error/error.component";
import * as i13 from "../dropdown/dropdown.component";
import * as i14 from "@ngx-translate/core";
const _c0 = ["requalifyFormDirective"];
function RequalifyLiftPreviousIssuesComponent_div_13_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 16);
    i0.ɵɵelement(1, "ion-spinner", 17);
    i0.ɵɵelementEnd();
} }
function RequalifyLiftPreviousIssuesComponent_div_14_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div")(1, "p");
    i0.ɵɵtext(2, "No Records found.");
    i0.ɵɵelementEnd()();
} }
function RequalifyLiftPreviousIssuesComponent_div_14_div_2_ng_template_3_th_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "th")(1, "b");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const col_r21 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(col_r21.header);
} }
function RequalifyLiftPreviousIssuesComponent_div_14_div_2_ng_template_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵtemplate(1, RequalifyLiftPreviousIssuesComponent_div_14_div_2_ng_template_3_th_1_Template, 3, 1, "th", 22);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const columns_r19 = ctx.$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", columns_r19);
} }
function RequalifyLiftPreviousIssuesComponent_div_14_div_2_ng_template_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr")(1, "td");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "td");
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "currency");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "td");
    i0.ɵɵtext(7);
    i0.ɵɵpipe(8, "currency");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "td");
    i0.ɵɵtext(10);
    i0.ɵɵpipe(11, "currency");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(12, "td");
    i0.ɵɵtext(13);
    i0.ɵɵpipe(14, "currency");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(15, "td");
    i0.ɵɵtext(16);
    i0.ɵɵpipe(17, "currency");
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const employer_r22 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r22.employerData.displayName);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 6, employer_r22.employerProvidedWages.wagesListQtrWise[0] == null ? null : employer_r22.employerProvidedWages.wagesListQtrWise[0].wageAmount));
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 8, employer_r22.employerProvidedWages.wagesListQtrWise[1] == null ? null : employer_r22.employerProvidedWages.wagesListQtrWise[1].wageAmount));
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 10, employer_r22.employerProvidedWages.wagesListQtrWise[2] == null ? null : employer_r22.employerProvidedWages.wagesListQtrWise[2].wageAmount));
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 12, employer_r22.employerProvidedWages.wagesListQtrWise[3] == null ? null : employer_r22.employerProvidedWages.wagesListQtrWise[3].wageAmount));
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 14, employer_r22.employerProvidedWages.wagesListQtrWise[4] == null ? null : employer_r22.employerProvidedWages.wagesListQtrWise[4].wageAmount));
} }
function RequalifyLiftPreviousIssuesComponent_div_14_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div")(1, "p-table", 18, 19);
    i0.ɵɵtemplate(3, RequalifyLiftPreviousIssuesComponent_div_14_div_2_ng_template_3_Template, 2, 1, "ng-template", 20)(4, RequalifyLiftPreviousIssuesComponent_div_14_div_2_ng_template_4_Template, 18, 16, "ng-template", 21);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r15 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("value", ctx_r15.bpEmployerWagesListFiltered)("columns", ctx_r15.cols)("rowHover", true);
} }
function RequalifyLiftPreviousIssuesComponent_div_14_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtemplate(1, RequalifyLiftPreviousIssuesComponent_div_14_div_1_Template, 3, 0, "div", 5)(2, RequalifyLiftPreviousIssuesComponent_div_14_div_2_Template, 5, 3, "div", 5);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.bpEmployerWagesListFiltered.length === 0);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.bpEmployerWagesListFiltered);
} }
function RequalifyLiftPreviousIssuesComponent_div_20_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 16);
    i0.ɵɵelement(1, "ion-spinner", 17);
    i0.ɵɵelementEnd();
} }
function RequalifyLiftPreviousIssuesComponent_div_21_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div")(1, "p");
    i0.ɵɵtext(2, "No Records found.");
    i0.ɵɵelementEnd()();
} }
function RequalifyLiftPreviousIssuesComponent_div_21_div_2_ng_template_3_th_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "th")(1, "b");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const col_r31 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(col_r31.header);
} }
function RequalifyLiftPreviousIssuesComponent_div_21_div_2_ng_template_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵtemplate(1, RequalifyLiftPreviousIssuesComponent_div_21_div_2_ng_template_3_th_1_Template, 3, 1, "th", 22);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const columns_r29 = ctx.$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", columns_r29);
} }
function RequalifyLiftPreviousIssuesComponent_div_21_div_2_ng_template_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr")(1, "td");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "td");
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "td");
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "td");
    i0.ɵɵtext(8);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "td");
    i0.ɵɵtext(10);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const employer_r32 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r32.employerName);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r32.proofRecievedDate);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r32.earningsBeginDate);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r32.earningsEndDate);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r32.amountOfEarnings);
} }
function RequalifyLiftPreviousIssuesComponent_div_21_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div")(1, "p-table", 18, 19);
    i0.ɵɵtemplate(3, RequalifyLiftPreviousIssuesComponent_div_21_div_2_ng_template_3_Template, 2, 1, "ng-template", 20)(4, RequalifyLiftPreviousIssuesComponent_div_21_div_2_ng_template_4_Template, 11, 5, "ng-template", 21);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r25 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("value", ctx_r25.ui512AResponseList)("columns", ctx_r25.col512AResponseLst)("rowHover", true);
} }
function RequalifyLiftPreviousIssuesComponent_div_21_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtemplate(1, RequalifyLiftPreviousIssuesComponent_div_21_div_1_Template, 3, 0, "div", 5)(2, RequalifyLiftPreviousIssuesComponent_div_21_div_2_Template, 5, 3, "div", 5);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r4.ui512AResponseList);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.ui512AResponseList);
} }
function RequalifyLiftPreviousIssuesComponent_div_27_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 16);
    i0.ɵɵelement(1, "ion-spinner", 17);
    i0.ɵɵelementEnd();
} }
function RequalifyLiftPreviousIssuesComponent_div_28_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div")(1, "p");
    i0.ɵɵtext(2, "No Records found.");
    i0.ɵɵelementEnd()();
} }
function RequalifyLiftPreviousIssuesComponent_div_28_div_2_ng_template_3_th_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "th")(1, "b");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const col_r41 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(col_r41.header);
} }
function RequalifyLiftPreviousIssuesComponent_div_28_div_2_ng_template_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵtemplate(1, RequalifyLiftPreviousIssuesComponent_div_28_div_2_ng_template_3_th_1_Template, 3, 1, "th", 22);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const columns_r39 = ctx.$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", columns_r39);
} }
function RequalifyLiftPreviousIssuesComponent_div_28_div_2_ng_template_4_td_9_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "td");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const employer_r42 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(employer_r42.value.actionTaken);
} }
function RequalifyLiftPreviousIssuesComponent_div_28_div_2_ng_template_4_td_10_div_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 28);
    i0.ɵɵtext(1, " required ");
    i0.ɵɵelementEnd();
} }
const _c1 = () => ({ required: "required" });
function RequalifyLiftPreviousIssuesComponent_div_28_div_2_ng_template_4_td_10_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "td", 24)(1, "div", 0, 1);
    i0.ɵɵelement(3, "app-dropdown", 25)(4, "br")(5, "app-error", 15);
    i0.ɵɵtemplate(6, RequalifyLiftPreviousIssuesComponent_div_28_div_2_ng_template_4_td_10_div_6_Template, 2, 0, "div", 26);
    i0.ɵɵelement(7, "input", 27);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const _r47 = i0.ɵɵreference(2);
    const employer_r42 = i0.ɵɵnextContext().$implicit;
    const ctx_r45 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("formGroup", employer_r42);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("options", ctx_r45.actionOptions)("autoDisplayFirst", false);
    i0.ɵɵadvance(2);
    i0.ɵɵclassMap("app-grid");
    i0.ɵɵproperty("field", employer_r42.controls["actionTakenPotentialIssue"])("form", _r47)("errDef", i0.ɵɵpureFunction0(10, _c1));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", employer_r42.controls["actionTakenPotentialIssue"].invalid);
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("value", employer_r42.value.claimAppEmployerId);
} }
function RequalifyLiftPreviousIssuesComponent_div_28_div_2_ng_template_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr")(1, "td");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "td");
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "td");
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "td");
    i0.ɵɵtext(8);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(9, RequalifyLiftPreviousIssuesComponent_div_28_div_2_ng_template_4_td_9_Template, 2, 1, "td", 5)(10, RequalifyLiftPreviousIssuesComponent_div_28_div_2_ng_template_4_td_10_Template, 8, 11, "td", 23);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const employer_r42 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r42.value.employerName);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r42.value.startDate);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r42.value.reason);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r42.value.requalificationWage);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", employer_r42.value.actionTaken != null);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", employer_r42.value.actionTaken === null);
} }
function RequalifyLiftPreviousIssuesComponent_div_28_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div")(1, "p-table", 18, 19);
    i0.ɵɵtemplate(3, RequalifyLiftPreviousIssuesComponent_div_28_div_2_ng_template_3_Template, 2, 1, "ng-template", 20)(4, RequalifyLiftPreviousIssuesComponent_div_28_div_2_ng_template_4_Template, 11, 6, "ng-template", 21);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r35 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("value", ctx_r35.beanActionList.controls)("columns", ctx_r35.colBeanLst)("rowHover", true);
} }
function RequalifyLiftPreviousIssuesComponent_div_28_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtemplate(1, RequalifyLiftPreviousIssuesComponent_div_28_div_1_Template, 3, 0, "div", 5)(2, RequalifyLiftPreviousIssuesComponent_div_28_div_2_Template, 5, 3, "div", 5);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r6.beanList.length === 0);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r6.beanList && ctx_r6.beanList.length > 0);
} }
function RequalifyLiftPreviousIssuesComponent_div_34_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 16);
    i0.ɵɵelement(1, "ion-spinner", 17);
    i0.ɵɵelementEnd();
} }
function RequalifyLiftPreviousIssuesComponent_div_35_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div")(1, "p");
    i0.ɵɵtext(2, "No Records found.");
    i0.ɵɵelementEnd()();
} }
function RequalifyLiftPreviousIssuesComponent_div_35_div_2_ng_template_3_th_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "th")(1, "b");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const col_r57 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(col_r57.header);
} }
function RequalifyLiftPreviousIssuesComponent_div_35_div_2_ng_template_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵtemplate(1, RequalifyLiftPreviousIssuesComponent_div_35_div_2_ng_template_3_th_1_Template, 3, 1, "th", 22);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const columns_r55 = ctx.$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", columns_r55);
} }
function RequalifyLiftPreviousIssuesComponent_div_35_div_2_ng_template_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr")(1, "td");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "td");
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "td");
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "td");
    i0.ɵɵtext(8);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "td");
    i0.ɵɵtext(10);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const employer_r58 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r58.employerName);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r58.startDate);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r58.reason);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r58.requalificationWage);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r58.actionTaken);
} }
function RequalifyLiftPreviousIssuesComponent_div_35_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div")(1, "p-table", 18, 19);
    i0.ɵɵtemplate(3, RequalifyLiftPreviousIssuesComponent_div_35_div_2_ng_template_3_Template, 2, 1, "ng-template", 20)(4, RequalifyLiftPreviousIssuesComponent_div_35_div_2_ng_template_4_Template, 11, 5, "ng-template", 21);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r51 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("value", ctx_r51.sepIssueLiftedList)("columns", ctx_r51.colPreviousIssueLst)("rowHover", true);
} }
function RequalifyLiftPreviousIssuesComponent_div_35_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtemplate(1, RequalifyLiftPreviousIssuesComponent_div_35_div_1_Template, 3, 0, "div", 5)(2, RequalifyLiftPreviousIssuesComponent_div_35_div_2_Template, 5, 3, "div", 5);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r8 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r8.sepIssueLiftedList.length === 0);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r8.sepIssueLiftedList && ctx_r8.sepIssueLiftedList.length > 0);
} }
function RequalifyLiftPreviousIssuesComponent_div_41_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 16);
    i0.ɵɵelement(1, "ion-spinner", 17);
    i0.ɵɵelementEnd();
} }
function RequalifyLiftPreviousIssuesComponent_div_42_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div")(1, "p");
    i0.ɵɵtext(2, "No Records found.");
    i0.ɵɵelementEnd()();
} }
function RequalifyLiftPreviousIssuesComponent_div_42_div_2_ng_template_3_th_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "th")(1, "b");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const col_r67 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(col_r67.header);
} }
function RequalifyLiftPreviousIssuesComponent_div_42_div_2_ng_template_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr", 29);
    i0.ɵɵtemplate(1, RequalifyLiftPreviousIssuesComponent_div_42_div_2_ng_template_3_th_1_Template, 3, 1, "th", 22);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const columns_r65 = ctx.$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", columns_r65);
} }
function RequalifyLiftPreviousIssuesComponent_div_42_div_2_ng_template_4_div_15_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 28);
    i0.ɵɵtext(1, " required ");
    i0.ɵɵelementEnd();
} }
function RequalifyLiftPreviousIssuesComponent_div_42_div_2_ng_template_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr")(1, "td", 30);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "td", 30);
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "td", 30);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "td", 31);
    i0.ɵɵtext(8);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "td", 24)(10, "div", 0, 1);
    i0.ɵɵelement(12, "app-dropdown", 32)(13, "br")(14, "app-error", 15);
    i0.ɵɵtemplate(15, RequalifyLiftPreviousIssuesComponent_div_42_div_2_ng_template_4_div_15_Template, 2, 0, "div", 26);
    i0.ɵɵelement(16, "input", 33);
    i0.ɵɵelementEnd()()();
} if (rf & 2) {
    const employer_r68 = ctx.$implicit;
    const _r70 = i0.ɵɵreference(11);
    const ctx_r64 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r68.value.employerName);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r68.value.startDate);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r68.value.reason);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r68.value.requalificationWage);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("formGroup", employer_r68);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("options", ctx_r64.actionOptions)("autoDisplayFirst", false);
    i0.ɵɵadvance(2);
    i0.ɵɵclassMap("app-grid");
    i0.ɵɵproperty("field", employer_r68.controls["actionPreviousIssue"])("form", _r70)("errDef", i0.ɵɵpureFunction0(14, _c1));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", employer_r68.controls["actionPreviousIssue"].invalid);
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("value", employer_r68.value.issueId);
} }
function RequalifyLiftPreviousIssuesComponent_div_42_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div")(1, "p-table", 18, 19);
    i0.ɵɵtemplate(3, RequalifyLiftPreviousIssuesComponent_div_42_div_2_ng_template_3_Template, 2, 1, "ng-template", 20)(4, RequalifyLiftPreviousIssuesComponent_div_42_div_2_ng_template_4_Template, 17, 15, "ng-template", 21);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r61 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("value", ctx_r61.preIssuesActionList.controls)("columns", ctx_r61.colPreviousIssueLst)("rowHover", true);
} }
function RequalifyLiftPreviousIssuesComponent_div_42_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtemplate(1, RequalifyLiftPreviousIssuesComponent_div_42_div_1_Template, 3, 0, "div", 5)(2, RequalifyLiftPreviousIssuesComponent_div_42_div_2_Template, 5, 3, "div", 5);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r10 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r10.preIssueList.length === 0);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r10.preIssueList && ctx_r10.preIssueList.length > 0);
} }
function RequalifyLiftPreviousIssuesComponent_div_48_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 16);
    i0.ɵɵelement(1, "ion-spinner", 17);
    i0.ɵɵelementEnd();
} }
function RequalifyLiftPreviousIssuesComponent_div_49_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div")(1, "p");
    i0.ɵɵtext(2, "No Records found.");
    i0.ɵɵelementEnd()();
} }
function RequalifyLiftPreviousIssuesComponent_div_49_div_2_ng_template_3_th_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "th")(1, "b");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const col_r79 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(col_r79.header);
} }
function RequalifyLiftPreviousIssuesComponent_div_49_div_2_ng_template_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵtemplate(1, RequalifyLiftPreviousIssuesComponent_div_49_div_2_ng_template_3_th_1_Template, 3, 1, "th", 22);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const columns_r77 = ctx.$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", columns_r77);
} }
function RequalifyLiftPreviousIssuesComponent_div_49_div_2_ng_template_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr")(1, "td");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "td");
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "td");
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "td");
    i0.ɵɵtext(8);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const employer_r80 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r80.employerName);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r80.startDate);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r80.reason);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(employer_r80.actionTaken);
} }
function RequalifyLiftPreviousIssuesComponent_div_49_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div")(1, "p-table", 34, 19);
    i0.ɵɵtemplate(3, RequalifyLiftPreviousIssuesComponent_div_49_div_2_ng_template_3_Template, 2, 1, "ng-template", 20)(4, RequalifyLiftPreviousIssuesComponent_div_49_div_2_ng_template_4_Template, 9, 4, "ng-template", 21);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r73 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("value", ctx_r73.allowedSepIssueList)("columns", ctx_r73.colAllowIssueLst);
} }
function RequalifyLiftPreviousIssuesComponent_div_49_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtemplate(1, RequalifyLiftPreviousIssuesComponent_div_49_div_1_Template, 3, 0, "div", 5)(2, RequalifyLiftPreviousIssuesComponent_div_49_div_2_Template, 5, 2, "div", 5);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r12 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r12.allowedSepIssueList.length === 0);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r12.allowedSepIssueList && ctx_r12.allowedSepIssueList.length > 0);
} }
const _c2 = () => ({ width: "60vw" });
const _c3 = () => ({ "960px": "80vw", "640px": "100vw" });
const _c4 = () => ({ required: "required." });
export class RequalifyLiftPreviousIssuesComponent {
    constructor(cs, ls, activatedRoute, fb, logger) {
        this.cs = cs;
        this.ls = ls;
        this.activatedRoute = activatedRoute;
        this.fb = fb;
        this.logger = logger;
        this.bpEmployerWagesList = [];
        this.bpEmployerWagesListFiltered = [];
        this.allowedSepIssueList = [];
        this.preIssueList = [];
        this.sepIssueLiftedList = [];
        this.ui512AResponseList = [];
        this.beanList = [];
        this.modelDisplay = new EventEmitter();
        this.onCompleteRequalify = new EventEmitter();
        this.showWagesList = false;
        this.showAllowSepList = false;
        this.showPreIssueList = false;
        this.showSepIssueList = false;
        this.show512AResponse = false;
        this.showBeanList = false;
        this.showData = false;
        this.payForm = this.fb.group({
            preIssuesActionList: this.fb.array([]),
            beanActionList: this.fb.array([]),
            additionalInfo: ['', null]
        });
        this.onChange = (value) => {
        };
        this.onTouch = () => {
        };
    }
    ngOnInit() {
        let ssnLastFourFromDb;
        if (this.ls.isClaimant() === true) {
            ssnLastFourFromDb = this.ls.getUser().ssn.substring(5, 9);
        }
        this.logger.debug('question as input value is : ', this.question);
        this.form.addControl('requalifyReqHidden', new UntypedFormControl(null, [Validators.requiredTrue, Validators.required]));
        this.question.name = "requalifyReqHidden";
        this.loadBasePeriodWagesForSSN();
        this.loadRequalifyLiftIssuesForSSN();
        this.loadAllowSepPreviousIssuesForSSN();
        this.loadMasterData();
        this.loadUI512AResponses();
        this.colAllowIssueLst = [
            { header: 'Employer Name' },
            { header: 'Issue Start Date' },
            { header: 'Issue Description' },
            { header: 'Decision' }
        ];
        this.colPreviousIssueLst = [
            { header: 'Employer Name' },
            { header: 'Issue Start Date' },
            { header: 'Issue Description' },
            { header: 'Requalifying Amount($)' },
            { header: 'Action' }
        ];
        this.col512AResponseLst = [
            { header: 'Employer Name' },
            { header: 'Proof received Date' },
            { header: 'Earning Begin Date' },
            { header: 'Earning End Date' },
            { header: 'Amount ($)' }
        ];
        this.colBeanLst = [
            { header: 'Employer Name' },
            { header: 'Date of Separation' },
            { header: 'Reason for Separation' },
            { header: 'Required Wage ($)' },
            { header: 'Action' }
        ];
        const obj = JSON.parse(this.componentData);
        this.requalifyLiftIssuesData = obj;
        this.requalifyReqHidden.setValue(null);
    }
    loadUI512AResponses() {
        this.cs.getUI512AResponses().subscribe(res => {
            let requalifyLiftIssueModelFromService = res;
            this.ui512AResponseList = requalifyLiftIssueModelFromService.ui512AResponseList;
            this.show512AResponse = true;
        });
    }
    loadMasterData() {
        this.cs.getRequalifyCriteriaEnum();
        this.cs.getActionsList().subscribe(res => {
            this.actionOptions = res;
        });
    }
    loadBasePeriodWagesForSSN() {
        let clmEmpRequestModel = new ClaimAppEmpRequestModel();
        this.cs.loadBasePeriodWages(clmEmpRequestModel).subscribe(res => {
            let temp = res;
            this.bpEmployerWagesList = temp.bpEmpList;
            if (this.bpEmployerWagesList) {
                this.bpEmployerWagesListFiltered = this.bpEmployerWagesList.filter(c => c.osaBpEmployerFlag === '0');
                let qtrYearList = this.bpEmployerWagesListFiltered[0]?.employerProvidedWages.wagesListQtrWise;
                //this.logger.debug('qtrYearList == ', qtrYearList);
                if (qtrYearList != null && qtrYearList.length > 0) {
                    this.cols = [
                        { header: 'Employer Name' },
                        { header: qtrYearList[0].qtrYearDisplayString },
                        { header: qtrYearList[1].qtrYearDisplayString },
                        { header: qtrYearList[2].qtrYearDisplayString },
                        { header: qtrYearList[3].qtrYearDisplayString },
                        { header: qtrYearList[4].qtrYearDisplayString }
                    ];
                }
                this.showWagesList = true;
            }
        });
    }
    loadAllowSepPreviousIssuesForSSN() {
        this.cs.getAllowSepPreviousIssuesForSSN().subscribe(res1 => {
            let requalifyLiftIssueModel1 = new RequalifyLiftPageModel();
            requalifyLiftIssueModel1 = res1;
            this.allowedSepIssueList = requalifyLiftIssueModel1.allowedSepIssueList;
            if (this.allowedSepIssueList) {
                this.showAllowSepList = true;
            }
        });
    }
    loadRequalifyLiftIssuesForSSN() {
        this.cs.getRequalifyLiftIssuesForSSN().subscribe(res => {
            let requalifyLiftIssueModelFromService = res;
            this.logger.debug('loadRequalifyLiftIssuesForSSN ====', res);
            this.preIssueList = requalifyLiftIssueModelFromService.preIssueList;
            if (this.preIssueList) {
                this.showPreIssueList = true;
                for (let data of this.preIssueList) {
                    const tempInfo = this.fb.group({
                        employerName: [data.employerName],
                        startDate: [data.startDate],
                        reason: [data.reason],
                        requalificationWage: [data.requalificationWage],
                        employerId: [data.employerId],
                        claimAppEmployerId: [data.claimAppEmployerId],
                        actionPreviousIssue: ['', Validators.required],
                        issueId: [data.issueId]
                    });
                    this.preIssuesActionList.push(tempInfo);
                }
                this.logger.debug('pre Issue Action List == ', this.preIssuesActionList);
            }
            this.sepIssueLiftedList = requalifyLiftIssueModelFromService.preLiftedIssueList;
            this.showSepIssueList = true;
            this.beanList = requalifyLiftIssueModelFromService.beanList;
            this.showBeanList = true;
            for (let data of this.beanList) {
                this.logger.debug('data == ', data);
                // if(data.actionTaken === null){
                const tempInfo = this.fb.group({
                    employerName: [data.employerName],
                    startDate: [data.startDate],
                    reason: [data.reason],
                    requalificationWage: [data.requalificationWage],
                    actionTaken: [data.actionTaken],
                    actionTakenPotentialIssue: ['', data.actionTaken ? null : Validators.required],
                    claimAppEmployerId: [data.claimAppEmployerId]
                });
                this.beanActionList.push(tempInfo);
                // }
                this.logger.debug('bean action list is ', this.beanActionList);
            }
        });
    }
    openDialog() {
        this.showData = true;
    }
    saveData() {
        if (!this.payForm.valid) {
            this.logger.debug(this.payForm);
            this.requalifyFormDirective.onSubmit(null);
            return;
        }
        this.logger.debug('Save Data for Valid Form', this.payForm);
        this.form.addControl('preIssuesActionLists', this.preIssuesActionList);
        this.form.addControl('beanActionList', this.beanActionList);
        this.form.addControl('additionalInfo', this.additionalInfo);
        this.showData = false;
        this.requalifyReqHidden.setValue(true);
        this.modelDisplay.emit(true);
        this.onCompleteRequalify.emit(this.payForm);
    }
    onModelCancel() {
        this.showData = false;
        this.requalifyReqHidden.setValue(null);
    }
    get preIssuesActionList() {
        return this.payForm.controls['preIssuesActionList'];
    }
    get beanActionList() {
        return this.payForm.controls['beanActionList'];
    }
    get additionalInfo() {
        return this.payForm.controls['additionalInfo'];
    }
    get requalifyReqHidden() {
        return this.form.get('requalifyReqHidden');
    }
    writeValue(value) {
    }
    registerOnChange(fn) {
        this.onChange = fn;
    }
    registerOnTouched(fn) {
        this.onTouch = fn;
    }
    static { this.ɵfac = function RequalifyLiftPreviousIssuesComponent_Factory(t) { return new (t || RequalifyLiftPreviousIssuesComponent)(i0.ɵɵdirectiveInject(i1.ClaimService), i0.ɵɵdirectiveInject(i2.LoginService), i0.ɵɵdirectiveInject(i3.ActivatedRoute), i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(i5.LoggerService)); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RequalifyLiftPreviousIssuesComponent, selectors: [["app-requalify-lift-previous-issues"]], viewQuery: function RequalifyLiftPreviousIssuesComponent_Query(rf, ctx) { if (rf & 1) {
            i0.ɵɵviewQuery(_c0, 5);
        } if (rf & 2) {
            let _t;
            i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.requalifyFormDirective = _t.first);
        } }, inputs: { question: "question", componentData: "componentData", form: "form" }, outputs: { modelDisplay: "modelDisplay", onCompleteRequalify: "onCompleteRequalify" }, features: [i0.ɵɵProvidersFeature([{
                    provide: NG_VALUE_ACCESSOR,
                    useExisting: RequalifyLiftPreviousIssuesComponent,
                    multi: true
                }])], decls: 72, vars: 38, consts: [[3, "formGroup"], ["requalifyFormDirective", "ngForm"], ["modal", "true", "appendTo", "body", 3, "showHeader", "breakpoints", "visible"], [2, "margin-left", "-5px"], ["class", "ion-text-center", 4, "ngIf"], [4, "ngIf"], ["id", "additionalInfo", "autoResize", "true", "formControlName", "additionalInfo", "maxLength", "256", "rows", "3", "cols", "35"], [1, "ion-text-right"], ["shape", "round", "type", "reset", "fill", "outline", 3, "click"], ["shape", "round", "type", "submit", "fill", "solid", 3, "click"], [1, "form-label"], [1, "grid", "p-nogutter"], [1, "col-12"], ["type", "text", "id", "requalifyReqHidden", "pInputText", "", "formControlName", "requalifyReqHidden", "hidden", ""], ["shape", "round", "color", "success", "fill", "outline", "type", "submit", 3, "click"], [3, "field", "form", "errDef"], [1, "ion-text-center"], ["name", "dots"], ["styleClass", "p-datatable-striped app-datatable ion-padding-top", 3, "value", "columns", "rowHover"], ["dt", ""], ["pTemplate", "header"], ["pTemplate", "body"], [4, "ngFor", "ngForOf"], ["style", "width:30%", 4, "ngIf"], [2, "width", "30%"], ["formControlName", "actionTakenPotentialIssue", "optionLabel", "text", "appendTo", "body", "required", "", 3, "options", "autoDisplayFirst"], ["style", "color:#e60e0e; margin-left: 0px; font-size: 15px", 4, "ngIf"], ["type", "hidden", "formControlName", "claimAppEmployerId", 3, "value"], [2, "color", "#e60e0e", "margin-left", "0px", "font-size", "15px"], [2, "padding", "50px"], [2, "width", "20%"], [2, "width", "10%"], ["formControlName", "actionPreviousIssue", "optionLabel", "text", "appendTo", "body", "required", "", 3, "options", "autoDisplayFirst"], ["type", "hidden", "formControlName", "issueId", 3, "value"], ["styleClass", "p-datatable-striped app-datatable ion-padding-top", 3, "value", "columns"]], template: function RequalifyLiftPreviousIssuesComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "form", 0, 1)(2, "p-dialog", 2)(3, "div", 3)(4, "ion-row")(5, "ion-col")(6, "h1");
            i0.ɵɵtext(7);
            i0.ɵɵelementEnd()()();
            i0.ɵɵelementStart(8, "ion-row")(9, "ion-col")(10, "div")(11, "h2");
            i0.ɵɵtext(12);
            i0.ɵɵelementEnd()();
            i0.ɵɵtemplate(13, RequalifyLiftPreviousIssuesComponent_div_13_Template, 2, 0, "div", 4)(14, RequalifyLiftPreviousIssuesComponent_div_14_Template, 3, 2, "div", 5);
            i0.ɵɵelementEnd()();
            i0.ɵɵelementStart(15, "ion-row")(16, "ion-col")(17, "div")(18, "h2");
            i0.ɵɵtext(19);
            i0.ɵɵelementEnd()();
            i0.ɵɵtemplate(20, RequalifyLiftPreviousIssuesComponent_div_20_Template, 2, 0, "div", 4)(21, RequalifyLiftPreviousIssuesComponent_div_21_Template, 3, 2, "div", 5);
            i0.ɵɵelementEnd()();
            i0.ɵɵelementStart(22, "ion-row")(23, "ion-col")(24, "div")(25, "h2");
            i0.ɵɵtext(26);
            i0.ɵɵelementEnd()();
            i0.ɵɵtemplate(27, RequalifyLiftPreviousIssuesComponent_div_27_Template, 2, 0, "div", 4)(28, RequalifyLiftPreviousIssuesComponent_div_28_Template, 3, 2, "div", 5);
            i0.ɵɵelementEnd()();
            i0.ɵɵelementStart(29, "ion-row")(30, "ion-col")(31, "div")(32, "h2");
            i0.ɵɵtext(33);
            i0.ɵɵelementEnd()();
            i0.ɵɵtemplate(34, RequalifyLiftPreviousIssuesComponent_div_34_Template, 2, 0, "div", 4)(35, RequalifyLiftPreviousIssuesComponent_div_35_Template, 3, 2, "div", 5);
            i0.ɵɵelementEnd()();
            i0.ɵɵelementStart(36, "ion-row")(37, "ion-col")(38, "div")(39, "h2");
            i0.ɵɵtext(40);
            i0.ɵɵelementEnd()();
            i0.ɵɵtemplate(41, RequalifyLiftPreviousIssuesComponent_div_41_Template, 2, 0, "div", 4)(42, RequalifyLiftPreviousIssuesComponent_div_42_Template, 3, 2, "div", 5);
            i0.ɵɵelementEnd()();
            i0.ɵɵelementStart(43, "ion-row")(44, "ion-col")(45, "div")(46, "h2");
            i0.ɵɵtext(47);
            i0.ɵɵelementEnd()();
            i0.ɵɵtemplate(48, RequalifyLiftPreviousIssuesComponent_div_48_Template, 2, 0, "div", 4)(49, RequalifyLiftPreviousIssuesComponent_div_49_Template, 3, 2, "div", 5);
            i0.ɵɵelementEnd()();
            i0.ɵɵelementStart(50, "ion-row")(51, "ion-col")(52, "p");
            i0.ɵɵtext(53);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(54, "div", 0, 1);
            i0.ɵɵelement(56, "textarea", 6);
            i0.ɵɵelementEnd()()();
            i0.ɵɵelementStart(57, "ion-row")(58, "ion-col", 7)(59, "ion-button", 8);
            i0.ɵɵlistener("click", function RequalifyLiftPreviousIssuesComponent_Template_ion_button_click_59_listener() { return ctx.onModelCancel(); });
            i0.ɵɵtext(60);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(61, "ion-button", 9);
            i0.ɵɵlistener("click", function RequalifyLiftPreviousIssuesComponent_Template_ion_button_click_61_listener() { return ctx.saveData(); });
            i0.ɵɵtext(62);
            i0.ɵɵelementEnd()()()()();
            i0.ɵɵelementStart(63, "p", 10);
            i0.ɵɵtext(64);
            i0.ɵɵpipe(65, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(66, "div", 11)(67, "div", 12);
            i0.ɵɵelement(68, "input", 13);
            i0.ɵɵelementStart(69, "ion-button", 14);
            i0.ɵɵlistener("click", function RequalifyLiftPreviousIssuesComponent_Template_ion_button_click_69_listener() { return ctx.openDialog(); });
            i0.ɵɵtext(70, " Review ");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(71, "app-error", 15);
            i0.ɵɵelementEnd()()();
        } if (rf & 2) {
            const _r0 = i0.ɵɵreference(1);
            i0.ɵɵproperty("formGroup", ctx.form);
            i0.ɵɵadvance(2);
            i0.ɵɵstyleMap(i0.ɵɵpureFunction0(35, _c2));
            i0.ɵɵproperty("showHeader", false)("breakpoints", i0.ɵɵpureFunction0(36, _c3))("visible", ctx.showData);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate(ctx.requalifyLiftIssuesData.pageTitle);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate(ctx.requalifyLiftIssuesData.baseWageInfo);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.showWagesList);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.showWagesList);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate(ctx.requalifyLiftIssuesData.earningsProof);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.show512AResponse);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.show512AResponse);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate(ctx.requalifyLiftIssuesData.potentialIssues);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.showBeanList);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.showBeanList);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate(ctx.requalifyLiftIssuesData.separationIssues);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.showSepIssueList);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.showSepIssueList);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate(ctx.requalifyLiftIssuesData.previousDecisions);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.showPreIssueList);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.showPreIssueList);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate(ctx.requalifyLiftIssuesData.otherIssues);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.showAllowSepList);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.showAllowSepList);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(ctx.requalifyLiftIssuesData.remarks);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("formGroup", ctx.payForm);
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate1(" ", ctx.requalifyLiftIssuesData.cancelButton, " ");
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", ctx.requalifyLiftIssuesData.saveButton, " ");
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(65, 33, ctx.requalifyLiftIssuesData.questionHeading), "");
            i0.ɵɵadvance(7);
            i0.ɵɵproperty("field", ctx.requalifyReqHidden)("form", _r0)("errDef", i0.ɵɵpureFunction0(37, _c4));
        } }, dependencies: [i6.IonButton, i6.IonCol, i6.IonRow, i6.IonSpinner, i7.NgForOf, i7.NgIf, i8.PrimeTemplate, i4.ɵNgNoValidate, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.RequiredValidator, i4.FormGroupDirective, i4.FormControlName, i9.Dialog, i10.Table, i11.InputText, i12.ErrorComponent, i13.Dropdown, i7.CurrencyPipe, i14.TranslatePipe] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RequalifyLiftPreviousIssuesComponent, [{
        type: Component,
        args: [{ selector: 'app-requalify-lift-previous-issues', providers: [{
                        provide: NG_VALUE_ACCESSOR,
                        useExisting: RequalifyLiftPreviousIssuesComponent,
                        multi: true
                    }], changeDetection: ChangeDetectionStrategy.Default, template: "<form [formGroup]=\"form\" #requalifyFormDirective = \"ngForm\">\r\n    <p-dialog modal=\"true\" [showHeader]=\"false\" appendTo=\"body\" [breakpoints]=\"{'960px': '80vw', '640px': '100vw'}\" [style]=\"{width: '60vw'}\" [visible]=\"showData\">\r\n      <div style=\"margin-left: -5px;\">\r\n          <ion-row>\r\n            <ion-col>\r\n              <h1>{{requalifyLiftIssuesData.pageTitle}}</h1>\r\n            </ion-col>\r\n          </ion-row>\r\n\r\n          <ion-row>\r\n              <ion-col>\r\n                  <div> \r\n                      <h2>{{requalifyLiftIssuesData.baseWageInfo}}</h2>\r\n                    </div>\r\n                    <div *ngIf=\"!showWagesList\" class=\"ion-text-center\">\r\n                      <ion-spinner name=\"dots\"></ion-spinner>\r\n                    </div>\r\n                    <div *ngIf=\"showWagesList\"> \r\n                      <div *ngIf = \"bpEmployerWagesListFiltered.length === 0\"> \r\n                        <p>No Records found.</p>\r\n                      </div>\r\n                      <div *ngIf = \"bpEmployerWagesListFiltered\">        \r\n                        <p-table #dt [value]=\"bpEmployerWagesListFiltered\" styleClass=\"p-datatable-striped app-datatable ion-padding-top\" \r\n                        [columns]=\"cols\" [rowHover]=\"true\">\r\n                          <ng-template pTemplate=\"header\" let-columns>\r\n                            <tr>             \r\n                                <th *ngFor=\"let col of columns\">\r\n                                    <b>{{col.header}}</b>\r\n                                </th> \r\n                            </tr>\r\n                          </ng-template>\r\n                          <ng-template pTemplate=\"body\" let-employer let-rowIndex=\"rowIndex\">\r\n                            <tr>\r\n                              <td>{{employer.employerData.displayName}}</td>\r\n                              <td>{{employer.employerProvidedWages.wagesListQtrWise[0]?.wageAmount | currency}}</td>\r\n                              <td>{{employer.employerProvidedWages.wagesListQtrWise[1]?.wageAmount | currency}}</td>\r\n                              <td>{{employer.employerProvidedWages.wagesListQtrWise[2]?.wageAmount | currency}}</td>\r\n                              <td>{{employer.employerProvidedWages.wagesListQtrWise[3]?.wageAmount | currency}}</td>\r\n                              <td>{{employer.employerProvidedWages.wagesListQtrWise[4]?.wageAmount | currency}}</td>\r\n                            </tr>\r\n                          </ng-template>\r\n                        </p-table>\r\n                      </div>\r\n                    </div>\r\n              </ion-col>\r\n          </ion-row>\r\n\r\n          <ion-row>\r\n            <ion-col>\r\n              <div><h2>{{requalifyLiftIssuesData.earningsProof}}</h2></div>\r\n              <div *ngIf=\"!show512AResponse\" class=\"ion-text-center\">\r\n                <ion-spinner name=\"dots\"></ion-spinner>\r\n              </div>\r\n              <div *ngIf = \"show512AResponse\">  \r\n                <div *ngIf = \"!ui512AResponseList\"> \r\n                  <p>No Records found.</p>\r\n                </div>\r\n                <div *ngIf = \"ui512AResponseList\"> \r\n                  <p-table #dt [value]=\"ui512AResponseList\" styleClass=\"p-datatable-striped app-datatable ion-padding-top\" \r\n                  [columns]=\"col512AResponseLst\" [rowHover]=\"true\" >\r\n                    <ng-template pTemplate=\"header\" let-columns>\r\n                      <tr>             \r\n                          <th *ngFor=\"let col of columns\">\r\n                              <b>{{col.header}}</b>\r\n                          </th> \r\n                      </tr>\r\n                    </ng-template>\r\n                    <ng-template pTemplate=\"body\" let-employer let-rowIndex=\"rowIndex\">\r\n                      <tr>\r\n                        <td>{{employer.employerName}}</td>\r\n                        <td>{{employer.proofRecievedDate}}</td>\r\n                        <td>{{employer.earningsBeginDate}}</td>\r\n                        <td>{{employer.earningsEndDate}}</td>\r\n                        <td>{{employer.amountOfEarnings}}</td>\r\n                      </tr>\r\n                    </ng-template>\r\n                  </p-table>                                                        \r\n                </div> \r\n              </div>\r\n            </ion-col>\r\n          </ion-row>\r\n\r\n          <ion-row>\r\n            <ion-col>\r\n              <div><h2>{{requalifyLiftIssuesData.potentialIssues}}</h2></div>\r\n              <div *ngIf=\"!showBeanList\" class=\"ion-text-center\">\r\n                <ion-spinner name=\"dots\"></ion-spinner>\r\n              </div>\r\n              <div *ngIf = \"showBeanList\">\r\n                <div *ngIf = \"beanList.length === 0\"> \r\n                  <p>No Records found.</p>\r\n                </div>\r\n                <div *ngIf = \"beanList && beanList.length > 0\">      \r\n                  <p-table #dt [value]=\"beanActionList.controls\" styleClass=\"p-datatable-striped app-datatable ion-padding-top\" \r\n                  [columns]=\"colBeanLst\" [rowHover]=\"true\" >\r\n                    <ng-template pTemplate=\"header\" let-columns>\r\n                      <tr>             \r\n                          <th *ngFor=\"let col of columns\">\r\n                              <b>{{col.header}}</b>\r\n                          </th> \r\n                      </tr>\r\n                    </ng-template>\r\n                    <ng-template pTemplate=\"body\" let-employer let-rowIndex=\"rowIndex\">\r\n                      <!-- <ng-container *ngFor=\"let employer of beanActionList.controls; let i = index\" [formGroupName]=\"i\">   -->\r\n                      <tr>\r\n                        <td>{{employer.value.employerName}}</td>\r\n                        <td>{{employer.value.startDate}}</td>\r\n                        <td>{{employer.value.reason}}</td>\r\n                        <td>{{employer.value.requalificationWage}}</td>\r\n                        <td *ngIf= \"employer.value.actionTaken != null\">{{employer.value.actionTaken}}</td>\r\n                        <td style=\"width:30%\" *ngIf= \"employer.value.actionTaken === null\">\r\n                          <div [formGroup]=\"employer\" #requalifyFormDirective=\"ngForm\">\r\n                              <app-dropdown [options]=\"actionOptions\" formControlName=\"actionTakenPotentialIssue\" optionLabel=\"text\" appendTo=\"body\"\r\n                                [autoDisplayFirst]=\"false\" required></app-dropdown><br>\r\n                                <app-error [class]=\"'app-grid'\" [field]='employer.controls[\"actionTakenPotentialIssue\"]' [form]=\"requalifyFormDirective\" [errDef]=\"{ \r\n                                  required: 'required'\r\n                                }\"></app-error>\r\n                                <div *ngIf=\"employer.controls['actionTakenPotentialIssue'].invalid\" style=\"color:#e60e0e; margin-left: 0px; font-size: 15px\">\r\n                                  required\r\n                             </div>  \r\n                        <input type=\"hidden\" formControlName=\"claimAppEmployerId\" value = \"{{employer.value.claimAppEmployerId}}\"/>\r\n                          </div>  \r\n                      </td>\r\n                      </tr> \r\n                      </ng-template>\r\n                  </p-table>\r\n                </div>\r\n              </div>\r\n            </ion-col>\r\n          </ion-row>\r\n\r\n          <ion-row>\r\n            <ion-col>\r\n              <div><h2>{{requalifyLiftIssuesData.separationIssues}}</h2>\r\n              </div>\r\n              <div *ngIf=\"!showSepIssueList\" class=\"ion-text-center\">\r\n                <ion-spinner name=\"dots\"></ion-spinner>\r\n              </div>\r\n              <div *ngIf = \"showSepIssueList\">\r\n                <div *ngIf = \"sepIssueLiftedList.length === 0\"> \r\n                  <p>No Records found.</p>\r\n                </div>\r\n                <div *ngIf = \"sepIssueLiftedList && sepIssueLiftedList.length > 0\">    \r\n                  <p-table #dt [value]=\"sepIssueLiftedList\" styleClass=\"p-datatable-striped app-datatable ion-padding-top\" \r\n                  [columns]=\"colPreviousIssueLst\" [rowHover]=\"true\" >\r\n                    <ng-template pTemplate=\"header\" let-columns>\r\n                      <tr>             \r\n                          <th *ngFor=\"let col of columns\">\r\n                              <b>{{col.header}}</b>\r\n                          </th> \r\n                      </tr>\r\n                    </ng-template>\r\n                    <ng-template pTemplate=\"body\" let-employer let-rowIndex=\"rowIndex\">\r\n                      <tr>\r\n                        <td>{{employer.employerName}}</td>\r\n                        <td>{{employer.startDate}}</td>\r\n                        <td>{{employer.reason}}</td>\r\n                        <td>{{employer.requalificationWage}}</td>\r\n                        <td>{{employer.actionTaken}}</td>\r\n                      </tr>\r\n                    </ng-template>\r\n                  </p-table>\r\n                </div>\r\n              </div>\r\n            </ion-col>\r\n          </ion-row>\r\n\r\n          <ion-row>\r\n            <ion-col>\r\n              <div><h2>{{requalifyLiftIssuesData.previousDecisions}}</h2>\r\n              </div>\r\n              <div *ngIf=\"!showPreIssueList\" class=\"ion-text-center\">\r\n                <ion-spinner name=\"dots\"></ion-spinner>\r\n              </div>\r\n              <div *ngIf = \"showPreIssueList\">\r\n                <div *ngIf = \"preIssueList.length === 0\"> \r\n                  <p>No Records found.</p>\r\n                </div>\r\n                <div *ngIf = \"preIssueList && preIssueList.length > 0\">      \r\n                  <p-table #dt [value]=\"preIssuesActionList.controls\" styleClass=\"p-datatable-striped app-datatable ion-padding-top\" \r\n                  [columns]=\"colPreviousIssueLst\" [rowHover]=\"true\">\r\n                    <ng-template pTemplate=\"header\" let-columns>\r\n                      <tr style=\"padding: 50px;\">             \r\n                          <th *ngFor=\"let col of columns\">\r\n                              <b>{{col.header}}</b>\r\n                          </th> \r\n                      </tr>\r\n                    </ng-template>\r\n                    <ng-template pTemplate=\"body\" let-employer let-rowIndex=\"rowIndex\">\r\n                      <tr>\r\n                        <td style=\"width:20%\">{{employer.value.employerName}}</td>\r\n                        <td style=\"width:20%\">{{employer.value.startDate}}</td>\r\n                        <td style=\"width:20%\">{{employer.value.reason}}</td>\r\n                        <td style=\"width:10%\">{{employer.value.requalificationWage}}</td>\r\n                      \r\n                        <td style=\"width:30%\"> \r\n                            <div [formGroup]=\"employer\" #requalifyFormDirective=\"ngForm\">                     \r\n                              <app-dropdown [options]=\"actionOptions\" formControlName=\"actionPreviousIssue\" optionLabel=\"text\" appendTo=\"body\"\r\n                                [autoDisplayFirst]=\"false\" required></app-dropdown><br>\r\n                                <app-error [class]=\"'app-grid'\" [field]='employer.controls[\"actionPreviousIssue\"]' [form]=\"requalifyFormDirective\" [errDef]=\"{ \r\n                                  required: 'required'\r\n                                }\"></app-error>\r\n                                <div *ngIf=\"employer.controls['actionPreviousIssue'].invalid\" style=\"color:#e60e0e; margin-left: 0px; font-size: 15px\">\r\n                                  required\r\n                             </div>  \r\n                                <input type=\"hidden\" formControlName=\"issueId\" value = \"{{employer.value.issueId}}\"/>\r\n                            </div>\r\n                        </td>\r\n                      </tr>\r\n                    </ng-template>\r\n                  </p-table>\r\n                </div>\r\n              </div>\r\n            </ion-col>\r\n          </ion-row>\r\n\r\n          <ion-row>\r\n            <ion-col>\r\n              <div><h2>{{requalifyLiftIssuesData.otherIssues}}</h2>\r\n              </div>\r\n              <div *ngIf=\"!showAllowSepList\" class=\"ion-text-center\">\r\n                <ion-spinner name=\"dots\"></ion-spinner>\r\n              </div>\r\n              <div *ngIf = \"showAllowSepList\">\r\n                <div *ngIf = \"allowedSepIssueList.length === 0\"> \r\n                  <p>No Records found.</p>\r\n                </div>\r\n                <div *ngIf = \"allowedSepIssueList && allowedSepIssueList.length > 0\">        \r\n                  <p-table #dt [value]=\"allowedSepIssueList\" styleClass=\"p-datatable-striped app-datatable ion-padding-top\" \r\n                  [columns]=\"colAllowIssueLst\" >\r\n                    <ng-template pTemplate=\"header\" let-columns>\r\n                      <tr>             \r\n                          <th *ngFor=\"let col of columns\">\r\n                              <b>{{col.header}}</b>\r\n                          </th> \r\n                      </tr>                                                                                                                                                                 \r\n                    </ng-template>\r\n                    <ng-template pTemplate=\"body\" let-employer let-rowIndex=\"rowIndex\">\r\n                      <tr>\r\n                        <td>{{employer.employerName}}</td>\r\n                        <td>{{employer.startDate}}</td>\r\n                        <td>{{employer.reason}}</td>\r\n                        <td>{{employer.actionTaken}}</td>\r\n                      </tr>\r\n                    </ng-template>\r\n                  </p-table>\r\n                </div>\r\n              </div>\r\n            </ion-col>\r\n          </ion-row>\r\n\r\n          <ion-row>\r\n            <ion-col>\r\n              \r\n              <p>{{requalifyLiftIssuesData.remarks}}</p>\r\n              <div [formGroup]=\"payForm\" #requalifyFormDirective=\"ngForm\">\r\n                  <textarea id=\"additionalInfo\" autoResize=\"true\" formControlName=\"additionalInfo\"\r\n                    maxLength=\"256\" rows=\"3\" cols=\"35\"></textarea>\r\n                  <!-- <app-error [field]=\"additionalInfo\" [form]=\"payForm\" [errDef]=\"{required: 'required'}\"></app-error> -->\r\n              </div>\r\n            </ion-col>\r\n          </ion-row>\r\n\r\n          <ion-row>\r\n            <ion-col class=\"ion-text-right\">              \r\n              <ion-button shape=\"round\" (click)=\"onModelCancel()\" type=\"reset\" fill=\"outline\">\r\n                {{requalifyLiftIssuesData.cancelButton}}\r\n              </ion-button>\r\n              <ion-button shape=\"round\" type=\"submit\" (click)=\"saveData()\" fill=\"solid\">\r\n                {{requalifyLiftIssuesData.saveButton}}\r\n              </ion-button>\r\n            </ion-col>\r\n          </ion-row>\r\n      </div>\r\n    </p-dialog>\r\n\r\n    <p class=\"form-label\"> {{requalifyLiftIssuesData.questionHeading | translate}}</p>\r\n    <div class=\"grid p-nogutter\">\r\n      <div class=\"col-12\">\r\n        <input type=\"text\" id=\"requalifyReqHidden\" pInputText formControlName=\"requalifyReqHidden\" hidden />\r\n        <ion-button shape=\"round\" color=\"success\" fill=\"outline\" type=\"submit\"\r\n        (click)=\"openDialog();\">\r\n        Review\r\n        </ion-button>\r\n        <app-error [field]='requalifyReqHidden' [form]=\"requalifyFormDirective\" [errDef]=\"{\r\n          required: 'required.'\r\n        }\"></app-error>\r\n      </div>\r\n    </div>\r\n  </form>" }]
    }], () => [{ type: i1.ClaimService }, { type: i2.LoginService }, { type: i3.ActivatedRoute }, { type: i4.FormBuilder }, { type: i5.LoggerService }], { question: [{
            type: Input
        }], componentData: [{
            type: Input
        }], form: [{
            type: Input
        }], modelDisplay: [{
            type: Output
        }], onCompleteRequalify: [{
            type: Output
        }], requalifyFormDirective: [{
            type: ViewChild,
            args: ['requalifyFormDirective', { static: false }]
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RequalifyLiftPreviousIssuesComponent, { className: "RequalifyLiftPreviousIssuesComponent", filePath: "lib\\components\\requalify-lift-previous-issues\\requalify-lift-previous-issues.component.ts", lineNumber: 30 }); })();
//# sourceMappingURL=data:application/json;base64, 