@motiadev/plugin-bullmq 0.14.0-beta.165-917560 → 0.14.0-beta.165-958021

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] !== "35e57f18a759ee630724f8001ffcc43b791357fe1eb5c9a6692b76ef0e6628e1") {
1600
- for (let $i = 0; $i < 50; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1601
- $[0] = "35e57f18a759ee630724f8001ffcc43b791357fe1eb5c9a6692b76ef0e6628e1";
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,45 +1658,45 @@ 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, {
@@ -1781,13 +1709,13 @@ const JobRow = memo((t0) => {
1781
1709
  ]
1782
1710
  })] })
1783
1711
  });
1784
- $[37] = t13;
1785
- $[38] = t14;
1786
- $[39] = t16;
1787
- $[40] = t17;
1788
- } else t17 = $[40];
1712
+ $[36] = t13;
1713
+ $[37] = t14;
1714
+ $[38] = t16;
1715
+ $[39] = t17;
1716
+ } else t17 = $[39];
1789
1717
  let t18;
1790
- 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) {
1791
1719
  t18 = /* @__PURE__ */ jsxs(TableRow, {
1792
1720
  onClick: onSelect,
1793
1721
  className: t5,
@@ -1800,83 +1728,79 @@ const JobRow = memo((t0) => {
1800
1728
  t17
1801
1729
  ]
1802
1730
  });
1803
- $[41] = onSelect;
1804
- $[42] = t10;
1805
- $[43] = t11;
1806
- $[44] = t17;
1807
- $[45] = t5;
1808
- $[46] = t6;
1809
- $[47] = t7;
1810
- $[48] = t9;
1811
- $[49] = t18;
1812
- } 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];
1813
1741
  return t18;
1814
1742
  });
1815
1743
  JobRow.displayName = "JobRow";
1816
1744
  const JobsTable = memo(() => {
1817
- const $ = c(21);
1818
- if ($[0] !== "35e57f18a759ee630724f8001ffcc43b791357fe1eb5c9a6692b76ef0e6628e1") {
1819
- for (let $i = 0; $i < 21; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1820
- $[0] = "35e57f18a759ee630724f8001ffcc43b791357fe1eb5c9a6692b76ef0e6628e1";
1821
- }
1745
+ const $ = c(20);
1822
1746
  const { data: t0, isLoading } = useJobsQuery();
1823
1747
  let t1;
1824
- if ($[1] !== t0) {
1748
+ if ($[0] !== t0) {
1825
1749
  t1 = t0 === void 0 ? [] : t0;
1826
- $[1] = t0;
1827
- $[2] = t1;
1828
- } else t1 = $[2];
1750
+ $[0] = t0;
1751
+ $[1] = t1;
1752
+ } else t1 = $[1];
1829
1753
  const jobs = t1;
1830
1754
  const selectedQueue = useBullMQStore(_temp2$3);
1831
1755
  const selectedJob = useBullMQStore(_temp3$2);
1832
1756
  const setSelectedJob = useBullMQStore(_temp4$1);
1833
1757
  const setJobDetailOpen = useBullMQStore(_temp5$1);
1834
1758
  let t2;
1835
- if ($[3] !== setJobDetailOpen || $[4] !== setSelectedJob) {
1759
+ if ($[2] !== setJobDetailOpen || $[3] !== setSelectedJob) {
1836
1760
  t2 = (job) => {
1837
1761
  setSelectedJob(job);
1838
1762
  setJobDetailOpen(true);
1839
1763
  };
1840
- $[3] = setJobDetailOpen;
1841
- $[4] = setSelectedJob;
1842
- $[5] = t2;
1843
- } else t2 = $[5];
1764
+ $[2] = setJobDetailOpen;
1765
+ $[3] = setSelectedJob;
1766
+ $[4] = t2;
1767
+ } else t2 = $[4];
1844
1768
  const handleSelectJob = t2;
1845
1769
  if (!selectedQueue) {
1846
1770
  let t3$1;
1847
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
1771
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
1848
1772
  t3$1 = /* @__PURE__ */ jsx("div", {
1849
1773
  className: "flex items-center justify-center h-full text-muted-foreground",
1850
1774
  children: "Select a queue to view jobs"
1851
1775
  });
1852
- $[6] = t3$1;
1853
- } else t3$1 = $[6];
1776
+ $[5] = t3$1;
1777
+ } else t3$1 = $[5];
1854
1778
  return t3$1;
1855
1779
  }
1856
1780
  if (isLoading) {
1857
1781
  let t3$1;
1858
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
1782
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
1859
1783
  t3$1 = /* @__PURE__ */ jsx("div", {
1860
1784
  className: "flex items-center justify-center h-full text-muted-foreground",
1861
1785
  children: "Loading jobs..."
1862
1786
  });
1863
- $[7] = t3$1;
1864
- } else t3$1 = $[7];
1787
+ $[6] = t3$1;
1788
+ } else t3$1 = $[6];
1865
1789
  return t3$1;
1866
1790
  }
1867
1791
  if (jobs.length === 0) {
1868
1792
  let t3$1;
1869
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
1793
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
1870
1794
  t3$1 = /* @__PURE__ */ jsx("div", {
1871
1795
  className: "flex items-center justify-center h-full text-muted-foreground",
1872
1796
  children: "No jobs in this status"
1873
1797
  });
1874
- $[8] = t3$1;
1875
- } else t3$1 = $[8];
1798
+ $[7] = t3$1;
1799
+ } else t3$1 = $[7];
1876
1800
  return t3$1;
1877
1801
  }
1878
1802
  let t3;
1879
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
1803
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
1880
1804
  t3 = /* @__PURE__ */ jsx(TableHeader, {
1881
1805
  className: "sticky top-0 bg-background/95 backdrop-blur-sm",
1882
1806
  children: /* @__PURE__ */ jsxs(TableRow, { children: [
@@ -1903,36 +1827,36 @@ const JobsTable = memo(() => {
1903
1827
  })
1904
1828
  ] })
1905
1829
  });
1906
- $[9] = t3;
1907
- } else t3 = $[9];
1830
+ $[8] = t3;
1831
+ } else t3 = $[8];
1908
1832
  let t4;
1909
- if ($[10] !== handleSelectJob || $[11] !== jobs || $[12] !== selectedJob?.id || $[13] !== selectedQueue) {
1833
+ if ($[9] !== handleSelectJob || $[10] !== jobs || $[11] !== selectedJob?.id || $[12] !== selectedQueue) {
1910
1834
  let t5$1;
1911
- if ($[15] !== handleSelectJob || $[16] !== selectedJob?.id || $[17] !== selectedQueue) {
1835
+ if ($[14] !== handleSelectJob || $[15] !== selectedJob?.id || $[16] !== selectedQueue) {
1912
1836
  t5$1 = (job_0) => /* @__PURE__ */ jsx(JobRow, {
1913
1837
  job: job_0,
1914
1838
  queueName: selectedQueue.name,
1915
1839
  onSelect: () => handleSelectJob(job_0),
1916
1840
  isSelected: selectedJob?.id === job_0.id
1917
1841
  }, job_0.id);
1918
- $[15] = handleSelectJob;
1919
- $[16] = selectedJob?.id;
1920
- $[17] = selectedQueue;
1921
- $[18] = t5$1;
1922
- } else t5$1 = $[18];
1842
+ $[14] = handleSelectJob;
1843
+ $[15] = selectedJob?.id;
1844
+ $[16] = selectedQueue;
1845
+ $[17] = t5$1;
1846
+ } else t5$1 = $[17];
1923
1847
  t4 = jobs.map(t5$1);
1924
- $[10] = handleSelectJob;
1925
- $[11] = jobs;
1926
- $[12] = selectedJob?.id;
1927
- $[13] = selectedQueue;
1928
- $[14] = t4;
1929
- } else t4 = $[14];
1848
+ $[9] = handleSelectJob;
1849
+ $[10] = jobs;
1850
+ $[11] = selectedJob?.id;
1851
+ $[12] = selectedQueue;
1852
+ $[13] = t4;
1853
+ } else t4 = $[13];
1930
1854
  let t5;
1931
- if ($[19] !== t4) {
1855
+ if ($[18] !== t4) {
1932
1856
  t5 = /* @__PURE__ */ jsxs(Table, { children: [t3, /* @__PURE__ */ jsx(TableBody, { children: t4 })] });
1933
- $[19] = t4;
1934
- $[20] = t5;
1935
- } else t5 = $[20];
1857
+ $[18] = t4;
1858
+ $[19] = t5;
1859
+ } else t5 = $[19];
1936
1860
  return t5;
1937
1861
  });
1938
1862
  JobsTable.displayName = "JobsTable";
@@ -1977,128 +1901,124 @@ const STATUS_TABS = [
1977
1901
  }
1978
1902
  ];
