-
Notifications
You must be signed in to change notification settings - Fork 451
/
Copy path03f92b.155.min.js
1 lines (1 loc) · 5.05 KB
/
03f92b.155.min.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[155,314,315],{1608:function(e,n,t){"use strict";t.d(n,"a",(function(){return i}));var o=t(0),a=t.n(o),l=t(70),r=t.n(l),c="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/utils/get-display-time.tsx";function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss",t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){var o=r.a.unix(e).format(n);if(t){var l=null==o?void 0:o.split(" ");return a.a.createElement(a.a.Fragment,null,null==l?void 0:l.map((function(e){return a.a.createElement("div",{key:e,__source:{fileName:c,lineNumber:12,columnNumber:13}},e)})))}return o}return"-"}},1664:function(e,n,t){"use strict";var o,a=t(614),l=(t(162),t(67)),r=t(50),c=t.n(r),i=t(0),u=t.n(i),m=t(799),s=t(115),d=t.n(s);function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)}var f=function(e){return u.a.createElement("svg",b({width:10,height:10,fill:"none"},e),o||(o=u.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.976 4.366l2.8-2.799a.208.208 0 01.294 0l.294.295a.208.208 0 010 .294l-2.799 2.8 2.8 2.798a.208.208 0 010 .295l-.295.295a.208.208 0 01-.295 0l-2.799-2.8-2.799 2.8a.208.208 0 01-.294 0l-.295-.295a.208.208 0 010-.295l2.799-2.799-2.8-2.799a.208.208 0 010-.294l.296-.295a.208.208 0 01.294 0l2.8 2.8z",fill:"#4E5969"})))},N=t(1678),p=t.n(N),v="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/components/common/tag-component/index.tsx",g=d.a.bind(p.a);n.a=function(e){var n,t=e.value,o=e.showNum,r=e.isEditable,s=e.onDelete,d=e.onEdit,b=o?null==t?void 0:t.slice(0,o):t,N=Object(i.useState)(!1),p=c()(N,2),_=p[0],E=p[1];return u.a.createElement("div",{className:g("tag-component-container"),onMouseOver:function(){_||E(!0)},onMouseOut:function(){E(!1)},__source:{fileName:v,lineNumber:32,columnNumber:5}},0===(null==t?void 0:t.length)?u.a.createElement("span",{className:g("no-value"),__source:{fileName:v,lineNumber:43,columnNumber:30}},"-"):"",null==b?void 0:b.map((function(e){return u.a.createElement("div",{className:g("tag-item"),key:e,__source:{fileName:v,lineNumber:45,columnNumber:9}},u.a.createElement(m.a,{__source:{fileName:v,lineNumber:46,columnNumber:11}},e),r&&u.a.createElement("div",{className:g("tag-close-box"),onClick:function(){null==s||s(e)},__source:{fileName:v,lineNumber:48,columnNumber:13}},u.a.createElement(f,{__source:{fileName:v,lineNumber:55,columnNumber:15}})))})),(null==t?void 0:t.length)-(null==b?void 0:b.length)>0?u.a.createElement(l.a,{getPopupContainer:function(){return document.querySelector("#root")},content:u.a.createElement("div",{className:g("tootip-content-container"),__source:{fileName:v,lineNumber:64,columnNumber:13}},null==t||null===(n=t.slice(o))||void 0===n?void 0:n.map((function(e){return u.a.createElement("div",{key:e,__source:{fileName:v,lineNumber:66,columnNumber:17}},e)}))),__source:{fileName:v,lineNumber:61,columnNumber:9}},u.a.createElement("div",{className:g("more-tag"),__source:{fileName:v,lineNumber:71,columnNumber:11}},"+",(null==t?void 0:t.length)-(null==b?void 0:b.length))):null,r&&u.a.createElement(a.a,{fontSize:16,style:{cursor:"pointer",display:_?"inline-block":"none",color:"#4E5969",margin:4},onClick:function(){null==d||d(t)},__source:{fileName:v,lineNumber:75,columnNumber:9}}))}},1678:function(e,n,t){e.exports={"tag-component-container":"tag-component-container-7fbe513a00","tag-item":"tag-item-950f8d87b9","tag-close-box":"tag-close-box-f6dd0a6433","more-tag":"more-tag-cba65ceab5","no-value":"no-value-c4b05bf4a4","tootip-content-container":"tootip-content-container-685c761fe3"}},1697:function(e,n,t){"use strict";t(162);var o=t(67),a=t(0),l=t.n(a),r=t(115),c=t.n(r),i=t(1611),u=t(12),m=t(1700),s=t.n(m),d="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/components/common/host-status-component/index.tsx",b=c.a.bind(s.a);n.a=function(e){var n=e.value,t=e.detail;var a=function(e){switch(e){case i.d.running:return{content:Object(u.g)("运行中"),color:"#00AA2A"};case i.d.uninstall:return{content:Object(u.g)("未安装"),color:"#C9CDD4"};case i.d.abnormal:return{content:Object(u.g)("运行异常"),color:"#FA9600"};case i.d.offline:return{content:Object(u.g)("离线"),color:"#E63F3F"};default:return{content:"",color:"transparent"}}}(n);return l.a.createElement("div",{className:b("container"),__source:{fileName:d,lineNumber:33,columnNumber:5}},l.a.createElement(o.a,{disabled:n!==i.d.abnormal,mini:!0,content:t,getPopupContainer:function(){var e;return null===(e=document.getElementsByTagName("body"))||void 0===e?void 0:e[0]},__source:{fileName:d,lineNumber:34,columnNumber:7}},l.a.createElement("div",{className:b("circle"),style:{background:a.color},__source:{fileName:d,lineNumber:40,columnNumber:9}})),l.a.createElement("div",{className:b("content"),__source:{fileName:d,lineNumber:42,columnNumber:7}},a.content))}},1700:function(e,n,t){e.exports={container:"container-810f344c70",circle:"circle-9aa6f1ed62",content:"content-9962c55992"}}}]);