import * as i0 from '@angular/core';
import { Component, Input, NgModule } from '@angular/core';
import * as i1 from '@angular/platform-browser';
import * as i6 from '@aztrix/helpers';
import { urlParams, HelperPipesModule } from '@aztrix/helpers';
import * as i2 from '@angular/common';
import { CommonModule } from '@angular/common';
import * as i3 from '@angular/router';
import { RouterModule } from '@angular/router';
import * as i4 from '@aztrix/components/button';
import { ButtonModule } from '@aztrix/components/button';
import * as i5 from '@aztrix/icons';
import { IconsModule } from '@aztrix/icons';

class AztrixCreateAccountButtonComponent {
    constructor(_sanitizer) {
        this._sanitizer = _sanitizer;
        this.routerLink = null;
        this.href = null;
    }
    addQueryParamsTohref() {
        return urlParams(this.href, this._sanitizer, this.queryParams);
    }
}
AztrixCreateAccountButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AztrixCreateAccountButtonComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
AztrixCreateAccountButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: AztrixCreateAccountButtonComponent, selector: "ax-aztrix-create-account-button", inputs: { routerLink: "routerLink", queryParams: "queryParams", href: "href" }, ngImport: i0, template: "<a\n  *ngIf=\"!href\"\n  [routerLink]=\"[routerLink]\"\n  [queryParams]=\"queryParams\"\n  [hover]=\"false\"\n  target=\"_blank\"\n  class=\"button\"\n  axButton\n  outline\n>\n  <span> {{ 'create-account.button' | translate }} </span>\n  <ax-icon class=\"icon arrow-right\" name=\"arrow-right\"></ax-icon>\n</a>\n\n<a\n  *ngIf=\"href\"\n  [href]=\"addQueryParamsTohref()\"\n  [queryParams]=\"\"\n  [hover]=\"false\"\n  target=\"_blank\"\n  class=\"button\"\n  axButton\n  outline\n>\n  <span> {{ 'create-account.button' | translate }} </span>\n  <ax-icon class=\"icon arrow-right\" name=\"arrow-right\"></ax-icon>\n</a>\n", styles: [":host{display:block}a.button{text-transform:none;height:auto;min-height:2rem;padding:.25rem .75rem;white-space:normal;line-height:1.5;gap:.75rem;font-size:.75rem;border-color:#cbcbcb}.icon.arrow-right{width:1rem;height:1rem;margin-right:-4px;flex-grow:1;flex-shrink:0}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i4.ButtonDirective, selector: "[axButton]", inputs: ["color", "labelHideMobile", "smallButton", "bigButton", "fullWidth", "filled", "outline", "icon-button", "hoverLabel", "hover", "lowercase", "disabled"] }, { kind: "component", type: i5.IconComponent, selector: "ax-icon", inputs: ["name", "inline"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AztrixCreateAccountButtonComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-aztrix-create-account-button', template: "<a\n  *ngIf=\"!href\"\n  [routerLink]=\"[routerLink]\"\n  [queryParams]=\"queryParams\"\n  [hover]=\"false\"\n  target=\"_blank\"\n  class=\"button\"\n  axButton\n  outline\n>\n  <span> {{ 'create-account.button' | translate }} </span>\n  <ax-icon class=\"icon arrow-right\" name=\"arrow-right\"></ax-icon>\n</a>\n\n<a\n  *ngIf=\"href\"\n  [href]=\"addQueryParamsTohref()\"\n  [queryParams]=\"\"\n  [hover]=\"false\"\n  target=\"_blank\"\n  class=\"button\"\n  axButton\n  outline\n>\n  <span> {{ 'create-account.button' | translate }} </span>\n  <ax-icon class=\"icon arrow-right\" name=\"arrow-right\"></ax-icon>\n</a>\n", styles: [":host{display:block}a.button{text-transform:none;height:auto;min-height:2rem;padding:.25rem .75rem;white-space:normal;line-height:1.5;gap:.75rem;font-size:.75rem;border-color:#cbcbcb}.icon.arrow-right{width:1rem;height:1rem;margin-right:-4px;flex-grow:1;flex-shrink:0}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; }, propDecorators: { routerLink: [{
                type: Input
            }], queryParams: [{
                type: Input
            }], href: [{
                type: Input
            }] } });

class AztrixCreateAccountButtonModule {
}
AztrixCreateAccountButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AztrixCreateAccountButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
AztrixCreateAccountButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: AztrixCreateAccountButtonModule, declarations: [AztrixCreateAccountButtonComponent], imports: [CommonModule, RouterModule, ButtonModule, IconsModule, HelperPipesModule], exports: [AztrixCreateAccountButtonComponent] });
AztrixCreateAccountButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AztrixCreateAccountButtonModule, imports: [CommonModule, RouterModule, ButtonModule, IconsModule, HelperPipesModule] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AztrixCreateAccountButtonModule, decorators: [{
            type: NgModule,
            args: [{
                    declarations: [AztrixCreateAccountButtonComponent],
                    imports: [CommonModule, RouterModule, ButtonModule, IconsModule, HelperPipesModule],
                    exports: [AztrixCreateAccountButtonComponent],
                }]
        }] });

/**
 * Generated bundle index. Do not edit.
 */

export { AztrixCreateAccountButtonComponent, AztrixCreateAccountButtonModule };
//# sourceMappingURL=aztrix-components-aztrix-create-account-button.mjs.map
