import { __makeTemplateObject } from "tslib";
import { Component, Input, ChangeDetectorRef, HostListener, Output, EventEmitter } from '@angular/core';
import { NavigationService } from "../navigation.service";
import { UserService } from "../user.service";
import { WindowService } from '../window.service';
import { IS_LOGGED_IN_KEY, SEARCH_IN_UNAV } from '../inspire-library.const';
import { CallingComponent } from '../inspire-library.enum';
import { CookieService } from 'ngx-cookie';
import * as i0 from "@angular/core";
import * as i1 from "../user.service";
import * as i2 from "../navigation.service";
import * as i3 from "../window.service";
import * as i4 from "ngx-cookie";
import * as i5 from "@angular/common";
import * as i6 from "../click-outside.directive";
import * as i7 from "@angular/forms";
var I18N_0;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_discover_more$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS_1 = goog.getMsg("Discover Inspire");
    I18N_0 = MSG_EXTERNAL_discover_more$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS_1;
}
else {
    I18N_0 = $localize(templateObject_1 || (templateObject_1 = __makeTemplateObject([":@@discover_more\u241F7b0c1b82a52e80ee5f071d48607e719d6ee8bbce\u241F2586470441576498506:Discover Inspire"], [":@@discover_more\u241F7b0c1b82a52e80ee5f071d48607e719d6ee8bbce\u241F2586470441576498506:Discover Inspire"])));
}
function UniversalNavigationDesktopComponent_form_3_Template(rf, ctx) { if (rf & 1) {
    var _r7 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "form", 13, 14);
    i0.ɵɵlistener("ngSubmit", function UniversalNavigationDesktopComponent_form_3_Template_form_ngSubmit_0_listener() { i0.ɵɵrestoreView(_r7); var _r5 = i0.ɵɵreference(1); var ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.onSubmit(_r5); });
    i0.ɵɵelementStart(2, "input", 15);
    i0.ɵɵlistener("click", function UniversalNavigationDesktopComponent_form_3_Template_input_click_2_listener() { i0.ɵɵrestoreView(_r7); var ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.onInputClick(); })("ngModelChange", function UniversalNavigationDesktopComponent_form_3_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r7); var ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.query = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "button", 16);
    i0.ɵɵlistener("click", function UniversalNavigationDesktopComponent_form_3_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r7); var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onInputClick(); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("placeholder", ctx_r0.searchPlaceholder)("ngModel", ctx_r0.query);
} }
var I18N_2;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_browse_communities$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__3 = goog.getMsg("Browse Communities");
    I18N_2 = MSG_EXTERNAL_browse_communities$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__3;
}
else {
    I18N_2 = $localize(templateObject_2 || (templateObject_2 = __makeTemplateObject([":@@browse_communities\u241Fde3b82080ab195860d47e8c9072f9695ac02a40f\u241F5301331176998344308:Browse Communities"], [":@@browse_communities\u241Fde3b82080ab195860d47e8c9072f9695ac02a40f\u241F5301331176998344308:Browse Communities"])));
}
var I18N_4;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_browse_treatments$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__5 = goog.getMsg("Browse Treatments");
    I18N_4 = MSG_EXTERNAL_browse_treatments$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__5;
}
else {
    I18N_4 = $localize(templateObject_3 || (templateObject_3 = __makeTemplateObject([":@@browse_treatments\u241F1e4d25568cb58f6db1962f34ec61527da7a2878e\u241F3496374103311538531:Browse Treatments"], [":@@browse_treatments\u241F1e4d25568cb58f6db1962f34ec61527da7a2878e\u241F3496374103311538531:Browse Treatments"])));
}
var I18N_6;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_find_conditions$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__7 = goog.getMsg("Find Conditions");
    I18N_6 = MSG_EXTERNAL_find_conditions$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__7;
}
else {
    I18N_6 = $localize(templateObject_4 || (templateObject_4 = __makeTemplateObject([":@@find_conditions\u241F8052f5bb75e78bc1c8ba888d26f8e99d763d61c0\u241F1780907518339332512:Find Conditions"], [":@@find_conditions\u241F8052f5bb75e78bc1c8ba888d26f8e99d763d61c0\u241F1780907518339332512:Find Conditions"])));
}
var I18N_8;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_find_members$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__9 = goog.getMsg("Find Members");
    I18N_8 = MSG_EXTERNAL_find_members$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__9;
}
else {
    I18N_8 = $localize(templateObject_5 || (templateObject_5 = __makeTemplateObject([":@@find_members\u241F457c829bbb301fe89255847eca097fee436eb01f\u241F1464247881352069123:Find Members"], [":@@find_members\u241F457c829bbb301fe89255847eca097fee436eb01f\u241F1464247881352069123:Find Members"])));
}
var I18N_10;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_about_us$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__11 = goog.getMsg("About Us");
    I18N_10 = MSG_EXTERNAL_about_us$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__11;
}
else {
    I18N_10 = $localize(templateObject_6 || (templateObject_6 = __makeTemplateObject([":@@about_us\u241F847171f94c5e932a67df0c3b4d57e4e10d844b52\u241F5736481176444461852:About Us"], [":@@about_us\u241F847171f94c5e932a67df0c3b4d57e4e10d844b52\u241F5736481176444461852:About Us"])));
}
var I18N_12;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_advertise_with_us$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__13 = goog.getMsg("Advertise with us");
    I18N_12 = MSG_EXTERNAL_advertise_with_us$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__13;
}
else {
    I18N_12 = $localize(templateObject_7 || (templateObject_7 = __makeTemplateObject([":@@advertise_with_us\u241Fd0c8254d625cc31723c5759677ab4d92e51a39dc\u241F2984337349153236208:Advertise with us"], [":@@advertise_with_us\u241Fd0c8254d625cc31723c5759677ab4d92e51a39dc\u241F2984337349153236208:Advertise with us"])));
}
var I18N_14;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_terms_of_use$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__15 = goog.getMsg("Terms of Use");
    I18N_14 = MSG_EXTERNAL_terms_of_use$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__15;
}
else {
    I18N_14 = $localize(templateObject_8 || (templateObject_8 = __makeTemplateObject([":@@terms_of_use\u241F0dd8a3bafea23b5595cfcb897f16acd2cc60cf02\u241F4242389206843989472:Terms of Use"], [":@@terms_of_use\u241F0dd8a3bafea23b5595cfcb897f16acd2cc60cf02\u241F4242389206843989472:Terms of Use"])));
}
var I18N_16;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_community_guidelines$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__17 = goog.getMsg("Community Guidelines");
    I18N_16 = MSG_EXTERNAL_community_guidelines$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__17;
}
else {
    I18N_16 = $localize(templateObject_9 || (templateObject_9 = __makeTemplateObject([":@@community_guidelines\u241F1441a43b6c3d1b50fb2149ebe21bbcaac80e9b48\u241F366306583486256456:Community Guidelines"], [":@@community_guidelines\u241F1441a43b6c3d1b50fb2149ebe21bbcaac80e9b48\u241F366306583486256456:Community Guidelines"])));
}
var I18N_18;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_help$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__19 = goog.getMsg("Help");
    I18N_18 = MSG_EXTERNAL_help$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__19;
}
else {
    I18N_18 = $localize(templateObject_10 || (templateObject_10 = __makeTemplateObject([":@@help\u241F85b79c9064aed1ead31ace985f31aa1363f6bdaf\u241F7911416166208830577:Help"], [":@@help\u241F85b79c9064aed1ead31ace985f31aa1363f6bdaf\u241F7911416166208830577:Help"])));
}
var I18N_20;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_glossary$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__21 = goog.getMsg("Glossary");
    I18N_20 = MSG_EXTERNAL_glossary$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__21;
}
else {
    I18N_20 = $localize(templateObject_11 || (templateObject_11 = __makeTemplateObject([":@@glossary\u241F6edd1a650db2af580ebe746813024c45f1d854b1\u241F5020357869062357338:Glossary"], [":@@glossary\u241F6edd1a650db2af580ebe746813024c45f1d854b1\u241F5020357869062357338:Glossary"])));
}
var I18N_22;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_contact_us$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__23 = goog.getMsg("Contact Us");
    I18N_22 = MSG_EXTERNAL_contact_us$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__23;
}
else {
    I18N_22 = $localize(templateObject_12 || (templateObject_12 = __makeTemplateObject([":@@contact_us\u241F02e9e69ddcbf93de9fd38bc4d0f312142658610d\u241F759687838251957893:Contact Us"], [":@@contact_us\u241F02e9e69ddcbf93de9fd38bc4d0f312142658610d\u241F759687838251957893:Contact Us"])));
}
var I18N_24;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_work_for_us$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__25 = goog.getMsg("Work for us");
    I18N_24 = MSG_EXTERNAL_work_for_us$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__25;
}
else {
    I18N_24 = $localize(templateObject_13 || (templateObject_13 = __makeTemplateObject([":@@work_for_us\u241F23b46025b14d8f134f519b460ab558b2daac57b2\u241F8440251442072504519:Work for us"], [":@@work_for_us\u241F23b46025b14d8f134f519b460ab558b2daac57b2\u241F8440251442072504519:Work for us"])));
}
var I18N_26;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_our_principles$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__27 = goog.getMsg("Our Principles");
    I18N_26 = MSG_EXTERNAL_our_principles$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__27;
}
else {
    I18N_26 = $localize(templateObject_14 || (templateObject_14 = __makeTemplateObject([":@@our_principles\u241F3addddbfd59d1c36042a98572a4c3d3760299881\u241F3478638532287634840:Our Principles"], [":@@our_principles\u241F3addddbfd59d1c36042a98572a4c3d3760299881\u241F3478638532287634840:Our Principles"])));
}
var I18N_28;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_become_a_partner$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__29 = goog.getMsg("Become a partner");
    I18N_28 = MSG_EXTERNAL_become_a_partner$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__29;
}
else {
    I18N_28 = $localize(templateObject_15 || (templateObject_15 = __makeTemplateObject([":@@become_a_partner\u241F45d576e10eb898c908792d74074413518a795dad\u241F8385946864509741261:Become a partner"], [":@@become_a_partner\u241F45d576e10eb898c908792d74074413518a795dad\u241F8385946864509741261:Become a partner"])));
}
var I18N_30;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_find_conditions$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___31 = goog.getMsg("Return to Inspire Classic");
    I18N_30 = MSG_EXTERNAL_find_conditions$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___31;
}
else {
    I18N_30 = $localize(templateObject_16 || (templateObject_16 = __makeTemplateObject([":@@find_conditions\u241F8989b650c6102121ad4e99b2e96304887305cd3a\u241F4222270993311094391:Return to Inspire Classic"], [":@@find_conditions\u241F8989b650c6102121ad4e99b2e96304887305cd3a\u241F4222270993311094391:Return to Inspire Classic"])));
}
function UniversalNavigationDesktopComponent_nav_9_a_18_Template(rf, ctx) { if (rf & 1) {
    var _r13 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "a", 29);
    i0.ɵɵlistener("click", function UniversalNavigationDesktopComponent_nav_9_a_18_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r13); var ctx_r12 = i0.ɵɵnextContext(2); return ctx_r12.goToOldSearch.emit(); });
    i0.ɵɵelement(1, "i", 30);
    i0.ɵɵelementContainerStart(2);
    i0.ɵɵi18n(3, I18N_30);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
} }
function UniversalNavigationDesktopComponent_nav_9_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "nav", 17);
    i0.ɵɵelementStart(1, "div", 18);
    i0.ɵɵelementStart(2, "a", 19);
    i0.ɵɵelement(3, "i", 20);
    i0.ɵɵelementContainerStart(4);
    i0.ɵɵi18n(5, I18N_2);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "a", 21);
    i0.ɵɵelement(7, "i", 22);
    i0.ɵɵelementContainerStart(8);
    i0.ɵɵi18n(9, I18N_4);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(10, "a", 23);
    i0.ɵɵelement(11, "i", 24);
    i0.ɵɵelementContainerStart(12);
    i0.ɵɵi18n(13, I18N_6);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(14, "a", 25);
    i0.ɵɵelement(15, "i", 26);
    i0.ɵɵelementContainerStart(16);
    i0.ɵɵi18n(17, I18N_8);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(18, UniversalNavigationDesktopComponent_nav_9_a_18_Template, 4, 0, "a", 27);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(19, "div", 18);
    i0.ɵɵelementStart(20, "a", 28);
    i0.ɵɵi18n(21, I18N_10);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(22, "a", 28);
    i0.ɵɵi18n(23, I18N_12);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(24, "a", 28);
    i0.ɵɵi18n(25, I18N_14);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(26, "a", 28);
    i0.ɵɵtext(27, "Privacy Statement");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(28, "a", 28);
    i0.ɵɵi18n(29, I18N_16);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(30, "a", 28);
    i0.ɵɵi18n(31, I18N_18);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(32, "a", 28);
    i0.ɵɵi18n(33, I18N_20);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(34, "a", 28);
    i0.ɵɵi18n(35, I18N_22);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(36, "a", 28);
    i0.ɵɵi18n(37, I18N_24);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(38, "a", 28);
    i0.ɵɵi18n(39, I18N_26);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(40, "a", 28);
    i0.ɵɵi18n(41, I18N_28);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "/groups/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("href", "/treatment/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("href", "/conditions/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("href", "/friends.pl", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("ngIf", ctx_r1.calledFrom !== ctx_r1.CallingComponent.Search);
    i0.ɵɵadvance(2);
    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);
} }
function UniversalNavigationDesktopComponent_div_14_div_4_Template(rf, ctx) { if (rf & 1) {
    var _r18 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 35);
    i0.ɵɵlistener("click", function UniversalNavigationDesktopComponent_div_14_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r18); var community_r16 = ctx.$implicit; var ctx_r17 = i0.ɵɵnextContext(2); return ctx_r17.onClickCommunity(community_r16); });
    i0.ɵɵelementStart(1, "figure", 36);
    i0.ɵɵelement(2, "img", 37);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "div", 38);
    i0.ɵɵelementStart(4, "div", 39);
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var community_r16 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("src", community_r16 == null ? null : community_r16.assets == null ? null : community_r16.assets.logo_image, i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(community_r16 == null ? null : community_r16.name);
} }
function UniversalNavigationDesktopComponent_div_14_ng_container_5_Template(rf, ctx) { if (rf & 1) {
    var _r20 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "div", 40);
    i0.ɵɵlistener("click", function UniversalNavigationDesktopComponent_div_14_ng_container_5_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r20); var ctx_r19 = i0.ɵɵnextContext(2); return ctx_r19.onViewAllCommunity(); });
    i0.ɵɵelementStart(2, "div", 38);
    i0.ɵɵelementStart(3, "div", 39);
    i0.ɵɵtext(4, "View All");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} }
