@kedem/okdb 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +1 -1
  2. package/bin/okdb.js +1 -1
  3. package/okdb-data/default/data.mdb +0 -0
  4. package/okdb-data/default/lock.mdb +0 -0
  5. package/okdb-data/~log/data.mdb +0 -0
  6. package/okdb-data/~log/lock.mdb +0 -0
  7. package/okdb-data/~system/data.mdb +0 -0
  8. package/okdb-data/~system/lock.mdb +0 -0
  9. package/okdb.js +1 -1
  10. package/package.json +1 -1
  11. package/public/admin-app.js +1 -1
  12. package/public/components/admin-route-host.ok.js +1 -1
  13. package/public/components/env-picker.ok.js +1 -1
  14. package/public/components/field-path-input.ok.js +1 -1
  15. package/public/components/geo-map.ok.js +1 -1
  16. package/public/components/ok-cron-input.ok.js +1 -1
  17. package/public/components/ok-dropzone.ok.js +1 -1
  18. package/public/components/ok-js-input.ok.js +1 -1
  19. package/public/components/ok-json-input.ok.js +1 -1
  20. package/public/components/ok-text-monaco-input.ok.js +1 -1
  21. package/public/components/theme-toggle.ok.js +1 -1
  22. package/public/login-app.js +1 -1
  23. package/public/modules/ok.js +1 -1
  24. package/public/sections/api/parts/api-endpoint.ok.js +1 -1
  25. package/public/sections/auth/modals/create-token-modal.ok.js +1 -1
  26. package/public/sections/auth/modals/edit-token-modal.ok.js +1 -1
  27. package/public/sections/auth/modals/perm-info-popover.ok.js +1 -1
  28. package/public/sections/auth/parts/token-detail.ok.js +1 -1
  29. package/public/sections/auth/parts/token-list.ok.js +1 -1
  30. package/public/sections/db/modals/add-item-modal.ok.js +1 -1
  31. package/public/sections/db/modals/create-env-modal.ok.js +1 -1
  32. package/public/sections/db/modals/create-fts-modal.ok.js +1 -1
  33. package/public/sections/db/modals/create-index-modal.ok.js +1 -1
  34. package/public/sections/db/modals/create-pipeline-modal.ok.js +1 -1
  35. package/public/sections/db/modals/demo-env-modal.ok.js +1 -1
  36. package/public/sections/db/modals/remove-env-modal.ok.js +1 -1
  37. package/public/sections/db/modals/schema-edit-modal.ok.js +1 -1
  38. package/public/sections/db/parts/db-overview.ok.js +1 -1
  39. package/public/sections/db/parts/db-pipelines-panel.ok.js +1 -1
  40. package/public/sections/db/parts/edit-row.ok.js +1 -1
  41. package/public/sections/db/parts/tm-timeline.ok.js +1 -1
  42. package/public/sections/db/parts/type-changelog.ok.js +1 -1
  43. package/public/sections/db/parts/type-list.ok.js +1 -1
  44. package/public/sections/db/parts/type-pipelines-tab.ok.js +1 -1
  45. package/public/sections/db/parts/type-schema-tab.ok.js +1 -1
  46. package/public/sections/db/parts/type-viewer.ok.js +1 -1
  47. package/public/sections/db/parts/type-violations-tab.ok.js +1 -1
  48. package/public/sections/embeddings/modals/register-model-modal.ok.js +1 -1
  49. package/public/sections/embeddings/parts/embed-create-panel.ok.js +1 -1
  50. package/public/sections/embeddings/parts/embed-embedder-panel.ok.js +1 -1
  51. package/public/sections/embeddings/parts/embed-engine-declaration-editor.ok.js +1 -1
  52. package/public/sections/embeddings/parts/embed-engine-list.ok.js +1 -1
  53. package/public/sections/embeddings/parts/embed-indexer-panel.ok.js +1 -1
  54. package/public/sections/embeddings/parts/embed-lifecycle-bar.ok.js +1 -1
  55. package/public/sections/embeddings/parts/embed-model-catalog.ok.js +1 -1
  56. package/public/sections/embeddings/parts/embed-overview.ok.js +1 -1
  57. package/public/sections/embeddings/parts/embed-search-panel.ok.js +1 -1
  58. package/public/sections/embeddings/parts/embed-worker-panel.ok.js +1 -1
  59. package/public/sections/embeddings/parts/embeddings-engine-panel.ok.js +1 -1
  60. package/public/sections/embeddings/parts/engines-overview.ok.js +1 -1
  61. package/public/sections/embeddings/parts/pipeline-create-panel.ok.js +1 -1
  62. package/public/sections/engines/engine-panel-shared-style.js +1 -1
  63. package/public/sections/engines/engine-ui-utils.js +1 -1
  64. package/public/sections/engines/modals/engine-modal.ok.js +1 -1
  65. package/public/sections/engines/parts/engine-declaration-editor.ok.js +1 -1
  66. package/public/sections/engines/parts/engine-lifecycle-actions.ok.js +1 -1
  67. package/public/sections/engines/parts/engine-panel-shell.ok.js +1 -1
  68. package/public/sections/engines/parts/engine-resource-card.ok.js +1 -1
  69. package/public/sections/engines/parts/engine-row-item.ok.js +1 -1
  70. package/public/sections/engines/parts/generic-engine-panel.ok.js +1 -1
  71. package/public/sections/files/parts/files-blob-status.ok.js +1 -1
  72. package/public/sections/files/parts/files-collection-list.ok.js +1 -1
  73. package/public/sections/files/parts/files-collection-panel.ok.js +1 -1
  74. package/public/sections/files/parts/files-file-list.ok.js +1 -1
  75. package/public/sections/files/parts/files-overview.ok.js +1 -1
  76. package/public/sections/files/parts/files-path-browser.ok.js +1 -1
  77. package/public/sections/files/parts/files-upload-panel.ok.js +1 -1
  78. package/public/sections/functions/modals/function-modal.ok.js +1 -1
  79. package/public/sections/functions/parts/function-detail.ok.js +1 -1
  80. package/public/sections/functions/parts/function-logs.ok.js +1 -1
  81. package/public/sections/functions/parts/function-runner.ok.js +1 -1
  82. package/public/sections/functions/parts/functions-list.ok.js +1 -1
  83. package/public/sections/license/parts/license-panel.ok.js +1 -1
  84. package/public/sections/queue/modals/create-bucket-modal.ok.js +1 -1
  85. package/public/sections/queue/modals/edit-bucket-modal.ok.js +1 -1
  86. package/public/sections/queue/modals/edit-job-modal.ok.js +1 -1
  87. package/public/sections/queue/modals/enqueue-job-modal.ok.js +1 -1
  88. package/public/sections/queue/modals/job-type-modal.ok.js +1 -1
  89. package/public/sections/queue/parts/ok-job-form.ok.js +1 -1
  90. package/public/sections/queue/parts/queue-buckets.ok.js +1 -1
  91. package/public/sections/queue/parts/queue-job-types.ok.js +1 -1
  92. package/public/sections/queue/parts/queue-jobs.ok.js +1 -1
  93. package/public/sections/queue/parts/queue-types.ok.js +1 -1
  94. package/public/sections/queue/parts/queue-workers.ok.js +1 -1
  95. package/public/sections/sync/parts/sync-node-detail.ok.js +1 -1
  96. package/public/sections/sync/parts/sync-retention.ok.js +1 -1
  97. package/public/sections/sync/parts/sync-topology.ok.js +1 -1
  98. package/public/sections/system/modals/data-ops-modal.ok.js +1 -1
  99. package/public/sections/system/parts/system-api-panel.ok.js +1 -1
  100. package/public/sections/system/parts/system-auth-panel.ok.js +1 -1
  101. package/public/sections/system/parts/system-log-history.ok.js +1 -1
  102. package/public/sections/system/parts/system-log.ok.js +1 -1
  103. package/public/sections/system/parts/system-status.ok.js +1 -1
  104. package/public/sections/system/parts/system-sync-panel.ok.js +1 -1
  105. package/public/sections/views/modals/create-view-modal.ok.js +1 -1
  106. package/public/sections/views/parts/view-detail.ok.js +1 -1
  107. package/public/sections/views/parts/views-list.ok.js +1 -1
  108. package/public/sections/views/parts/views-overview.ok.js +1 -1
  109. package/public/setup-app.js +1 -1
  110. package/public/stores/auth-store.js +1 -1
  111. package/public/stores/events-store.js +1 -1
  112. package/public/stores/functions-store.js +1 -1
  113. package/public/stores/okdb-store.js +1 -1
  114. package/public/stores/theme-store.js +1 -1
  115. package/public/util/permissions.js +1 -1
  116. package/public/util/sift-schema.js +1 -1
  117. package/public/view-models/type-query-vm.js +1 -1
