railwatch 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -0
  3. data/app/controllers/railwatch/commands_controller.rb +1 -1
  4. data/app/controllers/railwatch/environment_scoped.rb +18 -36
  5. data/app/controllers/railwatch/exceptions_controller.rb +8 -9
  6. data/app/controllers/railwatch/processes_controller.rb +1 -1
  7. data/app/controllers/railwatch/releases_controller.rb +2 -2
  8. data/app/controllers/railwatch/requests_controller.rb +1 -19
  9. data/app/controllers/railwatch/tenants_controller.rb +2 -2
  10. data/app/controllers/railwatch/thresholds_controller.rb +8 -1
  11. data/app/jobs/railwatch/detect_performance_issues_job.rb +12 -2
  12. data/app/models/railwatch/anomaly_rule.rb +20 -2
  13. data/app/models/railwatch/execution_presenter.rb +1 -1
  14. data/app/models/railwatch/filter_query.rb +20 -0
  15. data/app/models/railwatch/saved_view.rb +1 -1
  16. data/app/models/railwatch/telemetry/aggregations.rb +154 -19
  17. data/app/models/railwatch/telemetry/exception.rb +7 -0
  18. data/app/models/railwatch/telemetry/execution.rb +18 -0
  19. data/app/models/railwatch/telemetry/log.rb +6 -0
  20. data/app/models/railwatch/telemetry/query.rb +7 -0
  21. data/app/models/railwatch/telemetry/release_health.rb +12 -6
  22. data/app/models/railwatch/telemetry/rollup.rb +17 -2
  23. data/app/models/railwatch/telemetry/tenant.rb +8 -23
  24. data/app/models/railwatch/telemetry_record.rb +8 -6
  25. data/app/models/railwatch/threshold.rb +41 -4
  26. data/app/models/railwatch/window.rb +66 -0
  27. data/docs/embedded.md +11 -0
  28. data/lib/railwatch/version.rb +1 -1
  29. data/lib/railwatch.rb +12 -0
  30. data/public/railwatch/assets/app-layout-DDyQa72H.js +1 -0
  31. data/public/railwatch/assets/{app-wordmark-DDNuuq5_.js → app-wordmark-o9CODKP0.js} +1 -1
  32. data/public/railwatch/assets/{appearance-C3LMdsDy.js → appearance-BwuCXabr.js} +1 -1
  33. data/public/railwatch/assets/application-B7h1MIhi.css +1 -0
  34. data/public/railwatch/assets/{arrow-up-DYTCBENO.js → arrow-up-C6PxDiY3.js} +1 -1
  35. data/public/railwatch/assets/{auth-layout-CzPRawuI.js → auth-layout-BRt8MGFD.js} +1 -1
  36. data/public/railwatch/assets/{badge-s7YDycYg.js → badge-CAxXV8za.js} +1 -1
  37. data/public/railwatch/assets/{braces-BFrg-bvp.js → braces-DgomTCNf.js} +1 -1
  38. data/public/railwatch/assets/{card-DiW-JhK3.js → card-cAtqCxWl.js} +1 -1
  39. data/public/railwatch/assets/{chart-nsdZV0Dv.js → chart-BBeBkkNa.js} +1 -1
  40. data/public/railwatch/assets/{chart-hover-DMWx5-Rs.js → chart-hover-B1M9jc0y.js} +1 -1
  41. data/public/railwatch/assets/chart-panel-DUQTz_C8.js +1 -0
  42. data/public/railwatch/assets/{checkbox-C2AqEZXX.js → checkbox-CmhMHWZO.js} +1 -1
  43. data/public/railwatch/assets/{code-DVJtYP7h.js → code-DESvxyTj.js} +1 -1
  44. data/public/railwatch/assets/{copy-block-D1myf7is.js → copy-block-BkSU5832.js} +1 -1
  45. data/public/railwatch/assets/{copy-id-CyRCMfdH.js → copy-id-D03GhN9F.js} +1 -1
  46. data/public/railwatch/assets/{cursor-load-more-JfSVBn9C.js → cursor-load-more-CRyuMeQb.js} +1 -1
  47. data/public/railwatch/assets/{data-table-CwtPkw_i.js → data-table-BIlt7Rtm.js} +1 -1
  48. data/public/railwatch/assets/{edit-fB83T9Yh.js → edit-Bb6MKoe4.js} +1 -1
  49. data/public/railwatch/assets/{edit-BvTugIpj.js → edit-DJ0D0wHN.js} +1 -1
  50. data/public/railwatch/assets/{edit-DvpDUM-t.js → edit-O0NSBWxo.js} +1 -1
  51. data/public/railwatch/assets/{empty-state-CshhuRUU.js → empty-state-C38il627.js} +1 -1
  52. data/public/railwatch/assets/env-layout-REF7OM4q.js +1 -0
  53. data/public/railwatch/assets/{execution-path-CdEerUGH.js → execution-path-FYLq1TwC.js} +1 -1
  54. data/public/railwatch/assets/{filter-bar-BMHf8xBb.js → filter-bar-CYog9Alp.js} +1 -1
  55. data/public/railwatch/assets/{flamegraph-uYWk1Yov.js → flamegraph-DSs69foN.js} +1 -1
  56. data/public/railwatch/assets/{frames-B5ZECkvt.js → frames-BUi2J5Mk.js} +1 -1
  57. data/public/railwatch/assets/{google-sign-in-button-CAvsXYb4.js → google-sign-in-button-BQiIKFdd.js} +1 -1
  58. data/public/railwatch/assets/{index-X13K9BbO.js → index-8-hnAhOD.js} +1 -1
  59. data/public/railwatch/assets/{index-Czq2bi1U.js → index-BaR1U9An.js} +1 -1
  60. data/public/railwatch/assets/{index-iVNm3uzI.js → index-BeOh2t_S.js} +1 -1
  61. data/public/railwatch/assets/{index-vC9KU2bt.js → index-BiiyMcA0.js} +1 -1
  62. data/public/railwatch/assets/{index-B-qRsj0W.js → index-BoUBioBP.js} +1 -1
  63. data/public/railwatch/assets/{index-B4IRsZXK.js → index-C-PmdhXA.js} +1 -1
  64. data/public/railwatch/assets/{index-fA7h22qS.js → index-C3A_9imx.js} +1 -1
  65. data/public/railwatch/assets/{index-DcuyMiuG.js → index-C7OtLq_3.js} +1 -1
  66. data/public/railwatch/assets/{index-BMgA9NNc.js → index-CFFpnzIS.js} +1 -1
  67. data/public/railwatch/assets/{index-CAkCcAty.js → index-CFRLPs4J.js} +1 -1
  68. data/public/railwatch/assets/{index-DMcsT2ES.js → index-CGs4m_fa.js} +1 -1
  69. data/public/railwatch/assets/{index-DuGGTdIJ.js → index-CICUIFHL.js} +1 -1
  70. data/public/railwatch/assets/{index-DVUwgfqP.js → index-C_upSl_k.js} +1 -1
  71. data/public/railwatch/assets/{index-CaJvo0Oc.js → index-CiPo4Gob.js} +1 -1
  72. data/public/railwatch/assets/{index-BIom4V2g.js → index-CpkI015n.js} +1 -1
  73. data/public/railwatch/assets/{index-Zf9xXwq7.js → index-CrZ3vHDL.js} +1 -1
  74. data/public/railwatch/assets/{index-ClJtZh5Q.js → index-CsoN51vW.js} +1 -1
  75. data/public/railwatch/assets/{index-1-78ZewP.js → index-DDI_Zx5V.js} +1 -1
  76. data/public/railwatch/assets/index-DSvlZVWG.js +1 -0
  77. data/public/railwatch/assets/{index-C7bU7oUF.js → index-DW2CBbxU.js} +1 -1
  78. data/public/railwatch/assets/{index-DzoUj38Q.js → index-Dh4IRLFI.js} +1 -1
  79. data/public/railwatch/assets/{index-CdM3F3jz.js → index-DqTFTP8p.js} +1 -1
  80. data/public/railwatch/assets/index-DrcKVG2f.js +1 -0
  81. data/public/railwatch/assets/{index-BIZsdfdM.js → index-DtHmuB9Q.js} +1 -1
  82. data/public/railwatch/assets/{index-QxAKxnHK.js → index-DvjY3dPD.js} +1 -1
  83. data/public/railwatch/assets/{index-dKn1tKSX.js → index-FhUaPPab.js} +1 -1
  84. data/public/railwatch/assets/{index-DYrF-A96.js → index-JdCVBrw8.js} +1 -1
  85. data/public/railwatch/assets/{index-DWMKU6mG.js → index-QpTtwFwu.js} +1 -1
  86. data/public/railwatch/assets/{index-Bw_ByIps.js → index-ZOGOB8SA.js} +1 -1
  87. data/public/railwatch/assets/{index-D-O1LUPq.js → index-ZSZg9rtq.js} +1 -1
  88. data/public/railwatch/assets/{index-ClG89uia.js → index-r0tSIplE.js} +1 -1
  89. data/public/railwatch/assets/{index-DJIXGkfB.js → index-sTYvcbkh.js} +1 -1
  90. data/public/railwatch/assets/{index-n16aviHx.js → index-so4lRrRq.js} +1 -1
  91. data/public/railwatch/assets/{index-CRShH-fR.js → index-tpz-OGUP.js} +1 -1
  92. data/public/railwatch/assets/{index-BpnfuXi-.js → index-umIAl-pL.js} +1 -1
  93. data/public/railwatch/assets/{inertia-CUTKXjxg.js → inertia-DLew8ZNx.js} +2 -2
  94. data/public/railwatch/assets/{input-error-C8ycyeD0.js → input-error-cvM6_Jht.js} +1 -1
  95. data/public/railwatch/assets/{json-viewer-CJECqZ0l.js → json-viewer-D922McGi.js} +1 -1
  96. data/public/railwatch/assets/{klass-Br9dng39.js → klass-CrwICqN8.js} +1 -1
  97. data/public/railwatch/assets/{label-B32Ks8n7.js → label-GWl7I6sf.js} +1 -1
  98. data/public/railwatch/assets/{layout-5ZhRtywp.js → layout-0ZAnD3zl.js} +1 -1
  99. data/public/railwatch/assets/{live-dot-Bb1UYT9F.js → live-dot-D1n_BreY.js} +1 -1
  100. data/public/railwatch/assets/{nav-XUcwnBso.js → nav-DPxr1NNC.js} +1 -1
  101. data/public/railwatch/assets/{new-0xyEF6NL.js → new-Cdl6pqST.js} +1 -1
  102. data/public/railwatch/assets/{new-GIkDYLt8.js → new-D-ZzUK9a.js} +1 -1
  103. data/public/railwatch/assets/{new-CdvlEBjJ.js → new-DEVkYv-z.js} +1 -1
  104. data/public/railwatch/assets/{new-YBWOo9_V.js → new-DHAHDrN7.js} +1 -1
  105. data/public/railwatch/assets/{new-CV011uLi.js → new-Dz4lZf1L.js} +1 -1
  106. data/public/railwatch/assets/{new-D9-ORiNW.js → new-GMrRFurX.js} +1 -1
  107. data/public/railwatch/assets/{onboarding-BqEuP-Ml.js → onboarding-D1vwaHYT.js} +1 -1
  108. data/public/railwatch/assets/{origin-identity-DrJ4D2TX.js → origin-identity-Bk9yHWZ1.js} +1 -1
  109. data/public/railwatch/assets/{percentile-picker-_wllqYoJ.js → percentile-picker-DfSx9yJO.js} +1 -1
  110. data/public/railwatch/assets/{relative-time-CV7V8aSP.js → relative-time-CjIjb8Lg.js} +1 -1
  111. data/public/railwatch/assets/{release-health-DRNLZtT7.js → release-health-4b3tivEf.js} +1 -1
  112. data/public/railwatch/assets/{route-D9slUz_a.js → route-C_5BUtHK.js} +1 -1
  113. data/public/railwatch/assets/{segmented-Bj70Htrs.js → segmented-BgbT3wZa.js} +1 -1
  114. data/public/railwatch/assets/{select-DJBZX2ky.js → select-DmunxCKE.js} +1 -1
  115. data/public/railwatch/assets/{separator-UUo0bkyc.js → separator-BXzEdZ_8.js} +1 -1
  116. data/public/railwatch/assets/series-chart-Xf49v9cv.js +1 -0
  117. data/public/railwatch/assets/{show-BQtEcTeD.js → show-B2zLAW83.js} +1 -1
  118. data/public/railwatch/assets/{show-DR6u4CR7.js → show-BLpWUHWD.js} +1 -1
  119. data/public/railwatch/assets/{show-Pu3Iehw5.js → show-CAl7xcex.js} +1 -1
  120. data/public/railwatch/assets/{show-DoCg0ifP.js → show-DI8IhNUH.js} +1 -1
  121. data/public/railwatch/assets/{show-BT3tKCgP.js → show-DSP9Cq_C.js} +2 -2
  122. data/public/railwatch/assets/{show-C0uC3gnA.js → show-DXs4deaC.js} +1 -1
  123. data/public/railwatch/assets/{show-D7tP881O.js → show-DYskfl3-.js} +1 -1
  124. data/public/railwatch/assets/{show-BpyCRL-I.js → show-DcpTFiLi.js} +1 -1
  125. data/public/railwatch/assets/{show-yQipmite.js → show-Dily73Xk.js} +1 -1
  126. data/public/railwatch/assets/{show-COfP8yWt.js → show-DlRVS18-.js} +1 -1
  127. data/public/railwatch/assets/{show-ChDJZjoj.js → show-Dn-GwFZL.js} +1 -1
  128. data/public/railwatch/assets/{show-BoG7jcwk.js → show-DnR1Dnjd.js} +1 -1
  129. data/public/railwatch/assets/{show-DnBCvlnd.js → show-SHwZjXb7.js} +1 -1
  130. data/public/railwatch/assets/{show-CefJwag7.js → show-SvLOcPrx.js} +1 -1
  131. data/public/railwatch/assets/{show-D7IL22Hy.js → show-Y74rM0VT.js} +1 -1
  132. data/public/railwatch/assets/{show-TTCk2Met.js → show-mU38uGTg.js} +1 -1
  133. data/public/railwatch/assets/{show-GruxlCov.js → show-vQ4bndYD.js} +1 -1
  134. data/public/railwatch/assets/{sort-header-CqQQhaxg.js → sort-header-Dcq9bzmo.js} +1 -1
  135. data/public/railwatch/assets/{sparkline-cell-BwdBz0yv.js → sparkline-cell-BON3qQUB.js} +1 -1
  136. data/public/railwatch/assets/{stat-IghK3WjD.js → stat-DFEyFxkO.js} +1 -1
  137. data/public/railwatch/assets/{status-badge-XYUN9gUA.js → status-badge-BaUKP7Yo.js} +1 -1
  138. data/public/railwatch/assets/{tenant-path-SxnZbfU1.js → tenant-path-DPZPc985.js} +1 -1
  139. data/public/railwatch/assets/{text-link-NCL9N5D5.js → text-link-BO77t9Xk.js} +1 -1
  140. data/public/railwatch/assets/{textarea-DhI1dmQa.js → textarea-DTqrCiV0.js} +1 -1
  141. data/public/railwatch/assets/{timeline-CLAwsAlo.js → timeline-D5rJ0es2.js} +1 -1
  142. data/public/railwatch/assets/{transition-DpTb9Yiv.js → transition-DMIrZVth.js} +1 -1
  143. data/public/railwatch/assets/{use-clipboard-D5i6e5kf.js → use-clipboard-ByoUGQqA.js} +1 -1
  144. data/public/railwatch/assets/{use-live-V-slSdFJ.js → use-live-D7xKz2ma.js} +1 -1
  145. data/public/railwatch/manifest.json +1288 -1288
  146. metadata +118 -117
  147. data/public/railwatch/assets/app-layout-DUk54qUM.js +0 -1
  148. data/public/railwatch/assets/application-CwshqwM6.css +0 -1
  149. data/public/railwatch/assets/chart-panel-BlirnMrQ.js +0 -1
  150. data/public/railwatch/assets/env-layout-Dkp_4NvM.js +0 -1
  151. data/public/railwatch/assets/index-CZWzIE8F.js +0 -1
  152. data/public/railwatch/assets/index-DpWQMikK.js +0 -1
  153. data/public/railwatch/assets/series-chart-C1YrNlID.js +0 -1
  154. /data/db/railwatch_telemetry_migrate/{20260919000000_create_export_queue.rb → 20260919000100_create_export_queue.rb} +0 -0
