Price [ {selectedCountry.toUpperCase()} ]
View main Price sheet data for this country.
{#if saving}
Saving {:else}
Save Changes ({getChangedUpdates().length}) {/if}
{#if loading}
Loading {:else}
Refresh {/if}
Add Row
{#if loading && rows.length === 0}
Loading Price data...
{:else if rows.length === 0}
No Price data loaded. Click Refresh to load data.
{:else if filteredRows.length === 0}
No rows match your search.
{:else}
Row
{#each visibleHeader as column}
{column}
{/each}
{#each filteredRows as row, index (`${row.row}-${row.cells[0]?.value ?? ''}-${index}`)}
{row.row}
{#each visibleHeader as _, index}
{#if index + 1 === priceColumnIndex}
setEditedPrice(row, event.currentTarget.value)} /> {:else} {row.cells.find((cell) => cell.coord?.col === index + 1)?.value ?? ''} {/if}
{/each}
{/each}
{/if}