import { Component, EventEmitter, Input, Output } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
function UsersComponent_i_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i");
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵclassMap("icn-" + (ctx_r0.expandedContent ? "minus" : "plus") + "-o ubl-icon");
} }
function UsersComponent_div_4_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 5);
    i0.ɵɵelementStart(1, "figure", 6);
    i0.ɵɵelement(2, "img", 7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "div", 8);
    i0.ɵɵelementStart(4, "a", 9);
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const user_r3 = ctx.$implicit;
    const ctx_r2 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate2("src", "", ctx_r2.envUrl, "/api/member/", user_r3, "/avatar/m", i0.ɵɵsanitizeUrl);
    i0.ɵɵproperty("alt", user_r3);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate1("href", "/m/", user_r3, "/", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(user_r3);
} }
function UsersComponent_div_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 3);
    i0.ɵɵtemplate(1, UsersComponent_div_4_div_1_Template, 6, 5, "div", 4);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r1.users);
} }
export class UsersComponent {
    constructor() {
        this.envUrl = "";
        this.enableAccordion = false;
        this.expandedContent = false;
        this.heading = '';
        this.users = [];
        this.isWidget = false;
        this.toggleExpandedContent = new EventEmitter();
    }
    ngOnInit() {
    }
    onToggleExpandContent() {
        if (this.enableAccordion) {
            this.toggleExpandedContent.emit();
        }
    }
}
UsersComponent.ɵfac = function UsersComponent_Factory(t) { return new (t || UsersComponent)(); };
UsersComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UsersComponent, selectors: [["ins-users"]], inputs: { envUrl: "envUrl", enableAccordion: "enableAccordion", expandedContent: "expandedContent", heading: "heading", users: "users", isWidget: "isWidget" }, outputs: { toggleExpandedContent: "toggleExpandedContent" }, decls: 5, vars: 5, consts: [[1, "ubl-title", 3, "click"], [3, "class", 4, "ngIf"], ["class", "ubl-content", 4, "ngIf"], [1, "ubl-content"], ["class", "ubl-avatar", "id", "user_item", 4, "ngFor", "ngForOf"], ["id", "user_item", 1, "ubl-avatar"], [1, "ubl-a-fig"], [3, "src", "alt"], [1, "ubl-a-meta"], ["target", "blank", 1, "ubl-a-label", 3, "href"]], template: function UsersComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "div");
        i0.ɵɵelementStart(1, "h2", 0);
        i0.ɵɵlistener("click", function UsersComponent_Template_h2_click_1_listener() { return ctx.onToggleExpandContent(); });
        i0.ɵɵtemplate(2, UsersComponent_i_2_Template, 1, 2, "i", 1);
        i0.ɵɵtext(3);
        i0.ɵɵelementEnd();
        i0.ɵɵtemplate(4, UsersComponent_div_4_Template, 2, 1, "div", 2);
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵclassMap("users-block-list " + (ctx.isWidget ? "widget-pack" : ""));
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("ngIf", ctx.enableAccordion);
        i0.ɵɵadvance(1);
        i0.ɵɵtextInterpolate1(" ", ctx.heading, " ");
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.expandedContent);
    } }, directives: [i1.NgIf, i1.NgForOf], styles: ["a[_ngcontent-%COMP%]{text-decoration:none}*[_ngcontent-%COMP%]{font-family:Lato,sans-serif;outline:0}@font-face{font-family:ins-icons;src:url(/assets/fonts/icons/ins-icons.ttf?nf14g1) format(\"truetype\"),url(/assets/fonts/icons/ins-icons.woff?nf14g1) format(\"woff\"),url(/assets/fonts/icons/ins-icons.svg?nf14g1#ins-icons) format(\"svg\");font-weight:400;font-style:normal;font-display:block}.ins-icon[_ngcontent-%COMP%], [class*=\" icn-\"][_ngcontent-%COMP%], [class^=icn-][_ngcontent-%COMP%]{font-family:ins-icons!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icn-minus-o[_ngcontent-%COMP%]:before{content:\"\\e93a\"}.icn-disclaimer[_ngcontent-%COMP%]:before{content:\"\\e934\"}.icn-leave-community[_ngcontent-%COMP%]:before{content:\"\\e935\"}.icn-stethoscope[_ngcontent-%COMP%]:before{content:\"\\e936\"}.icn-join-community[_ngcontent-%COMP%]:before{content:\"\\e937\"}.icn-resources[_ngcontent-%COMP%]:before{content:\"\\e938\"}.icn-help[_ngcontent-%COMP%]:before{content:\"\\e939\"}.icn-checked[_ngcontent-%COMP%]:before{content:\"\\e933\"}.icn-plus[_ngcontent-%COMP%]:before{content:\"\\e932\"}.icn-expand[_ngcontent-%COMP%]:before{content:\"\\e931\"}.icn-Invite[_ngcontent-%COMP%]:before{content:\"\\e930\"}.icn-report[_ngcontent-%COMP%]:before{content:\"\\e92f\"}.icn-unfollow[_ngcontent-%COMP%]:before{content:\"\\e92e\"}.icn-block[_ngcontent-%COMP%]:before{content:\"\\e92d\"}.icn-trash[_ngcontent-%COMP%]:before{content:\"\\e92b\"}.icn-follow[_ngcontent-%COMP%]:before{content:\"\\e92c\"}.icn-lock[_ngcontent-%COMP%]:before{content:\"\\e92a\"}.icn-bolt-left[_ngcontent-%COMP%]:before{content:\"\\e925\"}.icn-bolt-right[_ngcontent-%COMP%]:before{content:\"\\e926\"}.icn-bolt-down[_ngcontent-%COMP%]:before{content:\"\\e927\"}.icn-bolt-up[_ngcontent-%COMP%]:before{content:\"\\e928\"}.icn-img-o[_ngcontent-%COMP%]:before{content:\"\\e929\"}.icn-tick[_ngcontent-%COMP%]:before{content:\"\\e924\"}.icn-tick-o[_ngcontent-%COMP%]:before{content:\"\\e923\"}.icn-cross-o[_ngcontent-%COMP%]:before{content:\"\\e922\"}.icn-plus-o[_ngcontent-%COMP%]:before{content:\"\\e921\"}.icn-hide[_ngcontent-%COMP%]:before{content:\"\\e920\"}.icn-menu[_ngcontent-%COMP%]:before{content:\"\\e900\"}.icn-more[_ngcontent-%COMP%]:before{content:\"\\e901\"}.icn-msgs[_ngcontent-%COMP%]:before{content:\"\\e902\"}.icn-pin[_ngcontent-%COMP%]:before{content:\"\\e903\"}.icn-reply[_ngcontent-%COMP%]:before{content:\"\\e904\"}.icn-search[_ngcontent-%COMP%]:before{content:\"\\e905\"}.icn-settings[_ngcontent-%COMP%]:before{content:\"\\e906\"}.icn-treatment[_ngcontent-%COMP%]:before{content:\"\\e907\"}.icn-aid[_ngcontent-%COMP%]:before{content:\"\\e908\"}.icn-apple[_ngcontent-%COMP%]:before{content:\"\\e909\"}.icn-arrow-down[_ngcontent-%COMP%]:before{content:\"\\e90a\"}.icn-arrow-up[_ngcontent-%COMP%]:before{content:\"\\e91d\"}.icn-arrow-left[_ngcontent-%COMP%]:before{content:\"\\e91e\"}.icn-arrow-right[_ngcontent-%COMP%]:before{content:\"\\e91f\"}.icn-bell[_ngcontent-%COMP%]:before{content:\"\\e90b\"}.icn-bookmark-o[_ngcontent-%COMP%]:before{content:\"\\e90c\"}.icn-calendar[_ngcontent-%COMP%]:before{content:\"\\e90d\"}.icn-check[_ngcontent-%COMP%]:before{content:\"\\e90e\"}.icn-community[_ngcontent-%COMP%]:before{content:\"\\e90f\"}.icn-d-arrow-up[_ngcontent-%COMP%]:before{content:\"\\e910\"}.icn-discussion[_ngcontent-%COMP%]:before{content:\"\\e911\"}.icn-edit[_ngcontent-%COMP%]:before{content:\"\\e912\"}.icn-facebook[_ngcontent-%COMP%]:before{content:\"\\e913\"}.icn-filters[_ngcontent-%COMP%]:before{content:\"\\e914\"}.icn-friends[_ngcontent-%COMP%]:before{content:\"\\e915\"}.icn-google[_ngcontent-%COMP%]:before{content:\"\\e916\"}.icn-heart[_ngcontent-%COMP%]:before{content:\"\\e917\"}.icn-home[_ngcontent-%COMP%]:before{content:\"\\e918\"}.icn-img[_ngcontent-%COMP%]:before{content:\"\\e919\"}.icn-inspire[_ngcontent-%COMP%]:before{content:\"\\e91a\"}.icn-journal[_ngcontent-%COMP%]:before{content:\"\\e91b\"}.icn-like[_ngcontent-%COMP%]:before{content:\"\\e91c\"}.widget-pack[_ngcontent-%COMP%]{background:#fff;border-radius:.5rem;padding:.9375rem}.wp-body[_ngcontent-%COMP%], .wp-foot[_ngcontent-%COMP%]{margin-top:.9375rem}.wp-title[_ngcontent-%COMP%]{font-size:1rem;font-weight:700;color:#061a73;margin:0;font-family:Lato,sans-serif}.wp-link[_ngcontent-%COMP%]{color:#6e6f70;font-size:.875rem;cursor:pointer}.wp-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.pill-block[_ngcontent-%COMP%]{font-size:.875rem;color:#000;padding:.5rem 1.25rem;border-radius:3.125rem;background:#f8f9fb;display:inline-block}.users-block-list.widget-pack[_ngcontent-%COMP%]{background:#fff;border-radius:.5rem;padding:.9375rem}@media (max-width:1299px){.users-block-list[_ngcontent-%COMP%]:not(.widget-pack)   .ubl-content[_ngcontent-%COMP%]{margin-left:34px}}.ubl-title[_ngcontent-%COMP%]{color:#061a73;font-family:Lato,sans-serif;font-weight:600;font-size:16px;margin:0 0 12px;display:flex;align-items:center}.ubl-icon[_ngcontent-%COMP%]{font-size:16px;margin-right:18px}@media (min-width:1300px){.ubl-icon[_ngcontent-%COMP%]{display:none}}.ubl-avatar[_ngcontent-%COMP%]{display:flex;align-items:center}.ubl-avatar[_ngcontent-%COMP%]:not(:last-child){margin-bottom:12px}.ubl-avatar[_ngcontent-%COMP%]   .ubl-a-fig[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50%;margin:0 .75rem 0 0;flex:0 0 auto;position:relative;overflow:hidden;border:1px solid #e2e5e4;background:#e2e5e4}.ubl-avatar[_ngcontent-%COMP%]   .ubl-a-fig[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;image-rendering:auto}.ubl-avatar[_ngcontent-%COMP%]   .ubl-a-meta[_ngcontent-%COMP%]{flex:1 1 auto;font-size:.875rem}.ubl-avatar[_ngcontent-%COMP%]   .ubl-a-label[_ngcontent-%COMP%]{color:#000;line-height:1.3}.ubl-avatar[_ngcontent-%COMP%]   .ubl-a-label[_ngcontent-%COMP%]:hover{text-decoration:underline}"] });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UsersComponent, [{
        type: Component,
        args: [{
                selector: 'ins-users',
                templateUrl: './users.component.html',
                styleUrls: ['./users.component.scss']
            }]
    }], function () { return []; }, { envUrl: [{
            type: Input
        }], enableAccordion: [{
            type: Input
        }], expandedContent: [{
            type: Input
        }], heading: [{
            type: Input
        }], users: [{
            type: Input
        }], isWidget: [{
            type: Input
        }], toggleExpandedContent: [{
            type: Output
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlcnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vaW5zcGlyZS1saWJyYXJ5LyIsInNvdXJjZXMiOlsibGliL3VzZXJzL3VzZXJzLmNvbXBvbmVudC50cyIsImxpYi91c2Vycy91c2Vycy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQVUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7O0lDQ25CLG9CQUNvQjs7O0lBQXBFLG1GQUErRDs7O0lBR25FLDhCQUNJO0lBQUEsaUNBQ0k7S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