@hemangdoshi/devdeck 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/agent-client.d.ts +32 -0
  2. package/dist/commands/agent.d.ts +2 -0
  3. package/dist/commands/dev.d.ts +9 -0
  4. package/dist/commands/init.d.ts +10 -0
  5. package/dist/commands/session.d.ts +10 -0
  6. package/dist/commands/start.d.ts +7 -0
  7. package/dist/dashboard/404.html +1 -0
  8. package/dist/dashboard/__next.__PAGE__.txt +6 -0
  9. package/dist/dashboard/__next._full.txt +17 -0
  10. package/dist/dashboard/__next._head.txt +5 -0
  11. package/dist/dashboard/__next._index.txt +7 -0
  12. package/dist/dashboard/__next._tree.txt +3 -0
  13. package/dist/dashboard/_next/static/RB8s1jjgiLhjvp2HZDBhU/_buildManifest.js +1 -0
  14. package/dist/dashboard/_next/static/RB8s1jjgiLhjvp2HZDBhU/_ssgManifest.js +1 -0
  15. package/dist/dashboard/_next/static/chunks/101-70b226b829c9d4ae.js +1 -0
  16. package/dist/dashboard/_next/static/chunks/444-19cc275570eb4ec1.js +9 -0
  17. package/dist/dashboard/_next/static/chunks/87c73c54-f46fec743414da25.js +1 -0
  18. package/dist/dashboard/_next/static/chunks/968-8927f96477f316db.js +32 -0
  19. package/dist/dashboard/_next/static/chunks/app/_global-error/page-327b769f8d5a8082.js +1 -0
  20. package/dist/dashboard/_next/static/chunks/app/_not-found/page-528149ca15426794.js +1 -0
  21. package/dist/dashboard/_next/static/chunks/app/layout-970af65dc7518514.js +1 -0
  22. package/dist/dashboard/_next/static/chunks/app/page-8d1a7ef25da4dec8.js +6 -0
  23. package/dist/dashboard/_next/static/chunks/framework-f714a6dbe5864bc1.js +1 -0
  24. package/dist/dashboard/_next/static/chunks/main-26a54062acfda087.js +5 -0
  25. package/dist/dashboard/_next/static/chunks/main-app-3d143a4f086bb1fb.js +1 -0
  26. package/dist/dashboard/_next/static/chunks/next/dist/client/components/builtin/app-error-327b769f8d5a8082.js +1 -0
  27. package/dist/dashboard/_next/static/chunks/next/dist/client/components/builtin/forbidden-327b769f8d5a8082.js +1 -0
  28. package/dist/dashboard/_next/static/chunks/next/dist/client/components/builtin/global-error-279c886853324bb0.js +1 -0
  29. package/dist/dashboard/_next/static/chunks/next/dist/client/components/builtin/not-found-327b769f8d5a8082.js +1 -0
  30. package/dist/dashboard/_next/static/chunks/next/dist/client/components/builtin/unauthorized-327b769f8d5a8082.js +1 -0
  31. package/dist/dashboard/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  32. package/dist/dashboard/_next/static/chunks/webpack-c708016a143f497e.js +1 -0
  33. package/dist/dashboard/_next/static/css/5379a39d263cf11e.css +1 -0
  34. package/dist/dashboard/_next/static/media/22a5144ee8d83bca-s.p.woff2 +0 -0
  35. package/dist/dashboard/_next/static/media/9766a7e9e2e0ad5a-s.woff2 +0 -0
  36. package/dist/dashboard/_next/static/media/aa016aab0e6d1295-s.woff2 +0 -0
  37. package/dist/dashboard/_next/static/media/b66cf8e69499582a-s.woff2 +0 -0
  38. package/dist/dashboard/_next/static/media/f639721981034f88-s.woff2 +0 -0
  39. package/dist/dashboard/_not-found/__next._full.txt +18 -0
  40. package/dist/dashboard/_not-found/__next._head.txt +5 -0
  41. package/dist/dashboard/_not-found/__next._index.txt +7 -0
  42. package/dist/dashboard/_not-found/__next._not-found.__PAGE__.txt +5 -0
  43. package/dist/dashboard/_not-found/__next._not-found.txt +5 -0
  44. package/dist/dashboard/_not-found/__next._tree.txt +3 -0
  45. package/dist/dashboard/_not-found.html +1 -0
  46. package/dist/dashboard/_not-found.txt +18 -0
  47. package/dist/dashboard/index.html +1 -0
  48. package/dist/dashboard/index.txt +17 -0
  49. package/dist/dashboard/static/index.html +43 -0
  50. package/dist/format-agent-output.d.ts +5 -0
  51. package/dist/index.d.ts +8 -0
  52. package/dist/index.js +45 -0
  53. package/dist/session-state.d.ts +21 -0
  54. package/package.json +25 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[167,819,851,896,988],{1680:()=>{}},_=>{_.O(0,[587,968,358],()=>_(_.s=1680)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{2462:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return l(3496)}])},3496:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=l(4568),n=l(5230),o=function(){return(0,r.jsx)("html",{children:(0,r.jsx)("body",{children:(0,r.jsx)(n.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})})})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5230:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}});let r=l(4568),n=l(6961);function o({status:e,message:t}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:`${e}: ${t}`}),(0,r.jsx)("div",{style:n.styles.error,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,r.jsx)("h1",{className:"next-error-h1",style:n.styles.h1,children:e}),(0,r.jsx)("div",{style:n.styles.desc,children:(0,r.jsx)("h2",{style:n.styles.h2,children:t})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6961:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"styles",{enumerable:!0,get:function(){return l}});let l={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{e.O(0,[587,968,358],()=>e(e.s=2462)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{1772:(t,e,a)=>{Promise.resolve().then(a.t.bind(a,6944,23)),Promise.resolve().then(a.bind(a,2437)),Promise.resolve().then(a.bind(a,4757)),Promise.resolve().then(a.t.bind(a,9356,23))},2437:(t,e,a)=>{"use strict";a.d(e,{Toaster:()=>m});var s=a(4568),i=a(6888),d=a(4188);let o=(0,d.A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),r=(0,d.A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var n=a(6688);let l=(0,d.A)("octagon-x",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var c=a(8874);let m=({...t})=>(0,s.jsx)(i.l$,{theme:"light",className:"toaster group",icons:{success:(0,s.jsx)(o,{className:"size-4"}),info:(0,s.jsx)(r,{className:"size-4"}),warning:(0,s.jsx)(n.A,{className:"size-4"}),error:(0,s.jsx)(l,{className:"size-4"}),loading:(0,s.jsx)(c.A,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},toastOptions:{classNames:{toast:"cn-toast"}},...t})},4757:(t,e,a)=>{"use strict";a.d(e,{TooltipProvider:()=>p,ZI:()=>g,k$:()=>u,m_:()=>f});var s=a(4568),i=a(4589),d=a(375),o=a(6741),r=a(9911),n=a(3833),l=a(9278),c=a(3735),m=a(7483);function p({delay:t=0,...e}){return(0,s.jsx)(i.B,{"data-slot":"tooltip-provider",delay:t,...e})}function f({...t}){return(0,s.jsx)(d.s,{"data-slot":"tooltip",...t})}function u({...t}){return(0,s.jsx)(o.k,{"data-slot":"tooltip-trigger",...t})}function g({className:t,side:e="top",sideOffset:a=4,align:i="center",alignOffset:d=0,children:o,...p}){return(0,s.jsx)(r.K,{children:(0,s.jsx)(n.o,{align:i,alignOffset:d,side:e,sideOffset:a,className:"isolate z-50",children:(0,s.jsxs)(l.o,{"data-slot":"tooltip-content",className:(0,m.cn)("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...p,children:[o,(0,s.jsx)(c.P,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}},6944:()=>{},7483:(t,e,a)=>{"use strict";a.d(e,{cn:()=>d});var s=a(9917),i=a(2809);function d(...t){return(0,i.QP)((0,s.$)(t))}},9356:t=>{t.exports={style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"},className:"__className_246ccd",variable:"__variable_246ccd"}}},t=>{t.O(0,[518,101,587,968,358],()=>t(t.s=1772)),_N_E=t.O()}]);
@@ -0,0 +1,6 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{1653:(e,t,a)=>{Promise.resolve().then(a.bind(a,4236))},4236:(e,t,a)=>{"use strict";a.d(t,{DashboardShell:()=>e4});var s=a(4568),r=a(7620),i=a(4435),n=a(7378),l=a(1477),o=a(383),d=a(4925),c=a(974),u=a(3932),p=a(6888),x=a(8515),m=a(5283),g=a(1397),h=a(7483);let f=(0,g.F)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function v({className:e,variant:t="default",render:a,...s}){return(0,m.C)({defaultTagName:"span",props:(0,x.v6)({className:(0,h.cn)(f({variant:t}),e)},s),render:a,state:{slot:"badge",variant:t}})}var b=a(9086);let j=(0,g.F)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function w({className:e,variant:t="default",size:a="default",...r}){return(0,s.jsx)(b.$,{"data-slot":"button",className:(0,h.cn)(j({variant:t,size:a,className:e})),...r})}function y({className:e,size:t="default",...a}){return(0,s.jsx)("div",{"data-slot":"card","data-size":t,className:(0,h.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})}function N({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card-content",className:(0,h.cn)("px-4 group-data-[size=sm]/card:px-3",e),...t})}var z=a(1539),k=a(2407),S=a(8874),_=a(6688),C=a(3045),A=a(972),$=a(1300),T=a(890),E=a(4514),I=a(1470);function R({className:e,children:t,...a}){return(0,s.jsxs)(A.V,{"data-slot":"scroll-area",className:(0,h.cn)("relative",e),...a,children:[(0,s.jsx)($.B,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:t}),(0,s.jsx)(D,{}),(0,s.jsx)(T.I,{})]})}function D({className:e,orientation:t="vertical",...a}){return(0,s.jsx)(E.V,{"data-slot":"scroll-area-scrollbar","data-orientation":t,orientation:t,className:(0,h.cn)("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",e),...a,children:(0,s.jsx)(I.l,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function O({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"skeleton",className:(0,h.cn)("animate-pulse rounded-md bg-muted",e),...t})}function L(e){var t,a,r;let i=e.services.some(e=>"error"===e.status||"exited"===e.status);return(0,s.jsxs)(y,{className:(0,h.cn)("overflow-hidden rounded-[1.75rem] border border-slate-900/10 bg-[#09111a] text-slate-100 shadow-[0_24px_70px_rgba(15,23,42,0.28)]","sky"===(t=e.color??"slate")?"border-t-2 border-t-sky-400/50":"mint"===t?"border-t-2 border-t-emerald-400/50":"amber"===t?"border-t-2 border-t-amber-400/50":"rose"===t?"border-t-2 border-t-rose-400/50":"border-t border-t-slate-700/40"),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-white/6 bg-[#0b1623] px-3 py-2",children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-col",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-[11px] uppercase tracking-[0.2em] text-slate-400",children:["connected"===(a=e.connectionState)?(0,s.jsx)(C.A,{className:"size-3 text-emerald-300"}):"reconnecting"===a?(0,s.jsx)(S.A,{className:"size-3 animate-spin text-amber-200"}):"disconnected"===a?(0,s.jsx)(_.A,{className:"size-3 text-rose-200"}):(0,s.jsx)(S.A,{className:"size-3 animate-spin text-sky-200"}),e.title??"stream"]}),e.subtitle?(0,s.jsx)("span",{className:"mt-0.5 truncate text-[10px] text-slate-600",children:e.subtitle}):null]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(v,{className:(0,h.cn)("rounded-full px-2 py-0 text-[10px]","connected"===(r=e.connectionState)?"border-emerald-400/20 bg-emerald-400/12 text-emerald-100":"reconnecting"===r?"border-amber-400/20 bg-amber-400/12 text-amber-100":"disconnected"===r?"border-rose-400/20 bg-rose-400/12 text-rose-100":"border-sky-400/20 bg-sky-400/12 text-sky-100"),children:e.connectionState}),(0,s.jsxs)(v,{variant:"outline",className:"rounded-full border-white/10 bg-white/5 px-2 py-0 text-[10px] text-slate-300",children:[e.logs.length," lines"]})]})]}),"reconnecting"===e.connectionState&&e.logs.length>0?(0,s.jsxs)("div",{className:"border-b border-amber-400/15 bg-amber-400/8 px-3 py-1.5 text-xs text-amber-100",children:["Reconnecting to the local session stream. Existing logs are preserved",e.reconnectAttempt>1?` (${e.reconnectAttempt})`:"","."]}):null,e.hasReceivedSnapshot?null:(0,s.jsx)("div",{className:"grid gap-2 p-3",style:{minHeight:e.heightClass?void 0:"10rem"},children:Array.from({length:6},(e,t)=>(0,s.jsxs)("div",{className:"rounded-md border border-white/6 bg-white/[0.03] p-2",children:[(0,s.jsx)(O,{className:"h-3 w-28 bg-white/8"}),(0,s.jsx)(O,{className:"mt-2 h-3 w-3/4 bg-white/8"})]},t))}),e.hasReceivedSnapshot&&0===e.logs.length?(0,s.jsx)("div",{className:"flex flex-1 items-center justify-center px-6 py-16 text-center",style:{minHeight:"12rem"},children:(0,s.jsxs)("div",{className:"max-w-sm space-y-2",children:[(0,s.jsx)("div",{className:"mx-auto flex h-10 w-10 items-center justify-center rounded-full border border-white/10 bg-white/5 text-slate-300",children:"reconnecting"===e.connectionState?(0,s.jsx)(S.A,{className:"size-4 animate-spin"}):i?(0,s.jsx)(_.A,{className:"size-4"}):(0,s.jsx)(C.A,{className:"size-4"})}),(0,s.jsx)("div",{className:"text-sm font-medium text-slate-100",children:"reconnecting"===e.connectionState?"Reconnecting to local session":i?"Waiting on failed services":"No logs yet"}),(0,s.jsx)("div",{className:"text-xs leading-5 text-slate-400",children:"reconnecting"===e.connectionState?"The terminal surface will resume when the local session stream is back.":i?"One or more services exited before producing healthy output.":"Services are running but nothing has been emitted yet."})]})}):null,e.logs.length>0?(0,s.jsx)(R,{className:e.heightClass??"h-[40rem]",children:(0,s.jsx)("div",{className:"space-y-1 px-3 py-2 font-mono text-[12px] leading-5 text-slate-100",children:e.logs.map((t,a)=>{var r;let i=e.logs[a-1],n=t.isStackTrace&&i&&i.service===t.service;return(0,s.jsxs)("article",{className:(0,h.cn)("rounded-md border border-transparent px-2 py-1.5",n?"ml-6 border-l border-l-white/8 pl-3":["bg-white/[0.015]","error"===(r=t.severity)?"border-l-2 border-l-rose-400/70":"warning"===r?"border-l-2 border-l-amber-300/70":"border-l-2 border-l-cyan-300/30"]),children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-[10px] uppercase tracking-[0.16em] text-slate-500",children:[(0,s.jsx)("span",{className:"min-w-14 text-slate-300",children:new Date(t.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}),(0,s.jsx)("span",{className:"rounded-full border border-white/8 bg-white/4 px-1.5 py-0.5 text-slate-300",children:t.service}),(0,s.jsx)("span",{children:t.severity}),(0,s.jsx)("span",{children:t.stream})]}),(0,s.jsx)("pre",{className:"mt-1 whitespace-pre-wrap break-words text-[12px] leading-5 text-slate-100",children:t.line})]},t.id)})})}):null]})}var P=a(8742),M=a(1814),V=a(1201),F=a(7680);function W({className:e,type:t,...a}){return(0,s.jsx)(F.p,{type:t,"data-slot":"input",className:(0,h.cn)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}var U=a(435),B=a(9765),J=a(9836),H=a(6369),K=a(4948),Z=a(3287),q=a(4527),G=a(4183),Q=a(1753),X=a(5516),Y=a(1629),ee=a(7446),et=a(6427),ea=a(7812),es=a(7024),er=a(2915);let ei=U.H;function en({className:e,...t}){return(0,s.jsx)(B.y,{"data-slot":"select-value",className:(0,h.cn)("flex flex-1 text-left",e),...t})}function el({className:e,size:t="default",children:a,...r}){return(0,s.jsxs)(J.b,{"data-slot":"select-trigger","data-size":t,className:(0,h.cn)("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[a,(0,s.jsx)(H.w,{render:(0,s.jsx)(ea.A,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function eo({className:e,children:t,side:a="bottom",sideOffset:r=4,align:i="center",alignOffset:n=0,alignItemWithTrigger:l=!0,...o}){return(0,s.jsx)(K.V,{children:(0,s.jsx)(Z.l,{side:a,sideOffset:r,align:i,alignOffset:n,alignItemWithTrigger:l,className:"isolate z-50",children:(0,s.jsxs)(q.t,{"data-slot":"select-content","data-align-trigger":l,className:(0,h.cn)("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...o,children:[(0,s.jsx)(ec,{}),(0,s.jsx)(G.B,{children:t}),(0,s.jsx)(eu,{})]})})})}function ed({className:e,children:t,...a}){return(0,s.jsxs)(Q.e,{"data-slot":"select-item",className:(0,h.cn)("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[(0,s.jsx)(X.h,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:t}),(0,s.jsx)(Y.h,{render:(0,s.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,s.jsx)(es.A,{className:"pointer-events-none"})})]})}function ec({className:e,...t}){return(0,s.jsx)(ee.w,{"data-slot":"select-scroll-up-button",className:(0,h.cn)("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,s.jsx)(er.A,{})})}function eu({className:e,...t}){return(0,s.jsx)(et.d,{"data-slot":"select-scroll-down-button",className:(0,h.cn)("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,s.jsx)(ea.A,{})})}var ep=a(5461),ex=a(6397);let em=(0,g.F)("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}}),eg=r.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});function eh({className:e,variant:t,size:a,spacing:r=2,orientation:i="horizontal",children:n,...l}){return(0,s.jsx)(ex.O,{"data-slot":"toggle-group","data-variant":t,"data-size":a,"data-spacing":r,"data-orientation":i,style:{"--gap":r},className:(0,h.cn)("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch",e),...l,children:(0,s.jsx)(eg.Provider,{value:{variant:t,size:a,spacing:r,orientation:i},children:n})})}function ef({className:e,children:t,variant:a="default",size:i="default",...n}){let l=r.useContext(eg);return(0,s.jsx)(ep.l,{"data-slot":"toggle-group-item","data-variant":l.variant||a,"data-size":l.size||i,"data-spacing":l.spacing,className:(0,h.cn)("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",em({variant:l.variant||a,size:l.size||i}),e),...n,children:t})}function ev(e){return(0,s.jsx)(y,{className:"rounded-3xl border-white/70 bg-white/72 shadow-[0_20px_50px_rgba(15,23,42,0.08)] backdrop-blur-xl",children:(0,s.jsxs)(N,{className:"flex flex-col gap-4 p-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 xl:flex-row xl:items-center",children:[(0,s.jsxs)("div",{className:"relative flex-1",children:[(0,s.jsx)(P.A,{className:"pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-slate-400"}),(0,s.jsx)(W,{"aria-label":"Search logs",className:"h-10 rounded-full border-slate-200 bg-white/90 pl-9",onChange:t=>e.onSearchChange(t.target.value),placeholder:"Search current session logs",value:e.search})]}),(0,s.jsxs)(ei,{onValueChange:t=>{t&&e.onSelectService(t)},value:e.selectedService,children:[(0,s.jsx)(el,{"aria-label":"Filter service",className:"h-10 w-full rounded-full border-slate-200 bg-white/90 xl:w-56",children:(0,s.jsx)(en,{})}),(0,s.jsxs)(eo,{children:[(0,s.jsx)(ed,{value:"all",children:"All services"}),e.services.map(e=>(0,s.jsx)(ed,{value:e.name,children:e.name},e.name))]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 xl:flex-row xl:items-center xl:justify-between",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-slate-500",children:[(0,s.jsx)(M.A,{className:"size-4"}),"Active filters"]}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,s.jsx)(v,{variant:"outline",className:"rounded-full bg-white/80 px-2.5",children:"all"===e.selectedService?"All services":e.selectedService}),(0,s.jsx)(v,{variant:"outline",className:"rounded-full bg-white/80 px-2.5",children:"all"===e.severity?"All severities":e.severity}),(0,s.jsxs)(v,{variant:"outline",className:"rounded-full bg-white/80 px-2.5",children:[e.visibleLogCount," visible"]}),(0,s.jsx)(v,{variant:"outline",className:"rounded-full bg-white/80 px-2.5",children:"Unified tile only"})]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsxs)(eh,{"aria-label":"Filter severity",multiple:!1,onValueChange:t=>{e.onSeverityChange(t[0]??"all")},value:[e.severity],children:[(0,s.jsx)(ef,{value:"all",children:"All"}),(0,s.jsx)(ef,{value:"info",children:"Info"}),(0,s.jsx)(ef,{value:"warning",children:"Warn"}),(0,s.jsx)(ef,{value:"error",children:"Error"})]}),(0,s.jsxs)(w,{className:"rounded-full bg-white/85",onClick:()=>void e.onCopyLogs(),size:"sm",variant:"outline",children:[(0,s.jsx)(V.A,{className:"size-3.5"}),"Copy visible logs"]})]})]})]})})}var eb=a(4265),ej=a(1613),ew=a(2298),ey=a(9844),eN=a(8912),ez=a(4110),ek=a(5311);function eS({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"empty",className:(0,h.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...t})}function e_({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"empty-header",className:(0,h.cn)("flex max-w-sm flex-col items-center gap-2",e),...t})}let eC=(0,g.F)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});function eA({className:e,variant:t="default",...a}){return(0,s.jsx)("div",{"data-slot":"empty-icon","data-variant":t,className:(0,h.cn)(eC({variant:t,className:e})),...a})}function e$({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"empty-title",className:(0,h.cn)("font-heading text-sm font-medium tracking-tight",e),...t})}function eT({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"empty-description",className:(0,h.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}var eE=a(4757);function eI(e){return(0,s.jsx)("aside",{className:"grid gap-4 xl:sticky xl:top-6",children:(0,s.jsx)(y,{className:"rounded-[1.75rem] border-white/70 bg-white/72 shadow-[0_20px_50px_rgba(15,23,42,0.08)] backdrop-blur-xl",children:(0,s.jsxs)(N,{className:"grid gap-3 p-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 px-1",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm font-semibold text-slate-950",children:"Services"}),(0,s.jsx)("div",{className:"text-xs text-slate-500",children:"Compact rail with selected-row actions"})]}),(0,s.jsx)(v,{variant:"outline",className:"rounded-full bg-white/80 px-2.5",children:e.services.length})]}),(0,s.jsxs)("button",{className:(0,h.cn)("flex items-center justify-between rounded-2xl border px-3 py-2 text-left transition-all","all"===e.selectedService?"border-slate-900/10 bg-slate-950 text-white shadow-[0_16px_35px_rgba(15,23,42,0.18)]":"border-white/70 bg-white/80 text-slate-900 hover:bg-white"),onClick:()=>e.onSelectService("all"),type:"button",children:[(0,s.jsx)("span",{className:"text-sm font-medium",children:"All services"}),(0,s.jsx)("span",{className:(0,h.cn)("text-xs","all"===e.selectedService?"text-slate-200":"text-slate-500"),children:"Unified"})]}),e.hasReceivedSnapshot?null:(0,s.jsx)("div",{className:"grid gap-2",children:Array.from({length:4},(e,t)=>(0,s.jsxs)("div",{className:"rounded-2xl border border-white/70 bg-white/70 p-3",children:[(0,s.jsx)(O,{className:"h-4 w-24 rounded-full"}),(0,s.jsx)(O,{className:"mt-2 h-3 w-18 rounded-full"})]},t))}),e.hasReceivedSnapshot&&0===e.services.length?(0,s.jsx)(eS,{className:"rounded-2xl border border-dashed border-slate-300/80 bg-white/70",children:(0,s.jsxs)(e_,{children:[(0,s.jsx)(eA,{variant:"icon",children:(0,s.jsx)(eb.A,{})}),(0,s.jsx)(e$,{children:"No services yet"}),(0,s.jsx)(eT,{children:"The current session snapshot did not expose any managed services."})]})}):null,(0,s.jsx)(k.N,{mode:"popLayout",children:e.services.map(t=>{var a;let r=e.selectedService===t.name,i="unreachable"===t.health||"error"===t.status||"exited"===t.status;return(0,s.jsxs)(z.P.div,{layout:!0,initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},transition:{type:"spring",stiffness:350,damping:25},className:(0,h.cn)("rounded-2xl border px-3 py-2 text-left transition-colors duration-300",r?"border-slate-900/10 bg-white shadow-[0_16px_35px_rgba(15,23,42,0.12)]":"border-white/70 bg-white/70 hover:bg-white"),children:[(0,s.jsx)("button",{className:"w-full text-left",onClick:()=>e.onSelectService(t.name),type:"button",children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"truncate text-sm font-medium text-slate-950",children:t.name}),t.group?(0,s.jsx)(v,{variant:"outline",className:"rounded-full bg-white/80 px-2 py-0 text-[10px]",children:t.group}):null]}),(0,s.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2 text-[11px] text-slate-500",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1",children:["healthy"===t.health?(0,s.jsx)(ej.A,{className:"size-3"}):(0,s.jsx)(ew.A,{className:"size-3"}),t.health]}),t.port?(0,s.jsxs)("span",{children:[":",t.port]}):null,t.restartCount>0?(0,s.jsxs)("span",{children:["r",t.restartCount]}):null]})]}),(0,s.jsx)(v,{className:(0,h.cn)("rounded-full px-2.5","running"===(a=t.status)?"bg-emerald-500 text-white":"error"===a||"exited"===a?"bg-rose-500 text-white":"starting"===a||"stopping"===a?"bg-amber-500 text-white":"bg-slate-500 text-white"),children:t.status})]})}),(0,s.jsx)(k.N,{initial:!1,children:r&&(0,s.jsxs)(z.P.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2,ease:"easeInOut"},className:"mt-3 flex flex-wrap items-center gap-2 border-t border-slate-200/70 pt-3 overflow-hidden",children:[(0,s.jsx)(eR,{label:"Start",onClick:()=>e.onStart(t.name),icon:(0,s.jsx)(ey.A,{className:"size-3.5"})}),(0,s.jsx)(eR,{label:"Stop",onClick:()=>e.onStop(t.name),icon:(0,s.jsx)(eN.A,{className:"size-3.5"})}),(0,s.jsx)(eR,{label:"Restart",onClick:()=>e.onRestart(t.name),icon:(0,s.jsx)(ez.A,{className:"size-3.5"})}),t.lastError?(0,s.jsx)("span",{className:"ml-auto max-w-[10rem] truncate text-[11px] text-amber-700",children:t.lastError}):i?(0,s.jsxs)(v,{variant:"outline",className:"ml-auto rounded-full border-amber-300 bg-amber-50 px-2.5 text-amber-700",children:[(0,s.jsx)(ek.A,{className:"size-3"}),"Needs attention"]}):null]})})]},t.name)})})]})})})}function eR({label:e,onClick:t,icon:a}){return(0,s.jsxs)(eE.m_,{children:[(0,s.jsxs)(eE.k$,{render:(0,s.jsx)(w,{"aria-label":e,className:"rounded-full bg-white/80 px-3",onClick:e=>{e.stopPropagation(),t()},size:"sm",variant:"outline"}),children:[a,e]}),(0,s.jsx)(eE.ZI,{children:e})]})}var eD=a(1410),eO=a(3508),eL=a(9250),eP=a(4314),eM=a(4185),eV=a(1121),eF=a(3792);function eW({className:e,orientation:t="horizontal",...a}){return(0,s.jsx)(eF.w,{"data-slot":"separator",orientation:t,className:(0,h.cn)("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",e),...a})}function eU({borderWidth:e=1,duration:t=14,shineColor:a="#000000",className:r,style:i,...n}){return(0,s.jsx)("div",{style:{"--border-width":`${e}px`,"--duration":`${t}s`,backgroundImage:`radial-gradient(transparent,transparent, ${Array.isArray(a)?a.join(","):a},transparent,transparent)`,backgroundSize:"300% 300%",mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude",padding:"var(--border-width)",...i},className:(0,h.cn)("motion-safe:animate-shine pointer-events-none absolute inset-0 size-full rounded-[inherit] will-change-[background-position]",r),...n})}let eB=r.forwardRef(({shimmerColor:e="#ffffff",shimmerSize:t="0.05em",shimmerDuration:a="3s",borderRadius:r="100px",background:i="rgba(0, 0, 0, 1)",className:n,children:l,...o},d)=>(0,s.jsxs)("button",{style:{"--spread":"90deg","--shimmer-color":e,"--radius":r,"--speed":a,"--cut":t,"--bg":i},className:(0,h.cn)("group relative z-0 flex cursor-pointer items-center justify-center overflow-hidden [border-radius:var(--radius)] border border-white/10 px-6 py-3 whitespace-nowrap text-white [background:var(--bg)]","transform-gpu transition-transform duration-300 ease-in-out active:translate-y-px",n),ref:d,...o,children:[(0,s.jsx)("div",{className:(0,h.cn)("-z-30 blur-[2px]","@container-[size] absolute inset-0 overflow-visible"),children:(0,s.jsx)("div",{className:"animate-shimmer-slide absolute inset-0 aspect-[1] h-[100cqh] rounded-none [mask:none]",children:(0,s.jsx)("div",{className:"animate-spin-around absolute -inset-full w-auto [translate:0_0] rotate-0 [background:conic-gradient(from_calc(270deg-(var(--spread)*0.5)),transparent_0,var(--shimmer-color)_var(--spread),transparent_var(--spread))]"})})}),l,(0,s.jsx)("div",{className:(0,h.cn)("absolute inset-0 size-full","rounded-2xl px-4 py-1.5 text-sm font-medium shadow-[inset_0_-8px_10px_#ffffff1f]","transform-gpu transition-all duration-300 ease-in-out","group-hover:shadow-[inset_0_-6px_10px_#ffffff3f]","group-active:shadow-[inset_0_-10px_10px_#ffffff3f]")}),(0,s.jsx)("div",{className:(0,h.cn)("absolute inset-(--cut) -z-20 [border-radius:var(--radius)] [background:var(--bg)]")})]}));function eJ(e){var t,a;return(0,s.jsxs)(y,{className:"relative overflow-hidden border-white/50 bg-white/72 shadow-[0_24px_80px_rgba(15,23,42,0.12)] backdrop-blur-xl",children:[(0,s.jsx)(eU,{borderWidth:1.5,duration:18,shineColor:["rgba(34,197,94,0.15)","rgba(59,130,246,0.18)","rgba(168,85,247,0.16)"]}),(0,s.jsxs)(N,{className:"relative flex flex-col gap-5 p-5 md:p-6",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-5 lg:flex-row lg:items-start lg:justify-between",children:[(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs uppercase tracking-[0.18em] text-slate-500",children:[(0,s.jsx)(eD.A,{className:"size-3.5"}),"Current session"]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("h1",{className:"text-3xl font-semibold tracking-tight text-slate-950 md:text-4xl",children:e.project||"DevDeck"}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsxs)(v,{className:(0,h.cn)("gap-1.5 rounded-full px-2.5","connected"===(t=e.connectionState)?"bg-emerald-500 text-white":"reconnecting"===t?"bg-amber-500 text-white":"disconnected"===t?"bg-rose-500 text-white":"bg-sky-500 text-white"),children:[(0,s.jsx)(eO.A,{className:"size-3"}),"connected"===(a=e.connectionState)?"Connected":"reconnecting"===a?"Reconnecting":"disconnected"===a?"Disconnected":"Connecting"]}),(0,s.jsxs)(v,{variant:"outline",className:"rounded-full border-slate-300/70 bg-white/70 px-2.5 text-slate-700",children:[e.serviceCount," services"]}),e.feedback?(0,s.jsx)(v,{variant:"outline",className:"rounded-full border-emerald-200 bg-emerald-50/80 px-2.5 text-emerald-700",children:e.feedback}):null]})]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsxs)(eB,{"aria-label":"Copy debug context",className:"h-9 px-4 text-sm font-medium text-slate-900",onClick:()=>void e.onCopyDebug(),background:"rgba(255,255,255,0.9)",shimmerColor:"#bfdbfe",children:[(0,s.jsx)(eL.A,{className:"size-4"}),"Copy debug context"]}),(0,s.jsxs)(eB,{"aria-label":"Export session",className:"h-9 px-4 text-sm font-medium text-white",onClick:()=>void e.onExport(),background:"rgba(15,23,42,0.96)",shimmerColor:"#dbeafe",children:[(0,s.jsx)(eP.A,{className:"size-4"}),"Export session"]}),(0,s.jsxs)(w,{"aria-label":"Stop session",className:"h-9 rounded-full px-4",variant:"destructive",onClick:()=>void e.onStopSession(),children:[(0,s.jsx)(eM.A,{className:"size-4"}),"Stop session"]})]})]}),(0,s.jsx)(eW,{className:"bg-slate-200/80"}),(0,s.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-4",children:[(0,s.jsx)(eH,{label:"Running",value:e.runningCount,tone:"emerald"}),(0,s.jsx)(eH,{label:"Healthy",value:e.healthyCount,tone:"sky"}),(0,s.jsx)(eH,{label:"Attention",value:e.errorCount,tone:"amber"}),(0,s.jsx)(eH,{label:"Last connected",value:e.lastConnectedAt?new Date(e.lastConnectedAt).toLocaleTimeString():"Waiting",tone:"slate",icon:(0,s.jsx)(eV.A,{className:"size-3.5"})})]})]})]})}function eH({label:e,value:t,tone:a,icon:r}){var i;return(0,s.jsxs)("div",{className:(0,h.cn)("rounded-2xl border px-4 py-3","emerald"===(i=a)?"border-emerald-200/80 bg-emerald-50/70":"sky"===i?"border-sky-200/80 bg-sky-50/70":"amber"===i?"border-amber-200/80 bg-amber-50/70":"border-slate-200/80 bg-slate-50/70"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs uppercase tracking-[0.14em] text-slate-500",children:[r,e]}),(0,s.jsx)("div",{className:"mt-1 text-lg font-semibold text-slate-950",children:t})]})}eB.displayName="ShimmerButton";let eK={project:"",startedAt:"",services:[],logs:[]},eZ=["slate","sky","mint","amber","rose"],eq=["sm","md","lg"];function eG(){return{version:1,tiles:[{id:"unified",scopeType:"unified",scopeId:"all",size:"lg",color:"slate",order:0}]}}function eQ(e){return`devdeck.workspace.${e}`}function eX(e){return[...e].sort((e,t)=>e.order-t.order).map((e,t)=>({...e,order:t}))}function eY(e,t,a){let s="unified"===t?"unified":`${t}:${a}`;if(e.tiles.some(e=>e.id===s))return e;let r=e.tiles.length,i=eZ[r%eZ.length]??"slate";return{...e,tiles:[...e.tiles,{id:s,scopeType:t,scopeId:a,size:"unified"===t?"lg":"group"===t?"md":"sm",color:i,order:r}]}}function e0(e,t,a){if(t===a)return e;let s=eX(e.tiles),r=s.findIndex(e=>e.id===t),i=s.findIndex(e=>e.id===a);if(-1===r||-1===i)return e;let n=[...s],[l]=n.splice(r,1);return l?(n.splice(i,0,l),{...e,tiles:n.map((e,t)=>({...e,order:t}))}):e}function e1(e,t){return"unified"===e.scopeType?t:"group"===e.scopeType?t.filter(t=>t.group===e.scopeId):t.filter(t=>t.name===e.scopeId)}function e2(e){return"object"==typeof e&&null!==e}let e5={connect(e){let t=!0,a=null,s=null,r=!1,i=0,n=()=>{let l;t&&(e.onConnectionState(i>0?"reconnecting":"connecting"),(a=new WebSocket((l="https:"===window.location.protocol?"wss:":"ws:",`${l}//${window.location.host}/ws`))).addEventListener("open",()=>{i=0,e.onConnectionState("connected"),e.onConnectionMeta?.({lastConnectedAt:new Date().toISOString(),reconnectAttempt:0,reconnectScheduledAt:null})}),a.addEventListener("message",t=>{let a=JSON.parse(t.data);if("snapshot"===a.type){e.onConnectionMeta?.({hasReceivedSnapshot:!0}),e.onSnapshot(a.snapshot);return}"action-result"===a.type&&e.onFeedback(a.ok?`${a.action}${a.serviceName?` ${a.serviceName}`:""} complete`:a.error??"Action failed"),e.onEvent(a)}),a.addEventListener("close",()=>{a=null,!r&&t&&(i+=1,e.onConnectionState("reconnecting"),e.onConnectionMeta?.({reconnectAttempt:i,reconnectScheduledAt:new Date(Date.now()+1e3).toISOString()}),s=setTimeout(n,1e3))}))};return n(),()=>{t=!1,r=!0,s&&clearTimeout(s),a?.close()}},exportSession:async()=>(await fetch("/api/export")).text(),async performAction(e,t){await fetch("/api/actions",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:e,serviceName:t})})}};function e4({client:e}){var t,a,x,m;let g,f,b,[S,_]=(0,r.useState)("all"),[C,A]=(0,r.useState)(""),[$,T]=(0,r.useState)("all"),[E,I]=(0,r.useState)(null),[R,D]=(0,r.useState)(null),[O,P]=(0,r.useState)(eG()),[M,V]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(!M)return;let e=e=>{let t=e.target,a=document.getElementById("add-tile-menu-container"),s=document.getElementById("add-tile-toggle-button");a&&!a.contains(t)&&s&&!s.contains(t)&&V(!1)},t=e=>{"Escape"===e.key&&V(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[M]);let F=O.tiles.some(e=>"unified"===e.id),W=(0,r.useDeferredValue)(C),{connectionState:U,feedback:B,hasReceivedSnapshot:J,lastConnectedAt:H,performAction:K,reconnectAttempt:Z,snapshot:q,exportSession:G,copyText:Q}=function(e){let[t,a]=(0,r.useState)(eK),[s,i]=(0,r.useState)("connecting"),[n,l]=(0,r.useState)({hasReceivedSnapshot:!1,lastConnectedAt:null,reconnectAttempt:0,reconnectScheduledAt:null}),[o,d]=(0,r.useState)(null);return(0,r.useEffect)(()=>e.connect({onConnectionState:i,onConnectionMeta(e){l(t=>({...t,...e}))},onFeedback:d,onSnapshot(e){(0,r.startTransition)(()=>{a(e)})},onEvent(e){"event"===e.type&&(0,r.startTransition)(()=>{a(t=>{var a;let s;return a=t,"service"===(s=e.event).type?{...a,services:a.services.map(e=>e.name===s.service.name?s.service:e)}:{...a,logs:[...a.logs,s.log].slice(-500)}})})}}),[e]),{connectionState:s,hasReceivedSnapshot:n.hasReceivedSnapshot,feedback:o,lastConnectedAt:n.lastConnectedAt,reconnectAttempt:n.reconnectAttempt,reconnectScheduledAt:n.reconnectScheduledAt,snapshot:t,async copyText(e,t){await navigator.clipboard.writeText(e),d(t)},async exportSession(){let t=await e.exportSession();await navigator.clipboard.writeText(t),d("Session export copied")},async performAction(t,a){await e.performAction(t,a)}}}(e??e5),X=(0,r.useMemo)(()=>{let e=q.services.filter(e=>"running"===e.status).length;return{runningCount:e,healthyCount:q.services.filter(e=>"healthy"===e.health).length,errorCount:q.services.filter(e=>"error"===e.status||"exited"===e.status||"unreachable"===e.health).length}},[q.services]);(0,r.useEffect)(()=>{B&&(0,p.oR)(B)},[B]),(0,r.useEffect)(()=>{"all"!==S&&(q.services.some(e=>e.name===S)||_("all"))},[S,q.services]),(0,r.useEffect)(()=>{if(!q.project)return;let e=function(e,t){if(!e2(e)||1!==e.version||!Array.isArray(e.tiles))return eG();let a=e.tiles,s=new Set(t.map(e=>e.name)),r=new Set(t.flatMap(e=>e.group?[e.group]:[])),i=new Set,n=[];for(let e of a){var l,o,d;let t=function(e){var t,a,s;return e2(e)&&"string"==typeof e.id&&("unified"===(t=e.scopeType)||"group"===t||"service"===t)&&"string"==typeof e.scopeId&&(a=e.size,eq.includes(a))&&(s=e.color,eZ.includes(s))&&"number"==typeof e.order?{id:e.id,scopeType:e.scopeType,scopeId:e.scopeId,size:e.size,color:e.color,order:e.order}:null}(e);if(!t||(l=t,o=s,d=r,!("unified"===l.scopeType||("service"===l.scopeType?o.has(l.scopeId):d.has(l.scopeId)))))continue;let a=`${t.scopeType}:${t.scopeId}`;i.has(a)||(i.add(a),n.push(t))}return{version:1,tiles:eX(n)}}(R===q.project?O:function(e){if(!e)return eG();try{return JSON.parse(e)}catch{return eG()}}(window.localStorage.getItem(eQ(q.project))),q.services);(R!==q.project||JSON.stringify(e)!==JSON.stringify(O))&&P(e),R!==q.project&&D(q.project)},[R,q.project,q.services,O]),(0,r.useEffect)(()=>{q.project&&R===q.project&&window.localStorage.setItem(eQ(q.project),JSON.stringify(O))},[R,q.project,O]);let Y=(t=q.logs,a=S,x=W,m=$,g=x.trim().toLowerCase(),t.filter(e=>("all"===a||e.service===a)&&("all"===m||e.severity===m)&&(""===g||!!e.line.toLowerCase().includes(g)))),ee=(f=[...new Set(q.logs.flatMap(e=>e.urls))],b=[...new Set(q.logs.flatMap(e=>e.ports))],`Project: ${q.project}
2
+ Started: ${q.startedAt}
3
+ Statuses: ${q.services.map(e=>`${e.name}=${e.status}`).join(", ")}
4
+ Health: ${q.services.map(e=>`${e.name}=${e.health}`).join(", ")}
5
+ Known URLs: ${f.length>0?f.join(", "):"none"}
6
+ Known Ports: ${b.length>0?b.join(", "):"none"}`),et=eX(O.tiles),ea=[...new Set(q.services.flatMap(e=>e.group?[e.group]:[]))].sort();return(0,s.jsxs)(z.P.main,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.6,ease:[.16,1,.3,1]},style:{padding:"1.25rem"},className:"relative isolate min-h-screen overflow-hidden md:p-6",children:[(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 -z-20 bg-[radial-gradient(circle_at_top_left,rgba(255,255,255,0.95),transparent_28%),radial-gradient(circle_at_80%_12%,rgba(125,211,252,0.2),transparent_22%),linear-gradient(180deg,#f8fbff_0%,#eef4ff_45%,#edf8f4_100%)]"}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 -z-10 opacity-70",children:(0,s.jsx)("div",{className:"absolute inset-x-6 top-4 h-64 rounded-full bg-[radial-gradient(circle,rgba(125,211,252,0.16),transparent_60%)] blur-3xl"})}),(0,s.jsxs)("div",{className:"mx-auto grid max-w-[1600px] gap-6",children:[(0,s.jsx)(eJ,{feedback:B,project:q.project,serviceCount:q.services.length,runningCount:X.runningCount,healthyCount:X.healthyCount,errorCount:X.errorCount,connectionState:U,lastConnectedAt:H,onCopyDebug:()=>Q(ee,"Debug context copied"),onExport:G,onStopSession:()=>K("stop-session")}),(0,s.jsxs)("section",{className:"grid items-start gap-6 xl:grid-cols-[minmax(15rem,18rem)_minmax(0,1fr)]",children:[(0,s.jsx)(eI,{hasReceivedSnapshot:J,selectedService:S,services:q.services,onRestart:e=>K("restart",e),onSelectService:_,onStart:e=>K("start",e),onStop:e=>K("stop",e)}),(0,s.jsxs)("div",{className:"grid gap-4 xl:min-w-0",children:[(0,s.jsx)(ev,{selectedService:S,services:q.services,search:C,severity:$,visibleLogCount:Y.length,onCopyLogs:()=>Q(Y.map(e=>`[${e.service}] ${e.severity.toUpperCase()} ${e.line}`).join("\n"),"Visible logs copied"),onSearchChange:A,onSelectService:_,onSeverityChange:T}),(0,s.jsx)(y,{className:"rounded-[1.75rem] border-white/70 bg-white/72 shadow-[0_20px_50px_rgba(15,23,42,0.08)] backdrop-blur-xl",children:(0,s.jsxs)(N,{className:"grid gap-4 p-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold text-slate-950",children:[(0,s.jsx)(i.A,{className:"size-4"}),"Tile workspace"]}),(0,s.jsx)("div",{className:"mt-1 text-sm text-slate-500",children:"Drag to reorder. Settings persist."})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)(w,{id:"add-tile-toggle-button","aria-label":"Add tile menu",onClick:()=>V(e=>!e),className:"flex items-center gap-2 rounded-full border border-slate-200 bg-white px-3 py-2 text-sm font-medium text-slate-900 shadow-sm transition hover:bg-slate-50",variant:"outline",children:[(0,s.jsx)(n.A,{className:"size-4"}),"Add tile"]}),(0,s.jsx)(k.N,{children:M&&(0,s.jsxs)(z.P.div,{id:"add-tile-menu-container",initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{type:"spring",stiffness:450,damping:30},className:"absolute right-0 top-full mt-2 z-50 grid gap-3 rounded-[1.5rem] border border-slate-200 bg-white p-3 shadow-[0_18px_40px_rgba(15,23,42,0.08)] lg:min-w-[26rem]",children:[(0,s.jsxs)("div",{className:"grid gap-2",children:[(0,s.jsx)("div",{className:"text-xs font-semibold uppercase tracking-[0.14em] text-slate-500",children:"Streams"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:(0,s.jsx)("button",{type:"button",disabled:F,onClick:()=>{P(e=>eY(e,"unified","all")),V(!1)},className:(0,h.cn)(j({size:"sm",variant:"outline"}),"rounded-full text-xs font-medium cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),children:F?"✓ Unified stream":"Add Unified stream"})})]}),(0,s.jsxs)("div",{className:"grid gap-2",children:[(0,s.jsx)("div",{className:"text-xs font-semibold uppercase tracking-[0.14em] text-slate-500",children:"Groups"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:0===ea.length?(0,s.jsx)("span",{className:"text-sm text-slate-500",children:"No config groups yet"}):ea.map(e=>{let t=O.tiles.some(t=>t.id===`group:${e}`);return(0,s.jsx)("button",{type:"button",disabled:t,onClick:()=>{P(t=>eY(t,"group",e)),V(!1)},className:(0,h.cn)(j({size:"sm",variant:"outline"}),"rounded-full text-xs font-medium cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),children:t?`✓ ${e}`:`Add group ${e}`},e)})})]}),(0,s.jsxs)("div",{className:"grid gap-2",children:[(0,s.jsx)("div",{className:"text-xs font-semibold uppercase tracking-[0.14em] text-slate-500",children:"Services"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:q.services.map(e=>{let t,a=(t=e.name,O.tiles.some(e=>e.id===`service:${t}`));return(0,s.jsx)("button",{type:"button",disabled:a,onClick:()=>{P(t=>eY(t,"service",e.name)),V(!1)},className:(0,h.cn)(j({size:"sm",variant:"outline"}),"rounded-full text-xs font-medium cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),children:a?`✓ ${e.name}`:`Add service ${e.name}`},e.name)})})]})]})})]})]}),(0,s.jsx)("div",{className:"grid gap-4 xl:grid-cols-12",children:(0,s.jsx)(k.N,{mode:"popLayout",children:et.map((e,t)=>{var a,r,i;let n="unified"===e.scopeType?Y:function(e,t,a){if("unified"===e.scopeType)return t;let s=new Set(e1(e,a).map(e=>e.name));return t.filter(e=>s.has(e.service))}(e,q.logs,q.services),p=e1(e,q.services),x="unified"===e.scopeType?"Unified stream":"group"===e.scopeType?`${e.scopeId} group`:e.scopeId;return(0,s.jsxs)(z.P.article,{layout:!0,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{type:"spring",stiffness:350,damping:25},className:(0,h.cn)("grid gap-3 rounded-[1.75rem] border p-3 backdrop-blur-xl transition-colors duration-300","lg"===(a=e).size?"xl:col-span-12":"md"===a.size?"xl:col-span-6":"xl:col-span-4","sky"===(r=e.color)?"bg-sky-100/70 border-sky-300/60 shadow-[0_20px_50px_rgba(14,165,233,0.08)] text-sky-950":"mint"===r?"bg-emerald-100/70 border-emerald-300/60 shadow-[0_20px_50px_rgba(16,185,129,0.08)] text-emerald-950":"amber"===r?"bg-amber-100/70 border-amber-300/60 shadow-[0_20px_50px_rgba(245,158,11,0.08)] text-amber-950":"rose"===r?"bg-rose-100/70 border-rose-300/60 shadow-[0_20px_50px_rgba(244,63,94,0.08)] text-rose-950":"bg-white/72 border-white/70 shadow-[0_20px_50px_rgba(15,23,42,0.08)] text-slate-950",E===e.id&&"opacity-40 scale-[0.98]"),"data-testid":`workspace-tile-${e.id}`,draggable:!0,onDragEnd:()=>I(null),onDragOver:e=>e.preventDefault(),onDragStart:()=>I(e.id),onDragEnter:t=>{t.preventDefault(),E&&E!==e.id&&P(t=>e0(t,E,e.id))},onDrop:()=>{I(null)},children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(v,{className:"rounded-full px-2.5 bg-slate-900/90 text-white hover:bg-slate-900",children:e.scopeType}),(0,s.jsxs)("span",{className:"text-xs uppercase tracking-[0.14em] text-slate-500",children:[p.length," service",1===p.length?"":"s"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-lg font-semibold text-slate-950",children:x}),(0,s.jsx)("div",{className:"text-sm text-slate-500",children:"unified"===e.scopeType?"Shared session filters":"group"===e.scopeType?"All services in this group":"Single service scope"})]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[t>0?(0,s.jsx)(w,{"aria-label":`Move earlier ${x}`,className:"rounded-full bg-white/85",onClick:()=>P(a=>e0(a,e.id,et[t-1].id)),size:"icon-sm",variant:"outline",children:(0,s.jsx)(l.A,{className:"size-4"})}):null,(0,s.jsx)(w,{"aria-label":`Drag ${x}`,className:"rounded-full bg-white/85",size:"icon-sm",variant:"outline",children:(0,s.jsx)(o.A,{className:"size-4"})}),(0,s.jsx)(w,{"aria-label":`Resize ${x}`,className:"rounded-full bg-white/85",onClick:()=>P(t=>{var a;return a=e.id,{...t,tiles:t.tiles.map(e=>{if(e.id!==a)return e;let t=eq.indexOf(e.size),s=-1===t?0:(t+1)%eq.length;return{...e,size:eq[s]??"sm"}})}}),size:"icon-sm",variant:"outline",children:(0,s.jsx)(d.A,{className:"size-4"})}),(0,s.jsx)(w,{"aria-label":`Recolor ${x}`,className:"rounded-full bg-white/85",onClick:()=>P(t=>{var a;return a=e.id,{...t,tiles:t.tiles.map(e=>{if(e.id!==a)return e;let t=eZ.indexOf(e.color),s=-1===t?0:(t+1)%eZ.length;return{...e,color:eZ[s]??"slate"}})}}),size:"icon-sm",variant:"outline",children:(0,s.jsx)(c.A,{className:"size-4"})}),(0,s.jsx)(w,{"aria-label":`Remove ${x}`,className:"rounded-full bg-white/85",onClick:()=>P(t=>{var a;return a=e.id,t.tiles.find(e=>e.id===a)?{...t,tiles:eX(t.tiles.filter(e=>e.id!==a))}:t}),size:"icon-sm",variant:"outline",children:(0,s.jsx)(u.A,{className:"size-4"})})]})]}),(0,s.jsx)(L,{color:e.color,connectionState:U,hasReceivedSnapshot:J,heightClass:"lg"===(i=e).size?"h-[34rem]":"md"===i.size?"h-[30rem]":"h-[24rem]",logs:n,reconnectAttempt:Z,services:p,subtitle:"unified"===e.scopeType?"Search, severity, and rail selection apply here":void 0,title:x})]},e.id)})})})]})})]})]})]})]})}},4757:(e,t,a)=>{"use strict";a.d(t,{TooltipProvider:()=>p,ZI:()=>g,k$:()=>m,m_:()=>x});var s=a(4568),r=a(4589),i=a(375),n=a(6741),l=a(9911),o=a(3833),d=a(9278),c=a(3735),u=a(7483);function p({delay:e=0,...t}){return(0,s.jsx)(r.B,{"data-slot":"tooltip-provider",delay:e,...t})}function x({...e}){return(0,s.jsx)(i.s,{"data-slot":"tooltip",...e})}function m({...e}){return(0,s.jsx)(n.k,{"data-slot":"tooltip-trigger",...e})}function g({className:e,side:t="top",sideOffset:a=4,align:r="center",alignOffset:i=0,children:n,...p}){return(0,s.jsx)(l.K,{children:(0,s.jsx)(o.o,{align:r,alignOffset:i,side:t,sideOffset:a,className:"isolate z-50",children:(0,s.jsxs)(d.o,{"data-slot":"tooltip-content",className:(0,u.cn)("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...p,children:[n,(0,s.jsx)(c.P,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}},7483:(e,t,a)=>{"use strict";a.d(t,{cn:()=>i});var s=a(9917),r=a(2809);function i(...e){return(0,r.QP)((0,s.$)(e))}}},e=>{e.O(0,[101,444,587,968,358],()=>e(e.s=1653)),_N_E=e.O()}]);