(function(){ // ============================================================ // stats.jsx — StatsView ("Reflektieren"-Tab) // Depends on window: localISO, todayISO, getCatColor, prioCol // ============================================================ function StatsView({ nonDeletedTodos, isMobile, data, settings, streakDays, longestStreak, avgCycle, moved, weekDone, weekCreated, weekStart, dayPlanArchive, last7Stats, maxStat, next7, setShowReview }){ const {localISO, todayISO, getCatColor, prioCol} = window; const t = window.t; const [statsSendSt, setStatsSendSt] = React.useState(""); const modules = settings.statsModules || {}; const show = (key) => modules[key] !== false; const WD = window.currentLang==="en" ? ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"] : ["So","Mo","Di","Mi","Do","Fr","Sa"]; const WD_MON = window.currentLang==="en" ? ["Mon","Tue","Wed","Thu","Fri","Sat","Sun"] : ["Mo","Di","Mi","Do","Fr","Sa","So"]; const locale = window.currentLang==="en" ? "en-GB" : "de-CH"; return(
{React.createElement(window.__SH,{kicker:t("stats.kicker"), title:t("stats.title"), subtitle:t("stats.subtitle")})} {/* Eigene Wochennotiz */} {show("notiz")&&(
{t("stats.ownNote")}