import * as i0 from '@angular/core';
import { Input, Component, NgModule } from '@angular/core';
import { ReplaySubject } from 'rxjs';
import * as i1 from '@angular/common';
import { CommonModule } from '@angular/common';
import * as i2 from '@aztrix/components/property-view';
import { PropertyViewModule } from '@aztrix/components/property-view';
import * as i3 from '@aztrix/helpers';
import { HelperPipesModule } from '@aztrix/helpers';

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
            }] } });

class ViewBillingInformationModule {
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ViewBillingInformationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
    static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: ViewBillingInformationModule, declarations: [ViewBillingInformationComponent], imports: [CommonModule, HelperPipesModule, PropertyViewModule], exports: [ViewBillingInformationComponent] }); }
    static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ViewBillingInformationModule, imports: [CommonModule, HelperPipesModule, PropertyViewModule] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ViewBillingInformationModule, decorators: [{
            type: NgModule,
            args: [{
                    declarations: [ViewBillingInformationComponent],
                    imports: [CommonModule, HelperPipesModule, PropertyViewModule],
                    exports: [ViewBillingInformationComponent],
                }]
        }] });

/**
 * Generated bundle index. Do not edit.
 */

export { ViewBillingInformationComponent, ViewBillingInformationModule };
//# sourceMappingURL=aztrix-components-view-billing-information.mjs.map
