nestlens 0.8.3 → 0.8.4

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 (469) hide show
  1. package/dist/api/api.controller.d.ts +0 -1
  2. package/dist/api/api.controller.js +0 -1
  3. package/dist/api/api.guard.d.ts +0 -1
  4. package/dist/api/api.guard.js +0 -1
  5. package/dist/api/constants/error-codes.d.ts +0 -1
  6. package/dist/api/constants/error-codes.js +0 -1
  7. package/dist/api/constants/index.d.ts +0 -1
  8. package/dist/api/constants/index.js +0 -1
  9. package/dist/api/dashboard.controller.d.ts +0 -1
  10. package/dist/api/dashboard.controller.js +0 -1
  11. package/dist/api/dto/api-response.dto.d.ts +0 -1
  12. package/dist/api/dto/api-response.dto.js +0 -1
  13. package/dist/api/dto/cursor-query.dto.d.ts +0 -1
  14. package/dist/api/dto/cursor-query.dto.js +0 -1
  15. package/dist/api/dto/filters/batch-filters.dto.d.ts +0 -1
  16. package/dist/api/dto/filters/batch-filters.dto.js +0 -1
  17. package/dist/api/dto/filters/cache-filters.dto.d.ts +0 -1
  18. package/dist/api/dto/filters/cache-filters.dto.js +0 -1
  19. package/dist/api/dto/filters/command-filters.dto.d.ts +0 -1
  20. package/dist/api/dto/filters/command-filters.dto.js +0 -1
  21. package/dist/api/dto/filters/common-filters.dto.d.ts +0 -1
  22. package/dist/api/dto/filters/common-filters.dto.js +0 -1
  23. package/dist/api/dto/filters/dump-filters.dto.d.ts +0 -1
  24. package/dist/api/dto/filters/dump-filters.dto.js +0 -1
  25. package/dist/api/dto/filters/event-filters.dto.d.ts +0 -1
  26. package/dist/api/dto/filters/event-filters.dto.js +0 -1
  27. package/dist/api/dto/filters/exception-filters.dto.d.ts +0 -1
  28. package/dist/api/dto/filters/exception-filters.dto.js +0 -1
  29. package/dist/api/dto/filters/gate-filters.dto.d.ts +0 -1
  30. package/dist/api/dto/filters/gate-filters.dto.js +0 -1
  31. package/dist/api/dto/filters/graphql-filters.dto.d.ts +0 -1
  32. package/dist/api/dto/filters/graphql-filters.dto.js +0 -1
  33. package/dist/api/dto/filters/http-client-filters.dto.d.ts +0 -1
  34. package/dist/api/dto/filters/http-client-filters.dto.js +0 -1
  35. package/dist/api/dto/filters/index.d.ts +0 -1
  36. package/dist/api/dto/filters/index.js +0 -1
  37. package/dist/api/dto/filters/job-filters.dto.d.ts +0 -1
  38. package/dist/api/dto/filters/job-filters.dto.js +0 -1
  39. package/dist/api/dto/filters/log-filters.dto.d.ts +0 -1
  40. package/dist/api/dto/filters/log-filters.dto.js +0 -1
  41. package/dist/api/dto/filters/mail-filters.dto.d.ts +0 -1
  42. package/dist/api/dto/filters/mail-filters.dto.js +0 -1
  43. package/dist/api/dto/filters/model-filters.dto.d.ts +0 -1
  44. package/dist/api/dto/filters/model-filters.dto.js +0 -1
  45. package/dist/api/dto/filters/notification-filters.dto.d.ts +0 -1
  46. package/dist/api/dto/filters/notification-filters.dto.js +0 -1
  47. package/dist/api/dto/filters/query-filters.dto.d.ts +0 -1
  48. package/dist/api/dto/filters/query-filters.dto.js +0 -1
  49. package/dist/api/dto/filters/redis-filters.dto.d.ts +0 -1
  50. package/dist/api/dto/filters/redis-filters.dto.js +0 -1
  51. package/dist/api/dto/filters/request-filters.dto.d.ts +0 -1
  52. package/dist/api/dto/filters/request-filters.dto.js +0 -1
  53. package/dist/api/dto/filters/schedule-filters.dto.d.ts +0 -1
  54. package/dist/api/dto/filters/schedule-filters.dto.js +0 -1
  55. package/dist/api/dto/filters/view-filters.dto.d.ts +0 -1
  56. package/dist/api/dto/filters/view-filters.dto.js +0 -1
  57. package/dist/api/dto/index.d.ts +0 -1
  58. package/dist/api/dto/index.js +0 -1
  59. package/dist/api/dto/pagination.dto.d.ts +0 -1
  60. package/dist/api/dto/pagination.dto.js +0 -1
  61. package/dist/api/dto/transformers/index.d.ts +0 -1
  62. package/dist/api/dto/transformers/index.js +0 -1
  63. package/dist/api/dto/transformers/query-transformers.d.ts +0 -1
  64. package/dist/api/dto/transformers/query-transformers.js +0 -1
  65. package/dist/api/dto/transformers/query-validators.d.ts +0 -1
  66. package/dist/api/dto/transformers/query-validators.js +0 -1
  67. package/dist/api/exceptions/index.d.ts +0 -1
  68. package/dist/api/exceptions/index.js +0 -1
  69. package/dist/api/exceptions/nestlens-api.exception.d.ts +0 -1
  70. package/dist/api/exceptions/nestlens-api.exception.js +0 -1
  71. package/dist/api/filters/api-exception.filter.d.ts +0 -1
  72. package/dist/api/filters/api-exception.filter.js +0 -1
  73. package/dist/api/filters/index.d.ts +0 -1
  74. package/dist/api/filters/index.js +0 -1
  75. package/dist/api/index.d.ts +0 -1
  76. package/dist/api/index.js +0 -1
  77. package/dist/api/interceptors/api-response.interceptor.d.ts +0 -1
  78. package/dist/api/interceptors/api-response.interceptor.js +0 -1
  79. package/dist/api/interceptors/index.d.ts +0 -1
  80. package/dist/api/interceptors/index.js +0 -1
  81. package/dist/api/pipes/index.d.ts +0 -1
  82. package/dist/api/pipes/index.js +0 -1
  83. package/dist/api/pipes/nestlens-validation.pipe.d.ts +0 -1
  84. package/dist/api/pipes/nestlens-validation.pipe.js +0 -1
  85. package/dist/api/route-path.d.ts +0 -1
  86. package/dist/api/route-path.js +0 -1
  87. package/dist/api/stream.controller.d.ts +0 -1
  88. package/dist/api/stream.controller.js +0 -1
  89. package/dist/api/tag.controller.d.ts +0 -1
  90. package/dist/api/tag.controller.js +0 -1
  91. package/dist/core/alerting.service.d.ts +0 -1
  92. package/dist/core/alerting.service.js +0 -1
  93. package/dist/core/collector.service.d.ts +0 -1
  94. package/dist/core/collector.service.js +0 -1
  95. package/dist/core/data-masker.service.d.ts +0 -1
  96. package/dist/core/data-masker.service.js +0 -1
  97. package/dist/core/family-hash.service.d.ts +0 -1
  98. package/dist/core/family-hash.service.js +0 -1
  99. package/dist/core/index.d.ts +0 -1
  100. package/dist/core/index.js +0 -1
  101. package/dist/core/input-validator.d.ts +0 -1
  102. package/dist/core/input-validator.js +0 -1
  103. package/dist/core/pruning.service.d.ts +0 -1
  104. package/dist/core/pruning.service.js +0 -1
  105. package/dist/core/storage/index.d.ts +0 -1
  106. package/dist/core/storage/index.js +0 -1
  107. package/dist/core/storage/memory.storage.d.ts +0 -1
  108. package/dist/core/storage/memory.storage.js +0 -1
  109. package/dist/core/storage/redis.storage.d.ts +0 -1
  110. package/dist/core/storage/redis.storage.js +0 -1
  111. package/dist/core/storage/sqlite.storage.d.ts +0 -1
  112. package/dist/core/storage/sqlite.storage.js +0 -1
  113. package/dist/core/storage/storage.factory.d.ts +0 -1
  114. package/dist/core/storage/storage.factory.js +0 -1
  115. package/dist/core/storage/storage.interface.d.ts +0 -1
  116. package/dist/core/storage/storage.interface.js +0 -1
  117. package/dist/core/tag.service.d.ts +0 -1
  118. package/dist/core/tag.service.js +0 -1
  119. package/dist/dashboard/public/assets/{BatchesPage-CugoZztS.js → BatchesPage-Be2pyBW1.js} +1 -1
  120. package/dist/dashboard/public/assets/{CachePage-BDYXsyI9.js → CachePage-D7Kbnbd0.js} +1 -1
  121. package/dist/dashboard/public/assets/{ClickableBadge-WXTZ8mFZ.js → ClickableBadge-BMv7BT5d.js} +1 -1
  122. package/dist/dashboard/public/assets/{CommandsPage-D6DtWReX.js → CommandsPage-Dka-rd2n.js} +1 -1
  123. package/dist/dashboard/public/assets/{DashboardPage-B0T6pIDE.js → DashboardPage-D_boxQLL.js} +1 -1
  124. package/dist/dashboard/public/assets/{DumpsPage-Dc6GbhFt.js → DumpsPage-CBdtECHX.js} +1 -1
  125. package/dist/dashboard/public/assets/{EntryDetailPage-CXBlrmgt.js → EntryDetailPage-bchF1CyH.js} +1 -1
  126. package/dist/dashboard/public/assets/{EntrySearchInput-Dn_YW8ky.js → EntrySearchInput-B0inpTDa.js} +1 -1
  127. package/dist/dashboard/public/assets/{EventsPage-CFCZvgVn.js → EventsPage-DyWBq1Uz.js} +1 -1
  128. package/dist/dashboard/public/assets/{ExceptionsPage-CSwfuIx6.js → ExceptionsPage-DUAve13R.js} +1 -1
  129. package/dist/dashboard/public/assets/{GatesPage-1c_m1RG6.js → GatesPage-grMG9-Pd.js} +1 -1
  130. package/dist/dashboard/public/assets/{GraphQLPage-Ca4Bp7eW.js → GraphQLPage-DMiSp1JA.js} +1 -1
  131. package/dist/dashboard/public/assets/{HttpClientPage-B6EX2Cn6.js → HttpClientPage-9bBt0DkK.js} +1 -1
  132. package/dist/dashboard/public/assets/{JobsPage-BqDREe3I.js → JobsPage-Cp5LjuZV.js} +1 -1
  133. package/dist/dashboard/public/assets/{LogsPage-BJTqqpaI.js → LogsPage-CCQCPtf2.js} +1 -1
  134. package/dist/dashboard/public/assets/{MailPage-CMBFq4vj.js → MailPage-F1fRQOqV.js} +1 -1
  135. package/dist/dashboard/public/assets/{ModelsPage-CxrhoZib.js → ModelsPage-B7KhpXXG.js} +1 -1
  136. package/dist/dashboard/public/assets/{NotificationsPage-4vopw7N9.js → NotificationsPage-CkMMZzIi.js} +1 -1
  137. package/dist/dashboard/public/assets/{PageHeader-C3fEDhoW.js → PageHeader-DX-OMwaI.js} +1 -1
  138. package/dist/dashboard/public/assets/{QueriesPage-8dFsmtbC.js → QueriesPage-DWPD6H4n.js} +1 -1
  139. package/dist/dashboard/public/assets/{RedisPage-CUm_y-o2.js → RedisPage-D4gL25Ig.js} +1 -1
  140. package/dist/dashboard/public/assets/{RequestsPage-CL-SGIfb.js → RequestsPage-Dqymx42m.js} +1 -1
  141. package/dist/dashboard/public/assets/{SchedulePage-CiYbYKau.js → SchedulePage-BqqBFGe3.js} +1 -1
  142. package/dist/dashboard/public/assets/{ViewsPage-H2fqCqqr.js → ViewsPage-CRRuOZy9.js} +1 -1
  143. package/dist/dashboard/public/assets/{calendar-CjRWMm3M.js → calendar-Clp1lAlK.js} +1 -1
  144. package/dist/dashboard/public/assets/{circle-check-big-CDv3KUZt.js → circle-check-big-DetB5WLf.js} +1 -1
  145. package/dist/dashboard/public/assets/{eye-UnqQQk4S.js → eye-CSqFQRNH.js} +1 -1
  146. package/dist/dashboard/public/assets/{index-BzXsymsx.js → index-DbQfemEm.js} +2 -2
  147. package/dist/dashboard/public/assets/{search-CfuNgVJJ.js → search-D49Ll27y.js} +1 -1
  148. package/dist/dashboard/public/assets/{types-D_VtW7sK.js → types-CqX7bh6c.js} +1 -1
  149. package/dist/dashboard/public/assets/{zap-W3THYjyr.js → zap-kpgvBBxB.js} +1 -1
  150. package/dist/dashboard/public/index.html +1 -1
  151. package/dist/index.d.ts +0 -1
  152. package/dist/index.js +0 -1
  153. package/dist/nestlens.config.d.ts +0 -1
  154. package/dist/nestlens.config.js +0 -1
  155. package/dist/nestlens.module.d.ts +0 -1
  156. package/dist/nestlens.module.js +0 -1
  157. package/dist/types/entry.types.d.ts +0 -1
  158. package/dist/types/entry.types.js +0 -1
  159. package/dist/types/graphql.types.d.ts +0 -1
  160. package/dist/types/graphql.types.js +0 -1
  161. package/dist/types/index.d.ts +0 -1
  162. package/dist/types/index.js +0 -1
  163. package/dist/types/request.types.d.ts +0 -1
  164. package/dist/types/request.types.js +0 -1
  165. package/dist/types/tag.types.d.ts +0 -1
  166. package/dist/types/tag.types.js +0 -1
  167. package/dist/watchers/batch.watcher.d.ts +0 -1
  168. package/dist/watchers/batch.watcher.js +0 -1
  169. package/dist/watchers/cache.watcher.d.ts +0 -1
  170. package/dist/watchers/cache.watcher.js +0 -1
  171. package/dist/watchers/command.watcher.d.ts +0 -1
  172. package/dist/watchers/command.watcher.js +0 -1
  173. package/dist/watchers/dump.watcher.d.ts +0 -1
  174. package/dist/watchers/dump.watcher.js +0 -1
  175. package/dist/watchers/event.watcher.d.ts +0 -1
  176. package/dist/watchers/event.watcher.js +0 -1
  177. package/dist/watchers/exception.watcher.d.ts +0 -1
  178. package/dist/watchers/exception.watcher.js +0 -1
  179. package/dist/watchers/gate.watcher.d.ts +0 -1
  180. package/dist/watchers/gate.watcher.js +0 -1
  181. package/dist/watchers/graphql/adapters/apollo-plugin.provider.d.ts +0 -1
  182. package/dist/watchers/graphql/adapters/apollo-plugin.provider.js +0 -1
  183. package/dist/watchers/graphql/adapters/apollo.adapter.d.ts +0 -1
  184. package/dist/watchers/graphql/adapters/apollo.adapter.js +0 -1
  185. package/dist/watchers/graphql/adapters/base.adapter.d.ts +0 -1
  186. package/dist/watchers/graphql/adapters/base.adapter.js +0 -1
  187. package/dist/watchers/graphql/adapters/index.d.ts +0 -1
  188. package/dist/watchers/graphql/adapters/index.js +0 -1
  189. package/dist/watchers/graphql/adapters/mercurius-registrar.service.d.ts +0 -1
  190. package/dist/watchers/graphql/adapters/mercurius-registrar.service.js +0 -1
  191. package/dist/watchers/graphql/adapters/mercurius.adapter.d.ts +0 -1
  192. package/dist/watchers/graphql/adapters/mercurius.adapter.js +0 -1
  193. package/dist/watchers/graphql/graphql.watcher.d.ts +0 -1
  194. package/dist/watchers/graphql/graphql.watcher.js +0 -1
  195. package/dist/watchers/graphql/index.d.ts +0 -1
  196. package/dist/watchers/graphql/index.js +0 -1
  197. package/dist/watchers/graphql/subscription/connection.store.d.ts +0 -1
  198. package/dist/watchers/graphql/subscription/connection.store.js +0 -1
  199. package/dist/watchers/graphql/subscription/index.d.ts +0 -1
  200. package/dist/watchers/graphql/subscription/index.js +0 -1
  201. package/dist/watchers/graphql/subscription/subscription.tracker.d.ts +0 -1
  202. package/dist/watchers/graphql/subscription/subscription.tracker.js +0 -1
  203. package/dist/watchers/graphql/subscription/ws-gateway.d.ts +0 -1
  204. package/dist/watchers/graphql/subscription/ws-gateway.js +0 -1
  205. package/dist/watchers/graphql/types.d.ts +0 -1
  206. package/dist/watchers/graphql/types.js +0 -1
  207. package/dist/watchers/graphql/utils/depth-calculator.d.ts +0 -1
  208. package/dist/watchers/graphql/utils/depth-calculator.js +0 -1
  209. package/dist/watchers/graphql/utils/field-tracer.d.ts +0 -1
  210. package/dist/watchers/graphql/utils/field-tracer.js +0 -1
  211. package/dist/watchers/graphql/utils/index.d.ts +0 -1
  212. package/dist/watchers/graphql/utils/index.js +0 -1
  213. package/dist/watchers/graphql/utils/n1-detector.d.ts +0 -1
  214. package/dist/watchers/graphql/utils/n1-detector.js +0 -1
  215. package/dist/watchers/graphql/utils/query-parser.d.ts +0 -1
  216. package/dist/watchers/graphql/utils/query-parser.js +0 -1
  217. package/dist/watchers/graphql/utils/variable-sanitizer.d.ts +0 -1
  218. package/dist/watchers/graphql/utils/variable-sanitizer.js +0 -1
  219. package/dist/watchers/http-client.watcher.d.ts +0 -1
  220. package/dist/watchers/http-client.watcher.js +0 -1
  221. package/dist/watchers/index.d.ts +0 -1
  222. package/dist/watchers/index.js +0 -1
  223. package/dist/watchers/job.watcher.d.ts +0 -1
  224. package/dist/watchers/job.watcher.js +0 -1
  225. package/dist/watchers/log.watcher.d.ts +0 -1
  226. package/dist/watchers/log.watcher.js +0 -1
  227. package/dist/watchers/mail.watcher.d.ts +0 -1
  228. package/dist/watchers/mail.watcher.js +0 -1
  229. package/dist/watchers/model.watcher.d.ts +0 -1
  230. package/dist/watchers/model.watcher.js +0 -1
  231. package/dist/watchers/notification.watcher.d.ts +0 -1
  232. package/dist/watchers/notification.watcher.js +0 -1
  233. package/dist/watchers/query/index.d.ts +0 -1
  234. package/dist/watchers/query/index.js +0 -1
  235. package/dist/watchers/query/query.watcher.d.ts +0 -1
  236. package/dist/watchers/query/query.watcher.js +0 -1
  237. package/dist/watchers/query/typeorm-logger.d.ts +0 -1
  238. package/dist/watchers/query/typeorm-logger.js +0 -1
  239. package/dist/watchers/query/typeorm-subscriber.d.ts +0 -1
  240. package/dist/watchers/query/typeorm-subscriber.js +0 -1
  241. package/dist/watchers/query/types.d.ts +0 -1
  242. package/dist/watchers/query/types.js +0 -1
  243. package/dist/watchers/redis.watcher.d.ts +0 -1
  244. package/dist/watchers/redis.watcher.js +0 -1
  245. package/dist/watchers/request.watcher.d.ts +0 -1
  246. package/dist/watchers/request.watcher.js +0 -1
  247. package/dist/watchers/schedule.watcher.d.ts +0 -1
  248. package/dist/watchers/schedule.watcher.js +0 -1
  249. package/dist/watchers/view.watcher.d.ts +0 -1
  250. package/dist/watchers/view.watcher.js +0 -1
  251. package/package.json +2 -1
  252. package/dist/api/api.controller.d.ts.map +0 -1
  253. package/dist/api/api.controller.js.map +0 -1
  254. package/dist/api/api.guard.d.ts.map +0 -1
  255. package/dist/api/api.guard.js.map +0 -1
  256. package/dist/api/constants/error-codes.d.ts.map +0 -1
  257. package/dist/api/constants/error-codes.js.map +0 -1
  258. package/dist/api/constants/index.d.ts.map +0 -1
  259. package/dist/api/constants/index.js.map +0 -1
  260. package/dist/api/dashboard.controller.d.ts.map +0 -1
  261. package/dist/api/dashboard.controller.js.map +0 -1
  262. package/dist/api/dto/api-response.dto.d.ts.map +0 -1
  263. package/dist/api/dto/api-response.dto.js.map +0 -1
  264. package/dist/api/dto/cursor-query.dto.d.ts.map +0 -1
  265. package/dist/api/dto/cursor-query.dto.js.map +0 -1
  266. package/dist/api/dto/filters/batch-filters.dto.d.ts.map +0 -1
  267. package/dist/api/dto/filters/batch-filters.dto.js.map +0 -1
  268. package/dist/api/dto/filters/cache-filters.dto.d.ts.map +0 -1
  269. package/dist/api/dto/filters/cache-filters.dto.js.map +0 -1
  270. package/dist/api/dto/filters/command-filters.dto.d.ts.map +0 -1
  271. package/dist/api/dto/filters/command-filters.dto.js.map +0 -1
  272. package/dist/api/dto/filters/common-filters.dto.d.ts.map +0 -1
  273. package/dist/api/dto/filters/common-filters.dto.js.map +0 -1
  274. package/dist/api/dto/filters/dump-filters.dto.d.ts.map +0 -1
  275. package/dist/api/dto/filters/dump-filters.dto.js.map +0 -1
  276. package/dist/api/dto/filters/event-filters.dto.d.ts.map +0 -1
  277. package/dist/api/dto/filters/event-filters.dto.js.map +0 -1
  278. package/dist/api/dto/filters/exception-filters.dto.d.ts.map +0 -1
  279. package/dist/api/dto/filters/exception-filters.dto.js.map +0 -1
  280. package/dist/api/dto/filters/gate-filters.dto.d.ts.map +0 -1
  281. package/dist/api/dto/filters/gate-filters.dto.js.map +0 -1
  282. package/dist/api/dto/filters/graphql-filters.dto.d.ts.map +0 -1
  283. package/dist/api/dto/filters/graphql-filters.dto.js.map +0 -1
  284. package/dist/api/dto/filters/http-client-filters.dto.d.ts.map +0 -1
  285. package/dist/api/dto/filters/http-client-filters.dto.js.map +0 -1
  286. package/dist/api/dto/filters/index.d.ts.map +0 -1
  287. package/dist/api/dto/filters/index.js.map +0 -1
  288. package/dist/api/dto/filters/job-filters.dto.d.ts.map +0 -1
  289. package/dist/api/dto/filters/job-filters.dto.js.map +0 -1
  290. package/dist/api/dto/filters/log-filters.dto.d.ts.map +0 -1
  291. package/dist/api/dto/filters/log-filters.dto.js.map +0 -1
  292. package/dist/api/dto/filters/mail-filters.dto.d.ts.map +0 -1
  293. package/dist/api/dto/filters/mail-filters.dto.js.map +0 -1
  294. package/dist/api/dto/filters/model-filters.dto.d.ts.map +0 -1
  295. package/dist/api/dto/filters/model-filters.dto.js.map +0 -1
  296. package/dist/api/dto/filters/notification-filters.dto.d.ts.map +0 -1
  297. package/dist/api/dto/filters/notification-filters.dto.js.map +0 -1
  298. package/dist/api/dto/filters/query-filters.dto.d.ts.map +0 -1
  299. package/dist/api/dto/filters/query-filters.dto.js.map +0 -1
  300. package/dist/api/dto/filters/redis-filters.dto.d.ts.map +0 -1
  301. package/dist/api/dto/filters/redis-filters.dto.js.map +0 -1
  302. package/dist/api/dto/filters/request-filters.dto.d.ts.map +0 -1
  303. package/dist/api/dto/filters/request-filters.dto.js.map +0 -1
  304. package/dist/api/dto/filters/schedule-filters.dto.d.ts.map +0 -1
  305. package/dist/api/dto/filters/schedule-filters.dto.js.map +0 -1
  306. package/dist/api/dto/filters/view-filters.dto.d.ts.map +0 -1
  307. package/dist/api/dto/filters/view-filters.dto.js.map +0 -1
  308. package/dist/api/dto/index.d.ts.map +0 -1
  309. package/dist/api/dto/index.js.map +0 -1
  310. package/dist/api/dto/pagination.dto.d.ts.map +0 -1
  311. package/dist/api/dto/pagination.dto.js.map +0 -1
  312. package/dist/api/dto/transformers/index.d.ts.map +0 -1
  313. package/dist/api/dto/transformers/index.js.map +0 -1
  314. package/dist/api/dto/transformers/query-transformers.d.ts.map +0 -1
  315. package/dist/api/dto/transformers/query-transformers.js.map +0 -1
  316. package/dist/api/dto/transformers/query-validators.d.ts.map +0 -1
  317. package/dist/api/dto/transformers/query-validators.js.map +0 -1
  318. package/dist/api/exceptions/index.d.ts.map +0 -1
  319. package/dist/api/exceptions/index.js.map +0 -1
  320. package/dist/api/exceptions/nestlens-api.exception.d.ts.map +0 -1
  321. package/dist/api/exceptions/nestlens-api.exception.js.map +0 -1
  322. package/dist/api/filters/api-exception.filter.d.ts.map +0 -1
  323. package/dist/api/filters/api-exception.filter.js.map +0 -1
  324. package/dist/api/filters/index.d.ts.map +0 -1
  325. package/dist/api/filters/index.js.map +0 -1
  326. package/dist/api/index.d.ts.map +0 -1
  327. package/dist/api/index.js.map +0 -1
  328. package/dist/api/interceptors/api-response.interceptor.d.ts.map +0 -1
  329. package/dist/api/interceptors/api-response.interceptor.js.map +0 -1
  330. package/dist/api/interceptors/index.d.ts.map +0 -1
  331. package/dist/api/interceptors/index.js.map +0 -1
  332. package/dist/api/pipes/index.d.ts.map +0 -1
  333. package/dist/api/pipes/index.js.map +0 -1
  334. package/dist/api/pipes/nestlens-validation.pipe.d.ts.map +0 -1
  335. package/dist/api/pipes/nestlens-validation.pipe.js.map +0 -1
  336. package/dist/api/route-path.d.ts.map +0 -1
  337. package/dist/api/route-path.js.map +0 -1
  338. package/dist/api/stream.controller.d.ts.map +0 -1
  339. package/dist/api/stream.controller.js.map +0 -1
  340. package/dist/api/tag.controller.d.ts.map +0 -1
  341. package/dist/api/tag.controller.js.map +0 -1
  342. package/dist/core/alerting.service.d.ts.map +0 -1
  343. package/dist/core/alerting.service.js.map +0 -1
  344. package/dist/core/collector.service.d.ts.map +0 -1
  345. package/dist/core/collector.service.js.map +0 -1
  346. package/dist/core/data-masker.service.d.ts.map +0 -1
  347. package/dist/core/data-masker.service.js.map +0 -1
  348. package/dist/core/family-hash.service.d.ts.map +0 -1
  349. package/dist/core/family-hash.service.js.map +0 -1
  350. package/dist/core/index.d.ts.map +0 -1
  351. package/dist/core/index.js.map +0 -1
  352. package/dist/core/input-validator.d.ts.map +0 -1
  353. package/dist/core/input-validator.js.map +0 -1
  354. package/dist/core/pruning.service.d.ts.map +0 -1
  355. package/dist/core/pruning.service.js.map +0 -1
  356. package/dist/core/storage/index.d.ts.map +0 -1
  357. package/dist/core/storage/index.js.map +0 -1
  358. package/dist/core/storage/memory.storage.d.ts.map +0 -1
  359. package/dist/core/storage/memory.storage.js.map +0 -1
  360. package/dist/core/storage/redis.storage.d.ts.map +0 -1
  361. package/dist/core/storage/redis.storage.js.map +0 -1
  362. package/dist/core/storage/sqlite.storage.d.ts.map +0 -1
  363. package/dist/core/storage/sqlite.storage.js.map +0 -1
  364. package/dist/core/storage/storage.factory.d.ts.map +0 -1
  365. package/dist/core/storage/storage.factory.js.map +0 -1
  366. package/dist/core/storage/storage.interface.d.ts.map +0 -1
  367. package/dist/core/storage/storage.interface.js.map +0 -1
  368. package/dist/core/tag.service.d.ts.map +0 -1
  369. package/dist/core/tag.service.js.map +0 -1
  370. package/dist/index.d.ts.map +0 -1
  371. package/dist/index.js.map +0 -1
  372. package/dist/nestlens.config.d.ts.map +0 -1
  373. package/dist/nestlens.config.js.map +0 -1
  374. package/dist/nestlens.module.d.ts.map +0 -1
  375. package/dist/nestlens.module.js.map +0 -1
  376. package/dist/types/entry.types.d.ts.map +0 -1
  377. package/dist/types/entry.types.js.map +0 -1
  378. package/dist/types/graphql.types.d.ts.map +0 -1
  379. package/dist/types/graphql.types.js.map +0 -1
  380. package/dist/types/index.d.ts.map +0 -1
  381. package/dist/types/index.js.map +0 -1
  382. package/dist/types/request.types.d.ts.map +0 -1
  383. package/dist/types/request.types.js.map +0 -1
  384. package/dist/types/tag.types.d.ts.map +0 -1
  385. package/dist/types/tag.types.js.map +0 -1
  386. package/dist/watchers/batch.watcher.d.ts.map +0 -1
  387. package/dist/watchers/batch.watcher.js.map +0 -1
  388. package/dist/watchers/cache.watcher.d.ts.map +0 -1
  389. package/dist/watchers/cache.watcher.js.map +0 -1
  390. package/dist/watchers/command.watcher.d.ts.map +0 -1
  391. package/dist/watchers/command.watcher.js.map +0 -1
  392. package/dist/watchers/dump.watcher.d.ts.map +0 -1
  393. package/dist/watchers/dump.watcher.js.map +0 -1
  394. package/dist/watchers/event.watcher.d.ts.map +0 -1
  395. package/dist/watchers/event.watcher.js.map +0 -1
  396. package/dist/watchers/exception.watcher.d.ts.map +0 -1
  397. package/dist/watchers/exception.watcher.js.map +0 -1
  398. package/dist/watchers/gate.watcher.d.ts.map +0 -1
  399. package/dist/watchers/gate.watcher.js.map +0 -1
  400. package/dist/watchers/graphql/adapters/apollo-plugin.provider.d.ts.map +0 -1
  401. package/dist/watchers/graphql/adapters/apollo-plugin.provider.js.map +0 -1
  402. package/dist/watchers/graphql/adapters/apollo.adapter.d.ts.map +0 -1
  403. package/dist/watchers/graphql/adapters/apollo.adapter.js.map +0 -1
  404. package/dist/watchers/graphql/adapters/base.adapter.d.ts.map +0 -1
  405. package/dist/watchers/graphql/adapters/base.adapter.js.map +0 -1
  406. package/dist/watchers/graphql/adapters/index.d.ts.map +0 -1
  407. package/dist/watchers/graphql/adapters/index.js.map +0 -1
  408. package/dist/watchers/graphql/adapters/mercurius-registrar.service.d.ts.map +0 -1
  409. package/dist/watchers/graphql/adapters/mercurius-registrar.service.js.map +0 -1
  410. package/dist/watchers/graphql/adapters/mercurius.adapter.d.ts.map +0 -1
  411. package/dist/watchers/graphql/adapters/mercurius.adapter.js.map +0 -1
  412. package/dist/watchers/graphql/graphql.watcher.d.ts.map +0 -1
  413. package/dist/watchers/graphql/graphql.watcher.js.map +0 -1
  414. package/dist/watchers/graphql/index.d.ts.map +0 -1
  415. package/dist/watchers/graphql/index.js.map +0 -1
  416. package/dist/watchers/graphql/subscription/connection.store.d.ts.map +0 -1
  417. package/dist/watchers/graphql/subscription/connection.store.js.map +0 -1
  418. package/dist/watchers/graphql/subscription/index.d.ts.map +0 -1
  419. package/dist/watchers/graphql/subscription/index.js.map +0 -1
  420. package/dist/watchers/graphql/subscription/subscription.tracker.d.ts.map +0 -1
  421. package/dist/watchers/graphql/subscription/subscription.tracker.js.map +0 -1
  422. package/dist/watchers/graphql/subscription/ws-gateway.d.ts.map +0 -1
  423. package/dist/watchers/graphql/subscription/ws-gateway.js.map +0 -1
  424. package/dist/watchers/graphql/types.d.ts.map +0 -1
  425. package/dist/watchers/graphql/types.js.map +0 -1
  426. package/dist/watchers/graphql/utils/depth-calculator.d.ts.map +0 -1
  427. package/dist/watchers/graphql/utils/depth-calculator.js.map +0 -1
  428. package/dist/watchers/graphql/utils/field-tracer.d.ts.map +0 -1
  429. package/dist/watchers/graphql/utils/field-tracer.js.map +0 -1
  430. package/dist/watchers/graphql/utils/index.d.ts.map +0 -1
  431. package/dist/watchers/graphql/utils/index.js.map +0 -1
  432. package/dist/watchers/graphql/utils/n1-detector.d.ts.map +0 -1
  433. package/dist/watchers/graphql/utils/n1-detector.js.map +0 -1
  434. package/dist/watchers/graphql/utils/query-parser.d.ts.map +0 -1
  435. package/dist/watchers/graphql/utils/query-parser.js.map +0 -1
  436. package/dist/watchers/graphql/utils/variable-sanitizer.d.ts.map +0 -1
  437. package/dist/watchers/graphql/utils/variable-sanitizer.js.map +0 -1
  438. package/dist/watchers/http-client.watcher.d.ts.map +0 -1
  439. package/dist/watchers/http-client.watcher.js.map +0 -1
  440. package/dist/watchers/index.d.ts.map +0 -1
  441. package/dist/watchers/index.js.map +0 -1
  442. package/dist/watchers/job.watcher.d.ts.map +0 -1
  443. package/dist/watchers/job.watcher.js.map +0 -1
  444. package/dist/watchers/log.watcher.d.ts.map +0 -1
  445. package/dist/watchers/log.watcher.js.map +0 -1
  446. package/dist/watchers/mail.watcher.d.ts.map +0 -1
  447. package/dist/watchers/mail.watcher.js.map +0 -1
  448. package/dist/watchers/model.watcher.d.ts.map +0 -1
  449. package/dist/watchers/model.watcher.js.map +0 -1
  450. package/dist/watchers/notification.watcher.d.ts.map +0 -1
  451. package/dist/watchers/notification.watcher.js.map +0 -1
  452. package/dist/watchers/query/index.d.ts.map +0 -1
  453. package/dist/watchers/query/index.js.map +0 -1
  454. package/dist/watchers/query/query.watcher.d.ts.map +0 -1
  455. package/dist/watchers/query/query.watcher.js.map +0 -1
  456. package/dist/watchers/query/typeorm-logger.d.ts.map +0 -1
  457. package/dist/watchers/query/typeorm-logger.js.map +0 -1
  458. package/dist/watchers/query/typeorm-subscriber.d.ts.map +0 -1
  459. package/dist/watchers/query/typeorm-subscriber.js.map +0 -1
  460. package/dist/watchers/query/types.d.ts.map +0 -1
  461. package/dist/watchers/query/types.js.map +0 -1
  462. package/dist/watchers/redis.watcher.d.ts.map +0 -1
  463. package/dist/watchers/redis.watcher.js.map +0 -1
  464. package/dist/watchers/request.watcher.d.ts.map +0 -1
  465. package/dist/watchers/request.watcher.js.map +0 -1
  466. package/dist/watchers/schedule.watcher.d.ts.map +0 -1
  467. package/dist/watchers/schedule.watcher.js.map +0 -1
  468. package/dist/watchers/view.watcher.d.ts.map +0 -1
  469. package/dist/watchers/view.watcher.js.map +0 -1
