+
+
+
+ d.showBadge !== false, (val) => update('showBadge', val)}
+ id="hero-show-badge"
+ variant="secondary"
+ />
+
+
+
+ d.showSubtitle !== false, (val) => update('showSubtitle', val)}
+ id="hero-show-subtitle"
+ variant="secondary"
+ />
+
+
+
+ d.showButton !== false, (val) => update('showButton', val)}
+ id="hero-show-button"
+ variant="secondary"
+ />
+
+
+
+
+
+
+ update('buttonHref', (e.target as HTMLInputElement).value)}
+ placeholder="example.com"
+ class="text-sm"
+ onkeydown={(event) => {
+ if (event.code === 'Enter') {
+ event.preventDefault();
+ confirmUrl();
+ }
+ }}
+ />
+
+
+
+
+
d.textAlign ?? 'center',
+ (value) => {
+ if (value) update('textAlign', value);
+ }
+ }
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+ {#if filledSlots.length > 0}
+
+
+ {#each filledSlots as { slot, item: slotItem } (slot.id)}
+
+
+ {slot.side === 'left' ? 'L' : 'R'}{DEFAULT_DECORATION_SLOTS.filter(
+ (s) => s.side === slot.side
+ ).indexOf(slot) + 1}
+
+
+ {CardDefinitionsByType[slotItem?.cardType ?? '']?.name ?? slotItem?.cardType}
+
+
+
+ {/each}
+
+ {/if}
+
+