import * as i0 from '@angular/core';
import { Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
import * as i1 from '@angular/common';
import { CommonModule } from '@angular/common';
import * as i2 from '@aztrix/icons';
import { IconsModule } from '@aztrix/icons';
import * as i3 from '@aztrix/helpers';
import { HelperPipesModule } from '@aztrix/helpers';
import { ButtonModule } from '@aztrix/components/button';

class PaymentMethodComponent {
    constructor() {
        this.selectMode = false;
    }
}
PaymentMethodComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PaymentMethodComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
PaymentMethodComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: PaymentMethodComponent, selector: "ax-payment-method", inputs: { method: "method", selectMode: "selectMode" }, ngImport: i0, template: "<div class=\"method-wrapper\" [ngClass]=\"{selectmode: selectMode}\" *ngIf=\"method?.id\">\n  <ax-icon class=\"icon card-icon\" [name]=\"'brands:' + method.card.brand\"></ax-icon>\n  <div>\n    <span class=\"fake-digits\">&#8226;&#8226;&#8226;&#8226;&nbsp;</span>\n    <span class=\"last-digits\">{{ method.card.last4 }}</span>\n  </div>\n</div>\n\n<div class=\"method-wrapper\" [ngClass]=\"{selectmode: selectMode}\" *ngIf=\"!method?.id\">\n  <ax-icon class=\"icon\" [name]=\"'plus'\"></ax-icon>\n  <span class=\"last-digits\">{{ 'label.new' | translate }}</span>\n</div>\n", styles: [".method-wrapper{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;padding:.75rem;background-color:#efefef;border-radius:10px}.method-wrapper.selectmode{padding:0;border-radius:0;background-color:transparent}.method-wrapper .icon:not(.card-icon){width:1rem;height:1rem}.card-icon{width:32px;height:24px;background-color:#fff;border:1px solid #d7dde4;border-radius:2px;padding:1px}.fake-digits{font-size:.75rem;line-height:1rem;letter-spacing:.75px;vertical-align:middle}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "ax-icon", inputs: ["name", "inline"] }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PaymentMethodComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-payment-method', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"method-wrapper\" [ngClass]=\"{selectmode: selectMode}\" *ngIf=\"method?.id\">\n  <ax-icon class=\"icon card-icon\" [name]=\"'brands:' + method.card.brand\"></ax-icon>\n  <div>\n    <span class=\"fake-digits\">&#8226;&#8226;&#8226;&#8226;&nbsp;</span>\n    <span class=\"last-digits\">{{ method.card.last4 }}</span>\n  </div>\n</div>\n\n<div class=\"method-wrapper\" [ngClass]=\"{selectmode: selectMode}\" *ngIf=\"!method?.id\">\n  <ax-icon class=\"icon\" [name]=\"'plus'\"></ax-icon>\n  <span class=\"last-digits\">{{ 'label.new' | translate }}</span>\n</div>\n", styles: [".method-wrapper{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;padding:.75rem;background-color:#efefef;border-radius:10px}.method-wrapper.selectmode{padding:0;border-radius:0;background-color:transparent}.method-wrapper .icon:not(.card-icon){width:1rem;height:1rem}.card-icon{width:32px;height:24px;background-color:#fff;border:1px solid #d7dde4;border-radius:2px;padding:1px}.fake-digits{font-size:.75rem;line-height:1rem;letter-spacing:.75px;vertical-align:middle}\n"] }]
        }], propDecorators: { method: [{
                type: Input
            }], selectMode: [{
                type: Input
            }] } });

class PaymentMethodModule {
}
PaymentMethodModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PaymentMethodModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
PaymentMethodModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: PaymentMethodModule, declarations: [PaymentMethodComponent], imports: [CommonModule, HelperPipesModule, IconsModule, ButtonModule], exports: [PaymentMethodComponent] });
PaymentMethodModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PaymentMethodModule, imports: [CommonModule, HelperPipesModule, IconsModule, ButtonModule] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PaymentMethodModule, decorators: [{
            type: NgModule,
            args: [{
                    declarations: [PaymentMethodComponent],
                    imports: [CommonModule, HelperPipesModule, IconsModule, ButtonModule],
                    exports: [PaymentMethodComponent],
                }]
        }] });

/**
 * Generated bundle index. Do not edit.
 */

export { PaymentMethodComponent, PaymentMethodModule };
//# sourceMappingURL=aztrix-components-payment-method.mjs.map
//# sourceMappingURL=aztrix-components-payment-method.mjs.map
