railwatch 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -2
  3. data/app/channels/railwatch/environment_channel.rb +17 -4
  4. data/app/models/railwatch/ingest/batch.rb +1 -1
  5. data/app/models/railwatch/ingest/mapper.rb +1 -3
  6. data/docs/embedded.md +17 -6
  7. data/docs/getting-started.md +0 -2
  8. data/docs/source-maps.md +1 -3
  9. data/lib/generators/railwatch/install/install_generator.rb +0 -8
  10. data/lib/railwatch/backtrace.rb +12 -2
  11. data/lib/railwatch/configuration.rb +6 -5
  12. data/lib/railwatch/engine.rb +2 -2
  13. data/lib/railwatch/export/client.rb +10 -3
  14. data/lib/railwatch/reporter.rb +2 -12
  15. data/lib/railwatch/source_maps.rb +13 -1
  16. data/lib/railwatch/spec_helper.rb +1 -1
  17. data/lib/railwatch/transport/http.rb +14 -5
  18. data/lib/railwatch/version.rb +1 -1
  19. data/public/railwatch/assets/{app-layout-CdJ5Qjms.js → app-layout-B5Fcdwfz.js} +1 -1
  20. data/public/railwatch/assets/{app-wordmark-B-0yZiDb.js → app-wordmark-1SRllgHv.js} +1 -1
  21. data/public/railwatch/assets/{appearance-CU28GBf1.js → appearance-DbwahDrc.js} +1 -1
  22. data/public/railwatch/assets/{arrow-up-DY1fS0tD.js → arrow-up-DwKQcab4.js} +1 -1
  23. data/public/railwatch/assets/{auth-layout-C3FKuUJz.js → auth-layout-DXfxXAN_.js} +1 -1
  24. data/public/railwatch/assets/{badge-DKvItdlb.js → badge-CApjyWcg.js} +1 -1
  25. data/public/railwatch/assets/{braces-Bse5Gh3K.js → braces-kGSgxWnS.js} +1 -1
  26. data/public/railwatch/assets/{card-C9j_ffR9.js → card-BaJ8kNkp.js} +1 -1
  27. data/public/railwatch/assets/{chart-Cmh6JEww.js → chart-Xnrz1Nqw.js} +1 -1
  28. data/public/railwatch/assets/{chart-hover-B0SjyWFy.js → chart-hover-XYPNE2CX.js} +1 -1
  29. data/public/railwatch/assets/{chart-panel-DKNxoauI.js → chart-panel-BYk68mJJ.js} +1 -1
  30. data/public/railwatch/assets/{checkbox-BsBkRg5n.js → checkbox-Bf41R8W6.js} +1 -1
  31. data/public/railwatch/assets/{code-C879Qwgg.js → code-a-9sh36A.js} +1 -1
  32. data/public/railwatch/assets/{copy-block-DtO_3esq.js → copy-block-zykZWQym.js} +1 -1
  33. data/public/railwatch/assets/{copy-id-SeLCKsW2.js → copy-id-b6CW5ESL.js} +1 -1
  34. data/public/railwatch/assets/{cursor-load-more-OpHbe_kE.js → cursor-load-more-0cHzbTPT.js} +1 -1
  35. data/public/railwatch/assets/{data-table-Bc3ZRnpb.js → data-table-IvA7xvrK.js} +1 -1
  36. data/public/railwatch/assets/{edit-DDvf9mkq.js → edit-7lmf3k80.js} +1 -1
  37. data/public/railwatch/assets/{edit-BMpgcQhU.js → edit-DTtRV1fO.js} +1 -1
  38. data/public/railwatch/assets/{edit-CTD1jSWh.js → edit-ZKE15r-F.js} +1 -1
  39. data/public/railwatch/assets/{empty-state-CkPROZB0.js → empty-state-BFTnQ2oT.js} +1 -1
  40. data/public/railwatch/assets/{env-layout-aGQgTZRg.js → env-layout-erSDpIXg.js} +1 -1
  41. data/public/railwatch/assets/{execution-path-BX5NcXUZ.js → execution-path-Di5uUHi-.js} +1 -1
  42. data/public/railwatch/assets/{filter-bar-C0O2rJVr.js → filter-bar-Btm__gQi.js} +1 -1
  43. data/public/railwatch/assets/{flamegraph-Vj4QSAlT.js → flamegraph-C-mZdqa7.js} +1 -1
  44. data/public/railwatch/assets/{frames-CTiGwm4E.js → frames-KZBsjg6-.js} +1 -1
  45. data/public/railwatch/assets/{google-sign-in-button-BzogBGeF.js → google-sign-in-button-DJRoD72g.js} +1 -1
  46. data/public/railwatch/assets/{index-chS28dvS.js → index-9LL_C3eG.js} +1 -1
  47. data/public/railwatch/assets/{index-C__S10ze.js → index-B-bSm1jB.js} +1 -1
  48. data/public/railwatch/assets/{index-Dy7Wg880.js → index-B0VXzXYG.js} +1 -1
  49. data/public/railwatch/assets/{index-B-kuWp-m.js → index-BAkZNNEh.js} +1 -1
  50. data/public/railwatch/assets/{index-CPQKOQxV.js → index-BWSyQRZI.js} +1 -1
  51. data/public/railwatch/assets/{index-FgpFDA1Z.js → index-Bjw4sTXU.js} +1 -1
  52. data/public/railwatch/assets/{index-D9cV-IQr.js → index-Bo8hrjbs.js} +1 -1
  53. data/public/railwatch/assets/{index-BCLvKVhP.js → index-BoTOVM0v.js} +1 -1
  54. data/public/railwatch/assets/{index-y2c8xKzI.js → index-Bot7kHMA.js} +1 -1
  55. data/public/railwatch/assets/{index-DbyRgbzQ.js → index-BsrCnQqg.js} +1 -1
  56. data/public/railwatch/assets/{index-BKgAm-w2.js → index-BtSlLmkg.js} +1 -1
  57. data/public/railwatch/assets/{index-DigUOHQ8.js → index-CAzQkw-h.js} +1 -1
  58. data/public/railwatch/assets/{index-ChQ1_u8u.js → index-CBJZQgHA.js} +1 -1
  59. data/public/railwatch/assets/{index-uuKg6Zqn.js → index-CIUl9POV.js} +1 -1
  60. data/public/railwatch/assets/{index-DepurF6s.js → index-CP6jrrPT.js} +1 -1
  61. data/public/railwatch/assets/{index-Bvy021Vv.js → index-CU6yhEyt.js} +1 -1
  62. data/public/railwatch/assets/{index-B2_QluAw.js → index-CX8Br7m9.js} +1 -1
  63. data/public/railwatch/assets/{index-Dcxd_H-U.js → index-CYYmZpZu.js} +1 -1
  64. data/public/railwatch/assets/{index-DxuDLoTc.js → index-CeqMDByC.js} +1 -1
  65. data/public/railwatch/assets/{index-D3Axxkk2.js → index-Cj3_jD1E.js} +1 -1
  66. data/public/railwatch/assets/{index-D5YVcrqR.js → index-D4968-TC.js} +1 -1
  67. data/public/railwatch/assets/{index-DkgImCOg.js → index-DAEzO_vq.js} +1 -1
  68. data/public/railwatch/assets/{index-CtT4T6kp.js → index-DBTxQw77.js} +1 -1
  69. data/public/railwatch/assets/{index-CCLMaY9k.js → index-DCAho97K.js} +1 -1
  70. data/public/railwatch/assets/{index-jSEU_Yp7.js → index-DEfu_YvU.js} +1 -1
  71. data/public/railwatch/assets/{index-CY6lbwAC.js → index-DXUwhSCQ.js} +1 -1
  72. data/public/railwatch/assets/{index-Wb_U2_hz.js → index-DcItJxa5.js} +1 -1
  73. data/public/railwatch/assets/{index-CD4HIHq0.js → index-EGU__DOB.js} +1 -1
  74. data/public/railwatch/assets/{index-LaTKDe0-.js → index-HCJmFcZu.js} +1 -1
  75. data/public/railwatch/assets/{index-BRN_bXV_.js → index-P_e_cI0O.js} +1 -1
  76. data/public/railwatch/assets/{index-Ble4RoA3.js → index-QyHE9WsU.js} +1 -1
  77. data/public/railwatch/assets/{index-B69Iad2U.js → index-Z1c4nFL0.js} +1 -1
  78. data/public/railwatch/assets/{index-z2YfKBJl.js → index-kNhZPLVj.js} +1 -1
  79. data/public/railwatch/assets/{index-CxU1Jj35.js → index-uHBVO8Lh.js} +1 -1
  80. data/public/railwatch/assets/{index-Dep2XomH.js → index-wOj5j0KC.js} +1 -1
  81. data/public/railwatch/assets/{inertia-CgBdJDaE.js → inertia-Degv_G9N.js} +2 -2
  82. data/public/railwatch/assets/{input-error-DfpIawjl.js → input-error-C6SqO_iU.js} +1 -1
  83. data/public/railwatch/assets/{json-viewer-CH7nEIUs.js → json-viewer-DcQIxT86.js} +1 -1
  84. data/public/railwatch/assets/{klass-BTg1l2AO.js → klass-WgQEfWpo.js} +1 -1
  85. data/public/railwatch/assets/{label-BWgQzHCO.js → label-B_vK19tR.js} +1 -1
  86. data/public/railwatch/assets/{layout-neknbxn-.js → layout-C8q7GUlZ.js} +1 -1
  87. data/public/railwatch/assets/{live-dot-Bejk0a5o.js → live-dot-DaXEbkXo.js} +1 -1
  88. data/public/railwatch/assets/{nav-C1M8941-.js → nav-BnD5XArZ.js} +1 -1
  89. data/public/railwatch/assets/{new-BnGIYM37.js → new-BL9OqXHe.js} +1 -1
  90. data/public/railwatch/assets/{new-DGYPcz7w.js → new-BhRnQn4w.js} +1 -1
  91. data/public/railwatch/assets/{new-DElC-JCS.js → new-BqP0NhOF.js} +1 -1
  92. data/public/railwatch/assets/{new-bBwawsEg.js → new-CWP3wtwt.js} +1 -1
  93. data/public/railwatch/assets/{new-B8CzyoMu.js → new-DIjwu2jF.js} +1 -1
  94. data/public/railwatch/assets/{new-DLgCLBiW.js → new-uxMnBtoY.js} +1 -1
  95. data/public/railwatch/assets/{onboarding-CW0jUhHT.js → onboarding-C_Y3xTsH.js} +1 -1
  96. data/public/railwatch/assets/{origin-identity-bJMxeEHB.js → origin-identity-CNhOnfBa.js} +1 -1
  97. data/public/railwatch/assets/{percentile-picker-DLAnTKY3.js → percentile-picker-BujVEhP6.js} +1 -1
  98. data/public/railwatch/assets/{relative-time-BHbJh8HW.js → relative-time-6CoKr1lN.js} +1 -1
  99. data/public/railwatch/assets/{release-health-2O1GRclB.js → release-health-1Qzc_XhT.js} +1 -1
  100. data/public/railwatch/assets/{route-DSw8aIZa.js → route-xqgYjOwJ.js} +1 -1
  101. data/public/railwatch/assets/{segmented-Dg8CES94.js → segmented-CVKq2Xpa.js} +1 -1
  102. data/public/railwatch/assets/{select-CqKpvI98.js → select-CsmSXsJ4.js} +1 -1
  103. data/public/railwatch/assets/{separator-BOp2LHw3.js → separator-CrM10Oot.js} +1 -1
  104. data/public/railwatch/assets/{series-chart-COEtj3PY.js → series-chart-D33UhdG2.js} +1 -1
  105. data/public/railwatch/assets/{show-DrhEDGPn.js → show-8H9WAGav.js} +1 -1
  106. data/public/railwatch/assets/{show-dRDz8OVu.js → show-9jDeBNpc.js} +1 -1
  107. data/public/railwatch/assets/{show-C-xpDkoj.js → show-B0nHy31L.js} +1 -1
  108. data/public/railwatch/assets/{show-B7Zqjlqc.js → show-B3izvRdU.js} +1 -1
  109. data/public/railwatch/assets/{show-CGv85sRo.js → show-B7NhcWgp.js} +1 -1
  110. data/public/railwatch/assets/{show-Zr2xV4OD.js → show-BM-E2iYc.js} +1 -1
  111. data/public/railwatch/assets/{show-B40560ZT.js → show-BlNR3ZOZ.js} +1 -1
  112. data/public/railwatch/assets/{show-C9Y1To9_.js → show-CJMeX75E.js} +1 -1
  113. data/public/railwatch/assets/{show-BAxMoNvw.js → show-CMisHNAI.js} +1 -1
  114. data/public/railwatch/assets/{show-HjjzcKRq.js → show-CQ4Ze-Un.js} +1 -1
  115. data/public/railwatch/assets/{show-CPh-7VGL.js → show-CvNV23gH.js} +1 -1
  116. data/public/railwatch/assets/{show-DqtE0LI6.js → show-DMZlwzL_.js} +1 -1
  117. data/public/railwatch/assets/{show-C_9M2nLy.js → show-DUwQlohF.js} +1 -1
  118. data/public/railwatch/assets/{show-DFlP1ktM.js → show-DZwcZZrz.js} +1 -1
  119. data/public/railwatch/assets/{show-B_QVoqKE.js → show-ixK2r2f1.js} +1 -1
  120. data/public/railwatch/assets/{show-pbkvGRER.js → show-rysBbvt-.js} +1 -1
  121. data/public/railwatch/assets/{show-Bbs1i46N.js → show-zxVxhUel.js} +1 -1
  122. data/public/railwatch/assets/{sort-header-DBxQ_KFX.js → sort-header-CKj_7G3U.js} +1 -1
  123. data/public/railwatch/assets/{sparkline-cell-BbfXw3kA.js → sparkline-cell-Ckg29yVq.js} +1 -1
  124. data/public/railwatch/assets/{stat-Cd8QaTGw.js → stat-TxvoBiC8.js} +1 -1
  125. data/public/railwatch/assets/{status-badge-Ys4b0fcG.js → status-badge-5NCVJHjo.js} +1 -1
  126. data/public/railwatch/assets/{tenant-path-CQWzaNYR.js → tenant-path-B5ZRK4x3.js} +1 -1
  127. data/public/railwatch/assets/{text-link-BY8FY-CJ.js → text-link-BPllRj0F.js} +1 -1
  128. data/public/railwatch/assets/{textarea-Bq2jjOMC.js → textarea-DtD5yZp_.js} +1 -1
  129. data/public/railwatch/assets/{timeline-SxStCFO2.js → timeline-DZz5ZnHN.js} +1 -1
  130. data/public/railwatch/assets/{transition-CQ9yvfPa.js → transition-Ds6Cakuc.js} +1 -1
  131. data/public/railwatch/assets/{use-clipboard-3hTXU91g.js → use-clipboard-BLjjYH8V.js} +1 -1
  132. data/public/railwatch/assets/{use-live-LwJStJvD.js → use-live-GKze1mNC.js} +1 -1
  133. data/public/railwatch/manifest.json +1285 -1285
  134. metadata +115 -115
