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 "@aztrix/components/value-edit";
import * as i3 from "../../step-switch/step-switch.component";
import * as i4 from "@aztrix/helpers";
export class RegisterOrganisationStepComponent extends AbstractRegisterStep {
    get organisationNameForm() {
        return this.propertiesForm.get(PropertyType.ORGANISATION_NAME);
    }
    get legalIdForm() {
        return this.propertiesForm.get(PropertyType.LEGAL_ID);
    }
    get legalRepresentativeForm() {
        return this.form.get('legalRepresentative');
    }
    get lrRoleForm() {
        return this.legalRepresentativeForm.get('role');
    }
    get legalRepresentativePropertiesForm() {
        return this.legalRepresentativeForm.get('properties');
    }
    get lrFirstNameForm() {
        return this.legalRepresentativePropertiesForm.get(PropertyType.FIRST_NAME);
    }
    get lrLastNameForm() {
        return this.legalRepresentativePropertiesForm.get(PropertyType.LAST_NAME);
    }
    get lrMobileForm() {
        return this.legalRepresentativePropertiesForm.get(PropertyType.MOBILE_PHONE);
    }
}
RegisterOrganisationStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RegisterOrganisationStepComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
RegisterOrganisationStepComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: RegisterOrganisationStepComponent, selector: "ax-register-organisation-step", usesInheritance: true, ngImport: i0, template: "<ax-property-edit\n  [form]=\"organisationNameForm\"\n  name=\"register organisationName\"\n  [required]=\"true\"\n></ax-property-edit>\n<ax-property-edit\n  [form]=\"legalIdForm\"\n  name=\"register legalID\"\n  [required]=\"false\"\n></ax-property-edit>\n\n<h2>{{ 'register.organisation.legal-representative' | translate }}</h2>\n<div>\n  <ax-value-edit\n    type=\"TEXT\"\n    [form]=\"lrRoleForm\"\n    name=\"register role\"\n    [required]=\"true\"\n    [label]=\"'label.role' | translate\"\n  ></ax-value-edit>\n  <ax-property-edit\n    [form]=\"lrFirstNameForm\"\n    name=\"register firstName\"\n    [required]=\"true\"\n  ></ax-property-edit>\n  <ax-property-edit\n    [form]=\"lrLastNameForm\"\n    name=\"register lastName\"\n    [required]=\"true\"\n  ></ax-property-edit>\n  <ax-property-edit\n    [form]=\"lrMobileForm\"\n    name=\"register mobile\"\n    [required]=\"true\"\n  ></ax-property-edit>\n</div>\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.ValueEditComponent, selector: "ax-value-edit", inputs: ["type", "numberConfig"] }, { kind: "component", type: i3.StepSwitchComponent, selector: "ax-step-switch", inputs: ["loading$"], outputs: ["continue", "back"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RegisterOrganisationStepComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-register-organisation-step', template: "<ax-property-edit\n  [form]=\"organisationNameForm\"\n  name=\"register organisationName\"\n  [required]=\"true\"\n></ax-property-edit>\n<ax-property-edit\n  [form]=\"legalIdForm\"\n  name=\"register legalID\"\n  [required]=\"false\"\n></ax-property-edit>\n\n<h2>{{ 'register.organisation.legal-representative' | translate }}</h2>\n<div>\n  <ax-value-edit\n    type=\"TEXT\"\n    [form]=\"lrRoleForm\"\n    name=\"register role\"\n    [required]=\"true\"\n    [label]=\"'label.role' | translate\"\n  ></ax-value-edit>\n  <ax-property-edit\n    [form]=\"lrFirstNameForm\"\n    name=\"register firstName\"\n    [required]=\"true\"\n  ></ax-property-edit>\n  <ax-property-edit\n    [form]=\"lrLastNameForm\"\n    name=\"register lastName\"\n    [required]=\"true\"\n  ></ax-property-edit>\n  <ax-property-edit\n    [form]=\"lrMobileForm\"\n    name=\"register mobile\"\n    [required]=\"true\"\n  ></ax-property-edit>\n</div>\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, 