2 lines
109 KiB
JavaScript
2 lines
109 KiB
JavaScript
|
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}(function(){'use strict';var loaderScript=document.getElementById("amd-loader"),configUrl=loaderScript.getAttribute("data-config"),bundle=loaderScript.getAttribute("data-bundle"),loadController=function(){var controllerOptions={},controllerPath=loaderScript.getAttribute("data-controller"),params=loaderScript.getAttribute("data-params");try{controllerOptions=JSON.parse(params)}catch(err){controllerOptions={}}window.require([controllerPath],function(controller){var startController=function(){window.started||(window.started=!0,controller.start(controllerOptions))};document.addEventListener("readystatechange",startController,!1),"complete"===document.readyState&&startController()})};window.require([configUrl],function(){window.loadBundles||(window.loaded={},window.loadBundles=function(bundles){bundles=bundles||[],bundles=bundles.concat(window.bundles),bundles=bundles.filter(function(item,index){return item&&bundles.indexOf(item)===index&&!0!==window.loaded[item]}),require(bundles,function(){bundles.forEach(function(item){window.loaded[item]=!0}),loadController()})}),bundle||window.bundles&&window.bundles.length?window.loadBundles([bundle]):loadController()})})(),define("loader/bootstrap",function(){}),define("taoClientDiagnostic/tools/message",["jquery","ui/feedback"],function($,feedback){'use strict';return function(container){var $feedbackBox=$(container);$feedbackBox.data("error")&&feedback().error($feedbackBox.data("error")),$feedbackBox.data("message")&&feedback().error($feedbackBox.data("message"))}}),define("taoClientDiagnostic/controller/Authenticator/login",["taoClientDiagnostic/tools/message"],function(showMessage){'use strict';return{start:function start(){showMessage("#feedback-box")}}}),define("tpl!taoClientDiagnostic/component/diagnostic/tpl/component",["handlebars"],function(hb){return hb.template(function(Handlebars,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),data=data||{};var helper,options,buffer="",helperMissing=helpers.helperMissing,escapeExpression=this.escapeExpression;return buffer+="<div class=\"diagnostics-content-area\">\n <h1>"+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"Diagnostic Tool",options):helperMissing.call(depth0,"__","Diagnostic Tool",options)))+"</h1>\n</div>",buffer})}),define("taoClientDiagnostic/component/diagnostic/diagnosticLoader",["lodash","ui/component","core/moduleLoader","context","module","tpl!taoClientDiagnostic/component/diagnostic/tpl/component","layout/loading-bar"],function(_,componentFactory,moduleLoader,context,module,componentTpl,loadingBar){'use strict';return function(container,config){var component=componentFactory().setTemplate(componentTpl).on("init",function(){this.render(container)}).on("render",function(){var _this=this,moduleConfig=module.config(),identifiers=Object.keys(moduleConfig.diagnostics);moduleLoader({},_.isFunction).addList(moduleConfig.diagnostics).load(context.bundle).then(function(factories){var componentConfig=_this.getConfig();factories.forEach(function(factory,index){var factoryName=identifiers[index],factoryConfig=componentConfig[factoryName];factoryConfig.controller=componentConfig.controller,factory(_this.getElement(),factoryConfig).on("render",function(){factoryConfig.autoStart&&this.run()}).on("start",function(){return loadingBar.start()}).on("end",function(){return loadingBar.stop()})}),_this.trigger("ready")})});return _.defer(function(){return component.init(config)}),component}}),define("taoClientDiagnostic/controller/CompatibilityChecker/diagnostics",["jquery","taoClientDiagnostic/tools/message","taoClientDiagnostic/component/diagnostic/diagnosticLoader"],function($,showMessage,diagnosticFactory){'use strict';retur
|
||
|
//# sourceMappingURL=taoClientDiagnostic.min.js.map
|