import { Component, EventEmitter, Input, Output } from '@angular/core';
import { CookieService } from 'ngx-cookie';
import { IS_LOGGED_IN_KEY, SEARCH_IN_UNAV } from '../inspire-library.const';
import { NavigationService } from '../navigation.service';
import { UserService } from '../user.service';
import { CallingComponent } from '../inspire-library.enum';
import * as i0 from "@angular/core";
import * as i1 from "../navigation.service";
import * as i2 from "../user.service";
import * as i3 from "ngx-cookie";
import * as i4 from "@angular/common";
function UniversalNavigationMobileComponent_a_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "a", 9);
    i0.ɵɵelement(1, "img", 10);
    i0.ɵɵelementEnd();
} }
function UniversalNavigationMobileComponent_button_4_Template(rf, ctx) { if (rf & 1) {
    const _r6 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 11);
    i0.ɵɵlistener("click", function UniversalNavigationMobileComponent_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.onInstallPwa(); });
    i0.ɵɵelement(1, "i", 12);
    i0.ɵɵtext(2, " Install");
    i0.ɵɵelementEnd();
} }
function UniversalNavigationMobileComponent_a_6_Template(rf, ctx) { if (rf & 1) {
    const _r8 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "a", 13);
    i0.ɵɵlistener("click", function UniversalNavigationMobileComponent_a_6_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.onToggleMenu(); });
    i0.ɵɵelementStart(1, "figure", 14);
    i0.ɵɵelement(2, "img", 15);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate2("src", "", ctx_r2.envUrl, "/api/member/", ctx_r2.username, "/avatar/m", i0.ɵɵsanitizeUrl);
    i0.ɵɵpropertyInterpolate("alt", ctx_r2.username);
} }
function UniversalNavigationMobileComponent_a_7_Template(rf, ctx) { if (rf & 1) {
    const _r10 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "a", 16);
    i0.ɵɵlistener("click", function UniversalNavigationMobileComponent_a_7_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.onToggleMenu(); });
    i0.ɵɵelementEnd();
} }
var I18N_0;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_about_us$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__1 = goog.getMsg("About Us");
    I18N_0 = MSG_EXTERNAL_about_us$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__1;
}
else {
    I18N_0 = $localize `:@@about_us␟847171f94c5e932a67df0c3b4d57e4e10d844b52␟5736481176444461852:About Us`;
}
var I18N_2;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_advertise_with_us$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__3 = goog.getMsg("Advertise with us");
    I18N_2 = MSG_EXTERNAL_advertise_with_us$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__3;
}
else {
    I18N_2 = $localize `:@@advertise_with_us␟d0c8254d625cc31723c5759677ab4d92e51a39dc␟2984337349153236208:Advertise with us`;
}
var I18N_4;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_terms_of_use$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__5 = goog.getMsg("Terms of Use");
    I18N_4 = MSG_EXTERNAL_terms_of_use$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__5;
}
else {
    I18N_4 = $localize `:@@terms_of_use␟0dd8a3bafea23b5595cfcb897f16acd2cc60cf02␟4242389206843989472:Terms of Use`;
}
var I18N_6;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_community_guidelines$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__7 = goog.getMsg("Community Guidelines");
    I18N_6 = MSG_EXTERNAL_community_guidelines$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__7;
}
else {
    I18N_6 = $localize `:@@community_guidelines␟1441a43b6c3d1b50fb2149ebe21bbcaac80e9b48␟366306583486256456:Community Guidelines`;
}
var I18N_8;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_help$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__9 = goog.getMsg("Help");
    I18N_8 = MSG_EXTERNAL_help$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__9;
}
else {
    I18N_8 = $localize `:@@help␟85b79c9064aed1ead31ace985f31aa1363f6bdaf␟7911416166208830577:Help`;
}
var I18N_10;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_glossary$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__11 = goog.getMsg("Glossary");
    I18N_10 = MSG_EXTERNAL_glossary$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__11;
}
else {
    I18N_10 = $localize `:@@glossary␟6edd1a650db2af580ebe746813024c45f1d854b1␟5020357869062357338:Glossary`;
}
var I18N_12;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_contact_us$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__13 = goog.getMsg("Contact Us");
    I18N_12 = MSG_EXTERNAL_contact_us$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__13;
}
else {
    I18N_12 = $localize `:@@contact_us␟02e9e69ddcbf93de9fd38bc4d0f312142658610d␟759687838251957893:Contact Us`;
}
var I18N_14;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_work_for_us$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__15 = goog.getMsg("Work for us");
    I18N_14 = MSG_EXTERNAL_work_for_us$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__15;
}
else {
    I18N_14 = $localize `:@@work_for_us␟4f0121ec4c613fb9ec2fb1583844648666304338␟4788208588298786818:Work for us`;
}
var I18N_16;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_our_principles$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__17 = goog.getMsg("Our Principles");
    I18N_16 = MSG_EXTERNAL_our_principles$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__17;
}
else {
    I18N_16 = $localize `:@@our_principles␟4f9308aca99ca745cd432c322046b9afa7f3063c␟7849082943710897609:Our Principles`;
}
var I18N_18;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_become_a_partner$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__19 = goog.getMsg("Become a partner");
    I18N_18 = MSG_EXTERNAL_become_a_partner$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS__19;
}
else {
    I18N_18 = $localize `:@@become_a_partner␟67de2ff519ac976a1505fca4c6fb4c0362142df2␟7193143805787991104:Become a partner`;
}
var I18N_20;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_profile$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___21 = goog.getMsg("View Profile");
    I18N_20 = MSG_EXTERNAL_profile$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___21;
}
else {
    I18N_20 = $localize `:@@profile␟18c764d0476eee6ef89686a85dbd6e682c9a0dac␟6749926724874923101:View Profile`;
}
var I18N_22;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_logout$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___23 = goog.getMsg("Log Out");
    I18N_22 = MSG_EXTERNAL_logout$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___23;
}
else {
    I18N_22 = $localize `:@@logout␟d0227a069d21cc5c6951d829cbf135be5b5bc767␟5113165610004622651:Log Out`;
}
function UniversalNavigationMobileComponent_div_8_div_1_Template(rf, ctx) { if (rf & 1) {
    const _r20 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 19);
    i0.ɵɵelementStart(1, "div", 27);
    i0.ɵɵelementStart(2, "figure", 28);
    i0.ɵɵelement(3, "img", 29);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 30);
    i0.ɵɵelementStart(5, "div", 31);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "div", 32);
    i0.ɵɵelementStart(8, "a", 33);
    i0.ɵɵi18n(9, I18N_20);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(10, "a", 34);
    i0.ɵɵlistener("click", function UniversalNavigationMobileComponent_div_8_div_1_Template_a_click_10_listener() { i0.ɵɵrestoreView(_r20); const ctx_r19 = i0.ɵɵnextContext(2); return ctx_r19.onLogout(); });
    i0.ɵɵi18n(11, I18N_22);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r11 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate2("src", "", ctx_r11.envUrl, "/api/member/", ctx_r11.username, "/avatar/m", i0.ɵɵsanitizeUrl);
    i0.ɵɵpropertyInterpolate("alt", ctx_r11.username);
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r11.username);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "/m/" + ctx_r11.username, i0.ɵɵsanitizeUrl);
} }
function UniversalNavigationMobileComponent_div_8_div_2_Template(rf, ctx) { if (rf & 1) {
    const _r22 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 19);
    i0.ɵɵelementStart(1, "div", 35);
    i0.ɵɵtext(2, "Welcome to Inspire!");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "div", 36);
    i0.ɵɵtext(4, "Log in to your account or Sign up below");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "div", 37);
    i0.ɵɵelementStart(6, "a", 38);
    i0.ɵɵlistener("click", function UniversalNavigationMobileComponent_div_8_div_2_Template_a_click_6_listener() { i0.ɵɵrestoreView(_r22); const ctx_r21 = i0.ɵɵnextContext(2); ctx_r21.onToggleMenu(); return ctx_r21.navigate.emit("/login"); });
    i0.ɵɵtext(7, "Sign In");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "a", 39);
    i0.ɵɵtext(9, "Sign Up");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r12 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(8);
    i0.ɵɵpropertyInterpolate1("href", "", ctx_r12.envUrl, "/join/", i0.ɵɵsanitizeUrl);
} }
function UniversalNavigationMobileComponent_div_8_a_4_Template(rf, ctx) { if (rf & 1) {
    const _r24 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "a", 40);
    i0.ɵɵlistener("click", function UniversalNavigationMobileComponent_div_8_a_4_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r24); const ctx_r23 = i0.ɵɵnextContext(2); return ctx_r23.onToggle("showAccount"); });
    i0.ɵɵtext(1, " My Account ");
    i0.ɵɵelementEnd();
} }
var I18N_24;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_home$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___25 = goog.getMsg("Home");
    I18N_24 = MSG_EXTERNAL_home$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___25;
}
else {
    I18N_24 = $localize `:@@home␟92eee6be6de0b11c924e3ab27db30257159c0a7c␟2821179408673282599:Home`;
}
var I18N_26;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_invite$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___27 = goog.getMsg("Invite to Inspire");
    I18N_26 = MSG_EXTERNAL_invite$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___27;
}
else {
    I18N_26 = $localize `:@@invite␟c45d880267be0c338ccca24c21c7830935c9f099␟5756999077859685470:Invite to Inspire`;
}
var I18N_28;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_following$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___29 = goog.getMsg("Following");
    I18N_28 = MSG_EXTERNAL_following$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___29;
}
else {
    I18N_28 = $localize `:@@following␟f995df052a1dfc675c2a21926420a707d9601936␟8726138323871139597:Following`;
}
var I18N_30;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_friends$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___31 = goog.getMsg("Friends");
    I18N_30 = MSG_EXTERNAL_friends$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___31;
}
else {
    I18N_30 = $localize `:@@friends␟40d0a92c57375f09289d576762822c18565d6dd2␟8707887448880467422:Friends`;
}
var I18N_32;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_messages$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___33 = goog.getMsg("Messages");
    I18N_32 = MSG_EXTERNAL_messages$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___33;
}
else {
    I18N_32 = $localize `:@@messages␟ea965d544a7dfd8185064c52cdfff553cf94d585␟6452372740127749380:Messages`;
}
var I18N_34;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_profile_settings$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___35 = goog.getMsg("Settings");
    I18N_34 = MSG_EXTERNAL_profile_settings$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___35;
}
else {
    I18N_34 = $localize `:@@profile_settings␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`;
}
function UniversalNavigationMobileComponent_div_8_ul_5_Template(rf, ctx) { if (rf & 1) {
    const _r26 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "ul", 41);
    i0.ɵɵelementStart(1, "li", 42);
    i0.ɵɵelementStart(2, "a", 43);
    i0.ɵɵelement(3, "i", 44);
    i0.ɵɵelementContainerStart(4);
    i0.ɵɵi18n(5, I18N_24);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "li", 42);
    i0.ɵɵelementStart(7, "a", 45);
    i0.ɵɵelement(8, "i", 46);
    i0.ɵɵelementContainerStart(9);
    i0.ɵɵi18n(10, I18N_26);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(11, "li", 42);
    i0.ɵɵelementStart(12, "a", 47);
    i0.ɵɵelement(13, "i", 48);
    i0.ɵɵelementContainerStart(14);
    i0.ɵɵi18n(15, I18N_28);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(16, "li", 42);
    i0.ɵɵelementStart(17, "a", 49);
    i0.ɵɵelement(18, "i", 50);
    i0.ɵɵelementContainerStart(19);
    i0.ɵɵi18n(20, I18N_30);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(21, "li", 42);
    i0.ɵɵelementStart(22, "a", 51);
    i0.ɵɵelement(23, "i", 52);
    i0.ɵɵelementContainerStart(24);
    i0.ɵɵi18n(25, I18N_32);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(26, "li", 42);
    i0.ɵɵelementStart(27, "a", 53);
    i0.ɵɵelement(28, "i", 54);
    i0.ɵɵelementContainerStart(29);
    i0.ɵɵi18n(30, I18N_34);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(31, "li", 42);
    i0.ɵɵelementStart(32, "a", 55);
    i0.ɵɵlistener("click", function UniversalNavigationMobileComponent_div_8_ul_5_Template_a_click_32_listener() { i0.ɵɵrestoreView(_r26); const ctx_r25 = i0.ɵɵnextContext(2); return ctx_r25.goToOldSearch.emit(); });
    i0.ɵɵelement(33, "i", 56);
    i0.ɵɵelementContainerStart(34);
    i0.ɵɵtext(35, "Return to Inspire Classic");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("href", "/invite", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("href", "/?section=following", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("href", "/friends.pl", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("href", "/messages.pl", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("href", "/member/settings/", i0.ɵɵsanitizeUrl);
} }
var I18N_36;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_discover_more$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___37 = goog.getMsg("Discover Inspire");
    I18N_36 = MSG_EXTERNAL_discover_more$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___37;
}
else {
    I18N_36 = $localize `:@@discover_more␟7b0c1b82a52e80ee5f071d48607e719d6ee8bbce␟2586470441576498506:Discover Inspire`;
}
function UniversalNavigationMobileComponent_div_8_a_7_Template(rf, ctx) { if (rf & 1) {
    const _r28 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "a", 57);
    i0.ɵɵlistener("click", function UniversalNavigationMobileComponent_div_8_a_7_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r28); const ctx_r27 = i0.ɵɵnextContext(2); return ctx_r27.onToggle("showDiscoverInspire"); });
    i0.ɵɵelementStart(1, "span");
    i0.ɵɵi18n(2, I18N_36);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} }
