+ {routeIndex.value > 0 ? (
+
{formatWhole(routeIndex.value)} already checked
+ ) : null}
+
+ {formatWhole(currentRoutes.value - routeIndex.value)} routes left to check
+
+
+ );
+ }
+ if (typeof currentRoutes.value === "number") {
+ console.error("Something went horribly wrong");
+ return;
+ }
+ const routes = currentRoutes.value.slice();
+ let showPrevious = false;
+ let showNext = 0;
+ if (routes.length > 6) {
+ routes.splice(0, routeIndex.value);
+ showPrevious = true;
+ if (routes.length > 6) {
+ showNext = routes.length - 5;
+ routes.splice(5);
+ }
+ }
+ return (
+
+ {showPrevious && routeIndex.value > 0 ? (
+
{formatWhole(routeIndex.value)} already checked
+ ) : null}
+ {routes.map((route, i) => {
+ const index = i + (showPrevious ? routeIndex.value : 0);
+ return (
+
route[1],
+ checked: routeIndex.value > index,
+ processing: routeIndex.value === index,
+ skipped:
+ routeIndex.value < index && routesToSkip.value.includes(index)
+ }}
+ >
+ {stringifyRoute(route)}
+
+ );
+ })}
+
+ {showNext > 0 ?
+ {formatWhole(showNext)} more
: null}
+
+ );
+ }
+
+ return {
+ name,
+ day,
+ color,
+ citiesCompleted,
+ currentCity,
+ routeIndex,
+ checkRouteProgress,
+ newCityProgress,
+ boostProgress,
+ redundantProgress,
+ generalTabCollapsed,
+ currentRoutes,
+ redundantRoutes,
+ routesToSkip,
+ redundanciesRemoved,
+ city,
+ milestones,
+ collapseMilestones,
+ minWidth: 700,
+ display: jsx(() => (
+ <>
+
+ {main.day.value === day
+ ? `Solve ${formatWhole(citiesGoal)} countries to complete the day`
+ : `${name} Complete!`}{" "}
+ -{" "}
+
+
+ {render(dayProgress)}
+ {render(modifiersModal)}
+