import { __decorate } from "tslib";
import { observable } from '@ni/fast-element';
import { applyMixins, DesignSystem, FoundationElement, StartEnd } from '@ni/fast-foundation';
import { styles } from './styles';
import { template } from './template';
/**
 * A Spright component for displaying a chat message
 */
export class ChatMessageInbound extends FoundationElement {
    constructor() {
        super(...arguments);
        /** @internal */
        this.footerActionsIsEmpty = true;
    }
    slottedFooterActionsElementsChanged(_prev, next) {
        this.footerActionsIsEmpty = next === undefined || next.length === 0;
    }
}
__decorate([
    observable
], ChatMessageInbound.prototype, "footerActionsIsEmpty", void 0);
__decorate([
    observable
], ChatMessageInbound.prototype, "slottedFooterActionsElements", void 0);
applyMixins(ChatMessageInbound, StartEnd);
const sprightChatMessageInbound = ChatMessageInbound.compose({
    baseName: 'chat-message-inbound',
    template,
    styles
});
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageInbound());
export const chatMessageInboundTag = 'spright-chat-message-inbound';
//# sourceMappingURL=index.js.map