+
+
+
+
+ {#if breadcrumb.length > 1}
+
+ {#if errorMessage}
+
+
+ {errorMessage}
+
+ {/if}
+
+
+ {#if step === "browse"}
+ {#if isLoadingTree}
+
+
+
Loading catalog...
+
+ {:else if selectedEcosystem}
+
+
+ {selectedEcosystem.name} — Select a manufacturer
+
+
+
+ {#each selectedEcosystem.manufacturers as mfr}
+
+ {/each}
+
+ {:else if selectedCategory}
+
+
+
+
+ {#if categoryGroups.length > 0}
+
+
+
+
+ {#each categoryGroups as group}
+
+
+ {#if expandedGroupName === group.name && (group.subcategories?.length ?? 0) > 0}
+
+
+
+ {#each group.subcategories ?? [] as sub}
+
+ {/each}
+
+ {/if}
+
+ {/each}
+
+ {:else}
+
+ {/if}
+
+ {:else}
+
+
+
+ {#if categories.length > 0}
+
Categories
+
+ {#each categories as cat}
+
+ {/each}
+
+ {/if}
+
+ {#if ecosystems.length > 0}
+
Ecosystems
+
+ {#each ecosystems as eco}
+
+ {/each}
+
+ {/if}
+ {/if}
+
+
+ {:else if step === "results"}
+
+
+
+
+
+ {#if filterSubcategories.length > 0 && !filters.subcategory && !filters.group}
+
+ {/if}
+ {#if filterManufacturers.length > 0 && !filters.manufacturer}
+
+ {/if}
+ {#if !filters.inStock}
+
+ {/if}
+
+
+
+
+ {#if isLoadingResults}
+ Searching...
+ {:else}
+ {totalResults} result{totalResults !== 1 ? "s" : ""}
+ {/if}
+
+
+
+ {#if isLoadingResults}
+
+ {:else if results.length === 0}
+
+
+ No items match your filters
+
+ {:else}
+
+ {#each results as item}
+
+ {/each}
+
+
+
+ {#if totalPages > 1}
+
+ {/if}
+ {/if}
+ {/if}
+