calculations.push( createCalculation(String(calculations.length)), )} class="btn btn-primary">New
downloadObject(calculations)} class="btn btn-secondary">Export
{#each calculations as calculation, index}
OVERALL
{calculation?.levels?.player || "N/A"}
{#each Object.values(Attribute) as attribute}
{attribute}
{calculation?.levels?.attributes?.[ attribute ] || "N/A"}
{/each}
(calculation.levels = levelCalculator.calculate( calculation.player, calculation.activityPerformances, ))} >
Gender
{#each Object.values(Gender) as gender}
{gender}
{/each}
Age
Weight
{#each range(400) as weight}
{weight}
{/each}
(calculation.levels = levelCalculator.calculate( calculation.player, calculation.activityPerformances, ))} >
{#each calculation.activityPerformances as activityPerformance}
{activityPerformance.activity}
{#each performanceOptionsFromActivity(activityPerformance.activity) as option}
{option.name}
{/each}
{/each}
confirm(`Delete ${calculation.player.name}?`) && calculations.splice(index, 1)} class="btn btn-error btn-sm w-1/4">Delete
{/each}