@@ -1 +1 @@
1
- import{b as a}from"./vendor-DBTT3jXp.js";import{p as Z,m as F,z as $,q as ee,s as _,j as r,i as D,e as re,t as te,X as ae}from"./index-BzXsymsx.js";function se(){return Z("/stream")}function ne(s,t=!0){const n=a.useRef(s),[i,g]=a.useState(!1);return a.useEffect(()=>{n.current=s},[s]),a.useEffect(()=>{if(!t||typeof EventSource>"u")return;const l=new EventSource(se(),{withCredentials:!0}),x=p=>{try{n.current(JSON.parse(p.data))}catch{}};return l.addEventListener("entry",x),l.onopen=()=>g(!0),l.onerror=()=>g(!1),()=>{l.removeEventListener("entry",x),l.close(),g(!1)}},[t]),{connected:i}}function O(s){return s==null?"":typeof s!="object"?String(s):Array.isArray(s)?"["+s.map(O).join(",")+"]":"{"+Object.keys(s).sort().map(n=>`"${n}":${O(s[n])}`).join(",")+"}"}const z="nestlens-auto-refresh";function ce(){try{const s=localStorage.getItem(z);return s===null?!0:s==="true"}catch{return!0}}function ie(s){try{localStorage.setItem(z,String(s))}catch{}}function de(s={}){const{type:t,limit:n=50,autoRefresh:i,autoRefreshInterval:g=5e3,filters:l}=s,x=O(l),[p,y]=a.useState([]),[w,R]=a.useState(!0),[A,m]=a.useState(!1),[L,j]=a.useState(null),[u,N]=a.useState(null),[S,k]=a.useState(0),[d,b]=a.useState(i??ce()),o=a.useRef(null),v=a.useRef(null),H=a.useRef(!0),B=a.useRef(x),C=a.useRef(new Map),[,G]=a.useState(0),T=1e4,M=a.useCallback(async()=>{H.current?R(!0):m(!0);try{j(null);const e=await F({type:t,limit:n,filters:l});y(e.data),N(e.meta),o.current=e.meta.newestSequence,k(0),H.current=!1,B.current=x}catch(e){const c=e instanceof Error?e:new Error("Failed to fetch entries");j(c),console.error("Failed to fetch entries:",e),$.error("Failed to load entries")}finally{R(!1),m(!1)}},[t,n,x]),K=a.useCallback(async()=>{if(!(!(u!=null&&u.oldestSequence)||!u.hasMore)){m(!0);try{const e=await F({type:t,limit:n,beforeSequence:u.oldestSequence,filters:l});y(c=>[...c,...e.data]),N(e.meta)}catch(e){console.error("Failed to load more entries:",e),$.error("Failed to load more entries")}finally{m(!1)}}},[t,n,u,x]),P=a.useCallback(async()=>{if(o.current){m(!0);try{const e=await F({type:t,limit:S||n,afterSequence:o.current,filters:l});if(e.data.length>0){const c=Date.now();e.data.forEach(f=>{C.current.set(f.id,c)}),y(f=>[...e.data,...f]),o.current=e.meta.newestSequence,k(0)}}catch(e){console.error("Failed to load new entries:",e),$.error("Failed to load new entries")}finally{m(!1)}}},[t,n,S,x]),J=a.useCallback(async()=>{m(!0);try{j(null);const e=await F({type:t,limit:n,filters:l});y(e.data),N(e.meta),o.current=e.meta.newestSequence,k(0)}catch(e){const c=e instanceof Error?e:new Error("Failed to refresh entries");j(c),console.error("Failed to refresh entries:",e),$.error("Failed to refresh entries")}finally{m(!1)}},[t,n,x]),q=a.useCallback(async()=>{if(!o.current){try{(await ee(t)).data&&k(1)}catch{}return}try{const e=await _(o.current,t);k(e.data.count)}catch{}},[t]),W=a.useCallback(e=>{b(e),ie(e)},[]),X=a.useCallback(e=>{y(c=>c.map(f=>f.id===e.id?e:f))},[]);a.useEffect(()=>{M()},[M]);const Y=a.useCallback(e=>{const c=C.current.get(e);return c?Date.now()-c<T:!1},[]),U=a.useCallback(()=>{const e=Date.now();let c=!1;C.current.forEach((f,h)=>{e-f>=T&&(C.current.delete(h),c=!0)}),c&&G(f=>f+1)},[]),I=a.useCallback(async()=>{if(o.current)try{const e=await _(o.current,t);if(e.data.count>0){const c=await F({type:t,limit:e.data.count,afterSequence:o.current,filters:l});if(c.data.length>0){const f=Date.now();c.data.forEach(h=>{C.current.set(h.id,f)}),y(h=>[...c.data,...h]),o.current=c.meta.newestSequence,N(h=>h?{...h,total:h.total+c.data.length,newestSequence:c.meta.newestSequence}:c.meta)}}}catch{}},[t,x]);a.useEffect(()=>(d?v.current=setInterval(I,g):v.current=setInterval(q,g),()=>{v.current&&(clearInterval(v.current),v.current=null)}),[d,g,I,q]),a.useEffect(()=>{const e=setInterval(U,1e3);return()=>clearInterval(e)},[U]);const E=a.useRef(null),Q=a.useCallback(e=>{t&&e.type!==t||E.current||(E.current=setTimeout(()=>{E.current=null,d?I():q()},200))},[t,d,I,q]),{connected:V}=ne(Q);return a.useEffect(()=>()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),{entries:p,loading:w,refreshing:A,error:L,meta:u,newEntriesCount:S,hasMore:(u==null?void 0:u.hasMore)??!1,loadMore:K,loadNew:P,refresh:J,setAutoRefresh:W,autoRefreshEnabled:d,updateEntry:X,isHighlighted:Y,live:V}}function ue({count:s,onClick:t,loading:n}){return s===0?null:r.jsxs("button",{onClick:t,disabled:n,className:"w-full py-3 px-4 bg-primary-50 dark:bg-primary-900/20 text-primary-600 dark:text-primary-400 font-medium rounded-lg hover:bg-primary-100 dark:hover:bg-primary-900/30 transition-colors flex items-center justify-center space-x-2 disabled:opacity-50",children:[n?r.jsx(D,{className:"h-4 w-4 animate-spin"}):r.jsx(re,{className:"h-4 w-4"}),r.jsxs("span",{children:["Load ",s," new ",s===1?"entry":"entries"]})]})}function ge({hasMore:s,onClick:t,loading:n}){return s?r.jsxs("button",{onClick:t,disabled:n,className:"w-full py-3 px-4 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 font-medium rounded-lg hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors flex items-center justify-center space-x-2 disabled:opacity-50",children:[n?r.jsx(D,{className:"h-4 w-4 animate-spin"}):r.jsx(te,{className:"h-4 w-4"}),r.jsx("span",{children:"Load older entries"})]}):null}function xe({title:s,icon:t,iconColor:n="text-primary-600 dark:text-primary-400",count:i,totalCount:g,subtitle:l,loading:x,refreshing:p,onRefresh:y,autoRefreshEnabled:w,onAutoRefreshToggle:R,live:A,filters:m=[],onClearAllFilters:L,actions:j,filterControls:u}){const N=m.length>0,S=i??g,k=m.reduce((d,b)=>(d[b.category]||(d[b.category]=[]),d[b.category].push(b),d),{});return r.jsxs("div",{className:"fixed top-0 left-0 right-0 lg:left-64 z-30 bg-gray-50 dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700",children:[r.jsxs("div",{className:"h-16 px-4 lg:px-6 flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center space-x-3",children:[r.jsx("div",{className:"hidden sm:flex p-2 rounded-lg bg-gray-100 dark:bg-gray-800",children:r.jsx(t,{className:`h-5 w-5 ${n}`})}),r.jsxs("div",{className:"flex items-center space-x-3",children:[r.jsx("h1",{className:"text-xl font-bold text-gray-900 dark:text-white",children:s}),S!==void 0&&r.jsxs("span",{role:"status","aria-live":"polite",className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-300",children:[S.toLocaleString(),g!==void 0&&i!==void 0&&i!==g&&r.jsxs("span",{className:"text-gray-400 dark:text-gray-500 ml-1",children:["/ ",g.toLocaleString()]})]}),l&&r.jsx("span",{className:"hidden md:inline text-sm text-gray-500 dark:text-gray-400",children:l})]})]}),r.jsxs("div",{className:"flex items-center space-x-2",children:[j,A&&r.jsxs("span",{"data-testid":"live-indicator",className:"hidden sm:flex items-center space-x-1.5 px-2.5 py-1.5 rounded-lg text-sm font-medium bg-red-50 text-red-600 dark:bg-red-900/20 dark:text-red-400",title:"Live — entries stream in real time",children:[r.jsx("span",{className:"w-2 h-2 rounded-full bg-red-500 animate-pulse"}),r.jsx("span",{children:"Live"})]}),R&&r.jsxs("button",{onClick:()=>R(!w),className:`hidden sm:flex items-center space-x-1.5 px-3 py-1.5 rounded-lg text-sm font-medium transition-colors whitespace-nowrap ${w?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700"}`,title:w?"Auto-refresh enabled":"Auto-refresh disabled",children:[r.jsx("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${w?"bg-green-500 animate-pulse":"bg-gray-400"}`}),r.jsx("span",{children:"Auto Refresh"})]}),y&&r.jsx("button",{onClick:y,disabled:x||p,"aria-busy":p,"aria-label":p?"Refreshing...":"Refresh",className:"p-2 rounded-lg text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-700 dark:hover:text-gray-200 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:"Refresh",children:r.jsx(D,{className:`h-4 w-4 ${p?"animate-spin":""}`})})]})]}),u&&r.jsx("div",{className:"px-4 lg:px-6 py-2 border-t border-gray-100 dark:border-gray-800 bg-gray-50/50 dark:bg-gray-900/50",children:u}),N&&r.jsx("div",{className:"px-4 lg:px-6 py-2 border-t border-gray-100 dark:border-gray-800 bg-gray-50/50 dark:bg-gray-900/50",children:r.jsxs("div",{className:"flex items-center flex-wrap gap-2",children:[r.jsx("span",{className:"text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider mr-1",children:"Filters:"}),Object.entries(k).map(([d,b])=>r.jsxs("div",{className:"flex items-center space-x-1",children:[r.jsxs("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:[d,":"]}),b.map((o,v)=>r.jsxs("button",{onClick:o.onRemove,"aria-label":`Remove ${d} filter: ${o.value}`,className:"inline-flex items-center space-x-1 px-2 py-0.5 rounded-md text-xs font-medium bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-300 hover:bg-primary-200 dark:hover:bg-primary-900/50 transition-colors group uppercase",children:[r.jsx("span",{children:o.value}),r.jsx(ae,{className:"h-3 w-3 opacity-60 group-hover:opacity-100"})]},`${o.category}-${o.value}-${v}`))]},d)),L&&m.length>1&&r.jsx("button",{onClick:L,className:"ml-2 text-xs text-gray-500 dark:text-gray-400 hover:text-red-600 dark:hover:text-red-400 transition-colors",children:"Clear all"})]})})]})}function me({tabs:s,activeTab:t,onChange:n}){return r.jsx("div",{className:"flex items-center space-x-1",children:s.map(i=>r.jsxs("button",{onClick:()=>n(i.id),className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors ${t===i.id?"bg-primary-100 text-primary-700 dark:bg-primary-900/50 dark:text-primary-300":"text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800"}`,children:[i.label,i.count!==void 0&&r.jsx("span",{className:`ml-1.5 text-xs ${t===i.id?"text-primary-600 dark:text-primary-400":"text-gray-400 dark:text-gray-500"}`,children:i.count})]},i.id))})}function fe({label:s,enabled:t,onChange:n,icon:i}){return r.jsxs("button",{onClick:()=>n(!t),className:`flex items-center space-x-2 px-3 py-1.5 rounded-lg text-sm font-medium transition-colors ${t?"bg-primary-100 text-primary-700 dark:bg-primary-900/30 dark:text-primary-300":"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700"}`,children:[i&&r.jsx(i,{className:"h-4 w-4"}),r.jsx("span",{children:s})]})}export{me as F,ge as L,ue as N,xe as P,fe as T,de as u};
1
+ import{b as a}from"./vendor-DBTT3jXp.js";import{p as Z,m as F,z as $,q as ee,s as _,j as r,i as D,e as re,t as te,X as ae}from"./index-DbQfemEm.js";function se(){return Z("/stream")}function ne(s,t=!0){const n=a.useRef(s),[i,g]=a.useState(!1);return a.useEffect(()=>{n.current=s},[s]),a.useEffect(()=>{if(!t||typeof EventSource>"u")return;const l=new EventSource(se(),{withCredentials:!0}),x=p=>{try{n.current(JSON.parse(p.data))}catch{}};return l.addEventListener("entry",x),l.onopen=()=>g(!0),l.onerror=()=>g(!1),()=>{l.removeEventListener("entry",x),l.close(),g(!1)}},[t]),{connected:i}}function O(s){return s==null?"":typeof s!="object"?String(s):Array.isArray(s)?"["+s.map(O).join(",")+"]":"{"+Object.keys(s).sort().map(n=>`"${n}":${O(s[n])}`).join(",")+"}"}const z="nestlens-auto-refresh";function ce(){try{const s=localStorage.getItem(z);return s===null?!0:s==="true"}catch{return!0}}function ie(s){try{localStorage.setItem(z,String(s))}catch{}}function de(s={}){const{type:t,limit:n=50,autoRefresh:i,autoRefreshInterval:g=5e3,filters:l}=s,x=O(l),[p,y]=a.useState([]),[w,R]=a.useState(!0),[A,m]=a.useState(!1),[L,j]=a.useState(null),[u,N]=a.useState(null),[S,k]=a.useState(0),[d,b]=a.useState(i??ce()),o=a.useRef(null),v=a.useRef(null),H=a.useRef(!0),B=a.useRef(x),C=a.useRef(new Map),[,G]=a.useState(0),T=1e4,M=a.useCallback(async()=>{H.current?R(!0):m(!0);try{j(null);const e=await F({type:t,limit:n,filters:l});y(e.data),N(e.meta),o.current=e.meta.newestSequence,k(0),H.current=!1,B.current=x}catch(e){const c=e instanceof Error?e:new Error("Failed to fetch entries");j(c),console.error("Failed to fetch entries:",e),$.error("Failed to load entries")}finally{R(!1),m(!1)}},[t,n,x]),K=a.useCallback(async()=>{if(!(!(u!=null&&u.oldestSequence)||!u.hasMore)){m(!0);try{const e=await F({type:t,limit:n,beforeSequence:u.oldestSequence,filters:l});y(c=>[...c,...e.data]),N(e.meta)}catch(e){console.error("Failed to load more entries:",e),$.error("Failed to load more entries")}finally{m(!1)}}},[t,n,u,x]),P=a.useCallback(async()=>{if(o.current){m(!0);try{const e=await F({type:t,limit:S||n,afterSequence:o.current,filters:l});if(e.data.length>0){const c=Date.now();e.data.forEach(f=>{C.current.set(f.id,c)}),y(f=>[...e.data,...f]),o.current=e.meta.newestSequence,k(0)}}catch(e){console.error("Failed to load new entries:",e),$.error("Failed to load new entries")}finally{m(!1)}}},[t,n,S,x]),J=a.useCallback(async()=>{m(!0);try{j(null);const e=await F({type:t,limit:n,filters:l});y(e.data),N(e.meta),o.current=e.meta.newestSequence,k(0)}catch(e){const c=e instanceof Error?e:new Error("Failed to refresh entries");j(c),console.error("Failed to refresh entries:",e),$.error("Failed to refresh entries")}finally{m(!1)}},[t,n,x]),q=a.useCallback(async()=>{if(!o.current){try{(await ee(t)).data&&k(1)}catch{}return}try{const e=await _(o.current,t);k(e.data.count)}catch{}},[t]),W=a.useCallback(e=>{b(e),ie(e)},[]),X=a.useCallback(e=>{y(c=>c.map(f=>f.id===e.id?e:f))},[]);a.useEffect(()=>{M()},[M]);const Y=a.useCallback(e=>{const c=C.current.get(e);return c?Date.now()-c<T:!1},[]),U=a.useCallback(()=>{const e=Date.now();let c=!1;C.current.forEach((f,h)=>{e-f>=T&&(C.current.delete(h),c=!0)}),c&&G(f=>f+1)},[]),I=a.useCallback(async()=>{if(o.current)try{const e=await _(o.current,t);if(e.data.count>0){const c=await F({type:t,limit:e.data.count,afterSequence:o.current,filters:l});if(c.data.length>0){const f=Date.now();c.data.forEach(h=>{C.current.set(h.id,f)}),y(h=>[...c.data,...h]),o.current=c.meta.newestSequence,N(h=>h?{...h,total:h.total+c.data.length,newestSequence:c.meta.newestSequence}:c.meta)}}}catch{}},[t,x]);a.useEffect(()=>(d?v.current=setInterval(I,g):v.current=setInterval(q,g),()=>{v.current&&(clearInterval(v.current),v.current=null)}),[d,g,I,q]),a.useEffect(()=>{const e=setInterval(U,1e3);return()=>clearInterval(e)},[U]);const E=a.useRef(null),Q=a.useCallback(e=>{t&&e.type!==t||E.current||(E.current=setTimeout(()=>{E.current=null,d?I():q()},200))},[t,d,I,q]),{connected:V}=ne(Q);return a.useEffect(()=>()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),{entries:p,loading:w,refreshing:A,error:L,meta:u,newEntriesCount:S,hasMore:(u==null?void 0:u.hasMore)??!1,loadMore:K,loadNew:P,refresh:J,setAutoRefresh:W,autoRefreshEnabled:d,updateEntry:X,isHighlighted:Y,live:V}}function ue({count:s,onClick:t,loading:n}){return s===0?null:r.jsxs("button",{onClick:t,disabled:n,className:"w-full py-3 px-4 bg-primary-50 dark:bg-primary-900/20 text-primary-600 dark:text-primary-400 font-medium rounded-lg hover:bg-primary-100 dark:hover:bg-primary-900/30 transition-colors flex items-center justify-center space-x-2 disabled:opacity-50",children:[n?r.jsx(D,{className:"h-4 w-4 animate-spin"}):r.jsx(re,{className:"h-4 w-4"}),r.jsxs("span",{children:["Load ",s," new ",s===1?"entry":"entries"]})]})}function ge({hasMore:s,onClick:t,loading:n}){return s?r.jsxs("button",{onClick:t,disabled:n,className:"w-full py-3 px-4 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 font-medium rounded-lg hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors flex items-center justify-center space-x-2 disabled:opacity-50",children:[n?r.jsx(D,{className:"h-4 w-4 animate-spin"}):r.jsx(te,{className:"h-4 w-4"}),r.jsx("span",{children:"Load older entries"})]}):null}function xe({title:s,icon:t,iconColor:n="text-primary-600 dark:text-primary-400",count:i,totalCount:g,subtitle:l,loading:x,refreshing:p,onRefresh:y,autoRefreshEnabled:w,onAutoRefreshToggle:R,live:A,filters:m=[],onClearAllFilters:L,actions:j,filterControls:u}){const N=m.length>0,S=i??g,k=m.reduce((d,b)=>(d[b.category]||(d[b.category]=[]),d[b.category].push(b),d),{});return r.jsxs("div",{className:"fixed top-0 left-0 right-0 lg:left-64 z-30 bg-gray-50 dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700",children:[r.jsxs("div",{className:"h-16 px-4 lg:px-6 flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center space-x-3",children:[r.jsx("div",{className:"hidden sm:flex p-2 rounded-lg bg-gray-100 dark:bg-gray-800",children:r.jsx(t,{className:`h-5 w-5 ${n}`})}),r.jsxs("div",{className:"flex items-center space-x-3",children:[r.jsx("h1",{className:"text-xl font-bold text-gray-900 dark:text-white",children:s}),S!==void 0&&r.jsxs("span",{role:"status","aria-live":"polite",className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-300",children:[S.toLocaleString(),g!==void 0&&i!==void 0&&i!==g&&r.jsxs("span",{className:"text-gray-400 dark:text-gray-500 ml-1",children:["/ ",g.toLocaleString()]})]}),l&&r.jsx("span",{className:"hidden md:inline text-sm text-gray-500 dark:text-gray-400",children:l})]})]}),r.jsxs("div",{className:"flex items-center space-x-2",children:[j,A&&r.jsxs("span",{"data-testid":"live-indicator",className:"hidden sm:flex items-center space-x-1.5 px-2.5 py-1.5 rounded-lg text-sm font-medium bg-red-50 text-red-600 dark:bg-red-900/20 dark:text-red-400",title:"Live — entries stream in real time",children:[r.jsx("span",{className:"w-2 h-2 rounded-full bg-red-500 animate-pulse"}),r.jsx("span",{children:"Live"})]}),R&&r.jsxs("button",{onClick:()=>R(!w),className:`hidden sm:flex items-center space-x-1.5 px-3 py-1.5 rounded-lg text-sm font-medium transition-colors whitespace-nowrap ${w?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700"}`,title:w?"Auto-refresh enabled":"Auto-refresh disabled",children:[r.jsx("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${w?"bg-green-500 animate-pulse":"bg-gray-400"}`}),r.jsx("span",{children:"Auto Refresh"})]}),y&&r.jsx("button",{onClick:y,disabled:x||p,"aria-busy":p,"aria-label":p?"Refreshing...":"Refresh",className:"p-2 rounded-lg text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-700 dark:hover:text-gray-200 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:"Refresh",children:r.jsx(D,{className:`h-4 w-4 ${p?"animate-spin":""}`})})]})]}),u&&r.jsx("div",{className:"px-4 lg:px-6 py-2 border-t border-gray-100 dark:border-gray-800 bg-gray-50/50 dark:bg-gray-900/50",children:u}),N&&r.jsx("div",{className:"px-4 lg:px-6 py-2 border-t border-gray-100 dark:border-gray-800 bg-gray-50/50 dark:bg-gray-900/50",children:r.jsxs("div",{className:"flex items-center flex-wrap gap-2",children:[r.jsx("span",{className:"text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider mr-1",children:"Filters:"}),Object.entries(k).map(([d,b])=>r.jsxs("div",{className:"flex items-center space-x-1",children:[r.jsxs("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:[d,":"]}),b.map((o,v)=>r.jsxs("button",{onClick:o.onRemove,"aria-label":`Remove ${d} filter: ${o.value}`,className:"inline-flex items-center space-x-1 px-2 py-0.5 rounded-md text-xs font-medium bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-300 hover:bg-primary-200 dark:hover:bg-primary-900/50 transition-colors group uppercase",children:[r.jsx("span",{children:o.value}),r.jsx(ae,{className:"h-3 w-3 opacity-60 group-hover:opacity-100"})]},`${o.category}-${o.value}-${v}`))]},d)),L&&m.length>1&&r.jsx("button",{onClick:L,className:"ml-2 text-xs text-gray-500 dark:text-gray-400 hover:text-red-600 dark:hover:text-red-400 transition-colors",children:"Clear all"})]})})]})}function me({tabs:s,activeTab:t,onChange:n}){return r.jsx("div",{className:"flex items-center space-x-1",children:s.map(i=>r.jsxs("button",{onClick:()=>n(i.id),className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors ${t===i.id?"bg-primary-100 text-primary-700 dark:bg-primary-900/50 dark:text-primary-300":"text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800"}`,children:[i.label,i.count!==void 0&&r.jsx("span",{className:`ml-1.5 text-xs ${t===i.id?"text-primary-600 dark:text-primary-400":"text-gray-400 dark:text-gray-500"}`,children:i.count})]},i.id))})}function fe({label:s,enabled:t,onChange:n,icon:i}){return r.jsxs("button",{onClick:()=>n(!t),className:`flex items-center space-x-2 px-3 py-1.5 rounded-lg text-sm font-medium transition-colors ${t?"bg-primary-100 text-primary-700 dark:bg-primary-900/30 dark:text-primary-300":"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700"}`,children:[i&&r.jsx(i,{className:"h-4 w-4"}),r.jsx("span",{children:s})]})}export{me as F,ge as L,ue as N,xe as P,fe as T,de as u};
@@ -1 +1 @@
1
- import{j as a,D as n}from"./index-BzXsymsx.js";import{e as A,b as d}from"./vendor-DBTT3jXp.js";import{u as M,C as Q,f as R,p as B}from"./ClickableBadge-WXTZ8mFZ.js";import{u as O,P as W,T as H,N as I,L as Z}from"./PageHeader-C3fEDhoW.js";import{E as $}from"./EntrySearchInput-Dn_YW8ky.js";import{c as z,T as u,D as G,a as J,b as K}from"./types-D_VtW7sK.js";import{Z as c}from"./zap-W3THYjyr.js";import"./search-CfuNgVJJ.js";function te(){const h=A(),[i,p]=d.useState(!1),{addFilter:l,clearAll:x,serverFilters:m,headerFilters:g,hasFilters:y}=M("queries"),f={...m,slow:i?!0:void 0},{entries:w,loading:j,refreshing:s,newEntriesCount:b,hasMore:C,loadMore:k,loadNew:T,autoRefreshEnabled:N,live:v,setAutoRefresh:E,meta:t,isHighlighted:S}=O({type:"query",limit:50,filters:f}),r=w.filter(e=>z(e)),q=d.useMemo(()=>[{key:"source",header:"Source",width:"120px",render:e=>a.jsx(Q,{listType:"queries",filterType:"sources",children:e.payload.source||"unknown"})},{key:"query",header:"Query",minWidth:"300px",render:e=>a.jsxs("div",{className:"flex items-start space-x-2",children:[e.payload.slow&&a.jsx(c,{className:"h-4 w-4 text-yellow-500 flex-shrink-0 mt-0.5"}),a.jsx(u,{mono:!0,truncate:!0,maxWidth:"400px",children:e.payload.query.length>100?e.payload.query.substring(0,100)+"...":e.payload.query})]})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(G,{ms:e.payload.duration||0,slowThreshold:e.payload.slow?0:1e3})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>{const F=(e.payload.source||"unknown").toLowerCase(),L=(e.tags||[]).filter(o=>o.toLowerCase()!==F);return a.jsx(J,{tags:L,max:3,onTagClick:(o,P)=>{P.stopPropagation(),l("tags",o)}})}},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(u,{secondary:!0,className:"text-xs",children:R(B(e.createdAt),{addSuffix:!0})})}],[l]);if(j&&r.length===0)return 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"})});const D=y?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(W,{title:"Queries",icon:n,iconColor:"text-purple-600 dark:text-purple-400",count:r.length,totalCount:t==null?void 0:t.total,refreshing:s,autoRefreshEnabled:N,live:v,onAutoRefreshToggle:E,filters:g,onClearAllFilters:x,actions:a.jsx(H,{label:"Slow Only",enabled:i,onChange:p,icon:c})}),a.jsxs("div",{className:`${D} space-y-4 transition-all duration-200`,children:[a.jsx($,{placeholder:"Search by SQL, table, source, tag, or content..."}),a.jsx(I,{count:b,onClick:T,loading:s}),a.jsx(K,{columns:q,data:r,keyExtractor:e=>e.id,onRowClick:e=>h(`/queries/${e.id}`),rowClassName:e=>S(e.id)?"highlight-new":"",emptyMessage:"No queries recorded yet",emptyIcon:a.jsx(n,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(Z,{hasMore:C,onClick:k,loading:s})]})]})}export{te as default};
1
+ import{j as a,D as n}from"./index-DbQfemEm.js";import{e as A,b as d}from"./vendor-DBTT3jXp.js";import{u as M,C as Q,f as R,p as B}from"./ClickableBadge-BMv7BT5d.js";import{u as O,P as W,T as H,N as I,L as Z}from"./PageHeader-DX-OMwaI.js";import{E as $}from"./EntrySearchInput-B0inpTDa.js";import{c as z,T as u,D as G,a as J,b as K}from"./types-CqX7bh6c.js";import{Z as c}from"./zap-kpgvBBxB.js";import"./search-D49Ll27y.js";function te(){const h=A(),[i,p]=d.useState(!1),{addFilter:l,clearAll:x,serverFilters:m,headerFilters:g,hasFilters:y}=M("queries"),f={...m,slow:i?!0:void 0},{entries:w,loading:j,refreshing:s,newEntriesCount:b,hasMore:C,loadMore:k,loadNew:T,autoRefreshEnabled:N,live:v,setAutoRefresh:E,meta:t,isHighlighted:S}=O({type:"query",limit:50,filters:f}),r=w.filter(e=>z(e)),q=d.useMemo(()=>[{key:"source",header:"Source",width:"120px",render:e=>a.jsx(Q,{listType:"queries",filterType:"sources",children:e.payload.source||"unknown"})},{key:"query",header:"Query",minWidth:"300px",render:e=>a.jsxs("div",{className:"flex items-start space-x-2",children:[e.payload.slow&&a.jsx(c,{className:"h-4 w-4 text-yellow-500 flex-shrink-0 mt-0.5"}),a.jsx(u,{mono:!0,truncate:!0,maxWidth:"400px",children:e.payload.query.length>100?e.payload.query.substring(0,100)+"...":e.payload.query})]})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(G,{ms:e.payload.duration||0,slowThreshold:e.payload.slow?0:1e3})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>{const F=(e.payload.source||"unknown").toLowerCase(),L=(e.tags||[]).filter(o=>o.toLowerCase()!==F);return a.jsx(J,{tags:L,max:3,onTagClick:(o,P)=>{P.stopPropagation(),l("tags",o)}})}},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(u,{secondary:!0,className:"text-xs",children:R(B(e.createdAt),{addSuffix:!0})})}],[l]);if(j&&r.length===0)return 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"})});const D=y?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(W,{title:"Queries",icon:n,iconColor:"text-purple-600 dark:text-purple-400",count:r.length,totalCount:t==null?void 0:t.total,refreshing:s,autoRefreshEnabled:N,live:v,onAutoRefreshToggle:E,filters:g,onClearAllFilters:x,actions:a.jsx(H,{label:"Slow Only",enabled:i,onChange:p,icon:c})}),a.jsxs("div",{className:`${D} space-y-4 transition-all duration-200`,children:[a.jsx($,{placeholder:"Search by SQL, table, source, tag, or content..."}),a.jsx(I,{count:b,onClick:T,loading:s}),a.jsx(K,{columns:q,data:r,keyExtractor:e=>e.id,onRowClick:e=>h(`/queries/${e.id}`),rowClassName:e=>S(e.id)?"highlight-new":"",emptyMessage:"No queries recorded yet",emptyIcon:a.jsx(n,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(Z,{hasMore:C,onClick:k,loading:s})]})]})}export{te as default};
@@ -1 +1 @@
1
- import{j as a,D as d}from"./index-BzXsymsx.js";import{e as R,b as v}from"./vendor-DBTT3jXp.js";import{u as D,C as l,f as F,p as T}from"./ClickableBadge-WXTZ8mFZ.js";import{u as A,P as M,N as B,L}from"./PageHeader-C3fEDhoW.js";import{m as H,T as n,D as S,b as W}from"./types-D_VtW7sK.js";function z(){const c=R(),{addFilter:t,clearAll:m,serverFilters:u,headerFilters:h,hasFilters:p}=D("redis"),{entries:x,loading:g,refreshing:s,newEntriesCount:y,hasMore:f,loadMore:j,loadNew:k,autoRefreshEnabled:C,live:w,setAutoRefresh:N,meta:r,isHighlighted:b}=A({type:"redis",limit:50,filters:u}),i=x.filter(e=>H(e)),P=v.useMemo(()=>[{key:"command",header:"Command",width:"120px",render:e=>a.jsx(l,{onClick:o=>{o.stopPropagation(),t("commands",e.payload.command)},className:"font-mono",children:e.payload.command})},{key:"keyPattern",header:"Key Pattern",minWidth:"200px",render:e=>e.payload.keyPattern?a.jsx(n,{mono:!0,truncate:!0,maxWidth:"300px",children:e.payload.keyPattern}):a.jsx(n,{secondary:!0,children:"-"})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(S,{ms:e.payload.duration||0})},{key:"status",header:"Status",width:"100px",render:e=>a.jsx(l,{onClick:o=>{o.stopPropagation(),t("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(n,{secondary:!0,className:"text-xs",children:F(T(e.createdAt),{addSuffix:!0})})}],[t]);if(g&&i.length===0)return 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"})});const E=p?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(M,{title:"Redis",icon:d,iconColor:"text-red-600 dark:text-red-400",count:i.length,totalCount:r==null?void 0:r.total,refreshing:s,autoRefreshEnabled:C,live:w,onAutoRefreshToggle:N,filters:h,onClearAllFilters:m}),a.jsxs("div",{className:`${E} space-y-4 transition-all duration-200`,children:[a.jsx(B,{count:y,onClick:k,loading:s}),a.jsx(W,{columns:P,data:i,keyExtractor:e=>e.id,onRowClick:e=>c(`/redis/${e.id}`),rowClassName:e=>b(e.id)?"highlight-new":"",emptyMessage:"No Redis commands recorded yet",emptyIcon:a.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(L,{hasMore:f,onClick:j,loading:s})]})]})}export{z as default};
1
+ import{j as a,D as d}from"./index-DbQfemEm.js";import{e as R,b as v}from"./vendor-DBTT3jXp.js";import{u as D,C as l,f as F,p as T}from"./ClickableBadge-BMv7BT5d.js";import{u as A,P as M,N as B,L}from"./PageHeader-DX-OMwaI.js";import{m as H,T as n,D as S,b as W}from"./types-CqX7bh6c.js";function z(){const c=R(),{addFilter:t,clearAll:m,serverFilters:u,headerFilters:h,hasFilters:p}=D("redis"),{entries:x,loading:g,refreshing:s,newEntriesCount:y,hasMore:f,loadMore:j,loadNew:k,autoRefreshEnabled:C,live:w,setAutoRefresh:N,meta:r,isHighlighted:b}=A({type:"redis",limit:50,filters:u}),i=x.filter(e=>H(e)),P=v.useMemo(()=>[{key:"command",header:"Command",width:"120px",render:e=>a.jsx(l,{onClick:o=>{o.stopPropagation(),t("commands",e.payload.command)},className:"font-mono",children:e.payload.command})},{key:"keyPattern",header:"Key Pattern",minWidth:"200px",render:e=>e.payload.keyPattern?a.jsx(n,{mono:!0,truncate:!0,maxWidth:"300px",children:e.payload.keyPattern}):a.jsx(n,{secondary:!0,children:"-"})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(S,{ms:e.payload.duration||0})},{key:"status",header:"Status",width:"100px",render:e=>a.jsx(l,{onClick:o=>{o.stopPropagation(),t("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(n,{secondary:!0,className:"text-xs",children:F(T(e.createdAt),{addSuffix:!0})})}],[t]);if(g&&i.length===0)return 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"})});const E=p?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(M,{title:"Redis",icon:d,iconColor:"text-red-600 dark:text-red-400",count:i.length,totalCount:r==null?void 0:r.total,refreshing:s,autoRefreshEnabled:C,live:w,onAutoRefreshToggle:N,filters:h,onClearAllFilters:m}),a.jsxs("div",{className:`${E} space-y-4 transition-all duration-200`,children:[a.jsx(B,{count:y,onClick:k,loading:s}),a.jsx(W,{columns:P,data:i,keyExtractor:e=>e.id,onRowClick:e=>c(`/redis/${e.id}`),rowClassName:e=>b(e.id)?"highlight-new":"",emptyMessage:"No Redis commands recorded yet",emptyIcon:a.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(L,{hasMore:f,onClick:j,loading:s})]})]})}export{z as default};
@@ -1 +1 @@
1
- import{j as t,A as P,d as A}from"./index-BzXsymsx.js";import{e as q,b as R}from"./vendor-DBTT3jXp.js";import{u as v,C as l,f as D,p as L}from"./ClickableBadge-WXTZ8mFZ.js";import{u as M,P as F,N as H,L as S}from"./PageHeader-C3fEDhoW.js";import{E as G}from"./EntrySearchInput-Dn_YW8ky.js";import{i as B,T as d,D as I,a as O,b as U}from"./types-D_VtW7sK.js";import"./search-CfuNgVJJ.js";const W=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","GRAPHQL"],Q=s=>{var a;return(a=s.payload.path)!=null&&a.toLowerCase().includes("/graphql")?"GRAPHQL":s.payload.method.toUpperCase()};function Z(){const s=q(),{addFilter:a,clearAll:u,serverFilters:h,headerFilters:c,hasFilters:p}=v("requests"),{entries:m,loading:g,refreshing:r,newEntriesCount:x,hasMore:y,loadMore:f,loadNew:j,autoRefreshEnabled:C,live:T,setAutoRefresh:E,meta:i,isHighlighted:b}=M({type:"request",limit:50,filters:h}),o=m.filter(e=>B(e)),k=R.useMemo(()=>[{key:"method",header:"Method",width:"100px",render:e=>t.jsx(l,{listType:"requests",filterType:"methods",children:Q(e)})},{key:"path",header:"Path",minWidth:"200px",render:e=>t.jsx(d,{mono:!0,truncate:!0,maxWidth:"400px",children:e.payload.path})},{key:"status",header:"Status",width:"80px",align:"center",render:e=>t.jsx(l,{listType:"requests",filterType:"statuses",children:e.payload.statusCode||0})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx(I,{ms:e.payload.duration||0})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>t.jsx(O,{tags:(e.tags||[]).filter(n=>!W.includes(n.toUpperCase())),max:3,onTagClick:(n,N)=>{N.stopPropagation(),a("tags",n)}})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(d,{secondary:!0,className:"text-xs",children:D(L(e.createdAt),{addSuffix:!0})})}],[a]);if(g&&o.length===0)return 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"})});const w=p?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(F,{title:"Requests",icon:P,iconColor:"text-blue-600 dark:text-blue-400",count:o.length,totalCount:i==null?void 0:i.total,refreshing:r,autoRefreshEnabled:C,live:T,onAutoRefreshToggle:E,filters:c,onClearAllFilters:u}),t.jsxs("div",{className:`${w} space-y-4 transition-all duration-200`,children:[t.jsx(G,{placeholder:"Search by path, method, status, tag, or content..."}),t.jsx(H,{count:x,onClick:j,loading:r}),t.jsx(U,{columns:k,data:o,keyExtractor:e=>e.id,onRowClick:e=>s(`/requests/${e.id}`),emptyMessage:"No requests recorded yet",emptyIcon:t.jsx(A,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"}),rowClassName:e=>b(e.id)?"highlight-new":""}),t.jsx(S,{hasMore:y,onClick:f,loading:r})]})]})}export{Z as default};
1
+ import{j as t,A as P,d as A}from"./index-DbQfemEm.js";import{e as q,b as R}from"./vendor-DBTT3jXp.js";import{u as v,C as l,f as D,p as L}from"./ClickableBadge-BMv7BT5d.js";import{u as M,P as F,N as H,L as S}from"./PageHeader-DX-OMwaI.js";import{E as G}from"./EntrySearchInput-B0inpTDa.js";import{i as B,T as d,D as I,a as O,b as U}from"./types-CqX7bh6c.js";import"./search-D49Ll27y.js";const W=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","GRAPHQL"],Q=s=>{var a;return(a=s.payload.path)!=null&&a.toLowerCase().includes("/graphql")?"GRAPHQL":s.payload.method.toUpperCase()};function Z(){const s=q(),{addFilter:a,clearAll:u,serverFilters:h,headerFilters:c,hasFilters:p}=v("requests"),{entries:m,loading:g,refreshing:r,newEntriesCount:x,hasMore:y,loadMore:f,loadNew:j,autoRefreshEnabled:C,live:T,setAutoRefresh:E,meta:i,isHighlighted:b}=M({type:"request",limit:50,filters:h}),o=m.filter(e=>B(e)),k=R.useMemo(()=>[{key:"method",header:"Method",width:"100px",render:e=>t.jsx(l,{listType:"requests",filterType:"methods",children:Q(e)})},{key:"path",header:"Path",minWidth:"200px",render:e=>t.jsx(d,{mono:!0,truncate:!0,maxWidth:"400px",children:e.payload.path})},{key:"status",header:"Status",width:"80px",align:"center",render:e=>t.jsx(l,{listType:"requests",filterType:"statuses",children:e.payload.statusCode||0})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx(I,{ms:e.payload.duration||0})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>t.jsx(O,{tags:(e.tags||[]).filter(n=>!W.includes(n.toUpperCase())),max:3,onTagClick:(n,N)=>{N.stopPropagation(),a("tags",n)}})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(d,{secondary:!0,className:"text-xs",children:D(L(e.createdAt),{addSuffix:!0})})}],[a]);if(g&&o.length===0)return 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"})});const w=p?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(F,{title:"Requests",icon:P,iconColor:"text-blue-600 dark:text-blue-400",count:o.length,totalCount:i==null?void 0:i.total,refreshing:r,autoRefreshEnabled:C,live:T,onAutoRefreshToggle:E,filters:c,onClearAllFilters:u}),t.jsxs("div",{className:`${w} space-y-4 transition-all duration-200`,children:[t.jsx(G,{placeholder:"Search by path, method, status, tag, or content..."}),t.jsx(H,{count:x,onClick:j,loading:r}),t.jsx(U,{columns:k,data:o,keyExtractor:e=>e.id,onRowClick:e=>s(`/requests/${e.id}`),emptyMessage:"No requests recorded yet",emptyIcon:t.jsx(A,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"}),rowClassName:e=>b(e.id)?"highlight-new":""}),t.jsx(S,{hasMore:y,onClick:f,loading:r})]})]})}export{Z as default};
@@ -1 +1 @@
1
- import{j as a,C as c}from"./index-BzXsymsx.js";import{e as P,b as A}from"./vendor-DBTT3jXp.js";import{f as u,c as L}from"./format-PC0kH-TG.js";import{u as R,C as h,f as H,p as B}from"./ClickableBadge-WXTZ8mFZ.js";import{u as W,P as $,N as I,L as q}from"./PageHeader-C3fEDhoW.js";import{k as z,T as i,D as G,a as J,b as K}from"./types-D_VtW7sK.js";const O=["started","completed","failed"];function m(t){try{return L.toString(t)}catch{return null}}function _(){const t=P(),{addFilter:n,clearAll:p,serverFilters:x,headerFilters:g,hasFilters:f}=R("schedule"),{entries:y,loading:k,refreshing:s,newEntriesCount:j,hasMore:C,loadMore:N,loadNew:T,autoRefreshEnabled:v,live:w,setAutoRefresh:b,meta:r,isHighlighted:E}=W({type:"schedule",limit:50,filters:x}),l=y.filter(e=>z(e)),d=e=>e.payload.cron?e.payload.cron:e.payload.interval?`${e.payload.interval}ms`:"-",S=A.useMemo(()=>[{key:"task",header:"Task",minWidth:"200px",render:e=>a.jsx(h,{listType:"schedule",filterType:"names",className:"font-mono",children:e.payload.name})},{key:"schedule",header:"Schedule",minWidth:"150px",render:e=>a.jsxs("div",{children:[a.jsx(i,{mono:!0,children:d(e)}),e.payload.cron&&m(e.payload.cron)&&a.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400 block mt-0.5",children:m(e.payload.cron)}),e.payload.interval&&u(e.payload.interval)&&a.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400 block mt-0.5",children:u(e.payload.interval)})]})},{key:"status",header:"Status",width:"100px",render:e=>a.jsx(h,{listType:"schedule",filterType:"statuses",children:e.payload.status})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>e.payload.duration?a.jsx(G,{ms:e.payload.duration}):a.jsx(i,{secondary:!0,children:"—"})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>{const F=(e.tags||[]).filter(o=>!O.includes(o.toLowerCase()));return a.jsx(J,{tags:F,max:3,onTagClick:(o,M)=>{M.stopPropagation(),n("tags",o)}})}},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(i,{secondary:!0,className:"text-xs",children:H(B(e.createdAt),{addSuffix:!0})})}],[n,d]);if(k&&l.length===0)return 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"})});const D=f?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx($,{title:"Schedule",icon:c,iconColor:"text-gray-600 dark:text-gray-400",count:l.length,totalCount:r==null?void 0:r.total,refreshing:s,autoRefreshEnabled:v,live:w,onAutoRefreshToggle:b,filters:g,onClearAllFilters:p}),a.jsxs("div",{className:`${D} space-y-4 transition-all duration-200`,children:[a.jsx(I,{count:j,onClick:T,loading:s}),a.jsx(K,{columns:S,data:l,keyExtractor:e=>e.id,onRowClick:e=>t(`/schedule/${e.id}`),rowClassName:e=>E(e.id)?"highlight-new":"",emptyMessage:"No scheduled tasks recorded yet",emptyIcon:a.jsx(c,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(q,{hasMore:C,onClick:N,loading:s})]})]})}export{_ as default};
1
+ import{j as a,C as c}from"./index-DbQfemEm.js";import{e as P,b as A}from"./vendor-DBTT3jXp.js";import{f as u,c as L}from"./format-PC0kH-TG.js";import{u as R,C as h,f as H,p as B}from"./ClickableBadge-BMv7BT5d.js";import{u as W,P as $,N as I,L as q}from"./PageHeader-DX-OMwaI.js";import{k as z,T as i,D as G,a as J,b as K}from"./types-CqX7bh6c.js";const O=["started","completed","failed"];function m(t){try{return L.toString(t)}catch{return null}}function _(){const t=P(),{addFilter:n,clearAll:p,serverFilters:x,headerFilters:g,hasFilters:f}=R("schedule"),{entries:y,loading:k,refreshing:s,newEntriesCount:j,hasMore:C,loadMore:N,loadNew:T,autoRefreshEnabled:v,live:w,setAutoRefresh:b,meta:r,isHighlighted:E}=W({type:"schedule",limit:50,filters:x}),l=y.filter(e=>z(e)),d=e=>e.payload.cron?e.payload.cron:e.payload.interval?`${e.payload.interval}ms`:"-",S=A.useMemo(()=>[{key:"task",header:"Task",minWidth:"200px",render:e=>a.jsx(h,{listType:"schedule",filterType:"names",className:"font-mono",children:e.payload.name})},{key:"schedule",header:"Schedule",minWidth:"150px",render:e=>a.jsxs("div",{children:[a.jsx(i,{mono:!0,children:d(e)}),e.payload.cron&&m(e.payload.cron)&&a.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400 block mt-0.5",children:m(e.payload.cron)}),e.payload.interval&&u(e.payload.interval)&&a.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400 block mt-0.5",children:u(e.payload.interval)})]})},{key:"status",header:"Status",width:"100px",render:e=>a.jsx(h,{listType:"schedule",filterType:"statuses",children:e.payload.status})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>e.payload.duration?a.jsx(G,{ms:e.payload.duration}):a.jsx(i,{secondary:!0,children:"—"})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>{const F=(e.tags||[]).filter(o=>!O.includes(o.toLowerCase()));return a.jsx(J,{tags:F,max:3,onTagClick:(o,M)=>{M.stopPropagation(),n("tags",o)}})}},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(i,{secondary:!0,className:"text-xs",children:H(B(e.createdAt),{addSuffix:!0})})}],[n,d]);if(k&&l.length===0)return 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"})});const D=f?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx($,{title:"Schedule",icon:c,iconColor:"text-gray-600 dark:text-gray-400",count:l.length,totalCount:r==null?void 0:r.total,refreshing:s,autoRefreshEnabled:v,live:w,onAutoRefreshToggle:b,filters:g,onClearAllFilters:p}),a.jsxs("div",{className:`${D} space-y-4 transition-all duration-200`,children:[a.jsx(I,{count:j,onClick:T,loading:s}),a.jsx(K,{columns:S,data:l,keyExtractor:e=>e.id,onRowClick:e=>t(`/schedule/${e.id}`),rowClassName:e=>E(e.id)?"highlight-new":"",emptyMessage:"No scheduled tasks recorded yet",emptyIcon:a.jsx(c,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(q,{hasMore:C,onClick:N,loading:s})]})]})}export{_ as default};
@@ -1 +1 @@
1
- import{j as a}from"./index-BzXsymsx.js";import{e as F,b as P}from"./vendor-DBTT3jXp.js";import{u as T,C as n,f as D,p as A}from"./ClickableBadge-WXTZ8mFZ.js";import{u as M,P as R,N as H,L as B}from"./PageHeader-C3fEDhoW.js";import{p as L,T as t,D as V,b as S}from"./types-D_VtW7sK.js";import{E as d}from"./eye-UnqQQk4S.js";function z(){const c=F(),{addFilter:r,clearAll:h,serverFilters:m,headerFilters:p,hasFilters:u}=T("views"),{entries:x,loading:g,refreshing:s,newEntriesCount:f,hasMore:y,loadMore:w,loadNew:j,autoRefreshEnabled:C,live:k,setAutoRefresh:N,meta:i,isHighlighted:v}=M({type:"view",limit:50,filters:m}),o=x.filter(e=>L(e)),E=P.useMemo(()=>[{key:"template",header:"Template",minWidth:"250px",render:e=>a.jsx(t,{mono:!0,truncate:!0,maxWidth:"350px",children:e.payload.template})},{key:"format",header:"Format",width:"100px",render:e=>e.payload.format?a.jsx(n,{onClick:l=>{l.stopPropagation(),r("formats",e.payload.format)},className:"font-mono",children:e.payload.format}):a.jsx(t,{secondary:!0,children:"-"})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(V,{ms:e.payload.duration||0})},{key:"status",header:"Status",width:"100px",render:e=>a.jsx(n,{onClick:l=>{l.stopPropagation(),r("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"cache",header:"Cache",width:"80px",align:"center",render:e=>e.payload.cacheHit!==void 0?a.jsx(t,{children:e.payload.cacheHit?"Yes":"No"}):a.jsx(t,{secondary:!0,children:"-"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(t,{secondary:!0,className:"text-xs",children:D(A(e.createdAt),{addSuffix:!0})})}],[r]);if(g&&o.length===0)return 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"})});const b=u?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(R,{title:"Views",icon:d,iconColor:"text-teal-600 dark:text-teal-400",count:o.length,totalCount:i==null?void 0:i.total,refreshing:s,autoRefreshEnabled:C,live:k,onAutoRefreshToggle:N,filters:p,onClearAllFilters:h}),a.jsxs("div",{className:`${b} space-y-4 transition-all duration-200`,children:[a.jsx(H,{count:f,onClick:j,loading:s}),a.jsx(S,{columns:E,data:o,keyExtractor:e=>e.id,onRowClick:e=>c(`/views/${e.id}`),rowClassName:e=>v(e.id)?"highlight-new":"",emptyMessage:"No view renders recorded yet",emptyIcon:a.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(B,{hasMore:y,onClick:w,loading:s})]})]})}export{z as default};
1
+ import{j as a}from"./index-DbQfemEm.js";import{e as F,b as P}from"./vendor-DBTT3jXp.js";import{u as T,C as n,f as D,p as A}from"./ClickableBadge-BMv7BT5d.js";import{u as M,P as R,N as H,L as B}from"./PageHeader-DX-OMwaI.js";import{p as L,T as t,D as V,b as S}from"./types-CqX7bh6c.js";import{E as d}from"./eye-CSqFQRNH.js";function z(){const c=F(),{addFilter:r,clearAll:h,serverFilters:m,headerFilters:p,hasFilters:u}=T("views"),{entries:x,loading:g,refreshing:s,newEntriesCount:f,hasMore:y,loadMore:w,loadNew:j,autoRefreshEnabled:C,live:k,setAutoRefresh:N,meta:i,isHighlighted:v}=M({type:"view",limit:50,filters:m}),o=x.filter(e=>L(e)),E=P.useMemo(()=>[{key:"template",header:"Template",minWidth:"250px",render:e=>a.jsx(t,{mono:!0,truncate:!0,maxWidth:"350px",children:e.payload.template})},{key:"format",header:"Format",width:"100px",render:e=>e.payload.format?a.jsx(n,{onClick:l=>{l.stopPropagation(),r("formats",e.payload.format)},className:"font-mono",children:e.payload.format}):a.jsx(t,{secondary:!0,children:"-"})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(V,{ms:e.payload.duration||0})},{key:"status",header:"Status",width:"100px",render:e=>a.jsx(n,{onClick:l=>{l.stopPropagation(),r("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"cache",header:"Cache",width:"80px",align:"center",render:e=>e.payload.cacheHit!==void 0?a.jsx(t,{children:e.payload.cacheHit?"Yes":"No"}):a.jsx(t,{secondary:!0,children:"-"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(t,{secondary:!0,className:"text-xs",children:D(A(e.createdAt),{addSuffix:!0})})}],[r]);if(g&&o.length===0)return 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"})});const b=u?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(R,{title:"Views",icon:d,iconColor:"text-teal-600 dark:text-teal-400",count:o.length,totalCount:i==null?void 0:i.total,refreshing:s,autoRefreshEnabled:C,live:k,onAutoRefreshToggle:N,filters:p,onClearAllFilters:h}),a.jsxs("div",{className:`${b} space-y-4 transition-all duration-200`,children:[a.jsx(H,{count:f,onClick:j,loading:s}),a.jsx(S,{columns:E,data:o,keyExtractor:e=>e.id,onRowClick:e=>c(`/views/${e.id}`),rowClassName:e=>v(e.id)?"highlight-new":"",emptyMessage:"No view renders recorded yet",emptyIcon:a.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(B,{hasMore:y,onClick:w,loading:s})]})]})}export{z as default};
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-BzXsymsx.js";/**
1
+ import{c as e}from"./index-DbQfemEm.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c}from"./index-BzXsymsx.js";/**
1
+ import{c}from"./index-DbQfemEm.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c}from"./index-BzXsymsx.js";/**
1
+ import{c}from"./index-DbQfemEm.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DashboardPage-B0T6pIDE.js","./vendor-DBTT3jXp.js","./ClickableBadge-WXTZ8mFZ.js","./zap-W3THYjyr.js","./calendar-CjRWMm3M.js","./RequestsPage-CL-SGIfb.js","./PageHeader-C3fEDhoW.js","./EntrySearchInput-Dn_YW8ky.js","./search-CfuNgVJJ.js","./types-D_VtW7sK.js","./QueriesPage-8dFsmtbC.js","./ExceptionsPage-CSwfuIx6.js","./circle-check-big-CDv3KUZt.js","./LogsPage-BJTqqpaI.js","./EventsPage-CFCZvgVn.js","./JobsPage-BqDREe3I.js","./CachePage-BDYXsyI9.js","./MailPage-CMBFq4vj.js","./SchedulePage-CiYbYKau.js","./format-PC0kH-TG.js","./HttpClientPage-B6EX2Cn6.js","./RedisPage-CUm_y-o2.js","./ModelsPage-CxrhoZib.js","./NotificationsPage-4vopw7N9.js","./ViewsPage-H2fqCqqr.js","./eye-UnqQQk4S.js","./CommandsPage-D6DtWReX.js","./GatesPage-1c_m1RG6.js","./BatchesPage-CugoZztS.js","./DumpsPage-Dc6GbhFt.js","./GraphQLPage-Ca4Bp7eW.js","./EntryDetailPage-CXBlrmgt.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DashboardPage-D_boxQLL.js","./vendor-DBTT3jXp.js","./ClickableBadge-BMv7BT5d.js","./zap-kpgvBBxB.js","./calendar-Clp1lAlK.js","./RequestsPage-Dqymx42m.js","./PageHeader-DX-OMwaI.js","./EntrySearchInput-B0inpTDa.js","./search-D49Ll27y.js","./types-CqX7bh6c.js","./QueriesPage-DWPD6H4n.js","./ExceptionsPage-DUAve13R.js","./circle-check-big-DetB5WLf.js","./LogsPage-CCQCPtf2.js","./EventsPage-DyWBq1Uz.js","./JobsPage-Cp5LjuZV.js","./CachePage-D7Kbnbd0.js","./MailPage-F1fRQOqV.js","./SchedulePage-BqqBFGe3.js","./format-PC0kH-TG.js","./HttpClientPage-9bBt0DkK.js","./RedisPage-D4gL25Ig.js","./ModelsPage-B7KhpXXG.js","./NotificationsPage-CkMMZzIi.js","./ViewsPage-CRRuOZy9.js","./eye-CSqFQRNH.js","./CommandsPage-Dka-rd2n.js","./GatesPage-grMG9-Pd.js","./BatchesPage-Be2pyBW1.js","./DumpsPage-CBdtECHX.js","./GraphQLPage-DMiSp1JA.js","./EntryDetailPage-bchF1CyH.js"])))=>i.map(i=>d[i]);
2
2
  var Se=Object.defineProperty;var _e=(s,a,e)=>a in s?Se(s,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[a]=e;var z=(s,a,e)=>_e(s,typeof a!="symbol"?a+"":a,e);import{r as Ee,a as Ne,g as Pe,b as r,u as Ce,L as D,O as Re,R as Le,c as p,N as Te,d as Ae,B as Oe}from"./vendor-DBTT3jXp.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const n of i.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&o(n)}).observe(document,{childList:!0,subtree:!0});function e(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(l){if(l.ep)return;l.ep=!0;const i=e(l);fetch(l.href,i)}})();var G={exports:{}},M={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
@@ -358,4 +358,4 @@ to {
358
358
  *
359
359
  * This source code is licensed under the ISC license.
360
360
  * See the LICENSE file in the root directory of this source tree.
361
- */const es=g("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ke=()=>window.__NESTLENS_BASE__??"",ts=s=>`${window.location.origin}${ke()}/__nestlens__${s}`,ve=ts("/api");async function P(s,a){const e=await fetch(`${ve}${s}`,a);if(!e.ok)throw new Error(`API error: ${e.status}`);return e.json()}async function Ds(s){return P(`/entries/${s}`)}async function ss(){return P("/stats")}async function as(){return(await fetch(`${ve}/entries`,{method:"DELETE"})).json()}async function Ms(s){const a=new URLSearchParams;if(s.type&&a.set("type",s.type),s.limit&&a.set("limit",s.limit.toString()),s.beforeSequence!==void 0&&a.set("beforeSequence",s.beforeSequence.toString()),s.afterSequence!==void 0&&a.set("afterSequence",s.afterSequence.toString()),s.filters){const e=s.filters;e.levels&&e.levels.length>0&&a.set("levels",e.levels.join(",")),e.contexts&&e.contexts.length>0&&a.set("contexts",e.contexts.join(",")),e.queryTypes&&e.queryTypes.length>0&&a.set("queryTypes",e.queryTypes.join(",")),e.sources&&e.sources.length>0&&a.set("sources",e.sources.join(",")),e.slow!==void 0&&a.set("slow",e.slow.toString()),e.names&&e.names.length>0&&a.set("names",e.names.join(",")),e.methods&&e.methods.length>0&&a.set("methods",e.methods.join(",")),e.paths&&e.paths.length>0&&a.set("paths",e.paths.join(",")),e.resolved!==void 0&&a.set("resolved",e.resolved.toString()),e.statuses&&e.statuses.length>0&&a.set("statuses",e.statuses.join(",")),e.hostnames&&e.hostnames.length>0&&a.set("hostnames",e.hostnames.join(",")),e.controllers&&e.controllers.length>0&&a.set("controllers",e.controllers.join(",")),e.ips&&e.ips.length>0&&a.set("ips",e.ips.join(",")),e.eventNames&&e.eventNames.length>0&&a.set("eventNames",e.eventNames.join(",")),e.scheduleStatuses&&e.scheduleStatuses.length>0&&a.set("scheduleStatuses",e.scheduleStatuses.join(",")),e.scheduleNames&&e.scheduleNames.length>0&&a.set("scheduleNames",e.scheduleNames.join(",")),e.jobStatuses&&e.jobStatuses.length>0&&a.set("jobStatuses",e.jobStatuses.join(",")),e.jobNames&&e.jobNames.length>0&&a.set("jobNames",e.jobNames.join(",")),e.queues&&e.queues.length>0&&a.set("queues",e.queues.join(",")),e.cacheOperations&&e.cacheOperations.length>0&&a.set("cacheOperations",e.cacheOperations.join(",")),e.mailStatuses&&e.mailStatuses.length>0&&a.set("mailStatuses",e.mailStatuses.join(",")),e.redisStatuses&&e.redisStatuses.length>0&&a.set("redisStatuses",e.redisStatuses.join(",")),e.redisCommands&&e.redisCommands.length>0&&a.set("redisCommands",e.redisCommands.join(",")),e.modelActions&&e.modelActions.length>0&&a.set("modelActions",e.modelActions.join(",")),e.entities&&e.entities.length>0&&a.set("entities",e.entities.join(",")),e.modelSources&&e.modelSources.length>0&&a.set("modelSources",e.modelSources.join(",")),e.notificationTypes&&e.notificationTypes.length>0&&a.set("notificationTypes",e.notificationTypes.join(",")),e.notificationStatuses&&e.notificationStatuses.length>0&&a.set("notificationStatuses",e.notificationStatuses.join(",")),e.viewFormats&&e.viewFormats.length>0&&a.set("viewFormats",e.viewFormats.join(",")),e.viewStatuses&&e.viewStatuses.length>0&&a.set("viewStatuses",e.viewStatuses.join(",")),e.commandStatuses&&e.commandStatuses.length>0&&a.set("commandStatuses",e.commandStatuses.join(",")),e.commandNames&&e.commandNames.length>0&&a.set("commandNames",e.commandNames.join(",")),e.gateNames&&e.gateNames.length>0&&a.set("gateNames",e.gateNames.join(",")),e.gateResults&&e.gateResults.length>0&&a.set("gateResults",e.gateResults.join(",")),e.batchStatuses&&e.batchStatuses.length>0&&a.set("batchStatuses",e.batchStatuses.join(",")),e.batchOperations&&e.batchOperations.length>0&&a.set("batchOperations",e.batchOperations.join(",")),e.dumpStatuses&&e.dumpStatuses.length>0&&a.set("dumpStatuses",e.dumpStatuses.join(",")),e.dumpOperations&&e.dumpOperations.length>0&&a.set("dumpOperations",e.dumpOperations.join(",")),e.dumpFormats&&e.dumpFormats.length>0&&a.set("dumpFormats",e.dumpFormats.join(",")),e.operationTypes&&e.operationTypes.length>0&&a.set("operationTypes",e.operationTypes.join(",")),e.operationNames&&e.operationNames.length>0&&a.set("operationNames",e.operationNames.join(",")),e.hasErrors!==void 0&&a.set("hasErrors",e.hasErrors.toString()),e.hasN1!==void 0&&a.set("hasN1",e.hasN1.toString()),e.tags&&e.tags.length>0&&a.set("tags",e.tags.join(",")),e.search&&a.set("search",e.search)}return P(`/entries/cursor?${a.toString()}`)}async function qs(s){const a=new URLSearchParams;return s&&a.set("type",s),P(`/entries/latest-sequence?${a.toString()}`)}async function $s(s,a){const e=new URLSearchParams;return e.set("afterSequence",s.toString()),a&&e.set("type",a),P(`/entries/check-new?${e.toString()}`)}async function zs(){return P("/storage/stats")}async function Is(){return P("/pruning/status")}async function Ks(){return P("/pruning/run",{method:"POST"})}async function Vs(s){return P(`/entries/${s}/resolve`,{method:"PATCH"})}async function Bs(s){return P(`/entries/${s}/unresolve`,{method:"PATCH"})}async function rs(s){return P("/recording/pause",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:s})})}async function ns(){return P("/recording/resume",{method:"POST"})}async function os(){return P("/recording/status")}function is(s){const a=r.useCallback(e=>{const o=e.target,l=o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable;for(const i of s){const{key:n,ctrl:c,meta:d,shift:y,alt:u,handler:m,preventDefault:f=!0}=i;if(l&&n.toLowerCase()!=="escape")continue;const j=e.key.toLowerCase()===n.toLowerCase(),v=y?e.shiftKey:!e.shiftKey,h=u?e.altKey:!e.altKey;if(c){if((e.ctrlKey||e.metaKey)&&j&&v&&h){f&&e.preventDefault(),m(e);return}continue}if(d){if(e.metaKey&&!e.ctrlKey&&j&&v&&h){f&&e.preventDefault(),m(e);return}continue}if(!e.ctrlKey&&!e.metaKey&&j&&v&&h){f&&e.preventDefault(),m(e);return}}},[s]);r.useEffect(()=>(document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}),[a])}const we=r.createContext(void 0);function ls({children:s}){const[a,e]=r.useState(null),[o,l]=r.useState(null),i=r.useRef(!0),n=r.useCallback(async()=>{try{const c=await ss();e(c.data),l(null)}catch(c){const d=c instanceof Error?c:new Error("Failed to fetch stats");l(d),console.error("Failed to fetch stats:",c),i.current&&q.error("Failed to load statistics")}finally{i.current=!1}},[]);return r.useEffect(()=>{n();const c=setInterval(n,1e4);return()=>clearInterval(c)},[n]),t.jsx(we.Provider,{value:{stats:a,error:o,refreshStats:n},children:s})}function cs(){const s=r.useContext(we);if(s===void 0)throw new Error("useStats must be used within a StatsProvider");return s}function ce(){const[s,a]=r.useState(null),[e,o]=r.useState(!1);r.useEffect(()=>{const i=async()=>{try{const c=await os();a(c.data)}catch(c){console.error("Failed to fetch recording status:",c)}};i();const n=setInterval(i,5e3);return()=>clearInterval(n)},[]);const l=async()=>{if(!(!s||e)){o(!0);try{if(s.isPaused){const i=await ns();a(i.data),q.success("Recording resumed")}else{const i=await rs();a(i.data),q.success("Recording paused")}}catch{q.error("Failed to toggle recording")}finally{o(!1)}}};return s?t.jsx("button",{onClick:l,disabled:e,className:`p-2.5 rounded-lg transition-colors ${s.isPaused?"text-yellow-600 hover:text-yellow-700 dark:text-yellow-400 dark:hover:text-yellow-300 hover:bg-yellow-50 dark:hover:bg-yellow-900/20":"text-green-600 hover:text-green-700 dark:text-green-400 dark:hover:text-green-300 hover:bg-green-50 dark:hover:bg-green-900/20"} ${e?"opacity-50 cursor-not-allowed":""}`,"aria-label":s.isPaused?"Resume recording":"Pause recording",title:s.isPaused?"Resume Recording":"Pause Recording",children:s.isPaused?t.jsx(Qt,{className:"h-5 w-5"}):t.jsx(Jt,{className:"h-5 w-5"})}):null}const de={dashboard:"text-primary-500",request:"text-blue-500",query:"text-purple-500",graphql:"text-fuchsia-500",exception:"text-red-500",log:"text-green-500",job:"text-yellow-500",schedule:"text-gray-500",batch:"text-lime-500",command:"text-slate-500",cache:"text-cyan-500",redis:"text-rose-500",model:"text-violet-500","http-client":"text-indigo-500",mail:"text-pink-500",notification:"text-orange-500",event:"text-emerald-500",view:"text-teal-500",gate:"text-amber-500",dump:"text-stone-500"},ue=[{name:"Overview",items:[{name:"Dashboard",href:"/",icon:Bt,colorKey:"dashboard"}]},{name:"Core",items:[{name:"Requests",href:"/requests",icon:At,colorKey:"request"},{name:"Queries",href:"/queries",icon:$t,colorKey:"query"},{name:"GraphQL",href:"/graphql",icon:It,colorKey:"graphql"},{name:"Exceptions",href:"/exceptions",icon:be,badge:"exceptions",colorKey:"exception"},{name:"Logs",href:"/logs",icon:zt,colorKey:"log"}]},{name:"Background",items:[{name:"Jobs",href:"/jobs",icon:Mt,colorKey:"job"},{name:"Schedule",href:"/schedule",icon:qt,colorKey:"schedule"},{name:"Batches",href:"/batches",icon:Gt,colorKey:"batch"},{name:"Commands",href:"/commands",icon:Yt,colorKey:"command"}]},{name:"Data",items:[{name:"Cache",href:"/cache",icon:ne,colorKey:"cache"},{name:"Redis",href:"/redis",icon:Dt,colorKey:"redis"},{name:"Models",href:"/models",icon:Vt,colorKey:"model"}]},{name:"Communication",items:[{name:"HTTP Client",href:"/http-client",icon:Kt,colorKey:"http-client"},{name:"Mail",href:"/mail",icon:Ft,colorKey:"mail"},{name:"Notifications",href:"/notifications",icon:Ot,colorKey:"notification"},{name:"Events",href:"/events",icon:Wt,colorKey:"event"}]},{name:"System",items:[{name:"Views",href:"/views",icon:Ut,colorKey:"view"},{name:"Gates",href:"/gates",icon:Xt,colorKey:"gate"},{name:"Dumps",href:"/dumps",icon:ne,colorKey:"dump"}]}];function ds(){const s=Ce(),[a,e]=r.useState(!1),{stats:o}=cs(),[l,i]=r.useState(()=>{if(typeof window<"u"){const h=localStorage.getItem("nestlens-collapsed-groups");return h?new Set(JSON.parse(h)):new Set}return new Set}),[n,c]=r.useState(()=>typeof window<"u"?document.documentElement.classList.contains("dark"):!1),[d,y]=r.useState(()=>{if(typeof window<"u"){const h=localStorage.getItem("nestlens-theme");if(h==="system"||h==="light"||h==="dark")return h}return"system"}),u=r.useCallback(h=>{i(k=>{const E=new Set(k);return E.has(h)?E.delete(h):E.add(h),localStorage.setItem("nestlens-collapsed-groups",JSON.stringify([...E])),E})},[]),m=r.useCallback(h=>{if(!o)return 0;switch(h){case"exceptions":return o.unresolvedExceptions??o.byType.exception??0;default:return 0}},[o]),f=r.useCallback(h=>{let k=!1;h==="system"?k=window.matchMedia("(prefers-color-scheme: dark)").matches:k=h==="dark",k?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),c(k)},[]),j=r.useCallback(()=>{const h=n?"light":"dark";y(h),localStorage.setItem("nestlens-theme",h),f(h)},[n,f]),v=r.useCallback(async()=>{window.confirm("Are you sure you want to clear all entries?")&&(await as(),q.success("All entries cleared"),window.location.reload())},[]);return r.useEffect(()=>{if(f(d),d==="system"){const h=window.matchMedia("(prefers-color-scheme: dark)"),k=E=>{const b=E.matches;b?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),c(b)};return h.addEventListener("change",k),()=>h.removeEventListener("change",k)}},[d,f]),is([{key:"k",ctrl:!0,handler:()=>v()},{key:"Escape",handler:()=>{a&&e(!1)},preventDefault:!1},{key:"d",ctrl:!0,handler:()=>j()}]),t.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[t.jsxs("div",{className:`fixed inset-0 z-50 lg:hidden ${a?"":"hidden"}`,children:[t.jsx("div",{className:"fixed inset-0 bg-gray-900/80",onClick:()=>e(!1)}),t.jsxs("div",{id:"mobile-sidebar","data-testid":"mobile-sidebar",className:"fixed inset-y-0 left-0 w-64 bg-white dark:bg-gray-800 flex flex-col",children:[t.jsxs("div",{className:"flex h-16 items-center justify-between px-4 border-b border-gray-200 dark:border-gray-700",children:[t.jsxs(D,{to:"/",className:"flex items-center space-x-2",children:[t.jsx(U,{className:"h-8 w-8 text-primary-600"}),t.jsx("span",{className:"text-xl font-bold text-gray-900 dark:text-white",children:"NestLens"})]}),t.jsx("button",{onClick:()=>e(!1),className:"text-gray-500 hover:text-gray-700 dark:text-gray-400","aria-label":"Close sidebar",children:t.jsx(es,{className:"h-6 w-6","aria-hidden":"true"})})]}),t.jsx("nav",{className:"flex-1 min-h-0 overflow-y-auto py-4 px-3",children:ue.map((h,k)=>{const E=l.has(h.name);return t.jsxs("div",{className:k>0?"mt-4":"",children:[t.jsxs("button",{onClick:()=>u(h.name),className:"flex items-center justify-between w-full px-2 py-1.5 text-xs font-semibold text-gray-400 dark:text-gray-500 uppercase tracking-wider hover:text-gray-600 dark:hover:text-gray-400 transition-colors","aria-expanded":!E,"aria-controls":`nav-group-${h.name.toLowerCase().replace(/\s+/g,"-")}`,children:[t.jsx("span",{children:h.name}),E?t.jsx(ae,{className:"h-3 w-3","aria-hidden":"true"}):t.jsx(se,{className:"h-3 w-3","aria-hidden":"true"})]}),!E&&t.jsx("div",{className:"mt-1 space-y-0.5",children:h.items.map(b=>{const N=b.href==="/"?s.pathname==="/":s.pathname.startsWith(b.href),C="badge"in b?m(b.badge):0;return t.jsxs(D,{to:b.href,"aria-current":N?"page":void 0,className:`group flex items-center justify-between px-3 py-2 rounded-lg transition-colors ${N?"bg-primary-50 text-primary-700 dark:bg-primary-900/50 dark:text-primary-200 font-medium":"text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-white"}`,onClick:()=>e(!1),children:[t.jsxs("div",{className:"flex items-center space-x-3",children:[t.jsx(b.icon,{className:`h-4 w-4 ${de[b.colorKey]||"text-gray-400"}`}),t.jsx("span",{className:"text-sm",children:b.name})]}),C>0&&t.jsx("span",{className:"inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-xs font-medium bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-400 rounded-full",children:C>99?"99+":C})]},b.name)})})]},h.name)})}),t.jsx("div",{className:"flex-shrink-0 p-3 border-t border-gray-200 dark:border-gray-700",children:t.jsxs("div",{className:"flex items-center justify-center gap-1",children:[t.jsx(ce,{}),t.jsx("button",{onClick:j,className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":n?"Switch to light mode":"Switch to dark mode",children:n?t.jsx(ie,{className:"h-5 w-5"}):t.jsx(oe,{className:"h-5 w-5"})}),t.jsx("button",{onClick:v,className:"p-2.5 text-gray-500 hover:text-red-600 dark:text-gray-400 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-lg transition-colors","aria-label":"Clear all data",children:t.jsx(le,{className:"h-5 w-5"})}),t.jsx("a",{href:"https://github.com/mogretici/nestlens",target:"_blank",rel:"noopener noreferrer",className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":"Documentation",children:t.jsx(re,{className:"h-5 w-5"})})]})})]})]}),t.jsx("div",{"data-testid":"sidebar",className:"hidden lg:fixed lg:inset-y-0 lg:flex lg:w-64 lg:flex-col",children:t.jsxs("div",{className:"flex flex-col h-full bg-white dark:bg-gray-800 border-r border-gray-200 dark:border-gray-700",children:[t.jsx("div",{className:"flex h-16 items-center px-4 border-b border-gray-200 dark:border-gray-700",children:t.jsxs(D,{to:"/",className:"flex items-center space-x-2.5",children:[t.jsx("div",{className:"p-1.5 bg-primary-100 dark:bg-primary-900/50 rounded-lg",children:t.jsx(U,{className:"h-6 w-6 text-primary-600 dark:text-primary-400"})}),t.jsxs("div",{children:[t.jsx("span",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"NestLens"}),t.jsxs("span",{className:"hidden xl:inline text-xs text-gray-400 dark:text-gray-500 ml-1.5",children:["v","0.8.3"]})]})]})}),t.jsx("nav",{className:"flex-1 min-h-0 overflow-y-auto py-4 px-3",children:ue.map((h,k)=>{const E=l.has(h.name);return t.jsxs("div",{className:k>0?"mt-6":"",children:[t.jsxs("button",{onClick:()=>u(h.name),className:"flex items-center justify-between w-full px-2 py-1.5 text-[11px] font-semibold text-gray-400 dark:text-gray-500 uppercase tracking-wider hover:text-gray-600 dark:hover:text-gray-400 transition-colors","aria-expanded":!E,"aria-controls":`desktop-nav-group-${h.name.toLowerCase().replace(/\s+/g,"-")}`,children:[t.jsx("span",{children:h.name}),E?t.jsx(ae,{className:"h-3 w-3","aria-hidden":"true"}):t.jsx(se,{className:"h-3 w-3","aria-hidden":"true"})]}),!E&&t.jsx("div",{className:"mt-1 space-y-0.5",children:h.items.map(b=>{const N=b.href==="/"?s.pathname==="/":s.pathname.startsWith(b.href),C="badge"in b?m(b.badge):0;return t.jsxs(D,{to:b.href,"aria-current":N?"page":void 0,className:`group flex items-center justify-between px-3 py-2 rounded-lg transition-all duration-150 ${N?"bg-primary-50 text-primary-700 dark:bg-primary-900/50 dark:text-primary-200 font-medium shadow-sm":"text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-gray-800/50 hover:text-gray-900 dark:hover:text-white"}`,children:[t.jsxs("div",{className:"flex items-center space-x-3",children:[t.jsx(b.icon,{className:`h-[18px] w-[18px] ${de[b.colorKey]||"text-gray-400"}`}),t.jsx("span",{className:"text-sm",children:b.name})]}),C>0&&t.jsx("span",{className:`inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-xs font-semibold rounded-full transition-colors ${N?"bg-primary-200 text-primary-800 dark:bg-primary-800 dark:text-primary-200":"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-400"}`,children:C>99?"99+":C})]},b.name)})})]},h.name)})}),t.jsx("div",{className:"flex-shrink-0 p-3 border-t border-gray-200 dark:border-gray-700",children:t.jsxs("div",{className:"flex items-center justify-center gap-1",children:[t.jsx(ce,{}),t.jsx("button",{onClick:j,className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":n?"Switch to light mode":"Switch to dark mode",title:n?"Light Mode (⌘D)":"Dark Mode (⌘D)",children:n?t.jsx(ie,{className:"h-5 w-5"}):t.jsx(oe,{className:"h-5 w-5"})}),t.jsx("button",{onClick:v,className:"p-2.5 text-gray-500 hover:text-red-600 dark:text-gray-400 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-lg transition-colors","aria-label":"Clear all data",title:"Clear All Data (⌘K)",children:t.jsx(le,{className:"h-5 w-5"})}),t.jsx("a",{href:"https://github.com/mogretici/nestlens",target:"_blank",rel:"noopener noreferrer",className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":"Documentation",title:"Documentation",children:t.jsx(re,{className:"h-5 w-5"})})]})})]})}),t.jsxs("div",{className:"lg:pl-64",children:[t.jsxs("header",{className:"sticky top-0 z-40 flex h-14 items-center gap-4 border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 px-4 lg:hidden",children:[t.jsx("button",{onClick:()=>e(!0),className:"text-gray-500 hover:text-gray-700 dark:text-gray-400","aria-expanded":a,"aria-controls":"mobile-sidebar","aria-label":"Open navigation menu",children:t.jsx(Ht,{className:"h-6 w-6","aria-hidden":"true"})}),t.jsxs(D,{to:"/",className:"flex items-center space-x-2",children:[t.jsx(U,{className:"h-6 w-6 text-primary-600"}),t.jsx("span",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"NestLens"})]})]}),t.jsx("main",{className:"p-4 lg:p-6",children:t.jsx(Re,{})})]})]})}function x(){return t.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:t.jsxs("div",{className:"flex flex-col items-center gap-3",children:[t.jsx("div",{className:"animate-spin rounded-full h-10 w-10 border-b-2 border-primary-600 dark:border-primary-400"}),t.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Loading..."})]})})}const us=r.lazy(()=>w(()=>import("./DashboardPage-B0T6pIDE.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),hs=r.lazy(()=>w(()=>import("./RequestsPage-CL-SGIfb.js"),__vite__mapDeps([5,1,2,6,7,8,9]),import.meta.url)),ms=r.lazy(()=>w(()=>import("./QueriesPage-8dFsmtbC.js"),__vite__mapDeps([10,1,2,6,7,8,9,3]),import.meta.url)),ps=r.lazy(()=>w(()=>import("./ExceptionsPage-CSwfuIx6.js"),__vite__mapDeps([11,1,2,6,7,8,9,12]),import.meta.url)),xs=r.lazy(()=>w(()=>import("./LogsPage-BJTqqpaI.js"),__vite__mapDeps([13,1,2,6,7,8,9]),import.meta.url)),fs=r.lazy(()=>w(()=>import("./EventsPage-CFCZvgVn.js"),__vite__mapDeps([14,1,2,6,9]),import.meta.url)),ys=r.lazy(()=>w(()=>import("./JobsPage-BqDREe3I.js"),__vite__mapDeps([15,1,2,6,9]),import.meta.url)),gs=r.lazy(()=>w(()=>import("./CachePage-BDYXsyI9.js"),__vite__mapDeps([16,1,2,6,9]),import.meta.url)),js=r.lazy(()=>w(()=>import("./MailPage-CMBFq4vj.js"),__vite__mapDeps([17,1,2,6,9]),import.meta.url)),bs=r.lazy(()=>w(()=>import("./SchedulePage-CiYbYKau.js"),__vite__mapDeps([18,1,19,2,6,9]),import.meta.url)),ks=r.lazy(()=>w(()=>import("./HttpClientPage-B6EX2Cn6.js"),__vite__mapDeps([20,1,2,6,9]),import.meta.url)),vs=r.lazy(()=>w(()=>import("./RedisPage-CUm_y-o2.js"),__vite__mapDeps([21,1,2,6,9]),import.meta.url)),ws=r.lazy(()=>w(()=>import("./ModelsPage-CxrhoZib.js"),__vite__mapDeps([22,1,2,6,9]),import.meta.url)),Ss=r.lazy(()=>w(()=>import("./NotificationsPage-4vopw7N9.js"),__vite__mapDeps([23,1,2,6,9]),import.meta.url)),_s=r.lazy(()=>w(()=>import("./ViewsPage-H2fqCqqr.js"),__vite__mapDeps([24,1,2,6,9,25]),import.meta.url)),Es=r.lazy(()=>w(()=>import("./CommandsPage-D6DtWReX.js"),__vite__mapDeps([26,1,2,6,9]),import.meta.url)),Ns=r.lazy(()=>w(()=>import("./GatesPage-1c_m1RG6.js"),__vite__mapDeps([27,1,2,6,9]),import.meta.url)),Ps=r.lazy(()=>w(()=>import("./BatchesPage-CugoZztS.js"),__vite__mapDeps([28,1,2,6,9]),import.meta.url)),Cs=r.lazy(()=>w(()=>import("./DumpsPage-Dc6GbhFt.js"),__vite__mapDeps([29,1,2,6,9]),import.meta.url)),Rs=r.lazy(()=>w(()=>import("./GraphQLPage-Ca4Bp7eW.js"),__vite__mapDeps([30,1,2,7,8,6,9]),import.meta.url)),S=r.lazy(()=>w(()=>import("./EntryDetailPage-CXBlrmgt.js"),__vite__mapDeps([31,1,2,9,8,3,12,19,4,25]),import.meta.url));function Ls(){return t.jsx(Le,{children:t.jsxs(p,{path:"/",element:t.jsx(ds,{}),children:[t.jsx(p,{index:!0,element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(us,{})})}),t.jsx(p,{path:"requests",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(hs,{})})}),t.jsx(p,{path:"queries",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ms,{})})}),t.jsx(p,{path:"exceptions",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ps,{})})}),t.jsx(p,{path:"logs",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(xs,{})})}),t.jsx(p,{path:"events",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(fs,{})})}),t.jsx(p,{path:"jobs",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ys,{})})}),t.jsx(p,{path:"cache",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(gs,{})})}),t.jsx(p,{path:"mail",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(js,{})})}),t.jsx(p,{path:"schedule",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(bs,{})})}),t.jsx(p,{path:"http-client",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ks,{})})}),t.jsx(p,{path:"redis",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(vs,{})})}),t.jsx(p,{path:"models",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ws,{})})}),t.jsx(p,{path:"notifications",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Ss,{})})}),t.jsx(p,{path:"views",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(_s,{})})}),t.jsx(p,{path:"commands",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Es,{})})}),t.jsx(p,{path:"gates",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Ns,{})})}),t.jsx(p,{path:"batches",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Ps,{})})}),t.jsx(p,{path:"dumps",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Cs,{})})}),t.jsx(p,{path:"graphql",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Rs,{})})}),t.jsx(p,{path:"requests/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"queries/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"exceptions/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"logs/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"events/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"jobs/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"cache/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"mail/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"schedule/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"http-client/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"redis/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"models/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"notifications/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"views/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"commands/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"gates/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"batches/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"dumps/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"graphql/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"entries/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"*",element:t.jsx(Te,{to:"/",replace:!0})})]})})}class Ts extends r.Component{constructor(){super(...arguments);z(this,"state",{hasError:!1});z(this,"handleReload",()=>{window.location.reload()});z(this,"handleReset",()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})})}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("ErrorBoundary caught an error:",e,o),this.setState({errorInfo:o})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 dark:bg-gray-900 p-4",children:t.jsxs("div",{className:"max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 text-center",children:[t.jsx("div",{className:"mx-auto w-12 h-12 flex items-center justify-center rounded-full bg-red-100 dark:bg-red-900/30 mb-4",children:t.jsx(be,{className:"h-6 w-6 text-red-600 dark:text-red-400"})}),t.jsx("h1",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Something went wrong"}),t.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:"An unexpected error occurred. Please try refreshing the page."}),this.state.error&&t.jsx("div",{className:"mb-4 p-3 bg-red-50 dark:bg-red-900/20 rounded-lg text-left",children:t.jsx("p",{className:"text-sm font-mono text-red-600 dark:text-red-400 break-all",children:this.state.error.message})}),t.jsxs("div",{className:"flex gap-3 justify-center",children:[t.jsx("button",{onClick:this.handleReset,className:"px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 rounded-lg transition-colors",children:"Try Again"}),t.jsxs("button",{onClick:this.handleReload,className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-white bg-primary-600 hover:bg-primary-700 rounded-lg transition-colors",children:[t.jsx(Zt,{className:"h-4 w-4"}),"Refresh Page"]})]}),!1]})}):this.props.children}}ze.createRoot(document.getElementById("root")).render(t.jsx(Ae.StrictMode,{children:t.jsx(Ts,{children:t.jsx(Oe,{basename:ke(),children:t.jsxs(ls,{children:[t.jsx(Ls,{}),t.jsx(Nt,{position:"bottom-right",toastOptions:{duration:3e3,style:{background:"#1f2937",color:"#f3f4f6",borderRadius:"0.5rem"},success:{iconTheme:{primary:"#10b981",secondary:"#f3f4f6"}},error:{iconTheme:{primary:"#ef4444",secondary:"#f3f4f6"}}}})]})})})}));export{At as A,Mt as B,qt as C,$t as D,zt as F,It as G,ne as H,Vt as L,Ft as M,Gt as P,Wt as R,Xt as S,be as T,es as X,Yt as a,Dt as b,g as c,Kt as d,Ot as e,Ut as f,ae as g,le as h,Zt as i,t as j,zs as k,Is as l,Ms as m,Bs as n,Vs as o,ts as p,qs as q,Ks as r,$s as s,se as t,cs as u,Qt as v,Ds as w,q as z};
361
+ */const es=g("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ke=()=>window.__NESTLENS_BASE__??"",ts=s=>`${window.location.origin}${ke()}/__nestlens__${s}`,ve=ts("/api");async function P(s,a){const e=await fetch(`${ve}${s}`,a);if(!e.ok)throw new Error(`API error: ${e.status}`);return e.json()}async function Ds(s){return P(`/entries/${s}`)}async function ss(){return P("/stats")}async function as(){return(await fetch(`${ve}/entries`,{method:"DELETE"})).json()}async function Ms(s){const a=new URLSearchParams;if(s.type&&a.set("type",s.type),s.limit&&a.set("limit",s.limit.toString()),s.beforeSequence!==void 0&&a.set("beforeSequence",s.beforeSequence.toString()),s.afterSequence!==void 0&&a.set("afterSequence",s.afterSequence.toString()),s.filters){const e=s.filters;e.levels&&e.levels.length>0&&a.set("levels",e.levels.join(",")),e.contexts&&e.contexts.length>0&&a.set("contexts",e.contexts.join(",")),e.queryTypes&&e.queryTypes.length>0&&a.set("queryTypes",e.queryTypes.join(",")),e.sources&&e.sources.length>0&&a.set("sources",e.sources.join(",")),e.slow!==void 0&&a.set("slow",e.slow.toString()),e.names&&e.names.length>0&&a.set("names",e.names.join(",")),e.methods&&e.methods.length>0&&a.set("methods",e.methods.join(",")),e.paths&&e.paths.length>0&&a.set("paths",e.paths.join(",")),e.resolved!==void 0&&a.set("resolved",e.resolved.toString()),e.statuses&&e.statuses.length>0&&a.set("statuses",e.statuses.join(",")),e.hostnames&&e.hostnames.length>0&&a.set("hostnames",e.hostnames.join(",")),e.controllers&&e.controllers.length>0&&a.set("controllers",e.controllers.join(",")),e.ips&&e.ips.length>0&&a.set("ips",e.ips.join(",")),e.eventNames&&e.eventNames.length>0&&a.set("eventNames",e.eventNames.join(",")),e.scheduleStatuses&&e.scheduleStatuses.length>0&&a.set("scheduleStatuses",e.scheduleStatuses.join(",")),e.scheduleNames&&e.scheduleNames.length>0&&a.set("scheduleNames",e.scheduleNames.join(",")),e.jobStatuses&&e.jobStatuses.length>0&&a.set("jobStatuses",e.jobStatuses.join(",")),e.jobNames&&e.jobNames.length>0&&a.set("jobNames",e.jobNames.join(",")),e.queues&&e.queues.length>0&&a.set("queues",e.queues.join(",")),e.cacheOperations&&e.cacheOperations.length>0&&a.set("cacheOperations",e.cacheOperations.join(",")),e.mailStatuses&&e.mailStatuses.length>0&&a.set("mailStatuses",e.mailStatuses.join(",")),e.redisStatuses&&e.redisStatuses.length>0&&a.set("redisStatuses",e.redisStatuses.join(",")),e.redisCommands&&e.redisCommands.length>0&&a.set("redisCommands",e.redisCommands.join(",")),e.modelActions&&e.modelActions.length>0&&a.set("modelActions",e.modelActions.join(",")),e.entities&&e.entities.length>0&&a.set("entities",e.entities.join(",")),e.modelSources&&e.modelSources.length>0&&a.set("modelSources",e.modelSources.join(",")),e.notificationTypes&&e.notificationTypes.length>0&&a.set("notificationTypes",e.notificationTypes.join(",")),e.notificationStatuses&&e.notificationStatuses.length>0&&a.set("notificationStatuses",e.notificationStatuses.join(",")),e.viewFormats&&e.viewFormats.length>0&&a.set("viewFormats",e.viewFormats.join(",")),e.viewStatuses&&e.viewStatuses.length>0&&a.set("viewStatuses",e.viewStatuses.join(",")),e.commandStatuses&&e.commandStatuses.length>0&&a.set("commandStatuses",e.commandStatuses.join(",")),e.commandNames&&e.commandNames.length>0&&a.set("commandNames",e.commandNames.join(",")),e.gateNames&&e.gateNames.length>0&&a.set("gateNames",e.gateNames.join(",")),e.gateResults&&e.gateResults.length>0&&a.set("gateResults",e.gateResults.join(",")),e.batchStatuses&&e.batchStatuses.length>0&&a.set("batchStatuses",e.batchStatuses.join(",")),e.batchOperations&&e.batchOperations.length>0&&a.set("batchOperations",e.batchOperations.join(",")),e.dumpStatuses&&e.dumpStatuses.length>0&&a.set("dumpStatuses",e.dumpStatuses.join(",")),e.dumpOperations&&e.dumpOperations.length>0&&a.set("dumpOperations",e.dumpOperations.join(",")),e.dumpFormats&&e.dumpFormats.length>0&&a.set("dumpFormats",e.dumpFormats.join(",")),e.operationTypes&&e.operationTypes.length>0&&a.set("operationTypes",e.operationTypes.join(",")),e.operationNames&&e.operationNames.length>0&&a.set("operationNames",e.operationNames.join(",")),e.hasErrors!==void 0&&a.set("hasErrors",e.hasErrors.toString()),e.hasN1!==void 0&&a.set("hasN1",e.hasN1.toString()),e.tags&&e.tags.length>0&&a.set("tags",e.tags.join(",")),e.search&&a.set("search",e.search)}return P(`/entries/cursor?${a.toString()}`)}async function qs(s){const a=new URLSearchParams;return s&&a.set("type",s),P(`/entries/latest-sequence?${a.toString()}`)}async function $s(s,a){const e=new URLSearchParams;return e.set("afterSequence",s.toString()),a&&e.set("type",a),P(`/entries/check-new?${e.toString()}`)}async function zs(){return P("/storage/stats")}async function Is(){return P("/pruning/status")}async function Ks(){return P("/pruning/run",{method:"POST"})}async function Vs(s){return P(`/entries/${s}/resolve`,{method:"PATCH"})}async function Bs(s){return P(`/entries/${s}/unresolve`,{method:"PATCH"})}async function rs(s){return P("/recording/pause",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:s})})}async function ns(){return P("/recording/resume",{method:"POST"})}async function os(){return P("/recording/status")}function is(s){const a=r.useCallback(e=>{const o=e.target,l=o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable;for(const i of s){const{key:n,ctrl:c,meta:d,shift:y,alt:u,handler:m,preventDefault:f=!0}=i;if(l&&n.toLowerCase()!=="escape")continue;const j=e.key.toLowerCase()===n.toLowerCase(),v=y?e.shiftKey:!e.shiftKey,h=u?e.altKey:!e.altKey;if(c){if((e.ctrlKey||e.metaKey)&&j&&v&&h){f&&e.preventDefault(),m(e);return}continue}if(d){if(e.metaKey&&!e.ctrlKey&&j&&v&&h){f&&e.preventDefault(),m(e);return}continue}if(!e.ctrlKey&&!e.metaKey&&j&&v&&h){f&&e.preventDefault(),m(e);return}}},[s]);r.useEffect(()=>(document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}),[a])}const we=r.createContext(void 0);function ls({children:s}){const[a,e]=r.useState(null),[o,l]=r.useState(null),i=r.useRef(!0),n=r.useCallback(async()=>{try{const c=await ss();e(c.data),l(null)}catch(c){const d=c instanceof Error?c:new Error("Failed to fetch stats");l(d),console.error("Failed to fetch stats:",c),i.current&&q.error("Failed to load statistics")}finally{i.current=!1}},[]);return r.useEffect(()=>{n();const c=setInterval(n,1e4);return()=>clearInterval(c)},[n]),t.jsx(we.Provider,{value:{stats:a,error:o,refreshStats:n},children:s})}function cs(){const s=r.useContext(we);if(s===void 0)throw new Error("useStats must be used within a StatsProvider");return s}function ce(){const[s,a]=r.useState(null),[e,o]=r.useState(!1);r.useEffect(()=>{const i=async()=>{try{const c=await os();a(c.data)}catch(c){console.error("Failed to fetch recording status:",c)}};i();const n=setInterval(i,5e3);return()=>clearInterval(n)},[]);const l=async()=>{if(!(!s||e)){o(!0);try{if(s.isPaused){const i=await ns();a(i.data),q.success("Recording resumed")}else{const i=await rs();a(i.data),q.success("Recording paused")}}catch{q.error("Failed to toggle recording")}finally{o(!1)}}};return s?t.jsx("button",{onClick:l,disabled:e,className:`p-2.5 rounded-lg transition-colors ${s.isPaused?"text-yellow-600 hover:text-yellow-700 dark:text-yellow-400 dark:hover:text-yellow-300 hover:bg-yellow-50 dark:hover:bg-yellow-900/20":"text-green-600 hover:text-green-700 dark:text-green-400 dark:hover:text-green-300 hover:bg-green-50 dark:hover:bg-green-900/20"} ${e?"opacity-50 cursor-not-allowed":""}`,"aria-label":s.isPaused?"Resume recording":"Pause recording",title:s.isPaused?"Resume Recording":"Pause Recording",children:s.isPaused?t.jsx(Qt,{className:"h-5 w-5"}):t.jsx(Jt,{className:"h-5 w-5"})}):null}const de={dashboard:"text-primary-500",request:"text-blue-500",query:"text-purple-500",graphql:"text-fuchsia-500",exception:"text-red-500",log:"text-green-500",job:"text-yellow-500",schedule:"text-gray-500",batch:"text-lime-500",command:"text-slate-500",cache:"text-cyan-500",redis:"text-rose-500",model:"text-violet-500","http-client":"text-indigo-500",mail:"text-pink-500",notification:"text-orange-500",event:"text-emerald-500",view:"text-teal-500",gate:"text-amber-500",dump:"text-stone-500"},ue=[{name:"Overview",items:[{name:"Dashboard",href:"/",icon:Bt,colorKey:"dashboard"}]},{name:"Core",items:[{name:"Requests",href:"/requests",icon:At,colorKey:"request"},{name:"Queries",href:"/queries",icon:$t,colorKey:"query"},{name:"GraphQL",href:"/graphql",icon:It,colorKey:"graphql"},{name:"Exceptions",href:"/exceptions",icon:be,badge:"exceptions",colorKey:"exception"},{name:"Logs",href:"/logs",icon:zt,colorKey:"log"}]},{name:"Background",items:[{name:"Jobs",href:"/jobs",icon:Mt,colorKey:"job"},{name:"Schedule",href:"/schedule",icon:qt,colorKey:"schedule"},{name:"Batches",href:"/batches",icon:Gt,colorKey:"batch"},{name:"Commands",href:"/commands",icon:Yt,colorKey:"command"}]},{name:"Data",items:[{name:"Cache",href:"/cache",icon:ne,colorKey:"cache"},{name:"Redis",href:"/redis",icon:Dt,colorKey:"redis"},{name:"Models",href:"/models",icon:Vt,colorKey:"model"}]},{name:"Communication",items:[{name:"HTTP Client",href:"/http-client",icon:Kt,colorKey:"http-client"},{name:"Mail",href:"/mail",icon:Ft,colorKey:"mail"},{name:"Notifications",href:"/notifications",icon:Ot,colorKey:"notification"},{name:"Events",href:"/events",icon:Wt,colorKey:"event"}]},{name:"System",items:[{name:"Views",href:"/views",icon:Ut,colorKey:"view"},{name:"Gates",href:"/gates",icon:Xt,colorKey:"gate"},{name:"Dumps",href:"/dumps",icon:ne,colorKey:"dump"}]}];function ds(){const s=Ce(),[a,e]=r.useState(!1),{stats:o}=cs(),[l,i]=r.useState(()=>{if(typeof window<"u"){const h=localStorage.getItem("nestlens-collapsed-groups");return h?new Set(JSON.parse(h)):new Set}return new Set}),[n,c]=r.useState(()=>typeof window<"u"?document.documentElement.classList.contains("dark"):!1),[d,y]=r.useState(()=>{if(typeof window<"u"){const h=localStorage.getItem("nestlens-theme");if(h==="system"||h==="light"||h==="dark")return h}return"system"}),u=r.useCallback(h=>{i(k=>{const E=new Set(k);return E.has(h)?E.delete(h):E.add(h),localStorage.setItem("nestlens-collapsed-groups",JSON.stringify([...E])),E})},[]),m=r.useCallback(h=>{if(!o)return 0;switch(h){case"exceptions":return o.unresolvedExceptions??o.byType.exception??0;default:return 0}},[o]),f=r.useCallback(h=>{let k=!1;h==="system"?k=window.matchMedia("(prefers-color-scheme: dark)").matches:k=h==="dark",k?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),c(k)},[]),j=r.useCallback(()=>{const h=n?"light":"dark";y(h),localStorage.setItem("nestlens-theme",h),f(h)},[n,f]),v=r.useCallback(async()=>{window.confirm("Are you sure you want to clear all entries?")&&(await as(),q.success("All entries cleared"),window.location.reload())},[]);return r.useEffect(()=>{if(f(d),d==="system"){const h=window.matchMedia("(prefers-color-scheme: dark)"),k=E=>{const b=E.matches;b?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),c(b)};return h.addEventListener("change",k),()=>h.removeEventListener("change",k)}},[d,f]),is([{key:"k",ctrl:!0,handler:()=>v()},{key:"Escape",handler:()=>{a&&e(!1)},preventDefault:!1},{key:"d",ctrl:!0,handler:()=>j()}]),t.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[t.jsxs("div",{className:`fixed inset-0 z-50 lg:hidden ${a?"":"hidden"}`,children:[t.jsx("div",{className:"fixed inset-0 bg-gray-900/80",onClick:()=>e(!1)}),t.jsxs("div",{id:"mobile-sidebar","data-testid":"mobile-sidebar",className:"fixed inset-y-0 left-0 w-64 bg-white dark:bg-gray-800 flex flex-col",children:[t.jsxs("div",{className:"flex h-16 items-center justify-between px-4 border-b border-gray-200 dark:border-gray-700",children:[t.jsxs(D,{to:"/",className:"flex items-center space-x-2",children:[t.jsx(U,{className:"h-8 w-8 text-primary-600"}),t.jsx("span",{className:"text-xl font-bold text-gray-900 dark:text-white",children:"NestLens"})]}),t.jsx("button",{onClick:()=>e(!1),className:"text-gray-500 hover:text-gray-700 dark:text-gray-400","aria-label":"Close sidebar",children:t.jsx(es,{className:"h-6 w-6","aria-hidden":"true"})})]}),t.jsx("nav",{className:"flex-1 min-h-0 overflow-y-auto py-4 px-3",children:ue.map((h,k)=>{const E=l.has(h.name);return t.jsxs("div",{className:k>0?"mt-4":"",children:[t.jsxs("button",{onClick:()=>u(h.name),className:"flex items-center justify-between w-full px-2 py-1.5 text-xs font-semibold text-gray-400 dark:text-gray-500 uppercase tracking-wider hover:text-gray-600 dark:hover:text-gray-400 transition-colors","aria-expanded":!E,"aria-controls":`nav-group-${h.name.toLowerCase().replace(/\s+/g,"-")}`,children:[t.jsx("span",{children:h.name}),E?t.jsx(ae,{className:"h-3 w-3","aria-hidden":"true"}):t.jsx(se,{className:"h-3 w-3","aria-hidden":"true"})]}),!E&&t.jsx("div",{className:"mt-1 space-y-0.5",children:h.items.map(b=>{const N=b.href==="/"?s.pathname==="/":s.pathname.startsWith(b.href),C="badge"in b?m(b.badge):0;return t.jsxs(D,{to:b.href,"aria-current":N?"page":void 0,className:`group flex items-center justify-between px-3 py-2 rounded-lg transition-colors ${N?"bg-primary-50 text-primary-700 dark:bg-primary-900/50 dark:text-primary-200 font-medium":"text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-white"}`,onClick:()=>e(!1),children:[t.jsxs("div",{className:"flex items-center space-x-3",children:[t.jsx(b.icon,{className:`h-4 w-4 ${de[b.colorKey]||"text-gray-400"}`}),t.jsx("span",{className:"text-sm",children:b.name})]}),C>0&&t.jsx("span",{className:"inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-xs font-medium bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-400 rounded-full",children:C>99?"99+":C})]},b.name)})})]},h.name)})}),t.jsx("div",{className:"flex-shrink-0 p-3 border-t border-gray-200 dark:border-gray-700",children:t.jsxs("div",{className:"flex items-center justify-center gap-1",children:[t.jsx(ce,{}),t.jsx("button",{onClick:j,className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":n?"Switch to light mode":"Switch to dark mode",children:n?t.jsx(ie,{className:"h-5 w-5"}):t.jsx(oe,{className:"h-5 w-5"})}),t.jsx("button",{onClick:v,className:"p-2.5 text-gray-500 hover:text-red-600 dark:text-gray-400 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-lg transition-colors","aria-label":"Clear all data",children:t.jsx(le,{className:"h-5 w-5"})}),t.jsx("a",{href:"https://github.com/mogretici/nestlens",target:"_blank",rel:"noopener noreferrer",className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":"Documentation",children:t.jsx(re,{className:"h-5 w-5"})})]})})]})]}),t.jsx("div",{"data-testid":"sidebar",className:"hidden lg:fixed lg:inset-y-0 lg:flex lg:w-64 lg:flex-col",children:t.jsxs("div",{className:"flex flex-col h-full bg-white dark:bg-gray-800 border-r border-gray-200 dark:border-gray-700",children:[t.jsx("div",{className:"flex h-16 items-center px-4 border-b border-gray-200 dark:border-gray-700",children:t.jsxs(D,{to:"/",className:"flex items-center space-x-2.5",children:[t.jsx("div",{className:"p-1.5 bg-primary-100 dark:bg-primary-900/50 rounded-lg",children:t.jsx(U,{className:"h-6 w-6 text-primary-600 dark:text-primary-400"})}),t.jsxs("div",{children:[t.jsx("span",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"NestLens"}),t.jsxs("span",{className:"hidden xl:inline text-xs text-gray-400 dark:text-gray-500 ml-1.5",children:["v","0.8.4"]})]})]})}),t.jsx("nav",{className:"flex-1 min-h-0 overflow-y-auto py-4 px-3",children:ue.map((h,k)=>{const E=l.has(h.name);return t.jsxs("div",{className:k>0?"mt-6":"",children:[t.jsxs("button",{onClick:()=>u(h.name),className:"flex items-center justify-between w-full px-2 py-1.5 text-[11px] font-semibold text-gray-400 dark:text-gray-500 uppercase tracking-wider hover:text-gray-600 dark:hover:text-gray-400 transition-colors","aria-expanded":!E,"aria-controls":`desktop-nav-group-${h.name.toLowerCase().replace(/\s+/g,"-")}`,children:[t.jsx("span",{children:h.name}),E?t.jsx(ae,{className:"h-3 w-3","aria-hidden":"true"}):t.jsx(se,{className:"h-3 w-3","aria-hidden":"true"})]}),!E&&t.jsx("div",{className:"mt-1 space-y-0.5",children:h.items.map(b=>{const N=b.href==="/"?s.pathname==="/":s.pathname.startsWith(b.href),C="badge"in b?m(b.badge):0;return t.jsxs(D,{to:b.href,"aria-current":N?"page":void 0,className:`group flex items-center justify-between px-3 py-2 rounded-lg transition-all duration-150 ${N?"bg-primary-50 text-primary-700 dark:bg-primary-900/50 dark:text-primary-200 font-medium shadow-sm":"text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-gray-800/50 hover:text-gray-900 dark:hover:text-white"}`,children:[t.jsxs("div",{className:"flex items-center space-x-3",children:[t.jsx(b.icon,{className:`h-[18px] w-[18px] ${de[b.colorKey]||"text-gray-400"}`}),t.jsx("span",{className:"text-sm",children:b.name})]}),C>0&&t.jsx("span",{className:`inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-xs font-semibold rounded-full transition-colors ${N?"bg-primary-200 text-primary-800 dark:bg-primary-800 dark:text-primary-200":"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-400"}`,children:C>99?"99+":C})]},b.name)})})]},h.name)})}),t.jsx("div",{className:"flex-shrink-0 p-3 border-t border-gray-200 dark:border-gray-700",children:t.jsxs("div",{className:"flex items-center justify-center gap-1",children:[t.jsx(ce,{}),t.jsx("button",{onClick:j,className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":n?"Switch to light mode":"Switch to dark mode",title:n?"Light Mode (⌘D)":"Dark Mode (⌘D)",children:n?t.jsx(ie,{className:"h-5 w-5"}):t.jsx(oe,{className:"h-5 w-5"})}),t.jsx("button",{onClick:v,className:"p-2.5 text-gray-500 hover:text-red-600 dark:text-gray-400 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-lg transition-colors","aria-label":"Clear all data",title:"Clear All Data (⌘K)",children:t.jsx(le,{className:"h-5 w-5"})}),t.jsx("a",{href:"https://github.com/mogretici/nestlens",target:"_blank",rel:"noopener noreferrer",className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":"Documentation",title:"Documentation",children:t.jsx(re,{className:"h-5 w-5"})})]})})]})}),t.jsxs("div",{className:"lg:pl-64",children:[t.jsxs("header",{className:"sticky top-0 z-40 flex h-14 items-center gap-4 border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 px-4 lg:hidden",children:[t.jsx("button",{onClick:()=>e(!0),className:"text-gray-500 hover:text-gray-700 dark:text-gray-400","aria-expanded":a,"aria-controls":"mobile-sidebar","aria-label":"Open navigation menu",children:t.jsx(Ht,{className:"h-6 w-6","aria-hidden":"true"})}),t.jsxs(D,{to:"/",className:"flex items-center space-x-2",children:[t.jsx(U,{className:"h-6 w-6 text-primary-600"}),t.jsx("span",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"NestLens"})]})]}),t.jsx("main",{className:"p-4 lg:p-6",children:t.jsx(Re,{})})]})]})}function x(){return t.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:t.jsxs("div",{className:"flex flex-col items-center gap-3",children:[t.jsx("div",{className:"animate-spin rounded-full h-10 w-10 border-b-2 border-primary-600 dark:border-primary-400"}),t.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Loading..."})]})})}const us=r.lazy(()=>w(()=>import("./DashboardPage-D_boxQLL.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),hs=r.lazy(()=>w(()=>import("./RequestsPage-Dqymx42m.js"),__vite__mapDeps([5,1,2,6,7,8,9]),import.meta.url)),ms=r.lazy(()=>w(()=>import("./QueriesPage-DWPD6H4n.js"),__vite__mapDeps([10,1,2,6,7,8,9,3]),import.meta.url)),ps=r.lazy(()=>w(()=>import("./ExceptionsPage-DUAve13R.js"),__vite__mapDeps([11,1,2,6,7,8,9,12]),import.meta.url)),xs=r.lazy(()=>w(()=>import("./LogsPage-CCQCPtf2.js"),__vite__mapDeps([13,1,2,6,7,8,9]),import.meta.url)),fs=r.lazy(()=>w(()=>import("./EventsPage-DyWBq1Uz.js"),__vite__mapDeps([14,1,2,6,9]),import.meta.url)),ys=r.lazy(()=>w(()=>import("./JobsPage-Cp5LjuZV.js"),__vite__mapDeps([15,1,2,6,9]),import.meta.url)),gs=r.lazy(()=>w(()=>import("./CachePage-D7Kbnbd0.js"),__vite__mapDeps([16,1,2,6,9]),import.meta.url)),js=r.lazy(()=>w(()=>import("./MailPage-F1fRQOqV.js"),__vite__mapDeps([17,1,2,6,9]),import.meta.url)),bs=r.lazy(()=>w(()=>import("./SchedulePage-BqqBFGe3.js"),__vite__mapDeps([18,1,19,2,6,9]),import.meta.url)),ks=r.lazy(()=>w(()=>import("./HttpClientPage-9bBt0DkK.js"),__vite__mapDeps([20,1,2,6,9]),import.meta.url)),vs=r.lazy(()=>w(()=>import("./RedisPage-D4gL25Ig.js"),__vite__mapDeps([21,1,2,6,9]),import.meta.url)),ws=r.lazy(()=>w(()=>import("./ModelsPage-B7KhpXXG.js"),__vite__mapDeps([22,1,2,6,9]),import.meta.url)),Ss=r.lazy(()=>w(()=>import("./NotificationsPage-CkMMZzIi.js"),__vite__mapDeps([23,1,2,6,9]),import.meta.url)),_s=r.lazy(()=>w(()=>import("./ViewsPage-CRRuOZy9.js"),__vite__mapDeps([24,1,2,6,9,25]),import.meta.url)),Es=r.lazy(()=>w(()=>import("./CommandsPage-Dka-rd2n.js"),__vite__mapDeps([26,1,2,6,9]),import.meta.url)),Ns=r.lazy(()=>w(()=>import("./GatesPage-grMG9-Pd.js"),__vite__mapDeps([27,1,2,6,9]),import.meta.url)),Ps=r.lazy(()=>w(()=>import("./BatchesPage-Be2pyBW1.js"),__vite__mapDeps([28,1,2,6,9]),import.meta.url)),Cs=r.lazy(()=>w(()=>import("./DumpsPage-CBdtECHX.js"),__vite__mapDeps([29,1,2,6,9]),import.meta.url)),Rs=r.lazy(()=>w(()=>import("./GraphQLPage-DMiSp1JA.js"),__vite__mapDeps([30,1,2,7,8,6,9]),import.meta.url)),S=r.lazy(()=>w(()=>import("./EntryDetailPage-bchF1CyH.js"),__vite__mapDeps([31,1,2,9,8,3,12,19,4,25]),import.meta.url));function Ls(){return t.jsx(Le,{children:t.jsxs(p,{path:"/",element:t.jsx(ds,{}),children:[t.jsx(p,{index:!0,element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(us,{})})}),t.jsx(p,{path:"requests",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(hs,{})})}),t.jsx(p,{path:"queries",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ms,{})})}),t.jsx(p,{path:"exceptions",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ps,{})})}),t.jsx(p,{path:"logs",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(xs,{})})}),t.jsx(p,{path:"events",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(fs,{})})}),t.jsx(p,{path:"jobs",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ys,{})})}),t.jsx(p,{path:"cache",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(gs,{})})}),t.jsx(p,{path:"mail",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(js,{})})}),t.jsx(p,{path:"schedule",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(bs,{})})}),t.jsx(p,{path:"http-client",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ks,{})})}),t.jsx(p,{path:"redis",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(vs,{})})}),t.jsx(p,{path:"models",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ws,{})})}),t.jsx(p,{path:"notifications",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Ss,{})})}),t.jsx(p,{path:"views",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(_s,{})})}),t.jsx(p,{path:"commands",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Es,{})})}),t.jsx(p,{path:"gates",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Ns,{})})}),t.jsx(p,{path:"batches",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Ps,{})})}),t.jsx(p,{path:"dumps",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Cs,{})})}),t.jsx(p,{path:"graphql",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Rs,{})})}),t.jsx(p,{path:"requests/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"queries/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"exceptions/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"logs/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"events/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"jobs/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"cache/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"mail/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"schedule/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"http-client/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"redis/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"models/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"notifications/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"views/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"commands/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"gates/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"batches/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"dumps/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"graphql/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"entries/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"*",element:t.jsx(Te,{to:"/",replace:!0})})]})})}class Ts extends r.Component{constructor(){super(...arguments);z(this,"state",{hasError:!1});z(this,"handleReload",()=>{window.location.reload()});z(this,"handleReset",()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})})}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("ErrorBoundary caught an error:",e,o),this.setState({errorInfo:o})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 dark:bg-gray-900 p-4",children:t.jsxs("div",{className:"max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 text-center",children:[t.jsx("div",{className:"mx-auto w-12 h-12 flex items-center justify-center rounded-full bg-red-100 dark:bg-red-900/30 mb-4",children:t.jsx(be,{className:"h-6 w-6 text-red-600 dark:text-red-400"})}),t.jsx("h1",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Something went wrong"}),t.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:"An unexpected error occurred. Please try refreshing the page."}),this.state.error&&t.jsx("div",{className:"mb-4 p-3 bg-red-50 dark:bg-red-900/20 rounded-lg text-left",children:t.jsx("p",{className:"text-sm font-mono text-red-600 dark:text-red-400 break-all",children:this.state.error.message})}),t.jsxs("div",{className:"flex gap-3 justify-center",children:[t.jsx("button",{onClick:this.handleReset,className:"px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 rounded-lg transition-colors",children:"Try Again"}),t.jsxs("button",{onClick:this.handleReload,className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-white bg-primary-600 hover:bg-primary-700 rounded-lg transition-colors",children:[t.jsx(Zt,{className:"h-4 w-4"}),"Refresh Page"]})]}),!1]})}):this.props.children}}ze.createRoot(document.getElementById("root")).render(t.jsx(Ae.StrictMode,{children:t.jsx(Ts,{children:t.jsx(Oe,{basename:ke(),children:t.jsxs(ls,{children:[t.jsx(Ls,{}),t.jsx(Nt,{position:"bottom-right",toastOptions:{duration:3e3,style:{background:"#1f2937",color:"#f3f4f6",borderRadius:"0.5rem"},success:{iconTheme:{primary:"#10b981",secondary:"#f3f4f6"}},error:{iconTheme:{primary:"#ef4444",secondary:"#f3f4f6"}}}})]})})})}));export{At as A,Mt as B,qt as C,$t as D,zt as F,It as G,ne as H,Vt as L,Ft as M,Gt as P,Wt as R,Xt as S,be as T,es as X,Yt as a,Dt as b,g as c,Kt as d,Ot as e,Ut as f,ae as g,le as h,Zt as i,t as j,zs as k,Is as l,Ms as m,Bs as n,Vs as o,ts as p,qs as q,Ks as r,$s as s,se as t,cs as u,Qt as v,Ds as w,q as z};
@@ -1,4 +1,4 @@
1
- import{c}from"./index-BzXsymsx.js";/**
1
+ import{c}from"./index-DbQfemEm.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as q,j as t,g as A}from"./index-BzXsymsx.js";import{b as d}from"./vendor-DBTT3jXp.js";import{g as b}from"./ClickableBadge-WXTZ8mFZ.js";/**
1
+ import{c as q,j as t,g as A}from"./index-DbQfemEm.js";import{b as d}from"./vendor-DBTT3jXp.js";import{g as b}from"./ClickableBadge-BMv7BT5d.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as a}from"./index-BzXsymsx.js";/**
1
+ import{c as a}from"./index-DbQfemEm.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="./nestlens-icon.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>NestLens - Debug Dashboard</title>
8
- <script type="module" crossorigin src="./assets/index-BzXsymsx.js"></script>
8
+ <script type="module" crossorigin src="./assets/index-DbQfemEm.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="./assets/vendor-DBTT3jXp.js">
10
10
  <link rel="stylesheet" crossorigin href="./assets/index-FAG28XEI.css">
11
11
  </head>
package/dist/index.d.ts CHANGED
@@ -22,4 +22,3 @@ export { NESTLENS_MAILER_SERVICE } from './watchers/mail.watcher';
22
22
  export { NESTLENS_GATE_SERVICE } from './watchers/gate.watcher';
23
23
  export { NESTLENS_COMMAND_BUS } from './watchers/command.watcher';
24
24
  export { NESTLENS_BATCH_PROCESSOR } from './watchers/batch.watcher';
25
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -73,4 +73,3 @@ var command_watcher_1 = require("./watchers/command.watcher");
73
73
  Object.defineProperty(exports, "NESTLENS_COMMAND_BUS", { enumerable: true, get: function () { return command_watcher_1.NESTLENS_COMMAND_BUS; } });
74
74
  var batch_watcher_1 = require("./watchers/batch.watcher");
75
75
  Object.defineProperty(exports, "NESTLENS_BATCH_PROCESSOR", { enumerable: true, get: function () { return batch_watcher_1.NESTLENS_BATCH_PROCESSOR; } });
76
- //# sourceMappingURL=index.js.map
@@ -432,4 +432,3 @@ export declare const NESTLENS_CONFIG: unique symbol;
432
432
  * Internal API path prefix - used to avoid conflicts with user routes
433
433
  */