@@ -1 +1 @@
1
- function _0x268e(_0x1c74be,_0x42737e){_0x1c74be=_0x1c74be-0x14a;const _0x178311=_0x1783();let _0x268e95=_0x178311[_0x1c74be];return _0x268e95;}const _0x494219=_0x268e;(function(_0x3931b4,_0x30bc80){const _0x43a73e=_0x268e,_0x183017=_0x3931b4();while(!![]){try{const _0x823819=parseInt(_0x43a73e(0x14e))/0x1*(-parseInt(_0x43a73e(0x17c))/0x2)+-parseInt(_0x43a73e(0x14d))/0x3+parseInt(_0x43a73e(0x175))/0x4+parseInt(_0x43a73e(0x165))/0x5*(-parseInt(_0x43a73e(0x17b))/0x6)+-parseInt(_0x43a73e(0x14a))/0x7*(-parseInt(_0x43a73e(0x173))/0x8)+-parseInt(_0x43a73e(0x181))/0x9+parseInt(_0x43a73e(0x168))/0xa;if(_0x823819===_0x30bc80)break;else _0x183017['push'](_0x183017['shift']());}catch(_0x39fd13){_0x183017['push'](_0x183017['shift']());}}}(_0x1783,0xea7e0));import _0x22d5c2 from'../../../stores/okdb-store.js';import _0x170c6d from'../modals/job-type-modal.ok.js';function _0x1783(){const _0x540464=['queue-job-types\x20load\x20error','11666925kZsnLz','message','Draining','max_concurrency','\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:16px;\x20padding:16px\x200;\x22>\x0a\x0a\x20\x20<!--\x20header\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22font-size:14px;\x20font-weight:600;\x20flex:1;\x22>Registered\x20Job\x20Types</div>\x0a\x20\x20\x20\x20<button\x20@click=\x22load\x22\x20:disabled=\x22busy\x22\x20style=\x22opacity:.6;\x20font-size:11px;\x20padding:2px\x208px;\x22>↻</button>\x0a\x20\x20\x20\x20<button\x20@click=\x22openCreate()\x22\x20style=\x22font-size:12px;\x20padding:4px\x2012px;\x22>+\x20Register\x20type</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20error\x20state\x20-->\x0a\x20\x20<if\x20:=\x22loadError\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22color:#ef4444;\x20font-size:12px;\x20padding:8px\x2012px;\x20border:1px\x20solid\x20#ef4444;\x20border-radius:6px;\x20background:color-mix(in\x20srgb,\x20#ef4444\x208%,\x20transparent);\x22>\x0a\x20\x20\x20\x20\x20\x20Failed\x20to\x20load\x20job\x20types:\x20{{\x20loadError\x20}}\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<!--\x20empty\x20state\x20-->\x0a\x20\x20<if\x20:=\x22!busy\x20&&\x20!loadError\x20&&\x20types.length\x20===\x200\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22opacity:.45;\x20font-size:13px;\x20line-height:1.8;\x20padding:32px\x200;\x20text-align:center;\x22>\x0a\x20\x20\x20\x20\x20\x20No\x20registered\x20job\x20types.<br>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:12px;\x22>Register\x20a\x20type\x20to\x20set\x20defaults,\x20control\x20concurrency,\x20and\x20pause/resume\x20claiming.</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<!--\x20types\x20list\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:8px;\x22>\x0a\x20\x20\x20\x20<each\x20:of=\x22types\x22\x20let:item=\x22jt\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22jt-card\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:13px;\x20font-weight:600;\x20flex:1;\x20min-width:0;\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x22>{{\x20jt.id\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20:style=\x22\x27border-color:\x27\x20+\x20statusColor(jt.status)\x20+\x20\x27;\x20color:\x27\x20+\x20statusColor(jt.status)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20statusLabel(jt.status)\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.payload_schema\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20style=\x22border-color:var(--okdb-accent);\x20color:var(--okdb-accent);\x22>schema</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.payload_schema.enforce\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20style=\x22border-color:#ef4444;\x20color:#ef4444;\x22>enforced</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20lifecycle\x20actions\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20!==\x20\x27paused\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x22\x20@click=\x22setStatus(jt,\x20\x27pause\x27)\x22\x20title=\x22Pause\x20—\x20stop\x20workers\x20from\x20claiming\x20new\x20jobs\x22>⏸\x20Pause</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20===\x20\x27paused\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--accent\x22\x20@click=\x22setStatus(jt,\x20\x27resume\x27)\x22\x20title=\x22Resume\x20normal\x20claiming\x22>▶\x20Resume</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20!==\x20\x27draining\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x22\x20@click=\x22setStatus(jt,\x20\x27drain\x27)\x22\x20title=\x22Drain\x20—\x20stop\x20new\x20enqueues,\x20let\x20queue\x20empty\x22>⬇\x20Drain</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20===\x20\x27draining\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--accent\x22\x20@click=\x22setStatus(jt,\x20\x27resume\x27)\x22>▶\x20Resume</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--enqueue\x22\x20@click=\x22openEnqueue(jt)\x22>+\x20Enqueue</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x22\x20@click=\x22openEdit(jt)\x22>Edit</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--danger\x22\x20@click=\x22remove(jt)\x22>Remove</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:11px;\x20opacity:.55;\x20margin-top:4px;\x20font-family:monospace;\x22>{{\x20formatDefaults(jt)\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</each>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','concurrency:','<enqueue-job-modal\x20:modal=\x22modal\x22\x20:initial-type=\x22initialType\x22\x20:on-done=\x22onDone\x22\x20/>','Job\x20enqueued','\x20job\x20type','result','color-mix(in\x20srgb,\x20#22c55e\x2080%,\x20transparent)','9938481FzqMZl','ttl:','pri:','4919217uCtRwP','1caKZeI','toast','Active','status','$watch','/queue/job-type/','tries:','var(--okdb-app-fg-muted)','load','bucketOptions','\x20\x20·\x20\x20','<job-type-modal\x20:modal=\x22modal\x22\x20:job-type=\x22jobType\x22\x20:bucket-options=\x22bucketOptions\x22\x20:on-done=\x22onDone\x22\x20/>','modal','json','data','color-mix(in\x20srgb,\x20#f59e0b\x2080%,\x20transparent)','HTTP\x20','Failed\x20to\x20load','error','open','catch','\x22?\x20Existing\x20jobs\x20are\x20unaffected.','types','7679015uCBRPF','shared','ttl','32799550WWglzE','busy','push','loadError','apiBase','retry_delay','$ok','Edit:\x20','queue-job-types','Failed\x20to\x20remove\x20job\x20type','selectedEnv','8lfMZVv','color-mix(in\x20srgb,\x20#3b82f6\x2080%,\x20transparent)','3309280VnysJG','failed','max_tries','delay:','Failed\x20to\x20','DELETE','6rlhlyl','189422cAiQBP','priority','Remove\x20job\x20type\x20\x22','<job-type-modal\x20:modal=\x22modal\x22\x20:job-type=\x22null\x22\x20:bucket-options=\x22bucketOptions\x22\x20:on-done=\x22onDone\x22\x20/>'];_0x1783=function(){return _0x540464;};return _0x1783();}import _0x45b3ba from'../modals/enqueue-job-modal.ok.js';const n={'active':_0x494219(0x150),'paused':'Paused','draining':_0x494219(0x183)},a={'active':_0x494219(0x18b),'paused':_0x494219(0x15d),'draining':_0x494219(0x174)};export default{'tag':_0x494219(0x170),'dependencies':[_0x170c6d,_0x45b3ba],'context':_0x36d5de=>({'busy':!0x1,'loadError':null,'types':[],'bucketOptions':[],async 'load'(){const _0x2c5d5e=_0x494219;this[_0x2c5d5e(0x169)]=!0x0,this[_0x2c5d5e(0x16b)]=null;try{const [_0x5c1bb1,_0x3f539a]=await Promise['all']([fetch(_0x22d5c2[_0x2c5d5e(0x16c)]+'/queue/job-types'),fetch(_0x22d5c2[_0x2c5d5e(0x16c)]+'/queue/buckets')[_0x2c5d5e(0x162)](()=>null)]);if(!_0x5c1bb1['ok']){const _0x4ef038=await _0x5c1bb1['json']()[_0x2c5d5e(0x162)](()=>({}));throw new Error(_0x4ef038?.['error']?.[_0x2c5d5e(0x182)]??_0x4ef038?.['message']??_0x2c5d5e(0x15e)+_0x5c1bb1[_0x2c5d5e(0x151)]);}const _0x5b55c6=await _0x5c1bb1[_0x2c5d5e(0x15b)]();this[_0x2c5d5e(0x164)]=_0x5b55c6?.[_0x2c5d5e(0x18a)]??_0x5b55c6?.[_0x2c5d5e(0x15c)]??[];const _0x2e6d90=_0x3f539a?.['ok']?await _0x3f539a['json']()['catch'](()=>({})):{};this['bucketOptions']=_0x2e6d90?.[_0x2c5d5e(0x18a)]??_0x2e6d90?.[_0x2c5d5e(0x15c)]??[];}catch(_0x1fae9d){console[_0x2c5d5e(0x160)](_0x2c5d5e(0x180),_0x1fae9d),this[_0x2c5d5e(0x16b)]=_0x1fae9d[_0x2c5d5e(0x182)]||_0x2c5d5e(0x15f),this[_0x2c5d5e(0x164)]=[];}finally{this[_0x2c5d5e(0x169)]=!0x1;}},'statusLabel':_0x55dcdf=>n[_0x55dcdf]??_0x55dcdf,'statusColor':_0x12e5d0=>a[_0x12e5d0]??_0x494219(0x155),'formatDefaults'(_0x2dc2b1){const _0x3b60ae=_0x494219,_0x2344f7=_0x2dc2b1['defaults']??{},_0x4d15ab=[];return null!=_0x2344f7[_0x3b60ae(0x177)]&&_0x4d15ab[_0x3b60ae(0x16a)](_0x3b60ae(0x154)+_0x2344f7['max_tries']),null!=_0x2344f7[_0x3b60ae(0x16d)]&&_0x4d15ab[_0x3b60ae(0x16a)](_0x3b60ae(0x178)+_0x2344f7[_0x3b60ae(0x16d)]+'ms'),null!=_0x2344f7['priority']&&_0x4d15ab['push'](_0x3b60ae(0x14c)+_0x2344f7[_0x3b60ae(0x17d)]),null!=_0x2344f7[_0x3b60ae(0x167)]&&_0x4d15ab['push'](_0x3b60ae(0x14b)+_0x2344f7[_0x3b60ae(0x167)]+'ms'),null!=_0x2dc2b1[_0x3b60ae(0x184)]&&_0x4d15ab[_0x3b60ae(0x16a)](_0x3b60ae(0x186)+_0x2dc2b1[_0x3b60ae(0x184)]),_0x4d15ab['join'](_0x3b60ae(0x158))||'—';},'openCreate'(){const _0x1a78a4=_0x494219,_0x25fab2=this;_0x36d5de[_0x1a78a4(0x16e)]['shared']['modal'][_0x1a78a4(0x161)]({'owner':_0x36d5de,'title':'Register\x20Job\x20Type','content':_0x1a78a4(0x17f),'context':_0x54af2c=>({'modal':_0x54af2c,'bucketOptions':_0x25fab2['bucketOptions'],'onDone':()=>_0x25fab2[_0x1a78a4(0x156)]()})});},'openEdit'(_0x4cce0f){const _0x50c19e=_0x494219;_0x36d5de['$ok'][_0x50c19e(0x166)][_0x50c19e(0x15a)]['open']({'owner':_0x36d5de,'title':_0x50c19e(0x16f)+_0x4cce0f['id'],'content':_0x50c19e(0x159),'context':_0x1be5eb=>({'modal':_0x1be5eb,'jobType':_0x4cce0f,'bucketOptions':this[_0x50c19e(0x157)],'onDone':()=>this[_0x50c19e(0x156)]()})});},async 'setStatus'(_0x34a4f6,_0x39db6f){const _0x68f47c=_0x494219;try{if(!(await fetch(_0x22d5c2[_0x68f47c(0x16c)]+_0x68f47c(0x153)+encodeURIComponent(_0x34a4f6['id'])+'/'+_0x39db6f,{'method':'POST'}))['ok'])throw new Error(_0x68f47c(0x176));await this[_0x68f47c(0x156)]();}catch{_0x36d5de[_0x68f47c(0x16e)][_0x68f47c(0x166)]?.[_0x68f47c(0x14f)]?.['error']?.(_0x68f47c(0x179)+_0x39db6f+_0x68f47c(0x189));}},'openEnqueue'(_0x5c76ff){const _0x4db09b=_0x494219;_0x36d5de['$ok'][_0x4db09b(0x166)][_0x4db09b(0x15a)][_0x4db09b(0x161)]({'owner':_0x36d5de,'title':'Enqueue\x20Job','content':_0x4db09b(0x187),'context':_0xd84186=>({'modal':_0xd84186,'initialType':_0x5c76ff['id'],'onDone':()=>_0x36d5de['$ok'][_0x4db09b(0x166)]?.[_0x4db09b(0x14f)]?.['success']?.(_0x4db09b(0x188))})});},async 'remove'(_0x228960){const _0x2c6e6d=_0x494219;if(await _0x36d5de['$ok'][_0x2c6e6d(0x166)][_0x2c6e6d(0x15a)]['confirm'](_0x2c6e6d(0x17e)+_0x228960['id']+_0x2c6e6d(0x163)))try{if(!(await fetch(_0x22d5c2[_0x2c6e6d(0x16c)]+'/queue/job-type/'+encodeURIComponent(_0x228960['id']),{'method':_0x2c6e6d(0x17a)}))['ok'])throw new Error(_0x2c6e6d(0x176));await this[_0x2c6e6d(0x156)]();}catch{_0x36d5de[_0x2c6e6d(0x16e)][_0x2c6e6d(0x166)]?.[_0x2c6e6d(0x14f)]?.[_0x2c6e6d(0x160)]?.(_0x2c6e6d(0x171));}}}),async 'mount'(_0x2a1f81){const _0x772f30=_0x494219;await this[_0x772f30(0x156)](),_0x2a1f81[_0x772f30(0x152)](()=>_0x22d5c2[_0x772f30(0x172)],()=>{const _0x3cfa06=_0x772f30;this[_0x3cfa06(0x164)]=[],this['load']();});},'template':_0x494219(0x185),'style':'.jt-card{border:1px\x20solid\x20var(--okdb-app-border);border-radius:8px;padding:10px\x2014px;background:var(--okdb-app-surface)}.status-badge{font-size:10px;padding:2px\x208px;border-radius:999px;border:1px\x20solid;font-weight:600;letter-spacing:.04em}.act-btn{font-size:11px;padding:2px\x208px;border-radius:5px;border:1px\x20solid\x20var(--okdb-app-border);background:0\x200;cursor:pointer;color:var(--okdb-app-fg-muted)}.act-btn:hover{border-color:var(--okdb-app-fg-muted);color:var(--okdb-app-fg)}.act-btn--accent,.act-btn--enqueue{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2040%,transparent);color:var(--okdb-accent)}.act-btn--danger:hover{border-color:#ef4444;color:#ef4444}.act-btn--enqueue{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2030%,transparent)}.act-btn--enqueue:hover{border-color:var(--okdb-accent)}'};
1
+ const _0x307a37=_0x3823;function _0x3823(_0x442079,_0x534a39){_0x442079=_0x442079-0x16b;const _0xb5f0da=_0xb5f0();let _0x3823bf=_0xb5f0da[_0x442079];return _0x3823bf;}(function(_0x427218,_0x41ae30){const _0x3e69aa=_0x3823,_0x10f7fc=_0x427218();while(!![]){try{const _0x8107c7=parseInt(_0x3e69aa(0x177))/0x1+parseInt(_0x3e69aa(0x19a))/0x2+parseInt(_0x3e69aa(0x192))/0x3+parseInt(_0x3e69aa(0x1a1))/0x4+parseInt(_0x3e69aa(0x183))/0x5+parseInt(_0x3e69aa(0x1a2))/0x6+-parseInt(_0x3e69aa(0x175))/0x7;if(_0x8107c7===_0x41ae30)break;else _0x10f7fc['push'](_0x10f7fc['shift']());}catch(_0x520baa){_0x10f7fc['push'](_0x10f7fc['shift']());}}}(_0xb5f0,0x2097c));import _0x42dcb3 from'../../../stores/okdb-store.js';import _0x3b83c0 from'../modals/job-type-modal.ok.js';import _0x497e42 from'../modals/enqueue-job-modal.ok.js';const n={'active':'Active','paused':_0x307a37(0x191),'draining':_0x307a37(0x188)},a={'active':_0x307a37(0x16f),'paused':'color-mix(in\x20srgb,\x20#f59e0b\x2080%,\x20transparent)','draining':_0x307a37(0x16b)};export default{'tag':_0x307a37(0x182),'dependencies':[_0x3b83c0,_0x497e42],'context':_0x2dbf0=>({'busy':!0x1,'loadError':null,'types':[],'bucketOptions':[],async 'load'(){const _0x31afda=_0x307a37;this['busy']=!0x0,this[_0x31afda(0x194)]=null;try{const [_0x4ceaa4,_0x2de1b0]=await Promise['all']([fetch(_0x42dcb3[_0x31afda(0x18c)]+_0x31afda(0x19e)),fetch(_0x42dcb3[_0x31afda(0x18c)]+'/queue/buckets')['catch'](()=>null)]);if(!_0x4ceaa4['ok']){const _0x2dabc6=await _0x4ceaa4['json']()['catch'](()=>({}));throw new Error(_0x2dabc6?.[_0x31afda(0x1a3)]?.[_0x31afda(0x1a0)]??_0x2dabc6?.[_0x31afda(0x1a0)]??_0x31afda(0x17f)+_0x4ceaa4[_0x31afda(0x178)]);}const _0x12f796=await _0x4ceaa4[_0x31afda(0x199)]();this[_0x31afda(0x1a4)]=_0x12f796?.[_0x31afda(0x185)]??_0x12f796?.[_0x31afda(0x16e)]??[];const _0x2b3298=_0x2de1b0?.['ok']?await _0x2de1b0[_0x31afda(0x199)]()['catch'](()=>({})):{};this[_0x31afda(0x181)]=_0x2b3298?.[_0x31afda(0x185)]??_0x2b3298?.[_0x31afda(0x16e)]??[];}catch(_0x597a04){console[_0x31afda(0x1a3)](_0x31afda(0x17e),_0x597a04),this['loadError']=_0x597a04['message']||_0x31afda(0x176),this[_0x31afda(0x1a4)]=[];}finally{this[_0x31afda(0x19b)]=!0x1;}},'statusLabel':_0x302b3c=>n[_0x302b3c]??_0x302b3c,'statusColor':_0x3aa542=>a[_0x3aa542]??_0x307a37(0x179),'formatDefaults'(_0xe1c1ac){const _0x3cf4f1=_0x307a37,_0x4e89e9=_0xe1c1ac[_0x3cf4f1(0x19d)]??{},_0x570707=[];return null!=_0x4e89e9[_0x3cf4f1(0x187)]&&_0x570707[_0x3cf4f1(0x17b)](_0x3cf4f1(0x172)+_0x4e89e9['max_tries']),null!=_0x4e89e9[_0x3cf4f1(0x195)]&&_0x570707[_0x3cf4f1(0x17b)]('delay:'+_0x4e89e9[_0x3cf4f1(0x195)]+'ms'),null!=_0x4e89e9['priority']&&_0x570707[_0x3cf4f1(0x17b)](_0x3cf4f1(0x193)+_0x4e89e9[_0x3cf4f1(0x171)]),null!=_0x4e89e9[_0x3cf4f1(0x174)]&&_0x570707['push'](_0x3cf4f1(0x170)+_0x4e89e9[_0x3cf4f1(0x174)]+'ms'),null!=_0xe1c1ac[_0x3cf4f1(0x19f)]&&_0x570707['push'](_0x3cf4f1(0x19c)+_0xe1c1ac[_0x3cf4f1(0x19f)]),_0x570707[_0x3cf4f1(0x16c)]('\x20\x20·\x20\x20')||'—';},'openCreate'(){const _0x1fa5fb=_0x307a37,_0x47eed1=this;_0x2dbf0[_0x1fa5fb(0x18b)][_0x1fa5fb(0x18f)][_0x1fa5fb(0x17d)][_0x1fa5fb(0x198)]({'owner':_0x2dbf0,'title':'Register\x20Job\x20Type','content':_0x1fa5fb(0x186),'context':_0x37e80b=>({'modal':_0x37e80b,'bucketOptions':_0x47eed1[_0x1fa5fb(0x181)],'onDone':()=>_0x47eed1[_0x1fa5fb(0x16d)]()})});},'openEdit'(_0x465b7a){const _0x4d42e6=_0x307a37;_0x2dbf0[_0x4d42e6(0x18b)][_0x4d42e6(0x18f)][_0x4d42e6(0x17d)]['open']({'owner':_0x2dbf0,'title':'Edit:\x20'+_0x465b7a['id'],'content':'<job-type-modal\x20:modal=\x22modal\x22\x20:job-type=\x22jobType\x22\x20:bucket-options=\x22bucketOptions\x22\x20:on-done=\x22onDone\x22\x20/>','context':_0xdd1be3=>({'modal':_0xdd1be3,'jobType':_0x465b7a,'bucketOptions':this[_0x4d42e6(0x181)],'onDone':()=>this[_0x4d42e6(0x16d)]()})});},async 'setStatus'(_0x5f5dce,_0x385c04){const _0x22fec9=_0x307a37;try{if(!(await fetch(_0x42dcb3['apiBase']+_0x22fec9(0x17a)+encodeURIComponent(_0x5f5dce['id'])+'/'+_0x385c04,{'method':_0x22fec9(0x18a)}))['ok'])throw new Error(_0x22fec9(0x196));await this[_0x22fec9(0x16d)]();}catch{_0x2dbf0[_0x22fec9(0x18b)][_0x22fec9(0x18f)]?.[_0x22fec9(0x18d)]?.[_0x22fec9(0x1a3)]?.(_0x22fec9(0x189)+_0x385c04+_0x22fec9(0x17c));}},'openEnqueue'(_0x53d91a){const _0x2bd215=_0x307a37;_0x2dbf0[_0x2bd215(0x18b)]['shared'][_0x2bd215(0x17d)]['open']({'owner':_0x2dbf0,'title':_0x2bd215(0x197),'content':_0x2bd215(0x173),'context':_0x1771ac=>({'modal':_0x1771ac,'initialType':_0x53d91a['id'],'onDone':()=>_0x2dbf0[_0x2bd215(0x18b)][_0x2bd215(0x18f)]?.[_0x2bd215(0x18d)]?.['success']?.(_0x2bd215(0x184))})});},async 'remove'(_0x4103cf){const _0x17cd0b=_0x307a37;if(await _0x2dbf0[_0x17cd0b(0x18b)][_0x17cd0b(0x18f)]['modal'][_0x17cd0b(0x180)](_0x17cd0b(0x190)+_0x4103cf['id']+'\x22?\x20Existing\x20jobs\x20are\x20unaffected.'))try{if(!(await fetch(_0x42dcb3['apiBase']+_0x17cd0b(0x17a)+encodeURIComponent(_0x4103cf['id']),{'method':'DELETE'}))['ok'])throw new Error(_0x17cd0b(0x196));await this['load']();}catch{_0x2dbf0[_0x17cd0b(0x18b)]['shared']?.[_0x17cd0b(0x18d)]?.['error']?.('Failed\x20to\x20remove\x20job\x20type');}}}),async 'mount'(_0x2d86ec){const _0x518bf3=_0x307a37;await this['load'](),_0x2d86ec[_0x518bf3(0x18e)](()=>_0x42dcb3['selectedEnv'],()=>{const _0x596223=_0x518bf3;this[_0x596223(0x1a4)]=[],this['load']();});},'template':'\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:16px;\x20padding:16px\x200;\x22>\x0a\x0a\x20\x20<!--\x20header\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22font-size:14px;\x20font-weight:600;\x20flex:1;\x22>Registered\x20Job\x20Types</div>\x0a\x20\x20\x20\x20<button\x20@click=\x22load\x22\x20:disabled=\x22busy\x22\x20style=\x22opacity:.6;\x20font-size:11px;\x20padding:2px\x208px;\x22>↻</button>\x0a\x20\x20\x20\x20<button\x20@click=\x22openCreate()\x22\x20style=\x22font-size:12px;\x20padding:4px\x2012px;\x22>+\x20Register\x20type</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20error\x20state\x20-->\x0a\x20\x20<if\x20:=\x22loadError\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22color:#ef4444;\x20font-size:12px;\x20padding:8px\x2012px;\x20border:1px\x20solid\x20#ef4444;\x20border-radius:6px;\x20background:color-mix(in\x20srgb,\x20#ef4444\x208%,\x20transparent);\x22>\x0a\x20\x20\x20\x20\x20\x20Failed\x20to\x20load\x20job\x20types:\x20{{\x20loadError\x20}}\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<!--\x20empty\x20state\x20-->\x0a\x20\x20<if\x20:=\x22!busy\x20&&\x20!loadError\x20&&\x20types.length\x20===\x200\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22opacity:.45;\x20font-size:13px;\x20line-height:1.8;\x20padding:32px\x200;\x20text-align:center;\x22>\x0a\x20\x20\x20\x20\x20\x20No\x20registered\x20job\x20types.<br>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:12px;\x22>Register\x20a\x20type\x20to\x20set\x20defaults,\x20control\x20concurrency,\x20and\x20pause/resume\x20claiming.</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<!--\x20types\x20list\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:8px;\x22>\x0a\x20\x20\x20\x20<each\x20:of=\x22types\x22\x20let:item=\x22jt\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22jt-card\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:13px;\x20font-weight:600;\x20flex:1;\x20min-width:0;\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x22>{{\x20jt.id\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20:style=\x22\x27border-color:\x27\x20+\x20statusColor(jt.status)\x20+\x20\x27;\x20color:\x27\x20+\x20statusColor(jt.status)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20statusLabel(jt.status)\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.payload_schema\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20style=\x22border-color:var(--okdb-accent);\x20color:var(--okdb-accent);\x22>schema</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.payload_schema.enforce\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20style=\x22border-color:#ef4444;\x20color:#ef4444;\x22>enforced</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20lifecycle\x20actions\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20!==\x20\x27paused\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x22\x20@click=\x22setStatus(jt,\x20\x27pause\x27)\x22\x20title=\x22Pause\x20—\x20stop\x20workers\x20from\x20claiming\x20new\x20jobs\x22>⏸\x20Pause</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20===\x20\x27paused\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--accent\x22\x20@click=\x22setStatus(jt,\x20\x27resume\x27)\x22\x20title=\x22Resume\x20normal\x20claiming\x22>▶\x20Resume</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20!==\x20\x27draining\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x22\x20@click=\x22setStatus(jt,\x20\x27drain\x27)\x22\x20title=\x22Drain\x20—\x20stop\x20new\x20enqueues,\x20let\x20queue\x20empty\x22>⬇\x20Drain</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20===\x20\x27draining\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--accent\x22\x20@click=\x22setStatus(jt,\x20\x27resume\x27)\x22>▶\x20Resume</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--enqueue\x22\x20@click=\x22openEnqueue(jt)\x22>+\x20Enqueue</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x22\x20@click=\x22openEdit(jt)\x22>Edit</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--danger\x22\x20@click=\x22remove(jt)\x22>Remove</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:11px;\x20opacity:.55;\x20margin-top:4px;\x20font-family:monospace;\x22>{{\x20formatDefaults(jt)\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</each>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','style':'.jt-card{border:1px\x20solid\x20var(--okdb-app-border);border-radius:8px;padding:10px\x2014px;background:var(--okdb-app-surface)}.status-badge{font-size:10px;padding:2px\x208px;border-radius:999px;border:1px\x20solid;font-weight:600;letter-spacing:.04em}.act-btn{font-size:11px;padding:2px\x208px;border-radius:5px;border:1px\x20solid\x20var(--okdb-app-border);background:0\x200;cursor:pointer;color:var(--okdb-app-fg-muted)}.act-btn:hover{border-color:var(--okdb-app-fg-muted);color:var(--okdb-app-fg)}.act-btn--accent,.act-btn--enqueue{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2040%,transparent);color:var(--okdb-accent)}.act-btn--danger:hover{border-color:#ef4444;color:#ef4444}.act-btn--enqueue{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2030%,transparent)}.act-btn--enqueue:hover{border-color:var(--okdb-accent)}'};function _0xb5f0(){const _0xb15547=['error','types','color-mix(in\x20srgb,\x20#3b82f6\x2080%,\x20transparent)','join','load','data','color-mix(in\x20srgb,\x20#22c55e\x2080%,\x20transparent)','ttl:','priority','tries:','<enqueue-job-modal\x20:modal=\x22modal\x22\x20:initial-type=\x22initialType\x22\x20:on-done=\x22onDone\x22\x20/>','ttl','4781847FKcZzH','Failed\x20to\x20load','217632FQEcaY','status','var(--okdb-app-fg-muted)','/queue/job-type/','push','\x20job\x20type','modal','queue-job-types\x20load\x20error','HTTP\x20','confirm','bucketOptions','queue-job-types','950445hxINEA','Job\x20enqueued','result','<job-type-modal\x20:modal=\x22modal\x22\x20:job-type=\x22null\x22\x20:bucket-options=\x22bucketOptions\x22\x20:on-done=\x22onDone\x22\x20/>','max_tries','Draining','Failed\x20to\x20','POST','$ok','apiBase','toast','$watch','shared','Remove\x20job\x20type\x20\x22','Paused','352443REojcy','pri:','loadError','retry_delay','failed','Enqueue\x20Job','open','json','147482sbbTTO','busy','concurrency:','defaults','/queue/job-types','max_concurrency','message','826468XoRSeo','66366OIdBLe'];_0xb5f0=function(){return _0xb15547;};return _0xb5f0();}
@@ -1 +1 @@
1
- const _0x221c7d=_0x4cba;(function(_0x2b6bc0,_0x58a169){const _0x3f26ae=_0x4cba,_0x4a96b3=_0x2b6bc0();while(!![]){try{const _0x21cf56=-parseInt(_0x3f26ae(0x1fe))/0x1*(parseInt(_0x3f26ae(0x1cb))/0x2)+parseInt(_0x3f26ae(0x1fa))/0x3+-parseInt(_0x3f26ae(0x218))/0x4+-parseInt(_0x3f26ae(0x233))/0x5+-parseInt(_0x3f26ae(0x203))/0x6*(parseInt(_0x3f26ae(0x1db))/0x7)+-parseInt(_0x3f26ae(0x208))/0x8*(parseInt(_0x3f26ae(0x1f5))/0x9)+parseInt(_0x3f26ae(0x1d2))/0xa;if(_0x21cf56===_0x58a169)break;else _0x4a96b3['push'](_0x4a96b3['shift']());}catch(_0x4286af){_0x4a96b3['push'](_0x4a96b3['shift']());}}}(_0x852a,0x875a6));import _0x515a27 from'@toolkit/elements/ok-icon.ok.js';function _0x852a(){const _0x52cf3b=['Clear\x20failed\x20jobs\x20error:\x20','\x20for\x20type\x20\x22<b>','message','function','bulkBusy','hasPrev','byType','in\x20','/queue/clearFailed','splice','pendingUpdates','modal','data','slice','9DmIjAN','POST','var(--okdb-info)','Retried\x20','/queue/reconcile','1566063gpNDUP','status','asc','isArray','31EKqEgl','Delete\x20all\x20\x22failed\x22\x20jobs','abs','sort','apiBase','1434nUzpHL','busy','_applyFilterAndReload','direction','Cancelled\x20','6324176FuPBRd','indexOf','_unsubs','<enqueue-job-modal\x20:modal=\x22modal\x22\x20:initial-type=\x22initialType\x22\x20:on-done=\x22onDone\x22\x20/>','/queue/clearStuck','applyTypeAttr','set','cursor','Cleared\x20','in\x20a\x20moment',';\x20border-color:','all','success','refresh','selectedEnv','Deleted\x20','529800YXBNxE','Cancel\x20failed','loadStats','queue:enqueued','queue-jobs','</b>\x22','when','error','sortMode','\x20stuck\x20jobs','.pill{display:inline-flex;align-items:center;gap:5px;border:1px\x20solid\x20var(--okdb-app-border);background:var(--okdb-app-surface);padding:4px\x2010px;border-radius:999px;font-size:12px;cursor:pointer;color:var(--okdb-app-fg-muted);transition:border-color\x20.12s,color\x20.12s}.pill:hover{border-color:#3b4754;color:var(--okdb-app-fg)}.pill--on{box-shadow:0\x200\x200\x201px\x20rgba(255,255,255,.07)\x20inset}.pill--p.pill--on{color:var(--okdb-warning);border-color:var(--okdb-warning)}.pill--r.pill--on{color:var(--okdb-info);border-color:var(--okdb-info)}.pill--f.pill--on{color:var(--okdb-danger);border-color:var(--okdb-danger)}.pill--d.pill--on{color:var(--okdb-success);border-color:var(--okdb-success)}.pill-count{font-size:11px;opacity:.65;font-variant-numeric:tabular-nums}.status-badge{display:inline-block;padding:2px\x208px;border-radius:999px;font-size:11px;border:1px\x20solid;white-space:nowrap}','s\x20ago','/queue/retryFailed','queue:reconciled','failed','retry\x20failed','\x20failed\x20jobs','Retry\x20job\x20<code>','queue:retry','application/json','values','/cancel','query','open','Bulk\x20retry\x20failed:\x20','_busy','var(--okdb-success)','89250yxJKuP','_statsTimer','round','HTTP\x20','cancel\x20failed','_nextCursor','Clear\x20done\x20failed:\x20','total','Retry\x20failed:\x20','queue:failed','/retry','json','info','toast','/queue/jobs?','Delete\x20job\x20<code>','deleted','Retry\x20all\x20failed\x20jobs','resetPaging','Delete\x20failed','stats','var(--okdb-danger)','$attr','#9ca3af','load','push','queue:removed','?<br><br>This\x20cannot\x20be\x20undone.','items','$watch','Enqueue\x20Job','/queue/stats','stringify','now','length','7626gXkHHb','_cursors','<edit-job-modal\x20:modal=\x22modal\x22\x20:job-id=\x22jobId\x22\x20:on-done=\x22onDone\x22\x20/>','$ok','confirm','</code>?','/queue/clearDone','20170570slWCtZ','result','loadError','type','stores','/remove','$dispatch','_applySort','okdb','27111OAZMYL','hasNext','_liveTimer','d\x20ago','Stats\x20rebuild\x20failed','Clear\x20all\x20\x22done\x22\x20jobs','_pageIdx','var(--okdb-warning)','shared','/queue/job/','h\x20ago','Delete\x20all\x20stuck\x20(expired-claim)\x20running\x20jobs'];_0x852a=function(){return _0x52cf3b;};return _0x852a();}import _0x202ac2 from'@toolkit/elements/ok-table.ok.js';import _0x2f63f6 from'@toolkit/core/ok-overlay.ok.js';import _0x3f61b2 from'../modals/edit-job-modal.ok.js';import _0x4815a1 from'../modals/enqueue-job-modal.ok.js';import _0x5ede24 from'../../../stores/events-store.js';function _0x4cba(_0x415762,_0x57fb44){_0x415762=_0x415762-0x1ac;const _0x852ae3=_0x852a();let _0x4cba4f=_0x852ae3[_0x415762];return _0x4cba4f;}import _0x4ebce8 from'../../../stores/okdb-store.js';export default{'tag':_0x221c7d(0x21c),'dependencies':[_0x515a27,_0x202ac2,_0x2f63f6,_0x4815a1,_0x3f61b2],'attr':{'type':{}},'context':_0x480025=>({'query':function({apiBase:_0x296583,pageSize:_0x1e59f8=0x32}){const _0x348602=_0x221c7d;return{'busy':!0x1,'values':[],'total':0x0,'hasNext':!0x1,'hasPrev':!0x1,'pageSize':_0x1e59f8,'loadError':null,'type':null,'status':null,'sort':_0x348602(0x21e),'direction':_0x348602(0x1fc),'_cursors':[null],'_pageIdx':0x0,'_nextCursor':null,'resetPaging'(){const _0x4e049f=_0x348602;this['_cursors']=[null],this[_0x4e049f(0x1e1)]=0x0,this['_nextCursor']=null,this[_0x4e049f(0x1dc)]=!0x1,this['hasPrev']=!0x1;},async 'load'(){const _0x1b8a45=_0x348602,_0xea4193=_0x1b8a45(0x1ea)==typeof _0x296583?_0x296583():_0x296583,_0x492f98=this[_0x1b8a45(0x1cc)][this[_0x1b8a45(0x1e1)]];this[_0x1b8a45(0x204)]=!0x0,this[_0x1b8a45(0x1d4)]=null;try{const _0x3ea065=new URLSearchParams({'limit':String(this['pageSize']),'sort':this[_0x1b8a45(0x201)]??'when','direction':this[_0x1b8a45(0x206)]??_0x1b8a45(0x1fc)});this['type']&&_0x3ea065[_0x1b8a45(0x20e)]('type',this['type']),this[_0x1b8a45(0x1fb)]&&_0x3ea065[_0x1b8a45(0x20e)](_0x1b8a45(0x1fb),this['status']),null!=_0x492f98&&_0x3ea065[_0x1b8a45(0x20e)]('cursor',JSON[_0x1b8a45(0x1c8)](_0x492f98));const _0x68ec8f=await fetch(_0xea4193+_0x1b8a45(0x1b6)+_0x3ea065),_0x5d72da=await _0x68ec8f[_0x1b8a45(0x1b3)]();if(!_0x68ec8f['ok'])throw new Error(_0x5d72da?.[_0x1b8a45(0x21f)]?.[_0x1b8a45(0x1e9)]||_0x1b8a45(0x236)+_0x68ec8f[_0x1b8a45(0x1fb)]);const _0x4ac5a1=_0x5d72da[_0x1b8a45(0x1d3)]??_0x5d72da[_0x1b8a45(0x1f3)]??_0x5d72da;this['values']=Array[_0x1b8a45(0x1fd)](_0x4ac5a1['items'])?_0x4ac5a1[_0x1b8a45(0x1c4)]:Array[_0x1b8a45(0x1fd)](_0x4ac5a1)?_0x4ac5a1:[],this[_0x1b8a45(0x1ad)]=_0x4ac5a1[_0x1b8a45(0x20f)]??null,this[_0x1b8a45(0x1dc)]=null!=this[_0x1b8a45(0x1ad)],this['hasPrev']=this[_0x1b8a45(0x1e1)]>0x0;}catch(_0x2db14f){this[_0x1b8a45(0x1d4)]=_0x2db14f?.['message']||String(_0x2db14f),this['values']=[];}finally{this[_0x1b8a45(0x204)]=!0x1;}},async 'nextPage'(){const _0x1475d0=_0x348602;this['hasNext']&&!this['busy']&&(this['_pageIdx']+0x1>=this[_0x1475d0(0x1cc)][_0x1475d0(0x1ca)]&&this['_cursors'][_0x1475d0(0x1c1)](this['_nextCursor']),this[_0x1475d0(0x1e1)]++,await this[_0x1475d0(0x1c0)]());},async 'prevPage'(){const _0x44f07f=_0x348602;this[_0x44f07f(0x1ec)]&&!this[_0x44f07f(0x204)]&&(this['_pageIdx']--,await this['load']());}};}({'apiBase':()=>_0x4ebce8[_0x221c7d(0x202)],'pageSize':0x32}),'type':null,'status':null,'sortMode':_0x221c7d(0x21e),'direction':_0x221c7d(0x1fc),'stats':null,'_statsTimer':null,async 'loadStats'(){const _0xb40af=_0x221c7d;try{const _0x30e49d=await fetch(_0x4ebce8[_0xb40af(0x202)]+_0xb40af(0x1c7));if(_0x30e49d['ok']){const _0x572043=await _0x30e49d[_0xb40af(0x1b3)]();this[_0xb40af(0x1bc)]=_0x572043[_0xb40af(0x1d3)]??_0x572043[_0xb40af(0x1f3)]??null;}}catch{}},'_scheduleStats'(){const _0x43700e=_0x221c7d;clearTimeout(this[_0x43700e(0x234)]),this[_0x43700e(0x234)]=setTimeout(()=>this['loadStats'](),0x190);},'statusCount'(_0x16a21f){const _0x52ca16=_0x221c7d;if(!this[_0x52ca16(0x1bc)])return'';const _0x344714=this[_0x52ca16(0x1d5)];return _0x16a21f?_0x344714?this[_0x52ca16(0x1bc)]['byType']?.[_0x344714]?.['byStatus']?.[_0x16a21f]??0x0:this[_0x52ca16(0x1bc)]['byStatus']?.[_0x16a21f]??0x0:_0x344714?this[_0x52ca16(0x1bc)][_0x52ca16(0x1ed)]?.[_0x344714]?.[_0x52ca16(0x1af)]??0x0:this['stats'][_0x52ca16(0x1af)]??0x0;},'applyTypeAttr'(){const _0x8f4e4=_0x221c7d;var _0x5dc6ca;this['type']=null==(_0x5dc6ca=_0x480025[_0x8f4e4(0x1be)]['type'])||''===_0x5dc6ca?null:String(_0x5dc6ca),this[_0x8f4e4(0x205)]();},'setStatus'(_0x4320c8){const _0x598534=_0x221c7d;this[_0x598534(0x1fb)]=null==_0x4320c8||''===_0x4320c8?null:_0x4320c8,this[_0x598534(0x205)]();},'setSort'(_0x28984a){const _0x5475c5=_0x221c7d;this['sortMode']=_0x28984a,this[_0x5475c5(0x1d9)](),this[_0x5475c5(0x22e)]['resetPaging'](),this[_0x5475c5(0x22e)][_0x5475c5(0x1c0)]();},'toggleDirection'(){const _0x4614a5=_0x221c7d;this[_0x4614a5(0x206)]='asc'===this[_0x4614a5(0x206)]?'desc':_0x4614a5(0x1fc),this[_0x4614a5(0x1d9)](),this['query'][_0x4614a5(0x1ba)](),this['query'][_0x4614a5(0x1c0)]();},'_applySort'(){const _0x33250c=_0x221c7d;this[_0x33250c(0x22e)][_0x33250c(0x201)]=this[_0x33250c(0x220)],this[_0x33250c(0x22e)]['direction']=this[_0x33250c(0x206)];},'_applyFilterAndReload'(){const _0xf754b8=_0x221c7d;this[_0xf754b8(0x22e)][_0xf754b8(0x1d5)]=this[_0xf754b8(0x1d5)],this['query']['status']=this[_0xf754b8(0x1fb)],this['_applySort'](),this[_0xf754b8(0x22e)][_0xf754b8(0x1ba)](),this[_0xf754b8(0x22e)][_0xf754b8(0x1c0)]();},async 'refresh'(){const _0x87630f=_0x221c7d;clearTimeout(this[_0x87630f(0x1dd)]),this[_0x87630f(0x1f1)]=0x0;try{await fetch(_0x4ebce8['apiBase']+_0x87630f(0x1f9),{'method':_0x87630f(0x1f6)});}catch{}await this[_0x87630f(0x22e)][_0x87630f(0x1c0)](),await this[_0x87630f(0x21a)](),_0x480025[_0x87630f(0x1d8)](_0x87630f(0x215));},async 'rebuildStats'(){const _0x4adb3f=_0x221c7d;try{await fetch(_0x4ebce8[_0x4adb3f(0x202)]+'/queue/stats/rebuild',{'method':_0x4adb3f(0x1f6)}),_0x480025[_0x4adb3f(0x1ce)][_0x4adb3f(0x1e3)]?.['toast']?.[_0x4adb3f(0x214)]?.('Stats\x20rebuilt'),await this[_0x4adb3f(0x21a)](),_0x480025[_0x4adb3f(0x1d8)](_0x4adb3f(0x215)),await this[_0x4adb3f(0x22e)][_0x4adb3f(0x1c0)]();}catch{_0x480025['$ok'][_0x4adb3f(0x1e3)]?.[_0x4adb3f(0x1b5)]?.[_0x4adb3f(0x21f)]?.(_0x4adb3f(0x1df));}},async 'openEnqueue'(){const _0x1f270b=_0x221c7d,_0x462c39=this;await _0x480025[_0x1f270b(0x1ce)][_0x1f270b(0x1e3)][_0x1f270b(0x1f2)][_0x1f270b(0x22f)]({'owner':_0x480025,'title':_0x1f270b(0x1c6),'content':_0x1f270b(0x20b),'context':_0x2add1a=>({'modal':_0x2add1a,'initialType':_0x462c39[_0x1f270b(0x1d5)]||'','onDone':async()=>{const _0x4099e3=_0x1f270b;_0x480025[_0x4099e3(0x1ce)][_0x4099e3(0x1e3)]?.[_0x4099e3(0x1b5)]?.['success']?.('Job\x20enqueued'),await _0x462c39[_0x4099e3(0x215)]();}})});},async 'openEditJob'(_0x5739cd){const _0x5eb0ea=_0x221c7d,_0x449b12=this;await _0x480025['$ok'][_0x5eb0ea(0x1e3)]['modal']['open']({'owner':_0x480025,'title':'Edit\x20Job\x20'+_0x5739cd['id']['slice'](0x0,0x8),'content':_0x5eb0ea(0x1cd),'context':_0x3852bf=>({'modal':_0x3852bf,'jobId':_0x5739cd['id'],'onDone':async()=>{const _0x51be1c=_0x5eb0ea;await _0x449b12[_0x51be1c(0x215)]();}})});},async 'deleteJob'(_0x2f3f6b){const _0x49a5a9=_0x221c7d;if(await _0x480025[_0x49a5a9(0x1ce)]['shared']['modal'][_0x49a5a9(0x1cf)](_0x49a5a9(0x1b7)+_0x2f3f6b['id'][_0x49a5a9(0x1f4)](0x0,0x8)+_0x49a5a9(0x1d0))){_0x2f3f6b[_0x49a5a9(0x231)]=!0x0;try{if(!(await fetch(_0x4ebce8[_0x49a5a9(0x202)]+'/queue/job/'+_0x2f3f6b['id']+_0x49a5a9(0x1d7),{'method':_0x49a5a9(0x1f6)}))['ok'])throw new Error('remove\x20failed');const _0x55db62=this[_0x49a5a9(0x22e)][_0x49a5a9(0x22c)][_0x49a5a9(0x209)](_0x2f3f6b);_0x55db62>=0x0&&this['query'][_0x49a5a9(0x22c)][_0x49a5a9(0x1f0)](_0x55db62,0x1),_0x480025[_0x49a5a9(0x1ce)][_0x49a5a9(0x1e3)][_0x49a5a9(0x1b5)]?.[_0x49a5a9(0x1b4)](_0x49a5a9(0x217)+_0x2f3f6b['id']['slice'](0x0,0x8)),_0x480025['$dispatch'](_0x49a5a9(0x215)),this['_scheduleStats']();}catch{_0x480025[_0x49a5a9(0x1ce)]['shared'][_0x49a5a9(0x1b5)]?.[_0x49a5a9(0x21f)](_0x49a5a9(0x1bb));}finally{_0x2f3f6b['_busy']=!0x1;}}},async 'cancelJob'(_0x49c2a3){const _0x1465e2=_0x221c7d;if(await _0x480025['$ok']['shared'][_0x1465e2(0x1f2)][_0x1465e2(0x1cf)]('Cancel\x20job\x20<code>'+_0x49c2a3['id']['slice'](0x0,0x8)+_0x1465e2(0x1d0))){_0x49c2a3[_0x1465e2(0x231)]=!0x0;try{if(!(await fetch(_0x4ebce8[_0x1465e2(0x202)]+'/queue/job/'+_0x49c2a3['id']+_0x1465e2(0x22d),{'method':'POST'}))['ok'])throw new Error(_0x1465e2(0x1ac));_0x480025[_0x1465e2(0x1ce)]['shared'][_0x1465e2(0x1b5)]?.['info'](_0x1465e2(0x207)+_0x49c2a3['id']['slice'](0x0,0x8)),await this[_0x1465e2(0x215)]();}catch{_0x480025[_0x1465e2(0x1ce)]['shared'][_0x1465e2(0x1b5)]?.[_0x1465e2(0x21f)](_0x1465e2(0x219));}finally{_0x49c2a3[_0x1465e2(0x231)]=!0x1;}}},async 'retryJob'(_0x34bc47){const _0x4c4f66=_0x221c7d;if(await _0x480025['$ok']['shared'][_0x4c4f66(0x1f2)][_0x4c4f66(0x1cf)](_0x4c4f66(0x229)+_0x34bc47['id'][_0x4c4f66(0x1f4)](0x0,0x8)+_0x4c4f66(0x1d0))){_0x34bc47['_busy']=!0x0;try{const _0x2ec6e4=await fetch(_0x4ebce8['apiBase']+_0x4c4f66(0x1e4)+_0x34bc47['id']+_0x4c4f66(0x1b2),{'method':_0x4c4f66(0x1f6)}),_0x21c291=await _0x2ec6e4['json']();if(!_0x2ec6e4['ok'])throw new Error(_0x21c291?.[_0x4c4f66(0x21f)]?.['message']||_0x4c4f66(0x227));_0x480025['$ok']['shared'][_0x4c4f66(0x1b5)]?.[_0x4c4f66(0x214)]('Retried\x20'+_0x34bc47['id'][_0x4c4f66(0x1f4)](0x0,0x8)),await this[_0x4c4f66(0x215)]();}catch(_0x484683){_0x480025[_0x4c4f66(0x1ce)]['shared'][_0x4c4f66(0x1b5)]?.['error'](_0x4c4f66(0x1b0)+(_0x484683?.[_0x4c4f66(0x1e9)]||_0x484683));}finally{_0x34bc47[_0x4c4f66(0x231)]=!0x1;}}},'bulkBusy':!0x1,async 'retryAllFailed'(){const _0x1e0fc1=_0x221c7d;if(await _0x480025[_0x1e0fc1(0x1ce)][_0x1e0fc1(0x1e3)]['modal'][_0x1e0fc1(0x1cf)](_0x1e0fc1(0x1b9)+(this[_0x1e0fc1(0x1d5)]?_0x1e0fc1(0x1e8)+this[_0x1e0fc1(0x1d5)]+_0x1e0fc1(0x21d):'')+'?')){this[_0x1e0fc1(0x1eb)]=!0x0;try{const _0x4a4fef={'limit':0x1388};this['type']&&(_0x4a4fef['type']=this[_0x1e0fc1(0x1d5)]);const _0x8572b=await fetch(_0x4ebce8[_0x1e0fc1(0x202)]+_0x1e0fc1(0x224),{'method':_0x1e0fc1(0x1f6),'headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x4a4fef)}),_0x36166e=await _0x8572b[_0x1e0fc1(0x1b3)]();if(!_0x8572b['ok'])throw new Error(_0x36166e?.[_0x1e0fc1(0x21f)]?.[_0x1e0fc1(0x1e9)]||_0x1e0fc1(0x226));_0x480025[_0x1e0fc1(0x1ce)][_0x1e0fc1(0x1e3)]?.[_0x1e0fc1(0x1b5)]?.[_0x1e0fc1(0x214)]?.(_0x1e0fc1(0x1f8)+_0x36166e['data']['retried']+_0x1e0fc1(0x228)),await this['refresh']();}catch(_0x10c5bc){_0x480025[_0x1e0fc1(0x1ce)][_0x1e0fc1(0x1e3)]?.['toast']?.[_0x1e0fc1(0x21f)]?.(_0x1e0fc1(0x230)+(_0x10c5bc?.['message']||_0x10c5bc));}finally{this['bulkBusy']=!0x1;}}},async 'deleteAllDone'(){const _0x585919=_0x221c7d;if(await _0x480025[_0x585919(0x1ce)]['shared']['modal']['confirm'](_0x585919(0x1e0)+(this['type']?'\x20for\x20type\x20\x22<b>'+this[_0x585919(0x1d5)]+_0x585919(0x21d):'')+'?<br><br>This\x20cannot\x20be\x20undone.')){this[_0x585919(0x1eb)]=!0x0;try{const _0x13f1f7={'limit':0xc350};this[_0x585919(0x1d5)]&&(_0x13f1f7[_0x585919(0x1d5)]=this[_0x585919(0x1d5)]);const _0x2001c8=await fetch(_0x4ebce8[_0x585919(0x202)]+_0x585919(0x1d1),{'method':_0x585919(0x1f6),'headers':{'Content-Type':_0x585919(0x22b)},'body':JSON[_0x585919(0x1c8)](_0x13f1f7)}),_0x477ceb=await _0x2001c8[_0x585919(0x1b3)]();if(!_0x2001c8['ok'])throw new Error(_0x477ceb?.[_0x585919(0x21f)]?.['message']||'failed');_0x480025[_0x585919(0x1ce)][_0x585919(0x1e3)]?.['toast']?.[_0x585919(0x1b4)]?.(_0x585919(0x210)+_0x477ceb[_0x585919(0x1f3)][_0x585919(0x1b8)]+'\x20done\x20jobs'),await this[_0x585919(0x215)]();}catch(_0x240c75){_0x480025['$ok']['shared']?.[_0x585919(0x1b5)]?.['error']?.(_0x585919(0x1ae)+(_0x240c75?.['message']||_0x240c75));}finally{this['bulkBusy']=!0x1;}}},async 'deleteAllFailed'(){const _0x323ee8=_0x221c7d;if(await _0x480025[_0x323ee8(0x1ce)]['shared'][_0x323ee8(0x1f2)][_0x323ee8(0x1cf)](_0x323ee8(0x1ff)+(this[_0x323ee8(0x1d5)]?'\x20for\x20type\x20\x22<b>'+this['type']+_0x323ee8(0x21d):'')+_0x323ee8(0x1c3))){this[_0x323ee8(0x1eb)]=!0x0;try{const _0x1718c5={'limit':0xc350};this[_0x323ee8(0x1d5)]&&(_0x1718c5[_0x323ee8(0x1d5)]=this[_0x323ee8(0x1d5)]);const _0x19a26d=await fetch(_0x4ebce8['apiBase']+_0x323ee8(0x1ef),{'method':_0x323ee8(0x1f6),'headers':{'Content-Type':_0x323ee8(0x22b)},'body':JSON[_0x323ee8(0x1c8)](_0x1718c5)}),_0x48477e=await _0x19a26d[_0x323ee8(0x1b3)]();if(!_0x19a26d['ok'])throw new Error(_0x48477e?.[_0x323ee8(0x21f)]?.[_0x323ee8(0x1e9)]||_0x323ee8(0x226));_0x480025[_0x323ee8(0x1ce)][_0x323ee8(0x1e3)]?.[_0x323ee8(0x1b5)]?.[_0x323ee8(0x1b4)]?.(_0x323ee8(0x210)+_0x48477e[_0x323ee8(0x1f3)]['deleted']+_0x323ee8(0x228)),await this[_0x323ee8(0x215)]();}catch(_0x3413ab){_0x480025['$ok'][_0x323ee8(0x1e3)]?.['toast']?.[_0x323ee8(0x21f)]?.(_0x323ee8(0x1e7)+(_0x3413ab?.['message']||_0x3413ab));}finally{this[_0x323ee8(0x1eb)]=!0x1;}}},async 'clearStuck'(){const _0xd714ce=_0x221c7d;if(await _0x480025[_0xd714ce(0x1ce)][_0xd714ce(0x1e3)]['modal'][_0xd714ce(0x1cf)](_0xd714ce(0x1e6)+(this[_0xd714ce(0x1d5)]?_0xd714ce(0x1e8)+this[_0xd714ce(0x1d5)]+_0xd714ce(0x21d):'')+'?<br><br>Stuck\x20jobs\x20are\x20running\x20jobs\x20whose\x20TTL\x20has\x20expired.\x20They\x20will\x20be\x20permanently\x20deleted,\x20not\x20re-queued.')){this[_0xd714ce(0x1eb)]=!0x0;try{const _0x9f7588={'limit':0xc350};this[_0xd714ce(0x1d5)]&&(_0x9f7588[_0xd714ce(0x1d5)]=this[_0xd714ce(0x1d5)]);const _0x44ddd2=await fetch(_0x4ebce8[_0xd714ce(0x202)]+_0xd714ce(0x20c),{'method':_0xd714ce(0x1f6),'headers':{'Content-Type':_0xd714ce(0x22b)},'body':JSON[_0xd714ce(0x1c8)](_0x9f7588)}),_0x3e3a24=await _0x44ddd2['json']();if(!_0x44ddd2['ok'])throw new Error(_0x3e3a24?.[_0xd714ce(0x21f)]?.['message']||_0xd714ce(0x226));_0x480025['$ok']['shared']?.[_0xd714ce(0x1b5)]?.[_0xd714ce(0x1b4)]?.('Cleared\x20'+_0x3e3a24['data'][_0xd714ce(0x1b8)]+_0xd714ce(0x221)),await this[_0xd714ce(0x215)]();}catch(_0x4be654){_0x480025[_0xd714ce(0x1ce)]['shared']?.[_0xd714ce(0x1b5)]?.[_0xd714ce(0x21f)]?.('Clear\x20stuck\x20failed:\x20'+(_0x4be654?.[_0xd714ce(0x1e9)]||_0x4be654));}finally{this['bulkBusy']=!0x1;}}},'isStatusOn'(_0x3a6dc2){const _0x2ac0a7=_0x221c7d;return(this[_0x2ac0a7(0x1fb)]??null)===(_0x3a6dc2??null);},'statusBadgeStyle'(_0x2600e4){const _0x1f1399=_0x221c7d,_0x26ad09={'pending':_0x1f1399(0x1e2),'running':_0x1f1399(0x1f7),'done':_0x1f1399(0x232),'failed':_0x1f1399(0x1bd)}[_0x2600e4]||_0x1f1399(0x1bf);return'color:'+_0x26ad09+_0x1f1399(0x212)+_0x26ad09+';';},'formatWhen'(_0x1c2252){const _0x42a97d=_0x221c7d;if(!_0x1c2252)return'—';const _0x3f4f65=_0x1c2252-Date[_0x42a97d(0x1c9)](),_0xf9f829=Math[_0x42a97d(0x200)](_0x3f4f65),_0x813632=Math['round'](_0xf9f829/0x3e8);if(_0x813632<0x5)return _0x3f4f65<=0x0?'now':_0x42a97d(0x211);if(_0x813632<0x3c)return _0x3f4f65<0x0?_0x813632+_0x42a97d(0x223):_0x42a97d(0x1ee)+_0x813632+'s';const _0x2f430c=Math['round'](_0x813632/0x3c);if(_0x2f430c<0x3c)return _0x3f4f65<0x0?_0x2f430c+'m\x20ago':'in\x20'+_0x2f430c+'m';const _0x5a588c=Math[_0x42a97d(0x235)](_0x2f430c/0x3c);if(_0x5a588c<0x18)return _0x3f4f65<0x0?_0x5a588c+_0x42a97d(0x1e5):_0x42a97d(0x1ee)+_0x5a588c+'h';const _0x4507ed=Math['round'](_0x5a588c/0x18);return _0x3f4f65<0x0?_0x4507ed+_0x42a97d(0x1de):_0x42a97d(0x1ee)+_0x4507ed+'d';},'shortId':_0x1e3040=>(_0x1e3040||'')['slice'](0x0,0x8),'_unsubs':[],'_liveTimer':null,'pendingUpdates':0x0,'_scheduleLiveReload'(){const _0x7bf9d8=_0x221c7d;this[_0x7bf9d8(0x1f1)]++,clearTimeout(this[_0x7bf9d8(0x1dd)]),this[_0x7bf9d8(0x1dd)]=setTimeout(async()=>{const _0x382694=_0x7bf9d8;await this[_0x382694(0x22e)][_0x382694(0x1c0)](),await this[_0x382694(0x21a)](),_0x480025[_0x382694(0x1d8)](_0x382694(0x215)),this[_0x382694(0x1f1)]=0x0;},0xbb8);}}),async 'init'(_0x52837f){const _0x3df35e=_0x221c7d;this[_0x3df35e(0x20d)](),_0x52837f[_0x3df35e(0x1c5)](()=>_0x52837f[_0x3df35e(0x1be)][_0x3df35e(0x1d5)],()=>this[_0x3df35e(0x20d)]()),_0x52837f[_0x3df35e(0x1c5)](()=>_0x52837f[_0x3df35e(0x1ce)][_0x3df35e(0x1d6)][_0x3df35e(0x1da)][_0x3df35e(0x216)],()=>{const _0x1f9775=_0x3df35e;this[_0x1f9775(0x1bc)]=null,this[_0x1f9775(0x22e)][_0x1f9775(0x1ba)](),Promise[_0x1f9775(0x213)]([this[_0x1f9775(0x22e)][_0x1f9775(0x1c0)](),this[_0x1f9775(0x21a)]()]);}),await Promise[_0x3df35e(0x213)]([this[_0x3df35e(0x22e)]['load'](),this[_0x3df35e(0x21a)]()]);},'mount'(){const _0x199967=_0x221c7d,_0x3c37c4=()=>this['_scheduleLiveReload']();this['_unsubs']=[_0x5ede24['on'](_0x199967(0x21b),_0x3c37c4),_0x5ede24['on']('queue:done',_0x3c37c4),_0x5ede24['on'](_0x199967(0x1b1),_0x3c37c4),_0x5ede24['on'](_0x199967(0x22a),_0x3c37c4),_0x5ede24['on'](_0x199967(0x1c2),_0x3c37c4),_0x5ede24['on'](_0x199967(0x225),_0x3c37c4)];},'unmount'(){const _0x4de986=_0x221c7d;clearTimeout(this['_liveTimer']),clearTimeout(this[_0x4de986(0x234)]);for(const _0x1ffb3b of this[_0x4de986(0x20a)])_0x1ffb3b();this[_0x4de986(0x20a)]=[];},'template':'\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20height:100%;\x20min-height:0;\x20gap:10px;\x22>\x0a\x0a\x20\x20<!--\x20──\x20Row\x201:\x20Status\x20filters\x20+\x20Enqueue\x20──\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20gap:6px;\x20align-items:center;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(null)\x22\x20\x20\x20\x20\x20\x20:class=\x22isStatusOn(null)\x20\x20\x20\x20\x20\x20?\x20\x27pill\x20pill--on\x27\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20\x27pill\x27\x22>All<span\x20class=\x22pill-count\x22>{{\x20statusCount(null)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27pending\x27)\x22\x20:class=\x22isStatusOn(\x27pending\x27)\x20?\x20\x27pill\x20pill--on\x20pill--p\x27\x20\x20\x20:\x20\x27pill\x20pill--p\x27\x22>Pending<span\x20class=\x22pill-count\x22>{{\x20statusCount(\x27pending\x27)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27running\x27)\x22\x20:class=\x22isStatusOn(\x27running\x27)\x20?\x20\x27pill\x20pill--on\x20pill--r\x27\x20\x20\x20:\x20\x27pill\x20pill--r\x27\x22>Running<span\x20class=\x22pill-count\x22>{{\x20statusCount(\x27running\x27)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27failed\x27)\x22\x20\x20:class=\x22isStatusOn(\x27failed\x27)\x20\x20?\x20\x27pill\x20pill--on\x20pill--f\x27\x20\x20\x20:\x20\x27pill\x20pill--f\x27\x22>Failed<span\x20\x20class=\x22pill-count\x22>{{\x20statusCount(\x27failed\x27)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27done\x27)\x22\x20\x20\x20\x20:class=\x22isStatusOn(\x27done\x27)\x20\x20\x20\x20?\x20\x27pill\x20pill--on\x20pill--d\x27\x20\x20\x20:\x20\x27pill\x20pill--d\x27\x22>Done<span\x20\x20\x20\x20class=\x22pill-count\x22>{{\x20statusCount(\x27done\x27)\x20}}</span></button>\x0a\x0a\x20\x20\x20\x20<div\x20style=\x22flex:1;\x22></div>\x0a\x0a\x20\x20\x20\x20<select\x20@change=\x22setSort($el.value)\x22\x20:value=\x22sortMode\x22\x20style=\x22font-size:12px;\x22>\x0a\x20\x20\x20\x20\x20\x20<option\x20value=\x22when\x22>Sort:\x20When</option>\x0a\x20\x20\x20\x20\x20\x20<option\x20value=\x22priority\x22>Sort:\x20Priority</option>\x0a\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20<button\x20@click=\x22toggleDirection\x22\x20style=\x22font-size:12px;\x20min-width:32px;\x22\x20title=\x22Toggle\x20sort\x20direction\x22>\x0a\x20\x20\x20\x20\x20\x20{{\x20direction\x20===\x20\x27asc\x27\x20?\x20\x27▲\x27\x20:\x20\x27▼\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<button\x20@click=\x22openEnqueue\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2013%,\x20transparent);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2033%,\x20transparent);\x20color:var(--okdb-accent);\x20font-weight:600;\x20padding:4px\x2014px;\x20font-size:12px;\x20white-space:nowrap;\x22>\x0a\x20\x20\x20\x20\x20\x20+\x20Enqueue\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20──\x20Row\x202:\x20Bulk\x20actions\x20──\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20gap:6px;\x20align-items:center;\x20flex-wrap:wrap;\x20padding:5px\x200;\x20border-top:1px\x20solid\x20var(--okdb-app-surface-2);\x20border-bottom:1px\x20solid\x20var(--okdb-app-surface-2);\x22>\x0a\x20\x20\x20\x20<button\x20@click=\x22retryAllFailed()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-warning);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-warning)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Reset\x20all\x20failed\x20jobs\x20back\x20to\x20pending\x22>\x0a\x20\x20\x20\x20\x20\x20↺\x20Retry\x20Failed\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div\x20style=\x22width:1px;\x20height:16px;\x20background:var(--okdb-app-border);\x22></div>\x0a\x20\x20\x20\x20<button\x20@click=\x22deleteAllDone()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-success);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-success)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Delete\x20all\x20done\x20jobs\x20in\x20one\x20index\x20pass\x22>\x0a\x20\x20\x20\x20\x20\x20✕\x20Clear\x20Done\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<button\x20@click=\x22deleteAllFailed()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-danger);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-danger)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Permanently\x20delete\x20all\x20failed\x20jobs\x22>\x0a\x20\x20\x20\x20\x20\x20✕\x20Clear\x20Failed\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<button\x20@click=\x22clearStuck()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-app-fg-muted);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-app-fg-muted)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Delete\x20running\x20jobs\x20whose\x20claim\x20TTL\x20has\x20expired\x20(permanently,\x20not\x20re-queued)\x22>\x0a\x20\x20\x20\x20\x20\x20✕\x20Clear\x20Stuck\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div\x20style=\x22width:1px;\x20height:16px;\x20background:var(--okdb-app-border);\x22></div>\x0a\x20\x20\x20\x20<button\x20@click=\x22rebuildStats\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:11px;\x20opacity:.4;\x20background:transparent;\x20border-color:transparent;\x20padding:3px\x208px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Full\x20scan\x20rebuild\x20of\x20stats\x20counters\x22>\x0a\x20\x20\x20\x20\x20\x20Rebuild\x20Stats\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<if\x20:=\x22pendingUpdates\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-warning);\x20opacity:.8;\x20margin-left:4px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20⟳\x20{{\x20pendingUpdates\x20}}\x20pending\x0a\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20Table\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20position:relative;\x20flex:1;\x20min-height:0;\x22>\x0a\x20\x20\x20\x20<if\x20:=\x22query.busy\x22>\x0a\x20\x20\x20\x20\x20\x20<ok-overlay>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22loader-center\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-icon\x20name=\x22loader\x22\x20class=\x22spin\x22\x20style=\x22width:32px;height:32px;\x22></ok-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</ok-overlay>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22query.loadError\x20&&\x20!query.busy\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22color:var(--okdb-danger);\x20padding:12px\x2014px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20border-radius:8px;\x20margin-bottom:8px;\x20font-size:13px;\x20display:flex;\x20align-items:center;\x20gap:10px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22flex:1;\x22>{{\x20query.loadError\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22query.load()\x22\x20style=\x22font-size:11px;\x20color:var(--okdb-danger);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20padding:3px\x2010px;\x22>Retry</button>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<ok-table\x20:data=\x22query.values\x22\x20no-scroll\x20style=\x22flex:1;\x20min-height:0;\x20overflow:auto;\x22>\x0a\x20\x20\x20\x20\x20\x20<columns>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x2280px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Status</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20:style=\x22statusBadgeStyle(row.status)\x22>{{\x20row.status\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x221fr\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Type\x20+\x20Metadata</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:2px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>{{\x20row.type\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20gap:4px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.tags\x20&&\x20row.tags.length\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x22>{{\x20row.tags.join(\x27,\x20\x27)\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.progress\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x22>{{\x20row.progress\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.cron\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x20color:var(--okdb-indigo);\x22>cron:\x20{{\x20row.cron\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.idempotency_key\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x20color:#34d399;\x22>key:\x20{{\x20row.idempotency_key\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x22130px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>When</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>{{\x20formatWhen(row.when)\x20}}</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x2270px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Tries</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22row.tries\x20>=\x20row.max_tries\x20&&\x20row.max_tries\x20>\x200\x20?\x20\x27color:var(--okdb-danger);\x27\x20:\x20\x27\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20row.tries\x20}}\x20/\x20{{\x20row.max_tries\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x22180px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Actions</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22openEditJob(row)\x22\x20:disabled=\x22row._busy\x22\x20style=\x22font-size:11px;\x22>Edit</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22retryJob(row)\x22\x20\x20:disabled=\x22row._busy\x22\x20style=\x22font-size:11px;\x22>Retry</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.status\x20===\x20\x27pending\x27\x20||\x20row.status\x20===\x20\x27running\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22cancelJob(row)\x22\x20:disabled=\x22row._busy\x22\x20style=\x22font-size:11px;\x22>Cancel</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22deleteJob(row)\x22\x20:disabled=\x22row._busy\x22\x20style=\x22color:#ff6c6b;\x20font-size:11px;\x22>Delete</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20</columns>\x0a\x0a\x20\x20\x20\x20\x20\x20<expanded\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:10px;\x20font-size:12px;\x20display:flex;\x20flex-direction:column;\x20gap:6px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.error_stack\x20||\x20row.status_message\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.status_message\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22white-space:pre-wrap;\x20opacity:.9;\x20margin-bottom:6px;\x22>{{\x20row.status_message\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.error_stack\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<pre\x20style=\x22white-space:pre-wrap;\x20opacity:.85;\x20max-height:220px;\x20overflow:auto;\x20background:var(--okdb-app-bg-deep);\x20padding:8px;\x20border-radius:4px;\x22>{{\x20row.error_stack\x20}}</pre>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-wrap:wrap;\x20gap:12px;\x20opacity:.8;\x20font-size:11px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>ID:\x20<b>{{\x20row.id\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Status\x20code:\x20<b>{{\x20row.status_code\x20||\x20\x27—\x27\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Max\x20tries:\x20<b>{{\x20row.max_tries\x20??\x20\x27—\x27\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Retry\x20delay:\x20<b>{{\x20row.retry_delay\x20??\x200\x20}}ms</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Backoff:\x20<b>{{\x20row.backoff_multiplier\x20??\x201\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Priority:\x20<b>{{\x20row.priority\x20??\x200\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:=\x22row.bucket\x22\x20style=\x22display:inline;\x22>Bucket:\x20<b>{{\x20row.bucket\x20||\x20\x27—\x27\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Claim\x20expires:\x20<b>{{\x20formatWhen(row.claim_expires)\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<details\x20style=\x22margin-top:6px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<summary\x20style=\x22cursor:pointer;\x20opacity:.8;\x20font-size:11px;\x22>Raw\x20job</summary>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<pre\x20style=\x22white-space:pre-wrap;\x20opacity:.85;\x20max-height:260px;\x20overflow:auto;\x20margin-top:4px;\x20background:var(--okdb-app-bg-deep);\x20padding:8px;\x20border-radius:4px;\x20font-size:10px;\x22>{{\x20row\x20}}</pre>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</details>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</expanded>\x0a\x20\x20\x20\x20</ok-table>\x0a\x0a\x20\x20\x20\x20<!--\x20Pagination\x20-->\x0a\x20\x20\x20\x20<div\x20class=\x22ok-pager\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22query.prevPage()\x22\x20:disabled=\x22!query.hasPrev\x20||\x20query.busy\x22>‹\x20Prev</button>\x0a\x20\x20\x20\x20\x20\x20<span>{{\x20statusCount(status)\x20}}\x20total\x20·\x20{{\x20query.pageSize\x20}}/page</span>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22query.nextPage()\x22\x20:disabled=\x22!query.hasNext\x20||\x20query.busy\x22>Next\x20›</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','style':_0x221c7d(0x222)};
1
+ const _0x5013c1=_0x3ae3;(function(_0x57c268,_0x1fd176){const _0x54017a=_0x3ae3,_0x5edff8=_0x57c268();while(!![]){try{const _0x5bbbdb=-parseInt(_0x54017a(0xd4))/0x1*(-parseInt(_0x54017a(0xbe))/0x2)+-parseInt(_0x54017a(0x111))/0x3*(parseInt(_0x54017a(0xdf))/0x4)+-parseInt(_0x54017a(0xf2))/0x5+-parseInt(_0x54017a(0xdc))/0x6+parseInt(_0x54017a(0x123))/0x7+parseInt(_0x54017a(0xa7))/0x8+parseInt(_0x54017a(0xe5))/0x9;if(_0x5bbbdb===_0x1fd176)break;else _0x5edff8['push'](_0x5edff8['shift']());}catch(_0x4adf19){_0x5edff8['push'](_0x5edff8['shift']());}}}(_0xe319,0x87fa2));import _0x5a46e5 from'@toolkit/elements/ok-icon.ok.js';import _0x1309db from'@toolkit/elements/ok-table.ok.js';import _0x488880 from'@toolkit/core/ok-overlay.ok.js';function _0x3ae3(_0x1372c2,_0x51ed58){_0x1372c2=_0x1372c2-0xa1;const _0xe3196e=_0xe319();let _0x3ae39d=_0xe3196e[_0x1372c2];return _0x3ae39d;}function _0xe319(){const _0x37de54=['total','Clear\x20all\x20\x22done\x22\x20jobs','bulkBusy','in\x20a\x20moment','h\x20ago','_nextCursor','var(--okdb-success)','indexOf','cursor','_busy','resetPaging','busy','function','modal','Edit\x20Job\x20','isArray','byType','sortMode','queue:failed','cancel\x20failed','/remove','confirm','52wkfQHb','POST','Delete\x20failed','/queue/job/','Clear\x20failed\x20jobs\x20error:\x20','\x20stuck\x20jobs','values','/queue/clearDone','application/json','items','push','queue:removed','toast','now','_scheduleLiveReload','$watch','<edit-job-modal\x20:modal=\x22modal\x22\x20:job-id=\x22jobId\x22\x20:on-done=\x22onDone\x22\x20/>','Cancel\x20failed','\x20done\x20jobs','open','set','/cancel','35942duwqRt','Cancel\x20job\x20<code>','/queue/stats','sort','hasNext','Cancelled\x20','pageSize','hasPrev','3537168MDHYle','info','_unsubs','12StNkYi','abs','Delete\x20all\x20\x22failed\x22\x20jobs','Delete\x20all\x20stuck\x20(expired-claim)\x20running\x20jobs','$dispatch','/queue/retryFailed','5656023hHybRA','$ok','byStatus','_applyFilterAndReload','_cursors','Deleted\x20','asc',';\x20border-color:','Retry\x20failed:\x20','slice','deleted','Cleared\x20','load','1513060LPocRH','queue:enqueued','Clear\x20stuck\x20failed:\x20','Clear\x20done\x20failed:\x20','apiBase','$attr','result','round','Bulk\x20retry\x20failed:\x20','loadError','stats','retry\x20failed','</code>?','type','Retry\x20job\x20<code>','Delete\x20job\x20<code>','data','stores','Retried\x20','HTTP\x20','refresh','success','when','json','all','in\x20','direction','?<br><br>Stuck\x20jobs\x20are\x20running\x20jobs\x20whose\x20TTL\x20has\x20expired.\x20They\x20will\x20be\x20permanently\x20deleted,\x20not\x20re-queued.','_applySort','var(--okdb-danger)','message','996516gEMcwk','/queue/clearFailed','error','\x20for\x20type\x20\x22<b>','shared','d\x20ago','color:','loadStats','stringify','.pill{display:inline-flex;align-items:center;gap:5px;border:1px\x20solid\x20var(--okdb-app-border);background:var(--okdb-app-surface);padding:4px\x2010px;border-radius:999px;font-size:12px;cursor:pointer;color:var(--okdb-app-fg-muted);transition:border-color\x20.12s,color\x20.12s}.pill:hover{border-color:#3b4754;color:var(--okdb-app-fg)}.pill--on{box-shadow:0\x200\x200\x201px\x20rgba(255,255,255,.07)\x20inset}.pill--p.pill--on{color:var(--okdb-warning);border-color:var(--okdb-warning)}.pill--r.pill--on{color:var(--okdb-info);border-color:var(--okdb-info)}.pill--f.pill--on{color:var(--okdb-danger);border-color:var(--okdb-danger)}.pill--d.pill--on{color:var(--okdb-success);border-color:var(--okdb-success)}.pill-count{font-size:11px;opacity:.65;font-variant-numeric:tabular-nums}.status-badge{display:inline-block;padding:2px\x208px;border-radius:999px;font-size:11px;border:1px\x20solid;white-space:nowrap}','</b>\x22','_liveTimer','length','?<br><br>This\x20cannot\x20be\x20undone.','selectedEnv','queue-jobs','status','_pageIdx','1979166lFFtKV','pendingUpdates','_scheduleStats','/queue/reconcile','_statsTimer','queue:reconciled','failed','\x20failed\x20jobs','/queue/jobs?','query','retried','4799528VhQgdX'];_0xe319=function(){return _0x37de54;};return _0xe319();}import _0x46c9d5 from'../modals/edit-job-modal.ok.js';import _0x44b236 from'../modals/enqueue-job-modal.ok.js';import _0x3d44de from'../../../stores/events-store.js';import _0x3ebfbd from'../../../stores/okdb-store.js';export default{'tag':_0x5013c1(0x120),'dependencies':[_0x5a46e5,_0x1309db,_0x488880,_0x44b236,_0x46c9d5],'attr':{'type':{}},'context':_0x4b5458=>({'query':function({apiBase:_0x3b7d08,pageSize:_0x46d758=0x32}){const _0x2a2866=_0x5013c1;return{'busy':!0x1,'values':[],'total':0x0,'hasNext':!0x1,'hasPrev':!0x1,'pageSize':_0x46d758,'loadError':null,'type':null,'status':null,'sort':_0x2a2866(0x108),'direction':_0x2a2866(0xeb),'_cursors':[null],'_pageIdx':0x0,'_nextCursor':null,'resetPaging'(){const _0x377358=_0x2a2866;this[_0x377358(0xe9)]=[null],this['_pageIdx']=0x0,this['_nextCursor']=null,this[_0x377358(0xd8)]=!0x1,this[_0x377358(0xdb)]=!0x1;},async 'load'(){const _0x4af9f5=_0x2a2866,_0x21c499=_0x4af9f5(0xb4)==typeof _0x3b7d08?_0x3b7d08():_0x3b7d08,_0x2d8178=this[_0x4af9f5(0xe9)][this['_pageIdx']];this['busy']=!0x0,this['loadError']=null;try{const _0x2bc91a=new URLSearchParams({'limit':String(this[_0x4af9f5(0xda)]),'sort':this['sort']??_0x4af9f5(0x108),'direction':this[_0x4af9f5(0x10c)]??'asc'});this[_0x4af9f5(0xff)]&&_0x2bc91a['set'](_0x4af9f5(0xff),this['type']),this['status']&&_0x2bc91a['set'](_0x4af9f5(0x121),this[_0x4af9f5(0x121)]),null!=_0x2d8178&&_0x2bc91a[_0x4af9f5(0xd2)](_0x4af9f5(0xb0),JSON[_0x4af9f5(0x119)](_0x2d8178));const _0x3cead8=await fetch(_0x21c499+_0x4af9f5(0xa4)+_0x2bc91a),_0x27cfdb=await _0x3cead8[_0x4af9f5(0x109)]();if(!_0x3cead8['ok'])throw new Error(_0x27cfdb?.[_0x4af9f5(0x113)]?.['message']||_0x4af9f5(0x105)+_0x3cead8[_0x4af9f5(0x121)]);const _0x248a69=_0x27cfdb[_0x4af9f5(0xf8)]??_0x27cfdb[_0x4af9f5(0x102)]??_0x27cfdb;this[_0x4af9f5(0xc4)]=Array[_0x4af9f5(0xb7)](_0x248a69[_0x4af9f5(0xc7)])?_0x248a69[_0x4af9f5(0xc7)]:Array[_0x4af9f5(0xb7)](_0x248a69)?_0x248a69:[],this[_0x4af9f5(0xad)]=_0x248a69[_0x4af9f5(0xb0)]??null,this[_0x4af9f5(0xd8)]=null!=this['_nextCursor'],this[_0x4af9f5(0xdb)]=this[_0x4af9f5(0x122)]>0x0;}catch(_0x23fa8b){this[_0x4af9f5(0xfb)]=_0x23fa8b?.[_0x4af9f5(0x110)]||String(_0x23fa8b),this['values']=[];}finally{this[_0x4af9f5(0xb3)]=!0x1;}},async 'nextPage'(){const _0x2f6c42=_0x2a2866;this[_0x2f6c42(0xd8)]&&!this[_0x2f6c42(0xb3)]&&(this['_pageIdx']+0x1>=this[_0x2f6c42(0xe9)][_0x2f6c42(0x11d)]&&this['_cursors'][_0x2f6c42(0xc8)](this[_0x2f6c42(0xad)]),this[_0x2f6c42(0x122)]++,await this[_0x2f6c42(0xf1)]());},async 'prevPage'(){const _0x3d32be=_0x2a2866;this[_0x3d32be(0xdb)]&&!this[_0x3d32be(0xb3)]&&(this[_0x3d32be(0x122)]--,await this[_0x3d32be(0xf1)]());}};}({'apiBase':()=>_0x3ebfbd[_0x5013c1(0xf6)],'pageSize':0x32}),'type':null,'status':null,'sortMode':'when','direction':'asc','stats':null,'_statsTimer':null,async 'loadStats'(){const _0x4bea28=_0x5013c1;try{const _0x1b6366=await fetch(_0x3ebfbd[_0x4bea28(0xf6)]+_0x4bea28(0xd6));if(_0x1b6366['ok']){const _0x409843=await _0x1b6366[_0x4bea28(0x109)]();this[_0x4bea28(0xfc)]=_0x409843['result']??_0x409843['data']??null;}}catch{}},'_scheduleStats'(){const _0x27fcc4=_0x5013c1;clearTimeout(this[_0x27fcc4(0x127)]),this[_0x27fcc4(0x127)]=setTimeout(()=>this[_0x27fcc4(0x118)](),0x190);},'statusCount'(_0x165ede){const _0x36f972=_0x5013c1;if(!this[_0x36f972(0xfc)])return'';const _0x457258=this[_0x36f972(0xff)];return _0x165ede?_0x457258?this[_0x36f972(0xfc)][_0x36f972(0xb8)]?.[_0x457258]?.[_0x36f972(0xe7)]?.[_0x165ede]??0x0:this[_0x36f972(0xfc)]['byStatus']?.[_0x165ede]??0x0:_0x457258?this[_0x36f972(0xfc)][_0x36f972(0xb8)]?.[_0x457258]?.[_0x36f972(0xa8)]??0x0:this[_0x36f972(0xfc)][_0x36f972(0xa8)]??0x0;},'applyTypeAttr'(){const _0xe33325=_0x5013c1;var _0x4ed2fa;this[_0xe33325(0xff)]=null==(_0x4ed2fa=_0x4b5458[_0xe33325(0xf7)][_0xe33325(0xff)])||''===_0x4ed2fa?null:String(_0x4ed2fa),this[_0xe33325(0xe8)]();},'setStatus'(_0x32c5d2){const _0x14bc44=_0x5013c1;this[_0x14bc44(0x121)]=null==_0x32c5d2||''===_0x32c5d2?null:_0x32c5d2,this['_applyFilterAndReload']();},'setSort'(_0x27476b){const _0x1740e1=_0x5013c1;this['sortMode']=_0x27476b,this[_0x1740e1(0x10e)](),this[_0x1740e1(0xa5)][_0x1740e1(0xb2)](),this[_0x1740e1(0xa5)][_0x1740e1(0xf1)]();},'toggleDirection'(){const _0x46edf1=_0x5013c1;this[_0x46edf1(0x10c)]=_0x46edf1(0xeb)===this[_0x46edf1(0x10c)]?'desc':_0x46edf1(0xeb),this[_0x46edf1(0x10e)](),this[_0x46edf1(0xa5)][_0x46edf1(0xb2)](),this[_0x46edf1(0xa5)][_0x46edf1(0xf1)]();},'_applySort'(){const _0x126b0c=_0x5013c1;this[_0x126b0c(0xa5)][_0x126b0c(0xd7)]=this[_0x126b0c(0xb9)],this[_0x126b0c(0xa5)]['direction']=this[_0x126b0c(0x10c)];},'_applyFilterAndReload'(){const _0x5d7519=_0x5013c1;this[_0x5d7519(0xa5)][_0x5d7519(0xff)]=this['type'],this['query'][_0x5d7519(0x121)]=this[_0x5d7519(0x121)],this[_0x5d7519(0x10e)](),this[_0x5d7519(0xa5)][_0x5d7519(0xb2)](),this[_0x5d7519(0xa5)]['load']();},async 'refresh'(){const _0x13f519=_0x5013c1;clearTimeout(this[_0x13f519(0x11c)]),this[_0x13f519(0x124)]=0x0;try{await fetch(_0x3ebfbd[_0x13f519(0xf6)]+_0x13f519(0x126),{'method':'POST'});}catch{}await this['query'][_0x13f519(0xf1)](),await this[_0x13f519(0x118)](),_0x4b5458[_0x13f519(0xe3)](_0x13f519(0x106));},async 'rebuildStats'(){const _0x1fcd8c=_0x5013c1;try{await fetch(_0x3ebfbd[_0x1fcd8c(0xf6)]+'/queue/stats/rebuild',{'method':_0x1fcd8c(0xbf)}),_0x4b5458['$ok'][_0x1fcd8c(0x115)]?.[_0x1fcd8c(0xca)]?.['success']?.('Stats\x20rebuilt'),await this[_0x1fcd8c(0x118)](),_0x4b5458[_0x1fcd8c(0xe3)](_0x1fcd8c(0x106)),await this[_0x1fcd8c(0xa5)][_0x1fcd8c(0xf1)]();}catch{_0x4b5458[_0x1fcd8c(0xe6)]['shared']?.['toast']?.[_0x1fcd8c(0x113)]?.('Stats\x20rebuild\x20failed');}},async 'openEnqueue'(){const _0x4329f7=_0x5013c1,_0x5381bb=this;await _0x4b5458['$ok'][_0x4329f7(0x115)][_0x4329f7(0xb5)][_0x4329f7(0xd1)]({'owner':_0x4b5458,'title':'Enqueue\x20Job','content':'<enqueue-job-modal\x20:modal=\x22modal\x22\x20:initial-type=\x22initialType\x22\x20:on-done=\x22onDone\x22\x20/>','context':_0xedb295=>({'modal':_0xedb295,'initialType':_0x5381bb[_0x4329f7(0xff)]||'','onDone':async()=>{const _0x28e2bf=_0x4329f7;_0x4b5458[_0x28e2bf(0xe6)]['shared']?.[_0x28e2bf(0xca)]?.[_0x28e2bf(0x107)]?.('Job\x20enqueued'),await _0x5381bb['refresh']();}})});},async 'openEditJob'(_0x3a83ab){const _0x8a56dc=_0x5013c1,_0x4abd44=this;await _0x4b5458[_0x8a56dc(0xe6)]['shared']['modal'][_0x8a56dc(0xd1)]({'owner':_0x4b5458,'title':_0x8a56dc(0xb6)+_0x3a83ab['id'][_0x8a56dc(0xee)](0x0,0x8),'content':_0x8a56dc(0xce),'context':_0x2140f4=>({'modal':_0x2140f4,'jobId':_0x3a83ab['id'],'onDone':async()=>{const _0x29e3e6=_0x8a56dc;await _0x4abd44[_0x29e3e6(0x106)]();}})});},async 'deleteJob'(_0x498ad1){const _0x2520f9=_0x5013c1;if(await _0x4b5458[_0x2520f9(0xe6)][_0x2520f9(0x115)][_0x2520f9(0xb5)]['confirm'](_0x2520f9(0x101)+_0x498ad1['id'][_0x2520f9(0xee)](0x0,0x8)+_0x2520f9(0xfe))){_0x498ad1[_0x2520f9(0xb1)]=!0x0;try{if(!(await fetch(_0x3ebfbd[_0x2520f9(0xf6)]+_0x2520f9(0xc1)+_0x498ad1['id']+_0x2520f9(0xbc),{'method':'POST'}))['ok'])throw new Error('remove\x20failed');const _0x3592ef=this[_0x2520f9(0xa5)][_0x2520f9(0xc4)][_0x2520f9(0xaf)](_0x498ad1);_0x3592ef>=0x0&&this[_0x2520f9(0xa5)][_0x2520f9(0xc4)]['splice'](_0x3592ef,0x1),_0x4b5458['$ok'][_0x2520f9(0x115)][_0x2520f9(0xca)]?.['info'](_0x2520f9(0xea)+_0x498ad1['id'][_0x2520f9(0xee)](0x0,0x8)),_0x4b5458[_0x2520f9(0xe3)](_0x2520f9(0x106)),this[_0x2520f9(0x125)]();}catch{_0x4b5458[_0x2520f9(0xe6)]['shared'][_0x2520f9(0xca)]?.[_0x2520f9(0x113)](_0x2520f9(0xc0));}finally{_0x498ad1['_busy']=!0x1;}}},async 'cancelJob'(_0x5bd670){const _0x46615d=_0x5013c1;if(await _0x4b5458[_0x46615d(0xe6)][_0x46615d(0x115)]['modal'][_0x46615d(0xbd)](_0x46615d(0xd5)+_0x5bd670['id'][_0x46615d(0xee)](0x0,0x8)+_0x46615d(0xfe))){_0x5bd670[_0x46615d(0xb1)]=!0x0;try{if(!(await fetch(_0x3ebfbd[_0x46615d(0xf6)]+_0x46615d(0xc1)+_0x5bd670['id']+_0x46615d(0xd3),{'method':_0x46615d(0xbf)}))['ok'])throw new Error(_0x46615d(0xbb));_0x4b5458[_0x46615d(0xe6)][_0x46615d(0x115)][_0x46615d(0xca)]?.[_0x46615d(0xdd)](_0x46615d(0xd9)+_0x5bd670['id']['slice'](0x0,0x8)),await this[_0x46615d(0x106)]();}catch{_0x4b5458[_0x46615d(0xe6)][_0x46615d(0x115)]['toast']?.['error'](_0x46615d(0xcf));}finally{_0x5bd670[_0x46615d(0xb1)]=!0x1;}}},async 'retryJob'(_0x2f99ed){const _0x15aecb=_0x5013c1;if(await _0x4b5458[_0x15aecb(0xe6)][_0x15aecb(0x115)][_0x15aecb(0xb5)][_0x15aecb(0xbd)](_0x15aecb(0x100)+_0x2f99ed['id'][_0x15aecb(0xee)](0x0,0x8)+_0x15aecb(0xfe))){_0x2f99ed[_0x15aecb(0xb1)]=!0x0;try{const _0x5435ce=await fetch(_0x3ebfbd[_0x15aecb(0xf6)]+'/queue/job/'+_0x2f99ed['id']+'/retry',{'method':_0x15aecb(0xbf)}),_0x4fe620=await _0x5435ce[_0x15aecb(0x109)]();if(!_0x5435ce['ok'])throw new Error(_0x4fe620?.['error']?.['message']||_0x15aecb(0xfd));_0x4b5458[_0x15aecb(0xe6)]['shared'][_0x15aecb(0xca)]?.[_0x15aecb(0x107)](_0x15aecb(0x104)+_0x2f99ed['id']['slice'](0x0,0x8)),await this[_0x15aecb(0x106)]();}catch(_0x5849dc){_0x4b5458[_0x15aecb(0xe6)][_0x15aecb(0x115)][_0x15aecb(0xca)]?.['error'](_0x15aecb(0xed)+(_0x5849dc?.[_0x15aecb(0x110)]||_0x5849dc));}finally{_0x2f99ed[_0x15aecb(0xb1)]=!0x1;}}},'bulkBusy':!0x1,async 'retryAllFailed'(){const _0x2eee39=_0x5013c1;if(await _0x4b5458[_0x2eee39(0xe6)]['shared']['modal'][_0x2eee39(0xbd)]('Retry\x20all\x20failed\x20jobs'+(this[_0x2eee39(0xff)]?'\x20for\x20type\x20\x22<b>'+this[_0x2eee39(0xff)]+_0x2eee39(0x11b):'')+'?')){this[_0x2eee39(0xaa)]=!0x0;try{const _0x5c08f6={'limit':0x1388};this[_0x2eee39(0xff)]&&(_0x5c08f6[_0x2eee39(0xff)]=this['type']);const _0x1c5ae6=await fetch(_0x3ebfbd[_0x2eee39(0xf6)]+_0x2eee39(0xe4),{'method':_0x2eee39(0xbf),'headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x5c08f6)}),_0x400553=await _0x1c5ae6[_0x2eee39(0x109)]();if(!_0x1c5ae6['ok'])throw new Error(_0x400553?.[_0x2eee39(0x113)]?.[_0x2eee39(0x110)]||_0x2eee39(0xa2));_0x4b5458[_0x2eee39(0xe6)][_0x2eee39(0x115)]?.[_0x2eee39(0xca)]?.[_0x2eee39(0x107)]?.(_0x2eee39(0x104)+_0x400553[_0x2eee39(0x102)][_0x2eee39(0xa6)]+_0x2eee39(0xa3)),await this[_0x2eee39(0x106)]();}catch(_0x2fc06e){_0x4b5458[_0x2eee39(0xe6)][_0x2eee39(0x115)]?.[_0x2eee39(0xca)]?.[_0x2eee39(0x113)]?.(_0x2eee39(0xfa)+(_0x2fc06e?.[_0x2eee39(0x110)]||_0x2fc06e));}finally{this['bulkBusy']=!0x1;}}},async 'deleteAllDone'(){const _0x17c1fa=_0x5013c1;if(await _0x4b5458[_0x17c1fa(0xe6)]['shared'][_0x17c1fa(0xb5)]['confirm'](_0x17c1fa(0xa9)+(this[_0x17c1fa(0xff)]?_0x17c1fa(0x114)+this[_0x17c1fa(0xff)]+_0x17c1fa(0x11b):'')+_0x17c1fa(0x11e))){this[_0x17c1fa(0xaa)]=!0x0;try{const _0x2087bf={'limit':0xc350};this[_0x17c1fa(0xff)]&&(_0x2087bf['type']=this[_0x17c1fa(0xff)]);const _0x5ba5f1=await fetch(_0x3ebfbd[_0x17c1fa(0xf6)]+_0x17c1fa(0xc5),{'method':'POST','headers':{'Content-Type':_0x17c1fa(0xc6)},'body':JSON[_0x17c1fa(0x119)](_0x2087bf)}),_0x509b90=await _0x5ba5f1[_0x17c1fa(0x109)]();if(!_0x5ba5f1['ok'])throw new Error(_0x509b90?.[_0x17c1fa(0x113)]?.[_0x17c1fa(0x110)]||'failed');_0x4b5458[_0x17c1fa(0xe6)][_0x17c1fa(0x115)]?.[_0x17c1fa(0xca)]?.[_0x17c1fa(0xdd)]?.(_0x17c1fa(0xf0)+_0x509b90[_0x17c1fa(0x102)][_0x17c1fa(0xef)]+_0x17c1fa(0xd0)),await this[_0x17c1fa(0x106)]();}catch(_0x20ca6c){_0x4b5458[_0x17c1fa(0xe6)][_0x17c1fa(0x115)]?.[_0x17c1fa(0xca)]?.[_0x17c1fa(0x113)]?.(_0x17c1fa(0xf5)+(_0x20ca6c?.[_0x17c1fa(0x110)]||_0x20ca6c));}finally{this[_0x17c1fa(0xaa)]=!0x1;}}},async 'deleteAllFailed'(){const _0x3e31d0=_0x5013c1;if(await _0x4b5458[_0x3e31d0(0xe6)][_0x3e31d0(0x115)][_0x3e31d0(0xb5)]['confirm'](_0x3e31d0(0xe1)+(this[_0x3e31d0(0xff)]?_0x3e31d0(0x114)+this[_0x3e31d0(0xff)]+_0x3e31d0(0x11b):'')+'?<br><br>This\x20cannot\x20be\x20undone.')){this[_0x3e31d0(0xaa)]=!0x0;try{const _0x80ef83={'limit':0xc350};this[_0x3e31d0(0xff)]&&(_0x80ef83[_0x3e31d0(0xff)]=this[_0x3e31d0(0xff)]);const _0x3f21d2=await fetch(_0x3ebfbd[_0x3e31d0(0xf6)]+_0x3e31d0(0x112),{'method':_0x3e31d0(0xbf),'headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x80ef83)}),_0x15a26d=await _0x3f21d2['json']();if(!_0x3f21d2['ok'])throw new Error(_0x15a26d?.[_0x3e31d0(0x113)]?.[_0x3e31d0(0x110)]||_0x3e31d0(0xa2));_0x4b5458[_0x3e31d0(0xe6)][_0x3e31d0(0x115)]?.['toast']?.[_0x3e31d0(0xdd)]?.('Cleared\x20'+_0x15a26d['data'][_0x3e31d0(0xef)]+_0x3e31d0(0xa3)),await this['refresh']();}catch(_0x491b1e){_0x4b5458[_0x3e31d0(0xe6)][_0x3e31d0(0x115)]?.[_0x3e31d0(0xca)]?.[_0x3e31d0(0x113)]?.(_0x3e31d0(0xc2)+(_0x491b1e?.[_0x3e31d0(0x110)]||_0x491b1e));}finally{this[_0x3e31d0(0xaa)]=!0x1;}}},async 'clearStuck'(){const _0x4bd46f=_0x5013c1;if(await _0x4b5458[_0x4bd46f(0xe6)][_0x4bd46f(0x115)]['modal'][_0x4bd46f(0xbd)](_0x4bd46f(0xe2)+(this['type']?'\x20for\x20type\x20\x22<b>'+this[_0x4bd46f(0xff)]+'</b>\x22':'')+_0x4bd46f(0x10d))){this[_0x4bd46f(0xaa)]=!0x0;try{const _0x3a32db={'limit':0xc350};this[_0x4bd46f(0xff)]&&(_0x3a32db['type']=this[_0x4bd46f(0xff)]);const _0x1cbf31=await fetch(_0x3ebfbd['apiBase']+'/queue/clearStuck',{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x4bd46f(0x119)](_0x3a32db)}),_0x24745e=await _0x1cbf31[_0x4bd46f(0x109)]();if(!_0x1cbf31['ok'])throw new Error(_0x24745e?.[_0x4bd46f(0x113)]?.['message']||_0x4bd46f(0xa2));_0x4b5458[_0x4bd46f(0xe6)]['shared']?.[_0x4bd46f(0xca)]?.[_0x4bd46f(0xdd)]?.(_0x4bd46f(0xf0)+_0x24745e[_0x4bd46f(0x102)]['deleted']+_0x4bd46f(0xc3)),await this[_0x4bd46f(0x106)]();}catch(_0x4dbabb){_0x4b5458[_0x4bd46f(0xe6)]['shared']?.[_0x4bd46f(0xca)]?.[_0x4bd46f(0x113)]?.(_0x4bd46f(0xf4)+(_0x4dbabb?.[_0x4bd46f(0x110)]||_0x4dbabb));}finally{this[_0x4bd46f(0xaa)]=!0x1;}}},'isStatusOn'(_0x33c682){const _0x499bab=_0x5013c1;return(this[_0x499bab(0x121)]??null)===(_0x33c682??null);},'statusBadgeStyle'(_0x44186f){const _0x20563d=_0x5013c1,_0x1d314a={'pending':'var(--okdb-warning)','running':'var(--okdb-info)','done':_0x20563d(0xae),'failed':_0x20563d(0x10f)}[_0x44186f]||'#9ca3af';return _0x20563d(0x117)+_0x1d314a+_0x20563d(0xec)+_0x1d314a+';';},'formatWhen'(_0x12ccde){const _0x5a29a6=_0x5013c1;if(!_0x12ccde)return'—';const _0xb2369c=_0x12ccde-Date[_0x5a29a6(0xcb)](),_0x49a7a2=Math[_0x5a29a6(0xe0)](_0xb2369c),_0x402ee9=Math[_0x5a29a6(0xf9)](_0x49a7a2/0x3e8);if(_0x402ee9<0x5)return _0xb2369c<=0x0?_0x5a29a6(0xcb):_0x5a29a6(0xab);if(_0x402ee9<0x3c)return _0xb2369c<0x0?_0x402ee9+'s\x20ago':_0x5a29a6(0x10b)+_0x402ee9+'s';const _0x551521=Math[_0x5a29a6(0xf9)](_0x402ee9/0x3c);if(_0x551521<0x3c)return _0xb2369c<0x0?_0x551521+'m\x20ago':'in\x20'+_0x551521+'m';const _0x33d55b=Math['round'](_0x551521/0x3c);if(_0x33d55b<0x18)return _0xb2369c<0x0?_0x33d55b+_0x5a29a6(0xac):_0x5a29a6(0x10b)+_0x33d55b+'h';const _0x5798b1=Math[_0x5a29a6(0xf9)](_0x33d55b/0x18);return _0xb2369c<0x0?_0x5798b1+_0x5a29a6(0x116):_0x5a29a6(0x10b)+_0x5798b1+'d';},'shortId':_0x372b00=>(_0x372b00||'')[_0x5013c1(0xee)](0x0,0x8),'_unsubs':[],'_liveTimer':null,'pendingUpdates':0x0,'_scheduleLiveReload'(){const _0x29437b=_0x5013c1;this[_0x29437b(0x124)]++,clearTimeout(this[_0x29437b(0x11c)]),this[_0x29437b(0x11c)]=setTimeout(async()=>{const _0x3435cb=_0x29437b;await this['query'][_0x3435cb(0xf1)](),await this['loadStats'](),_0x4b5458[_0x3435cb(0xe3)](_0x3435cb(0x106)),this[_0x3435cb(0x124)]=0x0;},0xbb8);}}),async 'init'(_0x79138a){const _0x345b8d=_0x5013c1;this['applyTypeAttr'](),_0x79138a[_0x345b8d(0xcd)](()=>_0x79138a[_0x345b8d(0xf7)][_0x345b8d(0xff)],()=>this['applyTypeAttr']()),_0x79138a[_0x345b8d(0xcd)](()=>_0x79138a[_0x345b8d(0xe6)][_0x345b8d(0x103)]['okdb'][_0x345b8d(0x11f)],()=>{const _0x1573f3=_0x345b8d;this['stats']=null,this[_0x1573f3(0xa5)][_0x1573f3(0xb2)](),Promise[_0x1573f3(0x10a)]([this[_0x1573f3(0xa5)][_0x1573f3(0xf1)](),this[_0x1573f3(0x118)]()]);}),await Promise[_0x345b8d(0x10a)]([this['query'][_0x345b8d(0xf1)](),this[_0x345b8d(0x118)]()]);},'mount'(){const _0x2f8bfc=_0x5013c1,_0x2bce0d=()=>this[_0x2f8bfc(0xcc)]();this[_0x2f8bfc(0xde)]=[_0x3d44de['on'](_0x2f8bfc(0xf3),_0x2bce0d),_0x3d44de['on']('queue:done',_0x2bce0d),_0x3d44de['on'](_0x2f8bfc(0xba),_0x2bce0d),_0x3d44de['on']('queue:retry',_0x2bce0d),_0x3d44de['on'](_0x2f8bfc(0xc9),_0x2bce0d),_0x3d44de['on'](_0x2f8bfc(0xa1),_0x2bce0d)];},'unmount'(){const _0x11b592=_0x5013c1;clearTimeout(this[_0x11b592(0x11c)]),clearTimeout(this['_statsTimer']);for(const _0x278bd9 of this[_0x11b592(0xde)])_0x278bd9();this[_0x11b592(0xde)]=[];},'template':'\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20height:100%;\x20min-height:0;\x20gap:10px;\x22>\x0a\x0a\x20\x20<!--\x20──\x20Row\x201:\x20Status\x20filters\x20+\x20Enqueue\x20──\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20gap:6px;\x20align-items:center;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(null)\x22\x20\x20\x20\x20\x20\x20:class=\x22isStatusOn(null)\x20\x20\x20\x20\x20\x20?\x20\x27pill\x20pill--on\x27\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20\x27pill\x27\x22>All<span\x20class=\x22pill-count\x22>{{\x20statusCount(null)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27pending\x27)\x22\x20:class=\x22isStatusOn(\x27pending\x27)\x20?\x20\x27pill\x20pill--on\x20pill--p\x27\x20\x20\x20:\x20\x27pill\x20pill--p\x27\x22>Pending<span\x20class=\x22pill-count\x22>{{\x20statusCount(\x27pending\x27)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27running\x27)\x22\x20:class=\x22isStatusOn(\x27running\x27)\x20?\x20\x27pill\x20pill--on\x20pill--r\x27\x20\x20\x20:\x20\x27pill\x20pill--r\x27\x22>Running<span\x20class=\x22pill-count\x22>{{\x20statusCount(\x27running\x27)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27failed\x27)\x22\x20\x20:class=\x22isStatusOn(\x27failed\x27)\x20\x20?\x20\x27pill\x20pill--on\x20pill--f\x27\x20\x20\x20:\x20\x27pill\x20pill--f\x27\x22>Failed<span\x20\x20class=\x22pill-count\x22>{{\x20statusCount(\x27failed\x27)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27done\x27)\x22\x20\x20\x20\x20:class=\x22isStatusOn(\x27done\x27)\x20\x20\x20\x20?\x20\x27pill\x20pill--on\x20pill--d\x27\x20\x20\x20:\x20\x27pill\x20pill--d\x27\x22>Done<span\x20\x20\x20\x20class=\x22pill-count\x22>{{\x20statusCount(\x27done\x27)\x20}}</span></button>\x0a\x0a\x20\x20\x20\x20<div\x20style=\x22flex:1;\x22></div>\x0a\x0a\x20\x20\x20\x20<select\x20@change=\x22setSort($el.value)\x22\x20:value=\x22sortMode\x22\x20style=\x22font-size:12px;\x22>\x0a\x20\x20\x20\x20\x20\x20<option\x20value=\x22when\x22>Sort:\x20When</option>\x0a\x20\x20\x20\x20\x20\x20<option\x20value=\x22priority\x22>Sort:\x20Priority</option>\x0a\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20<button\x20@click=\x22toggleDirection\x22\x20style=\x22font-size:12px;\x20min-width:32px;\x22\x20title=\x22Toggle\x20sort\x20direction\x22>\x0a\x20\x20\x20\x20\x20\x20{{\x20direction\x20===\x20\x27asc\x27\x20?\x20\x27▲\x27\x20:\x20\x27▼\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<button\x20@click=\x22openEnqueue\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2013%,\x20transparent);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2033%,\x20transparent);\x20color:var(--okdb-accent);\x20font-weight:600;\x20padding:4px\x2014px;\x20font-size:12px;\x20white-space:nowrap;\x22>\x0a\x20\x20\x20\x20\x20\x20+\x20Enqueue\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20──\x20Row\x202:\x20Bulk\x20actions\x20──\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20gap:6px;\x20align-items:center;\x20flex-wrap:wrap;\x20padding:5px\x200;\x20border-top:1px\x20solid\x20var(--okdb-app-surface-2);\x20border-bottom:1px\x20solid\x20var(--okdb-app-surface-2);\x22>\x0a\x20\x20\x20\x20<button\x20@click=\x22retryAllFailed()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-warning);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-warning)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Reset\x20all\x20failed\x20jobs\x20back\x20to\x20pending\x22>\x0a\x20\x20\x20\x20\x20\x20↺\x20Retry\x20Failed\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div\x20style=\x22width:1px;\x20height:16px;\x20background:var(--okdb-app-border);\x22></div>\x0a\x20\x20\x20\x20<button\x20@click=\x22deleteAllDone()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-success);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-success)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Delete\x20all\x20done\x20jobs\x20in\x20one\x20index\x20pass\x22>\x0a\x20\x20\x20\x20\x20\x20✕\x20Clear\x20Done\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<button\x20@click=\x22deleteAllFailed()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-danger);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-danger)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Permanently\x20delete\x20all\x20failed\x20jobs\x22>\x0a\x20\x20\x20\x20\x20\x20✕\x20Clear\x20Failed\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<button\x20@click=\x22clearStuck()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-app-fg-muted);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-app-fg-muted)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Delete\x20running\x20jobs\x20whose\x20claim\x20TTL\x20has\x20expired\x20(permanently,\x20not\x20re-queued)\x22>\x0a\x20\x20\x20\x20\x20\x20✕\x20Clear\x20Stuck\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div\x20style=\x22width:1px;\x20height:16px;\x20background:var(--okdb-app-border);\x22></div>\x0a\x20\x20\x20\x20<button\x20@click=\x22rebuildStats\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:11px;\x20opacity:.4;\x20background:transparent;\x20border-color:transparent;\x20padding:3px\x208px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Full\x20scan\x20rebuild\x20of\x20stats\x20counters\x22>\x0a\x20\x20\x20\x20\x20\x20Rebuild\x20Stats\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<if\x20:=\x22pendingUpdates\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-warning);\x20opacity:.8;\x20margin-left:4px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20⟳\x20{{\x20pendingUpdates\x20}}\x20pending\x0a\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20Table\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20position:relative;\x20flex:1;\x20min-height:0;\x22>\x0a\x20\x20\x20\x20<if\x20:=\x22query.busy\x22>\x0a\x20\x20\x20\x20\x20\x20<ok-overlay>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22loader-center\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-icon\x20name=\x22loader\x22\x20class=\x22spin\x22\x20style=\x22width:32px;height:32px;\x22></ok-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</ok-overlay>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22query.loadError\x20&&\x20!query.busy\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22color:var(--okdb-danger);\x20padding:12px\x2014px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20border-radius:8px;\x20margin-bottom:8px;\x20font-size:13px;\x20display:flex;\x20align-items:center;\x20gap:10px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22flex:1;\x22>{{\x20query.loadError\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22query.load()\x22\x20style=\x22font-size:11px;\x20color:var(--okdb-danger);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20padding:3px\x2010px;\x22>Retry</button>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<ok-table\x20:data=\x22query.values\x22\x20no-scroll\x20style=\x22flex:1;\x20min-height:0;\x20overflow:auto;\x22>\x0a\x20\x20\x20\x20\x20\x20<columns>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x2280px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Status</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20:style=\x22statusBadgeStyle(row.status)\x22>{{\x20row.status\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x221fr\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Type\x20+\x20Metadata</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:2px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>{{\x20row.type\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20gap:4px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.tags\x20&&\x20row.tags.length\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x22>{{\x20row.tags.join(\x27,\x20\x27)\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.progress\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x22>{{\x20row.progress\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.cron\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x20color:var(--okdb-indigo);\x22>cron:\x20{{\x20row.cron\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.idempotency_key\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x20color:#34d399;\x22>key:\x20{{\x20row.idempotency_key\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x22130px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>When</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>{{\x20formatWhen(row.when)\x20}}</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x2270px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Tries</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22row.tries\x20>=\x20row.max_tries\x20&&\x20row.max_tries\x20>\x200\x20?\x20\x27color:var(--okdb-danger);\x27\x20:\x20\x27\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20row.tries\x20}}\x20/\x20{{\x20row.max_tries\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x22180px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Actions</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22openEditJob(row)\x22\x20:disabled=\x22row._busy\x22\x20style=\x22font-size:11px;\x22>Edit</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22retryJob(row)\x22\x20\x20:disabled=\x22row._busy\x22\x20style=\x22font-size:11px;\x22>Retry</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.status\x20===\x20\x27pending\x27\x20||\x20row.status\x20===\x20\x27running\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22cancelJob(row)\x22\x20:disabled=\x22row._busy\x22\x20style=\x22font-size:11px;\x22>Cancel</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22deleteJob(row)\x22\x20:disabled=\x22row._busy\x22\x20style=\x22color:#ff6c6b;\x20font-size:11px;\x22>Delete</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20</columns>\x0a\x0a\x20\x20\x20\x20\x20\x20<expanded\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:10px;\x20font-size:12px;\x20display:flex;\x20flex-direction:column;\x20gap:6px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.error_stack\x20||\x20row.status_message\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.status_message\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22white-space:pre-wrap;\x20opacity:.9;\x20margin-bottom:6px;\x22>{{\x20row.status_message\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.error_stack\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<pre\x20style=\x22white-space:pre-wrap;\x20opacity:.85;\x20max-height:220px;\x20overflow:auto;\x20background:var(--okdb-app-bg-deep);\x20padding:8px;\x20border-radius:4px;\x22>{{\x20row.error_stack\x20}}</pre>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-wrap:wrap;\x20gap:12px;\x20opacity:.8;\x20font-size:11px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>ID:\x20<b>{{\x20row.id\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Status\x20code:\x20<b>{{\x20row.status_code\x20||\x20\x27—\x27\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Max\x20tries:\x20<b>{{\x20row.max_tries\x20??\x20\x27—\x27\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Retry\x20delay:\x20<b>{{\x20row.retry_delay\x20??\x200\x20}}ms</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Backoff:\x20<b>{{\x20row.backoff_multiplier\x20??\x201\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Priority:\x20<b>{{\x20row.priority\x20??\x200\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:=\x22row.bucket\x22\x20style=\x22display:inline;\x22>Bucket:\x20<b>{{\x20row.bucket\x20||\x20\x27—\x27\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Claim\x20expires:\x20<b>{{\x20formatWhen(row.claim_expires)\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<details\x20style=\x22margin-top:6px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<summary\x20style=\x22cursor:pointer;\x20opacity:.8;\x20font-size:11px;\x22>Raw\x20job</summary>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<pre\x20style=\x22white-space:pre-wrap;\x20opacity:.85;\x20max-height:260px;\x20overflow:auto;\x20margin-top:4px;\x20background:var(--okdb-app-bg-deep);\x20padding:8px;\x20border-radius:4px;\x20font-size:10px;\x22>{{\x20row\x20}}</pre>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</details>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</expanded>\x0a\x20\x20\x20\x20</ok-table>\x0a\x0a\x20\x20\x20\x20<!--\x20Pagination\x20-->\x0a\x20\x20\x20\x20<div\x20class=\x22ok-pager\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22query.prevPage()\x22\x20:disabled=\x22!query.hasPrev\x20||\x20query.busy\x22>‹\x20Prev</button>\x0a\x20\x20\x20\x20\x20\x20<span>{{\x20statusCount(status)\x20}}\x20total\x20·\x20{{\x20query.pageSize\x20}}/page</span>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22query.nextPage()\x22\x20:disabled=\x22!query.hasNext\x20||\x20query.busy\x22>Next\x20›</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','style':_0x5013c1(0x11a)};
@@ -1 +1 @@
1
- function _0x48ba(){const _0x4e2390=['queue-types','stats\x20failed','queue:reconciled','values','4505335vWtBjy','engine:started','808552pMsufa','_unsubs','error','toLowerCase','_scheduleLoad','queue:removed','1208882tUFxFG','includes','$attr','/engines?type=queue-worker','_reloadTimer','total','reduce','1NwOxRB','selectedType','.type-row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px\x208px;border-radius:5px;font-size:12px;border:1px\x20solid\x20transparent;background:0\x200;cursor:pointer;width:100%;color:var(--okdb-app-fg-muted);transition:background\x20.12s,border-color\x20.12s,color\x20.12s}.type-row--on,.type-row:hover{background:var(--okdb-app-surface);border-color:var(--okdb-app-border);color:var(--okdb-app-fg)}.type-row--on{border-color:var(--okdb-accent);color:var(--okdb-app-fg-strong)}.worker-chip{display:inline-flex;align-items:center;gap:4px;padding:1px\x206px;border-radius:999px;border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-accent)\x2020%,transparent);color:var(--okdb-accent);background:color-mix(in\x20srgb,var(--okdb-accent)\x205%,transparent);font-size:10px;flex-shrink:0}','push','/queue/job-types','2255553UKtdTb','15749810ZaLryB','engine:stopped','typesData','busy','loadFromStats','types\x20failed','selectedEnv','byType','workerCounts','queue:enqueued','result','fromEntries','localeCompare','registeredTypes','engine:error','selectedtype','240289QbtTwG','sort','length','load','engine:uninstalled','queue:failed','type','filterText','queue-types\x20load\x20error','$dispatch','174gXbYmF','filter','apiBase','/queue/types','queue-types\x20stats\x20fallback\x20error','$watch','types','data','json','find','9jbTzGh','map','job_type','keys','catch','#f59e0b','some','all','/queue/stats','1343504aplqBD','isArray','#3b82f6','\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:8px;\x20min-height:0;\x22>\x0a\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20justify-content:space-between;\x20gap:8px;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-weight:600;\x20font-size:12px;\x20opacity:.7;\x20text-transform:uppercase;\x20letter-spacing:.05em;\x22>Types</div>\x0a\x20\x20\x20\x20\x20\x20<if\x20:=\x22totalWorkers()\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:10px;\x20padding:1px\x206px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-accent)\x2027%,\x20transparent);\x20color:var(--okdb-accent);\x20background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x207%,\x20transparent);\x22>⚙\x20{{\x20totalWorkers()\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<button\x20@click=\x22load\x22\x20:disabled=\x22busy\x22\x20style=\x22opacity:.6;\x20font-size:11px;\x20padding:2px\x206px;\x22>↻</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x22>\x0a\x20\x20\x20\x20<input\x0a\x20\x20\x20\x20\x20\x20:value=\x22filterText\x22\x0a\x20\x20\x20\x20\x20\x20@input=\x22filterText\x20=\x20$event.target.value\x22\x0a\x20\x20\x20\x20\x20\x20placeholder=\x22Filter\x20types…\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22width:100%;\x20min-width:0;\x20padding:6px\x208px;\x20border-radius:6px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20color:var(--okdb-app-fg-strong);\x20font-size:12px;\x22\x0a\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20<if\x20:=\x22filterText\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22clearFilter()\x22\x20style=\x22opacity:.7;\x20font-size:11px;\x20padding:5px\x207px;\x22>✕</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20Types\x20list\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:3px;\x20overflow:auto;\x20min-height:0;\x20padding-right:4px;\x22>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22selectType(null)\x22\x0a\x20\x20\x20\x20\x20\x20:class=\x22selectedType\x20==\x20null\x20?\x20\x27type-row\x20type-row--on\x27\x20:\x20\x27type-row\x27\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20min-width:0;\x20flex:1;\x20text-align:left;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20overflow:hidden;\x20text-overflow:ellipsis;\x22>All\x20types</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22totalWorkers()\x20>\x200\x22><span\x20class=\x22worker-chip\x22>⚙\x20{{\x20totalWorkers()\x20}}</span></if>\x0a\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.55;\x20font-size:11px;\x22>{{\x20totalFor(null)\x20}}</span>\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<each\x20:of=\x22types\x22\x20let:item=\x22item\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22selectType(item.type)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:class=\x22selectedType\x20===\x20item.type\x20?\x20\x27type-row\x20type-row--on\x27\x20:\x20\x27type-row\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20min-width:0;\x20flex:1;\x20text-align:left;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jtStatusColor(item.type)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27width:6px;height:6px;border-radius:50%;background:\x27\x20+\x20jtStatusColor(item.type)\x20+\x20\x27;flex-shrink:0;\x27\x22\x20:title=\x22jtStatus(item.type)\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20overflow:hidden;\x20text-overflow:ellipsis;\x22>{{\x20item.type\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22item.workerCount\x20>\x200\x22><span\x20class=\x22worker-chip\x22>⚙\x20{{\x20item.workerCount\x20}}</span></if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.55;\x20font-size:11px;\x22>{{\x20item.total\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</each>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22!busy\x20&&\x20types.length\x20===\x200\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22opacity:.5;\x20font-size:12px;\x20padding:6px\x208px;\x20line-height:1.5;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20{{\x20filterText\x20?\x20\x27No\x20types\x20match\x20this\x20filter.\x27\x20:\x20\x27No\x20queued\x20job\x20types\x20in\x20this\x20environment.\x27\x20}}\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','_mergeRegisteredTypes'];_0x48ba=function(){return _0x4e2390;};return _0x48ba();}const _0x525295=_0x32cb;(function(_0x485ece,_0x5da81a){const _0x5754c8=_0x32cb,_0x15feea=_0x485ece();while(!![]){try{const _0x365425=parseInt(_0x5754c8(0x11a))/0x1*(-parseInt(_0x5754c8(0x113))/0x2)+parseInt(_0x5754c8(0x11f))/0x3+parseInt(_0x5754c8(0x10d))/0x4+parseInt(_0x5754c8(0x10b))/0x5+-parseInt(_0x5754c8(0x13a))/0x6*(-parseInt(_0x5754c8(0x130))/0x7)+parseInt(_0x5754c8(0x102))/0x8*(-parseInt(_0x5754c8(0x144))/0x9)+-parseInt(_0x5754c8(0x120))/0xa;if(_0x365425===_0x5da81a)break;else _0x15feea['push'](_0x15feea['shift']());}catch(_0xee3b2f){_0x15feea['push'](_0x15feea['shift']());}}}(_0x48ba,0x7ad8b));import _0x592aa9 from'../../../stores/events-store.js';function _0x32cb(_0x4949e0,_0x5a1824){_0x4949e0=_0x4949e0-0x100;const _0x48ba49=_0x48ba();let _0x32cb43=_0x48ba49[_0x4949e0];return _0x32cb43;}import _0x4f23ce from'../../../stores/okdb-store.js';const s={'paused':_0x525295(0x149),'draining':_0x525295(0x104)};export default{'tag':_0x525295(0x107),'attr':{'selectedtype':{}},'context':_0x1422a4=>({'busy':!0x1,'total':0x0,'typesData':[],'workerCounts':{},'registeredTypes':{},'filterText':'','_unsubs':[],'_reloadTimer':null,'selectedType':null,async 'load'(){const _0x4b7da2=_0x525295;this[_0x4b7da2(0x123)]=!0x0;try{const [_0x2f9759,_0x246ff0,_0x2b1a91]=await Promise[_0x4b7da2(0x100)]([fetch(_0x4f23ce['apiBase']+_0x4b7da2(0x13d)),fetch(_0x4f23ce[_0x4b7da2(0x13c)]+_0x4b7da2(0x116))['catch'](()=>null),fetch(_0x4f23ce[_0x4b7da2(0x13c)]+_0x4b7da2(0x11e))[_0x4b7da2(0x148)](()=>null)]);if(!_0x2f9759['ok'])throw new Error(_0x4b7da2(0x125));const _0x5eb207=await _0x2f9759['json'](),_0x10407a=_0x5eb207?.[_0x4b7da2(0x12a)]??_0x5eb207?.['data']??null,_0x4621b0=_0x246ff0?.['ok']?await _0x246ff0[_0x4b7da2(0x142)]()[_0x4b7da2(0x148)](()=>({})):null,_0x2c5852=_0x4621b0?.['result']??_0x4621b0?.[_0x4b7da2(0x141)]??[],_0xd2d618={};for(const _0x130157 of _0x2c5852){const _0xab9af9=_0x130157?.['config']?.[_0x4b7da2(0x146)];_0xab9af9&&(_0xd2d618[_0xab9af9]=(_0xd2d618[_0xab9af9]??0x0)+0x1);}if(this[_0x4b7da2(0x128)]=_0xd2d618,_0x2b1a91?.['ok']){const _0x840b88=await _0x2b1a91[_0x4b7da2(0x142)]()[_0x4b7da2(0x148)](()=>({})),_0x453a29=_0x840b88?.[_0x4b7da2(0x12a)]??[];this['registeredTypes']=Object[_0x4b7da2(0x12b)](_0x453a29['map'](_0x495d0e=>[_0x495d0e['id'],_0x495d0e]));}this[_0x4b7da2(0x118)]=_0x10407a?.[_0x4b7da2(0x118)]??0x0,this['typesData']=Array[_0x4b7da2(0x103)](_0x10407a?.[_0x4b7da2(0x140)])?_0x10407a[_0x4b7da2(0x140)]['slice']()[_0x4b7da2(0x131)]((_0x4677b7,_0x1394ac)=>String(_0x4677b7?.[_0x4b7da2(0x136)]||'')[_0x4b7da2(0x12c)](String(_0x1394ac?.[_0x4b7da2(0x136)]||'')))['map'](_0x28bcd9=>({..._0x28bcd9,'workerCount':_0xd2d618[_0x28bcd9?.[_0x4b7da2(0x136)]]??0x0})):[],this[_0x4b7da2(0x122)][_0x4b7da2(0x132)]||await this[_0x4b7da2(0x124)](),this['_mergeRegisteredTypes'](),this['selectedType']&&!this['typesData'][_0x4b7da2(0x14a)](_0x22a5ad=>_0x22a5ad?.[_0x4b7da2(0x136)]===this[_0x4b7da2(0x11b)])&&(this['selectedType']=null,_0x1422a4['$dispatch']('type',null));}catch(_0x5330cd){console[_0x4b7da2(0x10f)](_0x4b7da2(0x138),_0x5330cd),await this['loadFromStats'](),this[_0x4b7da2(0x106)]();}finally{this[_0x4b7da2(0x123)]=!0x1;}},'_mergeRegisteredTypes'(){const _0x574714=_0x525295,_0x194029=new Set(this[_0x574714(0x122)][_0x574714(0x145)](_0x5be03b=>_0x5be03b?.['type']));for(const _0x38bee2 of Object[_0x574714(0x147)](this[_0x574714(0x12d)]))_0x194029['has'](_0x38bee2)||this[_0x574714(0x122)][_0x574714(0x11d)]({'type':_0x38bee2,'total':0x0,'byStatus':{},'workerCount':this[_0x574714(0x128)][_0x38bee2]??0x0});this['typesData'][_0x574714(0x131)]((_0x2da0db,_0x262dea)=>String(_0x2da0db?.['type']||'')[_0x574714(0x12c)](String(_0x262dea?.['type']||'')));},async 'loadFromStats'(){const _0x404faa=_0x525295;try{const _0x36f61b=await fetch(_0x4f23ce[_0x404faa(0x13c)]+_0x404faa(0x101));if(!_0x36f61b['ok'])throw new Error(_0x404faa(0x108));const _0xeea7b0=await _0x36f61b[_0x404faa(0x142)](),_0x397143=_0xeea7b0?.[_0x404faa(0x12a)]??_0xeea7b0?.[_0x404faa(0x141)]??null,_0x3e6cbd=_0x397143?.[_0x404faa(0x127)]||{};this[_0x404faa(0x118)]=_0x397143?.[_0x404faa(0x118)]??0x0,this[_0x404faa(0x122)]=Object[_0x404faa(0x147)](_0x3e6cbd)[_0x404faa(0x131)]((_0x4bf8cc,_0x14f165)=>_0x4bf8cc[_0x404faa(0x12c)](_0x14f165))['map'](_0x1aba89=>({'type':_0x1aba89,'total':_0x3e6cbd[_0x1aba89]?.['total']??0x0,'byStatus':_0x3e6cbd[_0x1aba89]?.['byStatus']||{},'workerCount':this[_0x404faa(0x128)]?.[_0x1aba89]??0x0}));}catch(_0x511626){console[_0x404faa(0x10f)](_0x404faa(0x13e),_0x511626),this[_0x404faa(0x118)]=0x0,this[_0x404faa(0x122)]=[];}},get 'types'(){const _0x18d8aa=_0x525295,_0x4b29fc=(this[_0x18d8aa(0x137)]||'')['trim']()[_0x18d8aa(0x110)]();return _0x4b29fc?this['typesData'][_0x18d8aa(0x13b)](_0x1b08df=>String(_0x1b08df?.[_0x18d8aa(0x136)]||'')[_0x18d8aa(0x110)]()[_0x18d8aa(0x114)](_0x4b29fc)):this[_0x18d8aa(0x122)];},'totalFor'(_0x3a05e6){const _0x14fa6a=_0x525295;return _0x3a05e6?this[_0x14fa6a(0x122)][_0x14fa6a(0x143)](_0x1148d9=>_0x1148d9?.[_0x14fa6a(0x136)]===_0x3a05e6)?.[_0x14fa6a(0x118)]??0x0:this[_0x14fa6a(0x118)];},'totalWorkers'(){const _0x46b8cb=_0x525295;return Object[_0x46b8cb(0x10a)](this[_0x46b8cb(0x128)]||{})[_0x46b8cb(0x119)]((_0x4d9688,_0x177379)=>_0x4d9688+Number(_0x177379||0x0),0x0);},'jtStatus'(_0x4e1643){const _0xd78de1=_0x525295;return this[_0xd78de1(0x12d)][_0x4e1643]?.['status']??null;},'jtStatusColor'(_0x28f8f0){return s[this['jtStatus'](_0x28f8f0)]??null;},'selectType'(_0x110f3a){const _0x3dfc4b=_0x525295;this['selectedType']=_0x110f3a??null,_0x1422a4[_0x3dfc4b(0x139)](_0x3dfc4b(0x136),this[_0x3dfc4b(0x11b)]);},async 'refresh'(){const _0x5286a3=_0x525295;await this[_0x5286a3(0x133)]();},'clearFilter'(){const _0x1b46e7=_0x525295;this[_0x1b46e7(0x137)]='';},'_scheduleLoad'(){const _0x381a5c=_0x525295;clearTimeout(this[_0x381a5c(0x117)]),this[_0x381a5c(0x117)]=setTimeout(()=>this[_0x381a5c(0x133)](),0x190);}}),async 'mount'(_0xfde8c6){const _0x3601d1=_0x525295;await this['load'](),this[_0x3601d1(0x11b)]=_0xfde8c6['$attr'][_0x3601d1(0x12f)]??null;const _0x13ca70=()=>this[_0x3601d1(0x111)]();this[_0x3601d1(0x10e)]=[_0x592aa9['on'](_0x3601d1(0x129),_0x13ca70),_0x592aa9['on']('queue:done',_0x13ca70),_0x592aa9['on'](_0x3601d1(0x135),_0x13ca70),_0x592aa9['on']('queue:retry',_0x13ca70),_0x592aa9['on'](_0x3601d1(0x112),_0x13ca70),_0x592aa9['on'](_0x3601d1(0x109),_0x13ca70),_0x592aa9['on'](_0x3601d1(0x10c),_0x13ca70),_0x592aa9['on'](_0x3601d1(0x121),_0x13ca70),_0x592aa9['on'](_0x3601d1(0x12e),_0x13ca70),_0x592aa9['on'](_0x3601d1(0x134),_0x13ca70)],_0xfde8c6[_0x3601d1(0x13f)](()=>_0x4f23ce[_0x3601d1(0x126)],()=>{const _0xabdb4c=_0x3601d1;this[_0xabdb4c(0x118)]=0x0,this['typesData']=[],this['filterText']='',this[_0xabdb4c(0x11b)]=null,_0xfde8c6[_0xabdb4c(0x139)]('type',null),this[_0xabdb4c(0x133)]();}),_0xfde8c6['$watch'](()=>_0xfde8c6[_0x3601d1(0x115)][_0x3601d1(0x12f)],_0x396054=>{const _0x25e692=_0x3601d1;this[_0x25e692(0x11b)]=_0x396054??null;});},'unmount'(){const _0x4627e0=_0x525295;clearTimeout(this[_0x4627e0(0x117)]);for(const _0x31c0df of this['_unsubs'])_0x31c0df();this[_0x4627e0(0x10e)]=[];},'template':_0x525295(0x105),'style':_0x525295(0x11c)};
1
+ function _0x332d(){const _0x2d8cf2=['length','\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:8px;\x20min-height:0;\x22>\x0a\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20justify-content:space-between;\x20gap:8px;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-weight:600;\x20font-size:12px;\x20opacity:.7;\x20text-transform:uppercase;\x20letter-spacing:.05em;\x22>Types</div>\x0a\x20\x20\x20\x20\x20\x20<if\x20:=\x22totalWorkers()\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:10px;\x20padding:1px\x206px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-accent)\x2027%,\x20transparent);\x20color:var(--okdb-accent);\x20background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x207%,\x20transparent);\x22>⚙\x20{{\x20totalWorkers()\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<button\x20@click=\x22load\x22\x20:disabled=\x22busy\x22\x20style=\x22opacity:.6;\x20font-size:11px;\x20padding:2px\x206px;\x22>↻</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x22>\x0a\x20\x20\x20\x20<input\x0a\x20\x20\x20\x20\x20\x20:value=\x22filterText\x22\x0a\x20\x20\x20\x20\x20\x20@input=\x22filterText\x20=\x20$event.target.value\x22\x0a\x20\x20\x20\x20\x20\x20placeholder=\x22Filter\x20types…\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22width:100%;\x20min-width:0;\x20padding:6px\x208px;\x20border-radius:6px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20color:var(--okdb-app-fg-strong);\x20font-size:12px;\x22\x0a\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20<if\x20:=\x22filterText\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22clearFilter()\x22\x20style=\x22opacity:.7;\x20font-size:11px;\x20padding:5px\x207px;\x22>✕</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20Types\x20list\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:3px;\x20overflow:auto;\x20min-height:0;\x20padding-right:4px;\x22>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22selectType(null)\x22\x0a\x20\x20\x20\x20\x20\x20:class=\x22selectedType\x20==\x20null\x20?\x20\x27type-row\x20type-row--on\x27\x20:\x20\x27type-row\x27\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20min-width:0;\x20flex:1;\x20text-align:left;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20overflow:hidden;\x20text-overflow:ellipsis;\x22>All\x20types</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22totalWorkers()\x20>\x200\x22><span\x20class=\x22worker-chip\x22>⚙\x20{{\x20totalWorkers()\x20}}</span></if>\x0a\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.55;\x20font-size:11px;\x22>{{\x20totalFor(null)\x20}}</span>\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<each\x20:of=\x22types\x22\x20let:item=\x22item\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22selectType(item.type)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:class=\x22selectedType\x20===\x20item.type\x20?\x20\x27type-row\x20type-row--on\x27\x20:\x20\x27type-row\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20min-width:0;\x20flex:1;\x20text-align:left;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jtStatusColor(item.type)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27width:6px;height:6px;border-radius:50%;background:\x27\x20+\x20jtStatusColor(item.type)\x20+\x20\x27;flex-shrink:0;\x27\x22\x20:title=\x22jtStatus(item.type)\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20overflow:hidden;\x20text-overflow:ellipsis;\x22>{{\x20item.type\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22item.workerCount\x20>\x200\x22><span\x20class=\x22worker-chip\x22>⚙\x20{{\x20item.workerCount\x20}}</span></if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.55;\x20font-size:11px;\x22>{{\x20item.total\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</each>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22!busy\x20&&\x20types.length\x20===\x200\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22opacity:.5;\x20font-size:12px;\x20padding:6px\x208px;\x20line-height:1.5;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20{{\x20filterText\x20?\x20\x27No\x20types\x20match\x20this\x20filter.\x27\x20:\x20\x27No\x20queued\x20job\x20types\x20in\x20this\x20environment.\x27\x20}}\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','_reloadTimer','values','slice','catch','$attr','json','typesData','job_type','2uiAbyC','selectedEnv','status','registeredTypes','engine:error','loadFromStats','trim','engine:started','queue:reconciled','/queue/types','types','queue:retry','byStatus','4048UhjrDb','fromEntries','localeCompare','_mergeRegisteredTypes','has','total','result','byType','/engines?type=queue-worker','types\x20failed','25927891KAwcxt','isArray','keys','sort','13635550XcaiCr','532657GAcZUn','config','532XUtjEN','queue-types\x20load\x20error','queue:done','filterText','find','apiBase','queue-types\x20stats\x20fallback\x20error','filter','_unsubs','workerCounts','941164jMUYHJ','includes','busy','queue-types','selectedType','33165KgCLmD','queue:failed','stats\x20failed','26115XsIYKH','toLowerCase','2459769YavDmZ','type','jtStatus','$dispatch','78IxUafj','engine:uninstalled','selectedtype','map','$watch','all','data','/queue/stats','some','load'];_0x332d=function(){return _0x2d8cf2;};return _0x332d();}const _0x5f18da=_0x1e21;(function(_0x140853,_0x3a10c9){const _0x313516=_0x1e21,_0x29897b=_0x140853();while(!![]){try{const _0xb91319=-parseInt(_0x313516(0x15e))/0x1*(-parseInt(_0x313516(0x18c))/0x2)+parseInt(_0x313516(0x174))/0x3+parseInt(_0x313516(0x160))/0x4*(parseInt(_0x313516(0x172))/0x5)+-parseInt(_0x313516(0x178))/0x6*(-parseInt(_0x313516(0x16a))/0x7)+-parseInt(_0x313516(0x199))/0x8*(parseInt(_0x313516(0x16f))/0x9)+parseInt(_0x313516(0x15d))/0xa+-parseInt(_0x313516(0x159))/0xb;if(_0xb91319===_0x3a10c9)break;else _0x29897b['push'](_0x29897b['shift']());}catch(_0x6617bb){_0x29897b['push'](_0x29897b['shift']());}}}(_0x332d,0xe4c13));function _0x1e21(_0x30a59c,_0x2d7c22){_0x30a59c=_0x30a59c-0x153;const _0x332dd0=_0x332d();let _0x1e21dc=_0x332dd0[_0x30a59c];return _0x1e21dc;}import _0x1bd5d0 from'../../../stores/events-store.js';import _0x5defce from'../../../stores/okdb-store.js';const s={'paused':'#f59e0b','draining':'#3b82f6'};export default{'tag':_0x5f18da(0x16d),'attr':{'selectedtype':{}},'context':_0x5b1e27=>({'busy':!0x1,'total':0x0,'typesData':[],'workerCounts':{},'registeredTypes':{},'filterText':'','_unsubs':[],'_reloadTimer':null,'selectedType':null,async 'load'(){const _0x5d0c08=_0x5f18da;this[_0x5d0c08(0x16c)]=!0x0;try{const [_0x479a4b,_0x34924b,_0x8489ce]=await Promise[_0x5d0c08(0x17d)]([fetch(_0x5defce[_0x5d0c08(0x165)]+_0x5d0c08(0x195)),fetch(_0x5defce['apiBase']+_0x5d0c08(0x157))[_0x5d0c08(0x187)](()=>null),fetch(_0x5defce['apiBase']+'/queue/job-types')[_0x5d0c08(0x187)](()=>null)]);if(!_0x479a4b['ok'])throw new Error(_0x5d0c08(0x158));const _0x575b60=await _0x479a4b[_0x5d0c08(0x189)](),_0x187d3a=_0x575b60?.[_0x5d0c08(0x155)]??_0x575b60?.[_0x5d0c08(0x17e)]??null,_0x54f812=_0x34924b?.['ok']?await _0x34924b[_0x5d0c08(0x189)]()[_0x5d0c08(0x187)](()=>({})):null,_0x43e841=_0x54f812?.[_0x5d0c08(0x155)]??_0x54f812?.[_0x5d0c08(0x17e)]??[],_0x44c057={};for(const _0x5a3c3e of _0x43e841){const _0x16f1c5=_0x5a3c3e?.[_0x5d0c08(0x15f)]?.[_0x5d0c08(0x18b)];_0x16f1c5&&(_0x44c057[_0x16f1c5]=(_0x44c057[_0x16f1c5]??0x0)+0x1);}if(this[_0x5d0c08(0x169)]=_0x44c057,_0x8489ce?.['ok']){const _0x1e3c2c=await _0x8489ce[_0x5d0c08(0x189)]()[_0x5d0c08(0x187)](()=>({})),_0x23dfc9=_0x1e3c2c?.['result']??[];this[_0x5d0c08(0x18f)]=Object[_0x5d0c08(0x19a)](_0x23dfc9[_0x5d0c08(0x17b)](_0xc12cc7=>[_0xc12cc7['id'],_0xc12cc7]));}this[_0x5d0c08(0x154)]=_0x187d3a?.[_0x5d0c08(0x154)]??0x0,this[_0x5d0c08(0x18a)]=Array[_0x5d0c08(0x15a)](_0x187d3a?.['types'])?_0x187d3a[_0x5d0c08(0x196)][_0x5d0c08(0x186)]()[_0x5d0c08(0x15c)]((_0x5e1038,_0x78e965)=>String(_0x5e1038?.[_0x5d0c08(0x175)]||'')[_0x5d0c08(0x19b)](String(_0x78e965?.[_0x5d0c08(0x175)]||'')))[_0x5d0c08(0x17b)](_0x5bc269=>({..._0x5bc269,'workerCount':_0x44c057[_0x5bc269?.[_0x5d0c08(0x175)]]??0x0})):[],this[_0x5d0c08(0x18a)][_0x5d0c08(0x182)]||await this[_0x5d0c08(0x191)](),this['_mergeRegisteredTypes'](),this[_0x5d0c08(0x16e)]&&!this['typesData'][_0x5d0c08(0x180)](_0x3ee7d1=>_0x3ee7d1?.[_0x5d0c08(0x175)]===this[_0x5d0c08(0x16e)])&&(this[_0x5d0c08(0x16e)]=null,_0x5b1e27[_0x5d0c08(0x177)](_0x5d0c08(0x175),null));}catch(_0x2f0acd){console['error'](_0x5d0c08(0x161),_0x2f0acd),await this[_0x5d0c08(0x191)](),this[_0x5d0c08(0x19c)]();}finally{this[_0x5d0c08(0x16c)]=!0x1;}},'_mergeRegisteredTypes'(){const _0x6af768=_0x5f18da,_0x14e208=new Set(this['typesData'][_0x6af768(0x17b)](_0x4897d1=>_0x4897d1?.[_0x6af768(0x175)]));for(const _0x38e27b of Object['keys'](this['registeredTypes']))_0x14e208[_0x6af768(0x153)](_0x38e27b)||this['typesData']['push']({'type':_0x38e27b,'total':0x0,'byStatus':{},'workerCount':this[_0x6af768(0x169)][_0x38e27b]??0x0});this[_0x6af768(0x18a)]['sort']((_0x2d6c00,_0x4e34ab)=>String(_0x2d6c00?.[_0x6af768(0x175)]||'')[_0x6af768(0x19b)](String(_0x4e34ab?.['type']||'')));},async 'loadFromStats'(){const _0x3cbd37=_0x5f18da;try{const _0x1ac8a1=await fetch(_0x5defce[_0x3cbd37(0x165)]+_0x3cbd37(0x17f));if(!_0x1ac8a1['ok'])throw new Error(_0x3cbd37(0x171));const _0xd10230=await _0x1ac8a1[_0x3cbd37(0x189)](),_0x3e14cc=_0xd10230?.['result']??_0xd10230?.[_0x3cbd37(0x17e)]??null,_0x122fb1=_0x3e14cc?.[_0x3cbd37(0x156)]||{};this['total']=_0x3e14cc?.[_0x3cbd37(0x154)]??0x0,this['typesData']=Object[_0x3cbd37(0x15b)](_0x122fb1)['sort']((_0xbbea02,_0x35245f)=>_0xbbea02[_0x3cbd37(0x19b)](_0x35245f))[_0x3cbd37(0x17b)](_0x417dc5=>({'type':_0x417dc5,'total':_0x122fb1[_0x417dc5]?.['total']??0x0,'byStatus':_0x122fb1[_0x417dc5]?.[_0x3cbd37(0x198)]||{},'workerCount':this[_0x3cbd37(0x169)]?.[_0x417dc5]??0x0}));}catch(_0x102132){console['error'](_0x3cbd37(0x166),_0x102132),this[_0x3cbd37(0x154)]=0x0,this[_0x3cbd37(0x18a)]=[];}},get 'types'(){const _0x495278=_0x5f18da,_0x122a0b=(this[_0x495278(0x163)]||'')[_0x495278(0x192)]()[_0x495278(0x173)]();return _0x122a0b?this['typesData'][_0x495278(0x167)](_0x246922=>String(_0x246922?.['type']||'')[_0x495278(0x173)]()[_0x495278(0x16b)](_0x122a0b)):this[_0x495278(0x18a)];},'totalFor'(_0x1109ef){const _0x384b44=_0x5f18da;return _0x1109ef?this['typesData'][_0x384b44(0x164)](_0x143712=>_0x143712?.[_0x384b44(0x175)]===_0x1109ef)?.[_0x384b44(0x154)]??0x0:this[_0x384b44(0x154)];},'totalWorkers'(){const _0x556931=_0x5f18da;return Object[_0x556931(0x185)](this[_0x556931(0x169)]||{})['reduce']((_0x1dc02e,_0x59b8a1)=>_0x1dc02e+Number(_0x59b8a1||0x0),0x0);},'jtStatus'(_0x5f0918){const _0xbf63c3=_0x5f18da;return this[_0xbf63c3(0x18f)][_0x5f0918]?.[_0xbf63c3(0x18e)]??null;},'jtStatusColor'(_0x3fa8ae){const _0x1fa046=_0x5f18da;return s[this[_0x1fa046(0x176)](_0x3fa8ae)]??null;},'selectType'(_0x386fb4){const _0x5dc408=_0x5f18da;this[_0x5dc408(0x16e)]=_0x386fb4??null,_0x5b1e27[_0x5dc408(0x177)]('type',this[_0x5dc408(0x16e)]);},async 'refresh'(){await this['load']();},'clearFilter'(){this['filterText']='';},'_scheduleLoad'(){const _0x1f01de=_0x5f18da;clearTimeout(this['_reloadTimer']),this[_0x1f01de(0x184)]=setTimeout(()=>this[_0x1f01de(0x181)](),0x190);}}),async 'mount'(_0x2620b1){const _0x3ff16b=_0x5f18da;await this[_0x3ff16b(0x181)](),this[_0x3ff16b(0x16e)]=_0x2620b1[_0x3ff16b(0x188)][_0x3ff16b(0x17a)]??null;const _0x201673=()=>this['_scheduleLoad']();this[_0x3ff16b(0x168)]=[_0x1bd5d0['on']('queue:enqueued',_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x162),_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x170),_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x197),_0x201673),_0x1bd5d0['on']('queue:removed',_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x194),_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x193),_0x201673),_0x1bd5d0['on']('engine:stopped',_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x190),_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x179),_0x201673)],_0x2620b1[_0x3ff16b(0x17c)](()=>_0x5defce[_0x3ff16b(0x18d)],()=>{const _0xf74b73=_0x3ff16b;this[_0xf74b73(0x154)]=0x0,this[_0xf74b73(0x18a)]=[],this[_0xf74b73(0x163)]='',this[_0xf74b73(0x16e)]=null,_0x2620b1['$dispatch'](_0xf74b73(0x175),null),this[_0xf74b73(0x181)]();}),_0x2620b1['$watch'](()=>_0x2620b1[_0x3ff16b(0x188)]['selectedtype'],_0x4d2c77=>{const _0x3c5039=_0x3ff16b;this[_0x3c5039(0x16e)]=_0x4d2c77??null;});},'unmount'(){const _0x4520fa=_0x5f18da;clearTimeout(this[_0x4520fa(0x184)]);for(const _0x5e0b69 of this[_0x4520fa(0x168)])_0x5e0b69();this[_0x4520fa(0x168)]=[];},'template':_0x5f18da(0x183),'style':'.type-row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px\x208px;border-radius:5px;font-size:12px;border:1px\x20solid\x20transparent;background:0\x200;cursor:pointer;width:100%;color:var(--okdb-app-fg-muted);transition:background\x20.12s,border-color\x20.12s,color\x20.12s}.type-row--on,.type-row:hover{background:var(--okdb-app-surface);border-color:var(--okdb-app-border);color:var(--okdb-app-fg)}.type-row--on{border-color:var(--okdb-accent);color:var(--okdb-app-fg-strong)}.worker-chip{display:inline-flex;align-items:center;gap:4px;padding:1px\x206px;border-radius:999px;border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-accent)\x2020%,transparent);color:var(--okdb-accent);background:color-mix(in\x20srgb,var(--okdb-accent)\x205%,transparent);font-size:10px;flex-shrink:0}'};