(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-51aee1c7"],{"1f89":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"permission",rawName:"v-permission",value:"VIEW_PORTFOLIO",expression:"'VIEW_PORTFOLIO'"}],staticClass:"animated fadeIn"},[i("portfolio-widget-row"),i("bootstrap-table",{ref:"table",attrs:{columns:t.columns,data:t.data,options:t.options}})],1)},a=[],r=i("a026"),n=i("900c"),l=i.n(n),o=i("31c3"),u=i("7395"),c=i("6c36"),d=i.n(c),h={components:{PortfolioWidgetRow:o["a"]},data:function(){return{columns:[{title:this.$t("message.name"),field:"name",sortable:!0,formatter:function(t,e,i){var s=d.a.uriInUnQuotedAttr("../components/"+e.uuid);return'<a href="'.concat(s,'">').concat(d.a.inHTMLData(t),"</a>")}},{title:this.$t("message.version"),field:"version",sortable:!0,formatter:function(t,e,i){return d.a.inHTMLData(l.a.valueWithDefault(t,""))}},{title:this.$t("message.group"),field:"group",sortable:!0,formatter:function(t,e,i){return d.a.inHTMLData(l.a.valueWithDefault(t,""))}},{title:this.$t("message.license"),field:"license",sortable:!1,formatter:function(t,e,i){return d.a.inHTMLData(l.a.valueWithDefault(t,""))}},{title:this.$t("message.risk_score"),field:"lastInheritedRiskScore",sortable:!0,class:"tight"},{title:this.$t("message.vulnerabilities"),field:"metrics",sortable:!1,formatter:function(t,e,i){if("undefined"===typeof t)return"-";var s=r["default"].extend(u["a"]),a=new s({propsData:{vulnerabilities:t.vulnerabilities,critical:t.critical,high:t.high,medium:t.medium,low:t.low,unassigned:t.unassigned}});return a.$mount(),a.$el.outerHTML}}],data:[],options:{search:!0,showColumns:!0,showRefresh:!0,pagination:!0,silentSort:!1,sidePagination:"server",queryParamsType:"pageSize",pageList:"[10, 25, 50, 100]",pageSize:10,icons:{refresh:"fa-refresh"},responseHandler:function(t,e){return t.total=e.getResponseHeader("X-Total-Count"),t},url:"".concat(this.$api.BASE_URL,"/").concat(this.$api.URL_COMPONENT)}}}},m=h,f=i("2877"),g=Object(f["a"])(m,s,a,!1,null,null,null);e["default"]=g.exports},7395:function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return 0===t.vulnerabilities?i("span",{staticClass:"progress"},[i("div",{staticClass:"progress-bar",staticStyle:{width:"100%"}},[t._v("0")])]):i("span",{staticClass:"progress"},[t.critical>0?i("div",{staticClass:"progress-bar severity-critical-bg",style:t.criticalWidth},[t._v(t._s(t.critical))]):t._e(),t.high>0?i("div",{staticClass:"progress-bar severity-high-bg",style:t.highWidth},[t._v(t._s(t.high))]):t._e(),t.medium>0?i("div",{staticClass:"progress-bar severity-medium-bg",style:t.mediumWidth},[t._v(t._s(t.medium))]):t._e(),t.low>0?i("div",{staticClass:"progress-bar severity-low-bg",style:t.lowWidth},[t._v(t._s(t.low))]):t._e(),t.unassigned>0?i("div",{staticClass:"progress-bar severity-unassigned-bg",style:t.unassignedWidth},[t._v(t._s(t.unassigned))]):t._e()])},a=[],r=(i("c5f6"),{props:{vulnerabilities:Number,critical:Number,high:Number,medium:Number,low:Number,unassigned:Number},computed:{criticalWidth:function(){return"width:"+100*this.critical/this.vulnerabilities+"%"},highWidth:function(){return"width:"+100*this.high/this.vulnerabilities+"%"},mediumWidth:function(){return"width:"+100*this.medium/this.vulnerabilities+"%"},lowWidth:function(){return"width:"+100*this.low/this.vulnerabilities+"%"},unassignedWidth:function(){return"width:"+100*this.unassigned/this.vulnerabilities+"%"}}}),n=r,l=i("2877"),o=Object(l["a"])(n,s,a,!1,null,null,null);e["a"]=o.exports}}]);
//# sourceMappingURL=chunk-51aee1c7.2131f2bd.js.map