import { CommonModule } from '@angular/common';
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { ButtonModule } from '@aztrix/components/button';
import { TranslatePipe } from '@aztrix/translate';
import { TierSubscriptionRepresentation } from '@aztrix/sdk';
import * as i0 from "@angular/core";
import * as i1 from "@aztrix/components/button";
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: "pipe", type: 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, TranslatePipe], 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS10aWVyLXN1YnNjcmlwdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvdGllcnMvY29uZmlybS10aWVyLXN1YnNjcmlwdGlvbi9jb25maXJtLXRpZXItc3Vic2NyaXB0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy90aWVycy9jb25maXJtLXRpZXItc3Vic2NyaXB0aW9uL2NvbmZpcm0tdGllci1zdWJzY3JpcHRpb24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQzdDLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDckUsT0FBTyxFQUFD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