nestlens 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/README.md +21 -4
  2. package/dist/api/api.controller.js +4 -1
  3. package/dist/api/dashboard-server.d.ts +10 -1
  4. package/dist/api/dashboard-server.js +20 -2
  5. package/dist/api/index.d.ts +1 -0
  6. package/dist/api/index.js +1 -0
  7. package/dist/api/spa-wildcard.js +2 -2
  8. package/dist/api/watcher-status.controller.d.ts +12 -0
  9. package/dist/api/watcher-status.controller.js +54 -0
  10. package/dist/core/nest-metadata-keys.d.ts +16 -0
  11. package/dist/core/nest-metadata-keys.js +19 -0
  12. package/dist/dashboard/public/assets/{BatchDetailView-BfNZfpm_.js → BatchDetailView-BBWr4W04.js} +1 -1
  13. package/dist/dashboard/public/assets/{BatchesPage-BZHbl0Nm.js → BatchesPage-C-KQEmp4.js} +1 -1
  14. package/dist/dashboard/public/assets/{CacheDetailView-BvkeOKgE.js → CacheDetailView-DdG4e_go.js} +1 -1
  15. package/dist/dashboard/public/assets/{CachePage-BkUGvWEZ.js → CachePage-C0cLGRx1.js} +1 -1
  16. package/dist/dashboard/public/assets/{CommandDetailView-CVbt9JyP.js → CommandDetailView-BDuo8F9v.js} +1 -1
  17. package/dist/dashboard/public/assets/{CommandsPage-C6XHUgrA.js → CommandsPage-B7SnQNr7.js} +1 -1
  18. package/dist/dashboard/public/assets/{CopyButton-XYdI3-sW.js → CopyButton-CLJDLZpF.js} +1 -1
  19. package/dist/dashboard/public/assets/{DashboardPage--iglBlz3.js → DashboardPage-BCDSCg7B.js} +1 -1
  20. package/dist/dashboard/public/assets/DataTable-DXp-7bHh.js +68 -0
  21. package/dist/dashboard/public/assets/{DetailRow-B0S3c_eE.js → DetailRow-8MgXx8DK.js} +1 -1
  22. package/dist/dashboard/public/assets/{DumpDetailView-Da-47VLM.js → DumpDetailView-KbumlBos.js} +1 -1
  23. package/dist/dashboard/public/assets/{DumpsPage-CsNW6qr3.js → DumpsPage-BtuFC_VC.js} +1 -1
  24. package/dist/dashboard/public/assets/{EntryDetailPage-D_OaKS4_.js → EntryDetailPage-HykUOnNH.js} +3 -3
  25. package/dist/dashboard/public/assets/{EntrySearchInput-9QSG15Ph.js → EntrySearchInput-CuQ4LdWy.js} +1 -1
  26. package/dist/dashboard/public/assets/{EventDetailView-BgmXCQ6t.js → EventDetailView-zhbmW-hn.js} +1 -1
  27. package/dist/dashboard/public/assets/{EventsPage-CqVw-u8H.js → EventsPage-CyH3D7jC.js} +1 -1
  28. package/dist/dashboard/public/assets/{ExceptionDetailView-CsLEb3Zl.js → ExceptionDetailView-o7M33_ij.js} +1 -1
  29. package/dist/dashboard/public/assets/{ExceptionsPage-T0wlOFSt.js → ExceptionsPage-CH3bwPKa.js} +2 -2
  30. package/dist/dashboard/public/assets/{GateDetailView-CaxZBQOa.js → GateDetailView-DllUcXFS.js} +1 -1
  31. package/dist/dashboard/public/assets/{GatesPage-Chd15G_e.js → GatesPage-DmaLHvcn.js} +1 -1
  32. package/dist/dashboard/public/assets/{GraphQLDetailView-Du2b9rrV.js → GraphQLDetailView-D2PGtFBT.js} +1 -1
  33. package/dist/dashboard/public/assets/{GraphQLPage-BHLuBaJe.js → GraphQLPage-C9vpbdH6.js} +2 -2
  34. package/dist/dashboard/public/assets/{HttpClientDetailView-BidIN8T6.js → HttpClientDetailView-MF_QMfeV.js} +1 -1
  35. package/dist/dashboard/public/assets/{HttpClientPage-CJK_r82g.js → HttpClientPage-DTI0P6Cr.js} +1 -1
  36. package/dist/dashboard/public/assets/{JobDetailView-B_hBS0H6.js → JobDetailView-OpMwViVl.js} +1 -1
  37. package/dist/dashboard/public/assets/{JobsPage-DYplYu68.js → JobsPage-CMmHdxT2.js} +1 -1
  38. package/dist/dashboard/public/assets/{LogDetailView-CnQ5dEkg.js → LogDetailView-DWFZhpkp.js} +1 -1
  39. package/dist/dashboard/public/assets/{LogsPage-D_j4e2ms.js → LogsPage-BR6UekMh.js} +1 -1
  40. package/dist/dashboard/public/assets/{MailDetailView-BR5Iv4i2.js → MailDetailView-C0MrGurU.js} +1 -1
  41. package/dist/dashboard/public/assets/{MailPage-C-Gz1aq0.js → MailPage-ChltUgHi.js} +1 -1
  42. package/dist/dashboard/public/assets/{ModelDetailView-BwHWLQyS.js → ModelDetailView-DWa2dZYT.js} +1 -1
  43. package/dist/dashboard/public/assets/{ModelsPage-C9UNHFoO.js → ModelsPage-DkjCQhyB.js} +1 -1
  44. package/dist/dashboard/public/assets/{NotificationDetailView-C1SGLmvR.js → NotificationDetailView-CKa4tpI6.js} +1 -1
  45. package/dist/dashboard/public/assets/{NotificationsPage-BBnuLMwb.js → NotificationsPage-CkHRVfMp.js} +1 -1
  46. package/dist/dashboard/public/assets/{PageHeader-Bi85xmzF.js → PageHeader-C3xvY2Ig.js} +1 -1
  47. package/dist/dashboard/public/assets/{QueriesPage-DBhfQ1NO.js → QueriesPage-BS1qr6PD.js} +1 -1
  48. package/dist/dashboard/public/assets/{QueryDetailView-xawOoEVO.js → QueryDetailView-oGlkJiXP.js} +1 -1
  49. package/dist/dashboard/public/assets/{RedisDetailView-BmE_L9g1.js → RedisDetailView-CqG6vCHq.js} +1 -1
  50. package/dist/dashboard/public/assets/{RedisPage-B4qORWJh.js → RedisPage-Dzf1nPXQ.js} +1 -1
  51. package/dist/dashboard/public/assets/{RequestDetailView-mFqH5MaS.js → RequestDetailView-DIxihCyo.js} +1 -1
  52. package/dist/dashboard/public/assets/{RequestsPage-Dcr0E2Lm.js → RequestsPage-D-Qkv8_m.js} +1 -1
  53. package/dist/dashboard/public/assets/{ScheduleDetailView-B41y0uev.js → ScheduleDetailView-CsVweTzt.js} +1 -1
  54. package/dist/dashboard/public/assets/{SchedulePage-BNAftAAQ.js → SchedulePage-DOYjiFkr.js} +1 -1
  55. package/dist/dashboard/public/assets/{UserCard-Dmx7j2Ir.js → UserCard-Czdl3BwE.js} +1 -1
  56. package/dist/dashboard/public/assets/{ViewDetailView-DzBFVrXH.js → ViewDetailView-BRtVIr5a.js} +1 -1
  57. package/dist/dashboard/public/assets/{ViewsPage-BXMF23JP.js → ViewsPage-CJYaQD3m.js} +1 -1
  58. package/dist/dashboard/public/assets/{calendar-Ppb5e_1B.js → calendar-bOGpQhaX.js} +1 -1
  59. package/dist/dashboard/public/assets/{circle-alert-DVIWjKkL.js → circle-alert-BAv3_SCD.js} +1 -1
  60. package/dist/dashboard/public/assets/{circle-check-big-DgeP_jno.js → circle-check-big-Bd3maByp.js} +1 -1
  61. package/dist/dashboard/public/assets/{circle-x-CSvWnKSC.js → circle-x-DuIWQOMZ.js} +1 -1
  62. package/dist/dashboard/public/assets/{eye-Barcwmeq.js → eye-B9n6gdoj.js} +1 -1
  63. package/dist/dashboard/public/assets/index-DvT5dtlP.css +1 -0
  64. package/dist/dashboard/public/assets/{index-Oh_UboeF.js → index-ZBhBsEE-.js} +55 -55
  65. package/dist/dashboard/public/assets/{search-C3TNb54L.js → search-DEpjS1hS.js} +1 -1
  66. package/dist/dashboard/public/assets/{send-CeQr2ikp.js → send-CUGirmLQ.js} +1 -1
  67. package/dist/dashboard/public/assets/{timer-DIZVbXrL.js → timer-chx4YN2F.js} +1 -1
  68. package/dist/dashboard/public/assets/{types-Be5ENIEY.js → types-DqgiyrZ3.js} +1 -1
  69. package/dist/dashboard/public/assets/{users-Bt96KxXr.js → users-BG41jdoO.js} +1 -1
  70. package/dist/dashboard/public/assets/{zap-FCdKJjm5.js → zap-CP3Qh2HO.js} +1 -1
  71. package/dist/dashboard/public/index.html +2 -2
  72. package/dist/nestlens.module.js +18 -4
  73. package/dist/startup-summary.d.ts +11 -0
  74. package/dist/startup-summary.js +23 -1
  75. package/dist/watchers/batch.watcher.d.ts +6 -1
  76. package/dist/watchers/batch.watcher.js +24 -0
  77. package/dist/watchers/cache.watcher.d.ts +4 -1
  78. package/dist/watchers/cache.watcher.js +19 -0
  79. package/dist/watchers/command.watcher.d.ts +4 -1
  80. package/dist/watchers/command.watcher.js +18 -0
  81. package/dist/watchers/dump.watcher.d.ts +6 -1
  82. package/dist/watchers/dump.watcher.js +24 -0
  83. package/dist/watchers/event.watcher.d.ts +4 -1
  84. package/dist/watchers/event.watcher.js +20 -2
  85. package/dist/watchers/exception.watcher.d.ts +26 -26
  86. package/dist/watchers/exception.watcher.js +71 -26
  87. package/dist/watchers/gate.watcher.d.ts +6 -1
  88. package/dist/watchers/gate.watcher.js +24 -0
  89. package/dist/watchers/graphql/adapters/apollo-plugin.provider.d.ts +20 -3
  90. package/dist/watchers/graphql/adapters/apollo-plugin.provider.js +36 -16
  91. package/dist/watchers/graphql/adapters/mercurius-registrar.service.d.ts +5 -1
  92. package/dist/watchers/graphql/adapters/mercurius-registrar.service.js +16 -4
  93. package/dist/watchers/graphql/graphql.watcher.d.ts +28 -7
  94. package/dist/watchers/graphql/graphql.watcher.js +73 -19
  95. package/dist/watchers/http-client.watcher.d.ts +4 -1
  96. package/dist/watchers/http-client.watcher.js +18 -0
  97. package/dist/watchers/job.watcher.d.ts +5 -1
  98. package/dist/watchers/job.watcher.js +27 -0
  99. package/dist/watchers/log.watcher.d.ts +5 -1
  100. package/dist/watchers/log.watcher.js +35 -0
  101. package/dist/watchers/mail.watcher.d.ts +4 -1
  102. package/dist/watchers/mail.watcher.js +20 -0
  103. package/dist/watchers/model.watcher.d.ts +6 -1
  104. package/dist/watchers/model.watcher.js +24 -0
  105. package/dist/watchers/notification.watcher.d.ts +4 -1
  106. package/dist/watchers/notification.watcher.js +19 -0
  107. package/dist/watchers/query/query.watcher.d.ts +44 -3
  108. package/dist/watchers/query/query.watcher.js +277 -37
  109. package/dist/watchers/redis.watcher.d.ts +4 -1
  110. package/dist/watchers/redis.watcher.js +19 -0
  111. package/dist/watchers/request.watcher.d.ts +3 -1
  112. package/dist/watchers/request.watcher.js +10 -0
  113. package/dist/watchers/schedule.watcher.d.ts +8 -2
  114. package/dist/watchers/schedule.watcher.js +31 -2
  115. package/dist/watchers/view.watcher.d.ts +4 -1
  116. package/dist/watchers/view.watcher.js +18 -0
  117. package/dist/watchers/watcher-status.d.ts +54 -0
  118. package/dist/watchers/watcher-status.js +43 -0
  119. package/dist/watchers/watcher-status.registry.d.ts +7 -0
  120. package/dist/watchers/watcher-status.registry.js +56 -0
  121. package/dist/watchers/watcher-status.service.d.ts +64 -0
  122. package/dist/watchers/watcher-status.service.js +112 -0
  123. package/dist/watchers/wrap-method.d.ts +2 -0
  124. package/dist/watchers/wrap-method.js +4 -0
  125. package/package.json +1 -1
  126. package/dist/dashboard/public/assets/DataTable-B_TIjhVT.js +0 -53
  127. package/dist/dashboard/public/assets/index-CMvt7uFU.css +0 -1