function UniversalNavigationDesktopComponent_div_14_Template(rf, ctx) { if (rf & 1) {
    var _r22 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 31);
    i0.ɵɵelementStart(1, "div", 18);
    i0.ɵɵelementStart(2, "div", 32);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(4, UniversalNavigationDesktopComponent_div_14_div_4_Template, 6, 2, "div", 33);
    i0.ɵɵtemplate(5, UniversalNavigationDesktopComponent_div_14_ng_container_5_Template, 5, 0, "ng-container", 12);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "div", 18);
    i0.ɵɵelementStart(7, "a", 34);
    i0.ɵɵlistener("click", function UniversalNavigationDesktopComponent_div_14_Template_a_click_7_listener() { i0.ɵɵrestoreView(_r22); var ctx_r21 = i0.ɵɵnextContext(); return ctx_r21.onBrowseCommunities(); });
    i0.ɵɵelement(8, "i", 20);
    i0.ɵɵtext(9, " Browse Communities ");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r2.loggedIn ? "My Communities" : "Suggested Communities");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r2.memberCommunities.slice(0, ctx_r2.maxCommunityCount));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.memberCommunities.length > ctx_r2.maxCommunityCount);
} }
var I18N_32;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_log_in$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__33 = goog.getMsg("Sign In");
    I18N_32 = MSG_EXTERNAL_log_in$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__33;
}
else {
    I18N_32 = $localize(templateObject_17 || (templateObject_17 = __makeTemplateObject([":@@log_in\u241Fba4f24bf9bf3dc4db3d6bc1b8b63339295f0b806\u241F840692109692540367:Sign In"], [":@@log_in\u241Fba4f24bf9bf3dc4db3d6bc1b8b63339295f0b806\u241F840692109692540367:Sign In"])));
}
var I18N_34;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_sign_up$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__35 = goog.getMsg("Sign Up");
    I18N_34 = MSG_EXTERNAL_sign_up$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS__35;
}
else {
    I18N_34 = $localize(templateObject_18 || (templateObject_18 = __makeTemplateObject([":@@sign_up\u241Fb27c6d0d5482deeb1224439b71f1a0eafd252715\u241F4385506346240222678:Sign Up"], [":@@sign_up\u241Fb27c6d0d5482deeb1224439b71f1a0eafd252715\u241F4385506346240222678:Sign Up"])));
}
function UniversalNavigationDesktopComponent_ng_container_15_Template(rf, ctx) { if (rf & 1) {
    var _r24 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "a", 41);
    i0.ɵɵlistener("click", function UniversalNavigationDesktopComponent_ng_container_15_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r24); var ctx_r23 = i0.ɵɵnextContext(); return ctx_r23.navigate.emit("/login"); });
    i0.ɵɵi18n(2, I18N_32);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "a", 42);
    i0.ɵɵi18n(4, I18N_34);
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate1("href", "", ctx_r3.envUrl, "/join/", i0.ɵɵsanitizeUrl);
} }
var I18N_36;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_profile$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___37 = goog.getMsg("View Profile");
    I18N_36 = MSG_EXTERNAL_profile$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___37;
}
else {
    I18N_36 = $localize(templateObject_19 || (templateObject_19 = __makeTemplateObject([":@@profile\u241F18c764d0476eee6ef89686a85dbd6e682c9a0dac\u241F6749926724874923101:View Profile"], [":@@profile\u241F18c764d0476eee6ef89686a85dbd6e682c9a0dac\u241F6749926724874923101:View Profile"])));
}
var I18N_38;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_home$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___39 = goog.getMsg("Home");
    I18N_38 = MSG_EXTERNAL_home$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___39;
}
else {
    I18N_38 = $localize(templateObject_20 || (templateObject_20 = __makeTemplateObject([":@@home\u241F92eee6be6de0b11c924e3ab27db30257159c0a7c\u241F2821179408673282599:Home"], [":@@home\u241F92eee6be6de0b11c924e3ab27db30257159c0a7c\u241F2821179408673282599:Home"])));
}
var I18N_40;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_invite$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___41 = goog.getMsg("Invite to Inspire");
    I18N_40 = MSG_EXTERNAL_invite$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___41;
}
else {
    I18N_40 = $localize(templateObject_21 || (templateObject_21 = __makeTemplateObject([":@@invite\u241Fc45d880267be0c338ccca24c21c7830935c9f099\u241F5756999077859685470:Invite to Inspire"], [":@@invite\u241Fc45d880267be0c338ccca24c21c7830935c9f099\u241F5756999077859685470:Invite to Inspire"])));
}
var I18N_42;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_communities$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___43 = goog.getMsg("Communities");
    I18N_42 = MSG_EXTERNAL_communities$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___43;
}
else {
    I18N_42 = $localize(templateObject_22 || (templateObject_22 = __makeTemplateObject([":@@communities\u241F6642147ee5ae8acb8b128faedfc7985d39637911\u241F6910865064463105075:Communities"], [":@@communities\u241F6642147ee5ae8acb8b128faedfc7985d39637911\u241F6910865064463105075:Communities"])));
}
var I18N_44;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_following$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___45 = goog.getMsg("Following");
    I18N_44 = MSG_EXTERNAL_following$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___45;
}
else {
    I18N_44 = $localize(templateObject_23 || (templateObject_23 = __makeTemplateObject([":@@following\u241Ff995df052a1dfc675c2a21926420a707d9601936\u241F8726138323871139597:Following"], [":@@following\u241Ff995df052a1dfc675c2a21926420a707d9601936\u241F8726138323871139597:Following"])));
}
var I18N_46;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_friends$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___47 = goog.getMsg("Friends");
    I18N_46 = MSG_EXTERNAL_friends$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___47;
}
else {
    I18N_46 = $localize(templateObject_24 || (templateObject_24 = __makeTemplateObject([":@@friends\u241F40d0a92c57375f09289d576762822c18565d6dd2\u241F8707887448880467422:Friends"], [":@@friends\u241F40d0a92c57375f09289d576762822c18565d6dd2\u241F8707887448880467422:Friends"])));
}
var I18N_48;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_messages$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___49 = goog.getMsg("Messages");
    I18N_48 = MSG_EXTERNAL_messages$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___49;
}
else {
    I18N_48 = $localize(templateObject_25 || (templateObject_25 = __makeTemplateObject([":@@messages\u241Fea965d544a7dfd8185064c52cdfff553cf94d585\u241F6452372740127749380:Messages"], [":@@messages\u241Fea965d544a7dfd8185064c52cdfff553cf94d585\u241F6452372740127749380:Messages"])));
}
var I18N_50;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_profile_settings$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___51 = goog.getMsg("Settings");
    I18N_50 = MSG_EXTERNAL_profile_settings$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___51;
}
else {
    I18N_50 = $localize(templateObject_26 || (templateObject_26 = __makeTemplateObject([":@@profile_settings\u241F121cc5391cd2a5115bc2b3160379ee5b36cd7716\u241F4930506384627295710:Settings"], [":@@profile_settings\u241F121cc5391cd2a5115bc2b3160379ee5b36cd7716\u241F4930506384627295710:Settings"])));
}
var I18N_52;
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
    var MSG_EXTERNAL_logout$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___53 = goog.getMsg("Sign out");
    I18N_52 = MSG_EXTERNAL_logout$$LIB_UNAV_DESKTOP_UNAV_DESKTOP_COMPONENT_TS___53;
}
else {
    I18N_52 = $localize(templateObject_27 || (templateObject_27 = __makeTemplateObject([":@@logout\u241F5d22c795daf43877a5f708dca2bccd549eb0471d\u241F2949848596707725099:Sign out"], [":@@logout\u241F5d22c795daf43877a5f708dca2bccd549eb0471d\u241F2949848596707725099:Sign out"])));
}
function UniversalNavigationDesktopComponent_ng_container_16_div_12_Template(rf, ctx) { if (rf & 1) {
    var _r27 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 54);
    i0.ɵɵelementStart(1, "div", 18);
    i0.ɵɵelementStart(2, "div", 55);
    i0.ɵɵelementStart(3, "figure", 51);
    i0.ɵɵelement(4, "img", 56);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "div", 57);
    i0.ɵɵelementStart(6, "div", 58);
    i0.ɵɵtext(7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "a", 59);
    i0.ɵɵi18n(9, I18N_36);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(10, "div", 18);
    i0.ɵɵelementStart(11, "a", 60);
    i0.ɵɵelement(12, "i", 61);
    i0.ɵɵelementContainerStart(13);
    i0.ɵɵi18n(14, I18N_38);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(15, "a", 62);
    i0.ɵɵelement(16, "i", 63);
    i0.ɵɵelementContainerStart(17);
    i0.ɵɵi18n(18, I18N_40);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(19, "a", 64);
    i0.ɵɵelement(20, "i", 20);
    i0.ɵɵelementContainerStart(21);
    i0.ɵɵi18n(22, I18N_42);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(23, "a", 65);
    i0.ɵɵelement(24, "i", 66);
    i0.ɵɵelementContainerStart(25);
    i0.ɵɵi18n(26, I18N_44);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(27, "a", 67);
    i0.ɵɵelement(28, "i", 26);
    i0.ɵɵelementContainerStart(29);
    i0.ɵɵi18n(30, I18N_46);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(31, "a", 68);
    i0.ɵɵelement(32, "i", 69);
    i0.ɵɵelementContainerStart(33);
    i0.ɵɵi18n(34, I18N_48);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(35, "a", 70);
    i0.ɵɵelement(36, "i", 71);
    i0.ɵɵelementContainerStart(37);
    i0.ɵɵi18n(38, I18N_50);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(39, "a", 72);
    i0.ɵɵlistener("click", function UniversalNavigationDesktopComponent_ng_container_16_div_12_Template_a_click_39_listener() { i0.ɵɵrestoreView(_r27); var ctx_r26 = i0.ɵɵnextContext(2); return ctx_r26.logout(); });
    i0.ɵɵelementContainerStart(40);
    i0.ɵɵi18n(41, I18N_52);
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r25 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(4);
    i0.ɵɵpropertyInterpolate2("src", "", ctx_r25.envUrl, "/api/member/", ctx_r25.username, "/avatar/m", i0.ɵɵsanitizeUrl);
    i0.ɵɵpropertyInterpolate("alt", ctx_r25.username);
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r25.username);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("href", "/m/" + ctx_r25.username, i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("href", "/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("href", "/invite", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("href", "/groups/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("href", ctx_r25.loggedIn ? "/?section=following" : "/login/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("href", "/friends.pl", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("href", "/messages.pl", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("href", "/member/settings/", i0.ɵɵsanitizeUrl);
} }
function UniversalNavigationDesktopComponent_ng_container_16_Template(rf, ctx) { if (rf & 1) {
    var _r29 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "div", 43);
    i0.ɵɵelementStart(2, "a", 44);
    i0.ɵɵelement(3, "i", 45);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 46);
    i0.ɵɵelement(5, "i", 47);
    i0.ɵɵelementStart(6, "span", 48);
    i0.ɵɵtext(7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "div", 49);
    i0.ɵɵelementStart(9, "a", 50);
    i0.ɵɵlistener("click", function UniversalNavigationDesktopComponent_ng_container_16_Template_a_click_9_listener() { i0.ɵɵrestoreView(_r29); var ctx_r28 = i0.ɵɵnextContext(); return ctx_r28.toggleRightSlide(); })("clickOutside", function UniversalNavigationDesktopComponent_ng_container_16_Template_a_clickOutside_9_listener() { i0.ɵɵrestoreView(_r29); var ctx_r30 = i0.ɵɵnextContext(); return ctx_r30.onClickOutsideRightSlide(); });
    i0.ɵɵelementStart(10, "figure", 51);
    i0.ɵɵelement(11, "img", 52);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(12, UniversalNavigationDesktopComponent_ng_container_16_div_12_Template, 42, 12, "div", 53);
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "/invite", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate(ctx_r4.unreadNotificationCount);
    i0.ɵɵadvance(2);
    i0.ɵɵclassProp("active", ctx_r4.showRightSlide);
    i0.ɵɵpropertyInterpolate("title", ctx_r4.username);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate2("src", "", ctx_r4.envUrl, "/api/member/", ctx_r4.username, "/avatar/m", i0.ɵɵsanitizeUrl);
    i0.ɵɵpropertyInterpolate("alt", ctx_r4.username);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.showRightSlide);
} }
var _c54 = function (a0) { return { "has-top-add": a0 }; };
var UniversalNavigationDesktopComponent = /** @class */ (function () {
    function UniversalNavigationDesktopComponent(userService, navigationService, cd, windowService, cookieService) {
        var _this = this;
        this.userService = userService;
        this.navigationService = navigationService;
        this.cd = cd;
        this.windowService = windowService;
        this.cookieService = cookieService;
        /**
         * Determines whether the component will call the user API to get user info.
         * False will use the `loggedIn` and `username` inputs. Default: `true`.
         */
        this.useAPI = false;
        this.envUrl = "";
        this.groupNameId = "";
        this.groupId = 0;
        this.groupName = "";
        this.memberCommunities = [];
        this.unreadNotificationCount = 0;
        this.maxCommunityCount = 3;
        this.calledFrom = CallingComponent.NotSpecified;
        this.clickCommunity = new EventEmitter();
        this.browseCommunities = new EventEmitter();
        this.goToOldSearch = new EventEmitter();
        this.navigate = new EventEmitter();
        this.viewAllCommunity = new EventEmitter();
        this.query = "";
        this.showLeftSlide = false;
        this.showRightSlide = false;
        this.showCommunitiesMenu = false;
        this.CallingComponent = CallingComponent;
        this.searchPlaceholder = '';
        this.visitingMemberCommunity = false;
        if (this.windowService.isBrowser()) {
            this.isMobile = window.innerWidth < 992;
            this.showSearch = window.innerWidth > 768;
        }
        this.topAdSub = this.navigationService.hasTopAd.subscribe(function (hasAd) {
            _this.hasTopAd = hasAd;
            // // If there is sticky ad at the top,
            // // Set top 110px, to make the navigation stick at the top but below the ad
            // this.adStyles = { top: this.hasTopAd ? "110px" : "0" };
            // // ngStyle update;
            _this.cd.detectChanges();
        });
        if (this.useAPI) {
            this.userService.getUserData(this.envUrl).subscribe(function (resp) {
                _this.loggedIn = resp["data"]["status"] === 4;
                _this.username = resp["data"]["nickname"];
            });
        }
    }
    UniversalNavigationDesktopComponent.prototype.setSearchPlaceHolder = function () {
        if (this.groupNameId && this.loggedIn && this.visitingMemberCommunity) {
            this.searchPlaceholder = "Search " + this.groupName;
        }
        else if (this.groupNameId && (!this.loggedIn || !this.visitingMemberCommunity)) {
            this.searchPlaceholder = 'ALL - Search in Inspire';
        }
        else if (!this.groupNameId) {
            this.searchPlaceholder = 'Search Inspire';
        }
    };
    UniversalNavigationDesktopComponent.prototype.isVisitingMemberCommunity = function () {
        var _this = this;
        this.visitingMemberCommunity = this.memberCommunities.some(function (community) { return (community === null || community === void 0 ? void 0 : community.name_id) === _this.groupNameId; });
    };
    UniversalNavigationDesktopComponent.prototype.ngOnChanges = function () {
        this.isVisitingMemberCommunity();
        this.setSearchPlaceHolder();
    };
    UniversalNavigationDesktopComponent.prototype.ngOnInit = function () {
    };
    UniversalNavigationDesktopComponent.prototype.ngOnDestroy = function () {
        this.topAdSub && this.topAdSub.unsubscribe();
    };
    UniversalNavigationDesktopComponent.prototype.toggleLeftSlide = function () {
        this.showLeftSlide = !this.showLeftSlide;
        this.showRightSlide = false;
        this.showCommunitiesMenu = false;
    };
    UniversalNavigationDesktopComponent.prototype.toggleRightSlide = function () {
        this.showRightSlide = !this.showRightSlide;
        this.showLeftSlide = false;
        this.showCommunitiesMenu = false;
    };
    UniversalNavigationDesktopComponent.prototype.toggleCommunitiesMenu = function () {
        this.showCommunitiesMenu = !this.showCommunitiesMenu;
        this.showLeftSlide = false;
        this.showRightSlide = false;
    };
    UniversalNavigationDesktopComponent.prototype.closeBothSlides = function () {
        this.showLeftSlide = false;
        this.showRightSlide = false;
        this.showCommunitiesMenu = false;
    };
    UniversalNavigationDesktopComponent.prototype.onSubmit = function (f) {
        var _a;
        this.onSearch((_a = f === null || f === void 0 ? void 0 : f.value) === null || _a === void 0 ? void 0 : _a.query);
    };
    UniversalNavigationDesktopComponent.prototype.onInputClick = function () {
        if (this.calledFrom === this.CallingComponent.Community || this.calledFrom === this.CallingComponent.MemberDashboard) {
            this.onSearch('');
        }
    };
    UniversalNavigationDesktopComponent.prototype.onSearch = function (query) {
        var timeEpoch = Date.now();
        if (this.groupNameId && this.loggedIn && this.visitingMemberCommunity) {
            SEARCH_IN_UNAV(this.envUrl, "" + this.groupId, query, timeEpoch);
        }
        else if (this.groupNameId && (!this.loggedIn || !this.visitingMemberCommunity)) {
            SEARCH_IN_UNAV(this.envUrl, '', query, timeEpoch);
        }
        else if (!this.groupNameId) {
            SEARCH_IN_UNAV(this.envUrl, '', query, null);
        }
    };
    UniversalNavigationDesktopComponent.prototype.logout = function () {
        var _this = this;
        this.navigationService.logout().subscribe(function (res) {
            _this.cookieService.remove(IS_LOGGED_IN_KEY);
            window.location.reload();
        });
    };
    UniversalNavigationDesktopComponent.prototype.onResize = function (event) {
        this.isMobile = event.target.innerWidth <= 768;
    };
    UniversalNavigationDesktopComponent.prototype.onClickCommunity = function (community) {
        this.clickCommunity.emit(community);
    };
    UniversalNavigationDesktopComponent.prototype.onBrowseCommunities = function () {
        this.browseCommunities.emit(null);
    };
    UniversalNavigationDesktopComponent.prototype.onViewAllCommunity = function () {
        this.viewAllCommunity.emit();
    };
    UniversalNavigationDesktopComponent.prototype.onClickOutsideDiscoverInspire = function () {
        this.showLeftSlide = false;
    };
    UniversalNavigationDesktopComponent.prototype.onClickOutsideCommunities = function () {
        this.showCommunitiesMenu = false;
    };
    UniversalNavigationDesktopComponent.prototype.onClickOutsideRightSlide = function () {
        this.showRightSlide = false;
    };
    UniversalNavigationDesktopComponent.ɵfac = function UniversalNavigationDesktopComponent_Factory(t) { return new (t || UniversalNavigationDesktopComponent)(i0.ɵɵdirectiveInject(i1.UserService), i0.ɵɵdirectiveInject(i2.NavigationService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i3.WindowService), i0.ɵɵdirectiveInject(i4.CookieService)); };
    UniversalNavigationDesktopComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UniversalNavigationDesktopComponent, selectors: [["ins-unav-desktop"]], hostBindings: function UniversalNavigationDesktopComponent_HostBindings(rf, ctx) { if (rf & 1) {
            i0.ɵɵlistener("resize", function UniversalNavigationDesktopComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0.ɵɵresolveWindow);
        } }, inputs: { useAPI: "useAPI", loggedIn: "loggedIn", username: "username", envUrl: "envUrl", groupNameId: "groupNameId", groupId: "groupId", groupName: "groupName", memberCommunities: "memberCommunities", unreadNotificationCount: "unreadNotificationCount", maxCommunityCount: "maxCommunityCount", calledFrom: "calledFrom" }, outputs: { clickCommunity: "clickCommunity", browseCommunities: "browseCommunities", goToOldSearch: "goToOldSearch", navigate: "navigate", viewAllCommunity: "viewAllCommunity" }, features: [i0.ɵɵNgOnChangesFeature], decls: 17, vars: 13, consts: [[1, "universal-navigation", 3, "ngClass"], [1, "un-logo", 3, "href"], ["src", "/assets/img/inspire-logo.svg", "alt", "Inspire"], ["class", "un-search", "novalidate", "", 3, "ngSubmit", 4, "ngIf"], [1, "un-spacer"], [1, "un-dropdown", "un-discover"], [1, "un-d-btn", 3, "click", "clickOutside"], [1, "un-d-label"], ["class", "un-popmenu", "role", "navigation", 4, "ngIf"], [1, "un-dropdown", "un-communities"], ["id", "toggle_community_menu", 1, "un-d-btn", 3, "click", "clickOutside"], ["class", "un-popmenu", "id", "community_menu", 4, "ngIf"], [4, "ngIf"], ["novalidate", "", 1, "un-search", 3, "ngSubmit"], ["f", "ngForm"], ["type", "text", "required", "", "name", "query", "autocomplete", "off", 1, "un-s-input", 3, "placeholder", "ngModel", "click", "ngModelChange"], [1, "un-s-btn", "icn-search", 3, "click"], ["role", "navigation", 1, "un-popmenu"], [1, "un-p-section"], ["title", "Communities", 1, "un-p-action", 3, "href"], [1, "un-p-icon", "icn-community"], ["title", "treatments", 1, "un-p-action", 3, "href"], [1, "un-p-icon", "icn-treatment"], ["title", "conditions", 1, "un-p-action", 3, "href"], [1, "un-p-icon", "icn-aid"], ["title", "friends", 1, "un-p-action", 3, "href"], [1, "un-p-icon", "icn-friends"], ["class", "un-p-action", 3, "click", 4, "ngIf"], [1, "un-p-link", 3, "href"], [1, "un-p-action", 3, "click"], [1, "un-p-icon", "icn-inspire"], ["id", "community_menu", 1, "un-popmenu"], [1, "un-p-title"], ["class", "avatar-block", "id", "single_community", 3, "click", 4, "ngFor", "ngForOf"], ["id", "browse_communities", 1, "un-p-action", 3, "click"], ["id", "single_community", 1, "avatar-block", 3, "click"], [1, "ab-fig"], ["alt", "community logo", 3, "src"], [1, "ab-meta"], [1, "ab-label"], ["id", "view_all_communities", 1, "avatar-block", 3, "click"], ["id", "logIn", 1, "un-btn", "un-login", 3, "click"], ["id", "signUp", 1, "un-btn", "un-signup", 3, "href"], [1, "un-invite"], ["id", "goToInviteUNav", 3, "href"], [1, "icn-Invite", "un-n-icon"], [1, "un-notification"], [1, "icn-bell", "un-n-icon"], [1, "un-n-count"], [1, "un-dropdown", "un-profile"], [1, "un-d-btn", 3, "title", "click", "clickOutside"], [1, "un-avatar"], ["id", "avatarImage", 3, "src", "alt"], ["class", "un-popmenu", 4, "ngIf"], [1, "un-popmenu"], [1, "un-user"], [3, "src", "alt"], [1, "un-u-meta"], [1, "un-u-name"], ["id", "goToProfile", 1, "un-u-link", 3, "href"], ["id", "goToHome", 1, "un-p-action", 3, "href"], [1, "un-p-icon", "icn-home"], ["id", "goToInvite", 1, "un-p-action", 3, "href"], [1, "un-p-icon", "icn-Invite"], ["id", "goToGroups", 1, "un-p-action", 3, "href"], ["id", "goToFollowing", 1, "un-p-action", 3, "href"], [1, "un-p-icon", "icn-pin"], ["id", "goToFriends", 1, "un-p-action", 3, "href"], ["id", "goToMessages", 1, "un-p-action", 3, "href"], [1, "un-p-icon", "icn-msgs"], ["id", "goToSettings", 1, "un-p-action", 3, "href"], [1, "un-p-icon", "icn-settings"], ["id", "logOut", 1, "un-p-action", 3, "click"]], template: function UniversalNavigationDesktopComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "header", 0);
            i0.ɵɵelementStart(1, "a", 1);
            i0.ɵɵelement(2, "img", 2);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(3, UniversalNavigationDesktopComponent_form_3_Template, 4, 2, "form", 3);
            i0.ɵɵelement(4, "div", 4);
            i0.ɵɵelementStart(5, "div", 5);
            i0.ɵɵelementStart(6, "a", 6);
            i0.ɵɵlistener("click", function UniversalNavigationDesktopComponent_Template_a_click_6_listener() { return ctx.toggleLeftSlide(); })("clickOutside", function UniversalNavigationDesktopComponent_Template_a_clickOutside_6_listener() { return ctx.onClickOutsideDiscoverInspire(); });
            i0.ɵɵelementStart(7, "span", 7);
            i0.ɵɵi18n(8, I18N_0);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(9, UniversalNavigationDesktopComponent_nav_9_Template, 42, 16, "nav", 8);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(10, "div", 9);
            i0.ɵɵelementStart(11, "a", 10);
            i0.ɵɵlistener("click", function UniversalNavigationDesktopComponent_Template_a_click_11_listener() { return ctx.toggleCommunitiesMenu(); })("clickOutside", function UniversalNavigationDesktopComponent_Template_a_clickOutside_11_listener() { return ctx.onClickOutsideCommunities(); });
            i0.ɵɵelementStart(12, "span", 7);
            i0.ɵɵtext(13, "Communities");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(14, UniversalNavigationDesktopComponent_div_14_Template, 10, 3, "div", 11);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(15, UniversalNavigationDesktopComponent_ng_container_15_Template, 5, 1, "ng-container", 12);
            i0.ɵɵtemplate(16, UniversalNavigationDesktopComponent_ng_container_16_Template, 13, 9, "ng-container", 12);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c54, ctx.hasTopAd));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("href", "/", i0.ɵɵsanitizeUrl);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.isMobile && ctx.calledFrom !== ctx.CallingComponent.Search);
            i0.ɵɵadvance(3);
            i0.ɵɵclassProp("active", ctx.showLeftSlide);
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", ctx.showLeftSlide);
            i0.ɵɵadvance(2);
            i0.ɵɵclassProp("active", ctx.showCommunitiesMenu);
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", ctx.showCommunitiesMenu);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.loggedIn);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.loggedIn);
        } }, directives: [i5.NgClass, i5.NgIf, i6.ClickOutsideDirective, i7.ɵangular_packages_forms_forms_y, i7.NgControlStatusGroup, i7.NgForm, i7.DefaultValueAccessor, i7.RequiredValidator, i7.NgControlStatus, i7.NgModel, i5.NgForOf], styles: ["a[_ngcontent-%COMP%]{text-decoration:none}*[_ngcontent-%COMP%]{font-family:Lato,sans-serif;outline:0}.un-btn[_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;transition:.3s ease-in-out;background:0 0;height:3.75rem}.un-btn[_ngcontent-%COMP%]:hover{background:#f8f9fb}.un-btn[disabled][_ngcontent-%COMP%]{background:#c6cbc9;color:#6e6f70;cursor:default}.un-btn.un-login[_ngcontent-%COMP%]{background:#009dfc;color:#fff}.un-btn.un-login[_ngcontent-%COMP%]:not([disabled]):hover{background:#008de3}.un-btn.un-signup[_ngcontent-%COMP%]{background:#005cc9;color:#fff}.un-btn.un-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%], .un-d-btn[_ngcontent-%COMP%]:after, .un-d-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%]{height:5.5rem;display:block}.universal-navigation[_ngcontent-%COMP%]{background:#fff;height:5.5rem;border-bottom:1px solid #e2e5e4;display:flex;align-items:center;position:fixed;z-index:10;padding:0 1.5625rem;width:100%;top:0}.has-top-add[_ngcontent-%COMP%]{top:6.875rem}@media only screen and (max-width:728px){.has-top-add[_ngcontent-%COMP%]{top:5.625rem}}.un-logo[_ngcontent-%COMP%]{display:block}.un-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:2.8125rem;width:auto}.un-search[_ngcontent-%COMP%]{display:flex;align-items:center;border:1px solid #e2e5e4;box-sizing:border-box;border-radius:.625rem;height:3.75rem;width:20.9375rem;margin-left:3.75rem;padding:0 1rem}.un-s-input[_ngcontent-%COMP%]{flex:1 1 auto;border:none;outline:0;padding:0;font-size:1rem;color:#000}.un-s-input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#6e6f70}.un-s-input[_ngcontent-%COMP%]:-moz-placeholder{color:#6e6f70}.un-s-input[_ngcontent-%COMP%]::-moz-placeholder{color:#6e6f70}.un-s-input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#6e6f70}.un-s-btn[_ngcontent-%COMP%]{display:block;font-size:1rem;cursor:pointer;color:#000;margin:0 -.3125rem 0 .3125rem;padding:.625rem;border-radius:100%;background:#fff;border:none}.un-s-btn[_ngcontent-%COMP%]:hover{background:#f8f9fb}.un-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.un-dropdown[_ngcontent-%COMP%]{height:100%;cursor:pointer;margin-right:3.75rem;position:relative}.un-d-btn[_ngcontent-%COMP%]{font-size:1rem;color:#000;display:flex;align-items:center;height:100%;padding:0}.un-d-btn.active[_ngcontent-%COMP%], .un-d-btn[_ngcontent-%COMP%]:hover{color:#061a73}.un-d-btn[_ngcontent-%COMP%]:after{margin-left:.625rem;content:\"\\e90a\";font-size:.875rem}.un-d-btn[_ngcontent-%COMP%]:before{margin-right:.625rem;font-size:1.25rem}@media (max-width:575px){.un-d-btn[_ngcontent-%COMP%]:before{margin-right:0}}.un-popmenu[_ngcontent-%COMP%]{background:#fff;box-shadow:0 .1875rem .625rem rgba(0,0,0,.03);border-radius:0 0 .5rem .5rem;border:1px solid #e2e5e4;width:18.75rem;position:absolute;top:100%}.un-p-section[_ngcontent-%COMP%]{padding:.625rem 0}.un-p-section[_ngcontent-%COMP%]:last-child{border-top:1px solid #e2e5e4}.un-p-action[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:.875rem;color:#000;padding:.3125rem 1.625rem;min-height:2.625rem}.un-p-action[_ngcontent-%COMP%]:hover{background:rgba(0,92,201,.1)}.un-p-action[_ngcontent-%COMP%]   .icn-community[_ngcontent-%COMP%], .un-p-action[_ngcontent-%COMP%]   .icn-msgs[_ngcontent-%COMP%], .un-p-action[_ngcontent-%COMP%]   .icn-treatment[_ngcontent-%COMP%]{font-size:1.375rem}.un-p-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}.un-p-link[_ngcontent-%COMP%]{font-size:.625rem;color:#6e6f70;text-decoration:none;display:block;padding:.3125rem 0}.un-p-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.un-discover[_ngcontent-%COMP%]   .un-d-btn[_ngcontent-%COMP%]:before{content:\"\\e91a\"}.un-discover[_ngcontent-%COMP%]   .un-p-section[_ngcontent-%COMP%]:last-child{-moz-column-count:2;column-count:2;padding:1.375rem 1.875rem;-moz-column-gap:2.125rem;column-gap:2.125rem}.un-discover[_ngcontent-%COMP%]   .un-popmenu[_ngcontent-%COMP%]{left:0}.un-communities[_ngcontent-%COMP%]   .un-d-btn[_ngcontent-%COMP%]:before{content:\"\\e90f\"}.un-communities[_ngcontent-%COMP%]   .un-popmenu[_ngcontent-%COMP%]{width:25rem;right:0}.un-profile[_ngcontent-%COMP%]{margin-right:0!important}.un-profile[_ngcontent-%COMP%]   .un-d-btn[_ngcontent-%COMP%]:before{display:none}.un-profile[_ngcontent-%COMP%]   .un-popmenu[_ngcontent-%COMP%]{right:0}.un-profile[_ngcontent-%COMP%]   .un-p-action[_ngcontent-%COMP%]:last-child{padding-left:2rem}.un-p-title[_ngcontent-%COMP%]{font-size:1rem;font-weight:700;margin:0;padding:.625rem 1.625rem 1rem}.un-btn[_ngcontent-%COMP%]{width:9.6875rem}.un-btn.un-signup[_ngcontent-%COMP%]{margin-left:.75rem}.avatar-block[_ngcontent-%COMP%]{margin:0;padding:.625rem 1.625rem}.avatar-block[_ngcontent-%COMP%]:hover{background:rgba(0,92,201,.1)}.un-avatar[_ngcontent-%COMP%]{display:block;flex:0 0 auto;margin:0}.un-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:2.6875rem;height:2.6875rem;border-radius:50%;-o-object-fit:cover;object-fit:cover;image-rendering:auto;overflow:hidden;display:block;background:#e2e5e4}.un-user[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.75rem 1.625rem}.un-user[_ngcontent-%COMP%]   .un-avatar[_ngcontent-%COMP%]{margin-right:1.5rem}.un-u-meta[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.un-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}.un-u-link[_ngcontent-%COMP%]{font-size:.75rem;color:#000;text-decoration:none}.un-u-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.un-invite[_ngcontent-%COMP%], .un-notification[_ngcontent-%COMP%]{font-size:1.375rem;position:relative;padding-right:.75rem;cursor:pointer;margin-right:1.25rem}.un-n-icon[_ngcontent-%COMP%]{color:#061a73;display:block}.un-n-count[_ngcontent-%COMP%]{width:1.1875rem;height:1.1875rem;border-radius:50%;background:#943585;color:#fff;font-size:.5625rem;font-weight:700;border:1px solid #fff;position:absolute;right:0;bottom:-.3125rem;display:flex;align-items:center;justify-content:center}@media (max-width:1199px){.universal-navigation[_ngcontent-%COMP%]{padding:0 .9375rem}.un-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:1.875rem}.un-search[_ngcontent-%COMP%]{margin-left:1.25rem;width:15.625rem;height:3.125rem}.un-dropdown[_ngcontent-%COMP%]{margin-right:1.875rem}.un-btn[_ngcontent-%COMP%]{width:5.625rem;height:3.125rem}}@media (max-width:991px){.un-search[_ngcontent-%COMP%]{display:none}}@media (max-width:767px){.un-d-label[_ngcontent-%COMP%]{display:none}.un-communities[_ngcontent-%COMP%]   .un-popmenu[_ngcontent-%COMP%]{width:18.75rem;right:0}}"] });
    return UniversalNavigationDesktopComponent;
}());
export { UniversalNavigationDesktopComponent };
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UniversalNavigationDesktopComponent, [{
        type: Component,
        args: [{
                selector: 'ins-unav-desktop',
                templateUrl: './unav-desktop.component.html',
                styleUrls: ['./unav-desktop.component.scss']
            }]
    }], function () { return [{ type: i1.UserService }, { type: i2.NavigationService }, { type: i0.ChangeDetectorRef }, { type: i3.WindowService }, { type: i4.CookieService }]; }, { useAPI: [{
            type: Input
        }], loggedIn: [{
            type: Input
        }], username: [{
            type: Input
        }], envUrl: [{
            type: Input
        }], groupNameId: [{
            type: Input
        }], groupId: [{
            type: Input
        }], groupName: [{
            type: Input
        }], memberCommunities: [{
            type: Input
        }], unreadNotificationCount: [{
            type: Input
        }], maxCommunityCount: [{
            type: Input
        }], calledFrom: [{
            type: Input
        }], clickCommunity: [{
            type: Output
        }], browseCommunities: [{
            type: Output
        }], goToOldSearch: [{
            type: Output
        }], navigate: [{
            type: Output
        }], viewAllCommunity: [{
            type: Output
        }], onResize: [{
            type: HostListener,
            args: ['window:resize', ['$event']]
        }] }); })();
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27;
//# sourceMappingURL=data:application/json;base64, 