434
434
  export declare const NESTLENS_API_PREFIX = "__nestlens__";
435
- //# sourceMappingURL=nestlens.config.d.ts.map
@@ -62,4 +62,3 @@ exports.NESTLENS_CONFIG = Symbol('NESTLENS_CONFIG');
62
62
  * Internal API path prefix - used to avoid conflicts with user routes
63
63
  */
64
64
  exports.NESTLENS_API_PREFIX = '__nestlens__';
65
- //# sourceMappingURL=nestlens.config.js.map
@@ -18,4 +18,3 @@ export declare class NestLensModule implements OnModuleInit {
18
18
  private static mergeConfig;
19
19
  onModuleInit(): Promise<void>;
20
20
  }
21
- //# sourceMappingURL=nestlens.module.d.ts.map
@@ -294,4 +294,3 @@ NestLensModule.logger = new common_1.Logger('NestLens');
294
294
  exports.NestLensModule = NestLensModule = NestLensModule_1 = __decorate([
295
295
  (0, common_1.Module)({})
296
296
  ], NestLensModule);
297
- //# sourceMappingURL=nestlens.module.js.map
@@ -397,4 +397,3 @@ export interface EntryStats {
397
397
  exceptions?: number;
398
398
  unresolvedExceptions?: number;
399
399
  }
