import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@aztrix/icons";
import * as i3 from "@aztrix/helpers";
export 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
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1tZXRob2QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3BheW1lbnQtbWV0aG9kL3BheW1lbnQtbWV0aG9kLmNvbXBvbmVudC50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