@motiadev/plugin-bullmq 0.14.0-beta.165-210612 → 0.14.0-beta.165-256670

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.
package/dist/index.js CHANGED
@@ -123,21 +123,17 @@ const queryClient = new QueryClient({ defaultOptions: { queries: {
123
123
  retry: 1
124
124
  } } });
125
125
  const QueryProvider = (t0) => {
126
- const $ = c(3);
127
- if ($[0] !== "72268343e8809a517b650d94aea39cf9f299784a2a89cdc3b8e9a0d84a7244b8") {
128
- for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
129
- $[0] = "72268343e8809a517b650d94aea39cf9f299784a2a89cdc3b8e9a0d84a7244b8";
130
- }
126
+ const $ = c(2);
131
127
  const { children } = t0;
132
128
  let t1;
133
- if ($[1] !== children) {
129
+ if ($[0] !== children) {
134
130
  t1 = /* @__PURE__ */ jsx(QueryClientProvider, {
135
131
  client: queryClient,
136
132
  children
137
133
  });
138
- $[1] = children;
139
- $[2] = t1;
140
- } else t1 = $[2];
134
+ $[0] = children;
135
+ $[1] = t1;
136
+ } else t1 = $[1];
141
137
  return t1;
142
138
  };
143
139
 
@@ -162,231 +158,207 @@ const clearDLQFn = async ({ queueName }) => {
162
158
  if (!(await fetch(`/__motia/bullmq/dlq/${encodeURIComponent(queueName)}/clear`, { method: "POST" })).ok) throw new Error("Failed to clear DLQ");
163
159
  };
164
160
  const useRetryJob = () => {
165
- const $ = c(8);
166
- if ($[0] !== "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177") {
167
- for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
168
- $[0] = "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177";
169
- }
161
+ const $ = c(7);
170
162
  const queryClient$1 = useQueryClient();
171
163
  const setError = useBullMQStore(_temp$7);
172
164
  let t0;
173
- if ($[1] !== queryClient$1) {
165
+ if ($[0] !== queryClient$1) {
174
166
  t0 = (_, t1$1) => {
175
167
  const { queueName } = t1$1;
176
168
  queryClient$1.invalidateQueries({ queryKey: ["jobs", queueName] });
177
169
  };
178
- $[1] = queryClient$1;
179
- $[2] = t0;
180
- } else t0 = $[2];
170
+ $[0] = queryClient$1;
171
+ $[1] = t0;
172
+ } else t0 = $[1];
181
173
  let t1;
182
- if ($[3] !== setError) {
174
+ if ($[2] !== setError) {
183
175
  t1 = (error) => {
184
176
  setError(error instanceof Error ? error.message : "Failed to retry job");
185
177
  };
186
- $[3] = setError;
187
- $[4] = t1;
188
- } else t1 = $[4];
178
+ $[2] = setError;
179
+ $[3] = t1;
180
+ } else t1 = $[3];
189
181
  let t2;
190
- if ($[5] !== t0 || $[6] !== t1) {
182
+ if ($[4] !== t0 || $[5] !== t1) {
191
183
  t2 = {
192
184
  mutationFn: retryJobFn,
193
185
  onSuccess: t0,
194
186
  onError: t1
195
187
  };
196
- $[5] = t0;
197
- $[6] = t1;
198
- $[7] = t2;
199
- } else t2 = $[7];
188
+ $[4] = t0;
189
+ $[5] = t1;
190
+ $[6] = t2;
191
+ } else t2 = $[6];
200
192
  return useMutation(t2);
201
193
  };
202
194
  const useRemoveJob = () => {
203
- const $ = c(8);
204
- if ($[0] !== "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177") {
205
- for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
206
- $[0] = "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177";
207
- }
195
+ const $ = c(7);
208
196
  const queryClient$1 = useQueryClient();
209
197
  const setError = useBullMQStore(_temp2$7);
210
198
  let t0;
211
- if ($[1] !== queryClient$1) {
199
+ if ($[0] !== queryClient$1) {
212
200
  t0 = (_, t1$1) => {
213
201
  const { queueName } = t1$1;
214
202
  queryClient$1.invalidateQueries({ queryKey: ["jobs", queueName] });
215
203
  };
216
- $[1] = queryClient$1;
217
- $[2] = t0;
218
- } else t0 = $[2];
204
+ $[0] = queryClient$1;
205
+ $[1] = t0;
206
+ } else t0 = $[1];
219
207
  let t1;
220
- if ($[3] !== setError) {
208
+ if ($[2] !== setError) {
221
209
  t1 = (error) => {
222
210
  setError(error instanceof Error ? error.message : "Failed to remove job");
223
211
  };
224
- $[3] = setError;
225
- $[4] = t1;
226
- } else t1 = $[4];
212
+ $[2] = setError;
213
+ $[3] = t1;
214
+ } else t1 = $[3];
227
215
  let t2;
228
- if ($[5] !== t0 || $[6] !== t1) {
216
+ if ($[4] !== t0 || $[5] !== t1) {
229
217
  t2 = {
230
218
  mutationFn: removeJobFn,
231
219
  onSuccess: t0,
232
220
  onError: t1
233
221
  };
234
- $[5] = t0;
235
- $[6] = t1;
236
- $[7] = t2;
237
- } else t2 = $[7];
222
+ $[4] = t0;
223
+ $[5] = t1;
224
+ $[6] = t2;
225
+ } else t2 = $[6];
238
226
  return useMutation(t2);
239
227
  };
240
228
  const usePromoteJob = () => {
241
- const $ = c(8);
242
- if ($[0] !== "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177") {
243
- for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
244
- $[0] = "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177";
245
- }
229
+ const $ = c(7);
246
230
  const queryClient$1 = useQueryClient();
247
231
  const setError = useBullMQStore(_temp3$4);
248
232
  let t0;
249
- if ($[1] !== queryClient$1) {
233
+ if ($[0] !== queryClient$1) {
250
234
  t0 = (_, t1$1) => {
251
235
  const { queueName } = t1$1;
252
236
  queryClient$1.invalidateQueries({ queryKey: ["jobs", queueName] });
253
237
  };
254
- $[1] = queryClient$1;
255
- $[2] = t0;
256
- } else t0 = $[2];
238
+ $[0] = queryClient$1;
239
+ $[1] = t0;
240
+ } else t0 = $[1];
257
241
  let t1;
258
- if ($[3] !== setError) {
242
+ if ($[2] !== setError) {
259
243
  t1 = (error) => {
260
244
  setError(error instanceof Error ? error.message : "Failed to promote job");
261
245
  };
262
- $[3] = setError;
263
- $[4] = t1;
264
- } else t1 = $[4];
246
+ $[2] = setError;
247
+ $[3] = t1;
248
+ } else t1 = $[3];
265
249
  let t2;
266
- if ($[5] !== t0 || $[6] !== t1) {
250
+ if ($[4] !== t0 || $[5] !== t1) {
267
251
  t2 = {
268
252
  mutationFn: promoteJobFn,
269
253
  onSuccess: t0,
270
254
  onError: t1
271
255
  };
272
- $[5] = t0;
273
- $[6] = t1;
274
- $[7] = t2;
275
- } else t2 = $[7];
256
+ $[4] = t0;
257
+ $[5] = t1;
258
+ $[6] = t2;
259
+ } else t2 = $[6];
276
260
  return useMutation(t2);
277
261
  };
278
262
  const useRetryFromDLQ = () => {
279
- const $ = c(8);
280
- if ($[0] !== "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177") {
281
- for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
282
- $[0] = "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177";
283
- }
263
+ const $ = c(7);
284
264
  const queryClient$1 = useQueryClient();
285
265
  const setError = useBullMQStore(_temp4$3);
286
266
  let t0;
287
- if ($[1] !== queryClient$1) {
267
+ if ($[0] !== queryClient$1) {
288
268
  t0 = (_, t1$1) => {
289
269
  const { queueName } = t1$1;
290
270
  queryClient$1.invalidateQueries({ queryKey: ["dlq-jobs", queueName] });
291
271
  };
292
- $[1] = queryClient$1;
293
- $[2] = t0;
294
- } else t0 = $[2];
272
+ $[0] = queryClient$1;
273
+ $[1] = t0;
274
+ } else t0 = $[1];
295
275
  let t1;
296
- if ($[3] !== setError) {
276
+ if ($[2] !== setError) {
297
277
  t1 = (error) => {
298
278
  setError(error instanceof Error ? error.message : "Failed to retry from DLQ");
299
279
  };
300
- $[3] = setError;
301
- $[4] = t1;
302
- } else t1 = $[4];
280
+ $[2] = setError;
281
+ $[3] = t1;
282
+ } else t1 = $[3];
303
283
  let t2;
304
- if ($[5] !== t0 || $[6] !== t1) {
284
+ if ($[4] !== t0 || $[5] !== t1) {
305
285
  t2 = {
306
286
  mutationFn: retryFromDLQFn,
307
287
  onSuccess: t0,
308
288
  onError: t1
309
289
  };
310
- $[5] = t0;
311
- $[6] = t1;
312
- $[7] = t2;
313
- } else t2 = $[7];
290
+ $[4] = t0;
291
+ $[5] = t1;
292
+ $[6] = t2;
293
+ } else t2 = $[6];
314
294
  return useMutation(t2);
315
295
  };
316
296
  const useRetryAllFromDLQ = () => {
317
- const $ = c(8);
318
- if ($[0] !== "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177") {
319
- for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
320
- $[0] = "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177";
321
- }
297
+ const $ = c(7);
322
298
  const queryClient$1 = useQueryClient();
323
299
  const setError = useBullMQStore(_temp5$3);
324
300
  let t0;
325
- if ($[1] !== queryClient$1) {
301
+ if ($[0] !== queryClient$1) {
326
302
  t0 = (_, t1$1) => {
327
303
  const { queueName } = t1$1;
328
304
  queryClient$1.invalidateQueries({ queryKey: ["dlq-jobs", queueName] });
329
305
  };
330
- $[1] = queryClient$1;
331
- $[2] = t0;
332
- } else t0 = $[2];
306
+ $[0] = queryClient$1;
307
+ $[1] = t0;
308
+ } else t0 = $[1];
333
309
  let t1;
334
- if ($[3] !== setError) {
310
+ if ($[2] !== setError) {
335
311
  t1 = (error) => {
336
312
  setError(error instanceof Error ? error.message : "Failed to retry all from DLQ");
337
313
  };
338
- $[3] = setError;
339
- $[4] = t1;
340
- } else t1 = $[4];
314
+ $[2] = setError;
315
+ $[3] = t1;
316
+ } else t1 = $[3];
341
317
  let t2;
342
- if ($[5] !== t0 || $[6] !== t1) {
318
+ if ($[4] !== t0 || $[5] !== t1) {
343
319
  t2 = {
344
320
  mutationFn: retryAllFromDLQFn,
345
321
  onSuccess: t0,
346
322
  onError: t1
347
323
  };
348
- $[5] = t0;
349
- $[6] = t1;
350
- $[7] = t2;
351
- } else t2 = $[7];
324
+ $[4] = t0;
325
+ $[5] = t1;
326
+ $[6] = t2;
327
+ } else t2 = $[6];
352
328
  return useMutation(t2);
353
329
  };
354
330
  const useClearDLQ = () => {
355
- const $ = c(8);
356
- if ($[0] !== "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177") {
357
- for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
358
- $[0] = "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177";
359
- }
331
+ const $ = c(7);
360
332
  const queryClient$1 = useQueryClient();
361
333
  const setError = useBullMQStore(_temp6$1);
362
334
  let t0;
363
- if ($[1] !== queryClient$1) {
335
+ if ($[0] !== queryClient$1) {
364
336
  t0 = (_, t1$1) => {
365
337
  const { queueName } = t1$1;
366
338
  queryClient$1.invalidateQueries({ queryKey: ["dlq-jobs", queueName] });
367
339
  };
368
- $[1] = queryClient$1;
369
- $[2] = t0;
370
- } else t0 = $[2];
340
+ $[0] = queryClient$1;
341
+ $[1] = t0;
342
+ } else t0 = $[1];
371
343
  let t1;
372
- if ($[3] !== setError) {
344
+ if ($[2] !== setError) {
373
345
  t1 = (error) => {
374
346
  setError(error instanceof Error ? error.message : "Failed to clear DLQ");
375
347
  };
376
- $[3] = setError;
377
- $[4] = t1;
378
- } else t1 = $[4];
348
+ $[2] = setError;
349
+ $[3] = t1;
350
+ } else t1 = $[3];
379
351
  let t2;
380
- if ($[5] !== t0 || $[6] !== t1) {
352
+ if ($[4] !== t0 || $[5] !== t1) {
381
353
  t2 = {
382
354
  mutationFn: clearDLQFn,
383
355
  onSuccess: t0,
384
356
  onError: t1
385
357
  };
386
- $[5] = t0;
387
- $[6] = t1;
388
- $[7] = t2;
389
- } else t2 = $[7];
358
+ $[4] = t0;
359
+ $[5] = t1;
360
+ $[6] = t2;
361
+ } else t2 = $[6];
390
362
  return useMutation(t2);
391
363
  };
392
364
  function _temp$7(state) {
@@ -430,88 +402,80 @@ const fetchDLQJobs = async (queueName, start = 0, end = 100) => {
430
402
  return (await response.json()).jobs;
431
403
  };
432
404
  const useJobsQuery = () => {
433
- const $ = c(14);
434
- if ($[0] !== "62345f058f3013b9a25310d4c1435bcda4709648cddbee0fee4472c79e98da42") {
435
- for (let $i = 0; $i < 14; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
436
- $[0] = "62345f058f3013b9a25310d4c1435bcda4709648cddbee0fee4472c79e98da42";
437
- }
405
+ const $ = c(13);
438
406
  const selectedQueue = useBullMQStore(_temp$6);
439
407
  const selectedStatus = useBullMQStore(_temp2$6);
440
408
  const queueName = selectedQueue?.name;
441
409
  let t0;
442
- if ($[1] !== selectedQueue) {
410
+ if ($[0] !== selectedQueue) {
443
411
  t0 = selectedQueue ? JSON.stringify(selectedQueue.stats) : null;
444
- $[1] = selectedQueue;
445
- $[2] = t0;
446
- } else t0 = $[2];
412
+ $[0] = selectedQueue;
413
+ $[1] = t0;
414
+ } else t0 = $[1];
447
415
  const statsKey = t0;
448
416
  let t1;
449
- if ($[3] !== queueName || $[4] !== selectedStatus || $[5] !== statsKey) {
417
+ if ($[2] !== queueName || $[3] !== selectedStatus || $[4] !== statsKey) {
450
418
  t1 = [
451
419
  "jobs",
452
420
  queueName,
453
421
  selectedStatus,
454
422
  statsKey
455
423
  ];
456
- $[3] = queueName;
457
- $[4] = selectedStatus;
458
- $[5] = statsKey;
459
- $[6] = t1;
460
- } else t1 = $[6];
424
+ $[2] = queueName;
425
+ $[3] = selectedStatus;
426
+ $[4] = statsKey;
427
+ $[5] = t1;
428
+ } else t1 = $[5];
461
429
  let t2;
462
- if ($[7] !== queueName || $[8] !== selectedStatus) {
430
+ if ($[6] !== queueName || $[7] !== selectedStatus) {
463
431
  t2 = () => fetchJobs(queueName, selectedStatus);
464
- $[7] = queueName;
465
- $[8] = selectedStatus;
466
- $[9] = t2;
467
- } else t2 = $[9];
432
+ $[6] = queueName;
433
+ $[7] = selectedStatus;
434
+ $[8] = t2;
435
+ } else t2 = $[8];
468
436
  const t3 = !!queueName;
469
437
  let t4;
470
- if ($[10] !== t1 || $[11] !== t2 || $[12] !== t3) {
438
+ if ($[9] !== t1 || $[10] !== t2 || $[11] !== t3) {
471
439
  t4 = {
472
440
  queryKey: t1,
473
441
  queryFn: t2,
474
442
  enabled: t3,
475
443
  staleTime: 5e3
476
444
  };
477
- $[10] = t1;
478
- $[11] = t2;
479
- $[12] = t3;
480
- $[13] = t4;
481
- } else t4 = $[13];
445
+ $[9] = t1;
446
+ $[10] = t2;
447
+ $[11] = t3;
448
+ $[12] = t4;
449
+ } else t4 = $[12];
482
450
  return useQuery(t4);
483
451
  };
484
452
  const useDLQJobsQuery = (queueName) => {
485
- const $ = c(8);
486
- if ($[0] !== "62345f058f3013b9a25310d4c1435bcda4709648cddbee0fee4472c79e98da42") {
487
- for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
488
- $[0] = "62345f058f3013b9a25310d4c1435bcda4709648cddbee0fee4472c79e98da42";
489
- }
453
+ const $ = c(7);
490
454
  let t0;
491
455
  let t1;
492
- if ($[1] !== queueName) {
456
+ if ($[0] !== queueName) {
493
457
  t0 = ["dlq-jobs", queueName];
494
458
  t1 = () => fetchDLQJobs(queueName);
495
- $[1] = queueName;
496
- $[2] = t0;
497
- $[3] = t1;
459
+ $[0] = queueName;
460
+ $[1] = t0;
461
+ $[2] = t1;
498
462
  } else {
499
- t0 = $[2];
500
- t1 = $[3];
463
+ t0 = $[1];
464
+ t1 = $[2];
501
465
  }
502
466
  const t2 = !!queueName;
503
467
  let t3;
504
- if ($[4] !== t0 || $[5] !== t1 || $[6] !== t2) {
468
+ if ($[3] !== t0 || $[4] !== t1 || $[5] !== t2) {
505
469
  t3 = {
506
470
  queryKey: t0,
507
471
  queryFn: t1,
508
472
  enabled: t2
509
473
  };
510
- $[4] = t0;
511
- $[5] = t1;
512
- $[6] = t2;
513
- $[7] = t3;
514
- } else t3 = $[7];
474
+ $[3] = t0;
475
+ $[4] = t1;
476
+ $[5] = t2;
477
+ $[6] = t3;
478
+ } else t3 = $[6];
515
479
  return useQuery(t3);
516
480
  };
517
481
  function _temp$6(state) {
@@ -524,19 +488,15 @@ function _temp2$6(state_0) {
524
488
  //#endregion
525
489
  //#region src/components/dlq-panel.tsx
526
490
  const DLQJobDetailContent = memo((t0) => {
527
- const $ = c(30);
528
- if ($[0] !== "9c642c700580e607dc6114475cae1bdbb21b1057857ec3c5d1e46ac6c107027a") {
529
- for (let $i = 0; $i < 30; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
530
- $[0] = "9c642c700580e607dc6114475cae1bdbb21b1057857ec3c5d1e46ac6c107027a";
531
- }
491
+ const $ = c(29);
532
492
  const { job, onRetry } = t0;
533
493
  let t1;
534
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
494
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
535
495
  t1 = /* @__PURE__ */ jsx(RefreshCw, { className: "mr-2 h-4 w-4" });
536
- $[1] = t1;
537
- } else t1 = $[1];
496
+ $[0] = t1;
497
+ } else t1 = $[0];
538
498
  let t2;
539
- if ($[2] !== onRetry) {
499
+ if ($[1] !== onRetry) {
540
500
  t2 = /* @__PURE__ */ jsx("div", {
541
501
  className: "flex gap-2",
542
502
  children: /* @__PURE__ */ jsxs(Button, {
@@ -546,83 +506,83 @@ const DLQJobDetailContent = memo((t0) => {
546
506
  children: [t1, "Retry"]
547
507
  })
548
508
  });
549
- $[2] = onRetry;
550
- $[3] = t2;
551
- } else t2 = $[3];
509
+ $[1] = onRetry;
510
+ $[2] = t2;
511
+ } else t2 = $[2];
552
512
  let t3;
553
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
513
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
554
514
  t3 = /* @__PURE__ */ jsx("span", {
555
515
  className: "text-muted-foreground",
556
516
  children: "Job ID"
557
517
  });
558
- $[4] = t3;
559
- } else t3 = $[4];
518
+ $[3] = t3;
519
+ } else t3 = $[3];
560
520
  let t4;
561
- if ($[5] !== job.id) {
521
+ if ($[4] !== job.id) {
562
522
  t4 = /* @__PURE__ */ jsxs("div", { children: [t3, /* @__PURE__ */ jsx("div", {
563
523
  className: "font-mono text-xs",
564
524
  children: job.id
565
525
  })] });
566
- $[5] = job.id;
567
- $[6] = t4;
568
- } else t4 = $[6];
526
+ $[4] = job.id;
527
+ $[5] = t4;
528
+ } else t4 = $[5];
569
529
  let t5;
570
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
530
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
571
531
  t5 = /* @__PURE__ */ jsx("span", {
572
532
  className: "text-muted-foreground",
573
533
  children: "Original Job ID"
574
534
  });
575
- $[7] = t5;
576
- } else t5 = $[7];
535
+ $[6] = t5;
536
+ } else t5 = $[6];
577
537
  const t6 = job.originalJobId || "-";
578
538
  let t7;
579
- if ($[8] !== t6) {
539
+ if ($[7] !== t6) {
580
540
  t7 = /* @__PURE__ */ jsxs("div", { children: [t5, /* @__PURE__ */ jsx("div", {
581
541
  className: "font-mono text-xs",
582
542
  children: t6
583
543
  })] });
584
- $[8] = t6;
585
- $[9] = t7;
586
- } else t7 = $[9];
544
+ $[7] = t6;
545
+ $[8] = t7;
546
+ } else t7 = $[8];
587
547
  let t8;
588
- if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
548
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
589
549
  t8 = /* @__PURE__ */ jsx("span", {
590
550
  className: "text-muted-foreground",
591
551
  children: "Attempts Made"
592
552
  });
593
- $[10] = t8;
594
- } else t8 = $[10];
553
+ $[9] = t8;
554
+ } else t8 = $[9];
595
555
  let t9;
596
- if ($[11] !== job.attemptsMade) {
556
+ if ($[10] !== job.attemptsMade) {
597
557
  t9 = /* @__PURE__ */ jsxs("div", { children: [t8, /* @__PURE__ */ jsx("div", {
598
558
  className: "font-semibold",
599
559
  children: job.attemptsMade
600
560
  })] });
601
- $[11] = job.attemptsMade;
602
- $[12] = t9;
603
- } else t9 = $[12];
561
+ $[10] = job.attemptsMade;
562
+ $[11] = t9;
563
+ } else t9 = $[11];
604
564
  let t10;
605
- if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
565
+ if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
606
566
  t10 = /* @__PURE__ */ jsx("span", {
607
567
  className: "text-muted-foreground",
608
568
  children: "Failed At"
609
569
  });
610
- $[13] = t10;
611
- } else t10 = $[13];
570
+ $[12] = t10;
571
+ } else t10 = $[12];
612
572
  let t11;
