import { Component, EventEmitter, Input, Output } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import * as i0 from "@angular/core";
import * as i1 from "@aztrix/components/button";
import * as i2 from "@angular/common";
import * as i3 from "@aztrix/helpers";
export class StepSwitchComponent {
    constructor() {
        this.loading$ = new BehaviorSubject(false);
        this.continue = new EventEmitter();
        this.back = new EventEmitter();
    }
}
StepSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: StepSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
StepSwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: StepSwitchComponent, selector: "ax-step-switch", inputs: { loading$: "loading$" }, outputs: { continue: "continue", back: "back" }, ngImport: i0, template: "<ax-button\n  class=\"action back\"\n  axButton\n  color=\"accent\"\n  fullWidth\n  [loading]=\"loading$ | async\"\n  icon=\"arrow-left\"\n  (click)=\"back.next()\"\n  >{{ 'label.back' | translate }}</ax-button\n>\n\n<ax-button\n  class=\"action continue\"\n  axButton\n  color=\"accent\"\n  filled\n  fullWidth\n  [loading]=\"loading$ | async\"\n  (click)=\"continue.next()\"\n  >{{ 'label.continue' | translate }}</ax-button\n>\n", styles: [":host{gap:0;align-items:stretch}\n", ":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: "directive", type: i1.ButtonDirective, selector: "[axButton]", inputs: ["color", "labelHideMobile", "smallButton", "bigButton", "fullWidth", "filled", "outline", "icon-button", "hoverLabel", "hover", "lowercase", "disabled"] }, { kind: "component", type: i1.ButtonComponent, selector: "ax-button", inputs: ["routerUrl", "ariaLabel"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: StepSwitchComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-step-switch', template: "<ax-button\n  class=\"action back\"\n  axButton\n  color=\"accent\"\n  fullWidth\n  [loading]=\"loading$ | async\"\n  icon=\"arrow-left\"\n  (click)=\"back.next()\"\n  >{{ 'label.back' | translate }}</ax-button\n>\n\n<ax-button\n  class=\"action continue\"\n  axButton\n  color=\"accent\"\n  filled\n  fullWidth\n  [loading]=\"loading$ | async\"\n  (click)=\"continue.next()\"\n  >{{ 'label.continue' | translate }}</ax-button\n>\n", styles: [":host{gap:0;align-items:stretch}\n", ":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"] }]
        }], propDecorators: { loading$: [{
                type: Input
            }], continue: [{
                type: Output
            }], back: [{
                type: Output
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcC1zd2l0Y2guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2xvZ2luLW9yLXJlZ2lzdGVyLWZvcm0vc3RlcC1zd2l0Y2gvc3RlcC1zd2l0Y2guY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2xvZ2luLW9yLXJlZ2lzdGVyLWZvcm0vc3RlcC1zd2l0Y2gvc3RlcC1zd2l0Y2guY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNyRSxPQUFPLEVBQUMsZUFBZSxFQUFDLE1BQU0sTUFBTSxDQUFDOzs7OztBQU9yQyxNQUFNLE9BQU8sbUJBQW1CO0lBTGhDO1FBTVcsYUFBUSxHQUFHLElBQUksZUFBZSxDQUFVLEtBQUssQ0FBQyxDQUFDO1FBQzlDLGFBQVEsR0FBRyxJQUFJLFlBQVksRUFBUSxDQUFDO1FBQ3BDLFNBQUksR0FBRyxJQUFJLFlBQVksRUFBUSxDQUFDO0tBQzNDOztnSEFKWSxtQkFBbUI7b0dBQW5CLG1CQUFtQix5SUNSaEMsaWJBcUJBOzJGRGJhLG1CQUFtQjtrQkFML0IsU0FBUzsrQkFDRSxnQkFBZ0I7OEJBS2pCLFFBQVE7c0JBQWhC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