import { Component, Input } from '@angular/core';
import { ReplaySubject } from 'rxjs';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@aztrix/components/property-view";
import * as i3 from "@aztrix/helpers";
export class ViewBillingInformationComponent {
    constructor() {
        this.properties$ = new ReplaySubject(1);
    }
    ngOnChanges(changes) {
        if (this.properties && changes.properties) {
            this.properties$.next(this.properties);
        }
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ViewBillingInformationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ViewBillingInformationComponent, selector: "ax-view-billing-information", inputs: { properties: "properties" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"property\" *ngFor=\"let property of properties$ | async\">\n  <div class=\"property-title\" *ngIf=\"property | propertyHasValue\">\n    {{ property.type | propertyTypeLabel }}\n  </div>\n  <div class=\"property-value\" *ngIf=\"property | propertyHasValue\">\n    <ax-property-value-view [property]=\"property\"></ax-property-value-view>\n  </div>\n</div>\n", styles: [".property-title{color:#7a8692;font-size:.75rem;line-height:1.8;text-transform:uppercase}.property-value{display:flex;align-items:center}.property{padding:.5rem 0}.property:first-child{padding-top:0}.property:last-child{padding-bottom:0}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.PropertyValueViewComponent, selector: "ax-property-value-view", inputs: ["property", "showVerificationLabel", "clickable", "isIndividual", "params"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.PropertyTypeLabelPipe, name: "propertyTypeLabel" }, { kind: "pipe", type: i3.PropertyHasValuePipe, name: "propertyHasValue" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ViewBillingInformationComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-view-billing-information', template: "<div class=\"property\" *ngFor=\"let property of properties$ | async\">\n  <div class=\"property-title\" *ngIf=\"property | propertyHasValue\">\n    {{ property.type | propertyTypeLabel }}\n  </div>\n  <div class=\"property-value\" *ngIf=\"property | propertyHasValue\">\n    <ax-property-value-view [property]=\"property\"></ax-property-value-view>\n  </div>\n</div>\n", styles: [".property-title{color:#7a8692;font-size:.75rem;line-height:1.8;text-transform:uppercase}.property-value{display:flex;align-items:center}.property{padding:.5rem 0}.property:first-child{padding-top:0}.property:last-child{padding-bottom:0}\n"] }]
        }], propDecorators: { properties: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlldy1iaWxsaW5nLWluZm9ybWF0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy92aWV3LWJpbGxpbmctaW5mb3JtYXRpb24vdmlldy1iaWxsaW5nLWluZm9ybWF0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy92aWV3LWJpbGxpbmctaW5mb3JtYXRpb24vdmlldy1iaWxsaW5nLWluZm9ybWF0aW9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUEyQixNQUFNLGVBQWUsQ0FBQztBQUd6RSxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0sTUFBTSxDQUFDOzs7OztBQU9uQyxNQUFNLE9BQU8sK0JBQStCO0lBTDVDO1FBUUUsZ0JBQVcsR0FBRyxJQUFJLGFBQWEsQ0FBYSxDQUFDLENBQUM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