Files
mission-control-v2/frontend/dist/assets/Start-vq5R-eQh.js
T
HitonabiandClaude Opus 5.5 241e91c03f Später · 19 Handy-Ansicht und installierbare App (ohne Web-Push)
- /handy: Ampel, „Braucht Aufmerksamkeit“ (Rückfragen mit Ja/Nein, rote vor gelben Hinweisen, Geräte ohne Antwort,
  bereite Updates), vier Wege weiter, Knopf „Als App auf dieses Gerät legen“, wo Chrome es anbietet
- Manifest: startet in der Handy-Ansicht, Sprache, Beschreibung, Kurzwege
- Seitenleiste: Handy-Ansicht nur in der Handy-Schublade; Strg+K kennt sie
- BEDIENUNG.md: App aufs Handy legen

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 09:39:30 +02:00

1 line
13 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{i as e,r as t,t as n}from"./dist-aE7UmubC.js";import{H as r,It as i,Ot as a,St as o,_t as s,gt as c,ht as l,jt as u,kt as d,nt as f,vt as p}from"./abfragen-pD_qBEtc.js";import{t as m}from"./button-BHVKhtQ6.js";import{D as h,H as g,O as _,U as v,m as y,yt as b,z as x}from"./index-B_hvuxH0.js";import{n as S,r as C,t as w}from"./Lagekopf-Cap3dqRY.js";var T=t(),E=e(),D={erledigt:{text:`Erledigt`,farbe:`text-gruen-text`,punkt:`bg-gruen`},fehler:{text:`Fehler`,farbe:`text-rot-text`,punkt:`bg-rot`},geplant:{text:`Geplant`,farbe:`text-text-3`,punkt:`bg-white/25`}};function O(e){let t=(0,T.c)(23),{e:r}=e,i=D[r.status]??D.geplant,a=r.status===`geplant`&&/update/i.test(r.titel)?`text-cyan-text`:i.farbe,o;t[0]===r.zeit?o=t[1]:(o=l(r.zeit),t[0]=r.zeit,t[1]=o);let s;t[2]===o?s=t[3]:(s=(0,E.jsx)(`span`,{className:`ziffern col-start-1 row-start-1 text-sm text-text-3`,children:o}),t[2]=o,t[3]=s);let c;t[4]===r.text?c=t[5]:(c=r.text&&(0,E.jsxs)(`span`,{className:`text-text-3`,children:[`, `,r.text]}),t[4]=r.text,t[5]=c);let u;t[6]!==r.titel||t[7]!==c?(u=(0,E.jsxs)(`span`,{className:`col-span-2 row-start-2 min-w-0 text-base break-words @sm:col-span-1 @sm:col-start-2 @sm:row-start-1`,children:[r.titel,c]}),t[6]=r.titel,t[7]=c,t[8]=u):u=t[8];let d;t[9]===a?d=t[10]:(d=n(`etikett col-start-2 row-start-1 flex items-center gap-1.5 justify-self-end text-[10.5px] tracking-[0.12em] @sm:col-start-3`,a),t[9]=a,t[10]=d);let f;t[11]===i.punkt?f=t[12]:(f=n(`size-1.5 rounded-full`,i.punkt),t[11]=i.punkt,t[12]=f);let p;t[13]===f?p=t[14]:(p=(0,E.jsx)(`span`,{"aria-hidden":!0,className:f}),t[13]=f,t[14]=p);let m;t[15]!==i.text||t[16]!==d||t[17]!==p?(m=(0,E.jsxs)(`span`,{className:d,children:[p,i.text]}),t[15]=i.text,t[16]=d,t[17]=p,t[18]=m):m=t[18];let h;return t[19]!==s||t[20]!==u||t[21]!==m?(h=(0,E.jsxs)(`li`,{className:`grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 gap-y-1 border-t border-white/[0.06] py-2.5 first:border-t-0 @sm:grid-cols-[112px_minmax(0,1fr)_auto]`,children:[s,u,m]}),t[19]=s,t[20]=u,t[21]=m,t[22]=h):h=t[22],h}function k(e){let t=(0,T.c)(6),{gelaufen:n,geplant:r}=e,i;t[0]!==n||t[1]!==r?(i=[...n,...r.slice(0,5)],t[0]=n,t[1]=r,t[2]=i):i=t[2];let a=i;if(a.length===0){let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,E.jsx)(`p`,{className:`text-[15px] text-text-2`,children:`Heute ist noch nichts gelaufen, und nichts ist geplant.`}),t[3]=e):e=t[3],e}let o;return t[4]===a?o=t[5]:(o=(0,E.jsx)(`ol`,{className:`@container m-0 flex list-none flex-col p-0`,children:a.map(A)}),t[4]=a,t[5]=o),o}function A(e){return(0,E.jsx)(O,{e},`${e.titel}-${e.zeit}`)}function j(e){let t=(0,T.c)(28),{anteil:n,farbe:r,zonen:i,mitte:a,unter:o,beschriftung:s,ariaText:c,hinweis:l}=e,u=r===void 0?`var(--box)`:r,f;t[0]===i?f=t[1]:(f=i===void 0?[]:i,t[0]=i,t[1]=f);let p=f,m=n!=null&&n>.004,h;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,E.jsx)(`path`,{d:d(0,1,75),fill:`none`,stroke:`rgb(255 255 255 / 0.07)`,strokeWidth:12,strokeLinecap:`round`}),t[2]=h):h=t[2];let g;t[3]===p?g=t[4]:(g=p.map(M),t[3]=p,t[4]=g);let _;t[5]!==n||t[6]!==u||t[7]!==m?(_=m&&(0,E.jsx)(`path`,{d:d(0,n,75),fill:`none`,stroke:u,strokeWidth:12,strokeLinecap:`round`,style:{filter:`drop-shadow(0 0 7px color-mix(in srgb, ${u} 60%, transparent))`}}),t[5]=n,t[6]=u,t[7]=m,t[8]=_):_=t[8];let v;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(v={fontFamily:`var(--font-anzeige)`,fontSize:40,fontWeight:600,fill:`var(--foreground)`},t[9]=v):v=t[9];let y;t[10]===a?y=t[11]:(y=(0,E.jsx)(`text`,{x:`100`,y:`102`,textAnchor:`middle`,style:v,children:a}),t[10]=a,t[11]=y);let b;t[12]===o?b=t[13]:(b=o&&(0,E.jsx)(`text`,{x:`100`,y:`124`,textAnchor:`middle`,style:{fontFamily:`var(--font-sans)`,fontSize:13,fontWeight:500,fill:`var(--text-3)`},children:o}),t[12]=o,t[13]=b);let x;t[14]!==c||t[15]!==g||t[16]!==_||t[17]!==y||t[18]!==b?(x=(0,E.jsxs)(`svg`,{viewBox:`0 0 200 150`,className:`h-auto w-full max-w-[200px]`,role:`img`,"aria-label":c,children:[h,g,_,y,b]}),t[14]=c,t[15]=g,t[16]=_,t[17]=y,t[18]=b,t[19]=x):x=t[19];let S;t[20]===s?S=t[21]:(S=(0,E.jsx)(`figcaption`,{className:`etikett text-[11.5px] tracking-[0.14em] text-text-3`,children:s}),t[20]=s,t[21]=S);let C;t[22]===l?C=t[23]:(C=l&&(0,E.jsx)(`span`,{className:`text-center text-xs ${l.className}`,children:l.text}),t[22]=l,t[23]=C);let w;return t[24]!==x||t[25]!==S||t[26]!==C?(w=(0,E.jsxs)(`figure`,{className:`m-0 flex min-w-0 flex-col items-center gap-1`,children:[x,S,C]}),t[24]=x,t[25]=S,t[26]=C,t[27]=w):w=t[27],w}function M(e){return(0,E.jsx)(`path`,{d:d(e.von,e.bis,86),fill:`none`,stroke:e.farbe,strokeWidth:4,strokeLinecap:`round`},`${e.von}-${e.bis}`)}function N(e){let t=(0,T.c)(12),{zustand:n,lampen:r,onAnsehen:i}=e,a;t[0]===n?a=t[1]:(a=u(n),t[0]=n,t[1]=a);let o=a,s=o.art,c=o.oben,l=o.mitte,d=o.unten,f=o.art===`gelb`||o.art===`rot`,p;t[2]===r?p=t[3]:(p=r.map(P),t[2]=r,t[3]=p);let m;return t[4]!==o.art||t[5]!==o.mitte||t[6]!==o.oben||t[7]!==o.unten||t[8]!==i||t[9]!==f||t[10]!==p?(m=(0,E.jsx)(S,{art:s,oben:c,mitte:l,unten:d,aktiv:f,onAnsehen:i,label:`Warnpanel`,children:p}),t[4]=o.art,t[5]=o.mitte,t[6]=o.oben,t[7]=o.unten,t[8]=i,t[9]=f,t[10]=p,t[11]=m):m=t[11],m}function P(e){return(0,E.jsx)(w,{bild:x(e.id),name:e.label,wert:e.wert,zustand:e.zustand},e.id)}function F(e){let t=(0,T.c)(2),{z:n}=e,r;return t[0]===n?r=t[1]:(r=(0,E.jsx)(`span`,{className:`ziffern inline-flex h-[1.75em] w-[1.1875em] shrink-0 items-center justify-center rounded-lg border border-white/10 bg-gradient-to-b from-white/[0.07] to-white/[0.02] font-medium shadow-[inset_0_1px_0_rgb(255_255_255/0.06)]`,children:n}),t[0]=n,t[1]=r),r}function I(e){let t=(0,T.c)(25),{sekunden:n}=e,r;t[0]===n?r=t[1]:(r=p(n),t[0]=n,t[1]=r);let i=r,a=String(Math.min(i?.[0]??0,99)),o;t[2]===a?o=t[3]:(o=a.padStart(2,`0`),t[2]=a,t[3]=o);let s=o,c=String(i?.[1]??0),l;t[4]===c?l=t[5]:(l=c.padStart(2,`0`),t[4]=c,t[5]=l);let u=l,d=i?`Laufzeit ohne Neustart: ${i[0]} Tage, ${i[1]} Stunden`:`Laufzeit unbekannt`,f=i?s[0]:`–`,m;t[6]===f?m=t[7]:(m=(0,E.jsx)(F,{z:f}),t[6]=f,t[7]=m);let h=i?s[1]:`–`,g;t[8]===h?g=t[9]:(g=(0,E.jsx)(F,{z:h}),t[8]=h,t[9]=g);let _;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,E.jsx)(`span`,{className:`etikett mr-[0.444em] ml-[0.111em] text-[0.5625em] text-text-3`,children:`T`}),t[10]=_):_=t[10];let v=i?u[0]:`–`,y;t[11]===v?y=t[12]:(y=(0,E.jsx)(F,{z:v}),t[11]=v,t[12]=y);let b=i?u[1]:`–`,x;t[13]===b?x=t[14]:(x=(0,E.jsx)(F,{z:b}),t[13]=b,t[14]=x);let S;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,E.jsx)(`span`,{className:`etikett ml-[0.111em] text-[0.5625em] text-text-3`,children:`H`}),t[15]=S):S=t[15];let C;t[16]!==y||t[17]!==x||t[18]!==m||t[19]!==g||t[20]!==d?(C=(0,E.jsxs)(`div`,{"aria-label":d,role:`img`,className:`flex h-[min(75cqw,150px)] items-center gap-[0.1875em] pb-[min(10cqw,20px)] text-[length:clamp(14px,14.5cqw,32px)]`,children:[m,g,_,y,x,S]}),t[16]=y,t[17]=x,t[18]=m,t[19]=g,t[20]=d,t[21]=C):C=t[21];let w;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,E.jsx)(`figcaption`,{className:`etikett text-[11.5px] tracking-[0.14em] text-text-3`,children:`Ohne Neustart`}),t[22]=w):w=t[22];let D;return t[23]===C?D=t[24]:(D=(0,E.jsxs)(`figure`,{className:`@container m-0 flex min-w-0 flex-col items-center justify-end gap-1`,children:[C,w]}),t[23]=C,t[24]=D),D}function L(e){let t=(0,T.c)(53),{box:n}=e,r=o(),a=r?.ram_used??n.ram_used,l=r?.ram_total??n.ram_total,u=r?.temp_cpu??n.temp_cpu,d=r?.temp_gpu??n.temp_gpu,f=n.platte,p=f?.vorhersage,m;t[0]===p?m=t[1]:(m=_(p),t[0]=p,t[1]=m);let g=m,v=r?.uptime_s??n.uptime_s,y=a!=null&&l?a/l:null,b;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(b={"--i":1},t[2]=b):b=t[2];let x;t[3]===a?x=t[4]:(x=a==null?`–`:String(Math.round(c(a)??0)),t[3]=a,t[4]=x);let S;t[5]===l?S=t[6]:(S=l?`von ${Math.round(c(l)??0)} GB`:void 0,t[5]=l,t[6]=S);let C;t[7]!==y||t[8]!==a||t[9]!==l?(C=y==null?`Speicher unbekannt`:`Speicher: ${s(a)} von ${s(l)} belegt`,t[7]=y,t[8]=a,t[9]=l,t[10]=C):C=t[10];let w;t[11]!==y||t[12]!==x||t[13]!==S||t[14]!==C?(w=(0,E.jsx)(j,{beschriftung:`Speicher`,anteil:y,mitte:x,unter:S,ariaText:C}),t[11]=y,t[12]=x,t[13]=S,t[14]=C,t[15]=w):w=t[15];let D=u==null?null:u/100,O;t[16]===u?O=t[17]:(O=i(u),t[16]=u,t[17]=O);let k;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(k=[{von:.7,bis:.85,farbe:`var(--bernstein)`},{von:.85,bis:1,farbe:`var(--rot)`}],t[18]=k):k=t[18];let A;t[19]===u?A=t[20]:(A=u==null?`–`:`${Math.round(u)}°`,t[19]=u,t[20]=A);let M;t[21]===d?M=t[22]:(M=d==null?void 0:`GPU ${Math.round(d)}°`,t[21]=d,t[22]=M);let N;t[23]===u?N=t[24]:(N=u==null?`Temperatur unbekannt`:`Temperatur ${Math.round(u)} Grad`,t[23]=u,t[24]=N);let P;t[25]!==A||t[26]!==M||t[27]!==N||t[28]!==D||t[29]!==O?(P=(0,E.jsx)(j,{beschriftung:`Temperatur`,anteil:D,farbe:O,zonen:k,mitte:A,unter:M,ariaText:N}),t[25]=A,t[26]=M,t[27]=N,t[28]=D,t[29]=O,t[30]=P):P=t[30];let F=f?f.percent/100:null,L=f&&f.percent>=90?`var(--rot)`:f&&f.percent>=80?`var(--bernstein)`:`var(--box)`,R;t[31]===f?R=t[32]:(R=f?`${Math.round(f.percent)}%`:`–`,t[31]=f,t[32]=R);let z;t[33]===f?z=t[34]:(z=f?`${s(f.used)} / ${s(f.total)}`:void 0,t[33]=f,t[34]=z);let B;t[35]===f?B=t[36]:(B=f?`Platte zu ${Math.round(f.percent)} Prozent belegt`:`Platte unbekannt`,t[35]=f,t[36]=B);let V;t[37]===g?V=t[38]:(V=g?{text:g.text,className:h[g.stufe]}:null,t[37]=g,t[38]=V);let H;t[39]!==F||t[40]!==L||t[41]!==R||t[42]!==z||t[43]!==B||t[44]!==V?(H=(0,E.jsx)(j,{beschriftung:`Platte`,anteil:F,farbe:L,mitte:R,unter:z,ariaText:B,hinweis:V}),t[39]=F,t[40]=L,t[41]=R,t[42]=z,t[43]=B,t[44]=V,t[45]=H):H=t[45];let U;t[46]===v?U=t[47]:(U=(0,E.jsx)(I,{sekunden:v}),t[46]=v,t[47]=U);let W;return t[48]!==P||t[49]!==H||t[50]!==U||t[51]!==w?(W=(0,E.jsxs)(`section`,{"aria-label":`Instrumente`,className:`auftauchen flaeche grid grid-cols-2 gap-x-4 gap-y-6 rounded-3xl px-4 py-5 lg:grid-cols-4 lg:px-6`,style:b,children:[w,P,H,U]}),t[48]=P,t[49]=H,t[50]=U,t[51]=w,t[52]=W):W=t[52],W}var R={bestanden:`gruen`,durchgefallen:`rot`,wartet:`cyan`,neu:`cyan`};function z(e){let t=(0,T.c)(14),{radar:n}=e;if(!n?.kandidaten)return null;let r,i;t[0]===n.kandidaten?(r=t[1],i=t[2]):(r=n.kandidaten.filter(V),i=r.find(B)??r[0],t[0]=n.kandidaten,t[1]=r,t[2]=i);let o=i,s=r.length===1?``:`en`,c;t[3]!==r.length||t[4]!==s?(c=(0,E.jsxs)(`span`,{className:`etikett text-[11px] tracking-[0.14em] text-cyan-text`,children:[`Radar · `,r.length,` Kandidat`,s]}),t[3]=r.length,t[4]=s,t[5]=c):c=t[5];let l;t[6]===o?l=t[7]:(l=o?(0,E.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2 text-[15px]`,children:[(0,E.jsx)(`span`,{className:`ziffern`,children:o.name}),(0,E.jsxs)(`span`,{className:`text-text-2`,children:[`fürs `,o.rolle===`hirn`?`Hirn`:`Coden`]}),(0,E.jsx)(g,{art:R[o.status]??`grau`,children:a[o.status]??o.status})]}):(0,E.jsx)(`span`,{className:`text-[15px] text-text-2`,children:`Nichts Besseres in Sicht.`}),t[6]=o,t[7]=l);let u;t[8]!==c||t[9]!==l?(u=(0,E.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[c,l]}),t[8]=c,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,E.jsx)(m,{variant:`info`,size:`sm`,asChild:!0,children:(0,E.jsx)(b,{to:`/box/modelle`,hash:`radar`,children:`Ansehen`})}),t[11]=d):d=t[11];let f;return t[12]===u?f=t[13]:(f=(0,E.jsxs)(`div`,{className:`mt-auto flex flex-wrap items-center justify-between gap-3 rounded-2xl bg-cyan/[0.06] px-4 py-3.5 ring-1 ring-cyan/30 ring-inset`,children:[u,d]}),t[12]=u,t[13]=f),f}function B(e){return e.status===`bestanden`}function V(e){return[`bestanden`,`wartet`,`neu`].includes(e.status)}function H(){let e=(0,T.c)(32),{data:t,error:n,isPending:i}=f(),a=r();if(i){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,E.jsx)(v,{text:`Die Box meldet sich gleich …`}),e[0]=t):t=e[0],t}if(!t){let t=`MC2 antwortet nicht: ${n?.message??`keine Daten`}`,r;return e[1]===t?r=e[2]:(r=(0,E.jsx)(v,{fehler:!0,text:t}),e[1]=t,e[2]=r),r}let o=t.hinweise.length,s;e[3]!==t.lampen||e[4]!==t.zustand?(s=(0,E.jsx)(N,{zustand:t.zustand,lampen:t.lampen,onAnsehen:U}),e[3]=t.lampen,e[4]=t.zustand,e[5]=s):s=e[5];let c;e[6]===t.box?c=e[7]:(c=(0,E.jsx)(L,{box:t.box}),e[6]=t.box,e[7]=c);let l=o?`bernstein`:`gruen`,u=o?`${o} offen`:`alles erledigt`,d;e[8]!==l||e[9]!==u?(d=(0,E.jsx)(g,{art:l,children:u}),e[8]=l,e[9]=u,e[10]=d):d=e[10];let p;e[11]!==t.hinweise||e[12]!==t.verlauf?(p=(0,E.jsx)(C,{hinweise:t.hinweise,verlauf:t.verlauf}),e[11]=t.hinweise,e[12]=t.verlauf,e[13]=p):p=e[13];let m;e[14]!==d||e[15]!==p?(m=(0,E.jsx)(y,{titel:`Checkliste`,id:`checkliste`,rechts:d,children:p}),e[14]=d,e[15]=p,e[16]=m):m=e[16];let h;e[17]!==t.flugplan.gelaufen||e[18]!==t.flugplan.geplant?(h=(0,E.jsx)(k,{gelaufen:t.flugplan.gelaufen,geplant:t.flugplan.geplant}),e[17]=t.flugplan.gelaufen,e[18]=t.flugplan.geplant,e[19]=h):h=e[19];let _;e[20]===a.data?_=e[21]:(_=(0,E.jsx)(z,{radar:a.data}),e[20]=a.data,e[21]=_);let b;e[22]!==h||e[23]!==_?(b=(0,E.jsxs)(y,{titel:`Flugplan`,children:[h,_]}),e[22]=h,e[23]=_,e[24]=b):b=e[24];let x;e[25]!==m||e[26]!==b?(x=(0,E.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-[minmax(0,1.35fr)_minmax(0,1fr)] md:gap-6`,children:[m,b]}),e[25]=m,e[26]=b,e[27]=x):x=e[27];let S;return e[28]!==s||e[29]!==c||e[30]!==x?(S=(0,E.jsxs)(E.Fragment,{children:[s,c,x]}),e[28]=s,e[29]=c,e[30]=x,e[31]=S):S=e[31],S}function U(){return document.getElementById(`checkliste`)?.scrollIntoView({behavior:`smooth`,block:`start`})}export{H as StartSeite};