import { Component, Inject, Input } from '@angular/core';
import { BACKEND_URL } from '@aztrix/sdk';
import { BehaviorSubject } from 'rxjs';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@aztrix/icons";
import * as i3 from "@aztrix/components/button";
import * as i4 from "../legal-footer/legal-footer.component";
import * as i5 from "@aztrix/helpers";
import * as i6 from "rxjs";
export class AztrixInfoModalComponent {
    constructor(backendUrl$) {
        this.backendUrl$ = backendUrl$;
        this.legal = true;
    }
}
AztrixInfoModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AztrixInfoModalComponent, deps: [{ token: BACKEND_URL }], target: i0.ɵɵFactoryTarget.Component });
AztrixInfoModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: AztrixInfoModalComponent, selector: "ax-aztrix-info-modal", inputs: { legal: "legal" }, ngImport: i0, template: "<div class=\"logo\">\n  <ax-icon class=\"icon\" name=\"custom:aztrixlogo\"></ax-icon>\n</div>\n<h1 class=\"dialog-title\">{{ 'aztrix.info' | translate }}</h1>\n<div class=\"dialog-content\">\n  <p>\n    {{ 'aztrix.explanation' | translate }}\n  </p>\n</div>\n<div class=\"button-wrapper\">\n  <a axButton filled color=\"primary\" class=\"button\" [href]=\"backendUrl$ | async\" target=\"_blank\">\n    {{ 'label.moreInfo' | translate }}\n    <ax-icon class=\"icon\" name=\"open-in-new\"></ax-icon\n  ></a>\n</div>\n<ax-legal-footer class=\"legal\" *ngIf=\"legal\" color=\"primary\"></ax-legal-footer>\n", styles: [":host{position:relative;display:block;padding:0 24px;margin-top:-24px}:host ::ng-deep ax-legal-footer .text{text-align:center}:host ::ng-deep .button.ax-button .icon{margin-right:-.25rem;margin-left:.25rem}.dialog-title{font-size:1.5rem;color:#555;text-align:center}.dialog-content{text-align:center;color:#555}.dialog-content p{margin:1.5rem 0}.button-wrapper{width:100%;display:flex;justify-content:center;margin:2rem 0 1.5rem}.logo{text-align:center;margin-bottom:1.5rem;height:34px;margin-top:1.5rem}.logo .icon{width:34px;height:34px;color:var(--primary-color-500)}.link:link,.link:visited,.link:hover,.link:active{color:#fff}.link .icon{vertical-align:middle;width:20px;height:20px;margin-left:.25rem}.legal{margin:2rem 0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "ax-icon", inputs: ["name", "inline"] }, { kind: "directive", type: i3.ButtonDirective, selector: "[axButton]", inputs: ["color", "labelHideMobile", "smallButton", "bigButton", "fullWidth", "filled", "outline", "icon-button", "hoverLabel", "hover", "lowercase", "disabled"] }, { kind: "component", type: i4.LegalFooterComponent, selector: "ax-legal-footer", inputs: ["color", "legalText"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AztrixInfoModalComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-aztrix-info-modal', template: "<div class=\"logo\">\n  <ax-icon class=\"icon\" name=\"custom:aztrixlogo\"></ax-icon>\n</div>\n<h1 class=\"dialog-title\">{{ 'aztrix.info' | translate }}</h1>\n<div class=\"dialog-content\">\n  <p>\n    {{ 'aztrix.explanation' | translate }}\n  </p>\n</div>\n<div class=\"button-wrapper\">\n  <a axButton filled color=\"primary\" class=\"button\" [href]=\"backendUrl$ | async\" target=\"_blank\">\n    {{ 'label.moreInfo' | translate }}\n    <ax-icon class=\"icon\" name=\"open-in-new\"></ax-icon\n  ></a>\n</div>\n<ax-legal-footer class=\"legal\" *ngIf=\"legal\" color=\"primary\"></ax-legal-footer>\n", styles: [":host{position:relative;display:block;padding:0 24px;margin-top:-24px}:host ::ng-deep ax-legal-footer .text{text-align:center}:host ::ng-deep .button.ax-button .icon{margin-right:-.25rem;margin-left:.25rem}.dialog-title{font-size:1.5rem;color:#555;text-align:center}.dialog-content{text-align:center;color:#555}.dialog-content p{margin:1.5rem 0}.button-wrapper{width:100%;display:flex;justify-content:center;margin:2rem 0 1.5rem}.logo{text-align:center;margin-bottom:1.5rem;height:34px;margin-top:1.5rem}.logo .icon{width:34px;height:34px;color:var(--primary-color-500)}.link:link,.link:visited,.link:hover,.link:active{color:#fff}.link .icon{vertical-align:middle;width:20px;height:20px;margin-left:.25rem}.legal{margin:2rem 0}\n"] }]
        }], ctorParameters: function () { return [{ type: i6.BehaviorSubject, decorators: [{
                    type: Inject,
                    args: [BACKEND_URL]
                }] }]; }, propDecorators: { legal: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXp0cml4LWluZm8tbW9kYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3Bvd2VyZWQtYnktYXp0cml4L2F6dHJpeC1pbmZvLW1vZGFsL2F6dHJpeC1pbmZvLW1vZGFsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9wb3dlcmVkLWJ5LWF6dHJpeC9henRyaXgtaW5mby1tb2RhbC9henRyaXgtaW5mby1tb2RhbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDdkQsT0FBTyxFQUFDLFdBQVcsRUFBQyxNQUFNLGFBQWEsQ0FBQztBQUN4QyxPQUFPLEVBQUMsZUFBZSxFQUFDLE1BQU0sTUFBTSxDQUFDOzs7Ozs7OztBQU9yQyxNQUFNLE9BQU8sd0JBQXdCO0lBR25DLFlBQXdDLFdBQW9DO1FBQXBDLGdCQU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