400
- //# sourceMappingURL=entry.types.d.ts.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=entry.types.js.map
@@ -165,4 +165,3 @@ export interface ActiveSubscription {
165
165
  /** Request ID for correlation */
166
166
  requestId?: string;
167
167
  }
168
- //# sourceMappingURL=graphql.types.d.ts.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=graphql.types.js.map
@@ -2,4 +2,3 @@ export * from './entry.types';
2
2
  export * from './request.types';
3
3
  export * from './tag.types';
4
4
  export * from './graphql.types';
5
- //# sourceMappingURL=index.d.ts.map
@@ -18,4 +18,3 @@ __exportStar(require("./entry.types"), exports);
18
18
  __exportStar(require("./request.types"), exports);
19
19
  __exportStar(require("./tag.types"), exports);
20
20
  __exportStar(require("./graphql.types"), exports);
21
- //# sourceMappingURL=index.js.map
@@ -6,4 +6,3 @@ import type { Request } from 'express';
6
6
  export interface NestLensRequest extends Request {
7
7
  nestlensRequestId?: string;
8
8
  }
9
- //# sourceMappingURL=request.types.d.ts.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=request.types.js.map
@@ -29,4 +29,3 @@ export interface TagFilter {
29
29
  tags?: string[];
30
30
  tagLogic?: 'AND' | 'OR';
31
31
  }
