import { Component, Input } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { urlParams } from '@aztrix/helpers';
import * as i0 from "@angular/core";
import * as i1 from "@angular/platform-browser";
import * as i2 from "@angular/common";
import * as i3 from "@angular/router";
import * as i4 from "@aztrix/components/button";
import * as i5 from "@aztrix/icons";
import * as i6 from "@aztrix/translate";
export class AztrixCreateAccountButtonComponent {
    constructor(_sanitizer) {
        this._sanitizer = _sanitizer;
        this.routerLink = null;
        this.href = null;
    }
    addQueryParamsTohref() {
        return urlParams(this.href, this._sanitizer, this.queryParams);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AztrixCreateAccountButtonComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", 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  [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", "info", "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: "17.3.12", 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  [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: () => [{ type: i1.DomSanitizer }], propDecorators: { routerLink: [{
                type: Input
            }], queryParams: [{
                type: Input
            }], href: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXp0cml4LWNyZWF0ZS1hY2NvdW50LWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvYXp0cml4LWNyZWF0ZS1hY2NvdW50LWJ1dHRvbi9henRyaXgtY3JlYXRlLWFjY291bnQtYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9henRyaXgtY3JlYXRlLWFjY291bnQtYnV0dG9uL2F6dHJpeC1jcmVhdGUtYWNjb3VudC1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDL0MsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBRXZELE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQzs7Ozs7Ozs7QUFPMUMsTUFBTSxPQUFPLGtDQUFrQztJQUk3QyxZQUFvQixVQUF3QjtRQUF4QixlQUFVLEdBQVYsVUFBVSxDQUFjO1FBSG5DLGVBQVUsR0FBa0IsSUFBSSxDQUFDO1FBRWpDLFNBQUksR0FBa0IsSUFBSSxDQUFDO0lBQ1csQ0FBQztJQUVoRCxvQkFBb0I7UUFDbEIsT0FBTyxTQUFTLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsVUFBVSxFQUFFLElBQUksQ0FBQyxXQUFXLENBQUMsQ0FBQztJQUNqRSxDQUFDOytHQVJVLGtDQUFrQzttR0FBbEMsa0NBQWtDLHVKQ1YvQywwbEJBMEJBOzs0RkRoQmEsa0NBQWtDO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