PageSourceSearch

https://www.network-iaodg.cz/assets/Monitoring-ByZa04u7.js

js network-iaodg.cz collected 2026-09-25 13:13:54 UTC 14,914 bytes, 1 lines download raw bytes

1import{r as g,j as e,L as O}from"./index-B0dzAvW0.js";import{M as T}from"./MainLayout-DEoE-T_p.js";import{S as B}from"./SEO-CmbotCRk.js";import{u as I}from"./threat-store-GUeTLCR1.js";import{u as E}from"./useTranslation-CsCWtmeM.js";import{s as $}from"./supabase-C1NuHVBN.js";const z={konflikt:"threats.cat_konflikt",kyberbezpečnost:"threats.cat_kyberbezpecnost",kyberbezpecnost:"threats.cat_kyberbezpecnost",klima:"threats.cat_klima",informace:"threats.cat_informace",geopolitika:"threats.cat_geopolitika",ekonomika:"threats.cat_ekonomika",technologie:"threats.cat_technologie",infrastruktura:"threats.cat_infrastruktura"},M={Globální:"threats.region_globalni",Evropa:"threats.region_evropa",Asie:"threats.region_asie",Afrika:"threats.region_afrika",Amerika:"threats.region_amerika","Blízký východ":"threats.region_blizky_vychod","Střední Evropa":"threats.region_stredni_europa"},l={Sledování:{badge:"text-urgency-watch bg-urgency-watch/10 border-urgency-watch/30",dot:"bg-urgency-watch",border:"border-urgency-watch/30",num:1},Zvýšené:{badge:"text-urgency-elevated bg-urgency-elevated/10 border-urgency-elevated/30",dot:"bg-urgency-elevated",border:"border-urgency-elevated/30",num:2},Kritické:{badge:"text-urgency-critical bg-urgency-critical/10 border-urgency-critical/30",dot:"bg-urgency-critical",border:"border-urgency-critical/30",num:3}},R={Sledování:"threats.severity_watch",Zvýšené:"threats.severity_elevated",Kritické:"threats.severity_critical"},C=r=>{if(!r)return 0;const i=r.split(".");return i.length===3?new Date(parseInt(i[2]),parseInt(i[1])-1,parseInt(i[0])).getTime():0};function Z({limit:r,supabaseData:i,isLoadingData:x}){var k;const{t:s,i18n:d}=E(),{threats:p,isLoading:h}=I(),f=(k=d.language)==null?void 0:k.startsWith("en"),u=(t,n)=>f&&n?n:t,b=(t,n)=>{if(!t)return"—";if(f&&n)return n;const a=z[t.toLowerCase()]||z[t];return a?s(a):t},v=(t,n)=>{if(!t)return"—";if(f&&n)return n;const a=M[t];return a?s(a):t},j=t=>{if(!t)return s("threats.severity_watch");const n=R[t];return n?s(n):t},L=i||p,m=x!==void 0?x:h;let o=[...L].sort((t,n)=>{var w,S;const a=C(t.date),c=C(n.date);if(c!==a)return c-a;const K=((w=l[t.severity])==null?void 0:w.num)||1;return(((S=l[n.severity])==null?void 0:S.num)||1)-K});r?o=o.slice(0,r):o=o.slice(0,5);const y={kritické:o.filter(t=>t.severity==="Kritické").length,zvýšené:o.filter(t=>t.severity==="Zvýšené").length},[N,A]=g.useState(null);function _(t){A(n=>n===t?null:t)}return e.jsxs("section",{className:"relative bg-background",children:[e.jsx("div",{className:"absolute inset-0 grid-bg opacity-20 pointer-events-none"}),e.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 py-12",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start justify-between gap-4 mb-8",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("span",{className:"bg-primary/70 live-dot inline-block"}),e.jsx("span",{className:"font-mono-data text-[10px] tracking-[0.2em] text-muted-foreground uppercase",children:s("threats.header_global_field")})]}),e.jsx("h2",{className:"font-serif text-2xl md:text-3xl text-foreground uppercase tracking-widest",children:s("threats.header_title")}),e.jsx("p",{className:"text-muted-foreground text-xs mt-1 font-mono-data",children:s("threats.header_subtitle")})]}),e.jsxs("div",{className:"flex gap-4 shrink-0",children:[e.jsxs("div",{className:"bg-transparent border border-urgency-critical/50 rounded-none px-4 py-2 text-left min-w-[72px]",children:[e.jsx("div",{className:"font-mono-data text-xl text-urgency-critical",children:y.kritické}),e.jsx("div",{className:"font-mono-data text-[10px] text-urgency-critical uppercase tracking-widest",children:s("threats.critical_count_label")})]}),e.jsxs("div",{className:"bg-transparent border border-urgency-elevated/50 rounded-none px-4 py-2 text-left min-w-[72px]",children:[e.jsx("div",{className:"font-mono-data text-xl text-urgency-elevated",children:y.zvýšené}),e.jsx("div",{className:"font-mono-data text-[10px] text-urgency-elevated uppercase tracking-widest",children:s("threats.elevated_count_label")})]})]})]}),e.jsxs("div",{className:"overflow-hidden rounded-none bg-transparent border border-border archival-border-inner",children:[e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b border-border bg-transparent",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary live-dot"}),e.jsxs("span",{className:"font-mono-data text-[11px] text-foreground tracking-wider flex items-center",children:[s("threats.status_active")," ",e.jsx("span",{className:"animate-pulse ml-0.5",children:"..."})]}),e.jsx("span",{className:"ml-auto font-mono-data text-[11px] text-muted-foreground",children:s("threats.status_local_system")})]}),e.jsx("div",{className:"hidden md:block overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-border bg-muted/30",children:[e.jsx("th",{className:"font-mono-data text-[10px] text-muted-foreground tracking-widest uppercase text-left px-4 py-3 w-32",children:s("threats.col_date")}),e.jsx("th",{className:"font-mono-data text-[10px] text-muted-foreground tracking-widest uppercase text-left px-4 py-3",children:s("threats.col_situation")}),e.jsx("th",{className:"font-mono-data text-[10px] text-muted-foreground tracking-widest uppercase text-left px-4 py-3 w-32",children:s("threats.col_region")}),e.jsx("th",{className:"font-mono-data text-[10px] text-muted-foreground tracking-widest uppercase text-left px-4 py-3 w-36",children:s("threats.col_severity")}),e.jsx("th",{className:"w-8"})]})}),e.jsxs("tbody",{children:[m&&e.jsx("tr",{children:e.jsx("td",{colSpan:5,className:"px-4 py-8 text-left font-mono-data text-xs text-zinc-500",children:s("threats.loading")})}),!m&&o.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:5,className:"px-4 py-8 text-left font-mono-data text-sm text-muted-foreground h-[220px] align-middle",children:e.jsx("div",{className:"max-w-[500px]",children:s("threats.no_data")})})}),!m&&o.map(t=>{const n=l[t.severity]||l.Sledování,a=N===t.id,c=n.dot;return e.jsxs(g.Fragment,{children:[e.jsxs("tr",{onClick:()=>
1_(t.id),className:`border-b border-border cursor-pointer transition-colors duration-150 group ${a?"bg-secondary/30":"hover:bg-secondary/10"}`,children:[e.jsx("td",{className:"px-4 py-3.5 whitespace-nowrap w-32",children:e.jsx("span",{className:"font-mono-data text-xs text-muted-foreground",children:t.date})}),e.jsx("td",{className:"px-4 py-3.5",children:e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:`w-2 h-2 rounded-full shrink-0 ${c} ${t.severity==="Kritické"?"live-dot":""}`}),e.jsxs("div",{children:[e.jsx("div",{className:`font-serif text-sm leading-snug transition-colors ${a?"text-foreground":"text-foreground/80 group-hover:text-foreground"}`,children:u(t.title,t.title_en)}),e.jsx("div",{className:"font-mono-data text-[10px] text-muted-foreground mt-0.5",children:b(t.category,t.category_en)})]})]})}),e.jsx("td",{className:"px-4 py-3.5 whitespace-nowrap",children:e.jsx("span",{className:"font-mono-data text-xs text-zinc-400",children:v(t.region,t.region_en)})}),e.jsx("td",{className:"px-4 py-3.5",children:e.jsxs("span",{className:`inline-flex items-center gap-1.5 font-mono-data text-[11px] px-2.5 py-1 rounded-full border ${n.badge} ${n.border}`,children:[e.jsx("span",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${n.dot} ${t.severity==="Kritické"?"live-dot":""}`}),j(t.severity)]})}),e.jsx("td",{className:"px-3 py-3.5 text-muted-foreground",children:e.jsx("svg",{className:`w-3.5 h-3.5 transition-transform duration-200 ${a?"rotate-180 text-primary":""}`,viewBox:"0 0 12 12",fill:"none",children:e.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),a&&e.jsx("tr",{className:"border-b border-border bg-secondary/10",children:e.jsx("td",{colSpan:5,className:"px-4 py-4",children:e.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-4",children:[e.jsx("div",{className:"font-mono-data text-[10px] text-muted-foreground uppercase tracking-widest pt-1",children:s("threats.col_detail")}),e.jsxs("div",{className:"pr-6",children:[t.summary&&e.jsxs("div",{className:"mb-3",children:[e.jsx("span",{className:"block font-mono-data text-[10px] text-muted-foreground uppercase tracking-wider mb-1",children:s("threats.col_content")}),e.jsx("p",{className:"text-sm text-foreground/70 leading-relaxed font-serif",children:u(t.summary,t.summary_en)})]}),(t.source||t.source_url)&&e.jsxs("div",{className:t.summary?"mt-3 pt-3 border-t border-border":"",children:[e.jsx("span",{className:"block font-mono-data text-[10px] text-muted-foreground uppercase tracking-wider mb-1",children:s("threats.col_source")}),t.source_url?e.jsx("a",{href:t.source_url.startsWith("http")?t.source_url:`https://${t.source_url}`,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary hover:text-primary/80 underline break-all",children:t.source||t.source_url.replace(/^https?:\/\/(www\.)?/,"").split("/")[0]}):e.jsx("span",{className:"text-sm text-foreground/70",children:t.source})]})]})]})})})]},t.id)})]})]})}),e.jsxs("div",{className:"md:hidden divide-y divide-border",children:[m&&e.jsx("div",{className:"px-4 py-8 text-left font-mono-data text-xs text-muted-foreground",children:s("threats.loading")}),!m&&o.map(t=>{const n=l[t.severity]||l.Sledování,a=N===t.id,c=n.dot;return e.jsxs("div",{onClick:()=>_(t.id),className:`px-4 py-4 cursor-pointer transition-colors ${a?"bg-secondary/20":"hover:bg-secondary/10"}`,children:[e.jsxs("div",{className:"flex items-start justify-between gap-3 mb-1.5",children:[e.jsxs("div",{className:"flex items-start gap-2.5 min-w-0",children:[e.jsx("span",{className:`w-2 h-2 rounded-full mt-1 shrink-0 ${c} ${t.severity==="Kritické"?"live-dot":""}`}),e.jsx("p",{className:"text-sm font-serif text-foreground leading-snug",children:u(t.title,t.title_en)})]}),e.jsx("span",{className:`shrink-0 inline-flex items-center gap-1 font-mono-data text-[10px] px-2 py-0.5 rounded-full border ${n.badge} ${n.border}`,children:j(t.severity)})]}),e.jsx("p",{className:"font-mono-data text-[11px] text-muted-foreground pl-[18px]",children:[v(t.region,t.region_en),b(t.category,t.category_en),t.date].filter(
1Boolean).join(" · ")}),a&&(t.summary||t.source||t.source_url)&&e.jsx("div",{className:"mt-3 pt-3 border-t border-border pl-[18px]",children:t.summary&&e.jsxs("div",{className:"mb-3",children:[e.jsx("span",{className:"block font-mono-data text-[10px] text-muted-foreground uppercase tracking-wider mb-1",children:s("threats.col_content")}),e.jsx("p",{className:"text-xs text-foreground/70 leading-relaxed font-serif",children:u(t.summary,t.summary_en)})]})})]},t.id)})]}),e.jsxs("div",{className:"px-4 py-3 border-t border-border flex items-center justify-between bg-transparent",children:[e.jsxs("span",{className:"font-mono-data text-[11px] text-muted-foreground",children:[s("threats.footer_signals")," ",e.jsx("span",{className:"text-foreground",children:o.length})]}),e.jsxs("span",{className:"font-mono-data text-[11px] text-muted-foreground flex items-center gap-1.5",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary live-dot"}),s("threats.footer_source")]})]})]})]})]})}function V(){const{t:r}=E(),[i,x]=g.useState(!1);g.useEffect(()=>{$.auth.getSession().then(({data:{session:p}})=>{x(!!p)});const{data:{subscription:d}}=$.auth.onAuthStateChange((p,h)=>{x(!!h)});return()=>d.unsubscribe()},[]);const s=[{num:"01",title:r("monitoring.step_01_title"),desc:r("monitoring.step_01_desc")},{num:"02",title:r("monitoring.step_02_title"),desc:r("monitoring.step_02_desc")},{num:"03",title:r("monitoring.step_03_title"),desc:r("monitoring.step_03_desc")},{num:"04",title:r("monitoring.step_04_title"),desc:r("monitoring.step_04_desc")},{num:"05",title:r("monitoring.step_05_title"),desc:r("monitoring.step_05_desc")},{num:"06",title:r("monitoring.step_06_title"),desc:r("monitoring.step_06_desc")}];return e.jsxs(T,{children:[e.jsx(B,{title:r("monitoring.seo_title"),description:r("monitoring.seo_desc"),canonicalPath:"/monitoring"}),e.jsxs("div",{className:"pt-24 min-h-screen flex flex-col",children:[e.jsx("section",{className:"px-4 md:px-6 pt-12 pb-4 max-w-[1200px] mx-auto w-full text-left",children:e.jsxs("div",{className:"grid lg:grid-cols-[2fr_1fr] gap-12 items-start",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-h1 font-serif text-foreground mb-6 text-2xl",children:r("monitoring.title")}),e.jsx("p",{className:"text-body text-foreground/80 mb-6 max-w-2xl",children:r("monitoring.intro")})]}),e.jsx("div",{className:"glass p-8 md:p-10 relative mt-4 lg:mt-0 flex items-center",children:e.jsx("p",{className:"text-base md:text-lg text-foreground/90 font-medium italic relative z-10 leading-relaxed",children:r("monitoring.quote")})})]})}),e.jsx(Z,{limit:5}),e.jsx("section",{className:"py-16 px-4 md:px-6 mt-4 mb-8",children:e.jsx("div",{className:"max-w-[1200px] mx-auto glass p-8 md:p-12 text-center",children:e.jsxs("div",{className:"flex flex-col gap-12 items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-h3 font-serif mb-4 text-foreground",children:r("monitoring.connection_title")}),e.jsx("p",{className:"text-body text-foreground/70 mb-8 max-w-2xl mx-auto",children:r("monitoring.connection_desc")}),i?e.jsx(O,{to:"/member#hrozby",className:"inline-flex items-center justify-center px-8 py-3 text-[0.8125rem] font-[600] tracking-[0.08em] uppercase border border-foreground hover:bg-foreground hover:text-background transition-colors",children:r("monitoring.btn_training")}):e.jsx("a",{href:"https://api.cliqsales.cz/widget/form/ZxOP9waLRBZG0z0MwuCF",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center px-8 py-3 text-[0.8125rem] font-[600] tracking-[0.08em] uppercase border border-foreground hover:bg-foreground hover:text-background transition-colors",children:r("monitoring.btn_start")})]}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 md:grid-cols-6 gap-3 md:gap-4 text-xs font-serif tracking-widest uppercase mt-8 w-full",children:s.map(d=>e.jsxs("div",{className:"p-4 md:p-5 border border-border/60 bg-background/50 relative group hover:border-primary/50 transition-colors min-h-[120px] flex flex-col justify-center items-center text-center",children:[e.jsx("span",{className:"absolute -top-2.5 -left-2 text-xs font-semibold text-foreground
1/60 bg-background px-2",children:d.num}),e.jsx("div",{className:"font-bold text-[11px] md:text-sm mb-1 mt-1 text-foreground leading-tight break-words",children:d.title}),e.jsx("div",{className:"text-foreground/80 text-[10px] md:text-xs leading-relaxed normal-case font-sans break-words",children:d.desc})]},d.num))})]})})})]})]})}export{V as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.