{#if CardDefinitionsByType[item.cardType]} {@const cardDef = CardDefinitionsByType[item.cardType]} {:else}
Unsupported card type: {item.cardType}
{/if}