Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
cp
/
public
/
javascript
/
app
/
app
/
File Content:
progress.js.map
{"version":3,"file":"javascript/app/app/progress.js?10e1112df3552414c950","mappings":"uKAKA,MAAMA,UAAiBC,EAAAA,UAAUC,WAAAA,IAAAC,GAAA,SAAAA,IAAAC,EAAAA,EAAAA,SAAA,sBACZ,IAACA,EAAAA,EAAAA,SAAA,0BAEG,IAACA,EAAAA,EAAAA,SAAA,mBAER,IAACA,EAAAA,EAAAA,SAAA,oBAEA,EAAC,CAEhBC,kBAAAA,CAAmBC,GACfC,MAAMF,mBAAmB,CACrBG,OAAQC,EAAAA,OAAOC,WAAW,uCACvBJ,IAEPK,YAAW,KACPC,KAAKC,gBAAgB,GACtB,IACP,CAEAC,qBAAAA,GACIF,KAAKG,sBAAuBC,EAAAA,EAAAA,mBAAkB,MAAO,CACjDC,MAAO,mBAEXL,KAAKM,qBAAsBF,EAAAA,EAAAA,mBAAkB,MAAO,CAChDC,MAAO,aAEXL,KAAKM,oBAAoBC,UAAY,mCACrCP,KAAKQ,mBAAoBJ,EAAAA,EAAAA,mBAAkB,MAAO,CAC9CC,MAAO,oCAEXL,KAAKQ,kBAAkBC,YAAYT,KAAKG,sBACxCH,KAAKQ,kBAAkBC,YAAYT,KAAKM,qBACxCN,KAAKU,QAAQ,EACjB,CAEAA,OAAAA,CAAQC,GACJA,EAAWC,KAAKC,IAAIF,EAAU,GAC9BX,KAAKG,qBAAqBI,UAAYP,KAAKc,KAAK,WAAY,CAAEH,aAC9DX,KAAKM,oBAAoBS,iBAAiB,oBAAoBC,SAAQC,IAClEA,EAAQC,MAAMC,MAAQ,GAAGR,IAAW,GAE5C,CAEAV,cAAAA,GACImB,EAAAA,IAAIC,IAAIrB,KAAKsB,gBAAgB,eACxBC,MAAKC,IACEA,EAAOC,UACPzB,KAAKU,QAAQc,EAAOC,UAEpBD,EAAOE,SAAW1B,KAAK2B,gBAAkBH,EAAOE,SAAW1B,KAAK4B,oBAMpEJ,EAAOK,IAAML,EAAOK,IACdL,EAAOK,IACP7B,KAAKsB,gBAAgB,eAAeQ,QAAQ,cAAeN,EAAOO,WAAWD,QAAQ,eAAgBN,EAAOQ,YAClHR,EAAOS,OAASjC,KAAKsB,gBAAgB,iBAAkB,QACvDY,EAAAA,EAAAA,UAASV,IATLzB,YAAW,KACPC,KAAKC,gBAAgB,GACtBD,KAAKsB,gBAAgB,UAAW,KAOvB,GAE5B,EAGJ,QAAea,IACX,IAAI/C,EAAS+C,EAChB,C","sources":["webpack:///./app/app/progress.js"],"sourcesContent":["// Copyright 1999-2025. WebPros International GmbH. All rights reserved.\n\nimport { Component, Locale, redirect, api } from 'jsw';\nimport { createHtmlElement } from 'helpers/createHtmlElement';\n\nclass Progress extends Component {\n STATUS_STARTED = 0;\n\n STATUS_NOT_STARTED = 1;\n\n STATUS_DONE = 2;\n\n STATUS_ERROR = 3;\n\n _initConfiguration(config) {\n super._initConfiguration({\n locale: Locale.getSection('smb.components.elements.download'),\n ...config,\n });\n setTimeout(() => {\n this.updateProgress();\n }, 1000);\n }\n\n _initComponentElement() {\n this._progressTextElement = createHtmlElement('div', {\n class: 'progress-label',\n });\n this._progressBarElement = createHtmlElement('div', {\n class: 'progress',\n });\n this._progressBarElement.innerHTML = '<div class=\"progress-bar\"></div>';\n this._componentElement = createHtmlElement('div', {\n class: 'progress-box app-progress-panel',\n });\n this._componentElement.appendChild(this._progressTextElement);\n this._componentElement.appendChild(this._progressBarElement);\n this._update(0);\n }\n\n _update(percents) {\n percents = Math.max(percents, 1);\n this._progressTextElement.innerHTML = this.lmsg('progress', { percents });\n this._progressBarElement.querySelectorAll('div.progress-bar').forEach(element => {\n element.style.width = `${percents}%`;\n });\n }\n\n updateProgress() {\n api.get(this._getConfigParam('requestUrl'))\n .then(result => {\n if (result.progress) {\n this._update(result.progress);\n }\n if (result.status === this.STATUS_STARTED || result.status === this.STATUS_NOT_STARTED) {\n setTimeout(() => {\n this.updateProgress();\n }, this._getConfigParam('timeout', 1000));\n return;\n }\n result.url = result.url\n ? result.url\n : this._getConfigParam('redirectUrl').replace('%packageId%', result.packageId).replace('%resourceId%', result.resourceId);\n result.method = this._getConfigParam('redirectMethod', 'get');\n redirect(result);\n });\n }\n}\n\nexport default params => {\n new Progress(params);\n};\n"],"names":["Progress","Component","constructor","args","_defineProperty","_initConfiguration","config","super","locale","Locale","getSection","setTimeout","this","updateProgress","_initComponentElement","_progressTextElement","createHtmlElement","class","_progressBarElement","innerHTML","_componentElement","appendChild","_update","percents","Math","max","lmsg","querySelectorAll","forEach","element","style","width","api","get","_getConfigParam","then","result","progress","status","STATUS_STARTED","STATUS_NOT_STARTED","url","replace","packageId","resourceId","method","redirect","params"],"sourceRoot":""}
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
apscatalog.js
13833 bytes
0644
apscatalog.js.map
35919 bytes
0644
installed.js
2038 bytes
0644
installed.js.map
7832 bytes
0644
progress.js
1771 bytes
0644
progress.js.map
4500 bytes
0644
N4ST4R_ID | Naxtarrr