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