@@ -1 +1 @@
1
- import{r as i,j as u,c as L,C as H}from"./inertia-CgBdJDaE.js";import{u as U}from"./app-wordmark-B-0yZiDb.js";import{c as G,d as K,a as j,u as X,P as $,C as J}from"./index-B2_QluAw.js";import{P as S}from"./index-Dy7Wg880.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
+ import{r as i,j as u,c as L,C as H}from"./inertia-Degv_G9N.js";import{u as U}from"./app-wordmark-1SRllgHv.js";import{c as G,d as K,a as j,u as X,P as $,C as J}from"./index-CX8Br7m9.js";import{P as S}from"./index-B0VXzXYG.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-CgBdJDaE.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
+ import{c as l,C as a,j as i}from"./inertia-Degv_G9N.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-CgBdJDaE.js";import{B as E}from"./app-wordmark-B-0yZiDb.js";import{u as N,C as b}from"./use-clipboard-3hTXU91g.js";import{C as v}from"./index-B2_QluAw.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
+ import{c as h,r as j,C as y,j as l}from"./inertia-Degv_G9N.js";import{B as E}from"./app-wordmark-1SRllgHv.js";import{u as N,C as b}from"./use-clipboard-BLjjYH8V.js";import{C as v}from"./index-CX8Br7m9.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-CgBdJDaE.js";import{B as j}from"./app-wordmark-B-0yZiDb.js";import{u as E,C as N}from"./use-clipboard-3hTXU91g.js";import{C as b}from"./index-B2_QluAw.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
+ import{c as d,r as y,C as h,j as m}from"./inertia-Degv_G9N.js";import{B as j}from"./app-wordmark-1SRllgHv.js";import{u as E,C as N}from"./use-clipboard-BLjjYH8V.js";import{C as b}from"./index-CX8Br7m9.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-CgBdJDaE.js";import{B as p}from"./app-wordmark-B-0yZiDb.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
+ import{c as m,r as x,e as f,j as u}from"./inertia-Degv_G9N.js";import{B as p}from"./app-wordmark-1SRllgHv.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-CgBdJDaE.js";import{u as C}from"./chart-hover-B0SjyWFy.js";import{E as D}from"./empty-state-CkPROZB0.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
+ import{c as j,C as h,j as o,r as d}from"./inertia-Degv_G9N.js";import{u as C}from"./chart-hover-XYPNE2CX.js";import{E as D}from"./empty-state-BFTnQ2oT.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 +1 @@
1
- import{c as h,R as j,j as e,H as _,F as g}from"./inertia-CgBdJDaE.js";import{I as p}from"./input-error-DfpIawjl.js";import{B as y}from"./app-wordmark-B-0yZiDb.js";import{L as w,I as f}from"./label-BWgQzHCO.js";import{S as b,A as N}from"./auth-layout-C3FKuUJz.js";import"./index-Dy7Wg880.js";import"./copy-DaQMJWoT.js";import"./empty-state-CkPROZB0.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
+ import{c as h,R as j,j as e,H as _,F as g}from"./inertia-Degv_G9N.js";import{I as p}from"./input-error-C6SqO_iU.js";import{B as y}from"./app-wordmark-1SRllgHv.js";import{L as w,I as f}from"./label-B_vK19tR.js";import{S as b,A as N}from"./auth-layout-DXfxXAN_.js";import"./index-B0VXzXYG.js";import"./copy-DaQMJWoT.js";import"./empty-state-BFTnQ2oT.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-CgBdJDaE.js";import{I as y}from"./input-error-DfpIawjl.js";import{B as N}from"./app-wordmark-B-0yZiDb.js";import{b as A,c as w,C as F,a as C}from"./card-C9j_ffR9.js";import{L as u,I as g}from"./label-BWgQzHCO.js";import{A as H}from"./app-layout-CdJ5Qjms.js";import"./index-Dy7Wg880.js";import"./live-dot-Bejk0a5o.js";import"./index-B2_QluAw.js";import"./checkbox-BsBkRg5n.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
+ import{c as L,g as b,j as s,H as V,F as k,e as D}from"./inertia-Degv_G9N.js";import{I as y}from"./input-error-C6SqO_iU.js";import{B as N}from"./app-wordmark-1SRllgHv.js";import{b as A,c as w,C as F,a as C}from"./card-BaJ8kNkp.js";import{L as u,I as g}from"./label-B_vK19tR.js";import{A as H}from"./app-layout-B5Fcdwfz.js";import"./index-B0VXzXYG.js";import"./live-dot-DaXEbkXo.js";import"./index-CX8Br7m9.js";import"./checkbox-Bf41R8W6.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,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-CgBdJDaE.js";import{I as E}from"./input-error-DfpIawjl.js";import{R as W}from"./relative-time-BHbJh8HW.js";import{B}from"./app-wordmark-B-0yZiDb.js";import{b as k,c as A,C as T,a as C}from"./card-C9j_ffR9.js";import{L as S,I}from"./label-BWgQzHCO.js";import{T as M}from"./textarea-Bq2jjOMC.js";import{A as $}from"./app-layout-CdJ5Qjms.js";import"./live-dot-Bejk0a5o.js";import"./index-Dy7Wg880.js";import"./index-B2_QluAw.js";import"./format-B9SDkrWj.js";import"./checkbox-BsBkRg5n.js";const q=`# Nothing to add under Kamal: the gem already stamps records with
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-Degv_G9N.js";import{I as E}from"./input-error-C6SqO_iU.js";import{R as W}from"./relative-time-6CoKr1lN.js";import{B}from"./app-wordmark-1SRllgHv.js";import{b as k,c as A,C as T,a as C}from"./card-BaJ8kNkp.js";import{L as S,I}from"./label-B_vK19tR.js";import{T as M}from"./textarea-DtD5yZp_.js";import{A as $}from"./app-layout-B5Fcdwfz.js";import"./live-dot-DaXEbkXo.js";import"./index-B0VXzXYG.js";import"./index-CX8Br7m9.js";import"./format-B9SDkrWj.js";import"./checkbox-Bf41R8W6.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 y,C as N,r as b,j as t}from"./inertia-CgBdJDaE.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
+ import{c as y,C as N,r as b,j as t}from"./inertia-Degv_G9N.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 s,c as N,C as re,u as q,e as ae,g as ve,o as ge,H as he}from"./inertia-CgBdJDaE.js";import{b as xe}from"./badge-DKvItdlb.js";import{t as Pe,v as Ce,w as we,x as be,A as _e}from"./app-layout-CdJ5Qjms.js";import{u as je}from"./use-live-LwJStJvD.js";import{d as le,R as Se,u as Oe,A as Re,P as ye,h as De,g as Ie,f as Ne,F as Te,e as Ae,C as Ee,t as ke,L as $e}from"./live-dot-Bejk0a5o.js";import{a as J}from"./format-B9SDkrWj.js";import{a as te,S as Fe}from"./segmented-Dg8CES94.js";import{u as ie,a as Me,B as oe}from"./app-wordmark-B-0yZiDb.js";import{L as ne,I as se}from"./label-BWgQzHCO.js";import{c as Le,u as He,a as Z,P as ce}from"./index-B2_QluAw.js";import{P as ze}from"./index-Dy7Wg880.js";var We=Object.defineProperty,T=(t,e)=>We(t,"name",{value:e,configurable:!0}),Q="Popover",[de,St]=Le(Q,[le]),X=le(),[Ge,W]=de(Q),Ue=T(t=>{const{__scopePopover:e,children:o,open:n,defaultOpen:a,onOpenChange:c,modal:i=!1}=t,r=X(e),l=P.useRef(null),[p,d]=P.useState(!1),[m,f]=He({prop:n,defaultProp:a??!1,onChange:c,caller:Q});return s.jsx(Se,{...r,children:s.jsx(Ge,{scope:e,contentId:Oe(),triggerRef:l,open:m,onOpenChange:f,onOpenToggle:P.useCallback(()=>f(u=>!u),[f]),hasCustomAnchor:p,onCustomAnchorAdd:P.useCallback(()=>d(!0),[]),onCustomAnchorRemove:P.useCallback(()=>d(!1),[]),modal:i,children:o})})},"Popover"),Ve="PopoverTrigger",Be=P.forwardRef(T(function(e,o){const{__scopePopover:n,...a}=e,c=W(Ve,n),i=X(n),r=ie(o,c.triggerRef),l=s.jsx(ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":ee(c.open),...a,ref:r,onClick:Z(e.onClick,c.onOpenToggle)});return c.hasCustomAnchor?l:s.jsx(Re,{asChild:!0,...i,children:l})},"PopoverTrigger")),pe="PopoverPortal",[Ke,Ye]=de(pe,{forceMount:void 0}),Ze=T(t=>{const{__scopePopover:e,forceMount:o,children:n,container:a}=t,c=W(pe,e);return s.jsx(Ke,{scope:e,forceMount:o,children:s.jsx(ce,{present:o||c.open,children:s.jsx(ye,{asChild:!0,container:a,children:n})})})},"PopoverPortal"),G="PopoverContent",qe=P.forwardRef(T(function(e,o){const n=Ye(G,e.__scopePopover),{forceMount:a=n.forceMount,...c}=e,i=W(G,e.__scopePopover);return s.jsx(ce,{present:a||i.open,children:i.modal?s.jsx(Qe,{...c,ref:o}):s.jsx(Xe,{...c,ref:o})})},"PopoverContent")),Je=Me("PopoverContent.RemoveScroll"),Qe=P.forwardRef(T(function(e,o){const n=W(G,e.__scopePopover),a=P.useRef(null),c=ie(o,a),i=P.useRef(!1);return P.useEffect(()=>{const r=a.current;if(r)return De(r)},[]),s.jsx(Ie,{as:Je,allowPinchZoom:!0,children:s.jsx(ue,{...e,ref:c,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,r=>{r.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,r=>{const l=r.detail.originalEvent,p=l.button===0&&l.ctrlKey===!0,d=l.button===2||p;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),Xe=P.forwardRef(T(function(e,o){const n=W(G,e.__scopePopover),a=P.useRef(!1),c=P.useRef(!1);return s.jsx(ue,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(a.current||n.triggerRef.current?.focus(),i.preventDefault()),a.current=!1,c.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(a.current=!0,i.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const r=i.target;n.triggerRef.current?.contains(r)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&c.current&&i.preventDefault()}})},"PopoverContentNonModal")),ue=P.forwardRef(T(function(e,o){const{__scopePopover:n,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:i,disableOutsidePointerEvents:r,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:m,...f}=e,u=W(G,n),v=X(n);return Ne(),s.jsx(Te,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:c,onUnmountAutoFocus:i,children:s.jsx(Ae,{asChild:!0,disableOutsidePointerEvents:r,onInteractOutside:m,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:d,onDismiss:()=>u.onOpenChange(!1),deferPointerDownOutside:!0,children:s.jsx(Ee,{"data-state":ee(u.open),role:"dialog",id:u.contentId,...v,...f,ref:o,style:{...f.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 ee(t){return t?"open":"closed"}T(ee,"getState");var et=Ue,tt=Be,ot=Ze,nt=qe;function st(t){const e=N.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let n;return e[2]!==o?(n=s.jsx(et,{"data-slot":"popover",...o}),e[2]=o,e[3]=n):n=e[3],n}function rt(t){const e=N.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let n;return e[2]!==o?(n=s.jsx(tt,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=n):n=e[3],n}function at(t){const e=N.c(12);let o,n,a,c;e[0]!==t?({className:o,align:a,sideOffset:c,...n}=t,e[0]=t,e[1]=o,e[2]=n,e[3]=a,e[4]=c):(o=e[1],n=e[2],a=e[3],c=e[4]);const i=a===void 0?"center":a,r=c===void 0?4:c;let l;e[5]!==o?(l=re("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]=l):l=e[6];let p;return e[7]!==i||e[8]!==n||e[9]!==r||e[10]!==l?(p=s.jsx(ot,{children:s.jsx(nt,{"data-slot":"popover-content",align:i,sideOffset:r,className:l,...n})}),e[7]=i,e[8]=n,e[9]=r,e[10]=l,e[11]=p):p=e[11],p}function lt(t){const e=N.c(46),{environmentId:o}=t;ke();const{environment:n,telemetry_freshness:a}=q().props,{connected:c,lastEventAt:i,lastRefreshedAt:r,paused:l,setPaused:p}=je(o);let d;e[0]!==n?.last_seen_at||e[1]!==a?.received_at||e[2]!==i?(d=i!=null?new Date(i).toISOString():a?.received_at??n?.last_seen_at??null,e[0]=n?.last_seen_at,e[1]=a?.received_at,e[2]=i,e[3]=d):d=e[3];const m=d;let f,u,v,g,h;if(e[4]!==c||e[5]!==m||e[6]!==r||e[7]!==l||e[8]!==p){const A=r!=null?new Date(r).toISOString():null;u=Pe;const E=l?"Resume live updates":"Pause live updates";let w;e[14]!==l||e[15]!==p?(w=()=>p(!l),e[14]=l,e[15]=p,e[16]=w):w=e[16];let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=re(xe({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?m:null;let b;e[18]!==y?(b=s.jsx($e,{lastSeenAt:y,thresholdMs:1e4}),e[18]=y,e[19]=b):b=e[19];const I=l?"Paused":c?"Live":"Disconnected";e[20]!==l||e[21]!==I||e[22]!==E||e[23]!==w||e[24]!==b?(h=s.jsx(Ce,{asChild:!0,children:s.jsxs("button",{type:"button","aria-pressed":l,"aria-label":E,onClick:w,className:j,children:[b,I]})}),e[20]=l,e[21]=I,e[22]=E,e[23]=w,e[24]=b,e[25]=h):h=e[25],f=we;let S;e[26]!==m?(S=m?`Telemetry received ${J(m)}`:"No telemetry received yet",e[26]=m,e[27]=S):S=e[27],e[28]!==S?(g=s.jsx("p",{children:S}),e[28]=S,e[29]=g):g=e[29],v=A?`Page refreshed ${J(A)}`:"No live refresh yet",e[4]=c,e[5]=m,e[6]=r,e[7]=l,e[8]=p,e[9]=f,e[10]=u,e[11]=v,e[12]=g,e[13]=h}else f=e[9],u=e[10],v=e[11],g=e[12],h=e[13];let _;e[30]!==v?(_=s.jsx("p",{children:v}),e[30]=v,e[31]=_):_=e[31];let O;e[32]!==a?(O=a?.processing_lag_seconds!=null&&s.jsxs("p",{children:["Ingest processing pending:"," ",Math.round(a.processing_lag_seconds),"s"]}),e[32]=a,e[33]=O):O=e[33];let C;e[34]!==a?(C=a?.aggregated_at&&s.jsxs("p",{children:["Charts updated ",J(a.aggregated_at)]}),e[34]=a,e[35]=C):C=e[35];let R;e[36]!==f||e[37]!==g||e[38]!==_||e[39]!==O||e[40]!==C?(R=s.jsxs(f,{children:[g,_,O,C]}),e[36]=f,e[37]=g,e[38]=_,e[39]=O,e[40]=C,e[41]=R):R=e[41];let D;return e[42]!==u||e[43]!==h||e[44]!==R?(D=s.jsxs(u,{children:[h,R]}),e[42]=u,e[43]=h,e[44]=R,e[45]=D):D=e[45],D}const fe=[{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 it(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=N.c(8),{window:e,range:o}=q().props,n=e===void 0?"24h":e,a=pt,c=dt;let i;t[0]!==n||t[1]!==o?(i=n==="custom"&&o?it(o.from,o.to):fe.find(m=>m.value===n)?.label??n,t[0]=n,t[1]=o,t[2]=i):i=t[2];const r=i,l=o?.from,p=o?.to;let d;return t[3]!==n||t[4]!==r||t[5]!==l||t[6]!==p?(d={window:n,from:l,to:p,set:a,setRange:c,label:r},t[3]=n,t[4]=r,t[5]=l,t[6]=p,t[7]=d):d=t[7],d}function dt(t,e){const o=new URL(globalThis.location.href);o.searchParams.set("from",t),o.searchParams.set("to",e),o.searchParams.delete("window"),ae.visit(o.toString(),{preserveScroll:!0,preserveState:!0})}function pt(t){const e=new URL(globalThis.location.href);e.searchParams.set("window",t),e.searchParams.delete("from"),e.searchParams.delete("to"),ae.visit(e.toString(),{preserveScroll:!0,preserveState:!0})}function K(t){const e=new Date(t),o=n=>String(n).padStart(2,"0");return`${e.getFullYear()}-${o(e.getMonth()+1)}-${o(e.getDate())}T${o(e.getHours())}:${o(e.getMinutes())}`}function Y(t){const e=new Date(t);return e.setHours(0,0,0,0),e}const ut=[{label:"Today",range:()=>[Y(new Date),new Date]},{label:"Yesterday",range:()=>{const t=Y(new Date);return[Y(new Date(t.getTime()-1440*60*1e3)),t]}},{label:"This week",range:()=>{const t=Y(new Date);return t.setDate(t.getDate()-t.getDay()),[t,new Date]}}];function ft(){const t=N.c(48),{window:e,from:o,to:n,set:a,setRange:c,label:i}=ct(),[r,l]=P.useState(!1);let p;t[0]!==o?(p=()=>K(o??new Date(Date.now()-864e5).toISOString()),t[0]=o,t[1]=p):p=t[1];const[d,m]=P.useState(p);let f;t[2]!==n?(f=()=>K(n??new Date().toISOString()),t[2]=n,t[3]=f):f=t[3];const[u,v]=P.useState(f);let g;t[4]!==c?(g=(x,k)=>{m(K(x.toISOString())),v(K(k.toISOString())),c(x.toISOString(),k.toISOString()),l(!1)},t[4]=c,t[5]=g):g=t[5];const h=g;let _;t[6]!==h||t[7]!==d||t[8]!==u?(_=()=>{const x=new Date(d),k=new Date(u);!Number.isNaN(x.getTime())&&!Number.isNaN(k.getTime())&&h(x,k)},t[6]=h,t[7]=d,t[8]=u,t[9]=_):_=t[9];const O=_;let C;t[10]!==a||t[11]!==e?(C=fe.map(x=>s.jsx(te,{active:e===x.value,onClick:()=>a(x.value),"aria-label":x.label,children:x.value},x.value)),t[10]=a,t[11]=e,t[12]=C):C=t[12];const R=e==="custom";let D;t[13]===Symbol.for("react.memo_cache_sentinel")?(D=()=>l(!0),t[13]=D):D=t[13];let A;t[14]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(be,{className:"size-3"}),t[14]=A):A=t[14];const E=e==="custom"?i:"Custom";let w;t[15]!==E?(w=s.jsx("span",{className:"hidden sm:inline",children:E}),t[15]=E,t[16]=w):w=t[16];let j;t[17]!==R||t[18]!==w?(j=s.jsx(rt,{asChild:!0,children:s.jsxs(te,{active:R,onClick:D,"aria-label":"Custom range",className:"px-2",children:[A,w]})}),t[17]=R,t[18]=w,t[19]=j):j=t[19];let y;t[20]!==h?(y=ut.map(x=>s.jsx(oe,{type:"button",variant:"outline",size:"sm",onClick:()=>{const[k,me]=x.range();h(k,me)},children:x.label},x.label)),t[20]=h,t[21]=y):y=t[21];let b;t[22]!==y?(b=s.jsx("div",{className:"flex flex-wrap gap-1",children:y}),t[22]=y,t[23]=b):b=t[23];let I;t[24]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(ne,{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=>m(x.target.value),t[25]=S):S=t[25];let $;t[26]!==d?($=s.jsx(se,{id:"window-picker-from",type:"datetime-local",value:d,onChange:S}),t[26]=d,t[27]=$):$=t[27];let U;t[28]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(ne,{htmlFor:"window-picker-to",className:"text-xs",children:"To"}),t[28]=U):U=t[28];let V;t[29]===Symbol.for("react.memo_cache_sentinel")?(V=x=>v(x.target.value),t[29]=V):V=t[29];let F;t[30]!==u?(F=s.jsx(se,{id:"window-picker-to",type:"datetime-local",value:u,onChange:V}),t[30]=u,t[31]=F):F=t[31];let M;t[32]!==$||t[33]!==F?(M=s.jsxs("div",{className:"flex flex-col gap-2",children:[I,$,U,F]}),t[32]=$,t[33]=F,t[34]=M):M=t[34];let L;t[35]!==O?(L=s.jsx(oe,{type:"button",size:"sm",onClick:O,children:"Apply"}),t[35]=O,t[36]=L):L=t[36];let H;t[37]!==b||t[38]!==M||t[39]!==L?(H=s.jsx(at,{className:"w-72",align:"end",children:s.jsxs("div",{className:"flex flex-col gap-3",children:[b,M,L]})}),t[37]=b,t[38]=M,t[39]=L,t[40]=H):H=t[40];let z;t[41]!==r||t[42]!==j||t[43]!==H?(z=s.jsxs(st,{open:r,onOpenChange:l,children:[j,H]}),t[41]=r,t[42]=j,t[43]=H,t[44]=z):z=t[44];let B;return t[45]!==z||t[46]!==C?(B=s.jsxs(Fe,{children:[C,z]}),t[45]=z,t[46]=C,t[47]=B):B=t[47],B}function Ot(t){const e=N.c(18),{title:o,description:n,actions:a,withWindow:c}=t,i=c===void 0?!0:c,{environment:r}=q().props;let l;e[0]!==o?(l=s.jsx("h1",{className:"truncate text-xl font-semibold tracking-tight md:text-2xl",children:o}),e[0]=o,e[1]=l):l=e[1];let p;e[2]!==n?(p=n&&s.jsx("p",{className:"text-muted-foreground mt-0.5 text-sm",children:n}),e[2]=n,e[3]=p):p=e[3];let d;e[4]!==l||e[5]!==p?(d=s.jsxs("div",{className:"min-w-0",children:[l,p]}),e[4]=l,e[5]=p,e[6]=d):d=e[6];let m;e[7]!==r?(m=r&&s.jsx(lt,{environmentId:r.id}),e[7]=r,e[8]=m):m=e[8];let f;e[9]!==i?(f=i&&s.jsx(ft,{}),e[9]=i,e[10]=f):f=e[10];let u;e[11]!==a||e[12]!==m||e[13]!==f?(u=s.jsxs("div",{className:"flex flex-wrap items-center gap-2 md:shrink-0 md:justify-end",children:[m,a,f]}),e[11]=a,e[12]=m,e[13]=f,e[14]=u):u=e[14];let v;return e[15]!==d||e[16]!==u?(v=s.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-start md:justify-between md:gap-4",children:[d,u]}),e[15]=d,e[16]=u,e[17]=v):v=e[17],v}function Rt(t){const e=N.c(18),{title:o,children:n,crumbs:a}=t;let c;e[0]!==a?(c=a===void 0?[]:a,e[0]=a,e[1]=c):c=e[1];const i=c,{environment:r}=q().props;let l;e[2]!==r?(l=r?[{title:r.application_name,href:ve(r.application_id)},{title:r.name,href:ge(r.application_id,r.id)}]:[],e[2]=r,e[3]=l):l=e[3];const p=l;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 m;e[7]!==p||e[8]!==d?(m=[...p,...d],e[7]=p,e[8]=d,e[9]=m):m=e[9];const f=m,u=r?`${o} · ${r.application_name} ${r.name}`:o;let v;e[10]!==u?(v=s.jsx(he,{title:u}),e[10]=u,e[11]=v):v=e[11];let g;e[12]!==n?(g=s.jsx("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:p-6",children:n}),e[12]=n,e[13]=g):g=e[13];let h;return e[14]!==f||e[15]!==v||e[16]!==g?(h=s.jsxs(_e,{breadcrumbs:f,children:[v,g]}),e[14]=f,e[15]=v,e[16]=g,e[17]=h):h=e[17],h}export{Rt as E,Ot as P,st as a,rt as b,at as c,ct as u};
1
+ import{r as P,j as s,c as N,C as re,u as q,e as ae,g as ve,o as ge,H as he}from"./inertia-Degv_G9N.js";import{b as xe}from"./badge-CApjyWcg.js";import{t as Pe,v as Ce,w as we,x as be,A as _e}from"./app-layout-B5Fcdwfz.js";import{u as je}from"./use-live-GKze1mNC.js";import{d as le,R as Se,u as Oe,A as Re,P as ye,h as De,g as Ie,f as Ne,F as Te,e as Ae,C as Ee,t as ke,L as $e}from"./live-dot-DaXEbkXo.js";import{a as J}from"./format-B9SDkrWj.js";import{a as te,S as Fe}from"./segmented-CVKq2Xpa.js";import{u as ie,a as Me,B as oe}from"./app-wordmark-1SRllgHv.js";import{L as ne,I as se}from"./label-B_vK19tR.js";import{c as Le,u as He,a as Z,P as ce}from"./index-CX8Br7m9.js";import{P as ze}from"./index-B0VXzXYG.js";var We=Object.defineProperty,T=(t,e)=>We(t,"name",{value:e,configurable:!0}),Q="Popover",[de,St]=Le(Q,[le]),X=le(),[Ge,W]=de(Q),Ue=T(t=>{const{__scopePopover:e,children:o,open:n,defaultOpen:a,onOpenChange:c,modal:i=!1}=t,r=X(e),l=P.useRef(null),[p,d]=P.useState(!1),[m,f]=He({prop:n,defaultProp:a??!1,onChange:c,caller:Q});return s.jsx(Se,{...r,children:s.jsx(Ge,{scope:e,contentId:Oe(),triggerRef:l,open:m,onOpenChange:f,onOpenToggle:P.useCallback(()=>f(u=>!u),[f]),hasCustomAnchor:p,onCustomAnchorAdd:P.useCallback(()=>d(!0),[]),onCustomAnchorRemove:P.useCallback(()=>d(!1),[]),modal:i,children:o})})},"Popover"),Ve="PopoverTrigger",Be=P.forwardRef(T(function(e,o){const{__scopePopover:n,...a}=e,c=W(Ve,n),i=X(n),r=ie(o,c.triggerRef),l=s.jsx(ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":ee(c.open),...a,ref:r,onClick:Z(e.onClick,c.onOpenToggle)});return c.hasCustomAnchor?l:s.jsx(Re,{asChild:!0,...i,children:l})},"PopoverTrigger")),pe="PopoverPortal",[Ke,Ye]=de(pe,{forceMount:void 0}),Ze=T(t=>{const{__scopePopover:e,forceMount:o,children:n,container:a}=t,c=W(pe,e);return s.jsx(Ke,{scope:e,forceMount:o,children:s.jsx(ce,{present:o||c.open,children:s.jsx(ye,{asChild:!0,container:a,children:n})})})},"PopoverPortal"),G="PopoverContent",qe=P.forwardRef(T(function(e,o){const n=Ye(G,e.__scopePopover),{forceMount:a=n.forceMount,...c}=e,i=W(G,e.__scopePopover);return s.jsx(ce,{present:a||i.open,children:i.modal?s.jsx(Qe,{...c,ref:o}):s.jsx(Xe,{...c,ref:o})})},"PopoverContent")),Je=Me("PopoverContent.RemoveScroll"),Qe=P.forwardRef(T(function(e,o){const n=W(G,e.__scopePopover),a=P.useRef(null),c=ie(o,a),i=P.useRef(!1);return P.useEffect(()=>{const r=a.current;if(r)return De(r)},[]),s.jsx(Ie,{as:Je,allowPinchZoom:!0,children:s.jsx(ue,{...e,ref:c,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,r=>{r.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,r=>{const l=r.detail.originalEvent,p=l.button===0&&l.ctrlKey===!0,d=l.button===2||p;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),Xe=P.forwardRef(T(function(e,o){const n=W(G,e.__scopePopover),a=P.useRef(!1),c=P.useRef(!1);return s.jsx(ue,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(a.current||n.triggerRef.current?.focus(),i.preventDefault()),a.current=!1,c.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(a.current=!0,i.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const r=i.target;n.triggerRef.current?.contains(r)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&c.current&&i.preventDefault()}})},"PopoverContentNonModal")),ue=P.forwardRef(T(function(e,o){const{__scopePopover:n,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:i,disableOutsidePointerEvents:r,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:m,...f}=e,u=W(G,n),v=X(n);return Ne(),s.jsx(Te,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:c,onUnmountAutoFocus:i,children:s.jsx(Ae,{asChild:!0,disableOutsidePointerEvents:r,onInteractOutside:m,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:d,onDismiss:()=>u.onOpenChange(!1),deferPointerDownOutside:!0,children:s.jsx(Ee,{"data-state":ee(u.open),role:"dialog",id:u.contentId,...v,...f,ref:o,style:{...f.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 ee(t){return t?"open":"closed"}T(ee,"getState");var et=Ue,tt=Be,ot=Ze,nt=qe;function st(t){const e=N.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let n;return e[2]!==o?(n=s.jsx(et,{"data-slot":"popover",...o}),e[2]=o,e[3]=n):n=e[3],n}function rt(t){const e=N.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let n;return e[2]!==o?(n=s.jsx(tt,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=n):n=e[3],n}function at(t){const e=N.c(12);let o,n,a,c;e[0]!==t?({className:o,align:a,sideOffset:c,...n}=t,e[0]=t,e[1]=o,e[2]=n,e[3]=a,e[4]=c):(o=e[1],n=e[2],a=e[3],c=e[4]);const i=a===void 0?"center":a,r=c===void 0?4:c;let l;e[5]!==o?(l=re("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]=l):l=e[6];let p;return e[7]!==i||e[8]!==n||e[9]!==r||e[10]!==l?(p=s.jsx(ot,{children:s.jsx(nt,{"data-slot":"popover-content",align:i,sideOffset:r,className:l,...n})}),e[7]=i,e[8]=n,e[9]=r,e[10]=l,e[11]=p):p=e[11],p}function lt(t){const e=N.c(46),{environmentId:o}=t;ke();const{environment:n,telemetry_freshness:a}=q().props,{connected:c,lastEventAt:i,lastRefreshedAt:r,paused:l,setPaused:p}=je(o);let d;e[0]!==n?.last_seen_at||e[1]!==a?.received_at||e[2]!==i?(d=i!=null?new Date(i).toISOString():a?.received_at??n?.last_seen_at??null,e[0]=n?.last_seen_at,e[1]=a?.received_at,e[2]=i,e[3]=d):d=e[3];const m=d;let f,u,v,g,h;if(e[4]!==c||e[5]!==m||e[6]!==r||e[7]!==l||e[8]!==p){const A=r!=null?new Date(r).toISOString():null;u=Pe;const E=l?"Resume live updates":"Pause live updates";let w;e[14]!==l||e[15]!==p?(w=()=>p(!l),e[14]=l,e[15]=p,e[16]=w):w=e[16];let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=re(xe({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?m:null;let b;e[18]!==y?(b=s.jsx($e,{lastSeenAt:y,thresholdMs:1e4}),e[18]=y,e[19]=b):b=e[19];const I=l?"Paused":c?"Live":"Disconnected";e[20]!==l||e[21]!==I||e[22]!==E||e[23]!==w||e[24]!==b?(h=s.jsx(Ce,{asChild:!0,children:s.jsxs("button",{type:"button","aria-pressed":l,"aria-label":E,onClick:w,className:j,children:[b,I]})}),e[20]=l,e[21]=I,e[22]=E,e[23]=w,e[24]=b,e[25]=h):h=e[25],f=we;let S;e[26]!==m?(S=m?`Telemetry received ${J(m)}`:"No telemetry received yet",e[26]=m,e[27]=S):S=e[27],e[28]!==S?(g=s.jsx("p",{children:S}),e[28]=S,e[29]=g):g=e[29],v=A?`Page refreshed ${J(A)}`:"No live refresh yet",e[4]=c,e[5]=m,e[6]=r,e[7]=l,e[8]=p,e[9]=f,e[10]=u,e[11]=v,e[12]=g,e[13]=h}else f=e[9],u=e[10],v=e[11],g=e[12],h=e[13];let _;e[30]!==v?(_=s.jsx("p",{children:v}),e[30]=v,e[31]=_):_=e[31];let O;e[32]!==a?(O=a?.processing_lag_seconds!=null&&s.jsxs("p",{children:["Ingest processing pending:"," ",Math.round(a.processing_lag_seconds),"s"]}),e[32]=a,e[33]=O):O=e[33];let C;e[34]!==a?(C=a?.aggregated_at&&s.jsxs("p",{children:["Charts updated ",J(a.aggregated_at)]}),e[34]=a,e[35]=C):C=e[35];let R;e[36]!==f||e[37]!==g||e[38]!==_||e[39]!==O||e[40]!==C?(R=s.jsxs(f,{children:[g,_,O,C]}),e[36]=f,e[37]=g,e[38]=_,e[39]=O,e[40]=C,e[41]=R):R=e[41];let D;return e[42]!==u||e[43]!==h||e[44]!==R?(D=s.jsxs(u,{children:[h,R]}),e[42]=u,e[43]=h,e[44]=R,e[45]=D):D=e[45],D}const fe=[{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 it(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=N.c(8),{window:e,range:o}=q().props,n=e===void 0?"24h":e,a=pt,c=dt;let i;t[0]!==n||t[1]!==o?(i=n==="custom"&&o?it(o.from,o.to):fe.find(m=>m.value===n)?.label??n,t[0]=n,t[1]=o,t[2]=i):i=t[2];const r=i,l=o?.from,p=o?.to;let d;return t[3]!==n||t[4]!==r||t[5]!==l||t[6]!==p?(d={window:n,from:l,to:p,set:a,setRange:c,label:r},t[3]=n,t[4]=r,t[5]=l,t[6]=p,t[7]=d):d=t[7],d}function dt(t,e){const o=new URL(globalThis.location.href);o.searchParams.set("from",t),o.searchParams.set("to",e),o.searchParams.delete("window"),ae.visit(o.toString(),{preserveScroll:!0,preserveState:!0})}function pt(t){const e=new URL(globalThis.location.href);e.searchParams.set("window",t),e.searchParams.delete("from"),e.searchParams.delete("to"),ae.visit(e.toString(),{preserveScroll:!0,preserveState:!0})}function K(t){const e=new Date(t),o=n=>String(n).padStart(2,"0");return`${e.getFullYear()}-${o(e.getMonth()+1)}-${o(e.getDate())}T${o(e.getHours())}:${o(e.getMinutes())}`}function Y(t){const e=new Date(t);return e.setHours(0,0,0,0),e}const ut=[{label:"Today",range:()=>[Y(new Date),new Date]},{label:"Yesterday",range:()=>{const t=Y(new Date);return[Y(new Date(t.getTime()-1440*60*1e3)),t]}},{label:"This week",range:()=>{const t=Y(new Date);return t.setDate(t.getDate()-t.getDay()),[t,new Date]}}];function ft(){const t=N.c(48),{window:e,from:o,to:n,set:a,setRange:c,label:i}=ct(),[r,l]=P.useState(!1);let p;t[0]!==o?(p=()=>K(o??new Date(Date.now()-864e5).toISOString()),t[0]=o,t[1]=p):p=t[1];const[d,m]=P.useState(p);let f;t[2]!==n?(f=()=>K(n??new Date().toISOString()),t[2]=n,t[3]=f):f=t[3];const[u,v]=P.useState(f);let g;t[4]!==c?(g=(x,k)=>{m(K(x.toISOString())),v(K(k.toISOString())),c(x.toISOString(),k.toISOString()),l(!1)},t[4]=c,t[5]=g):g=t[5];const h=g;let _;t[6]!==h||t[7]!==d||t[8]!==u?(_=()=>{const x=new Date(d),k=new Date(u);!Number.isNaN(x.getTime())&&!Number.isNaN(k.getTime())&&h(x,k)},t[6]=h,t[7]=d,t[8]=u,t[9]=_):_=t[9];const O=_;let C;t[10]!==a||t[11]!==e?(C=fe.map(x=>s.jsx(te,{active:e===x.value,onClick:()=>a(x.value),"aria-label":x.label,children:x.value},x.value)),t[10]=a,t[11]=e,t[12]=C):C=t[12];const R=e==="custom";let D;t[13]===Symbol.for("react.memo_cache_sentinel")?(D=()=>l(!0),t[13]=D):D=t[13];let A;t[14]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(be,{className:"size-3"}),t[14]=A):A=t[14];const E=e==="custom"?i:"Custom";let w;t[15]!==E?(w=s.jsx("span",{className:"hidden sm:inline",children:E}),t[15]=E,t[16]=w):w=t[16];let j;t[17]!==R||t[18]!==w?(j=s.jsx(rt,{asChild:!0,children:s.jsxs(te,{active:R,onClick:D,"aria-label":"Custom range",className:"px-2",children:[A,w]})}),t[17]=R,t[18]=w,t[19]=j):j=t[19];let y;t[20]!==h?(y=ut.map(x=>s.jsx(oe,{type:"button",variant:"outline",size:"sm",onClick:()=>{const[k,me]=x.range();h(k,me)},children:x.label},x.label)),t[20]=h,t[21]=y):y=t[21];let b;t[22]!==y?(b=s.jsx("div",{className:"flex flex-wrap gap-1",children:y}),t[22]=y,t[23]=b):b=t[23];let I;t[24]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(ne,{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=>m(x.target.value),t[25]=S):S=t[25];let $;t[26]!==d?($=s.jsx(se,{id:"window-picker-from",type:"datetime-local",value:d,onChange:S}),t[26]=d,t[27]=$):$=t[27];let U;t[28]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(ne,{htmlFor:"window-picker-to",className:"text-xs",children:"To"}),t[28]=U):U=t[28];let V;t[29]===Symbol.for("react.memo_cache_sentinel")?(V=x=>v(x.target.value),t[29]=V):V=t[29];let F;t[30]!==u?(F=s.jsx(se,{id:"window-picker-to",type:"datetime-local",value:u,onChange:V}),t[30]=u,t[31]=F):F=t[31];let M;t[32]!==$||t[33]!==F?(M=s.jsxs("div",{className:"flex flex-col gap-2",children:[I,$,U,F]}),t[32]=$,t[33]=F,t[34]=M):M=t[34];let L;t[35]!==O?(L=s.jsx(oe,{type:"button",size:"sm",onClick:O,children:"Apply"}),t[35]=O,t[36]=L):L=t[36];let H;t[37]!==b||t[38]!==M||t[39]!==L?(H=s.jsx(at,{className:"w-72",align:"end",children:s.jsxs("div",{className:"flex flex-col gap-3",children:[b,M,L]})}),t[37]=b,t[38]=M,t[39]=L,t[40]=H):H=t[40];let z;t[41]!==r||t[42]!==j||t[43]!==H?(z=s.jsxs(st,{open:r,onOpenChange:l,children:[j,H]}),t[41]=r,t[42]=j,t[43]=H,t[44]=z):z=t[44];let B;return t[45]!==z||t[46]!==C?(B=s.jsxs(Fe,{children:[C,z]}),t[45]=z,t[46]=C,t[47]=B):B=t[47],B}function Ot(t){const e=N.c(18),{title:o,description:n,actions:a,withWindow:c}=t,i=c===void 0?!0:c,{environment:r}=q().props;let l;e[0]!==o?(l=s.jsx("h1",{className:"truncate text-xl font-semibold tracking-tight md:text-2xl",children:o}),e[0]=o,e[1]=l):l=e[1];let p;e[2]!==n?(p=n&&s.jsx("p",{className:"text-muted-foreground mt-0.5 text-sm",children:n}),e[2]=n,e[3]=p):p=e[3];let d;e[4]!==l||e[5]!==p?(d=s.jsxs("div",{className:"min-w-0",children:[l,p]}),e[4]=l,e[5]=p,e[6]=d):d=e[6];let m;e[7]!==r?(m=r&&s.jsx(lt,{environmentId:r.id}),e[7]=r,e[8]=m):m=e[8];let f;e[9]!==i?(f=i&&s.jsx(ft,{}),e[9]=i,e[10]=f):f=e[10];let u;e[11]!==a||e[12]!==m||e[13]!==f?(u=s.jsxs("div",{className:"flex flex-wrap items-center gap-2 md:shrink-0 md:justify-end",children:[m,a,f]}),e[11]=a,e[12]=m,e[13]=f,e[14]=u):u=e[14];let v;return e[15]!==d||e[16]!==u?(v=s.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-start md:justify-between md:gap-4",children:[d,u]}),e[15]=d,e[16]=u,e[17]=v):v=e[17],v}function Rt(t){const e=N.c(18),{title:o,children:n,crumbs:a}=t;let c;e[0]!==a?(c=a===void 0?[]:a,e[0]=a,e[1]=c):c=e[1];const i=c,{environment:r}=q().props;let l;e[2]!==r?(l=r?[{title:r.application_name,href:ve(r.application_id)},{title:r.name,href:ge(r.application_id,r.id)}]:[],e[2]=r,e[3]=l):l=e[3];const p=l;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 m;e[7]!==p||e[8]!==d?(m=[...p,...d],e[7]=p,e[8]=d,e[9]=m):m=e[9];const f=m,u=r?`${o} · ${r.application_name} ${r.name}`:o;let v;e[10]!==u?(v=s.jsx(he,{title:u}),e[10]=u,e[11]=v):v=e[11];let g;e[12]!==n?(g=s.jsx("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:p-6",children:n}),e[12]=n,e[13]=g):g=e[13];let h;return e[14]!==f||e[15]!==v||e[16]!==g?(h=s.jsxs(_e,{breadcrumbs:f,children:[v,g]}),e[14]=f,e[15]=v,e[16]=g,e[17]=h):h=e[17],h}export{Rt as E,Ot as P,st as a,rt as b,at 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-CgBdJDaE.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
+ import{ax as e,w as n,ay as h,K as u,t as m}from"./inertia-Degv_G9N.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-CgBdJDaE.js";import{B as ee}from"./badge-DKvItdlb.js";import{B as te}from"./app-wordmark-B-0yZiDb.js";import{f as V,g as G,e as se,s as ne,m as le,l as oe}from"./app-layout-CdJ5Qjms.js";import{a as ae,b as ie,c as re}from"./env-layout-aGQgTZRg.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
+ import{B as U,c as Y,r as I,j as s,a5 as Z}from"./inertia-Degv_G9N.js";import{B as ee}from"./badge-CApjyWcg.js";import{B as te}from"./app-wordmark-1SRllgHv.js";import{f as V,g as G,e as se,s as ne,m as le,l as oe}from"./app-layout-B5Fcdwfz.js";import{a as ae,b as ie,c as re}from"./env-layout-erSDpIXg.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-CgBdJDaE.js";import{D as E}from"./data-table-Bc3ZRnpb.js";import{S as V,a as z}from"./segmented-Dg8CES94.js";import{I as W}from"./label-BWgQzHCO.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(`
1
+ import{r as j,j as o,C,c as $}from"./inertia-Degv_G9N.js";import{D as E}from"./data-table-IvA7xvrK.js";import{S as V,a as z}from"./segmented-CVKq2Xpa.js";import{I as W}from"./label-B_vK19tR.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-CgBdJDaE.js";import{s as E}from"./source-link-B2183i2-.js";import{B as $}from"./badge-DKvItdlb.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-Degv_G9N.js";import{s as E}from"./source-link-B2183i2-.js";import{B as $}from"./badge-CApjyWcg.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 +1 @@
1
- import{c as h,j as t}from"./inertia-CgBdJDaE.js";import{B as p}from"./app-wordmark-B-0yZiDb.js";import{S as x}from"./separator-BOp2LHw3.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
+ import{c as h,j as t}from"./inertia-Degv_G9N.js";import{B as p}from"./app-wordmark-1SRllgHv.js";import{S as x}from"./separator-CrM10Oot.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 D,x as L,j as t,H as O,L as S,g as q,e as k,m as B,o as R,i as z,h as H}from"./inertia-CgBdJDaE.js";import{D as M}from"./data-table-Bc3ZRnpb.js";import{E as T}from"./empty-state-CkPROZB0.js";import{L as $}from"./live-dot-Bejk0a5o.js";import{S as I}from"./sparkline-cell-BbfXw3kA.js";import{S as b,a as F}from"./stat-Cd8QaTGw.js";import{B as C}from"./badge-DKvItdlb.js";import{B as E}from"./app-wordmark-B-0yZiDb.js";import{C as y,a as N,b as A,c as K}from"./card-C9j_ffR9.js";import{O as U,A as W,P as G}from"./app-layout-CdJ5Qjms.js";import{c as w,a as P}from"./format-B9SDkrWj.js";import"./chart-hover-B0SjyWFy.js";import"./index-Dy7Wg880.js";import"./index-B2_QluAw.js";import"./series-chart-COEtj3PY.js";import"./chart-Cmh6JEww.js";import"./use-live-LwJStJvD.js";import"./arrow-up-DY1fS0tD.js";import"./checkbox-BsBkRg5n.js";import"./label-BWgQzHCO.js";function Ne(s){const e=D.c(32);let d,u;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=[{title:"Dashboard",href:L()}],u=t.jsx(O,{title:"Dashboard"}),e[0]=d,e[1]=u):(d=e[0],u=e[1]);let i;e[2]!==s.overview_apps.length?(i=t.jsx(b,{label:"Applications",value:s.overview_apps.length}),e[2]=s.overview_apps.length,e[3]=i):i=e[3];const g=s.recent_issues.length?"destructive":"success";let a;e[4]!==s.recent_issues.length||e[5]!==g?(a=t.jsx(b,{label:"Open issues",value:s.recent_issues.length,tone:g}),e[4]=s.recent_issues.length,e[5]=g,e[6]=a):a=e[6];let r;e[7]!==s.usage.events_this_month?(r=w(s.usage.events_this_month),e[7]=s.usage.events_this_month,e[8]=r):r=e[8];let h;e[9]!==s.usage.quota?(h=w(s.usage.quota),e[9]=s.usage.quota,e[10]=h):h=e[10];const v=`of ${h} on ${s.usage.plan}`;let n;e[11]!==r||e[12]!==v?(n=t.jsx(b,{label:"Events this month",value:r,hint:v}),e[11]=r,e[12]=v,e[13]=n):n=e[13];let l;e[14]!==i||e[15]!==a||e[16]!==n?(l=t.jsxs(F,{children:[i,a,n]}),e[14]=i,e[15]=a,e[16]=n,e[17]=l):l=e[17];let o;e[18]!==s.overview_apps?(o=s.overview_apps.map(te),e[18]=s.overview_apps,e[19]=o):o=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(y,{className:"border-dashed",children:t.jsx(N,{className:"flex h-full items-center justify-center pt-6",children:t.jsx(E,{variant:"outline",onClick:se,children:"Add application"})})}),e[20]=x):x=e[20];let c;e[21]!==o?(c=t.jsxs("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:[o,x]}),e[21]=o,e[22]=c):c=e[22];let f;e[23]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(A,{children:t.jsx(K,{children:"Recent open issues"})}),e[23]=f):f=e[23];let p;e[24]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(T,{icon:U,title:"No open issues",description:"Issues are opened when a request, job, or exception starts repeating."}),e[24]=p):p=e[24];let _;e[25]===Symbol.for("react.memo_cache_sentinel")?(_=[{key:"k",header:"Issue",cell:Y},{key:"t",header:"Title",cell:X},{key:"w",hideOnMobile:!0,header:"Where",cell:V},{key:"n",hideOnMobile:!0,header:"Events",align:"right",cell:Q},{key:"l",header:"Last",align:"right",cell:J}],e[25]=_):_=e[25];let m;e[26]!==s.recent_issues?(m=t.jsxs(y,{children:[f,t.jsx(N,{children:t.jsx(M,{rows:s.recent_issues,rowKey:ee,empty:p,onRowClick:Z,columns:_})})]}),e[26]=s.recent_issues,e[27]=m):m=e[27];let j;return e[28]!==c||e[29]!==m||e[30]!==l?(j=t.jsxs(W,{breadcrumbs:d,children:[u,t.jsxs("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:px-6 md:pt-2 md:pb-6",children:[l,c,m]})]}),e[28]=c,e[29]=m,e[30]=l,e[31]=j):j=e[31],j}function J(s){return P(s.last_seen_at)}function Q(s){return w(s.occurrences)}function V(s){return t.jsxs("span",{className:"text-xs",children:[s.application," · ",s.environment]})}function X(s){return t.jsx("span",{className:"line-clamp-1 text-xs",children:s.title})}function Y(s){return t.jsx("span",{className:"font-mono text-xs font-semibold",children:s.key})}function Z(s){return k.visit(z(s.id))}function ee(s){return s.id}function se(){return k.visit(H())}function te(s){return t.jsxs(y,{children:[t.jsxs(A,{className:"flex-row items-center justify-between",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx("span",{className:"bg-muted flex size-8 shrink-0 items-center justify-center rounded-md font-mono text-xs font-semibold",children:s.name.slice(0,2).toUpperCase()}),t.jsxs("div",{className:"min-w-0",children:[t.jsx(S,{className:"block truncate text-sm font-semibold hover:underline",href:q(s.id),children:s.name}),t.jsx("div",{className:"label-caps",children:s.issue_prefix})]})]}),t.jsxs(E,{size:"sm",variant:"outline",className:"h-7 text-xs",onClick:()=>k.visit(B(s.id)),children:[t.jsx(G,{className:"size-3"}),"Environment"]})]}),t.jsx(N,{className:"space-y-2",children:s.environments.map(e=>t.jsxs(S,{href:R(s.id,e.id),className:"hover:bg-muted flex items-center justify-between rounded-md border px-3 py-2 text-sm",children:[t.jsxs("span",{className:"flex flex-1 items-center gap-2",children:[t.jsx($,{lastSeenAt:e.paused?null:e.last_seen_at,thresholdMs:6e5}),e.name]}),t.jsx(I,{data:e.request_sparkline}),t.jsxs("span",{className:"text-muted-foreground flex items-center gap-2 text-xs",children:[e.error_rate>0&&t.jsxs(C,{variant:"destructive",children:[(e.error_rate*100).toFixed(1),"% err"]}),e.open_issues>0&&t.jsx(C,{variant:"destructive",children:e.open_issues}),e.last_seen_at?P(e.last_seen_at):"no data"]})]},e.id))})]},s.id)}export{Ne as default};
1
+ import{c as D,x as L,j as t,H as O,L as S,g as q,e as k,m as B,o as R,i as z,h as H}from"./inertia-Degv_G9N.js";import{D as M}from"./data-table-IvA7xvrK.js";import{E as T}from"./empty-state-BFTnQ2oT.js";import{L as $}from"./live-dot-DaXEbkXo.js";import{S as I}from"./sparkline-cell-Ckg29yVq.js";import{S as b,a as F}from"./stat-TxvoBiC8.js";import{B as C}from"./badge-CApjyWcg.js";import{B as E}from"./app-wordmark-1SRllgHv.js";import{C as y,a as N,b as A,c as K}from"./card-BaJ8kNkp.js";import{O as U,A as W,P as G}from"./app-layout-B5Fcdwfz.js";import{c as w,a as P}from"./format-B9SDkrWj.js";import"./chart-hover-XYPNE2CX.js";import"./index-B0VXzXYG.js";import"./index-CX8Br7m9.js";import"./series-chart-D33UhdG2.js";import"./chart-Xnrz1Nqw.js";import"./use-live-GKze1mNC.js";import"./arrow-up-DwKQcab4.js";import"./checkbox-Bf41R8W6.js";import"./label-B_vK19tR.js";function Ne(s){const e=D.c(32);let d,u;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=[{title:"Dashboard",href:L()}],u=t.jsx(O,{title:"Dashboard"}),e[0]=d,e[1]=u):(d=e[0],u=e[1]);let i;e[2]!==s.overview_apps.length?(i=t.jsx(b,{label:"Applications",value:s.overview_apps.length}),e[2]=s.overview_apps.length,e[3]=i):i=e[3];const g=s.recent_issues.length?"destructive":"success";let a;e[4]!==s.recent_issues.length||e[5]!==g?(a=t.jsx(b,{label:"Open issues",value:s.recent_issues.length,tone:g}),e[4]=s.recent_issues.length,e[5]=g,e[6]=a):a=e[6];let r;e[7]!==s.usage.events_this_month?(r=w(s.usage.events_this_month),e[7]=s.usage.events_this_month,e[8]=r):r=e[8];let h;e[9]!==s.usage.quota?(h=w(s.usage.quota),e[9]=s.usage.quota,e[10]=h):h=e[10];const v=`of ${h} on ${s.usage.plan}`;let n;e[11]!==r||e[12]!==v?(n=t.jsx(b,{label:"Events this month",value:r,hint:v}),e[11]=r,e[12]=v,e[13]=n):n=e[13];let l;e[14]!==i||e[15]!==a||e[16]!==n?(l=t.jsxs(F,{children:[i,a,n]}),e[14]=i,e[15]=a,e[16]=n,e[17]=l):l=e[17];let o;e[18]!==s.overview_apps?(o=s.overview_apps.map(te),e[18]=s.overview_apps,e[19]=o):o=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(y,{className:"border-dashed",children:t.jsx(N,{className:"flex h-full items-center justify-center pt-6",children:t.jsx(E,{variant:"outline",onClick:se,children:"Add application"})})}),e[20]=x):x=e[20];let c;e[21]!==o?(c=t.jsxs("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:[o,x]}),e[21]=o,e[22]=c):c=e[22];let f;e[23]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(A,{children:t.jsx(K,{children:"Recent open issues"})}),e[23]=f):f=e[23];let p;e[24]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(T,{icon:U,title:"No open issues",description:"Issues are opened when a request, job, or exception starts repeating."}),e[24]=p):p=e[24];let _;e[25]===Symbol.for("react.memo_cache_sentinel")?(_=[{key:"k",header:"Issue",cell:Y},{key:"t",header:"Title",cell:X},{key:"w",hideOnMobile:!0,header:"Where",cell:V},{key:"n",hideOnMobile:!0,header:"Events",align:"right",cell:Q},{key:"l",header:"Last",align:"right",cell:J}],e[25]=_):_=e[25];let m;e[26]!==s.recent_issues?(m=t.jsxs(y,{children:[f,t.jsx(N,{children:t.jsx(M,{rows:s.recent_issues,rowKey:ee,empty:p,onRowClick:Z,columns:_})})]}),e[26]=s.recent_issues,e[27]=m):m=e[27];let j;return e[28]!==c||e[29]!==m||e[30]!==l?(j=t.jsxs(W,{breadcrumbs:d,children:[u,t.jsxs("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:px-6 md:pt-2 md:pb-6",children:[l,c,m]})]}),e[28]=c,e[29]=m,e[30]=l,e[31]=j):j=e[31],j}function J(s){return P(s.last_seen_at)}function Q(s){return w(s.occurrences)}function V(s){return t.jsxs("span",{className:"text-xs",children:[s.application," · ",s.environment]})}function X(s){return t.jsx("span",{className:"line-clamp-1 text-xs",children:s.title})}function Y(s){return t.jsx("span",{className:"font-mono text-xs font-semibold",children:s.key})}function Z(s){return k.visit(z(s.id))}function ee(s){return s.id}function se(){return k.visit(H())}function te(s){return t.jsxs(y,{children:[t.jsxs(A,{className:"flex-row items-center justify-between",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx("span",{className:"bg-muted flex size-8 shrink-0 items-center justify-center rounded-md font-mono text-xs font-semibold",children:s.name.slice(0,2).toUpperCase()}),t.jsxs("div",{className:"min-w-0",children:[t.jsx(S,{className:"block truncate text-sm font-semibold hover:underline",href:q(s.id),children:s.name}),t.jsx("div",{className:"label-caps",children:s.issue_prefix})]})]}),t.jsxs(E,{size:"sm",variant:"outline",className:"h-7 text-xs",onClick:()=>k.visit(B(s.id)),children:[t.jsx(G,{className:"size-3"}),"Environment"]})]}),t.jsx(N,{className:"space-y-2",children:s.environments.map(e=>t.jsxs(S,{href:R(s.id,e.id),className:"hover:bg-muted flex items-center justify-between rounded-md border px-3 py-2 text-sm",children:[t.jsxs("span",{className:"flex flex-1 items-center gap-2",children:[t.jsx($,{lastSeenAt:e.paused?null:e.last_seen_at,thresholdMs:6e5}),e.name]}),t.jsx(I,{data:e.request_sparkline}),t.jsxs("span",{className:"text-muted-foreground flex items-center gap-2 text-xs",children:[e.error_rate>0&&t.jsxs(C,{variant:"destructive",children:[(e.error_rate*100).toFixed(1),"% err"]}),e.open_issues>0&&t.jsx(C,{variant:"destructive",children:e.open_issues}),e.last_seen_at?P(e.last_seen_at):"no data"]})]},e.id))})]},s.id)}export{Ne as default};
@@ -1 +1 @@
1
- import{c as B,u as F,j as t,e as I,A as R,r as A,L as $}from"./inertia-CgBdJDaE.js";import{E as G}from"./empty-state-CkPROZB0.js";import{F as H}from"./filter-bar-C0O2rJVr.js";import{P as O,E as T}from"./env-layout-aGQgTZRg.js";import{S as J}from"./series-chart-COEtj3PY.js";import{S as q}from"./stat-Cd8QaTGw.js";import{B as L}from"./badge-DKvItdlb.js";import{C as K,a as M}from"./card-C9j_ffR9.js";import{e as Q}from"./execution-path-BX5NcXUZ.js";import{c as P,w as z}from"./format-B9SDkrWj.js";import"./app-wordmark-B-0yZiDb.js";import"./app-layout-CdJ5Qjms.js";import"./live-dot-Bejk0a5o.js";import"./index-Dy7Wg880.js";import"./index-B2_QluAw.js";import"./checkbox-BsBkRg5n.js";import"./label-BWgQzHCO.js";import"./use-live-LwJStJvD.js";import"./segmented-Dg8CES94.js";import"./chart-hover-B0SjyWFy.js";import"./chart-Cmh6JEww.js";import"./arrow-up-DY1fS0tD.js";function U(i){const e=B.c(51),{d:s,a:g,e:j}=i,[_,w]=A.useState(!1);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>w(V),e[0]=f):f=e[0];let l;e[1]!==s.gem_name?(l=s.gem_name&&t.jsx(L,{variant:"secondary",className:"font-mono",children:s.gem_name}),e[1]=s.gem_name,e[2]=l):l=e[2];let r;e[3]!==s.horizon?(r=s.horizon&&t.jsxs(L,{variant:"outline",className:"font-mono",children:["removed in ",s.horizon]}),e[3]=s.horizon,e[4]=r):r=e[4];let a;e[5]!==l||e[6]!==r?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[l,r]}),e[5]=l,e[6]=r,e[7]=a):a=e[7];let n;e[8]!==s.message?(n=t.jsx("p",{className:"mt-1 font-mono text-xs whitespace-pre-wrap",children:s.message}),e[8]=s.message,e[9]=n):n=e[9];let o;e[10]!==s.source?(o=s.source&&t.jsx("p",{className:"text-muted-foreground mt-1 font-mono text-xs",children:s.source}),e[10]=s.source,e[11]=o):o=e[11];let c;e[12]!==a||e[13]!==n||e[14]!==o?(c=t.jsxs("div",{className:"min-w-0 flex-1",children:[a,n,o]}),e[12]=a,e[13]=n,e[14]=o,e[15]=c):c=e[15];let x;e[16]!==s.sparkline?(x=t.jsx(J,{data:s.sparkline,className:"h-10 w-32"}),e[16]=s.sparkline,e[17]=x):x=e[17];let m;e[18]!==s.count?(m=P(s.count),e[18]=s.count,e[19]=m):m=e[19];let d;e[20]!==m?(d=t.jsx("div",{className:"text-lg font-semibold tabular-nums",children:m}),e[20]=m,e[21]=d):d=e[21];let p;e[22]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"text-muted-foreground text-xs",children:"occurrences"}),e[22]=p):p=e[22];let u;e[23]!==d?(u=t.jsxs("div",{className:"text-right",children:[d,p]}),e[23]=d,e[24]=u):u=e[24];let h;e[25]!==u||e[26]!==x?(h=t.jsxs("div",{className:"flex shrink-0 items-center gap-4",children:[x,u]}),e[25]=u,e[26]=x,e[27]=h):h=e[27];let v;e[28]!==h||e[29]!==c?(v=t.jsxs("button",{type:"button",onClick:f,className:"flex flex-wrap items-start justify-between gap-4 text-left",children:[c,h]}),e[28]=h,e[29]=c,e[30]=v):v=e[30];let N;e[31]!==s.first_seen_at?(N=z(s.first_seen_at),e[31]=s.first_seen_at,e[32]=N):N=e[32];let b;e[33]!==N?(b=t.jsxs("span",{children:["First seen ",N]}),e[33]=N,e[34]=b):b=e[34];let y;e[35]!==s.last_seen_at?(y=z(s.last_seen_at),e[35]=s.last_seen_at,e[36]=y):y=e[36];let S;e[37]!==y?(S=t.jsxs("span",{children:["Last seen ",y]}),e[37]=y,e[38]=S):S=e[38];let k;e[39]!==b||e[40]!==S?(k=t.jsxs("div",{className:"text-muted-foreground flex gap-4 text-xs",children:[b,S]}),e[39]=b,e[40]=S,e[41]=k):k=e[41];let E;e[42]!==g||e[43]!==s.occurrences||e[44]!==j||e[45]!==_?(E=_&&t.jsx("div",{className:"mt-2 overflow-hidden rounded-lg border",children:t.jsx("table",{className:"w-full text-xs",children:t.jsx("tbody",{children:s.occurrences.map(D=>t.jsxs("tr",{className:"border-t first:border-t-0",children:[t.jsx("td",{className:"px-3 py-1.5 tabular-nums",children:z(D.occurred_at)}),t.jsx("td",{className:"px-3 py-1.5",children:D.execution_id?t.jsx($,{className:"font-mono hover:underline",href:Q({applicationId:g,environmentId:j,source:D.execution_source,executionId:D.execution_id}),children:D.execution_preview}):t.jsx("span",{className:"text-muted-foreground",children:"–"})})]},D.id))})})}),e[42]=g,e[43]=s.occurrences,e[44]=j,e[45]=_,e[46]=E):E=e[46];let C;return e[47]!==v||e[48]!==k||e[49]!==E?(C=t.jsx(K,{children:t.jsxs(M,{className:"flex flex-col gap-2 pt-4",children:[v,k,E]})}),e[47]=v,e[48]=k,e[49]=E,e[50]=C):C=e[50],C}function V(i){return!i}function _e(i){const e=B.c(33),{environment:s,window:g}=F().props,j=s.application_id,_=s.id;let w;e[0]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(O,{title:"Deprecations",description:"ActiveSupport::Deprecation warnings, grouped by gem and message."}),e[0]=w):w=e[0];let f;e[1]!==i.distinct?(f=P(i.distinct),e[1]=i.distinct,e[2]=f):f=e[2];let l;e[3]!==f?(l=t.jsx(q,{label:"Distinct deprecations",value:f}),e[3]=f,e[4]=l):l=e[4];let r;e[5]!==i.total_occurrences?(r=P(i.total_occurrences),e[5]=i.total_occurrences,e[6]=r):r=e[6];let a;e[7]!==r?(a=t.jsx(q,{label:"Total occurrences",value:r}),e[7]=r,e[8]=a):a=e[8];let n;e[9]!==i.new_this_window?(n=P(i.new_this_window),e[9]=i.new_this_window,e[10]=n):n=e[10];let o;e[11]!==n?(o=t.jsx(q,{label:"New this window",value:n}),e[11]=n,e[12]=o):o=e[12];let c;e[13]!==l||e[14]!==a||e[15]!==o?(c=t.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[l,a,o]}),e[13]=l,e[14]=a,e[15]=o,e[16]=c):c=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=[{key:"gem",label:"Gem"}],e[17]=x):x=e[17];let m;e[18]!==j||e[19]!==_||e[20]!==g?(m=h=>I.visit(R(j,_,{window:g,q:h||void 0}),{preserveState:!0}),e[18]=j,e[19]=_,e[20]=g,e[21]=m):m=e[21];let d;e[22]!==i.q||e[23]!==m?(d=t.jsx(H,{value:i.q,fields:x,onChange:m,placeholder:"gem:rails deprecated method"}),e[22]=i.q,e[23]=m,e[24]=d):d=e[24];let p;e[25]!==j||e[26]!==_||e[27]!==i.deprecations?(p=i.deprecations.length===0?t.jsx(G,{title:"No deprecations in this window."}):t.jsx("div",{className:"flex flex-col gap-3",children:i.deprecations.map(h=>t.jsx(U,{d:h,a:j,e:_},h.group_hash))}),e[25]=j,e[26]=_,e[27]=i.deprecations,e[28]=p):p=e[28];let u;return e[29]!==d||e[30]!==p||e[31]!==c?(u=t.jsxs(T,{title:"Deprecations",children:[w,c,d,p]}),e[29]=d,e[30]=p,e[31]=c,e[32]=u):u=e[32],u}export{_e as default};
1
+ import{c as B,u as F,j as t,e as I,A as R,r as A,L as $}from"./inertia-Degv_G9N.js";import{E as G}from"./empty-state-BFTnQ2oT.js";import{F as H}from"./filter-bar-Btm__gQi.js";import{P as O,E as T}from"./env-layout-erSDpIXg.js";import{S as J}from"./series-chart-D33UhdG2.js";import{S as q}from"./stat-TxvoBiC8.js";import{B as L}from"./badge-CApjyWcg.js";import{C as K,a as M}from"./card-BaJ8kNkp.js";import{e as Q}from"./execution-path-Di5uUHi-.js";import{c as P,w as z}from"./format-B9SDkrWj.js";import"./app-wordmark-1SRllgHv.js";import"./app-layout-B5Fcdwfz.js";import"./live-dot-DaXEbkXo.js";import"./index-B0VXzXYG.js";import"./index-CX8Br7m9.js";import"./checkbox-Bf41R8W6.js";import"./label-B_vK19tR.js";import"./use-live-GKze1mNC.js";import"./segmented-CVKq2Xpa.js";import"./chart-hover-XYPNE2CX.js";import"./chart-Xnrz1Nqw.js";import"./arrow-up-DwKQcab4.js";function U(i){const e=B.c(51),{d:s,a:g,e:j}=i,[_,w]=A.useState(!1);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>w(V),e[0]=f):f=e[0];let l;e[1]!==s.gem_name?(l=s.gem_name&&t.jsx(L,{variant:"secondary",className:"font-mono",children:s.gem_name}),e[1]=s.gem_name,e[2]=l):l=e[2];let r;e[3]!==s.horizon?(r=s.horizon&&t.jsxs(L,{variant:"outline",className:"font-mono",children:["removed in ",s.horizon]}),e[3]=s.horizon,e[4]=r):r=e[4];let a;e[5]!==l||e[6]!==r?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[l,r]}),e[5]=l,e[6]=r,e[7]=a):a=e[7];let n;e[8]!==s.message?(n=t.jsx("p",{className:"mt-1 font-mono text-xs whitespace-pre-wrap",children:s.message}),e[8]=s.message,e[9]=n):n=e[9];let o;e[10]!==s.source?(o=s.source&&t.jsx("p",{className:"text-muted-foreground mt-1 font-mono text-xs",children:s.source}),e[10]=s.source,e[11]=o):o=e[11];let c;e[12]!==a||e[13]!==n||e[14]!==o?(c=t.jsxs("div",{className:"min-w-0 flex-1",children:[a,n,o]}),e[12]=a,e[13]=n,e[14]=o,e[15]=c):c=e[15];let x;e[16]!==s.sparkline?(x=t.jsx(J,{data:s.sparkline,className:"h-10 w-32"}),e[16]=s.sparkline,e[17]=x):x=e[17];let m;e[18]!==s.count?(m=P(s.count),e[18]=s.count,e[19]=m):m=e[19];let d;e[20]!==m?(d=t.jsx("div",{className:"text-lg font-semibold tabular-nums",children:m}),e[20]=m,e[21]=d):d=e[21];let p;e[22]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"text-muted-foreground text-xs",children:"occurrences"}),e[22]=p):p=e[22];let u;e[23]!==d?(u=t.jsxs("div",{className:"text-right",children:[d,p]}),e[23]=d,e[24]=u):u=e[24];let h;e[25]!==u||e[26]!==x?(h=t.jsxs("div",{className:"flex shrink-0 items-center gap-4",children:[x,u]}),e[25]=u,e[26]=x,e[27]=h):h=e[27];let v;e[28]!==h||e[29]!==c?(v=t.jsxs("button",{type:"button",onClick:f,className:"flex flex-wrap items-start justify-between gap-4 text-left",children:[c,h]}),e[28]=h,e[29]=c,e[30]=v):v=e[30];let N;e[31]!==s.first_seen_at?(N=z(s.first_seen_at),e[31]=s.first_seen_at,e[32]=N):N=e[32];let b;e[33]!==N?(b=t.jsxs("span",{children:["First seen ",N]}),e[33]=N,e[34]=b):b=e[34];let y;e[35]!==s.last_seen_at?(y=z(s.last_seen_at),e[35]=s.last_seen_at,e[36]=y):y=e[36];let S;e[37]!==y?(S=t.jsxs("span",{children:["Last seen ",y]}),e[37]=y,e[38]=S):S=e[38];let k;e[39]!==b||e[40]!==S?(k=t.jsxs("div",{className:"text-muted-foreground flex gap-4 text-xs",children:[b,S]}),e[39]=b,e[40]=S,e[41]=k):k=e[41];let E;e[42]!==g||e[43]!==s.occurrences||e[44]!==j||e[45]!==_?(E=_&&t.jsx("div",{className:"mt-2 overflow-hidden rounded-lg border",children:t.jsx("table",{className:"w-full text-xs",children:t.jsx("tbody",{children:s.occurrences.map(D=>t.jsxs("tr",{className:"border-t first:border-t-0",children:[t.jsx("td",{className:"px-3 py-1.5 tabular-nums",children:z(D.occurred_at)}),t.jsx("td",{className:"px-3 py-1.5",children:D.execution_id?t.jsx($,{className:"font-mono hover:underline",href:Q({applicationId:g,environmentId:j,source:D.execution_source,executionId:D.execution_id}),children:D.execution_preview}):t.jsx("span",{className:"text-muted-foreground",children:"–"})})]},D.id))})})}),e[42]=g,e[43]=s.occurrences,e[44]=j,e[45]=_,e[46]=E):E=e[46];let C;return e[47]!==v||e[48]!==k||e[49]!==E?(C=t.jsx(K,{children:t.jsxs(M,{className:"flex flex-col gap-2 pt-4",children:[v,k,E]})}),e[47]=v,e[48]=k,e[49]=E,e[50]=C):C=e[50],C}function V(i){return!i}function _e(i){const e=B.c(33),{environment:s,window:g}=F().props,j=s.application_id,_=s.id;let w;e[0]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(O,{title:"Deprecations",description:"ActiveSupport::Deprecation warnings, grouped by gem and message."}),e[0]=w):w=e[0];let f;e[1]!==i.distinct?(f=P(i.distinct),e[1]=i.distinct,e[2]=f):f=e[2];let l;e[3]!==f?(l=t.jsx(q,{label:"Distinct deprecations",value:f}),e[3]=f,e[4]=l):l=e[4];let r;e[5]!==i.total_occurrences?(r=P(i.total_occurrences),e[5]=i.total_occurrences,e[6]=r):r=e[6];let a;e[7]!==r?(a=t.jsx(q,{label:"Total occurrences",value:r}),e[7]=r,e[8]=a):a=e[8];let n;e[9]!==i.new_this_window?(n=P(i.new_this_window),e[9]=i.new_this_window,e[10]=n):n=e[10];let o;e[11]!==n?(o=t.jsx(q,{label:"New this window",value:n}),e[11]=n,e[12]=o):o=e[12];let c;e[13]!==l||e[14]!==a||e[15]!==o?(c=t.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[l,a,o]}),e[13]=l,e[14]=a,e[15]=o,e[16]=c):c=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=[{key:"gem",label:"Gem"}],e[17]=x):x=e[17];let m;e[18]!==j||e[19]!==_||e[20]!==g?(m=h=>I.visit(R(j,_,{window:g,q:h||void 0}),{preserveState:!0}),e[18]=j,e[19]=_,e[20]=g,e[21]=m):m=e[21];let d;e[22]!==i.q||e[23]!==m?(d=t.jsx(H,{value:i.q,fields:x,onChange:m,placeholder:"gem:rails deprecated method"}),e[22]=i.q,e[23]=m,e[24]=d):d=e[24];let p;e[25]!==j||e[26]!==_||e[27]!==i.deprecations?(p=i.deprecations.length===0?t.jsx(G,{title:"No deprecations in this window."}):t.jsx("div",{className:"flex flex-col gap-3",children:i.deprecations.map(h=>t.jsx(U,{d:h,a:j,e:_},h.group_hash))}),e[25]=j,e[26]=_,e[27]=i.deprecations,e[28]=p):p=e[28];let u;return e[29]!==d||e[30]!==p||e[31]!==c?(u=t.jsxs(T,{title:"Deprecations",children:[w,c,d,p]}),e[29]=d,e[30]=p,e[31]=c,e[32]=u):u=e[32],u}export{_e as default};
@@ -1 +1 @@
1
- import{r as p,j as c,W as f}from"./inertia-CgBdJDaE.js";import{a as u}from"./app-wordmark-B-0yZiDb.js";var d=Object.defineProperty,v=(r,t)=>d(r,"name",{value:t,configurable:!0}),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],P=l.reduce((r,t)=>{const i=u(`Primitive.${t}`),e=p.forwardRef((o,s)=>{const{asChild:a,...n}=o,m=a?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...n,ref:s})});return e.displayName=`Primitive.${t}`,{...r,[t]:e}},{});function h(r,t){r&&f.flushSync(()=>r.dispatchEvent(t))}v(h,"dispatchDiscreteCustomEvent");export{P,h as d};
1
+ import{r as p,j as c,W as f}from"./inertia-Degv_G9N.js";import{a as u}from"./app-wordmark-1SRllgHv.js";var d=Object.defineProperty,v=(r,t)=>d(r,"name",{value:t,configurable:!0}),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],P=l.reduce((r,t)=>{const i=u(`Primitive.${t}`),e=p.forwardRef((o,s)=>{const{asChild:a,...n}=o,m=a?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...n,ref:s})});return e.displayName=`Primitive.${t}`,{...r,[t]:e}},{});function h(r,t){r&&f.flushSync(()=>r.dispatchEvent(t))}v(h,"dispatchDiscreteCustomEvent");export{P,h as d};
@@ -1 +1 @@
1
- import{c as M,u as T,j as l,L as N,G as O}from"./inertia-CgBdJDaE.js";import{D as $}from"./data-table-Bc3ZRnpb.js";import{E as D}from"./empty-state-CkPROZB0.js";import{P as F,E as H}from"./env-layout-aGQgTZRg.js";import{R as I}from"./relative-time-BHbJh8HW.js";import{S as R,a as C}from"./stat-Cd8QaTGw.js";import{c as d,p as G,m as K}from"./format-B9SDkrWj.js";import{y as W}from"./app-layout-CdJ5Qjms.js";import"./chart-hover-B0SjyWFy.js";import"./badge-DKvItdlb.js";import"./app-wordmark-B-0yZiDb.js";import"./use-live-LwJStJvD.js";import"./live-dot-Bejk0a5o.js";import"./index-Dy7Wg880.js";import"./index-B2_QluAw.js";import"./segmented-Dg8CES94.js";import"./label-BWgQzHCO.js";import"./arrow-up-DY1fS0tD.js";import"./checkbox-BsBkRg5n.js";function de(i){const e=M.c(40),{environment:A,window:b}=T().props,S=A.application_id,k=A.id,t=i.summary;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(F,{title:"Profiles",description:"Sampled stack profiles, grouped by the execution they profiled."}),e[0]=h):h=e[0];let o;e[1]!==t.profiles?(o=d(t.profiles),e[1]=t.profiles,e[2]=o):o=e[2];let s;e[3]!==o?(s=l.jsx(R,{label:"Profiles",value:o}),e[3]=o,e[4]=s):s=e[4];let r;e[5]!==t.executions||e[6]!==t.profiled?(r=G(t.profiled,t.executions),e[5]=t.executions,e[6]=t.profiled,e[7]=r):r=e[7];let x;e[8]!==t.profiled?(x=d(t.profiled),e[8]=t.profiled,e[9]=x):x=e[9];let _;e[10]!==t.executions?(_=d(t.executions),e[10]=t.executions,e[11]=_):_=e[11];const w=`${x} of ${_}`;let a;e[12]!==r||e[13]!==w?(a=l.jsx(R,{label:"Executions profiled",value:r,hint:w}),e[12]=r,e[13]=w,e[14]=a):a=e[14];let n;e[15]!==t.avg_samples?(n=d(t.avg_samples),e[15]=t.avg_samples,e[16]=n):n=e[16];let m;e[17]!==n?(m=l.jsx(R,{label:"Avg samples",value:n}),e[17]=n,e[18]=m):m=e[18];let p;e[19]!==s||e[20]!==a||e[21]!==m?(p=l.jsxs(C,{children:[s,a,m]}),e[19]=s,e[20]=a,e[21]=m,e[22]=p):p=e[22];let g;e[23]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx(D,{icon:W,title:"No profiles in this window",description:"Set RAILWATCH_PROFILE_SAMPLE_RATE in the app to profile slow executions."}),e[23]=g):g=e[23];let f;e[24]!==S||e[25]!==k||e[26]!==b?(f={key:"name",header:"Execution",className:"max-w-0",cell:L=>l.jsx(N,{href:O(S,k,L.profile_id,{window:b}),className:"block truncate font-mono text-xs hover:underline",children:L.name??L.group_hash})},e[24]=S,e[25]=k,e[26]=b,e[27]=f):f=e[27];let y,v,j,E;e[28]===Symbol.for("react.memo_cache_sentinel")?(y={key:"n",header:"Profiles",align:"right",cell:J},v={key:"avg",header:"Avg duration",align:"right",cell:B},j={key:"samples",hideOnMobile:!0,header:"Max samples",align:"right",cell:z},E={key:"last",hideOnMobile:!0,header:"Last seen",align:"right",cell:q},e[28]=y,e[29]=v,e[30]=j,e[31]=E):(y=e[28],v=e[29],j=e[30],E=e[31]);let c;e[32]!==f?(c=[f,y,v,j,E],e[32]=f,e[33]=c):c=e[33];let u;e[34]!==i.profiles||e[35]!==c?(u=l.jsx($,{rows:i.profiles,rowKey:Q,empty:g,columns:c}),e[34]=i.profiles,e[35]=c,e[36]=u):u=e[36];let P;return e[37]!==p||e[38]!==u?(P=l.jsxs(H,{title:"Profiles",children:[h,p,u]}),e[37]=p,e[38]=u,e[39]=P):P=e[39],P}function q(i){return l.jsx(I,{iso:i.last_seen_at})}function z(i){return d(i.max_samples)}function B(i){return K(i.avg_duration)}function J(i){return d(i.count)}function Q(i){return i.group_hash}export{de as default};
1
+ import{c as M,u as T,j as l,L as N,G as O}from"./inertia-Degv_G9N.js";import{D as $}from"./data-table-IvA7xvrK.js";import{E as D}from"./empty-state-BFTnQ2oT.js";import{P as F,E as H}from"./env-layout-erSDpIXg.js";import{R as I}from"./relative-time-6CoKr1lN.js";import{S as R,a as C}from"./stat-TxvoBiC8.js";import{c as d,p as G,m as K}from"./format-B9SDkrWj.js";import{y as W}from"./app-layout-B5Fcdwfz.js";import"./chart-hover-XYPNE2CX.js";import"./badge-CApjyWcg.js";import"./app-wordmark-1SRllgHv.js";import"./use-live-GKze1mNC.js";import"./live-dot-DaXEbkXo.js";import"./index-B0VXzXYG.js";import"./index-CX8Br7m9.js";import"./segmented-CVKq2Xpa.js";import"./label-B_vK19tR.js";import"./arrow-up-DwKQcab4.js";import"./checkbox-Bf41R8W6.js";function de(i){const e=M.c(40),{environment:A,window:b}=T().props,S=A.application_id,k=A.id,t=i.summary;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(F,{title:"Profiles",description:"Sampled stack profiles, grouped by the execution they profiled."}),e[0]=h):h=e[0];let o;e[1]!==t.profiles?(o=d(t.profiles),e[1]=t.profiles,e[2]=o):o=e[2];let s;e[3]!==o?(s=l.jsx(R,{label:"Profiles",value:o}),e[3]=o,e[4]=s):s=e[4];let r;e[5]!==t.executions||e[6]!==t.profiled?(r=G(t.profiled,t.executions),e[5]=t.executions,e[6]=t.profiled,e[7]=r):r=e[7];let x;e[8]!==t.profiled?(x=d(t.profiled),e[8]=t.profiled,e[9]=x):x=e[9];let _;e[10]!==t.executions?(_=d(t.executions),e[10]=t.executions,e[11]=_):_=e[11];const w=`${x} of ${_}`;let a;e[12]!==r||e[13]!==w?(a=l.jsx(R,{label:"Executions profiled",value:r,hint:w}),e[12]=r,e[13]=w,e[14]=a):a=e[14];let n;e[15]!==t.avg_samples?(n=d(t.avg_samples),e[15]=t.avg_samples,e[16]=n):n=e[16];let m;e[17]!==n?(m=l.jsx(R,{label:"Avg samples",value:n}),e[17]=n,e[18]=m):m=e[18];let p;e[19]!==s||e[20]!==a||e[21]!==m?(p=l.jsxs(C,{children:[s,a,m]}),e[19]=s,e[20]=a,e[21]=m,e[22]=p):p=e[22];let g;e[23]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx(D,{icon:W,title:"No profiles in this window",description:"Set RAILWATCH_PROFILE_SAMPLE_RATE in the app to profile slow executions."}),e[23]=g):g=e[23];let f;e[24]!==S||e[25]!==k||e[26]!==b?(f={key:"name",header:"Execution",className:"max-w-0",cell:L=>l.jsx(N,{href:O(S,k,L.profile_id,{window:b}),className:"block truncate font-mono text-xs hover:underline",children:L.name??L.group_hash})},e[24]=S,e[25]=k,e[26]=b,e[27]=f):f=e[27];let y,v,j,E;e[28]===Symbol.for("react.memo_cache_sentinel")?(y={key:"n",header:"Profiles",align:"right",cell:J},v={key:"avg",header:"Avg duration",align:"right",cell:B},j={key:"samples",hideOnMobile:!0,header:"Max samples",align:"right",cell:z},E={key:"last",hideOnMobile:!0,header:"Last seen",align:"right",cell:q},e[28]=y,e[29]=v,e[30]=j,e[31]=E):(y=e[28],v=e[29],j=e[30],E=e[31]);let c;e[32]!==f?(c=[f,y,v,j,E],e[32]=f,e[33]=c):c=e[33];let u;e[34]!==i.profiles||e[35]!==c?(u=l.jsx($,{rows:i.profiles,rowKey:Q,empty:g,columns:c}),e[34]=i.profiles,e[35]=c,e[36]=u):u=e[36];let P;return e[37]!==p||e[38]!==u?(P=l.jsxs(H,{title:"Profiles",children:[h,p,u]}),e[37]=p,e[38]=u,e[39]=P):P=e[39],P}function q(i){return l.jsx(I,{iso:i.last_seen_at})}function z(i){return d(i.max_samples)}function B(i){return K(i.avg_duration)}function J(i){return d(i.count)}function Q(i){return i.group_hash}export{de as default};
@@ -1 +1 @@
1
- import{c as Ie,u as Oe,r as re,S as fe,j as s,e as I,T as ze,H as Ee,L as Pe,i as ye}from"./inertia-CgBdJDaE.js";import{D as Me,i as Ae}from"./data-table-Bc3ZRnpb.js";import{E as Le}from"./empty-state-CkPROZB0.js";import{S as he,a as xe}from"./segmented-Dg8CES94.js";import{I as Se}from"./status-badge-Ys4b0fcG.js";import{B as _e}from"./badge-DKvItdlb.js";import{B as me}from"./app-wordmark-B-0yZiDb.js";import{C as pe}from"./checkbox-BsBkRg5n.js";import{S as ge,a as ke,b as be,c as je,d as ue}from"./select-CqKpvI98.js";import{e as Re,O as Be,A as De}from"./app-layout-CdJ5Qjms.js";import{c as de,a as Te}from"./format-B9SDkrWj.js";import"./chart-hover-B0SjyWFy.js";import"./index-B2_QluAw.js";import"./index-Dy7Wg880.js";import"./live-dot-Bejk0a5o.js";import"./label-BWgQzHCO.js";const He=["low","normal","high","urgent"];function bt(t){const e=Ie.c(82),{applications:O}=Oe().props,[m,ve]=re.useState(t.filters.q??""),[c,we]=re.useState(null);let z;e[0]===Symbol.for("react.memo_cache_sentinel")?(z=new Set,e[0]=z):z=e[0];const[a,E]=re.useState(z),ae=t.filters.status??"open";let P;e[1]!==t.filters?(P=n=>I.visit(fe({...t.filters,...n}),{preserveState:!0}),e[1]=t.filters,e[2]=P):P=e[2];const r=P,M=st;let A;e[3]===Symbol.for("react.memo_cache_sentinel")?(A={onOpen:(n,i)=>i?.newTab?window.open(M(n),"_blank"):I.visit(M(n)),onHighlightChange:n=>we(n?.id??null)},e[3]=A):A=e[3];const Ne=A;let L,R;e[4]!==c||e[5]!==t.issues?(L=()=>{const n=function(l){if(Ae(l)||l.key!=="r"&&l.key!=="i"&&l.key!=="a")return;const o=t.issues.findIndex(ce=>ce.id===c);if(o<0)return;l.preventDefault();const C=l.key==="r"?"resolve":l.key==="i"?"ignore":"assign_me";I.patch(ye(t.issues[o].id),{action_name:C},{preserveScroll:!0})};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},R=[c,t.issues],e[4]=c,e[5]=t.issues,e[6]=L,e[7]=R):(L=e[6],R=e[7]),re.useEffect(L,R);let B;e[8]===Symbol.for("react.memo_cache_sentinel")?(B=function(i){E(l=>{const o=new Set(l);return o.has(i)?o.delete(i):o.add(i),o})},e[8]=B):B=e[8];const Ce=B;let D;e[9]!==a?(D=function(i,l){I.post(ze(),{ids:[...a],action_name:i,value:l},{preserveScroll:!0,onSuccess:()=>E(new Set)})},e[9]=a,e[10]=D):D=e[10];const N=D;let T,H;e[11]===Symbol.for("react.memo_cache_sentinel")?(T=[{title:"Issues",href:fe()}],H=s.jsx(Ee,{title:"Issues"}),e[11]=T,e[12]=H):(T=e[11],H=e[12]);let K;e[13]===Symbol.for("react.memo_cache_sentinel")?(K=[["exception","Exceptions"],["performance","Performance"],["anomaly","Anomalies"]],e[13]=K):K=e[13];let d;e[14]!==r||e[15]!==t.filters.kind||e[16]!==t.kindCounts?(d=s.jsx(he,{children:K.map(n=>{const[i,l]=n;return s.jsxs(xe,{mono:!1,active:(t.filters.kind??"")===i,onClick:()=>r({kind:t.filters.kind===i?void 0:i}),className:"gap-2 px-3",children:[l,s.jsx("span",{className:"bg-muted text-muted-foreground rounded px-1.5 font-mono text-[10px]",children:de(t.kindCounts?.[i]??0)})]},i)})}),e[14]=r,e[15]=t.filters.kind,e[16]=t.kindCounts,e[17]=d):d=e[17];let u;e[18]!==r||e[19]!==m?(u=n=>{n.preventDefault(),r({q:m})},e[18]=r,e[19]=m,e[20]=u):u=e[20];let q;e[21]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(Re,{className:"text-muted-foreground size-3.5 shrink-0"}),e[21]=q):q=e[21];let V;e[22]===Symbol.for("react.memo_cache_sentinel")?(V=n=>ve(n.target.value),e[22]=V):V=e[22];let f;e[23]!==m?(f=s.jsx("input",{value:m,onChange:V,placeholder:"Search or source:browser",className:"placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent text-sm outline-none"}),e[23]=m,e[24]=f):f=e[24];let h;e[25]!==u||e[26]!==f?(h=s.jsxs("form",{className:"bg-card flex h-8 min-w-0 flex-1 items-center gap-1.5 rounded-md border px-2 md:max-w-xs",onSubmit:u,children:[q,f]}),e[25]=u,e[26]=f,e[27]=h):h=e[27];let U;e[28]===Symbol.for("react.memo_cache_sentinel")?(U=["open","Open",{}],e[28]=U):U=e[28];let $;e[29]===Symbol.for("react.memo_cache_sentinel")?($=["mine","Mine",{mine:"1"}],e[29]=$):$=e[29];let Q;e[30]===Symbol.for("react.memo_cache_sentinel")?(Q=["resolved","Resolved",{}],e[30]=Q):Q=e[30];let W;e[31]===Symbol.for("react.memo_cache_sentinel")?(W=[U,$,Q,["ignored","Ignored",{}]],e[31]=W):W=e[31];let x;e[32]!==r||e[33]!==t.counts||e[34]!==t.filters.mine||e[35]!==ae?(x=s.jsx("div",{className:"-mx-3 [scrollbar-width:none] overflow-x-auto px-3 md:mx-0 md:ml-auto md:overflow-visible md:px-0 [&::-webkit-scrollbar]:hidden",children:s.jsx(he,{children:W.map(n=>{const[i,l,o]=n,C=i==="mine",ce=C?t.filters.mine==="1":ae===i&&t.filters.mine!=="1";return s.jsxs(xe,{mono:!1,active:ce,onClick:()=>r(C?{mine:"1",status:"open"}:{status:i,mine:void 0,...o}),className:"px-3",children:[l,!C&&s.jsx("span",{className:"text-muted-foreground font-mono text-[10px]",children:de(t.counts[i]??0)})]},i)})})}),e[32]=r,e[33]=t.counts,e[34]=t.filters.mine,e[35]=ae,e[36]=x):x=e[36];let p;e[37]!==O||e[38]!==r||e[39]!==t.filters.application_id?(p=O.length>1&&s.jsxs(ge,{value:t.filters.application_id??"all",onValueChange:n=>r({application_id:n==="all"?void 0:n,environment_id:void 0}),children:[s.jsx(ke,{className:"h-8 w-44 text-xs",children:s.jsx(be,{placeholder:"Application"})}),s.jsxs(je,{children:[s.jsx(ue,{value:"all",children:"All applications"}),O.map(tt)]})]}),e[37]=O,e[38]=r,e[39]=t.filters.application_id,e[40]=p):p=e[40];let g;e[41]!==d||e[42]!==h||e[43]!==x||e[44]!==p?(g=s.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:flex-wrap md:items-center",children:[d,h,x,p]}),e[41]=d,e[42]=h,e[43]=x,e[44]=p,e[45]=g):g=e[45];let F,G;e[46]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(Le,{icon:Be,title:"No issues match",signal:"caution",description:"Issues are grouped from repeated request, job, and exception errors."}),G=n=>I.visit(M(n)),e[46]=F,e[47]=G):(F=e[46],G=e[47]);const oe=t.issues.length>0&&a.size===t.issues.length;let k;e[48]!==t.issues?(k=n=>E(n?new Set(t.issues.map(Ze)):new Set),e[48]=t.issues,e[49]=k):k=e[49];let b;e[50]!==oe||e[51]!==k?(b=s.jsx(pe,{checked:oe,onCheckedChange:k,"aria-label":"Select all",onClick:Ye}),e[50]=oe,e[51]=k,e[52]=b):b=e[52];let j;e[53]!==a?(j=n=>s.jsx(pe,{checked:a.has(n.id),onCheckedChange:()=>Ce(n.id),"aria-label":`Select ${n.key}`,onClick:Xe}),e[53]=a,e[54]=j):j=e[54];let y;e[55]!==b||e[56]!==j?(y={key:"sel",hideOnMobile:!0,header:b,cell:j},e[55]=b,e[56]=j,e[57]=y):y=e[57];let S;e[58]!==c?(S={key:"k",header:"Issue",cell:n=>s.jsxs("div",{className:"flex items-center gap-1",children:[n.id===c&&s.jsx("span",{className:"text-primary","aria-hidden":!0,children:"›"}),s.jsx(Pe,{className:"font-mono text-xs font-semibold hover:underline",href:M(n),children:n.key})]})},e[58]=c,e[59]=S):S=e[59];let J,X,Y,Z,ee,te,se,ne,ie;e[60]===Symbol.for("react.memo_cache_sentinel")?(J={key:"t",header:"Title",grow:!0,cell:Je},X={key:"env",hideOnMobile:!0,header:"Where",cell:Ge},Y={key:"kind",hideOnMobile:!0,header:"Kind",cell:Fe},Z={key:"s",hideOnMobile:!0,header:"Status",cell:We},ee={key:"p",hideOnMobile:!0,header:"Priority",cell:Qe},te={key:"a",hideOnMobile:!0,header:"Assignee",cell:$e},se={key:"n",header:"Events",align:"right",cell:Ue},ne={key:"u",hideOnMobile:!0,header:"Users",align:"right",cell:Ve},ie={key:"l",hideOnMobile:!0,header:"Last seen",align:"right",cell:qe},e[60]=J,e[61]=X,e[62]=Y,e[63]=Z,e[64]=ee,e[65]=te,e[66]=se,e[67]=ne,e[68]=ie):(J=e[60],X=e[61],Y=e[62],Z=e[63],ee=e[64],te=e[65],se=e[66],ne=e[67],ie=e[68]);let _;e[69]!==y||e[70]!==S?(_=[y,S,J,X,Y,Z,ee,te,se,ne,ie],e[69]=y,e[70]=S,e[71]=_):_=e[71];let v;e[72]!==t.issues||e[73]!==_?(v=s.jsx(Me,{rows:t.issues,rowKey:et,empty:F,onRowClick:G,keyboardNav:Ne,columns:_}),e[72]=t.issues,e[73]=_,e[74]=v):v=e[74];let w;e[75]!==N||e[76]!==a.size?(w=a.size>0&&s.jsxs("div",{className:"bg-background sticky bottom-4 z-10 flex w-fit items-center gap-2 self-start rounded-lg border p-2 shadow-md",children:[s.jsxs("span",{className:"px-1 text-sm",children:[a.size," selected"]}),s.jsx(me,{size:"sm",variant:"outline",onClick:()=>N("resolve"),children:"Resolve"}),s.jsx(me,{size:"sm",variant:"outline",onClick:()=>N("ignore"),children:"Ignore"}),s.jsxs(ge,{onValueChange:n=>N("priority",n),children:[s.jsx(ke,{className:"h-8 w-32",children:s.jsx(be,{placeholder:"Priority"})}),s.jsx(je,{children:He.map(Ke)})]}),s.jsx(me,{size:"sm",variant:"ghost",onClick:()=>E(new Set),children:"Clear"})]}),e[75]=N,e[76]=a.size,e[77]=w):w=e[77];let le;return e[78]!==g||e[79]!==v||e[80]!==w?(le=s.jsxs(De,{breadcrumbs:T,children:[H,s.jsxs("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:px-6 md:pt-2 md:pb-6",children:[g,v,w]})]}),e[78]=g,e[79]=v,e[80]=w,e[81]=le):le=e[81],le}function Ke(t){return s.jsx(ue,{value:t,className:"capitalize",children:t},t)}function qe(t){return s.jsx("span",{title:t.last_seen_at,children:Te(t.last_seen_at)})}function Ve(t){return t.affected_users}function Ue(t){return de(t.occurrences)}function $e(t){return t.assignee?.name??s.jsx("span",{className:"text-muted-foreground",children:"–"})}function Qe(t){return s.jsx("span",{className:t.priority==="urgent"?"text-destructive font-semibold":t.priority==="high"?"text-amber-600":"text-muted-foreground",children:t.priority})}function We(t){return s.jsx(Se,{status:t.status})}function Fe(t){return s.jsx(_e,{variant:"outline",children:t.kind})}function Ge(t){return s.jsxs("span",{className:"text-xs",children:[t.application?.name," · ",t.environment?.name]})}function Je(t){return s.jsxs("div",{className:"text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"line-clamp-1 font-medium",children:t.title}),t.fingerprint_source&&t.fingerprint_source!=="default"&&s.jsxs(_e,{variant:"secondary",className:"shrink-0",children:["grouped by ",t.fingerprint_source]}),s.jsx("span",{className:"md:hidden",children:s.jsx(Se,{status:t.status})})]}),s.jsx("div",{className:"text-muted-foreground font-mono",children:t.culprit})]})}function Xe(t){return t.stopPropagation()}function Ye(t){return t.stopPropagation()}function Ze(t){return t.id}function et(t){return t.id}function tt(t){return s.jsx(ue,{value:String(t.id),children:t.name},t.id)}function st(t){return ye(t.id)}export{bt as default};
1
+ import{c as Ie,u as Oe,r as re,S as fe,j as s,e as I,T as ze,H as Ee,L as Pe,i as ye}from"./inertia-Degv_G9N.js";import{D as Me,i as Ae}from"./data-table-IvA7xvrK.js";import{E as Le}from"./empty-state-BFTnQ2oT.js";import{S as he,a as xe}from"./segmented-CVKq2Xpa.js";import{I as Se}from"./status-badge-5NCVJHjo.js";import{B as _e}from"./badge-CApjyWcg.js";import{B as me}from"./app-wordmark-1SRllgHv.js";import{C as pe}from"./checkbox-Bf41R8W6.js";import{S as ge,a as ke,b as be,c as je,d as ue}from"./select-CsmSXsJ4.js";import{e as Re,O as Be,A as De}from"./app-layout-B5Fcdwfz.js";import{c as de,a as Te}from"./format-B9SDkrWj.js";import"./chart-hover-XYPNE2CX.js";import"./index-CX8Br7m9.js";import"./index-B0VXzXYG.js";import"./live-dot-DaXEbkXo.js";import"./label-B_vK19tR.js";const He=["low","normal","high","urgent"];function bt(t){const e=Ie.c(82),{applications:O}=Oe().props,[m,ve]=re.useState(t.filters.q??""),[c,we]=re.useState(null);let z;e[0]===Symbol.for("react.memo_cache_sentinel")?(z=new Set,e[0]=z):z=e[0];const[a,E]=re.useState(z),ae=t.filters.status??"open";let P;e[1]!==t.filters?(P=n=>I.visit(fe({...t.filters,...n}),{preserveState:!0}),e[1]=t.filters,e[2]=P):P=e[2];const r=P,M=st;let A;e[3]===Symbol.for("react.memo_cache_sentinel")?(A={onOpen:(n,i)=>i?.newTab?window.open(M(n),"_blank"):I.visit(M(n)),onHighlightChange:n=>we(n?.id??null)},e[3]=A):A=e[3];const Ne=A;let L,R;e[4]!==c||e[5]!==t.issues?(L=()=>{const n=function(l){if(Ae(l)||l.key!=="r"&&l.key!=="i"&&l.key!=="a")return;const o=t.issues.findIndex(ce=>ce.id===c);if(o<0)return;l.preventDefault();const C=l.key==="r"?"resolve":l.key==="i"?"ignore":"assign_me";I.patch(ye(t.issues[o].id),{action_name:C},{preserveScroll:!0})};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},R=[c,t.issues],e[4]=c,e[5]=t.issues,e[6]=L,e[7]=R):(L=e[6],R=e[7]),re.useEffect(L,R);let B;e[8]===Symbol.for("react.memo_cache_sentinel")?(B=function(i){E(l=>{const o=new Set(l);return o.has(i)?o.delete(i):o.add(i),o})},e[8]=B):B=e[8];const Ce=B;let D;e[9]!==a?(D=function(i,l){I.post(ze(),{ids:[...a],action_name:i,value:l},{preserveScroll:!0,onSuccess:()=>E(new Set)})},e[9]=a,e[10]=D):D=e[10];const N=D;let T,H;e[11]===Symbol.for("react.memo_cache_sentinel")?(T=[{title:"Issues",href:fe()}],H=s.jsx(Ee,{title:"Issues"}),e[11]=T,e[12]=H):(T=e[11],H=e[12]);let K;e[13]===Symbol.for("react.memo_cache_sentinel")?(K=[["exception","Exceptions"],["performance","Performance"],["anomaly","Anomalies"]],e[13]=K):K=e[13];let d;e[14]!==r||e[15]!==t.filters.kind||e[16]!==t.kindCounts?(d=s.jsx(he,{children:K.map(n=>{const[i,l]=n;return s.jsxs(xe,{mono:!1,active:(t.filters.kind??"")===i,onClick:()=>r({kind:t.filters.kind===i?void 0:i}),className:"gap-2 px-3",children:[l,s.jsx("span",{className:"bg-muted text-muted-foreground rounded px-1.5 font-mono text-[10px]",children:de(t.kindCounts?.[i]??0)})]},i)})}),e[14]=r,e[15]=t.filters.kind,e[16]=t.kindCounts,e[17]=d):d=e[17];let u;e[18]!==r||e[19]!==m?(u=n=>{n.preventDefault(),r({q:m})},e[18]=r,e[19]=m,e[20]=u):u=e[20];let q;e[21]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(Re,{className:"text-muted-foreground size-3.5 shrink-0"}),e[21]=q):q=e[21];let V;e[22]===Symbol.for("react.memo_cache_sentinel")?(V=n=>ve(n.target.value),e[22]=V):V=e[22];let f;e[23]!==m?(f=s.jsx("input",{value:m,onChange:V,placeholder:"Search or source:browser",className:"placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent text-sm outline-none"}),e[23]=m,e[24]=f):f=e[24];let h;e[25]!==u||e[26]!==f?(h=s.jsxs("form",{className:"bg-card flex h-8 min-w-0 flex-1 items-center gap-1.5 rounded-md border px-2 md:max-w-xs",onSubmit:u,children:[q,f]}),e[25]=u,e[26]=f,e[27]=h):h=e[27];let U;e[28]===Symbol.for("react.memo_cache_sentinel")?(U=["open","Open",{}],e[28]=U):U=e[28];let $;e[29]===Symbol.for("react.memo_cache_sentinel")?($=["mine","Mine",{mine:"1"}],e[29]=$):$=e[29];let Q;e[30]===Symbol.for("react.memo_cache_sentinel")?(Q=["resolved","Resolved",{}],e[30]=Q):Q=e[30];let W;e[31]===Symbol.for("react.memo_cache_sentinel")?(W=[U,$,Q,["ignored","Ignored",{}]],e[31]=W):W=e[31];let x;e[32]!==r||e[33]!==t.counts||e[34]!==t.filters.mine||e[35]!==ae?(x=s.jsx("div",{className:"-mx-3 [scrollbar-width:none] overflow-x-auto px-3 md:mx-0 md:ml-auto md:overflow-visible md:px-0 [&::-webkit-scrollbar]:hidden",children:s.jsx(he,{children:W.map(n=>{const[i,l,o]=n,C=i==="mine",ce=C?t.filters.mine==="1":ae===i&&t.filters.mine!=="1";return s.jsxs(xe,{mono:!1,active:ce,onClick:()=>r(C?{mine:"1",status:"open"}:{status:i,mine:void 0,...o}),className:"px-3",children:[l,!C&&s.jsx("span",{className:"text-muted-foreground font-mono text-[10px]",children:de(t.counts[i]??0)})]},i)})})}),e[32]=r,e[33]=t.counts,e[34]=t.filters.mine,e[35]=ae,e[36]=x):x=e[36];let p;e[37]!==O||e[38]!==r||e[39]!==t.filters.application_id?(p=O.length>1&&s.jsxs(ge,{value:t.filters.application_id??"all",onValueChange:n=>r({application_id:n==="all"?void 0:n,environment_id:void 0}),children:[s.jsx(ke,{className:"h-8 w-44 text-xs",children:s.jsx(be,{placeholder:"Application"})}),s.jsxs(je,{children:[s.jsx(ue,{value:"all",children:"All applications"}),O.map(tt)]})]}),e[37]=O,e[38]=r,e[39]=t.filters.application_id,e[40]=p):p=e[40];let g;e[41]!==d||e[42]!==h||e[43]!==x||e[44]!==p?(g=s.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:flex-wrap md:items-center",children:[d,h,x,p]}),e[41]=d,e[42]=h,e[43]=x,e[44]=p,e[45]=g):g=e[45];let F,G;e[46]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(Le,{icon:Be,title:"No issues match",signal:"caution",description:"Issues are grouped from repeated request, job, and exception errors."}),G=n=>I.visit(M(n)),e[46]=F,e[47]=G):(F=e[46],G=e[47]);const oe=t.issues.length>0&&a.size===t.issues.length;let k;e[48]!==t.issues?(k=n=>E(n?new Set(t.issues.map(Ze)):new Set),e[48]=t.issues,e[49]=k):k=e[49];let b;e[50]!==oe||e[51]!==k?(b=s.jsx(pe,{checked:oe,onCheckedChange:k,"aria-label":"Select all",onClick:Ye}),e[50]=oe,e[51]=k,e[52]=b):b=e[52];let j;e[53]!==a?(j=n=>s.jsx(pe,{checked:a.has(n.id),onCheckedChange:()=>Ce(n.id),"aria-label":`Select ${n.key}`,onClick:Xe}),e[53]=a,e[54]=j):j=e[54];let y;e[55]!==b||e[56]!==j?(y={key:"sel",hideOnMobile:!0,header:b,cell:j},e[55]=b,e[56]=j,e[57]=y):y=e[57];let S;e[58]!==c?(S={key:"k",header:"Issue",cell:n=>s.jsxs("div",{className:"flex items-center gap-1",children:[n.id===c&&s.jsx("span",{className:"text-primary","aria-hidden":!0,children:"›"}),s.jsx(Pe,{className:"font-mono text-xs font-semibold hover:underline",href:M(n),children:n.key})]})},e[58]=c,e[59]=S):S=e[59];let J,X,Y,Z,ee,te,se,ne,ie;e[60]===Symbol.for("react.memo_cache_sentinel")?(J={key:"t",header:"Title",grow:!0,cell:Je},X={key:"env",hideOnMobile:!0,header:"Where",cell:Ge},Y={key:"kind",hideOnMobile:!0,header:"Kind",cell:Fe},Z={key:"s",hideOnMobile:!0,header:"Status",cell:We},ee={key:"p",hideOnMobile:!0,header:"Priority",cell:Qe},te={key:"a",hideOnMobile:!0,header:"Assignee",cell:$e},se={key:"n",header:"Events",align:"right",cell:Ue},ne={key:"u",hideOnMobile:!0,header:"Users",align:"right",cell:Ve},ie={key:"l",hideOnMobile:!0,header:"Last seen",align:"right",cell:qe},e[60]=J,e[61]=X,e[62]=Y,e[63]=Z,e[64]=ee,e[65]=te,e[66]=se,e[67]=ne,e[68]=ie):(J=e[60],X=e[61],Y=e[62],Z=e[63],ee=e[64],te=e[65],se=e[66],ne=e[67],ie=e[68]);let _;e[69]!==y||e[70]!==S?(_=[y,S,J,X,Y,Z,ee,te,se,ne,ie],e[69]=y,e[70]=S,e[71]=_):_=e[71];let v;e[72]!==t.issues||e[73]!==_?(v=s.jsx(Me,{rows:t.issues,rowKey:et,empty:F,onRowClick:G,keyboardNav:Ne,columns:_}),e[72]=t.issues,e[73]=_,e[74]=v):v=e[74];let w;e[75]!==N||e[76]!==a.size?(w=a.size>0&&s.jsxs("div",{className:"bg-background sticky bottom-4 z-10 flex w-fit items-center gap-2 self-start rounded-lg border p-2 shadow-md",children:[s.jsxs("span",{className:"px-1 text-sm",children:[a.size," selected"]}),s.jsx(me,{size:"sm",variant:"outline",onClick:()=>N("resolve"),children:"Resolve"}),s.jsx(me,{size:"sm",variant:"outline",onClick:()=>N("ignore"),children:"Ignore"}),s.jsxs(ge,{onValueChange:n=>N("priority",n),children:[s.jsx(ke,{className:"h-8 w-32",children:s.jsx(be,{placeholder:"Priority"})}),s.jsx(je,{children:He.map(Ke)})]}),s.jsx(me,{size:"sm",variant:"ghost",onClick:()=>E(new Set),children:"Clear"})]}),e[75]=N,e[76]=a.size,e[77]=w):w=e[77];let le;return e[78]!==g||e[79]!==v||e[80]!==w?(le=s.jsxs(De,{breadcrumbs:T,children:[H,s.jsxs("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:px-6 md:pt-2 md:pb-6",children:[g,v,w]})]}),e[78]=g,e[79]=v,e[80]=w,e[81]=le):le=e[81],le}function Ke(t){return s.jsx(ue,{value:t,className:"capitalize",children:t},t)}function qe(t){return s.jsx("span",{title:t.last_seen_at,children:Te(t.last_seen_at)})}function Ve(t){return t.affected_users}function Ue(t){return de(t.occurrences)}function $e(t){return t.assignee?.name??s.jsx("span",{className:"text-muted-foreground",children:"–"})}function Qe(t){return s.jsx("span",{className:t.priority==="urgent"?"text-destructive font-semibold":t.priority==="high"?"text-amber-600":"text-muted-foreground",children:t.priority})}function We(t){return s.jsx(Se,{status:t.status})}function Fe(t){return s.jsx(_e,{variant:"outline",children:t.kind})}function Ge(t){return s.jsxs("span",{className:"text-xs",children:[t.application?.name," · ",t.environment?.name]})}function Je(t){return s.jsxs("div",{className:"text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"line-clamp-1 font-medium",children:t.title}),t.fingerprint_source&&t.fingerprint_source!=="default"&&s.jsxs(_e,{variant:"secondary",className:"shrink-0",children:["grouped by ",t.fingerprint_source]}),s.jsx("span",{className:"md:hidden",children:s.jsx(Se,{status:t.status})})]}),s.jsx("div",{className:"text-muted-foreground font-mono",children:t.culprit})]})}function Xe(t){return t.stopPropagation()}function Ye(t){return t.stopPropagation()}function Ze(t){return t.id}function et(t){return t.id}function tt(t){return s.jsx(ue,{value:String(t.id),children:t.name},t.id)}function st(t){return ye(t.id)}export{bt as default};