PageSourceSearch

https://ahamadrid.com/cp/javascript/app/backup/list.js?bd8f66e21756a81033b2

js ahamadrid.com collected 2026-10-04 12:37:43 UTC 9,042 bytes, 2 lines download raw bytes

1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/backup/list"],{1053:(t,s,e)=>{"use strict";e.r(s);var a=e(85),l=e(1054);const o=a.Locale.getSection("components.lists.backup"),n=({urls:t,...s})=>[{componentType:a.SmallButton,id:"buttonBackup",title:o.lmsg("buttonBackup"),description:o.lmsg("hintBackup"),addCls:"sb-backup btn-primary",href:t.backup},s.showUploadButton?{componentType:a.SmallButton,id:"buttonUpload",title:o.lmsg("buttonUpload"),description:o.lmsg("hintUpload"),addCls:"sb-upload",href:t.upload}:null,{componentType:a.bar.Separator},{componentType:a.SmallButton,id:"buttonRemoveBackup",title:o.lmsg("buttonRemove"),description:o.lmsg("hintRemove"),addCls:"sb-remove-selected",handler(s){(0,a.getComponent)("backup-list").execGroupOperation({url:t.delete,subtype:"delete",mouseEvent:s,locale:{confirmOnGroupOperation:o.lmsg("confirmOnDelete")},isAjax:!0,requestUrl:t.getIncrementsLocal,loadingTitle:o.lmsg("incrementsRemovalLoading")})}},{componentType:a.bar.Separator},{componentType:a.SmallButton,id:"buttonSchedule",title:o.lmsg("buttonSchedule"),description:o.lmsg("hintSchedule"),addCls:"sb-schedule",href:t.schedule},s.showSettingsButton?{componentType:a.SmallButton,id:"buttonSettings",title:o.lmsg("buttonSettings"),description:o.lmsg("hintSettings"),addCls:"sb-settings",href:t.settings}:null,s.showFtpSettingsButton?{componentType:a.SmallButton,id:"buttonRemoteStorages",title:o.lmsg("buttonRemoteStorages"),description:o.lmsg("hintRemoteStorages"),addCls:"sb-ftp-settings",href:t.remoteStorages}:null],r=({urls:t,...s})=>new a.List({id:"backup-list",searchFilters:s.searchFilters,searchOveral:"name",data:s.data,dataUrl:t.listData,disabledSelectHint:o.lmsg("disabledSelectHint"),operations:n({urls:t,...s}),columns:[a.list.COLUMN_SELECTION,{header:o.lmsg("status"),sortable:!1,cls:"min",dataIndex:"status",renderer(t){let s=e(1055),a="";return"off"===t.status?(s=e(760),a=o.lmsg("statusOff")):"warning"===t.status?(s=e(1037),a=o.lmsg("statusWarning")):"info"===t.status?(s=e(913),a=o.lmsg("statusInfo")):"on"===t.status?(s=e(759),a=o.lmsg("statusOn")):"task-progress"===t.status?(s=e(1056),a=o.lmsg("statusTaskProgress")):"task-info"===t.status?(s=e(1057),a=o.lmsg("statusTaskInfo")):"task-warning"===t.status?(s=e(1037),a=o.lmsg("statusTaskWarnings")):"task-failed"===t.status?(s=e(1058),a=o.lmsg("statusTaskFailed")):"task-stopping"===t.status?(s=e(1056),a=o.lmsg("statusTaskStopping")):"task-stopped"===t.status&&(s=e(1037),a=o.lmsg("statusTaskStopped")),`<div class="b-indent"><span class="b-indent-icon"><span class="tooltipData">${a}</span><img src="${s}" data-status="${t.status}" alt="${t.ownerType}" title=""></span></div>`}},{header:o.lmsg("date"),sortable:!0,dataIndex:"date",cls:"number",renderer(s){let e="";const l=s.id.split(":");if("task"===l[0])e=(0,a.addUrlParams)(t.taskDetails,{taskId:l[1]});else{const s={type:l[0],dumpId:l[1]};l.length>2&&(s.storageName=l[2]),e=(0,a.addUrlParams)(t.restore,s)}let o="";return"task-progress"!==s.status&&"task-stopping"!==s.status||(o=`<div id="task-sync-status-${l[1]}"></div>`),`<a href="${(0,a.escapeHtml)(e)}">${(0,a.escapeHtml)(s.dateString)}</a>${o}`}},s.showCommentColumn?{header:o.lmsg("comment"),sortable:!0,dataIndex:"comment"}:null,s.showSystemNotesColumn?{header:o.lmsg("systemNotes"),sortable:!0,dataIndex:"systemNotes",renderer(t){let s=o.lmsg("remoteStorage"),e="";"ftp"===t.storageType?(s=s.replace("%%storage%%","FTP"),e=`<img src="${(0,a.escapeHtml)(t.storageIconUrl)}" data-storage="ftp" alt="${s}" title="${s}"> `):"extension"===t.storageType&&(s=s.replace("%%storage%%",(0,a.escapeHtml)(t.storageTitle)),e=`<img src="${(0,a.escapeHtml)(t.storageIconUrl)}" data-storage="ext" alt="${s}" title="${s}"> `);const l=[e,(0,a.escapeHtml)(t.systemNotes)];if(t.volumes&&t.volumes.length>0){const s=t.volumes.map((t=>(0,a.createElement)(".hint-sub.multi-volume",{style:"display:none"},(0,a.escapeHtml)(t.name)))),e=(0,a.createElement)("span.multi-volume-show",o.lmsg("multiVolumeShow")),n=(0,a.createElement)("span.multi-volume-hide",{style:"display:none"},o.lmsg("multiVolumeHide"));l.push(" ",(0,a.createElement)("a.toggler.multi-volume-toggle",{onclick:t=>{t.preventDefault(),t.target.closest("tr").querySelectorAll(".multi-volume, .multi-volume-show, .multi-volume-hide").forEach((t=>{t.style.display="none"===t.style.display?"":"none"}))}},["[",e,n,"]"]),s)}return l}}:null,{header:o.lmsg("size"),sortable:!0,cls:"t-r number",dataIndex:"size",renderer(s){if(s.isTask)return"";let e=(0,a.escapeHtml)(s.sizeString);return s.isIncremental&&(e=(0,a.createElement)("a.toggler.backup-size-hint",{onrender:e=>{const l=s.id.split(":"),o={type:l[0],dumpId:l[1]};l.length>2&&(o.storageName=l[2]);const n=a.Locale.getSection("controllers.backup.size-hint");new a.DynamicPopupHint.Instance({title:n.lmsg("title"),waitMsg:n.lmsg("waitMessage"),url:(0,a.addUrlParams)(t.sizeHint,o),placement:"left",target:e})}},`+${e}
1`)),(s.volumes||[]).forEach((t=>{e=Array.isArray(e)?e:[e],e.push((0,a.createElement)(".hint-sub.multi-volume",{style:"display:none"},(0,a.escapeHtml)(t.sizeString)))})),e}},s.showDownloadColumn?{header:"",sortable:!1,cls:"min",renderer(e){if(e.isTask)return"";if(s.isDownloadEnabled){const s=e.id.split(":"),l={type:s[0],dumpId:s[1]};s.length>2&&(l.storageName=s[2]);const n="local"==s[0]?t.downloadLocal:t.downloadFtp,r=t=>`<span class="tooltipData">${o.lmsg("download")}</span><a href="${(0,a.escapeHtml)(t)}" class="s-btn sb-download"><span></span></a>`,i=[r((0,a.addUrlParams)(n,l))];return(e.volumes||[]).forEach((t=>{const e={type:s[0],dumpId:t.id,volume:!0};s.length>2&&(e.storageName=s[2]),i.push((0,a.createElement)(".hint-sub.multi-volume",{style:"display:none"},r((0,a.addUrlParams)(n,e))))})),i}return`<span class="tooltipData">${o.lmsg("downloadDisabled")}</span><span class="s-btn sb-download btn-disabled"><span></span></span>`}}:null],onRedraw(){this._randomId=this._getRandomNumber(),this._data.each((s=>{if("task-progress"!==s.status&&"task-stopping"!==s.status)return;const e=s.id.split(":");setTimeout((()=>this.checkSyncStatus(`task-sync-status-${e[1]}`,(0,a.addUrlParams)(t.taskStatus,{taskId:e[1]}),(()=>this.reload()),this._randomId,{timeout:5e3,progressStatus:"progress"})),5e3)})),(0,l.default)({taskStatuses:this._additionalData.taskStatuses,urls:t})},getTotalInfo(){return o.lmsg(this._state.searchFilters.name.searchText?"totalFound":"total",{found:this._pager.totalItemCount,total:this._additionalData.totalCount,totalSize:this._additionalData.totalSize})},isDisabledItem:t=>!t.isRoot});s.default=t=>(t.downloadDump&&setTimeout((()=>(({urls:{downloadDump:t},downloadData:s})=>{const e=JSON.parse(s);(0,a.redirectPost)((0,a.addUrlParams)(t,{dumpId:e.dumpId}),e)})(t)),0),(t=>new a.Panel({cls:"list-box",renderTo:"main",items:[r(t)]}))(t))},1054:(t,s,e)=>{"use strict";e.r(s);var a=e(85);s.default=({urls:t,taskStatuses:s})=>{const e=a.Locale.getSection("controllers.backup.restore-status"),l=({id:s,status:l,message:o,downloadLog:n,viewLog:r,close:i,stop:d,additionalContent:u})=>{const p=[o];n&&p.push("&nbsp;",n),r&&p.push("&nbsp;",r),i&&p.push("&nbsp;",(0,a.createElement)("a",{onclick:()=>(async s=>{const{status:e}=await a.api.post((0,a.addUrlParams)(t.closeStatus,{taskId:s}));if("success"===e){const t=document.getElementById(`task-status-${s}`);t?.parentNode.removeChild(t)}})(s)},e.lmsg("closeMessage"))),d&&p.push("&nbsp;",(0,a.createElement)("a",{onclick:()=>{return e=s,void a.api.post((0,a.addUrlParams)(t.stopTask,{taskId:e}));var e}},e.lmsg("stop"))),u&&p.push(u),(0,a.addStatusMessage)(l,p,{id:`task-status-${s}`})},o=[];s.forEach((t=>{"backup"===t.type&&"progress"===t.status||("progress"===t.status?o.push(t):l(t))})),document.querySelectorAll(".msg-progress").forEach((t=>{o.some((s=>t.id===`task-status-${s.id}`))||t.parentNode.removeChild(t)})),o.forEach((s=>{const{id:e}=s,o=`task-status-${e}`;if(document.getElementById(o))return;l(s);const n=()=>{a.api.get((0,a.addUrlParams)(t.restoreStatus,{taskId:e})).then((t=>{const s=document.getElementById(o);s&&("progress"===t.status?(setTimeout(n,1e4),t.stop||(s.parentNode.removeChild(s),l(t))):(s.parentNode.removeChild(s),l(t),(0,a.getComponent)("backup-list").reload()))})).catch((()=>setTimeout(n,1e4)))};setTimeout(n,1e4)}
1))}},1037:t=>{t.exports=Jsw.skinUrl+"/icons/16/plesk/att.png?448a819f0c047a05dcdef17357707ab7"},1056:t=>{t.exports=Jsw.skinUrl+"/icons/16/plesk/indicator.gif?ec13272efd3228a24b40fd71713483d6"},913:t=>{t.exports=Jsw.skinUrl+"/icons/16/plesk/info.png?da4140956f6da4ea1b905f00e6c108b0"},760:t=>{t.exports=Jsw.skinUrl+"/icons/16/plesk/off.png?84d64d1bd3267c21795505b7daa43800"},1057:t=>{t.exports=Jsw.skinUrl+"/icons/16/plesk/ok.png?402e5b49692b25d9d02326339ede77fa"},759:t=>{t.exports=Jsw.skinUrl+"/icons/16/plesk/on.png?7f7c68cae29103cdfe0278b2fc8d1d9f"},1055:t=>{t.exports=Jsw.skinUrl+"/icons/16/plesk/question.png?17d51a05e3f0d5fb6efa06757ca4e9ef"},1058:t=>{t.exports=Jsw.skinUrl+"/icons/16/plesk/warning.png?6f3aa0516c5077fb39a7b37dc8a9c7fb"}}]);
2//# sourceMappingURL=list.js.map?bd8f66e21756a81033b2

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.