1979
1903
  const QueueDetail = memo(() => {
1980
- const $ = c(115);
1981
- if ($[0] !== "ec763ba5d94c93fbec6c5d401f02a104160374351538eec66a12a09486a09276") {
1982
- for (let $i = 0; $i < 115; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1983
- $[0] = "ec763ba5d94c93fbec6c5d401f02a104160374351538eec66a12a09486a09276";
1984
- }
1904
+ const $ = c(114);
1985
1905
  const queryClient$1 = useQueryClient();
1986
1906
  const selectedQueue = useBullMQStore(_temp$2);
1987
1907
  const selectedStatus = useBullMQStore(_temp2$2);
1988
1908
  const setSelectedStatus = useBullMQStore(_temp3$1);
1989
1909
  const { pauseQueue, resumeQueue, cleanQueue, drainQueue } = useQueues();
1990
1910
  let t0;
1991
- if ($[1] !== pauseQueue || $[2] !== selectedQueue) {
1911
+ if ($[0] !== pauseQueue || $[1] !== selectedQueue) {
1992
1912
  t0 = async () => {
1993
1913
  if (!selectedQueue) return;
1994
1914
  await pauseQueue(selectedQueue.name);
1995
1915
  };
1996
- $[1] = pauseQueue;
1997
- $[2] = selectedQueue;
1998
- $[3] = t0;
1999
- } else t0 = $[3];
1916
+ $[0] = pauseQueue;
1917
+ $[1] = selectedQueue;
1918
+ $[2] = t0;
1919
+ } else t0 = $[2];
2000
1920
  const handlePause = t0;
2001
1921
  let t1;
2002
- if ($[4] !== resumeQueue || $[5] !== selectedQueue) {
1922
+ if ($[3] !== resumeQueue || $[4] !== selectedQueue) {
2003
1923
  t1 = async () => {
2004
1924
  if (!selectedQueue) return;
2005
1925
  await resumeQueue(selectedQueue.name);
2006
1926
  };
2007
- $[4] = resumeQueue;
2008
- $[5] = selectedQueue;
2009
- $[6] = t1;
2010
- } else t1 = $[6];
1927
+ $[3] = resumeQueue;
1928
+ $[4] = selectedQueue;
1929
+ $[5] = t1;
1930
+ } else t1 = $[5];
2011
1931
  const handleResume = t1;
2012
1932
  let t2;
2013
- if ($[7] !== cleanQueue || $[8] !== selectedQueue) {
1933
+ if ($[6] !== cleanQueue || $[7] !== selectedQueue) {
2014
1934
  t2 = async () => {
2015
1935
  if (!selectedQueue) return;
2016
1936
  await cleanQueue(selectedQueue.name, "completed", 0, 1e3);
2017
1937
  };
2018
- $[7] = cleanQueue;
2019
- $[8] = selectedQueue;
2020
- $[9] = t2;
2021
- } else t2 = $[9];
1938
+ $[6] = cleanQueue;
1939
+ $[7] = selectedQueue;
1940
+ $[8] = t2;
1941
+ } else t2 = $[8];
2022
1942
  const handleCleanCompleted = t2;
2023
1943
  let t3;
2024
- if ($[10] !== cleanQueue || $[11] !== selectedQueue) {
1944
+ if ($[9] !== cleanQueue || $[10] !== selectedQueue) {
2025
1945
  t3 = async () => {
2026
1946
  if (!selectedQueue) return;
2027
1947
  await cleanQueue(selectedQueue.name, "failed", 0, 1e3);
2028
1948
  };
2029
- $[10] = cleanQueue;
2030
- $[11] = selectedQueue;
2031
- $[12] = t3;
2032
- } else t3 = $[12];
1949
+ $[9] = cleanQueue;
1950
+ $[10] = selectedQueue;
1951
+ $[11] = t3;
1952
+ } else t3 = $[11];
2033
1953
  const handleCleanFailed = t3;
2034
1954
  let t4;
2035
- if ($[13] !== drainQueue || $[14] !== selectedQueue) {
1955
+ if ($[12] !== drainQueue || $[13] !== selectedQueue) {
2036
1956
  t4 = async () => {
2037
1957
  if (!selectedQueue) return;
2038
1958
  await drainQueue(selectedQueue.name);
2039
1959
  };
2040
- $[13] = drainQueue;
2041
- $[14] = selectedQueue;
2042
- $[15] = t4;
2043
- } else t4 = $[15];
1960
+ $[12] = drainQueue;
1961
+ $[13] = selectedQueue;
1962
+ $[14] = t4;
1963
+ } else t4 = $[14];
2044
1964
  const handleDrain = t4;
2045
1965
  let t5;
2046
- if ($[16] !== queryClient$1 || $[17] !== selectedQueue) {
1966
+ if ($[15] !== queryClient$1 || $[16] !== selectedQueue) {
2047
1967
  t5 = () => {
2048
1968
  if (!selectedQueue) return;
2049
1969
  queryClient$1.invalidateQueries({ queryKey: ["jobs", selectedQueue.name] });
2050
1970
  };
2051
- $[16] = queryClient$1;
2052
- $[17] = selectedQueue;
2053
- $[18] = t5;
2054
- } else t5 = $[18];
1971
+ $[15] = queryClient$1;
1972
+ $[16] = selectedQueue;
1973
+ $[17] = t5;
1974
+ } else t5 = $[17];
2055
1975
  const handleRefresh = t5;
2056
1976
  if (!selectedQueue) {
2057
1977
  let t6$1;
2058
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
1978
+ if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
2059
1979
  t6$1 = /* @__PURE__ */ jsx("div", {
2060
1980
  className: "flex items-center justify-center h-full text-muted-foreground",
2061
1981
  children: "Select a queue from the list to view details"
2062
1982
  });
2063
- $[19] = t6$1;
2064
- } else t6$1 = $[19];
1983
+ $[18] = t6$1;
1984
+ } else t6$1 = $[18];
2065
1985
  return t6$1;
2066
1986
  }
2067
1987
  let t6;
2068
- if ($[20] !== selectedQueue.displayName) {
1988
+ if ($[19] !== selectedQueue.displayName) {
2069
1989
  t6 = /* @__PURE__ */ jsx("h2", {
2070
1990
  className: "font-semibold text-lg",
2071
1991
  children: selectedQueue.displayName
2072
1992
  });
2073
- $[20] = selectedQueue.displayName;
2074
- $[21] = t6;
2075
- } else t6 = $[21];
1993
+ $[19] = selectedQueue.displayName;
1994
+ $[20] = t6;
1995
+ } else t6 = $[20];
2076
1996
  let t7;
2077
- if ($[22] !== selectedQueue.isPaused) {
1997
+ if ($[21] !== selectedQueue.isPaused) {
2078
1998
  t7 = selectedQueue.isPaused && /* @__PURE__ */ jsx("span", {
2079
1999
  className: "px-2 py-0.5 text-xs rounded bg-yellow-500/20 text-yellow-600",
2080
2000
  children: "Paused"
2081
2001
  });
2082
- $[22] = selectedQueue.isPaused;
2083
- $[23] = t7;
2084
- } else t7 = $[23];
2002
+ $[21] = selectedQueue.isPaused;
2003
+ $[22] = t7;
2004
+ } else t7 = $[22];
2085
2005
  let t8;
2086
- if ($[24] !== t6 || $[25] !== t7) {
2006
+ if ($[23] !== t6 || $[24] !== t7) {
2087
2007
  t8 = /* @__PURE__ */ jsxs("div", {
2088
2008
  className: "flex items-center gap-3",
2089
2009
  children: [t6, t7]
2090
2010
  });
2091
- $[24] = t6;
2092
- $[25] = t7;
2093
- $[26] = t8;
2094
- } else t8 = $[26];
2011
+ $[23] = t6;
2012
+ $[24] = t7;
2013
+ $[25] = t8;
2014
+ } else t8 = $[25];
2095
2015
  let t9;
2096
- if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
2016
+ if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
2097
2017
  t9 = /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" });
2098
- $[27] = t9;
2099
- } else t9 = $[27];
2018
+ $[26] = t9;
2019
+ } else t9 = $[26];
2100
2020
  let t10;
2101
- if ($[28] !== handleRefresh) {
2021
+ if ($[27] !== handleRefresh) {
2102
2022
  t10 = /* @__PURE__ */ jsx(TooltipTrigger, {
2103
2023
  asChild: true,
2104
2024
  children: /* @__PURE__ */ jsx(Button, {
@@ -2108,22 +2028,22 @@ const QueueDetail = memo(() => {
2108
2028
  children: t9
2109
2029
  })
2110
2030
  });
2111
- $[28] = handleRefresh;
2112
- $[29] = t10;
2113
- } else t10 = $[29];
2031
+ $[27] = handleRefresh;
2032
+ $[28] = t10;
2033
+ } else t10 = $[28];
2114
2034
  let t11;
2115
- if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
2035
+ if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
2116
2036
  t11 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Refresh queue stats and jobs list" }) });
2117
- $[30] = t11;
2118
- } else t11 = $[30];
2037
+ $[29] = t11;
2038
+ } else t11 = $[29];
2119
2039
  let t12;