@@ -1 +1 @@
1
- import{t as m,a as M,c as b,n as _,b as E,m as Q,d as F,e as B}from"./date-Dwgqy666.js";import{j as T}from"./index-Oh_UboeF.js";function Y(r,e){var u,o,l,h;const t=M(),n=(e==null?void 0:e.weekStartsOn)??((o=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:o.weekStartsOn)??t.weekStartsOn??((h=(l=t.locale)==null?void 0:l.options)==null?void 0:h.weekStartsOn)??0,a=m(r,e==null?void 0:e.in),s=a.getDay(),i=(s<n?7:0)+s-n;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function D(r,e){return Y(r,{...e,weekStartsOn:1})}function H(r,e){const t=m(r,e==null?void 0:e.in),n=t.getFullYear(),a=b(t,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const s=D(a),i=b(t,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const u=D(i);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function S(r,e){const t=m(r,e==null?void 0:e.in);return t.setHours(0,0,0,0),t}function X(r,e,t){const[n,a]=_(t==null?void 0:t.in,r,e),s=S(n),i=S(a),u=+s-E(s),o=+i-E(i);return Math.round((u-o)/Q)}function L(r,e){const t=H(r,e),n=b(r,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),D(n)}function R(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function I(r){return!(!R(r)&&typeof r!="number"||isNaN(+m(r)))}function j(r,e){const t=m(r,e==null?void 0:e.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function $(r,e){const t=m(r,e==null?void 0:e.in);return X(t,j(t))+1}function V(r,e){const t=m(r,e==null?void 0:e.in),n=+D(t)-+L(t);return Math.round(n/F)+1}function C(r,e){var h,O,x,k;const t=m(r,e==null?void 0:e.in),n=t.getFullYear(),a=M(),s=(e==null?void 0:e.firstWeekContainsDate)??((O=(h=e==null?void 0:e.locale)==null?void 0:h.options)==null?void 0:O.firstWeekContainsDate)??a.firstWeekContainsDate??((k=(x=a.locale)==null?void 0:x.options)==null?void 0:k.firstWeekContainsDate)??1,i=b((e==null?void 0:e.in)||r,0);i.setFullYear(n+1,0,s),i.setHours(0,0,0,0);const u=Y(i,e),o=b((e==null?void 0:e.in)||r,0);o.setFullYear(n,0,s),o.setHours(0,0,0,0);const l=Y(o,e);return+t>=+u?n+1:+t>=+l?n:n-1}function J(r,e){var u,o,l,h;const t=M(),n=(e==null?void 0:e.firstWeekContainsDate)??((o=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:o.firstWeekContainsDate)??t.firstWeekContainsDate??((h=(l=t.locale)==null?void 0:l.options)==null?void 0:h.firstWeekContainsDate)??1,a=C(r,e),s=b((e==null?void 0:e.in)||r,0);return s.setFullYear(a,0,n),s.setHours(0,0,0,0),Y(s,e)}function K(r,e){const t=m(r,e==null?void 0:e.in),n=+Y(t,e)-+J(t,e);return Math.round(n/F)+1}function c(r,e){const t=r<0?"-":"",n=Math.abs(r).toString().padStart(e,"0");return t+n}const g={y(r,e){const t=r.getFullYear(),n=t>0?t:1-t;return c(e==="yy"?n%100:n,e.length)},M(r,e){const t=r.getMonth();return e==="M"?String(t+1):c(t+1,2)},d(r,e){return c(r.getDate(),e.length)},a(r,e){const t=r.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(r,e){return c(r.getHours()%12||12,e.length)},H(r,e){return c(r.getHours(),e.length)},m(r,e){return c(r.getMinutes(),e.length)},s(r,e){return c(r.getSeconds(),e.length)},S(r,e){const t=e.length,n=r.getMilliseconds(),a=Math.trunc(n*Math.pow(10,t-3));return c(a,e.length)}},y={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},W={G:function(r,e,t){const n=r.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(r,e,t){if(e==="yo"){const n=r.getFullYear(),a=n>0?n:1-n;return t.ordinalNumber(a,{unit:"year"})}return g.y(r,e)},Y:function(r,e,t,n){const a=C(r,n),s=a>0?a:1-a;if(e==="YY"){const i=s%100;return c(i,2)}return e==="Yo"?t.ordinalNumber(s,{unit:"year"}):c(s,e.length)},R:function(r,e){const t=H(r);return c(t,e.length)},u:function(r,e){const t=r.getFullYear();return c(t,e.length)},Q:function(r,e,t){const n=Math.ceil((r.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return c(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(r,e,t){const n=Math.ceil((r.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return c(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(r,e,t){const n=r.getMonth();switch(e){case"M":case"MM":return g.M(r,e);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(r,e,t){const n=r.getMonth();switch(e){case"L":return String(n+1);case"LL":return c(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(r,e,t,n){const a=K(r,n);return e==="wo"?t.ordinalNumber(a,{unit:"week"}):c(a,e.length)},I:function(r,e,t){const n=V(r);return e==="Io"?t.ordinalNumber(n,{unit:"week"}):c(n,e.length)},d:function(r,e,t){return e==="do"?t.ordinalNumber(r.getDate(),{unit:"date"}):g.d(r,e)},D:function(r,e,t){const n=$(r);return e==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):c(n,e.length)},E:function(r,e,t){const n=r.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(r,e,t,n){const a=r.getDay(),s=(a-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return c(s,2);case"eo":return t.ordinalNumber(s,{unit:"day"});case"eee":return t.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(a,{width:"short",context:"formatting"});case"eeee":default:return t.day(a,{width:"wide",context:"formatting"})}},c:function(r,e,t,n){const a=r.getDay(),s=(a-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return c(s,e.length);case"co":return t.ordinalNumber(s,{unit:"day"});case"ccc":return t.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(a,{width:"narrow",context:"standalone"});case"cccccc":return t.day(a,{width:"short",context:"standalone"});case"cccc":default:return t.day(a,{width:"wide",context:"standalone"})}},i:function(r,e,t){const n=r.getDay(),a=n===0?7:n;switch(e){case"i":return String(a);case"ii":return c(a,e.length);case"io":return t.ordinalNumber(a,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(r,e,t){const a=r.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(r,e,t){const n=r.getHours();let a;switch(n===12?a=y.noon:n===0?a=y.midnight:a=n/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(r,e,t){const n=r.getHours();let a;switch(n>=17?a=y.evening:n>=12?a=y.afternoon:n>=4?a=y.morning:a=y.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(r,e,t){if(e==="ho"){let n=r.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return g.h(r,e)},H:function(r,e,t){return e==="Ho"?t.ordinalNumber(r.getHours(),{unit:"hour"}):g.H(r,e)},K:function(r,e,t){const n=r.getHours()%12;return e==="Ko"?t.ordinalNumber(n,{unit:"hour"}):c(n,e.length)},k:function(r,e,t){let n=r.getHours();return n===0&&(n=24),e==="ko"?t.ordinalNumber(n,{unit:"hour"}):c(n,e.length)},m:function(r,e,t){return e==="mo"?t.ordinalNumber(r.getMinutes(),{unit:"minute"}):g.m(r,e)},s:function(r,e,t){return e==="so"?t.ordinalNumber(r.getSeconds(),{unit:"second"}):g.s(r,e)},S:function(r,e){return g.S(r,e)},X:function(r,e,t){const n=r.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return N(n);case"XXXX":case"XX":return w(n);case"XXXXX":case"XXX":default:return w(n,":")}},x:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"x":return N(n);case"xxxx":case"xx":return w(n);case"xxxxx":case"xxx":default:return w(n,":")}},O:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+q(n,":");case"OOOO":default:return"GMT"+w(n,":")}},z:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+q(n,":");case"zzzz":default:return"GMT"+w(n,":")}},t:function(r,e,t){const n=Math.trunc(+r/1e3);return c(n,e.length)},T:function(r,e,t){return c(+r,e.length)}};function q(r,e=""){const t=r>0?"-":"+",n=Math.abs(r),a=Math.trunc(n/60),s=n%60;return s===0?t+String(a):t+String(a)+e+c(s,2)}function N(r,e){return r%60===0?(r>0?"-":"+")+c(Math.abs(r)/60,2):w(r,e)}function w(r,e=""){const t=r>0?"-":"+",n=Math.abs(r),a=c(Math.trunc(n/60),2),s=c(n%60,2);return t+a+e+s}const v=(r,e)=>{switch(r){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},G=(r,e)=>{switch(r){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},U=(r,e)=>{const t=r.match(/(P+)(p+)?/)||[],n=t[1],a=t[2];if(!a)return v(r,e);let s;switch(n){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",v(n,e)).replace("{{time}}",G(a,e))},Z={p:G,P:U},A=/^D+$/,z=/^Y+$/,p=["D","DD","YY","YYYY"];function ee(r){return A.test(r)}function te(r){return z.test(r)}function re(r,e,t){const n=ne(r,e,t);if(console.warn(n),p.includes(r))throw new RangeError(n)}function ne(r,e,t){const n=r[0]==="Y"?"years":"days of the month";return`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${e}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,se=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ce=/^'([^]*?)'?$/,ie=/''/g,ue=/[a-zA-Z]/;function he(r,e,t){var h,O,x,k;const n=M(),a=n.locale??B,s=n.firstWeekContainsDate??((O=(h=n.locale)==null?void 0:h.options)==null?void 0:O.firstWeekContainsDate)??1,i=n.weekStartsOn??((k=(x=n.locale)==null?void 0:x.options)==null?void 0:k.weekStartsOn)??0,u=m(r,t==null?void 0:t.in);if(!I(u))throw new RangeError("Invalid time value");let o=e.match(se).map(f=>{const d=f[0];if(d==="p"||d==="P"){const P=Z[d];return P(f,a.formatLong)}return f}).join("").match(ae).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const d=f[0];if(d==="'")return{isToken:!1,value:oe(f)};if(W[d])return{isToken:!0,value:f};if(d.match(ue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:f}});a.localize.preprocessor&&(o=a.localize.preprocessor(u,o));const l={firstWeekContainsDate:s,weekStartsOn:i,locale:a};return o.map(f=>{if(!f.isToken)return f.value;const d=f.value;(te(d)||ee(d))&&re(d,e,String(r));const P=W[d[0]];return P(u,d,a.localize,l)}).join("")}function oe(r){const e=r.match(ce);return e?e[1].replace(ie,"'"):r}function me({label:r,value:e,className:t=""}){return T.jsxs("div",{className:`grid grid-cols-[180px_1fr] gap-4 py-3 border-b border-gray-100 dark:border-gray-700 last:border-0 ${t}`,children:[T.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:r}),T.jsx("dd",{className:"text-sm text-gray-900 dark:text-white break-all",children:e})]})}export{me as D,he as f};
1
+ import{t as m,a as M,c as b,n as _,b as E,m as Q,d as F,e as B}from"./date-Dwgqy666.js";import{j as T}from"./index-ZBhBsEE-.js";function Y(r,e){var u,o,l,h;const t=M(),n=(e==null?void 0:e.weekStartsOn)??((o=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:o.weekStartsOn)??t.weekStartsOn??((h=(l=t.locale)==null?void 0:l.options)==null?void 0:h.weekStartsOn)??0,a=m(r,e==null?void 0:e.in),s=a.getDay(),i=(s<n?7:0)+s-n;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function D(r,e){return Y(r,{...e,weekStartsOn:1})}function H(r,e){const t=m(r,e==null?void 0:e.in),n=t.getFullYear(),a=b(t,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const s=D(a),i=b(t,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const u=D(i);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function S(r,e){const t=m(r,e==null?void 0:e.in);return t.setHours(0,0,0,0),t}function X(r,e,t){const[n,a]=_(t==null?void 0:t.in,r,e),s=S(n),i=S(a),u=+s-E(s),o=+i-E(i);return Math.round((u-o)/Q)}function L(r,e){const t=H(r,e),n=b(r,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),D(n)}function R(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function I(r){return!(!R(r)&&typeof r!="number"||isNaN(+m(r)))}function j(r,e){const t=m(r,e==null?void 0:e.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function $(r,e){const t=m(r,e==null?void 0:e.in);return X(t,j(t))+1}function V(r,e){const t=m(r,e==null?void 0:e.in),n=+D(t)-+L(t);return Math.round(n/F)+1}function C(r,e){var h,O,x,k;const t=m(r,e==null?void 0:e.in),n=t.getFullYear(),a=M(),s=(e==null?void 0:e.firstWeekContainsDate)??((O=(h=e==null?void 0:e.locale)==null?void 0:h.options)==null?void 0:O.firstWeekContainsDate)??a.firstWeekContainsDate??((k=(x=a.locale)==null?void 0:x.options)==null?void 0:k.firstWeekContainsDate)??1,i=b((e==null?void 0:e.in)||r,0);i.setFullYear(n+1,0,s),i.setHours(0,0,0,0);const u=Y(i,e),o=b((e==null?void 0:e.in)||r,0);o.setFullYear(n,0,s),o.setHours(0,0,0,0);const l=Y(o,e);return+t>=+u?n+1:+t>=+l?n:n-1}function J(r,e){var u,o,l,h;const t=M(),n=(e==null?void 0:e.firstWeekContainsDate)??((o=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:o.firstWeekContainsDate)??t.firstWeekContainsDate??((h=(l=t.locale)==null?void 0:l.options)==null?void 0:h.firstWeekContainsDate)??1,a=C(r,e),s=b((e==null?void 0:e.in)||r,0);return s.setFullYear(a,0,n),s.setHours(0,0,0,0),Y(s,e)}function K(r,e){const t=m(r,e==null?void 0:e.in),n=+Y(t,e)-+J(t,e);return Math.round(n/F)+1}function c(r,e){const t=r<0?"-":"",n=Math.abs(r).toString().padStart(e,"0");return t+n}const g={y(r,e){const t=r.getFullYear(),n=t>0?t:1-t;return c(e==="yy"?n%100:n,e.length)},M(r,e){const t=r.getMonth();return e==="M"?String(t+1):c(t+1,2)},d(r,e){return c(r.getDate(),e.length)},a(r,e){const t=r.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(r,e){return c(r.getHours()%12||12,e.length)},H(r,e){return c(r.getHours(),e.length)},m(r,e){return c(r.getMinutes(),e.length)},s(r,e){return c(r.getSeconds(),e.length)},S(r,e){const t=e.length,n=r.getMilliseconds(),a=Math.trunc(n*Math.pow(10,t-3));return c(a,e.length)}},y={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},W={G:function(r,e,t){const n=r.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(r,e,t){if(e==="yo"){const n=r.getFullYear(),a=n>0?n:1-n;return t.ordinalNumber(a,{unit:"year"})}return g.y(r,e)},Y:function(r,e,t,n){const a=C(r,n),s=a>0?a:1-a;if(e==="YY"){const i=s%100;return c(i,2)}return e==="Yo"?t.ordinalNumber(s,{unit:"year"}):c(s,e.length)},R:function(r,e){const t=H(r);return c(t,e.length)},u:function(r,e){const t=r.getFullYear();return c(t,e.length)},Q:function(r,e,t){const n=Math.ceil((r.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return c(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(r,e,t){const n=Math.ceil((r.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return c(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(r,e,t){const n=r.getMonth();switch(e){case"M":case"MM":return g.M(r,e);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(r,e,t){const n=r.getMonth();switch(e){case"L":return String(n+1);case"LL":return c(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(r,e,t,n){const a=K(r,n);return e==="wo"?t.ordinalNumber(a,{unit:"week"}):c(a,e.length)},I:function(r,e,t){const n=V(r);return e==="Io"?t.ordinalNumber(n,{unit:"week"}):c(n,e.length)},d:function(r,e,t){return e==="do"?t.ordinalNumber(r.getDate(),{unit:"date"}):g.d(r,e)},D:function(r,e,t){const n=$(r);return e==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):c(n,e.length)},E:function(r,e,t){const n=r.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(r,e,t,n){const a=r.getDay(),s=(a-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return c(s,2);case"eo":return t.ordinalNumber(s,{unit:"day"});case"eee":return t.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(a,{width:"short",context:"formatting"});case"eeee":default:return t.day(a,{width:"wide",context:"formatting"})}},c:function(r,e,t,n){const a=r.getDay(),s=(a-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return c(s,e.length);case"co":return t.ordinalNumber(s,{unit:"day"});case"ccc":return t.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(a,{width:"narrow",context:"standalone"});case"cccccc":return t.day(a,{width:"short",context:"standalone"});case"cccc":default:return t.day(a,{width:"wide",context:"standalone"})}},i:function(r,e,t){const n=r.getDay(),a=n===0?7:n;switch(e){case"i":return String(a);case"ii":return c(a,e.length);case"io":return t.ordinalNumber(a,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(r,e,t){const a=r.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(r,e,t){const n=r.getHours();let a;switch(n===12?a=y.noon:n===0?a=y.midnight:a=n/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(r,e,t){const n=r.getHours();let a;switch(n>=17?a=y.evening:n>=12?a=y.afternoon:n>=4?a=y.morning:a=y.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(r,e,t){if(e==="ho"){let n=r.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return g.h(r,e)},H:function(r,e,t){return e==="Ho"?t.ordinalNumber(r.getHours(),{unit:"hour"}):g.H(r,e)},K:function(r,e,t){const n=r.getHours()%12;return e==="Ko"?t.ordinalNumber(n,{unit:"hour"}):c(n,e.length)},k:function(r,e,t){let n=r.getHours();return n===0&&(n=24),e==="ko"?t.ordinalNumber(n,{unit:"hour"}):c(n,e.length)},m:function(r,e,t){return e==="mo"?t.ordinalNumber(r.getMinutes(),{unit:"minute"}):g.m(r,e)},s:function(r,e,t){return e==="so"?t.ordinalNumber(r.getSeconds(),{unit:"second"}):g.s(r,e)},S:function(r,e){return g.S(r,e)},X:function(r,e,t){const n=r.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return N(n);case"XXXX":case"XX":return w(n);case"XXXXX":case"XXX":default:return w(n,":")}},x:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"x":return N(n);case"xxxx":case"xx":return w(n);case"xxxxx":case"xxx":default:return w(n,":")}},O:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+q(n,":");case"OOOO":default:return"GMT"+w(n,":")}},z:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+q(n,":");case"zzzz":default:return"GMT"+w(n,":")}},t:function(r,e,t){const n=Math.trunc(+r/1e3);return c(n,e.length)},T:function(r,e,t){return c(+r,e.length)}};function q(r,e=""){const t=r>0?"-":"+",n=Math.abs(r),a=Math.trunc(n/60),s=n%60;return s===0?t+String(a):t+String(a)+e+c(s,2)}function N(r,e){return r%60===0?(r>0?"-":"+")+c(Math.abs(r)/60,2):w(r,e)}function w(r,e=""){const t=r>0?"-":"+",n=Math.abs(r),a=c(Math.trunc(n/60),2),s=c(n%60,2);return t+a+e+s}const v=(r,e)=>{switch(r){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},G=(r,e)=>{switch(r){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},U=(r,e)=>{const t=r.match(/(P+)(p+)?/)||[],n=t[1],a=t[2];if(!a)return v(r,e);let s;switch(n){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",v(n,e)).replace("{{time}}",G(a,e))},Z={p:G,P:U},A=/^D+$/,z=/^Y+$/,p=["D","DD","YY","YYYY"];function ee(r){return A.test(r)}function te(r){return z.test(r)}function re(r,e,t){const n=ne(r,e,t);if(console.warn(n),p.includes(r))throw new RangeError(n)}function ne(r,e,t){const n=r[0]==="Y"?"years":"days of the month";return`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${e}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,se=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ce=/^'([^]*?)'?$/,ie=/''/g,ue=/[a-zA-Z]/;function he(r,e,t){var h,O,x,k;const n=M(),a=n.locale??B,s=n.firstWeekContainsDate??((O=(h=n.locale)==null?void 0:h.options)==null?void 0:O.firstWeekContainsDate)??1,i=n.weekStartsOn??((k=(x=n.locale)==null?void 0:x.options)==null?void 0:k.weekStartsOn)??0,u=m(r,t==null?void 0:t.in);if(!I(u))throw new RangeError("Invalid time value");let o=e.match(se).map(f=>{const d=f[0];if(d==="p"||d==="P"){const P=Z[d];return P(f,a.formatLong)}return f}).join("").match(ae).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const d=f[0];if(d==="'")return{isToken:!1,value:oe(f)};if(W[d])return{isToken:!0,value:f};if(d.match(ue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:f}});a.localize.preprocessor&&(o=a.localize.preprocessor(u,o));const l={firstWeekContainsDate:s,weekStartsOn:i,locale:a};return o.map(f=>{if(!f.isToken)return f.value;const d=f.value;(te(d)||ee(d))&&re(d,e,String(r));const P=W[d[0]];return P(u,d,a.localize,l)}).join("")}function oe(r){const e=r.match(ce);return e?e[1].replace(ie,"'"):r}function me({label:r,value:e,className:t=""}){return T.jsxs("div",{className:`grid grid-cols-[180px_1fr] gap-4 py-3 border-b border-gray-100 dark:border-gray-700 last:border-0 ${t}`,children:[T.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:r}),T.jsx("dd",{className:"text-sm text-gray-900 dark:text-white break-all",children:e})]})}export{me as D,he as f};
@@ -1,4 +1,4 @@
1
- import{c as n,j as e,H as d,D as h,F as j,C as g}from"./index-Oh_UboeF.js";import{p as c,f as u}from"./date-Dwgqy666.js";import{D as a,f}from"./DetailRow-B0S3c_eE.js";import{C as l}from"./types-Be5ENIEY.js";import{C as N}from"./CopyButton-XYdI3-sW.js";import{C as b}from"./circle-check-big-DgeP_jno.js";import{C as x}from"./circle-x-CSvWnKSC.js";import"./vendor-DBTT3jXp.js";import"./EntryDetailPage-D_OaKS4_.js";import"./search-C3TNb54L.js";/**
1
+ import{c as n,j as e,H as d,D as h,F as j,C as g}from"./index-ZBhBsEE-.js";import{p as c,f as u}from"./date-Dwgqy666.js";import{D as a,f}from"./DetailRow-8MgXx8DK.js";import{C as l}from"./types-DqgiyrZ3.js";import{C as N}from"./CopyButton-CLJDLZpF.js";import{C as b}from"./circle-check-big-Bd3maByp.js";import{C as x}from"./circle-x-DuIWQOMZ.js";import"./vendor-DBTT3jXp.js";import"./EntryDetailPage-HykUOnNH.js";import"./search-DEpjS1hS.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{j as r,H as p}from"./index-Oh_UboeF.js";import{e as M,b as P}from"./vendor-DBTT3jXp.js";import{f as S,p as T}from"./date-Dwgqy666.js";import{u as b,a as A,P as $,R as z,N as H,L}from"./PageHeader-Bi85xmzF.js";import{u as U,r as G,C as l}from"./types-Be5ENIEY.js";import{T as o,D as I,b as K}from"./DataTable-B_TIjhVT.js";import"./timer-DIZVbXrL.js";function Y(){const u=M(),{addFilter:t,clearAll:c,serverFilters:m,headerFilters:h}=U("dumps"),{rangeFilters:x,windowMinutes:g}=b(),{entries:f,loading:y,refreshing:s,error:C,refresh:d,newEntriesCount:j,hasMore:w,loadMore:k,loadNew:N,autoRefreshEnabled:F,live:v,setAutoRefresh:D,meta:i,isHighlighted:E}=A({type:"dump",limit:50,filters:{...m,...x},windowMinutes:g}),n=f.filter(e=>G(e)),R=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)}MB`:`${(e/(1024*1024*1024)).toFixed(1)}GB`:"-",B=P.useMemo(()=>[{key:"operation",header:"Operation",width:"120px",render:e=>r.jsx(l,{onClick:a=>{a.stopPropagation(),t("operations",e.payload.operation)},children:e.payload.operation.toUpperCase()})},{key:"format",header:"Format",width:"100px",render:e=>r.jsx(l,{onClick:a=>{a.stopPropagation(),t("formats",e.payload.format)},className:"font-mono",children:e.payload.format})},{key:"records",header:"Records",width:"100px",align:"right",render:e=>e.payload.recordCount!==void 0?r.jsx(o,{children:e.payload.recordCount.toLocaleString()}):r.jsx(o,{secondary:!0,children:"-"})},{key:"size",header:"Size",width:"100px",align:"right",render:e=>r.jsx(o,{children:R(e.payload.fileSize)})},{key:"status",header:"Status",width:"100px",render:e=>r.jsx(l,{onClick:a=>{a.stopPropagation(),t("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>r.jsx(I,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>r.jsx(o,{secondary:!0,className:"text-xs",children:S(T(e.createdAt),{addSuffix:!0})})}],[t]);return y&&n.length===0?r.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):r.jsxs("div",{children:[r.jsx($,{title:"Dumps",icon:p,iconColor:"text-slate-600 dark:text-slate-400",count:n.length,totalCount:i==null?void 0:i.total,clearable:{type:"dump",label:"dumps",onCleared:d},refreshing:s,autoRefreshEnabled:F,live:v,onAutoRefreshToggle:D,filters:h,filterControls:r.jsx(z,{route:"dumps"}),onClearAllFilters:c}),r.jsxs("div",{className:"space-y-4",children:[r.jsx(H,{count:j,onClick:N,loading:s}),r.jsx(K,{columns:B,data:n,keyExtractor:e=>e.id,onRowClick:e=>u(`/dumps/${e.id}`),rowClassName:e=>E(e.id)?"highlight-new":"",emptyMessage:"No data dumps recorded yet",error:C,onRetry:d,emptyIcon:r.jsx(p,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),r.jsx(L,{hasMore:w,onClick:k,loading:s})]})]})}export{Y as default};
1
+ import{j as r,H as p}from"./index-ZBhBsEE-.js";import{e as M,b as P}from"./vendor-DBTT3jXp.js";import{f as S,p as T}from"./date-Dwgqy666.js";import{u as b,a as A,P as $,R as z,N as H,L}from"./PageHeader-C3xvY2Ig.js";import{u as U,r as G,C as l}from"./types-DqgiyrZ3.js";import{T as o,D as I,b as K}from"./DataTable-DXp-7bHh.js";import"./timer-chx4YN2F.js";function Y(){const u=M(),{addFilter:t,clearAll:c,serverFilters:m,headerFilters:h}=U("dumps"),{rangeFilters:x,windowMinutes:g}=b(),{entries:f,loading:y,refreshing:s,error:C,refresh:d,newEntriesCount:j,hasMore:w,loadMore:k,loadNew:N,autoRefreshEnabled:F,live:v,setAutoRefresh:D,meta:i,isHighlighted:E}=A({type:"dump",limit:50,filters:{...m,...x},windowMinutes:g}),n=f.filter(e=>G(e)),R=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)}MB`:`${(e/(1024*1024*1024)).toFixed(1)}GB`:"-",B=P.useMemo(()=>[{key:"operation",header:"Operation",width:"120px",render:e=>r.jsx(l,{onClick:a=>{a.stopPropagation(),t("operations",e.payload.operation)},children:e.payload.operation.toUpperCase()})},{key:"format",header:"Format",width:"100px",render:e=>r.jsx(l,{onClick:a=>{a.stopPropagation(),t("formats",e.payload.format)},className:"font-mono",children:e.payload.format})},{key:"records",header:"Records",width:"100px",align:"right",render:e=>e.payload.recordCount!==void 0?r.jsx(o,{children:e.payload.recordCount.toLocaleString()}):r.jsx(o,{secondary:!0,children:"-"})},{key:"size",header:"Size",width:"100px",align:"right",render:e=>r.jsx(o,{children:R(e.payload.fileSize)})},{key:"status",header:"Status",width:"100px",render:e=>r.jsx(l,{onClick:a=>{a.stopPropagation(),t("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>r.jsx(I,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>r.jsx(o,{secondary:!0,className:"text-xs",children:S(T(e.createdAt),{addSuffix:!0})})}],[t]);return y&&n.length===0?r.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):r.jsxs("div",{children:[r.jsx($,{title:"Dumps",icon:p,iconColor:"text-slate-600 dark:text-slate-400",count:n.length,totalCount:i==null?void 0:i.total,clearable:{type:"dump",label:"dumps",onCleared:d},refreshing:s,autoRefreshEnabled:F,live:v,onAutoRefreshToggle:D,filters:h,filterControls:r.jsx(z,{route:"dumps"}),onClearAllFilters:c}),r.jsxs("div",{className:"space-y-4",children:[r.jsx(H,{count:j,onClick:N,loading:s}),r.jsx(K,{columns:B,data:n,keyExtractor:e=>e.id,onRowClick:e=>u(`/dumps/${e.id}`),rowClassName:e=>E(e.id)?"highlight-new":"",emptyMessage:"No data dumps recorded yet",watcher:"dump",error:C,onRetry:d,emptyIcon:r.jsx(p,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),r.jsx(L,{hasMore:w,onClick:k,loading:s})]})]})}export{Y as default};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RequestDetailView-mFqH5MaS.js","./index-Oh_UboeF.js","./vendor-DBTT3jXp.js","./index-CMvt7uFU.css","./date-Dwgqy666.js","./DetailRow-B0S3c_eE.js","./types-Be5ENIEY.js","./UserCard-Dmx7j2Ir.js","./search-C3TNb54L.js","./QueryDetailView-xawOoEVO.js","./ExceptionDetailView-CsLEb3Zl.js","./LogDetailView-CnQ5dEkg.js","./EventDetailView-BgmXCQ6t.js","./CopyButton-XYdI3-sW.js","./zap-FCdKJjm5.js","./users-Bt96KxXr.js","./JobDetailView-B_hBS0H6.js","./circle-alert-DVIWjKkL.js","./circle-check-big-DgeP_jno.js","./CacheDetailView-BvkeOKgE.js","./circle-x-CSvWnKSC.js","./timer-DIZVbXrL.js","./MailDetailView-BR5Iv4i2.js","./ScheduleDetailView-B41y0uev.js","./format-BlNP-apw.js","./calendar-Ppb5e_1B.js","./HttpClientDetailView-BidIN8T6.js","./RedisDetailView-BmE_L9g1.js","./ModelDetailView-BwHWLQyS.js","./NotificationDetailView-C1SGLmvR.js","./send-CeQr2ikp.js","./ViewDetailView-DzBFVrXH.js","./eye-Barcwmeq.js","./CommandDetailView-CVbt9JyP.js","./GateDetailView-CaxZBQOa.js","./BatchDetailView-BfNZfpm_.js","./DumpDetailView-Da-47VLM.js","./GraphQLDetailView-Du2b9rrV.js","./DataTable-B_TIjhVT.js"])))=>i.map(i=>d[i]);
2
- import{c as O,j as e,I as fe,z as $,J as je,X as B,x as be,i as ke,K as ae,N as we,_ as b}from"./index-Oh_UboeF.js";import{b as i,h as Ne,L as J}from"./vendor-DBTT3jXp.js";import{g as Ee,f as ve,p as Te}from"./date-Dwgqy666.js";import{t as Ce,C as h,i as X,a as Y,b as Z,c as K,d as re,e as le,f as ie,g as ne,h as oe,j as ee,k as ce,l as de,m as xe,n as me,o as pe,p as he,q as ge,r as ue,s as te}from"./types-Be5ENIEY.js";import{S as L}from"./search-C3TNb54L.js";/**
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RequestDetailView-DIxihCyo.js","./index-ZBhBsEE-.js","./vendor-DBTT3jXp.js","./index-DvT5dtlP.css","./date-Dwgqy666.js","./DetailRow-8MgXx8DK.js","./types-DqgiyrZ3.js","./UserCard-Czdl3BwE.js","./search-DEpjS1hS.js","./QueryDetailView-oGlkJiXP.js","./ExceptionDetailView-o7M33_ij.js","./LogDetailView-DWFZhpkp.js","./EventDetailView-zhbmW-hn.js","./CopyButton-CLJDLZpF.js","./zap-CP3Qh2HO.js","./users-BG41jdoO.js","./JobDetailView-OpMwViVl.js","./circle-alert-BAv3_SCD.js","./circle-check-big-Bd3maByp.js","./CacheDetailView-DdG4e_go.js","./circle-x-DuIWQOMZ.js","./timer-chx4YN2F.js","./MailDetailView-C0MrGurU.js","./ScheduleDetailView-CsVweTzt.js","./format-BlNP-apw.js","./calendar-bOGpQhaX.js","./HttpClientDetailView-MF_QMfeV.js","./RedisDetailView-CqG6vCHq.js","./ModelDetailView-DWa2dZYT.js","./NotificationDetailView-CKa4tpI6.js","./send-CUGirmLQ.js","./ViewDetailView-BRtVIr5a.js","./eye-B9n6gdoj.js","./CommandDetailView-BDuo8F9v.js","./GateDetailView-DllUcXFS.js","./BatchDetailView-BBWr4W04.js","./DumpDetailView-KbumlBos.js","./GraphQLDetailView-D2PGtFBT.js","./DataTable-DXp-7bHh.js"])))=>i.map(i=>d[i]);
2
+ import{c as O,j as e,I as fe,z as $,J as je,X as B,x as be,i as ke,K as ae,N as we,_ as b}from"./index-ZBhBsEE-.js";import{b as i,h as Ne,L as J}from"./vendor-DBTT3jXp.js";import{g as Ee,f as ve,p as Te}from"./date-Dwgqy666.js";import{t as Ce,C as h,i as X,a as Y,b as Z,c as K,d as re,e as le,f as ie,g as ne,h as oe,j as ee,k as ce,l as de,m as xe,n as me,o as pe,p as he,q as ge,r as ue,s as te}from"./types-DqgiyrZ3.js";import{S as L}from"./search-DEpjS1hS.js";/**
3
3
  * @license lucide-react v0.468.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
@@ -24,4 +24,4 @@ import{c as O,j as e,I as fe,z as $,J as je,X as B,x as be,i as ke,K as ae,N as
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
- */const G=O("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);function se(t,a){if(!t||typeof window>"u")return a;const l=window.location.hash.slice(1);if(!l)return a;try{return new URLSearchParams(l).get(t)||a}catch{return a}}function Se({tabs:t,defaultTab:a,hashKey:l,headerRight:o,onTabChange:y}){var g,w;const s=a||((g=t[0])==null?void 0:g.id),[x,j]=i.useState(()=>se(l,s));i.useEffect(()=>{if(!l)return;const r=()=>{const d=se(l,s);j(d)};return window.addEventListener("hashchange",r),()=>window.removeEventListener("hashchange",r)},[l,s]);const N=i.useCallback(r=>{if(j(r),y==null||y(r),!l)return;const d=window.location.hash.slice(1),m=new URLSearchParams(d);r===s?m.delete(l):m.set(l,r);const T=m.toString(),A=T?`#${T}`:window.location.pathname+window.location.search;window.history.replaceState(null,"",A)},[l,s,y]),f=(w=t.find(r=>r.id===x))==null?void 0:w.content,c=i.useRef(new Map),n=i.useCallback((r,d)=>{var T;let m=null;switch(r.key){case"ArrowLeft":r.preventDefault(),m=d===0?t.length-1:d-1;break;case"ArrowRight":r.preventDefault(),m=d===t.length-1?0:d+1;break;case"Home":r.preventDefault(),m=0;break;case"End":r.preventDefault(),m=t.length-1;break}if(m!==null){const A=t[m];N(A.id),(T=c.current.get(A.id))==null||T.focus()}},[t,N]);return e.jsxs("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden",children:[e.jsxs("div",{className:"flex items-center border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800",children:[e.jsx("div",{className:"flex flex-1",role:"tablist","aria-label":"Content tabs",children:t.map((r,d)=>e.jsxs("button",{ref:m=>{m&&c.current.set(r.id,m)},role:"tab","aria-selected":x===r.id,"aria-controls":`tabpanel-${r.id}`,id:`tab-${r.id}`,tabIndex:x===r.id?0:-1,onClick:()=>N(r.id),onKeyDown:m=>n(m,d),className:`px-4 py-2.5 text-sm font-medium transition-colors relative ${x===r.id?"text-indigo-600 dark:text-indigo-400 bg-white dark:bg-gray-900":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700"}`,children:[e.jsxs("span",{className:"flex items-center gap-2",children:[r.label,r.badge!==void 0&&r.badge>0&&e.jsx("span",{className:"inline-flex items-center justify-center px-1.5 py-0.5 text-xs font-medium bg-gray-200 dark:bg-gray-600 text-gray-700 dark:text-gray-300 rounded-sm",children:r.badge})]}),x===r.id&&e.jsx("span",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-indigo-600 dark:bg-indigo-400","aria-hidden":"true"})]},r.id))}),o&&e.jsx("div",{className:"px-3 flex items-center",children:o})]}),e.jsx("div",{role:"tabpanel",id:`tabpanel-${x}`,"aria-labelledby":`tab-${x}`,tabIndex:0,className:"bg-white dark:bg-gray-900",children:f})]})}function Ae({entryId:t,tags:a,onTagsChange:l,editable:o=!1,size:y="sm"}){const[s,x]=i.useState(!1),[j,N]=i.useState(""),[f,c]=i.useState(a),n=y==="sm"?"px-1.5 py-0.5 text-xs":"px-2 py-1 text-sm",g=async()=>{if(j.trim())try{const r=await je(t,[j.trim()]);c(r.data),l==null||l(r.data),N(""),x(!1)}catch(r){console.error("Failed to add tag:",r),$.error(`Could not add the tag: ${r.message}`)}},w=async r=>{try{const d=await fe(t,[r]);c(d.data),l==null||l(d.data)}catch(d){console.error("Failed to remove tag:",d),$.error(`Could not remove the tag: ${d.message}`)}};return f.length===0&&!o?null:e.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[f.map(r=>e.jsxs("span",{className:`inline-flex items-center rounded-sm font-bold uppercase tracking-wide shadow-sm ${n} ${Ee(r)}`,children:[r.toUpperCase(),o&&e.jsx("button",{onClick:d=>{d.stopPropagation(),w(r)},"aria-label":`Remove tag ${r}`,className:"ml-1 hover:text-red-600 dark:hover:text-red-400",children:"×"})]},r)),o&&e.jsx(e.Fragment,{children:s?e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("input",{type:"text",value:j,onChange:r=>N(r.target.value),onKeyDown:r=>{r.key==="Enter"&&g(),r.key==="Escape"&&x(!1)},placeholder:"New tag...","aria-label":"New tag",className:"px-2 py-0.5 text-xs border rounded-sm dark:bg-gray-700 dark:border-gray-600 w-24",autoFocus:!0}),e.jsx("button",{onClick:g,"aria-label":"Save tag",className:"text-green-600 hover:text-green-700 text-xs",children:"+"}),e.jsx("button",{onClick:()=>x(!1),"aria-label":"Cancel adding a tag",className:"text-gray-400 hover:text-gray-600 text-xs",children:"×"})]}):e.jsx("button",{onClick:r=>{r.stopPropagation(),x(!0)},"aria-label":"Add a tag",className:`inline-flex items-center rounded-lg font-medium ${n} bg-gray-100 text-gray-500 hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-400 dark:hover:bg-gray-600`,children:"+ Tag"})})]})}function De(t){return t===null?"null":t===void 0?"undefined":Array.isArray(t)?"array":typeof t}function $e(t,a){return a==="array"?t.length:a==="object"?Object.keys(t).length:0}function Le(t,a,l){if(!a)return!1;const o=a.toLowerCase();return t===null?"null".includes(o):typeof t=="string"?t.toLowerCase().includes(o):typeof t=="number"||typeof t=="boolean"?String(t).includes(o):!1}function Q(t,a){if(!a)return!1;const l=a.toLowerCase();return t===null?"null".includes(l):typeof t=="string"?t.toLowerCase().includes(l):typeof t=="number"||typeof t=="boolean"?String(t).includes(l):Array.isArray(t)?t.some(o=>Q(o,a)):typeof t=="object"&&t!==null?Object.entries(t).some(([o,y])=>o.toLowerCase().includes(l)||Q(y,a)):!1}const Ve=i.memo(function t({keyName:a,value:l,depth:o,expandedPaths:y,onToggle:s,searchTerm:x,path:j,isArrayItem:N=!1}){const f=De(l),c=f==="object"||f==="array",n=y.has(j),g=$e(l,f),w=g===0,r=!!x&&((a==null?void 0:a.toLowerCase().includes(x.toLowerCase()))??!1),d=Le(l,x),m=r||d,T=i.useCallback(()=>{s(j)},[s,j]),A=i.useCallback(v=>{v.stopPropagation();const k=typeof l=="string"?l:JSON.stringify(l,null,2);navigator.clipboard.writeText(k),$.success("Copied!")},[l]),V=()=>{const v=d?"bg-yellow-400/30 rounded-sm px-0.5":"";switch(f){case"null":return e.jsx("span",{className:`text-orange-600 dark:text-orange-400 italic ${v}`,children:"null"});case"undefined":return e.jsx("span",{className:`text-gray-500 italic ${v}`,children:"undefined"});case"boolean":return e.jsx("span",{className:`text-purple-600 dark:text-purple-400 ${v}`,children:String(l)});case"number":return e.jsx("span",{className:`text-cyan-600 dark:text-cyan-400 ${v}`,children:String(l)});case"string":{const k=l,D=300,R=k.length>D,P=R?k.slice(0,D):k,M=/^https?:\/\//.test(k),U=/^\d{4}-\d{2}-\d{2}/.test(k),u=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(k);return e.jsxs("span",{className:`text-green-600 dark:text-green-400 ${v}`,children:['"',P,R&&e.jsxs("span",{className:"text-gray-500",children:["... (",k.length-D," more)"]}),'"',M&&e.jsx("span",{className:"ml-1 text-blue-600 dark:text-blue-400 text-xs",children:"(URL)"}),U&&e.jsx("span",{className:"ml-1 text-amber-600 dark:text-yellow-400 text-xs",children:"(Date)"}),u&&e.jsx("span",{className:"ml-1 text-pink-600 dark:text-pink-400 text-xs",children:"(Email)"})]})}case"array":return n?e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"["}):e.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:["[",w?"":e.jsxs("span",{className:"text-gray-500 text-xs ml-1",children:[g," items"]}),"]"]});case"object":return n?e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"{"}):e.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:["{",w?"":e.jsxs("span",{className:"text-gray-500 text-xs ml-1",children:[g," keys"]}),"}"]});default:return e.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:String(l)})}},F=()=>{if(!c||!n)return null;const v=f==="array"?l.map((k,D)=>[String(D),k]):Object.entries(l);return e.jsxs(e.Fragment,{children:[v.map(([k,D])=>e.jsx(t,{keyName:k,value:D,depth:o+1,expandedPaths:y,onToggle:s,searchTerm:x,path:`${j}.${k}`,isArrayItem:f==="array"},`${j}.${k}`)),e.jsxs("div",{className:"flex items-start",children:[e.jsx("span",{className:"w-6 shrink-0"}),e.jsx("div",{style:{paddingLeft:o*16+16},className:"text-gray-600 dark:text-gray-400",children:f==="array"?"]":"}"})]})]})},z=o*16;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`group flex items-start py-px hover:bg-gray-100 dark:hover:bg-white/5 rounded-sm cursor-pointer transition-colors ${m?"bg-yellow-500/10":""}`,onClick:c?T:void 0,children:[e.jsx("span",{className:"w-6 h-6 flex items-center justify-center shrink-0 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 transition-opacity",children:e.jsx("button",{onClick:A,className:"p-1 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",title:"Copy value",children:e.jsx(I,{className:"w-4 h-4"})})}),e.jsxs("div",{className:"flex items-start flex-1",style:{paddingLeft:z},children:[e.jsx("span",{className:"w-4 h-5 flex items-center justify-center shrink-0",children:c&&!w&&(n?e.jsx(be,{className:"w-3.5 h-3.5 text-gray-400 dark:text-gray-500"}):e.jsx(ke,{className:"w-3.5 h-3.5 text-gray-400 dark:text-gray-500"}))}),a!==null&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:`${N?"text-gray-500":"text-blue-700 dark:text-blue-300"} ${r?"bg-yellow-400/30 rounded-sm px-0.5":""}`,children:N?a:`"${a}"`}),e.jsx("span",{className:"text-gray-500 mx-1",children:":"})]}),e.jsx("span",{className:"flex-1",children:V()})]})]}),F()]})});function ye({data:t,title:a,initialExpanded:l=!0,maxInitialDepth:o=2,searchable:y=!0,maxHeight:s=500,inline:x=!1,showToolbar:j=!1,externalSearchTerm:N}){const[f,c]=i.useState(!1),[n,g]=i.useState(""),[w,r]=i.useState(!1),d=N??n,m=g,[T,A]=i.useState(()=>{const u=new Set;if(l){const E=(p,C,_)=>{_>=o||(u.add(C),Array.isArray(p)?p.forEach((S,q)=>E(S,`${C}.${q}`,_+1)):typeof p=="object"&&p!==null&&Object.entries(p).forEach(([S,q])=>E(q,`${C}.${S}`,_+1)))};E(t,"root",0)}return u}),V=i.useMemo(()=>{const u=new Set;if(!d)return u;const E=(p,C)=>{Q(p,d)&&u.add(C),Array.isArray(p)?p.forEach((_,S)=>E(_,`${C}.${S}`)):typeof p=="object"&&p!==null&&Object.entries(p).forEach(([_,S])=>E(S,`${C}.${_}`))};return E(t,"root"),u},[d,t]),F=i.useMemo(()=>V.size===0?T:new Set([...T,...V]),[T,V]),z=i.useCallback(u=>{A(E=>{const p=new Set(E);return p.has(u)?p.delete(u):p.add(u),p})},[]),v=i.useCallback(()=>{const u=new Set,E=(p,C)=>{u.add(C),Array.isArray(p)?p.forEach((_,S)=>E(_,`${C}.${S}`)):typeof p=="object"&&p!==null&&Object.entries(p).forEach(([_,S])=>E(S,`${C}.${_}`))};E(t,"root"),A(u)},[t]),k=i.useCallback(()=>{A(new Set)},[]),D=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(t,null,2)),c(!0),$.success("JSON copied!"),setTimeout(()=>c(!1),2e3)}catch{$.error("Failed to copy")}},R=()=>{r(u=>!u),w&&m("")},P=e.jsx("div",{className:`p-3 overflow-auto font-mono text-sm ${x?"":"bg-white dark:bg-gray-800"}`,style:{maxHeight:typeof s=="number"?`${s}px`:s},children:e.jsx(Ve,{keyName:null,value:t,depth:0,expandedPaths:F,onToggle:z,searchTerm:d,path:"root"})}),M=e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a&&e.jsx("h3",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:a}),e.jsxs("div",{className:`flex items-center space-x-1 ${a?"":"ml-auto"}`,children:[e.jsx("button",{onClick:v,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Expand all",children:e.jsx(H,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("button",{onClick:k,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Collapse all",children:e.jsx(G,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("div",{className:"w-px h-4 bg-gray-300 dark:bg-gray-600"}),y&&e.jsx("button",{onClick:R,className:`p-1.5 rounded-sm transition-colors ${w?"bg-primary-100 dark:bg-primary-900/30 text-primary-600 dark:text-primary-400":"hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-500"}`,title:"Search",children:e.jsx(L,{className:"h-3.5 w-3.5"})}),e.jsx("button",{onClick:D,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Copy JSON",children:f?e.jsx(W,{className:"h-3.5 w-3.5 text-green-500"}):e.jsx(I,{className:"h-3.5 w-3.5 text-gray-500"})})]})]}),U=w&&e.jsx("div",{className:"mb-2",children:e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-400"}),e.jsx("input",{type:"text",value:d,onChange:u=>m(u.target.value),placeholder:"Search keys and values...",className:"w-full pl-8 pr-8 py-1.5 text-sm bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-sm focus:ring-2 focus:ring-primary-500 focus:border-transparent",autoFocus:!0}),d&&e.jsx("button",{onClick:()=>m(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:e.jsx(B,{className:"h-3.5 w-3.5"})})]})});return x?j?e.jsxs("div",{children:[M,U,P]}):P:e.jsxs("div",{className:"card overflow-hidden",children:[e.jsxs("div",{className:"px-4 py-2.5 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between bg-gray-50 dark:bg-gray-800/50",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[a&&e.jsx("h3",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:a}),e.jsx("span",{className:"text-xs text-gray-500",children:Array.isArray(t)?`${t.length} items`:typeof t=="object"&&t!==null?`${Object.keys(t).length} keys`:""})]}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx("button",{onClick:v,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Expand all",children:e.jsx(H,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("button",{onClick:k,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Collapse all",children:e.jsx(G,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("div",{className:"w-px h-4 bg-gray-300 dark:bg-gray-600"}),y&&e.jsx("button",{onClick:R,className:`p-1.5 rounded-sm transition-colors ${w?"bg-primary-100 dark:bg-primary-900/30 text-primary-600 dark:text-primary-400":"hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-500"}`,title:"Search (Ctrl+F)",children:e.jsx(L,{className:"h-3.5 w-3.5"})}),e.jsx("button",{onClick:D,className:"flex items-center gap-1.5 px-2 py-1 text-xs font-medium text-gray-600 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Copy JSON",children:f?e.jsxs(e.Fragment,{children:[e.jsx(W,{className:"h-3.5 w-3.5 text-green-500"}),e.jsx("span",{className:"text-green-500",children:"Copied!"})]}):e.jsxs(e.Fragment,{children:[e.jsx(I,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:"Copy"})]})})]})]}),w&&e.jsx("div",{className:"px-3 py-2 border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/30",children:e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-400"}),e.jsx("input",{type:"text",value:d,onChange:u=>m(u.target.value),placeholder:"Search keys and values...",className:"w-full pl-8 pr-8 py-1.5 text-sm bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-sm focus:ring-2 focus:ring-primary-500 focus:border-transparent",autoFocus:!0}),d&&e.jsx("button",{onClick:()=>m(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:e.jsx(B,{className:"h-3.5 w-3.5"})})]})}),P]})}function Re({data:t,toolbarState:a,maxHeight:l=400,searchBar:o}){const y=`${a.expandAllTrigger}-${a.collapseAllTrigger}`,s=a.expandAllTrigger>a.collapseAllTrigger,x=s?100:a.collapseAllTrigger>0?0:2;return e.jsxs("div",{children:[o,e.jsx(ye,{data:t,inline:!0,maxHeight:l,initialExpanded:s||a.expandAllTrigger===0,maxInitialDepth:x,searchable:!1,showToolbar:!1,externalSearchTerm:a.searchTerm},y)]})}function Pe(){const[t,a]=i.useState({expandAllTrigger:0,collapseAllTrigger:0,showSearch:!1,searchTerm:""}),[l,o]=i.useState(!1),y=i.useCallback(()=>{a(n=>({...n,expandAllTrigger:n.expandAllTrigger+1}))},[]),s=i.useCallback(()=>{a(n=>({...n,collapseAllTrigger:n.collapseAllTrigger+1}))},[]),x=i.useCallback(()=>{a(n=>({...n,showSearch:!n.showSearch,searchTerm:n.showSearch?"":n.searchTerm}))},[]),j=i.useCallback(n=>{a(g=>({...g,searchTerm:n}))},[]),N=i.useCallback(async n=>{try{await navigator.clipboard.writeText(JSON.stringify(n,null,2)),o(!0),$.success("Copied!"),setTimeout(()=>o(!1),2e3)}catch{$.error("Failed to copy")}},[]),f=({data:n})=>e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx("button",{onClick:y,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Expand all",children:e.jsx(H,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("button",{onClick:s,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Collapse all",children:e.jsx(G,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("div",{className:"w-px h-4 bg-gray-300 dark:bg-gray-600"}),e.jsx("button",{onClick:x,className:`p-1.5 rounded-sm transition-colors ${t.showSearch?"bg-primary-100 dark:bg-primary-900/30 text-primary-600 dark:text-primary-400":"hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-500"}`,title:"Search",children:e.jsx(L,{className:"h-3.5 w-3.5"})}),n&&e.jsx("button",{onClick:()=>N(n),className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Copy JSON",children:l?e.jsx(W,{className:"h-3.5 w-3.5 text-green-500"}):e.jsx(I,{className:"h-3.5 w-3.5 text-gray-500"})})]}),c=t.showSearch?e.jsx("div",{className:"p-3 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-400"}),e.jsx("input",{type:"text",value:t.searchTerm,onChange:n=>j(n.target.value),placeholder:"Search keys and values...",className:"w-full pl-8 pr-8 py-1.5 text-sm bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-sm focus:ring-2 focus:ring-primary-500 focus:border-transparent",autoFocus:!0}),t.searchTerm&&e.jsx("button",{onClick:()=>j(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:e.jsx(B,{className:"h-3.5 w-3.5"})})]})}):null;return{state:t,Toolbar:f,SearchBar:c}}function Oe({entry:t}){return e.jsx("div",{className:"flex items-center space-x-3",children:X(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"requests",children:nt(t.payload.path,t.payload.method)}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.path})]}):Y(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"queries",filterType:"types",children:ot(t.payload.query)}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.query.length>100?t.payload.query.substring(0,100)+"...":t.payload.query})]}):Z(t)?(()=>{var l;const a=t.payload.name&&t.payload.name.toLowerCase()!=="error"?t.payload.name:t.payload.code?String(t.payload.code):"Exception";return e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"exceptions",filterType:"names",children:a}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:((l=t.payload.request)==null?void 0:l.url)||t.payload.message})]})})():K(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"logs",filterType:"levels",children:t.payload.level.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.message.length>100?t.payload.message.substring(0,100)+"...":t.payload.message})]}):re(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"events",filterType:"names",children:t.payload.name}),e.jsxs("h1",{className:"text-sm text-gray-600 dark:text-gray-300",children:[t.payload.listeners.length," listener",t.payload.listeners.length!==1?"s":""," · ",t.payload.duration,"ms"]})]}):le(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"jobs",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name}),e.jsxs("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:[t.payload.queue," · ",t.payload.duration?`${t.payload.duration}ms`:"-"]})]}):ie(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"cache",filterType:"operations",filterValue:t.payload.operation,children:t.payload.operation.toUpperCase()}),t.payload.operation==="get"&&e.jsx(h,{listType:"cache",children:t.payload.hit?"HIT":"MISS"}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.key.length>60?t.payload.key.substring(0,60)+"...":t.payload.key})]}):ne(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"mail",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm text-gray-900 dark:text-white truncate",children:t.payload.subject.length>60?t.payload.subject.substring(0,60)+"...":t.payload.subject})]}):oe(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"schedule",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name}),t.payload.cron&&e.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400 font-mono",children:t.payload.cron})]}):ee(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"http-client",filterType:"methods",filterValue:t.payload.method,children:t.payload.method}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.hostname||t.payload.url})]}):ce(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"redis",filterType:"commands",filterValue:t.payload.command,children:t.payload.command}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.keyPattern||"Redis Command"})]}):de(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"models",filterType:"actions",filterValue:t.payload.action,children:t.payload.action.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.entity})]}):xe(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"notifications",filterType:"types",filterValue:t.payload.type,children:t.payload.type}),e.jsx("h1",{className:"text-sm text-gray-900 dark:text-white truncate",children:t.payload.title||t.payload.recipient})]}):me(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"views",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.template})]}):pe(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"commands",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name})]}):he(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"gates",filterType:"results",filterValue:t.payload.allowed?"ALLOWED":"DENIED",children:t.payload.allowed?"ALLOWED":"DENIED"}),e.jsx("h1",{className:"text-sm text-gray-900 dark:text-white truncate",children:t.payload.gate})]}):ge(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"batches",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name})]}):ue(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"dumps",filterType:"operations",filterValue:t.payload.operation,children:t.payload.operation.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.format})]}):te(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"graphql",filterType:"operationTypes",filterValue:t.payload.operationType,children:t.payload.operationType.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.operationName||"(anonymous)"}),t.payload.hasErrors&&e.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-xs font-medium rounded-sm bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",children:"Error"})]}):(()=>{const a=t;return e.jsxs(e.Fragment,{children:[e.jsx(h,{clickable:!1,children:a.type.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:a.requestId||`#${a.id}`})]})})()})}function Ie({entry:t}){const[a,l]=i.useState(t.tags??[]);return e.jsx("div",{className:"card","data-testid":"entry-tags",children:e.jsxs("div",{className:"p-4 flex items-center gap-3 flex-wrap",children:[e.jsx("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Tags"}),e.jsx(Ae,{entryId:t.id,tags:a,editable:!0,onTagsChange:l})]})})}function Fe({entry:t}){return e.jsxs("div",{className:"flex items-center space-x-3","data-testid":"plain-heading",children:[e.jsx(h,{clickable:!1,children:t.type.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.requestId||`#${t.id}`})]})}function ze({entry:t}){return e.jsxs("div",{className:"card","data-testid":"raw-payload",children:[e.jsxs("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Entry payload"}),e.jsxs("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:["This entry does not have the shape the ",t.type," view expects, so it is shown as it was recorded."]})]}),e.jsx("div",{className:"p-4",children:e.jsx(ye,{data:t.payload??{},inline:!0})})]})}function Me(){return e.jsxs("div",{className:"animate-pulse space-y-3","aria-hidden":"true",children:[e.jsx("div",{className:"h-8 rounded-sm bg-gray-100 dark:bg-gray-800"}),e.jsx("div",{className:"h-40 rounded-sm bg-gray-100 dark:bg-gray-800"})]})}const Ue=i.lazy(()=>b(()=>import("./RequestDetailView-mFqH5MaS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)),qe=i.lazy(()=>b(()=>import("./QueryDetailView-xawOoEVO.js"),__vite__mapDeps([9,1,2,3,4,5,6,8]),import.meta.url)),Je=i.lazy(()=>b(()=>import("./ExceptionDetailView-CsLEb3Zl.js"),__vite__mapDeps([10,1,2,3,4,5,6,8]),import.meta.url)),Be=i.lazy(()=>b(()=>import("./LogDetailView-CnQ5dEkg.js"),__vite__mapDeps([11,1,2,3,4,5,6,8]),import.meta.url)),We=i.lazy(()=>b(()=>import("./EventDetailView-BgmXCQ6t.js"),__vite__mapDeps([12,1,2,3,13,6,4,14,15,8]),import.meta.url)),He=i.lazy(()=>b(()=>import("./JobDetailView-B_hBS0H6.js"),__vite__mapDeps([16,1,2,3,4,5,6,13,17,18,8]),import.meta.url)),Ge=i.lazy(()=>b(()=>import("./CacheDetailView-BvkeOKgE.js"),__vite__mapDeps([19,1,2,3,4,5,6,13,18,20,21,8]),import.meta.url)),Qe=i.lazy(()=>b(()=>import("./MailDetailView-BR5Iv4i2.js"),__vite__mapDeps([22,1,2,3,6,4,5,13,20,18,15,17,8]),import.meta.url)),Xe=i.lazy(()=>b(()=>import("./ScheduleDetailView-B41y0uev.js"),__vite__mapDeps([23,1,2,3,24,6,4,5,20,18,21,25]),import.meta.url)),Ye=i.lazy(()=>b(()=>import("./HttpClientDetailView-BidIN8T6.js"),__vite__mapDeps([26,1,2,3,4,5,6,8]),import.meta.url)),Ze=i.lazy(()=>b(()=>import("./RedisDetailView-BmE_L9g1.js"),__vite__mapDeps([27,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),Ke=i.lazy(()=>b(()=>import("./ModelDetailView-BwHWLQyS.js"),__vite__mapDeps([28,1,2,3,4,5,6,13,20,8]),import.meta.url)),et=i.lazy(()=>b(()=>import("./NotificationDetailView-C1SGLmvR.js"),__vite__mapDeps([29,1,2,3,4,5,6,13,18,20,30,8]),import.meta.url)),tt=i.lazy(()=>b(()=>import("./ViewDetailView-DzBFVrXH.js"),__vite__mapDeps([31,1,2,3,4,5,6,13,32,18,20,8]),import.meta.url)),at=i.lazy(()=>b(()=>import("./CommandDetailView-CVbt9JyP.js"),__vite__mapDeps([33,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),st=i.lazy(()=>b(()=>import("./GateDetailView-CaxZBQOa.js"),__vite__mapDeps([34,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),rt=i.lazy(()=>b(()=>import("./BatchDetailView-BfNZfpm_.js"),__vite__mapDeps([35,1,2,3,4,5,6,13,20,17,18,8]),import.meta.url)),lt=i.lazy(()=>b(()=>import("./DumpDetailView-Da-47VLM.js"),__vite__mapDeps([36,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),it=i.lazy(()=>b(()=>import("./GraphQLDetailView-Du2b9rrV.js"),__vite__mapDeps([37,1,2,3,4,5,6,38,7,8,14,30]),import.meta.url));function nt(t,a){return t!=null&&t.toLowerCase().includes("/graphql")?"GRAPHQL":a.toUpperCase()}function ot(t){const a=t.trim().toUpperCase();return a.startsWith("SELECT")?"SELECT":a.startsWith("INSERT")?"INSERT":a.startsWith("UPDATE")?"UPDATE":a.startsWith("DELETE")?"DELETE":a.startsWith("CREATE")?"CREATE":a.startsWith("ALTER")?"ALTER":a.startsWith("DROP")?"DROP":a.startsWith("TRUNCATE")?"TRUNCATE":a.startsWith("BEGIN")||a.startsWith("START")?"TRANSACTION":a.startsWith("COMMIT")?"COMMIT":a.startsWith("ROLLBACK")?"ROLLBACK":"QUERY"}function ct(){var f;const{id:t}=Ne(),[a,l]=i.useState({entry:null,related:[]}),o=Pe(),y=a.id!==t,s=a.entry,x=a.related;if(i.useEffect(()=>{let c=!0;return(async()=>{if(t)try{const g=await we(parseInt(t,10));c&&l({id:t,entry:g.data,related:g.related??[]})}catch(g){console.error("Failed to fetch entry:",g);const w=g instanceof Error?g:new Error("Failed to load this entry"),r=/\b404\b/.test(w.message);c&&l({id:t,entry:null,related:[],failure:r?void 0:w})}})(),()=>{c=!1}},[t]),y)return e.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:e.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});if(!s){const c=a.failure;return e.jsxs("div",{className:"text-center py-12",role:c?"alert":void 0,children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white","data-testid":c?"entry-error":"entry-missing",children:c?"Could not load this entry":"Entry not found"}),c&&e.jsx("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:c.message}),e.jsx(J,{to:"/",className:"text-primary-600 hover:text-primary-700 mt-4 inline-block",children:"Go back to dashboard"})]})}const j=()=>{if(X(s))return e.jsx(Ue,{entry:s,related:x});if(Y(s))return e.jsx(qe,{entry:s});if(Z(s))return e.jsx(Je,{entry:s});if(K(s))return e.jsx(Be,{entry:s});if(re(s))return e.jsx(We,{entry:s});if(le(s))return e.jsx(He,{entry:s});if(ie(s))return e.jsx(Ge,{entry:s});if(ne(s))return e.jsx(Qe,{entry:s});if(oe(s))return e.jsx(Xe,{entry:s});if(ee(s))return e.jsx(Ye,{entry:s});if(ce(s))return e.jsx(Ze,{entry:s});if(de(s))return e.jsx(Ke,{entry:s});if(xe(s))return e.jsx(et,{entry:s});if(me(s))return e.jsx(tt,{entry:s});if(pe(s))return e.jsx(at,{entry:s});if(he(s))return e.jsx(st,{entry:s});if(ge(s))return e.jsx(rt,{entry:s});if(ue(s))return e.jsx(lt,{entry:s});if(te(s))return e.jsx(it,{entry:s});const n=s.payload,g=[{id:"payload",label:"Payload",content:e.jsx(Re,{data:n,toolbarState:o.state,searchBar:o.SearchBar,maxHeight:400})}];return e.jsx(Se,{tabs:g,defaultTab:"payload",headerRight:e.jsx(o.Toolbar,{data:n})})},N=`/${((f=Ce(s.type))==null?void 0:f.route)??"requests"}`;return e.jsxs("div",{children:[e.jsx("div",{className:"fixed top-0 left-0 right-0 lg:left-64 z-30 h-16 bg-gray-50 dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"flex items-center space-x-4 px-4 lg:px-6 h-full",children:[e.jsx(J,{to:N,"aria-label":`Back to ${N.slice(1)}`,className:"p-2 hover:bg-gray-200 dark:hover:bg-gray-800 rounded-lg transition-colors",children:e.jsx(_e,{className:"h-5 w-5 text-gray-500"})}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx(ae,{fallback:e.jsx(Fe,{entry:s}),children:e.jsx(Oe,{entry:s})},`heading-${s.id}`)})]})}),e.jsxs("div",{className:"pt-16 space-y-6",children:[e.jsx(Ie,{entry:s}),e.jsx(ae,{fallback:e.jsx(ze,{entry:s}),children:e.jsx(i.Suspense,{fallback:e.jsx(Me,{}),children:j()})},s.id),x.length>0&&e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:["Related Entries (",x.length,")"]})}),e.jsx("div",{className:"divide-y divide-gray-200 dark:divide-gray-700",children:x.map(c=>e.jsx(J,{to:dt(c),className:"p-4 block hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx(h,{clickable:!1,children:c.type.toUpperCase()}),e.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-300",children:xt(c)})]}),e.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:ve(Te(c.createdAt),{addSuffix:!0})})]})},c.id))})]})]})]})}function dt(t){return`/${{request:"requests",query:"queries",exception:"exceptions",log:"logs",event:"events",job:"jobs",cache:"cache",mail:"mail",schedule:"schedule","http-client":"http-client",redis:"redis",model:"models",notification:"notifications",view:"views",command:"commands",gate:"gates",batch:"batches",dump:"dumps",graphql:"graphql"}[t.type]||"entries"}/${t.id}`}function xt(t){if(Y(t)){const a=t.payload.query;return a.length>50?a.substring(0,50)+"...":a}if(Z(t))return`${t.payload.name}: ${t.payload.message}`;if(K(t)){const a=t.payload.message;return a.length>50?a.substring(0,50)+"...":a}return X(t)?`${t.payload.method} ${t.payload.path}`:ee(t)?`${t.payload.method} ${t.payload.hostname||t.payload.url}`:te(t)?`${t.payload.operationType} ${t.payload.operationName||"(anonymous)"}`:`Entry #${t.id}`}const yt=Object.freeze(Object.defineProperty({__proto__:null,default:ct},Symbol.toStringTag,{value:"Module"}));export{Re as C,yt as E,H as M,Se as T,W as a,I as b,G as c,Pe as u};
27
+ */const G=O("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);function se(t,a){if(!t||typeof window>"u")return a;const l=window.location.hash.slice(1);if(!l)return a;try{return new URLSearchParams(l).get(t)||a}catch{return a}}function Se({tabs:t,defaultTab:a,hashKey:l,headerRight:o,onTabChange:y}){var g,w;const s=a||((g=t[0])==null?void 0:g.id),[x,j]=i.useState(()=>se(l,s));i.useEffect(()=>{if(!l)return;const r=()=>{const d=se(l,s);j(d)};return window.addEventListener("hashchange",r),()=>window.removeEventListener("hashchange",r)},[l,s]);const N=i.useCallback(r=>{if(j(r),y==null||y(r),!l)return;const d=window.location.hash.slice(1),m=new URLSearchParams(d);r===s?m.delete(l):m.set(l,r);const T=m.toString(),A=T?`#${T}`:window.location.pathname+window.location.search;window.history.replaceState(null,"",A)},[l,s,y]),f=(w=t.find(r=>r.id===x))==null?void 0:w.content,c=i.useRef(new Map),n=i.useCallback((r,d)=>{var T;let m=null;switch(r.key){case"ArrowLeft":r.preventDefault(),m=d===0?t.length-1:d-1;break;case"ArrowRight":r.preventDefault(),m=d===t.length-1?0:d+1;break;case"Home":r.preventDefault(),m=0;break;case"End":r.preventDefault(),m=t.length-1;break}if(m!==null){const A=t[m];N(A.id),(T=c.current.get(A.id))==null||T.focus()}},[t,N]);return e.jsxs("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden",children:[e.jsxs("div",{className:"flex items-center border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800",children:[e.jsx("div",{className:"flex flex-1",role:"tablist","aria-label":"Content tabs",children:t.map((r,d)=>e.jsxs("button",{ref:m=>{m&&c.current.set(r.id,m)},role:"tab","aria-selected":x===r.id,"aria-controls":`tabpanel-${r.id}`,id:`tab-${r.id}`,tabIndex:x===r.id?0:-1,onClick:()=>N(r.id),onKeyDown:m=>n(m,d),className:`px-4 py-2.5 text-sm font-medium transition-colors relative ${x===r.id?"text-indigo-600 dark:text-indigo-400 bg-white dark:bg-gray-900":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700"}`,children:[e.jsxs("span",{className:"flex items-center gap-2",children:[r.label,r.badge!==void 0&&r.badge>0&&e.jsx("span",{className:"inline-flex items-center justify-center px-1.5 py-0.5 text-xs font-medium bg-gray-200 dark:bg-gray-600 text-gray-700 dark:text-gray-300 rounded-sm",children:r.badge})]}),x===r.id&&e.jsx("span",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-indigo-600 dark:bg-indigo-400","aria-hidden":"true"})]},r.id))}),o&&e.jsx("div",{className:"px-3 flex items-center",children:o})]}),e.jsx("div",{role:"tabpanel",id:`tabpanel-${x}`,"aria-labelledby":`tab-${x}`,tabIndex:0,className:"bg-white dark:bg-gray-900",children:f})]})}function Ae({entryId:t,tags:a,onTagsChange:l,editable:o=!1,size:y="sm"}){const[s,x]=i.useState(!1),[j,N]=i.useState(""),[f,c]=i.useState(a),n=y==="sm"?"px-1.5 py-0.5 text-xs":"px-2 py-1 text-sm",g=async()=>{if(j.trim())try{const r=await je(t,[j.trim()]);c(r.data),l==null||l(r.data),N(""),x(!1)}catch(r){console.error("Failed to add tag:",r),$.error(`Could not add the tag: ${r.message}`)}},w=async r=>{try{const d=await fe(t,[r]);c(d.data),l==null||l(d.data)}catch(d){console.error("Failed to remove tag:",d),$.error(`Could not remove the tag: ${d.message}`)}};return f.length===0&&!o?null:e.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[f.map(r=>e.jsxs("span",{className:`inline-flex items-center rounded-sm font-bold uppercase tracking-wide shadow-sm ${n} ${Ee(r)}`,children:[r.toUpperCase(),o&&e.jsx("button",{onClick:d=>{d.stopPropagation(),w(r)},"aria-label":`Remove tag ${r}`,className:"ml-1 hover:text-red-600 dark:hover:text-red-400",children:"×"})]},r)),o&&e.jsx(e.Fragment,{children:s?e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("input",{type:"text",value:j,onChange:r=>N(r.target.value),onKeyDown:r=>{r.key==="Enter"&&g(),r.key==="Escape"&&x(!1)},placeholder:"New tag...","aria-label":"New tag",className:"px-2 py-0.5 text-xs border rounded-sm dark:bg-gray-700 dark:border-gray-600 w-24",autoFocus:!0}),e.jsx("button",{onClick:g,"aria-label":"Save tag",className:"text-green-600 hover:text-green-700 text-xs",children:"+"}),e.jsx("button",{onClick:()=>x(!1),"aria-label":"Cancel adding a tag",className:"text-gray-400 hover:text-gray-600 text-xs",children:"×"})]}):e.jsx("button",{onClick:r=>{r.stopPropagation(),x(!0)},"aria-label":"Add a tag",className:`inline-flex items-center rounded-lg font-medium ${n} bg-gray-100 text-gray-500 hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-400 dark:hover:bg-gray-600`,children:"+ Tag"})})]})}function De(t){return t===null?"null":t===void 0?"undefined":Array.isArray(t)?"array":typeof t}function $e(t,a){return a==="array"?t.length:a==="object"?Object.keys(t).length:0}function Le(t,a,l){if(!a)return!1;const o=a.toLowerCase();return t===null?"null".includes(o):typeof t=="string"?t.toLowerCase().includes(o):typeof t=="number"||typeof t=="boolean"?String(t).includes(o):!1}function Q(t,a){if(!a)return!1;const l=a.toLowerCase();return t===null?"null".includes(l):typeof t=="string"?t.toLowerCase().includes(l):typeof t=="number"||typeof t=="boolean"?String(t).includes(l):Array.isArray(t)?t.some(o=>Q(o,a)):typeof t=="object"&&t!==null?Object.entries(t).some(([o,y])=>o.toLowerCase().includes(l)||Q(y,a)):!1}const Ve=i.memo(function t({keyName:a,value:l,depth:o,expandedPaths:y,onToggle:s,searchTerm:x,path:j,isArrayItem:N=!1}){const f=De(l),c=f==="object"||f==="array",n=y.has(j),g=$e(l,f),w=g===0,r=!!x&&((a==null?void 0:a.toLowerCase().includes(x.toLowerCase()))??!1),d=Le(l,x),m=r||d,T=i.useCallback(()=>{s(j)},[s,j]),A=i.useCallback(v=>{v.stopPropagation();const k=typeof l=="string"?l:JSON.stringify(l,null,2);navigator.clipboard.writeText(k),$.success("Copied!")},[l]),V=()=>{const v=d?"bg-yellow-400/30 rounded-sm px-0.5":"";switch(f){case"null":return e.jsx("span",{className:`text-orange-600 dark:text-orange-400 italic ${v}`,children:"null"});case"undefined":return e.jsx("span",{className:`text-gray-500 italic ${v}`,children:"undefined"});case"boolean":return e.jsx("span",{className:`text-purple-600 dark:text-purple-400 ${v}`,children:String(l)});case"number":return e.jsx("span",{className:`text-cyan-600 dark:text-cyan-400 ${v}`,children:String(l)});case"string":{const k=l,D=300,R=k.length>D,P=R?k.slice(0,D):k,M=/^https?:\/\//.test(k),U=/^\d{4}-\d{2}-\d{2}/.test(k),u=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(k);return e.jsxs("span",{className:`text-green-600 dark:text-green-400 ${v}`,children:['"',P,R&&e.jsxs("span",{className:"text-gray-500",children:["... (",k.length-D," more)"]}),'"',M&&e.jsx("span",{className:"ml-1 text-blue-600 dark:text-blue-400 text-xs",children:"(URL)"}),U&&e.jsx("span",{className:"ml-1 text-amber-600 dark:text-yellow-400 text-xs",children:"(Date)"}),u&&e.jsx("span",{className:"ml-1 text-pink-600 dark:text-pink-400 text-xs",children:"(Email)"})]})}case"array":return n?e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"["}):e.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:["[",w?"":e.jsxs("span",{className:"text-gray-500 text-xs ml-1",children:[g," items"]}),"]"]});case"object":return n?e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"{"}):e.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:["{",w?"":e.jsxs("span",{className:"text-gray-500 text-xs ml-1",children:[g," keys"]}),"}"]});default:return e.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:String(l)})}},F=()=>{if(!c||!n)return null;const v=f==="array"?l.map((k,D)=>[String(D),k]):Object.entries(l);return e.jsxs(e.Fragment,{children:[v.map(([k,D])=>e.jsx(t,{keyName:k,value:D,depth:o+1,expandedPaths:y,onToggle:s,searchTerm:x,path:`${j}.${k}`,isArrayItem:f==="array"},`${j}.${k}`)),e.jsxs("div",{className:"flex items-start",children:[e.jsx("span",{className:"w-6 shrink-0"}),e.jsx("div",{style:{paddingLeft:o*16+16},className:"text-gray-600 dark:text-gray-400",children:f==="array"?"]":"}"})]})]})},z=o*16;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`group flex items-start py-px hover:bg-gray-100 dark:hover:bg-white/5 rounded-sm cursor-pointer transition-colors ${m?"bg-yellow-500/10":""}`,onClick:c?T:void 0,children:[e.jsx("span",{className:"w-6 h-6 flex items-center justify-center shrink-0 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 transition-opacity",children:e.jsx("button",{onClick:A,className:"p-1 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",title:"Copy value",children:e.jsx(I,{className:"w-4 h-4"})})}),e.jsxs("div",{className:"flex items-start flex-1",style:{paddingLeft:z},children:[e.jsx("span",{className:"w-4 h-5 flex items-center justify-center shrink-0",children:c&&!w&&(n?e.jsx(be,{className:"w-3.5 h-3.5 text-gray-400 dark:text-gray-500"}):e.jsx(ke,{className:"w-3.5 h-3.5 text-gray-400 dark:text-gray-500"}))}),a!==null&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:`${N?"text-gray-500":"text-blue-700 dark:text-blue-300"} ${r?"bg-yellow-400/30 rounded-sm px-0.5":""}`,children:N?a:`"${a}"`}),e.jsx("span",{className:"text-gray-500 mx-1",children:":"})]}),e.jsx("span",{className:"flex-1",children:V()})]})]}),F()]})});function ye({data:t,title:a,initialExpanded:l=!0,maxInitialDepth:o=2,searchable:y=!0,maxHeight:s=500,inline:x=!1,showToolbar:j=!1,externalSearchTerm:N}){const[f,c]=i.useState(!1),[n,g]=i.useState(""),[w,r]=i.useState(!1),d=N??n,m=g,[T,A]=i.useState(()=>{const u=new Set;if(l){const E=(p,C,_)=>{_>=o||(u.add(C),Array.isArray(p)?p.forEach((S,q)=>E(S,`${C}.${q}`,_+1)):typeof p=="object"&&p!==null&&Object.entries(p).forEach(([S,q])=>E(q,`${C}.${S}`,_+1)))};E(t,"root",0)}return u}),V=i.useMemo(()=>{const u=new Set;if(!d)return u;const E=(p,C)=>{Q(p,d)&&u.add(C),Array.isArray(p)?p.forEach((_,S)=>E(_,`${C}.${S}`)):typeof p=="object"&&p!==null&&Object.entries(p).forEach(([_,S])=>E(S,`${C}.${_}`))};return E(t,"root"),u},[d,t]),F=i.useMemo(()=>V.size===0?T:new Set([...T,...V]),[T,V]),z=i.useCallback(u=>{A(E=>{const p=new Set(E);return p.has(u)?p.delete(u):p.add(u),p})},[]),v=i.useCallback(()=>{const u=new Set,E=(p,C)=>{u.add(C),Array.isArray(p)?p.forEach((_,S)=>E(_,`${C}.${S}`)):typeof p=="object"&&p!==null&&Object.entries(p).forEach(([_,S])=>E(S,`${C}.${_}`))};E(t,"root"),A(u)},[t]),k=i.useCallback(()=>{A(new Set)},[]),D=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(t,null,2)),c(!0),$.success("JSON copied!"),setTimeout(()=>c(!1),2e3)}catch{$.error("Failed to copy")}},R=()=>{r(u=>!u),w&&m("")},P=e.jsx("div",{className:`p-3 overflow-auto font-mono text-sm ${x?"":"bg-white dark:bg-gray-800"}`,style:{maxHeight:typeof s=="number"?`${s}px`:s},children:e.jsx(Ve,{keyName:null,value:t,depth:0,expandedPaths:F,onToggle:z,searchTerm:d,path:"root"})}),M=e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a&&e.jsx("h3",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:a}),e.jsxs("div",{className:`flex items-center space-x-1 ${a?"":"ml-auto"}`,children:[e.jsx("button",{onClick:v,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Expand all",children:e.jsx(H,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("button",{onClick:k,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Collapse all",children:e.jsx(G,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("div",{className:"w-px h-4 bg-gray-300 dark:bg-gray-600"}),y&&e.jsx("button",{onClick:R,className:`p-1.5 rounded-sm transition-colors ${w?"bg-primary-100 dark:bg-primary-900/30 text-primary-600 dark:text-primary-400":"hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-500"}`,title:"Search",children:e.jsx(L,{className:"h-3.5 w-3.5"})}),e.jsx("button",{onClick:D,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Copy JSON",children:f?e.jsx(W,{className:"h-3.5 w-3.5 text-green-500"}):e.jsx(I,{className:"h-3.5 w-3.5 text-gray-500"})})]})]}),U=w&&e.jsx("div",{className:"mb-2",children:e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-400"}),e.jsx("input",{type:"text",value:d,onChange:u=>m(u.target.value),placeholder:"Search keys and values...",className:"w-full pl-8 pr-8 py-1.5 text-sm bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-sm focus:ring-2 focus:ring-primary-500 focus:border-transparent",autoFocus:!0}),d&&e.jsx("button",{onClick:()=>m(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:e.jsx(B,{className:"h-3.5 w-3.5"})})]})});return x?j?e.jsxs("div",{children:[M,U,P]}):P:e.jsxs("div",{className:"card overflow-hidden",children:[e.jsxs("div",{className:"px-4 py-2.5 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between bg-gray-50 dark:bg-gray-800/50",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[a&&e.jsx("h3",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:a}),e.jsx("span",{className:"text-xs text-gray-500",children:Array.isArray(t)?`${t.length} items`:typeof t=="object"&&t!==null?`${Object.keys(t).length} keys`:""})]}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx("button",{onClick:v,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Expand all",children:e.jsx(H,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("button",{onClick:k,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Collapse all",children:e.jsx(G,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("div",{className:"w-px h-4 bg-gray-300 dark:bg-gray-600"}),y&&e.jsx("button",{onClick:R,className:`p-1.5 rounded-sm transition-colors ${w?"bg-primary-100 dark:bg-primary-900/30 text-primary-600 dark:text-primary-400":"hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-500"}`,title:"Search (Ctrl+F)",children:e.jsx(L,{className:"h-3.5 w-3.5"})}),e.jsx("button",{onClick:D,className:"flex items-center gap-1.5 px-2 py-1 text-xs font-medium text-gray-600 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Copy JSON",children:f?e.jsxs(e.Fragment,{children:[e.jsx(W,{className:"h-3.5 w-3.5 text-green-500"}),e.jsx("span",{className:"text-green-500",children:"Copied!"})]}):e.jsxs(e.Fragment,{children:[e.jsx(I,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:"Copy"})]})})]})]}),w&&e.jsx("div",{className:"px-3 py-2 border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/30",children:e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-400"}),e.jsx("input",{type:"text",value:d,onChange:u=>m(u.target.value),placeholder:"Search keys and values...",className:"w-full pl-8 pr-8 py-1.5 text-sm bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-sm focus:ring-2 focus:ring-primary-500 focus:border-transparent",autoFocus:!0}),d&&e.jsx("button",{onClick:()=>m(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:e.jsx(B,{className:"h-3.5 w-3.5"})})]})}),P]})}function Re({data:t,toolbarState:a,maxHeight:l=400,searchBar:o}){const y=`${a.expandAllTrigger}-${a.collapseAllTrigger}`,s=a.expandAllTrigger>a.collapseAllTrigger,x=s?100:a.collapseAllTrigger>0?0:2;return e.jsxs("div",{children:[o,e.jsx(ye,{data:t,inline:!0,maxHeight:l,initialExpanded:s||a.expandAllTrigger===0,maxInitialDepth:x,searchable:!1,showToolbar:!1,externalSearchTerm:a.searchTerm},y)]})}function Pe(){const[t,a]=i.useState({expandAllTrigger:0,collapseAllTrigger:0,showSearch:!1,searchTerm:""}),[l,o]=i.useState(!1),y=i.useCallback(()=>{a(n=>({...n,expandAllTrigger:n.expandAllTrigger+1}))},[]),s=i.useCallback(()=>{a(n=>({...n,collapseAllTrigger:n.collapseAllTrigger+1}))},[]),x=i.useCallback(()=>{a(n=>({...n,showSearch:!n.showSearch,searchTerm:n.showSearch?"":n.searchTerm}))},[]),j=i.useCallback(n=>{a(g=>({...g,searchTerm:n}))},[]),N=i.useCallback(async n=>{try{await navigator.clipboard.writeText(JSON.stringify(n,null,2)),o(!0),$.success("Copied!"),setTimeout(()=>o(!1),2e3)}catch{$.error("Failed to copy")}},[]),f=({data:n})=>e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx("button",{onClick:y,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Expand all",children:e.jsx(H,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("button",{onClick:s,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Collapse all",children:e.jsx(G,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("div",{className:"w-px h-4 bg-gray-300 dark:bg-gray-600"}),e.jsx("button",{onClick:x,className:`p-1.5 rounded-sm transition-colors ${t.showSearch?"bg-primary-100 dark:bg-primary-900/30 text-primary-600 dark:text-primary-400":"hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-500"}`,title:"Search",children:e.jsx(L,{className:"h-3.5 w-3.5"})}),n&&e.jsx("button",{onClick:()=>N(n),className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm transition-colors",title:"Copy JSON",children:l?e.jsx(W,{className:"h-3.5 w-3.5 text-green-500"}):e.jsx(I,{className:"h-3.5 w-3.5 text-gray-500"})})]}),c=t.showSearch?e.jsx("div",{className:"p-3 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-400"}),e.jsx("input",{type:"text",value:t.searchTerm,onChange:n=>j(n.target.value),placeholder:"Search keys and values...",className:"w-full pl-8 pr-8 py-1.5 text-sm bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-sm focus:ring-2 focus:ring-primary-500 focus:border-transparent",autoFocus:!0}),t.searchTerm&&e.jsx("button",{onClick:()=>j(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:e.jsx(B,{className:"h-3.5 w-3.5"})})]})}):null;return{state:t,Toolbar:f,SearchBar:c}}function Oe({entry:t}){return e.jsx("div",{className:"flex items-center space-x-3",children:X(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"requests",children:nt(t.payload.path,t.payload.method)}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.path})]}):Y(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"queries",filterType:"types",children:ot(t.payload.query)}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.query.length>100?t.payload.query.substring(0,100)+"...":t.payload.query})]}):Z(t)?(()=>{var l;const a=t.payload.name&&t.payload.name.toLowerCase()!=="error"?t.payload.name:t.payload.code?String(t.payload.code):"Exception";return e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"exceptions",filterType:"names",children:a}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:((l=t.payload.request)==null?void 0:l.url)||t.payload.message})]})})():K(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"logs",filterType:"levels",children:t.payload.level.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.message.length>100?t.payload.message.substring(0,100)+"...":t.payload.message})]}):re(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"events",filterType:"names",children:t.payload.name}),e.jsxs("h1",{className:"text-sm text-gray-600 dark:text-gray-300",children:[t.payload.listeners.length," listener",t.payload.listeners.length!==1?"s":""," · ",t.payload.duration,"ms"]})]}):le(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"jobs",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name}),e.jsxs("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:[t.payload.queue," · ",t.payload.duration?`${t.payload.duration}ms`:"-"]})]}):ie(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"cache",filterType:"operations",filterValue:t.payload.operation,children:t.payload.operation.toUpperCase()}),t.payload.operation==="get"&&e.jsx(h,{listType:"cache",children:t.payload.hit?"HIT":"MISS"}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.key.length>60?t.payload.key.substring(0,60)+"...":t.payload.key})]}):ne(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"mail",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm text-gray-900 dark:text-white truncate",children:t.payload.subject.length>60?t.payload.subject.substring(0,60)+"...":t.payload.subject})]}):oe(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"schedule",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name}),t.payload.cron&&e.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400 font-mono",children:t.payload.cron})]}):ee(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"http-client",filterType:"methods",filterValue:t.payload.method,children:t.payload.method}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.hostname||t.payload.url})]}):ce(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"redis",filterType:"commands",filterValue:t.payload.command,children:t.payload.command}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.keyPattern||"Redis Command"})]}):de(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"models",filterType:"actions",filterValue:t.payload.action,children:t.payload.action.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.entity})]}):xe(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"notifications",filterType:"types",filterValue:t.payload.type,children:t.payload.type}),e.jsx("h1",{className:"text-sm text-gray-900 dark:text-white truncate",children:t.payload.title||t.payload.recipient})]}):me(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"views",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.template})]}):pe(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"commands",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name})]}):he(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"gates",filterType:"results",filterValue:t.payload.allowed?"ALLOWED":"DENIED",children:t.payload.allowed?"ALLOWED":"DENIED"}),e.jsx("h1",{className:"text-sm text-gray-900 dark:text-white truncate",children:t.payload.gate})]}):ge(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"batches",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name})]}):ue(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"dumps",filterType:"operations",filterValue:t.payload.operation,children:t.payload.operation.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.format})]}):te(t)?e.jsxs(e.Fragment,{children:[e.jsx(h,{listType:"graphql",filterType:"operationTypes",filterValue:t.payload.operationType,children:t.payload.operationType.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.operationName||"(anonymous)"}),t.payload.hasErrors&&e.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-xs font-medium rounded-sm bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",children:"Error"})]}):(()=>{const a=t;return e.jsxs(e.Fragment,{children:[e.jsx(h,{clickable:!1,children:a.type.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:a.requestId||`#${a.id}`})]})})()})}function Ie({entry:t}){const[a,l]=i.useState(t.tags??[]);return e.jsx("div",{className:"card","data-testid":"entry-tags",children:e.jsxs("div",{className:"p-4 flex items-center gap-3 flex-wrap",children:[e.jsx("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Tags"}),e.jsx(Ae,{entryId:t.id,tags:a,editable:!0,onTagsChange:l})]})})}function Fe({entry:t}){return e.jsxs("div",{className:"flex items-center space-x-3","data-testid":"plain-heading",children:[e.jsx(h,{clickable:!1,children:t.type.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.requestId||`#${t.id}`})]})}function ze({entry:t}){return e.jsxs("div",{className:"card","data-testid":"raw-payload",children:[e.jsxs("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Entry payload"}),e.jsxs("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:["This entry does not have the shape the ",t.type," view expects, so it is shown as it was recorded."]})]}),e.jsx("div",{className:"p-4",children:e.jsx(ye,{data:t.payload??{},inline:!0})})]})}function Me(){return e.jsxs("div",{className:"animate-pulse space-y-3","aria-hidden":"true",children:[e.jsx("div",{className:"h-8 rounded-sm bg-gray-100 dark:bg-gray-800"}),e.jsx("div",{className:"h-40 rounded-sm bg-gray-100 dark:bg-gray-800"})]})}const Ue=i.lazy(()=>b(()=>import("./RequestDetailView-DIxihCyo.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)),qe=i.lazy(()=>b(()=>import("./QueryDetailView-oGlkJiXP.js"),__vite__mapDeps([9,1,2,3,4,5,6,8]),import.meta.url)),Je=i.lazy(()=>b(()=>import("./ExceptionDetailView-o7M33_ij.js"),__vite__mapDeps([10,1,2,3,4,5,6,8]),import.meta.url)),Be=i.lazy(()=>b(()=>import("./LogDetailView-DWFZhpkp.js"),__vite__mapDeps([11,1,2,3,4,5,6,8]),import.meta.url)),We=i.lazy(()=>b(()=>import("./EventDetailView-zhbmW-hn.js"),__vite__mapDeps([12,1,2,3,13,6,4,14,15,8]),import.meta.url)),He=i.lazy(()=>b(()=>import("./JobDetailView-OpMwViVl.js"),__vite__mapDeps([16,1,2,3,4,5,6,13,17,18,8]),import.meta.url)),Ge=i.lazy(()=>b(()=>import("./CacheDetailView-DdG4e_go.js"),__vite__mapDeps([19,1,2,3,4,5,6,13,18,20,21,8]),import.meta.url)),Qe=i.lazy(()=>b(()=>import("./MailDetailView-C0MrGurU.js"),__vite__mapDeps([22,1,2,3,6,4,5,13,20,18,15,17,8]),import.meta.url)),Xe=i.lazy(()=>b(()=>import("./ScheduleDetailView-CsVweTzt.js"),__vite__mapDeps([23,1,2,3,24,6,4,5,20,18,21,25]),import.meta.url)),Ye=i.lazy(()=>b(()=>import("./HttpClientDetailView-MF_QMfeV.js"),__vite__mapDeps([26,1,2,3,4,5,6,8]),import.meta.url)),Ze=i.lazy(()=>b(()=>import("./RedisDetailView-CqG6vCHq.js"),__vite__mapDeps([27,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),Ke=i.lazy(()=>b(()=>import("./ModelDetailView-DWa2dZYT.js"),__vite__mapDeps([28,1,2,3,4,5,6,13,20,8]),import.meta.url)),et=i.lazy(()=>b(()=>import("./NotificationDetailView-CKa4tpI6.js"),__vite__mapDeps([29,1,2,3,4,5,6,13,18,20,30,8]),import.meta.url)),tt=i.lazy(()=>b(()=>import("./ViewDetailView-BRtVIr5a.js"),__vite__mapDeps([31,1,2,3,4,5,6,13,32,18,20,8]),import.meta.url)),at=i.lazy(()=>b(()=>import("./CommandDetailView-BDuo8F9v.js"),__vite__mapDeps([33,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),st=i.lazy(()=>b(()=>import("./GateDetailView-DllUcXFS.js"),__vite__mapDeps([34,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),rt=i.lazy(()=>b(()=>import("./BatchDetailView-BBWr4W04.js"),__vite__mapDeps([35,1,2,3,4,5,6,13,20,17,18,8]),import.meta.url)),lt=i.lazy(()=>b(()=>import("./DumpDetailView-KbumlBos.js"),__vite__mapDeps([36,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),it=i.lazy(()=>b(()=>import("./GraphQLDetailView-D2PGtFBT.js"),__vite__mapDeps([37,1,2,3,4,5,6,38,7,8,14,30]),import.meta.url));function nt(t,a){return t!=null&&t.toLowerCase().includes("/graphql")?"GRAPHQL":a.toUpperCase()}function ot(t){const a=t.trim().toUpperCase();return a.startsWith("SELECT")?"SELECT":a.startsWith("INSERT")?"INSERT":a.startsWith("UPDATE")?"UPDATE":a.startsWith("DELETE")?"DELETE":a.startsWith("CREATE")?"CREATE":a.startsWith("ALTER")?"ALTER":a.startsWith("DROP")?"DROP":a.startsWith("TRUNCATE")?"TRUNCATE":a.startsWith("BEGIN")||a.startsWith("START")?"TRANSACTION":a.startsWith("COMMIT")?"COMMIT":a.startsWith("ROLLBACK")?"ROLLBACK":"QUERY"}function ct(){var f;const{id:t}=Ne(),[a,l]=i.useState({entry:null,related:[]}),o=Pe(),y=a.id!==t,s=a.entry,x=a.related;if(i.useEffect(()=>{let c=!0;return(async()=>{if(t)try{const g=await we(parseInt(t,10));c&&l({id:t,entry:g.data,related:g.related??[]})}catch(g){console.error("Failed to fetch entry:",g);const w=g instanceof Error?g:new Error("Failed to load this entry"),r=/\b404\b/.test(w.message);c&&l({id:t,entry:null,related:[],failure:r?void 0:w})}})(),()=>{c=!1}},[t]),y)return e.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:e.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});if(!s){const c=a.failure;return e.jsxs("div",{className:"text-center py-12",role:c?"alert":void 0,children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white","data-testid":c?"entry-error":"entry-missing",children:c?"Could not load this entry":"Entry not found"}),c&&e.jsx("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:c.message}),e.jsx(J,{to:"/",className:"text-primary-600 hover:text-primary-700 mt-4 inline-block",children:"Go back to dashboard"})]})}const j=()=>{if(X(s))return e.jsx(Ue,{entry:s,related:x});if(Y(s))return e.jsx(qe,{entry:s});if(Z(s))return e.jsx(Je,{entry:s});if(K(s))return e.jsx(Be,{entry:s});if(re(s))return e.jsx(We,{entry:s});if(le(s))return e.jsx(He,{entry:s});if(ie(s))return e.jsx(Ge,{entry:s});if(ne(s))return e.jsx(Qe,{entry:s});if(oe(s))return e.jsx(Xe,{entry:s});if(ee(s))return e.jsx(Ye,{entry:s});if(ce(s))return e.jsx(Ze,{entry:s});if(de(s))return e.jsx(Ke,{entry:s});if(xe(s))return e.jsx(et,{entry:s});if(me(s))return e.jsx(tt,{entry:s});if(pe(s))return e.jsx(at,{entry:s});if(he(s))return e.jsx(st,{entry:s});if(ge(s))return e.jsx(rt,{entry:s});if(ue(s))return e.jsx(lt,{entry:s});if(te(s))return e.jsx(it,{entry:s});const n=s.payload,g=[{id:"payload",label:"Payload",content:e.jsx(Re,{data:n,toolbarState:o.state,searchBar:o.SearchBar,maxHeight:400})}];return e.jsx(Se,{tabs:g,defaultTab:"payload",headerRight:e.jsx(o.Toolbar,{data:n})})},N=`/${((f=Ce(s.type))==null?void 0:f.route)??"requests"}`;return e.jsxs("div",{children:[e.jsx("div",{className:"fixed top-0 left-0 right-0 lg:left-64 z-30 h-16 bg-gray-50 dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"flex items-center space-x-4 px-4 lg:px-6 h-full",children:[e.jsx(J,{to:N,"aria-label":`Back to ${N.slice(1)}`,className:"p-2 hover:bg-gray-200 dark:hover:bg-gray-800 rounded-lg transition-colors",children:e.jsx(_e,{className:"h-5 w-5 text-gray-500"})}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx(ae,{fallback:e.jsx(Fe,{entry:s}),children:e.jsx(Oe,{entry:s})},`heading-${s.id}`)})]})}),e.jsxs("div",{className:"pt-16 space-y-6",children:[e.jsx(Ie,{entry:s}),e.jsx(ae,{fallback:e.jsx(ze,{entry:s}),children:e.jsx(i.Suspense,{fallback:e.jsx(Me,{}),children:j()})},s.id),x.length>0&&e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:["Related Entries (",x.length,")"]})}),e.jsx("div",{className:"divide-y divide-gray-200 dark:divide-gray-700",children:x.map(c=>e.jsx(J,{to:dt(c),className:"p-4 block hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx(h,{clickable:!1,children:c.type.toUpperCase()}),e.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-300",children:xt(c)})]}),e.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:ve(Te(c.createdAt),{addSuffix:!0})})]})},c.id))})]})]})]})}function dt(t){return`/${{request:"requests",query:"queries",exception:"exceptions",log:"logs",event:"events",job:"jobs",cache:"cache",mail:"mail",schedule:"schedule","http-client":"http-client",redis:"redis",model:"models",notification:"notifications",view:"views",command:"commands",gate:"gates",batch:"batches",dump:"dumps",graphql:"graphql"}[t.type]||"entries"}/${t.id}`}function xt(t){if(Y(t)){const a=t.payload.query;return a.length>50?a.substring(0,50)+"...":a}if(Z(t))return`${t.payload.name}: ${t.payload.message}`;if(K(t)){const a=t.payload.message;return a.length>50?a.substring(0,50)+"...":a}return X(t)?`${t.payload.method} ${t.payload.path}`:ee(t)?`${t.payload.method} ${t.payload.hostname||t.payload.url}`:te(t)?`${t.payload.operationType} ${t.payload.operationName||"(anonymous)"}`:`Entry #${t.id}`}const yt=Object.freeze(Object.defineProperty({__proto__:null,default:ct},Symbol.toStringTag,{value:"Module"}));export{Re as C,yt as E,H as M,Se as T,W as a,I as b,G as c,Pe as u};
@@ -1 +1 @@
1
- import{j as a,X as d}from"./index-Oh_UboeF.js";import{f as g,b as o}from"./vendor-DBTT3jXp.js";import{S as x}from"./search-C3TNb54L.js";function b({placeholder:c="Search..."}){const[i,l]=g(),e=i.get("search")??"",[r,t]=o.useState(e),[u,h]=o.useState(e);return e!==u&&(h(e),t(e)),o.useEffect(()=>{if(r===e)return;const s=window.location.pathname,m=setTimeout(()=>{window.location.pathname===s&&l(p=>{const n=new URLSearchParams(p);return r?n.set("search",r):n.delete("search"),n},{replace:!0})},350);return()=>clearTimeout(m)},[r,e,l]),a.jsxs("div",{className:"relative",children:[a.jsx(x,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400 pointer-events-none"}),a.jsx("input",{type:"text",value:r,onChange:s=>t(s.target.value),placeholder:c,"aria-label":c,className:"w-full pl-9 pr-9 py-2 text-sm rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-hidden focus:ring-2 focus:ring-primary-500 focus:border-transparent"}),r&&a.jsx("button",{onClick:()=>t(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300","aria-label":"Clear search",children:a.jsx(d,{className:"h-4 w-4"})})]})}export{b as E};
1
+ import{j as a,X as d}from"./index-ZBhBsEE-.js";import{f as g,b as o}from"./vendor-DBTT3jXp.js";import{S as x}from"./search-DEpjS1hS.js";function b({placeholder:c="Search..."}){const[i,l]=g(),e=i.get("search")??"",[r,t]=o.useState(e),[u,h]=o.useState(e);return e!==u&&(h(e),t(e)),o.useEffect(()=>{if(r===e)return;const s=window.location.pathname,m=setTimeout(()=>{window.location.pathname===s&&l(p=>{const n=new URLSearchParams(p);return r?n.set("search",r):n.delete("search"),n},{replace:!0})},350);return()=>clearTimeout(m)},[r,e,l]),a.jsxs("div",{className:"relative",children:[a.jsx(x,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400 pointer-events-none"}),a.jsx("input",{type:"text",value:r,onChange:s=>t(s.target.value),placeholder:c,"aria-label":c,className:"w-full pl-9 pr-9 py-2 text-sm rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-hidden focus:ring-2 focus:ring-primary-500 focus:border-transparent"}),r&&a.jsx("button",{onClick:()=>t(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300","aria-label":"Clear search",children:a.jsx(d,{className:"h-4 w-4"})})]})}export{b as E};
@@ -1 +1 @@
1
- import{j as e,C as x,D as o}from"./index-Oh_UboeF.js";import{b as m}from"./vendor-DBTT3jXp.js";import{u as p,C as g,T as h}from"./EntryDetailPage-D_OaKS4_.js";import{C as l}from"./CopyButton-XYdI3-sW.js";import{C as y}from"./types-Be5ENIEY.js";import{Z as j}from"./zap-FCdKJjm5.js";import{U as N}from"./users-Bt96KxXr.js";import"./date-Dwgqy666.js";import"./search-C3TNb54L.js";function B({entry:d}){const{payload:a}=d,s=p(),[i,n]=m.useState("listeners"),c=[{id:"listeners",label:"Listeners",badge:a.listeners.length,content:e.jsx("div",{className:"p-4",children:a.listeners.length===0?e.jsx("div",{className:"text-center py-8 text-gray-500 dark:text-gray-400",children:"No listeners for this event"}):e.jsx("div",{className:"space-y-2",children:a.listeners.map((t,r)=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-50 dark:bg-gray-800 rounded-lg",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"w-8 h-8 flex items-center justify-center bg-green-100 dark:bg-green-900/30 text-green-600 dark:text-green-400 rounded-full text-sm font-medium",children:r+1}),e.jsx("span",{className:"font-mono text-sm text-gray-900 dark:text-white",children:t})]}),e.jsx(l,{text:t})]},r))})})},{id:"payload",label:"Payload",content:a.payload?e.jsx(g,{data:a.payload,toolbarState:s.state,searchBar:s.SearchBar,maxHeight:400}):e.jsx("div",{className:"p-4 text-center py-8 text-gray-500 dark:text-gray-400",children:"No payload data"})}];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"p-2 bg-green-100 dark:bg-green-900/30 rounded-lg",children:e.jsx(j,{className:"h-5 w-5 text-green-600 dark:text-green-400"})}),e.jsxs("div",{children:[e.jsx(y,{listType:"events",filterType:"names",filterValue:a.name,className:"font-mono",children:a.name}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1",children:"Event Details"})]})]}),e.jsx(l,{text:a.name,label:"Copy event name"})]})}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 divide-x divide-gray-200 dark:divide-gray-700",children:[e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(N,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Listeners"})]}),e.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:a.listeners.length})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(x,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Duration"})]}),e.jsxs("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:[a.duration,e.jsx("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:"ms"})]})]}),a.payload&&e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(o,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Payload Size"})]}),e.jsxs("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:[Object.keys(a.payload).length,e.jsx("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:" keys"})]})]})]})]}),e.jsx(h,{tabs:c,defaultTab:"listeners",hashKey:"event",headerRight:i==="payload"&&a.payload?e.jsx(s.Toolbar,{data:a.payload}):void 0,onTabChange:n})]})}export{B as default};
1
+ import{j as e,C as x,D as o}from"./index-ZBhBsEE-.js";import{b as m}from"./vendor-DBTT3jXp.js";import{u as p,C as g,T as h}from"./EntryDetailPage-HykUOnNH.js";import{C as l}from"./CopyButton-CLJDLZpF.js";import{C as y}from"./types-DqgiyrZ3.js";import{Z as j}from"./zap-CP3Qh2HO.js";import{U as N}from"./users-BG41jdoO.js";import"./date-Dwgqy666.js";import"./search-DEpjS1hS.js";function B({entry:d}){const{payload:a}=d,s=p(),[i,n]=m.useState("listeners"),c=[{id:"listeners",label:"Listeners",badge:a.listeners.length,content:e.jsx("div",{className:"p-4",children:a.listeners.length===0?e.jsx("div",{className:"text-center py-8 text-gray-500 dark:text-gray-400",children:"No listeners for this event"}):e.jsx("div",{className:"space-y-2",children:a.listeners.map((t,r)=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-50 dark:bg-gray-800 rounded-lg",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"w-8 h-8 flex items-center justify-center bg-green-100 dark:bg-green-900/30 text-green-600 dark:text-green-400 rounded-full text-sm font-medium",children:r+1}),e.jsx("span",{className:"font-mono text-sm text-gray-900 dark:text-white",children:t})]}),e.jsx(l,{text:t})]},r))})})},{id:"payload",label:"Payload",content:a.payload?e.jsx(g,{data:a.payload,toolbarState:s.state,searchBar:s.SearchBar,maxHeight:400}):e.jsx("div",{className:"p-4 text-center py-8 text-gray-500 dark:text-gray-400",children:"No payload data"})}];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"p-2 bg-green-100 dark:bg-green-900/30 rounded-lg",children:e.jsx(j,{className:"h-5 w-5 text-green-600 dark:text-green-400"})}),e.jsxs("div",{children:[e.jsx(y,{listType:"events",filterType:"names",filterValue:a.name,className:"font-mono",children:a.name}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1",children:"Event Details"})]})]}),e.jsx(l,{text:a.name,label:"Copy event name"})]})}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 divide-x divide-gray-200 dark:divide-gray-700",children:[e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(N,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Listeners"})]}),e.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:a.listeners.length})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(x,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Duration"})]}),e.jsxs("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:[a.duration,e.jsx("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:"ms"})]})]}),a.payload&&e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(o,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Payload Size"})]}),e.jsxs("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:[Object.keys(a.payload).length,e.jsx("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:" keys"})]})]})]})]}),e.jsx(h,{tabs:c,defaultTab:"listeners",hashKey:"event",headerRight:i==="payload"&&a.payload?e.jsx(s.Toolbar,{data:a.payload}):void 0,onTabChange:n})]})}export{B as default};
@@ -1 +1 @@
1
- import{j as t,R as o}from"./index-Oh_UboeF.js";import{e as F,b as D}from"./vendor-DBTT3jXp.js";import{f as M,p as T}from"./date-Dwgqy666.js";import{u as A,a as P,P as L,R as B,N as H,L as I}from"./PageHeader-Bi85xmzF.js";import{u as S,d as W,C as $}from"./types-Be5ENIEY.js";import{T as l,D as q,b as z}from"./DataTable-B_TIjhVT.js";import"./timer-DIZVbXrL.js";function X(){const d=F(),{addFilter:n,clearAll:c,serverFilters:m,headerFilters:u}=S("events"),{rangeFilters:h,windowMinutes:g}=A(),{entries:x,loading:p,refreshing:a,error:f,refresh:i,newEntriesCount:y,hasMore:v,loadMore:j,loadNew:C,autoRefreshEnabled:w,live:E,setAutoRefresh:N,meta:r,isHighlighted:b}=P({type:"event",limit:50,filters:{...m,...h},windowMinutes:g}),s=x.filter(e=>W(e)),k=D.useMemo(()=>[{key:"event",header:"Event",minWidth:"200px",render:e=>t.jsx($,{onClick:R=>{R.stopPropagation(),n("names",e.payload.name)},className:"font-mono",children:e.payload.name})},{key:"listeners",header:"Listeners",width:"120px",align:"center",render:e=>t.jsxs(l,{secondary:!0,children:[e.payload.listeners.length," listener",e.payload.listeners.length!==1?"s":""]})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx(q,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(l,{secondary:!0,className:"text-xs",children:M(T(e.createdAt),{addSuffix:!0})})}],[n]);return p&&s.length===0?t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):t.jsxs("div",{children:[t.jsx(L,{title:"Events",icon:o,iconColor:"text-emerald-600 dark:text-emerald-400",count:s.length,totalCount:r==null?void 0:r.total,clearable:{type:"event",label:"events",onCleared:i},refreshing:a,autoRefreshEnabled:w,live:E,onAutoRefreshToggle:N,filters:u,filterControls:t.jsx(B,{route:"events"}),onClearAllFilters:c}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(H,{count:y,onClick:C,loading:a}),t.jsx(z,{columns:k,data:s,keyExtractor:e=>e.id,onRowClick:e=>d(`/events/${e.id}`),rowClassName:e=>b(e.id)?"highlight-new":"",emptyMessage:"No events recorded yet",error:f,onRetry:i,emptyIcon:t.jsx(o,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(I,{hasMore:v,onClick:j,loading:a})]})]})}export{X as default};
1
+ import{j as t,R as o}from"./index-ZBhBsEE-.js";import{e as F,b as D}from"./vendor-DBTT3jXp.js";import{f as M,p as T}from"./date-Dwgqy666.js";import{u as A,a as P,P as L,R as B,N as H,L as I}from"./PageHeader-C3xvY2Ig.js";import{u as S,d as W,C as $}from"./types-DqgiyrZ3.js";import{T as l,D as q,b as z}from"./DataTable-DXp-7bHh.js";import"./timer-chx4YN2F.js";function X(){const d=F(),{addFilter:n,clearAll:c,serverFilters:m,headerFilters:u}=S("events"),{rangeFilters:h,windowMinutes:g}=A(),{entries:x,loading:p,refreshing:a,error:f,refresh:i,newEntriesCount:y,hasMore:v,loadMore:j,loadNew:C,autoRefreshEnabled:w,live:E,setAutoRefresh:N,meta:r,isHighlighted:b}=P({type:"event",limit:50,filters:{...m,...h},windowMinutes:g}),s=x.filter(e=>W(e)),k=D.useMemo(()=>[{key:"event",header:"Event",minWidth:"200px",render:e=>t.jsx($,{onClick:R=>{R.stopPropagation(),n("names",e.payload.name)},className:"font-mono",children:e.payload.name})},{key:"listeners",header:"Listeners",width:"120px",align:"center",render:e=>t.jsxs(l,{secondary:!0,children:[e.payload.listeners.length," listener",e.payload.listeners.length!==1?"s":""]})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx(q,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(l,{secondary:!0,className:"text-xs",children:M(T(e.createdAt),{addSuffix:!0})})}],[n]);return p&&s.length===0?t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):t.jsxs("div",{children:[t.jsx(L,{title:"Events",icon:o,iconColor:"text-emerald-600 dark:text-emerald-400",count:s.length,totalCount:r==null?void 0:r.total,clearable:{type:"event",label:"events",onCleared:i},refreshing:a,autoRefreshEnabled:w,live:E,onAutoRefreshToggle:N,filters:u,filterControls:t.jsx(B,{route:"events"}),onClearAllFilters:c}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(H,{count:y,onClick:C,loading:a}),t.jsx(z,{columns:k,data:s,keyExtractor:e=>e.id,onRowClick:e=>d(`/events/${e.id}`),rowClassName:e=>b(e.id)?"highlight-new":"",emptyMessage:"No events recorded yet",watcher:"event",error:f,onRetry:i,emptyIcon:t.jsx(o,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(I,{hasMore:v,onClick:j,loading:a})]})]})}export{X as default};
@@ -1,4 +1,4 @@
1
- import{c as k,j as e,x as v,z as f}from"./index-Oh_UboeF.js";import{p as j,f as w}from"./date-Dwgqy666.js";import{D as c,f as T}from"./DetailRow-B0S3c_eE.js";import{C as y}from"./types-Be5ENIEY.js";import{a as C,b as q,u as S,C as F,T as I}from"./EntryDetailPage-D_OaKS4_.js";import{b as g}from"./vendor-DBTT3jXp.js";import"./search-C3TNb54L.js";/**
1
+ import{c as k,j as e,x as v,z as f}from"./index-ZBhBsEE-.js";import{p as j,f as w}from"./date-Dwgqy666.js";import{D as c,f as T}from"./DetailRow-8MgXx8DK.js";import{C as y}from"./types-DqgiyrZ3.js";import{a as C,b as q,u as S,C as F,T as I}from"./EntryDetailPage-HykUOnNH.js";import{b as g}from"./vendor-DBTT3jXp.js";import"./search-DEpjS1hS.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,6 +1,6 @@
1
- import{c as z,u as H,q as G,s as U,E as J,z as f,j as t,l as K,T as y}from"./index-Oh_UboeF.js";import{e as O,b as o}from"./vendor-DBTT3jXp.js";import{f as Q,p as V}from"./date-Dwgqy666.js";import{u as X,a as Y,P as Z,F as _,R as ee,N as te,L as se}from"./PageHeader-Bi85xmzF.js";import{u as ae,b as re,C as h}from"./types-Be5ENIEY.js";import{E as oe}from"./EntrySearchInput-9QSG15Ph.js";import{T as l,b as le}from"./DataTable-B_TIjhVT.js";import{C as ie}from"./circle-check-big-DgeP_jno.js";import"./timer-DIZVbXrL.js";import"./search-C3TNb54L.js";/**
1
+ import{c as z,u as H,q as G,s as U,E as J,z as f,j as t,l as K,T as y}from"./index-ZBhBsEE-.js";import{e as O,b as o}from"./vendor-DBTT3jXp.js";import{f as Q,p as V}from"./date-Dwgqy666.js";import{u as X,a as Y,P as Z,F as _,R as ee,N as te,L as se}from"./PageHeader-C3xvY2Ig.js";import{u as ae,b as re,C as h}from"./types-DqgiyrZ3.js";import{E as oe}from"./EntrySearchInput-CuQ4LdWy.js";import{T as l,b as le}from"./DataTable-DXp-7bHh.js";import{C as ie}from"./circle-check-big-Bd3maByp.js";import"./timer-chx4YN2F.js";import"./search-DEpjS1hS.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const ne=z("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function ve(){const v=O(),[i,j]=o.useState("all"),[n,x]=o.useState(null),{refreshStats:m}=H(),{clearAll:b,serverFilters:w,headerFilters:C}=ae("exceptions"),{rangeFilters:E,windowMinutes:N}=X(),k={...w,resolved:i==="all"?void 0:i==="resolved"},{entries:T,loading:F,refreshing:d,error:R,refresh:r,newEntriesCount:A,hasMore:S,loadMore:M,loadNew:P,autoRefreshEnabled:q,live:D,setAutoRefresh:I,updateEntry:c,meta:p,isHighlighted:L}=Y({type:"exception",limit:50,filters:{...k,...E},windowMinutes:N}),u=T.filter(e=>re(e)),B=e=>e.payload.name&&e.payload.name.toLowerCase()!=="error"?e.payload.name:e.payload.code?String(e.payload.code):"Error",W=[{id:"all",label:"All"},{id:"unresolved",label:"Unresolved"},{id:"resolved",label:"Resolved"}],g=o.useCallback(async(e,s)=>{e.preventDefault(),e.stopPropagation(),x(s.id);try{if(s.resolvedAt){const a=await G(s.id);c(a.data)}else{const a=await U(s.id);c(a.data)}await m()}catch(a){if(a instanceof J){f(a.message),await r();return}console.error("Failed to toggle resolution:",a),f.error(`Could not change this exception: ${a.message}`)}finally{x(null)}},[c,m,r]),$=o.useMemo(()=>[{key:"exception",header:"Exception",minWidth:"180px",render:e=>{const s=B(e);return t.jsx(h,{listType:"exceptions",filterType:"names",children:s})}},{key:"message",header:"Message",minWidth:"200px",render:e=>t.jsx(l,{truncate:!0,maxWidth:"300px",children:e.payload.message})},{key:"method",header:"Method",width:"100px",render:e=>{var a;const s=((a=e.payload.request)==null?void 0:a.method)||"-";return s!=="-"?t.jsx(h,{listType:"exceptions",filterType:"methods",children:s}):t.jsx(l,{secondary:!0,children:"—"})}},{key:"path",header:"Path",minWidth:"150px",render:e=>{var a;const s=((a=e.payload.request)==null?void 0:a.url)||"-";return s!=="-"?t.jsx(h,{listType:"exceptions",filterType:"paths",className:"font-mono",children:s.length>40?s.substring(0,40)+"...":s}):t.jsx(l,{secondary:!0,children:"—"})}},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(l,{secondary:!0,className:"text-xs",children:Q(V(e.createdAt),{addSuffix:!0})})},{key:"status",header:"Status",width:"80px",align:"center",render:e=>t.jsx("button",{onClick:s=>g(s,e),disabled:n===e.id,className:`p-1 transition-colors ${e.resolvedAt?"text-green-500 hover:text-green-600":"text-gray-400 hover:text-green-500"}`,title:e.resolvedAt?"Mark as unresolved":"Mark as resolved",children:n===e.id?t.jsx(K,{className:"h-5 w-5 animate-spin"}):e.resolvedAt?t.jsx(ie,{className:"h-5 w-5"}):t.jsx(ne,{className:"h-5 w-5"})})}],[n,g]);return F&&u.length===0?t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):t.jsxs("div",{children:[t.jsx(Z,{title:"Exceptions",icon:y,iconColor:"text-red-600 dark:text-red-400",count:u.length,totalCount:p==null?void 0:p.total,clearable:{type:"exception",label:"exceptions",onCleared:r},refreshing:d,autoRefreshEnabled:q,live:D,onAutoRefreshToggle:I,filters:C,onClearAllFilters:b,filterControls:t.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[t.jsx(_,{tabs:W,activeTab:i,onChange:e=>j(e)}),t.jsx(ee,{route:"exceptions"})]})}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(oe,{placeholder:"Search by exception name, message, tag, or content..."}),t.jsx(te,{count:A,onClick:P,loading:d}),t.jsx(le,{columns:$,data:u,keyExtractor:e=>e.id,onRowClick:e=>v(`/exceptions/${e.id}`),emptyMessage:"No exceptions recorded yet",error:R,onRetry:r,emptyIcon:t.jsx(y,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"}),rowClassName:e=>{const s=[];return e.resolvedAt&&s.push("opacity-50"),L(e.id)&&s.push("highlight-new"),s.join(" ")}}),t.jsx(se,{hasMore:S,onClick:M,loading:d})]})]})}export{ve as default};
6
+ */const ne=z("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function ve(){const v=O(),[i,j]=o.useState("all"),[n,x]=o.useState(null),{refreshStats:m}=H(),{clearAll:b,serverFilters:w,headerFilters:C}=ae("exceptions"),{rangeFilters:E,windowMinutes:N}=X(),k={...w,resolved:i==="all"?void 0:i==="resolved"},{entries:T,loading:F,refreshing:d,error:R,refresh:r,newEntriesCount:A,hasMore:S,loadMore:M,loadNew:P,autoRefreshEnabled:q,live:D,setAutoRefresh:I,updateEntry:c,meta:p,isHighlighted:L}=Y({type:"exception",limit:50,filters:{...k,...E},windowMinutes:N}),u=T.filter(e=>re(e)),B=e=>e.payload.name&&e.payload.name.toLowerCase()!=="error"?e.payload.name:e.payload.code?String(e.payload.code):"Error",W=[{id:"all",label:"All"},{id:"unresolved",label:"Unresolved"},{id:"resolved",label:"Resolved"}],g=o.useCallback(async(e,s)=>{e.preventDefault(),e.stopPropagation(),x(s.id);try{if(s.resolvedAt){const a=await G(s.id);c(a.data)}else{const a=await U(s.id);c(a.data)}await m()}catch(a){if(a instanceof J){f(a.message),await r();return}console.error("Failed to toggle resolution:",a),f.error(`Could not change this exception: ${a.message}`)}finally{x(null)}},[c,m,r]),$=o.useMemo(()=>[{key:"exception",header:"Exception",minWidth:"180px",render:e=>{const s=B(e);return t.jsx(h,{listType:"exceptions",filterType:"names",children:s})}},{key:"message",header:"Message",minWidth:"200px",render:e=>t.jsx(l,{truncate:!0,maxWidth:"300px",children:e.payload.message})},{key:"method",header:"Method",width:"100px",render:e=>{var a;const s=((a=e.payload.request)==null?void 0:a.method)||"-";return s!=="-"?t.jsx(h,{listType:"exceptions",filterType:"methods",children:s}):t.jsx(l,{secondary:!0,children:"—"})}},{key:"path",header:"Path",minWidth:"150px",render:e=>{var a;const s=((a=e.payload.request)==null?void 0:a.url)||"-";return s!=="-"?t.jsx(h,{listType:"exceptions",filterType:"paths",className:"font-mono",children:s.length>40?s.substring(0,40)+"...":s}):t.jsx(l,{secondary:!0,children:"—"})}},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(l,{secondary:!0,className:"text-xs",children:Q(V(e.createdAt),{addSuffix:!0})})},{key:"status",header:"Status",width:"80px",align:"center",render:e=>t.jsx("button",{onClick:s=>g(s,e),disabled:n===e.id,className:`p-1 transition-colors ${e.resolvedAt?"text-green-500 hover:text-green-600":"text-gray-400 hover:text-green-500"}`,title:e.resolvedAt?"Mark as unresolved":"Mark as resolved",children:n===e.id?t.jsx(K,{className:"h-5 w-5 animate-spin"}):e.resolvedAt?t.jsx(ie,{className:"h-5 w-5"}):t.jsx(ne,{className:"h-5 w-5"})})}],[n,g]);return F&&u.length===0?t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):t.jsxs("div",{children:[t.jsx(Z,{title:"Exceptions",icon:y,iconColor:"text-red-600 dark:text-red-400",count:u.length,totalCount:p==null?void 0:p.total,clearable:{type:"exception",label:"exceptions",onCleared:r},refreshing:d,autoRefreshEnabled:q,live:D,onAutoRefreshToggle:I,filters:C,onClearAllFilters:b,filterControls:t.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[t.jsx(_,{tabs:W,activeTab:i,onChange:e=>j(e)}),t.jsx(ee,{route:"exceptions"})]})}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(oe,{placeholder:"Search by exception name, message, tag, or content..."}),t.jsx(te,{count:A,onClick:P,loading:d}),t.jsx(le,{columns:$,data:u,keyExtractor:e=>e.id,onRowClick:e=>v(`/exceptions/${e.id}`),emptyMessage:"No exceptions recorded yet",watcher:"exception",error:R,onRetry:r,emptyIcon:t.jsx(y,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"}),rowClassName:e=>{const s=[];return e.resolvedAt&&s.push("opacity-50"),L(e.id)&&s.push("highlight-new"),s.join(" ")}}),t.jsx(se,{hasMore:S,onClick:M,loading:d})]})]})}export{ve as default};
@@ -1,4 +1,4 @@
1
- import{c as m,j as e,S as i,C as g}from"./index-Oh_UboeF.js";import{p as d,f as h}from"./date-Dwgqy666.js";import{D as s,f as j}from"./DetailRow-B0S3c_eE.js";import{C as x}from"./types-Be5ENIEY.js";import{u as p,C as b,T as u}from"./EntryDetailPage-D_OaKS4_.js";import{C as y}from"./CopyButton-XYdI3-sW.js";import{C as N}from"./circle-check-big-DgeP_jno.js";import{C as f}from"./circle-x-CSvWnKSC.js";import"./vendor-DBTT3jXp.js";import"./search-C3TNb54L.js";/**
1
+ import{c as m,j as e,S as i,C as g}from"./index-ZBhBsEE-.js";import{p as d,f as h}from"./date-Dwgqy666.js";import{D as s,f as j}from"./DetailRow-8MgXx8DK.js";import{C as x}from"./types-DqgiyrZ3.js";import{u as p,C as b,T as u}from"./EntryDetailPage-HykUOnNH.js";import{C as y}from"./CopyButton-CLJDLZpF.js";import{C as N}from"./circle-check-big-Bd3maByp.js";import{C as f}from"./circle-x-DuIWQOMZ.js";import"./vendor-DBTT3jXp.js";import"./search-DEpjS1hS.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{j as t,S as d}from"./index-Oh_UboeF.js";import{e as M,b as P}from"./vendor-DBTT3jXp.js";import{f as T,p as S}from"./date-Dwgqy666.js";import{u as W,a as G,P as B,R as D,N as I,L}from"./PageHeader-Bi85xmzF.js";import{u as H,p as U,C as c}from"./types-Be5ENIEY.js";import{T as a,b as J}from"./DataTable-B_TIjhVT.js";import"./timer-DIZVbXrL.js";function X(){const u=M(),{addFilter:s,clearAll:h,serverFilters:p,headerFilters:x}=H("gates"),{rangeFilters:g,windowMinutes:m}=W(),{entries:y,loading:f,refreshing:o,error:j,refresh:n,newEntriesCount:b,hasMore:w,loadMore:C,loadNew:k,autoRefreshEnabled:N,live:E,setAutoRefresh:R,meta:i,isHighlighted:v}=G({type:"gate",limit:50,filters:{...p,...g},windowMinutes:m}),l=y.filter(e=>U(e)),F=P.useMemo(()=>[{key:"gate",header:"Gate",minWidth:"200px",render:e=>t.jsx(c,{onClick:r=>{r.stopPropagation(),s("names",e.payload.gate)},children:e.payload.gate})},{key:"action",header:"Action",width:"150px",render:e=>e.payload.action?t.jsx(a,{truncate:!0,maxWidth:"150px",children:e.payload.action}):t.jsx(a,{secondary:!0,children:"-"})},{key:"subject",header:"Subject",minWidth:"150px",render:e=>e.payload.subject?t.jsx(a,{mono:!0,truncate:!0,maxWidth:"200px",children:typeof e.payload.subject=="string"?e.payload.subject:JSON.stringify(e.payload.subject)}):t.jsx(a,{secondary:!0,children:"-"})},{key:"result",header:"Result",width:"100px",render:e=>{const r=e.payload.allowed?"allowed":"denied";return t.jsx(c,{onClick:A=>{A.stopPropagation(),s("results",r)},children:r.toUpperCase()})}},{key:"user",header:"User",width:"150px",render:e=>e.payload.userId?t.jsx(a,{truncate:!0,maxWidth:"150px",children:e.payload.userId}):t.jsx(a,{secondary:!0,children:"-"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(a,{secondary:!0,className:"text-xs",children:T(S(e.createdAt),{addSuffix:!0})})}],[s]);return f&&l.length===0?t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):t.jsxs("div",{children:[t.jsx(B,{title:"Gates",icon:d,iconColor:"text-amber-600 dark:text-amber-400",count:l.length,totalCount:i==null?void 0:i.total,clearable:{type:"gate",label:"gates",onCleared:n},refreshing:o,autoRefreshEnabled:N,live:E,onAutoRefreshToggle:R,filters:x,filterControls:t.jsx(D,{route:"gates"}),onClearAllFilters:h}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(I,{count:b,onClick:k,loading:o}),t.jsx(J,{columns:F,data:l,keyExtractor:e=>e.id,onRowClick:e=>u(`/gates/${e.id}`),rowClassName:e=>v(e.id)?"highlight-new":"",emptyMessage:"No gate checks recorded yet",error:j,onRetry:n,emptyIcon:t.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(L,{hasMore:w,onClick:C,loading:o})]})]})}export{X as default};
1
+ import{j as t,S as d}from"./index-ZBhBsEE-.js";import{e as M,b as P}from"./vendor-DBTT3jXp.js";import{f as T,p as S}from"./date-Dwgqy666.js";import{u as W,a as G,P as B,R as D,N as I,L}from"./PageHeader-C3xvY2Ig.js";import{u as H,p as U,C as c}from"./types-DqgiyrZ3.js";import{T as a,b as J}from"./DataTable-DXp-7bHh.js";import"./timer-chx4YN2F.js";function X(){const u=M(),{addFilter:s,clearAll:h,serverFilters:p,headerFilters:x}=H("gates"),{rangeFilters:g,windowMinutes:m}=W(),{entries:y,loading:f,refreshing:o,error:j,refresh:n,newEntriesCount:b,hasMore:w,loadMore:C,loadNew:k,autoRefreshEnabled:N,live:E,setAutoRefresh:R,meta:i,isHighlighted:v}=G({type:"gate",limit:50,filters:{...p,...g},windowMinutes:m}),l=y.filter(e=>U(e)),F=P.useMemo(()=>[{key:"gate",header:"Gate",minWidth:"200px",render:e=>t.jsx(c,{onClick:r=>{r.stopPropagation(),s("names",e.payload.gate)},children:e.payload.gate})},{key:"action",header:"Action",width:"150px",render:e=>e.payload.action?t.jsx(a,{truncate:!0,maxWidth:"150px",children:e.payload.action}):t.jsx(a,{secondary:!0,children:"-"})},{key:"subject",header:"Subject",minWidth:"150px",render:e=>e.payload.subject?t.jsx(a,{mono:!0,truncate:!0,maxWidth:"200px",children:typeof e.payload.subject=="string"?e.payload.subject:JSON.stringify(e.payload.subject)}):t.jsx(a,{secondary:!0,children:"-"})},{key:"result",header:"Result",width:"100px",render:e=>{const r=e.payload.allowed?"allowed":"denied";return t.jsx(c,{onClick:A=>{A.stopPropagation(),s("results",r)},children:r.toUpperCase()})}},{key:"user",header:"User",width:"150px",render:e=>e.payload.userId?t.jsx(a,{truncate:!0,maxWidth:"150px",children:e.payload.userId}):t.jsx(a,{secondary:!0,children:"-"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(a,{secondary:!0,className:"text-xs",children:T(S(e.createdAt),{addSuffix:!0})})}],[s]);return f&&l.length===0?t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):t.jsxs("div",{children:[t.jsx(B,{title:"Gates",icon:d,iconColor:"text-amber-600 dark:text-amber-400",count:l.length,totalCount:i==null?void 0:i.total,clearable:{type:"gate",label:"gates",onCleared:n},refreshing:o,autoRefreshEnabled:N,live:E,onAutoRefreshToggle:R,filters:x,filterControls:t.jsx(D,{route:"gates"}),onClearAllFilters:h}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(I,{count:b,onClick:k,loading:o}),t.jsx(J,{columns:F,data:l,keyExtractor:e=>e.id,onRowClick:e=>u(`/gates/${e.id}`),rowClassName:e=>v(e.id)?"highlight-new":"",emptyMessage:"No gate checks recorded yet",watcher:"gate",error:j,onRetry:n,emptyIcon:t.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(L,{hasMore:w,onClick:C,loading:o})]})]})}export{X as default};
@@ -1,4 +1,4 @@
1
- import{c as z,z as q,j as e,X as H,x as P,i as U,L as B,C as _,T as W}from"./index-Oh_UboeF.js";import{b as j,e as J}from"./vendor-DBTT3jXp.js";import{p as R,f as X}from"./date-Dwgqy666.js";import{D as g,f as Z}from"./DetailRow-B0S3c_eE.js";import{C as $,B as K}from"./types-Be5ENIEY.js";import{G as Y,N as ee}from"./DataTable-B_TIjhVT.js";import{M as ae,c as se,a as te,b as re,u as D,C as L,T as M}from"./EntryDetailPage-D_OaKS4_.js";import{U as le}from"./UserCard-Dmx7j2Ir.js";import{S as Q}from"./search-C3TNb54L.js";import{Z as ne}from"./zap-FCdKJjm5.js";import{S as ie}from"./send-CeQr2ikp.js";/**
1
+ import{c as z,z as q,j as e,X as H,x as P,i as U,L as B,C as _,T as W}from"./index-ZBhBsEE-.js";import{b as j,e as J}from"./vendor-DBTT3jXp.js";import{p as R,f as X}from"./date-Dwgqy666.js";import{D as g,f as Z}from"./DetailRow-8MgXx8DK.js";import{C as $,B as K}from"./types-DqgiyrZ3.js";import{G as Y,N as ee}from"./DataTable-DXp-7bHh.js";import{M as ae,c as se,a as te,b as re,u as D,C as L,T as M}from"./EntryDetailPage-HykUOnNH.js";import{U as le}from"./UserCard-Czdl3BwE.js";import{S as Q}from"./search-DEpjS1hS.js";import{Z as ne}from"./zap-CP3Qh2HO.js";import{S as ie}from"./send-CUGirmLQ.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,6 +1,6 @@
1
- import{c as Q,j as a}from"./index-Oh_UboeF.js";import{e as U,f as W,b as d}from"./vendor-DBTT3jXp.js";import{f as I,p as O}from"./date-Dwgqy666.js";import{E as z}from"./EntrySearchInput-9QSG15Ph.js";import{u as V,a as $,P as J,R as K,N as X,L as Y}from"./PageHeader-Bi85xmzF.js";import{u as Z,s as _,C as y}from"./types-Be5ENIEY.js";import{T as c,G as ee,N as ae,D as re,a as te,b as se}from"./DataTable-B_TIjhVT.js";import"./search-C3TNb54L.js";import"./timer-DIZVbXrL.js";/**
1
+ import{c as Q,j as a}from"./index-ZBhBsEE-.js";import{e as U,f as W,b as d}from"./vendor-DBTT3jXp.js";import{f as I,p as O}from"./date-Dwgqy666.js";import{E as z}from"./EntrySearchInput-CuQ4LdWy.js";import{u as V,a as $,P as J,R as K,N as X,L as Y}from"./PageHeader-C3xvY2Ig.js";import{u as Z,s as _,C as y}from"./types-DqgiyrZ3.js";import{T as c,G as ee,N as ae,D as re,a as te,b as se}from"./DataTable-DXp-7bHh.js";import"./search-DEpjS1hS.js";import"./timer-chx4YN2F.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const f=Q("Hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]);function ge(){const w=U(),[t,s]=W(),p=t.get("hasErrors")==="true",h=t.get("hasN1")==="true",{serverFilters:N,headerFilters:j,addFilter:u}=Z("graphql"),{rangeFilters:C,windowMinutes:v}=V(),E={...N,hasErrors:p?!0:void 0,hasN1:h?!0:void 0},o=[];p&&o.push({category:"Status",value:"ERROR",onRemove:()=>{const e=new URLSearchParams(t);e.delete("hasErrors"),s(e,{replace:!0})}}),h&&o.push({category:"Performance",value:"N+1",onRemove:()=>{const e=new URLSearchParams(t);e.delete("hasN1"),s(e,{replace:!0})}});const b=[...j,...o],k=()=>{s({},{replace:!0})},g=d.useCallback(e=>{e.stopPropagation();const r=new URLSearchParams(t);r.set("hasErrors","true"),s(r,{replace:!0})},[t,s]),m=d.useCallback(e=>{e.stopPropagation();const r=new URLSearchParams(t);r.set("hasN1","true"),s(r,{replace:!0})},[t,s]),{entries:P,loading:R,refreshing:n,error:F,refresh:x,newEntriesCount:T,hasMore:L,loadMore:S,loadNew:q,autoRefreshEnabled:A,live:B,setAutoRefresh:M,meta:l,isHighlighted:D}=$({type:"graphql",limit:50,filters:{...E,...C},windowMinutes:v}),i=P.filter(e=>_(e)),G=d.useMemo(()=>[{key:"type",header:"Type",width:"110px",render:e=>a.jsx(y,{listType:"graphql",filterType:"operationTypes",children:e.payload.operationType})},{key:"operation",header:"Operation",minWidth:"150px",render:e=>a.jsx(c,{mono:!0,truncate:!0,maxWidth:"280px",children:e.payload.operationName||"(anonymous)"})},{key:"status",header:"Status",width:"180px",align:"center",render:e=>a.jsxs("div",{className:"flex items-center gap-1.5 justify-center",children:[a.jsx(y,{listType:"graphql",filterType:"statuses",children:e.payload.statusCode}),e.payload.hasErrors&&a.jsx(ee,{onClick:g}),e.payload.potentialN1&&e.payload.potentialN1.length>0&&a.jsx(ae,{count:e.payload.potentialN1.length,onClick:m})]})},{key:"resolvers",header:"Resolvers",width:"90px",align:"center",render:e=>a.jsx(c,{secondary:!0,className:"text-xs tabular-nums",children:e.payload.resolverCount??"-"})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(re,{ms:e.payload.duration})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>a.jsx(te,{tags:(e.tags??[]).filter(r=>!["query","mutation","subscription"].includes(r.toLowerCase())),max:3,onTagClick:(r,H)=>{H.stopPropagation(),u("tags",r)}})},{key:"time",header:"Time",width:"180px",align:"right",render:e=>a.jsx(c,{secondary:!0,className:"text-xs whitespace-nowrap",children:I(O(e.createdAt),{addSuffix:!0})})}],[g,m,u]);return R&&i.length===0?a.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:a.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):a.jsxs("div",{children:[a.jsx(J,{title:"GraphQL",icon:f,iconColor:"text-purple-600 dark:text-purple-400",count:i.length,totalCount:l==null?void 0:l.total,clearable:{type:"graphql",label:"graphql",onCleared:x},refreshing:n,autoRefreshEnabled:A,live:B,onAutoRefreshToggle:M,filters:b,filterControls:a.jsx(K,{route:"graphql"}),onClearAllFilters:k}),a.jsxs("div",{className:"space-y-4",children:[a.jsx(z,{placeholder:"Search by operation, type, tag, or query content..."}),a.jsx(X,{count:T,onClick:q,loading:n}),a.jsx(se,{columns:G,data:i,keyExtractor:e=>e.id,onRowClick:e=>w(`/graphql/${e.id}`),rowClassName:e=>D(e.id)?"highlight-new":"",emptyMessage:"No GraphQL operations recorded yet",error:F,onRetry:x,emptyIcon:a.jsx(f,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(Y,{hasMore:L,onClick:S,loading:n})]})]})}export{ge as default};
6
+ */const f=Q("Hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]);function ge(){const w=U(),[t,s]=W(),p=t.get("hasErrors")==="true",h=t.get("hasN1")==="true",{serverFilters:N,headerFilters:j,addFilter:u}=Z("graphql"),{rangeFilters:C,windowMinutes:v}=V(),E={...N,hasErrors:p?!0:void 0,hasN1:h?!0:void 0},o=[];p&&o.push({category:"Status",value:"ERROR",onRemove:()=>{const e=new URLSearchParams(t);e.delete("hasErrors"),s(e,{replace:!0})}}),h&&o.push({category:"Performance",value:"N+1",onRemove:()=>{const e=new URLSearchParams(t);e.delete("hasN1"),s(e,{replace:!0})}});const b=[...j,...o],k=()=>{s({},{replace:!0})},g=d.useCallback(e=>{e.stopPropagation();const r=new URLSearchParams(t);r.set("hasErrors","true"),s(r,{replace:!0})},[t,s]),m=d.useCallback(e=>{e.stopPropagation();const r=new URLSearchParams(t);r.set("hasN1","true"),s(r,{replace:!0})},[t,s]),{entries:P,loading:R,refreshing:n,error:F,refresh:x,newEntriesCount:T,hasMore:L,loadMore:S,loadNew:q,autoRefreshEnabled:A,live:B,setAutoRefresh:M,meta:l,isHighlighted:D}=$({type:"graphql",limit:50,filters:{...E,...C},windowMinutes:v}),i=P.filter(e=>_(e)),G=d.useMemo(()=>[{key:"type",header:"Type",width:"110px",render:e=>a.jsx(y,{listType:"graphql",filterType:"operationTypes",children:e.payload.operationType})},{key:"operation",header:"Operation",minWidth:"150px",render:e=>a.jsx(c,{mono:!0,truncate:!0,maxWidth:"280px",children:e.payload.operationName||"(anonymous)"})},{key:"status",header:"Status",width:"180px",align:"center",render:e=>a.jsxs("div",{className:"flex items-center gap-1.5 justify-center",children:[a.jsx(y,{listType:"graphql",filterType:"statuses",children:e.payload.statusCode}),e.payload.hasErrors&&a.jsx(ee,{onClick:g}),e.payload.potentialN1&&e.payload.potentialN1.length>0&&a.jsx(ae,{count:e.payload.potentialN1.length,onClick:m})]})},{key:"resolvers",header:"Resolvers",width:"90px",align:"center",render:e=>a.jsx(c,{secondary:!0,className:"text-xs tabular-nums",children:e.payload.resolverCount??"-"})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(re,{ms:e.payload.duration})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>a.jsx(te,{tags:(e.tags??[]).filter(r=>!["query","mutation","subscription"].includes(r.toLowerCase())),max:3,onTagClick:(r,H)=>{H.stopPropagation(),u("tags",r)}})},{key:"time",header:"Time",width:"180px",align:"right",render:e=>a.jsx(c,{secondary:!0,className:"text-xs whitespace-nowrap",children:I(O(e.createdAt),{addSuffix:!0})})}],[g,m,u]);return R&&i.length===0?a.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:a.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):a.jsxs("div",{children:[a.jsx(J,{title:"GraphQL",icon:f,iconColor:"text-purple-600 dark:text-purple-400",count:i.length,totalCount:l==null?void 0:l.total,clearable:{type:"graphql",label:"graphql",onCleared:x},refreshing:n,autoRefreshEnabled:A,live:B,onAutoRefreshToggle:M,filters:b,filterControls:a.jsx(K,{route:"graphql"}),onClearAllFilters:k}),a.jsxs("div",{className:"space-y-4",children:[a.jsx(z,{placeholder:"Search by operation, type, tag, or query content..."}),a.jsx(X,{count:T,onClick:q,loading:n}),a.jsx(se,{columns:G,data:i,keyExtractor:e=>e.id,onRowClick:e=>w(`/graphql/${e.id}`),rowClassName:e=>D(e.id)?"highlight-new":"",emptyMessage:"No GraphQL operations recorded yet",watcher:"graphql",error:F,onRetry:x,emptyIcon:a.jsx(f,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(Y,{hasMore:L,onClick:S,loading:n})]})]})}export{ge as default};
@@ -1 +1 @@
1
- import{j as e}from"./index-Oh_UboeF.js";import{b}from"./vendor-DBTT3jXp.js";import{p as T,f as v}from"./date-Dwgqy666.js";import{D as s,f as N}from"./DetailRow-B0S3c_eE.js";import{C as i,B}from"./types-Be5ENIEY.js";import{u as f,T as j,C as l}from"./EntryDetailPage-D_OaKS4_.js";import"./search-C3TNb54L.js";const H=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],D=["2XX","3XX","4XX","5XX","SUCCESS","ERROR","CLIENT-ERROR","REDIRECT"];function q(t){return t<1e3?`${t} ms`:`${(t/1e3).toFixed(2)} s`}function O({entry:t}){const{payload:a,createdAt:c}=t,h=a.statusCode??0,m=(t.tags??[]).filter(p=>{var u;const x=p.toUpperCase();return!H.includes(x)&&!D.includes(x)&&p.toLowerCase()!==((u=a.hostname)==null?void 0:u.toLowerCase())}),r=f(),o=f(),[y,R]=b.useState("payload"),[S,C]=b.useState("response"),n={payload:a.requestBody||{},headers:a.requestHeaders??{}},d={response:a.responseBody||{},headers:a.responseHeaders??{}},g=[{id:"payload",label:"Request Body",content:e.jsx(l,{data:n.payload,toolbarState:r.state,searchBar:r.SearchBar,maxHeight:400})},{id:"headers",label:"Request Headers",content:e.jsx(l,{data:n.headers,toolbarState:r.state,searchBar:r.SearchBar,maxHeight:400})}],E=[{id:"response",label:"Response Body",content:e.jsx(l,{data:d.response,toolbarState:o.state,searchBar:o.SearchBar,maxHeight:400})},{id:"headers",label:"Response Headers",content:e.jsx(l,{data:d.headers,toolbarState:o.state,searchBar:o.SearchBar,maxHeight:400})}];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"HTTP Client Request Details"})}),e.jsx("div",{className:"p-4",children:e.jsxs("dl",{className:"*:not-first:border-y-0",children:[e.jsx(s,{label:"Time",value:e.jsxs("span",{children:[N(T(c),"MMMM do yyyy, h:mm:ss a")," ",e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",v(T(c),{addSuffix:!0}),")"]})]})}),e.jsx(s,{label:"Method",value:e.jsx(i,{listType:"http-client",filterType:"methods",filterValue:a.method,className:"font-mono font-medium",children:a.method})}),e.jsx(s,{label:"URL",value:e.jsx("span",{className:"font-mono text-sm break-all",children:a.url})}),a.hostname&&e.jsx(s,{label:"Hostname",value:e.jsx(i,{listType:"http-client",filterType:"hostnames",filterValue:a.hostname,className:"font-mono",children:a.hostname})}),a.path&&e.jsx(s,{label:"Path",value:e.jsx("span",{className:"font-mono text-sm",children:a.path})}),e.jsx(s,{label:"Status Code",value:e.jsx(i,{listType:"http-client",filterType:"statuses",filterValue:a.statusCode?String(a.statusCode):"ERR",children:h>0?h:"ERR"})}),e.jsx(s,{label:"Duration",value:e.jsx("span",{className:a.duration>1e3?"text-yellow-600 dark:text-yellow-400 font-medium":"",children:q(a.duration)})}),a.error&&e.jsx(s,{label:"Error",value:e.jsx("span",{className:"text-red-600 dark:text-red-400 font-medium",children:a.error})}),m.length>0&&e.jsx(s,{label:"Tags",value:e.jsx(B,{items:m,listType:"http-client",maxItems:99})})]})})]}),e.jsx(j,{tabs:g,defaultTab:"payload",hashKey:"req",headerRight:e.jsx(r.Toolbar,{data:n[y]}),onTabChange:R}),e.jsx(j,{tabs:E,defaultTab:"response",hashKey:"res",headerRight:e.jsx(o.Toolbar,{data:d[S]}),onTabChange:C})]})}export{O as default};
1
+ import{j as e}from"./index-ZBhBsEE-.js";import{b}from"./vendor-DBTT3jXp.js";import{p as T,f as v}from"./date-Dwgqy666.js";import{D as s,f as N}from"./DetailRow-8MgXx8DK.js";import{C as i,B}from"./types-DqgiyrZ3.js";import{u as f,T as j,C as l}from"./EntryDetailPage-HykUOnNH.js";import"./search-DEpjS1hS.js";const H=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],D=["2XX","3XX","4XX","5XX","SUCCESS","ERROR","CLIENT-ERROR","REDIRECT"];function q(t){return t<1e3?`${t} ms`:`${(t/1e3).toFixed(2)} s`}function O({entry:t}){const{payload:a,createdAt:c}=t,h=a.statusCode??0,m=(t.tags??[]).filter(p=>{var u;const x=p.toUpperCase();return!H.includes(x)&&!D.includes(x)&&p.toLowerCase()!==((u=a.hostname)==null?void 0:u.toLowerCase())}),r=f(),o=f(),[y,R]=b.useState("payload"),[S,C]=b.useState("response"),n={payload:a.requestBody||{},headers:a.requestHeaders??{}},d={response:a.responseBody||{},headers:a.responseHeaders??{}},g=[{id:"payload",label:"Request Body",content:e.jsx(l,{data:n.payload,toolbarState:r.state,searchBar:r.SearchBar,maxHeight:400})},{id:"headers",label:"Request Headers",content:e.jsx(l,{data:n.headers,toolbarState:r.state,searchBar:r.SearchBar,maxHeight:400})}],E=[{id:"response",label:"Response Body",content:e.jsx(l,{data:d.response,toolbarState:o.state,searchBar:o.SearchBar,maxHeight:400})},{id:"headers",label:"Response Headers",content:e.jsx(l,{data:d.headers,toolbarState:o.state,searchBar:o.SearchBar,maxHeight:400})}];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"HTTP Client Request Details"})}),e.jsx("div",{className:"p-4",children:e.jsxs("dl",{className:"*:not-first:border-y-0",children:[e.jsx(s,{label:"Time",value:e.jsxs("span",{children:[N(T(c),"MMMM do yyyy, h:mm:ss a")," ",e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",v(T(c),{addSuffix:!0}),")"]})]})}),e.jsx(s,{label:"Method",value:e.jsx(i,{listType:"http-client",filterType:"methods",filterValue:a.method,className:"font-mono font-medium",children:a.method})}),e.jsx(s,{label:"URL",value:e.jsx("span",{className:"font-mono text-sm break-all",children:a.url})}),a.hostname&&e.jsx(s,{label:"Hostname",value:e.jsx(i,{listType:"http-client",filterType:"hostnames",filterValue:a.hostname,className:"font-mono",children:a.hostname})}),a.path&&e.jsx(s,{label:"Path",value:e.jsx("span",{className:"font-mono text-sm",children:a.path})}),e.jsx(s,{label:"Status Code",value:e.jsx(i,{listType:"http-client",filterType:"statuses",filterValue:a.statusCode?String(a.statusCode):"ERR",children:h>0?h:"ERR"})}),e.jsx(s,{label:"Duration",value:e.jsx("span",{className:a.duration>1e3?"text-yellow-600 dark:text-yellow-400 font-medium":"",children:q(a.duration)})}),a.error&&e.jsx(s,{label:"Error",value:e.jsx("span",{className:"text-red-600 dark:text-red-400 font-medium",children:a.error})}),m.length>0&&e.jsx(s,{label:"Tags",value:e.jsx(B,{items:m,listType:"http-client",maxItems:99})})]})})]}),e.jsx(j,{tabs:g,defaultTab:"payload",hashKey:"req",headerRight:e.jsx(r.Toolbar,{data:n[y]}),onTabChange:R}),e.jsx(j,{tabs:E,defaultTab:"response",hashKey:"res",headerRight:e.jsx(o.Toolbar,{data:d[S]}),onTabChange:C})]})}export{O as default};
@@ -1 +1 @@
1
- import{j as t,e as h}from"./index-Oh_UboeF.js";import{e as F,b as H}from"./vendor-DBTT3jXp.js";import{f as M,p as D}from"./date-Dwgqy666.js";import{u as A,a as B,P as L,R as S,N as W,L as q}from"./PageHeader-Bi85xmzF.js";import{u as G,j as I,C as l}from"./types-Be5ENIEY.js";import{T as d,D as $,b as z}from"./DataTable-B_TIjhVT.js";import"./timer-DIZVbXrL.js";function Y(){const u=F(),{addFilter:r,clearAll:p,serverFilters:m,headerFilters:x}=G("http-client"),{rangeFilters:g,windowMinutes:y}=A(),{entries:f,loading:C,refreshing:s,error:j,refresh:c,newEntriesCount:k,hasMore:w,loadMore:N,loadNew:b,autoRefreshEnabled:R,live:E,setAutoRefresh:P,meta:o,isHighlighted:T}=B({type:"http-client",limit:50,filters:{...m,...g},windowMinutes:y}),n=f.filter(e=>I(e)),v=H.useMemo(()=>[{key:"method",header:"Method",width:"90px",render:e=>t.jsx(l,{onClick:a=>{a.stopPropagation(),r("methods",e.payload.method)},className:"font-mono",children:e.payload.method})},{key:"status",header:"Status",width:"80px",render:e=>{const a=e.payload.statusCode??0;return t.jsx(l,{onClick:i=>{i.stopPropagation(),r("statuses",a>0?String(a):"ERR")},children:a>0?a:"ERR"})}},{key:"hostname",header:"Host",width:"180px",render:e=>{const a=e.payload.hostname;return a?t.jsx(l,{onClick:i=>{i.stopPropagation(),r("hostnames",a)},className:"font-mono",children:a}):t.jsx(d,{secondary:!0,children:"-"})}},{key:"path",header:"Path",minWidth:"200px",render:e=>t.jsx(d,{mono:!0,truncate:!0,maxWidth:"300px",children:e.payload.path||e.payload.url})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx($,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(d,{secondary:!0,className:"text-xs",children:M(D(e.createdAt),{addSuffix:!0})})}],[r]);return C&&n.length===0?t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):t.jsxs("div",{children:[t.jsx(L,{title:"HTTP Client",icon:h,iconColor:"text-cyan-600 dark:text-cyan-400",count:n.length,totalCount:o==null?void 0:o.total,clearable:{type:"http-client",label:"http client",onCleared:c},refreshing:s,autoRefreshEnabled:R,live:E,onAutoRefreshToggle:P,filters:x,filterControls:t.jsx(S,{route:"http-client"}),onClearAllFilters:p}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(W,{count:k,onClick:b,loading:s}),t.jsx(z,{columns:v,data:n,keyExtractor:e=>e.id,onRowClick:e=>u(`/http-client/${e.id}`),rowClassName:e=>T(e.id)?"highlight-new":"",emptyMessage:"No outgoing HTTP requests recorded yet",error:j,onRetry:c,emptyIcon:t.jsx(h,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(q,{hasMore:w,onClick:N,loading:s})]})]})}export{Y as default};
1
+ import{j as t,e as h}from"./index-ZBhBsEE-.js";import{e as F,b as H}from"./vendor-DBTT3jXp.js";import{f as M,p as D}from"./date-Dwgqy666.js";import{u as A,a as B,P as L,R as S,N as W,L as q}from"./PageHeader-C3xvY2Ig.js";import{u as G,j as I,C as l}from"./types-DqgiyrZ3.js";import{T as d,D as $,b as z}from"./DataTable-DXp-7bHh.js";import"./timer-chx4YN2F.js";function Y(){const p=F(),{addFilter:r,clearAll:u,serverFilters:m,headerFilters:x}=G("http-client"),{rangeFilters:g,windowMinutes:y}=A(),{entries:f,loading:C,refreshing:s,error:j,refresh:c,newEntriesCount:w,hasMore:k,loadMore:N,loadNew:b,autoRefreshEnabled:R,live:E,setAutoRefresh:P,meta:o,isHighlighted:T}=B({type:"http-client",limit:50,filters:{...m,...g},windowMinutes:y}),n=f.filter(e=>I(e)),v=H.useMemo(()=>[{key:"method",header:"Method",width:"90px",render:e=>t.jsx(l,{onClick:a=>{a.stopPropagation(),r("methods",e.payload.method)},className:"font-mono",children:e.payload.method})},{key:"status",header:"Status",width:"80px",render:e=>{const a=e.payload.statusCode??0;return t.jsx(l,{onClick:i=>{i.stopPropagation(),r("statuses",a>0?String(a):"ERR")},children:a>0?a:"ERR"})}},{key:"hostname",header:"Host",width:"180px",render:e=>{const a=e.payload.hostname;return a?t.jsx(l,{onClick:i=>{i.stopPropagation(),r("hostnames",a)},className:"font-mono",children:a}):t.jsx(d,{secondary:!0,children:"-"})}},{key:"path",header:"Path",minWidth:"200px",render:e=>t.jsx(d,{mono:!0,truncate:!0,maxWidth:"300px",children:e.payload.path||e.payload.url})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx($,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(d,{secondary:!0,className:"text-xs",children:M(D(e.createdAt),{addSuffix:!0})})}],[r]);return C&&n.length===0?t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):t.jsxs("div",{children:[t.jsx(L,{title:"HTTP Client",icon:h,iconColor:"text-cyan-600 dark:text-cyan-400",count:n.length,totalCount:o==null?void 0:o.total,clearable:{type:"http-client",label:"http client",onCleared:c},refreshing:s,autoRefreshEnabled:R,live:E,onAutoRefreshToggle:P,filters:x,filterControls:t.jsx(S,{route:"http-client"}),onClearAllFilters:u}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(W,{count:w,onClick:b,loading:s}),t.jsx(z,{columns:v,data:n,keyExtractor:e=>e.id,onRowClick:e=>p(`/http-client/${e.id}`),rowClassName:e=>T(e.id)?"highlight-new":"",emptyMessage:"No outgoing HTTP requests recorded yet",watcher:"http-client",error:j,onRetry:c,emptyIcon:t.jsx(h,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(q,{hasMore:k,onClick:N,loading:s})]})]})}export{Y as default};
@@ -1,4 +1,4 @@
1
- import{c as k,C as h,l as j,j as e,B as n}from"./index-Oh_UboeF.js";import{b as w}from"./vendor-DBTT3jXp.js";import{p as m,f as C}from"./date-Dwgqy666.js";import{D as s,f as T}from"./DetailRow-B0S3c_eE.js";import{C as i}from"./types-Be5ENIEY.js";import{u as b,C as p,T as D}from"./EntryDetailPage-D_OaKS4_.js";import{C as S}from"./CopyButton-XYdI3-sW.js";import{C as f}from"./circle-alert-DVIWjKkL.js";import{C as B}from"./circle-check-big-DgeP_jno.js";import"./search-C3TNb54L.js";/**
1
+ import{c as k,C as h,l as j,j as e,B as n}from"./index-ZBhBsEE-.js";import{b as w}from"./vendor-DBTT3jXp.js";import{p as m,f as C}from"./date-Dwgqy666.js";import{D as s,f as T}from"./DetailRow-8MgXx8DK.js";import{C as i}from"./types-DqgiyrZ3.js";import{u as b,C as p,T as D}from"./EntryDetailPage-HykUOnNH.js";import{C as S}from"./CopyButton-CLJDLZpF.js";import{C as f}from"./circle-alert-BAv3_SCD.js";import{C as B}from"./circle-check-big-Bd3maByp.js";import"./search-DEpjS1hS.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{j as t,B as n}from"./index-Oh_UboeF.js";import{e as R,b as v}from"./vendor-DBTT3jXp.js";import{f as F,p as A}from"./date-Dwgqy666.js";import{u as D,a as M,P as B,R as J,N as P,L as q}from"./PageHeader-Bi85xmzF.js";import{u as L,e as H,C as o}from"./types-Be5ENIEY.js";import{T as i,D as S,b as I}from"./DataTable-B_TIjhVT.js";import"./timer-DIZVbXrL.js";function U(){const d=R(),{clearAll:u,serverFilters:c,headerFilters:h}=L("jobs"),{rangeFilters:m,windowMinutes:p}=D(),{entries:x,loading:y,refreshing:s,error:j,refresh:l,newEntriesCount:f,hasMore:g,loadMore:b,loadNew:w,autoRefreshEnabled:C,live:k,setAutoRefresh:N,meta:r,isHighlighted:T}=M({type:"job",limit:50,filters:{...c,...m},windowMinutes:p}),a=x.filter(e=>H(e)),E=v.useMemo(()=>[{key:"job",header:"Job",minWidth:"200px",render:e=>t.jsx(o,{listType:"jobs",filterType:"names",className:"font-mono",children:e.payload.name})},{key:"queue",header:"Queue",width:"120px",render:e=>t.jsx(o,{listType:"jobs",filterType:"queues",children:e.payload.queue})},{key:"status",header:"Status",width:"100px",render:e=>t.jsx(o,{listType:"jobs",filterType:"statuses",children:e.payload.status})},{key:"attempts",header:"Attempts",width:"80px",align:"center",render:e=>t.jsx(i,{secondary:!0,children:e.payload.attempts})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>e.payload.duration?t.jsx(S,{ms:e.payload.duration}):t.jsx(i,{secondary:!0,children:"—"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(i,{secondary:!0,className:"text-xs",children:F(A(e.createdAt),{addSuffix:!0})})}],[]);return y&&a.length===0?t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):t.jsxs("div",{children:[t.jsx(B,{title:"Jobs",icon:n,iconColor:"text-yellow-600 dark:text-yellow-400",count:a.length,totalCount:r==null?void 0:r.total,clearable:{type:"job",label:"jobs",onCleared:l},refreshing:s,autoRefreshEnabled:C,live:k,onAutoRefreshToggle:N,filters:h,filterControls:t.jsx(J,{route:"jobs"}),onClearAllFilters:u}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(P,{count:f,onClick:w,loading:s}),t.jsx(I,{columns:E,data:a,keyExtractor:e=>e.id,onRowClick:e=>d(`/jobs/${e.id}`),rowClassName:e=>T(e.id)?"highlight-new":"",emptyMessage:"No jobs recorded yet",error:j,onRetry:l,emptyIcon:t.jsx(n,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(q,{hasMore:g,onClick:b,loading:s})]})]})}export{U as default};
1
+ import{j as t,B as n}from"./index-ZBhBsEE-.js";import{e as R,b as v}from"./vendor-DBTT3jXp.js";import{f as F,p as A}from"./date-Dwgqy666.js";import{u as D,a as M,P as B,R as J,N as P,L as q}from"./PageHeader-C3xvY2Ig.js";import{u as L,e as H,C as o}from"./types-DqgiyrZ3.js";import{T as i,D as S,b as I}from"./DataTable-DXp-7bHh.js";import"./timer-chx4YN2F.js";function U(){const d=R(),{clearAll:u,serverFilters:c,headerFilters:h}=L("jobs"),{rangeFilters:m,windowMinutes:p}=D(),{entries:x,loading:y,refreshing:s,error:j,refresh:l,newEntriesCount:f,hasMore:g,loadMore:b,loadNew:w,autoRefreshEnabled:C,live:k,setAutoRefresh:N,meta:r,isHighlighted:T}=M({type:"job",limit:50,filters:{...c,...m},windowMinutes:p}),a=x.filter(e=>H(e)),E=v.useMemo(()=>[{key:"job",header:"Job",minWidth:"200px",render:e=>t.jsx(o,{listType:"jobs",filterType:"names",className:"font-mono",children:e.payload.name})},{key:"queue",header:"Queue",width:"120px",render:e=>t.jsx(o,{listType:"jobs",filterType:"queues",children:e.payload.queue})},{key:"status",header:"Status",width:"100px",render:e=>t.jsx(o,{listType:"jobs",filterType:"statuses",children:e.payload.status})},{key:"attempts",header:"Attempts",width:"80px",align:"center",render:e=>t.jsx(i,{secondary:!0,children:e.payload.attempts})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>e.payload.duration?t.jsx(S,{ms:e.payload.duration}):t.jsx(i,{secondary:!0,children:"—"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(i,{secondary:!0,className:"text-xs",children:F(A(e.createdAt),{addSuffix:!0})})}],[]);return y&&a.length===0?t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})}):t.jsxs("div",{children:[t.jsx(B,{title:"Jobs",icon:n,iconColor:"text-yellow-600 dark:text-yellow-400",count:a.length,totalCount:r==null?void 0:r.total,clearable:{type:"job",label:"jobs",onCleared:l},refreshing:s,autoRefreshEnabled:C,live:k,onAutoRefreshToggle:N,filters:h,filterControls:t.jsx(J,{route:"jobs"}),onClearAllFilters:u}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(P,{count:f,onClick:w,loading:s}),t.jsx(I,{columns:E,data:a,keyExtractor:e=>e.id,onRowClick:e=>d(`/jobs/${e.id}`),rowClassName:e=>T(e.id)?"highlight-new":"",emptyMessage:"No jobs recorded yet",watcher:"job",error:j,onRetry:l,emptyIcon:t.jsx(n,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(q,{hasMore:g,onClick:b,loading:s})]})]})}export{U as default};
@@ -1 +1 @@
1
- import{j as a}from"./index-Oh_UboeF.js";import{p as d,f as x}from"./date-Dwgqy666.js";import{D as r,f as m}from"./DetailRow-B0S3c_eE.js";import{C as o}from"./types-Be5ENIEY.js";import{u as b,C as h,T as g}from"./EntryDetailPage-D_OaKS4_.js";import"./vendor-DBTT3jXp.js";import"./search-C3TNb54L.js";const i={verbose:{variant:"default",label:"VERBOSE"},debug:{variant:"info",label:"DEBUG"},log:{variant:"success",label:"LOG"},warn:{variant:"warning",label:"WARNING"},error:{variant:"error",label:"ERROR"}};function w({entry:c}){const{payload:e,createdAt:s}=c,n=i[e.level]||i.log,t=b(),l=e.metadata&&Object.keys(e.metadata).length>0?[{id:"metadata",label:"Metadata",content:a.jsx(h,{data:e.metadata,toolbarState:t.state,searchBar:t.SearchBar,maxHeight:400})}]:[];return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:a.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Log Details"})}),a.jsx("div",{className:"p-4",children:a.jsxs("dl",{className:"*:not-first:border-y-0",children:[a.jsx(r,{label:"Time",value:a.jsxs("span",{children:[m(d(s),"MMMM do yyyy, h:mm:ss a")," ",a.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",x(d(s),{addSuffix:!0}),")"]})]})}),a.jsx(r,{label:"Level",value:a.jsx(o,{listType:"logs",filterType:"levels",filterValue:e.level,children:n.label})}),e.context&&a.jsx(r,{label:"Context",value:a.jsx(o,{listType:"logs",filterType:"contexts",filterValue:e.context,className:"font-mono",children:e.context})})]})})]}),a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:a.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Message"})}),a.jsx("div",{className:"p-4",children:a.jsx("p",{className:`text-sm ${e.level==="error"?"text-red-600 dark:text-red-400":e.level==="warn"?"text-yellow-600 dark:text-yellow-400":"text-gray-900 dark:text-white"}`,children:e.message})})]}),l.length>0&&a.jsx(g,{tabs:l,defaultTab:"metadata",headerRight:a.jsx(t.Toolbar,{data:e.metadata})}),e.stack&&a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:a.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Stack Trace"})}),a.jsx("div",{className:"p-4 bg-gray-900 dark:bg-gray-950 overflow-x-auto",children:a.jsx("pre",{className:"text-sm text-red-400 font-mono whitespace-pre-wrap",children:e.stack})})]})]})}export{w as default};
1
+ import{j as a}from"./index-ZBhBsEE-.js";import{p as d,f as x}from"./date-Dwgqy666.js";import{D as r,f as m}from"./DetailRow-8MgXx8DK.js";import{C as o}from"./types-DqgiyrZ3.js";import{u as b,C as h,T as g}from"./EntryDetailPage-HykUOnNH.js";import"./vendor-DBTT3jXp.js";import"./search-DEpjS1hS.js";const i={verbose:{variant:"default",label:"VERBOSE"},debug:{variant:"info",label:"DEBUG"},log:{variant:"success",label:"LOG"},warn:{variant:"warning",label:"WARNING"},error:{variant:"error",label:"ERROR"}};function w({entry:c}){const{payload:e,createdAt:s}=c,n=i[e.level]||i.log,t=b(),l=e.metadata&&Object.keys(e.metadata).length>0?[{id:"metadata",label:"Metadata",content:a.jsx(h,{data:e.metadata,toolbarState:t.state,searchBar:t.SearchBar,maxHeight:400})}]:[];return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:a.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Log Details"})}),a.jsx("div",{className:"p-4",children:a.jsxs("dl",{className:"*:not-first:border-y-0",children:[a.jsx(r,{label:"Time",value:a.jsxs("span",{children:[m(d(s),"MMMM do yyyy, h:mm:ss a")," ",a.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",x(d(s),{addSuffix:!0}),")"]})]})}),a.jsx(r,{label:"Level",value:a.jsx(o,{listType:"logs",filterType:"levels",filterValue:e.level,children:n.label})}),e.context&&a.jsx(r,{label:"Context",value:a.jsx(o,{listType:"logs",filterType:"contexts",filterValue:e.context,className:"font-mono",children:e.context})})]})})]}),a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:a.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Message"})}),a.jsx("div",{className:"p-4",children:a.jsx("p",{className:`text-sm ${e.level==="error"?"text-red-600 dark:text-red-400":e.level==="warn"?"text-yellow-600 dark:text-yellow-400":"text-gray-900 dark:text-white"}`,children:e.message})})]}),l.length>0&&a.jsx(g,{tabs:l,defaultTab:"metadata",headerRight:a.jsx(t.Toolbar,{data:e.metadata})}),e.stack&&a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:a.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Stack Trace"})}),a.jsx("div",{className:"p-4 bg-gray-900 dark:bg-gray-950 overflow-x-auto",children:a.jsx("pre",{className:"text-sm text-red-400 font-mono whitespace-pre-wrap",children:e.stack})})]})]})}export{w as default};