613
- if ($[14] !== job.failureTimestamp) {
573
+ if ($[13] !== job.failureTimestamp) {
614
574
  t11 = formatDistanceToNow(job.failureTimestamp, { addSuffix: true });
615
- $[14] = job.failureTimestamp;
616
- $[15] = t11;
617
- } else t11 = $[15];
575
+ $[13] = job.failureTimestamp;
576
+ $[14] = t11;
577
+ } else t11 = $[14];
618
578
  let t12;
619
- if ($[16] !== t11) {
579
+ if ($[15] !== t11) {
620
580
  t12 = /* @__PURE__ */ jsxs("div", { children: [t10, /* @__PURE__ */ jsx("div", { children: t11 })] });
621
- $[16] = t11;
622
- $[17] = t12;
623
- } else t12 = $[17];
581
+ $[15] = t11;
582
+ $[16] = t12;
583
+ } else t12 = $[16];
624
584
  let t13;
625
- if ($[18] !== t12 || $[19] !== t4 || $[20] !== t7 || $[21] !== t9) {
585
+ if ($[17] !== t12 || $[18] !== t4 || $[19] !== t7 || $[20] !== t9) {
626
586
  t13 = /* @__PURE__ */ jsxs("div", {
627
587
  className: "grid grid-cols-2 gap-4 text-sm",
628
588
  children: [
@@ -632,31 +592,31 @@ const DLQJobDetailContent = memo((t0) => {
632
592
  t12
633
593
  ]
634
594
  });
635
- $[18] = t12;
636
- $[19] = t4;
637
- $[20] = t7;
638
- $[21] = t9;
639
- $[22] = t13;
640
- } else t13 = $[22];
595
+ $[17] = t12;
596
+ $[18] = t4;
597
+ $[19] = t7;
598
+ $[20] = t9;
599
+ $[21] = t13;
600
+ } else t13 = $[21];
641
601
  let t14;
642
- if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
602
+ if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
643
603
  t14 = /* @__PURE__ */ jsx("div", {
644
604
  className: "text-sm font-semibold text-destructive mb-2",
645
605
  children: "Failure Reason"
646
606
  });
647
- $[23] = t14;
648
- } else t14 = $[23];
607
+ $[22] = t14;
608
+ } else t14 = $[22];
649
609
  let t15;
650
- if ($[24] !== job.failureReason) {
610
+ if ($[23] !== job.failureReason) {
651
611
  t15 = /* @__PURE__ */ jsxs("div", { children: [t14, /* @__PURE__ */ jsx("div", {
652
612
  className: "font-mono text-sm bg-destructive/10 p-3 rounded text-destructive",
653
613
  children: job.failureReason
654
614
  })] });
655
- $[24] = job.failureReason;
656
- $[25] = t15;
657
- } else t15 = $[25];
615
+ $[23] = job.failureReason;
616
+ $[24] = t15;
617
+ } else t15 = $[24];
658
618
  let t16;
659
- if ($[26] !== t13 || $[27] !== t15 || $[28] !== t2) {
619
+ if ($[25] !== t13 || $[26] !== t15 || $[27] !== t2) {
660
620
  t16 = /* @__PURE__ */ jsxs("div", {
661
621
  className: "space-y-4",
662
622
  children: [
@@ -665,24 +625,20 @@ const DLQJobDetailContent = memo((t0) => {
665
625
  t15
666
626
  ]
667
627
  });
668
- $[26] = t13;
669
- $[27] = t15;
670
- $[28] = t2;
671
- $[29] = t16;
672
- } else t16 = $[29];
628
+ $[25] = t13;
629
+ $[26] = t15;
630
+ $[27] = t2;
631
+ $[28] = t16;
632
+ } else t16 = $[28];
673
633
  return t16;
674
634
  });
675
635
  DLQJobDetailContent.displayName = "DLQJobDetailContent";
676
636
  const DLQJobDataTab = memo((t0) => {
677
- const $ = c(3);
678
- if ($[0] !== "9c642c700580e607dc6114475cae1bdbb21b1057857ec3c5d1e46ac6c107027a") {
679
- for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
680
- $[0] = "9c642c700580e607dc6114475cae1bdbb21b1057857ec3c5d1e46ac6c107027a";
681
- }
637
+ const $ = c(2);
682
638
  const { data } = t0;
683
639
  const t1 = data;
684
640
  let t2;
685
- if ($[1] !== t1) {
641
+ if ($[0] !== t1) {
686
642
  t2 = /* @__PURE__ */ jsx("div", {
687
643
  className: "bg-muted/30 p-4 rounded overflow-auto max-h-[400px]",
688
644
  children: /* @__PURE__ */ jsx(JsonView, {
@@ -691,33 +647,29 @@ const DLQJobDataTab = memo((t0) => {
691
647
  collapsed: 2
692
648
  })
693
649
  });
694
- $[1] = t1;
695
- $[2] = t2;
696
- } else t2 = $[2];
650
+ $[0] = t1;
651
+ $[1] = t2;
652
+ } else t2 = $[1];
697
653
  return t2;
698
654
  });
699
655
  DLQJobDataTab.displayName = "DLQJobDataTab";
700
656
  const DLQPanel = memo(() => {
701
- const $ = c(66);
702
- if ($[0] !== "9c642c700580e607dc6114475cae1bdbb21b1057857ec3c5d1e46ac6c107027a") {
703
- for (let $i = 0; $i < 66; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
704
- $[0] = "9c642c700580e607dc6114475cae1bdbb21b1057857ec3c5d1e46ac6c107027a";
705
- }
657
+ const $ = c(65);
706
658
  const selectedQueue = useBullMQStore(_temp$5);
707
659
  const { data: t0, isLoading, refetch } = useDLQJobsQuery(selectedQueue?.isDLQ ? selectedQueue.name : void 0);
708
660
  let t1;
709
- if ($[1] !== t0) {
661
+ if ($[0] !== t0) {
710
662
  t1 = t0 === void 0 ? [] : t0;
711
- $[1] = t0;
712
- $[2] = t1;
713
- } else t1 = $[2];
663
+ $[0] = t0;
664
+ $[1] = t1;
665
+ } else t1 = $[1];
714
666
  const dlqJobs = t1;
715
667
  const retryFromDLQMutation = useRetryFromDLQ();
716
668
  const retryAllFromDLQMutation = useRetryAllFromDLQ();
717
669
  const clearDLQMutation = useClearDLQ();
718
670
  const [selectedDlqJob, setSelectedDlqJob] = useState(null);
719
671
  let t2;
720
- if ($[3] !== retryFromDLQMutation || $[4] !== selectedQueue) {
672
+ if ($[2] !== retryFromDLQMutation || $[3] !== selectedQueue) {
721
673
  t2 = (jobId) => {
722
674
  if (!selectedQueue) return;
723
675
  retryFromDLQMutation.mutate({
@@ -725,67 +677,67 @@ const DLQPanel = memo(() => {
725
677
  jobId
726
678
  });
727
679
  };
728
- $[3] = retryFromDLQMutation;
729
- $[4] = selectedQueue;
730
- $[5] = t2;
731
- } else t2 = $[5];
680
+ $[2] = retryFromDLQMutation;
681
+ $[3] = selectedQueue;
682
+ $[4] = t2;
683
+ } else t2 = $[4];
732
684
  const handleRetry = t2;
733
685
  let t3;
734
- if ($[6] !== retryAllFromDLQMutation || $[7] !== selectedQueue) {
686
+ if ($[5] !== retryAllFromDLQMutation || $[6] !== selectedQueue) {
735
687
  t3 = () => {
736
688
  if (!selectedQueue) return;
737
689
  retryAllFromDLQMutation.mutate({ queueName: selectedQueue.name });
738
690
  };
739
- $[6] = retryAllFromDLQMutation;
740
- $[7] = selectedQueue;
741
- $[8] = t3;
742
- } else t3 = $[8];
691
+ $[5] = retryAllFromDLQMutation;
692
+ $[6] = selectedQueue;
693
+ $[7] = t3;
694
+ } else t3 = $[7];
743
695
  const handleRetryAll = t3;
744
696
  let t4;
745
- if ($[9] !== clearDLQMutation || $[10] !== selectedQueue) {
697
+ if ($[8] !== clearDLQMutation || $[9] !== selectedQueue) {
746
698
  t4 = () => {
747
699
  if (!selectedQueue) return;
748
700
  clearDLQMutation.mutate({ queueName: selectedQueue.name });
749
701
  };
750
- $[9] = clearDLQMutation;
751
- $[10] = selectedQueue;
752
- $[11] = t4;
753
- } else t4 = $[11];
702
+ $[8] = clearDLQMutation;
703
+ $[9] = selectedQueue;
704
+ $[10] = t4;
705
+ } else t4 = $[10];
754
706
  const handleClear = t4;
755
707
  let t5;
756
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
708
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
757
709
  t5 = () => {
758
710
  setSelectedDlqJob(null);
759
711
  };
760
- $[12] = t5;
761
- } else t5 = $[12];
712
+ $[11] = t5;
713
+ } else t5 = $[11];
762
714
  const handleCloseSidePanel = t5;
763
715
  let t6;
764
- if ($[13] !== handleRetry || $[14] !== selectedDlqJob) {
716
+ if ($[12] !== handleRetry || $[13] !== selectedDlqJob) {
765
717
  t6 = () => {
766
718
  if (selectedDlqJob) {
767
719
  handleRetry(selectedDlqJob.id);
768
720
  setSelectedDlqJob(null);
769
721
  }
770
722
  };
771
- $[13] = handleRetry;
772
- $[14] = selectedDlqJob;
773
- $[15] = t6;
774
- } else t6 = $[15];
723
+ $[12] = handleRetry;
724
+ $[13] = selectedDlqJob;
725
+ $[14] = t6;
726
+ } else t6 = $[14];
775
727
  const handleRetryAndClose = t6;
776
728
  if (!selectedQueue?.isDLQ) return null;
777
729
  let t7;
778
- if ($[16] !== selectedQueue.displayName) {
730
+ if ($[15] !== selectedQueue.displayName) {
779
731
  t7 = /* @__PURE__ */ jsx("h2", {
780
732
  className: "font-semibold text-lg",
781
733
  children: selectedQueue.displayName
782
734
  });
783
- $[16] = selectedQueue.displayName;
784
- $[17] = t7;
785
- } else t7 = $[17];
735
+ $[15] = selectedQueue.displayName;
736
+ $[16] = t7;
737
+ } else t7 = $[16];
786
738
  const t8 = dlqJobs.length !== 1 ? "s" : "";
787
739
  let t9;
788
- if ($[18] !== dlqJobs.length || $[19] !== t8) {
740
+ if ($[17] !== dlqJobs.length || $[18] !== t8) {
789
741
  t9 = /* @__PURE__ */ jsxs("p", {
790
742
  className: "text-sm text-muted-foreground",
791
743
  children: [
@@ -795,32 +747,32 @@ const DLQPanel = memo(() => {
795
747
  " in dead letter queue"
796
748
  ]
797
749
  });
798
- $[18] = dlqJobs.length;
799
- $[19] = t8;
800
- $[20] = t9;
801
- } else t9 = $[20];
750
+ $[17] = dlqJobs.length;
751
+ $[18] = t8;
752
+ $[19] = t9;
753
+ } else t9 = $[19];
802
754
  let t10;
803
- if ($[21] !== t7 || $[22] !== t9) {
755
+ if ($[20] !== t7 || $[21] !== t9) {
804
756
  t10 = /* @__PURE__ */ jsxs("div", { children: [t7, t9] });
805
- $[21] = t7;
806
- $[22] = t9;
807
- $[23] = t10;
808
- } else t10 = $[23];
757
+ $[20] = t7;
758
+ $[21] = t9;
759
+ $[22] = t10;
760
+ } else t10 = $[22];
809
761
  let t11;
810
- if ($[24] !== refetch) {
762
+ if ($[23] !== refetch) {
811
763
  t11 = () => refetch();
812
- $[24] = refetch;
813
- $[25] = t11;
814
- } else t11 = $[25];
764
+ $[23] = refetch;
765
+ $[24] = t11;
766
+ } else t11 = $[24];
815
767
  const t12 = `h-4 w-4 ${isLoading ? "animate-spin" : ""}`;
816
768
  let t13;
817
- if ($[26] !== t12) {
769
+ if ($[25] !== t12) {
818
770
  t13 = /* @__PURE__ */ jsx(RefreshCw, { className: t12 });
819
- $[26] = t12;
820
- $[27] = t13;
821
- } else t13 = $[27];
771
+ $[25] = t12;
772
+ $[26] = t13;
773
+ } else t13 = $[26];
822
774
  let t14;
823
- if ($[28] !== isLoading || $[29] !== t11 || $[30] !== t13) {
775
+ if ($[27] !== isLoading || $[28] !== t11 || $[29] !== t13) {
824
776
  t14 = /* @__PURE__ */ jsx(TooltipTrigger, {
825
777
  asChild: true,
826
778
  children: /* @__PURE__ */ jsx(Button, {
@@ -831,30 +783,30 @@ const DLQPanel = memo(() => {
831
783
  children: t13
832
784
  })
833
785
  });
834
- $[28] = isLoading;
835
- $[29] = t11;
836
- $[30] = t13;
837
- $[31] = t14;
838
- } else t14 = $[31];
786
+ $[27] = isLoading;
787
+ $[28] = t11;
788
+ $[29] = t13;
789
+ $[30] = t14;
790
+ } else t14 = $[30];
839
791
  let t15;
840
- if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
792
+ if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
841
793
  t15 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Refresh DLQ jobs list" }) });
842
- $[32] = t15;
843
- } else t15 = $[32];
794
+ $[31] = t15;
795
+ } else t15 = $[31];
844
796
  let t16;
845
- if ($[33] !== t14) {
797
+ if ($[32] !== t14) {
846
798
  t16 = /* @__PURE__ */ jsxs(Tooltip, { children: [t14, t15] });
847
- $[33] = t14;
848
- $[34] = t16;
849
- } else t16 = $[34];
799
+ $[32] = t14;
800
+ $[33] = t16;
801
+ } else t16 = $[33];
850
802
  const t17 = dlqJobs.length === 0;
851
803
  let t18;
852
- if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
804
+ if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
853
805
  t18 = /* @__PURE__ */ jsx(RefreshCw, { className: "mr-2 h-4 w-4" });
854
- $[35] = t18;
855
- } else t18 = $[35];
806
+ $[34] = t18;
807
+ } else t18 = $[34];
856
808
  let t19;
857
- if ($[36] !== handleRetryAll || $[37] !== t17) {
809
+ if ($[35] !== handleRetryAll || $[36] !== t17) {
858
810
  t19 = /* @__PURE__ */ jsx(TooltipTrigger, {
859
811
  asChild: true,
860
812
  children: /* @__PURE__ */ jsxs(Button, {
@@ -865,29 +817,29 @@ const DLQPanel = memo(() => {
865
817
  children: [t18, "Retry All"]
866
818
  })
867
819
  });
868
- $[36] = handleRetryAll;
869
- $[37] = t17;
870
- $[38] = t19;
871
- } else t19 = $[38];
820
+ $[35] = handleRetryAll;
821
+ $[36] = t17;
822
+ $[37] = t19;
823
+ } else t19 = $[37];
872
824
  let t20;
873
- if ($[39] === Symbol.for("react.memo_cache_sentinel")) {
825
+ if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
874
826
  t20 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Re-queue all failed jobs to the original queue" }) });
875
- $[39] = t20;
876
- } else t20 = $[39];
827
+ $[38] = t20;
828
+ } else t20 = $[38];
877
829
  let t21;
878
- if ($[40] !== t19) {
830
+ if ($[39] !== t19) {
879
831
  t21 = /* @__PURE__ */ jsxs(Tooltip, { children: [t19, t20] });
880
- $[40] = t19;
881
- $[41] = t21;
882
- } else t21 = $[41];
832
+ $[39] = t19;
833
+ $[40] = t21;
834
+ } else t21 = $[40];
883
835
  const t22 = dlqJobs.length === 0;
884
836
  let t23;
885
- if ($[42] === Symbol.for("react.memo_cache_sentinel")) {
837
+ if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
886
838
  t23 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
887
- $[42] = t23;
888
- } else t23 = $[42];
839
+ $[41] = t23;
840
+ } else t23 = $[41];
889
841
  let t24;
890
- if ($[43] !== handleClear || $[44] !== t22) {
842
+ if ($[42] !== handleClear || $[43] !== t22) {
891
843
  t24 = /* @__PURE__ */ jsx(TooltipTrigger, {
892
844
  asChild: true,
893
845
  children: /* @__PURE__ */ jsxs(Button, {
@@ -899,23 +851,23 @@ const DLQPanel = memo(() => {
899
851
  children: [t23, "Clear All"]
900
852
  })
901
853
  });
902
- $[43] = handleClear;
903
- $[44] = t22;
904
- $[45] = t24;
905
- } else t24 = $[45];
854
+ $[42] = handleClear;
855
+ $[43] = t22;
856
+ $[44] = t24;
857
+ } else t24 = $[44];
906
858
  let t25;
907
- if ($[46] === Symbol.for("react.memo_cache_sentinel")) {
859
+ if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
908
860
  t25 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Permanently delete all jobs from DLQ" }) });
909
- $[46] = t25;
910
- } else t25 = $[46];
861
+ $[45] = t25;
862
+ } else t25 = $[45];
911
863
  let t26;
912
- if ($[47] !== t24) {
864
+ if ($[46] !== t24) {
913
865
  t26 = /* @__PURE__ */ jsxs(Tooltip, { children: [t24, t25] });
914
- $[47] = t24;
915
- $[48] = t26;
916
- } else t26 = $[48];
866
+ $[46] = t24;
867
+ $[47] = t26;
868
+ } else t26 = $[47];
917
869
  let t27;
918
- if ($[49] !== t16 || $[50] !== t21 || $[51] !== t26) {
870
+ if ($[48] !== t16 || $[49] !== t21 || $[50] !== t26) {
919
871
  t27 = /* @__PURE__ */ jsxs("div", {
920
872
  className: "flex items-center gap-2",
921
873
  children: [
@@ -924,23 +876,23 @@ const DLQPanel = memo(() => {
924
876
  t26
925
877
  ]
926
878
  });
927
- $[49] = t16;
928
- $[50] = t21;
929
- $[51] = t26;
930
- $[52] = t27;
931
- } else t27 = $[52];
879
+ $[48] = t16;
880
+ $[49] = t21;
881
+ $[50] = t26;
882
+ $[51] = t27;
883
+ } else t27 = $[51];
932
884
  let t28;
933
- if ($[53] !== t10 || $[54] !== t27) {
885
+ if ($[52] !== t10 || $[53] !== t27) {
934
886
  t28 = /* @__PURE__ */ jsxs("div", {
935
887
  className: "flex items-center justify-between p-3 border-b border-border",
936
888
  children: [t10, t27]
937
889
  });
938
- $[53] = t10;
939
- $[54] = t27;
940
- $[55] = t28;
941
- } else t28 = $[55];
890
+ $[52] = t10;
891
+ $[53] = t27;
892
+ $[54] = t28;
893
+ } else t28 = $[54];
942
894
  let t29;
943
- if ($[56] !== dlqJobs || $[57] !== handleRetry) {
895
+ if ($[55] !== dlqJobs || $[56] !== handleRetry) {
944
896
  t29 = dlqJobs.length === 0 ? /* @__PURE__ */ jsx("div", {
945
897
  className: "flex items-center justify-center flex-1 text-muted-foreground",
946
898
  children: "No jobs in dead letter queue"
@@ -1007,12 +959,12 @@ const DLQPanel = memo(() => {
1007
959
  ]
1008
960
  }, job.id)) })] })
1009
961
  });
1010
- $[56] = dlqJobs;
1011
- $[57] = handleRetry;
1012
- $[58] = t29;
1013
- } else t29 = $[58];
962
+ $[55] = dlqJobs;
963
+ $[56] = handleRetry;
964
+ $[57] = t29;
965
+ } else t29 = $[57];
1014
966
  let t30;
1015
- if ($[59] !== handleRetryAndClose || $[60] !== selectedDlqJob) {
967
+ if ($[58] !== handleRetryAndClose || $[59] !== selectedDlqJob) {
1016
968
  t30 = selectedDlqJob && /* @__PURE__ */ jsx(Sidebar, {
1017
969
  onClose: handleCloseSidePanel,
1018
970
  title: "Dead Letter Job",
@@ -1033,12 +985,12 @@ const DLQPanel = memo(() => {
1033
985
  label: "Close"
1034
986
  }]
1035
987
  });
1036
- $[59] = handleRetryAndClose;
1037
- $[60] = selectedDlqJob;
1038
- $[61] = t30;
1039
- } else t30 = $[61];
988
+ $[58] = handleRetryAndClose;
989
+ $[59] = selectedDlqJob;
990
+ $[60] = t30;
991
+ } else t30 = $[60];
1040
992
  let t31;
1041
- if ($[62] !== t28 || $[63] !== t29 || $[64] !== t30) {
993
+ if ($[61] !== t28 || $[62] !== t29 || $[63] !== t30) {
1042
994
  t31 = /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs("div", {
1043
995
  className: "flex flex-col h-full",
1044
996
  children: [
@@ -1047,11 +999,11 @@ const DLQPanel = memo(() => {
1047
999
  t30
1048
1000
  ]
1049
1001
  }) });
1050
- $[62] = t28;
1051
- $[63] = t29;
1052
- $[64] = t30;
1053
- $[65] = t31;
1054
- } else t31 = $[65];
1002
+ $[61] = t28;
1003
+ $[62] = t29;
1004
+ $[63] = t30;
1005
+ $[64] = t31;
1006
+ } else t31 = $[64];
1055
1007
  return t31;
1056
1008
  });
