+ {#if !virtualize || renderAll || visibleBoxes.has(boxNumber) || focusedBox === boxNumber}
+
+
+
Box {boxNumber}
+ {#if !readOnly}
+
- {#if openBulkMenuForBox === boxNumber}
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
-
- {/if}
-
{/if}
-
-
- {#each BOX_POSITIONS as positionInBox}
- {@const globalIndex = (boxNumber - 1) * POKEMON_PER_BOX + positionInBox}
- {@const placement = calculateBoxPlacement(globalIndex)}
- {@const entry = combinedData?.[globalIndex]}
- {@const pokedexEntry = entry?.pokedexEntry}
- {@const catchRecord = entry?.catchRecord ?? null}
- {@const isFilteredOut =
- !!entry && filtersActive && !!filtersKey && !matchesFilters(catchRecord)}
- {#if entry && pokedexEntry}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/if}
+ {/if}
+
+ {#each BOX_POSITIONS as positionInBox}
+ {@const globalIndex = (boxNumber - 1) * POKEMON_PER_BOX + positionInBox}
+ {@const placement = calculateBoxPlacement(globalIndex)}
+ {@const entry = combinedData?.[globalIndex]}
+ {@const pokedexEntry = entry?.pokedexEntry}
+ {@const catchRecord = entry?.catchRecord ?? null}
+ {@const isFilteredOut =
+ !!entry && filtersActive && !!filtersKey && !matchesFilters(catchRecord)}
+ {#if entry && pokedexEntry}
+
- {:else}
-
+ {:else}
+
- {/if}
- {/each}
-