import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "../../../currency-flag/currency-flag.component";
import * as i3 from "../../../avatar/avatar.component";
export class DropdownSnippetAccountComponent {
    constructor() {
        this.balance = null;
    }
    ngOnInit() {
    }
}
DropdownSnippetAccountComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.4", ngImport: i0, type: DropdownSnippetAccountComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
DropdownSnippetAccountComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.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}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.CurrencyFlagComponent, selector: "ui-currency-flag", inputs: ["currency", "size"] }, { kind: "component", type: i3.AvatarComponent, selector: "ui-avatar", inputs: ["size", "role", "icon", "iconState", "imageUrl", "imageAlt", "text"] }, { kind: "pipe", type: i1.CurrencyPipe, name: "currency" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.4", ngImport: i0, type: DropdownSnippetAccountComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ui-dropdown-snippet-account', 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}\n"] }]
        }], ctorParameters: function () { return []; }, propDecorators: { currency: [{
                type: Input
            }], balance: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tc25pcHBldC1hY2NvdW50LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3VpLWtpdC9zcmMvbGliL2Ryb3Bkb3duL2Ryb3Bkb3duLWl0ZW0vZHJvcGRvd24tc25pcHBldC1hY2NvdW50L2Ryb3Bkb3duLXNuaXBwZXQtYWNjb3VudC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi91aS1raXQvc3JjL2xpYi9kcm9wZG93bi9kcm9wZG93bi1pdGVtL2Ryb3Bkb3duLXNuaXBwZXQtYWNjb3VudC9kcm9wZG93bi1zbmlwcGV0LWFjY291bnQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQVMsTUFBTSxlQUFlLENBQUM7Ozs7O0FBT3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