{ searchTerm = (e.target as HTMLInputElement).value; fetchVendor(searchTerm, true); }} />
{#each columns as col} {/each} {#each allRowsVendor as row} {#each columns as col} {/each} {/each}
{col.title}Actions
{row[col.key as keyof typeof row]}
Page {currentPage} of {totalPages} | Showing {currentPage === totalPages && totalItems > 0 ? totalItems - offset : itemsPerPage} items | Showing {offset + 1} to {Math.min(currentPage * itemsPerPage, totalItems)} of {totalItems}
{#each pageRange(totalPages, currentPage) as page} {#if page === "..."} ... {:else} {/if} {/each}
{#if showModal}

{isEditing ? "Edit Vendor" : "Add Vendor"}

{#each formColumns as col}
{#if col.key === "vendor_unique"} {:else} {/if}
{/each}
{/if}