// [AIV_SHORT]  Build version: 5.6.10rc3 - Tuesday, April 21st, 2026, 6:07:55 PM  
 (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[53],{7503:function(a,t,e){"use strict";e.r(t);var s=function(){var a=this,t=a._self._c;return t("q-page",{attrs:{padding:""}},[t("q-breadcrumbs",[t("q-breadcrumbs-el",{attrs:{label:a.$tc("common.hazardanalysis"),icon:"fa fa-exclamation-circle"}}),t("q-breadcrumbs-el",{attrs:{label:a.$tc("common.dashboard"),icon:"fas fa-chart-bar"}})],1),t("div",{staticClass:"row"},[t("div",{staticClass:"col"},[a.loaded?t("bubble-chart",{attrs:{"chart-data":a.chartData,options:a.chartOptions}}):a._e()],1)])],1)},i=[],r=(e("7db0"),e("c740"),e("14d9"),e("d3b7"),e("2ca0"),e("498a"),e("159b"),e("61c0")),n=e("1fca"),l=n["b"].reactiveProp,o={extends:n["a"],mixins:[l],props:["options"],data:function(){return{}},mounted:function(){this.renderChart(this.chartData,this.options)}},c={components:{BubbleChart:o},extends:r["a"],data:function(){return{chartData:{datasets:[]},chartOptions:{responsive:!0,scales:{xAxes:[{type:"linear",position:"bottom",ticks:{max:15,min:0,stepSize:1},scaleLabel:{labelString:"C",display:!0}}],yAxes:[{beginAtZero:!0,ticks:{max:5,min:0,stepSize:1},type:"linear",scaleLabel:{labelString:"P",display:!0}}]},title:{display:null!==this.title,fontSize:16,text:this.title}},loaded:!1,riskLevel:[],riskLevelLabel:[]}},methods:{load:function(){var a=this;this.loaded=!1,this.$reposyd.get("/api/hazardassessment/:solution/hazardlog").then((function(t){t.forEach((function(t){var e=t.assessment.frequency+t.assessment.probability+t.assessment.avoidance,s=a.riskLevel.findIndex((function(a){return a.severity===t.assessment.severity&&e>=a.criticality.min&&e<=a.criticality.max}));if(s>-1){var i=a.riskLevelLabel.indexOf(a.$profile().translate(a.riskLevel[s].label));a.chartData.datasets[i].data.push({x:s-3,y:t.assessment.severity,r:10})}})),a.loaded=!0})).catch((function(t){a.notifyError(t)}))}},mounted:function(){var a=this;this.$reposyd.get("/api/solution/:solution/hazardanalysis/settings?key=*").then((function(t){a.chartData.datasets=[],a.riskLevel=t.risklevel,t.risklevel.forEach((function(t){if(-1===a.riskLevelLabel.indexOf(a.$profile().translate(t.label))){a.riskLevelLabel.push(a.$profile().translate(t.label));var e=t.style.split(";").find((function(a){return a.startsWith("background-color")}));e&&(e=e.substr(e.indexOf(":")+1).trim()),a.chartData.datasets.push({backgroundColor:e,label:a.$profile().translate(t.label),pointRadius:15,data:[]})}})),a.load()})).catch((function(t){a.notifyError(t)}))},name:"DashboardHazardAnalysis"},d=c,u=e("2877"),b=e("9989"),h=e("ead5"),p=e("079e"),f=e("eebe"),m=e.n(f),v=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=v.exports;m()(v,"components",{QPage:b["a"],QBreadcrumbs:h["a"],QBreadcrumbsEl:p["a"]})}}]); 