1057
1009
  DLQPanel.displayName = "DLQPanel";
@@ -1065,15 +1017,11 @@ function _temp2$5(e) {
1065
1017
  //#endregion
1066
1018
  //#region src/components/job-detail.tsx
1067
1019
  const JobDataTab = memo((t0) => {
1068
- const $ = c(3);
1069
- if ($[0] !== "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd") {
1070
- for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1071
- $[0] = "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd";
1072
- }
1020
+ const $ = c(2);
1073
1021
  const { data } = t0;
1074
1022
  const t1 = data;
1075
1023
  let t2;
1076
- if ($[1] !== t1) {
1024
+ if ($[0] !== t1) {
1077
1025
  t2 = /* @__PURE__ */ jsx("div", {
1078
1026
  className: "bg-muted/30 p-4 rounded",
1079
1027
  children: /* @__PURE__ */ jsx(JsonView, {
@@ -1082,21 +1030,17 @@ const JobDataTab = memo((t0) => {
1082
1030
  collapsed: 2
1083
1031
  })
1084
1032
  });
1085
- $[1] = t1;
1086
- $[2] = t2;
1087
- } else t2 = $[2];
1033
+ $[0] = t1;
1034
+ $[1] = t2;
1035
+ } else t2 = $[1];
1088
1036
  return t2;
1089
1037
  });
1090
1038
  JobDataTab.displayName = "JobDataTab";
1091
1039
  const JobOptionsTab = memo((t0) => {
1092
- const $ = c(3);
1093
- if ($[0] !== "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd") {
1094
- for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1095
- $[0] = "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd";
1096
- }
1040
+ const $ = c(2);
1097
1041
  const { opts } = t0;
1098
1042
  let t1;
1099
- if ($[1] !== opts) {
1043
+ if ($[0] !== opts) {
1100
1044
  t1 = /* @__PURE__ */ jsx("div", {
1101
1045
  className: "bg-muted/30 p-4 rounded",
1102
1046
  children: /* @__PURE__ */ jsx(JsonView, {
@@ -1105,22 +1049,18 @@ const JobOptionsTab = memo((t0) => {
1105
1049
  collapsed: 2
1106
1050
  })
1107
1051
  });
1108
- $[1] = opts;
1109
- $[2] = t1;
1110
- } else t1 = $[2];
1052
+ $[0] = opts;
1053
+ $[1] = t1;
1054
+ } else t1 = $[1];
1111
1055
  return t1;
1112
1056
  });
1113
1057
  JobOptionsTab.displayName = "JobOptionsTab";
1114
1058
  const JobResultTab = memo((t0) => {
1115
- const $ = c(3);
1116
- if ($[0] !== "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd") {
1117
- for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1118
- $[0] = "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd";
1119
- }
1059
+ const $ = c(2);
1120
1060
  const { returnvalue } = t0;
1121
1061
  const t1 = returnvalue;
1122
1062
  let t2;
1123
- if ($[1] !== t1) {
1063
+ if ($[0] !== t1) {
1124
1064
  t2 = /* @__PURE__ */ jsx("div", {
1125
1065
  className: "bg-muted/30 p-4 rounded",
1126
1066
  children: /* @__PURE__ */ jsx(JsonView, {
@@ -1129,38 +1069,34 @@ const JobResultTab = memo((t0) => {
1129
1069
  collapsed: 2
1130
1070
  })
1131
1071
  });
1132
- $[1] = t1;
1133
- $[2] = t2;
1134
- } else t2 = $[2];
1072
+ $[0] = t1;
1073
+ $[1] = t2;
1074
+ } else t2 = $[1];
1135
1075
  return t2;
1136
1076
  });
1137
1077
  JobResultTab.displayName = "JobResultTab";
1138
1078
  const JobErrorTab = memo((t0) => {
1139
- const $ = c(9);
1140
- if ($[0] !== "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd") {
1141
- for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1142
- $[0] = "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd";
1143
- }
1079
+ const $ = c(8);
1144
1080
  const { failedReason, stacktrace } = t0;
1145
1081
  let t1;
1146
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1082
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1147
1083
  t1 = /* @__PURE__ */ jsx("div", {
1148
1084
  className: "text-sm font-semibold text-destructive mb-1",
1149
1085
  children: "Error Message"
1150
1086
  });
1151
- $[1] = t1;
1152
- } else t1 = $[1];
1087
+ $[0] = t1;
1088
+ } else t1 = $[0];
1153
1089
  let t2;
1154
- if ($[2] !== failedReason) {
1090
+ if ($[1] !== failedReason) {
1155
1091
  t2 = /* @__PURE__ */ jsxs("div", { children: [t1, /* @__PURE__ */ jsx("div", {
1156
1092
  className: "font-mono text-sm bg-destructive/10 p-3 rounded text-destructive",
1157
1093
  children: failedReason
1158
1094
  })] });
1159
- $[2] = failedReason;
1160
- $[3] = t2;
1161
- } else t2 = $[3];
1095
+ $[1] = failedReason;
1096
+ $[2] = t2;
1097
+ } else t2 = $[2];
1162
1098
  let t3;
1163
- if ($[4] !== stacktrace) {
1099
+ if ($[3] !== stacktrace) {
1164
1100
  t3 = stacktrace && stacktrace.length > 0 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
1165
1101
  className: "text-sm font-semibold text-muted-foreground mb-1",
1166
1102
  children: "Stack Trace"
@@ -1168,28 +1104,24 @@ const JobErrorTab = memo((t0) => {
1168
1104
  className: "font-mono text-xs bg-muted p-3 rounded overflow-auto max-h-[300px]",
1169
1105
  children: stacktrace.join("\n")
1170
1106
  })] });
1171
- $[4] = stacktrace;
1172
- $[5] = t3;
1173
- } else t3 = $[5];
1107
+ $[3] = stacktrace;
1108
+ $[4] = t3;
1109
+ } else t3 = $[4];
1174
1110
  let t4;
1175
- if ($[6] !== t2 || $[7] !== t3) {
1111
+ if ($[5] !== t2 || $[6] !== t3) {
1176
1112
  t4 = /* @__PURE__ */ jsxs("div", {
1177
1113
  className: "space-y-4",
1178
1114
  children: [t2, t3]
1179
1115
  });
1180
- $[6] = t2;
1181
- $[7] = t3;
1182
- $[8] = t4;
1183
- } else t4 = $[8];
1116
+ $[5] = t2;
1117
+ $[6] = t3;
1118
+ $[7] = t4;
1119
+ } else t4 = $[7];
1184
1120
  return t4;
1185
1121
  });
1186
1122
  JobErrorTab.displayName = "JobErrorTab";
1187
1123
  const JobDetail = memo(() => {
1188
- const $ = c(92);
1189
- if ($[0] !== "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd") {
1190
- for (let $i = 0; $i < 92; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1191
- $[0] = "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd";
1192
- }
1124
+ const $ = c(91);
1193
1125
  const selectedJob = useBullMQStore(_temp$4);
1194
1126
  const selectedQueue = useBullMQStore(_temp2$4);
1195
1127
  const jobDetailOpen = useBullMQStore(_temp3$3);
@@ -1199,18 +1131,18 @@ const JobDetail = memo(() => {
1199
1131
  const removeJobMutation = useRemoveJob();
1200
1132
  const promoteJobMutation = usePromoteJob();
1201
1133
  let t0;
1202
- if ($[1] !== setJobDetailOpen || $[2] !== setSelectedJob) {
1134
+ if ($[0] !== setJobDetailOpen || $[1] !== setSelectedJob) {
1203
1135
  t0 = () => {
1204
1136
  setJobDetailOpen(false);
1205
1137
  setSelectedJob(null);
1206
1138
  };
1207
- $[1] = setJobDetailOpen;
1208
- $[2] = setSelectedJob;
1209
- $[3] = t0;
1210
- } else t0 = $[3];
1139
+ $[0] = setJobDetailOpen;
1140
+ $[1] = setSelectedJob;
1141
+ $[2] = t0;
1142
+ } else t0 = $[2];
1211
1143
  const handleClose = t0;
1212
1144
  let t1;
1213
- if ($[4] !== handleClose || $[5] !== retryJobMutation || $[6] !== selectedJob || $[7] !== selectedQueue) {
1145
+ if ($[3] !== handleClose || $[4] !== retryJobMutation || $[5] !== selectedJob || $[6] !== selectedQueue) {
1214
1146
  t1 = () => {
1215
1147
  if (!selectedQueue || !selectedJob) return;
1216
1148
  retryJobMutation.mutate({
@@ -1219,15 +1151,15 @@ const JobDetail = memo(() => {
1219
1151
  });
1220
1152
  handleClose();
1221
1153
  };
1222
- $[4] = handleClose;
1223
- $[5] = retryJobMutation;
1224
- $[6] = selectedJob;
1225
- $[7] = selectedQueue;
1226
- $[8] = t1;
1227
- } else t1 = $[8];
1154
+ $[3] = handleClose;
1155
+ $[4] = retryJobMutation;
1156
+ $[5] = selectedJob;
1157
+ $[6] = selectedQueue;
1158
+ $[7] = t1;
1159
+ } else t1 = $[7];
1228
1160
  const handleRetry = t1;
1229
1161
  let t2;
1230
- if ($[9] !== handleClose || $[10] !== removeJobMutation || $[11] !== selectedJob || $[12] !== selectedQueue) {
1162
+ if ($[8] !== handleClose || $[9] !== removeJobMutation || $[10] !== selectedJob || $[11] !== selectedQueue) {
1231
1163
  t2 = () => {
1232
1164
  if (!selectedQueue || !selectedJob) return;
1233
1165
  removeJobMutation.mutate({
@@ -1236,15 +1168,15 @@ const JobDetail = memo(() => {
1236
1168
  });
1237
1169
  handleClose();
1238
1170
  };
1239
- $[9] = handleClose;
1240
- $[10] = removeJobMutation;
1241
- $[11] = selectedJob;
1242
- $[12] = selectedQueue;
1243
- $[13] = t2;
1244
- } else t2 = $[13];
1171
+ $[8] = handleClose;
1172
+ $[9] = removeJobMutation;
1173
+ $[10] = selectedJob;
1174
+ $[11] = selectedQueue;
1175
+ $[12] = t2;
1176
+ } else t2 = $[12];
1245
1177
  const handleRemove = t2;
1246
1178
  let t3;
1247
- if ($[14] !== handleClose || $[15] !== promoteJobMutation || $[16] !== selectedJob || $[17] !== selectedQueue) {
1179
+ if ($[13] !== handleClose || $[14] !== promoteJobMutation || $[15] !== selectedJob || $[16] !== selectedQueue) {
1248
1180
  t3 = () => {
1249
1181
  if (!selectedQueue || !selectedJob) return;
1250
1182
  promoteJobMutation.mutate({
@@ -1253,47 +1185,47 @@ const JobDetail = memo(() => {
1253
1185
  });
1254
1186
  handleClose();
1255
1187
  };
1256
- $[14] = handleClose;
1257
- $[15] = promoteJobMutation;
1258
- $[16] = selectedJob;
1259
- $[17] = selectedQueue;
1260
- $[18] = t3;
1261
- } else t3 = $[18];
1188
+ $[13] = handleClose;
1189
+ $[14] = promoteJobMutation;
1190
+ $[15] = selectedJob;
1191
+ $[16] = selectedQueue;
1192
+ $[17] = t3;
1193
+ } else t3 = $[17];
1262
1194
  const handlePromote = t3;
1263
1195
  if (!jobDetailOpen || !selectedJob || !selectedQueue) return null;
1264
1196
  const hasError = !!selectedJob.failedReason;
1265
1197
  const isDelayed = selectedJob.delay && selectedJob.delay > 0;
1266
1198
  const hasReturnValue = selectedJob.returnvalue !== void 0 && selectedJob.returnvalue !== null;
1267
1199
  let t4;
1268
- if ($[19] !== selectedJob.data) {
1200
+ if ($[18] !== selectedJob.data) {
1269
1201
  t4 = {
1270
1202
  label: "Data",
1271
1203
  content: /* @__PURE__ */ jsx(JobDataTab, { data: selectedJob.data })
1272
1204
  };
1273
- $[19] = selectedJob.data;
1274
- $[20] = t4;
1275
- } else t4 = $[20];
1205
+ $[18] = selectedJob.data;
1206
+ $[19] = t4;
1207
+ } else t4 = $[19];
1276
1208
  let t5;
1277
- if ($[21] !== selectedJob.opts) {
1209
+ if ($[20] !== selectedJob.opts) {
1278
1210
  t5 = {
1279
1211
  label: "Options",
1280
1212
  content: /* @__PURE__ */ jsx(JobOptionsTab, { opts: selectedJob.opts })
1281
1213
  };
1282
- $[21] = selectedJob.opts;
1283
- $[22] = t5;
1284
- } else t5 = $[22];
1214
+ $[20] = selectedJob.opts;
1215
+ $[21] = t5;
1216
+ } else t5 = $[21];
1285
1217
  let t6;
1286
- if ($[23] !== hasReturnValue || $[24] !== selectedJob.returnvalue) {
1218
+ if ($[22] !== hasReturnValue || $[23] !== selectedJob.returnvalue) {
1287
1219
  t6 = hasReturnValue ? [{
1288
1220
  label: "Result",
1289
1221
  content: /* @__PURE__ */ jsx(JobResultTab, { returnvalue: selectedJob.returnvalue })
1290
1222
  }] : [];
1291
- $[23] = hasReturnValue;
1292
- $[24] = selectedJob.returnvalue;
1293
- $[25] = t6;
1294
- } else t6 = $[25];
1223
+ $[22] = hasReturnValue;
1224
+ $[23] = selectedJob.returnvalue;
1225
+ $[24] = t6;
1226
+ } else t6 = $[24];
1295
1227
  let t7;
1296
- if ($[26] !== hasError || $[27] !== selectedJob.failedReason || $[28] !== selectedJob.stacktrace) {
1228
+ if ($[25] !== hasError || $[26] !== selectedJob.failedReason || $[27] !== selectedJob.stacktrace) {
1297
1229
  t7 = hasError ? [{
1298
1230
  label: "Error",
1299
1231
  content: /* @__PURE__ */ jsx(JobErrorTab, {
@@ -1301,28 +1233,28 @@ const JobDetail = memo(() => {
1301
1233
  stacktrace: selectedJob.stacktrace
1302
1234
  })
1303
1235
  }] : [];
1304
- $[26] = hasError;
1305
- $[27] = selectedJob.failedReason;
1306
- $[28] = selectedJob.stacktrace;
1307
- $[29] = t7;
1308
- } else t7 = $[29];
1236
+ $[25] = hasError;
1237
+ $[26] = selectedJob.failedReason;
1238
+ $[27] = selectedJob.stacktrace;
1239
+ $[28] = t7;
1240
+ } else t7 = $[28];
1309
1241
  let t8;
1310
- if ($[30] !== t4 || $[31] !== t5 || $[32] !== t6 || $[33] !== t7) {
1242
+ if ($[29] !== t4 || $[30] !== t5 || $[31] !== t6 || $[32] !== t7) {
1311
1243
  t8 = [
1312
1244
  t4,
1313
1245
  t5,
1314
1246
  ...t6,
1315
1247
  ...t7
1316
1248
  ];
1317
- $[30] = t4;
1318
- $[31] = t5;
1319
- $[32] = t6;
1320
- $[33] = t7;
1321
- $[34] = t8;
1322
- } else t8 = $[34];
1249
+ $[29] = t4;
1250
+ $[30] = t5;
1251
+ $[31] = t6;
1252
+ $[32] = t7;
1253
+ $[33] = t8;
1254
+ } else t8 = $[33];
1323
1255
  const tabs = t8;
1324
1256
  let t9;
1325
- if ($[35] !== hasError || $[36] !== isDelayed || $[37] !== selectedJob.finishedOn || $[38] !== selectedJob.processedOn) {
1257
+ if ($[34] !== hasError || $[35] !== isDelayed || $[36] !== selectedJob.finishedOn || $[37] !== selectedJob.processedOn) {
1326
1258
  t9 = hasError ? /* @__PURE__ */ jsx("span", {
1327
1259
  className: "text-destructive",
1328
1260
  children: "Failed"
@@ -1339,60 +1271,60 @@ const JobDetail = memo(() => {
1339
1271
  className: "text-blue-500",
1340
1272
  children: "Waiting"
1341
1273
  });
1342
- $[35] = hasError;
1343
- $[36] = isDelayed;
1344
- $[37] = selectedJob.finishedOn;
1345
- $[38] = selectedJob.processedOn;
1346
- $[39] = t9;
1347
- } else t9 = $[39];
1274
+ $[34] = hasError;
1275
+ $[35] = isDelayed;
1276
+ $[36] = selectedJob.finishedOn;
1277
+ $[37] = selectedJob.processedOn;
1278
+ $[38] = t9;
1279
+ } else t9 = $[38];
1348
1280
  const statusElement = t9;
1349
1281
  const t10 = selectedJob.name;
1350
1282
  let t11;
1351
- if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
1283
+ if ($[39] === Symbol.for("react.memo_cache_sentinel")) {
1352
1284
  t11 = /* @__PURE__ */ jsx(X, {});
1353
- $[40] = t11;
1354
- } else t11 = $[40];
1285
+ $[39] = t11;
1286
+ } else t11 = $[39];
1355
1287
  let t12;
1356
- if ($[41] !== handleClose) {
1288
+ if ($[40] !== handleClose) {
1357
1289
  t12 = [{
1358
1290
  icon: t11,
1359
1291
  onClick: handleClose,
1360
1292
  label: "Close"
1361
1293
  }];
1362
- $[41] = handleClose;
1363
- $[42] = t12;
1364
- } else t12 = $[42];
1294
+ $[40] = handleClose;
1295
+ $[41] = t12;
1296
+ } else t12 = $[41];
1365
1297
  let t13;
1366
- if ($[43] !== handleRetry || $[44] !== hasError) {
1298
+ if ($[42] !== handleRetry || $[43] !== hasError) {
1367
1299
  t13 = hasError && /* @__PURE__ */ jsxs(Button, {
1368
1300
  variant: "outline",
1369
1301
  size: "sm",
1370
1302
  onClick: handleRetry,
1371
1303
  children: [/* @__PURE__ */ jsx(RefreshCw, { className: "mr-2 h-4 w-4" }), "Retry"]
1372
1304
  });
1373
- $[43] = handleRetry;
1374
- $[44] = hasError;
1375
- $[45] = t13;
1376
- } else t13 = $[45];
1305
+ $[42] = handleRetry;
1306
+ $[43] = hasError;
1307
+ $[44] = t13;
1308
+ } else t13 = $[44];
1377
1309
  let t14;
1378
- if ($[46] !== handlePromote || $[47] !== isDelayed) {
1310
+ if ($[45] !== handlePromote || $[46] !== isDelayed) {
1379
1311
  t14 = isDelayed && /* @__PURE__ */ jsxs(Button, {
1380
1312
  variant: "outline",
1381
1313
  size: "sm",
1382
1314
  onClick: handlePromote,
1383
1315
  children: [/* @__PURE__ */ jsx(ArrowUpRight, { className: "mr-2 h-4 w-4" }), "Promote"]
1384
1316
  });
1385
- $[46] = handlePromote;
1386
- $[47] = isDelayed;
1387
- $[48] = t14;
1388
- } else t14 = $[48];
1317
+ $[45] = handlePromote;
1318
+ $[46] = isDelayed;
1319
+ $[47] = t14;
1320
+ } else t14 = $[47];
1389
1321
  let t15;
1390
- if ($[49] === Symbol.for("react.memo_cache_sentinel")) {
1322
+ if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
1391
1323
  t15 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
1392
- $[49] = t15;
1393
- } else t15 = $[49];
1324
+ $[48] = t15;
1325
+ } else t15 = $[48];
1394
1326
  let t16;
1395
- if ($[50] !== handleRemove) {
1327
+ if ($[49] !== handleRemove) {
1396
1328
  t16 = /* @__PURE__ */ jsxs(Button, {
1397
1329
  variant: "outline",
1398
1330
  size: "sm",
@@ -1400,11 +1332,11 @@ const JobDetail = memo(() => {
1400
1332
  className: "text-destructive",
1401
1333
  children: [t15, "Remove"]
1402
1334
  });
1403
- $[50] = handleRemove;
1404
- $[51] = t16;
1405
- } else t16 = $[51];
1335
+ $[49] = handleRemove;
1336
+ $[50] = t16;
1337
+ } else t16 = $[50];
1406
1338
  let t17;
1407
- if ($[52] !== t13 || $[53] !== t14 || $[54] !== t16) {
1339
+ if ($[51] !== t13 || $[52] !== t14 || $[53] !== t16) {
1408
1340
  t17 = /* @__PURE__ */ jsxs("div", {
1409
1341
  className: "flex gap-2",
1410
1342
  children: [
@@ -1413,120 +1345,120 @@ const JobDetail = memo(() => {
1413
1345
  t16
1414
1346
  ]
1415
1347
  });
1416
- $[52] = t13;
1417
- $[53] = t14;
1418
- $[54] = t16;
1419
- $[55] = t17;
1420
- } else t17 = $[55];
1348
+ $[51] = t13;
1349
+ $[52] = t14;
1350
+ $[53] = t16;
1351
+ $[54] = t17;
1352
+ } else t17 = $[54];
1421
1353
  let t18;
1422
- if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
1354
+ if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
1423
1355
  t18 = /* @__PURE__ */ jsx("span", {
1424
1356
  className: "text-muted-foreground",
1425
1357
  children: "Job ID"
1426
1358
  });
1427
- $[56] = t18;
1428
- } else t18 = $[56];
1359
+ $[55] = t18;
1360
+ } else t18 = $[55];
1429
1361
  let t19;
1430
- if ($[57] !== selectedJob.id) {
1362
+ if ($[56] !== selectedJob.id) {
1431
1363
  t19 = /* @__PURE__ */ jsxs("div", { children: [t18, /* @__PURE__ */ jsx("div", {
1432
1364
  className: "font-mono text-xs",
1433
1365
  children: selectedJob.id
1434
1366
  })] });
1435
- $[57] = selectedJob.id;
1436
- $[58] = t19;
1437
- } else t19 = $[58];
1367
+ $[56] = selectedJob.id;
1368
+ $[57] = t19;
1369
+ } else t19 = $[57];
1438
1370
  let t20;
1439
- if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
1371
+ if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
1440
1372
  t20 = /* @__PURE__ */ jsx("span", {
1441
1373
  className: "text-muted-foreground",
1442
1374
  children: "Status"
1443
1375
  });
1444
- $[59] = t20;
1445
- } else t20 = $[59];
1376
+ $[58] = t20;
1377
+ } else t20 = $[58];
1446
1378
  let t21;
1447
- if ($[60] !== statusElement) {
1379
+ if ($[59] !== statusElement) {
1448
1380
  t21 = /* @__PURE__ */ jsxs("div", { children: [t20, /* @__PURE__ */ jsx("div", {
1449
1381
  className: "font-semibold",
1450
1382
  children: statusElement
1451
1383
  })] });
1452
- $[60] = statusElement;
1453
- $[61] = t21;
1454
- } else t21 = $[61];
1384
+ $[59] = statusElement;
1385
+ $[60] = t21;
1386
+ } else t21 = $[60];
1455
1387
  let t22;
1456
- if ($[62] === Symbol.for("react.memo_cache_sentinel")) {
1388
+ if ($[61] === Symbol.for("react.memo_cache_sentinel")) {
1457
1389
  t22 = /* @__PURE__ */ jsx("span", {
1458
1390
  className: "text-muted-foreground",
1459
1391
  children: "Created"
1460
1392
  });
1461
- $[62] = t22;
1462
- } else t22 = $[62];
1393
+ $[61] = t22;
1394
+ } else t22 = $[61];
1463
1395
  let t23;
1464
- if ($[63] !== selectedJob.timestamp) {
1396
+ if ($[62] !== selectedJob.timestamp) {
1465
1397
  t23 = formatDistanceToNow(selectedJob.timestamp, { addSuffix: true });
1466
- $[63] = selectedJob.timestamp;
1467
- $[64] = t23;
1468
- } else t23 = $[64];
1398
+ $[62] = selectedJob.timestamp;
1399
+ $[63] = t23;
1400
+ } else t23 = $[63];
1469
1401
  let t24;
1470
- if ($[65] !== t23) {
1402
+ if ($[64] !== t23) {
1471
1403
  t24 = /* @__PURE__ */ jsxs("div", { children: [t22, /* @__PURE__ */ jsx("div", { children: t23 })] });
1472
- $[65] = t23;
1473
- $[66] = t24;
1474
- } else t24 = $[66];
1404
+ $[64] = t23;
1405
+ $[65] = t24;
1406
+ } else t24 = $[65];
1475
1407
  let t25;
1476
- if ($[67] === Symbol.for("react.memo_cache_sentinel")) {
1408
+ if ($[66] === Symbol.for("react.memo_cache_sentinel")) {
1477
1409
  t25 = /* @__PURE__ */ jsx("span", {
1478
1410
  className: "text-muted-foreground",
1479
1411
  children: "Attempts"
1480
1412
  });
1481
- $[67] = t25;
1482
- } else t25 = $[67];
1413
+ $[66] = t25;
1414
+ } else t25 = $[66];
1483
1415
  let t26;
1484
- if ($[68] !== selectedJob.attemptsMade) {
1416
+ if ($[67] !== selectedJob.attemptsMade) {
1485
1417
  t26 = /* @__PURE__ */ jsxs("div", { children: [t25, /* @__PURE__ */ jsx("div", {
1486
1418
  className: "font-semibold",
1487
1419
  children: selectedJob.attemptsMade
1488
1420
  })] });
1489
- $[68] = selectedJob.attemptsMade;
1490
- $[69] = t26;
1491
- } else t26 = $[69];
1421
+ $[67] = selectedJob.attemptsMade;
1422
+ $[68] = t26;
1423
+ } else t26 = $[68];
1492
1424
  let t27;
1493
- if ($[70] === Symbol.for("react.memo_cache_sentinel")) {
1425
+ if ($[69] === Symbol.for("react.memo_cache_sentinel")) {
1494
1426
  t27 = /* @__PURE__ */ jsx("span", {
1495
1427
  className: "text-muted-foreground",
1496
1428
  children: "Progress"
1497
1429
  });
1498
- $[70] = t27;
1499
- } else t27 = $[70];
1430
+ $[69] = t27;
1431
+ } else t27 = $[69];
1500
1432
  const t28 = typeof selectedJob.progress === "number" ? `${selectedJob.progress}%` : "-";
1501
1433
  let t29;
1502
- if ($[71] !== t28) {
1434
+ if ($[70] !== t28) {
1503
1435
  t29 = /* @__PURE__ */ jsxs("div", { children: [t27, /* @__PURE__ */ jsx("div", {
1504
1436
  className: "font-semibold",
1505
1437
  children: t28
1506
1438
  })] });
1507
- $[71] = t28;
1508
- $[72] = t29;
1509
- } else t29 = $[72];
1439
+ $[70] = t28;
1440
+ $[71] = t29;
1441
+ } else t29 = $[71];
1510
1442
  let t30;
1511
- if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
1443
+ if ($[72] === Symbol.for("react.memo_cache_sentinel")) {
1512
1444
  t30 = /* @__PURE__ */ jsx("span", {
1513
1445
  className: "text-muted-foreground",
1514
1446
  children: "Delay"
1515
1447
  });
1516
- $[73] = t30;
1517
- } else t30 = $[73];
1448
+ $[72] = t30;
1449
+ } else t30 = $[72];
1518
1450
  const t31 = selectedJob.delay ? `${selectedJob.delay}ms` : "-";
1519
1451
  let t32;
1520
- if ($[74] !== t31) {
1452
+ if ($[73] !== t31) {
1521
1453
  t32 = /* @__PURE__ */ jsxs("div", { children: [t30, /* @__PURE__ */ jsx("div", {
1522
1454
  className: "font-semibold",
1523
1455
  children: t31
1524
1456
  })] });
1525
- $[74] = t31;
1526
- $[75] = t32;
1527
- } else t32 = $[75];
1457
+ $[73] = t31;
1458
+ $[74] = t32;
1459
+ } else t32 = $[74];
1528
1460
  let t33;
1529
- if ($[76] !== t19 || $[77] !== t21 || $[78] !== t24 || $[79] !== t26 || $[80] !== t29 || $[81] !== t32) {
1461
+ if ($[75] !== t19 || $[76] !== t21 || $[77] !== t24 || $[78] !== t26 || $[79] !== t29 || $[80] !== t32) {
1530
1462
  t33 = /* @__PURE__ */ jsxs("div", {
1531
1463
  className: "grid grid-cols-2 gap-4 text-sm",
1532
1464
  children: [
@@ -1538,26 +1470,26 @@ const JobDetail = memo(() => {
1538
1470
  t32
1539
1471
  ]
1540
1472
  });
1541
- $[76] = t19;
1542
- $[77] = t21;
1543
- $[78] = t24;
1544
- $[79] = t26;
1545
- $[80] = t29;
1546
- $[81] = t32;
1547
- $[82] = t33;
1548
- } else t33 = $[82];
1473
+ $[75] = t19;
1474
+ $[76] = t21;
1475
+ $[77] = t24;
1476
+ $[78] = t26;
1477
+ $[79] = t29;
1478
+ $[80] = t32;
1479
+ $[81] = t33;
1480
+ } else t33 = $[81];
1549
1481
  let t34;
1550
- if ($[83] !== t17 || $[84] !== t33) {
1482
+ if ($[82] !== t17 || $[83] !== t33) {
1551
1483
  t34 = /* @__PURE__ */ jsxs("div", {
1552
1484
  className: "space-y-4",
1553
1485
  children: [t17, t33]
1554
1486
  });
1555
- $[83] = t17;
1556
- $[84] = t33;
1557
- $[85] = t34;
1558
- } else t34 = $[85];
1487
+ $[82] = t17;
1488
+ $[83] = t33;
1489
+ $[84] = t34;
1490
+ } else t34 = $[84];
1559
1491
  let t35;
1560
- if ($[86] !== handleClose || $[87] !== selectedJob.name || $[88] !== t12 || $[89] !== t34 || $[90] !== tabs) {
1492
+ if ($[85] !== handleClose || $[86] !== selectedJob.name || $[87] !== t12 || $[88] !== t34 || $[89] !== tabs) {
1561
1493
  t35 = /* @__PURE__ */ jsx(Sidebar, {
1562
1494
  onClose: handleClose,
1563
1495
  title: t10,
@@ -1566,13 +1498,13 @@ const JobDetail = memo(() => {
1566
1498
  actions: t12,
1567
1499
  children: t34
1568
1500
  });
1569
- $[86] = handleClose;
1570
- $[87] = selectedJob.name;
1571
- $[88] = t12;
1572
- $[89] = t34;
1573
- $[90] = tabs;
1574
- $[91] = t35;
1575
- } else t35 = $[91];
1501
+ $[85] = handleClose;
1502
+ $[86] = selectedJob.name;
1503
+ $[87] = t12;
1504
+ $[88] = t34;
1505
+ $[89] = tabs;
1506
+ $[90] = t35;
1507
+ } else t35 = $[90];
1576
1508
  return t35;
1577
1509
  });
1578
1510
  JobDetail.displayName = "JobDetail";
@@ -1595,17 +1527,13 @@ function _temp5$2(state_3) {
1595
1527
  //#endregion
1596
1528
  //#region src/components/jobs-table.tsx
1597
1529
  const JobRow = memo((t0) => {
1598
- const $ = c(50);
1599
- if ($[0] !== "549ecf5348d30376d9628403356a8a8f33ce7736fa4d1a68584efe9bad9296a3") {
1600
- for (let $i = 0; $i < 50; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1601
- $[0] = "549ecf5348d30376d9628403356a8a8f33ce7736fa4d1a68584efe9bad9296a3";
1602
- }
1530
+ const $ = c(49);
1603
1531
  const { job, queueName, onSelect, isSelected } = t0;
1604
1532
  const retryJobMutation = useRetryJob();
1605
1533
  const removeJobMutation = useRemoveJob();
1606
1534
  const promoteJobMutation = usePromoteJob();
1607
1535
  let t1;
1608
- if ($[1] !== job.id || $[2] !== queueName || $[3] !== retryJobMutation) {
1536
+ if ($[0] !== job.id || $[1] !== queueName || $[2] !== retryJobMutation) {
1609
1537
  t1 = (e) => {
1610
1538
  e.stopPropagation();
1611
1539
  retryJobMutation.mutate({
@@ -1613,14 +1541,14 @@ const JobRow = memo((t0) => {
1613
1541
  jobId: job.id
1614
1542
  });
1615
1543
  };
1616
- $[1] = job.id;
1617
- $[2] = queueName;
1618
- $[3] = retryJobMutation;
1619
- $[4] = t1;
1620
- } else t1 = $[4];
1544
+ $[0] = job.id;
1545
+ $[1] = queueName;
1546
+ $[2] = retryJobMutation;
1547
+ $[3] = t1;
1548
+ } else t1 = $[3];
1621
1549
  const handleRetry = t1;
1622
1550
  let t2;
1623
- if ($[5] !== job.id || $[6] !== queueName || $[7] !== removeJobMutation) {
1551
+ if ($[4] !== job.id || $[5] !== queueName || $[6] !== removeJobMutation) {
1624
1552
  t2 = (e_0) => {
1625
1553
  e_0.stopPropagation();
1626
1554
  removeJobMutation.mutate({
@@ -1628,14 +1556,14 @@ const JobRow = memo((t0) => {
1628
1556
  jobId: job.id
1629
1557
  });
1630
1558
  };
1631
- $[5] = job.id;
1632
- $[6] = queueName;
1633
- $[7] = removeJobMutation;
1634
- $[8] = t2;
1635
- } else t2 = $[8];
1559
+ $[4] = job.id;
1560
+ $[5] = queueName;
1561
+ $[6] = removeJobMutation;
1562
+ $[7] = t2;
1563
+ } else t2 = $[7];
1636
1564
  const handleRemove = t2;
1637
1565
  let t3;
1638
- if ($[9] !== job.id || $[10] !== promoteJobMutation || $[11] !== queueName) {
1566
+ if ($[8] !== job.id || $[9] !== promoteJobMutation || $[10] !== queueName) {
1639
1567
  t3 = (e_1) => {
1640
1568
  e_1.stopPropagation();
1641
1569
  promoteJobMutation.mutate({
@@ -1643,63 +1571,63 @@ const JobRow = memo((t0) => {
1643
1571
  jobId: job.id
1644
1572
  });
1645
1573
  };
1646
- $[9] = job.id;
1647
- $[10] = promoteJobMutation;
1648
- $[11] = queueName;
1649
- $[12] = t3;
1650
- } else t3 = $[12];
1574
+ $[8] = job.id;
1575
+ $[9] = promoteJobMutation;
1576
+ $[10] = queueName;
1577
+ $[11] = t3;
1578
+ } else t3 = $[11];
1651
1579
  const handlePromote = t3;
1652
1580
  const t4 = isSelected ? "bg-muted-foreground/10 hover:bg-muted-foreground/20" : "hover:bg-muted-foreground/10";
1653
1581
  let t5;
1654
- if ($[13] !== t4) {
1582
+ if ($[12] !== t4) {
1655
1583
  t5 = cn("cursor-pointer border-0", t4);
1656
- $[13] = t4;
1657
- $[14] = t5;
1658
- } else t5 = $[14];
1584
+ $[12] = t4;
1585
+ $[13] = t5;
1586
+ } else t5 = $[13];
1659
1587
  let t6;
1660
- if ($[15] !== job.id) {
1588
+ if ($[14] !== job.id) {
1661
1589
  t6 = /* @__PURE__ */ jsx(TableCell, {
1662
1590
  className: "font-mono text-xs",
1663
1591
  children: job.id
1664
1592
  });
1665
- $[15] = job.id;
1666
- $[16] = t6;
1667
- } else t6 = $[16];
1593
+ $[14] = job.id;
1594
+ $[15] = t6;
1595
+ } else t6 = $[15];
1668
1596
  let t7;
1669
- if ($[17] !== job.name) {
1597
+ if ($[16] !== job.name) {
1670
1598
  t7 = /* @__PURE__ */ jsx(TableCell, {
1671
1599
  className: "font-medium",
1672
1600
  children: job.name
1673
1601
  });
1674
- $[17] = job.name;
1675
- $[18] = t7;
1676
- } else t7 = $[18];
1602
+ $[16] = job.name;
1603
+ $[17] = t7;
1604
+ } else t7 = $[17];
1677
1605
  let t8;
1678
- if ($[19] !== job.timestamp) {
1606
+ if ($[18] !== job.timestamp) {
1679
1607
  t8 = formatDistanceToNow(job.timestamp, { addSuffix: true });
1680
- $[19] = job.timestamp;
1681
- $[20] = t8;
1682
- } else t8 = $[20];
1608
+ $[18] = job.timestamp;
1609
+ $[19] = t8;
1610
+ } else t8 = $[19];
1683
1611
  let t9;
1684
- if ($[21] !== t8) {
1612
+ if ($[20] !== t8) {
1685
1613
  t9 = /* @__PURE__ */ jsx(TableCell, {
1686
1614
  className: "text-xs text-muted-foreground",
1687
1615
  children: t8
1688
1616
  });
1689
- $[21] = t8;
1690
- $[22] = t9;
1691
- } else t9 = $[22];
1617
+ $[20] = t8;
1618
+ $[21] = t9;
1619
+ } else t9 = $[21];
1692
1620
  let t10;
1693
- if ($[23] !== job.attemptsMade) {
1621
+ if ($[22] !== job.attemptsMade) {
1694
1622
  t10 = /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx("span", {
1695
1623
  className: "text-xs",
1696
1624
  children: job.attemptsMade
1697
1625
  }) });
1698
- $[23] = job.attemptsMade;
1699
- $[24] = t10;
1700
- } else t10 = $[24];
1626
+ $[22] = job.attemptsMade;
1627
+ $[23] = t10;
1628
+ } else t10 = $[23];
1701
1629
  let t11;
1702
- if ($[25] !== job.progress) {
1630
+ if ($[24] !== job.progress) {
1703
1631
  t11 = /* @__PURE__ */ jsx(TableCell, { children: typeof job.progress === "number" ? /* @__PURE__ */ jsxs("div", {
1704
1632
  className: "flex items-center gap-2",
1705
1633
  children: [/* @__PURE__ */ jsx("div", {
@@ -1716,11 +1644,11 @@ const JobRow = memo((t0) => {
1716
1644
  className: "text-xs text-muted-foreground",
1717
1645
  children: "-"
1718
1646
  }) });
1719
- $[25] = job.progress;
1720
- $[26] = t11;
1721
- } else t11 = $[26];
1647
+ $[24] = job.progress;
1648
+ $[25] = t11;
1649
+ } else t11 = $[25];
1722
1650
  let t12;
1723
- if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
1651
+ if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
1724
1652
  t12 = /* @__PURE__ */ jsx(DropdownMenuTrigger, {
1725
1653
  asChild: true,
1726
1654
  children: /* @__PURE__ */ jsx(Button, {
@@ -1730,49 +1658,50 @@ const JobRow = memo((t0) => {
1730
1658
  children: /* @__PURE__ */ jsx(MoreVertical, { className: "h-4 w-4" })
1731
1659
  })
1732
1660
  });
1733
- $[27] = t12;
1734
- } else t12 = $[27];
1661
+ $[26] = t12;
1662
+ } else t12 = $[26];
1735
1663
  let t13;
1736
- if ($[28] !== handleRetry || $[29] !== job.failedReason) {
1664
+ if ($[27] !== handleRetry || $[28] !== job.failedReason) {
1737
1665
  t13 = job.failedReason && /* @__PURE__ */ jsxs(DropdownMenuItem, {
1738
1666
  onClick: handleRetry,
1739
1667
  children: [/* @__PURE__ */ jsx(RefreshCw, { className: "mr-2 h-4 w-4" }), "Retry"]
1740
1668
  });
1741
- $[28] = handleRetry;
1742
- $[29] = job.failedReason;
1743
- $[30] = t13;
1744
- } else t13 = $[30];
1669
+ $[27] = handleRetry;
1670
+ $[28] = job.failedReason;
1671
+ $[29] = t13;
1672
+ } else t13 = $[29];
1745
1673
  let t14;
1746
- if ($[31] !== handlePromote || $[32] !== job.delay) {
1674
+ if ($[30] !== handlePromote || $[31] !== job.delay) {
1747
1675
  t14 = job.delay && job.delay > 0 && /* @__PURE__ */ jsxs(DropdownMenuItem, {
1748
1676
  onClick: handlePromote,
1749
1677
  children: [/* @__PURE__ */ jsx(ArrowUpRight, { className: "mr-2 h-4 w-4" }), "Promote"]
1750
1678
  });
1751
- $[31] = handlePromote;
1752
- $[32] = job.delay;
1753
- $[33] = t14;
1754
- } else t14 = $[33];
1679
+ $[30] = handlePromote;
1680
+ $[31] = job.delay;
1681
+ $[32] = t14;
1682
+ } else t14 = $[32];
1755
1683
  let t15;
1756
- if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
1684
+ if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
1757
1685
  t15 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
1758
- $[34] = t15;
1759
- } else t15 = $[34];
1686
+ $[33] = t15;
1687
+ } else t15 = $[33];
1760
1688
  let t16;
1761
- if ($[35] !== handleRemove) {
1689
+ if ($[34] !== handleRemove) {
1762
1690
  t16 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
1763
1691
  onClick: handleRemove,
1764
1692
  className: "text-destructive",
1765
1693
  children: [t15, "Remove"]
1766
1694
  });
1767
- $[35] = handleRemove;
1768
- $[36] = t16;
1769
- } else t16 = $[36];
1695
+ $[34] = handleRemove;
1696
+ $[35] = t16;
1697
+ } else t16 = $[35];
1770
1698
  let t17;
1771
- if ($[37] !== t13 || $[38] !== t14 || $[39] !== t16) {
1699
+ if ($[36] !== t13 || $[37] !== t14 || $[38] !== t16) {
1772
1700
  t17 = /* @__PURE__ */ jsx(TableCell, {
1773
1701
  onClick: _temp$3,
1774
1702
  children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [t12, /* @__PURE__ */ jsxs(DropdownMenuContent, {
1775
1703
  align: "end",
1704
+ className: "bg-background text-foreground",
1776
1705
  children: [
1777
1706
  t13,
1778
1707
  t14,
@@ -1780,13 +1709,13 @@ const JobRow = memo((t0) => {
1780
1709
  ]
1781
1710
  })] })
1782
1711
  });
1783
- $[37] = t13;
1784
- $[38] = t14;
1785
- $[39] = t16;
1786
- $[40] = t17;
1787
- } else t17 = $[40];
1712
+ $[36] = t13;
1713
+ $[37] = t14;
1714
+ $[38] = t16;
1715
+ $[39] = t17;
1716
+ } else t17 = $[39];
1788
1717
  let t18;
1789
- if ($[41] !== onSelect || $[42] !== t10 || $[43] !== t11 || $[44] !== t17 || $[45] !== t5 || $[46] !== t6 || $[47] !== t7 || $[48] !== t9) {
1718
+ if ($[40] !== onSelect || $[41] !== t10 || $[42] !== t11 || $[43] !== t17 || $[44] !== t5 || $[45] !== t6 || $[46] !== t7 || $[47] !== t9) {
1790
1719
  t18 = /* @__PURE__ */ jsxs(TableRow, {
1791
1720
  onClick: onSelect,
1792
1721
  className: t5,
@@ -1799,83 +1728,79 @@ const JobRow = memo((t0) => {
1799
1728
  t17
1800
1729
  ]
1801
1730
  });
1802
- $[41] = onSelect;
1803
- $[42] = t10;
1804
- $[43] = t11;
1805
- $[44] = t17;
1806
- $[45] = t5;
1807
- $[46] = t6;
1808
- $[47] = t7;
1809
- $[48] = t9;
1810
- $[49] = t18;
1811
- } else t18 = $[49];
1731
+ $[40] = onSelect;
1732
+ $[41] = t10;
1733
+ $[42] = t11;
1734
+ $[43] = t17;
1735
+ $[44] = t5;
1736
+ $[45] = t6;
1737
+ $[46] = t7;
1738
+ $[47] = t9;
1739
+ $[48] = t18;
1740
+ } else t18 = $[48];
1812
1741
  return t18;
1813
1742
  });
1814
1743
  JobRow.displayName = "JobRow";
1815
1744
  const JobsTable = memo(() => {
1816
- const $ = c(21);
1817
- if ($[0] !== "549ecf5348d30376d9628403356a8a8f33ce7736fa4d1a68584efe9bad9296a3") {
1818
- for (let $i = 0; $i < 21; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1819
- $[0] = "549ecf5348d30376d9628403356a8a8f33ce7736fa4d1a68584efe9bad9296a3";
1820
- }
1745
+ const $ = c(20);
1821
1746
  const { data: t0, isLoading } = useJobsQuery();
1822
1747
  let t1;
1823
- if ($[1] !== t0) {
1748
+ if ($[0] !== t0) {
1824
1749
  t1 = t0 === void 0 ? [] : t0;
1825
- $[1] = t0;
1826
- $[2] = t1;
1827
- } else t1 = $[2];
1750
+ $[0] = t0;
1751
+ $[1] = t1;
1752
+ } else t1 = $[1];
1828
1753
  const jobs = t1;
1829
1754
  const selectedQueue = useBullMQStore(_temp2$3);
1830
1755
  const selectedJob = useBullMQStore(_temp3$2);
1831
1756
  const setSelectedJob = useBullMQStore(_temp4$1);
1832
1757
  const setJobDetailOpen = useBullMQStore(_temp5$1);
1833
1758
  let t2;
1834
- if ($[3] !== setJobDetailOpen || $[4] !== setSelectedJob) {
1759
+ if ($[2] !== setJobDetailOpen || $[3] !== setSelectedJob) {
1835
1760
  t2 = (job) => {
1836
1761
  setSelectedJob(job);
1837
1762
  setJobDetailOpen(true);
1838
1763
  };
1839
- $[3] = setJobDetailOpen;
1840
- $[4] = setSelectedJob;
1841
- $[5] = t2;
1842
- } else t2 = $[5];
1764
+ $[2] = setJobDetailOpen;
1765
+ $[3] = setSelectedJob;
1766
+ $[4] = t2;
1767
+ } else t2 = $[4];
1843
1768
  const handleSelectJob = t2;
1844
1769
  if (!selectedQueue) {
1845
1770
  let t3$1;
1846
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
1771
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
1847
1772
  t3$1 = /* @__PURE__ */ jsx("div", {
1848
1773
  className: "flex items-center justify-center h-full text-muted-foreground",
1849
1774
  children: "Select a queue to view jobs"
1850
1775
  });
1851
- $[6] = t3$1;
1852
- } else t3$1 = $[6];
1776
+ $[5] = t3$1;
1777
+ } else t3$1 = $[5];
1853
1778
  return t3$1;
1854
1779
  }
1855
1780
  if (isLoading) {
1856
1781
  let t3$1;
1857
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
1782
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
1858
1783
  t3$1 = /* @__PURE__ */ jsx("div", {
1859
1784
  className: "flex items-center justify-center h-full text-muted-foreground",
1860
1785
  children: "Loading jobs..."
1861
1786
  });
1862
- $[7] = t3$1;
1863
- } else t3$1 = $[7];
1787
+ $[6] = t3$1;
1788
+ } else t3$1 = $[6];
1864
1789
  return t3$1;
1865
1790
  }
1866
1791
  if (jobs.length === 0) {
1867
1792
  let t3$1;
1868
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
1793
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
1869
1794
  t3$1 = /* @__PURE__ */ jsx("div", {
1870
1795
  className: "flex items-center justify-center h-full text-muted-foreground",
1871
1796
  children: "No jobs in this status"
1872
1797
  });
1873
- $[8] = t3$1;
1874
- } else t3$1 = $[8];
1798
+ $[7] = t3$1;
1799
+ } else t3$1 = $[7];
1875
1800
  return t3$1;
1876
1801
  }
1877
1802
  let t3;
1878
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
1803
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
1879
1804
  t3 = /* @__PURE__ */ jsx(TableHeader, {
1880
1805
  className: "sticky top-0 bg-background/95 backdrop-blur-sm",
1881
1806
  children: /* @__PURE__ */ jsxs(TableRow, { children: [
@@ -1902,36 +1827,36 @@ const JobsTable = memo(() => {
1902
1827
  })
1903
1828
  ] })
1904
1829
  });
1905
- $[9] = t3;
1906
- } else t3 = $[9];
1830
+ $[8] = t3;
1831
+ } else t3 = $[8];
1907
1832
  let t4;
1908
- if ($[10] !== handleSelectJob || $[11] !== jobs || $[12] !== selectedJob?.id || $[13] !== selectedQueue) {
1833
+ if ($[9] !== handleSelectJob || $[10] !== jobs || $[11] !== selectedJob?.id || $[12] !== selectedQueue) {
1909
1834
  let t5$1;
1910
- if ($[15] !== handleSelectJob || $[16] !== selectedJob?.id || $[17] !== selectedQueue) {
1835
+ if ($[14] !== handleSelectJob || $[15] !== selectedJob?.id || $[16] !== selectedQueue) {
1911
1836
  t5$1 = (job_0) => /* @__PURE__ */ jsx(JobRow, {
1912
1837
  job: job_0,
1913
1838
  queueName: selectedQueue.name,
1914
1839
  onSelect: () => handleSelectJob(job_0),
1915
1840
  isSelected: selectedJob?.id === job_0.id
1916
1841
  }, job_0.id);
1917
- $[15] = handleSelectJob;
1918
- $[16] = selectedJob?.id;
1919
- $[17] = selectedQueue;
1920
- $[18] = t5$1;
1921
- } else t5$1 = $[18];
1842
+ $[14] = handleSelectJob;
1843
+ $[15] = selectedJob?.id;
1844
+ $[16] = selectedQueue;
1845
+ $[17] = t5$1;
1846
+ } else t5$1 = $[17];
1922
1847
  t4 = jobs.map(t5$1);
1923
- $[10] = handleSelectJob;
1924
- $[11] = jobs;
1925
- $[12] = selectedJob?.id;
1926
- $[13] = selectedQueue;
1927
- $[14] = t4;
1928
- } else t4 = $[14];
1848
+ $[9] = handleSelectJob;
1849
+ $[10] = jobs;
1850
+ $[11] = selectedJob?.id;
1851
+ $[12] = selectedQueue;
1852
+ $[13] = t4;
1853
+ } else t4 = $[13];
1929
1854
  let t5;
1930
- if ($[19] !== t4) {
1855
+ if ($[18] !== t4) {
1931
1856
  t5 = /* @__PURE__ */ jsxs(Table, { children: [t3, /* @__PURE__ */ jsx(TableBody, { children: t4 })] });
1932
- $[19] = t4;
1933
- $[20] = t5;
1934
- } else t5 = $[20];
1857
+ $[18] = t4;
1858
+ $[19] = t5;
1859
+ } else t5 = $[19];
1935
1860
  return t5;
1936
1861
  });
1937
1862
  JobsTable.displayName = "JobsTable";
@@ -1976,128 +1901,124 @@ const STATUS_TABS = [
1976
1901
  }
1977
1902
  ];
1978
1903
  const QueueDetail = memo(() => {
1979
- const $ = c(115);
1980
- if ($[0] !== "a2cd8aba8c654ced6959e772bf98ea6b7121ff39b06e304e3cb41d636c64e403") {
1981
- for (let $i = 0; $i < 115; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1982
- $[0] = "a2cd8aba8c654ced6959e772bf98ea6b7121ff39b06e304e3cb41d636c64e403";
1983
- }
1904
+ const $ = c(114);
1984
1905
  const queryClient$1 = useQueryClient();
1985
1906
  const selectedQueue = useBullMQStore(_temp$2);
1986
1907
  const selectedStatus = useBullMQStore(_temp2$2);
1987
1908
  const setSelectedStatus = useBullMQStore(_temp3$1);
1988
1909
  const { pauseQueue, resumeQueue, cleanQueue, drainQueue } = useQueues();
1989
1910
  let t0;
1990
- if ($[1] !== pauseQueue || $[2] !== selectedQueue) {
1911
+ if ($[0] !== pauseQueue || $[1] !== selectedQueue) {
1991
1912
  t0 = async () => {
1992
1913
  if (!selectedQueue) return;
1993
1914
  await pauseQueue(selectedQueue.name);
1994
1915
  };
1995
- $[1] = pauseQueue;
1996
- $[2] = selectedQueue;
1997
- $[3] = t0;
1998
- } else t0 = $[3];
1916
+ $[0] = pauseQueue;
1917
+ $[1] = selectedQueue;
1918
+ $[2] = t0;
1919
+ } else t0 = $[2];
1999
1920
  const handlePause = t0;
2000
1921
  let t1;
2001
- if ($[4] !== resumeQueue || $[5] !== selectedQueue) {
1922
+ if ($[3] !== resumeQueue || $[4] !== selectedQueue) {
2002
1923
  t1 = async () => {
2003
1924
  if (!selectedQueue) return;
2004
1925
  await resumeQueue(selectedQueue.name);
2005
1926
  };
2006
- $[4] = resumeQueue;
2007
- $[5] = selectedQueue;
2008
- $[6] = t1;
2009
- } else t1 = $[6];
1927
+ $[3] = resumeQueue;
1928
+ $[4] = selectedQueue;
1929
+ $[5] = t1;
1930
+ } else t1 = $[5];
2010
1931
  const handleResume = t1;
2011
1932
  let t2;
2012
- if ($[7] !== cleanQueue || $[8] !== selectedQueue) {
1933
+ if ($[6] !== cleanQueue || $[7] !== selectedQueue) {
2013
1934
  t2 = async () => {
2014
1935
  if (!selectedQueue) return;
2015
1936
  await cleanQueue(selectedQueue.name, "completed", 0, 1e3);
2016
1937
  };
2017
- $[7] = cleanQueue;
2018
- $[8] = selectedQueue;
2019
- $[9] = t2;
2020
- } else t2 = $[9];
1938
+ $[6] = cleanQueue;
1939
+ $[7] = selectedQueue;
1940
+ $[8] = t2;
1941
+ } else t2 = $[8];
2021
1942
  const handleCleanCompleted = t2;
2022
1943
  let t3;
2023
- if ($[10] !== cleanQueue || $[11] !== selectedQueue) {
1944
+ if ($[9] !== cleanQueue || $[10] !== selectedQueue) {
2024
1945
  t3 = async () => {
2025
1946
  if (!selectedQueue) return;
2026
1947
  await cleanQueue(selectedQueue.name, "failed", 0, 1e3);
2027
1948
  };
2028
- $[10] = cleanQueue;
2029
- $[11] = selectedQueue;
2030
- $[12] = t3;
2031
- } else t3 = $[12];
1949
+ $[9] = cleanQueue;
1950
+ $[10] = selectedQueue;
1951
+ $[11] = t3;
1952
+ } else t3 = $[11];
2032
1953
  const handleCleanFailed = t3;
2033
1954
  let t4;
2034
- if ($[13] !== drainQueue || $[14] !== selectedQueue) {
1955
+ if ($[12] !== drainQueue || $[13] !== selectedQueue) {
2035
1956
  t4 = async () => {
2036
1957
  if (!selectedQueue) return;
2037
1958
  await drainQueue(selectedQueue.name);
2038
1959
  };
2039
- $[13] = drainQueue;
2040
- $[14] = selectedQueue;
2041
- $[15] = t4;
2042
- } else t4 = $[15];
1960
+ $[12] = drainQueue;
1961
+ $[13] = selectedQueue;
1962
+ $[14] = t4;
1963
+ } else t4 = $[14];
2043
1964
  const handleDrain = t4;
2044
1965
  let t5;
2045
- if ($[16] !== queryClient$1 || $[17] !== selectedQueue) {
1966
+ if ($[15] !== queryClient$1 || $[16] !== selectedQueue) {
2046
1967
  t5 = () => {
2047
1968
  if (!selectedQueue) return;
2048
1969
  queryClient$1.invalidateQueries({ queryKey: ["jobs", selectedQueue.name] });
2049
1970
  };
2050
- $[16] = queryClient$1;
2051
- $[17] = selectedQueue;
2052
- $[18] = t5;
2053
- } else t5 = $[18];
1971
+ $[15] = queryClient$1;
1972
+ $[16] = selectedQueue;
1973
+ $[17] = t5;
1974
+ } else t5 = $[17];
2054
1975
  const handleRefresh = t5;
2055
1976
  if (!selectedQueue) {
2056
1977
  let t6$1;
2057
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
1978
+ if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
2058
1979
  t6$1 = /* @__PURE__ */ jsx("div", {
2059
1980
  className: "flex items-center justify-center h-full text-muted-foreground",
2060
1981
  children: "Select a queue from the list to view details"
2061
1982
  });
2062
- $[19] = t6$1;
2063
- } else t6$1 = $[19];
1983
+ $[18] = t6$1;
1984
+ } else t6$1 = $[18];
2064
1985
  return t6$1;
2065
1986
  }
2066
1987
  let t6;
2067
- if ($[20] !== selectedQueue.displayName) {
1988
+ if ($[19] !== selectedQueue.displayName) {
2068
1989
  t6 = /* @__PURE__ */ jsx("h2", {
2069
1990
  className: "font-semibold text-lg",
2070
1991
  children: selectedQueue.displayName
2071
1992
  });
2072
- $[20] = selectedQueue.displayName;
2073
- $[21] = t6;
2074
- } else t6 = $[21];
1993
+ $[19] = selectedQueue.displayName;
1994
+ $[20] = t6;
1995
+ } else t6 = $[20];
2075
1996
  let t7;
2076
- if ($[22] !== selectedQueue.isPaused) {
1997
+ if ($[21] !== selectedQueue.isPaused) {
2077
1998
  t7 = selectedQueue.isPaused && /* @__PURE__ */ jsx("span", {
2078
1999
  className: "px-2 py-0.5 text-xs rounded bg-yellow-500/20 text-yellow-600",
2079
2000
  children: "Paused"
2080
2001
  });
2081
- $[22] = selectedQueue.isPaused;
2082
- $[23] = t7;
2083
- } else t7 = $[23];
2002
+ $[21] = selectedQueue.isPaused;
2003
+ $[22] = t7;
2004
+ } else t7 = $[22];
2084
2005
  let t8;
2085
- if ($[24] !== t6 || $[25] !== t7) {
2006
+ if ($[23] !== t6 || $[24] !== t7) {
2086
2007
  t8 = /* @__PURE__ */ jsxs("div", {
2087
2008
  className: "flex items-center gap-3",
2088
2009
  children: [t6, t7]
2089
2010
  });
2090
- $[24] = t6;
2091
- $[25] = t7;
2092
- $[26] = t8;
2093
- } else t8 = $[26];
2011
+ $[23] = t6;
2012
+ $[24] = t7;
2013
+ $[25] = t8;
2014
+ } else t8 = $[25];
2094
2015
  let t9;
2095
- if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
2016
+ if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
2096
2017
  t9 = /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" });
2097
- $[27] = t9;
2098
- } else t9 = $[27];
2018
+ $[26] = t9;
2019
+ } else t9 = $[26];
2099
2020
  let t10;
2100
- if ($[28] !== handleRefresh) {
2021
+ if ($[27] !== handleRefresh) {
2101
2022
  t10 = /* @__PURE__ */ jsx(TooltipTrigger, {
2102
2023
  asChild: true,
2103
2024
  children: /* @__PURE__ */ jsx(Button, {
@@ -2107,22 +2028,22 @@ const QueueDetail = memo(() => {
2107
2028
  children: t9
2108
2029
  })
2109
2030
  });
2110
- $[28] = handleRefresh;
2111
- $[29] = t10;
2112
- } else t10 = $[29];
2031
+ $[27] = handleRefresh;
2032
+ $[28] = t10;
2033
+ } else t10 = $[28];
2113
2034
  let t11;
2114
- if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
2035
+ if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
2115
2036
  t11 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Refresh queue stats and jobs list" }) });
2116
- $[30] = t11;
2117
- } else t11 = $[30];
2037
+ $[29] = t11;
2038
+ } else t11 = $[29];
2118
2039
  let t12;
2119
- if ($[31] !== t10) {
2040
+ if ($[30] !== t10) {
2120
2041
  t12 = /* @__PURE__ */ jsxs(Tooltip, { children: [t10, t11] });
2121
- $[31] = t10;
2122
- $[32] = t12;
2123
- } else t12 = $[32];
2042
+ $[30] = t10;
2043
+ $[31] = t12;
2044
+ } else t12 = $[31];
2124
2045
  let t13;
2125
- if ($[33] !== handlePause || $[34] !== handleResume || $[35] !== selectedQueue.isPaused) {
2046
+ if ($[32] !== handlePause || $[33] !== handleResume || $[34] !== selectedQueue.isPaused) {
2126
2047
  t13 = selectedQueue.isPaused ? /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
2127
2048
  asChild: true,
2128
2049
  children: /* @__PURE__ */ jsxs(Button, {
@@ -2140,13 +2061,13 @@ const QueueDetail = memo(() => {
2140
2061
  children: [/* @__PURE__ */ jsx(Pause, { className: "mr-2 h-4 w-4" }), "Pause"]
2141
2062
  })
2142
2063
  }), /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Stop workers from picking up new jobs" }) })] });
2143
- $[33] = handlePause;
2144
- $[34] = handleResume;
2145
- $[35] = selectedQueue.isPaused;
2146
- $[36] = t13;
2147
- } else t13 = $[36];
2064
+ $[32] = handlePause;
2065
+ $[33] = handleResume;
2066
+ $[34] = selectedQueue.isPaused;
2067
+ $[35] = t13;
2068
+ } else t13 = $[35];
2148
2069
  let t14;
2149
- if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
2070
+ if ($[36] === Symbol.for("react.memo_cache_sentinel")) {
2150
2071
  t14 = /* @__PURE__ */ jsx(DropdownMenuTrigger, {
2151
2072
  asChild: true,
2152
2073
  children: /* @__PURE__ */ jsx(Button, {
@@ -2155,62 +2076,63 @@ const QueueDetail = memo(() => {
2155
2076
  children: /* @__PURE__ */ jsx(MoreVertical, { className: "h-4 w-4" })
2156
2077
  })
2157
2078
  });
2158
- $[37] = t14;
2159
- } else t14 = $[37];
2079
+ $[36] = t14;
2080
+ } else t14 = $[36];
2160
2081
  let t15;
2161
- if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
2082
+ if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
2162
2083
  t15 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
2163
- $[38] = t15;
2164
- } else t15 = $[38];
2084
+ $[37] = t15;
2085
+ } else t15 = $[37];
2165
2086
  let t16;
2166
- if ($[39] !== handleCleanCompleted) {
2087
+ if ($[38] !== handleCleanCompleted) {
2167
2088
  t16 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
2168
2089
  onClick: handleCleanCompleted,
2169
2090
  children: [t15, "Clean Completed"]
2170
2091
  });
2171
- $[39] = handleCleanCompleted;
2172
- $[40] = t16;
2173
- } else t16 = $[40];
2092
+ $[38] = handleCleanCompleted;
2093
+ $[39] = t16;
2094
+ } else t16 = $[39];
2174
2095
  let t17;
2175
- if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
2096
+ if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
2176
2097
  t17 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
2177
- $[41] = t17;
2178
- } else t17 = $[41];
2098
+ $[40] = t17;
2099
+ } else t17 = $[40];
2179
2100
  let t18;
2180
- if ($[42] !== handleCleanFailed) {
2101
+ if ($[41] !== handleCleanFailed) {
2181
2102
  t18 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
2182
2103
  onClick: handleCleanFailed,
2183
2104
  children: [t17, "Clean Failed"]
2184
2105
  });
2185
- $[42] = handleCleanFailed;
2186
- $[43] = t18;
2187
- } else t18 = $[43];
2106
+ $[41] = handleCleanFailed;
2107
+ $[42] = t18;
2108
+ } else t18 = $[42];
2188
2109
  let t19;
2189
- if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
2110
+ if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
2190
2111
  t19 = /* @__PURE__ */ jsx(DropdownMenuSeparator, {});
2191
- $[44] = t19;
2192
- } else t19 = $[44];
2112
+ $[43] = t19;
2113
+ } else t19 = $[43];
2193
2114
  let t20;
2194
- if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
2115
+ if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
2195
2116
  t20 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
2196
- $[45] = t20;
2197
- } else t20 = $[45];
2117
+ $[44] = t20;
2118
+ } else t20 = $[44];
2198
2119
  let t21;
2199
- if ($[46] !== handleDrain) {
2120
+ if ($[45] !== handleDrain) {
2200
2121
  t21 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
2201
2122
  onClick: handleDrain,
2202
2123
  className: "text-destructive",
2203
2124
  children: [t20, "Drain Queue"]
2204
2125
  });
2205
- $[46] = handleDrain;
2206
- $[47] = t21;
2207
- } else t21 = $[47];
2126
+ $[45] = handleDrain;
2127
+ $[46] = t21;
2128
+ } else t21 = $[46];
2208
2129
  let t22;
2209
- if ($[48] !== t16 || $[49] !== t18 || $[50] !== t21) {
2130
+ if ($[47] !== t16 || $[48] !== t18 || $[49] !== t21) {
2210
2131
  t22 = /* @__PURE__ */ jsx(TooltipTrigger, {
2211
2132
  asChild: true,
2212
2133
  children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [t14, /* @__PURE__ */ jsxs(DropdownMenuContent, {
2213
2134
  align: "end",
2135
+ className: "bg-background text-foreground",
2214
2136
  children: [
2215
2137
  t16,
2216
2138
  t18,
@@ -2219,24 +2141,24 @@ const QueueDetail = memo(() => {
2219
2141
  ]
2220
2142
  })] })
2221
2143
  });
2222
- $[48] = t16;
2223
- $[49] = t18;
2224
- $[50] = t21;
2225
- $[51] = t22;
2226
- } else t22 = $[51];
2144
+ $[47] = t16;
2145
+ $[48] = t18;
2146
+ $[49] = t21;
2147
+ $[50] = t22;
2148
+ } else t22 = $[50];
2227
2149
  let t23;
2228
- if ($[52] === Symbol.for("react.memo_cache_sentinel")) {
2150
+ if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
2229
2151
  t23 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "More actions" }) });