32
- //# sourceMappingURL=tag.types.d.ts.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=tag.types.js.map
@@ -43,4 +43,3 @@ export declare class BatchWatcher implements OnModuleInit {
43
43
  private parseResult;
44
44
  private getBatchSize;
45
45
  }
46
- //# sourceMappingURL=batch.watcher.d.ts.map
@@ -182,4 +182,3 @@ exports.BatchWatcher = BatchWatcher = BatchWatcher_1 = __decorate([
182
182
  __param(2, (0, common_1.Inject)(exports.NESTLENS_BATCH_PROCESSOR)),
183
183
  __metadata("design:paramtypes", [collector_service_1.CollectorService, Object, Object])
184
184
  ], BatchWatcher);
185
- //# sourceMappingURL=batch.watcher.js.map
@@ -26,4 +26,3 @@ export declare class CacheWatcher implements OnModuleInit {
26
26
  private captureValue;
27
27
  }
28
28
  export {};
29
- //# sourceMappingURL=cache.watcher.d.ts.map
@@ -156,4 +156,3 @@ exports.CacheWatcher = CacheWatcher = CacheWatcher_1 = __decorate([
156
156
  __param(2, (0, common_1.Inject)(CACHE_MANAGER)),
157
157
  __metadata("design:paramtypes", [collector_service_1.CollectorService, Object, Object])
158
158
  ], CacheWatcher);
