"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["app/show-output-popup"],{3206(e,t,p){p.r(t),p.d(t,{default:()=>o});var s=p(95);const o=e=>{const t=JSON.parse(e.getAttribute("data-config")),p=e.getAttribute("data-output"),o=s.Locale.getSection("components.tasks.scheduler-run-task");let a="",l="";t.result?(a="popupDone",l="hint-ok"):(a="popupError",l="hint-failed"),a=o.lmsg(a,{task:t.name,seconds:t.seconds});const n=new s.Popup({id:"scheduled-tasks-popup",title:o.lmsg("popupTitle"),closeButtonEnabled:!0,content:`<div><p><span class="${l}"><b>${a}</b></span></p></div><div class="tree-box"><p>${(0,s.escapeHtml)(p).replace(/\n/gm,"<br>")}</p></div>`,buttons:[{title:o.lmsg("popupClose"),handler(){n.hide()}}]})};(Object.getOwnPropertyDescriptor(o,"name")||{}).writable||Object.defineProperty(o,"name",{value:"default",configurable:!0})}}]);
//# sourceMappingURL=show-output-popup.js.map?d2bbc4086cfabe15e77d