define(["angular","cjt/core","cjt/modules","ngSanitize","cjt/modules","app/views/sslStatus","uiBootstrap","angular-chosen","cjt/services/alertService"],(function(e,t){"use strict";return function(){return e.module("App",["ngSanitize","ui.bootstrap","cjt2.cpanel","angular-growl","localytics.directives","cpanel.tools.views.sslStatus","cpanel.tools.service.nginxService","cpanel.tools.service.wordPressService"]),require(["cjt/bootstrap","cjt/util/locale","app/views/applicationListController","app/views/statisticsController","app/views/themesController","app/views/nginxController","app/views/accountsController","app/services/wordPressService"],(function(t,o){var n=e.module("App");n.value("PAGE",PAGE),n.config(["$httpProvider",function(e){e.useApplyAsync(!0)}]),n.run(["wordPressService","alertService","PAGE","$rootScope",function(e,t,n,s){document.addEventListener("wordPressInstallPoll",(function(){s.$apply((function(){var s;t.add({type:"info",message:o.maketext("Your WordPress site is being created."),closeable:!0,replace:!0}),s=setInterval((function(){e.startPolling().then((function(e){"success"===e.data.install_status&&(clearInterval(s),s=null,t.add({type:"success",message:o.maketext("Your website is ready. Start adding content and personalizing “[output,strong,_1]” using [output,url,_2,WP Toolkit,title,WP Toolkit interface].",n.domain,n.wpToolkitUrl),closeable:!0,replace:!0,autoClose:1e4}))})).catch((function(e){clearInterval(s),s=null,t.add({type:"danger",message:o.maketext("Something went wrong. Your website failed to create. Try creating your website manually using [output,url,_1,WP Toolkit,title,WP Toolkit interface].",n.wpToolkitUrl),closeable:!0,replace:!0})}))}),5e3)}))}));var i=document.getElementById("linkCopyUuid"),r=document.getElementById("iconCopyUuid");function c(){var e=document.getElementById("txtAcctUuid"),t=document.getElementById("copyMsgContainer");const o=e.textContent;navigator.clipboard.writeText(o).then((()=>{t.classList.add("show-copy-success"),window.setTimeout((function(){t.classList.remove("show-copy-success")}),3e3)}),(e=>{console.error(e)}))}i&&r&&(i.addEventListener("click",c),r.addEventListener("click",c))}]),t("#content","App")}))}}));