2 lines
17 KiB
JavaScript
2 lines
17 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Protokollfenster-DfGuXWdW.js","assets/dist-aE7UmubC.js","assets/sheet-CPc8xmap.js","assets/index-CiJU28k0.js","assets/useSelector-DBNxxw17.js","assets/useMatch-DDVpPKJI.js","assets/index-BK7IIV0X.css","assets/button-DwYvdWVr.js","assets/dist-C2HMtjaj.js","assets/Bestaetigen-BGcVQso2.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,Gt as o,M as s,N as c,Nt as l,On as u,P as d,_ as f,cn as p,dn as m,en as h,fn as g,gn as _,in as v,k as y,ln as b,lt as x,nn as S,on as C,rn as w,sn as T,tn as E,v as D,yn as O}from"./index-CiJU28k0.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-DKe__zE4.js";var N=r(),P=t(e(),1),F=n(),I=(0,P.lazy)(()=>d(()=>import(`./Protokollfenster-DfGuXWdW.js`).then(e=>({default:e.Protokollfenster})),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),L=(0,P.lazy)(()=>d(()=>import(`./Bestaetigen-BGcVQso2.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=x(),[n,r]=(0,P.useState)(null),[a,o]=(0,P.useState)(null),s=e.stufe===`rot`,c=a?g(e,a):null;async function l(){try{let t=await O(`/api/hinweise/${encodeURIComponent(e.id)}/aktion/protokoll`);r({titel:e.titel,text:t.text||t.out||t.err||`Kein Protokoll vorhanden.`})}catch(e){T(`fehler`,e.message)}}function u(n){t.mutate({hinweis:e.id,aktion:n.id,label:n.label})}function d(t){t.id===`protokoll`?l():g(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:[w(e.seit),` · zuletzt `,v(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:v(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,o=n.status===`geplant`&&/update/i.test(n.titel)?`text-cyan-text`:r.farbe,s;t[0]===n.zeit?s=t[1]:(s=a(n.zeit),t[0]=n.zeit,t[1]=s);let c;t[2]===s?c=t[3]:(c=(0,F.jsx)(`span`,{className:`ziffern col-start-1 row-start-1 text-sm text-text-3`,children:s}),t[2]=s,t[3]=c);let l;t[4]===n.text?l=t[5]:(l=n.text&&(0,F.jsxs)(`span`,{className:`text-text-3`,children:[`, `,n.text]}),t[4]=n.text,t[5]=l);let u;t[6]!==n.titel||t[7]!==l?(u=(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,l]}),t[6]=n.titel,t[7]=l,t[8]=u):u=t[8];let d;t[9]===o?d=t[10]:(d=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`,o),t[9]=o,t[10]=d);let f;t[11]===r.punkt?f=t[12]:(f=i(`size-1.5 rounded-full`,r.punkt),t[11]=r.punkt,t[12]=f);let p;t[13]===f?p=t[14]:(p=(0,F.jsx)(`span`,{"aria-hidden":!0,className:f}),t[13]=f,t[14]=p);let m;t[15]!==r.text||t[16]!==d||t[17]!==p?(m=(0,F.jsxs)(`span`,{className:d,children:[p,r.text]}),t[15]=r.text,t[16]=d,t[17]=p,t[18]=m):m=t[18];let h;return t[19]!==c||t[20]!==u||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:[c,u,m]}),t[19]=c,t[20]=u,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:b(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:b(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 x;t[14]!==c||t[15]!==h||t[16]!==g||t[17]!==v||t[18]!==y?(x=(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]=x):x=t[19];let S;t[20]===s?S=t[21]:(S=(0,F.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,F.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,F.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 q(e){return(0,F.jsx)(`path`,{d:b(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=m(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:y(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=S(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]:`–`,p;t[6]===f?p=t[7]:(p=(0,F.jsx)(X,{z:f}),t[6]=f,t[7]=p);let m=i?s[1]:`–`,h;t[8]===m?h=t[9]:(h=(0,F.jsx)(X,{z:m}),t[8]=m,t[9]=h);let g;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,F.jsx)(`span`,{className:`etikett mr-[0.444em] ml-[0.111em] text-[0.5625em] text-text-3`,children:`T`}),t[10]=g):g=t[10];let _=i?u[0]:`–`,v;t[11]===_?v=t[12]:(v=(0,F.jsx)(X,{z:_}),t[11]=_,t[12]=v);let y=i?u[1]:`–`,b;t[13]===y?b=t[14]:(b=(0,F.jsx)(X,{z:y}),t[13]=y,t[14]=b);let x;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,F.jsx)(`span`,{className:`etikett ml-[0.111em] text-[0.5625em] text-text-3`,children:`H`}),t[15]=x):x=t[15];let C;t[16]!==v||t[17]!==b||t[18]!==p||t[19]!==h||t[20]!==d?(C=(0,F.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:[p,h,g,v,b,x]}),t[16]=v,t[17]=b,t[18]=p,t[19]=h,t[20]=d,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=C(),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=D(l),t[0]=l,t[1]=u);let d=u,p=r?.uptime_s??n.uptime_s,m=i!=null&&a?i/a:null,g;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(g={"--i":1},t[2]=g):g=t[2];let v;t[3]===i?v=t[4]:(v=i==null?`–`:String(Math.round(h(i)??0)),t[3]=i,t[4]=v);let y;t[5]===a?y=t[6]:(y=a?`von ${Math.round(h(a)??0)} GB`:void 0,t[5]=a,t[6]=y);let b;t[7]!==m||t[8]!==i||t[9]!==a?(b=m==null?`Speicher unbekannt`:`Speicher: ${E(i)} von ${E(a)} belegt`,t[7]=m,t[8]=i,t[9]=a,t[10]=b):b=t[10];let x;t[11]!==m||t[12]!==v||t[13]!==y||t[14]!==b?(x=(0,F.jsx)(K,{beschriftung:`Speicher`,anteil:m,mitte:v,unter:y,ariaText:b}),t[11]=m,t[12]=v,t[13]=y,t[14]=b,t[15]=x):x=t[15];let S=o==null?null:o/100,w;t[16]===o?w=t[17]:(w=_(o),t[16]=o,t[17]=w);let T;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(T=[{von:.7,bis:.85,farbe:`var(--bernstein)`},{von:.85,bis:1,farbe:`var(--rot)`}],t[18]=T):T=t[18];let O;t[19]===o?O=t[20]:(O=o==null?`–`:`${Math.round(o)}°`,t[19]=o,t[20]=O);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]!==O||t[26]!==k||t[27]!==A||t[28]!==S||t[29]!==w?(j=(0,F.jsx)(K,{beschriftung:`Temperatur`,anteil:S,farbe:w,zonen:T,mitte:O,unter:k,ariaText:A}),t[25]=O,t[26]=k,t[27]=A,t[28]=S,t[29]=w,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?`${E(c.used)} / ${E(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]===d?z=t[38]:(z=d?{text:d.text,className:f[d.stufe]}:null,t[37]=d,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:g,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`,c;t[3]!==r.length||t[4]!==o?(c=(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]=c):c=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)(s,{art:$[a.status]??`grau`,children:p[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 d;t[8]!==c||t[9]!==l?(d=(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[c,l]}),t[8]=c,t[9]=l,t[10]=d):d=t[10];let f;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,F.jsx)(k,{variant:`info`,size:`sm`,asChild:!0,children:(0,F.jsx)(u,{to:`/box/modelle`,hash:`radar`,children:`Ansehen`})}),t[11]=f):f=t[11];let m;return t[12]===d?m=t[13]:(m=(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:[d,f]}),t[12]=d,t[13]=m),m}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}=o(),i=l();if(r){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,F.jsx)(c,{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)(c,{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)(s,{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}; |