2230
- $[52] = t23;
2231
- } else t23 = $[52];
2152
+ $[51] = t23;
2153
+ } else t23 = $[51];
2232
2154
  let t24;
2233
- if ($[53] !== t22) {
2155
+ if ($[52] !== t22) {
2234
2156
  t24 = /* @__PURE__ */ jsxs(Tooltip, { children: [t22, t23] });
2235
- $[53] = t22;
2236
- $[54] = t24;
2237
- } else t24 = $[54];
2157
+ $[52] = t22;
2158
+ $[53] = t24;
2159
+ } else t24 = $[53];
2238
2160
  let t25;
2239
- if ($[55] !== t12 || $[56] !== t13 || $[57] !== t24) {
2161
+ if ($[54] !== t12 || $[55] !== t13 || $[56] !== t24) {
2240
2162
  t25 = /* @__PURE__ */ jsxs("div", {
2241
2163
  className: "flex items-center gap-2",
2242
2164
  children: [
@@ -2245,161 +2167,161 @@ const QueueDetail = memo(() => {
2245
2167
  t24
2246
2168
  ]
2247
2169
  });
2248
- $[55] = t12;
2249
- $[56] = t13;
2250
- $[57] = t24;
2251
- $[58] = t25;
2252
- } else t25 = $[58];
2170
+ $[54] = t12;
2171
+ $[55] = t13;
2172
+ $[56] = t24;
2173
+ $[57] = t25;
2174
+ } else t25 = $[57];
2253
2175
  let t26;
2254
- if ($[59] !== t25 || $[60] !== t8) {
2176
+ if ($[58] !== t25 || $[59] !== t8) {
2255
2177
  t26 = /* @__PURE__ */ jsxs("div", {
2256
2178
  className: "flex items-center justify-between p-3 border-b border-border",
2257
2179
  children: [t8, t25]
2258
2180
  });
2259
- $[59] = t25;
2260
- $[60] = t8;
2261
- $[61] = t26;
2262
- } else t26 = $[61];
2181
+ $[58] = t25;
2182
+ $[59] = t8;
2183
+ $[60] = t26;
2184
+ } else t26 = $[60];
2263
2185
  let t27;
2264
- if ($[62] !== selectedQueue.stats.waiting) {
2186
+ if ($[61] !== selectedQueue.stats.waiting) {
2265
2187
  t27 = /* @__PURE__ */ jsx("div", {
2266
2188
  className: "text-2xl font-bold text-blue-500",
2267
2189
  children: selectedQueue.stats.waiting
2268
2190
  });
2269
- $[62] = selectedQueue.stats.waiting;
2270
- $[63] = t27;
2271
- } else t27 = $[63];
2191
+ $[61] = selectedQueue.stats.waiting;
2192
+ $[62] = t27;
2193
+ } else t27 = $[62];
2272
2194
  let t28;
2273
- if ($[64] === Symbol.for("react.memo_cache_sentinel")) {
2195
+ if ($[63] === Symbol.for("react.memo_cache_sentinel")) {
2274
2196
  t28 = /* @__PURE__ */ jsx("div", {
2275
2197
  className: "text-xs text-muted-foreground",
2276
2198
  children: "Waiting"
2277
2199
  });
2278
- $[64] = t28;
2279
- } else t28 = $[64];
2200
+ $[63] = t28;
2201
+ } else t28 = $[63];
2280
2202
  let t29;
2281
- if ($[65] !== t27) {
2203
+ if ($[64] !== t27) {
2282
2204
  t29 = /* @__PURE__ */ jsxs("div", { children: [t27, t28] });
2283
- $[65] = t27;
2284
- $[66] = t29;
2285
- } else t29 = $[66];
2205
+ $[64] = t27;
2206
+ $[65] = t29;
2207
+ } else t29 = $[65];
2286
2208
  let t30;
2287
- if ($[67] !== selectedQueue.stats.active) {
2209
+ if ($[66] !== selectedQueue.stats.active) {
2288
2210
  t30 = /* @__PURE__ */ jsx("div", {
2289
2211
  className: "text-2xl font-bold text-yellow-500",
2290
2212
  children: selectedQueue.stats.active
2291
2213
  });
2292
- $[67] = selectedQueue.stats.active;
2293
- $[68] = t30;
2294
- } else t30 = $[68];
2214
+ $[66] = selectedQueue.stats.active;
2215
+ $[67] = t30;
2216
+ } else t30 = $[67];
2295
2217
  let t31;
2296
- if ($[69] === Symbol.for("react.memo_cache_sentinel")) {
2218
+ if ($[68] === Symbol.for("react.memo_cache_sentinel")) {
2297
2219
  t31 = /* @__PURE__ */ jsx("div", {
2298
2220
  className: "text-xs text-muted-foreground",
2299
2221
  children: "Active"
2300
2222
  });
2301
- $[69] = t31;
2302
- } else t31 = $[69];
2223
+ $[68] = t31;
2224
+ } else t31 = $[68];
2303
2225
  let t32;
2304
- if ($[70] !== t30) {
2226
+ if ($[69] !== t30) {
2305
2227
  t32 = /* @__PURE__ */ jsxs("div", { children: [t30, t31] });
2306
- $[70] = t30;
2307
- $[71] = t32;
2308
- } else t32 = $[71];
2228
+ $[69] = t30;
2229
+ $[70] = t32;
2230
+ } else t32 = $[70];
2309
2231
  let t33;
2310
- if ($[72] !== selectedQueue.stats.completed) {
2232
+ if ($[71] !== selectedQueue.stats.completed) {
2311
2233
  t33 = /* @__PURE__ */ jsx("div", {
2312
2234
  className: "text-2xl font-bold text-green-500",
2313
2235
  children: selectedQueue.stats.completed
2314
2236
  });
2315
- $[72] = selectedQueue.stats.completed;
2316
- $[73] = t33;
2317
- } else t33 = $[73];
2237
+ $[71] = selectedQueue.stats.completed;
2238
+ $[72] = t33;
2239
+ } else t33 = $[72];
2318
2240
  let t34;
2319
- if ($[74] === Symbol.for("react.memo_cache_sentinel")) {
2241
+ if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
2320
2242
  t34 = /* @__PURE__ */ jsx("div", {
2321
2243
  className: "text-xs text-muted-foreground",
2322
2244
  children: "Completed"
2323
2245
  });
2324
- $[74] = t34;
2325
- } else t34 = $[74];
2246
+ $[73] = t34;
2247
+ } else t34 = $[73];
2326
2248
  let t35;
2327
- if ($[75] !== t33) {
2249
+ if ($[74] !== t33) {
2328
2250
  t35 = /* @__PURE__ */ jsxs("div", { children: [t33, t34] });
2329
- $[75] = t33;
2330
- $[76] = t35;
2331
- } else t35 = $[76];
2251
+ $[74] = t33;
2252
+ $[75] = t35;
2253
+ } else t35 = $[75];
2332
2254
  let t36;
2333
- if ($[77] !== selectedQueue.stats.failed) {
2255
+ if ($[76] !== selectedQueue.stats.failed) {
2334
2256
  t36 = /* @__PURE__ */ jsx("div", {
2335
2257
  className: "text-2xl font-bold text-destructive",
2336
2258
  children: selectedQueue.stats.failed
2337
2259
  });
2338
- $[77] = selectedQueue.stats.failed;
2339
- $[78] = t36;
2340
- } else t36 = $[78];
2260
+ $[76] = selectedQueue.stats.failed;
2261
+ $[77] = t36;
2262
+ } else t36 = $[77];
2341
2263
  let t37;
2342
- if ($[79] === Symbol.for("react.memo_cache_sentinel")) {
2264
+ if ($[78] === Symbol.for("react.memo_cache_sentinel")) {
2343
2265
  t37 = /* @__PURE__ */ jsx("div", {
2344
2266
  className: "text-xs text-muted-foreground",
2345
2267
  children: "Failed"
2346
2268
  });
2347
- $[79] = t37;
2348
- } else t37 = $[79];
2269
+ $[78] = t37;
2270
+ } else t37 = $[78];
2349
2271
  let t38;
2350
- if ($[80] !== t36) {
2272
+ if ($[79] !== t36) {
2351
2273
  t38 = /* @__PURE__ */ jsxs("div", { children: [t36, t37] });
2352
- $[80] = t36;
2353
- $[81] = t38;
2354
- } else t38 = $[81];
2274
+ $[79] = t36;
2275
+ $[80] = t38;
2276
+ } else t38 = $[80];
2355
2277
  let t39;
2356
- if ($[82] !== selectedQueue.stats.delayed) {
2278
+ if ($[81] !== selectedQueue.stats.delayed) {
2357
2279
  t39 = /* @__PURE__ */ jsx("div", {
2358
2280
  className: "text-2xl font-bold text-purple-500",
2359
2281
  children: selectedQueue.stats.delayed
2360
2282
  });
2361
- $[82] = selectedQueue.stats.delayed;
2362
- $[83] = t39;
2363
- } else t39 = $[83];
2283
+ $[81] = selectedQueue.stats.delayed;
2284
+ $[82] = t39;
2285
+ } else t39 = $[82];
2364
2286
  let t40;
2365
- if ($[84] === Symbol.for("react.memo_cache_sentinel")) {
2287
+ if ($[83] === Symbol.for("react.memo_cache_sentinel")) {
2366
2288
  t40 = /* @__PURE__ */ jsx("div", {
2367
2289
  className: "text-xs text-muted-foreground",
2368
2290
  children: "Delayed"
2369
2291
  });
2370
- $[84] = t40;
2371
- } else t40 = $[84];
2292
+ $[83] = t40;
2293
+ } else t40 = $[83];
2372
2294
  let t41;
2373
- if ($[85] !== t39) {
2295
+ if ($[84] !== t39) {
2374
2296
  t41 = /* @__PURE__ */ jsxs("div", { children: [t39, t40] });
2375
- $[85] = t39;
2376
- $[86] = t41;
2377
- } else t41 = $[86];
2297
+ $[84] = t39;
2298
+ $[85] = t41;
2299
+ } else t41 = $[85];
2378
2300
  let t42;
2379
- if ($[87] !== selectedQueue.stats.paused) {
2301
+ if ($[86] !== selectedQueue.stats.paused) {
2380
2302
  t42 = /* @__PURE__ */ jsx("div", {
2381
2303
  className: "text-2xl font-bold text-muted-foreground",
2382
2304
  children: selectedQueue.stats.paused
2383
2305
  });
2384
- $[87] = selectedQueue.stats.paused;
2385
- $[88] = t42;
2386
- } else t42 = $[88];
2306
+ $[86] = selectedQueue.stats.paused;
2307
+ $[87] = t42;
2308
+ } else t42 = $[87];
2387
2309
  let t43;
2388
- if ($[89] === Symbol.for("react.memo_cache_sentinel")) {
2310
+ if ($[88] === Symbol.for("react.memo_cache_sentinel")) {
2389
2311
  t43 = /* @__PURE__ */ jsx("div", {
2390
2312
  className: "text-xs text-muted-foreground",
2391
2313
  children: "Paused"
2392
2314
  });
2393
- $[89] = t43;
2394
- } else t43 = $[89];
2315
+ $[88] = t43;
2316
+ } else t43 = $[88];
2395
2317
  let t44;
2396
- if ($[90] !== t42) {
2318
+ if ($[89] !== t42) {
2397
2319
  t44 = /* @__PURE__ */ jsxs("div", { children: [t42, t43] });
2398
- $[90] = t42;
2399
- $[91] = t44;
2400
- } else t44 = $[91];
2320
+ $[89] = t42;
2321
+ $[90] = t44;
2322
+ } else t44 = $[90];
2401
2323
  let t45;
2402
- if ($[92] !== t29 || $[93] !== t32 || $[94] !== t35 || $[95] !== t38 || $[96] !== t41 || $[97] !== t44) {
2324
+ if ($[91] !== t29 || $[92] !== t32 || $[93] !== t35 || $[94] !== t38 || $[95] !== t41 || $[96] !== t44) {
2403
2325
  t45 = /* @__PURE__ */ jsx("div", {
2404
2326
  className: "p-3 border-b border-border",
2405
2327
  children: /* @__PURE__ */ jsxs("div", {
@@ -2414,22 +2336,22 @@ const QueueDetail = memo(() => {
2414
2336
  ]
2415
2337
  })
2416
2338
  });
2417
- $[92] = t29;
2418
- $[93] = t32;
2419
- $[94] = t35;
2420
- $[95] = t38;
2421
- $[96] = t41;
2422
- $[97] = t44;
2423
- $[98] = t45;
2424
- } else t45 = $[98];
2339
+ $[91] = t29;
2340
+ $[92] = t32;
2341
+ $[93] = t35;
2342
+ $[94] = t38;
2343
+ $[95] = t41;
2344
+ $[96] = t44;
2345
+ $[97] = t45;
2346
+ } else t45 = $[97];
2425
2347
  let t46;
2426
- if ($[99] !== setSelectedStatus) {
2348
+ if ($[98] !== setSelectedStatus) {
2427
2349
  t46 = (v) => setSelectedStatus(v);
2428
- $[99] = setSelectedStatus;
2429
- $[100] = t46;
2430
- } else t46 = $[100];
2350
+ $[98] = setSelectedStatus;
2351
+ $[99] = t46;
2352
+ } else t46 = $[99];
2431
2353
  let t47;
2432
- if ($[101] !== selectedQueue.stats || $[102] !== selectedStatus) {
2354
+ if ($[100] !== selectedQueue.stats || $[101] !== selectedStatus) {
2433
2355
  t47 = STATUS_TABS.map((tab) => /* @__PURE__ */ jsxs(TabsTrigger, {
2434
2356
  value: tab.value,
2435
2357
  className: cn("relative", selectedStatus === tab.value && "after:absolute after:bottom-0 after:left-0 after:right-0 after:h-0.5 after:bg-primary"),
@@ -2438,42 +2360,42 @@ const QueueDetail = memo(() => {
2438
2360
  children: selectedQueue.stats[tab.value]
2439
2361
  })]
2440
2362
  }, tab.value));
2441
- $[101] = selectedQueue.stats;
2442
- $[102] = selectedStatus;
2443
- $[103] = t47;
2444
- } else t47 = $[103];
2363
+ $[100] = selectedQueue.stats;
2364
+ $[101] = selectedStatus;
2365
+ $[102] = t47;
2366
+ } else t47 = $[102];
2445
2367
  let t48;
2446
- if ($[104] !== t47) {
2368
+ if ($[103] !== t47) {
2447
2369
  t48 = /* @__PURE__ */ jsx("div", {
2448
2370
  className: "px-3 pt-2 border-b border-border",
2449
2371
  children: /* @__PURE__ */ jsx(TabsList, { children: t47 })
2450
2372
  });
2451
- $[104] = t47;
2452
- $[105] = t48;
2453
- } else t48 = $[105];
2373
+ $[103] = t47;
2374
+ $[104] = t48;
2375
+ } else t48 = $[104];
2454
2376
  let t49;
2455
- if ($[106] === Symbol.for("react.memo_cache_sentinel")) {
2377
+ if ($[105] === Symbol.for("react.memo_cache_sentinel")) {
2456
2378
  t49 = /* @__PURE__ */ jsx("div", {
2457
2379
  className: "flex-1 overflow-auto",
2458
2380
  children: /* @__PURE__ */ jsx(JobsTable, {})
2459
2381
  });
2460
- $[106] = t49;
2461
- } else t49 = $[106];
2382
+ $[105] = t49;
2383
+ } else t49 = $[105];
2462
2384
  let t50;
2463
- if ($[107] !== selectedStatus || $[108] !== t46 || $[109] !== t48) {
2385
+ if ($[106] !== selectedStatus || $[107] !== t46 || $[108] !== t48) {
2464
2386
  t50 = /* @__PURE__ */ jsxs(Tabs, {
2465
2387
  value: selectedStatus,
2466
2388
  onValueChange: t46,
2467
2389
  className: "flex-1 flex flex-col",
2468
2390
  children: [t48, t49]
2469
2391
  });
2470
- $[107] = selectedStatus;
2471
- $[108] = t46;
2472
- $[109] = t48;
2473
- $[110] = t50;
2474
- } else t50 = $[110];
2392
+ $[106] = selectedStatus;
2393
+ $[107] = t46;
2394
+ $[108] = t48;
2395
+ $[109] = t50;
2396
+ } else t50 = $[109];
2475
2397
  let t51;
2476
- if ($[111] !== t26 || $[112] !== t45 || $[113] !== t50) {
2398
+ if ($[110] !== t26 || $[111] !== t45 || $[112] !== t50) {
2477
2399
  t51 = /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs("div", {
2478
2400
  className: "flex flex-col h-full",
2479
2401
  children: [
@@ -2482,11 +2404,11 @@ const QueueDetail = memo(() => {
2482
2404
  t50
2483
2405
  ]
2484
2406
  }) });
2485
- $[111] = t26;
2486
- $[112] = t45;
2487
- $[113] = t50;
2488
- $[114] = t51;
2489
- } else t51 = $[114];
2407
+ $[110] = t26;
2408
+ $[111] = t45;
2409
+ $[112] = t50;
2410
+ $[113] = t51;
2411
+ } else t51 = $[113];
2490
2412
  return t51;
2491
2413
  });
