2 lines
17 KiB
JavaScript
2 lines
17 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Protokollfenster-C-Jw7ZLy.js","assets/dist-aE7UmubC.js","assets/sheet-DE9QulgP.js","assets/index-CJ1jXWsM.js","assets/useSelector-DBNxxw17.js","assets/useMatch-DDVpPKJI.js","assets/index-CeLk3zt0.css","assets/button-DwYvdWVr.js","assets/dist-D-yM169e.js","assets/Bestaetigen-6C3zYuEE.js"])))=>i.map(i=>d[i]);
|
||
import{a as e,c as t,i as n,r,t as i}from"./dist-aE7UmubC.js";import{$t as a,At as o,Ht as s,M as c,N as l,P as u,Qt as d,Tn as f,Xt as p,Zt as m,_ as h,an as g,cn as _,en as v,gn as y,in as b,k as x,ln as S,lt as C,on as w,pn as T,rn as E,tn as D,v as O}from"./index-CJ1jXWsM.js";import{t as k}from"./button-DwYvdWVr.js";import{t as A}from"./Panel-uT1S5ZGr.js";import{n as j,t as M}from"./Lagekopf-_LyvkRPo.js";var N=r(),P=t(e(),1),F=n(),I=(0,P.lazy)(()=>u(()=>import(`./Protokollfenster-C-Jw7ZLy.js`).then(e=>({default:e.Protokollfenster})),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),L=(0,P.lazy)(()=>u(()=>import(`./Bestaetigen-6C3zYuEE.js`).then(e=>e.n).then(e=>({default:e.Bestaetigen})),__vite__mapDeps([9,1,3,4,5,6,7,8])));function R({h:e}){let t=C(),[n,r]=(0,P.useState)(null),[a,o]=(0,P.useState)(null),s=e.stufe===`rot`,c=a?S(e,a):null;async function l(){try{let t=await y(`/api/hinweise/${encodeURIComponent(e.id)}/aktion/protokoll`);r({titel:e.titel,text:t.text||t.out||t.err||`Kein Protokoll vorhanden.`})}catch(e){b(`fehler`,e.message)}}function u(n){t.mutate({hinweis:e.id,aktion:n.id,label:n.label})}function d(t){t.id===`protokoll`?l():S(e,t)?o(t):u(t)}return(0,F.jsxs)(`article`,{className:i(`flex flex-col gap-2.5 rounded-2xl px-4 py-3.5 ring-1 ring-inset`,s?`bg-rot/[0.07] ring-rot/35`:`bg-bernstein/[0.06] ring-bernstein/30`),children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,F.jsx)(`h3`,{className:`min-w-0 flex-1 font-sans text-[16.5px] leading-snug font-semibold`,children:e.titel}),(0,F.jsx)(`span`,{className:i(`etikett shrink-0 rounded-full px-2.5 py-0.5 text-[10.5px] tracking-[0.12em] ring-1 ring-inset`,s?`bg-rot/12 text-rot-text ring-rot/40`:`bg-bernstein/10 text-bernstein ring-bernstein/35`),children:s?`Jetzt`:`Prüfen`})]}),(0,F.jsxs)(`p`,{className:`ziffern text-[13px] text-text-3`,children:[v(e.seit),` · zuletzt `,D(e.zuletzt)]}),e.text&&(0,F.jsx)(`p`,{className:`text-[15px] leading-relaxed break-words text-text-2`,children:e.text}),e.aktionen.length>0&&(0,F.jsx)(`div`,{className:`flex flex-wrap gap-2.5 pt-1`,children:e.aktionen.map((e,n)=>(0,F.jsx)(k,{variant:n===0&&e.id!==`protokoll`?`default`:`outline`,size:`sm`,disabled:t.isPending,onClick:()=>d(e),children:e.label},e.id))}),n&&(0,F.jsx)(P.Suspense,{fallback:null,children:(0,F.jsx)(I,{offen:!0,titel:n.titel,text:n.text,onSchliessen:()=>r(null)})}),a&&c&&(0,F.jsx)(P.Suspense,{fallback:null,children:(0,F.jsx)(L,{offen:!0,titel:c.titel,text:c.text,knopf:c.knopf,gesperrt:t.isPending,onNein:()=>o(null),onJa:()=>{u(a),o(null)}})})]})}function z(e){let t=(0,N.c)(12),{hinweise:n,verlauf:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=new Date().toDateString(),t[0]=i):i=t[0];let a=i,o;if(t[1]!==n.length||t[2]!==r){o=Symbol.for(`react.early_return_sentinel`);bb0:{let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=e=>(e.art===`erledigt`||e.art===`auto`)&&new Date(e.ts*1e3).toDateString()===a,t[4]=e):e=t[4];let i=r.filter(e);if(n.length===0){let e;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,F.jsx)(`p`,{className:`text-[15px] text-text-2`,children:`Keine offenen Punkte. Der Wächter prüft jede Minute.`}),t[5]=e):e=t[5];let n=i.length>0&&(0,F.jsx)(`ul`,{className:`flex flex-col gap-1 text-sm text-text-3`,children:i.slice(0,4).map(V)}),r;t[6]===n?r=t[7]:(r=(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[e,n]}),t[6]=n,t[7]=r),o=r;break bb0}}t[1]=n.length,t[2]=r,t[3]=o}else o=t[3];if(o!==Symbol.for(`react.early_return_sentinel`))return o;let s;t[8]===n?s=t[9]:(s=n.map(B),t[8]=n,t[9]=s);let c;return t[10]===s?c=t[11]:(c=(0,F.jsx)(`div`,{className:`flex flex-col gap-3`,children:s}),t[10]=s,t[11]=c),c}function B(e){return(0,F.jsx)(R,{h:e},e.id)}function V(e){return(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`span`,{className:`ziffern`,children:D(e.ts)}),` · `,e.text]},`${e.id}-${e.ts}`)}var H={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 U(e){let t=(0,N.c)(23),{e:n}=e,r=H[n.status]??H.geplant,a=n.status===`geplant`&&/update/i.test(n.titel)?`text-cyan-text`:r.farbe,o;t[0]===n.zeit?o=t[1]:(o=p(n.zeit),t[0]=n.zeit,t[1]=o);let s;t[2]===o?s=t[3]:(s=(0,F.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]===n.text?c=t[5]:(c=n.text&&(0,F.jsxs)(`span`,{className:`text-text-3`,children:[`, `,n.text]}),t[4]=n.text,t[5]=c);let l;t[6]!==n.titel||t[7]!==c?(l=(0,F.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:[n.titel,c]}),t[6]=n.titel,t[7]=c,t[8]=l):l=t[8];let u;t[9]===a?u=t[10]:(u=i(`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]=u);let d;t[11]===r.punkt?d=t[12]:(d=i(`size-1.5 rounded-full`,r.punkt),t[11]=r.punkt,t[12]=d);let f;t[13]===d?f=t[14]:(f=(0,F.jsx)(`span`,{"aria-hidden":!0,className:d}),t[13]=d,t[14]=f);let m;t[15]!==r.text||t[16]!==u||t[17]!==f?(m=(0,F.jsxs)(`span`,{className:u,children:[f,r.text]}),t[15]=r.text,t[16]=u,t[17]=f,t[18]=m):m=t[18];let h;return t[19]!==s||t[20]!==l||t[21]!==m?(h=(0,F.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,l,m]}),t[19]=s,t[20]=l,t[21]=m,t[22]=h):h=t[22],h}function W(e){let t=(0,N.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,F.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,F.jsx)(`ol`,{className:`@container m-0 flex list-none flex-col p-0`,children:a.map(G)}),t[4]=a,t[5]=o),o}function G(e){return(0,F.jsx)(U,{e},`${e.titel}-${e.zeit}`)}function K(e){let t=(0,N.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,d;t[0]===i?d=t[1]:(d=i===void 0?[]:i,t[0]=i,t[1]=d);let f=d,p=n!=null&&n>.004,m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,F.jsx)(`path`,{d:w(0,1,75),fill:`none`,stroke:`rgb(255 255 255 / 0.07)`,strokeWidth:12,strokeLinecap:`round`}),t[2]=m):m=t[2];let h;t[3]===f?h=t[4]:(h=f.map(q),t[3]=f,t[4]=h);let g;t[5]!==n||t[6]!==u||t[7]!==p?(g=p&&(0,F.jsx)(`path`,{d:w(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]=p,t[8]=g):g=t[8];let _;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_={fontFamily:`var(--font-anzeige)`,fontSize:40,fontWeight:600,fill:`var(--foreground)`},t[9]=_):_=t[9];let v;t[10]===a?v=t[11]:(v=(0,F.jsx)(`text`,{x:`100`,y:`102`,textAnchor:`middle`,style:_,children:a}),t[10]=a,t[11]=v);let y;t[12]===o?y=t[13]:(y=o&&(0,F.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]=y);let b;t[14]!==c||t[15]!==h||t[16]!==g||t[17]!==v||t[18]!==y?(b=(0,F.jsxs)(`svg`,{viewBox:`0 0 200 150`,className:`h-auto w-full max-w-[200px]`,role:`img`,"aria-label":c,children:[m,h,g,v,y]}),t[14]=c,t[15]=h,t[16]=g,t[17]=v,t[18]=y,t[19]=b):b=t[19];let x;t[20]===s?x=t[21]:(x=(0,F.jsx)(`figcaption`,{className:`etikett text-[11.5px] tracking-[0.14em] text-text-3`,children:s}),t[20]=s,t[21]=x);let S;t[22]===l?S=t[23]:(S=l&&(0,F.jsx)(`span`,{className:`text-center text-xs ${l.className}`,children:l.text}),t[22]=l,t[23]=S);let C;return t[24]!==b||t[25]!==x||t[26]!==S?(C=(0,F.jsxs)(`figure`,{className:`m-0 flex min-w-0 flex-col items-center gap-1`,children:[b,x,S]}),t[24]=b,t[25]=x,t[26]=S,t[27]=C):C=t[27],C}function q(e){return(0,F.jsx)(`path`,{d:w(e.von,e.bis,86),fill:`none`,stroke:e.farbe,strokeWidth:4,strokeLinecap:`round`},`${e.von}-${e.bis}`)}function J(e){let t=(0,N.c)(12),{zustand:n,lampen:r,onAnsehen:i}=e,a;t[0]===n?a=t[1]:(a=_(n),t[0]=n,t[1]=a);let o=a,s=o.art,c=o.oben,l=o.mitte,u=o.unten,d=o.art===`gelb`||o.art===`rot`,f;t[2]===r?f=t[3]:(f=r.map(Y),t[2]=r,t[3]=f);let p;return t[4]!==o.art||t[5]!==o.mitte||t[6]!==o.oben||t[7]!==o.unten||t[8]!==i||t[9]!==d||t[10]!==f?(p=(0,F.jsx)(j,{art:s,oben:c,mitte:l,unten:u,aktiv:d,onAnsehen:i,label:`Warnpanel`,children:f}),t[4]=o.art,t[5]=o.mitte,t[6]=o.oben,t[7]=o.unten,t[8]=i,t[9]=d,t[10]=f,t[11]=p):p=t[11],p}function Y(e){return(0,F.jsx)(M,{bild:x(e.id),name:e.label,wert:e.wert,zustand:e.zustand},e.id)}function X(e){let t=(0,N.c)(2),{z:n}=e,r;return t[0]===n?r=t[1]:(r=(0,F.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 Z(e){let t=(0,N.c)(25),{sekunden:n}=e,r;t[0]===n?r=t[1]:(r=a(n),t[0]=n,t[1]=r);let i=r,o=String(Math.min(i?.[0]??0,99)),s;t[2]===o?s=t[3]:(s=o.padStart(2,`0`),t[2]=o,t[3]=s);let c=s,l=String(i?.[1]??0),u;t[4]===l?u=t[5]:(u=l.padStart(2,`0`),t[4]=l,t[5]=u);let d=u,f=i?`Laufzeit ohne Neustart: ${i[0]} Tage, ${i[1]} Stunden`:`Laufzeit unbekannt`,p=i?c[0]:`–`,m;t[6]===p?m=t[7]:(m=(0,F.jsx)(X,{z:p}),t[6]=p,t[7]=m);let h=i?c[1]:`–`,g;t[8]===h?g=t[9]:(g=(0,F.jsx)(X,{z:h}),t[8]=h,t[9]=g);let _;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,F.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?d[0]:`–`,y;t[11]===v?y=t[12]:(y=(0,F.jsx)(X,{z:v}),t[11]=v,t[12]=y);let b=i?d[1]:`–`,x;t[13]===b?x=t[14]:(x=(0,F.jsx)(X,{z:b}),t[13]=b,t[14]=x);let S;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,F.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]!==f?(C=(0,F.jsxs)(`div`,{"aria-label":f,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]=f,t[21]=C):C=t[21];let w;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,F.jsx)(`figcaption`,{className:`etikett text-[11.5px] tracking-[0.14em] text-text-3`,children:`Ohne Neustart`}),t[22]=w):w=t[22];let T;return t[23]===C?T=t[24]:(T=(0,F.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]=T),T}function Q(e){let t=(0,N.c)(53),{box:n}=e,r=E(),i=r?.ram_used??n.ram_used,a=r?.ram_total??n.ram_total,o=r?.temp_cpu??n.temp_cpu,s=r?.temp_gpu??n.temp_gpu,c=n.platte,l=c?.vorhersage,u;t[0]===l?u=t[1]:(u=O(l),t[0]=l,t[1]=u);let f=u,p=r?.uptime_s??n.uptime_s,g=i!=null&&a?i/a:null,_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_={"--i":1},t[2]=_):_=t[2];let v;t[3]===i?v=t[4]:(v=i==null?`–`:String(Math.round(m(i)??0)),t[3]=i,t[4]=v);let y;t[5]===a?y=t[6]:(y=a?`von ${Math.round(m(a)??0)} GB`:void 0,t[5]=a,t[6]=y);let b;t[7]!==g||t[8]!==i||t[9]!==a?(b=g==null?`Speicher unbekannt`:`Speicher: ${d(i)} von ${d(a)} belegt`,t[7]=g,t[8]=i,t[9]=a,t[10]=b):b=t[10];let x;t[11]!==g||t[12]!==v||t[13]!==y||t[14]!==b?(x=(0,F.jsx)(K,{beschriftung:`Speicher`,anteil:g,mitte:v,unter:y,ariaText:b}),t[11]=g,t[12]=v,t[13]=y,t[14]=b,t[15]=x):x=t[15];let S=o==null?null:o/100,C;t[16]===o?C=t[17]:(C=T(o),t[16]=o,t[17]=C);let w;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(w=[{von:.7,bis:.85,farbe:`var(--bernstein)`},{von:.85,bis:1,farbe:`var(--rot)`}],t[18]=w):w=t[18];let D;t[19]===o?D=t[20]:(D=o==null?`–`:`${Math.round(o)}°`,t[19]=o,t[20]=D);let k;t[21]===s?k=t[22]:(k=s==null?void 0:`GPU ${Math.round(s)}°`,t[21]=s,t[22]=k);let A;t[23]===o?A=t[24]:(A=o==null?`Temperatur unbekannt`:`Temperatur ${Math.round(o)} Grad`,t[23]=o,t[24]=A);let j;t[25]!==D||t[26]!==k||t[27]!==A||t[28]!==S||t[29]!==C?(j=(0,F.jsx)(K,{beschriftung:`Temperatur`,anteil:S,farbe:C,zonen:w,mitte:D,unter:k,ariaText:A}),t[25]=D,t[26]=k,t[27]=A,t[28]=S,t[29]=C,t[30]=j):j=t[30];let M=c?c.percent/100:null,P=c&&c.percent>=90?`var(--rot)`:c&&c.percent>=80?`var(--bernstein)`:`var(--box)`,I;t[31]===c?I=t[32]:(I=c?`${Math.round(c.percent)}%`:`–`,t[31]=c,t[32]=I);let L;t[33]===c?L=t[34]:(L=c?`${d(c.used)} / ${d(c.total)}`:void 0,t[33]=c,t[34]=L);let R;t[35]===c?R=t[36]:(R=c?`Platte zu ${Math.round(c.percent)} Prozent belegt`:`Platte unbekannt`,t[35]=c,t[36]=R);let z;t[37]===f?z=t[38]:(z=f?{text:f.text,className:h[f.stufe]}:null,t[37]=f,t[38]=z);let B;t[39]!==M||t[40]!==P||t[41]!==I||t[42]!==L||t[43]!==R||t[44]!==z?(B=(0,F.jsx)(K,{beschriftung:`Platte`,anteil:M,farbe:P,mitte:I,unter:L,ariaText:R,hinweis:z}),t[39]=M,t[40]=P,t[41]=I,t[42]=L,t[43]=R,t[44]=z,t[45]=B):B=t[45];let V;t[46]===p?V=t[47]:(V=(0,F.jsx)(Z,{sekunden:p}),t[46]=p,t[47]=V);let H;return t[48]!==j||t[49]!==B||t[50]!==V||t[51]!==x?(H=(0,F.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:_,children:[x,j,B,V]}),t[48]=j,t[49]=B,t[50]=V,t[51]=x,t[52]=H):H=t[52],H}var $={bestanden:`gruen`,durchgefallen:`rot`,wartet:`cyan`,neu:`cyan`};function ee(e){let t=(0,N.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(ne),i=r.find(te)??r[0],t[0]=n.kandidaten,t[1]=r,t[2]=i);let a=i,o=r.length===1?``:`en`,s;t[3]!==r.length||t[4]!==o?(s=(0,F.jsxs)(`span`,{className:`etikett text-[11px] tracking-[0.14em] text-cyan-text`,children:[`Radar · `,r.length,` Kandidat`,o]}),t[3]=r.length,t[4]=o,t[5]=s):s=t[5];let l;t[6]===a?l=t[7]:(l=a?(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2 text-[15px]`,children:[(0,F.jsx)(`span`,{className:`ziffern`,children:a.name}),(0,F.jsxs)(`span`,{className:`text-text-2`,children:[`fürs `,a.rolle===`hirn`?`Hirn`:`Coden`]}),(0,F.jsx)(c,{art:$[a.status]??`grau`,children:g[a.status]??a.status})]}):(0,F.jsx)(`span`,{className:`text-[15px] text-text-2`,children:`Nichts Besseres in Sicht.`}),t[6]=a,t[7]=l);let u;t[8]!==s||t[9]!==l?(u=(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[s,l]}),t[8]=s,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,F.jsx)(k,{variant:`info`,size:`sm`,asChild:!0,children:(0,F.jsx)(f,{to:`/box/modelle`,hash:`radar`,children:`Ansehen`})}),t[11]=d):d=t[11];let p;return t[12]===u?p=t[13]:(p=(0,F.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]=p),p}function te(e){return e.status===`bestanden`}function ne(e){return[`bestanden`,`wartet`,`neu`].includes(e.status)}function re(){let e=(0,N.c)(32),{data:t,error:n,isPending:r}=s(),i=o();if(r){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,F.jsx)(l,{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,F.jsx)(l,{fehler:!0,text:t}),e[1]=t,e[2]=r),r}let a=t.hinweise.length,u;e[3]!==t.lampen||e[4]!==t.zustand?(u=(0,F.jsx)(J,{zustand:t.zustand,lampen:t.lampen,onAnsehen:ie}),e[3]=t.lampen,e[4]=t.zustand,e[5]=u):u=e[5];let d;e[6]===t.box?d=e[7]:(d=(0,F.jsx)(Q,{box:t.box}),e[6]=t.box,e[7]=d);let f=a?`bernstein`:`gruen`,p=a?`${a} offen`:`alles erledigt`,m;e[8]!==f||e[9]!==p?(m=(0,F.jsx)(c,{art:f,children:p}),e[8]=f,e[9]=p,e[10]=m):m=e[10];let h;e[11]!==t.hinweise||e[12]!==t.verlauf?(h=(0,F.jsx)(z,{hinweise:t.hinweise,verlauf:t.verlauf}),e[11]=t.hinweise,e[12]=t.verlauf,e[13]=h):h=e[13];let g;e[14]!==m||e[15]!==h?(g=(0,F.jsx)(A,{titel:`Checkliste`,id:`checkliste`,rechts:m,children:h}),e[14]=m,e[15]=h,e[16]=g):g=e[16];let _;e[17]!==t.flugplan.gelaufen||e[18]!==t.flugplan.geplant?(_=(0,F.jsx)(W,{gelaufen:t.flugplan.gelaufen,geplant:t.flugplan.geplant}),e[17]=t.flugplan.gelaufen,e[18]=t.flugplan.geplant,e[19]=_):_=e[19];let v;e[20]===i.data?v=e[21]:(v=(0,F.jsx)(ee,{radar:i.data}),e[20]=i.data,e[21]=v);let y;e[22]!==_||e[23]!==v?(y=(0,F.jsxs)(A,{titel:`Flugplan`,children:[_,v]}),e[22]=_,e[23]=v,e[24]=y):y=e[24];let b;e[25]!==g||e[26]!==y?(b=(0,F.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-[minmax(0,1.35fr)_minmax(0,1fr)] md:gap-6`,children:[g,y]}),e[25]=g,e[26]=y,e[27]=b):b=e[27];let x;return e[28]!==u||e[29]!==d||e[30]!==b?(x=(0,F.jsxs)(F.Fragment,{children:[u,d,b]}),e[28]=u,e[29]=d,e[30]=b,e[31]=x):x=e[31],x}function ie(){return document.getElementById(`checkliste`)?.scrollIntoView({behavior:`smooth`,block:`start`})}export{re as StartSeite}; |