{#if searchQuery?.length > 0} {/if}
{#each searchQuery?.length !== 0 ? testList : allRows as item}
{#if defaultRules?.includes(item?.rule)} {:else if data?.user?.tier === "Pro" || excludedRules?.has(item?.rule)} {:else} {item?.name} {/if}
{/each}
{#each stockList as item, index} {#each columns as column} {/each} {/each}
{#if item[column.key] === null || item[column.key] === undefined} - {:else if column.key === "symbol"} {:else if column.key === "name"} {#if item[column.key]?.length > charNumber} {item[column.key]?.slice(0, charNumber) + "..."} {:else} {item[column.key]} {/if} {:else if column?.type === "int"} {abbreviateNumber(item[column.key])} {:else if column.key === "price"} {item[column.key]?.toFixed(2)} {:else if column.type === "percent"} {item[column.key]?.toFixed(2) + "%"} {:else if column.type === "percentSign"} {#if item[column.key] >= 0} +{item[column.key]?.toFixed(2)}% {:else} {item[column.key]?.toFixed(2)}% {/if} {:else if column?.type === "rating"} {#if ["Strong Buy", "Buy"].includes(item[column.key])} {item[column.key]} {:else if ["Strong Sell", "Sell"].includes(item[column.key])} {item[column.key]} {:else if item[column.key] === "Hold"} {item[column.key]} {:else} - {/if} {:else if column.type === "sentiment"}
= 55 ? "text-[#00FC50]" : item[column.key] >= 50 ? "text-[#E57C34]" : "text-[#FF2F1F]"} >
{item[column.key] >= 80 ? "Very Bullish" : item[column.key] >= 55 ? "Bullish" : item[column.key] > 50 ? "Mixed" : "Bearish"}
{item[column.key]}
{:else} {item[column.key]} {/if}