import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "../../../avatar/avatar.component";
import * as i2 from "../../../currency-flag/currency-flag.component";
import * as i3 from "@angular/common";
export class DropdownSnippetAccountComponent {
    constructor() {
        this.balance = null;
    }
    ngOnInit() {
    }
}
DropdownSnippetAccountComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: DropdownSnippetAccountComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
DropdownSnippetAccountComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: DropdownSnippetAccountComponent, selector: "ui-dropdown-snippet-account", inputs: { currency: "currency", balance: "balance" }, ngImport: i0, template: "<ui-avatar *ngIf=\"currency\">\n  <ui-currency-flag [currency]=\"currency\"></ui-currency-flag>\n</ui-avatar>\n<div>\n  <div class=\"account\">\n    <div class=\"account__name\">\n      <ng-content></ng-content>\n    </div>\n    <div class=\"account__balance\" *ngIf=\"balance !== null && currency\">\n      {{balance | currency: currency:'symbol-narrow':'0.2-8'}}\n    </div>\n  </div>\n</div>\n", styles: [":host{display:grid;grid-template-columns:auto minmax(1px,1fr);align-items:center;grid-gap:12px;gap:12px}ui-avatar{flex-shrink:0}.account{line-height:1}.account__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account__balance{font-size:var(--font-size-s);color:var(--color-contrast-40);padding-top:7px}"], components: [{ type: i1.AvatarComponent, selector: "ui-avatar", inputs: ["size", "role", "icon", "iconStatus", "imageUrl", "imageAlt", "text"] }, { type: i2.CurrencyFlagComponent, selector: "ui-currency-flag", inputs: ["currency", "size"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "currency": i3.CurrencyPipe } });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: DropdownSnippetAccountComponent, decorators: [{
            type: Component,
            args: [{
                    selector: 'ui-dropdown-snippet-account',
                    templateUrl: './dropdown-snippet-account.component.html',
                    styleUrls: ['./dropdown-snippet-account.component.scss']
                }]
        }], ctorParameters: function () { return []; }, propDecorators: { currency: [{
                type: Input
            }], balance: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tc25pcHBldC1hY2NvdW50LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3VpLWtpdC9zcmMvbGliL2Ryb3Bkb3duL2Ryb3Bkb3duLWl0ZW0vZHJvcGRvd24tc25pcHBldC1hY2NvdW50L2Ryb3Bkb3duLXNuaXBwZXQtYWNjb3VudC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi91aS1raXQvc3JjL2xpYi9kcm9wZG93bi9kcm9wZG93bi1pdGVtL2Ryb3Bkb3duLXNuaXBwZXQtYWNjb3VudC9kcm9wZG93bi1zbmlwcGV0LWFjY291bnQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQVMsTUFBTSxlQUFlLENBQUM7Ozs7O0FBT3ZELE1BQU0sT0FBTywrQkFBK0I7SUFLMUM7UUFGUyxZQUFPLEdBQW9CLElBQUksQ0FBQztJQUd6QyxDQUFDO0lBRUQsUUFBUTtJQUNSLENBQUM7OzRIQVRVLCtCQUErQjtnSEFBL0IsK0JBQStCLHlIQ1A1Qyw4WUFhQTsyRkROYSwrQkFBK0I7a0JBTDNDLFNBQVM7bUJBQUM7b0JBQ1QsUUFBUSxFQUFFLDZCQUE2QjtvQkFDdkMsV0FBVyxFQUFFLDJDQUEyQztvQkFDeEQsU0FBUyxFQUFFLENBQUMsMkNBQTJDLENBQUM7aUJBQ3pEOzBFQUdVLFFBQ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