import { Component, Input } from '@angular/core';
import { ModalSize, OverlayService } from '@aztrix/components/overlay';
import { AztrixInfoModalComponent } from './aztrix-info-modal/aztrix-info-modal.component';
import * as i0 from "@angular/core";
import * as i1 from "@aztrix/components/overlay";
import * as i2 from "@angular/common";
import * as i3 from "@aztrix/icons";
import * as i4 from "@aztrix/components/theme";
export class PoweredByAztrixComponent {
    constructor(_overlay) {
        this._overlay = _overlay;
        this.bigLogo = false;
        this.legal = true;
        this.name = 'custom:aztrix_logo';
    }
    openDialog(evt) {
        evt.preventDefault();
        this._overlay.createModal(AztrixInfoModalComponent, {
            modalSize: ModalSize.EXTRA_SMALL,
            init: (modal) => {
                modal.legal = this.legal;
            },
        });
    }
}
PoweredByAztrixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PoweredByAztrixComponent, deps: [{ token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
PoweredByAztrixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: PoweredByAztrixComponent, selector: "ax-powered-by-aztrix", inputs: { bigLogo: "bigLogo", legal: "legal", name: "name" }, ngImport: i0, template: `
    <ax-components-theme>
      <button class="aztrix-button" [ngClass]="{'big-logo': bigLogo}" (click)="openDialog($event)">
        <span>Powered by</span>
        <ax-icon class="icon logo" [name]="name"></ax-icon>
      </button>
    </ax-components-theme>
  `, isInline: true, styles: [":host{display:flex;justify-content:center}.aztrix-button{display:inline-flex;justify-content:space-between;align-items:center;color:#363f48;background-color:transparent;border:none;font-size:10px;white-space:nowrap;padding:0;height:20px;width:95px}.aztrix-button .logo{min-width:40px;margin:-3px 2px 0}.aztrix-button.big-logo{display:flex;flex-direction:column;height:auto;gap:4px}.aztrix-button.big-logo .logo{width:100%;margin:0;height:auto}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.IconComponent, selector: "ax-icon", inputs: ["name", "inline"] }, { kind: "component", type: i4.ComponentsThemeComponent, selector: "ax-components-theme" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PoweredByAztrixComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-powered-by-aztrix', template: `
    <ax-components-theme>
      <button class="aztrix-button" [ngClass]="{'big-logo': bigLogo}" (click)="openDialog($event)">
        <span>Powered by</span>
        <ax-icon class="icon logo" [name]="name"></ax-icon>
      </button>
    </ax-components-theme>
  `, styles: [":host{display:flex;justify-content:center}.aztrix-button{display:inline-flex;justify-content:space-between;align-items:center;color:#363f48;background-color:transparent;border:none;font-size:10px;white-space:nowrap;padding:0;height:20px;width:95px}.aztrix-button .logo{min-width:40px;margin:-3px 2px 0}.aztrix-button.big-logo{display:flex;flex-direction:column;height:auto;gap:4px}.aztrix-button.big-logo .logo{width:100%;margin:0;height:auto}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.OverlayService }]; }, propDecorators: { bigLogo: [{
                type: Input
            }], legal: [{
                type: Input
            }], name: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG93ZXJlZC1ieS1henRyaXguY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3Bvd2VyZWQtYnktYXp0cml4L3Bvd2VyZWQtYnktYXp0cml4LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUMvQyxPQUFPLEVBQUMsU0FBUyxFQUFFLGNBQWMsRUFBQyxNQUFNLDRCQUE0QixDQUFDO0FBRXJFLE9BQU8sRUFBQyx3QkFBd0IsRUFBQyxNQUFNLGlEQUFpRCxDQUFDOzs7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