2120
- if ($[31] !== t10) {
2040
+ if ($[30] !== t10) {
2121
2041
  t12 = /* @__PURE__ */ jsxs(Tooltip, { children: [t10, t11] });
2122
- $[31] = t10;
2123
- $[32] = t12;
2124
- } else t12 = $[32];
2042
+ $[30] = t10;
2043
+ $[31] = t12;
2044
+ } else t12 = $[31];
2125
2045
  let t13;
2126
- if ($[33] !== handlePause || $[34] !== handleResume || $[35] !== selectedQueue.isPaused) {
2046
+ if ($[32] !== handlePause || $[33] !== handleResume || $[34] !== selectedQueue.isPaused) {
2127
2047
  t13 = selectedQueue.isPaused ? /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
2128
2048
  asChild: true,
2129
2049
  children: /* @__PURE__ */ jsxs(Button, {
@@ -2141,13 +2061,13 @@ const QueueDetail = memo(() => {
2141
2061
  children: [/* @__PURE__ */ jsx(Pause, { className: "mr-2 h-4 w-4" }), "Pause"]
2142
2062
  })
2143
2063
  }), /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Stop workers from picking up new jobs" }) })] });
2144
- $[33] = handlePause;
2145
- $[34] = handleResume;
2146
- $[35] = selectedQueue.isPaused;
2147
- $[36] = t13;
2148
- } else t13 = $[36];
2064
+ $[32] = handlePause;
2065
+ $[33] = handleResume;
2066
+ $[34] = selectedQueue.isPaused;
2067
+ $[35] = t13;
2068
+ } else t13 = $[35];
2149
2069
  let t14;
2150
- if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
2070
+ if ($[36] === Symbol.for("react.memo_cache_sentinel")) {
2151
2071
  t14 = /* @__PURE__ */ jsx(DropdownMenuTrigger, {
2152
2072
  asChild: true,
2153
2073
  children: /* @__PURE__ */ jsx(Button, {
@@ -2156,58 +2076,58 @@ const QueueDetail = memo(() => {
2156
2076
  children: /* @__PURE__ */ jsx(MoreVertical, { className: "h-4 w-4" })
2157
2077
  })
2158
2078
  });
2159
- $[37] = t14;
2160
- } else t14 = $[37];
2079
+ $[36] = t14;
2080
+ } else t14 = $[36];
2161
2081
  let t15;
2162
- if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
2082
+ if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
2163
2083
  t15 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
2164
- $[38] = t15;
2165
- } else t15 = $[38];
2084
+ $[37] = t15;
2085
+ } else t15 = $[37];
2166
2086
  let t16;
2167
- if ($[39] !== handleCleanCompleted) {
2087
+ if ($[38] !== handleCleanCompleted) {
2168
2088
  t16 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
2169
2089
  onClick: handleCleanCompleted,
2170
2090
  children: [t15, "Clean Completed"]
2171
2091
  });
2172
- $[39] = handleCleanCompleted;
2173
- $[40] = t16;
2174
- } else t16 = $[40];
2092
+ $[38] = handleCleanCompleted;
2093
+ $[39] = t16;
2094
+ } else t16 = $[39];
2175
2095
  let t17;
2176
- if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
2096
+ if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
2177
2097
  t17 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
2178
- $[41] = t17;
2179
- } else t17 = $[41];
2098
+ $[40] = t17;
2099
+ } else t17 = $[40];
2180
2100
  let t18;
2181
- if ($[42] !== handleCleanFailed) {
2101
+ if ($[41] !== handleCleanFailed) {
2182
2102
  t18 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
2183
2103
  onClick: handleCleanFailed,
2184
2104
  children: [t17, "Clean Failed"]
2185
2105
  });
2186
- $[42] = handleCleanFailed;
2187
- $[43] = t18;
2188
- } else t18 = $[43];
2106
+ $[41] = handleCleanFailed;
2107
+ $[42] = t18;
2108
+ } else t18 = $[42];
2189
2109
  let t19;
2190
- if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
2110
+ if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
2191
2111
  t19 = /* @__PURE__ */ jsx(DropdownMenuSeparator, {});
2192
- $[44] = t19;
2193
- } else t19 = $[44];
2112
+ $[43] = t19;
2113
+ } else t19 = $[43];
2194
2114
  let t20;
2195
- if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
2115
+ if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
2196
2116
  t20 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
2197
- $[45] = t20;
2198
- } else t20 = $[45];
2117
+ $[44] = t20;
2118
+ } else t20 = $[44];
2199
2119
  let t21;
2200
- if ($[46] !== handleDrain) {
2120
+ if ($[45] !== handleDrain) {
2201
2121
  t21 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
2202
2122
  onClick: handleDrain,
2203
2123
  className: "text-destructive",
2204
2124
  children: [t20, "Drain Queue"]
2205
2125
  });
2206
- $[46] = handleDrain;
2207
- $[47] = t21;
2208
- } else t21 = $[47];
2126
+ $[45] = handleDrain;
2127
+ $[46] = t21;
2128
+ } else t21 = $[46];
2209
2129
  let t22;
2210
- if ($[48] !== t16 || $[49] !== t18 || $[50] !== t21) {
2130
+ if ($[47] !== t16 || $[48] !== t18 || $[49] !== t21) {
2211
2131
  t22 = /* @__PURE__ */ jsx(TooltipTrigger, {
2212
2132
  asChild: true,
2213
2133
  children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [t14, /* @__PURE__ */ jsxs(DropdownMenuContent, {
@@ -2221,24 +2141,24 @@ const QueueDetail = memo(() => {
2221
2141
  ]
2222
2142
  })] })
2223
2143
  });
2224
- $[48] = t16;
2225
- $[49] = t18;
2226
- $[50] = t21;
2227
- $[51] = t22;
2228
- } else t22 = $[51];
2144
+ $[47] = t16;
2145
+ $[48] = t18;
2146
+ $[49] = t21;
2147
+ $[50] = t22;
2148
+ } else t22 = $[50];
2229
2149
  let t23;
2230
- if ($[52] === Symbol.for("react.memo_cache_sentinel")) {
2150
+ if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
2231
2151
  t23 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "More actions" }) });
2232
- $[52] = t23;
2233
- } else t23 = $[52];
2152
+ $[51] = t23;
2153
+ } else t23 = $[51];
2234
2154
  let t24;
2235
- if ($[53] !== t22) {
2155
+ if ($[52] !== t22) {
2236
2156
  t24 = /* @__PURE__ */ jsxs(Tooltip, { children: [t22, t23] });
2237
- $[53] = t22;
2238
- $[54] = t24;
2239
- } else t24 = $[54];
2157
+ $[52] = t22;
2158
+ $[53] = t24;
2159
+ } else t24 = $[53];
2240
2160
  let t25;
