import { Component, Input, Output, EventEmitter } from '@angular/core';
import { modifySlugString } from '../inspire-library.helper';
import { FriendLinkState } from '../inspire-library.enum';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "../ellipsis-menu/ellipsis-menu.component";
import * as i3 from "../more-options/more-options.component";
function PostComponent_img_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "img", 20);
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate2("src", "", ctx_r0.envUrl, "", ctx_r0.postAvatar, "", i0.ɵɵsanitizeUrl);
} }
function PostComponent_a_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "a", 21);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate2("href", "", ctx_r1.envUrl, "/m/", ctx_r1.postAuthorName, "", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r1.postAuthorName, " ");
} }
function PostComponent_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 22);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "date");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.postDate, "medium"));
} }
function PostComponent_a_10_Template(rf, ctx) { if (rf & 1) {
    const _r14 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "a", 23);
    i0.ɵɵlistener("click", function PostComponent_a_10_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.followPostClick(); });
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵclassProp("active", ctx_r3.isFollowed);
} }
function PostComponent_ng_container_12_ng_container_1_Template(rf, ctx) { if (rf & 1) {
    const _r17 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "a", 26);
    i0.ɵɵlistener("click", function PostComponent_ng_container_12_ng_container_1_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r17); const ctx_r16 = i0.ɵɵnextContext(2); return !(ctx_r16.friendlink && ((ctx_r16.friendlink == null ? null : ctx_r16.friendlink.f_state) === (ctx_r16.friendLinkState == null ? null : ctx_r16.friendLinkState.friends) || (ctx_r16.friendlink == null ? null : ctx_r16.friendlink.f_state) === (ctx_r16.friendLinkState == null ? null : ctx_r16.friendLinkState.pending))) ? ctx_r16.onAddFriend() : ""; });
    i0.ɵɵelement(2, "i", 27);
    i0.ɵɵtext(3, " Add as Friend ");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "a", 28);
    i0.ɵɵelement(5, "i", 29);
    i0.ɵɵtext(6, " Send Message ");
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r15 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵclassProp("disabled", ctx_r15.friendlink && ((ctx_r15.friendlink == null ? null : ctx_r15.friendlink.f_state) === (ctx_r15.friendLinkState == null ? null : ctx_r15.friendLinkState.friends) || (ctx_r15.friendlink == null ? null : ctx_r15.friendlink.f_state) === (ctx_r15.friendLinkState == null ? null : ctx_r15.friendLinkState.pending)));
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate2("href", "", ctx_r15.envUrl, "/messages.pl?op=compose_to&recipient_nickname=", ctx_r15.postAuthorName, "", i0.ɵɵsanitizeUrl);
} }
function PostComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) {
    const _r19 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtemplate(1, PostComponent_ng_container_12_ng_container_1_Template, 7, 4, "ng-container", 11);
    i0.ɵɵelementStart(2, "a", 24);
    i0.ɵɵlistener("click", function PostComponent_ng_container_12_Template_a_click_2_listener() { i0.ɵɵrestoreView(_r19); const ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.onHidePost(); });
    i0.ɵɵelement(3, "i", 25);
    i0.ɵɵtext(4, " Hide");
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r4.isMe);
} }
function PostComponent_ng_container_13_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "a", 30);
    i0.ɵɵelement(2, "i", 31);
    i0.ɵɵtext(3, " Join");
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r5 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate1("href", "", ctx_r5.envUrl, "/join", i0.ɵɵsanitizeUrl);
} }
function PostComponent_a_14_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "a", 32);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate3("href", "", ctx_r6.envUrl, "/groups/", ctx_r6.groups[0] == null ? null : ctx_r6.groups[0].name_id, "/topic/", ctx_r6.topicNameID, "", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r6.postTopic, " ");
} }
function PostComponent_h1_15_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "h1", 33);
    i0.ɵɵelementStart(1, "a", 4);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r7 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate2("href", "", ctx_r7.envUrl, "", ctx_r7.postUri, "", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r7.postTitle, " ");
} }
function PostComponent_figure_16_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 37);
    i0.ɵɵtext(1, "Sensitive Content ");
    i0.ɵɵelementStart(2, "small");
    i0.ɵɵtext(3, "Click to view");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} }
