{#if loading}

Loading…

{:else if error}

{error}

{:else if athlete}
{#if editUrl} {/if}
{#if activeTab === 'power'} {#if athlete.power_curve.all_time}
{:else}

No power data found. Make sure your activities include power meter data and re-run bincio extract.

{/if} {:else if activeTab === 'records'} {:else if activeTab === 'profile'}

Key numbers

{#if athlete.max_hr}
Max HR {athlete.max_hr} bpm
{/if} {#if athlete.ftp_w}
FTP {athlete.ftp_w} W
{/if} {#if !athlete.max_hr && !athlete.ftp_w}

Set athlete.max_hr and athlete.ftp_w in your config, or use Edit profile.

{/if}
{#if athlete.hr_zones}

HR Zones

{#each athlete.hr_zones as _zone, i}
Z{i + 1} {fmtHrZone(athlete.hr_zones!, i)}
{/each}
{/if} {#if athlete.power_zones}

Power Zones

{#each athlete.power_zones as _zone, i}
Z{i + 1} {fmtZone(athlete.power_zones!, i)}
{/each}
{/if}
{/if} {/if} {#if drawerOpen && editUrl} drawerOpen = false} on:saved={onSaved} /> {/if}