2241
- if ($[55] !== t12 || $[56] !== t13 || $[57] !== t24) {
2161
+ if ($[54] !== t12 || $[55] !== t13 || $[56] !== t24) {
2242
2162
  t25 = /* @__PURE__ */ jsxs("div", {
2243
2163
  className: "flex items-center gap-2",
2244
2164
  children: [
@@ -2247,161 +2167,161 @@ const QueueDetail = memo(() => {
2247
2167
  t24
2248
2168
  ]
2249
2169
  });
2250
- $[55] = t12;
2251
- $[56] = t13;
2252
- $[57] = t24;
2253
- $[58] = t25;
2254
- } else t25 = $[58];
2170
+ $[54] = t12;
2171
+ $[55] = t13;
2172
+ $[56] = t24;
2173
+ $[57] = t25;
2174
+ } else t25 = $[57];
2255
2175
  let t26;
2256
- if ($[59] !== t25 || $[60] !== t8) {
2176
+ if ($[58] !== t25 || $[59] !== t8) {
2257
2177
  t26 = /* @__PURE__ */ jsxs("div", {
2258
2178
  className: "flex items-center justify-between p-3 border-b border-border",
2259
2179
  children: [t8, t25]
2260
2180
  });
2261
- $[59] = t25;
2262
- $[60] = t8;
2263
- $[61] = t26;
2264
- } else t26 = $[61];
2181
+ $[58] = t25;
2182
+ $[59] = t8;
2183
+ $[60] = t26;
2184
+ } else t26 = $[60];
2265
2185
  let t27;
2266
- if ($[62] !== selectedQueue.stats.waiting) {
2186
+ if ($[61] !== selectedQueue.stats.waiting) {
2267
2187
  t27 = /* @__PURE__ */ jsx("div", {
2268
2188
  className: "text-2xl font-bold text-blue-500",
2269
2189
  children: selectedQueue.stats.waiting
2270
2190
  });
2271
- $[62] = selectedQueue.stats.waiting;
2272
- $[63] = t27;
2273
- } else t27 = $[63];
2191
+ $[61] = selectedQueue.stats.waiting;
2192
+ $[62] = t27;
2193
+ } else t27 = $[62];
2274
2194
  let t28;
2275
- if ($[64] === Symbol.for("react.memo_cache_sentinel")) {
2195
+ if ($[63] === Symbol.for("react.memo_cache_sentinel")) {
2276
2196
  t28 = /* @__PURE__ */ jsx("div", {
2277
2197
  className: "text-xs text-muted-foreground",
2278
2198
  children: "Waiting"
2279
2199
  });
2280
- $[64] = t28;
2281
- } else t28 = $[64];
2200
+ $[63] = t28;
2201
+ } else t28 = $[63];
2282
2202
  let t29;
2283
- if ($[65] !== t27) {
2203
+ if ($[64] !== t27) {
2284
2204
  t29 = /* @__PURE__ */ jsxs("div", { children: [t27, t28] });
2285
- $[65] = t27;
2286
- $[66] = t29;
2287
- } else t29 = $[66];
2205
+ $[64] = t27;
2206
+ $[65] = t29;
2207
+ } else t29 = $[65];
2288
2208
  let t30;
2289
- if ($[67] !== selectedQueue.stats.active) {
2209
+ if ($[66] !== selectedQueue.stats.active) {
2290
2210
  t30 = /* @__PURE__ */ jsx("div", {
2291
2211
  className: "text-2xl font-bold text-yellow-500",
2292
2212
  children: selectedQueue.stats.active
2293
2213
  });
2294
- $[67] = selectedQueue.stats.active;
2295
- $[68] = t30;
2296
- } else t30 = $[68];
2214
+ $[66] = selectedQueue.stats.active;
2215
+ $[67] = t30;
2216
+ } else t30 = $[67];
2297
2217
  let t31;
2298
- if ($[69] === Symbol.for("react.memo_cache_sentinel")) {
2218
+ if ($[68] === Symbol.for("react.memo_cache_sentinel")) {
2299
2219
  t31 = /* @__PURE__ */ jsx("div", {
2300
2220
  className: "text-xs text-muted-foreground",
2301
2221
  children: "Active"
2302
2222
  });
2303
- $[69] = t31;
2304
- } else t31 = $[69];
2223
+ $[68] = t31;
2224
+ } else t31 = $[68];
2305
2225
  let t32;
2306
- if ($[70] !== t30) {
2226
+ if ($[69] !== t30) {
2307
2227
  t32 = /* @__PURE__ */ jsxs("div", { children: [t30, t31] });
2308
- $[70] = t30;
2309
- $[71] = t32;
2310
- } else t32 = $[71];
2228
+ $[69] = t30;
2229
+ $[70] = t32;
2230
+ } else t32 = $[70];
2311
2231
  let t33;
2312
- if ($[72] !== selectedQueue.stats.completed) {
2232
+ if ($[71] !== selectedQueue.stats.completed) {
2313
2233
  t33 = /* @__PURE__ */ jsx("div", {
2314
2234
  className: "text-2xl font-bold text-green-500",
2315
2235
  children: selectedQueue.stats.completed
2316
2236
  });
2317
- $[72] = selectedQueue.stats.completed;
2318
- $[73] = t33;
2319
- } else t33 = $[73];
2237
+ $[71] = selectedQueue.stats.completed;
2238
+ $[72] = t33;
2239
+ } else t33 = $[72];
2320
2240
  let t34;
2321
- if ($[74] === Symbol.for("react.memo_cache_sentinel")) {
2241
+ if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
2322
2242
  t34 = /* @__PURE__ */ jsx("div", {
2323
2243
  className: "text-xs text-muted-foreground",
2324
2244
  children: "Completed"
2325
2245
  });
2326
- $[74] = t34;
2327
- } else t34 = $[74];
2246
+ $[73] = t34;
2247
+ } else t34 = $[73];
2328
2248
  let t35;
2329
- if ($[75] !== t33) {
2249
+ if ($[74] !== t33) {
2330
2250
  t35 = /* @__PURE__ */ jsxs("div", { children: [t33, t34] });
2331
- $[75] = t33;
2332
- $[76] = t35;
2333
- } else t35 = $[76];
2251
+ $[74] = t33;
2252
+ $[75] = t35;
2253
+ } else t35 = $[75];
2334
2254
  let t36;
2335
- if ($[77] !== selectedQueue.stats.failed) {
2255
+ if ($[76] !== selectedQueue.stats.failed) {
2336
2256
  t36 = /* @__PURE__ */ jsx("div", {
2337
2257
  className: "text-2xl font-bold text-destructive",
2338
2258
  children: selectedQueue.stats.failed
2339
2259
  });
2340
- $[77] = selectedQueue.stats.failed;
2341
- $[78] = t36;
2342
- } else t36 = $[78];
2260
+ $[76] = selectedQueue.stats.failed;
2261
+ $[77] = t36;
2262
+ } else t36 = $[77];
2343
2263
  let t37;
2344
- if ($[79] === Symbol.for("react.memo_cache_sentinel")) {
2264
+ if ($[78] === Symbol.for("react.memo_cache_sentinel")) {
2345
2265
  t37 = /* @__PURE__ */ jsx("div", {
2346
2266
  className: "text-xs text-muted-foreground",
2347
2267
  children: "Failed"
2348
2268
  });
2349
- $[79] = t37;
2350
- } else t37 = $[79];
2269
+ $[78] = t37;
2270
+ } else t37 = $[78];
2351
2271
  let t38;
2352
- if ($[80] !== t36) {
2272
+ if ($[79] !== t36) {
2353
2273
  t38 = /* @__PURE__ */ jsxs("div", { children: [t36, t37] });
2354
- $[80] = t36;
2355
- $[81] = t38;
2356
- } else t38 = $[81];
2274
+ $[79] = t36;
2275
+ $[80] = t38;
2276
+ } else t38 = $[80];
2357
2277
  let t39;
2358
- if ($[82] !== selectedQueue.stats.delayed) {
2278
+ if ($[81] !== selectedQueue.stats.delayed) {
2359
2279
  t39 = /* @__PURE__ */ jsx("div", {
2360
2280
  className: "text-2xl font-bold text-purple-500",
2361
2281
  children: selectedQueue.stats.delayed
2362
2282
  });
2363
- $[82] = selectedQueue.stats.delayed;
2364
- $[83] = t39;
2365
- } else t39 = $[83];
2283
+ $[81] = selectedQueue.stats.delayed;
2284
+ $[82] = t39;
2285
+ } else t39 = $[82];
2366
2286
  let t40;
2367
- if ($[84] === Symbol.for("react.memo_cache_sentinel")) {
2287
+ if ($[83] === Symbol.for("react.memo_cache_sentinel")) {
2368
2288
  t40 = /* @__PURE__ */ jsx("div", {
2369
2289
  className: "text-xs text-muted-foreground",
2370
2290
  children: "Delayed"
2371
2291
  });
2372
- $[84] = t40;
2373
- } else t40 = $[84];
2292
+ $[83] = t40;
2293
+ } else t40 = $[83];
2374
2294
  let t41;
2375
- if ($[85] !== t39) {
2295
+ if ($[84] !== t39) {
2376
2296
  t41 = /* @__PURE__ */ jsxs("div", { children: [t39, t40] });
2377
- $[85] = t39;
2378
- $[86] = t41;
2379
- } else t41 = $[86];
2297
+ $[84] = t39;
2298
+ $[85] = t41;
2299
+ } else t41 = $[85];
2380
2300
  let t42;
2381
- if ($[87] !== selectedQueue.stats.paused) {
2301
+ if ($[86] !== selectedQueue.stats.paused) {
2382
2302
  t42 = /* @__PURE__ */ jsx("div", {
2383
2303
  className: "text-2xl font-bold text-muted-foreground",
2384
2304
  children: selectedQueue.stats.paused
2385
2305
  });
2386
- $[87] = selectedQueue.stats.paused;
2387
- $[88] = t42;
2388
- } else t42 = $[88];
2306
+ $[86] = selectedQueue.stats.paused;
2307
+ $[87] = t42;
2308
+ } else t42 = $[87];
2389
2309
  let t43;
2390
- if ($[89] === Symbol.for("react.memo_cache_sentinel")) {
2310
+ if ($[88] === Symbol.for("react.memo_cache_sentinel")) {
2391
2311
  t43 = /* @__PURE__ */ jsx("div", {
2392
2312
  className: "text-xs text-muted-foreground",
2393
2313
  children: "Paused"
2394
2314
  });
2395
- $[89] = t43;
2396
- } else t43 = $[89];
2315
+ $[88] = t43;
2316
+ } else t43 = $[88];
2397
2317
  let t44;
2398
- if ($[90] !== t42) {
2318
+ if ($[89] !== t42) {
2399
2319
  t44 = /* @__PURE__ */ jsxs("div", { children: [t42, t43] });
2400
- $[90] = t42;
2401
- $[91] = t44;
2402
- } else t44 = $[91];
2320
+ $[89] = t42;
2321
+ $[90] = t44;
2322
+ } else t44 = $[90];
2403
2323
  let t45;
2404
- 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) {
2405
2325
  t45 = /* @__PURE__ */ jsx("div", {
2406
2326
  className: "p-3 border-b border-border",
2407
2327
  children: /* @__PURE__ */ jsxs("div", {
@@ -2416,22 +2336,22 @@ const QueueDetail = memo(() => {
2416
2336
  ]
2417
2337
  })
2418
2338
  });
2419
- $[92] = t29;
2420
- $[93] = t32;
2421
- $[94] = t35;
2422
- $[95] = t38;
2423
- $[96] = t41;
2424
- $[97] = t44;
2425
- $[98] = t45;
2426
- } 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];
2427
2347
  let t46;