2492
2414
  QueueDetail.displayName = "QueueDetail";
@@ -2503,50 +2425,46 @@ function _temp3$1(state_1) {
2503
2425
  //#endregion
2504
2426
  //#region src/components/queue-list.tsx
2505
2427
  const QueueItem = memo((t0) => {
2506
- const $ = c(54);
2507
- if ($[0] !== "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c") {
2508
- for (let $i = 0; $i < 54; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
2509
- $[0] = "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c";
2510
- }
2428
+ const $ = c(53);
2511
2429
  const { queue, isSelected, onClick } = t0;
2512
2430
  const totalJobs = queue.stats.waiting + queue.stats.active + queue.stats.delayed + queue.stats.prioritized;
2513
2431
  const hasFailedJobs = queue.stats.failed > 0;
2514
2432
  const t1 = isSelected ? "bg-muted-foreground/10" : "hover:bg-muted/70";
2515
2433
  let t2;
2516
- if ($[1] !== t1) {
2434
+ if ($[0] !== t1) {
2517
2435
  t2 = cn("w-full text-left p-3 transition-colors border-b border-border", t1);
2518
- $[1] = t1;
2519
- $[2] = t2;
2520
- } else t2 = $[2];
2436
+ $[0] = t1;
2437
+ $[1] = t2;
2438
+ } else t2 = $[1];
2521
2439
  let t3;
2522
- if ($[3] !== queue.isDLQ) {
2440
+ if ($[2] !== queue.isDLQ) {
2523
2441
  t3 = queue.isDLQ ? /* @__PURE__ */ jsx(Skull, { className: "w-4 h-4 text-destructive" }) : /* @__PURE__ */ jsx(Layers, { className: "w-4 h-4 text-muted-foreground" });
2524
- $[3] = queue.isDLQ;
2525
- $[4] = t3;
2526
- } else t3 = $[4];
2442
+ $[2] = queue.isDLQ;
2443
+ $[3] = t3;
2444
+ } else t3 = $[3];
2527
2445
  let t4;
2528
- if ($[5] !== queue.displayName) {
2446
+ if ($[4] !== queue.displayName) {
2529
2447
  t4 = /* @__PURE__ */ jsx("span", {
2530
2448
  className: "font-semibold text-sm truncate flex-1",
2531
2449
  children: queue.displayName
2532
2450
  });
2533
- $[5] = queue.displayName;
2534
- $[6] = t4;
2535
- } else t4 = $[6];
2451
+ $[4] = queue.displayName;
2452
+ $[5] = t4;
2453
+ } else t4 = $[5];
2536
2454
  let t5;
2537
- if ($[7] !== queue.isPaused) {
2455
+ if ($[6] !== queue.isPaused) {
2538
2456
  t5 = queue.isPaused && /* @__PURE__ */ jsx(Pause, { className: "w-3 h-3 text-yellow-500" });
2539
- $[7] = queue.isPaused;
2540
- $[8] = t5;
2541
- } else t5 = $[8];
2457
+ $[6] = queue.isPaused;
2458
+ $[7] = t5;
2459
+ } else t5 = $[7];
2542
2460
  let t6;
2543
- if ($[9] !== hasFailedJobs) {
2461
+ if ($[8] !== hasFailedJobs) {
2544
2462
  t6 = hasFailedJobs && /* @__PURE__ */ jsx(AlertTriangle, { className: "w-3 h-3 text-destructive" });
2545
- $[9] = hasFailedJobs;
2546
- $[10] = t6;
2547
- } else t6 = $[10];
2463
+ $[8] = hasFailedJobs;
2464
+ $[9] = t6;
2465
+ } else t6 = $[9];
2548
2466
  let t7;
2549
- if ($[11] !== t3 || $[12] !== t4 || $[13] !== t5 || $[14] !== t6) {
2467
+ if ($[10] !== t3 || $[11] !== t4 || $[12] !== t5 || $[13] !== t6) {
2550
2468
  t7 = /* @__PURE__ */ jsxs("div", {
2551
2469
  className: "flex items-center gap-2 mb-1",
2552
2470
  children: [
@@ -2556,29 +2474,29 @@ const QueueItem = memo((t0) => {
2556
2474
  t6
2557
2475
  ]
2558
2476
  });
2559
- $[11] = t3;
2560
- $[12] = t4;
2561
- $[13] = t5;
2562
- $[14] = t6;
2563
- $[15] = t7;
2564
- } else t7 = $[15];
2477
+ $[10] = t3;
2478
+ $[11] = t4;
2479
+ $[12] = t5;
2480
+ $[13] = t6;
2481
+ $[14] = t7;
2482
+ } else t7 = $[14];
2565
2483
  let t8;
2566
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
2484
+ if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
2567
2485
  t8 = /* @__PURE__ */ jsx("span", {
2568
2486
  className: "text-muted-foreground",
2569
2487
  children: "Wait"
2570
2488
  });
2571
- $[16] = t8;
2572
- } else t8 = $[16];
2489
+ $[15] = t8;
2490
+ } else t8 = $[15];
2573
2491
  const t9 = queue.stats.waiting > 0 && "text-blue-500";
2574
2492
  let t10;
2575
- if ($[17] !== t9) {
2493
+ if ($[16] !== t9) {
2576
2494
  t10 = cn("font-mono", t9);
2577
- $[17] = t9;
2578
- $[18] = t10;
2579
- } else t10 = $[18];
2495
+ $[16] = t9;
2496
+ $[17] = t10;
2497
+ } else t10 = $[17];
2580
2498
  let t11;
2581
- if ($[19] !== queue.stats.waiting || $[20] !== t10) {
2499
+ if ($[18] !== queue.stats.waiting || $[19] !== t10) {
2582
2500
  t11 = /* @__PURE__ */ jsxs("div", {
2583
2501
  className: "flex flex-col",
2584
2502
  children: [t8, /* @__PURE__ */ jsx("span", {
@@ -2586,27 +2504,27 @@ const QueueItem = memo((t0) => {
2586
2504
  children: queue.stats.waiting
2587
2505
  })]
2588
2506
  });
2589
- $[19] = queue.stats.waiting;
2590
- $[20] = t10;
2591
- $[21] = t11;
2592
- } else t11 = $[21];
2507
+ $[18] = queue.stats.waiting;
2508
+ $[19] = t10;
2509
+ $[20] = t11;
2510
+ } else t11 = $[20];
2593
2511
  let t12;
2594
- if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
2512
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
2595
2513
  t12 = /* @__PURE__ */ jsx("span", {
2596
2514
  className: "text-muted-foreground",
2597
2515
  children: "Active"
2598
2516
  });
2599
- $[22] = t12;
2600
- } else t12 = $[22];
2517
+ $[21] = t12;
2518
+ } else t12 = $[21];
2601
2519
  const t13 = queue.stats.active > 0 && "text-yellow-500";
2602
2520
  let t14;
2603
- if ($[23] !== t13) {
2521
+ if ($[22] !== t13) {
2604
2522
  t14 = cn("font-mono", t13);
2605
- $[23] = t13;
2606
- $[24] = t14;
2607
- } else t14 = $[24];
2523
+ $[22] = t13;
2524
+ $[23] = t14;
2525
+ } else t14 = $[23];
2608
2526
  let t15;
2609
- if ($[25] !== queue.stats.active || $[26] !== t14) {
2527
+ if ($[24] !== queue.stats.active || $[25] !== t14) {
2610
2528
  t15 = /* @__PURE__ */ jsxs("div", {
2611
2529
  className: "flex flex-col",
2612
2530
  children: [t12, /* @__PURE__ */ jsx("span", {
@@ -2614,27 +2532,27 @@ const QueueItem = memo((t0) => {
2614
2532
  children: queue.stats.active
2615
2533
  })]
2616
2534
  });
2617
- $[25] = queue.stats.active;
2618
- $[26] = t14;
2619
- $[27] = t15;
2620
- } else t15 = $[27];
2535
+ $[24] = queue.stats.active;
2536
+ $[25] = t14;
2537
+ $[26] = t15;
2538
+ } else t15 = $[26];
2621
2539
  let t16;
2622
- if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
2540
+ if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
2623
2541
  t16 = /* @__PURE__ */ jsx("span", {
2624
2542
  className: "text-muted-foreground",
2625
2543
  children: "Done"
2626
2544
  });
2627
- $[28] = t16;
2628
- } else t16 = $[28];
2545
+ $[27] = t16;
2546
+ } else t16 = $[27];
2629
2547
  const t17 = queue.stats.completed > 0 && "text-green-500";
2630
2548
  let t18;
2631
- if ($[29] !== t17) {
2549
+ if ($[28] !== t17) {
2632
2550
  t18 = cn("font-mono", t17);
2633
- $[29] = t17;
2634
- $[30] = t18;
2635
- } else t18 = $[30];
2551
+ $[28] = t17;
2552
+ $[29] = t18;
2553
+ } else t18 = $[29];
2636
2554
  let t19;
2637
- if ($[31] !== queue.stats.completed || $[32] !== t18) {
2555
+ if ($[30] !== queue.stats.completed || $[31] !== t18) {
2638
2556
  t19 = /* @__PURE__ */ jsxs("div", {
2639
2557
  className: "flex flex-col",
2640
2558
  children: [t16, /* @__PURE__ */ jsx("span", {
@@ -2642,27 +2560,27 @@ const QueueItem = memo((t0) => {
2642
2560
  children: queue.stats.completed
2643
2561
  })]
2644
2562
  });
2645
- $[31] = queue.stats.completed;
2646
- $[32] = t18;
2647
- $[33] = t19;
2648
- } else t19 = $[33];
2563
+ $[30] = queue.stats.completed;
2564
+ $[31] = t18;
2565
+ $[32] = t19;
2566
+ } else t19 = $[32];
2649
2567
  let t20;
2650
- if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
2568
+ if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
2651
2569
  t20 = /* @__PURE__ */ jsx("span", {
2652
2570
  className: "text-muted-foreground",
2653
2571
  children: "Failed"
2654
2572
  });
2655
- $[34] = t20;
2656
- } else t20 = $[34];
2573
+ $[33] = t20;
2574
+ } else t20 = $[33];
2657
2575
  const t21 = queue.stats.failed > 0 && "text-destructive";
2658
2576
  let t22;
2659
- if ($[35] !== t21) {
2577
+ if ($[34] !== t21) {
2660
2578
  t22 = cn("font-mono", t21);
2661
- $[35] = t21;
2662
- $[36] = t22;
2663
- } else t22 = $[36];
2579
+ $[34] = t21;
2580
+ $[35] = t22;
2581
+ } else t22 = $[35];
2664
2582
  let t23;
2665
- if ($[37] !== queue.stats.failed || $[38] !== t22) {
2583
+ if ($[36] !== queue.stats.failed || $[37] !== t22) {
2666
2584
  t23 = /* @__PURE__ */ jsxs("div", {
2667
2585
  className: "flex flex-col",
2668
2586
  children: [t20, /* @__PURE__ */ jsx("span", {
@@ -2670,12 +2588,12 @@ const QueueItem = memo((t0) => {
2670
2588
  children: queue.stats.failed
2671
2589
  })]
2672
2590
  });
2673
- $[37] = queue.stats.failed;
2674
- $[38] = t22;
2675
- $[39] = t23;
2676
- } else t23 = $[39];
2591
+ $[36] = queue.stats.failed;
2592
+ $[37] = t22;
2593
+ $[38] = t23;
2594
+ } else t23 = $[38];
2677
2595
  let t24;
2678
- if ($[40] !== t11 || $[41] !== t15 || $[42] !== t19 || $[43] !== t23) {
2596
+ if ($[39] !== t11 || $[40] !== t15 || $[41] !== t19 || $[42] !== t23) {
2679
2597
  t24 = /* @__PURE__ */ jsxs("div", {
2680
2598
  className: "grid grid-cols-4 gap-1 text-xs",
2681
2599
  children: [
@@ -2685,14 +2603,14 @@ const QueueItem = memo((t0) => {
2685
2603
  t23
2686
2604
  ]
2687
2605
  });
2688
- $[40] = t11;
2689
- $[41] = t15;
2690
- $[42] = t19;
2691
- $[43] = t23;
2692
- $[44] = t24;
2693
- } else t24 = $[44];
2606
+ $[39] = t11;
2607
+ $[40] = t15;
2608
+ $[41] = t19;
2609
+ $[42] = t23;
2610
+ $[43] = t24;
2611
+ } else t24 = $[43];
2694
2612
  let t25;
2695
- if ($[45] !== queue.stats.delayed || $[46] !== totalJobs) {
2613
+ if ($[44] !== queue.stats.delayed || $[45] !== totalJobs) {
2696
2614
  t25 = (queue.stats.delayed > 0 || totalJobs > 0) && /* @__PURE__ */ jsxs("div", {
2697
2615
  className: "flex gap-2 mt-1 text-xs text-muted-foreground",
2698
2616
  children: [queue.stats.delayed > 0 && /* @__PURE__ */ jsxs("span", { children: [queue.stats.delayed, " delayed"] }), totalJobs > 0 && /* @__PURE__ */ jsxs("span", {
@@ -2700,12 +2618,12 @@ const QueueItem = memo((t0) => {
2700
2618
  children: [totalJobs, " pending"]
2701
2619
  })]
2702
2620
  });
2703
- $[45] = queue.stats.delayed;
2704
- $[46] = totalJobs;
2705
- $[47] = t25;
2706
- } else t25 = $[47];
2621
+ $[44] = queue.stats.delayed;
2622
+ $[45] = totalJobs;
2623
+ $[46] = t25;
2624
+ } else t25 = $[46];
2707
2625
  let t26;
2708
- if ($[48] !== onClick || $[49] !== t2 || $[50] !== t24 || $[51] !== t25 || $[52] !== t7) {
2626
+ if ($[47] !== onClick || $[48] !== t2 || $[49] !== t24 || $[50] !== t25 || $[51] !== t7) {
2709
2627
  t26 = /* @__PURE__ */ jsxs("button", {
2710
2628
  type: "button",
2711
2629
  onClick,
@@ -2716,22 +2634,18 @@ const QueueItem = memo((t0) => {
2716
2634
  t25
2717
2635
  ]
2718
2636
  });
2719
- $[48] = onClick;
2720
- $[49] = t2;
2721
- $[50] = t24;
2722
- $[51] = t25;
2723
- $[52] = t7;
2724
- $[53] = t26;
2725
- } else t26 = $[53];
2637
+ $[47] = onClick;
2638
+ $[48] = t2;
2639
+ $[49] = t24;
2640
+ $[50] = t25;
2641
+ $[51] = t7;
2642
+ $[52] = t26;
2643
+ } else t26 = $[52];
2726
2644
  return t26;
2727
2645
  });
2728
2646
  QueueItem.displayName = "QueueItem";
2729
2647
  const QueueList = memo(() => {
2730
- const $ = c(38);
2731
- if ($[0] !== "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c") {
2732
- for (let $i = 0; $i < 38; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
2733
- $[0] = "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c";
2734
- }
2648
+ const $ = c(37);
2735
2649
  const queues = useBullMQStore(_temp$1);
2736
2650
  const selectedQueue = useBullMQStore(_temp2$1);
2737
2651
  const setSelectedQueue = useBullMQStore(_temp3);
@@ -2744,38 +2658,38 @@ const QueueList = memo(() => {
2744
2658
  break bb0;
2745
2659
  }
2746
2660
  let t1$1;
2747
- if ($[1] !== queues || $[2] !== searchQuery) {
2661
+ if ($[0] !== queues || $[1] !== searchQuery) {
2748
2662
  const query = searchQuery.toLowerCase();
2749
2663
  t1$1 = queues.filter((q) => q.name.toLowerCase().includes(query) || q.displayName.toLowerCase().includes(query));
2750
- $[1] = queues;
2751
- $[2] = searchQuery;
2752
- $[3] = t1$1;
2753
- } else t1$1 = $[3];
2664
+ $[0] = queues;
2665
+ $[1] = searchQuery;
2666
+ $[2] = t1$1;
2667
+ } else t1$1 = $[2];
2754
2668
  t0 = t1$1;
2755
2669
  }
2756
2670
  const filteredQueues = t0;
2757
2671
  let t1;
2758
- if ($[4] !== filteredQueues) {
2672
+ if ($[3] !== filteredQueues) {
2759
2673
  t1 = filteredQueues.filter(_temp6);
2760
- $[4] = filteredQueues;
2761
- $[5] = t1;
2762
- } else t1 = $[5];
2674
+ $[3] = filteredQueues;
2675
+ $[4] = t1;
2676
+ } else t1 = $[4];
2763
2677
  const regularQueues = t1;
2764
2678
  let t2;
2765
- if ($[6] !== filteredQueues) {
2679
+ if ($[5] !== filteredQueues) {
2766
2680
  t2 = filteredQueues.filter(_temp7);
2767
- $[6] = filteredQueues;
2768
- $[7] = t2;
2769
- } else t2 = $[7];
2681
+ $[5] = filteredQueues;
2682
+ $[6] = t2;
2683
+ } else t2 = $[6];
2770
2684
  const dlqQueues = t2;
2771
2685
  let t3;
2772
- if ($[8] !== setSearchQuery) {
2686
+ if ($[7] !== setSearchQuery) {
2773
2687
  t3 = (e) => setSearchQuery(e.target.value);
2774
- $[8] = setSearchQuery;
2775
- $[9] = t3;
2776
- } else t3 = $[9];
2688
+ $[7] = setSearchQuery;
2689
+ $[8] = t3;
2690
+ } else t3 = $[8];
2777
2691
  let t4;
2778
- if ($[10] !== searchQuery || $[11] !== t3) {
2692
+ if ($[9] !== searchQuery || $[10] !== t3) {
2779
2693
  t4 = /* @__PURE__ */ jsx(Input, {
2780
2694
  variant: "shade",
2781
2695
  value: searchQuery,
@@ -2783,27 +2697,27 @@ const QueueList = memo(() => {
2783
2697
  className: "px-9! font-medium text-sm",
2784
2698
  placeholder: "Search queues..."
2785
2699
  });
2786
- $[10] = searchQuery;
2787
- $[11] = t3;
2788
- $[12] = t4;
2789
- } else t4 = $[12];
2700
+ $[9] = searchQuery;
2701
+ $[10] = t3;
2702
+ $[11] = t4;
2703
+ } else t4 = $[11];
2790
2704
  let t5;
2791
- if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
2705
+ if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
2792
2706
  t5 = /* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" });
2793
- $[13] = t5;
2794
- } else t5 = $[13];
2707
+ $[12] = t5;
2708
+ } else t5 = $[12];
2795
2709
  let t6;
2796
- if ($[14] !== searchQuery || $[15] !== setSearchQuery) {
2710
+ if ($[13] !== searchQuery || $[14] !== setSearchQuery) {
2797
2711
  t6 = searchQuery && /* @__PURE__ */ jsx(X, {
2798
2712
  className: "cursor-pointer absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50 hover:text-muted-foreground",
2799
2713
  onClick: () => setSearchQuery("")
2800
2714
  });
2801
- $[14] = searchQuery;
2802
- $[15] = setSearchQuery;
2803
- $[16] = t6;
2804
- } else t6 = $[16];
2715
+ $[13] = searchQuery;
2716
+ $[14] = setSearchQuery;
2717
+ $[15] = t6;
2718
+ } else t6 = $[15];
2805
2719
  let t7;
2806
- if ($[17] !== t4 || $[18] !== t6) {
2720
+ if ($[16] !== t4 || $[17] !== t6) {
2807
2721
  t7 = /* @__PURE__ */ jsx("div", {
2808
2722
  className: "p-2 border-b border-border",
2809
2723
  children: /* @__PURE__ */ jsxs("div", {
@@ -2815,12 +2729,12 @@ const QueueList = memo(() => {
2815
2729
  ]
2816
2730
  })
2817
2731
  });
2818
- $[17] = t4;
2819
- $[18] = t6;
2820
- $[19] = t7;
2821
- } else t7 = $[19];
2732
+ $[16] = t4;
2733
+ $[17] = t6;
2734
+ $[18] = t7;
2735
+ } else t7 = $[18];
2822
2736
  let t8;
2823
- if ($[20] !== regularQueues || $[21] !== selectedQueue?.name || $[22] !== setSelectedQueue) {
2737
+ if ($[19] !== regularQueues || $[20] !== selectedQueue?.name || $[21] !== setSelectedQueue) {
2824
2738
  t8 = regularQueues.length > 0 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
2825
2739
  className: "px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wider bg-muted/30",
2826
2740
  children: [
@@ -2833,13 +2747,13 @@ const QueueList = memo(() => {
2833
2747
  isSelected: selectedQueue?.name === queue.name,
2834
2748
  onClick: () => setSelectedQueue(queue)
2835
2749
  }, queue.name))] });
2836
- $[20] = regularQueues;
2837
- $[21] = selectedQueue?.name;
2838
- $[22] = setSelectedQueue;
2839
- $[23] = t8;
2840
- } else t8 = $[23];
2750
+ $[19] = regularQueues;
2751
+ $[20] = selectedQueue?.name;
2752
+ $[21] = setSelectedQueue;
2753
+ $[22] = t8;
2754
+ } else t8 = $[22];
2841
2755
  let t9;
2842
- if ($[24] !== dlqQueues || $[25] !== selectedQueue?.name || $[26] !== setSelectedQueue) {
2756
+ if ($[23] !== dlqQueues || $[24] !== selectedQueue?.name || $[25] !== setSelectedQueue) {
2843
2757
  t9 = dlqQueues.length > 0 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
2844
2758
  className: "px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wider bg-destructive/10",
2845
2759
  children: [
@@ -2852,23 +2766,23 @@ const QueueList = memo(() => {
2852
2766
  isSelected: selectedQueue?.name === queue_0.name,
2853
2767
  onClick: () => setSelectedQueue(queue_0)
2854
2768
  }, queue_0.name))] });
2855
- $[24] = dlqQueues;
2856
- $[25] = selectedQueue?.name;
2857
- $[26] = setSelectedQueue;
2858
- $[27] = t9;
2859
- } else t9 = $[27];
2769
+ $[23] = dlqQueues;
2770
+ $[24] = selectedQueue?.name;
2771
+ $[25] = setSelectedQueue;
2772
+ $[26] = t9;
2773
+ } else t9 = $[26];
2860
2774
  let t10;
2861
- if ($[28] !== filteredQueues.length || $[29] !== searchQuery) {
2775
+ if ($[27] !== filteredQueues.length || $[28] !== searchQuery) {
2862
2776
  t10 = filteredQueues.length === 0 && /* @__PURE__ */ jsx("div", {
2863
2777
  className: "p-4 text-center text-muted-foreground text-sm",
2864
2778
  children: searchQuery ? "No queues match your search" : "No queues found"
2865
2779
  });
2866
- $[28] = filteredQueues.length;
2867
- $[29] = searchQuery;
2868
- $[30] = t10;
2869
- } else t10 = $[30];
2780
+ $[27] = filteredQueues.length;
2781
+ $[28] = searchQuery;
2782
+ $[29] = t10;
2783
+ } else t10 = $[29];
2870
2784
  let t11;
2871
- if ($[31] !== t10 || $[32] !== t8 || $[33] !== t9) {
2785
+ if ($[30] !== t10 || $[31] !== t8 || $[32] !== t9) {
2872
2786
  t11 = /* @__PURE__ */ jsxs("div", {
2873
2787
  className: "flex-1 overflow-auto",
2874
2788
  children: [
@@ -2877,21 +2791,21 @@ const QueueList = memo(() => {
2877
2791
  t10
2878
2792
  ]
2879
2793
  });
2880
- $[31] = t10;
2881
- $[32] = t8;
2882
- $[33] = t9;
2883
- $[34] = t11;
2884
- } else t11 = $[34];
2794
+ $[30] = t10;
2795
+ $[31] = t8;
2796
+ $[32] = t9;
2797
+ $[33] = t11;
2798
+ } else t11 = $[33];
2885
2799
  let t12;
2886
- if ($[35] !== t11 || $[36] !== t7) {
2800
+ if ($[34] !== t11 || $[35] !== t7) {
2887
2801
  t12 = /* @__PURE__ */ jsxs("div", {
2888
2802
  className: "flex flex-col h-full",
2889
2803
  children: [t7, t11]
2890
2804
  });
2891
- $[35] = t11;
2892
- $[36] = t7;
2893
- $[37] = t12;
2894
- } else t12 = $[37];
2805
+ $[34] = t11;
2806
+ $[35] = t7;
2807
+ $[36] = t12;
2808
+ } else t12 = $[36];
2895
2809
  return t12;
2896
2810
  });
2897
2811
  QueueList.displayName = "QueueList";
@@ -2920,17 +2834,13 @@ function _temp7(q_1) {
2920
2834
  //#endregion
2921
2835
  //#region src/components/queues-page.tsx
2922
2836
  const QueuesPageContent = memo(() => {
2923
- const $ = c(12);
2924
- if ($[0] !== "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492") {
2925
- for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
2926
- $[0] = "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492";
2927
- }
2837
+ const $ = c(11);
2928
2838
  const selectedQueue = useBullMQStore(_temp);
2929
2839
  const updateSelectedQueueStats = useBullMQStore(_temp2);
2930
2840
  const { queues } = useQueues();
2931
2841
  let t0;
2932
2842
  let t1;
2933
- if ($[1] !== queues || $[2] !== selectedQueue || $[3] !== updateSelectedQueueStats) {
2843
+ if ($[0] !== queues || $[1] !== selectedQueue || $[2] !== updateSelectedQueueStats) {
2934
2844
  t0 = () => {
2935
2845
  if (selectedQueue) {
2936
2846
  const updatedQueue = queues.find((q) => q.name === selectedQueue.name);
@@ -2942,40 +2852,40 @@ const QueuesPageContent = memo(() => {
2942
2852
  selectedQueue,
2943
2853
  updateSelectedQueueStats
2944
2854
  ];
2945
- $[1] = queues;
2946
- $[2] = selectedQueue;
2947
- $[3] = updateSelectedQueueStats;
2948
- $[4] = t0;
2949
- $[5] = t1;
2855
+ $[0] = queues;
2856
+ $[1] = selectedQueue;
2857
+ $[2] = updateSelectedQueueStats;
2858
+ $[3] = t0;
2859
+ $[4] = t1;
2950
2860
  } else {
2951
- t0 = $[4];
2952
- t1 = $[5];
2861
+ t0 = $[3];
2862
+ t1 = $[4];
2953
2863
  }
2954
2864
  useEffect(t0, t1);
2955
2865
  let t2;
2956
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
2866
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
2957
2867
  t2 = /* @__PURE__ */ jsx("div", {
2958
2868
  className: "border-r border-border overflow-hidden",
2959
2869
  children: /* @__PURE__ */ jsx(QueueList, {})
2960
2870
  });
2961
- $[6] = t2;
2962
- } else t2 = $[6];
2871
+ $[5] = t2;
2872
+ } else t2 = $[5];
2963
2873
  let t3;
2964
- if ($[7] !== selectedQueue?.isDLQ) {
2874
+ if ($[6] !== selectedQueue?.isDLQ) {
2965
2875
  t3 = /* @__PURE__ */ jsx("div", {
2966
2876
  className: "overflow-hidden",
2967
2877
  children: selectedQueue?.isDLQ ? /* @__PURE__ */ jsx(DLQPanel, {}) : /* @__PURE__ */ jsx(QueueDetail, {})
2968
2878
  });
2969
- $[7] = selectedQueue?.isDLQ;
2970
- $[8] = t3;
2971
- } else t3 = $[8];
2879
+ $[6] = selectedQueue?.isDLQ;
2880
+ $[7] = t3;
2881
+ } else t3 = $[7];
2972
2882
  let t4;
2973
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
2883
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
2974
2884
  t4 = /* @__PURE__ */ jsx(JobDetail, {});
2975
- $[9] = t4;
2976
- } else t4 = $[9];
2885
+ $[8] = t4;
2886
+ } else t4 = $[8];
2977
2887
  let t5;
2978
- if ($[10] !== t3) {
2888
+ if ($[9] !== t3) {
2979
2889
  t5 = /* @__PURE__ */ jsxs("div", {
2980
2890
  className: "grid grid-cols-[300px_1fr] h-full overflow-hidden",
2981
2891
  children: [
@@ -2984,23 +2894,19 @@ const QueuesPageContent = memo(() => {
2984
2894
  t4
2985
2895
  ]
2986
2896
  });
2987
- $[10] = t3;
2988
- $[11] = t5;
2989
- } else t5 = $[11];
2897
+ $[9] = t3;
2898
+ $[10] = t5;
2899
+ } else t5 = $[10];
2990
2900
  return t5;
2991
2901
  });
2992
2902
  QueuesPageContent.displayName = "QueuesPageContent";
2993
2903
  const QueuesPage = memo(() => {
2994
- const $ = c(2);
2995
- if ($[0] !== "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492") {
2996
- for (let $i = 0; $i < 2; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
2997
- $[0] = "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492";
2998
- }
2904
+ const $ = c(1);
2999
2905
  let t0;
3000
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
2906
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
3001
2907
  t0 = /* @__PURE__ */ jsx(QueryProvider, { children: /* @__PURE__ */ jsx(QueuesPageContent, {}) });
3002
- $[1] = t0;
3003
- } else t0 = $[1];
2908
+ $[0] = t0;
2909
+ } else t0 = $[0];
3004
2910
  return t0;
3005
2911
  });
3006
2912
  QueuesPage.displayName = "QueuesPage";