import { Component, ElementRef, 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(_elementRef, _overlay) {
        this._elementRef = _elementRef;
        this._overlay = _overlay;
        this.bigLogo = false;
        this.legal = true;
        this.name = 'custom:aztrix_logo';
    }
    openDialog(evt) {
        evt.preventDefault();
        this._overlay.createModal(this._elementRef, AztrixInfoModalComponent, {
            modalSize: ModalSize.EXTRA_SMALL,
            init: (modal) => {
                modal.legal = this.legal;
            },
        });
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PoweredByAztrixComponent, deps: [{ token: i0.ElementRef }, { token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", 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: "17.3.12", 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: () => [{ type: i0.ElementRef }, { type: i1.OverlayService }], propDecorators: { bigLogo: [{
                type: Input
            }], legal: [{
                type: Input
            }], name: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG93ZXJlZC1ieS1henRyaXguY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3Bvd2VyZWQtYnktYXp0cml4L3Bvd2VyZWQtYnktYXp0cml4LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLFVBQVUsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDM0QsT0FBTyxFQUFDLFNBQVMsRUFBRSxjQUFjLEVBQUMsTUFBTSw0QkFBNEIsQ0FBQztBQUVyR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