import { Component, Input } from '@angular/core';
import { LibConstants } from '../../models/LibConstants';
import { ClaimantModel } from '../../models/claimant/ClaimantModel';
import { MyNotificationsPage } from '../../pages/popovers/my-notifications/my-notifications.page';
import { MyProfilePage } from '../../pages/popovers/my-profile/my-profile.page';
import { BasePage } from '../../pages/BasePage';
import * as i0 from "@angular/core";
import * as i1 from "../../services/login/login.service";
import * as i2 from "../../services/util/util.service";
import * as i3 from "@angular/router";
import * as i4 from "@ionic/angular";
import * as i5 from "../../services/claimant/claimant.service";
import * as i6 from "../../services/notification/notification.service";
import * as i7 from "../../services/help/help.service";
import * as i8 from "@ngx-translate/core";
import * as i9 from "../../services/audit/audit.service";
import * as i10 from "@angular/common";
import * as i11 from "primeng/api";
import * as i12 from "primeng/tooltip";
import * as i13 from "@angular/material/progress-bar";
import * as i14 from "@angular/forms";
import * as i15 from "primeng/autocomplete";
import * as i16 from "primeng/toast";
import * as i17 from "primeng/menu";
import * as i18 from "../profile/profile.component";
import * as i19 from "../job-search-result-page/job-search-result-page.component";
import * as i20 from "../../pipes/proper-case/proper-case.pipe";
function HeaderComponent_mat_progress_bar_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "mat-progress-bar", 13);
    i0.ɵɵpipe(1, "async");
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("value", i0.ɵɵpipeBind1(1, 1, ctx_r0.util.loader.value$));
} }
function HeaderComponent_ion_menu_button_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "ion-menu-button", 14);
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngClass", ctx_r1.legacyMenu == "false" && ctx_r1.ls.isClaimant() ? "hide-xl hide-lg" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_1_Template(rf, ctx) { if (rf & 1) {
    const _r32 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 35);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_1_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r32); const ctx_r31 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r31.openHome()); });
    i0.ɵɵtext(1, "Home");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r11 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r11.r.url.replace("/", "").includes("welcome") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_2_Template(rf, ctx) { if (rf & 1) {
    const _r34 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 36);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_2_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r34); const ctx_r33 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r33.openWeeklies()); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r12 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("pTooltip", i0.ɵɵpipeBind1(1, 3, "header.weekly.tooltip"));
    i0.ɵɵproperty("ngClass", ctx_r12.r.url.replace("/", "").includes("weeklies") ? "header-button" : "");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r12.legacyMenu == "true" ? "Weekly" : "Weekly");
} }
function HeaderComponent_ion_buttons_9_ion_button_3_Template(rf, ctx) { if (rf & 1) {
    const _r36 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 37);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_3_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r36); const ctx_r35 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r35.openWeeklies()); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r13 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("pTooltip", i0.ɵɵpipeBind1(1, 3, "header.weekly.tooltip"));
    i0.ɵɵproperty("ngClass", ctx_r13.r.url.replace("/", "").includes("weeklies") ? "header-button" : "");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r13.legacyMenu == "true" ? "Weekly" : "Weekly");
} }
function HeaderComponent_ion_buttons_9_ion_button_4_Template(rf, ctx) { if (rf & 1) {
    const _r38 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 37);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_4_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r38); const ctx_r37 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r37.openWeeklies()); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r14 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("pTooltip", i0.ɵɵpipeBind1(1, 3, "header.weekly.tooltip"));
    i0.ɵɵproperty("ngClass", ctx_r14.r.url.replace("/", "").includes("weeklies") ? "header-button" : "");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r14.legacyMenu == "true" ? "Weekly Claim" : "Weekly");
} }
function HeaderComponent_ion_buttons_9_ion_button_5_Template(rf, ctx) { if (rf & 1) {
    const _r40 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 38);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_5_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r40); const ctx_r39 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r39.openPage("cp", "history")); });
    i0.ɵɵtext(1, "History");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r15 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r15.r.url.replace("/", "") == "history" ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_6_Template(rf, ctx) { if (rf & 1) {
    const _r42 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 39);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_6_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r42); const ctx_r41 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r41.openEmployerDashboard()); });
    i0.ɵɵtext(1, "Audit Dashboard");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r16 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r16.r.url.replace("/", "").includes("employer-dashboard") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_7_Template(rf, ctx) { if (rf & 1) {
    const _r44 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 40);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_7_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r44); const ctx_r43 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r43.openSupervisorMyQ()); });
    i0.ɵɵtext(1, "MyQ");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r17 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r17.r.url.replace("/", "").includes("myq") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_8_Template(rf, ctx) { if (rf & 1) {
    const _r46 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 41);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_8_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r46); const ctx_r45 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r45.openAuditDashboard()); });
    i0.ɵɵtext(1, "Dashboard");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r18 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r18.r.url.replace("/", "").includes("dashboard") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_9_Template(rf, ctx) { if (rf & 1) {
    const _r48 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 42);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_9_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r48); const ctx_r47 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r47.openAuditorWorkList()); });
    i0.ɵɵtext(1, "Work List");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r19 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r19.r.url.replace("/", "").includes("auditor-work-list") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_10_Template(rf, ctx) { if (rf & 1) {
    const _r50 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 43);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_10_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r50); const ctx_r49 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r49.openSupervisorInquiry()); });
    i0.ɵɵtext(1, "Inquiry");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r20 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r20.r.url.replace("/", "").includes("inquiry") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_11_Template(rf, ctx) { if (rf & 1) {
    const _r52 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 44);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_11_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r52); const ctx_r51 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r51.openUploadDocuments()); });
    i0.ɵɵtext(1, "Upload Documents");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r21 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r21.r.url.replace("/", "").includes("upload-documents") || ctx_r21.r.url.replace("/", "").includes("employer-documents") ? "header-button" : "")("disabled", !ctx_r21.isEmployerLoaded);
} }
function HeaderComponent_ion_buttons_9_ion_button_12_Template(rf, ctx) { if (rf & 1) {
    const _r54 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 45);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_12_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r54); const ctx_r53 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r53.openQuestionnaire()); });
    i0.ɵɵtext(1, "Questionnaire");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r22 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r22.r.url.replace("/", "").includes("auditor-questionnaire") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_13_Template(rf, ctx) { if (rf & 1) {
    const _r56 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 46);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_13_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r56); const ctx_r55 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r55.openQuestionnaire()); });
    i0.ɵɵtext(1, "Questionnaire");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r23 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r23.r.url.replace("/", "").includes("auditor-questionnaire") ? "header-button" : "")("disabled", !ctx_r23.isQuestionnaireDataLoaded);
} }
function HeaderComponent_ion_buttons_9_ion_button_14_Template(rf, ctx) { if (rf & 1) {
    const _r58 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 47);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_14_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r58); const ctx_r57 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r57.openSupervisorReferrals()); });
    i0.ɵɵtext(1, "Referrals");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r24 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r24.r.url.replace("/", "").includes("referral") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_15_Template(rf, ctx) { if (rf & 1) {
    const _r60 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 48);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_15_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r60); const ctx_r59 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r59.openSupervisorAssign()); });
    i0.ɵɵtext(1, "Assign");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r25 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r25.r.url.replace("/", "").includes("assign") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_16_Template(rf, ctx) { if (rf & 1) {
    const _r62 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 49);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_16_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r62); const ctx_r61 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r61.openSupervisorTeam()); });
    i0.ɵɵtext(1, "Team");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r26 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r26.r.url.replace("/", "").includes("team") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_17_Template(rf, ctx) { if (rf & 1) {
    const _r64 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 50);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_17_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r64); const ctx_r63 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r63.openSupervisorConfig()); });
    i0.ɵɵtext(1, "Config");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r27 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r27.r.url.replace("/", "").includes("config") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_18_Template(rf, ctx) { if (rf & 1) {
    const _r66 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 51);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_18_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r66); const ctx_r65 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r65.openSupervisorAnalytics()); });
    i0.ɵɵtext(1, "Analytics");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r28 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r28.r.url.replace("/", "").includes("analytics") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_19_Template(rf, ctx) { if (rf & 1) {
    const _r68 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 52);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_19_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r68); const ctx_r67 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r67.openTPSInquiry()); });
    i0.ɵɵtext(1, "Inquiry");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r29 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r29.r.url.replace("/", "").includes("tps-universe") || ctx_r29.r.url.replace("/", "").includes("tps-inquiry") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_ion_button_20_Template(rf, ctx) { if (rf & 1) {
    const _r70 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 53);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_9_ion_button_20_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r70); const ctx_r69 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r69.openTPAQuestionnaire()); });
    i0.ɵɵtext(1, "Questionnaire");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r30 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r30.r.url.replace("/", "").includes("tpa-questionnaire") ? "header-button" : "");
} }
function HeaderComponent_ion_buttons_9_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ion-buttons", 15);
    i0.ɵɵtemplate(1, HeaderComponent_ion_buttons_9_ion_button_1_Template, 2, 1, "ion-button", 16)(2, HeaderComponent_ion_buttons_9_ion_button_2_Template, 3, 5, "ion-button", 17)(3, HeaderComponent_ion_buttons_9_ion_button_3_Template, 3, 5, "ion-button", 18)(4, HeaderComponent_ion_buttons_9_ion_button_4_Template, 3, 5, "ion-button", 18)(5, HeaderComponent_ion_buttons_9_ion_button_5_Template, 2, 1, "ion-button", 19)(6, HeaderComponent_ion_buttons_9_ion_button_6_Template, 2, 1, "ion-button", 20)(7, HeaderComponent_ion_buttons_9_ion_button_7_Template, 2, 1, "ion-button", 21)(8, HeaderComponent_ion_buttons_9_ion_button_8_Template, 2, 1, "ion-button", 22)(9, HeaderComponent_ion_buttons_9_ion_button_9_Template, 2, 1, "ion-button", 23)(10, HeaderComponent_ion_buttons_9_ion_button_10_Template, 2, 1, "ion-button", 24)(11, HeaderComponent_ion_buttons_9_ion_button_11_Template, 2, 2, "ion-button", 25)(12, HeaderComponent_ion_buttons_9_ion_button_12_Template, 2, 1, "ion-button", 26)(13, HeaderComponent_ion_buttons_9_ion_button_13_Template, 2, 2, "ion-button", 27)(14, HeaderComponent_ion_buttons_9_ion_button_14_Template, 2, 1, "ion-button", 28)(15, HeaderComponent_ion_buttons_9_ion_button_15_Template, 2, 1, "ion-button", 29)(16, HeaderComponent_ion_buttons_9_ion_button_16_Template, 2, 1, "ion-button", 30)(17, HeaderComponent_ion_buttons_9_ion_button_17_Template, 2, 1, "ion-button", 31)(18, HeaderComponent_ion_buttons_9_ion_button_18_Template, 2, 1, "ion-button", 32)(19, HeaderComponent_ion_buttons_9_ion_button_19_Template, 2, 1, "ion-button", 33)(20, HeaderComponent_ion_buttons_9_ion_button_20_Template, 2, 1, "ion-button", 34);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context != "audit" || ctx_r2.ls.isEmployer());
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.ls.isClaimant() && ctx_r2.legacyMenu == "false");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.ls.isClaimant() && ctx_r2.legacyMenu == "true" && !ctx_r2.util.isState("ME"));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.ls.isClaimant() && ctx_r2.legacyMenu == "true" && ctx_r2.util.isState("ME"));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.ls.isClaimant() && ctx_r2.legacyMenu == "false" && ctx_r2.interimHomePage == "false");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.ls.isEmployer());
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && (ctx_r2.ls.isTaxAuditSupervisor() || ctx_r2.ls.isTaxAuditAuditor() || ctx_r2.ls.isTaxAuditDirector() || ctx_r2.ls.isTaxAuditDirector()));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && (ctx_r2.ls.isTaxAuditSupervisor() || ctx_r2.ls.isTaxAuditDirector()));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && (ctx_r2.ls.isTaxAuditAuditor() || ctx_r2.ls.isTaxAuditSupervisor()));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && (ctx_r2.ls.isTaxAuditSupervisor() || ctx_r2.ls.isTaxAuditAuditor() || ctx_r2.ls.isTaxAuditDirector()) || ctx_r2.ls.hasRole("taxauditagencystaff"));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && ctx_r2.ls.isEmployer());
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && (ctx_r2.ls.isTaxAuditAuditor() || ctx_r2.ls.isTaxAuditSupervisor()));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && ctx_r2.ls.isEmployer());
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && (ctx_r2.ls.isTaxAuditSupervisor() || ctx_r2.ls.isTaxAuditAuditor() || ctx_r2.ls.isTaxAuditDirector()) || ctx_r2.ls.hasRole("taxauditagencystaff"));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && ctx_r2.ls.isTaxAuditSupervisor());
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && ctx_r2.ls.isTaxAuditSupervisor());
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && (ctx_r2.ls.isTaxAuditSupervisor() || ctx_r2.ls.isTaxAuditDirector()));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && (ctx_r2.ls.isTaxAuditSupervisor() || ctx_r2.ls.isTaxAuditAuditor() || ctx_r2.ls.isTaxAuditDirector()));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && ctx_r2.ls.hasRole("tpsspecialist") && (!ctx_r2.ls.isTaxAuditAuditor() && !ctx_r2.ls.isTaxAuditSupervisor()));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.context == "audit" && ctx_r2.ls.isTpa() && !ctx_r2.ls.isTaxAuditAuditor() && !ctx_r2.ls.isTaxAuditSupervisor());
} }
function HeaderComponent_div_10_ng_template_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ion-row", 57)(1, "ion-col", 58)(2, "ion-text");
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "properCase");
    i0.ɵɵpipe(5, "properCase");
    i0.ɵɵelementEnd()();
    i0.ɵɵelementStart(6, "ion-col", 58)(7, "ion-text");
    i0.ɵɵtext(8);
    i0.ɵɵelementEnd()();
    i0.ɵɵelementStart(9, "ion-col", 58)(10, "ion-text");
    i0.ɵɵtext(11);
    i0.ɵɵelementEnd()()();
} if (rf & 2) {
    const user_r72 = ctx.$implicit;
    const ctx_r71 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(4, 4, user_r72.firstName), " ", i0.ɵɵpipeBind1(5, 6, user_r72.lastName), "");
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate(user_r72.userId);
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r71.util.maskSsn(user_r72.ssn));
} }
function HeaderComponent_div_10_Template(rf, ctx) { if (rf & 1) {
    const _r74 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 54)(1, "p-autoComplete", 55);
    i0.ɵɵlistener("ngModelChange", function HeaderComponent_div_10_Template_p_autoComplete_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r74); const ctx_r73 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r73.searchText = $event); })("completeMethod", function HeaderComponent_div_10_Template_p_autoComplete_completeMethod_1_listener($event) { i0.ɵɵrestoreView(_r74); const ctx_r75 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r75.search($event)); })("onSelect", function HeaderComponent_div_10_Template_p_autoComplete_onSelect_1_listener($event) { i0.ɵɵrestoreView(_r74); const ctx_r76 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r76.onSelectAction($event)); });
    i0.ɵɵtemplate(2, HeaderComponent_div_10_ng_template_2_Template, 12, 8, "ng-template", 56);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngModel", ctx_r3.searchText)("suggestions", ctx_r3.results);
} }
function HeaderComponent_ion_buttons_11_ion_button_6_Template(rf, ctx) { if (rf & 1) {
    const _r83 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 68);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_11_ion_button_6_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r83); const ctx_r82 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r82.openPage("cp", "documents")); });
    i0.ɵɵelement(1, "i", 69);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r77 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r77.r.url.replace("/", "") == "documents" ? "header-button hide-xs hide-md" : "hide-xs hide-md");
} }
function HeaderComponent_ion_buttons_11_ion_button_7_Template(rf, ctx) { if (rf & 1) {
    const _r85 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 70);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_11_ion_button_7_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r85); const ctx_r84 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r84.openPage("cp", "documents")); });
    i0.ɵɵelement(1, "ion-icon", 71);
    i0.ɵɵelementEnd();
} }
function HeaderComponent_ion_buttons_11_ion_button_8_ion_badge_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ion-badge", 75)(1, "ion-label");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r86 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r86.ns.notificationCount.getValue());
} }
function HeaderComponent_ion_buttons_11_ion_button_8_Template(rf, ctx) { if (rf & 1) {
    const _r88 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 72);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_11_ion_button_8_Template_ion_button_click_0_listener($event) { i0.ɵɵrestoreView(_r88); const ctx_r87 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r87.presentMyNotificationPopover($event)); });
    i0.ɵɵelement(1, "ion-icon", 73);
    i0.ɵɵtemplate(2, HeaderComponent_ion_buttons_11_ion_button_8_ion_badge_2_Template, 3, 1, "ion-badge", 74);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r79 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngClass", ctx_r79.legacyMenu == "false" && ctx_r79.ls.isClaimant() ? "hide-xs hide-md" : "");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r79.ns.notificationCount.getValue() > 0);
} }
function HeaderComponent_ion_buttons_11_ion_spinner_9_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "ion-spinner", 76);
} }
function HeaderComponent_ion_buttons_11_ion_button_10_Template(rf, ctx) { if (rf & 1) {
    const _r90 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-button", 77);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_11_ion_button_10_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r90); const ctx_r89 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r89.hs.show()); });
    i0.ɵɵelement(1, "ion-icon", 78);
    i0.ɵɵelementEnd();
} }
function HeaderComponent_ion_buttons_11_Template(rf, ctx) { if (rf & 1) {
    const _r92 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-buttons", 59)(1, "ion-button", 60);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_11_Template_ion_button_click_1_listener($event) { i0.ɵɵrestoreView(_r92); const ctx_r91 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r91.presentMyProfilePopover($event)); });
    i0.ɵɵelementStart(2, "ion-title", 61);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "properCase");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(5, "ion-icon", 62);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(6, HeaderComponent_ion_buttons_11_ion_button_6_Template, 2, 1, "ion-button", 63)(7, HeaderComponent_ion_buttons_11_ion_button_7_Template, 2, 0, "ion-button", 64)(8, HeaderComponent_ion_buttons_11_ion_button_8_Template, 3, 2, "ion-button", 65)(9, HeaderComponent_ion_buttons_11_ion_spinner_9_Template, 1, 0, "ion-spinner", 66)(10, HeaderComponent_ion_buttons_11_ion_button_10_Template, 2, 0, "ion-button", 67);
    i0.ɵɵpipe(11, "async");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngClass", ctx_r4.legacyMenu == "false" && ctx_r4.ls.isClaimant() && ctx_r4.showProfilePopup ? "hide-xs hide-md header-button" : ctx_r4.legacyMenu == "false" && ctx_r4.ls.isClaimant() ? "hide-xs hide-md" : "");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, ctx_r4.ls.getFullName()));
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", !ctx_r4.ls.isCsr() && ctx_r4.legacyMenu == "false" && !ctx_r4.util.isState("ME"));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r4.ls.isCsr() && ctx_r4.legacyMenu == "true");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r4.ns.showNotificationLoader && !ctx_r4.util.isState("ME"));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.ns.showNotificationLoader);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.ls.isClaimant() && ctx_r4.legacyMenu == "false" && i0.ɵɵpipeBind1(11, 9, ctx_r4.hs.shouldDisplayHelpButton()));
} }
function HeaderComponent_ion_buttons_12_Template(rf, ctx) { if (rf & 1) {
    const _r94 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-buttons", 79)(1, "ion-button", 80);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_12_Template_ion_button_click_1_listener() { i0.ɵɵrestoreView(_r94); const ctx_r93 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r93.logout()); });
    i0.ɵɵelement(2, "ion-icon", 81);
    i0.ɵɵelementEnd()();
} }
function HeaderComponent_ion_buttons_13_Template(rf, ctx) { if (rf & 1) {
    const _r97 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ion-buttons", 59);
    i0.ɵɵelement(1, "p-menu", 82, 83);
    i0.ɵɵelementStart(3, "ion-button", 84);
    i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_13_Template_ion_button_click_3_listener($event) { i0.ɵɵrestoreView(_r97); const _r95 = i0.ɵɵreference(2); return i0.ɵɵresetView(_r95.toggle($event)); });
    i0.ɵɵelement(4, "ion-icon", 85);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("popup", true)("model", ctx_r6.items);
} }
function HeaderComponent_ion_toolbar_14_ion_title_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ion-title", 90);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r98 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r98.title);
} }
function HeaderComponent_ion_toolbar_14_ion_title_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ion-title", 91);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r99 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r99.pageId, "");
} }
function HeaderComponent_ion_toolbar_14_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ion-toolbar", 86)(1, "ion-buttons", 15);
    i0.ɵɵelement(2, "ion-back-button", 87);
    i0.ɵɵtemplate(3, HeaderComponent_ion_toolbar_14_ion_title_3_Template, 2, 1, "ion-title", 88);
    i0.ɵɵelementEnd();
    i0.ɵɵprojection(4, 1);
    i0.ɵɵelementStart(5, "ion-buttons", 59);
    i0.ɵɵtemplate(6, HeaderComponent_ion_toolbar_14_ion_title_6_Template, 2, 1, "ion-title", 89);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r7 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("defaultHref", ctx_r7.backPage ? ctx_r7.backPage : "/welcome");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r7.title);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r7.pageId);
} }
function HeaderComponent_ng_template_16_i_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 97);
} }
function HeaderComponent_ng_template_16_i_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 98);
} }
function HeaderComponent_ng_template_16_i_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 99);
} }
function HeaderComponent_ng_template_16_i_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 100);
} }
function HeaderComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵtemplate(0, HeaderComponent_ng_template_16_i_0_Template, 1, 0, "i", 92)(1, HeaderComponent_ng_template_16_i_1_Template, 1, 0, "i", 93)(2, HeaderComponent_ng_template_16_i_2_Template, 1, 0, "i", 94)(3, HeaderComponent_ng_template_16_i_3_Template, 1, 0, "i", 95);
    i0.ɵɵelement(4, "div", 96);
} if (rf & 2) {
    const message_r100 = ctx.$implicit;
    i0.ɵɵproperty("ngIf", message_r100.severity === "error");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", message_r100.severity === "success");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", message_r100.severity === "warn");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", message_r100.severity === "info");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("innerHTML", "<strong style='font-size: 22px;font-weight: bold;'>" + message_r100.summary + "</strong><br><br>" + "<span style='font-size: 18px;'>" + message_r100.detail + "</span>", i0.ɵɵsanitizeHtml);
} }
function HeaderComponent_ng_container_17_app_profile_1_Template(rf, ctx) { if (rf & 1) {
    const _r107 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "app-profile", 101);
    i0.ɵɵlistener("onCancel", function HeaderComponent_ng_container_17_app_profile_1_Template_app_profile_onCancel_0_listener() { i0.ɵɵrestoreView(_r107); const ctx_r106 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r106.showProfilePopup = !ctx_r106.showProfilePopup); });
    i0.ɵɵelementEnd();
} }
function HeaderComponent_ng_container_17_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtemplate(1, HeaderComponent_ng_container_17_app_profile_1_Template, 1, 0, "app-profile", 12);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r9 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r9.showProfilePopup);
} }
function HeaderComponent_app_job_search_result_page_18_Template(rf, ctx) { if (rf & 1) {
    const _r109 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "app-job-search-result-page", 101);
    i0.ɵɵlistener("onCancel", function HeaderComponent_app_job_search_result_page_18_Template_app_job_search_result_page_onCancel_0_listener() { i0.ɵɵrestoreView(_r109); const ctx_r108 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r108.showjobSearchResultPopup = !ctx_r108.showjobSearchResultPopup); });
    i0.ɵɵelementEnd();
} }
const _c0 = ["*", "*"];
export class HeaderComponent extends BasePage {
    constructor(ls, util, r, popup, cs, nav, modalController, ns, hs, translateService, qs) {
        super();
        this.ls = ls;
        this.util = util;
        this.r = r;
        this.popup = popup;
        this.cs = cs;
        this.nav = nav;
        this.modalController = modalController;
        this.ns = ns;
        this.hs = hs;
        this.translateService = translateService;
        this.qs = qs;
        this.secondToolbar = false;
        this.displayLogo = false;
        this.showHistory = false;
        this.showNotificationLoader = false;
        this.legacyMenu = LibConstants.legacyMenu;
        this.interimHomePage = LibConstants.interimHomePage;
        this.showProfilePopup = false;
        this.showjobSearchResultPopup = false;
        this.showLanguageOption = LibConstants.enableLanguageChange;
        this.isEmployerLoaded = false;
        this.isQuestionnaireDataLoaded = false;
    }
    ngOnInit() {
        //this.loadNotificationCount();
        this.setMenuItems(localStorage.getItem("language"));
        if (this.ls.isEmployer()) {
            this.loadEmployerDetails();
        }
        this.contextRoot = this.getContextRoot();
    }
    /*Job Search Result Icon Popup
     presentJobSearchResultPopup() {
      if(this.ls.isClaimant()){
        this.showjobSearchResultPopup = true;
        return;
      }
    }
    */
    getContextRoot() {
        let parts = window.location.pathname.split('/');
        let contextRoot = parts.length > 1 ? parts[1] : '';
        return contextRoot;
    }
    setMenuItems(language) {
        this.items = [{
                label: 'Choose language',
                items: [{
                        label: 'English',
                        icon: this.getIcon(language, 'en'),
                        command: () => {
                            this.setLanguage('en', 'English');
                        }
                    },
                    {
                        label: 'Espa�ol',
                        icon: this.getIcon(language, 'es'),
                        command: () => {
                            this.setLanguage('es', 'espa�ol');
                        }
                    }]
            }];
    }
    getIcon(selectedLang, language) {
        if (language == selectedLang) {
            return "pi pi-fw pi-check";
        }
        else {
            return null;
        }
    }
    setLanguage(language, name) {
        this.translateService.use(language);
        localStorage.setItem('language', language);
        this.util.toast('Language preference changed to ' + name);
        this.setMenuItems(language);
    }
    async presentMyProfilePopover(event) {
        if (this.ls.isClaimant() && (this.legacyMenu == 'false' || this.util.isState('ME') || (this.util.isState('MS') && LibConstants.interimHomePage == 'true'))) {
            this.showProfilePopup = true;
            return;
        }
        const popover = await this.popup.create({
            component: MyProfilePage,
            translucent: true,
            backdropDismiss: true,
            event: event,
            cssClass: 'header-popover'
        });
        return await popover.present();
    }
    async presentMyNotificationPopover(event) {
        const popover = await this.popup.create({
            component: MyNotificationsPage,
            translucent: true,
            backdropDismiss: true,
            event: event,
            cssClass: 'header-popover'
        });
        popover.onDidDismiss().then(() => {
            this.ns.updateReadFlag();
        });
        return await popover.present();
    }
    logout() {
        this.nav.navigateRoot('/landing');
        this.ls.logout();
    }
    openWeeklies() {
        if (this.legacyMenu == 'true' && this.isMS() && this.interimHomePage == 'false') {
            this.openPage('cp', 'v2/weeklies');
        }
        else {
            this.openPage('cp', 'v3/weeklies');
        }
    }
    onClickDisplayLogo() {
        if (this.context == 'audit') {
            let userModel = this.ls.getUser();
            var tempVal = JSON.stringify({ param1: "taxAudit" });
            var encVal = btoa(tempVal);
            var date = new Date();
            date.setTime(date.getTime() + 60000);
            const domain = LibConstants.ssoDomain;
            var expires = "expires=" + date.toUTCString();
            document.cookie = "parApToM=" + encVal + ";path=/;expires=" + expires + ";domain=" + domain + ";SameSite=Lax;";
            window.open(`${LibConstants.taxUrl}/faces/virtual/contextswitch.xhtml?a=${userModel.access_token}&v=2299&TAXAUDIT_PORTAL=true`, '_self');
        }
    }
    openAuditDashboard() {
        if (this.context == 'audit') {
            let userModel = this.ls.getUser();
            var tempVal = JSON.stringify({ param1: "taxAudit" });
            var encVal = btoa(tempVal);
            var date = new Date();
            date.setTime(date.getTime() + 60000);
            const domain = ".dol.ct.gov";
            var expires = "expires=" + date.toUTCString();
            document.cookie = "parApToM=" + encVal + ";path=/;expires=" + expires + ";domain=" + domain + ";SameSite=Lax;";
            var cookie = "parApToM=" + encVal + ";path=/" + ";domain=.dol.ct.gov" + ";expires=" + expires + ";";
            var isHttps = window.location.protocol === 'https:';
            if (isHttps) {
                cookie += "SameSite=None; Secure";
            }
            else {
                cookie += "SameSite=None";
            }
            document.cookie = cookie;
            window.open(`${LibConstants.taxUrlExternal}/faces/virtual/contextswitch.xhtml?a=${userModel.access_token}&TAXAUDIT_PORTAL=true`, '_self');
        }
    }
    openAuditorWorkList() {
        this.openPage('audit', '/auditor-work-list');
    }
    openQuestionnaire() {
        if (this.ls.isTaxAuditAuditor() || this.ls.isTaxAuditSupervisor()) {
            this.openPage('audit', '/auditor-questionnaire');
        }
        else if (this.ls.isEmployer()) {
            if (this.searchQuestionnaireData && this.searchQuestionnaireData.length > 0) {
                this.selectedQuestionnaireData = this.searchQuestionnaireData;
                this.qs.setQuestionnaireData(this.selectedQuestionnaireData);
                this.openPage('audit', '/auditor-questionnaire-form', {
                    state: { audit: this.searchQuestionnaireData }
                }); //Add the actual url for employer questionnaire
            }
            else {
                this.util.showError("No active audit. This is not required at this point.");
            }
        }
    }
    openUploadDocuments() {
        if (this.auditDocumentEmployerUserModel && this.auditDocumentEmployerUserModel.auditId != null) {
            this.openPage('audit', '/employer-documents', {
                state: { audit: this.auditDocumentEmployerUserModel }
            });
        }
        else {
            this.util.showError("No active audit. This is not required at this point.");
        }
    }
    openEmployerDashboard() {
        this.openPage('audit', '/employer-dashboard', {});
    }
    openSupervisorMyQ() {
        if (this.ls.isTaxAuditSupervisor() || this.ls.isTaxAuditAuditor() || this.ls.isTaxAuditDirector()) {
            this.openPage('audit', '/myq');
        }
    }
    openSupervisorInquiry() {
        if (this.context == 'audit') {
            if (this.ls.isTaxAuditSupervisor() || this.ls.isTaxAuditDirector() || this.ls.hasRole('taxauditagencystaff')) {
                this.openPage('audit', '/inquiry');
            }
            else if (this.ls.isTaxAuditAuditor()) {
                this.openPage('audit', '/auditor-inquiry');
            }
        }
        //this.openPage('audit','/inquiry');
    }
    openTPSInquiry() {
        if (this.ls.hasRole('tpsspecialist')) {
            this.openPage('audit', '/tps-universe');
        }
    }
    openTPAQuestionnaire() {
        if (this.ls.isTpa()) {
            this.openPage('audit', '/tpa-questionnaire');
        }
    }
    openSupervisorReferrals() {
        if (this.ls.isTaxAuditSupervisor() || this.ls.isTaxAuditDirector()) {
            this.openPage('audit', '/referrals');
        }
        else if (this.ls.isTaxAuditAuditor() || this.ls.isTpa() || this.ls.hasRole('taxauditagencystaff')) { //Agency Employee Default - check role with ciju
            this.openPage('audit', '/new-referral');
        }
    }
    openSupervisorConfig() {
        this.openPage('audit', '/config');
    }
    openSupervisorAnalytics() {
        if (this.ls.isTaxAuditSupervisor() || this.ls.isTaxAuditDirector()) {
            this.openPage('audit', '/analytics');
        }
        if (this.ls.isTaxAuditAuditor() && !(this.ls.isTaxAuditSupervisor() || this.ls.isTaxAuditDirector())) {
            this.openPage('audit', '/auditor-analytics');
        }
    }
    openSupervisorAssign() {
        this.openPage('audit', '/assign');
    }
    openSupervisorTeam() {
        this.openPage('audit', '/team');
    }
    loadEmployerDetails() {
        this.isEmployerLoaded = false;
        this.isQuestionnaireDataLoaded = false;
        let userModel = this.ls.getUser();
        this.qs.searchQuestionnaire(null, null, null, userModel.username)
            .subscribe((res) => {
            if (res.length > 0) {
                this.searchQuestionnaireData = res;
            }
            this.isQuestionnaireDataLoaded = true;
        }, (err) => {
        });
        this.qs.findEmployerDataWithUserID(userModel.username)
            .subscribe((res) => {
            if (res) {
                this.auditDocumentEmployerUserModel = res;
            }
            this.isEmployerLoaded = true;
        }, (err) => {
        });
    }
    openHome() {
        //this.nav.navigateRoot("/welcome");
        if (this.context == 'audit') {
            let userModel = this.ls.getUser();
            this.util.showLoader();
            window.open(`${LibConstants.taxUrlExternal}/faces/virtual/contextswitch.xhtml?a=${userModel.access_token}&r=${userModel.refresh_token}&v=2299`, '_self');
        }
        if (this.ls.isClaimant()) {
            this.util.openPageByContextRoot(this.util.getClaimantAppContextRoot(), "welcome", this.nav);
        }
        else if (this.ls.isCsr()) {
            this.util.openPageByContextRoot(this.util.getSecurityAppContextRoot(), "welcome", this.nav);
        }
        else if (this.ls.isEmployer()) {
            this.openPage('audit', '/'); //Add the actual url for employer questionnaire
            //this.loadEmployerDetails();
        }
        else {
            this.nav.navigateRoot("/welcome");
        }
        this.util.hideLoader();
    }
    search(event) {
        let doSearch = false;
        let claimantSearch = new ClaimantModel();
        let query = event.query + '';
        if (query.includes(" ")) {
            let fName = query.split(" ")[0];
            let lName = query.split(" ")[1];
            claimantSearch.firstName = fName;
            claimantSearch.lastName = lName;
            doSearch = true;
        }
        if (query.length == 9 && this.isNumber(query) && !doSearch) {
            claimantSearch.ssn = query;
            doSearch = true;
        }
        else if (!this.isNumber(query) && !doSearch) {
            claimantSearch.userId = query;
            doSearch = true;
        }
        if (doSearch) {
            this.cs.search(claimantSearch).subscribe(data => {
                this.results = data;
            });
        }
    }
    isNumber(num) {
        return !isNaN(num);
    }
    onSelectAction(event) {
        this.results = null;
        this.searchText = null;
        this.cs.getClaimant().next(event.value);
        setTimeout(() => {
            this.util.openPageByContextRoot(this.util.getSecurityAppContextRoot(), "reset-password", this.nav);
            //this.nav.navigateForward('/reset-password');
        }, 500);
    }
    openBenefitsApp() {
        let userModel = this.ls.getUser();
        this.util.showLoader();
        window.open(`${LibConstants.benefitsUrlExternal}/faces/virtual/contextswitch.xhtml?a=${userModel.access_token}&r=${userModel.refresh_token}&v=2299`, '_self');
    }
    openPage(contextRoot, uri, extras) {
        let currentContextRoot = this.util.getContextRoot();
        let target = `/${contextRoot}`;
        if (currentContextRoot == target) {
            this.nav.navigateRoot(`/${uri}`, extras);
        }
        else {
            this.util.openPageByContextRoot(target, uri);
        }
    }
    getClass(name) {
        let currentRoute = this.r.url.replace('/', '');
        console.log(currentRoute, name, currentRoute == name);
        return currentRoute == name ? 'header-button' : '';
    }
    openContextHelp() {
    }
    async changeLanguage(event) {
    }
    static { this.ɵfac = function HeaderComponent_Factory(t) { return new (t || HeaderComponent)(i0.ɵɵdirectiveInject(i1.LoginService), i0.ɵɵdirectiveInject(i2.UtilService), i0.ɵɵdirectiveInject(i3.Router), i0.ɵɵdirectiveInject(i4.PopoverController), i0.ɵɵdirectiveInject(i5.ClaimantService), i0.ɵɵdirectiveInject(i4.NavController), i0.ɵɵdirectiveInject(i4.ModalController), i0.ɵɵdirectiveInject(i6.NotificationService), i0.ɵɵdirectiveInject(i7.HelpService), i0.ɵɵdirectiveInject(i8.TranslateService), i0.ɵɵdirectiveInject(i9.AuditService)); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderComponent, selectors: [["app-header"]], inputs: { title: "title", pageId: "pageId", secondToolbar: "secondToolbar", displayLogo: "displayLogo", showHistory: "showHistory", backPage: "backPage", context: "context" }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 19, vars: 18, consts: [["mode", "determinate", 3, "value", 4, "ngIf"], ["slot", "start", 2, "margin-left", "-5px"], ["autoHide", "false", "pTooltip", "Menu", "tooltipPosition", "bottom", 3, "ngClass", 4, "ngIf"], ["slot", "start", 3, "ngClass", "click"], ["alt", "logo", "tooltipPosition", "bottom", 3, "pTooltip", "src", "ngClass"], ["slot", "start", 4, "ngIf"], ["class", "toolbar-content hide-xs", 4, "ngIf"], ["slot", "end", 4, "ngIf"], ["slot", "secondary", 4, "ngIf"], ["color", "light", "id", "secondToolbar", 4, "ngIf"], ["pTemplate", "message"], [4, "ngIf"], [3, "onCancel", 4, "ngIf"], ["mode", "determinate", 3, "value"], ["autoHide", "false", "pTooltip", "Menu", "tooltipPosition", "bottom", 3, "ngClass"], ["slot", "start"], ["pTooltip", "Home", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnFileWeeklies", "tooltipPosition", "bottom", "class", "hide-xs hide-md", 3, "pTooltip", "ngClass", "click", 4, "ngIf"], ["id", "btnFileWeeklies", "tooltipPosition", "bottom", 3, "pTooltip", "ngClass", "click", 4, "ngIf"], ["pTooltip", "History", "tooltipPosition", "bottom", "class", "hide-xs hide-md", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnAuditEmployerDashboard", "pTooltip", "EmployerDashboard", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnAuditMyQ", "pTooltip", "MyQ", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnAuditDashboard", "pTooltip", "Dashboard", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnAuditWorkList", "pTooltip", "WorkList", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnAuditInquiry", "pTooltip", "Inquiry", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnAuditUploadDocuments", "pTooltip", "Upload Documents", "tooltipPosition", "bottom", 3, "ngClass", "disabled", "click", 4, "ngIf"], ["id", "btnAuditQuestionnaire", "pTooltip", "Questionnaire", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnAuditQuestionnaire", "pTooltip", "Questionnaire", "tooltipPosition", "bottom", 3, "ngClass", "disabled", "click", 4, "ngIf"], ["id", "btnAuditReferrals", "pTooltip", "Referrals", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnAuditAssign", "pTooltip", "Assign", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnAuditTeam", "pTooltip", "Team", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnAuditConfig", "pTooltip", "Config", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnAuditAnalytics", "pTooltip", "Analytics", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnAuditTPSInquiry", "pTooltip", "Inquiry", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["id", "btnAuditTPAQuestionnaire", "pTooltip", "Questionnaire", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["pTooltip", "Home", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["id", "btnFileWeeklies", "tooltipPosition", "bottom", 1, "hide-xs", "hide-md", 3, "pTooltip", "ngClass", "click"], ["id", "btnFileWeeklies", "tooltipPosition", "bottom", 3, "pTooltip", "ngClass", "click"], ["pTooltip", "History", "tooltipPosition", "bottom", 1, "hide-xs", "hide-md", 3, "ngClass", "click"], ["id", "btnAuditEmployerDashboard", "pTooltip", "EmployerDashboard", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["id", "btnAuditMyQ", "pTooltip", "MyQ", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["id", "btnAuditDashboard", "pTooltip", "Dashboard", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["id", "btnAuditWorkList", "pTooltip", "WorkList", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["id", "btnAuditInquiry", "pTooltip", "Inquiry", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["id", "btnAuditUploadDocuments", "pTooltip", "Upload Documents", "tooltipPosition", "bottom", 3, "ngClass", "disabled", "click"], ["id", "btnAuditQuestionnaire", "pTooltip", "Questionnaire", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["id", "btnAuditQuestionnaire", "pTooltip", "Questionnaire", "tooltipPosition", "bottom", 3, "ngClass", "disabled", "click"], ["id", "btnAuditReferrals", "pTooltip", "Referrals", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["id", "btnAuditAssign", "pTooltip", "Assign", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["id", "btnAuditTeam", "pTooltip", "Team", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["id", "btnAuditConfig", "pTooltip", "Config", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["id", "btnAuditAnalytics", "pTooltip", "Analytics", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["id", "btnAuditTPSInquiry", "pTooltip", "Inquiry", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["id", "btnAuditTPAQuestionnaire", "pTooltip", "Questionnaire", "tooltipPosition", "bottom", 3, "ngClass", "click"], [1, "toolbar-content", "hide-xs"], ["appendTo", "body", "placeholder", "Search Claimants", "emptyMessage", "No Results Found.", "size", "25", 3, "ngModel", "suggestions", "ngModelChange", "completeMethod", "onSelect"], ["pTemplate", "item"], [1, ".ion-wrap"], ["size-auto", ""], ["slot", "end"], ["pTooltip", "Account", "tooltipPosition", "bottom", 3, "ngClass", "click"], [1, "hide-xs", 2, "font-size", "20px", "padding", "0px"], ["slot", "end", "name", "person-circle-outline"], ["pTooltip", "Notices", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["pTooltip", "Notices", "tooltipPosition", "bottom", 3, "click", 4, "ngIf"], ["pTooltip", "Notification", "tooltipPosition", "bottom", 3, "ngClass", "click", 4, "ngIf"], ["name", "crescent", 4, "ngIf"], ["pTooltip", "Help", "tooltipPosition", "bottom", 3, "click", 4, "ngIf"], ["pTooltip", "Notices", "tooltipPosition", "bottom", 3, "ngClass", "click"], [1, "pi", "pi-file", "font-bold", 2, "font-size", "1.3rem", "font-weight", "500 !important"], ["pTooltip", "Notices", "tooltipPosition", "bottom", 3, "click"], ["name", "document-text-outline"], ["pTooltip", "Notification", "tooltipPosition", "bottom", 3, "ngClass", "click"], ["name", "notifications-outline"], ["color", "dark", 4, "ngIf"], ["color", "dark"], ["name", "crescent"], ["pTooltip", "Help", "tooltipPosition", "bottom", 3, "click"], ["name", "help-circle-outline"], ["slot", "secondary"], ["pTooltip", "Logout", "tooltipPosition", "bottom", 3, "click"], ["name", "log-out-sharp"], ["appendTo", "body", 3, "popup", "model"], ["menu", ""], ["pTooltip", "Language", "tooltipPosition", "bottom", 3, "click"], ["name", "language", "slot", "end"], ["color", "light", "id", "secondToolbar"], ["pTooltip", "Back", "alt", "Back", "tooltipPosition", "bottom", 3, "defaultHref"], ["color", "primary", "style", "font-size: 18px", 4, "ngIf"], ["color", "primary", "style", "font-size: xx-small; float: right; padding-right: 8px;", 4, "ngIf"], ["color", "primary", 2, "font-size", "18px"], ["color", "primary", 2, "font-size", "xx-small", "float", "right", "padding-right", "8px"], ["class", "pi pi-times-circle", "style", "margin-right: 14px; font-size: 38px ", 4, "ngIf"], ["class", "pi pi-check-circle", "style", "margin-right: 14px; font-size: 38px ", 4, "ngIf"], ["class", "pi pi-exclamation-circle", "style", "margin-right: 14px; font-size: 38px ", 4, "ngIf"], ["class", "pi pi-info-circle", "style", "margin-right: 14px; font-size: 38px ", 4, "ngIf"], [3, "innerHTML"], [1, "pi", "pi-times-circle", 2, "margin-right", "14px", "font-size", "38px"], [1, "pi", "pi-check-circle", 2, "margin-right", "14px", "font-size", "38px"], [1, "pi", "pi-exclamation-circle", 2, "margin-right", "14px", "font-size", "38px"], [1, "pi", "pi-info-circle", 2, "margin-right", "14px", "font-size", "38px"], [3, "onCancel"]], template: function HeaderComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵprojectionDef(_c0);
            i0.ɵɵtemplate(0, HeaderComponent_mat_progress_bar_0_Template, 2, 3, "mat-progress-bar", 0);
            i0.ɵɵpipe(1, "async");
            i0.ɵɵelementStart(2, "ion-toolbar")(3, "ion-buttons", 1);
            i0.ɵɵtemplate(4, HeaderComponent_ion_menu_button_4_Template, 1, 1, "ion-menu-button", 2);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(5, "ion-buttons", 3);
            i0.ɵɵlistener("click", function HeaderComponent_Template_ion_buttons_click_5_listener() { return ctx.onClickDisplayLogo(); });
            i0.ɵɵelement(6, "img", 4);
            i0.ɵɵpipe(7, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵprojection(8);
            i0.ɵɵtemplate(9, HeaderComponent_ion_buttons_9_Template, 21, 20, "ion-buttons", 5)(10, HeaderComponent_div_10_Template, 3, 2, "div", 6)(11, HeaderComponent_ion_buttons_11_Template, 12, 11, "ion-buttons", 7)(12, HeaderComponent_ion_buttons_12_Template, 3, 0, "ion-buttons", 8)(13, HeaderComponent_ion_buttons_13_Template, 5, 2, "ion-buttons", 7);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(14, HeaderComponent_ion_toolbar_14_Template, 7, 3, "ion-toolbar", 9);
            i0.ɵɵelementStart(15, "p-toast");
            i0.ɵɵtemplate(16, HeaderComponent_ng_template_16_Template, 5, 5, "ng-template", 10);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(17, HeaderComponent_ng_container_17_Template, 2, 1, "ng-container", 11)(18, HeaderComponent_app_job_search_result_page_18_Template, 1, 0, "app-job-search-result-page", 12);
        } if (rf & 2) {
            i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 14, ctx.util.loader.value$) != 0);
            i0.ɵɵadvance(4);
            i0.ɵɵproperty("ngIf", ctx.ls.isLoggedIn() && !ctx.ls.isEmployer());
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngClass", ctx.displayLogo ? "header_button_white" : "header_button hide-xs hide-md");
            i0.ɵɵadvance(1);
            i0.ɵɵpropertyInterpolate("pTooltip", i0.ɵɵpipeBind1(7, 16, "ReEmployCT Logo"));
            i0.ɵɵpropertyInterpolate1("src", "assets/icon/ReEmploy", ctx.util.getState(), ".svg", i0.ɵɵsanitizeUrl);
            i0.ɵɵproperty("ngClass", ctx.displayLogo ? "header_logo" : "header_logo hide-xs hide-md");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", ctx.ls.isLoggedIn());
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.ls.isLoggedIn() && ctx.ls.isCsr() && ctx.context != "audit" && ctx.contextRoot === "ss");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.ls.isLoggedIn());
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.ls.isLoggedIn() && ctx.ls.getUser());
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.showLanguageOption === "true" && (!ctx.ls.getUser() && ctx.legacyMenu == "false"));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.secondToolbar);
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", ctx.showProfilePopup);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.showjobSearchResultPopup);
        } }, dependencies: [i4.IonBadge, i4.IonButton, i4.IonButtons, i4.IonCol, i4.IonIcon, i4.IonLabel, i4.IonMenuButton, i4.IonRow, i4.IonSpinner, i4.IonText, i4.IonTitle, i4.IonToolbar, i4.IonBackButton, i10.NgClass, i10.NgIf, i11.PrimeTemplate, i12.Tooltip, i13.MatProgressBar, i14.NgControlStatus, i14.NgModel, i15.AutoComplete, i16.Toast, i17.Menu, i18.ProfileComponent, i19.JobSearchResultPageComponent, i10.AsyncPipe, i8.TranslatePipe, i20.ProperCasePipe], styles: ["#secondToolbar[_ngcontent-%COMP%]{--min-height: 45px !important}#header_reemployms_logo[_ngcontent-%COMP%]{margin-right:10px;margin-left:-5px;padding:5px;height:40px}.header_logo[_ngcontent-%COMP%]{height:35px}.header_button_white[_ngcontent-%COMP%], .header_button[_ngcontent-%COMP%]{background:#fff;height:56px;margin:0;padding:8px}.toolbar-content[_ngcontent-%COMP%]{text-align:center}ion-toolbar[_ngcontent-%COMP%]{--ion-toolbar-background: var(--ion-color-primary) !important;--color: white !important;--font-weight: 500;--font-size: 13px;--position: relative;--z-index: 10;--text-align: center;--letter-spacing: .004em}ion-button[_ngcontent-%COMP%]{--color-hover: var(--ion-color-yellow) !important;text-transform:none!important;font-size:20px}.header-button[_ngcontent-%COMP%]{--color: var(--ion-color-yellow) !important;text-transform:none!important;font-weight:700;font-size:20px}.ios[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]::part(native){color:#fff!important}ion-menu-button[_ngcontent-%COMP%]::part(native){color:#fff!important}ion-popover[_ngcontent-%COMP%]{--width: 40% !important}img[_ngcontent-%COMP%]{visibility:visible;position:relative}[_nghost-%COMP%]     p-autoComplete .p-inputtext{height:40px;color:#000}[_nghost-%COMP%]     p-autoComplete .p-autocomplete-item{padding:.5rem!important}[_nghost-%COMP%]     .p-toast-bottom-center, [_nghost-%COMP%]     .p-toast-top-center{transform:none!important;z-index:100001!important}[_nghost-%COMP%]     .p-toast .p-toast-icon{font-size:48px!important}[_nghost-%COMP%]     .p-toast-icon-close{position:absolute!important;top:0;right:0;margin:5px}[_nghost-%COMP%]     .p-toast-summary{font-weight:700;display:block;margin-bottom:5px}[_nghost-%COMP%]     .p-toast-message, [_nghost-%COMP%]     .p-toast-detail{display:block;font-size:14px}@media (min-width: 768px){[_nghost-%COMP%]     .header-popover{--width: 55%}}@media (min-width: 992px){[_nghost-%COMP%]     .header-popover{--width: 40%}}@media (min-width: 1200px){[_nghost-%COMP%]     .header-popover{--width: 35%}}@media (min-width: 1400px){[_nghost-%COMP%]     .header-popover{--width: 30%}}"] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HeaderComponent, [{
        type: Component,
        args: [{ selector: 'app-header', template: "<mat-progress-bar mode=\"determinate\" [value]=\"util.loader.value$ | async\" *ngIf=\"(util.loader.value$ | async) != 0\">\r\n</mat-progress-bar>\r\n<ion-toolbar>\r\n    <ion-buttons slot=\"start\" style=\"margin-left: -5px;\">\r\n        <ion-menu-button autoHide=\"false\" pTooltip=\"Menu\" tooltipPosition=\"bottom\"\r\n            *ngIf=\"ls.isLoggedIn() && !ls.isEmployer()\" [ngClass]=\"legacyMenu == 'false' && ls.isClaimant() ? 'hide-xl hide-lg' : ''\"></ion-menu-button>\r\n    </ion-buttons>\r\n    <ion-buttons slot=\"start\" [ngClass]=\"displayLogo ? 'header_button_white' : 'header_button hide-xs hide-md'\" (click)=\"onClickDisplayLogo()\">\r\n        <img alt=\"logo\" pTooltip=\"{{'ReEmployCT Logo' | translate}}\" tooltipPosition=\"bottom\"\r\n         src=\"assets/icon/ReEmploy{{util.getState()}}.svg\" [ngClass]=\"displayLogo ? 'header_logo' : 'header_logo hide-xs hide-md'\"/>\r\n    </ion-buttons>\r\n    <ng-content></ng-content>\r\n    <ion-buttons slot=\"start\" *ngIf=\"ls.isLoggedIn()\">\r\n        <ion-button (click)=\"openHome()\" pTooltip=\"Home\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('welcome') ? 'header-button' : ''\" *ngIf=\"this.context!='audit' || ls.isEmployer()\">Home</ion-button>\r\n\r\n        <ion-button id=\"btnFileWeeklies\" pTooltip=\"{{'header.weekly.tooltip' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('weeklies') ? 'header-button' : ''\" *ngIf=\"ls.isClaimant() && legacyMenu == 'false'\" (click)=\"openWeeklies()\" class=\"hide-xs hide-md\">{{legacyMenu == 'true' ? 'Weekly' : 'Weekly'}}</ion-button>\r\n        <ion-button id=\"btnFileWeeklies\" pTooltip=\"{{'header.weekly.tooltip' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('weeklies') ? 'header-button' : ''\" *ngIf=\"ls.isClaimant() && legacyMenu == 'true' && !util.isState('ME')\" (click)=\"openWeeklies()\">{{legacyMenu == 'true' ? 'Weekly' : 'Weekly'}}</ion-button>\r\n        <ion-button id=\"btnFileWeeklies\" pTooltip=\"{{'header.weekly.tooltip' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('weeklies') ? 'header-button' : ''\" *ngIf=\"ls.isClaimant() && legacyMenu == 'true' && util.isState('ME')\" (click)=\"openWeeklies()\">{{legacyMenu == 'true' ? 'Weekly Claim' : 'Weekly'}}</ion-button>\r\n        \r\n       \r\n        <ion-button pTooltip=\"History\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '') == 'history' ? 'header-button' : ''\" *ngIf=\"ls.isClaimant() && legacyMenu == 'false' && interimHomePage == 'false'\" (click)=\"openPage('cp', 'history')\" class=\"hide-xs hide-md\">History</ion-button>\r\n            <ion-button id=\"btnAuditEmployerDashboard\" pTooltip=\"EmployerDashboard\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('employer-dashboard') ? 'header-button' : ''\" *ngIf=\"ls.isEmployer()\" (click)=\"openEmployerDashboard()\">Audit Dashboard</ion-button>\r\n        <ion-button id=\"btnAuditMyQ\" pTooltip=\"MyQ\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('myq') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && (ls.isTaxAuditSupervisor() || ls.isTaxAuditAuditor() || ls.isTaxAuditDirector() || ls.isTaxAuditDirector())\" (click)=\"openSupervisorMyQ()\">MyQ</ion-button>\r\n        <ion-button id=\"btnAuditDashboard\" pTooltip=\"Dashboard\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('dashboard') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && (ls.isTaxAuditSupervisor()|| ls.isTaxAuditDirector())\" (click)=\"openAuditDashboard()\">Dashboard</ion-button>\r\n        <ion-button id=\"btnAuditWorkList\" pTooltip=\"WorkList\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('auditor-work-list') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && (ls.isTaxAuditAuditor() || ls.isTaxAuditSupervisor())\" (click)=\"openAuditorWorkList()\">Work List</ion-button>\r\n        <ion-button id=\"btnAuditInquiry\" pTooltip=\"Inquiry\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('inquiry') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && (ls.isTaxAuditSupervisor() || ls.isTaxAuditAuditor() || ls.isTaxAuditDirector()) ||  ls.hasRole('taxauditagencystaff')\" (click)=\"openSupervisorInquiry()\">Inquiry</ion-button>\r\n        <ion-button id=\"btnAuditUploadDocuments\" pTooltip=\"Upload Documents\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('upload-documents') || r.url.replace('/', '').includes('employer-documents') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && ls.isEmployer()\" (click)=\"openUploadDocuments()\" [disabled]=\"!isEmployerLoaded\">Upload Documents</ion-button>\r\n        <ion-button id=\"btnAuditQuestionnaire\" pTooltip=\"Questionnaire\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('auditor-questionnaire') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && (ls.isTaxAuditAuditor() || ls.isTaxAuditSupervisor())\" (click)=\"openQuestionnaire()\">Questionnaire</ion-button>\r\n        <ion-button id=\"btnAuditQuestionnaire\" pTooltip=\"Questionnaire\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('auditor-questionnaire') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && (ls.isEmployer())\" (click)=\"openQuestionnaire()\" [disabled]=\"!isQuestionnaireDataLoaded\">Questionnaire</ion-button>\r\n        <ion-button id=\"btnAuditReferrals\" pTooltip=\"Referrals\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('referral') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && (ls.isTaxAuditSupervisor() || ls.isTaxAuditAuditor() || ls.isTaxAuditDirector()) ||  ls.hasRole('taxauditagencystaff')\" (click)=\"openSupervisorReferrals()\">Referrals</ion-button>\r\n        <ion-button id=\"btnAuditAssign\" pTooltip=\"Assign\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('assign') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && ls.isTaxAuditSupervisor()\" (click)=\"openSupervisorAssign()\">Assign</ion-button>\r\n        <ion-button id=\"btnAuditTeam\" pTooltip=\"Team\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('team') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && ls.isTaxAuditSupervisor()\" (click)=\"openSupervisorTeam()\">Team</ion-button>\r\n        <ion-button id=\"btnAuditConfig\" pTooltip=\"Config\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('config') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && (ls.isTaxAuditSupervisor() || ls.isTaxAuditDirector())\" (click)=\"openSupervisorConfig()\">Config</ion-button>\r\n        <ion-button id=\"btnAuditAnalytics\" pTooltip=\"Analytics\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('analytics') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && (ls.isTaxAuditSupervisor() || ls.isTaxAuditAuditor() || ls.isTaxAuditDirector())\" (click)=\"openSupervisorAnalytics()\">Analytics</ion-button>\r\n        <ion-button id=\"btnAuditTPSInquiry\" pTooltip=\"Inquiry\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('tps-universe') || r.url.replace('/', '').includes('tps-inquiry') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && this.ls.hasRole('tpsspecialist') && ( !ls.isTaxAuditAuditor() && !ls.isTaxAuditSupervisor())\" (click)=\"openTPSInquiry()\">Inquiry</ion-button>\r\n        <ion-button id=\"btnAuditTPAQuestionnaire\" pTooltip=\"Questionnaire\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('tpa-questionnaire') ? 'header-button' : ''\" *ngIf=\"this.context=='audit' && this.ls.isTpa() && !ls.isTaxAuditAuditor() && !ls.isTaxAuditSupervisor()\" (click)=\"openTPAQuestionnaire()\">Questionnaire</ion-button>\r\n\r\n    </ion-buttons>\r\n\r\n    \r\n    <div class=\"toolbar-content hide-xs\" *ngIf=\"ls.isLoggedIn() && ls.isCsr() && this.context !='audit' && contextRoot ==='ss'\">\r\n        <p-autoComplete appendTo=\"body\" [(ngModel)]=\"searchText\" [suggestions]=\"results\"\r\n            (completeMethod)=\"search($event)\" placeholder=\"Search Claimants\" (onSelect)=\"onSelectAction($event)\"\r\n            emptyMessage=\"No Results Found.\" size=\"25\">\r\n            <ng-template let-user pTemplate=\"item\">\r\n                <ion-row class=\".ion-wrap\" >\r\n                    <ion-col size-auto>\r\n                        <ion-text>{{user.firstName | properCase}} {{user.lastName | properCase}}</ion-text>\r\n                    </ion-col>\r\n                    <ion-col size-auto>\r\n                        <ion-text>{{user.userId}}</ion-text>\r\n                    </ion-col>\r\n                    <ion-col size-auto>\r\n                        <ion-text>{{util.maskSsn(user.ssn)}}</ion-text>\r\n                    </ion-col>\r\n                </ion-row>\r\n            </ng-template>\r\n        </p-autoComplete>\r\n    </div>\r\n    <ion-buttons slot=\"end\" *ngIf=\"ls.isLoggedIn()\" >\r\n        <ion-button (click)=\"presentMyProfilePopover($event)\" pTooltip=\"Account\" tooltipPosition=\"bottom\" [ngClass]=\"legacyMenu == 'false' && ls.isClaimant() && showProfilePopup ? 'hide-xs hide-md header-button' : (legacyMenu == 'false' && ls.isClaimant() ? 'hide-xs hide-md' : '')\">\r\n            <ion-title style=\"font-size: 20px; padding: 0px;\" class=\"hide-xs\">{{ls.getFullName() | properCase}}</ion-title>\r\n            <ion-icon slot=\"end\" name=\"person-circle-outline\"></ion-icon>\r\n        </ion-button>\r\n        <ion-button (click)=\"openPage('cp', 'documents')\" pTooltip=\"Notices\" tooltipPosition=\"bottom\" *ngIf=\"!ls.isCsr() && legacyMenu == 'false' && !util.isState('ME')\" [ngClass]=\"r.url.replace('/', '') == 'documents' ? 'header-button hide-xs hide-md' : 'hide-xs hide-md'\">\r\n            <i class='pi pi-file font-bold' style=\"font-size: 1.3rem;  font-weight: 500 !important;\"></i>\r\n        </ion-button>\r\n        <ion-button (click)=\"openPage('cp', 'documents')\" pTooltip=\"Notices\" tooltipPosition=\"bottom\" *ngIf=\"!ls.isCsr() && legacyMenu == 'true'\">\r\n            <ion-icon name=\"document-text-outline\"></ion-icon>\r\n        </ion-button>\r\n\r\n        \r\n        <!-- <ion-button (click)=\"presentJobSearchResultPopup()\" pTooltip=\"Show job search result\" tooltipPosition=\"bottom\" [ngClass]=\"legacyMenu == 'false' && ls.isClaimant() ? 'hide-xs hide-md' : ''\" *ngIf=\"ls.isClaimant() && legacyMenu == 'false' && util.isState('MS')\">\r\n            <ion-icon name=\"briefcase\" fill=\"outline\"></ion-icon>\r\n        </ion-button> -->\r\n        \r\n        \r\n        <ion-button (click)=\"presentMyNotificationPopover($event)\" pTooltip=\"Notification\" tooltipPosition=\"bottom\"\r\n            *ngIf=\"!ns.showNotificationLoader && !util.isState('ME')\" [ngClass]=\"legacyMenu == 'false' && ls.isClaimant() ? 'hide-xs hide-md' : ''\">\r\n            <ion-icon name=\"notifications-outline\"></ion-icon>\r\n            <ion-badge color=\"dark\" *ngIf=\"ns.notificationCount.getValue() > 0\">\r\n                <ion-label>{{ns.notificationCount.getValue()}}</ion-label>\r\n            </ion-badge>\r\n        </ion-button>\r\n        <ion-spinner name=\"crescent\" *ngIf=\"ns.showNotificationLoader\"></ion-spinner>\r\n\r\n        <ion-button (click)=\"this.hs.show()\" pTooltip=\"Help\" tooltipPosition=\"bottom\" *ngIf=\"ls.isClaimant() && legacyMenu == 'false' && (hs.shouldDisplayHelpButton() | async)\">\r\n            <ion-icon name=\"help-circle-outline\"></ion-icon>\r\n        </ion-button>\r\n    </ion-buttons>\r\n\r\n    <ion-buttons slot=\"secondary\" *ngIf=\"!ls.isLoggedIn() && ls.getUser()\">\r\n        <ion-button (click)=\"logout()\" pTooltip=\"Logout\" tooltipPosition=\"bottom\">\r\n            <ion-icon name=\"log-out-sharp\"></ion-icon>\r\n        </ion-button>\r\n    </ion-buttons>\r\n\r\n    <ion-buttons slot=\"end\" *ngIf=\"showLanguageOption === 'true' && (!ls.getUser() && legacyMenu == 'false')\">\r\n        <p-menu #menu [popup]=\"true\" [model]=\"items\" appendTo=\"body\"></p-menu>\r\n        <ion-button (click)=\"menu.toggle($event)\" pTooltip=\"Language\" tooltipPosition=\"bottom\">\r\n          <ion-icon name=\"language\" slot=\"end\"></ion-icon>\r\n        </ion-button>\r\n      </ion-buttons>\r\n\r\n</ion-toolbar>\r\n<ion-toolbar color=\"light\" id=\"secondToolbar\" *ngIf=\"secondToolbar\">\r\n    <ion-buttons slot=\"start\">\r\n        <ion-back-button pTooltip=\"Back\" alt=\"Back\" tooltipPosition=\"bottom\" [defaultHref]=\"backPage ? backPage : '/welcome'\"></ion-back-button>\r\n        <ion-title color=\"primary\" *ngIf=\"title\" style=\"font-size: 18px\">{{title}}</ion-title>\r\n    </ion-buttons>\r\n    <ng-content></ng-content>\r\n    <ion-buttons slot=\"end\">\r\n        <ion-title color=\"primary\" style=\"font-size: xx-small; float: right; padding-right: 8px;\" *ngIf=\"pageId\">\r\n            {{pageId}}</ion-title>\r\n    </ion-buttons>\r\n</ion-toolbar>\r\n<p-toast>\r\n    <ng-template let-message pTemplate=\"message\">\r\n        <i *ngIf=\"message.severity === 'error'\" class=\"pi pi-times-circle\" style=\"margin-right: 14px; font-size: 38px \"></i>\r\n        <i *ngIf=\"message.severity === 'success'\" class=\"pi pi-check-circle\" style=\"margin-right: 14px; font-size: 38px \"></i>\r\n        <i *ngIf=\"message.severity === 'warn'\" class=\"pi pi-exclamation-circle\"style=\"margin-right: 14px; font-size: 38px \"></i>\r\n        <i *ngIf=\"message.severity === 'info'\" class=\"pi pi-info-circle\" style=\"margin-right: 14px; font-size: 38px \"></i>\r\n\r\n        <div [innerHTML]=\"'<strong style=\\'font-size: 22px;font-weight: bold;\\'>' + message.summary + '</strong><br><br>' + \r\n            '<span style=\\'font-size: 18px;\\'>' + message.detail + '</span>'\">\r\n          </div>\r\n    </ng-template>\r\n  </p-toast>\r\n\r\n<ng-container *ngIf=\"showProfilePopup\">\r\n    <app-profile *ngIf=\"showProfilePopup\" (onCancel)=\"showProfilePopup = !showProfilePopup\"></app-profile>\r\n</ng-container>\r\n\r\n<app-job-search-result-page *ngIf=\"showjobSearchResultPopup\" (onCancel)=\"showjobSearchResultPopup = !showjobSearchResultPopup\"></app-job-search-result-page>\r\n\r\n\r\n\r\n", styles: ["#secondToolbar{--min-height: 45px !important}#header_reemployms_logo{margin-right:10px;margin-left:-5px;padding:5px;height:40px}.header_logo{height:35px}.header_button_white,.header_button{background:#fff;height:56px;margin:0;padding:8px}.toolbar-content{text-align:center}ion-toolbar{--ion-toolbar-background: var(--ion-color-primary) !important;--color: white !important;--font-weight: 500;--font-size: 13px;--position: relative;--z-index: 10;--text-align: center;--letter-spacing: .004em}ion-button{--color-hover: var(--ion-color-yellow) !important;text-transform:none!important;font-size:20px}.header-button{--color: var(--ion-color-yellow) !important;text-transform:none!important;font-weight:700;font-size:20px}.ios ion-button::part(native){color:#fff!important}ion-menu-button::part(native){color:#fff!important}ion-popover{--width: 40% !important}img{visibility:visible;position:relative}:host ::ng-deep p-autoComplete .p-inputtext{height:40px;color:#000}:host ::ng-deep p-autoComplete .p-autocomplete-item{padding:.5rem!important}:host ::ng-deep .p-toast-bottom-center,:host ::ng-deep .p-toast-top-center{transform:none!important;z-index:100001!important}:host ::ng-deep .p-toast .p-toast-icon{font-size:48px!important}:host ::ng-deep .p-toast-icon-close{position:absolute!important;top:0;right:0;margin:5px}:host ::ng-deep .p-toast-summary{font-weight:700;display:block;margin-bottom:5px}:host ::ng-deep .p-toast-message,:host ::ng-deep .p-toast-detail{display:block;font-size:14px}@media (min-width: 768px){:host ::ng-deep .header-popover{--width: 55%}}@media (min-width: 992px){:host ::ng-deep .header-popover{--width: 40%}}@media (min-width: 1200px){:host ::ng-deep .header-popover{--width: 35%}}@media (min-width: 1400px){:host ::ng-deep .header-popover{--width: 30%}}\n"] }]
    }], () => [{ type: i1.LoginService }, { type: i2.UtilService }, { type: i3.Router }, { type: i4.PopoverController }, { type: i5.ClaimantService }, { type: i4.NavController }, { type: i4.ModalController }, { type: i6.NotificationService }, { type: i7.HelpService }, { type: i8.TranslateService }, { type: i9.AuditService }], { title: [{
            type: Input,
            args: ['title']
        }], pageId: [{
            type: Input,
            args: ['pageId']
        }], secondToolbar: [{
            type: Input,
            args: ['secondToolbar']
        }], displayLogo: [{
            type: Input,
            args: ['displayLogo']
        }], showHistory: [{
            type: Input,
            args: ['showHistory']
        }], backPage: [{
            type: Input,
            args: ['backPage']
        }], context: [{
            type: Input,
            args: ['context']
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderComponent, { className: "HeaderComponent", filePath: "lib\\components\\header\\header.component.ts", lineNumber: 26 }); })();
//# sourceMappingURL=data:application/json;base64, 