import { ChangeDetectionStrategy, Component, input } from '@angular/core';
import * as i0 from "@angular/core";
// prettier-ignore
export class DbxUnitedStatesAddressComponent {
    address = input();
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxUnitedStatesAddressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DbxUnitedStatesAddressComponent, isStandalone: true, selector: "dbx-us-address", inputs: { address: { classPropertyName: "address", publicName: "address", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "dbx-us-address" }, ngImport: i0, template: `
    @if (address()) {
      @if (address()?.name) {
        <div class="addr-name">{{ address()?.name }}</div>
      }
      @if (address()?.phone) {
        <div class="addr-phone">{{ address()?.phone }}</div>
      }
      @if (address()?.line1) {
        <div class="addr-line1">{{ address()?.line1 }}</div>
      }
      @if (address()?.line2) {
        <div class="addr-line2">{{ address()?.line2 }}</div>
      }
      <div class="city-state-zip">
        <span class="addr-city">{{ address()?.city }}</span>
        @if (address()?.state || address()?.zip) {
          <span>, </span>
        }
        <span class="addr-state">{{ address()?.state }} </span>
        <span class="addr-zip">{{ address()?.zip }}</span>
      </div>
    }
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxUnitedStatesAddressComponent, decorators: [{
            type: Component,
            args: [{
                    selector: 'dbx-us-address',
                    template: `
    @if (address()) {
      @if (address()?.name) {
        <div class="addr-name">{{ address()?.name }}</div>
      }
      @if (address()?.phone) {
        <div class="addr-phone">{{ address()?.phone }}</div>
      }
      @if (address()?.line1) {
        <div class="addr-line1">{{ address()?.line1 }}</div>
      }
      @if (address()?.line2) {
        <div class="addr-line2">{{ address()?.line2 }}</div>
      }
      <div class="city-state-zip">
        <span class="addr-city">{{ address()?.city }}</span>
        @if (address()?.state || address()?.zip) {
          <span>, </span>
        }
        <span class="addr-state">{{ address()?.state }} </span>
        <span class="addr-zip">{{ address()?.zip }}</span>
      </div>
    }
  `,
                    host: {
                        class: 'dbx-us-address'
                    },
                    standalone: true,
                    changeDetection: ChangeDetectionStrategy.OnPush
                }]
        }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtd2ViL3NyYy9saWIvbGF5b3V0L3RleHQvYWRkcmVzcy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBRzFFLGtCQUFrQjtBQWlDbEIsTUFBTSxPQUFPLCtCQUErQjtJQUVqQyxPQUFPLEdBQUcsS0FBSyxFQUFrRCxDQUFBO3dHQUYvRCwrQkFBK0I7NEZBQS9CLCtCQUErQixnUUE5QmhDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXVCVDs7NEZBT1UsK0JBQStCO2tCQWhDM0MsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsZ0JBQWdCO29CQUMxQixRQUFRLEVBQUU7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBdUJUO29CQUNELElBQUksRUFBRTt3QkFDSixLQUFLLEVBQUUsZ0JBQWdCO3FCQUN4QjtvQkFDRCxVQUFVLEVBQUUsSUFBSTtvQkFDaEIsZUFBZSxFQUFFLHVCQUF1QixDQUFDLE1BQU07aUJBQ2hEIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3ksIENvbXBvbmVudCwgaW5wdXQgfSBm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