var I18N_38;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_browse_communities$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___39 = goog.getMsg("Browse Communities");
    I18N_38 = MSG_EXTERNAL_browse_communities$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___39;
}
else {
    I18N_38 = $localize `:@@browse_communities␟de3b82080ab195860d47e8c9072f9695ac02a40f␟5301331176998344308:Browse Communities`;
}
var I18N_40;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_browse_treatments$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___41 = goog.getMsg("Browse Treatments");
    I18N_40 = MSG_EXTERNAL_browse_treatments$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___41;
}
else {
    I18N_40 = $localize `:@@browse_treatments␟1e4d25568cb58f6db1962f34ec61527da7a2878e␟3496374103311538531:Browse Treatments`;
}
var I18N_42;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_find_conditions$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___43 = goog.getMsg("Find Conditions");
    I18N_42 = MSG_EXTERNAL_find_conditions$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___43;
}
else {
    I18N_42 = $localize `:@@find_conditions␟8052f5bb75e78bc1c8ba888d26f8e99d763d61c0␟1780907518339332512:Find Conditions`;
}
var I18N_44;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    const MSG_EXTERNAL_find_members$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___45 = goog.getMsg("Find Members");
    I18N_44 = MSG_EXTERNAL_find_members$$LIB_UNAV_MOBILE_UNAV_MOBILE_COMPONENT_TS___45;
}
else {
    I18N_44 = $localize `:@@find_members␟457c829bbb301fe89255847eca097fee436eb01f␟1464247881352069123:Find Members`;
}
function UniversalNavigationMobileComponent_div_8_ul_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ul", 41);
    i0.ɵɵelementStart(1, "li", 42);
    i0.ɵɵelementStart(2, "a", 58);
    i0.ɵɵelement(3, "i", 59);
    i0.ɵɵelementContainerStart(4);
    i0.ɵɵi18n(5, I18N_38);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "li", 42);
    i0.ɵɵelementStart(7, "a", 60);
    i0.ɵɵelement(8, "i", 61);
    i0.ɵɵelementContainerStart(9);
    i0.ɵɵi18n(10, I18N_40);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(11, "li", 42);
    i0.ɵɵelementStart(12, "a", 62);
    i0.ɵɵelement(13, "i", 63);
    i0.ɵɵelementContainerStart(14);
    i0.ɵɵi18n(15, I18N_42);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(16, "li", 42);
    i0.ɵɵelementStart(17, "a", 64);
    i0.ɵɵelement(18, "i", 50);
    i0.ɵɵelementContainerStart(19);
    i0.ɵɵi18n(20, I18N_44);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r16 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "/groups/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("href", "/treatment/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("href", "/conditions/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("href", ctx_r16.loggedIn ? "/friends.pl" : ctx_r16.envUrl + "/login/", i0.ɵɵsanitizeUrl);
} }
function UniversalNavigationMobileComponent_div_8_ng_template_9_ng_container_2_div_1_Template(rf, ctx) { if (rf & 1) {
    const _r34 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 68);
    i0.ɵɵlistener("click", function UniversalNavigationMobileComponent_div_8_ng_template_9_ng_container_2_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r34); const community_r32 = ctx.$implicit; const ctx_r33 = i0.ɵɵnextContext(4); return ctx_r33.onClickCommunity(community_r32); });
    i0.ɵɵelementStart(1, "figure", 69);
    i0.ɵɵelement(2, "img", 70);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "div", 71);
    i0.ɵɵelementStart(4, "div", 72);
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const community_r32 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("src", community_r32 == null ? null : community_r32.assets == null ? null : community_r32.assets.logo_image, i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(community_r32 == null ? null : community_r32.name);
} }
function UniversalNavigationMobileComponent_div_8_ng_template_9_ng_container_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
    const _r36 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "div", 73);
    i0.ɵɵlistener("click", function UniversalNavigationMobileComponent_div_8_ng_template_9_ng_container_2_ng_container_2_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r36); const ctx_r35 = i0.ɵɵnextContext(4); return ctx_r35.onViewAllCommunity(); });
    i0.ɵɵelement(2, "figure", 74);
    i0.ɵɵelementStart(3, "div", 71);
    i0.ɵɵelementStart(4, "div", 72);
    i0.ɵɵtext(5, "View All");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} }
