Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/tests/localePluginTest.cmb.min.js

define("app/views/commonController",["angular","cjt/services/alertService","uiBootstrap"],function(o){var l;try{l=o.module("App")}catch(e){l=o.module("App",["ui.bootstrap","ngSanitize"])}return l.controller("commonController",["$scope","$location","alertService","PAGE",function(e,o,l,i){e.isInstalled=i.installed,e.alerts=l.getAlerts(),e.closeAlert=function(e){l.remove(e)}}])}),define("app/test_modules/module",[],function(){return"module"}),function(){"use strict";var r=/%/,a=function(e){return!0};function n(e){var o,l,i,t,n;e.locale?e.locale.isInitialized||(e.locale.isLocalizable?e.locale.isLocalizable=("string"==typeof(l=e.locale.isLocalizable)?(i=new RegExp(l),t=function(e){return i.test(e)}):l instanceof RegExp?t=function(e){return l.test(e)}:(n=l)&&"[object Function]"==={}.toString.call(n)&&(t=l),t=t||a):e.locale.isLocalizable=a,e.locale.replace?e.locale.replace=("string"==typeof(t=e.locale.replace)?o=new RegExp(t):t instanceof RegExp&&(o=t),o=o||r):e.locale.replace=r,e.locale.extension||(e.locale.extension="-%"),e.locale.isInitialized=!0):e.locale={disabled:!0,isInitialized:!0}}define("locale",{version:"2.1.0",name:"cPanel locale requirejs plugin",description:"The locale requirejs plugin loads files and their related locale file.",load:function(e,o,l,i){var t;n(i=i||{}),!i.locale.disabled&&((t=i)&&t.locale&&void 0!==t.locale.currentLocale&&""!==t.locale.currentLocale)&&i.locale.isLocalizable(e)?(t=(o.toUrl(e)||"").split("?"),o([t[0]+(i.locale.addMin&&-1===t[0].indexOf(".min")?".min":"")+".js?locale="+i.locale.currentLocale+"&locale_revision="+i.locale.revision],function(e,o){l(e,o)})):o([e],function(e){l(e)})}})}(),define("app/test_modules/module-es",[],function(){return window.LEXICON={module:"module-es"},"module-es"}),define("app/views/requireLocaleController",["angular"],function(o){var l;try{l=o.module("App")}catch(e){l=o.module("App",[])}return l.controller("requireLocaleController",["$scope","$rootScope",function(o,e){requirejs.s.contexts._.config.locale={currentLocale:"es"},require(["app/test_modules/module"],function(e){o.module=e,o.$digest()}),require(["locale!app/test_modules/module"],function(e){o.module_again=e,o.module_spanish_is_defined=require.defined("app/test_modules/module-es"),o.module_spanish_sideeffect="module-es"===window.LEXICON.module,o.$digest(),require(["app/test_modules/module-es"],function(e){o.module_spainish=e,o.$digest()})})}])}),define("app/localePluginTest",["angular","jquery","lodash","cjt/core","ngRoute","ngSanitize","uiBootstrap","cjt/templates"],function(l,e,o,i){return l.module("App",["ngRoute","ui.bootstrap","ngSanitize","cjt2.templates"]),require(["app/views/commonController","app/views/requireLocaleController","cjt/services/whm/breadcrumbService","cjt/services/autoTopService"],function(){var o;try{o=l.module("App")}catch(e){o=l.module("App",["ui.bootstrap","ngSanitize"])}o.firstLoad={},o.config(["$routeProvider","$locationProvider",function(e,o){o.html5Mode(!0),e.when("/locale",{controller:"requireLocaleController",templateUrl:i.buildFullPath("tests/views/requireLocale.phtml"),breadcrumb:"Require: Locale Plugin Tests",reloadOnSearch:!1}),e.otherwise({redirectTo:function(e,o,l){return"/locale?"+window.location.search}})}]),o.run(["autoTopService","breadcrumbService",function(e,o){e.initialize(),o.initialize()}]),o.init=function(){return l.bootstrap(document,["App"]),o},o.init()})});
Back to Directory File Manager