@bull-board/ui 6.3.2 → 6.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.ejs +1 -1
- package/dist/static/js/async/44067.bcfbd2a5.js +1 -0
- package/dist/static/js/async/{97241.0b48fc31.js → 97241.b8133980.js} +1 -1
- package/dist/static/js/{main.80e28f91.js → main.107861fd.js} +1 -1
- package/package.json +2 -2
- package/dist/static/js/async/44067.2dfc5100.js +0 -1
package/dist/index.ejs
CHANGED
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
<body>
|
|
14
14
|
<script id="__UI_CONFIG__" type="application/json"><%- uiConfig %></script>
|
|
15
15
|
<div id="root">Loading...</div>
|
|
16
|
-
<script defer src="static/js/lib-axios.5b2565a9.js"></script><script defer src="static/js/lib-react.067a7e0e.js"></script><script defer src="static/js/lib-router.73947a57.js"></script><script defer src="static/js/83544.ce1e4ea9.js"></script><script defer src="static/js/main.
|
|
16
|
+
<script defer src="static/js/lib-axios.5b2565a9.js"></script><script defer src="static/js/lib-react.067a7e0e.js"></script><script defer src="static/js/lib-router.73947a57.js"></script><script defer src="static/js/83544.ce1e4ea9.js"></script><script defer src="static/js/main.107861fd.js"></script></body>
|
|
17
17
|
</html>
|
|
@@ -0,0 +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)("");return(0,r.useEffect)(()=>{let e=!1;return L(l,t).then(t=>{!e&&i(t)}),()=>{e=!0}},[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"),I=l("74154");let E={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(`.${E.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:E.jobLogs,ref:p,children:[(0,n.jsxs)("ul",{className:E.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:E.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)(I.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:E.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:E.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),{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(66485),s=l(2784),r=l(20666);let i=["Data","Options","Logs","Error"];function a(e){let[t,l]=(0,s.useState)([]),{defaultJobTab:a}=(0,r.F)(),[c,o]=(0,s.useState)(t.find(e=>e===a)||t[0]);return(0,s.useEffect)(()=>{let t=i.filter(e=>"Error"!==e);l(t=e===n.n.failed?["Error",...t]:[...t,"Error"])},[e]),(0,s.useEffect)(()=>{t.includes(a)&&e!==n.n.failed?o(a):o(t[0])},[a,t]),{tabs:null==t?void 0:t.map(e=>({title:e,isActive:e===c,selectTab:()=>o(e)})),selectedTab:c}}},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
|
-
"use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["97241"],{66485:function(e,t,a){a.d(t,{n:function(){return l}});let l={latest:"latest",active:"active",waiting:"waiting",waitingChildren:"waiting-children",prioritized:"prioritized",completed:"completed",failed:"failed",delayed:"delayed",paused:"paused"}},37354:function(e,t,a){a.d(t,{g:()=>c});var l=a("52322"),n=a("6277");a("2784");let r="field-JbAWJt",i="inline-vXG0Za",c=e=>{let{label:t,id:a,inline:c,children:o}=e;return(0,l.jsxs)("div",{className:(0,n.Z)(r,{[i]:c}),children:[!!t&&!c&&(0,l.jsx)("label",{htmlFor:a,children:t}),o,!!t&&c&&(0,l.jsx)("label",{htmlFor:a,children:t})]})}},39278:function(e,t,a){a.d(t,{U:function(){return r}});var l=a(52322);a(2784);var n=a(37354);let r=e=>{let{label:t,id:a,...r}=e;return(0,l.jsx)(n.g,{label:t,id:a,children:(0,l.jsx)("input",{id:a,type:"text",...r})})}},64216:function(e,t,a){a.d(t,{m:function(){return r}});var l=a(52322);a(2784);var n=a(37354);let r=e=>{let{label:t,id:a,options:r,...i}=e;return(0,l.jsx)(n.g,{label:t,id:a,children:(0,l.jsx)("select",{id:a,...i,children:r.map(e=>(0,l.jsx)("option",{value:e.value,children:e.text},e.value))})})}},99967:function(e,t,a){a.d(t,{u:function(){return s}});var l=a(52322),n=a(78364),r=a(6277);a(2784);var i=a(59382),c=a(47549),o=a(13871);let s=e=>{let{open:t,title:a,onClose:s,children:d,width:u,actionButton:h}=e,{t:p}=(0,i.$G)();return(0,l.jsx)(n.fC,{open:t,modal:!0,onOpenChange:e=>{!e&&s()},children:(0,l.jsxs)(n.h_,{children:[(0,l.jsx)(n.aV,{className:o.Z.overlay}),(0,l.jsx)(n.VY,{className:o.Z.contentWrapper,children:(0,l.jsxs)("div",{className:(0,r.Z)(o.Z.content,o.Z[u||""]),children:[!!a&&(0,l.jsx)(n.Dx,{children:a}),(0,l.jsx)(n.dk,{asChild:!0,children:(0,l.jsx)("div",{className:o.Z.description,children:d})}),(0,l.jsxs)("div",{className:o.Z.actions,children:[h,(0,l.jsx)(n.x8,{asChild:!0,children:(0,l.jsx)(c.z,{theme:"basic",children:p("MODAL.CLOSE_BTN")})})]})]})})]})})}},22699:function(e,t,a){a.r(t),a.d(t,{SettingsModal:()=>P});var l=a("52322"),n=a("2784"),r=a("59382"),i=a("20666"),c=a("15006"),o=a("39278"),s=a("64216"),d=a("13714"),u=a("56137"),h=a("59656"),p=a("8210"),b=a("69153"),S=a("65534"),
|
|
1
|
+
"use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["97241"],{66485:function(e,t,a){a.d(t,{n:function(){return l}});let l={latest:"latest",active:"active",waiting:"waiting",waitingChildren:"waiting-children",prioritized:"prioritized",completed:"completed",failed:"failed",delayed:"delayed",paused:"paused"}},37354:function(e,t,a){a.d(t,{g:()=>c});var l=a("52322"),n=a("6277");a("2784");let r="field-JbAWJt",i="inline-vXG0Za",c=e=>{let{label:t,id:a,inline:c,children:o}=e;return(0,l.jsxs)("div",{className:(0,n.Z)(r,{[i]:c}),children:[!!t&&!c&&(0,l.jsx)("label",{htmlFor:a,children:t}),o,!!t&&c&&(0,l.jsx)("label",{htmlFor:a,children:t})]})}},39278:function(e,t,a){a.d(t,{U:function(){return r}});var l=a(52322);a(2784);var n=a(37354);let r=e=>{let{label:t,id:a,...r}=e;return(0,l.jsx)(n.g,{label:t,id:a,children:(0,l.jsx)("input",{id:a,type:"text",...r})})}},64216:function(e,t,a){a.d(t,{m:function(){return r}});var l=a(52322);a(2784);var n=a(37354);let r=e=>{let{label:t,id:a,options:r,...i}=e;return(0,l.jsx)(n.g,{label:t,id:a,children:(0,l.jsx)("select",{id:a,...i,children:r.map(e=>(0,l.jsx)("option",{value:e.value,children:e.text},e.value))})})}},99967:function(e,t,a){a.d(t,{u:function(){return s}});var l=a(52322),n=a(78364),r=a(6277);a(2784);var i=a(59382),c=a(47549),o=a(13871);let s=e=>{let{open:t,title:a,onClose:s,children:d,width:u,actionButton:h}=e,{t:p}=(0,i.$G)();return(0,l.jsx)(n.fC,{open:t,modal:!0,onOpenChange:e=>{!e&&s()},children:(0,l.jsxs)(n.h_,{children:[(0,l.jsx)(n.aV,{className:o.Z.overlay}),(0,l.jsx)(n.VY,{className:o.Z.contentWrapper,children:(0,l.jsxs)("div",{className:(0,r.Z)(o.Z.content,o.Z[u||""]),children:[!!a&&(0,l.jsx)(n.Dx,{children:a}),(0,l.jsx)(n.dk,{asChild:!0,children:(0,l.jsx)("div",{className:o.Z.description,children:d})}),(0,l.jsxs)("div",{className:o.Z.actions,children:[h,(0,l.jsx)(n.x8,{asChild:!0,children:(0,l.jsx)(c.z,{theme:"basic",children:p("MODAL.CLOSE_BTN")})})]})]})})]})})}},22699:function(e,t,a){a.r(t),a.d(t,{SettingsModal:()=>P});var l=a("52322"),n=a("2784"),r=a("59382"),i=a("20666"),c=a("15006"),o=a("39278"),s=a("64216"),d=a("13714"),u=a("56137"),h=a("59656"),p=a("8210"),b=a("69153"),S=a("65534"),f=a("3436");let v="Switch",[T,m]=(0,p.b)(v),[E,g]=T(v),x=(0,n.forwardRef)((e,t)=>{let{__scopeSwitch:a,name:l,checked:r,defaultChecked:i,required:c,disabled:o,value:s="on",onCheckedChange:p,...S}=e,[v,T]=(0,n.useState)(null),m=(0,h.e)(t,e=>T(e)),g=(0,n.useRef)(!1),x=!v||!!v.closest("form"),[C=!1,O]=(0,b.T)({prop:r,defaultProp:i,onChange:p});return(0,n.createElement)(E,{scope:a,checked:C,disabled:o},(0,n.createElement)(f.WV.button,(0,d.Z)({type:"button",role:"switch","aria-checked":C,"aria-required":c,"data-state":N(C),"data-disabled":o?"":void 0,disabled:o,value:s},S,{ref:m,onClick:(0,u.M)(e.onClick,e=>{O(e=>!e),x&&(g.current=e.isPropagationStopped(),!g.current&&e.stopPropagation())})})),x&&(0,n.createElement)(j,{control:v,bubbles:!g.current,name:l,value:s,checked:C,required:c,disabled:o,style:{transform:"translateX(-100%)"}}))}),C=(0,n.forwardRef)((e,t)=>{let{__scopeSwitch:a,...l}=e,r=g("SwitchThumb",a);return(0,n.createElement)(f.WV.span,(0,d.Z)({"data-state":N(r.checked),"data-disabled":r.disabled?"":void 0},l,{ref:t}))}),j=e=>{let{control:t,checked:a,bubbles:l=!0,...r}=e,i=(0,n.useRef)(null),c=function(e){let t=(0,n.useRef)({value:e,previous:e});return(0,n.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(a),o=(0,S.t)(t);return(0,n.useEffect)(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==a&&t){let n=new Event("click",{bubbles:l});t.call(e,a),e.dispatchEvent(n)}},[c,a,l]),(0,n.createElement)("input",(0,d.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:a},r,{tabIndex:-1,ref:i,style:{...e.style,...o,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function N(e){return e?"checked":"unchecked"}var O=a("37354");let k="switch-DOdNhn",I="thumb-tvm2sT",_=e=>{let{label:t,id:a,...n}=e;return(0,l.jsx)(O.g,{label:t,id:a,inline:!0,children:(0,l.jsx)(x,{id:a,...n,className:k,children:(0,l.jsx)(C,{className:I})})})};var L=a("99967"),G=a("49638");let A=[-1,3,5,10,20,60,300,900],w=["en-US","es-ES","fr-FR","pt-BR","zh-CN"],P=e=>{let{open:t,onClose:a}=e,{language:n,pollingInterval:d,jobsPerPage:u,confirmQueueActions:h,confirmJobActions:p,collapseJob:b,collapseJobData:S,collapseJobOptions:f,collapseJobError:v,defaultJobTab:T,darkMode:m,setSettings:E}=(0,i.F)(e=>e),{pollingInterval:g}=(0,c.p)(),{t:x,i18n:C}=(0,r.$G)();return(0,l.jsxs)(L.u,{width:"small",open:t,onClose:a,title:x("SETTINGS.TITLE"),children:[(0,l.jsx)(s.m,{label:x("SETTINGS.LANGUAGE"),id:"language",options:w.map(e=>({text:e,value:e})),value:n,onChange:e=>{C.changeLanguage(e.target.value),E({language:e.target.value})}}),(null==g?void 0:g.showSetting)!==!1&&(0,l.jsx)(s.m,{label:x("SETTINGS.POLLING_INTERVAL"),id:"polling-interval",options:A.map(e=>({text:e<0?x("SETTINGS.POLLING_OPTIONS.OFF"):0===Math.floor(e/60)?x("SETTINGS.POLLING_OPTIONS.SECS",{count:e}):x("SETTINGS.POLLING_OPTIONS.MINS",{count:e/60}),value:`${e}`})),value:`${d}`,onChange:e=>E({pollingInterval:+e.target.value})}),(0,l.jsx)(s.m,{label:x("SETTINGS.DEFAULT_JOB_TAB"),id:"default-job-tab",options:G.X.map(e=>({text:x(`JOB.TABS.${e.toUpperCase()}`),value:e})),value:T,onChange:e=>E({defaultJobTab:e.target.value})}),(0,l.jsx)(o.U,{label:x("SETTINGS.JOBS_PER_PAGE"),id:"jobs-per-page",value:u,type:"number",min:"1",max:300,maxLength:3,onChange:e=>{E({jobsPerPage:Math.min(+e.target.value,300)})}}),(0,l.jsx)(_,{label:x("SETTINGS.CONFIRM_QUEUE_ACTIONS"),id:"confirm-queue-actions",checked:h,onCheckedChange:e=>E({confirmQueueActions:e})}),(0,l.jsx)(_,{label:x("SETTINGS.CONFIRM_JOB_ACTIONS"),id:"confirm-job-actions",checked:p,onCheckedChange:e=>E({confirmJobActions:e})}),(0,l.jsx)(_,{label:x("SETTINGS.COLLAPSE_JOB"),id:"collapse-job",checked:b,onCheckedChange:e=>E({collapseJob:e})}),(0,l.jsx)(_,{label:x("SETTINGS.COLLAPSE_JOB_DATA"),id:"collapse-job-data",checked:S,onCheckedChange:e=>E({collapseJobData:e})}),(0,l.jsx)(_,{label:x("SETTINGS.COLLAPSE_JOB_OPTIONS"),id:"collapse-job-options",checked:f,onCheckedChange:e=>E({collapseJobOptions:e})}),(0,l.jsx)(_,{label:x("SETTINGS.COLLAPSE_JOB_ERROR"),id:"collapse-job-error",checked:v,onCheckedChange:e=>E({collapseJobError:e})}),(0,l.jsx)(_,{label:x("SETTINGS.DARK_MODE"),id:"dark-mode",checked:m,onCheckedChange:e=>E({darkMode:e})})]})}},49638:function(e,t,a){a.d(t,{X:function(){return i},r:function(){return c}});var l=a(66485),n=a(2784),r=a(20666);let i=["Data","Options","Logs","Error"];function c(e){let[t,a]=(0,n.useState)([]),{defaultJobTab:c}=(0,r.F)(),[o,s]=(0,n.useState)(t.find(e=>e===c)||t[0]);return(0,n.useEffect)(()=>{let t=i.filter(e=>"Error"!==e);a(t=e===l.n.failed?["Error",...t]:[...t,"Error"])},[e]),(0,n.useEffect)(()=>{t.includes(c)&&e!==l.n.failed?s(c):s(t[0])},[c,t]),{tabs:null==t?void 0:t.map(e=>({title:e,isActive:e===o,selectTab:()=>s(e)})),selectedTab:o}}}}]);
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
.dark-mode .rds-b1 {fill: #a26169}
|
|
7
7
|
.dark-mode .rds-b2 {fill: #7b4a50}
|
|
8
8
|
.dark-mode .rds-b3 {fill: #514042}
|
|
9
|
-
`}),(0,l.jsx)("path",{className:"rds-b1",d:"M23.99314 6.28305c.012-.244-.307-.458-.949-.694-1.248-.457-7.843-3.082-9.106-3.545-1.263-.462-1.777-.443-3.261.089-1.484.533-8.506 3.287-9.755 3.776-.625.246-.931.473-.92.715v2.426c0 .242.334.498.97.802 1.272.608 8.332 3.461 9.448 3.994 1.116.533 1.9.54 3.313-.196 1.412-.736 8.047-3.465 9.328-4.132.651-.34.939-.604.939-.843 0-.225.001-2.392.001-2.392h-.008zm-15.399 2.296l5.561-.854-1.68 2.463-3.881-1.609zm12.299-2.218l-3.288 1.299-.357.14-3.287-1.299 3.642-1.44 3.29 1.3zm-9.655-2.383l-.538-.992 1.678.656 1.582-.518-.428 1.025 1.612.604-2.079.216-.466 1.12-.752-1.249-2.401-.216 1.792-.646zm-4.143 1.399c1.642 0 2.972.516 2.972 1.152 0 .636-1.331 1.152-2.972 1.152s-2.973-.517-2.973-1.152c0-.636 1.331-1.152 2.973-1.152z"}),(0,l.jsx)("path",{className:"rds-b2",d:"M23.99314 10.38505c-.011.229-.313.484-.934.809-1.281.667-7.916 3.396-9.328 4.132-1.413.736-2.197.729-3.313.196-1.116-.533-8.176-3.386-9.448-3.994-.635-.303-.959-.56-.97-.801v2.426c0 .242.334.498.97.802 1.272.608 8.332 3.46 9.448 3.993 1.116.534 1.9.541 3.313-.195 1.412-.736 8.047-3.465 9.328-4.132.651-.34.939-.604.939-.843 0-.226.001-2.392.001-2.392-.001-.001-.004 0-.006-.001z"}),(0,l.jsx)("path",{className:"rds-b3",d:"M23.99414 14.34005c-.01.229-.313.485-.935.81-1.281.667-7.916 3.396-9.328 4.132-1.413.736-2.197.729-3.313.195-1.116-.533-8.176-3.386-9.448-3.993-.635-.304-.959-.56-.97-.802v2.426c0 .242.334.499.97.803 1.272.608 8.333 3.46 9.448 3.993 1.116.534 1.9.541 3.313-.196 1.412-.736 8.047-3.464 9.328-4.132.651-.339.939-.603.939-.842 0-.226.001-2.392.001-2.392-.001-.001-.004-.001-.005-.002z"})]}),U=()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:42,role:"img",children:(0,l.jsx)("path",{d:"M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336c44.2 0 80-35.8 80-80s-35.8-80-80-80s-80 35.8-80 80s35.8 80 80 80z"})}),E={actions:"actions-xXF1YD",button:"button-vbAEsE"},A=c.lazy(()=>Promise.all([a.e("56252"),a.e("26335")]).then(a.bind(a,95248)).then(e=>{let{RedisStatsModal:i}=e;return{default:i}})),I=c.lazy(()=>a.e("97241").then(a.bind(a,22699)).then(e=>{let{SettingsModal:i}=e;return{default:i}})),w=async()=>{let e=document.documentElement;return e&&document.fullscreenElement!==e?await e.requestFullscreen():document.exitFullscreen()},O=()=>{let{miscLinks:e=[]}=(0,g.p)(),i=(0,z.d)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("ul",{className:E.actions,children:[(0,l.jsx)("li",{children:(0,l.jsx)(h.z,{onClick:()=>i.open("redis"),className:E.button,children:(0,l.jsx)(N,{})})}),(0,l.jsx)("li",{children:(0,l.jsx)(h.z,{onClick:w,className:E.button,children:(0,l.jsx)(k.$,{})})}),(0,l.jsx)("li",{children:(0,l.jsx)(h.z,{onClick:()=>i.open("settings"),className:E.button,children:(0,l.jsx)(U,{})})}),e.length>0&&(0,l.jsx)("li",{children:(0,l.jsx)(D,{options:e,className:E.button})})]}),(0,l.jsxs)(c.Suspense,{fallback:null,children:[i.isMounted("redis")&&(0,l.jsx)(A,{open:i.isOpen("redis"),onClose:i.close("redis")}),i.isMounted("settings")&&(0,l.jsx)(I,{open:i.isOpen("settings"),onClose:i.close("settings")})]})]})},S=()=>{let{t:e}=(0,u.$G)();return(0,l.jsx)("div",{children:e("LOADING")})};var T=a("11489"),M=a("95095"),P=a("34620");let $=()=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"currentcolor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[(0,l.jsx)("circle",{cx:"14",cy:"14",r:"12"}),(0,l.jsx)("path",{d:"M23 23 L30 30"})]}),q={aside:"aside-tRszgh",secondary:"secondary-zYLEzr",menu:"menu-z95787",active:"active-G0aN_z",appVersion:"appVersion-WxhBrg",isPaused:"isPaused-X2RL4L",searchWrapper:"searchWrapper-RKimTO",search:"search-JnyuJg"},F=()=>{let{t:e}=(0,u.$G)(),{queues:i}=(0,M.y)(),a=(0,T.U)(),[n,t]=(0,c.useState)("");return(0,l.jsxs)("aside",{className:q.aside,children:[(0,l.jsx)("div",{className:q.secondary,children:e("MENU.QUEUES")}),((null==i?void 0:i.length)||0)>5&&(0,l.jsxs)("div",{className:q.searchWrapper,children:[(0,l.jsx)($,{}),(0,l.jsx)("input",{className:q.search,type:"search",id:"search-queues",placeholder:e("MENU.SEARCH_INPUT_PLACEHOLDER"),value:n,onChange:e=>{let{currentTarget:i}=e;return t(i.value)}})]}),(0,l.jsx)("nav",{children:!!i&&(0,l.jsx)("ul",{className:q.menu,children:i.filter(e=>{let{name:i}=e;return null==i?void 0:i.toLowerCase().includes(null==n?void 0:n.toLowerCase())}).map(i=>{let{name:n,isPaused:t}=i;return(0,l.jsx)("li",{children:(0,l.jsxs)(o.OL,{to:P.O.queuePage(n,a),activeClassName:q.active,title:n,children:[n," ",t&&(0,l.jsxs)("span",{className:q.isPaused,children:["[ ",e("MENU.PAUSED")," ]"]})]})},n)})})}),(0,l.jsx)("a",{className:(0,j.Z)(q.appVersion,q.secondary),target:"_blank",rel:"noreferrer",href:"https://github.com/felixmosh/bull-board/releases",children:"6.3.2"})]})},H={queueTitle:"queueTitle-_L6Q8r",name:"name-sqRel5",description:"description-m3M8Yd"};var Z=a("19392");let B=()=>{let e=(0,Z.O)();return e?(0,l.jsx)("div",{className:H.queueTitle,children:e.name&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h1",{className:H.name,children:e.name}),e.description&&(0,l.jsx)("p",{className:H.description,children:e.description})]})}):(0,l.jsx)("div",{})};var Q=a("58901"),G=a("20666");let J=c.lazy(()=>Promise.all([a.e("56252"),a.e("60290"),a.e("44067"),a.e("23080")]).then(a.bind(a,13686)).then(e=>{let{JobPage:i}=e;return{default:i}})),W=c.lazy(()=>Promise.all([a.e("56252"),a.e("60290"),a.e("44067"),a.e("4670")]).then(a.bind(a,44475)).then(e=>{let{QueuePage:i}=e;return{default:i}})),V=c.lazy(()=>a.e("70021").then(a.bind(a,27916)).then(e=>{let{OverviewPage:i}=e;return{default:i}})),Y=()=>{!function(){let{key:e}=(0,b.TH)();(0,c.useEffect)(()=>{window.scrollTo(0,0)},[e])}();let{actions:e}=(0,M.y)(),{confirmProps:i}=(0,Q.N)();return!function(){let{i18n:e}=(0,u.$G)(),{language:i}=(0,G.F)();(0,c.useEffect)(()=>{i&&e.language!==i&&e.changeLanguage(i)},[i])}(),!function(){let{darkMode:e}=(0,G.F)();(0,c.useEffect)(()=>{e?document.body.classList.add("dark-mode"):document.body.classList.remove("dark-mode")},[e])}(),(0,c.useEffect)(()=>{e.updateQueues()},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(R,{children:[(0,l.jsx)(B,{}),(0,l.jsx)(O,{})]}),(0,l.jsx)("main",{children:(0,l.jsxs)("div",{children:[(0,l.jsx)(c.Suspense,{fallback:(0,l.jsx)(S,{}),children:(0,l.jsxs)(b.rs,{children:[(0,l.jsx)(b.AW,{path:"/queue/:name/:jobId",render:()=>(0,l.jsx)(J,{})}),(0,l.jsx)(b.AW,{path:"/queue/:name",render:()=>(0,l.jsx)(W,{})}),(0,l.jsx)(b.AW,{path:"/",exact:!0,render:()=>(0,l.jsx)(V,{})})]})}),(0,l.jsx)(v,{...i})]})}),(0,l.jsx)(F,{}),(0,l.jsx)(f.Ix,{})]})};var K=a("1304"),X=a("93407"),ee=a("63167"),ei=a("64068");let ea=window.__basePath__=(null===(n=document.head.querySelector("base"))||void 0===n?void 0:n.getAttribute("href"))||"",en=new class e{getQueues(e){let{activeQueue:i,status:a,page:n,jobsPerPage:t}=e;return this.axios.get("/queues",{params:{activeQueue:i,status:a,page:n,jobsPerPage:t}})}retryAll(e,i){return this.axios.put(`/queues/${encodeURIComponent(e)}/retry/${encodeURIComponent(i)}`)}promoteAll(e){return this.axios.put(`/queues/${encodeURIComponent(e)}/promote`)}cleanAll(e,i){return this.axios.put(`/queues/${encodeURIComponent(e)}/clean/${encodeURIComponent(i)}`)}cleanJob(e,i){return this.axios.put(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${i}`)}/clean`)}retryJob(e,i,a){return this.axios.put(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${i}`)}/retry/${encodeURIComponent(a)}`)}promoteJob(e,i){return this.axios.put(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${i}`)}/promote`)}updateJobData(e,i,a){return this.axios.patch(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${i}`)}/update-data`,a)}getJobLogs(e,i){return this.axios.get(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${i}`)}/logs`)}getJob(e,i){return this.axios.get(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${i}`)}`)}addJob(e,i,a,n){return this.axios.post(`/queues/${encodeURIComponent(e)}/add`,{name:i,data:a,options:n})}pauseQueue(e){return this.axios.put(`/queues/${encodeURIComponent(e)}/pause`)}resumeQueue(e){return this.axios.put(`/queues/${encodeURIComponent(e)}/resume`)}emptyQueue(e){return this.axios.put(`/queues/${encodeURIComponent(e)}/empty`)}getStats(){return this.axios.get("/redis/stats")}handleResponse(e){return e.data}async handleError(e){var i,a;return(null===(i=e.response.data)||void 0===i?void 0:i.error)&&f.Am.error(null===(a=e.response.data)||void 0===a?void 0:a.error,{autoClose:5e3}),Promise.resolve(e.response.data)}constructor({basePath:e}={basePath:""}){(0,X._)(this,"axios",void 0),this.axios=ee.Z.create({baseURL:`${e}api`}),this.axios.interceptors.response.use(this.handleResponse,this.handleError)}}({basePath:ea}),et=JSON.parse((null===(t=document.getElementById("__UI_CONFIG__"))||void 0===t?void 0:t.textContent)||"{}");(null===(d=et.pollingInterval)||void 0===d?void 0:d.forceInterval)&&G.F.setState({pollingInterval:et.pollingInterval.forceInterval});let ed=G.F.getState().language||(null===(s=et.locale)||void 0===s?void 0:s.lng)||navigator.language||"en-US";(0,ei.L)({lng:ed,basePath:ea}).then(()=>{(0,r.render)((0,l.jsx)(o.VK,{basename:ea,children:(0,l.jsx)(g._.Provider,{value:et,children:(0,l.jsx)(K.G.Provider,{value:en,children:(0,l.jsx)(Y,{})})})}),document.getElementById("root"))})},64068:function(e,i,a){"use strict";a.d(i,{L:function(){return o},Y:function(){return l}});var n=a(1347),t=a(11690);a(34406);var d=a(59382),s=a(96081);let l=s.Z,c={"es-ES":"es","fr-FR":"fr"};async function r(e){let i=c[e]||e;l=await a(1346)(`./${i}/index.js`).catch(e=>(console.info(e),s.Z))}async function o(e){let{lng:i,basePath:a}=e,s=n.ZP.use(d.Db).use(t.Z);return s.on("languageChanged",e=>r(e)),await r(i),s.init({lng:i,fallbackLng:"en-US",defaultNS:"messages",ns:"messages",load:"currentOnly",backend:{loadPath:`${a}static/locales/{{lng}}/{{ns}}.json`,queryParams:{v:"6.3.2"}},interpolation:{escapeValue:!1}})}},85106:function(e,i,a){"use strict";function n(e,i){return function(a,n,t){return async()=>{try{t&&await i({description:n}),await a(),await e()}catch(e){e&&console.error(e)}}}}a.d(i,{G:function(){return n}})},34620:function(e,i,a){"use strict";a.d(i,{O:function(){return n}});let n={dashboardPage:e=>({pathname:"/",search:e?new URLSearchParams({status:e}).toString():""}),queuePage(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pathname:a,searchParams:n}=new URL(`/queue/${encodeURIComponent(e)}`,"http://fake.com");return i[e]&&"latest"!==i[e]&&n.set("status",i[e]),{pathname:a,search:n.toString()}},jobPage(e,i){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{pathname:t,search:d}=n.queuePage(e,a),{pathname:s}=new URL(`${t}/${encodeURIComponent(i)}`,"http://fake.com");return{pathname:s,search:d}}}}},i={};function a(n){var t=i[n];if(void 0!==t)return t.exports;var d=i[n]={id:n,loaded:!1,exports:{}};return e[n].call(d.exports,d,d.exports,a),d.loaded=!0,d.exports}a.m=e,a.H={},a.G=function(e){Object.keys(a.H).map(function(i){a.H[i](e)})},a.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(i,{a:i}),i},(()=>{var e,i=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};a.t=function(n,t){if(1&t&&(n=this(n)),8&t||"object"==typeof n&&n&&(4&t&&n.__esModule||16&t&&"function"==typeof n.then))return n;var d=Object.create(null);a.r(d);var s={};e=e||[null,i({}),i([]),i(i)];for(var l=2&t&&n;"object"==typeof l&&!~e.indexOf(l);l=i(l))Object.getOwnPropertyNames(l).forEach(function(e){s[e]=function(){return n[e]}});return s.default=function(){return n},a.d(d,s),d}})(),a.d=function(e,i){for(var n in i)a.o(i,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce(function(i,n){return a.f[n](e,i),i},[]))},a.u=function(e){return"static/js/async/"+(({16651:"highlight-worker",54183:"highlight"})[e]||e)+"."+({1004:"c6a6b1e7",10124:"3b4311de",10314:"cd4146b6",10433:"3c56f7f8",10474:"d3e52c82",10634:"6734a7e1",1067:"b6c269df",10731:"6f3ca27a",1075:"4c74c51d",10807:"d9d04a47",10847:"08eba4ae",1109:"9985784c",11120:"d36ac466",11424:"f0008975",11469:"8c2a81ab",11600:"f01cb2a3",11634:"14c572d3",12035:"abae17e3",12041:"2a3ba0f9",12282:"e014bf6d",12291:"5fb4bbc4",12311:"768d2079",12423:"9b7c1887",1266:"0a1877ce",12673:"3aa5e020",12829:"d2db53ff",12958:"f31b9f83",1298:"3dacac46",1309:"50c4d447",13209:"03c017dd",13392:"0071ce96",13399:"a327f5ce",1350:"b04dc250",13523:"88ac262c",13538:"58ca4576",13746:"9f60bdaf",13883:"96cea6c3",14264:"aa3974c7",14385:"097c00e5",14576:"e1693682",1466:"1a375af1",14760:"8aaaa5f6",14776:"a5ff16b6",14777:"b6e63493",14851:"34ee8653",14957:"434b78d5",15132:"8eab3430",1536:"bdc311e9",1550:"237c018e",15641:"d828d296",15724:"783637e0",15747:"f697e337",15934:"901dc4c4",16054:"50ac3169",16116:"81b5516c",16259:"aaf18eb3",16651:"e0105321",16664:"ef2ab6a0",16691:"a8b2a780",16949:"a352452f",17013:"dbc96e34",17030:"cd05eb60",17032:"40e8b63c",17090:"066d4b65",17526:"6ef4ec4d",17561:"8f4a9bbf",17629:"1e6d68d0",1766:"7bf9b8b2",17825:"3dfbff0e",1811:"a5d4b5ec",18164:"5fe06fb5",18171:"af1d8f8d",18323:"41909371",18355:"172a32dd",18423:"178b2d1b",18491:"cf69871d",185:"1c26f761",1886:"91a5e833",18942:"130ec57b",19246:"2a1d515b",19331:"12ca94a5",19407:"ede27bb1",19449:"16127b28",19459:"c46a7a5b",19577:"d47a9d98",19738:"081a50a2",20062:"f5dc5e58",20168:"cea6121a",20176:"e0f4d158",20306:"ce0432cb",20562:"d84966db",20589:"e7a422dc",20606:"9d39403d",2065:"3b3a6827",2092:"d4a1efa3",20926:"eac55503",20976:"81cf76c7",20985:"44fe2d9a",21026:"09bd527f",21110:"3a578eaa",21184:"6269ed75",21374:"c2c7fba6",21856:"b6510ea6",21881:"a81f559e",21943:"697795ef",22023:"a47a57b8",2206:"636d1986",22088:"3c26da2d",2237:"cf0e3429",22404:"bb52136d",22510:"b5a07d3e",22519:"498c6856",22530:"b81b18dc",22862:"19af1e8e",2295:"271701b1",23080:"8c84a1ef",23313:"3be9e216",23381:"12da3072",23501:"4646a4dc",2351:"29ca6319",23539:"33809ff6",2354:"a15a9d8e",23745:"1e1a6b28",23874:"1364f4e0",23907:"ad905f45",23926:"82234597",24006:"cadccb06",24085:"f267e2b2",24228:"1bcc6c7f",24469:"d93850c7",24731:"dc8e6e38",24774:"cae0cd2c",2498:"88fb9354",25025:"e4d98080",25032:"e003584f",25150:"963c18c2",25442:"82626453",25454:"5d514527",25678:"2e14c083",2571:"716f7cae",2585:"fd62ef55",25883:"50e7d595",26019:"4485048f",26093:"0a23ee07",26335:"24d897e6",26366:"e23929d9",26754:"60f6dd2f",26760:"c0177a7e",26846:"bcbb7a7d",26975:"c121509e",27172:"3796ed57",2719:"8e7c25ea",27412:"b5613d58",27428:"141929f7",27437:"ec091436",27906:"0cb8e83d",28e3:"ecbc331f",28181:"43f317f4",28333:"eeb6ff2e",28413:"718e2241",2845:"d5dd8364",28784:"e11a92f5",28853:"18b8e611",28899:"68897fb9",29320:"0d6a93eb",29408:"04675e1c",29528:"cdf040e6",29586:"a39083a2",2977:"06d1b060",29778:"da947a2e",29917:"83c21026",30039:"b08c0b66",3009:"da737e01",30450:"c5825f41",30472:"65597e1d",30474:"022bdf09",30641:"2cfa07b8",30678:"e0cf4712",30761:"6677bd73",30813:"33706803",30969:"97665b1c",31125:"7793a2f5",31189:"6872cf11",31399:"ebfc1b94",31447:"487a3761",31460:"8b001359",31475:"6eba8231",3165:"34ebe623",31654:"9059b3f0",31719:"995b2c08",31832:"6cf2647c",3223:"f718ffaf",32230:"68501dc3",32240:"8f8006d3",32430:"2089fe8e",32495:"608612a6",32543:"f3411e62",32595:"7e8067c5",32970:"238e96b1",33035:"549f8212",3338:"15fd5179",33421:"97822ef5",33538:"aae151e2",33635:"b244a29e",33727:"85ca119a",34003:"2fec3e94",34302:"545803bc",34759:"51703542",3478:"9345c487",34850:"4b970812",34932:"c2b4a67c",34938:"bff23c4e",35136:"8b1bd49a",35245:"e24deb26",35359:"5f44bb4b",35512:"d3820bf7",35533:"483bb33f",35601:"2da49190",35770:"eb24f4c8",35793:"e6990251",35831:"dfca408b",3592:"67525d9c",36113:"fcebc16d",36305:"d1117d78",36346:"1410dbb8",36805:"9620f583",36926:"e6da974a",37001:"7115e11c",37453:"b8947899",37476:"fb77a645",37477:"37e3ceda",37554:"f0c8c306",3756:"a5a9a058",37716:"66244a73",37908:"4e5d4ebe",37923:"b772180b",37981:"63dcd22d",37985:"62dba04f",38023:"04e06c11",38045:"dbdca7ee",38050:"036becdb",38059:"55ca9a7a",38264:"106c01d2",38340:"1e7a4d60",38437:"f8b5e3da",38490:"19964988",38541:"776c88d1",38707:"2d5f9dae",38755:"9ea3085d",38775:"1c3e0899",39029:"3d627694",39124:"9a4fb841",39261:"6df7af76",39307:"cc219a77",39325:"3a48f532",39356:"70261334",39553:"e7b180bf",39614:"a503efc9",39707:"c3695c63",39733:"c195f574",40109:"ffa68e30",40118:"6bb8bcaa",40259:"8fcafe82",40339:"89fe8e8f",40463:"786da866",40517:"48a4e34c",40689:"21d43276",4073:"9c297f45",40774:"0700cdbb",40808:"c81b825b",40970:"5d815928",41048:"361d1df2",41261:"f82f8e70",41275:"fa97f80c",41420:"4767b309",4145:"d98e0a8d",41572:"f9198ebc",41601:"39a2f3ac",41721:"93b0bd66",41928:"1d9f7cbc",42108:"21ea90b2",42145:"f72c3e64",42238:"153f7322",42298:"c867a784",42357:"4cf5243f",42575:"6811e103",42652:"621e87db",42770:"49b47d84",42842:"0441ecd2",42856:"46cb3865",42967:"be7e6239",43042:"46ce81c8",43178:"91678ffb",43210:"2d1b3d32",43714:"6a39f6b3",43810:"fd7fc770",44004:"806e8f8f",4406:"9080170e",44067:"2dfc5100",44369:"7bb921db",44381:"a3340653",44744:"72454b71",44980:"9884f9d0",44997:"82019646",45122:"8ec2ea6a",45133:"4fa5d2bd",45181:"ed1f1429",45223:"a9efe132",45245:"791bac9e",45269:"2d0d8e0f",45324:"7ce05862",4547:"b41ae52f",45685:"1b53a873",45771:"1f01a638",45827:"a4823f4d",46025:"c8d706a2",4619:"24fbd7fb",46437:"d1944e88",46476:"d8b087aa",46675:"01982d3d",4670:"08cf1776",46915:"e6710abd",47025:"c8e518e9",47116:"0866f144",47118:"cc0db726",47232:"3967fdec",47423:"97dab8a0",47484:"50bc7713",475:"e23c5a15",47592:"46e627f5",47736:"1e554c9e",47809:"1d8b0fe2",4786:"41ce483a",4798:"be4783ec",48396:"07ec55ec",48740:"639c5215",48801:"b83c46da",48834:"965caaf8",49081:"b042bfc1",491:"a0125b60",49170:"34212fab",49352:"19025f5b",49360:"3fade65b",49429:"819d310e",49516:"d5038e2c",49623:"5fa96975",49802:"045ae677",49878:"3c830d4e",49986:"b62bbe45",50093:"192229a7",50122:"21eda1d4",5016:"bd47dbac",50206:"ee03efa3",50296:"52e98cd5",5033:"a7cbba1f",50389:"8e69f2e0",50454:"d768c143",50522:"276644bc",50535:"41a0b35a",50561:"054b0f90",50577:"0b3a0a95",50643:"43643df7",50886:"0db9a372",51129:"f79373fe",51337:"aca79823",51350:"f1c9f65d",51520:"4e93b965",51620:"b20f504b",5186:"5a854ae4",51953:"9a31290c",51954:"dd7b2083",5198:"6601c1ef",5203:"4b6e4f90",52051:"16d04c86",52062:"1ccbd79e",5216:"63e3cda0",5228:"40890b4f",52305:"1a1e415a",5240:"e86440a9",52441:"dc52f145",52535:"4cdefca9",52731:"561f1dfb",52854:"24aecb72",5287:"cf02e3ab",5289:"2657c680",52913:"3b3fa576",52990:"3ea8f07b",53349:"1cc618cf",53356:"7a3cbf84",53436:"79136691",5353:"c3eddb76",53538:"f6585604",53620:"58dc9c7b",53630:"55917a61",53866:"6f68830b",53884:"67d6245a",54135:"13c8ebb0",54183:"928a4ac5",54219:"054f780a",54546:"1163f9cd",54553:"0f06b938",54871:"e668d006",55041:"c22caba4",55241:"805041b2",55362:"6f05e6f9",5541:"7b068cf2",55632:"27d844a0",5567:"3a68aebd",55737:"09d45b31",55773:"c62a995c",56028:"b4a8a7f7",56221:"34088119",56240:"cba846ba",56252:"01e6a9bf",56267:"e5cff2b3",56268:"aa191a17",56341:"08cd60bb",5653:"e81ee306",56614:"8761252d",56906:"a874b699",56919:"cd45f26f",57022:"e6114d3a",5737:"0c2f9cbf",57622:"8aa8a3a2",57673:"4e6691e2",57809:"901c00d0",57846:"b68d3136",57860:"e7813628",5790:"52a28b74",57974:"3d243d31",58029:"8658984b",58064:"577afbed",58078:"2db25938",58103:"becb3837",58106:"6cc6013c",5813:"665f576a",58153:"c83783f8",58386:"e62b1636",58421:"d0fb271c",5846:"f76a0e30",58515:"b4e7861e",58776:"d0a0654c",58874:"5489f43e",58923:"0cc8939f",58975:"ae66f04c",59109:"fb192aea",59151:"cdeceff9",59261:"c6dfa2b4",59638:"9bd119e1",59709:"78dc2446",59796:"c1d17951",59879:"ed0dd9a6",60290:"7637c675",60475:"8e0516ab",60756:"6b83f7eb",60973:"660e4430",6116:"6b0f704d",61277:"b7d4d18d",61281:"48582760",61398:"9f077334",61444:"0db3bfe6",61495:"e404d936",61578:"2f4f7a92",61624:"28d0f238",61670:"f7893df4",61712:"b575620b",61714:"a1e7743a",61798:"0695eadd",61851:"03a1e382",61953:"457feb35",62145:"8c8d7e92",62179:"e94c0ace",62184:"d1549513",62336:"60d1b994",62379:"769a8638",62437:"1a6e7f83",62438:"6ea2beda",62477:"23e456a5",62663:"253ac2b5",6271:"172e8b73",62999:"d16442b1",63032:"8b302f35",63092:"b73b91c9",63172:"6be130e0",63197:"8c86404c",63298:"edb1475d",63671:"a2aec4f4",63757:"f0329834",63767:"391c17a7",63930:"17dff848",63985:"3849e776",64130:"f933bbca",64735:"f4c2e1b9",6481:"34d813de",64893:"fca47769",64915:"f71984d6",65072:"89c4df62",65076:"2d116fd4",65099:"8a2b48b2",6543:"ba995296",6553:"1e160336",65575:"211a1b32",65736:"90e1adad",65782:"c4ddb583",65902:"9979e1b7",66028:"b265ede8",66108:"e5c908aa",66200:"528bc2ec",66319:"37a93540",66485:"e0945ef4",6653:"2e36effe",66563:"99ec249c",66856:"e5eaa24e",66894:"373f0c0d",66896:"643f707b",67156:"e0353070",67163:"b6f02bfb",67230:"16a596d8",67330:"d3cc28aa",67413:"064506a9",67457:"a749307d",67858:"d36eb946",68215:"a1b0b853",68288:"14a19cca",68373:"94a3bd7d",68429:"40356109",68463:"09f68c52",68556:"f8b71b2a",68563:"f38db1ca",68965:"f809b40e",69067:"4ec19753",69120:"8944380f",69202:"09f9c0e7",69626:"39690c1d",69840:"2fd5f597",69899:"b897b476",69963:"6697c398",69997:"ae80f435",70021:"8a170612",7019:"ab03e099",7023:"5e03d207",70371:"e43edb7e",7047:"0c275b02",70512:"f388bab6",70725:"ee784ff0",70922:"643b8d8f",70947:"ce61990b",70995:"86cec231",7104:"3d756b1f",71252:"b3255378",71378:"c8f9760e",71449:"7b2f2912",71557:"fa39c983",71725:"bae23813",71926:"28773c8a",71944:"5d271bb6",72056:"cda67224",72164:"2dcfb2b3",72262:"92b2c803",7232:"0ac78f71",72518:"ebed2f67",72591:"9e376e9f",72710:"81b13fd1",72812:"4e4cbf7a",72998:"776a8595",73075:"442bfd69",73139:"e36f74c4",7314:"e5daa1ff",73189:"7b029f2a",73210:"089871f4",73252:"299825d8",73289:"fb3f4ceb",73455:"677cd123",73501:"f0f3aad6",73818:"0f56e3f9",7392:"be2547f9",73956:"e33f0b16",74362:"c3911275",74366:"1ca60694",74522:"c8d31b1c",7465:"6517af39",74705:"b5b2ae54",75451:"d412de0d",75485:"f2510f75",75543:"8d9f85dc",75987:"b7947364",76063:"0ed6247b",76092:"1298a4e4",76181:"49bd723e",76292:"a85e7d79",76385:"d6dfc11d",76386:"40fb1c97",76455:"c0ae308e",76495:"b9104147",76516:"2f9bc032",76692:"12c85b5a",76771:"14fa4f38",76791:"02b0cb76",76863:"b147ba03",76888:"f2c31f89",77527:"67574fcf",77697:"2d7747dc",77793:"ceb926dd",77885:"b472829f",77935:"e7152978",77952:"68e2ae1a",78111:"2ae902e9",78136:"319071e7",7823:"90f7102c",78277:"c0c07887",78326:"f9aa6620",78492:"5b64bf63",78583:"d6ad964a",78617:"cb4833ad",78821:"d5857384",78970:"3153e390",79228:"d0366ca5",7924:"e66ebf3e",79248:"98319a2c",79264:"9010f031",7944:"f00ce5ff",79540:"72a69794",79742:"18210fe3",79758:"6aa2774a",79981:"574ab598",80179:"69ac6af3",80299:"aa895ab0",80311:"d6801e91",80373:"6b2ffdea",80658:"d353cce6",80676:"d4ecdbc6",80745:"e1f3998d",80938:"0b25cf99",81191:"06985ac9",81358:"cf338637",81393:"06db3561",81521:"d07d88f8",81535:"af27763d",8157:"4ddd3d4e",81614:"b15d9eba",81685:"8c16246a",81773:"20d362ff",8179:"b8182c6b",81799:"76fbc1d3",81954:"1d4f250a",82183:"fcff87e1",82295:"238a7caa",82320:"7e09a92d",8241:"393e80a2",82541:"be8585fb",82644:"1dc0ebee",8274:"11df270f",8275:"3736f6f4",82759:"4e83e689",82896:"b1fe1e42",83006:"048965a3",83099:"fbe0c400",83160:"aa221d89",83287:"d146052a",83343:"1c4d680c",83545:"9a55e5fe",83804:"02c41285",83907:"1b9438fc",83940:"2f3c6c55",83970:"d7f7100e",8407:"a1db0c89",84475:"2bbb5a29",84497:"569ff74d",845:"d8ddbfce",84546:"330bd1f7",84791:"2d5defab",84854:"8541487b",84880:"74cb6518",8501:"ac5f9539",85093:"c2351775",85426:"825ab66f",85681:"fd2c5d20",85694:"68edf402",85787:"bee88e41",85835:"f985acad",85926:"3281823c",86055:"1fbb566c",86155:"9fe01da9",86202:"609c5977",86394:"82f2a8c7",86548:"f944b2fb",86630:"92010b6f",86791:"bb778a33",86831:"e81dc1d5",87123:"6af0d2b2",87129:"52199417",8746:"82852dec",87586:"5c49a27b",87623:"f5739704",87636:"e69bcf71",87928:"9183885f",87936:"1eb1e712",880:"e49b0c61",88036:"6b37035a",88055:"467e76b0",88099:"2f156156",8813:"f1980f9a",88328:"61a965af",88476:"a62282b4",88524:"de41919f",88830:"55d2b030",88987:"387e7ea1",89216:"24ab2f32",89327:"d39bc713",89485:"4e190a48",89486:"24b8c341",89598:"34fa1f28",89601:"8f132b5b",89651:"e63defd8",89667:"16a55f7f",89819:"21c7f761",89891:"cf6fe8ab",90191:"9786d1f1",90317:"e8738147",90404:"b200b6ba",90785:"81ba2d5c",90937:"b6e231ad",90957:"36cd82ba",91106:"ac58a956",91259:"0056852c",9128:"890d918c",91280:"2556f87e",91355:"536ce223",91717:"9289d8de",91934:"02ec6ee8",92110:"d181559d",92324:"bd944437",92411:"57c2fe58",92603:"3ffb4bda",92669:"e7fdcabc",92759:"f8f1d6e2",92783:"aab807c0",92802:"db4b611e",92803:"df13bc82",92895:"b4feceb6",92907:"da535db6",92968:"d712c261",92975:"abe45068",9315:"0703d736",93157:"8bd49458",93160:"da7122bf",93312:"8121a79f",93357:"728a2f6d",93640:"e60bb3dd",93745:"78f947ca",93809:"8ca56a5f",93833:"6ae3b249",93929:"62cc9274",93942:"71f9d38c",93969:"569b4d31",94107:"355991fe",94282:"85e17ae7",9432:"3b964a5e",94370:"a31b22a8",94489:"6cc2dbd3",94870:"e1e1cf66",95039:"77bf5775",95281:"e1ba804b",9562:"6cdac491",95929:"c1e120ca",96014:"36dd32ff",96230:"fd156baf",96310:"4acd23f0",96509:"200a1666",9671:"df6ad2ea",96749:"0f447105",96851:"0b721064",9686:"2b3f83b7",96924:"3e589058",96931:"1c67476b",97226:"bca50687",97241:"0b48fc31",97350:"9fe1635f",97364:"de9aeae4",97381:"81fa4d94",97653:"4e3d1de0",97984:"df51aff2",97995:"d690ea3c",98147:"cdcf0c77",98222:"dac1e0ad",98223:"4f018a09",98556:"6a673dc6",98667:"c01d7e90",98730:"b5c73782",98844:"bbba7662",98907:"8f4e0178",99039:"9363f394",99244:"9635f3ef",99282:"38e22983",99414:"dcd88ed1",99471:"9fc0b80d",99518:"26dc6baf",99537:"4e7338e4",99571:"a17c660d",9985:"7963feed"})[e]+".js"},a.miniCssF=function(e){return"static/css/async/"+e+"."+({23080:"67780f94",26335:"593132bd",4670:"812ee089",70021:"f7e7c024",97241:"a605b410"})[e]+".css"},a.h=function(){return"4579d257abd9c80d"},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},(()=>{var e={},i="@bull-board/ui:";a.l=function(n,t,d,s){if(e[n]){e[n].push(t);return}if(void 0!==d){for(var l,c,r=document.getElementsByTagName("script"),o=0;o<r.length;o++){var b=r[o];if(b.getAttribute("src")==n||b.getAttribute("data-webpack")==i+d){l=b;break}}}!l&&(c=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",i+d),l.src=n),e[n]=[t];var f=function(i,a){l.onerror=l.onload=null,clearTimeout(x);var t=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),t&&t.forEach(function(e){return e(a)}),i)return i(a)},x=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),c&&document.head.appendChild(l)}})(),a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=function(e){return e.paths=[],!e.children&&(e.children=[]),e},a.nc=void 0,(()=>{var e=[];a.O=function(i,n,t,d){if(n){d=d||0;for(var s=e.length;s>0&&e[s-1][2]>d;s--)e[s]=e[s-1];e[s]=[n,t,d];return}for(var l=1/0,s=0;s<e.length;s++){for(var n=e[s][0],t=e[s][1],d=e[s][2],c=!0,r=0;r<n.length;r++)(!1&d||l>=d)&&Object.keys(a.O).every(function(e){return a.O[e](n[r])})?n.splice(r--,1):(c=!1,d<l&&(l=d));if(c){e.splice(s--,1);var o=t();void 0!==o&&(i=o)}}return i}})(),a.rv=function(){return"1.0.9"},(()=>{a.g.importScripts&&(e=a.g.location+"");var e,i=a.g.document;if(!e&&i&&(i.currentScript&&"SCRIPT"===i.currentScript.tagName.toUpperCase()&&(e=i.currentScript.src),!e)){var n=i.getElementsByTagName("script");if(n.length){for(var t=n.length-1;t>-1&&(!e||!/^http(s?):/.test(e));)e=n[t--].src}}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e+"../../"})(),(()=>{if("undefined"!=typeof document){var e=function(e,i,n,t,d){var s=document.createElement("link");return s.rel="stylesheet",s.type="text/css",a.nc&&(s.nonce=a.nc),s.onerror=s.onload=function(a){if(s.onerror=s.onload=null,"load"===a.type)t();else{var n=a&&("load"===a.type?"missing":a.type),l=a&&a.target&&a.target.href||i,c=Error("Loading CSS chunk "+e+" failed.\\n("+l+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=n,c.request=l,s.parentNode&&s.parentNode.removeChild(s),d(c)}},s.href=i,n?n.parentNode.insertBefore(s,n.nextSibling):document.head.appendChild(s),s},i=function(e,i){for(var a=document.getElementsByTagName("link"),n=0;n<a.length;n++){var t=a[n],d=t.getAttribute("data-href")||t.getAttribute("href");if("stylesheet"===t.rel&&(d===e||d===i))return t}for(var s=document.getElementsByTagName("style"),n=0;n<s.length;n++){var t=s[n],d=t.getAttribute("data-href");if(d===e||d===i)return t}},n={56909:0};a.f.miniCss=function(t,d){if(n[t])d.push(n[t]);else if(0!==n[t]&&({4670:1,70021:1,26335:1,97241:1,23080:1})[t]){var s;d.push(n[t]=(s=t,new Promise(function(n,t){var d=a.miniCssF(s),l=a.p+d;if(i(d,l))return n();e(s,l,null,n,t)})).then(function(){n[t]=0},function(e){throw delete n[t],e}))}}}})(),(()=>{a.b=document.baseURI||self.location.href;var e={56909:0};a.f.j=function(i,n){var t=a.o(e,i)?e[i]:void 0;if(0!==t){if(t)n.push(t[2]);else{var d=new Promise(function(a,n){t=e[i]=[a,n]});n.push(t[2]=d);var s=a.p+a.u(i),l=Error();a.l(s,function(n){if(a.o(e,i)&&(0!==(t=e[i])&&(e[i]=void 0),t)){var d=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;l.message="Loading chunk "+i+" failed.\n("+d+": "+s+")",l.name="ChunkLoadError",l.type=d,l.request=s,t[1](l)}},"chunk-"+i,i)}}},a.H.j=function(i){if(!a.o(e,i)||void 0===e[i]){e[i]=null;var n=document.createElement("link");n.charset="utf-8",a.nc&&n.setAttribute("nonce",a.nc),n.rel="preload",n.as="script",n.href=a.p+a.u(i),document.head.appendChild(n)}},a.O.j=function(i){return 0===e[i]};var i=function(i,n){var t=n[0],d=n[1],s=n[2],l,c,r=0;if(t.some(function(i){return 0!==e[i]})){for(l in d)a.o(d,l)&&(a.m[l]=d[l]);if(s)var o=s(a)}for(i&&i(n);r<t.length;r++)c=t[r],a.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return a.O(o)},n=self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[];n.forEach(i.bind(null,0)),n.push=i.bind(null,n.push.bind(n))})(),a.ruid="bundler=rspack@1.0.9",(()=>{var e={23080:["85093","54183"],4670:["85093","54183"]};a.f.preload=function(i){var n=e[i];Array.isArray(n)&&n.map(a.G)}})();var n=a.O(void 0,["22072","43361","2118","83544"],function(){return a("68557")});n=a.O(n)})();
|
|
9
|
+
`}),(0,l.jsx)("path",{className:"rds-b1",d:"M23.99314 6.28305c.012-.244-.307-.458-.949-.694-1.248-.457-7.843-3.082-9.106-3.545-1.263-.462-1.777-.443-3.261.089-1.484.533-8.506 3.287-9.755 3.776-.625.246-.931.473-.92.715v2.426c0 .242.334.498.97.802 1.272.608 8.332 3.461 9.448 3.994 1.116.533 1.9.54 3.313-.196 1.412-.736 8.047-3.465 9.328-4.132.651-.34.939-.604.939-.843 0-.225.001-2.392.001-2.392h-.008zm-15.399 2.296l5.561-.854-1.68 2.463-3.881-1.609zm12.299-2.218l-3.288 1.299-.357.14-3.287-1.299 3.642-1.44 3.29 1.3zm-9.655-2.383l-.538-.992 1.678.656 1.582-.518-.428 1.025 1.612.604-2.079.216-.466 1.12-.752-1.249-2.401-.216 1.792-.646zm-4.143 1.399c1.642 0 2.972.516 2.972 1.152 0 .636-1.331 1.152-2.972 1.152s-2.973-.517-2.973-1.152c0-.636 1.331-1.152 2.973-1.152z"}),(0,l.jsx)("path",{className:"rds-b2",d:"M23.99314 10.38505c-.011.229-.313.484-.934.809-1.281.667-7.916 3.396-9.328 4.132-1.413.736-2.197.729-3.313.196-1.116-.533-8.176-3.386-9.448-3.994-.635-.303-.959-.56-.97-.801v2.426c0 .242.334.498.97.802 1.272.608 8.332 3.46 9.448 3.993 1.116.534 1.9.541 3.313-.195 1.412-.736 8.047-3.465 9.328-4.132.651-.34.939-.604.939-.843 0-.226.001-2.392.001-2.392-.001-.001-.004 0-.006-.001z"}),(0,l.jsx)("path",{className:"rds-b3",d:"M23.99414 14.34005c-.01.229-.313.485-.935.81-1.281.667-7.916 3.396-9.328 4.132-1.413.736-2.197.729-3.313.195-1.116-.533-8.176-3.386-9.448-3.993-.635-.304-.959-.56-.97-.802v2.426c0 .242.334.499.97.803 1.272.608 8.333 3.46 9.448 3.993 1.116.534 1.9.541 3.313-.196 1.412-.736 8.047-3.464 9.328-4.132.651-.339.939-.603.939-.842 0-.226.001-2.392.001-2.392-.001-.001-.004-.001-.005-.002z"})]}),U=()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:42,role:"img",children:(0,l.jsx)("path",{d:"M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336c44.2 0 80-35.8 80-80s-35.8-80-80-80s-80 35.8-80 80s35.8 80 80 80z"})}),E={actions:"actions-xXF1YD",button:"button-vbAEsE"},A=c.lazy(()=>Promise.all([a.e("56252"),a.e("26335")]).then(a.bind(a,95248)).then(e=>{let{RedisStatsModal:i}=e;return{default:i}})),I=c.lazy(()=>a.e("97241").then(a.bind(a,22699)).then(e=>{let{SettingsModal:i}=e;return{default:i}})),w=async()=>{let e=document.documentElement;return e&&document.fullscreenElement!==e?await e.requestFullscreen():document.exitFullscreen()},O=()=>{let{miscLinks:e=[]}=(0,g.p)(),i=(0,z.d)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("ul",{className:E.actions,children:[(0,l.jsx)("li",{children:(0,l.jsx)(h.z,{onClick:()=>i.open("redis"),className:E.button,children:(0,l.jsx)(N,{})})}),(0,l.jsx)("li",{children:(0,l.jsx)(h.z,{onClick:w,className:E.button,children:(0,l.jsx)(k.$,{})})}),(0,l.jsx)("li",{children:(0,l.jsx)(h.z,{onClick:()=>i.open("settings"),className:E.button,children:(0,l.jsx)(U,{})})}),e.length>0&&(0,l.jsx)("li",{children:(0,l.jsx)(D,{options:e,className:E.button})})]}),(0,l.jsxs)(c.Suspense,{fallback:null,children:[i.isMounted("redis")&&(0,l.jsx)(A,{open:i.isOpen("redis"),onClose:i.close("redis")}),i.isMounted("settings")&&(0,l.jsx)(I,{open:i.isOpen("settings"),onClose:i.close("settings")})]})]})},S=()=>{let{t:e}=(0,u.$G)();return(0,l.jsx)("div",{children:e("LOADING")})};var T=a("11489"),M=a("95095"),P=a("34620");let $=()=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"currentcolor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[(0,l.jsx)("circle",{cx:"14",cy:"14",r:"12"}),(0,l.jsx)("path",{d:"M23 23 L30 30"})]}),q={aside:"aside-tRszgh",secondary:"secondary-zYLEzr",menu:"menu-z95787",active:"active-G0aN_z",appVersion:"appVersion-WxhBrg",isPaused:"isPaused-X2RL4L",searchWrapper:"searchWrapper-RKimTO",search:"search-JnyuJg"},F=()=>{let{t:e}=(0,u.$G)(),{queues:i}=(0,M.y)(),a=(0,T.U)(),[n,t]=(0,c.useState)("");return(0,l.jsxs)("aside",{className:q.aside,children:[(0,l.jsx)("div",{className:q.secondary,children:e("MENU.QUEUES")}),((null==i?void 0:i.length)||0)>5&&(0,l.jsxs)("div",{className:q.searchWrapper,children:[(0,l.jsx)($,{}),(0,l.jsx)("input",{className:q.search,type:"search",id:"search-queues",placeholder:e("MENU.SEARCH_INPUT_PLACEHOLDER"),value:n,onChange:e=>{let{currentTarget:i}=e;return t(i.value)}})]}),(0,l.jsx)("nav",{children:!!i&&(0,l.jsx)("ul",{className:q.menu,children:i.filter(e=>{let{name:i}=e;return null==i?void 0:i.toLowerCase().includes(null==n?void 0:n.toLowerCase())}).map(i=>{let{name:n,isPaused:t}=i;return(0,l.jsx)("li",{children:(0,l.jsxs)(o.OL,{to:P.O.queuePage(n,a),activeClassName:q.active,title:n,children:[n," ",t&&(0,l.jsxs)("span",{className:q.isPaused,children:["[ ",e("MENU.PAUSED")," ]"]})]})},n)})})}),(0,l.jsx)("a",{className:(0,j.Z)(q.appVersion,q.secondary),target:"_blank",rel:"noreferrer",href:"https://github.com/felixmosh/bull-board/releases",children:"6.3.3"})]})},H={queueTitle:"queueTitle-_L6Q8r",name:"name-sqRel5",description:"description-m3M8Yd"};var Z=a("19392");let B=()=>{let e=(0,Z.O)();return e?(0,l.jsx)("div",{className:H.queueTitle,children:e.name&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h1",{className:H.name,children:e.name}),e.description&&(0,l.jsx)("p",{className:H.description,children:e.description})]})}):(0,l.jsx)("div",{})};var Q=a("58901"),G=a("20666");let J=c.lazy(()=>Promise.all([a.e("56252"),a.e("60290"),a.e("44067"),a.e("23080")]).then(a.bind(a,13686)).then(e=>{let{JobPage:i}=e;return{default:i}})),W=c.lazy(()=>Promise.all([a.e("56252"),a.e("60290"),a.e("44067"),a.e("4670")]).then(a.bind(a,44475)).then(e=>{let{QueuePage:i}=e;return{default:i}})),V=c.lazy(()=>a.e("70021").then(a.bind(a,27916)).then(e=>{let{OverviewPage:i}=e;return{default:i}})),Y=()=>{!function(){let{key:e}=(0,b.TH)();(0,c.useEffect)(()=>{window.scrollTo(0,0)},[e])}();let{actions:e}=(0,M.y)(),{confirmProps:i}=(0,Q.N)();return!function(){let{i18n:e}=(0,u.$G)(),{language:i}=(0,G.F)();(0,c.useEffect)(()=>{i&&e.language!==i&&e.changeLanguage(i)},[i])}(),!function(){let{darkMode:e}=(0,G.F)();(0,c.useEffect)(()=>{e?document.body.classList.add("dark-mode"):document.body.classList.remove("dark-mode")},[e])}(),(0,c.useEffect)(()=>{e.updateQueues()},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(R,{children:[(0,l.jsx)(B,{}),(0,l.jsx)(O,{})]}),(0,l.jsx)("main",{children:(0,l.jsxs)("div",{children:[(0,l.jsx)(c.Suspense,{fallback:(0,l.jsx)(S,{}),children:(0,l.jsxs)(b.rs,{children:[(0,l.jsx)(b.AW,{path:"/queue/:name/:jobId",render:()=>(0,l.jsx)(J,{})}),(0,l.jsx)(b.AW,{path:"/queue/:name",render:()=>(0,l.jsx)(W,{})}),(0,l.jsx)(b.AW,{path:"/",exact:!0,render:()=>(0,l.jsx)(V,{})})]})}),(0,l.jsx)(v,{...i})]})}),(0,l.jsx)(F,{}),(0,l.jsx)(f.Ix,{})]})};var K=a("1304"),X=a("93407"),ee=a("63167"),ei=a("64068");let ea=window.__basePath__=(null===(n=document.head.querySelector("base"))||void 0===n?void 0:n.getAttribute("href"))||"",en=new class e{getQueues(e){let{activeQueue:i,status:a,page:n,jobsPerPage:t}=e;return this.axios.get("/queues",{params:{activeQueue:i,status:a,page:n,jobsPerPage:t}})}retryAll(e,i){return this.axios.put(`/queues/${encodeURIComponent(e)}/retry/${encodeURIComponent(i)}`)}promoteAll(e){return this.axios.put(`/queues/${encodeURIComponent(e)}/promote`)}cleanAll(e,i){return this.axios.put(`/queues/${encodeURIComponent(e)}/clean/${encodeURIComponent(i)}`)}cleanJob(e,i){return this.axios.put(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${i}`)}/clean`)}retryJob(e,i,a){return this.axios.put(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${i}`)}/retry/${encodeURIComponent(a)}`)}promoteJob(e,i){return this.axios.put(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${i}`)}/promote`)}updateJobData(e,i,a){return this.axios.patch(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${i}`)}/update-data`,a)}getJobLogs(e,i){return this.axios.get(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${i}`)}/logs`)}getJob(e,i){return this.axios.get(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${i}`)}`)}addJob(e,i,a,n){return this.axios.post(`/queues/${encodeURIComponent(e)}/add`,{name:i,data:a,options:n})}pauseQueue(e){return this.axios.put(`/queues/${encodeURIComponent(e)}/pause`)}resumeQueue(e){return this.axios.put(`/queues/${encodeURIComponent(e)}/resume`)}emptyQueue(e){return this.axios.put(`/queues/${encodeURIComponent(e)}/empty`)}getStats(){return this.axios.get("/redis/stats")}handleResponse(e){return e.data}async handleError(e){var i,a;return(null===(i=e.response.data)||void 0===i?void 0:i.error)&&f.Am.error(null===(a=e.response.data)||void 0===a?void 0:a.error,{autoClose:5e3}),Promise.resolve(e.response.data)}constructor({basePath:e}={basePath:""}){(0,X._)(this,"axios",void 0),this.axios=ee.Z.create({baseURL:`${e}api`}),this.axios.interceptors.response.use(this.handleResponse,this.handleError)}}({basePath:ea}),et=JSON.parse((null===(t=document.getElementById("__UI_CONFIG__"))||void 0===t?void 0:t.textContent)||"{}");(null===(d=et.pollingInterval)||void 0===d?void 0:d.forceInterval)&&G.F.setState({pollingInterval:et.pollingInterval.forceInterval});let ed=G.F.getState().language||(null===(s=et.locale)||void 0===s?void 0:s.lng)||navigator.language||"en-US";(0,ei.L)({lng:ed,basePath:ea}).then(()=>{(0,r.render)((0,l.jsx)(o.VK,{basename:ea,children:(0,l.jsx)(g._.Provider,{value:et,children:(0,l.jsx)(K.G.Provider,{value:en,children:(0,l.jsx)(Y,{})})})}),document.getElementById("root"))})},64068:function(e,i,a){"use strict";a.d(i,{L:function(){return o},Y:function(){return l}});var n=a(1347),t=a(11690);a(34406);var d=a(59382),s=a(96081);let l=s.Z,c={"es-ES":"es","fr-FR":"fr"};async function r(e){let i=c[e]||e;l=await a(1346)(`./${i}/index.js`).catch(e=>(console.info(e),s.Z))}async function o(e){let{lng:i,basePath:a}=e,s=n.ZP.use(d.Db).use(t.Z);return s.on("languageChanged",e=>r(e)),await r(i),s.init({lng:i,fallbackLng:"en-US",defaultNS:"messages",ns:"messages",load:"currentOnly",backend:{loadPath:`${a}static/locales/{{lng}}/{{ns}}.json`,queryParams:{v:"6.3.3"}},interpolation:{escapeValue:!1}})}},85106:function(e,i,a){"use strict";function n(e,i){return function(a,n,t){return async()=>{try{t&&await i({description:n}),await a(),await e()}catch(e){e&&console.error(e)}}}}a.d(i,{G:function(){return n}})},34620:function(e,i,a){"use strict";a.d(i,{O:function(){return n}});let n={dashboardPage:e=>({pathname:"/",search:e?new URLSearchParams({status:e}).toString():""}),queuePage(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pathname:a,searchParams:n}=new URL(`/queue/${encodeURIComponent(e)}`,"http://fake.com");return i[e]&&"latest"!==i[e]&&n.set("status",i[e]),{pathname:a,search:n.toString()}},jobPage(e,i){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{pathname:t,search:d}=n.queuePage(e,a),{pathname:s}=new URL(`${t}/${encodeURIComponent(i)}`,"http://fake.com");return{pathname:s,search:d}}}}},i={};function a(n){var t=i[n];if(void 0!==t)return t.exports;var d=i[n]={id:n,loaded:!1,exports:{}};return e[n].call(d.exports,d,d.exports,a),d.loaded=!0,d.exports}a.m=e,a.H={},a.G=function(e){Object.keys(a.H).map(function(i){a.H[i](e)})},a.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(i,{a:i}),i},(()=>{var e,i=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};a.t=function(n,t){if(1&t&&(n=this(n)),8&t||"object"==typeof n&&n&&(4&t&&n.__esModule||16&t&&"function"==typeof n.then))return n;var d=Object.create(null);a.r(d);var s={};e=e||[null,i({}),i([]),i(i)];for(var l=2&t&&n;"object"==typeof l&&!~e.indexOf(l);l=i(l))Object.getOwnPropertyNames(l).forEach(function(e){s[e]=function(){return n[e]}});return s.default=function(){return n},a.d(d,s),d}})(),a.d=function(e,i){for(var n in i)a.o(i,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce(function(i,n){return a.f[n](e,i),i},[]))},a.u=function(e){return"static/js/async/"+(({16651:"highlight-worker",54183:"highlight"})[e]||e)+"."+({1004:"c6a6b1e7",10124:"3b4311de",10314:"cd4146b6",10433:"3c56f7f8",10474:"d3e52c82",10634:"6734a7e1",1067:"b6c269df",10731:"6f3ca27a",1075:"4c74c51d",10807:"d9d04a47",10847:"08eba4ae",1109:"9985784c",11120:"d36ac466",11424:"f0008975",11469:"8c2a81ab",11600:"f01cb2a3",11634:"14c572d3",12035:"abae17e3",12041:"2a3ba0f9",12282:"e014bf6d",12291:"5fb4bbc4",12311:"768d2079",12423:"9b7c1887",1266:"0a1877ce",12673:"3aa5e020",12829:"d2db53ff",12958:"f31b9f83",1298:"3dacac46",1309:"50c4d447",13209:"03c017dd",13392:"0071ce96",13399:"a327f5ce",1350:"b04dc250",13523:"88ac262c",13538:"58ca4576",13746:"9f60bdaf",13883:"96cea6c3",14264:"aa3974c7",14385:"097c00e5",14576:"e1693682",1466:"1a375af1",14760:"8aaaa5f6",14776:"a5ff16b6",14777:"b6e63493",14851:"34ee8653",14957:"434b78d5",15132:"8eab3430",1536:"bdc311e9",1550:"237c018e",15641:"d828d296",15724:"783637e0",15747:"f697e337",15934:"901dc4c4",16054:"50ac3169",16116:"81b5516c",16259:"aaf18eb3",16651:"e0105321",16664:"ef2ab6a0",16691:"a8b2a780",16949:"a352452f",17013:"dbc96e34",17030:"cd05eb60",17032:"40e8b63c",17090:"066d4b65",17526:"6ef4ec4d",17561:"8f4a9bbf",17629:"1e6d68d0",1766:"7bf9b8b2",17825:"3dfbff0e",1811:"a5d4b5ec",18164:"5fe06fb5",18171:"af1d8f8d",18323:"41909371",18355:"172a32dd",18423:"178b2d1b",18491:"cf69871d",185:"1c26f761",1886:"91a5e833",18942:"130ec57b",19246:"2a1d515b",19331:"12ca94a5",19407:"ede27bb1",19449:"16127b28",19459:"c46a7a5b",19577:"d47a9d98",19738:"081a50a2",20062:"f5dc5e58",20168:"cea6121a",20176:"e0f4d158",20306:"ce0432cb",20562:"d84966db",20589:"e7a422dc",20606:"9d39403d",2065:"3b3a6827",2092:"d4a1efa3",20926:"eac55503",20976:"81cf76c7",20985:"44fe2d9a",21026:"09bd527f",21110:"3a578eaa",21184:"6269ed75",21374:"c2c7fba6",21856:"b6510ea6",21881:"a81f559e",21943:"697795ef",22023:"a47a57b8",2206:"636d1986",22088:"3c26da2d",2237:"cf0e3429",22404:"bb52136d",22510:"b5a07d3e",22519:"498c6856",22530:"b81b18dc",22862:"19af1e8e",2295:"271701b1",23080:"8c84a1ef",23313:"3be9e216",23381:"12da3072",23501:"4646a4dc",2351:"29ca6319",23539:"33809ff6",2354:"a15a9d8e",23745:"1e1a6b28",23874:"1364f4e0",23907:"ad905f45",23926:"82234597",24006:"cadccb06",24085:"f267e2b2",24228:"1bcc6c7f",24469:"d93850c7",24731:"dc8e6e38",24774:"cae0cd2c",2498:"88fb9354",25025:"e4d98080",25032:"e003584f",25150:"963c18c2",25442:"82626453",25454:"5d514527",25678:"2e14c083",2571:"716f7cae",2585:"fd62ef55",25883:"50e7d595",26019:"4485048f",26093:"0a23ee07",26335:"24d897e6",26366:"e23929d9",26754:"60f6dd2f",26760:"c0177a7e",26846:"bcbb7a7d",26975:"c121509e",27172:"3796ed57",2719:"8e7c25ea",27412:"b5613d58",27428:"141929f7",27437:"ec091436",27906:"0cb8e83d",28e3:"ecbc331f",28181:"43f317f4",28333:"eeb6ff2e",28413:"718e2241",2845:"d5dd8364",28784:"e11a92f5",28853:"18b8e611",28899:"68897fb9",29320:"0d6a93eb",29408:"04675e1c",29528:"cdf040e6",29586:"a39083a2",2977:"06d1b060",29778:"da947a2e",29917:"83c21026",30039:"b08c0b66",3009:"da737e01",30450:"c5825f41",30472:"65597e1d",30474:"022bdf09",30641:"2cfa07b8",30678:"e0cf4712",30761:"6677bd73",30813:"33706803",30969:"97665b1c",31125:"7793a2f5",31189:"6872cf11",31399:"ebfc1b94",31447:"487a3761",31460:"8b001359",31475:"6eba8231",3165:"34ebe623",31654:"9059b3f0",31719:"995b2c08",31832:"6cf2647c",3223:"f718ffaf",32230:"68501dc3",32240:"8f8006d3",32430:"2089fe8e",32495:"608612a6",32543:"f3411e62",32595:"7e8067c5",32970:"238e96b1",33035:"549f8212",3338:"15fd5179",33421:"97822ef5",33538:"aae151e2",33635:"b244a29e",33727:"85ca119a",34003:"2fec3e94",34302:"545803bc",34759:"51703542",3478:"9345c487",34850:"4b970812",34932:"c2b4a67c",34938:"bff23c4e",35136:"8b1bd49a",35245:"e24deb26",35359:"5f44bb4b",35512:"d3820bf7",35533:"483bb33f",35601:"2da49190",35770:"eb24f4c8",35793:"e6990251",35831:"dfca408b",3592:"67525d9c",36113:"fcebc16d",36305:"d1117d78",36346:"1410dbb8",36805:"9620f583",36926:"e6da974a",37001:"7115e11c",37453:"b8947899",37476:"fb77a645",37477:"37e3ceda",37554:"f0c8c306",3756:"a5a9a058",37716:"66244a73",37908:"4e5d4ebe",37923:"b772180b",37981:"63dcd22d",37985:"62dba04f",38023:"04e06c11",38045:"dbdca7ee",38050:"036becdb",38059:"55ca9a7a",38264:"106c01d2",38340:"1e7a4d60",38437:"f8b5e3da",38490:"19964988",38541:"776c88d1",38707:"2d5f9dae",38755:"9ea3085d",38775:"1c3e0899",39029:"3d627694",39124:"9a4fb841",39261:"6df7af76",39307:"cc219a77",39325:"3a48f532",39356:"70261334",39553:"e7b180bf",39614:"a503efc9",39707:"c3695c63",39733:"c195f574",40109:"ffa68e30",40118:"6bb8bcaa",40259:"8fcafe82",40339:"89fe8e8f",40463:"786da866",40517:"48a4e34c",40689:"21d43276",4073:"9c297f45",40774:"0700cdbb",40808:"c81b825b",40970:"5d815928",41048:"361d1df2",41261:"f82f8e70",41275:"fa97f80c",41420:"4767b309",4145:"d98e0a8d",41572:"f9198ebc",41601:"39a2f3ac",41721:"93b0bd66",41928:"1d9f7cbc",42108:"21ea90b2",42145:"f72c3e64",42238:"153f7322",42298:"c867a784",42357:"4cf5243f",42575:"6811e103",42652:"621e87db",42770:"49b47d84",42842:"0441ecd2",42856:"46cb3865",42967:"be7e6239",43042:"46ce81c8",43178:"91678ffb",43210:"2d1b3d32",43714:"6a39f6b3",43810:"fd7fc770",44004:"806e8f8f",4406:"9080170e",44067:"bcfbd2a5",44369:"7bb921db",44381:"a3340653",44744:"72454b71",44980:"9884f9d0",44997:"82019646",45122:"8ec2ea6a",45133:"4fa5d2bd",45181:"ed1f1429",45223:"a9efe132",45245:"791bac9e",45269:"2d0d8e0f",45324:"7ce05862",4547:"b41ae52f",45685:"1b53a873",45771:"1f01a638",45827:"a4823f4d",46025:"c8d706a2",4619:"24fbd7fb",46437:"d1944e88",46476:"d8b087aa",46675:"01982d3d",4670:"08cf1776",46915:"e6710abd",47025:"c8e518e9",47116:"0866f144",47118:"cc0db726",47232:"3967fdec",47423:"97dab8a0",47484:"50bc7713",475:"e23c5a15",47592:"46e627f5",47736:"1e554c9e",47809:"1d8b0fe2",4786:"41ce483a",4798:"be4783ec",48396:"07ec55ec",48740:"639c5215",48801:"b83c46da",48834:"965caaf8",49081:"b042bfc1",491:"a0125b60",49170:"34212fab",49352:"19025f5b",49360:"3fade65b",49429:"819d310e",49516:"d5038e2c",49623:"5fa96975",49802:"045ae677",49878:"3c830d4e",49986:"b62bbe45",50093:"192229a7",50122:"21eda1d4",5016:"bd47dbac",50206:"ee03efa3",50296:"52e98cd5",5033:"a7cbba1f",50389:"8e69f2e0",50454:"d768c143",50522:"276644bc",50535:"41a0b35a",50561:"054b0f90",50577:"0b3a0a95",50643:"43643df7",50886:"0db9a372",51129:"f79373fe",51337:"aca79823",51350:"f1c9f65d",51520:"4e93b965",51620:"b20f504b",5186:"5a854ae4",51953:"9a31290c",51954:"dd7b2083",5198:"6601c1ef",5203:"4b6e4f90",52051:"16d04c86",52062:"1ccbd79e",5216:"63e3cda0",5228:"40890b4f",52305:"1a1e415a",5240:"e86440a9",52441:"dc52f145",52535:"4cdefca9",52731:"561f1dfb",52854:"24aecb72",5287:"cf02e3ab",5289:"2657c680",52913:"3b3fa576",52990:"3ea8f07b",53349:"1cc618cf",53356:"7a3cbf84",53436:"79136691",5353:"c3eddb76",53538:"f6585604",53620:"58dc9c7b",53630:"55917a61",53866:"6f68830b",53884:"67d6245a",54135:"13c8ebb0",54183:"928a4ac5",54219:"054f780a",54546:"1163f9cd",54553:"0f06b938",54871:"e668d006",55041:"c22caba4",55241:"805041b2",55362:"6f05e6f9",5541:"7b068cf2",55632:"27d844a0",5567:"3a68aebd",55737:"09d45b31",55773:"c62a995c",56028:"b4a8a7f7",56221:"34088119",56240:"cba846ba",56252:"01e6a9bf",56267:"e5cff2b3",56268:"aa191a17",56341:"08cd60bb",5653:"e81ee306",56614:"8761252d",56906:"a874b699",56919:"cd45f26f",57022:"e6114d3a",5737:"0c2f9cbf",57622:"8aa8a3a2",57673:"4e6691e2",57809:"901c00d0",57846:"b68d3136",57860:"e7813628",5790:"52a28b74",57974:"3d243d31",58029:"8658984b",58064:"577afbed",58078:"2db25938",58103:"becb3837",58106:"6cc6013c",5813:"665f576a",58153:"c83783f8",58386:"e62b1636",58421:"d0fb271c",5846:"f76a0e30",58515:"b4e7861e",58776:"d0a0654c",58874:"5489f43e",58923:"0cc8939f",58975:"ae66f04c",59109:"fb192aea",59151:"cdeceff9",59261:"c6dfa2b4",59638:"9bd119e1",59709:"78dc2446",59796:"c1d17951",59879:"ed0dd9a6",60290:"7637c675",60475:"8e0516ab",60756:"6b83f7eb",60973:"660e4430",6116:"6b0f704d",61277:"b7d4d18d",61281:"48582760",61398:"9f077334",61444:"0db3bfe6",61495:"e404d936",61578:"2f4f7a92",61624:"28d0f238",61670:"f7893df4",61712:"b575620b",61714:"a1e7743a",61798:"0695eadd",61851:"03a1e382",61953:"457feb35",62145:"8c8d7e92",62179:"e94c0ace",62184:"d1549513",62336:"60d1b994",62379:"769a8638",62437:"1a6e7f83",62438:"6ea2beda",62477:"23e456a5",62663:"253ac2b5",6271:"172e8b73",62999:"d16442b1",63032:"8b302f35",63092:"b73b91c9",63172:"6be130e0",63197:"8c86404c",63298:"edb1475d",63671:"a2aec4f4",63757:"f0329834",63767:"391c17a7",63930:"17dff848",63985:"3849e776",64130:"f933bbca",64735:"f4c2e1b9",6481:"34d813de",64893:"fca47769",64915:"f71984d6",65072:"89c4df62",65076:"2d116fd4",65099:"8a2b48b2",6543:"ba995296",6553:"1e160336",65575:"211a1b32",65736:"90e1adad",65782:"c4ddb583",65902:"9979e1b7",66028:"b265ede8",66108:"e5c908aa",66200:"528bc2ec",66319:"37a93540",66485:"e0945ef4",6653:"2e36effe",66563:"99ec249c",66856:"e5eaa24e",66894:"373f0c0d",66896:"643f707b",67156:"e0353070",67163:"b6f02bfb",67230:"16a596d8",67330:"d3cc28aa",67413:"064506a9",67457:"a749307d",67858:"d36eb946",68215:"a1b0b853",68288:"14a19cca",68373:"94a3bd7d",68429:"40356109",68463:"09f68c52",68556:"f8b71b2a",68563:"f38db1ca",68965:"f809b40e",69067:"4ec19753",69120:"8944380f",69202:"09f9c0e7",69626:"39690c1d",69840:"2fd5f597",69899:"b897b476",69963:"6697c398",69997:"ae80f435",70021:"8a170612",7019:"ab03e099",7023:"5e03d207",70371:"e43edb7e",7047:"0c275b02",70512:"f388bab6",70725:"ee784ff0",70922:"643b8d8f",70947:"ce61990b",70995:"86cec231",7104:"3d756b1f",71252:"b3255378",71378:"c8f9760e",71449:"7b2f2912",71557:"fa39c983",71725:"bae23813",71926:"28773c8a",71944:"5d271bb6",72056:"cda67224",72164:"2dcfb2b3",72262:"92b2c803",7232:"0ac78f71",72518:"ebed2f67",72591:"9e376e9f",72710:"81b13fd1",72812:"4e4cbf7a",72998:"776a8595",73075:"442bfd69",73139:"e36f74c4",7314:"e5daa1ff",73189:"7b029f2a",73210:"089871f4",73252:"299825d8",73289:"fb3f4ceb",73455:"677cd123",73501:"f0f3aad6",73818:"0f56e3f9",7392:"be2547f9",73956:"e33f0b16",74362:"c3911275",74366:"1ca60694",74522:"c8d31b1c",7465:"6517af39",74705:"b5b2ae54",75451:"d412de0d",75485:"f2510f75",75543:"8d9f85dc",75987:"b7947364",76063:"0ed6247b",76092:"1298a4e4",76181:"49bd723e",76292:"a85e7d79",76385:"d6dfc11d",76386:"40fb1c97",76455:"c0ae308e",76495:"b9104147",76516:"2f9bc032",76692:"12c85b5a",76771:"14fa4f38",76791:"02b0cb76",76863:"b147ba03",76888:"f2c31f89",77527:"67574fcf",77697:"2d7747dc",77793:"ceb926dd",77885:"b472829f",77935:"e7152978",77952:"68e2ae1a",78111:"2ae902e9",78136:"319071e7",7823:"90f7102c",78277:"c0c07887",78326:"f9aa6620",78492:"5b64bf63",78583:"d6ad964a",78617:"cb4833ad",78821:"d5857384",78970:"3153e390",79228:"d0366ca5",7924:"e66ebf3e",79248:"98319a2c",79264:"9010f031",7944:"f00ce5ff",79540:"72a69794",79742:"18210fe3",79758:"6aa2774a",79981:"574ab598",80179:"69ac6af3",80299:"aa895ab0",80311:"d6801e91",80373:"6b2ffdea",80658:"d353cce6",80676:"d4ecdbc6",80745:"e1f3998d",80938:"0b25cf99",81191:"06985ac9",81358:"cf338637",81393:"06db3561",81521:"d07d88f8",81535:"af27763d",8157:"4ddd3d4e",81614:"b15d9eba",81685:"8c16246a",81773:"20d362ff",8179:"b8182c6b",81799:"76fbc1d3",81954:"1d4f250a",82183:"fcff87e1",82295:"238a7caa",82320:"7e09a92d",8241:"393e80a2",82541:"be8585fb",82644:"1dc0ebee",8274:"11df270f",8275:"3736f6f4",82759:"4e83e689",82896:"b1fe1e42",83006:"048965a3",83099:"fbe0c400",83160:"aa221d89",83287:"d146052a",83343:"1c4d680c",83545:"9a55e5fe",83804:"02c41285",83907:"1b9438fc",83940:"2f3c6c55",83970:"d7f7100e",8407:"a1db0c89",84475:"2bbb5a29",84497:"569ff74d",845:"d8ddbfce",84546:"330bd1f7",84791:"2d5defab",84854:"8541487b",84880:"74cb6518",8501:"ac5f9539",85093:"c2351775",85426:"825ab66f",85681:"fd2c5d20",85694:"68edf402",85787:"bee88e41",85835:"f985acad",85926:"3281823c",86055:"1fbb566c",86155:"9fe01da9",86202:"609c5977",86394:"82f2a8c7",86548:"f944b2fb",86630:"92010b6f",86791:"bb778a33",86831:"e81dc1d5",87123:"6af0d2b2",87129:"52199417",8746:"82852dec",87586:"5c49a27b",87623:"f5739704",87636:"e69bcf71",87928:"9183885f",87936:"1eb1e712",880:"e49b0c61",88036:"6b37035a",88055:"467e76b0",88099:"2f156156",8813:"f1980f9a",88328:"61a965af",88476:"a62282b4",88524:"de41919f",88830:"55d2b030",88987:"387e7ea1",89216:"24ab2f32",89327:"d39bc713",89485:"4e190a48",89486:"24b8c341",89598:"34fa1f28",89601:"8f132b5b",89651:"e63defd8",89667:"16a55f7f",89819:"21c7f761",89891:"cf6fe8ab",90191:"9786d1f1",90317:"e8738147",90404:"b200b6ba",90785:"81ba2d5c",90937:"b6e231ad",90957:"36cd82ba",91106:"ac58a956",91259:"0056852c",9128:"890d918c",91280:"2556f87e",91355:"536ce223",91717:"9289d8de",91934:"02ec6ee8",92110:"d181559d",92324:"bd944437",92411:"57c2fe58",92603:"3ffb4bda",92669:"e7fdcabc",92759:"f8f1d6e2",92783:"aab807c0",92802:"db4b611e",92803:"df13bc82",92895:"b4feceb6",92907:"da535db6",92968:"d712c261",92975:"abe45068",9315:"0703d736",93157:"8bd49458",93160:"da7122bf",93312:"8121a79f",93357:"728a2f6d",93640:"e60bb3dd",93745:"78f947ca",93809:"8ca56a5f",93833:"6ae3b249",93929:"62cc9274",93942:"71f9d38c",93969:"569b4d31",94107:"355991fe",94282:"85e17ae7",9432:"3b964a5e",94370:"a31b22a8",94489:"6cc2dbd3",94870:"e1e1cf66",95039:"77bf5775",95281:"e1ba804b",9562:"6cdac491",95929:"c1e120ca",96014:"36dd32ff",96230:"fd156baf",96310:"4acd23f0",96509:"200a1666",9671:"df6ad2ea",96749:"0f447105",96851:"0b721064",9686:"2b3f83b7",96924:"3e589058",96931:"1c67476b",97226:"bca50687",97241:"b8133980",97350:"9fe1635f",97364:"de9aeae4",97381:"81fa4d94",97653:"4e3d1de0",97984:"df51aff2",97995:"d690ea3c",98147:"cdcf0c77",98222:"dac1e0ad",98223:"4f018a09",98556:"6a673dc6",98667:"c01d7e90",98730:"b5c73782",98844:"bbba7662",98907:"8f4e0178",99039:"9363f394",99244:"9635f3ef",99282:"38e22983",99414:"dcd88ed1",99471:"9fc0b80d",99518:"26dc6baf",99537:"4e7338e4",99571:"a17c660d",9985:"7963feed"})[e]+".js"},a.miniCssF=function(e){return"static/css/async/"+e+"."+({23080:"67780f94",26335:"593132bd",4670:"812ee089",70021:"f7e7c024",97241:"a605b410"})[e]+".css"},a.h=function(){return"3b6ef04878163367"},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},(()=>{var e={},i="@bull-board/ui:";a.l=function(n,t,d,s){if(e[n]){e[n].push(t);return}if(void 0!==d){for(var l,c,r=document.getElementsByTagName("script"),o=0;o<r.length;o++){var b=r[o];if(b.getAttribute("src")==n||b.getAttribute("data-webpack")==i+d){l=b;break}}}!l&&(c=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",i+d),l.src=n),e[n]=[t];var f=function(i,a){l.onerror=l.onload=null,clearTimeout(x);var t=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),t&&t.forEach(function(e){return e(a)}),i)return i(a)},x=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),c&&document.head.appendChild(l)}})(),a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=function(e){return e.paths=[],!e.children&&(e.children=[]),e},a.nc=void 0,(()=>{var e=[];a.O=function(i,n,t,d){if(n){d=d||0;for(var s=e.length;s>0&&e[s-1][2]>d;s--)e[s]=e[s-1];e[s]=[n,t,d];return}for(var l=1/0,s=0;s<e.length;s++){for(var n=e[s][0],t=e[s][1],d=e[s][2],c=!0,r=0;r<n.length;r++)(!1&d||l>=d)&&Object.keys(a.O).every(function(e){return a.O[e](n[r])})?n.splice(r--,1):(c=!1,d<l&&(l=d));if(c){e.splice(s--,1);var o=t();void 0!==o&&(i=o)}}return i}})(),a.rv=function(){return"1.0.9"},(()=>{a.g.importScripts&&(e=a.g.location+"");var e,i=a.g.document;if(!e&&i&&(i.currentScript&&"SCRIPT"===i.currentScript.tagName.toUpperCase()&&(e=i.currentScript.src),!e)){var n=i.getElementsByTagName("script");if(n.length){for(var t=n.length-1;t>-1&&(!e||!/^http(s?):/.test(e));)e=n[t--].src}}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e+"../../"})(),(()=>{if("undefined"!=typeof document){var e=function(e,i,n,t,d){var s=document.createElement("link");return s.rel="stylesheet",s.type="text/css",a.nc&&(s.nonce=a.nc),s.onerror=s.onload=function(a){if(s.onerror=s.onload=null,"load"===a.type)t();else{var n=a&&("load"===a.type?"missing":a.type),l=a&&a.target&&a.target.href||i,c=Error("Loading CSS chunk "+e+" failed.\\n("+l+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=n,c.request=l,s.parentNode&&s.parentNode.removeChild(s),d(c)}},s.href=i,n?n.parentNode.insertBefore(s,n.nextSibling):document.head.appendChild(s),s},i=function(e,i){for(var a=document.getElementsByTagName("link"),n=0;n<a.length;n++){var t=a[n],d=t.getAttribute("data-href")||t.getAttribute("href");if("stylesheet"===t.rel&&(d===e||d===i))return t}for(var s=document.getElementsByTagName("style"),n=0;n<s.length;n++){var t=s[n],d=t.getAttribute("data-href");if(d===e||d===i)return t}},n={56909:0};a.f.miniCss=function(t,d){if(n[t])d.push(n[t]);else if(0!==n[t]&&({4670:1,70021:1,26335:1,97241:1,23080:1})[t]){var s;d.push(n[t]=(s=t,new Promise(function(n,t){var d=a.miniCssF(s),l=a.p+d;if(i(d,l))return n();e(s,l,null,n,t)})).then(function(){n[t]=0},function(e){throw delete n[t],e}))}}}})(),(()=>{a.b=document.baseURI||self.location.href;var e={56909:0};a.f.j=function(i,n){var t=a.o(e,i)?e[i]:void 0;if(0!==t){if(t)n.push(t[2]);else{var d=new Promise(function(a,n){t=e[i]=[a,n]});n.push(t[2]=d);var s=a.p+a.u(i),l=Error();a.l(s,function(n){if(a.o(e,i)&&(0!==(t=e[i])&&(e[i]=void 0),t)){var d=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;l.message="Loading chunk "+i+" failed.\n("+d+": "+s+")",l.name="ChunkLoadError",l.type=d,l.request=s,t[1](l)}},"chunk-"+i,i)}}},a.H.j=function(i){if(!a.o(e,i)||void 0===e[i]){e[i]=null;var n=document.createElement("link");n.charset="utf-8",a.nc&&n.setAttribute("nonce",a.nc),n.rel="preload",n.as="script",n.href=a.p+a.u(i),document.head.appendChild(n)}},a.O.j=function(i){return 0===e[i]};var i=function(i,n){var t=n[0],d=n[1],s=n[2],l,c,r=0;if(t.some(function(i){return 0!==e[i]})){for(l in d)a.o(d,l)&&(a.m[l]=d[l]);if(s)var o=s(a)}for(i&&i(n);r<t.length;r++)c=t[r],a.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return a.O(o)},n=self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[];n.forEach(i.bind(null,0)),n.push=i.bind(null,n.push.bind(n))})(),a.ruid="bundler=rspack@1.0.9",(()=>{var e={23080:["85093","54183"],4670:["85093","54183"]};a.f.preload=function(i){var n=e[i];Array.isArray(n)&&n.map(a.G)}})();var n=a.O(void 0,["22072","43361","2118","83544"],function(){return a("68557")});n=a.O(n)})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bull-board/ui",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.3",
|
|
4
4
|
"description": "A Dashboard UI built on top of bull or bullmq.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bull",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"gen:jsonSchema:bull": "npx ts-json-schema-generator --path '../../node_modules/bull/*.ts' --type 'Bull.JobOptions' --out './src/schemas/bull/jobOptions.json'"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@bull-board/api": "6.3.
|
|
35
|
+
"@bull-board/api": "6.3.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@codemirror/commands": "^6.5.0",
|
|
@@ -1 +0,0 @@
|
|
|
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)}}}}}]);
|