require(["jquery","underscore","splunkjs/mvc/simplexml/ready!","splunkjs/mvc/searchmanager"],function(__WEBPACK_EXTERNAL_MODULE_1__,__WEBPACK_EXTERNAL_MODULE_2__,__WEBPACK_EXTERNAL_MODULE_5__,__WEBPACK_EXTERNAL_MODULE_12__){return function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.p="",__webpack_require__(0)}([function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(1),__webpack_require__(2),__webpack_require__(12),__webpack_require__(5)],__WEBPACK_AMD_DEFINE_RESULT__=function($,_,SearchManager){$(".fieldset").hide(),$(".dashboard-row").hide();var NO_TOKENS_MSG=_("You currently have no tokens configured.").t(),ERROR_MSG=_("We were unable to retrieve any tokens. Please make sure your HTTP Event Collector is enabled and you have tokens configured").t(),tokenSearchQuery="| rest /services/data/inputs/http | eval token_name=substr('title', 8)",tokenSearchManager=new SearchManager({search:tokenSearchQuery,autostart:!0,auto_cancel:90,cache:!1,preview:!0});tokenSearchManager.on("search:done",function(properties){var count=properties.content.resultCount;0===count?$("#no_token_message_view").html("<p>"+NO_TOKENS_MSG+"</p>").show():($(".dashboard-row").show(),$(".fieldset").show(),$("#no_token_message_view").hide())}).on("search:failed search:error search:cancelled",function(){$("#no_token_message_view").html("<p>"+ERROR_MSG+"</p>").show()})}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))},function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_1__},function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_2__},,,function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_5__},,,,,,,function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_12__}])});