function UniversalNavigationMobileComponent_div_8_ng_template_9_ng_container_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtemplate(1, UniversalNavigationMobileComponent_div_8_ng_template_9_ng_container_2_div_1_Template, 6, 2, "div", 67);
    i0.ɵɵtemplate(2, UniversalNavigationMobileComponent_div_8_ng_template_9_ng_container_2_ng_container_2_Template, 6, 0, "ng-container", 66);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r29 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r29.memberCommunities.slice(0, ctx_r29.maxCommunityCount));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r29.memberCommunities == null ? null : ctx_r29.memberCommunities.length) > ctx_r29.maxCommunityCount);
} }
function UniversalNavigationMobileComponent_div_8_ng_template_9_Template(rf, ctx) { if (rf & 1) {
    const _r38 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "a", 65);
    i0.ɵɵlistener("click", function UniversalNavigationMobileComponent_div_8_ng_template_9_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r38); const ctx_r37 = i0.ɵɵnextContext(2); return ctx_r37.onToggle("showMemberCommunities"); });
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(2, UniversalNavigationMobileComponent_div_8_ng_template_9_ng_container_2_Template, 3, 2, "ng-container", 66);
} if (rf & 2) {
    const ctx_r18 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r18.loggedIn ? "Communities" : "Suggested Communities", " ");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r18.showMemberCommunities);
} }
function UniversalNavigationMobileComponent_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 17);
    i0.ɵɵtemplate(1, UniversalNavigationMobileComponent_div_8_div_1_Template, 12, 5, "div", 18);
    i0.ɵɵtemplate(2, UniversalNavigationMobileComponent_div_8_div_2_Template, 10, 1, "div", 18);
    i0.ɵɵelementStart(3, "nav", 19);
    i0.ɵɵtemplate(4, UniversalNavigationMobileComponent_div_8_a_4_Template, 2, 0, "a", 20);
    i0.ɵɵtemplate(5, UniversalNavigationMobileComponent_div_8_ul_5_Template, 36, 6, "ul", 21);
    i0.ɵɵelementContainer(6, 22);
    i0.ɵɵtemplate(7, UniversalNavigationMobileComponent_div_8_a_7_Template, 3, 0, "a", 23);
    i0.ɵɵtemplate(8, UniversalNavigationMobileComponent_div_8_ul_8_Template, 21, 4, "ul", 21);
    i0.ɵɵtemplate(9, UniversalNavigationMobileComponent_div_8_ng_template_9_Template, 3, 2, "ng-template", null, 24, i0.ɵɵtemplateRefExtractor);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(11, "div", 25);
    i0.ɵɵelementStart(12, "a", 26);
    i0.ɵɵi18n(13, I18N_0);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(14, "a", 26);
    i0.ɵɵi18n(15, I18N_2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(16, "a", 26);
    i0.ɵɵi18n(17, I18N_4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(18, "a", 26);
    i0.ɵɵtext(19, "Privacy Statement");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(20, "a", 26);
    i0.ɵɵi18n(21, I18N_6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(22, "a", 26);
    i0.ɵɵi18n(23, I18N_8);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(24, "a", 26);
    i0.ɵɵi18n(25, I18N_10);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(26, "a", 26);
    i0.ɵɵi18n(27, I18N_12);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(28, "a", 26);
    i0.ɵɵi18n(29, I18N_14);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(30, "a", 26);
    i0.ɵɵi18n(31, I18N_16);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(32, "a", 26);
    i0.ɵɵi18n(33, I18N_18);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const _r17 = i0.ɵɵreference(10);
    const ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.loggedIn);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r4.loggedIn);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r4.loggedIn);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.showAccount);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngTemplateOutlet", _r17);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.loggedIn);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.showDiscoverInspire);
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("href", "https://corp.inspire.com/meet-inspire/our-story/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "https://corp.inspire.com/partnership-customers/pharma-biotech-industry/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "/about/terms/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "/about/privacy/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "/about/guidelines/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "/help/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "/about/glossary/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "/contact/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "https://corp.inspire.com/meet-inspire/careers/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "https://www.inspire.com/about/our-principles/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "https://corp.inspire.com/partnership-customers/patient-advocacy-groups/", i0.ɵɵsanitizeUrl);
} }
export class UniversalNavigationMobileComponent {
    constructor(navigationService, userService, cookieService) {
        this.navigationService = navigationService;
        this.userService = userService;
        this.cookieService = cookieService;
        this.useAPI = false;
        this.envUrl = "";
        this.memberCommunities = [];
        this.maxCommunityCount = 3;
        this.calledFrom = CallingComponent.NotSpecified;
        this.isPWAReady = false;
        this.groupId = 0;
        this.groupNameId = "";
        this.clickCommunity = new EventEmitter();
        this.browseCommunities = new EventEmitter();
        this.installPWA = new EventEmitter();
        this.viewAllCommunity = new EventEmitter();
        this.goToOldSearch = new EventEmitter();
        this.navigate = new EventEmitter();
        this.showMenu = false;
        this.showDiscoverInspire = false;
        this.showAccount = true;
        this.showMemberCommunities = false;
        this.CallingComponent = CallingComponent;
        this.visitingMemberCommunity = false;
        if (this.useAPI) {
            this.userService.getUserData(this.envUrl).subscribe((resp) => {
                this.loggedIn = resp["data"]["status"] === 4;
                this.username = resp["data"]["nickname"];
            });
        }
    }
    ngOnInit() {
        this.setInitState();
    }
    ngOnChanges() {
        this.isVisitingMemberCommunity();
    }
    isVisitingMemberCommunity() {
        this.visitingMemberCommunity = this.memberCommunities.some(community => (community === null || community === void 0 ? void 0 : community.name_id) === this.groupNameId);
    }
    setInitState() {
        this.onToggle('showDiscoverInspire', !this.loggedIn);
        this.onToggle('showAccount', this.loggedIn);
        this.onToggle('showMemberCommunities', false);
    }
    onToggleMenu(value) {
        this.setInitState();
        this.onToggle('showMenu', value);
        this.toggleBodyScroll(this.showMenu);
    }
    onToggle(prop, value) {
        if (value == false || value == true) {
            this[prop] = value;
        }
        else {
            this[prop] = !this[prop];
        }
    }
    onLogout() {
        this.navigationService.logout().subscribe(res => {
            this.cookieService.remove(IS_LOGGED_IN_KEY);
            window.location.reload();
        });
    }
    toggleBodyScroll(isUnavExpanded) {
        const body = document.querySelector('body');
        body.style.overflow = isUnavExpanded ? 'hidden' : 'scroll';
    }
    onClickCommunity(community) {
        this.clickCommunity.emit(community);
    }
    onBrowseCommunities() {
        this.browseCommunities.emit(null);
    }
    onInstallPwa() {
        this.installPWA.emit();
    }
    onViewAllCommunity() {
        this.viewAllCommunity.emit();
    }
    onSearchClick() {
        const timeEpoch = Date.now();
        if (this.groupNameId && this.loggedIn && this.visitingMemberCommunity) {
            SEARCH_IN_UNAV(this.envUrl, `${this.groupId}`, '', timeEpoch);
        }
        else if (this.groupNameId && (!this.loggedIn || !this.visitingMemberCommunity)) {
            SEARCH_IN_UNAV(this.envUrl, '', '', timeEpoch);
        }
        else if (!this.groupNameId) {
            SEARCH_IN_UNAV(this.envUrl, '', '', null);
        }
    }
}
UniversalNavigationMobileComponent.ɵfac = function UniversalNavigationMobileComponent_Factory(t) { return new (t || UniversalNavigationMobileComponent)(i0.ɵɵdirectiveInject(i1.NavigationService), i0.ɵɵdirectiveInject(i2.UserService), i0.ɵɵdirectiveInject(i3.CookieService)); };
UniversalNavigationMobileComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UniversalNavigationMobileComponent, selectors: [["ins-unav-mobile"]], inputs: { useAPI: "useAPI", loggedIn: "loggedIn", username: "username", envUrl: "envUrl", memberCommunities: "memberCommunities", maxCommunityCount: "maxCommunityCount", calledFrom: "calledFrom", isPWAReady: "isPWAReady", groupId: "groupId", groupNameId: "groupNameId" }, outputs: { clickCommunity: "clickCommunity", browseCommunities: "browseCommunities", installPWA: "installPWA", viewAllCommunity: "viewAllCommunity", goToOldSearch: "goToOldSearch", navigate: "navigate" }, features: [i0.ɵɵNgOnChangesFeature], decls: 9, vars: 8, consts: [[1, "universal-nav-mobile"], [1, "unb-bar"], [1, "icn-search", 3, "click"], ["class", "unb-logo", 4, "ngIf"], ["class", "unb-install-app", 3, "click", 4, "ngIf"], [1, "icn-Invite", "unb-invite", 3, "href"], ["class", "unb-profile-btn", 3, "click", 4, "ngIf"], ["class", "icn-menu", 3, "click", 4, "ngIf"], ["class", "unb-dropdown", 4, "ngIf"], [1, "unb-logo"], ["src", "/assets/img/logo-mobile.svg", "alt", "Inspire"], [1, "unb-install-app", 3, "click"], [1, "icn-inspire"], [1, "unb-profile-btn", 3, "click"], [1, "unb-pb-avatar"], ["id", "avatarImage", 3, "src", "alt"], [1, "icn-menu", 3, "click"], [1, "unb-dropdown"], ["class", "unb-section", 4, "ngIf"], [1, "unb-section"], ["class", "unb-menu-btn active", 3, "click", 4, "ngIf"], ["class", "unb-list", 4, "ngIf"], [3, "ngTemplateOutlet"], ["class", "unb-menu-btn unb-discover", 3, "click", 4, "ngIf"], ["communityTemplate", ""], [1, "unb-section", "unb-extras"], [1, "unb-action", 3, "href"], [1, "unb-user"], [1, "unb-avatar"], [3, "src", "alt"], [1, "unb-u-meta"], [1, "unb-u-name"], [1, "unb-u-actions"], [1, "unb-u-link", 3, "href"], [1, "unb-u-link", "unb-u-logout", 3, "click"], [1, "unb-title"], [1, "unb-caption"], [1, "unb-anonymous"], [1, "unb-btn", "unb-login", 3, "click"], [1, "unb-btn", "unb-signup", 3, "href"], [1, "unb-menu-btn", "active", 3, "click"], [1, "unb-list"], [1, "unb-l-item"], ["id", "goToHome", 1, "unb-l-link", 3, "href"], [1, "unb-l-icon", "icn-home"], ["id", "goToInvite", 1, "unb-l-link", 3, "href"], [1, "unb-l-icon", "icn-Invite"], ["id", "goToFollowing", 1, "unb-l-link", 3, "href"], [1, "unb-l-icon", "icn-pin"], ["id", "goToFriends", 1, "unb-l-link", 3, "href"], [1, "unb-l-icon", "icn-friends"], ["id", "goToMessages", 1, "unb-l-link", 3, "href"], [1, "unb-l-icon", "icn-msgs"], ["id", "goToSettings", 1, "unb-l-link", 3, "href"], [1, "unb-l-icon", "icn-settings"], [1, "unb-l-link", 3, "click"], [1, "unb-l-icon", "icn-inspire"], [1, "unb-menu-btn", "unb-discover", 3, "click"], ["title", "Communities", 1, "unb-l-link", 3, "href"], [1, "unb-l-icon", "icn-community"], ["title", "treatments", 1, "unb-l-link", 3, "href"], [1, "unb-l-icon", "icn-treatment"], ["title", "conditions", 1, "unb-l-link", 3, "href"], [1, "unb-l-icon", "icn-aid"], ["title", "friends", 1, "unb-l-link", 3, "href"], [1, "unb-menu-btn", "unb-communities", 3, "click"], [4, "ngIf"], ["class", "avatar-block", 3, "click", 4, "ngFor", "ngForOf"], [1, "avatar-block", 3, "click"], [1, "ab-fig"], ["id", "avatarImage", "alt", "community logo", 3, "src"], [1, "ab-meta"], [1, "ab-label"], ["id", "view_all_communities", 1, "avatar-block", 3, "click"], [1, "ab-fig", "border-0"]], template: function UniversalNavigationMobileComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "header", 0);
        i0.ɵɵelementStart(1, "div", 1);
        i0.ɵɵelementStart(2, "a", 2);
        i0.ɵɵlistener("click", function UniversalNavigationMobileComponent_Template_a_click_2_listener() { return ctx.onSearchClick(); });
        i0.ɵɵelementEnd();
        i0.ɵɵtemplate(3, UniversalNavigationMobileComponent_a_3_Template, 2, 0, "a", 3);
        i0.ɵɵtemplate(4, UniversalNavigationMobileComponent_button_4_Template, 3, 0, "button", 4);
        i0.ɵɵelement(5, "a", 5);
        i0.ɵɵtemplate(6, UniversalNavigationMobileComponent_a_6_Template, 3, 3, "a", 6);
        i0.ɵɵtemplate(7, UniversalNavigationMobileComponent_a_7_Template, 1, 0, "a", 7);
        i0.ɵɵelementEnd();
        i0.ɵɵtemplate(8, UniversalNavigationMobileComponent_div_8_Template, 34, 18, "div", 8);
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵadvance(2);
        i0.ɵɵclassProp("v-hidden", ctx.calledFrom === ctx.CallingComponent.Search);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", !ctx.isPWAReady);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.isPWAReady);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("href", "/invite", i0.ɵɵsanitizeUrl);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.loggedIn);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", !ctx.loggedIn);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.showMenu);
    } }, directives: [i4.NgIf, i4.NgTemplateOutlet, i4.NgForOf], styles: ["a[_ngcontent-%COMP%]{text-decoration:none}*[_ngcontent-%COMP%]{font-family:Lato,sans-serif;outline:0}.unb-btn[_ngcontent-%COMP%], .unb-install-app[_ngcontent-%COMP%]{border:none;border-radius:.5rem;font-size:1rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0 1rem;height:2.25rem;transition:.3s ease-in-out;background:0 0}.unb-btn[_ngcontent-%COMP%]:hover, .unb-install-app[_ngcontent-%COMP%]:hover{background:#f8f9fb}.unb-btn[disabled][_ngcontent-%COMP%], .unb-install-app[disabled][_ngcontent-%COMP%]{background:#c6cbc9;color:#6e6f70;cursor:default}.unb-btn[_ngcontent-%COMP%]{height:3.75rem}.unb-btn.unb-login[_ngcontent-%COMP%], .unb-install-app[_ngcontent-%COMP%]{background:#009dfc;color:#fff}.unb-btn.unb-login[_ngcontent-%COMP%]:not([disabled]):hover, .unb-install-app[_ngcontent-%COMP%]:not([disabled]):hover{background:#008de3}.unb-btn.unb-signup[_ngcontent-%COMP%]{background:#005cc9;color:#fff}.unb-btn.unb-signup[_ngcontent-%COMP%]:not([disabled]):hover{background:#0050b0}@font-face{font-family:ins-icons;src:url(/assets/fonts/icons/ins-icons.ttf?nf14g1) format(\"truetype\"),url(/assets/fonts/icons/ins-icons.woff?nf14g1) format(\"woff\"),url(/assets/fonts/icons/ins-icons.svg?nf14g1#ins-icons) format(\"svg\");font-weight:400;font-style:normal;font-display:block}.ins-icon[_ngcontent-%COMP%], .unb-menu-btn[_ngcontent-%COMP%]:after, .unb-menu-btn[_ngcontent-%COMP%]:before, .unb-profile-btn[_ngcontent-%COMP%]:before, [class*=\" icn-\"][_ngcontent-%COMP%], [class^=icn-][_ngcontent-%COMP%]{font-family:ins-icons!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icn-minus-o[_ngcontent-%COMP%]:before{content:\"\\e93a\"}.icn-disclaimer[_ngcontent-%COMP%]:before{content:\"\\e934\"}.icn-leave-community[_ngcontent-%COMP%]:before{content:\"\\e935\"}.icn-stethoscope[_ngcontent-%COMP%]:before{content:\"\\e936\"}.icn-join-community[_ngcontent-%COMP%]:before{content:\"\\e937\"}.icn-resources[_ngcontent-%COMP%]:before{content:\"\\e938\"}.icn-help[_ngcontent-%COMP%]:before{content:\"\\e939\"}.icn-checked[_ngcontent-%COMP%]:before{content:\"\\e933\"}.icn-plus[_ngcontent-%COMP%]:before{content:\"\\e932\"}.icn-expand[_ngcontent-%COMP%]:before{content:\"\\e931\"}.icn-Invite[_ngcontent-%COMP%]:before{content:\"\\e930\"}.icn-report[_ngcontent-%COMP%]:before{content:\"\\e92f\"}.icn-unfollow[_ngcontent-%COMP%]:before{content:\"\\e92e\"}.icn-block[_ngcontent-%COMP%]:before{content:\"\\e92d\"}.icn-trash[_ngcontent-%COMP%]:before{content:\"\\e92b\"}.icn-follow[_ngcontent-%COMP%]:before{content:\"\\e92c\"}.icn-lock[_ngcontent-%COMP%]:before{content:\"\\e92a\"}.icn-bolt-left[_ngcontent-%COMP%]:before{content:\"\\e925\"}.icn-bolt-right[_ngcontent-%COMP%]:before{content:\"\\e926\"}.icn-bolt-down[_ngcontent-%COMP%]:before{content:\"\\e927\"}.icn-bolt-up[_ngcontent-%COMP%]:before{content:\"\\e928\"}.icn-img-o[_ngcontent-%COMP%]:before{content:\"\\e929\"}.icn-tick[_ngcontent-%COMP%]:before{content:\"\\e924\"}.icn-tick-o[_ngcontent-%COMP%]:before{content:\"\\e923\"}.icn-cross-o[_ngcontent-%COMP%]:before{content:\"\\e922\"}.icn-plus-o[_ngcontent-%COMP%]:before{content:\"\\e921\"}.icn-hide[_ngcontent-%COMP%]:before{content:\"\\e920\"}.icn-menu[_ngcontent-%COMP%]:before{content:\"\\e900\"}.icn-more[_ngcontent-%COMP%]:before{content:\"\\e901\"}.icn-msgs[_ngcontent-%COMP%]:before{content:\"\\e902\"}.icn-pin[_ngcontent-%COMP%]:before{content:\"\\e903\"}.icn-reply[_ngcontent-%COMP%]:before{content:\"\\e904\"}.icn-search[_ngcontent-%COMP%]:before{content:\"\\e905\"}.icn-settings[_ngcontent-%COMP%]:before{content:\"\\e906\"}.icn-treatment[_ngcontent-%COMP%]:before{content:\"\\e907\"}.icn-aid[_ngcontent-%COMP%]:before{content:\"\\e908\"}.icn-apple[_ngcontent-%COMP%]:before{content:\"\\e909\"}.icn-arrow-down[_ngcontent-%COMP%]:before{content:\"\\e90a\"}.icn-arrow-up[_ngcontent-%COMP%]:before{content:\"\\e91d\"}.icn-arrow-left[_ngcontent-%COMP%]:before{content:\"\\e91e\"}.icn-arrow-right[_ngcontent-%COMP%]:before{content:\"\\e91f\"}.icn-bell[_ngcontent-%COMP%]:before{content:\"\\e90b\"}.icn-bookmark-o[_ngcontent-%COMP%]:before{content:\"\\e90c\"}.icn-calendar[_ngcontent-%COMP%]:before{content:\"\\e90d\"}.icn-check[_ngcontent-%COMP%]:before{content:\"\\e90e\"}.icn-community[_ngcontent-%COMP%]:before{content:\"\\e90f\"}.icn-d-arrow-up[_ngcontent-%COMP%]:before{content:\"\\e910\"}.icn-discussion[_ngcontent-%COMP%]:before{content:\"\\e911\"}.icn-edit[_ngcontent-%COMP%]:before{content:\"\\e912\"}.icn-facebook[_ngcontent-%COMP%]:before{content:\"\\e913\"}.icn-filters[_ngcontent-%COMP%]:before{content:\"\\e914\"}.icn-friends[_ngcontent-%COMP%]:before{content:\"\\e915\"}.icn-google[_ngcontent-%COMP%]:before{content:\"\\e916\"}.icn-heart[_ngcontent-%COMP%]:before{content:\"\\e917\"}.icn-home[_ngcontent-%COMP%]:before{content:\"\\e918\"}.icn-img[_ngcontent-%COMP%]:before{content:\"\\e919\"}.icn-inspire[_ngcontent-%COMP%]:before{content:\"\\e91a\"}.icn-journal[_ngcontent-%COMP%]:before{content:\"\\e91b\"}.icn-like[_ngcontent-%COMP%]:before{content:\"\\e91c\"}.avatar-block[_ngcontent-%COMP%]{display:flex;align-items:center}.avatar-block[_ngcontent-%COMP%]   .ab-fig[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50%;margin:0 .75rem 0 0;flex:0 0 auto;position:relative;overflow:hidden;border:1px solid #e2e5e4;background:#fff}.avatar-block[_ngcontent-%COMP%]   .ab-fig[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;image-rendering:auto}.avatar-block[_ngcontent-%COMP%]   .ab-meta[_ngcontent-%COMP%]{flex:1 1 auto}.avatar-block[_ngcontent-%COMP%]   .ab-label[_ngcontent-%COMP%]{font-size:.875rem;color:#000;line-height:1.3}.avatar-block[_ngcontent-%COMP%]   .ab-stamp[_ngcontent-%COMP%]{flex:0 0 auto;font-size:.75rem;color:#e1e3e2;margin-left:.625rem}[_nghost-%COMP%]{display:block;height:3.25rem;position:relative}.universal-nav-mobile[_ngcontent-%COMP%]{position:fixed;z-index:10;height:3.25rem;left:0;width:100%}.unb-install-app[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:20px;margin-right:5px}.unb-bar[_ngcontent-%COMP%]{height:3.25rem;padding:0 1rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e5e4;background:#fff}.v-hidden[_ngcontent-%COMP%]{visibility:hidden;pointer-events:none}.icn-search[_ngcontent-%COMP%]{color:#000;font-size:1.1875rem;width:3.125rem;text-align:left}.unb-invite[_ngcontent-%COMP%]{color:#061a73;font-size:1.1875rem;position:absolute;right:80px}.unb-logo[_ngcontent-%COMP%]{display:block}.unb-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:1.875rem}.icn-menu[_ngcontent-%COMP%]{font-size:1.25rem;width:3.125rem;text-align:right;color:#000}.unb-dropdown[_ngcontent-%COMP%]{background:#fff;position:fixed;top:8.875rem;bottom:0;left:0;right:0;overflow-y:auto}.unb-section[_ngcontent-%COMP%]{padding:1.875rem}.unb-section[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e2e5e4}.unb-title[_ngcontent-%COMP%]{font-size:1.1875rem;font-weight:500;font-family:Palanquin,sans-serif;color:#061a73;margin-bottom:.625rem;text-align:center}.unb-caption[_ngcontent-%COMP%]{color:#6e6f70;font-size:.75rem;text-align:center}.unb-anonymous[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:1.5625rem}.unb-btn[_ngcontent-%COMP%]{width:9.6875rem}.unb-btn.unb-signup[_ngcontent-%COMP%]{margin-left:.75rem}.unb-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}.unb-l-link[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:.875rem;color:#000;padding:0;min-height:2.625rem}.unb-l-link[_ngcontent-%COMP%]   .icn-community[_ngcontent-%COMP%], .unb-l-link[_ngcontent-%COMP%]   .icn-msgs[_ngcontent-%COMP%], .unb-l-link[_ngcontent-%COMP%]   .icn-treatment[_ngcontent-%COMP%]{font-size:1.375rem}.unb-l-icon[_ngcontent-%COMP%]{width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;color:#061a73;font-size:1.125rem;background:0 0;margin-right:.5rem}.unb-extras[_ngcontent-%COMP%]{-moz-column-count:2;column-count:2;-moz-column-gap:2.125rem;column-gap:2.125rem;padding-left:3.125rem;padding-right:3.125rem}.unb-action[_ngcontent-%COMP%]{font-size:.625rem;color:#6e6f70;text-decoration:none;display:block;padding:.3125rem 0}.unb-user[_ngcontent-%COMP%]{display:flex;align-items:center}.unb-user[_ngcontent-%COMP%]   .unb-avatar[_ngcontent-%COMP%]{width:2.75rem;height:2.75rem;border-radius:50%;overflow:hidden;margin:0 1.5rem 0 0}.unb-user[_ngcontent-%COMP%]   .unb-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;-o-object-fit:cover;object-fit:cover}.unb-u-meta[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.unb-u-name[_ngcontent-%COMP%]{font-size:1.1875rem;font-family:Palanquin,sans-serif;color:#061a73;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.unb-u-link[_ngcontent-%COMP%]{font-size:.75rem;color:#000;text-decoration:none}.unb-u-logout[_ngcontent-%COMP%]{color:#6e6f70;margin-left:.625rem}.unb-u-actions[_ngcontent-%COMP%]{margin-top:.3125rem}.unb-menu-btn[_ngcontent-%COMP%]{font-size:1rem;color:#6e6f70;text-decoration:none;display:flex;align-items:center;margin-bottom:.3125rem}.unb-menu-btn[_ngcontent-%COMP%]:not(:first-child){margin-top:.9375rem}.unb-menu-btn.active[_ngcontent-%COMP%]{color:#000}.unb-menu-btn[_ngcontent-%COMP%]:after{margin-left:.625rem;content:\"\\e90a\";font-size:.625rem}.unb-menu-btn[_ngcontent-%COMP%]:before{margin-right:.625rem;font-size:1.25rem}.unb-discover[_ngcontent-%COMP%]:before{content:\"\\e91a\"}.unb-communities[_ngcontent-%COMP%]:before{content:\"\\e90f\"}.avatar-block[_ngcontent-%COMP%]{margin-top:.625rem}.unb-profile-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:3.125rem}.unb-profile-btn[_ngcontent-%COMP%]:before{font-size:.625rem;content:\"\\e90a\"}.unb-pb-avatar[_ngcontent-%COMP%]{width:1.875rem;height:1.875rem;border-radius:50%;overflow:hidden;margin:0}.unb-pb-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;-o-object-fit:cover;object-fit:cover}.border-0[_ngcontent-%COMP%]{border:none!important}"] });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UniversalNavigationMobileComponent, [{
        type: Component,
        args: [{
                selector: 'ins-unav-mobile',
                templateUrl: './unav-mobile.component.html',
                styleUrls: ['./unav-mobile.component.scss']
            }]
    }], function () { return [{ type: i1.NavigationService }, { type: i2.UserService }, { type: i3.CookieService }]; }, { useAPI: [{
            type: Input
        }], loggedIn: [{
            type: Input
        }], username: [{
            type: Input
        }], envUrl: [{
            type: Input
        }], memberCommunities: [{
            type: Input
        }], maxCommunityCount: [{
            type: Input
        }], calledFrom: [{
            type: Input
        }], isPWAReady: [{
            type: Input
        }], groupId: [{
            type: Input
        }], groupNameId: [{
            type: Input
        }], clickCommunity: [{
            type: Output
        }], browseCommunities: [{
            type: Output
        }], installPWA: [{
            type: Output
        }], viewAllCommunity: [{
            type: Output
        }], goToOldSearch: [{
            type: Output
        }], navigate: [{
            type: Output
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 