@bull-board/ui 6.16.2 → 6.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.ejs +1 -1
- package/dist/static/css/async/42279.0d94c886.css +1 -0
- package/dist/static/css/async/68904.dbdf7241.css +1 -0
- package/dist/static/js/async/29662.607b2218.js +1 -0
- package/dist/static/js/async/{19695.f948dbe8.js → 42279.76a8888a.js} +1 -1
- package/dist/static/js/async/61479.866d9060.js +1 -0
- package/dist/static/js/async/{39670.592e0219.js → 68904.30e6c33b.js} +1 -1
- package/dist/static/js/async/75976.a3367867.js +1 -0
- package/dist/static/js/async/99902.1d8fda97.js +1 -0
- package/dist/static/js/{main.c85a1eee.js → main.52ccd466.js} +2 -2
- package/dist/static/locales/da-DK/messages.json +7 -0
- package/dist/static/locales/en-GB/messages.json +7 -0
- package/dist/static/locales/en-US/messages.json +9 -0
- package/dist/static/locales/es-ES/messages.json +7 -0
- package/dist/static/locales/fr-FR/messages.json +7 -0
- package/dist/static/locales/ja-JP/messages.json +7 -0
- package/dist/static/locales/ko-KR/messages.json +7 -0
- package/dist/static/locales/pt-BR/messages.json +7 -0
- package/dist/static/locales/tr-TR/messages.json +7 -0
- package/dist/static/locales/zh-CN/messages.json +7 -0
- package/package.json +3 -2
- package/typings/app.d.ts +1 -0
- package/dist/static/css/async/19695.e655d880.css +0 -1
- package/dist/static/css/async/39670.47fb1126.css +0 -1
- package/dist/static/js/async/16194.bfc53e42.js +0 -1
- package/dist/static/js/async/29662.f5cdbad6.js +0 -1
- package/dist/static/js/async/81447.4ed9a009.js +0 -1
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"EMPTY": "비우기",
|
|
78
78
|
"OBLITERATE": "완전 삭제",
|
|
79
79
|
"ADD_JOB": "작업 추가",
|
|
80
|
+
"SET_CONCURRENCY": "동시성 설정",
|
|
80
81
|
"CONFIRM": {
|
|
81
82
|
"RETRY_ALL": "모든 {{status}} 작업을 재시도하시겠습니까?",
|
|
82
83
|
"CLEAN_ALL": "모든 {{status}} 작업을 삭제하시겠습니까?",
|
|
@@ -144,6 +145,12 @@
|
|
|
144
145
|
"COLLAPSE_JOB_ERROR": "작업 오류 접기",
|
|
145
146
|
"DARK_MODE": "다크 모드"
|
|
146
147
|
},
|
|
148
|
+
"CONCURRENCY": {
|
|
149
|
+
"TITLE": "글로벌 동시성",
|
|
150
|
+
"DESCRIPTION": "모든 워커에서 병렬로 처리되는 최대 작업 수입니다. 0으로 설정하면 제한이 해제됩니다.",
|
|
151
|
+
"CONCURRENCY": "동시성",
|
|
152
|
+
"SAVE": "저장"
|
|
153
|
+
},
|
|
147
154
|
"ADD_JOB": {
|
|
148
155
|
"TITLE": "작업 추가",
|
|
149
156
|
"TITLE_duplicate": "작업 복제",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
"EMPTY": "Limpar",
|
|
80
80
|
"OBLITERATE": "Obliterar",
|
|
81
81
|
"ADD_JOB": "Adicionar trabalho",
|
|
82
|
+
"SET_CONCURRENCY": "Definir concorrência",
|
|
82
83
|
"CONFIRM": {
|
|
83
84
|
"RETRY_ALL": "Deseja realmente reprocessar todos as {{status}} tarefas?",
|
|
84
85
|
"CLEAN_ALL": "Deseja realmente limpar todos as {{status}} tarefas?",
|
|
@@ -148,6 +149,12 @@
|
|
|
148
149
|
"COLLAPSE_JOB_ERROR": "Recolher erros da tarefa",
|
|
149
150
|
"DARK_MODE": "Modo escuro"
|
|
150
151
|
},
|
|
152
|
+
"CONCURRENCY": {
|
|
153
|
+
"TITLE": "Concorrência global",
|
|
154
|
+
"DESCRIPTION": "Número máximo de jobs processados em paralelo em todos os workers. Defina como 0 para remover o limite.",
|
|
155
|
+
"CONCURRENCY": "Concorrência",
|
|
156
|
+
"SAVE": "Salvar"
|
|
157
|
+
},
|
|
151
158
|
"ADD_JOB": {
|
|
152
159
|
"TITLE": "Adicionar tarefa",
|
|
153
160
|
"TITLE_duplicate": "Duplicar tarefa",
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"EMPTY": "Boşalt",
|
|
78
78
|
"OBLITERATE": "Tamamen Sil",
|
|
79
79
|
"ADD_JOB": "İş ekle",
|
|
80
|
+
"SET_CONCURRENCY": "Eşzamanlılığı ayarla",
|
|
80
81
|
"CONFIRM": {
|
|
81
82
|
"RETRY_ALL": "Tüm {{status}} işleri yeniden denemek istediğinizden emin misiniz?",
|
|
82
83
|
"CLEAN_ALL": "Tüm {{status}} işleri temizlemek istediğinizden emin misiniz?",
|
|
@@ -144,6 +145,12 @@
|
|
|
144
145
|
"COLLAPSE_JOB_ERROR": "İş hatasını daralt",
|
|
145
146
|
"DARK_MODE": "Karanlık mod"
|
|
146
147
|
},
|
|
148
|
+
"CONCURRENCY": {
|
|
149
|
+
"TITLE": "Genel eşzamanlılık",
|
|
150
|
+
"DESCRIPTION": "Tüm işçilerde paralel olarak işlenen maksimum iş sayısı. Sınırı kaldırmak için 0 olarak ayarlayın.",
|
|
151
|
+
"CONCURRENCY": "Eşzamanlılık",
|
|
152
|
+
"SAVE": "Kaydet"
|
|
153
|
+
},
|
|
147
154
|
"ADD_JOB": {
|
|
148
155
|
"TITLE": "İş ekle",
|
|
149
156
|
"TITLE_duplicate": "İşi çoğalt",
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"EMPTY": "清空",
|
|
77
77
|
"OBLITERATE": "彻底删除",
|
|
78
78
|
"ADD_JOB": "添加作业",
|
|
79
|
+
"SET_CONCURRENCY": "设置并发数",
|
|
79
80
|
"CONFIRM": {
|
|
80
81
|
"RETRY_ALL": "您确定要重试所有{{status}}作业吗?",
|
|
81
82
|
"CLEAN_ALL": "您确定要清理所有{{status}}作业吗?",
|
|
@@ -142,6 +143,12 @@
|
|
|
142
143
|
"COLLAPSE_JOB_ERROR": "折叠作业错误",
|
|
143
144
|
"DARK_MODE": "黑暗模式"
|
|
144
145
|
},
|
|
146
|
+
"CONCURRENCY": {
|
|
147
|
+
"TITLE": "全局并发",
|
|
148
|
+
"DESCRIPTION": "所有工作进程中并行处理的最大任务数。设置为 0 可移除限制。",
|
|
149
|
+
"CONCURRENCY": "并发数",
|
|
150
|
+
"SAVE": "保存"
|
|
151
|
+
},
|
|
145
152
|
"ADD_JOB": {
|
|
146
153
|
"TITLE": "添加作业",
|
|
147
154
|
"TITLE_duplicate": "复制工作",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bull-board/ui",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.17.0",
|
|
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.
|
|
35
|
+
"@bull-board/api": "6.17.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@codemirror/commands": "^6.8.1",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"react": "^17.0.2",
|
|
70
70
|
"react-dom": "^17.0.2",
|
|
71
71
|
"react-i18next": "^15.7.3",
|
|
72
|
+
"react-json-view-lite": "1.5.0",
|
|
72
73
|
"react-paginate": "^8.3.0",
|
|
73
74
|
"react-router-dom": "^5.3.4",
|
|
74
75
|
"react-toastify": "^7.0.4",
|
package/typings/app.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.card-xqyZlH{background-color:var(--card-bg);box-shadow:var(--card-shadow);border-radius:.25rem;padding:1em;display:flex}.details-LkCTWS{flex-direction:column;height:100%;display:flex}.tabActions-fF3v6_{margin:1rem 0 2rem;padding:0;list-style:none;display:flex}.tabActions-fF3v6_ li+li{margin-left:.75rem}.tabContent-qmHNgq::-webkit-scrollbar{width:.5rem}.tabContent-qmHNgq::-webkit-scrollbar-track{background:var(--details-scrollbar-track-bg);padding:2px}.tabContent-qmHNgq::-webkit-scrollbar-thumb{background-color:var(--details-scrollbar-thumb-bg);border-radius:4px}.tabContent-qmHNgq{flex:1;max-width:calc(100% - 80px);position:relative;overflow:auto}.tabContent-qmHNgq .error{color:var(--details-error-color)}.tabContent-qmHNgq .warn{color:var(--details-warn-color)}.tabContent-qmHNgq pre{margin:0}.codeContainerWrapper-ZpYBAP{align-items:flex-start;gap:1ch;display:flex}.codeContainerWrapper-ZpYBAP pre{flex:1}.copyBtn-vLoi5u{opacity:0;transition:opacity .15s ease-in}.codeContainerWrapper-ZpYBAP:hover .copyBtn-vLoi5u{opacity:1}.field-JbAWJt>label{font-size:.875rem;line-height:1.25rem;display:block}.field-JbAWJt+.field-JbAWJt{margin-top:1rem}.field-JbAWJt>input,.field-JbAWJt>select{width:100%;display:block;margin-top:.25rem!important;font-size:.875rem!important;line-height:1.25rem!important}.field-JbAWJt.inline-vXG0Za{align-items:center;display:flex}.jobLogs-MsL4aJ{background:var(--job-logs-bg);height:100%;margin:0;position:relative;overflow:hidden}.preWrapper-V9RpQs{max-height:100%;padding:40px .5rem .5rem;overflow:auto}.preWrapper-V9RpQs ol{white-space:pre-wrap;word-break:break-all;display:block}.preWrapper-V9RpQs ol li{padding-inline-start:1rem}.preWrapper-V9RpQs ol li::marker{color:var(--job-logs-marker-color);content:attr(data-line-number)}.preWrapper-V9RpQs::-webkit-scrollbar{width:.5rem}.preWrapper-V9RpQs::-webkit-scrollbar-track{background:var(--job-logs-scrollbar-track-bg);padding:2px}.preWrapper-V9RpQs::-webkit-scrollbar-thumb{background-color:var(--job-logs-scrollbar-thumb-bg);border-radius:4px}.toolbar-duDU2f{background:var(--job-logs-toolbar-bg);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);text-align:right;z-index:1;margin:0;padding:0 0 .5rem .5rem;list-style:none;display:flex;position:absolute;top:0;left:0;right:1rem}.toolbar-duDU2f>li:first-child{flex:1}.toolbar-duDU2f>li button{height:100%}.toolbar-duDU2f>li+li{margin-left:.5rem}.jobLogs-MsL4aJ:-webkit-full-screen .toolbar-duDU2f{padding:1rem;position:fixed}.jobLogs-MsL4aJ:fullscreen .toolbar-duDU2f{padding:1rem;position:fixed}.jobLogs-MsL4aJ:-webkit-full-screen .preWrapper-V9RpQs{height:100%;padding:60px 1rem 1rem}.jobLogs-MsL4aJ:fullscreen .preWrapper-V9RpQs{height:100%;padding:60px 1rem 1rem}.toolbar-duDU2f .searchBar-N4o70g{width:100%}.logLineCopyButton-LnHhmG{opacity:0;margin-inline-start:1ch;transition:opacity .15s ease-in}li:hover .logLineCopyButton-LnHhmG{opacity:1}.tooltip-QJB3Pz{position:relative}.tooltip-QJB3Pz:before{content:attr(data-title);background-color:var(--tooltip-bg);color:var(--tooltip-text-color);pointer-events:none;opacity:0;z-index:2;white-space:nowrap;border-radius:.285714rem;margin-bottom:.75rem;padding:.2em .75em;font-size:.833rem;font-weight:300;transition:transform .25s ease-in-out,opacity .25s ease-in-out;position:absolute;bottom:100%;left:50%;transform:translate(-50%)translateY(-25%)}.tooltip-QJB3Pz:hover:before{opacity:1;transform:translate(-50%)translateY(0)}.jobActions-XfoQK8{margin:0;padding:0;list-style:none;display:flex}.jobActions-XfoQK8 li+li{margin-left:.5rem}.jobActions-XfoQK8 .button-GXX8BV{padding:.5rem}.progress-Rr7sCM{width:80px;height:80px}.progress-Rr7sCM circle{fill:none;transition:stroke-dashoffset .5s ease-in-out}.progress-Rr7sCM circle:first-child{stroke:var(--separator-color)}.progress-Rr7sCM circle.failed-rTUpGj{stroke:var(--failed)}.progress-Rr7sCM circle.success-RY6h2q{stroke:var(--completed)}.progress-Rr7sCM text{fill:var(--card-text-secondary-color);font-family:inherit;font-size:1.3rem;font-weight:300}.timeline-lF9niS{border:0;border-right:2px solid;border-image:linear-gradient(to bottom,var(--card-bg),var(--separator-color)10%,var(--separator-color)90%,var(--card-bg))1 100%;color:var(--card-text-secondary-color);height:100%;margin:0;padding:1.5rem 1rem 1.5rem 0;font-weight:300;list-style:none}.timeline-lF9niS li{display:block}.timeline-lF9niS li+li{margin-top:1.5rem}.timeline-lF9niS li>time{color:var(--accent-color-d1);position:relative}.timeline-lF9niS li>time:before{content:"";background-color:var(--card-text-secondary-color);border:3px solid var(--card-bg);border-radius:100%;width:.5rem;height:.5rem;margin-top:-.5rem;position:absolute;top:50%;right:-1.5rem}.timeline-lF9niS li>small{line-height:1;display:block}.timeline-lF9niS li>small+small{margin-top:1.5rem}.timelineWrapper-iZqG0C{flex:1;position:relative}.card-BRjpw_{background-color:var(--card-bg);box-shadow:var(--card-shadow);border-radius:.25rem;flex-direction:column;max-height:500px;padding:1em;display:flex}.card-BRjpw_+.card-BRjpw_{margin-top:2rem}.contentWrapper-Aj9Wmy{flex-direction:column;flex:1;display:flex}.title-wDT4dB{border-bottom:1px solid var(--separator-color);justify-content:space-between;align-items:baseline;padding-bottom:.5rem;display:flex}.title-wDT4dB h5,.sideInfo-a9IFbv span{font-size:1.2rem;font-weight:300;line-height:1}.title-wDT4dB h5 span{color:var(--card-text-secondary-color);margin-left:1rem;font-size:.833em}.header-Lw4QCc{justify-content:space-between;align-items:center;width:100%;display:flex}.header-Lw4QCc h4{color:var(--card-text-color);font-size:1.2rem;font-weight:300}.details-JRsI9B{z-index:1;width:100%;max-height:420px;margin-top:1rem;display:flex}.sideInfo-a9IFbv{text-align:right;flex-direction:column;flex-shrink:0;width:200px;padding-right:2rem;display:flex}.sideInfo-a9IFbv span{white-space:nowrap;text-overflow:ellipsis;padding-right:1rem;display:block;overflow:hidden}.collapseBtn-J6rMz7{padding:.25rem .5rem}.content-SHI77x{flex:1;position:relative;overflow:hidden}.content-SHI77x .progress-POOya3{position:absolute;bottom:0;right:0}.jobLink-wmCWQg{color:inherit;text-decoration:none}.jobLink-wmCWQg:hover{text-decoration:underline}.externalLink-dX0ReW{border-radius:.25rem;align-items:center;gap:.25rem;margin-left:1rem;padding:.25rem .5rem;font-size:.9rem;text-decoration:none;transition:background-color .2s;display:inline-flex}.externalLink-dX0ReW:hover{text-decoration:underline}.externalLink-dX0ReW:focus{outline-offset:2px}.externalLink-dX0ReW>svg{fill:var(--button-icon-fill)}.titleWithLink-UFeEb7{align-items:center;gap:.5rem;display:flex}.externalLink-dX0ReW{color:inherit;align-items:center;text-decoration:none;display:inline-flex}.pagination-Jxux8S{flex-direction:row;margin:0;padding:0;list-style:none;display:flex}.pagination-Jxux8S li+li{margin-left:.25em}.pagination-Jxux8S li{line-height:normal}.pagination-Jxux8S a{color:inherit;border-radius:.285714rem;padding:.6em .928571em;line-height:1;text-decoration:none;transition:background-color .15s ease-in-out;display:flex}.pagination-Jxux8S a:hover,.pagination-Jxux8S a:focus{background-color:var(--button-default-hover-bg)}.pagination-Jxux8S a:active,.pagination-Jxux8S li.isActive-mi6SmB a{background-color:var(--button-default-active-bg)}.pagination-Jxux8S a svg{vertical-align:middle;fill:currentColor;height:1em;display:inline-block}.pagination-Jxux8S li.disabled-AC9vJS{opacity:.45;pointer-events:none}.queueActions-dnGfku{margin:0;padding:0;list-style:none;display:flex}.queueActions-dnGfku>li+li{margin-left:.25rem}.queueActions-dnGfku .button-nYphDd>svg{fill:var(--card-text-secondary-color);margin:-.25em .5em 0 0}.queueActions-dnGfku .button-nYphDd:hover>svg,.queueActions-dnGfku .button-nYphDd:focus>svg{fill:var(--accent-color-d1)}.trigger-GNtOnV{justify-self:flex-end;margin-bottom:.25em;padding:.5em .65em}.danger-GDAQpl{color:var(--failed)!important}.danger-GDAQpl>svg{fill:currentColor!important}.statusMenu-MKEeK1{border-bottom:2px solid var(--status-menu-border-color);margin-bottom:2rem;display:flex}.statusMenu-MKEeK1>a{color:var(--status-menu-text);border-bottom:2px solid #0000;align-items:center;margin:0 0 -2px;padding:.5em 1em;text-decoration:none;transition:border-bottom-color .2s ease-in-out,color .1s;display:flex}.statusMenu-MKEeK1>a span{white-space:nowrap;flex:1}.statusMenu-MKEeK1>a span:before{content:attr(title);visibility:hidden;height:0;font-weight:600;display:block;overflow:hidden}.statusMenu-MKEeK1>a:hover,.statusMenu-MKEeK1>a:active{border-color:var(--status-menu-hover-text)}.statusMenu-MKEeK1>a.active-doMaqb{border-color:var(--status-menu-active-border);color:var(--status-menu-active-text);font-weight:500}.statusMenu-MKEeK1>div{text-align:right;flex:1}.badge-IioYbb{background-color:var(--badge-bg);border-color:var(--badge-bg);color:var(--badge-text-color);text-align:center;border-radius:500rem;margin:-.5em 0 -.5em .5rem;padding:.25em .75em;font-size:.833rem;font-weight:400;line-height:1em;display:inline-block}.stickyHeader-Woc0cg{top:var(--header-height);z-index:2;background-color:var(--sticky-header-bg);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);margin:0 -1rem;padding:0 1rem;position:sticky}.actionContainer-gipYSV{justify-content:space-between;align-items:center;margin-top:-1rem;padding-bottom:1rem;display:flex}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.card-xqyZlH{background-color:var(--card-bg);box-shadow:var(--card-shadow);border-radius:.25rem;padding:1em;display:flex}.details-LkCTWS{flex-direction:column;height:100%;display:flex}.tabActions-fF3v6_{margin:1rem 0 2rem;padding:0;list-style:none;display:flex}.tabActions-fF3v6_ li+li{margin-left:.75rem}.tabContent-qmHNgq::-webkit-scrollbar{width:.5rem}.tabContent-qmHNgq::-webkit-scrollbar-track{background:var(--details-scrollbar-track-bg);padding:2px}.tabContent-qmHNgq::-webkit-scrollbar-thumb{background-color:var(--details-scrollbar-thumb-bg);border-radius:4px}.tabContent-qmHNgq{flex:1;max-width:calc(100% - 80px);position:relative;overflow:auto}.tabContent-qmHNgq .error{color:var(--details-error-color)}.tabContent-qmHNgq .warn{color:var(--details-warn-color)}.tabContent-qmHNgq pre{margin:0}.codeContainerWrapper-ZpYBAP{align-items:flex-start;gap:1ch;display:flex}.codeContainerWrapper-ZpYBAP pre{flex:1}.copyBtn-vLoi5u{opacity:0;transition:opacity .15s ease-in}.codeContainerWrapper-ZpYBAP:hover .copyBtn-vLoi5u{opacity:1}.field-JbAWJt>label{font-size:.875rem;line-height:1.25rem;display:block}.field-JbAWJt+.field-JbAWJt{margin-top:1rem}.field-JbAWJt>input,.field-JbAWJt>select{width:100%;display:block;margin-top:.25rem!important;font-size:.875rem!important;line-height:1.25rem!important}.field-JbAWJt.inline-vXG0Za{align-items:center;display:flex}.jobLogs-MsL4aJ{background:var(--job-logs-bg);height:100%;margin:0;position:relative;overflow:hidden}.preWrapper-V9RpQs{max-height:100%;padding:40px .5rem .5rem;overflow:auto}.preWrapper-V9RpQs ol{white-space:pre-wrap;word-break:break-all;display:block}.preWrapper-V9RpQs ol li{padding-inline-start:1rem}.preWrapper-V9RpQs ol li::marker{color:var(--job-logs-marker-color);content:attr(data-line-number)}.preWrapper-V9RpQs::-webkit-scrollbar{width:.5rem}.preWrapper-V9RpQs::-webkit-scrollbar-track{background:var(--job-logs-scrollbar-track-bg);padding:2px}.preWrapper-V9RpQs::-webkit-scrollbar-thumb{background-color:var(--job-logs-scrollbar-thumb-bg);border-radius:4px}.toolbar-duDU2f{background:var(--job-logs-toolbar-bg);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);text-align:right;z-index:1;margin:0;padding:0 0 .5rem .5rem;list-style:none;display:flex;position:absolute;top:0;left:0;right:1rem}.toolbar-duDU2f>li:first-child{flex:1}.toolbar-duDU2f>li button{height:100%}.toolbar-duDU2f>li+li{margin-left:.5rem}.jobLogs-MsL4aJ:-webkit-full-screen .toolbar-duDU2f{padding:1rem;position:fixed}.jobLogs-MsL4aJ:fullscreen .toolbar-duDU2f{padding:1rem;position:fixed}.jobLogs-MsL4aJ:-webkit-full-screen .preWrapper-V9RpQs{height:100%;padding:60px 1rem 1rem}.jobLogs-MsL4aJ:fullscreen .preWrapper-V9RpQs{height:100%;padding:60px 1rem 1rem}.toolbar-duDU2f .searchBar-N4o70g{width:100%}.logLineCopyButton-LnHhmG{opacity:0;margin-inline-start:1ch;transition:opacity .15s ease-in}li:hover .logLineCopyButton-LnHhmG{opacity:1}.tooltip-QJB3Pz{position:relative}.tooltip-QJB3Pz:before{content:attr(data-title);background-color:var(--tooltip-bg);color:var(--tooltip-text-color);pointer-events:none;opacity:0;z-index:2;white-space:nowrap;border-radius:.285714rem;margin-bottom:.75rem;padding:.2em .75em;font-size:.833rem;font-weight:300;transition:transform .25s ease-in-out,opacity .25s ease-in-out;position:absolute;bottom:100%;left:50%;transform:translate(-50%)translateY(-25%)}.tooltip-QJB3Pz:hover:before{opacity:1;transform:translate(-50%)translateY(0)}.jobActions-XfoQK8{margin:0;padding:0;list-style:none;display:flex}.jobActions-XfoQK8 li+li{margin-left:.5rem}.jobActions-XfoQK8 .button-GXX8BV{padding:.5rem}.progress-Rr7sCM{width:80px;height:80px}.progress-Rr7sCM circle{fill:none;transition:stroke-dashoffset .5s ease-in-out}.progress-Rr7sCM circle:first-child{stroke:var(--separator-color)}.progress-Rr7sCM circle.failed-rTUpGj{stroke:var(--failed)}.progress-Rr7sCM circle.success-RY6h2q{stroke:var(--completed)}.progress-Rr7sCM text{fill:var(--card-text-secondary-color);font-family:inherit;font-size:1.3rem;font-weight:300}.timeline-lF9niS{border:0;border-right:2px solid;border-image:linear-gradient(to bottom,var(--card-bg),var(--separator-color)10%,var(--separator-color)90%,var(--card-bg))1 100%;color:var(--card-text-secondary-color);height:100%;margin:0;padding:1.5rem 1rem 1.5rem 0;font-weight:300;list-style:none}.timeline-lF9niS li{display:block}.timeline-lF9niS li+li{margin-top:1.5rem}.timeline-lF9niS li>time{color:var(--accent-color-d1);position:relative}.timeline-lF9niS li>time:before{content:"";background-color:var(--card-text-secondary-color);border:3px solid var(--card-bg);border-radius:100%;width:.5rem;height:.5rem;margin-top:-.5rem;position:absolute;top:50%;right:-1.5rem}.timeline-lF9niS li>small{line-height:1;display:block}.timeline-lF9niS li>small+small{margin-top:1.5rem}.timelineWrapper-iZqG0C{flex:1;position:relative}.card-BRjpw_{background-color:var(--card-bg);box-shadow:var(--card-shadow);border-radius:.25rem;flex-direction:column;max-height:500px;padding:1em;display:flex}.card-BRjpw_+.card-BRjpw_{margin-top:2rem}.contentWrapper-Aj9Wmy{flex-direction:column;flex:1;display:flex}.title-wDT4dB{border-bottom:1px solid var(--separator-color);justify-content:space-between;align-items:baseline;padding-bottom:.5rem;display:flex}.title-wDT4dB h5,.sideInfo-a9IFbv span{font-size:1.2rem;font-weight:300;line-height:1}.title-wDT4dB h5 span{color:var(--card-text-secondary-color);margin-left:1rem;font-size:.833em}.header-Lw4QCc{justify-content:space-between;align-items:center;width:100%;display:flex}.header-Lw4QCc h4{color:var(--card-text-color);font-size:1.2rem;font-weight:300}.details-JRsI9B{z-index:1;width:100%;max-height:420px;margin-top:1rem;display:flex}.sideInfo-a9IFbv{text-align:right;flex-direction:column;flex-shrink:0;width:200px;padding-right:2rem;display:flex}.sideInfo-a9IFbv span{white-space:nowrap;text-overflow:ellipsis;padding-right:1rem;display:block;overflow:hidden}.collapseBtn-J6rMz7{padding:.25rem .5rem}.content-SHI77x{flex:1;position:relative;overflow:hidden}.content-SHI77x .progress-POOya3{position:absolute;bottom:0;right:0}.jobLink-wmCWQg{color:inherit;text-decoration:none}.jobLink-wmCWQg:hover{text-decoration:underline}.externalLink-dX0ReW{border-radius:.25rem;align-items:center;gap:.25rem;margin-left:1rem;padding:.25rem .5rem;font-size:.9rem;text-decoration:none;transition:background-color .2s;display:inline-flex}.externalLink-dX0ReW:hover{text-decoration:underline}.externalLink-dX0ReW:focus{outline-offset:2px}.externalLink-dX0ReW>svg{fill:var(--button-icon-fill)}.titleWithLink-UFeEb7{align-items:center;gap:.5rem;display:flex}.externalLink-dX0ReW{color:inherit;align-items:center;text-decoration:none;display:inline-flex}.stickyHeader-Woc0cg{top:var(--header-height);z-index:2;background-color:var(--sticky-header-bg);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);margin:0 -1rem;padding:0 1rem;position:sticky}.actionContainer-gipYSV{justify-content:space-between;align-items:center;margin-top:-1rem;padding-bottom:1rem;display:flex}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["16194"],{98628:function(e,t){t.STATUSES=void 0,t.STATUSES={latest:"latest",active:"active",waiting:"waiting",waitingChildren:"waiting-children",prioritized:"prioritized",completed:"completed",failed:"failed",delayed:"delayed",paused:"paused"}},89366:function(e,t,l){l.d(t,{Z:()=>i});var s=l(31085),n=l(84349);l(14041);let i=e=>{let{children:t,className:l}=e;return(0,s.jsx)("div",{className:(0,n.A)("card-xqyZlH",l),children:t})}},70598:function(e,t,l){l.d(t,{D:()=>i});var s=l(31085),n=l(84349);l(14041);let i=e=>{let{label:t,id:l,inline:i,children:r}=e;return(0,s.jsxs)("div",{className:(0,n.A)("field-JbAWJt",{"inline-vXG0Za":i}),children:[!!t&&!i&&(0,s.jsx)("label",{htmlFor:l,children:t}),r,!!t&&i&&(0,s.jsx)("label",{htmlFor:l,children:t})]})}},3046:function(e,t,l){l.d(t,{F:()=>i});var s=l(31085);l(14041);var n=l(70598);let i=e=>{let{label:t,id:l,...i}=e;return(0,s.jsx)(n.D,{label:t,id:l,children:(0,s.jsx)("input",{id:l,type:"text",...i})})}},44943:function(e,t,l){l.d(t,{A:()=>n});var s=l(31085);l(14041);let n=()=>(0,s.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512",children:(0,s.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"})})},8881:function(e,t,l){l.d(t,{E:()=>n});var s=l(31085);l(14041);let n=()=>(0,s.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,s.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"})})},37681:function(e,t,l){l.d(t,{u:()=>n});var s=l(31085);l(14041);let n=()=>(0,s.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,s.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"})})},75215:function(e,t,l){l.d(t,{G:()=>n});var s=l(31085);l(14041);let n=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,s.jsx)("path",{d:"M15 17v-2.99A4 4 0 0 0 11 10H8v5L2 9l6-6v5h3a6 6 0 0 1 6 6v3h-2z"})})},46769:function(e,t,l){l.d(t,{m:()=>n});var s=l(31085);l(14041);let n=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,s.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"})})},28457:function(e,t,l){l.d(t,{u:()=>n});var s=l(31085);l(14041);let n=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,s.jsx)("path",{d:"M6 2l2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z"})})},42712:function(e,t,l){l.d(t,{o:()=>ee});var s=l(31085),n=l(98628),i=l(14041),r=l(29452),a=l(33664),c=l(89366);let o=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,s.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"})}),d=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 512 512",children:(0,s.jsx)("path",{d:"M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112v320c0 44.2 35.8 80 80 80h320c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v112c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16h112c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"})});var u=l(65678);let h=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,s.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 x=l(51671),m=l(65403),p=l(58087),j=l(84349),v=l(62029);let g=void 0!==window.Worker,w=null,S=new Map;async function f(e,t){if(g)return w||((w=new Worker(new URL(l.p+l.u("30697"),l.b),Object.assign({},{name:"highlight-worker"},{type:void 0}))).onmessage=e=>{let{data:t}=e,{id:l,code:s}=t;if(S.has(l)){let{resolve:e}=S.get(l);e(s)}}),new Promise((l,s)=>{let n=(0,v.Ak)(5);null==w||w.postMessage({id:n,code:e,language:t}),S.set(n,{resolve:e=>{S.delete(n),l(e)},reject:()=>{S.delete(n),s()}}),setTimeout(()=>s(),6e4)});{let{highlighter:s}=await Promise.all([l.e("87783"),l.e("85334")]).then(l.bind(l,54618));return s.highlightAuto(e,[t]).value||""}}let T=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:(0,s.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"})}),A=e=>{let{language:t,text:l}=e,[n,r]=(0,i.useState)("");return(0,i.useEffect)(()=>{let e=!1;return f(l,t).then(t=>{e||r(t)}),()=>{e=!0}},[t,l]),(0,s.jsxs)("div",{className:"codeContainerWrapper-ZpYBAP",children:[(0,s.jsx)("pre",{children:(0,s.jsx)("code",{className:(0,j.A)("hljs",t),dangerouslySetInnerHTML:{__html:n}})}),(0,s.jsx)(x.$,{onClick:()=>{navigator.clipboard.writeText(l??"")},className:"copyBtn-vLoi5u",children:(0,s.jsx)(T,{})})]})};var b=l(89934),y=l(3046),N=l(26200),L=l(8881),B=l(37681);let O="preWrapper-V9RpQs",E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return!t||RegExp(`${t}`,"i").test(e.message)};function C(e){return e.map((e,t)=>({message:e,lineNumber:t+1}))}let J=e=>{let t,{actions:l,job:n}=e,{t:a}=(0,r.Bd)(),[c,o]=(0,i.useState)([]),[d,u]=(0,i.useState)(!1),[h,m]=(0,i.useState)(""),p=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=!0;return l.getJobLogs().then(t=>{e&&o(C(t))}),()=>{e=!1}},[]),(0,b.$)(async()=>{var e;let t=null==(e=p.current)?void 0:e.querySelector(`.${O}`);o(C(await l.getJobLogs())),requestAnimationFrame(()=>{null==t||t.scrollTo({top:null==t?void 0:t.scrollHeight,behavior:"smooth"})})},d?2500:null);let j=c.filter(e=>E(e,h));return(0,s.jsxs)("div",{className:"jobLogs-MsL4aJ",ref:p,children:[(0,s.jsxs)("ul",{className:"toolbar-duDU2f",children:[(0,s.jsx)("li",{children:(0,s.jsx)("form",{onSubmit:e=>{var t,l;m((null==(l=e.currentTarget)||null==(t=l.searchQuery)?void 0:t.value)||""),e.preventDefault()},children:(0,s.jsx)(y.F,{className:"searchBar-N4o70g",name:"searchQuery",type:"search",placeholder:a("JOB.LOGS.FILTER_PLACEHOLDER"),onChange:e=>{var t;(null==(t=e.currentTarget)?void 0:t.value)||m("")}})})}),!n.finishedOn&&(0,s.jsx)("li",{children:(0,s.jsx)(x.$,{isActive:d,onClick:()=>{u(!d)},children:d?(0,s.jsx)(L.E,{}):(0,s.jsx)(B.u,{})})}),(0,s.jsx)("li",{children:(0,s.jsx)(x.$,{onClick:(t=p.current,async()=>t&&document.fullscreenElement!==t?await t.requestFullscreen():document.exitFullscreen()),children:(0,s.jsx)(N.P,{})})}),(0,s.jsx)("li",{children:(0,s.jsx)(x.$,{onClick:()=>{let e=j.map(e=>e.message).join("\n");navigator.clipboard.writeText(e)},children:(0,s.jsx)(T,{})})})]}),(0,s.jsx)("div",{className:O,children:(0,s.jsx)("pre",{children:(0,s.jsx)("ol",{style:{paddingInlineStart:`${`${j.length}`.length+1}ch`},children:j.map(e=>(0,s.jsxs)("li",{className:(e=>{var t,l;let s=null==(l=e.message)||null==(t=l.match(/((info|warn|error)?):/i))?void 0:t[1];return null==s?void 0:s.toLowerCase()})(e),"data-line-number":`${e.lineNumber}.`,children:[e.message,(0,s.jsx)(x.$,{onClick:()=>{navigator.clipboard.writeText(e.message)},className:"logLineCopyButton-LnHhmG",tabIndex:-1,children:(0,s.jsx)(T,{})})]},e.lineNumber))})})})]})},D=e=>{let{selectedTab:t,job:l,actions:n}=e,{t:a}=(0,r.Bd)(),{collapseJobData:c,collapseJobOptions:d,collapseJobError:h}=(0,u.C)(),[m,p]=(0,i.useState)({data:!1,options:!1,error:!1}),{stacktrace:j,data:v,returnValue:g,opts:w,failedReason:S}=l;switch(t){case"Data":return c&&!m.data?(0,s.jsxs)(x.$,{onClick:()=>p({...m,data:!0}),children:[a("JOB.SHOW_DATA_BTN")," ",(0,s.jsx)(o,{})]}):(0,s.jsx)(A,{language:"json",text:JSON.stringify({jobData:v,returnValue:g},null,2)});case"Options":return d&&!m.options?(0,s.jsxs)(x.$,{onClick:()=>p({...m,options:!0}),children:[a("JOB.SHOW_OPTIONS_BTN")," ",(0,s.jsx)(o,{})]}):(0,s.jsx)(A,{language:"json",text:JSON.stringify(w,null,2)});case"Error":if(0===j.length)return(0,s.jsx)("div",{className:"error",children:S||a("JOB.NA")});return h&&!m.error?(0,s.jsxs)(x.$,{onClick:()=>p({...m,error:!0}),children:[a("JOB.SHOW_ERRORS_BTN")," ",(0,s.jsx)(o,{})]}):(0,s.jsx)(A,{language:"stacktrace",text:j.join("\n")},"stacktrace");case"Logs":return(0,s.jsx)(J,{actions:n,job:l});default:return null}},I=e=>{let{status:t,job:l,actions:n}=e,{tabs:i,selectedTab:a}=(0,p.i)(t),{t:c}=(0,r.Bd)();return 0===i.length?null:(0,s.jsxs)("div",{className:"details-LkCTWS",children:[(0,s.jsx)("ul",{className:"tabActions-fF3v6_",children:i.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(x.$,{onClick:e.selectTab,isActive:e.isActive,children:c(`JOB.TABS.${e.title.toUpperCase()}`)})},e.title))}),(0,s.jsx)("div",{className:"tabContent-qmHNgq",children:(0,s.jsx)(D,{selectedTab:a,job:l,actions:n})})]})};var _=l(75215),R=l(46769),U=l(28457);let M=e=>{let{title:t,children:l}=e;return(0,s.jsx)("span",{"data-title":t,className:"tooltip-QJB3Pz",children:l})},k={updateData:{titleKey:"UPDATE_DATA",Icon:()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,s.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:_.G,actionKey:"promoteJob"},clean:{titleKey:"CLEAN",Icon:U.u,actionKey:"cleanJob"},retry:{titleKey:"RETRY",Icon:R.m,actionKey:"retryJob"},duplicate:{titleKey:"DUPLICATE",Icon:()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,s.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"}},z={[n.STATUSES.failed]:[k.retry,k.duplicate,k.updateData,k.clean],[n.STATUSES.delayed]:[k.promote,k.duplicate,k.updateData,k.clean],[n.STATUSES.completed]:[k.duplicate,k.retry,k.clean],[n.STATUSES.waiting]:[k.duplicate,k.updateData,k.clean],[n.STATUSES.waitingChildren]:[k.duplicate,k.updateData,k.clean],[n.STATUSES.prioritized]:[k.duplicate,k.updateData,k.clean],[n.STATUSES.paused]:[k.duplicate,k.updateData,k.clean]},H=e=>{let{actions:t,status:l,allowRetries:n}=e,i=z[l],{t:a}=(0,r.Bd)();return i?(n||(i=i.filter(e=>"retryJob"!==e.actionKey)),(0,s.jsx)("ul",{className:"jobActions-XfoQK8",children:i.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(M,{title:a(`JOB.ACTIONS.${e.titleKey}`),children:(0,s.jsx)(x.$,{onClick:t[e.actionKey],className:"button-GXX8BV",children:(0,s.jsx)(e.Icon,{})})})},e.titleKey))})):null},$=e=>{var t;let{progress:l,status:i,className:r,strokeWidth:a=6}=e,c="number"==typeof(t=l)?t:"string"==typeof t?Number.isNaN(+t)?null:+t:t&&"boolean"!=typeof t&&"progress"in t&&"number"==typeof t.progress?t.progress:null;if(!c)return null;let o={cx:"50%",cy:"50%",r:`calc(50% - ${a/2}px)`,strokeWidth:a,"transform-origin":"center"};return(0,s.jsxs)("svg",{className:(0,j.A)("progress-Rr7sCM",r),width:"100%",height:"100%",children:[(0,s.jsx)("circle",{...o}),(0,s.jsx)("circle",{className:(0,j.A)({"failed-rTUpGj":i===n.STATUSES.failed,"success-RY6h2q":i!==n.STATUSES.failed}),pathLength:100,strokeDasharray:100,strokeDashoffset:100-c,strokeLinejoin:"round",strokeLinecap:"round",transform:"rotate(-90)",...o}),(0,s.jsx)("text",{x:"50%",y:"50%",textAnchor:"middle",dominantBaseline:"central",children:(0,s.jsx)("tspan",{dominantBaseline:"central",children:`${Math.round(c)}%`})})]})};var F=l(92547),W=l(66579),P=l(64328),K=l(47245),V=l(91328),q=l(30166),G=l(19019);let Q=(e,t,l)=>{let s;if((0,F.A)(e)){if(null==l?void 0:l.short)return(0,W.A)(new Date(e),l.short);s={hour:"numeric",minute:"numeric",second:"numeric"}}else if((0,P.A)(e,new Date)){if(null==l?void 0:l.common)return(0,W.A)(new Date(e),l.common);s={month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}}else{if(null==l?void 0:l.full)return(0,W.A)(new Date(e),l.full);s={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}}return new Intl.DateTimeFormat(t,s).format(e)},Y=(e,t,l)=>{let s=(0,K.A)(e,t),n=s/1e3;return n>5?(0,V.A)(e,t,{includeSeconds:!0,locale:q.Q}):n>=1?l("JOB.DURATION.SECS",{duration:n.toFixed(2)}):l("JOB.DURATION.MILLI_SECS",{duration:s})},Z=function(e){let{job:t,status:l}=e,{t:i,i18n:a}=(0,r.Bd)(),c=(0,G._)().dateFormats||{};return(0,s.jsx)("div",{className:"timelineWrapper-iZqG0C",children:(0,s.jsxs)("ul",{className:"timeline-lF9niS",children:[(0,s.jsxs)("li",{children:[(0,s.jsx)("small",{children:i("JOB.ADDED_AT")}),(0,s.jsx)("time",{children:Q(t.timestamp||0,a.language,c)})]}),!!t.delay&&t.delay>0&&l===n.STATUSES.delayed&&(0,s.jsxs)("li",{children:[(0,s.jsx)("small",{children:i("JOB.WILL_RUN_AT")}),(0,s.jsx)("time",{children:Q((t.timestamp||0)+(t.opts.delay||t.delay||0),a.language,c)}),t.delay!==t.opts.delay&&(0,s.jsxs)("small",{children:[i("JOB.DELAY_CHANGED")," "]})]}),!!t.processedOn&&(0,s.jsxs)("li",{children:[(0,s.jsxs)("small",{children:[!!t.delay&&t.delay>0&&i("JOB.DELAYED_FOR")+" ",Y(t.processedOn,t.timestamp||0,i)]}),(0,s.jsx)("small",{children:i("JOB.PROCESS_STARTED_AT")}),(0,s.jsx)("time",{children:Q(t.processedOn,a.language,c)}),!!t.processedBy&&(0,s.jsx)("small",{children:i("JOB.PROCESSED_BY",{processedBy:t.processedBy})})]}),!!t.finishedOn&&(0,s.jsxs)("li",{children:[(0,s.jsx)("small",{children:Y(t.finishedOn,t.processedOn||0,i)}),(0,s.jsx)("small",{children:i(t.isFailed&&l!==n.STATUSES.active&&l!==n.STATUSES.completed?"JOB.FAILED_AT":"JOB.FINISHED_AT")}),(0,s.jsx)("time",{children:Q(t.finishedOn,a.language,c)})]})]})})},X=[n.STATUSES.active,n.STATUSES.completed],ee=e=>{var t,l,p,j,v,g;let{job:w,status:S,actions:f,readOnlyMode:T,allowRetries:A,jobUrl:b}=e,{t:y}=(0,r.Bd)(),{collapseJob:N}=(0,u.C)(),[L,B]=i.useState(),O=!b||L||!N,E=N&&b,C=(0,s.jsxs)("h4",{children:[/^\d+$/.test(`${w.id}`)?"#":"",w.id]});return(0,s.jsx)(m.bL,{asChild:!0,open:O,children:(0,s.jsxs)(c.Z,{className:"card-BRjpw_",children:[(0,s.jsxs)("div",{className:"header-Lw4QCc",children:[(0,s.jsxs)("div",{className:"titleWithLink-UFeEb7",children:[b?(0,s.jsx)(a.N_,{className:"jobLink-wmCWQg",to:b,children:C}):C,w.externalUrl&&(0,s.jsx)("a",{className:"externalLink-dX0ReW",href:w.externalUrl.href,target:"_blank",rel:"noopener noreferrer",children:w.externalUrl.displayText??(0,s.jsx)(d,{})})]}),E&&(0,s.jsx)(x.$,{className:"collapseBtn-J6rMz7",onClick:()=>B(!O),children:O?(0,s.jsx)(h,{}):(0,s.jsx)(o,{})})]}),(0,s.jsx)(m.UC,{asChild:!0,children:(0,s.jsxs)("div",{className:"details-JRsI9B",children:[(0,s.jsx)("div",{className:"sideInfo-a9IFbv",children:(0,s.jsx)(Z,{job:w,status:S})}),(0,s.jsxs)("div",{className:"contentWrapper-Aj9Wmy",children:[(0,s.jsxs)("div",{className:"title-wDT4dB",children:[(0,s.jsxs)("h5",{children:[w.name,w.attempts>1&&(0,s.jsx)("span",{children:y("JOB.ATTEMPTS",{attempts:w.attempts})}),!!(null==(l=w.opts)||null==(t=l.repeat)?void 0:t.count)&&(0,s.jsx)("span",{children:y(`JOB.REPEAT${(null==(j=w.opts)||null==(p=j.repeat)?void 0:p.limit)?"_WITH_LIMIT":""}`,{count:w.opts.repeat.count,limit:null==(g=w.opts)||null==(v=g.repeat)?void 0:v.limit})})]}),!T&&(0,s.jsx)(H,{status:S,actions:f,allowRetries:A})]}),(0,s.jsxs)("div",{className:"content-SHI77x",children:[(0,s.jsx)(I,{status:S,job:w,actions:f}),(0,s.jsx)($,{progress:w.progress,status:w.isFailed&&!X.includes(S)?n.STATUSES.failed:S,className:"progress-POOya3"})]})]})]})})]})})}},80130:function(e,t,l){l.d(t,{V:()=>n});var s=l(31085);l(14041);let n=e=>{let{actions:t,children:l}=e;return(0,s.jsxs)("div",{className:"stickyHeader-Woc0cg",children:[l,!!t&&(0,s.jsx)("div",{className:"actionContainer-gipYSV",children:t})]})}},58087:function(e,t,l){l.d(t,{d:()=>r,i:()=>a});var s=l(98628),n=l(14041),i=l(65678);let r=["Data","Options","Logs","Error"];function a(e){let[t,l]=(0,n.useState)([]),{defaultJobTab:a}=(0,i.C)(),[c,o]=(0,n.useState)(t.find(e=>e===a)||t[0]);return(0,n.useEffect)(()=>{let t=r.filter(e=>"Error"!==e);l(t=e===s.STATUSES.failed?["Error",...t]:[...t,"Error"])},[e]),(0,n.useEffect)(()=>{o(t.includes(a)?a:t[0])},[a,t]),{tabs:null==t?void 0:t.map(e=>({title:e,isActive:e===c,selectTab:()=>o(e)})),selectedTab:c}}},8355:function(e,t,l){l.d(t,{J:()=>m});var s=l(29452),n=l(92727),i=l(96814),r=l(86090),a=l(16065),c=l(68815),o=l(87827),d=l(89934),u=l(82971),h=l(65678);let x=(0,n.vt)(e=>({job:null,status:"latest",loading:!0,updateJob:(t,l)=>e(()=>({job:t,status:l,loading:!1}))}));function m(){let e=(0,c.g)(),t=(0,a._)(),l=function(){let{pathname:e}=(0,r.zy)(),t=(0,r.B6)(e,{path:["/queue/:name/:jobId"],exact:!1,strict:!1});return decodeURIComponent((null==t?void 0:t.params.jobId)||"")}(),{actions:{updateQueues:n}}=(0,u.A)(),{t:m}=(0,s.Bd)(),{confirmJobActions:p,pollingInterval:j}=(0,h.C)(e=>{let{confirmJobActions:t,pollingInterval:l}=e;return{confirmJobActions:t,pollingInterval:l}}),{job:v,status:g,loading:w,updateJob:S}=x(e=>e),{openConfirm:f}=(0,o.S)(),T=()=>e.getJob(t,l).then(e=>{let{job:t,status:l}=e;return S(t,l)}),A=(0,i.A)(l?T:n,f);return{job:v,status:g,loading:w,actions:{getJob:T,pollJob:()=>(0,d.$)(T,j>0?1e3*j:null,[t]),promoteJob:t=>l=>A(()=>e.promoteJob(t,l.id),m("JOB.ACTIONS.CONFIRM.PROMOTE"),p),cleanJob:t=>l=>A(()=>e.cleanJob(t,l.id),m("JOB.ACTIONS.CONFIRM.CLEAN"),p),getJobLogs:t=>l=>()=>e.getJobLogs(t,l.id),retryJob:(t,l)=>s=>A(()=>e.retryJob(t,s.id,l),m("JOB.ACTIONS.CONFIRM.RETRY"),p),updateJobData:(t,l,s)=>A(()=>e.updateJobData(t,l.id,s),"",!1)}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["29662"],{98628:function(e,a){a.STATUSES=void 0,a.STATUSES={latest:"latest",active:"active",waiting:"waiting",waitingChildren:"waiting-children",prioritized:"prioritized",completed:"completed",failed:"failed",delayed:"delayed",paused:"paused"}},70598:function(e,a,t){t.d(a,{D:()=>r});var l=t(31085),n=t(84349);t(14041);let r=e=>{let{label:a,id:t,inline:r,children:i}=e;return(0,l.jsxs)("div",{className:(0,n.A)("field-JbAWJt",{"inline-vXG0Za":r}),children:[!!a&&!r&&(0,l.jsx)("label",{htmlFor:t,children:a}),i,!!a&&r&&(0,l.jsx)("label",{htmlFor:t,children:a})]})}},3046:function(e,a,t){t.d(a,{F:()=>r});var l=t(31085);t(14041);var n=t(70598);let r=e=>{let{label:a,id:t,...r}=e;return(0,l.jsx)(n.D,{label:a,id:t,children:(0,l.jsx)("input",{id:t,type:"text",...r})})}},72712:function(e,a,t){t.d(a,{z:()=>r});var l=t(31085);t(14041);var n=t(70598);let r=e=>{let{label:a,id:t,options:r,...i}=e;return(0,l.jsx)(n.D,{label:a,id:t,children:(0,l.jsx)("select",{id:t,...i,children:r.map(e=>(0,l.jsx)("option",{value:e.value,children:e.text},e.value))})})}},70925:function(e,a,t){t.d(a,{a:()=>c});var l=t(31085),n=t(10605),r=t(84349);t(14041);var i=t(29452),s=t(51671),o=t(35150);let c=e=>{let{open:a,title:t,onClose:c,children:d,width:u,actionButton:h}=e,{t:p}=(0,i.Bd)();return(0,l.jsx)(n.bL,{open:a,modal:!0,onOpenChange:e=>{e||c()},children:(0,l.jsxs)(n.ZL,{children:[(0,l.jsx)(n.hJ,{className:o.A.overlay}),(0,l.jsx)(n.UC,{className:o.A.contentWrapper,children:(0,l.jsxs)("div",{className:(0,r.A)(o.A.content,o.A[u||""]),children:[!!t&&(0,l.jsx)(n.hE,{children:t}),(0,l.jsx)(n.VY,{asChild:!0,children:(0,l.jsx)("div",{className:o.A.description,children:d})}),(0,l.jsxs)("div",{className:o.A.actions,children:[h,(0,l.jsx)(n.bm,{asChild:!0,children:(0,l.jsx)(s.$,{theme:"basic",children:p("MODAL.CLOSE_BTN")})})]})]})})]})})}},31885:function(e,a,t){t.r(a),t.d(a,{SettingsModal:()=>G});var l=t(31085),n=t(14041),r=t(29452),i=t(29906),s=t(65678),o=t(19019),c=t(3046),d=t(72712),u=t(82144),h=t(89516),p=t(12736),S=t(16668),b=t(95450),v=t(27326),T="Switch",[f,j]=(0,p.A)(T),[x,E]=f(T),m=n.forwardRef((e,a)=>{let{__scopeSwitch:t,name:r,checked:i,defaultChecked:s,required:o,disabled:c,value:d="on",onCheckedChange:p,form:b,...f}=e,[j,E]=n.useState(null),m=(0,h.s)(a,e=>E(e)),C=n.useRef(!1),N=!j||b||!!j.closest("form"),[I,A]=(0,S.i)({prop:i,defaultProp:s??!1,onChange:p,caller:T});return(0,l.jsxs)(x,{scope:t,checked:I,disabled:c,children:[(0,l.jsx)(v.sG.button,{type:"button",role:"switch","aria-checked":I,"aria-required":o,"data-state":O(I),"data-disabled":c?"":void 0,disabled:c,value:d,...f,ref:m,onClick:(0,u.mK)(e.onClick,e=>{A(e=>!e),N&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),N&&(0,l.jsx)(g,{control:j,bubbles:!C.current,name:r,value:d,checked:I,required:o,disabled:c,form:b,style:{transform:"translateX(-100%)"}})]})});m.displayName=T;var C="SwitchThumb",N=n.forwardRef((e,a)=>{let{__scopeSwitch:t,...n}=e,r=E(C,t);return(0,l.jsx)(v.sG.span,{"data-state":O(r.checked),"data-disabled":r.disabled?"":void 0,...n,ref:a})});N.displayName=C;var g=n.forwardRef(({__scopeSwitch:e,control:a,checked:t,bubbles:r=!0,...i},s)=>{let o=n.useRef(null),c=(0,h.s)(o,s),d=function(e){let a=n.useRef({value:e,previous:e});return n.useMemo(()=>(a.current.value!==e&&(a.current.previous=a.current.value,a.current.value=e),a.current.previous),[e])}(t),u=(0,b.X)(a);return n.useEffect(()=>{let e=o.current;if(!e)return;let a=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(d!==t&&a){let l=new Event("click",{bubbles:r});a.call(e,t),e.dispatchEvent(l)}},[d,t,r]),(0,l.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...i,tabIndex:-1,ref:c,style:{...i.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function O(e){return e?"checked":"unchecked"}g.displayName="SwitchBubbleInput";var I=t(70598);let A=e=>{let{label:a,id:t,...n}=e;return(0,l.jsx)(I.D,{label:a,id:t,inline:!0,children:(0,l.jsx)(m,{id:t,...n,className:"switch-DOdNhn",children:(0,l.jsx)(N,{className:"thumb-tvm2sT"})})})};var k=t(70925),L=t(58087);let _=[-1,3,5,10,20,60,300,900],G=e=>{let{open:a,onClose:t}=e,{language:n,pollingInterval:u,jobsPerPage:h,confirmQueueActions:p,confirmJobActions:S,collapseJob:b,collapseJobData:v,collapseJobOptions:T,collapseJobError:f,defaultJobTab:j,darkMode:x,setSettings:E}=(0,s.C)(e=>e),{pollingInterval:m}=(0,o._)(),{t:C,i18n:N}=(0,r.Bd)();return(0,l.jsxs)(k.a,{width:"small",open:a,onClose:t,title:C("SETTINGS.TITLE"),children:[(0,l.jsx)(d.z,{label:C("SETTINGS.LANGUAGE"),id:"language",options:i.e.map(e=>({text:e,value:e})),value:n,onChange:e=>{N.changeLanguage(e.target.value),E({language:e.target.value})}}),(null==m?void 0:m.showSetting)!==!1&&(0,l.jsx)(d.z,{label:C("SETTINGS.POLLING_INTERVAL"),id:"polling-interval",options:_.map(e=>({text:e<0?C("SETTINGS.POLLING_OPTIONS.OFF"):0===Math.floor(e/60)?C("SETTINGS.POLLING_OPTIONS.SECS",{count:e}):C("SETTINGS.POLLING_OPTIONS.MINS",{count:e/60}),value:`${e}`})),value:`${u}`,onChange:e=>E({pollingInterval:+e.target.value})}),(0,l.jsx)(d.z,{label:C("SETTINGS.DEFAULT_JOB_TAB"),id:"default-job-tab",options:["default"].concat(L.d).map(e=>({text:C(`JOB.TABS.${e.toUpperCase()}`),value:e})),value:j,onChange:e=>E({defaultJobTab:e.target.value})}),(0,l.jsx)(c.F,{label:C("SETTINGS.JOBS_PER_PAGE"),id:"jobs-per-page",value:h,type:"number",min:"1",max:300,maxLength:3,onChange:e=>{E({jobsPerPage:Math.min(+e.target.value,300)})}}),(0,l.jsx)(A,{label:C("SETTINGS.CONFIRM_QUEUE_ACTIONS"),id:"confirm-queue-actions",checked:p,onCheckedChange:e=>E({confirmQueueActions:e})}),(0,l.jsx)(A,{label:C("SETTINGS.CONFIRM_JOB_ACTIONS"),id:"confirm-job-actions",checked:S,onCheckedChange:e=>E({confirmJobActions:e})}),(0,l.jsx)(A,{label:C("SETTINGS.COLLAPSE_JOB"),id:"collapse-job",checked:b,onCheckedChange:e=>E({collapseJob:e})}),(0,l.jsx)(A,{label:C("SETTINGS.COLLAPSE_JOB_DATA"),id:"collapse-job-data",checked:v,onCheckedChange:e=>E({collapseJobData:e})}),(0,l.jsx)(A,{label:C("SETTINGS.COLLAPSE_JOB_OPTIONS"),id:"collapse-job-options",checked:T,onCheckedChange:e=>E({collapseJobOptions:e})}),(0,l.jsx)(A,{label:C("SETTINGS.COLLAPSE_JOB_ERROR"),id:"collapse-job-error",checked:f,onCheckedChange:e=>E({collapseJobError:e})}),(0,l.jsx)(A,{label:C("SETTINGS.DARK_MODE"),id:"dark-mode",checked:x,onCheckedChange:e=>E({darkMode:e})})]})}},58087:function(e,a,t){t.d(a,{d:()=>i,i:()=>s});var l=t(98628),n=t(14041),r=t(65678);let i=["Data","Options","Logs","Error"];function s(e){let[a,t]=(0,n.useState)([]),{defaultJobTab:s}=(0,r.C)(),[o,c]=(0,n.useState)(a.find(e=>e===s)||a[0]);return(0,n.useEffect)(()=>{let a=i.filter(e=>"Error"!==e);t(a=e===l.STATUSES.failed?["Error",...a]:[...a,"Error"])},[e]),(0,n.useEffect)(()=>{c(a.includes(s)?s:a[0])},[s,a]),{tabs:null==a?void 0:a.map(e=>({title:e,isActive:e===o,selectTab:()=>c(e)})),selectedTab:o}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["81447"],{66579:function(t,e,n){n.d(e,{A:()=>S});var r=n(85761),a=n(81092),i=n(95286);function o(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function u(t){(0,a.A)(1,arguments);var e=(0,i.A)(t),n=e.getUTCDay();return e.setUTCDate(e.getUTCDate()-(7*(n<1)+n-1)),e.setUTCHours(0,0,0,0),e}function l(t){(0,a.A)(1,arguments);var e=(0,i.A)(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=u(r),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var s=u(l);return e.getTime()>=o.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}var s=n(66017);function c(t,e){(0,a.A)(1,arguments);var n,r,u,l,c,d,f,h,g=(0,s.q)(),m=o(null!=(n=null!=(r=null!=(u=null!=(l=null==e?void 0:e.weekStartsOn)?l:null==e||null==(c=e.locale)||null==(d=c.options)?void 0:d.weekStartsOn)?u:g.weekStartsOn)?r:null==(f=g.locale)||null==(h=f.options)?void 0:h.weekStartsOn)?n:0);if(!(m>=0&&m<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=(0,i.A)(t),v=w.getUTCDay();return w.setUTCDate(w.getUTCDate()-(7*(v<m)+v-m)),w.setUTCHours(0,0,0,0),w}function d(t,e){(0,a.A)(1,arguments);var n,r,u,l,d,f,h,g,m=(0,i.A)(t),w=m.getUTCFullYear(),v=(0,s.q)(),b=o(null!=(n=null!=(r=null!=(u=null!=(l=null==e?void 0:e.firstWeekContainsDate)?l:null==e||null==(d=e.locale)||null==(f=d.options)?void 0:f.firstWeekContainsDate)?u:v.firstWeekContainsDate)?r:null==(h=v.locale)||null==(g=h.options)?void 0:g.firstWeekContainsDate)?n:1);if(!(b>=1&&b<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(w+1,0,b),T.setUTCHours(0,0,0,0);var C=c(T,e),p=new Date(0);p.setUTCFullYear(w,0,b),p.setUTCHours(0,0,0,0);var y=c(p,e);return m.getTime()>=C.getTime()?w+1:m.getTime()>=y.getTime()?w:w-1}function f(t,e){for(var n=Math.abs(t).toString();n.length<e;)n="0"+n;return(t<0?"-":"")+n}let h=function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return f("yy"===e?r%100:r,e.length)},g=function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):f(n+1,2)},m=function(t,e){var n=e.length;return f(Math.floor(t.getUTCMilliseconds()*Math.pow(10,n-3)),e.length)};function w(t,e){var n=t>0?"-":"+",r=Math.abs(t),a=Math.floor(r/60),i=r%60;return 0===i?n+String(a):n+String(a)+(e||"")+f(i,2)}function v(t,e){return t%60==0?(t>0?"-":"+")+f(Math.abs(t)/60,2):b(t,e)}function b(t,e){var n=Math.abs(t);return(t>0?"-":"+")+f(Math.floor(n/60),2)+(e||"")+f(n%60,2)}let T={G:function(t,e,n){var r=+(t.getUTCFullYear()>0);switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return h(t,e)},Y:function(t,e,n,r){var a=d(t,r),i=a>0?a:1-a;return"YY"===e?f(i%100,2):"Yo"===e?n.ordinalNumber(i,{unit:"year"}):f(i,e.length)},R:function(t,e){return f(l(t),e.length)},u:function(t,e){return f(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return f(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return f(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return g(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return f(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var u=function(t,e){(0,a.A)(1,arguments);var n=(0,i.A)(t);return Math.round((c(n,e).getTime()-(function(t,e){(0,a.A)(1,arguments);var n,r,i,u,l,f,h,g,m=(0,s.q)(),w=o(null!=(n=null!=(r=null!=(i=null!=(u=null==e?void 0:e.firstWeekContainsDate)?u:null==e||null==(l=e.locale)||null==(f=l.options)?void 0:f.firstWeekContainsDate)?i:m.firstWeekContainsDate)?r:null==(h=m.locale)||null==(g=h.options)?void 0:g.firstWeekContainsDate)?n:1),v=d(t,e),b=new Date(0);return b.setUTCFullYear(v,0,w),b.setUTCHours(0,0,0,0),c(b,e)})(n,e).getTime())/6048e5)+1}(t,r);return"wo"===e?n.ordinalNumber(u,{unit:"week"}):f(u,e.length)},I:function(t,e,n){var r=function(t){(0,a.A)(1,arguments);var e=(0,i.A)(t);return Math.round((u(e).getTime()-(function(t){(0,a.A)(1,arguments);var e=l(t),n=new Date(0);return n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),u(n)})(e).getTime())/6048e5)+1}(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):f(r,e.length)},d:function(t,e,n){var r,a;return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):(r=t,a=e,f(r.getUTCDate(),a.length))},D:function(t,e,n){var r=function(t){(0,a.A)(1,arguments);var e=(0,i.A)(t),n=e.getTime();return e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0),Math.floor((n-e.getTime())/864e5)+1}(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return f(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return f(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),a=0===r?7:r;switch(e){case"i":return String(a);case"ii":return f(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,a=t.getUTCHours();switch(r=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,a=t.getUTCHours();switch(r=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r,a,i=t.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return r=t,a=e,f(r.getUTCHours()%12||12,a.length)},H:function(t,e,n){var r,a;return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):(r=t,a=e,f(r.getUTCHours(),a.length))},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):f(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return(0===r&&(r=24),"ko"===e)?n.ordinalNumber(r,{unit:"hour"}):f(r,e.length)},m:function(t,e,n){var r,a;return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):(r=t,a=e,f(r.getUTCMinutes(),a.length))},s:function(t,e,n){var r,a;return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):(r=t,a=e,f(r.getUTCSeconds(),a.length))},S:function(t,e){return m(t,e)},X:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return v(a);case"XXXX":case"XX":return b(a);default:return b(a,":")}},x:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return v(a);case"xxxx":case"xx":return b(a);default:return b(a,":")}},O:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+w(a,":");default:return"GMT"+b(a,":")}},z:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+w(a,":");default:return"GMT"+b(a,":")}},t:function(t,e,n,r){return f(Math.floor((r._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,n,r){return f((r._originalDate||t).getTime(),e.length)}};var C=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},p=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}};let y={p:p,P:function(t,e){var n,r=t.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return C(t,e);switch(a){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",C(a,e)).replace("{{time}}",p(i,e))}};var D=n(57641),x=["D","DD"],U=["YY","YYYY"];function k(t,e,n){if("YYYY"===t)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var A=n(72231),M=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N=/^'([^]*?)'?$/,E=/''/g,O=/[a-zA-Z]/;function S(t,e,n){(0,a.A)(2,arguments);var u,l,c,d,f,h,g,m,w,v,b,C,p,S,P,q,R,H,L=String(e),G=(0,s.q)(),F=null!=(u=null!=(l=null==n?void 0:n.locale)?l:G.locale)?u:A.A,W=o(null!=(c=null!=(d=null!=(f=null!=(h=null==n?void 0:n.firstWeekContainsDate)?h:null==n||null==(g=n.locale)||null==(m=g.options)?void 0:m.firstWeekContainsDate)?f:G.firstWeekContainsDate)?d:null==(w=G.locale)||null==(v=w.options)?void 0:v.firstWeekContainsDate)?c:1);if(!(W>=1&&W<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=o(null!=(b=null!=(C=null!=(p=null!=(S=null==n?void 0:n.weekStartsOn)?S:null==n||null==(P=n.locale)||null==(q=P.options)?void 0:q.weekStartsOn)?p:G.weekStartsOn)?C:null==(R=G.locale)||null==(H=R.options)?void 0:H.weekStartsOn)?b:0);if(!(z>=0&&z<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw RangeError("locale must contain localize property");if(!F.formatLong)throw RangeError("locale must contain formatLong property");var _=(0,i.A)(t);if(!function(t){return(0,a.A)(1,arguments),(!!function(t){return(0,a.A)(1,arguments),t instanceof Date||"object"===(0,r.A)(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)||"number"==typeof t)&&!isNaN(Number((0,i.A)(t)))}(_))throw RangeError("Invalid time value");var B=(0,D.A)(_),Q=function(t,e){return(0,a.A)(2,arguments),function(t,e){return(0,a.A)(2,arguments),new Date((0,i.A)(t).getTime()+o(e))}(t,-o(e))}(_,B),j={firstWeekContainsDate:W,weekStartsOn:z,locale:F,_originalDate:_};return L.match(Y).map(function(t){var e=t[0];return"p"===e||"P"===e?(0,y[e])(t,F.formatLong):t}).join("").match(M).map(function(r){if("''"===r)return"'";var a,i,o=r[0];if("'"===o){return(i=(a=r).match(N))?i[1].replace(E,"'"):a}var u=T[o];if(u)return null!=n&&n.useAdditionalWeekYearTokens||-1===U.indexOf(r)||k(r,e,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||-1===x.indexOf(r)||k(r,e,String(t)),u(Q,r,F.localize,j);if(o.match(O))throw RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r}).join("")}},64328:function(t,e,n){n.d(e,{A:()=>i});var r=n(95286),a=n(81092);function i(t,e){(0,a.A)(2,arguments);var n=(0,r.A)(t),i=(0,r.A)(e);return n.getFullYear()===i.getFullYear()}},92547:function(t,e,n){n.d(e,{A:()=>o});var r=n(95286),a=n(81092);function i(t){(0,a.A)(1,arguments);var e=(0,r.A)(t);return e.setHours(0,0,0,0),e}function o(t){return(0,a.A)(1,arguments),function(t,e){(0,a.A)(2,arguments);var n=i(t),r=i(e);return n.getTime()===r.getTime()}(t,Date.now())}},65403:function(t,e,n){n.d(e,{UC:()=>U,bL:()=>x});var r=n(14041),a=n(82144),i=n(12736),o=n(16668),u=n(21033),l=n(89516),s=n(27326),c=n(54216),d=n(43388),f=n(31085),h="Collapsible",[g,m]=(0,i.A)(h),[w,v]=g(h),b=r.forwardRef((t,e)=>{let{__scopeCollapsible:n,open:a,defaultOpen:i,disabled:u,onOpenChange:l,...c}=t,[g,m]=(0,o.i)({prop:a,defaultProp:i??!1,onChange:l,caller:h});return(0,f.jsx)(w,{scope:n,disabled:u,contentId:(0,d.B)(),open:g,onOpenToggle:r.useCallback(()=>m(t=>!t),[m]),children:(0,f.jsx)(s.sG.div,{"data-state":D(g),"data-disabled":u?"":void 0,...c,ref:e})})});b.displayName=h;var T="CollapsibleTrigger";r.forwardRef((t,e)=>{let{__scopeCollapsible:n,...r}=t,i=v(T,n);return(0,f.jsx)(s.sG.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":D(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:e,onClick:(0,a.mK)(t.onClick,i.onOpenToggle)})}).displayName=T;var C="CollapsibleContent",p=r.forwardRef((t,e)=>{let{forceMount:n,...r}=t,a=v(C,t.__scopeCollapsible);return(0,f.jsx)(c.C,{present:n||a.open,children:({present:t})=>(0,f.jsx)(y,{...r,ref:e,present:t})})});p.displayName=C;var y=r.forwardRef((t,e)=>{let{__scopeCollapsible:n,present:a,children:i,...o}=t,c=v(C,n),[d,h]=r.useState(a),g=r.useRef(null),m=(0,l.s)(e,g),w=r.useRef(0),b=w.current,T=r.useRef(0),p=T.current,y=c.open||d,x=r.useRef(y),U=r.useRef(void 0);return r.useEffect(()=>{let t=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(t)},[]),(0,u.N)(()=>{let t=g.current;if(t){U.current=U.current||{transitionDuration:t.style.transitionDuration,animationName:t.style.animationName},t.style.transitionDuration="0s",t.style.animationName="none";let e=t.getBoundingClientRect();w.current=e.height,T.current=e.width,x.current||(t.style.transitionDuration=U.current.transitionDuration,t.style.animationName=U.current.animationName),h(a)}},[c.open,a]),(0,f.jsx)(s.sG.div,{"data-state":D(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!y,...o,ref:m,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...t.style},children:y&&i})});function D(t){return t?"open":"closed"}var x=b,U=p},62029:function(t,e,n){n.d(e,{Ak:()=>r});let r=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[t]];return e}}}]);
|