import { Component, HostBinding, Inject, Input } from '@angular/core';
import { UI_ASSETS_PATH } from '../tokens';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
export const flagSizes = ['m', 's'];
export const flagCurrency = ['USD', 'EUR', 'GBP'];
export class CurrencyFlagComponent {
    constructor(assetsPath) {
        this.assetsPath = assetsPath;
        this.size = 'm';
    }
    ngOnInit() {
    }
}
CurrencyFlagComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.4", ngImport: i0, type: CurrencyFlagComponent, deps: [{ token: UI_ASSETS_PATH }], target: i0.ɵɵFactoryTarget.Component });
CurrencyFlagComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.4", type: CurrencyFlagComponent, selector: "ui-currency-flag", inputs: { currency: "currency", size: "size" }, host: { properties: { "attr.size": "this.size" } }, ngImport: i0, template: "<ng-container [ngSwitch]=\"currency\">\n  <img *ngSwitchCase=\"'EUR'\" [src]=\"assetsPath + 'images/flag-EUR.png'\" alt=\"Euro\">\n  <img *ngSwitchCase=\"'USD'\" [src]=\"assetsPath + 'images/flag-USD.png'\" alt=\"US Dollar\">\n  <img *ngSwitchCase=\"'GBP'\" [src]=\"assetsPath + 'images/flag-GBP.png'\" alt=\"British Pound\">\n</ng-container>\n", styles: [":host{position:relative;display:block;border-radius:50%;overflow:hidden;flex-shrink:0}:host[size=m]{width:40px;height:40px}:host[size=s]{width:20px;height:20px}:host img{position:absolute;top:0;left:50%;width:auto;height:100%;min-width:32px;transform:translate(-50%)}\n"], dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.4", ngImport: i0, type: CurrencyFlagComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ui-currency-flag', template: "<ng-container [ngSwitch]=\"currency\">\n  <img *ngSwitchCase=\"'EUR'\" [src]=\"assetsPath + 'images/flag-EUR.png'\" alt=\"Euro\">\n  <img *ngSwitchCase=\"'USD'\" [src]=\"assetsPath + 'images/flag-USD.png'\" alt=\"US Dollar\">\n  <img *ngSwitchCase=\"'GBP'\" [src]=\"assetsPath + 'images/flag-GBP.png'\" alt=\"British Pound\">\n</ng-container>\n", styles: [":host{position:relative;display:block;border-radius:50%;overflow:hidden;flex-shrink:0}:host[size=m]{width:40px;height:40px}:host[size=s]{width:20px;height:20px}:host img{position:absolute;top:0;left:50%;width:auto;height:100%;min-width:32px;transform:translate(-50%)}\n"] }]
        }], ctorParameters: function () { return [{ type: undefined, decorators: [{
                    type: Inject,
                    args: [UI_ASSETS_PATH]
                }] }]; }, propDecorators: { currency: [{
                type: Input
            }], size: [{
                type: HostBinding,
                args: ['attr.size']
            }, {
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3ktZmxhZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi91aS1raXQvc3JjL2xpYi9jdXJyZW5jeS1mbGFnL2N1cnJlbmN5LWZsYWcuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vdWkta2l0L3NyYy9saWIvY3VycmVuY3ktZmxhZy9jdXJyZW5jeS1mbGFnLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsV0FBVyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQVMsTUFBTSxlQUFlLENBQUM7QUFDNUUsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLFdBQVcsQ0FBQzs7O0FBRXpDLE1BQU0sQ0FBQyxNQUFNLFNBQVMsR0FBRyxDQUFDLEdBQUcsRUFBRSxHQUFHLENBQVUs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