import { Component, Input } from '@angular/core';
import { AutocompleteService } from '../autocomplete.service';
import * as i0 from "@angular/core";
import * as i1 from "../autocomplete.service";
import * as i2 from "@angular/common";
import * as i3 from "../click-outside.directive";
function AutocompleteComponent_div_0_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
    var _r7 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 6);
    i0.ɵɵlistener("click", function AutocompleteComponent_div_0_div_1_div_1_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r7); var item_r4 = ctx.$implicit; var ctx_r6 = i0.ɵɵnextContext(3); return ctx_r6.suggestionOnClick($event, item_r4); });
    i0.ɵɵelementStart(1, "strong");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var item_r4 = ctx.$implicit;
    var ctx_r3 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(item_r4.substring(0, ctx_r3.input_length));
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1("", item_r4.substring(ctx_r3.input_length), " ");
} }
function AutocompleteComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 4);
    i0.ɵɵtemplate(1, AutocompleteComponent_div_0_div_1_div_1_Template, 4, 2, "div", 5);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r1.suggestions);
} }
function AutocompleteComponent_div_0_hr_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "hr");
} }
function AutocompleteComponent_div_0_Template(rf, ctx) { if (rf & 1) {
    var _r9 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 1);
    i0.ɵɵlistener("clickOutside", function AutocompleteComponent_div_0_Template_div_clickOutside_0_listener() { i0.ɵɵrestoreView(_r9); var ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.closeSuggestion(); });
    i0.ɵɵtemplate(1, AutocompleteComponent_div_0_div_1_Template, 2, 1, "div", 2);
    i0.ɵɵtemplate(2, AutocompleteComponent_div_0_hr_2_Template, 1, 0, "hr", 3);
    i0.ɵɵelementStart(3, "div", 4);
    i0.ɵɵprojection(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.suggestions.length > 0);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.suggestions.length > 0 && ctx_r0.showBookmarks);
} }
var _c0 = ["*"];
var AutocompleteComponent = /** @class */ (function () {
    function AutocompleteComponent(autocompleteService) {
        var _this = this;
        this.autocompleteService = autocompleteService;
        this.input_length = 0;
        this.suggestions = [];
        this.subscription = this.autocompleteService.returnResult().subscribe(function (res) {
            if (res.data.suggestions) {
                _this.suggestions = res.data.suggestions;
                _this.input_length = res.data.query.length;
            }
            else {
                _this.suggestions = [];
                _this.input_length = 0;
            }
        });
    }
    AutocompleteComponent.prototype.ngOnInit = function () {
    };
    AutocompleteComponent.prototype.suggestionOnClick = function (event, item) {
        var search_term = item.toString().replace(/\s/g, "+");
        var url = "/search/?query=" + search_term + "&" +
            'g=' + this.autocompleteService.g + '&' +
            'sec=' + 'All' + '&' +
            'p=' + 1 + '&' +
            'r=' + 20000;
        location.href = url;
    };
    AutocompleteComponent.prototype.ngOnDestroy = function () {
        // unsubscribe to ensure no memory leaks
        this.subscription.unsubscribe();
    };
    AutocompleteComponent.prototype.closeSuggestion = function () {
        this.suggestions = [];
    };
    AutocompleteComponent.ɵfac = function AutocompleteComponent_Factory(t) { return new (t || AutocompleteComponent)(i0.ɵɵdirectiveInject(i1.AutocompleteService)); };
    AutocompleteComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AutocompleteComponent, selectors: [["ins-autocomplete"]], inputs: { showBookmarks: "showBookmarks", showAutocomplete: "showAutocomplete" }, ngContentSelectors: _c0, decls: 1, vars: 1, consts: [["class", "auto-complete", 3, "clickOutside", 4, "ngIf"], [1, "auto-complete", 3, "clickOutside"], ["class", "suggestion__container", 4, "ngIf"], [4, "ngIf"], [1, "suggestion__container"], ["class", "suggestion__item", 3, "click", 4, "ngFor", "ngForOf"], [1, "suggestion__item", 3, "click"]], template: function AutocompleteComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵprojectionDef();
            i0.ɵɵtemplate(0, AutocompleteComponent_div_0_Template, 5, 2, "div", 0);
        } if (rf & 2) {
            i0.ɵɵproperty("ngIf", ctx.showAutocomplete && (ctx.suggestions.length > 0 || ctx.showBookmarks));
        } }, directives: [i2.NgIf, i3.ClickOutsideDirective, i2.NgForOf], 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}}[_nghost-%COMP%]     .auto-complete{border:1px solid #dadada;display:block;position:absolute;z-index:1848;width:100%;background:#fff}[_nghost-%COMP%]     .auto-complete hr{margin:0}.hide[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]     .suggestion__container{padding:10px}[_nghost-%COMP%]     .suggestion__item{line-height:1em;max-width:100%;overflow:hidden;padding:8px 0;white-space:pre-line;cursor:pointer;font-family:Lato,sans-serif}[_nghost-%COMP%]     .suggestion__item:hover{background:#e6e6e6}[_nghost-%COMP%]     .suggestion__item strong{font-weight:700;color:#061a73}"] });
    return AutocompleteComponent;
}());
export { AutocompleteComponent };
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AutocompleteComponent, [{
        type: Component,
        args: [{
                selector: 'ins-autocomplete',
                templateUrl: './autocomplete.component.html',
                styleUrls: ['./autocomplete.component.scss']
            }]
    }], function () { return [{ type: i1.AutocompleteService }]; }, { showBookmarks: [{
            type: Input,
            args: ['showBookmarks']
        }], showAutocomplete: [{
            type: Input,
            args: ['showAutocomplete']
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 