159
- //# sourceMappingURL=cache.watcher.js.map
@@ -32,4 +32,3 @@ export declare class CommandWatcher implements OnModuleInit {
32
32
  private extractMetadata;
33
33
  }
34
34
  export {};
35
- //# sourceMappingURL=command.watcher.d.ts.map
@@ -170,4 +170,3 @@ exports.CommandWatcher = CommandWatcher = CommandWatcher_1 = __decorate([
170
170
  __param(2, (0, common_1.Inject)(exports.NESTLENS_COMMAND_BUS)),
171
171
  __metadata("design:paramtypes", [collector_service_1.CollectorService, Object, Object])
172
172
  ], CommandWatcher);
173
- //# sourceMappingURL=command.watcher.js.map
@@ -47,4 +47,3 @@ export declare class DumpWatcher implements OnModuleInit {
47
47
  private extractNumber;
48
48
  private extractBoolean;
49
49
  }
50
- //# sourceMappingURL=dump.watcher.d.ts.map
@@ -235,4 +235,3 @@ exports.DumpWatcher = DumpWatcher = DumpWatcher_1 = __decorate([
235
235
  __param(2, (0, common_1.Inject)(exports.NESTLENS_DUMP_SERVICE)),
236
236
  __metadata("design:paramtypes", [collector_service_1.CollectorService, Object, Object])
237
237
  ], DumpWatcher);
