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);
        }
    }
}
ViewBillingInformationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ViewBillingInformationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
ViewBillingInformationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", 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: "15.1.5", 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlldy1iaWxsaW5nLWluZm9ybWF0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy92aWV3LWJpbGxpbmctaW5mb3JtYXRpb24vdmlldy1iaWxsaW5nLWluZm9ybWF0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy92aWV3LWJpbGxpbmctaW5mb3JtYXRpb24vdmlldy1iaWxsaW5nLWluZm9ybWF0aW9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUEyQixNQUFNLGVBQWUsQ0FBQztBQUV6RSxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0sTUFBTSxDQUFDOzs7OztBQU9uQyxNQUFNLE9BQU8sK0JBQStCO0lBTDVDO1FBUUUsZ0JBQVcsR0FBRyxJQUFJLGFBQWEsQ0FBQy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