import{u as f,r as y,s as k,v as S,j as e,z as C,D as A,W as I,g as M,A as D,b as T,d as E,a3 as V,e as P,N as p,O as u,K as L,M as g,a5 as F,a6 as R,a7 as $,Q as O}from"./index-DMhQuCwd.js";import{C as n,a as c}from"./card-CN3HujGM.js";import{A as U}from"./arrow-left-DGg550oS.js";import{C as z}from"./circle-alert-ByDbC69Q.js";import{C as l}from"./circle-check-big-VBS0Lzl-.js";import{S as B}from"./server-BbBIo_lg.js";import{C as H}from"./credit-card-0UBHPigi.js";import"./analytics-Bu8LxldC.js";const o={overall:"operational",lastUpdated:new Date(Date.now()-3*60*1e3),uptime:"99.99%",uptimeDays:90},G=[{id:"core",name:"Core Platform",description:"Main application, dashboard, and API services",status:"operational",uptime:"99.99%",icon:B,responseTime:"45ms",lastIncident:null,regions:["Frankfurt","Virginia","Singapore","São Paulo"],sparklineData:[42,45,43,47,44,46,45,43,44,45,46,44]},{id:"messaging",name:"Guest Messaging",description:"WhatsApp Business API, Email, and SMS delivery",status:"operational",uptime:"99.98%",icon:g,responseTime:"120ms",lastIncident:null,regions:["Frankfurt","Virginia","Singapore"],sparklineData:[118,122,119,125,121,118,120,123,119,121,120,122]},{id:"pms",name:"PMS Integrations",description:"Property management system connections and sync",status:"operational",uptime:"99.97%",icon:F,responseTime:"85ms",lastIncident:null,regions:["Frankfurt","Virginia"],sparklineData:[82,88,84,86,85,87,83,85,86,84,85,86]},{id:"payments",name:"Payment Processing",description:"Stripe integration and payment gateway connections",status:"operational",uptime:"99.99%",icon:H,responseTime:"62ms",lastIncident:null,regions:["Frankfurt","Virginia","Singapore","São Paulo"],sparklineData:[60,63,61,64,62,61,63,62,64,61,62,63]},{id:"ai",name:"AI Engine",description:"Natural language processing and automation pipeline",status:"operational",uptime:"99.95%",icon:R,responseTime:"180ms",lastIncident:null,regions:["Frankfurt","Virginia"],sparklineData:[175,182,178,185,180,177,183,179,181,178,180,182]},{id:"auth",name:"Authentication",description:"User login, SSO, and security services",status:"operational",uptime:"100%",icon:u,responseTime:"28ms",lastIncident:null,regions:["Frankfurt","Virginia","Singapore","São Paulo"],sparklineData:[26,28,27,29,28,27,28,29,27,28,28,27]}],x=[{name:"eu-central-1",location:"Frankfurt",status:"operational",latency:"12ms"},{name:"us-east-1",location:"Virginia",status:"operational",latency:"18ms"},{name:"ap-southeast-1",location:"Singapore",status:"operational",latency:"45ms"},{name:"sa-east-1",location:"São Paulo",status:"operational",latency:"65ms"}],W=[{label:"Uptime",value:"99.99%",icon:$,helper:"Last 90 days"},{label:"Avg Response",value:"120ms",icon:O,helper:"p95 latency"},{label:"Messages",value:"12.4M",icon:g,helper:"Last 30 days"},{label:"Regions",value:"4",icon:p,helper:"Active zones"}],h=a=>{switch(a){case"operational":return"bg-emerald-500";case"degraded":return"bg-amber-500";case"outage":return"bg-red-500"}},q=a=>{switch(a){case"operational":return{label:"Operational",className:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20"};case"degraded":return{label:"Degraded",className:"bg-amber-500/10 text-amber-400 border-amber-500/20"};case"outage":return{label:"Outage",className:"bg-red-500/10 text-red-400 border-red-500/20"}}},J=a=>{switch(a){case"operational":return"All systems operational";case"degraded":return"Degraded performance";case"outage":return"Major outage"}},K=a=>{const t=Math.floor((Date.now()-a.getTime())/6e4);return t<1?"Just now":t===1?"1 minute ago":`${t} minutes ago`},Q=({data:a,className:t=""})=>{const s=Math.max(...a),i=Math.min(...a),d=s-i||1,r=24,m=80,v=a.map((j,b)=>{const w=b/(a.length-1)*m,N=r-(j-i)/d*r;return`${w},${N}`}).join(" ");return e.jsx("svg",{viewBox:`0 0 ${m} ${r}`,className:`w-20 h-6 ${t}`,preserveAspectRatio:"none",children:e.jsx("polyline",{points:v,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-emerald-400/60"})})},ie=()=>{f("common");const[a,t]=y.useState([]);return k({pageName:"Status"}),S({pageName:"Status"}),e.jsxs(e.Fragment,{children:[e.jsx(C,{title:"System Status | Cendra - Real-time Uptime Monitoring",description:"Check Cendra's real-time system status, uptime metrics, and service health. 99.99% uptime SLA with enterprise-grade reliability.",ogTitle:"System Status | Cendra",ogDescription:"Real-time system status and uptime monitoring for Cendra's hospitality AI platform.",canonicalPath:"/status"}),e.jsx(A,{items:[{name:"Home",path:"/"},{name:"Integrations",path:"/integrations"},{name:"System Status",path:"/status"}]}),e.jsxs("div",{className:"min-h-screen relative",style:{background:"linear-gradient(180deg, hsl(220 25% 8%) 0%, hsl(206 61% 12%) 50%, hsl(201 50% 15%) 100%)"},children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{opacity:"var(--dark-pattern-opacity, 0.015)",backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}}),e.jsxs("main",{className:"relative z-10",children:[e.jsx("section",{className:"pt-24 pb-6 lg:pt-28 lg:pb-8 px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs(I,{to:"/integrations",className:"inline-flex items-center gap-2 text-sm text-white/50 hover:text-white/80 mb-6 transition-colors",children:[e.jsx(U,{className:"w-4 h-4"}),"Back to Integrations"]}),e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4 mb-2",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl md:text-3xl lg:text-4xl font-semibold text-white tracking-tight mb-1",children:"System Status"}),e.jsx("p",{className:"text-sm text-white/50",children:"Real-time monitoring of all Cendra services"})]}),e.jsxs("div",{className:"flex flex-col items-start md:items-end gap-1.5",children:[e.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-2 rounded-full bg-[hsl(var(--dark-surface))] border border-[hsl(var(--dark-border))]",children:[e.jsx("div",{className:`w-2 h-2 rounded-full ${h(o.overall)}`}),e.jsx("span",{className:"text-sm font-medium text-white/90",children:J(o.overall)})]}),e.jsxs("span",{className:"text-xs text-white/40 flex items-center gap-1",children:[e.jsx(M,{className:"w-3 h-3"}),"Updated ",K(o.lastUpdated)]})]})]})]})}),e.jsx("section",{className:"py-6 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"max-w-4xl mx-auto",children:e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4",children:W.map(s=>e.jsx(n,{className:"bg-[hsl(var(--dark-surface))] border-[hsl(var(--dark-border))] hover:border-[hsl(var(--dark-border-hover))] transition-colors",style:{boxShadow:"var(--dark-shadow)"},children:e.jsxs(c,{className:"p-4 md:p-5",children:[e.jsx("div",{className:"flex items-start justify-between mb-3",children:e.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/5 border border-white/10 flex items-center justify-center",children:e.jsx(s.icon,{className:"w-4 h-4 text-white/50"})})}),e.jsx("div",{className:"text-2xl md:text-3xl font-semibold text-white tracking-tight mb-0.5",children:s.value}),e.jsx("div",{className:"text-xs text-white/40",children:s.label}),e.jsx("div",{className:"text-[10px] text-white/30 mt-1",children:s.helper})]})},s.label))})})}),e.jsx("section",{className:"py-6 px-4 sm:px-6 lg:px-8 content-auto-xl",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("h2",{className:"text-base font-medium text-white/80 mb-4",children:"Services"}),e.jsx(D,{type:"multiple",value:a,onValueChange:t,className:"space-y-2",children:G.map(s=>{const i=q(s.status),d=s.icon;return e.jsx(T,{value:s.id,className:"border-0",children:e.jsxs(n,{className:"bg-[hsl(var(--dark-surface))] border-[hsl(var(--dark-border))] hover:border-[hsl(var(--dark-border-hover))] transition-all overflow-hidden",style:{boxShadow:"var(--dark-shadow)"},children:[e.jsx(E,{className:"px-4 md:px-5 py-4 hover:no-underline [&[data-state=open]>div]:border-b [&[data-state=open]>div]:border-[hsl(var(--dark-border))] [&[data-state=open]>div]:pb-4",children:e.jsxs("div",{className:"flex items-center gap-4 w-full",children:[e.jsx("div",{className:"w-9 h-9 rounded-lg bg-white/5 border border-white/10 flex items-center justify-center flex-shrink-0",children:e.jsx(d,{className:"w-4 h-4 text-white/50"})}),e.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[e.jsx("div",{className:"text-sm font-medium text-white mb-0.5",children:s.name}),e.jsx("div",{className:"text-xs text-white/40 truncate",children:s.description})]}),e.jsxs("div",{className:"flex items-center gap-4 flex-shrink-0",children:[e.jsxs("div",{className:"hidden sm:block text-right",children:[e.jsx("div",{className:"text-sm font-medium text-white/70",children:s.uptime}),e.jsx("div",{className:"text-[10px] text-white/30",children:"uptime"})]}),e.jsx(V,{className:`${i.className} border text-xs px-2.5 py-0.5`,children:i.label})]})]})}),e.jsx(P,{className:"px-4 md:px-5 pb-4",children:e.jsxs("div",{className:"pt-4 grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"bg-white/[0.02] rounded-lg p-3 border border-white/5",children:[e.jsx("div",{className:"text-xs text-white/40 mb-2",children:"Response Time (24h)"}),e.jsxs("div",{className:"flex items-end justify-between",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-lg font-medium text-white",children:s.responseTime}),e.jsx("div",{className:"text-[10px] text-white/30",children:"avg latency"})]}),e.jsx(Q,{data:s.sparklineData})]})]}),e.jsxs("div",{className:"bg-white/[0.02] rounded-lg p-3 border border-white/5",children:[e.jsx("div",{className:"text-xs text-white/40 mb-2",children:"Active Regions"}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:s.regions.map(r=>e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[10px] bg-white/5 text-white/60",children:[e.jsx("span",{className:"w-1 h-1 rounded-full bg-emerald-400"}),r]},r))})]}),e.jsxs("div",{className:"bg-white/[0.02] rounded-lg p-3 border border-white/5",children:[e.jsx("div",{className:"text-xs text-white/40 mb-2",children:"Recent Incidents"}),s.lastIncident?e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(z,{className:"w-3.5 h-3.5 text-amber-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-xs text-white/60",children:s.lastIncident})]}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(l,{className:"w-3.5 h-3.5 text-emerald-400"}),e.jsx("span",{className:"text-xs text-white/50",children:"No incidents reported"})]})]})]})})]})},s.id)})})]})}),e.jsx("section",{className:"py-6 px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("h2",{className:"text-base font-medium text-white/80 mb-4",children:"Global Infrastructure"}),e.jsx(n,{className:"bg-[hsl(var(--dark-surface))] border-[hsl(var(--dark-border))] overflow-hidden",style:{boxShadow:"var(--dark-shadow)"},children:e.jsx(c,{className:"p-0",children:x.map((s,i)=>e.jsxs("div",{className:`flex items-center justify-between px-4 md:px-5 py-3.5 ${i!==x.length-1?"border-b border-[hsl(var(--dark-border))]":""}`,children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-7 h-7 rounded-md bg-white/5 border border-white/10 flex items-center justify-center",children:e.jsx(p,{className:"w-3.5 h-3.5 text-white/40"})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm text-white",children:s.location}),e.jsx("div",{className:"text-[10px] text-white/30 font-mono",children:s.name})]})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"text-right",children:[e.jsx("div",{className:"text-sm text-white/60",children:s.latency}),e.jsx("div",{className:"text-[10px] text-white/30",children:"latency"})]}),e.jsx("div",{className:`w-2 h-2 rounded-full ${h(s.status)}`})]})]},s.name))})})]})}),e.jsx("section",{className:"py-6 pb-16 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"max-w-4xl mx-auto",children:e.jsx(n,{className:"bg-[hsl(var(--dark-surface))] border-[hsl(var(--dark-border))] overflow-hidden",style:{boxShadow:"var(--dark-shadow)"},children:e.jsx(c,{className:"p-5 md:p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-white/5 border border-white/10 flex items-center justify-center flex-shrink-0",children:e.jsx(u,{className:"w-5 h-5 text-white/50"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-sm font-medium text-white mb-1.5",children:"Enterprise SLA"}),e.jsx("p",{className:"text-xs text-white/50 mb-4 leading-relaxed",children:"Cendra provides a 99.9% uptime SLA for all enterprise customers. Our infrastructure is designed for high availability with automatic failover across multiple regions."}),e.jsxs("div",{className:"flex flex-wrap gap-x-6 gap-y-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[e.jsx(l,{className:"w-3.5 h-3.5 text-emerald-400/70"}),e.jsx("span",{className:"text-white/60",children:"99.9% Uptime Guarantee"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[e.jsx(l,{className:"w-3.5 h-3.5 text-emerald-400/70"}),e.jsx("span",{className:"text-white/60",children:"24/7 Monitoring"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[e.jsx(l,{className:"w-3.5 h-3.5 text-emerald-400/70"}),e.jsx("span",{className:"text-white/60",children:"Multi-region Failover"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[e.jsx(l,{className:"w-3.5 h-3.5 text-emerald-400/70"}),e.jsx("span",{className:"text-white/60",children:"SOC 2 Type II"})]})]})]})]})})})})})]}),e.jsx(L,{})]})]})};export{ie as default};