File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/mailbox_converter/index.min.js
Back
define(["angular","cjt/core","cjt/util/locale","cjt/modules","uiBootstrap","ngRoute","ngAnimate"],(function(angular,CJT,LOCALE){return function(){angular.module("App",["cjt2.config.whm.configProvider","ngRoute","ui.bootstrap","cjt2.whm","ngAnimate"]);var app=require(["cjt/bootstrap","uiBootstrap","cjt/services/whm/breadcrumbService","app/services/indexService","app/views/selectAccountsController","app/views/selectFormatController","app/views/confirmController"],(function(BOOTSTRAP){var app=angular.module("App");app.value("PAGE",PAGE);var steps=[{route:"select_format",breadcrumb:LOCALE.maketext("Select Format"),templateUrl:CJT.buildFullPath("mailbox_converter/views/selectFormatView.ptt"),controller:"selectFormatController",default:true,is_ready:function requires($q){return $q((function(resolve){resolve("")}))}},{route:"select_accounts",breadcrumb:LOCALE.maketext("Select Accounts"),templateUrl:CJT.buildFullPath("mailbox_converter/views/selectAccountsView.ptt"),controller:"selectAccountsController",is_ready:function requires($q,service){return $q((function(resolve,reject){if(!!service.get_format()){resolve("")}else{reject("Missing necessary data")}}))}},{route:"finalize",breadcrumb:LOCALE.maketext("Review and Finalize"),templateUrl:CJT.buildFullPath("mailbox_converter/views/confirmView.ptt"),controller:"confirmController",is_ready:function requires($q,service){var _accounts=service.get_accounts();var has_selected_account=false;if(_accounts){for(var x=0;x<_accounts.length;x++){if(_accounts[x].selected){has_selected_account=true;break}}}return $q((function(resolve,reject){if(!!service.get_format()&&has_selected_account){resolve("")}else{reject("Missing necessary data")}}))}}];app.controller("BaseController",["$rootScope","$scope","$route","$location","indexService","$q","PAGE","$window",function($rootScope,$scope,$route,$location,indexService,$q,PAGE,$window){$scope.steps=steps;$scope.current_step=0;$scope.LOCALE=LOCALE;var _loading=false;indexService.set_accounts(PAGE.data.accounts);$rootScope.$on("$routeChangeStart",(function(event,currentRoute,previousRoute){if(previousRoute&&typeof previousRoute.$$route!=="undefined"&&previousRoute.$$route.page===$scope.current_step){$scope.current_step=currentRoute.$$route.page}_loading=true}));$rootScope.$on("$routeChangeSuccess",(function(){_loading=false}));$rootScope.$on("$routeChangeError",(function(event,currentRoute,previousRoute){_loading=false;if(previousRoute){$location.path(steps[previousRoute.$$route.page].route).replace();return}$location.path(steps[$scope.current_step].route).replace()}));$scope.current_route_matches=function(key){return $location.path().match(key)};$scope.get_view_styles=function(){var _view_classes=[];if(_loading){_view_classes.push("view-disabled")}return _view_classes};$scope.submit_form=function(form_id){document.getElementById(form_id).submit()};$scope.go_back=function(index,current_step){if(typeof index==="undefined"){$window.history.back();$scope.current_step=$scope.current_step-1;return}else{var loop_counter=current_step-index;while(loop_counter>0){$window.history.back();loop_counter--}$scope.current_step=index}};$scope.go=function(index,isValid){if(!isValid){return}steps[index].is_ready($q,indexService).then((function(){$location.path(steps[index].route);$scope.current_step=index}),(function(){}))}}]);app.config(["$routeProvider",function($routeProvider){var page_number=0;steps.forEach((function(step){$routeProvider.when("/"+step.route,{controller:step.controller,templateUrl:step.templateUrl,breadcrumb:step.breadcrumb,resolve:{data:["$q","indexService",step.is_ready]},page:page_number++});if(step.hasOwnProperty("default")&&step.default){$routeProvider.otherwise({redirectTo:"/"+step.route})}}))}]);app.run(["breadcrumbService",function(breadcrumbService){breadcrumbService.initialize()}]);BOOTSTRAP()}));return app}}));
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings