import { Component, Input, Output, EventEmitter } from '@angular/core';
import { WindowService } from '../window.service';
import * as i0 from "@angular/core";
import * as i1 from "../window.service";
import * as i2 from "@angular/common";
function ConditionCardComponent_div_0_a_1_Template(rf, ctx) { if (rf & 1) {
    var _r5 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "a", 6);
    i0.ɵɵlistener("click", function ConditionCardComponent_div_0_a_1_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r5); var ctx_r4 = i0.ɵɵnextContext(2); return ctx_r4.addClick(); });
    i0.ɵɵelement(1, "i", 7);
    i0.ɵɵelementEnd();
} }
function ConditionCardComponent_div_0_a_2_Template(rf, ctx) { if (rf & 1) {
    var _r7 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "a", 8);
    i0.ɵɵlistener("click", function ConditionCardComponent_div_0_a_2_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r7); var ctx_r6 = i0.ɵɵnextContext(2); return ctx_r6.removeClick(); });
    i0.ɵɵelement(1, "i", 9);
    i0.ɵɵelementEnd();
} }
function ConditionCardComponent_div_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 2);
    i0.ɵɵtemplate(1, ConditionCardComponent_div_0_a_1_Template, 2, 0, "a", 3);
    i0.ɵɵtemplate(2, ConditionCardComponent_div_0_a_2_Template, 2, 0, "a", 4);
    i0.ɵɵelementStart(3, "a", 5);
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r0.isAdded);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.isAdded);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("href", "/conditions/" + ctx_r0.conditionNameId, i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r0.conditionName);
} }
function ConditionCardComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "a", 17);
    i0.ɵɵelement(2, "div", 23);
    i0.ɵɵelement(3, "i", 24);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r8 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("href", "/conditions/" + ctx_r8.conditionNameId, i0.ɵɵsanitizeUrl);
} }
function ConditionCardComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1) {
    var _r12 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 25);
    i0.ɵɵlistener("click", function ConditionCardComponent_div_1_div_5_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r12); var ctx_r11 = i0.ɵɵnextContext(2); return ctx_r11.addClick(); });
    i0.ɵɵelementStart(1, "a");
    i0.ɵɵtext(2, "Add");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} }