2428
- if ($[99] !== setSelectedStatus) {
2348
+ if ($[98] !== setSelectedStatus) {
2429
2349
  t46 = (v) => setSelectedStatus(v);
2430
- $[99] = setSelectedStatus;
2431
- $[100] = t46;
2432
- } else t46 = $[100];
2350
+ $[98] = setSelectedStatus;
2351
+ $[99] = t46;
2352
+ } else t46 = $[99];
2433
2353
  let t47;
2434
- if ($[101] !== selectedQueue.stats || $[102] !== selectedStatus) {
2354
+ if ($[100] !== selectedQueue.stats || $[101] !== selectedStatus) {
2435
2355
  t47 = STATUS_TABS.map((tab) => /* @__PURE__ */ jsxs(TabsTrigger, {
2436
2356
  value: tab.value,
2437
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"),
@@ -2440,42 +2360,42 @@ const QueueDetail = memo(() => {
2440
2360
  children: selectedQueue.stats[tab.value]
2441
2361
  })]
2442
2362
  }, tab.value));
2443
- $[101] = selectedQueue.stats;
2444
- $[102] = selectedStatus;
2445
- $[103] = t47;
2446
- } else t47 = $[103];
2363
+ $[100] = selectedQueue.stats;
2364
+ $[101] = selectedStatus;
2365
+ $[102] = t47;
2366
+ } else t47 = $[102];
2447
2367
  let t48;
2448
- if ($[104] !== t47) {
2368
+ if ($[103] !== t47) {
2449
2369
  t48 = /* @__PURE__ */ jsx("div", {
2450
2370
  className: "px-3 pt-2 border-b border-border",
2451
2371
  children: /* @__PURE__ */ jsx(TabsList, { children: t47 })
2452
2372
  });
2453
- $[104] = t47;
2454
- $[105] = t48;
2455
- } else t48 = $[105];
2373
+ $[103] = t47;
2374
+ $[104] = t48;
2375
+ } else t48 = $[104];
2456
2376
  let t49;
2457
- if ($[106] === Symbol.for("react.memo_cache_sentinel")) {
2377
+ if ($[105] === Symbol.for("react.memo_cache_sentinel")) {
2458
2378
  t49 = /* @__PURE__ */ jsx("div", {
2459
2379
  className: "flex-1 overflow-auto",
2460
2380
  children: /* @__PURE__ */ jsx(JobsTable, {})
2461
2381
  });
2462
- $[106] = t49;
2463
- } else t49 = $[106];
2382
+ $[105] = t49;
2383
+ } else t49 = $[105];
2464
2384
  let t50;
2465
- if ($[107] !== selectedStatus || $[108] !== t46 || $[109] !== t48) {
2385
+ if ($[106] !== selectedStatus || $[107] !== t46 || $[108] !== t48) {
2466
2386
  t50 = /* @__PURE__ */ jsxs(Tabs, {
2467
2387
  value: selectedStatus,
2468
2388
  onValueChange: t46,
2469
2389
  className: "flex-1 flex flex-col",
2470
2390
  children: [t48, t49]
2471
2391
  });
2472
- $[107] = selectedStatus;
2473
- $[108] = t46;
2474
- $[109] = t48;
2475
- $[110] = t50;
2476
- } else t50 = $[110];
2392
+ $[106] = selectedStatus;
2393
+ $[107] = t46;
2394
+ $[108] = t48;
2395
+ $[109] = t50;
2396
+ } else t50 = $[109];
2477
2397
  let t51;
2478
- if ($[111] !== t26 || $[112] !== t45 || $[113] !== t50) {
2398
+ if ($[110] !== t26 || $[111] !== t45 || $[112] !== t50) {
2479
2399
  t51 = /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs("div", {
2480
2400
  className: "flex flex-col h-full",
2481
2401
  children: [
@@ -2484,11 +2404,11 @@ const QueueDetail = memo(() => {
2484
2404
  t50
2485
2405
  ]
2486
2406
  }) });
2487
- $[111] = t26;
2488
- $[112] = t45;
2489
- $[113] = t50;
2490
- $[114] = t51;
2491
- } else t51 = $[114];
2407
+ $[110] = t26;
2408
+ $[111] = t45;
2409
+ $[112] = t50;
2410
+ $[113] = t51;
2411
+ } else t51 = $[113];
2492
2412
  return t51;
2493
2413
  });
2494
2414
  QueueDetail.displayName = "QueueDetail";
