@bull-board/ui 8.1.1 → 8.1.2

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 (58) hide show
  1. package/dist/index.ejs +1 -1
  2. package/dist/static/js/590.dc2868965d.js +808 -0
  3. package/dist/static/js/async/{384.7870964db0.js → 121.bc4b11294f.js} +1 -1
  4. package/dist/static/js/async/172.5610b6d5ce.js +2 -0
  5. package/dist/static/js/async/177.a011a3dfb7.js +1 -0
  6. package/dist/static/js/async/365.e60c5bb82b.js +1 -0
  7. package/dist/static/js/async/450.6bf3182330.js +1 -0
  8. package/dist/static/js/async/{415.bd31b53981.js → 524.adf11d9fc8.js} +1 -1
  9. package/dist/static/js/async/609.88388ef9ae.js +1 -0
  10. package/dist/static/js/async/{661.2520a6fcce.js → 661.8523cd41a7.js} +2 -2
  11. package/dist/static/js/async/718.2f4df2042e.js +1 -0
  12. package/dist/static/js/async/725.1e2a996dab.js +1 -0
  13. package/dist/static/js/async/{343.803ace31e2.js → 737.4a37018d49.js} +1 -1
  14. package/dist/static/js/async/814.bff57943ab.js +1 -0
  15. package/dist/static/js/async/847.8340f53d0d.js +1 -0
  16. package/dist/static/js/async/{857.2f502488e8.js → 940.cb7a9bdcfd.js} +1 -1
  17. package/dist/static/js/async/{highlight-worker.e55f556eca.js → highlight-worker.de1e31a2dc.js} +1 -1
  18. package/dist/static/js/async/highlight.c4898cd8ee.js +1 -0
  19. package/dist/static/js/main.f55b94a6cc.js +9 -0
  20. package/dist/static/locales/da-DK/messages.json +3 -1
  21. package/dist/static/locales/de-DE/messages.json +3 -1
  22. package/dist/static/locales/en-GB/messages.json +3 -1
  23. package/dist/static/locales/en-US/messages.json +3 -1
  24. package/dist/static/locales/es-ES/messages.json +3 -1
  25. package/dist/static/locales/fr-FR/messages.json +3 -1
  26. package/dist/static/locales/ja-JP/messages.json +3 -1
  27. package/dist/static/locales/ko-KR/messages.json +3 -1
  28. package/dist/static/locales/pt-BR/messages.json +3 -1
  29. package/dist/static/locales/tr-TR/messages.json +3 -1
  30. package/dist/static/locales/zh-CN/messages.json +3 -1
  31. package/package.json +15 -15
  32. package/typings/i18next.d.ts +14 -0
  33. package/dist/static/js/551.ae4d7e5817.js +0 -808
  34. package/dist/static/js/async/172.39f5f97cdc.js +0 -2
  35. package/dist/static/js/async/409.42d2e90f3f.js +0 -1
  36. package/dist/static/js/async/581.51493329d5.js +0 -1
  37. package/dist/static/js/async/632.f93baffd1f.js +0 -1
  38. package/dist/static/js/async/648.00dbf6f52f.js +0 -1
  39. package/dist/static/js/async/718.9170e50e3c.js +0 -1
  40. package/dist/static/js/async/837.4c3f1cb195.js +0 -1
  41. package/dist/static/js/async/855.815bdcc177.js +0 -1
  42. package/dist/static/js/async/926.e8ee99d884.js +0 -1
  43. package/dist/static/js/async/977.a73d81226f.js +0 -1
  44. package/dist/static/js/async/highlight.c2a0349882.js +0 -1
  45. package/dist/static/js/main.e0387b32ce.js +0 -9
  46. /package/dist/static/css/async/{384.00a0466c73.css → 121.00a0466c73.css} +0 -0
  47. /package/dist/static/css/async/{415.9647eb502f.css → 177.9647eb502f.css} +0 -0
  48. /package/dist/static/css/async/{581.eb4f1f3bab.css → 450.eb4f1f3bab.css} +0 -0
  49. /package/dist/static/css/async/{648.9647eb502f.css → 524.9647eb502f.css} +0 -0
  50. /package/dist/static/css/async/{632.c19d052062.css → 609.c19d052062.css} +0 -0
  51. /package/dist/static/css/async/{977.32499dd5cd.css → 718.32499dd5cd.css} +0 -0
  52. /package/dist/static/css/async/{926.706c206163.css → 725.706c206163.css} +0 -0
  53. /package/dist/static/css/async/{837.5880506aef.css → 814.5880506aef.css} +0 -0
  54. /package/dist/static/css/async/{718.9647eb502f.css → 847.9647eb502f.css} +0 -0
  55. /package/dist/static/css/async/{857.c9300469a8.css → 940.c9300469a8.css} +0 -0
  56. /package/dist/static/js/{551.ae4d7e5817.js.LICENSE.txt → 590.dc2868965d.js.LICENSE.txt} +0 -0
  57. /package/dist/static/js/async/{172.39f5f97cdc.js.LICENSE.txt → 172.5610b6d5ce.js.LICENSE.txt} +0 -0
  58. /package/dist/static/js/async/{661.2520a6fcce.js.LICENSE.txt → 661.8523cd41a7.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[177],{5606(e,r,o){o.d(r,{D:()=>l});var t=o(1085),a=o(4357);let l=e=>{let{label:r,id:o,inline:l,description:n,children:s}=e;return(0,t.jsxs)("div",{className:(0,a.A)("field-JbAWJt",{"inline-vXG0Za":l}),children:[!!r&&!l&&(0,t.jsx)("label",{htmlFor:o,children:r}),s,!!r&&l&&(0,t.jsx)("label",{htmlFor:o,children:r}),!!n&&(0,t.jsx)("span",{className:"description-XLaDVy",children:n})]})}},9839(e,r,o){o.d(r,{V:()=>f});var t=o(1085),a=o(7213),l=o(7143),n=o(9587),s=o(8357),i=o(4509),d=o(6364),c=o(9913),u=o(1975),m=o(4041);let b=n.cr.define([{tag:c._A.atom,color:"var(--hl-keyword)"},{tag:c._A.keyword,color:"var(--hl-keyword)"},{tag:c._A.bool,color:"var(--hl-keyword)"},{tag:c._A.string,color:"var(--hl-string)"},{tag:c._A.number,color:"var(--hl-number)"},{tag:c._A.brace,color:"var(--accent-color-d1)"},{tag:c._A.punctuation,color:"var(--accent-color-d1)"},{tag:c._A.propertyName,color:"var(--hl-type)"}]),p=d.Lz.theme({"&":{height:"200px",backgroundColor:"var(--input-bg)",border:"1px var(--input-border) solid",borderRadius:"0.375rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",marginTop:"0.25rem",fontSize:"0.875rem",transition:"border-color 0.2s ease-out, box-shadow 0.2s ease-out"},"&.cm-focused":{outline:"none",borderColor:"var(--input-focus-border)",boxShadow:"var(--input-focus-shadow)"},".cm-gutters":{borderRadius:"0.375rem 0 0 0.375rem",backgroundColor:"var(--json-edit-gutter-bg)",color:"inherit",borderRight:"var(--json-edit-gutter-border-color)"},".cm-cursor":{borderLeftColor:"var(--json-edit-cursor-color)"},".cm-activeLineGutter":{backgroundColor:"var(--json-edit-gutter-active-bg)"},".cm-scroller":{overflow:"auto"},".cm-tooltip":{padding:"0.25rem 0.5rem",borderRadius:"0.275rem",backgroundColor:"var(--json-edit-tooltip-bg)",border:"1px solid var(--json-edit-tooltip-border-color)"},".cm6-json-schema-hover--code > p":{margin:"0.5em 0"},".cm-tooltip-above .cm-tooltip-arrow:before":{borderTop:"7px solid var(--json-edit-tooltip-border-color)"},".cm-tooltip-above .cm-tooltip-arrow:after":{borderTop:"7px solid var(--json-edit-tooltip-bg)"},".cm-selectionBackground":{background:"var(--json-edit-selection-bg)!important"}}),h=[(0,d.cU)({class:"CodeMirror-lint-markers"}),(0,n.SG)(),(0,d.Wu)(),(0,a.wm)(),(0,l.b6)(),(0,a.yU)(),(0,d.$K)(),(0,s.pJ)(),(0,n.WD)(),(0,d.VH)(),(0,n.Lv)(),d.w4.of([...a.Bc,...l.pw,...l.cL,...n.f7,...a.OO,...s.$w]),d.Lz.lineWrapping,i.$t.tabSize.of(2),(0,n.y9)(b),p],v=i.YH.define(),j=e=>{let{doc:r,schema:o,...a}=e,l=(0,m.useRef)(null),n=(0,m.useRef)(null),[c,b]=(0,m.useState)(null);return(0,m.useEffect)(()=>{let e=d.Lz.updateListener.of(e=>{if(!n.current)return;let r=(0,s.PL)(e.state);if(e.docChanged||e.transactions.some(e=>e.annotation(v))||0!==r)r>0&&(n.current.value="");else{let r=e.state.doc;n.current.value=r.toString()}}),t=i.$t.create({doc:JSON.stringify(r,null,2),extensions:[h,e,(0,u.Og)(o||{})]}),a=new d.Lz({state:t,parent:l.current});return b(a),()=>a.destroy()},[]),(0,m.useEffect)(()=>{c&&(0,u.vK)(c,o||{})},o?[o]:[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:l}),(0,t.jsx)("input",{type:"hidden",ref:n,...a})]})};var g=o(5606);let f=e=>{let{label:r,id:o,value:a,...l}=e;return(0,t.jsx)(g.D,{label:r,id:o,children:(0,t.jsx)(j,{doc:a||{},id:o,...l})})}},776(e,r,o){var t=o(1085),a=o(6134),l=o(6174),n=o(4313),s=o(8486),i=o(9344),d=o(2e3),c=o(8116),u=o(4357);o(4041);var m=o(3751),b=o(1566),p=o(1447);o.d(r,{},{a:e=>{let{open:r,title:o,onClose:h,children:v,width:j,actionButton:g}=e,{t:f}=(0,m.Bd)();return(0,t.jsx)(a.D,{open:r,modal:!0,onOpenChange:e=>{e||h()},children:(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(n.X,{className:p.A.overlay}),(0,t.jsx)("div",{className:p.A.contentWrapper,children:(0,t.jsxs)(s.h,{className:(0,u.A)(p.A.content,p.A[j||""]),children:[!!o&&(0,t.jsx)(i.L,{children:o}),(0,t.jsx)(d.r,{render:(0,t.jsx)("div",{className:p.A.description}),children:v}),(0,t.jsxs)("div",{className:p.A.actions,children:[g,(0,t.jsx)(c.H,{render:(0,t.jsx)(b.$,{theme:"basic",children:f("MODAL.CLOSE_BTN")})})]})]})})]})})}})},8216(e,r,o){var t=o(1085),a=o(3751),l=o(4393),n=o(5835),s=o(5170),i=o(1566),d=o(9839),c=o(776);o.d(r,{},{UpdateJobDataModal:e=>{let{open:r,onClose:o,job:u}=e,{queues:m}=(0,s.A)(),{actions:b}=(0,n.J)(),p=(0,l.h)(),{t:h}=(0,a.Bd)();if(!m||!p)return null;let v=async e=>{e.preventDefault();let r=Object.fromEntries(Array.from(e.target.elements).filter(e=>e.name).map(e=>[e.name,e.value]));try{r.jobData=JSON.parse(r.jobData),await b.updateJobData(p.name,u,r)(),o()}catch(e){console.error(e)}};return(0,t.jsx)(c.a,{width:"small",open:r,onClose:o,title:h("UPDATE_JOB_DATA.TITLE"),actionButton:(0,t.jsx)(i.$,{type:"submit",theme:"primary",form:"edit-job-data-form",children:h("UPDATE_JOB_DATA.UPDATE")}),children:(0,t.jsx)("form",{id:"edit-job-data-form",onSubmit:v,children:(0,t.jsx)(d.V,{label:h("UPDATE_JOB_DATA.JOB_DATA"),value:u?.data||{},id:"job-data",name:"jobData"})})})}})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[365],{1775(e,t){t.A={card:"card-BRjpw_",contentWrapper:"contentWrapper-Aj9Wmy",jobName:"jobName-t8DcMf",sideInfo:"sideInfo-a9IFbv",header:"header-Lw4QCc",headerActions:"headerActions-BHD8mS",statusDot:"statusDot-JKWQae",jobId:"jobId-bLy5Ry",jobNameInline:"jobNameInline-ZJ3YIs",details:"details-JRsI9B",collapseBtn:"collapseBtn-J6rMz7",content:"content-SHI77x",progress:"progress-POOya3",jobLink:"jobLink-wmCWQg",titleWithLink:"titleWithLink-UFeEb7",externalLink:"externalLink-dX0ReW",groupPill:"groupPill-dKGnlb"}},5536(e,t,s){s.d(t,{Z:()=>r});var l=s(1085),a=s(4357);let r=e=>{let{children:t,className:s}=e;return(0,l.jsx)("div",{className:(0,a.A)("card-xqyZlH",s),children:t})}},9078(e,t,s){var l=s(1085);s.d(t,{},{A:()=>(0,l.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512",children:(0,l.jsx)("path",{d:"M231.293 473.899l19.799-19.799c4.686-4.686 4.686-12.284 0-16.971L70.393 256 251.092 74.87c4.686-4.686 4.686-12.284 0-16.971L231.293 38.1c-4.686-4.686-12.284-4.686-16.971 0L4.908 247.515c-4.686 4.686-4.686 12.284 0 16.971L214.322 473.9c4.687 4.686 12.285 4.686 16.971-.001z"})})})},9652(e,t,s){var l=s(1085);s.d(t,{},{E:()=>(0,l.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,l.jsx)("path",{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"})})})},534(e,t,s){var l=s(1085);s.d(t,{},{u:()=>(0,l.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,l.jsx)("path",{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"})})})},8894(e,t,s){var l=s(1085);s.d(t,{},{G:()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{d:"M15 17v-2.99A4 4 0 0 0 11 10H8v5L2 9l6-6v5h3a6 6 0 0 1 6 6v3h-2z"})})})},1752(e,t,s){var l=s(1085);s.d(t,{},{m:()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{d:"M5 4a2 2 0 0 0-2 2v6H0l4 4 4-4H5V6h7l2-2H5zm10 4h-3l4-4 4 4h-3v6a2 2 0 0 1-2 2H6l2-2h7V8z"})})})},1388(e,t,s){var l=s(1085);s.d(t,{},{u:()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{d:"M6 2l2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z"})})})},3262(e,t,s){s.d(t,{o:()=>en});var l=s(1085),a=s(6922),r=s(6458),n=s(2299),i=s(4041),c=s(3751),o=s(3664),d=s(8789),u=s(2815),h=s(1566),m=s(5536),p=s(3983);let x=()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,l.jsx)("path",{d:"M241 130.5l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9l-22.7 22.7c-9.4 9.4-24.5 9.4-33.9 0L224 227.5 69.3 381.5c-9.4 9.3-24.5 9.3-33.9 0l-22.7-22.7c-9.4-9.4-9.4-24.6 0-33.9L207 130.5C216.4 121.2 231.6 121.2 241 130.5z"})}),j=e=>{let{className:t}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 512 512",className:t,children:(0,l.jsx)("path",{d:"M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112v320c0 44.2 35.8 80 80 80h320c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v112c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16h112c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"})})};var g=s(710),f=s(9767),v=s(4357),b=s(8807);s(7775);let w=()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,l.jsx)("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"})}),y=()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:(0,l.jsx)("path",{d:"M280 64l40 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l40 0 9.6 0C121 27.5 153.3 0 192 0s71 27.5 78.4 64l9.6 0zM64 112c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16l-16 0 0 24c0 13.3-10.7 24-24 24l-88 0-88 0c-13.3 0-24-10.7-24-24l0-24-16 0zm128-8a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"})}),N=e=>{let{textToCopy:t,className:s,tabIndex:a}=e,{t:r}=(0,c.Bd)(),[n,o]=(0,i.useState)(!1),d=(0,i.useRef)(null),u=(0,i.useCallback)(async()=>{try{await navigator.clipboard.writeText(t),o(!0),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>o(!1),1500)}catch(e){alert(r("CLIPBOARD.COPY_FAILED"))}},[t,r]);return(0,l.jsx)(h.$,{onClick:u,className:`copyBtn-S91mHH ${n?"copied-Eowyzo":""} ${s||""}`,tabIndex:a,children:n?(0,l.jsx)(w,{}):(0,l.jsx)(y,{})})};var A="label-ymbP05",O="value-I7VrmD";let L={container:"container-_LjKnx",basicChildStyle:"basicChildStyle-tTpXD4",collapseIcon:"collapseIcon-PhouWI",expandIcon:"expandIcon-RZtdZD",collapsedContent:"collapsedContent-wxaP6v",label:A,clickableLabel:A,punctuation:"punctuation-SIrhOo",stringValue:(0,v.A)("stringValue-jX0CHZ",O),numberValue:(0,v.A)("numberValue-FVYrm4",O),booleanValue:(0,v.A)("booleanValue-Gs5QuZ",O),nullValue:(0,v.A)("nullValue-Z9oy6o",O),undefinedValue:(0,v.A)("undefinedValue-YPfHsD",O),otherValue:(0,v.A)("otherValue-gr22aS",O),noQuotesForStringValues:!1},B=e=>{let{data:t,defaultCollapseDepth:s=3}=e,a=(0,i.useMemo)(()=>JSON.stringify(t,null,2),[t]),r=(0,i.useCallback)(e=>0===s?(0,b.ab)(e):e<s,[s]);return(0,l.jsxs)("div",{className:"root-Eyiful",children:[(0,l.jsx)("div",{className:"content-K6N1cP",children:(0,l.jsx)(b.UU,{data:t,shouldExpandNode:r,style:L})}),(0,l.jsx)(N,{textToCopy:a,className:"copyBtn-CoPL0E"})]})};var C=s(6506);let I=void 0!==window.Worker,T=null,S=new Map;async function J(e,t){if(I)return T||((T=new Worker(new URL(s.p+s.u(697),s.b),Object.assign({},{name:"highlight-worker"},{type:void 0}))).onmessage=e=>{let{data:t}=e,{id:s,code:l}=t;if(S.has(s)){let{resolve:e}=S.get(s);e(l)}}),new Promise((s,l)=>{let a=(0,C.Ak)(5);T?.postMessage({id:a,code:e,language:t}),S.set(a,{resolve:e=>{S.delete(a),s(e)},reject:()=>{S.delete(a),l()}}),setTimeout(()=>l(),6e4)});{let{highlighter:l}=await Promise.all([s.e(833),s.e(334)]).then(s.bind(s,9721));return l.highlightAuto(e,[t]).value||""}}let E=e=>{let{language:t,text:s}=e,[a,r]=(0,i.useState)("");return(0,i.useEffect)(()=>{let e=!1;return J(s,t).then(t=>{e||r(t)}),()=>{e=!0}},[t,s]),(0,l.jsxs)("div",{className:"codeContainerWrapper-ZpYBAP",children:[(0,l.jsx)("pre",{children:(0,l.jsx)("code",{className:(0,v.A)("hljs",t),dangerouslySetInnerHTML:{__html:a}})}),(0,l.jsx)(h.$,{onClick:()=>{navigator.clipboard.writeText(s??"")},className:"copyBtn-vLoi5u",compact:!0,children:(0,l.jsx)(y,{})})]})};var D=s(4934),R=s(5944),_=s(2233),k=s(8962);let M=(e,t,s)=>{let l;if((0,D.c)(e)){if(s?.short)return new Intl.DateTimeFormat(t,s.short).format(e);l={hour:"numeric",minute:"numeric",second:"numeric"}}else if((0,R.s)(e,new Date)){if(s?.common)return new Intl.DateTimeFormat(t,s.common).format(e);l={month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}}else{if(s?.full)return new Intl.DateTimeFormat(t,s.full).format(e);l={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}}return new Intl.DateTimeFormat(t,l).format(e)},$=(e,t,s,l)=>{let a=(0,_.b)(e,t),r=a/1e3;if(r>5){let e=new Intl.RelativeTimeFormat(s,{numeric:"auto"}),t=Math.round(r);if(t<60)return e.format(-t,"second").replace(/ ago$/,"");let l=Math.round(t/60);if(l<60)return e.format(-l,"minute").replace(/ ago$/,"");let a=Math.round(l/60);if(a<24)return e.format(-a,"hour").replace(/ ago$/,"");let n=Math.round(a/24);return e.format(-n,"day").replace(/ ago$/,"")}return r>=1?l("JOB.DURATION.SECS",{duration:r.toFixed(2)}):l("JOB.DURATION.MILLI_SECS",{duration:a})},H=function(e){let{job:t,status:s,className:a}=e,{t:r,i18n:i}=(0,c.Bd)(),o=(0,k._)().dateFormats||{};return(0,l.jsx)("div",{className:(0,v.A)("timelineWrapper-iZqG0C",a),children:(0,l.jsxs)("ul",{className:"timeline-lF9niS",children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("small",{children:r("JOB.ADDED_AT")}),(0,l.jsx)("time",{children:M(t.timestamp||0,i.language,o)})]}),!!t.delay&&t.delay>0&&s===n.f.delayed&&(0,l.jsxs)("li",{children:[(0,l.jsx)("small",{children:r("JOB.WILL_RUN_AT")}),(0,l.jsx)("time",{children:M((t.timestamp||0)+(t.opts.delay||t.delay||0),i.language,o)}),t.delay!==t.opts.delay&&(0,l.jsxs)("small",{children:[r("JOB.DELAY_CHANGED")," "]})]}),!!t.processedOn&&(0,l.jsxs)("li",{children:[(0,l.jsxs)("small",{children:[!!t.delay&&t.delay>0&&r("JOB.DELAYED_FOR")+" ",$(t.processedOn,t.timestamp||0,i.language,r)]}),(0,l.jsx)("small",{children:r("JOB.PROCESS_STARTED_AT")}),(0,l.jsx)("time",{children:M(t.processedOn,i.language,o)}),!!t.processedBy&&(0,l.jsx)("small",{children:r("JOB.PROCESSED_BY",{processedBy:t.processedBy})})]}),!!t.finishedOn&&(0,l.jsxs)("li",{children:[(0,l.jsx)("small",{children:$(t.finishedOn,t.processedOn||0,i.language,r)}),(0,l.jsx)("small",{children:r(t.isFailed&&s!==n.f.active&&s!==n.f.completed?"JOB.FAILED_AT":"JOB.FINISHED_AT")}),(0,l.jsx)("time",{children:M(t.finishedOn,i.language,o)})]})]})})};var P=s(7235),V=s(9652),F=s(534),z="preWrapper-V9RpQs";let W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return!t||RegExp(`${t}`,"i").test(e.message)};function K(e){return e.map((e,t)=>({message:e,lineNumber:t+1}))}let G=e=>{let t,{actions:s,job:a}=e,{t:r}=(0,c.Bd)(),[n,o]=(0,i.useState)([]),[d,u]=(0,i.useState)(!1),[m,p]=(0,i.useState)(""),[x,j]=(0,i.useState)(""),g=(0,i.useRef)(null),f=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=!0;return s.getJobLogs().then(t=>{e&&o(K(t))}),()=>{e=!1}},[]),function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=(0,i.useRef)(e);(0,i.useLayoutEffect)(()=>{l.current=e},[e]),(0,i.useEffect)(()=>{if(l.current(),null===t)return;let e=!0,s=setInterval(async()=>{if(e){e=!1;try{await l.current()}finally{e=!0}}},t);return()=>{clearInterval(s)}},[t,...s])}(async()=>{o(K(await s.getJobLogs())),requestAnimationFrame(()=>{let e=g.current?.querySelector(`.${z}`);e?.scrollTo({top:e.scrollHeight,behavior:"smooth"})})},d?2500:null);let v=()=>{u(!d)},b=n.filter(e=>W(e,m));return(0,l.jsx)("div",{className:"jobLogs-MsL4aJ",ref:g,children:n.length>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("ul",{className:"toolbar-duDU2f",children:[(0,l.jsx)("li",{children:(0,l.jsx)("input",{className:"searchBar-N4o70g",type:"text",placeholder:r("JOB.LOGS.FILTER_PLACEHOLDER"),value:x,onChange:e=>{let t=e.target.value;j(t),f.current&&clearTimeout(f.current),f.current=setTimeout(()=>p(t),250)}})}),!a.finishedOn&&(0,l.jsx)("li",{children:(0,l.jsx)(h.$,{isActive:d,onClick:v,children:d?(0,l.jsx)(V.E,{}):(0,l.jsx)(F.u,{})})}),(0,l.jsx)("li",{children:(0,l.jsx)(h.$,{onClick:(t=g.current,async()=>t&&document.fullscreenElement!==t?await t.requestFullscreen():document.exitFullscreen()),children:(0,l.jsx)(P.P,{})})}),(0,l.jsx)("li",{children:(0,l.jsx)(N,{textToCopy:b.map(e=>e.message).join("\n")})})]}),(0,l.jsx)("div",{className:z,children:(0,l.jsx)("pre",{children:(0,l.jsx)("ol",{style:{paddingInlineStart:`${`${b.length}`.length+1}ch`},children:b.map(e=>{let t;return(0,l.jsxs)("li",{className:(t=e.message?.match(/((info|warn|error)?):/i)?.[1],t?.toLowerCase()),"data-line-number":`${e.lineNumber}.`,children:[e.message,(0,l.jsx)(N,{textToCopy:e.message,className:"logLineCopyButton-LnHhmG",tabIndex:-1})]},e.lineNumber)})})})})]}):(0,l.jsxs)("div",{className:"emptyState-W3badU",children:[r("JOB.NO_LOGS"),!a.finishedOn&&(0,l.jsx)(h.$,{isActive:d,onClick:v,children:d?(0,l.jsx)(V.E,{}):(0,l.jsx)(F.u,{})})]})})},U=e=>{let{selectedTab:t,job:s,actions:a,status:r}=e,{t:n}=(0,c.Bd)(),{collapseJobData:o,collapseJobProgress:d,collapseJobOptions:m,collapseJobError:x,defaultCollapseDepth:j,useCollapsibleJson:g}=(0,u.C)(),[f,v]=(0,i.useState)({data:!1,progress:!1,options:!1,error:!1}),{stacktrace:b,data:w,returnValue:y,opts:N,failedReason:A}=s;switch(t){case"Data":if(o&&!f.data)return(0,l.jsxs)(h.$,{onClick:()=>v({...f,data:!0}),children:[n("JOB.SHOW_DATA_BTN")," ",(0,l.jsx)(p.y,{})]});return g?(0,l.jsx)(B,{data:{jobData:w,returnValue:y},defaultCollapseDepth:j}):(0,l.jsx)(E,{language:"json",text:JSON.stringify({jobData:w,returnValue:y},null,2)});case"Progress":if("number"==typeof s.progress||"boolean"==typeof s.progress||null===s.progress||void 0===s.progress)return(0,l.jsx)("div",{className:"error",children:n("JOB.NO_PROGRESS")});return d&&!f.progress?(0,l.jsxs)(h.$,{onClick:()=>v({...f,progress:!0}),children:[n("JOB.SHOW_PROGRESS_BTN")," ",(0,l.jsx)(p.y,{})]}):g?(0,l.jsx)(B,{data:s.progress,defaultCollapseDepth:j}):(0,l.jsx)(E,{language:"json",text:JSON.stringify(s.progress,null,2)});case"Options":if(m&&!f.options)return(0,l.jsxs)(h.$,{onClick:()=>v({...f,options:!0}),children:[n("JOB.SHOW_OPTIONS_BTN")," ",(0,l.jsx)(p.y,{})]});return g?(0,l.jsx)(B,{data:N,defaultCollapseDepth:j}):(0,l.jsx)(E,{language:"json",text:JSON.stringify(N,null,2)});case"Error":if(0===b.length)return(0,l.jsx)("div",{className:"error",children:A||n("JOB.NO_ERRORS")});return x&&!f.error?(0,l.jsxs)(h.$,{onClick:()=>v({...f,error:!0}),children:[n("JOB.SHOW_ERRORS_BTN")," ",(0,l.jsx)(p.y,{})]}):(0,l.jsx)(E,{language:"stacktrace",text:b.join("\n")},"stacktrace");case"Logs":return(0,l.jsx)(G,{actions:a,job:s});case"Timeline":return(0,l.jsx)(H,{job:s,status:r,className:"timeline-_2T35a"});default:return null}},Y=e=>{let{status:t,job:s,actions:a,withTimeline:r=!1}=e,{tabs:n,selectedTab:i}=(0,g.i)({currentStatus:t,withTimeline:r}),{t:o}=(0,c.Bd)();return 0===n.length?null:(0,l.jsxs)("div",{className:"details-LkCTWS",children:[(0,l.jsx)("ul",{className:"tabActions-fF3v6_",children:n.map(e=>(0,l.jsx)("li",{children:(0,l.jsx)(h.$,{onClick:e.selectTab,isActive:e.isActive,children:o((0,f.G)(`JOB.TABS.${e.title.toUpperCase()}`))})},e.title))}),(0,l.jsx)("div",{className:"tabContent-qmHNgq",children:(0,l.jsx)(U,{selectedTab:i,job:s,actions:a,status:t})})]})};var Z=s(8894),q=s(1752),Q=s(1388);let X=e=>{let{title:t,children:s}=e;return(0,l.jsx)("span",{"data-title":t,className:"tooltip-QJB3Pz",children:s})},ee={updateData:{titleKey:"UPDATE_DATA",Icon:()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,l.jsx)("path",{d:"M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"})}),actionKey:"updateJobData"},promote:{titleKey:"PROMOTE",Icon:Z.G,actionKey:"promoteJob"},clean:{titleKey:"CLEAN",Icon:Q.u,actionKey:"cleanJob"},retry:{titleKey:"RETRY",Icon:q.m,actionKey:"retryJob"},duplicate:{titleKey:"DUPLICATE",Icon:()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,l.jsx)("path",{d:"M208 0L332.1 0c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9L448 336c0 26.5-21.5 48-48 48l-192 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48zM48 128l80 0 0 64-64 0 0 256 192 0 0-32 64 0 0 48c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 176c0-26.5 21.5-48 48-48z"})}),actionKey:"duplicateJob"}},et={[n.f.failed]:[ee.retry,ee.duplicate,ee.updateData,ee.clean],[n.f.delayed]:[ee.promote,ee.duplicate,ee.updateData,ee.clean],[n.f.completed]:[ee.duplicate,ee.retry,ee.clean],[n.f.waiting]:[ee.duplicate,ee.updateData,ee.clean],[n.f.waitingChildren]:[ee.duplicate,ee.updateData,ee.clean],[n.f.prioritized]:[ee.duplicate,ee.updateData,ee.clean],[n.f.paused]:[ee.duplicate,ee.updateData,ee.clean]},es=e=>{let{actions:t,status:s,allowRetries:a}=e,r=et[s],{t:n}=(0,c.Bd)();return r?(a||(r=r.filter(e=>"retryJob"!==e.actionKey)),(0,l.jsx)("ul",{className:"jobActions-XfoQK8",children:r.map(e=>(0,l.jsx)("li",{children:(0,l.jsx)(X,{title:n((0,f.G)(`JOB.ACTIONS.${e.titleKey}`)),children:(0,l.jsx)(h.$,{onClick:t[e.actionKey],className:"button-GXX8BV",children:(0,l.jsx)(e.Icon,{})})})},e.titleKey))})):null},el=e=>{var t;let{progress:s,status:a,className:r,strokeWidth:i=6}=e,c="number"==typeof(t=s)?t:"string"==typeof t?Number.isNaN(+t)?null:+t:t&&"boolean"!=typeof t&&"progress"in t&&"number"==typeof t.progress?t.progress:null;if(!c)return null;let o={cx:"50%",cy:"50%",r:`calc(50% - ${i/2}px)`,strokeWidth:i,transformOrigin:"center"};return(0,l.jsxs)("svg",{className:(0,v.A)("progress-Rr7sCM",r),width:"100%",height:"100%",children:[(0,l.jsx)("circle",{...o}),(0,l.jsx)("circle",{className:(0,v.A)({"failed-rTUpGj":a===n.f.failed,"success-RY6h2q":a!==n.f.failed}),pathLength:100,strokeDasharray:100,strokeDashoffset:100-c,strokeLinejoin:"round",strokeLinecap:"round",transform:"rotate(-90)",...o}),(0,l.jsx)("text",{x:"50%",y:"50%",textAnchor:"middle",dominantBaseline:"central",children:(0,l.jsx)("tspan",{dominantBaseline:"central",children:`${Math.round(c)}%`})})]})};var ea=s(1775);let er=[n.f.active,n.f.completed],en=e=>{let{job:t,status:s,actions:g,readOnlyMode:f,allowRetries:v,jobUrl:b}=e,{t:w}=(0,c.Bd)(),{collapseJob:y}=(0,u.C)(),N=(0,d.I)(),[A,O]=(0,i.useState)(),L=!b||A||!y,B=y&&b,C=/^\d+$/.test(`${t.id}`)?"#":"",I=`${t.id}`.length<=8;return(0,l.jsxs)(a.N,{open:L,render:(0,l.jsx)(m.Z,{className:ea.A.card}),children:[(0,l.jsxs)("div",{className:ea.A.header,children:[(0,l.jsxs)("div",{className:ea.A.titleWithLink,children:[b?(0,l.jsxs)(o.N_,{className:ea.A.jobLink,to:b,children:[(0,l.jsxs)("span",{className:ea.A.jobId,children:[C,t.id]}),I&&(0,l.jsx)("span",{className:ea.A.jobNameInline,children:t.name})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:ea.A.statusDot,style:{backgroundColor:`var(--${s})`}}),(0,l.jsxs)("span",{className:ea.A.jobId,children:[C,t.id]}),I&&(0,l.jsx)("span",{className:ea.A.jobNameInline,children:t.name})]}),null!=t.groupId&&(0,l.jsxs)("span",{className:ea.A.groupPill,title:`Group: ${t.groupId}`,children:["group: ",t.groupId]}),t.externalUrl&&(0,l.jsx)("a",{className:ea.A.externalLink,href:t.externalUrl.href,target:"_blank",rel:"noopener noreferrer",children:t.externalUrl.displayText??(0,l.jsx)(j,{})})]}),(0,l.jsxs)("div",{className:ea.A.headerActions,children:[!f&&(0,l.jsx)(es,{status:s,actions:g,allowRetries:v}),B&&(0,l.jsx)(h.$,{className:ea.A.collapseBtn,onClick:()=>O(!L),children:L?(0,l.jsx)(x,{}):(0,l.jsx)(p.y,{})})]})]}),(0,l.jsxs)(r.j,{render:(0,l.jsx)("div",{className:ea.A.details}),children:[!N&&(0,l.jsx)("div",{className:ea.A.sideInfo,children:(0,l.jsx)(H,{job:t,status:s})}),(0,l.jsxs)("div",{className:ea.A.contentWrapper,children:[!I&&(0,l.jsxs)("h5",{className:ea.A.jobName,children:[t.name,t.attempts>1&&(0,l.jsx)("span",{children:w("JOB.ATTEMPTS",{attempts:t.attempts})}),!!t.opts?.repeat?.count&&(0,l.jsx)("span",{children:w(`JOB.REPEAT${t.opts?.repeat?.limit?"_WITH_LIMIT":""}`,{count:t.opts.repeat.count,limit:t.opts?.repeat?.limit})})]}),(0,l.jsx)("div",{className:ea.A.content,children:(0,l.jsx)(Y,{status:s,job:t,actions:g,withTimeline:N})}),(0,l.jsx)(el,{progress:t.progress,status:t.isFailed&&!er.includes(s)?n.f.failed:s,className:ea.A.progress})]})]})]})}},4766(e,t,s){s.d(t,{V:()=>a});var l=s(1085);let a=s(4041).forwardRef((e,t)=>{let{actions:s,children:a}=e;return(0,l.jsxs)("div",{ref:t,className:"stickyHeader-Woc0cg",children:[a,!!s&&(0,l.jsx)("div",{className:"actionContainer-gipYSV",children:s})]})})},3960(e,t,s){var l=s(6090);function a(){let{pathname:e}=(0,l.zy)(),t=(0,l.B6)(e,{path:["/queue/:name/:jobId"],exact:!1,strict:!1});return decodeURIComponent(t?.params.jobId||"")}s.d(t,{W:()=>a})},710(e,t,s){var l=s(2299),a=s(4041),r=s(2815);let n=["Data","Progress","Options","Logs","Error","Timeline"];function i(e){let[t,s]=(0,a.useState)([]),{defaultJobTab:i}=(0,r.C)(),[c,o]=(0,a.useState)(t.find(e=>e===i)||t[0]);return(0,a.useEffect)(()=>{let t=n.filter(e=>"Error"!==e&&"Timeline"!==e);t=e.currentStatus===l.f.failed?["Error",...t]:[...t,"Error"],e.withTimeline&&t.push("Timeline"),s(t)},[e.currentStatus,e.withTimeline]),(0,a.useEffect)(()=>{o(t.includes(i)?i:t[0])},[i,t]),{tabs:t?.map(e=>({title:e,isActive:e===c,selectTab:()=>o(e)})),selectedTab:c}}s.d(t,{i:()=>i},{d:n})},5835(e,t,s){var l=s(3402),a=s(6772),r=s(4181),n=s(3751),i=s(4015),c=s(5193),o=s(3960),d=s(6930),u=s(1008),h=s(7012),m=s(5170),p=s(2815);function x(){let e=(0,u.g)(),t=(0,l.jE)(),s=(0,d._)(),x=(0,o.W)(),{actions:{updateQueues:j}}=(0,m.A)(),{t:g}=(0,n.Bd)(),{confirmJobActions:f,pollingInterval:v}=(0,p.C)(e=>{let{confirmJobActions:t,pollingInterval:s}=e;return{confirmJobActions:t,pollingInterval:s}}),{openConfirm:b}=(0,h.S)(),w=c.l.job(s,x),{data:y,isPending:N,isPlaceholderData:A}=(0,a.I)({queryKey:w,queryFn:()=>e.getJob(s,x),enabled:!!x,refetchInterval:v>0&&1e3*v,placeholderData:r.rX}),O=()=>t.invalidateQueries({queryKey:w}),L=(0,i.A)(x?O:j,b);return{job:y?.job??null,status:y?.status??"latest",loading:N,isTransitioning:A,actions:{getJob:O,promoteJob:t=>s=>L(()=>e.promoteJob(t,s.id),g("JOB.ACTIONS.CONFIRM.PROMOTE"),f),cleanJob:t=>s=>L(()=>e.cleanJob(t,s.id),g("JOB.ACTIONS.CONFIRM.CLEAN"),f),getJobLogs:t=>s=>()=>e.getJobLogs(t,s.id),retryJob:t=>s=>L(()=>e.retryJob(t,s.id),g("JOB.ACTIONS.CONFIRM.RETRY"),f),updateJobData:(t,s,l)=>L(()=>e.updateJobData(t,s.id,l),"",!1)}}}s.d(t,{J:()=>x})},9767(e,t,s){s.d(t,{},{G:e=>e})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[450],{8911(e,l,s){s.d(l,{i:()=>d});var a=s(1085),n=s(4357),r=s(4041),i=s(3983);let d=e=>{let{title:l,open:s,onToggle:d,children:c}=e,t=(0,r.useId)();return(0,a.jsxs)("div",{className:(0,n.A)("section-zYcd91",s&&"sectionOpen-ihwaNQ"),children:[(0,a.jsxs)("button",{type:"button",className:"header-o6017O","aria-expanded":s,"aria-controls":t,onClick:d,children:[(0,a.jsx)("span",{className:"title-l1MOL9",children:l}),(0,a.jsx)(i.y,{className:(0,n.A)("chevron-yOuH3O",s&&"chevronOpen-pUggyE")})]}),(0,a.jsx)("div",{id:t,className:"reveal-AVXtkY",role:"region","aria-hidden":!s,children:(0,a.jsx)("div",{className:"revealInner-p4EyhD",children:(0,a.jsx)("div",{className:"body-JvlAoS",children:c})})})]})}},776(e,l,s){var a=s(1085),n=s(6134),r=s(6174),i=s(4313),d=s(8486),c=s(9344),t=s(2e3),o=s(8116),N=s(4357);s(4041);var u=s(3751),h=s(1566),E=s(1447);s.d(l,{},{a:e=>{let{open:l,title:s,onClose:j,children:p,width:m,actionButton:x}=e,{t:U}=(0,u.Bd)();return(0,a.jsx)(n.D,{open:l,modal:!0,onOpenChange:e=>{e||j()},children:(0,a.jsxs)(r.Z,{children:[(0,a.jsx)(i.X,{className:E.A.overlay}),(0,a.jsx)("div",{className:E.A.contentWrapper,children:(0,a.jsxs)(d.h,{className:(0,N.A)(E.A.content,E.A[m||""]),children:[!!s&&(0,a.jsx)(c.L,{children:s}),(0,a.jsx)(t.r,{render:(0,a.jsx)("div",{className:E.A.description}),children:p}),(0,a.jsxs)("div",{className:E.A.actions,children:[x,(0,a.jsx)(o.H,{render:(0,a.jsx)(h.$,{theme:"basic",children:U("MODAL.CLOSE_BTN")})})]})]})})]})})}})},5241(e,l,s){s.d(l,{QueueInfoModal:()=>j});var a=s(1085),n=s(4357),r=s(4041),i=s(3751),d=s(1008),c=s(8911),t=s(776),o="grid-adtjlk",N="mono-UQ1Ma_",u="muted-heunFC",h="badge-yTYKYB";let E=e=>{let{label:l,children:s}=e;return(0,a.jsxs)("div",{className:"row-drsBjA",children:[(0,a.jsx)("dt",{className:"label-R1b_aM",children:l}),(0,a.jsx)("dd",{className:"value-BL6Ajy",children:s})]})},j=e=>{let{open:l,queue:s,onClose:j}=e,{t:p}=(0,i.Bd)(),[m,x]=(0,r.useState)("overview"),U=e=>x(l=>l===e?"":e),O=s.statuses.reduce((e,l)=>e+(s.counts[l]||0),0),{defaultJobOptions:I}=function(e,l){let s=(0,d.g)(),[a,n]=(0,r.useState)(null),[i,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!l||!e)return;let a=!1;return c(!0),s.getQueueDefaultJobOptions(e).then(e=>{a||n(e)}).catch(e=>{console.error("Failed to fetch default job options",e)}).finally(()=>{a||c(!1)}),()=>{a=!0}},[e,l]),{defaultJobOptions:a,loading:i}}(s.name,l),b=Object.entries(I||{});return(0,a.jsxs)(t.a,{width:"medium",open:l,onClose:j,title:p("QUEUE.INFO.TITLE"),children:[(0,a.jsx)("div",{className:"queueName-T66egw",title:s.name,children:s.displayName||s.name}),(0,a.jsx)(c.i,{title:p("QUEUE.INFO.OVERVIEW"),open:"overview"===m,onToggle:()=>U("overview"),children:(0,a.jsxs)("dl",{className:o,children:[(0,a.jsx)(E,{label:p("QUEUE.INFO.NAME"),children:(0,a.jsx)("span",{className:N,children:s.name})}),s.displayName&&s.displayName!==s.name&&(0,a.jsx)(E,{label:p("QUEUE.INFO.DISPLAY_NAME"),children:s.displayName}),(0,a.jsx)(E,{label:p("QUEUE.INFO.TYPE"),children:(0,a.jsx)("span",{className:h,children:"bullmq"===s.type?"BullMQ":"Bull"})}),(0,a.jsx)(E,{label:p("QUEUE.INFO.STATE"),children:(0,a.jsx)("span",{className:(0,n.A)(h,s.isPaused?"badgePaused-NIJZnS":"badgeRunning-y73je5"),children:p(s.isPaused?"QUEUE.INFO.PAUSED":"QUEUE.INFO.RUNNING")})}),(0,a.jsx)(E,{label:p("QUEUE.INFO.GLOBAL_CONCURRENCY"),children:null!=s.globalConcurrency?(0,a.jsx)("span",{className:N,children:s.globalConcurrency}):(0,a.jsx)("span",{className:u,children:p("QUEUE.INFO.NOT_SET")})}),(0,a.jsx)(E,{label:p("QUEUE.INFO.READ_ONLY"),children:p(s.readOnlyMode?"QUEUE.INFO.YES":"QUEUE.INFO.NO")}),(0,a.jsx)(E,{label:p("QUEUE.INFO.RETRIES"),children:p(s.allowRetries?"QUEUE.INFO.YES":"QUEUE.INFO.NO")}),(0,a.jsx)(E,{label:p("QUEUE.INFO.DELIMITER"),children:s.delimiter?(0,a.jsx)("span",{className:N,children:s.delimiter}):(0,a.jsx)("span",{className:u,children:"—"})}),(0,a.jsx)(E,{label:p("QUEUE.INFO.TOTAL_JOBS"),children:(0,a.jsx)("span",{className:N,children:O})})]})}),b.length>0&&(0,a.jsx)(c.i,{title:p("QUEUE.INFO.DEFAULTS"),open:"defaults"===m,onToggle:()=>U("defaults"),children:(0,a.jsx)("dl",{className:o,children:b.map(e=>{let[l,s]=e;return(0,a.jsx)(E,{label:l.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").replace(/\s+/g," ").trim().replace(/\b\w/g,e=>e.toUpperCase()),children:(0,a.jsx)("span",{className:N,children:function(e){if(null==e)return"—";if("boolean"==typeof e)return e?"true":"false";if("object"==typeof e){if("type"in e||"delay"in e){let l=[];if(e.type&&l.push(String(e.type)),null!=e.delay&&l.push(`${e.delay}ms`),l.length)return l.join(" · ")}return JSON.stringify(e)}return String(e)}(s)})},l)})})}),!!s.description&&(0,a.jsx)(c.i,{title:p("QUEUE.INFO.DESCRIPTION"),open:"description"===m,onToggle:()=>U("description"),children:(0,a.jsx)("p",{className:"description-wp2gMg",children:s.description})})]})}},6134(e,l,s){var a=s(4041),n=s(9407),r=s(4781);function i(e){let l=a.useContext(n.Ts)?"drawer":"dialog";return(0,r.G)(e,l)}s.d(l,{D:()=>i})}}]);
@@ -1 +1 @@
1
- "use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[415],{3754(e,t,i){i.d(t,{AddJobModal:()=>h});var o=i(1085),r=i(4041),n=i(5261),a=i(9880),s=i(7785),p=JSON.parse('{"$ref":"#/definitions/Bull.JobOptions","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"Bull.BackoffOptions":{"additionalProperties":false,"properties":{"delay":{"description":"Backoff delay, in milliseconds","type":"number"},"options":{"description":"Options for custom strategies"},"type":{"description":"Backoff type, which can be either `fixed` or `exponential`","type":"string"}},"required":["type"],"type":"object"},"Bull.DebounceOptions":{"additionalProperties":false,"properties":{"id":{"description":"Identifier","type":"string"},"ttl":{"description":"ttl in milliseconds","type":"number"}},"required":["id"],"type":"object"},"Bull.JobId":{"type":["number","string"]},"Bull.JobOptions":{"additionalProperties":false,"properties":{"attempts":{"description":"The total number of attempts to try the job until it completes","type":"number"},"backoff":{"anyOf":[{"type":"number"},{"$ref":"#/definitions/Bull.BackoffOptions"}],"description":"Backoff setting for automatic retries if the job fails"},"debounce":{"$ref":"#/definitions/Bull.DebounceOptions","description":"Debounce options."},"delay":{"description":"An amount of miliseconds to wait until this job can be processed. Note that for accurate delays, both server and clients should have their clocks synchronized. [optional]","type":"number"},"jobId":{"$ref":"#/definitions/Bull.JobId","description":"Override the job ID - by default, the job ID is a unique integer, but you can use this setting to override it. If you use this option, it is up to you to ensure the jobId is unique. If you attempt to add a job with an id that already exists, it will not be added."},"lifo":{"description":"A boolean which, if true, adds the job to the right of the queue instead of the left (default false)","type":"boolean"},"preventParsingData":{"description":"Prevents JSON data from being parsed.","type":"boolean"},"priority":{"description":"Optional priority value. ranges from 1 (highest priority) to MAX_INT (lowest priority). Note that using priorities has a slight impact on performance, so do not use it if not required","type":"number"},"removeOnComplete":{"anyOf":[{"type":"boolean"},{"type":"number"},{"$ref":"#/definitions/Bull.KeepJobsOptions"}],"description":"A boolean which, if true, removes the job when it successfully completes. When a number, it specifies the amount of jobs to keep. Default behavior is to keep the job in the completed set. See KeepJobsOptions if using that interface instead."},"removeOnFail":{"anyOf":[{"type":"boolean"},{"type":"number"},{"$ref":"#/definitions/Bull.KeepJobsOptions"}],"description":"A boolean which, if true, removes the job when it fails after all attempts. When a number, it specifies the amount of jobs to keep. Default behavior is to keep the job in the failed set. See KeepJobsOptions if using that interface instead."},"repeat":{"anyOf":[{"additionalProperties":false,"properties":{"count":{"description":"The start value for the repeat iteration count.","type":"number"},"cron":{"description":"Cron pattern specifying when the job should execute","type":"string"},"endDate":{"anyOf":[{"format":"date-time","type":"string"},{"type":"string"},{"type":"number"}],"description":"End date when the repeat job should stop repeating"},"key":{"description":"The key for the repeatable job metadata in Redis.","type":"string"},"limit":{"description":"Number of times the job should repeat at max.","type":"number"},"startDate":{"anyOf":[{"format":"date-time","type":"string"},{"type":"string"},{"type":"number"}],"description":"Start date when the repeat job should start repeating (only with cron)."},"tz":{"description":"Timezone","type":"string"}},"required":["cron"],"type":"object"},{"additionalProperties":false,"properties":{"count":{"description":"The start value for the repeat iteration count.","type":"number"},"endDate":{"anyOf":[{"format":"date-time","type":"string"},{"type":"string"},{"type":"number"}],"description":"End date when the repeat job should stop repeating"},"every":{"description":"Repeat every millis (cron setting cannot be used together with this setting.)","type":"number"},"key":{"description":"The key for the repeatable job metadata in Redis.","type":"string"},"limit":{"description":"Number of times the job should repeat at max.","type":"number"},"tz":{"description":"Timezone","type":"string"}},"required":["every"],"type":"object"}],"description":"Repeat job according to a cron specification"},"stackTraceLimit":{"description":"Limits the amount of stack trace lines that will be recorded in the stacktrace.","type":"number"},"timeout":{"description":"The number of milliseconds after which the job should be fail with a timeout error","type":"number"}},"type":"object"},"Bull.KeepJobsOptions":{"additionalProperties":false,"description":"Specify which jobs to keep after finishing processing this job. If both age and count are specified, then the jobs kept will be the ones that satisfies both properties.","properties":{"age":{"description":"Maximum age in *seconds* for job to be kept.","type":"number"},"count":{"description":"Maximum count of jobs to be kept.","type":"number"}},"type":"object"}}}'),d=JSON.parse('{"$ref":"#/definitions/JobsOptions","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"BackoffOptions":{"additionalProperties":false,"description":"Settings for backing off failed jobs.","properties":{"delay":{"description":"Delay in milliseconds.","type":"number"},"jitter":{"description":"Percentage of jitter usage.","type":"number"},"type":{"anyOf":[{"type":"string"},{"enum":["fixed","exponential"],"type":"string"}],"description":"Name of the backoff strategy."}},"required":["type"],"type":"object"},"DateType":{"anyOf":[{"format":"date-time","type":"string"},{"type":"number"},{"type":"string"}]},"DeduplicationOptions":{"additionalProperties":false,"description":"Deduplication options","properties":{"extend":{"description":"Extend ttl value","type":"boolean"},"id":{"description":"Identifier","type":"string"},"keepLastIfActive":{"description":"If true, when a job with the same deduplication ID is currently active (being processed), the new job\'s data will be stored and a new job will be created automatically when the active one finishes (completes or fails). If multiple jobs are added while the active job is running, only the latest data is kept.\\n\\nThis guarantees that at most 2 jobs per deduplication ID exist at any time: 1 active and 1 waiting, preventing parallel execution of jobs with the same deduplication ID.\\n\\nNote: when this option is set, `ttl` is ignored. The dedup key is kept alive without expiry for the job\'s entire lifecycle and cleaned up on completion or failure.","type":"boolean"},"replace":{"description":"replace job record while it\'s in delayed state","type":"boolean"},"ttl":{"description":"ttl in milliseconds","type":"number"}},"required":["id"],"type":"object"},"JobsOptions":{"additionalProperties":false,"properties":{"attempts":{"description":"The total number of attempts to try the job until it completes.","type":"number"},"backoff":{"anyOf":[{"type":"number"},{"$ref":"#/definitions/BackoffOptions"}],"description":"Backoff setting for automatic retries if the job fails"},"continueParentOnFailure":{"description":"If true, starts processing parent job as soon as any of its children fail.","type":"boolean"},"debounce":{"$ref":"#/definitions/DeduplicationOptions","deprecated":"use deduplication option","description":"Debounce options."},"deduplication":{"$ref":"#/definitions/DeduplicationOptions","description":"Deduplication options."},"delay":{"description":"An amount of milliseconds to wait until this job can be processed. Note that for accurate delays, worker and producers should have their clocks synchronized.","type":"number"},"failParentOnFailure":{"description":"If true, moves parent to failed if any of its children fail.","type":"boolean"},"ignoreDependencyOnFailure":{"description":"If true, moves the jobId from its parent dependencies to failed dependencies when it fails after all attempts.","type":"boolean"},"jobId":{"description":"Override the job ID - by default, the job ID is a unique integer, but you can use this setting to override it. If you use this option, it is up to you to ensure the jobId is unique. If you attempt to add a job with an id that already exists, it will not be added.","type":"string"},"keepLogs":{"description":"Maximum amount of log entries that will be preserved","type":"number"},"lifo":{"description":"If true, adds the job to the right of the queue instead of the left (default false)","type":"boolean"},"parent":{"$ref":"#/definitions/ParentOptions","description":"Parent options"},"prevMillis":{"description":"Internal property used by repeatable jobs.","type":"number"},"priority":{"description":"Ranges from 0 (highest priority) to 2 097 152 (lowest priority). Note that using priorities has a slight impact on performance, so do not use it if not required.","type":"number"},"removeDependencyOnFailure":{"description":"If true, removes the job from its parent dependencies when it fails after all attempts.","type":"boolean"},"removeOnComplete":{"anyOf":[{"type":"boolean"},{"type":"number"},{"$ref":"#/definitions/KeepJobs"}],"description":"If true, removes the job when it successfully completes When given a number, it specifies the maximum amount of jobs to keep, or you can provide an object specifying max age and/or count to keep. It overrides whatever setting is used in the worker. Default behavior is to keep the job in the completed set.\\n\\nWhen using `age` or `count`, the eviction is evaluated on a best-effort basis every time a job finishes; BullMQ does not run a background timer, so aged jobs are only removed once another job completes after their expiration."},"removeOnFail":{"anyOf":[{"type":"boolean"},{"type":"number"},{"$ref":"#/definitions/KeepJobs"}],"description":"If true, removes the job when it fails after all attempts. When given a number, it specifies the maximum amount of jobs to keep, or you can provide an object specifying max age and/or count to keep. It overrides whatever setting is used in the worker. Default behavior is to keep the job in the failed set.\\n\\nWhen using `age` or `count`, the eviction is evaluated on a best-effort basis every time a job fails; BullMQ does not run a background timer, so aged jobs are only removed once another job fails after their expiration."},"repeat":{"$ref":"#/definitions/RepeatOptions","description":"Repeat this job, for example based on a `cron` schedule."},"repeatJobKey":{"description":"Internal property used by repeatable jobs to save base repeat job key.","type":"string"},"sizeLimit":{"description":"Limits the size in bytes of the job\'s data payload (as a JSON serialized string).","type":"number"},"stackTraceLimit":{"description":"Limits the amount of stack trace lines that will be recorded in the stacktrace.","type":"number"},"telemetry":{"additionalProperties":false,"description":"Telemetry options","properties":{"metadata":{"description":"Metadata, used for context propagation.","type":"string"},"omitContext":{"description":"If `true` telemetry will omit the context propagation","type":"boolean"}},"type":"object"},"timestamp":{"description":"Timestamp when the job was created.","type":"number"}},"type":"object"},"KeepJobs":{"anyOf":[{"additionalProperties":false,"properties":{"count":{"description":"Maximum count of jobs to be kept.","type":"number"}},"required":["count"],"type":"object"},{"additionalProperties":false,"properties":{"age":{"description":"Maximum age in seconds for job to be kept. The cleanup is only evaluated when a new job of the same kind (completed or failed) finishes, so a job will only be removed after another job finishes past its expiration time.","type":"number"},"count":{"description":"Maximum count of jobs to be kept.","type":"number"},"limit":{"description":"Maximum quantity of jobs to be removed.","type":"number"}},"required":["age"],"type":"object"}],"description":"KeepJobs\\n\\nSpecify which jobs to keep after finishing. If both age and count are specified, then the jobs kept will be the ones that satisfies both properties.\\n\\nNote that the removal logic is evaluated on a best-effort basis every time a job transitions to the completed/failed set. BullMQ does not run a background timer to evict aged jobs, so a job is only removed once a subsequent job of the same kind (completed or failed) is processed after its age has expired. If no further jobs are processed, previously finished jobs will remain in the set even though their age threshold has been exceeded."},"ParentOptions":{"additionalProperties":false,"properties":{"id":{"description":"Parent identifier.","type":"string"},"queue":{"description":"It includes the prefix, the namespace separator :, and queue name.","type":"string"}},"required":["id","queue"],"type":"object"},"RepeatOptions":{"additionalProperties":false,"description":"Settings for repeatable jobs","properties":{"count":{"description":"The start value for the repeat iteration count.","type":"number"},"currentDate":{"$ref":"#/definitions/DateType"},"endDate":{"$ref":"#/definitions/DateType"},"every":{"description":"Repeat after this amount of milliseconds (`pattern` setting cannot be used together with this setting.)","type":"number"},"immediately":{"description":"Repeated job should start right now ( work only with cron settings)","type":"boolean"},"jobId":{"deprecated":"not in use anymore","description":"Internal property to store the job id","type":"string"},"key":{"description":"Custom repeatable key. This is the key that holds the \\"metadata\\" of a given repeatable job. This key is normally auto-generated but it is sometimes useful to specify a custom key for easier retrieval of repeatable jobs.","type":"string"},"limit":{"description":"Number of times the job should repeat at max.","type":"number"},"nthDayOfWeek":{"type":"number"},"offset":{"description":"Offset in milliseconds to affect the next iteration time","type":"number"},"pattern":{"description":"A repeat pattern","type":"string"},"prevMillis":{"description":"Internal property to store the previous time the job was executed.","type":"number"},"startDate":{"$ref":"#/definitions/DateType"},"tz":{"type":"string"},"utc":{"type":"boolean"}},"type":"object"}}}'),l=i(9145),c=i(5412),u=i(8220),b=i(5902),f=i(2055);let m={bull:p,bullmq:d},h=e=>{let{open:t,onClose:i,job:p,queue:d}=e,{queues:h,actions:y}=(0,s.A)(),j=d||(0,a.h)(),[g,v]=(0,r.useState)(j),{t:x}=(0,n.Bd)();if(!h||!j||!g)return null;let w=async e=>{e.preventDefault();let t=Object.fromEntries(Array.from(e.target.elements).filter(e=>e.name).map(e=>[e.name,e.value]));t.jobData=JSON.parse(t.jobData),t.jobOptions=JSON.parse(t.jobOptions),await y.addJob(t.queueName,t.jobName||"__default__",t.jobData,t.jobOptions)(),i()};return(0,o.jsx)(f.a,{width:"small",open:t,onClose:i,title:x("ADD_JOB.TITLE",{context:p?"duplicate":void 0}),actionButton:(0,o.jsx)(l.$,{type:"submit",theme:"primary",form:"add-job-form",children:x(`ADD_JOB.${p?"DUPLICATE":"ADD"}`)}),children:(0,o.jsxs)("form",{id:"add-job-form",onSubmit:w,children:[(0,o.jsx)(b.z,{label:x("ADD_JOB.QUEUE_NAME"),id:"queue-name",options:(h||[]).map(e=>({text:e.name,value:e.name})),name:"queueName",value:g.name||"",onChange:e=>v(h.find(t=>t.name===e.target.value))}),(0,o.jsx)(c.F,{label:x("ADD_JOB.JOB_NAME"),id:"job-name",name:"jobName",defaultValue:p?.name,placeholder:"__default__"}),(0,o.jsx)(u.V,{label:x("ADD_JOB.JOB_DATA"),id:"job-data",name:"jobData",value:p?.data}),(0,o.jsx)(u.V,{label:x("ADD_JOB.JOB_OPTIONS"),id:"job-options",name:"jobOptions",schema:m[g.type],value:p?.opts})]})})}},9965(e,t,i){i.d(t,{D:()=>n});var o=i(1085),r=i(4357);i(4041);let n=e=>{let{label:t,id:i,inline:n,description:a,children:s}=e;return(0,o.jsxs)("div",{className:(0,r.A)("field-JbAWJt",{"inline-vXG0Za":n}),children:[!!t&&!n&&(0,o.jsx)("label",{htmlFor:i,children:t}),s,!!t&&n&&(0,o.jsx)("label",{htmlFor:i,children:t}),!!a&&(0,o.jsx)("span",{className:"description-XLaDVy",children:a})]})}},5412(e,t,i){var o=i(1085);i(4041);var r=i(9965);i.d(t,{},{F:e=>{let{label:t,id:i,...n}=e;return(0,o.jsx)(r.D,{label:t,id:i,children:(0,o.jsx)("input",{id:i,type:"text",...n})})}})},8220(e,t,i){i.d(t,{V:()=>g});var o=i(1085),r=i(4041),n=i(7213),a=i(7143),s=i(9587),p=i(8357),d=i(4509),l=i(6364),c=i(9913),u=i(1975);let b=s.cr.define([{tag:c._A.atom,color:"var(--hl-keyword)"},{tag:c._A.keyword,color:"var(--hl-keyword)"},{tag:c._A.bool,color:"var(--hl-keyword)"},{tag:c._A.string,color:"var(--hl-string)"},{tag:c._A.number,color:"var(--hl-number)"},{tag:c._A.brace,color:"var(--accent-color-d1)"},{tag:c._A.punctuation,color:"var(--accent-color-d1)"},{tag:c._A.propertyName,color:"var(--hl-type)"}]),f=l.Lz.theme({"&":{height:"200px",backgroundColor:"var(--input-bg)",border:"1px var(--input-border) solid",borderRadius:"0.375rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",marginTop:"0.25rem",fontSize:"0.875rem",transition:"border-color 0.2s ease-out, box-shadow 0.2s ease-out"},"&.cm-focused":{outline:"none",borderColor:"var(--input-focus-border)",boxShadow:"var(--input-focus-shadow)"},".cm-gutters":{borderRadius:"0.375rem 0 0 0.375rem",backgroundColor:"var(--json-edit-gutter-bg)",color:"inherit",borderRight:"var(--json-edit-gutter-border-color)"},".cm-cursor":{borderLeftColor:"var(--json-edit-cursor-color)"},".cm-activeLineGutter":{backgroundColor:"var(--json-edit-gutter-active-bg)"},".cm-scroller":{overflow:"auto"},".cm-tooltip":{padding:"0.25rem 0.5rem",borderRadius:"0.275rem",backgroundColor:"var(--json-edit-tooltip-bg)",border:"1px solid var(--json-edit-tooltip-border-color)"},".cm6-json-schema-hover--code > p":{margin:"0.5em 0"},".cm-tooltip-above .cm-tooltip-arrow:before":{borderTop:"7px solid var(--json-edit-tooltip-border-color)"},".cm-tooltip-above .cm-tooltip-arrow:after":{borderTop:"7px solid var(--json-edit-tooltip-bg)"},".cm-selectionBackground":{background:"var(--json-edit-selection-bg)!important"}}),m=[(0,l.cU)({class:"CodeMirror-lint-markers"}),(0,s.SG)(),(0,l.Wu)(),(0,n.wm)(),(0,a.b6)(),(0,n.yU)(),(0,l.$K)(),(0,p.pJ)(),(0,s.WD)(),(0,l.VH)(),(0,s.Lv)(),l.w4.of([...n.Bc,...a.pw,...a.cL,...s.f7,...n.OO,...p.$w]),l.Lz.lineWrapping,d.$t.tabSize.of(2),(0,s.y9)(b),f],h=d.YH.define(),y=e=>{let{doc:t,schema:i,...n}=e,a=(0,r.useRef)(null),s=(0,r.useRef)(null),[c,b]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let e=l.Lz.updateListener.of(e=>{if(!s.current)return;let t=(0,p.PL)(e.state);if(e.docChanged||e.transactions.some(e=>e.annotation(h))||0!==t)t>0&&(s.current.value="");else{let t=e.state.doc;s.current.value=t.toString()}}),o=d.$t.create({doc:JSON.stringify(t,null,2),extensions:[m,e,(0,u.Og)(i||{})]}),r=new l.Lz({state:o,parent:a.current});return b(r),()=>r.destroy()},[]),(0,r.useEffect)(()=>{c&&(0,u.vK)(c,i||{})},i?[i]:[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:a}),(0,o.jsx)("input",{type:"hidden",ref:s,...n})]})};var j=i(9965);let g=e=>{let{label:t,id:i,value:r,...n}=e;return(0,o.jsx)(j.D,{label:t,id:i,children:(0,o.jsx)(y,{doc:r||{},id:i,...n})})}},5902(e,t,i){var o=i(1085);i(4041);var r=i(9965);i.d(t,{},{z:e=>{let{label:t,id:i,options:n,...a}=e;return(0,o.jsx)(r.D,{label:t,id:i,children:(0,o.jsx)("select",{id:i,...a,children:n.map(e=>(0,o.jsx)("option",{value:e.value,children:e.text},e.value))})})}})},2055(e,t,i){var o=i(1085),r=i(6134),n=i(6174),a=i(4313),s=i(8486),p=i(9344),d=i(2e3),l=i(8116),c=i(4357);i(4041);var u=i(5261),b=i(9145),f=i(7721);i.d(t,{},{a:e=>{let{open:t,title:i,onClose:m,children:h,width:y,actionButton:j}=e,{t:g}=(0,u.Bd)();return(0,o.jsx)(r.D,{open:t,modal:!0,onOpenChange:e=>{e||m()},children:(0,o.jsxs)(n.Z,{children:[(0,o.jsx)(a.X,{className:f.A.overlay}),(0,o.jsx)("div",{className:f.A.contentWrapper,children:(0,o.jsxs)(s.h,{className:(0,c.A)(f.A.content,f.A[y||""]),children:[!!i&&(0,o.jsx)(p.L,{children:i}),(0,o.jsx)(d.r,{render:(0,o.jsx)("div",{className:f.A.description}),children:h}),(0,o.jsxs)("div",{className:f.A.actions,children:[j,(0,o.jsx)(l.H,{render:(0,o.jsx)(b.$,{theme:"basic",children:g("MODAL.CLOSE_BTN")})})]})]})})]})})}})}}]);
1
+ "use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[524],{9063(e,t,i){i.d(t,{AddJobModal:()=>h});var o=i(1085),r=i(4041),n=i(3751),a=i(4393),s=i(5170),p=JSON.parse('{"$ref":"#/definitions/Bull.JobOptions","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"Bull.BackoffOptions":{"additionalProperties":false,"properties":{"delay":{"description":"Backoff delay, in milliseconds","type":"number"},"options":{"description":"Options for custom strategies"},"type":{"description":"Backoff type, which can be either `fixed` or `exponential`","type":"string"}},"required":["type"],"type":"object"},"Bull.DebounceOptions":{"additionalProperties":false,"properties":{"id":{"description":"Identifier","type":"string"},"ttl":{"description":"ttl in milliseconds","type":"number"}},"required":["id"],"type":"object"},"Bull.JobId":{"type":["number","string"]},"Bull.JobOptions":{"additionalProperties":false,"properties":{"attempts":{"description":"The total number of attempts to try the job until it completes","type":"number"},"backoff":{"anyOf":[{"type":"number"},{"$ref":"#/definitions/Bull.BackoffOptions"}],"description":"Backoff setting for automatic retries if the job fails"},"debounce":{"$ref":"#/definitions/Bull.DebounceOptions","description":"Debounce options."},"delay":{"description":"An amount of miliseconds to wait until this job can be processed. Note that for accurate delays, both server and clients should have their clocks synchronized. [optional]","type":"number"},"jobId":{"$ref":"#/definitions/Bull.JobId","description":"Override the job ID - by default, the job ID is a unique integer, but you can use this setting to override it. If you use this option, it is up to you to ensure the jobId is unique. If you attempt to add a job with an id that already exists, it will not be added."},"lifo":{"description":"A boolean which, if true, adds the job to the right of the queue instead of the left (default false)","type":"boolean"},"preventParsingData":{"description":"Prevents JSON data from being parsed.","type":"boolean"},"priority":{"description":"Optional priority value. ranges from 1 (highest priority) to MAX_INT (lowest priority). Note that using priorities has a slight impact on performance, so do not use it if not required","type":"number"},"removeOnComplete":{"anyOf":[{"type":"boolean"},{"type":"number"},{"$ref":"#/definitions/Bull.KeepJobsOptions"}],"description":"A boolean which, if true, removes the job when it successfully completes. When a number, it specifies the amount of jobs to keep. Default behavior is to keep the job in the completed set. See KeepJobsOptions if using that interface instead."},"removeOnFail":{"anyOf":[{"type":"boolean"},{"type":"number"},{"$ref":"#/definitions/Bull.KeepJobsOptions"}],"description":"A boolean which, if true, removes the job when it fails after all attempts. When a number, it specifies the amount of jobs to keep. Default behavior is to keep the job in the failed set. See KeepJobsOptions if using that interface instead."},"repeat":{"anyOf":[{"additionalProperties":false,"properties":{"count":{"description":"The start value for the repeat iteration count.","type":"number"},"cron":{"description":"Cron pattern specifying when the job should execute","type":"string"},"endDate":{"anyOf":[{"format":"date-time","type":"string"},{"type":"string"},{"type":"number"}],"description":"End date when the repeat job should stop repeating"},"key":{"description":"The key for the repeatable job metadata in Redis.","type":"string"},"limit":{"description":"Number of times the job should repeat at max.","type":"number"},"startDate":{"anyOf":[{"format":"date-time","type":"string"},{"type":"string"},{"type":"number"}],"description":"Start date when the repeat job should start repeating (only with cron)."},"tz":{"description":"Timezone","type":"string"}},"required":["cron"],"type":"object"},{"additionalProperties":false,"properties":{"count":{"description":"The start value for the repeat iteration count.","type":"number"},"endDate":{"anyOf":[{"format":"date-time","type":"string"},{"type":"string"},{"type":"number"}],"description":"End date when the repeat job should stop repeating"},"every":{"description":"Repeat every millis (cron setting cannot be used together with this setting.)","type":"number"},"key":{"description":"The key for the repeatable job metadata in Redis.","type":"string"},"limit":{"description":"Number of times the job should repeat at max.","type":"number"},"tz":{"description":"Timezone","type":"string"}},"required":["every"],"type":"object"}],"description":"Repeat job according to a cron specification"},"stackTraceLimit":{"description":"Limits the amount of stack trace lines that will be recorded in the stacktrace.","type":"number"},"timeout":{"description":"The number of milliseconds after which the job should be fail with a timeout error","type":"number"}},"type":"object"},"Bull.KeepJobsOptions":{"additionalProperties":false,"description":"Specify which jobs to keep after finishing processing this job. If both age and count are specified, then the jobs kept will be the ones that satisfies both properties.","properties":{"age":{"description":"Maximum age in *seconds* for job to be kept.","type":"number"},"count":{"description":"Maximum count of jobs to be kept.","type":"number"}},"type":"object"}}}'),d=JSON.parse('{"$ref":"#/definitions/JobsOptions","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"BackoffOptions":{"additionalProperties":false,"description":"Settings for backing off failed jobs.","properties":{"delay":{"description":"Delay in milliseconds.","type":"number"},"jitter":{"description":"Percentage of jitter usage.","type":"number"},"type":{"anyOf":[{"type":"string"},{"enum":["fixed","exponential"],"type":"string"}],"description":"Name of the backoff strategy."}},"required":["type"],"type":"object"},"DateType":{"anyOf":[{"format":"date-time","type":"string"},{"type":"number"},{"type":"string"}]},"DeduplicationOptions":{"additionalProperties":false,"description":"Deduplication options","properties":{"extend":{"description":"Extend ttl value","type":"boolean"},"id":{"description":"Identifier","type":"string"},"keepLastIfActive":{"description":"If true, when a job with the same deduplication ID is currently active (being processed), the new job\'s data will be stored and a new job will be created automatically when the active one finishes (completes or fails). If multiple jobs are added while the active job is running, only the latest data is kept.\\n\\nThis guarantees that at most 2 jobs per deduplication ID exist at any time: 1 active and 1 waiting, preventing parallel execution of jobs with the same deduplication ID.\\n\\nNote: when this option is set, `ttl` is ignored. The dedup key is kept alive without expiry for the job\'s entire lifecycle and cleaned up on completion or failure.","type":"boolean"},"replace":{"description":"replace job record while it\'s in delayed state","type":"boolean"},"ttl":{"description":"ttl in milliseconds","type":"number"}},"required":["id"],"type":"object"},"JobsOptions":{"additionalProperties":false,"properties":{"attempts":{"description":"The total number of attempts to try the job until it completes.","type":"number"},"backoff":{"anyOf":[{"type":"number"},{"$ref":"#/definitions/BackoffOptions"}],"description":"Backoff setting for automatic retries if the job fails"},"continueParentOnFailure":{"description":"If true, starts processing parent job as soon as any of its children fail.","type":"boolean"},"debounce":{"$ref":"#/definitions/DeduplicationOptions","deprecated":"use deduplication option","description":"Debounce options."},"deduplication":{"$ref":"#/definitions/DeduplicationOptions","description":"Deduplication options."},"delay":{"description":"An amount of milliseconds to wait until this job can be processed. Note that for accurate delays, worker and producers should have their clocks synchronized.","type":"number"},"failParentOnFailure":{"description":"If true, moves parent to failed if any of its children fail.","type":"boolean"},"ignoreDependencyOnFailure":{"description":"If true, moves the jobId from its parent dependencies to failed dependencies when it fails after all attempts.","type":"boolean"},"jobId":{"description":"Override the job ID - by default, the job ID is a unique integer, but you can use this setting to override it. If you use this option, it is up to you to ensure the jobId is unique. If you attempt to add a job with an id that already exists, it will not be added.","type":"string"},"keepLogs":{"description":"Maximum amount of log entries that will be preserved","type":"number"},"lifo":{"description":"If true, adds the job to the right of the queue instead of the left (default false)","type":"boolean"},"parent":{"$ref":"#/definitions/ParentOptions","description":"Parent options"},"prevMillis":{"description":"Internal property used by repeatable jobs.","type":"number"},"priority":{"description":"Ranges from 0 (highest priority) to 2 097 152 (lowest priority). Note that using priorities has a slight impact on performance, so do not use it if not required.","type":"number"},"removeDependencyOnFailure":{"description":"If true, removes the job from its parent dependencies when it fails after all attempts.","type":"boolean"},"removeOnComplete":{"anyOf":[{"type":"boolean"},{"type":"number"},{"$ref":"#/definitions/KeepJobs"}],"description":"If true, removes the job when it successfully completes When given a number, it specifies the maximum amount of jobs to keep, or you can provide an object specifying max age and/or count to keep. It overrides whatever setting is used in the worker. Default behavior is to keep the job in the completed set.\\n\\nWhen using `age` or `count`, the eviction is evaluated on a best-effort basis every time a job finishes; BullMQ does not run a background timer, so aged jobs are only removed once another job completes after their expiration."},"removeOnFail":{"anyOf":[{"type":"boolean"},{"type":"number"},{"$ref":"#/definitions/KeepJobs"}],"description":"If true, removes the job when it fails after all attempts. When given a number, it specifies the maximum amount of jobs to keep, or you can provide an object specifying max age and/or count to keep. It overrides whatever setting is used in the worker. Default behavior is to keep the job in the failed set.\\n\\nWhen using `age` or `count`, the eviction is evaluated on a best-effort basis every time a job fails; BullMQ does not run a background timer, so aged jobs are only removed once another job fails after their expiration."},"repeat":{"$ref":"#/definitions/RepeatOptions","description":"Repeat this job, for example based on a `cron` schedule."},"repeatJobKey":{"description":"Internal property used by repeatable jobs to save base repeat job key.","type":"string"},"sizeLimit":{"description":"Limits the size in bytes of the job\'s data payload (as a JSON serialized string).","type":"number"},"stackTraceLimit":{"description":"Limits the amount of stack trace lines that will be recorded in the stacktrace.","type":"number"},"telemetry":{"additionalProperties":false,"description":"Telemetry options","properties":{"metadata":{"description":"Metadata, used for context propagation.","type":"string"},"omitContext":{"description":"If `true` telemetry will omit the context propagation","type":"boolean"}},"type":"object"},"timestamp":{"description":"Timestamp when the job was created.","type":"number"}},"type":"object"},"KeepJobs":{"anyOf":[{"additionalProperties":false,"properties":{"count":{"description":"Maximum count of jobs to be kept.","type":"number"}},"required":["count"],"type":"object"},{"additionalProperties":false,"properties":{"age":{"description":"Maximum age in seconds for job to be kept. The cleanup is only evaluated when a new job of the same kind (completed or failed) finishes, so a job will only be removed after another job finishes past its expiration time.","type":"number"},"count":{"description":"Maximum count of jobs to be kept.","type":"number"},"limit":{"description":"Maximum quantity of jobs to be removed.","type":"number"}},"required":["age"],"type":"object"}],"description":"KeepJobs\\n\\nSpecify which jobs to keep after finishing. If both age and count are specified, then the jobs kept will be the ones that satisfies both properties.\\n\\nNote that the removal logic is evaluated on a best-effort basis every time a job transitions to the completed/failed set. BullMQ does not run a background timer to evict aged jobs, so a job is only removed once a subsequent job of the same kind (completed or failed) is processed after its age has expired. If no further jobs are processed, previously finished jobs will remain in the set even though their age threshold has been exceeded."},"ParentOptions":{"additionalProperties":false,"properties":{"id":{"description":"Parent identifier.","type":"string"},"queue":{"description":"It includes the prefix, the namespace separator :, and queue name.","type":"string"}},"required":["id","queue"],"type":"object"},"RepeatOptions":{"additionalProperties":false,"description":"Settings for repeatable jobs","properties":{"count":{"description":"The start value for the repeat iteration count.","type":"number"},"currentDate":{"$ref":"#/definitions/DateType"},"endDate":{"$ref":"#/definitions/DateType"},"every":{"description":"Repeat after this amount of milliseconds (`pattern` setting cannot be used together with this setting.)","type":"number"},"immediately":{"description":"Repeated job should start right now ( work only with cron settings)","type":"boolean"},"jobId":{"deprecated":"not in use anymore","description":"Internal property to store the job id","type":"string"},"key":{"description":"Custom repeatable key. This is the key that holds the \\"metadata\\" of a given repeatable job. This key is normally auto-generated but it is sometimes useful to specify a custom key for easier retrieval of repeatable jobs.","type":"string"},"limit":{"description":"Number of times the job should repeat at max.","type":"number"},"nthDayOfWeek":{"type":"number"},"offset":{"description":"Offset in milliseconds to affect the next iteration time","type":"number"},"pattern":{"description":"A repeat pattern","type":"string"},"prevMillis":{"description":"Internal property to store the previous time the job was executed.","type":"number"},"startDate":{"$ref":"#/definitions/DateType"},"tz":{"type":"string"},"utc":{"type":"boolean"}},"type":"object"}}}'),l=i(1566),c=i(2821),u=i(9839),b=i(823),f=i(776);let m={bull:p,bullmq:d},h=e=>{let{open:t,onClose:i,job:p,queue:d}=e,{queues:h,actions:y}=(0,s.A)(),j=d||(0,a.h)(),[g,v]=(0,r.useState)(j),{t:x}=(0,n.Bd)();if(!h||!j||!g)return null;let w=async e=>{e.preventDefault();let t=Object.fromEntries(Array.from(e.target.elements).filter(e=>e.name).map(e=>[e.name,e.value]));t.jobData=JSON.parse(t.jobData),t.jobOptions=JSON.parse(t.jobOptions),await y.addJob(t.queueName,t.jobName||"__default__",t.jobData,t.jobOptions)(),i()};return(0,o.jsx)(f.a,{width:"small",open:t,onClose:i,title:x("ADD_JOB.TITLE",{context:p?"duplicate":void 0}),actionButton:(0,o.jsx)(l.$,{type:"submit",theme:"primary",form:"add-job-form",children:x(`ADD_JOB.${p?"DUPLICATE":"ADD"}`)}),children:(0,o.jsxs)("form",{id:"add-job-form",onSubmit:w,children:[(0,o.jsx)(b.z,{label:x("ADD_JOB.QUEUE_NAME"),id:"queue-name",options:(h||[]).map(e=>({text:e.name,value:e.name})),name:"queueName",value:g.name||"",onChange:e=>v(h.find(t=>t.name===e.target.value))}),(0,o.jsx)(c.F,{label:x("ADD_JOB.JOB_NAME"),id:"job-name",name:"jobName",defaultValue:p?.name,placeholder:"__default__"}),(0,o.jsx)(u.V,{label:x("ADD_JOB.JOB_DATA"),id:"job-data",name:"jobData",value:p?.data}),(0,o.jsx)(u.V,{label:x("ADD_JOB.JOB_OPTIONS"),id:"job-options",name:"jobOptions",schema:m[g.type],value:p?.opts})]})})}},5606(e,t,i){i.d(t,{D:()=>n});var o=i(1085),r=i(4357);let n=e=>{let{label:t,id:i,inline:n,description:a,children:s}=e;return(0,o.jsxs)("div",{className:(0,r.A)("field-JbAWJt",{"inline-vXG0Za":n}),children:[!!t&&!n&&(0,o.jsx)("label",{htmlFor:i,children:t}),s,!!t&&n&&(0,o.jsx)("label",{htmlFor:i,children:t}),!!a&&(0,o.jsx)("span",{className:"description-XLaDVy",children:a})]})}},2821(e,t,i){var o=i(1085),r=i(5606);i.d(t,{},{F:e=>{let{label:t,id:i,...n}=e;return(0,o.jsx)(r.D,{label:t,id:i,children:(0,o.jsx)("input",{id:i,type:"text",...n})})}})},9839(e,t,i){i.d(t,{V:()=>g});var o=i(1085),r=i(7213),n=i(7143),a=i(9587),s=i(8357),p=i(4509),d=i(6364),l=i(9913),c=i(1975),u=i(4041);let b=a.cr.define([{tag:l._A.atom,color:"var(--hl-keyword)"},{tag:l._A.keyword,color:"var(--hl-keyword)"},{tag:l._A.bool,color:"var(--hl-keyword)"},{tag:l._A.string,color:"var(--hl-string)"},{tag:l._A.number,color:"var(--hl-number)"},{tag:l._A.brace,color:"var(--accent-color-d1)"},{tag:l._A.punctuation,color:"var(--accent-color-d1)"},{tag:l._A.propertyName,color:"var(--hl-type)"}]),f=d.Lz.theme({"&":{height:"200px",backgroundColor:"var(--input-bg)",border:"1px var(--input-border) solid",borderRadius:"0.375rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",marginTop:"0.25rem",fontSize:"0.875rem",transition:"border-color 0.2s ease-out, box-shadow 0.2s ease-out"},"&.cm-focused":{outline:"none",borderColor:"var(--input-focus-border)",boxShadow:"var(--input-focus-shadow)"},".cm-gutters":{borderRadius:"0.375rem 0 0 0.375rem",backgroundColor:"var(--json-edit-gutter-bg)",color:"inherit",borderRight:"var(--json-edit-gutter-border-color)"},".cm-cursor":{borderLeftColor:"var(--json-edit-cursor-color)"},".cm-activeLineGutter":{backgroundColor:"var(--json-edit-gutter-active-bg)"},".cm-scroller":{overflow:"auto"},".cm-tooltip":{padding:"0.25rem 0.5rem",borderRadius:"0.275rem",backgroundColor:"var(--json-edit-tooltip-bg)",border:"1px solid var(--json-edit-tooltip-border-color)"},".cm6-json-schema-hover--code > p":{margin:"0.5em 0"},".cm-tooltip-above .cm-tooltip-arrow:before":{borderTop:"7px solid var(--json-edit-tooltip-border-color)"},".cm-tooltip-above .cm-tooltip-arrow:after":{borderTop:"7px solid var(--json-edit-tooltip-bg)"},".cm-selectionBackground":{background:"var(--json-edit-selection-bg)!important"}}),m=[(0,d.cU)({class:"CodeMirror-lint-markers"}),(0,a.SG)(),(0,d.Wu)(),(0,r.wm)(),(0,n.b6)(),(0,r.yU)(),(0,d.$K)(),(0,s.pJ)(),(0,a.WD)(),(0,d.VH)(),(0,a.Lv)(),d.w4.of([...r.Bc,...n.pw,...n.cL,...a.f7,...r.OO,...s.$w]),d.Lz.lineWrapping,p.$t.tabSize.of(2),(0,a.y9)(b),f],h=p.YH.define(),y=e=>{let{doc:t,schema:i,...r}=e,n=(0,u.useRef)(null),a=(0,u.useRef)(null),[l,b]=(0,u.useState)(null);return(0,u.useEffect)(()=>{let e=d.Lz.updateListener.of(e=>{if(!a.current)return;let t=(0,s.PL)(e.state);if(e.docChanged||e.transactions.some(e=>e.annotation(h))||0!==t)t>0&&(a.current.value="");else{let t=e.state.doc;a.current.value=t.toString()}}),o=p.$t.create({doc:JSON.stringify(t,null,2),extensions:[m,e,(0,c.Og)(i||{})]}),r=new d.Lz({state:o,parent:n.current});return b(r),()=>r.destroy()},[]),(0,u.useEffect)(()=>{l&&(0,c.vK)(l,i||{})},i?[i]:[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:n}),(0,o.jsx)("input",{type:"hidden",ref:a,...r})]})};var j=i(5606);let g=e=>{let{label:t,id:i,value:r,...n}=e;return(0,o.jsx)(j.D,{label:t,id:i,children:(0,o.jsx)(y,{doc:r||{},id:i,...n})})}},823(e,t,i){var o=i(1085),r=i(5606);i.d(t,{},{z:e=>{let{label:t,id:i,options:n,...a}=e;return(0,o.jsx)(r.D,{label:t,id:i,children:(0,o.jsx)("select",{id:i,...a,children:n.map(e=>(0,o.jsx)("option",{value:e.value,children:e.text},e.value))})})}})},776(e,t,i){var o=i(1085),r=i(6134),n=i(6174),a=i(4313),s=i(8486),p=i(9344),d=i(2e3),l=i(8116),c=i(4357);i(4041);var u=i(3751),b=i(1566),f=i(1447);i.d(t,{},{a:e=>{let{open:t,title:i,onClose:m,children:h,width:y,actionButton:j}=e,{t:g}=(0,u.Bd)();return(0,o.jsx)(r.D,{open:t,modal:!0,onOpenChange:e=>{e||m()},children:(0,o.jsxs)(n.Z,{children:[(0,o.jsx)(a.X,{className:f.A.overlay}),(0,o.jsx)("div",{className:f.A.contentWrapper,children:(0,o.jsxs)(s.h,{className:(0,c.A)(f.A.content,f.A[y||""]),children:[!!i&&(0,o.jsx)(p.L,{children:i}),(0,o.jsx)(d.r,{render:(0,o.jsx)("div",{className:f.A.description}),children:h}),(0,o.jsxs)("div",{className:f.A.actions,children:[j,(0,o.jsx)(l.H,{render:(0,o.jsx)(b.$,{theme:"basic",children:g("MODAL.CLOSE_BTN")})})]})]})})]})})}})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[609],{5536(e,s,a){a.d(s,{Z:()=>r});var t=a(1085),l=a(4357);let r=e=>{let{children:s,className:a}=e;return(0,t.jsx)("div",{className:(0,l.A)("card-xqyZlH",a),children:s})}},9811(e,s,a){var t=a(1085);a.d(s,{},{L:()=>(0,t.jsx)("svg",{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192 512",children:(0,t.jsx)("path",{d:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"})})})},9652(e,s,a){var t=a(1085);a.d(s,{},{E:()=>(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,t.jsx)("path",{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"})})})},534(e,s,a){var t=a(1085);a.d(s,{},{u:()=>(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,t.jsx)("path",{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"})})})},1388(e,s,a){var t=a(1085);a.d(s,{},{u:()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M6 2l2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z"})})})},5066(e,s,a){a.d(s,{K:()=>N});var t=a(1085),l=a(2033),r=a(93),n=a(5574),i=a(4260),c=a(4052),d=a(3751),o=a(1566),u=a(2130);let h=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,t.jsx)("path",{d:"M64 80c-8.8 0-16 7.2-16 16v320c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16V96c0-8.8-7.2-16-16-16H64zM0 96c0-35.3 28.7-64 64-64h320c35.3 0 64 28.7 64 64v320c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zm200 248v-64h-64c-13.3 0-24-10.7-24-24s10.7-24 24-24h64v-64c0-13.3 10.7-24 24-24s24 10.7 24 24v64h64c13.3 0 24 10.7 24 24s-10.7 24-24 24h-64v64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"})}),x=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,t.jsx)("path",{d:"M416 128H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h384c17.7 0 32 14.3 32 32s-14.3 32-32 32zm-96 160H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h288c17.7 0 32 14.3 32 32s-14.3 32-32 32zm-64 160H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32z"})});var p=a(9811);let m=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640",children:(0,t.jsx)("path",{d:"M183.1 137.4C170.6 124.9 150.3 124.9 137.8 137.4C125.3 149.9 125.3 170.2 137.8 182.7L275.2 320L137.9 457.4C125.4 469.9 125.4 490.2 137.9 502.7C150.4 515.2 170.7 515.2 183.2 502.7L320.5 365.3L457.9 502.6C470.4 515.1 490.7 515.1 503.2 502.6C515.7 490.1 515.7 469.8 503.2 457.3L365.8 320L503.1 182.6C515.6 170.1 515.6 149.8 503.1 137.3C490.6 124.8 470.3 124.8 457.8 137.3L320.5 274.7L183.1 137.4z"})});var j=a(9652),g=a(534),v=a(1388);let N=e=>{let{queue:s,actions:a}=e,{t:N}=(0,d.Bd)();return(0,t.jsxs)(l.i,{children:[(0,t.jsx)(r.c,{render:(0,t.jsx)(o.$,{className:"trigger-GNtOnV",children:(0,t.jsx)(p.L,{})})}),(0,t.jsx)(n.g,{children:(0,t.jsx)(i.y,{align:"end",style:{zIndex:100},children:(0,t.jsxs)(u.p,{children:[(0,t.jsxs)(c.D,{onClick:a.addJob,children:[(0,t.jsx)(h,{}),N("QUEUE.ACTIONS.ADD_JOB")]}),(0,t.jsx)(c.D,{onClick:s.isPaused?a.resumeQueue(s.name):a.pauseQueue(s.name),children:s.isPaused?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.u,{}),N("QUEUE.ACTIONS.RESUME")]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.E,{}),N("QUEUE.ACTIONS.PAUSE")]})}),"bullmq"===s.type&&!!a.onConcurrency&&(0,t.jsxs)(c.D,{onClick:a.onConcurrency,children:[(0,t.jsx)(x,{}),N("QUEUE.ACTIONS.SET_CONCURRENCY")]}),(0,t.jsxs)(c.D,{onClick:a.emptyQueue(s.name),children:[(0,t.jsx)(v.u,{}),N("QUEUE.ACTIONS.EMPTY")]}),(0,t.jsxs)(c.D,{onClick:a.obliterateQueue(s.name),className:"danger-GDAQpl",children:[(0,t.jsx)(m,{}),N("QUEUE.ACTIONS.OBLITERATE")]})]})})})]})}},2349(e,s,a){a.d(s,{p:()=>d});var t=a(1085),l=a(3751),r=a(3664),n=a(9767),i=a(5581),c={statusBar:"statusBar-a5jlNu",statusTabs:"statusTabs-hBbuDg",tabsWrapper:"tabsWrapper-fF1t9Y",isActive:"isActive-C2L583",dot:"dot-N_ddYO",badge:"badge-megf05",trailing:"trailing-FZwfmt",waiting:"waiting-RxEe57",waitingChildren:"waitingChildren-dnj_C6",prioritized:"prioritized-G0QP5n",active:"active-t_bCgg",failed:"failed-UAbaoZ",completed:"completed-kcKLT0",delayed:"delayed-OgFXqU",paused:"paused-aQsd6J"};let d=e=>{let{items:s,children:a}=e,{t:d}=(0,l.Bd)();return(0,t.jsxs)("div",{className:c.statusBar,children:[(0,t.jsx)("div",{className:c.tabsWrapper,children:(0,t.jsx)("ul",{className:c.statusTabs,children:s.map(e=>{let{status:s,to:a,isActive:l,count:o}=e,u=d((0,n.G)(`QUEUE.STATUS.${s.toUpperCase()}`)).toLocaleUpperCase();return(0,t.jsx)("li",{className:c[(0,i.C)(s)],children:(0,t.jsxs)(r.k2,{to:a,activeClassName:c.isActive,isActive:l,children:["latest"!==s&&(0,t.jsx)("span",{className:c.dot}),(0,t.jsx)("span",{"data-text":u,children:u}),null!=o&&o>0&&(0,t.jsx)("span",{className:c.badge,children:o})]})},s)})})}),!!a&&(0,t.jsx)("div",{className:c.trailing,children:a})]})}},4766(e,s,a){a.d(s,{V:()=>l});var t=a(1085);let l=a(4041).forwardRef((e,s)=>{let{actions:a,children:l}=e;return(0,t.jsxs)("div",{ref:s,className:"stickyHeader-Woc0cg",children:[l,!!a&&(0,t.jsx)("div",{className:"actionContainer-gipYSV",children:a})]})})},4e3(e,s,a){a.d(s,{OverviewPage:()=>eC});var t=a(1085),l=a(4041),r=a(3751),n=a(5543),i=a(1464),c=a(1566),d=a(3983),o="expandButton-P617Eb";let u=e=>{let{grouped:s,groupPaths:a}=e,{t:l}=(0,r.Bd)(),{expandAll:n,collapseAll:u,isMenuOpen:h}=(0,i.qm)(e=>{let{expandAll:s,collapseAll:a,isMenuOpen:t}=e;return{expandAll:s,collapseAll:a,isMenuOpen:t}});if(!s)return null;let x=a.every(e=>h(e)),p=a.every(e=>!h(e));return(0,t.jsxs)("div",{className:"expandActions-LohpUO",children:[(0,t.jsx)(c.$,{theme:"basic",compact:!0,className:o,onClick:()=>n(a),title:l("MENU.EXPAND_ALL"),"aria-label":l("MENU.EXPAND_ALL"),disabled:x,children:(0,t.jsx)(d.y,{className:"expandIcon-Z0SM_d"})}),(0,t.jsx)(c.$,{theme:"basic",compact:!0,className:o,onClick:()=>u(a),title:l("MENU.COLLAPSE_ALL"),"aria-label":l("MENU.COLLAPSE_ALL"),disabled:p,children:(0,t.jsx)(d.y,{className:"collapseIcon-qqwLMI"})})]})};var h=a(2033),x=a(93),p=a(5574),m=a(4260),j=a(406),g=a(4052),v=a(601),N=a(6867),C=a(9466);function w(e){let s=(0,N.Y)().store,a=l.useMemo(()=>({parentMenu:s}),[s]);return(0,t.jsx)(C.E.Provider,{value:a,children:(0,t.jsx)(h.i,{...e})})}var A=a(1496),b=a(7053),E=a(9861),y=a(6497),U=a(9978),S=a(5576),f=a(363),O=a(2971),L=a(5565),M=a(1824),T=a(4163),B=a(7922);let z=l.forwardRef(function(e,s){let{render:a,className:t,style:r,label:n,id:i,nativeButton:c=!1,openOnHover:d=!0,delay:o=100,closeDelay:u=0,disabled:h=!1,...x}=e,p=(0,O.q)({label:n}),m=(0,T.O)(),{store:j}=(0,N.Y)(),g=(0,S.e)(i),v=j.useState("open"),w=j.useState("floatingRootContext"),z=j.useState("floatingTreeRoot"),_=j.useState("triggerPopupId",g),D=(0,B.VI)(g,j),I=l.useCallback(e=>{let s=D(e);return null!==e&&j.select("open")&&null==j.select("activeTriggerId")&&j.update({activeTriggerId:g,activeTriggerElement:e,closeDelay:u}),s},[D,u,j,g]),P=l.useRef(null),k=l.useCallback(e=>{P.current=e,j.set("activeTriggerElement",e)},[j]),R=(0,C.B)();if(!R?.parentMenu)throw Error((0,A.A)(37));j.useSyncedValue("closeDelay",u);let Q=R.parentMenu,q=j.useState("disabled"),H=Q.useState("disabled"),V=h||q||H,G=Q.useState("itemProps"),$=Q.useState("isActive",p.index),Y=l.useMemo(()=>({type:"submenu-trigger",setActive(){Q.select("highlightItemOnHover")&&Q.set("activeIndex",p.index)}}),[Q,p.index]),{getItemProps:F,itemRef:J}=(0,L.O)({closeOnClick:!1,disabled:V,highlighted:$,id:g,store:j,typingRef:Q.context.typingRef,nativeButton:c,itemMetadata:Y,nodeId:m?.context.nodeId}),Z=j.useState("hoverEnabled"),W=(0,E.j)(w,{enabled:Z&&d&&!V,handleClose:(0,y.i)({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:o,delay:{open:o,close:u},shouldOpen:o>0?()=>Q.select("allowMouseEnter"):void 0,triggerElementRef:P,externalTree:z,isClosing:()=>"ending"===j.select("transitionStatus")}),X=(0,U.k)(w,{enabled:!V,event:"mousedown",toggle:!d,ignoreMouse:d,stickIfOpen:!1}).reference??b.t0,K=j.useState("triggerProps",!0);return delete K.id,(0,M.o)("div",e,{state:{disabled:V,highlighted:$,open:v},stateAttributesMapping:f.qV,props:[X,W,K,G,{"aria-controls":_,tabIndex:v||$?0:-1,onBlur(){$&&Q.set("activeIndex",null)}},x,F],ref:[s,p.ref,J,I,k]})});var _=a(9767),D=a(9811),I=a(9652),P=a(534);let k=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:(0,t.jsx)("path",{d:"M183.6 42.4C177.5 35.8 169 32 160 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L128 146.3 128 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-301.7 32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 320c0 17.7 14.3 32 32 32l50.7 0-73.4 73.4c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l128 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-50.7 0 73.4-73.4c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8l-128 0c-17.7 0-32 14.3-32 32zM416 32c-12.1 0-23.2 6.8-28.6 17.7l-64 128-16 32c-7.9 15.8-1.5 35 14.3 42.9s35 1.5 42.9-14.3l7.2-14.3 88.4 0 7.2 14.3c7.9 15.8 27.1 22.2 42.9 14.3s22.2-27.1 14.3-42.9l-16-32-64-128C439.2 38.8 428.1 32 416 32zM395.8 176L416 135.6 436.2 176l-40.4 0z"})}),R=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:(0,t.jsx)("path",{d:"M288 464 c9 0 17.5 -3.8 23.6 -10.4 l88 -96 c11.9 -13 11.1 -33.3 -2 -45.2 s-33.3 -11.1 -45.2 2 L320 349.7 L320 48 c0 -17.7 -14.3 -32 -32 -32 s-32 14.3 -32 32 l0 301.7 L223.6 314.4 c-11.9 -13 -32.2 -13.9 -45.2 -2 s-13.9 32.2 -2 45.2 l88 96 C270.5 460.2 279 464 288 464 z"})}),Q=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:(0,t.jsx)("path",{d:"M288 48 c9 0 17.5 3.8 23.6 10.4 l88 96 c11.9 13 11.1 33.3 -2 45.2 s-33.3 11.1 -45.2 -2 L320 162.3 L320 464 c0 17.7 -14.3 32 -32 32 s-32 -14.3 -32 -32 l0 -301.7 L223.6 197.6 c-11.9 13 -32.2 13.9 -45.2 2 s-13.9 -32.2 -2 -45.2 l88 -96 C270.5 51.8 279 48 288 48 z"})});var q="item-Uubn_V";let H=["alphabetical","failed","completed","active","waiting","delayed"];var V=e=>{let{actions:s,queues:a,onSort:l,sortBy:n,sortDirection:i}=e,{t:d}=(0,r.Bd)();if(!a)return null;let o=a.every(e=>e.isPaused),u=a.every(e=>e.readOnlyMode),N="asc"===i?(0,t.jsx)(R,{}):(0,t.jsx)(Q,{});return(0,t.jsxs)(h.i,{children:[(0,t.jsx)(x.c,{render:(0,t.jsx)(c.$,{children:(0,t.jsx)(D.L,{})})}),(0,t.jsx)(p.g,{children:(0,t.jsx)(m.y,{align:"end",style:{zIndex:100},children:(0,t.jsxs)(j._,{className:"dropdown-N5QNV_",children:[u?null:(0,t.jsxs)(t.Fragment,{children:[o?(0,t.jsxs)(g.D,{className:q,onClick:s.resumeAll,children:[(0,t.jsx)(P.u,{}),d("QUEUE.ACTIONS.RESUME_ALL")]}):(0,t.jsxs)(g.D,{className:q,onClick:s.pauseAll,children:[(0,t.jsx)(I.E,{}),d("QUEUE.ACTIONS.PAUSE_ALL")]}),(0,t.jsx)(v.w,{})]}),(0,t.jsxs)(w,{children:[(0,t.jsxs)(z,{className:"subTrigger-G3bGtN item-Uubn_V",children:[(0,t.jsx)(k,{}),d("DASHBOARD.SORTING.TITLE")]}),(0,t.jsx)(m.y,{sideOffset:2,style:{zIndex:100},children:(0,t.jsx)(j._,{className:"subDropdown-FqjaxT dropdown-N5QNV_",children:H.map(e=>(0,t.jsxs)(g.D,{className:"subItem-_q8kr3 item-Uubn_V",onClick:()=>l(e),children:[d((0,_.G)(`DASHBOARD.SORTING.${e.toUpperCase()}`)),n===e&&N]},e))})})]})]})})})]})},G=a(4357),$=a(5170),Y=a(5079),F=a(2130),J=a(3664),Z=a(7725),W=a(6937),X=a(5536),K=a(5066),ee=a(5581),es={stats:"stats-rA0n5N",progressBar:"progressBar-kqLFX9",bar:"bar-aiypOU",waiting:"waiting-q0vfA9",waitingChildren:"waitingChildren-S11OYM",prioritized:"prioritized-jTAxmN",completed:"completed-Bjjsoj",failed:"failed-L8BZmZ",active:"active-Aj24DJ",delayed:"delayed-huK85t",paused:"paused-xuACK2"};let ea=e=>{let{queue:s}=e,{t:a}=(0,r.Bd)(),l=s.statuses.reduce((e,a)=>e+(s.counts[a]||0),0);return(0,t.jsxs)("div",{className:es.stats,children:[(0,t.jsx)("div",{className:es.progressBar,children:s.statuses.filter(e=>s.counts[e]>0).map(e=>{let r=s.counts[e];return(0,t.jsx)(J.N_,{to:W.y.queuePage(s.name,{[s.name]:e}),role:"progressbar",style:{width:`${r/l*100}%`},"aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":l,className:(0,G.A)(es[(0,ee.C)(e)],es.bar),title:a((0,_.G)(`QUEUE.STATUS.${e.toUpperCase()}`)),children:r},e)})}),(0,t.jsx)("div",{children:a("DASHBOARD.JOBS_COUNT",{count:l})})]})},et=l.lazy(()=>Promise.all([a.e(661),a.e(524)]).then(a.bind(a,9063)).then(e=>{let{AddJobModal:s}=e;return{default:s}})),el=l.lazy(()=>a.e(847).then(a.bind(a,4226)).then(e=>{let{ConcurrencyModal:s}=e;return{default:s}})),er=e=>{let{queue:s,displayName:a}=e,{t:n}=(0,r.Bd)(),{actions:i}=(0,$.A)(),c=(0,Z.h)(),[d]=(0,l.useState)(null),o=a??s.displayName;return(0,t.jsxs)(X.Z,{className:"queueCard-YHG6yO",children:[(0,t.jsxs)("div",{className:"header-gQ6Axi",children:[(0,t.jsx)(J.k2,{to:W.y.queuePage(s.name),className:"link-xZr7yB",title:s.displayName,children:o}),(0,t.jsxs)("div",{className:"headerContext-fhRYcv",children:[s.isPaused&&(0,t.jsxs)("span",{className:"pausedBadge-lWdTOt",children:["[ ",n("MENU.PAUSED")," ]"]}),!s.readOnlyMode&&(0,t.jsx)(K.K,{queue:s,actions:{...i,addJob:()=>c.open("addJob"),onConcurrency:()=>c.open("concurrency")}})]})]}),(0,t.jsx)(ea,{queue:s}),(0,t.jsxs)(l.Suspense,{fallback:null,children:[c.isMounted("addJob")&&(0,t.jsx)(et,{open:c.isOpen("addJob"),onClose:c.close("addJob"),job:d,queue:s}),c.isMounted("concurrency")&&(0,t.jsx)(el,{open:c.isOpen("concurrency"),onClose:c.close("concurrency"),queue:s})]})]})},en=e=>{let{counts:s}=e,{t:a}=(0,r.Bd)();return 0===s.total?(0,t.jsx)("span",{className:"countsEmpty-qEzxQQ",children:a("DASHBOARD.JOBS_COUNT",{count:0})}):(0,t.jsx)("span",{className:"counts-D8YfCA",children:s.statuses.map(e=>(0,t.jsxs)("span",{className:"countChip-qNgwot",title:a((0,_.G)(`QUEUE.STATUS.${e.toUpperCase()}`)),children:[(0,t.jsx)("span",{className:"countDot-lcswcM",style:{backgroundColor:`var(--${e})`}}),s.byStatus[e]]},e))})},ei=e=>{let{node:s}=e,{t:a}=(0,r.Bd)(),{actions:l}=(0,$.A)(),n=(0,Y.Oc)(s,{writableOnly:!0});if(!n.length)return null;let i=(0,Y.Uw)(s);return(0,t.jsxs)(h.i,{children:[(0,t.jsx)(x.c,{render:(0,t.jsx)(c.$,{className:"groupTrigger-AYpV4A","aria-label":a("QUEUE.ACTIONS.GROUP_ACTIONS"),children:(0,t.jsx)(D.L,{})})}),(0,t.jsx)(p.g,{children:(0,t.jsx)(m.y,{align:"end",style:{zIndex:100},children:(0,t.jsx)(F.p,{children:i?(0,t.jsxs)(g.D,{onClick:l.resumeQueues(n),children:[(0,t.jsx)(P.u,{}),a("QUEUE.ACTIONS.RESUME_GROUP")]}):(0,t.jsxs)(g.D,{onClick:l.pauseQueues(n),children:[(0,t.jsx)(I.E,{}),a("QUEUE.ACTIONS.PAUSE_GROUP")]})})})})]})},ec=e=>{let{node:s,level:a,parentPath:l,searchActive:n}=e,{t:c}=(0,r.Bd)(),o=l?`${l}/${s.name}`:s.name,u=(0,i.qm)(e=>e.isMenuOpen(o)),h=(0,i.qm)(e=>e.toggleMenu),x=n||u,p=(0,Y.Ge)(s),m=(0,Y.ub)(s),j=(0,Y.W_)(s),g=`overview-group-${o.replace(/[^a-zA-Z0-9_-]/g,"_")}`;return(0,t.jsxs)("section",{className:"group-Fp3bbz","data-level":a,children:[(0,t.jsxs)("div",{className:"groupHeaderRow-ERXUiV",children:[(0,t.jsxs)("button",{type:"button",className:"groupHeader-R4SWpZ","aria-expanded":x,"aria-controls":g,onClick:()=>h(o),disabled:n,children:[(0,t.jsx)(d.y,{className:(0,G.A)("chevron-iAhUm0",x&&"chevronOpen-hpVoH0")}),(0,t.jsx)("span",{className:"groupName-L1iEYG",title:s.name,children:s.name}),(0,t.jsxs)("span",{className:"groupCount-VWnJzx",children:[p,m>0&&(0,t.jsxs)("span",{className:"groupPausedCount-HC0Fat",children:[" · ",m," ",c("MENU.PAUSED").toLowerCase()]})]})]}),(0,t.jsxs)("div",{className:"groupMeta-fDhBMS",children:[(0,t.jsx)(en,{counts:j}),(0,t.jsx)(ei,{node:s})]})]}),x&&(0,t.jsx)("div",{id:g,className:"groupBody-nQYQuS",children:(0,t.jsx)(ed,{tree:s,level:a+1,parentPath:o,searchActive:n})})]})},ed=e=>{let{tree:s,level:a=0,parentPath:l="",searchActive:r=!1}=e,n=s.children.filter(e=>e.children.length>0),i=s.children.filter(e=>0===e.children.length&&e.queue);return(0,t.jsxs)("div",{className:"tree-hC0IX5",children:[n.map(e=>(0,t.jsx)(ec,{node:e,level:a,parentPath:l,searchActive:r},e.name)),i.length>0&&(0,t.jsx)("ul",{className:"grid-eqFVuo",children:i.map(e=>{let s=e.queue,a=s.displayName&&s.displayName!==s.name?s.displayName:e.name;return(0,t.jsx)("li",{children:(0,t.jsx)(er,{queue:s,displayName:a})},e.name)})})]})};var eo=a(2299);let eu=[eo.f.active,eo.f.waiting,eo.f.waitingChildren,eo.f.prioritized,eo.f.completed,eo.f.failed,eo.f.delayed,eo.f.paused];var eh=a(8848),ex=a(2349);let ep=e=>{let{children:s}=e,{status:a}=(0,eh.o)(),l=eu.map(e=>({status:e,to:W.y.dashboardPage(a===e?void 0:e),isActive:()=>a===e}));return(0,t.jsx)(ex.p,{items:l,children:s})};var em=a(4766),ej=a(3115),eg=a(2815),ev=a(8962),eN=a(7271);let eC=()=>{let{t:e}=(0,r.Bd)(),{actions:s,queues:a,loading:i}=(0,$.A)(),c=(0,eh.o)(),{searchTerm:d}=(0,ej.b)(),o=(0,eg.C)(e=>e.overview.grouped),h=(0,ev._)().overview?.groupByDelimiter??!1,x=(0,eg.C)(e=>e.sortQueues),[p,m]=function(){let e=(0,l.useRef)(null),[s,a]=(0,l.useState)(0);return(0,l.useLayoutEffect)(()=>{let s=e.current;if(!s)return;let t=new ResizeObserver(e=>{let[s]=e;a(s.contentRect.height)});return t.observe(s),a(s.getBoundingClientRect().height),()=>t.disconnect()},[]),[e,s]}(),j=c.status,g=d.toLowerCase(),v=a?.filter(e=>(!j||e.counts[j]>0)&&(!d||e.name.toLowerCase().includes(g)))||[],{sortedQueues:N,onSort:C,sortKey:w,sortDirection:A}=function(e){let{sorting:{dashboard:{key:s,direction:a}},setSettings:t}=(0,eg.C)(e=>{let{setSettings:s,sorting:a}=e;return{sorting:a,setSettings:s}}),r=e.slice(0).sort((e,t)=>"alphabetical"===s?"asc"===a?e.displayName.localeCompare(t.displayName):t.displayName.localeCompare(e.displayName):"asc"===a?e.counts[s]-t.counts[s]:t.counts[s]-e.counts[s]),n=(0,l.useCallback)(e=>{t({sorting:{dashboard:{key:e,direction:e===s&&"asc"===a?"desc":"asc"}}})},[s,a]);return{sortedQueues:r,sortDirection:a,sortKey:s,onSort:n}}(v),b=(0,l.useMemo)(()=>(0,eN.G)(v,x),[v,x]),E=(0,l.useMemo)(()=>(0,eN.i)(b),[b]),y=E.length>0,U=(o??h)&&y,S=d.trim().length>0;return(0,t.jsxs)("section",{style:{"--overview-group-top":`calc(var(--header-height) + ${m}px)`},children:[(0,t.jsx)(em.V,{actions:(0,t.jsx)(t.Fragment,{}),ref:p,children:(0,t.jsx)(ep,{children:(0,t.jsxs)("div",{className:"headerControls-U_70Hg",children:[(0,t.jsx)(u,{grouped:U,groupPaths:E}),(0,t.jsx)(V,{actions:s,queues:a,onSort:C,sortBy:w,sortDirection:A})]})})}),i&&!a?(0,t.jsx)(n.a,{}):0===v.length?(0,t.jsx)("p",{className:"emptyState-GPHV7C",children:j?e("DASHBOARD.EMPTY_STATE_FILTERED",{status:j}):e("DASHBOARD.EMPTY_STATE")}):U?(0,t.jsx)(ed,{tree:b,searchActive:S}):(0,t.jsx)("ul",{className:"overview-zcxjH0",children:N.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(er,{queue:e})},e.name))})]})}},9767(e,s,a){a.d(s,{},{G:e=>e})},5581(e,s,a){function t(e){return e.split("-").map((e,s)=>s>0?`${e[0].toUpperCase()}${e.slice(1)}`:e).join("")}a.d(s,{C:()=>t})}}]);