import { Component, EventEmitter, Input, Output } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
function AboutCommunityComponent_section_0_a_8_Template(rf, ctx) { if (rf & 1) {
    const _r3 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "a", 8);
    i0.ɵɵlistener("click", function AboutCommunityComponent_section_0_a_8_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(2); return ctx_r2.onLearnMore($event); });
    i0.ɵɵtext(1, " Learn more ");
    i0.ɵɵelement(2, "i", 9);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate1("href", "/groups/", ctx_r1.community == null ? null : ctx_r1.community.name_id, "/about/", i0.ɵɵsanitizeUrl);
} }
function AboutCommunityComponent_section_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "section", 1);
    i0.ɵɵelementStart(1, "div", 2);
    i0.ɵɵelementStart(2, "h1", 3);
    i0.ɵɵtext(3, "About this Community");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 4);
    i0.ɵɵelementStart(5, "p", 5);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "div", 6);
    i0.ɵɵtemplate(8, AboutCommunityComponent_section_0_a_8_Template, 3, 1, "a", 7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(6);
    i0.ɵɵtextInterpolate(ctx_r0.communityAboutText);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r0.community == null ? null : ctx_r0.community.name_id);
} }
export class AboutCommunityComponent {
    constructor() {
        this.learnMore = new EventEmitter();
        this.communityAboutText = '';
    }
    ngOnInit() {
        var _a, _b, _c, _d;
        this.communityAboutText = ((_d = (_c = (_b = (_a = this.community) === null || _a === void 0 ? void 0 : _a.cs_data) === null || _b === void 0 ? void 0 : _b.extras) === null || _c === void 0 ? void 0 : _c.sections[0]) === null || _d === void 0 ? void 0 : _d.prose) || '';
    }
    onLearnMore(event) {
        event.preventDefault();
        this.learnMore.emit();
    }
}
AboutCommunityComponent.ɵfac = function AboutCommunityComponent_Factory(t) { return new (t || AboutCommunityComponent)(); };
AboutCommunityComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AboutCommunityComponent, selectors: [["ins-about-community"]], inputs: { community: "community" }, outputs: { learnMore: "learnMore" }, decls: 1, vars: 1, consts: [["class", "widget-pack community-about-widget", 4, "ngIf"], [1, "widget-pack", "community-about-widget"], [1, "wp-head"], [1, "wp-title"], [1, "wp-body"], ["id", "community-about-text", 1, "caw-desc"], [1, "wp-foot"], ["class", "wp-link", "id", "learn-more-link", 3, "href", "click", 4, "ngIf"], ["id", "learn-more-link", 1, "wp-link", 3, "href", "click"], [1, "icn-arrow-right"]], template: function AboutCommunityComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵtemplate(0, AboutCommunityComponent_section_0_Template, 9, 2, "section", 0);
    } if (rf & 2) {
        i0.ɵɵproperty("ngIf", ctx.communityAboutText);
    } }, directives: [i1.NgIf], styles: ["a[_ngcontent-%COMP%]{text-decoration:none}*[_ngcontent-%COMP%]{font-family:Lato,sans-serif;outline:0}.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}.caw-desc[_ngcontent-%COMP%]{font-size:.875rem;color:#000;margin:0}.wp-link[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:10px}"] });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AboutCommunityComponent, [{
        type: Component,
        args: [{
                selector: 'ins-about-community',
                templateUrl: './about-community.component.html',
                styleUrls: ['./about-community.component.scss']
            }]
    }], function () { return []; }, { learnMore: [{
            type: Output
        }], community: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJvdXQtY29tbXVuaXR5LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2luc3BpcmUtbGlicmFyeS8iLCJzb3VyY2VzIjpbImxpYi9hYm91dC1jb21tdW5pdHkvYWJvdXQtY29tbXVuaXR5LmNvbXBvbmVudC50cyIsImxpYi9hYm91dC1jb21tdW5pdHkvYWJvdXQtY29tbXVuaXR5LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7O0lDUTNFLDRCQUNFO0lBRGlFLDRNQUE2QjtJQUM5Riw0QkFDQTtJQUFBLHVCQUErQjtJQUNqQyxpQkFBSTs7O0lBSDZGLHNJQUE4Qzs7O0lBUm5KLGtDQUNFO0lBQUEsOEJBQ0U7SUFBQSw2QkFBcUI7SUFBQSxvQ0FBb0I7SUFBQSxpQkFBSztJQUNoRCxpQkFBTTtJQUNOLDhCQUNFO0lBQUEsNEJBQThDO0lBQUEsWUFBd0I7SUFBQSxpQkFBSTtJQUM1RSxpQkFBTTtJQUNOLDhCQUNFO0lBQUEsOEVBQ0U7SUFHSixpQkFBTTtJQUNSLGlCQUFVOzs7SUFSd0MsZUFBd0I7SUFBeEIsK0NBQXdCO0lBRzlCLGVBQTBCO0lBQTFCLGlGQUEwQjs7QURBdEUsTUFBTSxPQUFPLHVCQUF1Qj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