define("app/index",["angular","cjt/core","cjt/modules","ngRoute","uiBootstrap","cjt/services/alertService","cjt/directives/alert","cjt/directives/alertList"],(function(e){"use strict";return function(){return e.module("cpanel.accountPreferences",["ngRoute","ui.bootstrap","cjt2.cpanel"]),require(["cjt/bootstrap","cjt/util/locale","cjt/directives/actionButtonDirective","cjt/directives/toggleSwitchDirective","cjt/services/cpanel/nvDataService","cjt/config/componentConfiguration"],(function(t,o){var n=e.module("cpanel.accountPreferences");n.value("PAGE",PAGE),n.config(["$routeProvider",function(e){}]),n.controller("ManageController",["$scope","$location","PAGE","alertService","nvDataService","componentConfiguration","$timeout",function(e,t,n,c,i,r,a){var s=this;s.isLoading=!0,s.alertList={},i.getObject(["common-alertList"]).then((function(e){if(e){var t;try{t=JSON.parse(e["common-alertList"])}catch(e){t=r.getDefaults().alertList}t&&(s.alertList.position=t.position),s.isLoading=!1}}),(function(e){c.add({type:"danger",message:e,closeable:!0,replace:!1,group:"account_preferences"}),s.isLoading=!1})),s.setAlertListPosition=function(){var e=JSON.stringify({position:s.alertList.position});i.setObject({"common-alertList":e}).then((function(){s.alertList.position,r.setComponent("alertList",{position:s.alertList.position}),c.clear(null,"account_preferences"),c.add({type:"success",message:o.maketext("You changed the position for system notifications."),closeable:!1,replace:!1,group:"account_preferences"})}),(function(e){c.add({type:"danger",message:e,closeable:!0,replace:!1,group:"account_preferences"})}))}}]),t("#content","cpanel.accountPreferences")}))}}));