{#if store.state.jwtinfo.userdetails.permissions.includes("TEAM:GET")} {#await promise} {:then} {#if current_contacts.length === 0} {:else}
{#each current_contacts as t} {#if Object.values(t) .toString() .toLowerCase() .includes(searchvalue)} {#if active_deletes[t.id] === true} {:else} {/if} {/if} {/each}
{$_("name")} {$_("groups")} {$_("address")} {$_("action")}
{t.firstname} {t.middlename || ""} {t.lastname}
{#if t.groups.length > 0} {#each t.groups as g} {#if g.responseType === "RUNNERORGANIZATION"} {g.name} {:else} {g.parentGroup.name} > {g.name} {/if} {/each} {:else} {$_("contact-is-not-a-member-in-any-group")} {/if}
{#if t.address.address1 !== null} {t.address.address1}
{t.address.address2 || ""}
{t.address.postalcode} {t.address.city} {t.address.country} {/if}
{$_("details")} {#if store.state.jwtinfo.userdetails.permissions.includes("TEAM:DELETE")} {/if}
{/if} {:catch error}
{$_("general_promise_error")} {error}
{/await} {/if}