@bull-board/ui 6.2.4 → 6.3.0

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.
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["44067"],{66485:function(e,t,l){l.d(t,{n:function(){return n}});let n={latest:"latest",active:"active",waiting:"waiting",waitingChildren:"waiting-children",prioritized:"prioritized",completed:"completed",failed:"failed",delayed:"delayed",paused:"paused"}},93065:function(e,t,l){l.d(t,{Z:()=>i});var n=l("52322"),s=l("6277");l("2784");let r="card-xqyZlH",i=e=>{let{children:t,className:l}=e;return(0,n.jsx)("div",{className:(0,s.Z)(r,l),children:t})}},37354:function(e,t,l){l.d(t,{g:()=>a});var n=l("52322"),s=l("6277");l("2784");let r="field-JbAWJt",i="inline-vXG0Za",a=e=>{let{label:t,id:l,inline:a,children:c}=e;return(0,n.jsxs)("div",{className:(0,s.Z)(r,{[i]:a}),children:[!!t&&!a&&(0,n.jsx)("label",{htmlFor:l,children:t}),c,!!t&&a&&(0,n.jsx)("label",{htmlFor:l,children:t})]})}},39278:function(e,t,l){l.d(t,{U:function(){return r}});var n=l(52322);l(2784);var s=l(37354);let r=e=>{let{label:t,id:l,...r}=e;return(0,n.jsx)(s.g,{label:t,id:l,children:(0,n.jsx)("input",{id:l,type:"text",...r})})}},4930:function(e,t,l){l.d(t,{Y:function(){return s}});var n=l(52322);l(2784);let s=()=>(0,n.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512",children:(0,n.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"})})},34372:function(e,t,l){l.d(t,{f:function(){return s}});var n=l(52322);l(2784);let s=()=>(0,n.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.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"})})},74154:function(e,t,l){l.d(t,{o:function(){return s}});var n=l(52322);l(2784);let s=()=>(0,n.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.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"})})},25156:function(e,t,l){l.d(t,{m:function(){return s}});var n=l(52322);l(2784);let s=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,n.jsx)("path",{d:"M15 17v-2.99A4 4 0 0 0 11 10H8v5L2 9l6-6v5h3a6 6 0 0 1 6 6v3h-2z"})})},17500:function(e,t,l){l.d(t,{O:function(){return s}});var n=l(52322);l(2784);let s=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,n.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"})})},2054:function(e,t,l){l.d(t,{X:function(){return s}});var n=l(52322);l(2784);let s=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,n.jsx)("path",{d:"M6 2l2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z"})})},6294:function(e,t,l){l.d(t,{t:()=>ev});var n=l("52322"),s=l("66485"),r=l("2784"),i=l("59382"),a=l("47933"),c=l("93065");let o=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.jsx)("path",{d:"M207.029 381.476 12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"})});var d=l("20666");let u=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.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"})});var h=l("47549"),x=l("17260"),p=l("49638");let m="details-LkCTWS",j="tabActions-fF3v6_",v="tabContent-qmHNgq";var g=l("6277"),f=l("37567");let w=void 0!==window.Worker,b=null,y=new Map;async function L(e,t){if(w)return!b&&((b=new Worker(new URL(l.p+l.u("16651"),l.b),Object.assign({},{name:"highlight-worker"},{type:void 0}))).onmessage=e=>{let{data:t}=e,{id:l,code:n}=t;if(y.has(l)){let{resolve:e}=y.get(l);e(n)}}),new Promise((l,n)=>{let s=(0,f.x0)(5);null==b||b.postMessage({id:s,code:e,language:t}),y.set(s,{resolve:e=>{y.delete(s),l(e)},reject:()=>{y.delete(s),n()}}),setTimeout(()=>n(),6e4)});{let{highlighter:n}=await Promise.all([l.e("85093"),l.e("54183")]).then(l.bind(l,98827));return n.highlightAuto(e,[t]).value||""}}let O="codeContainerWrapper-ZpYBAP",N="copyBtn-vLoi5u",B=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:(0,n.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"})}),C=e=>{let{language:t,text:l}=e,[s,i]=(0,r.useState)(""),a=async()=>{i(await L(l,t))};return(0,r.useEffect)(()=>{a()},[]),(0,r.useEffect)(()=>{a()},[t,l]),(0,n.jsxs)("div",{className:O,children:[(0,n.jsx)("pre",{children:(0,n.jsx)("code",{className:(0,g.Z)("hljs",t),dangerouslySetInnerHTML:{__html:s}})}),(0,n.jsx)(h.z,{onClick:()=>{navigator.clipboard.writeText(l??"")},className:N,children:(0,n.jsx)(B,{})})]})};var J=l("68138"),T=l("39278"),A=l("75439"),S=l("34372"),E=l("74154");let I={jobLogs:"jobLogs-MsL4aJ",preWrapper:"preWrapper-V9RpQs",toolbar:"toolbar-duDU2f",searchBar:"searchBar-N4o70g",logLineCopyButton:"logLineCopyButton-LnHhmG"},D=e=>{var t,l;let n=null===(l=e.message)||void 0===l?void 0:null===(t=l.match(/((info|warn|error)?):/i))||void 0===t?void 0:t[1];return null==n?void 0:n.toLowerCase()},z=e=>async()=>e&&document.fullscreenElement!==e?await e.requestFullscreen():document.exitFullscreen(),R=e=>{navigator.clipboard.writeText(e.message)},k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return!t||RegExp(`${t}`,"i").test(e.message)};function M(e){return e.map((e,t)=>({message:e,lineNumber:t+1}))}let _=e=>{let{actions:t,job:l}=e,{t:s}=(0,i.$G)(),[a,c]=(0,r.useState)([]),[o,d]=(0,r.useState)(!1),[u,x]=(0,r.useState)(""),p=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=!0;return t.getJobLogs().then(t=>{e&&c(M(t))}),()=>{e=!1}},[]),(0,J.Y)(async()=>{var e;let l=null===(e=p.current)||void 0===e?void 0:e.querySelector(`.${I.preWrapper}`);c(M(await t.getJobLogs())),requestAnimationFrame(()=>{null==l||l.scrollTo({top:null==l?void 0:l.scrollHeight,behavior:"smooth"})})},o?2500:null);let m=a.filter(e=>k(e,u));return(0,n.jsxs)("div",{className:I.jobLogs,ref:p,children:[(0,n.jsxs)("ul",{className:I.toolbar,children:[(0,n.jsx)("li",{children:(0,n.jsx)("form",{onSubmit:e=>{var t,l;x((null===(l=e.currentTarget)||void 0===l?void 0:null===(t=l.searchQuery)||void 0===t?void 0:t.value)||""),e.preventDefault()},children:(0,n.jsx)(T.U,{className:I.searchBar,name:"searchQuery",type:"search",placeholder:s("JOB.LOGS.FILTER_PLACEHOLDER"),onChange:e=>{var t;!(null===(t=e.currentTarget)||void 0===t?void 0:t.value)&&x("")}})})}),!l.finishedOn&&(0,n.jsx)("li",{children:(0,n.jsx)(h.z,{isActive:o,onClick:()=>{d(!o)},children:o?(0,n.jsx)(S.f,{}):(0,n.jsx)(E.o,{})})}),(0,n.jsx)("li",{children:(0,n.jsx)(h.z,{onClick:z(p.current),children:(0,n.jsx)(A.$,{})})}),(0,n.jsx)("li",{children:(0,n.jsx)(h.z,{onClick:()=>{let e=m.map(e=>e.message).join("\n");navigator.clipboard.writeText(e)},children:(0,n.jsx)(B,{})})})]}),(0,n.jsx)("div",{className:I.preWrapper,children:(0,n.jsx)("pre",{children:(0,n.jsx)("ol",{style:{paddingInlineStart:`${`${m.length}`.length+1}ch`},children:m.map(e=>(0,n.jsxs)("li",{className:D(e),"data-line-number":`${e.lineNumber}.`,children:[e.message,(0,n.jsx)(h.z,{onClick:()=>R(e),className:I.logLineCopyButton,tabIndex:-1,children:(0,n.jsx)(B,{})})]},e.lineNumber))})})})]})},H=e=>{let{selectedTab:t,job:l,actions:s}=e,{t:a}=(0,i.$G)(),{collapseJobData:c,collapseJobOptions:u,collapseJobError:x}=(0,d.F)(),[p,m]=(0,r.useState)({data:!1,options:!1,error:!1}),{stacktrace:j,data:v,returnValue:g,opts:f,failedReason:w}=l;switch(t){case"Data":return c&&!p.data?(0,n.jsxs)(h.z,{onClick:()=>m({...p,data:!0}),children:[a("JOB.SHOW_DATA_BTN")," ",(0,n.jsx)(o,{})]}):(0,n.jsx)(C,{language:"json",text:JSON.stringify({jobData:v,returnValue:g},null,2)});case"Options":return u&&!p.options?(0,n.jsxs)(h.z,{onClick:()=>m({...p,options:!0}),children:[a("JOB.SHOW_OPTIONS_BTN")," ",(0,n.jsx)(o,{})]}):(0,n.jsx)(C,{language:"json",text:JSON.stringify(f,null,2)});case"Error":if(0===j.length)return(0,n.jsx)("div",{className:"error",children:w||a("JOB.NA")});return x&&!p.error?(0,n.jsxs)(h.z,{onClick:()=>m({...p,error:!0}),children:[a("JOB.SHOW_ERRORS_BTN")," ",(0,n.jsx)(o,{})]}):(0,n.jsx)(C,{language:"stacktrace",text:j.join("\n")},"stacktrace");case"Logs":return(0,n.jsx)(_,{actions:s,job:l});default:return null}},F=e=>{let{status:t,job:l,actions:s}=e,{tabs:r,selectedTab:a}=(0,p.r)(t,l.isFailed),{t:c}=(0,i.$G)();return 0===r.length?null:(0,n.jsxs)("div",{className:m,children:[(0,n.jsx)("ul",{className:j,children:r.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(h.z,{onClick:e.selectTab,isActive:e.isActive,children:c(`JOB.TABS.${e.title.toUpperCase()}`)})},e.title))}),(0,n.jsx)("div",{className:v,children:(0,n.jsx)(H,{selectedTab:a,job:l,actions:s})})]})};var W=l("25156"),Z=l("17500"),$=l("2054");let G="tooltip-QJB3Pz",K=e=>{let{title:t,children:l}=e;return(0,n.jsx)("span",{"data-title":t,className:G,children:l})},P="jobActions-XfoQK8",U="button-GXX8BV",Y={updateData:{titleKey:"UPDATE_DATA",Icon:()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,n.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:W.m,actionKey:"promoteJob"},clean:{titleKey:"CLEAN",Icon:$.X,actionKey:"cleanJob"},retry:{titleKey:"RETRY",Icon:Z.O,actionKey:"retryJob"},duplicate:{titleKey:"DUPLICATE",Icon:()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.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"}},V={[s.n.failed]:[Y.retry,Y.duplicate,Y.updateData,Y.clean],[s.n.delayed]:[Y.promote,Y.duplicate,Y.updateData,Y.clean],[s.n.completed]:[Y.duplicate,Y.retry,Y.clean],[s.n.waiting]:[Y.duplicate,Y.updateData,Y.clean]},q=e=>{let{actions:t,status:l,allowRetries:s}=e,r=V[l],{t:a}=(0,i.$G)();return r?(!s&&(r=r.filter(e=>"retryJob"!==e.actionKey)),(0,n.jsx)("ul",{className:P,children:r.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(K,{title:a(`JOB.ACTIONS.${e.titleKey}`),children:(0,n.jsx)(h.z,{onClick:t[e.actionKey],className:U,children:(0,n.jsx)(e.Icon,{})})})},e.titleKey))})):null},X="progress-Rr7sCM",Q="failed-rTUpGj",ee="success-RY6h2q",et=e=>{let{progress:t,status:l,className:r,strokeWidth:i=6}=e,a="number"==typeof t?t:t.progress??null;if(!a)return null;let c={cx:"50%",cy:"50%",r:`calc(50% - ${i/2}px)`,strokeWidth:i,"transform-origin":"center"};return(0,n.jsxs)("svg",{className:(0,g.Z)(X,r),width:"100%",height:"100%",children:[(0,n.jsx)("circle",{...c}),(0,n.jsx)("circle",{className:(0,g.Z)({[Q]:l===s.n.failed,[ee]:l!==s.n.failed}),pathLength:100,strokeDasharray:100,strokeDashoffset:100-a,strokeLinejoin:"round",strokeLinecap:"round",transform:"rotate(-90)",...c}),(0,n.jsxs)("text",{textAnchor:"middle",dominantBaseline:"middle",x:"50%",y:"50%",children:[Math.round(a),"%"]})]})};var el=l("89192"),en=l("86626"),es=l("31794"),er=l("86544"),ei=l("77184"),ea=l("96081"),ec=l("64068");let eo="timeline-lF9niS",ed="timelineWrapper-iZqG0C";var eu=l("15006");let eh=(e,t,l)=>{let n;if((0,el.Z)(e)){if(null==l?void 0:l.short)return(0,en.Z)(new Date(e),l.short);n={hour:"numeric",minute:"numeric",second:"numeric"}}else if((0,es.Z)(e,new Date)){if(null==l?void 0:l.common)return(0,en.Z)(new Date(e),l.common);n={month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}}else{if(null==l?void 0:l.full)return(0,en.Z)(new Date(e),l.full);n={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}}return new Intl.DateTimeFormat(t,n).format(e)},ex=(e,t,l)=>{let n=(0,er.Z)(e,t),s=n/1e3;return s>5?(0,ei.Z)(e,t,{includeSeconds:!0,locale:ec.Y||ea.Z}):s>=1?l("JOB.DURATION.SECS",{duration:s.toFixed(2)}):l("JOB.DURATION.MILLI_SECS",{duration:n})},ep=function(e){let{job:t,status:l}=e,{t:r,i18n:a}=(0,i.$G)(),c=(0,eu.p)().dateFormats||{};return(0,n.jsx)("div",{className:ed,children:(0,n.jsxs)("ul",{className:eo,children:[(0,n.jsxs)("li",{children:[(0,n.jsx)("small",{children:r("JOB.ADDED_AT")}),(0,n.jsx)("time",{children:eh(t.timestamp||0,a.language,c)})]}),!!t.delay&&t.delay>0&&l===s.n.delayed&&(0,n.jsxs)("li",{children:[(0,n.jsx)("small",{children:r("JOB.WILL_RUN_AT")}),(0,n.jsx)("time",{children:eh((t.timestamp||0)+(t.opts.delay||t.delay||0),a.language,c)}),t.delay!==t.opts.delay&&(0,n.jsxs)("small",{children:[r("JOB.DELAY_CHANGED")," "]})]}),!!t.processedOn&&(0,n.jsxs)("li",{children:[(0,n.jsxs)("small",{children:[!!t.delay&&t.delay>0&&r("JOB.DELAYED_FOR")+" ",ex(t.processedOn,t.timestamp||0,r)]}),(0,n.jsx)("small",{children:r("JOB.PROCESS_STARTED_AT")}),(0,n.jsx)("time",{children:eh(t.processedOn,a.language,c)}),!!t.processedBy&&(0,n.jsx)("small",{children:r("JOB.PROCESSED_BY",{processedBy:t.processedBy})})]}),!!t.finishedOn&&(0,n.jsxs)("li",{children:[(0,n.jsx)("small",{children:ex(t.finishedOn,t.processedOn||0,r)}),(0,n.jsx)("small",{children:r(t.isFailed&&l!==s.n.active?"JOB.FAILED_AT":"JOB.FINISHED_AT")}),(0,n.jsx)("time",{children:eh(t.finishedOn,a.language,c)})]})]})})},em={card:"card-BRjpw_",contentWrapper:"contentWrapper-Aj9Wmy",title:"title-wDT4dB",sideInfo:"sideInfo-a9IFbv",header:"header-Lw4QCc",details:"details-JRsI9B",collapseBtn:"collapseBtn-J6rMz7",content:"content-SHI77x",progress:"progress-POOya3",jobLink:"jobLink-wmCWQg"},ej=[s.n.active,s.n.completed],ev=e=>{var t,l,p,m,j,v;let{job:g,status:f,actions:w,readOnlyMode:b,allowRetries:y,jobUrl:L}=e,{t:O}=(0,i.$G)(),{collapseJob:N}=(0,d.F)(),[B,C]=r.useState(),J=!L||B||!N,T=N&&L,A=(0,n.jsxs)("h4",{children:[/^\d+$/.test(`${g.id}`)?"#":"",g.id]});return(0,n.jsx)(x.fC,{asChild:!0,open:J,children:(0,n.jsxs)(c.Z,{className:em.card,children:[(0,n.jsxs)("div",{className:em.header,children:[L?(0,n.jsx)(a.rU,{className:em.jobLink,to:L,children:A}):A,T&&(0,n.jsx)(h.z,{className:em.collapseBtn,onClick:()=>C(!J),children:J?(0,n.jsx)(u,{}):(0,n.jsx)(o,{})})]}),(0,n.jsx)(x.VY,{asChild:!0,children:(0,n.jsxs)("div",{className:em.details,children:[(0,n.jsx)("div",{className:em.sideInfo,children:(0,n.jsx)(ep,{job:g,status:f})}),(0,n.jsxs)("div",{className:em.contentWrapper,children:[(0,n.jsxs)("div",{className:em.title,children:[(0,n.jsxs)("h5",{children:[g.name,g.attempts>1&&(0,n.jsx)("span",{children:O("JOB.ATTEMPTS",{attempts:g.attempts})}),!!(null===(l=g.opts)||void 0===l?void 0:null===(t=l.repeat)||void 0===t?void 0:t.count)&&(0,n.jsx)("span",{children:O(`JOB.REPEAT${(null===(m=g.opts)||void 0===m?void 0:null===(p=m.repeat)||void 0===p?void 0:p.limit)?"_WITH_LIMIT":""}`,{count:g.opts.repeat.count,limit:null===(v=g.opts)||void 0===v?void 0:null===(j=v.repeat)||void 0===j?void 0:j.limit})})]}),!b&&(0,n.jsx)(q,{status:f,actions:w,allowRetries:y})]}),(0,n.jsxs)("div",{className:em.content,children:[(0,n.jsx)(F,{status:f,job:g,actions:w}),(0,n.jsx)(et,{progress:g.progress,status:g.isFailed&&!ej.includes(f)?s.n.failed:f,className:em.progress})]})]})]})})]})})}},15927:function(e,t,l){l.d(t,{M:()=>r});var n=l("52322");l("2784");let s={stickyHeader:"stickyHeader-Woc0cg",actionContainer:"actionContainer-gipYSV"},r=e=>{let{actions:t,children:l}=e;return(0,n.jsxs)("div",{className:s.stickyHeader,children:[l,!!t&&(0,n.jsx)("div",{className:s.actionContainer,children:t})]})}},49638:function(e,t,l){l.d(t,{X:function(){return i},r:function(){return a}});var n=l(2784),s=l(66485),r=l(20666);let i=["Data","Options","Logs","Error"];function a(e,t){let[l,a]=(0,n.useState)([]),{defaultJobTab:c}=(0,r.F)(),[o,d]=(0,n.useState)(l.find(e=>e===c)||l[0]);return(0,n.useEffect)(()=>{let l=i.filter(e=>"Error"!==e);t?l=[...l,"Error"]:e===s.n.failed&&(l=["Error",...l]),a(l)},[e]),(0,n.useEffect)(()=>{l.includes(c)?d(c):d(l[0])},[c,l]),{tabs:null==l?void 0:l.map(e=>({title:e,isActive:e===o,selectTab:()=>d(e)})),selectedTab:o}}},59789:function(e,t,l){l.d(t,{t:()=>p});var n=l("59382"),s=l("9210"),r=l("85106"),i=l("7267"),a=l("48199"),c=l("1304"),o=l("58901"),d=l("68138"),u=l("66868"),h=l("20666");let x=(0,s.Ue)(e=>({job:null,status:"latest",loading:!0,updateJob:(t,l)=>e(()=>({job:t,status:l,loading:!1}))}));function p(){let e=(0,c.h)(),t=(0,a.u)(),l=function(){let{pathname:e}=(0,i.TH)(),t=(0,i.LX)(e,{path:["/queue/:name/:jobId"],exact:!1,strict:!1});return decodeURIComponent((null==t?void 0:t.params.jobId)||"")}(),{actions:{updateQueues:s}}=(0,u.y)(),{t:p}=(0,n.$G)(),{confirmJobActions:m,pollingInterval:j}=(0,h.F)(e=>{let{confirmJobActions:t,pollingInterval:l}=e;return{confirmJobActions:t,pollingInterval:l}}),{job:v,status:g,loading:f,updateJob:w}=x(e=>e),{openConfirm:b}=(0,o.N)(),y=()=>e.getJob(t,l).then(e=>{let{job:t,status:l}=e;return w(t,l)}),L=(0,r.G)(l?y:s,b);return{job:v,status:g,loading:f,actions:{getJob:y,pollJob:()=>(0,d.Y)(y,j>0?1e3*j:null,[t]),promoteJob:t=>l=>L(()=>e.promoteJob(t,l.id),p("JOB.ACTIONS.CONFIRM.PROMOTE"),m),cleanJob:t=>l=>L(()=>e.cleanJob(t,l.id),p("JOB.ACTIONS.CONFIRM.CLEAN"),m),getJobLogs:t=>l=>()=>e.getJobLogs(t,l.id),retryJob:(t,l)=>n=>L(()=>e.retryJob(t,n.id,l),p("JOB.ACTIONS.CONFIRM.RETRY"),m),updateJobData:(t,l,n)=>L(()=>e.updateJobData(t,l.id,n),"",!1)}}}}}]);
1
+ "use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["44067"],{66485:function(e,t,l){l.d(t,{n:function(){return n}});let n={latest:"latest",active:"active",waiting:"waiting",waitingChildren:"waiting-children",prioritized:"prioritized",completed:"completed",failed:"failed",delayed:"delayed",paused:"paused"}},93065:function(e,t,l){l.d(t,{Z:()=>i});var n=l("52322"),s=l("6277");l("2784");let r="card-xqyZlH",i=e=>{let{children:t,className:l}=e;return(0,n.jsx)("div",{className:(0,s.Z)(r,l),children:t})}},37354:function(e,t,l){l.d(t,{g:()=>a});var n=l("52322"),s=l("6277");l("2784");let r="field-JbAWJt",i="inline-vXG0Za",a=e=>{let{label:t,id:l,inline:a,children:c}=e;return(0,n.jsxs)("div",{className:(0,s.Z)(r,{[i]:a}),children:[!!t&&!a&&(0,n.jsx)("label",{htmlFor:l,children:t}),c,!!t&&a&&(0,n.jsx)("label",{htmlFor:l,children:t})]})}},39278:function(e,t,l){l.d(t,{U:function(){return r}});var n=l(52322);l(2784);var s=l(37354);let r=e=>{let{label:t,id:l,...r}=e;return(0,n.jsx)(s.g,{label:t,id:l,children:(0,n.jsx)("input",{id:l,type:"text",...r})})}},4930:function(e,t,l){l.d(t,{Y:function(){return s}});var n=l(52322);l(2784);let s=()=>(0,n.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512",children:(0,n.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"})})},34372:function(e,t,l){l.d(t,{f:function(){return s}});var n=l(52322);l(2784);let s=()=>(0,n.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.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"})})},74154:function(e,t,l){l.d(t,{o:function(){return s}});var n=l(52322);l(2784);let s=()=>(0,n.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.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"})})},25156:function(e,t,l){l.d(t,{m:function(){return s}});var n=l(52322);l(2784);let s=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,n.jsx)("path",{d:"M15 17v-2.99A4 4 0 0 0 11 10H8v5L2 9l6-6v5h3a6 6 0 0 1 6 6v3h-2z"})})},17500:function(e,t,l){l.d(t,{O:function(){return s}});var n=l(52322);l(2784);let s=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,n.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"})})},2054:function(e,t,l){l.d(t,{X:function(){return s}});var n=l(52322);l(2784);let s=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,n.jsx)("path",{d:"M6 2l2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z"})})},6294:function(e,t,l){l.d(t,{t:()=>ej});var n=l("52322"),s=l("66485"),r=l("2784"),i=l("59382"),a=l("47933"),c=l("93065");let o=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.jsx)("path",{d:"M207.029 381.476 12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"})});var d=l("20666");let u=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.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"})});var h=l("47549"),x=l("17260"),p=l("49638");let m="details-LkCTWS",j="tabActions-fF3v6_",v="tabContent-qmHNgq";var g=l("6277"),f=l("37567");let w=void 0!==window.Worker,b=null,y=new Map;async function L(e,t){if(w)return!b&&((b=new Worker(new URL(l.p+l.u("16651"),l.b),Object.assign({},{name:"highlight-worker"},{type:void 0}))).onmessage=e=>{let{data:t}=e,{id:l,code:n}=t;if(y.has(l)){let{resolve:e}=y.get(l);e(n)}}),new Promise((l,n)=>{let s=(0,f.x0)(5);null==b||b.postMessage({id:s,code:e,language:t}),y.set(s,{resolve:e=>{y.delete(s),l(e)},reject:()=>{y.delete(s),n()}}),setTimeout(()=>n(),6e4)});{let{highlighter:n}=await Promise.all([l.e("85093"),l.e("54183")]).then(l.bind(l,98827));return n.highlightAuto(e,[t]).value||""}}let O="codeContainerWrapper-ZpYBAP",N="copyBtn-vLoi5u",B=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:(0,n.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"})}),C=e=>{let{language:t,text:l}=e,[s,i]=(0,r.useState)(""),a=async()=>{i(await L(l,t))};return(0,r.useEffect)(()=>{a()},[]),(0,r.useEffect)(()=>{a()},[t,l]),(0,n.jsxs)("div",{className:O,children:[(0,n.jsx)("pre",{children:(0,n.jsx)("code",{className:(0,g.Z)("hljs",t),dangerouslySetInnerHTML:{__html:s}})}),(0,n.jsx)(h.z,{onClick:()=>{navigator.clipboard.writeText(l??"")},className:N,children:(0,n.jsx)(B,{})})]})};var J=l("68138"),T=l("39278"),A=l("75439"),S=l("34372"),E=l("74154");let I={jobLogs:"jobLogs-MsL4aJ",preWrapper:"preWrapper-V9RpQs",toolbar:"toolbar-duDU2f",searchBar:"searchBar-N4o70g",logLineCopyButton:"logLineCopyButton-LnHhmG"},D=e=>{var t,l;let n=null===(l=e.message)||void 0===l?void 0:null===(t=l.match(/((info|warn|error)?):/i))||void 0===t?void 0:t[1];return null==n?void 0:n.toLowerCase()},z=e=>async()=>e&&document.fullscreenElement!==e?await e.requestFullscreen():document.exitFullscreen(),R=e=>{navigator.clipboard.writeText(e.message)},k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return!t||RegExp(`${t}`,"i").test(e.message)};function M(e){return e.map((e,t)=>({message:e,lineNumber:t+1}))}let _=e=>{let{actions:t,job:l}=e,{t:s}=(0,i.$G)(),[a,c]=(0,r.useState)([]),[o,d]=(0,r.useState)(!1),[u,x]=(0,r.useState)(""),p=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=!0;return t.getJobLogs().then(t=>{e&&c(M(t))}),()=>{e=!1}},[]),(0,J.Y)(async()=>{var e;let l=null===(e=p.current)||void 0===e?void 0:e.querySelector(`.${I.preWrapper}`);c(M(await t.getJobLogs())),requestAnimationFrame(()=>{null==l||l.scrollTo({top:null==l?void 0:l.scrollHeight,behavior:"smooth"})})},o?2500:null);let m=a.filter(e=>k(e,u));return(0,n.jsxs)("div",{className:I.jobLogs,ref:p,children:[(0,n.jsxs)("ul",{className:I.toolbar,children:[(0,n.jsx)("li",{children:(0,n.jsx)("form",{onSubmit:e=>{var t,l;x((null===(l=e.currentTarget)||void 0===l?void 0:null===(t=l.searchQuery)||void 0===t?void 0:t.value)||""),e.preventDefault()},children:(0,n.jsx)(T.U,{className:I.searchBar,name:"searchQuery",type:"search",placeholder:s("JOB.LOGS.FILTER_PLACEHOLDER"),onChange:e=>{var t;!(null===(t=e.currentTarget)||void 0===t?void 0:t.value)&&x("")}})})}),!l.finishedOn&&(0,n.jsx)("li",{children:(0,n.jsx)(h.z,{isActive:o,onClick:()=>{d(!o)},children:o?(0,n.jsx)(S.f,{}):(0,n.jsx)(E.o,{})})}),(0,n.jsx)("li",{children:(0,n.jsx)(h.z,{onClick:z(p.current),children:(0,n.jsx)(A.$,{})})}),(0,n.jsx)("li",{children:(0,n.jsx)(h.z,{onClick:()=>{let e=m.map(e=>e.message).join("\n");navigator.clipboard.writeText(e)},children:(0,n.jsx)(B,{})})})]}),(0,n.jsx)("div",{className:I.preWrapper,children:(0,n.jsx)("pre",{children:(0,n.jsx)("ol",{style:{paddingInlineStart:`${`${m.length}`.length+1}ch`},children:m.map(e=>(0,n.jsxs)("li",{className:D(e),"data-line-number":`${e.lineNumber}.`,children:[e.message,(0,n.jsx)(h.z,{onClick:()=>R(e),className:I.logLineCopyButton,tabIndex:-1,children:(0,n.jsx)(B,{})})]},e.lineNumber))})})})]})},H=e=>{let{selectedTab:t,job:l,actions:s}=e,{t:a}=(0,i.$G)(),{collapseJobData:c,collapseJobOptions:u,collapseJobError:x}=(0,d.F)(),[p,m]=(0,r.useState)({data:!1,options:!1,error:!1}),{stacktrace:j,data:v,returnValue:g,opts:f,failedReason:w}=l;switch(t){case"Data":return c&&!p.data?(0,n.jsxs)(h.z,{onClick:()=>m({...p,data:!0}),children:[a("JOB.SHOW_DATA_BTN")," ",(0,n.jsx)(o,{})]}):(0,n.jsx)(C,{language:"json",text:JSON.stringify({jobData:v,returnValue:g},null,2)});case"Options":return u&&!p.options?(0,n.jsxs)(h.z,{onClick:()=>m({...p,options:!0}),children:[a("JOB.SHOW_OPTIONS_BTN")," ",(0,n.jsx)(o,{})]}):(0,n.jsx)(C,{language:"json",text:JSON.stringify(f,null,2)});case"Error":if(0===j.length)return(0,n.jsx)("div",{className:"error",children:w||a("JOB.NA")});return x&&!p.error?(0,n.jsxs)(h.z,{onClick:()=>m({...p,error:!0}),children:[a("JOB.SHOW_ERRORS_BTN")," ",(0,n.jsx)(o,{})]}):(0,n.jsx)(C,{language:"stacktrace",text:j.join("\n")},"stacktrace");case"Logs":return(0,n.jsx)(_,{actions:s,job:l});default:return null}},F=e=>{let{status:t,job:l,actions:s}=e,{tabs:r,selectedTab:a}=(0,p.r)(t,l.isFailed),{t:c}=(0,i.$G)();return 0===r.length?null:(0,n.jsxs)("div",{className:m,children:[(0,n.jsx)("ul",{className:j,children:r.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(h.z,{onClick:e.selectTab,isActive:e.isActive,children:c(`JOB.TABS.${e.title.toUpperCase()}`)})},e.title))}),(0,n.jsx)("div",{className:v,children:(0,n.jsx)(H,{selectedTab:a,job:l,actions:s})})]})};var W=l("25156"),$=l("17500"),Z=l("2054");let G="tooltip-QJB3Pz",K=e=>{let{title:t,children:l}=e;return(0,n.jsx)("span",{"data-title":t,className:G,children:l})},P="jobActions-XfoQK8",U="button-GXX8BV",Y={updateData:{titleKey:"UPDATE_DATA",Icon:()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,n.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:W.m,actionKey:"promoteJob"},clean:{titleKey:"CLEAN",Icon:Z.X,actionKey:"cleanJob"},retry:{titleKey:"RETRY",Icon:$.O,actionKey:"retryJob"},duplicate:{titleKey:"DUPLICATE",Icon:()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.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"}},V={[s.n.failed]:[Y.retry,Y.duplicate,Y.updateData,Y.clean],[s.n.delayed]:[Y.promote,Y.duplicate,Y.updateData,Y.clean],[s.n.completed]:[Y.duplicate,Y.retry,Y.clean],[s.n.waiting]:[Y.duplicate,Y.updateData,Y.clean]},q=e=>{let{actions:t,status:l,allowRetries:s}=e,r=V[l],{t:a}=(0,i.$G)();return r?(!s&&(r=r.filter(e=>"retryJob"!==e.actionKey)),(0,n.jsx)("ul",{className:P,children:r.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(K,{title:a(`JOB.ACTIONS.${e.titleKey}`),children:(0,n.jsx)(h.z,{onClick:t[e.actionKey],className:U,children:(0,n.jsx)(e.Icon,{})})})},e.titleKey))})):null},X="progress-Rr7sCM",Q="failed-rTUpGj",ee="success-RY6h2q",et=e=>{let{progress:t,status:l,className:r,strokeWidth:i=6}=e,a="number"==typeof t?t:t.progress??null;if(!a)return null;let c={cx:"50%",cy:"50%",r:`calc(50% - ${i/2}px)`,strokeWidth:i,"transform-origin":"center"};return(0,n.jsxs)("svg",{className:(0,g.Z)(X,r),width:"100%",height:"100%",children:[(0,n.jsx)("circle",{...c}),(0,n.jsx)("circle",{className:(0,g.Z)({[Q]:l===s.n.failed,[ee]:l!==s.n.failed}),pathLength:100,strokeDasharray:100,strokeDashoffset:100-a,strokeLinejoin:"round",strokeLinecap:"round",transform:"rotate(-90)",...c}),(0,n.jsxs)("text",{textAnchor:"middle",dominantBaseline:"middle",x:"50%",y:"50%",children:[Math.round(a),"%"]})]})};var el=l("89192"),en=l("86626"),es=l("31794"),er=l("86544"),ei=l("77184"),ea=l("64068");let ec="timeline-lF9niS",eo="timelineWrapper-iZqG0C";var ed=l("15006");let eu=(e,t,l)=>{let n;if((0,el.Z)(e)){if(null==l?void 0:l.short)return(0,en.Z)(new Date(e),l.short);n={hour:"numeric",minute:"numeric",second:"numeric"}}else if((0,es.Z)(e,new Date)){if(null==l?void 0:l.common)return(0,en.Z)(new Date(e),l.common);n={month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}}else{if(null==l?void 0:l.full)return(0,en.Z)(new Date(e),l.full);n={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}}return new Intl.DateTimeFormat(t,n).format(e)},eh=(e,t,l)=>{let n=(0,er.Z)(e,t),s=n/1e3;return s>5?(0,ei.Z)(e,t,{includeSeconds:!0,locale:ea.Y}):s>=1?l("JOB.DURATION.SECS",{duration:s.toFixed(2)}):l("JOB.DURATION.MILLI_SECS",{duration:n})},ex=function(e){let{job:t,status:l}=e,{t:r,i18n:a}=(0,i.$G)(),c=(0,ed.p)().dateFormats||{};return(0,n.jsx)("div",{className:eo,children:(0,n.jsxs)("ul",{className:ec,children:[(0,n.jsxs)("li",{children:[(0,n.jsx)("small",{children:r("JOB.ADDED_AT")}),(0,n.jsx)("time",{children:eu(t.timestamp||0,a.language,c)})]}),!!t.delay&&t.delay>0&&l===s.n.delayed&&(0,n.jsxs)("li",{children:[(0,n.jsx)("small",{children:r("JOB.WILL_RUN_AT")}),(0,n.jsx)("time",{children:eu((t.timestamp||0)+(t.opts.delay||t.delay||0),a.language,c)}),t.delay!==t.opts.delay&&(0,n.jsxs)("small",{children:[r("JOB.DELAY_CHANGED")," "]})]}),!!t.processedOn&&(0,n.jsxs)("li",{children:[(0,n.jsxs)("small",{children:[!!t.delay&&t.delay>0&&r("JOB.DELAYED_FOR")+" ",eh(t.processedOn,t.timestamp||0,r)]}),(0,n.jsx)("small",{children:r("JOB.PROCESS_STARTED_AT")}),(0,n.jsx)("time",{children:eu(t.processedOn,a.language,c)}),!!t.processedBy&&(0,n.jsx)("small",{children:r("JOB.PROCESSED_BY",{processedBy:t.processedBy})})]}),!!t.finishedOn&&(0,n.jsxs)("li",{children:[(0,n.jsx)("small",{children:eh(t.finishedOn,t.processedOn||0,r)}),(0,n.jsx)("small",{children:r(t.isFailed&&l!==s.n.active?"JOB.FAILED_AT":"JOB.FINISHED_AT")}),(0,n.jsx)("time",{children:eu(t.finishedOn,a.language,c)})]})]})})},ep={card:"card-BRjpw_",contentWrapper:"contentWrapper-Aj9Wmy",title:"title-wDT4dB",sideInfo:"sideInfo-a9IFbv",header:"header-Lw4QCc",details:"details-JRsI9B",collapseBtn:"collapseBtn-J6rMz7",content:"content-SHI77x",progress:"progress-POOya3",jobLink:"jobLink-wmCWQg"},em=[s.n.active,s.n.completed],ej=e=>{var t,l,p,m,j,v;let{job:g,status:f,actions:w,readOnlyMode:b,allowRetries:y,jobUrl:L}=e,{t:O}=(0,i.$G)(),{collapseJob:N}=(0,d.F)(),[B,C]=r.useState(),J=!L||B||!N,T=N&&L,A=(0,n.jsxs)("h4",{children:[/^\d+$/.test(`${g.id}`)?"#":"",g.id]});return(0,n.jsx)(x.fC,{asChild:!0,open:J,children:(0,n.jsxs)(c.Z,{className:ep.card,children:[(0,n.jsxs)("div",{className:ep.header,children:[L?(0,n.jsx)(a.rU,{className:ep.jobLink,to:L,children:A}):A,T&&(0,n.jsx)(h.z,{className:ep.collapseBtn,onClick:()=>C(!J),children:J?(0,n.jsx)(u,{}):(0,n.jsx)(o,{})})]}),(0,n.jsx)(x.VY,{asChild:!0,children:(0,n.jsxs)("div",{className:ep.details,children:[(0,n.jsx)("div",{className:ep.sideInfo,children:(0,n.jsx)(ex,{job:g,status:f})}),(0,n.jsxs)("div",{className:ep.contentWrapper,children:[(0,n.jsxs)("div",{className:ep.title,children:[(0,n.jsxs)("h5",{children:[g.name,g.attempts>1&&(0,n.jsx)("span",{children:O("JOB.ATTEMPTS",{attempts:g.attempts})}),!!(null===(l=g.opts)||void 0===l?void 0:null===(t=l.repeat)||void 0===t?void 0:t.count)&&(0,n.jsx)("span",{children:O(`JOB.REPEAT${(null===(m=g.opts)||void 0===m?void 0:null===(p=m.repeat)||void 0===p?void 0:p.limit)?"_WITH_LIMIT":""}`,{count:g.opts.repeat.count,limit:null===(v=g.opts)||void 0===v?void 0:null===(j=v.repeat)||void 0===j?void 0:j.limit})})]}),!b&&(0,n.jsx)(q,{status:f,actions:w,allowRetries:y})]}),(0,n.jsxs)("div",{className:ep.content,children:[(0,n.jsx)(F,{status:f,job:g,actions:w}),(0,n.jsx)(et,{progress:g.progress,status:g.isFailed&&!em.includes(f)?s.n.failed:f,className:ep.progress})]})]})]})})]})})}},15927:function(e,t,l){l.d(t,{M:()=>r});var n=l("52322");l("2784");let s={stickyHeader:"stickyHeader-Woc0cg",actionContainer:"actionContainer-gipYSV"},r=e=>{let{actions:t,children:l}=e;return(0,n.jsxs)("div",{className:s.stickyHeader,children:[l,!!t&&(0,n.jsx)("div",{className:s.actionContainer,children:t})]})}},49638:function(e,t,l){l.d(t,{X:function(){return i},r:function(){return a}});var n=l(2784),s=l(66485),r=l(20666);let i=["Data","Options","Logs","Error"];function a(e,t){let[l,a]=(0,n.useState)([]),{defaultJobTab:c}=(0,r.F)(),[o,d]=(0,n.useState)(l.find(e=>e===c)||l[0]);return(0,n.useEffect)(()=>{let l=i.filter(e=>"Error"!==e);t?l=[...l,"Error"]:e===s.n.failed&&(l=["Error",...l]),a(l)},[e]),(0,n.useEffect)(()=>{l.includes(c)?d(c):d(l[0])},[c,l]),{tabs:null==l?void 0:l.map(e=>({title:e,isActive:e===o,selectTab:()=>d(e)})),selectedTab:o}}},59789:function(e,t,l){l.d(t,{t:()=>p});var n=l("59382"),s=l("9210"),r=l("85106"),i=l("7267"),a=l("48199"),c=l("1304"),o=l("58901"),d=l("68138"),u=l("95095"),h=l("20666");let x=(0,s.Ue)(e=>({job:null,status:"latest",loading:!0,updateJob:(t,l)=>e(()=>({job:t,status:l,loading:!1}))}));function p(){let e=(0,c.h)(),t=(0,a.u)(),l=function(){let{pathname:e}=(0,i.TH)(),t=(0,i.LX)(e,{path:["/queue/:name/:jobId"],exact:!1,strict:!1});return decodeURIComponent((null==t?void 0:t.params.jobId)||"")}(),{actions:{updateQueues:s}}=(0,u.y)(),{t:p}=(0,n.$G)(),{confirmJobActions:m,pollingInterval:j}=(0,h.F)(e=>{let{confirmJobActions:t,pollingInterval:l}=e;return{confirmJobActions:t,pollingInterval:l}}),{job:v,status:g,loading:f,updateJob:w}=x(e=>e),{openConfirm:b}=(0,o.N)(),y=()=>e.getJob(t,l).then(e=>{let{job:t,status:l}=e;return w(t,l)}),L=(0,r.G)(l?y:s,b);return{job:v,status:g,loading:f,actions:{getJob:y,pollJob:()=>(0,d.Y)(y,j>0?1e3*j:null,[t]),promoteJob:t=>l=>L(()=>e.promoteJob(t,l.id),p("JOB.ACTIONS.CONFIRM.PROMOTE"),m),cleanJob:t=>l=>L(()=>e.cleanJob(t,l.id),p("JOB.ACTIONS.CONFIRM.CLEAN"),m),getJobLogs:t=>l=>()=>e.getJobLogs(t,l.id),retryJob:(t,l)=>n=>L(()=>e.retryJob(t,n.id,l),p("JOB.ACTIONS.CONFIRM.RETRY"),m),updateJobData:(t,l,n)=>L(()=>e.updateJobData(t,l.id,n),"",!1)}}}}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["4670"],{37492:function(e,a,t){var n,r;n=0,r=e=>(()=>{var a={703:(e,a,t)=>{"use strict";var n=t(414);function r(){}function s(){}s.resetWarningCache=r,e.exports=function(){function e(e,a,t,r,s,i){if(i!==n){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function a(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:a,element:e,elementType:e,instanceOf:a,node:e,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:s,resetWarningCache:r};return t.PropTypes=t,t}},697:(e,a,t)=>{e.exports=t(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:a=>{"use strict";a.exports=e}},t={};function n(e){var r=t[e];if(void 0!==r)return r.exports;var s=t[e]={exports:{}};return a[e](s,s.exports,n),s.exports}n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var t in a)n.o(a,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{default:()=>m});var e=n(98),a=n.n(e),t=n(697),s=n.n(t);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var l=function(e){var t=e.pageClassName,n=e.pageLinkClassName,r=e.page,s=e.selected,l=e.activeClassName,o=e.activeLinkClassName,c=e.getEventListener,p=e.pageSelectedHandler,u=e.href,d=e.extraAriaContext,g=e.pageLabelBuilder,b=e.rel,h=e.ariaLabel||"Page "+r+(d?" "+d:""),f=null;return s&&(f="page",h=e.ariaLabel||"Page "+r+" is your current page",t=void 0!==t?t+" "+l:l,void 0!==n?void 0!==o&&(n=n+" "+o):n=o),a().createElement("li",{className:t},a().createElement("a",i({rel:b,role:u?void 0:"button",className:n,href:u,tabIndex:s?"-1":"0","aria-label":h,"aria-current":f,onKeyPress:p},c(p)),g(r)))};l.propTypes={pageSelectedHandler:s().func.isRequired,selected:s().bool.isRequired,pageClassName:s().string,pageLinkClassName:s().string,activeClassName:s().string,activeLinkClassName:s().string,extraAriaContext:s().string,href:s().string,ariaLabel:s().string,page:s().number.isRequired,getEventListener:s().func.isRequired,pageLabelBuilder:s().func.isRequired,rel:s().string};function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var c=function(e){var t=e.breakLabel,n=e.breakAriaLabel,r=e.breakClassName,s=e.breakLinkClassName,i=e.breakHandler,l=e.getEventListener;return a().createElement("li",{className:r||"break"},a().createElement("a",o({className:s,role:"button",tabIndex:"0","aria-label":n,onKeyPress:i},l(i)),t))};c.propTypes={breakLabel:s().oneOfType([s().string,s().node]),breakAriaLabel:s().string,breakClassName:s().string,breakLinkClassName:s().string,breakHandler:s().func.isRequired,getEventListener:s().func.isRequired};function p(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!=e?e:a}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function g(e,a){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,a){return e.__proto__=a,e})(e,a)}function b(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}var v=function(e){!function(e,a){if("function"!=typeof a&&null!==a)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),a&&g(e,a)}(s,e);var t,n,r=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,a=h(s);return e=n?Reflect.construct(a,arguments,h(this).constructor):a.apply(this,arguments),function(e,a){if(a&&("object"===u(a)||"function"==typeof a))return a;if(void 0!==a)throw TypeError("Derived constructors may only return object or undefined");return b(e)}(this,e)});function s(e){var t,n;return function(e,a){if(!(e instanceof a))throw TypeError("Cannot call a class as a function")}(this,s),f(b(t=r.call(this,e)),"handlePreviousPage",function(e){var a=t.state.selected;t.handleClick(e,null,a>0?a-1:void 0,{isPrevious:!0})}),f(b(t),"handleNextPage",function(e){var a=t.state.selected,n=t.props.pageCount;t.handleClick(e,null,a<n-1?a+1:void 0,{isNext:!0})}),f(b(t),"handlePageSelected",function(e,a){if(t.state.selected===e)return t.callActiveCallback(e),void t.handleClick(a,null,void 0,{isActive:!0});t.handleClick(a,null,e)}),f(b(t),"handlePageChange",function(e){t.state.selected!==e&&(t.setState({selected:e}),t.callCallback(e))}),f(b(t),"getEventListener",function(e){return f({},t.props.eventListener,e)}),f(b(t),"handleClick",function(e,a,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=r.isPrevious,i=r.isNext,l=r.isBreak,o=r.isActive;e.preventDefault?e.preventDefault():e.returnValue=!1;var c=t.state.selected,p=t.props.onClick,u=n;if(p){var d=p({index:a,selected:c,nextSelectedPage:n,event:e,isPrevious:void 0!==s&&s,isNext:void 0!==i&&i,isBreak:void 0!==l&&l,isActive:void 0!==o&&o});if(!1===d)return;Number.isInteger(d)&&(u=d)}void 0!==u&&t.handlePageChange(u)}),f(b(t),"handleBreakClick",function(e,a){var n=t.state.selected;t.handleClick(a,e,n<e?t.getForwardJump():t.getBackwardJump(),{isBreak:!0})}),f(b(t),"callCallback",function(e){void 0!==t.props.onPageChange&&"function"==typeof t.props.onPageChange&&t.props.onPageChange({selected:e})}),f(b(t),"callActiveCallback",function(e){void 0!==t.props.onPageActive&&"function"==typeof t.props.onPageActive&&t.props.onPageActive({selected:e})}),f(b(t),"getElementPageRel",function(e){var a=t.state.selected,n=t.props,r=n.nextPageRel,s=n.prevPageRel,i=n.selectedPageRel;return a-1===e?s:a===e?i:a+1===e?r:void 0}),f(b(t),"pagination",function(){var e=[],n=t.props,r=n.pageRangeDisplayed,s=n.pageCount,i=n.marginPagesDisplayed,l=n.breakLabel,o=n.breakClassName,p=n.breakLinkClassName,u=n.breakAriaLabels,d=t.state.selected;if(s<=r)for(var g=0;g<s;g++)e.push(t.getPageElement(g));else{var b=r/2,h=r-b;d>s-r/2?b=r-(h=s-d):d<r/2&&(h=r-(b=d));var f,v,m=function(e){return t.getPageElement(e)},C=[];for(f=0;f<s;f++){var x=f+1;if(x<=i)C.push({type:"page",index:f,display:m(f)});else if(x>s-i)C.push({type:"page",index:f,display:m(f)});else if(f>=d-b&&f<=d+(0===d&&r>1?h-1:h))C.push({type:"page",index:f,display:m(f)});else if(l&&C.length>0&&C[C.length-1].display!==v&&(r>0||i>0)){var y=f<d?u.backward:u.forward;v=a().createElement(c,{key:f,breakAriaLabel:y,breakLabel:l,breakClassName:o,breakLinkClassName:p,breakHandler:t.handleBreakClick.bind(null,f),getEventListener:t.getEventListener}),C.push({type:"break",index:f,display:v})}}C.forEach(function(a,t){var n=a;"break"===a.type&&C[t-1]&&"page"===C[t-1].type&&C[t+1]&&"page"===C[t+1].type&&C[t+1].index-C[t-1].index<=2&&(n={type:"page",index:a.index,display:m(a.index)}),e.push(n.display)})}return e}),void 0!==e.initialPage&&void 0!==e.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(e.initialPage,") and forcePage (").concat(e.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),n=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,t.state={selected:n},t}return t=[{key:"componentDidMount",value:function(){var e=this.props,a=e.initialPage,t=e.disableInitialCallback,n=e.extraAriaContext,r=e.pageCount,s=e.forcePage;void 0===a||t||this.callCallback(a),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(r)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(r,"). Did you forget a Math.ceil()?")),void 0!==a&&a>r-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(a," > ").concat(r-1,").")),void 0!==s&&s>r-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(s," > ").concat(r-1,")."))}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(e.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var e=this.state.selected,a=this.props,t=a.pageCount,n=e+a.pageRangeDisplayed;return n>=t?t-1:n}},{key:"getBackwardJump",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:"getElementHref",value:function(e){var a=this.props,t=a.hrefBuilder,n=a.pageCount,r=a.hrefAllControls;if(t)return r||e>=0&&e<n?t(e+1,n,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(e){var a=e===this.state.selected;if(this.props.ariaLabelBuilder&&e>=0&&e<this.props.pageCount){var t=this.props.ariaLabelBuilder(e+1,a);return this.props.extraAriaContext&&!a&&(t=t+" "+this.props.extraAriaContext),t}}},{key:"getPageElement",value:function(e){var t=this.state.selected,n=this.props,r=n.pageClassName,s=n.pageLinkClassName,i=n.activeClassName,o=n.activeLinkClassName,c=n.extraAriaContext,p=n.pageLabelBuilder;return a().createElement(l,{key:e,pageSelectedHandler:this.handlePageSelected.bind(null,e),selected:t===e,rel:this.getElementPageRel(e),pageClassName:r,pageLinkClassName:s,activeClassName:i,activeLinkClassName:o,extraAriaContext:c,href:this.getElementHref(e),ariaLabel:this.ariaLabelBuilder(e),page:e+1,pageLabelBuilder:p,getEventListener:this.getEventListener})}},{key:"render",value:function(){var e=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==e)return e?e(this.props):e;var t=this.props,n=t.disabledClassName,r=t.disabledLinkClassName,s=t.pageCount,i=t.className,l=t.containerClassName,o=t.previousLabel,c=t.previousClassName,u=t.previousLinkClassName,g=t.previousAriaLabel,b=t.prevRel,h=t.nextLabel,f=t.nextClassName,v=t.nextLinkClassName,m=t.nextAriaLabel,C=t.nextRel,x=this.state.selected,y=0===x,P=x===s-1,k="".concat(p(c)).concat(y?" ".concat(p(n)):""),L="".concat(p(f)).concat(P?" ".concat(p(n)):""),N="".concat(p(u)).concat(y?" ".concat(p(r)):""),j="".concat(p(v)).concat(P?" ".concat(p(r)):"");return a().createElement("ul",{className:i||l,role:"navigation","aria-label":"Pagination"},a().createElement("li",{className:k},a().createElement("a",d({className:N,href:this.getElementHref(x-1),tabIndex:y?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":y?"true":"false","aria-label":g,rel:b},this.getEventListener(this.handlePreviousPage)),o)),this.pagination(),a().createElement("li",{className:L},a().createElement("a",d({className:j,href:this.getElementHref(x+1),tabIndex:P?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":P?"true":"false","aria-label":m,rel:C},this.getEventListener(this.handleNextPage)),h)))}}],function(e,a){for(var t=0;t<a.length;t++){var n=a[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(s.prototype,t),Object.defineProperty(s,"prototype",{writable:!1}),s}(e.Component);f(v,"propTypes",{pageCount:s().number.isRequired,pageRangeDisplayed:s().number,marginPagesDisplayed:s().number,previousLabel:s().node,previousAriaLabel:s().string,prevPageRel:s().string,prevRel:s().string,nextLabel:s().node,nextAriaLabel:s().string,nextPageRel:s().string,nextRel:s().string,breakLabel:s().oneOfType([s().string,s().node]),breakAriaLabels:s().shape({forward:s().string,backward:s().string}),hrefBuilder:s().func,hrefAllControls:s().bool,onPageChange:s().func,onPageActive:s().func,onClick:s().func,initialPage:s().number,forcePage:s().number,disableInitialCallback:s().bool,containerClassName:s().string,className:s().string,pageClassName:s().string,pageLinkClassName:s().string,pageLabelBuilder:s().func,activeClassName:s().string,activeLinkClassName:s().string,previousClassName:s().string,nextClassName:s().string,previousLinkClassName:s().string,nextLinkClassName:s().string,disabledClassName:s().string,disabledLinkClassName:s().string,breakClassName:s().string,breakLinkClassName:s().string,extraAriaContext:s().string,ariaLabelBuilder:s().func,eventListener:s().string,renderOnZeroPageCount:s().func,selectedPageRel:s().string}),f(v,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(e){return e},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});let m=v})(),r})(),e.exports=r(t(2784))},44475:function(e,a,t){"use strict";t.r(a),t.d(a,{QueuePage:()=>H});var n=t("52322"),r=t("66485"),s=t("2784"),i=t("59382"),l=t("6294"),o=t("37492"),c=t.n(o),p=t("7267");let u={pagination:"pagination-Jxux8S",isActive:"isActive-mi6SmB",disabled:"disabled-AC9vJS"};var d=t("4930");let g=()=>(0,n.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512",children:(0,n.jsx)("path",{d:"M24.707 38.101L4.908 57.899c-4.686 4.686-4.686 12.284 0 16.971L185.607 256 4.908 437.13c-4.686 4.686-4.686 12.284 0 16.971L24.707 473.9c4.686 4.686 12.284 4.686 16.971 0l209.414-209.414c4.686-4.686 4.686-12.284 0-16.971L41.678 38.101c-4.687-4.687-12.285-4.687-16.971 0z"})});class b extends s.PureComponent{render(){let{pageCount:e}=this.props;if(e<=1)return null;let{location:{search:a}}=this.props,t=(Number(new URLSearchParams(a).get("page"))||1)-1;return(0,n.jsx)(c(),{forcePage:t,previousLabel:(0,n.jsx)(d.Y,{}),nextLabel:(0,n.jsx)(g,{}),breakLabel:"...",breakClassName:u.breakMe,pageCount:e,marginPagesDisplayed:2,pageRangeDisplayed:3,onPageChange:this.handlePageChange,containerClassName:u.pagination,activeClassName:u.isActive,disabledClassName:u.disabled,hrefBuilder:this.hrefBuilder})}handlePageChange(e){let{selected:a}=e,{location:{search:t,pathname:n},history:r}=this.props,s=new URLSearchParams(t);a>0?s.set("page",`${a+1}`):s.delete("page"),s.sort(),r.push({pathname:n,search:s.toString()})}hrefBuilder(e){let{location:{search:a}}=this.props,t=new URLSearchParams(a);return e>0&&(t.set("page",`${e}`),t.sort()),t.toString()}constructor(e){super(e),this.hrefBuilder=this.hrefBuilder.bind(this),this.handlePageChange=this.handlePageChange.bind(this)}}let h=(0,p.EN)(b);var f=t("47549"),v=t("25156"),m=t("17500"),C=t("2054");let x={queueActions:"queueActions-dnGfku",button:"button-nYphDd"},y=[r.n.failed,r.n.delayed,r.n.completed],P=e=>y.includes(e),k=e=>{var a,t,s;let{status:l,actions:o,queue:c,allowRetries:p}=e,{t:u}=(0,i.$G)();if(!P(l))return null;return(0,n.jsxs)("ul",{className:x.queueActions,children:[(a=l,[r.n.failed,r.n.completed].includes(a)&&p&&(0,n.jsx)("li",{children:(0,n.jsxs)(f.z,{onClick:o.retryAll(c.name,l),className:x.button,children:[(0,n.jsx)(m.O,{}),u("QUEUE.ACTIONS.RETRY_ALL")]})})),(t=l,[r.n.delayed].includes(t)&&(0,n.jsx)("li",{children:(0,n.jsxs)(f.z,{onClick:o.promoteAll(c.name),className:x.button,children:[(0,n.jsx)(v.m,{}),u("QUEUE.ACTIONS.PROMOTE_ALL")]})})),(s=l,[r.n.failed,r.n.delayed,r.n.completed].includes(s)&&(0,n.jsx)("li",{children:(0,n.jsxs)(f.z,{onClick:o.cleanAll(c.name,l),className:x.button,children:[(0,n.jsx)(C.X,{}),u("QUEUE.ACTIONS.CLEAN_ALL")]})}))]})};var L=t("38807"),N=t("29368");let j=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.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"})}),E=()=>(0,n.jsx)("svg",{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192 512",children:(0,n.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"})});var O=t("34372"),w=t("74154");let A="trigger-GNtOnV",R=e=>{let{queue:a,actions:t}=e,{t:r}=(0,i.$G)();return(0,n.jsxs)(L.fC,{children:[(0,n.jsx)(L.xz,{asChild:!0,children:(0,n.jsx)(f.z,{className:A,children:(0,n.jsx)(E,{})})}),(0,n.jsx)(L.Uv,{children:(0,n.jsxs)(N.N,{align:"end",children:[(0,n.jsxs)(L.ck,{onSelect:t.addJob,children:[(0,n.jsx)(j,{}),r("QUEUE.ACTIONS.ADD_JOB")]}),(0,n.jsx)(L.ck,{onSelect:a.isPaused?t.resumeQueue(a.name):t.pauseQueue(a.name),children:a.isPaused?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w.o,{}),r("QUEUE.ACTIONS.RESUME")]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(O.f,{}),r("QUEUE.ACTIONS.PAUSE")]})}),(0,n.jsxs)(L.ck,{onSelect:t.emptyQueue(a.name),children:[(0,n.jsx)(C.X,{}),r("QUEUE.ACTIONS.EMPTY")]})]})})]})};var S=t("47933"),T=t("34620");let B={statusMenu:"statusMenu-MKEeK1",active:"active-doMaqb",badge:"badge-IioYbb"},U=e=>{let{queue:a,children:t}=e,{t:r}=(0,i.$G)();return(0,n.jsxs)("div",{className:B.statusMenu,children:[a.statuses.map(e=>{let t="latest"===e,s=r(`QUEUE.STATUS.${e.toUpperCase()}`).toLocaleUpperCase();return(0,n.jsxs)(S.OL,{to:T.O.queuePage(a.name,{[a.name]:e}),activeClassName:B.active,isActive:(a,n)=>{let{search:r}=n,s=new URLSearchParams(r);return s.get("status")===e||t&&null===s.get("status")},children:[(0,n.jsx)("span",{title:s,children:s}),a.counts[e]>0&&(0,n.jsx)("span",{className:B.badge,children:a.counts[e]})]},`${a.name}-${e}`)}),!!t&&(0,n.jsx)("div",{children:t})]})};var _=t("15927"),D=t("19392"),J=t("59789"),M=t("12826"),I=t("66868"),q=t("11489");let z=s.lazy(()=>Promise.all([t.e("20306"),t.e("81191")]).then(t.bind(t,31250)).then(e=>{let{AddJobModal:a}=e;return{default:a}})),Q=s.lazy(()=>Promise.all([t.e("20306"),t.e("87586")]).then(t.bind(t,15106)).then(e=>{let{UpdateJobDataModal:a}=e;return{default:a}})),H=()=>{let{t:e}=(0,i.$G)(),a=(0,q.U)(),{actions:t}=(0,I.y)(),{actions:o}=(0,J.t)(),c=(0,D.O)(),p=(0,M.d)(),[u,d]=s.useState(null);if(t.pollQueues(),!c)return(0,n.jsx)("section",{children:e("QUEUE.NOT_FOUND")});let g=a[c.name],b=g===r.n.latest;return(0,n.jsxs)("section",{children:[(0,n.jsx)(_.M,{actions:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{children:c.jobs.length>0&&!c.readOnlyMode&&(0,n.jsx)(k,{queue:c,actions:t,status:a[c.name],allowRetries:("failed"==a[c.name]||c.allowCompletedRetries)&&c.allowRetries})}),(0,n.jsx)(h,{pageCount:c.pagination.pageCount})]}),children:(0,n.jsx)(U,{queue:c,children:!c.readOnlyMode&&(0,n.jsx)(R,{queue:c,actions:{...t,addJob:()=>p.open("addJob")}})})}),c.jobs.map(e=>(0,n.jsx)(l.t,{job:e,jobUrl:T.O.jobPage(c.name,`${e.id}`,a),status:b&&e.isFailed?r.n.failed:g,actions:{cleanJob:o.cleanJob(c.name)(e),promoteJob:o.promoteJob(c.name)(e),retryJob:o.retryJob(c.name,g)(e),getJobLogs:o.getJobLogs(c.name)(e),updateJobData:()=>{d(e),p.open("updateJobData")},duplicateJob:()=>{d(e),p.open("addJob")}},readOnlyMode:null==c?void 0:c.readOnlyMode,allowRetries:(e.isFailed||c.allowCompletedRetries)&&c.allowRetries},e.id)),(0,n.jsxs)(s.Suspense,{fallback:null,children:[p.isMounted("addJob")&&(0,n.jsx)(z,{open:p.isOpen("addJob"),onClose:p.close("addJob"),job:u}),p.isMounted("updateJobData")&&!!u&&(0,n.jsx)(Q,{open:p.isOpen("updateJobData"),onClose:()=>{d(null),p.close("updateJobData")},job:u})]})]})}}}]);
1
+ (self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["4670"],{37492:function(e,a,t){var n,r;n=0,r=e=>(()=>{var a={703:(e,a,t)=>{"use strict";var n=t(414);function r(){}function s(){}s.resetWarningCache=r,e.exports=function(){function e(e,a,t,r,s,i){if(i!==n){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function a(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:a,element:e,elementType:e,instanceOf:a,node:e,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:s,resetWarningCache:r};return t.PropTypes=t,t}},697:(e,a,t)=>{e.exports=t(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:a=>{"use strict";a.exports=e}},t={};function n(e){var r=t[e];if(void 0!==r)return r.exports;var s=t[e]={exports:{}};return a[e](s,s.exports,n),s.exports}n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var t in a)n.o(a,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{default:()=>m});var e=n(98),a=n.n(e),t=n(697),s=n.n(t);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var l=function(e){var t=e.pageClassName,n=e.pageLinkClassName,r=e.page,s=e.selected,l=e.activeClassName,o=e.activeLinkClassName,c=e.getEventListener,p=e.pageSelectedHandler,u=e.href,d=e.extraAriaContext,g=e.pageLabelBuilder,b=e.rel,h=e.ariaLabel||"Page "+r+(d?" "+d:""),f=null;return s&&(f="page",h=e.ariaLabel||"Page "+r+" is your current page",t=void 0!==t?t+" "+l:l,void 0!==n?void 0!==o&&(n=n+" "+o):n=o),a().createElement("li",{className:t},a().createElement("a",i({rel:b,role:u?void 0:"button",className:n,href:u,tabIndex:s?"-1":"0","aria-label":h,"aria-current":f,onKeyPress:p},c(p)),g(r)))};l.propTypes={pageSelectedHandler:s().func.isRequired,selected:s().bool.isRequired,pageClassName:s().string,pageLinkClassName:s().string,activeClassName:s().string,activeLinkClassName:s().string,extraAriaContext:s().string,href:s().string,ariaLabel:s().string,page:s().number.isRequired,getEventListener:s().func.isRequired,pageLabelBuilder:s().func.isRequired,rel:s().string};function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var c=function(e){var t=e.breakLabel,n=e.breakAriaLabel,r=e.breakClassName,s=e.breakLinkClassName,i=e.breakHandler,l=e.getEventListener;return a().createElement("li",{className:r||"break"},a().createElement("a",o({className:s,role:"button",tabIndex:"0","aria-label":n,onKeyPress:i},l(i)),t))};c.propTypes={breakLabel:s().oneOfType([s().string,s().node]),breakAriaLabel:s().string,breakClassName:s().string,breakLinkClassName:s().string,breakHandler:s().func.isRequired,getEventListener:s().func.isRequired};function p(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!=e?e:a}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function g(e,a){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,a){return e.__proto__=a,e})(e,a)}function b(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}var v=function(e){!function(e,a){if("function"!=typeof a&&null!==a)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),a&&g(e,a)}(s,e);var t,n,r=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,a=h(s);return e=n?Reflect.construct(a,arguments,h(this).constructor):a.apply(this,arguments),function(e,a){if(a&&("object"===u(a)||"function"==typeof a))return a;if(void 0!==a)throw TypeError("Derived constructors may only return object or undefined");return b(e)}(this,e)});function s(e){var t,n;return function(e,a){if(!(e instanceof a))throw TypeError("Cannot call a class as a function")}(this,s),f(b(t=r.call(this,e)),"handlePreviousPage",function(e){var a=t.state.selected;t.handleClick(e,null,a>0?a-1:void 0,{isPrevious:!0})}),f(b(t),"handleNextPage",function(e){var a=t.state.selected,n=t.props.pageCount;t.handleClick(e,null,a<n-1?a+1:void 0,{isNext:!0})}),f(b(t),"handlePageSelected",function(e,a){if(t.state.selected===e)return t.callActiveCallback(e),void t.handleClick(a,null,void 0,{isActive:!0});t.handleClick(a,null,e)}),f(b(t),"handlePageChange",function(e){t.state.selected!==e&&(t.setState({selected:e}),t.callCallback(e))}),f(b(t),"getEventListener",function(e){return f({},t.props.eventListener,e)}),f(b(t),"handleClick",function(e,a,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=r.isPrevious,i=r.isNext,l=r.isBreak,o=r.isActive;e.preventDefault?e.preventDefault():e.returnValue=!1;var c=t.state.selected,p=t.props.onClick,u=n;if(p){var d=p({index:a,selected:c,nextSelectedPage:n,event:e,isPrevious:void 0!==s&&s,isNext:void 0!==i&&i,isBreak:void 0!==l&&l,isActive:void 0!==o&&o});if(!1===d)return;Number.isInteger(d)&&(u=d)}void 0!==u&&t.handlePageChange(u)}),f(b(t),"handleBreakClick",function(e,a){var n=t.state.selected;t.handleClick(a,e,n<e?t.getForwardJump():t.getBackwardJump(),{isBreak:!0})}),f(b(t),"callCallback",function(e){void 0!==t.props.onPageChange&&"function"==typeof t.props.onPageChange&&t.props.onPageChange({selected:e})}),f(b(t),"callActiveCallback",function(e){void 0!==t.props.onPageActive&&"function"==typeof t.props.onPageActive&&t.props.onPageActive({selected:e})}),f(b(t),"getElementPageRel",function(e){var a=t.state.selected,n=t.props,r=n.nextPageRel,s=n.prevPageRel,i=n.selectedPageRel;return a-1===e?s:a===e?i:a+1===e?r:void 0}),f(b(t),"pagination",function(){var e=[],n=t.props,r=n.pageRangeDisplayed,s=n.pageCount,i=n.marginPagesDisplayed,l=n.breakLabel,o=n.breakClassName,p=n.breakLinkClassName,u=n.breakAriaLabels,d=t.state.selected;if(s<=r)for(var g=0;g<s;g++)e.push(t.getPageElement(g));else{var b=r/2,h=r-b;d>s-r/2?b=r-(h=s-d):d<r/2&&(h=r-(b=d));var f,v,m=function(e){return t.getPageElement(e)},C=[];for(f=0;f<s;f++){var x=f+1;if(x<=i)C.push({type:"page",index:f,display:m(f)});else if(x>s-i)C.push({type:"page",index:f,display:m(f)});else if(f>=d-b&&f<=d+(0===d&&r>1?h-1:h))C.push({type:"page",index:f,display:m(f)});else if(l&&C.length>0&&C[C.length-1].display!==v&&(r>0||i>0)){var y=f<d?u.backward:u.forward;v=a().createElement(c,{key:f,breakAriaLabel:y,breakLabel:l,breakClassName:o,breakLinkClassName:p,breakHandler:t.handleBreakClick.bind(null,f),getEventListener:t.getEventListener}),C.push({type:"break",index:f,display:v})}}C.forEach(function(a,t){var n=a;"break"===a.type&&C[t-1]&&"page"===C[t-1].type&&C[t+1]&&"page"===C[t+1].type&&C[t+1].index-C[t-1].index<=2&&(n={type:"page",index:a.index,display:m(a.index)}),e.push(n.display)})}return e}),void 0!==e.initialPage&&void 0!==e.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(e.initialPage,") and forcePage (").concat(e.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),n=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,t.state={selected:n},t}return t=[{key:"componentDidMount",value:function(){var e=this.props,a=e.initialPage,t=e.disableInitialCallback,n=e.extraAriaContext,r=e.pageCount,s=e.forcePage;void 0===a||t||this.callCallback(a),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(r)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(r,"). Did you forget a Math.ceil()?")),void 0!==a&&a>r-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(a," > ").concat(r-1,").")),void 0!==s&&s>r-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(s," > ").concat(r-1,")."))}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(e.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var e=this.state.selected,a=this.props,t=a.pageCount,n=e+a.pageRangeDisplayed;return n>=t?t-1:n}},{key:"getBackwardJump",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:"getElementHref",value:function(e){var a=this.props,t=a.hrefBuilder,n=a.pageCount,r=a.hrefAllControls;if(t)return r||e>=0&&e<n?t(e+1,n,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(e){var a=e===this.state.selected;if(this.props.ariaLabelBuilder&&e>=0&&e<this.props.pageCount){var t=this.props.ariaLabelBuilder(e+1,a);return this.props.extraAriaContext&&!a&&(t=t+" "+this.props.extraAriaContext),t}}},{key:"getPageElement",value:function(e){var t=this.state.selected,n=this.props,r=n.pageClassName,s=n.pageLinkClassName,i=n.activeClassName,o=n.activeLinkClassName,c=n.extraAriaContext,p=n.pageLabelBuilder;return a().createElement(l,{key:e,pageSelectedHandler:this.handlePageSelected.bind(null,e),selected:t===e,rel:this.getElementPageRel(e),pageClassName:r,pageLinkClassName:s,activeClassName:i,activeLinkClassName:o,extraAriaContext:c,href:this.getElementHref(e),ariaLabel:this.ariaLabelBuilder(e),page:e+1,pageLabelBuilder:p,getEventListener:this.getEventListener})}},{key:"render",value:function(){var e=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==e)return e?e(this.props):e;var t=this.props,n=t.disabledClassName,r=t.disabledLinkClassName,s=t.pageCount,i=t.className,l=t.containerClassName,o=t.previousLabel,c=t.previousClassName,u=t.previousLinkClassName,g=t.previousAriaLabel,b=t.prevRel,h=t.nextLabel,f=t.nextClassName,v=t.nextLinkClassName,m=t.nextAriaLabel,C=t.nextRel,x=this.state.selected,y=0===x,P=x===s-1,k="".concat(p(c)).concat(y?" ".concat(p(n)):""),L="".concat(p(f)).concat(P?" ".concat(p(n)):""),N="".concat(p(u)).concat(y?" ".concat(p(r)):""),j="".concat(p(v)).concat(P?" ".concat(p(r)):"");return a().createElement("ul",{className:i||l,role:"navigation","aria-label":"Pagination"},a().createElement("li",{className:k},a().createElement("a",d({className:N,href:this.getElementHref(x-1),tabIndex:y?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":y?"true":"false","aria-label":g,rel:b},this.getEventListener(this.handlePreviousPage)),o)),this.pagination(),a().createElement("li",{className:L},a().createElement("a",d({className:j,href:this.getElementHref(x+1),tabIndex:P?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":P?"true":"false","aria-label":m,rel:C},this.getEventListener(this.handleNextPage)),h)))}}],function(e,a){for(var t=0;t<a.length;t++){var n=a[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(s.prototype,t),Object.defineProperty(s,"prototype",{writable:!1}),s}(e.Component);f(v,"propTypes",{pageCount:s().number.isRequired,pageRangeDisplayed:s().number,marginPagesDisplayed:s().number,previousLabel:s().node,previousAriaLabel:s().string,prevPageRel:s().string,prevRel:s().string,nextLabel:s().node,nextAriaLabel:s().string,nextPageRel:s().string,nextRel:s().string,breakLabel:s().oneOfType([s().string,s().node]),breakAriaLabels:s().shape({forward:s().string,backward:s().string}),hrefBuilder:s().func,hrefAllControls:s().bool,onPageChange:s().func,onPageActive:s().func,onClick:s().func,initialPage:s().number,forcePage:s().number,disableInitialCallback:s().bool,containerClassName:s().string,className:s().string,pageClassName:s().string,pageLinkClassName:s().string,pageLabelBuilder:s().func,activeClassName:s().string,activeLinkClassName:s().string,previousClassName:s().string,nextClassName:s().string,previousLinkClassName:s().string,nextLinkClassName:s().string,disabledClassName:s().string,disabledLinkClassName:s().string,breakClassName:s().string,breakLinkClassName:s().string,extraAriaContext:s().string,ariaLabelBuilder:s().func,eventListener:s().string,renderOnZeroPageCount:s().func,selectedPageRel:s().string}),f(v,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(e){return e},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});let m=v})(),r})(),e.exports=r(t(2784))},44475:function(e,a,t){"use strict";t.r(a),t.d(a,{QueuePage:()=>H});var n=t("52322"),r=t("66485"),s=t("2784"),i=t("59382"),l=t("6294"),o=t("37492"),c=t.n(o),p=t("7267");let u={pagination:"pagination-Jxux8S",isActive:"isActive-mi6SmB",disabled:"disabled-AC9vJS"};var d=t("4930");let g=()=>(0,n.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512",children:(0,n.jsx)("path",{d:"M24.707 38.101L4.908 57.899c-4.686 4.686-4.686 12.284 0 16.971L185.607 256 4.908 437.13c-4.686 4.686-4.686 12.284 0 16.971L24.707 473.9c4.686 4.686 12.284 4.686 16.971 0l209.414-209.414c4.686-4.686 4.686-12.284 0-16.971L41.678 38.101c-4.687-4.687-12.285-4.687-16.971 0z"})});class b extends s.PureComponent{render(){let{pageCount:e}=this.props;if(e<=1)return null;let{location:{search:a}}=this.props,t=(Number(new URLSearchParams(a).get("page"))||1)-1;return(0,n.jsx)(c(),{forcePage:t,previousLabel:(0,n.jsx)(d.Y,{}),nextLabel:(0,n.jsx)(g,{}),breakLabel:"...",breakClassName:u.breakMe,pageCount:e,marginPagesDisplayed:2,pageRangeDisplayed:3,onPageChange:this.handlePageChange,containerClassName:u.pagination,activeClassName:u.isActive,disabledClassName:u.disabled,hrefBuilder:this.hrefBuilder})}handlePageChange(e){let{selected:a}=e,{location:{search:t,pathname:n},history:r}=this.props,s=new URLSearchParams(t);a>0?s.set("page",`${a+1}`):s.delete("page"),s.sort(),r.push({pathname:n,search:s.toString()})}hrefBuilder(e){let{location:{search:a}}=this.props,t=new URLSearchParams(a);return e>0&&(t.set("page",`${e}`),t.sort()),t.toString()}constructor(e){super(e),this.hrefBuilder=this.hrefBuilder.bind(this),this.handlePageChange=this.handlePageChange.bind(this)}}let h=(0,p.EN)(b);var f=t("47549"),v=t("25156"),m=t("17500"),C=t("2054");let x={queueActions:"queueActions-dnGfku",button:"button-nYphDd"},y=[r.n.failed,r.n.delayed,r.n.completed],P=e=>y.includes(e),k=e=>{var a,t,s;let{status:l,actions:o,queue:c,allowRetries:p}=e,{t:u}=(0,i.$G)();if(!P(l))return null;return(0,n.jsxs)("ul",{className:x.queueActions,children:[(a=l,[r.n.failed,r.n.completed].includes(a)&&p&&(0,n.jsx)("li",{children:(0,n.jsxs)(f.z,{onClick:o.retryAll(c.name,l),className:x.button,children:[(0,n.jsx)(m.O,{}),u("QUEUE.ACTIONS.RETRY_ALL")]})})),(t=l,[r.n.delayed].includes(t)&&(0,n.jsx)("li",{children:(0,n.jsxs)(f.z,{onClick:o.promoteAll(c.name),className:x.button,children:[(0,n.jsx)(v.m,{}),u("QUEUE.ACTIONS.PROMOTE_ALL")]})})),(s=l,[r.n.failed,r.n.delayed,r.n.completed].includes(s)&&(0,n.jsx)("li",{children:(0,n.jsxs)(f.z,{onClick:o.cleanAll(c.name,l),className:x.button,children:[(0,n.jsx)(C.X,{}),u("QUEUE.ACTIONS.CLEAN_ALL")]})}))]})};var L=t("38807"),N=t("29368");let j=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.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"})}),E=()=>(0,n.jsx)("svg",{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192 512",children:(0,n.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"})});var O=t("34372"),w=t("74154");let A="trigger-GNtOnV",R=e=>{let{queue:a,actions:t}=e,{t:r}=(0,i.$G)();return(0,n.jsxs)(L.fC,{children:[(0,n.jsx)(L.xz,{asChild:!0,children:(0,n.jsx)(f.z,{className:A,children:(0,n.jsx)(E,{})})}),(0,n.jsx)(L.Uv,{children:(0,n.jsxs)(N.N,{align:"end",children:[(0,n.jsxs)(L.ck,{onSelect:t.addJob,children:[(0,n.jsx)(j,{}),r("QUEUE.ACTIONS.ADD_JOB")]}),(0,n.jsx)(L.ck,{onSelect:a.isPaused?t.resumeQueue(a.name):t.pauseQueue(a.name),children:a.isPaused?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w.o,{}),r("QUEUE.ACTIONS.RESUME")]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(O.f,{}),r("QUEUE.ACTIONS.PAUSE")]})}),(0,n.jsxs)(L.ck,{onSelect:t.emptyQueue(a.name),children:[(0,n.jsx)(C.X,{}),r("QUEUE.ACTIONS.EMPTY")]})]})})]})};var S=t("47933"),T=t("34620");let B={statusMenu:"statusMenu-MKEeK1",active:"active-doMaqb",badge:"badge-IioYbb"},U=e=>{let{queue:a,children:t}=e,{t:r}=(0,i.$G)();return(0,n.jsxs)("div",{className:B.statusMenu,children:[a.statuses.map(e=>{let t="latest"===e,s=r(`QUEUE.STATUS.${e.toUpperCase()}`).toLocaleUpperCase();return(0,n.jsxs)(S.OL,{to:T.O.queuePage(a.name,{[a.name]:e}),activeClassName:B.active,isActive:(a,n)=>{let{search:r}=n,s=new URLSearchParams(r);return s.get("status")===e||t&&null===s.get("status")},children:[(0,n.jsx)("span",{title:s,children:s}),a.counts[e]>0&&(0,n.jsx)("span",{className:B.badge,children:a.counts[e]})]},`${a.name}-${e}`)}),!!t&&(0,n.jsx)("div",{children:t})]})};var _=t("15927"),D=t("19392"),J=t("59789"),M=t("12826"),I=t("95095"),q=t("11489");let z=s.lazy(()=>Promise.all([t.e("20306"),t.e("81191")]).then(t.bind(t,31250)).then(e=>{let{AddJobModal:a}=e;return{default:a}})),Q=s.lazy(()=>Promise.all([t.e("20306"),t.e("87586")]).then(t.bind(t,15106)).then(e=>{let{UpdateJobDataModal:a}=e;return{default:a}})),H=()=>{let{t:e}=(0,i.$G)(),a=(0,q.U)(),{actions:t}=(0,I.y)(),{actions:o}=(0,J.t)(),c=(0,D.O)(),p=(0,M.d)(),[u,d]=s.useState(null);if(t.pollQueues(),!c)return(0,n.jsx)("section",{children:e("QUEUE.NOT_FOUND")});let g=a[c.name],b=g===r.n.latest;return(0,n.jsxs)("section",{children:[(0,n.jsx)(_.M,{actions:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{children:c.jobs.length>0&&!c.readOnlyMode&&(0,n.jsx)(k,{queue:c,actions:t,status:a[c.name],allowRetries:("failed"==a[c.name]||c.allowCompletedRetries)&&c.allowRetries})}),(0,n.jsx)(h,{pageCount:c.pagination.pageCount})]}),children:(0,n.jsx)(U,{queue:c,children:!c.readOnlyMode&&(0,n.jsx)(R,{queue:c,actions:{...t,addJob:()=>p.open("addJob")}})})}),c.jobs.map(e=>(0,n.jsx)(l.t,{job:e,jobUrl:T.O.jobPage(c.name,`${e.id}`,a),status:b&&e.isFailed?r.n.failed:g,actions:{cleanJob:o.cleanJob(c.name)(e),promoteJob:o.promoteJob(c.name)(e),retryJob:o.retryJob(c.name,g)(e),getJobLogs:o.getJobLogs(c.name)(e),updateJobData:()=>{d(e),p.open("updateJobData")},duplicateJob:()=>{d(e),p.open("addJob")}},readOnlyMode:null==c?void 0:c.readOnlyMode,allowRetries:(e.isFailed||c.allowCompletedRetries)&&c.allowRetries},e.id)),(0,n.jsxs)(s.Suspense,{fallback:null,children:[p.isMounted("addJob")&&(0,n.jsx)(z,{open:p.isOpen("addJob"),onClose:p.close("addJob"),job:u}),p.isMounted("updateJobData")&&!!u&&(0,n.jsx)(Q,{open:p.isOpen("updateJobData"),onClose:()=>{d(null),p.close("updateJobData")},job:u})]})]})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["56252"],{4725:function(t,e,n){n.d(e,{Z:function(){return r}});let r=n(96081).Z},18667:function(t,e,n){n.d(e,{j:function(){return o}});var r={};function o(){return r}},1645:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}},19785:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t,e){if(e.length<t)throw TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}},86544:function(t,e,n){n.d(e,{Z:function(){return a}});var r=n(66700),o=n(19785);function a(t,e){return(0,o.Z)(2,arguments),(0,r.Z)(t).getTime()-(0,r.Z)(e).getTime()}},77184:function(t,e,n){n.d(e,{Z:()=>m});var r=n("18667"),o=n("66700"),a=n("19785");function u(t,e){(0,a.Z)(2,arguments);var n=(0,o.Z)(t),r=(0,o.Z)(e),u=n.getTime()-r.getTime();return u<0?-1:u>0?1:u}var i=n("86544"),s={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},f=n("4725");function c(t,e){if(null==t)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var l=n("1645");function m(t,e,n){(0,a.Z)(2,arguments);var m,d,g,h,Z,v=(0,r.j)(),b=null!==(m=null!==(d=null==n?void 0:n.locale)&&void 0!==d?d:v.locale)&&void 0!==m?m:f.Z;if(!b.formatDistance)throw RangeError("locale must contain formatDistance property");var D=u(t,e);if(isNaN(D))throw RangeError("Invalid time value");var p=c(c({},n),{addSuffix:!!(null==n?void 0:n.addSuffix),comparison:D});D>0?(g=(0,o.Z)(e),h=(0,o.Z)(t)):(g=(0,o.Z)(t),h=(0,o.Z)(e));var M=function(t,e,n){(0,a.Z)(2,arguments);var r,o=(0,i.Z)(t,e)/1e3;return((r=null==n?void 0:n.roundingMethod)?s[r]:s.trunc)(o)}(h,g),y=Math.round((M-((0,l.Z)(h)-(0,l.Z)(g))/1e3)/60);if(y<2){if(null!=n&&n.includeSeconds){if(M<5)return b.formatDistance("lessThanXSeconds",5,p);if(M<10)return b.formatDistance("lessThanXSeconds",10,p);else if(M<20)return b.formatDistance("lessThanXSeconds",20,p);else if(M<40)return b.formatDistance("halfAMinute",0,p);else if(M<60)return b.formatDistance("lessThanXMinutes",1,p);else return b.formatDistance("xMinutes",1,p)}return 0===y?b.formatDistance("lessThanXMinutes",1,p):b.formatDistance("xMinutes",y,p)}if(y<45)return b.formatDistance("xMinutes",y,p);if(y<90)return b.formatDistance("aboutXHours",1,p);else if(y<1440){var T=Math.round(y/60);return b.formatDistance("aboutXHours",T,p)}else if(y<2520)return b.formatDistance("xDays",1,p);else if(y<43200){var S=Math.round(y/1440);return b.formatDistance("xDays",S,p)}else if(y<86400)return Z=Math.round(y/43200),b.formatDistance("aboutXMonths",Z,p);if((Z=function(t,e){(0,a.Z)(2,arguments);var n,r=(0,o.Z)(t),i=(0,o.Z)(e),s=u(r,i),f=Math.abs(function(t,e){(0,a.Z)(2,arguments);var n=(0,o.Z)(t),r=(0,o.Z)(e);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,i));if(f<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-s*f);var c=u(r,i)===-s;(function(t){(0,a.Z)(1,arguments);var e=(0,o.Z)(t);return(function(t){(0,a.Z)(1,arguments);var e=(0,o.Z)(t);return e.setHours(23,59,59,999),e})(e).getTime()===(function(t){(0,a.Z)(1,arguments);var e=(0,o.Z)(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e})(e).getTime()})((0,o.Z)(t))&&1===f&&1===u(t,i)&&(c=!1),n=s*(f-Number(c))}return 0===n?0:n}(h,g))<12){var w=Math.round(y/43200);return b.formatDistance("xMonths",w,p)}var X=Z%12,Y=Math.floor(Z/12);return X<3?b.formatDistance("aboutXYears",Y,p):X<9?b.formatDistance("overXYears",Y,p):b.formatDistance("almostXYears",Y+1,p)}},66700:function(t,e,n){n.d(e,{Z:function(){return a}});var r=n(19785);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){(0,r.Z)(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===o(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):(("string"==typeof t||"[object String]"===e)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["70021"],{66485:function(e,a,i){i.d(a,{n:function(){return t}});let t={latest:"latest",active:"active",waiting:"waiting",waitingChildren:"waiting-children",prioritized:"prioritized",completed:"completed",failed:"failed",delayed:"delayed",paused:"paused"}},93065:function(e,a,i){i.d(a,{Z:()=>r});var t=i("52322"),s=i("6277");i("2784");let l="card-xqyZlH",r=e=>{let{children:a,className:i}=e;return(0,t.jsx)("div",{className:(0,s.Z)(l,i),children:a})}},27916:function(e,a,i){i.r(a),i.d(a,{OverviewPage:()=>O});var t=i("52322");i("2784");var s=i("59382"),l=i("47933"),r=i("34620"),n=i("93065"),d=i("6277");function c(e){return e.split("-").map((e,a)=>a>0?`${e[0].toUpperCase()}${e.slice(1)}`:e).join("")}let u={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"},o=e=>{let{queue:a}=e,{t:i}=(0,s.$G)(),n=a.statuses.reduce((e,i)=>e+(a.counts[i]||0),0);return(0,t.jsxs)("div",{className:u.stats,children:[(0,t.jsx)("div",{className:u.progressBar,children:a.statuses.filter(e=>a.counts[e]>0).map(e=>{let s=a.counts[e];return(0,t.jsx)(l.rU,{to:r.O.queuePage(a.name,{[a.name]:e}),role:"progressbar",style:{width:`${s/n*100}%`},"aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":n,className:(0,d.Z)(u[c(e)],u.bar),title:i(`QUEUE.STATUS.${e.toUpperCase()}`),children:s},e)})}),(0,t.jsx)("div",{children:i("DASHBOARD.JOBS_COUNT",{count:n})})]})},p="queueCard-YHG6yO",v="link-xZr7yB",m=e=>{let{queue:a}=e;return(0,t.jsxs)(n.Z,{className:p,children:[(0,t.jsx)("div",{children:(0,t.jsx)(l.OL,{to:r.O.queuePage(a.name),className:v,children:a.name})}),(0,t.jsx)(o,{queue:a})]})};var g=i("66485");let h=[g.n.active,g.n.waiting,g.n.waitingChildren,g.n.prioritized,g.n.completed,g.n.failed,g.n.delayed,g.n.paused],j={legend:"legend-dQr9_P",active:"active-XAIIq_",waiting:"waiting-_PMvwD",waitingChildren:"waitingChildren-IOCmW6",prioritized:"prioritized-fjvq3d",failed:"failed-vDGeD0",completed:"completed-vKG3Gj",delayed:"delayed-sJhMjD",paused:"paused-Fn6oB3"};var x=i("42941");let w=()=>{let{t:e}=(0,s.$G)(),a=(0,x.a)();return(0,t.jsx)("ul",{className:j.legend,children:h.map(i=>{let s=e(`QUEUE.STATUS.${i.toUpperCase()}`).toLocaleUpperCase(),n=a.get("status")===i;return(0,t.jsx)("li",{className:j[c(i)],children:(0,t.jsx)(l.OL,{to:r.O.dashboardPage(n?void 0:i),activeClassName:j.active,isActive:()=>n,children:(0,t.jsx)("span",{title:s,children:s})})},i)})})};var C=i("95095");let f={overview:"overview-zcxjH0",message:"message-FeVnqw"},O=()=>{let{t:e}=(0,s.$G)(),{actions:a,queues:i}=(0,C.y)(),n=(0,x.a)();a.pollQueues();let d=n.get("status"),c=(null==i?void 0:i.filter(e=>!d||e.counts[d]>0))||[];return(0,t.jsxs)("section",{children:[(0,t.jsx)(w,{}),c.length>0&&(0,t.jsx)("ul",{className:f.overview,children:c.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(m,{queue:e})},e.name))}),0===c.length&&!!d&&(0,t.jsx)("div",{className:f.message,children:(0,t.jsx)(s.cC,{t:e,i18nKey:"DASHBOARD.NO_FILTERED_MESSAGE",values:{status:e(`QUEUE.STATUS.${d.toUpperCase()}`)},components:{lnk:(0,t.jsx)(l.OL,{to:r.O.dashboardPage()})}})})]})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["81191"],{31250:function(e,t,o){o.r(t),o.d(t,{AddJobModal:()=>h});var i=o("52322"),r=o("2784"),n=o("59382"),a=o("19392"),s=o("66868"),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.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"},"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"},"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"}]},"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"},"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.","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":{"additionalProperties":false,"properties":{"id":{"type":"string"},"queue":{"description":"It includes the prefix, the namespace separator :, and queue name.","type":"string"}},"required":["id","queue"],"type":"object"},"prevMillis":{"description":"Internal property used by repeatable jobs.","type":"number"},"priority":{"description":"Ranges from 1 (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."},"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."},"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"},"timestamp":{"description":"Timestamp when the job was created.","type":"number"}},"type":"object"},"KeepJobs":{"additionalProperties":false,"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.","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"},"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 every settings)","type":"boolean"},"jobId":{"type":"string"},"limit":{"description":"Number of times the job should repeat at max.","type":"number"},"nthDayOfWeek":{"type":"number"},"offset":{"type":"number"},"pattern":{"description":"A repeat pattern","type":"string"},"prevMillis":{"type":"number"},"startDate":{"$ref":"#/definitions/DateType"},"tz":{"type":"string"},"utc":{"type":"boolean"}},"type":"object"}}}'),l=o("47549"),c=o("39278"),u=o("4296"),b=o("64216"),f=o("99967");let m={bull:p,bullmq:d},h=e=>{let{open:t,onClose:o,job:p}=e,{queues:d,actions:h}=(0,s.y)(),y=(0,a.O)(),[g,j]=(0,r.useState)(y),{t:v}=(0,n.$G)();if(!d||!y||!g)return null;let k=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 h.addJob(t.queueName,t.jobName||"__default__",t.jobData,t.jobOptions)(),o()};return(0,i.jsx)(f.u,{width:"small",open:t,onClose:o,title:v("ADD_JOB.TITLE",{context:p?"duplicate":void 0}),actionButton:(0,i.jsx)(l.z,{type:"submit",theme:"primary",form:"add-job-form",children:v(`ADD_JOB.${p?"DUPLICATE":"ADD"}`)}),children:(0,i.jsxs)("form",{id:"add-job-form",onSubmit:k,children:[(0,i.jsx)(b.m,{label:v("ADD_JOB.QUEUE_NAME"),id:"queue-name",options:(d||[]).map(e=>({text:e.name,value:e.name})),name:"queueName",value:g.name||"",onChange:e=>j(d.find(t=>t.name===e.target.value))}),(0,i.jsx)(c.U,{label:v("ADD_JOB.JOB_NAME"),id:"job-name",name:"jobName",defaultValue:null==p?void 0:p.name,placeholder:"__default__"}),(0,i.jsx)(u.$,{label:v("ADD_JOB.JOB_DATA"),id:"job-data",name:"jobData",value:null==p?void 0:p.data}),(0,i.jsx)(u.$,{label:v("ADD_JOB.JOB_OPTIONS"),id:"job-options",name:"jobOptions",schema:m[g.type],value:null==p?void 0:p.opts})]})})}},4296:function(e,t,o){o.d(t,{$:()=>j});var i=o("52322"),r=o("2784"),n=o("83582"),a=o("66203"),s=o("85237"),p=o("77730"),d=o("8954"),l=o("76621"),c=o("42367"),u=o("65569");let b=s.Qf.define([{tag:c.pJ.atom,color:"var(--hl-keyword)"},{tag:c.pJ.keyword,color:"var(--hl-keyword)"},{tag:c.pJ.bool,color:"var(--hl-keyword)"},{tag:c.pJ.string,color:"var(--hl-string)"},{tag:c.pJ.number,color:"var(--hl-number)"},{tag:c.pJ.brace,color:"var(--accent-color-d1)"},{tag:c.pJ.punctuation,color:"var(--accent-color-d1)"},{tag:c.pJ.propertyName,color:"var(--hl-type)"}]),f=l.tk.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.v5)({class:"CodeMirror-lint-markers"}),(0,s.n$)(),(0,l.HQ)(),(0,n.vQ)(),(0,a.m8)(),(0,n.ys)(),(0,l.Eu)(),(0,p.Q2)(),(0,s.nY)(),(0,l.Uw)(),(0,s.mi)(),l.$f.of([...n.GA,...a.wQ,...a.f$,...s.e7,...n.B1,...p.Fv]),l.tk.lineWrapping,d.yy.tabSize.of(2),(0,s.nF)(b),f],h=d.q6.define(),y=e=>{let{doc:t,schema:o,...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.tk.updateListener.of(e=>{if(!s.current)return;let t=(0,p.KS)(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()}}),i=d.yy.create({doc:JSON.stringify(t,null,2),extensions:[m,e,(0,u.fB)(o||{})]}),r=new l.tk({state:i,parent:a.current});return b(r),()=>r.destroy()},[]),(0,r.useEffect)(()=>{c&&(0,u.ov)(c,o||{})},o?[o]:[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:a}),(0,i.jsx)("input",{type:"hidden",ref:s,...n})]})};var g=o("37354");let j=e=>{let{label:t,id:o,value:r,...n}=e;return(0,i.jsx)(g.g,{label:t,id:o,children:(0,i.jsx)(y,{doc:r||{},id:o,...n})})}},64216:function(e,t,o){o.d(t,{m:function(){return n}});var i=o(52322);o(2784);var r=o(37354);let n=e=>{let{label:t,id:o,options:n,...a}=e;return(0,i.jsx)(r.g,{label:t,id:o,children:(0,i.jsx)("select",{id:o,...a,children:n.map(e=>(0,i.jsx)("option",{value:e.value,children:e.text},e.value))})})}},99967:function(e,t,o){o.d(t,{u:function(){return d}});var i=o(52322),r=o(78364),n=o(6277);o(2784);var a=o(59382),s=o(47549),p=o(13871);let d=e=>{let{open:t,title:o,onClose:d,children:l,width:c,actionButton:u}=e,{t:b}=(0,a.$G)();return(0,i.jsx)(r.fC,{open:t,modal:!0,onOpenChange:e=>{!e&&d()},children:(0,i.jsxs)(r.h_,{children:[(0,i.jsx)(r.aV,{className:p.Z.overlay}),(0,i.jsx)(r.VY,{className:p.Z.contentWrapper,children:(0,i.jsxs)("div",{className:(0,n.Z)(p.Z.content,p.Z[c||""]),children:[!!o&&(0,i.jsx)(r.Dx,{children:o}),(0,i.jsx)(r.dk,{asChild:!0,children:(0,i.jsx)("div",{className:p.Z.description,children:l})}),(0,i.jsxs)("div",{className:p.Z.actions,children:[u,(0,i.jsx)(r.x8,{asChild:!0,children:(0,i.jsx)(s.z,{theme:"basic",children:b("MODAL.CLOSE_BTN")})})]})]})})]})})}}}]);
1
+ "use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["81191"],{31250:function(e,t,o){o.r(t),o.d(t,{AddJobModal:()=>h});var i=o("52322"),r=o("2784"),n=o("59382"),a=o("19392"),s=o("95095"),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.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"},"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"},"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"}]},"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"},"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.","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":{"additionalProperties":false,"properties":{"id":{"type":"string"},"queue":{"description":"It includes the prefix, the namespace separator :, and queue name.","type":"string"}},"required":["id","queue"],"type":"object"},"prevMillis":{"description":"Internal property used by repeatable jobs.","type":"number"},"priority":{"description":"Ranges from 1 (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."},"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."},"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"},"timestamp":{"description":"Timestamp when the job was created.","type":"number"}},"type":"object"},"KeepJobs":{"additionalProperties":false,"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.","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"},"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 every settings)","type":"boolean"},"jobId":{"type":"string"},"limit":{"description":"Number of times the job should repeat at max.","type":"number"},"nthDayOfWeek":{"type":"number"},"offset":{"type":"number"},"pattern":{"description":"A repeat pattern","type":"string"},"prevMillis":{"type":"number"},"startDate":{"$ref":"#/definitions/DateType"},"tz":{"type":"string"},"utc":{"type":"boolean"}},"type":"object"}}}'),l=o("47549"),c=o("39278"),u=o("4296"),b=o("64216"),f=o("99967");let m={bull:p,bullmq:d},h=e=>{let{open:t,onClose:o,job:p}=e,{queues:d,actions:h}=(0,s.y)(),y=(0,a.O)(),[g,j]=(0,r.useState)(y),{t:v}=(0,n.$G)();if(!d||!y||!g)return null;let k=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 h.addJob(t.queueName,t.jobName||"__default__",t.jobData,t.jobOptions)(),o()};return(0,i.jsx)(f.u,{width:"small",open:t,onClose:o,title:v("ADD_JOB.TITLE",{context:p?"duplicate":void 0}),actionButton:(0,i.jsx)(l.z,{type:"submit",theme:"primary",form:"add-job-form",children:v(`ADD_JOB.${p?"DUPLICATE":"ADD"}`)}),children:(0,i.jsxs)("form",{id:"add-job-form",onSubmit:k,children:[(0,i.jsx)(b.m,{label:v("ADD_JOB.QUEUE_NAME"),id:"queue-name",options:(d||[]).map(e=>({text:e.name,value:e.name})),name:"queueName",value:g.name||"",onChange:e=>j(d.find(t=>t.name===e.target.value))}),(0,i.jsx)(c.U,{label:v("ADD_JOB.JOB_NAME"),id:"job-name",name:"jobName",defaultValue:null==p?void 0:p.name,placeholder:"__default__"}),(0,i.jsx)(u.$,{label:v("ADD_JOB.JOB_DATA"),id:"job-data",name:"jobData",value:null==p?void 0:p.data}),(0,i.jsx)(u.$,{label:v("ADD_JOB.JOB_OPTIONS"),id:"job-options",name:"jobOptions",schema:m[g.type],value:null==p?void 0:p.opts})]})})}},4296:function(e,t,o){o.d(t,{$:()=>j});var i=o("52322"),r=o("2784"),n=o("83582"),a=o("66203"),s=o("85237"),p=o("77730"),d=o("8954"),l=o("76621"),c=o("42367"),u=o("65569");let b=s.Qf.define([{tag:c.pJ.atom,color:"var(--hl-keyword)"},{tag:c.pJ.keyword,color:"var(--hl-keyword)"},{tag:c.pJ.bool,color:"var(--hl-keyword)"},{tag:c.pJ.string,color:"var(--hl-string)"},{tag:c.pJ.number,color:"var(--hl-number)"},{tag:c.pJ.brace,color:"var(--accent-color-d1)"},{tag:c.pJ.punctuation,color:"var(--accent-color-d1)"},{tag:c.pJ.propertyName,color:"var(--hl-type)"}]),f=l.tk.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.v5)({class:"CodeMirror-lint-markers"}),(0,s.n$)(),(0,l.HQ)(),(0,n.vQ)(),(0,a.m8)(),(0,n.ys)(),(0,l.Eu)(),(0,p.Q2)(),(0,s.nY)(),(0,l.Uw)(),(0,s.mi)(),l.$f.of([...n.GA,...a.wQ,...a.f$,...s.e7,...n.B1,...p.Fv]),l.tk.lineWrapping,d.yy.tabSize.of(2),(0,s.nF)(b),f],h=d.q6.define(),y=e=>{let{doc:t,schema:o,...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.tk.updateListener.of(e=>{if(!s.current)return;let t=(0,p.KS)(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()}}),i=d.yy.create({doc:JSON.stringify(t,null,2),extensions:[m,e,(0,u.fB)(o||{})]}),r=new l.tk({state:i,parent:a.current});return b(r),()=>r.destroy()},[]),(0,r.useEffect)(()=>{c&&(0,u.ov)(c,o||{})},o?[o]:[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:a}),(0,i.jsx)("input",{type:"hidden",ref:s,...n})]})};var g=o("37354");let j=e=>{let{label:t,id:o,value:r,...n}=e;return(0,i.jsx)(g.g,{label:t,id:o,children:(0,i.jsx)(y,{doc:r||{},id:o,...n})})}},64216:function(e,t,o){o.d(t,{m:function(){return n}});var i=o(52322);o(2784);var r=o(37354);let n=e=>{let{label:t,id:o,options:n,...a}=e;return(0,i.jsx)(r.g,{label:t,id:o,children:(0,i.jsx)("select",{id:o,...a,children:n.map(e=>(0,i.jsx)("option",{value:e.value,children:e.text},e.value))})})}},99967:function(e,t,o){o.d(t,{u:function(){return d}});var i=o(52322),r=o(78364),n=o(6277);o(2784);var a=o(59382),s=o(47549),p=o(13871);let d=e=>{let{open:t,title:o,onClose:d,children:l,width:c,actionButton:u}=e,{t:b}=(0,a.$G)();return(0,i.jsx)(r.fC,{open:t,modal:!0,onOpenChange:e=>{!e&&d()},children:(0,i.jsxs)(r.h_,{children:[(0,i.jsx)(r.aV,{className:p.Z.overlay}),(0,i.jsx)(r.VY,{className:p.Z.contentWrapper,children:(0,i.jsxs)("div",{className:(0,n.Z)(p.Z.content,p.Z[c||""]),children:[!!o&&(0,i.jsx)(r.Dx,{children:o}),(0,i.jsx)(r.dk,{asChild:!0,children:(0,i.jsx)("div",{className:p.Z.description,children:l})}),(0,i.jsxs)("div",{className:p.Z.actions,children:[u,(0,i.jsx)(r.x8,{asChild:!0,children:(0,i.jsx)(s.z,{theme:"basic",children:b("MODAL.CLOSE_BTN")})})]})]})})]})})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["87586"],{4296:function(e,r,o){o.d(r,{$:()=>j});var t=o("52322"),a=o("2784"),n=o("83582"),l=o("66203"),i=o("85237"),s=o("77730"),d=o("8954"),c=o("76621"),u=o("42367"),p=o("65569");let b=i.Qf.define([{tag:u.pJ.atom,color:"var(--hl-keyword)"},{tag:u.pJ.keyword,color:"var(--hl-keyword)"},{tag:u.pJ.bool,color:"var(--hl-keyword)"},{tag:u.pJ.string,color:"var(--hl-string)"},{tag:u.pJ.number,color:"var(--hl-number)"},{tag:u.pJ.brace,color:"var(--accent-color-d1)"},{tag:u.pJ.punctuation,color:"var(--accent-color-d1)"},{tag:u.pJ.propertyName,color:"var(--hl-type)"}]),m=c.tk.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"}}),v=[(0,c.v5)({class:"CodeMirror-lint-markers"}),(0,i.n$)(),(0,c.HQ)(),(0,n.vQ)(),(0,l.m8)(),(0,n.ys)(),(0,c.Eu)(),(0,s.Q2)(),(0,i.nY)(),(0,c.Uw)(),(0,i.mi)(),c.$f.of([...n.GA,...l.wQ,...l.f$,...i.e7,...n.B1,...s.Fv]),c.tk.lineWrapping,d.yy.tabSize.of(2),(0,i.nF)(b),m],f=d.q6.define(),h=e=>{let{doc:r,schema:o,...n}=e,l=(0,a.useRef)(null),i=(0,a.useRef)(null),[u,b]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=c.tk.updateListener.of(e=>{if(!i.current)return;let r=(0,s.KS)(e.state);if(e.docChanged||e.transactions.some(e=>e.annotation(f))||0!==r)r>0&&(i.current.value="");else{let r=e.state.doc;i.current.value=r.toString()}}),t=d.yy.create({doc:JSON.stringify(r,null,2),extensions:[v,e,(0,p.fB)(o||{})]}),a=new c.tk({state:t,parent:l.current});return b(a),()=>a.destroy()},[]),(0,a.useEffect)(()=>{u&&(0,p.ov)(u,o||{})},o?[o]:[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:l}),(0,t.jsx)("input",{type:"hidden",ref:i,...n})]})};var g=o("37354");let j=e=>{let{label:r,id:o,value:a,...n}=e;return(0,t.jsx)(g.g,{label:r,id:o,children:(0,t.jsx)(h,{doc:a||{},id:o,...n})})}},99967:function(e,r,o){o.d(r,{u:function(){return d}});var t=o(52322),a=o(78364),n=o(6277);o(2784);var l=o(59382),i=o(47549),s=o(13871);let d=e=>{let{open:r,title:o,onClose:d,children:c,width:u,actionButton:p}=e,{t:b}=(0,l.$G)();return(0,t.jsx)(a.fC,{open:r,modal:!0,onOpenChange:e=>{!e&&d()},children:(0,t.jsxs)(a.h_,{children:[(0,t.jsx)(a.aV,{className:s.Z.overlay}),(0,t.jsx)(a.VY,{className:s.Z.contentWrapper,children:(0,t.jsxs)("div",{className:(0,n.Z)(s.Z.content,s.Z[u||""]),children:[!!o&&(0,t.jsx)(a.Dx,{children:o}),(0,t.jsx)(a.dk,{asChild:!0,children:(0,t.jsx)("div",{className:s.Z.description,children:c})}),(0,t.jsxs)("div",{className:s.Z.actions,children:[p,(0,t.jsx)(a.x8,{asChild:!0,children:(0,t.jsx)(i.z,{theme:"basic",children:b("MODAL.CLOSE_BTN")})})]})]})})]})})}},15106:function(e,r,o){o.r(r),o.d(r,{UpdateJobDataModal:function(){return u}});var t=o(52322);o(2784);var a=o(59382),n=o(19392),l=o(59789),i=o(66868),s=o(47549),d=o(4296),c=o(99967);let u=e=>{let{open:r,onClose:o,job:u}=e,{queues:p}=(0,i.y)(),{actions:b}=(0,l.t)(),m=(0,n.O)(),{t:v}=(0,a.$G)();if(!p||!m)return null;let f=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(m.name,u,r)(),o()}catch(e){console.error(e)}};return(0,t.jsx)(c.u,{width:"small",open:r,onClose:o,title:v("UPDATE_JOB_DATA.TITLE"),actionButton:(0,t.jsx)(s.z,{type:"submit",theme:"primary",form:"edit-job-data-form",children:v("UPDATE_JOB_DATA.UPDATE")}),children:(0,t.jsx)("form",{id:"edit-job-data-form",onSubmit:f,children:(0,t.jsx)(d.$,{label:v("UPDATE_JOB_DATA.JOB_DATA"),value:(null==u?void 0:u.data)||{},id:"job-data",name:"jobData"})})})}}}]);
1
+ "use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["87586"],{4296:function(e,r,o){o.d(r,{$:()=>j});var t=o("52322"),a=o("2784"),n=o("83582"),l=o("66203"),i=o("85237"),s=o("77730"),d=o("8954"),c=o("76621"),u=o("42367"),p=o("65569");let b=i.Qf.define([{tag:u.pJ.atom,color:"var(--hl-keyword)"},{tag:u.pJ.keyword,color:"var(--hl-keyword)"},{tag:u.pJ.bool,color:"var(--hl-keyword)"},{tag:u.pJ.string,color:"var(--hl-string)"},{tag:u.pJ.number,color:"var(--hl-number)"},{tag:u.pJ.brace,color:"var(--accent-color-d1)"},{tag:u.pJ.punctuation,color:"var(--accent-color-d1)"},{tag:u.pJ.propertyName,color:"var(--hl-type)"}]),m=c.tk.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"}}),v=[(0,c.v5)({class:"CodeMirror-lint-markers"}),(0,i.n$)(),(0,c.HQ)(),(0,n.vQ)(),(0,l.m8)(),(0,n.ys)(),(0,c.Eu)(),(0,s.Q2)(),(0,i.nY)(),(0,c.Uw)(),(0,i.mi)(),c.$f.of([...n.GA,...l.wQ,...l.f$,...i.e7,...n.B1,...s.Fv]),c.tk.lineWrapping,d.yy.tabSize.of(2),(0,i.nF)(b),m],f=d.q6.define(),h=e=>{let{doc:r,schema:o,...n}=e,l=(0,a.useRef)(null),i=(0,a.useRef)(null),[u,b]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=c.tk.updateListener.of(e=>{if(!i.current)return;let r=(0,s.KS)(e.state);if(e.docChanged||e.transactions.some(e=>e.annotation(f))||0!==r)r>0&&(i.current.value="");else{let r=e.state.doc;i.current.value=r.toString()}}),t=d.yy.create({doc:JSON.stringify(r,null,2),extensions:[v,e,(0,p.fB)(o||{})]}),a=new c.tk({state:t,parent:l.current});return b(a),()=>a.destroy()},[]),(0,a.useEffect)(()=>{u&&(0,p.ov)(u,o||{})},o?[o]:[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:l}),(0,t.jsx)("input",{type:"hidden",ref:i,...n})]})};var g=o("37354");let j=e=>{let{label:r,id:o,value:a,...n}=e;return(0,t.jsx)(g.g,{label:r,id:o,children:(0,t.jsx)(h,{doc:a||{},id:o,...n})})}},99967:function(e,r,o){o.d(r,{u:function(){return d}});var t=o(52322),a=o(78364),n=o(6277);o(2784);var l=o(59382),i=o(47549),s=o(13871);let d=e=>{let{open:r,title:o,onClose:d,children:c,width:u,actionButton:p}=e,{t:b}=(0,l.$G)();return(0,t.jsx)(a.fC,{open:r,modal:!0,onOpenChange:e=>{!e&&d()},children:(0,t.jsxs)(a.h_,{children:[(0,t.jsx)(a.aV,{className:s.Z.overlay}),(0,t.jsx)(a.VY,{className:s.Z.contentWrapper,children:(0,t.jsxs)("div",{className:(0,n.Z)(s.Z.content,s.Z[u||""]),children:[!!o&&(0,t.jsx)(a.Dx,{children:o}),(0,t.jsx)(a.dk,{asChild:!0,children:(0,t.jsx)("div",{className:s.Z.description,children:c})}),(0,t.jsxs)("div",{className:s.Z.actions,children:[p,(0,t.jsx)(a.x8,{asChild:!0,children:(0,t.jsx)(i.z,{theme:"basic",children:b("MODAL.CLOSE_BTN")})})]})]})})]})})}},15106:function(e,r,o){o.r(r),o.d(r,{UpdateJobDataModal:function(){return u}});var t=o(52322);o(2784);var a=o(59382),n=o(19392),l=o(59789),i=o(95095),s=o(47549),d=o(4296),c=o(99967);let u=e=>{let{open:r,onClose:o,job:u}=e,{queues:p}=(0,i.y)(),{actions:b}=(0,l.t)(),m=(0,n.O)(),{t:v}=(0,a.$G)();if(!p||!m)return null;let f=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(m.name,u,r)(),o()}catch(e){console.error(e)}};return(0,t.jsx)(c.u,{width:"small",open:r,onClose:o,title:v("UPDATE_JOB_DATA.TITLE"),actionButton:(0,t.jsx)(s.z,{type:"submit",theme:"primary",form:"edit-job-data-form",children:v("UPDATE_JOB_DATA.UPDATE")}),children:(0,t.jsx)("form",{id:"edit-job-data-form",onSubmit:f,children:(0,t.jsx)(d.$,{label:v("UPDATE_JOB_DATA.JOB_DATA"),value:(null==u?void 0:u.data)||{},id:"job-data",name:"jobData"})})})}}}]);