import { Component } from '@angular/core';
import { PropertyType } from '@aztrix/models';
import { AbstractRegisterStep } from '../abstract-register-step';
import * as i0 from "@angular/core";
import * as i1 from "@aztrix/components/property-edit";
import * as i2 from "../../step-switch/step-switch.component";
export class RegisterIndividualStepComponent extends AbstractRegisterStep {
    get firstNameForm() {
        return this.propertiesForm.get(PropertyType.FIRST_NAME);
    }
    get lastNameForm() {
        return this.propertiesForm.get(PropertyType.LAST_NAME);
    }
}
RegisterIndividualStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RegisterIndividualStepComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
RegisterIndividualStepComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: RegisterIndividualStepComponent, selector: "ax-register-individual-step", usesInheritance: true, ngImport: i0, template: "<ax-property-edit\n  [form]=\"firstNameForm\"\n  name=\"register firstName\"\n  [required]=\"true\"\n></ax-property-edit>\n<ax-property-edit\n  [form]=\"lastNameForm\"\n  name=\"register lastName\"\n  [required]=\"true\"\n></ax-property-edit>\n\n<ax-step-switch [loading$]=\"loading$\" (continue)=\"_continue()\" (back)=\"_back()\"></ax-step-switch>\n", styles: ["", ":host{display:flex;flex-direction:column;gap:.5rem}.form{margin-bottom:20px;background-color:#fff;border-radius:15px;padding:1.5rem 1.5rem 0}.value{display:flex;flex-direction:column;align-items:flex-end;margin-bottom:.5rem}.input{width:100%}.action{margin:1rem 1rem -20px}.action ::ng-deep .ax-button{font-size:1.2rem;text-transform:none;height:2.5rem}.back{margin:1rem auto -.5rem;width:auto}.back ::ng-deep .ax-button{font-size:small;height:2rem;width:auto;margin:0 auto}.back ::ng-deep .ax-button .icon{width:1rem;height:1rem}.verification ::ng-deep .verify{width:100%;display:block;position:relative;bottom:-20px}.verification ::ng-deep .verify .ax-button{font-size:1.2rem;text-transform:none;height:2.5rem;width:100%}.verification ::ng-deep .resend{height:0;position:relative;bottom:-30px}.verification ::ng-deep .error-message{height:0;position:relative;bottom:-30px;display:flex;text-align:center;flex-direction:column;gap:1rem}\n"], dependencies: [{ kind: "component", type: i1.PropertyEditComponent, selector: "ax-property-edit", inputs: ["isIndividual", "isProposalSubscribeForm"] }, { kind: "component", type: i2.StepSwitchComponent, selector: "ax-step-switch", inputs: ["loading$"], outputs: ["continue", "back"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RegisterIndividualStepComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-register-individual-step', template: "<ax-property-edit\n  [form]=\"firstNameForm\"\n  name=\"register firstName\"\n  [required]=\"true\"\n></ax-property-edit>\n<ax-property-edit\n  [form]=\"lastNameForm\"\n  name=\"register lastName\"\n  [required]=\"true\"\n></ax-property-edit>\n\n<ax-step-switch [loading$]=\"loading$\" (continue)=\"_continue()\" (back)=\"_back()\"></ax-step-switch>\n", styles: [":host{display:flex;flex-direction:column;gap:.5rem}.form{margin-bottom:20px;background-color:#fff;border-radius:15px;padding:1.5rem 1.5rem 0}.value{display:flex;flex-direction:column;align-items:flex-end;margin-bottom:.5rem}.input{width:100%}.action{margin:1rem 1rem -20px}.action ::ng-deep .ax-button{font-size:1.2rem;text-transform:none;height:2.5rem}.back{margin:1rem auto -.5rem;width:auto}.back ::ng-deep .ax-button{font-size:small;height:2rem;width:auto;margin:0 auto}.back ::ng-deep .ax-button .icon{width:1rem;height:1rem}.verification ::ng-deep .verify{width:100%;display:block;position:relative;bottom:-20px}.verification ::ng-deep .verify .ax-button{font-size:1.2rem;text-transform:none;height:2.5rem;width:100%}.verification ::ng-deep .resend{height:0;position:relative;bottom:-30px}.verification ::ng-deep .error-message{height:0;position:relative;bottom:-30px;display:flex;text-align:center;flex-direction:column;gap:1rem}\n"] }]
        }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0ZXItaW5kaXZpZHVhbC1zdGVwLmNvbX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