(window.webpackJsonpPlesk=window.webpackJsonpPlesk||[]).push([["views/smb/app/installed"],{1121:function(e,t,n){"use strict";n.r(t);var a=n(145);t.default=({updates:e,instancesList:t,domainIdParam:n,locale:s})=>{s=a.Locale.getSection("smb.components.lists.app.instances"),new a.Panel({renderTo:"installed-apps-list",cls:"list-box",items:[new a.List({id:"instances-list",pageable:!1,data:t,dataUrl:"/app/installed-list-data",columns:[{header:s.lmsg("name"),sortable:!0,dataIndex:"name",cls:"first",renderer(t){let l=t.name?Object(a.escapeHtml)(t.name):s.lmsg("undefinedApp");return t.settingsUrl&&(l='<a href="'.concat(Object(a.prepareUrl)(t.settingsUrl),'">').concat(l,"</a>")),[l,e.some(e=>e.resourceId===t.resourceId)?Object(a.createElement)(".hint-attention.update-available.package-update-".concat(Object(a.escapeHtml)(t.resourceId)),Object(a.createElement)("a",{onclick:e=>{e.preventDefault(),Object(a.redirectPost)("/app-update/index/resourceId/".concat(encodeURIComponent(t.resourceId)+n))}},s.lmsg("update"))):null]}},{header:s.lmsg("installedTo"),renderer:e=>e.url?'<a href="'.concat(Object(a.escapeAttribute)(e.url),'" target="_blank">').concat(Object(a.escapeHtml)(e.url),"</a>"):e.path?Object(a.escapeHtml)(e.path):s.lmsg("noInstallationUrlAvailable")},{header:"",cls:"last minor t-r",renderer:e=>e.deleteUrl?Object(a.createElement)("a",{onclick:t=>{t.preventDefault();const n=a.Locale.getSection("smb.controllers.service.index");a.messageBox.show({type:a.messageBox.TYPE_YESNO,subtype:"delete",text:n.lmsg("buttonUninstallApplicationConfirmationTitle"),description:n.lmsg("buttonUninstallApplicationConfirmationDescription"),onYesClick(){Object(a.redirectPost)(e.deleteUrl)},buttonTitles:{yes:n.lmsg("buttonUninstallConfirmationYes"),no:n.lmsg("buttonUninstallConfirmationNo")}})}},Object(a.escapeHtml)(s.lmsg("uninstall"))):""}],operations:[{componentType:a.SmallButton,title:s.lmsg("buttonScan"),description:s.lmsg("hintButtonScan"),addCls:"sb-refresh",handler(e){const t=Element.cumulativeOffset(e.target),n=Object(a.getComponent)("asyncProgressBarWrapper"),l=n.fly(t,s.lmsg("taskScan"),()=>{new Ajax.Request(Object(a.prepareUrl)("/smb/app/scan"),{method:"post",onSuccess(){n.removePreparingItem(l),n.update()}})})}}]})]})}}}]);
//# sourceMappingURL=installed.js.map?cc0db5bd0d8e9399ecce