(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"/NH+":function(e,t,n){"use strict";n.r(t);n("E9XD"),n("sMBO"),n("QWBl"),n("FZtP"),n("eoL8"),n("tkto"),n("pNMO"),n("TeQF"),n("5DmW"),n("27RR"),n("HRxU");var r=n("Kw5r"),i=n("US6W"),o=n("L2JU"),s=n("GfZm"),a=n("Rle8"),c=n("dMvs");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={name:"Statistics",components:{Splitpanes:i.Splitpanes,Pane:i.Pane,ReportFilter:c.a},directives:{FillHeight:a.a},data:function(){var e=this,t=[{name:"Product Overview",icon:"mdi-briefcase-outline",to:{name:"product-overview"}},{name:"Checker Statistics",icon:"mdi-card-account-details",to:{name:"checker-statistics"}},{name:"Severity Statistics",icon:"mdi-speedometer",to:{name:"severity-statistics"}},{name:"Component Statistics",icon:"mdi-puzzle-outline",to:{name:"component-statistics"}}];return{namespace:"statistics",reportCount:0,tab:null,tabs:t,bus:new r.a,refreshTabs:t.reduce((function(t,n){return t[e.$router.resolve(n.to).route.name]=!1,t}),{})}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(o.e)({runIds:function(e,t){return t["".concat(this.namespace,"/getRunIds")]},reportFilter:function(e,t){return t["".concat(this.namespace,"/getReportFilter")]}})),watch:{tab:function(){if(this.tab){var e=this.$router.resolve(this.tab);this.refreshTabs[e.route.name]&&this.refreshCurrentTab()}}},methods:{refresh:function(){var e=this;s.b.getClient().getRunResultCount(this.runIds,this.reportFilter,null,Object(s.f)((function(t){e.reportCount=t.toNumber()}))),this.tabs.forEach((function(t){var n=e.$router.resolve(t.to);e.refreshTabs[n.route.name]=!0})),this.refreshCurrentTab()},refreshCurrentTab:function(){this.bus.$emit("refresh");var e=this.$router.resolve(this.tab);this.refreshTabs[e.route.name]=!1}}},f=(n("OeDa"),n("KHd+")),d=n("ZUTo"),h=n.n(d),b=n("Ey0z"),m=n("caNO"),v=n("/ldL"),w=Object(f.a)(p,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("splitpanes",{staticClass:"default-theme"},[n("pane",{style:{"min-width":"300px"},attrs:{size:"20"}},[n("report-filter",{directives:[{name:"fill-height",rawName:"v-fill-height"}],attrs:{namespace:e.namespace,"show-remove-filtered-reports":!1,"report-count":e.reportCount,"show-diff-type":!1},on:{refresh:e.refresh}})],1),e._v(" "),n("pane",[n("div",{directives:[{name:"fill-height",rawName:"v-fill-height"}]},[n("v-tabs",{model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.tabs,(function(t){return n("v-tab",{key:t.name,attrs:{to:Object.assign({},t.to,{query:Object.assign({},e.$router.currentRoute.query)}),exact:""}},[n("v-icon",{staticClass:"mr-2"},[e._v("\n            "+e._s(t.icon)+"\n          ")]),e._v("\n          "+e._s(t.name)+"\n        ")],1)})),1),e._v(" "),n("keep-alive",[n("router-view",{attrs:{bus:e.bus,namespace:e.namespace}})],1)],1)])],1)}),[],!1,null,"030dbc6e",null);t.default=w.exports;h()(w,{VIcon:b.a,VTab:m.a,VTabs:v.a})},OeDa:function(e,t,n){"use strict";var r=n("eerC");n.n(r).a},Rle8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("rNhl"),n("4l63");var r=n("LvDl"),i=n.n(r);var o={bind:function(e,t){var n=t.value||function(){},r=t.options||{passive:!0},o=function(){var t=function(e){e.style.overflow="auto";var t=window.innerHeight,n=e.getBoundingClientRect().top,r=0,i=document.querySelector("footer");if(i){var o=window.getComputedStyle(i);r=parseFloat(o.height)}for(var s=e,a=null,c=0;s.parentNode&&s.parentNode!==document;)s=s.parentNode,a=window.getComputedStyle(s),c+=parseInt(a.paddingBottom,10);return e.style.height=Math.floor(t-n-c-r-2)+"px",e.style.height}(e);n(e,t)};window.addEventListener("resize",i.a.debounce(o,200),r),e._onResize={fn:o,options:r}},inserted:function(e){e._onResize&&(0,e._onResize.fn)(e)},componentUpdated:function(e){e._onResize&&(0,e._onResize.fn)(e)},unbind:function(e){if(e._onResize){var t=e._onResize,n=t.fn,r=t.options;window.removeEventListener("resize",n,r),delete e._onResize}}}},T3Au:function(e,t,n){(t=n("JPst")(!1)).push([e.i,".splitpanes.default-theme .splitpanes__pane[data-v-030dbc6e]{background-color:inherit}",""]),e.exports=t},eerC:function(e,t,n){var r=n("T3Au");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n("SZ7m").default)("4eff0496",r,!0,{})}}]);