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) {
    var _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); var 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) {
    var 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) {
    var 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);
} }
var AboutCommunityComponent = /** @class */ (function () {
    function AboutCommunityComponent() {
        this.learnMore = new EventEmitter();
        this.communityAboutText = '';
    }
    AboutCommunityComponent.prototype.ngOnInit = function () {
        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) || '';
    };
    AboutCommunityComponent.prototype.onLearnMore = function (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}"] });
    return AboutCommunityComponent;
}());
export { AboutCommunityComponent };
/*@__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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJvdXQtY29tbXVuaXR5LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2luc3BpcmUtbGlicmFyeS8iLCJzb3VyY2VzIjpbImxpYi9hYm91dC1jb21tdW5pdHkvYWJvdXQtY29tbXVuaXR5LmNvbXBvbmVudC50cyIsImxpYi9hYm91dC1jb21tdW5pdHkvYWJvdXQtY29tbXVuaXR5LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7O0lDUTNFLDRCQUNFO0lBRGlFLDBNQUE2QjtJQUM5Riw0QkFDQTtJQUFBLHVCQUErQjtJQUNqQyxpQkFBSTs7O0lBSDZGLHNJQUE4Qzs7O0lBUm5KLGtDQUNFO0lBQUEsOEJBQ0U7SUFBQSw2QkFBcUI7SUFBQSxvQ0FBb0I7SUFBQSxpQkFBSztJQUNoRCxpQkFBTTtJQUNOLDhCQUNFO0lBQUEsNEJBQThDO0lBQUEsWUFBd0I7SUFBQSxpQkFBSTtJQUM1RSxpQkFBTTtJQUNOLDhCQUNFO0lBQUEsOEVBQ0U7SUFHSixpQkFBTTtJQUNSLGlCQUFVOzs7SUFSd0MsZUFBd0I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