diff --git a/dist/242.2a008d01.async.js b/dist/242.2a008d01.async.js deleted file mode 100644 index 70e8f48c90df714e3c5ddaf3e2455341b46256f1..0000000000000000000000000000000000000000 --- a/dist/242.2a008d01.async.js +++ /dev/null @@ -1,37 +0,0 @@ -(self.webpackChunktest_lib_front=self.webpackChunktest_lib_front||[]).push([[242],{92977:function(Se,k,e){"use strict";e.d(k,{Z:function(){return ve}});var fe=e(28991),ae=e(67294),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},X=ie,N=e(27029),V=function(q,ee){return ae.createElement(N.Z,(0,fe.Z)((0,fe.Z)({},q),{},{ref:ee,icon:X}))};V.displayName="MoreOutlined";var ve=ae.forwardRef(V)},80341:function(){},56762:function(Se,k,e){"use strict";e.d(k,{_:function(){return N}});var fe=e(11849),ae=e(67294),ie=e(99913),X=e(85893),N=function(ve){return(0,fe.Z)({ellipsis:!0,render:function(q){return(0,X.jsx)(ie.Z,{children:q})}},ve)}},33923:function(Se,k,e){"use strict";e.d(k,{Fk:function(){return q}});var fe=e(20310),ae=e(67294),ie=e(58804),X=e(85893),N,V=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5;return new Map([[0,"#96043E"],[1,"#F5222D"],[2,"#FAAD14"],[3,"#0088FF"],[4,"#7DC0FB"],[5,"#000000"]]).get(S)},ve=null,_=ie.ZP.div(N||(N=(0,fe.Z)([` - height: 16px; - width: 24px; - border-radius: 8px; - font-size: 10px; - color: #FFFFFF; - text-align: center; - line-height: 16px; - background-color: `,`; -`])),function(ee){var S=ee.color;return S!=null?S:V()}),q=function(S){var I=S.priority;return(0,X.jsx)(_,{color:V(I),children:"P".concat(I)})}},87589:function(Se,k,e){"use strict";e.d(k,{Z:function(){return De}});var fe=e(13062),ae=e(71230),ie=e(89032),X=e(15746),N=e(49111),V=e(19650),ve=e(402),_=e(39602),q=e(2725),ee=e(98453),S=e(20310),I=e(67294),$=e(58804),Pe=e(68826),E=e.n(Pe),Re,te;function me(){return me=Object.assign||function(z){for(var L=1;L=0)&&(!Object.prototype.propertyIsEnumerable.call(z,R)||(c[R]=z[R]))}return c}function xe(z,L){if(z==null)return{};var c={},R=Object.keys(z),v,re;for(re=0;re=0)&&(c[v]=z[v]);return c}var G=function(L){var c=L.svgRef,R=L.title,v=ye(L,["svgRef","title"]);return I.createElement("svg",me({width:"32px",height:"32px",viewBox:"0 0 32 32",ref:c},v),R===void 0?Re||(Re=I.createElement("title",null,"\u4F18\u5148\u7EA7")):R?I.createElement("title",null,R):null,te||(te=I.createElement("g",{id:"\\u5207\\u56FE",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},I.createElement("g",{id:"\\u5207\\u56FE\\u6C47\\u603B",transform:"translate(-293.000000, -282.000000)"},I.createElement("g",{id:"\\u7F16\\u7EC4-2\\u5907\\u4EFD-2",transform:"translate(293.000000, 279.000000)"},I.createElement("g",{id:"\\u4F18\\u5148\\u7EA7",transform:"translate(0.000000, 3.000000)"},I.createElement("rect",{id:"\\u5934\\u50CF",fill:"#D8D8D8",opacity:.200000003,x:0,y:0,width:32,height:32,rx:16}),I.createElement("g",{transform:"translate(8.000000, 8.000000)",fill:"#000000",fillRule:"nonzero"},I.createElement("rect",{id:"\\u77E9\\u5F62",opacity:0,x:0,y:0,width:16,height:16}),I.createElement("path",{d:"M12.3484375,6.015625 L9.2375,6.015625 L11.24375,1.7015625 C11.34375,1.4 11.04375,0.9984375 10.7421875,0.9984375 L6.7296875,0.9984375 C6.5296875,0.9984375 6.328125,1.0984375 6.228125,1.3 L3.2171875,9.3265625 C3.1171875,9.728125 3.4171875,10.028125 3.71875,10.028125 L7.23125,10.028125 L6.228125,14.54375 L6.228125,14.64375 C6.228125,14.84375 6.428125,15.0453125 6.6296875,15.0453125 C6.7296875,15.0453125 6.93125,14.9453125 6.93125,14.8453125 L12.75,6.8171875 C12.95,6.415625 12.75,6.015625 12.3484375,6.015625 Z",id:"\\u8DEF\\u5F84",opacity:.5}))))))))},ne=I.forwardRef(function(z,L){return I.createElement(G,me({svgRef:L},z))}),oe=e.p+"static/priority.4bbf82d7.svg",b=e(85893),K,a,Y=$.ZP.div(K||(K=(0,S.Z)([` - width: 32px; - height: 32px; - display: flex; - justify-content: center; - align-items: center; - border-radius: 50%; - overflow: hidden; -`]))),ue=$.ZP.div(a||(a=(0,S.Z)([` - display: flex; - flex-direction: column; - .select_menu_cls { - .ant-select-selector { - padding: 0!important; - margin-right: 6px; - font-size: 14px; - height: 22px!important; - } - } -`]))),se=function(L){var c=L.left,R=L.right;return(0,b.jsxs)(ae.Z,{children:[(0,b.jsx)(X.Z,{span:c.span||12,children:(0,b.jsxs)(V.Z,{size:12,align:"center",children:[(0,b.jsx)(ee.C,{shape:"circle",src:c.icon||E()}),(0,b.jsxs)(ue,{children:[(0,b.jsx)(_.Z.Text,{style:{marginBottom:-4},children:c.data||"-"}),(0,b.jsx)("div",{style:{fontSize:12,color:"rgba(0,0,0,0.45)"},children:c.title})]})]})}),(0,b.jsx)(X.Z,{span:R.span||12,children:(0,b.jsxs)(V.Z,{size:12,align:"center",children:[(0,b.jsx)(Y,{children:(0,b.jsx)(ne,{})}),(0,b.jsxs)(ue,{children:[(0,b.jsx)("div",{style:{marginBottom:-1},children:R.data}),(0,b.jsx)("div",{style:{fontSize:12,color:"rgba(0,0,0,0.45)"},children:R.title})]})]})})]})},De=se},14066:function(Se,k,e){"use strict";var fe=e(12968),ae=e(62462),ie=e(2824),X=e(20310),N=e(58804),V=e(67294),ve=e(97877),_=e(85893),q,ee=N.ZP.div(q||(q=(0,X.Z)([` - width: 100%; - height: 100%; - - img { - max-height: 300px; - cursor: pointer; - } -`]))),S=function($){var Pe=$.content,E=Pe===void 0?[]:Pe,Re=$.style,te=V.useState(!1),me=(0,ie.Z)(te,2),ye=me[0],xe=me[1],G=V.useState(""),ne=(0,ie.Z)(G,2),oe=ne[0],b=ne[1],K=function(Y){var ue=Y.target;ue.tagName==="IMG"&&(b(ue.src),xe(!0))};return V.useEffect(function(){return function(){b(""),xe(!1)}},[]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(ee,{onClick:K,style:Re,dangerouslySetInnerHTML:{__html:(0,ve.createEditor)({content:E}).getHtml()}}),(0,_.jsx)(ae.Z,{width:200,style:{display:"none"},preview:{visible:ye,src:oe,onVisibleChange:function(Y){xe(Y)}}})]})};k.Z=S},65333:function(Se,k,e){"use strict";var fe=e(71194),ae=e(48889),ie=e(402),X=e(39602),N=e(49111),V=e(19650),ve=e(57663),_=e(71577),q=e(3182),ee=e(2824),S=e(94043),I=e.n(S),$=e(67294),Pe=e(68855),E=e(85893),Re=function(me,ye){var xe=me.onOk,G=$.useState(!1),ne=(0,ee.Z)(G,2),oe=ne[0],b=ne[1],K=$.useState(!1),a=(0,ee.Z)(K,2),Y=a[0],ue=a[1],se=$.useState(void 0),De=(0,ee.Z)(se,2),z=De[0],L=De[1];$.useImperativeHandle(ye,function(){return{show:function(re){L(re),b(!0)}}});var c=function(){b(!1),ue(!1)},R=function(){var v=(0,q.Z)(I().mark(function re(){return I().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:xe(z),c();case 2:case"end":return be.stop()}},re)}));return function(){return v.apply(this,arguments)}}();return(0,E.jsx)(ae.Z,{visible:oe,title:"\u5220\u9664\u63D0\u793A",width:"28%",footer:(0,E.jsxs)(V.Z,{align:"end",children:[(0,E.jsx)(_.Z,{onClick:c,children:"\u53D6\u6D88"}),(0,E.jsx)(_.Z,{onClick:R,disabled:Y,type:"danger",children:"\u786E\u5B9A\u5220\u9664"})]}),onCancel:c,children:(0,E.jsx)(X.Z.Text,{type:"danger",children:(0,E.jsxs)(V.Z,{children:[(0,E.jsx)(Pe.Z,{}),"\u8BE5\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C"]})})})};k.Z=$.forwardRef(Re)},43046:function(Se,k,e){"use strict";e.r(k),e.d(k,{default:function(){return Dt}});var fe=e(89032),ae=e(15746),ie=e(48736),X=e(27049),N=e(11849),V=e(59250),ve=e(13013),_=e(30887),q=e(28682),ee=e(57663),S=e(71577),I=e(49111),$=e(19650),Pe=e(402),E=e(39602),Re=e(13062),te=e(71230),me=e(13254),ye=e(14277),xe=e(34792),G=e(55026),ne=e(3182),oe=e(2824),b=e(94043),K=e.n(b),a=e(67294),Y=e(21010),ue=e(19630),se=e(23161),De=e(64204),z=e(38663),L=e(80341),c=e(96156),R=e(90484),v=e(22122),re=e(94184),pe=e.n(re),be=e(69255),Be=e(53124),$e=e(96159),Qe=e(98787);function Me(u){return Qe.Y.indexOf(u)!==-1}var Xe=function(n){var o,r=n.className,l=n.prefixCls,p=n.style,m=n.color,d=n.children,M=n.text,f=n.placement,C=f===void 0?"end":f,Z=a.useContext(Be.E_),H=Z.getPrefixCls,U=Z.direction,j=H("ribbon",l),h=Me(m),D=pe()(j,"".concat(j,"-placement-").concat(C),(o={},(0,c.Z)(o,"".concat(j,"-rtl"),U==="rtl"),(0,c.Z)(o,"".concat(j,"-color-").concat(m),h),o),r),J={},O={};return m&&!h&&(J.background=m,O.color=m),a.createElement("div",{className:"".concat(j,"-wrapper")},d,a.createElement("div",{className:D,style:(0,v.Z)((0,v.Z)({},J),p)},a.createElement("span",{className:"".concat(j,"-text")},M),a.createElement("div",{className:"".concat(j,"-corner"),style:O})))},ke=Xe,Le=e(28481);function Ue(u){var n=u.prefixCls,o=u.value,r=u.current,l=u.offset,p=l===void 0?0:l,m;return p&&(m={position:"absolute",top:"".concat(p,"00%"),left:0}),a.createElement("span",{style:m,className:pe()("".concat(n,"-only-unit"),{current:r})},o)}function _e(u,n,o){for(var r=u,l=0;(r+10)%10!==n;)r+=o,l+=o;return l}function qe(u){var n=u.prefixCls,o=u.count,r=u.value,l=Number(r),p=Math.abs(o),m=a.useState(l),d=(0,Le.Z)(m,2),M=d[0],f=d[1],C=a.useState(p),Z=(0,Le.Z)(C,2),H=Z[0],U=Z[1],j=function(){f(l),U(p)};a.useEffect(function(){var P=setTimeout(function(){j()},1e3);return function(){clearTimeout(P)}},[l]);var h,D;if(M===l||Number.isNaN(l)||Number.isNaN(M))h=[a.createElement(Ue,(0,v.Z)({},u,{key:l,current:!0}))],D={transition:"none"};else{h=[];for(var J=l+10,O=[],s=l;s<=J;s+=1)O.push(s);var x=O.findIndex(function(P){return P%10===M});h=O.map(function(P,ce){var Q=P%10;return a.createElement(Ue,(0,v.Z)({},u,{key:P,value:Q,offset:ce-x,current:ce===x}))});var g=HU?"".concat(U,"+"):Z,je=d!=null||f!=null,F=Ze==="0"||Ze===0,B=h&&!F,y=B?"":Ze,T=(0,a.useMemo)(function(){var ge=y==null||y==="";return(ge||F&&!ce)&&!B},[y,F,ce,B]),w=(0,a.useRef)(Z);T||(w.current=Z);var le=w.current,i=(0,a.useRef)(y);T||(i.current=y);var Ae=i.current,W=(0,a.useRef)(B);T||(W.current=B);var Te=(0,a.useMemo)(function(){if(!s)return(0,v.Z)({},x);var ge={marginTop:s[1]};return Ce==="rtl"?ge.left=parseInt(s[0],10):ge.right=-parseInt(s[0],10),(0,v.Z)((0,v.Z)({},ge),x)},[Ce,s,x]),St=O!=null?O:typeof le=="string"||typeof le=="number"?le:void 0,Tt=T||!M?null:a.createElement("span",{className:"".concat(A,"-status-text")},M),bt=!le||(0,R.Z)(le)!=="object"?void 0:(0,$e.Tm)(le,function(ge){return{style:(0,v.Z)((0,v.Z)({},Te),ge.style)}}),Mt=pe()((o={},(0,c.Z)(o,"".concat(A,"-status-dot"),je),(0,c.Z)(o,"".concat(A,"-status-").concat(d),!!d),(0,c.Z)(o,"".concat(A,"-status-").concat(f),Me(f)),o)),Ye={};f&&!Me(f)&&(Ye.background=f);var Je=pe()(A,(r={},(0,c.Z)(r,"".concat(A,"-status"),je),(0,c.Z)(r,"".concat(A,"-not-a-wrapper"),!m),(0,c.Z)(r,"".concat(A,"-rtl"),Ce==="rtl"),r),g);if(!m&&je){var At=Te.color;return a.createElement("span",(0,v.Z)({},Q,{className:Je,style:Te}),a.createElement("span",{className:Mt,style:Ye}),a.createElement("span",{style:{color:At},className:"".concat(A,"-status-text")},M))}return a.createElement("span",(0,v.Z)({},Q,{className:Je}),m,a.createElement(be.Z,{visible:!T,motionName:"".concat(A,"-zoom"),motionAppear:!1,motionDeadline:1e3},function(ge){var Oe,Ft=ge.className,Bt=Ee("scroll-number",p),Ie=W.current,Nt=pe()((Oe={},(0,c.Z)(Oe,"".concat(A,"-dot"),Ie),(0,c.Z)(Oe,"".concat(A,"-count"),!Ie),(0,c.Z)(Oe,"".concat(A,"-count-sm"),J==="small"),(0,c.Z)(Oe,"".concat(A,"-multiple-words"),!Ie&&Ae&&Ae.toString().length>1),(0,c.Z)(Oe,"".concat(A,"-status-").concat(d),!!d),(0,c.Z)(Oe,"".concat(A,"-status-").concat(f),Me(f)),Oe)),Fe=(0,v.Z)({},Te);return f&&!Me(f)&&(Fe=Fe||{},Fe.background=f),a.createElement(nt,{prefixCls:Bt,show:!T,motionClassName:Ft,className:Nt,count:Ae,title:St,style:Fe,key:"scrollNumber"},bt)}),Tt)};We.Ribbon=ke;var at=We,st=e(36820),Ke=e(4971),lt=e(33923),ze=e(83399),t=e(85893),ot=function(n){var o=n.onOk,r=n.canSelect,l=r===void 0?!0:r,p=n.dataSource,m=p===void 0?[]:p,d=a.useState([]),M=(0,oe.Z)(d,2),f=M[0],C=M[1],Z=a.useRef(null);a.useEffect(function(){o==null||o(f)},[f,o]);var H=function(h){C(f.filter(function(D){return D.id!==h.id}))},U=[{title:"\u7528\u4F8B\u540D\u79F0",ellipsis:!0,dataIndex:"name"},{title:"\u4F18\u5148\u7EA7",dataIndex:"priority",render:function(h){return(0,t.jsx)(lt.Fk,{priority:h})}},{title:"\u8FD0\u884C\u65B9\u5F0F",dataIndex:"run_method",render:function(h){return h?Ke.iM.get(h):"-"}},{title:"\u72B6\u6001",dataIndex:"is_available",render:function(h){var D=Ke.Yl.get(h);return(0,t.jsx)(at,{status:D==="\u53EF\u7528"?"success":"default",text:D})}},l&&{title:"\u64CD\u4F5C",render:function(h){return(0,t.jsx)("span",{onClick:function(){return H(h)},children:(0,t.jsx)(E.Z.Link,{children:"\u5220\u9664"})})}}].filter(Boolean);return(0,t.jsxs)($.Z,{direction:"vertical",style:{width:"100%"},children:[(0,t.jsx)(te.Z,{justify:"space-between",align:"middle",children:(0,t.jsx)(E.Z.Text,{style:{margin:0},strong:!0,children:"\u7528\u4F8B"})}),(0,t.jsx)(ze.k,{columns:U,showHeader:!!m.length,dataSource:m||[],size:"small",rowKey:"id",pagination:!1}),l&&(0,t.jsx)(st.Z,{ref:Z,onOk:C})]})},it=ot,ut=e(68894),he=e(56762),ct=function(n){var o=n.onOk,r=n.canSelect,l=r===void 0?!0:r,p=n.onChange,m=n.status,d=a.useRef(null),M=a.useState({tasks:[],cases:[]}),f=(0,oe.Z)(M,2),C=f[0],Z=f[1],H=(0,ue.UO)(),U=H.plan_id;a.useEffect(function(){o==null||o(C)},[C]);var j=(0,Y.QT)(se.W1,{manual:!0}),h=j.run;a.useEffect(function(){U&&h(U).then(function(x){Z(x)})},[U,h]),a.useEffect(function(){p==null||p(C.cases)},[C,p]);var D=function(){var x=(0,ne.Z)(K().mark(function g(){var P;return K().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:(P=d.current)===null||P===void 0||P.show(C.tasks.map(function(de){return de.id}));case 1:case"end":return Q.stop()}},g)}));return function(){return x.apply(this,arguments)}}(),J=function(g){Z((0,N.Z)((0,N.Z)({},C),{},{tasks:C.tasks.filter(function(P){return P.id!==g.id})}))},O=m!=="init"&&!l,s=[O&&{width:30,dataIndex:"status",render:function(){return(0,t.jsx)(t.Fragment,{})}},{title:"\u4EFB\u52A1\u540D\u79F0",ellipsis:!0,dataIndex:"name"},O&&{title:"\u7528\u4F8B\u6570",width:60,dataIndex:"cases",render:function(g){return g&&Object.prototype.toString.call(g)==="[object String]"?g.split(",").length:"-"}},(0,he._)({title:"\u8FD0\u884C\u65B9\u5F0F",dataIndex:"run_method"}),(0,he._)({title:"\u6D4B\u8BD5\u8BBE\u5907",dataIndex:"device_ip"}),O&&(0,he._)({title:"\u8D1F\u8D23\u4EBA",dataIndex:"owner"}),(0,he._)({title:"Workspace",dataIndex:"workspace"}),(0,he._)({title:"Project\u540D\u79F0",dataIndex:"project"}),(0,he._)({title:"Job\u7C7B\u578B",dataIndex:"job_type"}),(0,he._)({title:"\u5907\u6CE8",dataIndex:"desc"}),O&&(0,he._)({title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"gmt_created"}),O&&(0,he._)({title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"gmt_modifeid"}),l&&{title:"\u64CD\u4F5C",render:function(g){return(0,t.jsx)("span",{onClick:function(){return J(g)},children:(0,t.jsx)(E.Z.Link,{children:"\u5220\u9664"})})}}];return(0,t.jsxs)($.Z,{direction:"vertical",style:{width:"100%"},children:[(0,t.jsxs)(te.Z,{justify:"space-between",align:"middle",children:[(0,t.jsx)(E.Z.Text,{style:{margin:0},strong:!0,children:"\u6D4B\u8BD5\u4EFB\u52A1"}),l&&(0,t.jsx)(S.Z,{onClick:D,children:"\u9009\u62E9\u4EFB\u52A1"})]}),(0,t.jsx)(ze.k,{columns:s.filter(Boolean),dataSource:C.tasks||[],showHeader:!!C.tasks.length,rowKey:"id",size:"small",pagination:!1}),l&&(0,t.jsx)(ut.Z,{ref:d,onOk:function(g){return Z((0,N.Z)((0,N.Z)({},C),{},{tasks:g}))}})]})},Ve=ct,He=e(28991),dt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},ft=dt,vt=e(27029),we=function(n,o){return a.createElement(vt.Z,(0,He.Z)((0,He.Z)({},n),{},{ref:o,icon:ft}))};we.displayName="ReloadOutlined";var mt=a.forwardRef(we),ht=e(92977),It=e(43358),gt=e(42239),$t=e(47673),yt=e(32787),Lt=e(9715),Ne=e(71257),xt=e(40841),pt=e(77881),Ge=e(74805),Et=function(n){var o=n.route,r=(0,Ge.c)(),l=r.refresh,p=(0,ue.UO)(),m=p.plan_id,d=n.source,M=n.onOk,f=Ne.Z.useForm(),C=(0,oe.Z)(f,1),Z=C[0];a.useEffect(function(){if(d&&JSON.stringify(d)!=="{}"){var x=d.req_id,g=d.title;Z.setFieldsValue({req_id:x,title:g})}},[d]);var H=a.useState({}),U=(0,oe.Z)(H,2),j=U[0],h=U[1],D=a.useRef(null),J=(0,Y.QT)(function(){return(0,Y.WY)("/api/requirement")},{initialData:[]}),O=J.data,s=function(){Z.validateFields().then(function(){var g=(0,ne.Z)(K().mark(function P(ce){var Q,de,Ee,Ce,A,Ze,je,F,B,y,T,w,le,i;return K().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(de=j.tasksAndCases,Ee=(0,N.Z)((0,N.Z)({},ce),{},{reviewers:"xxxx",tasks:[],content:(Q=D.current)===null||Q===void 0?void 0:Q.children}),Ce=m&&d,!Ce){W.next=24;break}return W.next=6,(0,se.uw)(m,Ee);case 6:if(A=W.sent,Ze=A.code,je=A.msg,Ze===200){W.next=11;break}return W.abrupt("return",G.default.error(je));case 11:return W.next=13,(0,se.GJ)(m,{tasks:de==null?void 0:de.tasks.map(function(Te){return Te.id})});case 13:if(F=W.sent,B=F.code,y=F.msg,B===200){W.next=19;break}return G.default.error(y),W.abrupt("return");case 19:M(),l(),G.default.success("\u64CD\u4F5C\u6210\u529F"),W.next=34;break;case 24:return W.next=26,(0,se.Oe)(Ee);case 26:if(T=W.sent,w=T.data,le=T.code,i=T.msg,le===200){W.next=33;break}return G.default.error(i),W.abrupt("return");case 33:Y.m8.push("/plan/".concat(w.id));case 34:case"end":return W.stop()}},P)}));return function(P){return g.apply(this,arguments)}}())};return(0,t.jsx)("div",{style:{padding:12,backgroundColor:"#fff",height:"100%",overflow:"auto"},children:(0,t.jsxs)($.Z,{style:{width:"100%"},direction:"vertical",children:[(0,t.jsxs)(te.Z,{justify:"space-between",align:"middle",children:[(0,t.jsx)(E.Z.Text,{strong:!0,children:"\u7F16\u8F91\u65B9\u6848"}),(0,t.jsx)(S.Z,{type:"primary",onClick:s,children:"\u4FDD\u5B58"})]}),(0,t.jsx)(E.Z.Text,{strong:!0,children:"\u57FA\u7840\u4FE1\u606F"}),(0,t.jsxs)(pt.yV,{form:Z,labelCol:{span:2},wrapperCol:{span:16},children:[(0,t.jsx)(Ne.Z.Item,{label:"\u65B9\u6848\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u65B9\u6848\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}],children:(0,t.jsx)(yt.Z,{allowClear:!0,autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165"})}),(0,t.jsx)(Ne.Z.Item,{label:"\u6D4B\u8BD5\u9700\u6C42",name:"req_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6D4B\u8BD5\u9700\u6C42"}],children:(0,t.jsx)(gt.Z,{options:O.map(function(x){return{label:x.title,value:x.id}}),showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u6D4B\u8BD5\u9700\u6C42",filterOption:function(g,P){return P.label.toLowerCase().indexOf(g.toLowerCase())>=0}})})]}),(0,t.jsx)(E.Z.Text,{strong:!0,children:"\u63CF\u8FF0"}),(0,t.jsx)("div",{style:{height:400,border:"1px solid rgba(0,0,0,0.15)",borderRadius:2},children:(0,t.jsx)(xt.Z,{defaultValue:m?d==null?void 0:d.content:void 0,onEditorChange:function(g){return D.current=g}})}),(o==null?void 0:o.name)!=="create"&&(0,t.jsx)(Ve,{ids:d==null?void 0:d.tasks,onOk:function(g){return h(function(P){return(0,N.Z)((0,N.Z)({},P),{},{tasksAndCases:g})})}})]})})},Ct=Et,Zt=e(87589),jt=e(65333),Ot=e(14066),Pt=e(55044),Rt=function(){var n=(0,Y.md)(),o=(0,ue.UO)(),r=o.plan_id,l=(0,Ge.c)(),p=l.refresh,m=a.useState(!1),d=(0,oe.Z)(m,2),M=d[0],f=d[1],C=a.useState([]),Z=(0,oe.Z)(C,2),H=Z[0],U=Z[1],j=a.useState(!1),h=(0,oe.Z)(j,2),D=h[0],J=h[1],O=(0,Y.QT)(se.cu,{manual:!0,initialData:null}),s=O.data,x=O.run,g=O.refresh,P=O.loading,ce=a.useRef(),Q=function(){p(),g()};a.useEffect(function(){return r&&x(r),function(){f(!1),U([])}},[r]);var de=function(B){var y;switch(B.key){case"delete":return(y=ce.current)===null||y===void 0?void 0:y.show()}},Ee=function(){var F=(0,ne.Z)(K().mark(function B(){var y,T,w;return K().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,se.NH)(r);case 2:if(y=i.sent,T=y.code,w=y.msg,T===200){i.next=7;break}return i.abrupt("return",G.default.error(w));case 7:return G.default.success("\u64CD\u4F5C\u6210\u529F\uFF01"),i.next=10,p();case 10:Y.m8.push("/plan");case 11:case"end":return i.stop()}},B)}));return function(){return F.apply(this,arguments)}}(),Ce=function(){f(!1),Q()},A=function(){var F=(0,ne.Z)(K().mark(function B(){var y,T,w;return K().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!D){i.next=2;break}return i.abrupt("return");case 2:return J(!0),i.next=5,(0,se.Nm)({plan_id:r});case 5:if(y=i.sent,T=y.code,w=y.msg,J(!1),T===200){i.next=11;break}return i.abrupt("return",G.default.error(w));case 11:G.default.success("\u64CD\u4F5C\u6210\u529F\uFF01"),p();case 13:case"end":return i.stop()}},B)}));return function(){return F.apply(this,arguments)}}(),Ze=function(){var F=(0,ne.Z)(K().mark(function B(){var y,T,w;return K().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,se.L2)(r);case 2:if(y=i.sent,T=y.msg,w=y.code,w===200){i.next=7;break}return i.abrupt("return",G.default.error(T));case 7:Q();case 8:case"end":return i.stop()}},B)}));return function(){return F.apply(this,arguments)}}(),je=function(){var F=(0,ne.Z)(K().mark(function B(){var y,T,w;return K().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,se.GW)(r);case 2:if(y=i.sent,T=y.msg,w=y.code,w===200){i.next=7;break}return i.abrupt("return",G.default.error(T));case 7:Q();case 8:case"end":return i.stop()}},B)}));return function(){return F.apply(this,arguments)}}();return M?(0,t.jsx)(Ct,{isEdit:M,source:s,onOk:Ce,cases:H}):r&&!s?(0,t.jsx)(De.Z,{}):r?P?(0,t.jsx)("div",{style:{height:innerHeight,position:"relative"},children:(0,t.jsx)(De.Z,{})}):(0,t.jsxs)($.Z,{direction:"vertical",style:{width:"100%",padding:12,height:"100%",overflow:"auto"},children:[(0,t.jsxs)(te.Z,{justify:"space-between",align:"middle",children:[(0,t.jsxs)($.Z,{children:[(0,t.jsxs)($.Z,{children:[(0,t.jsx)(E.Z.Text,{style:{color:"rgba(0,0,0,0.45)",fontSize:12},children:"\u521B\u5EFA\u4E8E"}),(0,t.jsx)(E.Z.Text,{style:{color:"rgba(0,0,0,0.45)",fontSize:12},children:s.gmt_created})]}),(0,t.jsxs)($.Z,{children:[(0,t.jsx)(E.Z.Text,{style:{color:"rgba(0,0,0,0.45)",fontSize:12},children:"\u66F4\u65B0\u4E8E"}),(0,t.jsx)(E.Z.Text,{style:{color:"rgba(0,0,0,0.45)",fontSize:12},children:s.gmt_modified})]})]}),(0,t.jsxs)($.Z,{children:[!["init","finish"].includes(s.status)&&(0,t.jsx)(S.Z,{size:"small",icon:(0,t.jsx)(mt,{}),onClick:function(){return g()}}),s.status==="finish"&&(0,t.jsx)(t.Fragment,{children:s.report?(0,t.jsx)(S.Z,{type:"primary",size:"small",onClick:function(){return Y.m8.push("/plan/".concat(r,"/report"))},children:"\u67E5\u770B\u6D4B\u8BD5\u62A5\u544A"}):n.canTester()&&(0,t.jsx)(S.Z,{size:"small",onClick:function(){return je()},children:"\u751F\u6210\u62A5\u544A"})}),n.canTester()&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.Z,{size:"small",disabled:s.status!=="init",onClick:Ze,children:"\u6267\u884C"}),n.canCurrentTester(s==null?void 0:s.owner)&&(0,t.jsx)(S.Z,{size:"small",disabled:s.status!=="init",onClick:function(){return f(!0)},children:"\u7F16\u8F91"}),(0,t.jsx)(S.Z,{size:"small",onClick:A,children:"\u590D\u5236\u65B9\u6848"}),n.canCurrentTester(s==null?void 0:s.owner)&&(0,t.jsx)(ve.Z,{overlay:(0,t.jsx)(q.Z,{onClick:de,children:(0,t.jsx)(q.Z.Item,{children:"\u5220\u9664"},"delete")}),children:(0,t.jsx)("span",{style:{width:24,cursor:"pointer"},children:(0,t.jsx)(ht.Z,{})})})]})]})]}),(0,t.jsx)(E.Z.Text,{strong:!0,children:s.title}),(0,t.jsx)(Zt.Z,{left:{title:"\u8D1F\u8D23\u4EBA",data:s==null?void 0:s.owner,span:6},right:{title:"\u72B6\u6001",data:(0,t.jsx)(Pt.iK,(0,N.Z)((0,N.Z)({},s),{},{style:{transform:"scale(0.8)",transformOrigin:"0 0"}})),span:6}}),(0,t.jsx)(X.Z,{style:{margin:0}}),(0,t.jsx)(E.Z.Text,{strong:!0,children:"\u57FA\u7840\u4FE1\u606F"}),(0,t.jsxs)(te.Z,{children:[(0,t.jsx)(ae.Z,{span:2,children:"\u6D4B\u8BD5\u9700\u6C42"}),(0,t.jsx)(ae.Z,{span:20,style:{color:"rgba(0,0,0,0.65)"},children:s==null?void 0:s.req_title})]}),(0,t.jsx)(X.Z,{style:{margin:0}}),(0,t.jsx)(te.Z,{justify:"space-between",align:"middle",children:(0,t.jsx)(E.Z.Text,{strong:!0,children:"\u63CF\u8FF0"})}),(0,t.jsx)(Ot.Z,{style:{background:"#FAFAFA",padding:12},content:s!=null&&s.content&&Object.prototype.toString.call(s==null?void 0:s.content)==="[object Array]"?s==null?void 0:s.content:[]}),(0,t.jsx)(Ve,{ids:s.tasks,canSelect:!1,onChange:U}),(0,t.jsx)(te.Z,{style:{height:4}}),(0,t.jsx)(it,{dataSource:H,canSelect:!1}),(0,t.jsx)(jt.Z,{ref:ce,onOk:Ee})]}):(0,t.jsx)(te.Z,{justify:"center",style:{paddingTop:300,background:"#fff",height:"100%"},children:(0,t.jsx)(ye.Z,{image:ye.Z.PRESENTED_IMAGE_SIMPLE})})},Dt=Rt}}]); diff --git a/dist/475.37bb82ed.async.js b/dist/475.37bb82ed.async.js deleted file mode 100644 index 6bf08dc6b5d41a5b20ea46715e13e9cb3eaa7173..0000000000000000000000000000000000000000 --- a/dist/475.37bb82ed.async.js +++ /dev/null @@ -1,76 +0,0 @@ -(self.webpackChunktest_lib_front=self.webpackChunktest_lib_front||[]).push([[475],{77881:function(se,k,e){"use strict";e.d(k,{Gi:function(){return V},yV:function(){return Y}});var o=e(9715),F=e(71257),r=e(66456),d=e(4972),B=e(20310),$=e(58804),Q,L,K,V=(0,$.ZP)(d.Z)(Q||(Q=(0,B.Z)([` - .ant-table-small .ant-table-thead > tr > th { - background-color: transparent; - } - .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before { - background-color: transparent; - } - .ant-table-expanded-row.ant-table-expanded-row-level-1 > td { - padding: 0!important; - } -`]))),Y=(0,$.ZP)(F.Z)(L||(L=(0,B.Z)([` - .ant-form-item { - margin-bottom: 12px; - } -`]))),w=$.ZP.div(K||(K=(0,B.Z)([` - img { - width: 100%; - } -`])))},64204:function(se,k,e){"use strict";var o=e(11849),F=e(20228),r=e(11382),d=e(13062),B=e(71230),$=e(20310),Q=e(67294),L=e(58804),K=e(85893),V,Y=(0,L.ZP)(B.Z)(V||(V=(0,$.Z)([` - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 0; - background: #fff; - z-index: 100; - padding-top: 300px; -`]))),w=function(Z){return(0,K.jsx)(Y,(0,o.Z)((0,o.Z)({justify:"center"},Z),{},{children:(0,K.jsx)(r.Z,{})}))};k.Z=w},99913:function(se,k,e){"use strict";var o=e(22385),F=e(89456),r=e(11849),d=e(402),B=e(39602),$=e(2824),Q=e(93224),L=e(67294),K=e(85893),V=function(w){var N=w.title,Z=w.children,re=w.style,m=(0,Q.Z)(w,["title","children","style"]),v=L.useState(!1),c=(0,$.Z)(v,2),y=c[0],u=c[1];return L.useEffect(function(){return function(){u(!1)}},[]),y?(0,K.jsx)(F.Z,{title:N||Z,placement:"topLeft",children:(0,K.jsx)(B.Z.Text,(0,r.Z)((0,r.Z)({},m),{},{children:Z}))}):(0,K.jsx)(B.Z.Text,(0,r.Z)((0,r.Z)({},m),{},{style:re,ellipsis:{onEllipsis:function(){return u(!0)}},children:Z||"-"}))};k.Z=V},55044:function(se,k,e){"use strict";e.d(k,{iK:function(){return K}});var o=e(71153),F=e(60331),r=e(11849),d=e(93224),B=e(67294),$=e(85893),Q=new Map([["analysing","\u5206\u6790\u4E2D"],["reviewing","\u8BC4\u5BA1\u4E2D"],["accepted","\u5DF2\u63A5\u53D7"],["refused","\u5DF2\u62D2\u7EDD"],["init","\u521D\u59CB\u5316"],["waiting","\u7B49\u5F85\u4E2D"],["starting","\u5F00\u59CB\u4E2D"],["running","\u8FD0\u884C\u4E2D"],["stopping","\u505C\u6B62\u4E2D"],["pedding","\u5F85\u5B9A\u4E2D"],["finish","\u5DF2\u5B8C\u6210"],["stopped","\u5DF2\u505C\u6B62"],["pause","\u6682\u505C"],["skip","\u8DF3\u8FC7"],["cancel","\u53D6\u6D88"],["success","\u6210\u529F"],["fail","\u5931\u8D25"],["error","\u9519\u8BEF"],["ignore","\u5FFD\u7565"],["online","\u5728\u7EBF"],["offline","\u4E0B\u7EBF"],["uninstalling","\u5378\u8F7D\u4E2D"],["installing","\u4E0B\u8F7D\u4E2D"]]),L=function(Y){return new Map([["running",{color:"rgba(24,144,255,1)",background:"rgba(24,144,255,.1)"}],["reviewing",{color:"rgba(24,144,255,1)",background:"rgba(24,144,255,.1)"}],["finish",{color:"rgba(34,188,61,1)",background:"rgba(34,188,61,.1)"}],["accepted",{color:"rgba(34,188,61,1)",background:"rgba(34,188,61,.1)"}],["success",{color:"rgba(34,188,61,1)",background:"rgba(34,188,61,.1)"}],["analysing",{color:"rgba(250,173,21,1)",background:"rgba(250,173,21,.1)"}],["pedding",{color:"rgba(250,173,21,1)",background:"rgba(250,173,21,.1)"}],["refused",{color:"rgba(255,77,79,1)",background:"rgba(255,77,79,.1)"}],["fail",{color:"rgba(255,77,79,1)",background:"rgba(255,77,79,.1)"}],["error",{color:"rgba(255,77,79,1)",background:"rgba(255,77,79,.1)"}]]).get(Y)||{color:"rgba(0,0,0,0.45)",background:"rgba(0,0,0,0.03)"}},K=function(Y){var w,N=Y.status,Z=Y.style,re=Z===void 0?{}:Z,m=(0,d.Z)(Y,["status","style"]);return(0,$.jsx)(F.Z,(0,r.Z)((0,r.Z)({color:(w=L(N))===null||w===void 0?void 0:w.color,style:(0,r.Z)((0,r.Z)({width:54,margin:0,textAlign:"center"},L(N)),re)},m),{},{children:Q.get(N)}))}},83399:function(se,k,e){"use strict";e.d(k,{k:function(){return B}});var o=e(20310),F=e(77881),r=e(58804),d,B=(0,r.ZP)(F.Gi)(d||(d=(0,o.Z)([` - table { - thead th { - font-size: 12px; - padding: 4.5px!important; - } - - tbody td { - padding: 4.5px!important; - } - } -`])))},36820:function(se,k,e){"use strict";e.d(k,{Z:function(){return ge}});var o=e(71194),F=e(48889),r=e(20228),d=e(11382),B=e(63185),$=e(9676),Q=e(13254),L=e(14277),K=e(47673),V=e(32787),Y=e(13062),w=e(71230),N=e(49111),Z=e(19650),re=e(57663),m=e(71577),v=e(402),c=e(39602),y=e(3182),u=e(86582),i=e(11849),j=e(2824),I=e(94043),O=e.n(I),b=e(67294),f=e(21010),a=e(22636),n=e(34689),h=e(64204),t=e(85893),s=function(ve){var Te=ve.list,Pe=ve.active,Be=ve.onChange,we=ve.label;return(0,t.jsxs)(Z.Z,{children:[(0,t.jsxs)(c.Z.Text,{children:[we,"\uFF1A"]}),(0,t.jsx)(Z.Z,{size:20,children:Te.map(function($e){var Ze=(0,j.Z)($e,2),ye=Ze[0],Ce=Ze[1];return Pe===Ce?(0,t.jsx)(c.Z.Link,{children:ye},ye):(0,t.jsx)(c.Z.Text,{style:{cursor:"pointer"},onClick:function(){return Be(Ce)},children:ye},ye)})})]})},P=s,Le={mod_id:null,run_method:"auto",is_available:!0,test_type:"performance"},_e=function(ve,Te){var Pe=ve.onOk,Be=b.useState(!1),we=(0,j.Z)(Be,2),$e=we[0],Ze=we[1],ye=b.useState(!1),Ce=(0,j.Z)(ye,2),Re=Ce[0],Fe=Ce[1],Ve=b.useState(Le),We=(0,j.Z)(Ve,2),de=We[0],l=We[1],Je=b.useState(!1),Ae=(0,j.Z)(Je,2),tt=Ae[0],be=Ae[1],Qe=b.useState(!1),ke=(0,j.Z)(Qe,2),Ne=ke[0],me=ke[1],ze=b.useState([]),Ie=(0,j.Z)(ze,2),ae=Ie[0],U=Ie[1],D=(0,f.QT)(function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{is_available:!0};return(0,a.Ne)(0,C)},{initialData:[],debounceInterval:300}),S=D.data,X=D.loading,G=D.run,ue=(0,f.QT)(function(){return(0,a.o6)(de)},{initialData:[],refreshDeps:[de]}),z=ue.data,ie=ue.loading;b.useImperativeHandle(Te,function(){return{show:function(_,M){if(M){var ee=M.test_type,A=M.run_method;l(function(J){return(0,i.Z)((0,i.Z)({},J),{},{test_type:ee||"performance",run_method:A||"auto"})})}U(_.map(function(J){return J.id})),Ze(!0)}}});var H=b.useMemo(function(){return z?z.map(function(C){return C.id}):[]},[z]),xe=function(_){var M=_.target;me(M.checked),be(!1);var ee=M.checked?(0,u.Z)(new Set(ae.concat(H))):ae.filter(function(A){return!H.includes(A)});U(ee)},le=function(){Ze(!1),Fe(!1),U([]),be(!1),me(!1),G({is_available:!0}),l(Le)},Ee=function(){var C=(0,y.Z)(O().mark(function _(){var M;return O().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(!Re){A.next=2;break}return A.abrupt("return");case 2:Fe(!0),M=z==null?void 0:z.filter(function(J){return ae.includes(J.id)}),Pe(M,de),le();case 6:case"end":return A.stop()}},_)}));return function(){return C.apply(this,arguments)}}(),oe=function(_){l(function(M){return(0,i.Z)((0,i.Z)({},M),{},{mod_id:_})})},ce=function(_){G({key:_.target.value,is_available:!0})},je=function(_){var M=_.target,ee=M.value,A=M.checked,J=A?(0,u.Z)(new Set(ae.concat(+ee))):ae.filter(function(He){return He!==+ee});U(J)};return b.useEffect(function(){var C=H.filter(function(M){return ae.includes(M)}),_=C.length;_>0?_===H.length?(me(!0),be(!1)):(me(!1),be(!0)):(be(!1),me(!1))},[H,ae]),(0,t.jsx)(F.Z,{visible:$e,title:"\u9009\u62E9\u7528\u4F8B",width:"40%",footer:(0,t.jsxs)(w.Z,{justify:"space-between",align:"middle",children:[(0,t.jsx)(c.Z.Text,{children:"\u5DF2\u9009\u4E2D".concat(ae.length,"\u6761")}),(0,t.jsxs)(Z.Z,{align:"end",children:[(0,t.jsx)(m.Z,{onClick:le,children:"\u53D6\u6D88"}),(0,t.jsx)(m.Z,{disabled:Re,onClick:Ee,type:"primary",children:"\u786E\u5B9A"})]})]}),onCancel:le,children:(0,t.jsxs)(Z.Z,{direction:"vertical",style:{width:"100%"},children:[(0,t.jsx)(V.Z,{placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u5B57",onKeyUp:ce,onChange:ce,allowClear:!0}),(0,t.jsx)(P,{label:"\u8FD0\u884C\u65B9\u5F0F",list:[["\u81EA\u52A8","auto"],["\u624B\u52A8","manual"]],active:de.run_method,onChange:function(_){l(function(M){return(0,i.Z)((0,i.Z)({},M),{},{run_method:_})}),U([])}}),(0,t.jsx)(P,{label:"\u6D4B\u8BD5\u7C7B\u578B",list:[["\u6027\u80FD\u6D4B\u8BD5","performance"],["\u529F\u80FD\u6D4B\u8BD5","functional"]],active:de.test_type,onChange:function(_){l(function(M){return(0,i.Z)((0,i.Z)({},M),{},{type:_})}),U([])}}),(0,t.jsxs)(w.Z,{style:{position:"relative"},children:[(0,t.jsxs)("div",{style:{width:208,borderRight:"1px solid rgba(0,0,0,.1)",minHeight:"100%"},children:[(0,t.jsx)(n.VF,{is_active:de.mod_id===null,onClick:function(){return oe(null)},children:(0,t.jsxs)(Z.Z,{align:"center",size:4,children:[(0,t.jsx)(n.eO,{}),"\u6240\u6709\u7528\u4F8B"]})}),(0,t.jsx)(n.qU,{children:S.map(function(C){return(0,t.jsxs)(n.VF,{is_active:C.id===de.mod_id,onClick:function(){return oe(C.id)},is_child:!0,children:[(0,t.jsx)(n.eO,{}),(0,t.jsx)(Z.Z,{style:{width:"calc(100% - 16px - 6px - 6px )",margin:"0px 6px"},children:(0,t.jsx)(c.Z.Text,{ellipsis:!0,children:C.name})})]},C.id)})})]}),(0,t.jsx)("div",{style:{width:"calc(100% - 208px)",padding:"0 12px",maxHeight:350,overflow:"auto"},children:(0,t.jsx)(d.Z,{spinning:ie,children:!z||z.length===0?(0,t.jsx)(L.Z,{image:L.Z.PRESENTED_IMAGE_SIMPLE}):(0,t.jsxs)(Z.Z,{direction:"vertical",children:[(0,t.jsx)($.Z,{indeterminate:tt,onChange:xe,checked:Ne,disabled:!H.length,children:"\u5168\u9009"}),(0,t.jsx)($.Z.Group,{value:ae,children:(0,t.jsx)(Z.Z,{direction:"vertical",children:z.map(function(C){return(0,t.jsx)($.Z,{onClick:function(M){return je(M)},value:C.id,children:C.name},C.id)})})})]})})}),X&&(0,t.jsx)(h.Z,{style:{paddingTop:100}})]})]})})},ge=b.forwardRef(_e)},34689:function(se,k,e){"use strict";e.d(k,{eO:function(){return m},VF:function(){return y},qU:function(){return c}});var o=e(20310),F=e(58804),r=e(67294),d;function B(){return B=Object.assign||function(u){for(var i=1;i=0)&&(!Object.prototype.propertyIsEnumerable.call(u,I)||(j[I]=u[I]))}return j}function Q(u,i){if(u==null)return{};var j={},I=Object.keys(u),O,b;for(b=0;b=0)&&(j[O]=u[O]);return j}var L=function(i){var j=i.svgRef,I=i.title,O=$(i,["svgRef","title"]);return r.createElement("svg",B({width:"16px",height:"16px",viewBox:"0 0 16 16",ref:j},O),I?r.createElement("title",null,I):null,d||(d=r.createElement("g",{id:"\\u5207\\u56FE",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",opacity:.600000024},r.createElement("g",{id:"\\u5207\\u56FE\\u6C47\\u603B",transform:"translate(-109.000000, -285.000000)",fillRule:"nonzero"},r.createElement("g",{id:"\\u7F16\\u7EC4",transform:"translate(109.000000, 277.000000)"},r.createElement("g",{id:"\\u529F\\u80FD\\u6A21\\u5757",transform:"translate(0.000000, 8.000000)"},r.createElement("rect",{id:"\\u77E9\\u5F62",fill:"#000000",opacity:0,x:0,y:0,width:16,height:16}),r.createElement("path",{d:"M12.6112851,9.81916443 L13.0157402,10.5334515 L8.38234178,13.1421683 C7.89411912,13.4170414 7.29753318,13.4184769 6.80799803,13.1459281 L2.13434959,10.5439105 L2.53535935,9.82770935 L7.20902146,12.4297269 C7.44819675,12.5628231 7.73933952,12.5621242 7.97787303,12.4278812 L12.6112715,9.81916443 L12.6112851,9.81916443 Z M12.6112851,7.35836365 L13.0157402,8.07263709 L8.38234178,10.6813539 C7.89411912,10.9562269 7.29753318,10.9576625 6.80799803,10.6851136 L2.13434959,8.08309607 L2.53535935,7.3668949 L7.20902146,9.96891248 C7.44819675,10.1020087 7.73933952,10.1013097 7.97787303,9.96706677 L12.6112715,7.35836365 L12.6112851,7.35836365 Z M8.16614842,2.15222302 L12.8566953,4.77257459 C13.1449668,4.9336156 13.2477246,5.29716443 13.0862324,5.58460193 C13.0322773,5.68058461 12.9528457,5.75978905 12.856709,5.81346912 L8.16616209,8.43382068 C7.80269596,8.63678471 7.35998563,8.63678471 6.99651951,8.43382068 L2.30597263,5.81346912 C2.01770115,5.65244177 1.91494334,5.28887927 2.07643553,5.00145544 C2.13039063,4.90547276 2.20982219,4.82626832 2.30595896,4.77258826 L6.99650584,2.15222302 C7.35997196,1.94925899 7.80268229,1.94925899 8.16614842,2.15222302 L8.16614842,2.15222302 Z",id:"\\u5F62\\u72B6",fill:"#1890FF"})))))))},K=r.forwardRef(function(u,i){return r.createElement(L,B({svgRef:i},u))}),V=e.p+"static/func_module.53163ed0.svg",Y=e(85893),w,N,Z,re=F.ZP.div(w||(w=(0,o.Z)([` - width: 16px; - height: 16px; -`]))),m=function(){return(0,Y.jsx)(re,{children:(0,Y.jsx)(K,{})})},v=` - color: #1890FF; - background: #E6F7FF; - span { - color: #1890FF; - } -`,c=F.ZP.div(N||(N=(0,o.Z)([` - width: 100%; - /* padding-left: 32px; */ -`]))),y=F.ZP.div(Z||(Z=(0,o.Z)([` - width: 100%; - height: 32px; - display: flex; - padding-left: 12px; - align-items: center; - cursor: pointer; - `,` - `,` - - .modal_opt_dropdown { - visibility: hidden; - } - - &:hover { - .modal_opt_dropdown { - visibility: visible; - } - } -`])),function(u){var i=u.is_active;return i?v:null},function(u){var i=u.is_child;return i?"padding-left: 32px;":""})},22636:function(se,k,e){"use strict";e.d(k,{bc:function(){return B},o6:function(){return $},Et:function(){return Q},S6:function(){return L},PM:function(){return K},oR:function(){return V},$4:function(){return Y},l6:function(){return w},Ne:function(){return N},mM:function(){return re},Ao:function(){return m},wZ:function(){return v},FE:function(){return y},QW:function(){return u},v2:function(){return i},Jl:function(){return O},Bq:function(){return b}});var o=e(3182),F=e(94043),r=e.n(F),d=e(21010),B=function(){var f=(0,o.Z)(r().mark(function a(n){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,d.WY)("/api/case/create/",{method:"post",data:n}));case 1:case"end":return t.stop()}},a)}));return function(n){return f.apply(this,arguments)}}(),$=function(){var f=(0,o.Z)(r().mark(function a(n){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,d.WY)("/api/case/search/",{method:"get",params:n}));case 1:case"end":return t.stop()}},a)}));return function(n){return f.apply(this,arguments)}}(),Q=function(){var f=(0,o.Z)(r().mark(function a(n){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,d.WY)("/api/case/module/tree/".concat(n)));case 1:case"end":return t.stop()}},a)}));return function(n){return f.apply(this,arguments)}}(),L=function(){var f=(0,o.Z)(r().mark(function a(n,h){return r().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,d.WY)("/api/case/rename/".concat(n),{method:"post",data:h}));case 1:case"end":return s.stop()}},a)}));return function(n,h){return f.apply(this,arguments)}}(),K=function(){var f=(0,o.Z)(r().mark(function a(n){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,d.WY)("/api/case/",{method:"delete",params:n}));case 1:case"end":return t.stop()}},a)}));return function(n){return f.apply(this,arguments)}}(),V=function(){var f=(0,o.Z)(r().mark(function a(n){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,d.WY)("/api/case/move",{method:"post",data:n}));case 1:case"end":return t.stop()}},a)}));return function(n){return f.apply(this,arguments)}}(),Y=function(){var f=(0,o.Z)(r().mark(function a(n,h){return r().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,d.WY)("/api/case/edit/".concat(n),{method:"post",data:h}));case 1:case"end":return s.stop()}},a)}));return function(n,h){return f.apply(this,arguments)}}(),w=function(){var f=(0,o.Z)(r().mark(function a(n){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,d.WY)("/api/case/module/create",{method:"post",data:n}));case 1:case"end":return t.stop()}},a)}));return function(n){return f.apply(this,arguments)}}(),N=function(){var f=(0,o.Z)(r().mark(function a(n,h){return r().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,d.WY)("/api/case/module/".concat(n),{params:h}));case 1:case"end":return s.stop()}},a)}));return function(n,h){return f.apply(this,arguments)}}(),Z=null,re=function(){var f=(0,o.Z)(r().mark(function a(n,h){return r().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,d.WY)("/api/case/module/rename/".concat(n),{method:"post",data:h}));case 1:case"end":return s.stop()}},a)}));return function(n,h){return f.apply(this,arguments)}}(),m=function(){var f=(0,o.Z)(r().mark(function a(n,h){return r().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,d.WY)("/api/case/module/move/".concat(n),{method:"post",data:h}));case 1:case"end":return s.stop()}},a)}));return function(n,h){return f.apply(this,arguments)}}(),v=function(){var f=(0,o.Z)(r().mark(function a(n){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,d.WY)("/api/case/module/".concat(n),{method:"delete"}));case 1:case"end":return t.stop()}},a)}));return function(n){return f.apply(this,arguments)}}(),c=null,y=function(){var f=(0,o.Z)(r().mark(function a(n){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,d.WY)("/api/case/",{params:n}));case 1:case"end":return t.stop()}},a)}));return function(n){return f.apply(this,arguments)}}(),u=function(){var f=(0,o.Z)(r().mark(function a(n){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,d.WY)("/api/tone/suites",{params:n}));case 1:case"end":return t.stop()}},a)}));return function(n){return f.apply(this,arguments)}}(),i=function(){var f=(0,o.Z)(r().mark(function a(n,h){return r().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,d.WY)("/api/tone/".concat(n,"/cases"),{params:h}));case 1:case"end":return s.stop()}},a)}));return function(n,h){return f.apply(this,arguments)}}(),j=null,I=null,O=function(){var f=(0,o.Z)(r().mark(function a(n){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,d.WY)("/api/case/export",{method:"get",params:{case:n},responseType:"blob"}));case 1:case"end":return t.stop()}},a)}));return function(n){return f.apply(this,arguments)}}(),b=function(){var f=(0,o.Z)(r().mark(function a(n){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,d.WY)("/api/case/edit",{method:"post",data:n}));case 1:case"end":return t.stop()}},a)}));return function(n){return f.apply(this,arguments)}}()},4971:function(se,k,e){"use strict";e.d(k,{B9:function(){return F},iM:function(){return r},FA:function(){return d},RL:function(){return B},fb:function(){return $},Yl:function(){return Q},bv:function(){return L},pD:function(){return V},NP:function(){return Y},xG:function(){return w},uY:function(){return N},OA:function(){return Z},we:function(){return re},$4:function(){return m}});var o=function(y){return new Map(y.map(function(u){var i=u.label,j=u.value;return[j,i]}))},F=[{label:"\u81EA\u52A8",value:"auto"},{label:"\u624B\u52A8",value:"manual"}],r=o(F),d=[{label:"Single",value:"single"},{label:"Cluster",value:"cluster"}],B=o(d),$=[{label:"\u53EF\u7528",value:!0},{label:"\u7981\u7528",value:!1}],Q=o($),L=[{label:"vm",value:"vm"},{label:"docker",value:"docker"},{label:"\u7269\u7406\u673A",value:"server"}],K=o(L),V=[{label:"\u529F\u80FD\u6D4B\u8BD5",value:"functional"},{label:"\u6027\u80FD\u6D4B\u8BD5",value:"performance"},{label:"\u4E1A\u52A1\u6D4B\u8BD5",value:"business"},{label:"\u5176\u4ED6\u6D4B\u8BD5",value:"others"}],Y=o(V),w=[{label:"\u865A\u62DF\u673A",value:"vm"},{label:"docker",value:"docker"},{label:"\u7269\u7406\u673A",value:"physics"},{label:"\u4E0D\u9650\u5236",value:"unlimit"}],N=o(w),Z=[{label:"x86_64",value:"x86"},{label:"arch64",value:"arch64"},{label:"riscv",value:"risc-v"},{label:"loongarch",value:"loongarch"},{label:"noarch(\u4E0D\u9650\u5236)",value:"noarch"}],re=o(Z),m=[0,1,2,3],v=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5;return new Map([[0,"#96043E"],[1,"#F5222D"],[2,"#FAAD14"],[3,"#0088FF"],[4,"#7DC0FB"],[5,"#000000"]]).get(y)}},32434:function(se,k,e){"use strict";e.d(k,{Z:function(){return ae}});var o=e(71194),F=e(48889),r=e(89032),d=e(15746),B=e(13254),$=e(14277),Q=e(13062),L=e(71230),K=e(22385),V=e(89456),Y=e(402),w=e(39602),N=e(47673),Z=e(32787),re=e(49111),m=e(19650),v=e(57663),c=e(71577),y=e(34792),u=e(55026),i=e(43358),j=e(42239),I=e(93224),O=e(11849),b=e(3182),f=e(9715),a=e(71257),n=e(2824),h=e(20310),t=e(94043),s=e.n(t),P=e(67294),Le=e(19630),_e=e(21010),ge=e(28548),Ge=e(77881),ve=e(1870),Te=function(){var U=(0,b.Z)(s().mark(function D(S){return s().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",(0,_e.WY)("/api/device",{params:S}));case 1:case"end":return G.stop()}},D)}));return function(S){return U.apply(this,arguments)}}(),Pe=null,Be=null,we=null,$e=null,Ze=null,ye=null,Ce=null,Re=e(58804),Fe=e(36820),Ve=e(4971),We=e(99913),de=e(83399),l=e(85893),Je=function(D){var S=D.dataSource,X=S===void 0?[]:S,G=D.onChange,ue=[{title:"\u7528\u4F8B\u540D\u79F0",dataIndex:"name",render:function(ie){return(0,l.jsx)(We.Z,{children:ie})}},{title:"\u8FD0\u884C\u65B9\u5F0F",dataIndex:"run_method",width:90,render:function(ie){return Ve.iM.get(ie)||"-"}},{title:"\u64CD\u4F5C",width:80,render:function(ie,H,xe){return(0,l.jsx)(w.Z.Link,{onClick:function(){return G(function(Ee){return Ee.filter(function(oe,ce){return ce!==xe})})},children:"\u5220\u9664"})}}];return(0,l.jsx)(de.k,{columns:ue,rowKey:"id",size:"small",dataSource:X,pagination:!1})},Ae=Je,tt=e(20228),be=e(11382),Qe=e(23279),ke=e.n(Qe);function Ne(U){var D=U.fetchOptions,S=U.debounceTimeout,X=S===void 0?800:S,G=(0,I.Z)(U,["fetchOptions","debounceTimeout"]),ue=P.useState(!1),z=(0,n.Z)(ue,2),ie=z[0],H=z[1],xe=P.useState([]),le=(0,n.Z)(xe,2),Ee=le[0],oe=le[1],ce=P.useRef(0),je=function(){var _=(0,b.Z)(s().mark(function M(){var ee;return s().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,D();case 2:ee=J.sent,oe(ee);case 4:case"end":return J.stop()}},M)}));return function(){return _.apply(this,arguments)}}();P.useEffect(function(){je()},[]);var C=P.useMemo(function(){var _=function(ee){ce.current+=1;var A=ce.current;oe([]),H(!0),D(ee).then(function(J){A===ce.current&&(oe(J),H(!1))})};return ke()(_,X)},[D,X]);return(0,l.jsx)(j.Z,(0,O.Z)((0,O.Z)({filterOption:!1,onSearch:C,notFoundContent:ie?(0,l.jsx)(be.Z,{size:"small"}):null},G),{},{options:Ee}))}var me,ze=Re.ZP.div(me||(me=(0,h.Z)([` - border: 1px solid rgba(0,0,0,0.15) ; - height: 128px; - display: flex; - justify-content: center; - align-items: center; -`]))),Ie=function(D,S){var X=D.onOk,G=(0,Le.UO)(),ue=G.plan_id,z=a.Z.useForm(),ie=(0,n.Z)(z,1),H=ie[0],xe=P.useState(!1),le=(0,n.Z)(xe,2),Ee=le[0],oe=le[1],ce=P.useState(!1),je=(0,n.Z)(ce,2),C=je[0],_=je[1],M=P.useState(void 0),ee=(0,n.Z)(M,2),A=ee[0],J=ee[1],He=P.useState(null),rt=(0,n.Z)(He,2),ne=rt[0],Ue=rt[1],ft=P.useState(null),nt=(0,n.Z)(ft,2),he=nt[0],vt=nt[1],mt=P.useState([]),at=(0,n.Z)(mt,2),pe=at[0],Ke=at[1],ut=(0,_e.QT)(function(){return(0,_e.WY)("/api/case/search/")},{initialData:[],manual:!0}),st=ut.data,ht=ut.run,it=(0,_e.QT)(function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Te(x)},{initialData:[],manual:!0}),lt=it.data,_t=it.run,gt=function(){var x=(0,b.Z)(s().mark(function p(T){var R,W;return s().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,(0,_e.WY)("/api/plan",{params:{content:T,status:"init"}});case 2:if(R=g.sent,W=R.data,Object.prototype.toString.call(W)!=="[object Array]"){g.next=6;break}return g.abrupt("return",W.map(function(te){return{label:te.title,value:te.id}}));case 6:return g.abrupt("return",[]);case 7:case"end":return g.stop()}},p)}));return function(T){return x.apply(this,arguments)}}(),yt=P.useState([]),ot=(0,n.Z)(yt,2),bt=ot[0],xt=ot[1],Et=function(){var x=(0,b.Z)(s().mark(function p(T){var R,W;return s().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,(0,ge.Ed)(T);case 2:if(R=g.sent,W=R.data,Object.prototype.toString.call(W)!=="[object Array]"){g.next=6;break}return g.abrupt("return",W.map(function(te){return{label:te.name,value:te.id}}));case 6:return g.abrupt("return",[]);case 7:case"end":return g.stop()}},p)}));return function(T){return x.apply(this,arguments)}}();P.useEffect(function(){pe.length===0&&Ue(function(x){return(0,O.Z)((0,O.Z)({},x),{},{run_method:void 0})})},[pe]);var Zt=function(){var x=(0,b.Z)(s().mark(function p(){var T;return s().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Et();case 2:T=W.sent,xt(T);case 4:case"end":return W.stop()}},p)}));return function(){return x.apply(this,arguments)}}();P.useEffect(function(){Zt()},[]);var Ct=function(){var x=(0,b.Z)(s().mark(function p(){var T,R;return s().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(he){E.next=2;break}return E.abrupt("return",[]);case 2:return E.next=4,(0,ge.ku)(he);case 4:if(T=E.sent,R=T.data,Object.prototype.toString.call(R)!=="[object Array]"){E.next=8;break}return E.abrupt("return",R.map(function(g){return{label:g.name,value:g.name}}));case 8:return E.abrupt("return",[]);case 9:case"end":return E.stop()}},p)}));return function(){return x.apply(this,arguments)}}(),jt=function(){var x=(0,b.Z)(s().mark(function p(){var T,R;return s().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(!(!he||!ne.test_type)){E.next=2;break}return E.abrupt("return",[]);case 2:return E.next=4,(0,ge.Vp)(he,ne.test_type);case 4:if(T=E.sent,R=T.data,Object.prototype.toString.call(R)!=="[object Array]"){E.next=8;break}return E.abrupt("return",R.map(function(g){return{label:g.name,value:g.name}}));case 8:return E.abrupt("return",[]);case 9:case"end":return E.stop()}},p)}));return function(){return x.apply(this,arguments)}}(),ct=function(p){var T=p.fetcher,R=(0,I.Z)(p,["fetcher"]),W=P.useState([]),E=(0,n.Z)(W,2),g=E[0],te=E[1],Oe=function(){var De=(0,b.Z)(s().mark(function Se(){var Me;return s().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,T();case 2:Me=fe.sent,te(Me);case 4:case"end":return fe.stop()}},Se)}));return function(){return De.apply(this,arguments)}}();return P.useEffect(function(){Oe()},[]),(0,l.jsx)(j.Z,(0,O.Z)((0,O.Z)({},R),{},{options:g}))},Ot=P.useMemo(function(){var x={name:"project",label:"Project\u540D\u79F0",rules:[{required:!0,message:"Project\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}],children:he?(0,l.jsx)(ct,{fetcher:Ct,placeholder:"\u8BF7\u9009\u62E9Project\u540D\u79F0"}):(0,l.jsx)(j.Z,{disabled:!0,placeholder:"\u8BF7\u9009\u62E9Job\u7C7B\u578B"})};return(0,l.jsx)(a.Z.Item,(0,O.Z)({},x))},[he]),Dt=P.useMemo(function(){var x={name:"job_type",label:"Job\u7C7B\u578B",rules:[{required:!0,message:"Job\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A"}],children:he&&ne!==null&&ne!==void 0&&ne.test_type?(0,l.jsx)(ct,{fetcher:jt,placeholder:"\u8BF7\u9009\u62E9Job\u7C7B\u578B"}):(0,l.jsx)(j.Z,{disabled:!0,placeholder:"\u8BF7\u9009\u62E9Job\u7C7B\u578B"})};return(0,l.jsx)(a.Z.Item,(0,O.Z)({},x))},[he,ne]),Mt=function(p,T){Ue(T),Ke(p)};P.useImperativeHandle(S,function(){return{show:function(p){if(oe(!0),ht(),_t(),p&&JSON.stringify(p)!=="{}"){~location.pathname.indexOf("/plan/")||J(p);var T=p.cases,R=p.plan_id;if(T){var W=T==null?void 0:T.split(",").map(function(te){return+te}),E=W.reduce(function(te,Oe){return te.concat(st.filter(function(De){return De.id===Oe}))},[]);Ke(E)}var g=(0,O.Z)((0,O.Z)({},p),{},{plan_id:R===-1?void 0:R});Ue(g),H.setFieldsValue(g)}else Object.prototype.toString.call(ue)==="[object String]"&&H.setFieldsValue({plan_id:+ue})}}});var Xe=function(){_(!1),J(void 0),Ue(null),Ke([]),oe(!1),H.resetFields()},qe=P.useRef(null),Tt=function(){var x=(0,b.Z)(s().mark(function p(){return s().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(!C){R.next=2;break}return R.abrupt("return");case 2:if(_(!0),pe.length){R.next=7;break}return _(!1),u.default.warning("\u7528\u4F8B\u4E0D\u80FD\u4E3A\u7A7A!"),R.abrupt("return");case 7:H.validateFields().then(function(){var W=(0,b.Z)(s().mark(function E(g){var te,Oe,De,Se,Me,Ye,fe,dt,pt;return s().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(Oe=g.device_id,De=g.workspace,Se=lt.filter(function(et){return et.id===Oe}),Me=(te=Se[0])===null||te===void 0?void 0:te.ip,Me){q.next=7;break}return _(!1),H.setFields([{name:"device_id",errors:["\u6D4B\u8BD5\u8BBE\u5907\u4E0D\u5B58\u5728\u6216\u5DF2\u5220\u9664\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\uFF01"],value:void 0}]),q.abrupt("return");case 7:if(Ye=(0,O.Z)((0,O.Z)({},g),{},{device_ip:Me,run_method:ne.run_method,test_type:ne.test_type,cases:pe.map(function(et){return et.id}),workspace:De.label}),A){q.next=14;break}return q.next=11,(0,ge.vr)(Ye);case 11:q.t0=q.sent,q.next=17;break;case 14:return q.next=16,(0,ge.xJ)(A.id,Ye);case 16:q.t0=q.sent;case 17:if(fe=q.t0,dt=fe.code,pt=fe.msg,_(!1),dt===200){q.next=24;break}return u.default.error(pt),q.abrupt("return");case 24:X(),Xe();case 26:case"end":return q.stop()}},E)}));return function(E){return W.apply(this,arguments)}}()).catch(function(W){console.log(W),_(!1)});case 8:case"end":return R.stop()}},p)}));return function(){return x.apply(this,arguments)}}(),wt=P.useMemo(function(){return Object.prototype.toString.call(ue)==="[object String]"||(A==null?void 0:A.plan_id)},[ue,A]);return(0,l.jsxs)(F.Z,{visible:Ee,title:A?"\u7F16\u8F91\u4EFB\u52A1":"\u65B0\u5EFA\u4EFB\u52A1",width:"70%",centered:!0,footer:(0,l.jsxs)(m.Z,{align:"end",children:[(0,l.jsx)(c.Z,{onClick:Xe,children:"\u53D6\u6D88"}),(0,l.jsx)(c.Z,{disabled:C,onClick:Tt,type:"primary",children:"\u786E\u5B9A"})]}),bodyStyle:{padding:"0 24px"},onCancel:Xe,destroyOnClose:!0,children:[(0,l.jsx)(Ge.yV,{form:H,layout:"vertical",initialValues:{run_method:"auto"},children:(0,l.jsxs)(L.Z,{gutter:20,children:[(0,l.jsxs)(d.Z,{span:14,style:{borderRight:"1px solid #e5e5e5",paddingTop:8},children:[(0,l.jsx)(a.Z.Item,{name:"name",label:"\u4EFB\u52A1\u540D\u79F0",rules:[{required:!0}],children:(0,l.jsx)(Z.Z,{placeholder:"\u8BF7\u8F93\u5165\u6D4B\u8BD5\u4EFB\u52A1\u540D\u79F0",autoComplete:"off",spellCheck:!1})}),(0,l.jsxs)(m.Z,{direction:"vertical",style:{width:"100%"},children:[(0,l.jsxs)(L.Z,{justify:"space-between",style:{width:"100%"},children:[(0,l.jsxs)(m.Z,{children:[(0,l.jsx)(w.Z.Text,{children:"\u6D4B\u8BD5\u7528\u4F8B"}),(0,l.jsx)(V.Z,{title:"\u53EA\u80FD\u9009\u62E9\u540C\u4E00\u79CD\u8FD0\u884C\u65B9\u5F0F\u7684\u7528\u4F8B \u81EA\u52A8\u7528\u4F8B\u9700\u914D\u7F6ET-One\u4FE1\u606F",children:(0,l.jsx)(ve.Z,{})})]}),!!pe.length&&(0,l.jsx)(c.Z,{type:"primary",onClick:function(){var p;return(p=qe.current)===null||p===void 0?void 0:p.show(pe,ne)},children:"\u9009\u62E9\u7528\u4F8B"})]}),pe.length?(0,l.jsx)(Ae,{dataSource:pe,onChange:Ke}):(0,l.jsx)(ze,{children:(0,l.jsxs)(m.Z,{direction:"vertical",align:"center",children:[$.Z.PRESENTED_IMAGE_SIMPLE,(0,l.jsx)(c.Z,{type:"primary",onClick:function(){var p;return(p=qe.current)===null||p===void 0?void 0:p.show(pe,ne)},children:"\u9009\u62E9\u7528\u4F8B"})]})})]})]}),(0,l.jsxs)(d.Z,{span:10,style:{paddingTop:8},children:[(0,l.jsx)(a.Z.Item,{name:"plan_id",label:"\u6D4B\u8BD5\u65B9\u6848",children:(0,l.jsx)(Ne,{disabled:wt,allowClear:!0,fetchOptions:gt,showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u6D4B\u8BD5\u65B9\u6848"})}),(0,l.jsx)(a.Z.Item,{name:"workspace",label:"Workspace",rules:[{required:!0,message:"Workspace\u4E0D\u80FD\u4E3A\u7A7A"}],children:(0,l.jsx)(j.Z,{options:bt,showSearch:!0,onChange:function(p){return vt(p.value)},placeholder:"\u8BF7\u9009\u62E9Workspace",labelInValue:!0,filterOption:function(p,T){return T.label.toLowerCase().indexOf(p.toLowerCase())>=0}})}),(0,l.jsx)(a.Z.Item,{name:"device_id",label:"\u6D4B\u8BD5\u8BBE\u5907",rules:[{required:!0}],children:(0,l.jsx)(j.Z,{options:lt.map(function(x){return{label:x.name,value:x.id}}),showSearch:!0,filterOption:function(p,T){return T.label.toLowerCase().indexOf(p.toLowerCase())>=0},placeholder:"\u8BF7\u9009\u62E9\u6D4B\u8BD5\u8BBE\u5907"})}),Ot,Dt,(0,l.jsx)(a.Z.Item,{name:"config",label:"\u6D4B\u8BD5\u914D\u7F6E",rules:[{required:(ne==null?void 0:ne.run_method)==="manual"}],children:(0,l.jsx)(Z.Z.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u6D4B\u8BD5\u914D\u7F6E",autoComplete:"off",rows:3})}),(0,l.jsx)(a.Z.Item,{name:"desc",label:"\u5907\u6CE8",rules:[{}],children:(0,l.jsx)(Z.Z.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",autoComplete:"off",rows:3})})]})]})}),(0,l.jsx)(Fe.Z,{ref:qe,onOk:Mt,dataSource:st||[]})]})},ae=P.forwardRef(Ie)},28548:function(se,k,e){"use strict";e.d(k,{xd:function(){return B},vr:function(){return $},_5:function(){return Q},xJ:function(){return L},oT:function(){return K},f6:function(){return w},Vp:function(){return N},ku:function(){return Z},Ed:function(){return re}});var o=e(3182),F=e(94043),r=e.n(F),d=e(21010),B=function(){var m=(0,o.Z)(r().mark(function v(c){return r().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,d.WY)("/api/task",{params:c}));case 1:case"end":return u.stop()}},v)}));return function(c){return m.apply(this,arguments)}}(),$=function(){var m=(0,o.Z)(r().mark(function v(c){return r().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,d.WY)("/api/task/create",{data:c,method:"post"}));case 1:case"end":return u.stop()}},v)}));return function(c){return m.apply(this,arguments)}}(),Q=function(){var m=(0,o.Z)(r().mark(function v(c){return r().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,d.WY)("/api/task/".concat(c),{method:"DELETE"}));case 1:case"end":return u.stop()}},v)}));return function(c){return m.apply(this,arguments)}}(),L=function(){var m=(0,o.Z)(r().mark(function v(c,y){return r().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,d.WY)("/api/task/update/".concat(c),{data:y,method:"post"}));case 1:case"end":return i.stop()}},v)}));return function(c,y){return m.apply(this,arguments)}}(),K=function(){var m=(0,o.Z)(r().mark(function v(c){return r().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,d.WY)("/api/task/".concat(c)));case 1:case"end":return u.stop()}},v)}));return function(c){return m.apply(this,arguments)}}(),V=null,Y=null,w=function(){var m=(0,o.Z)(r().mark(function v(c,y){return r().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,d.WY)("/api/task/".concat(c,"/add_result"),{method:"post",data:y}));case 1:case"end":return i.stop()}},v)}));return function(c,y){return m.apply(this,arguments)}}(),N=function(){var m=(0,o.Z)(r().mark(function v(c,y){return r().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,d.WY)("/api/tone/job_type_list/".concat(c,"/").concat(y)));case 1:case"end":return i.stop()}},v)}));return function(c,y){return m.apply(this,arguments)}}(),Z=function(){var m=(0,o.Z)(r().mark(function v(c){return r().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,d.WY)("/api/tone/project_list/".concat(c)));case 1:case"end":return u.stop()}},v)}));return function(c){return m.apply(this,arguments)}}(),re=function(){var m=(0,o.Z)(r().mark(function v(c){return r().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,d.WY)("/api/tone/ws_list",{params:{name:c}}));case 1:case"end":return u.stop()}},v)}));return function(c){return m.apply(this,arguments)}}()}}]); diff --git a/dist/asset-manifest.json b/dist/asset-manifest.json index d9c1b8ddcccd52c082ffa60b12fd27566bc0a2fa..caa1563493974c8c6171d64d768242d19d558da4 100644 --- a/dist/asset-manifest.json +++ b/dist/asset-manifest.json @@ -1,49 +1,49 @@ { "/umi.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/umi.0682ebba.css", - "/umi.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/umi.8819dcb2.js", + "/umi.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/umi.5a7fd950.js", "/umi.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/export-outlined.753db58f.svg", "/t__plugin-layout__Layout.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/t__plugin-layout__Layout.6634008d.chunk.css", - "/t__plugin-layout__Layout.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/t__plugin-layout__Layout.cdd32b03.async.js", + "/t__plugin-layout__Layout.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/t__plugin-layout__Layout.49602ab3.async.js", "/p__Outline.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Outline.6fe93a9b.async.js", "/p__Demand.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Demand.8e95f47f.chunk.css", "/p__Demand.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Demand.643e64d2.async.js", "/p__Plan.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Plan.44a4d39b.chunk.css", - "/p__Plan.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Plan.a77ec868.async.js", + "/p__Plan.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Plan.7e24247f.async.js", "/p__Plan__Report.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Plan__Report.7aa936e1.chunk.css", "/p__Plan__Report.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Plan__Report.571d7da7.async.js", "/p__Suite.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Suite.71409d8b.chunk.css", - "/p__Suite.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Suite.d500239f.async.js", + "/p__Suite.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Suite.f642fd18.async.js", "/p__Suite.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/priority.4bbf82d7.svg", "/p__Task.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Task.3266f142.chunk.css", - "/p__Task.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Task.87d68c2b.async.js", + "/p__Task.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Task.d628f000.async.js", "/p__Task__Detail.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Task__Detail.004e42ac.chunk.css", - "/p__Task__Detail.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Task__Detail.d1f55269.async.js", + "/p__Task__Detail.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Task__Detail.64286495.async.js", "/p__Task__Detail.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/right-green.2ae3ce23.svg", "/p__Sys.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Sys.9cd717aa.chunk.css", - "/p__Sys.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Sys.3fd226db.async.js", + "/p__Sys.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Sys.f81c9f3d.async.js", "/p__Sys__Users.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Sys__Users.a01c7008.chunk.css", - "/p__Sys__Users.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Sys__Users.93fb2ad5.async.js", + "/p__Sys__Users.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Sys__Users.3be0b2dd.async.js", "/p__Sys__Tags.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Sys__Tags.f35b02a7.chunk.css", "/p__Sys__Tags.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Sys__Tags.c6eef30f.async.js", "/p__Sys__Suite.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Sys__Suite.0cb01212.chunk.css", "/p__Sys__Suite.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Sys__Suite.587fffcf.async.js", "/p__Auth__Login.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Auth__Login.0cb01212.chunk.css", - "/p__Auth__Login.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Auth__Login.117827d2.async.js", + "/p__Auth__Login.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Auth__Login.49d31187.async.js", "/p__Auth__Login.png": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/bg0.f17d05b8.png", "/p__Auth__Login.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/bg.2757f25f.svg", "/p__Auth__Regist.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Auth__Regist.0cb01212.chunk.css", - "/p__Auth__Regist.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Auth__Regist.0e8ec6c3.async.js", + "/p__Auth__Regist.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__Auth__Regist.a6808f74.async.js", "/p__Auth__Regist.png": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/bg0.f17d05b8.png", "/p__Auth__Regist.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/bg.2757f25f.svg", "/p__FileViewer.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__FileViewer.ce842f17.async.js", "/p__404.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__404.b88066b1.chunk.css", "/p__404.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/p__404.30883625.async.js", "/242.d93f8bac.chunk.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/242.d93f8bac.chunk.css", - "/242.2a008d01.async.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/242.2a008d01.async.js", + "/242.0074073a.async.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/242.0074073a.async.js", "/static/priority.4bbf82d7.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/priority.4bbf82d7.svg", "/856.1c04d1b3.async.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/856.1c04d1b3.async.js", "/608.65a614ff.async.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/608.65a614ff.async.js", - "/vendors.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/vendors.6806c3df.async.js", + "/vendors.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/vendors.4e7497fa.async.js", "/602.06826c35.chunk.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/602.06826c35.chunk.css", "/565.3e06e994.chunk.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/565.3e06e994.chunk.css", "/506.1c0b0ff3.async.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/506.1c0b0ff3.async.js", @@ -51,28 +51,24 @@ "/static/confirm.d0070e07.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/confirm.d0070e07.svg", "/589.59db22bc.chunk.css": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/589.59db22bc.chunk.css", "/589.f3c430d8.async.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/589.f3c430d8.async.js", - "/475.37bb82ed.async.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/475.37bb82ed.async.js", + "/940.9a25c40f.async.js": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/940.9a25c40f.async.js", "/static/func_module.53163ed0.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/func_module.53163ed0.svg", - "/static/bg0.png": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/bg0.f17d05b8.png", + "/static/bg0.f17d05b8.png": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/bg0.f17d05b8.png", "/favicon.ico": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/favicon.ico", - "/static/bg.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/bg.2757f25f.svg", + "/static/bg.2757f25f.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/bg.2757f25f.svg", "/logo.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/logo.svg", - "/static/plan-n.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/plan-n.aa64c022.svg", - "/static/server-n.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/server-n.52f09409.svg", - "/static/demand-n.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/demand-n.6506c0db.svg", - "/static/case-n.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/case-n.1833a1d7.svg", - "/static/fail-red.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/fail-red.7720423e.svg", - "/static/outline-n.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/outline-n.e4bcc501.svg", - "/static/right-green.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/right-green.2ae3ce23.svg", + "/static/plan-n.aa64c022.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/plan-n.aa64c022.svg", + "/static/server-n.52f09409.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/server-n.52f09409.svg", + "/static/demand-n.6506c0db.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/demand-n.6506c0db.svg", + "/static/case-n.1833a1d7.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/case-n.1833a1d7.svg", + "/static/fail-red.7720423e.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/fail-red.7720423e.svg", + "/static/outline-n.e4bcc501.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/outline-n.e4bcc501.svg", + "/static/right-green.2ae3ce23.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/right-green.2ae3ce23.svg", "/favicon.png": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/favicon.png", - "/static/token_pass.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/token_pass.20bbcb76.svg", - "/static/export-outlined.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/export-outlined.753db58f.svg", - "/static/func_module.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/func_module.53163ed0.svg", - "/static/task-n.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/task-n.69112e7a.svg", - "/static/cancel.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/cancel.da935f91.svg", - "/static/priority.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/priority.4bbf82d7.svg", + "/static/token_pass.20bbcb76.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/token_pass.20bbcb76.svg", + "/static/export-outlined.753db58f.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/export-outlined.753db58f.svg", + "/static/task-n.69112e7a.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/task-n.69112e7a.svg", "/template.yaml": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/template.yaml", - "/static/confirm.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/static/confirm.d0070e07.svg", "/pro_icon.svg": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/pro_icon.svg", "/CNAME": "{OPENANOLIS_TEST_LIB_TOOLS_SERVER}/CNAME" } \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 98cfd99f7c8a12c0039ef70e1f5f1d78d061bf78..d754cfdc537d987cc8640004b197c169bffe530f 100644 --- a/dist/index.html +++ b/dist/index.html @@ -258,7 +258,7 @@ - - + + diff --git a/dist/p__Auth__Login.117827d2.async.js b/dist/p__Auth__Login.117827d2.async.js deleted file mode 100644 index b546bb8d130dfdba8ef2abf33cb79cd239c614b4..0000000000000000000000000000000000000000 --- a/dist/p__Auth__Login.117827d2.async.js +++ /dev/null @@ -1,55 +0,0 @@ -(self.webpackChunktest_lib_front=self.webpackChunktest_lib_front||[]).push([[406],{77881:function(P,r,_){"use strict";_.d(r,{Gi:function(){return m},yV:function(){return t}});var O=_(9715),i=_(71257),d=_(66456),l=_(4972),E=_(20310),o=_(58804),D,n,s,m=(0,o.ZP)(l.Z)(D||(D=(0,E.Z)([` - .ant-table-small .ant-table-thead > tr > th { - background-color: transparent; - } - .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before { - background-color: transparent; - } - .ant-table-expanded-row.ant-table-expanded-row-level-1 > td { - padding: 0!important; - } -`]))),t=(0,o.ZP)(i.Z)(n||(n=(0,E.Z)([` - .ant-form-item { - margin-bottom: 12px; - } -`]))),C=o.ZP.div(s||(s=(0,E.Z)([` - img { - width: 100%; - } -`])))},26819:function(P,r,_){"use strict";_.r(r);var O=_(49111),i=_(19650),d=_(57663),l=_(71577),E=_(47673),o=_(32787),D=_(13062),n=_(71230),s=_(402),m=_(39602),t=_(11849),C=_(34792),T=_(55026),U=_(3182),K=_(9715),a=_(71257),h=_(2824),M=_(94043),f=_.n(M),v=_(67294),c=_(64144),g=_(21010),L=_(73727),A=_(71177),I=_(64343),e=_(85893),W=function(){var p=(0,g.tT)("@@initialState"),R=p.setInitialState,x=p.initialState,Y=v.useState(!1),j=(0,h.Z)(Y,2),H=j[0],b=j[1],J=a.Z.useForm(),N=(0,h.Z)(J,1),Z=N[0],Q=function(){H||Z.validateFields().then(function(){var y=(0,U.Z)(f().mark(function F(X){var B,S,$,z,G;return f().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return b(!0),u.next=3,(0,A.x)(X);case 3:if(B=u.sent,S=B.data,$=B.msg,z=B.code,b(!1),z===200){u.next=8;break}return u.abrupt("return",T.default.error($));case 8:if(localStorage.setItem("auth_token",S),!(x&&x.fetchUserInfo)){u.next=14;break}return u.next=12,x.fetchUserInfo();case 12:G=u.sent,R(function(w){return(0,t.Z)((0,t.Z)({},w),{},{currentUser:G})}).then(function(){g.m8.push("/")});case 14:case"end":return u.stop()}},F)}));return function(F){return y.apply(this,arguments)}}()).catch(function(y){console.log(y),b(!1)})};return(0,e.jsx)(c.Z,{children:(0,e.jsxs)(n.Z,{style:{width:360,margin:"118px auto 0",flexDirection:"column"},children:[(0,e.jsx)(n.Z,{justify:"center",style:{marginBottom:16},children:(0,e.jsx)(m.Z.Title,{level:4,children:"\u767B\u5F55"})}),(0,e.jsxs)(I.O,{form:Z,children:[(0,e.jsx)(a.Z.Item,{name:"name",rules:[{required:!0,message:"\u7528\u6237\u540D/\u90AE\u7BB1\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A"}],children:(0,e.jsx)(o.Z,{placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D/\u90AE\u7BB1\u5730\u5740",allowClear:!0,prefix:(0,e.jsx)(m.Z.Text,{children:"\u7528\u6237\u540D"})})}),(0,e.jsx)(a.Z.Item,{name:"password",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801"}],children:(0,e.jsx)(o.Z.Password,{placeholder:"8-16\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199",prefix:(0,e.jsx)(m.Z.Text,{children:"\u5BC6\u7801"})})})]}),(0,e.jsx)(n.Z,{justify:"end",style:{width:"100%",marginBottom:16},children:(0,e.jsx)("span",{style:{cursor:"pointer"},children:"\u5FD8\u8BB0\u5BC6\u7801?"})}),(0,e.jsxs)(i.Z,{direction:"vertical",size:16,children:[(0,e.jsx)(l.Z,{type:"primary",style:{width:"100%"},onClick:Q,children:"\u767B\u5F55"}),(0,e.jsx)(n.Z,{justify:"center",children:(0,e.jsxs)(m.Z.Text,{children:["\u8FD8\u6CA1\u6709\u8D26\u53F7\uFF0C\u53BB",(0,e.jsx)(L.rU,{to:"/regist",children:"\u6CE8\u518C"})]})})]})]})})};r.default=W},64144:function(P,r,_){"use strict";var O=_(13062),i=_(71230),d=_(49111),l=_(19650),E=_(402),o=_(39602),D=_(2725),n=_(98453),s=_(20310),m=_(67294),t=_(58804),C=_(56846),T=_.n(C),U=_(80480),K=_.n(U),a=_(85893),h,M,f,v,c,g=t.ZP.div(h||(h=(0,s.Z)([` - width: 100%; - height: 100%; - padding: 6%; - position: relative; - background: url(`,`) no-repeat left center / 100% 100%; -`])),K()),L=t.ZP.div(M||(M=(0,s.Z)([` - width: `,`px; - height: 600px; - margin: 0 auto; - display: flex; - border-radius: 10px 0 0 10px; - overflow: hidden; -`])),472+708),A=t.ZP.div(f||(f=(0,s.Z)([` - width: 472px; - height: 100%; - background: url(`,`) no-repeat left center /100% 100%; - padding: 40px; -`])),T()),I=t.ZP.div(v||(v=(0,s.Z)([` - width: 708px; - height: 100%; - background-color: #fff; -`]))),e=(0,t.ZP)(n.C)(c||(c=(0,s.Z)([` - img { - width: 40px !important; - height: 40px!important; - margin: 13px auto 0; - } -`]))),W=function(p){var R=p.children;return(0,a.jsx)(g,{children:(0,a.jsxs)(L,{children:[(0,a.jsx)(A,{children:(0,a.jsxs)(i.Z,{justify:"space-between",style:{flexDirection:"column",height:"100%"},children:[(0,a.jsxs)(l.Z,{size:16,children:[(0,a.jsx)(e,{style:{background:"#fff"},src:_(68826),size:64}),(0,a.jsx)(o.Z.Title,{style:{margin:0,color:"#fff",fontWeight:"normal"},level:2,children:"TestLib"})]}),(0,a.jsx)(o.Z.Text,{style:{color:"rgba(255,255,255,.65)"},children:"\u6D4B\u8BD5\u7BA1\u7406\u7CFB\u7EDF"})]})}),(0,a.jsx)(I,{children:R})]})})};r.Z=W},71177:function(P,r,_){"use strict";_.d(r,{x:function(){return E},z:function(){return o}});var O=_(3182),i=_(94043),d=_.n(i),l=_(21010),E=function(){var D=(0,O.Z)(d().mark(function n(s){return d().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.WY)("/api/user/login",{method:"post",data:s}));case 1:case"end":return t.stop()}},n)}));return function(s){return D.apply(this,arguments)}}(),o=function(){var D=(0,O.Z)(d().mark(function n(s){return d().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.WY)("/api/user/register",{method:"post",data:s}));case 1:case"end":return t.stop()}},n)}));return function(s){return D.apply(this,arguments)}}()},64343:function(P,r,_){"use strict";_.d(r,{O:function(){return E}});var O=_(20310),i=_(77881),d=_(58804),l,E=(0,d.ZP)(i.yV)(l||(l=(0,O.Z)([` - .ant-input-prefix { - margin-right: 20px - } - - .ant-typography { - width: 56px; - } -`])))},56846:function(P,r,_){P.exports=_.p+"static/bg.2757f25f.svg"},80480:function(P,r,_){P.exports=_.p+"static/bg0.f17d05b8.png"}}]); diff --git a/dist/p__Auth__Regist.0e8ec6c3.async.js b/dist/p__Auth__Regist.0e8ec6c3.async.js deleted file mode 100644 index af5c80b3b9347879f9247963acad0aae9f45f756..0000000000000000000000000000000000000000 --- a/dist/p__Auth__Regist.0e8ec6c3.async.js +++ /dev/null @@ -1,55 +0,0 @@ -(self.webpackChunktest_lib_front=self.webpackChunktest_lib_front||[]).push([[501],{77881:function(P,r,e){"use strict";e.d(r,{Gi:function(){return O},yV:function(){return t}});var h=e(9715),i=e(71257),d=e(66456),a=e(4972),E=e(20310),l=e(58804),D,n,s,O=(0,l.ZP)(a.Z)(D||(D=(0,E.Z)([` - .ant-table-small .ant-table-thead > tr > th { - background-color: transparent; - } - .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before { - background-color: transparent; - } - .ant-table-expanded-row.ant-table-expanded-row-level-1 > td { - padding: 0!important; - } -`]))),t=(0,l.ZP)(i.Z)(n||(n=(0,E.Z)([` - .ant-form-item { - margin-bottom: 12px; - } -`]))),u=l.ZP.div(s||(s=(0,E.Z)([` - img { - width: 100%; - } -`])))},51901:function(P,r,e){"use strict";e.r(r);var h=e(49111),i=e(19650),d=e(57663),a=e(71577),E=e(63185),l=e(9676),D=e(47673),n=e(32787),s=e(13062),O=e(71230),t=e(402),u=e(39602),Z=e(34792),T=e(55026),A=e(3182),o=e(9715),m=e(71257),f=e(2824),B=e(94043),g=e.n(B),C=e(67294),x=e(64144),L=e(21010),U=e(73727),R=e(71177),I=e(64343),_=e(85893),b=function(){var j=m.Z.useForm(),G=(0,f.Z)(j,1),F=G[0],Y=C.useState(!1),$=(0,f.Z)(Y,2),N=$[0],W=$[1],H=function(){N||F.validateFields().then(function(){var v=(0,A.Z)(g().mark(function p(z){var c,S,V;return g().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return W(!0),M.next=3,(0,R.z)(z);case 3:if(c=M.sent,S=c.msg,V=c.code,W(!1),V===200){M.next=9;break}return M.abrupt("return",T.default.error(S));case 9:L.m8.push("/login");case 10:case"end":return M.stop()}},p)}));return function(p){return v.apply(this,arguments)}}()).catch(function(v){console.log(v),W(!1)})};return(0,_.jsx)(x.Z,{children:(0,_.jsxs)(O.Z,{style:{width:360,margin:"118px auto 0",flexDirection:"column"},children:[(0,_.jsx)(O.Z,{justify:"center",style:{marginBottom:16},children:(0,_.jsx)(u.Z.Title,{level:4,children:"\u6CE8\u518CTestLib\u8D26\u53F7"})}),(0,_.jsxs)(I.O,{form:F,children:[(0,_.jsx)(m.Z.Item,{name:"nick_name",rules:[{required:!0,message:"\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A"}],children:(0,_.jsx)(n.Z,{placeholder:"\u7528\u6237\u540D\u6635\u79F0",allowClear:!0,prefix:(0,_.jsx)(u.Z.Text,{children:"\u7528\u6237\u540D"})})}),(0,_.jsx)(m.Z.Item,{name:"email",rules:[{required:!0,message:"\u90AE\u7BB1\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A"},{pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"\u90AE\u7BB1\u5730\u5740\u8F93\u5165\u9519\u8BEF"}],children:(0,_.jsx)(n.Z,{placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740",allowClear:!0,prefix:(0,_.jsx)(u.Z.Text,{children:"\u90AE\u7BB1"})})}),(0,_.jsx)(m.Z.Item,{name:"password",hasFeedback:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801"}],children:(0,_.jsx)(n.Z.Password,{placeholder:"8-16\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199",prefix:(0,_.jsx)(u.Z.Text,{children:"\u5BC6\u7801"})})}),(0,_.jsx)(m.Z.Item,{name:"re_password",hasFeedback:!0,dependencies:["password"],validateTrigger:["onBlur"],rules:[{required:!0,message:"\u8BF7\u518D\u6B21\u8F93\u5165\u5BC6\u7801"},function(K){var v=K.getFieldValue;return{validator:function(z,c){return!c||v("password")===c?Promise.resolve():Promise.reject(new Error("\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u8F93\u5165\uFF01"))}}}],children:(0,_.jsx)(n.Z.Password,{placeholder:"\u518D\u6B21\u8F93\u5165\u5BC6\u7801",prefix:(0,_.jsx)(u.Z.Text,{children:"\u786E\u8BA4\u5BC6\u7801"})})}),(0,_.jsx)(m.Z.Item,{name:"agreement",valuePropName:"checked",rules:[{validator:function(v,p){return p?Promise.resolve():Promise.reject(new Error("\u8BF7\u5148\u9605\u8BFB\u534F\u8BAE\uFF01"))}}],children:(0,_.jsxs)(l.Z,{children:["\u6211\u5DF2\u9605\u8BFB\u5E76\u63A5\u53D7",(0,_.jsx)(u.Z.Link,{children:"\u300ATestlib\u9690\u79C1\u534F\u8BAE\u300B"})]})})]}),(0,_.jsxs)(i.Z,{direction:"vertical",size:16,children:[(0,_.jsx)(a.Z,{type:"primary",style:{width:"100%"},onClick:H,children:"\u6CE8\u518C"}),(0,_.jsx)(O.Z,{justify:"center",children:(0,_.jsxs)(u.Z.Text,{children:["\u5DF2\u6709\u8D26\u53F7\uFF0C\u53BB",(0,_.jsx)(U.rU,{to:"/login",children:"\u767B\u5F55"})]})})]})]})})};r.default=b},64144:function(P,r,e){"use strict";var h=e(13062),i=e(71230),d=e(49111),a=e(19650),E=e(402),l=e(39602),D=e(2725),n=e(98453),s=e(20310),O=e(67294),t=e(58804),u=e(56846),Z=e.n(u),T=e(80480),A=e.n(T),o=e(85893),m,f,B,g,C,x=t.ZP.div(m||(m=(0,s.Z)([` - width: 100%; - height: 100%; - padding: 6%; - position: relative; - background: url(`,`) no-repeat left center / 100% 100%; -`])),A()),L=t.ZP.div(f||(f=(0,s.Z)([` - width: `,`px; - height: 600px; - margin: 0 auto; - display: flex; - border-radius: 10px 0 0 10px; - overflow: hidden; -`])),472+708),U=t.ZP.div(B||(B=(0,s.Z)([` - width: 472px; - height: 100%; - background: url(`,`) no-repeat left center /100% 100%; - padding: 40px; -`])),Z()),R=t.ZP.div(g||(g=(0,s.Z)([` - width: 708px; - height: 100%; - background-color: #fff; -`]))),I=(0,t.ZP)(n.C)(C||(C=(0,s.Z)([` - img { - width: 40px !important; - height: 40px!important; - margin: 13px auto 0; - } -`]))),_=function(y){var j=y.children;return(0,o.jsx)(x,{children:(0,o.jsxs)(L,{children:[(0,o.jsx)(U,{children:(0,o.jsxs)(i.Z,{justify:"space-between",style:{flexDirection:"column",height:"100%"},children:[(0,o.jsxs)(a.Z,{size:16,children:[(0,o.jsx)(I,{style:{background:"#fff"},src:e(68826),size:64}),(0,o.jsx)(l.Z.Title,{style:{margin:0,color:"#fff",fontWeight:"normal"},level:2,children:"TestLib"})]}),(0,o.jsx)(l.Z.Text,{style:{color:"rgba(255,255,255,.65)"},children:"\u6D4B\u8BD5\u7BA1\u7406\u7CFB\u7EDF"})]})}),(0,o.jsx)(R,{children:j})]})})};r.Z=_},71177:function(P,r,e){"use strict";e.d(r,{x:function(){return E},z:function(){return l}});var h=e(3182),i=e(94043),d=e.n(i),a=e(21010),E=function(){var D=(0,h.Z)(d().mark(function n(s){return d().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,a.WY)("/api/user/login",{method:"post",data:s}));case 1:case"end":return t.stop()}},n)}));return function(s){return D.apply(this,arguments)}}(),l=function(){var D=(0,h.Z)(d().mark(function n(s){return d().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,a.WY)("/api/user/register",{method:"post",data:s}));case 1:case"end":return t.stop()}},n)}));return function(s){return D.apply(this,arguments)}}()},64343:function(P,r,e){"use strict";e.d(r,{O:function(){return E}});var h=e(20310),i=e(77881),d=e(58804),a,E=(0,d.ZP)(i.yV)(a||(a=(0,h.Z)([` - .ant-input-prefix { - margin-right: 20px - } - - .ant-typography { - width: 56px; - } -`])))},56846:function(P,r,e){P.exports=e.p+"static/bg.2757f25f.svg"},80480:function(P,r,e){P.exports=e.p+"static/bg0.f17d05b8.png"}}]); diff --git a/dist/p__Plan.a77ec868.async.js b/dist/p__Plan.a77ec868.async.js deleted file mode 100644 index 41824b7816b20d2fae76ec2bd8e5b210d493b6a0..0000000000000000000000000000000000000000 --- a/dist/p__Plan.a77ec868.async.js +++ /dev/null @@ -1,13 +0,0 @@ -(self.webpackChunktest_lib_front=self.webpackChunktest_lib_front||[]).push([[773],{59186:function(Q){Q.exports={"rich-editer":"rich-editer___JmweB"}},40841:function(Q,D,e){"use strict";e.d(D,{Z:function(){return u}});var c=e(34792),p=e(55026),i=e(11849),o=e(3182),$=e(94043),I=e.n($),B=e(67294),U=e(97877),X=e(57151),w=e.n(X),H={toolbarKeys:["undo","redo","clearStyle","|","headerSelect","fontFamily","fontSize",{iconSvg:'',key:"group-front-style",menuKeys:["lineHeight","numberedList","bulletedList","through","sup","sub"],title:"\u66F4\u591A"},"|","bold","underline","italic","color","bgColor","|",{iconSvg:'',key:"group-justify",menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"],title:"\u5BF9\u9F50"},{iconSvg:'',key:"group-indent",menuKeys:["indent","delIndent"],title:"\u7F29\u8FDB"},"|",{iconSvg:'',key:"group-image",menuKeys:["insertImage","uploadImage"],title:"\u56FE\u7247"},"insertTable",{iconSvg:'',key:"group-more-style",menuKeys:["insertLink","codeBlock","code","blockquote","divider","todo"],title:"\u66F4\u591A"}]},L=H,W=e(49945),le=e(42122),_=e(59186),S=e.n(_),R=e(85893);U.Boot.registerModule(w());var V=function(){var a=(0,o.Z)(I().mark(function n(l,t){var s,j,Z,M;return I().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return s=new FormData,s.append("image",l),E.next=4,(0,le.Tn)(s);case 4:j=E.sent,Z=j.code,M=j.data,Z===200&&t(M);case 8:case"end":return E.stop()}},n)}));return function(l,t){return a.apply(this,arguments)}}(),h=function(n){var l=n.defaultValue,t=l===void 0?[]:l,s=n.onEditorChange,j=n.config,Z=j===void 0?{}:j,M=B.useRef(null),G=B.useRef(null);B.useEffect(function(){console.log("effect");var Y=(0,U.createEditor)({selector:G.current,content:t||[],config:(0,i.Z)((0,i.Z)({},Z),{},{placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9",MENU_CONF:{uploadImage:{customUpload:V}},onCreated:function(O){var k=(0,U.createToolbar)({editor:O,selector:M.current,config:L});s==null||s(O)},onChange:function(O){s==null||s(O)},customAlert:function(O,k){p.default[k||"info"](O)}})});return function(){Y==null||Y.destroy()}},[t,Z,s]);var E=(0,W.Z)(M);return(0,R.jsxs)("div",{style:{width:"100%",height:"100%"},children:[(0,R.jsx)("div",{ref:M,className:S()["rich-editer"],style:{borderBottom:"1px solid rgb(240, 240, 240)"}}),(0,R.jsx)("div",{ref:G,style:{height:"calc(100% - ".concat((E==null?void 0:E.height)+4,"px)")}})]})},u=B.memo(h,function(a,n){var l,t;return((l=a.defaultValue)===null||l===void 0?void 0:l.toString())===((t=n.defaultValue)===null||t===void 0?void 0:t.toString())})},68894:function(Q,D,e){"use strict";var c=e(71194),p=e(48889),i=e(20228),o=e(11382),$=e(63185),I=e(9676),B=e(13062),U=e(71230),X=e(57663),w=e(71577),H=e(49111),L=e(19650),W=e(402),le=e(39602),_=e(3182),S=e(2824),R=e(94043),V=e.n(R),h=e(67294),u=e(19630),a=e(21010),n=e(28548),l=e(49101),t=e(32434),s=e(85893),j=function(M,G){var E=M.onOk,Y=(0,u.UO)(),ue=Y.plan_id,O=h.useState(null),k=(0,S.Z)(O,2),je=k[0],De=k[1],de=h.useState(!1),Re=(0,S.Z)(de,2),ce=Re[0],Ze=Re[1],N=h.useState(!1),K=(0,S.Z)(N,2),ve=K[0],fe=K[1],r=h.useState([]),he=(0,S.Z)(r,2),pe=he[0],q=he[1],me=h.useRef(null),ee=(0,a.QT)(function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{plan_id:ue,not_in_plan:1,is_paginate:!1};return(0,n.xd)(f)},{initialData:[],manual:!0}),ge=ee.data,Me=ee.loading,ye=ee.refresh,Ee=ee.run;h.useImperativeHandle(G,function(){return{show:function(d){if(Object.prototype.toString.call(d)==="[object Object]"){var F=d.plan_id;Ee({plan_id:F,not_in_plan:1,is_paginate:!1}),De(d)}else Ee();Object.prototype.toString.call(d)==="[object Array]"&&q(d),Ze(!0)}}});var ie=function(){Ze(!1),fe(!1),q([]),De(null)},Oe=function(){var f=(0,_.Z)(V().mark(function d(){return V().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!ve){m.next=2;break}return m.abrupt("return");case 2:fe(!0),E(ge.filter(function(x){return pe.includes(x.id)})),ie();case 5:case"end":return m.stop()}},d)}));return function(){return f.apply(this,arguments)}}();return(0,s.jsxs)(p.Z,{visible:ce,title:"\u9009\u62E9\u4EFB\u52A1",width:"30%",footer:(0,s.jsxs)(U.Z,{justify:"space-between",children:[(0,s.jsx)(w.Z,{onClick:function(){var d;return(d=me.current)===null||d===void 0?void 0:d.show(je)},children:(0,s.jsxs)(L.Z,{size:2,children:[(0,s.jsx)(le.Z.Link,{children:(0,s.jsx)(l.Z,{})}),"\u65B0\u5EFA\u4EFB\u52A1"]})}),(0,s.jsxs)(L.Z,{align:"end",children:[(0,s.jsx)(w.Z,{onClick:ie,children:"\u53D6\u6D88"}),(0,s.jsx)(w.Z,{disabled:ve,onClick:Oe,type:"primary",children:"\u786E\u5B9A"})]})]}),destroyOnClose:!0,onCancel:ie,children:[(0,s.jsx)(o.Z,{spinning:Me,children:(0,s.jsx)(L.Z,{direction:"vertical",style:{width:"100%",maxHeight:310,overflow:"auto"},children:(0,s.jsx)(I.Z.Group,{value:pe,onChange:q,children:(0,s.jsx)(L.Z,{direction:"vertical",children:ge.map(function(f){return(0,s.jsx)(I.Z,{value:f.id,children:f.name},f.id)})})})})}),(0,s.jsx)(t.Z,{ref:me,onOk:ye})]})};D.Z=h.forwardRef(j)},74805:function(Q,D,e){"use strict";e.d(D,{z:function(){return p},c:function(){return i}});var c=e(67294),p=c.createContext({state:{planList:[]},dispatch:function(){return null}}),i=function(){return c.useContext(p)}},63654:function(Q,D,e){"use strict";e.r(D),e.d(D,{default:function(){return Oe}});var c=e(13062),p=e(71230),i=e(11849),o=e(67294),$=e(23161),I=e(22385),B=e(89456),U=e(13254),X=e(14277),w=e(48736),H=e(27049),L=e(49111),W=e(19650),le=e(57663),_=e(71577),S=e(47673),R=e(32787),V=e(402),h=e(39602),u=e(3182),a=e(20310),n=e(94043),l=e.n(n),t=e(55044),s=e(21010),j=e(19630),Z=e(74805),M=e(58804),G=e(76570),E=e(71194),Y=e(48889),ue=e(57106),O=e(99683),k=e(43358),je=e(42239),De=e(89032),de=e(15746),Re=e(34792),ce=e(55026),Ze=e(9715),N=e(71257),K=e(2824),ve=e(40841),fe=e(68894),r=e(85893),he=function(d,F){var m=(0,Z.c)(),x=m.refresh,P=o.useState(!1),te=(0,K.Z)(P,2),ne=te[0],re=te[1],g=o.useState(!1),T=(0,K.Z)(g,2),b=T[0],xe=T[1],oe=o.useState(void 0),$e=(0,K.Z)(oe,2),A=$e[0],Be=$e[1],we=o.useState(!0),Ie=(0,K.Z)(we,2),Ue=Ie[0],We=Ie[1],Pe=o.useRef(null),Ke=o.useRef(null),He=N.Z.useForm(),Ve=(0,K.Z)(He,1),Te=Ve[0],Ge=(0,s.QT)(function(){return(0,s.WY)("/api/requirement")},{}),Fe=Ge.data;o.useImperativeHandle(F,function(){return{show:function(v){Be(v),re(!0),Te.setFieldsValue(v)}}});var Le=function(){re(!1),xe(!1),Be(void 0),We(!0),Te.resetFields(),Pe.current=null},Ye=function(){b||Te.validateFields().then(function(){var v=(0,u.Z)(l().mark(function z(Ce){var ae,se,Ae,y,_e,be,ze;return l().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return Ae=(0,i.Z)((0,i.Z)({},Ce),{},{content:(ae=Pe.current)!==null&&ae!==void 0&&ae.getText()?(se=Pe.current)===null||se===void 0?void 0:se.children:[],reviewers:"xxx",tasks:[]}),xe(!0),J.next=4,(0,$.Oe)(Ae);case 4:if(y=J.sent,_e=y.data,be=y.code,ze=y.msg,xe(!1),be===200){J.next=11;break}return J.abrupt("return",ce.default.error(ze));case 11:Be(_e),We(!1),x();case 14:case"end":return J.stop()}},z)}));return function(z){return v.apply(this,arguments)}}()).catch(function(v){console.log(v)})},Se=function(){var C=(0,u.Z)(l().mark(function v(z){var Ce,ae,se;return l().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!z){y.next=9;break}return Ce=z.map(function(_e){return _e.id}),y.next=4,(0,$.GJ)(A==null?void 0:A.id,{tasks:Ce});case 4:if(ae=y.sent,se=ae.code,se===200){y.next=8;break}return y.abrupt("return");case 8:ce.default.success("\u64CD\u4F5C\u6210\u529F\uFF01");case 9:s.m8.push("/plan/".concat(A==null?void 0:A.id)),Le();case 11:case"end":return y.stop()}},v)}));return function(z){return C.apply(this,arguments)}}();return(0,r.jsxs)(Y.Z,{visible:ne,title:"\u65B0\u5EFA\u65B9\u6848",width:"83%",bodyStyle:{height:564,paddingTop:0,paddingBottom:0},destroyOnClose:!0,footer:(0,r.jsxs)(W.Z,{align:"end",children:[(0,r.jsx)(_.Z,{onClick:Le,children:"\u53D6\u6D88"}),Ue?(0,r.jsx)(_.Z,{disabled:b,onClick:Ye,type:"primary",children:"\u65B0\u5EFA"}):(0,r.jsx)(_.Z,{type:"primary",onClick:function(){return Se()},children:"\u786E\u5B9A"})]}),centered:!0,onCancel:Le,children:[Ue?(0,r.jsx)(N.Z,{form:Te,layout:"vertical",children:(0,r.jsxs)(p.Z,{gutter:24,children:[(0,r.jsxs)(de.Z,{span:16,style:{borderRight:"1px solid #f0f0f0",paddingTop:20,paddingBottom:20},children:[(0,r.jsx)(N.Z.Item,{label:"",name:"title",rules:[{required:!0,message:"\u65B9\u6848\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}],children:(0,r.jsx)(R.Z,{placeholder:"\u8BF7\u8F93\u5165\u6D4B\u8BD5\u65B9\u6848\u540D\u79F0"})}),(0,r.jsx)(N.Z.Item,{noStyle:!0,children:(0,r.jsx)("div",{style:{height:470,border:"1px solid rgba(0,0,0,0.15)",borderRadius:2},children:(0,r.jsx)(ve.Z,{defaultValue:[],onEditorChange:function(v){return Pe.current=v}})})})]}),(0,r.jsx)(de.Z,{span:8,style:{paddingTop:20,paddingBottom:20},children:Fe&&(0,r.jsx)(N.Z.Item,{label:"\u6D4B\u8BD5\u9700\u6C42",name:"req_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6D4B\u8BD5\u9700\u6C42"}],children:(0,r.jsx)(je.Z,{options:Fe.map(function(C){return{label:C.title,value:C.id}}),showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u6D4B\u8BD5\u9700\u6C42",filterOption:function(v,z){return z.label.toLowerCase().indexOf(v.toLowerCase())>=0}})})})]})}):(0,r.jsx)(O.ZP,{status:"success",title:"\u65B9\u6848\u521B\u5EFA\u6210\u529F",subTitle:"\u70B9\u51FB\u201C\u6DFB\u52A0\u4EFB\u52A1\u201D\u4EE5\u5B8C\u5584\u65B9\u6848\uFF0C\u4E5F\u53EF\u540E\u7EED\u6DFB\u52A0",style:{marginTop:100},extra:[(0,r.jsx)(_.Z,{onClick:function(){return Se()},children:"\u67E5\u770B\u65B9\u6848"},"buy"),(0,r.jsx)(_.Z,{type:"primary",onClick:function(){var v;return(v=Ke.current)===null||v===void 0?void 0:v.show({plan_id:A==null?void 0:A.id})},children:"\u6DFB\u52A0\u4EFB\u52A1"},"console")]}),(0,r.jsx)(fe.Z,{ref:Ke,onOk:Se})]})},pe=o.forwardRef(he),q,me=` - // background-color: #E6F7FF; - color: rgba(24,144,255,1); - .ant-typography { - color: rgba(24,144,255,1); - } -`,ee=(0,M.ZP)(p.Z)(q||(q=(0,a.Z)([` - cursor: pointer; - height: 32px; - padding: 4px 12px; - /* border-bottom: 1px solid #D9D9D9; */ - `,` -`])),function(f){var d=f.is_active;return d?me:""}),ge=function(){var d=(0,s.md)(),F=(0,j.UO)(),m=F.plan_id,x=(0,Z.c)(),P=x.planList,te=x.run,ne=o.useRef(null),re=function(){var g=(0,u.Z)(l().mark(function T(b){return l().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:b.code==="Enter"&&te({content:b.target.value});case 1:case"end":return oe.stop()}},T)}));return function(b){return g.apply(this,arguments)}}();return(0,r.jsxs)("div",{style:{width:"100%",height:"100%"},children:[(0,r.jsxs)(p.Z,{justify:"space-between",align:"middle",style:{padding:"0 12px",height:48},children:[(0,r.jsx)(h.Z.Text,{strong:!0,children:"\u6D4B\u8BD5\u65B9\u6848 (".concat(P.length,")")}),(0,r.jsxs)(W.Z,{children:[(0,r.jsx)(R.Z,{size:"small",placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u5B57",autoComplete:"off",allowClear:!0,style:{width:170},onKeyUp:re,suffix:(0,r.jsx)(G.Z,{})}),d.canTester()&&(0,r.jsx)(_.Z,{size:"small",type:"primary",onClick:function(){var T;return(T=ne.current)===null||T===void 0?void 0:T.show()},children:"\u65B0\u5EFA\u65B9\u6848"})]})]}),(0,r.jsx)(H.Z,{style:{margin:0}}),(0,r.jsx)("div",{style:{height:"calc(100% - 48px)",overflowY:"auto"},children:P.length===0?(0,r.jsx)(X.Z,{image:X.Z.PRESENTED_IMAGE_SIMPLE,style:{marginTop:200}}):(0,r.jsx)(W.Z,{direction:"vertical",style:{width:"100%"},size:0,children:P.map(function(g){return(0,r.jsxs)(o.Fragment,{children:[(0,r.jsxs)(ee,{justify:"space-between",align:"middle",onClick:function(){return s.m8.push("/plan/".concat(g.id))},is_active:g.id===+m?1:0,children:[(0,r.jsx)("div",{style:{width:"calc(100% - 54px - 20px"},children:(0,r.jsx)(B.Z,{title:g.title,children:(0,r.jsx)(h.Z.Text,{ellipsis:!0,children:g.title})})}),(0,r.jsx)(t.iK,{status:g.status})]}),(0,r.jsx)(H.Z,{style:{margin:0}})]},g.id)})})}),(0,r.jsx)(pe,{ref:ne})]})},Me=ge,ye=e(64204),Ee=o.lazy(function(){return Promise.all([e.e(216),e.e(242)]).then(e.bind(e,43046))}),ie=function(d){var F=(0,j.UO)(),m=F.plan_id,x=(0,s.QT)($.kj,{initialData:[]}),P=x.data,te=x.loading,ne=x.run,re=x.refresh,g=x.mutate;return o.useEffect(function(){if(P.length>0)if(!m)s.m8.replace("/plan/".concat(P[0].id));else{var T=P.findIndex(function(b){return b.id===+m});T===-1&&s.m8.replace("/plan/".concat(P[0].id))}},[m,P]),(0,r.jsxs)(Z.z.Provider,{value:{planList:P,run:ne,refresh:re,mutate:g},children:[(0,r.jsxs)(p.Z,{style:{background:"#fff",height:innerHeight-48-24},children:[(0,r.jsx)("div",{style:{width:400,height:"100%",overflow:"hidden",borderRight:"1px solid #e5e5e5"},children:(0,r.jsx)(Me,{})}),(0,r.jsx)("div",{style:{width:"calc(100% - 400px)",height:"100%",overflow:"hidden"},children:(0,r.jsx)(o.Suspense,{fallback:(0,r.jsx)(ye.Z,{}),children:(0,r.jsx)(Ee,(0,i.Z)({},d))})})]}),te&&(0,r.jsx)(ye.Z,{})]})},Oe=ie},23161:function(Q,D,e){"use strict";e.d(D,{kj:function(){return $},Oe:function(){return I},cu:function(){return B},uw:function(){return U},W1:function(){return H},Nm:function(){return L},GJ:function(){return W},NH:function(){return S},L2:function(){return R},bF:function(){return V},GW:function(){return h}});var c=e(3182),p=e(94043),i=e.n(p),o=e(21010),$=function(){var u=(0,c.Z)(i().mark(function a(n){return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.WY)("/api/plan",{params:n}));case 1:case"end":return t.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),I=function(){var u=(0,c.Z)(i().mark(function a(n){return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.WY)("/api/plan/create",{data:n,method:"post"}));case 1:case"end":return t.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),B=function(){var u=(0,c.Z)(i().mark(function a(n){return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.WY)("/api/plan/".concat(n)));case 1:case"end":return t.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),U=function(){var u=(0,c.Z)(i().mark(function a(n,l){return i().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,o.WY)("/api/plan/edit/".concat(n),{data:l,method:"post"}));case 1:case"end":return s.stop()}},a)}));return function(n,l){return u.apply(this,arguments)}}(),X=null,w=null,H=function(){var u=(0,c.Z)(i().mark(function a(n){return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.WY)("/api/plan/".concat(n,"/tasks")));case 1:case"end":return t.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),L=function(){var u=(0,c.Z)(i().mark(function a(n){return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.WY)("/api/plan/copy/",{method:"post",data:n}));case 1:case"end":return t.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),W=function(){var u=(0,c.Z)(i().mark(function a(n,l){return i().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,o.WY)("/api/plan/".concat(n,"/tasks"),{method:"post",data:l}));case 1:case"end":return s.stop()}},a)}));return function(n,l){return u.apply(this,arguments)}}(),le=null,_=null,S=function(){var u=(0,c.Z)(i().mark(function a(n){return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.WY)("/api/plan/".concat(n),{method:"delete"}));case 1:case"end":return t.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),R=function(){var u=(0,c.Z)(i().mark(function a(n){return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.WY)("/api/plan/".concat(n,"/run"),{method:"post"}));case 1:case"end":return t.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),V=function(){var u=(0,c.Z)(i().mark(function a(n){return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.WY)("/api/plan/".concat(n,"/export")));case 1:case"end":return t.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),h=function(){var u=(0,c.Z)(i().mark(function a(n){return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.WY)("/api/plan/".concat(n,"/report"),{method:"post"}));case 1:case"end":return t.stop()}},a)}));return function(n){return u.apply(this,arguments)}}()}}]); diff --git a/dist/p__Suite.d500239f.async.js b/dist/p__Suite.d500239f.async.js deleted file mode 100644 index 91d5723e5353620c029462f4149aa6b61bf27507..0000000000000000000000000000000000000000 --- a/dist/p__Suite.d500239f.async.js +++ /dev/null @@ -1,284 +0,0 @@ -(self.webpackChunktest_lib_front=self.webpackChunktest_lib_front||[]).push([[964],{92977:function(Ct,mt,g){"use strict";g.d(mt,{Z:function(){return A}});var dt=g(28991),Me=g(67294),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},B=te,N=g(27029),Ue=function(Bt,ze){return Me.createElement(N.Z,(0,dt.Z)((0,dt.Z)({},Bt),{},{ref:ze,icon:B}))};Ue.displayName="MoreOutlined";var A=Me.forwardRef(Ue)},86591:function(){},33389:function(){},64204:function(Ct,mt,g){"use strict";var dt=g(11849),Me=g(20228),te=g(11382),B=g(13062),N=g(71230),Ue=g(20310),A=g(67294),a=g(58804),Bt=g(85893),ze,Ge=(0,a.ZP)(N.Z)(ze||(ze=(0,Ue.Z)([` - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 0; - background: #fff; - z-index: 100; - padding-top: 300px; -`]))),Le=function(Mt){return(0,Bt.jsx)(Ge,(0,dt.Z)((0,dt.Z)({justify:"center"},Mt),{},{children:(0,Bt.jsx)(te.Z,{})}))};mt.Z=Le},88880:function(Ct,mt,g){"use strict";var dt=g(22385),Me=g(89456),te=g(11849),B=g(2824),N=g(93224),Ue=g(67294),A=g(85893),a=function(ze){var Ge=ze.list,Le=ze.style,Nt=(0,N.Z)(ze,["list","style"]),Mt=Ue.useRef(null),un=Ue.useState(void 0),ke=(0,B.Z)(un,2),Zt=ke[0],yt=ke[1],sn=Ue.useCallback(function(Fe,X){return Fe.filter(function(Ne,Qe){return Qe<=X}).reduce(function(Ne,Qe){return Ne+=Qe.boundingClientRect.width},0)},[]),Ee=Ue.useCallback(function(Fe){var X=Fe.reduce(function(Ne,Qe,At){var Lt=Qe.rootBounds,cn=Lt==null?void 0:Lt.width;if(cn){var we=sn(Fe,At);if(cn-we>0&&At===Fe.length||we=Zt})),children:(0,A.jsxs)("span",{style:{color:"#8c92a4"},children:["+",Ge.length-Zt]})})]})})]}))};mt.Z=Ue.memo(a)},33923:function(Ct,mt,g){"use strict";g.d(mt,{Fk:function(){return Bt}});var dt=g(20310),Me=g(67294),te=g(58804),B=g(85893),N,Ue=function(){var Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5;return new Map([[0,"#96043E"],[1,"#F5222D"],[2,"#FAAD14"],[3,"#0088FF"],[4,"#7DC0FB"],[5,"#000000"]]).get(Ge)},A=null,a=te.ZP.div(N||(N=(0,dt.Z)([` - height: 16px; - width: 24px; - border-radius: 8px; - font-size: 10px; - color: #FFFFFF; - text-align: center; - line-height: 16px; - background-color: `,`; -`])),function(ze){var Ge=ze.color;return Ge!=null?Ge:Ue()}),Bt=function(Ge){var Le=Ge.priority;return(0,B.jsx)(a,{color:Ue(Le),children:"P".concat(Le)})}},87589:function(Ct,mt,g){"use strict";g.d(mt,{Z:function(){return we}});var dt=g(13062),Me=g(71230),te=g(89032),B=g(15746),N=g(49111),Ue=g(19650),A=g(402),a=g(39602),Bt=g(2725),ze=g(98453),Ge=g(20310),Le=g(67294),Nt=g(58804),Mt=g(68826),un=g.n(Mt),ke,Zt;function yt(){return yt=Object.assign||function(ht){for(var Ve=1;Ve=0)&&(!Object.prototype.propertyIsEnumerable.call(ht,ot)||(vt[ot]=ht[ot]))}return vt}function Ee(ht,Ve){if(ht==null)return{};var vt={},ot=Object.keys(ht),We,l;for(l=0;l=0)&&(vt[We]=ht[We]);return vt}var pe=function(Ve){var vt=Ve.svgRef,ot=Ve.title,We=sn(Ve,["svgRef","title"]);return Le.createElement("svg",yt({width:"32px",height:"32px",viewBox:"0 0 32 32",ref:vt},We),ot===void 0?ke||(ke=Le.createElement("title",null,"\u4F18\u5148\u7EA7")):ot?Le.createElement("title",null,ot):null,Zt||(Zt=Le.createElement("g",{id:"\\u5207\\u56FE",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Le.createElement("g",{id:"\\u5207\\u56FE\\u6C47\\u603B",transform:"translate(-293.000000, -282.000000)"},Le.createElement("g",{id:"\\u7F16\\u7EC4-2\\u5907\\u4EFD-2",transform:"translate(293.000000, 279.000000)"},Le.createElement("g",{id:"\\u4F18\\u5148\\u7EA7",transform:"translate(0.000000, 3.000000)"},Le.createElement("rect",{id:"\\u5934\\u50CF",fill:"#D8D8D8",opacity:.200000003,x:0,y:0,width:32,height:32,rx:16}),Le.createElement("g",{transform:"translate(8.000000, 8.000000)",fill:"#000000",fillRule:"nonzero"},Le.createElement("rect",{id:"\\u77E9\\u5F62",opacity:0,x:0,y:0,width:16,height:16}),Le.createElement("path",{d:"M12.3484375,6.015625 L9.2375,6.015625 L11.24375,1.7015625 C11.34375,1.4 11.04375,0.9984375 10.7421875,0.9984375 L6.7296875,0.9984375 C6.5296875,0.9984375 6.328125,1.0984375 6.228125,1.3 L3.2171875,9.3265625 C3.1171875,9.728125 3.4171875,10.028125 3.71875,10.028125 L7.23125,10.028125 L6.228125,14.54375 L6.228125,14.64375 C6.228125,14.84375 6.428125,15.0453125 6.6296875,15.0453125 C6.7296875,15.0453125 6.93125,14.9453125 6.93125,14.8453125 L12.75,6.8171875 C12.95,6.415625 12.75,6.015625 12.3484375,6.015625 Z",id:"\\u8DEF\\u5F84",opacity:.5}))))))))},ft=Le.forwardRef(function(ht,Ve){return Le.createElement(pe,yt({svgRef:Ve},ht))}),Fe=g.p+"static/priority.4bbf82d7.svg",X=g(85893),Ne,Qe,At=Nt.ZP.div(Ne||(Ne=(0,Ge.Z)([` - width: 32px; - height: 32px; - display: flex; - justify-content: center; - align-items: center; - border-radius: 50%; - overflow: hidden; -`]))),Lt=Nt.ZP.div(Qe||(Qe=(0,Ge.Z)([` - display: flex; - flex-direction: column; - .select_menu_cls { - .ant-select-selector { - padding: 0!important; - margin-right: 6px; - font-size: 14px; - height: 22px!important; - } - } -`]))),cn=function(Ve){var vt=Ve.left,ot=Ve.right;return(0,X.jsxs)(Me.Z,{children:[(0,X.jsx)(B.Z,{span:vt.span||12,children:(0,X.jsxs)(Ue.Z,{size:12,align:"center",children:[(0,X.jsx)(ze.C,{shape:"circle",src:vt.icon||un()}),(0,X.jsxs)(Lt,{children:[(0,X.jsx)(a.Z.Text,{style:{marginBottom:-4},children:vt.data||"-"}),(0,X.jsx)("div",{style:{fontSize:12,color:"rgba(0,0,0,0.45)"},children:vt.title})]})]})}),(0,X.jsx)(B.Z,{span:ot.span||12,children:(0,X.jsxs)(Ue.Z,{size:12,align:"center",children:[(0,X.jsx)(At,{children:(0,X.jsx)(ft,{})}),(0,X.jsxs)(Lt,{children:[(0,X.jsx)("div",{style:{marginBottom:-1},children:ot.data}),(0,X.jsx)("div",{style:{fontSize:12,color:"rgba(0,0,0,0.45)"},children:ot.title})]})]})})]})},we=cn},83399:function(Ct,mt,g){"use strict";g.d(mt,{k:function(){return N}});var dt=g(20310),Me=g(77881),te=g(58804),B,N=(0,te.ZP)(Me.Gi)(B||(B=(0,dt.Z)([` - table { - thead th { - font-size: 12px; - padding: 4.5px!important; - } - - tbody td { - padding: 4.5px!important; - } - } -`])))},34689:function(Ct,mt,g){"use strict";g.d(mt,{eO:function(){return ke},VF:function(){return sn},qU:function(){return yt}});var dt=g(20310),Me=g(58804),te=g(67294),B;function N(){return N=Object.assign||function(Ee){for(var pe=1;pe=0)&&(!Object.prototype.propertyIsEnumerable.call(Ee,Fe)||(ft[Fe]=Ee[Fe]))}return ft}function A(Ee,pe){if(Ee==null)return{};var ft={},Fe=Object.keys(Ee),X,Ne;for(Ne=0;Ne=0)&&(ft[X]=Ee[X]);return ft}var a=function(pe){var ft=pe.svgRef,Fe=pe.title,X=Ue(pe,["svgRef","title"]);return te.createElement("svg",N({width:"16px",height:"16px",viewBox:"0 0 16 16",ref:ft},X),Fe?te.createElement("title",null,Fe):null,B||(B=te.createElement("g",{id:"\\u5207\\u56FE",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",opacity:.600000024},te.createElement("g",{id:"\\u5207\\u56FE\\u6C47\\u603B",transform:"translate(-109.000000, -285.000000)",fillRule:"nonzero"},te.createElement("g",{id:"\\u7F16\\u7EC4",transform:"translate(109.000000, 277.000000)"},te.createElement("g",{id:"\\u529F\\u80FD\\u6A21\\u5757",transform:"translate(0.000000, 8.000000)"},te.createElement("rect",{id:"\\u77E9\\u5F62",fill:"#000000",opacity:0,x:0,y:0,width:16,height:16}),te.createElement("path",{d:"M12.6112851,9.81916443 L13.0157402,10.5334515 L8.38234178,13.1421683 C7.89411912,13.4170414 7.29753318,13.4184769 6.80799803,13.1459281 L2.13434959,10.5439105 L2.53535935,9.82770935 L7.20902146,12.4297269 C7.44819675,12.5628231 7.73933952,12.5621242 7.97787303,12.4278812 L12.6112715,9.81916443 L12.6112851,9.81916443 Z M12.6112851,7.35836365 L13.0157402,8.07263709 L8.38234178,10.6813539 C7.89411912,10.9562269 7.29753318,10.9576625 6.80799803,10.6851136 L2.13434959,8.08309607 L2.53535935,7.3668949 L7.20902146,9.96891248 C7.44819675,10.1020087 7.73933952,10.1013097 7.97787303,9.96706677 L12.6112715,7.35836365 L12.6112851,7.35836365 Z M8.16614842,2.15222302 L12.8566953,4.77257459 C13.1449668,4.9336156 13.2477246,5.29716443 13.0862324,5.58460193 C13.0322773,5.68058461 12.9528457,5.75978905 12.856709,5.81346912 L8.16616209,8.43382068 C7.80269596,8.63678471 7.35998563,8.63678471 6.99651951,8.43382068 L2.30597263,5.81346912 C2.01770115,5.65244177 1.91494334,5.28887927 2.07643553,5.00145544 C2.13039063,4.90547276 2.20982219,4.82626832 2.30595896,4.77258826 L6.99650584,2.15222302 C7.35997196,1.94925899 7.80268229,1.94925899 8.16614842,2.15222302 L8.16614842,2.15222302 Z",id:"\\u5F62\\u72B6",fill:"#1890FF"})))))))},Bt=te.forwardRef(function(Ee,pe){return te.createElement(a,N({svgRef:pe},Ee))}),ze=g.p+"static/func_module.53163ed0.svg",Ge=g(85893),Le,Nt,Mt,un=Me.ZP.div(Le||(Le=(0,dt.Z)([` - width: 16px; - height: 16px; -`]))),ke=function(){return(0,Ge.jsx)(un,{children:(0,Ge.jsx)(Bt,{})})},Zt=` - color: #1890FF; - background: #E6F7FF; - span { - color: #1890FF; - } -`,yt=Me.ZP.div(Nt||(Nt=(0,dt.Z)([` - width: 100%; - /* padding-left: 32px; */ -`]))),sn=Me.ZP.div(Mt||(Mt=(0,dt.Z)([` - width: 100%; - height: 32px; - display: flex; - padding-left: 12px; - align-items: center; - cursor: pointer; - `,` - `,` - - .modal_opt_dropdown { - visibility: hidden; - } - - &:hover { - .modal_opt_dropdown { - visibility: visible; - } - } -`])),function(Ee){var pe=Ee.is_active;return pe?Zt:null},function(Ee){var pe=Ee.is_child;return pe?"padding-left: 32px;":""})},57633:function(Ct,mt,g){"use strict";g.r(mt),g.d(mt,{default:function(){return bs}});var dt=g(34792),Me=g(55026),te=g(3182),B=g(11849),N=g(2824),Ue=g(94043),A=g.n(Ue),a=g(67294),Bt=g(13062),ze=g(71230),Ge=g(59250),Le=g(13013),Nt=g(22385),Mt=g(89456),un=g(402),ke=g(39602),Zt=g(32157),yt=g(87524),sn=g(30887),Ee=g(28682),pe=g(20310),ft=g(92977),Fe=g(49101),X=g(22636),Ne=g(56947),Qe=g(21010),At=g(19630),Lt=g(34689),cn=g(49111),we=g(19650),ht=g(47673),Ve=g(32787),vt=g(42063),ot=g(37889),We=g(58804),l=g(85893),jr,Ir=We.ZP.div(jr||(jr=(0,pe.Z)([` - cursor: pointer; - display: flex; - align-items: center; - width: 16px; -`]))),Yo=function(t){var n=t.onOk,r=t.onCancel,o=t.style,i=t.defaultValue,u=a.useState(i||""),s=(0,N.Z)(u,2),v=s[0],f=s[1],C=function(){r&&r()},d=function(){n&&n(v)};return a.useEffect(function(){return function(){f("")}},[]),(0,l.jsxs)(we.Z,{align:"center",style:(0,B.Z)({height:32,paddingLeft:4},o),size:4,children:[(0,l.jsx)(Ve.Z,{defaultValue:i,size:"small",allowClear:!0,onChange:function(h){var m=h.target;return f(m.value)}}),(0,l.jsx)(Ir,{onClick:d,children:(0,l.jsx)(ot.r,{})}),(0,l.jsx)(Ir,{onClick:C,children:(0,l.jsx)(vt.r,{})})]})},Nr=Yo,Ar=g(65333),Pn=g(49945),Lr,Vr,$r,Yr,Ho=(0,We.ZP)(Ee.Z)(Lr||(Lr=(0,pe.Z)([` - li:hover { - color: rgba(24,144,255,1); - background-color: #e6f7ff; - } -`]))),Uo=(0,We.ZP)(yt.Z)(Vr||(Vr=(0,pe.Z)([` - padding-left: 20px; - .ant-tree-node-content-wrapper { - padding: 0; - overflow: hidden; - } - - .ant-tree-node-content-wrapper.ant-tree-node-content-wrapper-normal { - padding: 0; - } - - .ant-tree-draggable-icon { - width: 16px!important; - } - .ant-tree-switcher { - width: 10px; - } -`]))),Go=function(t){var n=t.children,r=a.useState(!1),o=(0,N.Z)(r,2),i=o[0],u=o[1];return i?(0,l.jsx)(Mt.Z,{title:n,children:(0,l.jsx)(ke.Z.Text,(0,B.Z)({ellipsis:!0},t))}):(0,l.jsx)(ke.Z.Text,(0,B.Z)({ellipsis:{onEllipsis:function(){u(!0)}}},t))},Hr=We.ZP.div($r||($r=(0,pe.Z)([` - width: 20px; - height: 24px; - display: flex; - align-items: center; - visibility: hidden; - cursor: pointer; -`]))),_o=` - background: #E6F7FF; - color: #1890FF; - span { - color: #1890FF; - } -`,Ko=We.ZP.div(Yr||(Yr=(0,pe.Z)([` - padding-left: 4px; - display: flex; - justify-content: space-between; - align-items: center; - width: 100%; - flex-wrap: nowrap; - `,` - &:hover { - `,` { - visibility: visible; - } - } -`])),function(e){var t=e.active;return t?_o:""},Hr),Qo=function(t){var n=(0,Qe.md)(),r=(0,Ne.l)(),o=r.state,i=r.dispath,u=r.refreshModules,s=(0,At.UO)(),v=s.mod_id,f=o.modules,C=a.useState(!1),d=(0,N.Z)(C,2),c=d[0],h=d[1],m=a.useState(null),S=(0,N.Z)(m,2),p=S[0],b=S[1],y=a.useRef(null),x=a.useRef(null),w=(0,Pn.Z)(x);a.useEffect(function(){return function(){O()}},[v]);var O=function(){b(null),h(!1)},D=function(){var F=(0,te.Z)(A().mark(function W(){return A().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:h(!0);case 1:case"end":return R.stop()}},W)}));return function(){return F.apply(this,arguments)}}(),Z=function(){var F=(0,te.Z)(A().mark(function W(P){var R,E,T,j;return A().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,(0,X.l6)(P);case 2:if(R=G.sent,E=R.code,T=R.msg,j=R.data,E===200){G.next=9;break}return Me.default.error(T),G.abrupt("return");case 9:return G.abrupt("return",j);case 10:case"end":return G.stop()}},W)}));return function(P){return F.apply(this,arguments)}}(),k=function F(W,P,R,E){return W.reduce(function(T,j){return j.level>R?T.concat(j):P===j.id&&R===j.level?T.concat((0,B.Z)((0,B.Z)({},j),E)):j.children?T.concat((0,B.Z)((0,B.Z)({},j),{},{children:F(j.children,P,R,E)})):T.concat(j)},[])},M=function(){var F=(0,te.Z)(A().mark(function W(P,R){var E,T,j,re;return A().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return E=R.id,T=R.level,j=R.parent,ye.next=3,Z({name:P,parent:j});case 3:re=ye.sent,re&&(u(),b(void 0));case 5:case"end":return ye.stop()}},W)}));return function(P,R){return F.apply(this,arguments)}}(),Y=function F(W,P,R,E){return W.reduce(function(T,j){return R>j.level?T.concat(j):R===j.level&&P===j.id?T.concat((0,B.Z)((0,B.Z)({},j),E)):j.children?T.concat((0,B.Z)((0,B.Z)({},j),{},{children:F(j.children,P,R,E)})):T.concat(j)},[])},$=function F(W,P,R,E){return W.reduce(function(T,j){return R===j.level&&P===j.id?T.concat((0,B.Z)((0,B.Z)({},j),{},{children_nums:j.children_nums+1,children:j.children?j.children.concat(E):[].concat(E)})):j.children?T.concat((0,B.Z)((0,B.Z)({},j),{},{children:F(j.children,P,R,E)})):T.concat(j)},[])},L=function(){var F=(0,te.Z)(A().mark(function W(P){var R,E,T,j,re,G;return A().wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(!p){Ke.next=2;break}return Ke.abrupt("return");case 2:R=P.id,E=P.level,T="".concat(R,"-").concat(E),j="".concat(R,"-").concat(E+1,"-\u65B0\u5206\u7C7B"),re={id:j,name:"\u65B0\u5206\u7C7B",parent:R,level:E+1,children_nums:0},b("".concat(j,"-").concat(E+1)),z.includes(T)||V(function(tt){return tt.concat(T)}),G=$(f,R,E,re),i({type:"update",payload:{modules:G}});case 10:case"end":return Ke.stop()}},W)}));return function(P){return F.apply(this,arguments)}}(),H=function(W,P){switch(W.key){case"rename":return b("".concat(P.id,"-").concat(P.level));case"delete":return y.current.show(P);case"create":return L(P)}},_=function F(W,P,R){return W.reduce(function(E,T){return T.id===P&&T.level===R?E:E.children?E.concat((0,B.Z)((0,B.Z)({},T),{},{children:F(T.children,P,R)})):E.concat(T)},[])},ue=function(){var F=(0,te.Z)(A().mark(function W(P){var R,E,T;return A().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return re.next=2,(0,X.wZ)(P.id);case 2:if(R=re.sent,E=R.code,T=R.msg,E===200){re.next=7;break}return re.abrupt("return",Me.default.error(T));case 7:Me.default.success("\u64CD\u4F5C\u6210\u529F\uFF01"),Qe.m8.push("/cases"),u();case 10:case"end":return re.stop()}},W)}));return function(P){return F.apply(this,arguments)}}(),se=function(){var F=(0,te.Z)(A().mark(function W(P,R){var E,T,j,re;return A().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(R){ye.next=2;break}return ye.abrupt("return",O());case 2:return ye.next=4,(0,X.mM)(P.id,{name:R});case 4:if(E=ye.sent,T=E.code,j=E.msg,re=E.data,T===200){ye.next=10;break}return ye.abrupt("return",Me.default.error(j));case 10:u(),Me.default.success("\u64CD\u4F5C\u6210\u529F\uFF01"),O();case 13:case"end":return ye.stop()}},W)}));return function(P,R){return F.apply(this,arguments)}}(),he=function(W){typeof W=="number"?Qe.m8.replace("/cases/".concat(W)):Qe.m8.replace("/cases")},ne=a.useState([]),oe=(0,N.Z)(ne,2),z=oe[0],V=oe[1],Q=function(W){V(W)},ce=function F(W){return W.reduce(function(P,R){var E="".concat(R.id,"-").concat(R.level),T=R.children_nums===0,j=(0,B.Z)((0,B.Z)({},R),{},{title:(0,l.jsx)(Ko,{active:+v===R.id?1:0,children:E!==p?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Go,{onClick:function(G){T||V(function(ye){return z.includes(E)?ye.filter(function(Ke){return Ke!==E}):ye.concat(E)}),Qe.m8.replace("/cases/".concat(R.id))},children:R.name}),n.canTester()&&(0,l.jsx)(Le.Z,{overlay:(0,l.jsxs)(Ho,{onClick:function(G){H(G,R)},children:[(0,l.jsx)(Ee.Z.Item,{children:"\u91CD\u547D\u540D"},"rename"),(0,l.jsx)(Ee.Z.Item,{children:"\u65B0\u5EFA\u5B50\u6A21\u5757"},"create"),(0,l.jsx)(Ee.Z.Item,{children:"\u5220\u9664"},"delete")]}),children:(0,l.jsx)(Hr,{children:(0,l.jsx)(ft.Z,{})})})]}):(0,l.jsx)(Nr,{onOk:function(G){~p.indexOf("\u65B0\u5206\u7C7B")?M(G,R):se(R,G)},onCancel:function(){typeof p!="number"&&u(),b(void 0)},defaultValue:R.name})},E),key:E,isLeaf:T});return R.children?P.concat((0,B.Z)((0,B.Z)({},j),{},{children:F(R.children)})):P.concat(j)},[])},fe=function F(W,P){var R=P.id,E=P.parent,T=P.level;return W.reduce(function(j,re){return re.id===E&&T-1===re.level?j.concat((0,B.Z)((0,B.Z)({},re),{},{children_nums:re.children_nums-1,children:_(re.children,R,T)})):re.children?j.concat((0,B.Z)((0,B.Z)({},re),{},{children:F(re.children,P)})):j.concat(re)},[])},de=a.useMemo(function(){return ce(f)},[f,p,z,v]),ie=function(){var F=(0,te.Z)(A().mark(function W(P){var R,E,T,j;return A().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,(0,X.Ne)(P);case 2:if(R=G.sent,E=R.data,T=R.code,j=R.msg,T===200){G.next=9;break}return Me.default.error(j),G.abrupt("return",!1);case 9:return G.abrupt("return",E);case 10:case"end":return G.stop()}},W)}));return function(P){return F.apply(this,arguments)}}(),ge=function F(W,P,R){return W.reduce(function(E,T){var j="".concat(T.id,"-").concat(T.level);return j===P?E.concat((0,B.Z)((0,B.Z)({},T),{},{children:R})):T.children?E.concat((0,B.Z)((0,B.Z)({},T),{},{children:F(T.children,P,R)})):E.concat(T)},[])},Be=function(){var F=(0,te.Z)(A().mark(function W(P){var R,E,T,j,re;return A().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(R=P.id,E=P.level,T=P.children,!T){ye.next=3;break}return ye.abrupt("return",Promise.resolve());case 3:return ye.next=5,ie(R);case 5:return j=ye.sent,j&&!!j.length&&(re=ge(f,"".concat(R,"-").concat(E),j),i({type:"update",payload:{modules:re}})),ye.abrupt("return",Promise.resolve());case 8:case"end":return ye.stop()}},W)}));return function(P){return F.apply(this,arguments)}}(),Ze=function(){var F=(0,te.Z)(A().mark(function W(P){var R,E,T,j;return A().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,(0,X.l6)({name:P,parent:0});case 2:if(R=G.sent,E=R.code,T=R.msg,j=R.data,E===200){G.next=8;break}return G.abrupt("return",Me.default.error(T));case 8:u(),h(!1);case 10:case"end":return G.stop()}},W)}));return function(P){return F.apply(this,arguments)}}(),le=function(W){},Te=function(){var F=(0,te.Z)(A().mark(function W(P){var R,E,T,j,re,G;return A().wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return console.log(P),R=P.dragNode,E=P.node,T=R.id,j=E.level,Ke.next=6,(0,X.Ao)(T,{level:j,parent:E.id});case 6:if(re=Ke.sent,G=re.code,G===200){Ke.next=10;break}return Ke.abrupt("return");case 10:u();case 11:case"end":return Ke.stop()}},W)}));return function(P){return F.apply(this,arguments)}}();return(0,l.jsxs)("div",{style:{height:"100%"},children:[(0,l.jsxs)(ze.Z,{justify:"space-between",align:"middle",style:{height:48,padding:"0 12px"},children:[(0,l.jsx)(ke.Z.Title,{level:5,style:{margin:0},children:"\u529F\u80FD\u6A21\u5757"}),n.canTester()&&(0,l.jsx)("span",{onClick:D,style:{cursor:"pointer",color:"rgba(0,0,0,0.45)"},children:(0,l.jsx)(Fe.Z,{})})]}),(0,l.jsxs)("div",{style:{height:"calc(100% - 48px)"},children:[(0,l.jsx)(Lt.VF,{is_active:v===void 0,onClick:function(){return he(void 0)},children:"\u6240\u6709\u7528\u4F8B"}),(0,l.jsxs)("div",{ref:x,style:{paddingLeft:20,height:" calc(100% - 32px)"},children:[(0,l.jsx)(Uo,{onExpand:Q,height:w==null?void 0:w.height,style:{width:"100%"},expandedKeys:z,draggable:!0,blockNode:!0,onDragEnter:le,onDrop:Te,selectable:!1,treeData:de}),c&&(0,l.jsx)(Lt.VF,{children:(0,l.jsx)(Nr,{onOk:function(W){return Ze(W)},onCancel:function(){return h(!1)},defaultValue:"\u65B0\u5206\u7C7B"})})]})]}),(0,l.jsx)(Ar.Z,{ref:y,onOk:ue})]})},Xo=Qo,nc=g(13254),Ur=g(14277),rc=g(48736),Et=g(27049),ac=g(57663),it=g(71577),Jo=g(8812),Re=g(28991),qo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},ei=qo,tn=g(27029),Gr=function(t,n){return a.createElement(tn.Z,(0,Re.Z)((0,Re.Z)({},t),{},{ref:n,icon:ei}))};Gr.displayName="UpOutlined";var ti=a.forwardRef(Gr),_r=g(57254),oc=g(71194),dn=g(48889),ic=g(88983),Kt=g(82530),lc=g(9715),ve=g(71257),wt=g(76981),ni=function(t,n){var r=t.onOk,o=(0,At.UO)(),i=o.mod_id,u=(0,Ne.l)(),s=u.state.modules,v=u.refreshModules,f=(0,wt.Nv)(),C=a.useState(!1),d=(0,N.Z)(C,2),c=d[0],h=d[1],m=a.useState(!1),S=(0,N.Z)(m,2),p=S[0],b=S[1],y=a.useState(!1),x=(0,N.Z)(y,2),w=x[0],O=x[1],D=a.useState(void 0),Z=(0,N.Z)(D,2),k=Z[0],M=Z[1],Y=a.useState(+i),$=(0,N.Z)(Y,2),L=$[0],H=$[1];a.useImperativeHandle(n,function(){return{show:function(ce){M(ce),b(!0),se.setFieldsValue(ce)}}});var _=ve.Z.useForm(),ue=(0,N.Z)(_,1),se=ue[0],he=function(){b(!1),O(!1),M(void 0),h(!1),H(i)};a.useEffect(function(){return he},[]);var ne=function(){var Q=(0,te.Z)(A().mark(function ce(){var fe,de,ie;return A().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(!w){Be.next=2;break}return Be.abrupt("return");case 2:return O(!0),Be.next=5,(0,X.oR)({cases:k,parent:L});case 5:if(fe=Be.sent,de=fe.code,ie=fe.msg,de===200){Be.next=11;break}return O(!1),Be.abrupt("return",Me.default.error(ie));case 11:r(),v(),he();case 14:case"end":return Be.stop()}},ce)}));return function(){return Q.apply(this,arguments)}}(),oe=function(){var Q=(0,te.Z)(A().mark(function ce(fe){var de,ie,ge;return A().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return Ze.next=2,(0,X.l6)({name:fe,parent:0,level:0});case 2:if(de=Ze.sent,ie=de.code,ge=de.msg,ie===200){Ze.next=7;break}return Ze.abrupt("return",Me.default.error(ge));case 7:v(),z();case 9:case"end":return Ze.stop()}},ce)}));return function(fe){return Q.apply(this,arguments)}}(),z=function(){h(!1)},V=a.useMemo(function(){return i?+i:0},[i]);return(0,l.jsx)(dn.Z,{visible:p,title:"\u6279\u91CF\u79FB\u52A8\u7528\u4F8B\u5230\u5206\u7C7B",width:"30%",footer:(0,l.jsxs)(we.Z,{align:"end",children:[(0,l.jsx)(it.Z,{onClick:he,children:"\u53D6\u6D88"}),(0,l.jsx)(it.Z,{disabled:w&&V===L,onClick:ne,type:"primary",children:"\u79FB\u52A8"})]}),onCancel:he,onOk:ne,children:(0,l.jsx)(Kt.ZP.Group,{defaultValue:V,onChange:function(ce){var fe=ce.target;return H(fe.value)},children:(0,l.jsx)(we.Z,{direction:"vertical",children:f.map(function(Q){return(0,l.jsx)(Kt.ZP,{value:Q.value,disabled:V===Q.value,children:"".concat(Q.label).concat(V===Q.value?"(\u5F53\u524D\u5206\u7C7B)":"")},Q.value)})})})})},ri=a.forwardRef(ni),ai=g(68855),oi=function(t,n){var r=t.onOk,o=(0,Ne.l)(),i=o.refreshModules,u=a.useState(!1),s=(0,N.Z)(u,2),v=s[0],f=s[1],C=a.useState(!1),d=(0,N.Z)(C,2),c=d[0],h=d[1],m=a.useState(void 0),S=(0,N.Z)(m,2),p=S[0],b=S[1];a.useImperativeHandle(n,function(){return{show:function(k){b(k),f(!0),w.setFieldsValue(k)}}});var y=ve.Z.useForm(),x=(0,N.Z)(y,1),w=x[0],O=function(){f(!1),h(!1),b(void 0)},D=function(){var Z=(0,te.Z)(A().mark(function k(){var M,Y,$;return A().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if(!c){H.next=2;break}return H.abrupt("return");case 2:return h(!0),H.next=5,(0,X.PM)({id:p});case 5:if(M=H.sent,Y=M.code,$=M.msg,Y===200){H.next=12;break}return Me.default.error($),h(!1),H.abrupt("return");case 12:r(),i(),O();case 15:case"end":return H.stop()}},k)}));return function(){return Z.apply(this,arguments)}}();return(0,l.jsx)(dn.Z,{visible:v,title:"\u5220\u9664\u63D0\u793A",width:"28%",footer:(0,l.jsxs)(we.Z,{align:"end",children:[(0,l.jsx)(it.Z,{onClick:O,children:"\u53D6\u6D88"}),(0,l.jsx)(it.Z,{onClick:D,disabled:c,type:"danger",children:"\u786E\u5B9A\u5220\u9664"})]}),onCancel:O,children:(0,l.jsx)(ke.Z.Text,{type:"danger",children:(0,l.jsxs)(we.Z,{children:[(0,l.jsx)(ai.Z,{}),"\u8BE5\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C"]})})})},ii=a.forwardRef(oi),uc=g(38663),sc=g(33389),K=g(22122),ee=g(96156),li=g(7085),ui=g(94184),et=g.n(ui),be=g(28481),si=g(81253),Pt=g(21770),_e=g(15105),Kr=a.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,u=e.checked,s=e.defaultChecked,v=e.disabled,f=e.loadingIcon,C=e.checkedChildren,d=e.unCheckedChildren,c=e.onClick,h=e.onChange,m=e.onKeyDown,S=(0,si.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),p=(0,Pt.Z)(!1,{value:u,defaultValue:s}),b=(0,be.Z)(p,2),y=b[0],x=b[1];function w(k,M){var Y=y;return v||(Y=k,x(Y),h==null||h(Y,M)),Y}function O(k){k.which===_e.Z.LEFT?w(!1,k):k.which===_e.Z.RIGHT&&w(!0,k),m==null||m(k)}function D(k){var M=w(!y,k);c==null||c(M,k)}var Z=et()(o,i,(n={},(0,ee.Z)(n,"".concat(o,"-checked"),y),(0,ee.Z)(n,"".concat(o,"-disabled"),v),n));return a.createElement("button",Object.assign({},S,{type:"button",role:"switch","aria-checked":y,disabled:v,className:Z,ref:t,onKeyDown:O,onClick:D}),f,a.createElement("span",{className:"".concat(o,"-inner")},y?C:d))});Kr.displayName="Switch";var ci=Kr,nr=g(53124),rr=g(98866),ar=g(97647),di=g(21790),fi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o6))return(0,l.jsx)(it.Z,{type:V?"primary":"ghost",size:"small",style:{boxShadow:"unset",border:V?void 0:"none"},onClick:function(){return S(function(ce){return(0,B.Z)((0,B.Z)({},ce),{},{test_type:oe.value})})},children:oe.label},oe.id)})})]})}),(0,l.jsx)(Kt.ZP.Group,{value:D,style:{width:"100%"},children:(0,l.jsx)(mi,{onExpand:_,height:300,loadData:ne,style:{width:"100%"},expandedKeys:y,selectable:!1,treeData:he})})]})})})},gi=a.forwardRef(hi),pi=g(54549),ea,Ci=We.ZP.div(ea||(ea=(0,pe.Z)([` - background-color: rgba(0,0,0,0.05); - border-radius: 2px; - padding: 3px 6px; - display: inline-block; - cursor: pointer; - :hover { - color: rgba(24,144,255,1); - background-color: rgba(24,144,255,0.05); - span { - color: rgba(24,144,255,1); - } - } -`]))),Si=function(t,n){var r=t.onChange,o=t.defaultValue,i=o===void 0?null:o,u=a.useRef(null),s=a.useState(i),v=(0,N.Z)(s,2),f=v[0],C=v[1];a.useImperativeHandle(n,function(){return{clean:function(){C(i)}}}),a.useEffect(function(){C(i)},[i]);var d=function(m){C(m),r(m)},c=a.useRef(null);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ve.Z.Item,{label:"T-One\u7528\u4F8B",name:"tone_case",children:f?(0,l.jsx)("div",{ref:c,children:(0,l.jsx)(Ci,{children:(0,l.jsxs)(ze.Z,{align:"middle",children:[(0,l.jsx)("span",{onClick:function(){var m;return(m=u.current)===null||m===void 0?void 0:m.show(f==null?void 0:f.id)},style:{maxWidth:"calc(100% - 18px)",marginRight:4},children:(0,l.jsx)(ke.Z.Text,{style:{wordBreak:"break-all"},children:"".concat(f==null?void 0:f.tone_suite_name,": ").concat(f==null?void 0:f.tone_case_name)})}),(0,l.jsx)(pi.Z,{onClick:function(){return d(void 0)}})]})})}):(0,l.jsx)("span",{onClick:function(){var m;return(m=u.current)===null||m===void 0?void 0:m.show()},children:(0,l.jsx)(ke.Z.Link,{children:(0,l.jsx)(we.Z,{children:"+ \u6DFB\u52A0\u7528\u4F8B"})})})}),(0,l.jsx)(gi,{ref:u,onOk:d})]})},ta=a.forwardRef(Si),Mi=g(77881),bi=function(t,n){var r=t.onOk,o=(0,At.UO)(),i=o.mod_id,u=a.useState(!1),s=(0,N.Z)(u,2),v=s[0],f=s[1],C=a.useState(!1),d=(0,N.Z)(C,2),c=d[0],h=d[1],m=a.useState(void 0),S=(0,N.Z)(m,2),p=S[0],b=S[1],y=a.useState("auto"),x=(0,N.Z)(y,2),w=x[0],O=x[1],D=a.useState(null),Z=(0,N.Z)(D,2),k=Z[0],M=Z[1],Y=a.useRef(null),$=a.useRef(null),L=ve.Z.useForm(),H=(0,N.Z)(L,1),_=H[0];a.useImperativeHandle(n,function(){return{show:function(V){b(V),f(!0),_.setFieldsValue((0,B.Z)((0,B.Z)({},V),{},{parent:i?+i:0}))}}});var ue=function(){var V;f(!1),h(!1),b(void 0),M(null),(V=$.current)===null||V===void 0||V.clean(),O("auto"),_.resetFields()},se=function(){var z=(0,te.Z)(A().mark(function V(){return A().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(!c){ce.next=2;break}return ce.abrupt("return");case 2:_.validateFields().then(function(){var fe=(0,te.Z)(A().mark(function de(ie){var ge,Be,Ze,le,Te,F,W;return A().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(Be=ie.device_arch,Ze=ie.device_type,le=ie.labels,w==="manual"){R.next=8;break}if(k){R.next=5;break}return Me.default.error("\u8BF7\u9009\u62E9T-One\u7528\u4F8B\uFF01"),R.abrupt("return");case 5:ie.tone_case=k.tone_case_id,ie.custom_fields=k,ie.type=k.test_type;case 8:return h(!0),R.next=11,(0,X.bc)((0,B.Z)((0,B.Z)({},ie),{},{device_arch:Be?Be.toString():void 0,device_type:Ze?Ze.toString():void 0,steps:(ge=Y.current)===null||ge===void 0?void 0:ge.get(),labels:le&&le.length?le.toString():void 0}));case 11:if(Te=R.sent,F=Te.msg,W=Te.code,h(!1),W===200){R.next=18;break}return Me.default.error(F),R.abrupt("return");case 18:ue(),r(),Me.default.success("\u6DFB\u52A0\u6210\u529F");case 21:case"end":return R.stop()}},de)}));return function(de){return fe.apply(this,arguments)}}()).catch(function(fe){console.log(fe),h(!1)});case 3:case"end":return ce.stop()}},V)}));return function(){return z.apply(this,arguments)}}(),he=function(V){M(V)},ne=function(V){V.includes("noarch")&&_.setFieldsValue({device_arch:["noarch"]})},oe=function(V){V.includes("unlimit")&&_.setFieldsValue({device_type:"unlimit"})};return(0,l.jsx)(dn.Z,{visible:v,title:p?"\u7F16\u8F91":"\u65B0\u5EFA\u7528\u4F8B",width:"60%",centered:!0,footer:(0,l.jsxs)(we.Z,{align:"end",children:[(0,l.jsx)(it.Z,{onClick:ue,children:"\u53D6\u6D88"}),(0,l.jsx)(it.Z,{disabled:c,onClick:se,type:"primary",children:"\u786E\u5B9A"})]}),bodyStyle:{padding:0},onCancel:ue,destroyOnClose:!0,children:(0,l.jsx)(Mi.yV,{form:_,layout:"vertical",colon:!1,initialValues:{run_model:"single",run_method:"auto",is_available:!0,device_type:["vm"],device_arch:["noarch"]},children:(0,l.jsxs)(ze.Z,{children:[(0,l.jsxs)(Qt.Z,{span:16,style:{borderRight:"1px solid rgba(0, 0, 0, 0.06)",padding:20,maxHeight:700,overflow:"auto"},children:[(0,l.jsxs)(ze.Z,{gutter:20,children:[(0,l.jsx)(Qt.Z,{span:18,children:(0,l.jsx)(ve.Z.Item,{label:"\u7528\u4F8B\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u7528\u4F8B\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}],children:(0,l.jsx)(Ve.Z,{placeholder:"\u8BF7\u8F93\u5165"})})}),(0,l.jsx)(Qt.Z,{span:6,children:(0,l.jsx)(wt.xL,{})})]}),(0,l.jsx)(wt.H5,{}),(0,l.jsx)(ve.Z.Item,{label:"\u7528\u4F8B\u63CF\u8FF0",name:"desc",children:(0,l.jsx)(Ve.Z.TextArea,{rows:3,placeholder:"\u8BF7\u8F93\u5165"})}),(0,l.jsx)(ve.Z.Item,{label:"\u524D\u7F6E\u6761\u4EF6",name:"pre_condition",children:(0,l.jsx)(Ve.Z.TextArea,{rows:3,placeholder:"\u8BF7\u8F93\u5165"})}),(0,l.jsx)(wt.it,{onRef:Y})]}),(0,l.jsxs)(Qt.Z,{span:8,style:{padding:20},children:[(0,l.jsx)(wt.br,{label:"\u6D4B\u8BD5\u5957",name:"suite_name",rules:[{required:!0}]}),(0,l.jsx)(ve.Z.Item,{label:"\u8FD0\u884C\u6A21\u5F0F",name:"run_model",children:(0,l.jsx)(Kt.ZP.Group,{options:je.FA})}),(0,l.jsx)(ve.Z.Item,{label:"\u8FD0\u884C\u65B9\u5F0F",name:"run_method",children:(0,l.jsx)(Kt.ZP.Group,{options:je.B9,onChange:function(V){var Q=V.target;return O(Q.value)}})}),w==="manual"?(0,l.jsx)(ve.Z.Item,{label:"\u6D4B\u8BD5\u7C7B\u578B",name:"test_type",children:(0,l.jsx)(Vt.Z,{placeholder:"\u8BF7\u9009\u62E9",options:je.pD})}):(0,l.jsx)(ta,{ref:$,defalutValue:k,onChange:he}),(0,l.jsx)(ve.Z.Item,{label:"\u8BBE\u5907\u7C7B\u578B",name:"device_type",children:(0,l.jsx)(Vt.Z,{mode:"multiple",showArrow:!0,allowClear:!0,options:je.xG,onChange:oe,placeholder:"\u8BF7\u9009\u62E9"})}),(0,l.jsx)(ve.Z.Item,{label:"\u8BBE\u5907\u67B6\u6784",name:"device_arch",children:(0,l.jsx)(Vt.Z,{mode:"multiple",allowClear:!0,showArrow:!0,options:je.OA,onChange:ne,placeholder:"\u8BF7\u9009\u62E9"})}),(0,l.jsx)(wt.OT,{label:"\u6807\u7B7E",name:"labels"}),(0,l.jsx)(ve.Z.Item,{label:"\u72B6\u6001",name:"is_available",valuePropName:"checked",children:(0,l.jsx)(Xr,{checkedChildren:"\u53EF\u7528",unCheckedChildren:"\u7981\u7528"})})]})]})})})},ki=a.forwardRef(bi),vc=[{type:"paragrapha",children:[{text:"\u5DE5\u5177\uFF1A",bold:!0}]},{type:"paragrapha",children:[{text:""}]},{type:"paragrapha",children:[{text:"\u7248\u672C\uFF1A",bold:!0}]},{type:"paragrapha",children:[{text:""}]},{type:"paragrapha",children:[{text:"\u6B65\u9AA4\uFF1A",bold:!0}]},{type:"paragrapha",children:[{text:""}]},{type:"paragrapha",children:[{text:"\u7528\u4F8B\u8BF4\u660E\uFF1A",bold:!0}]}],mc=g(84494),xi=g(2546),yi=g(84391),Oi=".yaml,.tar",Ri=function(t,n){var r=t.onOk,o=a.useState(!1),i=(0,N.Z)(o,2),u=i[0],s=i[1],v=a.useState(!1),f=(0,N.Z)(v,2),C=f[0],d=f[1],c=a.useState([]),h=(0,N.Z)(c,2),m=h[0],S=h[1],p={action:"/api/case/import/",method:"post",accept:Oi,name:"file",maxCount:1,multiple:!1,fileList:m,itemRender:function(M,Y,$){var L=(0,l.jsx)(Mt.Z,{title:"Upload Error",children:M.props.children});return Y.status==="error"?L:M},onChange:function(M){S(M.fileList)},onRemove:function(M){S(M.fileList||[])}};a.useImperativeHandle(n,function(){return{show:function(M){s(!0),x.setFieldsValue(M)}}});var b=ve.Z.useForm(),y=(0,N.Z)(b,1),x=y[0],w=function(){s(!1),S([]),d(!1)},O=function(){var k=(0,te.Z)(A().mark(function M(){return A().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(!C){$.next=2;break}return $.abrupt("return");case 2:d(!0),r(),w();case 5:case"end":return $.stop()}},M)}));return function(){return k.apply(this,arguments)}}(),D=`\u4F18\u5148\u7EA7: P0 -\u652F\u6301\u67B6\u6784: noarch -\u6267\u884C\u65B9\u5F0F: \u81EA\u52A8 -\u6D4B\u8BD5\u7C7B\u578B: \u529F\u80FD\u6D4B\u8BD5 -\u901A\u7528\u6807\u7B7E: \u53CC\u673A -\u4F5C\u8005: \u521B\u5EFA\u4EBA -\u7528\u4F8B\u63CF\u8FF0: \u6D4B\u8BD5kdump\u662F\u5426\u53EF\u624B\u52A8\u89E6\u53D1\u751F\u6210vmcore\u6587\u4EF6 -\u524D\u7F6E\u6761\u4EF6: \u7CFB\u7EDFcrashkernel\u914D\u7F6E\u6B63\u786E\uFF0C\u8DB3\u591F\u5B58\u653Evmcore\u6587\u4EF6 -\u6D4B\u8BD5\u6B65\u9AA4: - - \u786E\u8BA4\u7CFB\u7EDF\u5DF2\u6709kdump.service\u5E76\u5904\u4E8Eactive\u72B6\u6001 - - \u83B7\u53D6\u5F53\u524D/var/crash\u6587\u4EF6\u5939\u4E0B\u5DF2\u751F\u6210size>0\u7684vmcore\u6570\u91CF - - \u82E5\u6B65\u9AA42\u83B7\u53D6\u7684vmcore\u6570\u91CF\u4E0D\u4E3A0\uFF0C\u5219\u83B7\u53D6\u8BE5\u751F\u6210\u7684vmcore\u65F6\u95F4 - - \u624B\u52A8\u89E6\u53D1crash\uFF0C\u751F\u6210vmcore\uFF0C\u7B49\u5F85\u673A\u5668\u91CD\u542F\u5B8C\u6210 - - \u518D\u6B21\u83B7\u53D6\u5F53\u524D/var/crash\u6587\u4EF6\u5939\u4E0B\u5DF2\u751F\u6210size>0\u7684vmcore\u6570\u91CF - - \u82E5\u6B65\u9AA42\u83B7\u53D6\u7684vmcore\u6570\u91CF\u4E0D\u4E3A0\uFF0C\u5219\u518D\u6B21\u83B7\u53D6\u8BE5\u751F\u6210\u7684vmcore\u65F6\u95F4 -\u671F\u671B\u7ED3\u679C: - - \u7CFB\u7EDF\u4E2Dkdump.service\u5B58\u5728\u5E76\u5904\u4E8Eactive\u72B6\u6001 - - \u82E5sum_before\u4E3A0\uFF0C\u5219\u671F\u671Bsum_after-sum_before=1 - - \u82E5sum_before\u4E3A0\uFF0C\u5219\u671F\u671Bsum_after-sum_before=1 - - \u82E5sum_before\u4E3A0\uFF0C\u5219\u671F\u671Bsum_after-sum_before=1 - - \u82E5sum_before\u4E3A0\uFF0C\u5219\u671F\u671Bsum_after-sum_before=1 - - \u82E5sum_before\u4E0D\u4E3A0\uFF0C\u5219\u671F\u671Btime_after > time_before -`,Z=function(){var k=(0,te.Z)(A().mark(function M(){var Y,$,L,H;return A().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:Y=window.URL||window.webkitURL||window,$=new Blob([D]),L=document.createElementNS("http://www.w3.org/1999/xhtml","a"),L.href=Y.createObjectURL($),L.download="\u6A21\u677F\u6587\u4EF6.yaml",H=document.createEvent("MouseEvents"),H.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),L.dispatchEvent(H);case 8:case"end":return ue.stop()}},M)}));return function(){return k.apply(this,arguments)}}();return(0,l.jsxs)(dn.Z,{visible:u,title:"\u5BFC\u5165\u7528\u4F8B",width:"40%",footer:(0,l.jsxs)(we.Z,{align:"end",children:[(0,l.jsx)(it.Z,{onClick:w,children:"\u53D6\u6D88"}),(0,l.jsx)(it.Z,{disabled:C,onClick:O,type:"primary",children:"\u5B8C\u6210"})]}),onCancel:w,children:[(0,l.jsxs)(we.Z,{align:"start",style:{marginBottom:12},children:[(0,l.jsx)(ke.Z.Text,{children:"1."}),(0,l.jsxs)(we.Z,{align:"start",direction:"vertical",children:[(0,l.jsx)(ke.Z.Text,{strong:!0,children:"\u4E0B\u8F7Dyaml\u6A21\u677F"}),(0,l.jsx)(ke.Z.Text,{type:"secondary",children:"\u8BF7\u6309\u7167yaml\u6A21\u677F\u683C\u5F0F\u586B\u5199\u7528\u4F8B\u5185\u5BB9"}),(0,l.jsx)(it.Z,{onClick:Z,children:"\u4E0B\u8F7D"})]})]}),(0,l.jsxs)(we.Z,{align:"start",children:[(0,l.jsx)(ke.Z.Text,{children:"2."}),(0,l.jsxs)(we.Z,{direction:"vertical",children:[(0,l.jsx)(ke.Z.Text,{strong:!0,children:"\u9009\u62E9\u7528\u4F8B\u6587\u4EF6"}),(0,l.jsx)(ke.Z.Text,{type:"secondary",children:"\u8BF7\u4E0A\u4F20\u6309\u7167yaml\u6A21\u677F\u683C\u5F0F\u586B\u5199\u7684\u7528\u4F8Byaml\u6587\u4EF6\u6216tar\u538B\u7F29\u5305"}),(0,l.jsxs)(we.Z,{direction:"vertical",size:8,children:[(0,l.jsx)(xi.Z,(0,B.Z)((0,B.Z)({},p),{},{children:(0,l.jsx)(it.Z,{icon:(0,l.jsx)(yi.Z,{}),children:"\u4E0A\u4F20\u6587\u4EF6"})})),(0,l.jsx)(ke.Z.Text,{style:{fontSize:12},children:"\u652F\u6301\u6269\u5C55\u540D\uFF1A.yaml\u3001.tar"})]})]})]})]})},Di=a.forwardRef(Ri),Bi={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z",fill:n}},{tag:"path",attrs:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89z",fill:t}}]}},name:"edit",theme:"twotone"},Zi=Bi,na=function(t,n){return a.createElement(tn.Z,(0,Re.Z)((0,Re.Z)({},t),{},{ref:n,icon:Zi}))};na.displayName="EditTwoTone";var Ei=a.forwardRef(na),hc=g(71153),ra=g(60331),gc=g(66456),wi=g(4972),aa,oa,ia,Pi=(0,We.ZP)(wi.Z)(aa||(aa=(0,pe.Z)([` - .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before { - background-color: transparent; - } - table { - thead th { - font-size: 12px; - padding: 4.5px!important; - } - - tbody td { - padding: 4.5px!important; - } - } -`]))),Fi=(0,We.ZP)(ra.Z)(oa||(oa=(0,pe.Z)([` - & { - transform: scale(.9); - margin-right: 0!important; - } -`]))),Ti=(0,We.ZP)(ve.Z)(ia||(ia=(0,pe.Z)([` - padding-bottom: 12px; - .ant-form-item { - margin-bottom: 6px; - } - - .ant-form-item-control-input-content { - color: rgba(0,0,0,0.65); - } -`]))),la=function(t,n){if(!t)return"-";var r=t.split(","),o=r.filter(function(i){return n.get(i)});return o.length?o.map(function(i){return(0,l.jsx)(Fi,{children:n.get(i)},i)}):"-"},zi=function(t){var n=t.currentCase,r=ve.Z.useForm(),o=(0,N.Z)(r,1),i=o[0];if(!n)return(0,l.jsx)(l.Fragment,{});var u=n.labels,s=n.steps,v=u.split(",").filter(Boolean),f=n.custom_fields,C=f?"".concat(f.tone_suite_name||"-",": ").concat(f.tone_case_name||"-"):"-";return(0,l.jsxs)(Ti,{form:i,labelCol:{span:5},labelAlign:"left",colon:!1,size:"small",children:[(0,l.jsx)(Et.Z,{style:{margin:"12px 0"}}),(0,l.jsx)(ve.Z.Item,{children:(0,l.jsx)(ke.Z.Text,{strong:!0,children:"\u57FA\u7840\u4FE1\u606F"})}),(0,l.jsx)(ve.Z.Item,{label:"\u6D4B\u8BD5\u5957",children:(n==null?void 0:n.suite_name)||"-"}),(0,l.jsx)(ve.Z.Item,{label:"\u8FD0\u884C\u65B9\u5F0F",children:je.iM.get(n==null?void 0:n.run_method)||"-"}),(0,l.jsx)(ve.Z.Item,{label:"\u8FD0\u884C\u6A21\u5F0F",children:je.RL.get(n==null?void 0:n.run_model)||"-"}),(0,l.jsx)(ve.Z.Item,{label:"\u72B6\u6001",children:je.Yl.get(n==null?void 0:n.is_available)||"-"}),(0,l.jsx)(ve.Z.Item,{label:"\u7528\u4F8B\u6807\u7B7E",children:v.length>0?v==null?void 0:v.map(function(d){return(0,l.jsx)(wt.Gm,{children:d},d)}):"-"}),(n==null?void 0:n.run_method)==="auto"&&(0,l.jsx)(ve.Z.Item,{label:"T-One\u7528\u4F8B",children:C}),(0,l.jsx)(Et.Z,{style:{margin:"12px 0"}}),(0,l.jsx)(ve.Z.Item,{children:(0,l.jsx)(ke.Z.Text,{strong:!0,children:"\u6D4B\u8BD5\u73AF\u5883"})}),(0,l.jsx)(ve.Z.Item,{label:"\u8BBE\u5907\u67B6\u6784",children:la(n==null?void 0:n.device_arch,je.we)}),(0,l.jsx)(ve.Z.Item,{label:"\u8BBE\u5907\u7C7B\u578B",children:la(n==null?void 0:n.device_type,je.uY)}),(0,l.jsx)(ve.Z.Item,{label:"\u6D4B\u8BD5\u7C7B\u578B",children:je.NP.get(n==null?void 0:n.type)||"-"}),(0,l.jsx)(Et.Z,{style:{margin:"12px 0"}}),(0,l.jsx)(ve.Z.Item,{children:(0,l.jsx)(ke.Z.Text,{strong:!0,children:"\u524D\u7F6E\u6761\u4EF6"})}),(0,l.jsx)("div",{style:{background:"#FAFAFA",padding:12},children:(n==null?void 0:n.pre_condition)||"\u672A\u586B\u5199"}),(0,l.jsx)(Et.Z,{style:{margin:"12px 0"}}),(0,l.jsx)(ve.Z.Item,{children:(0,l.jsx)(ke.Z.Text,{strong:!0,children:"\u64CD\u4F5C\u6B65\u9AA4"})}),(0,l.jsx)(Pi,{columns:[{title:"\u7F16\u53F7",width:50,render:function(c,h,m){return m+1}},{dataIndex:"step",title:"\u6B65\u9AA4\u63CF\u8FF0",render:function(c){return c||"\u672A\u586B\u5199"}},{dataIndex:"result",title:"\u9884\u671F\u7ED3\u679C",render:function(c){return c||"\u672A\u586B\u5199"}}],dataSource:s,rowKey:"id",pagination:!1,size:"small"})]})},Wi=zi,ua,ji=(0,We.ZP)(ve.Z)(ua||(ua=(0,pe.Z)([` - padding-bottom: 12px; - .ant-form-item { - margin-bottom: 12px; - } -`]))),Ii=function(t,n){var r=t.currentCase,o=ve.Z.useForm(),i=(0,N.Z)(o,1),u=i[0],s=a.useRef(null),v=a.useRef(null),f=a.useRef(null),C=a.useState(null),d=(0,N.Z)(C,2),c=d[0],h=d[1],m=a.useState(null),S=(0,N.Z)(m,2),p=S[0],b=S[1];return a.useImperativeHandle(n,function(){return(0,B.Z)((0,B.Z)({},u),{},{vm:s.current,formResultChangeValue:function(){var x,w={},O=(x=v.current)===null||x===void 0?void 0:x.get(),D=u.getFieldsValue();if(s.current){var Z=s.current.children;w.custom_fields=s.current.getText()!==""?Z:null}if(p==="auto"){if(!c){u.setFields([{name:"tone_case",errors:["\u8BF7\u9009\u62E9T-One\u7528\u4F8B!"]}]);return}var k=c.tone_case_id;typeof+k=="number"&&(w=(0,B.Z)((0,B.Z)({},w),{},{tone_case:+k,custom_fields:c,type:c.test_type}))}return p==="manual"&&(w.custom_fields={}),(0,B.Z)((0,B.Z)((0,B.Z)({},D),w),{},{steps:O})}})}),a.useEffect(function(){if(r&&JSON.stringify(r)!=="{}"){var y,x=r.custom_fields,w=r.tone_case,O=r.run_method,D=r.labels,Z=r.device_arch,k=r.steps;u.setFieldsValue((0,B.Z)((0,B.Z)((0,B.Z)({},r),x),{},{labels:D?D.split(","):void 0,device_arch:Z?Z.split(","):void 0})),(y=v.current)===null||y===void 0||y.setData(k),x&&JSON.stringify(x)!=="{}"&&h((0,B.Z)((0,B.Z)({},x),{},{id:w})),b(O)}return function(){var M;u.resetFields(),h(null),b(null),(M=f.current)===null||M===void 0||M.clean()}},[r]),(0,l.jsxs)(ji,{form:u,labelCol:{span:5},labelAlign:"left",colon:!1,size:"small",children:[(0,l.jsx)(Et.Z,{style:{margin:"12px 0"}}),(0,l.jsx)(ve.Z.Item,{children:(0,l.jsx)(ke.Z.Text,{strong:!0,children:"\u57FA\u7840\u4FE1\u606F"})}),(0,l.jsx)(wt.br,{label:"\u6D4B\u8BD5\u5957",name:"suite_name"}),(0,l.jsx)(ve.Z.Item,{label:"\u8FD0\u884C\u65B9\u5F0F",name:"run_method",children:(0,l.jsx)(Kt.ZP.Group,{options:je.B9,onChange:function(x){var w=x.target;return b(w.value)}})}),(0,l.jsx)(ve.Z.Item,{label:"\u8FD0\u884C\u6A21\u5F0F",name:"run_model",children:(0,l.jsx)(Kt.ZP.Group,{options:je.FA})}),(0,l.jsx)(wt.OT,{label:"\u6807\u7B7E",name:"labels"}),(0,l.jsx)(ve.Z.Item,{label:"\u72B6\u6001",name:"is_available",valuePropName:"checked",children:(0,l.jsx)(Xr,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",defaultChecked:!0})}),p!=="manual"&&(0,l.jsx)(ta,{ref:f,onChange:h,defaultValue:c}),(0,l.jsx)(Et.Z,{style:{margin:"12px 0"}}),(0,l.jsx)(ve.Z.Item,{children:(0,l.jsx)(ke.Z.Text,{strong:!0,children:"\u6D4B\u8BD5\u73AF\u5883"})}),(0,l.jsx)(ve.Z.Item,{label:"\u8BBE\u5907\u7C7B\u578B",name:"device_type",children:(0,l.jsx)(Vt.Z,{mode:"multiple",options:je.xG,onChange:function(x){x.includes("unlimit")&&u.setFieldsValue({device_type:["unlimit"]})},showArrow:!0,allowClear:!0})}),p==="manual"&&(0,l.jsx)(ve.Z.Item,{label:"\u6D4B\u8BD5\u7C7B\u578B",name:"type",children:(0,l.jsx)(Vt.Z,{options:je.pD})}),(0,l.jsx)(Et.Z,{style:{margin:"12px 0"}}),(0,l.jsx)(ve.Z.Item,{children:(0,l.jsx)(ke.Z.Text,{strong:!0,children:"\u6D4B\u8BD5\u6B65\u9AA4"})}),(0,l.jsx)(ve.Z.Item,{label:"\u8BBE\u5907\u67B6\u6784",name:"device_arch",children:(0,l.jsx)(Vt.Z,{mode:"multiple",options:je.OA,onChange:function(x){x.includes("noarch")&&u.setFieldsValue({device_arch:["noarch"]})},allowClear:!0,showArrow:!0})}),(0,l.jsx)(Et.Z,{style:{margin:"12px 0"}}),(0,l.jsx)(ve.Z.Item,{children:(0,l.jsx)(ke.Z.Text,{strong:!0,children:"\u64CD\u4F5C\u6B65\u9AA4"})}),(0,l.jsx)(ve.Z.Item,{label:"\u524D\u7F6E\u6761\u4EF6"}),(0,l.jsx)(ve.Z.Item,{label:"",name:"pre_condition",children:(0,l.jsx)(Ve.Z.TextArea,{rows:3,placeholder:"\u8BF7\u8F93\u5165"})}),(0,l.jsx)(wt.it,{onRef:v})]})},Ni=a.forwardRef(Ii),Ai=g(87589),or=g(33923),sa=g(64204),ca,Li=(0,We.ZP)(Ee.Z)(ca||(ca=(0,pe.Z)([` - li:hover { - color: rgba(24,144,255,1); - background-color: #e6f7ff; - } -`]))),Vi=new Map([[0,"\u7CFB\u7EDF\u4E0D\u53EF\u7F3A\u5C11"],[1,"\u91CD\u8981\u800C\u4E0D\u5FC5\u9700"],[2,"\u76F8\u5BF9\u975E\u6838\u5FC3\u529F\u80FD"],[3,"\u7CFB\u7EDF\u53EF\u9760\u6027\u7B49\u529F\u80FD"]]),$i=function(t){var n=(0,Qe.md)(),r=t.activeId,o=t.refresh,i=t.height,u=a.useState(!1),s=(0,N.Z)(u,2),v=s[0],f=s[1],C=a.useState(!1),d=(0,N.Z)(C,2),c=d[0],h=d[1],m=a.useState(""),S=(0,N.Z)(m,2),p=S[0],b=S[1],y=a.useState(!1),x=(0,N.Z)(y,2),w=x[0],O=x[1],D=a.useRef(null),Z=a.useRef(null),k=(0,Qe.QT)(function(z){return(0,X.FE)({id:z})},{manual:!0}),M=k.data,Y=k.loading,$=k.run;a.useEffect(function(){r&&$(r)},[r]);var L=function(V){var Q;switch(V.key){case"edit":return f(!0);case"rename":return H();case"delete":return(Q=Z.current)===null||Q===void 0?void 0:Q.show()}},H=function(){h(!0),b(M==null?void 0:M.name)},_=function(){var z=(0,te.Z)(A().mark(function V(){var Q,ce,fe;return A().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,(0,X.PM)({id:[M.id]});case 2:if(Q=ie.sent,ce=Q.code,fe=Q.msg,ce===200){ie.next=7;break}return ie.abrupt("return",Me.default.error(fe));case 7:o(),Me.default.success("\u64CD\u4F5C\u6210\u529F\uFF01");case 9:case"end":return ie.stop()}},V)}));return function(){return z.apply(this,arguments)}}(),ue=function(){var V=D.current;V.validateFields().then(function(){var Q=(0,te.Z)(A().mark(function ce(fe){var de,ie,ge,Be;return A().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(de=V==null?void 0:V.formResultChangeValue(),de){le.next=3;break}return le.abrupt("return");case 3:return le.next=5,(0,X.$4)(M.id,de);case 5:if(ie=le.sent,ge=ie.code,Be=ie.msg,ge===200){le.next=11;break}return Me.default.error(Be),le.abrupt("return");case 11:ne(),oe();case 13:case"end":return le.stop()}},ce)}));return function(ce){return Q.apply(this,arguments)}}())},se=function(){var z=(0,te.Z)(A().mark(function V(Q){var ce,fe,de;return A().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(!w){ge.next=2;break}return ge.abrupt("return");case 2:return O(!0),ge.next=5,(0,X.$4)(M.id,(0,B.Z)((0,B.Z)({},M),{},{priority:Q}));case 5:if(ce=ge.sent,fe=ce.code,de=ce.msg,O(!1),fe===200){ge.next=12;break}return Me.default.error(de),ge.abrupt("return");case 12:ne();case 13:case"end":return ge.stop()}},V)}));return function(Q){return z.apply(this,arguments)}}(),he=function(){var z=(0,te.Z)(A().mark(function V(){var Q,ce,fe;return A().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(p!==(M==null?void 0:M.name)){ie.next=3;break}return h(!1),ie.abrupt("return");case 3:return ie.next=5,(0,X.S6)(M.id,{name:p});case 5:if(Q=ie.sent,ce=Q.code,fe=Q.msg,ce===200){ie.next=10;break}return ie.abrupt("return",Me.default.error(fe));case 10:h(!1),ne();case 12:case"end":return ie.stop()}},V)}));return function(){return z.apply(this,arguments)}}(),ne=function(){$(M==null?void 0:M.id),o(),Me.default.success("\u64CD\u4F5C\u6210\u529F\uFF01")},oe=function(){f(!1)};return Y?(0,l.jsx)(sa.Z,{}):(0,l.jsxs)("div",{style:{height:i||"100%",padding:"9px 12px",overflow:"auto"},children:[(0,l.jsxs)(ze.Z,{justify:"space-between",align:"middle",children:[(0,l.jsx)(ke.Z.Text,{type:"secondary",style:{fontSize:12},children:M==null?void 0:M.gmt_created}),(0,l.jsxs)(we.Z,{children:[v&&(0,l.jsxs)(we.Z,{children:[(0,l.jsx)(it.Z,{size:"small",onClick:oe,children:"\u53D6\u6D88"}),(0,l.jsx)(it.Z,{type:"primary",size:"small",onClick:ue,children:"\u4FDD\u5B58"})]}),n.canCurrentTester(M==null?void 0:M.creator)&&(0,l.jsx)(Le.Z,{overlay:(0,l.jsxs)(Li,{onClick:L,children:[(0,l.jsx)(Ee.Z.Item,{children:"\u7F16\u8F91"},"edit"),(0,l.jsx)(Ee.Z.Item,{children:"\u91CD\u547D\u540D"},"rename"),(0,l.jsx)(Ee.Z.Item,{children:"\u5220\u9664"},"delete")]}),children:(0,l.jsx)("span",{style:{width:24,cursor:"pointer"},children:(0,l.jsx)(ft.Z,{})})})]})]}),(0,l.jsxs)(we.Z,{direction:"vertical",style:{width:"100%",marginTop:8},children:[(0,l.jsx)(ze.Z,{children:c?(0,l.jsx)(Ve.Z,{size:"small",autoFocus:!0,autoComplete:"off",value:p,onChange:function(V){var Q=V.target;return b(Q.value)},onBlur:he}):(0,l.jsxs)(we.Z,{children:[(0,l.jsx)(ke.Z.Text,{strong:!0,children:M==null?void 0:M.name}),(0,l.jsx)(Ei,{onClick:function(){return H()}})]})}),(0,l.jsxs)(ze.Z,{children:[(0,l.jsx)(ke.Z.Text,{strong:!0,children:"\u63CF\u8FF0\uFF1A"}),M==null?void 0:M.desc]}),(0,l.jsx)(Ai.Z,{left:{title:"\u8D1F\u8D23\u4EBA",data:M==null?void 0:M.creator},right:{title:"\u4F18\u5148\u7EA7",data:n.canCurrentTester(M==null?void 0:M.creator)?(0,l.jsx)(Le.Z,{overlay:(0,l.jsx)(Ee.Z,{children:je.$4.map(function(z){return(0,l.jsx)(Ee.Z.Item,{onClick:function(){return se(z)},style:(M==null?void 0:M.priority)===z?{background:"#E6F7FF",color:"#1890FF"}:{},children:"P".concat(z," - ").concat(Vi.get(z))},z)})}),children:(0,l.jsxs)(we.Z,{size:4,children:[(0,l.jsx)(or.Fk,(0,B.Z)({},M)),(0,l.jsx)(_r.Z,{style:{fontSize:12,color:"rgba(0,0,0,.25)"}})]})}):(0,l.jsx)(or.Fk,(0,B.Z)({},M))}})]}),v?(0,l.jsx)(Ni,{currentCase:M,ref:D}):(0,l.jsx)(Wi,{currentCase:M}),(0,l.jsx)(Ar.Z,{ref:Z,onOk:_})]})},Yi=a.memo($i),Hi=g(45697),me=g.n(Hi),Ui=g(97262),nn=g.n(Ui);function da(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function fa(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r!=null?r:null}this.setState(t.bind(this))}function va(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}da.__suppressDeprecationWarning=!0,fa.__suppressDeprecationWarning=!0,va.__suppressDeprecationWarning=!0;function Gi(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,o=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var i=e.displayName||e.name,u=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. - -`+i+" uses "+u+" but also contains the following legacy lifecycles:"+(n!==null?` - `+n:"")+(r!==null?` - `+r:"")+(o!==null?` - `+o:"")+` - -The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=da,t.componentWillReceiveProps=fa),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=va;var s=t.componentDidUpdate;t.componentDidUpdate=function(f,C,d){var c=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;s.call(this,f,C,c)}}return e}function ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ma(e,t){for(var n=0;n=0?n:Infinity;return Math.max(o,Math.min(i,r))}return e!==void 0?e:t}function Qi(e){return a.Children.toArray(e).filter(function(t){return t})}var zn=function(e){sr(n,e);var t=dr(n);function n(r){var o;ir(this,n),o=t.call(this,r),o.onMouseDown=o.onMouseDown.bind(fn(o)),o.onTouchStart=o.onTouchStart.bind(fn(o)),o.onMouseMove=o.onMouseMove.bind(fn(o)),o.onTouchMove=o.onTouchMove.bind(fn(o)),o.onMouseUp=o.onMouseUp.bind(fn(o));var i=r.size,u=r.defaultSize,s=r.minSize,v=r.maxSize,f=r.primary,C=i!==void 0?i:Sa(u,s,v,null);return o.state={active:!1,resized:!1,pane1Size:f==="first"?C:void 0,pane2Size:f==="second"?C:void 0,instanceProps:{size:i}},o}return lr(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(n.getSizeUpdate(this.props,this.state))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove)}},{key:"onMouseDown",value:function(o){var i=Object.assign({},o,{touches:[{clientX:o.clientX,clientY:o.clientY}]});this.onTouchStart(i)}},{key:"onTouchStart",value:function(o){var i=this.props,u=i.allowResize,s=i.onDragStarted,v=i.split;if(u){Ca(document,window);var f=v==="vertical"?o.touches[0].clientX:o.touches[0].clientY;typeof s=="function"&&s(),this.setState({active:!0,position:f})}}},{key:"onMouseMove",value:function(o){var i=Object.assign({},o,{touches:[{clientX:o.clientX,clientY:o.clientY}]});this.onTouchMove(i)}},{key:"onTouchMove",value:function(o){var i=this.props,u=i.allowResize,s=i.maxSize,v=i.minSize,f=i.onChange,C=i.split,d=i.step,c=this.state,h=c.active,m=c.position;if(u&&h){Ca(document,window);var S=this.props.primary==="first",p=S?this.pane1:this.pane2,b=S?this.pane2:this.pane1;if(p){var y=p,x=b;if(y.getBoundingClientRect){var w=y.getBoundingClientRect().width,O=y.getBoundingClientRect().height,D=C==="vertical"?o.touches[0].clientX:o.touches[0].clientY,Z=C==="vertical"?w:O,k=m-D;if(d){if(Math.abs(k)$&&(M=-M);var L=s;if(s!==void 0&&s<=0){var H=this.splitPane;C==="vertical"?L=H.getBoundingClientRect().width+s:L=H.getBoundingClientRect().height+s}var _=Z-M,ue=m-k;_L?_=L:this.setState({position:ue,resized:!0}),f&&f(_),this.setState(ha({draggedSize:_},S?"pane1Size":"pane2Size",_))}}}}},{key:"onMouseUp",value:function(){var o=this.props,i=o.allowResize,u=o.onDragFinished,s=this.state,v=s.active,f=s.draggedSize;i&&v&&(typeof u=="function"&&u(f),this.setState({active:!1}))}},{key:"render",value:function(){var o=this,i=this.props,u=i.allowResize,s=i.children,v=i.className,f=i.onResizerClick,C=i.onResizerDoubleClick,d=i.paneClassName,c=i.pane1ClassName,h=i.pane2ClassName,m=i.paneStyle,S=i.pane1Style,p=i.pane2Style,b=i.resizerClassName,y=i.resizerStyle,x=i.split,w=i.style,O=this.state,D=O.pane1Size,Z=O.pane2Size,k=u?"":"disabled",M=b&&"".concat(b," ").concat(pa),Y=Qi(s),$=ur({display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},w);x==="vertical"?Object.assign($,{flexDirection:"row",left:0,right:0}):Object.assign($,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var L=["SplitPane",v,x,k],H=ur({},m,{},S),_=ur({},m,{},p),ue=["Pane1",d,c].join(" "),se=["Pane2",d,h].join(" ");return a.createElement("div",{className:L.join(" "),ref:function(ne){o.splitPane=ne},style:$},a.createElement(Tn,{className:ue,key:"pane1",eleRef:function(ne){o.pane1=ne},size:D,split:x,style:H},Y[0]),a.createElement(fr,{className:k,onClick:f,onDoubleClick:C,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",resizerClassName:M,split:x,style:y||{}}),a.createElement(Tn,{className:se,key:"pane2",eleRef:function(ne){o.pane2=ne},size:Z,split:x,style:_},Y[1]))}}],[{key:"getDerivedStateFromProps",value:function(o,i){return n.getSizeUpdate(o,i)}},{key:"getSizeUpdate",value:function(o,i){var u={},s=i.instanceProps;if(s.size===o.size&&o.size!==void 0)return{};var v=o.size!==void 0?o.size:Sa(o.defaultSize,o.minSize,o.maxSize,i.draggedSize);o.size!==void 0&&(u.draggedSize=v);var f=o.primary==="first";return u[f?"pane1Size":"pane2Size"]=v,u[f?"pane2Size":"pane1Size"]=void 0,u.instanceProps={size:o.size},u}}]),n}(a.Component);zn.propTypes={allowResize:me().bool,children:me().arrayOf(me().node).isRequired,className:me().string,primary:me().oneOf(["first","second"]),minSize:me().oneOfType([me().string,me().number]),maxSize:me().oneOfType([me().string,me().number]),defaultSize:me().oneOfType([me().string,me().number]),size:me().oneOfType([me().string,me().number]),split:me().oneOf(["vertical","horizontal"]),onDragStarted:me().func,onDragFinished:me().func,onChange:me().func,onResizerClick:me().func,onResizerDoubleClick:me().func,style:nn(),resizerStyle:nn(),paneClassName:me().string,pane1ClassName:me().string,pane2ClassName:me().string,paneStyle:nn(),pane1Style:nn(),pane2Style:nn(),resizerClassName:me().string,step:me().number},zn.defaultProps={allowResize:!0,minSize:50,primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""},Gi(zn);var Xi=zn,Ji=g(83399),qi=g(88880),el=g(99913),tl=function(t){var n=t.dataSource,r=t.activeChange,o=t.active,i=t.onSelectedChange,u=t.selectedKeys;console.log("render table");var s=(0,Qe.md)(),v=function(d){r&&r(d)},f=[{dataIndex:"id",title:"ID",width:60},{dataIndex:"name",title:"\u7528\u4F8B\u540D\u79F0",ellipsis:!0,render:function(d,c){return(0,l.jsx)(el.Z,{children:c.id===o?(0,l.jsx)(ke.Z.Link,{children:d}):d})}},{title:"\u6807\u7B7E",ellipsis:!0,width:150,render:function(d){if(d.labels!==""){var c=d.labels.split(",").map(function(h){return(0,l.jsx)(wt.Gm,{children:h},h)});return(0,l.jsx)(qi.Z,{list:c})}return"-"}},{title:"\u4F18\u5148\u7EA7",width:80,render:function(d){return(0,l.jsx)(or.Fk,(0,B.Z)({},d))}}];return(0,l.jsx)(Ji.k,(0,B.Z)((0,B.Z)({},t),{},{rowSelection:{selectedRowKeys:u,onChange:function(d){i&&i(d)},getCheckboxProps:function(d){return{disabled:!s.canCurrentTester(d.creator)}}},onRow:function(d){return{onClick:function(h){return v(d)},onDoubleClick:function(h){},onContextMenu:function(h){},onMouseEnter:function(h){},onMouseLeave:function(h){}}},columns:f,rowKey:"id",dataSource:n,size:"small",pagination:!1}))},nl=a.memo(tl),pc=g(86591),rl=g(30381),$t=g.n(rl),Wn=g(80334),al={getNow:function(){return $t()()},getFixedDate:function(t){return $t()(t,"YYYY-MM-DD")},getEndDate:function(t){var n=t.clone();return n.endOf("month")},getWeekDay:function(t){var n=t.clone().locale("en_US");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},addYear:function(t,n){var r=t.clone();return r.add(n,"year")},addMonth:function(t,n){var r=t.clone();return r.add(n,"month")},addDate:function(t,n){var r=t.clone();return r.add(n,"day")},setYear:function(t,n){var r=t.clone();return r.year(n)},setMonth:function(t,n){var r=t.clone();return r.month(n)},setDate:function(t,n){var r=t.clone();return r.date(n)},setHour:function(t,n){var r=t.clone();return r.hour(n)},setMinute:function(t,n){var r=t.clone();return r.minute(n)},setSecond:function(t,n){var r=t.clone();return r.second(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){var n=$t()().locale(t);return n.localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){var r=n.clone(),o=r.locale(t);return o.weekday(0)},getWeek:function(t,n){var r=n.clone(),o=r.locale(t);return o.week()},getShortWeekDays:function(t){var n=$t()().locale(t);return n.localeData().weekdaysMin()},getShortMonths:function(t){var n=$t()().locale(t);return n.localeData().monthsShort()},format:function(t,n,r){var o=n.clone(),i=o.locale(t);return i.format(r)},parse:function(t,n,r){for(var o=[],i=0;i1&&(u=t.addDate(u,-7)),u}function On(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,r*10);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function gt(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return typeof o=="function"?o(e):n.locale.format(r.locale,e,o)}function Na(e,t){var n=t.generateConfig,r=t.locale,o=t.formatList;return!e||typeof o[0]=="function"?null:n.locale.parse(r.locale,e,o)}function pr(e){var t=e.cellDate,n=e.mode,r=e.disabledDate,o=e.generateConfig;if(!r)return!1;var i=function(m,S,p){for(var b=S;b<=p;){var y=void 0;switch(m){case"date":{if(y=o.setDate(t,b),!r(y))return!1;break}case"month":{if(y=o.setMonth(t,b),!pr({cellDate:y,mode:"month",generateConfig:o,disabledDate:r}))return!1;break}case"year":{if(y=o.setYear(t,b),!pr({cellDate:y,mode:"year",generateConfig:o,disabledDate:r}))return!1;break}}b+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":{var u=1,s=o.getDate(o.getEndDate(t));return i("date",u,s)}case"quarter":{var v=Math.floor(o.getMonth(t)/3)*3,f=v+2;return i("month",v,f)}case"year":return i("month",0,11);case"decade":{var C=o.getYear(t),d=Math.floor(C/Ft)*Ft,c=d+Ft-1;return i("year",d,c)}}}function Nl(e){var t=a.useContext(kt),n=t.hideHeader;if(n)return null;var r=e.prefixCls,o=e.generateConfig,i=e.locale,u=e.value,s=e.format,v="".concat(r,"-header");return a.createElement(vn,{prefixCls:v},u?gt(u,{locale:i,format:s,generateConfig:o}):"\xA0")}var Al=Nl,Aa=g(56982);function Ll(e){var t=e.prefixCls,n=e.units,r=e.onSelect,o=e.value,i=e.active,u=e.hideDisabledOptions,s="".concat(t,"-cell"),v=a.useContext(kt),f=v.open,C=(0,a.useRef)(null),d=(0,a.useRef)(new Map),c=(0,a.useRef)();return(0,a.useLayoutEffect)(function(){var h=d.current.get(o);h&&f!==!1&&mr(C.current,h.offsetTop,120)},[o]),(0,a.useLayoutEffect)(function(){if(f){var h=d.current.get(o);h&&(c.current=Rl(h,function(){mr(C.current,h.offsetTop,0)}))}return function(){var m;(m=c.current)===null||m===void 0||m.call(c)}},[f]),a.createElement("ul",{className:et()("".concat(t,"-column"),(0,ee.Z)({},"".concat(t,"-column-active"),i)),ref:C,style:{position:"relative"}},n.map(function(h){var m;return u&&h.disabled?null:a.createElement("li",{key:h.value,ref:function(p){d.current.set(h.value,p)},className:et()(s,(m={},(0,ee.Z)(m,"".concat(s,"-disabled"),h.disabled),(0,ee.Z)(m,"".concat(s,"-selected"),o===h.value),m)),onClick:function(){h.disabled||r(h.value)}},a.createElement("div",{className:"".concat(s,"-inner")},h.label))}))}var $n=Ll;function La(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length=12,$%=12);var ce=a.useMemo(function(){if(!f)return[!1,!1];var F=[!0,!0];return Q.forEach(function(W){var P=W.disabled,R=W.value;P||(R>=12?F[1]=!1:F[0]=!1)}),F},[f,Q]),fe=(0,be.Z)(ce,2),de=fe[0],ie=fe[1],ge=a.useMemo(function(){return f?Q.filter(M?function(F){return F.value>=12}:function(F){return F.value<12}).map(function(F){var W=F.value%12,P=W===0?"12":La(W,2);return(0,Re.Z)((0,Re.Z)({},F),{},{label:P,value:W})}):Q},[f,M,Q]),Be=Cr(0,59,h,ne&&ne(Y)),Ze=Cr(0,59,S,oe&&oe(Y,L));r.current={onUpDown:function(W){var P=D[o];if(P)for(var R=P.units.findIndex(function(re){return re.value===P.value}),E=P.units.length,T=1;T2&&arguments[2]!==void 0?arguments[2]:!1;(Ye===S||bt)&&(ye(U),Z&&Z(U),Be&&Be(U,Oe),k&&!yn(s,U,G)&&!(c==null?void 0:c(U))&&k(U))},gn=function(U){return E.current&&E.current.onKeyDown?([_e.Z.LEFT,_e.Z.RIGHT,_e.Z.UP,_e.Z.DOWN,_e.Z.PAGE_UP,_e.Z.PAGE_DOWN,_e.Z.ENTER].includes(U.which)&&U.preventDefault(),E.current.onKeyDown(U)):((0,Wn.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},Jt=function(U){E.current&&E.current.onBlur&&E.current.onBlur(U)};ie&&W!=="right"&&(ie.current={onKeyDown:gn,onClose:function(){E.current&&E.current.onClose&&E.current.onClose()}}),a.useEffect(function(){v&&!T.current&&Ie(v)},[v]),a.useEffect(function(){T.current=!1},[]);var J,pt=(0,Re.Z)((0,Re.Z)({},e),{},{operationRef:E,prefixCls:r,viewDate:Tt,value:G,onViewDateChange:ae,sourceMode:ct,onPanelChange:Rt,disabledDate:c});switch(delete pt.onChange,delete pt.onSelect,Ye){case"decade":J=a.createElement(zl,(0,K.Z)({},pt,{onSelect:function(U,Oe){ae(U),at(U,Oe)}}));break;case"year":J=a.createElement(Ou,(0,K.Z)({},pt,{onSelect:function(U,Oe){ae(U),at(U,Oe)}}));break;case"month":J=a.createElement(du,(0,K.Z)({},pt,{onSelect:function(U,Oe){ae(U),at(U,Oe)}}));break;case"quarter":J=a.createElement(Su,(0,K.Z)({},pt,{onSelect:function(U,Oe){ae(U),at(U,Oe)}}));break;case"week":J=a.createElement(au,(0,K.Z)({},pt,{onSelect:function(U,Oe){ae(U),at(U,Oe)}}));break;case"time":delete pt.showTime,J=a.createElement(Ya,(0,K.Z)({},pt,(0,bn.Z)(x)==="object"?x:null,{onSelect:function(U,Oe){ae(U),at(U,Oe)}}));break;default:x?J=a.createElement(nu,(0,K.Z)({},pt,{onSelect:function(U,Oe){ae(U),at(U,Oe)}})):J=a.createElement(Sr,(0,K.Z)({},pt,{onSelect:function(U,Oe){ae(U),at(U,Oe)}}))}var St,He,jt=function(){var U=s.getNow(),Oe=Ml(s.getHour(U),s.getMinute(U),s.getSecond(U),Q?se:1,ce?ne:1,fe?z:1),bt=Ea(s,U,Oe[0],Oe[1],Oe[2]);at(bt,"submit")};Ze||(St=_a(r,Ye,O),He=Ka({prefixCls:r,components:H,needConfirmButton:V,okDisabled:!G||c&&c(G),locale:u,showNow:y,onNow:V&&jt,onOk:function(){G&&(at(G,"submit",!0),L&&L(G))}}));var qt;if(w&&Ye==="date"&&S==="date"&&!x){var lt=s.getNow(),pn="".concat(r,"-today-btn"),en=c&&c(lt);qt=a.createElement("a",{className:et()(pn,en&&"".concat(pn,"-disabled")),"aria-disabled":en,onClick:function(){en||at(lt,"mouse",!0)}},u.today)}return a.createElement(kt.Provider,{value:(0,Re.Z)((0,Re.Z)({},de),{},{mode:Ye,hideHeader:"hideHeader"in e?D:de.hideHeader,hidePrevBtn:F&&W==="right",hideNextBtn:F&&W==="left"})},a.createElement("div",{tabIndex:b,className:et()("".concat(r,"-panel"),o,(t={},(0,ee.Z)(t,"".concat(r,"-panel-has-range"),P&&P[0]&&P[1]),(0,ee.Z)(t,"".concat(r,"-panel-has-range-hover"),R&&R[0]&&R[1]),(0,ee.Z)(t,"".concat(r,"-panel-rtl"),_==="rtl"),t)),style:i,onKeyDown:gn,onBlur:Jt,onMouseDown:Y,ref:ge},J,St||He||qt?a.createElement("div",{className:"".concat(r,"-footer")},St,He,qt):null))}var Qa=Ru,Du=g(18481),Bu={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Zu(e){var t,n=e.prefixCls,r=e.popupElement,o=e.popupStyle,i=e.visible,u=e.dropdownClassName,s=e.dropdownAlign,v=e.transitionName,f=e.getPopupContainer,C=e.children,d=e.range,c=e.popupPlacement,h=e.direction,m="".concat(n,"-dropdown"),S=function(){return c!==void 0?c:h==="rtl"?"bottomRight":"bottomLeft"};return a.createElement(Du.Z,{showAction:[],hideAction:[],popupPlacement:S(),builtinPlacements:Bu,prefixCls:m,popupTransitionName:v,popup:r,popupAlign:s,popupVisible:i,popupClassName:et()(u,(t={},(0,ee.Z)(t,"".concat(m,"-range"),d),(0,ee.Z)(t,"".concat(m,"-rtl"),h==="rtl"),t)),popupStyle:o,getPopupContainer:f},C)}var Xa=Zu;function br(e){var t=e.open,n=e.value,r=e.isClickOutside,o=e.triggerOpen,i=e.forwardKeyDown,u=e.onKeyDown,s=e.blurToCancel,v=e.onSubmit,f=e.onCancel,C=e.onFocus,d=e.onBlur,c=(0,a.useState)(!1),h=(0,be.Z)(c,2),m=h[0],S=h[1],p=(0,a.useState)(!1),b=(0,be.Z)(p,2),y=b[0],x=b[1],w=(0,a.useRef)(!1),O=(0,a.useRef)(!1),D=(0,a.useRef)(!1),Z={onMouseDown:function(){S(!0),o(!0)},onKeyDown:function(M){var Y=function(){D.current=!0};if(u(M,Y),!D.current){switch(M.which){case _e.Z.ENTER:{t?v()!==!1&&S(!0):o(!0),M.preventDefault();return}case _e.Z.TAB:{m&&t&&!M.shiftKey?(S(!1),M.preventDefault()):!m&&t&&!i(M)&&M.shiftKey&&(S(!0),M.preventDefault());return}case _e.Z.ESC:{S(!0),f();return}}!t&&![_e.Z.SHIFT].includes(M.which)?o(!0):m||i(M)}},onFocus:function(M){S(!0),x(!0),C&&C(M)},onBlur:function(M){if(w.current||!r(document.activeElement)){w.current=!1;return}s?setTimeout(function(){for(var Y=document,$=Y.activeElement;$&&$.shadowRoot;)$=$.shadowRoot.activeElement;r($)&&f()},0):t&&(o(!1),O.current&&v()),x(!1),d&&d(M)}};return(0,a.useEffect)(function(){O.current=!1},[t]),(0,a.useEffect)(function(){O.current=!0},[n]),(0,a.useEffect)(function(){return Dl(function(k){var M=Bl(k);if(t){var Y=r(M);Y?(!y||Y)&&o(!1):(w.current=!0,requestAnimationFrame(function(){w.current=!1}))}})}),[Z,{focused:y,typing:m}]}function kr(e){var t=e.valueTexts,n=e.onTextChange,r=a.useState(""),o=(0,be.Z)(r,2),i=o[0],u=o[1],s=a.useRef([]);s.current=t;function v(C){u(C),n(C)}function f(){u(s.current[0])}return a.useEffect(function(){t.every(function(C){return C!==i})&&f()},[t.join("||")]),[i,v,f]}var Eu=g(96774),wu=g.n(Eu);function Hn(e,t){var n=t.formatList,r=t.generateConfig,o=t.locale;return(0,Aa.Z)(function(){if(!e)return[[""],""];for(var i="",u=[],s=0;s1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(f.current),b){v(p);return}f.current=requestAnimationFrame(function(){v(p)})}var d=Hn(s,{formatList:n,generateConfig:r,locale:o}),c=(0,be.Z)(d,2),h=c[1];function m(p){C(p)}function S(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;C(null,p)}return(0,a.useEffect)(function(){S(!0)},[e]),(0,a.useEffect)(function(){return function(){return cancelAnimationFrame(f.current)}},[]),[h,m,S]}function Cc(e){var t=e.picker,n=e.disabledHours,r=e.disabledMinutes,o=e.disabledSeconds;t==="time"&&(n||r||o)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function Pu(e){var t,n=e.prefixCls,r=n===void 0?"rc-picker":n,o=e.id,i=e.tabIndex,u=e.style,s=e.className,v=e.dropdownClassName,f=e.dropdownAlign,C=e.popupStyle,d=e.transitionName,c=e.generateConfig,h=e.locale,m=e.inputReadOnly,S=e.allowClear,p=e.autoFocus,b=e.showTime,y=e.picker,x=y===void 0?"date":y,w=e.format,O=e.use12Hours,D=e.value,Z=e.defaultValue,k=e.open,M=e.defaultOpen,Y=e.defaultOpenValue,$=e.suffixIcon,L=e.clearIcon,H=e.disabled,_=e.disabledDate,ue=e.placeholder,se=e.getPopupContainer,he=e.pickerRef,ne=e.panelRender,oe=e.onChange,z=e.onOpenChange,V=e.onFocus,Q=e.onBlur,ce=e.onMouseDown,fe=e.onMouseUp,de=e.onMouseEnter,ie=e.onMouseLeave,ge=e.onContextMenu,Be=e.onClick,Ze=e.onKeyDown,le=e.onSelect,Te=e.direction,F=e.autoComplete,W=F===void 0?"off":F,P=e.inputRender,R=a.useRef(null),E=x==="date"&&!!b||x==="time",T=Va(Ta(w,x,b,O)),j=a.useRef(null),re=a.useRef(null),G=a.useRef(null),ye=(0,Pt.Z)(null,{value:D,defaultValue:Z}),Ke=(0,be.Z)(ye,2),tt=Ke[0],Tt=Ke[1],Ie=a.useState(tt),ae=(0,be.Z)(Ie,2),nt=ae[0],Ae=ae[1],$e=a.useRef(null),Ye=(0,Pt.Z)(!1,{value:k,defaultValue:M,postState:function(Ce){return H?!1:Ce},onChange:function(Ce){z&&z(Ce),!Ce&&$e.current&&$e.current.onClose&&$e.current.onClose()}}),rt=(0,be.Z)(Ye,2),Xe=rt[0],st=rt[1],ct=Hn(nt,{formatList:T,generateConfig:c,locale:h}),zt=(0,be.Z)(ct,2),Rt=zt[0],at=zt[1],gn=kr({valueTexts:Rt,onTextChange:function(Ce){var Dt=Na(Ce,{locale:h,formatList:T,generateConfig:c});Dt&&(!_||!_(Dt))&&Ae(Dt)}}),Jt=(0,be.Z)(gn,3),J=Jt[0],pt=Jt[1],St=Jt[2],He=function(Ce){Ae(Ce),Tt(Ce),oe&&!yn(c,tt,Ce)&&oe(Ce,Ce?gt(Ce,{generateConfig:c,locale:h,format:T[0]}):"")},jt=function(Ce){H&&Ce||st(Ce)},qt=function(Ce){return Xe&&$e.current&&$e.current.onKeyDown?$e.current.onKeyDown(Ce):((0,Wn.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},lt=function(){fe&&fe.apply(void 0,arguments),R.current&&(R.current.focus(),jt(!0))},pn=br({blurToCancel:E,open:Xe,value:J,triggerOpen:jt,forwardKeyDown:qt,isClickOutside:function(Ce){return!Wa([j.current,re.current,G.current],Ce)},onSubmit:function(){return!nt||_&&_(nt)?!1:(He(nt),jt(!1),St(),!0)},onCancel:function(){jt(!1),Ae(tt),St()},onKeyDown:function(Ce,Dt){Ze==null||Ze(Ce,Dt)},onFocus:V,onBlur:Q}),en=(0,be.Z)(pn,2),Je=en[0],U=en[1],Oe=U.focused,bt=U.typing;a.useEffect(function(){Xe||(Ae(tt),!Rt.length||Rt[0]===""?pt(""):at!==J&&St())},[Xe,Rt]),a.useEffect(function(){Xe||St()},[x]),a.useEffect(function(){Ae(tt)},[tt]),he&&(he.current={focus:function(){R.current&&R.current.focus()},blur:function(){R.current&&R.current.blur()}});var _n=xr(J,{formatList:T,generateConfig:c,locale:h}),qe=(0,be.Z)(_n,3),Ut=qe[0],yr=qe[1],Rn=qe[2],an=(0,Re.Z)((0,Re.Z)({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Cn=a.createElement(Qa,(0,K.Z)({},an,{generateConfig:c,className:et()((0,ee.Z)({},"".concat(r,"-panel-focused"),!bt)),value:nt,locale:h,tabIndex:-1,onSelect:function(Ce){le==null||le(Ce),Ae(Ce)},direction:Te,onPanelChange:function(Ce,Dt){var Zn=e.onPanelChange;Rn(!0),Zn==null||Zn(Ce,Dt)}}));ne&&(Cn=ne(Cn));var Or=a.createElement("div",{className:"".concat(r,"-panel-container"),onMouseDown:function(Ce){Ce.preventDefault()}},Cn),Kn;$&&(Kn=a.createElement("span",{className:"".concat(r,"-suffix")},$));var Dn;S&&tt&&!H&&(Dn=a.createElement("span",{onMouseDown:function(Ce){Ce.preventDefault(),Ce.stopPropagation()},onMouseUp:function(Ce){Ce.preventDefault(),Ce.stopPropagation(),He(null),jt(!1)},className:"".concat(r,"-clear"),role:"button"},L||a.createElement("span",{className:"".concat(r,"-clear-btn")})));var Bn=(0,Re.Z)((0,Re.Z)((0,Re.Z)({id:o,tabIndex:i,disabled:H,readOnly:m||typeof T[0]=="function"||!bt,value:Ut||J,onChange:function(Ce){pt(Ce.target.value)},autoFocus:p,placeholder:ue,ref:R,title:J},Je),{},{size:za(x,T[0],c)},$a(e)),{},{autoComplete:W}),Qn=P?P(Bn):a.createElement("input",Bn),Rr=function(Ce,Dt){(Dt==="submit"||Dt!=="key"&&!E)&&(He(Ce),jt(!1))},Xn=Te==="rtl"?"bottomRight":"bottomLeft";return a.createElement(kt.Provider,{value:{operationRef:$e,hideHeader:x==="time",panelRef:j,onSelect:Rr,open:Xe,defaultOpenValue:Y,onDateMouseEnter:yr,onDateMouseLeave:Rn}},a.createElement(Xa,{visible:Xe,popupElement:Or,popupStyle:C,prefixCls:r,dropdownClassName:v,dropdownAlign:f,getPopupContainer:se,transitionName:d,popupPlacement:Xn,direction:Te},a.createElement("div",{ref:G,className:et()(r,s,(t={},(0,ee.Z)(t,"".concat(r,"-disabled"),H),(0,ee.Z)(t,"".concat(r,"-focused"),Oe),(0,ee.Z)(t,"".concat(r,"-rtl"),Te==="rtl"),t)),style:u,onMouseDown:ce,onMouseUp:lt,onMouseEnter:de,onMouseLeave:ie,onContextMenu:ge,onClick:Be},a.createElement("div",{className:et()("".concat(r,"-input"),(0,ee.Z)({},"".concat(r,"-input-placeholder"),!!Ut)),ref:re},Qn,Kn,Dn))))}var Fu=function(e){(0,Ba.Z)(n,e);var t=(0,Za.Z)(n);function n(){var r;(0,Ra.Z)(this,n);for(var o=arguments.length,i=new Array(o),u=0;uh(C);case"month":return c(p)>c(C);case"week":return d(p)>d(C);default:return!Ht(v,p,C)&&v.isAfter(p,C)}return!1},[u,s[1],C,t]),S=a.useCallback(function(p){if(u&&u(p))return!0;if(s[0]&&f)return!Ht(v,p,C)&&v.isAfter(f,p);if(n&&f)switch(r){case"quarter":return h(p)0&&arguments[0]!==void 0?arguments[0]:!1,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null;Pe&&Mn&&Mn[0]&&Mn[1]&&m.isAfter(Mn[1],Mn[0])&&(q=Mn);var xe=D;if(D&&(0,bn.Z)(D)==="object"&&D.defaultValue){var ut=D.defaultValue;xe=(0,Re.Z)((0,Re.Z)({},D),{},{defaultValue:De(ut,J)||void 0})}var ln=null;return he&&(ln=function(Wt,It){return he(Wt,It,{range:J?"end":"start"})}),a.createElement(hn.Provider,{value:{inRange:!0,panelPosition:Se,rangedValue:Fs||qe,hoverRangedValue:q}},a.createElement(Qa,(0,K.Z)({},e,I,{dateRender:ln,showTime:xe,mode:an[J],generateConfig:m,style:void 0,direction:tt,disabledDate:J===0?Bn:Qn,disabledTime:function(Wt){return se?se(Wt,J===0?"start":"end"):!1},className:et()((0,ee.Z)({},"".concat(i,"-panel-focused"),J===0?!zo:!No)),value:De(qe,J),locale:S,tabIndex:-1,onPanelChange:function(Wt,It){J===0&&wr(!0),J===1&&Fr(!0),Or(Ot(an,It,J),Ot(qe,Wt,J));var _t=Wt;Se==="right"&&an[J]===It&&(_t=On(_t,It,m,-1)),Oe(_t,J)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:J===0?De(qe,1):De(qe,0)})))}var on=0,Ao=0;J&&rt.current&&st.current&&Ye.current&&(on=rt.current.offsetWidth+st.current.offsetWidth,Ye.current.offsetWidth&&Rt.current.offsetWidth&&on>Ye.current.offsetWidth-Rt.current.offsetWidth-(tt==="rtl"||Rt.current.offsetLeft>on?0:Rt.current.offsetLeft)&&(Ao=on));var Xs=tt==="rtl"?{right:on}:{left:on};function Js(){var Se,I=_a(i,an[J],ge),q=Ka({prefixCls:i,components:ye,needConfirmButton:nt,okDisabled:!De(qe,J)||ue&&ue(qe[J]),locale:S,rangeList:Qs,onOk:function(){De(qe,J)&&(En(qe,J),re&&re(qe))}});if(O!=="time"&&!D){var xe=U(J),ut=On(xe,O,m),ln=an[J],Gt=ln===O,Wt=Tr(Gt?"left":!1,{pickerValue:xe,onPickerValueChange:function(xt){Oe(xt,J)}}),It=Tr("right",{pickerValue:ut,onPickerValueChange:function(xt){Oe(On(xt,O,m,-1),J)}});tt==="rtl"?Se=a.createElement(a.Fragment,null,It,Gt&&Wt):Se=a.createElement(a.Fragment,null,Wt,Gt&&It)}else Se=Tr();var _t=a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(i,"-panels")},Se),(I||q)&&a.createElement("div",{className:"".concat(i,"-footer")},I,q));return ne&&(_t=ne(_t)),a.createElement("div",{className:"".concat(i,"-panel-container"),style:{marginLeft:Ao},ref:Ye,onMouseDown:function(xt){xt.preventDefault()}},_t)}var qs=a.createElement("div",{className:et()("".concat(i,"-range-wrapper"),"".concat(i,"-").concat(O,"-range-wrapper")),style:{minWidth:xs}},a.createElement("div",{ref:Rt,className:"".concat(i,"-range-arrow"),style:Xs}),Js()),Lo;Q&&(Lo=a.createElement("span",{className:"".concat(i,"-suffix")},Q));var Vo;V&&(De(lt,0)&&!He[0]||De(lt,1)&&!He[1])&&(Vo=a.createElement("span",{onMouseDown:function(I){I.preventDefault(),I.stopPropagation()},onMouseUp:function(I){I.preventDefault(),I.stopPropagation();var q=lt;He[0]||(q=Ot(q,null,0)),He[1]||(q=Ot(q,null,1)),En(q,null),Sn(!1,J)},className:"".concat(i,"-clear")},ce||a.createElement("span",{className:"".concat(i,"-clear-btn")})));var $o={size:za(O,at[0],m)},zr=0,Wr=0;rt.current&&Xe.current&&st.current&&(J===0?Wr=rt.current.offsetWidth:(zr=on,Wr=Xe.current.offsetWidth));var ec=tt==="rtl"?{right:zr}:{left:zr},tc=function(I,q){var xe=Ot(qe,I,J);q==="submit"||q!=="key"&&!nt?(En(xe,J),J===0?wr():Fr()):Ut(xe)};return a.createElement(kt.Provider,{value:{operationRef:St,hideHeader:O==="time",onDateMouseEnter:Ns,onDateMouseLeave:As,hideRanges:!0,onSelect:tc,open:Pe}},a.createElement(Xa,{visible:Pe,popupElement:qs,popupStyle:f,prefixCls:i,dropdownClassName:C,dropdownAlign:c,getPopupContainer:h,transitionName:d,range:!0,direction:tt},a.createElement("div",(0,K.Z)({ref:$e,className:et()(i,"".concat(i,"-range"),v,(t={},(0,ee.Z)(t,"".concat(i,"-disabled"),He[0]&&He[1]),(0,ee.Z)(t,"".concat(i,"-focused"),J===0?To:Io),(0,ee.Z)(t,"".concat(i,"-rtl"),tt==="rtl"),t)),style:s,onClick:Hs,onMouseEnter:E,onMouseLeave:T,onMouseDown:Us,onMouseUp:R},$a(e)),a.createElement("div",{className:et()("".concat(i,"-input"),(n={},(0,ee.Z)(n,"".concat(i,"-input-active"),J===0),(0,ee.Z)(n,"".concat(i,"-input-placeholder"),!!Zo),n)),ref:rt},a.createElement("input",(0,K.Z)({id:u,disabled:He[0],readOnly:de||typeof at[0]=="function"||!zo,value:Zo||er,onChange:function(I){bo(I.target.value)},autoFocus:b,placeholder:De(p,0)||"",ref:ct},Vs,$o,{autoComplete:ae}))),a.createElement("div",{className:"".concat(i,"-range-separator"),ref:st},M),a.createElement("div",{className:et()("".concat(i,"-input"),(r={},(0,ee.Z)(r,"".concat(i,"-input-active"),J===1),(0,ee.Z)(r,"".concat(i,"-input-placeholder"),!!Eo),r)),ref:Xe},a.createElement("input",(0,K.Z)({disabled:He[1],readOnly:de||typeof at[0]=="function"||!No,value:Eo||tr,onChange:function(I){xo(I.target.value)},placeholder:De(p,1)||"",ref:zt},Ys,$o,{autoComplete:ae}))),a.createElement("div",{className:"".concat(i,"-active-bar"),style:(0,Re.Z)((0,Re.Z)({},ec),{},{width:Wr,position:"absolute"})}),Lo,Vo)))}var Au=function(e){(0,Ba.Z)(n,e);var t=(0,Za.Z)(n);function n(){var r;(0,Ra.Z)(this,n);for(var o=arguments.length,i=new Array(o),u=0;u1&&(0,l.jsx)(rs,{style:{color:"#E02020",cursor:"pointer"},onClick:function(){return b(D)}})}),(0,l.jsx)(Qt.Z,{span:6,children:(0,l.jsx)(Vt.Z,{style:{width:"100%"},value:O.name,options:m,onChange:function(k){return p(k,D)}})}),(0,l.jsx)(Qt.Z,{span:16,children:y(O,D)})]})},O.name)})}),(0,l.jsx)(ze.Z,{children:d.length!==o.length&&(0,l.jsx)("span",{onClick:w,children:(0,l.jsx)(ke.Z.Link,{children:(0,l.jsxs)(we.Z,{children:[(0,l.jsx)(is,{}),"\u6DFB\u52A0\u6761\u4EF6"]})})})})]})},so=ss,co,fo,cs="YYYY-MM-DD",ds=We.ZP.div(co||(co=(0,pe.Z)([` - padding: 12px; -`]))),fs=We.ZP.div(fo||(fo=(0,pe.Z)([` - padding: 16px; - background-color: #FAFAFA; -`]))),vs=function(t){var n=t.onSizeChange,r=(0,Ne.l)(),o=r.suites,i=r.labels,u=[{label:"\u6D4B\u8BD5\u5957",name:"suite_name",mode:"multiple",list:o.map(function(C){return(0,B.Z)((0,B.Z)({},C),{},{value:C.name,label:C.name})})},{label:"\u4F18\u5148\u7EA7",name:"priority",mode:"multiple",list:je.$4.map(function(C){return{value:C,label:"P".concat(C)}})},{label:"\u6807\u7B7E",mode:"multiple",name:"labels",list:i.map(function(C){return(0,B.Z)((0,B.Z)({},C),{},{value:C.name,label:C.name})})},{label:"\u6D4B\u8BD5\u7C7B\u578B",name:"type",list:je.pD},{label:"\u8FD0\u884C\u65B9\u5F0F",name:"run_method",list:je.B9},{label:"\u8FD0\u884C\u6A21\u5F0F",name:"run_model",list:je.FA},{label:"\u72B6\u6001",name:"is_available",list:je.fb},{label:"\u8BBE\u5907\u7C7B\u578B",name:"device_type",list:je.bv,mode:"multiple"},{label:"\u8BBE\u5907\u67B6\u6784",name:"device_arch",mode:"multiple",list:je.OA},{label:"\u7528\u4F8B\u540D\u79F0",name:"name",children:(0,l.jsx)(Ve.Z,{placeholder:"\u8BF7\u8F93\u5165"})},{label:"\u521B\u5EFA\u4EBA",name:"creator",children:(0,l.jsx)(Vt.Z,{placeholder:"\u8BF7\u9009\u62E9"})},{label:"\u521B\u5EFA\u65F6\u95F4",name:"created_at",children:(0,l.jsx)(qu.RangePicker,{format:cs})}],s=[{name:"type",value:void 0},{name:"priority",value:void 0},{name:"suite_name",value:void 0},{name:"labels",value:void 0}],v=a.useRef(null),f=(0,Pn.Z)(v);return a.useEffect(function(){n&&n(f)},[f]),(0,l.jsx)(ds,{ref:v,children:(0,l.jsx)(fs,{children:(0,l.jsx)(so,(0,B.Z)((0,B.Z)({},t),{},{defaultValue:s,columns:u}))})})},ms=vs,hs=function(t,n){var r=t.onOk,o=(0,Ne.l)(),i=o.suites,u=o.labels,s=a.useState(!1),v=(0,N.Z)(s,2),f=v[0],C=v[1],d=a.useState(!1),c=(0,N.Z)(d,2),h=c[0],m=c[1],S=a.useState(void 0),p=(0,N.Z)(S,2),b=p[0],y=p[1],x=a.useState(void 0),w=(0,N.Z)(x,2),O=w[0],D=w[1],Z=[{label:"\u6D4B\u8BD5\u5957",name:"suite_name",list:i.map(function(L){return(0,B.Z)((0,B.Z)({},L),{},{value:L.name,label:L.name})})},{label:"\u4F18\u5148\u7EA7",name:"priority",list:je.$4.map(function(L){return{value:L,label:"P".concat(L)}})},{label:"\u6807\u7B7E",mode:"multiple",name:"labels",list:u.map(function(L){return(0,B.Z)((0,B.Z)({},L),{},{value:L.name,label:L.name})})},{label:"\u6D4B\u8BD5\u7C7B\u578B",name:"type",list:je.pD.map(function(L){return(0,B.Z)((0,B.Z)({},L),{},{label:L.label.replace("\u6D4B\u8BD5","")})})},{label:"\u8FD0\u884C\u6A21\u5F0F",name:"run_model",list:je.FA},{label:"\u72B6\u6001",name:"is_available",list:je.fb}];a.useImperativeHandle(n,function(){return{show:function(H){y(H),C(!0)}}});var k=function(){C(!1),m(!1),y(void 0)},M=function(){var L=(0,te.Z)(A().mark(function H(){var _,ue,se;return A().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(!h){ne.next=2;break}return ne.abrupt("return");case 2:return m(!0),ne.next=5,(0,X.Bq)((0,B.Z)({case_ids:b},O));case 5:if(_=ne.sent,ue=_.code,se=_.msg,m(!1),ue===200){ne.next=11;break}return ne.abrupt("return",Me.default.error(se));case 11:r(),k();case 13:case"end":return ne.stop()}},H)}));return function(){return L.apply(this,arguments)}}(),Y=function(){var L=(0,te.Z)(A().mark(function H(_){return A().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:D(_);case 1:case"end":return se.stop()}},H)}));return function(_){return L.apply(this,arguments)}}(),$=[{name:"priority",value:void 0},{name:"suite_name",value:void 0},{name:"labels",value:void 0}];return(0,l.jsx)(dn.Z,{visible:f,title:"\u6279\u91CF\u7F16\u8F91",width:"40%",footer:(0,l.jsxs)(we.Z,{align:"end",children:[(0,l.jsx)(it.Z,{onClick:k,children:"\u53D6\u6D88"}),(0,l.jsx)(it.Z,{type:"primary",disabled:h,onClick:M,children:"\u786E\u5B9A"})]}),onCancel:k,children:(0,l.jsx)(so,{onChange:Y,columns:Z,wrapperCol:24,defaultValue:$})})},gs=a.forwardRef(hs),vo,mo="YYYY-MM-DD",ps=(0,We.ZP)(ze.Z)(vo||(vo=(0,pe.Z)([` - background-color: #ffffff; - height: `,`; - - .SplitPane { position: unset!important;} - - .Resizer { - background: #000; - opacity: 0.06; - z-index: 1; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - box-sizing: border-box; - -moz-background-clip: padding; - -webkit-background-clip: padding; - background-clip: padding-box; - } - - .Resizer:hover { - -webkit-transition: all 2s ease; - transition: all 2s ease; - } - - .Resizer.horizontal { - height: 11px; - margin: -5px 0; - border-top: 5px solid rgba(255, 255, 255, 0.06); - border-bottom: 5px solid rgba(255, 255, 255, 0.06); - cursor: row-resize; - width: 100%; - } - - .Resizer.horizontal:hover { - border-top: 5px solid rgba(0, 0, 0, 0.06); - border-bottom: 5px solid rgba(0, 0, 0, 0.06); - } - - .Resizer.vertical { - width: 11px; - margin: 0 -5px; - border-left: 5px solid rgba(255, 255, 255, 0.06); - border-right: 5px solid rgba(255, 255, 255, 0.06); - cursor: col-resize; - } - - .Resizer.vertical:hover { - border-left: 5px solid rgba(0, 0, 0, 0.06); - border-right: 5px solid rgba(0, 0, 0, 0.06); - } - - .Resizer.disabled { - cursor: not-allowed; - } - - .Resizer.disabled:hover { - border-color: transparent; - } -`])),function(e){var t=e.height;return t}),Cs=function(t){var n,r,o,i=(0,Qe.md)(),u=(0,At.UO)(),s=u.mod_id,v={mod_id:s},f=a.useState(!0),C=(0,N.Z)(f,2),d=C[0],c=C[1],h=a.useState([]),m=(0,N.Z)(h,2),S=m[0],p=m[1],b=a.useState([]),y=(0,N.Z)(b,2),x=y[0],w=y[1],O=a.useState(null),D=(0,N.Z)(O,2),Z=D[0],k=D[1],M=a.useState(void 0),Y=(0,N.Z)(M,2),$=Y[0],L=Y[1],H=a.useState(!1),_=(0,N.Z)(H,2),ue=_[0],se=_[1],he=a.useState(null),ne=(0,N.Z)(he,2),oe=ne[0],z=ne[1],V=a.useRef(null),Q=a.useRef(null),ce=a.useRef(null),fe=a.useRef(null),de=a.useRef(null),ie=a.useRef(null),ge=a.useState(v),Be=(0,N.Z)(ge,2),Ze=Be[0],le=Be[1],Te=function(){var Ie=(0,te.Z)(A().mark(function ae(){var nt,Ae,$e,Ye,rt,Xe=arguments;return A().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return nt=Xe.length>0&&Xe[0]!==void 0?Xe[0]:Ze,Ae=Xe.length>1&&Xe[1]!==void 0?Xe[1]:!0,Ae&&c(!0),ct.next=5,(0,X.o6)(nt);case 5:if($e=ct.sent,c(!1),Ye=$e.code,rt=$e.data,Ye===200){ct.next=10;break}return ct.abrupt("return");case 10:p(rt),L($e);case 12:case"end":return ct.stop()}},ae)}));return function(){return Ie.apply(this,arguments)}}();a.useEffect(function(){if(S.length>0)if(Z&&typeof Z.id=="number"){var Ie=S.findIndex(function(ae){return ae.id===Z.id});~Ie?k(S[Ie]):k(S[0])}else k(S[0])},[S,Z]),a.useEffect(function(){return Te({mod_id:s}),function(){p([]),c(!0),w([]),se(!1),k(null)}},[s]);var F=function(){w([]),Te((0,B.Z)((0,B.Z)({},Ze),{},{mod_id:s}))},W=function(ae){var nt=(0,B.Z)({mod_id:s},ae);le(nt),Te(nt)},P=function(){var Ie=(0,te.Z)(A().mark(function ae(){var nt,Ae,$e,Ye,rt;return A().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(x.length){st.next=2;break}return st.abrupt("return",Me.default.warning("\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u7528\u4F8B\uFF01"));case 2:return st.next=4,(0,X.Jl)(x);case 4:nt=st.sent,Ae="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",$e=new Blob([nt],{type:Ae}),Ye=URL.createObjectURL($e),rt=document.createElement("a"),rt.download="".concat(Date.parse(new Date().toString()),".xlsx"),rt.href=Ye,rt.click(),URL.revokeObjectURL(Ye),Me.default.success("\u4E0B\u8F7D\u6210\u529F");case 14:case"end":return st.stop()}},ae)}));return function(){return Ie.apply(this,arguments)}}(),R=a.useRef(null),E=(0,Pn.Z)(R),T=a.useMemo(function(){if(!$)return[];var Ie=$.path,ae=Ie.split("/").filter(Boolean);return ae},[$]),j=function(ae){var nt=Object.keys(ae).reduce(function(Ae,$e){var Ye=ae[$e];if($e==="created_at"){var rt=(0,N.Z)(Ye,2),Xe=rt[0],st=rt[1];Ae.start_time=$t()(Xe).format(mo),Ae.end_time=$t()(st).format(mo)}return Ae[$e]=Ye,Ae},{});Te((0,B.Z)({mod_id:s},nt),!1)},re=(0,Pn.Z)(ie),G=ue&&oe!==null&&oe!==void 0&&oe.height?oe.height:0,ye=re!=null&&re.height?re.height:0,Ke=ye-48*2-G,tt=a.useRef(null),Tt=(n=(r=tt.current)===null||r===void 0||(o=r.pane1)===null||o===void 0?void 0:o.offsetHeight)!==null&&n!==void 0?n:0;return(0,l.jsxs)("div",{style:{height:"100%",position:"relative",overflow:"hidden"},ref:ie,children:[(0,l.jsxs)(ze.Z,{align:"middle",justify:"space-between",style:{padding:"0 12px",height:48},children:[(0,l.jsxs)(we.Z,{children:[T.length>0?T.map(function(Ie,ae){return(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)(ke.Z.Text,{strong:!0,children:Ie}),T.length-1>ae&&(0,l.jsx)(Jo.Z,{})]},ae)}):(0,l.jsx)(ke.Z.Text,{strong:!0,children:"\u6240\u6709\u7528\u4F8B"}),(0,l.jsxs)(ke.Z.Text,{strong:!0,children:["(",S.length,")"]})]}),i.canTester()&&(0,l.jsxs)(we.Z,{children:[(0,l.jsx)(it.Z,{size:"small",onClick:function(){var ae;return(ae=fe.current)===null||ae===void 0?void 0:ae.show()},children:"\u5BFC \u5165"}),(0,l.jsx)(it.Z,{size:"small",onClick:P,children:"\u5BFC \u51FA"}),(0,l.jsx)(it.Z,{size:"small",type:"primary",onClick:function(){var ae;return(ae=ce.current)===null||ae===void 0?void 0:ae.show()},children:"\u65B0\u5EFA\u7528\u4F8B"})]})]}),(0,l.jsx)(Et.Z,{style:{margin:0}}),(0,l.jsxs)(ze.Z,{align:"middle",justify:"space-between",style:{padding:"0 12px",height:48},children:[(0,l.jsx)(we.Z,{children:i.canTester()&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(it.Z,{onClick:function(){var ae;return(ae=V.current)===null||ae===void 0?void 0:ae.show(x)},size:"small",disabled:!x.length,children:"\u6279\u91CF\u79FB\u52A8"}),(0,l.jsx)(it.Z,{onClick:function(){var ae;return(ae=de.current)===null||ae===void 0?void 0:ae.show(x)},size:"small",disabled:!x.length,children:"\u6279\u91CF\u7F16\u8F91"}),(0,l.jsx)(it.Z,{onClick:function(){var ae;return(ae=Q.current)===null||ae===void 0?void 0:ae.show(x)},size:"small",disabled:!x.length,children:"\u6279\u91CF\u5220\u9664"})]})}),(0,l.jsxs)(we.Z,{children:[(0,l.jsx)(Ve.Z.Search,{size:"small",style:{width:395},autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u5B57",allowClear:!0,onSearch:function(ae){return W({key:ae})}}),(0,l.jsx)("span",{onClick:function(){return se(!ue)},children:(0,l.jsx)(ke.Z.Link,{children:(0,l.jsxs)(we.Z,{children:["\u7B5B\u9009",ue?(0,l.jsx)(ti,{}):(0,l.jsx)(_r.Z,{})]})})})]})]}),ue&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Et.Z,{style:{margin:0}}),(0,l.jsx)(ms,{onSizeChange:z,onChange:j})]}),(0,l.jsx)(Et.Z,{style:{margin:0}}),S.length===0?(0,l.jsx)(Ur.Z,{image:Ur.Z.PRESENTED_IMAGE_SIMPLE,style:{marginTop:"15%"}}):(0,l.jsx)(ps,{ref:R,height:"".concat(Ke,"px"),children:(0,l.jsxs)(Xi,{style:{height:"100%"},split:"vertical",minSize:300,maxSize:E!=null&&E.width?E.width-514:E==null?void 0:E.width,defaultSize:520,ref:tt,children:[(0,l.jsx)(nl,{dataSource:S,active:Z==null?void 0:Z.id,selectedKeys:x,onSelectedChange:w,activeChange:k,scroll:{y:Tt?Tt-34:0}}),(0,l.jsx)(Yi,{height:Tt,activeId:Z==null?void 0:Z.id,refresh:function(){Te(v)}})]})}),d&&(0,l.jsx)(sa.Z,{}),(0,l.jsx)(ri,{ref:V,onOk:F}),(0,l.jsx)(ii,{ref:Q,onOk:F}),(0,l.jsx)(gs,{ref:de,onOk:F}),(0,l.jsx)(Di,{ref:fe,onOk:F}),(0,l.jsx)(ki,{ref:ce,onOk:F})]})},Ss=Cs,Ms=function(t){var n={modules:[]},r=a.useReducer(function(c,h){switch(h.type){case"update":return(0,B.Z)((0,B.Z)({},c),h.payload)}return c},n),o=(0,N.Z)(r,2),i=o[0],u=o[1],s=(0,Qe.QT)(function(){return(0,Qe.WY)("/api/case/suites/")},{initialData:[]}),v=s.data,f=(0,Qe.QT)(function(){return(0,Qe.WY)("/api/case/labels/")},{initialData:[]}),C=f.data,d=function(){var c=(0,te.Z)(A().mark(function h(){var m,S,p,b;return A().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,(0,X.Et)(0);case 2:if(m=x.sent,S=m.data,p=m.code,b=m.msg,p===200){x.next=8;break}return x.abrupt("return",Me.default.error(b));case 8:u({type:"update",payload:{modules:S.children}});case 9:case"end":return x.stop()}},h)}));return function(){return c.apply(this,arguments)}}();return a.useEffect(function(){return d(),function(){u({type:"update",palyload:{modules:[]}})}},[]),(0,l.jsx)(Ne.z.Provider,{value:{state:i,dispath:u,refreshModules:d,suites:v,labels:C},children:(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"row",height:window.innerHeight-48-24},children:[(0,l.jsx)("div",{style:{width:208,marginRight:12,background:"#fff",overflow:"hidden"},children:(0,l.jsx)(Xo,{})}),(0,l.jsx)("div",{style:{width:"calc(100% - 208px - 12px)",background:"#fff",overflow:"hidden"},children:(0,l.jsx)(Ss,{})})]})})},bs=Ms},5962:function(Ct){Ct.exports=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"]},97262:function(Ct,mt,g){var dt=g(5962),Me=g(45697);Ct.exports=function(te,B,N){var Ue=te[B];if(!!Ue){var A=[];if(Object.keys(Ue).forEach(function(a){dt.indexOf(a)===-1&&A.push(a)}),A.length)throw new Error("Prop "+B+" passed to "+N+". Has invalid keys "+A.join(", "))}},Ct.exports.isRequired=function(te,B,N){if(!te[B])throw new Error("Prop "+B+" passed to "+N+" is required");return Ct.exports(te,B,N)},Ct.exports.supportingArrays=Me.oneOfType([Me.arrayOf(Ct.exports),Ct.exports])}}]); diff --git a/dist/p__Sys.3fd226db.async.js b/dist/p__Sys.3fd226db.async.js deleted file mode 100644 index fa5ed697033e23c8137e8e4a26ce83bffb3e865b..0000000000000000000000000000000000000000 --- a/dist/p__Sys.3fd226db.async.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunktest_lib_front=self.webpackChunktest_lib_front||[]).push([[83],{13039:function(H,h,t){"use strict";t.r(h),t.d(h,{default:function(){return C}});var T=t(24793),f=t(97183),A=t(30887),v=t(28682),g=t(64254);function x(r,l){var e;if(typeof Symbol=="undefined"||r[Symbol.iterator]==null){if(Array.isArray(r)||(e=(0,g.Z)(r))||l&&r&&typeof r.length=="number"){e&&(r=e);var i=0,s=function(){};return{s,n:function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},e:function(n){throw n},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,u=!1,c;return{s:function(){e=r[Symbol.iterator]()},n:function(){var n=e.next();return d=n.done,n},e:function(n){u=!0,c=n},f:function(){try{!d&&e.return!=null&&e.return()}finally{if(u)throw c}}}}var j=t(67294),y=t(21010),S=t(19630),Z=t(73727),o=t(85893),b=function(l){var e=l.children,i=l.route,s=(0,y.YB)(),d=(0,S.TH)(),u=d.pathname,c=(0,y.md)(),a=j.useMemo(function(){var n=x(i.children),m;try{for(n.s();!(m=n.n()).done;){var p=m.value;if(~u.indexOf(p.path))return p.path}}catch(I){n.e(I)}finally{n.f()}return u},[u,i]);return(0,o.jsxs)(f.Z,{style:{minHeight:innerHeight-48},children:[(0,o.jsx)(f.Z.Sider,{style:{background:"#ffffff",paddingTop:10},children:(0,o.jsx)(v.Z,{mode:"inline",selectedKeys:[a],style:{borderRight:"none"},children:i.children.filter(function(n){return"path"in n&&!n.hideInLeftMenu}).filter(function(n){return n.access?c[n.access]():!0}).map(function(n){return(0,o.jsx)(v.Z.Item,{children:(0,o.jsx)(Z.rU,{to:n.path,children:s.formatMessage({id:"menu.".concat(i.name,".").concat(n.name)})})},n.path)})})}),(0,o.jsx)(f.Z,{style:{padding:12,position:"relative"},children:(0,o.jsx)(f.Z.Content,{style:{background:"#fff"},children:e})})]})},C=b}}]); diff --git a/dist/p__Sys__Users.93fb2ad5.async.js b/dist/p__Sys__Users.93fb2ad5.async.js deleted file mode 100644 index 0dfc13d5db278018cb3b1fcf8e27cd4be3569c89..0000000000000000000000000000000000000000 --- a/dist/p__Sys__Users.93fb2ad5.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunktest_lib_front=self.webpackChunktest_lib_front||[]).push([[850],{10139:function(de,E,r){"use strict";r.r(E),r.d(E,{default:function(){return re}});var oe=r(66456),K=r(4972),$=r(11849),ce=r(59250),O=r(13013),ve=r(30887),y=r(28682),he=r(13062),j=r(71230),me=r(402),l=r(39602),fe=r(49111),h=r(19650),pe=r(71153),w=r(60331),ge=r(34792),A=r(55026),Z=r(3182),S=r(2824),H=r(94043),o=r.n(H),z=r(67294),B=r(21010),J=function(){var m=(0,Z.Z)(o().mark(function n(s){return o().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,B.WY)("/api/user/user-list",{params:s,method:"get"}));case 1:case"end":return u.stop()}},n)}));return function(s){return m.apply(this,arguments)}}(),xe=null,N=function(){var m=(0,Z.Z)(o().mark(function n(s){return o().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,B.WY)("/api/user/update-role",{data:s,method:"post"}));case 1:case"end":return u.stop()}},n)}));return function(s){return m.apply(this,arguments)}}(),ye=null,V=function(){var m=(0,Z.Z)(o().mark(function n(s){return o().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,B.WY)("/api/user",{params:s,method:"delete"}));case 1:case"end":return u.stop()}},n)}));return function(s){return m.apply(this,arguments)}}(),X=r(997),je=r(2725),b=r(98453),e=r(85893),k=function(n){var s=n.avatar,c=n.username;return(0,e.jsxs)(h.Z,{children:[(0,e.jsx)(b.C,{src:s||""}),(0,e.jsx)(l.Z.Text,{children:c})]})},q=k,F=r(19228),_=r(57254),I={page_size:20,page_num:1},ee=function(n){var s,c,u=(0,B.YB)(),g=(0,B.md)(),ne=z.useState(I),L=(0,S.Z)(ne,2),D=L[0],M=L[1],te=z.useState(!1),Y=(0,S.Z)(te,2),G=Y[0],C=Y[1],R=(0,X.Z)(function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:D;return J(d)},{refreshDeps:[D]}),x=R.data,ae=R.loading,P=R.refresh,se=function(){var d=(0,Z.Z)(o().mark(function t(a){var v,f,T;return o().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!G){i.next=2;break}return i.abrupt("return");case 2:return C(!0),i.next=5,V({user_id:a.id});case 5:if(v=i.sent,f=v.code,T=v.msg,C(!1),f===200){i.next=11;break}return i.abrupt("return",A.default.error(T));case 11:A.default.success("\u64CD\u4F5C\u6210\u529F\uFF01"),P();case 13:case"end":return i.stop()}},t)}));return function(a){return d.apply(this,arguments)}}(),W=new Map([["admin",4],["senior",3],["junior",2],["common",1]]),ue=function(){var d=(0,Z.Z)(o().mark(function t(a,v){var f,T,U,i,Q;return o().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(!G){p.next=2;break}return p.abrupt("return");case 2:return C(!0),f=W.get(a),T=W.get(v.role),p.next=7,N({user_id:v.id,role:a,method:f0&&arguments[0]!==void 0?arguments[0]:P;return(0,L.xd)(s)},{refreshDeps:[P]}),l=E.data,T=E.loading,N=E.refresh,H=B.useRef(null),X=B.useRef(null),k=function(){var s=(0,u.Z)(i().mark(function _(){var t;return i().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:(t=H.current)===null||t===void 0||t.show();case 1:case"end":return c.stop()}},_)}));return function(){return s.apply(this,arguments)}}(),w=function(){var s=(0,u.Z)(i().mark(function _(t){var a;return i().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:(a=H.current)===null||a===void 0||a.show(t);case 1:case"end":return f.stop()}},_)}));return function(t){return s.apply(this,arguments)}}(),q=function(){var s=(0,u.Z)(i().mark(function _(t){var a,c,f;return i().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,(0,L._5)(t.id);case 2:if(a=m.sent,c=a.msg,f=a.code,f===200){m.next=7;break}return m.abrupt("return",A.default.error(c));case 7:N();case 8:case"end":return m.stop()}},_)}));return function(t){return s.apply(this,arguments)}}(),ee=[(0,r._)({title:"\u540D\u79F0",dataIndex:"name",width:190}),{title:"\u72B6\u6001",dataIndex:"status",render:function(_){return(0,n.jsx)(K.iK,{status:_})||"-"}},{title:"\u8FD0\u884C\u65B9\u5F0F",dataIndex:"run_method",render:function(_){return F.iM.get(_)||"-"}},(0,r._)({title:"\u6D4B\u8BD5\u65B9\u6848",dataIndex:"plan_title"}),(0,r._)({title:"Workspace",dataIndex:"workspace"}),(0,r._)({title:"Project\u540D\u79F0",dataIndex:"project"}),(0,r._)({title:"Job\u7C7B\u578B",dataIndex:"job_type"}),(0,r._)({title:"\u5907\u6CE8",dataIndex:"desc",width:200}),(0,r._)({title:"\u521B\u5EFA\u4EBA",dataIndex:"owner"}),(0,r._)({title:"\u521B\u5EFA\u65E5\u671F",dataIndex:"gmt_created"}),{title:"\u64CD\u4F5C",width:130,render:function(_){return(0,n.jsxs)(O.Z,{children:[(0,n.jsx)("span",{onClick:function(){return g.m8.push("/task/".concat(_.id))},children:(0,n.jsx)(o.Z.Link,{children:"\u67E5\u770B"})}),j.canCurrentTester(_.owner)&&(0,n.jsxs)(n.Fragment,{children:[_.status==="init"&&(0,n.jsx)("span",{onClick:function(){return w(_)},children:(0,n.jsx)(o.Z.Link,{children:"\u7F16\u8F91"})}),(0,n.jsx)("span",{onClick:function(){var a;return(a=X.current)===null||a===void 0?void 0:a.show(_)},children:(0,n.jsx)(o.Z.Link,{children:"\u5220\u9664"})})]})]})}}];return(0,n.jsxs)(O.Z,{direction:"vertical",style:{width:"100%",background:"#fff",padding:12},children:[(0,n.jsxs)(h.Z,{justify:"space-between",align:"middle",children:[(0,n.jsxs)(o.Z.Title,{level:5,style:{margin:0},children:["\u6D4B\u8BD5\u4EFB\u52A1\uFF08",(l==null?void 0:l.total)||0,"\uFF09"]}),j.canTester()&&(0,n.jsx)(C.Z,{type:"primary",size:"small",onClick:k,children:"\u65B0\u5EFA"})]}),(0,n.jsx)(I.Z,{loading:T,columns:ee,rowKey:"id",dataSource:(l==null?void 0:l.data)||[],size:"small",pagination:{total:(v=l==null?void 0:l.total)!==null&&v!==void 0?v:1,current:P.page_num,pageSize:P.page_size,onChange:function(_,t){R({page_num:_,page_size:t})},showTotal:function(_){return"\u5171".concat(_,"\u6761")}}}),(0,n.jsx)($.Z,{ref:H,onOk:N}),(0,n.jsx)(W.Z,{ref:X,onOk:q})]})};D.default=G}}]); diff --git a/dist/p__Task__Detail.d1f55269.async.js b/dist/p__Task__Detail.d1f55269.async.js deleted file mode 100644 index 92f2f8c35b8ad0b1b527d3bcc7d729b3a39897e6..0000000000000000000000000000000000000000 --- a/dist/p__Task__Detail.d1f55269.async.js +++ /dev/null @@ -1,50 +0,0 @@ -(self.webpackChunktest_lib_front=self.webpackChunktest_lib_front||[]).push([[255],{59186:function(G){G.exports={"rich-editer":"rich-editer___JmweB"}},99913:function(G,R,e){"use strict";var y=e(22385),M=e(89456),v=e(11849),x=e(402),O=e(39602),o=e(2824),F=e(93224),f=e(67294),D=e(85893),E=function(j){var $=j.title,T=j.children,z=j.style,p=(0,F.Z)(j,["title","children","style"]),n=f.useState(!1),l=(0,o.Z)(n,2),m=l[0],a=l[1];return f.useEffect(function(){return function(){a(!1)}},[]),m?(0,D.jsx)(M.Z,{title:$||T,placement:"topLeft",children:(0,D.jsx)(O.Z.Text,(0,v.Z)((0,v.Z)({},p),{},{children:T}))}):(0,D.jsx)(O.Z.Text,(0,v.Z)((0,v.Z)({},p),{},{style:z,ellipsis:{onEllipsis:function(){return a(!0)}},children:T||"-"}))};R.Z=E},33923:function(G,R,e){"use strict";e.d(R,{Fk:function(){return D}});var y=e(20310),M=e(67294),v=e(58804),x=e(85893),O,o=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5;return new Map([[0,"#96043E"],[1,"#F5222D"],[2,"#FAAD14"],[3,"#0088FF"],[4,"#7DC0FB"],[5,"#000000"]]).get(Z)},F=null,f=v.ZP.div(O||(O=(0,y.Z)([` - height: 16px; - width: 24px; - border-radius: 8px; - font-size: 10px; - color: #FFFFFF; - text-align: center; - line-height: 16px; - background-color: `,`; -`])),function(E){var Z=E.color;return Z!=null?Z:o()}),D=function(Z){var j=Z.priority;return(0,x.jsx)(f,{color:o(j),children:"P".concat(j)})}},14066:function(G,R,e){"use strict";var y=e(12968),M=e(62462),v=e(2824),x=e(20310),O=e(58804),o=e(67294),F=e(97877),f=e(85893),D,E=O.ZP.div(D||(D=(0,x.Z)([` - width: 100%; - height: 100%; - - img { - max-height: 300px; - cursor: pointer; - } -`]))),Z=function($){var T=$.content,z=T===void 0?[]:T,p=$.style,n=o.useState(!1),l=(0,v.Z)(n,2),m=l[0],a=l[1],g=o.useState(""),b=(0,v.Z)(g,2),A=b[0],P=b[1],L=function(V){var U=V.target;U.tagName==="IMG"&&(P(U.src),a(!0))};return o.useEffect(function(){return function(){P(""),a(!1)}},[]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(E,{onClick:L,style:p,dangerouslySetInnerHTML:{__html:(0,F.createEditor)({content:z}).getHtml()}}),(0,f.jsx)(M.Z,{width:200,style:{display:"none"},preview:{visible:m,src:A,onVisibleChange:function(V){a(V)}}})]})};R.Z=Z},40841:function(G,R,e){"use strict";e.d(R,{Z:function(){return a}});var y=e(34792),M=e(55026),v=e(11849),x=e(3182),O=e(94043),o=e.n(O),F=e(67294),f=e(97877),D=e(57151),E=e.n(D),Z={toolbarKeys:["undo","redo","clearStyle","|","headerSelect","fontFamily","fontSize",{iconSvg:'',key:"group-front-style",menuKeys:["lineHeight","numberedList","bulletedList","through","sup","sub"],title:"\u66F4\u591A"},"|","bold","underline","italic","color","bgColor","|",{iconSvg:'',key:"group-justify",menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"],title:"\u5BF9\u9F50"},{iconSvg:'',key:"group-indent",menuKeys:["indent","delIndent"],title:"\u7F29\u8FDB"},"|",{iconSvg:'',key:"group-image",menuKeys:["insertImage","uploadImage"],title:"\u56FE\u7247"},"insertTable",{iconSvg:'',key:"group-more-style",menuKeys:["insertLink","codeBlock","code","blockquote","divider","todo"],title:"\u66F4\u591A"}]},j=Z,$=e(49945),T=e(42122),z=e(59186),p=e.n(z),n=e(85893);f.Boot.registerModule(E());var l=function(){var g=(0,x.Z)(o().mark(function b(A,P){var L,H,V,U;return o().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return L=new FormData,L.append("image",A),w.next=4,(0,T.Tn)(L);case 4:H=w.sent,V=H.code,U=H.data,V===200&&P(U);case 8:case"end":return w.stop()}},b)}));return function(A,P){return g.apply(this,arguments)}}(),m=function(b){var A=b.defaultValue,P=A===void 0?[]:A,L=b.onEditorChange,H=b.config,V=H===void 0?{}:H,U=F.useRef(null),k=F.useRef(null);F.useEffect(function(){console.log("effect");var se=(0,f.createEditor)({selector:k.current,content:P||[],config:(0,v.Z)((0,v.Z)({},V),{},{placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9",MENU_CONF:{uploadImage:{customUpload:l}},onCreated:function(S){var le=(0,f.createToolbar)({editor:S,selector:U.current,config:j});L==null||L(S)},onChange:function(S){L==null||L(S)},customAlert:function(S,le){M.default[le||"info"](S)}})});return function(){se==null||se.destroy()}},[P,V,L]);var w=(0,$.Z)(U);return(0,n.jsxs)("div",{style:{width:"100%",height:"100%"},children:[(0,n.jsx)("div",{ref:U,className:p()["rich-editer"],style:{borderBottom:"1px solid rgb(240, 240, 240)"}}),(0,n.jsx)("div",{ref:k,style:{height:"calc(100% - ".concat((w==null?void 0:w.height)+4,"px)")}})]})},a=F.memo(m,function(g,b){var A,P;return((A=g.defaultValue)===null||A===void 0?void 0:A.toString())===((P=b.defaultValue)===null||P===void 0?void 0:P.toString())})},4971:function(G,R,e){"use strict";e.d(R,{B9:function(){return M},iM:function(){return v},FA:function(){return x},RL:function(){return O},fb:function(){return o},Yl:function(){return F},bv:function(){return f},pD:function(){return E},NP:function(){return Z},xG:function(){return j},uY:function(){return $},OA:function(){return T},we:function(){return z},$4:function(){return p}});var y=function(m){return new Map(m.map(function(a){var g=a.label,b=a.value;return[b,g]}))},M=[{label:"\u81EA\u52A8",value:"auto"},{label:"\u624B\u52A8",value:"manual"}],v=y(M),x=[{label:"Single",value:"single"},{label:"Cluster",value:"cluster"}],O=y(x),o=[{label:"\u53EF\u7528",value:!0},{label:"\u7981\u7528",value:!1}],F=y(o),f=[{label:"vm",value:"vm"},{label:"docker",value:"docker"},{label:"\u7269\u7406\u673A",value:"server"}],D=y(f),E=[{label:"\u529F\u80FD\u6D4B\u8BD5",value:"functional"},{label:"\u6027\u80FD\u6D4B\u8BD5",value:"performance"},{label:"\u4E1A\u52A1\u6D4B\u8BD5",value:"business"},{label:"\u5176\u4ED6\u6D4B\u8BD5",value:"others"}],Z=y(E),j=[{label:"\u865A\u62DF\u673A",value:"vm"},{label:"docker",value:"docker"},{label:"\u7269\u7406\u673A",value:"physics"},{label:"\u4E0D\u9650\u5236",value:"unlimit"}],$=y(j),T=[{label:"x86_64",value:"x86"},{label:"arch64",value:"arch64"},{label:"riscv",value:"risc-v"},{label:"loongarch",value:"loongarch"},{label:"noarch(\u4E0D\u9650\u5236)",value:"noarch"}],z=y(T),p=[0,1,2,3],n=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5;return new Map([[0,"#96043E"],[1,"#F5222D"],[2,"#FAAD14"],[3,"#0088FF"],[4,"#7DC0FB"],[5,"#000000"]]).get(m)}},27923:function(G,R,e){"use strict";e.r(R),e.d(R,{default:function(){return lt}});var y=e(13254),M=e(14277),v=e(89032),x=e(15746),O=e(402),o=e(39602),F=e(49111),f=e(19650),D=e(13062),E=e(71230),Z=e(57663),j=e(71577),$=e(36017),T=e(35247),z=e(20228),p=e(11382),n=e(67294),l=e(21010),m=e(19630),a=e(73727),g=e(997),b=e(28548),A=e(71194),P=e(48889),L=e(88983),H=e(82530),V=e(34792),U=e(55026),k=e(11849),w=e(3182),se=e(9715),q=e(71257),S=e(2824),le=e(94043),ie=e.n(le),Pe=e(40841),ft=e(66456),ve=e(4972),ht=e(47673),Le=e(32787),xe=e(4971),Se=e(33923),ye=e(99913),t=e(85893),Be=function(r){var u=r.list,s=r.onChange,i=r.showEdit,d=i===void 0?!1:i,C=n.useState(u),K=(0,S.Z)(C,2),B=K[0],I=K[1],te=function(_,W){I(B.reduce(function(Q,ne,ee){return ee===_?Q.concat((0,k.Z)((0,k.Z)({},ne),{},{result:W})):Q.concat(ne)},[]))};n.useEffect(function(){s==null||s(B)},[B]);var N=[{title:"\u7528\u4F8B\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:function(_){return(0,t.jsx)(ye.Z,{children:_})}},{title:"\u6D4B\u8BD5\u5957",dataIndex:"suite_name"},{title:"\u6D4B\u8BD5\u7C7B\u578B",dataIndex:"type",render:function(_){return xe.NP.get(_)}},{title:"\u4F18\u5148\u7EA7",dataIndex:"priority",render:function(_){return(0,t.jsx)(Se.Fk,{priority:_})}},{title:"\u8D1F\u8D23\u4EBA",dataIndex:"creator"},{title:"\u7ED3\u679C",dataIndex:"result",render:function(_,W,Q){return d?(0,t.jsx)(Le.Z.TextArea,{value:_,rows:2,onChange:function(ee){return te(Q,ee.target.value)}}):(0,t.jsx)(o.Z.Text,{children:_||"-"})}}];return(0,t.jsx)(ve.Z,{dataSource:B,columns:N,size:"small",rowKey:"name",pagination:!1})},Ee=Be,Ae=function(r,u){var s=r.onOk,i=(0,m.UO)(),d=i.task_id,C=n.useState(!1),K=(0,S.Z)(C,2),B=K[0],I=K[1],te=n.useState(!1),N=(0,S.Z)(te,2),h=N[0],_=N[1],W=n.useState(void 0),Q=(0,S.Z)(W,2),ne=Q[0],ee=Q[1],re=n.useRef(null),it=q.Z.useForm(),ot=(0,S.Z)(it,1),de=ot[0],ut=n.useState([]),_e=(0,S.Z)(ut,2),Re=_e[0],me=_e[1];n.useImperativeHandle(u,function(){return{show:function(J){ee(J),I(!0),me(J.run_result.case_infos),de.setFieldsValue(J)}}});var pe=function(){I(!1),_(!1),ee(void 0),re.current=null,me([]),de.resetFields()},dt=function(){var ce=(0,w.Z)(ie().mark(function J(){return ie().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(!h){ae.next=2;break}return ae.abrupt("return");case 2:_(!0),de.validateFields().then(function(){var ct=(0,w.Z)(ie().mark(function Me(vt){var Oe,ge,Fe,De;return ie().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return Oe={remark:re.current&&re.current.getText()?re.current.children:void 0,case_infos:Re},X.next=3,(0,b.f6)(d,(0,k.Z)((0,k.Z)({},vt),{},{result:Oe}));case 3:if(ge=X.sent,Fe=ge.code,De=ge.msg,Fe===200){X.next=8;break}return X.abrupt("return",U.default.error(De));case 8:s(),pe();case 10:case"end":return X.stop()}},Me)}));return function(Me){return ct.apply(this,arguments)}}());case 4:case"end":return ae.stop()}},J)}));return function(){return ce.apply(this,arguments)}}();return(0,t.jsx)(P.Z,{visible:B,title:ne?"\u4FEE\u6539\u7ED3\u679C":"\u5F55\u5165\u7ED3\u679C",bodyStyle:{padding:0},width:"75%",footer:(0,t.jsxs)(f.Z,{align:"end",children:[(0,t.jsx)(j.Z,{onClick:pe,children:"\u53D6\u6D88"}),(0,t.jsx)(j.Z,{disabled:h,onClick:dt,type:"primary",children:"\u786E\u5B9A"})]}),onCancel:pe,children:(0,t.jsxs)(E.Z,{children:[(0,t.jsx)(x.Z,{span:18,style:{padding:"0 20px 20px",borderRight:"1px solid #f0f0f0"},children:(0,t.jsxs)(f.Z,{style:{width:"100%"},direction:"vertical",size:20,children:[(0,t.jsx)(Ee,{list:Re,showEdit:!0,onChange:me}),(0,t.jsx)("div",{style:{backgroundColor:"#FFFFFF",border:"1px solid #d9d9d9",borderRadius:2,minHeight:372},children:(0,t.jsx)(Pe.Z,{onEditorChange:function(J){return re.current=J}})})]})}),(0,t.jsx)(x.Z,{span:6,style:{padding:20},children:(0,t.jsx)(q.Z,{form:de,layout:"vertical",initialValues:{state:"success"},children:(0,t.jsx)(q.Z.Item,{label:"\u6D4B\u8BD5\u7ED3\u679C",name:"state",children:(0,t.jsx)(H.ZP.Group,{options:[{label:"\u6210\u529F",value:"success"},{label:"\u5931\u8D25",value:"fail"}]})})})})]})})},we=n.forwardRef(Ae),mt=e(22385),Ie=e(89456),fe=e(20310),pt=e(48736),We=e(27049),he=e(58804),je,Te,$e=he.ZP.div(je||(je=(0,fe.Z)([` - padding: 8px 0; - border-left: 1px solid #eee; - display: flex; - align-items: center; - width: 30px; - height: 39px; -`]))),Ue=(0,he.ZP)(ve.Z)(Te||(Te=(0,fe.Z)([` - .ant-table-tbody .ant-table-row.ant-table-row-level-0:last-child { - td { - border-bottom: none; - } - } -`]))),Ke=new Map([["success","rgba(9,162,74,1)"],["fail","rgba(232,63,7,1)"],["skip","#333"]]),ze=function(r){var u=r.type,s=r.metrics,i=r.sub_cases,d=u==="performance",C=d?s:i,K=[{dataIndex:d?"metric":"sub_case_name",width:"41%",render:function(I){return I||"-"}},{render:function(I){return d?I.cv_value||"-":(0,t.jsx)(o.Z.Text,{style:{color:Ke.get(I.sub_case_result),textTransform:"capitalize"},children:I.sub_case_result})}}];return(0,t.jsxs)(E.Z,{style:{width:"100%",background:"#fff"},children:[(0,t.jsx)(f.Z,{direction:"vertical",size:0,style:{marginLeft:15},children:C.map(function(B){return(0,t.jsx)($e,{children:(0,t.jsx)(We.Z,{style:{margin:0,width:21,minWidth:21}})},B.id)})}),(0,t.jsx)(Ue,{style:{width:"calc(100% - 55px)"},columns:K,showHeader:!1,dataSource:C||[],rowKey:d?"metric":"sub_case_name",size:"small",pagination:!1})]})},He=ze,Ze;function oe(){return oe=Object.assign||function(c){for(var r=1;r=0)&&(!Object.prototype.propertyIsEnumerable.call(c,s)||(u[s]=c[s]))}return u}function ke(c,r){if(c==null)return{};var u={},s=Object.keys(c),i,d;for(d=0;d=0)&&(u[i]=c[i]);return u}var Ge=function(r){var u=r.svgRef,s=r.title,i=Ve(r,["svgRef","title"]);return n.createElement("svg",oe({width:"15px",height:"16px",viewBox:"0 0 15 16",style:{width:16,height:16},ref:u},i),s?n.createElement("title",null,s):null,Ze||(Ze=n.createElement("g",{id:"\\\\\\\\u89C6\\\\\\\\u89C9\\\\\\\\u5347\\\\\\\\u7EA7",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},n.createElement("g",{id:"Status-details-\\\\\\\\u6837\\\\\\\\u5F0F\\\\\\\\u4E00",transform:"translate(-235.000000, -880.000000)"},n.createElement("g",{id:"Group-8",transform:"translate(125.000000, 821.000000)"},n.createElement("g",{id:"\\\\\\\\u7F16\\\\\\\\u7EC4-8",transform:"translate(20.000000, 0.000000)"},n.createElement("g",{id:"Group-2",transform:"translate(24.104803, 56.000000)"},n.createElement("g",{id:"icon_comp",transform:"translate(65.283843, 3.000000)"},n.createElement("g",{id:"\\\\\\\\u6210\\\\\\\\u529F"},n.createElement("rect",{id:"Rectangle",fill:"#000000",fillRule:"nonzero",opacity:0,x:0,y:0,width:16.069869,height:16}),n.createElement("path",{d:"M8.0349345,15.3333333 C3.96724891,15.3333333 0.669577875,12.05 0.669577875,8 C0.669577875,3.95 3.96724891,0.666666667 8.0349345,0.666666667 C12.1026201,0.666666667 15.4002911,3.95 15.4002911,8 C15.4002911,12.05 12.1026201,15.3333333 8.0349345,15.3333333 Z",id:"Shape",fill:"#E83F07"})),n.createElement("path",{d:"M10.6848642,9.95290463 C10.8857139,10.1560789 10.8765924,10.4888772 10.6648869,10.6962726 C10.4531813,10.9037 10.118753,10.9072496 9.91803184,10.7041393 L8.09315347,8.85739139 L6.26837147,10.7040753 C6.06752178,10.9072496 5.73333439,10.903684 5.52151644,10.6962726 C5.30969848,10.4888133 5.30081787,10.1560149 5.50144271,9.95290464 L7.33857408,8.09376514 L5.5014427,6.23460963 C5.30083391,6.03149933 5.30969846,5.69870097 5.52151643,5.49122564 C5.73333439,5.28381427 6.06752178,5.28026468 6.26837145,5.48343893 L8.09316953,7.33012288 L9.91803184,5.48339096 C10.118753,5.28028066 10.4531813,5.28383025 10.6648869,5.49124163 C10.8766085,5.698653 10.8857139,6.03145136 10.6848642,6.23462561 L8.84776499,8.09374913 L10.6848642,9.95290463 Z",id:"Path",fill:"#FFFFFF"})))))))))},Ye=n.forwardRef(function(c,r){return n.createElement(Ge,oe({svgRef:r},c))}),gt=e.p+"static/fail-red.7720423e.svg",be;function ue(){return ue=Object.assign||function(c){for(var r=1;r=0)&&(!Object.prototype.propertyIsEnumerable.call(c,s)||(u[s]=c[s]))}return u}function Je(c,r){if(c==null)return{};var u={},s=Object.keys(c),i,d;for(d=0;d=0)&&(u[i]=c[i]);return u}var Qe=function(r){var u=r.svgRef,s=r.title,i=Ne(r,["svgRef","title"]);return n.createElement("svg",ue({width:"16px",height:"16px",viewBox:"0 0 16 16",style:{width:16,height:16},ref:u},i),s?n.createElement("title",null,s):null,be||(be=n.createElement("g",{id:"\\\\\\\\u89C6\\\\\\\\u89C9\\\\\\\\u5347\\\\\\\\u7EA7",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},n.createElement("g",{id:"Status-details-\\\\\\\\u6837\\\\\\\\u5F0F\\\\\\\\u4E00",transform:"translate(-331.000000, -918.000000)"},n.createElement("g",{id:"Group-8",transform:"translate(125.000000, 821.000000)"},n.createElement("g",{id:"\\\\\\\\u7F16\\\\\\\\u7EC4-8",transform:"translate(20.000000, 0.000000)"},n.createElement("g",{id:"\\\\\\\\u6210\\\\\\\\u529F",transform:"translate(185.807860, 97.000000)"},n.createElement("rect",{id:"Rectangle",fill:"#000000",fillRule:"nonzero",opacity:0,x:0,y:0,width:16.069869,height:16}),n.createElement("path",{d:"M8.0349345,15.3333333 C3.96724891,15.3333333 0.669577875,12.05 0.669577875,8 C0.669577875,3.95 3.96724891,0.666666667 8.0349345,0.666666667 C12.1026201,0.666666667 15.4002911,3.95 15.4002911,8 C15.4002911,12.05 12.1026201,15.3333333 8.0349345,15.3333333 Z",id:"Shape",fill:"#09A24A"}),n.createElement("path",{d:"M7.28974845,10.0077878 L5.37105632,8.09797779 C5.21079848,7.94929727 4.96106485,7.95368439 4.80617463,8.10790117 C4.65128441,8.26211796 4.64687814,8.51076579 4.79620793,8.67032686 L7.01696662,10.88197 C7.01840196,10.8834206 7.01984816,10.8848605 7.02130509,10.8862896 L7.02455895,10.8889894 C7.1130854,10.9770947 7.2374254,11.0197095 7.36166231,11.0045243 C7.48589922,10.989339 7.59619447,10.9180451 7.66068836,10.8112363 L11.9498167,6.00728387 C12.0463035,5.89906346 12.077474,5.74781238 12.0315865,5.61050544 C11.985699,5.47319851 11.869725,5.37069591 11.7273507,5.34160938 C11.5849764,5.31252285 11.4378319,5.36127132 11.3413451,5.46949173 L7.28974845,10.0077878 Z",id:"Path",fill:"#FFFFFF"}))))))))},Xe=n.forwardRef(function(c,r){return n.createElement(Qe,ue({svgRef:r},c))}),xt=e.p+"static/right-green.2ae3ce23.svg",Ce,qe=(0,he.ZP)(ve.Z)(Ce||(Ce=(0,fe.Z)([` - .ant-table-small .ant-table-thead > tr > th { - background-color: transparent; - font-size: 12px; - } - - .ant-table-thead - > tr - > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before { - background-color: transparent; - } - - .ant-table-expanded-row.ant-table-expanded-row-level-1 > td { - padding: 0 !important; - } - - .ant-table.ant-table-small .ant-table-tbody .ant-table-wrapper:only-child .ant-table { - margin: 0; - } -`]))),Y=function(r){return new Map([["total","rgba(24,144,255,1)"],["pass","rgba(9,162,74,1)"],["success","rgba(9,162,74,1)"],["up","rgba(9,162,74,1)"],["down","rgba(232,63,7,1)"],["fail","rgba(232,63,7,1)"]]).get(r)||"rgba(0,0,0,0.65)"},et=(0,t.jsxs)(f.Z,{children:[(0,t.jsx)(o.Z.Text,{style:{color:Y("total")},children:"\u603B\u8BA1"}),"/",(0,t.jsx)(o.Z.Text,{style:{color:Y("pass")},children:"\u901A\u8FC7"}),"/",(0,t.jsx)(o.Z.Text,{style:{color:Y("fail")},children:"\u5931\u8D25"}),"/",(0,t.jsx)(o.Z.Text,{style:{color:Y("skip")},children:"\u8DF3\u8FC7"})]}),tt=function(r){var u=r.statistics,s=u.total,i=u.success,d=u.fail,C=u.skip;return(0,t.jsx)(Ie.Z,{overlayStyle:{maxWidth:"unset"},overlayInnerStyle:{color:"#000"},color:"#fff",title:et,children:(0,t.jsxs)(f.Z,{children:[(0,t.jsx)(o.Z.Text,{style:{color:Y("total")},children:s}),"/",(0,t.jsx)(o.Z.Text,{style:{color:Y("success")},children:i}),"/",(0,t.jsx)(o.Z.Text,{style:{color:Y("fail")},children:d}),"/",(0,t.jsx)(o.Z.Text,{style:{color:Y("skip")},children:C})]})})},nt=function(r){var u=r.dataSource,s=[{title:"\u7528\u4F8B",width:300,ellipsis:!0,render:function(d,C){return(0,t.jsx)(ye.Z,{children:(0,t.jsxs)(E.Z,{align:"middle",children:[(0,t.jsx)(o.Z.Text,{style:{marginRight:8},children:C.name||"-"}),C.result==="fail"?(0,t.jsx)(Ye,{}):(0,t.jsx)(Xe,{})]})})}},{width:130,title:"\u6D4B\u8BD5\u8BBE\u5907",render:function(){return"-"}},{title:"\u6D4B\u8BD5\u7C7B\u578B",width:130,render:function(d,C){return xe.NP.get(C.type)}},{title:"\u7ED3\u679C",render:function(d){return d.type==="performance"?(0,t.jsx)(t.Fragment,{children:"-"}):(0,t.jsx)(tt,(0,k.Z)({},d))}},{title:"\u5F00\u59CB\u65F6\u95F4",width:175,dataIndex:"start_time",render:function(d){return d||"-"}},{title:"\u7ED3\u675F\u65F6\u95F4",width:175,dataIndex:"end_time",render:function(d){return d||"-"}}];return(0,t.jsxs)(f.Z,{direction:"vertical",style:{width:"100%"},children:[(0,t.jsx)(E.Z,{justify:"space-between",align:"middle",children:(0,t.jsx)(o.Z.Text,{strong:!0,style:{margin:0},children:"\u6D4B\u8BD5\u7ED3\u679C"})}),(0,t.jsx)(qe,{columns:s,dataSource:u||[],size:"small",rowKey:"name",expandable:{expandedRowRender:function(d){return(0,t.jsx)(He,(0,k.Z)({},d))},columnWidth:32},pagination:!1})]})},rt=nt,at=e(14066),st=function(){var r,u,s,i=(0,l.md)(),d=(0,m.UO)(),C=d.task_id,K=(0,g.Z)(function(){return(0,b.oT)(C)},{}),B=K.data,I=K.loading,te=K.refresh,N=n.useRef(null);if(I||!B)return(0,t.jsx)(p.Z,{});var h=B.data;return(0,t.jsxs)("div",{style:{minHeight:"100%"},children:[(0,t.jsxs)("div",{style:{background:"#fff",padding:12},children:[(0,t.jsx)(f.Z,{direction:"vertical",style:{width:"100%"},size:20,children:(0,t.jsxs)(E.Z,{justify:"space-between",align:"middle",children:[(0,t.jsxs)(T.Z,{children:[(0,t.jsx)(T.Z.Item,{children:(0,t.jsx)(a.rU,{to:"/task",children:"\u6D4B\u8BD5\u4EFB\u52A1"})}),(0,t.jsx)(T.Z.Item,{children:"\u4EFB\u52A1\u8BE6\u60C5"})]}),h.run_method==="manual"&&i.canTester()&&(h.run_result?(0,t.jsx)(j.Z,{onClick:function(){var W;return(W=N.current)===null||W===void 0?void 0:W.show(h)},children:"\u4FEE\u6539\u7ED3\u679C"}):(0,t.jsx)(j.Z,{type:"primary",onClick:function(){var W;return(W=N.current)===null||W===void 0?void 0:W.show(h)},children:"\u5F55\u5165\u7ED3\u679C"}))]})}),(0,t.jsxs)(f.Z,{direction:"vertical",style:{width:"100%"},children:[(0,t.jsx)(E.Z,{children:(0,t.jsx)(o.Z.Title,{level:4,style:{margin:0},children:h==null?void 0:h.name})}),(0,t.jsxs)(E.Z,{children:[(0,t.jsx)(x.Z,{span:8,style:{marginBottom:8},children:(0,t.jsxs)(f.Z,{children:[(0,t.jsx)(o.Z.Text,{children:"\u6D4B\u8BD5\u65B9\u6848\uFF1A"}),(0,t.jsx)(o.Z.Text,{children:h.plan_title})]})}),(0,t.jsx)(x.Z,{span:8,style:{marginBottom:8},children:(0,t.jsxs)(f.Z,{children:[(0,t.jsx)(o.Z.Text,{children:"\u8FD0\u884C\u65B9\u5F0F\uFF1A"}),(0,t.jsx)(o.Z.Text,{children:h.run_method})]})}),(0,t.jsx)(x.Z,{span:8,style:{marginBottom:8},children:(0,t.jsxs)(f.Z,{children:[(0,t.jsx)(o.Z.Text,{children:"\u521B\u5EFA\u4EBA\uFF1A"}),(0,t.jsx)(o.Z.Text,{children:h.owner})]})}),(0,t.jsx)(x.Z,{span:8,children:(0,t.jsxs)(f.Z,{children:[(0,t.jsx)(o.Z.Text,{children:"\u521B\u5EFA\u65F6\u95F4\uFF1A"}),(0,t.jsx)(o.Z.Text,{children:h.gmt_created})]})}),(0,t.jsx)(x.Z,{span:8,children:(0,t.jsxs)(f.Z,{children:[(0,t.jsx)(o.Z.Text,{children:"\u63CF\u8FF0\uFF1A"}),(0,t.jsx)(o.Z.Text,{ellipsis:!0,children:h.desc})]})})]})]})]}),(0,t.jsxs)("div",{style:{background:"#fff",padding:12,marginTop:12,minHeight:500},children:[h.run_method==="manual"&&(h.run_result?(0,t.jsxs)(f.Z,{direction:"vertical",style:{width:"100%"},children:[(0,t.jsx)(Ee,{list:h==null||(r=h.run_result)===null||r===void 0?void 0:r.case_infos}),(0,t.jsx)(at.Z,{content:(h==null||(u=h.run_result)===null||u===void 0?void 0:u.remark)||[]})]}):(0,t.jsx)(M.Z,{image:M.Z.PRESENTED_IMAGE_SIMPLE,style:{marginTop:200}})),h.run_method!=="manual"&&(0,t.jsx)(rt,{dataSource:h==null||(s=h.run_result)===null||s===void 0?void 0:s.case_infos})]}),(0,t.jsx)(we,{ref:N,onOk:te})]})},lt=st},28548:function(G,R,e){"use strict";e.d(R,{xd:function(){return O},vr:function(){return o},_5:function(){return F},xJ:function(){return f},oT:function(){return D},f6:function(){return j},Vp:function(){return $},ku:function(){return T},Ed:function(){return z}});var y=e(3182),M=e(94043),v=e.n(M),x=e(21010),O=function(){var p=(0,y.Z)(v().mark(function n(l){return v().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,x.WY)("/api/task",{params:l}));case 1:case"end":return a.stop()}},n)}));return function(l){return p.apply(this,arguments)}}(),o=function(){var p=(0,y.Z)(v().mark(function n(l){return v().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,x.WY)("/api/task/create",{data:l,method:"post"}));case 1:case"end":return a.stop()}},n)}));return function(l){return p.apply(this,arguments)}}(),F=function(){var p=(0,y.Z)(v().mark(function n(l){return v().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,x.WY)("/api/task/".concat(l),{method:"DELETE"}));case 1:case"end":return a.stop()}},n)}));return function(l){return p.apply(this,arguments)}}(),f=function(){var p=(0,y.Z)(v().mark(function n(l,m){return v().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,x.WY)("/api/task/update/".concat(l),{data:m,method:"post"}));case 1:case"end":return g.stop()}},n)}));return function(l,m){return p.apply(this,arguments)}}(),D=function(){var p=(0,y.Z)(v().mark(function n(l){return v().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,x.WY)("/api/task/".concat(l)));case 1:case"end":return a.stop()}},n)}));return function(l){return p.apply(this,arguments)}}(),E=null,Z=null,j=function(){var p=(0,y.Z)(v().mark(function n(l,m){return v().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,x.WY)("/api/task/".concat(l,"/add_result"),{method:"post",data:m}));case 1:case"end":return g.stop()}},n)}));return function(l,m){return p.apply(this,arguments)}}(),$=function(){var p=(0,y.Z)(v().mark(function n(l,m){return v().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,x.WY)("/api/tone/job_type_list/".concat(l,"/").concat(m)));case 1:case"end":return g.stop()}},n)}));return function(l,m){return p.apply(this,arguments)}}(),T=function(){var p=(0,y.Z)(v().mark(function n(l){return v().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,x.WY)("/api/tone/project_list/".concat(l)));case 1:case"end":return a.stop()}},n)}));return function(l){return p.apply(this,arguments)}}(),z=function(){var p=(0,y.Z)(v().mark(function n(l){return v().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,x.WY)("/api/tone/ws_list",{params:{name:l}}));case 1:case"end":return a.stop()}},n)}));return function(l){return p.apply(this,arguments)}}()}}]); diff --git a/dist/t__plugin-layout__Layout.cdd32b03.async.js b/dist/t__plugin-layout__Layout.cdd32b03.async.js deleted file mode 100644 index b0627dcd93cd0c9a2f9cb7fba919ecdf7277215f..0000000000000000000000000000000000000000 --- a/dist/t__plugin-layout__Layout.cdd32b03.async.js +++ /dev/null @@ -1,23 +0,0 @@ -(self.webpackChunktest_lib_front=self.webpackChunktest_lib_front||[]).push([[301],{16254:function(We){We.exports=St,We.exports.parse=L,We.exports.compile=l,We.exports.tokensToFunction=M,We.exports.tokensToRegExp=Ke;var it="/",C="./",F=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function L(z,Ee){for(var X=[],I=0,b=0,O="",Je=Ee&&Ee.delimiter||it,$e=Ee&&Ee.delimiters||C,fe=!1,me;(me=F.exec(z))!==null;){var Le=me[0],Re=me[1],ie=me.index;if(O+=z.slice(b,ie),b=ie+Le.length,Re){O+=Re[1],fe=!0;continue}var ke="",Oe=z[b],qe=me[2],Ve=me[3],Xt=me[4],ft=me[5];if(!fe&&O.length){var Jt=O.length-1;$e.indexOf(O[Jt])>-1&&(ke=O[Jt],O=O.slice(0,Jt))}O&&(X.push(O),O="",fe=!1);var er=ke!==""&&Oe!==void 0&&Oe!==ke,Ot=ft==="+"||ft==="*",tr=ft==="?"||ft==="*",dt=ke||Je,At=Ve||Xt;X.push({name:qe||I++,prefix:ke,delimiter:dt,optional:tr,repeat:Ot,partial:er,pattern:At?Te(At):"[^"+Ce(dt)+"]+?"})}return(O||b-1;else{var ke=ie.repeat?"(?:"+ie.pattern+")(?:"+Ce(ie.delimiter)+"(?:"+ie.pattern+"))*":ie.pattern;Ee&&Ee.push(ie),ie.optional?ie.partial?me+=Ce(ie.prefix)+"("+ke+")?":me+="(?:"+Ce(ie.prefix)+"("+ke+"))?":me+=Ce(ie.prefix)+"("+ke+")"}}return O?(I||(me+="(?:"+Je+")?"),me+=fe==="$"?"$":"(?="+fe+")"):(I||(me+="(?:"+Je+"(?="+fe+"))?"),Le||(me+="(?="+Je+"|"+fe+")")),new RegExp(me,Ct(X))}function St(z,Ee,X){return z instanceof RegExp?Yt(z,Ee):Array.isArray(z)?ot(z,Ee,X):T(z,Ee,X)}},80430:function(We){"use strict";var it=!1,C=function(){};if(it){var F=function(l,M){var Ce=arguments.length;M=new Array(Ce>1?Ce-1:0);for(var Te=1;Te2?Ce-2:0);for(var Te=2;Te=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(s){throw s},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,u;return{s:function(){n=n.call(t)},n:function(){var s=n.next();return i=s.done,s},e:function(s){o=!0,u=s},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw u}}}}var fe=C(84378);/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function me(t,e,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function u(f){try{s(r.next(f))}catch(v){o(v)}}function c(f){try{s(r.throw(f))}catch(v){o(v)}}function s(f){f.done?i(f.value):a(f.value).then(u,c)}s((r=r.apply(t,e||[])).next())})}function Le(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(s){return function(f){return c([s,f])}}function c(s){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(i=s[0]&2?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,a=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]i||setTimeout(r,u,a)},va=da(new Map),ma=va[0],Yo=va[1],ha=Ve({onLoadingSlow:Re,onSuccess:Re,onError:Re,onErrorRetry:Qo,onDiscarded:Re,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:oa?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:oa?5e3:3e3,compare:function(t,e){return dt(t)==dt(e)},isPaused:function(){return!1},cache:ma,mutate:Yo,fallback:{}},Ko),pa=function(t,e){var n=Ve(t,e);if(e){var r=t.use,a=t.fallback,i=e.use,o=e.fallback;r&&i&&(n.use=r.concat(i)),a&&o&&(n.fallback=Ve(a,o))}return n},ur=(0,l.createContext)({}),Xo=function(t){var e=t.value,n=pa((0,l.useContext)(ur),e),r=e&&e.provider,a=(0,l.useState)(function(){return r?da(r(n.cache||ma),e):ie})[0];return a&&(n.cache=a[0],n.mutate=a[1]),qt(function(){return a?a[2]:ie},[]),(0,l.createElement)(ur.Provider,Ve(t,{value:n}))},Jo=function(t,e){var n=(0,l.useState)({})[1],r=(0,l.useRef)(t),a=(0,l.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,l.useCallback)(function(o){var u=!1,c=r.current;for(var s in o){var f=s;c[f]!==o[f]&&(c[f]=o[f],a.current[f]&&(u=!0))}u&&!e.current&&n({})},[]);return qt(function(){r.current=t}),[r,a.current,i]},qo=function(t){return qe(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(t[1]===null?t[2]:t[1])||{}]},sr=function(){return Ve(ha,(0,l.useContext)(ur))},el=function(t){return function(){for(var n=[],r=0;r0;)f=v[d](f);return f(o,u||s.fetcher,s)}},ga=function(t,e,n){var r=e[t]||(e[t]=[]);return r.push(n),function(){var a=r.indexOf(n);a>=0&&(r[a]=r[r.length-1],r.pop())}},cr={dedupe:!0},tl=function(t,e,n){var r=n.cache,a=n.compare,i=n.fallbackData,o=n.suspense,u=n.revalidateOnMount,c=n.refreshInterval,s=n.refreshWhenHidden,f=n.refreshWhenOffline,v=Et.get(r),d=v[0],h=v[1],g=v[2],y=v[3],m=or(t),p=m[0],x=m[1],S=m[2],R=(0,l.useRef)(!1),P=(0,l.useRef)(!1),w=(0,l.useRef)(p),D=(0,l.useRef)(e),N=(0,l.useRef)(n),E=function(){return N.current},A=function(){return E().isVisible()&&E().isOnline()},Z=function(ee){return r.set(S,Ve(r.get(S),ee))},B=r.get(p),k=Oe(i)?n.fallback[p]:i,W=Oe(B)?k:B,j=r.get(S)||{},ne=j.error,G=!R.current,ve=function(){return G&&!Oe(u)?u:E().isPaused()?!1:o?Oe(W)?!1:n.revalidateIfStale:Oe(W)||n.revalidateIfStale},le=function(){return!p||!e?!1:j.isValidating?!0:G&&ve()},ge=le(),V=Jo({data:W,error:ne,isValidating:ge},P),Y=V[0],$=V[1],ue=V[2],se=(0,l.useCallback)(function(ee){return me(void 0,void 0,void 0,function(){var re,Q,Se,ye,q,J,te,oe,de,H,ae,ce,_e;return Le(this,function(ze){switch(ze.label){case 0:if(re=D.current,!p||!re||P.current||E().isPaused())return[2,!1];ye=!0,q=ee||{},J=!y[p]||!q.dedupe,te=function(){return!P.current&&p===w.current&&R.current},oe=function(){var Tt=y[p];Tt&&Tt[1]===Se&&delete y[p]},de={isValidating:!1},H=function(){Z({isValidating:!1}),te()&&ue(de)},Z({isValidating:!0}),ue({isValidating:!0}),ze.label=1;case 1:return ze.trys.push([1,3,,4]),J&&(en(r,p,Y.current.data,Y.current.error,!0),n.loadingTimeout&&!r.get(p)&&setTimeout(function(){ye&&te()&&E().onLoadingSlow(p,n)},n.loadingTimeout),y[p]=[re.apply(void 0,x),lr()]),_e=y[p],Q=_e[0],Se=_e[1],[4,Q];case 2:return Q=ze.sent(),J&&setTimeout(oe,n.dedupingInterval),!y[p]||y[p][1]!==Se?(J&&te()&&E().onDiscarded(p),[2,!1]):(Z({error:ie}),de.error=ie,ae=g[p],!Oe(ae)&&(Se<=ae[0]||Se<=ae[1]||ae[1]===0)?(H(),J&&te()&&E().onDiscarded(p),[2,!1]):(a(Y.current.data,Q)?de.data=Y.current.data:de.data=Q,a(r.get(p),Q)||r.set(p,Q),J&&te()&&E().onSuccess(Q,p,n),[3,4]));case 3:return ce=ze.sent(),oe(),E().isPaused()||(Z({error:ce}),de.error=ce,J&&te()&&(E().onError(ce,p,n),(typeof n.shouldRetryOnError=="boolean"&&n.shouldRetryOnError||qe(n.shouldRetryOnError)&&n.shouldRetryOnError(ce))&&A()&&E().onErrorRetry(ce,p,n,se,{retryCount:(q.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return ye=!1,H(),te()&&J&&en(r,p,de.data,de.error,!1),[2,!0]}})})},[p]),Me=(0,l.useCallback)(ca.bind(ie,r,function(){return w.current}),[]);if(qt(function(){D.current=e,N.current=n}),qt(function(){if(!!p){var ee=p!==w.current,re=se.bind(ie,cr),Q=function(te,oe,de){ue(Ve({error:oe,isValidating:de},a(Y.current.data,te)?ie:{data:te}))},Se=0,ye=function(te){if(te==la){var oe=Date.now();E().revalidateOnFocus&&oe>Se&&A()&&(Se=oe+E().focusThrottleInterval,re())}else if(te==ua)E().revalidateOnReconnect&&A()&&re();else if(te==sa)return se()},q=ga(p,h,Q),J=ga(p,d,ye);return P.current=!1,w.current=p,R.current=!0,ee&&ue({data:W,error:ne,isValidating:ge}),ve()&&(Oe(W)||xn?re():Vo(re)),function(){P.current=!0,q(),J()}}},[p,se]),qt(function(){var ee;function re(){var Se=qe(c)?c(W):c;Se&&ee!==-1&&(ee=setTimeout(Q,Se))}function Q(){!Y.current.error&&(s||E().isVisible())&&(f||E().isOnline())?se(cr).then(re):re()}return re(),function(){ee&&(clearTimeout(ee),ee=-1)}},[c,s,f,se]),(0,l.useDebugValue)(W),o&&Oe(W)&&p)throw D.current=e,N.current=n,P.current=!1,Oe(ne)?se(cr):ne;return{mutate:Me,get data(){return $.data=!0,W},get error(){return $.error=!0,ne},get isValidating(){return $.isValidating=!0,ge}}},nl=ke.defineProperty(Xo,"default",{value:ha}),Qm=function(t){return or(t)[0]},rl=el(tl),al={moneySymbol:"$",form:{lightFilter:{more:"\u0627\u0644\u0645\u0632\u064A\u062F",clear:"\u0646\u0638\u0641",confirm:"\u062A\u0623\u0643\u064A\u062F",itemUnit:"\u0639\u0646\u0627\u0635\u0631"}},tableForm:{search:"\u0627\u0628\u062D\u062B",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",submit:"\u0627\u0631\u0633\u0627\u0644",collapsed:"\u0645\u064F\u0642\u0644\u0635",expand:"\u0645\u064F\u0648\u0633\u0639",inputPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062F\u062E\u0627\u0644",selectPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062E\u062A\u064A\u0627\u0631"},alert:{clear:"\u0646\u0638\u0641",selected:"\u0645\u062D\u062F\u062F",item:"\u0639\u0646\u0635\u0631"},pagination:{total:{range:" ",total:"\u0645\u0646",item:"\u0639\u0646\u0627\u0635\u0631"}},tableToolBar:{leftPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noPin:"\u0627\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u062B\u0628\u064A\u062A",leftFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noFixedTitle:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0644\u0635\u0627\u0642",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",columnDisplay:"\u0627\u0644\u0623\u0639\u0645\u062F\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629",columnSetting:"\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",fullScreen:"\u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",exitFullScreen:"\u0627\u0644\u062E\u0631\u0648\u062C \u0645\u0646 \u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",reload:"\u062A\u062D\u062F\u064A\u062B",density:"\u0627\u0644\u0643\u062B\u0627\u0641\u0629",densityDefault:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",densityLarger:"\u0623\u0643\u0628\u0631",densityMiddle:"\u0648\u0633\u0637",densitySmall:"\u0645\u062F\u0645\u062C"},stepsForm:{next:"\u0627\u0644\u062A\u0627\u0644\u064A",prev:"\u0627\u0644\u0633\u0627\u0628\u0642"},loginForm:{submitText:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644"}},il={moneySymbol:"\u20AC",tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col\xB7lapsar",inputPlaceholder:"Introdu\xEFu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitj\xE0",densitySmall:"Compacte"},stepsForm:{next:"Seg\xFCent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"}},ol={moneySymbol:"\u20AC",form:{lightFilter:{more:"Mehr",clear:"Zur\xFCcksetzen",confirm:"Best\xE4tigen",itemUnit:"Eintr\xE4ge"}},tableForm:{search:"Suchen",reset:"Zur\xFCcksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte ausw\xE4hlen"},alert:{clear:"Zur\xFCcksetzen",selected:"Ausgew\xE4hlt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Eintr\xE4gen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zur\xFCcksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Gr\xF6\xDFer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Anmelden"}},ll={moneySymbol:"\xA3",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},ul={moneySymbol:"$",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},sl={moneySymbol:"\u20AC",form:{lightFilter:{more:"M\xE1s",clear:"Limpiar",confirm:"Confirmar",itemsUnits:"Objetos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"art\xEDculos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3n",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar"}},switch:{open:"abrir",close:"cerrar"}},cl={moneySymbol:"\u062A\u0648\u0645\u0627\u0646",form:{lightFilter:{more:"\u0628\u06CC\u0634\u062A\u0631",clear:"\u067E\u0627\u06A9 \u06A9\u0631\u062F\u0646",confirm:"\u062A\u0627\u06CC\u06CC\u062F",itemUnit:"\u0645\u0648\u0631\u062F"}},tableForm:{search:"\u062C\u0633\u062A\u062C\u0648",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",submit:"\u062A\u0627\u06CC\u06CC\u062F",collapsed:"\u0646\u0645\u0627\u06CC\u0634 \u0628\u06CC\u0634\u062A\u0631",expand:"\u0646\u0645\u0627\u06CC\u0634 \u06A9\u0645\u062A\u0631",inputPlaceholder:"\u067E\u06CC\u062F\u0627 \u06A9\u0646\u06CC\u062F",selectPlaceholder:"\u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F"},alert:{clear:"\u067E\u0627\u06A9 \u0633\u0627\u0632\u06CC",selected:"\u0627\u0646\u062A\u062E\u0627\u0628",item:"\u0645\u0648\u0631\u062F"},pagination:{total:{range:" ",total:"\u0627\u0632",item:"\u0645\u0648\u0631\u062F"}},tableToolBar:{leftPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0686\u067E",rightPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0631\u0627\u0633\u062A",noPin:"\u0633\u0646\u062C\u0627\u0642 \u0646\u0634\u062F\u0647",leftFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0686\u067E",rightFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0631\u0627\u0633\u062A",noFixedTitle:"\u0634\u0646\u0627\u0648\u0631",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",columnDisplay:"\u0646\u0645\u0627\u06CC\u0634 \u0647\u0645\u0647",columnSetting:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A",fullScreen:"\u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",exitFullScreen:"\u062E\u0631\u0648\u062C \u0627\u0632 \u062D\u0627\u0644\u062A \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",reload:"\u062A\u0627\u0632\u0647 \u0633\u0627\u0632\u06CC",density:"\u062A\u0631\u0627\u06A9\u0645",densityDefault:"\u067E\u06CC\u0634 \u0641\u0631\u0636",densityLarger:"\u0628\u0632\u0631\u06AF",densityMiddle:"\u0645\u062A\u0648\u0633\u0637",densitySmall:"\u06A9\u0648\u0686\u06A9"},stepsForm:{next:"\u0628\u0639\u062F\u06CC",prev:"\u0642\u0628\u0644\u06CC",submit:"\u0627\u062A\u0645\u0627\u0645"},loginForm:{submitText:"\u0648\u0631\u0648\u062F"},editableTable:{action:{save:"\u0630\u062E\u06CC\u0631\u0647",cancel:"\u0644\u063A\u0648",delete:"\u062D\u0630\u0641"}}},fl={moneySymbol:"\u20AC",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"R\xE9initialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"R\xE9duire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"S\xE9lectionner une valeur"},alert:{clear:"R\xE9initialiser",selected:"S\xE9lectionn\xE9",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"\xE9l\xE9ments"}},tableToolBar:{leftPin:"\xC9pingler \xE0 gauche",rightPin:"\xC9pingler \xE0 gauche",noPin:"Sans \xE9pingle",leftFixedTitle:"Fixer \xE0 gauche",rightFixedTitle:"Fixer \xE0 droite",noFixedTitle:"Non fix\xE9",reset:"R\xE9initialiser",columnDisplay:"Affichage colonne",columnSetting:"R\xE9glages",fullScreen:"Plein \xE9cran",exitFullScreen:"Quitter Plein \xE9cran",reload:"Rafraichir",density:"Densit\xE9",densityDefault:"Par d\xE9faut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Pr\xE9c\xE9dente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer"}}},dl={moneySymbol:"kn",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretra\u017Ei",reset:"Poni\u0161ti",submit:"Potvrdi",collapsed:"Ra\u0161iri",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"O\u010Disti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prika\u010Di lijevo",rightPin:"Prika\u010Di desno",noPin:"Bez prika\u010Denja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Iza\u0111i iz punog zaslona",reload:"Ponovno u\u010Ditaj",density:"Veli\u010Dina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljede\u0107i",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obri\u0161i"}},switch:{open:"otvori",close:"zatvori"}},vl={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"}},ml={moneySymbol:"\u20AC",tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalit\xE0 schermo intero",exitFullScreen:"Esci da modalit\xE0 schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},loginForm:{submitText:"Accedi"}},hl={moneySymbol:"\xA5",tableForm:{search:"\u691C\u7D22",reset:"\u30EA\u30BB\u30C3\u30C8",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u53CE\u7D0D",inputPlaceholder:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",selectPlaceholder:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},alert:{clear:"\u30AF\u30EA\u30A2",selected:"\u9078\u629E\u3057\u305F",item:"\u9805\u76EE"},pagination:{total:{range:"\u8A18\u4E8B",total:"/\u5408\u8A08",item:" "}},tableToolBar:{leftPin:"\u5DE6\u306B\u56FA\u5B9A",rightPin:"\u53F3\u306B\u56FA\u5B9A",noPin:"\u30AD\u30E3\u30F3\u30BB\u30EB",leftFixedTitle:"\u5DE6\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",rightFixedTitle:"\u53F3\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",noFixedTitle:"\u56FA\u5B9A\u3055\u308C\u3066\u306A\u3044\u9805\u76EE",reset:"\u30EA\u30BB\u30C3\u30C8",columnDisplay:"\u8868\u793A\u5217",columnSetting:"\u5217\u8868\u793A\u8A2D\u5B9A",fullScreen:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",exitFullScreen:"\u7D42\u4E86",reload:"\u66F4\u65B0",density:"\u884C\u9AD8",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D",densitySmall:"\u5C0F"},stepsForm:{next:"\u6B21\u306E\u30B9\u30C6\u30C3\u30D7",pre:"\u524D\u3078",submit:"\u9001\u4FE1"},loginForm:{submitText:"\u30ED\u30B0\u30A4\u30F3"}},pl={moneySymbol:"\u20A9",form:{lightFilter:{more:"\uB354\uBCF4\uAE30",clear:"\uCDE8\uC18C",confirm:"\uD655\uC778",itemUnit:"\uAC74\uC218"}},tableForm:{search:"\uC870\uD68C",reset:"\uCD08\uAE30\uD654",submit:"\uC81C\uCD9C",collapsed:"\uD655\uC7A5",expand:"\uB2EB\uAE30",inputPlaceholder:"\uC785\uB825\uD574 \uC8FC\uC138\uC694",selectPlaceholder:"\uC120\uD0DD\uD574 \uC8FC\uC138\uC694"},alert:{clear:"\uCDE8\uC18C",selected:"\uC120\uD0DD",item:"\uAC74"},pagination:{total:{range:" ",total:"/ \uCD1D",item:"\uAC74"}},tableToolBar:{leftPin:"\uC67C\uCABD\uC73C\uB85C \uD540",rightPin:"\uC624\uB978\uCABD\uC73C\uB85C \uD540",noPin:"\uD540 \uC81C\uAC70",leftFixedTitle:"\uC67C\uCABD\uC73C\uB85C \uACE0\uC815",rightFixedTitle:"\uC624\uB978\uCABD\uC73C\uB85C \uACE0\uC815",noFixedTitle:"\uBE44\uACE0\uC815",reset:"\uCD08\uAE30\uD654",columnDisplay:"\uCEEC\uB7FC \uD45C\uC2DC",columnSetting:"\uC124\uC815",fullScreen:"\uC804\uCCB4 \uD654\uBA74",exitFullScreen:"\uC804\uCCB4 \uD654\uBA74 \uCDE8\uC18C",reload:"\uB2E4\uC2DC \uC77D\uAE30",density:"\uC5EC\uBC31",densityDefault:"\uAE30\uBCF8",densityLarger:"\uB9CE\uC740 \uC5EC\uBC31",densityMiddle:"\uC911\uAC04 \uC5EC\uBC31",densitySmall:"\uC881\uC740 \uC5EC\uBC31"},stepsForm:{next:"\uB2E4\uC74C",prev:"\uC774\uC804",submit:"\uC885\uB8CC"},loginForm:{submitText:"\uB85C\uADF8\uC778"},editableTable:{action:{save:"\uC800\uC7A5",cancel:"\uCDE8\uC18C",delete:"\uC0AD\uC81C"}}},gl={moneySymbol:"\u20AE",form:{lightFilter:{more:"\u0418\u043B\u04AF\u04AF",clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",confirm:"\u0411\u0430\u0442\u0430\u043B\u0433\u0430\u0430\u0436\u0443\u0443\u043B\u0430\u0445",itemUnit:"\u041D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableForm:{search:"\u0425\u0430\u0439\u0445",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",submit:"\u0418\u043B\u0433\u044D\u044D\u0445",collapsed:"\u04E8\u0440\u0433\u04E9\u0442\u0433\u04E9\u0445",expand:"\u0425\u0443\u0440\u0430\u0430\u0445",inputPlaceholder:"\u0423\u0442\u0433\u0430 \u043E\u0440\u0443\u0443\u043B\u043D\u0430 \u0443\u0443",selectPlaceholder:"\u0423\u0442\u0433\u0430 \u0441\u043E\u043D\u0433\u043E\u043D\u043E \u0443\u0443"},alert:{clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",selected:"\u0421\u043E\u043D\u0433\u043E\u0433\u0434\u0441\u043E\u043D",item:"\u041D\u044D\u0433\u0436"},pagination:{total:{range:" ",total:"of",item:"\u043D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableToolBar:{leftPin:"\u0417\u04AF\u04AF\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",rightPin:"\u0411\u0430\u0440\u0443\u0443\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",noPin:"\u0411\u044D\u0445\u043B\u044D\u0445\u0433\u04AF\u0439",leftFixedTitle:"\u0417\u04AF\u04AF\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",rightFixedTitle:"\u0411\u0430\u0440\u0443\u0443\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",noFixedTitle:"\u0417\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445\u0433\u04AF\u0439",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",columnDisplay:"\u0411\u0430\u0433\u0430\u043D\u0430\u0430\u0440 \u0445\u0430\u0440\u0443\u0443\u043B\u0430\u0445",columnSetting:"\u0422\u043E\u0445\u0438\u0445\u0440\u0433\u043E\u043E",fullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446\u044D\u044D\u0440",exitFullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446 \u0446\u0443\u0446\u043B\u0430\u0445",reload:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",density:"\u0425\u044D\u043C\u0436\u044D\u044D",densityDefault:"\u0425\u044D\u0432\u0438\u0439\u043D",densityLarger:"\u0422\u043E\u043C",densityMiddle:"\u0414\u0443\u043D\u0434",densitySmall:"\u0416\u0438\u0436\u0438\u0433"},stepsForm:{next:"\u0414\u0430\u0440\u0430\u0430\u0445",prev:"\u04E8\u043C\u043D\u04E9\u0445",submit:"\u0414\u0443\u0443\u0441\u0433\u0430\u0445"},loginForm:{submitText:"\u041D\u044D\u0432\u0442\u0440\u044D\u0445"},editableTable:{action:{save:"\u0425\u0430\u0434\u0433\u0430\u043B\u0430\u0445",cancel:"\u0426\u0443\u0446\u043B\u0430\u0445",delete:"\u0423\u0441\u0442\u0433\u0430\u0445"}},switch:{open:"\u041D\u044D\u044D\u0445",close:"\u0425\u0430\u0430\u0445"}},yl={moneySymbol:"RM",tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},loginForm:{submitText:"Log Masuk"}},bl={moneySymbol:"z\u0142",form:{lightFilter:{more:"Wi\u0119cej",clear:"Wyczy\u015B\u0107",confirm:"Potwierd\u017A",itemUnit:"Ilo\u015B\u0107"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierd\u017A",collapsed:"Poka\u017C wiecej",expand:"Poka\u017C mniej",inputPlaceholder:"Prosz\u0119 poda\u0107",selectPlaceholder:"Prosz\u0119 wybra\u0107"},alert:{clear:"Wyczy\u015B\u0107",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpis\xF3w"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypi\u0119te do lewej",rightFixedTitle:"Przypi\u0119te do prawej",noFixedTitle:"Nieprzypi\u0119te",reset:"Reset",columnDisplay:"Wy\u015Bwietlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pe\u0142en ekran",exitFullScreen:"Zamknij pe\u0142en ekran",reload:"Od\u015Bwie\u017C",density:"Odst\u0119p",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Zaloguj si\u0119"}},xl={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"items"}},tableToolBar:{leftPin:"Fixar \xE0 esquerda",rightPin:"Fixar \xE0 direita",noPin:"Desfixado",leftFixedTitle:"Fixado \xE0 esquerda",rightFixedTitle:"Fixado \xE0 direita",noFixedTitle:"N\xE3o fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configura\xE7\xF5es",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padr\xE3o",densityLarger:"Largo",densityMiddle:"M\xE9dio",densitySmall:"Compacto"},stepsForm:{next:"Pr\xF3ximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar"}}},Cl={moneySymbol:"\u20BD",form:{lightFilter:{more:"\u0415\u0449\u0435",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",confirm:"\u041E\u041A",itemUnit:"\u041F\u043E\u0437\u0438\u0446\u0438\u0438"}},tableForm:{search:"\u041D\u0430\u0439\u0442\u0438",reset:"\u0421\u0431\u0440\u043E\u0441",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",collapsed:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"},alert:{clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",selected:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},pagination:{total:{range:" ",total:"\u0438\u0437",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043B\u0435\u0432\u0430",rightPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043F\u0440\u0430\u0432\u0430",noPin:"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C",leftFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043B\u0435\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043F\u0440\u0430\u0432\u0430",noFixedTitle:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E",reset:"\u0421\u0431\u0440\u043E\u0441",columnDisplay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u043E\u043B\u0431\u0446\u0430",columnSetting:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",fullScreen:"\u041F\u043E\u043B\u043D\u044B\u0439 \u044D\u043A\u0440\u0430\u043D",exitFullScreen:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",reload:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",density:"\u0420\u0430\u0437\u043C\u0435\u0440",densityDefault:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",densityLarger:"\u0411\u043E\u043B\u044C\u0448\u043E\u0439",densityMiddle:"\u0421\u0440\u0435\u0434\u043D\u0438\u0439",densitySmall:"\u0421\u0436\u0430\u0442\u044B\u0439"},stepsForm:{next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C"},loginForm:{submitText:"\u0412\u0445\u043E\u0434"},editableTable:{action:{save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"}}},Sl={moneySymbol:"RSD",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Prona\u0111i",reset:"Resetuj",submit:"Po\u0161alji",collapsed:"Pro\u0161iri",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"O\u010Disti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zaka\u010Di levo",rightPin:"Zaka\u010Di desno",noPin:"Nije zaka\u010Deno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Pode\u0161avanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osve\u017Ei",density:"Veli\u010Dina",densityDefault:"Podrazumevana",densityLarger:"Ve\u0107a",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sa\u010Duvaj",cancel:"Poni\u0161ti",delete:"Obri\u0161i"}}},El={moneySymbol:"\u20BA",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"\xD6\u011Feler"}},tableForm:{search:"Filtrele",reset:"S\u0131f\u0131rla",submit:"G\xF6nder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer girin",selectPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer se\xE7in"},alert:{clear:"Temizle",selected:"Se\xE7ili",item:"\xD6\u011Fe"},pagination:{total:{range:" ",total:"Toplam",item:"\xD6\u011Fe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sa\u011Fa sabitle",noPin:"Sabitlemeyi kald\u0131r",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sa\u011Fa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"S\u0131f\u0131rla",columnDisplay:"Kolon G\xF6r\xFCn\xFCm\xFC",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan \xC7\u0131k",reload:"Yenile",density:"Kal\u0131nl\u0131k",densityDefault:"Varsay\u0131lan",densityLarger:"B\xFCy\xFCk",densityMiddle:"Orta",densitySmall:"K\xFC\xE7\xFCk"},stepsForm:{next:"S\u0131radaki",prev:"\xD6nceki",submit:"G\xF6nder"},loginForm:{submitText:"Giri\u015F Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazge\xE7",delete:"Sil"}}},Rl={moneySymbol:"\u20AB",tableForm:{search:"T\xECm ki\u1EBFm",reset:"L\xE0m l\u1EA1i",submit:"G\u1EEDi \u0111i",collapsed:"M\u1EDF r\u1ED9ng",expand:"Thu g\u1ECDn",inputPlaceholder:"nh\u1EADp d\u1EEF li\u1EC7u",selectPlaceholder:"Vui l\xF2ng ch\u1ECDn"},alert:{clear:"X\xF3a",selected:"\u0111\xE3 ch\u1ECDn",item:"m\u1EE5c"},pagination:{total:{range:" ",total:"tr\xEAn",item:"m\u1EB7t h\xE0ng"}},tableToolBar:{leftPin:"Ghim tr\xE1i",rightPin:"Ghim ph\u1EA3i",noPin:"B\u1ECF ghim",leftFixedTitle:"C\u1ED1 \u0111\u1ECBnh tr\xE1i",rightFixedTitle:"C\u1ED1 \u0111\u1ECBnh ph\u1EA3i",noFixedTitle:"Ch\u01B0a c\u1ED1 \u0111\u1ECBnh",reset:"L\xE0m l\u1EA1i",columnDisplay:"C\u1ED9t hi\u1EC3n th\u1ECB",columnSetting:"C\u1EA5u h\xECnh",fullScreen:"Ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",exitFullScreen:"Tho\xE1t ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",reload:"L\xE0m m\u1EDBi",density:"M\u1EADt \u0111\u1ED9 hi\u1EC3n th\u1ECB",densityDefault:"M\u1EB7c \u0111\u1ECBnh",densityLarger:"M\u1EB7c \u0111\u1ECBnh",densityMiddle:"Trung b\xECnh",densitySmall:"Ch\u1EADt"},loginForm:{submitText:"\u0110\u0103ng nh\u1EADp"}},Pl={moneySymbol:"\uFFE5",form:{lightFilter:{more:"\u66F4\u591A\u7B5B\u9009",clear:"\u6E05\u9664",confirm:"\u786E\u8BA4",itemUnit:"\u9879"}},tableForm:{search:"\u67E5\u8BE2",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u5F00",expand:"\u6536\u8D77",inputPlaceholder:"\u8BF7\u8F93\u5165",selectPlaceholder:"\u8BF7\u9009\u62E9"},alert:{clear:"\u53D6\u6D88\u9009\u62E9",selected:"\u5DF2\u9009\u62E9",item:"\u9879"},pagination:{total:{range:"\u7B2C",total:"\u6761/\u603B\u5171",item:"\u6761"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5728\u5217\u9996",rightPin:"\u56FA\u5B9A\u5728\u5217\u5C3E",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u4FA7",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u4FA7",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8BBE\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7D27\u51D1"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664"}},switch:{open:"\u6253\u5F00",close:"\u5173\u95ED"},loginForm:{submitText:"\u767B\u5F55"}},Ml={moneySymbol:"NT$",form:{lightFilter:{more:"\u66F4\u591A\u7BE9\u9078",clear:"\u6E05\u9664",confirm:"\u78BA\u8A8D",itemUnit:"\u9805"}},tableForm:{search:"\u67E5\u8A62",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u6536\u8D77",inputPlaceholder:"\u8ACB\u8F38\u5165",selectPlaceholder:"\u8ACB\u9078\u64C7"},alert:{clear:"\u53D6\u6D88\u9078\u64C7",selected:"\u5DF2\u9078\u64C7",item:"\u9805"},pagination:{total:{range:"\u7B2C",total:"\u689D/\u7E3D\u5171",item:"\u689D"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5230\u5DE6\u908A",rightPin:"\u56FA\u5B9A\u5230\u53F3\u908A",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u5074",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u5074",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8A2D\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8A8D",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7DCA\u6E4A"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664"}},switch:{open:"\u6253\u958B",close:"\u95DC\u9589"},loginForm:{submitText:"\u767B\u5165"}};function Tl(t,e,n){var r=e.replace(/\[(\d+)\]/g,".$1").split("."),a=t,i=n,o=$e(r),u;try{for(o.s();!(u=o.n()).done;){var c=u.value;if(i=Object(a)[c],a=Object(a)[c],i===void 0)return n}}catch(s){o.e(s)}finally{o.f()}return i}var Pe=function(e,n){return{getMessage:function(a,i){return Tl(n,a,i)||i},locale:e}},wl=Pe("mn_MN",gl),Nl=Pe("ar_EG",al),Cn=Pe("zh_CN",Pl),Zl=Pe("en_US",ul),Fl=Pe("en_GB",ll),Ol=Pe("vi_VN",Rl),Al=Pe("it_IT",ml),Il=Pe("ja_JP",hl),Dl=Pe("es_ES",sl),Ll=Pe("ca_ES",il),kl=Pe("ru_RU",Cl),Bl=Pe("sr_RS",Sl),_l=Pe("ms_MY",yl),jl=Pe("zh_TW",Ml),zl=Pe("fr_FR",fl),Wl=Pe("pt_BR",xl),Hl=Pe("ko_KR",pl),Ul=Pe("id_ID",vl),Kl=Pe("de_DE",ol),$l=Pe("fa_IR",cl),Vl=Pe("tr_TR",El),Gl=Pe("pl_PL",bl),Ql=Pe("hr_",dl),Sn={"mn-MN":wl,"ar-EG":Nl,"zh-CN":Cn,"en-US":Zl,"en-GB":Fl,"vi-VN":Ol,"it-IT":Al,"ja-JP":Il,"es-ES":Dl,"ca-ES":Ll,"ru-RU":kl,"sr-RS":Bl,"ms-MY":_l,"zh-TW":jl,"fr-FR":zl,"pt-BR":Wl,"ko-KR":Hl,"id-ID":Ul,"de-DE":Kl,"fa-IR":$l,"tr-TR":Vl,"pl-PL":Gl,"hr-HR":Ql},Yl=Object.keys(Sn),fr=l.createContext({intl:(0,b.Z)((0,b.Z)({},Cn),{},{locale:"default"}),valueTypeMap:{}}),Xl=fr.Consumer,Jl=fr.Provider,ya=function(e){if(!e)return"zh-CN";var n=e.toLocaleLowerCase();return Yl.find(function(r){var a=r.toLocaleLowerCase();return a.includes(n)})},ql=function(){var e=sr(),n=e.cache;return(0,l.useEffect)(function(){return function(){n.clear()}},[]),null},ba=function(e){var n=e.children,r=e.autoClearCache,a=r===void 0?!1:r,i=(0,l.useContext)(X.ZP.ConfigContext),o=i.locale,u=o===void 0?X.ZP:l.Fragment,c=l.createElement(Xl,null,function(s){var f,v=o==null?void 0:o.locale,d=ya(v),h=v&&((f=s.intl)===null||f===void 0?void 0:f.locale)==="default"?Sn[d]:s.intl||Sn[d],g=o===void 0?{locale:fe.Z}:{};return l.createElement(u,g,l.createElement(Jl,{value:(0,b.Z)((0,b.Z)({},s),{},{intl:h||Cn})},l.createElement(l.Fragment,null,a&&l.createElement(ql,null),n)))});return a?l.createElement(nl,{value:{provider:function(){return new Map}}},c):c};function Ym(){var t=useContext(_ConfigProvider.ConfigContext),e=t.locale,n=useContext(fr),r=n.intl;return r&&r.locale!=="default"?r:(e==null?void 0:e.locale)?Sn[ya(e.locale)]:Cn}var Xm=null,Jm=null,En=C(21770);function eu(t,e){var n=(0,l.useRef)(!1),r=(0,l.useRef)(void 0);(0,l.useEffect)(function(){return n.current=!0,function(){clearTimeout(r.current),n.current=!1}},[]);var a=(0,En.Z)(t,e),i=(0,I.Z)(a,2),o=i[0],u=i[1],c=function(f){clearTimeout(r.current),r.current=window.setTimeout(function(){n.current&&u(f)},16)};return l.version.startsWith("18")?[o,u]:[o,c]}var Rn=eu,dr=C(34155),tu=typeof dr!="undefined"&&dr.versions!=null&&dr.versions.node!=null,nu=function(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.matchMedia!="undefined"&&!tu},vr=nu;function ru(t,e){var n=typeof t.pageName=="string"?t.title:e;(0,l.useEffect)(function(){vr()&&n&&(document.title=n)},[t.title,n])}var au=ru,iu=C(21879),xa=C.n(iu),Ca=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function ou(t,e){return!!(t===e||Ca(t)&&Ca(e))}function lu(t,e){if(t.length!==e.length)return!1;for(var n=0;n=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){a+=t[i++];continue}break}if(!a)throw new TypeError("Missing parameter name at "+n);e.push({type:"NAME",index:n,value:a}),n=i;continue}if(r==="("){var u=1,c="",i=n+1;if(t[i]==="?")throw new TypeError('Pattern cannot start with "?" at '+i);for(;i-1:R===void 0;a||(h+="(?:"+d+"(?="+v+"))?"),P||(h+="(?="+d+"|"+v+")")}return new RegExp(h,mr(n))}function et(t,e,n){return t instanceof RegExp?du(t,e):Array.isArray(t)?vu(t,e,n):mu(t,e,n)}function tt(t,e){return e>>>t|e<<32-t}function pu(t,e,n){return t&e^~t&n}function gu(t,e,n){return t&e^t&n^e&n}function yu(t){return tt(2,t)^tt(13,t)^tt(22,t)}function bu(t){return tt(6,t)^tt(11,t)^tt(25,t)}function xu(t){return tt(7,t)^tt(18,t)^t>>>3}function Cu(t){return tt(17,t)^tt(19,t)^t>>>10}function Su(t,e){return t[e&15]+=Cu(t[e+14&15])+t[e+9&15]+xu(t[e+1&15])}var Eu=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],he,Ie,we,Ru="0123456789abcdef";function Ea(t,e){var n=(t&65535)+(e&65535),r=(t>>16)+(e>>16)+(n>>16);return r<<16|n&65535}function Pu(){he=new Array(8),Ie=new Array(2),we=new Array(64),Ie[0]=Ie[1]=0,he[0]=1779033703,he[1]=3144134277,he[2]=1013904242,he[3]=2773480762,he[4]=1359893119,he[5]=2600822924,he[6]=528734635,he[7]=1541459225}function hr(){var t,e,n,r,a,i,o,u,c,s,f=new Array(16);t=he[0],e=he[1],n=he[2],r=he[3],a=he[4],i=he[5],o=he[6],u=he[7];for(var v=0;v<16;v++)f[v]=we[(v<<2)+3]|we[(v<<2)+2]<<8|we[(v<<2)+1]<<16|we[v<<2]<<24;for(var d=0;d<64;d++)c=u+bu(a)+pu(a,i,o)+Eu[d],d<16?c+=f[d]:c+=Su(f,d),s=yu(t)+gu(t,e,n),u=o,o=i,i=a,a=Ea(r,c),r=n,n=e,e=t,t=Ea(c,s);he[0]+=t,he[1]+=e,he[2]+=n,he[3]+=r,he[4]+=a,he[5]+=i,he[6]+=o,he[7]+=u}function Mu(t,e){var n,r,a=0;r=Ie[0]>>3&63;var i=e&63;for((Ie[0]+=e<<3)>29,n=0;n+63>3&63;if(we[t++]=128,t<=56)for(var e=t;e<56;e++)we[e]=0;else{for(var n=t;n<64;n++)we[n]=0;hr();for(var r=0;r<56;r++)we[r]=0}we[56]=Ie[1]>>>24&255,we[57]=Ie[1]>>>16&255,we[58]=Ie[1]>>>8&255,we[59]=Ie[1]&255,we[60]=Ie[0]>>>24&255,we[61]=Ie[0]>>>16&255,we[62]=Ie[0]>>>8&255,we[63]=Ie[0]&255,hr()}function t0(){for(var t=0,e=new Array(32),n=0;n<8;n++)e[t++]=he[n]>>>24&255,e[t++]=he[n]>>>16&255,e[t++]=he[n]>>>8&255,e[t++]=he[n]&255;return e}function wu(){for(var t=new String,e=0;e<8;e++)for(var n=28;n>=0;n-=4)t+=Ru.charAt(he[e]>>>n&15);return t}function Nu(t){return Pu(),Mu(t,t.length),Tu(),wu()}var Zu=Nu;function Mn(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mn=function(n){return typeof n}:Mn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mn(t)}var Fu=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Ou(t,e){return Du(t)||Iu(t,e)||gr(t,e)||Au()}function Au(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iu(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,o,u;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(r.push(o.value),!(e&&r.length===e));a=!0);}catch(c){i=!0,u=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw u}}return r}}function Du(t){if(Array.isArray(t))return t}function Lu(t,e){var n=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=gr(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(s){throw s},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,u;return{s:function(){n=n.call(t)},n:function(){var s=n.next();return i=s.done,s},e:function(s){o=!0,u=s},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw u}}}}function ku(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ra(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)&&(!Object.prototype.propertyIsEnumerable.call(t,r)||(n[r]=t[r]))}return n}function Gu(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,i;for(i=0;i=0)&&(n[a]=t[a]);return n}function Ta(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ne(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return(e||n).startsWith("/")||br(e)?e:"/".concat(n,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},Xu=function(e,n){var r=e.menu,a=r===void 0?{}:r,i=e.indexRoute,o=e.path,u=o===void 0?"":o,c=e.children||e[Be],s=a.name,f=s===void 0?e.name:s,v=a.icon,d=v===void 0?e.icon:v,h=a.hideChildren,g=h===void 0?e.hideChildren:h,y=a.flatMenu,m=y===void 0?e.flatMenu:y,p=i&&Object.keys(i).join(",")!=="redirect"?[Ne({path:u,menu:a},i)].concat(c||[]):c,x=Ne({},e);if(f&&(x.name=f),d&&(x.icon=d),p&&p.length){if(g)return delete x[Be],delete x.children,x;var S=xr(Ne(Ne({},n),{},{data:p}),e);if(m)return S;x[Be]=S}return x},lt=function(e){return Array.isArray(e)&&e.length>0};function xr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=t.data,r=t.formatMessage,a=t.parentName,i=t.locale;return!n||!Array.isArray(n)?[]:n.filter(function(o){return o?lt(o[Be])||lt(o.children)||o.path||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var u,c;return o.unaccessible&&delete o.name,(o==null||(u=o.menu)===null||u===void 0?void 0:u.name)||(o==null?void 0:o.flatMenu)||(o==null||(c=o.menu)===null||c===void 0?void 0:c.flatMenu)?!0:o.menu!==!1}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},u=o.children||o[Be],c=wa(o.path,e?e.path:"/"),s=o.name,f=Yu(o,a||"menu"),v=f!==!1&&i!==!1&&r&&f?r({id:f,defaultMessage:s}):s,d=e.pro_layout_parentKeys,h=d===void 0?[]:d,g=e.children,y=e.icon,m=e.flatMenu,p=e.indexRoute,x=e.routes,S=Vu(e,Fu),R=new Set([].concat(Ma(h),Ma(o.parentKeys||[])));e.key&&R.add(e.key);var P=Ne(Ne(Ne({},S),{},{menu:void 0},o),{},{path:c,locale:f,key:o.key||Qu(Ne(Ne({},o),{},{path:c})),pro_layout_parentKeys:Array.from(R).filter(function(D){return D&&D!=="/"})});if(v?P.name=v:delete P.name,P.menu===void 0&&delete P.menu,lt(u)){var w=xr(Ne(Ne({},t),{},{data:u,parentName:f||""}),P);lt(w)&&(P[Be]=w,P.children=w)}return Xu(P,t)}).flat(1)}var Ju=Pn(xr,xa()),qu=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(n){return n&&(n.name||lt(n[Be])||lt(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=Ne({},n),a=r.children||r[Be];if(lt(a)&&!r.hideChildrenInMenu&&a.some(function(u){return u&&!!u.name})){var i,o=t(a);if(o.length)return Ne(Ne({},r),{},(i={},rn(i,Be,o),rn(i,"children",o),i))}return Ne(Ne({},n),{},rn({},Be,void 0))}).filter(function(n){return n})},es=function(t){_u(n,t);var e=ju(n);function n(){return ku(this,n),e.apply(this,arguments)}return Bu(n,[{key:"get",value:function(a){var i;try{var o=Lu(this.entries()),u;try{for(o.s();!(u=o.n()).done;){var c=Ou(u.value,2),s=c[0],f=c[1],v=an(s);if(!br(s)&&et(v,[]).test(a)){i=f;break}}}catch(d){o.e(d)}finally{o.f()}}catch(d){i=void 0}return i}}]),n}(pr(Map)),ts=function(e){var n=new es,r=function a(i,o){i.forEach(function(u){var c=u.children||u[Be];lt(c)&&a(c,u);var s=wa(u.path,o?o.path:"/");n.set(an(s),u)})};return r(e),n},ns=Pn(ts,xa()),rs=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(n){var r=n.children||n[Be];if(lt(r)){var a=t(r);if(a.length)return Ne(Ne({},n),{},rn({},Be,a))}var i=Ne({},n);return delete i[Be],delete i.children,i}).filter(function(n){return n})},as=function(e,n,r,a){var i=Ju({data:e,formatMessage:r,locale:n}),o=a?rs(i):qu(i),u=ns(i);return{breadcrumb:u,menuData:o}},is=as;function Na(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function wn(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],n={};return e.forEach(function(r){if(!(!r||!r.key)){var a=r.children||r[Be];n[an(r.path||r.key||"/")]=wn({},r),n[r.key||r.path||"/"]=wn({},r),a&&(n=wn(wn({},n),t(a)))}}),n},Za=ls,us=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return e.filter(function(a){if(a==="/"&&n==="/")return!0;if(a!=="/"&&a!=="/*"&&a&&!br(a)){var i=an(a);try{if(r&&et("".concat(i)).test(n)||et("".concat(i),[]).test(n)||et("".concat(i,"/(.*)")).test(n))return!0}catch(o){}}return!1}).sort(function(a,i){return a===n?10:i===n?-10:a.substr(1).split("/").length-i.substr(1).split("/").length})},ss=function(e,n,r,a){var i=Za(n),o=Object.keys(i),u=us(o,e||"/",a);return!u||u.length<1?[]:(r||(u=[u[u.length-1]]),u.map(function(c){var s=i[c]||{pro_layout_parentKeys:"",key:""},f=new Map,v=(s.pro_layout_parentKeys||[]).map(function(d){return f.has(d)?null:(f.set(d,!0),i[d])}).filter(function(d){return d});return s.key&&v.push(s),v}).flat(1))},cs=ss,fs=C(94184),_=C.n(fs);function ds(t,e){for(var n=Object.assign({},t),r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:1;ka+=1;var n=ka;function r(a){if(a===0)Ba(n),t();else{var i=Da(function(){r(a-1)});Sr.set(n,i)}}return r(e),n}Er.cancel=function(t){var e=Sr.get(t);return Ba(e),La(e)};var _a=C(73935);function ja(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ws=(0,l.forwardRef)(function(t,e){var n=t.didUpdate,r=t.getContainer,a=t.children,i=(0,l.useRef)(),o=(0,l.useRef)();(0,l.useImperativeHandle)(e,function(){return{}});var u=(0,l.useRef)(!1);return!u.current&&ja()&&(o.current=r(),i.current=o.current.parentNode,u.current=!0),(0,l.useEffect)(function(){n==null||n(t)}),(0,l.useEffect)(function(){return o.current.parentNode===null&&i.current!==null&&i.current.appendChild(o.current),function(){var c,s;(c=o.current)===null||c===void 0||(s=c.parentNode)===null||s===void 0||s.removeChild(o.current)}},[]),o.current?_a.createPortal(a,o.current):null}),Ns=ws,Rr;function Pr(t){if(typeof document=="undefined")return 0;if(t||Rr===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var a=e.offsetWidth;n.style.overflow="scroll";var i=e.offsetWidth;a===i&&(i=n.clientWidth),document.body.removeChild(n),Rr=a-i}return Rr}function za(t){var e=t.match(/^(.*)px$/),n=Number(e==null?void 0:e[1]);return Number.isNaN(n)?Pr():n}function i0(t){if(typeof document=="undefined"||!t||!(t instanceof Element))return{width:0,height:0};var e=getComputedStyle(t,"::-webkit-scrollbar"),n=e.width,r=e.height;return{width:za(n),height:za(r)}}function Zs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!t)return{};var n=e.element,r=n===void 0?document.body:n,a={},i=Object.keys(t);return i.forEach(function(o){a[o]=r.style[o]}),i.forEach(function(o){r.style[o]=t[o]}),a}var Bt=Zs;function Fs(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Mr={},Wa=function(t){if(!(!Fs()&&!t)){var e="ant-scrolling-effect",n=new RegExp("".concat(e),"g"),r=document.body.className;if(t){if(!n.test(r))return;Bt(Mr),Mr={},document.body.className=r.replace(n,"").trim();return}var a=Pr();if(a&&(Mr=Bt({position:"relative",width:"calc(100% - ".concat(a,"px)")}),!n.test(r))){var i="".concat(r," ").concat(e);document.body.className=i.trim()}}},nt=C(85061),He=[],Ha="ant-scrolling-effect",Tr=new RegExp("".concat(Ha),"g"),Os=0,wr=new Map,As=(0,ht.Z)(function t(e){var n=this;(0,mt.Z)(this,t),this.lockTarget=void 0,this.options=void 0,this.getContainer=function(){var r;return(r=n.options)===null||r===void 0?void 0:r.container},this.reLock=function(r){var a=He.find(function(i){var o=i.target;return o===n.lockTarget});a&&n.unLock(),n.options=r,a&&(a.options=r,n.lock())},this.lock=function(){var r;if(!He.some(function(c){var s=c.target;return s===n.lockTarget})){if(He.some(function(c){var s,f=c.options;return(f==null?void 0:f.container)===((s=n.options)===null||s===void 0?void 0:s.container)})){He=[].concat((0,nt.Z)(He),[{target:n.lockTarget,options:n.options}]);return}var a=0,i=((r=n.options)===null||r===void 0?void 0:r.container)||document.body;(i===document.body&&window.innerWidth-document.documentElement.clientWidth>0||i.scrollHeight>i.clientHeight)&&(a=Pr());var o=i.className;if(He.filter(function(c){var s,f=c.options;return(f==null?void 0:f.container)===((s=n.options)===null||s===void 0?void 0:s.container)}).length===0&&wr.set(i,Bt({width:a!==0?"calc(100% - ".concat(a,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:i})),!Tr.test(o)){var u="".concat(o," ").concat(Ha);i.className=u.trim()}He=[].concat((0,nt.Z)(He),[{target:n.lockTarget,options:n.options}])}},this.unLock=function(){var r,a=He.find(function(u){var c=u.target;return c===n.lockTarget});if(He=He.filter(function(u){var c=u.target;return c!==n.lockTarget}),!(!a||He.some(function(u){var c,s=u.options;return(s==null?void 0:s.container)===((c=a.options)===null||c===void 0?void 0:c.container)}))){var i=((r=n.options)===null||r===void 0?void 0:r.container)||document.body,o=i.className;!Tr.test(o)||(Bt(wr.get(i),{element:i}),wr.delete(i),i.className=i.className.replace(Tr,"").trim())}},this.lockTarget=Os++,this.options=e}),ut=0,on=ja();function o0(){return 0}var Nn={},_t=function(e){if(!on)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if((0,Ge.Z)(e)==="object"&&e instanceof window.HTMLElement)return e}return document.body},Is=function(t){(0,Lt.Z)(n,t);var e=(0,kt.Z)(n);function n(r){var a;return(0,mt.Z)(this,n),a=e.call(this,r),a.container=void 0,a.componentRef=l.createRef(),a.rafId=void 0,a.scrollLocker=void 0,a.renderComponent=void 0,a.updateScrollLocker=function(i){var o=i||{},u=o.visible,c=a.props,s=c.getContainer,f=c.visible;f&&f!==u&&on&&_t(s)!==a.scrollLocker.getContainer()&&a.scrollLocker.reLock({container:_t(s)})},a.updateOpenCount=function(i){var o=i||{},u=o.visible,c=o.getContainer,s=a.props,f=s.visible,v=s.getContainer;f!==u&&on&&_t(v)===document.body&&(f&&!u?ut+=1:i&&(ut-=1));var d=typeof v=="function"&&typeof c=="function";(d?v.toString()!==c.toString():v!==c)&&a.removeCurrentContainer()},a.attachToParent=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(i||a.container&&!a.container.parentNode){var o=_t(a.props.getContainer);return o?(o.appendChild(a.container),!0):!1}return!0},a.getContainer=function(){return on?(a.container||(a.container=document.createElement("div"),a.attachToParent(!0)),a.setWrapperClassName(),a.container):null},a.setWrapperClassName=function(){var i=a.props.wrapperClassName;a.container&&i&&i!==a.container.className&&(a.container.className=i)},a.removeCurrentContainer=function(){var i,o;(i=a.container)===null||i===void 0||(o=i.parentNode)===null||o===void 0||o.removeChild(a.container)},a.switchScrollingEffect=function(){ut===1&&!Object.keys(Nn).length?(Wa(),Nn=Bt({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):ut||(Bt(Nn),Nn={},Wa(!0))},a.scrollLocker=new As({container:_t(r.getContainer)}),a}return(0,ht.Z)(n,[{key:"componentDidMount",value:function(){var a=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=Er(function(){a.forceUpdate()}))}},{key:"componentDidUpdate",value:function(a){this.updateOpenCount(a),this.updateScrollLocker(a),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var a=this.props,i=a.visible,o=a.getContainer;on&&_t(o)===document.body&&(ut=i&&ut?ut-1:ut),this.removeCurrentContainer(),Er.cancel(this.rafId)}},{key:"render",value:function(){var a=this.props,i=a.children,o=a.forceRender,u=a.visible,c=null,s={getOpenCount:function(){return ut},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(o||u||this.componentRef.current)&&(c=l.createElement(Ns,{getContainer:this.getContainer,ref:this.componentRef},i(s))),c}}]),n}(l.Component),Ds=Is;function Ls(t){return t instanceof HTMLElement?t:_a.findDOMNode(t)}var ks=C(59864);function l0(t,e,n){var r=React.useRef({});return(!("value"in r.current)||n(r.current.condition,e))&&(r.current.value=t(),r.current.condition=e),r.current.value}function Ua(t,e){typeof t=="function"?t(e):(0,Ge.Z)(t)==="object"&&t&&"current"in t&&(t.current=e)}function Bs(){for(var t=arguments.length,e=new Array(t),n=0;n1&&arguments[1]!==void 0?arguments[1]:1;ri+=1;var n=ri;function r(a){if(a===0)ai(n),t();else{var i=ti(function(){r(a-1)});Fr.set(n,i)}}return r(e),n}Or.cancel=function(t){var e=Fr.get(t);return ai(e),ni(e)};var Hs=function(){var t=l.useRef(null);function e(){Or.cancel(t.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;e();var i=Or(function(){a<=1?r({isCanceled:function(){return i!==t.current}}):n(r,a-1)});t.current=i}return l.useEffect(function(){return function(){e()}},[]),[n,e]},Us=Nr()?l.useLayoutEffect:l.useEffect,ii=Us,oi=[st,zt,Wt,Zr],li=!1,Ks=!0;function ui(t){return t===Wt||t===Zr}var $s=function(t,e){var n=In(ei),r=(0,I.Z)(n,2),a=r[0],i=r[1],o=Hs(),u=(0,I.Z)(o,2),c=u[0],s=u[1];function f(){i(st,!0)}return ii(function(){if(a!==ei&&a!==Zr){var v=oi.indexOf(a),d=oi[v+1],h=e(a);h===li?i(d,!0):c(function(g){function y(){g.isCanceled()||i(d,!0)}h===!0?y():Promise.resolve(h).then(y)})}},[t,a]),l.useEffect(function(){return function(){s()}},[]),[f,a]},Vs=function(t){var e=(0,l.useRef)(),n=(0,l.useRef)(t);n.current=t;var r=l.useCallback(function(o){n.current(o)},[]);function a(o){o&&(o.removeEventListener(Ja,r),o.removeEventListener(Xa,r))}function i(o){e.current&&e.current!==o&&a(e.current),o&&o!==e.current&&(o.addEventListener(Ja,r),o.addEventListener(Xa,r),e.current=o)}return l.useEffect(function(){return function(){a(e.current)}},[]),[i,a]};function Gs(t,e,n,r){var a=r.motionEnter,i=a===void 0?!0:a,o=r.motionAppear,u=o===void 0?!0:o,c=r.motionLeave,s=c===void 0?!0:c,f=r.motionDeadline,v=r.motionLeaveImmediately,d=r.onAppearPrepare,h=r.onEnterPrepare,g=r.onLeavePrepare,y=r.onAppearStart,m=r.onEnterStart,p=r.onLeaveStart,x=r.onAppearActive,S=r.onEnterActive,R=r.onLeaveActive,P=r.onAppearEnd,w=r.onEnterEnd,D=r.onLeaveEnd,N=r.onVisibleChanged,E=In(),A=(0,I.Z)(E,2),Z=A[0],B=A[1],k=In(jt),W=(0,I.Z)(k,2),j=W[0],ne=W[1],G=In(null),ve=(0,I.Z)(G,2),le=ve[0],ge=ve[1],V=(0,l.useRef)(!1),Y=(0,l.useRef)(null);function $(){return n()}var ue=(0,l.useRef)(!1);function se(H){var ae=$();if(!(H&&!H.deadline&&H.target!==ae)){var ce=ue.current,_e;j===Fn&&ce?_e=P==null?void 0:P(ae,H):j===On&&ce?_e=w==null?void 0:w(ae,H):j===An&&ce&&(_e=D==null?void 0:D(ae,H)),j!==jt&&ce&&_e!==!1&&(ne(jt,!0),ge(null,!0))}}var Me=Vs(se),ee=(0,I.Z)(Me,1),re=ee[0],Q=l.useMemo(function(){var H,ae,ce;switch(j){case Fn:return H={},(0,T.Z)(H,st,d),(0,T.Z)(H,zt,y),(0,T.Z)(H,Wt,x),H;case On:return ae={},(0,T.Z)(ae,st,h),(0,T.Z)(ae,zt,m),(0,T.Z)(ae,Wt,S),ae;case An:return ce={},(0,T.Z)(ce,st,g),(0,T.Z)(ce,zt,p),(0,T.Z)(ce,Wt,R),ce;default:return{}}},[j]),Se=$s(j,function(H){if(H===st){var ae=Q[st];return ae?ae($()):li}if(J in Q){var ce;ge(((ce=Q[J])===null||ce===void 0?void 0:ce.call(Q,$(),null))||null)}return J===Wt&&(re($()),f>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){se({deadline:!0})},f))),Ks}),ye=(0,I.Z)(Se,2),q=ye[0],J=ye[1],te=ui(J);ue.current=te,ii(function(){B(e);var H=V.current;if(V.current=!0,!!t){var ae;!H&&e&&u&&(ae=Fn),H&&e&&i&&(ae=On),(H&&!e&&s||!H&&v&&!e&&s)&&(ae=An),ae&&(ne(ae),q())}},[e]),(0,l.useEffect)(function(){(j===Fn&&!u||j===On&&!i||j===An&&!s)&&ne(jt)},[u,i,s]),(0,l.useEffect)(function(){return function(){V.current=!1,clearTimeout(Y.current)}},[]);var oe=l.useRef(!1);(0,l.useEffect)(function(){Z&&(oe.current=!0),Z!==void 0&&j===jt&&((oe.current||Z)&&(N==null||N(Z)),oe.current=!0)},[Z,j]);var de=le;return Q[st]&&J===zt&&(de=(0,b.Z)({transition:"none"},de)),[j,J,de,Z!=null?Z:e]}var Qs=function(t){(0,Lt.Z)(n,t);var e=(0,kt.Z)(n);function n(){return(0,mt.Z)(this,n),e.apply(this,arguments)}return(0,ht.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component),Ys=Qs;function Xs(t){var e=t;(0,Ge.Z)(t)==="object"&&(e=t.transitionSupport);function n(a){return!!(a.motionName&&e)}var r=l.forwardRef(function(a,i){var o=a.visible,u=o===void 0?!0:o,c=a.removeOnLeave,s=c===void 0?!0:c,f=a.forceRender,v=a.children,d=a.motionName,h=a.leavedClassName,g=a.eventProps,y=n(a),m=(0,l.useRef)(),p=(0,l.useRef)();function x(){try{return m.current instanceof HTMLElement?m.current:Ls(p.current)}catch(G){return null}}var S=Gs(y,u,x,a),R=(0,I.Z)(S,4),P=R[0],w=R[1],D=R[2],N=R[3],E=l.useRef(N);N&&(E.current=!0);var A=l.useCallback(function(G){m.current=G,Ua(i,G)},[i]),Z,B=(0,b.Z)((0,b.Z)({},g),{},{visible:u});if(!v)Z=null;else if(P===jt||!n(a))N?Z=v((0,b.Z)({},B),A):!s&&E.current?Z=v((0,b.Z)((0,b.Z)({},B),{},{className:h}),A):f?Z=v((0,b.Z)((0,b.Z)({},B),{},{style:{display:"none"}}),A):Z=null;else{var k,W;w===st?W="prepare":ui(w)?W="active":w===zt&&(W="start"),Z=v((0,b.Z)((0,b.Z)({},B),{},{className:_()(qa(d,P),(k={},(0,T.Z)(k,qa(d,"".concat(P,"-").concat(W)),W),(0,T.Z)(k,d,typeof d=="string"),k)),style:D}),A)}if(l.isValidElement(Z)&&_s(Z)){var j=Z,ne=j.ref;ne||(Z=l.cloneElement(Z,{ref:A}))}return l.createElement(Ys,{ref:p},Z)});return r.displayName="CSSMotion",r}var si=Xs(Ya),Ar="add",Ir="keep",Dr="remove",Lr="removed";function Js(t){var e;return t&&(0,Ge.Z)(t)==="object"&&"key"in t?e=t:e={key:t},(0,b.Z)((0,b.Z)({},e),{},{key:String(e.key)})}function kr(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(Js)}function qs(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=e.length,i=kr(t),o=kr(e);i.forEach(function(s){for(var f=!1,v=r;v1});return c.forEach(function(s){n=n.filter(function(f){var v=f.key,d=f.status;return v!==s||d!==Dr}),n.forEach(function(f){f.key===s&&(f.status=Ir)})}),n}var ec=["component","children","onVisibleChanged","onAllRemoved"],tc=["status"],nc=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function rc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:si,n=function(r){(0,Lt.Z)(i,r);var a=(0,kt.Z)(i);function i(){var o;(0,mt.Z)(this,i);for(var u=arguments.length,c=new Array(u),s=0;s=U.F1&&n<=U.F12)return!1;switch(n){case U.ALT:case U.CAPS_LOCK:case U.CONTEXT_MENU:case U.CTRL:case U.DOWN:case U.END:case U.ESC:case U.HOME:case U.INSERT:case U.LEFT:case U.MAC_FF_META:case U.META:case U.NUMLOCK:case U.NUM_CENTER:case U.PAGE_DOWN:case U.PAGE_UP:case U.PAUSE:case U.PRINT_SCREEN:case U.RIGHT:case U.SHIFT:case U.UP:case U.WIN_KEY:case U.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=U.ZERO&&e<=U.NINE||e>=U.NUM_ZERO&&e<=U.NUM_MULTIPLY||e>=U.A&&e<=U.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case U.SPACE:case U.QUESTION_MARK:case U.NUM_PLUS:case U.NUM_MINUS:case U.NUM_PERIOD:case U.NUM_DIVISION:case U.SEMICOLON:case U.DASH:case U.EQUALS:case U.COMMA:case U.PERIOD:case U.SLASH:case U.APOSTROPHE:case U.SINGLE_QUOTE:case U.OPEN_SQUARE_BRACKET:case U.BACKSLASH:case U.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Br=U,_r={};function lc(t,e){}function uc(t,e){}function c0(){_r={}}function di(t,e,n){!e&&!_r[n]&&(t(!1,n),_r[n]=!0)}function sc(t,e){di(lc,t,e)}function f0(t,e){di(uc,t,e)}var cc=sc;function vi(t){return typeof t=="string"&&String(Number(t))===t?(cc(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(t)):t}var mi={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function hi(t){var e,n,r,a,i=t.prefixCls,o=t.open,u=t.placement,c=t.inline,s=t.push,f=t.forceRender,v=t.autoFocus,d=t.keyboard,h=t.scrollLocker,g=t.rootClassName,y=t.rootStyle,m=t.zIndex,p=t.className,x=t.style,S=t.motion,R=t.width,P=t.height,w=t.children,D=t.contentWrapperStyle,N=t.mask,E=t.maskClosable,A=t.maskMotion,Z=t.maskClassName,B=t.maskStyle,k=t.afterOpenChange,W=t.onClose,j=l.useRef(),ne=l.useRef(),G=l.useRef(),ve=function(J){var te=J.keyCode,oe=J.shiftKey;switch(te){case Br.TAB:{if(te===Br.TAB){if(!oe&&document.activeElement===G.current){var de;(de=ne.current)===null||de===void 0||de.focus({preventScroll:!0})}else if(oe&&document.activeElement===ne.current){var H;(H=G.current)===null||H===void 0||H.focus({preventScroll:!0})}}break}case Br.ESC:{W&&d&&W(J);break}}};l.useEffect(function(){if(o&&v){var q;(q=j.current)===null||q===void 0||q.focus({preventScroll:!0})}},[o,v]);var le=l.useState(!1),ge=(0,I.Z)(le,2),V=ge[0],Y=ge[1],$=l.useContext(fi),ue;s===!1?ue={distance:0}:s===!0?ue={}:ue=s||{};var se=(e=(n=(r=ue)===null||r===void 0?void 0:r.distance)!==null&&n!==void 0?n:$==null?void 0:$.pushDistance)!==null&&e!==void 0?e:180,Me=l.useMemo(function(){return{pushDistance:se,push:function(){Y(!0)},pull:function(){Y(!1)}}},[se]);l.useEffect(function(){if(o){var q;$==null||(q=$.push)===null||q===void 0||q.call($)}else{var J;$==null||(J=$.pull)===null||J===void 0||J.call($)}},[o]),l.useEffect(function(){o&&N&&(h==null||h.lock())},[o,N]),l.useEffect(function(){return function(){var q;h==null||h.unLock(),$==null||(q=$.pull)===null||q===void 0||q.call($)}},[]);var ee=N&&l.createElement(ci,(0,O.Z)({key:"mask"},A,{visible:o}),function(q,J){var te=q.className,oe=q.style;return l.createElement("div",{className:_()("".concat(i,"-mask"),te,Z),style:(0,b.Z)((0,b.Z)({},oe),B),onClick:E?W:void 0,ref:J})}),re=typeof S=="function"?S(u):S,Q={};if(V&&se)switch(u){case"top":Q.transform="translateY(".concat(se,"px)");break;case"bottom":Q.transform="translateY(".concat(-se,"px)");break;case"left":Q.transform="translateX(".concat(se,"px)");break;default:Q.transform="translateX(".concat(-se,"px)");break}u==="left"||u==="right"?Q.width=vi(R):Q.height=vi(P);var Se=l.createElement(ci,(0,O.Z)({key:"panel"},re,{visible:o,forceRender:f,onVisibleChanged:function(J){k==null||k(J),J||h==null||h.unLock()},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function(q,J){var te=q.className,oe=q.style;return l.createElement("div",{className:_()("".concat(i,"-content-wrapper"),te),style:(0,b.Z)((0,b.Z)((0,b.Z)({},Q),oe),D)},l.createElement(ic,{containerRef:J,prefixCls:i,className:p,style:x},w))}),ye=(0,b.Z)({},y);return m&&(ye.zIndex=m),l.createElement(fi.Provider,{value:Me},l.createElement("div",{className:_()(i,"".concat(i,"-").concat(u),g,(a={},(0,T.Z)(a,"".concat(i,"-open"),o),(0,T.Z)(a,"".concat(i,"-inline"),c),a)),style:ye,tabIndex:-1,ref:j,onKeyDown:ve},ee,l.createElement("div",{tabIndex:0,ref:ne,style:mi,"aria-hidden":"true","data-sentinel":"start"}),Se,l.createElement("div",{tabIndex:0,ref:G,style:mi,"aria-hidden":"true","data-sentinel":"end"})))}var fc=function(){return document.body},pi=function(e){var n=e.open,r=e.getContainer,a=e.forceRender,i=e.wrapperClassName,o=e.prefixCls,u=e.afterOpenChange,c=e.destroyOnClose,s=l.useState(!1),f=(0,I.Z)(s,2),v=f[0],d=f[1],h=function(m){d(m),u==null||u(m)};if(!a&&!v&&!n&&c)return null;var g=(0,b.Z)((0,b.Z)({},e),{},{prefixCls:o,afterOpenChange:h});return r===!1?l.createElement(hi,(0,O.Z)({},g,{inline:!0})):l.createElement(Ds,{visible:n,forceRender:a,getContainer:r,wrapperClassName:i},function(y){var m=y.scrollLocker;return l.createElement(hi,(0,O.Z)({},g,{scrollLocker:m}))})};pi.defaultProps={open:!1,getContainer:fc,prefixCls:"rc-drawer",placement:"right",autoFocus:!0,keyboard:!0,width:378,mask:!0,maskClosable:!0};var dc=pi,vc=dc,Qe=C(53124),mc=C(65223),gi=C(33603),hc=C(93355),pc=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a");return a}return{Provider:n,useContainer:r}}function v0(t){return t.useContainer()}function Cc(){var t=(0,l.useState)([]),e=(0,I.Z)(t,2),n=e[0],r=e[1];return{flatMenuKeys:n,setFlatMenuKeys:r}}var Sc=xc(Cc),Dn=Sc,m0=C(30887),Ln=C(28682),Ec={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},Rc=Ec,Rt=C(27029),yi=function(e,n){return l.createElement(Rt.Z,(0,b.Z)((0,b.Z)({},e),{},{ref:n,icon:Rc}))};yi.displayName="MenuUnfoldOutlined";var Pc=l.forwardRef(yi),Mc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},Tc=Mc,bi=function(e,n){return l.createElement(Rt.Z,(0,b.Z)((0,b.Z)({},e),{},{ref:n,icon:Tc}))};bi.displayName="MenuFoldOutlined";var wc=l.forwardRef(bi),h0=C(18067),kn=C(98423),Nc=function(e){var n,r,a=e.prefixCls,i=e.className,o=e.style,u=e.size,c=e.shape,s=_()((n={},(0,T.Z)(n,"".concat(a,"-lg"),u==="large"),(0,T.Z)(n,"".concat(a,"-sm"),u==="small"),n)),f=_()((r={},(0,T.Z)(r,"".concat(a,"-circle"),c==="circle"),(0,T.Z)(r,"".concat(a,"-square"),c==="square"),(0,T.Z)(r,"".concat(a,"-round"),c==="round"),r)),v=typeof u=="number"?{width:u,height:u,lineHeight:"".concat(u,"px")}:{};return l.createElement("span",{className:_()(a,s,f,i),style:(0,O.Z)((0,O.Z)({},v),o)})},Bn=Nc,xi=function(e){var n=e.prefixCls,r=e.className,a=e.active,i=l.useContext(Qe.E_),o=i.getPrefixCls,u=o("skeleton",n),c=(0,kn.Z)(e,["prefixCls","className"]),s=_()(u,"".concat(u,"-element"),(0,T.Z)({},"".concat(u,"-active"),a),r);return l.createElement("div",{className:s},l.createElement(Bn,(0,O.Z)({prefixCls:"".concat(u,"-avatar")},c)))};xi.defaultProps={size:"default",shape:"circle"};var Zc=xi,Ci=function(e){var n,r=e.prefixCls,a=e.className,i=e.active,o=e.block,u=o===void 0?!1:o,c=l.useContext(Qe.E_),s=c.getPrefixCls,f=s("skeleton",r),v=(0,kn.Z)(e,["prefixCls"]),d=_()(f,"".concat(f,"-element"),(n={},(0,T.Z)(n,"".concat(f,"-active"),i),(0,T.Z)(n,"".concat(f,"-block"),u),n),a);return l.createElement("div",{className:d},l.createElement(Bn,(0,O.Z)({prefixCls:"".concat(f,"-button")},v)))};Ci.defaultProps={size:"default"};var Fc=Ci,Oc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Ac=Oc,Si=function(e,n){return l.createElement(Rt.Z,(0,b.Z)((0,b.Z)({},e),{},{ref:n,icon:Ac}))};Si.displayName="DotChartOutlined";var Ic=l.forwardRef(Si),Dc=function(e){var n,r=e.prefixCls,a=e.className,i=e.style,o=e.active,u=l.useContext(Qe.E_),c=u.getPrefixCls,s=c("skeleton",r),f=_()(s,"".concat(s,"-element"),(0,T.Z)({},"".concat(s,"-active"),o),a),v=(n=e.children)!==null&&n!==void 0?n:l.createElement(Ic,null);return l.createElement("div",{className:f},l.createElement("div",{className:_()("".concat(s,"-image"),a),style:i},v))},Lc=Dc,kc="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Bc=function(e){var n=e.prefixCls,r=e.className,a=e.style,i=e.active,o=l.useContext(Qe.E_),u=o.getPrefixCls,c=u("skeleton",n),s=_()(c,"".concat(c,"-element"),(0,T.Z)({},"".concat(c,"-active"),i),r);return l.createElement("div",{className:s},l.createElement("div",{className:_()("".concat(c,"-image"),r),style:a},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(c,"-image-svg")},l.createElement("path",{d:kc,className:"".concat(c,"-image-path")}))))},_c=Bc,Ei=function(e){var n,r=e.prefixCls,a=e.className,i=e.active,o=e.block,u=l.useContext(Qe.E_),c=u.getPrefixCls,s=c("skeleton",r),f=(0,kn.Z)(e,["prefixCls"]),v=_()(s,"".concat(s,"-element"),(n={},(0,T.Z)(n,"".concat(s,"-active"),i),(0,T.Z)(n,"".concat(s,"-block"),o),n),a);return l.createElement("div",{className:v},l.createElement(Bn,(0,O.Z)({prefixCls:"".concat(s,"-input")},f)))};Ei.defaultProps={size:"default"};var jc=Ei,zc=function(e){var n=function(s){var f=e.width,v=e.rows,d=v===void 0?2:v;if(Array.isArray(f))return f[s];if(d-1===s)return f},r=e.prefixCls,a=e.className,i=e.style,o=e.rows,u=(0,nt.Z)(Array(o)).map(function(c,s){return l.createElement("li",{key:s,style:{width:n(s)}})});return l.createElement("ul",{className:_()(r,a),style:i},u)},Wc=zc,Hc=function(e){var n=e.prefixCls,r=e.className,a=e.width,i=e.style;return l.createElement("h3",{className:_()(n,r),style:(0,O.Z)({width:a},i)})},Uc=Hc;function jr(t){return t&&(0,Ge.Z)(t)==="object"?t:{}}function Kc(t,e){return t&&!e?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function $c(t,e){return!t&&e?{width:"38%"}:t&&e?{width:"50%"}:{}}function Vc(t,e){var n={};return(!t||!e)&&(n.width="61%"),!t&&e?n.rows=3:n.rows=2,n}var Pt=function(e){var n=e.prefixCls,r=e.loading,a=e.className,i=e.style,o=e.children,u=e.avatar,c=e.title,s=e.paragraph,f=e.active,v=e.round,d=l.useContext(Qe.E_),h=d.getPrefixCls,g=d.direction,y=h("skeleton",n);if(r||!("loading"in e)){var m,p=!!u,x=!!c,S=!!s,R;if(p){var P=(0,O.Z)((0,O.Z)({prefixCls:"".concat(y,"-avatar")},Kc(x,S)),jr(u));R=l.createElement("div",{className:"".concat(y,"-header")},l.createElement(Bn,(0,O.Z)({},P)))}var w;if(x||S){var D;if(x){var N=(0,O.Z)((0,O.Z)({prefixCls:"".concat(y,"-title")},$c(p,S)),jr(c));D=l.createElement(Uc,(0,O.Z)({},N))}var E;if(S){var A=(0,O.Z)((0,O.Z)({prefixCls:"".concat(y,"-paragraph")},Vc(p,x)),jr(s));E=l.createElement(Wc,(0,O.Z)({},A))}w=l.createElement("div",{className:"".concat(y,"-content")},D,E)}var Z=_()(y,(m={},(0,T.Z)(m,"".concat(y,"-with-avatar"),p),(0,T.Z)(m,"".concat(y,"-active"),f),(0,T.Z)(m,"".concat(y,"-rtl"),g==="rtl"),(0,T.Z)(m,"".concat(y,"-round"),v),m),a);return l.createElement("div",{className:Z,style:i},R,w)}return typeof o!="undefined"?o:null};Pt.defaultProps={avatar:!1,title:!0,paragraph:!0},Pt.Button=Fc,Pt.Avatar=Zc,Pt.Input=jc,Pt.Image=_c,Pt.Node=Lc;var Gc=Pt,Qc=Gc,Yc=C(63017),_n=C(41755),Xc=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],Ri=l.forwardRef(function(t,e){var n=t.className,r=t.component,a=t.viewBox,i=t.spin,o=t.rotate,u=t.tabIndex,c=t.onClick,s=t.children,f=(0,z.Z)(t,Xc);(0,_n.Kp)(Boolean(r||s),"Should have `component` prop or `children`."),(0,_n.C3)();var v=l.useContext(Yc.Z),d=v.prefixCls,h=d===void 0?"anticon":d,g=_()(h,n),y=_()((0,T.Z)({},"".concat(h,"-spin"),!!i)),m=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,p=(0,b.Z)((0,b.Z)({},_n.vD),{},{className:y,style:m,viewBox:a});a||delete p.viewBox;var x=function(){return r?l.createElement(r,(0,b.Z)({},p),s):s?((0,_n.Kp)(Boolean(a)||l.Children.count(s)===1&&l.isValidElement(s)&&l.Children.only(s).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),l.createElement("svg",(0,b.Z)((0,b.Z)({},p),{},{viewBox:a}),s)):null},S=u;return S===void 0&&c&&(S=-1),l.createElement("span",(0,b.Z)((0,b.Z)({role:"img"},f),{},{ref:e,tabIndex:S,onClick:c,className:g}),x())});Ri.displayName="AntdIcon";var Pi=Ri,Jc=["type","children"],Mi=new Set;function qc(t){return Boolean(typeof t=="string"&&t.length&&!Mi.has(t))}function jn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t[e];if(qc(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),t.length>e+1&&(r.onload=function(){jn(t,e+1)},r.onerror=function(){jn(t,e+1)}),Mi.add(n),document.body.appendChild(r)}}function Ti(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.scriptUrl,n=t.extraCommonProps,r=n===void 0?{}:n;e&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(e)?jn(e.reverse()):jn([e]));var a=l.forwardRef(function(i,o){var u=i.type,c=i.children,s=(0,z.Z)(i,Jc),f=null;return i.type&&(f=l.createElement("use",{xlinkHref:"#".concat(u)})),c&&(f=c),l.createElement(Pi,(0,b.Z)((0,b.Z)((0,b.Z)({},r),s),{},{ref:o}),f)});return a.displayName="Iconfont",a}var ef=function(e){if(!e||!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch(r){return!1}},zr=ef;function tf(t){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(t)}var nf=tf,rf={navTheme:"dark",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,headerHeight:48,iconfontUrl:"",primaryColor:"#1890ff",splitMenus:!1},wi=rf,Ni=function t(e){return(e||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.routes){var a=n.concat(t(r.routes)||[]);return a}return n},[])},Zi={daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function p0(t){return t&&Zi[t]?Zi[t]:t}function ln(t){return t.map(function(e){var n=e.children||e.routes,r=(0,b.Z)({},e);if(!r.name||r.hideInMenu)return null;if(r&&(r==null?void 0:r.routes)){if(!r.hideChildrenInMenu&&n.some(function(a){return a&&a.name&&!a.hideInMenu}))return(0,b.Z)((0,b.Z)({},e),{},{children:ln(n),routes:ln(n)});delete r.routes,delete r.children}return r}).filter(function(e){return e})}var g0=C(43361),Fi=Ti({scriptUrl:wi.iconfontUrl}),Oi=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-";if(typeof e=="string"&&e!==""){if(zr(e)||nf(e))return l.createElement(Pi,{component:function(){return l.createElement("img",{src:e,alt:"icon",className:"ant-pro-sider-menu-icon"})}});if(e.startsWith(n))return l.createElement(Fi,{type:e})}return e},af=(0,ht.Z)(function t(e){var n=this;(0,mt.Z)(this,t),this.props=void 0,this.getNavMenuItems=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0;return r.map(function(i){return n.getSubMenuOrItem(i,a)}).filter(function(i){return i})},this.getSubMenuOrItem=function(r,a){var i=(r==null?void 0:r.children)||(r==null?void 0:r.routes);if(Array.isArray(i)&&i.length>0){var o=n.getIntlName(r),u=n.props,c=u.subMenuItemRender,s=u.prefixCls,f=u.menu,v=u.iconPrefixes,d=r.icon?l.createElement("span",{className:"".concat(s,"-menu-item"),title:o},!a&&Oi(r.icon,v),l.createElement("span",{className:"".concat(s,"-menu-item-title")},o)):l.createElement("span",{className:"".concat(s,"-menu-item"),title:o},o),h=c?c((0,b.Z)((0,b.Z)({},r),{},{isUrl:!1}),d,n.props):d;return{type:(f==null?void 0:f.type)==="group"?"group":void 0,label:h,children:n.getNavMenuItems(i,!0),onTitleClick:r.onTitleClick,key:r.key||r.path}}return{label:n.getMenuItemPath(r,a),title:n.getIntlName(r),key:r.key||r.path,disabled:r.disabled,onClick:function(y){var m;zr(r==null?void 0:r.path)&&window.open(r.path),(m=r.onTitleClick)===null||m===void 0||m.call(r,y)}}},this.getIntlName=function(r){var a=r.name,i=r.locale,o=n.props,u=o.menu,c=o.formatMessage;return i&&(u==null?void 0:u.locale)!==!1?c==null?void 0:c({id:i,defaultMessage:a}):a},this.getMenuItemPath=function(r,a){var i=n.conversionPath(r.path||"/"),o=n.props,u=o.location,c=u===void 0?{pathname:"/"}:u,s=o.isMobile,f=o.onCollapse,v=o.menuItemRender,d=o.iconPrefixes,h=n.getIntlName(r),g=n.props.prefixCls,y=a?null:Oi(r.icon,d),m=zr(i),p=l.createElement("span",{className:_()("".concat(g,"-menu-item"),(0,T.Z)({},"".concat(g,"-menu-item-link"),m))},y,l.createElement("span",{className:"".concat(g,"-menu-item-title")},h));if(v){var x=(0,b.Z)((0,b.Z)({},r),{},{isUrl:m,itemPath:i,isMobile:s,replace:i===c.pathname,onClick:function(){m&&window.open(i),f&&f(!0)},children:void 0});return v(x,p,n.props)}return p},this.conversionPath=function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")},this.props=e}),of=function(e,n){var r=n.layout,a=n.collapsed,i={};return e&&!a&&["side","mix"].includes(r||"mix")&&(i={openKeys:e}),i},Ai=function(e){var n=e.theme,r=e.mode,a=e.className,i=e.handleOpenChange,o=e.style,u=e.menuData,c=e.menu,s=e.matchMenuKeys,f=e.iconfontUrl,v=e.collapsed,d=e.selectedKeys,h=e.onSelect,g=e.openKeys,y=(0,l.useRef)([]),m=Dn.useContainer(),p=m.flatMenuKeys,x=Rn(c==null?void 0:c.defaultOpenAll),S=(0,I.Z)(x,2),R=S[0],P=S[1],w=Rn(function(){return(c==null?void 0:c.defaultOpenAll)?Ni(u)||[]:g===!1?!1:[]},{value:g===!1?void 0:g,onChange:i}),D=(0,I.Z)(w,2),N=D[0],E=D[1],A=Rn([],{value:d,onChange:h?function(ge){h&&ge&&h(ge)}:void 0}),Z=(0,I.Z)(A,2),B=Z[0],k=Z[1];(0,l.useEffect)(function(){(c==null?void 0:c.defaultOpenAll)||g===!1||p.length||s&&(E(s),k(s))},[s.join("-")]),(0,l.useEffect)(function(){f&&(Fi=Ti({scriptUrl:f}))},[f]),(0,l.useEffect)(function(){if(s.join("-")!==(B||[]).join("-")&&k(s),!R&&g!==!1&&s.join("-")!==(N||[]).join("-")){var ge=s;(c==null?void 0:c.autoClose)===!1&&(ge=Array.from(new Set([].concat((0,nt.Z)(s),(0,nt.Z)(N||[]))))),E(ge)}else(c==null?void 0:c.ignoreFlatMenu)&&R?E(Ni(u)):p.length>0&&P(!1)},[s.join("-"),v]);var W=(0,l.useMemo)(function(){return of(N,e)},[N&&N.join(","),e.layout,e.collapsed]),j=(0,l.useState)(function(){return new af(e)}),ne=(0,I.Z)(j,1),G=ne[0];if(c==null?void 0:c.loading)return l.createElement("div",{style:(r==null?void 0:r.includes("inline"))?{padding:24}:{marginTop:16}},l.createElement(Qc,{active:!0,title:!1,paragraph:{rows:(r==null?void 0:r.includes("inline"))?6:1}}));var ve=_()(a,{"top-nav-menu":r==="horizontal"});G.props=e,e.openKeys===!1&&!e.handleOpenChange&&(y.current=s);var le=e.postMenuData?e.postMenuData(u):u;return le&&(le==null?void 0:le.length)<1?null:l.createElement(Ln.Z,(0,O.Z)({},W,{key:"Menu",mode:r,items:G.getNavMenuItems(le,!1),inlineIndent:16,defaultOpenKeys:y.current,theme:n,selectedKeys:B,style:o,className:ve,onOpenChange:E},e.menuProps))};Ai.defaultProps={postMenuData:function(e){return e||[]}};var Ii=Ai,lf=ot.Z.Sider,Di=function(e){return typeof e=="string"?l.createElement("img",{src:e,alt:"logo"}):typeof e=="function"?e():e},Wr=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=e.logo,a=e.title,i=e.layout,o=e[n||""];if(o===!1)return null;var u=Di(r),c=l.createElement("h1",null,a!=null?a:"Ant Design Pro");return o?o(u,e.collapsed?null:c,e):i==="mix"&&n==="menuHeaderRender"?null:l.createElement("a",null,u,e.collapsed?null:c)},Li=function(e){return e?l.createElement(Pc,null):l.createElement(wc,null)},uf=function(e){var n,r=e.collapsed,a=e.fixSiderbar,i=e.menuFooterRender,o=e.onCollapse,u=e.theme,c=e.siderWidth,s=e.isMobile,f=e.onMenuHeaderClick,v=e.breakpoint,d=v===void 0?"lg":v,h=e.style,g=e.layout,y=e.menuExtraRender,m=y===void 0?!1:y,p=e.collapsedButtonRender,x=p===void 0?Li:p,S=e.links,R=e.menuContentRender,P=e.prefixCls,w=e.onOpenChange,D=e.headerHeight,N=e.logoStyle,E="".concat(P,"-sider"),A=Dn.useContainer(),Z=A.flatMenuKeys,B=_()("".concat(E),(n={},(0,T.Z)(n,"".concat(E,"-fixed"),a),(0,T.Z)(n,"".concat(E,"-layout-").concat(g),g&&!s),(0,T.Z)(n,"".concat(E,"-light"),u!=="dark"),n)),k=Wr(e),W=m&&m(e),j=R!==!1&&Z&&l.createElement(Ii,(0,O.Z)({},e,{key:"base-menu",mode:"inline",handleOpenChange:w,style:{width:"100%"},className:"".concat(E,"-menu")})),ne=R?R(e,j):j,G=(S||[]).map(function(ve,le){return{className:"".concat(E,"-link"),label:ve,key:le}});return x&&!s&&G.push({className:"".concat(E,"-collapsed-button"),title:!1,key:"collapsed",onClick:function(){o&&o(!r)},label:x(r)}),l.createElement(l.Fragment,null,a&&l.createElement("div",{style:(0,b.Z)({width:r?48:c,overflow:"hidden",flex:"0 0 ".concat(r?48:c,"px"),maxWidth:r?48:c,minWidth:r?48:c,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},h)}),l.createElement(lf,{collapsible:!0,trigger:null,collapsed:r,breakpoint:d===!1?void 0:d,onCollapse:function(le){s||o==null||o(le)},collapsedWidth:48,style:(0,b.Z)({overflow:"hidden",paddingTop:g==="mix"&&!s?D:void 0},h),width:c,theme:u,className:B},k&&l.createElement("div",{className:_()("".concat(E,"-logo"),(0,T.Z)({},"".concat(E,"-collapsed"),r)),onClick:g!=="mix"?f:void 0,id:"logo",style:N},k),W&&l.createElement("div",{className:"".concat(E,"-extra ").concat(!k&&"".concat(E,"-extra-no-logo"))},W),l.createElement("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"}},ne),l.createElement("div",{className:"".concat(E,"-links")},l.createElement(Ln.Z,{theme:u,inlineIndent:16,className:"".concat(E,"-link-menu"),selectedKeys:[],openKeys:[],mode:"inline",items:G})),i&&l.createElement("div",{className:_()("".concat(E,"-footer"),(0,T.Z)({},"".concat(E,"-footer-collapsed"),!r))},i(e))))},ki=uf,sf=function(e){var n=e.isMobile,r=e.menuData,a=e.siderWidth,i=e.collapsed,o=e.onCollapse,u=e.style,c=e.className,s=e.hide,f=e.getContainer,v=e.prefixCls,d=e.matchMenuKeys,h=Dn.useContainer(),g=h.setFlatMenuKeys;(0,l.useEffect)(function(){if(!(!r||r.length<1)){var m=Za(r);g(Object.keys(m))}},[d.join("-")]),(0,l.useEffect)(function(){n===!0&&(o==null||o(!0))},[n]);var y=Cr(e,["className","style"]);return s?null:n?l.createElement(bc,{visible:!i,placement:"left",className:_()("".concat(v,"-drawer-sider"),c),onClose:function(){return o==null?void 0:o(!0)},style:(0,b.Z)({padding:0,height:"100vh"},u),getContainer:f,width:a,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"}},l.createElement(ki,(0,O.Z)({},y,{className:_()("".concat(v,"-sider"),c),collapsed:n?!1:i,splitMenus:!1}))):l.createElement(ki,(0,O.Z)({className:_()("".concat(v,"-sider"),c)},y,{style:u}))},Bi=sf,cf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},ff=cf,_i=function(e,n){return l.createElement(Rt.Z,(0,b.Z)((0,b.Z)({},e),{},{ref:n,icon:ff}))};_i.displayName="CopyrightOutlined";var df=l.forwardRef(_i),y0=C(80471),vf=function(t){var e=t.className,n=t.prefixCls,r=t.links,a=t.copyright,i=t.style,o=(0,l.useContext)(X.ZP.ConfigContext),u=o.getPrefixCls(n||"pro-global-footer");if((r==null||r===!1||Array.isArray(r)&&r.length===0)&&(a==null||a===!1))return null;var c=_()(u,e);return l.createElement("div",{className:c,style:i},r&&l.createElement("div",{className:"".concat(u,"-links")},r.map(function(s){return l.createElement("a",{key:s.key,title:s.key,target:s.blankTarget?"_blank":"_self",href:s.href,rel:"noreferrer"},s.title)})),a&&l.createElement("div",{className:"".concat(u,"-copyright")},a))},mf=ot.Z.Footer,hf=function(e){var n=e.links,r=e.copyright,a=e.style,i=e.className,o=e.prefixCls;return l.createElement(mf,{className:i,style:(0,b.Z)({padding:0},a)},l.createElement(vf,{links:n,prefixCls:o,copyright:r===!1?null:l.createElement(l.Fragment,null,l.createElement(df,null)," ",r)}))},pf=hf,gf=C(16254),Hr=C.n(gf),yf=function(e,n,r){if(r){var a=(0,nt.Z)(r.keys()).find(function(o){return Hr()(o).test(e)});if(a)return r.get(a)}if(n){var i=Object.keys(n).find(function(o){return Hr()(o).test(e)});if(i)return n[i]}return{path:""}},ji=function(e,n){var r=e.pathname,a=r===void 0?"/":r,i=e.breadcrumb,o=e.breadcrumbMap,u=e.formatMessage,c=e.title,s=e.menu,f=s===void 0?{locale:!1}:s,v=n?"":c||"",d=yf(a,i,o);if(!d)return{title:v,id:"",pageName:v};var h=d.name;return f.locale!==!1&&d.locale&&u&&(h=u({id:d.locale||"",defaultMessage:d.name})),h?n||!c?{title:h,id:d.locale||"",pageName:h}:{title:"".concat(h," - ").concat(c),id:d.locale||"",pageName:h}:{title:v,id:d.locale||"",pageName:v}},b0=function(e,n){return ji(e,n).title},x0=null,bf=function(e){var n=(0,l.useRef)(null);return n.current=e,(0,l.useCallback)(function(){for(var r,a=arguments.length,i=new Array(a),o=0;o