import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@angular/forms";
import * as i3 from "../form-field/form-field.component";
import * as i4 from "../form-field/form-field-control.directive";
import * as i5 from "../tabbed-custom-fields/tabbed-custom-fields.component";
import * as i6 from "../card/card.component";
import * as i7 from "@ngx-translate/core";
export class AddressFormComponent {
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: AddressFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.2", type: AddressFormComponent, selector: "vdr-address-form", inputs: { customFields: "customFields", formGroup: "formGroup", availableCountries: "availableCountries" }, ngImport: i0, template: "<form [formGroup]=\"formGroup\">\n    <vdr-card>\n        <vdr-form-field [label]=\"'customer.full-name' | translate\">\n            <input formControlName=\"fullName\" type=\"text\" />\n        </vdr-form-field>\n        <vdr-form-field [label]=\"'customer.company' | translate\">\n            <input formControlName=\"company\" type=\"text\" />\n        </vdr-form-field>\n\n        <vdr-form-field [label]=\"'customer.street-line-1' | translate\">\n            <input formControlName=\"streetLine1\" type=\"text\" />\n        </vdr-form-field>\n\n        <vdr-form-field [label]=\"'customer.street-line-2' | translate\">\n            <input formControlName=\"streetLine2\" type=\"text\" />\n        </vdr-form-field>\n\n        <vdr-form-field [label]=\"'customer.city' | translate\">\n            <input formControlName=\"city\" type=\"text\" />\n        </vdr-form-field>\n\n        <vdr-form-field [label]=\"'customer.province' | translate\">\n            <input formControlName=\"province\" type=\"text\" />\n        </vdr-form-field>\n\n        <vdr-form-field [label]=\"'customer.postal-code' | translate\">\n            <input formControlName=\"postalCode\" type=\"text\" />\n        </vdr-form-field>\n\n        <vdr-form-field [label]=\"'customer.country' | translate\">\n            <select name=\"countryCode\" formControlName=\"countryCode\">\n                <option *ngFor=\"let country of availableCountries\" [value]=\"country.code\">\n                    {{ country.name }}\n                </option>\n            </select>\n        </vdr-form-field>\n        <vdr-form-field [label]=\"'customer.phone-number' | translate\">\n            <input formControlName=\"phoneNumber\" type=\"text\" />\n        </vdr-form-field>\n        <section\n            formGroupName=\"customFields\"\n            *ngIf=\"formGroup.get('customFields') as customFieldsGroup\"\n        >\n            <vdr-tabbed-custom-fields\n                entityName=\"Address\"\n                [customFields]=\"customFields\"\n                [customFieldsFormGroup]=\"customFieldsGroup\"\n            ></vdr-tabbed-custom-fields>\n        </section>\n    </vdr-card>\n</form>\n", styles: [""], 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: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "component", type: i3.FormFieldComponent, selector: "vdr-form-field", inputs: ["label", "for", "tooltip", "errors", "readOnlyToggle"] }, { kind: "directive", type: i4.FormFieldControlDirective, selector: "input, textarea, select" }, { kind: "component", type: i5.TabbedCustomFieldsComponent, selector: "vdr-tabbed-custom-fields", inputs: ["entityName", "customFields", "customFieldsFormGroup", "readonly", "compact", "showLabel"] }, { kind: "component", type: i6.CardComponent, selector: "vdr-card", inputs: ["title", "paddingX"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: AddressFormComponent, decorators: [{
            type: Component,
            args: [{ selector: 'vdr-address-form', changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"formGroup\">\n    <vdr-card>\n        <vdr-form-field [label]=\"'customer.full-name' | translate\">\n            <input formControlName=\"fullName\" type=\"text\" />\n        </vdr-form-field>\n        <vdr-form-field [label]=\"'customer.company' | translate\">\n            <input formControlName=\"company\" type=\"text\" />\n        </vdr-form-field>\n\n        <vdr-form-field [label]=\"'customer.street-line-1' | translate\">\n            <input formControlName=\"streetLine1\" type=\"text\" />\n        </vdr-form-field>\n\n        <vdr-form-field [label]=\"'customer.street-line-2' | translate\">\n            <input formControlName=\"streetLine2\" type=\"text\" />\n        </vdr-form-field>\n\n        <vdr-form-field [label]=\"'customer.city' | translate\">\n            <input formControlName=\"city\" type=\"text\" />\n        </vdr-form-field>\n\n        <vdr-form-field [label]=\"'customer.province' | translate\">\n            <input formControlName=\"province\" type=\"text\" />\n        </vdr-form-field>\n\n        <vdr-form-field [label]=\"'customer.postal-code' | translate\">\n            <input formControlName=\"postalCode\" type=\"text\" />\n        </vdr-form-field>\n\n        <vdr-form-field [label]=\"'customer.country' | translate\">\n            <select name=\"countryCode\" formControlName=\"countryCode\">\n                <option *ngFor=\"let country of availableCountries\" [value]=\"country.code\">\n                    {{ country.name }}\n                </option>\n            </select>\n        </vdr-form-field>\n        <vdr-form-field [label]=\"'customer.phone-number' | translate\">\n            <input formControlName=\"phoneNumber\" type=\"text\" />\n        </vdr-form-field>\n        <section\n            formGroupName=\"customFields\"\n            *ngIf=\"formGroup.get('customFields') as customFieldsGroup\"\n        >\n            <vdr-tabbed-custom-fields\n                entityName=\"Address\"\n                [customFields]=\"customFields\"\n                [customFieldsFormGroup]=\"customFieldsGroup\"\n            ></vdr-tabbed-custom-fields>\n        </section>\n    </vdr-card>\n</form>\n" }]
        }], propDecorators: { customFields: [{
                type: Input
            }], formGroup: [{
                type: Input
            }], availableCountries: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64, 