{#if currentValue !== undefined && currentUnit !== undefined && progress !== undefined && maxValue !== undefined && maxUnit !== undefined}

{currentValue} {currentUnit}

{progress}%

{maxValue} {maxUnit}

{/if} {#if showBar && progressBarData.length > 0} {/if}