forked from bytedance/Elkeid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path30c75c.34.min.js
1 lines (1 loc) · 9.27 KB
/
30c75c.34.min.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[34,64,65,90,91,92],{122:function(e,n,l){"use strict";l.r(n);var t=l(4),i=l.n(t),o=l(0),r=l.n(o),a=l(86),c=l.n(a),u=l(511),d=l.n(u),m="/data00/webprojectdev/hids_open/src/pages/alarm-list/alarm-overview/alarm-vuln-count-box/index.tsx";function s(e,n){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),l.push.apply(l,t)}return l}function b(e){for(var n=1;n<arguments.length;n++){var l=null!=arguments[n]?arguments[n]:{};n%2?s(Object(l),!0).forEach((function(n){i()(e,n,l[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):s(Object(l)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(l,n))}))}return e}var v=c.a.bind(d.a);n.default=function(e){var n=e.title,l=e.count,t=e.containerStyle,i=e.util;return r.a.createElement("div",{className:v("container"),style:b({},t),__source:{fileName:m,lineNumber:17,columnNumber:5}},r.a.createElement("div",{className:v("title"),__source:{fileName:m,lineNumber:18,columnNumber:7}},n),r.a.createElement("div",{__source:{fileName:m,lineNumber:19,columnNumber:7}},r.a.createElement("span",{className:v("count"),__source:{fileName:m,lineNumber:20,columnNumber:9}},l>999?"999+":l),i))}},123:function(e,n,l){"use strict";l.r(n);var t=l(20),i=l.n(t),o=l(0),r=l.n(o),a=l(86),c=l.n(a),u=l(571),d=l(512),m=l.n(d),s="/data00/webprojectdev/hids_open/src/pages/alarm-list/alarm-overview/alarm-vuln-piechart/index.tsx",b=c.a.bind(m.a),v=function(e){var n=e.label,l=e.color,t=e.count;return r.a.createElement("div",{className:b("legend-box"),__source:{fileName:s,lineNumber:19,columnNumber:5}},r.a.createElement("div",{className:b("circle"),style:{background:l},__source:{fileName:s,lineNumber:20,columnNumber:7}}),r.a.createElement("div",{className:b("label"),__source:{fileName:s,lineNumber:21,columnNumber:7}},n),r.a.createElement("div",{className:b("count"),__source:{fileName:s,lineNumber:22,columnNumber:7}},t))};n.default=function(e){var n=e.value,l=Object(o.useState)({}),t=i()(l,2),a=t[0],c=t[1],d=null==n?void 0:n.map((function(e){return null==e?void 0:e.color})),m=Object(o.useMemo)((function(){var e=0;return null==n||n.forEach((function(n){var l;e+=null!==(l=null==n?void 0:n.count)&&void 0!==l?l:0})),e}),[n]);return Object(o.useEffect)((function(){c({tooltip:{trigger:"item",textStyle:{color:"#fff"},appendToBody:!0,backgroundColor:"#1d2129",formatter:function(){var e,l,t,i,o,r,a,c,u,d,s,b;return"<div>\n <div style='display: flex;align-items: center'>\n <div style='display: inline-block;width: 10px;height: 10px; border-radius: 50%;background: ".concat(null==n||null===(e=n[0])||void 0===e?void 0:e.color,";margin-right: 5px;'></div>\n <div style='display: inline-block;width: 60px;'>").concat(null==n||null===(l=n[0])||void 0===l?void 0:l.label,"</div>\n <div>").concat(((null==n||null===(t=n[0])||void 0===t?void 0:t.count)/(m||1)*100).toFixed(2),"%</div>\n </div>\n <div style='display: flex;align-items: center'>\n <div style='display: inline-block;width: 10px;height: 10px; border-radius: 50%;background: ").concat(null==n||null===(i=n[1])||void 0===i?void 0:i.color,";margin-right: 5px;'></div>\n <div style='display: inline-block;width: 60px;'>").concat(null==n||null===(o=n[1])||void 0===o?void 0:o.label,"</div>\n <div>").concat(((null==n||null===(r=n[1])||void 0===r?void 0:r.count)/(m||1)*100).toFixed(2),"%</div>\n </div>\n <div style='display: flex;align-items: center'>\n <div style='display: inline-block;width: 10px;height: 10px; border-radius: 50%;background: ").concat(null==n||null===(a=n[2])||void 0===a?void 0:a.color,";margin-right: 5px;'></div>\n <div style='display: inline-block;width: 60px;'>").concat(null==n||null===(c=n[2])||void 0===c?void 0:c.label,"</div>\n <div>").concat(((null==n||null===(u=n[2])||void 0===u?void 0:u.count)/(m||1)*100).toFixed(2),"%</div>\n </div>\n <div style='display: flex;align-items: center'>\n <div style='display: inline-block;width: 10px;height: 10px; border-radius: 50%;background: ").concat(null==n||null===(d=n[3])||void 0===d?void 0:d.color,";margin-right: 5px;'></div>\n <div style='display: inline-block;width: 60px;'>").concat(null==n||null===(s=n[3])||void 0===s?void 0:s.label,"</div>\n <div>").concat(((null==n||null===(b=n[3])||void 0===b?void 0:b.count)/(m||1)*100).toFixed(2),"%</div>\n </div>\n </div>")}},color:m?d:new Array(4).fill("#F2F3F8"),series:[{type:"pie",radius:[20,24],label:{show:!1},emphasis:{scale:!1},labelLine:{show:!1},data:null==n?void 0:n.map((function(e){return{value:e.count,name:e.label,itemStyle:{borderColor:"#fff",borderWidth:1}}}))}]})}),[n]),r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,{option:a,style:{height:48,width:48},__source:{fileName:s,lineNumber:109,columnNumber:7}}),r.a.createElement("div",{className:b("legend-out-box"),__source:{fileName:s,lineNumber:110,columnNumber:7}},null==n?void 0:n.map((function(e){return r.a.createElement(v,{label:e.label,color:e.color,count:e.count,key:e.label,__source:{fileName:s,lineNumber:112,columnNumber:11}})}))))}},131:function(e,n,l){"use strict";l.r(n);var t=l(0),i=l.n(t),o=l(86),r=l.n(o),a=l(123),c=l(551),u=l(122),d=l(519),m=l.n(d),s="/data00/webprojectdev/hids_open/src/pages/alarm-list/alarm-overview/index.tsx",b=r.a.bind(m.a);n.default=function(e){var n,l,t,o,r,d,m,v=e.alarmStatistics;return i.a.createElement(c.a,{title:"告警概览",containerStyle:{minWidth:1200,height:148,marginBottom:12,minHeight:"unset"},contentStyle:{marginTop:16,display:"flex"},__source:{fileName:s,lineNumber:20,columnNumber:5}},i.a.createElement("div",{className:b("content-box"),__source:{fileName:s,lineNumber:33,columnNumber:7}},i.a.createElement(u.default,{title:"待处理告警",count:null!==(n=null==v?void 0:v.alarm_total)&&void 0!==n?n:0,containerStyle:{marginRight:40},__source:{fileName:s,lineNumber:34,columnNumber:9}}),i.a.createElement("div",{className:b("chart-box"),__source:{fileName:s,lineNumber:39,columnNumber:9}},i.a.createElement(a.default,{value:[{count:null!==(l=null==v?void 0:v.alarm_critical_num)&&void 0!==l?l:0,color:"#E63F3F",label:"紧急"},{count:null!==(t=null==v?void 0:v.alarm_high_num)&&void 0!==t?t:0,color:"#846BCE",label:"高风险"},{count:null!==(o=null==v?void 0:v.alarm_medium_num)&&void 0!==o?o:0,color:"#FEC745",label:"中风险"},{count:null!==(r=null==v?void 0:v.alarm_low_num)&&void 0!==r?r:0,color:"#468DFF",label:"低风险"}],__source:{fileName:s,lineNumber:40,columnNumber:11}}))),i.a.createElement("div",{className:b("content-box"),style:{flexBasis:320},__source:{fileName:s,lineNumber:50,columnNumber:7}},i.a.createElement(u.default,{title:"累计处理的告警",count:null!==(d=null==v?void 0:v.alarm_processed_num)&&void 0!==d?d:0,__source:{fileName:s,lineNumber:51,columnNumber:9}})),i.a.createElement("div",{className:b("content-box"),style:{flexBasis:320},__source:{fileName:s,lineNumber:53,columnNumber:7}},i.a.createElement(u.default,{title:"加白规则数",count:null!==(m=null==v?void 0:v.alarm_white_num)&&void 0!==m?m:0,__source:{fileName:s,lineNumber:54,columnNumber:9}})))}},511:function(e,n,l){e.exports={container:"container-0f45fb8e25",title:"title-ba84c9ae58",count:"count-1beebd5912"}},512:function(e,n,l){e.exports={"legend-out-box":"legend-out-box-6b72ecd301","legend-box":"legend-box-ce36834774",circle:"circle-c072094966",label:"label-c672ee3790",count:"count-5efbcf40d9"}},519:function(e,n,l){e.exports={"content-box":"content-box-a89b5670de","chart-box":"chart-box-ae3a9c05ac"}},551:function(e,n,l){"use strict";var t=l(4),i=l.n(t),o=l(0),r=l.n(o),a=l(86),c=l.n(a),u=l(564),d=l.n(u),m="/data00/webprojectdev/hids_open/src/components/common/content-box/index.tsx";function s(e,n){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),l.push.apply(l,t)}return l}function b(e){for(var n=1;n<arguments.length;n++){var l=null!=arguments[n]?arguments[n]:{};n%2?s(Object(l),!0).forEach((function(n){i()(e,n,l[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):s(Object(l)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(l,n))}))}return e}var v=c.a.bind(d.a);n.a=function(e){var n=e.util,l=e.title,t=e.containerStyle,i=e.contentStyle,o=e.topBoxStyle,a=e.children,c=e.isCard;return r.a.createElement("div",{className:v("container",c&&"card"),style:b({},t),__source:{fileName:m,lineNumber:27,columnNumber:5}},l?r.a.createElement("div",{className:v("top-box"),style:b({},o),__source:{fileName:m,lineNumber:29,columnNumber:9}},r.a.createElement("div",{className:v("title"),__source:{fileName:m,lineNumber:30,columnNumber:11}},l),r.a.createElement("div",{__source:{fileName:m,lineNumber:31,columnNumber:11}},n)):null,r.a.createElement("div",{className:v("content-box"),style:b({},i),__source:{fileName:m,lineNumber:34,columnNumber:7}},a))}},564:function(e,n,l){e.exports={container:"container-ff5344dbc2","top-box":"top-box-0ebc1e6648",title:"title-1f92f6896d","content-box":"content-box-518d5e101b",card:"card-3d582462db"}}}]);