@lunora/studio 1.0.0-alpha.4 → 1.0.0-alpha.41

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 (187) hide show
  1. package/LICENSE.md +6 -0
  2. package/__assets__/package-og.svg +1 -1
  3. package/dist/index.d.ts +33 -18
  4. package/dist/index.js +29 -29
  5. package/dist/mount.d.ts +1 -1
  6. package/dist/mount.js +3 -2
  7. package/dist/{packem_shared/ApiTab-W3no0KOj.js → packem_chunks/ApiTab.js} +5 -5
  8. package/dist/{packem_shared/AuditPanel-Bq4o_IqT.js → packem_chunks/AuditPanel.js} +29 -41
  9. package/dist/{packem_shared/ExportImportPanel-dxY56TDF.js → packem_chunks/ExportImportPanel.js} +16 -11
  10. package/dist/{packem_shared/FileBrowser-Dhy4zES8.js → packem_chunks/FileBrowser.js} +15 -15
  11. package/dist/{packem_shared/FunctionRunner--fQJRPAD.js → packem_chunks/FunctionRunner.js} +10 -10
  12. package/dist/{packem_shared/FunctionStatsPanel-BjRUA_G3.js → packem_chunks/FunctionStatsPanel.js} +153 -208
  13. package/dist/{packem_shared/HealthPanel-PxclMWmA.js → packem_chunks/HealthPanel.js} +37 -29
  14. package/dist/{packem_shared/InsightsPanel-CWS_C-xW.js → packem_chunks/InsightsPanel.js} +108 -69
  15. package/dist/{packem_shared/LogsPanel-CTW8CFcM.js → packem_chunks/LogsPanel.js} +46 -58
  16. package/dist/{packem_shared/MailPanel-BwkvfIHF.js → packem_chunks/MailPanel.js} +45 -139
  17. package/dist/{packem_shared/MetricsPanel-BLuOhZQ4.js → packem_chunks/MetricsPanel.js} +41 -322
  18. package/dist/{packem_shared/MigrationsPanel-DT3lnwHF.js → packem_chunks/MigrationsPanel.js} +44 -51
  19. package/dist/{packem_shared/PitrPanel-CdErL7EJ.js → packem_chunks/PitrPanel.js} +9 -9
  20. package/dist/{packem_shared/SchemaViewer-LJDcmNIO.js → packem_chunks/SchemaViewer.js} +17 -16
  21. package/dist/{packem_shared/SecurityAdvisorPanel-C_ETsPih.js → packem_chunks/SecurityAdvisorPanel.js} +47 -31
  22. package/dist/packem_chunks/SettingsPanel.js +391 -0
  23. package/dist/{packem_shared/sql-editor-panel-BFRpzj6r.js → packem_chunks/SqlEditorPanel.js} +158 -387
  24. package/dist/{packem_shared/TableEditor-ChfUOZec.js → packem_chunks/TableEditor.js} +10 -68
  25. package/dist/packem_chunks/analytics-panel.js +261 -0
  26. package/dist/packem_chunks/auth-config-panel.js +365 -0
  27. package/dist/packem_chunks/auth-sessions-panel.js +175 -0
  28. package/dist/packem_chunks/containers-panel.js +247 -0
  29. package/dist/packem_chunks/dashboards-panel.js +780 -0
  30. package/dist/packem_chunks/fanout-panel.js +482 -0
  31. package/dist/packem_chunks/flags-panel.js +176 -0
  32. package/dist/packem_chunks/kv-browser.js +1896 -0
  33. package/dist/packem_chunks/log-drains-panel.js +273 -0
  34. package/dist/packem_chunks/organizations-panel.js +3178 -0
  35. package/dist/packem_chunks/payments-panel.js +186 -0
  36. package/dist/packem_chunks/permissions-panel.js +805 -0
  37. package/dist/packem_chunks/queues-panel.js +1075 -0
  38. package/dist/packem_chunks/rls-panel.js +315 -0
  39. package/dist/packem_chunks/schedule-panel.js +831 -0
  40. package/dist/packem_chunks/sparkline.js +79 -0
  41. package/dist/packem_chunks/storage-rules-panel.js +140 -0
  42. package/dist/packem_chunks/subscriptions-panel.js +238 -0
  43. package/dist/packem_chunks/users-panel.js +1731 -0
  44. package/dist/packem_chunks/vector-browser.js +281 -0
  45. package/dist/packem_chunks/workflows-panel.js +562 -0
  46. package/dist/packem_shared/{ADMIN_FUNCTIONS-DmBqMZ-z.js → ADMIN_FUNCTIONS-BHHJi3Gb.js} +7 -0
  47. package/dist/packem_shared/{ApiDocsPanel-C5-yJ1p7.js → ApiDocsPanel-CBma-lnp.js} +2 -2
  48. package/dist/packem_shared/{ApiReferencePanel-1vubqG5s.js → ApiReferencePanel-CQM3pPN7.js} +2 -1
  49. package/dist/packem_shared/{CommandPalette-BtgkBzZI.js → CommandPalette-X2tkbyHk.js} +1 -1
  50. package/dist/packem_shared/{DataBrowser-CtBe1So9.js → DataBrowser-D2ywrdId.js} +198 -247
  51. package/dist/packem_shared/{GlobalDataBrowser-BTEmGrph.js → GlobalDataBrowser-BkTPLzAY.js} +37 -66
  52. package/dist/packem_shared/HomePanel-D1Q9LZgK.js +14 -0
  53. package/dist/packem_shared/{OpenRpcReferencePanel-vbcYbv3V.js → OpenRpcReferencePanel-Dno-hfDb.js} +2 -1
  54. package/dist/packem_shared/{ScheduledJobs-CabfKbyM.js → ScheduledJobs-Ctw4jYtU.js} +163 -60
  55. package/dist/packem_shared/Studio-lJhzDAze.js +16 -0
  56. package/dist/packem_shared/{StudioApp-CHOZA-z-.js → StudioApp-DiMkupvZ.js} +276 -11
  57. package/dist/packem_shared/{advisor-view-CGcfMiPq.js → advisor-view-BX8OhG0w.js} +6 -6
  58. package/dist/packem_shared/alert-CdAET2K_.js +68 -0
  59. package/dist/packem_shared/{app.d-CCmwDEVs.d.ts → app.d-CNLRTrWw.d.ts} +1 -1
  60. package/dist/packem_shared/{bar-chart-CzJAgqkp.js → bar-chart-DSwcWIRy.js} +5 -4
  61. package/dist/packem_shared/browser-storage-BTrX4y3B.js +215 -0
  62. package/dist/packem_shared/{cf-links-2cktDedA.js → cf-links-BZfRdxSE.js} +1 -1
  63. package/dist/packem_shared/{data-grid-B5CaV3wS.js → data-grid-CdXztApG.js} +1 -1
  64. package/dist/packem_shared/data-view-params-Cd6yRVbv.js +96 -0
  65. package/dist/packem_shared/error-alert-CXjqyGw9.js +114 -0
  66. package/dist/packem_shared/{grid-features-CzUfqgsM.js → grid-features-BF-KBDFz.js} +131 -163
  67. package/dist/packem_shared/home-panel-TFcRf9Ui.js +1889 -0
  68. package/dist/packem_shared/{internal-rXJEAhXS.js → internal-CYcbqMjX.js} +44 -3
  69. package/dist/packem_shared/modal-shell-hyaJvIJ6.js +100 -0
  70. package/dist/packem_shared/{reference-view-B4E49Lip.js → reference-view-DUiJcILV.js} +6 -45
  71. package/dist/packem_shared/scroll-area-DLhcy-ml.js +93 -0
  72. package/dist/packem_shared/select-UkNYCT3s.js +273 -0
  73. package/dist/packem_shared/skeleton-CGhL0p20.js +45 -0
  74. package/dist/packem_shared/{sparkline-10dG-_f0.js → sparkline-BnA1kC9X.js} +1 -1
  75. package/dist/packem_shared/studio-Dh9UlaF_.js +4015 -0
  76. package/dist/packem_shared/{table-_RzNvy3R.js → table-DsCa9Qp9.js} +1 -1
  77. package/dist/packem_shared/{table-list-sidebar-Bg7uzbvC.js → table-list-sidebar-UVIXQJdU.js} +1 -1
  78. package/dist/packem_shared/use-admin-query-CfHYWx5n.js +106 -0
  79. package/dist/packem_shared/use-async-submit-DJQiPc-_.js +91 -0
  80. package/dist/standalone/chunk-25AYY4H7.js +2 -0
  81. package/dist/standalone/chunk-2ANAF4ZM.js +1 -0
  82. package/dist/standalone/chunk-2K47A3P6.js +1 -0
  83. package/dist/standalone/chunk-2NGUNNGW.js +1 -0
  84. package/dist/standalone/chunk-3CJW6NWG.js +4 -0
  85. package/dist/standalone/chunk-3OA7PECS.js +6 -0
  86. package/dist/standalone/chunk-3OIHOXVV.js +1 -0
  87. package/dist/standalone/chunk-447TAUFD.js +1 -0
  88. package/dist/standalone/chunk-4QHKBC77.js +1 -0
  89. package/dist/standalone/chunk-5C4TSNE6.js +1 -0
  90. package/dist/standalone/chunk-5OIBXYZM.js +1 -0
  91. package/dist/standalone/chunk-6HSHEMZV.js +76 -0
  92. package/dist/standalone/chunk-6JIZ34MB.js +3 -0
  93. package/dist/standalone/chunk-6VO23MMW.js +4 -0
  94. package/dist/standalone/chunk-7MVSQS7B.js +1 -0
  95. package/dist/standalone/chunk-7TJJXVSE.js +1 -0
  96. package/dist/standalone/chunk-7YXOPTWI.js +1 -0
  97. package/dist/standalone/chunk-AHILM3ZP.js +1 -0
  98. package/dist/standalone/chunk-BGXOXASQ.js +1 -0
  99. package/dist/standalone/chunk-BJGBHGK3.js +1 -0
  100. package/dist/standalone/chunk-BOXSWNXZ.js +1 -0
  101. package/dist/standalone/chunk-BX5MKYOC.js +1 -0
  102. package/dist/standalone/chunk-CKSHCYGC.js +2 -0
  103. package/dist/standalone/chunk-DWDILV2E.js +1 -0
  104. package/dist/standalone/chunk-E75ANNWX.js +19 -0
  105. package/dist/standalone/chunk-EQZQOTJY.js +1 -0
  106. package/dist/standalone/chunk-GTLEWM5Y.js +1 -0
  107. package/dist/standalone/chunk-GTM65MVX.js +1 -0
  108. package/dist/standalone/chunk-GUI5GFFI.js +1 -0
  109. package/dist/standalone/chunk-HN6KJXYQ.js +1 -0
  110. package/dist/standalone/chunk-HV7G6DFP.js +5 -0
  111. package/dist/standalone/chunk-HYDJNCGW.js +1 -0
  112. package/dist/standalone/chunk-HZK5RQHG.js +1 -0
  113. package/dist/standalone/chunk-IN2SYVJB.js +1 -0
  114. package/dist/standalone/chunk-IOANPSJN.js +1 -0
  115. package/dist/standalone/chunk-ISDZPW3V.js +1 -0
  116. package/dist/standalone/chunk-IXDH4GL5.js +1 -0
  117. package/dist/standalone/chunk-J6J54MBP.js +1 -0
  118. package/dist/standalone/chunk-J73VHFCL.js +1 -0
  119. package/dist/standalone/chunk-JHKMUTIF.js +13 -0
  120. package/dist/standalone/chunk-JPRH6DPK.js +1 -0
  121. package/dist/standalone/chunk-JSEXCW5Q.js +1 -0
  122. package/dist/standalone/chunk-KA5YB3VP.js +1 -0
  123. package/dist/standalone/chunk-KBB75WNT.js +1 -0
  124. package/dist/standalone/chunk-KEGAWN6Y.js +1 -0
  125. package/dist/standalone/chunk-KJJ3WM6H.js +4 -0
  126. package/dist/standalone/chunk-KQV4NGH3.js +1 -0
  127. package/dist/standalone/chunk-KSKXW5PX.js +1 -0
  128. package/dist/standalone/chunk-KUH4P5F5.js +1 -0
  129. package/dist/standalone/chunk-KYJPPVGB.js +1 -0
  130. package/dist/standalone/chunk-KZ6INM5M.js +1 -0
  131. package/dist/standalone/chunk-L2TJVSDQ.js +1 -0
  132. package/dist/standalone/chunk-L7SK4ZZD.js +1 -0
  133. package/dist/standalone/chunk-LAK5VSPI.js +1 -0
  134. package/dist/standalone/chunk-LBN7LPVK.js +1 -0
  135. package/dist/standalone/chunk-LNZIB2MD.js +1 -0
  136. package/dist/standalone/chunk-MJWVMKQ4.js +6 -0
  137. package/dist/standalone/chunk-MLZYX5CQ.js +1 -0
  138. package/dist/standalone/chunk-N2X2OO4V.js +1 -0
  139. package/dist/standalone/chunk-NGKITPQP.js +13 -0
  140. package/dist/standalone/chunk-O3NAGRTR.js +1 -0
  141. package/dist/standalone/chunk-OZACQNKG.js +1 -0
  142. package/dist/standalone/chunk-PNDNXS5Z.js +1 -0
  143. package/dist/standalone/chunk-Q7DMUTUE.js +1 -0
  144. package/dist/standalone/chunk-QAFAJBAW.js +1 -0
  145. package/dist/standalone/chunk-QBAT52GB.js +1 -0
  146. package/dist/standalone/chunk-RHZ4M2NZ.js +1 -0
  147. package/dist/standalone/chunk-RRCPZMC2.js +22 -0
  148. package/dist/standalone/chunk-SEU5V7I6.js +1 -0
  149. package/dist/standalone/chunk-TAD43CG5.js +1 -0
  150. package/dist/standalone/chunk-TBMYIZIO.js +1 -0
  151. package/dist/standalone/chunk-TDZ44E5I.js +4 -0
  152. package/dist/standalone/chunk-THNBTMUF.js +1 -0
  153. package/dist/standalone/chunk-TIQISBGK.js +1 -0
  154. package/dist/standalone/chunk-TMYVNQ66.js +1 -0
  155. package/dist/standalone/chunk-TQ36RWOP.js +1 -0
  156. package/dist/standalone/chunk-UGUEC6BC.js +1 -0
  157. package/dist/standalone/chunk-UJB2LEI4.js +4 -0
  158. package/dist/standalone/chunk-UK64ZSUW.js +1 -0
  159. package/dist/standalone/chunk-UKDJ4H7I.js +1 -0
  160. package/dist/standalone/chunk-VLXV72QE.js +1 -0
  161. package/dist/standalone/chunk-VON7JUPG.js +1 -0
  162. package/dist/standalone/chunk-W3JK4YWR.js +1 -0
  163. package/dist/standalone/chunk-W3SHEIAL.js +3 -0
  164. package/dist/standalone/chunk-WI7GWFEG.js +1 -0
  165. package/dist/standalone/chunk-WIHXMNUY.js +1 -0
  166. package/dist/standalone/chunk-WLDVXVI2.js +1 -0
  167. package/dist/standalone/chunk-XLXNLJ4N.js +1 -0
  168. package/dist/standalone/chunk-XNJNSCLM.js +1 -0
  169. package/dist/standalone/chunk-YAECF5LW.js +1 -0
  170. package/dist/standalone/chunk-YBGC4PPD.js +1 -0
  171. package/dist/standalone/chunk-YJAPWSDC.js +4 -0
  172. package/dist/standalone/chunk-ZEJB6DXU.js +8 -0
  173. package/dist/standalone/chunk-ZFNBPAIZ.js +1 -0
  174. package/dist/standalone/chunk-ZHVTQ37P.js +1 -0
  175. package/dist/standalone/chunk-ZIGWVHCS.js +1 -0
  176. package/dist/standalone/chunk-ZPP2KOR4.js +1 -0
  177. package/dist/standalone/chunk-ZPUO7FNI.js +1 -0
  178. package/dist/standalone/studio.js +104 -246
  179. package/dist/styles.css +2 -2
  180. package/package.json +15 -13
  181. package/dist/packem_shared/HomePanel-Cw16stjq.js +0 -1273
  182. package/dist/packem_shared/SettingsPanel-C0uLRf5P.js +0 -176
  183. package/dist/packem_shared/SqlEditorPanel-CguV7otm.js +0 -13
  184. package/dist/packem_shared/Studio-DFWAlcuf.js +0 -33
  185. package/dist/packem_shared/studio-Bj8psK1c.js +0 -10303
  186. package/dist/packem_shared/use-live-admin-Dq6g3daN.js +0 -73
  187. package/dist/packem_shared/use-live-shard-seed-Cuk3dnH0.js +0 -76
