railwatch 0.6.0 → 0.6.1
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.
- checksums.yaml +4 -4
- data/AGENTS.md +42 -26
- data/CHANGELOG.md +28 -0
- data/README.md +40 -29
- data/app/jobs/railwatch/rollup_job.rb +3 -1
- data/app/models/railwatch/ingest/rollup_absorber.rb +1 -1
- data/docs/ai-and-mcp.md +9 -3
- data/docs/configuration.md +68 -27
- data/docs/embedded.md +76 -43
- data/docs/faq.md +22 -10
- data/docs/getting-started.md +116 -41
- data/docs/records.md +13 -10
- data/docs/replacing-nightwatch.md +16 -14
- data/docs/replacing-sentry.md +19 -10
- data/docs/security.md +24 -3
- data/docs/self-hosting.md +9 -1
- data/docs/testing.md +14 -4
- data/docs/troubleshooting.md +62 -23
- data/lib/generators/railwatch/install/install_generator.rb +5 -4
- data/lib/generators/railwatch/install/templates/initializer.rb.tt +2 -2
- data/lib/railwatch/version.rb +1 -1
- data/llms.txt +21 -18
- data/public/railwatch/assets/{app-layout-2xAKndVD.js → app-layout-Zc0v-hYh.js} +1 -1
- data/public/railwatch/assets/{app-wordmark-Bt6XqURo.js → app-wordmark-BA_60AVb.js} +1 -1
- data/public/railwatch/assets/{appearance-DyCfeh9o.js → appearance-CcfP9tZ7.js} +1 -1
- data/public/railwatch/assets/application-BrN3Sz94.css +1 -0
- data/public/railwatch/assets/{arrow-up-EmePsTKP.js → arrow-up-CLQ-7heQ.js} +1 -1
- data/public/railwatch/assets/{auth-layout-BuwogWMZ.js → auth-layout-C05gEBIQ.js} +1 -1
- data/public/railwatch/assets/{badge-Dv7I-ebP.js → badge-DRae8XwK.js} +1 -1
- data/public/railwatch/assets/{braces-iZ7MEfYP.js → braces-rSYydpLY.js} +1 -1
- data/public/railwatch/assets/{card-DqdEEKcJ.js → card-DPjFKfen.js} +1 -1
- data/public/railwatch/assets/{chart-C4k7Ub9W.js → chart-DWh7l8yM.js} +1 -1
- data/public/railwatch/assets/{chart-hover-2yZG3w2u.js → chart-hover-CfoZUY4J.js} +1 -1
- data/public/railwatch/assets/{chart-panel-CONkZcn9.js → chart-panel-CC49WTQL.js} +1 -1
- data/public/railwatch/assets/{checkbox-DKbThbxr.js → checkbox-DPkLUiwM.js} +1 -1
- data/public/railwatch/assets/{code-CYahYQHZ.js → code-CLmYS6FU.js} +1 -1
- data/public/railwatch/assets/{copy-block-CbJum9s8.js → copy-block-CGcXxp8J.js} +1 -1
- data/public/railwatch/assets/{copy-id-JmvLfkmx.js → copy-id-vBYHQwxg.js} +1 -1
- data/public/railwatch/assets/{cursor-load-more-C1ylbqqL.js → cursor-load-more-Ddwxe5dZ.js} +1 -1
- data/public/railwatch/assets/{data-table-CVKR2wkq.js → data-table-CzKTEE-O.js} +1 -1
- data/public/railwatch/assets/{edit-BwSEVrTG.js → edit-B1kmWkzd.js} +1 -1
- data/public/railwatch/assets/{edit-BXF5oNYA.js → edit-D9cx4pbG.js} +1 -1
- data/public/railwatch/assets/{edit-D5BRDwLT.js → edit-yv6j9p-V.js} +1 -1
- data/public/railwatch/assets/{empty-state-Bn48Gplm.js → empty-state-CW4wclK_.js} +1 -1
- data/public/railwatch/assets/{env-layout-CKLL8Ds7.js → env-layout-Kz7wks1x.js} +1 -1
- data/public/railwatch/assets/{execution-path-DWovhgLi.js → execution-path-FAuIzOXB.js} +1 -1
- data/public/railwatch/assets/{filter-bar-xcbJC93z.js → filter-bar-CJDjWFib.js} +1 -1
- data/public/railwatch/assets/{flamegraph-BNbNIuKT.js → flamegraph-EaGkP2NT.js} +1 -1
- data/public/railwatch/assets/{frames-Bk39xfJG.js → frames-zZuIaNH9.js} +1 -1
- data/public/railwatch/assets/{google-sign-in-button-B5as2ps1.js → google-sign-in-button-2_zgbgVy.js} +1 -1
- data/public/railwatch/assets/{index-XjXcV-EO.js → index-B49SWz7K.js} +1 -1
- data/public/railwatch/assets/{index-B0xgzHuN.js → index-BHlY4wKe.js} +1 -1
- data/public/railwatch/assets/{index-CiaeS-n7.js → index-BZpPtyFY.js} +1 -1
- data/public/railwatch/assets/{index-BfitxVBv.js → index-BeVK6jCL.js} +1 -1
- data/public/railwatch/assets/{index-C-EwH4lO.js → index-BfbSo01U.js} +1 -1
- data/public/railwatch/assets/{index-CrA7jBTK.js → index-BfgncAv6.js} +1 -1
- data/public/railwatch/assets/{index-D0mKj3Hg.js → index-BhNszK1k.js} +1 -1
- data/public/railwatch/assets/{index-CDXlITyG.js → index-Bu01uWvw.js} +1 -1
- data/public/railwatch/assets/{index-w_skgMmK.js → index-C1s_hK3p.js} +1 -1
- data/public/railwatch/assets/{index-Zkt4W_CM.js → index-C8Cggnbw.js} +1 -1
- data/public/railwatch/assets/{index-BDVShWMs.js → index-CBip6V4z.js} +1 -1
- data/public/railwatch/assets/{index-DeLtMWou.js → index-CMJGss5R.js} +1 -1
- data/public/railwatch/assets/{index-LKgpCzoR.js → index-CRo3yK20.js} +1 -1
- data/public/railwatch/assets/{index-gCvuyG1l.js → index-CWB_p2J8.js} +1 -1
- data/public/railwatch/assets/{index-C8JIdb3_.js → index-CWHpndGc.js} +1 -1
- data/public/railwatch/assets/{index-CBFCtJAR.js → index-Ca_S4Sc3.js} +1 -1
- data/public/railwatch/assets/{index-o1xqGvLo.js → index-CanPDDOa.js} +1 -1
- data/public/railwatch/assets/{index-Bd4YpOIO.js → index-Cie90Yat.js} +1 -1
- data/public/railwatch/assets/{index-C_hQmVTP.js → index-CiepQ_pR.js} +1 -1
- data/public/railwatch/assets/{index-BRvRkfob.js → index-Cm1uCIGN.js} +1 -1
- data/public/railwatch/assets/{index-dpG-19ZN.js → index-CzitnnSC.js} +1 -1
- data/public/railwatch/assets/{index-Vj93BTR5.js → index-DEUfClv3.js} +1 -1
- data/public/railwatch/assets/index-DJKwo-mI.js +1 -0
- data/public/railwatch/assets/{index-cTzBycCg.js → index-DK6y0YHp.js} +1 -1
- data/public/railwatch/assets/{index-B-FXAo1w.js → index-DMNPpLH9.js} +1 -1
- data/public/railwatch/assets/{index-BeQw69GM.js → index-DZO1mSfX.js} +1 -1
- data/public/railwatch/assets/{index-BVWapDeB.js → index-Db5wj3M5.js} +1 -1
- data/public/railwatch/assets/{index-DV5MdmpY.js → index-Dcy5WktB.js} +1 -1
- data/public/railwatch/assets/{index-aPCZX-pW.js → index-DvG0-7Lx.js} +1 -1
- data/public/railwatch/assets/{index-Atp1FTgX.js → index-Dvj1wuka.js} +1 -1
- data/public/railwatch/assets/{index-COd9lT84.js → index-KyZX46qX.js} +1 -1
- data/public/railwatch/assets/{index-S0NVaLj9.js → index-Ze-KP-sl.js} +1 -1
- data/public/railwatch/assets/{index-DaE-1xhx.js → index-mhRbWLBM.js} +1 -1
- data/public/railwatch/assets/{index-DdVg9LKX.js → index-x099JL5f.js} +1 -1
- data/public/railwatch/assets/{index-CcennT28.js → index-x28zb_nf.js} +1 -1
- data/public/railwatch/assets/{inertia-CqnzqPVD.js → inertia-Cuyz2ZHO.js} +2 -2
- data/public/railwatch/assets/{input-error-ByT28UdP.js → input-error-hog6gGxg.js} +1 -1
- data/public/railwatch/assets/{json-viewer-Bnu9RsJL.js → json-viewer-DH2W9HXf.js} +1 -1
- data/public/railwatch/assets/{klass-nLiBV-Az.js → klass-DHbDelLk.js} +1 -1
- data/public/railwatch/assets/{label-1nSzpSB6.js → label-DdCBgiUn.js} +1 -1
- data/public/railwatch/assets/{layout-D7lE1Doo.js → layout-Cueyl7c5.js} +1 -1
- data/public/railwatch/assets/{live-dot-UdzOfzJb.js → live-dot-BZgYTYdt.js} +1 -1
- data/public/railwatch/assets/{nav-BRCgp2w3.js → nav-BSSGObDZ.js} +1 -1
- data/public/railwatch/assets/{new-COyDKOOb.js → new-B8FSb8Bl.js} +1 -1
- data/public/railwatch/assets/{new-Cd9zPNJ8.js → new-C39_v2Ll.js} +1 -1
- data/public/railwatch/assets/{new-vjRzERL3.js → new-DVOPwaC5.js} +1 -1
- data/public/railwatch/assets/{new-C60G72DR.js → new-Dd40nvJR.js} +1 -1
- data/public/railwatch/assets/{new-DMJGKjmH.js → new-SxnYe1SE.js} +1 -1
- data/public/railwatch/assets/{new-Omvf-c9s.js → new-eP5vKD3Y.js} +1 -1
- data/public/railwatch/assets/{onboarding-gUjJQc-6.js → onboarding-CUpZl5KB.js} +1 -1
- data/public/railwatch/assets/{origin-identity-M1YUPYS0.js → origin-identity-BYt2uiuo.js} +1 -1
- data/public/railwatch/assets/{percentile-picker-BxIVblBw.js → percentile-picker-CeQgllxD.js} +1 -1
- data/public/railwatch/assets/{relative-time-DQ4kjowZ.js → relative-time-D5UbF4oO.js} +1 -1
- data/public/railwatch/assets/{release-health-Cb1tMOOO.js → release-health-uP-GF3_V.js} +1 -1
- data/public/railwatch/assets/{route-BJkoEm7r.js → route-DQAY8JEr.js} +1 -1
- data/public/railwatch/assets/{segmented-C4oWE73o.js → segmented-BeIe4uqk.js} +1 -1
- data/public/railwatch/assets/{select-ocdQJdQo.js → select-2R16457Z.js} +1 -1
- data/public/railwatch/assets/{separator-Ct2UcZ2x.js → separator-D5I0UCB5.js} +1 -1
- data/public/railwatch/assets/series-chart-gnrzhmM6.js +1 -0
- data/public/railwatch/assets/show-2BkeNRUC.js +2 -0
- data/public/railwatch/assets/{show-BLJOyLb_.js → show-B0X1hRQH.js} +1 -1
- data/public/railwatch/assets/{show-C8TkpEgm.js → show-BKUV5l5q.js} +1 -1
- data/public/railwatch/assets/{show-BAjfddEn.js → show-BQJD_CsF.js} +1 -1
- data/public/railwatch/assets/{show-C6OiJ6Hr.js → show-BhmD6Sxp.js} +1 -1
- data/public/railwatch/assets/{show-CEhPVMMT.js → show-C3KcnVo2.js} +1 -1
- data/public/railwatch/assets/{show-CX_pab9S.js → show-C95cHd06.js} +1 -1
- data/public/railwatch/assets/{show-Bsu1rvnK.js → show-CdB4uVQS.js} +1 -1
- data/public/railwatch/assets/{show-yEOrk6Pt.js → show-CoCqcVIp.js} +1 -1
- data/public/railwatch/assets/{show-DDVsv-uS.js → show-D2LqjEsU.js} +1 -1
- data/public/railwatch/assets/{show-D6lgzL6n.js → show-DNpnKyTh.js} +1 -1
- data/public/railwatch/assets/{show-eKazflRI.js → show-DOlTxbig.js} +1 -1
- data/public/railwatch/assets/{show-Dwiq-8hA.js → show-DQCkttL8.js} +1 -1
- data/public/railwatch/assets/{show-CBFBiBY2.js → show-DcxesipC.js} +1 -1
- data/public/railwatch/assets/{show-BoVyMQS6.js → show-IGJoc_X0.js} +1 -1
- data/public/railwatch/assets/{show-gtwKsTsl.js → show-YsNpqbcI.js} +1 -1
- data/public/railwatch/assets/{show-B4bwI9x2.js → show-qNV6H8SH.js} +1 -1
- data/public/railwatch/assets/{sort-header-CPM6fhXv.js → sort-header-mEJUM3Av.js} +1 -1
- data/public/railwatch/assets/{sparkline-cell-CXCxXPWt.js → sparkline-cell-Dwg7awwh.js} +1 -1
- data/public/railwatch/assets/{stat-BNEfE8X1.js → stat-ZtxGU8lE.js} +1 -1
- data/public/railwatch/assets/{status-badge-D0aylrM5.js → status-badge-CH5P-Xkj.js} +1 -1
- data/public/railwatch/assets/{tenant-path-C4aM_cO0.js → tenant-path-CQoP-BeF.js} +1 -1
- data/public/railwatch/assets/{text-link-CP4lqUi6.js → text-link-DHJ8BXx5.js} +1 -1
- data/public/railwatch/assets/{textarea-DzJo2ds4.js → textarea-BeQtQyl5.js} +1 -1
- data/public/railwatch/assets/{timeline-BNcJ9PMc.js → timeline-CaKQVu48.js} +1 -1
- data/public/railwatch/assets/{transition-BX2M1iaq.js → transition-ksDpqhKJ.js} +1 -1
- data/public/railwatch/assets/{use-clipboard-C1ApSwzA.js → use-clipboard-DNefo-ky.js} +1 -1
- data/public/railwatch/assets/{use-live-DWwLg1Nj.js → use-live-DMTuhKfB.js} +1 -1
- data/public/railwatch/manifest.json +1286 -1286
- metadata +116 -116
- data/public/railwatch/assets/application-B7h1MIhi.css +0 -1
- data/public/railwatch/assets/index-DiQ4mqT_.js +0 -1
- data/public/railwatch/assets/series-chart-D6upsrSn.js +0 -1
- data/public/railwatch/assets/show-CV-lG2b6.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as u,c as L,C as H}from"./inertia-
|
|
1
|
+
import{r as i,j as u,c as L,C as H}from"./inertia-Cuyz2ZHO.js";import{u as U}from"./app-wordmark-BA_60AVb.js";import{c as G,d as K,a as j,u as X,P as $,C as J}from"./index-BfbSo01U.js";import{P as S}from"./index-CBip6V4z.js";var Q=Object.defineProperty,k=(o,e)=>Q(o,"name",{value:e,configurable:!0}),w="Checkbox",[V,ue]=G(w),[W,B]=V(w);function q(o){const{__scopeCheckbox:e,checked:c,children:r,defaultChecked:n,disabled:d,form:t,name:l,onCheckedChange:s,required:f,value:v="on",internal_do_not_use_render:C}=o,[b,x]=X({prop:c,defaultProp:n??!1,onChange:s,caller:w}),[g,I]=i.useState(null),[R,_]=i.useState(null),P=i.useRef(!1),[a,p]=i.useReducer(m=>m+1,0),E=g?!!t||!!g.closest("form"):!0,y={checked:b,disabled:d,setChecked:x,control:g,setControl:I,name:l,form:t,value:v,hasConsumerStoppedPropagationRef:P,userInteractionCount:a,onUserInteraction:p,required:f,defaultChecked:h(n)?!1:n,isFormControl:E,bubbleInput:R,setBubbleInput:_};return u.jsx(W,{scope:e,...y,children:A(C)?C(y):r})}k(q,"CheckboxProvider");var Y="CheckboxTrigger",Z=i.forwardRef(k(function({__scopeCheckbox:e,onKeyDown:c,onClick:r,...n},d){const{control:t,value:l,disabled:s,checked:f,required:v,setControl:C,setChecked:b,hasConsumerStoppedPropagationRef:x,onUserInteraction:g,isFormControl:I,bubbleInput:R}=B(Y,e),_=U(d,C),P=i.useRef(f);return i.useEffect(()=>{const a=t?.form;if(a){const p=k(()=>b(P.current),"reset");return a.addEventListener("reset",p),()=>a.removeEventListener("reset",p)}},[t,b]),u.jsx(S.button,{type:"button",role:"checkbox","aria-checked":h(f)?"mixed":f,"aria-required":v,"data-state":N(f),"data-disabled":s?"":void 0,disabled:s,value:l,...n,ref:_,onKeyDown:j(c,a=>{a.key==="Enter"&&a.preventDefault()}),onClick:j(r,a=>{g(),b(p=>h(p)?!0:!p),R&&I&&(x.current=a.isPropagationStopped(),x.current||a.stopPropagation())})})},"CheckboxTrigger")),ee=i.forwardRef(k(function(e,c){const{__scopeCheckbox:r,name:n,checked:d,defaultChecked:t,required:l,disabled:s,value:f,onCheckedChange:v,form:C,...b}=e;return u.jsx(q,{__scopeCheckbox:r,checked:d,defaultChecked:t,disabled:s,required:l,onCheckedChange:v,name:n,form:C,value:f,internal_do_not_use_render:({isFormControl:x})=>u.jsxs(u.Fragment,{children:[u.jsx(Z,{...b,ref:c,__scopeCheckbox:r}),x&&u.jsx(ne,{__scopeCheckbox:r})]})})},"Checkbox")),te="CheckboxIndicator",re=i.forwardRef(k(function(e,c){const{__scopeCheckbox:r,forceMount:n,...d}=e,t=B(te,r);return u.jsx($,{present:n||h(t.checked)||t.checked===!0,children:u.jsx(S.span,{"data-state":N(t.checked),"data-disabled":t.disabled?"":void 0,...d,ref:c,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),oe="CheckboxBubbleInput",ne=i.forwardRef(k(function({__scopeCheckbox:e,onClick:c,...r},n){const{control:d,hasConsumerStoppedPropagationRef:t,userInteractionCount:l,checked:s,defaultChecked:f,required:v,disabled:C,name:b,value:x,form:g,bubbleInput:I,setBubbleInput:R}=B(oe,e),_=U(n,R),P=K(d),a=i.useRef(!1),p=i.useRef(s),E=i.useRef(l);i.useEffect(()=>{const m=I;if(!m)return;const F=window.HTMLInputElement.prototype,T=Object.getOwnPropertyDescriptor(F,"checked").set,M=l!==E.current;E.current=l;const O=p.current!==s;p.current=s;const z=!(M&&t.current);if(O&&T){a.current=!M;const D=new Event("click",{bubbles:z});m.indeterminate=h(s),T.call(m,h(s)?!1:s),m.dispatchEvent(D),a.current=!1}},[I,s,t,l]);const y=i.useRef(h(s)?!1:s);return u.jsx(S.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??y.current,required:v,disabled:C,name:b,value:x,form:g,...r,tabIndex:-1,ref:_,onClick:j(c,m=>{a.current&&m.stopPropagation()}),style:{...r.style,...P,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function A(o){return typeof o=="function"}k(A,"isFunction");function h(o){return o==="indeterminate"}k(h,"isIndeterminate");function N(o){return h(o)?"indeterminate":o?"checked":"unchecked"}k(N,"getState");function le(o){const e=L.c(9);let c,r;e[0]!==o?({className:c,...r}=o,e[0]=o,e[1]=c,e[2]=r):(c=e[1],r=e[2]);let n;e[3]!==c?(n=H("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",c),e[3]=c,e[4]=n):n=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=u.jsx(re,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:u.jsx(J,{className:"size-3.5"})}),e[5]=d):d=e[5];let t;return e[6]!==r||e[7]!==n?(t=u.jsx(ee,{"data-slot":"checkbox",className:n,...r,children:d}),e[6]=r,e[7]=n,e[8]=t):t=e[8],t}export{le as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,C as a,j as i}from"./inertia-
|
|
1
|
+
import{c as l,C as a,j as i}from"./inertia-Cuyz2ZHO.js";function m(c){const t=l.c(5),{children:n,className:o}=c;let e;t[0]!==o?(e=a("block max-w-full truncate font-mono text-xs",o),t[0]=o,t[1]=e):e=t[1];let s;return t[2]!==n||t[3]!==e?(s=i.jsx("code",{className:e,title:n,children:n}),t[2]=n,t[3]=e,t[4]=s):s=t[4],s}function x(c){const t=l.c(5),{children:n,className:o}=c;let e;t[0]!==o?(e=a("font-mono text-xs",o),t[0]=o,t[1]=e):e=t[1];let s;return t[2]!==n||t[3]!==e?(s=i.jsx("span",{className:e,children:n}),t[2]=n,t[3]=e,t[4]=s):s=t[4],s}export{x as M,m as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,r as j,C as y,j as l}from"./inertia-
|
|
1
|
+
import{c as h,r as j,C as y,j as l}from"./inertia-Cuyz2ZHO.js";import{B as E}from"./app-wordmark-BA_60AVb.js";import{u as N,C as b}from"./use-clipboard-DNefo-ky.js";import{C as v}from"./index-BfbSo01U.js";const z=1500;function R(C){const e=h.c(17),{code:t,className:p}=C,[,m]=N(),[r,f]=j.useState(!1);let c;e[0]!==t||e[1]!==m?(c=()=>{m(t).then(x=>{x&&(f(!0),window.setTimeout(()=>f(!1),z))})},e[0]=t,e[1]=m,e[2]=c):c=e[2];const u=c;let s;e[3]!==p?(s=y("relative",p),e[3]=p,e[4]=s):s=e[4];let o;e[5]!==t?(o=l.jsx("pre",{className:"bg-muted overflow-x-auto rounded p-3 pr-10 font-mono text-xs",children:t}),e[5]=t,e[6]=o):o=e[6];const d=r?"Copied code":"Copy code";let a;e[7]!==r?(a=r?l.jsx(v,{className:"size-3.5 text-emerald-500"}):l.jsx(b,{className:"size-3.5 opacity-60"}),e[7]=r,e[8]=a):a=e[8];let i;e[9]!==u||e[10]!==d||e[11]!==a?(i=l.jsx(E,{type:"button","aria-label":d,variant:"ghost",size:"icon",className:"absolute top-1.5 right-1.5 size-6",onClick:u,children:a}),e[9]=u,e[10]=d,e[11]=a,e[12]=i):i=e[12];let n;return e[13]!==s||e[14]!==o||e[15]!==i?(n=l.jsxs("div",{className:s,children:[o,i]}),e[13]=s,e[14]=o,e[15]=i,e[16]=n):n=e[16],n}export{R as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,r as y,C as h,j as m}from"./inertia-
|
|
1
|
+
import{c as d,r as y,C as h,j as m}from"./inertia-Cuyz2ZHO.js";import{B as j}from"./app-wordmark-BA_60AVb.js";import{u as E,C as N}from"./use-clipboard-DNefo-ky.js";import{C as b}from"./index-BfbSo01U.js";const z=1500;function v(f){const t=d.c(12),{value:o,label:C,className:n}=f,[,r]=E(),[l,u]=y.useState(!1);let a;t[0]!==r||t[1]!==o?(a=()=>{r(o).then(x=>{x&&(u(!0),window.setTimeout(()=>u(!1),z))})},t[0]=r,t[1]=o,t[2]=a):a=t[2];const c=a;let s;t[3]!==n?(s=h("h-auto gap-1.5 px-1.5 py-0.5 font-mono text-xs",n),t[3]=n,t[4]=s):s=t[4];const p=C??o;let e;t[5]!==l?(e=l?m.jsx(b,{className:"size-3 text-emerald-500"}):m.jsx(N,{className:"size-3 opacity-60"}),t[5]=l,t[6]=e):e=t[6];let i;return t[7]!==c||t[8]!==s||t[9]!==p||t[10]!==e?(i=m.jsxs(j,{type:"button",variant:"ghost",size:"sm",className:s,onClick:c,children:[p,e]}),t[7]=c,t[8]=s,t[9]=p,t[10]=e,t[11]=i):i=t[11],i}export{v as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,r as x,e as f,j as u}from"./inertia-
|
|
1
|
+
import{c as m,r as x,e as f,j as u}from"./inertia-Cuyz2ZHO.js";import{B as p}from"./app-wordmark-BA_60AVb.js";function j(c){const t=m.c(8),{meta:e,href:n,only:i}=c,[o,l]=x.useState(!1);if(!e.has_more||!e.next_cursor)return null;let r;t[0]!==n||t[1]!==e.next_cursor||t[2]!==i?(r=()=>f.visit(n(e.next_cursor),{only:i,preserveState:!0,preserveScroll:!0,onStart:()=>l(!0),onFinish:()=>l(!1)}),t[0]=n,t[1]=e.next_cursor,t[2]=i,t[3]=r):r=t[3];const a=o?"Loading…":"Load "+e.limit+" more";let s;return t[4]!==o||t[5]!==r||t[6]!==a?(s=u.jsx("div",{className:"flex justify-center pt-3",children:u.jsx(p,{type:"button",variant:"outline",disabled:o,onClick:r,children:a})}),t[4]=o,t[5]=r,t[6]=a,t[7]=s):s=t[7],s}export{j as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as j,C as h,j as o,r as d}from"./inertia-
|
|
1
|
+
import{c as j,C as h,j as o,r as d}from"./inertia-Cuyz2ZHO.js";import{u as C}from"./chart-hover-CfoZUY4J.js";import{E as D}from"./empty-state-CW4wclK_.js";function _(n){const e=j.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=h("w-full caption-bottom text-sm",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==t||e[6]!==l?(r=o.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:o.jsx("table",{"data-slot":"table",className:l,...t})}),e[5]=t,e[6]=l,e[7]=r):r=e[7],r}function M(n){const e=j.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=h("[&_tr]:border-b",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==t||e[6]!==l?(r=o.jsx("thead",{"data-slot":"table-header",className:l,...t}),e[5]=t,e[6]=l,e[7]=r):r=e[7],r}function S(n){const e=j.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=h("[&_tr:last-child]:border-0",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==t||e[6]!==l?(r=o.jsx("tbody",{"data-slot":"table-body",className:l,...t}),e[5]=t,e[6]=l,e[7]=r):r=e[7],r}function T(n){const e=j.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=h("hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==t||e[6]!==l?(r=o.jsx("tr",{"data-slot":"table-row",className:l,...t}),e[5]=t,e[6]=l,e[7]=r):r=e[7],r}function I(n){const e=j.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=h("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==t||e[6]!==l?(r=o.jsx("th",{"data-slot":"table-head",className:l,...t}),e[5]=t,e[6]=l,e[7]=r):r=e[7],r}function H(n){const e=j.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=h("px-3 py-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==t||e[6]!==l?(r=o.jsx("td",{"data-slot":"table-cell",className:l,...t}),e[5]=t,e[6]=l,e[7]=r):r=e[7],r}function K(n){return n.defaultPrevented||n.isComposing||n.repeat||n.metaKey||n.ctrlKey||n.altKey||n.shiftKey||n.target instanceof Element&&!!n.target.closest('input, textarea, select, button, a, [contenteditable]:not([contenteditable="false"]), [role="button"], [role="combobox"], [role="textbox"], [role="menu"], [role="listbox"], [role="dialog"]')}const N=new Map;let x;function $({rows:n,rowKey:e,onOpen:s,enabled:t=!0}){const[l,r]=d.useState(null),[u]=d.useState(()=>Symbol("row-nav"));function v(){!t||x===u||(x&&N.get(x)?.(),x=u)}d.useEffect(()=>{if(t)return N.set(u,()=>r(null)),x??=u,()=>{N.delete(u),x===u&&(x=N.keys().next().value)}},[t,u]);const w=d.useRef(n),m=d.useRef(e),g=d.useRef(s);return d.useEffect(()=>{w.current=n,m.current=e,g.current=s}),d.useEffect(()=>{if(!t)return;function b(c){if(x!==u||K(c))return;if(c.key==="/"){const i=document.querySelector("[data-filter-bar-input]");i&&(c.preventDefault(),i.focus());return}const f=w.current,y=m.current,a=f.findIndex(i=>y(i)===l);if(c.key==="j"){if(f.length===0)return;c.preventDefault();const i=Math.min(a+1,f.length-1);r(y(f[i]))}else if(c.key==="k"){if(f.length===0)return;c.preventDefault();const i=a<0?0:Math.max(a-1,0);r(y(f[i]))}else c.key==="Enter"?a>=0&&(c.preventDefault(),g.current(f[a])):c.key==="o"?a>=0&&(c.preventDefault(),g.current(f[a],{newTab:!0})):c.key==="Escape"&&r(null)}return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[l,t,u]),{highlighted:l,setHighlighted:r,activate:v}}const B='a, button, input, select, textarea, [role="button"], [role="link"], [contenteditable="true"]';function L(n){return n instanceof Element&&n.closest(B)}function V({rows:n,columns:e,rowKey:s,empty:t="Nothing here yet.",onRowClick:l,keyboardNav:r,hoverKey:u,rowClassName:v,className:w}){const{highlighted:m,activate:g}=$({rows:n,rowKey:s,onOpen:r?.onOpen??(()=>{}),enabled:!!r&&r?.enabled!==!1}),b=d.useRef(new Map);d.useEffect(()=>{m!=null&&b.current.get(m)?.scrollIntoView({block:"nearest"})},[m]),d.useEffect(()=>{if(!r?.onHighlightChange)return;const a=n.find(i=>s(i)===m)??null;r.onHighlightChange(a)},[m]);const{hoveredKey:c,setHoveredKey:f}=C(),y=a=>h(a.align==="right"&&"text-right",a.hideOnMobile&&"hidden md:table-cell",a.grow&&"w-full max-w-0 truncate",a.className);return o.jsx("div",{tabIndex:r&&r.enabled!==!1?0:void 0,onFocusCapture:g,onPointerDownCapture:g,className:h("bg-card -mx-3 overflow-x-auto border-y md:mx-0 md:rounded-lg md:border",w),children:o.jsxs(_,{children:[o.jsx(M,{children:o.jsx(T,{className:"hover:bg-transparent",children:e.map(a=>o.jsx(I,{className:y(a),children:a.header},a.key))})}),o.jsxs(S,{children:[n.length===0&&o.jsx(T,{children:o.jsx(H,{colSpan:e.length,className:"p-0 whitespace-normal",children:typeof t=="string"?o.jsx(D,{title:t}):o.jsx("div",{className:"text-muted-foreground min-h-24 text-center",children:t})})}),n.map(a=>{const i=s(a),R=!!r&&m===i,E=u?.(a),k=E!=null&&c===E;return o.jsx(T,{ref:p=>{p?b.current.set(i,p):b.current.delete(i)},"data-state":R?"highlighted":void 0,"data-hovered":k||void 0,className:h(l&&"cursor-pointer",v?.(a),R&&"bg-accent shadow-[inset_2px_0_0_0_var(--primary)]",k&&!R&&"bg-accent/50"),onClick:l?p=>{L(p.target)||l(a)}:void 0,onMouseEnter:E?()=>f(E):void 0,onMouseLeave:E?()=>f(null):void 0,children:e.map(p=>o.jsx(H,{className:h("py-1.5 text-xs",p.align==="right"&&"font-mono tabular-nums",y(p)),children:p.cell(a)},p.key))},i)})]})]})})}export{V as D,K as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as L,g as K,s as P,j as s,C as F,H as O,F as D}from"./inertia-
|
|
1
|
+
import{c as L,g as K,s as P,j as s,C as F,H as O,F as D}from"./inertia-Cuyz2ZHO.js";import{I as E}from"./input-error-hog6gGxg.js";import{R as W}from"./relative-time-D5UbF4oO.js";import{B}from"./app-wordmark-BA_60AVb.js";import{b as k,c as A,C as T,a as C}from"./card-DPjFKfen.js";import{L as S,I}from"./label-DdCBgiUn.js";import{T as M}from"./textarea-BeQtQyl5.js";import{A as $}from"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./format-B9SDkrWj.js";import"./checkbox-DPkLUiwM.js";const q=`# Nothing to add under Kamal: the gem already stamps records with
|
|
2
2
|
# KAMAL_HOST, the same host the post-deploy hook registers here.
|
|
3
3
|
# Anywhere else, name the host yourself:
|
|
4
4
|
Railwatch.configure do |c|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,R as j,j as e,H as _,F as g}from"./inertia-
|
|
1
|
+
import{c as h,R as j,j as e,H as _,F as g}from"./inertia-Cuyz2ZHO.js";import{I as p}from"./input-error-hog6gGxg.js";import{B as y}from"./app-wordmark-BA_60AVb.js";import{L as w,I as f}from"./label-DdCBgiUn.js";import{S as b,A as N}from"./auth-layout-C05gEBIQ.js";import"./index-CBip6V4z.js";import"./copy-DaQMJWoT.js";import"./empty-state-CW4wclK_.js";function k(x){const s=h.c(11),{sid:d,email:a}=x;let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(_,{title:"Reset password"}),s[0]=t):t=s[0];let l;s[1]===Symbol.for("react.memo_cache_sentinel")?(l=j(),s[1]=l):l=s[1];let r;s[2]!==a||s[3]!==d?(r=n=>({...n,sid:d,email:a}),s[2]=a,s[3]=d,s[4]=r):r=s[4];let i;s[5]===Symbol.for("react.memo_cache_sentinel")?(i=["password","password_confirmation"],s[5]=i):i=s[5];let o;s[6]!==a?(o=n=>{const{processing:u,errors:c}=n;return e.jsxs("div",{className:"grid gap-6",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(w,{htmlFor:"email",children:"Email"}),e.jsx(f,{id:"email",type:"email",name:"email",autoComplete:"email",value:a,className:"mt-1 block w-full",readOnly:!0}),e.jsx(p,{messages:c.email,className:"mt-2"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(w,{htmlFor:"password",children:"Password"}),e.jsx(f,{id:"password",type:"password",name:"password",autoComplete:"new-password",className:"mt-1 block w-full",autoFocus:!0,placeholder:"Password"}),e.jsx(p,{messages:c.password})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(w,{htmlFor:"password_confirmation",children:"Confirm password"}),e.jsx(f,{id:"password_confirmation",type:"password",name:"password_confirmation",autoComplete:"new-password",className:"mt-1 block w-full",placeholder:"Confirm password"}),e.jsx(p,{messages:c.password_confirmation,className:"mt-2"})]}),e.jsxs(y,{type:"submit",className:"mt-4 w-full",disabled:u,children:[u&&e.jsx(b,{}),"Reset password"]})]})},s[6]=a,s[7]=o):o=s[7];let m;return s[8]!==r||s[9]!==o?(m=e.jsxs(N,{title:"Reset password",description:"Please enter your new password below",children:[t,e.jsx(g,{method:"put",action:l,transform:r,resetOnSuccess:i,children:o})]}),s[8]=r,s[9]=o,s[10]=m):m=s[10],m}export{k as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,g as b,j as s,H as V,F as k,e as D}from"./inertia-
|
|
1
|
+
import{c as L,g as b,j as s,H as V,F as k,e as D}from"./inertia-Cuyz2ZHO.js";import{I as y}from"./input-error-hog6gGxg.js";import{B as N}from"./app-wordmark-BA_60AVb.js";import{b as A,c as w,C as F,a as C}from"./card-DPjFKfen.js";import{L as u,I as g}from"./label-DdCBgiUn.js";import{A as H}from"./app-layout-Zc0v-hYh.js";import"./index-CBip6V4z.js";import"./live-dot-BZgYTYdt.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";function K(p){const e=L.c(32),t=p.application,E=t.name;let r;e[0]!==t.id?(r=b(t.id),e[0]=t.id,e[1]=r):r=e[1];let a;e[2]!==t.name||e[3]!==r?(a={title:E,href:r},e[2]=t.name,e[3]=r,e[4]=a):a=e[4];let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h={title:"Edit",href:"#"},e[5]=h):h=e[5];let i;e[6]!==a?(i=[a,h],e[6]=a,e[7]=i):i=e[7];const v=`Edit ${t.name}`;let l;e[8]!==v?(l=s.jsx(V,{title:v}),e[8]=v,e[9]=l):l=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(A,{children:s.jsx(w,{children:"Edit application"})}),e[10]=f):f=e[10];let o;e[11]!==t.id?(o=b(t.id),e[11]=t.id,e[12]=o):o=e[12];let n;e[13]!==t.default_branch||e[14]!==t.issue_prefix||e[15]!==t.name||e[16]!==t.repository_url||e[17]!==p.auto_resolve_after_days?(n=S=>{const{errors:j,processing:I}=S;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(u,{htmlFor:"name",children:"Name"}),s.jsx(g,{id:"name",name:"name",defaultValue:t.name,required:!0}),s.jsx(y,{messages:j.name})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(u,{htmlFor:"issue_prefix",children:"Issue prefix"}),s.jsx(g,{id:"issue_prefix",name:"issue_prefix",defaultValue:t.issue_prefix,maxLength:8}),s.jsx(y,{messages:j.issue_prefix})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(u,{htmlFor:"repository_url",children:"Repository URL"}),s.jsx(g,{id:"repository_url",name:"repository_url",defaultValue:t.repository_url??"",placeholder:"https://github.com/org/repo"}),s.jsx(y,{messages:j.repository_url})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(u,{htmlFor:"default_branch",children:"Default branch"}),s.jsx(g,{id:"default_branch",name:"default_branch",defaultValue:t.default_branch}),s.jsx(y,{messages:j.default_branch}),s.jsx("p",{className:"text-muted-foreground text-xs",children:"Stack frames link into this repository at the deploy's git SHA when one was recorded, and at this branch otherwise."})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(u,{htmlFor:"auto_resolve_after_days",children:"Auto-resolve issues"}),s.jsxs("select",{id:"auto_resolve_after_days",name:"auto_resolve_after_days",defaultValue:p.auto_resolve_after_days??"",className:"border-input bg-background h-9 rounded-md border px-3 text-sm",children:[s.jsx("option",{value:"",children:"Never"}),s.jsx("option",{value:"7",children:"After 7 days without a recurrence"}),s.jsx("option",{value:"14",children:"After 14 days without a recurrence"}),s.jsx("option",{value:"30",children:"After 30 days without a recurrence"})]}),s.jsx("p",{className:"text-muted-foreground text-xs",children:"Applies to every application in this account."})]}),s.jsx(N,{disabled:I,children:"Save"})]})},e[13]=t.default_branch,e[14]=t.issue_prefix,e[15]=t.name,e[16]=t.repository_url,e[17]=p.auto_resolve_after_days,e[18]=n):n=e[18];let d;e[19]!==o||e[20]!==n?(d=s.jsxs(F,{children:[f,s.jsx(C,{children:s.jsx(k,{method:"patch",action:o,className:"space-y-4",children:n})})]}),e[19]=o,e[20]=n,e[21]=d):d=e[21];let x;e[22]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(A,{children:s.jsx(w,{children:"Danger zone"})}),e[22]=x):x=e[22];let c;e[23]!==t.id?(c=s.jsxs(F,{className:"border-destructive/40",children:[x,s.jsx(C,{children:s.jsx(N,{variant:"destructive",size:"sm",onClick:()=>confirm("Delete this application, its environments, telemetry, and issues?")&&D.delete(b(t.id)),children:"Delete application"})})]}),e[23]=t.id,e[24]=c):c=e[24];let m;e[25]!==d||e[26]!==c?(m=s.jsxs("div",{className:"mx-auto w-full max-w-md space-y-4 p-6",children:[d,c]}),e[25]=d,e[26]=c,e[27]=m):m=e[27];let _;return e[28]!==m||e[29]!==i||e[30]!==l?(_=s.jsxs(H,{breadcrumbs:i,children:[l,m]}),e[28]=m,e[29]=i,e[30]=l,e[31]=_):_=e[31],_}export{K as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as y,C as N,r as b,j as t}from"./inertia-
|
|
1
|
+
import{c as y,C as N,r as b,j as t}from"./inertia-Cuyz2ZHO.js";function v(g){const e=y.c(13),{className:a}=g,c=b.useId();let r;e[0]!==a?(r=N("text-foreground/35 dark:text-foreground/40 pointer-events-none absolute inset-x-0 top-1/2 h-12 w-full -translate-y-1/2","[mask-composite:intersect]","[mask-image:linear-gradient(to_right,transparent,black_10%,black_90%,transparent),radial-gradient(ellipse_200px_160%_at_50%_50%,transparent_20%,black_100%)]","md:[mask-image:linear-gradient(to_right,transparent,black_10%,black_90%,transparent),radial-gradient(ellipse_300px_160%_at_50%_50%,transparent_35%,black_100%)]",a),e[0]=a,e[1]=r):r=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("rect",{x:"9",y:"9",width:"4",height:"30",rx:"1",fill:"currentColor"}),e[2]=i):i=e[2];let l;e[3]!==c?(l=t.jsx("defs",{children:t.jsx("pattern",{id:c,width:"22",height:"48",patternUnits:"userSpaceOnUse",children:i})}),e[3]=c,e[4]=l):l=e[4];const n=`url(#${c})`;let s;e[5]!==n?(s=t.jsx("rect",{width:"100%",height:"100%",fill:n}),e[5]=n,e[6]=s):s=e[6];let o,d;e[7]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("rect",{y:"16",width:"100%",height:"2.5",fill:"currentColor"}),d=t.jsx("rect",{y:"29.5",width:"100%",height:"2.5",fill:"currentColor"}),e[7]=o,e[8]=d):(o=e[7],d=e[8]);let x;return e[9]!==r||e[10]!==l||e[11]!==s?(x=t.jsxs("svg",{"aria-hidden":!0,className:r,preserveAspectRatio:"none",children:[l,s,o,d]}),e[9]=r,e[10]=l,e[11]=s,e[12]=x):x=e[12],x}const k={clear:"text-live",caution:"text-warning",stop:"text-danger"},j={stop:8,caution:17,clear:26},w=["stop","caution","clear"];function C(g){const e=y.c(8),{aspect:a,className:c}=g;let r;e[0]!==c?(r=N("pointer-events-none absolute top-1/2 h-16 w-5 -translate-y-[calc(50%+8px)]","left-[calc(50%+100px)] md:left-[calc(50%+150px)]",c),e[0]=c,e[1]=r):r=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsxs("g",{className:"text-foreground/35 dark:text-foreground/40",children:[t.jsx("rect",{x:"9",y:"33",width:"2",height:"26",rx:"1",fill:"currentColor"}),t.jsx("rect",{x:"5",y:"58",width:"10",height:"2",rx:"1",fill:"currentColor"}),t.jsx("rect",{x:"4.75",y:"1.75",width:"10.5",height:"31.5",rx:"5.25",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})]}),e[2]=i):i=e[2];let l;e[3]!==a?(l=w.map(s=>s===a?t.jsxs("g",{className:k[s],"data-lamp":s,children:[t.jsx("circle",{cx:"10",cy:j[s],r:"6",fill:"currentColor",opacity:"0.2",className:"blur-[2px]"}),t.jsx("circle",{cx:"10",cy:j[s],r:"3",fill:"currentColor"})]},s):t.jsx("circle",{cx:"10",cy:j[s],r:"3",className:"text-foreground/15",fill:"currentColor"},s)),e[3]=a,e[4]=l):l=e[4];let n;return e[5]!==r||e[6]!==l?(n=t.jsxs("svg",{"aria-hidden":!0,viewBox:"0 0 20 64",className:r,children:[i,l]}),e[5]=r,e[6]=l,e[7]=n):n=e[7],n}function E(g){const e=y.c(22),{icon:a,title:c,description:r,action:i,signal:l,className:n}=g,s=l===void 0?"clear":l;let o;e[0]!==n?(o=N("relative flex min-h-48 items-center justify-center overflow-hidden px-4 py-8 text-center",n),e[0]=n,e[1]=o):o=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(v,{}),e[2]=d):d=e[2];let x;e[3]!==s?(x=t.jsx(C,{aspect:s}),e[3]=s,e[4]=x):x=e[4];let f;e[5]!==a?(f=a&&t.jsx("span",{className:"bg-muted text-muted-foreground mb-1 flex size-9 items-center justify-center rounded-md",children:t.jsx(a,{className:"size-4"})}),e[5]=a,e[6]=f):f=e[6];let m;e[7]!==c?(m=t.jsx("span",{className:"text-sm font-medium",children:c}),e[7]=c,e[8]=m):m=e[8];let h;e[9]!==r?(h=r&&t.jsx("span",{className:"text-muted-foreground text-xs leading-relaxed",children:r}),e[9]=r,e[10]=h):h=e[10];let u;e[11]!==i?(u=i&&t.jsx("div",{className:"mt-2",children:i}),e[11]=i,e[12]=u):u=e[12];let p;e[13]!==f||e[14]!==m||e[15]!==h||e[16]!==u?(p=t.jsxs("div",{className:"relative flex max-w-xs flex-col items-center gap-1.5",children:[f,m,h,u]}),e[13]=f,e[14]=m,e[15]=h,e[16]=u,e[17]=p):p=e[17];let _;return e[18]!==o||e[19]!==x||e[20]!==p?(_=t.jsxs("div",{className:o,"aria-live":"polite",children:[d,x,p]}),e[18]=o,e[19]=x,e[20]=p,e[21]=_):_=e[21],_}export{E,C as S,v as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as P,j as n,c as O,C as le,u as U,e as X,g as ge,o as ve,H as xe}from"./inertia-CqnzqPVD.js";import{b as Pe}from"./badge-Dv7I-ebP.js";import{t as we,v as be,w as Ce,D as _e,C as je,x as Se,y as De,z as Re,E as ye,H as Oe,J as Ne,K as Ie,A as Te}from"./app-layout-2xAKndVD.js";import{u as Ee}from"./use-live-DWwLg1Nj.js";import{d as ie,R as $e,u as ke,A as Ae,P as Me,h as Fe,g as Le,f as ze,F as He,e as We,C as Ge,t as Ue,L as Ve}from"./live-dot-UdzOfzJb.js";import{a as q}from"./format-B9SDkrWj.js";import{u as ce,a as Be,B as Q}from"./app-wordmark-Bt6XqURo.js";import{a as ne,S as Ke}from"./segmented-C4oWE73o.js";import{L as re,I as ae}from"./label-1nSzpSB6.js";import{c as Ye,u as Je,a as Z,P as de}from"./index-C-EwH4lO.js";import{P as Ze}from"./index-BDVShWMs.js";var qe=Object.defineProperty,T=(t,e)=>qe(t,"name",{value:e,configurable:!0}),ee="Popover",[ue,Ft]=Ye(ee,[ie]),te=ie(),[Qe,W]=ue(ee),Xe=T(t=>{const{__scopePopover:e,children:o,open:s,defaultOpen:l,onOpenChange:c,modal:i=!1}=t,r=te(e),a=P.useRef(null),[u,d]=P.useState(!1),[f,p]=Je({prop:s,defaultProp:l??!1,onChange:c,caller:ee});return n.jsx($e,{...r,children:n.jsx(Qe,{scope:e,contentId:ke(),triggerRef:a,open:f,onOpenChange:p,onOpenToggle:P.useCallback(()=>p(m=>!m),[p]),hasCustomAnchor:u,onCustomAnchorAdd:P.useCallback(()=>d(!0),[]),onCustomAnchorRemove:P.useCallback(()=>d(!1),[]),modal:i,children:o})})},"Popover"),et="PopoverTrigger",tt=P.forwardRef(T(function(e,o){const{__scopePopover:s,...l}=e,c=W(et,s),i=te(s),r=ce(o,c.triggerRef),a=n.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":oe(c.open),...l,ref:r,onClick:Z(e.onClick,c.onOpenToggle)});return c.hasCustomAnchor?a:n.jsx(Ae,{asChild:!0,...i,children:a})},"PopoverTrigger")),pe="PopoverPortal",[ot,st]=ue(pe,{forceMount:void 0}),nt=T(t=>{const{__scopePopover:e,forceMount:o,children:s,container:l}=t,c=W(pe,e);return n.jsx(ot,{scope:e,forceMount:o,children:n.jsx(de,{present:o||c.open,children:n.jsx(Me,{asChild:!0,container:l,children:s})})})},"PopoverPortal"),G="PopoverContent",rt=P.forwardRef(T(function(e,o){const s=st(G,e.__scopePopover),{forceMount:l=s.forceMount,...c}=e,i=W(G,e.__scopePopover);return n.jsx(de,{present:l||i.open,children:i.modal?n.jsx(lt,{...c,ref:o}):n.jsx(it,{...c,ref:o})})},"PopoverContent")),at=Be("PopoverContent.RemoveScroll"),lt=P.forwardRef(T(function(e,o){const s=W(G,e.__scopePopover),l=P.useRef(null),c=ce(o,l),i=P.useRef(!1);return P.useEffect(()=>{const r=l.current;if(r)return Fe(r)},[]),n.jsx(Le,{as:at,allowPinchZoom:!0,children:n.jsx(fe,{...e,ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,r=>{r.preventDefault(),i.current||s.triggerRef.current?.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,r=>{const a=r.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,d=a.button===2||u;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),it=P.forwardRef(T(function(e,o){const s=W(G,e.__scopePopover),l=P.useRef(!1),c=P.useRef(!1);return n.jsx(fe,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(l.current||s.triggerRef.current?.focus(),i.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(l.current=!0,i.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const r=i.target;s.triggerRef.current?.contains(r)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&c.current&&i.preventDefault()}})},"PopoverContentNonModal")),fe=P.forwardRef(T(function(e,o){const{__scopePopover:s,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:i,disableOutsidePointerEvents:r,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...p}=e,m=W(G,s),h=te(s);return ze(),n.jsx(He,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:i,children:n.jsx(We,{asChild:!0,disableOutsidePointerEvents:r,onInteractOutside:f,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),deferPointerDownOutside:!0,children:n.jsx(Ge,{"data-state":oe(m.open),role:"dialog",id:m.contentId,...h,...p,ref:o,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function oe(t){return t?"open":"closed"}T(oe,"getState");var ct=Xe,dt=tt,ut=nt,pt=rt;function ft(t){const e=O.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let s;return e[2]!==o?(s=n.jsx(ct,{"data-slot":"popover",...o}),e[2]=o,e[3]=s):s=e[3],s}function mt(t){const e=O.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let s;return e[2]!==o?(s=n.jsx(dt,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=s):s=e[3],s}function ht(t){const e=O.c(12);let o,s,l,c;e[0]!==t?({className:o,align:l,sideOffset:c,...s}=t,e[0]=t,e[1]=o,e[2]=s,e[3]=l,e[4]=c):(o=e[1],s=e[2],l=e[3],c=e[4]);const i=l===void 0?"center":l,r=c===void 0?4:c;let a;e[5]!==o?(a=le("bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-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-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=a):a=e[6];let u;return e[7]!==i||e[8]!==s||e[9]!==r||e[10]!==a?(u=n.jsx(ut,{children:n.jsx(pt,{"data-slot":"popover-content",align:i,sideOffset:r,className:a,...s})}),e[7]=i,e[8]=s,e[9]=r,e[10]=a,e[11]=u):u=e[11],u}function gt(t){const e=O.c(46),{environmentId:o}=t;Ue();const{environment:s,telemetry_freshness:l}=U().props,{connected:c,lastEventAt:i,lastRefreshedAt:r,paused:a,setPaused:u}=Ee(o);let d;e[0]!==s?.last_seen_at||e[1]!==l?.received_at||e[2]!==i?(d=i!=null?new Date(i).toISOString():l?.received_at??s?.last_seen_at??null,e[0]=s?.last_seen_at,e[1]=l?.received_at,e[2]=i,e[3]=d):d=e[3];const f=d;let p,m,h,g,v;if(e[4]!==c||e[5]!==f||e[6]!==r||e[7]!==a||e[8]!==u){const E=r!=null?new Date(r).toISOString():null;m=we;const $=a?"Resume live updates":"Pause live updates";let b;e[14]!==a||e[15]!==u?(b=()=>u(!a),e[14]=a,e[15]=u,e[16]=b):b=e[16];let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=le(Pe({variant:"outline"}),"hover:bg-accent h-7 cursor-pointer gap-1.5 rounded-md font-mono text-[11px] tracking-wide uppercase"),e[17]=j):j=e[17];const y=c?f:null;let C;e[18]!==y?(C=n.jsx(Ve,{lastSeenAt:y,thresholdMs:1e4}),e[18]=y,e[19]=C):C=e[19];const I=a?"Paused":c?"Live":"Disconnected";e[20]!==a||e[21]!==I||e[22]!==$||e[23]!==b||e[24]!==C?(v=n.jsx(be,{asChild:!0,children:n.jsxs("button",{type:"button","aria-pressed":a,"aria-label":$,onClick:b,className:j,children:[C,I]})}),e[20]=a,e[21]=I,e[22]=$,e[23]=b,e[24]=C,e[25]=v):v=e[25],p=Ce;let S;e[26]!==f?(S=f?`Telemetry received ${q(f)}`:"No telemetry received yet",e[26]=f,e[27]=S):S=e[27],e[28]!==S?(g=n.jsx("p",{children:S}),e[28]=S,e[29]=g):g=e[29],h=E?`Page refreshed ${q(E)}`:"No live refresh yet",e[4]=c,e[5]=f,e[6]=r,e[7]=a,e[8]=u,e[9]=p,e[10]=m,e[11]=h,e[12]=g,e[13]=v}else p=e[9],m=e[10],h=e[11],g=e[12],v=e[13];let _;e[30]!==h?(_=n.jsx("p",{children:h}),e[30]=h,e[31]=_):_=e[31];let D;e[32]!==l?(D=l?.processing_lag_seconds!=null&&n.jsxs("p",{children:["Ingest processing pending:"," ",Math.round(l.processing_lag_seconds),"s"]}),e[32]=l,e[33]=D):D=e[33];let w;e[34]!==l?(w=l?.aggregated_at&&n.jsxs("p",{children:["Charts updated ",q(l.aggregated_at)]}),e[34]=l,e[35]=w):w=e[35];let R;e[36]!==p||e[37]!==g||e[38]!==_||e[39]!==D||e[40]!==w?(R=n.jsxs(p,{children:[g,_,D,w]}),e[36]=p,e[37]=g,e[38]=_,e[39]=D,e[40]=w,e[41]=R):R=e[41];let N;return e[42]!==m||e[43]!==v||e[44]!==R?(N=n.jsxs(m,{children:[v,R]}),e[42]=m,e[43]=v,e[44]=R,e[45]=N):N=e[45],N}const se={"1m":"1 minute","5m":"5 minutes","15m":"15 minutes","1h":"1 hour","6h":"6 hours","1d":"1 day"};function vt(){const t=O.c(6),{step:e,steps:o}=U().props,s=e===void 0?"1h":e;let l;t[0]!==o?(l=o===void 0?[]:o,t[0]=o,t[1]=l):l=t[1];const c=l,i=xt,r=se[s]??s;let a;return t[2]!==s||t[3]!==c||t[4]!==r?(a={step:s,steps:c,set:i,label:r},t[2]=s,t[3]=c,t[4]=r,t[5]=a):a=t[5],a}function xt(t){const e=new URL(globalThis.location.href);e.searchParams.set("step",t),X.visit(e.toString(),{preserveScroll:!0,preserveState:!0})}function Pt(){const t=O.c(18),{step:e,steps:o,set:s}=vt();if(o.length<2)return null;const l=`Chart buckets: ${se[e]}`;let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("span",{className:"text-muted-foreground normal-case",children:"per"}),t[0]=c):c=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(je,{className:"text-muted-foreground size-3"}),t[1]=i):i=t[1];let r;t[2]!==e||t[3]!==l?(r=n.jsx(Se,{asChild:!0,children:n.jsxs(Q,{variant:"outline",size:"sm",className:"h-8 gap-1 px-2 font-mono text-xs uppercase","aria-label":l,children:[c,e,i]})}),t[2]=e,t[3]=l,t[4]=r):r=t[4];let a,u;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(De,{className:"label-caps",children:"Chart buckets"}),u=n.jsx(Re,{}),t[5]=a,t[6]=u):(a=t[5],u=t[6]);let d;t[7]!==s?(d=h=>s(h),t[7]=s,t[8]=d):d=t[8];let f;t[9]!==o?(f=o.map(wt),t[9]=o,t[10]=f):f=t[10];let p;t[11]!==e||t[12]!==d||t[13]!==f?(p=n.jsxs(ye,{align:"end",className:"w-44",children:[a,u,n.jsx(Oe,{value:e,onValueChange:d,children:f})]}),t[11]=e,t[12]=d,t[13]=f,t[14]=p):p=t[14];let m;return t[15]!==r||t[16]!==p?(m=n.jsxs(Ne,{children:[r,p]}),t[15]=r,t[16]=p,t[17]=m):m=t[17],m}function wt(t){return n.jsxs(_e,{value:t,className:"text-xs",children:[n.jsx("span",{className:"font-mono uppercase",children:t}),n.jsx("span",{className:"text-muted-foreground ml-auto",children:se[t]})]},t)}const me=[{value:"1h",label:"1 hour"},{value:"6h",label:"6 hours"},{value:"24h",label:"24 hours"},{value:"7d",label:"7 days"},{value:"30d",label:"30 days"}];function bt(t,e){const o={month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};return`${new Date(t).toLocaleString(void 0,o)} – ${new Date(e).toLocaleString(void 0,o)}`}function Ct(){const t=O.c(8),{window:e,range:o}=U().props,s=e===void 0?"24h":e,l=jt,c=_t;let i;t[0]!==s||t[1]!==o?(i=s==="custom"&&o?bt(o.from,o.to):me.find(f=>f.value===s)?.label??s,t[0]=s,t[1]=o,t[2]=i):i=t[2];const r=i,a=o?.from,u=o?.to;let d;return t[3]!==s||t[4]!==r||t[5]!==a||t[6]!==u?(d={window:s,from:a,to:u,set:l,setRange:c,label:r},t[3]=s,t[4]=r,t[5]=a,t[6]=u,t[7]=d):d=t[7],d}function _t(t,e){const o=new URL(globalThis.location.href);o.searchParams.set("from",t),o.searchParams.set("to",e),o.searchParams.delete("window"),o.searchParams.delete("step"),X.visit(o.toString(),{preserveScroll:!0,preserveState:!0})}function jt(t){const e=new URL(globalThis.location.href);e.searchParams.set("window",t),e.searchParams.delete("from"),e.searchParams.delete("to"),e.searchParams.delete("step"),X.visit(e.toString(),{preserveScroll:!0,preserveState:!0})}function Y(t){const e=new Date(t),o=s=>String(s).padStart(2,"0");return`${e.getFullYear()}-${o(e.getMonth()+1)}-${o(e.getDate())}T${o(e.getHours())}:${o(e.getMinutes())}`}function J(t){const e=new Date(t);return e.setHours(0,0,0,0),e}const St=[{label:"Today",range:()=>[J(new Date),new Date]},{label:"Yesterday",range:()=>{const t=J(new Date);return[J(new Date(t.getTime()-1440*60*1e3)),t]}},{label:"This week",range:()=>{const t=J(new Date);return t.setDate(t.getDate()-t.getDay()),[t,new Date]}}];function Dt(){const t=O.c(48),{window:e,from:o,to:s,set:l,setRange:c,label:i}=Ct(),[r,a]=P.useState(!1);let u;t[0]!==o?(u=()=>Y(o??new Date(Date.now()-864e5).toISOString()),t[0]=o,t[1]=u):u=t[1];const[d,f]=P.useState(u);let p;t[2]!==s?(p=()=>Y(s??new Date().toISOString()),t[2]=s,t[3]=p):p=t[3];const[m,h]=P.useState(p);let g;t[4]!==c?(g=(x,k)=>{f(Y(x.toISOString())),h(Y(k.toISOString())),c(x.toISOString(),k.toISOString()),a(!1)},t[4]=c,t[5]=g):g=t[5];const v=g;let _;t[6]!==v||t[7]!==d||t[8]!==m?(_=()=>{const x=new Date(d),k=new Date(m);!Number.isNaN(x.getTime())&&!Number.isNaN(k.getTime())&&v(x,k)},t[6]=v,t[7]=d,t[8]=m,t[9]=_):_=t[9];const D=_;let w;t[10]!==l||t[11]!==e?(w=me.map(x=>n.jsx(ne,{active:e===x.value,onClick:()=>l(x.value),"aria-label":x.label,children:x.value},x.value)),t[10]=l,t[11]=e,t[12]=w):w=t[12];const R=e==="custom";let N;t[13]===Symbol.for("react.memo_cache_sentinel")?(N=()=>a(!0),t[13]=N):N=t[13];let E;t[14]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx(Ie,{className:"size-3"}),t[14]=E):E=t[14];const $=e==="custom"?i:"Custom";let b;t[15]!==$?(b=n.jsx("span",{className:"hidden sm:inline",children:$}),t[15]=$,t[16]=b):b=t[16];let j;t[17]!==R||t[18]!==b?(j=n.jsx(mt,{asChild:!0,children:n.jsxs(ne,{active:R,onClick:N,"aria-label":"Custom range",className:"px-2",children:[E,b]})}),t[17]=R,t[18]=b,t[19]=j):j=t[19];let y;t[20]!==v?(y=St.map(x=>n.jsx(Q,{type:"button",variant:"outline",size:"sm",onClick:()=>{const[k,he]=x.range();v(k,he)},children:x.label},x.label)),t[20]=v,t[21]=y):y=t[21];let C;t[22]!==y?(C=n.jsx("div",{className:"flex flex-wrap gap-1",children:y}),t[22]=y,t[23]=C):C=t[23];let I;t[24]===Symbol.for("react.memo_cache_sentinel")?(I=n.jsx(re,{htmlFor:"window-picker-from",className:"text-xs",children:"From"}),t[24]=I):I=t[24];let S;t[25]===Symbol.for("react.memo_cache_sentinel")?(S=x=>f(x.target.value),t[25]=S):S=t[25];let A;t[26]!==d?(A=n.jsx(ae,{id:"window-picker-from",type:"datetime-local",value:d,onChange:S}),t[26]=d,t[27]=A):A=t[27];let V;t[28]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx(re,{htmlFor:"window-picker-to",className:"text-xs",children:"To"}),t[28]=V):V=t[28];let B;t[29]===Symbol.for("react.memo_cache_sentinel")?(B=x=>h(x.target.value),t[29]=B):B=t[29];let M;t[30]!==m?(M=n.jsx(ae,{id:"window-picker-to",type:"datetime-local",value:m,onChange:B}),t[30]=m,t[31]=M):M=t[31];let F;t[32]!==A||t[33]!==M?(F=n.jsxs("div",{className:"flex flex-col gap-2",children:[I,A,V,M]}),t[32]=A,t[33]=M,t[34]=F):F=t[34];let L;t[35]!==D?(L=n.jsx(Q,{type:"button",size:"sm",onClick:D,children:"Apply"}),t[35]=D,t[36]=L):L=t[36];let z;t[37]!==C||t[38]!==F||t[39]!==L?(z=n.jsx(ht,{className:"w-72",align:"end",children:n.jsxs("div",{className:"flex flex-col gap-3",children:[C,F,L]})}),t[37]=C,t[38]=F,t[39]=L,t[40]=z):z=t[40];let H;t[41]!==r||t[42]!==j||t[43]!==z?(H=n.jsxs(ft,{open:r,onOpenChange:a,children:[j,z]}),t[41]=r,t[42]=j,t[43]=z,t[44]=H):H=t[44];let K;return t[45]!==H||t[46]!==w?(K=n.jsxs(Ke,{children:[w,H]}),t[45]=H,t[46]=w,t[47]=K):K=t[47],K}function Lt(t){const e=O.c(21),{title:o,description:s,actions:l,withWindow:c}=t,i=c===void 0?!0:c,{environment:r}=U().props;let a;e[0]!==o?(a=n.jsx("h1",{className:"truncate text-xl font-semibold tracking-tight md:text-2xl",children:o}),e[0]=o,e[1]=a):a=e[1];let u;e[2]!==s?(u=s&&n.jsx("p",{className:"text-muted-foreground mt-0.5 text-sm",children:s}),e[2]=s,e[3]=u):u=e[3];let d;e[4]!==a||e[5]!==u?(d=n.jsxs("div",{className:"min-w-0",children:[a,u]}),e[4]=a,e[5]=u,e[6]=d):d=e[6];let f;e[7]!==r?(f=r&&n.jsx(gt,{environmentId:r.id}),e[7]=r,e[8]=f):f=e[8];let p;e[9]!==i?(p=i&&n.jsx(Pt,{}),e[9]=i,e[10]=p):p=e[10];let m;e[11]!==i?(m=i&&n.jsx(Dt,{}),e[11]=i,e[12]=m):m=e[12];let h;e[13]!==l||e[14]!==f||e[15]!==p||e[16]!==m?(h=n.jsxs("div",{className:"flex flex-wrap items-center gap-2 md:shrink-0 md:justify-end",children:[f,l,p,m]}),e[13]=l,e[14]=f,e[15]=p,e[16]=m,e[17]=h):h=e[17];let g;return e[18]!==d||e[19]!==h?(g=n.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-start md:justify-between md:gap-4",children:[d,h]}),e[18]=d,e[19]=h,e[20]=g):g=e[20],g}function zt(t){const e=O.c(18),{title:o,children:s,crumbs:l}=t;let c;e[0]!==l?(c=l===void 0?[]:l,e[0]=l,e[1]=c):c=e[1];const i=c,{environment:r}=U().props;let a;e[2]!==r?(a=r?[{title:r.application_name,href:ge(r.application_id)},{title:r.name,href:ve(r.application_id,r.id)}]:[],e[2]=r,e[3]=a):a=e[3];const u=a;let d;e[4]!==i||e[5]!==o?(d=i.length?i:[{title:o,href:"#"}],e[4]=i,e[5]=o,e[6]=d):d=e[6];let f;e[7]!==u||e[8]!==d?(f=[...u,...d],e[7]=u,e[8]=d,e[9]=f):f=e[9];const p=f,m=r?`${o} · ${r.application_name} ${r.name}`:o;let h;e[10]!==m?(h=n.jsx(xe,{title:m}),e[10]=m,e[11]=h):h=e[11];let g;e[12]!==s?(g=n.jsx("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:p-6",children:s}),e[12]=s,e[13]=g):g=e[13];let v;return e[14]!==p||e[15]!==h||e[16]!==g?(v=n.jsxs(Te,{breadcrumbs:p,children:[h,g]}),e[14]=p,e[15]=h,e[16]=g,e[17]=v):v=e[17],v}export{zt as E,Lt as P,ft as a,mt as b,ht as c,Ct as u};
|
|
1
|
+
import{r as P,j as n,c as O,C as le,u as U,e as X,g as ge,o as ve,H as xe}from"./inertia-Cuyz2ZHO.js";import{b as Pe}from"./badge-DRae8XwK.js";import{t as we,v as be,w as Ce,D as _e,C as je,x as Se,y as De,z as Re,E as ye,H as Oe,J as Ne,K as Ie,A as Te}from"./app-layout-Zc0v-hYh.js";import{u as Ee}from"./use-live-DMTuhKfB.js";import{d as ie,R as $e,u as ke,A as Ae,P as Me,h as Fe,g as Le,f as ze,F as He,e as We,C as Ge,t as Ue,L as Ve}from"./live-dot-BZgYTYdt.js";import{a as q}from"./format-B9SDkrWj.js";import{u as ce,a as Be,B as Q}from"./app-wordmark-BA_60AVb.js";import{a as ne,S as Ke}from"./segmented-BeIe4uqk.js";import{L as re,I as ae}from"./label-DdCBgiUn.js";import{c as Ye,u as Je,a as Z,P as de}from"./index-BfbSo01U.js";import{P as Ze}from"./index-CBip6V4z.js";var qe=Object.defineProperty,T=(t,e)=>qe(t,"name",{value:e,configurable:!0}),ee="Popover",[ue,Ft]=Ye(ee,[ie]),te=ie(),[Qe,W]=ue(ee),Xe=T(t=>{const{__scopePopover:e,children:o,open:s,defaultOpen:l,onOpenChange:c,modal:i=!1}=t,r=te(e),a=P.useRef(null),[u,d]=P.useState(!1),[f,p]=Je({prop:s,defaultProp:l??!1,onChange:c,caller:ee});return n.jsx($e,{...r,children:n.jsx(Qe,{scope:e,contentId:ke(),triggerRef:a,open:f,onOpenChange:p,onOpenToggle:P.useCallback(()=>p(m=>!m),[p]),hasCustomAnchor:u,onCustomAnchorAdd:P.useCallback(()=>d(!0),[]),onCustomAnchorRemove:P.useCallback(()=>d(!1),[]),modal:i,children:o})})},"Popover"),et="PopoverTrigger",tt=P.forwardRef(T(function(e,o){const{__scopePopover:s,...l}=e,c=W(et,s),i=te(s),r=ce(o,c.triggerRef),a=n.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":oe(c.open),...l,ref:r,onClick:Z(e.onClick,c.onOpenToggle)});return c.hasCustomAnchor?a:n.jsx(Ae,{asChild:!0,...i,children:a})},"PopoverTrigger")),pe="PopoverPortal",[ot,st]=ue(pe,{forceMount:void 0}),nt=T(t=>{const{__scopePopover:e,forceMount:o,children:s,container:l}=t,c=W(pe,e);return n.jsx(ot,{scope:e,forceMount:o,children:n.jsx(de,{present:o||c.open,children:n.jsx(Me,{asChild:!0,container:l,children:s})})})},"PopoverPortal"),G="PopoverContent",rt=P.forwardRef(T(function(e,o){const s=st(G,e.__scopePopover),{forceMount:l=s.forceMount,...c}=e,i=W(G,e.__scopePopover);return n.jsx(de,{present:l||i.open,children:i.modal?n.jsx(lt,{...c,ref:o}):n.jsx(it,{...c,ref:o})})},"PopoverContent")),at=Be("PopoverContent.RemoveScroll"),lt=P.forwardRef(T(function(e,o){const s=W(G,e.__scopePopover),l=P.useRef(null),c=ce(o,l),i=P.useRef(!1);return P.useEffect(()=>{const r=l.current;if(r)return Fe(r)},[]),n.jsx(Le,{as:at,allowPinchZoom:!0,children:n.jsx(fe,{...e,ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,r=>{r.preventDefault(),i.current||s.triggerRef.current?.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,r=>{const a=r.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,d=a.button===2||u;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),it=P.forwardRef(T(function(e,o){const s=W(G,e.__scopePopover),l=P.useRef(!1),c=P.useRef(!1);return n.jsx(fe,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(l.current||s.triggerRef.current?.focus(),i.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(l.current=!0,i.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const r=i.target;s.triggerRef.current?.contains(r)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&c.current&&i.preventDefault()}})},"PopoverContentNonModal")),fe=P.forwardRef(T(function(e,o){const{__scopePopover:s,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:i,disableOutsidePointerEvents:r,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...p}=e,m=W(G,s),h=te(s);return ze(),n.jsx(He,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:i,children:n.jsx(We,{asChild:!0,disableOutsidePointerEvents:r,onInteractOutside:f,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),deferPointerDownOutside:!0,children:n.jsx(Ge,{"data-state":oe(m.open),role:"dialog",id:m.contentId,...h,...p,ref:o,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function oe(t){return t?"open":"closed"}T(oe,"getState");var ct=Xe,dt=tt,ut=nt,pt=rt;function ft(t){const e=O.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let s;return e[2]!==o?(s=n.jsx(ct,{"data-slot":"popover",...o}),e[2]=o,e[3]=s):s=e[3],s}function mt(t){const e=O.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let s;return e[2]!==o?(s=n.jsx(dt,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=s):s=e[3],s}function ht(t){const e=O.c(12);let o,s,l,c;e[0]!==t?({className:o,align:l,sideOffset:c,...s}=t,e[0]=t,e[1]=o,e[2]=s,e[3]=l,e[4]=c):(o=e[1],s=e[2],l=e[3],c=e[4]);const i=l===void 0?"center":l,r=c===void 0?4:c;let a;e[5]!==o?(a=le("bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-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-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=a):a=e[6];let u;return e[7]!==i||e[8]!==s||e[9]!==r||e[10]!==a?(u=n.jsx(ut,{children:n.jsx(pt,{"data-slot":"popover-content",align:i,sideOffset:r,className:a,...s})}),e[7]=i,e[8]=s,e[9]=r,e[10]=a,e[11]=u):u=e[11],u}function gt(t){const e=O.c(46),{environmentId:o}=t;Ue();const{environment:s,telemetry_freshness:l}=U().props,{connected:c,lastEventAt:i,lastRefreshedAt:r,paused:a,setPaused:u}=Ee(o);let d;e[0]!==s?.last_seen_at||e[1]!==l?.received_at||e[2]!==i?(d=i!=null?new Date(i).toISOString():l?.received_at??s?.last_seen_at??null,e[0]=s?.last_seen_at,e[1]=l?.received_at,e[2]=i,e[3]=d):d=e[3];const f=d;let p,m,h,g,v;if(e[4]!==c||e[5]!==f||e[6]!==r||e[7]!==a||e[8]!==u){const E=r!=null?new Date(r).toISOString():null;m=we;const $=a?"Resume live updates":"Pause live updates";let b;e[14]!==a||e[15]!==u?(b=()=>u(!a),e[14]=a,e[15]=u,e[16]=b):b=e[16];let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=le(Pe({variant:"outline"}),"hover:bg-accent h-7 cursor-pointer gap-1.5 rounded-md font-mono text-[11px] tracking-wide uppercase"),e[17]=j):j=e[17];const y=c?f:null;let C;e[18]!==y?(C=n.jsx(Ve,{lastSeenAt:y,thresholdMs:1e4}),e[18]=y,e[19]=C):C=e[19];const I=a?"Paused":c?"Live":"Disconnected";e[20]!==a||e[21]!==I||e[22]!==$||e[23]!==b||e[24]!==C?(v=n.jsx(be,{asChild:!0,children:n.jsxs("button",{type:"button","aria-pressed":a,"aria-label":$,onClick:b,className:j,children:[C,I]})}),e[20]=a,e[21]=I,e[22]=$,e[23]=b,e[24]=C,e[25]=v):v=e[25],p=Ce;let S;e[26]!==f?(S=f?`Telemetry received ${q(f)}`:"No telemetry received yet",e[26]=f,e[27]=S):S=e[27],e[28]!==S?(g=n.jsx("p",{children:S}),e[28]=S,e[29]=g):g=e[29],h=E?`Page refreshed ${q(E)}`:"No live refresh yet",e[4]=c,e[5]=f,e[6]=r,e[7]=a,e[8]=u,e[9]=p,e[10]=m,e[11]=h,e[12]=g,e[13]=v}else p=e[9],m=e[10],h=e[11],g=e[12],v=e[13];let _;e[30]!==h?(_=n.jsx("p",{children:h}),e[30]=h,e[31]=_):_=e[31];let D;e[32]!==l?(D=l?.processing_lag_seconds!=null&&n.jsxs("p",{children:["Ingest processing pending:"," ",Math.round(l.processing_lag_seconds),"s"]}),e[32]=l,e[33]=D):D=e[33];let w;e[34]!==l?(w=l?.aggregated_at&&n.jsxs("p",{children:["Charts updated ",q(l.aggregated_at)]}),e[34]=l,e[35]=w):w=e[35];let R;e[36]!==p||e[37]!==g||e[38]!==_||e[39]!==D||e[40]!==w?(R=n.jsxs(p,{children:[g,_,D,w]}),e[36]=p,e[37]=g,e[38]=_,e[39]=D,e[40]=w,e[41]=R):R=e[41];let N;return e[42]!==m||e[43]!==v||e[44]!==R?(N=n.jsxs(m,{children:[v,R]}),e[42]=m,e[43]=v,e[44]=R,e[45]=N):N=e[45],N}const se={"1m":"1 minute","5m":"5 minutes","15m":"15 minutes","1h":"1 hour","6h":"6 hours","1d":"1 day"};function vt(){const t=O.c(6),{step:e,steps:o}=U().props,s=e===void 0?"1h":e;let l;t[0]!==o?(l=o===void 0?[]:o,t[0]=o,t[1]=l):l=t[1];const c=l,i=xt,r=se[s]??s;let a;return t[2]!==s||t[3]!==c||t[4]!==r?(a={step:s,steps:c,set:i,label:r},t[2]=s,t[3]=c,t[4]=r,t[5]=a):a=t[5],a}function xt(t){const e=new URL(globalThis.location.href);e.searchParams.set("step",t),X.visit(e.toString(),{preserveScroll:!0,preserveState:!0})}function Pt(){const t=O.c(18),{step:e,steps:o,set:s}=vt();if(o.length<2)return null;const l=`Chart buckets: ${se[e]}`;let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("span",{className:"text-muted-foreground normal-case",children:"per"}),t[0]=c):c=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(je,{className:"text-muted-foreground size-3"}),t[1]=i):i=t[1];let r;t[2]!==e||t[3]!==l?(r=n.jsx(Se,{asChild:!0,children:n.jsxs(Q,{variant:"outline",size:"sm",className:"h-8 gap-1 px-2 font-mono text-xs uppercase","aria-label":l,children:[c,e,i]})}),t[2]=e,t[3]=l,t[4]=r):r=t[4];let a,u;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(De,{className:"label-caps",children:"Chart buckets"}),u=n.jsx(Re,{}),t[5]=a,t[6]=u):(a=t[5],u=t[6]);let d;t[7]!==s?(d=h=>s(h),t[7]=s,t[8]=d):d=t[8];let f;t[9]!==o?(f=o.map(wt),t[9]=o,t[10]=f):f=t[10];let p;t[11]!==e||t[12]!==d||t[13]!==f?(p=n.jsxs(ye,{align:"end",className:"w-44",children:[a,u,n.jsx(Oe,{value:e,onValueChange:d,children:f})]}),t[11]=e,t[12]=d,t[13]=f,t[14]=p):p=t[14];let m;return t[15]!==r||t[16]!==p?(m=n.jsxs(Ne,{children:[r,p]}),t[15]=r,t[16]=p,t[17]=m):m=t[17],m}function wt(t){return n.jsxs(_e,{value:t,className:"text-xs",children:[n.jsx("span",{className:"font-mono uppercase",children:t}),n.jsx("span",{className:"text-muted-foreground ml-auto",children:se[t]})]},t)}const me=[{value:"1h",label:"1 hour"},{value:"6h",label:"6 hours"},{value:"24h",label:"24 hours"},{value:"7d",label:"7 days"},{value:"30d",label:"30 days"}];function bt(t,e){const o={month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};return`${new Date(t).toLocaleString(void 0,o)} – ${new Date(e).toLocaleString(void 0,o)}`}function Ct(){const t=O.c(8),{window:e,range:o}=U().props,s=e===void 0?"24h":e,l=jt,c=_t;let i;t[0]!==s||t[1]!==o?(i=s==="custom"&&o?bt(o.from,o.to):me.find(f=>f.value===s)?.label??s,t[0]=s,t[1]=o,t[2]=i):i=t[2];const r=i,a=o?.from,u=o?.to;let d;return t[3]!==s||t[4]!==r||t[5]!==a||t[6]!==u?(d={window:s,from:a,to:u,set:l,setRange:c,label:r},t[3]=s,t[4]=r,t[5]=a,t[6]=u,t[7]=d):d=t[7],d}function _t(t,e){const o=new URL(globalThis.location.href);o.searchParams.set("from",t),o.searchParams.set("to",e),o.searchParams.delete("window"),o.searchParams.delete("step"),X.visit(o.toString(),{preserveScroll:!0,preserveState:!0})}function jt(t){const e=new URL(globalThis.location.href);e.searchParams.set("window",t),e.searchParams.delete("from"),e.searchParams.delete("to"),e.searchParams.delete("step"),X.visit(e.toString(),{preserveScroll:!0,preserveState:!0})}function Y(t){const e=new Date(t),o=s=>String(s).padStart(2,"0");return`${e.getFullYear()}-${o(e.getMonth()+1)}-${o(e.getDate())}T${o(e.getHours())}:${o(e.getMinutes())}`}function J(t){const e=new Date(t);return e.setHours(0,0,0,0),e}const St=[{label:"Today",range:()=>[J(new Date),new Date]},{label:"Yesterday",range:()=>{const t=J(new Date);return[J(new Date(t.getTime()-1440*60*1e3)),t]}},{label:"This week",range:()=>{const t=J(new Date);return t.setDate(t.getDate()-t.getDay()),[t,new Date]}}];function Dt(){const t=O.c(48),{window:e,from:o,to:s,set:l,setRange:c,label:i}=Ct(),[r,a]=P.useState(!1);let u;t[0]!==o?(u=()=>Y(o??new Date(Date.now()-864e5).toISOString()),t[0]=o,t[1]=u):u=t[1];const[d,f]=P.useState(u);let p;t[2]!==s?(p=()=>Y(s??new Date().toISOString()),t[2]=s,t[3]=p):p=t[3];const[m,h]=P.useState(p);let g;t[4]!==c?(g=(x,k)=>{f(Y(x.toISOString())),h(Y(k.toISOString())),c(x.toISOString(),k.toISOString()),a(!1)},t[4]=c,t[5]=g):g=t[5];const v=g;let _;t[6]!==v||t[7]!==d||t[8]!==m?(_=()=>{const x=new Date(d),k=new Date(m);!Number.isNaN(x.getTime())&&!Number.isNaN(k.getTime())&&v(x,k)},t[6]=v,t[7]=d,t[8]=m,t[9]=_):_=t[9];const D=_;let w;t[10]!==l||t[11]!==e?(w=me.map(x=>n.jsx(ne,{active:e===x.value,onClick:()=>l(x.value),"aria-label":x.label,children:x.value},x.value)),t[10]=l,t[11]=e,t[12]=w):w=t[12];const R=e==="custom";let N;t[13]===Symbol.for("react.memo_cache_sentinel")?(N=()=>a(!0),t[13]=N):N=t[13];let E;t[14]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx(Ie,{className:"size-3"}),t[14]=E):E=t[14];const $=e==="custom"?i:"Custom";let b;t[15]!==$?(b=n.jsx("span",{className:"hidden sm:inline",children:$}),t[15]=$,t[16]=b):b=t[16];let j;t[17]!==R||t[18]!==b?(j=n.jsx(mt,{asChild:!0,children:n.jsxs(ne,{active:R,onClick:N,"aria-label":"Custom range",className:"px-2",children:[E,b]})}),t[17]=R,t[18]=b,t[19]=j):j=t[19];let y;t[20]!==v?(y=St.map(x=>n.jsx(Q,{type:"button",variant:"outline",size:"sm",onClick:()=>{const[k,he]=x.range();v(k,he)},children:x.label},x.label)),t[20]=v,t[21]=y):y=t[21];let C;t[22]!==y?(C=n.jsx("div",{className:"flex flex-wrap gap-1",children:y}),t[22]=y,t[23]=C):C=t[23];let I;t[24]===Symbol.for("react.memo_cache_sentinel")?(I=n.jsx(re,{htmlFor:"window-picker-from",className:"text-xs",children:"From"}),t[24]=I):I=t[24];let S;t[25]===Symbol.for("react.memo_cache_sentinel")?(S=x=>f(x.target.value),t[25]=S):S=t[25];let A;t[26]!==d?(A=n.jsx(ae,{id:"window-picker-from",type:"datetime-local",value:d,onChange:S}),t[26]=d,t[27]=A):A=t[27];let V;t[28]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx(re,{htmlFor:"window-picker-to",className:"text-xs",children:"To"}),t[28]=V):V=t[28];let B;t[29]===Symbol.for("react.memo_cache_sentinel")?(B=x=>h(x.target.value),t[29]=B):B=t[29];let M;t[30]!==m?(M=n.jsx(ae,{id:"window-picker-to",type:"datetime-local",value:m,onChange:B}),t[30]=m,t[31]=M):M=t[31];let F;t[32]!==A||t[33]!==M?(F=n.jsxs("div",{className:"flex flex-col gap-2",children:[I,A,V,M]}),t[32]=A,t[33]=M,t[34]=F):F=t[34];let L;t[35]!==D?(L=n.jsx(Q,{type:"button",size:"sm",onClick:D,children:"Apply"}),t[35]=D,t[36]=L):L=t[36];let z;t[37]!==C||t[38]!==F||t[39]!==L?(z=n.jsx(ht,{className:"w-72",align:"end",children:n.jsxs("div",{className:"flex flex-col gap-3",children:[C,F,L]})}),t[37]=C,t[38]=F,t[39]=L,t[40]=z):z=t[40];let H;t[41]!==r||t[42]!==j||t[43]!==z?(H=n.jsxs(ft,{open:r,onOpenChange:a,children:[j,z]}),t[41]=r,t[42]=j,t[43]=z,t[44]=H):H=t[44];let K;return t[45]!==H||t[46]!==w?(K=n.jsxs(Ke,{children:[w,H]}),t[45]=H,t[46]=w,t[47]=K):K=t[47],K}function Lt(t){const e=O.c(21),{title:o,description:s,actions:l,withWindow:c}=t,i=c===void 0?!0:c,{environment:r}=U().props;let a;e[0]!==o?(a=n.jsx("h1",{className:"truncate text-xl font-semibold tracking-tight md:text-2xl",children:o}),e[0]=o,e[1]=a):a=e[1];let u;e[2]!==s?(u=s&&n.jsx("p",{className:"text-muted-foreground mt-0.5 text-sm",children:s}),e[2]=s,e[3]=u):u=e[3];let d;e[4]!==a||e[5]!==u?(d=n.jsxs("div",{className:"min-w-0",children:[a,u]}),e[4]=a,e[5]=u,e[6]=d):d=e[6];let f;e[7]!==r?(f=r&&n.jsx(gt,{environmentId:r.id}),e[7]=r,e[8]=f):f=e[8];let p;e[9]!==i?(p=i&&n.jsx(Pt,{}),e[9]=i,e[10]=p):p=e[10];let m;e[11]!==i?(m=i&&n.jsx(Dt,{}),e[11]=i,e[12]=m):m=e[12];let h;e[13]!==l||e[14]!==f||e[15]!==p||e[16]!==m?(h=n.jsxs("div",{className:"flex flex-wrap items-center gap-2 md:shrink-0 md:justify-end",children:[f,l,p,m]}),e[13]=l,e[14]=f,e[15]=p,e[16]=m,e[17]=h):h=e[17];let g;return e[18]!==d||e[19]!==h?(g=n.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-start md:justify-between md:gap-4",children:[d,h]}),e[18]=d,e[19]=h,e[20]=g):g=e[20],g}function zt(t){const e=O.c(18),{title:o,children:s,crumbs:l}=t;let c;e[0]!==l?(c=l===void 0?[]:l,e[0]=l,e[1]=c):c=e[1];const i=c,{environment:r}=U().props;let a;e[2]!==r?(a=r?[{title:r.application_name,href:ge(r.application_id)},{title:r.name,href:ve(r.application_id,r.id)}]:[],e[2]=r,e[3]=a):a=e[3];const u=a;let d;e[4]!==i||e[5]!==o?(d=i.length?i:[{title:o,href:"#"}],e[4]=i,e[5]=o,e[6]=d):d=e[6];let f;e[7]!==u||e[8]!==d?(f=[...u,...d],e[7]=u,e[8]=d,e[9]=f):f=e[9];const p=f,m=r?`${o} · ${r.application_name} ${r.name}`:o;let h;e[10]!==m?(h=n.jsx(xe,{title:m}),e[10]=m,e[11]=h):h=e[11];let g;e[12]!==s?(g=n.jsx("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:p-6",children:s}),e[12]=s,e[13]=g):g=e[13];let v;return e[14]!==p||e[15]!==h||e[16]!==g?(v=n.jsxs(Te,{breadcrumbs:p,children:[h,g]}),e[14]=p,e[15]=h,e[16]=g,e[17]=v):v=e[17],v}export{zt as E,Lt as P,ft as a,mt as b,ht as c,Ct as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ax as e,w as n,ay as h,K as u,t as m}from"./inertia-
|
|
1
|
+
import{ax as e,w as n,ay as h,K as u,t as m}from"./inertia-Cuyz2ZHO.js";function c({applicationId:t,environmentId:r,source:s,executionId:a}){if(!a||s==="browser")return null;switch(s){case"request":return m(t,r,a);case"job":case"job_attempt":return u(t,r,a);case"scheduled_task":return h(t,r,a);case"command":return n(t,r,a);default:return e(t,r,a)}}export{c as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as U,c as Y,r as I,j as s,a5 as Z}from"./inertia-
|
|
1
|
+
import{B as U,c as Y,r as I,j as s,a5 as Z}from"./inertia-Cuyz2ZHO.js";import{B as ee}from"./badge-DRae8XwK.js";import{B as te}from"./app-wordmark-BA_60AVb.js";import{f as V,g as G,e as se,s as ne,m as le,l as oe}from"./app-layout-Zc0v-hYh.js";import{a as ae,b as ie,c as re}from"./env-layout-Kz7wks1x.js";const ce=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],me=U("funnel",ce),de=/^([a-z_]+):(\S+)$/;function fe(m){const e=[],l={};for(const a of m.trim().split(/\s+/)){if(!a)continue;const o=de.exec(a);o?l[o[1]]=o[2]:e.push(a)}return{text:e.join(" "),fields:l}}function H(m){const e=Object.entries(m.fields).map(([l,a])=>`${l}:${a}`);return m.text&&e.push(m.text),e.join(" ")}function be(m){const e=Y.c(57),{value:l,fields:a,onChange:o,placeholder:K}=m,$=K===void 0?"Filter...":K,[i,z]=I.useState(l),[R,D]=I.useState(!1),[M,W]=I.useState(l);l!==M&&(W(l),z(l));let f,x,p,u,h,r,j,b,y,g,_,c,v;if(e[0]!==i||e[1]!==a||e[2]!==o||e[3]!==R||e[4]!==$||e[5]!==l){const B=fe(l),X=t=>{const n={...B.fields};delete n[t];const d=H({text:B.text,fields:n});z(d),o(d)},J=(t,n)=>{const d=H({text:B.text,fields:{...B.fields,[t]:n}});z(d),o(d),D(!1)};let E;e[19]===Symbol.for("react.memo_cache_sentinel")?(E=t=>{z(n=>`${n}${n&&!n.endsWith(" ")?" ":""}${t}:`),D(!1)},e[19]=E):E=e[19];const Q=E;let O;e[20]!==i||e[21]!==o?(O=()=>o(i),e[20]=i,e[21]=o,e[22]=O):O=e[22];const w=O;v="flex flex-wrap items-center gap-2";let A;e[23]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(se,{className:"text-muted-foreground size-3.5 shrink-0"}),e[23]=A):A=e[23];let q;e[24]===Symbol.for("react.memo_cache_sentinel")?(q=t=>z(t.target.value),e[24]=q):q=e[24];let T;e[25]!==w?(T=t=>t.key==="Enter"&&w(),e[25]=w,e[26]=T):T=e[26];let L;e[27]!==w||e[28]!==i||e[29]!==$||e[30]!==T?(L=s.jsx("input",{"data-filter-bar-input":!0,value:i,onChange:q,onKeyDown:T,onBlur:w,placeholder:$,className:"placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent font-mono text-xs outline-none"}),e[27]=w,e[28]=i,e[29]=$,e[30]=T,e[31]=L):L=e[31];let P;e[32]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx("kbd",{className:"bg-muted text-muted-foreground hidden rounded px-1 font-mono text-[10px] md:inline",children:"/"}),e[32]=P):P=e[32],h=s.jsxs("div",{className:"bg-card focus-within:border-ring flex h-8 min-w-0 flex-1 items-center gap-1.5 rounded-md border px-2 md:max-w-md md:flex-none md:basis-80",children:[A,Object.entries(B.fields).map(t=>{const[n,d]=t;return s.jsxs(ee,{variant:"secondary",className:"shrink-0 gap-1 rounded-sm px-1.5 font-mono text-[10px]",children:[n,":",d,s.jsx("button",{type:"button",onClick:()=>X(n),className:"hover:text-destructive","aria-label":`Remove ${n} filter`,children:s.jsx(Z,{className:"size-3"})})]},n)}),L,P]}),u=ae,g=R,_=D,e[33]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(ie,{asChild:!0,children:s.jsx(te,{type:"button",variant:"outline",size:"sm",className:"h-8 px-2","aria-label":"Add filter",children:s.jsx(me,{className:"size-3.5"})})}),e[33]=c):c=e[33],p=re,b="w-56 p-0",y="start",x=ne,f=le,e[34]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(oe,{children:"No fields."}),e[34]=r):r=e[34],j=a.map(t=>t.options?s.jsx(V,{heading:t.label,children:t.options.map(n=>s.jsx(G,{onSelect:()=>J(t.key,n),children:n},n))},t.key):s.jsx(V,{heading:t.label,children:s.jsxs(G,{onSelect:()=>Q(t.key),children:[t.key,":…"]})},t.key)),e[0]=i,e[1]=a,e[2]=o,e[3]=R,e[4]=$,e[5]=l,e[6]=f,e[7]=x,e[8]=p,e[9]=u,e[10]=h,e[11]=r,e[12]=j,e[13]=b,e[14]=y,e[15]=g,e[16]=_,e[17]=c,e[18]=v}else f=e[6],x=e[7],p=e[8],u=e[9],h=e[10],r=e[11],j=e[12],b=e[13],y=e[14],g=e[15],_=e[16],c=e[17],v=e[18];let k;e[35]!==f||e[36]!==r||e[37]!==j?(k=s.jsxs(f,{children:[r,j]}),e[35]=f,e[36]=r,e[37]=j,e[38]=k):k=e[38];let N;e[39]!==x||e[40]!==k?(N=s.jsx(x,{children:k}),e[39]=x,e[40]=k,e[41]=N):N=e[41];let S;e[42]!==p||e[43]!==N||e[44]!==b||e[45]!==y?(S=s.jsx(p,{className:b,align:y,children:N}),e[42]=p,e[43]=N,e[44]=b,e[45]=y,e[46]=S):S=e[46];let C;e[47]!==u||e[48]!==S||e[49]!==g||e[50]!==_||e[51]!==c?(C=s.jsxs(u,{open:g,onOpenChange:_,children:[c,S]}),e[47]=u,e[48]=S,e[49]=g,e[50]=_,e[51]=c,e[52]=C):C=e[52];let F;return e[53]!==h||e[54]!==C||e[55]!==v?(F=s.jsxs("div",{className:v,children:[h,C]}),e[53]=h,e[54]=C,e[55]=v,e[56]=F):F=e[56],F}export{be as F,fe as p,H as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as j,j as o,C,c as $}from"./inertia-
|
|
1
|
+
import{r as j,j as o,C,c as $}from"./inertia-Cuyz2ZHO.js";import{D as E}from"./data-table-CzKTEE-O.js";import{S as V,a as z}from"./segmented-BeIe4uqk.js";import{I as W}from"./label-DdCBgiUn.js";import{c as M,p as T}from"./format-B9SDkrWj.js";function L(s){let e=0;const t=a=>({id:e++,name:a,value:0,self:0,children:[]}),n=t("all"),m=new Map;for(const a of s.split(`
|
|
2
2
|
`)){const f=a.trim(),x=f.lastIndexOf(" ");if(x<=0)continue;const i=Number(f.slice(x+1));if(!Number.isFinite(i)||i<=0)continue;const r=f.slice(0,x).split(";").filter(u=>u.length>0);if(r.length===0)continue;n.value+=i;let c=n,h="";for(const u of r){h+=";"+u;let d=m.get(h);d||(d=t(u),c.children.push(d),m.set(h,d)),d.value+=i,c=d}c.self+=i}return n}function A(s,e){const t=[],n=s.value>0?e/s.value:0,m=(a,f,x,i)=>{t.push({id:a.id,node:a,x:f,width:a.value*n,depth:x,parentValue:i});let r=f;for(const c of a.children)m(c,r,x+1,a.value),r+=c.value*n};return m(s,0,0,s.value),t}function F(s){const e=new Map,t=(n,m)=>{if(!m){const a=e.get(n.name)??{name:n.name,self:0,total:0};a.self+=n.self,a.total+=n.value,e.set(n.name,a)}for(const a of n.children)t(a,!1)};return t(s,!0),e}function B(s,e){return[...F(s).values()].sort((t,n)=>n.self-t.self||n.total-t.total).slice(0,e)}function D(s,e){return[...F(s).values()].sort((t,n)=>n.total-t.total||n.self-t.self).slice(0,e)}function H(s,e){const t=new Set,n=e.trim().toLowerCase();if(n==="")return t;const m=a=>{a.name.toLowerCase().includes(n)&&t.add(a.id);for(const f of a.children)m(f)};return m(s),t}const y=18,R=15;function X(s){const e=s.lastIndexOf(" ("),t=e>=0?s.slice(e+2):"";return/^(app|lib|config|db|engines)\//.test(t)}function q(s){let e=0;for(let t=0;t<s.length;t++)e=e*31+s.charCodeAt(t)|0;return Math.abs(e)}function K(s){const e=q(s);return X(s)?`hsl(${[24,34,14,44,4][e%5]} 78% ${52+e%3*6}%)`:`hsl(${[215,220,210][e%3]} 14% ${58+e%3*7}%)`}function Q(s,e){const t=Math.floor((e-8)/5.6);return t<4?"":s.length<=t?s:s.slice(0,t-1)+"…"}function Y(s){const e=$.c(30),{rect:t,total:n,x:m,y:a}=s,f=Math.max(0,m-8),x=a+14;let i;e[0]!==f||e[1]!==x?(i={left:f,top:x},e[0]=f,e[1]=x,e[2]=i):i=e[2];let r;e[3]!==t.node.name?(r=o.jsx("div",{className:"font-mono text-[11px] break-all",children:t.node.name}),e[3]=t.node.name,e[4]=r):r=e[4];let c;e[5]!==t.node.value?(c=M(t.node.value),e[5]=t.node.value,e[6]=c):c=e[6];let h;e[7]!==c?(h=o.jsxs("span",{children:[c," samples"]}),e[7]=c,e[8]=h):h=e[8];let u;e[9]!==t.node.value||e[10]!==n?(u=T(t.node.value,n),e[9]=t.node.value,e[10]=n,e[11]=u):u=e[11];let d;e[12]!==u?(d=o.jsxs("span",{children:[u," of total"]}),e[12]=u,e[13]=d):d=e[13];let p;e[14]!==t.node.value||e[15]!==t.parentValue?(p=T(t.node.value,t.parentValue),e[14]=t.node.value,e[15]=t.parentValue,e[16]=p):p=e[16];let w;e[17]!==p?(w=o.jsxs("span",{children:[p," of parent"]}),e[17]=p,e[18]=w):w=e[18];let v;e[19]!==t.node.self?(v=t.node.self>0&&o.jsxs("span",{children:[M(t.node.self)," self"]}),e[19]=t.node.self,e[20]=v):v=e[20];let b;e[21]!==w||e[22]!==v||e[23]!==h||e[24]!==d?(b=o.jsxs("div",{className:"text-muted-foreground mt-1 flex flex-wrap gap-x-3 font-mono text-[10px] tabular-nums",children:[h,d,w,v]}),e[21]=w,e[22]=v,e[23]=h,e[24]=d,e[25]=b):b=e[25];let N;return e[26]!==b||e[27]!==i||e[28]!==r?(N=o.jsxs("div",{className:"bg-popover text-popover-foreground pointer-events-none absolute z-10 max-w-[min(22rem,90vw)] rounded-md border p-2 shadow-md",style:i,children:[r,b]}),e[26]=b,e[27]=i,e[28]=r,e[29]=N):N=e[29],N}function _({collapsed:s,className:e}){const t=j.useMemo(()=>L(s),[s]),[n,m]=j.useState(""),[a,f]=j.useState("self"),[x,i]=j.useState({tree:t,zoom:[],hovered:null}),r=x.tree===t?x:{tree:t,zoom:[],hovered:null},c=r.zoom,h=j.useRef(null),[u,d]=j.useState(0);j.useEffect(()=>{const l=h.current;if(!l)return;d(l.clientWidth);const g=new ResizeObserver(([k])=>d(k.contentRect.width));return g.observe(l),()=>g.disconnect()},[]);const p=c[c.length-1]??t,w=j.useMemo(()=>A(p,u),[p,u]),v=j.useMemo(()=>H(t,n),[t,n]),b=j.useMemo(()=>a==="self"?B(p,R):D(p,R),[p,a]),N=w.reduce((l,g)=>Math.max(l,g.depth),0),O=v.size>0;return t.value===0?o.jsx("p",{className:"text-muted-foreground py-6 text-center text-sm",children:"This profile recorded no samples."}):o.jsxs("div",{className:C("space-y-3",e),children:[o.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[o.jsx(W,{value:n,onChange:l=>m(l.target.value),placeholder:"Search frames",className:"h-8 max-w-56 font-mono text-xs","aria-label":"Search frames"}),n!==""&&o.jsxs("span",{className:"text-muted-foreground font-mono text-[11px]",children:[v.size," match",v.size===1?"":"es"]}),o.jsx("div",{className:"ml-auto flex flex-wrap items-center gap-1 font-mono text-[11px]",children:[t,...c].map((l,g)=>o.jsxs("span",{className:"flex items-center gap-1",children:[g>0&&o.jsx("span",{className:"text-muted-foreground",children:"/"}),o.jsx("button",{type:"button",onClick:()=>i({...r,zoom:c.slice(0,g)}),disabled:g===c.length,className:C("max-w-40 truncate",g===c.length?"text-foreground font-semibold":"text-muted-foreground hover:underline"),children:l.name})]},l.id))})]}),o.jsxs("div",{ref:h,className:"bg-muted/20 relative overflow-hidden rounded-lg border",onMouseLeave:()=>i({...r,hovered:null}),children:[o.jsx("svg",{width:u,height:(N+1)*y,role:"img","aria-label":`Flamegraph of ${t.value} samples`,children:w.map(l=>{const g=Q(l.node.name,l.width);return o.jsxs("g",{onClick:()=>i({...r,zoom:[...c,...I(p,l.node)]}),onMouseMove:k=>{const S=h.current?.getBoundingClientRect();i({...r,hovered:{rect:l,x:k.clientX-(S?.left??0),y:k.clientY-(S?.top??0)}})},className:"cursor-pointer",children:[o.jsx("rect",{x:l.x,y:l.depth*y,width:Math.max(0,l.width-1),height:y-1,rx:2,fill:K(l.node.name),opacity:O?v.has(l.id)?1:.18:r.hovered?.rect.id===l.id?1:.88,stroke:v.has(l.id)?"currentColor":"none",strokeWidth:1}),g!==""&&o.jsx("text",{x:l.x+4,y:l.depth*y+y/2,dominantBaseline:"central",className:"pointer-events-none fill-black/85 font-mono text-[10px]",children:g})]},l.id)})}),r.hovered&&o.jsx(Y,{rect:r.hovered.rect,total:t.value,x:r.hovered.x,y:r.hovered.y})]}),o.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[o.jsx("h3",{className:"label-caps",children:"Hottest frames"}),o.jsxs(V,{children:[o.jsx(z,{active:a==="self",onClick:()=>f("self"),children:"Self"}),o.jsx(z,{active:a==="total",onClick:()=>f("total"),children:"Total"})]})]}),o.jsx(E,{rows:b,rowKey:l=>l.name,empty:"No frames in this view.",columns:[{key:"name",header:"Frame",className:"max-w-0",cell:l=>o.jsx("span",{className:"block truncate font-mono text-xs",title:l.name,children:l.name})},{key:"self",header:"Self",align:"right",cell:l=>o.jsx("span",{className:a==="self"?"font-semibold":"",children:M(l.self)})},{key:"total",header:"Total",align:"right",cell:l=>o.jsx("span",{className:a==="total"?"font-semibold":"",children:M(l.total)})}]})]})}function I(s,e){if(s===e)return[];for(const t of s.children){const n=I(t,e);if(n.length>0||t===e)return[t,...n]}return[]}export{_ as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as S,c as _,u as C,C as N,j as s,r as w}from"./inertia-CqnzqPVD.js";import{s as E}from"./source-link-B2183i2-.js";import{B as $}from"./badge-Dv7I-ebP.js";const q=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]],Z=S("clipboard-copy",q);const M=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],F=S("external-link",M);function A(m){const e=_.c(26),{location:t,deploy:o,className:l}=m,{auth:r,environment:n}=C().props;let x,c,a;if(e[0]!==r||e[1]!==l||e[2]!==o||e[3]!==n?.default_branch||e[4]!==n?.repository_url||e[5]!==t){c=Symbol.for("react.early_return_sentinel");e:{const g=/^(.*):(\d+)$/.exec(t);if(a=g?E({file:g[1],line:Number(g[2]),repositoryUrl:n?.repository_url,ref:o,defaultBranch:n?.default_branch,editor:r.user.editor,editorRoot:r.user.editor_root}):null,!a){let d;e[9]!==l?(d=N("truncate font-mono text-xs",l),e[9]=l,e[10]=d):d=e[10];let j;e[11]!==t||e[12]!==d?(j=s.jsx("span",{className:d,children:t}),e[11]=t,e[12]=d,e[13]=j):j=e[13],c=j;break e}x=a.startsWith("http")}e[0]=r,e[1]=l,e[2]=o,e[3]=n?.default_branch,e[4]=n?.repository_url,e[5]=t,e[6]=x,e[7]=c,e[8]=a}else x=e[6],c=e[7],a=e[8];if(c!==Symbol.for("react.early_return_sentinel"))return c;const b=x;let i;e[14]!==b?(i=b?{target:"_blank",rel:"noreferrer"}:{},e[14]=b,e[15]=i):i=e[15];let f;e[16]!==l?(f=N("inline-flex min-w-0 items-center gap-1 font-mono text-xs hover:underline",l),e[16]=l,e[17]=f):f=e[17];let h;e[18]!==t?(h=s.jsx("span",{className:"truncate",children:t}),e[18]=t,e[19]=h):h=e[19];let u;e[20]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(F,{className:"size-3 shrink-0 opacity-60"}),e[20]=u):u=e[20];let p;return e[21]!==i||e[22]!==f||e[23]!==h||e[24]!==a?(p=s.jsxs("a",{href:a,...i,className:f,children:[h,u]}),e[21]=i,e[22]=f,e[23]=h,e[24]=a,e[25]=p):p=e[25],p}const H=/-[A-Za-z0-9_-]{8,}\.(?:js|mjs|cjs|css)$/;function O(m){const e=_.c(36),{frame:t,deploy:o,open:l,onToggle:r}=m;let n;e[0]!==t.code?(n=t.code?Object.entries(t.code):[],e[0]=t.code,e[1]=n):n=e[1];const x=n;let c;e[2]!==t.file||e[3]!==t.in_app?(c=t.in_app&&!H.test(t.file),e[2]=t.file,e[3]=t.in_app,e[4]=c):c=e[4];const a=c,b=t.in_app?"bg-background":"bg-muted/40";let i;e[5]!==b?(i=N("border-b last:border-b-0",b),e[5]=b,e[6]=i):i=e[6];let f;e[7]!==o||e[8]!==t.file||e[9]!==t.line||e[10]!==a?(f=a&&s.jsx(A,{location:`${t.file}:${t.line}`,deploy:o}),e[7]=o,e[8]=t.file,e[9]=t.line,e[10]=a,e[11]=f):f=e[11];let h;e[12]!==t.file||e[13]!==t.line||e[14]!==a?(h=!a&&s.jsxs("span",{className:"text-muted-foreground truncate",children:[t.file,":",t.line]}),e[12]=t.file,e[13]=t.line,e[14]=a,e[15]=h):h=e[15];let u;e[16]!==t.function?(u=s.jsxs("span",{className:"text-muted-foreground ml-auto truncate",children:["in ",t.function]}),e[16]=t.function,e[17]=u):u=e[17];let p;e[18]!==t.in_app?(p=t.in_app&&s.jsx($,{variant:"outline",className:"shrink-0 text-[10px]",children:"app"}),e[18]=t.in_app,e[19]=p):p=e[19];let g;e[20]!==r||e[21]!==h||e[22]!==u||e[23]!==p?(g=s.jsxs("button",{type:"button",onClick:r,className:"flex min-w-0 flex-1 items-center gap-2 text-left",children:[h,u,p]}),e[20]=r,e[21]=h,e[22]=u,e[23]=p,e[24]=g):g=e[24];let d;e[25]!==f||e[26]!==g?(d=s.jsxs("div",{className:"hover:bg-muted/60 flex w-full items-center gap-2 px-3 py-1.5 font-mono text-xs",children:[f,g]}),e[25]=f,e[26]=g,e[27]=d):d=e[27];let j;e[28]!==t.line||e[29]!==x||e[30]!==l?(j=l&&x.length>0&&s.jsx("pre",{className:"bg-muted/60 overflow-x-auto px-3 py-2 font-mono text-xs leading-5",children:x.map(v=>{const[k,B]=v;return s.jsxs("div",{className:N("flex gap-3 border-l-2 border-transparent pl-2",Number(k)===t.line&&"border-destructive bg-destructive/10 font-semibold"),children:[s.jsx("span",{className:"text-muted-foreground w-10 shrink-0 text-right select-none",children:k}),s.jsx("span",{className:"whitespace-pre",children:B})]},k)})}),e[28]=t.line,e[29]=x,e[30]=l,e[31]=j):j=e[31];let y;return e[32]!==d||e[33]!==j||e[34]!==i?(y=s.jsxs("div",{className:i,children:[d,j]}),e[32]=d,e[33]=j,e[34]=i,e[35]=y):y=e[35],y}function z(m){const e=_.c(22),{frames:t,deploy:o}=m;let l,r;if(e[0]!==t){const d=t.flatMap(R);l=w.useState,r=new Set(d.length>0?d:[0]),e[0]=t,e[1]=l,e[2]=r}else l=e[1],r=e[2];const[n,x]=l(r),[c,a]=w.useState(!1);let b;e[3]!==t||e[4]!==c?(b=c?t:t.filter(L),e[3]=t,e[4]=c,e[5]=b):b=e[5];const i=b;let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=function(j){x(y=>{const v=new Set(y);return v.has(j)?v.delete(j):v.add(j),v})},e[6]=f):f=e[6];const h=f;let u;if(e[7]!==o||e[8]!==t||e[9]!==n||e[10]!==i){let d;e[12]!==o||e[13]!==t||e[14]!==n?(d=j=>{const y=t.indexOf(j);return s.jsx(O,{frame:j,deploy:o,open:n.has(y),onToggle:()=>h(y)},y)},e[12]=o,e[13]=t,e[14]=n,e[15]=d):d=e[15],u=i.map(d),e[7]=o,e[8]=t,e[9]=n,e[10]=i,e[11]=u}else u=e[11];let p;e[16]!==t.length||e[17]!==i.length?(p=i.length<t.length&&s.jsxs("button",{type:"button",className:"text-muted-foreground w-full px-3 py-1.5 text-left text-xs hover:underline",onClick:()=>a(!0),children:["Show ",t.length-i.length," framework frames"]}),e[16]=t.length,e[17]=i.length,e[18]=p):p=e[18];let g;return e[19]!==u||e[20]!==p?(g=s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[u,p]}),e[19]=u,e[20]=p,e[21]=g):g=e[21],g}function L(m,e){return m.in_app||e<3}function R(m,e){return m.in_app?[e]:[]}function G(m){const e=_.c(34),{exception:t,deploy:o}=m;let l;e[0]!==t.class_name?(l=s.jsx("span",{className:"font-mono text-sm font-semibold",children:t.class_name}),e[0]=t.class_name,e[1]=l):l=e[1];const r=t.handled?"secondary":"destructive",n=t.handled?"handled":"unhandled";let x;e[2]!==r||e[3]!==n?(x=s.jsx($,{variant:r,children:n}),e[2]=r,e[3]=n,e[4]=x):x=e[4];let c;e[5]!==t.severity?(c=t.severity&&s.jsx($,{variant:"outline",children:t.severity}),e[5]=t.severity,e[6]=c):c=e[6];let a;e[7]!==t.source?(a=t.source&&s.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source}),e[7]=t.source,e[8]=a):a=e[8];let b;e[9]!==l||e[10]!==x||e[11]!==c||e[12]!==a?(b=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[l,x,c,a]}),e[9]=l,e[10]=x,e[11]=c,e[12]=a,e[13]=b):b=e[13];let i;e[14]!==t.message?(i=s.jsx("p",{className:"mt-1 font-mono text-sm break-words",children:t.message}),e[14]=t.message,e[15]=i):i=e[15];let f;e[16]!==t.cause?(f=t.cause&&s.jsxs("p",{className:"text-muted-foreground mt-1 font-mono text-xs",children:["caused by ",t.cause.class,": ",t.cause.message]}),e[16]=t.cause,e[17]=f):f=e[17];let h;e[18]!==b||e[19]!==i||e[20]!==f?(h=s.jsxs("div",{children:[b,i,f]}),e[18]=b,e[19]=i,e[20]=f,e[21]=h):h=e[21];let u;e[22]!==o||e[23]!==t.frames?(u=s.jsx(z,{frames:t.frames,deploy:o}),e[22]=o,e[23]=t.frames,e[24]=u):u=e[24];let p;e[25]!==t.locals?(p=t.locals&&Object.keys(t.locals).length>0&&s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[s.jsx("div",{className:"label-caps border-b px-3 py-1.5",children:"Local variables at the raise site"}),s.jsx("dl",{className:"grid grid-cols-[max-content_1fr] gap-x-4 gap-y-1 px-3 py-2 font-mono text-xs",children:Object.entries(t.locals).map(T)})]}),e[25]=t.locals,e[26]=p):p=e[26];let g;e[27]!==t.context?(g=t.context&&t.context!=="{}"&&s.jsx("pre",{className:"bg-muted/60 overflow-x-auto rounded-lg p-3 font-mono text-xs",children:t.context}),e[27]=t.context,e[28]=g):g=e[28];let d;return e[29]!==h||e[30]!==u||e[31]!==p||e[32]!==g?(d=s.jsxs("div",{className:"space-y-3",children:[h,u,p,g]}),e[29]=h,e[30]=u,e[31]=p,e[32]=g,e[33]=d):d=e[33],d}function T(m){const[e,t]=m;return s.jsxs(w.Fragment,{children:[s.jsx("dt",{className:"text-muted-foreground",children:e}),s.jsx("dd",{className:"break-all",children:t})]},e)}const I={query:"bg-sky-500",transaction:"bg-sky-300",cache_event:"bg-violet-500",outgoing_request:"bg-orange-500",mail:"bg-pink-500",broadcast:"bg-teal-500",enqueued_job:"bg-amber-500",view_render:"bg-emerald-500",storage_op:"bg-indigo-500",exception:"bg-red-500",log:"bg-neutral-400"};function J(m){const e=_.c(9),{entries:t}=m;if(t.length===0)return null;let o;e[0]!==t.length?(o=s.jsxs("div",{className:"label-caps border-b px-3 py-1.5",children:["Breadcrumbs · ",t.length," events before the exception"]}),e[0]=t.length,e[1]=o):o=e[1];let l;e[2]!==t?(l=t.map(U),e[2]=t,e[3]=l):l=e[3];let r;e[4]!==l?(r=s.jsx("ol",{className:"divide-y",children:l}),e[4]=l,e[5]=r):r=e[5];let n;return e[6]!==o||e[7]!==r?(n=s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[o,r]}),e[6]=o,e[7]=r,e[8]=n):n=e[8],n}function U(m){return s.jsxs("li",{className:"grid grid-cols-[3.5rem_5rem_1fr_4rem] items-center gap-2 px-3 py-1 font-mono text-xs",children:[s.jsxs("span",{className:"text-muted-foreground tabular-nums",children:["+",m.offset.toFixed(1),"ms"]}),s.jsxs("span",{className:"text-muted-foreground flex items-center gap-1.5 truncate",children:[s.jsx("span",{className:N("inline-block size-1.5 shrink-0 rounded-full",I[m.type]??"bg-neutral-500")}),m.type.replace("_"," ")]}),s.jsx("span",{className:"truncate",children:m.label}),s.jsx("span",{className:"text-muted-foreground text-right tabular-nums",children:m.duration!=null?`${m.duration.toFixed(1)}ms`:""})]},`${m.type}-${m.id}`)}const D={console:"bg-red-500",click:"bg-violet-500",navigate:"bg-sky-500"};function K(m){const e=_.c(12),{crumbs:t}=m;if(t.length===0)return null;const o=t[0].at;let l;e[0]!==t.length?(l=s.jsxs("div",{className:"label-caps border-b px-3 py-1.5",children:["Breadcrumbs · ",t.length," events before the error"]}),e[0]=t.length,e[1]=l):l=e[1];let r;if(e[2]!==t||e[3]!==o){let c;e[5]!==o?(c=(a,b)=>s.jsxs("li",{className:"grid grid-cols-[3.5rem_5rem_1fr] items-center gap-2 px-3 py-1 font-mono text-xs",children:[s.jsxs("span",{className:"text-muted-foreground tabular-nums",children:["+",((a.at-o)/1e3).toFixed(1),"s"]}),s.jsxs("span",{className:"text-muted-foreground flex items-center gap-1.5 truncate",children:[s.jsx("span",{className:N("inline-block size-1.5 shrink-0 rounded-full",D[a.kind]??"bg-neutral-500")}),a.kind]}),s.jsx("span",{className:"truncate",children:a.text})]},`${a.at}-${a.kind}-${b}`),e[5]=o,e[6]=c):c=e[6],r=t.map(c),e[2]=t,e[3]=o,e[4]=r}else r=e[4];let n;e[7]!==r?(n=s.jsx("ol",{className:"divide-y",children:r}),e[7]=r,e[8]=n):n=e[8];let x;return e[9]!==l||e[10]!==n?(x=s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[l,n]}),e[9]=l,e[10]=n,e[11]=x):x=e[11],x}export{J as B,Z as C,G as E,A as S,K as a};
|
|
1
|
+
import{B as S,c as _,u as C,C as N,j as s,r as w}from"./inertia-Cuyz2ZHO.js";import{s as E}from"./source-link-B2183i2-.js";import{B as $}from"./badge-DRae8XwK.js";const q=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]],Z=S("clipboard-copy",q);const M=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],F=S("external-link",M);function A(m){const e=_.c(26),{location:t,deploy:o,className:l}=m,{auth:r,environment:n}=C().props;let x,c,a;if(e[0]!==r||e[1]!==l||e[2]!==o||e[3]!==n?.default_branch||e[4]!==n?.repository_url||e[5]!==t){c=Symbol.for("react.early_return_sentinel");e:{const g=/^(.*):(\d+)$/.exec(t);if(a=g?E({file:g[1],line:Number(g[2]),repositoryUrl:n?.repository_url,ref:o,defaultBranch:n?.default_branch,editor:r.user.editor,editorRoot:r.user.editor_root}):null,!a){let d;e[9]!==l?(d=N("truncate font-mono text-xs",l),e[9]=l,e[10]=d):d=e[10];let j;e[11]!==t||e[12]!==d?(j=s.jsx("span",{className:d,children:t}),e[11]=t,e[12]=d,e[13]=j):j=e[13],c=j;break e}x=a.startsWith("http")}e[0]=r,e[1]=l,e[2]=o,e[3]=n?.default_branch,e[4]=n?.repository_url,e[5]=t,e[6]=x,e[7]=c,e[8]=a}else x=e[6],c=e[7],a=e[8];if(c!==Symbol.for("react.early_return_sentinel"))return c;const b=x;let i;e[14]!==b?(i=b?{target:"_blank",rel:"noreferrer"}:{},e[14]=b,e[15]=i):i=e[15];let f;e[16]!==l?(f=N("inline-flex min-w-0 items-center gap-1 font-mono text-xs hover:underline",l),e[16]=l,e[17]=f):f=e[17];let h;e[18]!==t?(h=s.jsx("span",{className:"truncate",children:t}),e[18]=t,e[19]=h):h=e[19];let u;e[20]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(F,{className:"size-3 shrink-0 opacity-60"}),e[20]=u):u=e[20];let p;return e[21]!==i||e[22]!==f||e[23]!==h||e[24]!==a?(p=s.jsxs("a",{href:a,...i,className:f,children:[h,u]}),e[21]=i,e[22]=f,e[23]=h,e[24]=a,e[25]=p):p=e[25],p}const H=/-[A-Za-z0-9_-]{8,}\.(?:js|mjs|cjs|css)$/;function O(m){const e=_.c(36),{frame:t,deploy:o,open:l,onToggle:r}=m;let n;e[0]!==t.code?(n=t.code?Object.entries(t.code):[],e[0]=t.code,e[1]=n):n=e[1];const x=n;let c;e[2]!==t.file||e[3]!==t.in_app?(c=t.in_app&&!H.test(t.file),e[2]=t.file,e[3]=t.in_app,e[4]=c):c=e[4];const a=c,b=t.in_app?"bg-background":"bg-muted/40";let i;e[5]!==b?(i=N("border-b last:border-b-0",b),e[5]=b,e[6]=i):i=e[6];let f;e[7]!==o||e[8]!==t.file||e[9]!==t.line||e[10]!==a?(f=a&&s.jsx(A,{location:`${t.file}:${t.line}`,deploy:o}),e[7]=o,e[8]=t.file,e[9]=t.line,e[10]=a,e[11]=f):f=e[11];let h;e[12]!==t.file||e[13]!==t.line||e[14]!==a?(h=!a&&s.jsxs("span",{className:"text-muted-foreground truncate",children:[t.file,":",t.line]}),e[12]=t.file,e[13]=t.line,e[14]=a,e[15]=h):h=e[15];let u;e[16]!==t.function?(u=s.jsxs("span",{className:"text-muted-foreground ml-auto truncate",children:["in ",t.function]}),e[16]=t.function,e[17]=u):u=e[17];let p;e[18]!==t.in_app?(p=t.in_app&&s.jsx($,{variant:"outline",className:"shrink-0 text-[10px]",children:"app"}),e[18]=t.in_app,e[19]=p):p=e[19];let g;e[20]!==r||e[21]!==h||e[22]!==u||e[23]!==p?(g=s.jsxs("button",{type:"button",onClick:r,className:"flex min-w-0 flex-1 items-center gap-2 text-left",children:[h,u,p]}),e[20]=r,e[21]=h,e[22]=u,e[23]=p,e[24]=g):g=e[24];let d;e[25]!==f||e[26]!==g?(d=s.jsxs("div",{className:"hover:bg-muted/60 flex w-full items-center gap-2 px-3 py-1.5 font-mono text-xs",children:[f,g]}),e[25]=f,e[26]=g,e[27]=d):d=e[27];let j;e[28]!==t.line||e[29]!==x||e[30]!==l?(j=l&&x.length>0&&s.jsx("pre",{className:"bg-muted/60 overflow-x-auto px-3 py-2 font-mono text-xs leading-5",children:x.map(v=>{const[k,B]=v;return s.jsxs("div",{className:N("flex gap-3 border-l-2 border-transparent pl-2",Number(k)===t.line&&"border-destructive bg-destructive/10 font-semibold"),children:[s.jsx("span",{className:"text-muted-foreground w-10 shrink-0 text-right select-none",children:k}),s.jsx("span",{className:"whitespace-pre",children:B})]},k)})}),e[28]=t.line,e[29]=x,e[30]=l,e[31]=j):j=e[31];let y;return e[32]!==d||e[33]!==j||e[34]!==i?(y=s.jsxs("div",{className:i,children:[d,j]}),e[32]=d,e[33]=j,e[34]=i,e[35]=y):y=e[35],y}function z(m){const e=_.c(22),{frames:t,deploy:o}=m;let l,r;if(e[0]!==t){const d=t.flatMap(R);l=w.useState,r=new Set(d.length>0?d:[0]),e[0]=t,e[1]=l,e[2]=r}else l=e[1],r=e[2];const[n,x]=l(r),[c,a]=w.useState(!1);let b;e[3]!==t||e[4]!==c?(b=c?t:t.filter(L),e[3]=t,e[4]=c,e[5]=b):b=e[5];const i=b;let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=function(j){x(y=>{const v=new Set(y);return v.has(j)?v.delete(j):v.add(j),v})},e[6]=f):f=e[6];const h=f;let u;if(e[7]!==o||e[8]!==t||e[9]!==n||e[10]!==i){let d;e[12]!==o||e[13]!==t||e[14]!==n?(d=j=>{const y=t.indexOf(j);return s.jsx(O,{frame:j,deploy:o,open:n.has(y),onToggle:()=>h(y)},y)},e[12]=o,e[13]=t,e[14]=n,e[15]=d):d=e[15],u=i.map(d),e[7]=o,e[8]=t,e[9]=n,e[10]=i,e[11]=u}else u=e[11];let p;e[16]!==t.length||e[17]!==i.length?(p=i.length<t.length&&s.jsxs("button",{type:"button",className:"text-muted-foreground w-full px-3 py-1.5 text-left text-xs hover:underline",onClick:()=>a(!0),children:["Show ",t.length-i.length," framework frames"]}),e[16]=t.length,e[17]=i.length,e[18]=p):p=e[18];let g;return e[19]!==u||e[20]!==p?(g=s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[u,p]}),e[19]=u,e[20]=p,e[21]=g):g=e[21],g}function L(m,e){return m.in_app||e<3}function R(m,e){return m.in_app?[e]:[]}function G(m){const e=_.c(34),{exception:t,deploy:o}=m;let l;e[0]!==t.class_name?(l=s.jsx("span",{className:"font-mono text-sm font-semibold",children:t.class_name}),e[0]=t.class_name,e[1]=l):l=e[1];const r=t.handled?"secondary":"destructive",n=t.handled?"handled":"unhandled";let x;e[2]!==r||e[3]!==n?(x=s.jsx($,{variant:r,children:n}),e[2]=r,e[3]=n,e[4]=x):x=e[4];let c;e[5]!==t.severity?(c=t.severity&&s.jsx($,{variant:"outline",children:t.severity}),e[5]=t.severity,e[6]=c):c=e[6];let a;e[7]!==t.source?(a=t.source&&s.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source}),e[7]=t.source,e[8]=a):a=e[8];let b;e[9]!==l||e[10]!==x||e[11]!==c||e[12]!==a?(b=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[l,x,c,a]}),e[9]=l,e[10]=x,e[11]=c,e[12]=a,e[13]=b):b=e[13];let i;e[14]!==t.message?(i=s.jsx("p",{className:"mt-1 font-mono text-sm break-words",children:t.message}),e[14]=t.message,e[15]=i):i=e[15];let f;e[16]!==t.cause?(f=t.cause&&s.jsxs("p",{className:"text-muted-foreground mt-1 font-mono text-xs",children:["caused by ",t.cause.class,": ",t.cause.message]}),e[16]=t.cause,e[17]=f):f=e[17];let h;e[18]!==b||e[19]!==i||e[20]!==f?(h=s.jsxs("div",{children:[b,i,f]}),e[18]=b,e[19]=i,e[20]=f,e[21]=h):h=e[21];let u;e[22]!==o||e[23]!==t.frames?(u=s.jsx(z,{frames:t.frames,deploy:o}),e[22]=o,e[23]=t.frames,e[24]=u):u=e[24];let p;e[25]!==t.locals?(p=t.locals&&Object.keys(t.locals).length>0&&s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[s.jsx("div",{className:"label-caps border-b px-3 py-1.5",children:"Local variables at the raise site"}),s.jsx("dl",{className:"grid grid-cols-[max-content_1fr] gap-x-4 gap-y-1 px-3 py-2 font-mono text-xs",children:Object.entries(t.locals).map(T)})]}),e[25]=t.locals,e[26]=p):p=e[26];let g;e[27]!==t.context?(g=t.context&&t.context!=="{}"&&s.jsx("pre",{className:"bg-muted/60 overflow-x-auto rounded-lg p-3 font-mono text-xs",children:t.context}),e[27]=t.context,e[28]=g):g=e[28];let d;return e[29]!==h||e[30]!==u||e[31]!==p||e[32]!==g?(d=s.jsxs("div",{className:"space-y-3",children:[h,u,p,g]}),e[29]=h,e[30]=u,e[31]=p,e[32]=g,e[33]=d):d=e[33],d}function T(m){const[e,t]=m;return s.jsxs(w.Fragment,{children:[s.jsx("dt",{className:"text-muted-foreground",children:e}),s.jsx("dd",{className:"break-all",children:t})]},e)}const I={query:"bg-sky-500",transaction:"bg-sky-300",cache_event:"bg-violet-500",outgoing_request:"bg-orange-500",mail:"bg-pink-500",broadcast:"bg-teal-500",enqueued_job:"bg-amber-500",view_render:"bg-emerald-500",storage_op:"bg-indigo-500",exception:"bg-red-500",log:"bg-neutral-400"};function J(m){const e=_.c(9),{entries:t}=m;if(t.length===0)return null;let o;e[0]!==t.length?(o=s.jsxs("div",{className:"label-caps border-b px-3 py-1.5",children:["Breadcrumbs · ",t.length," events before the exception"]}),e[0]=t.length,e[1]=o):o=e[1];let l;e[2]!==t?(l=t.map(U),e[2]=t,e[3]=l):l=e[3];let r;e[4]!==l?(r=s.jsx("ol",{className:"divide-y",children:l}),e[4]=l,e[5]=r):r=e[5];let n;return e[6]!==o||e[7]!==r?(n=s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[o,r]}),e[6]=o,e[7]=r,e[8]=n):n=e[8],n}function U(m){return s.jsxs("li",{className:"grid grid-cols-[3.5rem_5rem_1fr_4rem] items-center gap-2 px-3 py-1 font-mono text-xs",children:[s.jsxs("span",{className:"text-muted-foreground tabular-nums",children:["+",m.offset.toFixed(1),"ms"]}),s.jsxs("span",{className:"text-muted-foreground flex items-center gap-1.5 truncate",children:[s.jsx("span",{className:N("inline-block size-1.5 shrink-0 rounded-full",I[m.type]??"bg-neutral-500")}),m.type.replace("_"," ")]}),s.jsx("span",{className:"truncate",children:m.label}),s.jsx("span",{className:"text-muted-foreground text-right tabular-nums",children:m.duration!=null?`${m.duration.toFixed(1)}ms`:""})]},`${m.type}-${m.id}`)}const D={console:"bg-red-500",click:"bg-violet-500",navigate:"bg-sky-500"};function K(m){const e=_.c(12),{crumbs:t}=m;if(t.length===0)return null;const o=t[0].at;let l;e[0]!==t.length?(l=s.jsxs("div",{className:"label-caps border-b px-3 py-1.5",children:["Breadcrumbs · ",t.length," events before the error"]}),e[0]=t.length,e[1]=l):l=e[1];let r;if(e[2]!==t||e[3]!==o){let c;e[5]!==o?(c=(a,b)=>s.jsxs("li",{className:"grid grid-cols-[3.5rem_5rem_1fr] items-center gap-2 px-3 py-1 font-mono text-xs",children:[s.jsxs("span",{className:"text-muted-foreground tabular-nums",children:["+",((a.at-o)/1e3).toFixed(1),"s"]}),s.jsxs("span",{className:"text-muted-foreground flex items-center gap-1.5 truncate",children:[s.jsx("span",{className:N("inline-block size-1.5 shrink-0 rounded-full",D[a.kind]??"bg-neutral-500")}),a.kind]}),s.jsx("span",{className:"truncate",children:a.text})]},`${a.at}-${a.kind}-${b}`),e[5]=o,e[6]=c):c=e[6],r=t.map(c),e[2]=t,e[3]=o,e[4]=r}else r=e[4];let n;e[7]!==r?(n=s.jsx("ol",{className:"divide-y",children:r}),e[7]=r,e[8]=n):n=e[8];let x;return e[9]!==l||e[10]!==n?(x=s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[l,n]}),e[9]=l,e[10]=n,e[11]=x):x=e[11],x}export{J as B,Z as C,G as E,A as S,K as a};
|
data/public/railwatch/assets/{google-sign-in-button-B5as2ps1.js → google-sign-in-button-2_zgbgVy.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,j as t}from"./inertia-
|
|
1
|
+
import{c as h,j as t}from"./inertia-Cuyz2ZHO.js";import{B as p}from"./app-wordmark-BA_60AVb.js";import{S as x}from"./separator-D5I0UCB5.js";function j(m){const e=h.c(6);let n,s,i,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1Z",fill:"#4285F4"}),s=t.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.99.66-2.25 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.85A11 11 0 0 0 12 23Z",fill:"#34A853"}),i=t.jsx("path",{d:"M5.84 14.09A6.6 6.6 0 0 1 5.5 12c0-.73.13-1.43.34-2.09V7.06H2.18A11 11 0 0 0 1 12c0 1.77.42 3.45 1.18 4.94l3.66-2.85Z",fill:"#FBBC05"}),a=t.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1a11 11 0 0 0-9.82 6.06l3.66 2.85C6.71 7.31 9.14 5.38 12 5.38Z",fill:"#EA4335"}),e[0]=n,e[1]=s,e[2]=i,e[3]=a):(n=e[0],s=e[1],i=e[2],a=e[3]);let l;return e[4]!==m?(l=t.jsxs("svg",{viewBox:"0 0 24 24",...m,children:[n,s,i,a]}),e[4]=m,e[5]=l):l=e[5],l}function v(){return typeof document>"u"?"":document.querySelector('meta[name="csrf-token"]')?.getAttribute("content")??""}function _(m){const e=h.c(14),{label:n,reauthenticateFor:s,separated:i}=m,a=i===void 0?!0:i;let l;e[0]!==a?(l=a&&t.jsxs("div",{className:"relative text-center text-sm",children:[t.jsx(x,{className:"absolute top-1/2"}),t.jsx("span",{className:"bg-background text-muted-foreground relative px-2",children:"Or"})]}),e[0]=a,e[1]=l):l=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("input",{type:"hidden",name:"authenticity_token",value:v()}),e[2]=u):u=e[2];let o;e[3]!==s?(o=s&&t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"hidden",name:"reauthenticate",value:s}),t.jsx("input",{type:"hidden",name:"prompt",value:"select_account"})]}),e[3]=s,e[4]=o):o=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(j,{className:"size-4"}),e[5]=d):d=e[5];let c;e[6]!==n?(c=t.jsxs(p,{type:"submit",variant:"outline",className:"w-full",children:[d,n]}),e[6]=n,e[7]=c):c=e[7];let r;e[8]!==o||e[9]!==c?(r=t.jsxs("form",{method:"post",action:"/auth/google_oauth2",children:[u,o,c]}),e[8]=o,e[9]=c,e[10]=r):r=e[10];let f;return e[11]!==l||e[12]!==r?(f=t.jsxs("div",{className:"grid gap-6",children:[l,r]}),e[11]=l,e[12]=r,e[13]=f):f=e[13],f}export{_ as G};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as le,u as ae,j as r,e as oe,ab as ne,a1 as ce,L as me}from"./inertia-
|
|
1
|
+
import{c as le,u as ae,j as r,e as oe,ab as ne,a1 as ce,L as me}from"./inertia-Cuyz2ZHO.js";import{C as de}from"./chart-hover-CfoZUY4J.js";import{V as ue,D as fe}from"./chart-panel-CC49WTQL.js";import{D as he}from"./data-table-CzKTEE-O.js";import{E as xe}from"./empty-state-CW4wclK_.js";import{F as pe}from"./filter-bar-CJDjWFib.js";import{P as ye,E as ge}from"./env-layout-Kz7wks1x.js";import{u as ve,P as be}from"./percentile-picker-CeQgllxD.js";import{S as ke,Z as je}from"./app-layout-Zc0v-hYh.js";import{S as M}from"./sort-header-mEJUM3Av.js";import{S as _e}from"./sparkline-cell-Dwg7awwh.js";import{m as re,c as Z,p as qe}from"./format-B9SDkrWj.js";import"./series-chart-gnrzhmM6.js";import"./chart-DWh7l8yM.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./checkbox-DPkLUiwM.js";import"./arrow-up-CLQ-7heQ.js";function it(t){const e=le.c(95),{environment:se,window:a}=ae().props,{percentile:o}=ve(),n=se.application_id,c=se.id;let O;e[0]!==n||e[1]!==c||e[2]!==t.dir||e[3]!==t.q||e[4]!==t.sort||e[5]!==a?(O=s=>oe.visit(ne(n,c,{window:a,sort:t.sort,dir:t.dir,q:t.q||void 0,...s}),{preserveState:!0}),e[0]=n,e[1]=c,e[2]=t.dir,e[3]=t.q,e[4]=t.sort,e[5]=a,e[6]=O):O=e[6];const m=O;let H;e[7]!==t.dir||e[8]!==t.sort||e[9]!==m?(H=s=>m({sort:s,dir:t.sort===s&&t.dir==="desc"?"asc":"desc"}),e[7]=t.dir,e[8]=t.sort,e[9]=m,e[10]=H):H=e[10];const i=H;let N;e[11]!==n||e[12]!==c||e[13]!==a?(N=s=>ce(n,c,s.group_hash,{window:a}),e[11]=n,e[12]=c,e[13]=a,e[14]=N):N=e[14];const l=N;let D;e[15]===Symbol.for("react.memo_cache_sentinel")?(D=r.jsx(ye,{title:"Requests",description:"Every route your app served, with error rates and percentiles.",actions:r.jsxs(r.Fragment,{children:[r.jsx(ke,{page:"requests"}),r.jsx(be,{})]})}),e[15]=D):D=e[15];let L;e[16]===Symbol.for("react.memo_cache_sentinel")?(L={key:"method",label:"Method",options:["GET","POST","PUT","PATCH","DELETE"]},e[16]=L):L=e[16];let A;e[17]===Symbol.for("react.memo_cache_sentinel")?(A=[L,{key:"status",label:"Status",options:["2xx","3xx","4xx","5xx"]},{key:"route",label:"Route"}],e[17]=A):A=e[17];let d;e[18]!==m?(d=s=>m({q:s||void 0}),e[18]=m,e[19]=d):d=e[19];let u;e[20]!==t.q||e[21]!==d?(u=r.jsx(pe,{value:t.q,fields:A,onChange:d,placeholder:"method:GET status:5xx route:/widgets"}),e[20]=t.q,e[21]=d,e[22]=u):u=e[22];let f;e[23]!==t.deploys||e[24]!==t.series?(f=r.jsx(ue,{label:"Requests",data:t.series,deploys:t.deploys}),e[23]=t.deploys,e[24]=t.series,e[25]=f):f=e[25];let h;e[26]!==t.deploys||e[27]!==t.series||e[28]!==o?(h=r.jsx(fe,{label:"Latency",data:t.series,deploys:t.deploys,percentile:o}),e[26]=t.deploys,e[27]=t.series,e[28]=o,e[29]=h):h=e[29];let x;e[30]!==f||e[31]!==h?(x=r.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[f,h]}),e[30]=f,e[31]=h,e[32]=x):x=e[32];let F;e[33]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx(xe,{icon:je,title:"No requests in this window",description:"HTTP requests to your app appear here as they're reported."}),e[33]=F):F=e[33];let p;e[34]!==l?(p={onOpen:(s,ie)=>ie?.newTab?globalThis.window.open(l(s),"_blank"):oe.visit(l(s))},e[34]=l,e[35]=p):p=e[35];let y;e[36]!==l?(y={key:"name",header:"Route",grow:!0,cell:s=>r.jsx(me,{className:"font-mono text-xs hover:underline",href:l(s),title:s.name,children:s.name})},e[36]=l,e[37]=y):y=e[37];let K,V,B;e[38]===Symbol.for("react.memo_cache_sentinel")?(K={key:"trend",hideOnMobile:!0,header:"Trend",cell:Me},V={key:"ok",hideOnMobile:!0,header:"2xx",align:"right",cell:Re},B={key:"4xx",hideOnMobile:!0,header:"4xx",align:"right",cell:Ce},e[38]=K,e[39]=V,e[40]=B):(K=e[38],V=e[39],B=e[40]);const $=t.sort==="errors",z=t.dir==="asc"?"asc":"desc";let g;e[41]!==i?(g=()=>i("errors"),e[41]=i,e[42]=g):g=e[42];let v;e[43]!==$||e[44]!==z||e[45]!==g?(v={key:"5xx",header:r.jsx(M,{label:"5xx",active:$,dir:z,onClick:g}),align:"right",cell:Te},e[43]=$,e[44]=z,e[45]=g,e[46]=v):v=e[46];const I=t.sort==="count",J=t.dir==="asc"?"asc":"desc";let b;e[47]!==i?(b=()=>i("count"),e[47]=i,e[48]=b):b=e[48];let k;e[49]!==I||e[50]!==J||e[51]!==b?(k={key:"total",header:r.jsx(M,{label:"Total",active:I,dir:J,onClick:b}),align:"right",cell:we},e[49]=I,e[50]=J,e[51]=b,e[52]=k):k=e[52];let G;e[53]===Symbol.for("react.memo_cache_sentinel")?(G={key:"err",hideOnMobile:!0,header:"Error %",align:"right",cell:Ee},e[53]=G):G=e[53];const Q=t.sort==="avg",W=t.dir==="asc"?"asc":"desc";let j;e[54]!==i?(j=()=>i("avg"),e[54]=i,e[55]=j):j=e[55];let _;e[56]!==Q||e[57]!==W||e[58]!==j?(_={key:"avg",hideOnMobile:!0,header:r.jsx(M,{label:"Avg",active:Q,dir:W,onClick:j}),align:"right",cell:Se},e[56]=Q,e[57]=W,e[58]=j,e[59]=_):_=e[59];const X=t.sort===o,Y=t.dir==="asc"?"asc":"desc";let q;e[60]!==o||e[61]!==i?(q=()=>i(o),e[60]=o,e[61]=i,e[62]=q):q=e[62];let P;e[63]!==o||e[64]!==X||e[65]!==Y||e[66]!==q?(P=r.jsx(M,{label:o,active:X,dir:Y,onClick:q}),e[63]=o,e[64]=X,e[65]=Y,e[66]=q,e[67]=P):P=e[67];let S;e[68]!==o?(S=s=>r.jsx("span",{className:"font-semibold",children:re(s[o])}),e[68]=o,e[69]=S):S=e[69];let E;e[70]!==o||e[71]!==P||e[72]!==S?(E={key:o,header:P,align:"right",cell:S},e[70]=o,e[71]=P,e[72]=S,e[73]=E):E=e[73];const ee=t.sort==="max",te=t.dir==="asc"?"asc":"desc";let w;e[74]!==i?(w=()=>i("max"),e[74]=i,e[75]=w):w=e[75];let T;e[76]!==ee||e[77]!==te||e[78]!==w?(T={key:"max",hideOnMobile:!0,header:r.jsx(M,{label:"Max",active:ee,dir:te,onClick:w}),align:"right",cell:Pe},e[76]=ee,e[77]=te,e[78]=w,e[79]=T):T=e[79];let C;e[80]!==y||e[81]!==v||e[82]!==k||e[83]!==_||e[84]!==E||e[85]!==T?(C=[y,K,V,B,v,k,G,_,E,T],e[80]=y,e[81]=v,e[82]=k,e[83]=_,e[84]=E,e[85]=T,e[86]=C):C=e[86];let R;e[87]!==t.routes||e[88]!==p||e[89]!==C?(R=r.jsx(he,{rows:t.routes,rowKey:He,empty:F,hoverKey:Oe,keyboardNav:p,columns:C}),e[87]=t.routes,e[88]=p,e[89]=C,e[90]=R):R=e[90];let U;return e[91]!==x||e[92]!==R||e[93]!==u?(U=r.jsx(ge,{title:"Requests",children:r.jsxs(de,{children:[D,u,x,R]})}),e[91]=x,e[92]=R,e[93]=u,e[94]=U):U=e[94],U}function Pe(t){return re(t.max)}function Se(t){return re(t.avg)}function Ee(t){return qe(t.errors,t.count)}function we(t){return Z(t.count)}function Te(t){return r.jsx("span",{className:t.errors?"text-destructive":"",children:Z(t.errors)})}function Ce(t){return Z(t.client_errors)}function Re(t){return Z(t.count-t.errors-t.client_errors)}function Me(t){return r.jsx(_e,{data:t.sparkline,hoverKey:t.group_hash})}function Oe(t){return t.group_hash}function He(t){return t.group_hash}export{it as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ee,u as re,j as r,e as X,ai as Y,L as ie}from"./inertia-
|
|
1
|
+
import{c as ee,u as re,j as r,e as X,ai as Y,L as ie}from"./inertia-Cuyz2ZHO.js";import{D as ne}from"./chart-panel-CC49WTQL.js";import{D as Z}from"./data-table-CzKTEE-O.js";import{F as se}from"./filter-bar-CJDjWFib.js";import{P as oe,E as le}from"./env-layout-Kz7wks1x.js";import{u as ae,P as ce}from"./percentile-picker-CeQgllxD.js";import{S as F}from"./sort-header-mEJUM3Av.js";import{S as de}from"./sparkline-cell-Dwg7awwh.js";import{B as me}from"./badge-DRae8XwK.js";import{e as ue}from"./execution-path-FAuIzOXB.js";import{m as H,c as fe,w as he}from"./format-B9SDkrWj.js";import"./series-chart-gnrzhmM6.js";import"./chart-hover-CfoZUY4J.js";import"./chart-DWh7l8yM.js";import"./empty-state-CW4wclK_.js";import"./app-wordmark-BA_60AVb.js";import"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";import"./use-live-DMTuhKfB.js";import"./segmented-BeIe4uqk.js";import"./arrow-up-CLQ-7heQ.js";function te(t){const e=ee.c(3),{kind:l}=t;if(!l)return null;const o=l==="partial"?"secondary":l==="layout"?"outline":"default";let i;return e[0]!==l||e[1]!==o?(i=r.jsx(me,{variant:o,className:"font-mono",children:l}),e[0]=l,e[1]=o,e[2]=i):i=e[2],i}function Ze(t){const e=ee.c(81),{environment:l,window:o}=re().props,{percentile:i}=ae(),a=l.application_id,c=l.id;let q;e[0]!==a||e[1]!==c||e[2]!==t.dir||e[3]!==t.q||e[4]!==t.sort||e[5]!==o?(q=s=>X.visit(Y(a,c,{window:o,sort:s,dir:t.sort===s&&t.dir==="desc"?"asc":"desc",q:t.q||void 0}),{preserveState:!0}),e[0]=a,e[1]=c,e[2]=t.dir,e[3]=t.q,e[4]=t.sort,e[5]=o,e[6]=q):q=e[6];const n=q;let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=r.jsx(oe,{title:"View renders",description:"Every template your app rendered, grouped by identifier.",actions:r.jsx(ce,{})}),e[7]=M):M=e[7];let d;e[8]!==t.series||e[9]!==i?(d=r.jsx(ne,{label:"Duration",data:t.series,percentile:i}),e[8]=t.series,e[9]=i,e[10]=d):d=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=[{key:"template",label:"Template"}],e[11]=C):C=e[11];let m;e[12]!==a||e[13]!==c||e[14]!==o?(m=s=>X.visit(Y(a,c,{window:o,q:s||void 0}),{preserveState:!0}),e[12]=a,e[13]=c,e[14]=o,e[15]=m):m=e[15];let u;e[16]!==t.q||e[17]!==m?(u=r.jsx(se,{value:t.q,fields:C,onChange:m,placeholder:"template:widgets/_row"}),e[16]=t.q,e[17]=m,e[18]=u):u=e[18];let O,D,E;e[19]===Symbol.for("react.memo_cache_sentinel")?(O={key:"id",header:"Template",grow:!0,cell:Ne},D={key:"kind",hideOnMobile:!0,header:"Kind",cell:Se},E={key:"trend",hideOnMobile:!0,header:"Trend",cell:be},e[19]=O,e[20]=D,e[21]=E):(O=e[19],D=e[20],E=e[21]);const $=t.sort==="count",A=t.dir==="asc"?"asc":"desc";let f;e[22]!==n?(f=()=>n("count"),e[22]=n,e[23]=f):f=e[23];let h;e[24]!==A||e[25]!==f||e[26]!==$?(h={key:"n",header:r.jsx(F,{label:"Count",active:$,dir:A,onClick:f}),align:"right",cell:ve},e[24]=A,e[25]=f,e[26]=$,e[27]=h):h=e[27];const W=t.sort==="avg",z=t.dir==="asc"?"asc":"desc";let x;e[28]!==n?(x=()=>n("avg"),e[28]=n,e[29]=x):x=e[29];let p;e[30]!==W||e[31]!==z||e[32]!==x?(p={key:"avg",hideOnMobile:!0,header:r.jsx(F,{label:"Avg",active:W,dir:z,onClick:x}),align:"right",cell:je},e[30]=W,e[31]=z,e[32]=x,e[33]=p):p=e[33];const G=t.sort===i,J=t.dir==="asc"?"asc":"desc";let y;e[34]!==i||e[35]!==n?(y=()=>n(i),e[34]=i,e[35]=n,e[36]=y):y=e[36];let _;e[37]!==i||e[38]!==G||e[39]!==J||e[40]!==y?(_=r.jsx(F,{label:i,active:G,dir:J,onClick:y}),e[37]=i,e[38]=G,e[39]=J,e[40]=y,e[41]=_):_=e[41];let k;e[42]!==i?(k=s=>r.jsx("span",{className:"font-semibold",children:H(s[i],2)}),e[42]=i,e[43]=k):k=e[43];let g;e[44]!==i||e[45]!==_||e[46]!==k?(g={key:i,header:_,align:"right",cell:k},e[44]=i,e[45]=_,e[46]=k,e[47]=g):g=e[47];const Q=t.sort==="max",U=t.dir==="asc"?"asc":"desc";let w;e[48]!==n?(w=()=>n("max"),e[48]=n,e[49]=w):w=e[49];let j;e[50]!==Q||e[51]!==U||e[52]!==w?(j={key:"max",hideOnMobile:!0,header:r.jsx(F,{label:"Max",active:Q,dir:U,onClick:w}),align:"right",cell:we},e[50]=Q,e[51]=U,e[52]=w,e[53]=j):j=e[53];let v;e[54]!==h||e[55]!==p||e[56]!==g||e[57]!==j?(v=[O,D,E,h,p,g,j],e[54]=h,e[55]=p,e[56]=g,e[57]=j,e[58]=v):v=e[58];let b;e[59]!==t.renders||e[60]!==v?(b=r.jsx(Z,{rows:t.renders,rowKey:Pe,empty:"No view renders in this window.",columns:v}),e[59]=t.renders,e[60]=v,e[61]=b):b=e[61];let B;e[62]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx("h2",{className:"text-sm font-semibold",children:"Slowest recent renders"}),e[62]=B):B=e[62];let K,T,I,L;e[63]===Symbol.for("react.memo_cache_sentinel")?(K={key:"when",header:"When",className:"w-40",cell:ke},T={key:"id",header:"Template",grow:!0,cell:_e},I={key:"kind",hideOnMobile:!0,header:"Kind",cell:ye},L={key:"layout",hideOnMobile:!0,header:"Layout",cell:pe},e[63]=K,e[64]=T,e[65]=I,e[66]=L):(K=e[63],T=e[64],I=e[65],L=e[66]);let S;e[67]!==a||e[68]!==c?(S={key:"in",hideOnMobile:!0,header:"In",cell:s=>s.execution_id?r.jsx(ie,{className:"font-mono text-xs hover:underline",href:ue({applicationId:a,environmentId:c,source:s.execution_source,executionId:s.execution_id}),children:s.execution_preview}):r.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})},e[67]=a,e[68]=c,e[69]=S):S=e[69];let R;e[70]===Symbol.for("react.memo_cache_sentinel")?(R={key:"d",header:"Duration",align:"right",cell:xe},e[70]=R):R=e[70];let N;e[71]!==S?(N=[K,T,I,L,S,R],e[71]=S,e[72]=N):N=e[72];let P;e[73]!==t.slowest||e[74]!==N?(P=r.jsx(Z,{rows:t.slowest,rowKey:ge,columns:N}),e[73]=t.slowest,e[74]=N,e[75]=P):P=e[75];let V;return e[76]!==d||e[77]!==b||e[78]!==P||e[79]!==u?(V=r.jsxs(le,{title:"View renders",children:[M,d,u,b,B,P]}),e[76]=d,e[77]=b,e[78]=P,e[79]=u,e[80]=V):V=e[80],V}function xe(t){return H(t.duration,2)}function pe(t){return r.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.layout??""})}function ye(t){return r.jsx(te,{kind:t.kind})}function _e(t){return r.jsx("span",{className:"font-mono text-xs",children:t.identifier})}function ke(t){return r.jsx("span",{className:"text-xs tabular-nums",children:he(t.occurred_at)})}function ge(t){return t.id}function we(t){return H(t.max,2)}function je(t){return H(t.avg,2)}function ve(t){return fe(t.count)}function be(t){return r.jsx(de,{data:t.sparkline})}function Se(t){return r.jsx(te,{kind:t.kind})}function Ne(t){return r.jsx("span",{className:"font-mono text-xs",children:t.name})}function Pe(t){return t.group_hash}export{Ze as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,j as s,C as R,aa as Y}from"./inertia-CqnzqPVD.js";import{C as S}from"./chart-panel-CONkZcn9.js";import{D}from"./data-table-CVKR2wkq.js";import{E as T}from"./empty-state-Bn48Gplm.js";import{C as G,X as I,Y as W,a as X,b as J,c as V}from"./chart-C4k7Ub9W.js";import{A as Z,a as ee}from"./series-chart-D6upsrSn.js";import{E as te,P as se}from"./env-layout-CKLL8Ds7.js";import{a as re,S as k}from"./stat-BNEfE8X1.js";import{C as P,b as $,c as B,a as F}from"./card-DqdEEKcJ.js";import{c as j,m as O,b as ae,a as z,w as H}from"./format-B9SDkrWj.js";import{r as E}from"./app-layout-2xAKndVD.js";import"./chart-hover-2yZG3w2u.js";import"./badge-Dv7I-ebP.js";import"./app-wordmark-Bt6XqURo.js";import"./use-live-DWwLg1Nj.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./segmented-C4oWE73o.js";import"./label-1nSzpSB6.js";import"./arrow-up-EmePsTKP.js";import"./checkbox-DKbThbxr.js";const K={fontSize:10,fontFamily:"var(--font-mono)"},ne=1440*60*1e3;function le(t){return(t.length>1?new Date(t[t.length-1].t).getTime()-new Date(t[0].t).getTime():0)>2*ne?a=>new Date(a).toLocaleDateString(void 0,{month:"short",day:"numeric"}):a=>new Date(a).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function A(t){return new Date(t).toLocaleString(void 0,{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"})}function C(t){const e=L.c(28),{label:a,data:r,format:l,color:f,className:n}=t,i=f===void 0?"var(--primary)":f,b=n===void 0?"h-32":n;let c;e[0]!==i||e[1]!==a?(c={value:{label:a,color:i}},e[0]=i,e[1]=a,e[2]=c):c=e[2];const g=c;let m;e[3]!==r?(m=le(r),e[3]=r,e[4]=m):m=e[4];const o=m,d=`${b} w-full`;let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(G,{vertical:!1,strokeDasharray:"2 4"}),e[5]=h):h=e[5];let u;e[6]!==o?(u=s.jsx(I,{dataKey:"t",tickFormatter:o,tickLine:!1,axisLine:!1,minTickGap:40,tick:K}),e[6]=o,e[7]=u):u=e[7];let p;e[8]!==l?(p=s.jsx(W,{width:44,tickLine:!1,axisLine:!1,tick:K,tickFormatter:q=>l(Number(q))}),e[8]=l,e[9]=p):p=e[9];let x;e[10]!==l||e[11]!==a?(x=s.jsx(X,{content:s.jsx(J,{labelFormatter:oe,formatter:q=>[l(Number(q)),a]})}),e[10]=l,e[11]=a,e[12]=x):x=e[12];let w;e[13]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Z,{dataKey:"value",stroke:"var(--color-value)",fill:"var(--color-value)",fillOpacity:.15,strokeWidth:1.75,isAnimationActive:!1}),e[13]=w):w=e[13];let v;e[14]!==r||e[15]!==u||e[16]!==p||e[17]!==x?(v=s.jsxs(ee,{data:r,children:[h,u,p,x,w]}),e[14]=r,e[15]=u,e[16]=p,e[17]=x,e[18]=v):v=e[18];let y;e[19]!==g||e[20]!==v||e[21]!==d?(y=s.jsx(V,{config:g,className:d,children:v}),e[19]=g,e[20]=v,e[21]=d,e[22]=y):y=e[22];let _;e[23]!==r?(_=r.length>0&&s.jsxs("div",{className:"text-muted-foreground mt-1 flex justify-between font-mono text-[10px]",children:[s.jsx("span",{children:A(r[0].t)}),s.jsx("span",{children:A(r[r.length-1].t)})]}),e[23]=r,e[24]=_):_=e[24];let N;return e[25]!==y||e[26]!==_?(N=s.jsxs("div",{children:[y,_]}),e[25]=y,e[26]=_,e[27]=N):N=e[27],N}function oe(t){return A(String(t))}function U(t){const e=L.c(21),{busy:a,max:r,className:l}=t;if(!r){let x;return e[0]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("span",{className:"text-muted-foreground",children:"–"}),e[0]=x):x=e[0],x}const f=Math.min(1,(a??0)/r);let n;e[1]!==l?(n=R("flex items-center gap-1.5",l),e[1]=l,e[2]=n):n=e[2];const i=a??0,b=f>=.9?"bg-danger":f>=.7?"bg-warning":"bg-live";let c;e[3]!==b?(c=R("absolute inset-y-0 left-0 rounded-full",b),e[3]=b,e[4]=c):c=e[4];const g=`${Math.max(4,f*100)}%`;let m;e[5]!==g?(m={width:g},e[5]=g,e[6]=m):m=e[6];let o;e[7]!==c||e[8]!==m?(o=s.jsx("span",{className:c,style:m}),e[7]=c,e[8]=m,e[9]=o):o=e[9];let d;e[10]!==r||e[11]!==i||e[12]!==o?(d=s.jsx("span",{role:"meter","aria-label":"Utilisation","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":r,className:"bg-muted-foreground/25 relative h-1.5 w-10 shrink-0 overflow-hidden rounded-full",children:o}),e[10]=r,e[11]=i,e[12]=o,e[13]=d):d=e[13];const h=a??0;let u;e[14]!==r||e[15]!==h?(u=s.jsxs("span",{className:"font-mono tabular-nums",children:[h,"/",r]}),e[14]=r,e[15]=h,e[16]=u):u=e[16];let p;return e[17]!==n||e[18]!==u||e[19]!==d?(p=s.jsxs("span",{className:n,children:[d,u]}),e[17]=n,e[18]=u,e[19]=d,e[20]=p):p=e[20],p}const M=t=>`${t.toFixed(0)}%`;function ie(t){return t.reduce((e,a)=>e+(a??0),0)}function Q(t){return t.reduce((e,a)=>Math.max(e,a??0),0)}function it(t){const e=L.c(27);let a;if(e[0]!==t.samples){const h=t.samples.flatMap(Fe);a=h.length?h.reduce(Be,0)/h.length:0,e[0]=t.samples,e[1]=a}else a=e[1];const r=a;let l,f,n,i,b;if(e[2]!==t.queues||e[3]!==t.samples||e[4]!==t.series||e[5]!==t.silent_servers||e[6]!==r){const h=ie(t.samples.map($e)),u=Q(t.samples.map(Pe)),p=Q(t.samples.map(Re)),x=t.samples.length>0||t.series.length>0;l=te,f="Processes",e[12]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(se,{title:"Processes",description:"What every web and worker process is doing right now: thread pools, socket backlog, queue depth, and the boots behind them."}),e[12]=n):n=e[12],e[13]!==t.silent_servers?(i=t.silent_servers.length>0&&s.jsxs(P,{className:"border-warning/40",children:[s.jsx($,{children:s.jsxs(B,{className:"flex items-center gap-2",children:[s.jsx(Y,{className:"text-warning size-4"}),t.silent_servers.length===1?"1 expected host is silent":`${t.silent_servers.length} expected hosts are silent`]})}),s.jsxs(F,{className:"space-y-2",children:[s.jsx("div",{className:"flex flex-wrap gap-1.5",children:t.silent_servers.map(Le)}),s.jsx("p",{className:"text-muted-foreground text-xs",children:"No health sample or execution from these hosts in the last 10 minutes. Expected hosts come from your Kamal post-deploy hook, or from the environment settings if you set them by hand."})]})]}),e[13]=t.silent_servers,e[14]=i):i=e[14],b=x?s.jsxs(s.Fragment,{children:[s.jsxs(re,{children:[s.jsx(k,{label:"Live processes",value:t.samples.length}),s.jsx(k,{label:"Thread utilisation",value:M(r),tone:r>=90?"destructive":r>=70?"warning":void 0,hint:"averaged across live processes"}),s.jsx(k,{label:"Backlog",value:j(h)}),s.jsx(k,{label:"Queue depth",value:j(u)}),s.jsx(k,{label:"Oldest job",value:O(p)})]}),s.jsx(D,{rows:t.samples,rowKey:Ae,empty:s.jsx(T,{title:"No process reported in the last 10 minutes",description:"Health samples are older than the live window."}),columns:[{key:"server",header:"Server",cell:Oe},{key:"role",header:"Role",cell:Me},{key:"pid",hideOnMobile:!0,header:"PID",align:"right",cell:Te},{key:"threads",header:"Threads",cell:De},{key:"pool",hideOnMobile:!0,header:"DB pool",cell:qe},{key:"mem",hideOnMobile:!0,header:"Memory",align:"right",cell:Ce},{key:"seen",header:"Last sample",align:"right",cell:Se}]}),t.queues.length>0&&s.jsxs(P,{children:[s.jsx($,{children:s.jsx(B,{children:"Queue depth"})}),s.jsx(F,{children:s.jsx(D,{rows:t.queues,rowKey:Ne,columns:[{key:"q",header:"Queue",cell:we},{key:"d",header:"Ready jobs",align:"right",cell:ke}]})})]}),s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[s.jsx(S,{label:"Thread utilisation",value:M(r),children:s.jsx(C,{label:"Utilisation",format:M,data:t.series.map(_e)})}),s.jsx(S,{label:"Backlog",value:j(h),children:s.jsx(C,{label:"Backlog",color:"var(--warning)",format:j,data:t.series.map(ye)})}),s.jsx(S,{label:"Queue depth",value:j(u),children:s.jsx(C,{label:"Ready jobs",format:j,data:t.series.map(ve)})}),s.jsx(S,{label:"Oldest job",value:O(p),children:s.jsx(C,{label:"Oldest job",color:"var(--danger)",format:je,data:t.series.map(ge)})})]})]}):s.jsx(T,{icon:E,title:"No health samples yet",description:"The gem reports thread pool, backlog and queue health every 15s from each web and worker process."}),e[2]=t.queues,e[3]=t.samples,e[4]=t.series,e[5]=t.silent_servers,e[6]=r,e[7]=l,e[8]=f,e[9]=n,e[10]=i,e[11]=b}else l=e[7],f=e[8],n=e[9],i=e[10],b=e[11];let c;e[15]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("h2",{className:"text-sm font-semibold",children:"Process boots"}),e[15]=c):c=e[15];let g,m;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(T,{icon:E,title:"No process has booted with Railwatch yet",description:"Server processes report here once they boot with the gem installed."}),m=[{key:"b",header:"Booted",cell:xe},{key:"s",header:"Server",cell:fe},{key:"r",header:"Role",cell:pe},{key:"pid",hideOnMobile:!0,header:"PID",align:"right",cell:he},{key:"d",header:"Deploy",cell:de},{key:"v",hideOnMobile:!0,header:"Ruby / Rails / Railwatch",cell:ue},{key:"ad",hideOnMobile:!0,header:"DB / queue / cache",cell:me},{key:"boot",hideOnMobile:!0,header:"Boot",align:"right",cell:ce}],e[16]=g,e[17]=m):(g=e[16],m=e[17]);let o;e[18]!==t.processes?(o=s.jsx(D,{rows:t.processes,rowKey:be,empty:g,columns:m}),e[18]=t.processes,e[19]=o):o=e[19];let d;return e[20]!==l||e[21]!==f||e[22]!==n||e[23]!==i||e[24]!==b||e[25]!==o?(d=s.jsxs(l,{title:f,children:[n,i,b,c,o]}),e[20]=l,e[21]=f,e[22]=n,e[23]=i,e[24]=b,e[25]=o,e[26]=d):d=e[26],d}function ce(t){return t.boot_seconds?`${t.boot_seconds.toFixed(1)}s`:"–"}function me(t){return s.jsxs("span",{className:"font-mono text-xs",children:[t.detail.database_adapter," / ",t.detail.queue_adapter," /"," ",t.detail.cache_store?.replace("ActiveSupport::Cache::","")]})}function ue(t){return s.jsxs("span",{className:"font-mono text-xs",children:[t.ruby_version," / ",t.rails_version," / ",t.railwatch_version]})}function de(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy?.slice(0,12)})}function he(t){return t.pid}function pe(t){return t.role}function fe(t){return s.jsx("span",{className:"font-mono text-xs",children:t.server})}function xe(t){return s.jsx("span",{className:"text-xs",title:H(t.booted_at),children:z(t.booted_at)})}function be(t){return t.id}function ge(t){return{t:t.t,value:t.queue_latency}}function je(t){return O(t)}function ve(t){return{t:t.t,value:t.queue_depth}}function ye(t){return{t:t.t,value:t.backlog}}function _e(t){return{t:t.t,value:t.utilisation}}function ke(t){return j(t.depth)}function we(t){return t.queue}function Ne(t){return t.queue}function Se(t){return s.jsx("span",{title:H(t.sampled_at),children:z(t.sampled_at)})}function Ce(t){return ae(t.memory)}function qe(t){return s.jsx(U,{busy:t.pool_busy,max:t.pool_size})}function De(t){return s.jsx(U,{busy:t.threads_busy,max:t.threads_max})}function Te(t){return t.pid}function Me(t){return t.role}function Oe(t){return s.jsx("span",{className:"font-mono text-xs",children:t.server})}function Ae(t){return t.id}function Le(t){return s.jsx("span",{className:"border-warning/40 bg-warning/10 text-warning rounded-sm border px-1.5 font-mono text-[11px]",children:t},t)}function Re(t){return t.queue_latency}function Pe(t){return t.queue_depth}function $e(t){return t.backlog}function Be(t,e){return t+e}function Fe(t){return t.threads_max?[(t.threads_busy??0)/t.threads_max*100]:[]}export{it as default};
|
|
1
|
+
import{c as L,j as s,C as R,aa as Y}from"./inertia-Cuyz2ZHO.js";import{C as S}from"./chart-panel-CC49WTQL.js";import{D}from"./data-table-CzKTEE-O.js";import{E as T}from"./empty-state-CW4wclK_.js";import{C as G,X as I,Y as W,a as X,b as J,c as V}from"./chart-DWh7l8yM.js";import{A as Z,a as ee}from"./series-chart-gnrzhmM6.js";import{E as te,P as se}from"./env-layout-Kz7wks1x.js";import{a as re,S as k}from"./stat-ZtxGU8lE.js";import{C as P,b as $,c as B,a as F}from"./card-DPjFKfen.js";import{c as j,m as O,b as ae,a as z,w as H}from"./format-B9SDkrWj.js";import{r as E}from"./app-layout-Zc0v-hYh.js";import"./chart-hover-CfoZUY4J.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./arrow-up-CLQ-7heQ.js";import"./checkbox-DPkLUiwM.js";const K={fontSize:10,fontFamily:"var(--font-mono)"},ne=1440*60*1e3;function le(t){return(t.length>1?new Date(t[t.length-1].t).getTime()-new Date(t[0].t).getTime():0)>2*ne?a=>new Date(a).toLocaleDateString(void 0,{month:"short",day:"numeric"}):a=>new Date(a).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function A(t){return new Date(t).toLocaleString(void 0,{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"})}function C(t){const e=L.c(28),{label:a,data:r,format:l,color:f,className:n}=t,i=f===void 0?"var(--primary)":f,b=n===void 0?"h-32":n;let c;e[0]!==i||e[1]!==a?(c={value:{label:a,color:i}},e[0]=i,e[1]=a,e[2]=c):c=e[2];const g=c;let m;e[3]!==r?(m=le(r),e[3]=r,e[4]=m):m=e[4];const o=m,d=`${b} w-full`;let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(G,{vertical:!1,strokeDasharray:"2 4"}),e[5]=h):h=e[5];let u;e[6]!==o?(u=s.jsx(I,{dataKey:"t",tickFormatter:o,tickLine:!1,axisLine:!1,minTickGap:40,tick:K}),e[6]=o,e[7]=u):u=e[7];let p;e[8]!==l?(p=s.jsx(W,{width:44,tickLine:!1,axisLine:!1,tick:K,tickFormatter:q=>l(Number(q))}),e[8]=l,e[9]=p):p=e[9];let x;e[10]!==l||e[11]!==a?(x=s.jsx(X,{content:s.jsx(J,{labelFormatter:oe,formatter:q=>[l(Number(q)),a]})}),e[10]=l,e[11]=a,e[12]=x):x=e[12];let w;e[13]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Z,{dataKey:"value",stroke:"var(--color-value)",fill:"var(--color-value)",fillOpacity:.15,strokeWidth:1.75,isAnimationActive:!1}),e[13]=w):w=e[13];let v;e[14]!==r||e[15]!==u||e[16]!==p||e[17]!==x?(v=s.jsxs(ee,{data:r,children:[h,u,p,x,w]}),e[14]=r,e[15]=u,e[16]=p,e[17]=x,e[18]=v):v=e[18];let y;e[19]!==g||e[20]!==v||e[21]!==d?(y=s.jsx(V,{config:g,className:d,children:v}),e[19]=g,e[20]=v,e[21]=d,e[22]=y):y=e[22];let _;e[23]!==r?(_=r.length>0&&s.jsxs("div",{className:"text-muted-foreground mt-1 flex justify-between font-mono text-[10px]",children:[s.jsx("span",{children:A(r[0].t)}),s.jsx("span",{children:A(r[r.length-1].t)})]}),e[23]=r,e[24]=_):_=e[24];let N;return e[25]!==y||e[26]!==_?(N=s.jsxs("div",{children:[y,_]}),e[25]=y,e[26]=_,e[27]=N):N=e[27],N}function oe(t){return A(String(t))}function U(t){const e=L.c(21),{busy:a,max:r,className:l}=t;if(!r){let x;return e[0]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("span",{className:"text-muted-foreground",children:"–"}),e[0]=x):x=e[0],x}const f=Math.min(1,(a??0)/r);let n;e[1]!==l?(n=R("flex items-center gap-1.5",l),e[1]=l,e[2]=n):n=e[2];const i=a??0,b=f>=.9?"bg-danger":f>=.7?"bg-warning":"bg-live";let c;e[3]!==b?(c=R("absolute inset-y-0 left-0 rounded-full",b),e[3]=b,e[4]=c):c=e[4];const g=`${Math.max(4,f*100)}%`;let m;e[5]!==g?(m={width:g},e[5]=g,e[6]=m):m=e[6];let o;e[7]!==c||e[8]!==m?(o=s.jsx("span",{className:c,style:m}),e[7]=c,e[8]=m,e[9]=o):o=e[9];let d;e[10]!==r||e[11]!==i||e[12]!==o?(d=s.jsx("span",{role:"meter","aria-label":"Utilisation","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":r,className:"bg-muted-foreground/25 relative h-1.5 w-10 shrink-0 overflow-hidden rounded-full",children:o}),e[10]=r,e[11]=i,e[12]=o,e[13]=d):d=e[13];const h=a??0;let u;e[14]!==r||e[15]!==h?(u=s.jsxs("span",{className:"font-mono tabular-nums",children:[h,"/",r]}),e[14]=r,e[15]=h,e[16]=u):u=e[16];let p;return e[17]!==n||e[18]!==u||e[19]!==d?(p=s.jsxs("span",{className:n,children:[d,u]}),e[17]=n,e[18]=u,e[19]=d,e[20]=p):p=e[20],p}const M=t=>`${t.toFixed(0)}%`;function ie(t){return t.reduce((e,a)=>e+(a??0),0)}function Q(t){return t.reduce((e,a)=>Math.max(e,a??0),0)}function it(t){const e=L.c(27);let a;if(e[0]!==t.samples){const h=t.samples.flatMap(Fe);a=h.length?h.reduce(Be,0)/h.length:0,e[0]=t.samples,e[1]=a}else a=e[1];const r=a;let l,f,n,i,b;if(e[2]!==t.queues||e[3]!==t.samples||e[4]!==t.series||e[5]!==t.silent_servers||e[6]!==r){const h=ie(t.samples.map($e)),u=Q(t.samples.map(Pe)),p=Q(t.samples.map(Re)),x=t.samples.length>0||t.series.length>0;l=te,f="Processes",e[12]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(se,{title:"Processes",description:"What every web and worker process is doing right now: thread pools, socket backlog, queue depth, and the boots behind them."}),e[12]=n):n=e[12],e[13]!==t.silent_servers?(i=t.silent_servers.length>0&&s.jsxs(P,{className:"border-warning/40",children:[s.jsx($,{children:s.jsxs(B,{className:"flex items-center gap-2",children:[s.jsx(Y,{className:"text-warning size-4"}),t.silent_servers.length===1?"1 expected host is silent":`${t.silent_servers.length} expected hosts are silent`]})}),s.jsxs(F,{className:"space-y-2",children:[s.jsx("div",{className:"flex flex-wrap gap-1.5",children:t.silent_servers.map(Le)}),s.jsx("p",{className:"text-muted-foreground text-xs",children:"No health sample or execution from these hosts in the last 10 minutes. Expected hosts come from your Kamal post-deploy hook, or from the environment settings if you set them by hand."})]})]}),e[13]=t.silent_servers,e[14]=i):i=e[14],b=x?s.jsxs(s.Fragment,{children:[s.jsxs(re,{children:[s.jsx(k,{label:"Live processes",value:t.samples.length}),s.jsx(k,{label:"Thread utilisation",value:M(r),tone:r>=90?"destructive":r>=70?"warning":void 0,hint:"averaged across live processes"}),s.jsx(k,{label:"Backlog",value:j(h)}),s.jsx(k,{label:"Queue depth",value:j(u)}),s.jsx(k,{label:"Oldest job",value:O(p)})]}),s.jsx(D,{rows:t.samples,rowKey:Ae,empty:s.jsx(T,{title:"No process reported in the last 10 minutes",description:"Health samples are older than the live window."}),columns:[{key:"server",header:"Server",cell:Oe},{key:"role",header:"Role",cell:Me},{key:"pid",hideOnMobile:!0,header:"PID",align:"right",cell:Te},{key:"threads",header:"Threads",cell:De},{key:"pool",hideOnMobile:!0,header:"DB pool",cell:qe},{key:"mem",hideOnMobile:!0,header:"Memory",align:"right",cell:Ce},{key:"seen",header:"Last sample",align:"right",cell:Se}]}),t.queues.length>0&&s.jsxs(P,{children:[s.jsx($,{children:s.jsx(B,{children:"Queue depth"})}),s.jsx(F,{children:s.jsx(D,{rows:t.queues,rowKey:Ne,columns:[{key:"q",header:"Queue",cell:we},{key:"d",header:"Ready jobs",align:"right",cell:ke}]})})]}),s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[s.jsx(S,{label:"Thread utilisation",value:M(r),children:s.jsx(C,{label:"Utilisation",format:M,data:t.series.map(_e)})}),s.jsx(S,{label:"Backlog",value:j(h),children:s.jsx(C,{label:"Backlog",color:"var(--warning)",format:j,data:t.series.map(ye)})}),s.jsx(S,{label:"Queue depth",value:j(u),children:s.jsx(C,{label:"Ready jobs",format:j,data:t.series.map(ve)})}),s.jsx(S,{label:"Oldest job",value:O(p),children:s.jsx(C,{label:"Oldest job",color:"var(--danger)",format:je,data:t.series.map(ge)})})]})]}):s.jsx(T,{icon:E,title:"No health samples yet",description:"The gem reports thread pool, backlog and queue health every 15s from each web and worker process."}),e[2]=t.queues,e[3]=t.samples,e[4]=t.series,e[5]=t.silent_servers,e[6]=r,e[7]=l,e[8]=f,e[9]=n,e[10]=i,e[11]=b}else l=e[7],f=e[8],n=e[9],i=e[10],b=e[11];let c;e[15]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("h2",{className:"text-sm font-semibold",children:"Process boots"}),e[15]=c):c=e[15];let g,m;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(T,{icon:E,title:"No process has booted with Railwatch yet",description:"Server processes report here once they boot with the gem installed."}),m=[{key:"b",header:"Booted",cell:xe},{key:"s",header:"Server",cell:fe},{key:"r",header:"Role",cell:pe},{key:"pid",hideOnMobile:!0,header:"PID",align:"right",cell:he},{key:"d",header:"Deploy",cell:de},{key:"v",hideOnMobile:!0,header:"Ruby / Rails / Railwatch",cell:ue},{key:"ad",hideOnMobile:!0,header:"DB / queue / cache",cell:me},{key:"boot",hideOnMobile:!0,header:"Boot",align:"right",cell:ce}],e[16]=g,e[17]=m):(g=e[16],m=e[17]);let o;e[18]!==t.processes?(o=s.jsx(D,{rows:t.processes,rowKey:be,empty:g,columns:m}),e[18]=t.processes,e[19]=o):o=e[19];let d;return e[20]!==l||e[21]!==f||e[22]!==n||e[23]!==i||e[24]!==b||e[25]!==o?(d=s.jsxs(l,{title:f,children:[n,i,b,c,o]}),e[20]=l,e[21]=f,e[22]=n,e[23]=i,e[24]=b,e[25]=o,e[26]=d):d=e[26],d}function ce(t){return t.boot_seconds?`${t.boot_seconds.toFixed(1)}s`:"–"}function me(t){return s.jsxs("span",{className:"font-mono text-xs",children:[t.detail.database_adapter," / ",t.detail.queue_adapter," /"," ",t.detail.cache_store?.replace("ActiveSupport::Cache::","")]})}function ue(t){return s.jsxs("span",{className:"font-mono text-xs",children:[t.ruby_version," / ",t.rails_version," / ",t.railwatch_version]})}function de(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy?.slice(0,12)})}function he(t){return t.pid}function pe(t){return t.role}function fe(t){return s.jsx("span",{className:"font-mono text-xs",children:t.server})}function xe(t){return s.jsx("span",{className:"text-xs",title:H(t.booted_at),children:z(t.booted_at)})}function be(t){return t.id}function ge(t){return{t:t.t,value:t.queue_latency}}function je(t){return O(t)}function ve(t){return{t:t.t,value:t.queue_depth}}function ye(t){return{t:t.t,value:t.backlog}}function _e(t){return{t:t.t,value:t.utilisation}}function ke(t){return j(t.depth)}function we(t){return t.queue}function Ne(t){return t.queue}function Se(t){return s.jsx("span",{title:H(t.sampled_at),children:z(t.sampled_at)})}function Ce(t){return ae(t.memory)}function qe(t){return s.jsx(U,{busy:t.pool_busy,max:t.pool_size})}function De(t){return s.jsx(U,{busy:t.threads_busy,max:t.threads_max})}function Te(t){return t.pid}function Me(t){return t.role}function Oe(t){return s.jsx("span",{className:"font-mono text-xs",children:t.server})}function Ae(t){return t.id}function Le(t){return s.jsx("span",{className:"border-warning/40 bg-warning/10 text-warning rounded-sm border px-1.5 font-mono text-[11px]",children:t},t)}function Re(t){return t.queue_latency}function Pe(t){return t.queue_depth}function $e(t){return t.backlog}function Be(t,e){return t+e}function Fe(t){return t.threads_max?[(t.threads_busy??0)/t.threads_max*100]:[]}export{it as default};
|