(hoverRating = 0)} on:blur|preventDefault> {#each { length: count } as _, index} {@const value = index + 1} {@const filled = hoverRating >= value || (hoverRating === 0 && rating >= value)} {/each}