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 } from '../inspire-library.const';
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 "@angular/forms";
function UniversalNavigationComponent_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 25);
    i0.ɵɵelementStart(1, "div", 14);
    i0.ɵɵelementStart(2, "a", 15);
    i0.ɵɵelement(3, "span", 16);
    i0.ɵɵelementStart(4, "div");
    i0.ɵɵtext(5, "Home");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "div", 14);
    i0.ɵɵelementStart(7, "a", 26);
    i0.ɵɵelement(8, "span", 18);
    i0.ɵɵelementStart(9, "div");
    i0.ɵɵtext(10, "Communities");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(11, "div", 14);
    i0.ɵɵelementStart(12, "a", 19);
    i0.ɵɵelement(13, "span", 20);
    i0.ɵɵelementStart(14, "div");
    i0.ɵɵtext(15, "Messages");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(16, "div", 14);
    i0.ɵɵelementStart(17, "a", 21);
    i0.ɵɵelement(18, "span", 22);
    i0.ɵɵelementStart(19, "div");
    i0.ɵɵtext(20, "Following");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(21, "div", 14);
    i0.ɵɵelementStart(22, "a", 23);
    i0.ɵɵelement(23, "span", 24);
    i0.ɵɵelementStart(24, "div");
    i0.ɵɵtext(25, "Friends");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(17);
    i0.ɵɵproperty("href", ctx_r0.loggedIn ? "/?section=following" : "/login/", i0.ɵɵsanitizeUrl);
} }
function UniversalNavigationComponent_form_9_Template(rf, ctx) { if (rf & 1) {
    var _r8 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "form", 27, 28);
    i0.ɵɵlistener("ngSubmit", function UniversalNavigationComponent_form_9_Template_form_ngSubmit_0_listener() { i0.ɵɵrestoreView(_r8); var _r6 = i0.ɵɵreference(1); var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.onSubmit(_r6); });
    i0.ɵɵelementContainerStart(2);
    i0.ɵɵelementStart(3, "input", 29);
    i0.ɵɵlistener("ngModelChange", function UniversalNavigationComponent_form_9_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r8); var ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.query = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 30);
    i0.ɵɵelement(5, "button", 31);
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate1("placeholder", "Search ", ctx_r1.groupName ? "in community " + ctx_r1.groupName : "Inspire", "");
    i0.ɵɵproperty("ngModel", ctx_r1.query);
} }
function UniversalNavigationComponent_div_10_button_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "button", 36);
    i0.ɵɵelementStart(1, "a", 37);
    i0.ɵɵelement(2, "div", 38);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} }
var _c0 = function (a0) { return { "height": a0 }; };
function UniversalNavigationComponent_div_10_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 32);
    i0.ɵɵtemplate(1, UniversalNavigationComponent_div_10_button_1_Template, 3, 0, "button", 33);
    i0.ɵɵelementStart(2, "a", 34);
    i0.ɵɵtext(3, " Log In ");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "a", 35);
    i0.ɵɵtext(5, "Sign Up");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c0, !ctx_r2.loggedIn ? "100%" : ""));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.isMobile);
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate1("href", "", ctx_r2.envUrl, "/login/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate1("href", "", ctx_r2.envUrl, "/join/", i0.ɵɵsanitizeUrl);
} }
function UniversalNavigationComponent_div_11_button_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "button", 36);
    i0.ɵɵelementStart(1, "a", 37);
    i0.ɵɵelement(2, "div", 38);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} }
