Submit
Path:
~
/
/
opt
/
psa
/
admin
/
cp
/
public
/
javascript
/
app
/
File Content:
task-progress-bar.js
"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/task-progress-bar"],{3048:(e,s,r)=>{r.r(s),r.d(s,{TaskProgressBarItemContent:()=>g,default:()=>m});var n=r(606),o=r.n(n),t=r(286),a=r(591),l=r.n(a),i=r(89),c=r(607),p=r(285);const u=i.Locale.getSection("components.tasks.common"),g=({title:e,progress:s,output:r,errors:n,refresh:o})=>{const a=[];return e&&(e=(0,p.jsx)("span",{dangerouslySetInnerHTML:{__html:e}},"title")),s?a.push((0,p.jsx)(t.Progress,{children:(0,p.jsx)(t.ProgressStep,{title:e,status:"running",progress:s.value,statusText:void 0!==s.value?`${s.value}%`:void 0,children:s.onClick&&(0,p.jsx)(t.Link,{onClick:s.onClick,children:(0,p.jsx)(t.Translate,{content:"progressDialogLink"})})})},"progress")):(a.push(e),r&&a.push((0,p.jsx)(t.Text,{component:"ul",intent:"muted",fontSize:"sm",className:"task-progress-bar-item__output",children:r.map(((e,s)=>(0,p.jsx)("li",{children:e},s.toString())))},"output")),n&&a.push((0,p.jsx)(t.Text,{component:"ul",intent:"muted",fontSize:"sm",className:"task-progress-bar-item__output",children:n.map(((e,s)=>(0,p.jsx)("li",{children:e},s.toString())))},"errors")),o&&a.push((0,p.jsx)(t.Link,{onClick:o.onClick,component:t.Text,fontSize:"sm",children:o.title||(0,p.jsx)(t.Translate,{content:"refresh"})},"refresh"))),(0,p.jsx)("div",{className:"task-progress-bar-item__content",children:a})};g.propTypes={title:l().string,progress:l().shape({value:l().number,onClick:l().func}),output:l().arrayOf(l().string),errors:l().arrayOf(l().string),refresh:l().shape({title:l().string,onClick:l().func.isRequired})};const d=({viewerId:e,items:s,isOpen:r,onGroupClose:n,...a})=>{const[l,d]=(0,c.useLocalStorage)(`task-progress-bar-collapsed-${e}`,!1),m=[];if(s.forEach((e=>{e instanceof i.Task.ProgressBar.Item&&m.push((e=>{const{key:s,intent:r,onClose:n,...t}=e.toToast();return{key:s,intent:r,onClose:n,message:(0,p.jsx)(g,{...t}),closable:!t.progress,className:o()("task-progress-bar-item",{[`task-progress-bar-item--${r}`]:r}),groupKey:t.progress?"progress":r}})(e))})),!r)return null;const b=[{groupKey:"progress",intent:"info",renderHeaderLabel:({count:e},s)=>(0,p.jsx)(t.Label,{...s,icon:(0,p.jsx)(t.Spinner,{className:"task-progress-bar__loading-spinner",colorAnimation:!1}),children:u.formatMessage("progressLabel",{count:e})})},{groupKey:"success",intent:"success",renderHeaderLabelTitle:({count:e})=>u.formatMessage("successLabel",{count:e}),renderHeaderLabelTooltip:()=>u.lmsg("successLabelTooltip"),closable:!0},{groupKey:"warning",intent:"warning",renderHeaderLabelTitle:({count:e})=>u.formatMessage("warningLabel",{count:e}),renderHeaderLabelTooltip:()=>u.lmsg("warningLabelTooltip"),closable:!0},{groupKey:"danger",intent:"danger",renderHeaderLabelTitle:({count:e})=>u.formatMessage("errorLabel",{count:e}),renderHeaderLabelTooltip:()=>u.lmsg("errorLabelTooltip"),closable:!0}];return(0,p.jsx)(t.Toaster,{id:"asyncProgressBar",view:"panel",groupConfigs:b,isPanelCollapsed:l,onPanelCollapseStateChange:d,toasts:m,onToastGroupClose:n,...a})};d.propTypes={viewerId:l().number.isRequired,items:l().array.isRequired,isOpen:l().bool.isRequired,onGroupClose:l().func.isRequired};const m=d},3047:(e,s,r)=>{r.r(s),r.d(s,{default:()=>a});var n=r(285),o=r(286),t=r(3048);const a=({locale:e,container:s,...r})=>{(0,n.render)((0,n.jsx)(o.LocaleProvider,{messages:e,children:(0,n.jsx)(t.default,{...r})}),s)}}}]); //# sourceMappingURL=task-progress-bar.js.map?94e79bf2df2dd8204d17
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
app
---
0755
app-image
---
0755
backup
---
0755
dns-helper
---
0755
domain
---
0755
email-address
---
0755
file-manager
---
0755
hosting-settings
---
0755
log-browser
---
0755
login
---
0755
mail-settings
---
0755
profile
---
0755
ssl-certificate
---
0755
user
---
0755
web-app-firewall
---
0755
aha.js
3589 bytes
0644
aha.js.map
9540 bytes
0644
change-customers-owner.js
4454 bytes
0644
change-customers-owner.js.map
12664 bytes
0644
convert-customers-to-resellers.js
1536 bytes
0644
convert-customers-to-resellers.js.map
4093 bytes
0644
convert-resellers-to-customers.js
2106 bytes
0644
convert-resellers-to-customers.js.map
5962 bytes
0644
dns-helper.js
16867 bytes
0644
dns-helper.js.map
46896 bytes
0644
editlist.js
7443 bytes
0644
editlist.js.map
22413 bytes
0644
eula.js
801 bytes
0644
eula.js.map
1971 bytes
0644
newsletter-subscription.js
6037 bytes
0644
newsletter-subscription.js.map
20263 bytes
0644
progress-dialog.js
2097 bytes
0644
progress-dialog.js.map
7209 bytes
0644
pum.js
12274 bytes
0644
pum.js.map
35446 bytes
0644
rating.js
5375 bytes
0644
rating.js.map
13432 bytes
0644
server-mail-antivirus-promo.js
610 bytes
0644
server-mail-antivirus-promo.js.map
1568 bytes
0644
service-sidebar.js
989 bytes
0644
service-sidebar.js.map
2284 bytes
0644
show-output-popup.js
814 bytes
0644
show-output-popup.js.map
2248 bytes
0644
task-progress-bar.js
3449 bytes
0644
task-progress-bar.js.map
11037 bytes
0644
N4ST4R_ID | Naxtarrr