require(["jquery","underscore","splunkjs/mvc","splunkjs/mvc/tableview","splunkjs/mvc/simplexml/ready!","backbone","splunkjs/mvc/searchmanager","splunkjs/mvc/postprocessmanager"],function(__WEBPACK_EXTERNAL_MODULE_1__,__WEBPACK_EXTERNAL_MODULE_2__,__WEBPACK_EXTERNAL_MODULE_3__,__WEBPACK_EXTERNAL_MODULE_4__,__WEBPACK_EXTERNAL_MODULE_5__,__WEBPACK_EXTERNAL_MODULE_10__,__WEBPACK_EXTERNAL_MODULE_12__,__WEBPACK_EXTERNAL_MODULE_32__){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)}({0:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(2),__webpack_require__(1),__webpack_require__(10),__webpack_require__(32),__webpack_require__(12),__webpack_require__(4),__webpack_require__(3),__webpack_require__(5)],__WEBPACK_AMD_DEFINE_RESULT__=function(_,$,Backbone,PostProcessManager,SearchManager,TableView,mvc){var HTML_CELL_KPI_PERCENT_FILL_GOOD=_.template('<div class=kpi-cell"><span class="icon icon-check"></span> <%= value %></div>'),HTML_CELL_KPI_PERCENT_FILL_OK=_.template('<div class=kpi-cell"><span class="icon icon-minus"></span> <%= value %></div>'),HTML_CELL_KPI_PERCENT_FILL_BAD=_.template('<div class=kpi-cell"><span class="icon icon-x"></span> <%= value %></div>'),parseFillPercAsFloat=function(string){return parseFloat(string.match(/(pset\d+:\s)?(\d+\.\d+)/)[2])},CustomCellRendererKpiFillPerc=TableView.BaseCellRenderer.extend({canRender:function(cellData){return"Queue Fill Ratio (Last 1 Minute)"==cellData.field||"Queue Fill Ratio (Last 10 Minutes)"==cellData.field},render:function($td,cellData){var parsedValues=[],html="";$td.addClass("numeric"),_.isArray(cellData.value)?_.each(cellData.value,function(cellValue){parsedValues.push({displayValue:cellValue,fillPerc:parseFillPercAsFloat(cellValue)})}):parsedValues.push({displayValue:cellData.value,fillPerc:parseFillPercAsFloat(cellData.value)}),_.each(parsedValues,function(value){value.fillPerc<60?html+=HTML_CELL_KPI_PERCENT_FILL_GOOD({value:value.displayValue}):value.fillPerc>=60&&value.fillPerc<80?html+=HTML_CELL_KPI_PERCENT_FILL_OK({value:value.displayValue}):value.fillPerc>80&&(html+=HTML_CELL_KPI_PERCENT_FILL_BAD({value:value.displayValue}))}),$td.html(html)}});mvc.Components.get("snapshotTcpInFillRatioTable").getVisualization(function(tableView){tableView.table.addCellRenderer(new CustomCellRendererKpiFillPerc),tableView.table.render()})}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))},1:function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_1__},2:function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_2__},3:function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_3__},4:function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_4__},5:function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_5__},10:function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_10__},12:function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_12__},32:function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_32__}})});