import { faFileAlt } from "@fortawesome/free-solid-svg-icons/faFileAlt";
import { faLock } from "@fortawesome/free-solid-svg-icons/faLock";
import { h } from "@stencil/core";
import classNames from "classnames";
export class TransactionAccount {
    constructor() {
        this.showLockedAccounts = false;
    }
    render() {
        return (h("div", { key: 'f8ee292d243512d93eab9ab3b67e91c8a981ccd8', class: classNames(this.class, 'transaction-account'), "data-testid": this.dataTestId }, this.showLockedAccounts && this.account.isTokenLocked && h("fa-icon", { key: '8ef9d1bd8672689eb00a240491f458f62c9b8548', icon: faLock, description: this.account.name }), this.account.isContract && h("fa-icon", { key: 'b2c55d5f21afaab3c9c8cc612c8070eecbfb2762', icon: faFileAlt, description: "Smart Contract" }), this.account.showLink ? (h("explorer-link", { link: this.account.link, "data-testid": `${this.scope}Link` }, h("transaction-account-name", { slot: "content", name: this.account.name, description: this.account.description, address: this.account.address }))) : (h("transaction-account-name", { name: this.account.name, description: this.account.description, address: this.account.address }))));
    }
    static get is() { return "transaction-account"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["transaction-account.css"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["transaction-account.css"]
        };
    }
    static get properties() {
        return {
            "account": {
                "type": "unknown",
                "mutable": false,
                "complexType": {
                    "original": "ITransactionAccount",
                    "resolved": "ITransactionAccount",
                    "references": {
                        "ITransactionAccount": {
                            "location": "import",
                            "path": "../../transactions-table.type",
                            "id": "src/components/controlled/transactions-table/transactions-table.type.ts::ITransactionAccount"
                        }
                    }
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false
            },
            "class": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "attribute": "class",
                "reflect": false
            },
            "dataTestId": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "attribute": "data-test-id",
                "reflect": false
            },
            "scope": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "'receiver' | 'sender'",
                    "resolved": "\"receiver\" | \"sender\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "attribute": "scope",
                "reflect": false
            },
            "showLockedAccounts": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "attribute": "show-locked-accounts",
                "reflect": false,
                "defaultValue": "false"
            }
        };
    }
}
//# sourceMappingURL=transaction-account.js.map
