Submit
Path:
~
/
/
opt
/
psa
/
admin
/
cp
/
public
/
javascript
/
app
/
File Content:
editlist.js.map
{"version":3,"file":"javascript/app/editlist.js?e89f62f285d5113a458d","mappings":"kJAIKA,OAAOC,eACRD,OAAOC,aAAe,IAuW1B,QApWA,MACIC,WAAAA,EAAY,KACRC,EAAI,QACJC,EAAO,QACPC,EAAU,GAAE,KACZC,EAAO,GAAE,eACTC,EAAiB,GAAE,UACnBC,EAAY,GAAE,WACdC,GAAa,EAAK,UAClBC,GAAY,EAAE,SACdC,EAAW,KAAI,aACfC,EAAe,KAAI,gBACnBC,EAAkB,OAElBC,KAAKC,IAAMf,OAAOC,aAAae,OAC/BhB,OAAOC,aAAaa,KAAKC,KAAOD,KAChCA,KAAKG,WAAad,EAClBW,KAAKX,KAAO,GAAGA,eACfW,KAAKV,QAAUA,EACfU,KAAKI,SAAWb,EAChBS,KAAKK,MAAQb,EACbQ,KAAKM,gBAAkBb,EACvBO,KAAKO,WAAab,EAClBM,KAAKQ,WAAab,EAClBK,KAAKS,YAAcb,EACnBI,KAAKH,SAAWA,EAChBG,KAAKF,aAAeA,EACpBE,KAAKD,gBAAkBA,EACvBC,KAAKU,YAAc,gBACnBV,KAAKW,eAAiB,oBACtBX,KAAKY,WAAa,gBAClBZ,KAAKa,UAAY,WACjBb,KAAKc,WAAa,YAClBd,KAAKe,QAAUC,EAAAA,OAAOC,WAAW,sBACrC,CAEAC,MAAAA,CAAOC,GACH,IAAIC,EAAO,GAEXA,GAAQ,oDAERA,GAAQ,OACR,IAAK,IAAIC,EAAI,EAAGA,EAAIrB,KAAKI,SAASF,OAAQmB,IACtCD,GAAQ,cAAcpB,KAAKI,SAASiB,GAAGC,UACvCF,GAAQpB,KAAKI,SAASiB,GAAGE,KACzBH,GAAQ,QAMZ,GAJAA,GAAQ,YACRA,GAAQ,QAGJpB,KAAKV,QAAS,CACd,IAAIkC,GAAgB,EACpBJ,GAAQ,cAAcpB,KAAKU,gBAC3B,IAAK,IAAIW,E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AMH,OAAS,GAEhDF,KAAK4C,UACD5C,KAAKQ,YACLR,KAAKiE,aAAajE,KAAKK,MAAMH,OAAS,IAEnC,CACX,CAEAoF,GAAAA,CAAIrC,GACA,IAAI5B,EACJ,MAAM7B,EAAO,GACPE,EAAY,GACZD,EAAiB,GACvB,IAAK4B,EAAI,EAAGA,EAAIrB,KAAKK,MAAMH,OAAQmB,IAC3BA,GAAK4B,IACLzD,EAAKwC,KAAKhC,KAAKK,MAAMgB,IACrB3B,EAAUsC,KAAKhC,KAAKO,WAAWc,IAC/B5B,EAAeuC,KAAKhC,KAAKM,gBAAgBe,KAGjDrB,KAAKK,MAAQb,EACbQ,KAAKO,WAAab,EAClBM,KAAKM,gBAAkBb,EACnBO,KAAKQ,aACDyC,EAAKjD,KAAKS,YACVT,KAAKS,cACEwC,GAAMjD,KAAKS,aACdT,KAAKS,aAAeT,KAAKK,MAAMH,SAC/BF,KAAKS,YAAcT,KAAKK,MAAMH,OAAS,IAKf,mBAAzBF,KAAKD,iBACZC,KAAKD,gBAAgBC,MAEzBA,KAAK4C,SACT,E,WCzWJ2C,EAAOC,QAAUC,IAAIC,QAAU,mE,WCA/BH,EAAOC,QAAUC,IAAIC,QAAU,0D,WCA/BH,EAAOC,QAAUC,IAAIC,QAAU,sE,WCA/BH,EAAOC,QAAUC,IAAIC,QAAU,6D","sources":["webpack:///./app/editlist.js","webpack:///./icons/16/plesk/add-disabled.png","webpack:///./icons/16/plesk/add.png","webpack:///./icons/16/plesk/delete-disabled.png","webpack:///./icons/16/plesk/delete.png"],"sourcesContent":["// Copyright 1999-2025. WebPros International GmbH. All rights reserved.\n\nimport { escapeAttribute, escapeHtml, Locale } from 'jsw';\n\nif (!window.psaEditLists) {\n window.psaEditLists = [];\n}\n\nclass EditList {\n constructor({\n name,\n enabled,\n columns = [],\n data = [],\n additionalData = [],\n canDelete = [],\n selectable = false,\n selection = -1,\n onSelect = null,\n onNewElement = null,\n onDeleteElement = null,\n }) {\n this._id = window.psaEditLists.length;\n window.psaEditLists[this._id] = this;\n this.objectName = name;\n this.name = `${name}EditListObj`;\n this.enabled = enabled;\n this._columns = columns;\n this._data = data;\n this._additionalData = additionalData;\n this._canDelete = canDelete;\n this._canSelect = selectable;\n this._selectedId = selection;\n this.onSelect = onSelect;\n this.onNewElement = onNewElement;\n this.onDeleteElement = onDeleteElement;\n this._inputClass = 'evenrowbg add';\n this._selectedClass = 'oddrowbg selected';\n this._overClass = 'oddrowbg over';\n this._oddClass = 'oddrowbg';\n this._evenClass = 'evenrowbg';\n this._locale = Locale.getSection('components.editlist');\n }\n\n render(tagId) {\n let html = '';\n\n html += '<table width=\"100%\" cellspacing=\"0\" class=\"list\">';\n\n html += '<tr>';\n for (let i = 0; i < this._columns.length; i++) {\n html += `<th width=\"${this._columns[i].size}%\">`;\n html += this._columns[i].text;\n html += '</th>';\n }\n html += '<th></th>';\n html += '</tr>';\n\n // BEGIN RENDER INPUT ROW\n if (this.enabled) {\n let inputDisabled = false;\n html += `<tr class=\"${this._inputClass}\">`;\n for (let i = 0; i < this._columns.length; i++) {\n html += `<td id=\"${this._columns[i].name}Cell_Input\">`;\n switch (this._columns[i].type) {\n case 'const':\n html += `<input type=\"hidden\" id=\"${this._columns[i].name}_input\" value=\"${this._columns[i].value[0]}\">${this._columns[i].value[1]}`;\n break;\n case 'text':\n html += `<input type=\"text\" id=\"${this._columns[i].name}_input\" style=\"width: 100%;\">`;\n break;\n case 'select': {\n const values = [];\n for (let j = 0; j < this._columns[i].value.length; j++) {\n let found = false;\n if (this._columns[i].primary) {\n for (let k = 0; k < this._data.length; k++) {\n if (this._data[k][i] == this._columns[i].value[j][0]) {\n found = true;\n break;\n }\n }\n }\n if (!found) {\n values.push(this._columns[i].value[j]);\n }\n }\n if (!values.length) {\n inputDisabled = true;\n }\n html += `<select id=\"${this._columns[i].name}_input\" style=\"width: 100%; max-width:100%;\"` +\n ` ${values.length === 0 ? ' DISABLED' : ''} onChange=\"return psaEditLists[${this._id}].onInputChange(${i});\">`;\n\n for (let j = 0; j < values.length; j++) {\n if (values[j][2]) {\n html += `<option value=\"${values[j][0]}\">${values[j][1]}</option>`;\n }\n }\n html += '</select>';\n break;\n }\n }\n html += '</td>';\n }\n if (!inputDisabled) {\n html += `<td><a data-id=\"add-item\" onClick=\"psaEditLists[${this._id}].Add();\">` +\n `<i class=\"icon\"><img src=\"${require('icons/16/plesk/add.png')}\" alt=\"\"></i></a></td>`;\n } else {\n html += '<td><a>'\n + `<i class=\"icon\"><img src=\"${require('icons/16/plesk/add-disabled.png')}\" alt=\"\"></i></a></td>`;\n }\n html += '</tr>';\n }\n // END RENDER INPUT ROW\n\n for (let j = 0; j < this._data.length; j++) {\n // BEGIN RENDER DATA ROW\n html += `<tr class=\"${this._selectedId == j ? this._selectedClass : (j % 2 === 0 ? this._oddClass : this._evenClass)}\"`;\n html += this._canSelect ? ' style=\"cursor: pointer;\"' : '';\n html += this._canSelect ? (` onmouseover=\"${this.name}.setPointer(this, ${j}, 'over');\"`) : '';\n html += this._canSelect ? (` onmouseout=\"${this.name}.setPointer(this, ${j}, 'out');\"`) : '';\n html += this._canSelect ? (` onClick=\"${this.name}.setPointer(this, ${j}, 'click');\"`) : '';\n html += '>';\n for (let i = 0; i < this._columns.length; i++) {\n html += `<td id=\"${this._columns[i].name}Cell_${j}\">`;\n if (this._columns[i].editable) {\n html += `<input type=\"text\" name=\"${this._columns[i].name}[]\" value=\"${escapeAttribute(this._data[j][i])}\" style=\"width: 100%;\">`;\n } else if (this._columns[i].type === 'const') {\n html += `${this._data[j][i][1]}<input type=\"hidden\" name=\"${this._columns[i].name}[]\" value=\"${this._data[j][i][0]}\">`;\n } else if (this._columns[i].type === 'select') {\n let str = '';\n for (let k = 0; k < this._columns[i].value.length; k++) {\n if (this._data[j][i] == this._columns[i].value[k][0]) {\n str = this._columns[i].value[k][1];\n break;\n }\n }\n html += `${str}<input type=\"hidden\" name=\"${this._columns[i].name}[]\" value=\"${escapeAttribute(this._data[j][i])}\">`;\n } else {\n html += escapeHtml(this._data[j][i]);\n html += `<input type=\"hidden\" name=\"${this._columns[i].name}[]\" value=\"${escapeAttribute(this._data[j][i])}\">`;\n }\n html += '</td>';\n }\n if (this.enabled && this._canDelete[j]) {\n html += `<td><a data-id=\"delete-item\" onClick=\"psaEditLists[${this._id}].Del(${j});\">`\n + `<i class=\"icon\"><img src=\"${require('icons/16/plesk/delete.png')}\" alt=\"\"></i></a></td>`;\n } else {\n html += '<td><a>'\n + `<i class=\"icon\"><img src=\"${require('icons/16/plesk/delete-disabled.png')}\" alt=\"\"></i></a></td>`;\n }\n html += '</tr>';\n // END RENDER DATA ROW\n }\n\n html += '</table>';\n\n document.getElementById(tagId).innerHTML = html;\n this._tagId = tagId;\n if (this.enabled) {\n for (let i = 0; i < this._columns.length; i++) {\n if (this._columns[i].type === 'select' && this._columns[i].onChange != null) {\n this.onInputChange(i);\n }\n }\n }\n }\n\n onInputChange(i) {\n this._columns[i].onChange(document.getElementById(`${this._columns[i].name}_input`));\n }\n\n refresh() {\n this.render(this._tagId);\n }\n\n getColumns() {\n return this._columns;\n }\n\n getColumnsCount() {\n return this._columns.length;\n }\n\n setAllData(data, canDelete) {\n this._data = data;\n this._canDelete = canDelete;\n }\n\n getData(id, row) {\n return this._data[id][row];\n }\n\n setData(id, row, val) {\n this._data[id][row] = val;\n }\n\n getAllData() {\n return this._data;\n }\n\n getCanDelete(id) {\n return this._canDelete[id];\n }\n\n getAllCanDelete() {\n return this._canDelete;\n }\n\n getSize() {\n return this._data.length;\n }\n\n setAllAdditionalData(data) {\n this._additionalData = data;\n }\n\n getAllAdditionalData() {\n return this._additionalData;\n }\n\n setAdditionalData(id, data) {\n this._additionalData[id] = data;\n }\n\n getAdditionalData(id) {\n if (id < 0) {\n return false;\n }\n return this._additionalData[id];\n }\n\n setPointer(theRow, theRowNum, theAction) {\n if (theAction === 'click') {\n this.setSelection(theRowNum);\n } else if (theAction === 'over' && theRowNum != this._selectedId) {\n theRow.className = this._overClass;\n } else if (theAction === 'out') {\n theRow.className = theRowNum == this._selectedId ? this._selectedClass : (theRowNum % 2 === 0 ? this._oddClass : this._evenClass);\n }\n }\n\n setSelection(id) {\n if (id < 0 || id >= this.getSize()) {\n id = -1;\n }\n let selectedRow;\n if (this._selectedId !== -1) {\n selectedRow = this.getRow(this._selectedId);\n selectedRow.className = (this._selectedId % 2 === 0 ? this._oddClass : this._evenClass);\n }\n const oldid = this._selectedId;\n this._selectedId = id;\n if (this._selectedId !== -1) {\n selectedRow = this.getRow(this._selectedId);\n selectedRow.className = this._selectedClass;\n if (typeof this.onSelect === 'function') {\n this.onSelect(this, this._selectedId, oldid);\n }\n }\n }\n\n getSelection() {\n return this._selectedId;\n }\n\n getRow(theRowNum) {\n const rows = document.getElementById(this._tagId).getElementsByTagName('tr');\n if (theRowNum < 0 || theRowNum > rows.length) {\n return null;\n }\n return rows[theRowNum + (this.enabled ? 2 : 1)];\n }\n\n Add() {\n let i;\n let j;\n const ndata = [];\n const errors = [];\n let res;\n\n for (i = 0; i < this._columns.length; i++) {\n if (this._columns[i].type === 'const') {\n ndata[i] = this._columns[i].value;\n } else {\n ndata[i] = document.getElementById(`${this._columns[i].name}_input`).value;\n if (ndata[i] == '' && this._columns[i].required) {\n errors.push(`${this._columns[i].text}: ${this._locale.lmsg('emptyParameter')}`);\n } else if (this._columns[i].check != null && (res = this._columns[i].check(ndata[i])) != true) {\n errors.push(`${this._columns[i].text}: ${res}`);\n }\n }\n }\n if (errors.length > 0) {\n let msg = `${this._locale.lmsg('wrongParameters')}:\\n`;\n msg += errors.map(error => ` ${error}\\n`).join('');\n // eslint-disable-next-line no-alert\n alert(msg);\n return false;\n }\n\n for (j = 0; j < this._data.length; j++) {\n // error\n let uniqerr = 0;\n for (i = 0; i < this._columns.length; i++) {\n if (this._columns[i].primary) {\n uniqerr++;\n if (this._data[j][i] != ndata[i]) {\n uniqerr--;\n }\n }\n }\n if (uniqerr > 0) {\n // eslint-disable-next-line no-alert\n alert('Error: dublicate record.');\n return false;\n }\n }\n\n this._data.push(ndata);\n this._canDelete.push(true);\n this._additionalData.push('');\n if (typeof this.onNewElement === 'function') {\n this.onNewElement(this, this._data.length - 1);\n }\n this.refresh();\n if (this._canSelect) {\n this.setSelection(this._data.length - 1);\n }\n return true;\n }\n\n Del(id) {\n let i;\n const data = [];\n const canDelete = [];\n const additionalData = [];\n for (i = 0; i < this._data.length; i++) {\n if (i != id) {\n data.push(this._data[i]);\n canDelete.push(this._canDelete[i]);\n additionalData.push(this._additionalData[i]);\n }\n }\n this._data = data;\n this._canDelete = canDelete;\n this._additionalData = additionalData;\n if (this._canSelect) {\n if (id < this._selectedId) {\n this._selectedId--;\n } else if (id == this._selectedId) {\n if (this._selectedId >= this._data.length) {\n this._selectedId = this._data.length - 1;\n }\n }\n }\n\n if (typeof this.onDeleteElement === 'function') {\n this.onDeleteElement(this);\n }\n this.refresh();\n }\n}\n\nexport default EditList;\n","module.exports = Jsw.skinUrl + \"/icons/16/plesk/add-disabled.png?1a20f1ce41ba7962179707bb93fb0160\";","module.exports = Jsw.skinUrl + \"/icons/16/plesk/add.png?adc28eb740975477578cb3393b40c7f8\";","module.exports = Jsw.skinUrl + \"/icons/16/plesk/delete-disabled.png?0401c699042a592ecdb931912edd304d\";","module.exports = Jsw.skinUrl + \"/icons/16/plesk/delete.png?27d654be29d57ad05641c2ff392035fa\";"],"names":["window","psaEditLists","constructor","name","enabled","columns","data","additionalData","canDelete","selectable","selection","onSelect","onNewElement","onDeleteElement","this","_id","length","objectName","_columns","_data","_additionalData","_canDelete","_canSelect","_selectedId","_inputClass","_selectedClass","_overClass","_oddClass","_evenClass","_locale","Locale","getSection","render","tagId","html","i","size","text","inputDisabled","type","value","values","j","found","primary","k","push","require","editable","escapeAttribute","str","escapeHtml","document","getElementById","innerHTML","_tagId","onChange","onInputChange","refresh","getColumns","getColumnsCount","setAllData","getData","id","row","setData","val","getAllData","getCanDelete","getAllCanDelete","getSize","setAllAdditionalData","getAllAdditionalData","setAdditionalData","getAdditionalData","setPointer","theRow","theRowNum","theAction","setSelection","className","selectedRow","getRow","oldid","getSelection","rows","getElementsByTagName","Add","ndata","errors","res","required","lmsg","check","msg","map","error","join","alert","uniqerr","Del","module","exports","Jsw","skinUrl"],"sourceRoot":""}
Edit
Rename
Chmod
Delete
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