import { CommonModule } from '@angular/common';
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { ButtonModule } from '@aztrix/components/button';
import { HelperPipesModule } from '@aztrix/helpers';
import { TierSubscriptionRepresentation } from '@aztrix/sdk';
import * as i0 from "@angular/core";
import * as i1 from "@aztrix/components/button";
import * as i2 from "@aztrix/helpers";
export class ConfirmTierSubscriptionComponent {
    constructor() {
        this.confirm = new EventEmitter();
        this.cancel = new EventEmitter();
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConfirmTierSubscriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ConfirmTierSubscriptionComponent, isStandalone: true, selector: "ax-confirm-tier-subscription", inputs: { newTierSubscription: "newTierSubscription" }, outputs: { confirm: "confirm", cancel: "cancel" }, ngImport: i0, template: "{{\n  'tiers.upgrade-downgrade.modal.downgrade.message.1'\n    | translate: {nextTier: newTierSubscription.tier}\n}}\n\n<div class=\"btn-wrapper\">\n  <button class=\"button\" axButton (click)=\"confirm.next()\" filled fullWidth color=\"primary\">\n    {{ 'tiers.upgrade-downgrade.modal.downgrade.confirm.free' | translate }}\n  </button>\n  <button axButton (click)=\"cancel.next()\" color=\"danger\">\n    {{ 'label.cancel' | translate }}\n  </button>\n</div>\n", styles: [":host{display:block;padding:1rem}.btn-wrapper{margin-top:1rem;display:flex;flex-direction:column;gap:1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[axButton]", inputs: ["color", "labelHideMobile", "smallButton", "bigButton", "fullWidth", "filled", "outline", "icon-button", "hoverLabel", "hover", "lowercase", "disabled"] }, { kind: "ngmodule", type: HelperPipesModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConfirmTierSubscriptionComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-confirm-tier-subscription', standalone: true, imports: [CommonModule, ButtonModule, HelperPipesModule], template: "{{\n  'tiers.upgrade-downgrade.modal.downgrade.message.1'\n    | translate: {nextTier: newTierSubscription.tier}\n}}\n\n<div class=\"btn-wrapper\">\n  <button class=\"button\" axButton (click)=\"confirm.next()\" filled fullWidth color=\"primary\">\n    {{ 'tiers.upgrade-downgrade.modal.downgrade.confirm.free' | translate }}\n  </button>\n  <button axButton (click)=\"cancel.next()\" color=\"danger\">\n    {{ 'label.cancel' | translate }}\n  </button>\n</div>\n", styles: [":host{display:block;padding:1rem}.btn-wrapper{margin-top:1rem;display:flex;flex-direction:column;gap:1rem}\n"] }]
        }], propDecorators: { newTierSubscription: [{
                type: Input
            }], confirm: [{
                type: Output
            }], cancel: [{
                type: Output
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS10aWVyLXN1YnNjcmlwdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvdGllcnMvY29uZmlybS10aWVyLXN1YnNjcmlwdGlvbi9jb25maXJtLXRpZXItc3Vic2NyaXB0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy90aWVycy9jb25maXJtLXRpZXItc3Vic2NyaXB0aW9uL2NvbmZpcm0tdGllci1zdWJzY3JpcHRpb24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQzdDLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQU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