function ConditionCardComponent_div_1_div_16_li_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "li", 29);
    i0.ɵɵelementStart(1, "a");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var community_r14 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(community_r14);
} }
var _c0 = function () { return []; };
function ConditionCardComponent_div_1_div_16_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 26);
    i0.ɵɵelementStart(1, "div", 27);
    i0.ɵɵtext(2, "Communities:");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "ul");
    i0.ɵɵtemplate(4, ConditionCardComponent_div_1_div_16_li_4_Template, 3, 1, "li", 28);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r10 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("ngForOf", ctx_r10.conditionCommunities ? ctx_r10.conditionCommunities.slice(0, 3) : i0.ɵɵpureFunction0(1, _c0));
} }
var _c1 = function (a0) { return { "smallCard": a0 }; };
function ConditionCardComponent_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 10);
    i0.ɵɵelement(1, "div", 11);
    i0.ɵɵelementStart(2, "div", 12);
    i0.ɵɵelementStart(3, "div", 13);
    i0.ɵɵtemplate(4, ConditionCardComponent_div_1_div_4_Template, 4, 1, "div", 14);
    i0.ɵɵtemplate(5, ConditionCardComponent_div_1_div_5_Template, 3, 0, "div", 15);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "div", 16);
    i0.ɵɵelementStart(7, "a", 17);
    i0.ɵɵtext(8, "View");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "a", 18);
    i0.ɵɵelementStart(10, "div", 19);
    i0.ɵɵelementStart(11, "div");
    i0.ɵɵelementStart(12, "p", 20);
    i0.ɵɵtext(13);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(14, "div", 21);
    i0.ɵɵtext(15);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(16, ConditionCardComponent_div_1_div_16_Template, 5, 2, "div", 22);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1, ctx_r1.layout == "small"));
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("ngIf", ctx_r1.isAdded);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r1.isAdded);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", ctx_r1.conditionUrl, i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("href", "/conditions/" + ctx_r1.conditionNameId, i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate(ctx_r1.conditionName);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", ctx_r1.conditionDescription, " ");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.conditionCommunities && ctx_r1.conditionCommunities.length > 0);
} }
var ConditionCardComponent = /** @class */ (function () {
    function ConditionCardComponent(windowService) {
        this.windowService = windowService;
        this.addInterest = new EventEmitter();
        this.removeInterest = new EventEmitter();
        this.loginVal = 'no';
        this.layout = 'normal';
        this.view = 'card';
    }
    ConditionCardComponent.prototype.ngOnInit = function () {
    };
    ConditionCardComponent.prototype.addClick = function () {
        if (this.loginVal == 'yes') {
            this.addInterest.emit();
        }
        else {
            if (this.windowService.isBrowser()) {
                window.location.href = "/signin.pl";
            }
        }
    };
    ConditionCardComponent.prototype.removeClick = function () {
        this.removeInterest.emit();
    };
    ConditionCardComponent.ɵfac = function ConditionCardComponent_Factory(t) { return new (t || ConditionCardComponent)(i0.ɵɵdirectiveInject(i1.WindowService)); };
    ConditionCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ConditionCardComponent, selectors: [["ins-condition-card"]], inputs: { conditionId: "conditionId", conditionName: "conditionName", conditionNameId: "conditionNameId", conditionDescription: "conditionDescription", conditionCommunities: "conditionCommunities", loginVal: "loginVal", layout: "layout", envUrl: "envUrl", conditionUrl: "conditionUrl", isAdded: "isAdded", view: "view" }, outputs: { addInterest: "addInterest", removeInterest: "removeInterest" }, decls: 2, vars: 2, consts: [["class", "pill", 4, "ngIf"], ["class", "conditionCard", 3, "ngClass", 4, "ngIf"], [1, "pill"], ["class", "pill__icon pill__icon__plusBg", 3, "click", 4, "ngIf"], ["class", "pill__icon pill__icon__checkBg", 3, "click", 4, "ngIf"], [1, "pill__name", 3, "href"], [1, "pill__icon", "pill__icon__plusBg", 3, "click"], [1, "fas", "fa-plus"], [1, "pill__icon", "pill__icon__checkBg", 3, "click"], [1, "fas", "fa-check"], [1, "conditionCard", 3, "ngClass"], [1, "conditionBg"], [2, "position", "relative", "z-index", "2"], [1, "card__btn"], [4, "ngIf"], [3, "click", 4, "ngIf"], [1, "card__btn", "float__right"], [3, "href"], [1, "conditionCard__link__container", 3, "href"], [1, "text__align__center", "conditionCard__link__row"], [1, "conditionCard__title"], [1, "conditionCard__data"], ["class", "conditionCard__community", 4, "ngIf"], [1, "card__btn__icon", "icn-condition-xs"], [1, "fas", "fa-check", "card__btn__icon"], [3, "click"], [1, "conditionCard__community"], [1, "conditionCard__subtitle"], ["class", "conditionCard__community__list", 4, "ngFor", "ngForOf"], [1, "conditionCard__community__list"]], template: function ConditionCardComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵtemplate(0, ConditionCardComponent_div_0_Template, 5, 4, "div", 0);
            i0.ɵɵtemplate(1, ConditionCardComponent_div_1_Template, 17, 10, "div", 1);
        } if (rf & 2) {
            i0.ɵɵproperty("ngIf", ctx.view == "pill");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.view == "card");
        } }, directives: [i2.NgIf, i2.NgClass, 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}}.conditionCard[_ngcontent-%COMP%]{display:inline-block;margin:10px;width:240px;height:245px;border-radius:4px;padding:10px;font-family:Lato,sans-serif;box-shadow:0 0 8px #8c8c8c;overflow:hidden;position:relative}.conditionCard[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer}.conditionCard__logo[_ngcontent-%COMP%]{width:100px;height:100px}.conditionCard__title[_ngcontent-%COMP%]{color:#fff;font-weight:700}.conditionCard__data[_ngcontent-%COMP%], .conditionCard__subtitle[_ngcontent-%COMP%]{color:#323232;font-size:.8em;margin-bottom:0}.conditionCard__data[_ngcontent-%COMP%]{text-align:left;margin-top:35px;margin-bottom:10px;padding-left:12px}@supports (-webkit-line-clamp:2){.conditionCard__data[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}.conditionCard__community[_ngcontent-%COMP%]{font-weight:700;text-align:left;margin-top:15px;padding-left:12px}.conditionCard__community__list[_ngcontent-%COMP%]{text-align:left;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8em}.conditionCard__community[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin:0;padding:0}.conditionCard__dataItem[_ngcontent-%COMP%]{width:30%}.conditionCard__numbers[_ngcontent-%COMP%]{color:#000;font-weight:700;display:flex;flex-direction:column}.conditionCard__redirect[_ngcontent-%COMP%]{background:#061a73;width:80%;padding-top:5px;padding-bottom:5px;margin-left:10%;margin-right:10%;color:#fff;font-size:.85em;border:transparent;border-radius:3px}.conditionCard__link__container[_ngcontent-%COMP%]{position:relative;z-index:2;display:table;height:100%;width:100%}.conditionCard__link__row[_ngcontent-%COMP%]{margin-top:20px;display:table-row;height:100%;width:100%;cursor:pointer}.card__btn[_ngcontent-%COMP%]{position:relative;display:inline-block;border-radius:10px;padding:7px;outline:0;background-color:#e6e6e6}.card__btn__icon[_ngcontent-%COMP%]{display:inline-block;height:15px;width:auto;color:#061a73}.card__btn__icon[_ngcontent-%COMP%]:not(:first-child){margin-left:3px}.card__btn[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#061a73;font-size:15px}.float__right[_ngcontent-%COMP%]{float:right}.smallCard[_ngcontent-%COMP%]{height:160px;width:160px}.smallCard[_ngcontent-%COMP%]   .conditionCard__logo[_ngcontent-%COMP%]{width:75px;height:75px}.text__align__center[_ngcontent-%COMP%]{text-align:center}.clear__both[_ngcontent-%COMP%]{clear:both}.conditionBg[_ngcontent-%COMP%]{width:800px;height:300px;display:block;background-color:#061a73;position:absolute;z-index:1;top:-185px;right:-300px;border-radius:50%;overflow:hidden}.pill[_ngcontent-%COMP%]{display:inline-block;margin:2px 5px;border:1px solid;padding:5px 10px;border-radius:7px;background:#e6e6e6;color:#fff}.pill__icon[_ngcontent-%COMP%]{border-radius:50%;background:#005cc9;padding:2px 4px 1px;text-align:center;margin-right:3px;cursor:pointer;color:#fff}.pill__icon__plusBg[_ngcontent-%COMP%]{background:#005cc9}.pill__icon__checkBg[_ngcontent-%COMP%]{background:#09b0d3}.pill__name[_ngcontent-%COMP%]{color:#005cc9;text-decoration:none}@media only screen and (max-width:640px){.conditionCard[_ngcontent-%COMP%]{height:245px;width:160px}.conditionCard__data[_ngcontent-%COMP%]{display:none}.conditionBg[_ngcontent-%COMP%]{top:-160px}}"] });
    return ConditionCardComponent;
}());
export { ConditionCardComponent };
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ConditionCardComponent, [{
        type: Component,
        args: [{
                selector: 'ins-condition-card',
                templateUrl: './condition-card.component.html',
                styleUrls: ['./condition-card.component.scss']
            }]
    }], function () { return [{ type: i1.WindowService }]; }, { addInterest: [{
            type: Output
        }], removeInterest: [{
            type: Output
        }], conditionId: [{
            type: Input
        }], conditionName: [{
            type: Input
        }], conditionNameId: [{
            type: Input
        }], conditionDescription: [{
            type: Input
        }], conditionCommunities: [{
            type: Input
        }], loginVal: [{
            type: Input
        }], layout: [{
            type: Input
        }], envUrl: [{
            type: Input
        }], conditionUrl: [{
            type: Input
        }], isAdded: [{
            type: Input
        }], view: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 