import { Component, Input, HostBinding, ChangeDetectionStrategy } from '@angular/core';
import { ECLBaseDirective } from '../ecl-base.directive';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
export class EclBlockquoteComponent extends ECLBaseDirective {
    get cssClasses() {
        return [
            super.getCssClasses('ecl-blockquote')
        ].join(' ').trim();
    }
    get hasAuthor() {
        return this.author !== null;
    }
}
/** @nocollapse */ /** @nocollapse */ EclBlockquoteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EclBlockquoteComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ /** @nocollapse */ EclBlockquoteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: EclBlockquoteComponent, selector: "[eclBlockquote]", inputs: { author: "author" }, host: { properties: { "class": "this.cssClasses" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ecl-blockquote__body\">\n    <blockquote class=\"ecl-blockquote__quote\">\n        <p class=\"ecl-blockquote__citation\">\n            <ng-content></ng-content>\n        </p>\n    </blockquote>\n    <footer *ngIf=\"hasAuthor\" class=\"ecl-blockquote__attribution\"><cite class=\"ecl-blockquote__author\">{{ author }}</cite></footer>\n</div>\n<ng-content select=\"[eclBlockquoteImage]\"></ng-content>\n", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EclBlockquoteComponent, decorators: [{
            type: Component,
            args: [{ selector: '[eclBlockquote]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ecl-blockquote__body\">\n    <blockquote class=\"ecl-blockquote__quote\">\n        <p class=\"ecl-blockquote__citation\">\n            <ng-content></ng-content>\n        </p>\n    </blockquote>\n    <footer *ngIf=\"hasAuthor\" class=\"ecl-blockquote__attribution\"><cite class=\"ecl-blockquote__author\">{{ author }}</cite></footer>\n</div>\n<ng-content select=\"[eclBlockquoteImage]\"></ng-content>\n" }]
        }], propDecorators: { author: [{
                type: Input
            }], cssClasses: [{
                type: HostBinding,
                args: ['class']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNsLWJsb2NrcXVvdGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL2VjbC1ibG9ja3F1b3RlL2VjbC1ibG9ja3F1b3RlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9lY2wtYmxvY2txdW90ZS9lY2wtYmxvY2txdW90ZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxXQUFXLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdkYsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7OztBQU96RCxNQUFNLE9BQU8sc0JBQXVCLFNBQVEsZ0JBQWdCO0lBR3hELElBQ0ksVUFBVTtRQUNWLE9BQU87WUFDSCxLQUFLLENBQUMsYUFBYSxDQUFDLGdCQUFnQixDQUFDO1NBQ3hDLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLElBQUksRUFBRSxDQUFDO0lBQ3ZCLENBQUM7SUFFRCxJQUFJLFNBQVM7UUFDVCxPQUFPLElBQUksQ0FBQyxNQUFNLEtBQUssSUFBSSxDQUFDO0lBQ2hDLENBQUM7O3lKQVpRLHNCQUFzQjs2SUFBdEIsc0JBQXNCLGtLQ1JuQyxnYUFTQTsyRkREYSxzQkFBc0I7a0JBTGxDLFNBQVM7K0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