-
Notifications
You must be signed in to change notification settings - Fork 450
/
Copy path05feaf.33.min.js
1 lines (1 loc) · 33.9 KB
/
05feaf.33.min.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[33,91,257,268,277,313,502,508],{1324:function(e,t,n){e.exports={container:"container-2b7b4e490c",progress:"progress-e1b394e13e","info-container":"info-container-2f0c20706e",header:"header-01c84e7acb","title-container":"title-container-83d5876042",title:"title-6e9d474b4d","progress-span":"progress-span-be00bbd047","risk-span":"risk-span-49e3141047","close-icon":"close-icon-ec2b5dca3e","back-btn":"back-btn-f9c94a1e98","risk-container":"risk-container-1d1f495b69",left:"left-4a3599a148",right:"right-a868156870",line:"line-eb8feb628b","detecting-container":"detecting-container-cd2853f266",loading:"loading-0e02587717","fail-container":"fail-container-eee9a0313e",instance:"instance-462c53b0a0",name:"name-d0f45612a0",reason:"reason-152887fc00"}},1334:function(e,t,n){e.exports={"content-box":"content-box-df3b9f0915","chart-box":"chart-box-8e199ae99c","detect-container":"detect-container-9521c5f8df","item-title":"item-title-aca231a52f","no-detect":"no-detect-4466a4b404","state-container":"state-container-026b6b9d2c","detect-drawer":"detect-drawer-97511f662e"}},1619:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r,a,l=n(603),c=n.n(l),i=n(0),u=n.n(i),o=n(604),s=n(12),m="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/components/global/detecting-label/index.tsx",f=o.a.div(r||(r=c()(["\n @keyframes spin {\n 0% {\n transform: rotate(0deg) rotateX(180deg);\n }\n 50% {\n transform: rotate(180deg) rotateX(180deg);\n }\n 100% {\n transform: rotate(360deg) rotateX(180deg);\n }\n }\n\n display: inline-flex;\n align-items: center;\n justify-content: flex-end;\n animation: spin 1.5s linear infinite;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n margin-right: 8px;\n background: conic-gradient(\n from 114.04deg at 50% 50%,\n #165dff -3.75deg,\n rgba(22, 93, 255, 0) 331.83deg,\n #165dff 339.88deg,\n #165dff 356.25deg,\n rgba(22, 93, 255, 0) 691.83deg\n );\n &::before {\n content: ' ';\n height: 8px;\n width: 8px;\n border-radius: 50%;\n background: #fff;\n }\n &::after {\n content: ' ';\n height: 2px;\n width: 2px;\n border-radius: 50%;\n background: #165dff;\n }\n"]))),d=o.a.div(a||(a=c()(["\n display: inline-flex;\n align-items: center;\n font-size: 12px;\n line-height: 20px;\n"])));t.b=function(e){var t=e.progress,n=e.label,r=void 0===n?Object(s.g)("检查中"):n,a=e.className,l=!!t||0===t;return u.a.createElement(d,{className:a,__source:{fileName:m,lineNumber:68,columnNumber:5}},u.a.createElement(f,{className:"arco-icon-loading",__source:{fileName:m,lineNumber:69,columnNumber:7}}),u.a.createElement("span",{__source:{fileName:m,lineNumber:70,columnNumber:7}},r),l&&u.a.createElement("span",{__source:{fileName:m,lineNumber:71,columnNumber:23}}," ",t,"%"))}},1658:function(e,t,n){"use strict";var r=n(0),a=n.n(r),l=n(115),c=n.n(l),i=n(1668),u=n.n(i),o="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/components/global/space-info/index.tsx",s=c.a.bind(u.a);t.a=function(e){var t=e.data,n=e.className,r=e.leftClassName,l=e.rightClassName,c=e.lineClassName;return a.a.createElement("div",{className:s("container",n),__source:{fileName:o,lineNumber:24,columnNumber:5}},null==t?void 0:t.map((function(e){return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:s("left",r),__source:{fileName:o,lineNumber:27,columnNumber:11}},e.leftText),a.a.createElement("div",{className:s("line",c),__source:{fileName:o,lineNumber:28,columnNumber:11}}),a.a.createElement("div",{className:s("right",l),__source:{fileName:o,lineNumber:29,columnNumber:11}},e.rightText))})))}},1661:function(e,t,n){"use strict";var r,a,l,c=n(0),i=n.n(c);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.a=function(e){return i.a.createElement("svg",u({width:12,height:12,fill:"none"},e),r||(r=i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 0a6 6 0 110 12A6 6 0 016 0z",fill:"#00B42A"})),a||(a=i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.833 4.296l.287.241c.16.133.18.37.047.528L5.659 8.052a.375.375 0 01-.529.047l-.574-.482 2.749-3.275a.375.375 0 01.528-.046z",fill:"#fff"})),l||(l=i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.594 6.278l.252-.28a.375.375 0 01.523-.033l1.764 1.518-.48.578a.375.375 0 01-.534.044L3.628 6.812a.375.375 0 01-.034-.534z",fill:"#fff"})))}},1663:function(e,t,n){"use strict";n(200);var r=n(85),a=n(10),l=n.n(a),c=(n(224),n(97)),i=n(0),u=n.n(i),o=n(12),s="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/components/global/loading/index.tsx";function m(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.error;return Object(i.useEffect)((function(){t&&(console.warn(t),c.a.error({content:Object(o.g)("加载失败,请刷新页面重试!")}))})),t?null:u.a.createElement("div",{style:f({height:"100%",background:"#fff"},e.style),__source:{fileName:s,lineNumber:21,columnNumber:5}},u.a.createElement("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},__source:{fileName:s,lineNumber:22,columnNumber:7}},u.a.createElement(r.a,{size:20,__source:{fileName:s,lineNumber:30,columnNumber:9}})))}},1666:function(e,t,n){"use strict";var r,a=n(0),l=n.n(a);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.a=function(e){return l.a.createElement("svg",c({width:12,height:12,fill:"none"},e),r||(r=l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6A6 6 0 110 6a6 6 0 0112 0zM6.765 7.95a.333.333 0 00-.333-.333h-.867a.333.333 0 00-.333.333v.867c0 .184.149.333.333.333h.867c.184 0 .333-.15.333-.333V7.95zm0-4.896a.333.333 0 00-.333-.333h-.867a.333.333 0 00-.333.333v3.507c0 .184.149.334.333.334h.867c.184 0 .333-.15.333-.334V3.054z",fill:"#86909C"})))}},1668:function(e,t,n){e.exports={container:"container-ca0f97fd12",left:"left-79ab8630e8",right:"right-965046d44e",line:"line-6914aab8f5"}},1669:function(e,t,n){"use strict";n(162);var r=n(67),a=n(10),l=n.n(a),c=n(50),i=n.n(c),u=n(0),o=n.n(u),s=n(115),m=n.n(s);var f=n(1676),d=n.n(f),b="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/components/common/ellipsis-text/index.tsx";function p(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 N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=m.a.bind(d.a);t.a=function(e){var t=e.value,n=e.maxWidth,a=e.width,l=e.style,c=e.fontSize,s=e.fontFamily,m=e.fontWeight,f=Object(u.useState)(!0),d=i()(f,2),p=d[0],g=d[1],v=Object(u.useState)(!1),h=i()(v,2),E=h[0],O=h[1];return o.a.createElement(r.a,{content:t,disabled:p,popupVisible:E,style:{maxWidth:300},__source:{fileName:b,lineNumber:31,columnNumber:5}},o.a.createElement("div",{className:_("content"),onMouseEnter:function(){(function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"normal",a=document.createElement("span");a.style.fontSize=e,a.style.fontFamily=t,a.style.fontWeight=r,a.style.visibility="hidden",a.style.display="inline-block",a.style.height="0px",a.style.position="absolute",document.body.appendChild(a),a.textContent?a.textContent=n:a.innerText=n;var l=parseFloat(window.getComputedStyle(a).width);return document.body.removeChild(a),l})(null!=c?c:"12px",null!=s?s:"PingFang SC",t,m)>=n&&(g(!1),O(!0))},onMouseOut:function(){O(!1)},style:N({maxWidth:n,width:a,fontSize:c,fontFamily:s},l),__source:{fileName:b,lineNumber:37,columnNumber:7}},t))}},1671:function(e,t,n){"use strict";var r,a=n(0),l=n.n(a);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.a=function(e){return l.a.createElement("svg",c({width:16,height:16,fill:"none"},e),r||(r=l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 8A8 8 0 100 8a8 8 0 0016 0zm-4.961-2.455l-.566-.565a.457.457 0 00-.647 0L8.007 6.798 6.19 4.98a.457.457 0 00-.647 0l-.565.566a.457.457 0 000 .646L6.795 8.01 4.978 9.828a.457.457 0 000 .647l.565.566a.457.457 0 00.647 0l1.817-1.82 1.82 1.82a.457.457 0 00.646 0l.566-.566a.457.457 0 000-.646L9.219 8.01l1.82-1.818a.457.457 0 000-.647z",fill:"#86909C"})))}},1672:function(e,t,n){"use strict";var r,a=n(0),l=n.n(a);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.a=function(e){return l.a.createElement("svg",c({width:16,height:16,fill:"none"},e),r||(r=l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 8A8 8 0 110 8a8 8 0 0116 0zm-6.98 2.6a.444.444 0 00-.445-.444H7.42a.444.444 0 00-.445.444v1.156c0 .245.2.444.445.444h1.155a.444.444 0 00.445-.444V10.6zm0-6.527a.444.444 0 00-.445-.445H7.42a.444.444 0 00-.445.445v4.675c0 .246.2.445.445.445h1.155a.444.444 0 00.445-.445V4.073z",fill:"#1664FF"})))}},1673:function(e,t,n){"use strict";var r,a=n(0),l=n.n(a);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.a=function(e){return l.a.createElement("svg",c({width:16,height:16,fill:"none"},e),r||(r=l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 8A8 8 0 110 8a8 8 0 0116 0zm-6.98 2.6a.444.444 0 00-.445-.444H7.42a.444.444 0 00-.445.444v1.156c0 .245.2.444.445.444h1.155a.444.444 0 00.445-.444V10.6zm0-6.527a.444.444 0 00-.445-.445H7.42a.444.444 0 00-.445.445v4.675c0 .246.2.445.445.445h1.155a.444.444 0 00.445-.445V4.073z",fill:"#FA9600"})))}},1674:function(e,t,n){"use strict";var r,a=n(0),l=n.n(a);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.a=function(e){return l.a.createElement("svg",c({width:16,height:16,fill:"none"},e),r||(r=l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 8A8 8 0 110 8a8 8 0 0116 0zm-6.98 2.6a.444.444 0 00-.445-.444H7.42a.444.444 0 00-.445.444v1.156c0 .245.2.444.445.444h1.155a.444.444 0 00.445-.444V10.6zm0-6.527a.444.444 0 00-.445-.445H7.42a.444.444 0 00-.445.445v4.675c0 .246.2.445.445.445h1.155a.444.444 0 00.445-.445V4.073z",fill:"#E63F3F"})))}},1676:function(e,t,n){e.exports={content:"content-b091ebae55"}},1681:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1332),a=function(){return Object(r.a)()}},1685:function(e,t,n){"use strict";var r,a,l,c,i=n(0),u=n.n(i);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.a=function(e){return u.a.createElement("svg",o({width:76,height:76,fill:"none"},e),r||(r=u.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.247 76C59.097 76 76 59.097 76 38.247S59.097.494 38.247.494.494 17.397.494 38.247 17.397 76 38.247 76z",fill:"url(#defense-icon_svg__paint0_linear_3102_5011)",fillOpacity:.2})),a||(a=u.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.247 65.213c14.893 0 26.966-12.073 26.966-26.966S53.14 11.281 38.247 11.281 11.28 23.354 11.28 38.247s12.074 26.966 26.967 26.966z",fill:"url(#defense-icon_svg__paint1_linear_3102_5011)"})),l||(l=u.a.createElement("use",{href:"#defense-icon_svg__icon",x:26.222,y:25})),c||(c=u.a.createElement("defs",null,u.a.createElement("linearGradient",{id:"defense-icon_svg__paint0_linear_3102_5011",x1:.494,y1:39.506,x2:76,y2:39.506,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#1664FF"}),u.a.createElement("stop",{offset:1,stopColor:"#1664FF",stopOpacity:0})),u.a.createElement("linearGradient",{id:"defense-icon_svg__paint1_linear_3102_5011",x1:11.28,y1:39.146,x2:65.213,y2:39.146,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#1664FF"}),u.a.createElement("stop",{offset:1,stopColor:"#1664FF",stopOpacity:.4})),u.a.createElement("g",{id:"defense-icon_svg__icon"},u.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.22.73a1.12 1.12 0 00-.138-.11l-.639-.425a1.182 1.182 0 00-1.304.003l-.633.425c-.09.065-.54.339-1.04.609-.853.46-1.814.905-2.86 1.298-.98.367-2.029.613-3.072.76a14.947 14.947 0 01-1.343.126l-1.078.016C.496 3.442 0 3.92 0 4.504v9.918c0 5.167 6.98 11.319 11.796 11.319 4.815 0 11.79-6.144 11.799-11.31V14.314v-.315-1.124-3.411l-.001-1.466-.002-2.461V4.504c0-.586-.496-1.063-1.113-1.072l-1.057-.016c-.034 0-.182-.006-.356-.019-.301-.021-.64-.056-1.007-.107a14.639 14.639 0 01-3.075-.76 22.973 22.973 0 01-2.859-1.296 17.15 17.15 0 01-.977-.57c.082.053 0-.001.073.065z",fill:"#fff"}),u.a.createElement("path",{d:"M15.757 8.826a1 1 0 011.486 0l.155.172a1 1 0 010 1.338l-6.155 6.838a1 1 0 01-1.486 0L6.602 13.67a1 1 0 010-1.338l.155-.172a1 1 0 011.486 0l1.514 1.682a1 1 0 001.486 0l4.514-5.015z",fill:"#6AA6FF"})))))}},1686:function(e,t,n){"use strict";var r,a,l,c,i,u,o=n(0),s=n.n(o);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.a=function(e){return s.a.createElement("svg",m({width:76,height:76,fill:"none"},e),r||(r=s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.247 76C59.097 76 76 59.097 76 38.247S59.097.494 38.247.494.494 17.397.494 38.247 17.397 76 38.247 76z",fill:"url(#defense-loading-icon_svg__paint0_linear_3102_5011)",fillOpacity:.2})),a||(a=s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.247 65.213c14.893 0 26.966-12.073 26.966-26.966S53.14 11.281 38.247 11.281 11.28 23.354 11.28 38.247s12.074 26.966 26.967 26.966z",fill:"url(#defense-loading-icon_svg__paint1_linear_3102_5011)"})),l||(l=s.a.createElement("circle",{transform:"rotate(-90 38 38)",cx:38,cy:38,strokeDasharray:"0 120",r:19,strokeWidth:38,stroke:"rgba(255,255,255,0.3)"},s.a.createElement("animate",{attributeName:"stroke-dasharray",values:"0;120;0;0",begin:"0s",dur:"4s",repeatCount:"indefinite",keyTimes:"0;0.5;0.5;1"}))),c||(c=s.a.createElement("circle",{transform:"matrix(0 -1 -1 0 76 76)",cx:38,cy:38,strokeDasharray:"0 120",r:19,strokeWidth:38,stroke:"rgba(255,255,255,0.3)"},s.a.createElement("animate",{attributeName:"stroke-dasharray",values:"0;0;120;0",begin:"0s",dur:"4s",repeatCount:"indefinite",keyTimes:"0;0.5;0.5;1"}))),i||(i=s.a.createElement("use",{href:"#defense-loading-icon_svg__icon",x:26.222,y:25})),u||(u=s.a.createElement("defs",null,s.a.createElement("linearGradient",{id:"defense-loading-icon_svg__paint0_linear_3102_5011",x1:.494,y1:39.506,x2:76,y2:39.506,gradientUnits:"userSpaceOnUse"},s.a.createElement("stop",{stopColor:"#1664FF"}),s.a.createElement("stop",{offset:1,stopColor:"#1664FF",stopOpacity:0})),s.a.createElement("linearGradient",{id:"defense-loading-icon_svg__paint1_linear_3102_5011",x1:11.28,y1:39.146,x2:65.213,y2:39.146,gradientUnits:"userSpaceOnUse"},s.a.createElement("stop",{stopColor:"#1664FF"}),s.a.createElement("stop",{offset:1,stopColor:"#1664FF",stopOpacity:.4})),s.a.createElement("g",{id:"defense-loading-icon_svg__icon"},s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.22.73a1.12 1.12 0 00-.138-.11l-.639-.425a1.182 1.182 0 00-1.304.003l-.633.425c-.09.065-.54.339-1.04.609-.853.46-1.814.905-2.86 1.298-.98.367-2.029.613-3.072.76a14.947 14.947 0 01-1.343.126l-1.078.016C.496 3.442 0 3.92 0 4.504v9.918c0 5.167 6.98 11.319 11.796 11.319 4.815 0 11.79-6.144 11.799-11.31V14.314v-.315-1.124-3.411l-.001-1.466-.002-2.461V4.504c0-.586-.496-1.063-1.113-1.072l-1.057-.016c-.034 0-.182-.006-.356-.019-.301-.021-.64-.056-1.007-.107a14.639 14.639 0 01-3.075-.76 22.973 22.973 0 01-2.859-1.296 17.15 17.15 0 01-.977-.57c.082.053 0-.001.073.065z",fill:"#fff"}),s.a.createElement("path",{d:"M15.757 8.826a1 1 0 011.486 0l.155.172a1 1 0 010 1.338l-6.155 6.838a1 1 0 01-1.486 0L6.602 13.67a1 1 0 010-1.338l.155-.172a1 1 0 011.486 0l1.514 1.682a1 1 0 001.486 0l4.514-5.015z",fill:"#6AA6FF"})))))}},344:function(e,t,n){"use strict";n.r(t);n(116);var r=n(42),a=(n(809),n(607)),l=n(28),c=n.n(l),i=n(16),u=n.n(i),o=n(0),s=n.n(o),m=n(1314),f=n(1292),d=n(115),b=n.n(d),p=n(1663),N=n(813),_=n(826),g=n(827),v=n(828),h=n(1646),E=n(12),O=n(1685),y=n(1686),j=n(1324),x=n.n(j),w="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/pages/vuln-list/detecting-overview/index.tsx",k=b.a.bind(x.a),S=s.a.forwardRef((function(e,t){var n=e.onClose,l=e.progress,i=void 0===l?0:l,d=e.handleDetectSuccess,b=Object(o.useRef)(!0),j=Object(N.useDetectingTransferFinish)().isTransferDetectStatus,x=Object(f.a)(c()(u.a.mark((function e(){var t,n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.DetectVulnProgressDetail)();case 2:if(t=e.sent,n=t.data.status,!j({detectStatus:n})){e.next=7;break}return e.next=7,d("detectOverview");case 7:return e.abrupt("return",t.data);case 8:case"end":return e.stop()}}),e)}))),{auto:!0,pollingInterval:N.POLLING_INTERVAL_TIME,onSuccess:function(e,t,n){b.current=!1;var r=e.status;Object(N.isDetectingStatus)(r)||n()}}),S=x.data,F=x.loading,C=x.refresh,P=x.run,R=(null!=S?S:{}).risk_num,z=null!=R?R:{},T=z.high_num,D=void 0===T?0:T,I=z.low_num,V=void 0===I?0:I,M=z.medium_num,L=D+V+(void 0===M?0:M),A=Object(N.isFinishDetectStatus)(null==S?void 0:S.status);return Object(o.useImperativeHandle)(t,(function(){return{refresh:C,reset:P}})),b.current&&F?s.a.createElement(p.a,{__source:{fileName:w,lineNumber:80,columnNumber:14}}):s.a.createElement("div",{className:k("container"),__source:{fileName:w,lineNumber:84,columnNumber:7}},s.a.createElement(a.a,{percent:i,color:"#4086FF",showText:!1,className:k("progress"),__source:{fileName:w,lineNumber:85,columnNumber:9}}),s.a.createElement("div",{className:k("info-container"),__source:{fileName:w,lineNumber:86,columnNumber:9}},s.a.createElement("div",{__source:{fileName:w,lineNumber:87,columnNumber:11}},s.a.createElement("div",{className:k("header"),__source:{fileName:w,lineNumber:88,columnNumber:13}},A?s.a.createElement(O.a,{__source:{fileName:w,lineNumber:89,columnNumber:33}}):s.a.createElement(y.a,{__source:{fileName:w,lineNumber:89,columnNumber:51}}),A?s.a.createElement("div",{className:k("title-container"),__source:{fileName:w,lineNumber:92,columnNumber:17}},s.a.createElement("div",{className:k("title"),__source:{fileName:w,lineNumber:93,columnNumber:19}},Object(E.g)("检查完成")),s.a.createElement("div",{__source:{fileName:w,lineNumber:94,columnNumber:19}},Object(E.g)("本次检查出"),s.a.createElement("span",{className:k("risk-span"),__source:{fileName:w,lineNumber:96,columnNumber:21}},L),Object(E.g)("个风险项"))):s.a.createElement("div",{className:k("title-container"),__source:{fileName:w,lineNumber:101,columnNumber:17}},s.a.createElement("div",{className:k("title"),__source:{fileName:w,lineNumber:102,columnNumber:19}},Object(E.g)("漏洞扫描中,请稍候")),s.a.createElement("div",{__source:{fileName:w,lineNumber:103,columnNumber:19}},s.a.createElement("span",{className:k("progress-span"),__source:{fileName:w,lineNumber:104,columnNumber:21}},Object(E.g)("进度:")),s.a.createElement("span",{__source:{fileName:w,lineNumber:105,columnNumber:21}},Object(E.g)("{progress}% (预计需要{placeholder2}分钟)",{progress:i,placeholder2:null==S?void 0:S.progress_detail.time_left})))),s.a.createElement("span",{className:k("close-icon","arco-icon-hover"),onClick:n,__source:{fileName:w,lineNumber:114,columnNumber:15}},s.a.createElement(m.a,{__source:{fileName:w,lineNumber:115,columnNumber:17}}))),A?s.a.createElement(s.a.Fragment,null,s.a.createElement(r.a,{type:"outline",className:k("back-btn"),onClick:n,__source:{fileName:w,lineNumber:121,columnNumber:17}},Object(E.g)("返回漏洞列表,查看及修复")),s.a.createElement(v.default,{data:S,__source:{fileName:w,lineNumber:124,columnNumber:17}})):s.a.createElement(_.default,{data:S,getData:function(){return P()},__source:{fileName:w,lineNumber:127,columnNumber:15}}),s.a.createElement(g.default,{data:S,__source:{fileName:w,lineNumber:129,columnNumber:13}}))))}));t.default=S},813:function(e,t,n){"use strict";n.r(t),n.d(t,"useDetectingTransferFinish",(function(){return l})),n.d(t,"isDetectingStatus",(function(){return c})),n.d(t,"isFinishDetectStatus",(function(){return i})),n.d(t,"isTransferDetectFinish",(function(){return u})),n.d(t,"POLLING_INTERVAL_TIME",(function(){return o}));var r=n(0),a=n(1646);function l(){var e=Object(r.useRef)();return{isTransferDetectStatus:function(t){var n,r=u(t.detectStatus,(null!==(n=e.current)&&void 0!==n?n:{}).detectStatus);return e.current=t,r},preData:e}}function c(e){return e===a.VulnCheckStatusEnum.Running}function i(e){return e===a.VulnCheckStatusEnum.Finished}function u(e,t){return e===a.VulnCheckStatusEnum.Finished&&t===a.VulnCheckStatusEnum.Running}var o=1e4},826:function(e,t,n){"use strict";n.r(t);var r=n(10),a=n.n(r),l=n(1329),c=n.n(l),i=n(51),u=n.n(i),o=n(50),s=n.n(o),m=n(0),f=n.n(m),d=n(799),b=n(1333),p=n(115),N=n.n(p),_=n(1619),g=n(1658),v=n(813),h=n(1681),E=n(12),O=n(1324),y=n.n(O),j="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/pages/vuln-list/detecting-overview/detecting-instance.tsx";function x(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=N.a.bind(y.a);t.default=function(e){var t=e.data,n=e.getData,r=null!=t?t:{},a=r.host_num,l=r.host_detail,i=null!=a?a:{},o=i.total,p=void 0===o?0:o,N=i.finished,O=void 0===N?0:N,y=(null!=l?l:{}).detecting_host,x=Object(m.useState)([]),S=s()(x,2),F=S[0],C=S[1],P=Object(m.useRef)([]);Object(m.useEffect)((function(){var e,t,n=F.length,r=n<10?30-n:20,a=P.current.slice(0,10).reduce((function(e,t){return e[t.name]=!0,e}),{}),l=(null!==(e=null==y||null===(t=y.filter((function(e){return!a[e]})))||void 0===t?void 0:t.slice(0,r))&&void 0!==e?e:[]).map((function(e){return{key:Object(h.a)(),name:e}}));C((function(e){var t=[].concat(u()(e.splice(0,10)),u()(l));return P.current=t,t}))}),[y]);Object(m.useEffect)((function(){var e=P.current.length||1,t=e<=10,r=parseInt("".concat(v.POLLING_INTERVAL_TIME/e)),a=setInterval((function(){C((function(e){e.length<1&&n();var t=c()(e),r=(t[0],t.slice(1));return P.current=r,r}))}),t?r:2e3);return function(){return clearInterval(a)}}),[y]);var R=Object(b.useTransition)(F.slice(0,10).map((function(e,t){var n=e.name;return{key:e.key,name:n,y:280-28*(10-t),height:28}})),{key:function(e){return e.key},from:{height:0,opacity:0},leave:{height:0,opacity:0},enter:function(e){return{y:e.y,height:e.height,opacity:1}},update:function(e){return{y:e.y,height:e.height}}}),z=[{leftText:f.a.createElement("div",{className:k("left"),__source:{fileName:j,lineNumber:123,columnNumber:9}},f.a.createElement(_.b,{label:"",className:k("loading"),__source:{fileName:j,lineNumber:124,columnNumber:11}}),f.a.createElement("span",{__source:{fileName:j,lineNumber:125,columnNumber:11}},Object(E.g)("主机扫描"))),rightText:f.a.createElement("div",{className:k("right"),__source:{fileName:j,lineNumber:129,columnNumber:9}},f.a.createElement("span",{__source:{fileName:j,lineNumber:130,columnNumber:11}},Object(E.g)("扫描中")),f.a.createElement("span",{__source:{fileName:j,lineNumber:131,columnNumber:11}},O,"/",p))}];return f.a.createElement("div",{className:k("detecting-container"),__source:{fileName:j,lineNumber:139,columnNumber:5}},f.a.createElement(g.a,{data:z,__source:{fileName:j,lineNumber:140,columnNumber:7}}),f.a.createElement("div",{style:{position:"relative",height:280,marginLeft:22,marginTop:12},__source:{fileName:j,lineNumber:141,columnNumber:7}},R((function(e,t,n,r){return f.a.createElement(b.animated.div,{style:w({paddingBottom:8,zIndex:10-r,position:"absolute",willChange:"transform, height, opacity"},e),key:t.key,__source:{fileName:j,lineNumber:150,columnNumber:11}},f.a.createElement(d.a,{__source:{fileName:j,lineNumber:160,columnNumber:13}},t.name))}))))}},827:function(e,t,n){"use strict";n.r(t);var r=n(1),a=n.n(r),l=n(86),c=(n(1311),n(1312)),i=n(0),u=n.n(i),o=n(115),s=n.n(o),m=n(1669),f=n(813),d=n(12),b=n(1324),p=n.n(b),N="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/pages/vuln-list/detecting-overview/fail-detect.tsx",_=s.a.bind(p.a),g=c.a.Item;t.default=function(e){var t,n=e.data,r=null!=n?n:{},i=r.host_detail,o=r.status,s=(null!=i?i:{}).failed_host,b=null!==(t=null==s?void 0:s.length)&&void 0!==t?t:0,p=b<1,v=Object(f.isFinishDetectStatus)(o);if(p)return null;var h={};return v&&(h.activeKey="1",h.expandIcon=null),u.a.createElement(c.a,a()({className:_("fail-container"),expandIconPosition:"right",bordered:!1,expandIcon:u.a.createElement(l.a,{__source:{fileName:N,lineNumber:44,columnNumber:19}})},h,{__source:{fileName:N,lineNumber:40,columnNumber:5}}),u.a.createElement(g,{header:"".concat(Object(d.g)("检查失败的主机({failureInstanceNum})",{failureInstanceNum:b})),name:"1",__source:{fileName:N,lineNumber:47,columnNumber:7}},null==s?void 0:s.map((function(e){return u.a.createElement("div",{className:_("instance"),key:e.host_name,__source:{fileName:N,lineNumber:54,columnNumber:11}},u.a.createElement("span",{className:_("name"),__source:{fileName:N,lineNumber:55,columnNumber:13}},u.a.createElement(m.a,{maxWidth:150,value:e.host_name,__source:{fileName:N,lineNumber:56,columnNumber:15}})),u.a.createElement("span",{className:_("reason"),__source:{fileName:N,lineNumber:58,columnNumber:13}},u.a.createElement(m.a,{maxWidth:150,value:e.failed_reason,__source:{fileName:N,lineNumber:59,columnNumber:15}})))}))))}},828:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),l=n(115),c=n.n(l),i=n(1658),u=n(12),o=n(1671),s=n(1672),m=n(1666),f=n(1673),d=n(1674),b=n(1661),p=n(1324),N=n.n(p),_="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/pages/vuln-list/detecting-overview/risk-num.tsx",g=c.a.bind(N.a);t.default=function(e){var t=e.data,n=(null!=t?t:{}).risk_num,r=null!=n?n:{},l=r.low_num,c=void 0===l?0:l,p=r.high_num,N=void 0===p?0:p,v=r.pass_num,h=void 0===v?0:v,E=r.medium_num,O=void 0===E?0:E,y=r.failed_num,j=void 0===y?0:y,x=r.danger_num,w=void 0===x?0:x,k=[{leftText:a.a.createElement("div",{className:g("left"),__source:{fileName:_,lineNumber:41,columnNumber:9}},a.a.createElement(b.a,{__source:{fileName:_,lineNumber:42,columnNumber:11}}),a.a.createElement("span",{__source:{fileName:_,lineNumber:43,columnNumber:11}},Object(u.g)("通过项"))),rightText:a.a.createElement("span",{className:g("right"),__source:{fileName:_,lineNumber:46,columnNumber:18}},h)},{leftText:a.a.createElement("div",{className:g("left"),__source:{fileName:_,lineNumber:50,columnNumber:9}},a.a.createElement(d.a,{__source:{fileName:_,lineNumber:51,columnNumber:11}}),a.a.createElement("span",{__source:{fileName:_,lineNumber:52,columnNumber:11}},Object(u.g)("严重风险项"))),rightText:a.a.createElement("span",{className:g("right"),__source:{fileName:_,lineNumber:55,columnNumber:18}},w)},{leftText:a.a.createElement("div",{className:g("left"),__source:{fileName:_,lineNumber:59,columnNumber:9}},a.a.createElement(f.a,{__source:{fileName:_,lineNumber:60,columnNumber:11}}),a.a.createElement("span",{__source:{fileName:_,lineNumber:61,columnNumber:11}},Object(u.g)("高危风险项"))),rightText:a.a.createElement("span",{className:g("right"),__source:{fileName:_,lineNumber:64,columnNumber:18}},N)},{leftText:a.a.createElement("div",{className:g("left"),__source:{fileName:_,lineNumber:68,columnNumber:9}},a.a.createElement(s.a,{__source:{fileName:_,lineNumber:69,columnNumber:11}}),a.a.createElement("span",{__source:{fileName:_,lineNumber:70,columnNumber:11}},Object(u.g)("中危风险项"))),rightText:a.a.createElement("span",{className:g("right"),__source:{fileName:_,lineNumber:73,columnNumber:18}},O)},{leftText:a.a.createElement("div",{className:g("left"),__source:{fileName:_,lineNumber:77,columnNumber:9}},a.a.createElement(m.a,{__source:{fileName:_,lineNumber:78,columnNumber:11}}),a.a.createElement("span",{__source:{fileName:_,lineNumber:79,columnNumber:11}},Object(u.g)("低危风险项"))),rightText:a.a.createElement("span",{className:g("right"),__source:{fileName:_,lineNumber:82,columnNumber:18}},c)}];return j>0&&k.push({leftText:a.a.createElement("div",{className:g("left"),__source:{fileName:_,lineNumber:88,columnNumber:9}},a.a.createElement(o.a,{__source:{fileName:_,lineNumber:89,columnNumber:11}}),a.a.createElement("span",{__source:{fileName:_,lineNumber:90,columnNumber:11}},Object(u.g)("检查失败项"))),rightText:a.a.createElement("span",{className:g("right"),__source:{fileName:_,lineNumber:93,columnNumber:18}},j)}),a.a.createElement(i.a,{data:k,className:g("risk-container"),__source:{fileName:_,lineNumber:97,columnNumber:10}})}},836:function(e,t,n){"use strict";n.r(t);n(1294);var r=n(1295),a=(n(162),n(67)),l=(n(116),n(42)),c=(n(224),n(97)),i=n(28),u=n.n(i),o=n(50),s=n.n(o),m=n(16),f=n.n(m),d=n(0),b=n.n(d),p=n(780),N=n(1292),_=n(115),g=n.n(_),v=n(52),h=n(196),E=n(1619),O=n(344),y=n(813),j=n(1646),x=n(1608),w=n(12),k=n(145),S=n(1334),F=n.n(S),C="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/pages/vuln-list/vuln-overview/detect-detail.tsx",P=g.a.bind(F.a);t.default=function(e){var t=e.onDetectSuccess,n=Object(v.f)(k.l),i=Object(d.useRef)(null),o=Object(d.useState)(!1),m=s()(o,2),_=m[0],g=m[1],S=Object(d.useRef)(!0),F=Object(y.useDetectingTransferFinish)().isTransferDetectStatus,R=Object(N.a)(u()(f.a.mark((function e(){var t,n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(j.GetVulnCheckStatus)();case 2:if(t=e.sent,n=t.data.status,!F({detectStatus:n})){e.next=7;break}return e.next=7,L("checkStatus");case 7:return e.abrupt("return",t.data);case 8:case"end":return e.stop()}}),e)}))),{auto:!0,pollingInterval:y.POLLING_INTERVAL_TIME,onSuccess:function(e,t,n){var r=e.status;Object(y.isDetectingStatus)(r)||n()}}),z=R.data,T=R.refresh,D=R.error,I=Object(N.a)(u()(f.a.mark((function e(){var t;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(j.PostDetectVuln)({data:{if_all_host:!0}});case 2:return t=e.sent,S.current=!0,c.a.info(Object(w.g)("已开始漏洞扫描")),e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e)}))),{onSuccess:function(){T(),g(!0)}}),V=I.loading,M=I.run;function L(e){return A.apply(this,arguments)}function A(){return(A=u()(f.a.mark((function e(n){var r,a;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(S.current){e.next=2;break}return e.abrupt("return");case 2:return S.current=!1,r=[],"checkStatus"!==n&&r.push(T()),"detectOverview"!==n&&r.push(null===(a=i.current)||void 0===a?void 0:a.refresh()),e.next=8,Promise.all(r);case 8:t(),c.a.success("".concat(Object(w.g)("漏洞扫描完成")));case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var G=(null==z?void 0:z.status)===j.VulnCheckStatusEnum.Running;return b.a.createElement(b.a.Fragment,null,b.a.createElement(p.a,{direction:"column",className:P("detect-container"),__source:{fileName:C,lineNumber:111,columnNumber:7}},b.a.createElement("div",{className:P("item-title"),__source:{fileName:C,lineNumber:112,columnNumber:9}},Object(w.g)("最近扫描时间(每日自动扫描)")),b.a.createElement(p.a,{align:"center",__source:{fileName:C,lineNumber:113,columnNumber:9}},G?b.a.createElement(E.b,{progress:null==z?void 0:z.progress,label:Object(w.g)("正在检查中"),className:P("state-container"),__source:{fileName:C,lineNumber:115,columnNumber:13}}):b.a.createElement("span",{className:P("state-container"),__source:{fileName:C,lineNumber:121,columnNumber:13}},b.a.createElement(h.c,{error:D,displayType:h.b.element,__source:{fileName:C,lineNumber:122,columnNumber:15}},Object(x.a)(null==z?void 0:z.last_check_time))),G?b.a.createElement(l.a,{type:"primary",onClick:function(){return g(!0)},__source:{fileName:C,lineNumber:132,columnNumber:13}},Object(w.g)("查看进度")):b.a.createElement(a.a,{disabled:n,content:Object(w.g)("当前用户无编辑权限"),__source:{fileName:C,lineNumber:136,columnNumber:13}},b.a.createElement(l.a,{disabled:!n,type:"primary",onClick:M,loading:V,__source:{fileName:C,lineNumber:137,columnNumber:15}},Object(w.g)("立即检查"))))),b.a.createElement(r.a,{visible:_,onCancel:function(){return g(!1)},width:400,closable:!1,unmountOnExit:!0,footer:null,title:null,maskStyle:{backgroundColor:"rgba(255, 255, 255, 0)"},className:P("detect-drawer"),__source:{fileName:C,lineNumber:149,columnNumber:7}},b.a.createElement(O.default,{ref:i,progress:null==z?void 0:z.progress,onClose:function(){return g(!1)},handleDetectSuccess:L,__source:{fileName:C,lineNumber:162,columnNumber:9}})))}}}]);