function PostComponent_figure_16_Template(rf, ctx) { if (rf & 1) {
    const _r22 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "figure", 34);
    i0.ɵɵlistener("click", function PostComponent_figure_16_Template_figure_click_0_listener() { i0.ɵɵrestoreView(_r22); const ctx_r21 = i0.ɵɵnextContext(); return ctx_r21.onClickToggleSensitive(); });
    i0.ɵɵelement(1, "img", 35);
    i0.ɵɵtemplate(2, PostComponent_figure_16_div_2_Template, 4, 0, "div", 36);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r8 = i0.ɵɵnextContext();
    i0.ɵɵclassProp("pb-sensitive", ctx_r8.isSensitive);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("src", ctx_r8.imageURL, i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r8.isSensitive);
} }
function PostComponent_p_17_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1, "... ");
    i0.ɵɵelementStart(2, "a", 4);
    i0.ɵɵtext(3, "Read More");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r23 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate2("href", "", ctx_r23.envUrl, "", ctx_r23.postUri, "", i0.ɵɵsanitizeUrl);
} }
function PostComponent_p_17_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "p", 38);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "slice");
    i0.ɵɵtemplate(3, PostComponent_p_17_span_3_Template, 4, 2, "span", 11);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r9 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind3(2, 2, ctx_r9.postSnippet, 0, 200), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r9.postSnippet.length > 200);
} }
function PostComponent_div_18_a_1_img_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "img", 44);
} if (rf & 2) {
    const ctx_r26 = i0.ɵɵnextContext(3);
    i0.ɵɵproperty("src", ctx_r26.baseUrl + "/groups/" + (ctx_r26.groups[0] == null ? null : ctx_r26.groups[0].name_id) + "/logo.png", i0.ɵɵsanitizeUrl);
} }
function PostComponent_div_18_a_1_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r27 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r27.groups[0] == null ? null : ctx_r27.groups[0].name);
} }
function PostComponent_div_18_a_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "a", 42);
    i0.ɵɵtemplate(1, PostComponent_div_18_a_1_img_1_Template, 1, 1, "img", 43);
    i0.ɵɵtemplate(2, PostComponent_div_18_a_1_span_2_Template, 2, 1, "span", 11);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r24 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate2("href", "", ctx_r24.envUrl, "/groups/", ctx_r24.groups[0] == null ? null : ctx_r24.groups[0].name_id, "", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r24.groups[0] == null ? null : ctx_r24.groups[0].name_id);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r24.groups[0] == null ? null : ctx_r24.groups[0].name);
} }
function PostComponent_div_18_ins_more_options_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "ins-more-options", 45);
} if (rf & 2) {
    const ctx_r25 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("options", ctx_r25.groups);
} }
function PostComponent_div_18_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 39);
    i0.ɵɵtemplate(1, PostComponent_div_18_a_1_Template, 3, 4, "a", 40);
    i0.ɵɵtemplate(2, PostComponent_div_18_ins_more_options_2_Template, 1, 1, "ins-more-options", 41);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r10 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r10.baseUrl && (ctx_r10.groups[0] == null ? null : ctx_r10.groups[0].name_id));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r10.groups == null ? null : ctx_r10.groups.length) > 1);
} }
function PostComponent_span_21_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r11 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1("", ctx_r11.postReplyCount, " Replies");
} }
function PostComponent_span_22_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 46);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "date");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r12 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1("Last reply ", i0.ɵɵpipeBind2(2, 1, ctx_r12.commentReplyTime, "medium"), "");
} }
const _c0 = [[["ins-add-reactions"]]];
const _c1 = ["ins-add-reactions"];
export class PostComponent {
    constructor() {
        this.followPost = new EventEmitter();
        this.topicNameID = '';
        this.showMenu = false;
        this.isLoggedIn = false;
        this.groups = [];
        this.friendlink = null;
        this.isMe = false;
        this.imageURL = '';
        this.isSensitive = false;
        this.isSensitiveOnLoad = false;
        this.hidePost = new EventEmitter();
        this.addFriend = new EventEmitter();
        this.toggleMoreCommunityList = false;
        this.friendLinkState = FriendLinkState;
    }
    ngOnInit() {
        this.setTopicNameId();
        if (this.postSnippet && this.postSnippetStrippedHTML) {
            this.postSnippet = this.postSnippet.replace(/<[^>]*>/g, '');
        }
        this.isSensitiveOnLoad = this.isSensitive;
    }
    setTopicNameId() {
        this.topicNameID = this.topicNameID || modifySlugString(this.postTopic);
    }
    followPostClick() {
        this.followPost.emit();
    }
    onHidePost() {
        this.hidePost.emit();
    }
    onToggleMoreCommunityList() {
        this.toggleMoreCommunityList = !this.toggleMoreCommunityList;
    }
    onCloseMoreCommunityList() {
        this.toggleMoreCommunityList = false;
    }
    onAddFriend() {
        this.addFriend.emit();
    }
    onClickToggleSensitive() {
        if (this.isSensitiveOnLoad) {
            this.isSensitive = !this.isSensitive;
        }
    }
}
PostComponent.ɵfac = function PostComponent_Factory(t) { return new (t || PostComponent)(); };
PostComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PostComponent, selectors: [["ins-post"]], inputs: { envUrl: "envUrl", postUri: "postUri", postTitle: "postTitle", postAvatar: "postAvatar", postAuthorName: "postAuthorName", postDate: "postDate", postReplyCount: "postReplyCount", postSnippet: "postSnippet", postSnippetStrippedHTML: "postSnippetStrippedHTML", postTopic: "postTopic", groupID: "groupID", topicNameID: "topicNameID", isFollowed: "isFollowed", showMenu: "showMenu", commentReplyTime: "commentReplyTime", postAuthorJoinDate: "postAuthorJoinDate", isLoggedIn: "isLoggedIn", groups: "groups", baseUrl: "baseUrl", friendlink: "friendlink", isMe: "isMe", imageURL: "imageURL", isSensitive: "isSensitive" }, outputs: { followPost: "followPost", hidePost: "hidePost", addFriend: "addFriend" }, ngContentSelectors: _c1, decls: 24, vars: 15, consts: [[1, "post-block"], [1, "pb-head"], [1, "pb-profile"], [1, "pb-avatar"], [3, "href"], ["class", "post__avatar", "alt", "avatar", 3, "src", 4, "ngIf"], [1, "pb-meta"], ["class", "pb-username", 3, "href", 4, "ngIf"], ["class", "pb-stamp", 4, "ngIf"], [1, "pb-ortho"], ["id", "follow-icon", "class", "pb-notify icn-bell", 3, "active", "click", 4, "ngIf"], [4, "ngIf"], ["class", "pb-stamp pb-topic", 3, "href", 4, "ngIf"], ["class", "pb-title", 4, "ngIf"], ["class", "pb-image", "id", "post-image", 3, "pb-sensitive", "click", 4, "ngIf"], ["class", "pb-desc", 4, "ngIf"], ["class", "pb-condition", 4, "ngIf"], [1, "pb-foot"], [1, "pb-reply"], ["style", "margin-left: 5px;", 4, "ngIf"], ["alt", "avatar", 1, "post__avatar", 3, "src"], [1, "pb-username", 3, "href"], [1, "pb-stamp"], ["id", "follow-icon", 1, "pb-notify", "icn-bell", 3, "click"], [1, "em-link", 3, "click"], [1, "em-icon", "icn-hide"], ["id", "add-friend-link", 1, "em-link", 3, "click"], [1, "icn-friends", "em-icon"], ["id", "send-message-link", 1, "em-link", 3, "href"], [1, "icn-msgs", "em-icon"], ["id", "join-link", 1, "em-link", 3, "href"], [1, "em-icon", "icn-inspire"], [1, "pb-stamp", "pb-topic", 3, "href"], [1, "pb-title"], ["id", "post-image", 1, "pb-image", 3, "click"], ["alt", "post image", 3, "src"], ["class", "pb-i-overlay", 4, "ngIf"], [1, "pb-i-overlay"], [1, "pb-desc"], [1, "pb-condition"], ["class", "pb-community", 3, "href", 4, "ngIf"], ["label", "name", "singularHeading", "community", "pluralHeading", "communities", 3, "options", 4, "ngIf"], [1, "pb-community", 3, "href"], [3, "src", 4, "ngIf"], [3, "src"], ["label", "name", "singularHeading", "community", "pluralHeading", "communities", 3, "options"], [2, "margin-left", "5px"]], template: function PostComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵprojectionDef(_c0);
        i0.ɵɵelementStart(0, "section", 0);
        i0.ɵɵelementStart(1, "div", 1);
        i0.ɵɵelementStart(2, "div", 2);
        i0.ɵɵelementStart(3, "figure", 3);
        i0.ɵɵelementStart(4, "a", 4);
        i0.ɵɵtemplate(5, PostComponent_img_5_Template, 1, 2, "img", 5);
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
        i0.ɵɵelementStart(6, "div", 6);
        i0.ɵɵtemplate(7, PostComponent_a_7_Template, 2, 3, "a", 7);
        i0.ɵɵtemplate(8, PostComponent_div_8_Template, 3, 4, "div", 8);
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
        i0.ɵɵelementStart(9, "div", 9);
        i0.ɵɵtemplate(10, PostComponent_a_10_Template, 1, 2, "a", 10);
        i0.ɵɵelementStart(11, "ins-ellipsis-menu");
        i0.ɵɵtemplate(12, PostComponent_ng_container_12_Template, 5, 1, "ng-container", 11);
        i0.ɵɵtemplate(13, PostComponent_ng_container_13_Template, 4, 1, "ng-container", 11);
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
        i0.ɵɵtemplate(14, PostComponent_a_14_Template, 2, 4, "a", 12);
        i0.ɵɵtemplate(15, PostComponent_h1_15_Template, 3, 3, "h1", 13);
        i0.ɵɵtemplate(16, PostComponent_figure_16_Template, 3, 4, "figure", 14);
        i0.ɵɵtemplate(17, PostComponent_p_17_Template, 4, 6, "p", 15);
        i0.ɵɵtemplate(18, PostComponent_div_18_Template, 3, 2, "div", 16);
        i0.ɵɵelementStart(19, "div", 17);
        i0.ɵɵelementStart(20, "a", 18);
        i0.ɵɵtemplate(21, PostComponent_span_21_Template, 2, 1, "span", 11);
        i0.ɵɵtemplate(22, PostComponent_span_22_Template, 3, 4, "span", 19);
        i0.ɵɵelementEnd();
        i0.ɵɵprojection(23);
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵadvance(4);
        i0.ɵɵpropertyInterpolate2("href", "", ctx.envUrl, "/m/", ctx.postAuthorName, "", i0.ɵɵsanitizeUrl);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.postAvatar);
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("ngIf", ctx.postAuthorName);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.postDate);
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("ngIf", ctx.isLoggedIn);
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("ngIf", ctx.isLoggedIn);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", !ctx.isLoggedIn);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.postTopic && (ctx.groups == null ? null : ctx.groups.length));
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.postTitle);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.imageURL);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.postSnippet);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.groups == null ? null : ctx.groups.length);
        i0.ɵɵadvance(3);
        i0.ɵɵproperty("ngIf", ctx.postReplyCount);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.commentReplyTime);
    } }, directives: [i1.NgIf, i2.EllipsisMenuComponent, i3.MoreOptionsComponent], pipes: [i1.DatePipe, i1.SlicePipe], 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%], .pb-reply[_ngcontent-%COMP%]:before, [class*=\" icn-\"][_ngcontent-%COMP%], [class^=icn-][_ngcontent-%COMP%]{font-family:ins-icons!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icn-minus-o[_ngcontent-%COMP%]:before{content:\"\\e93a\"}.icn-disclaimer[_ngcontent-%COMP%]:before{content:\"\\e934\"}.icn-leave-community[_ngcontent-%COMP%]:before{content:\"\\e935\"}.icn-stethoscope[_ngcontent-%COMP%]:before{content:\"\\e936\"}.icn-join-community[_ngcontent-%COMP%]:before{content:\"\\e937\"}.icn-resources[_ngcontent-%COMP%]:before{content:\"\\e938\"}.icn-help[_ngcontent-%COMP%]:before{content:\"\\e939\"}.icn-checked[_ngcontent-%COMP%]:before{content:\"\\e933\"}.icn-plus[_ngcontent-%COMP%]:before{content:\"\\e932\"}.icn-expand[_ngcontent-%COMP%]:before{content:\"\\e931\"}.icn-Invite[_ngcontent-%COMP%]:before{content:\"\\e930\"}.icn-report[_ngcontent-%COMP%]:before{content:\"\\e92f\"}.icn-unfollow[_ngcontent-%COMP%]:before{content:\"\\e92e\"}.icn-block[_ngcontent-%COMP%]:before{content:\"\\e92d\"}.icn-trash[_ngcontent-%COMP%]:before{content:\"\\e92b\"}.icn-follow[_ngcontent-%COMP%]:before{content:\"\\e92c\"}.icn-lock[_ngcontent-%COMP%]:before{content:\"\\e92a\"}.icn-bolt-left[_ngcontent-%COMP%]:before{content:\"\\e925\"}.icn-bolt-right[_ngcontent-%COMP%]:before{content:\"\\e926\"}.icn-bolt-down[_ngcontent-%COMP%]:before{content:\"\\e927\"}.icn-bolt-up[_ngcontent-%COMP%]:before{content:\"\\e928\"}.icn-img-o[_ngcontent-%COMP%]:before{content:\"\\e929\"}.icn-tick[_ngcontent-%COMP%]:before{content:\"\\e924\"}.icn-tick-o[_ngcontent-%COMP%]:before{content:\"\\e923\"}.icn-cross-o[_ngcontent-%COMP%]:before{content:\"\\e922\"}.icn-plus-o[_ngcontent-%COMP%]:before{content:\"\\e921\"}.icn-hide[_ngcontent-%COMP%]:before{content:\"\\e920\"}.icn-menu[_ngcontent-%COMP%]:before{content:\"\\e900\"}.icn-more[_ngcontent-%COMP%]:before{content:\"\\e901\"}.icn-msgs[_ngcontent-%COMP%]:before{content:\"\\e902\"}.icn-pin[_ngcontent-%COMP%]:before{content:\"\\e903\"}.icn-reply[_ngcontent-%COMP%]:before, .pb-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;padding:.5rem 1.25rem;border-radius:3.125rem;background:#f8f9fb;display:inline-block}@media (max-width:575px){[_nghost-%COMP%]     .more-options-popover{position:static!important}}@media (min-width:576px){[_nghost-%COMP%]     .mop-menu{left:0;right:auto;margin-left:-20px}}.post-block[_ngcontent-%COMP%]{padding:1.875rem .625rem;border-top:1px solid #e2e5e4}@media (max-width:767px){.post-block[_ngcontent-%COMP%]{padding-left:0;padding-right:0;border-top:none;border-bottom:1px solid #e2e5e4}}.pb-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.875rem}.pb-profile[_ngcontent-%COMP%]{display:flex;align-items:center}.pb-avatar[_ngcontent-%COMP%]{margin:0 .9375rem 0 0;width:2.125rem;height:2.125rem;border-radius:50%;border:1px solid #e2e5e4}.pb-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:100%;display:block}.pb-meta[_ngcontent-%COMP%]{flex:1 1 auto}.pb-username[_ngcontent-%COMP%]{color:#000;font-size:.875rem}.pb-stamp[_ngcontent-%COMP%]{font-size:.875rem;color:#6e6f70}.pb-topic[_ngcontent-%COMP%]:hover{text-decoration:underline}.pb-ortho[_ngcontent-%COMP%]{display:flex;align-items:center}@media (max-width:767px){.pb-stamp[_ngcontent-%COMP%]{font-size:.75rem}.pb-ortho[_ngcontent-%COMP%]{flex-wrap:wrap;justify-content:flex-end}.pb-ortho[_ngcontent-%COMP%]   .pb-stamp[_ngcontent-%COMP%]{order:1}}.pb-bookmark[_ngcontent-%COMP%]{font-size:.875rem;margin-left:.625rem;color:#6e6f70;cursor:pointer}.pb-bookmark.active[_ngcontent-%COMP%]{color:#009dfc}.pb-notify[_ngcontent-%COMP%]{font-size:.875rem;margin-left:.625rem;color:#6e6f70;cursor:pointer}.pb-notify.active[_ngcontent-%COMP%]{color:#009dfc}.pb-more[_ngcontent-%COMP%]{position:relative}.pb-more[_ngcontent-%COMP%]   .pb-m-btn[_ngcontent-%COMP%]{font-size:1.125rem;margin-left:.625rem;color:#6e6f70;cursor:pointer}.pb-more[_ngcontent-%COMP%]   .pb-m-menu[_ngcontent-%COMP%]{position:absolute;z-index:1;background:#fff;right:0;top:100%;border:1px solid #e2e5e4;border-radius:.5rem;min-width:10rem;padding:.3125rem 0;margin-top:.625rem;box-shadow:0 .125rem .3125rem 0 rgba(208,208,208,.5)}.pb-more[_ngcontent-%COMP%]   .pb-m-link[_ngcontent-%COMP%]{display:flex;align-items:center;color:#000;font-size:.75rem;padding:.1875rem .9375rem;cursor:pointer}.pb-more[_ngcontent-%COMP%]   .pb-m-link[_ngcontent-%COMP%]:not(.disabled):hover{background:#eff1f1}.pb-more[_ngcontent-%COMP%]   .pb-m-link.disabled[_ngcontent-%COMP%]{color:#c6cbc9;cursor:default}.pb-more[_ngcontent-%COMP%]   .pb-m-link.disabled[_ngcontent-%COMP%]   .pb-m-icon[_ngcontent-%COMP%]{color:#c6cbc9}.pb-more[_ngcontent-%COMP%]   .pb-m-icon[_ngcontent-%COMP%]{margin-right:.625rem;color:#061a73;font-size:1.25rem;width:1.375rem;height:1.375rem;display:block}.pb-more[_ngcontent-%COMP%]   .icon-msgs[_ngcontent-%COMP%]{font-size:1.375rem}.pb-title[_ngcontent-%COMP%]{margin:0;font-weight:500;font-family:Palanquin,sans-serif;color:#000;font-size:1.4375rem}.pb-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#000}.pb-desc[_ngcontent-%COMP%]{color:#000;font-size:.875rem}.pb-desc[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:700;color:#000}.pb-desc[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.pb-condition[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:1.25rem;position:relative}.pb-community[_ngcontent-%COMP%]{color:#6e6f70;display:flex;align-items:center}.pb-community[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:1.625rem;height:1.625rem;border-radius:50%;margin-right:.5rem;display:block;image-rendering:auto}.pill-block[_ngcontent-%COMP%]{margin-left:.9375rem;color:#000}.pill-block[_ngcontent-%COMP%]:hover{background:#eff1f1}.pb-foot[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:1.25rem}@media (max-width:767px){.pb-foot[_ngcontent-%COMP%]{display:block}.pb-reply[_ngcontent-%COMP%]{margin-bottom:.625rem}}.pb-reply[_ngcontent-%COMP%]{font-size:.75rem;color:#000;display:flex;align-items:center;font-weight:700;margin-right:2.125rem}.pb-reply[_ngcontent-%COMP%]:before{font-size:.875rem;margin-right:.3125rem;color:#005cc9}.pb-community-more[_ngcontent-%COMP%]{margin-left:.625rem;position:relative}.pb-c-more-btn[_ngcontent-%COMP%]{font-size:.875rem;color:#c6cbc9;cursor:pointer}.pb-c-more-btn[_ngcontent-%COMP%]:hover{text-decoration:underline}.pb-c-more-menu[_ngcontent-%COMP%]{position:absolute;bottom:100%;margin-top:.625rem;background:#fff;border:1px solid #e2e5e4;padding:1.25rem;border-radius:.3125rem;width:18.75rem;box-shadow:0 .125rem .3125rem 0 rgba(208,208,208,.5);flex-direction:column;align-items:flex-start;display:flex;z-index:11}@media (max-width:767px){.pb-c-more-menu[_ngcontent-%COMP%]{margin-left:-6.25rem}}.pb-c-more-menu[_ngcontent-%COMP%]   .pill-block[_ngcontent-%COMP%]{font-size:.75rem;margin:0}.pb-c-more-menu[_ngcontent-%COMP%]   .pill-block[_ngcontent-%COMP%]:not(:last-child){margin-bottom:.625rem}.pb-c-more-title[_ngcontent-%COMP%]{color:#005cc9;font-size:.875rem;font-weight:700;margin-bottom:.9375rem}.pb-c-more-close[_ngcontent-%COMP%]{font-size:1.25rem;color:#c6cbc9;position:absolute;right:0;top:0;line-height:.6;padding:.4375rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pb-c-more-close[_ngcontent-%COMP%]:hover{color:#6e6f70}.grey[_ngcontent-%COMP%]{background:gray;color:#fff}.pb-image[_ngcontent-%COMP%]{margin:1.25rem 0 0;position:relative;border-radius:.625rem;overflow:hidden;height:12.5rem}@media (max-width:767px){.pb-image[_ngcontent-%COMP%]{height:9.375rem}}.pb-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;position:relative;z-index:0}.pb-image.pb-sensitive[_ngcontent-%COMP%]{cursor:pointer}.pb-image.pb-sensitive[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{-webkit-filter:blur(1.125rem);filter:blur(1.125rem)}.pb-i-overlay[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1;background:rgba(0,0,0,.5);padding:.3125rem .625rem;border-radius:.3125rem;font-weight:700;font-size:1.125rem;text-align:center;color:#fff}.pb-i-overlay[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-size:.875rem;display:block}"] });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PostComponent, [{
        type: Component,
        args: [{
                selector: 'ins-post',
                templateUrl: './post.component.html',
                styleUrls: ['./post.component.scss']
            }]
    }], function () { return []; }, { followPost: [{
            type: Output
        }], envUrl: [{
            type: Input
        }], postUri: [{
            type: Input
        }], postTitle: [{
            type: Input
        }], postAvatar: [{
            type: Input
        }], postAuthorName: [{
            type: Input
        }], postDate: [{
            type: Input
        }], postReplyCount: [{
            type: Input
        }], postSnippet: [{
            type: Input
        }], postSnippetStrippedHTML: [{
            type: Input
        }], postTopic: [{
            type: Input
        }], groupID: [{
            type: Input
        }], topicNameID: [{
            type: Input
        }], isFollowed: [{
            type: Input
        }], showMenu: [{
            type: Input
        }], commentReplyTime: [{
            type: Input
        }], postAuthorJoinDate: [{
            type: Input
        }], isLoggedIn: [{
            type: Input
        }], groups: [{
            type: Input
        }], baseUrl: [{
            type: Input
        }], friendlink: [{
            type: Input
        }], isMe: [{
            type: Input
        }], imageURL: [{
            type: Input
        }], isSensitive: [{
            type: Input
        }], hidePost: [{
            type: Output
        }], addFriend: [{
            type: Output
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 