Submit
Path:
~
/
/
opt
/
psa
/
admin
/
cp
/
public
/
javascript
/
app
/
File Content:
change-customers-owner.js.map
{"version":3,"file":"javascript/app/change-customers-owner.js?2f5229967d7af5edfb1b","mappings":"gKAIA,MAAMA,UAA6BC,EAAAA,yBAAyBC,UACxDC,kBAAAA,CAAmBC,GACfC,MAAMF,mBAAmB,CACrBG,OAAQC,EAAAA,OAAOC,WAAW,2DACvBJ,GAEX,CAEAK,sBAAAA,CAAuBC,GAMnB,GALAC,KAAKC,iBACLD,KAAKE,QAAUC,KAEfH,KAAKI,UAAYL,EAEb,YAAcC,KAAKI,UAAUC,OAAQ,CACrCC,SAASC,eAAeP,KAAKQ,gBAAgBC,UACzC,MAAMT,KAAKU,KAAK,mBAAmBV,KAAKW,yBAE5CL,SAASC,eAAe,UAAUK,iBAAiB,SAAUZ,KAAKa,cAAcC,KAAKd,OAErFM,SAASC,eAAeP,KAAKe,iBAAiBN,UAEtC,kDAAcT,KAAKgB,yCAK3B,IAAIC,GAAmB,EACvBd,GAAGH,KAAKI,UAAUc,WAAWC,MAAK,EAAGC,MAAOC,MACF,IAAlCA,EAASC,cAAcC,SACvBN,GAAmB,GAEvBjB,KAAKwB,YAAYH,EAAS,IAGzBJ,IACDX,SAASC,eAAeP,KAAKyB,oBAAoBhB,UAAY,GAErE,MACIT,KAAK0B,iBAAiB1B,KAAKI,UAAUuB,QAE7C,CAEAhB,oBAAAA,GACI,IAAIiB,EAAoB,oDAOxB,OANC5B,KAAKI,UAAUyB,QAAU,IAAIC,SAAQC,IAClCH,GAAqB,kBAAkBG,EAAMC,QAAOC,EAAAA,EAAAA,YAAWF,EAAMG,iBACrElC,KAAKE,QAAQiC,IAAIJ,EAAMC,GAAID,EAAM,IAErCH,GAAqB,YAEdA,CACX,CAEAf,aAAAA,GACIV,GAAGH,KAAKI,UAAUc,WAAWC,MAAK,EAAGC,MAAOC,MACF,IAAlCA,EAASC,cAAcC,QACvBpB,GAAGkB,EAASC,eAAeH,MAAK,EA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AAK,yBAChCV,KAAKyD,QAAS,EAEtB,IAER,IAGGzD,KAAKyD,SAnBRzD,KAAK0B,iBAAiB1B,KAAKU,KAAK,sBACzB,EAmBf,CAEAkD,oBAAAA,CAAqBC,GAWjB,OAVAA,EAAO1B,IAAI,WAAY7B,SAASC,eAAe,UAAUa,OACzDd,SAASwD,iBAAiB,UAAUhC,SAAQ,EAAGE,KAAIZ,YAC/CyC,EAAO1B,IAAI,SAASH,EAAG+B,QAAQ,SAAU,OAAQ3C,EAAM,IAE3Dd,SAASwD,iBAAiB,SAAShC,SAAQ,EAAGE,KAAIZ,YAC9CyC,EAAO1B,IAAI,QAAQH,EAAG+B,QAAQ,QAAS,OAAQ3C,EAAM,IAEzDd,SAASwD,iBAAiB,SAAShC,SAAQ,EAAGE,KAAIZ,YAC9CyC,EAAO1B,IAAI,QAAQH,EAAG+B,QAAQ,QAAS,OAAQ3C,EAAM,IAElDyC,CACX,EAGJ,S","sources":["webpack:///./app/change-customers-owner.js"],"sourcesContent":["// Copyright 1999-2025. WebPros International GmbH. All rights reserved.\n\nimport { ConfirmationPopupManager, Locale, escapeHtml, render } from 'jsw';\n\nclass ChangeCustomersOwner extends ConfirmationPopupManager.PopupForm {\n _initConfiguration(config) {\n super._initConfiguration({\n locale: Locale.getSection('admin.components.confirmations.change-customer-owner'),\n ...config,\n });\n }\n\n _onSuccessPreparePopup(response) {\n this._clearMessages();\n this._owners = $H();\n\n this._response = response;\n\n if ('success' === this._response.status) {\n document.getElementById(this._formBoxAreaId).innerHTML = (\n `<p>${this.lmsg('ownerHint')}</p>${this.getOwnerSelectorHtml()}`\n );\n document.getElementById('owners').addEventListener('change', this.onOwnerChange.bind(this));\n\n document.getElementById(this._formListAreaId).innerHTML = (\n '<table cellspacing=\"0\" width=\"100%\">' +\n `<tbody id=\"${this._formListItemsAreaId}\">` +\n '</tbody>' +\n '</table>'\n );\n\n let hasSubscriptions = false;\n $H(this._response.customers).each(({ value: customer }) => {\n if (customer.subscriptions.length !== 0) {\n hasSubscriptions = true;\n }\n this.addCustomer(customer);\n });\n\n if (!hasSubscriptions) {\n document.getElementById(this._formDescriptionId).innerHTML = '';\n }\n } else {\n this._addErrorMessage(this._response.message);\n }\n }\n\n getOwnerSelectorHtml() {\n let ownerSelectorHtml = '<select class=\"owners\" name=\"owners\" id=\"owners\">';\n (this._response.owners || []).forEach(owner => {\n ownerSelectorHtml += `<option value=\"${owner.id}\">${escapeHtml(owner.name)}</option>`;\n this._owners.set(owner.id, owner);\n });\n ownerSelectorHtml += '</select>';\n\n return ownerSelectorHtml;\n }\n\n onOwnerChange() {\n $H(this._response.customers).each(({ value: customer }) => {\n if (customer.subscriptions.length !== 0) {\n $H(customer.subscriptions).each(({ value: subscription }) => {\n document.getElementById(`plans-box-${subscription.id}`).innerHTML = this.getPlanSelectorHtml(subscription);\n document.getElementById(`ipV4-box-${subscription.id}`).innerHTML = this.getIpAddressSelectorHtml(subscription, 'ipV4');\n document.getElementById(`ipV6-box-${subscription.id}`).innerHTML = this.getIpAddressSelectorHtml(subscription, 'ipV6');\n });\n }\n });\n }\n\n addCustomer(customer) {\n if (customer.subscriptions.length === 0) {\n this._itemClass = ('odd' === this._itemClass) ? 'even' : 'odd';\n const itemHtml = (\n `<tr class=\"${this._itemClass}\">` +\n `<td><b>${escapeHtml(customer.name)}</b></td>` +\n '<td> </td>' +\n '<td> </td>' +\n '<td> </td>' +\n '<td> </td>' +\n '</tr>'\n );\n\n render(document.getElementById(this._formListItemsAreaId), itemHtml);\n } else {\n let customerName = customer.name;\n $H(customer.subscriptions).each(({ value }) => {\n this.addSubscription(value, customerName);\n customerName = ' ';\n });\n }\n }\n\n addSubscription(subscription, customerName) {\n this._itemClass = ('odd' === this._itemClass) ? 'even' : 'odd';\n\n const itemHtml = (\n `<tr class=\"${this._itemClass}\">` +\n `<td><b>${escapeHtml(customerName)}</b></td>` +\n `<td>${escapeHtml(subscription.name)}</td>` +\n `<td id=\"plans-box-${subscription.id}\">${this.getPlanSelectorHtml(subscription)}</td>` +\n `<td id=\"ipV4-box-${subscription.id}\">${this.getIpAddressSelectorHtml(subscription, 'ipV4')}</td>` +\n `<td id=\"ipV6-box-${subscription.id}\">${this.getIpAddressSelectorHtml(subscription, 'ipV6')}</td>` +\n '</tr>'\n );\n\n render(document.getElementById(this._formListItemsAreaId), itemHtml);\n }\n\n getPlanSelectorHtml({ id }) {\n const selectedOwner = this.getSelectedOwner();\n if (selectedOwner.plans.length === 0) {\n return '';\n }\n\n let planSelectorHtml = `<select class=\"plans\" name=\"plans[${id}]\" id=\"plans-${id}\">`;\n $H(selectedOwner.plans).each(({ value: plan }) => {\n if ('undefined' !== typeof plan.id) {\n planSelectorHtml += `<option value=\"${plan.id}\">${escapeHtml(plan.name)}</option>`;\n }\n });\n planSelectorHtml += '</select>';\n\n return planSelectorHtml;\n }\n\n getIpAddressSelectorHtml(subscription, type) {\n const selectedOwner = this.getSelectedOwner();\n if ('undefined' === typeof selectedOwner[type]) {\n return '';\n }\n\n const { id } = subscription;\n let ipAddressSelectorHtml = `<select class=\"${type}\" name=\"${type}[${id}]\" id=\"${type}-${id}\">`;\n $H(selectedOwner[type]).each(({ value: ipAddress }) => {\n if ('undefined' !== typeof ipAddress.id) {\n const selected = (ipAddress.id == subscription[type].id) ? 'selected' : '';\n ipAddressSelectorHtml += `<option value=\"${ipAddress.id}\" ${selected}>${ipAddress.description}</option>`;\n }\n });\n ipAddressSelectorHtml += '</select>';\n if (subscription[type].isDedicated) {\n ipAddressSelectorHtml += `<div class=\"hint-sub hint-attention\">${this.lmsg('ipAddressHint')}</div>`;\n }\n\n return ipAddressSelectorHtml;\n }\n\n getSelectedOwner() {\n return this._owners.get(document.getElementById('owners').value);\n }\n\n _isValid() {\n this._valid = true;\n if (!this.getSelectedOwner().id) {\n this._addErrorMessage(this.lmsg('ownerNotSelected'));\n return false;\n }\n $H(this._response.customers).each(({ value: customer }) => {\n if (customer.subscriptions.length !== 0) {\n $H(customer.subscriptions).each(({ value }) => {\n if (this._valid) {\n const { id } = value;\n const ipV4 = document.getElementById(`ipV4-${id}`) ? document.getElementById(`ipV4-${id}`).value : 0;\n const ipV6 = document.getElementById(`ipV6-${id}`) ? document.getElementById(`ipV6-${id}`).value : 0;\n if (!ipV4 && !ipV6) {\n this._addErrorMessage(this.lmsg('ipAddressNotSelected'));\n this._valid = false;\n }\n }\n });\n }\n });\n\n return this._valid;\n }\n\n _getAdditionalParams(params) {\n params.set('owner-id', document.getElementById('owners').value);\n document.querySelectorAll('.plans').forEach(({ id, value }) => {\n params.set(`plans[${id.replace('plans-', '')}]`, value);\n });\n document.querySelectorAll('.ipV4').forEach(({ id, value }) => {\n params.set(`ipV4[${id.replace('ipV4-', '')}]`, value);\n });\n document.querySelectorAll('.ipV6').forEach(({ id, value }) => {\n params.set(`ipV6[${id.replace('ipV6-', '')}]`, value);\n });\n return params;\n }\n}\n\nexport default ChangeCustomersOwner;\n"],"names":["ChangeCustomersOwner","ConfirmationPopupManager","PopupForm","_initConfiguration","config","super","locale","Locale","getSection","_onSuccessPreparePopup","response","this","_clearMessages","_owners","$H","_response","status","document","getElementById","_formBoxAreaId","innerHTML","lmsg","getOwnerSelectorHtml","addEventListener","onOwnerChange","bind","_formListAreaId","_formListItemsAreaId","hasSubscriptions","customers","each","value","customer","subscriptions","length","addCustomer","_formDescriptionId","_addErrorMessage","message","ownerSelectorHtml","owners","forEach","owner","id","escapeHtml","name","set","subscription","getPlanSelectorHtml","getIpAddressSelectorHtml","_itemClass","itemHtml","render","customerName","addSubscription","selectedOwner","getSelectedOwner","plans","planSelectorHtml","plan","type","ipAddressSelectorHtml","ipAddress","selected","description","isDedicated","get","_isValid","_valid","ipV4","ipV6","_getAdditionalParams","params","querySelectorAll","replace"],"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