import { Component, HostBinding, Input } from '@angular/core';
import { coerceBooleanProperty } from '@angular/cdk/coercion';
import * as i0 from "@angular/core";
import * as i1 from "../../../avatar/avatar.component";
import * as i2 from "@angular/common";
import * as i3 from "../../../avatar/initials.pipe";
export class OptionUserComponent {
    constructor() {
        this.compact = false;
    }
    set setCompact(value) {
        this.compact = coerceBooleanProperty(value);
    }
    ngOnInit() {
    }
}
OptionUserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: OptionUserComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
OptionUserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: OptionUserComponent, selector: "ui-option-user", inputs: { account: "account", name: "name", setCompact: ["compact", "setCompact"] }, host: { properties: { "class.compact": "this.compact" } }, ngImport: i0, template: "<ui-avatar [size]=\"compact ? 's' : 'm'\">{{name | initials}}</ui-avatar>\n<div>\n  <div class=\"user\" [class.user--inline]=\"compact\">\n    <div class=\"user__name\">\n      <ng-content></ng-content>\n    </div>\n    <div class=\"user__account\" *ngIf=\"account\">\n      {{account}}\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}:host.compact{grid-gap:8px;gap:8px}:host-context(ui-select-option.disabled){cursor:not-allowed}.user--inline{display:flex;justify-content:space-between}.user__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user__account{font-size:var(--font-size-s);color:var(--color-contrast-40);padding-top:4px}.user--inline .user__account{font-size:var(--font-size);padding:0 0 0 12px}"], components: [{ type: i1.AvatarComponent, selector: "ui-avatar", inputs: ["size", "role", "icon", "iconStatus", "imageUrl", "imageAlt", "text"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "initials": i3.InitialsPipe } });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: OptionUserComponent, decorators: [{
            type: Component,
            args: [{
                    selector: 'ui-option-user',
                    templateUrl: './option-user.component.html',
                    styleUrls: ['./option-user.component.scss']
                }]
        }], ctorParameters: function () { return []; }, propDecorators: { compact: [{
                type: HostBinding,
                args: ['class.compact']
            }], account: [{
                type: Input
            }], name: [{
                type: Input
            }], setCompact: [{
                type: Input,
                args: ['compact']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3B0aW9uLXVzZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vdWkta2l0L3NyYy9saWIvZm9ybS9vcHRpb24vb3B0aW9uLXVzZXIvb3B0aW9uLXVzZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vdWkta2l0L3NyYy9saWIvZm9ybS9vcHRpb24vb3B0aW9uLXVzZXIvb3B0aW9uLXVzZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxXQUFXLEVBQUUsS0FBSyxFQUFTLE1BQU0sZUFBZSxDQUFDO0FBQ3BFLE9BQU8sRUFBQyxxQkFBcUIsRUFBQyxNQUFNLHVCQUF1QixDQUFDOzs7OztBQU81RCxNQUFNLE9BQU8sbUJBQW1CO0lBWTlCO1FBVEEsWUFBTyxHQUFHLEtBQUssQ0FBQztJQVVoQixDQUFDO0lBTEQsSUFBc0IsVUFBVSxDQUFDLEtBQWM7UUFDN0MsSUFBSSxDQUFDLE9BQU8sR0FBRyxxQkFBcUIsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUM5QyxDQUFDO0lBS0QsUUFBUTtJQUNSLENBQUM7O2dIQWhCVSxtQkFBbUI7b0dBQW5CLG1CQUFtQixzTUNSaEMsZ1VBV0E7MkZESGEs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