@@ -0,0 +1 @@
1
+ import{a4 as re,r as c,c as $,j as A}from"./inertia-DLew8ZNx.js";import{u as Ye}from"./chart-hover-B1M9jc0y.js";import{i as K,e as He,s as ne,D as ie,f as ge,g as Ct,Z as oe,L as R,u as be,h as Mt,j as Tt,k as U,l as Ue,m as F,n as H,o as Kt,p as le,q as se,r as qe,t as Pe,v as q,w as Ze,x as Ae,y as ce,z as Je,S as Qe,A as et,E as ue,F as tt,G as at,H as rt,I as nt,J as it,K as ot,M as Wt,N as Z,O as J,P as lt,Q as st,T as M,U as ct,V as ut,W as dt,_ as Rt,$ as $t,a0 as Ft,a1 as Ie,a2 as Ee,a3 as zt,a4 as Bt,a5 as Vt,a6 as Gt,a7 as Xt,a8 as Yt,a9 as pe,aa as Q,ab as pt,ac as vt,R as Ht,C as ke,X as je,Y as Oe,a as Se,b as we,c as de,B as ve,d as Ut}from"./chart-BBeBkkNa.js";import{m as ft}from"./format-B9SDkrWj.js";function he(){return he=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},he.apply(null,arguments)}var mt=t=>{var{cx:e,cy:a,r,className:n}=t,i=re("recharts-dot",n);return K(e)&&K(a)&&K(r)?c.createElement("circle",he({},ne(t),He(t),{className:i,cx:e,cy:a,r})):null},qt=["points"];function Re(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function fe(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Re(Object(a),!0).forEach(function(r){Zt(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Re(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function Zt(t,e,a){return(e=Jt(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Jt(t){var e=Qt(t,"string");return typeof e=="symbol"?e:e+""}function Qt(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ee(){return ee=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},ee.apply(null,arguments)}function ea(t,e){if(t==null)return{};var a,r,n=ta(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function ta(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}function aa(t){var{option:e,dotProps:a,className:r}=t;if(c.isValidElement(e))return c.cloneElement(e,a);if(typeof e=="function")return e(a);var n=re(r,typeof e!="boolean"?e.className:""),i=a??{},{points:l}=i,o=ea(i,qt);return c.createElement(mt,ee({},o,{className:n}))}function ra(t,e){return t==null?!1:e?!0:t.length===1}function ht(t){var{points:e,dot:a,className:r,dotClassName:n,dataKey:i,baseProps:l,needClip:o,clipPathId:s,zIndex:d=ie.scatter}=t;if(!ra(e,a))return null;var u=ge(a),p=Ct(a),v=e.map((m,y)=>{var x,h,g=fe(fe(fe({r:3},l),p),{},{index:y,cx:(x=m.x)!==null&&x!==void 0?x:void 0,cy:(h=m.y)!==null&&h!==void 0?h:void 0,dataKey:i,value:m.value,payload:m.payload,points:e});return c.createElement(aa,{key:"dot-".concat(y),option:a,dotProps:g,className:n})}),f={};return o&&s!=null&&(f.clipPath="url(#clipPath-".concat(u?"":"dots-").concat(s,")")),c.createElement(oe,{zIndex:d},c.createElement(R,ee({className:r},f),v))}function $e(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function me(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?$e(Object(a),!0).forEach(function(r){na(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):$e(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function na(t,e,a){return(e=ia(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ia(t){var e=oa(t,"string");return typeof e=="symbol"?e:e+""}function oa(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var la=t=>{var{point:e,childIndex:a,mainColor:r,activeDot:n,dataKey:i,clipPath:l}=t;if(n===!1||e.x==null||e.y==null)return null;var o={index:a,dataKey:i,cx:e.x,cy:e.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:e.payload,value:e.value},s=me(me(me({},o),Ue(n)),He(n)),d;return c.isValidElement(n)?d=c.cloneElement(n,s):typeof n=="function"?d=n(s):d=c.createElement(mt,s),c.createElement(R,{className:"recharts-active-dot",clipPath:l},d)};function ye(t){var{points:e,mainColor:a,activeDot:r,itemDataKey:n,clipPath:i,zIndex:l=ie.activeDot}=t,o=be(Mt),s=Tt();if(e==null||s==null)return null;var d=e.find(u=>s.includes(u.payload));return U(d)?null:c.createElement(oe,{zIndex:l},c.createElement(la,{point:d,childIndex:Number(o),mainColor:a,dataKey:n,activeDot:r,clipPath:i}))}var yt=(t,e,a,r)=>le(t,"xAxis",e,r),xt=(t,e,a,r)=>se(t,"xAxis",e,r),gt=(t,e,a,r)=>le(t,"yAxis",a,r),bt=(t,e,a,r)=>se(t,"yAxis",a,r),sa=F([H,yt,gt,xt,bt],(t,e,a,r,n)=>Pe(t,"xAxis")?q(e,r,!1):q(a,n,!1)),ca=(t,e,a,r,n)=>n;function ua(t){return t.type==="line"}var da=F([qe,ca],(t,e)=>t.filter(ua).find(a=>a.id===e)),pa=F([H,yt,gt,xt,bt,da,sa,Kt],(t,e,a,r,n,i,l,o)=>{var{chartData:s,dataStartIndex:d,dataEndIndex:u}=o;if(!(i==null||e==null||a==null||r==null||n==null||r.length===0||n.length===0||l==null||t!=="horizontal"&&t!=="vertical")){var{dataKey:p,data:v}=i,f;if(v!=null&&v.length>0?f=v:f=s?.slice(d,u+1),f!=null)return Na({layout:t,xAxis:e,yAxis:a,xAxisTicks:r,yAxisTicks:n,dataKey:p,bandSize:l,displayedData:f})}});function Pt(t){var e=Ue(t),a=3,r=2;if(e!=null){var{r:n,strokeWidth:i}=e,l=Number(n),o=Number(i);return(Number.isNaN(l)||l<0)&&(l=a),(Number.isNaN(o)||o<0)&&(o=r),{r:l,strokeWidth:o}}return{r:a,strokeWidth:r}}var va=["id"],fa=["type","layout","connectNulls","needClip","shape"],ma=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function X(){return X=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},X.apply(null,arguments)}function Fe(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function T(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Fe(Object(a),!0).forEach(function(r){ha(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Fe(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function ha(t,e,a){return(e=ya(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ya(t){var e=xa(t,"string");return typeof e=="symbol"?e:e+""}function xa(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function De(t,e){if(t==null)return{};var a,r,n=ga(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function ga(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}var ba=t=>{var{dataKey:e,name:a,stroke:r,legendType:n,hide:i}=t;return[{inactive:i,dataKey:e,type:n,color:r,value:ue(a,e),payload:t}]},Pa=c.memo(t=>{var{dataKey:e,data:a,stroke:r,strokeWidth:n,fill:i,name:l,hide:o,unit:s,tooltipType:d,id:u}=t,p={dataDefinedOnItem:a,getPosition:at,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:e,nameKey:void 0,name:ue(l,e),hide:o,type:d,color:r,unit:s,graphicalItemId:u}};return c.createElement(tt,{tooltipEntrySettings:p})}),At=(t,e)=>"".concat(e,"px ").concat(t,"px");function Aa(t,e){for(var a=t.length%2!==0?[...t,0]:t,r=[],n=0;n<e;++n)r.push(...a);return r}var Ia=(t,e,a)=>{var r=a.reduce((v,f)=>v+f,0);if(!r)return At(e,t);for(var n=Math.floor(t/r),i=t%r,l=[],o=0,s=0;o<a.length;s+=(d=a[o])!==null&&d!==void 0?d:0,++o){var d,u=a[o];if(u!=null&&s+u>i){l=[...a.slice(0,o),i-s];break}}var p=l.length%2===0?[0,e]:[e];return[...Aa(a,n),...l,...p].map(v=>"".concat(v,"px")).join(", ")};function Ea(t){var{clipPathId:e,points:a,props:r}=t,{dot:n,dataKey:i,needClip:l}=r,{id:o}=r,s=De(r,va),d=ne(s);return c.createElement(ht,{points:a,dot:n,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:d,needClip:l,clipPathId:e})}function ka(t){var{showLabels:e,children:a,points:r}=t,n=c.useMemo(()=>r?.map(i=>{var l,o,s={x:(l=i.x)!==null&&l!==void 0?l:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:0,lowerWidth:0,upperWidth:0,height:0};return T(T({},s),{},{value:i.value,payload:i.payload,viewBox:s,parentViewBox:void 0,fill:void 0})}),[r]);return c.createElement(ut,{value:e?n:void 0},a)}function ze(t){var{clipPathId:e,pathRef:a,points:r,strokeDasharray:n,props:i}=t,{type:l,layout:o,connectNulls:s,needClip:d,shape:u}=i,p=De(i,fa),v=T(T({},dt(p)),{},{fill:"none",className:"recharts-line-curve",clipPath:d?"url(#clipPath-".concat(e,")"):void 0,points:r,type:l,layout:o,connectNulls:s,strokeDasharray:n??i.strokeDasharray});return c.createElement(c.Fragment,null,r?.length>1&&c.createElement(Rt,X({shapeType:"curve",option:u},v,{pathRef:a})),c.createElement(Ea,{points:r,clipPathId:e,props:i}))}function ja(t){try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch{return 0}}function Oa(t){var{clipPathId:e,props:a,pathRef:r,previousPointsRef:n,longestAnimatedLengthRef:i}=t,{points:l,strokeDasharray:o,isAnimationActive:s,animationBegin:d,animationDuration:u,animationEasing:p,animateNewValues:v,width:f,height:m,onAnimationEnd:y,onAnimationStart:x}=a,h=n.current,g=lt(l,"recharts-line-"),P=c.useRef(g),[b,I]=c.useState(!1),E=!b,k=c.useCallback(()=>{typeof y=="function"&&y(),I(!1)},[y]),j=c.useCallback(()=>{typeof x=="function"&&x(),I(!0)},[x]),S=ja(r.current),D=c.useRef(0);P.current!==g&&(D.current=i.current,P.current=g);var w=D.current;return c.createElement(ka,{points:l,showLabels:E},a.children,c.createElement(st,{animationId:g,begin:d,duration:u,isActive:s,easing:p,onAnimationEnd:k,onAnimationStart:j,key:g},O=>{var L=M(w,S+w,O),_=Math.min(L,S),N;if(s)if(o){var z="".concat(o).split(/[,\s]+/gim).map(C=>parseFloat(C));N=Ia(_,S,z)}else N=At(S,_);else N=o==null?void 0:String(o);if(O>0&&S>0&&(n.current=l,i.current=Math.max(i.current,_)),h){var G=h.length/l.length,Te=O===1?l:l.map((C,_t)=>{var Ke=Math.floor(_t*G);if(h[Ke]){var We=h[Ke];return T(T({},C),{},{x:M(We.x,C.x,O),y:M(We.y,C.y,O)})}return v?T(T({},C),{},{x:M(f*2,C.x,O),y:M(m/2,C.y,O)}):T(T({},C),{},{x:C.x,y:C.y})});return n.current=Te,c.createElement(ze,{props:a,points:Te,clipPathId:e,pathRef:r,strokeDasharray:N})}return c.createElement(ze,{props:a,points:l,clipPathId:e,pathRef:r,strokeDasharray:N})}),c.createElement(ct,{label:a.label}))}function Sa(t){var{clipPathId:e,props:a}=t,r=c.useRef(null),n=c.useRef(0),i=c.useRef(null);return c.createElement(Oa,{props:a,clipPathId:e,previousPointsRef:r,longestAnimatedLengthRef:n,pathRef:i})}var wa=(t,e)=>{var a,r;return{x:(a=t.x)!==null&&a!==void 0?a:void 0,y:(r=t.y)!==null&&r!==void 0?r:void 0,value:t.value,errorVal:Z(t.payload,e)}};class Da extends c.Component{render(){var{hide:e,dot:a,points:r,className:n,xAxisId:i,yAxisId:l,top:o,left:s,width:d,height:u,id:p,needClip:v,zIndex:f}=this.props;if(e)return null;var m=re("recharts-line",n),y=p,{r:x,strokeWidth:h}=Pt(a),g=ge(a),P=x*2+h,b=v?"url(#clipPath-".concat(g?"":"dots-").concat(y,")"):void 0;return c.createElement(oe,{zIndex:f},c.createElement(R,{className:m},v&&c.createElement("defs",null,c.createElement(ot,{clipPathId:y,xAxisId:i,yAxisId:l}),!g&&c.createElement("clipPath",{id:"clipPath-dots-".concat(y)},c.createElement("rect",{x:s-P/2,y:o-P/2,width:d+P,height:u+P}))),c.createElement(Wt,{xAxisId:i,yAxisId:l,data:r,dataPointFormatter:wa,errorBarOffset:0},c.createElement(Sa,{props:this.props,clipPathId:y}))),c.createElement(ye,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:b}))}}var It={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:ie.line,type:"linear"};function La(t){var e=Ae(t,It),{activeDot:a,animateNewValues:r,animationBegin:n,animationDuration:i,animationEasing:l,connectNulls:o,dot:s,hide:d,isAnimationActive:u,label:p,legendType:v,xAxisId:f,yAxisId:m,id:y}=e,x=De(e,ma),{needClip:h}=rt(f,m),g=nt(),P=it(),b=ce(),I=be(D=>pa(D,f,m,b,y));if(P!=="horizontal"&&P!=="vertical"||I==null||g==null)return null;var{height:E,width:k,x:j,y:S}=g;return c.createElement(Da,X({},x,{id:y,connectNulls:o,dot:s,activeDot:a,animateNewValues:r,animationBegin:n,animationDuration:i,animationEasing:l,isAnimationActive:u,hide:d,label:p,legendType:v,xAxisId:f,yAxisId:m,points:I,layout:P,height:E,width:k,left:j,top:S,needClip:h}))}function Na(t){var{layout:e,xAxis:a,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:l,bandSize:o,displayedData:s}=t;return s.map((d,u)=>{var p=Z(d,l);if(e==="horizontal"){var v=J({axis:a,ticks:n,bandSize:o,entry:d,index:u}),f=U(p)?null:r.scale.map(p);return{x:v,y:f??null,value:p,payload:d}}var m=U(p)?null:a.scale.map(p),y=J({axis:r,ticks:i,bandSize:o,entry:d,index:u});return m==null||y==null?null:{x:m,y,value:p,payload:d}}).filter(Boolean)}function _a(t){var e=Ae(t,It),a=ce();return c.createElement(Je,{id:e.id,type:"line"},r=>c.createElement(c.Fragment,null,c.createElement(Qe,{legendPayload:ba(e)}),c.createElement(Pa,{dataKey:e.dataKey,data:e.data,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,unit:e.unit,tooltipType:e.tooltipType,id:r}),c.createElement(et,{type:"line",id:r,data:e.data,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,dataKey:e.dataKey,hide:e.hide,isPanorama:a}),c.createElement(La,X({},e,{id:r}))))}var xe=c.memo(_a,Ze);xe.displayName="Line";var Et=(t,e,a)=>le(t,"xAxis",Ie(t,e),a),kt=(t,e,a)=>se(t,"xAxis",Ie(t,e),a),jt=(t,e,a)=>le(t,"yAxis",Ee(t,e),a),Ot=(t,e,a)=>se(t,"yAxis",Ee(t,e),a),Ca=F([H,Et,jt,kt,Ot],(t,e,a,r,n)=>Pe(t,"xAxis")?q(e,r,!1):q(a,n,!1)),Ma=(t,e)=>e,St=F([qe,Ma],(t,e)=>t.filter(a=>a.type==="area").find(a=>a.id===e)),wt=t=>{var e=H(t),a=Pe(e,"xAxis");return a?"yAxis":"xAxis"},Ta=(t,e)=>{var a=wt(t);return a==="yAxis"?Ee(t,e):Ie(t,e)},Ka=(t,e,a)=>Bt(t,wt(t),Ta(t,e),a),Wa=F([St,Ka],(t,e)=>{var a;if(!(t==null||e==null)){var{stackId:r}=t,n=zt(t);if(!(r==null||n==null)){var i=(a=e[r])===null||a===void 0?void 0:a.stackedData,l=i?.find(o=>o.key===n);if(l!=null)return l.map(o=>[o[0],o[1]])}}}),Ra=F([H,Et,jt,kt,Ot,Wa,$t,Ca,St,Ft],(t,e,a,r,n,i,l,o,s,d)=>{var{chartData:u,dataStartIndex:p,dataEndIndex:v}=l;if(!(s==null||t!=="horizontal"&&t!=="vertical"||e==null||a==null||r==null||n==null||r.length===0||n.length===0||o==null)){var{data:f}=s,m;if(f&&f.length>0?m=f:m=u?.slice(p,v+1),m!=null)return ir({layout:t,xAxis:e,yAxis:a,xAxisTicks:r,yAxisTicks:n,dataStartIndex:p,areaSettings:s,stackedData:i,displayedData:m,chartBaseValue:d,bandSize:o})}}),$a=["id"],Fa=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function W(){return W=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},W.apply(null,arguments)}function Dt(t,e){if(t==null)return{};var a,r,n=za(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function za(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}function Be(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function B(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Be(Object(a),!0).forEach(function(r){Ba(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Be(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function Ba(t,e,a){return(e=Va(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Va(t){var e=Ga(t,"string");return typeof e=="symbol"?e:e+""}function Ga(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function te(t,e){return t&&t!=="none"?t:e}var Xa=t=>{var{dataKey:e,name:a,stroke:r,fill:n,legendType:i,hide:l}=t;return[{inactive:l,dataKey:e,type:i,color:te(r,n),value:ue(a,e),payload:t}]},Ya=c.memo(t=>{var{dataKey:e,data:a,stroke:r,strokeWidth:n,fill:i,name:l,hide:o,unit:s,tooltipType:d,id:u}=t,p={dataDefinedOnItem:a,getPosition:at,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:e,nameKey:void 0,name:ue(l,e),hide:o,type:d,color:te(r,i),unit:s,graphicalItemId:u}};return c.createElement(tt,{tooltipEntrySettings:p})});function Ha(t){var{clipPathId:e,points:a,props:r}=t,{needClip:n,dot:i,dataKey:l}=r,o=ne(r);return c.createElement(ht,{points:a,dot:i,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:o,needClip:n,clipPathId:e})}function Ua(t){var{showLabels:e,children:a,points:r}=t,n=r.map(i=>{var l,o,s={x:(l=i.x)!==null&&l!==void 0?l:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:0,lowerWidth:0,upperWidth:0,height:0};return B(B({},s),{},{value:i.value,payload:i.payload,parentViewBox:void 0,viewBox:s,fill:void 0})});return c.createElement(ut,{value:e?n:void 0},a)}function Ve(t){var{points:e,baseLine:a,needClip:r,clipPathId:n,props:i}=t,{layout:l,type:o,stroke:s,connectNulls:d,isRange:u}=i,{id:p}=i,v=Dt(i,$a),f=ne(v),m=dt(v);return c.createElement(c.Fragment,null,e?.length>1&&c.createElement(R,{clipPath:r?"url(#clipPath-".concat(n,")"):void 0},c.createElement(pe,W({},m,{id:p,points:e,connectNulls:d,type:o,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),s!=="none"&&c.createElement(pe,W({},f,{className:"recharts-area-curve",layout:l,type:o,connectNulls:d,fill:"none",points:e})),s!=="none"&&u&&Array.isArray(a)&&c.createElement(pe,W({},f,{className:"recharts-area-curve",layout:l,type:o,connectNulls:d,fill:"none",points:a}))),c.createElement(Ha,{points:e,props:v,clipPathId:n}))}function qa(t){var e,a,{alpha:r,baseLine:n,points:i,strokeWidth:l}=t,o=(e=i[0])===null||e===void 0?void 0:e.y,s=(a=i[i.length-1])===null||a===void 0?void 0:a.y;if(!Q(o)||!Q(s))return null;var d=r*Math.abs(o-s),u=Math.max(...i.map(p=>p.x||0));return K(n)?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(...n.map(p=>p.x||0),u)),K(u)?c.createElement("rect",{x:0,y:o<s?o:o-d,width:u+(l?parseInt("".concat(l),10):1),height:Math.floor(d)}):null}function Za(t){var e,a,{alpha:r,baseLine:n,points:i,strokeWidth:l}=t,o=(e=i[0])===null||e===void 0?void 0:e.x,s=(a=i[i.length-1])===null||a===void 0?void 0:a.x;if(!Q(o)||!Q(s))return null;var d=r*Math.abs(o-s),u=Math.max(...i.map(p=>p.y||0));return K(n)?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(...n.map(p=>p.y||0),u)),K(u)?c.createElement("rect",{x:o<s?o:o-d,y:0,width:d,height:Math.floor(u+(l?parseInt("".concat(l),10):1))}):null}function Ja(t){var{alpha:e,layout:a,points:r,baseLine:n,strokeWidth:i}=t;return a==="vertical"?c.createElement(qa,{alpha:e,points:r,baseLine:n,strokeWidth:i}):c.createElement(Za,{alpha:e,points:r,baseLine:n,strokeWidth:i})}function Qa(t){var{needClip:e,clipPathId:a,props:r,previousPointsRef:n,previousBaselineRef:i}=t,{points:l,baseLine:o,isAnimationActive:s,animationBegin:d,animationDuration:u,animationEasing:p,onAnimationStart:v,onAnimationEnd:f}=r,m=c.useMemo(()=>({points:l,baseLine:o}),[l,o]),y=lt(m,"recharts-area-"),x=Xt(),[h,g]=c.useState(!1),P=!h,b=c.useCallback(()=>{typeof f=="function"&&f(),g(!1)},[f]),I=c.useCallback(()=>{typeof v=="function"&&v(),g(!0)},[v]);if(x==null)return null;var E=n.current,k=i.current;return c.createElement(Ua,{showLabels:P,points:l},r.children,c.createElement(st,{animationId:y,begin:d,duration:u,isActive:s,easing:p,onAnimationEnd:b,onAnimationStart:I,key:y},j=>{if(E){var S=E.length/l.length,D=j===1?l:l.map((O,L)=>{var _=Math.floor(L*S);if(E[_]){var N=E[_];return B(B({},O),{},{x:M(N.x,O.x,j),y:M(N.y,O.y,j)})}return O}),w;return K(o)?w=M(k,o,j):U(o)||Yt(o)?w=M(k,0,j):w=o.map((O,L)=>{var _=Math.floor(L*S);if(Array.isArray(k)&&k[_]){var N=k[_];return B(B({},O),{},{x:M(N.x,O.x,j),y:M(N.y,O.y,j)})}return O}),j>0&&(n.current=D,i.current=w),c.createElement(Ve,{points:D,baseLine:w,needClip:e,clipPathId:a,props:r})}return j>0&&(n.current=l,i.current=o),c.createElement(R,null,s&&c.createElement("defs",null,c.createElement("clipPath",{id:"animationClipPath-".concat(a)},c.createElement(Ja,{alpha:j,points:l,baseLine:o,layout:x,strokeWidth:r.strokeWidth}))),c.createElement(R,{clipPath:"url(#animationClipPath-".concat(a,")")},c.createElement(Ve,{points:l,baseLine:o,needClip:e,clipPathId:a,props:r})))}),c.createElement(ct,{label:r.label}))}function er(t){var{needClip:e,clipPathId:a,props:r}=t,n=c.useRef(null),i=c.useRef();return c.createElement(Qa,{needClip:e,clipPathId:a,props:r,previousPointsRef:n,previousBaselineRef:i})}class tr extends c.PureComponent{render(){var{hide:e,dot:a,points:r,className:n,top:i,left:l,needClip:o,xAxisId:s,yAxisId:d,width:u,height:p,id:v,baseLine:f,zIndex:m}=this.props;if(e)return null;var y=re("recharts-area",n),x=v,{r:h,strokeWidth:g}=Pt(a),P=ge(a),b=h*2+g,I=o?"url(#clipPath-".concat(P?"":"dots-").concat(x,")"):void 0;return c.createElement(oe,{zIndex:m},c.createElement(R,{className:y},o&&c.createElement("defs",null,c.createElement(ot,{clipPathId:x,xAxisId:s,yAxisId:d}),!P&&c.createElement("clipPath",{id:"clipPath-dots-".concat(x)},c.createElement("rect",{x:l-b/2,y:i-b/2,width:u+b,height:p+b}))),c.createElement(er,{needClip:o,clipPathId:x,props:this.props})),c.createElement(ye,{points:r,mainColor:te(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:I}),this.props.isRange&&Array.isArray(f)&&c.createElement(ye,{points:f,mainColor:te(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:I}))}}var ar={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:ie.area};function rr(t){var e,{activeDot:a,animationBegin:r,animationDuration:n,animationEasing:i,connectNulls:l,dot:o,fill:s,fillOpacity:d,hide:u,isAnimationActive:p,legendType:v,stroke:f,xAxisId:m,yAxisId:y}=t,x=Dt(t,Fa),h=it(),g=Gt(),{needClip:P}=rt(m,y),b=ce(),{points:I,isRange:E,baseLine:k}=(e=be(L=>Ra(L,t.id,b)))!==null&&e!==void 0?e:{},j=nt();if(h!=="horizontal"&&h!=="vertical"||j==null||g!=="AreaChart"&&g!=="ComposedChart")return null;var{height:S,width:D,x:w,y:O}=j;return!I||!I.length?null:c.createElement(tr,W({},x,{activeDot:a,animationBegin:r,animationDuration:n,animationEasing:i,baseLine:k,connectNulls:l,dot:o,fill:s,fillOpacity:d,height:S,hide:u,layout:h,isAnimationActive:p,isRange:E,legendType:v,needClip:P,points:I,stroke:f,width:D,left:w,top:O,xAxisId:m,yAxisId:y}))}var nr=(t,e,a,r,n)=>{var i=a??e;if(K(i))return i;var l=t==="horizontal"?n:r,o=l.scale.domain();if(l.type==="number"){var s=Math.max(o[0],o[1]),d=Math.min(o[0],o[1]);return i==="dataMin"?d:i==="dataMax"||s<0?s:Math.max(Math.min(o[0],o[1]),0)}return i==="dataMin"?o[0]:i==="dataMax"?o[1]:o[0]};function ir(t){var{areaSettings:{connectNulls:e,baseValue:a,dataKey:r},stackedData:n,layout:i,chartBaseValue:l,xAxis:o,yAxis:s,displayedData:d,dataStartIndex:u,xAxisTicks:p,yAxisTicks:v,bandSize:f}=t,m=n&&n.length,y=nr(i,l,a,o,s),x=i==="horizontal",h=!1,g=d.map((b,I)=>{var E,k,j,S;if(m)S=n[u+I];else{var D=Z(b,r);Array.isArray(D)?(S=D,h=!0):S=[y,D]}var w=(E=(k=S)===null||k===void 0?void 0:k[1])!==null&&E!==void 0?E:null,O=w==null||m&&!e&&Z(b,r)==null;if(x){var L;return{x:J({axis:o,ticks:p,bandSize:f,entry:b,index:I}),y:O?null:(L=s.scale.map(w))!==null&&L!==void 0?L:null,value:S,payload:b}}return{x:O?null:(j=o.scale.map(w))!==null&&j!==void 0?j:null,y:J({axis:s,ticks:v,bandSize:f,entry:b,index:I}),value:S,payload:b}}),P;return m||h?P=g.map(b=>{var I,E=Array.isArray(b.value)?b.value[0]:null;if(x){var k;return{x:b.x,y:E!=null&&b.y!=null&&(k=s.scale.map(E))!==null&&k!==void 0?k:null,payload:b.payload}}return{x:E!=null&&(I=o.scale.map(E))!==null&&I!==void 0?I:null,y:b.y,payload:b.payload}}):P=x?s.scale.map(y):o.scale.map(y),{points:g,baseLine:P??0,isRange:h}}function or(t){var e=Ae(t,ar),a=ce();return c.createElement(Je,{id:e.id,type:"area"},r=>c.createElement(c.Fragment,null,c.createElement(Qe,{legendPayload:Xa(e)}),c.createElement(Ya,{dataKey:e.dataKey,data:e.data,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,unit:e.unit,tooltipType:e.tooltipType,id:r}),c.createElement(et,{type:"area",id:r,data:e.data,dataKey:e.dataKey,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,stackId:Vt(e.stackId),hide:e.hide,barSize:void 0,baseValue:e.baseValue,isPanorama:a,connectNulls:e.connectNulls}),c.createElement(rr,W({},e,{id:r}))))}var Le=c.memo(or,Ze);Le.displayName="Area";var lr=["axis"],sr=c.forwardRef((t,e)=>c.createElement(pt,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:lr,tooltipPayloadSearcher:vt,categoricalChartProps:t,ref:e})),cr=["axis"],Lt=c.forwardRef((t,e)=>c.createElement(pt,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:cr,tooltipPayloadSearcher:vt,categoricalChartProps:t,ref:e}));const ae={count:{label:"OK",color:"var(--ok)"},errors:{label:"5xx",color:"var(--danger)"},client_errors:{label:"4xx",color:"var(--warning)"},p50:{label:"p50",color:"var(--primary)"},p95:{label:"p95",color:"var(--primary)"},p99:{label:"p99",color:"var(--primary)"},avg:{label:"avg",color:"var(--warning)"}};function ur(t){return t.length<2?0:new Date(t[1].t).getTime()-new Date(t[0].t).getTime()}const Ge=1440*60*1e3;function Ne(t){const e=ur(t),a=t.length>1?new Date(t[t.length-1].t).getTime()-new Date(t[0].t).getTime():0;return e>=Ge||a>2*Ge?r=>new Date(r).toLocaleDateString(void 0,{month:"short",day:"numeric"}):r=>new Date(r).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function Y(t){return new Date(t).toLocaleString(void 0,{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"})}const V={fontSize:10,fontFamily:"var(--font-mono)"};function Xe(t,e,a){return n=>{const i=$.c(8),{cx:l,cy:o,index:s}=n;if(l==null||o==null||s==null){let v;return i[0]!==s?(v=A.jsx("g",{},s),i[0]=s,i[1]=v):v=i[1],v}const d=t[s-1]?.[e]??null,u=t[s+1]?.[e]??null;if(d!=null||u!=null){let v;return i[2]!==s?(v=A.jsx("g",{},s),i[2]=s,i[3]=v):v=i[3],v}let p;return i[4]!==l||i[5]!==o||i[6]!==s?(p=A.jsx("circle",{cx:l,cy:o,r:2,fill:a},s),i[4]=l,i[5]=o,i[6]=s,i[7]=p):p=i[7],p}}function _e(t=[]){return t.map(e=>A.jsx(Ht,{x:new Date(e.at).toISOString(),stroke:"var(--primary)",strokeDasharray:"3 3",label:{value:e.ref,position:"insideTopRight",fontSize:9,fill:"var(--primary)",fontFamily:"var(--font-mono)"}},e.deploy))}function Ce(){const t=$.c(2),{setHoveredKey:e}=Ye();let a;return t[0]!==e?(a={onMouseMove:r=>{typeof r?.activeLabel=="string"&&e(r.activeLabel)},onMouseLeave:()=>e(null)},t[0]=e,t[1]=a):a=t[1],a}function Me(t){const e=$.c(11),{data:a}=t;if(a.length===0)return null;let r;e[0]!==a[0].t?(r=Y(a[0].t),e[0]=a[0].t,e[1]=r):r=e[1];let n;e[2]!==r?(n=A.jsx("span",{children:r}),e[2]=r,e[3]=n):n=e[3];const i=a[a.length-1];let l;e[4]!==i.t?(l=Y(i.t),e[4]=i.t,e[5]=l):l=e[5];let o;e[6]!==l?(o=A.jsx("span",{children:l}),e[6]=l,e[7]=o):o=e[7];let s;return e[8]!==n||e[9]!==o?(s=A.jsxs("div",{className:"text-muted-foreground mt-1 flex justify-between font-mono text-[10px]",children:[n,o]}),e[8]=n,e[9]=o,e[10]=s):s=e[10],s}function Sr(t){const e=$.c(31),{data:a,deploys:r,label:n,className:i}=t,l=n===void 0?"Requests":n,o=i===void 0?"h-40":i;let s;e[0]!==l?(s={...ae,count:{...ae.count,label:l}},e[0]=l,e[1]=s):s=e[1];const d=s,u=Ce();let p;e[2]!==a?(p=Ne(a),e[2]=a,e[3]=p):p=e[3];const v=p,f=`${o} w-full`;let m;e[4]!==a?(m=a.map(vr),e[4]=a,e[5]=m):m=e[5];const y=u.onMouseMove,x=u.onMouseLeave;let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[6]=h):h=e[6];let g;e[7]!==v?(g=A.jsx(je,{dataKey:"t",tickFormatter:v,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[7]=v,e[8]=g):g=e[8];let P;e[9]===Symbol.for("react.memo_cache_sentinel")?(P=A.jsx(Oe,{width:36,tickLine:!1,axisLine:!1,tick:V,tickFormatter:pr}),e[9]=P):P=e[9];let b,I,E;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=A.jsx(Se,{content:A.jsx(we,{labelFormatter:dr})}),I=A.jsx(ve,{dataKey:"ok",name:"count",fill:"var(--color-count)",stackId:"a"}),E=A.jsx(ve,{dataKey:"client_errors",fill:"var(--color-client_errors)",stackId:"a"}),e[10]=b,e[11]=I,e[12]=E):(b=e[10],I=e[11],E=e[12]);let k;e[13]===Symbol.for("react.memo_cache_sentinel")?(k=A.jsx(ve,{dataKey:"errors",fill:"var(--color-errors)",stackId:"a",radius:[2,2,0,0]}),e[13]=k):k=e[13];let j;e[14]!==r?(j=_e(r),e[14]=r,e[15]=j):j=e[15];let S;e[16]!==u.onMouseLeave||e[17]!==u.onMouseMove||e[18]!==g||e[19]!==j||e[20]!==m?(S=A.jsxs(Ut,{data:m,barCategoryGap:2,onMouseMove:y,onMouseLeave:x,children:[h,g,P,b,I,E,k,j]}),e[16]=u.onMouseLeave,e[17]=u.onMouseMove,e[18]=g,e[19]=j,e[20]=m,e[21]=S):S=e[21];let D;e[22]!==d||e[23]!==S||e[24]!==f?(D=A.jsx(de,{config:d,className:f,children:S}),e[22]=d,e[23]=S,e[24]=f,e[25]=D):D=e[25];let w;e[26]!==a?(w=A.jsx(Me,{data:a}),e[26]=a,e[27]=w):w=e[27];let O;return e[28]!==D||e[29]!==w?(O=A.jsxs("div",{children:[D,w]}),e[28]=D,e[29]=w,e[30]=O):O=e[30],O}function dr(t){return Y(String(t))}function pr(t){return Nt(Number(t))}function vr(t){return{...t,t:new Date(t.t).toISOString(),ok:Math.max(0,t.count-t.errors-t.client_errors)}}const fr={ok:{label:"ok",color:"var(--ok)"},errored:{label:"errored",color:"var(--warning)"},crashed:{label:"crashed",color:"var(--danger)"}};function wr(t){const e=$.c(27),{data:a,deploys:r,className:n}=t,i=n===void 0?"h-40":n,l=Ce();let o;e[0]!==a?(o=Ne(a),e[0]=a,e[1]=o):o=e[1];const s=o,d=`${i} w-full`;let u;e[2]!==a?(u=a.map(xr),e[2]=a,e[3]=u):u=e[3];const p=l.onMouseMove,v=l.onMouseLeave;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[4]=f):f=e[4];let m;e[5]!==s?(m=A.jsx(je,{dataKey:"t",tickFormatter:s,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[5]=s,e[6]=m):m=e[6];let y;e[7]===Symbol.for("react.memo_cache_sentinel")?(y=A.jsx(Oe,{width:36,tickLine:!1,axisLine:!1,tick:V,tickFormatter:yr}),e[7]=y):y=e[7];let x,h;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=A.jsx(Se,{content:A.jsx(we,{labelFormatter:hr})}),h=["ok","errored","crashed"],e[8]=x,e[9]=h):(x=e[8],h=e[9]);let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=h.map(mr),e[10]=g):g=e[10];let P;e[11]!==r?(P=_e(r),e[11]=r,e[12]=P):P=e[12];let b;e[13]!==l.onMouseLeave||e[14]!==l.onMouseMove||e[15]!==P||e[16]!==u||e[17]!==m?(b=A.jsxs(Lt,{data:u,onMouseMove:p,onMouseLeave:v,children:[f,m,y,x,g,P]}),e[13]=l.onMouseLeave,e[14]=l.onMouseMove,e[15]=P,e[16]=u,e[17]=m,e[18]=b):b=e[18];let I;e[19]!==b||e[20]!==d?(I=A.jsx(de,{config:fr,className:d,children:b}),e[19]=b,e[20]=d,e[21]=I):I=e[21];let E;e[22]!==a?(E=A.jsx(Me,{data:a}),e[22]=a,e[23]=E):E=e[23];let k;return e[24]!==I||e[25]!==E?(k=A.jsxs("div",{children:[I,E]}),e[24]=I,e[25]=E,e[26]=k):k=e[26],k}function mr(t){return A.jsx(Le,{dataKey:t,stackId:"sessions",stroke:`var(--color-${t})`,fill:`var(--color-${t})`,fillOpacity:.3,strokeWidth:1.25,isAnimationActive:!1},t)}function hr(t){return Y(String(t))}function yr(t){return Nt(Number(t))}function xr(t){return{...t,t:new Date(t.t).toISOString()}}function Dr(t){const e=$.c(58),{data:a,deploys:r,percentile:n,className:i}=t,l=n===void 0?"p95":n,o=i===void 0?"h-40":i,s=Ce();let d;e[0]!==a?(d=Ne(a),e[0]=a,e[1]=d):d=e[1];const u=d;let p,v,f,m,y,x,h,g,P,b,I,E,k,j,S,D;if(e[2]!==o||e[3]!==a||e[4]!==s.onMouseLeave||e[5]!==s.onMouseMove||e[6]!==l||e[7]!==u){const G=a.map(Ar);f=de,P=ae,b=`${o} w-full`,v=sr,j=G,S=s.onMouseMove,D=s.onMouseLeave,e[24]===Symbol.for("react.memo_cache_sentinel")?(m=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[24]=m):m=e[24],e[25]!==u?(y=A.jsx(je,{dataKey:"t",tickFormatter:u,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[25]=u,e[26]=y):y=e[26],e[27]===Symbol.for("react.memo_cache_sentinel")?(x=A.jsx(Oe,{width:44,tickLine:!1,axisLine:!1,tick:V,tickFormatter:Pr}),e[27]=x):x=e[27],e[28]===Symbol.for("react.memo_cache_sentinel")?(h=A.jsx(Se,{content:A.jsx(we,{labelFormatter:br,formatter:gr})}),e[28]=h):h=e[28],g=A.jsx(xe,{dataKey:l,stroke:`var(--color-${l})`,dot:Xe(G,l,`var(--color-${l})`),strokeWidth:1.75,isAnimationActive:!1}),p=xe,I="avg",E="var(--color-avg)",k=Xe(G,"avg","var(--color-avg)"),e[2]=o,e[3]=a,e[4]=s.onMouseLeave,e[5]=s.onMouseMove,e[6]=l,e[7]=u,e[8]=p,e[9]=v,e[10]=f,e[11]=m,e[12]=y,e[13]=x,e[14]=h,e[15]=g,e[16]=P,e[17]=b,e[18]=I,e[19]=E,e[20]=k,e[21]=j,e[22]=S,e[23]=D}else p=e[8],v=e[9],f=e[10],m=e[11],y=e[12],x=e[13],h=e[14],g=e[15],P=e[16],b=e[17],I=e[18],E=e[19],k=e[20],j=e[21],S=e[22],D=e[23];let w;e[29]!==p||e[30]!==I||e[31]!==E||e[32]!==k?(w=A.jsx(p,{dataKey:I,stroke:E,dot:k,strokeWidth:1.25,strokeOpacity:.8,isAnimationActive:!1}),e[29]=p,e[30]=I,e[31]=E,e[32]=k,e[33]=w):w=e[33];let O;e[34]!==r?(O=_e(r),e[34]=r,e[35]=O):O=e[35];let L;e[36]!==v||e[37]!==m||e[38]!==y||e[39]!==x||e[40]!==h||e[41]!==g||e[42]!==w||e[43]!==O||e[44]!==j||e[45]!==S||e[46]!==D?(L=A.jsxs(v,{data:j,onMouseMove:S,onMouseLeave:D,children:[m,y,x,h,g,w,O]}),e[36]=v,e[37]=m,e[38]=y,e[39]=x,e[40]=h,e[41]=g,e[42]=w,e[43]=O,e[44]=j,e[45]=S,e[46]=D,e[47]=L):L=e[47];let _;e[48]!==f||e[49]!==P||e[50]!==b||e[51]!==L?(_=A.jsx(f,{config:P,className:b,children:L}),e[48]=f,e[49]=P,e[50]=b,e[51]=L,e[52]=_):_=e[52];let N;e[53]!==a?(N=A.jsx(Me,{data:a}),e[53]=a,e[54]=N):N=e[54];let z;return e[55]!==_||e[56]!==N?(z=A.jsxs("div",{children:[_,N]}),e[55]=_,e[56]=N,e[57]=z):z=e[57],z}function gr(t,e){return[t==null?"—":ft(Number(t)),String(e)]}function br(t){return Y(String(t))}function Pr(t){return ft(Number(t),0)}function Ar(t){return{...t,t:new Date(t.t).toISOString()}}function Lr(t){const e=$.c(21),{data:a,className:r,hoverKey:n}=t,i=r===void 0?"h-10 w-32":r,{hoveredKey:l,setHoveredKey:o}=Ye(),s=n!=null&&l===n;let d;e[0]!==a?(d=a.map(Ir),e[0]=a,e[1]=d):d=e[1];let u;e[2]!==n||e[3]!==o?(u=n?()=>o(n):void 0,e[2]=n,e[3]=o,e[4]=u):u=e[4];let p;e[5]!==n||e[6]!==o?(p=n?()=>o(null):void 0,e[5]=n,e[6]=o,e[7]=p):p=e[7];const v=s?"var(--primary)":"var(--muted-foreground)",f=s?"var(--primary)":"var(--muted-foreground)",m=s?.35:.15,y=s?2:1.25;let x;e[8]!==v||e[9]!==f||e[10]!==m||e[11]!==y?(x=A.jsx(Le,{dataKey:"v",stroke:v,fill:f,fillOpacity:m,strokeWidth:y,isAnimationActive:!1}),e[8]=v,e[9]=f,e[10]=m,e[11]=y,e[12]=x):x=e[12];let h;e[13]!==d||e[14]!==u||e[15]!==p||e[16]!==x?(h=A.jsx(Lt,{data:d,onMouseEnter:u,onMouseLeave:p,children:x}),e[13]=d,e[14]=u,e[15]=p,e[16]=x,e[17]=h):h=e[17];let g;return e[18]!==i||e[19]!==h?(g=A.jsx(de,{config:ae,className:i,children:h}),e[18]=i,e[19]=h,e[20]=g):g=e[20],g}function Ir(t){return{v:t}}function Nt(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(t>=1e4?0:1)}k`:String(t)}export{Le as A,Dr as L,Lr as S,Sr as T,Lt as a,wr as b};
@@ -1 +1 @@
1
- import{c as g,u as v,an as P,j as s,e as C,t as E,L as N,i as S}from"./inertia-CUTKXjxg.js";import{D as y}from"./data-table-CwtPkw_i.js";import{P as $,E as b}from"./env-layout-Dkp_4NvM.js";import{I,S as R}from"./status-badge-XYUN9gUA.js";import{C as D,b as H,c as K,a as L}from"./card-DiW-JhK3.js";import{a as w,w as T,m as B}from"./format-B9SDkrWj.js";import"./chart-hover-DMWx5-Rs.js";import"./empty-state-CshhuRUU.js";import"./badge-s7YDycYg.js";import"./app-wordmark-DDNuuq5_.js";import"./app-layout-DUk54qUM.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./checkbox-C2AqEZXX.js";import"./label-B32Ks8n7.js";import"./use-live-V-slSdFJ.js";import"./segmented-Bj70Htrs.js";function xe(t){const e=g.c(31),{environment:j,window:_}=v().props,r=j.application_id,i=j.id,n=t.person?.name??t.person_ref;let o;e[0]!==r||e[1]!==i||e[2]!==_?(o=P(r,i,{window:_}),e[0]=r,e[1]=i,e[2]=_,e[3]=o):o=e[3];let a;e[4]!==o?(a={title:"Users",href:o},e[4]=o,e[5]=a):a=e[5];let l;e[6]!==n?(l={title:n,href:"#"},e[6]=n,e[7]=l):l=e[7];let c;e[8]!==a||e[9]!==l?(c=[a,l],e[8]=a,e[9]=l,e[10]=c):c=e[10];let u;e[11]!==t.person?(u=t.person?`${t.person.email??""} ${t.person.tenant?`· tenant ${t.person.tenant}`:""} · first seen ${w(t.person.first_seen_at)} · last seen ${w(t.person.last_seen_at)}`:"Not yet identified.",e[11]=t.person,e[12]=u):u=e[12];let m;e[13]!==n||e[14]!==u?(m=s.jsx($,{title:n,description:u}),e[13]=n,e[14]=u,e[15]=m):m=e[15];let d;e[16]!==t.issues?(d=t.issues.length>0&&s.jsxs(D,{children:[s.jsx(H,{children:s.jsx(K,{children:"Issues affecting this user"})}),s.jsx(L,{children:s.jsx(y,{rows:t.issues,rowKey:V,columns:[{key:"k",header:"Issue",cell:Q},{key:"t",header:"Title",cell:O},{key:"s",header:"",cell:M},{key:"n",header:"Hits",align:"right",cell:J}]})})]}),e[16]=t.issues,e[17]=d):d=e[17];let p;e[18]!==r||e[19]!==i?(p=k=>k.execution_id&&C.visit(E(r,i,k.execution_id)),e[18]=r,e[19]=i,e[20]=p):p=e[20];let x;e[21]===Symbol.for("react.memo_cache_sentinel")?(x=[{key:"when",header:"When",cell:F},{key:"k",header:"Kind",cell:A},{key:"n",header:"Name",cell:z},{key:"st",header:"Status",cell:W},{key:"d",header:"Duration",align:"right",cell:U},{key:"ex",header:"Exception",cell:q}],e[21]=x):x=e[21];let f;e[22]!==t.executions||e[23]!==p?(f=s.jsx(y,{rows:t.executions,rowKey:G,onRowClick:p,columns:x}),e[22]=t.executions,e[23]=p,e[24]=f):f=e[24];let h;return e[25]!==n||e[26]!==c||e[27]!==m||e[28]!==d||e[29]!==f?(h=s.jsxs(b,{title:n,crumbs:c,children:[m,d,f]}),e[25]=n,e[26]=c,e[27]=m,e[28]=d,e[29]=f,e[30]=h):h=e[30],h}function q(t){return s.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function U(t){return B(t.duration)}function W(t){return s.jsx(R,{status:t.status,outcome:t.outcome})}function z(t){return s.jsx("span",{className:"font-mono text-xs",children:t.name})}function A(t){return t.kind}function F(t){return s.jsx("span",{className:"text-xs",children:T(t.occurred_at)})}function G(t){return t.execution_id}function J(t){return t.count}function M(t){return s.jsx(I,{status:t.status})}function O(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function Q(t){return s.jsx(N,{className:"font-mono text-xs hover:underline",href:S(t.id),children:t.key})}function V(t){return t.id}export{xe as default};
1
+ import{c as g,u as v,an as P,j as s,e as C,t as E,L as N,i as S}from"./inertia-DLew8ZNx.js";import{D as y}from"./data-table-BIlt7Rtm.js";import{P as $,E as b}from"./env-layout-REF7OM4q.js";import{I,S as R}from"./status-badge-BaUKP7Yo.js";import{C as D,b as H,c as K,a as L}from"./card-cAtqCxWl.js";import{a as w,w as T,m as B}from"./format-B9SDkrWj.js";import"./chart-hover-B1M9jc0y.js";import"./empty-state-C38il627.js";import"./badge-CAxXV8za.js";import"./app-wordmark-o9CODKP0.js";import"./app-layout-DDyQa72H.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./checkbox-CmhMHWZO.js";import"./label-GWl7I6sf.js";import"./use-live-D7xKz2ma.js";import"./segmented-BgbT3wZa.js";function xe(t){const e=g.c(31),{environment:j,window:_}=v().props,r=j.application_id,i=j.id,n=t.person?.name??t.person_ref;let o;e[0]!==r||e[1]!==i||e[2]!==_?(o=P(r,i,{window:_}),e[0]=r,e[1]=i,e[2]=_,e[3]=o):o=e[3];let a;e[4]!==o?(a={title:"Users",href:o},e[4]=o,e[5]=a):a=e[5];let l;e[6]!==n?(l={title:n,href:"#"},e[6]=n,e[7]=l):l=e[7];let c;e[8]!==a||e[9]!==l?(c=[a,l],e[8]=a,e[9]=l,e[10]=c):c=e[10];let u;e[11]!==t.person?(u=t.person?`${t.person.email??""} ${t.person.tenant?`· tenant ${t.person.tenant}`:""} · first seen ${w(t.person.first_seen_at)} · last seen ${w(t.person.last_seen_at)}`:"Not yet identified.",e[11]=t.person,e[12]=u):u=e[12];let m;e[13]!==n||e[14]!==u?(m=s.jsx($,{title:n,description:u}),e[13]=n,e[14]=u,e[15]=m):m=e[15];let d;e[16]!==t.issues?(d=t.issues.length>0&&s.jsxs(D,{children:[s.jsx(H,{children:s.jsx(K,{children:"Issues affecting this user"})}),s.jsx(L,{children:s.jsx(y,{rows:t.issues,rowKey:V,columns:[{key:"k",header:"Issue",cell:Q},{key:"t",header:"Title",cell:O},{key:"s",header:"",cell:M},{key:"n",header:"Hits",align:"right",cell:J}]})})]}),e[16]=t.issues,e[17]=d):d=e[17];let p;e[18]!==r||e[19]!==i?(p=k=>k.execution_id&&C.visit(E(r,i,k.execution_id)),e[18]=r,e[19]=i,e[20]=p):p=e[20];let x;e[21]===Symbol.for("react.memo_cache_sentinel")?(x=[{key:"when",header:"When",cell:F},{key:"k",header:"Kind",cell:A},{key:"n",header:"Name",cell:z},{key:"st",header:"Status",cell:W},{key:"d",header:"Duration",align:"right",cell:U},{key:"ex",header:"Exception",cell:q}],e[21]=x):x=e[21];let f;e[22]!==t.executions||e[23]!==p?(f=s.jsx(y,{rows:t.executions,rowKey:G,onRowClick:p,columns:x}),e[22]=t.executions,e[23]=p,e[24]=f):f=e[24];let h;return e[25]!==n||e[26]!==c||e[27]!==m||e[28]!==d||e[29]!==f?(h=s.jsxs(b,{title:n,crumbs:c,children:[m,d,f]}),e[25]=n,e[26]=c,e[27]=m,e[28]=d,e[29]=f,e[30]=h):h=e[30],h}function q(t){return s.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function U(t){return B(t.duration)}function W(t){return s.jsx(R,{status:t.status,outcome:t.outcome})}function z(t){return s.jsx("span",{className:"font-mono text-xs",children:t.name})}function A(t){return t.kind}function F(t){return s.jsx("span",{className:"text-xs",children:T(t.occurred_at)})}function G(t){return t.execution_id}function J(t){return t.count}function M(t){return s.jsx(I,{status:t.status})}function O(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function Q(t){return s.jsx(N,{className:"font-mono text-xs hover:underline",href:S(t.id),children:t.key})}function V(t){return t.id}export{xe as default};
@@ -1 +1 @@
1
- import{c as $,u as P,j as i,C as N,L as C}from"./inertia-CUTKXjxg.js";import{C as I}from"./copy-id-CyRCMfdH.js";import{E as R}from"./empty-state-CshhuRUU.js";import{P as q,E as K}from"./env-layout-Dkp_4NvM.js";import{a as B,S as w}from"./stat-IghK3WjD.js";import{K as H}from"./status-badge-XYUN9gUA.js";import{e as W}from"./execution-path-CdEerUGH.js";import{c as E,m as L,s as T}from"./format-B9SDkrWj.js";import"./app-wordmark-DDNuuq5_.js";import"./use-clipboard-D5i6e5kf.js";import"./index-BpnfuXi-.js";import"./badge-s7YDycYg.js";import"./app-layout-DUk54qUM.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./checkbox-C2AqEZXX.js";import"./label-B32Ks8n7.js";import"./use-live-V-slSdFJ.js";import"./segmented-Bj70Htrs.js";import"./arrow-up-DYTCBENO.js";const A={request:"REQ",job_attempt:"JOB",scheduled_task:"TASK",command:"CMD",outgoing_request:"HTTP"};function M(t,e,s,h=0){return t.flatMap(p=>{const r=p.execution;return[{key:r.execution_id,depth:h,kind:r.kind,label:r.name,server:r.server,offset:r.offset,duration:r.duration,href:W({applicationId:e,environmentId:s,source:r.kind,executionId:r.execution_id}),failed:T(r.status,r.outcome)==="destructive"},...r.outgoing.map(a=>({key:`o-${a.id}`,depth:h+1,kind:"outgoing_request",label:`${a.method??""} ${a.url}`.trim(),server:null,offset:a.offset,duration:a.duration??0,href:null,failed:T(a.status_code)==="destructive"})),...M(p.children,e,s,h+1)]})}function D(t){const e=$.c(33),{row:s,scale:h}=t,p=`${s.depth*.75}rem`;let r;e[0]!==p?(r={paddingLeft:p},e[0]=p,e[1]=r):r=e[1];const a=s.failed?"destructive":"muted",g=A[s.kind]??s.kind;let l;e[2]!==a||e[3]!==g?(l=i.jsx(H,{tone:a,children:g}),e[2]=a,e[3]=g,e[4]=l):l=e[4];let o;e[5]!==s.label?(o=i.jsx("span",{className:"truncate font-mono",children:s.label}),e[5]=s.label,e[6]=o):o=e[6];let n;e[7]!==s.server?(n=s.server&&i.jsx("span",{className:"text-muted-foreground hidden shrink-0 font-mono text-[10px] sm:inline",children:s.server}),e[7]=s.server,e[8]=n):n=e[8];let c;e[9]!==r||e[10]!==l||e[11]!==o||e[12]!==n?(c=i.jsxs("span",{className:"col-start-1 row-start-1 flex min-w-0 items-center gap-1.5",style:r,children:[l,o,n]}),e[9]=r,e[10]=l,e[11]=o,e[12]=n,e[13]=c):c=e[13];let d;e[14]!==s.duration?(d=L(s.duration),e[14]=s.duration,e[15]=d):d=e[15];let f;e[16]!==d?(f=i.jsx("span",{className:"col-start-2 row-start-1 text-right font-mono tabular-nums md:col-start-3",children:d}),e[16]=d,e[17]=f):f=e[17];const j=s.failed?"bg-danger":s.href?"bg-primary":"bg-ok";let b;e[18]!==j?(b=N("block h-full rounded",j),e[18]=j,e[19]=b):b=e[19];const y=`${Math.min(99,s.offset/h*100)}%`,k=`${Math.max(.5,s.duration/h*100)}%`;let m;e[20]!==y||e[21]!==k?(m={marginLeft:y,width:k},e[20]=y,e[21]=k,e[22]=m):m=e[22];let u;e[23]!==b||e[24]!==m?(u=i.jsx("span",{className:"bg-muted/30 col-span-2 col-start-1 row-start-2 h-2 rounded md:col-span-1 md:col-start-2 md:row-start-1 md:h-3",children:i.jsx("span",{className:b,style:m})}),e[23]=b,e[24]=m,e[25]=u):u=e[25];let v;e[26]!==f||e[27]!==u||e[28]!==c?(v=i.jsxs(i.Fragment,{children:[c,f,u]}),e[26]=f,e[27]=u,e[28]=c,e[29]=v):v=e[29];const x=v;let _;return e[30]!==x||e[31]!==s.href?(_=s.href?i.jsx(C,{href:s.href,className:N("grid grid-cols-[1fr_4rem] items-center gap-x-2 gap-y-1 border-b px-2 py-1.5 text-xs last:border-b-0 md:grid-cols-[minmax(0,18rem)_1fr_4rem]","hover:bg-muted/40"),children:x}):i.jsx("div",{className:N("grid grid-cols-[1fr_4rem] items-center gap-x-2 gap-y-1 border-b px-2 py-1.5 text-xs last:border-b-0 md:grid-cols-[minmax(0,18rem)_1fr_4rem]","text-muted-foreground"),children:x}),e[30]=x,e[31]=s.href,e[32]=_):_=e[32],_}function me(t){const e=$.c(38),{environment:s}=P().props,h=s.application_id,p=s.id;let r,a,g,l,o,n,c;if(e[0]!==h||e[1]!==p||e[2]!==t.duration||e[3]!==t.roots||e[4]!==t.services||e[5]!==t.span_count||e[6]!==t.trace_id){const j=M(t.roots,h,p),b=j.filter(J),y=b.filter(F).length,k=Math.max(t.duration,1);r=K,l="Trace",e[14]===Symbol.for("react.memo_cache_sentinel")?(o=[{title:"Trace",href:"#"}],e[14]=o):o=e[14],e[15]!==t.trace_id?(n=i.jsx(q,{withWindow:!1,title:i.jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[i.jsx("span",{className:"truncate font-mono text-base md:text-xl",children:t.trace_id}),i.jsx(I,{value:t.trace_id,label:""})]}),description:"Every execution that shares this trace id, nested by the call that started it."}),e[15]=t.trace_id,e[16]=n):n=e[16];let m;e[17]!==t.services.length?(m=E(t.services.length),e[17]=t.services.length,e[18]=m):m=e[18];let u;e[19]!==t.services?(u=t.services.join(" · "),e[19]=t.services,e[20]=u):u=e[20];let v;e[21]!==m||e[22]!==u?(v=i.jsx(w,{label:"Services",value:m,hint:u}),e[21]=m,e[22]=u,e[23]=v):v=e[23];let x;e[24]!==t.duration?(x=L(t.duration),e[24]=t.duration,e[25]=x):x=e[25];let _;e[26]!==x?(_=i.jsx(w,{label:"Total duration",value:x}),e[26]=x,e[27]=_):_=e[27],c=i.jsxs(B,{children:[i.jsx(w,{label:"Executions",value:E(b.length),hint:`${t.span_count} spans`}),v,_,i.jsx(w,{label:"Errors",value:E(y),tone:y?"destructive":void 0})]}),a="bg-card -mx-3 overflow-hidden border-y md:mx-0 md:rounded-lg md:border",g=j.length===0?i.jsx(R,{title:"Nothing in this trace",description:"No execution reported this trace id."}):j.map(S=>i.jsx(D,{row:S,scale:k},S.key)),e[0]=h,e[1]=p,e[2]=t.duration,e[3]=t.roots,e[4]=t.services,e[5]=t.span_count,e[6]=t.trace_id,e[7]=r,e[8]=a,e[9]=g,e[10]=l,e[11]=o,e[12]=n,e[13]=c}else r=e[7],a=e[8],g=e[9],l=e[10],o=e[11],n=e[12],c=e[13];let d;e[28]!==a||e[29]!==g?(d=i.jsx("div",{className:a,children:g}),e[28]=a,e[29]=g,e[30]=d):d=e[30];let f;return e[31]!==r||e[32]!==l||e[33]!==o||e[34]!==n||e[35]!==c||e[36]!==d?(f=i.jsxs(r,{title:l,crumbs:o,children:[n,c,d]}),e[31]=r,e[32]=l,e[33]=o,e[34]=n,e[35]=c,e[36]=d,e[37]=f):f=e[37],f}function F(t){return t.failed}function J(t){return t.href!==null}export{me as default};
1
+ import{c as $,u as P,j as i,C as N,L as C}from"./inertia-DLew8ZNx.js";import{C as I}from"./copy-id-D03GhN9F.js";import{E as R}from"./empty-state-C38il627.js";import{P as q,E as K}from"./env-layout-REF7OM4q.js";import{a as B,S as w}from"./stat-DFEyFxkO.js";import{K as H}from"./status-badge-BaUKP7Yo.js";import{e as W}from"./execution-path-FYLq1TwC.js";import{c as E,m as L,s as T}from"./format-B9SDkrWj.js";import"./app-wordmark-o9CODKP0.js";import"./use-clipboard-ByoUGQqA.js";import"./index-umIAl-pL.js";import"./badge-CAxXV8za.js";import"./app-layout-DDyQa72H.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./checkbox-CmhMHWZO.js";import"./label-GWl7I6sf.js";import"./use-live-D7xKz2ma.js";import"./segmented-BgbT3wZa.js";import"./arrow-up-C6PxDiY3.js";const A={request:"REQ",job_attempt:"JOB",scheduled_task:"TASK",command:"CMD",outgoing_request:"HTTP"};function M(t,e,s,h=0){return t.flatMap(p=>{const r=p.execution;return[{key:r.execution_id,depth:h,kind:r.kind,label:r.name,server:r.server,offset:r.offset,duration:r.duration,href:W({applicationId:e,environmentId:s,source:r.kind,executionId:r.execution_id}),failed:T(r.status,r.outcome)==="destructive"},...r.outgoing.map(a=>({key:`o-${a.id}`,depth:h+1,kind:"outgoing_request",label:`${a.method??""} ${a.url}`.trim(),server:null,offset:a.offset,duration:a.duration??0,href:null,failed:T(a.status_code)==="destructive"})),...M(p.children,e,s,h+1)]})}function D(t){const e=$.c(33),{row:s,scale:h}=t,p=`${s.depth*.75}rem`;let r;e[0]!==p?(r={paddingLeft:p},e[0]=p,e[1]=r):r=e[1];const a=s.failed?"destructive":"muted",g=A[s.kind]??s.kind;let l;e[2]!==a||e[3]!==g?(l=i.jsx(H,{tone:a,children:g}),e[2]=a,e[3]=g,e[4]=l):l=e[4];let o;e[5]!==s.label?(o=i.jsx("span",{className:"truncate font-mono",children:s.label}),e[5]=s.label,e[6]=o):o=e[6];let n;e[7]!==s.server?(n=s.server&&i.jsx("span",{className:"text-muted-foreground hidden shrink-0 font-mono text-[10px] sm:inline",children:s.server}),e[7]=s.server,e[8]=n):n=e[8];let c;e[9]!==r||e[10]!==l||e[11]!==o||e[12]!==n?(c=i.jsxs("span",{className:"col-start-1 row-start-1 flex min-w-0 items-center gap-1.5",style:r,children:[l,o,n]}),e[9]=r,e[10]=l,e[11]=o,e[12]=n,e[13]=c):c=e[13];let d;e[14]!==s.duration?(d=L(s.duration),e[14]=s.duration,e[15]=d):d=e[15];let f;e[16]!==d?(f=i.jsx("span",{className:"col-start-2 row-start-1 text-right font-mono tabular-nums md:col-start-3",children:d}),e[16]=d,e[17]=f):f=e[17];const j=s.failed?"bg-danger":s.href?"bg-primary":"bg-ok";let b;e[18]!==j?(b=N("block h-full rounded",j),e[18]=j,e[19]=b):b=e[19];const y=`${Math.min(99,s.offset/h*100)}%`,k=`${Math.max(.5,s.duration/h*100)}%`;let m;e[20]!==y||e[21]!==k?(m={marginLeft:y,width:k},e[20]=y,e[21]=k,e[22]=m):m=e[22];let u;e[23]!==b||e[24]!==m?(u=i.jsx("span",{className:"bg-muted/30 col-span-2 col-start-1 row-start-2 h-2 rounded md:col-span-1 md:col-start-2 md:row-start-1 md:h-3",children:i.jsx("span",{className:b,style:m})}),e[23]=b,e[24]=m,e[25]=u):u=e[25];let v;e[26]!==f||e[27]!==u||e[28]!==c?(v=i.jsxs(i.Fragment,{children:[c,f,u]}),e[26]=f,e[27]=u,e[28]=c,e[29]=v):v=e[29];const x=v;let _;return e[30]!==x||e[31]!==s.href?(_=s.href?i.jsx(C,{href:s.href,className:N("grid grid-cols-[1fr_4rem] items-center gap-x-2 gap-y-1 border-b px-2 py-1.5 text-xs last:border-b-0 md:grid-cols-[minmax(0,18rem)_1fr_4rem]","hover:bg-muted/40"),children:x}):i.jsx("div",{className:N("grid grid-cols-[1fr_4rem] items-center gap-x-2 gap-y-1 border-b px-2 py-1.5 text-xs last:border-b-0 md:grid-cols-[minmax(0,18rem)_1fr_4rem]","text-muted-foreground"),children:x}),e[30]=x,e[31]=s.href,e[32]=_):_=e[32],_}function me(t){const e=$.c(38),{environment:s}=P().props,h=s.application_id,p=s.id;let r,a,g,l,o,n,c;if(e[0]!==h||e[1]!==p||e[2]!==t.duration||e[3]!==t.roots||e[4]!==t.services||e[5]!==t.span_count||e[6]!==t.trace_id){const j=M(t.roots,h,p),b=j.filter(J),y=b.filter(F).length,k=Math.max(t.duration,1);r=K,l="Trace",e[14]===Symbol.for("react.memo_cache_sentinel")?(o=[{title:"Trace",href:"#"}],e[14]=o):o=e[14],e[15]!==t.trace_id?(n=i.jsx(q,{withWindow:!1,title:i.jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[i.jsx("span",{className:"truncate font-mono text-base md:text-xl",children:t.trace_id}),i.jsx(I,{value:t.trace_id,label:""})]}),description:"Every execution that shares this trace id, nested by the call that started it."}),e[15]=t.trace_id,e[16]=n):n=e[16];let m;e[17]!==t.services.length?(m=E(t.services.length),e[17]=t.services.length,e[18]=m):m=e[18];let u;e[19]!==t.services?(u=t.services.join(" · "),e[19]=t.services,e[20]=u):u=e[20];let v;e[21]!==m||e[22]!==u?(v=i.jsx(w,{label:"Services",value:m,hint:u}),e[21]=m,e[22]=u,e[23]=v):v=e[23];let x;e[24]!==t.duration?(x=L(t.duration),e[24]=t.duration,e[25]=x):x=e[25];let _;e[26]!==x?(_=i.jsx(w,{label:"Total duration",value:x}),e[26]=x,e[27]=_):_=e[27],c=i.jsxs(B,{children:[i.jsx(w,{label:"Executions",value:E(b.length),hint:`${t.span_count} spans`}),v,_,i.jsx(w,{label:"Errors",value:E(y),tone:y?"destructive":void 0})]}),a="bg-card -mx-3 overflow-hidden border-y md:mx-0 md:rounded-lg md:border",g=j.length===0?i.jsx(R,{title:"Nothing in this trace",description:"No execution reported this trace id."}):j.map(S=>i.jsx(D,{row:S,scale:k},S.key)),e[0]=h,e[1]=p,e[2]=t.duration,e[3]=t.roots,e[4]=t.services,e[5]=t.span_count,e[6]=t.trace_id,e[7]=r,e[8]=a,e[9]=g,e[10]=l,e[11]=o,e[12]=n,e[13]=c}else r=e[7],a=e[8],g=e[9],l=e[10],o=e[11],n=e[12],c=e[13];let d;e[28]!==a||e[29]!==g?(d=i.jsx("div",{className:a,children:g}),e[28]=a,e[29]=g,e[30]=d):d=e[30];let f;return e[31]!==r||e[32]!==l||e[33]!==o||e[34]!==n||e[35]!==c||e[36]!==d?(f=i.jsxs(r,{title:l,crumbs:o,children:[n,c,d]}),e[31]=r,e[32]=l,e[33]=o,e[34]=n,e[35]=c,e[36]=d,e[37]=f):f=e[37],f}function F(t){return t.failed}function J(t){return t.href!==null}export{me as default};
@@ -1 +1 @@
1
- import{B,c as C,u as H,r as L,j as s,L as E,C as I,H as z}from"./inertia-CUTKXjxg.js";import{M as D,a as F}from"./nav-XUcwnBso.js";import{B as R}from"./app-wordmark-DDNuuq5_.js";const $=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],O=B("menu",$);function G(t){const e=C.c(36),{auth:S}=H().props,[f,w]=L.useState(!1);let o;if(e[0]!==t.doc.id||e[1]!==t.nav){let v;e[3]!==t.doc.id?(v=M=>s.jsxs("div",{children:[s.jsx("div",{className:"label-caps mb-2",children:M.title}),s.jsx("ul",{className:"space-y-0.5",children:M.docs.map(k=>s.jsx("li",{children:s.jsx(E,{href:k.href,onClick:()=>w(!1),className:I("hover:bg-accent block rounded-md px-2 py-1",k.id===t.doc.id?"bg-accent font-medium":"text-muted-foreground"),children:k.title})},k.id))})]},M.section),e[3]=t.doc.id,e[4]=v):v=e[4],o=t.nav.map(v),e[0]=t.doc.id,e[1]=t.nav,e[2]=o}else o=e[2];let h;e[5]!==o?(h=s.jsx("nav",{className:"space-y-6 text-sm",children:o}),e[5]=o,e[6]=h):h=e[6];const l=h,N=`${t.doc.title} · Docs`;let n;e[7]!==N?(n=s.jsx(z,{title:N}),e[7]=N,e[8]=n):n=e[8];const y=!!S?.user;let a;e[9]!==y?(a=s.jsx(D,{signedIn:y}),e[9]=y,e[10]=a):a=e[10];let r;e[11]!==l?(r=s.jsx("aside",{className:"hidden w-56 shrink-0 md:block",children:s.jsx("div",{className:"sticky top-6",children:l})}),e[11]=l,e[12]=r):r=e[12];let u,j;e[13]===Symbol.for("react.memo_cache_sentinel")?(u=()=>w(P),j=s.jsx(O,{className:"size-4"}),e[13]=u,e[14]=j):(u=e[13],j=e[14]);const _=f?"Hide contents":"Contents";let c;e[15]!==_?(c=s.jsxs(R,{variant:"outline",size:"sm",onClick:u,children:[j,_]}),e[15]=_,e[16]=c):c=e[16];let i;e[17]!==f||e[18]!==l?(i=f&&s.jsx("div",{className:"bg-card mt-3 rounded-lg border p-4",children:l}),e[17]=f,e[18]=l,e[19]=i):i=e[19];let d;e[20]!==c||e[21]!==i?(d=s.jsxs("div",{className:"mb-4 md:hidden",children:[c,i]}),e[20]=c,e[21]=i,e[22]=d):d=e[22];let m;e[23]!==t.doc.html?(m=s.jsx("article",{className:"prose prose-neutral dark:prose-invert prose-headings:scroll-mt-6 prose-headings:font-semibold prose-headings:tracking-tight prose-h1:text-3xl prose-a:text-primary prose-code:rounded prose-code:bg-muted prose-code:px-1 prose-code:py-0.5 prose-code:font-mono prose-code:text-[0.85em] prose-code:font-normal prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-table:text-sm prose-th:label-caps max-w-none",dangerouslySetInnerHTML:{__html:t.doc.html}}),e[23]=t.doc.html,e[24]=m):m=e[24];let p;e[25]!==d||e[26]!==m?(p=s.jsxs("div",{className:"min-w-0 flex-1",children:[d,m]}),e[25]=d,e[26]=m,e[27]=p):p=e[27];let x;e[28]!==p||e[29]!==r?(x=s.jsxs("div",{className:"mx-auto flex w-full max-w-6xl gap-10 px-6 pb-16",children:[r,p]}),e[28]=p,e[29]=r,e[30]=x):x=e[30];let b;e[31]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(F,{}),e[31]=b):b=e[31];let g;return e[32]!==x||e[33]!==n||e[34]!==a?(g=s.jsxs(s.Fragment,{children:[n,a,x,b]}),e[32]=x,e[33]=n,e[34]=a,e[35]=g):g=e[35],g}function P(t){return!t}export{G as default};
1
+ import{B,c as C,u as H,r as L,j as s,L as E,C as I,H as z}from"./inertia-DLew8ZNx.js";import{M as D,a as F}from"./nav-DPxr1NNC.js";import{B as R}from"./app-wordmark-o9CODKP0.js";const $=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],O=B("menu",$);function G(t){const e=C.c(36),{auth:S}=H().props,[f,w]=L.useState(!1);let o;if(e[0]!==t.doc.id||e[1]!==t.nav){let v;e[3]!==t.doc.id?(v=M=>s.jsxs("div",{children:[s.jsx("div",{className:"label-caps mb-2",children:M.title}),s.jsx("ul",{className:"space-y-0.5",children:M.docs.map(k=>s.jsx("li",{children:s.jsx(E,{href:k.href,onClick:()=>w(!1),className:I("hover:bg-accent block rounded-md px-2 py-1",k.id===t.doc.id?"bg-accent font-medium":"text-muted-foreground"),children:k.title})},k.id))})]},M.section),e[3]=t.doc.id,e[4]=v):v=e[4],o=t.nav.map(v),e[0]=t.doc.id,e[1]=t.nav,e[2]=o}else o=e[2];let h;e[5]!==o?(h=s.jsx("nav",{className:"space-y-6 text-sm",children:o}),e[5]=o,e[6]=h):h=e[6];const l=h,N=`${t.doc.title} · Docs`;let n;e[7]!==N?(n=s.jsx(z,{title:N}),e[7]=N,e[8]=n):n=e[8];const y=!!S?.user;let a;e[9]!==y?(a=s.jsx(D,{signedIn:y}),e[9]=y,e[10]=a):a=e[10];let r;e[11]!==l?(r=s.jsx("aside",{className:"hidden w-56 shrink-0 md:block",children:s.jsx("div",{className:"sticky top-6",children:l})}),e[11]=l,e[12]=r):r=e[12];let u,j;e[13]===Symbol.for("react.memo_cache_sentinel")?(u=()=>w(P),j=s.jsx(O,{className:"size-4"}),e[13]=u,e[14]=j):(u=e[13],j=e[14]);const _=f?"Hide contents":"Contents";let c;e[15]!==_?(c=s.jsxs(R,{variant:"outline",size:"sm",onClick:u,children:[j,_]}),e[15]=_,e[16]=c):c=e[16];let i;e[17]!==f||e[18]!==l?(i=f&&s.jsx("div",{className:"bg-card mt-3 rounded-lg border p-4",children:l}),e[17]=f,e[18]=l,e[19]=i):i=e[19];let d;e[20]!==c||e[21]!==i?(d=s.jsxs("div",{className:"mb-4 md:hidden",children:[c,i]}),e[20]=c,e[21]=i,e[22]=d):d=e[22];let m;e[23]!==t.doc.html?(m=s.jsx("article",{className:"prose prose-neutral dark:prose-invert prose-headings:scroll-mt-6 prose-headings:font-semibold prose-headings:tracking-tight prose-h1:text-3xl prose-a:text-primary prose-code:rounded prose-code:bg-muted prose-code:px-1 prose-code:py-0.5 prose-code:font-mono prose-code:text-[0.85em] prose-code:font-normal prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-table:text-sm prose-th:label-caps max-w-none",dangerouslySetInnerHTML:{__html:t.doc.html}}),e[23]=t.doc.html,e[24]=m):m=e[24];let p;e[25]!==d||e[26]!==m?(p=s.jsxs("div",{className:"min-w-0 flex-1",children:[d,m]}),e[25]=d,e[26]=m,e[27]=p):p=e[27];let x;e[28]!==p||e[29]!==r?(x=s.jsxs("div",{className:"mx-auto flex w-full max-w-6xl gap-10 px-6 pb-16",children:[r,p]}),e[28]=p,e[29]=r,e[30]=x):x=e[30];let b;e[31]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(F,{}),e[31]=b):b=e[31];let g;return e[32]!==x||e[33]!==n||e[34]!==a?(g=s.jsxs(s.Fragment,{children:[n,a,x,b]}),e[32]=x,e[33]=n,e[34]=a,e[35]=g):g=e[35],g}function P(t){return!t}export{G as default};
@@ -1 +1 @@
1
- import{c as B,u as G,ag as J,j as s,L as K}from"./inertia-CUTKXjxg.js";import{F as M}from"./flamegraph-uYWk1Yov.js";import{P as O,E as Q}from"./env-layout-Dkp_4NvM.js";import{S as N,a as T}from"./stat-IghK3WjD.js";import{C as U,a as V}from"./card-DiW-JhK3.js";import{e as X}from"./execution-path-CdEerUGH.js";import{w as Y,c as Z,m as A,b as ee}from"./format-B9SDkrWj.js";import"./data-table-CwtPkw_i.js";import"./chart-hover-DMWx5-Rs.js";import"./empty-state-CshhuRUU.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./index-n16aviHx.js";import"./app-wordmark-DDNuuq5_.js";import"./badge-s7YDycYg.js";import"./app-layout-DUk54qUM.js";import"./live-dot-Bb1UYT9F.js";import"./index-BpnfuXi-.js";import"./checkbox-C2AqEZXX.js";import"./use-live-V-slSdFJ.js";import"./arrow-up-DYTCBENO.js";function Pe(i){const e=B.c(71),{environment:z,window:I}=G().props,l=z.application_id,r=z.id,t=i.profile,L=t.execution_preview??"Profile";let o;e[0]!==l||e[1]!==r||e[2]!==I?(o=J(l,r,{window:I}),e[0]=l,e[1]=r,e[2]=I,e[3]=o):o=e[3];let a;e[4]!==o?(a={title:"Profiles",href:o},e[4]=o,e[5]=a):a=e[5];const F=t.execution_preview??`Profile ${t.id}`;let n;e[6]!==F?(n={title:F,href:"#"},e[6]=F,e[7]=n):n=e[7];let c;e[8]!==a||e[9]!==n?(c=[a,n],e[8]=a,e[9]=n,e[10]=c):c=e[10];const R=t.execution_preview??`Profile ${t.id}`;let p;e[11]!==R?(p=s.jsx("span",{className:"font-mono",children:R}),e[11]=R,e[12]=p):p=e[12];let d;e[13]!==t.occurred_at?(d=Y(t.occurred_at),e[13]=t.occurred_at,e[14]=d):d=e[14];let f;e[15]!==d?(f=s.jsx("span",{children:d}),e[15]=d,e[16]=f):f=e[16];const D=t.mode?` · ${t.mode}`:"";let m;e[17]!==D||e[18]!==t.profiler?(m=s.jsxs("span",{children:[t.profiler,D]}),e[17]=D,e[18]=t.profiler,e[19]=m):m=e[19];let u;e[20]!==t.server?(u=t.server&&s.jsxs("span",{children:["server ",t.server]}),e[20]=t.server,e[21]=u):u=e[21];let x;e[22]!==t.deploy?(x=t.deploy&&s.jsxs("span",{children:["deploy ",t.deploy.slice(0,12)]}),e[22]=t.deploy,e[23]=x):x=e[23];let v;e[24]!==l||e[25]!==r||e[26]!==t.execution_id||e[27]!==t.execution_source?(v=t.execution_id&&s.jsx(K,{className:"hover:underline",href:X({applicationId:l,environmentId:r,source:t.execution_source,executionId:t.execution_id}),children:"view execution"}),e[24]=l,e[25]=r,e[26]=t.execution_id,e[27]=t.execution_source,e[28]=v):v=e[28];let h;e[29]!==m||e[30]!==u||e[31]!==x||e[32]!==v||e[33]!==f?(h=s.jsxs("span",{className:"flex flex-wrap gap-x-3 text-xs",children:[f,m,u,x,v]}),e[29]=m,e[30]=u,e[31]=x,e[32]=v,e[33]=f,e[34]=h):h=e[34];let j;e[35]!==h||e[36]!==p?(j=s.jsx(O,{withWindow:!1,title:p,description:h}),e[35]=h,e[36]=p,e[37]=j):j=e[37];let _;e[38]!==t.samples?(_=Z(t.samples),e[38]=t.samples,e[39]=_):_=e[39];let w;e[40]!==_?(w=s.jsx(N,{label:"Samples",value:_}),e[40]=_,e[41]=w):w=e[41];let y;e[42]!==t.duration?(y=A(t.duration),e[42]=t.duration,e[43]=y):y=e[43];let P;e[44]!==t.interval?(P=t.interval?`every ${A(t.interval/1e3,2)}`:void 0,e[44]=t.interval,e[45]=P):P=e[45];let b;e[46]!==y||e[47]!==P?(b=s.jsx(N,{label:"Duration",value:y,hint:P}),e[46]=y,e[47]=P,e[48]=b):b=e[48];const H=t.mode??void 0;let S;e[49]!==H||e[50]!==t.profiler?(S=s.jsx(N,{label:"Profiler",value:t.profiler,hint:H}),e[49]=H,e[50]=t.profiler,e[51]=S):S=e[51];let g;e[52]!==t.stacks_bytes?(g=ee(t.stacks_bytes),e[52]=t.stacks_bytes,e[53]=g):g=e[53];const W=i.truncated?"truncated for display":"uncompressed",q=i.truncated?"warning":void 0;let k;e[54]!==g||e[55]!==W||e[56]!==q?(k=s.jsx(N,{label:"Stacks",value:g,hint:W,tone:q}),e[54]=g,e[55]=W,e[56]=q,e[57]=k):k=e[57];let E;e[58]!==w||e[59]!==b||e[60]!==S||e[61]!==k?(E=s.jsxs(T,{children:[w,b,S,k]}),e[58]=w,e[59]=b,e[60]=S,e[61]=k,e[62]=E):E=e[62];let $;e[63]!==i.collapsed?($=s.jsx(U,{children:s.jsx(V,{className:"pt-4",children:s.jsx(M,{collapsed:i.collapsed})})}),e[63]=i.collapsed,e[64]=$):$=e[64];let C;return e[65]!==L||e[66]!==j||e[67]!==E||e[68]!==$||e[69]!==c?(C=s.jsxs(Q,{title:L,crumbs:c,children:[j,E,$]}),e[65]=L,e[66]=j,e[67]=E,e[68]=$,e[69]=c,e[70]=C):C=e[70],C}export{Pe as default};
1
+ import{c as B,u as G,ag as J,j as s,L as K}from"./inertia-DLew8ZNx.js";import{F as M}from"./flamegraph-DSs69foN.js";import{P as O,E as Q}from"./env-layout-REF7OM4q.js";import{S as N,a as T}from"./stat-DFEyFxkO.js";import{C as U,a as V}from"./card-cAtqCxWl.js";import{e as X}from"./execution-path-FYLq1TwC.js";import{w as Y,c as Z,m as A,b as ee}from"./format-B9SDkrWj.js";import"./data-table-BIlt7Rtm.js";import"./chart-hover-B1M9jc0y.js";import"./empty-state-C38il627.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./index-so4lRrRq.js";import"./app-wordmark-o9CODKP0.js";import"./badge-CAxXV8za.js";import"./app-layout-DDyQa72H.js";import"./live-dot-D1n_BreY.js";import"./index-umIAl-pL.js";import"./checkbox-CmhMHWZO.js";import"./use-live-D7xKz2ma.js";import"./arrow-up-C6PxDiY3.js";function Pe(i){const e=B.c(71),{environment:z,window:I}=G().props,l=z.application_id,r=z.id,t=i.profile,L=t.execution_preview??"Profile";let o;e[0]!==l||e[1]!==r||e[2]!==I?(o=J(l,r,{window:I}),e[0]=l,e[1]=r,e[2]=I,e[3]=o):o=e[3];let a;e[4]!==o?(a={title:"Profiles",href:o},e[4]=o,e[5]=a):a=e[5];const F=t.execution_preview??`Profile ${t.id}`;let n;e[6]!==F?(n={title:F,href:"#"},e[6]=F,e[7]=n):n=e[7];let c;e[8]!==a||e[9]!==n?(c=[a,n],e[8]=a,e[9]=n,e[10]=c):c=e[10];const R=t.execution_preview??`Profile ${t.id}`;let p;e[11]!==R?(p=s.jsx("span",{className:"font-mono",children:R}),e[11]=R,e[12]=p):p=e[12];let d;e[13]!==t.occurred_at?(d=Y(t.occurred_at),e[13]=t.occurred_at,e[14]=d):d=e[14];let f;e[15]!==d?(f=s.jsx("span",{children:d}),e[15]=d,e[16]=f):f=e[16];const D=t.mode?` · ${t.mode}`:"";let m;e[17]!==D||e[18]!==t.profiler?(m=s.jsxs("span",{children:[t.profiler,D]}),e[17]=D,e[18]=t.profiler,e[19]=m):m=e[19];let u;e[20]!==t.server?(u=t.server&&s.jsxs("span",{children:["server ",t.server]}),e[20]=t.server,e[21]=u):u=e[21];let x;e[22]!==t.deploy?(x=t.deploy&&s.jsxs("span",{children:["deploy ",t.deploy.slice(0,12)]}),e[22]=t.deploy,e[23]=x):x=e[23];let v;e[24]!==l||e[25]!==r||e[26]!==t.execution_id||e[27]!==t.execution_source?(v=t.execution_id&&s.jsx(K,{className:"hover:underline",href:X({applicationId:l,environmentId:r,source:t.execution_source,executionId:t.execution_id}),children:"view execution"}),e[24]=l,e[25]=r,e[26]=t.execution_id,e[27]=t.execution_source,e[28]=v):v=e[28];let h;e[29]!==m||e[30]!==u||e[31]!==x||e[32]!==v||e[33]!==f?(h=s.jsxs("span",{className:"flex flex-wrap gap-x-3 text-xs",children:[f,m,u,x,v]}),e[29]=m,e[30]=u,e[31]=x,e[32]=v,e[33]=f,e[34]=h):h=e[34];let j;e[35]!==h||e[36]!==p?(j=s.jsx(O,{withWindow:!1,title:p,description:h}),e[35]=h,e[36]=p,e[37]=j):j=e[37];let _;e[38]!==t.samples?(_=Z(t.samples),e[38]=t.samples,e[39]=_):_=e[39];let w;e[40]!==_?(w=s.jsx(N,{label:"Samples",value:_}),e[40]=_,e[41]=w):w=e[41];let y;e[42]!==t.duration?(y=A(t.duration),e[42]=t.duration,e[43]=y):y=e[43];let P;e[44]!==t.interval?(P=t.interval?`every ${A(t.interval/1e3,2)}`:void 0,e[44]=t.interval,e[45]=P):P=e[45];let b;e[46]!==y||e[47]!==P?(b=s.jsx(N,{label:"Duration",value:y,hint:P}),e[46]=y,e[47]=P,e[48]=b):b=e[48];const H=t.mode??void 0;let S;e[49]!==H||e[50]!==t.profiler?(S=s.jsx(N,{label:"Profiler",value:t.profiler,hint:H}),e[49]=H,e[50]=t.profiler,e[51]=S):S=e[51];let g;e[52]!==t.stacks_bytes?(g=ee(t.stacks_bytes),e[52]=t.stacks_bytes,e[53]=g):g=e[53];const W=i.truncated?"truncated for display":"uncompressed",q=i.truncated?"warning":void 0;let k;e[54]!==g||e[55]!==W||e[56]!==q?(k=s.jsx(N,{label:"Stacks",value:g,hint:W,tone:q}),e[54]=g,e[55]=W,e[56]=q,e[57]=k):k=e[57];let E;e[58]!==w||e[59]!==b||e[60]!==S||e[61]!==k?(E=s.jsxs(T,{children:[w,b,S,k]}),e[58]=w,e[59]=b,e[60]=S,e[61]=k,e[62]=E):E=e[62];let $;e[63]!==i.collapsed?($=s.jsx(U,{children:s.jsx(V,{className:"pt-4",children:s.jsx(M,{collapsed:i.collapsed})})}),e[63]=i.collapsed,e[64]=$):$=e[64];let C;return e[65]!==L||e[66]!==j||e[67]!==E||e[68]!==$||e[69]!==c?(C=s.jsxs(Q,{title:L,crumbs:c,children:[j,E,$]}),e[65]=L,e[66]=j,e[67]=E,e[68]=$,e[69]=c,e[70]=C):C=e[70],C}export{Pe as default};
@@ -1,3 +1,3 @@
1
- import{c as ge,u as je,ae as _e,j as s,L as me,t as de,C as ue}from"./inertia-CUTKXjxg.js";import{V as be,D as ye}from"./chart-panel-BlirnMrQ.js";import{M as xe}from"./code-DVJtYP7h.js";import{C as we}from"./copy-id-CyRCMfdH.js";import{D as ne}from"./data-table-CwtPkw_i.js";import{E as ve}from"./empty-state-CshhuRUU.js";import{P as Ee,E as Se}from"./env-layout-Dkp_4NvM.js";import{S as X,a as Ne}from"./stat-IghK3WjD.js";import{C as ie,a as re,b as oe,c as ae}from"./card-DiW-JhK3.js";import{c as fe,m as P,w as he}from"./format-B9SDkrWj.js";import{D as Ce}from"./app-layout-DUk54qUM.js";import"./series-chart-C1YrNlID.js";import"./chart-hover-DMWx5-Rs.js";import"./chart-nsdZV0Dv.js";import"./app-wordmark-DDNuuq5_.js";import"./use-clipboard-D5i6e5kf.js";import"./index-BpnfuXi-.js";import"./badge-s7YDycYg.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./arrow-up-DYTCBENO.js";import"./checkbox-C2AqEZXX.js";const Le=[{test:/\bSCAN\b/i,skip:/\bUSING\s+(?:COVERING\s+)?INDEX\b/i,message:"Reads every row of the table — no index covers this filter."},{test:/\bSeq Scan\b/i,message:"Sequential scan — Postgres reads the whole table; an index on the filtered column avoids it."},{test:/\bUSING TEMP B-TREE\b/i,message:"Builds a temporary B-tree to sort — an index matching the ORDER BY removes it."},{test:/filesort/i,message:"Filesort — MySQL sorts the rows itself; an index matching the ORDER BY removes it."},{test:/\btype:\s*ALL\b/i,message:"Join type ALL — MySQL has no usable index and scans the whole table."}];function Re(t){return t.split(`
1
+ import{c as ge,u as je,ae as _e,j as s,L as me,t as de,C as ue}from"./inertia-DLew8ZNx.js";import{V as be,D as ye}from"./chart-panel-DUQTz_C8.js";import{M as xe}from"./code-DESvxyTj.js";import{C as we}from"./copy-id-D03GhN9F.js";import{D as ne}from"./data-table-BIlt7Rtm.js";import{E as ve}from"./empty-state-C38il627.js";import{P as Ee,E as Se}from"./env-layout-REF7OM4q.js";import{S as X,a as Ne}from"./stat-DFEyFxkO.js";import{C as ie,a as re,b as oe,c as ae}from"./card-cAtqCxWl.js";import{c as fe,m as P,w as he}from"./format-B9SDkrWj.js";import{Q as Ce}from"./app-layout-DDyQa72H.js";import"./series-chart-Xf49v9cv.js";import"./chart-hover-B1M9jc0y.js";import"./chart-BBeBkkNa.js";import"./app-wordmark-o9CODKP0.js";import"./use-clipboard-ByoUGQqA.js";import"./index-umIAl-pL.js";import"./badge-CAxXV8za.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./arrow-up-C6PxDiY3.js";import"./checkbox-CmhMHWZO.js";const Le=[{test:/\bSCAN\b/i,skip:/\bUSING\s+(?:COVERING\s+)?INDEX\b/i,message:"Reads every row of the table — no index covers this filter."},{test:/\bSeq Scan\b/i,message:"Sequential scan — Postgres reads the whole table; an index on the filtered column avoids it."},{test:/\bUSING TEMP B-TREE\b/i,message:"Builds a temporary B-tree to sort — an index matching the ORDER BY removes it."},{test:/filesort/i,message:"Filesort — MySQL sorts the rows itself; an index matching the ORDER BY removes it."},{test:/\btype:\s*ALL\b/i,message:"Join type ALL — MySQL has no usable index and scans the whole table."}];function Re(t){return t.split(`
2
2
  `).flatMap((e,o)=>Le.filter(i=>i.test.test(e)&&!i.skip?.test(e)).map(i=>({line:o+1,message:i.message})))}function ft(t){const e=ge.c(86),{environment:o,window:i}=je().props,l=o.application_id,n=o.id,r=t.summary,a=t.explain?.plan??"";let q;e[0]!==a?(q=Re(a),e[0]=a,e[1]=q):q=e[1];const Y=q;let c;e[2]!==l||e[3]!==n||e[4]!==i?(c=_e(l,n,{window:i}),e[2]=l,e[3]=n,e[4]=i,e[5]=c):c=e[5];let m;e[6]!==c?(m={title:"Queries",href:c},e[6]=c,e[7]=m):m=e[7];let I;e[8]===Symbol.for("react.memo_cache_sentinel")?(I={title:"Query",href:"#"},e[8]=I):I=e[8];let d;e[9]!==m?(d=[m,I],e[9]=m,e[10]=d):d=e[10];let u;e[11]!==t.sql?(u=t.sql?s.jsx(we,{value:t.sql,label:"Copy SQL"}):void 0,e[11]=t.sql,e[12]=u):u=e[12];let x;e[13]!==u?(x=s.jsx(Ee,{title:"Query",actions:u}),e[13]=u,e[14]=x):x=e[14];const J=t.sql??"No samples in this window.";let f;e[15]!==J?(f=s.jsx("pre",{className:"bg-muted/60 overflow-x-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:J}),e[15]=J,e[16]=f):f=e[16];let h;e[17]!==t.roles?(h=t.roles.length>0&&s.jsx("div",{className:"text-muted-foreground font-mono text-[11px]",children:t.roles.map(Ue).join(" · ")}),e[17]=t.roles,e[18]=h):h=e[18];let p;e[19]!==r.count?(p=fe(r.count),e[19]=r.count,e[20]=p):p=e[20];let g;e[21]!==p?(g=s.jsx(X,{label:"Executions",value:p}),e[21]=p,e[22]=g):g=e[22];const z=r.avg/1e3;let j;e[23]!==z?(j=P(z,2),e[23]=z,e[24]=j):j=e[24];let _;e[25]!==j?(_=s.jsx(X,{label:"Avg",value:j}),e[25]=j,e[26]=_):_=e[26];const Z=r.p95/1e3;let b;e[27]!==Z?(b=P(Z,2),e[27]=Z,e[28]=b):b=e[28];const ee=r.p99/1e3;let M;e[29]!==ee?(M=P(ee,2),e[29]=ee,e[30]=M):M=e[30];const te=`p99 ${M}`;let y;e[31]!==b||e[32]!==te?(y=s.jsx(X,{label:"p95",value:b,hint:te}),e[31]=b,e[32]=te,e[33]=y):y=e[33];const se=r.max/1e3;let w;e[34]!==se?(w=P(se,2),e[34]=se,e[35]=w):w=e[35];let v;e[36]!==w?(v=s.jsx(X,{label:"Max",value:w}),e[36]=w,e[37]=v):v=e[37];let E;e[38]!==g||e[39]!==_||e[40]!==y||e[41]!==v?(E=s.jsxs(Ne,{children:[g,_,y,v]}),e[38]=g,e[39]=_,e[40]=y,e[41]=v,e[42]=E):E=e[42];let T;e[43]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(oe,{children:s.jsx(ae,{children:"Query plan"})}),e[43]=T):T=e[43];let S;e[44]!==l||e[45]!==n||e[46]!==t.explain||e[47]!==a||e[48]!==Y?(S=s.jsxs(ie,{children:[T,s.jsx(re,{children:t.explain?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"text-muted-foreground mb-2 font-mono text-[11px]",children:[he(t.explain.occurred_at)," · ",P(t.explain.duration,2),t.explain.execution_id&&s.jsxs(s.Fragment,{children:[" · ",s.jsx(me,{className:"hover:underline",href:de(l,n,t.explain.execution_id),children:t.explain.execution_id})]})]}),s.jsx("div",{className:"bg-muted/60 overflow-x-auto rounded-lg p-3 font-mono text-xs",children:a.split(`
3
- `).map((Q,ce)=>{const le=Y.filter(pe=>pe.line===ce+1);return s.jsxs("div",{className:ue("py-0.5",le.length>0&&"border-warning border-l-2 pl-2"),children:[s.jsx("div",{className:ue("whitespace-pre",le.length>0&&"text-warning"),children:Q}),le.map(Oe)]},ce)})})]}):s.jsxs("p",{className:"text-muted-foreground text-xs",children:["Enable plans for slow queries with"," ",s.jsx(xe,{children:"RAILWATCH_CAPTURE_QUERY_EXPLAIN=true"})," (threshold"," ",s.jsx(xe,{children:"RAILWATCH_EXPLAIN_THRESHOLD_MS"}),", default 100ms)"]})})]}),e[44]=l,e[45]=n,e[46]=t.explain,e[47]=a,e[48]=Y,e[49]=S):S=e[49];let N;e[50]!==t.series?(N=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[s.jsx(be,{legend:"outcome",label:"Executions",seriesLabel:"Executions",data:t.series}),s.jsx(ye,{label:"Duration",data:t.series})]}),e[50]=t.series,e[51]=N):N=e[51];let B;e[52]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(oe,{children:s.jsx(ae,{children:"Called from"})}),e[52]=B):B=e[52];let H,O;e[53]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(ve,{icon:Ce,title:"No source captured",description:"A backtrace location wasn't available for this query."}),O=[{key:"s",header:"Source",cell:Be},{key:"n",header:"Count",align:"right",cell:Te}],e[53]=H,e[54]=O):(H=e[53],O=e[54]);let C;e[55]!==t.sources?(C=s.jsxs(ie,{children:[B,s.jsx(re,{children:s.jsx(ne,{rows:t.sources,rowKey:He,empty:H,columns:O})})]}),e[55]=t.sources,e[56]=C):C=e[56];let U;e[57]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(oe,{children:s.jsx(ae,{children:"Executions"})}),e[57]=U):U=e[57];let W;e[58]===Symbol.for("react.memo_cache_sentinel")?(W=[{key:"c",header:"Execution",cell:Ie},{key:"n",header:"Count",align:"right",cell:qe}],e[58]=W):W=e[58];let L;e[59]!==t.callers?(L=s.jsxs(ie,{children:[U,s.jsx(re,{children:s.jsx(ne,{rows:t.callers,rowKey:Me,columns:W})})]}),e[59]=t.callers,e[60]=L):L=e[60];let R;e[61]!==C||e[62]!==L?(R=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[C,L]}),e[61]=C,e[62]=L,e[63]=R):R=e[63];let $;e[64]===Symbol.for("react.memo_cache_sentinel")?($={key:"when",header:"When",cell:Pe},e[64]=$):$=e[64];let k;e[65]!==l||e[66]!==n?(k={key:"in",header:"In",cell:Q=>Q.execution_id?s.jsx(me,{className:"font-mono text-xs hover:underline",href:de(l,n,Q.execution_id),children:Q.execution_preview}):s.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})},e[65]=l,e[66]=n,e[67]=k):k=e[67];let F,G,K;e[68]===Symbol.for("react.memo_cache_sentinel")?(F={key:"rows",hideOnMobile:!0,header:"Rows",align:"right",cell:Ae},G={key:"conn",hideOnMobile:!0,header:"DB",cell:De},K={key:"d",header:"Duration",align:"right",cell:ke},e[68]=F,e[69]=G,e[70]=K):(F=e[68],G=e[69],K=e[70]);let D;e[71]!==k?(D=[$,k,F,G,K],e[71]=k,e[72]=D):D=e[72];let A;e[73]!==t.samples||e[74]!==D?(A=s.jsx(ne,{rows:t.samples,rowKey:Qe,columns:D}),e[73]=t.samples,e[74]=D,e[75]=A):A=e[75];let V;return e[76]!==E||e[77]!==S||e[78]!==N||e[79]!==R||e[80]!==d||e[81]!==A||e[82]!==x||e[83]!==f||e[84]!==h?(V=s.jsxs(Se,{title:"Query",crumbs:d,children:[x,f,h,E,S,N,R,A]}),e[76]=E,e[77]=S,e[78]=N,e[79]=R,e[80]=d,e[81]=A,e[82]=x,e[83]=f,e[84]=h,e[85]=V):V=e[85],V}function ke(t){return P(t.duration,2)}function De(t){return t.connection}function Ae(t){return t.row_count??"–"}function Pe(t){return s.jsx("span",{className:"text-xs",children:he(t.occurred_at)})}function Qe(t){return t.id}function qe(t){const[,e]=t;return e}function Ie(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e})}function Me(t){const[e]=t;return e}function Te(t){const[,e]=t;return e}function Be(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e})}function He(t){const[e]=t;return e}function Oe(t){return s.jsx("div",{className:"text-warning/80 mt-0.5 text-[11px] whitespace-normal",children:t.message},t.message)}function Ue(t){const[e,o]=t;return`${e} ${fe(o)}`}export{ft as default};
3
+ `).map((Q,ce)=>{const le=Y.filter(pe=>pe.line===ce+1);return s.jsxs("div",{className:ue("py-0.5",le.length>0&&"border-warning border-l-2 pl-2"),children:[s.jsx("div",{className:ue("whitespace-pre",le.length>0&&"text-warning"),children:Q}),le.map(Oe)]},ce)})})]}):s.jsxs("p",{className:"text-muted-foreground text-xs",children:["Enable plans for slow queries with"," ",s.jsx(xe,{children:"RAILWATCH_CAPTURE_QUERY_EXPLAIN=true"})," (threshold"," ",s.jsx(xe,{children:"RAILWATCH_EXPLAIN_THRESHOLD_MS"}),", default 100ms)"]})})]}),e[44]=l,e[45]=n,e[46]=t.explain,e[47]=a,e[48]=Y,e[49]=S):S=e[49];let N;e[50]!==t.series?(N=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[s.jsx(be,{legend:"outcome",label:"Executions",seriesLabel:"Executions",data:t.series}),s.jsx(ye,{label:"Duration",data:t.series})]}),e[50]=t.series,e[51]=N):N=e[51];let B;e[52]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(oe,{children:s.jsx(ae,{children:"Called from"})}),e[52]=B):B=e[52];let H,O;e[53]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(ve,{icon:Ce,title:"No source captured",description:"A backtrace location wasn't available for this query."}),O=[{key:"s",header:"Source",cell:Be},{key:"n",header:"Count",align:"right",cell:Te}],e[53]=H,e[54]=O):(H=e[53],O=e[54]);let C;e[55]!==t.sources?(C=s.jsxs(ie,{children:[B,s.jsx(re,{children:s.jsx(ne,{rows:t.sources,rowKey:He,empty:H,columns:O})})]}),e[55]=t.sources,e[56]=C):C=e[56];let U;e[57]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(oe,{children:s.jsx(ae,{children:"Executions"})}),e[57]=U):U=e[57];let W;e[58]===Symbol.for("react.memo_cache_sentinel")?(W=[{key:"c",header:"Execution",cell:Ie},{key:"n",header:"Count",align:"right",cell:qe}],e[58]=W):W=e[58];let L;e[59]!==t.callers?(L=s.jsxs(ie,{children:[U,s.jsx(re,{children:s.jsx(ne,{rows:t.callers,rowKey:Me,columns:W})})]}),e[59]=t.callers,e[60]=L):L=e[60];let R;e[61]!==C||e[62]!==L?(R=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[C,L]}),e[61]=C,e[62]=L,e[63]=R):R=e[63];let $;e[64]===Symbol.for("react.memo_cache_sentinel")?($={key:"when",header:"When",cell:Pe},e[64]=$):$=e[64];let k;e[65]!==l||e[66]!==n?(k={key:"in",header:"In",cell:Q=>Q.execution_id?s.jsx(me,{className:"font-mono text-xs hover:underline",href:de(l,n,Q.execution_id),children:Q.execution_preview}):s.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})},e[65]=l,e[66]=n,e[67]=k):k=e[67];let F,G,K;e[68]===Symbol.for("react.memo_cache_sentinel")?(F={key:"rows",hideOnMobile:!0,header:"Rows",align:"right",cell:De},G={key:"conn",hideOnMobile:!0,header:"DB",cell:Ae},K={key:"d",header:"Duration",align:"right",cell:ke},e[68]=F,e[69]=G,e[70]=K):(F=e[68],G=e[69],K=e[70]);let A;e[71]!==k?(A=[$,k,F,G,K],e[71]=k,e[72]=A):A=e[72];let D;e[73]!==t.samples||e[74]!==A?(D=s.jsx(ne,{rows:t.samples,rowKey:Qe,columns:A}),e[73]=t.samples,e[74]=A,e[75]=D):D=e[75];let V;return e[76]!==E||e[77]!==S||e[78]!==N||e[79]!==R||e[80]!==d||e[81]!==D||e[82]!==x||e[83]!==f||e[84]!==h?(V=s.jsxs(Se,{title:"Query",crumbs:d,children:[x,f,h,E,S,N,R,D]}),e[76]=E,e[77]=S,e[78]=N,e[79]=R,e[80]=d,e[81]=D,e[82]=x,e[83]=f,e[84]=h,e[85]=V):V=e[85],V}function ke(t){return P(t.duration,2)}function Ae(t){return t.connection}function De(t){return t.row_count??"–"}function Pe(t){return s.jsx("span",{className:"text-xs",children:he(t.occurred_at)})}function Qe(t){return t.id}function qe(t){const[,e]=t;return e}function Ie(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e})}function Me(t){const[e]=t;return e}function Te(t){const[,e]=t;return e}function Be(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e})}function He(t){const[e]=t;return e}function Oe(t){return s.jsx("div",{className:"text-warning/80 mt-0.5 text-[11px] whitespace-normal",children:t.message},t.message)}function Ue(t){const[e,o]=t;return`${e} ${fe(o)}`}export{ft as default};
@@ -1 +1 @@
1
- import{c as R,g as T,j as n,H,e as y,l as S,m as $,L as q,o as I,p as K,q as F,s as G}from"./inertia-CUTKXjxg.js";import{D as J}from"./data-table-CwtPkw_i.js";import{O as M}from"./onboarding-BqEuP-Ml.js";import{B as D}from"./badge-s7YDycYg.js";import{B as w}from"./app-wordmark-DDNuuq5_.js";import{A as Q}from"./app-layout-DUk54qUM.js";import{a as U,c as V}from"./format-B9SDkrWj.js";import"./chart-hover-DMWx5-Rs.js";import"./empty-state-CshhuRUU.js";import"./copy-block-D1myf7is.js";import"./use-clipboard-D5i6e5kf.js";import"./index-BpnfuXi-.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./card-DiW-JhK3.js";import"./checkbox-C2AqEZXX.js";import"./label-B32Ks8n7.js";function _e(t){const e=R.c(54),i=t.application,B=i.name;let l;e[0]!==i.id?(l=T(i.id),e[0]=i.id,e[1]=l):l=e[1];let a;e[2]!==i.name||e[3]!==l?(a=[{title:B,href:l}],e[2]=i.name,e[3]=l,e[4]=a):a=e[4];let o;e[5]!==i.name?(o=n.jsx(H,{title:i.name}),e[5]=i.name,e[6]=o):o=e[6];let r;e[7]!==i.name?(r=n.jsx("h1",{className:"text-xl font-semibold",children:i.name}),e[7]=i.name,e[8]=r):r=e[8];let m;e[9]!==i.issue_prefix?(m=n.jsx("span",{className:"font-mono",children:i.issue_prefix}),e[9]=i.issue_prefix,e[10]=m):m=e[10];let d;e[11]!==t.issues_open||e[12]!==m?(d=n.jsxs("p",{className:"text-muted-foreground text-sm",children:["Issue prefix ",m," ","· ",t.issues_open," open issues"]}),e[11]=t.issues_open,e[12]=m,e[13]=d):d=e[13];let c;e[14]!==r||e[15]!==d?(c=n.jsxs("div",{children:[r,d]}),e[14]=r,e[15]=d,e[16]=c):c=e[16];let p;e[17]!==i.id?(p=n.jsx(w,{variant:"outline",size:"sm",onClick:()=>y.visit(S(i.id)),children:"Edit"}),e[17]=i.id,e[18]=p):p=e[18];let f;e[19]!==i.id?(f=n.jsx(w,{size:"sm",onClick:()=>y.visit($(i.id)),children:"Add environment"}),e[19]=i.id,e[20]=f):f=e[20];let u;e[21]!==p||e[22]!==f?(u=n.jsxs("div",{className:"flex gap-2",children:[p,f]}),e[21]=p,e[22]=f,e[23]=u):u=e[23];let x;e[24]!==u||e[25]!==c?(x=n.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[c,u]}),e[24]=u,e[25]=c,e[26]=x):x=e[26];let h;e[27]!==t.environments||e[28]!==t.new_token?(h=t.new_token&&(()=>{const s=t.new_token,L=t.environments.find(O=>O.token_prefix===s.slice(0,12));return n.jsx(M,{tokenPrefix:L?.token_prefix??s.slice(0,12),newToken:s})})(),e[27]=t.environments,e[28]=t.new_token,e[29]=h):h=e[29];let v;e[30]!==i.id?(v={key:"n",header:"Environment",cell:s=>n.jsx(q,{className:"font-medium hover:underline",href:I(i.id,s.id),children:s.name})},e[30]=i.id,e[31]=v):v=e[31];let N,E,P,b,A,z;e[32]===Symbol.for("react.memo_cache_sentinel")?(N={key:"tok",header:"Token",cell:te},E={key:"seen",header:"Last event",cell:ee},P={key:"ev",header:"Events (month)",align:"right",cell:Z},b={key:"d",header:"Deploys",align:"right",cell:Y},A={key:"i",header:"Open issues",align:"right",cell:X},z={key:"st",header:"",cell:W},e[32]=N,e[33]=E,e[34]=P,e[35]=b,e[36]=A,e[37]=z):(N=e[32],E=e[33],P=e[34],b=e[35],A=e[36],z=e[37]);let k;e[38]!==i.id?(k={key:"x",header:"",align:"right",cell:s=>n.jsxs("span",{className:"flex justify-end gap-1",children:[n.jsx(w,{size:"sm",variant:"ghost",onClick:()=>y.post(K(i.id,s.id)),children:"Rotate token"}),n.jsx(w,{size:"sm",variant:"ghost",onClick:()=>y.post(F(i.id,s.id)),children:s.paused?"Resume":"Pause"}),n.jsx(w,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>confirm(`Delete ${s.name} and all its telemetry?`)&&y.delete(G(i.id,s.id)),children:"Delete"})]})},e[38]=i.id,e[39]=k):k=e[39];let j;e[40]!==v||e[41]!==k?(j=[v,N,E,P,b,A,z,k],e[40]=v,e[41]=k,e[42]=j):j=e[42];let _;e[43]!==t.environments||e[44]!==j?(_=n.jsx(J,{rows:t.environments,rowKey:ie,columns:j}),e[43]=t.environments,e[44]=j,e[45]=_):_=e[45];let g;e[46]!==x||e[47]!==h||e[48]!==_?(g=n.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:[x,h,_]}),e[46]=x,e[47]=h,e[48]=_,e[49]=g):g=e[49];let C;return e[50]!==a||e[51]!==g||e[52]!==o?(C=n.jsxs(Q,{breadcrumbs:a,children:[o,g]}),e[50]=a,e[51]=g,e[52]=o,e[53]=C):C=e[53],C}function W(t){return t.paused?n.jsx(D,{variant:"secondary",children:"paused"}):null}function X(t){return t.open_issues?n.jsx(D,{variant:"destructive",children:t.open_issues}):0}function Y(t){return t.deploys_count}function Z(t){return V(t.events_this_month)}function ee(t){return t.last_seen_at?U(t.last_seen_at):n.jsx("span",{className:"text-muted-foreground",children:"never"})}function te(t){return n.jsxs("span",{className:"font-mono text-xs",children:[t.token_prefix,"…"]})}function ie(t){return t.id}export{_e as default};
1
+ import{c as R,g as T,j as n,H,e as y,l as S,m as $,L as q,o as I,p as K,q as F,s as G}from"./inertia-DLew8ZNx.js";import{D as J}from"./data-table-BIlt7Rtm.js";import{O as M}from"./onboarding-D1vwaHYT.js";import{B as D}from"./badge-CAxXV8za.js";import{B as w}from"./app-wordmark-o9CODKP0.js";import{A as Q}from"./app-layout-DDyQa72H.js";import{a as U,c as V}from"./format-B9SDkrWj.js";import"./chart-hover-B1M9jc0y.js";import"./empty-state-C38il627.js";import"./copy-block-BkSU5832.js";import"./use-clipboard-ByoUGQqA.js";import"./index-umIAl-pL.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./card-cAtqCxWl.js";import"./checkbox-CmhMHWZO.js";import"./label-GWl7I6sf.js";function _e(t){const e=R.c(54),i=t.application,B=i.name;let l;e[0]!==i.id?(l=T(i.id),e[0]=i.id,e[1]=l):l=e[1];let a;e[2]!==i.name||e[3]!==l?(a=[{title:B,href:l}],e[2]=i.name,e[3]=l,e[4]=a):a=e[4];let o;e[5]!==i.name?(o=n.jsx(H,{title:i.name}),e[5]=i.name,e[6]=o):o=e[6];let r;e[7]!==i.name?(r=n.jsx("h1",{className:"text-xl font-semibold",children:i.name}),e[7]=i.name,e[8]=r):r=e[8];let m;e[9]!==i.issue_prefix?(m=n.jsx("span",{className:"font-mono",children:i.issue_prefix}),e[9]=i.issue_prefix,e[10]=m):m=e[10];let d;e[11]!==t.issues_open||e[12]!==m?(d=n.jsxs("p",{className:"text-muted-foreground text-sm",children:["Issue prefix ",m," ","· ",t.issues_open," open issues"]}),e[11]=t.issues_open,e[12]=m,e[13]=d):d=e[13];let c;e[14]!==r||e[15]!==d?(c=n.jsxs("div",{children:[r,d]}),e[14]=r,e[15]=d,e[16]=c):c=e[16];let p;e[17]!==i.id?(p=n.jsx(w,{variant:"outline",size:"sm",onClick:()=>y.visit(S(i.id)),children:"Edit"}),e[17]=i.id,e[18]=p):p=e[18];let f;e[19]!==i.id?(f=n.jsx(w,{size:"sm",onClick:()=>y.visit($(i.id)),children:"Add environment"}),e[19]=i.id,e[20]=f):f=e[20];let u;e[21]!==p||e[22]!==f?(u=n.jsxs("div",{className:"flex gap-2",children:[p,f]}),e[21]=p,e[22]=f,e[23]=u):u=e[23];let x;e[24]!==u||e[25]!==c?(x=n.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[c,u]}),e[24]=u,e[25]=c,e[26]=x):x=e[26];let h;e[27]!==t.environments||e[28]!==t.new_token?(h=t.new_token&&(()=>{const s=t.new_token,L=t.environments.find(O=>O.token_prefix===s.slice(0,12));return n.jsx(M,{tokenPrefix:L?.token_prefix??s.slice(0,12),newToken:s})})(),e[27]=t.environments,e[28]=t.new_token,e[29]=h):h=e[29];let v;e[30]!==i.id?(v={key:"n",header:"Environment",cell:s=>n.jsx(q,{className:"font-medium hover:underline",href:I(i.id,s.id),children:s.name})},e[30]=i.id,e[31]=v):v=e[31];let N,E,P,b,A,z;e[32]===Symbol.for("react.memo_cache_sentinel")?(N={key:"tok",header:"Token",cell:te},E={key:"seen",header:"Last event",cell:ee},P={key:"ev",header:"Events (month)",align:"right",cell:Z},b={key:"d",header:"Deploys",align:"right",cell:Y},A={key:"i",header:"Open issues",align:"right",cell:X},z={key:"st",header:"",cell:W},e[32]=N,e[33]=E,e[34]=P,e[35]=b,e[36]=A,e[37]=z):(N=e[32],E=e[33],P=e[34],b=e[35],A=e[36],z=e[37]);let k;e[38]!==i.id?(k={key:"x",header:"",align:"right",cell:s=>n.jsxs("span",{className:"flex justify-end gap-1",children:[n.jsx(w,{size:"sm",variant:"ghost",onClick:()=>y.post(K(i.id,s.id)),children:"Rotate token"}),n.jsx(w,{size:"sm",variant:"ghost",onClick:()=>y.post(F(i.id,s.id)),children:s.paused?"Resume":"Pause"}),n.jsx(w,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>confirm(`Delete ${s.name} and all its telemetry?`)&&y.delete(G(i.id,s.id)),children:"Delete"})]})},e[38]=i.id,e[39]=k):k=e[39];let j;e[40]!==v||e[41]!==k?(j=[v,N,E,P,b,A,z,k],e[40]=v,e[41]=k,e[42]=j):j=e[42];let _;e[43]!==t.environments||e[44]!==j?(_=n.jsx(J,{rows:t.environments,rowKey:ie,columns:j}),e[43]=t.environments,e[44]=j,e[45]=_):_=e[45];let g;e[46]!==x||e[47]!==h||e[48]!==_?(g=n.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:[x,h,_]}),e[46]=x,e[47]=h,e[48]=_,e[49]=g):g=e[49];let C;return e[50]!==a||e[51]!==g||e[52]!==o?(C=n.jsxs(Q,{breadcrumbs:a,children:[o,g]}),e[50]=a,e[51]=g,e[52]=o,e[53]=C):C=e[53],C}function W(t){return t.paused?n.jsx(D,{variant:"secondary",children:"paused"}):null}function X(t){return t.open_issues?n.jsx(D,{variant:"destructive",children:t.open_issues}):0}function Y(t){return t.deploys_count}function Z(t){return V(t.events_this_month)}function ee(t){return t.last_seen_at?U(t.last_seen_at):n.jsx("span",{className:"text-muted-foreground",children:"never"})}function te(t){return n.jsxs("span",{className:"font-mono text-xs",children:[t.token_prefix,"…"]})}function ie(t){return t.id}export{_e as default};
@@ -1 +1 @@
1
- import{c as Ge,u as Le,z as ze,j as s,L as Oe,i as Pe}from"./inertia-CUTKXjxg.js";import{D as ke}from"./data-table-CwtPkw_i.js";import{E as Se}from"./empty-state-CshhuRUU.js";import{P as Be,E as Ke}from"./env-layout-Dkp_4NvM.js";import{R as Ue}from"./relative-time-CV7V8aSP.js";import{S as ae,a as Ae}from"./stat-IghK3WjD.js";import{I as We}from"./status-badge-XYUN9gUA.js";import{B as Je}from"./app-wordmark-DDNuuq5_.js";import{C as Ee,a as He,b as Me,c as Ie}from"./card-DiW-JhK3.js";import{w as Qe,m as Te,p as ce,c as De}from"./format-B9SDkrWj.js";import{c as Ve,a as Xe}from"./source-link-B2183i2-.js";import{ReleaseHealthStrip as Ye}from"./release-health-DRNLZtT7.js";import{G as Ze,O as Fe}from"./app-layout-DUk54qUM.js";import"./chart-hover-DMWx5-Rs.js";import"./badge-s7YDycYg.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./arrow-up-DYTCBENO.js";import"./checkbox-C2AqEZXX.js";function fe(t,e){if(!t)return null;const l=(e-t)/t*100;return s.jsxs("span",{className:l>10?"text-destructive":l<-10?"text-emerald-600":"text-muted-foreground",children:[l>0?"+":"",l.toFixed(0),"%"]})}function Tt(t){const e=Ge.c(132),{environment:l}=Le().props,me=l.application_id,de=l.id,r=t.compare.request,o=t.compare.job_attempt,i=l.repository_url;let z;e[0]!==t.deploy.previous_ref||e[1]!==t.deploy.repository_ref||e[2]!==i?(z=Ve(i,t.deploy.previous_ref,t.deploy.repository_ref),e[0]=t.deploy.previous_ref,e[1]=t.deploy.repository_ref,e[2]=i,e[3]=z):z=e[3];const B=z,ue=i?.includes("gitlab")?"GitLab":"GitHub",qe=t.deploy.ref;let n;e[4]!==me||e[5]!==de?(n=ze(me,de),e[4]=me,e[5]=de,e[6]=n):n=e[6];let a;e[7]!==n?(a={title:"Deploys",href:n},e[7]=n,e[8]=a):a=e[8];let c;e[9]!==t.deploy.ref?(c={title:t.deploy.ref,href:"#"},e[9]=t.deploy.ref,e[10]=c):c=e[10];let f;e[11]!==a||e[12]!==c?(f=[a,c],e[11]=a,e[12]=c,e[13]=f):f=e[13];let m;e[14]!==t.deploy.deploy?(m=s.jsx("span",{className:"font-mono",children:t.deploy.deploy}),e[14]=t.deploy.deploy,e[15]=m):m=e[15];let K;e[16]!==t.deploy.deployed_at?(K=Qe(t.deploy.deployed_at),e[16]=t.deploy.deployed_at,e[17]=K):K=e[17];const he=`${K}${t.deploy.name?` · ${t.deploy.name}`:""}${t.deploy.url?" · ":""}`;let d;e[18]!==t.deploy.url?(d=t.deploy.url&&s.jsx("a",{className:"text-sm underline",href:t.deploy.url,target:"_blank",rel:"noreferrer",children:"Open"}),e[18]=t.deploy.url,e[19]=d):d=e[19];let u;e[20]!==m||e[21]!==he||e[22]!==d?(u=s.jsx(Be,{withWindow:!1,title:m,description:he,actions:d}),e[20]=m,e[21]=he,e[22]=d,e[23]=u):u=e[23];let h;e[24]!==t.deploy.previous_ref?(h=t.deploy.previous_ref&&s.jsxs("span",{className:"text-muted-foreground ml-2 font-mono text-xs font-normal",children:["since ",t.deploy.previous_ref.slice(0,7)]}),e[24]=t.deploy.previous_ref,e[25]=h):h=e[25];let p;e[26]!==h?(p=s.jsxs("h2",{className:"text-sm font-semibold",children:["Changes",h]}),e[26]=h,e[27]=p):p=e[27];let x;e[28]!==ue||e[29]!==B?(x=B&&s.jsx(Je,{asChild:!0,variant:"outline",size:"sm",children:s.jsxs("a",{href:B,target:"_blank",rel:"noreferrer",children:["Compare on ",ue]})}),e[28]=ue,e[29]=B,e[30]=x):x=e[30];let y;e[31]!==p||e[32]!==x?(y=s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[p,x]}),e[31]=p,e[32]=x,e[33]=y):y=e[33];let U;e[34]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(Se,{icon:Ze,title:"No commits recorded",description:"The post-deploy hook sends the commits in each deploy. Reinstall it with bin/rails generate railwatch:install."}),e[34]=U):U=e[34];let b;e[35]!==i?(b={key:"sha",header:"Commit",cell:Ce=>{const Re=Xe(i,Ce.sha),$e=Ce.sha.slice(0,7);return Re?s.jsx("a",{className:"font-mono text-xs hover:underline",href:Re,target:"_blank",rel:"noreferrer",children:$e}):s.jsx("span",{className:"font-mono text-xs",children:$e})}},e[35]=i,e[36]=b):b=e[36];let A,W,J;e[37]===Symbol.for("react.memo_cache_sentinel")?(A={key:"m",header:"Message",cell:ct},W={key:"a",hideOnMobile:!0,header:"Author",cell:at},J={key:"at",hideOnMobile:!0,header:"When",align:"right",cell:nt},e[37]=A,e[38]=W,e[39]=J):(A=e[37],W=e[38],J=e[39]);let j;e[40]!==b?(j=[b,A,W,J],e[40]=b,e[41]=j):j=e[41];let _;e[42]!==t.deploy.commits||e[43]!==j?(_=s.jsx(ke,{rows:t.deploy.commits,rowKey:ft,empty:U,columns:j}),e[42]=t.deploy.commits,e[43]=j,e[44]=_):_=e[44];let Q;e[45]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx("h2",{className:"text-sm font-semibold",children:"Release health"}),e[45]=Q):Q=e[45];let v;e[46]!==t.health?(v=s.jsx(Ye,{health:t.health}),e[46]=t.health,e[47]=v):v=e[47];let V;e[48]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx("h2",{className:"text-sm font-semibold",children:"Hour before vs hour after"}),e[48]=V):V=e[48];const pe=r.after.p95/1e3;let w;e[49]!==pe?(w=Te(pe),e[49]=pe,e[50]=w):w=e[50];let g;e[51]!==r.after.p95||e[52]!==r.before.p95?(g=fe(r.before.p95,r.after.p95),e[51]=r.after.p95,e[52]=r.before.p95,e[53]=g):g=e[53];let N;e[54]!==w||e[55]!==g?(N=s.jsxs(s.Fragment,{children:[w," ",g]}),e[54]=w,e[55]=g,e[56]=N):N=e[56];const xe=r.before.p95/1e3;let X;e[57]!==xe?(X=Te(xe),e[57]=xe,e[58]=X):X=e[58];const ye=`was ${X}`;let k;e[59]!==N||e[60]!==ye?(k=s.jsx(ae,{label:"Request p95",value:N,hint:ye}),e[59]=N,e[60]=ye,e[61]=k):k=e[61];let S;e[62]!==r.after.count||e[63]!==r.after.errors?(S=ce(r.after.errors,r.after.count),e[62]=r.after.count,e[63]=r.after.errors,e[64]=S):S=e[64];const be=r.before.errors/Math.max(1,r.before.count),je=r.after.errors/Math.max(1,r.after.count);let C;e[65]!==be||e[66]!==je?(C=fe(be,je),e[65]=be,e[66]=je,e[67]=C):C=e[67];let R;e[68]!==S||e[69]!==C?(R=s.jsxs(s.Fragment,{children:[S," ",C]}),e[68]=S,e[69]=C,e[70]=R):R=e[70];let Y;e[71]!==r.before.count||e[72]!==r.before.errors?(Y=ce(r.before.errors,r.before.count),e[71]=r.before.count,e[72]=r.before.errors,e[73]=Y):Y=e[73];const _e=`was ${Y}`;let $;e[74]!==R||e[75]!==_e?($=s.jsx(ae,{label:"Request error rate",value:R,hint:_e}),e[74]=R,e[75]=_e,e[76]=$):$=e[76];let E;e[77]!==r.after.count?(E=De(r.after.count),e[77]=r.after.count,e[78]=E):E=e[78];let H;e[79]!==r.after.count||e[80]!==r.before.count?(H=fe(r.before.count,r.after.count),e[79]=r.after.count,e[80]=r.before.count,e[81]=H):H=e[81];let M;e[82]!==E||e[83]!==H?(M=s.jsxs(s.Fragment,{children:[E," ",H]}),e[82]=E,e[83]=H,e[84]=M):M=e[84];let Z;e[85]!==r.before.count?(Z=De(r.before.count),e[85]=r.before.count,e[86]=Z):Z=e[86];const ve=`was ${Z}`;let I;e[87]!==M||e[88]!==ve?(I=s.jsx(ae,{label:"Requests",value:M,hint:ve}),e[87]=M,e[88]=ve,e[89]=I):I=e[89];let T;e[90]!==o.after.count||e[91]!==o.after.errors?(T=ce(o.after.errors,o.after.count),e[90]=o.after.count,e[91]=o.after.errors,e[92]=T):T=e[92];const we=o.before.errors/Math.max(1,o.before.count),ge=o.after.errors/Math.max(1,o.after.count);let D;e[93]!==we||e[94]!==ge?(D=fe(we,ge),e[93]=we,e[94]=ge,e[95]=D):D=e[95];let F;e[96]!==T||e[97]!==D?(F=s.jsxs(s.Fragment,{children:[T," ",D]}),e[96]=T,e[97]=D,e[98]=F):F=e[98];let ee;e[99]!==o.before.count||e[100]!==o.before.errors?(ee=ce(o.before.errors,o.before.count),e[99]=o.before.count,e[100]=o.before.errors,e[101]=ee):ee=e[101];const Ne=`was ${ee}`;let O;e[102]!==F||e[103]!==Ne?(O=s.jsx(ae,{label:"Job failures",value:F,hint:Ne}),e[102]=F,e[103]=Ne,e[104]=O):O=e[104];let P;e[105]!==k||e[106]!==$||e[107]!==I||e[108]!==O?(P=s.jsxs(Ae,{children:[k,$,I,O]}),e[105]=k,e[106]=$,e[107]=I,e[108]=O,e[109]=P):P=e[109];let te;e[110]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx(Me,{children:s.jsx(Ie,{children:"New issues after this deploy"})}),e[110]=te):te=e[110];let se,re;e[111]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(Se,{icon:Fe,title:"No new issues in the 24 hours after",description:"Issues first seen after this deploy would show here."}),re=[{key:"k",header:"Issue",cell:lt},{key:"t",header:"Title",cell:ot},{key:"s",header:"",cell:rt}],e[111]=se,e[112]=re):(se=e[111],re=e[112]);let q;e[113]!==t.new_issues?(q=s.jsxs(Ee,{children:[te,s.jsx(He,{children:s.jsx(ke,{rows:t.new_issues,rowKey:it,empty:se,columns:re})})]}),e[113]=t.new_issues,e[114]=q):q=e[114];let oe;e[115]===Symbol.for("react.memo_cache_sentinel")?(oe=s.jsx(Me,{children:s.jsx(Ie,{children:"Resolved in this deploy"})}),e[115]=oe):oe=e[115];let le,ie;e[116]===Symbol.for("react.memo_cache_sentinel")?(le=s.jsx(Se,{icon:Fe,title:"No issues marked resolved in this deploy",description:"Issues resolved and tagged with this deploy's ref would show here."}),ie=[{key:"k",header:"Issue",cell:tt},{key:"t",header:"Title",cell:et}],e[116]=le,e[117]=ie):(le=e[116],ie=e[117]);let G;e[118]!==t.resolved_issues?(G=s.jsxs(Ee,{children:[oe,s.jsx(He,{children:s.jsx(ke,{rows:t.resolved_issues,rowKey:st,empty:le,columns:ie})})]}),e[118]=t.resolved_issues,e[119]=G):G=e[119];let L;e[120]!==q||e[121]!==G?(L=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[q,G]}),e[120]=q,e[121]=G,e[122]=L):L=e[122];let ne;return e[123]!==t.deploy.ref||e[124]!==u||e[125]!==y||e[126]!==_||e[127]!==v||e[128]!==f||e[129]!==P||e[130]!==L?(ne=s.jsxs(Ke,{title:qe,crumbs:f,children:[u,y,_,Q,v,V,P,L]}),e[123]=t.deploy.ref,e[124]=u,e[125]=y,e[126]=_,e[127]=v,e[128]=f,e[129]=P,e[130]=L,e[131]=ne):ne=e[131],ne}function et(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function tt(t){return s.jsx(Oe,{className:"font-mono text-xs hover:underline",href:Pe(t.id),children:t.key})}function st(t){return t.id}function rt(t){return s.jsx(We,{status:t.status})}function ot(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function lt(t){return s.jsx(Oe,{className:"font-mono text-xs hover:underline",href:Pe(t.id),children:t.key})}function it(t){return t.id}function nt(t){return s.jsx(Ue,{className:"text-xs",iso:t.at})}function at(t){return s.jsx("span",{className:"text-xs",children:t.author})}function ct(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.message})}function ft(t){return t.sha}export{Tt as default};
1
+ import{c as Ge,u as Le,z as ze,j as s,L as Oe,i as Pe}from"./inertia-DLew8ZNx.js";import{D as ke}from"./data-table-BIlt7Rtm.js";import{E as Se}from"./empty-state-C38il627.js";import{P as Be,E as Ke}from"./env-layout-REF7OM4q.js";import{R as Ue}from"./relative-time-CjIjb8Lg.js";import{S as ae,a as Ae}from"./stat-DFEyFxkO.js";import{I as We}from"./status-badge-BaUKP7Yo.js";import{B as Je}from"./app-wordmark-o9CODKP0.js";import{C as Ee,a as He,b as Me,c as Ie}from"./card-cAtqCxWl.js";import{w as Qe,m as Te,p as ce,c as De}from"./format-B9SDkrWj.js";import{c as Ve,a as Xe}from"./source-link-B2183i2-.js";import{ReleaseHealthStrip as Ye}from"./release-health-4b3tivEf.js";import{G as Ze,O as Fe}from"./app-layout-DDyQa72H.js";import"./chart-hover-B1M9jc0y.js";import"./badge-CAxXV8za.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./arrow-up-C6PxDiY3.js";import"./checkbox-CmhMHWZO.js";function fe(t,e){if(!t)return null;const l=(e-t)/t*100;return s.jsxs("span",{className:l>10?"text-destructive":l<-10?"text-emerald-600":"text-muted-foreground",children:[l>0?"+":"",l.toFixed(0),"%"]})}function Tt(t){const e=Ge.c(132),{environment:l}=Le().props,me=l.application_id,de=l.id,r=t.compare.request,o=t.compare.job_attempt,i=l.repository_url;let z;e[0]!==t.deploy.previous_ref||e[1]!==t.deploy.repository_ref||e[2]!==i?(z=Ve(i,t.deploy.previous_ref,t.deploy.repository_ref),e[0]=t.deploy.previous_ref,e[1]=t.deploy.repository_ref,e[2]=i,e[3]=z):z=e[3];const B=z,ue=i?.includes("gitlab")?"GitLab":"GitHub",qe=t.deploy.ref;let n;e[4]!==me||e[5]!==de?(n=ze(me,de),e[4]=me,e[5]=de,e[6]=n):n=e[6];let a;e[7]!==n?(a={title:"Deploys",href:n},e[7]=n,e[8]=a):a=e[8];let c;e[9]!==t.deploy.ref?(c={title:t.deploy.ref,href:"#"},e[9]=t.deploy.ref,e[10]=c):c=e[10];let f;e[11]!==a||e[12]!==c?(f=[a,c],e[11]=a,e[12]=c,e[13]=f):f=e[13];let m;e[14]!==t.deploy.deploy?(m=s.jsx("span",{className:"font-mono",children:t.deploy.deploy}),e[14]=t.deploy.deploy,e[15]=m):m=e[15];let K;e[16]!==t.deploy.deployed_at?(K=Qe(t.deploy.deployed_at),e[16]=t.deploy.deployed_at,e[17]=K):K=e[17];const he=`${K}${t.deploy.name?` · ${t.deploy.name}`:""}${t.deploy.url?" · ":""}`;let d;e[18]!==t.deploy.url?(d=t.deploy.url&&s.jsx("a",{className:"text-sm underline",href:t.deploy.url,target:"_blank",rel:"noreferrer",children:"Open"}),e[18]=t.deploy.url,e[19]=d):d=e[19];let u;e[20]!==m||e[21]!==he||e[22]!==d?(u=s.jsx(Be,{withWindow:!1,title:m,description:he,actions:d}),e[20]=m,e[21]=he,e[22]=d,e[23]=u):u=e[23];let h;e[24]!==t.deploy.previous_ref?(h=t.deploy.previous_ref&&s.jsxs("span",{className:"text-muted-foreground ml-2 font-mono text-xs font-normal",children:["since ",t.deploy.previous_ref.slice(0,7)]}),e[24]=t.deploy.previous_ref,e[25]=h):h=e[25];let p;e[26]!==h?(p=s.jsxs("h2",{className:"text-sm font-semibold",children:["Changes",h]}),e[26]=h,e[27]=p):p=e[27];let x;e[28]!==ue||e[29]!==B?(x=B&&s.jsx(Je,{asChild:!0,variant:"outline",size:"sm",children:s.jsxs("a",{href:B,target:"_blank",rel:"noreferrer",children:["Compare on ",ue]})}),e[28]=ue,e[29]=B,e[30]=x):x=e[30];let y;e[31]!==p||e[32]!==x?(y=s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[p,x]}),e[31]=p,e[32]=x,e[33]=y):y=e[33];let U;e[34]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(Se,{icon:Ze,title:"No commits recorded",description:"The post-deploy hook sends the commits in each deploy. Reinstall it with bin/rails generate railwatch:install."}),e[34]=U):U=e[34];let b;e[35]!==i?(b={key:"sha",header:"Commit",cell:Ce=>{const Re=Xe(i,Ce.sha),$e=Ce.sha.slice(0,7);return Re?s.jsx("a",{className:"font-mono text-xs hover:underline",href:Re,target:"_blank",rel:"noreferrer",children:$e}):s.jsx("span",{className:"font-mono text-xs",children:$e})}},e[35]=i,e[36]=b):b=e[36];let A,W,J;e[37]===Symbol.for("react.memo_cache_sentinel")?(A={key:"m",header:"Message",cell:ct},W={key:"a",hideOnMobile:!0,header:"Author",cell:at},J={key:"at",hideOnMobile:!0,header:"When",align:"right",cell:nt},e[37]=A,e[38]=W,e[39]=J):(A=e[37],W=e[38],J=e[39]);let j;e[40]!==b?(j=[b,A,W,J],e[40]=b,e[41]=j):j=e[41];let _;e[42]!==t.deploy.commits||e[43]!==j?(_=s.jsx(ke,{rows:t.deploy.commits,rowKey:ft,empty:U,columns:j}),e[42]=t.deploy.commits,e[43]=j,e[44]=_):_=e[44];let Q;e[45]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx("h2",{className:"text-sm font-semibold",children:"Release health"}),e[45]=Q):Q=e[45];let v;e[46]!==t.health?(v=s.jsx(Ye,{health:t.health}),e[46]=t.health,e[47]=v):v=e[47];let V;e[48]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx("h2",{className:"text-sm font-semibold",children:"Hour before vs hour after"}),e[48]=V):V=e[48];const pe=r.after.p95/1e3;let w;e[49]!==pe?(w=Te(pe),e[49]=pe,e[50]=w):w=e[50];let g;e[51]!==r.after.p95||e[52]!==r.before.p95?(g=fe(r.before.p95,r.after.p95),e[51]=r.after.p95,e[52]=r.before.p95,e[53]=g):g=e[53];let N;e[54]!==w||e[55]!==g?(N=s.jsxs(s.Fragment,{children:[w," ",g]}),e[54]=w,e[55]=g,e[56]=N):N=e[56];const xe=r.before.p95/1e3;let X;e[57]!==xe?(X=Te(xe),e[57]=xe,e[58]=X):X=e[58];const ye=`was ${X}`;let k;e[59]!==N||e[60]!==ye?(k=s.jsx(ae,{label:"Request p95",value:N,hint:ye}),e[59]=N,e[60]=ye,e[61]=k):k=e[61];let S;e[62]!==r.after.count||e[63]!==r.after.errors?(S=ce(r.after.errors,r.after.count),e[62]=r.after.count,e[63]=r.after.errors,e[64]=S):S=e[64];const be=r.before.errors/Math.max(1,r.before.count),je=r.after.errors/Math.max(1,r.after.count);let C;e[65]!==be||e[66]!==je?(C=fe(be,je),e[65]=be,e[66]=je,e[67]=C):C=e[67];let R;e[68]!==S||e[69]!==C?(R=s.jsxs(s.Fragment,{children:[S," ",C]}),e[68]=S,e[69]=C,e[70]=R):R=e[70];let Y;e[71]!==r.before.count||e[72]!==r.before.errors?(Y=ce(r.before.errors,r.before.count),e[71]=r.before.count,e[72]=r.before.errors,e[73]=Y):Y=e[73];const _e=`was ${Y}`;let $;e[74]!==R||e[75]!==_e?($=s.jsx(ae,{label:"Request error rate",value:R,hint:_e}),e[74]=R,e[75]=_e,e[76]=$):$=e[76];let E;e[77]!==r.after.count?(E=De(r.after.count),e[77]=r.after.count,e[78]=E):E=e[78];let H;e[79]!==r.after.count||e[80]!==r.before.count?(H=fe(r.before.count,r.after.count),e[79]=r.after.count,e[80]=r.before.count,e[81]=H):H=e[81];let M;e[82]!==E||e[83]!==H?(M=s.jsxs(s.Fragment,{children:[E," ",H]}),e[82]=E,e[83]=H,e[84]=M):M=e[84];let Z;e[85]!==r.before.count?(Z=De(r.before.count),e[85]=r.before.count,e[86]=Z):Z=e[86];const ve=`was ${Z}`;let I;e[87]!==M||e[88]!==ve?(I=s.jsx(ae,{label:"Requests",value:M,hint:ve}),e[87]=M,e[88]=ve,e[89]=I):I=e[89];let T;e[90]!==o.after.count||e[91]!==o.after.errors?(T=ce(o.after.errors,o.after.count),e[90]=o.after.count,e[91]=o.after.errors,e[92]=T):T=e[92];const we=o.before.errors/Math.max(1,o.before.count),ge=o.after.errors/Math.max(1,o.after.count);let D;e[93]!==we||e[94]!==ge?(D=fe(we,ge),e[93]=we,e[94]=ge,e[95]=D):D=e[95];let F;e[96]!==T||e[97]!==D?(F=s.jsxs(s.Fragment,{children:[T," ",D]}),e[96]=T,e[97]=D,e[98]=F):F=e[98];let ee;e[99]!==o.before.count||e[100]!==o.before.errors?(ee=ce(o.before.errors,o.before.count),e[99]=o.before.count,e[100]=o.before.errors,e[101]=ee):ee=e[101];const Ne=`was ${ee}`;let O;e[102]!==F||e[103]!==Ne?(O=s.jsx(ae,{label:"Job failures",value:F,hint:Ne}),e[102]=F,e[103]=Ne,e[104]=O):O=e[104];let P;e[105]!==k||e[106]!==$||e[107]!==I||e[108]!==O?(P=s.jsxs(Ae,{children:[k,$,I,O]}),e[105]=k,e[106]=$,e[107]=I,e[108]=O,e[109]=P):P=e[109];let te;e[110]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx(Me,{children:s.jsx(Ie,{children:"New issues after this deploy"})}),e[110]=te):te=e[110];let se,re;e[111]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(Se,{icon:Fe,title:"No new issues in the 24 hours after",description:"Issues first seen after this deploy would show here."}),re=[{key:"k",header:"Issue",cell:lt},{key:"t",header:"Title",cell:ot},{key:"s",header:"",cell:rt}],e[111]=se,e[112]=re):(se=e[111],re=e[112]);let q;e[113]!==t.new_issues?(q=s.jsxs(Ee,{children:[te,s.jsx(He,{children:s.jsx(ke,{rows:t.new_issues,rowKey:it,empty:se,columns:re})})]}),e[113]=t.new_issues,e[114]=q):q=e[114];let oe;e[115]===Symbol.for("react.memo_cache_sentinel")?(oe=s.jsx(Me,{children:s.jsx(Ie,{children:"Resolved in this deploy"})}),e[115]=oe):oe=e[115];let le,ie;e[116]===Symbol.for("react.memo_cache_sentinel")?(le=s.jsx(Se,{icon:Fe,title:"No issues marked resolved in this deploy",description:"Issues resolved and tagged with this deploy's ref would show here."}),ie=[{key:"k",header:"Issue",cell:tt},{key:"t",header:"Title",cell:et}],e[116]=le,e[117]=ie):(le=e[116],ie=e[117]);let G;e[118]!==t.resolved_issues?(G=s.jsxs(Ee,{children:[oe,s.jsx(He,{children:s.jsx(ke,{rows:t.resolved_issues,rowKey:st,empty:le,columns:ie})})]}),e[118]=t.resolved_issues,e[119]=G):G=e[119];let L;e[120]!==q||e[121]!==G?(L=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[q,G]}),e[120]=q,e[121]=G,e[122]=L):L=e[122];let ne;return e[123]!==t.deploy.ref||e[124]!==u||e[125]!==y||e[126]!==_||e[127]!==v||e[128]!==f||e[129]!==P||e[130]!==L?(ne=s.jsxs(Ke,{title:qe,crumbs:f,children:[u,y,_,Q,v,V,P,L]}),e[123]=t.deploy.ref,e[124]=u,e[125]=y,e[126]=_,e[127]=v,e[128]=f,e[129]=P,e[130]=L,e[131]=ne):ne=e[131],ne}function et(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function tt(t){return s.jsx(Oe,{className:"font-mono text-xs hover:underline",href:Pe(t.id),children:t.key})}function st(t){return t.id}function rt(t){return s.jsx(We,{status:t.status})}function ot(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function lt(t){return s.jsx(Oe,{className:"font-mono text-xs hover:underline",href:Pe(t.id),children:t.key})}function it(t){return t.id}function nt(t){return s.jsx(Ue,{className:"text-xs",iso:t.at})}function at(t){return s.jsx("span",{className:"text-xs",children:t.author})}function ct(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.message})}function ft(t){return t.sha}export{Tt as default};
@@ -1 +1 @@
1
- import{c as L,u as U,ap as W,j as t,L as K,y as F,i as G}from"./inertia-CUTKXjxg.js";import{C as J}from"./chart-panel-BlirnMrQ.js";import{D as z}from"./data-table-CwtPkw_i.js";import{E as A}from"./empty-state-CshhuRUU.js";import{P as Q,E as V}from"./env-layout-Dkp_4NvM.js";import{b as X}from"./series-chart-C1YrNlID.js";import{I as Y}from"./status-badge-XYUN9gUA.js";import{B as Z}from"./app-wordmark-DDNuuq5_.js";import{C as M,a as T,b as q,c as B}from"./card-DiW-JhK3.js";import{w as ee,c as R,m as se,a as te}from"./format-B9SDkrWj.js";import{ReleaseHealthStrip as re}from"./release-health-DRNLZtT7.js";import{E as ie,O as le}from"./app-layout-DUk54qUM.js";import"./chart-hover-DMWx5-Rs.js";import"./badge-s7YDycYg.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./chart-nsdZV0Dv.js";import"./stat-IghK3WjD.js";import"./arrow-up-DYTCBENO.js";import"./checkbox-C2AqEZXX.js";function H(s){const e=L.c(6),{rows:o,empty:l}=s;let r;e[0]!==l?(r=t.jsx(A,{icon:le,...l}),e[0]=l,e[1]=r):r=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=[{key:"k",header:"Issue",cell:ne},{key:"t",header:"Title",cell:ae},{key:"s",header:"",cell:oe}],e[2]=i):i=e[2];let a;return e[3]!==o||e[4]!==r?(a=t.jsx(z,{rows:o,rowKey:me,empty:r,columns:i}),e[3]=o,e[4]=r,e[5]=a):a=e[5],a}function oe(s){return t.jsx(Y,{status:s.status})}function ae(s){return t.jsx("span",{className:"line-clamp-1 text-xs",children:s.title})}function ne(s){return t.jsx(K,{className:"font-mono text-xs hover:underline",href:G(s.id),children:s.key})}function me(s){return s.id}function Ue(s){const e=L.c(58),{environment:o,window:l}=U().props,r=o.application_id,i=o.id,a=s.release.ref;let n;e[0]!==r||e[1]!==i||e[2]!==l?(n=W(r,i,{window:l}),e[0]=r,e[1]=i,e[2]=l,e[3]=n):n=e[3];let m;e[4]!==n?(m={title:"Releases",href:n},e[4]=n,e[5]=m):m=e[5];let c;e[6]!==s.release.ref?(c={title:s.release.ref,href:"#"},e[6]=s.release.ref,e[7]=c):c=e[7];let d;e[8]!==m||e[9]!==c?(d=[m,c],e[8]=m,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==s.release.deploy?(u=t.jsx("span",{className:"font-mono",children:s.release.deploy}),e[11]=s.release.deploy,e[12]=u):u=e[12];let g;e[13]!==s.release.deployed_at?(g=s.release.deployed_at?ee(s.release.deployed_at):"never deployed",e[13]=s.release.deployed_at,e[14]=g):g=e[14];const O=`${g}${s.release.name?` · ${s.release.name}`:""}${s.release.previous_ref?` · after ${s.release.previous_ref}`:""}`;let f;e[15]!==r||e[16]!==i||e[17]!==s.release.deploy_id?(f=s.release.deploy_id&&t.jsx(Z,{asChild:!0,variant:"outline",size:"sm",children:t.jsx(K,{href:F(r,i,s.release.deploy_id),children:"Deploy"})}),e[15]=r,e[16]=i,e[17]=s.release.deploy_id,e[18]=f):f=e[18];let h;e[19]!==u||e[20]!==O||e[21]!==f?(h=t.jsx(Q,{withWindow:!1,title:u,description:O,actions:f}),e[19]=u,e[20]=O,e[21]=f,e[22]=h):h=e[22];const D=s.release.previous_ref?`vs ${s.release.previous_ref}`:void 0;let y;e[23]!==s.previous_summary||e[24]!==s.summary||e[25]!==D?(y=t.jsx(re,{health:s.summary,previous:s.previous_summary,deltaCaption:D}),e[23]=s.previous_summary,e[24]=s.summary,e[25]=D,e[26]=y):y=e[26];let p;e[27]!==s.summary.sessions?(p=R(s.summary.sessions),e[27]=s.summary.sessions,e[28]=p):p=e[28];let x;e[29]!==s.series?(x=t.jsx(X,{data:s.series}),e[29]=s.series,e[30]=x):x=e[30];let _;e[31]!==p||e[32]!==x?(_=t.jsx(J,{label:"Sessions by status",value:p,children:x}),e[31]=p,e[32]=x,e[33]=_):_=e[33];let S;e[34]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(q,{children:t.jsx(B,{children:"Issues first seen in this release"})}),e[34]=S):S=e[34];let k;e[35]===Symbol.for("react.memo_cache_sentinel")?(k={title:"No new issues in this release",description:"Issues first seen while this release was live would show here."},e[35]=k):k=e[35];let j;e[36]!==s.new_issues?(j=t.jsxs(M,{children:[S,t.jsx(T,{children:t.jsx(H,{rows:s.new_issues,empty:k})})]}),e[36]=s.new_issues,e[37]=j):j=e[37];let N;e[38]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(q,{children:t.jsx(B,{children:"Issues resolved in this release"})}),e[38]=N):N=e[38];let C;e[39]===Symbol.for("react.memo_cache_sentinel")?(C={title:"No issues marked resolved in this release",description:"Issues resolved and tagged with this deploy would show here."},e[39]=C):C=e[39];let v;e[40]!==s.resolved_issues?(v=t.jsxs(M,{children:[N,t.jsx(T,{children:t.jsx(H,{rows:s.resolved_issues,empty:C})})]}),e[40]=s.resolved_issues,e[41]=v):v=e[41];let w;e[42]!==j||e[43]!==v?(w=t.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[j,v]}),e[42]=j,e[43]=v,e[44]=w):w=e[44];let E;e[45]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx("h2",{className:"text-sm font-semibold",children:"Sessions"}),e[45]=E):E=e[45];let $,I;e[46]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(A,{icon:ie,title:"No sessions reported for this release",description:"Sessions come from the browser client and the gem's request middleware; config.track_sessions turns both off."}),I=[{key:"id",header:"Session",cell:xe},{key:"source",hideOnMobile:!0,header:"Source",cell:pe},{key:"status",header:"Status",cell:ye},{key:"user",hideOnMobile:!0,header:"User",cell:he},{key:"duration",header:"Duration",align:"right",cell:fe},{key:"activity",hideOnMobile:!0,header:"Requests / visits",align:"right",cell:ue},{key:"errors",hideOnMobile:!0,header:"Errors",align:"right",cell:de},{key:"started",header:"Started",align:"right",cell:ce}],e[46]=$,e[47]=I):($=e[46],I=e[47]);let b;e[48]!==s.sessions?(b=t.jsx(z,{rows:s.sessions,rowKey:je,rowClassName:_e,empty:$,columns:I}),e[48]=s.sessions,e[49]=b):b=e[49];let P;return e[50]!==s.release.ref||e[51]!==y||e[52]!==_||e[53]!==w||e[54]!==b||e[55]!==d||e[56]!==h?(P=t.jsxs(V,{title:a,crumbs:d,children:[h,y,_,w,E,b]}),e[50]=s.release.ref,e[51]=y,e[52]=_,e[53]=w,e[54]=b,e[55]=d,e[56]=h,e[57]=P):P=e[57],P}function ce(s){return te(s.started_at)}function de(s){return t.jsx("span",{className:s.errors?"text-destructive":"",children:R(s.errors)})}function ue(s){return`${R(s.requests)} / ${R(s.visits)}`}function fe(s){return se(s.duration)}function he(s){return t.jsx("span",{className:"font-mono text-xs",children:s.user_ref})}function ye(s){return t.jsx("span",{className:s.status==="crashed"?"text-destructive text-xs font-semibold":"text-xs",children:s.status})}function pe(s){return t.jsx("span",{className:"text-xs",children:s.source})}function xe(s){return t.jsx("span",{className:"font-mono text-xs",children:s.session_id})}function _e(s){return s.status==="crashed"?"bg-destructive/5":void 0}function je(s){return s.id}export{Ue as default};
1
+ import{c as L,u as U,ap as W,j as t,L as K,y as Y,i as F}from"./inertia-DLew8ZNx.js";import{C as G}from"./chart-panel-DUQTz_C8.js";import{D as z}from"./data-table-BIlt7Rtm.js";import{E as A}from"./empty-state-C38il627.js";import{P as J,E as Q}from"./env-layout-REF7OM4q.js";import{b as V}from"./series-chart-Xf49v9cv.js";import{I as X}from"./status-badge-BaUKP7Yo.js";import{B as Z}from"./app-wordmark-o9CODKP0.js";import{C as M,a as T,b as q,c as B}from"./card-cAtqCxWl.js";import{w as ee,c as R,m as se,a as te}from"./format-B9SDkrWj.js";import{ReleaseHealthStrip as re}from"./release-health-4b3tivEf.js";import{Y as ie,O as le}from"./app-layout-DDyQa72H.js";import"./chart-hover-B1M9jc0y.js";import"./badge-CAxXV8za.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./chart-BBeBkkNa.js";import"./stat-DFEyFxkO.js";import"./arrow-up-C6PxDiY3.js";import"./checkbox-CmhMHWZO.js";function H(s){const e=L.c(6),{rows:o,empty:l}=s;let r;e[0]!==l?(r=t.jsx(A,{icon:le,...l}),e[0]=l,e[1]=r):r=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=[{key:"k",header:"Issue",cell:ne},{key:"t",header:"Title",cell:ae},{key:"s",header:"",cell:oe}],e[2]=i):i=e[2];let a;return e[3]!==o||e[4]!==r?(a=t.jsx(z,{rows:o,rowKey:me,empty:r,columns:i}),e[3]=o,e[4]=r,e[5]=a):a=e[5],a}function oe(s){return t.jsx(X,{status:s.status})}function ae(s){return t.jsx("span",{className:"line-clamp-1 text-xs",children:s.title})}function ne(s){return t.jsx(K,{className:"font-mono text-xs hover:underline",href:F(s.id),children:s.key})}function me(s){return s.id}function Ue(s){const e=L.c(58),{environment:o,window:l}=U().props,r=o.application_id,i=o.id,a=s.release.ref;let n;e[0]!==r||e[1]!==i||e[2]!==l?(n=W(r,i,{window:l}),e[0]=r,e[1]=i,e[2]=l,e[3]=n):n=e[3];let m;e[4]!==n?(m={title:"Releases",href:n},e[4]=n,e[5]=m):m=e[5];let c;e[6]!==s.release.ref?(c={title:s.release.ref,href:"#"},e[6]=s.release.ref,e[7]=c):c=e[7];let d;e[8]!==m||e[9]!==c?(d=[m,c],e[8]=m,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==s.release.deploy?(u=t.jsx("span",{className:"font-mono",children:s.release.deploy}),e[11]=s.release.deploy,e[12]=u):u=e[12];let g;e[13]!==s.release.deployed_at?(g=s.release.deployed_at?ee(s.release.deployed_at):"never deployed",e[13]=s.release.deployed_at,e[14]=g):g=e[14];const O=`${g}${s.release.name?` · ${s.release.name}`:""}${s.release.previous_ref?` · after ${s.release.previous_ref}`:""}`;let f;e[15]!==r||e[16]!==i||e[17]!==s.release.deploy_id?(f=s.release.deploy_id&&t.jsx(Z,{asChild:!0,variant:"outline",size:"sm",children:t.jsx(K,{href:Y(r,i,s.release.deploy_id),children:"Deploy"})}),e[15]=r,e[16]=i,e[17]=s.release.deploy_id,e[18]=f):f=e[18];let h;e[19]!==u||e[20]!==O||e[21]!==f?(h=t.jsx(J,{withWindow:!1,title:u,description:O,actions:f}),e[19]=u,e[20]=O,e[21]=f,e[22]=h):h=e[22];const D=s.release.previous_ref?`vs ${s.release.previous_ref}`:void 0;let y;e[23]!==s.previous_summary||e[24]!==s.summary||e[25]!==D?(y=t.jsx(re,{health:s.summary,previous:s.previous_summary,deltaCaption:D}),e[23]=s.previous_summary,e[24]=s.summary,e[25]=D,e[26]=y):y=e[26];let p;e[27]!==s.summary.sessions?(p=R(s.summary.sessions),e[27]=s.summary.sessions,e[28]=p):p=e[28];let x;e[29]!==s.series?(x=t.jsx(V,{data:s.series}),e[29]=s.series,e[30]=x):x=e[30];let _;e[31]!==p||e[32]!==x?(_=t.jsx(G,{label:"Sessions by status",value:p,children:x}),e[31]=p,e[32]=x,e[33]=_):_=e[33];let S;e[34]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(q,{children:t.jsx(B,{children:"Issues first seen in this release"})}),e[34]=S):S=e[34];let k;e[35]===Symbol.for("react.memo_cache_sentinel")?(k={title:"No new issues in this release",description:"Issues first seen while this release was live would show here."},e[35]=k):k=e[35];let j;e[36]!==s.new_issues?(j=t.jsxs(M,{children:[S,t.jsx(T,{children:t.jsx(H,{rows:s.new_issues,empty:k})})]}),e[36]=s.new_issues,e[37]=j):j=e[37];let N;e[38]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(q,{children:t.jsx(B,{children:"Issues resolved in this release"})}),e[38]=N):N=e[38];let C;e[39]===Symbol.for("react.memo_cache_sentinel")?(C={title:"No issues marked resolved in this release",description:"Issues resolved and tagged with this deploy would show here."},e[39]=C):C=e[39];let v;e[40]!==s.resolved_issues?(v=t.jsxs(M,{children:[N,t.jsx(T,{children:t.jsx(H,{rows:s.resolved_issues,empty:C})})]}),e[40]=s.resolved_issues,e[41]=v):v=e[41];let w;e[42]!==j||e[43]!==v?(w=t.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[j,v]}),e[42]=j,e[43]=v,e[44]=w):w=e[44];let $;e[45]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx("h2",{className:"text-sm font-semibold",children:"Sessions"}),e[45]=$):$=e[45];let E,I;e[46]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(A,{icon:ie,title:"No sessions reported for this release",description:"Sessions come from the browser client and the gem's request middleware; config.track_sessions turns both off."}),I=[{key:"id",header:"Session",cell:xe},{key:"source",hideOnMobile:!0,header:"Source",cell:pe},{key:"status",header:"Status",cell:ye},{key:"user",hideOnMobile:!0,header:"User",cell:he},{key:"duration",header:"Duration",align:"right",cell:fe},{key:"activity",hideOnMobile:!0,header:"Requests / visits",align:"right",cell:ue},{key:"errors",hideOnMobile:!0,header:"Errors",align:"right",cell:de},{key:"started",header:"Started",align:"right",cell:ce}],e[46]=E,e[47]=I):(E=e[46],I=e[47]);let b;e[48]!==s.sessions?(b=t.jsx(z,{rows:s.sessions,rowKey:je,rowClassName:_e,empty:E,columns:I}),e[48]=s.sessions,e[49]=b):b=e[49];let P;return e[50]!==s.release.ref||e[51]!==y||e[52]!==_||e[53]!==w||e[54]!==b||e[55]!==d||e[56]!==h?(P=t.jsxs(Q,{title:a,crumbs:d,children:[h,y,_,w,$,b]}),e[50]=s.release.ref,e[51]=y,e[52]=_,e[53]=w,e[54]=b,e[55]=d,e[56]=h,e[57]=P):P=e[57],P}function ce(s){return te(s.started_at)}function de(s){return t.jsx("span",{className:s.errors?"text-destructive":"",children:R(s.errors)})}function ue(s){return`${R(s.requests)} / ${R(s.visits)}`}function fe(s){return se(s.duration)}function he(s){return t.jsx("span",{className:"font-mono text-xs",children:s.user_ref})}function ye(s){return t.jsx("span",{className:s.status==="crashed"?"text-destructive text-xs font-semibold":"text-xs",children:s.status})}function pe(s){return t.jsx("span",{className:"text-xs",children:s.source})}function xe(s){return t.jsx("span",{className:"font-mono text-xs",children:s.session_id})}function _e(s){return s.status==="crashed"?"bg-destructive/5":void 0}function je(s){return s.id}export{Ue as default};
@@ -1,2 +1,2 @@
1
- import{r as y,j as a,c as Ce,C as Qe,u as vt,L as qe,G as yt,I as mt,J as kt,K as Nt,i as wt}from"./inertia-CUTKXjxg.js";import{D as $e}from"./data-table-CwtPkw_i.js";import{F as Tt}from"./flamegraph-uYWk1Yov.js";import{C as qt,E as Ct}from"./frames-B5ZECkvt.js";import{J as nt}from"./json-viewer-CJECqZ0l.js";import{O as ft}from"./origin-identity-DrJ4D2TX.js";import{P as St,E as $t}from"./env-layout-Dkp_4NvM.js";import{T as It,S as Et}from"./timeline-CLAwsAlo.js";import{S as k,a as Pt}from"./stat-IghK3WjD.js";import{S as Ge,L as zt}from"./status-badge-XYUN9gUA.js";import{B as it}from"./badge-s7YDycYg.js";import{c as At,B as Rt}from"./app-wordmark-DDNuuq5_.js";import{C as _,b,c as j,a as v}from"./card-DiW-JhK3.js";import{c as Lt,u as Mt,a as rt,P as Dt,C as xt}from"./index-BpnfuXi-.js";import{c as ht,u as Ft,d as Ot,I as Vt}from"./app-layout-DUk54qUM.js";import{P as He}from"./index-n16aviHx.js";import{u as Bt}from"./live-dot-Bb1UYT9F.js";import{u as gt,C as Kt}from"./use-clipboard-D5i6e5kf.js";import{e as Jt}from"./execution-path-CdEerUGH.js";import{w as Gt,m as h,c as pt,b as _t}from"./format-B9SDkrWj.js";import"./chart-hover-DMWx5-Rs.js";import"./empty-state-CshhuRUU.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./source-link-B2183i2-.js";import"./tenant-path-SxnZbfU1.js";import"./use-live-V-slSdFJ.js";import"./arrow-up-DYTCBENO.js";import"./checkbox-C2AqEZXX.js";var Qt=Object.defineProperty,Se=(t,e)=>Qt(t,"name",{value:e,configurable:!0}),ot="Tabs",[Ht,ba]=Lt(ot,[ht]),bt=ht(),[Wt,lt]=Ht(ot),Ut=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,onValueChange:r,defaultValue:l,orientation:s="horizontal",dir:n,activationMode:f="automatic",...g}=e,m=Ft(n),[d,x]=Mt({prop:o,onChange:r,defaultProp:l??"",caller:ot});return a.jsx(Wt,{scope:c,baseId:Bt(),value:d,onValueChange:x,orientation:s,dir:m,activationMode:f,children:a.jsx(He.div,{dir:m,"data-orientation":s,...g,ref:i})})},"Tabs")),Xt="TabsList",Yt=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,loop:o=!0,...r}=e,l=lt(Xt,c),s=bt(c);return a.jsx(Ot,{asChild:!0,...s,orientation:l.orientation,dir:l.dir,loop:o,children:a.jsx(He.div,{role:"tablist","aria-orientation":l.orientation,...r,ref:i})})},"TabsList")),Zt="TabsTrigger",es=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,disabled:r=!1,...l}=e,s=lt(Zt,c),n=bt(c),f=ct(s.baseId,o),g=ut(s.baseId,o),m=o===s.value;return a.jsx(Vt,{asChild:!0,...n,focusable:!r,active:m,children:a.jsx(He.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":g,"data-state":m?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:f,...l,ref:i,onMouseDown:rt(e.onMouseDown,d=>{!r&&d.button===0&&d.ctrlKey===!1?s.onValueChange(o):d.preventDefault()}),onKeyDown:rt(e.onKeyDown,d=>{r||d.target!==d.currentTarget||[" ","Enter"].includes(d.key)&&s.onValueChange(o)}),onFocus:rt(e.onFocus,()=>{const d=s.activationMode!=="manual";!m&&!r&&d&&s.onValueChange(o)})})})},"TabsTrigger")),ts="TabsContent",ss=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,forceMount:r,children:l,...s}=e,n=lt(ts,c),f=ct(n.baseId,o),g=ut(n.baseId,o),m=o===n.value,d=y.useRef(m);return y.useEffect(()=>{const x=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(x)},[]),a.jsx(Dt,{present:r||m,children:({present:x})=>a.jsx(He.div,{"data-state":m?"active":"inactive","data-orientation":n.orientation,role:"tabpanel","aria-labelledby":f,hidden:!x,id:g,tabIndex:0,...s,ref:i,style:{...e.style,animationDuration:d.current?"0s":void 0},children:x&&l})})},"TabsContent"));function ct(t,e){return`${t}-trigger-${e}`}Se(ct,"makeTriggerId");function ut(t,e){return`${t}-content-${e}`}Se(ut,"makeContentId");var as=Ut,ns=Yt,rs=es,is=ss;function os(t){const e=Ce.c(10);let i,c,o;e[0]!==t?({className:i,orientation:o,...c}=t,e[0]=t,e[1]=i,e[2]=c,e[3]=o):(i=e[1],c=e[2],o=e[3]);const r=o===void 0?"horizontal":o;let l;e[4]!==i?(l=Qe("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",i),e[4]=i,e[5]=l):l=e[5];let s;return e[6]!==r||e[7]!==c||e[8]!==l?(s=a.jsx(as,{"data-slot":"tabs","data-orientation":r,orientation:r,className:l,...c}),e[6]=r,e[7]=c,e[8]=l,e[9]=s):s=e[9],s}const ls=At("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function cs(t){const e=Ce.c(11);let i,c,o;e[0]!==t?({className:i,variant:o,...c}=t,e[0]=t,e[1]=i,e[2]=c,e[3]=o):(i=e[1],c=e[2],o=e[3]);const r=o===void 0?"default":o;let l;e[4]!==i||e[5]!==r?(l=Qe(ls({variant:r}),i),e[4]=i,e[5]=r,e[6]=l):l=e[6];let s;return e[7]!==c||e[8]!==l||e[9]!==r?(s=a.jsx(ns,{"data-slot":"tabs-list","data-variant":r,className:l,...c}),e[7]=c,e[8]=l,e[9]=r,e[10]=s):s=e[10],s}function Ke(t){const e=Ce.c(8);let i,c;e[0]!==t?({className:i,...c}=t,e[0]=t,e[1]=i,e[2]=c):(i=e[1],c=e[2]);let o;e[3]!==i?(o=Qe("text-foreground/60 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",i),e[3]=i,e[4]=o):o=e[4];let r;return e[5]!==c||e[6]!==o?(r=a.jsx(rs,{"data-slot":"tabs-trigger",className:o,...c}),e[5]=c,e[6]=o,e[7]=r):r=e[7],r}function Je(t){const e=Ce.c(8);let i,c;e[0]!==t?({className:i,...c}=t,e[0]=t,e[1]=i,e[2]=c):(i=e[1],c=e[2]);let o;e[3]!==i?(o=Qe("flex-1 outline-none",i),e[3]=i,e[4]=o):o=e[4];let r;return e[5]!==c||e[6]!==o?(r=a.jsx(is,{"data-slot":"tabs-content",className:o,...c}),e[5]=c,e[6]=o,e[7]=r):r=e[7],r}const us={request:"Request",job_attempt:"Job attempt",scheduled_task:"Scheduled task",command:"Command",channel_action:"Channel action"};function ds(t){const e=Ce.c(8),{value:i}=t,[,c]=gt(),[o,r]=y.useState(!1);let l;e[0]!==c||e[1]!==i?(l=()=>{(async()=>await c(i)&&(r(!0),setTimeout(()=>r(!1),1200)))()},e[0]=c,e[1]=i,e[2]=l):l=e[2];let s;e[3]!==o?(s=o?a.jsx(xt,{className:"size-3"}):a.jsx(Kt,{className:"size-3"}),e[3]=o,e[4]=s):s=e[4];let n;return e[5]!==l||e[6]!==s?(n=a.jsx("button",{type:"button",onClick:l,className:"hover:text-foreground text-muted-foreground ml-1 inline-flex align-middle",title:"Copy",children:s}),e[5]=l,e[6]=s,e[7]=n):n=e[7],n}function ms(t){try{return JSON.parse(String(t))}catch{return String(t)}}function fs(t,e){const i=[];i.push(`# ${e.name}`),i.push(""),i.push(`- status: ${e.status??e.outcome??"-"}`),i.push(`- duration: ${h(e.duration)}`),i.push(`- occurred_at: ${e.occurred_at}`),i.push(""),i.push("## Stages");for(const[o,r]of Object.entries(e.stages))i.push(`- ${o}: ${h(r)}`);i.push(""),i.push("## Counters");for(const[o,r]of Object.entries(e.counters))i.push(`- ${o}: ${r}`);if(t.exceptions.length>0){i.push(""),i.push("## Exceptions");for(const o of t.exceptions){i.push(`### ${o.class_name}: ${o.message}`);for(const r of o.frames.filter(l=>l.in_app))i.push(`- ${r.file}:${r.line} in \`${r.function}\``)}}const c=[...t.queries].sort((o,r)=>r.duration-o.duration).slice(0,5);if(c.length>0){i.push(""),i.push("## Slow queries");for(const o of c)i.push(`- ${h(o.duration,2)} — \`${o.sql}\``)}return i.join(`
1
+ import{r as y,j as a,c as Ce,C as Qe,u as vt,L as qe,G as yt,I as mt,J as kt,K as Nt,i as wt}from"./inertia-DLew8ZNx.js";import{D as $e}from"./data-table-BIlt7Rtm.js";import{F as Tt}from"./flamegraph-DSs69foN.js";import{C as qt,E as Ct}from"./frames-BUi2J5Mk.js";import{J as nt}from"./json-viewer-D922McGi.js";import{O as ft}from"./origin-identity-Bk9yHWZ1.js";import{P as St,E as $t}from"./env-layout-REF7OM4q.js";import{T as It,S as Et}from"./timeline-D5rJ0es2.js";import{S as k,a as Pt}from"./stat-DFEyFxkO.js";import{S as Ge,L as zt}from"./status-badge-BaUKP7Yo.js";import{B as it}from"./badge-CAxXV8za.js";import{c as At,B as Rt}from"./app-wordmark-o9CODKP0.js";import{C as _,b,c as j,a as v}from"./card-cAtqCxWl.js";import{c as Lt,u as Mt,a as rt,P as Dt,C as xt}from"./index-umIAl-pL.js";import{c as ht,u as Ft,d as Ot,I as Vt}from"./app-layout-DDyQa72H.js";import{P as He}from"./index-so4lRrRq.js";import{u as Bt}from"./live-dot-D1n_BreY.js";import{u as gt,C as Kt}from"./use-clipboard-ByoUGQqA.js";import{e as Jt}from"./execution-path-FYLq1TwC.js";import{w as Gt,m as h,c as pt,b as _t}from"./format-B9SDkrWj.js";import"./chart-hover-B1M9jc0y.js";import"./empty-state-C38il627.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./source-link-B2183i2-.js";import"./tenant-path-DPZPc985.js";import"./use-live-D7xKz2ma.js";import"./arrow-up-C6PxDiY3.js";import"./checkbox-CmhMHWZO.js";var Qt=Object.defineProperty,Se=(t,e)=>Qt(t,"name",{value:e,configurable:!0}),ot="Tabs",[Ht,ba]=Lt(ot,[ht]),bt=ht(),[Wt,lt]=Ht(ot),Ut=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,onValueChange:r,defaultValue:l,orientation:s="horizontal",dir:n,activationMode:f="automatic",...g}=e,m=Ft(n),[d,x]=Mt({prop:o,onChange:r,defaultProp:l??"",caller:ot});return a.jsx(Wt,{scope:c,baseId:Bt(),value:d,onValueChange:x,orientation:s,dir:m,activationMode:f,children:a.jsx(He.div,{dir:m,"data-orientation":s,...g,ref:i})})},"Tabs")),Xt="TabsList",Yt=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,loop:o=!0,...r}=e,l=lt(Xt,c),s=bt(c);return a.jsx(Ot,{asChild:!0,...s,orientation:l.orientation,dir:l.dir,loop:o,children:a.jsx(He.div,{role:"tablist","aria-orientation":l.orientation,...r,ref:i})})},"TabsList")),Zt="TabsTrigger",es=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,disabled:r=!1,...l}=e,s=lt(Zt,c),n=bt(c),f=ct(s.baseId,o),g=ut(s.baseId,o),m=o===s.value;return a.jsx(Vt,{asChild:!0,...n,focusable:!r,active:m,children:a.jsx(He.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":g,"data-state":m?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:f,...l,ref:i,onMouseDown:rt(e.onMouseDown,d=>{!r&&d.button===0&&d.ctrlKey===!1?s.onValueChange(o):d.preventDefault()}),onKeyDown:rt(e.onKeyDown,d=>{r||d.target!==d.currentTarget||[" ","Enter"].includes(d.key)&&s.onValueChange(o)}),onFocus:rt(e.onFocus,()=>{const d=s.activationMode!=="manual";!m&&!r&&d&&s.onValueChange(o)})})})},"TabsTrigger")),ts="TabsContent",ss=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,forceMount:r,children:l,...s}=e,n=lt(ts,c),f=ct(n.baseId,o),g=ut(n.baseId,o),m=o===n.value,d=y.useRef(m);return y.useEffect(()=>{const x=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(x)},[]),a.jsx(Dt,{present:r||m,children:({present:x})=>a.jsx(He.div,{"data-state":m?"active":"inactive","data-orientation":n.orientation,role:"tabpanel","aria-labelledby":f,hidden:!x,id:g,tabIndex:0,...s,ref:i,style:{...e.style,animationDuration:d.current?"0s":void 0},children:x&&l})})},"TabsContent"));function ct(t,e){return`${t}-trigger-${e}`}Se(ct,"makeTriggerId");function ut(t,e){return`${t}-content-${e}`}Se(ut,"makeContentId");var as=Ut,ns=Yt,rs=es,is=ss;function os(t){const e=Ce.c(10);let i,c,o;e[0]!==t?({className:i,orientation:o,...c}=t,e[0]=t,e[1]=i,e[2]=c,e[3]=o):(i=e[1],c=e[2],o=e[3]);const r=o===void 0?"horizontal":o;let l;e[4]!==i?(l=Qe("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",i),e[4]=i,e[5]=l):l=e[5];let s;return e[6]!==r||e[7]!==c||e[8]!==l?(s=a.jsx(as,{"data-slot":"tabs","data-orientation":r,orientation:r,className:l,...c}),e[6]=r,e[7]=c,e[8]=l,e[9]=s):s=e[9],s}const ls=At("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function cs(t){const e=Ce.c(11);let i,c,o;e[0]!==t?({className:i,variant:o,...c}=t,e[0]=t,e[1]=i,e[2]=c,e[3]=o):(i=e[1],c=e[2],o=e[3]);const r=o===void 0?"default":o;let l;e[4]!==i||e[5]!==r?(l=Qe(ls({variant:r}),i),e[4]=i,e[5]=r,e[6]=l):l=e[6];let s;return e[7]!==c||e[8]!==l||e[9]!==r?(s=a.jsx(ns,{"data-slot":"tabs-list","data-variant":r,className:l,...c}),e[7]=c,e[8]=l,e[9]=r,e[10]=s):s=e[10],s}function Ke(t){const e=Ce.c(8);let i,c;e[0]!==t?({className:i,...c}=t,e[0]=t,e[1]=i,e[2]=c):(i=e[1],c=e[2]);let o;e[3]!==i?(o=Qe("text-foreground/60 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",i),e[3]=i,e[4]=o):o=e[4];let r;return e[5]!==c||e[6]!==o?(r=a.jsx(rs,{"data-slot":"tabs-trigger",className:o,...c}),e[5]=c,e[6]=o,e[7]=r):r=e[7],r}function Je(t){const e=Ce.c(8);let i,c;e[0]!==t?({className:i,...c}=t,e[0]=t,e[1]=i,e[2]=c):(i=e[1],c=e[2]);let o;e[3]!==i?(o=Qe("flex-1 outline-none",i),e[3]=i,e[4]=o):o=e[4];let r;return e[5]!==c||e[6]!==o?(r=a.jsx(is,{"data-slot":"tabs-content",className:o,...c}),e[5]=c,e[6]=o,e[7]=r):r=e[7],r}const us={request:"Request",job_attempt:"Job attempt",scheduled_task:"Scheduled task",command:"Command",channel_action:"Channel action"};function ds(t){const e=Ce.c(8),{value:i}=t,[,c]=gt(),[o,r]=y.useState(!1);let l;e[0]!==c||e[1]!==i?(l=()=>{(async()=>await c(i)&&(r(!0),setTimeout(()=>r(!1),1200)))()},e[0]=c,e[1]=i,e[2]=l):l=e[2];let s;e[3]!==o?(s=o?a.jsx(xt,{className:"size-3"}):a.jsx(Kt,{className:"size-3"}),e[3]=o,e[4]=s):s=e[4];let n;return e[5]!==l||e[6]!==s?(n=a.jsx("button",{type:"button",onClick:l,className:"hover:text-foreground text-muted-foreground ml-1 inline-flex align-middle",title:"Copy",children:s}),e[5]=l,e[6]=s,e[7]=n):n=e[7],n}function ms(t){try{return JSON.parse(String(t))}catch{return String(t)}}function fs(t,e){const i=[];i.push(`# ${e.name}`),i.push(""),i.push(`- status: ${e.status??e.outcome??"-"}`),i.push(`- duration: ${h(e.duration)}`),i.push(`- occurred_at: ${e.occurred_at}`),i.push(""),i.push("## Stages");for(const[o,r]of Object.entries(e.stages))i.push(`- ${o}: ${h(r)}`);i.push(""),i.push("## Counters");for(const[o,r]of Object.entries(e.counters))i.push(`- ${o}: ${r}`);if(t.exceptions.length>0){i.push(""),i.push("## Exceptions");for(const o of t.exceptions){i.push(`### ${o.class_name}: ${o.message}`);for(const r of o.frames.filter(l=>l.in_app))i.push(`- ${r.file}:${r.line} in \`${r.function}\``)}}const c=[...t.queries].sort((o,r)=>r.duration-o.duration).slice(0,5);if(c.length>0){i.push(""),i.push("## Slow queries");for(const o of c)i.push(`- ${h(o.duration,2)} — \`${o.sql}\``)}return i.join(`
2
2
  `)}function ja(t){const e=Ce.c(244),{environment:i,range:c,window:o}=vt().props,r=i.application_id,l=i.id,s=t.execution,n=s.detail;let f;e[0]!==n.headers?(f=n.headers??{},e[0]=n.headers,e[1]=f):f=e[1];const g=f,m=n.inertia,[,d]=gt(),[x,dt]=y.useState(!1),jt=s.name,We=us[s.kind]??s.kind;let N;e[2]!==We?(N={title:We,href:"#"},e[2]=We,e[3]=N):N=e[3];let w;e[4]!==s.name?(w={title:s.name,href:"#"},e[4]=s.name,e[5]=w):w=e[5];let T;e[6]!==N||e[7]!==w?(T=[N,w],e[6]=N,e[7]=w,e[8]=T):T=e[8];let q;e[9]!==s.outcome||e[10]!==s.status?(q=a.jsx(Ge,{status:s.status,outcome:s.outcome}),e[9]=s.outcome,e[10]=s.status,e[11]=q):q=e[11];let C;e[12]!==s.name?(C=a.jsx("span",{className:"font-mono",children:s.name}),e[12]=s.name,e[13]=C):C=e[13];let S;e[14]!==s.profiled?(S=s.profiled&&a.jsx(it,{variant:"secondary",className:"font-mono",children:"profiled"}),e[14]=s.profiled,e[15]=S):S=e[15];let $;e[16]!==q||e[17]!==C||e[18]!==S?($=a.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[q,C,S]}),e[16]=q,e[17]=C,e[18]=S,e[19]=$):$=e[19];let I;e[20]!==s.occurred_at?(I=Gt(s.occurred_at),e[20]=s.occurred_at,e[21]=I):I=e[21];let E;e[22]!==I?(E=a.jsx("span",{children:I}),e[22]=I,e[23]=E):E=e[23];let P;e[24]!==s.server?(P=s.server&&a.jsxs("span",{children:["server ",s.server]}),e[24]=s.server,e[25]=P):P=e[25];let z;e[26]!==s.deploy?(z=s.deploy&&a.jsxs("span",{children:["deploy ",s.deploy.slice(0,12)]}),e[26]=s.deploy,e[27]=z):z=e[27];let A;e[28]!==r||e[29]!==l||e[30]!==t.person||e[31]!==c||e[32]!==o||e[33]!==s.tenant||e[34]!==s.user_ref?(A=s.user_ref&&a.jsxs("span",{className:"inline-flex items-center gap-1",children:["origin user",a.jsx(ft,{applicationId:r,environmentId:l,kind:"user",range:c,window:o,user_ref:s.user_ref,tenant:s.tenant,person:t.person&&{ref:t.person.ref,name:t.person.name??t.person.ref}})]}),e[28]=r,e[29]=l,e[30]=t.person,e[31]=c,e[32]=o,e[33]=s.tenant,e[34]=s.user_ref,e[35]=A):A=e[35];let R;e[36]!==r||e[37]!==l||e[38]!==c||e[39]!==o||e[40]!==s.tenant||e[41]!==s.user_ref?(R=s.tenant&&a.jsxs("span",{className:"inline-flex items-center gap-1",children:["origin tenant",a.jsx(ft,{applicationId:r,environmentId:l,kind:"tenant",range:c,window:o,user_ref:s.user_ref,tenant:s.tenant,person:null})]}),e[36]=r,e[37]=l,e[38]=c,e[39]=o,e[40]=s.tenant,e[41]=s.user_ref,e[42]=R):R=e[42];let L;e[43]!==E||e[44]!==P||e[45]!==z||e[46]!==A||e[47]!==R?(L=a.jsxs("span",{className:"flex flex-wrap gap-x-3 text-xs",children:[E,P,z,A,R]}),e[43]=E,e[44]=P,e[45]=z,e[46]=A,e[47]=R,e[48]=L):L=e[48];let M;e[49]!==d||e[50]!==t||e[51]!==s?(M=()=>{(async()=>await d(fs(t,s))&&(dt(!0),setTimeout(()=>dt(!1),1200)))()},e[49]=d,e[50]=t,e[51]=s,e[52]=M):M=e[52];let D;e[53]!==x?(D=x?a.jsx(xt,{className:"size-3.5"}):a.jsx(qt,{className:"size-3.5"}),e[53]=x,e[54]=D):D=e[54];let F;e[55]!==M||e[56]!==D?(F=a.jsxs(Rt,{type:"button",variant:"outline",size:"sm",onClick:M,children:[D,"Copy as Markdown"]}),e[55]=M,e[56]=D,e[57]=F):F=e[57];let O;e[58]!==L||e[59]!==F||e[60]!==$?(O=a.jsx(St,{withWindow:!1,title:$,description:L,actions:F}),e[58]=L,e[59]=F,e[60]=$,e[61]=O):O=e[61];let V;e[62]!==t.issues?(V=t.issues.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2",children:t.issues.map(Bs)}),e[62]=t.issues,e[63]=V):V=e[63];let B;e[64]!==s.duration?(B=h(s.duration),e[64]=s.duration,e[65]=B):B=e[65];let K;e[66]!==s.queue_latency?(K=s.queue_latency!=null?`queued ${h(s.queue_latency)}`:void 0,e[66]=s.queue_latency,e[67]=K):K=e[67];let J;e[68]!==B||e[69]!==K?(J=a.jsx(k,{label:"Duration",value:B,hint:K}),e[68]=B,e[69]=K,e[70]=J):J=e[70];const Ue=s.counters.queries??0,Xe=`${s.counters.cached_queries??0} cached · ${s.counters.hydrated_models??0} models`;let G;e[71]!==Ue||e[72]!==Xe?(G=a.jsx(k,{label:"Queries",value:Ue,hint:Xe}),e[71]=Ue,e[72]=Xe,e[73]=G):G=e[73];let Q;e[74]!==s.queue_time?(Q=s.queue_time!=null&&a.jsx(k,{label:"Queue time",value:h(s.queue_time)}),e[74]=s.queue_time,e[75]=Q):Q=e[75];const Ye=s.counters.cache_events??0;let H;e[76]!==Ye?(H=a.jsx(k,{label:"Cache",value:Ye}),e[76]=Ye,e[77]=H):H=e[77];const Ze=s.counters.outgoing_requests??0,et=`${s.counters.jobs_enqueued??0} jobs enqueued · ${s.counters.mail??0} mail`;let W;e[78]!==Ze||e[79]!==et?(W=a.jsx(k,{label:"Outgoing",value:Ze,hint:et}),e[78]=Ze,e[79]=et,e[80]=W):W=e[80];let U;e[81]!==s.allocations?(U=pt(s.allocations),e[81]=s.allocations,e[82]=U):U=e[82];let X;e[83]!==s.peak_memory?(X=s.peak_memory?`RSS ${_t(s.peak_memory)}`:void 0,e[83]=s.peak_memory,e[84]=X):X=e[84];let Y;e[85]!==U||e[86]!==X?(Y=a.jsx(k,{label:"Allocations",value:U,hint:X}),e[85]=U,e[86]=X,e[87]=Y):Y=e[87];const tt=s.counters.exceptions??0,st=s.counters.exceptions?"destructive":void 0,at=s.counters.lazy_loads?`${s.counters.lazy_loads} lazy loads`:void 0;let Z;e[88]!==tt||e[89]!==st||e[90]!==at?(Z=a.jsx(k,{label:"Exceptions",value:tt,tone:st,hint:at}),e[88]=tt,e[89]=st,e[90]=at,e[91]=Z):Z=e[91];let ee;e[92]!==J||e[93]!==G||e[94]!==Q||e[95]!==H||e[96]!==W||e[97]!==Y||e[98]!==Z?(ee=a.jsxs(Pt,{children:[J,G,Q,H,W,Y,Z]}),e[92]=J,e[93]=G,e[94]=Q,e[95]=H,e[96]=W,e[97]=Y,e[98]=Z,e[99]=ee):ee=e[99];let te;e[100]!==r||e[101]!==l||e[102]!==t.trace||e[103]!==t.trace_url?(te=t.trace.length>1&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsxs(j,{className:"flex flex-wrap items-center justify-between gap-2",children:["Trace",t.trace_url&&a.jsx(qe,{href:t.trace_url,className:"text-primary text-xs font-normal hover:underline",children:"View distributed trace"})]})}),a.jsx(v,{children:a.jsx("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:t.trace.map((u,p)=>{const Te=Math.max(...t.trace.map(Vs),1);return a.jsxs("span",{className:"flex items-center gap-2",children:[p>0&&a.jsx("span",{className:"text-muted-foreground",children:"→"}),a.jsxs(qe,{href:Jt({applicationId:r,environmentId:l,source:u.kind,executionId:u.execution_id}),className:u.current?"bg-muted flex items-center gap-1.5 rounded px-2 py-1 font-semibold":"hover:bg-muted flex items-center gap-1.5 rounded px-2 py-1",children:[a.jsx(Ge,{status:u.status,outcome:u.outcome})," ",a.jsx("span",{className:"font-mono",children:u.name}),a.jsx("span",{className:"bg-muted-foreground/25 relative h-1.5 w-10 overflow-hidden rounded-full",children:a.jsx("span",{className:"bg-primary absolute inset-y-0 left-0 rounded-full",style:{width:`${Math.max(4,u.duration/Te*100)}%`}})}),a.jsx("span",{className:"text-muted-foreground",children:h(u.duration)})]})]},u.execution_id)})})})]}),e[100]=r,e[101]=l,e[102]=t.trace,e[103]=t.trace_url,e[104]=te):te=e[104];let se;if(e[105]!==t.exceptions||e[106]!==t.execution){let u;e[108]!==t.execution?(u=p=>a.jsxs(_,{className:"border-destructive/40",children:[a.jsx(b,{children:a.jsx(j,{children:"Exception"})}),a.jsx(v,{children:a.jsx(Ct,{exception:p,deploy:t.execution.deploy})})]},p.id),e[108]=t.execution,e[109]=u):u=e[109],se=t.exceptions.map(u),e[105]=t.exceptions,e[106]=t.execution,e[107]=se}else se=e[107];let Ie;e[110]===Symbol.for("react.memo_cache_sentinel")?(Ie=a.jsx(b,{children:a.jsx(j,{children:"Timeline"})}),e[110]=Ie):Ie=e[110];let ae;e[111]!==t.timeline||e[112]!==s.duration||e[113]!==s.stages?(ae=a.jsxs(_,{children:[Ie,a.jsx(v,{children:a.jsx(It,{entries:t.timeline,total:s.duration,stages:s.stages})})]}),e[111]=t.timeline,e[112]=s.duration,e[113]=s.stages,e[114]=ae):ae=e[114];let ne;e[115]!==t.spans?(ne=t.spans.length>0&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsx(j,{children:"Spans"})}),a.jsx(v,{children:a.jsx($e,{rows:t.spans,rowKey:Os,columns:[{key:"off",header:"+ms",align:"right",cell:Fs},{key:"name",header:"Span",cell:Ds},{key:"status",header:"Status",cell:Ms},{key:"attrs",header:"Attributes",cell:Rs},{key:"dur",header:"Duration",align:"right",cell:As}]})})]}),e[115]=t.spans,e[116]=ne):ne=e[116];let re;e[117]!==r||e[118]!==l||e[119]!==t.profile?(re=t.profile&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsxs(j,{className:"flex flex-wrap items-center justify-between gap-2",children:["Profile",a.jsx(qe,{href:yt(r,l,t.profile.id),className:"text-primary text-xs font-normal hover:underline",children:"Open full profile"})]})}),a.jsxs(v,{className:"space-y-2",children:[a.jsxs("p",{className:"text-muted-foreground font-mono text-[11px]",children:[t.profile.profiler,t.profile.mode?` · ${t.profile.mode}`:""," ·"," ",pt(t.profile.samples)," samples · ",h(t.profile.duration),t.profile.truncated&&" · truncated for this page"]}),a.jsx(Tt,{collapsed:t.profile.collapsed})]})]}),e[117]=r,e[118]=l,e[119]=t.profile,e[120]=re):re=e[120];let ie;e[121]!==r||e[122]!==l||e[123]!==t.attachments?(ie=t.attachments.length>0&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsx(j,{children:"Attachments"})}),a.jsx(v,{children:a.jsx($e,{rows:t.attachments,rowKey:zs,columns:[{key:"name",header:"Name",className:"max-w-0",cell:Ps},{key:"type",hideOnMobile:!0,header:"Type",cell:Es},{key:"size",header:"Size",align:"right",cell:Is},{key:"links",header:"",align:"right",cell:u=>a.jsxs("span",{className:"flex justify-end gap-3",children:[u.viewable&&a.jsx("a",{className:"text-primary hover:underline",href:mt(r,l,u.id,{view:1}),children:"View"}),a.jsx("a",{className:"text-primary hover:underline",href:mt(r,l,u.id),children:"Download"})]})}]})})]}),e[121]=r,e[122]=l,e[123]=t.attachments,e[124]=ie):ie=e[124];let oe;e[125]!==t.queries.length?(oe=a.jsxs(Ke,{value:"queries",children:["Queries (",t.queries.length,")"]}),e[125]=t.queries.length,e[126]=oe):oe=e[126];let le;e[127]!==t.logs.length?(le=a.jsxs(Ke,{value:"logs",children:["Logs (",t.logs.length,")"]}),e[127]=t.logs.length,e[128]=le):le=e[128];let ce;e[129]!==t.enqueued_jobs.length?(ce=a.jsxs(Ke,{value:"jobs",children:["Enqueued jobs (",t.enqueued_jobs.length,")"]}),e[129]=t.enqueued_jobs.length,e[130]=ce):ce=e[130];let Ee;e[131]===Symbol.for("react.memo_cache_sentinel")?(Ee=a.jsx(Ke,{value:"request",children:"Details"}),e[131]=Ee):Ee=e[131];let ue;e[132]!==oe||e[133]!==le||e[134]!==ce?(ue=a.jsxs(cs,{children:[oe,le,ce,Ee]}),e[132]=oe,e[133]=le,e[134]=ce,e[135]=ue):ue=e[135];let Pe;e[136]===Symbol.for("react.memo_cache_sentinel")?(Pe={key:"off",header:"+ms",align:"right",cell:Ss},e[136]=Pe):Pe=e[136];let de;e[137]!==r||e[138]!==l?(de={key:"sql",header:"SQL",cell:u=>a.jsx(qe,{href:kt(r,l,u.group_hash),children:a.jsx(Et,{sql:u.sql,className:"hover:underline"})})},e[137]=r,e[138]=l,e[139]=de):de=e[139];let ze,Ae,Re;e[140]===Symbol.for("react.memo_cache_sentinel")?(ze={key:"rows",header:"Rows",align:"right",cell:Cs},Ae={key:"src",header:"Source",cell:qs},Re={key:"dur",header:"Duration",align:"right",cell:Ts},e[140]=ze,e[141]=Ae,e[142]=Re):(ze=e[140],Ae=e[141],Re=e[142]);let me;e[143]!==de?(me=[Pe,de,ze,Ae,Re],e[143]=de,e[144]=me):me=e[144];let fe;e[145]!==t.queries||e[146]!==me?(fe=a.jsx(Je,{value:"queries",children:a.jsx($e,{rows:t.queries,rowKey:$s,empty:"No queries.",columns:me})}),e[145]=t.queries,e[146]=me,e[147]=fe):fe=e[147];let Le;e[148]===Symbol.for("react.memo_cache_sentinel")?(Le=[{key:"lvl",header:"Level",cell:Ns},{key:"msg",header:"Message",cell:ks},{key:"tags",header:"Tags",cell:ys},{key:"stage",header:"Stage",cell:vs}],e[148]=Le):Le=e[148];let pe;e[149]!==t.logs?(pe=a.jsx(Je,{value:"logs",children:a.jsx($e,{rows:t.logs,rowKey:ws,empty:"No logs.",columns:Le})}),e[149]=t.logs,e[150]=pe):pe=e[150];let Me,De,Fe;e[151]===Symbol.for("react.memo_cache_sentinel")?(Me={key:"name",header:"Job",cell:bs},De={key:"queue",header:"Queue",cell:_s},Fe={key:"id",header:"Job id",cell:gs},e[151]=Me,e[152]=De,e[153]=Fe):(Me=e[151],De=e[152],Fe=e[153]);let xe;e[154]!==r||e[155]!==l?(xe=[Me,De,Fe,{key:"attempt",header:"Attempt",cell:u=>u.attempt_execution_id?a.jsx(qe,{className:"hover:underline",href:Nt(r,l,u.attempt_execution_id),children:a.jsx(Ge,{outcome:u.attempt_outcome})}):a.jsx("span",{className:"text-muted-foreground text-xs",children:"not seen yet"})}],e[154]=r,e[155]=l,e[156]=xe):xe=e[156];let he;e[157]!==t.enqueued_jobs||e[158]!==xe?(he=a.jsx(Je,{value:"jobs",children:a.jsx($e,{rows:t.enqueued_jobs,rowKey:js,empty:"No jobs enqueued.",columns:xe})}),e[157]=t.enqueued_jobs,e[158]=xe,e[159]=he):he=e[159];let Oe;e[160]===Symbol.for("react.memo_cache_sentinel")?(Oe=a.jsx(b,{children:a.jsx(j,{children:"Execution"})}),e[160]=Oe):Oe=e[160];let ge;if(e[161]!==n.arguments_preview||e[162]!==n.db_runtime||e[163]!==n.format||e[164]!==n.halted_callback||e[165]!==n.ip||e[166]!==n.redirect_to||e[167]!==n.schedule||e[168]!==n.url||e[169]!==n.user_agent||e[170]!==n.view_runtime||e[171]!==s.action||e[172]!==s.attempt||e[173]!==s.controller||e[174]!==s.execution_id||e[175]!==s.inertia_component||e[176]!==s.job_id||e[177]!==s.kind||e[178]!==s.queue||e[179]!==s.route||e[180]!==s.task_key||e[181]!==s.trace_id){const u=s.controller&&`${s.controller}#${s.action}`;let p;e[183]!==n.arguments_preview?(p=Array.isArray(n.arguments_preview)?n.arguments_preview.join(", "):void 0,e[183]=n.arguments_preview,e[184]=p):p=e[184];let Te;e[185]!==n.db_runtime||e[186]!==n.format||e[187]!==n.halted_callback||e[188]!==n.ip||e[189]!==n.redirect_to||e[190]!==n.schedule||e[191]!==n.url||e[192]!==n.user_agent||e[193]!==n.view_runtime||e[194]!==u||e[195]!==p||e[196]!==s.attempt||e[197]!==s.execution_id||e[198]!==s.inertia_component||e[199]!==s.job_id||e[200]!==s.kind||e[201]!==s.queue||e[202]!==s.route||e[203]!==s.task_key||e[204]!==s.trace_id?(Te={kind:s.kind,trace_id:s.trace_id,execution_id:s.execution_id,controller:u,route:s.route,url:n.url,ip:n.ip,format:n.format,queue:s.queue,attempt:s.attempt,job_id:s.job_id,task_key:s.task_key,schedule:n.schedule,inertia_component:s.inertia_component,redirect_to:n.redirect_to,halted_callback:n.halted_callback,view_runtime:n.view_runtime,db_runtime:n.db_runtime,user_agent:n.user_agent,arguments:p},e[185]=n.db_runtime,e[186]=n.format,e[187]=n.halted_callback,e[188]=n.ip,e[189]=n.redirect_to,e[190]=n.schedule,e[191]=n.url,e[192]=n.user_agent,e[193]=n.view_runtime,e[194]=u,e[195]=p,e[196]=s.attempt,e[197]=s.execution_id,e[198]=s.inertia_component,e[199]=s.job_id,e[200]=s.kind,e[201]=s.queue,e[202]=s.route,e[203]=s.task_key,e[204]=s.trace_id,e[205]=Te):Te=e[205],ge=a.jsx("dl",{className:"grid gap-y-1 text-xs sm:grid-cols-[10rem_1fr]",children:Object.entries(Te).filter(hs).map(xs)}),e[161]=n.arguments_preview,e[162]=n.db_runtime,e[163]=n.format,e[164]=n.halted_callback,e[165]=n.ip,e[166]=n.redirect_to,e[167]=n.schedule,e[168]=n.url,e[169]=n.user_agent,e[170]=n.view_runtime,e[171]=s.action,e[172]=s.attempt,e[173]=s.controller,e[174]=s.execution_id,e[175]=s.inertia_component,e[176]=s.job_id,e[177]=s.kind,e[178]=s.queue,e[179]=s.route,e[180]=s.task_key,e[181]=s.trace_id,e[182]=ge}else ge=e[182];let _e;e[206]!==m?(_e=m&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:m})}),e[206]=m,e[207]=_e):_e=e[207];let be;e[208]!==n.context?(be=n.context&&n.context!=="{}"&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:ms(n.context)})}),e[208]=n.context,e[209]=be):be=e[209];let je;e[210]!==ge||e[211]!==_e||e[212]!==be?(je=a.jsxs(_,{children:[Oe,a.jsxs(v,{children:[ge,_e,be]})]}),e[210]=ge,e[211]=_e,e[212]=be,e[213]=je):je=e[213];let Ve;e[214]===Symbol.for("react.memo_cache_sentinel")?(Ve=a.jsx(b,{children:a.jsx(j,{children:"Headers"})}),e[214]=Ve):Ve=e[214];let ve;e[215]!==g?(ve=a.jsx("dl",{className:"grid gap-y-1 text-xs sm:grid-cols-[12rem_1fr]",children:Object.entries(g).map(ps)}),e[215]=g,e[216]=ve):ve=e[216];let ye;e[217]!==n.payload?(ye=n.payload!=null&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:n.payload})}),e[217]=n.payload,e[218]=ye):ye=e[218];let ke;e[219]!==ve||e[220]!==ye?(ke=a.jsxs(_,{children:[Ve,a.jsxs(v,{children:[ve,ye]})]}),e[219]=ve,e[220]=ye,e[221]=ke):ke=e[221];let Ne;e[222]!==je||e[223]!==ke?(Ne=a.jsx(Je,{value:"request",children:a.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[je,ke]})}),e[222]=je,e[223]=ke,e[224]=Ne):Ne=e[224];let we;e[225]!==ue||e[226]!==fe||e[227]!==pe||e[228]!==he||e[229]!==Ne?(we=a.jsxs(os,{defaultValue:"queries",children:[ue,fe,pe,he,Ne]}),e[225]=ue,e[226]=fe,e[227]=pe,e[228]=he,e[229]=Ne,e[230]=we):we=e[230];let Be;return e[231]!==O||e[232]!==V||e[233]!==ee||e[234]!==te||e[235]!==se||e[236]!==ae||e[237]!==ne||e[238]!==re||e[239]!==ie||e[240]!==T||e[241]!==we||e[242]!==s.name?(Be=a.jsxs($t,{title:jt,crumbs:T,children:[O,V,ee,te,se,ae,ne,re,ie,we]}),e[231]=O,e[232]=V,e[233]=ee,e[234]=te,e[235]=se,e[236]=ae,e[237]=ne,e[238]=re,e[239]=ie,e[240]=T,e[241]=we,e[242]=s.name,e[243]=Be):Be=e[243],Be}function ps(t){const[e,i]=t;return a.jsxs("div",{className:"contents",children:[a.jsx("dt",{className:"text-muted-foreground font-mono",children:e}),a.jsx("dd",{className:"font-mono break-all",children:i})]},e)}function xs(t){const[e,i]=t;return a.jsxs("div",{className:"contents",children:[a.jsx("dt",{className:"text-muted-foreground",children:e}),a.jsxs("dd",{className:"font-mono break-all",children:[String(i),(e==="trace_id"||e==="execution_id")&&a.jsx(ds,{value:String(i)})]})]},e)}function hs(t){const[,e]=t;return e!=null&&e!==""}function gs(t){return a.jsx("span",{className:"font-mono text-xs",children:t.job_id})}function _s(t){return t.queue}function bs(t){return a.jsx("span",{className:"font-mono text-xs",children:t.name})}function js(t){return t.id}function vs(t){return a.jsx("span",{className:"text-muted-foreground text-xs",children:t.stage??""})}function ys(t){return t.tags.join(" ")}function ks(t){return a.jsx("span",{className:"font-mono text-xs whitespace-pre-wrap",children:t.message})}function Ns(t){return a.jsx(zt,{level:t.level})}function ws(t){return t.id}function Ts(t){return h(t.duration,2)}function qs(t){return a.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source??""})}function Cs(t){return t.row_count??"–"}function Ss(t){return t.offset.toFixed(1)}function $s(t){return t.id}function Is(t){return _t(t.bytes)}function Es(t){return a.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.content_type??"–"})}function Ps(t){return a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx("span",{className:"truncate font-mono text-xs",children:t.name}),t.truncated&&a.jsx(it,{variant:"secondary",children:"truncated"})]})}function zs(t){return t.id}function As(t){return h(t.duration,2)}function Rs(t){return a.jsx("span",{className:"flex flex-wrap gap-1",children:Object.entries(t.attributes).map(Ls)})}function Ls(t){const[e,i]=t;return a.jsxs("span",{className:"bg-muted rounded-sm px-1.5 font-mono text-[10px]",children:[e,"=",String(i)]},e)}function Ms(t){return a.jsx(Ge,{outcome:t.status})}function Ds(t){return a.jsx("span",{className:"font-mono text-xs",children:t.name})}function Fs(t){return t.offset.toFixed(1)}function Os(t){return t.id}function Vs(t){return t.duration}function Bs(t){return a.jsx(qe,{href:wt(t.id),children:a.jsx(it,{variant:"destructive",className:"font-mono",children:t.key})},t.id)}export{ja as default};
@@ -1,2 +1,2 @@
1
- import{c as L,r as z,j as s,aW as B,F as $,u as V,H as J,a2 as H,aX as M,e as I,aY as W}from"./inertia-CUTKXjxg.js";import{G as q}from"./google-sign-in-button-CAvsXYb4.js";import{H as E,S as U}from"./layout-5ZhRtywp.js";import{I as g}from"./input-error-C8ycyeD0.js";import{B as S}from"./app-wordmark-DDNuuq5_.js";import{v as K,D as Y,a as Z,s as X,w as Q,c as ee,b as se}from"./live-dot-Bb1UYT9F.js";import{L as N,I as D}from"./label-B32Ks8n7.js";import{C as R}from"./copy-block-D1myf7is.js";import{A as te}from"./app-layout-DUk54qUM.js";import{K as re}from"./transition-DpTb9Yiv.js";import"./separator-UUo0bkyc.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./use-clipboard-D5i6e5kf.js";import"./checkbox-C2AqEZXX.js";function ae(t){const e=L.c(22),{blockingAccounts:r,provider:a,recentlyAuthenticated:o,email:n}=t,w=z.useRef(null);let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(E,{title:"Delete user",description:"Delete your login and personal settings. Shared account data stays with its remaining owners."}),e[0]=j):j=e[0];let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"relative space-y-0.5 text-red-600 dark:text-red-100",children:[s.jsx("p",{className:"font-medium",children:"Warning"}),s.jsx("p",{className:"text-sm",children:"Please proceed with caution, this cannot be undone."})]}),e[1]=f):f=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(K,{asChild:!0,children:s.jsx(S,{variant:"destructive",children:"Delete user"})}),e[2]=l):l=e[2];let y,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(Y,{children:"Are you sure you want to delete your user?"}),c=s.jsx(Z,{children:"This deletes your login, sessions, and personal settings. It does not delete shared accounts or their telemetry. Transfer or delete every account you solely own first."}),e[3]=y,e[4]=c):(y=e[3],c=e[4]);let d;e[5]!==r?(d=r.length>0&&s.jsxs("div",{className:"border-destructive/30 bg-destructive/5 rounded-md border p-3 text-sm",children:["Transfer or delete these accounts first:"," ",r.map(oe).join(", "),"."]}),e[5]=r,e[6]=d):d=e[6];let i;e[7]!==a||e[8]!==o?(i=a&&!o&&s.jsx(q,{label:"Confirm with Google",reauthenticateFor:"user",separated:!1}),e[7]=a,e[8]=o,e[9]=i):i=e[9];let m,u,_;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=B(),_={preserveScroll:!0},m=()=>w.current?.focus(),e[10]=m,e[11]=u,e[12]=_):(m=e[10],u=e[11],_=e[12]);let p;e[13]!==r.length||e[14]!==n||e[15]!==a||e[16]!==o?(p=s.jsx($,{method:"delete",action:u,options:_,onError:m,resetOnSuccess:!0,className:"space-y-6",children:v=>{const{resetAndClearErrors:b,processing:k,errors:x}=v;return s.jsxs(s.Fragment,{children:[a?s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"user-deletion-confirmation",children:"Enter your email to confirm"}),s.jsx(D,{id:"user-deletion-confirmation",name:"confirmation",placeholder:n,autoComplete:"off"}),s.jsx(g,{messages:x.password_challenge})]}):s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"password_challenge",className:"sr-only",children:"Password"}),s.jsx(D,{id:"password_challenge",type:"password",name:"password_challenge",ref:w,placeholder:"Password",autoComplete:"current-password"}),s.jsx(g,{messages:x.password_challenge})]}),s.jsx(g,{messages:x.account_ownership}),s.jsxs(X,{children:[s.jsx(Q,{asChild:!0,children:s.jsx(S,{variant:"secondary",onClick:()=>b(),children:"Cancel"})}),s.jsx(S,{variant:"destructive",disabled:k||r.length>0||!!a&&!o,asChild:!0,children:s.jsx("button",{type:"submit",children:"Delete user"})})]})]})}}),e[13]=r.length,e[14]=n,e[15]=a,e[16]=o,e[17]=p):p=e[17];let h;return e[18]!==p||e[19]!==d||e[20]!==i?(h=s.jsxs("div",{className:"space-y-6",children:[j,s.jsxs("div",{className:"space-y-4 rounded-lg border border-red-100 bg-red-50 p-4 dark:border-red-200/10 dark:bg-red-700/10",children:[f,s.jsxs(ee,{children:[l,s.jsxs(se,{children:[y,c,d,i,p]})]})]})]}),e[18]=p,e[19]=d,e[20]=i,e[21]=h):h=e[21],h}function oe(t){return t.name}const ne="rwp_your_token_here";function ie(t,e){const r=`Bearer ${e??ne}`;return[{id:"claude-code",label:"Claude Code",hint:"Run this in the project you want the assistant to work in.",code:`claude mcp add railwatch --transport http ${t} --header "Authorization: ${r}"`},{id:"claude-desktop",label:"Claude Desktop",hint:"claude_desktop_config.json — Claude Desktop speaks stdio, so mcp-remote bridges it to HTTP.",code:JSON.stringify({mcpServers:{railwatch:{command:"npx",args:["-y","mcp-remote",t,"--header",`Authorization: ${r}`]}}},null,2)},{id:"cursor",label:"Cursor",hint:".cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project.",code:JSON.stringify({mcpServers:{railwatch:{url:t,headers:{Authorization:r}}}},null,2)},{id:"vscode",label:"VS Code",hint:".vscode/mcp.json in the workspace.",code:JSON.stringify({servers:{railwatch:{type:"http",url:t,headers:{Authorization:r}}}},null,2)},{id:"zed",label:"Zed",hint:"settings.json — also via the mcp-remote bridge.",code:JSON.stringify({context_servers:{railwatch:{source:"custom",command:"npx",args:["-y","mcp-remote",t,"--header",`Authorization: ${r}`]}}},null,2)},{id:"curl",label:"Test it with curl",hint:"Lists every tool the server exposes. If this returns JSON, the token works.",code:[`curl -sS ${t} \\`,` -H "Authorization: ${r}" \\`,' -H "Content-Type: application/json" \\',` -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'`].join(`
1
+ import{c as L,r as z,j as s,aW as B,F as $,u as V,H as J,a2 as H,aX as M,e as I,aY as W}from"./inertia-DLew8ZNx.js";import{G as q}from"./google-sign-in-button-BQiIKFdd.js";import{H as E,S as U}from"./layout-0ZAnD3zl.js";import{I as g}from"./input-error-cvM6_Jht.js";import{B as S}from"./app-wordmark-o9CODKP0.js";import{v as K,D as Y,a as Z,s as X,w as Q,c as ee,b as se}from"./live-dot-D1n_BreY.js";import{L as N,I as D}from"./label-GWl7I6sf.js";import{C as R}from"./copy-block-BkSU5832.js";import{A as te}from"./app-layout-DDyQa72H.js";import{K as re}from"./transition-DMIrZVth.js";import"./separator-BXzEdZ_8.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./use-clipboard-ByoUGQqA.js";import"./checkbox-CmhMHWZO.js";function ae(t){const e=L.c(22),{blockingAccounts:r,provider:a,recentlyAuthenticated:o,email:n}=t,w=z.useRef(null);let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(E,{title:"Delete user",description:"Delete your login and personal settings. Shared account data stays with its remaining owners."}),e[0]=j):j=e[0];let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"relative space-y-0.5 text-red-600 dark:text-red-100",children:[s.jsx("p",{className:"font-medium",children:"Warning"}),s.jsx("p",{className:"text-sm",children:"Please proceed with caution, this cannot be undone."})]}),e[1]=f):f=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(K,{asChild:!0,children:s.jsx(S,{variant:"destructive",children:"Delete user"})}),e[2]=l):l=e[2];let y,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(Y,{children:"Are you sure you want to delete your user?"}),c=s.jsx(Z,{children:"This deletes your login, sessions, and personal settings. It does not delete shared accounts or their telemetry. Transfer or delete every account you solely own first."}),e[3]=y,e[4]=c):(y=e[3],c=e[4]);let d;e[5]!==r?(d=r.length>0&&s.jsxs("div",{className:"border-destructive/30 bg-destructive/5 rounded-md border p-3 text-sm",children:["Transfer or delete these accounts first:"," ",r.map(oe).join(", "),"."]}),e[5]=r,e[6]=d):d=e[6];let i;e[7]!==a||e[8]!==o?(i=a&&!o&&s.jsx(q,{label:"Confirm with Google",reauthenticateFor:"user",separated:!1}),e[7]=a,e[8]=o,e[9]=i):i=e[9];let m,u,_;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=B(),_={preserveScroll:!0},m=()=>w.current?.focus(),e[10]=m,e[11]=u,e[12]=_):(m=e[10],u=e[11],_=e[12]);let p;e[13]!==r.length||e[14]!==n||e[15]!==a||e[16]!==o?(p=s.jsx($,{method:"delete",action:u,options:_,onError:m,resetOnSuccess:!0,className:"space-y-6",children:v=>{const{resetAndClearErrors:b,processing:k,errors:x}=v;return s.jsxs(s.Fragment,{children:[a?s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"user-deletion-confirmation",children:"Enter your email to confirm"}),s.jsx(D,{id:"user-deletion-confirmation",name:"confirmation",placeholder:n,autoComplete:"off"}),s.jsx(g,{messages:x.password_challenge})]}):s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"password_challenge",className:"sr-only",children:"Password"}),s.jsx(D,{id:"password_challenge",type:"password",name:"password_challenge",ref:w,placeholder:"Password",autoComplete:"current-password"}),s.jsx(g,{messages:x.password_challenge})]}),s.jsx(g,{messages:x.account_ownership}),s.jsxs(X,{children:[s.jsx(Q,{asChild:!0,children:s.jsx(S,{variant:"secondary",onClick:()=>b(),children:"Cancel"})}),s.jsx(S,{variant:"destructive",disabled:k||r.length>0||!!a&&!o,asChild:!0,children:s.jsx("button",{type:"submit",children:"Delete user"})})]})]})}}),e[13]=r.length,e[14]=n,e[15]=a,e[16]=o,e[17]=p):p=e[17];let h;return e[18]!==p||e[19]!==d||e[20]!==i?(h=s.jsxs("div",{className:"space-y-6",children:[j,s.jsxs("div",{className:"space-y-4 rounded-lg border border-red-100 bg-red-50 p-4 dark:border-red-200/10 dark:bg-red-700/10",children:[f,s.jsxs(ee,{children:[l,s.jsxs(se,{children:[y,c,d,i,p]})]})]})]}),e[18]=p,e[19]=d,e[20]=i,e[21]=h):h=e[21],h}function oe(t){return t.name}const ne="rwp_your_token_here";function ie(t,e){const r=`Bearer ${e??ne}`;return[{id:"claude-code",label:"Claude Code",hint:"Run this in the project you want the assistant to work in.",code:`claude mcp add railwatch --transport http ${t} --header "Authorization: ${r}"`},{id:"claude-desktop",label:"Claude Desktop",hint:"claude_desktop_config.json — Claude Desktop speaks stdio, so mcp-remote bridges it to HTTP.",code:JSON.stringify({mcpServers:{railwatch:{command:"npx",args:["-y","mcp-remote",t,"--header",`Authorization: ${r}`]}}},null,2)},{id:"cursor",label:"Cursor",hint:".cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project.",code:JSON.stringify({mcpServers:{railwatch:{url:t,headers:{Authorization:r}}}},null,2)},{id:"vscode",label:"VS Code",hint:".vscode/mcp.json in the workspace.",code:JSON.stringify({servers:{railwatch:{type:"http",url:t,headers:{Authorization:r}}}},null,2)},{id:"zed",label:"Zed",hint:"settings.json — also via the mcp-remote bridge.",code:JSON.stringify({context_servers:{railwatch:{source:"custom",command:"npx",args:["-y","mcp-remote",t,"--header",`Authorization: ${r}`]}}},null,2)},{id:"curl",label:"Test it with curl",hint:"Lists every tool the server exposes. If this returns JSON, the token works.",code:[`curl -sS ${t} \\`,` -H "Authorization: ${r}" \\`,' -H "Content-Type: application/json" \\',` -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'`].join(`
2
2
  `)}]}function le(t){const e=L.c(5),{url:r,token:a}=t;let o;e[0]!==a||e[1]!==r?(o=ie(r,a).map(ce),e[0]=a,e[1]=r,e[2]=o):o=e[2];let n;return e[3]!==o?(n=s.jsx("div",{className:"space-y-4",children:o}),e[3]=o,e[4]=n):n=e[4],n}function ce(t){return s.jsxs("div",{className:"space-y-1",children:[s.jsx("p",{className:"text-sm font-medium",children:t.label}),s.jsx("p",{className:"text-muted-foreground text-xs",children:t.hint}),s.jsx(R,{code:t.code,className:"mt-1.5"})]},t.id)}const T=[{title:"Profile settings",href:H()}],de=[{value:"github",label:"GitHub"},{value:"gitlab",label:"GitLab"},{value:"vscode",label:"VS Code"},{value:"cursor",label:"Cursor"},{value:"zed",label:"Zed"},{value:"rubymine",label:"RubyMine"},{value:"textmate",label:"TextMate"}],me=["vscode","cursor","zed","rubymine","textmate"];function Fe(t){const e=L.c(43),{auth:r}=V().props,[a,o]=z.useState(r.user.editor);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(J,{title:T[T.length-1].title}),e[0]=n):n=e[0];let w;e[1]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(E,{title:"Profile information",description:"Update your name and where source links open"}),e[1]=w):w=e[1];let j,f;e[2]===Symbol.for("react.memo_cache_sentinel")?(j=H(),f={preserveScroll:!0},e[2]=j,e[3]=f):(j=e[2],f=e[3]);let l;e[4]!==r.user.editor_root||e[5]!==r.user.name||e[6]!==a||e[7]!==t.weekly_digest?(l=s.jsxs("div",{className:"space-y-6",children:[w,s.jsx($,{method:"patch",action:j,options:f,className:"space-y-6",children:F=>{const{errors:P,processing:C,recentlySuccessful:G}=F;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"name",children:"Name"}),s.jsx(D,{id:"name",name:"name",className:"mt-1 block w-full",defaultValue:r.user.name,required:!0,autoComplete:"name",placeholder:"Full name"}),s.jsx(g,{className:"mt-2",messages:P.name})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"editor",children:"Editor"}),s.jsx("select",{id:"editor",name:"editor",value:a,onChange:O=>o(O.target.value),className:"border-input bg-background h-9 rounded-md border px-3 text-sm",children:de.map(xe)}),s.jsx(g,{className:"mt-2",messages:P.editor}),s.jsx("span",{className:"text-muted-foreground text-xs",children:"Where a file:line in a stack trace opens — the application's repository, or this machine's editor."})]}),me.includes(a)&&s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"editor_root",children:"Local checkout path"}),s.jsx(D,{id:"editor_root",name:"editor_root",className:"mt-1 block w-full",defaultValue:r.user.editor_root??"",placeholder:"/Users/you/code/widgets"}),s.jsx(g,{className:"mt-2",messages:P.editor_root})]}),s.jsxs("label",{className:"flex items-start gap-3 text-sm",children:[s.jsx("input",{type:"hidden",name:"weekly_digest",value:"0"}),s.jsx("input",{type:"checkbox",name:"weekly_digest",value:"1",defaultChecked:t.weekly_digest,className:"mt-0.5"}),s.jsxs("span",{children:[s.jsx("span",{className:"font-medium",children:"Weekly digest"}),s.jsx("span",{className:"text-muted-foreground block text-xs",children:"A Monday email with requests, p95, failures, new and resolved issues, and deploys for each account you belong to."})]})]}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(S,{disabled:C,children:"Save"}),s.jsx(re,{show:G,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:s.jsx("p",{className:"text-sm text-neutral-600",children:"Saved"})})]})]})}})]}),e[4]=r.user.editor_root,e[5]=r.user.name,e[6]=a,e[7]=t.weekly_digest,e[8]=l):l=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(E,{title:"API & MCP tokens",description:"Create independently revocable tokens with only the surfaces, actions, and applications each client needs."}),e[9]=y):y=e[9];let c;e[10]!==t.mcp_token?(c=t.mcp_token&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm",children:"Your new API & MCP token (shown once, copy it now):"}),s.jsx(R,{code:t.mcp_token})]}),e[10]=t.mcp_token,e[11]=c):c=e[11];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=M(),e[12]=d):d=e[12];let i;e[13]!==t.token_scopes||e[14]!==t.token_targets?(i=s.jsx($,{method:"post",action:d,className:"grid gap-4 rounded-md border p-4",children:F=>{const{processing:P,errors:C}=F;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"token-name",children:"Token name"}),s.jsx(D,{id:"token-name",name:"name",defaultValue:"API & MCP token",maxLength:100,required:!0}),s.jsx(g,{messages:C.name})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"token-restriction",children:"Data access"}),s.jsx("select",{id:"token-restriction",name:"restriction",className:"border-input bg-background h-9 rounded-md border px-3 text-sm",children:t.token_targets.map(pe)}),s.jsx(g,{messages:C.restriction})]}),s.jsxs("fieldset",{className:"grid gap-2",children:[s.jsx("legend",{className:"text-sm font-medium",children:"Scopes"}),s.jsx("input",{type:"hidden",name:"scopes_present",value:"1"}),s.jsx("div",{className:"grid grid-cols-2 gap-2",children:t.token_scopes.map(he)}),s.jsx(g,{messages:C.scopes})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"token-expiry",children:"Expiry"}),s.jsxs("select",{id:"token-expiry",name:"expires_in_days",className:"border-input bg-background h-9 rounded-md border px-3 text-sm",defaultValue:"0",children:[s.jsx("option",{value:"0",children:"Never"}),s.jsx("option",{value:"7",children:"7 days"}),s.jsx("option",{value:"30",children:"30 days"}),s.jsx("option",{value:"90",children:"90 days"}),s.jsx("option",{value:"365",children:"1 year"})]}),s.jsx(g,{messages:C.expires_in_days})]}),s.jsx(S,{className:"w-fit",disabled:P,children:"Generate token"})]})}}),e[13]=t.token_scopes,e[14]=t.token_targets,e[15]=i):i=e[15];let m;e[16]!==t.api_tokens?(m=t.api_tokens.length===0?s.jsx("p",{className:"text-muted-foreground text-sm",children:"No API tokens yet."}):t.api_tokens.map(ue),e[16]=t.api_tokens,e[17]=m):m=e[17];let u;e[18]!==m?(u=s.jsx("div",{className:"space-y-3",children:m}),e[18]=m,e[19]=u):u=e[19];let _;e[20]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx("p",{className:"text-sm font-medium",children:"Connect an assistant"}),e[20]=_):_=e[20];const p=t.mcp_token?"These blocks already contain the token above. Paste one into your client and restart it.":"Generate a token to get these blocks filled in — until then they carry a placeholder. The same output comes from bin/rails railwatch:mcp in your app.";let h;e[21]!==p?(h=s.jsxs("div",{children:[_,s.jsx("p",{className:"text-muted-foreground text-xs",children:p})]}),e[21]=p,e[22]=h):h=e[22];let v;e[23]!==t.mcp_token||e[24]!==t.mcp_url?(v=s.jsx(le,{url:t.mcp_url,token:t.mcp_token}),e[23]=t.mcp_token,e[24]=t.mcp_url,e[25]=v):v=e[25];let b;e[26]!==h||e[27]!==v?(b=s.jsxs("div",{className:"space-y-3 border-t pt-6",children:[h,v]}),e[26]=h,e[27]=v,e[28]=b):b=e[28];let k;e[29]!==u||e[30]!==b||e[31]!==c||e[32]!==i?(k=s.jsxs("div",{className:"space-y-6",children:[y,c,i,u,b]}),e[29]=u,e[30]=b,e[31]=c,e[32]=i,e[33]=k):k=e[33];let x;e[34]!==r.session.recently_authenticated||e[35]!==r.user.email||e[36]!==r.user.provider||e[37]!==t.deletion.blocking_accounts?(x=s.jsx(ae,{blockingAccounts:t.deletion.blocking_accounts,provider:r.user.provider,recentlyAuthenticated:r.session.recently_authenticated,email:r.user.email}),e[34]=r.session.recently_authenticated,e[35]=r.user.email,e[36]=r.user.provider,e[37]=t.deletion.blocking_accounts,e[38]=x):x=e[38];let A;return e[39]!==k||e[40]!==x||e[41]!==l?(A=s.jsxs(te,{breadcrumbs:T,children:[n,s.jsxs(U,{children:[l,k,x]})]}),e[39]=k,e[40]=x,e[41]=l,e[42]=A):A=e[42],A}function ue(t){return s.jsxs("div",{className:"flex items-start justify-between gap-4 rounded-md border p-3",children:[s.jsxs("div",{className:"min-w-0 space-y-1",children:[s.jsx("p",{className:"font-medium",children:t.name}),s.jsxs("p",{className:"text-muted-foreground text-xs",children:[t.scopes.join(", ")," · ",t.restriction]}),s.jsxs("p",{className:"text-muted-foreground text-xs",children:[t.revoked_at?`Revoked ${new Date(t.revoked_at).toLocaleString()}`:t.expires_at?`Expires ${new Date(t.expires_at).toLocaleString()}`:"Never expires",t.last_used_at?` · Last used ${new Date(t.last_used_at).toLocaleString()}`:" · Never used"]})]}),!t.revoked_at&&s.jsxs("div",{className:"flex shrink-0 gap-2",children:[s.jsx(S,{type:"button",variant:"outline",size:"sm",onClick:()=>I.post(M(),{name:t.name,scopes_present:"1",scopes:t.scopes,replace_token_id:t.id}),children:"Regenerate"}),s.jsx(S,{type:"button",variant:"outline",size:"sm",onClick:()=>I.delete(W(),{data:{token_id:t.id}}),children:"Revoke"})]})]},t.id)}function he(t){return s.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[s.jsx("input",{type:"checkbox",name:"scopes[]",value:t,defaultChecked:!0}),t]},t)}function pe(t){return s.jsx("option",{value:t.value,children:t.label},t.value)}function xe(t){return s.jsx("option",{value:t.value,children:t.label},t.value)}export{Fe as default};
@@ -1 +1 @@
1
- import{c as d,j as s,H as m,F as p,aH as c}from"./inertia-CUTKXjxg.js";import{S as u,H as w}from"./layout-5ZhRtywp.js";import{I as t}from"./input-error-C8ycyeD0.js";import{B as h}from"./app-wordmark-DDNuuq5_.js";import{L as l,I as n}from"./label-B32Ks8n7.js";import{A as f}from"./app-layout-DUk54qUM.js";import{K as x}from"./transition-DpTb9Yiv.js";import"./separator-UUo0bkyc.js";import"./index-n16aviHx.js";import"./live-dot-Bb1UYT9F.js";import"./index-BpnfuXi-.js";import"./checkbox-C2AqEZXX.js";const i=[{title:"Password settings",href:c()}];function L(){const e=d.c(3);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(m,{title:i[i.length-1].title}),e[0]=r):r=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(w,{title:"Update password",description:"Ensure your account is using a long, random password to stay secure"}),e[1]=a):a=e[1];let o;return e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(f,{breadcrumbs:i,children:[r,s.jsx(u,{children:s.jsxs("div",{className:"space-y-6",children:[a,s.jsx(p,{method:"put",action:c(),options:{preserveScroll:!0},resetOnError:!0,resetOnSuccess:!0,className:"space-y-6",children:j})]})})]}),e[2]=o):o=e[2],o}function j(e){const{errors:r,processing:a,recentlySuccessful:o}=e;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(l,{htmlFor:"password_challenge",children:"Current password"}),s.jsx(n,{id:"password_challenge",name:"password_challenge",type:"password",className:"mt-1 block w-full",autoComplete:"current-password",placeholder:"Current password"}),s.jsx(t,{messages:r.password_challenge})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(l,{htmlFor:"password",children:"New password"}),s.jsx(n,{id:"password",name:"password",type:"password",className:"mt-1 block w-full",autoComplete:"new-password",placeholder:"New password"}),s.jsx(t,{messages:r.password})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(l,{htmlFor:"password_confirmation",children:"Confirm password"}),s.jsx(n,{id:"password_confirmation",name:"password_confirmation",type:"password",className:"mt-1 block w-full",autoComplete:"new-password",placeholder:"Confirm password"}),s.jsx(t,{messages:r.password_confirmation})]}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(h,{disabled:a,children:"Save password"}),s.jsx(x,{show:o,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:s.jsx("p",{className:"text-sm text-neutral-600",children:"Saved"})})]})]})}export{L as default};
1
+ import{c as d,j as s,H as m,F as p,aH as c}from"./inertia-DLew8ZNx.js";import{S as u,H as w}from"./layout-0ZAnD3zl.js";import{I as t}from"./input-error-cvM6_Jht.js";import{B as h}from"./app-wordmark-o9CODKP0.js";import{L as l,I as n}from"./label-GWl7I6sf.js";import{A as f}from"./app-layout-DDyQa72H.js";import{K as x}from"./transition-DMIrZVth.js";import"./separator-BXzEdZ_8.js";import"./index-so4lRrRq.js";import"./live-dot-D1n_BreY.js";import"./index-umIAl-pL.js";import"./checkbox-CmhMHWZO.js";const i=[{title:"Password settings",href:c()}];function L(){const e=d.c(3);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(m,{title:i[i.length-1].title}),e[0]=r):r=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(w,{title:"Update password",description:"Ensure your account is using a long, random password to stay secure"}),e[1]=a):a=e[1];let o;return e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(f,{breadcrumbs:i,children:[r,s.jsx(u,{children:s.jsxs("div",{className:"space-y-6",children:[a,s.jsx(p,{method:"put",action:c(),options:{preserveScroll:!0},resetOnError:!0,resetOnSuccess:!0,className:"space-y-6",children:j})]})})]}),e[2]=o):o=e[2],o}function j(e){const{errors:r,processing:a,recentlySuccessful:o}=e;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(l,{htmlFor:"password_challenge",children:"Current password"}),s.jsx(n,{id:"password_challenge",name:"password_challenge",type:"password",className:"mt-1 block w-full",autoComplete:"current-password",placeholder:"Current password"}),s.jsx(t,{messages:r.password_challenge})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(l,{htmlFor:"password",children:"New password"}),s.jsx(n,{id:"password",name:"password",type:"password",className:"mt-1 block w-full",autoComplete:"new-password",placeholder:"New password"}),s.jsx(t,{messages:r.password})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(l,{htmlFor:"password_confirmation",children:"Confirm password"}),s.jsx(n,{id:"password_confirmation",name:"password_confirmation",type:"password",className:"mt-1 block w-full",autoComplete:"new-password",placeholder:"Confirm password"}),s.jsx(t,{messages:r.password_confirmation})]}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(h,{disabled:a,children:"Save password"}),s.jsx(x,{show:o,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:s.jsx("p",{className:"text-sm text-neutral-600",children:"Saved"})})]})]})}export{L as default};
@@ -1,4 +1,4 @@
1
- import{r as ae,j as r,c as oe,C as fe}from"./inertia-CUTKXjxg.js";import{D as G}from"./data-table-CwtPkw_i.js";import{P as he,E as _e}from"./env-layout-Dkp_4NvM.js";import{S as L,a as pe}from"./stat-IghK3WjD.js";import{C as M,a as V,b as z,c as Q}from"./card-DiW-JhK3.js";import{c as xe}from"./index-BpnfuXi-.js";import{P as le}from"./index-n16aviHx.js";import{c as d,b as ie}from"./format-B9SDkrWj.js";import"./chart-hover-DMWx5-Rs.js";import"./empty-state-CshhuRUU.js";import"./badge-s7YDycYg.js";import"./app-wordmark-DDNuuq5_.js";import"./app-layout-DUk54qUM.js";import"./live-dot-Bb1UYT9F.js";import"./checkbox-C2AqEZXX.js";import"./label-B32Ks8n7.js";import"./use-live-V-slSdFJ.js";import"./segmented-Bj70Htrs.js";import"./arrow-up-DYTCBENO.js";var ye=Object.defineProperty,m=(t,e)=>ye(t,"name",{value:e,configurable:!0}),ce="Progress",se=100,[ve,ot]=xe(ce),[be,ge]=ve(ce),je=ae.forwardRef(m(function(e,a){const{__scopeProgress:o,value:i=null,max:s,getValueLabel:u=de,...l}=e;(s||s===0)&&!te(s)&&console.error(ue(`${s}`,"Progress"));const n=te(s)?s:se;i!==null&&!re(i,n)&&console.error(me(`${i}`,"Progress"));const c=re(i,n)?i:null,f=D(c)?u(c,n):void 0;return r.jsx(be,{scope:o,value:c,max:n,children:r.jsx(le.div,{"aria-valuemax":n,"aria-valuemin":0,"aria-valuenow":D(c)?c:void 0,"aria-valuetext":f,role:"progressbar","data-state":ne(c,n),"data-value":c??void 0,"data-max":n,...l,ref:a})})},"Progress")),Pe="ProgressIndicator",we=ae.forwardRef(m(function(e,a){const{__scopeProgress:o,...i}=e,s=ge(Pe,o);return r.jsx(le.div,{"data-state":ne(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:a})},"ProgressIndicator"));function de(t,e){return`${Math.round(t/e*100)}%`}m(de,"defaultGetValueLabel");function ne(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}m(ne,"getProgressState");function D(t){return typeof t=="number"}m(D,"isNumber");function te(t){return D(t)&&!isNaN(t)&&t>0}m(te,"isValidMaxNumber");function re(t,e){return D(t)&&!isNaN(t)&&t<=e&&t>=0}m(re,"isValidValueNumber");function ue(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${se}\`.`}m(ue,"getInvalidMaxError");function me(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be:
1
+ import{r as ae,j as r,c as oe,C as fe}from"./inertia-DLew8ZNx.js";import{D as G}from"./data-table-BIlt7Rtm.js";import{P as he,E as _e}from"./env-layout-REF7OM4q.js";import{S as L,a as pe}from"./stat-DFEyFxkO.js";import{C as M,a as V,b as z,c as Q}from"./card-cAtqCxWl.js";import{c as xe}from"./index-umIAl-pL.js";import{P as le}from"./index-so4lRrRq.js";import{c as d,b as ie}from"./format-B9SDkrWj.js";import"./chart-hover-B1M9jc0y.js";import"./empty-state-C38il627.js";import"./badge-CAxXV8za.js";import"./app-wordmark-o9CODKP0.js";import"./app-layout-DDyQa72H.js";import"./live-dot-D1n_BreY.js";import"./checkbox-CmhMHWZO.js";import"./label-GWl7I6sf.js";import"./use-live-D7xKz2ma.js";import"./segmented-BgbT3wZa.js";import"./arrow-up-C6PxDiY3.js";var ye=Object.defineProperty,m=(t,e)=>ye(t,"name",{value:e,configurable:!0}),ce="Progress",se=100,[ve,ot]=xe(ce),[be,ge]=ve(ce),je=ae.forwardRef(m(function(e,a){const{__scopeProgress:o,value:i=null,max:s,getValueLabel:u=de,...l}=e;(s||s===0)&&!te(s)&&console.error(ue(`${s}`,"Progress"));const n=te(s)?s:se;i!==null&&!re(i,n)&&console.error(me(`${i}`,"Progress"));const c=re(i,n)?i:null,f=D(c)?u(c,n):void 0;return r.jsx(be,{scope:o,value:c,max:n,children:r.jsx(le.div,{"aria-valuemax":n,"aria-valuemin":0,"aria-valuenow":D(c)?c:void 0,"aria-valuetext":f,role:"progressbar","data-state":ne(c,n),"data-value":c??void 0,"data-max":n,...l,ref:a})})},"Progress")),Pe="ProgressIndicator",we=ae.forwardRef(m(function(e,a){const{__scopeProgress:o,...i}=e,s=ge(Pe,o);return r.jsx(le.div,{"data-state":ne(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:a})},"ProgressIndicator"));function de(t,e){return`${Math.round(t/e*100)}%`}m(de,"defaultGetValueLabel");function ne(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}m(ne,"getProgressState");function D(t){return typeof t=="number"}m(D,"isNumber");function te(t){return D(t)&&!isNaN(t)&&t>0}m(te,"isValidMaxNumber");function re(t,e){return D(t)&&!isNaN(t)&&t<=e&&t>=0}m(re,"isValidValueNumber");function ue(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${se}\`.`}m(ue,"getInvalidMaxError");function me(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be:
2
2
  - a positive number
3
3
  - less than the value passed to \`max\` (or ${se} if no \`max\` prop is set)
4
4
  - \`null\` or \`undefined\` if the progress is indeterminate.