Submit
Path:
~
/
/
opt
/
psa
/
admin
/
cp
/
public
/
javascript
/
app
/
File Content:
aha.js
"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/aha"],{2993:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o});var i=s(89);class n extends i.Popup{_initConfiguration(e){this.setLocale(i.Locale.getSection("components.aha")),super._initConfiguration({id:"aha-dialog",title:this.lmsg("voteTitle"),closeButtonEnabled:!0,hideOnEscape:!0,content:`<div class="form-box form--vertical"><div class="box-area"><div class="content"><div class="content-area"><div class="nps-survey"><p class="nps-survey__question">${this.lmsg("voteQuestion")}</p><div class="nps-survey__container"><div id="aha-rating" class="nps-survey__scores"></div><div class="nps-survey__legend"><div class="nps-survey__legend-left">${this.lmsg("voteLegendBad")}</div><div class="nps-survey__legend-right">${this.lmsg("voteLegendGood")}</div></div></div></div><hr/><div class="form-row"><div class="field-name">${this.lmsg("voteGoodHint")}</div><div class="field-value"><textarea id="aha-good" class="f-max-size" maxlength="1000"></textarea></div></div><div class="form-row"><div class="field-name">${this.lmsg("voteBetterHint")}</div><div class="field-value"><textarea id="aha-better" class="f-max-size" maxlength="1000"></textarea></div></div></div></div></div></div>`,buttons:[{title:this.lmsg("voteButtonOk"),id:"aha-vote-button-ok",class:"action",handler:this.handleVoteButton.bind(this)},{title:i.Locale.getSection("components.buttons").lmsg("cancel"),id:"aha-vote-button-cancel",handler(e,t){t.hide()}}],...e})}_initComponentElement(){super._initComponentElement(),(0,i.render)(this._componentElement.querySelector("#aha-rating"),[0,1,2,3,4,5,6,7,8,9,10].map((e=>(0,i.createElement)("label",{class:`nps-survey__score nps-survey__score--${e}`,onclick:this.checkPossibleSendVote.bind(this)},[(0,i.createElement)("input",{type:"radio",name:"nps-survey-option",value:e}),(0,i.createElement)("span",{class:"nps-survey__score-label"})]))))}hide(){super.hide(),this.voted||(this.checkPossibleSendVote()||this.getFeedbackGood()||this.getFeedbackBetter()?this.sendVote():this.sendHide())}handleVoteButton(){this.checkPossibleSendVote()&&(this.voted=!0,this.sendVote(),this.hide(),new a)}checkPossibleSendVote(){const e=this._componentElement.querySelector(".nps-survey"),t=this.getRate();if(t){e.classList.remove("error");const t=e.querySelector(".field-errors");t&&t.parentNode.removeChild(t)}else{e.classList.add("error");e.querySelector(".field-errors")||(0,i.render)(e,`<span class="field-errors"><span class="error-hint">${this.lmsg("voteRequire")}</span></span>`)}return t}sendVote(){i.api.post((0,i.prepareUrl)("/admin/aha/vote"),{voted:this.voted||!1,rate:this.getRate(),feedbackGood:this.getFeedbackGood(),feedbackBetter:this.getFeedbackBetter(),dialogAtPage:window.location.pathname})}sendHide(){i.api.post((0,i.prepareUrl)("/admin/aha/hide"))}getRate(){const e=this._componentElement.querySelector(`#${this.getId()}-form input[name=nps-survey-option]:checked`);return e?e.value:""}getFeedbackGood(){return this._componentElement.querySelector("#aha-good").value.trim()}getFeedbackBetter(){return this._componentElement.querySelector("#aha-better").value.trim()}}class a extends i.Popup{_initConfiguration(e){this.setLocale(i.Locale.getSection("components.aha"));const t=[{title:this.lmsg("thankButtonClose"),class:"action",handler(e,t){t.hide()}}],s=`<p>${this.lmsg("thankHint")}</p>`;super._initConfiguration({id:"thank-dialog",title:this.lmsg("thankTitle"),closeButtonEnabled:!0,hideOnEscape:!0,content:s,buttons:t,...e})}}const o=e=>new n(e)}}]); //# sourceMappingURL=aha.js.map?991438c9f57c66bcc208
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