@@ -2505,50 +2425,46 @@ function _temp3$1(state_1) {
2505
2425
  //#endregion
2506
2426
  //#region src/components/queue-list.tsx
2507
2427
  const QueueItem = memo((t0) => {
2508
- const $ = c(54);
2509
- if ($[0] !== "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c") {
2510
- for (let $i = 0; $i < 54; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
2511
- $[0] = "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c";
2512
- }
2428
+ const $ = c(53);
2513
2429
  const { queue, isSelected, onClick } = t0;
2514
2430
  const totalJobs = queue.stats.waiting + queue.stats.active + queue.stats.delayed + queue.stats.prioritized;
2515
2431
  const hasFailedJobs = queue.stats.failed > 0;
2516
2432
  const t1 = isSelected ? "bg-muted-foreground/10" : "hover:bg-muted/70";
2517
2433
  let t2;
2518
- if ($[1] !== t1) {
2434
+ if ($[0] !== t1) {
2519
2435
  t2 = cn("w-full text-left p-3 transition-colors border-b border-border", t1);
2520
- $[1] = t1;
2521
- $[2] = t2;
2522
- } else t2 = $[2];
2436
+ $[0] = t1;
2437
+ $[1] = t2;
2438
+ } else t2 = $[1];
2523
2439
  let t3;
2524
- if ($[3] !== queue.isDLQ) {
2440
+ if ($[2] !== queue.isDLQ) {
2525
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" });
2526
- $[3] = queue.isDLQ;
2527
- $[4] = t3;
2528
- } else t3 = $[4];
2442
+ $[2] = queue.isDLQ;
2443
+ $[3] = t3;
2444
+ } else t3 = $[3];
2529
2445
  let t4;
2530
- if ($[5] !== queue.displayName) {
2446
+ if ($[4] !== queue.displayName) {
2531
2447
  t4 = /* @__PURE__ */ jsx("span", {
2532
2448
  className: "font-semibold text-sm truncate flex-1",
2533
2449
  children: queue.displayName
2534
2450
  });
2535
- $[5] = queue.displayName;
2536
- $[6] = t4;
2537
- } else t4 = $[6];
2451
+ $[4] = queue.displayName;
2452
+ $[5] = t4;
2453
+ } else t4 = $[5];
2538
2454
  let t5;
2539
- if ($[7] !== queue.isPaused) {
2455
+ if ($[6] !== queue.isPaused) {
2540
2456
  t5 = queue.isPaused && /* @__PURE__ */ jsx(Pause, { className: "w-3 h-3 text-yellow-500" });
2541
- $[7] = queue.isPaused;
2542
- $[8] = t5;
2543
- } else t5 = $[8];
2457
+ $[6] = queue.isPaused;
2458
+ $[7] = t5;
2459
+ } else t5 = $[7];
2544
2460
  let t6;
2545
- if ($[9] !== hasFailedJobs) {
2461
+ if ($[8] !== hasFailedJobs) {
2546
2462
  t6 = hasFailedJobs && /* @__PURE__ */ jsx(AlertTriangle, { className: "w-3 h-3 text-destructive" });
2547
- $[9] = hasFailedJobs;
2548
- $[10] = t6;
2549
- } else t6 = $[10];
2463
+ $[8] = hasFailedJobs;
2464
+ $[9] = t6;
2465
+ } else t6 = $[9];
2550
2466
  let t7;
2551
- if ($[11] !== t3 || $[12] !== t4 || $[13] !== t5 || $[14] !== t6) {
2467
+ if ($[10] !== t3 || $[11] !== t4 || $[12] !== t5 || $[13] !== t6) {
2552
2468
  t7 = /* @__PURE__ */ jsxs("div", {
2553
2469
  className: "flex items-center gap-2 mb-1",
2554
2470
  children: [
@@ -2558,29 +2474,29 @@ const QueueItem = memo((t0) => {
2558
2474
  t6
2559
2475
  ]
2560
2476
  });
2561
- $[11] = t3;
2562
- $[12] = t4;
2563
- $[13] = t5;
2564
- $[14] = t6;
2565
- $[15] = t7;
2566
- } else t7 = $[15];
2477
+ $[10] = t3;
2478
+ $[11] = t4;
2479
+ $[12] = t5;
2480
+ $[13] = t6;
2481
+ $[14] = t7;
2482
+ } else t7 = $[14];
2567
2483
  let t8;
2568
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
2484
+ if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
2569
2485
  t8 = /* @__PURE__ */ jsx("span", {
2570
2486
  className: "text-muted-foreground",
2571
2487
  children: "Wait"
2572
2488
  });
2573
- $[16] = t8;
2574
- } else t8 = $[16];
2489
+ $[15] = t8;
2490
+ } else t8 = $[15];
2575
2491
  const t9 = queue.stats.waiting > 0 && "text-blue-500";
2576
2492
  let t10;
2577
- if ($[17] !== t9) {
2493
+ if ($[16] !== t9) {
2578
2494
  t10 = cn("font-mono", t9);
2579
- $[17] = t9;
2580
- $[18] = t10;
2581
- } else t10 = $[18];
2495
+ $[16] = t9;
2496
+ $[17] = t10;
2497
+ } else t10 = $[17];
2582
2498
  let t11;
2583
- if ($[19] !== queue.stats.waiting || $[20] !== t10) {
2499
+ if ($[18] !== queue.stats.waiting || $[19] !== t10) {
2584
2500
  t11 = /* @__PURE__ */ jsxs("div", {
2585
2501
  className: "flex flex-col",
2586
2502
  children: [t8, /* @__PURE__ */ jsx("span", {
@@ -2588,27 +2504,27 @@ const QueueItem = memo((t0) => {
2588
2504
  children: queue.stats.waiting
2589
2505
  })]
2590
2506
  });
2591
- $[19] = queue.stats.waiting;
2592
- $[20] = t10;
2593
- $[21] = t11;
2594
- } else t11 = $[21];
2507
+ $[18] = queue.stats.waiting;
2508
+ $[19] = t10;
2509
+ $[20] = t11;
2510
+ } else t11 = $[20];
2595
2511
  let t12;
2596
- if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
2512
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
2597
2513
  t12 = /* @__PURE__ */ jsx("span", {
2598
2514
  className: "text-muted-foreground",
2599
2515
  children: "Active"
2600
2516
  });
2601
- $[22] = t12;
2602
- } else t12 = $[22];
2517
+ $[21] = t12;
2518
+ } else t12 = $[21];
2603
2519
  const t13 = queue.stats.active > 0 && "text-yellow-500";
2604
2520
  let t14;
2605
- if ($[23] !== t13) {
2521
+ if ($[22] !== t13) {
2606
2522
  t14 = cn("font-mono", t13);
2607
- $[23] = t13;
2608
- $[24] = t14;
2609
- } else t14 = $[24];
2523
+ $[22] = t13;
2524
+ $[23] = t14;
2525
+ } else t14 = $[23];
2610
2526
  let t15;
2611
- if ($[25] !== queue.stats.active || $[26] !== t14) {
2527
+ if ($[24] !== queue.stats.active || $[25] !== t14) {
2612
2528
  t15 = /* @__PURE__ */ jsxs("div", {
2613
2529
  className: "flex flex-col",
2614
2530
  children: [t12, /* @__PURE__ */ jsx("span", {
@@ -2616,27 +2532,27 @@ const QueueItem = memo((t0) => {
2616
2532
  children: queue.stats.active
2617
2533
  })]
2618
2534
  });
2619
- $[25] = queue.stats.active;
2620
- $[26] = t14;
2621
- $[27] = t15;
2622
- } else t15 = $[27];
2535
+ $[24] = queue.stats.active;
2536
+ $[25] = t14;
2537
+ $[26] = t15;
2538
+ } else t15 = $[26];
2623
2539
  let t16;
2624
- if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
2540
+ if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
2625
2541
  t16 = /* @__PURE__ */ jsx("span", {
2626
2542
  className: "text-muted-foreground",
2627
2543
  children: "Done"
2628
2544
  });
2629
- $[28] = t16;
2630
- } else t16 = $[28];
2545
+ $[27] = t16;
2546
+ } else t16 = $[27];
2631
2547
  const t17 = queue.stats.completed > 0 && "text-green-500";
2632
2548
  let t18;
2633
- if ($[29] !== t17) {
2549
+ if ($[28] !== t17) {
2634
2550
  t18 = cn("font-mono", t17);
2635
- $[29] = t17;
2636
- $[30] = t18;
2637
- } else t18 = $[30];
2551
+ $[28] = t17;
2552
+ $[29] = t18;
2553
+ } else t18 = $[29];
2638
2554
  let t19;
2639
- if ($[31] !== queue.stats.completed || $[32] !== t18) {
2555
+ if ($[30] !== queue.stats.completed || $[31] !== t18) {
2640
2556
  t19 = /* @__PURE__ */ jsxs("div", {
2641
2557
  className: "flex flex-col",
2642
2558
  children: [t16, /* @__PURE__ */ jsx("span", {
@@ -2644,27 +2560,27 @@ const QueueItem = memo((t0) => {
2644
2560
  children: queue.stats.completed
2645
2561
  })]
2646
2562
  });
2647
- $[31] = queue.stats.completed;
2648
- $[32] = t18;
2649
- $[33] = t19;
2650
- } else t19 = $[33];
2563
+ $[30] = queue.stats.completed;
2564
+ $[31] = t18;
2565
+ $[32] = t19;
2566
+ } else t19 = $[32];
2651
2567
  let t20;
2652
- if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
2568
+ if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
2653
2569
  t20 = /* @__PURE__ */ jsx("span", {
2654
2570
  className: "text-muted-foreground",
2655
2571
  children: "Failed"
2656
2572
  });
2657
- $[34] = t20;
2658
- } else t20 = $[34];
2573
+ $[33] = t20;
2574
+ } else t20 = $[33];
2659
2575
  const t21 = queue.stats.failed > 0 && "text-destructive";
2660
2576
  let t22;
2661
- if ($[35] !== t21) {
2577
+ if ($[34] !== t21) {
2662
2578
  t22 = cn("font-mono", t21);
2663
- $[35] = t21;
2664
- $[36] = t22;
2665
- } else t22 = $[36];
2579
+ $[34] = t21;
2580
+ $[35] = t22;
2581
+ } else t22 = $[35];
2666
2582
  let t23;
2667
- if ($[37] !== queue.stats.failed || $[38] !== t22) {
2583
+ if ($[36] !== queue.stats.failed || $[37] !== t22) {
2668
2584
  t23 = /* @__PURE__ */ jsxs("div", {
2669
2585
  className: "flex flex-col",
2670
2586
  children: [t20, /* @__PURE__ */ jsx("span", {
@@ -2672,12 +2588,12 @@ const QueueItem = memo((t0) => {
2672
2588
  children: queue.stats.failed
2673
2589
  })]
2674
2590
  });
2675
- $[37] = queue.stats.failed;
2676
- $[38] = t22;
2677
- $[39] = t23;
2678
- } else t23 = $[39];
2591
+ $[36] = queue.stats.failed;
2592
+ $[37] = t22;
2593
+ $[38] = t23;
2594
+ } else t23 = $[38];
2679
2595
  let t24;
2680
- if ($[40] !== t11 || $[41] !== t15 || $[42] !== t19 || $[43] !== t23) {
2596
+ if ($[39] !== t11 || $[40] !== t15 || $[41] !== t19 || $[42] !== t23) {
2681
2597
  t24 = /* @__PURE__ */ jsxs("div", {
2682
2598
  className: "grid grid-cols-4 gap-1 text-xs",
2683
2599
  children: [
@@ -2687,14 +2603,14 @@ const QueueItem = memo((t0) => {
2687
2603
  t23
2688
2604
  ]
2689
2605
  });
2690
- $[40] = t11;
2691
- $[41] = t15;
2692
- $[42] = t19;
2693
- $[43] = t23;
2694
- $[44] = t24;
2695
- } else t24 = $[44];
2606
+ $[39] = t11;
2607
+ $[40] = t15;
2608
+ $[41] = t19;
2609
+ $[42] = t23;
2610
+ $[43] = t24;
2611
+ } else t24 = $[43];
2696
2612
  let t25;
2697
- if ($[45] !== queue.stats.delayed || $[46] !== totalJobs) {
2613
+ if ($[44] !== queue.stats.delayed || $[45] !== totalJobs) {
2698
2614
  t25 = (queue.stats.delayed > 0 || totalJobs > 0) && /* @__PURE__ */ jsxs("div", {
2699
2615
  className: "flex gap-2 mt-1 text-xs text-muted-foreground",
2700
2616
  children: [queue.stats.delayed > 0 && /* @__PURE__ */ jsxs("span", { children: [queue.stats.delayed, " delayed"] }), totalJobs > 0 && /* @__PURE__ */ jsxs("span", {
@@ -2702,12 +2618,12 @@ const QueueItem = memo((t0) => {
2702
2618
  children: [totalJobs, " pending"]
2703
2619
  })]
2704
2620
  });
2705
- $[45] = queue.stats.delayed;
2706
- $[46] = totalJobs;
2707
- $[47] = t25;
2708
- } else t25 = $[47];
2621
+ $[44] = queue.stats.delayed;
2622
+ $[45] = totalJobs;
2623
+ $[46] = t25;
2624
+ } else t25 = $[46];
2709
2625
  let t26;
2710
- if ($[48] !== onClick || $[49] !== t2 || $[50] !== t24 || $[51] !== t25 || $[52] !== t7) {
2626
+ if ($[47] !== onClick || $[48] !== t2 || $[49] !== t24 || $[50] !== t25 || $[51] !== t7) {
2711
2627
  t26 = /* @__PURE__ */ jsxs("button", {
2712
2628
  type: "button",
2713
2629
  onClick,
@@ -2718,22 +2634,18 @@ const QueueItem = memo((t0) => {
2718
2634
  t25
2719
2635
  ]
2720
2636
  });
2721
- $[48] = onClick;
2722
- $[49] = t2;
2723
- $[50] = t24;
2724
- $[51] = t25;
2725
- $[52] = t7;
2726
- $[53] = t26;
2727
- } 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];
2728
2644
  return t26;
2729
2645
  });
2730
2646
  QueueItem.displayName = "QueueItem";
2731
2647
  const QueueList = memo(() => {
2732
- const $ = c(38);
2733
- if ($[0] !== "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c") {
2734
- for (let $i = 0; $i < 38; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
2735
- $[0] = "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c";
2736
- }
2648
+ const $ = c(37);
2737
2649
  const queues = useBullMQStore(_temp$1);
2738
2650
  const selectedQueue = useBullMQStore(_temp2$1);
2739
2651
  const setSelectedQueue = useBullMQStore(_temp3);
@@ -2746,38 +2658,38 @@ const QueueList = memo(() => {
2746
2658
  break bb0;
2747
2659
  }
2748
2660
  let t1$1;
2749
- if ($[1] !== queues || $[2] !== searchQuery) {
2661
+ if ($[0] !== queues || $[1] !== searchQuery) {
2750
2662
  const query = searchQuery.toLowerCase();
2751
2663
  t1$1 = queues.filter((q) => q.name.toLowerCase().includes(query) || q.displayName.toLowerCase().includes(query));
2752
- $[1] = queues;
2753
- $[2] = searchQuery;
2754
- $[3] = t1$1;
2755
- } else t1$1 = $[3];
2664
+ $[0] = queues;
2665
+ $[1] = searchQuery;
2666
+ $[2] = t1$1;
2667
+ } else t1$1 = $[2];
2756
2668
  t0 = t1$1;
2757
2669
  }
2758
2670
  const filteredQueues = t0;
2759
2671
  let t1;
2760
- if ($[4] !== filteredQueues) {
2672
+ if ($[3] !== filteredQueues) {
2761
2673
  t1 = filteredQueues.filter(_temp6);
2762
- $[4] = filteredQueues;
2763
- $[5] = t1;
2764
- } else t1 = $[5];
2674
+ $[3] = filteredQueues;
2675
+ $[4] = t1;
2676
+ } else t1 = $[4];
2765
2677
  const regularQueues = t1;
2766
2678
  let t2;
2767
- if ($[6] !== filteredQueues) {
2679
+ if ($[5] !== filteredQueues) {
2768
2680
  t2 = filteredQueues.filter(_temp7);
2769
- $[6] = filteredQueues;
2770
- $[7] = t2;
2771
- } else t2 = $[7];
2681
+ $[5] = filteredQueues;
2682
+ $[6] = t2;
2683
+ } else t2 = $[6];
2772
2684
  const dlqQueues = t2;
2773
2685
  let t3;
2774
- if ($[8] !== setSearchQuery) {
2686
+ if ($[7] !== setSearchQuery) {
2775
2687
  t3 = (e) => setSearchQuery(e.target.value);
2776
- $[8] = setSearchQuery;
2777
- $[9] = t3;
2778
- } else t3 = $[9];
2688
+ $[7] = setSearchQuery;
2689
+ $[8] = t3;
2690
+ } else t3 = $[8];
2779
2691
  let t4;
2780
- if ($[10] !== searchQuery || $[11] !== t3) {
2692
+ if ($[9] !== searchQuery || $[10] !== t3) {
2781
2693
  t4 = /* @__PURE__ */ jsx(Input, {
2782
2694
  variant: "shade",
2783
2695
  value: searchQuery,
@@ -2785,27 +2697,27 @@ const QueueList = memo(() => {
2785
2697
  className: "px-9! font-medium text-sm",
2786
2698
  placeholder: "Search queues..."
2787
2699
  });
2788
- $[10] = searchQuery;
2789
- $[11] = t3;
2790
- $[12] = t4;
2791
- } else t4 = $[12];
2700
+ $[9] = searchQuery;
2701
+ $[10] = t3;
2702
+ $[11] = t4;
2703
+ } else t4 = $[11];
2792
2704
  let t5;
2793
- if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
2705
+ if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
2794
2706
  t5 = /* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" });
2795
- $[13] = t5;
2796
- } else t5 = $[13];
2707
+ $[12] = t5;
2708
+ } else t5 = $[12];
2797
2709
  let t6;
2798
- if ($[14] !== searchQuery || $[15] !== setSearchQuery) {
2710
+ if ($[13] !== searchQuery || $[14] !== setSearchQuery) {
2799
2711
  t6 = searchQuery && /* @__PURE__ */ jsx(X, {
2800
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",
2801
2713
  onClick: () => setSearchQuery("")
2802
2714
  });
2803
- $[14] = searchQuery;
2804
- $[15] = setSearchQuery;
2805
- $[16] = t6;
2806
- } else t6 = $[16];
2715
+ $[13] = searchQuery;
2716
+ $[14] = setSearchQuery;
2717
+ $[15] = t6;
2718
+ } else t6 = $[15];
2807
2719
  let t7;
2808
- if ($[17] !== t4 || $[18] !== t6) {
2720
+ if ($[16] !== t4 || $[17] !== t6) {
2809
2721
  t7 = /* @__PURE__ */ jsx("div", {
2810
2722
  className: "p-2 border-b border-border",
2811
2723
  children: /* @__PURE__ */ jsxs("div", {
@@ -2817,12 +2729,12 @@ const QueueList = memo(() => {
2817
2729
  ]
2818
2730
  })
2819
2731
  });
2820
- $[17] = t4;
2821
- $[18] = t6;
2822
- $[19] = t7;
2823
- } else t7 = $[19];
2732
+ $[16] = t4;
2733
+ $[17] = t6;
2734
+ $[18] = t7;
2735
+ } else t7 = $[18];
2824
2736
  let t8;
2825
- if ($[20] !== regularQueues || $[21] !== selectedQueue?.name || $[22] !== setSelectedQueue) {
2737
+ if ($[19] !== regularQueues || $[20] !== selectedQueue?.name || $[21] !== setSelectedQueue) {
2826
2738
  t8 = regularQueues.length > 0 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
2827
2739
  className: "px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wider bg-muted/30",
2828
2740
  children: [
@@ -2835,13 +2747,13 @@ const QueueList = memo(() => {
2835
2747
  isSelected: selectedQueue?.name === queue.name,
2836
2748
  onClick: () => setSelectedQueue(queue)
2837
2749
  }, queue.name))] });
2838
- $[20] = regularQueues;
2839
- $[21] = selectedQueue?.name;
2840
- $[22] = setSelectedQueue;
2841
- $[23] = t8;
2842
- } else t8 = $[23];
2750
+ $[19] = regularQueues;
2751
+ $[20] = selectedQueue?.name;
2752
+ $[21] = setSelectedQueue;
2753
+ $[22] = t8;
2754
+ } else t8 = $[22];
2843
2755
  let t9;
2844
- if ($[24] !== dlqQueues || $[25] !== selectedQueue?.name || $[26] !== setSelectedQueue) {
2756
+ if ($[23] !== dlqQueues || $[24] !== selectedQueue?.name || $[25] !== setSelectedQueue) {
2845
2757
  t9 = dlqQueues.length > 0 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
2846
2758
  className: "px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wider bg-destructive/10",
2847
2759
  children: [
@@ -2854,23 +2766,23 @@ const QueueList = memo(() => {
2854
2766
  isSelected: selectedQueue?.name === queue_0.name,
2855
2767
  onClick: () => setSelectedQueue(queue_0)
2856
2768
  }, queue_0.name))] });
2857
- $[24] = dlqQueues;
2858
- $[25] = selectedQueue?.name;
2859
- $[26] = setSelectedQueue;
2860
- $[27] = t9;
2861
- } else t9 = $[27];
2769
+ $[23] = dlqQueues;
2770
+ $[24] = selectedQueue?.name;
2771
+ $[25] = setSelectedQueue;
2772
+ $[26] = t9;
2773
+ } else t9 = $[26];
2862
2774
  let t10;
2863
- if ($[28] !== filteredQueues.length || $[29] !== searchQuery) {
2775
+ if ($[27] !== filteredQueues.length || $[28] !== searchQuery) {
2864
2776
  t10 = filteredQueues.length === 0 && /* @__PURE__ */ jsx("div", {
2865
2777
  className: "p-4 text-center text-muted-foreground text-sm",
2866
2778
  children: searchQuery ? "No queues match your search" : "No queues found"
2867
2779
  });
2868
- $[28] = filteredQueues.length;
2869
- $[29] = searchQuery;
2870
- $[30] = t10;
2871
- } else t10 = $[30];
2780
+ $[27] = filteredQueues.length;
2781
+ $[28] = searchQuery;
2782
+ $[29] = t10;
2783
+ } else t10 = $[29];
2872
2784
  let t11;
2873
- if ($[31] !== t10 || $[32] !== t8 || $[33] !== t9) {
2785
+ if ($[30] !== t10 || $[31] !== t8 || $[32] !== t9) {
2874
2786
  t11 = /* @__PURE__ */ jsxs("div", {
2875
2787
  className: "flex-1 overflow-auto",
2876
2788
  children: [
@@ -2879,21 +2791,21 @@ const QueueList = memo(() => {
2879
2791
  t10
2880
2792
  ]
2881
2793
  });
2882
- $[31] = t10;
2883
- $[32] = t8;
2884
- $[33] = t9;
2885
- $[34] = t11;
2886
- } else t11 = $[34];
2794
+ $[30] = t10;
2795
+ $[31] = t8;
2796
+ $[32] = t9;
2797
+ $[33] = t11;
2798
+ } else t11 = $[33];
2887
2799
  let t12;
2888
- if ($[35] !== t11 || $[36] !== t7) {
2800
+ if ($[34] !== t11 || $[35] !== t7) {
2889
2801
  t12 = /* @__PURE__ */ jsxs("div", {
2890
2802
  className: "flex flex-col h-full",
2891
2803
  children: [t7, t11]
2892
2804
  });
2893
- $[35] = t11;
2894
- $[36] = t7;
2895
- $[37] = t12;
2896
- } else t12 = $[37];
2805
+ $[34] = t11;
2806
+ $[35] = t7;
2807
+ $[36] = t12;
2808
+ } else t12 = $[36];
2897
2809
  return t12;
2898
2810
  });
2899
2811
  QueueList.displayName = "QueueList";
@@ -2922,17 +2834,13 @@ function _temp7(q_1) {
2922
2834
  //#endregion
2923
2835
  //#region src/components/queues-page.tsx
2924
2836
  const QueuesPageContent = memo(() => {
2925
- const $ = c(12);
2926
- if ($[0] !== "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492") {
2927
- for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
2928
- $[0] = "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492";
2929
- }
2837
+ const $ = c(11);
2930
2838
  const selectedQueue = useBullMQStore(_temp);
2931
2839
  const updateSelectedQueueStats = useBullMQStore(_temp2);
2932
2840
  const { queues } = useQueues();
2933
2841
  let t0;
2934
2842
  let t1;
2935
- if ($[1] !== queues || $[2] !== selectedQueue || $[3] !== updateSelectedQueueStats) {
2843
+ if ($[0] !== queues || $[1] !== selectedQueue || $[2] !== updateSelectedQueueStats) {
2936
2844
  t0 = () => {
2937
2845
  if (selectedQueue) {
2938
2846
  const updatedQueue = queues.find((q) => q.name === selectedQueue.name);
@@ -2944,40 +2852,40 @@ const QueuesPageContent = memo(() => {
2944
2852
  selectedQueue,
2945
2853
  updateSelectedQueueStats
2946
2854
  ];
2947
- $[1] = queues;
2948
- $[2] = selectedQueue;
2949
- $[3] = updateSelectedQueueStats;
2950
- $[4] = t0;
2951
- $[5] = t1;
2855
+ $[0] = queues;
2856
+ $[1] = selectedQueue;
2857
+ $[2] = updateSelectedQueueStats;
2858
+ $[3] = t0;
2859
+ $[4] = t1;
2952
2860
  } else {
2953
- t0 = $[4];
2954
- t1 = $[5];
2861
+ t0 = $[3];
2862
+ t1 = $[4];
2955
2863
  }
2956
2864
  useEffect(t0, t1);
2957
2865
  let t2;
2958
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
2866
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
2959
2867
  t2 = /* @__PURE__ */ jsx("div", {
2960
2868
  className: "border-r border-border overflow-hidden",
2961
2869
  children: /* @__PURE__ */ jsx(QueueList, {})
2962
2870
  });
2963
- $[6] = t2;
2964
- } else t2 = $[6];
2871
+ $[5] = t2;
2872
+ } else t2 = $[5];
2965
2873
  let t3;
2966
- if ($[7] !== selectedQueue?.isDLQ) {
2874
+ if ($[6] !== selectedQueue?.isDLQ) {
2967
2875
  t3 = /* @__PURE__ */ jsx("div", {
2968
2876
  className: "overflow-hidden",
2969
2877
  children: selectedQueue?.isDLQ ? /* @__PURE__ */ jsx(DLQPanel, {}) : /* @__PURE__ */ jsx(QueueDetail, {})
2970
2878
  });
2971
- $[7] = selectedQueue?.isDLQ;
2972
- $[8] = t3;
2973
- } else t3 = $[8];
2879
+ $[6] = selectedQueue?.isDLQ;
2880
+ $[7] = t3;
2881
+ } else t3 = $[7];
2974
2882
  let t4;
2975
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
2883
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
2976
2884
  t4 = /* @__PURE__ */ jsx(JobDetail, {});
2977
- $[9] = t4;
2978
- } else t4 = $[9];
2885
+ $[8] = t4;
2886
+ } else t4 = $[8];
2979
2887
  let t5;
2980
- if ($[10] !== t3) {
2888
+ if ($[9] !== t3) {
2981
2889
  t5 = /* @__PURE__ */ jsxs("div", {
2982
2890
  className: "grid grid-cols-[300px_1fr] h-full overflow-hidden",
2983
2891
  children: [
@@ -2986,23 +2894,19 @@ const QueuesPageContent = memo(() => {
2986
2894
  t4
2987
2895
  ]
2988
2896
  });
2989
- $[10] = t3;
2990
- $[11] = t5;
2991
- } else t5 = $[11];
2897
+ $[9] = t3;
2898
+ $[10] = t5;
2899
+ } else t5 = $[10];
2992
2900
  return t5;
2993
2901
  });
2994
2902
  QueuesPageContent.displayName = "QueuesPageContent";
2995
2903
  const QueuesPage = memo(() => {
2996
- const $ = c(2);
2997
- if ($[0] !== "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492") {
2998
- for (let $i = 0; $i < 2; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
2999
- $[0] = "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492";
3000
- }
2904
+ const $ = c(1);
3001
2905
  let t0;
3002
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
2906
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
3003
2907
  t0 = /* @__PURE__ */ jsx(QueryProvider, { children: /* @__PURE__ */ jsx(QueuesPageContent, {}) });
3004
- $[1] = t0;
3005
- } else t0 = $[1];
2908
+ $[0] = t0;
2909
+ } else t0 = $[0];
3006
2910
  return t0;
3007
2911
  });
3008
2912
  QueuesPage.displayName = "QueuesPage";