function UniversalNavigationComponent_div_11_Template(rf, ctx) { if (rf & 1) {
    var _r13 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 39);
    i0.ɵɵtemplate(1, UniversalNavigationComponent_div_11_button_1_Template, 3, 0, "button", 33);
    i0.ɵɵelementStart(2, "button", 40);
    i0.ɵɵlistener("click", function UniversalNavigationComponent_div_11_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r13); var ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.toggleRightSlide(); });
    i0.ɵɵelement(3, "div", 41);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "img", 42);
    i0.ɵɵlistener("click", function UniversalNavigationComponent_div_11_Template_img_click_4_listener() { i0.ɵɵrestoreView(_r13); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.toggleRightSlide(); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r3.isMobile);
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate2("src", "", ctx_r3.envUrl, "/api/member/", ctx_r3.username, "/avatar/m", i0.ɵɵsanitizeUrl);
} }
var _c1 = function (a0) { return { "hasTopAd": a0 }; };
function UniversalNavigationComponent_div_12_Template(rf, ctx) { if (rf & 1) {
    var _r16 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 43);
    i0.ɵɵelementStart(1, "div");
    i0.ɵɵelementStart(2, "div", 44);
    i0.ɵɵlistener("click", function UniversalNavigationComponent_div_12_Template_div_click_2_listener() { i0.ɵɵrestoreView(_r16); var ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.goToOldSearch.emit(); });
    i0.ɵɵelementStart(3, "a");
    i0.ɵɵtext(4, "Return to Inspire Classic ");
    i0.ɵɵelement(5, "div", 45);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "div", 46);
    i0.ɵɵtext(7, " Discover More ");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "ul", 47);
    i0.ɵɵelementStart(9, "li", 48);
    i0.ɵɵelementStart(10, "a", 49);
    i0.ɵɵelement(11, "div", 50);
    i0.ɵɵelementContainerStart(12);
    i0.ɵɵtext(13, "Browse Communities");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(14, "li", 48);
    i0.ɵɵelementStart(15, "a", 49);
    i0.ɵɵelement(16, "div", 51);
    i0.ɵɵelementContainerStart(17);
    i0.ɵɵtext(18, "Browse Treatments");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(19, "li", 48);
    i0.ɵɵelementStart(20, "a", 49);
    i0.ɵɵelement(21, "div", 52);
    i0.ɵɵelementContainerStart(22);
    i0.ɵɵtext(23, "Find Conditions");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(24, "li", 48);
    i0.ɵɵelementStart(25, "a", 49);
    i0.ɵɵelement(26, "div", 53);
    i0.ɵɵelementContainerStart(27);
    i0.ɵɵtext(28, "Find Members");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(29, "div");
    i0.ɵɵelementStart(30, "div", 46);
    i0.ɵɵtext(31, " About Inspire ");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(32, "ul", 54);
    i0.ɵɵelementStart(33, "li", 55);
    i0.ɵɵelementStart(34, "a", 4);
    i0.ɵɵtext(35, "About Us");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(36, "li", 55);
    i0.ɵɵelementStart(37, "a", 4);
    i0.ɵɵtext(38, "Privacy Statement");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(39, "li", 55);
    i0.ɵɵelementStart(40, "a", 4);
    i0.ɵɵtext(41, "Terms of Use");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(42, "li", 55);
    i0.ɵɵelementStart(43, "a", 4);
    i0.ɵɵtext(44, "Community Guidelines");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(45, "li", 55);
    i0.ɵɵelementStart(46, "a", 4);
    i0.ɵɵtext(47, "Help");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(48, "li", 55);
    i0.ɵɵelementStart(49, "a", 4);
    i0.ɵɵtext(50, "Glossary");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(51, "li", 55);
    i0.ɵɵelementStart(52, "a", 4);
    i0.ɵɵtext(53, "Advertise With Us");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(54, "li", 55);
    i0.ɵɵelementStart(55, "a", 4);
    i0.ɵɵtext(56, "Become a Partner");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(57, "li", 55);
    i0.ɵɵelementStart(58, "a", 4);
    i0.ɵɵtext(59, "Work For Us");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(60, "li", 55);
    i0.ɵɵelementStart(61, "a", 4);
    i0.ɵɵtext(62, "Our Principles");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(63, "li", 55);
    i0.ɵɵelementStart(64, "a", 4);
    i0.ɵɵtext(65, "Contact Us");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c1, ctx_r4.hasTopAd));
    i0.ɵɵadvance(10);
    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", "/friends.pl", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(9);
    i0.ɵɵproperty("href", "https://corp.inspire.com/meet-inspire/our-story/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("href", "/about/privacy/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("href", "/about/terms/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("href", "/about/guidelines/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("href", "/help/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("href", "/about/glossary/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("href", "https://corp.inspire.com/partnership-customers/pharma-biotech-industry/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("href", "https://corp.inspire.com/partnership-customers/patient-advocacy-groups/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("href", "https://corp.inspire.com/meet-inspire/careers/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("href", "https://www.inspire.com/about/our-principles/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("href", "/contact/", i0.ɵɵsanitizeUrl);
} }
function UniversalNavigationComponent_div_13_Template(rf, ctx) { if (rf & 1) {
    var _r18 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 56);
    i0.ɵɵelementStart(1, "div", 46);
    i0.ɵɵtext(2, " Your Inspire ");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "ul", 47);
    i0.ɵɵelementStart(4, "li", 48);
    i0.ɵɵelementStart(5, "a", 57);
    i0.ɵɵelement(6, "div", 58);
    i0.ɵɵelementContainerStart(7);
    i0.ɵɵtext(8, "Home");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "li", 48);
    i0.ɵɵelementStart(10, "a", 57);
    i0.ɵɵelement(11, "div", 59);
    i0.ɵɵelementContainerStart(12);
    i0.ɵɵtext(13, "Invite to Inspire");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(14, "li", 48);
    i0.ɵɵelementStart(15, "a", 60);
    i0.ɵɵelement(16, "div", 61);
    i0.ɵɵelementContainerStart(17);
    i0.ɵɵtext(18, "Communities");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(19, "li", 48);
    i0.ɵɵelementStart(20, "a", 62);
    i0.ɵɵelement(21, "div", 63);
    i0.ɵɵelementContainerStart(22);
    i0.ɵɵtext(23, "Following");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(24, "li", 48);
    i0.ɵɵelementStart(25, "a", 64);
    i0.ɵɵelement(26, "div", 65);
    i0.ɵɵelementContainerStart(27);
    i0.ɵɵtext(28, "Friends");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(29, "li", 48);
    i0.ɵɵelementStart(30, "a", 66);
    i0.ɵɵelement(31, "div", 67);
    i0.ɵɵelementContainerStart(32);
    i0.ɵɵtext(33, "Messages");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(34, "li", 48);
    i0.ɵɵelementStart(35, "a", 68);
    i0.ɵɵelement(36, "div", 69);
    i0.ɵɵelementContainerStart(37);
    i0.ɵɵtext(38, "Profile");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(39, "li", 48);
    i0.ɵɵelementStart(40, "a", 70);
    i0.ɵɵelement(41, "div", 71);
    i0.ɵɵelementContainerStart(42);
    i0.ɵɵtext(43, "Profile Settings");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(44, "li", 48);
    i0.ɵɵelementStart(45, "a", 72);
    i0.ɵɵlistener("click", function UniversalNavigationComponent_div_13_Template_a_click_45_listener() { i0.ɵɵrestoreView(_r18); var ctx_r17 = i0.ɵɵnextContext(); return ctx_r17.logout(); });
    i0.ɵɵelement(46, "div", 73);
    i0.ɵɵelementContainerStart(47);
    i0.ɵɵtext(48, "Logout");
    i0.ɵɵelementContainerEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1, ctx_r5.hasTopAd));
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("href", "/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("href", "/invite/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("href", "/groups/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("href", ctx_r5.loggedIn ? "/?section=following" : "/login/", 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", "/m/" + ctx_r5.username, i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("href", "/member/settings/", i0.ɵɵsanitizeUrl);
} }
var UniversalNavigationComponent = /** @class */ (function () {
    function UniversalNavigationComponent(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.clickCommunity = new EventEmitter();
        this.browseCommunities = new EventEmitter();
        this.goToOldSearch = new EventEmitter();
        this.query = "";
        this.showLeftSlide = false;
        this.showRightSlide = 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"];
            });
        }
    }
    UniversalNavigationComponent.prototype.ngOnInit = function () {
    };
    UniversalNavigationComponent.prototype.ngOnDestroy = function () {
        this.topAdSub && this.topAdSub.unsubscribe();
    };
    UniversalNavigationComponent.prototype.toggleLeftSlide = function () {
        this.showLeftSlide = !this.showLeftSlide;
        this.showRightSlide = false;
    };
    UniversalNavigationComponent.prototype.toggleRightSlide = function () {
        this.showRightSlide = !this.showRightSlide;
        this.showLeftSlide = false;
    };
    UniversalNavigationComponent.prototype.closeBothSlides = function () {
        this.showLeftSlide = false;
        this.showRightSlide = false;
    };
    UniversalNavigationComponent.prototype.onSubmit = function (f) {
        // if (mobile && !value) return this.toggleSearch();
        var searchUrl = new URL(this.envUrl + "/search/?sec=all");
        searchUrl.searchParams.append("query", f.value.query ? f.value.query : "");
        if (this.groupId) {
            searchUrl.searchParams.append("g", this.groupId.toString());
        }
        window.location.href = searchUrl.href;
    };
    UniversalNavigationComponent.prototype.logout = function () {
        var _this = this;
        this.navigationService.logout().subscribe(function (res) {
            _this.cookieService.remove(IS_LOGGED_IN_KEY);
            window.location.reload();
        });
    };
    UniversalNavigationComponent.prototype.onResize = function (event) {
        this.isMobile = event.target.innerWidth <= 768;
    };
    UniversalNavigationComponent.ɵfac = function UniversalNavigationComponent_Factory(t) { return new (t || UniversalNavigationComponent)(i0.ɵɵdirectiveInject(i1.UserService), i0.ɵɵdirectiveInject(i2.NavigationService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i3.WindowService), i0.ɵɵdirectiveInject(i4.CookieService)); };
    UniversalNavigationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UniversalNavigationComponent, selectors: [["ins-universal-navigation"]], hostBindings: function UniversalNavigationComponent_HostBindings(rf, ctx) { if (rf & 1) {
            i0.ɵɵlistener("resize", function UniversalNavigationComponent_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" }, outputs: { clickCommunity: "clickCommunity", browseCommunities: "browseCommunities", goToOldSearch: "goToOldSearch" }, decls: 40, vars: 11, consts: [[1, "nav__height"], [1, "header", 3, "ngClass"], [1, "nav"], ["appClassChanger", "", 1, "nav__left"], [3, "href"], [1, "nav__logo", "unav-logo"], [1, "nav__dropdown", "icon-hamburger-menu", 3, "click"], [1, "nav__middle"], ["class", "nav__middle__gadget__container", 4, "ngIf"], ["class", "search__form", "novalidate", "", 3, "ngSubmit", 4, "ngIf"], ["class", "nav__right", 3, "ngStyle", 4, "ngIf"], ["class", "nav__right", 4, "ngIf"], ["class", "left__container", 3, "ngClass", 4, "ngIf"], ["class", "right__container", 3, "ngClass", 4, "ngIf"], [1, "gadget__btn"], ["appClassChanger", "", "href", "/", 1, "noTextDec", "gadget__text"], [1, "gadget__icon", "icon-home-feed"], ["appClassChanger", "", "href", "/groups/", 1, "noTextDec", "gadget__text"], [1, "gadget__icon", "icon-groups"], ["appClassChanger", "", "href", "/messages.pl", 1, "noTextDec", "gadget__text"], [1, "gadget__icon", "icon-messages"], ["appClassChanger", "", 1, "noTextDec", "gadget__text", 3, "href"], [1, "gadget__icon", "icon-following"], ["appClassChanger", "", "href", "/friends.pl", 1, "noTextDec", "gadget__text"], [1, "gadget__icon", "icon-friends"], [1, "nav__middle__gadget__container"], ["appClassChanger", "", "href", "/groups", 1, "noTextDec", "gadget__text"], ["novalidate", "", 1, "search__form", 3, "ngSubmit"], ["f", "ngForm"], ["required", "", "name", "query", "autocomplete", "off", 1, "search__input", 3, "placeholder", "ngModel", "ngModelChange"], ["appClassChanger", ""], [1, "search__btn__container", "icon-search-sm"], [1, "nav__right", 3, "ngStyle"], ["class", "search__btn__container", 4, "ngIf"], ["id", "logIn", 1, "noTextDec", "nav__authBtn", "options__link", 3, "href"], ["id", "signUp", 1, "noTextDec", "nav__authBtn", "blue-white", 3, "href"], [1, "search__btn__container"], ["appClassChanger", "", "href", "/search/"], ["alt", "search", 1, "search__icon", "icon-search-sm"], [1, "nav__right"], ["appClassChanger", "", 1, "nav__dropdown", 3, "click"], [1, "icon-arrow-down"], ["id", "avatarImage", 1, "avatar__image", 3, "src", "click"], [1, "left__container", 3, "ngClass"], [1, "slide__title", 3, "click"], [1, "logo", "logo-inspire-guy-blue"], [1, "slide__title"], [1, "list__style__none"], [1, "list__item"], ["appClassChanger", "", 3, "href"], ["alt", "communities", "title", "Communities", 1, "icon-groups-sm"], ["alt", "treatments", 1, "icon-treatment-sm"], ["alt", "conditions", 1, "icon-condition-sm"], ["alt", "friends", "title", "Friends", 1, "icon-friends-sm"], [1, "list__style__none--about"], [1, "list__item__sm"], [1, "right__container", 3, "ngClass"], ["id", "goToHome", 3, "href"], [1, "icon-home-feed-white-sm"], [1, "icon-add-friend"], ["id", "goToGroups", 3, "href"], [1, "icon-groups-white-sm"], ["id", "goToFollowing", 3, "href"], [1, "icon-following-white-sm"], ["id", "goToFriends", 3, "href"], [1, "icon-friends-white-sm"], ["id", "goToMessages", 3, "href"], [1, "icon-messages-white-sm"], ["id", "goToProfile", 3, "href"], [1, "icon-profile-white-sm"], ["id", "goToSettings", 3, "href"], [1, "icon-user-white-sm"], ["id", "logOut", 3, "click"], [1, "icon-logout-white-sm"]], template: function UniversalNavigationComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "header", 1);
            i0.ɵɵelementStart(2, "nav", 2);
            i0.ɵɵelementStart(3, "div", 3);
            i0.ɵɵelementStart(4, "a", 4);
            i0.ɵɵelement(5, "div", 5);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(6, "button", 6);
            i0.ɵɵlistener("click", function UniversalNavigationComponent_Template_button_click_6_listener() { return ctx.toggleLeftSlide(); });
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(7, "div", 7);
            i0.ɵɵtemplate(8, UniversalNavigationComponent_div_8_Template, 26, 1, "div", 8);
            i0.ɵɵtemplate(9, UniversalNavigationComponent_form_9_Template, 6, 2, "form", 9);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(10, UniversalNavigationComponent_div_10_Template, 6, 6, "div", 10);
            i0.ɵɵtemplate(11, UniversalNavigationComponent_div_11_Template, 5, 3, "div", 11);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(12, UniversalNavigationComponent_div_12_Template, 66, 18, "div", 12);
            i0.ɵɵtemplate(13, UniversalNavigationComponent_div_13_Template, 49, 11, "div", 13);
            i0.ɵɵelementStart(14, "footer");
            i0.ɵɵelementStart(15, "div", 14);
            i0.ɵɵelementStart(16, "a", 15);
            i0.ɵɵelement(17, "span", 16);
            i0.ɵɵelementStart(18, "div");
            i0.ɵɵtext(19, "Home");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(20, "div", 14);
            i0.ɵɵelementStart(21, "a", 17);
            i0.ɵɵelement(22, "span", 18);
            i0.ɵɵelementStart(23, "div");
            i0.ɵɵtext(24, "Communities");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(25, "div", 14);
            i0.ɵɵelementStart(26, "a", 19);
            i0.ɵɵelement(27, "span", 20);
            i0.ɵɵelementStart(28, "div");
            i0.ɵɵtext(29, "Messages");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(30, "div", 14);
            i0.ɵɵelementStart(31, "a", 21);
            i0.ɵɵelement(32, "span", 22);
            i0.ɵɵelementStart(33, "div");
            i0.ɵɵtext(34, "Following");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(35, "div", 14);
            i0.ɵɵelementStart(36, "a", 23);
            i0.ɵɵelement(37, "span", 24);
            i0.ɵɵelementStart(38, "div");
            i0.ɵɵtext(39, "Friends");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1, ctx.hasTopAd));
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("href", "/", i0.ɵɵsanitizeUrl);
            i0.ɵɵadvance(4);
            i0.ɵɵproperty("ngIf", !ctx.isMobile);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.isMobile);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.loggedIn);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.loggedIn);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.showLeftSlide);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.showRightSlide);
            i0.ɵɵadvance(18);
            i0.ɵɵproperty("href", ctx.loggedIn ? "/?section=following" : "/login/", i0.ɵɵsanitizeUrl);
        } }, directives: [i5.NgClass, i5.NgIf, i6.ɵangular_packages_forms_forms_y, i6.NgControlStatusGroup, i6.NgForm, i6.DefaultValueAccessor, i6.RequiredValidator, i6.NgControlStatus, i6.NgModel, i5.NgStyle], styles: [".add-sign[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-186px -87px;width:20px;height:20px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.add-sign[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon_treatment-xs[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-164px -227px;width:15px;height:15px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon_treatment-xs[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-add-friend[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-156px -87px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-add-friend[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-arrow-down-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-193px -50px;width:13px;height:8px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-arrow-down-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-arrow-down[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-193px -58px;width:13px;height:8px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-arrow-down[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-comment-count[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-134px -97px;width:18px;height:18px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-comment-count[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-condition-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-111px -160px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-condition-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-condition-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-141px -160px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-condition-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-condition-xs[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-149px -227px;width:15px;height:20px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-condition-xs[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-double-arrow[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -157px;width:24px;height:24px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-double-arrow[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-facebook-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-179px -227px;width:14px;height:14px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-facebook-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-facebook[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -181px;width:24px;height:24px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-facebook[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-following-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-156px -50px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-following-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-following-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-171px -160px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-following-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-following[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-97px -78px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-following[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-friends-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:0 -123px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-friends-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-friends-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px 0;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-friends-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-friends-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px -30px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-friends-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-friends-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px -60px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-friends-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-friends[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-37px -123px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-friends[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-groups-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-74px -123px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-groups-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-groups-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px -90px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-groups-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-groups-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px -120px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-groups-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-groups-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px -150px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-groups-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-groups-xs[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px -180px;width:20px;height:15px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-groups-xs[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-groups[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-111px -123px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-groups[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-hamburger-menu-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -205px;width:25px;height:22px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-hamburger-menu-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-hamburger-menu[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-72px -227px;width:25px;height:22px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-hamburger-menu[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-home-feed-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-148px -123px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-home-feed-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-home-feed-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:0 -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-home-feed-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-home-feed[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:0 -160px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-home-feed[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-instagram-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-193px -227px;width:14px;height:14px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-instagram-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-instagram[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-210px -197px;width:24px;height:24px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-instagram[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-logout-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-30px -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-logout-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-messages-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-37px -160px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-messages-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-messages-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-60px -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-messages-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-messages[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-74px -160px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-messages[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-pinterest-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-207px -227px;width:14px;height:14px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-pinterest-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-pinterest[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:0 -227px;width:24px;height:24px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-pinterest[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-profile-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-90px -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-profile-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-search-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-185px -123px;width:18px;height:18px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-search-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-search-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-185px -141px;width:18px;height:18px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-search-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-thumbnails-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -107px;width:25px;height:25px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-thumbnails-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-thumbnails[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -132px;width:25px;height:25px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-thumbnails[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-transcript-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-97px -227px;width:26px;height:21px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-transcript-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-transcript[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-123px -227px;width:26px;height:21px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-transcript[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-treatment-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-120px -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-treatment-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-treatment-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-150px -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-treatment-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-tumblr-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-221px -227px;width:14px;height:14px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-tumblr-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-tumblr[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-24px -227px;width:24px;height:24px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-tumblr[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-twitter-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-235px -227px;width:14px;height:14px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-twitter-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-twitter[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-48px -227px;width:24px;height:24px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-twitter[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-user-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-180px -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-user-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-video-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -27px;width:26px;height:26px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-video-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-video[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -53px;width:26px;height:26px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-video[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.inspire-guy-small[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -79px;width:23px;height:28px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.inspire-guy-small[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.left-arrow[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-134px -78px;width:22px;height:19px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.left-arrow[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.logo-inspire-guy-blue-lg[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:0 0;width:78px;height:78px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.logo-inspire-guy-blue-lg[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.logo-inspire-guy-blue[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px 0;width:27px;height:27px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.logo-inspire-guy-blue[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.logo-inspire-guy[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-78px 0;width:78px;height:78px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.logo-inspire-guy[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.media-open[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-156px 0;width:50px;height:50px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.media-open[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.unav-logo[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:0 -78px;width:97px;height:45px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.unav-logo[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.header[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;position:fixed;top:0;box-shadow:0 1px 2px rgba(0,0,0,.2);z-index:80000;background:#fff;font-family:Palanquin,sans-serif}.logo-inspire-guy-blue[_ngcontent-%COMP%]{display:inline-block}.nav[_ngcontent-%COMP%]{display:-ms-grid;display:grid;align-items:center;height:60px;width:100%;max-width:1170px;-ms-grid-columns:1fr 2fr 1fr 3fr;grid-template-columns:1fr 2fr 1fr 3fr;grid-template-areas:\"nav__left nav__middle nav__right\";grid-template-columns:repeat(1,-webkit-max-content) auto minmax(190px,15%);-ms-grid-columns:(-webkit-max-content)[1] auto minmax(190px,15%);-ms-grid-columns:(max-content)[1] auto minmax(190px,15%);grid-template-columns:repeat(1,max-content) auto minmax(190px,15%);max-width:100%}.nav__height[_ngcontent-%COMP%]{height:60px}.nav__logo[_ngcontent-%COMP%]{margin-left:5px;height:45px;display:inline-block;vertical-align:middle}.nav__authBtn[_ngcontent-%COMP%]{padding:0 .875rem;height:100%;display:inline-flex;justify-content:center;align-items:center}.nav__middle[_ngcontent-%COMP%]{text-align:right}.nav__middle__gadget__container[_ngcontent-%COMP%]{text-align:center;display:inline-block;width:50%;min-width:300px;max-width:500px}.nav__right[_ngcontent-%COMP%]{-ms-grid-row:1;-ms-grid-column:3;text-align:right;align-items:center;grid-area:nav__right;justify-self:end;display:flex}.nav__dropdown[_ngcontent-%COMP%]{font-size:1em;margin-left:16px;border:none;outline:0;cursor:pointer;background-color:#fff;vertical-align:middle}.nav__dropdown[_ngcontent-%COMP%]   .fa-bars[_ngcontent-%COMP%]{font-size:25px}.left__container[_ngcontent-%COMP%]{position:fixed;margin-top:60px;max-width:475px;min-width:300px;border:1px solid #e6e6e6;border-top:none;bottom:0;top:0;color:#061a73;background:#fff;z-index:600000;overflow-y:scroll;font-family:Palanquin,sans-serif}.left__container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:#061a73}.right__container[_ngcontent-%COMP%]{position:fixed;margin-top:60px;max-width:475px;min-width:300px;bottom:0;top:0;right:0;background:#061a73;color:#fff;z-index:600000;font-family:Palanquin,sans-serif}.right__container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:#fff}.list__item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer}.blue-white[_ngcontent-%COMP%]{background:#061a73;color:#fff}.slide__title[_ngcontent-%COMP%]{padding:20px 5px 10px;border-bottom:1px solid #e6e6e6;font-weight:700}.slide__title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer}.list__style__none[_ngcontent-%COMP%], .list__style__none--about[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;text-align:left}.list__style__none--about[_ngcontent-%COMP%]{margin-bottom:60px}.list__item[_ngcontent-%COMP%]{padding:10px 15px;font-size:18px}.list__item[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:inline-block;margin-right:10px;vertical-align:middle}.list__item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:30px;width:auto;display:inline-block;margin-right:10px;vertical-align:middle}.list__item__sm[_ngcontent-%COMP%]{padding:5px 15px;font-size:15px}.search__form[_ngcontent-%COMP%]{display:flex;position:relative;min-height:40px;border:1px solid #d0d0d0;border-radius:5px;float:right;padding:1px;max-width:400px;width:30%}.search__input[_ngcontent-%COMP%]{font-size:1em;padding:5px 5px 5px 10px;border:none;outline:0;width:100%}.search__icon[_ngcontent-%COMP%]{width:18px;height:18px;outline:0}.search__btn__container[_ngcontent-%COMP%]{border:none;cursor:pointer;margin:10px 10px 0 0;outline:0;background-color:#fff}.search__select[_ngcontent-%COMP%]{font-size:1em;padding:5px;border:none;border-radius:5px;outline:0;background:#f0f0f0}.search__scopeBox[_ngcontent-%COMP%]{position:absolute;background:#fff;width:335px;max-width:335px;margin:50px 0 0;list-style:none;-webkit-padding-start:20px;padding-inline-start:20px}.search__scopeBoxItem[_ngcontent-%COMP%]{border:none;color:#061a73;cursor:pointer;width:100%;text-align:left;font-size:14px;padding:8px 15px}.search__result__term[_ngcontent-%COMP%]{color:#009dfc}.avatar[_ngcontent-%COMP%]{background:0 0;border:none;display:flex;align-items:center;grid-area:avatar;justify-self:end;padding:0;margin-left:10px}.avatar[_ngcontent-%COMP%]:hover{cursor:pointer}.avatar[_ngcontent-%COMP%]:hover   .avatar__username[_ngcontent-%COMP%]{-webkit-filter:brightness(125%);filter:brightness(125%)}.avatar__image[_ngcontent-%COMP%]{border-radius:50%;border:1px solid #e6e6e6;width:50px;height:50px;cursor:pointer}.avatar__username[_ngcontent-%COMP%]{color:#061a73;font-weight:700;font-size:18px;margin-left:5px;max-width:145px;text-overflow:ellipsis}@media screen and (max-width:1190px){.avatar__username[_ngcontent-%COMP%]{display:none}}.avatar__arrow[_ngcontent-%COMP%]{width:18px;height:18px;margin-left:6px;margin-top:4px;margin-right:3px}.noTextDec[_ngcontent-%COMP%]{text-decoration:none;justify-content:center;flex-grow:1}.options__link[_ngcontent-%COMP%]{color:#061a73;font-size:18px;font-weight:700;display:flex;align-items:center;padding:0 5px}footer[_ngcontent-%COMP%]{font-family:Palanquin,sans-serif;position:fixed;bottom:0;left:0;right:0;text-align:center;box-shadow:-1px -2px 5px 0 rgba(0,0,0,.2);padding:5px 0;background:#fff;z-index:6000000}@media screen and (min-width:768px){footer[_ngcontent-%COMP%]{display:none}}.gadget__btn[_ngcontent-%COMP%]{display:inline-block;width:20%}.gadget__text[_ngcontent-%COMP%]{display:block;font-size:11px;color:#061a73}.gadget__icon[_ngcontent-%COMP%]{width:37px;margin-bottom:-8px;display:inline-block}.logo[_ngcontent-%COMP%]{width:27px;vertical-align:middle}.hasTopAd[_ngcontent-%COMP%]{top:110px}@media only screen and (max-width:728px){.hasTopAd[_ngcontent-%COMP%]{top:90px}}"] });
    return UniversalNavigationComponent;
}());
export { UniversalNavigationComponent };
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UniversalNavigationComponent, [{
        type: Component,
        args: [{
                selector: 'ins-universal-navigation',
                templateUrl: './universal-navigation.component.html',
                styleUrls: ['./universal-navigation.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
        }], clickCommunity: [{
            type: Output
        }], browseCommunities: [{
            type: Output
        }], goToOldSearch: [{
            type: Output
        }], onResize: [{
            type: HostListener,
            args: ['window:resize', ['$event']]
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 