@@ -0,0 +1,831 @@
1
+ import { c } from 'react/compiler-runtime';
2
+ import { useState, useMemo } from 'react';
3
+ import { B as Button } from '../packem_shared/button-BhsN2uZH.js';
4
+ import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
5
+ import { useLunora } from '@lunora/react';
6
+ import { ConfirmButton } from '../packem_shared/ConfirmButton-C2eVi2Qv.js';
7
+ import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
8
+ import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
9
+ import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
10
+ import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
11
+ import { a as useClientQuery } from '../packem_shared/use-admin-query-CfHYWx5n.js';
12
+ import { f as fireAndForget, e as errorMessage, i as formatTimestamp } from '../packem_shared/internal-CYcbqMjX.js';
13
+ import { jsxDEV } from 'react/jsx-dev-runtime';
14
+ import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
15
+ import { ScheduledJobs } from '../packem_shared/ScheduledJobs-Ctw4jYtU.js';
16
+
17
+ const IDLE = {
18
+ kind: "idle"
19
+ };
20
+ const CronTriggersPanel = ({
21
+ loadCronJobs,
22
+ runCronJob
23
+ } = {}) => {
24
+ const client = useLunora();
25
+ const t = useT();
26
+ const [runStates, setRunStates] = useState({});
27
+ const jobsQuery = useClientQuery(["lunora-cron-jobs", loadCronJobs ? "custom" : "default"], () => (loadCronJobs ?? (() => client.getCronJobs()))());
28
+ const {
29
+ data: jobs,
30
+ error
31
+ } = jobsQuery;
32
+ const runImpl = useMemo(() => {
33
+ if (runCronJob !== void 0) {
34
+ return runCronJob;
35
+ }
36
+ return loadCronJobs === void 0 ? (name) => client.runCronJob(name) : void 0;
37
+ }, [client, loadCronJobs, runCronJob]);
38
+ const run = async (name_0) => {
39
+ if (runImpl === void 0) {
40
+ return;
41
+ }
42
+ setRunStates((previous) => {
43
+ return {
44
+ ...previous,
45
+ [name_0]: {
46
+ kind: "running"
47
+ }
48
+ };
49
+ });
50
+ try {
51
+ await runImpl(name_0);
52
+ setRunStates((previous_1) => {
53
+ return {
54
+ ...previous_1,
55
+ [name_0]: {
56
+ kind: "ok"
57
+ }
58
+ };
59
+ });
60
+ jobsQuery.refetch();
61
+ } catch (error_) {
62
+ setRunStates((previous_0) => {
63
+ return {
64
+ ...previous_0,
65
+ [name_0]: {
66
+ kind: "error",
67
+ message: errorMessage(error_)
68
+ }
69
+ };
70
+ });
71
+ }
72
+ };
73
+ return /* @__PURE__ */ jsxDEV("div", {
74
+ className: "flex flex-col gap-3",
75
+ "data-testid": "lunora-cron-triggers",
76
+ children: [error !== null && /* @__PURE__ */ jsxDEV("p", {
77
+ className: "text-sm text-destructive",
78
+ "data-testid": "cron-error",
79
+ role: "alert",
80
+ children: error
81
+ }, void 0, false), jobs?.length === 0 && /* @__PURE__ */ jsxDEV(EmptyState, {
82
+ description: t("Triggers declared with the cronJobs() builder appear here."),
83
+ icon: /* @__PURE__ */ jsxDEV("svg", {
84
+ "aria-hidden": "true",
85
+ fill: "none",
86
+ stroke: "currentColor",
87
+ strokeLinecap: "round",
88
+ strokeLinejoin: "round",
89
+ strokeWidth: 1.6,
90
+ viewBox: "0 0 24 24",
91
+ children: [/* @__PURE__ */ jsxDEV("circle", {
92
+ cx: "12",
93
+ cy: "12",
94
+ r: "9"
95
+ }, void 0, false), /* @__PURE__ */ jsxDEV("path", {
96
+ d: "M12 7.5V12l4 2"
97
+ }, void 0, false)]
98
+ }, void 0, true),
99
+ testId: "cron-empty",
100
+ title: t("No cron triggers.")
101
+ }, void 0, false), jobs !== void 0 && jobs.length > 0 && /* @__PURE__ */ jsxDEV(Card, {
102
+ className: "overflow-hidden py-0",
103
+ children: /* @__PURE__ */ jsxDEV(CardContent, {
104
+ className: "px-0",
105
+ children: /* @__PURE__ */ jsxDEV(Table, {
106
+ "data-testid": "cron-table",
107
+ children: [/* @__PURE__ */ jsxDEV(TableHeader, {
108
+ children: /* @__PURE__ */ jsxDEV(TableRow, {
109
+ children: [/* @__PURE__ */ jsxDEV(TableHead, {
110
+ children: t("name")
111
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
112
+ children: t("schedule")
113
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
114
+ children: t("target")
115
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
116
+ children: t("shard")
117
+ }, void 0, false), runImpl !== void 0 && /* @__PURE__ */ jsxDEV(TableHead, {
118
+ "aria-label": t("Actions")
119
+ }, void 0, false)]
120
+ }, void 0, true)
121
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableBody, {
122
+ children: jobs.map((job) => {
123
+ const state = runStates[job.name] ?? IDLE;
124
+ return /* @__PURE__ */ jsxDEV(TableRow, {
125
+ "data-testid": `cron-row-${job.name}`,
126
+ children: [/* @__PURE__ */ jsxDEV(TableCell, {
127
+ children: job.name
128
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
129
+ className: "font-mono text-xs tabular-nums",
130
+ children: job.cron
131
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
132
+ children: /* @__PURE__ */ jsxDEV("span", {
133
+ className: "flex items-center gap-2",
134
+ children: [job.workflow === void 0 ? /* @__PURE__ */ jsxDEV(Badge, {
135
+ variant: "outline",
136
+ children: t("function")
137
+ }, void 0, false) : /* @__PURE__ */ jsxDEV(Badge, {
138
+ variant: "secondary",
139
+ children: t("workflow")
140
+ }, void 0, false), /* @__PURE__ */ jsxDEV("span", {
141
+ className: "font-mono text-xs",
142
+ children: job.workflow ?? job.functionPath
143
+ }, void 0, false)]
144
+ }, void 0, true)
145
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
146
+ children: job.shardKey ?? ""
147
+ }, void 0, false), runImpl !== void 0 && /* @__PURE__ */ jsxDEV(TableCell, {
148
+ className: "text-right",
149
+ children: /* @__PURE__ */ jsxDEV("span", {
150
+ className: "flex items-center justify-end gap-2",
151
+ children: [state.kind === "ok" && /* @__PURE__ */ jsxDEV("span", {
152
+ className: "text-xs text-muted-foreground",
153
+ "data-testid": `cron-ran-${job.name}`,
154
+ children: t("ran")
155
+ }, void 0, false), state.kind === "error" && /* @__PURE__ */ jsxDEV("span", {
156
+ className: "text-xs text-destructive",
157
+ "data-testid": `cron-run-error-${job.name}`,
158
+ role: "alert",
159
+ children: state.message
160
+ }, void 0, false), /* @__PURE__ */ jsxDEV(ConfirmButton, {
161
+ confirmLabel: t("Run now?"),
162
+ disabled: state.kind === "running",
163
+ onConfirm: () => {
164
+ fireAndForget(run(job.name));
165
+ },
166
+ testId: `cron-run-${job.name}`,
167
+ children: state.kind === "running" ? t("Running…") : t("Run now")
168
+ }, void 0, false)]
169
+ }, void 0, true)
170
+ }, void 0, false)]
171
+ }, `${job.cron}:${job.name}`, true);
172
+ })
173
+ }, void 0, false)]
174
+ }, void 0, true)
175
+ }, void 0, false)
176
+ }, void 0, false)]
177
+ }, void 0, true);
178
+ };
179
+
180
+ const formatScheduledFor = (value) => Number.isFinite(value) ? formatTimestamp(value, "—") : "—";
181
+ const DeadLetterJobs = (t0) => {
182
+ const $ = c(34);
183
+ let t1;
184
+ if ($[0] !== t0) {
185
+ t1 = t0 === void 0 ? {} : t0;
186
+ $[0] = t0;
187
+ $[1] = t1;
188
+ } else {
189
+ t1 = $[1];
190
+ }
191
+ const {
192
+ loadJobs,
193
+ removeJob,
194
+ retryJob
195
+ } = t1;
196
+ const client = useLunora();
197
+ const t = useT();
198
+ let t2;
199
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
200
+ t2 = ["lunora-dead-jobs"];
201
+ $[2] = t2;
202
+ } else {
203
+ t2 = $[2];
204
+ }
205
+ let t3;
206
+ if ($[3] !== client || $[4] !== loadJobs) {
207
+ t3 = async () => {
208
+ const records = await (loadJobs ?? (() => client.listDeadJobs()))();
209
+ return records.toSorted(_temp$1);
210
+ };
211
+ $[3] = client;
212
+ $[4] = loadJobs;
213
+ $[5] = t3;
214
+ } else {
215
+ t3 = $[5];
216
+ }
217
+ const jobsQuery = useClientQuery(t2, t3);
218
+ const jobs = jobsQuery.data;
219
+ const [actionError, setActionError] = useState(void 0);
220
+ const error = jobsQuery.error ?? actionError;
221
+ const clientOwned = loadJobs === void 0;
222
+ let t4;
223
+ if ($[6] !== client || $[7] !== clientOwned || $[8] !== retryJob) {
224
+ t4 = retryJob ?? (clientOwned ? (id) => client.retryDeadJob(id) : void 0);
225
+ $[6] = client;
226
+ $[7] = clientOwned;
227
+ $[8] = retryJob;
228
+ $[9] = t4;
229
+ } else {
230
+ t4 = $[9];
231
+ }
232
+ const retryImpl = t4;
233
+ let t5;
234
+ if ($[10] !== client || $[11] !== clientOwned || $[12] !== removeJob) {
235
+ t5 = removeJob ?? (clientOwned ? (id_0) => client.removeDeadJob(id_0) : void 0);
236
+ $[10] = client;
237
+ $[11] = clientOwned;
238
+ $[12] = removeJob;
239
+ $[13] = t5;
240
+ } else {
241
+ t5 = $[13];
242
+ }
243
+ const removeImpl = t5;
244
+ let t6;
245
+ if ($[14] !== jobsQuery) {
246
+ t6 = () => {
247
+ jobsQuery.refetch();
248
+ };
249
+ $[14] = jobsQuery;
250
+ $[15] = t6;
251
+ } else {
252
+ t6 = $[15];
253
+ }
254
+ useAutoRefresh(t6, true);
255
+ let t7;
256
+ if ($[16] !== jobsQuery) {
257
+ t7 = async (operation) => {
258
+ setActionError(void 0);
259
+ try {
260
+ await operation;
261
+ jobsQuery.refetch();
262
+ } catch (t82) {
263
+ const error_ = t82;
264
+ setActionError(errorMessage(error_));
265
+ }
266
+ };
267
+ $[16] = jobsQuery;
268
+ $[17] = t7;
269
+ } else {
270
+ t7 = $[17];
271
+ }
272
+ const act = t7;
273
+ const hasActions = retryImpl !== void 0 || removeImpl !== void 0;
274
+ let t8;
275
+ if ($[18] !== error) {
276
+ t8 = error !== void 0 && /* @__PURE__ */ jsxDEV("p", {
277
+ className: "text-sm text-destructive",
278
+ "data-testid": "dlq-error",
279
+ role: "alert",
280
+ children: error
281
+ }, void 0, false);
282
+ $[18] = error;
283
+ $[19] = t8;
284
+ } else {
285
+ t8 = $[19];
286
+ }
287
+ let t9;
288
+ if ($[20] !== jobs?.length || $[21] !== t) {
289
+ t9 = jobs?.length === 0 && /* @__PURE__ */ jsxDEV(EmptyState, {
290
+ description: t("Jobs that exhaust their retry budget are parked here instead of being dropped."),
291
+ icon: /* @__PURE__ */ jsxDEV("svg", {
292
+ "aria-hidden": "true",
293
+ fill: "none",
294
+ stroke: "currentColor",
295
+ strokeLinecap: "round",
296
+ strokeLinejoin: "round",
297
+ strokeWidth: 1.6,
298
+ viewBox: "0 0 24 24",
299
+ children: /* @__PURE__ */ jsxDEV("path", {
300
+ d: "M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14"
301
+ }, void 0, false)
302
+ }, void 0, false),
303
+ testId: "dlq-empty",
304
+ title: t("No dead-letter jobs.")
305
+ }, void 0, false);
306
+ $[20] = jobs?.length;
307
+ $[21] = t;
308
+ $[22] = t9;
309
+ } else {
310
+ t9 = $[22];
311
+ }
312
+ let t10;
313
+ if ($[23] !== act || $[24] !== hasActions || $[25] !== jobs || $[26] !== removeImpl || $[27] !== retryImpl || $[28] !== t) {
314
+ t10 = jobs !== void 0 && jobs.length > 0 && /* @__PURE__ */ jsxDEV(Card, {
315
+ className: "overflow-hidden py-0",
316
+ children: /* @__PURE__ */ jsxDEV(CardContent, {
317
+ className: "px-0",
318
+ children: /* @__PURE__ */ jsxDEV(Table, {
319
+ "data-testid": "dlq-table",
320
+ children: [/* @__PURE__ */ jsxDEV(TableHeader, {
321
+ children: /* @__PURE__ */ jsxDEV(TableRow, {
322
+ children: [/* @__PURE__ */ jsxDEV(TableHead, {
323
+ children: t("function")
324
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
325
+ children: t("attempts")
326
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
327
+ children: t("last tried")
328
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
329
+ children: t("pool")
330
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
331
+ children: t("shard")
332
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
333
+ children: t("id")
334
+ }, void 0, false), hasActions && /* @__PURE__ */ jsxDEV(TableHead, {
335
+ "aria-label": t("Actions")
336
+ }, void 0, false)]
337
+ }, void 0, true)
338
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableBody, {
339
+ children: jobs.map((job) => /* @__PURE__ */ jsxDEV(TableRow, {
340
+ "data-testid": `dlq-row-${job.id}`,
341
+ children: [/* @__PURE__ */ jsxDEV(TableCell, {
342
+ className: "font-mono text-xs",
343
+ children: job.functionPath
344
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
345
+ className: "tabular-nums",
346
+ children: job.attempts ?? 0
347
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
348
+ className: "text-muted-foreground tabular-nums",
349
+ children: formatScheduledFor(job.scheduledFor)
350
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
351
+ className: "font-mono text-xs",
352
+ children: job.pool ?? ""
353
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
354
+ children: job.shardKey ?? ""
355
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
356
+ className: "font-mono text-xs",
357
+ children: job.id
358
+ }, void 0, false), hasActions && /* @__PURE__ */ jsxDEV(TableCell, {
359
+ className: "text-right",
360
+ children: /* @__PURE__ */ jsxDEV("div", {
361
+ className: "flex justify-end gap-1.5",
362
+ children: [retryImpl !== void 0 && /* @__PURE__ */ jsxDEV(Button, {
363
+ "data-testid": `dlq-retry-${job.id}`,
364
+ onClick: () => {
365
+ fireAndForget(act(retryImpl(job.id)));
366
+ },
367
+ size: "sm",
368
+ type: "button",
369
+ variant: "outline",
370
+ children: t("Retry")
371
+ }, void 0, false), removeImpl !== void 0 && /* @__PURE__ */ jsxDEV(ConfirmButton, {
372
+ confirmLabel: t("Drop job?"),
373
+ onConfirm: () => {
374
+ fireAndForget(act(removeImpl(job.id)));
375
+ },
376
+ testId: `dlq-remove-${job.id}`,
377
+ children: t("Drop")
378
+ }, void 0, false)]
379
+ }, void 0, true)
380
+ }, void 0, false)]
381
+ }, job.id, true))
382
+ }, void 0, false)]
383
+ }, void 0, true)
384
+ }, void 0, false)
385
+ }, void 0, false);
386
+ $[23] = act;
387
+ $[24] = hasActions;
388
+ $[25] = jobs;
389
+ $[26] = removeImpl;
390
+ $[27] = retryImpl;
391
+ $[28] = t;
392
+ $[29] = t10;
393
+ } else {
394
+ t10 = $[29];
395
+ }
396
+ let t11;
397
+ if ($[30] !== t10 || $[31] !== t8 || $[32] !== t9) {
398
+ t11 = /* @__PURE__ */ jsxDEV("div", {
399
+ className: "flex flex-col gap-3",
400
+ "data-testid": "lunora-dead-letter",
401
+ children: [t8, t9, t10]
402
+ }, void 0, true);
403
+ $[30] = t10;
404
+ $[31] = t8;
405
+ $[32] = t9;
406
+ $[33] = t11;
407
+ } else {
408
+ t11 = $[33];
409
+ }
410
+ return t11;
411
+ };
412
+ function _temp$1(a, b) {
413
+ return (b.attempts ?? 0) - (a.attempts ?? 0);
414
+ }
415
+
416
+ const StatTile = (t0) => {
417
+ const $ = c(8);
418
+ const {
419
+ label,
420
+ testId,
421
+ value
422
+ } = t0;
423
+ let t1;
424
+ if ($[0] !== label) {
425
+ t1 = /* @__PURE__ */ jsxDEV("span", {
426
+ className: "text-xs text-muted-foreground",
427
+ children: label
428
+ }, void 0, false);
429
+ $[0] = label;
430
+ $[1] = t1;
431
+ } else {
432
+ t1 = $[1];
433
+ }
434
+ let t2;
435
+ if ($[2] !== testId || $[3] !== value) {
436
+ t2 = /* @__PURE__ */ jsxDEV("span", {
437
+ className: "text-2xl font-semibold tabular-nums",
438
+ "data-testid": testId,
439
+ children: value
440
+ }, void 0, false);
441
+ $[2] = testId;
442
+ $[3] = value;
443
+ $[4] = t2;
444
+ } else {
445
+ t2 = $[4];
446
+ }
447
+ let t3;
448
+ if ($[5] !== t1 || $[6] !== t2) {
449
+ t3 = /* @__PURE__ */ jsxDEV(Card, {
450
+ className: "flex-1 py-0",
451
+ children: /* @__PURE__ */ jsxDEV(CardContent, {
452
+ className: "flex flex-col gap-1 p-4",
453
+ children: [t1, t2]
454
+ }, void 0, true)
455
+ }, void 0, false);
456
+ $[5] = t1;
457
+ $[6] = t2;
458
+ $[7] = t3;
459
+ } else {
460
+ t3 = $[7];
461
+ }
462
+ return t3;
463
+ };
464
+ const SchedulerPoolsPanel = (t0) => {
465
+ const $ = c(25);
466
+ let t1;
467
+ if ($[0] !== t0) {
468
+ t1 = t0 === void 0 ? {} : t0;
469
+ $[0] = t0;
470
+ $[1] = t1;
471
+ } else {
472
+ t1 = $[1];
473
+ }
474
+ const {
475
+ loadStatus
476
+ } = t1;
477
+ const client = useLunora();
478
+ const t = useT();
479
+ const t2 = loadStatus === void 0;
480
+ let t3;
481
+ if ($[2] !== t2) {
482
+ t3 = ["lunora-scheduler-status", t2];
483
+ $[2] = t2;
484
+ $[3] = t3;
485
+ } else {
486
+ t3 = $[3];
487
+ }
488
+ let t4;
489
+ if ($[4] !== client || $[5] !== loadStatus) {
490
+ t4 = async () => {
491
+ const next = await (loadStatus ?? (() => client.schedulerStatus()))();
492
+ return {
493
+ ...next,
494
+ pools: next.pools.toSorted(_temp)
495
+ };
496
+ };
497
+ $[4] = client;
498
+ $[5] = loadStatus;
499
+ $[6] = t4;
500
+ } else {
501
+ t4 = $[6];
502
+ }
503
+ const statusQuery = useClientQuery(t3, t4);
504
+ const {
505
+ data: status,
506
+ error
507
+ } = statusQuery;
508
+ let t5;
509
+ if ($[7] !== statusQuery) {
510
+ t5 = () => {
511
+ statusQuery.refetch();
512
+ };
513
+ $[7] = statusQuery;
514
+ $[8] = t5;
515
+ } else {
516
+ t5 = $[8];
517
+ }
518
+ useAutoRefresh(t5, true);
519
+ let t6;
520
+ if ($[9] !== error) {
521
+ t6 = error !== null && /* @__PURE__ */ jsxDEV("p", {
522
+ className: "text-sm text-destructive",
523
+ "data-testid": "pools-error",
524
+ role: "alert",
525
+ children: error
526
+ }, void 0, false);
527
+ $[9] = error;
528
+ $[10] = t6;
529
+ } else {
530
+ t6 = $[10];
531
+ }
532
+ let t7;
533
+ if ($[11] !== status || $[12] !== t) {
534
+ t7 = status !== void 0 && /* @__PURE__ */ jsxDEV("div", {
535
+ className: "flex gap-3",
536
+ "data-testid": "pools-totals",
537
+ children: [/* @__PURE__ */ jsxDEV(StatTile, {
538
+ label: t("backlog"),
539
+ testId: "pools-backlog",
540
+ value: status.backlog
541
+ }, void 0, false), /* @__PURE__ */ jsxDEV(StatTile, {
542
+ label: t("in flight"),
543
+ testId: "pools-inflight",
544
+ value: status.inFlight
545
+ }, void 0, false), /* @__PURE__ */ jsxDEV(StatTile, {
546
+ label: t("pools"),
547
+ testId: "pools-count",
548
+ value: status.pools.length
549
+ }, void 0, false)]
550
+ }, void 0, true);
551
+ $[11] = status;
552
+ $[12] = t;
553
+ $[13] = t7;
554
+ } else {
555
+ t7 = $[13];
556
+ }
557
+ let t8;
558
+ if ($[14] !== status?.pools.length || $[15] !== t) {
559
+ t8 = status?.pools.length === 0 && /* @__PURE__ */ jsxDEV(EmptyState, {
560
+ description: t("Pools created with createWorkpool appear here once they have activity."),
561
+ icon: /* @__PURE__ */ jsxDEV("svg", {
562
+ "aria-hidden": "true",
563
+ fill: "none",
564
+ stroke: "currentColor",
565
+ strokeLinecap: "round",
566
+ strokeLinejoin: "round",
567
+ strokeWidth: 1.6,
568
+ viewBox: "0 0 24 24",
569
+ children: /* @__PURE__ */ jsxDEV("path", {
570
+ d: "M4 7h16M4 12h16M4 17h16"
571
+ }, void 0, false)
572
+ }, void 0, false),
573
+ testId: "pools-empty",
574
+ title: t("No workpools.")
575
+ }, void 0, false);
576
+ $[14] = status?.pools.length;
577
+ $[15] = t;
578
+ $[16] = t8;
579
+ } else {
580
+ t8 = $[16];
581
+ }
582
+ let t9;
583
+ if ($[17] !== status || $[18] !== t) {
584
+ t9 = status !== void 0 && status.pools.length > 0 && /* @__PURE__ */ jsxDEV(Card, {
585
+ className: "overflow-hidden py-0",
586
+ children: /* @__PURE__ */ jsxDEV(CardContent, {
587
+ className: "px-0",
588
+ children: /* @__PURE__ */ jsxDEV(Table, {
589
+ "data-testid": "pools-table",
590
+ children: [/* @__PURE__ */ jsxDEV(TableHeader, {
591
+ children: /* @__PURE__ */ jsxDEV(TableRow, {
592
+ children: [/* @__PURE__ */ jsxDEV(TableHead, {
593
+ children: t("pool")
594
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
595
+ children: t("queued")
596
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
597
+ children: t("in flight")
598
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
599
+ children: t("max concurrency")
600
+ }, void 0, false)]
601
+ }, void 0, true)
602
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableBody, {
603
+ children: status.pools.map(_temp2)
604
+ }, void 0, false)]
605
+ }, void 0, true)
606
+ }, void 0, false)
607
+ }, void 0, false);
608
+ $[17] = status;
609
+ $[18] = t;
610
+ $[19] = t9;
611
+ } else {
612
+ t9 = $[19];
613
+ }
614
+ let t10;
615
+ if ($[20] !== t6 || $[21] !== t7 || $[22] !== t8 || $[23] !== t9) {
616
+ t10 = /* @__PURE__ */ jsxDEV("div", {
617
+ className: "flex flex-col gap-3",
618
+ "data-testid": "lunora-scheduler-pools",
619
+ children: [t6, t7, t8, t9]
620
+ }, void 0, true);
621
+ $[20] = t6;
622
+ $[21] = t7;
623
+ $[22] = t8;
624
+ $[23] = t9;
625
+ $[24] = t10;
626
+ } else {
627
+ t10 = $[24];
628
+ }
629
+ return t10;
630
+ };
631
+ function _temp(a, b) {
632
+ return b.queued - a.queued;
633
+ }
634
+ function _temp2(pool) {
635
+ return /* @__PURE__ */ jsxDEV(TableRow, {
636
+ "data-testid": `pools-row-${pool.name}`,
637
+ children: [/* @__PURE__ */ jsxDEV(TableCell, {
638
+ className: "font-mono text-xs",
639
+ children: pool.name
640
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
641
+ className: "tabular-nums",
642
+ children: pool.queued
643
+ }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
644
+ className: "tabular-nums",
645
+ children: [pool.inFlight, " / ", pool.maxConcurrency]
646
+ }, void 0, true), /* @__PURE__ */ jsxDEV(TableCell, {
647
+ className: "tabular-nums",
648
+ children: pool.maxConcurrency
649
+ }, void 0, false)]
650
+ }, pool.name, true);
651
+ }
652
+
653
+ const VIEW_KEYS = ["jobs", "dead", "pools", "cron"];
654
+ const SchedulePanel = (t0) => {
655
+ const $ = c(41);
656
+ let t1;
657
+ if ($[0] !== t0) {
658
+ t1 = t0 === void 0 ? {} : t0;
659
+ $[0] = t0;
660
+ $[1] = t1;
661
+ } else {
662
+ t1 = $[1];
663
+ }
664
+ const {
665
+ loadCronJobs,
666
+ scheduledCancel,
667
+ scheduledLoad
668
+ } = t1;
669
+ const t = useT();
670
+ const [view, setView] = useState("jobs");
671
+ let t2;
672
+ if ($[2] !== t) {
673
+ t2 = t("Cron triggers");
674
+ $[2] = t;
675
+ $[3] = t2;
676
+ } else {
677
+ t2 = $[3];
678
+ }
679
+ let t3;
680
+ if ($[4] !== t) {
681
+ t3 = t("Dead letter");
682
+ $[4] = t;
683
+ $[5] = t3;
684
+ } else {
685
+ t3 = $[5];
686
+ }
687
+ let t4;
688
+ if ($[6] !== t) {
689
+ t4 = t("Scheduled jobs");
690
+ $[6] = t;
691
+ $[7] = t4;
692
+ } else {
693
+ t4 = $[7];
694
+ }
695
+ let t5;
696
+ if ($[8] !== t) {
697
+ t5 = t("Pools");
698
+ $[8] = t;
699
+ $[9] = t5;
700
+ } else {
701
+ t5 = $[9];
702
+ }
703
+ let t6;
704
+ if ($[10] !== t2 || $[11] !== t3 || $[12] !== t4 || $[13] !== t5) {
705
+ t6 = {
706
+ cron: t2,
707
+ dead: t3,
708
+ jobs: t4,
709
+ pools: t5
710
+ };
711
+ $[10] = t2;
712
+ $[11] = t3;
713
+ $[12] = t4;
714
+ $[13] = t5;
715
+ $[14] = t6;
716
+ } else {
717
+ t6 = $[14];
718
+ }
719
+ const viewLabel = t6;
720
+ let t7;
721
+ if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
722
+ t7 = (event) => {
723
+ setView(event.currentTarget.dataset.view);
724
+ };
725
+ $[15] = t7;
726
+ } else {
727
+ t7 = $[15];
728
+ }
729
+ const selectView = t7;
730
+ let t8;
731
+ if ($[16] !== t) {
732
+ t8 = t("Schedule view");
733
+ $[16] = t;
734
+ $[17] = t8;
735
+ } else {
736
+ t8 = $[17];
737
+ }
738
+ let t9;
739
+ if ($[18] !== view || $[19] !== viewLabel) {
740
+ t9 = VIEW_KEYS.map((key) => /* @__PURE__ */ jsxDEV(Button, {
741
+ "aria-selected": view === key,
742
+ "data-testid": `schedule-view-${key}`,
743
+ "data-view": key,
744
+ onClick: selectView,
745
+ role: "tab",
746
+ size: "sm",
747
+ type: "button",
748
+ variant: view === key ? "default" : "outline",
749
+ children: viewLabel[key]
750
+ }, key, false));
751
+ $[18] = view;
752
+ $[19] = viewLabel;
753
+ $[20] = t9;
754
+ } else {
755
+ t9 = $[20];
756
+ }
757
+ let t10;
758
+ if ($[21] !== t8 || $[22] !== t9) {
759
+ t10 = /* @__PURE__ */ jsxDEV("div", {
760
+ "aria-label": t8,
761
+ className: "flex gap-1.5",
762
+ "data-testid": "schedule-view-toggle",
763
+ role: "tablist",
764
+ children: t9
765
+ }, void 0, false);
766
+ $[21] = t8;
767
+ $[22] = t9;
768
+ $[23] = t10;
769
+ } else {
770
+ t10 = $[23];
771
+ }
772
+ let t11;
773
+ if ($[24] !== scheduledCancel || $[25] !== scheduledLoad || $[26] !== view) {
774
+ t11 = view === "jobs" && /* @__PURE__ */ jsxDEV(ScheduledJobs, {
775
+ cancelJob: scheduledCancel,
776
+ loadJobs: scheduledLoad
777
+ }, void 0, false);
778
+ $[24] = scheduledCancel;
779
+ $[25] = scheduledLoad;
780
+ $[26] = view;
781
+ $[27] = t11;
782
+ } else {
783
+ t11 = $[27];
784
+ }
785
+ let t12;
786
+ if ($[28] !== view) {
787
+ t12 = view === "dead" && /* @__PURE__ */ jsxDEV(DeadLetterJobs, {}, void 0, false);
788
+ $[28] = view;
789
+ $[29] = t12;
790
+ } else {
791
+ t12 = $[29];
792
+ }
793
+ let t13;
794
+ if ($[30] !== view) {
795
+ t13 = view === "pools" && /* @__PURE__ */ jsxDEV(SchedulerPoolsPanel, {}, void 0, false);
796
+ $[30] = view;
797
+ $[31] = t13;
798
+ } else {
799
+ t13 = $[31];
800
+ }
801
+ let t14;
802
+ if ($[32] !== loadCronJobs || $[33] !== view) {
803
+ t14 = view === "cron" && /* @__PURE__ */ jsxDEV(CronTriggersPanel, {
804
+ loadCronJobs
805
+ }, void 0, false);
806
+ $[32] = loadCronJobs;
807
+ $[33] = view;
808
+ $[34] = t14;
809
+ } else {
810
+ t14 = $[34];
811
+ }
812
+ let t15;
813
+ if ($[35] !== t10 || $[36] !== t11 || $[37] !== t12 || $[38] !== t13 || $[39] !== t14) {
814
+ t15 = /* @__PURE__ */ jsxDEV("div", {
815
+ className: "flex flex-col gap-4",
816
+ "data-testid": "lunora-schedule",
817
+ children: [t10, t11, t12, t13, t14]
818
+ }, void 0, true);
819
+ $[35] = t10;
820
+ $[36] = t11;
821
+ $[37] = t12;
822
+ $[38] = t13;
823
+ $[39] = t14;
824
+ $[40] = t15;
825
+ } else {
826
+ t15 = $[40];
827
+ }
828
+ return t15;
829
+ };
830
+
831
+ export { SchedulePanel };