238
- //# sourceMappingURL=dump.watcher.js.map
@@ -15,4 +15,3 @@ export declare class EventWatcher implements OnModuleInit {
15
15
  private collectEntry;
16
16
  private capturePayload;
17
17
  }
18
- //# sourceMappingURL=event.watcher.d.ts.map
@@ -125,4 +125,3 @@ exports.EventWatcher = EventWatcher = EventWatcher_1 = __decorate([
125
125
  __param(2, (0, common_1.Inject)(exports.NESTLENS_EVENT_EMITTER)),
126
126
  __metadata("design:paramtypes", [collector_service_1.CollectorService, Object, Object])
127
127
  ], EventWatcher);
128
- //# sourceMappingURL=event.watcher.js.map
@@ -16,4 +16,3 @@ export declare class ExceptionWatcher implements ExceptionFilter {
16
16
  private hasErrorCode;
17
17
  private getExceptionContext;
18
18
  }
19
- //# sourceMappingURL=exception.watcher.d.ts.map
@@ -134,4 +134,3 @@ exports.ExceptionWatcher = ExceptionWatcher = __decorate([
134
134
  __metadata("design:paramtypes", [collector_service_1.CollectorService, Object, core_1.HttpAdapterHost,
135
135
  core_1.ApplicationConfig])
136
136
  ], ExceptionWatcher);
137
- //# sourceMappingURL=exception.watcher.js.map
@@ -35,4 +35,3 @@ export declare class GateWatcher implements OnModuleInit {
35
35
  private extractSubjectName;
36
36
  private captureContext;
37
37
  }
38
- //# sourceMappingURL=gate.watcher.d.ts.map
@@ -197,4 +197,3 @@ exports.GateWatcher = GateWatcher = GateWatcher_1 = __decorate([
197
197
  __param(2, (0, common_1.Inject)(exports.NESTLENS_GATE_SERVICE)),
198
198
  __metadata("design:paramtypes", [collector_service_1.CollectorService, Object, Object])
199
199
  ], GateWatcher);
200
- //# sourceMappingURL=gate.watcher.js.map
@@ -42,4 +42,3 @@ export declare class NestLensApolloPlugin implements OnModuleInit {
42
42
  */
43
43
  isInitialized(): boolean;
44
44
  }
45
- //# sourceMappingURL=apollo-plugin.provider.d.ts.map