diff --git a/dist/_umi_route_preload_helper.55e8b291.js b/dist/_umi_route_preload_helper.7944206c.js similarity index 80% rename from dist/_umi_route_preload_helper.55e8b291.js rename to dist/_umi_route_preload_helper.7944206c.js index e401897..a3cd732 100644 --- a/dist/_umi_route_preload_helper.55e8b291.js +++ b/dist/_umi_route_preload_helper.7944206c.js @@ -1 +1 @@ -!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["51.a2ea1b3b.async.js",51],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["343.7ff141fb.async.js",343],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.c61abcd9.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["p__SuperAdmin.e8eab676.async.js",455],["p__Proxy__ProxyUserManagement.f7d74b28.async.js",526],["531.4c68f902.async.js",531],["539.49b7b156.async.js",539],["p__AdvRecordListV2.c183b707.async.js",542],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.20e45f05.async.js",635],["p__App__AppManagement.8c2eb6d0.async.js",731],["p__AdminManagement.3daf3600.async.js",816],["822.4ba8fa04.async.js",822],["841.614ef4c0.async.js",841],["p__AdvRecordList.fc092f59.async.js",857],["p__UserManagement.7a38d351.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930],["942.561ac28f.async.js",942],["p__Proxy__ProxyAdvRecordListV2.2e1ec116.async.js",990]],"r":{"/*":[19,27],"/":[1,4,5,18,20,27],"/welcome":[1,2,3,10,18,28,4,5,20,27],"/super":[0,1,2,6,12,14,15,23,27,28,4,5,18,20],"/adminList":[0,1,2,22,23,29,4,5,18,20,27],"/bind":[1,2,10,11,17,18,28,4,5,20,27],"/appList":[0,1,2,6,11,14,15,21,23,27,28,4,5,18,20],"/advList/:code":[0,1,2,14,15,18,23,24,25,27,28,4,5,20],"/advListV2/:code":[0,1,2,14,15,16,18,23,24,27,28,4,5,20],"/user/:code":[0,1,2,14,15,23,26,27,28,4,5,18,20],"/app/:code":[0,1,2,8,14,15,18,23,24,27,28,4,5,20],"/user/login":[1,2,7,14,23],"/proxy/advListV2/:code":[0,1,2,14,15,18,23,24,27,28,30,4,5,20],"/proxy/user/:code":[0,1,2,13,14,15,23,27,28,4,5,18,20]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file +!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["51.a2ea1b3b.async.js",51],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["343.7ff141fb.async.js",343],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.c61abcd9.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["p__SuperAdmin.b23d2340.async.js",455],["p__Proxy__ProxyUserManagement.09105256.async.js",526],["531.4c68f902.async.js",531],["539.49b7b156.async.js",539],["p__AdvRecordListV2.bed7a82c.async.js",542],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.20e45f05.async.js",635],["p__App__AppManagement.8c2eb6d0.async.js",731],["p__AdminManagement.aabf9f6f.async.js",816],["822.4ba8fa04.async.js",822],["841.614ef4c0.async.js",841],["p__AdvRecordList.fc092f59.async.js",857],["p__UserManagement.656d1839.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930],["942.561ac28f.async.js",942],["p__Proxy__ProxyAdvRecordListV2.109e8e16.async.js",990]],"r":{"/*":[19,27],"/":[1,4,5,18,20,27],"/welcome":[1,2,3,10,18,28,4,5,20,27],"/super":[0,1,2,6,12,14,15,23,27,28,4,5,18,20],"/adminList":[0,1,2,22,23,29,4,5,18,20,27],"/bind":[1,2,10,11,17,18,28,4,5,20,27],"/appList":[0,1,2,6,11,14,15,21,23,27,28,4,5,18,20],"/advList/:code":[0,1,2,14,15,18,23,24,25,27,28,4,5,20],"/advListV2/:code":[0,1,2,14,15,16,18,23,24,27,28,4,5,20],"/user/:code":[0,1,2,14,15,23,26,27,28,4,5,18,20],"/app/:code":[0,1,2,8,14,15,18,23,24,27,28,4,5,20],"/user/login":[1,2,7,14,23],"/proxy/advListV2/:code":[0,1,2,14,15,18,23,24,27,28,30,4,5,20],"/proxy/user/:code":[0,1,2,13,14,15,23,27,28,4,5,18,20]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 2fb5e9a..eb63f68 100644 --- a/dist/index.html +++ b/dist/index.html @@ -7,10 +7,10 @@ Ant Design Pro - +
- + \ No newline at end of file diff --git a/dist/p__AdminManagement.3daf3600.async.js b/dist/p__AdminManagement.3daf3600.async.js deleted file mode 100644 index 95988ee..0000000 --- a/dist/p__AdminManagement.3daf3600.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[816],{85099:function(G,B,n){n.r(B),n.d(B,{default:function(){return Ie}});var O=n(15009),l=n.n(O),R=n(99289),o=n.n(R),k=n(5574),f=n.n(k),v=n(48357),i=n(35312),a=n(8232),F=n(66309),s=n(71230),m=n(15746),Z=n(14726),E=n(13169),C=n(72051),_=n(17788),w=n(55102),c=n(34041),J=n(37804),q=n(16250),D=n(67294),he=n(72269),e=n(85893),je=function(p){var K=function(){p.onSubmit()},T=[{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u89D2\u8272",dataIndex:"role",render:function(P){var I="";switch(P){case 1:I="\u8D85\u7EA7\u7BA1\u7406\u5458";break;case 2:I="\u7BA1\u7406\u5458";break;case 3:I="\u6E38\u620F\u4E3B";break;case 4:I="\u8BBE\u5907\u4E3B";break;default:I=""}return I}},{title:"\u9690\u85CF",render:function(P){return(0,e.jsx)(he.Z,{defaultValue:P.hide!==0,onClick:function($){P.id&&(0,v.tQ)({adminId:P.id,hide:$?1:0})}},P.id)}}];return(0,e.jsx)(_.Z,{title:"\u6279\u91CF\u7F16\u8F91",visible:!0,footer:[],onCancel:K,children:(0,e.jsx)(C.Z,{columns:T,dataSource:p.data})})},xe=je,pe=n(19632),ee=n.n(pe),ge=n(81072),be=n(3089),Ee=n(55241),ue=n(86250),N=n(2453),ie=n(38171),Ze=function(p){var K=(0,D.useState)([]),T=f()(K,2),U=T[0],P=T[1],I=(0,D.useState)([]),$=f()(I,2),y=$[0],H=$[1],z=a.Z.useForm(),Y=f()(z,1),W=Y[0],ne=function(){var x=o()(l()().mark(function S(A){var h;return l()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,(0,v.yC)({adminId:A});case 2:h=M.sent,P(h.data||[]);case 4:case"end":return M.stop()}},S)}));return function(A){return x.apply(this,arguments)}}();return(0,D.useEffect)(function(){p.data.id&&ne(p.data.id)},[p.data.id]),(0,e.jsxs)(_.Z,{title:"\u7ED1\u5B9A\u8D26\u53F7",visible:!0,centered:!0,onCancel:function(){p.onCancel()},footer:[(0,e.jsx)(Z.ZP,{onClick:function(){p.onCancel()},children:"\u53D6\u6D88"},"back"),(0,e.jsx)(Ee.Z,{title:"\u786E\u5B9A\u4FDD\u5B58\u5417",content:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)("p",{children:"\u8D26\u53F7\u4E00\u65E6\u7ED1\u5B9A\u540E\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664"}),(0,e.jsx)("a",{onClick:o()(l()().mark(function x(){var S;return l()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(S=[].concat(ee()(U),ee()(y)).map(function(L){return L.id}).filter(Boolean),!(p.data.id&&S)){h.next=7;break}return h.next=4,(0,v.cH)({adminId:p.data.id},S);case 4:p.onSubmit(),h.next=8;break;case 7:p.onCancel();case 8:case"end":return h.stop()}},x)})),children:"\u786E\u5B9A"})]}),children:(0,e.jsx)(Z.ZP,{type:"primary",children:"\u4FDD\u5B58"})},"confirm")],children:[U.length>0&&(0,e.jsxs)(s.Z,{gutter:6,style:{marginTop:20},children:[(0,e.jsx)(m.Z,{span:4,children:"\u5DF2\u7ED1\u5B9A:"}),(0,e.jsx)(ue.Z,{vertical:!0,gap:"small",children:U.map(function(x){return(0,e.jsx)(s.Z,{children:(0,e.jsx)(ie.Z,{data:x})},x.id)})})]}),y.length>0&&(0,e.jsxs)(s.Z,{gutter:6,style:{marginTop:20},children:[(0,e.jsx)(m.Z,{span:4,children:"\u672C\u6B21\u65B0\u589E:"}),(0,e.jsx)(ue.Z,{vertical:!0,gap:"small",children:y.map(function(x){return(0,e.jsxs)(s.Z,{children:[(0,e.jsx)(ie.Z,{data:x}),(0,e.jsx)(be.Z,{style:{marginLeft:20},onClick:function(){H(y.filter(function(A){return A.id!==x.id}))}})]},x.id)})})]}),(0,e.jsx)(a.Z,{style:{marginTop:20},labelCol:{span:4},wrapperCol:{span:18},form:W,onFinish:function(){var x=o()(l()().mark(function S(A){var h,L;return l()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(h=A.uid,h){b.next=4;break}return N.ZP.error("uid\u4E0D\u80FD\u4E3A\u7A7A"),b.abrupt("return");case 4:if(!(p.data.id&&h)){b.next=15;break}if(!(y.filter(function(V){return V.id===h}).length>0)){b.next=8;break}return N.ZP.error("\u8BE5\u8D26\u53F7\u5DF2\u6DFB\u52A0"),b.abrupt("return");case 8:if(!(U.filter(function(V){return V.id===h}).length>0)){b.next=11;break}return N.ZP.error("\u8BE5\u8D26\u53F7\u5DF2\u6DFB\u52A0"),b.abrupt("return");case 11:return b.next=13,(0,ge.fn)({adminId:p.data.id,userId:h});case 13:L=b.sent,L.data?H([].concat(ee()(y),[L.data])):N.ZP.error("uid\u975E\u6CD5");case 15:case"end":return b.stop()}},S)}));return function(S){return x.apply(this,arguments)}}(),children:(0,e.jsxs)(s.Z,{children:[(0,e.jsx)(a.Z.Item,{name:"uid",label:"uid",children:(0,e.jsx)(J.Z,{style:{width:200}})}),(0,e.jsx)(a.Z.Item,{wrapperCol:{offset:8,span:16},children:(0,e.jsx)(Z.ZP,{type:"primary",htmlType:"submit",children:"\u6DFB\u52A0"})})]})})]})},Ce=Ze,Fe=function(){var p=(0,D.useState)([]),K=f()(p,2),T=K[0],U=K[1],P=(0,D.useState)(!1),I=f()(P,2),$=I[0],y=I[1],H=(0,D.useState)(void 0),z=f()(H,2),Y=z[0],W=z[1],ne=(0,D.useState)(!1),x=f()(ne,2),S=x[0],A=x[1],h=(0,D.useState)(!1),L=f()(h,2),M=L[0],b=L[1],V=(0,D.useState)(0),se=f()(V,2),de=se[0],re=se[1],Se=a.Z.useForm(),De=f()(Se,1),Q=De[0],ye=(0,D.useState)([]),oe=f()(ye,2),ce=oe[0],Be=oe[1],Pe=(0,i.useModel)("@@initialState"),te=Pe.initialState,g=te==null?void 0:te.currentUser,ae=function(t){return t?parseFloat((t/1e5).toFixed(2)):0},me=function(t){var r=ce.find(function(j){return j.id===t});return r?r.name:""},fe=function(t){Q.setFieldsValue(t),y(!0),b(!0),re(t.role?t.role:0)},ve=[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5E94\u7528IDs",dataIndex:"appIds",render:function(t){return(0,e.jsx)("div",{children:t==null?void 0:t.map(function(r){return(0,e.jsx)(F.Z,{color:"blue",children:me(r)},r)})})}},{title:"\u89D2\u8272",dataIndex:"role",render:function(t){var r="";switch(t){case 1:r="\u8D85\u7EA7\u7BA1\u7406\u5458";break;case 2:r="\u7BA1\u7406\u5458";break;case 3:r="\u6E38\u620F\u4E3B";break;case 5:r="\u4EE3\u7406";break;default:r=""}return r}},{title:"\u64CD\u4F5C",render:function(t){return[(0,e.jsx)("a",{onClick:function(){return fe(t)},children:"\u7F16\u8F91"},"edit")]}}],Ae=[{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u5E94\u7528IDs",dataIndex:"appIds",render:function(t){return(0,e.jsx)("div",{children:t==null?void 0:t.map(function(r){return(0,e.jsx)(F.Z,{color:"blue",children:me(r)},r)})})}},{title:"\u89D2\u8272",dataIndex:"role",render:function(t){var r="";switch(t){case 1:r="\u8D85\u7EA7\u7BA1\u7406\u5458";break;case 2:r="\u7BA1\u7406\u5458";break;case 3:r="\u6E38\u620F\u4E3B";break;case 5:r="\u4EE3\u7406";break;default:r=""}return r}},{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",dataIndex:"incomeThisMonth",render:function(t,r){var j;return ae((j=r.overview)===null||j===void 0?void 0:j.thisMonthIncome)}},{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",dataIndex:"incomeLastMonth",render:function(t,r){var j;return ae((j=r.overview)===null||j===void 0?void 0:j.lastMonthIncome)}},{title:"\u7D2F\u8BA1\u6536\u5165\uFF08\u5143\uFF09",dataIndex:"incomeTotal",render:function(t,r){var j;return ae((j=r.overview)===null||j===void 0?void 0:j.totalIncome)}},{title:"\u5F53\u524D\u5206\u6210\u6BD4\u4F8B",dataIndex:"incomeRate"},{title:"\u64CD\u4F5C",render:function(t){return(0,e.jsxs)(s.Z,{gutter:6,children:[(0,e.jsx)(m.Z,{children:(0,e.jsx)("a",{onClick:function(){return fe(t)},children:"\u7F16\u8F91"},"edit")}),t.role===5&&(0,e.jsx)(m.Z,{children:(0,e.jsx)("a",{onClick:function(){W(t)},children:"\u7ED1\u5B9A\u8D26\u53F7"},"grant")})]})}}],Me=function(){Q.submit()},Oe=function(){y(!1)},X=function(){var u=o()(l()().mark(function t(){var r;return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,v.N0)();case 2:r=d.sent,r.data&&U(r.data);case 4:case"end":return d.stop()}},t)}));return function(){return u.apply(this,arguments)}}(),_e=function(){var u=o()(l()().mark(function t(){var r;return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,v.ln)();case 2:r=d.sent,r.data&&Be(r.data);case 4:case"end":return d.stop()}},t)}));return function(){return u.apply(this,arguments)}}();(0,D.useEffect)(function(){X(),_e()},[]);var Te=function(){Q.resetFields(),y(!0),b(!1),re(0)},Ue=function(){var u=o()(l()().mark(function t(r){return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,(0,v.P7)(r);case 3:d.next=8;break;case 5:return d.prev=5,d.t0=d.catch(0),d.abrupt("return");case 8:y(!1),X();case 10:case"end":return d.stop()}},t,null,[[0,5]])}));return function(r){return u.apply(this,arguments)}}();return(0,e.jsxs)("div",{children:[(0,e.jsxs)(s.Z,{align:"stretch",gutter:20,children:[(0,e.jsx)(m.Z,{children:(0,e.jsx)(Z.ZP,{onClick:Te,children:"\u65B0\u5EFA\u8D26\u53F7"})}),(0,e.jsx)(m.Z,{children:(0,e.jsx)(Z.ZP,{onClick:function(){A(!0)},children:"\u6279\u91CF\u7F16\u8F91"})})]}),(0,e.jsxs)(E.Z,{centered:!0,style:{backgroundColor:"white",padding:"20px",marginTop:20},children:[(g==null?void 0:g.role)&&g.role<3&&(0,e.jsx)(q.Z,{tab:"\u6E38\u620F\u4E3B",children:(0,e.jsx)(C.Z,{columns:ve,dataSource:T.filter(function(u){return u.role===3&&u.hide===0})})},"1"),(0,e.jsx)(q.Z,{tab:"\u4EE3\u7406",children:(0,e.jsx)(C.Z,{columns:Ae,dataSource:T.filter(function(u){return u.role===5&&u.hide===0})})},"3"),(g==null?void 0:g.role)&&g.role<2&&(0,e.jsx)(q.Z,{tab:"\u7BA1\u7406\u5458",children:(0,e.jsx)(C.Z,{columns:ve,dataSource:T.filter(function(u){return u.role===2&&u.hide===0})})},"4")]}),(0,e.jsx)(_.Z,{title:"\u7F16\u8F91",visible:$,onOk:Me,onCancel:Oe,children:(0,e.jsxs)(a.Z,{labelCol:{span:4},wrapperCol:{span:18},form:Q,onFinish:Ue,children:[(0,e.jsx)(a.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(w.Z,{type:"hidden"})}),(0,e.jsx)(a.Z.Item,{label:"\u7528\u6237\u540D",name:"name",children:(0,e.jsx)(w.Z,{disabled:M})}),(0,e.jsx)(a.Z.Item,{label:"\u5BC6\u7801",name:"password",children:(0,e.jsx)(w.Z.Password,{disabled:M})}),(0,e.jsx)(a.Z.Item,{label:"\u5E94\u7528",name:"appIds",children:(0,e.jsx)(c.Z,{filterOption:function(t,r){var j=typeof(r==null?void 0:r.children)=="string"?r.children:"";return j.toLowerCase().includes(t.toLowerCase())},showSearch:!0,mode:"multiple",children:ce.map(function(u){return(0,e.jsx)(c.Z.Option,{value:u.id,children:u.name},u.id)})})}),(0,e.jsx)(a.Z.Item,{label:"\u89D2\u8272",name:"role",children:(0,e.jsxs)(c.Z,{disabled:M,onSelect:re,children:[(0,e.jsx)(c.Z.Option,{disabled:(g==null?void 0:g.role)&&g.role>1,value:2,children:"\u7BA1\u7406\u5458"}),(0,e.jsx)(c.Z.Option,{disabled:(g==null?void 0:g.role)&&g.role>2,value:3,children:"\u6E38\u620F\u4E3B"}),(0,e.jsx)(c.Z.Option,{value:5,children:"\u4EE3\u7406"})]})}),de>3&&(0,e.jsxs)(s.Z,{children:[(0,e.jsx)(m.Z,{span:12,children:(0,e.jsx)(a.Z.Item,{labelCol:{span:8},label:"\u6536\u5165\u6BD4\u4F8B",name:"incomeRate",children:(0,e.jsx)(J.Z,{placeholder:"1-100\u6574\u6570",style:{width:"80%"}})})}),de===4?(0,e.jsx)(m.Z,{span:12,children:(0,e.jsx)(a.Z.Item,{labelCol:{span:8},label:"\u8BBE\u5907\u6570",name:"deviceCnt",children:(0,e.jsx)(J.Z,{style:{width:"80%"}})})}):""]})]})}),S&&(0,e.jsx)(xe,{data:T,onSubmit:function(){A(!1),X()}}),Y&&(0,e.jsx)(Ce,{data:Y,onCancel:function(){W(void 0)},onSubmit:function(){W(void 0),X()}})]})},Ie=Fe},38171:function(G,B,n){var O=n(55241),l=n(2487),R=n(71230),o=n(7134),k=n(67294),f=n(52043),v=n(58125),i=n(85893),a=function(s){var m=(0,f.E7)(s.data.env);return(0,i.jsx)(O.Z,{content:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{children:[(0,i.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,v.P)(s.data.income),"\u5143"]}),(0,i.jsxs)("p",{children:[(0,i.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,v.D)(s.data.realMoney),"\u5143"]}),m.length>0&&(0,i.jsx)(l.Z,{size:"small",header:(0,i.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:m,renderItem:function(E){return(0,i.jsx)(l.Z.Item,{children:E})}})]}),children:(0,i.jsxs)(R.Z,{children:[(0,i.jsx)(o.C,{src:s.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,i.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:m.length>0?"red":""},children:["id:",s.data.id,(0,i.jsx)("br",{}),s.data.nickname||s.data.mobile]})]})})};B.Z=a},81072:function(G,B,n){n.d(B,{fn:function(){return m},pb:function(){return F},wv:function(){return i}});var O=n(15009),l=n.n(O),R=n(97857),o=n.n(R),k=n(99289),f=n.n(k),v=n(35312);function i(E,C){return a.apply(this,arguments)}function a(){return a=f()(l()().mark(function E(C,_){return l()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,v.request)("/api/admin/user/changeStatus",o()({method:"POST",params:o()({},C)},_||{})));case 1:case"end":return c.stop()}},E)})),a.apply(this,arguments)}function F(E,C){return s.apply(this,arguments)}function s(){return s=f()(l()().mark(function E(C,_){return l()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,v.request)("/api/admin/user/list",o()({method:"POST",headers:{"Content-Type":"application/json"},data:C},_||{})));case 1:case"end":return c.stop()}},E)})),s.apply(this,arguments)}function m(E,C){return Z.apply(this,arguments)}function Z(){return Z=f()(l()().mark(function E(C,_){return l()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,v.request)("/api/admin/user/queryById",o()({method:"GET",params:o()({},C)},_||{})));case 1:case"end":return c.stop()}},E)})),Z.apply(this,arguments)}},52043:function(G,B,n){n.d(B,{E7:function(){return l},FG:function(){return O},aV:function(){return f}});var O=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},l=function(i){var a=[];if(!i)return a;for(var F=i>>1,s=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],m=0,Z=s;m>=1}return a},R=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},o=function(i){var a=new Date(i),F=a.getFullYear().toString().padStart(4,"0"),s=(a.getMonth()+1).toString().padStart(2,"0"),m=a.getDate().toString().padStart(2,"0");return F+s+m},k=function(i,a){var F=i.toString();return F.padStart(a,"0")},f=function(i){var a=i;return a<1024?a+" B":(a=parseFloat((a/1024).toFixed(2)),a<1024?a+" KB":(a=parseFloat((a/1024).toFixed(2)),a+" MB"))}},58125:function(G,B,n){n.d(B,{D:function(){return l},P:function(){return O}});var O=function(o){return o?parseFloat((o/1e5).toFixed(2)):0},l=function(o){return o?parseFloat((o/100).toFixed(2)):0}}}]); diff --git a/dist/p__AdminManagement.aabf9f6f.async.js b/dist/p__AdminManagement.aabf9f6f.async.js new file mode 100644 index 0000000..c3808ee --- /dev/null +++ b/dist/p__AdminManagement.aabf9f6f.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[816],{85099:function(Y,U,n){n.r(U),n.d(U,{default:function(){return Ie}});var L=n(15009),l=n.n(L),R=n(99289),g=n.n(R),K=n(5574),c=n.n(K),i=n(48357),E=n(35312),a=n(8232),v=n(66309),o=n(71230),h=n(15746),Z=n(14726),S=n(13169),C=n(72051),M=n(17788),w=n(55102),d=n(34041),J=n(37804),q=n(16250),y=n(67294),he=n(72269),e=n(85893),je=function(p){var $=function(){p.onSubmit()},O=[{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u89D2\u8272",dataIndex:"role",render:function(B){var I="";switch(B){case 1:I="\u8D85\u7EA7\u7BA1\u7406\u5458";break;case 2:I="\u7BA1\u7406\u5458";break;case 3:I="\u6E38\u620F\u4E3B";break;case 4:I="\u8BBE\u5907\u4E3B";break;default:I=""}return I}},{title:"\u9690\u85CF",render:function(B){return(0,e.jsx)(he.Z,{defaultValue:B.hide!==0,onClick:function(k){B.id&&(0,i.tQ)({adminId:B.id,hide:k?1:0})}},B.id)}}];return(0,e.jsx)(M.Z,{title:"\u6279\u91CF\u7F16\u8F91",visible:!0,footer:[],onCancel:$,children:(0,e.jsx)(C.Z,{columns:O,dataSource:p.data})})},pe=je,xe=n(19632),ee=n.n(xe),ge=n(81072),be=n(3089),Ee=n(55241),ue=n(86250),G=n(2453),ie=n(38171),Ze=function(p){var $=(0,y.useState)([]),O=c()($,2),_=O[0],B=O[1],I=(0,y.useState)([]),k=c()(I,2),D=k[0],N=k[1],H=a.Z.useForm(),z=c()(H,1),W=z[0],ne=function(){var j=g()(l()().mark(function F(A){var m;return l()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,(0,i.yC)({adminId:A});case 2:m=P.sent,B(m.data||[]);case 4:case"end":return P.stop()}},F)}));return function(A){return j.apply(this,arguments)}}();return(0,y.useEffect)(function(){p.data.id&&ne(p.data.id)},[p.data.id]),(0,e.jsxs)(M.Z,{title:"\u7ED1\u5B9A\u8D26\u53F7",visible:!0,centered:!0,onCancel:function(){p.onCancel()},footer:[(0,e.jsx)(Z.ZP,{onClick:function(){p.onCancel()},children:"\u53D6\u6D88"},"back"),(0,e.jsx)(Ee.Z,{title:"\u786E\u5B9A\u4FDD\u5B58\u5417",content:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)("p",{children:"\u8D26\u53F7\u4E00\u65E6\u7ED1\u5B9A\u540E\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664"}),(0,e.jsx)("a",{onClick:g()(l()().mark(function j(){var F;return l()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(F=[].concat(ee()(_),ee()(D)).map(function(T){return T.id}).filter(Boolean),!(p.data.id&&F)){m.next=7;break}return m.next=4,(0,i.cH)({adminId:p.data.id},F);case 4:p.onSubmit(),m.next=8;break;case 7:p.onCancel();case 8:case"end":return m.stop()}},j)})),children:"\u786E\u5B9A"})]}),children:(0,e.jsx)(Z.ZP,{type:"primary",children:"\u4FDD\u5B58"})},"confirm")],children:[_.length>0&&(0,e.jsxs)(o.Z,{gutter:6,style:{marginTop:20},children:[(0,e.jsx)(h.Z,{span:4,children:"\u5DF2\u7ED1\u5B9A:"}),(0,e.jsx)(ue.Z,{vertical:!0,gap:"small",children:_.map(function(j){return(0,e.jsx)(o.Z,{children:(0,e.jsx)(ie.Z,{data:j})},j.id)})})]}),D.length>0&&(0,e.jsxs)(o.Z,{gutter:6,style:{marginTop:20},children:[(0,e.jsx)(h.Z,{span:4,children:"\u672C\u6B21\u65B0\u589E:"}),(0,e.jsx)(ue.Z,{vertical:!0,gap:"small",children:D.map(function(j){return(0,e.jsxs)(o.Z,{children:[(0,e.jsx)(ie.Z,{data:j}),(0,e.jsx)(be.Z,{style:{marginLeft:20},onClick:function(){N(D.filter(function(A){return A.id!==j.id}))}})]},j.id)})})]}),(0,e.jsx)(a.Z,{style:{marginTop:20},labelCol:{span:4},wrapperCol:{span:18},form:W,onFinish:function(){var j=g()(l()().mark(function F(A){var m,T;return l()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(m=A.uid,m){b.next=4;break}return G.ZP.error("uid\u4E0D\u80FD\u4E3A\u7A7A"),b.abrupt("return");case 4:if(!(p.data.id&&m)){b.next=15;break}if(!(D.filter(function(V){return V.id===m}).length>0)){b.next=8;break}return G.ZP.error("\u8BE5\u8D26\u53F7\u5DF2\u6DFB\u52A0"),b.abrupt("return");case 8:if(!(_.filter(function(V){return V.id===m}).length>0)){b.next=11;break}return G.ZP.error("\u8BE5\u8D26\u53F7\u5DF2\u6DFB\u52A0"),b.abrupt("return");case 11:return b.next=13,(0,ge.fn)({adminId:p.data.id,userId:m});case 13:T=b.sent,T.data?N([].concat(ee()(D),[T.data])):G.ZP.error("uid\u975E\u6CD5");case 15:case"end":return b.stop()}},F)}));return function(F){return j.apply(this,arguments)}}(),children:(0,e.jsxs)(o.Z,{children:[(0,e.jsx)(a.Z.Item,{name:"uid",label:"uid",children:(0,e.jsx)(J.Z,{style:{width:200}})}),(0,e.jsx)(a.Z.Item,{wrapperCol:{offset:8,span:16},children:(0,e.jsx)(Z.ZP,{type:"primary",htmlType:"submit",children:"\u6DFB\u52A0"})})]})})]})},Ce=Ze,Se=function(){var p=(0,y.useState)([]),$=c()(p,2),O=$[0],_=$[1],B=(0,y.useState)(!1),I=c()(B,2),k=I[0],D=I[1],N=(0,y.useState)(void 0),H=c()(N,2),z=H[0],W=H[1],ne=(0,y.useState)(!1),j=c()(ne,2),F=j[0],A=j[1],m=(0,y.useState)(!1),T=c()(m,2),P=T[0],b=T[1],V=(0,y.useState)(0),se=c()(V,2),de=se[0],re=se[1],Fe=a.Z.useForm(),ye=c()(Fe,1),Q=ye[0],De=(0,y.useState)([]),oe=c()(De,2),ce=oe[0],Be=oe[1],Ae=(0,E.useModel)("@@initialState"),te=Ae.initialState,x=te==null?void 0:te.currentUser,ae=function(t){return t?parseFloat((t/1e5).toFixed(2)):0},me=function(t){var r=ce.find(function(f){return f.id===t});return r?r.name:""},fe=function(t){Q.setFieldsValue(t),D(!0),b(!0),re(t.role?t.role:0)},ve=[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5E94\u7528IDs",dataIndex:"appIds",render:function(t){return(0,e.jsx)("div",{children:t==null?void 0:t.map(function(r){return(0,e.jsx)(v.Z,{color:"blue",children:me(r)},r)})})}},{title:"\u89D2\u8272",dataIndex:"role",render:function(t){var r="";switch(t){case 1:r="\u8D85\u7EA7\u7BA1\u7406\u5458";break;case 2:r="\u7BA1\u7406\u5458";break;case 3:r="\u6E38\u620F\u4E3B";break;case 5:r="\u4EE3\u7406";break;default:r=""}return r}},{title:"\u64CD\u4F5C",render:function(t){return[(0,e.jsx)("a",{onClick:function(){return fe(t)},children:"\u7F16\u8F91"},"edit")]}}],Pe=[{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u5E94\u7528IDs",dataIndex:"appIds",render:function(t){return(0,e.jsx)("div",{children:t==null?void 0:t.map(function(r){return(0,e.jsx)(v.Z,{color:"blue",children:me(r)},r)})})}},{title:"\u89D2\u8272",dataIndex:"role",render:function(t){var r="";switch(t){case 1:r="\u8D85\u7EA7\u7BA1\u7406\u5458";break;case 2:r="\u7BA1\u7406\u5458";break;case 3:r="\u6E38\u620F\u4E3B";break;case 5:r="\u4EE3\u7406";break;default:r=""}return r}},{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",dataIndex:"incomeThisMonth",render:function(t,r){var f;return ae((f=r.overview)===null||f===void 0?void 0:f.thisMonthIncome)}},{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",dataIndex:"incomeLastMonth",render:function(t,r){var f;return ae((f=r.overview)===null||f===void 0?void 0:f.lastMonthIncome)}},{title:"\u7D2F\u8BA1\u6536\u5165\uFF08\u5143\uFF09",dataIndex:"incomeTotal",render:function(t,r){var f;return ae((f=r.overview)===null||f===void 0?void 0:f.totalIncome)}},{title:"\u5F53\u524D\u5206\u6210\u6BD4\u4F8B",dataIndex:"incomeRate"},{title:"\u64CD\u4F5C",render:function(t){return(0,e.jsxs)(o.Z,{gutter:6,children:[(0,e.jsx)(h.Z,{children:(0,e.jsx)("a",{onClick:function(){return fe(t)},children:"\u7F16\u8F91"},"edit")}),t.role===5&&(0,e.jsx)(h.Z,{children:(0,e.jsx)("a",{onClick:function(){W(t)},children:"\u7ED1\u5B9A\u8D26\u53F7"},"grant")})]})}}],Me=function(){Q.submit()},Oe=function(){D(!1)},X=function(){var u=g()(l()().mark(function t(){var r;return l()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,i.N0)();case 2:r=s.sent,r.data&&_(r.data);case 4:case"end":return s.stop()}},t)}));return function(){return u.apply(this,arguments)}}(),_e=function(){var u=g()(l()().mark(function t(){var r;return l()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,i.ln)();case 2:r=s.sent,r.data&&Be(r.data);case 4:case"end":return s.stop()}},t)}));return function(){return u.apply(this,arguments)}}();(0,y.useEffect)(function(){X(),_e()},[]);var Te=function(){Q.resetFields(),D(!0),b(!1),re(0)},Ue=function(){var u=g()(l()().mark(function t(r){return l()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,(0,i.P7)(r);case 3:s.next=8;break;case 5:return s.prev=5,s.t0=s.catch(0),s.abrupt("return");case 8:D(!1),X();case 10:case"end":return s.stop()}},t,null,[[0,5]])}));return function(r){return u.apply(this,arguments)}}();return(0,e.jsxs)("div",{children:[(0,e.jsxs)(o.Z,{align:"stretch",gutter:20,children:[(0,e.jsx)(h.Z,{children:(0,e.jsx)(Z.ZP,{onClick:Te,children:"\u65B0\u5EFA\u8D26\u53F7"})}),(0,e.jsx)(h.Z,{children:(0,e.jsx)(Z.ZP,{onClick:function(){A(!0)},children:"\u6279\u91CF\u7F16\u8F91"})})]}),(0,e.jsxs)(S.Z,{centered:!0,style:{backgroundColor:"white",padding:"20px",marginTop:20},children:[(x==null?void 0:x.role)&&x.role<3&&(0,e.jsx)(q.Z,{tab:"\u6E38\u620F\u4E3B",children:(0,e.jsx)(C.Z,{columns:ve,dataSource:O.filter(function(u){return u.role===3&&u.hide===0})})},"1"),(0,e.jsx)(q.Z,{tab:"\u4EE3\u7406",children:(0,e.jsx)(C.Z,{columns:Pe,dataSource:O.filter(function(u){return u.role===5&&u.hide===0})})},"3"),(x==null?void 0:x.role)&&x.role<2&&(0,e.jsx)(q.Z,{tab:"\u7BA1\u7406\u5458",children:(0,e.jsx)(C.Z,{columns:ve,dataSource:O.filter(function(u){return u.role===2&&u.hide===0})})},"4")]}),(0,e.jsx)(M.Z,{title:"\u7F16\u8F91",visible:k,onOk:Me,onCancel:Oe,children:(0,e.jsxs)(a.Z,{labelCol:{span:4},wrapperCol:{span:18},form:Q,onFinish:Ue,children:[(0,e.jsx)(a.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(w.Z,{type:"hidden"})}),(0,e.jsx)(a.Z.Item,{label:"\u7528\u6237\u540D",name:"name",children:(0,e.jsx)(w.Z,{disabled:P})}),(0,e.jsx)(a.Z.Item,{label:"\u5BC6\u7801",name:"password",children:(0,e.jsx)(w.Z.Password,{disabled:P})}),(0,e.jsx)(a.Z.Item,{label:"\u5E94\u7528",name:"appIds",children:(0,e.jsx)(d.Z,{filterOption:function(t,r){var f=typeof(r==null?void 0:r.children)=="string"?r.children:"";return f.toLowerCase().includes(t.toLowerCase())},showSearch:!0,mode:"multiple",children:ce.map(function(u){return(0,e.jsx)(d.Z.Option,{value:u.id,children:u.name},u.id)})})}),(0,e.jsx)(a.Z.Item,{label:"\u89D2\u8272",name:"role",children:(0,e.jsxs)(d.Z,{disabled:P,onSelect:re,children:[(0,e.jsx)(d.Z.Option,{disabled:(x==null?void 0:x.role)&&x.role>1,value:2,children:"\u7BA1\u7406\u5458"}),(0,e.jsx)(d.Z.Option,{disabled:(x==null?void 0:x.role)&&x.role>2,value:3,children:"\u6E38\u620F\u4E3B"}),(0,e.jsx)(d.Z.Option,{value:5,children:"\u4EE3\u7406"})]})}),de>3&&(0,e.jsxs)(o.Z,{children:[(0,e.jsx)(h.Z,{span:12,children:(0,e.jsx)(a.Z.Item,{labelCol:{span:8},label:"\u6536\u5165\u6BD4\u4F8B",name:"incomeRate",children:(0,e.jsx)(J.Z,{placeholder:"1-100\u6574\u6570",style:{width:"80%"}})})}),de===4?(0,e.jsx)(h.Z,{span:12,children:(0,e.jsx)(a.Z.Item,{labelCol:{span:8},label:"\u8BBE\u5907\u6570",name:"deviceCnt",children:(0,e.jsx)(J.Z,{style:{width:"80%"}})})}):""]})]})}),F&&(0,e.jsx)(pe,{data:O,onSubmit:function(){A(!1),X()}}),z&&(0,e.jsx)(Ce,{data:z,onCancel:function(){W(void 0)},onSubmit:function(){W(void 0),X()}})]})},Ie=Se},38171:function(Y,U,n){var L=n(55241),l=n(2487),R=n(71230),g=n(7134),K=n(67294),c=n(52043),i=n(85893),E=function(v){var o=(0,c.E7)(v.data.env);return(0,i.jsx)(L.Z,{content:(0,i.jsx)(i.Fragment,{children:o.length>0&&(0,i.jsx)(l.Z,{size:"small",header:(0,i.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:o,renderItem:function(Z){return(0,i.jsx)(l.Z.Item,{children:Z})}})}),children:(0,i.jsxs)(R.Z,{children:[(0,i.jsx)(g.C,{src:v.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,i.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:o.length>0?"red":""},children:["id:",v.data.id,(0,i.jsx)("br",{}),v.data.nickname||v.data.mobile]})]})})};U.Z=E},81072:function(Y,U,n){n.d(U,{fn:function(){return h},pb:function(){return v},wv:function(){return E}});var L=n(15009),l=n.n(L),R=n(97857),g=n.n(R),K=n(99289),c=n.n(K),i=n(35312);function E(S,C){return a.apply(this,arguments)}function a(){return a=c()(l()().mark(function S(C,M){return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,i.request)("/api/admin/user/changeStatus",g()({method:"POST",params:g()({},C)},M||{})));case 1:case"end":return d.stop()}},S)})),a.apply(this,arguments)}function v(S,C){return o.apply(this,arguments)}function o(){return o=c()(l()().mark(function S(C,M){return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,i.request)("/api/admin/user/list",g()({method:"POST",headers:{"Content-Type":"application/json"},data:C},M||{})));case 1:case"end":return d.stop()}},S)})),o.apply(this,arguments)}function h(S,C){return Z.apply(this,arguments)}function Z(){return Z=c()(l()().mark(function S(C,M){return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,i.request)("/api/admin/user/queryById",g()({method:"GET",params:g()({},C)},M||{})));case 1:case"end":return d.stop()}},S)})),Z.apply(this,arguments)}},52043:function(Y,U,n){n.d(U,{E7:function(){return l},FG:function(){return L},aV:function(){return c}});var L=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},l=function(E){var a=[];if(!E)return a;for(var v=E>>1,o=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],h=0,Z=o;h>=1}return a},R=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},g=function(E){var a=new Date(E),v=a.getFullYear().toString().padStart(4,"0"),o=(a.getMonth()+1).toString().padStart(2,"0"),h=a.getDate().toString().padStart(2,"0");return v+o+h},K=function(E,a){var v=E.toString();return v.padStart(a,"0")},c=function(E){var a=E;return a<1024?a+" B":(a=parseFloat((a/1024).toFixed(2)),a<1024?a+" KB":(a=parseFloat((a/1024).toFixed(2)),a+" MB"))}}}]); diff --git a/dist/p__AdvRecordListV2.bed7a82c.async.js b/dist/p__AdvRecordListV2.bed7a82c.async.js new file mode 100644 index 0000000..1d941e6 --- /dev/null +++ b/dist/p__AdvRecordListV2.bed7a82c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[542],{51572:function(A,j,e){e.r(j),e.d(j,{default:function(){return _}});var D=e(97857),f=e.n(D),M=e(15009),m=e.n(M),B=e(99289),S=e.n(B),i=e(5574),u=e.n(i),n=e(48357),o=e(11415),d=e(39615),h=e(90930),E=e(67539),C=e(57470),O=e(64317),Y=e(34540),w=e(13169),b=e(16250),Q=e(27484),X=e.n(Q),H=e(9220),y=e(67294),J=e(96974),I=function(x){return x?parseFloat((x/1e5).toFixed(2)):0},xe=function(x){return x?parseFloat((x/100).toFixed(2)):0},k=e(38171),a=e(85893),q=function(){var x=(0,y.useRef)(),ee=(0,y.useState)(void 0),U=u()(ee,2),z=U[0],te=U[1],g=function(){return window.innerWidth<=768},ae=(0,y.useState)({deviceId:{show:!g()},appName:{show:!g()},platform:{show:!g()},deviceBrand:{show:!g()},deviceName:{show:!g()},ip:{show:!g()},advType:{show:!g()}}),K=u()(ae,2),ne=K[0],re=K[1],ie=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u5E94\u7528\u540D\u79F0",hideInSearch:!0,dataIndex:"appName",valueType:"textarea"},{title:"\u5E73\u53F0",dataIndex:"platform",width:80,valueEnum:{1:{text:"\u7A7F\u5C71\u7532"},2:{text:"\u817E\u8BAF"},3:{text:"\u767E\u5EA6\u8054\u76DF"},4:{text:"Mintegral"},5:{text:"\u5FEB\u624B"},6:{text:"\u6E38\u53EF\u8D62"},7:{text:"Sigmob"},8:{text:"Admob"}}},{title:"\u5E7F\u544A\u7C7B\u578B",dataIndex:"advType",valueEnum:{1:{text:"\u6A2A\u5E45",status:"Success"},2:{text:"\u63D2\u9875",status:"Success"},3:{text:"\u6FC0\u52B1\u89C6\u9891",status:"Success"}}},{title:"ecpm(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(t){return t/100}},{title:"\u8BBE\u5907",dataIndex:"device",hideInSearch:!0,renderText:function(t,l){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:l.deviceBrand}),(0,a.jsx)("p",{children:l.deviceName})]})}},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u4EE3\u7406",dataIndex:"adminName",hideInSearch:!0,valueType:"textarea"},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,width:150,renderText:function(t,l){if(l.user)return(0,a.jsx)(k.Z,{data:l.user})}},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"},{title:"\u7528\u6237id",hideInTable:!0,dataIndex:"userId"}],ue=(0,J.UO)(),F=ue.code,le=(0,y.useState)(),W=u()(le,2),v=W[0],se=W[1],de=(0,y.useState)([]),N=u()(de,2),$=N[0],oe=N[1],R=d.Z.Divider,ce=(0,y.useState)(!1),V=u()(ce,2),Z=V[0],ve=V[1],fe=function(){var r=S()(m()().mark(function t(l){var c;return m()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,n.d1)({appCode:l});case 2:c=s.sent,c.data&&se(c.data);case 4:case"end":return s.stop()}},t)}));return function(l){return r.apply(this,arguments)}}(),G=function(){var r=S()(m()().mark(function t(l){var c;return m()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,n.Zb)(f()(f()({},l),{},{code:F}));case 2:c=s.sent,c.data&&oe(c.data);case 4:case"end":return s.stop()}},t)}));return function(l){return r.apply(this,arguments)}}();(0,y.useEffect)(function(){var r;(r=x.current)===null||r===void 0||r.reload(),fe(F),G({code:F})},[F]);var me=$.map(function(r){return{date:function(){var t=r.date+"",l=t.slice(0,4),c=t.slice(4,6),p=t.slice(6,8);return"".concat(l,"-").concat(c,"-").concat(p)}(),income:I(r.income)}}),he={data:me,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"}},title:"\u7D2F\u8BA1"+I($.reduce(function(r,t){return r+(t.income?t.income:0)},0))+"\u5143",height:400,label:{text:function(t){return t.income>0?t.income:""},textBaseline:"bottom"}};return(0,a.jsx)(h._z,{children:(0,a.jsxs)(w.Z,{defaultActiveKey:"1",centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,a.jsx)(b.Z,{tab:"\u5E7F\u544A\u8BE6\u60C5",children:(0,a.jsx)(E.Z,{headerTitle:z?"\u8868\u683C\u7D2F\u8BA1\uFF1A"+I(z)+"\u5143":"",actionRef:x,rowKey:"key",search:{labelWidth:120},request:function(){var r=S()(m()().mark(function t(l){var c,p,s,P;return m()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,(0,n._5)(f()(f()({},l),{},{code:F}));case 2:return s=T.sent,l.current===1&&te((P=s.data)===null||P===void 0?void 0:P.sum),T.abrupt("return",{data:(c=s.data)===null||c===void 0?void 0:c.data,total:(p=s.data)===null||p===void 0?void 0:p.total,success:!0});case 5:case"end":return T.stop()}},t)}));return function(t){return r.apply(this,arguments)}}(),columns:ie,columnsState:{value:ne,onChange:function(t){re(t)}}})},"1"),(0,a.jsxs)(b.Z,{tab:"\u6570\u636E\u603B\u89C8",children:[(0,a.jsx)(H.Z,{onResize:function(t){ve(t.width<596)},children:(0,a.jsx)(d.Z,{children:(0,a.jsxs)(d.Z.Group,{direction:Z?"column":"row",children:[(0,a.jsx)(d.Z,{statistic:{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",value:I(v==null?void 0:v.lastMonthIncome)}}),(0,a.jsx)(R,{type:Z?"horizontal":"vertical"}),(0,a.jsx)(d.Z,{statistic:{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",value:I(v==null?void 0:v.thisMonthIncome)}}),(0,a.jsx)(R,{type:Z?"horizontal":"vertical"}),(0,a.jsx)(d.Z,{statistic:{title:"\u4ECA\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:I(v==null?void 0:v.todayIncome)}}),(0,a.jsx)(R,{type:Z?"horizontal":"vertical"}),(0,a.jsx)(d.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:I(v==null?void 0:v.yesterdayIncome)}})]})})},"resize-observer"),(0,a.jsxs)(C.t,{defaultCollapsed:!0,split:!0,onFinish:G,children:[(0,a.jsx)(O.Z,{label:"\u5E73\u53F0",name:"platform",valueEnum:{1:"\u7A7F\u5C71\u7532",2:"\u817E\u8BAF",3:"\u767E\u5EA6\u8054\u76DF",4:"Mintegral",5:"\u5FEB\u624B",6:"\u6E38\u53EF\u8D62",7:"Sigmob",8:"Admob"}}),(0,a.jsx)(O.Z,{name:"advType",label:"\u5E7F\u544A\u7C7B\u578B",valueEnum:{1:"\u6A2A\u5E45",2:"\u63D2\u9875",3:"\u6FC0\u52B1\u89C6\u9891"}}),(0,a.jsx)(Y.Z,{fieldProps:{disabledDate:function(t){return t&&t>=X()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,a.jsx)(o.Z,f()({},he))]},"2")]})})},_=q},38171:function(A,j,e){var D=e(55241),f=e(2487),M=e(71230),m=e(7134),B=e(67294),S=e(52043),i=e(85893),u=function(o){var d=(0,S.E7)(o.data.env);return(0,i.jsx)(D.Z,{content:(0,i.jsx)(i.Fragment,{children:d.length>0&&(0,i.jsx)(f.Z,{size:"small",header:(0,i.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:d,renderItem:function(E){return(0,i.jsx)(f.Z.Item,{children:E})}})}),children:(0,i.jsxs)(M.Z,{children:[(0,i.jsx)(m.C,{src:o.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,i.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:d.length>0?"red":""},children:["id:",o.data.id,(0,i.jsx)("br",{}),o.data.nickname||o.data.mobile]})]})})};j.Z=u},52043:function(A,j,e){e.d(j,{E7:function(){return f},FG:function(){return D},aV:function(){return S}});var D=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},f=function(u){var n=[];if(!u)return n;for(var o=u>>1,d=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],h=0,E=d;h>=1}return n},M=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},m=function(u){var n=new Date(u),o=n.getFullYear().toString().padStart(4,"0"),d=(n.getMonth()+1).toString().padStart(2,"0"),h=n.getDate().toString().padStart(2,"0");return o+d+h},B=function(u,n){var o=u.toString();return o.padStart(n,"0")},S=function(u){var n=u;return n<1024?n+" B":(n=parseFloat((n/1024).toFixed(2)),n<1024?n+" KB":(n=parseFloat((n/1024).toFixed(2)),n+" MB"))}}}]); diff --git a/dist/p__AdvRecordListV2.c183b707.async.js b/dist/p__AdvRecordListV2.c183b707.async.js deleted file mode 100644 index 36c03a1..0000000 --- a/dist/p__AdvRecordListV2.c183b707.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[542],{86408:function(U,f,e){e.r(f);var h=e(97857),l=e.n(h),O=e(15009),u=e.n(O),g=e(99289),x=e.n(g),m=e(5574),t=e.n(m),n=e(48357),E=e(11415),_=e(39615),v=e(90930),j=e(67539),T=e(57470),R=e(64317),$=e(34540),G=e(13169),S=e(16250),Y=e(27484),w=e.n(Y),X=e(9220),P=e(67294),H=e(96974),D=e(58125),J=e(38171),r=e(85893),Q=function(){var y=(0,P.useRef)(),k=(0,P.useState)(void 0),L=t()(k,2),K=L[0],q=L[1],M=function(){return window.innerWidth<=768},ee=(0,P.useState)({deviceId:{show:!M()},appName:{show:!M()},platform:{show:!M()},deviceBrand:{show:!M()},deviceName:{show:!M()},ip:{show:!M()},advType:{show:!M()}}),W=t()(ee,2),te=W[0],ae=W[1],ne=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u5E94\u7528\u540D\u79F0",hideInSearch:!0,dataIndex:"appName",valueType:"textarea"},{title:"\u5E73\u53F0",dataIndex:"platform",width:80,valueEnum:{1:{text:"\u7A7F\u5C71\u7532"},2:{text:"\u817E\u8BAF"},3:{text:"\u767E\u5EA6\u8054\u76DF"},4:{text:"Mintegral"},5:{text:"\u5FEB\u624B"},6:{text:"\u6E38\u53EF\u8D62"},7:{text:"Sigmob"},8:{text:"Admob"}}},{title:"\u5E7F\u544A\u7C7B\u578B",dataIndex:"advType",valueEnum:{1:{text:"\u6A2A\u5E45",status:"Success"},2:{text:"\u63D2\u9875",status:"Success"},3:{text:"\u6FC0\u52B1\u89C6\u9891",status:"Success"}}},{title:"ecpm(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(a){return a/100}},{title:"\u8BBE\u5907",dataIndex:"device",hideInSearch:!0,renderText:function(a,i){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{children:i.deviceBrand}),(0,r.jsx)("p",{children:i.deviceName})]})}},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u4EE3\u7406",dataIndex:"adminName",hideInSearch:!0,valueType:"textarea"},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,width:150,renderText:function(a,i){if(i.user)return(0,r.jsx)(J.Z,{data:i.user})}},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"},{title:"\u7528\u6237id",hideInTable:!0,dataIndex:"userId"}],re=(0,H.UO)(),b=re.code,se=(0,P.useState)(),F=t()(se,2),c=F[0],_e=F[1],ie=(0,P.useState)([]),Z=t()(ie,2),V=Z[0],de=Z[1],A=_.Z.Divider,ue=(0,P.useState)(!1),z=t()(ue,2),B=z[0],oe=z[1],le=function(){var s=x()(u()().mark(function a(i){var o;return u()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,n.d1)({appCode:i});case 2:o=d.sent,o.data&&_e(o.data);case 4:case"end":return d.stop()}},a)}));return function(i){return s.apply(this,arguments)}}(),N=function(){var s=x()(u()().mark(function a(i){var o;return u()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,n.Zb)(l()(l()({},i),{},{code:b}));case 2:o=d.sent,o.data&&de(o.data);case 4:case"end":return d.stop()}},a)}));return function(i){return s.apply(this,arguments)}}();(0,P.useEffect)(function(){var s;(s=y.current)===null||s===void 0||s.reload(),le(b),N({code:b})},[b]);var ce=V.map(function(s){return{date:function(){var a=s.date+"",i=a.slice(0,4),o=a.slice(4,6),I=a.slice(6,8);return"".concat(i,"-").concat(o,"-").concat(I)}(),income:(0,D.P)(s.income)}}),ve={data:ce,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"}},title:"\u7D2F\u8BA1"+(0,D.P)(V.reduce(function(s,a){return s+(a.income?a.income:0)},0))+"\u5143",height:400,label:{text:function(a){return a.income>0?a.income:""},textBaseline:"bottom"}};return(0,r.jsx)(v._z,{children:(0,r.jsxs)(G.Z,{defaultActiveKey:"1",centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,r.jsx)(S.Z,{tab:"\u5E7F\u544A\u8BE6\u60C5",children:(0,r.jsx)(j.Z,{headerTitle:K?"\u8868\u683C\u7D2F\u8BA1\uFF1A"+(0,D.P)(K)+"\u5143":"",actionRef:y,rowKey:"key",search:{labelWidth:120},request:function(){var s=x()(u()().mark(function a(i){var o,I,d,C;return u()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,(0,n._5)(l()(l()({},i),{},{code:b}));case 2:return d=p.sent,i.current===1&&q((C=d.data)===null||C===void 0?void 0:C.sum),p.abrupt("return",{data:(o=d.data)===null||o===void 0?void 0:o.data,total:(I=d.data)===null||I===void 0?void 0:I.total,success:!0});case 5:case"end":return p.stop()}},a)}));return function(a){return s.apply(this,arguments)}}(),columns:ne,columnsState:{value:te,onChange:function(a){ae(a)}}})},"1"),(0,r.jsxs)(S.Z,{tab:"\u6570\u636E\u603B\u89C8",children:[(0,r.jsx)(X.Z,{onResize:function(a){oe(a.width<596)},children:(0,r.jsx)(_.Z,{children:(0,r.jsxs)(_.Z.Group,{direction:B?"column":"row",children:[(0,r.jsx)(_.Z,{statistic:{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",value:(0,D.P)(c==null?void 0:c.lastMonthIncome)}}),(0,r.jsx)(A,{type:B?"horizontal":"vertical"}),(0,r.jsx)(_.Z,{statistic:{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",value:(0,D.P)(c==null?void 0:c.thisMonthIncome)}}),(0,r.jsx)(A,{type:B?"horizontal":"vertical"}),(0,r.jsx)(_.Z,{statistic:{title:"\u4ECA\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:(0,D.P)(c==null?void 0:c.todayIncome)}}),(0,r.jsx)(A,{type:B?"horizontal":"vertical"}),(0,r.jsx)(_.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:(0,D.P)(c==null?void 0:c.yesterdayIncome)}})]})})},"resize-observer"),(0,r.jsxs)(T.t,{defaultCollapsed:!0,split:!0,onFinish:N,children:[(0,r.jsx)(R.Z,{label:"\u5E73\u53F0",name:"platform",valueEnum:{1:"\u7A7F\u5C71\u7532",2:"\u817E\u8BAF",3:"\u767E\u5EA6\u8054\u76DF",4:"Mintegral",5:"\u5FEB\u624B",6:"\u6E38\u53EF\u8D62",7:"Sigmob",8:"Admob"}}),(0,r.jsx)(R.Z,{name:"advType",label:"\u5E7F\u544A\u7C7B\u578B",valueEnum:{1:"\u6A2A\u5E45",2:"\u63D2\u9875",3:"\u6FC0\u52B1\u89C6\u9891"}}),(0,r.jsx)($.Z,{fieldProps:{disabledDate:function(a){return a&&a>=w()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,r.jsx)(E.Z,l()({},ve))]},"2")]})})};f.default=Q},38171:function(U,f,e){var h=e(55241),l=e(2487),O=e(71230),u=e(7134),g=e(67294),x=e(52043),m=e(58125),t=e(85893),n=function(_){var v=(0,x.E7)(_.data.env);return(0,t.jsx)(h.Z,{content:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,m.P)(_.data.income),"\u5143"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,m.D)(_.data.realMoney),"\u5143"]}),v.length>0&&(0,t.jsx)(l.Z,{size:"small",header:(0,t.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:v,renderItem:function(T){return(0,t.jsx)(l.Z.Item,{children:T})}})]}),children:(0,t.jsxs)(O.Z,{children:[(0,t.jsx)(u.C,{src:_.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,t.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:v.length>0?"red":""},children:["id:",_.data.id,(0,t.jsx)("br",{}),_.data.nickname||_.data.mobile]})]})})};f.Z=n},52043:function(U,f,e){e.d(f,{E7:function(){return l},FG:function(){return h},aV:function(){return x}});var h=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},l=function(t){var n=[];if(!t)return n;for(var E=t>>1,_=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],v=0,j=_;v>=1}return n},O=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},u=function(t){var n=new Date(t),E=n.getFullYear().toString().padStart(4,"0"),_=(n.getMonth()+1).toString().padStart(2,"0"),v=n.getDate().toString().padStart(2,"0");return E+_+v},g=function(t,n){var E=t.toString();return E.padStart(n,"0")},x=function(t){var n=t;return n<1024?n+" B":(n=parseFloat((n/1024).toFixed(2)),n<1024?n+" KB":(n=parseFloat((n/1024).toFixed(2)),n+" MB"))}},58125:function(U,f,e){e.d(f,{D:function(){return l},P:function(){return h}});var h=function(u){return u?parseFloat((u/1e5).toFixed(2)):0},l=function(u){return u?parseFloat((u/100).toFixed(2)):0}}}]); diff --git a/dist/p__Proxy__ProxyAdvRecordListV2.109e8e16.async.js b/dist/p__Proxy__ProxyAdvRecordListV2.109e8e16.async.js new file mode 100644 index 0000000..13f77e9 --- /dev/null +++ b/dist/p__Proxy__ProxyAdvRecordListV2.109e8e16.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[990],{42521:function(W,j,e){e.r(j);var I=e(15009),i=e.n(I),g=e(97857),l=e.n(g),B=e(99289),v=e.n(B),a=e(5574),m=e.n(a),n=e(48357),d=e(80484),f=e(11415),P=e(90930),D=e(67539),O=e(39615),C=e(57470),Z=e(64317),A=e(34540),F=e(35312),L=e(13169),u=e(96074),o=e(16250),E=e(27484),T=e.n(E),r=e(9220),b=e(67294),Y=e(96974),H=e(38171),_=e(85893),J=function(){var V=(0,b.useRef)(),Q=(0,b.useRef)(),k=(0,b.useState)(!1),$=m()(k,2),S=$[0],q=$[1],ee=(0,F.useIntl)(),te=(0,Y.UO)(),K=te.code,re=(0,b.useState)(),w=m()(re,2),p=w[0],ne=w[1],ae=(0,b.useState)([]),z=m()(ae,2),G=z[0],_e=z[1],U=function(){return window.innerWidth<=768},se=(0,b.useState)({deviceId:{show:!U()},appName:{show:!U()},platform:{show:!U()},deviceBrand:{show:!U()},deviceName:{show:!U()},ip:{show:!U()}}),N=m()(se,2),ie=N[0],ue=N[1],oe=[{title:"\u7528\u6237id",dataIndex:"userId",valueType:"textarea",hideInTable:!0},{title:"\u8BBE\u5907id",dataIndex:"deviceId",valueType:"textarea",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,width:150,renderText:function(t,c){if(c.user)return(0,_.jsx)(H.Z,{data:c.user})}},{title:"\u5E73\u53F0",dataIndex:"platform",valueEnum:{1:{text:"\u7A7F\u5C71\u7532"},2:{text:"\u817E\u8BAF"},3:{text:"\u767E\u5EA6\u8054\u76DF"},4:{text:"Mintegral"},5:{text:"\u5FEB\u624B"},6:{text:"\u6E38\u53EF\u8D62"},7:{text:"Sigmob"},8:{text:"Admob"}}},{title:"ecpm(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(t){return t/100}},{title:"ecpm-\u4EE3\u7406\u6536\u5165(\u5143)",dataIndex:"ecpmAdmin",hideInSearch:!0,renderText:function(t){return t/100}},{title:"\u8BBE\u5907",dataIndex:"device",hideInSearch:!0,renderText:function(t,c){return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("p",{children:c.deviceBrand}),(0,_.jsx)("p",{children:c.deviceName})]})}},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}],le=function(){var s=v()(i()().mark(function t(c){var M,h,x;return i()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,(0,n._5)(l()(l()({},c),{},{code:K}));case 2:return x=y.sent,y.abrupt("return",{data:(M=x.data)===null||M===void 0?void 0:M.data,total:(h=x.data)===null||h===void 0?void 0:h.total,success:!0});case 4:case"end":return y.stop()}},t)}));return function(c){return s.apply(this,arguments)}}(),de=function(){var s=v()(i()().mark(function t(){var c;return i()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,(0,d.OE)({appCode:K});case 2:c=h.sent,c.data&&ne(c.data);case 4:case"end":return h.stop()}},t)}));return function(){return s.apply(this,arguments)}}(),X=function(){var s=v()(i()().mark(function t(c){var M;return i()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,(0,d.di)(l()(l()({},c),{},{code:K}));case 2:M=x.sent,M.data&&_e(M.data);case 4:case"end":return x.stop()}},t)}));return function(c){return s.apply(this,arguments)}}();(0,b.useEffect)(function(){var s,t;(s=V.current)===null||s===void 0||s.reload(),(t=Q.current)===null||t===void 0||t.reload(),de(),X(void 0)},[K]);var R=function(t){return t?parseFloat((t/1e5).toFixed(2)):0},ce=G.map(function(s){return{date:function(){var t=s.date+"",c=t.slice(0,4),M=t.slice(4,6),h=t.slice(6,8);return"".concat(c,"-").concat(M,"-").concat(h)}(),income:R(s.income)}}),me={data:ce,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"}},title:"\u7D2F\u8BA1"+R(G.reduce(function(s,t){return s+(t.income?t.income:0)},0))+"\u5143",height:400,label:{text:function(t){return t.income>0?t.income:""},textBaseline:"bottom"}};return(0,_.jsx)(P._z,{children:(0,_.jsxs)(L.Z,{defaultActiveKey:"2",centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,_.jsx)(o.Z,{tab:"\u5E7F\u544A\u8BE6\u60C5",children:(0,_.jsx)(D.Z,{headerTitle:ee.formatMessage({id:"pages.searchTable.title",defaultMessage:"Enquiry form"}),actionRef:V,rowKey:"id",search:{labelWidth:120},request:le,columns:oe,columnsState:{value:ie,onChange:function(t){ue(t)}}})},"2"),(0,_.jsxs)(o.Z,{tab:"\u6570\u636E\u603B\u89C8",children:[(0,_.jsx)(r.Z,{onResize:function(t){q(t.width<596)},children:(0,_.jsx)(O.Z,{children:(0,_.jsxs)(O.Z.Group,{direction:S?"column":"row",children:[(0,_.jsx)(O.Z,{statistic:{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",value:R(p==null?void 0:p.lastMonthIncome)}}),(0,_.jsx)(u.Z,{type:S?"horizontal":"vertical"}),(0,_.jsx)(O.Z,{statistic:{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",value:R(p==null?void 0:p.thisMonthIncome)}}),(0,_.jsx)(u.Z,{type:S?"horizontal":"vertical"}),(0,_.jsx)(O.Z,{statistic:{title:"\u4ECA\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:R(p==null?void 0:p.todayIncome)}}),(0,_.jsx)(u.Z,{type:S?"horizontal":"vertical"}),(0,_.jsx)(O.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:R(p==null?void 0:p.yesterdayIncome)}})]})})},"resize-observer"),(0,_.jsxs)(C.t,{defaultCollapsed:!0,split:!0,onFinish:X,children:[(0,_.jsx)(Z.Z,{label:"\u5E73\u53F0",name:"platform",valueEnum:{1:"\u7A7F\u5C71\u7532",2:"\u817E\u8BAF",3:"\u767E\u5EA6\u8054\u76DF",4:"Mintegral",5:"\u5FEB\u624B",6:"\u6E38\u53EF\u8D62",7:"Sigmob",8:"Admob"}}),(0,_.jsx)(A.Z,{fieldProps:{disabledDate:function(t){return t&&t>=T()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,_.jsx)(f.Z,l()({},me))]},"3")]})})};j.default=J},38171:function(W,j,e){var I=e(55241),i=e(2487),g=e(71230),l=e(7134),B=e(67294),v=e(52043),a=e(85893),m=function(d){var f=(0,v.E7)(d.data.env);return(0,a.jsx)(I.Z,{content:(0,a.jsx)(a.Fragment,{children:f.length>0&&(0,a.jsx)(i.Z,{size:"small",header:(0,a.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:f,renderItem:function(D){return(0,a.jsx)(i.Z.Item,{children:D})}})}),children:(0,a.jsxs)(g.Z,{children:[(0,a.jsx)(l.C,{src:d.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,a.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:f.length>0?"red":""},children:["id:",d.data.id,(0,a.jsx)("br",{}),d.data.nickname||d.data.mobile]})]})})};j.Z=m},80484:function(W,j,e){e.d(j,{OE:function(){return P},di:function(){return d},n4:function(){return Z},ps:function(){return F},sk:function(){return O}});var I=e(15009),i=e.n(I),g=e(97857),l=e.n(g),B=e(99289),v=e.n(B),a=e(35312);function m(u,o){return n.apply(this,arguments)}function n(){return n=_asyncToGenerator(_regeneratorRuntime().mark(function u(o,E){return _regeneratorRuntime().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",request("/api/admin/device/calc",_objectSpread({method:"GET",params:_objectSpread({},o)},E||{})));case 1:case"end":return r.stop()}},u)})),n.apply(this,arguments)}function d(u,o){return f.apply(this,arguments)}function f(){return f=v()(i()().mark(function u(o,E){return i()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,a.request)("/api/admin/device/incomeDaily",l()({method:"POST",headers:{"Content-Type":"application/json"},data:o},E||{})));case 1:case"end":return r.stop()}},u)})),f.apply(this,arguments)}function P(u,o){return D.apply(this,arguments)}function D(){return D=v()(i()().mark(function u(o,E){return i()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,a.request)("/api/admin/device/incomeOverview",l()({method:"GET",params:l()({},o)},E||{})));case 1:case"end":return r.stop()}},u)})),D.apply(this,arguments)}function O(u,o){return C.apply(this,arguments)}function C(){return C=v()(i()().mark(function u(o,E){return i()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,a.request)("/api/admin/device/list",l()({method:"GET",params:l()({},o)},E||{})));case 1:case"end":return r.stop()}},u)})),C.apply(this,arguments)}function Z(u,o){return A.apply(this,arguments)}function A(){return A=v()(i()().mark(function u(o,E){return i()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,a.request)("/api/admin/device/offline",l()({method:"POST",params:l()({},o)},E||{})));case 1:case"end":return r.stop()}},u)})),A.apply(this,arguments)}function F(u,o){return L.apply(this,arguments)}function L(){return L=v()(i()().mark(function u(o,E){return i()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,a.request)("/api/admin/device/online",l()({method:"POST",params:l()({},o)},E||{})));case 1:case"end":return r.stop()}},u)})),L.apply(this,arguments)}},52043:function(W,j,e){e.d(j,{E7:function(){return i},FG:function(){return I},aV:function(){return v}});var I=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},i=function(m){var n=[];if(!m)return n;for(var d=m>>1,f=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],P=0,D=f;P>=1}return n},g=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},l=function(m){var n=new Date(m),d=n.getFullYear().toString().padStart(4,"0"),f=(n.getMonth()+1).toString().padStart(2,"0"),P=n.getDate().toString().padStart(2,"0");return d+f+P},B=function(m,n){var d=m.toString();return d.padStart(n,"0")},v=function(m){var n=m;return n<1024?n+" B":(n=parseFloat((n/1024).toFixed(2)),n<1024?n+" KB":(n=parseFloat((n/1024).toFixed(2)),n+" MB"))}}}]); diff --git a/dist/p__Proxy__ProxyAdvRecordListV2.2e1ec116.async.js b/dist/p__Proxy__ProxyAdvRecordListV2.2e1ec116.async.js deleted file mode 100644 index 534bdf1..0000000 --- a/dist/p__Proxy__ProxyAdvRecordListV2.2e1ec116.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[990],{42521:function(S,M,e){e.r(M);var x=e(15009),_=e.n(x),b=e(97857),s=e.n(b),B=e(99289),v=e.n(B),m=e(5574),r=e.n(m),a=e(48357),h=e(80484),d=e(11415),f=e(90930),j=e(67539),p=e(39615),A=e(57470),F=e(64317),C=e(34540),Z=e(35312),L=e(13169),o=e(96074),l=e(16250),E=e(27484),T=e.n(E),n=e(9220),g=e(67294),X=e(96974),H=e(38171),i=e(85893),J=function(){var V=(0,g.useRef)(),Q=(0,g.useRef)(),k=(0,g.useState)(!1),$=r()(k,2),K=$[0],q=$[1],ee=(0,Z.useIntl)(),te=(0,X.UO)(),W=te.code,ne=(0,g.useState)(),w=r()(ne,2),P=w[0],re=w[1],ae=(0,g.useState)([]),z=r()(ae,2),G=z[0],_e=z[1],U=function(){return window.innerWidth<=768},se=(0,g.useState)({deviceId:{show:!U()},appName:{show:!U()},platform:{show:!U()},deviceBrand:{show:!U()},deviceName:{show:!U()},ip:{show:!U()}}),N=r()(se,2),ie=N[0],ue=N[1],oe=[{title:"\u7528\u6237id",dataIndex:"userId",valueType:"textarea",hideInTable:!0},{title:"\u8BBE\u5907id",dataIndex:"deviceId",valueType:"textarea",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,width:150,renderText:function(t,c){if(c.user)return(0,i.jsx)(H.Z,{data:c.user})}},{title:"\u5E73\u53F0",dataIndex:"platform",valueEnum:{1:{text:"\u7A7F\u5C71\u7532"},2:{text:"\u817E\u8BAF"},3:{text:"\u767E\u5EA6\u8054\u76DF"},4:{text:"Mintegral"},5:{text:"\u5FEB\u624B"},6:{text:"\u6E38\u53EF\u8D62"},7:{text:"Sigmob"},8:{text:"Admob"}}},{title:"ecpm(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(t){return t/100}},{title:"ecpm-\u4EE3\u7406\u6536\u5165(\u5143)",dataIndex:"ecpmAdmin",hideInSearch:!0,renderText:function(t){return t/100}},{title:"\u8BBE\u5907",dataIndex:"device",hideInSearch:!0,renderText:function(t,c){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:c.deviceBrand}),(0,i.jsx)("p",{children:c.deviceName})]})}},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}],le=function(){var u=v()(_()().mark(function t(c){var O,D,I;return _()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,(0,a._5)(s()(s()({},c),{},{code:W}));case 2:return I=y.sent,y.abrupt("return",{data:(O=I.data)===null||O===void 0?void 0:O.data,total:(D=I.data)===null||D===void 0?void 0:D.total,success:!0});case 4:case"end":return y.stop()}},t)}));return function(c){return u.apply(this,arguments)}}(),de=function(){var u=v()(_()().mark(function t(){var c;return _()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,(0,h.OE)({appCode:W});case 2:c=D.sent,c.data&&re(c.data);case 4:case"end":return D.stop()}},t)}));return function(){return u.apply(this,arguments)}}(),Y=function(){var u=v()(_()().mark(function t(c){var O;return _()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,(0,h.di)(s()(s()({},c),{},{code:W}));case 2:O=I.sent,O.data&&_e(O.data);case 4:case"end":return I.stop()}},t)}));return function(c){return u.apply(this,arguments)}}();(0,g.useEffect)(function(){var u,t;(u=V.current)===null||u===void 0||u.reload(),(t=Q.current)===null||t===void 0||t.reload(),de(),Y(void 0)},[W]);var R=function(t){return t?parseFloat((t/1e5).toFixed(2)):0},ce=G.map(function(u){return{date:function(){var t=u.date+"",c=t.slice(0,4),O=t.slice(4,6),D=t.slice(6,8);return"".concat(c,"-").concat(O,"-").concat(D)}(),income:R(u.income)}}),me={data:ce,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"}},title:"\u7D2F\u8BA1"+R(G.reduce(function(u,t){return u+(t.income?t.income:0)},0))+"\u5143",height:400,label:{text:function(t){return t.income>0?t.income:""},textBaseline:"bottom"}};return(0,i.jsx)(f._z,{children:(0,i.jsxs)(L.Z,{defaultActiveKey:"2",centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,i.jsx)(l.Z,{tab:"\u5E7F\u544A\u8BE6\u60C5",children:(0,i.jsx)(j.Z,{headerTitle:ee.formatMessage({id:"pages.searchTable.title",defaultMessage:"Enquiry form"}),actionRef:V,rowKey:"id",search:{labelWidth:120},request:le,columns:oe,columnsState:{value:ie,onChange:function(t){ue(t)}}})},"2"),(0,i.jsxs)(l.Z,{tab:"\u6570\u636E\u603B\u89C8",children:[(0,i.jsx)(n.Z,{onResize:function(t){q(t.width<596)},children:(0,i.jsx)(p.Z,{children:(0,i.jsxs)(p.Z.Group,{direction:K?"column":"row",children:[(0,i.jsx)(p.Z,{statistic:{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",value:R(P==null?void 0:P.lastMonthIncome)}}),(0,i.jsx)(o.Z,{type:K?"horizontal":"vertical"}),(0,i.jsx)(p.Z,{statistic:{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",value:R(P==null?void 0:P.thisMonthIncome)}}),(0,i.jsx)(o.Z,{type:K?"horizontal":"vertical"}),(0,i.jsx)(p.Z,{statistic:{title:"\u4ECA\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:R(P==null?void 0:P.todayIncome)}}),(0,i.jsx)(o.Z,{type:K?"horizontal":"vertical"}),(0,i.jsx)(p.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:R(P==null?void 0:P.yesterdayIncome)}})]})})},"resize-observer"),(0,i.jsxs)(A.t,{defaultCollapsed:!0,split:!0,onFinish:Y,children:[(0,i.jsx)(F.Z,{label:"\u5E73\u53F0",name:"platform",valueEnum:{1:"\u7A7F\u5C71\u7532",2:"\u817E\u8BAF",3:"\u767E\u5EA6\u8054\u76DF",4:"Mintegral",5:"\u5FEB\u624B",6:"\u6E38\u53EF\u8D62",7:"Sigmob",8:"Admob"}}),(0,i.jsx)(C.Z,{fieldProps:{disabledDate:function(t){return t&&t>=T()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,i.jsx)(d.Z,s()({},me))]},"3")]})})};M.default=J},38171:function(S,M,e){var x=e(55241),_=e(2487),b=e(71230),s=e(7134),B=e(67294),v=e(52043),m=e(58125),r=e(85893),a=function(d){var f=(0,v.E7)(d.data.env);return(0,r.jsx)(x.Z,{content:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{children:[(0,r.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,m.P)(d.data.income),"\u5143"]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,m.D)(d.data.realMoney),"\u5143"]}),f.length>0&&(0,r.jsx)(_.Z,{size:"small",header:(0,r.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:f,renderItem:function(p){return(0,r.jsx)(_.Z.Item,{children:p})}})]}),children:(0,r.jsxs)(b.Z,{children:[(0,r.jsx)(s.C,{src:d.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,r.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:f.length>0?"red":""},children:["id:",d.data.id,(0,r.jsx)("br",{}),d.data.nickname||d.data.mobile]})]})})};M.Z=a},80484:function(S,M,e){e.d(M,{OE:function(){return f},di:function(){return h},n4:function(){return F},ps:function(){return Z},sk:function(){return p}});var x=e(15009),_=e.n(x),b=e(97857),s=e.n(b),B=e(99289),v=e.n(B),m=e(35312);function r(o,l){return a.apply(this,arguments)}function a(){return a=_asyncToGenerator(_regeneratorRuntime().mark(function o(l,E){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/api/admin/device/calc",_objectSpread({method:"GET",params:_objectSpread({},l)},E||{})));case 1:case"end":return n.stop()}},o)})),a.apply(this,arguments)}function h(o,l){return d.apply(this,arguments)}function d(){return d=v()(_()().mark(function o(l,E){return _()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/admin/device/incomeDaily",s()({method:"POST",headers:{"Content-Type":"application/json"},data:l},E||{})));case 1:case"end":return n.stop()}},o)})),d.apply(this,arguments)}function f(o,l){return j.apply(this,arguments)}function j(){return j=v()(_()().mark(function o(l,E){return _()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/admin/device/incomeOverview",s()({method:"GET",params:s()({},l)},E||{})));case 1:case"end":return n.stop()}},o)})),j.apply(this,arguments)}function p(o,l){return A.apply(this,arguments)}function A(){return A=v()(_()().mark(function o(l,E){return _()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/admin/device/list",s()({method:"GET",params:s()({},l)},E||{})));case 1:case"end":return n.stop()}},o)})),A.apply(this,arguments)}function F(o,l){return C.apply(this,arguments)}function C(){return C=v()(_()().mark(function o(l,E){return _()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/admin/device/offline",s()({method:"POST",params:s()({},l)},E||{})));case 1:case"end":return n.stop()}},o)})),C.apply(this,arguments)}function Z(o,l){return L.apply(this,arguments)}function L(){return L=v()(_()().mark(function o(l,E){return _()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/admin/device/online",s()({method:"POST",params:s()({},l)},E||{})));case 1:case"end":return n.stop()}},o)})),L.apply(this,arguments)}},52043:function(S,M,e){e.d(M,{E7:function(){return _},FG:function(){return x},aV:function(){return v}});var x=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},_=function(r){var a=[];if(!r)return a;for(var h=r>>1,d=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],f=0,j=d;f>=1}return a},b=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},s=function(r){var a=new Date(r),h=a.getFullYear().toString().padStart(4,"0"),d=(a.getMonth()+1).toString().padStart(2,"0"),f=a.getDate().toString().padStart(2,"0");return h+d+f},B=function(r,a){var h=r.toString();return h.padStart(a,"0")},v=function(r){var a=r;return a<1024?a+" B":(a=parseFloat((a/1024).toFixed(2)),a<1024?a+" KB":(a=parseFloat((a/1024).toFixed(2)),a+" MB"))}},58125:function(S,M,e){e.d(M,{D:function(){return _},P:function(){return x}});var x=function(s){return s?parseFloat((s/1e5).toFixed(2)):0},_=function(s){return s?parseFloat((s/100).toFixed(2)):0}}}]); diff --git a/dist/p__Proxy__ProxyUserManagement.09105256.async.js b/dist/p__Proxy__ProxyUserManagement.09105256.async.js new file mode 100644 index 0000000..86f3009 --- /dev/null +++ b/dist/p__Proxy__ProxyUserManagement.09105256.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[526],{58371:function(Z,P,r){r.r(P);var l=r(15009),_=r.n(l),O=r(97857),g=r.n(O),I=r(99289),p=r.n(I),s=r(81072),m=r(90930),n=r(67539),u=r(35312),f=r(66309),h=r(67294),C=r(38171),c=r(85893),b=function(){var M=(0,u.useParams)(),d=M.code,H=(0,h.useRef)();(0,h.useEffect)(function(){var j;(j=H.current)===null||j===void 0||j.reload()},[d]);var k=[{title:"\u7528\u6237id",dataIndex:"userId",valueType:"textarea",hideInTable:!0},{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"nickname",valueType:"textarea",renderText:function(R,K){return(0,c.jsx)(C.Z,{data:K})}},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",hideInSearch:!0,renderText:function(R){return R?(0,c.jsx)(f.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,c.jsx)(f.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange",hideInSearch:!0}];return(0,c.jsx)(m._z,{children:(0,c.jsx)(n.Z,{actionRef:H,request:function(){var j=p()(_()().mark(function R(K){var N,V,S;return _()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,(0,s.pb)(g()(g()({},K),{},{appCode:d}));case 2:return S=D.sent,D.abrupt("return",{data:(N=S.data)===null||N===void 0?void 0:N.data,total:(V=S.data)===null||V===void 0?void 0:V.total,success:!0});case 4:case"end":return D.stop()}},R)}));return function(R){return j.apply(this,arguments)}}(),columns:k})})};P.default=b},38171:function(Z,P,r){var l=r(55241),_=r(2487),O=r(71230),g=r(7134),I=r(67294),p=r(52043),s=r(85893),m=function(u){var f=(0,p.E7)(u.data.env);return(0,s.jsx)(l.Z,{content:(0,s.jsx)(s.Fragment,{children:f.length>0&&(0,s.jsx)(_.Z,{size:"small",header:(0,s.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:f,renderItem:function(C){return(0,s.jsx)(_.Z.Item,{children:C})}})}),children:(0,s.jsxs)(O.Z,{children:[(0,s.jsx)(g.C,{src:u.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,s.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:f.length>0?"red":""},children:["id:",u.data.id,(0,s.jsx)("br",{}),u.data.nickname||u.data.mobile]})]})})};P.Z=m},81072:function(Z,P,r){r.d(P,{fn:function(){return h},pb:function(){return u},wv:function(){return m}});var l=r(15009),_=r.n(l),O=r(97857),g=r.n(O),I=r(99289),p=r.n(I),s=r(35312);function m(c,b){return n.apply(this,arguments)}function n(){return n=p()(_()().mark(function c(b,y){return _()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,s.request)("/api/admin/user/changeStatus",g()({method:"POST",params:g()({},b)},y||{})));case 1:case"end":return d.stop()}},c)})),n.apply(this,arguments)}function u(c,b){return f.apply(this,arguments)}function f(){return f=p()(_()().mark(function c(b,y){return _()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,s.request)("/api/admin/user/list",g()({method:"POST",headers:{"Content-Type":"application/json"},data:b},y||{})));case 1:case"end":return d.stop()}},c)})),f.apply(this,arguments)}function h(c,b){return C.apply(this,arguments)}function C(){return C=p()(_()().mark(function c(b,y){return _()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,s.request)("/api/admin/user/queryById",g()({method:"GET",params:g()({},b)},y||{})));case 1:case"end":return d.stop()}},c)})),C.apply(this,arguments)}},52043:function(Z,P,r){r.d(P,{E7:function(){return _},FG:function(){return l},aV:function(){return p}});var l=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},_=function(m){var n=[];if(!m)return n;for(var u=m>>1,f=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],h=0,C=f;h>=1}return n},O=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},g=function(m){var n=new Date(m),u=n.getFullYear().toString().padStart(4,"0"),f=(n.getMonth()+1).toString().padStart(2,"0"),h=n.getDate().toString().padStart(2,"0");return u+f+h},I=function(m,n){var u=m.toString();return u.padStart(n,"0")},p=function(m){var n=m;return n<1024?n+" B":(n=parseFloat((n/1024).toFixed(2)),n<1024?n+" KB":(n=parseFloat((n/1024).toFixed(2)),n+" MB"))}},66309:function(Z,P,r){r.d(P,{Z:function(){return le}});var l=r(67294),_=r(93967),O=r.n(_),g=r(98423),I=r(98787),p=r(69760),s=r(96159),m=r(45353),n=r(53124),u=r(54548),f=r(10274),h=r(14747),C=r(45503),c=r(91945);const b=e=>{const{paddingXXS:o,lineWidth:i,tagPaddingHorizontal:t,componentCls:a,calc:x}=e,v=x(t).sub(i).equal(),$=x(o).sub(i).equal();return{[a]:Object.assign(Object.assign({},(0,h.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:v,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,u.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:$,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:v}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},y=e=>{const{lineWidth:o,fontSizeIcon:i,calc:t}=e,a=e.fontSizeSM;return(0,C.TS)(e,{tagFontSize:a,tagLineHeight:(0,u.bf)(t(e.lineHeightSM).mul(a).equal()),tagIconSize:t(i).sub(t(o).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},M=e=>({defaultBg:new f.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var d=(0,c.I$)("Tag",e=>{const o=y(e);return b(o)},M),H=function(e,o){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a{const{prefixCls:i,style:t,className:a,checked:x,onChange:v,onClick:$}=e,B=H(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:z,tag:U}=l.useContext(n.E_),F=G=>{v==null||v(!x),$==null||$(G)},A=z("tag",i),[X,Q,T]=d(A),Y=O()(A,`${A}-checkable`,{[`${A}-checkable-checked`]:x},U==null?void 0:U.className,a,Q,T);return X(l.createElement("span",Object.assign({},B,{ref:o,style:Object.assign(Object.assign({},t),U==null?void 0:U.style),className:Y,onClick:F})))}),R=r(98719);const K=e=>(0,R.Z)(e,(o,i)=>{let{textColor:t,lightBorderColor:a,lightColor:x,darkColor:v}=i;return{[`${e.componentCls}${e.componentCls}-${o}`]:{color:t,background:x,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:v,borderColor:v},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var N=(0,c.bk)(["Tag","preset"],e=>{const o=y(e);return K(o)},M);function V(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const S=(e,o,i)=>{const t=V(i);return{[`${e.componentCls}${e.componentCls}-${o}`]:{color:e[`color${i}`],background:e[`color${t}Bg`],borderColor:e[`color${t}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var q=(0,c.bk)(["Tag","status"],e=>{const o=y(e);return[S(o,"success","Success"),S(o,"processing","Info"),S(o,"error","Error"),S(o,"warning","Warning")]},M),D=function(e,o){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a{const{prefixCls:i,className:t,rootClassName:a,style:x,children:v,icon:$,color:B,onClose:z,bordered:U=!0,visible:F}=e,A=D(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:X,direction:Q,tag:T}=l.useContext(n.E_),[Y,G]=l.useState(!0),ie=(0,g.Z)(A,["closeIcon","closable"]);l.useEffect(()=>{F!==void 0&&G(F)},[F]);const re=(0,I.o2)(B),te=(0,I.yT)(B),J=re||te,ce=Object.assign(Object.assign({backgroundColor:B&&!J?B:void 0},T==null?void 0:T.style),x),E=X("tag",i),[de,ue,_e]=d(E),me=O()(E,T==null?void 0:T.className,{[`${E}-${B}`]:J,[`${E}-has-color`]:B&&!J,[`${E}-hidden`]:!Y,[`${E}-rtl`]:Q==="rtl",[`${E}-borderless`]:!U},t,a,ue,_e),ne=W=>{W.stopPropagation(),z==null||z(W),!W.defaultPrevented&&G(!1)},[,fe]=(0,p.Z)((0,p.w)(e),(0,p.w)(T),{closable:!1,closeIconRender:W=>{const pe=l.createElement("span",{className:`${E}-close-icon`,onClick:ne},W);return(0,s.wm)(W,pe,L=>({onClick:se=>{var w;(w=L==null?void 0:L.onClick)===null||w===void 0||w.call(L,se),ne(se)},className:O()(L==null?void 0:L.className,`${E}-close-icon`)}))}}),ve=typeof A.onClick=="function"||v&&v.type==="a",ae=$||null,ge=ae?l.createElement(l.Fragment,null,ae,v&&l.createElement("span",null,v)):v,oe=l.createElement("span",Object.assign({},ie,{ref:o,className:me,style:ce}),ge,fe,re&&l.createElement(N,{key:"preset",prefixCls:E}),te&&l.createElement(q,{key:"status",prefixCls:E}));return de(ve?l.createElement(m.Z,{component:"Tag"},oe):oe)});ee.CheckableTag=j;var le=ee}}]); diff --git a/dist/p__Proxy__ProxyUserManagement.f7d74b28.async.js b/dist/p__Proxy__ProxyUserManagement.f7d74b28.async.js deleted file mode 100644 index c969fb7..0000000 --- a/dist/p__Proxy__ProxyUserManagement.f7d74b28.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[526],{58371:function(K,b,r){r.r(b);var s=r(15009),_=r.n(s),E=r(97857),c=r.n(E),M=r(99289),C=r.n(M),f=r(81072),n=r(58125),a=r(90930),p=r(67539),d=r(35312),v=r(66309),P=r(67294),m=r(38171),g=r(85893),x=function(){var u=(0,d.useParams)(),H=u.code,X=(0,P.useRef)();(0,P.useEffect)(function(){var O;(O=X.current)===null||O===void 0||O.reload()},[H]);var Y=[{title:"\u7528\u6237id",dataIndex:"userId",valueType:"textarea",hideInTable:!0},{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"nickname",valueType:"textarea",renderText:function(y,F){return(0,g.jsx)(m.Z,{data:F})}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount",hideInSearch:!0},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",hideInSearch:!0,renderText:function(y){return y?(0,g.jsx)(v.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,g.jsx)(v.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"income",renderText:function(y){return(0,n.P)(y)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"realMoney",renderText:function(y){return(0,n.D)(y)}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange",hideInSearch:!0}];return(0,g.jsx)(a._z,{children:(0,g.jsx)(p.Z,{actionRef:X,request:function(){var O=C()(_()().mark(function y(F){var N,D,V;return _()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,(0,f.pb)(c()(c()({},F),{},{appCode:H}));case 2:return V=R.sent,R.abrupt("return",{data:(N=V.data)===null||N===void 0?void 0:N.data,total:(D=V.data)===null||D===void 0?void 0:D.total,success:!0});case 4:case"end":return R.stop()}},y)}));return function(y){return O.apply(this,arguments)}}(),columns:Y})})};b.default=x},38171:function(K,b,r){var s=r(55241),_=r(2487),E=r(71230),c=r(7134),M=r(67294),C=r(52043),f=r(58125),n=r(85893),a=function(d){var v=(0,C.E7)(d.data.env);return(0,n.jsx)(s.Z,{content:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{children:[(0,n.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,f.P)(d.data.income),"\u5143"]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,f.D)(d.data.realMoney),"\u5143"]}),v.length>0&&(0,n.jsx)(_.Z,{size:"small",header:(0,n.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:v,renderItem:function(m){return(0,n.jsx)(_.Z.Item,{children:m})}})]}),children:(0,n.jsxs)(E.Z,{children:[(0,n.jsx)(c.C,{src:d.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,n.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:v.length>0?"red":""},children:["id:",d.data.id,(0,n.jsx)("br",{}),d.data.nickname||d.data.mobile]})]})})};b.Z=a},81072:function(K,b,r){r.d(b,{fn:function(){return v},pb:function(){return p},wv:function(){return n}});var s=r(15009),_=r.n(s),E=r(97857),c=r.n(E),M=r(99289),C=r.n(M),f=r(35312);function n(m,g){return a.apply(this,arguments)}function a(){return a=C()(_()().mark(function m(g,x){return _()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,f.request)("/api/admin/user/changeStatus",c()({method:"POST",params:c()({},g)},x||{})));case 1:case"end":return u.stop()}},m)})),a.apply(this,arguments)}function p(m,g){return d.apply(this,arguments)}function d(){return d=C()(_()().mark(function m(g,x){return _()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,f.request)("/api/admin/user/list",c()({method:"POST",headers:{"Content-Type":"application/json"},data:g},x||{})));case 1:case"end":return u.stop()}},m)})),d.apply(this,arguments)}function v(m,g){return P.apply(this,arguments)}function P(){return P=C()(_()().mark(function m(g,x){return _()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,f.request)("/api/admin/user/queryById",c()({method:"GET",params:c()({},g)},x||{})));case 1:case"end":return u.stop()}},m)})),P.apply(this,arguments)}},52043:function(K,b,r){r.d(b,{E7:function(){return _},FG:function(){return s},aV:function(){return C}});var s=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},_=function(n){var a=[];if(!n)return a;for(var p=n>>1,d=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],v=0,P=d;v>=1}return a},E=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},c=function(n){var a=new Date(n),p=a.getFullYear().toString().padStart(4,"0"),d=(a.getMonth()+1).toString().padStart(2,"0"),v=a.getDate().toString().padStart(2,"0");return p+d+v},M=function(n,a){var p=n.toString();return p.padStart(a,"0")},C=function(n){var a=n;return a<1024?a+" B":(a=parseFloat((a/1024).toFixed(2)),a<1024?a+" KB":(a=parseFloat((a/1024).toFixed(2)),a+" MB"))}},58125:function(K,b,r){r.d(b,{D:function(){return _},P:function(){return s}});var s=function(c){return c?parseFloat((c/1e5).toFixed(2)):0},_=function(c){return c?parseFloat((c/100).toFixed(2)):0}},66309:function(K,b,r){r.d(b,{Z:function(){return ie}});var s=r(67294),_=r(93967),E=r.n(_),c=r(98423),M=r(98787),C=r(69760),f=r(96159),n=r(45353),a=r(53124),p=r(54548),d=r(10274),v=r(14747),P=r(45503),m=r(91945);const g=e=>{const{paddingXXS:l,lineWidth:i,tagPaddingHorizontal:t,componentCls:o,calc:T}=e,h=T(t).sub(i).equal(),$=T(l).sub(i).equal();return{[o]:Object.assign(Object.assign({},(0,v.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:h,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,p.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:$,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:h}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},x=e=>{const{lineWidth:l,fontSizeIcon:i,calc:t}=e,o=e.fontSizeSM;return(0,P.TS)(e,{tagFontSize:o,tagLineHeight:(0,p.bf)(t(e.lineHeightSM).mul(o).equal()),tagIconSize:t(i).sub(t(l).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},U=e=>({defaultBg:new d.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var u=(0,m.I$)("Tag",e=>{const l=x(e);return g(l)},U),H=function(e,l){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&l.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{const{prefixCls:i,style:t,className:o,checked:T,onChange:h,onClick:$}=e,S=H(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:z,tag:B}=s.useContext(a.E_),Z=G=>{h==null||h(!T),$==null||$(G)},A=z("tag",i),[Q,J,j]=u(A),w=E()(A,`${A}-checkable`,{[`${A}-checkable-checked`]:T},B==null?void 0:B.className,o,J,j);return Q(s.createElement("span",Object.assign({},S,{ref:l,style:Object.assign(Object.assign({},t),B==null?void 0:B.style),className:w,onClick:Z})))}),O=r(98719);const y=e=>(0,O.Z)(e,(l,i)=>{let{textColor:t,lightBorderColor:o,lightColor:T,darkColor:h}=i;return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:t,background:T,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:h,borderColor:h},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var F=(0,m.bk)(["Tag","preset"],e=>{const l=x(e);return y(l)},U);function N(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const D=(e,l,i)=>{const t=N(i);return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:e[`color${i}`],background:e[`color${t}Bg`],borderColor:e[`color${t}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var V=(0,m.bk)(["Tag","status"],e=>{const l=x(e);return[D(l,"success","Success"),D(l,"processing","Info"),D(l,"error","Error"),D(l,"warning","Warning")]},U),ee=function(e,l){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&l.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{const{prefixCls:i,className:t,rootClassName:o,style:T,children:h,icon:$,color:S,onClose:z,bordered:B=!0,visible:Z}=e,A=ee(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Q,direction:J,tag:j}=s.useContext(a.E_),[w,G]=s.useState(!0),ce=(0,c.Z)(A,["closeIcon","closable"]);s.useEffect(()=>{Z!==void 0&&G(Z)},[Z]);const te=(0,M.o2)(S),ne=(0,M.yT)(S),k=te||ne,de=Object.assign(Object.assign({backgroundColor:S&&!k?S:void 0},j==null?void 0:j.style),T),I=Q("tag",i),[ue,_e,me]=u(I),fe=E()(I,j==null?void 0:j.className,{[`${I}-${S}`]:k,[`${I}-has-color`]:S&&!k,[`${I}-hidden`]:!w,[`${I}-rtl`]:J==="rtl",[`${I}-borderless`]:!B},t,o,_e,me),ae=W=>{W.stopPropagation(),z==null||z(W),!W.defaultPrevented&&G(!1)},[,ve]=(0,C.Z)((0,C.w)(e),(0,C.w)(j),{closable:!1,closeIconRender:W=>{const pe=s.createElement("span",{className:`${I}-close-icon`,onClick:ae},W);return(0,f.wm)(W,pe,L=>({onClick:se=>{var q;(q=L==null?void 0:L.onClick)===null||q===void 0||q.call(L,se),ae(se)},className:E()(L==null?void 0:L.className,`${I}-close-icon`)}))}}),ge=typeof A.onClick=="function"||h&&h.type==="a",oe=$||null,he=oe?s.createElement(s.Fragment,null,oe,h&&s.createElement("span",null,h)):h,le=s.createElement("span",Object.assign({},ce,{ref:l,className:fe,style:de}),he,ve,te&&s.createElement(F,{key:"preset",prefixCls:I}),ne&&s.createElement(V,{key:"status",prefixCls:I}));return ue(ge?s.createElement(n.Z,{component:"Tag"},le):le)});re.CheckableTag=Y;var ie=re}}]); diff --git a/dist/p__SuperAdmin.b23d2340.async.js b/dist/p__SuperAdmin.b23d2340.async.js new file mode 100644 index 0000000..b721685 --- /dev/null +++ b/dist/p__SuperAdmin.b23d2340.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[455],{3089:function(ce,K,n){n.d(K,{Z:function(){return f}});var w=n(1413),A=n(67294),H={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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 372z"}}]},name:"minus-circle",theme:"outlined"},G=H,q=n(91146),i=function(m,Z){return A.createElement(q.Z,(0,w.Z)((0,w.Z)({},m),{},{ref:Z,icon:G}))},y=A.forwardRef(i),f=y},38996:function(ce,K,n){n.r(K),n.d(K,{default:function(){return _e}});var w=n(97857),A=n.n(w),H=n(13769),G=n.n(H),q=n(15009),i=n.n(q),y=n(99289),f=n.n(y),h=n(5574),m=n.n(h),Z=n(48357),M=n(52043),R=n(1413),g=n(67294),de=n(509),te=n(91146),ae=function(S,I){return g.createElement(te.Z,(0,R.Z)((0,R.Z)({},S),{},{ref:I,icon:de.Z}))},ue=g.forwardRef(ae),se=ue,Pe=n(3089),be=n(90930),D=n(8232),W=n(55102),ie=n(42075),O=n(14726),Me=n(55241),pe=n(66309),ne=n(2453),Oe=n(13169),Fe=n(72051),fe=n(17788),Se=n(34041),Be=n(71230),xe=n(15746),ke=n(47676),le=n(16250),Te=n(27484),me=n.n(Te),Ue=n(19632),Ee=n.n(Ue),Ke=n(32400),we=n(56448),Le=n.n(we),Re=n(66476),e=n(85893),We=function(S){var I=S.onUploadSuccess,j=S.onUploadError,C=(0,g.useState)(!1),z=m()(C,2),L=z[0],$=z[1],_=(0,g.useState)([]),X=m()(_,2),k=X[0],Y=X[1],N=(0,g.useState)(null),J=m()(N,2),T=J[0],B=J[1],U=Re.Z.Dragger;(0,g.useEffect)(function(){function r(){return t.apply(this,arguments)}function t(){return t=f()(i()().mark(function v(){var u,o;return i()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,p.next=3,(0,Z.po)();case 3:if(u=p.sent,!(!u.data||!u.data.accessKeySecret||!u.data.accessKeyId)){p.next=7;break}return ne.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),p.abrupt("return");case 7:o=new(Le())({region:"oss-cn-beijing",accessKeyId:u.data.accessKeyId,accessKeySecret:u.data.accessKeySecret,stsToken:u.data.securityToken,bucket:u.data.bucket}),B(o),p.next=15;break;case 11:p.prev=11,p.t0=p.catch(0),ne.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),j&&j(p.t0);case 15:case"end":return p.stop()}},v,null,[[0,11]])})),t.apply(this,arguments)}r()},[j]);var Q=function(t){var v=(k||[]).filter(function(u){return u.url!==t.url});Y(v)},c=function(){var r=f()(i()().mark(function t(v){var u,o,x,p;return i()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(u=v.file,!(u instanceof File)){F.next=26;break}return $(!0),F.prev=3,F.next=6,(0,Ke.p)(u);case 6:return o=F.sent,x="matrix/".concat(o,".").concat(u.name.split(".").pop()),F.next=10,T==null?void 0:T.put(x,u,{headers:{"Content-Type":u.type}});case 10:p="https://apks.bzgames.cn/".concat(x),I&&I(p),$(!1),Y(function(oe){return[].concat(Ee()(oe),[{uid:u.uid,name:u.name+"\uFF1A"+p,status:"done",url:p}])}),F.next=21;break;case 16:F.prev=16,F.t0=F.catch(3),ne.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),j&&j(F.t0),Y(function(oe){return[].concat(Ee()(oe),[{uid:u.uid,name:u.name,status:"error"}])});case 21:return F.prev=21,$(!1),F.finish(21);case 24:F.next=27;break;case 26:ne.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 27:case"end":return F.stop()}},t,null,[[3,16,21,24]])}));return function(v){return r.apply(this,arguments)}}();return(0,e.jsxs)(U,{fileList:k,multiple:!0,customRequest:c,onRemove:Q,disabled:L||!T,onPreview:function(){var r=f()(i()().mark(function t(v){return i()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,navigator.clipboard.writeText(v.url||"");case 2:ne.ZP.success("\u94FE\u63A5\u590D\u5236\u6210\u529F "+v.url);case 3:case"end":return o.stop()}},t)}));return function(t){return r.apply(this,arguments)}}(),capture:void 0,children:[(0,e.jsx)("p",{className:"ant-upload-drag-icon",children:(0,e.jsx)("i",{className:"anticon anticon-inbox"})}),(0,e.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"}),(0,e.jsx)("p",{className:"ant-upload-hint",children:"\u652F\u6301\u5355\u4E2A\u6216\u6279\u91CF\u4E0A\u4F20\u3002\u6587\u4EF6\u540D\u5C06\u4F7F\u7528\u6587\u4EF6\u7684 MD5 \u503C\u547D\u540D\u3002"})]})},$e=We,De=n(67539),ve=n(35312);function Ye(P){return he.apply(this,arguments)}function he(){return he=f()(i()().mark(function P(S){return i()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,ve.request)("/api/superAdmin/evilAppList",A()({method:"GET"},S||{})));case 1:case"end":return j.stop()}},P)})),he.apply(this,arguments)}function Ne(P,S){return ge.apply(this,arguments)}function ge(){return ge=f()(i()().mark(function P(S,I){return i()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,ve.request)("/api/superAdmin/saveEvilApp",A()({method:"POST",headers:{"Content-Type":"application/json"},data:S},I||{})));case 1:case"end":return C.stop()}},P)})),ge.apply(this,arguments)}function Ie(P,S){return je.apply(this,arguments)}function je(){return je=f()(i()().mark(function P(S,I){return i()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,ve.request)("/api/superAdmin/saveWhiteUser",A()({method:"POST",params:A()({},S)},I||{})));case 1:case"end":return C.stop()}},P)})),je.apply(this,arguments)}function Ve(P){return ye.apply(this,arguments)}function ye(){return ye=f()(i()().mark(function P(S){return i()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,ve.request)("/api/superAdmin/whiteUserList",A()({method:"GET"},S||{})));case 1:case"end":return j.stop()}},P)})),ye.apply(this,arguments)}var He=function(){var S=(0,g.useState)(!1),I=m()(S,2),j=I[0],C=I[1],z=(0,g.useState)([]),L=m()(z,2),$=L[0],_=L[1],X=(0,g.useState)([]),k=m()(X,2),Y=k[0],N=k[1],J=D.Z.useForm(),T=m()(J,1),B=T[0],U=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,v=r.selectedKeys,u=r.confirm,o=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(W.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:v[0],onChange:function(p){return t(p.target.value?[p.target.value]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(ie.Z,{children:[(0,e.jsx)(O.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(O.ZP,{onClick:function(){return o&&o()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){return typeof r=="string"&&typeof(t==null?void 0:t.name)=="string"?t.name.includes(r):!1},filterIcon:function(r){return(0,e.jsx)(se,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,v=r.selectedKeys,u=r.confirm,o=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(W.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:v[0],onChange:function(p){return t(p.target.value?[p.target.value]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(ie.Z,{children:[(0,e.jsx)(O.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(O.ZP,{onClick:function(){return o&&o()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){return typeof r=="string"&&typeof(t==null?void 0:t.packageName)=="string"?t.packageName.includes(r):!1},filterIcon:function(r){return(0,e.jsx)(se,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(r){return(0,e.jsx)("a",{onClick:function(){C(!0),B.setFieldsValue(r)},children:"\u7F16\u8F91"},"edit")}}],Q=function(){var c=f()(i()().mark(function r(){var t;return i()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Ye();case 2:t=u.sent,t.data&&(_(t.data),N(t.data));case 4:case"end":return u.stop()}},r)}));return function(){return c.apply(this,arguments)}}();return(0,g.useEffect)(function(){Q()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O.ZP,{style:{marginBottom:"20px"},onClick:function(){C(!0),B.resetFields()},children:"\u65B0\u5EFA\u5E94\u7528"}),(0,e.jsx)(De.Z,{search:!1,onReset:function(){N($)},columns:U,dataSource:Y}),(0,e.jsx)(fe.Z,{title:"\u7F16\u8F91",visible:j,onOk:function(){B.submit(),C(!1)},onCancel:function(){C(!1)},children:(0,e.jsxs)(D.Z,{labelCol:{span:4},wrapperCol:{span:18},form:B,onFinish:function(){var c=f()(i()().mark(function r(t){return i()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Ne(t);case 2:Q();case 3:case"end":return u.stop()}},r)}));return function(r){return c.apply(this,arguments)}}(),children:[(0,e.jsx)(D.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(W.Z,{type:"hidden"})}),(0,e.jsx)(D.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,e.jsx)(W.Z,{})}),(0,e.jsx)(D.Z.Item,{label:"\u5305\u540D",name:"packageName",children:(0,e.jsx)(W.Z,{})})]})})]})},Ge=He,Ze=n(37804),ze=n(38171),Xe=function(){var S=(0,g.useState)(!1),I=m()(S,2),j=I[0],C=I[1],z=(0,g.useState)([]),L=m()(z,2),$=L[0],_=L[1],X=(0,g.useState)([]),k=m()(X,2),Y=k[0],N=k[1],J=D.Z.useForm(),T=m()(J,1),B=T[0],U=function(){var c=f()(i()().mark(function r(){var t;return i()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Ve();case 2:t=u.sent,t.data&&(_(t.data),N(t.data));case 4:case"end":return u.stop()}},r)}));return function(){return c.apply(this,arguments)}}(),Q=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",copyable:!0,hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,v=r.selectedKeys,u=r.confirm,o=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(W.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:v[0],onChange:function(p){return t(p.target.value?[p.target.value]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(ie.Z,{children:[(0,e.jsx)(O.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(O.ZP,{onClick:function(){return o&&o()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){return typeof r=="string"&&typeof(t==null?void 0:t.appName)=="string"?t.appName.includes(r):!1},filterIcon:function(r){return(0,e.jsx)(se,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,render:function(r,t){return(0,e.jsx)(ze.Z,{data:t.user||{}})},filterDropdown:function(r){var t=r.setSelectedKeys,v=r.selectedKeys,u=r.confirm,o=r.clearFilters,x=v[0]?String(v[0]):"";return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(Ze.Z,{placeholder:"\u641C\u7D22 userId",value:x,onChange:function(ee){return t(ee?[ee]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block",width:200}}),(0,e.jsxs)(ie.Z,{children:[(0,e.jsx)(O.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(O.ZP,{onClick:function(){return o&&o()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){var v;return((v=t.user)===null||v===void 0?void 0:v.id)===r},filterIcon:function(r){return(0,e.jsx)(se,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u72B6\u6001",hideInSearch:!0,renderText:function(r){return r.status===0?(0,e.jsx)(pe.Z,{color:"green",children:"\u5DF2\u542F\u7528"}):(0,e.jsx)(pe.Z,{color:"red",children:"\u672A\u542F\u7528"})}},{title:"\u521B\u5EFA\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u4FEE\u6539\u65F6\u95F4",hideInSearch:!0,dataIndex:"updatedAt",valueType:"dateTime"},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(r){return(0,e.jsx)("a",{onClick:f()(i()().mark(function t(){var v;return i()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Ie({userId:((v=r.user)===null||v===void 0?void 0:v.id)||0,status:r.status===0?-1:0});case 2:U();case 3:case"end":return o.stop()}},t)})),children:r.status===0?"\u7981\u7528":"\u542F\u7528"},"edit")}}];return(0,g.useEffect)(function(){U()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O.ZP,{style:{marginBottom:"20px"},onClick:function(){C(!0),B.resetFields()},children:"\u6DFB\u52A0\u767D\u540D\u5355"}),(0,e.jsx)(De.Z,{search:!1,onReset:function(){N($)},columns:Q,dataSource:Y}),(0,e.jsx)(fe.Z,{title:"\u7F16\u8F91",visible:j,onOk:function(){B.submit(),C(!1)},onCancel:function(){C(!1)},children:(0,e.jsx)(D.Z,{labelCol:{span:4},wrapperCol:{span:18},form:B,onFinish:function(){var c=f()(i()().mark(function r(t){var v;return i()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(v=t.userId,!v){o.next=5;break}return o.next=4,Ie({userId:v});case 4:U();case 5:case"end":return o.stop()}},r)}));return function(r){return c.apply(this,arguments)}}(),children:(0,e.jsx)(D.Z.Item,{label:"userId",name:"userId",children:(0,e.jsx)(Ze.Z,{style:{width:200}})})})})]})},Je=Xe,Qe=["scheduleTime"],qe=function(){var S=(0,g.useState)([]),I=m()(S,2),j=I[0],C=I[1],z=(0,g.useState)([]),L=m()(z,2),$=L[0],_=L[1],X=(0,g.useState)([]),k=m()(X,2),Y=k[0],N=k[1],J=(0,g.useState)(!1),T=m()(J,2),B=T[0],U=T[1],Q=(0,g.useState)(!1),c=m()(Q,2),r=c[0],t=c[1],v=D.Z.useForm(),u=m()(v,1),o=u[0],x=D.Z.useForm(),p=m()(x,1),ee=p[0],F=function(){var d=f()(i()().mark(function a(){var l;return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,Z.hy)();case 2:l=s.sent,l.data&&_(l.data);case 4:case"end":return s.stop()}},a)}));return function(){return d.apply(this,arguments)}}(),oe=function(){var d=f()(i()().mark(function a(l){return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(l){s.next=2;break}return s.abrupt("return");case 2:return s.next=4,(0,Z.o9)({deviceId:l});case 4:F();case 5:case"end":return s.stop()}},a)}));return function(l){return d.apply(this,arguments)}}(),en=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",ellipsis:!0,filterDropdown:function(a){var l=a.setSelectedKeys,E=a.selectedKeys,s=a.confirm,V=a.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(W.Z,{placeholder:"\u641C\u7D22\u8BBE\u5907",value:E[0],onChange:function(b){return l(b.target.value?[b.target.value]:[])},onPressEnter:function(){return s()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(ie.Z,{children:[(0,e.jsx)(O.ZP,{onClick:function(){return s()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(O.ZP,{onClick:function(){return V&&V()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(a,l){return typeof a=="string"&&typeof(l==null?void 0:l.deviceId)=="string"?l.deviceId.includes(a):!1},filterIcon:function(a){return(0,e.jsx)(se,{style:{color:a?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(a){var l=(0,M.FG)(),E=l.find(function(s){return s.value===a});return E?E.label:a}},{title:"\u64CD\u4F5C",dataIndex:"operate",render:function(a,l){return(0,e.jsx)(Me.Z,{title:"\u786E\u8BA4\u5220\u9664\u5417",content:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsxs)("p",{children:["\u5220\u9664\u4E4B\u540Eecpm\u4F1A\u964D\u4F4E",(0,e.jsx)("br",{}),"\u4E5F\u4F1A\u5F71\u54CD\u5237\u6570\u636E\u53EF\u4F7F\u7528\u7684\u8BBE\u5907"]}),(0,e.jsx)("a",{onClick:function(){return oe(l.deviceId)},children:"\u786E\u5B9A"})]}),children:(0,e.jsx)("a",{children:"\u5220\u9664"})})}}],nn=function(a){var l=j.find(function(E){return E.id===a});return l?l.name:""},rn=function(a){return a?parseFloat((a/1e5).toFixed(2)):0},tn=[{title:"\u5E94\u7528",dataIndex:"appId",render:function(a){return(0,e.jsx)(pe.Z,{color:"blue",children:nn(a)},a)}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(a){var l=(0,M.FG)(),E=l.find(function(s){return s.value===a});return E?E.label:a}},{title:"\u76EE\u6807\u91D1\u989D",dataIndex:"incomeYuan"},{title:"\u5DF2\u5237\u91D1\u989D",dataIndex:"mockIncome",render:function(a){return rn(a)}},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"scheduleTime",render:function(a){return me()(a).format("YYYY-MM-DD HH:mm")}},{title:"\u72B6\u6001",dataIndex:"status",render:function(a){switch(a){case 0:return"\u672A\u5F00\u59CB";case 1:return"\u8FDB\u884C\u4E2D";case 2:return"\u5DF2\u5B8C\u6210"}return a}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createdAt",render:function(a){return me()(a).format("YYYY-MM-DD HH:mm")}},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updatedAt",render:function(a){return me()(a).format("YYYY-MM-DD HH:mm")}}],Ce=function(){var d=f()(i()().mark(function a(){var l;return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,Z.mW)();case 2:l=s.sent,l.data&&N(l.data);case 4:case"end":return s.stop()}},a)}));return function(){return d.apply(this,arguments)}}(),an=function(){var d=f()(i()().mark(function a(){var l;return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,Z.ln)();case 2:l=s.sent,l.data&&C(l.data);case 4:case"end":return s.stop()}},a)}));return function(){return d.apply(this,arguments)}}();(0,g.useEffect)(function(){an(),F(),Ce()},[]);var un=function(){var d=f()(i()().mark(function a(l){var E,s,V;return i()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return E=l.scheduleTime,s=G()(l,Qe),V=E.map(function(Ae){return me()(Ae.time).valueOf()}),b.prev=2,b.next=5,(0,Z.tI)(A()({scheduleTime:V},s));case 5:b.next=10;break;case 7:return b.prev=7,b.t0=b.catch(2),b.abrupt("return");case 10:ne.ZP.success("\u4EFB\u52A1\u63D0\u4EA4\u6210\u529F"),Ce(),t(!1);case 13:case"end":return b.stop()}},a,null,[[2,7]])}));return function(l){return d.apply(this,arguments)}}(),sn=function(){o.resetFields(),U(!0)},ln=function(){ee.resetFields(),t(!0)},on=function(){o.submit()},cn=function(){U(!1)},dn=function(){ee.submit()},fn=function(){t(!1)},mn=function(){var d=f()(i()().mark(function a(l){return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,(0,Z.gz)({deviceId:l.deviceId||"",channel:l.channel||""});case 3:s.next=8;break;case 5:return s.prev=5,s.t0=s.catch(0),s.abrupt("return");case 8:U(!1),F();case 10:case"end":return s.stop()}},a,null,[[0,5]])}));return function(l){return d.apply(this,arguments)}}();return(0,e.jsx)(be._z,{children:(0,e.jsxs)(Oe.Z,{defaultActiveKey:"1",onChange:function(a){a==="1"?F():a==="2"&&Ce()},centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,e.jsx)(le.Z,{tab:"\u8BBE\u5907\u767D\u540D\u5355",children:(0,e.jsxs)("div",{children:[(0,e.jsx)(O.ZP,{onClick:sn,children:"\u6DFB\u52A0\u767D\u540D\u5355"}),(0,e.jsx)(Fe.Z,{columns:en,dataSource:$}),(0,e.jsx)(fe.Z,{title:"\u6DFB\u52A0\u767D\u540D\u5355",visible:B,onOk:on,onCancel:cn,children:(0,e.jsxs)(D.Z,{form:o,onFinish:mn,children:[(0,e.jsx)(D.Z.Item,{name:"deviceId",label:"\u8BBE\u5907id",children:(0,e.jsx)(W.Z,{})}),(0,e.jsx)(D.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,e.jsx)(Se.Z,{options:(0,M.FG)()})})]})})]})},"1"),(0,e.jsx)(le.Z,{tab:"\u5237\u6570\u636E",children:(0,e.jsxs)("div",{children:[(0,e.jsx)(O.ZP,{onClick:ln,children:"\u6DFB\u52A0\u4EFB\u52A1"}),(0,e.jsx)(Fe.Z,{columns:tn,dataSource:Y}),(0,e.jsx)(fe.Z,{title:"\u6DFB\u52A0\u4EFB\u52A1",visible:r,onOk:dn,onCancel:fn,children:(0,e.jsxs)(D.Z,{labelCol:{span:6},wrapperCol:{span:18},form:ee,onFinish:un,children:[(0,e.jsx)(D.Z.Item,{label:"\u5E94\u7528",name:"appId",children:(0,e.jsx)(Se.Z,{mode:"multiple",options:j.map(function(d){return{label:d.name,value:d.id}})})}),(0,e.jsx)(D.Z.Item,{name:"incomeYuan",label:"\u91D1\u989D\uFF08\u5143\uFF09",children:(0,e.jsx)(W.Z,{})}),(0,e.jsx)(D.Z.List,{name:"scheduleTime",children:function(a,l){var E=l.add,s=l.remove;return(0,e.jsxs)(e.Fragment,{children:[a.map(function(V){var re=V.key,b=V.name;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(Be.Z,{align:"stretch",gutter:16,children:[(0,e.jsx)(xe.Z,{span:18,children:(0,e.jsx)(D.Z.Item,{labelCol:{xs:{span:24},sm:{span:8}},name:[b,"time"],label:"\u5F00\u59CB\u65F6\u95F4",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}],children:(0,e.jsx)(ke.default,{format:"YYYY-MM-DD HH:mm",showTime:{format:"HH:mm"}})})}),(0,e.jsx)(xe.Z,{children:(0,e.jsx)(Pe.Z,{onClick:function(){return s(b)}})})]},re)})}),(0,e.jsx)(D.Z.Item,{children:(0,e.jsx)(O.ZP,{type:"dashed",onClick:function(){return E()},block:!0,children:"\u6DFB\u52A0\u5F00\u59CB\u65F6\u95F4"})})]})}})]})})]})},"2"),(0,e.jsx)(le.Z,{tab:"\u4E0A\u4F20\u8D44\u6E90",children:(0,e.jsx)($e,{})},"3"),(0,e.jsx)(le.Z,{tab:"\u975E\u6CD5\u5E94\u7528",children:(0,e.jsx)(Ge,{})},"4"),(0,e.jsx)(le.Z,{tab:"\u7528\u6237\u767D\u540D\u5355",children:(0,e.jsx)(Je,{})},"5")]})})},_e=qe},38171:function(ce,K,n){var w=n(55241),A=n(2487),H=n(71230),G=n(7134),q=n(67294),i=n(52043),y=n(85893),f=function(m){var Z=(0,i.E7)(m.data.env);return(0,y.jsx)(w.Z,{content:(0,y.jsx)(y.Fragment,{children:Z.length>0&&(0,y.jsx)(A.Z,{size:"small",header:(0,y.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:Z,renderItem:function(R){return(0,y.jsx)(A.Z.Item,{children:R})}})}),children:(0,y.jsxs)(H.Z,{children:[(0,y.jsx)(G.C,{src:m.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,y.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:Z.length>0?"red":""},children:["id:",m.data.id,(0,y.jsx)("br",{}),m.data.nickname||m.data.mobile]})]})})};K.Z=f},52043:function(ce,K,n){n.d(K,{E7:function(){return A},FG:function(){return w},aV:function(){return i}});var w=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},A=function(f){var h=[];if(!f)return h;for(var m=f>>1,Z=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],M=0,R=Z;M>=1}return h},H=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},G=function(f){var h=new Date(f),m=h.getFullYear().toString().padStart(4,"0"),Z=(h.getMonth()+1).toString().padStart(2,"0"),M=h.getDate().toString().padStart(2,"0");return m+Z+M},q=function(f,h){var m=f.toString();return m.padStart(h,"0")},i=function(f){var h=f;return h<1024?h+" B":(h=parseFloat((h/1024).toFixed(2)),h<1024?h+" KB":(h=parseFloat((h/1024).toFixed(2)),h+" MB"))}},32400:function(ce,K,n){n.d(K,{p:function(){return y}});var w=n(15009),A=n.n(w),H=n(99289),G=n.n(H),q=n(8322),i=n.n(q);function y(h){return f.apply(this,arguments)}function f(){return f=G()(A()().mark(function h(m){return A()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",new Promise(function(R,g){var de=new(i()).ArrayBuffer,te=new FileReader;te.onload=function(ae){var ue;de.append((ue=ae.target)===null||ue===void 0?void 0:ue.result),R(de.end())},te.onerror=function(ae){g(ae)},te.readAsArrayBuffer(m)}));case 1:case"end":return M.stop()}},h)})),f.apply(this,arguments)}}}]); diff --git a/dist/p__SuperAdmin.e8eab676.async.js b/dist/p__SuperAdmin.e8eab676.async.js deleted file mode 100644 index ecb6550..0000000 --- a/dist/p__SuperAdmin.e8eab676.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[455],{3089:function(te,k,n){n.d(k,{Z:function(){return s}});var T=n(1413),D=n(67294),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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 372z"}}]},name:"minus-circle",theme:"outlined"},O=R,q=n(91146),l=function(p,y){return D.createElement(q.Z,(0,T.Z)((0,T.Z)({},p),{},{ref:y,icon:O}))},B=D.forwardRef(l),s=B},38996:function(te,k,n){n.r(k),n.d(k,{default:function(){return _e}});var T=n(97857),D=n.n(T),R=n(13769),O=n.n(R),q=n(15009),l=n.n(q),B=n(99289),s=n.n(B),h=n(5574),p=n.n(h),y=n(48357),A=n(52043),G=n(1413),g=n(67294),de=n(509),ae=n(91146),ue=function(x,Z){return g.createElement(ae.Z,(0,G.Z)((0,G.Z)({},x),{},{ref:Z,icon:de.Z}))},se=g.forwardRef(ue),ie=se,Pe=n(3089),be=n(90930),I=n(8232),$=n(55102),le=n(42075),M=n(14726),Me=n(55241),pe=n(66309),ne=n(2453),Oe=n(13169),Ce=n(72051),fe=n(17788),xe=n(34041),Be=n(71230),Se=n(15746),ke=n(47676),oe=n(16250),Te=n(27484),me=n.n(Te),Ue=n(19632),Ee=n.n(Ue),Ke=n(32400),we=n(56448),Le=n.n(we),Re=n(66476),e=n(85893),We=function(x){var Z=x.onUploadSuccess,j=x.onUploadError,F=(0,g.useState)(!1),z=p()(F,2),W=z[0],Y=z[1],_=(0,g.useState)([]),X=p()(_,2),K=X[0],N=X[1],V=(0,g.useState)(null),J=p()(V,2),w=J[0],U=J[1],L=Re.Z.Dragger;(0,g.useEffect)(function(){function r(){return t.apply(this,arguments)}function t(){return t=s()(l()().mark(function m(){var u,c;return l()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.prev=0,v.next=3,(0,y.po)();case 3:if(u=v.sent,!(!u.data||!u.data.accessKeySecret||!u.data.accessKeyId)){v.next=7;break}return ne.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),v.abrupt("return");case 7:c=new(Le())({region:"oss-cn-beijing",accessKeyId:u.data.accessKeyId,accessKeySecret:u.data.accessKeySecret,stsToken:u.data.securityToken,bucket:u.data.bucket}),U(c),v.next=15;break;case 11:v.prev=11,v.t0=v.catch(0),ne.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),j&&j(v.t0);case 15:case"end":return v.stop()}},m,null,[[0,11]])})),t.apply(this,arguments)}r()},[j]);var Q=function(t){var m=(K||[]).filter(function(u){return u.url!==t.url});N(m)},d=function(){var r=s()(l()().mark(function t(m){var u,c,S,v;return l()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(u=m.file,!(u instanceof File)){C.next=26;break}return Y(!0),C.prev=3,C.next=6,(0,Ke.p)(u);case 6:return c=C.sent,S="matrix/".concat(c,".").concat(u.name.split(".").pop()),C.next=10,w==null?void 0:w.put(S,u,{headers:{"Content-Type":u.type}});case 10:v="https://apks.bzgames.cn/".concat(S),Z&&Z(v),Y(!1),N(function(ce){return[].concat(Ee()(ce),[{uid:u.uid,name:u.name+"\uFF1A"+v,status:"done",url:v}])}),C.next=21;break;case 16:C.prev=16,C.t0=C.catch(3),ne.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),j&&j(C.t0),N(function(ce){return[].concat(Ee()(ce),[{uid:u.uid,name:u.name,status:"error"}])});case 21:return C.prev=21,Y(!1),C.finish(21);case 24:C.next=27;break;case 26:ne.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 27:case"end":return C.stop()}},t,null,[[3,16,21,24]])}));return function(m){return r.apply(this,arguments)}}();return(0,e.jsxs)(L,{fileList:K,multiple:!0,customRequest:d,onRemove:Q,disabled:W||!w,onPreview:function(){var r=s()(l()().mark(function t(m){return l()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,navigator.clipboard.writeText(m.url||"");case 2:ne.ZP.success("\u94FE\u63A5\u590D\u5236\u6210\u529F "+m.url);case 3:case"end":return c.stop()}},t)}));return function(t){return r.apply(this,arguments)}}(),capture:void 0,children:[(0,e.jsx)("p",{className:"ant-upload-drag-icon",children:(0,e.jsx)("i",{className:"anticon anticon-inbox"})}),(0,e.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"}),(0,e.jsx)("p",{className:"ant-upload-hint",children:"\u652F\u6301\u5355\u4E2A\u6216\u6279\u91CF\u4E0A\u4F20\u3002\u6587\u4EF6\u540D\u5C06\u4F7F\u7528\u6587\u4EF6\u7684 MD5 \u503C\u547D\u540D\u3002"})]})},$e=We,De=n(67539),ve=n(35312);function Ye(P){return he.apply(this,arguments)}function he(){return he=s()(l()().mark(function P(x){return l()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,ve.request)("/api/superAdmin/evilAppList",D()({method:"GET"},x||{})));case 1:case"end":return j.stop()}},P)})),he.apply(this,arguments)}function Ne(P,x){return ge.apply(this,arguments)}function ge(){return ge=s()(l()().mark(function P(x,Z){return l()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.abrupt("return",(0,ve.request)("/api/superAdmin/saveEvilApp",D()({method:"POST",headers:{"Content-Type":"application/json"},data:x},Z||{})));case 1:case"end":return F.stop()}},P)})),ge.apply(this,arguments)}function Ie(P,x){return je.apply(this,arguments)}function je(){return je=s()(l()().mark(function P(x,Z){return l()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.abrupt("return",(0,ve.request)("/api/superAdmin/saveWhiteUser",D()({method:"POST",params:D()({},x)},Z||{})));case 1:case"end":return F.stop()}},P)})),je.apply(this,arguments)}function Ve(P){return ye.apply(this,arguments)}function ye(){return ye=s()(l()().mark(function P(x){return l()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,ve.request)("/api/superAdmin/whiteUserList",D()({method:"GET"},x||{})));case 1:case"end":return j.stop()}},P)})),ye.apply(this,arguments)}var He=function(){var x=(0,g.useState)(!1),Z=p()(x,2),j=Z[0],F=Z[1],z=(0,g.useState)([]),W=p()(z,2),Y=W[0],_=W[1],X=(0,g.useState)([]),K=p()(X,2),N=K[0],V=K[1],J=I.Z.useForm(),w=p()(J,1),U=w[0],L=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,m=r.selectedKeys,u=r.confirm,c=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)($.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:m[0],onChange:function(v){return t(v.target.value?[v.target.value]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(le.Z,{children:[(0,e.jsx)(M.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(M.ZP,{onClick:function(){return c&&c()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){return typeof r=="string"&&typeof(t==null?void 0:t.name)=="string"?t.name.includes(r):!1},filterIcon:function(r){return(0,e.jsx)(ie,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,m=r.selectedKeys,u=r.confirm,c=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)($.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:m[0],onChange:function(v){return t(v.target.value?[v.target.value]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(le.Z,{children:[(0,e.jsx)(M.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(M.ZP,{onClick:function(){return c&&c()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){return typeof r=="string"&&typeof(t==null?void 0:t.packageName)=="string"?t.packageName.includes(r):!1},filterIcon:function(r){return(0,e.jsx)(ie,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(r){return(0,e.jsx)("a",{onClick:function(){F(!0),U.setFieldsValue(r)},children:"\u7F16\u8F91"},"edit")}}],Q=function(){var d=s()(l()().mark(function r(){var t;return l()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Ye();case 2:t=u.sent,t.data&&(_(t.data),V(t.data));case 4:case"end":return u.stop()}},r)}));return function(){return d.apply(this,arguments)}}();return(0,g.useEffect)(function(){Q()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(M.ZP,{style:{marginBottom:"20px"},onClick:function(){F(!0),U.resetFields()},children:"\u65B0\u5EFA\u5E94\u7528"}),(0,e.jsx)(De.Z,{search:!1,onReset:function(){V(Y)},columns:L,dataSource:N}),(0,e.jsx)(fe.Z,{title:"\u7F16\u8F91",visible:j,onOk:function(){U.submit(),F(!1)},onCancel:function(){F(!1)},children:(0,e.jsxs)(I.Z,{labelCol:{span:4},wrapperCol:{span:18},form:U,onFinish:function(){var d=s()(l()().mark(function r(t){return l()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Ne(t);case 2:Q();case 3:case"end":return u.stop()}},r)}));return function(r){return d.apply(this,arguments)}}(),children:[(0,e.jsx)(I.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)($.Z,{type:"hidden"})}),(0,e.jsx)(I.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,e.jsx)($.Z,{})}),(0,e.jsx)(I.Z.Item,{label:"\u5305\u540D",name:"packageName",children:(0,e.jsx)($.Z,{})})]})})]})},Ge=He,Ze=n(37804),ze=n(38171),Xe=function(){var x=(0,g.useState)(!1),Z=p()(x,2),j=Z[0],F=Z[1],z=(0,g.useState)([]),W=p()(z,2),Y=W[0],_=W[1],X=(0,g.useState)([]),K=p()(X,2),N=K[0],V=K[1],J=I.Z.useForm(),w=p()(J,1),U=w[0],L=function(){var d=s()(l()().mark(function r(){var t;return l()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Ve();case 2:t=u.sent,t.data&&(_(t.data),V(t.data));case 4:case"end":return u.stop()}},r)}));return function(){return d.apply(this,arguments)}}(),Q=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",copyable:!0,hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,m=r.selectedKeys,u=r.confirm,c=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)($.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:m[0],onChange:function(v){return t(v.target.value?[v.target.value]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(le.Z,{children:[(0,e.jsx)(M.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(M.ZP,{onClick:function(){return c&&c()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){return typeof r=="string"&&typeof(t==null?void 0:t.appName)=="string"?t.appName.includes(r):!1},filterIcon:function(r){return(0,e.jsx)(ie,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,render:function(r,t){return(0,e.jsx)(ze.Z,{data:t.user||{}})},filterDropdown:function(r){var t=r.setSelectedKeys,m=r.selectedKeys,u=r.confirm,c=r.clearFilters,S=m[0]?String(m[0]):"";return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(Ze.Z,{placeholder:"\u641C\u7D22 userId",value:S,onChange:function(ee){return t(ee?[ee]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block",width:200}}),(0,e.jsxs)(le.Z,{children:[(0,e.jsx)(M.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(M.ZP,{onClick:function(){return c&&c()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){var m;return((m=t.user)===null||m===void 0?void 0:m.id)===r},filterIcon:function(r){return(0,e.jsx)(ie,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u72B6\u6001",hideInSearch:!0,renderText:function(r){return r.status===0?(0,e.jsx)(pe.Z,{color:"green",children:"\u5DF2\u542F\u7528"}):(0,e.jsx)(pe.Z,{color:"red",children:"\u672A\u542F\u7528"})}},{title:"\u521B\u5EFA\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u4FEE\u6539\u65F6\u95F4",hideInSearch:!0,dataIndex:"updatedAt",valueType:"dateTime"},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(r){return(0,e.jsx)("a",{onClick:s()(l()().mark(function t(){var m;return l()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Ie({userId:((m=r.user)===null||m===void 0?void 0:m.id)||0,status:r.status===0?-1:0});case 2:L();case 3:case"end":return c.stop()}},t)})),children:r.status===0?"\u7981\u7528":"\u542F\u7528"},"edit")}}];return(0,g.useEffect)(function(){L()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(M.ZP,{style:{marginBottom:"20px"},onClick:function(){F(!0),U.resetFields()},children:"\u6DFB\u52A0\u767D\u540D\u5355"}),(0,e.jsx)(De.Z,{search:!1,onReset:function(){V(Y)},columns:Q,dataSource:N}),(0,e.jsx)(fe.Z,{title:"\u7F16\u8F91",visible:j,onOk:function(){U.submit(),F(!1)},onCancel:function(){F(!1)},children:(0,e.jsx)(I.Z,{labelCol:{span:4},wrapperCol:{span:18},form:U,onFinish:function(){var d=s()(l()().mark(function r(t){var m;return l()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(m=t.userId,!m){c.next=5;break}return c.next=4,Ie({userId:m});case 4:L();case 5:case"end":return c.stop()}},r)}));return function(r){return d.apply(this,arguments)}}(),children:(0,e.jsx)(I.Z.Item,{label:"userId",name:"userId",children:(0,e.jsx)(Ze.Z,{style:{width:200}})})})})]})},Je=Xe,Qe=["scheduleTime"],qe=function(){var x=(0,g.useState)([]),Z=p()(x,2),j=Z[0],F=Z[1],z=(0,g.useState)([]),W=p()(z,2),Y=W[0],_=W[1],X=(0,g.useState)([]),K=p()(X,2),N=K[0],V=K[1],J=(0,g.useState)(!1),w=p()(J,2),U=w[0],L=w[1],Q=(0,g.useState)(!1),d=p()(Q,2),r=d[0],t=d[1],m=I.Z.useForm(),u=p()(m,1),c=u[0],S=I.Z.useForm(),v=p()(S,1),ee=v[0],C=function(){var f=s()(l()().mark(function a(){var o;return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,y.hy)();case 2:o=i.sent,o.data&&_(o.data);case 4:case"end":return i.stop()}},a)}));return function(){return f.apply(this,arguments)}}(),ce=function(){var f=s()(l()().mark(function a(o){return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(o){i.next=2;break}return i.abrupt("return");case 2:return i.next=4,(0,y.o9)({deviceId:o});case 4:C();case 5:case"end":return i.stop()}},a)}));return function(o){return f.apply(this,arguments)}}(),en=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",ellipsis:!0,filterDropdown:function(a){var o=a.setSelectedKeys,E=a.selectedKeys,i=a.confirm,H=a.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)($.Z,{placeholder:"\u641C\u7D22\u8BBE\u5907",value:E[0],onChange:function(b){return o(b.target.value?[b.target.value]:[])},onPressEnter:function(){return i()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(le.Z,{children:[(0,e.jsx)(M.ZP,{onClick:function(){return i()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(M.ZP,{onClick:function(){return H&&H()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(a,o){return typeof a=="string"&&typeof(o==null?void 0:o.deviceId)=="string"?o.deviceId.includes(a):!1},filterIcon:function(a){return(0,e.jsx)(ie,{style:{color:a?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(a){var o=(0,A.FG)(),E=o.find(function(i){return i.value===a});return E?E.label:a}},{title:"\u64CD\u4F5C",dataIndex:"operate",render:function(a,o){return(0,e.jsx)(Me.Z,{title:"\u786E\u8BA4\u5220\u9664\u5417",content:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsxs)("p",{children:["\u5220\u9664\u4E4B\u540Eecpm\u4F1A\u964D\u4F4E",(0,e.jsx)("br",{}),"\u4E5F\u4F1A\u5F71\u54CD\u5237\u6570\u636E\u53EF\u4F7F\u7528\u7684\u8BBE\u5907"]}),(0,e.jsx)("a",{onClick:function(){return ce(o.deviceId)},children:"\u786E\u5B9A"})]}),children:(0,e.jsx)("a",{children:"\u5220\u9664"})})}}],nn=function(a){var o=j.find(function(E){return E.id===a});return o?o.name:""},rn=function(a){return a?parseFloat((a/1e5).toFixed(2)):0},tn=[{title:"\u5E94\u7528",dataIndex:"appId",render:function(a){return(0,e.jsx)(pe.Z,{color:"blue",children:nn(a)},a)}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(a){var o=(0,A.FG)(),E=o.find(function(i){return i.value===a});return E?E.label:a}},{title:"\u76EE\u6807\u91D1\u989D",dataIndex:"incomeYuan"},{title:"\u5DF2\u5237\u91D1\u989D",dataIndex:"mockIncome",render:function(a){return rn(a)}},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"scheduleTime",render:function(a){return me()(a).format("YYYY-MM-DD HH:mm")}},{title:"\u72B6\u6001",dataIndex:"status",render:function(a){switch(a){case 0:return"\u672A\u5F00\u59CB";case 1:return"\u8FDB\u884C\u4E2D";case 2:return"\u5DF2\u5B8C\u6210"}return a}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createdAt",render:function(a){return me()(a).format("YYYY-MM-DD HH:mm")}},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updatedAt",render:function(a){return me()(a).format("YYYY-MM-DD HH:mm")}}],Fe=function(){var f=s()(l()().mark(function a(){var o;return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,y.mW)();case 2:o=i.sent,o.data&&V(o.data);case 4:case"end":return i.stop()}},a)}));return function(){return f.apply(this,arguments)}}(),an=function(){var f=s()(l()().mark(function a(){var o;return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,y.ln)();case 2:o=i.sent,o.data&&F(o.data);case 4:case"end":return i.stop()}},a)}));return function(){return f.apply(this,arguments)}}();(0,g.useEffect)(function(){an(),C(),Fe()},[]);var un=function(){var f=s()(l()().mark(function a(o){var E,i,H;return l()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return E=o.scheduleTime,i=O()(o,Qe),H=E.map(function(Ae){return me()(Ae.time).valueOf()}),b.prev=2,b.next=5,(0,y.tI)(D()({scheduleTime:H},i));case 5:b.next=10;break;case 7:return b.prev=7,b.t0=b.catch(2),b.abrupt("return");case 10:ne.ZP.success("\u4EFB\u52A1\u63D0\u4EA4\u6210\u529F"),Fe(),t(!1);case 13:case"end":return b.stop()}},a,null,[[2,7]])}));return function(o){return f.apply(this,arguments)}}(),sn=function(){c.resetFields(),L(!0)},ln=function(){ee.resetFields(),t(!0)},on=function(){c.submit()},cn=function(){L(!1)},dn=function(){ee.submit()},fn=function(){t(!1)},mn=function(){var f=s()(l()().mark(function a(o){return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,(0,y.gz)({deviceId:o.deviceId||"",channel:o.channel||""});case 3:i.next=8;break;case 5:return i.prev=5,i.t0=i.catch(0),i.abrupt("return");case 8:L(!1),C();case 10:case"end":return i.stop()}},a,null,[[0,5]])}));return function(o){return f.apply(this,arguments)}}();return(0,e.jsx)(be._z,{children:(0,e.jsxs)(Oe.Z,{defaultActiveKey:"1",onChange:function(a){a==="1"?C():a==="2"&&Fe()},centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,e.jsx)(oe.Z,{tab:"\u8BBE\u5907\u767D\u540D\u5355",children:(0,e.jsxs)("div",{children:[(0,e.jsx)(M.ZP,{onClick:sn,children:"\u6DFB\u52A0\u767D\u540D\u5355"}),(0,e.jsx)(Ce.Z,{columns:en,dataSource:Y}),(0,e.jsx)(fe.Z,{title:"\u6DFB\u52A0\u767D\u540D\u5355",visible:U,onOk:on,onCancel:cn,children:(0,e.jsxs)(I.Z,{form:c,onFinish:mn,children:[(0,e.jsx)(I.Z.Item,{name:"deviceId",label:"\u8BBE\u5907id",children:(0,e.jsx)($.Z,{})}),(0,e.jsx)(I.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,e.jsx)(xe.Z,{options:(0,A.FG)()})})]})})]})},"1"),(0,e.jsx)(oe.Z,{tab:"\u5237\u6570\u636E",children:(0,e.jsxs)("div",{children:[(0,e.jsx)(M.ZP,{onClick:ln,children:"\u6DFB\u52A0\u4EFB\u52A1"}),(0,e.jsx)(Ce.Z,{columns:tn,dataSource:N}),(0,e.jsx)(fe.Z,{title:"\u6DFB\u52A0\u4EFB\u52A1",visible:r,onOk:dn,onCancel:fn,children:(0,e.jsxs)(I.Z,{labelCol:{span:6},wrapperCol:{span:18},form:ee,onFinish:un,children:[(0,e.jsx)(I.Z.Item,{label:"\u5E94\u7528",name:"appId",children:(0,e.jsx)(xe.Z,{mode:"multiple",options:j.map(function(f){return{label:f.name,value:f.id}})})}),(0,e.jsx)(I.Z.Item,{name:"incomeYuan",label:"\u91D1\u989D\uFF08\u5143\uFF09",children:(0,e.jsx)($.Z,{})}),(0,e.jsx)(I.Z.List,{name:"scheduleTime",children:function(a,o){var E=o.add,i=o.remove;return(0,e.jsxs)(e.Fragment,{children:[a.map(function(H){var re=H.key,b=H.name;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(Be.Z,{align:"stretch",gutter:16,children:[(0,e.jsx)(Se.Z,{span:18,children:(0,e.jsx)(I.Z.Item,{labelCol:{xs:{span:24},sm:{span:8}},name:[b,"time"],label:"\u5F00\u59CB\u65F6\u95F4",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}],children:(0,e.jsx)(ke.default,{format:"YYYY-MM-DD HH:mm",showTime:{format:"HH:mm"}})})}),(0,e.jsx)(Se.Z,{children:(0,e.jsx)(Pe.Z,{onClick:function(){return i(b)}})})]},re)})}),(0,e.jsx)(I.Z.Item,{children:(0,e.jsx)(M.ZP,{type:"dashed",onClick:function(){return E()},block:!0,children:"\u6DFB\u52A0\u5F00\u59CB\u65F6\u95F4"})})]})}})]})})]})},"2"),(0,e.jsx)(oe.Z,{tab:"\u4E0A\u4F20\u8D44\u6E90",children:(0,e.jsx)($e,{})},"3"),(0,e.jsx)(oe.Z,{tab:"\u975E\u6CD5\u5E94\u7528",children:(0,e.jsx)(Ge,{})},"4"),(0,e.jsx)(oe.Z,{tab:"\u7528\u6237\u767D\u540D\u5355",children:(0,e.jsx)(Je,{})},"5")]})})},_e=qe},38171:function(te,k,n){var T=n(55241),D=n(2487),R=n(71230),O=n(7134),q=n(67294),l=n(52043),B=n(58125),s=n(85893),h=function(y){var A=(0,l.E7)(y.data.env);return(0,s.jsx)(T.Z,{content:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,B.P)(y.data.income),"\u5143"]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,B.D)(y.data.realMoney),"\u5143"]}),A.length>0&&(0,s.jsx)(D.Z,{size:"small",header:(0,s.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:A,renderItem:function(g){return(0,s.jsx)(D.Z.Item,{children:g})}})]}),children:(0,s.jsxs)(R.Z,{children:[(0,s.jsx)(O.C,{src:y.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,s.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:A.length>0?"red":""},children:["id:",y.data.id,(0,s.jsx)("br",{}),y.data.nickname||y.data.mobile]})]})})};k.Z=h},52043:function(te,k,n){n.d(k,{E7:function(){return D},FG:function(){return T},aV:function(){return l}});var T=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},D=function(s){var h=[];if(!s)return h;for(var p=s>>1,y=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],A=0,G=y;A>=1}return h},R=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},O=function(s){var h=new Date(s),p=h.getFullYear().toString().padStart(4,"0"),y=(h.getMonth()+1).toString().padStart(2,"0"),A=h.getDate().toString().padStart(2,"0");return p+y+A},q=function(s,h){var p=s.toString();return p.padStart(h,"0")},l=function(s){var h=s;return h<1024?h+" B":(h=parseFloat((h/1024).toFixed(2)),h<1024?h+" KB":(h=parseFloat((h/1024).toFixed(2)),h+" MB"))}},32400:function(te,k,n){n.d(k,{p:function(){return B}});var T=n(15009),D=n.n(T),R=n(99289),O=n.n(R),q=n(8322),l=n.n(q);function B(h){return s.apply(this,arguments)}function s(){return s=O()(D()().mark(function h(p){return D()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.abrupt("return",new Promise(function(G,g){var de=new(l()).ArrayBuffer,ae=new FileReader;ae.onload=function(ue){var se;de.append((se=ue.target)===null||se===void 0?void 0:se.result),G(de.end())},ae.onerror=function(ue){g(ue)},ae.readAsArrayBuffer(p)}));case 1:case"end":return A.stop()}},h)})),s.apply(this,arguments)}},58125:function(te,k,n){n.d(k,{D:function(){return D},P:function(){return T}});var T=function(O){return O?parseFloat((O/1e5).toFixed(2)):0},D=function(O){return O?parseFloat((O/100).toFixed(2)):0}}}]); diff --git a/dist/p__UserManagement.656d1839.async.js b/dist/p__UserManagement.656d1839.async.js new file mode 100644 index 0000000..9f8d893 --- /dev/null +++ b/dist/p__UserManagement.656d1839.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{38171:function(X,$,t){var d=t(55241),h=t(2487),M=t(71230),v=t(7134),R=t(67294),b=t(52043),u=t(85893),E=function(f){var p=(0,b.E7)(f.data.env);return(0,u.jsx)(d.Z,{content:(0,u.jsx)(u.Fragment,{children:p.length>0&&(0,u.jsx)(h.Z,{size:"small",header:(0,u.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:p,renderItem:function(P){return(0,u.jsx)(h.Z.Item,{children:P})}})}),children:(0,u.jsxs)(M.Z,{children:[(0,u.jsx)(v.C,{src:f.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,u.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:p.length>0?"red":""},children:["id:",f.data.id,(0,u.jsx)("br",{}),f.data.nickname||f.data.mobile]})]})})};$.Z=E},47989:function(X,$,t){t.r($);var d=t(97857),h=t.n(d),M=t(15009),v=t.n(M),R=t(99289),b=t.n(R),u=t(81072),E=t(90930),s=t(67539),f=t(35312),p=t(66309),T=t(86250),P=t(86738),C=t(67294),I=t(38171),_=t(85893),W=function(){var J=(0,f.useParams)(),Q=J.code,V=(0,C.useRef)();(0,C.useEffect)(function(){var B;(B=V.current)===null||B===void 0||B.reload()},[Q]);var Y=[{title:"\u7528\u6237id",dataIndex:"userId",valueType:"textarea",hideInTable:!0},{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"nickname",valueType:"textarea",renderText:function(D,K){return(0,_.jsx)(I.Z,{data:K})}},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",hideInSearch:!0,renderText:function(D){return D?(0,_.jsx)(p.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,_.jsx)(p.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange",hideInSearch:!0},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(D){return(0,_.jsx)(T.Z,{gap:"small",wrap:!0,children:(0,_.jsxs)(_.Fragment,{children:[D.status===0&&(0,_.jsx)(P.Z,{title:"\u5C01\u7981\u7528\u6237",description:"\u5C01\u7981\u540E\u7528\u6237\u5C06\u65E0\u6CD5\u767B\u5F55\u3001\u65E0\u6CD5\u83B7\u53D6\u6536\u76CA",onConfirm:b()(v()().mark(function K(){var x;return v()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,u.wv)({userId:D.id||0,status:-1});case 2:(x=V.current)===null||x===void 0||x.reload();case 3:case"end":return r.stop()}},K)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,_.jsx)("a",{children:"\u5C01\u7981"})}),D.status===-1&&(0,_.jsx)(P.Z,{title:"\u89E3\u5C01\u7528\u6237",description:"\u89E3\u5C01\u540E\u7528\u6237\u53EF\u4EE5\u6B63\u5E38\u767B\u5F55\u3001\u83B7\u53D6\u6536\u76CA",onConfirm:b()(v()().mark(function K(){var x;return v()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,u.wv)({userId:D.id||0,status:0});case 2:(x=V.current)===null||x===void 0||x.reload();case 3:case"end":return r.stop()}},K)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,_.jsx)("a",{children:"\u89E3\u5C01"})})]})})}}];return(0,_.jsx)(E._z,{children:(0,_.jsx)(s.Z,{actionRef:V,request:function(){var B=b()(v()().mark(function D(K){var x,n,r;return v()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,u.pb)(h()(h()({},K),{},{appCode:Q}));case 2:return r=a.sent,a.abrupt("return",{data:(x=r.data)===null||x===void 0?void 0:x.data,total:(n=r.data)===null||n===void 0?void 0:n.total,success:!0});case 4:case"end":return a.stop()}},D)}));return function(D){return B.apply(this,arguments)}}(),columns:Y})})};$.default=W},81072:function(X,$,t){t.d($,{fn:function(){return T},pb:function(){return f},wv:function(){return E}});var d=t(15009),h=t.n(d),M=t(97857),v=t.n(M),R=t(99289),b=t.n(R),u=t(35312);function E(C,I){return s.apply(this,arguments)}function s(){return s=b()(h()().mark(function C(I,_){return h()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,u.request)("/api/admin/user/changeStatus",v()({method:"POST",params:v()({},I)},_||{})));case 1:case"end":return g.stop()}},C)})),s.apply(this,arguments)}function f(C,I){return p.apply(this,arguments)}function p(){return p=b()(h()().mark(function C(I,_){return h()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,u.request)("/api/admin/user/list",v()({method:"POST",headers:{"Content-Type":"application/json"},data:I},_||{})));case 1:case"end":return g.stop()}},C)})),p.apply(this,arguments)}function T(C,I){return P.apply(this,arguments)}function P(){return P=b()(h()().mark(function C(I,_){return h()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,u.request)("/api/admin/user/queryById",v()({method:"GET",params:v()({},I)},_||{})));case 1:case"end":return g.stop()}},C)})),P.apply(this,arguments)}},52043:function(X,$,t){t.d($,{E7:function(){return h},FG:function(){return d},aV:function(){return b}});var d=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},h=function(E){var s=[];if(!E)return s;for(var f=E>>1,p=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],T=0,P=p;T>=1}return s},M=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},v=function(E){var s=new Date(E),f=s.getFullYear().toString().padStart(4,"0"),p=(s.getMonth()+1).toString().padStart(2,"0"),T=s.getDate().toString().padStart(2,"0");return f+p+T},R=function(E,s){var f=E.toString();return f.padStart(s,"0")},b=function(E){var s=E;return s<1024?s+" B":(s=parseFloat((s/1024).toFixed(2)),s<1024?s+" KB":(s=parseFloat((s/1024).toFixed(2)),s+" MB"))}},86250:function(X,$,t){t.d($,{Z:function(){return x}});var d=t(67294),h=t(93967),M=t.n(h),v=t(98423),R=t(98065),b=t(53124),u=t(91945),E=t(45503);const s=["wrap","nowrap","wrap-reverse"],f=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],p=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],T=(n,r)=>{const i=r.wrap===!0?"wrap":r.wrap;return{[`${n}-wrap-${i}`]:i&&s.includes(i)}},P=(n,r)=>{const i={};return p.forEach(a=>{i[`${n}-align-${a}`]=r.align===a}),i[`${n}-align-stretch`]=!r.align&&!!r.vertical,i},C=(n,r)=>{const i={};return f.forEach(a=>{i[`${n}-justify-${a}`]=r.justify===a}),i};function I(n,r){return M()(Object.assign(Object.assign(Object.assign({},T(n,r)),P(n,r)),C(n,r)))}var _=I;const W=n=>{const{componentCls:r}=n;return{[r]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},g=n=>{const{componentCls:r}=n;return{[r]:{"&-gap-small":{gap:n.flexGapSM},"&-gap-middle":{gap:n.flexGap},"&-gap-large":{gap:n.flexGapLG}}}},J=n=>{const{componentCls:r}=n,i={};return s.forEach(a=>{i[`${r}-wrap-${a}`]={flexWrap:a}}),i},Q=n=>{const{componentCls:r}=n,i={};return p.forEach(a=>{i[`${r}-align-${a}`]={alignItems:a}}),i},V=n=>{const{componentCls:r}=n,i={};return f.forEach(a=>{i[`${r}-justify-${a}`]={justifyContent:a}}),i},Y=()=>({});var B=(0,u.I$)("Flex",n=>{const{paddingXS:r,padding:i,paddingLG:a}=n,j=(0,E.TS)(n,{flexGapSM:r,flexGap:i,flexGapLG:a});return[W(j),g(j),J(j),Q(j),V(j)]},Y,{resetStyle:!1}),D=function(n,r){var i={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&r.indexOf(a)<0&&(i[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,a=Object.getOwnPropertySymbols(n);j{const{prefixCls:i,rootClassName:a,className:j,style:e,flex:c,gap:m,children:l,vertical:o=!1,component:U="div"}=n,y=D(n,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:O,direction:F,getPrefixCls:z}=d.useContext(b.E_),S=z("flex",i),[Z,N,k]=B(S),q=o!=null?o:O==null?void 0:O.vertical,A=M()(j,a,O==null?void 0:O.className,S,N,k,_(S,n),{[`${S}-rtl`]:F==="rtl",[`${S}-gap-${m}`]:(0,R.n)(m),[`${S}-vertical`]:q}),G=Object.assign(Object.assign({},O==null?void 0:O.style),e);return c&&(G.flex=c),m&&!(0,R.n)(m)&&(G.gap=m),Z(d.createElement(U,Object.assign({ref:r,className:A,style:G},(0,v.Z)(y,["justify","wrap","align"])),l))})},66309:function(X,$,t){t.d($,{Z:function(){return j}});var d=t(67294),h=t(93967),M=t.n(h),v=t(98423),R=t(98787),b=t(69760),u=t(96159),E=t(45353),s=t(53124),f=t(54548),p=t(10274),T=t(14747),P=t(45503),C=t(91945);const I=e=>{const{paddingXXS:c,lineWidth:m,tagPaddingHorizontal:l,componentCls:o,calc:U}=e,y=U(l).sub(m).equal(),O=U(c).sub(m).equal();return{[o]:Object.assign(Object.assign({},(0,T.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:y,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,f.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:O,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:y}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},_=e=>{const{lineWidth:c,fontSizeIcon:m,calc:l}=e,o=e.fontSizeSM;return(0,P.TS)(e,{tagFontSize:o,tagLineHeight:(0,f.bf)(l(e.lineHeightSM).mul(o).equal()),tagIconSize:l(m).sub(l(c).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},W=e=>({defaultBg:new p.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var g=(0,C.I$)("Tag",e=>{const c=_(e);return I(c)},W),J=function(e,c){var m={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&c.indexOf(l)<0&&(m[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o{const{prefixCls:m,style:l,className:o,checked:U,onChange:y,onClick:O}=e,F=J(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:z,tag:S}=d.useContext(s.E_),Z=ee=>{y==null||y(!U),O==null||O(ee)},N=z("tag",m),[k,q,A]=g(N),G=M()(N,`${N}-checkable`,{[`${N}-checkable-checked`]:U},S==null?void 0:S.className,o,q,A);return k(d.createElement("span",Object.assign({},F,{ref:c,style:Object.assign(Object.assign({},l),S==null?void 0:S.style),className:G,onClick:Z})))}),Y=t(98719);const B=e=>(0,Y.Z)(e,(c,m)=>{let{textColor:l,lightBorderColor:o,lightColor:U,darkColor:y}=m;return{[`${e.componentCls}${e.componentCls}-${c}`]:{color:l,background:U,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:y,borderColor:y},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var D=(0,C.bk)(["Tag","preset"],e=>{const c=_(e);return B(c)},W);function K(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const x=(e,c,m)=>{const l=K(m);return{[`${e.componentCls}${e.componentCls}-${c}`]:{color:e[`color${m}`],background:e[`color${l}Bg`],borderColor:e[`color${l}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var n=(0,C.bk)(["Tag","status"],e=>{const c=_(e);return[x(c,"success","Success"),x(c,"processing","Info"),x(c,"error","Error"),x(c,"warning","Warning")]},W),r=function(e,c){var m={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&c.indexOf(l)<0&&(m[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o{const{prefixCls:m,className:l,rootClassName:o,style:U,children:y,icon:O,color:F,onClose:z,bordered:S=!0,visible:Z}=e,N=r(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:k,direction:q,tag:A}=d.useContext(s.E_),[G,ee]=d.useState(!0),ie=(0,v.Z)(N,["closeIcon","closable"]);d.useEffect(()=>{Z!==void 0&&ee(Z)},[Z]);const re=(0,R.o2)(F),ae=(0,R.yT)(F),te=re||ae,ue=Object.assign(Object.assign({backgroundColor:F&&!te?F:void 0},A==null?void 0:A.style),U),L=k("tag",m),[de,me,_e]=g(L),fe=M()(L,A==null?void 0:A.className,{[`${L}-${F}`]:te,[`${L}-has-color`]:F&&!te,[`${L}-hidden`]:!G,[`${L}-rtl`]:q==="rtl",[`${L}-borderless`]:!S},l,o,me,_e),le=H=>{H.stopPropagation(),z==null||z(H),!H.defaultPrevented&&ee(!1)},[,ge]=(0,b.Z)((0,b.w)(e),(0,b.w)(A),{closable:!1,closeIconRender:H=>{const Ce=d.createElement("span",{className:`${L}-close-icon`,onClick:le},H);return(0,u.wm)(H,Ce,w=>({onClick:ce=>{var ne;(ne=w==null?void 0:w.onClick)===null||ne===void 0||ne.call(w,ce),le(ce)},className:M()(w==null?void 0:w.className,`${L}-close-icon`)}))}}),ve=typeof N.onClick=="function"||y&&y.type==="a",oe=O||null,pe=oe?d.createElement(d.Fragment,null,oe,y&&d.createElement("span",null,y)):y,se=d.createElement("span",Object.assign({},ie,{ref:c,className:fe,style:ue}),pe,ge,re&&d.createElement(D,{key:"preset",prefixCls:L}),ae&&d.createElement(n,{key:"status",prefixCls:L}));return de(ve?d.createElement(E.Z,{component:"Tag"},se):se)});a.CheckableTag=V;var j=a}}]); diff --git a/dist/p__UserManagement.7a38d351.async.js b/dist/p__UserManagement.7a38d351.async.js deleted file mode 100644 index 9ca6416..0000000 --- a/dist/p__UserManagement.7a38d351.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{38171:function(H,S,t){var u=t(55241),p=t(2487),I=t(71230),_=t(7134),R=t(67294),x=t(52043),C=t(58125),i=t(85893),o=function(g){var y=(0,x.E7)(g.data.env);return(0,i.jsx)(u.Z,{content:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{children:[(0,i.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,C.P)(g.data.income),"\u5143"]}),(0,i.jsxs)("p",{children:[(0,i.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,C.D)(g.data.realMoney),"\u5143"]}),y.length>0&&(0,i.jsx)(p.Z,{size:"small",header:(0,i.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:y,renderItem:function(v){return(0,i.jsx)(p.Z.Item,{children:v})}})]}),children:(0,i.jsxs)(I.Z,{children:[(0,i.jsx)(_.C,{src:g.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,i.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:y.length>0?"red":""},children:["id:",g.data.id,(0,i.jsx)("br",{}),g.data.nickname||g.data.mobile]})]})})};S.Z=o},47989:function(H,S,t){t.r(S);var u=t(97857),p=t.n(u),I=t(15009),_=t.n(I),R=t(99289),x=t.n(R),C=t(81072),i=t(90930),o=t(67539),b=t(35312),g=t(66309),y=t(86250),D=t(86738),v=t(67294),M=t(38171),f=t(85893),W=function(){var Y=(0,b.useParams)(),J=Y.code,V=(0,v.useRef)();(0,v.useEffect)(function(){var $;($=V.current)===null||$===void 0||$.reload()},[J]);var Q=[{title:"\u7528\u6237id",dataIndex:"userId",valueType:"textarea",hideInTable:!0},{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"nickname",valueType:"textarea",renderText:function(B,F){return(0,f.jsx)(M.Z,{data:F})}},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",hideInSearch:!0,renderText:function(B){return B?(0,f.jsx)(g.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,f.jsx)(g.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange",hideInSearch:!0},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(B){return(0,f.jsx)(y.Z,{gap:"small",wrap:!0,children:(0,f.jsxs)(f.Fragment,{children:[B.status===0&&(0,f.jsx)(D.Z,{title:"\u5C01\u7981\u7528\u6237",description:"\u5C01\u7981\u540E\u7528\u6237\u5C06\u65E0\u6CD5\u767B\u5F55\u3001\u65E0\u6CD5\u83B7\u53D6\u6536\u76CA",onConfirm:x()(_()().mark(function F(){var E;return _()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,C.wv)({userId:B.id||0,status:-1});case 2:(E=V.current)===null||E===void 0||E.reload();case 3:case"end":return r.stop()}},F)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,f.jsx)("a",{children:"\u5C01\u7981"})}),B.status===-1&&(0,f.jsx)(D.Z,{title:"\u89E3\u5C01\u7528\u6237",description:"\u89E3\u5C01\u540E\u7528\u6237\u53EF\u4EE5\u6B63\u5E38\u767B\u5F55\u3001\u83B7\u53D6\u6536\u76CA",onConfirm:x()(_()().mark(function F(){var E;return _()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,C.wv)({userId:B.id||0,status:0});case 2:(E=V.current)===null||E===void 0||E.reload();case 3:case"end":return r.stop()}},F)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,f.jsx)("a",{children:"\u89E3\u5C01"})})]})})}}];return(0,f.jsx)(i._z,{children:(0,f.jsx)(o.Z,{actionRef:V,request:function(){var $=x()(_()().mark(function B(F){var E,n,r;return _()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,C.pb)(p()(p()({},F),{},{appCode:J}));case 2:return r=a.sent,a.abrupt("return",{data:(E=r.data)===null||E===void 0?void 0:E.data,total:(n=r.data)===null||n===void 0?void 0:n.total,success:!0});case 4:case"end":return a.stop()}},B)}));return function(B){return $.apply(this,arguments)}}(),columns:Q})})};S.default=W},81072:function(H,S,t){t.d(S,{fn:function(){return y},pb:function(){return b},wv:function(){return i}});var u=t(15009),p=t.n(u),I=t(97857),_=t.n(I),R=t(99289),x=t.n(R),C=t(35312);function i(v,M){return o.apply(this,arguments)}function o(){return o=x()(p()().mark(function v(M,f){return p()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,C.request)("/api/admin/user/changeStatus",_()({method:"POST",params:_()({},M)},f||{})));case 1:case"end":return h.stop()}},v)})),o.apply(this,arguments)}function b(v,M){return g.apply(this,arguments)}function g(){return g=x()(p()().mark(function v(M,f){return p()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,C.request)("/api/admin/user/list",_()({method:"POST",headers:{"Content-Type":"application/json"},data:M},f||{})));case 1:case"end":return h.stop()}},v)})),g.apply(this,arguments)}function y(v,M){return D.apply(this,arguments)}function D(){return D=x()(p()().mark(function v(M,f){return p()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,C.request)("/api/admin/user/queryById",_()({method:"GET",params:_()({},M)},f||{})));case 1:case"end":return h.stop()}},v)})),D.apply(this,arguments)}},52043:function(H,S,t){t.d(S,{E7:function(){return p},FG:function(){return u},aV:function(){return x}});var u=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},p=function(i){var o=[];if(!i)return o;for(var b=i>>1,g=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],y=0,D=g;y>=1}return o},I=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},_=function(i){var o=new Date(i),b=o.getFullYear().toString().padStart(4,"0"),g=(o.getMonth()+1).toString().padStart(2,"0"),y=o.getDate().toString().padStart(2,"0");return b+g+y},R=function(i,o){var b=i.toString();return b.padStart(o,"0")},x=function(i){var o=i;return o<1024?o+" B":(o=parseFloat((o/1024).toFixed(2)),o<1024?o+" KB":(o=parseFloat((o/1024).toFixed(2)),o+" MB"))}},58125:function(H,S,t){t.d(S,{D:function(){return p},P:function(){return u}});var u=function(_){return _?parseFloat((_/1e5).toFixed(2)):0},p=function(_){return _?parseFloat((_/100).toFixed(2)):0}},86250:function(H,S,t){t.d(S,{Z:function(){return E}});var u=t(67294),p=t(93967),I=t.n(p),_=t(98423),R=t(98065),x=t(53124),C=t(91945),i=t(45503);const o=["wrap","nowrap","wrap-reverse"],b=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],g=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],y=(n,r)=>{const d=r.wrap===!0?"wrap":r.wrap;return{[`${n}-wrap-${d}`]:d&&o.includes(d)}},D=(n,r)=>{const d={};return g.forEach(a=>{d[`${n}-align-${a}`]=r.align===a}),d[`${n}-align-stretch`]=!r.align&&!!r.vertical,d},v=(n,r)=>{const d={};return b.forEach(a=>{d[`${n}-justify-${a}`]=r.justify===a}),d};function M(n,r){return I()(Object.assign(Object.assign(Object.assign({},y(n,r)),D(n,r)),v(n,r)))}var f=M;const W=n=>{const{componentCls:r}=n;return{[r]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},h=n=>{const{componentCls:r}=n;return{[r]:{"&-gap-small":{gap:n.flexGapSM},"&-gap-middle":{gap:n.flexGap},"&-gap-large":{gap:n.flexGapLG}}}},Y=n=>{const{componentCls:r}=n,d={};return o.forEach(a=>{d[`${r}-wrap-${a}`]={flexWrap:a}}),d},J=n=>{const{componentCls:r}=n,d={};return g.forEach(a=>{d[`${r}-align-${a}`]={alignItems:a}}),d},V=n=>{const{componentCls:r}=n,d={};return b.forEach(a=>{d[`${r}-justify-${a}`]={justifyContent:a}}),d},Q=()=>({});var $=(0,C.I$)("Flex",n=>{const{paddingXS:r,padding:d,paddingLG:a}=n,P=(0,i.TS)(n,{flexGapSM:r,flexGap:d,flexGapLG:a});return[W(P),h(P),Y(P),J(P),V(P)]},Q,{resetStyle:!1}),B=function(n,r){var d={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&r.indexOf(a)<0&&(d[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,a=Object.getOwnPropertySymbols(n);P{const{prefixCls:d,rootClassName:a,className:P,style:e,flex:c,gap:m,children:l,vertical:s=!1,component:U="div"}=n,O=B(n,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:j,direction:K,getPrefixCls:z}=u.useContext(x.E_),T=z("flex",d),[Z,N,k]=$(T),q=s!=null?s:j==null?void 0:j.vertical,A=I()(P,a,j==null?void 0:j.className,T,N,k,f(T,n),{[`${T}-rtl`]:K==="rtl",[`${T}-gap-${m}`]:(0,R.n)(m),[`${T}-vertical`]:q}),G=Object.assign(Object.assign({},j==null?void 0:j.style),e);return c&&(G.flex=c),m&&!(0,R.n)(m)&&(G.gap=m),Z(u.createElement(U,Object.assign({ref:r,className:A,style:G},(0,_.Z)(O,["justify","wrap","align"])),l))})},66309:function(H,S,t){t.d(S,{Z:function(){return P}});var u=t(67294),p=t(93967),I=t.n(p),_=t(98423),R=t(98787),x=t(69760),C=t(96159),i=t(45353),o=t(53124),b=t(54548),g=t(10274),y=t(14747),D=t(45503),v=t(91945);const M=e=>{const{paddingXXS:c,lineWidth:m,tagPaddingHorizontal:l,componentCls:s,calc:U}=e,O=U(l).sub(m).equal(),j=U(c).sub(m).equal();return{[s]:Object.assign(Object.assign({},(0,y.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:O,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,b.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${s}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${s}-close-icon`]:{marginInlineStart:j,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${s}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${s}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:O}}),[`${s}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},f=e=>{const{lineWidth:c,fontSizeIcon:m,calc:l}=e,s=e.fontSizeSM;return(0,D.TS)(e,{tagFontSize:s,tagLineHeight:(0,b.bf)(l(e.lineHeightSM).mul(s).equal()),tagIconSize:l(m).sub(l(c).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},W=e=>({defaultBg:new g.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var h=(0,v.I$)("Tag",e=>{const c=f(e);return M(c)},W),Y=function(e,c){var m={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&c.indexOf(l)<0&&(m[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,l=Object.getOwnPropertySymbols(e);s{const{prefixCls:m,style:l,className:s,checked:U,onChange:O,onClick:j}=e,K=Y(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:z,tag:T}=u.useContext(o.E_),Z=ee=>{O==null||O(!U),j==null||j(ee)},N=z("tag",m),[k,q,A]=h(N),G=I()(N,`${N}-checkable`,{[`${N}-checkable-checked`]:U},T==null?void 0:T.className,s,q,A);return k(u.createElement("span",Object.assign({},K,{ref:c,style:Object.assign(Object.assign({},l),T==null?void 0:T.style),className:G,onClick:Z})))}),Q=t(98719);const $=e=>(0,Q.Z)(e,(c,m)=>{let{textColor:l,lightBorderColor:s,lightColor:U,darkColor:O}=m;return{[`${e.componentCls}${e.componentCls}-${c}`]:{color:l,background:U,borderColor:s,"&-inverse":{color:e.colorTextLightSolid,background:O,borderColor:O},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var B=(0,v.bk)(["Tag","preset"],e=>{const c=f(e);return $(c)},W);function F(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const E=(e,c,m)=>{const l=F(m);return{[`${e.componentCls}${e.componentCls}-${c}`]:{color:e[`color${m}`],background:e[`color${l}Bg`],borderColor:e[`color${l}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var n=(0,v.bk)(["Tag","status"],e=>{const c=f(e);return[E(c,"success","Success"),E(c,"processing","Info"),E(c,"error","Error"),E(c,"warning","Warning")]},W),r=function(e,c){var m={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&c.indexOf(l)<0&&(m[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,l=Object.getOwnPropertySymbols(e);s{const{prefixCls:m,className:l,rootClassName:s,style:U,children:O,icon:j,color:K,onClose:z,bordered:T=!0,visible:Z}=e,N=r(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:k,direction:q,tag:A}=u.useContext(o.E_),[G,ee]=u.useState(!0),ce=(0,_.Z)(N,["closeIcon","closable"]);u.useEffect(()=>{Z!==void 0&&ee(Z)},[Z]);const re=(0,R.o2)(K),ae=(0,R.yT)(K),te=re||ae,ue=Object.assign(Object.assign({backgroundColor:K&&!te?K:void 0},A==null?void 0:A.style),U),L=k("tag",m),[de,me,_e]=h(L),fe=I()(L,A==null?void 0:A.className,{[`${L}-${K}`]:te,[`${L}-has-color`]:K&&!te,[`${L}-hidden`]:!G,[`${L}-rtl`]:q==="rtl",[`${L}-borderless`]:!T},l,s,me,_e),le=X=>{X.stopPropagation(),z==null||z(X),!X.defaultPrevented&&ee(!1)},[,ge]=(0,x.Z)((0,x.w)(e),(0,x.w)(A),{closable:!1,closeIconRender:X=>{const Ce=u.createElement("span",{className:`${L}-close-icon`,onClick:le},X);return(0,C.wm)(X,Ce,w=>({onClick:ie=>{var ne;(ne=w==null?void 0:w.onClick)===null||ne===void 0||ne.call(w,ie),le(ie)},className:I()(w==null?void 0:w.className,`${L}-close-icon`)}))}}),ve=typeof N.onClick=="function"||O&&O.type==="a",oe=j||null,pe=oe?u.createElement(u.Fragment,null,oe,O&&u.createElement("span",null,O)):O,se=u.createElement("span",Object.assign({},ce,{ref:c,className:fe,style:ue}),pe,ge,re&&u.createElement(B,{key:"preset",prefixCls:L}),ae&&u.createElement(n,{key:"status",prefixCls:L}));return de(ve?u.createElement(i.Z,{component:"Tag"},se):se)});a.CheckableTag=V;var P=a}}]); diff --git a/dist/umi.613afa6c.js b/dist/umi.c2ba8e98.js similarity index 99% rename from dist/umi.613afa6c.js rename to dist/umi.c2ba8e98.js index b12111a..a9e7272 100644 --- a/dist/umi.613afa6c.js +++ b/dist/umi.c2ba8e98.js @@ -419,8 +419,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},51064:function(v,g,e){"use strict";var t=e(76058),r=e(36812),o=e(75773),a=e(23622),s=e(49385),c=e(8758),u=e(38055),l=e(33457),f=e(13841),p=e(62570),y=e(65411),m=e(67697),d=e(53931);v.exports=function(b,C,S,x){var w="stackTraceLimit",O=x?2:1,j=b.split("."),E=j[j.length-1],$=t.apply(null,j);if($){var N=$.prototype;if(!d&&r(N,"cause")&&delete N.cause,!S)return $;var oe=t("Error"),Z=C(function(Y,te){var ee=f(x?te:Y,void 0),B=x?new $(Y):new $;return ee!==void 0&&o(B,"message",ee),y(B,Z,B.stack,2),this&&a(N,this)&&l(B,this,Z),arguments.length>O&&p(B,arguments[O]),B});if(Z.prototype=N,E!=="Error"?s?s(Z,oe):c(Z,oe,{name:!0}):m&&w in $&&(u(Z,$,w),u(Z,$,"prepareStackTrace")),c(Z,$),!d)try{N.name!==E&&o(N,"name",E),N.constructor=Z}catch(Y){}return Z}}},54927:function(v,g,e){"use strict";var t=e(79989),r=e(76058),o=e(61735),a=e(3689),s=e(51064),c="AggregateError",u=r(c),l=!a(function(){return u([1]).errors[0]!==1})&&a(function(){return u([1],c,{cause:7}).cause!==7});t({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:s(c,function(f){return function(y,m){return o(f,this,arguments)}},l,!0)})},39382:function(v,g,e){"use strict";var t=e(79989),r=e(23622),o=e(61868),a=e(49385),s=e(8758),c=e(25391),u=e(75773),l=e(75684),f=e(62570),p=e(65411),y=e(18734),m=e(13841),d=e(44201),b=d("toStringTag"),C=Error,S=[].push,x=function(j,E){var $=r(w,this),N;a?N=a(new C,$?o(this):w):(N=$?this:c(w),u(N,b,"Error")),E!==void 0&&u(N,"message",m(E)),p(N,x,N.stack,1),arguments.length>2&&f(N,arguments[2]);var oe=[];return y(j,S,{that:oe}),u(N,"errors",oe),N};a?a(x,C):s(x,C,{name:!0});var w=x.prototype=c(C.prototype,{constructor:l(1,x),message:l(1,""),name:l(1,"AggregateError")});t({global:!0,constructor:!0,arity:2},{AggregateError:x})},95879:function(v,g,e){"use strict";e(39382)},92176:function(v,g,e){"use strict";var t=e(79989),r=e(90690),o=e(6310),a=e(68700),s=e(87370);t({target:"Array",proto:!0},{at:function(u){var l=r(this),f=o(l),p=a(u),y=p>=0?p:f+p;return y<0||y>=f?void 0:l[y]}}),s("at")},93383:function(v,g,e){"use strict";var t=e(79989),r=e(61969).findLastIndex,o=e(87370);t({target:"Array",proto:!0},{findLastIndex:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},59867:function(v,g,e){"use strict";var t=e(79989),r=e(61969).findLast,o=e(87370);t({target:"Array",proto:!0},{findLast:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},70560:function(v,g,e){"use strict";var t=e(79989),r=e(90690),o=e(6310),a=e(5649),s=e(55565),c=e(3689),u=c(function(){return[].push.call({length:4294967296},1)!==4294967297}),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(p){return p instanceof TypeError}},f=u||!l();t({target:"Array",proto:!0,arity:1,forced:f},{push:function(y){var m=r(this),d=o(m),b=arguments.length;s(d+b);for(var C=0;C79&&a<83,u=c||!o("reduceRight");t({target:"Array",proto:!0,forced:u},{reduceRight:function(f){return r(this,f,arguments.length,arguments.length>1?arguments[1]:void 0)}})},278:function(v,g,e){"use strict";var t=e(79989),r=e(88820).left,o=e(16834),a=e(3615),s=e(50806),c=!s&&a>79&&a<83,u=c||!o("reduce");t({target:"Array",proto:!0,forced:u},{reduce:function(f){var p=arguments.length;return r(this,f,p,p>1?arguments[1]:void 0)}})},29830:function(v,g,e){"use strict";var t=e(79989),r=e(26166),o=e(65290),a=e(87370),s=Array;t({target:"Array",proto:!0},{toReversed:function(){return r(o(this),s)}}),a("toReversed")},12894:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(10509),a=e(65290),s=e(59976),c=e(88277),u=e(87370),l=Array,f=r(c("Array","sort"));t({target:"Array",proto:!0},{toSorted:function(y){y!==void 0&&o(y);var m=a(this),d=s(l,m);return f(d,y)}}),u("toSorted")},93530:function(v,g,e){"use strict";var t=e(79989),r=e(87370),o=e(55565),a=e(6310),s=e(27578),c=e(65290),u=e(68700),l=Array,f=Math.max,p=Math.min;t({target:"Array",proto:!0},{toSpliced:function(m,d){var b=c(this),C=a(b),S=s(m,C),x=arguments.length,w=0,O,j,E,$;for(x===0?O=j=0:x===1?(O=0,j=C-S):(O=x-2,j=p(f(u(d),0),C-S)),E=o(C+O-j),$=l(E);w=0?d:m+d;return b<0||b>=m?void 0:u(y,b)}})},12281:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(74684),a=e(34327),s=r("".charCodeAt);t({target:"String",proto:!0},{isWellFormed:function(){for(var u=a(o(this)),l=u.length,f=0;f=56320||++f>=l||(s(u,f)&64512)!==56320))return!1}return!0}})},56532:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(68844),a=e(74684),s=e(69985),c=e(981),u=e(91245),l=e(34327),f=e(54849),p=e(63477),y=e(27017),m=e(44201),d=e(53931),b=m("replace"),C=TypeError,S=o("".indexOf),x=o("".replace),w=o("".slice),O=Math.max,j=function(E,$,N){return N>E.length?-1:$===""?N:S(E,$,N)};t({target:"String",proto:!0},{replaceAll:function($,N){var oe=a(this),Z,Y,te,ee,B,ne,Q,q,L,F=0,T=0,I="";if(!c($)){if(Z=u($),Z&&(Y=l(a(p($))),!~S(Y,"g")))throw new C("`.replaceAll` does not allow non-global regexes");if(te=f($,b),te)return r(te,$,oe,N);if(d&&Z)return x(l(oe),$,N)}for(ee=l(oe),B=l($),ne=s(N),ne||(N=l(N)),Q=B.length,q=O(1,Q),F=j(ee,B,0);F!==-1;)L=ne?l(N(B,F,ee)):y(B,ee,F,[],void 0,N),I+=w(ee,T,F)+L,T=F+Q,F=j(ee,B,F+q);return T=56320||w+1>=S||(f(C,w+1)&64512)!==56320?x[w]=m:(x[w]=l(C,w),x[++w]=l(C,w))}return p(x,"")}})},95194:function(v,g,e){"use strict";var t=e(54872),r=e(6310),o=e(68700),a=t.aTypedArray,s=t.exportTypedArrayMethod;s("at",function(u){var l=a(this),f=r(l),p=o(u),y=p>=0?p:f+p;return y<0||y>=f?void 0:l[y]})},82:function(v,g,e){"use strict";var t=e(54872),r=e(61969).findLastIndex,o=t.aTypedArray,a=t.exportTypedArrayMethod;a("findLastIndex",function(c){return r(o(this),c,arguments.length>1?arguments[1]:void 0)})},20522:function(v,g,e){"use strict";var t=e(54872),r=e(61969).findLast,o=t.aTypedArray,a=t.exportTypedArrayMethod;a("findLast",function(c){return r(o(this),c,arguments.length>1?arguments[1]:void 0)})},79976:function(v,g,e){"use strict";var t=e(19037),r=e(22615),o=e(54872),a=e(6310),s=e(83250),c=e(90690),u=e(3689),l=t.RangeError,f=t.Int8Array,p=f&&f.prototype,y=p&&p.set,m=o.aTypedArray,d=o.exportTypedArrayMethod,b=!u(function(){var S=new Uint8ClampedArray(2);return r(y,S,{length:1,0:3},1),S[1]!==3}),C=b&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u(function(){var S=new f(2);return S.set(1),S.set("2",1),S[0]!==0||S[1]!==2});d("set",function(x){m(this);var w=s(arguments.length>1?arguments[1]:void 0,1),O=c(x);if(b)return r(y,this,O,w);var j=this.length,E=a(O),$=0;if(E+w>j)throw new l("Wrong length");for(;$1?arguments[1]:void 0)}}),o("filterOut")},54883:function(v,g,e){"use strict";var t=e(79989),r=e(2960).filterReject,o=e(87370);t({target:"Array",proto:!0,forced:!0},{filterReject:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),o("filterReject")},18073:function(v,g,e){"use strict";var t=e(79989),r=e(2231);t({target:"Array",stat:!0},{fromAsync:r})},96882:function(v,g,e){"use strict";var t=e(79989),r=e(16834),o=e(87370),a=e(44416),s=e(53931);t({target:"Array",proto:!0,name:"groupToMap",forced:s||!r("groupByToMap")},{groupByToMap:a}),o("groupByToMap")},22525:function(v,g,e){"use strict";var t=e(79989),r=e(64976),o=e(16834),a=e(87370);t({target:"Array",proto:!0,forced:!o("groupBy")},{groupBy:function(c){var u=arguments.length>1?arguments[1]:void 0;return r(this,c,u)}}),a("groupBy")},32539:function(v,g,e){"use strict";var t=e(79989),r=e(87370),o=e(44416),a=e(53931);t({target:"Array",proto:!0,forced:a},{groupToMap:o}),r("groupToMap")},36208:function(v,g,e){"use strict";var t=e(79989),r=e(64976),o=e(87370);t({target:"Array",proto:!0},{group:function(s){var c=arguments.length>1?arguments[1]:void 0;return r(this,s,c)}}),o("group")},5082:function(v,g,e){"use strict";var t=e(79989),r=e(92297),o=Object.isFrozen,a=function(s,c){if(!o||!r(s)||!o(s))return!1;for(var u=0,l=s.length,f;u1?arguments[1]:!1);return o([u&255,u>>8&255],10)}})},89246:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=r(DataView.prototype.getUint8);t({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(s){return o(this,s)}})},31186:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(50926),a=e(19842),s=e(15477).pack,c=e(76043),u=TypeError,l=r(DataView.prototype.setUint16);t({target:"DataView",proto:!0},{setFloat16:function(p,y){if(o(this)!=="DataView")throw new u("Incorrect receiver");var m=a(p),d=s(c(y),10,2);return l(this,m,d[1]<<8|d[0],arguments.length>2?arguments[2]:!1)}})},9279:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(50926),a=e(19842),s=e(87191),c=TypeError,u=r(DataView.prototype.setUint8);t({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(f,p){if(o(this)!=="DataView")throw new c("Incorrect receiver");var y=a(f);return u(this,y,s(p))}})},26725:function(v,g,e){"use strict";var t=e(79989),r=e(67697),o=e(76058),a=e(10509),s=e(767),c=e(11880),u=e(6045),l=e(62148),f=e(44201),p=e(618),y=e(29199),m=o("SuppressedError"),d=ReferenceError,b=f("dispose"),C=f("toStringTag"),S="DisposableStack",x=p.set,w=p.getterFor(S),O="sync-dispose",j="disposed",E="pending",$=function(Z){var Y=w(Z);if(Y.state===j)throw new d(S+" already disposed");return Y},N=function(){x(s(this,oe),{type:S,state:E,stack:[]}),r||(this.disposed=!1)},oe=N.prototype;u(oe,{dispose:function(){var Y=w(this);if(Y.state!==j){Y.state=j,r||(this.disposed=!0);for(var te=Y.stack,ee=te.length,B=!1,ne;ee;){var Q=te[--ee];te[ee]=null;try{Q()}catch(q){B?ne=new m(q,ne):(B=!0,ne=q)}}if(Y.stack=null,B)throw ne}},use:function(Y){return y($(this),Y,O),Y},adopt:function(Y,te){var ee=$(this);return a(te),y(ee,void 0,O,function(){te(Y)}),Y},defer:function(Y){var te=$(this);a(Y),y(te,void 0,O,Y)},move:function(){var Y=$(this),te=new N;return w(te).stack=Y.stack,Y.stack=[],Y.state=j,r||(this.disposed=!0),te}}),r&&l(oe,"disposed",{configurable:!0,get:function(){return w(this).state===j}}),c(oe,b,oe.dispose,{name:"dispose"}),c(oe,C,S,{nonWritable:!0}),t({global:!0,constructor:!0},{DisposableStack:N})},26125:function(v,g,e){"use strict";var t=e(79989),r=e(33505);t({target:"Function",proto:!0,forced:!0},{demethodize:r})},2820:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(69985),a=e(6738),s=e(36812),c=e(67697),u=Object.getOwnPropertyDescriptor,l=/^\s*class\b/,f=r(l.exec),p=function(y){try{if(!c||!f(l,a(y)))return!1}catch(d){}var m=u(y,"prototype");return!!m&&s(m,"writable")&&!m.writable};t({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(m){return o(m)&&!p(m)}})},62517:function(v,g,e){"use strict";var t=e(79989),r=e(19429);t({target:"Function",stat:!0,forced:!0},{isConstructor:r})},54947:function(v,g,e){"use strict";var t=e(44201),r=e(72560).f,o=t("metadata"),a=Function.prototype;a[o]===void 0&&r(a,o,{value:null})},74993:function(v,g,e){"use strict";var t=e(79989),r=e(33505);t({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:r})},50647:function(v,g,e){"use strict";var t=e(79989),r=e(47082);t({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:r})},67602:function(v,g,e){"use strict";var t=e(79989),r=e(19037),o=e(767),a=e(85027),s=e(69985),c=e(61868),u=e(62148),l=e(76522),f=e(3689),p=e(36812),y=e(44201),m=e(12013).IteratorPrototype,d=e(67697),b=e(53931),C="constructor",S="Iterator",x=y("toStringTag"),w=TypeError,O=r[S],j=b||!s(O)||O.prototype!==m||!f(function(){O({})}),E=function(){if(o(this,m),c(this)===m)throw new w("Abstract class Iterator not directly constructable")},$=function(N,oe){d?u(m,N,{configurable:!0,get:function(){return oe},set:function(Z){if(a(this),this===m)throw new w("You can't redefine this property");p(this,N)?this[N]=Z:l(this,N,Z)}}):m[N]=oe};p(m,x)||$(x,S),(j||!p(m,C)||m[C]===Object)&&$(C,E),E.prototype=m,t({global:!0,constructor:!0,forced:j},{Iterator:E})},82639:function(v,g,e){"use strict";var t=e(22615),r=e(11880),o=e(54849),a=e(36812),s=e(44201),c=e(12013).IteratorPrototype,u=s("dispose");a(c,u)||r(c,u,function(){var l=o(this,"return");l&&t(l,this)})},63986:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(85027),a=e(22302),s=e(4654),c=e(15904),u=e(65419),l=e(53931),f=u(function(){for(var p=this.iterator,y=this.next,m,d;this.remaining;)if(this.remaining--,m=o(r(y,p)),d=this.done=!!m.done,d)return;if(m=o(r(y,p)),d=this.done=!!m.done,!d)return m.value});t({target:"Iterator",proto:!0,real:!0,forced:l},{drop:function(y){o(this);var m=c(s(+y));return new f(a(this),{remaining:m})}})},16054:function(v,g,e){"use strict";var t=e(79989),r=e(18734),o=e(10509),a=e(85027),s=e(22302);t({target:"Iterator",proto:!0,real:!0},{every:function(u){a(this),o(u);var l=s(this),f=0;return!r(l,function(p,y){if(!u(p,f++))return y()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},53476:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(10509),a=e(85027),s=e(22302),c=e(65419),u=e(71228),l=e(53931),f=c(function(){for(var p=this.iterator,y=this.predicate,m=this.next,d,b,C;;){if(d=a(r(m,p)),b=this.done=!!d.done,b)return;if(C=d.value,u(p,y,[C,this.counter++],!0))return C}});t({target:"Iterator",proto:!0,real:!0,forced:l},{filter:function(y){return a(this),o(y),new f(s(this),{predicate:y})}})},70928:function(v,g,e){"use strict";var t=e(79989),r=e(18734),o=e(10509),a=e(85027),s=e(22302);t({target:"Iterator",proto:!0,real:!0},{find:function(u){a(this),o(u);var l=s(this),f=0;return r(l,function(p,y){if(u(p,f++))return y(p)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},49411:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(10509),a=e(85027),s=e(22302),c=e(36752),u=e(65419),l=e(72125),f=e(53931),p=u(function(){for(var y=this.iterator,m=this.mapper,d,b;;){if(b=this.inner)try{if(d=a(r(b.next,b.iterator)),!d.done)return d.value;this.inner=null}catch(C){l(y,"throw",C)}if(d=a(r(this.next,y)),this.done=!!d.done)return;try{this.inner=c(m(d.value,this.counter++),!1)}catch(C){l(y,"throw",C)}}});t({target:"Iterator",proto:!0,real:!0,forced:f},{flatMap:function(m){return a(this),o(m),new p(s(this),{mapper:m,inner:null})}})},30005:function(v,g,e){"use strict";var t=e(79989),r=e(18734),o=e(10509),a=e(85027),s=e(22302);t({target:"Iterator",proto:!0,real:!0},{forEach:function(u){a(this),o(u);var l=s(this),f=0;r(l,function(p){u(p,f++)},{IS_RECORD:!0})}})},73494:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(90690),a=e(23622),s=e(12013).IteratorPrototype,c=e(65419),u=e(36752),l=e(53931),f=c(function(){return r(this.next,this.iterator)},!0);t({target:"Iterator",stat:!0,forced:l},{from:function(y){var m=u(typeof y=="string"?o(y):y,!0);return a(s,m.iterator)?m.iterator:new f(m)}})},94564:function(v,g,e){"use strict";var t=e(79989),r=e(47082);t({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:r})},41792:function(v,g,e){"use strict";var t=e(79989),r=e(88983),o=e(53931);t({target:"Iterator",proto:!0,real:!0,forced:o},{map:r})},5985:function(v,g,e){"use strict";var t=e(79989),r=e(98554),o=TypeError;t({target:"Iterator",stat:!0,forced:!0},{range:function(s,c,u){if(typeof s=="number")return new r(s,c,u,"number",0,1);if(typeof s=="bigint")return new r(s,c,u,"bigint",BigInt(0),BigInt(1));throw new o("Incorrect Iterator.range arguments")}})},31107:function(v,g,e){"use strict";var t=e(79989),r=e(18734),o=e(10509),a=e(85027),s=e(22302),c=TypeError;t({target:"Iterator",proto:!0,real:!0},{reduce:function(l){a(this),o(l);var f=s(this),p=arguments.length<2,y=p?void 0:arguments[1],m=0;if(r(f,function(d){p?(p=!1,y=d):y=l(y,d,m),m++},{IS_RECORD:!0}),p)throw new c("Reduce of empty iterator with no initial value");return y}})},28244:function(v,g,e){"use strict";var t=e(79989),r=e(18734),o=e(10509),a=e(85027),s=e(22302);t({target:"Iterator",proto:!0,real:!0},{some:function(u){a(this),o(u);var l=s(this),f=0;return r(l,function(p,y){if(u(p,f++))return y()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3645:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(85027),a=e(22302),s=e(4654),c=e(15904),u=e(65419),l=e(72125),f=e(53931),p=u(function(){var y=this.iterator;if(!this.remaining--)return this.done=!0,l(y,"normal",void 0);var m=o(r(this.next,y)),d=this.done=!!m.done;if(!d)return m.value});t({target:"Iterator",proto:!0,real:!0,forced:f},{take:function(m){o(this);var d=c(s(+m));return new p(a(this),{remaining:d})}})},58429:function(v,g,e){"use strict";var t=e(79989),r=e(85027),o=e(18734),a=e(22302),s=[].push;t({target:"Iterator",proto:!0,real:!0},{toArray:function(){var u=[];return o(a(r(this)),s,{that:u,IS_RECORD:!0}),u}})},39569:function(v,g,e){"use strict";var t=e(79989),r=e(85027),o=e(29019),a=e(40219),s=e(22302),c=e(53931);t({target:"Iterator",proto:!0,real:!0,forced:c},{toAsync:function(){return new a(s(new o(s(r(this)))))}})},74320:function(v,g,e){"use strict";var t=e(79989),r=e(22818),o=e(55670);t({target:"JSON",stat:!0,forced:!r},{isRawJSON:o})},20691:function(v,g,e){"use strict";var t=e(79989),r=e(67697),o=e(19037),a=e(76058),s=e(68844),c=e(22615),u=e(69985),l=e(48999),f=e(92297),p=e(36812),y=e(34327),m=e(6310),d=e(76522),b=e(3689),C=e(46675),S=e(50146),x=o.JSON,w=o.Number,O=o.SyntaxError,j=x&&x.parse,E=a("Object","keys"),$=Object.getOwnPropertyDescriptor,N=s("".charAt),oe=s("".slice),Z=s(/./.exec),Y=s([].push),te=/^\d$/,ee=/^[1-9]$/,B=/^(?:-|\d)$/,ne=/^[\t\n\r ]$/,Q=0,q=1,L=function(X,G){X=y(X);var ce=new R(X,0,""),he=ce.parse(),Re=he.value,Ie=ce.skip(ne,he.end);if(Ie1?arguments[1]:void 0);return a(u,function(f,p){if(!l(f,p,u))return!1},!0)!==!1}})},41099:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(9945),a=e(83914),s=e(10613),c=a.Map,u=a.set;t({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(f){var p=o(this),y=r(f,arguments.length>1?arguments[1]:void 0),m=new c;return s(p,function(d,b){y(d,b,p)&&u(m,b,d)}),m}})},20876:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(9945),a=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(c){var u=o(this),l=r(c,arguments.length>1?arguments[1]:void 0),f=a(u,function(p,y){if(l(p,y,u))return{key:y}},!0);return f&&f.key}})},26320:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(9945),a=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{find:function(c){var u=o(this),l=r(c,arguments.length>1?arguments[1]:void 0),f=a(u,function(p,y){if(l(p,y,u))return{value:p}},!0);return f&&f.value}})},6052:function(v,g,e){"use strict";var t=e(79989),r=e(28737);t({target:"Map",stat:!0,forced:!0},{from:r})},76791:function(v,g,e){"use strict";var t=e(79989),r=e(68600),o=e(9945),a=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(c){return a(o(this),function(u){if(r(u,c))return!0},!0)===!0}})},75341:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(18734),a=e(69985),s=e(10509),c=e(83914).Map;t({target:"Map",stat:!0,forced:!0},{keyBy:function(l,f){var p=a(this)?this:c,y=new p;s(f);var m=s(y.set);return o(l,function(d){r(m,y,f(d),d)}),y}})},40019:function(v,g,e){"use strict";var t=e(79989),r=e(9945),o=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(s){var c=o(r(this),function(u,l){if(u===s)return{key:l}},!0);return c&&c.key}})},92343:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(9945),a=e(83914),s=e(10613),c=a.Map,u=a.set;t({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(f){var p=o(this),y=r(f,arguments.length>1?arguments[1]:void 0),m=new c;return s(p,function(d,b){u(m,y(d,b,p),d)}),m}})},51096:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(9945),a=e(83914),s=e(10613),c=a.Map,u=a.set;t({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(f){var p=o(this),y=r(f,arguments.length>1?arguments[1]:void 0),m=new c;return s(p,function(d,b){u(m,b,y(d,b,p))}),m}})},4314:function(v,g,e){"use strict";var t=e(79989),r=e(9945),o=e(18734),a=e(83914).set;t({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(c){for(var u=r(this),l=arguments.length,f=0;f1?arguments[1]:void 0);return a(u,function(f,p){if(l(f,p,u))return!0},!0)===!0}})},24453:function(v,g,e){"use strict";var t=e(79989),r=e(41432);t({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:r})},64078:function(v,g,e){"use strict";var t=e(79989),r=e(10509),o=e(9945),a=e(83914),s=TypeError,c=a.get,u=a.has,l=a.set;t({target:"Map",proto:!0,real:!0,forced:!0},{update:function(p,y){var m=o(this),d=arguments.length;r(y);var b=u(m,p);if(!b&&d<3)throw new s("Updating absent value");var C=b?c(m,p):r(d>2?arguments[2]:void 0)(p,m);return l(m,p,y(C,p,m)),m}})},66190:function(v,g,e){"use strict";var t=e(79989),r=e(41432);t({target:"Map",proto:!0,real:!0,forced:!0},{upsert:r})},25684:function(v,g,e){"use strict";var t=e(79989),r=Math.min,o=Math.max;t({target:"Math",stat:!0,forced:!0},{clamp:function(s,c,u){return r(u,o(c,s))}})},31789:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},8677:function(v,g,e){"use strict";var t=e(79989),r=180/Math.PI;t({target:"Math",stat:!0,forced:!0},{degrees:function(a){return a*r}})},59151:function(v,g,e){"use strict";var t=e(79989),r=e(76043);t({target:"Math",stat:!0},{f16round:r})},346:function(v,g,e){"use strict";var t=e(79989),r=e(84463),o=e(37788);t({target:"Math",stat:!0,forced:!0},{fscale:function(s,c,u,l,f){return o(r(s,c,u,l,f))}})},91069:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{iaddh:function(o,a,s,c){var u=o>>>0,l=a>>>0,f=s>>>0;return l+(c>>>0)+((u&f|(u|f)&~(u+f>>>0))>>>31)|0}})},18886:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{imulh:function(o,a){var s=65535,c=+o,u=+a,l=c&s,f=u&s,p=c>>16,y=u>>16,m=(p*f>>>0)+(l*f>>>16);return p*y+(m>>16)+((l*y>>>0)+(m&s)>>16)}})},88065:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{isubh:function(o,a,s,c){var u=o>>>0,l=a>>>0,f=s>>>0;return l-(c>>>0)-((~u&f|~(u^f)&u-f>>>0)>>>31)|0}})},68172:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},60445:function(v,g,e){"use strict";var t=e(79989),r=Math.PI/180;t({target:"Math",stat:!0,forced:!0},{radians:function(a){return a*r}})},99457:function(v,g,e){"use strict";var t=e(79989),r=e(84463);t({target:"Math",stat:!0,forced:!0},{scale:r})},613:function(v,g,e){"use strict";var t=e(79989),r=e(85027),o=e(70046),a=e(30974),s=e(27807),c=e(618),u="Seeded Random",l=u+" Generator",f='Math.seededPRNG() argument should have a "seed" field with a finite value.',p=c.set,y=c.getterFor(l),m=TypeError,d=a(function(C){p(this,{type:l,seed:C%2147483647})},u,function(){var C=y(this),S=C.seed=(C.seed*1103515245+12345)%2147483647;return s((S&1073741823)/1073741823,!1)});t({target:"Math",stat:!0,forced:!0},{seededPRNG:function(C){var S=r(C).seed;if(!o(S))throw new m(f);return new d(S)}})},835:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{signbit:function(o){var a=+o;return a===a&&a===0?1/a===-1/0:a<0}})},926:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{umulh:function(o,a){var s=65535,c=+o,u=+a,l=c&s,f=u&s,p=c>>>16,y=u>>>16,m=(p*f>>>0)+(l*f>>>16);return p*y+(m>>>16)+((l*y>>>0)+(m&s)>>>16)}})},82899:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(68700),a="Invalid number representation",s="Invalid radix",c=RangeError,u=SyntaxError,l=TypeError,f=parseInt,p=Math.pow,y=/^[\d.a-z]+$/,m=r("".charAt),d=r(y.exec),b=r(1 .toString),C=r("".slice),S=r("".split);t({target:"Number",stat:!0,forced:!0},{fromString:function(w,O){var j=1;if(typeof w!="string")throw new l(a);if(!w.length)throw new u(a);if(m(w,0)==="-"&&(j=-1,w=C(w,1),!w.length))throw new u(a);var E=O===void 0?10:o(O);if(E<2||E>36)throw new c(s);if(!d(y,w))throw new u(a);var $=S(w,"."),N=f($[0],E);if($.length>1&&(N+=f($[1],E)/p(E,$[1].length)),E===10&&b(N,E)!==w)throw new u(a);return j*N}})},29977:function(v,g,e){"use strict";var t=e(79989),r=e(98554);t({target:"Number",stat:!0,forced:!0},{range:function(a,s,c){return new r(a,s,c,"number",0,1)}})},31927:function(v,g,e){"use strict";var t=e(79989),r=e(42351);t({target:"Object",stat:!0,forced:!0},{iterateEntries:function(a){return new r(a,"entries")}})},77131:function(v,g,e){"use strict";var t=e(79989),r=e(42351);t({target:"Object",stat:!0,forced:!0},{iterateKeys:function(a){return new r(a,"keys")}})},55174:function(v,g,e){"use strict";var t=e(79989),r=e(42351);t({target:"Object",stat:!0,forced:!0},{iterateValues:function(a){return new r(a,"values")}})},63503:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(67697),a=e(14241),s=e(10509),c=e(85027),u=e(767),l=e(69985),f=e(981),p=e(48999),y=e(54849),m=e(11880),d=e(6045),b=e(62148),C=e(20920),S=e(44201),x=e(618),w=S("observable"),O="Observable",j="Subscription",E="SubscriptionObserver",$=x.getterFor,N=x.set,oe=$(O),Z=$(j),Y=$(E),te=function(q){this.observer=c(q),this.cleanup=void 0,this.subscriptionObserver=void 0};te.prototype={type:j,clean:function(){var q=this.cleanup;if(q){this.cleanup=void 0;try{q()}catch(L){C(L)}}},close:function(){if(!o){var q=this.facade,L=this.subscriptionObserver;q.closed=!0,L&&(L.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var ee=function(q,L){var F=N(this,new te(q)),T;o||(this.closed=!1);try{(T=y(q,"start"))&&r(T,q,this)}catch(ae){C(ae)}if(!F.isClosed()){var I=F.subscriptionObserver=new B(F);try{var R=L(I),z=R;f(R)||(F.cleanup=l(R.unsubscribe)?function(){z.unsubscribe()}:s(R))}catch(ae){I.error(ae);return}F.isClosed()&&F.clean()}};ee.prototype=d({},{unsubscribe:function(){var L=Z(this);L.isClosed()||(L.close(),L.clean())}}),o&&b(ee.prototype,"closed",{configurable:!0,get:function(){return Z(this).isClosed()}});var B=function(q){N(this,{type:E,subscriptionState:q}),o||(this.closed=!1)};B.prototype=d({},{next:function(L){var F=Y(this).subscriptionState;if(!F.isClosed()){var T=F.observer;try{var I=y(T,"next");I&&r(I,T,L)}catch(R){C(R)}}},error:function(L){var F=Y(this).subscriptionState;if(!F.isClosed()){var T=F.observer;F.close();try{var I=y(T,"error");I?r(I,T,L):C(L)}catch(R){C(R)}F.clean()}},complete:function(){var L=Y(this).subscriptionState;if(!L.isClosed()){var F=L.observer;L.close();try{var T=y(F,"complete");T&&r(T,F)}catch(I){C(I)}L.clean()}}}),o&&b(B.prototype,"closed",{configurable:!0,get:function(){return Y(this).subscriptionState.isClosed()}});var ne=function(L){u(this,Q),N(this,{type:O,subscriber:s(L)})},Q=ne.prototype;d(Q,{subscribe:function(L){var F=arguments.length;return new ee(l(L)?{next:L,error:F>1?arguments[1]:void 0,complete:F>2?arguments[2]:void 0}:p(L)?L:{},oe(this).subscriber)}}),m(Q,w,function(){return this}),t({global:!0,constructor:!0,forced:!0},{Observable:ne}),a(O)},9818:function(v,g,e){"use strict";var t=e(79989),r=e(76058),o=e(22615),a=e(85027),s=e(19429),c=e(5185),u=e(54849),l=e(18734),f=e(44201),p=f("observable");t({target:"Observable",stat:!0,forced:!0},{from:function(m){var d=s(this)?this:r("Observable"),b=u(a(m),p);if(b){var C=a(o(b,m));return C.constructor===d?C:new d(function(x){return C.subscribe(x)})}var S=c(m);return new d(function(x){l(S,function(w,O){if(x.next(w),x.closed)return O()},{IS_ITERATOR:!0,INTERRUPTED:!0}),x.complete()})}})},76314:function(v,g,e){"use strict";e(63503),e(9818),e(38771)},38771:function(v,g,e){"use strict";var t=e(79989),r=e(76058),o=e(19429),a=r("Array");t({target:"Observable",stat:!0,forced:!0},{of:function(){for(var c=o(this)?this:r("Observable"),u=arguments.length,l=a(u),f=0;f?@[\\\\\\]^`{|}~"+a+"]","g");t({target:"RegExp",stat:!0,forced:!0},{escape:function(f){var p=o(f),y=s(p,0);return(y>47&&y<58?"\\x3":"")+c(p,u,"\\$&")}})},57282:function(v,g,e){"use strict";var t=e(79989),r=e(10029),o=e(61034).add;t({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var s=r(this),c=0,u=arguments.length;c1?arguments[1]:void 0);return a(u,function(f){if(!l(f,f,u))return!1},!0)!==!1}})},96986:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(10029),a=e(61034),s=e(48774),c=a.Set,u=a.add;t({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(f){var p=o(this),y=r(f,arguments.length>1?arguments[1]:void 0),m=new c;return s(p,function(d){y(d,d,p)&&u(m,d)}),m}})},95681:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(10029),a=e(48774);t({target:"Set",proto:!0,real:!0,forced:!0},{find:function(c){var u=o(this),l=r(c,arguments.length>1?arguments[1]:void 0),f=a(u,function(p){if(l(p,p,u))return{value:p}},!0);return f&&f.value}})},13781:function(v,g,e){"use strict";var t=e(79989),r=e(28737);t({target:"Set",stat:!0,forced:!0},{from:r})},98873:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(2939),a=e(72948);t({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(c){return r(a,this,o(c))}})},33442:function(v,g,e){"use strict";var t=e(79989),r=e(3689),o=e(72948),a=e(53234),s=!a("intersection")||r(function(){return Array.from(new Set([1,2,3]).intersection(new Set([3,2])))!=="3,2"});t({target:"Set",proto:!0,real:!0,forced:s},{intersection:o})},50308:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(2939),a=e(97795);t({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(c){return r(a,this,o(c))}})},61964:function(v,g,e){"use strict";var t=e(79989),r=e(97795),o=e(53234);t({target:"Set",proto:!0,real:!0,forced:!o("isDisjointFrom")},{isDisjointFrom:r})},18955:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(2939),a=e(26951);t({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(c){return r(a,this,o(c))}})},69878:function(v,g,e){"use strict";var t=e(79989),r=e(26951),o=e(53234);t({target:"Set",proto:!0,real:!0,forced:!o("isSubsetOf")},{isSubsetOf:r})},65115:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(2939),a=e(3894);t({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(c){return r(a,this,o(c))}})},52915:function(v,g,e){"use strict";var t=e(79989),r=e(3894),o=e(53234);t({target:"Set",proto:!0,real:!0,forced:!o("isSupersetOf")},{isSupersetOf:r})},19490:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(10029),a=e(48774),s=e(34327),c=r([].join),u=r([].push);t({target:"Set",proto:!0,real:!0,forced:!0},{join:function(f){var p=o(this),y=f===void 0?",":s(f),m=[];return a(p,function(d){u(m,d)}),c(m,y)}})},95752:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(10029),a=e(61034),s=e(48774),c=a.Set,u=a.add;t({target:"Set",proto:!0,real:!0,forced:!0},{map:function(f){var p=o(this),y=r(f,arguments.length>1?arguments[1]:void 0),m=new c;return s(p,function(d){u(m,y(d,d,p))}),m}})},32789:function(v,g,e){"use strict";var t=e(79989),r=e(1114);t({target:"Set",stat:!0,forced:!0},{of:r})},27913:function(v,g,e){"use strict";var t=e(79989),r=e(10509),o=e(10029),a=e(48774),s=TypeError;t({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(u){var l=o(this),f=arguments.length<2,p=f?void 0:arguments[1];if(r(u),a(l,function(y){f?(f=!1,p=y):p=u(p,y,y,l)}),f)throw new s("Reduce of empty set with no initial value");return p}})},6831:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(10029),a=e(48774);t({target:"Set",proto:!0,real:!0,forced:!0},{some:function(c){var u=o(this),l=r(c,arguments.length>1?arguments[1]:void 0);return a(u,function(f){if(l(f,f,u))return!0},!0)===!0}})},90243:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(2939),a=e(62289);t({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(c){return r(a,this,o(c))}})},97895:function(v,g,e){"use strict";var t=e(79989),r=e(62289),o=e(53234);t({target:"Set",proto:!0,real:!0,forced:!o("symmetricDifference")},{symmetricDifference:r})},98030:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(2939),a=e(75674);t({target:"Set",proto:!0,real:!0,forced:!0},{union:function(c){return r(a,this,o(c))}})},22275:function(v,g,e){"use strict";var t=e(79989),r=e(75674),o=e(53234);t({target:"Set",proto:!0,real:!0,forced:!o("union")},{union:r})},86220:function(v,g,e){"use strict";var t=e(79989),r=e(10730).charAt,o=e(74684),a=e(68700),s=e(34327);t({target:"String",proto:!0,forced:!0},{at:function(u){var l=s(o(this)),f=l.length,p=a(u),y=p>=0?p:f+p;return y<0||y>=f?void 0:r(l,y)}})},95853:function(v,g,e){"use strict";var t=e(79989),r=e(30974),o=e(27807),a=e(74684),s=e(34327),c=e(618),u=e(10730),l=u.codeAt,f=u.charAt,p="String Iterator",y=c.set,m=c.getterFor(p),d=r(function(C){y(this,{type:p,string:C,index:0})},"String",function(){var C=m(this),S=C.string,x=C.index,w;return x>=S.length?o(void 0,!0):(w=f(S,x),C.index+=w.length,o({codePoint:l(w,0),position:x},!1))});t({target:"String",proto:!0,forced:!0},{codePoints:function(){return new d(s(a(this)))}})},21917:function(v,g,e){"use strict";var t=e(79989),r=e(8195);t({target:"String",stat:!0,forced:!0},{cooked:r})},66084:function(v,g,e){"use strict";var t=e(71594),r=e(79989),o=e(98702),a=e(68844),s=e(61735),c=e(85027),u=e(90690),l=e(69985),f=e(6310),p=e(72560).f,y=e(9015),m=e(16803),d=e(8195),b=e(98985),C=e(86350),S=new m.WeakMap,x=m.get,w=m.has,O=m.set,j=Array,E=TypeError,$=Object.freeze||Object,N=Object.isFrozen,oe=Math.min,Z=a("".charAt),Y=a("".slice),te=a("".split),ee=a(/./.exec),B=/([\n\u2028\u2029]|\r\n?)/g,ne=RegExp("^["+C+"]*"),Q=RegExp("[^"+C+"]"),q="Invalid tag",L="Invalid opening line",F="Invalid closing line",T=function(G){var ce=G.raw;if(t&&!N(ce))throw new E("Raw template should be frozen");if(w(S,ce))return x(S,ce);var he=I(ce),Re=z(he);return p(Re,"raw",{value:$(he)}),$(Re),O(S,ce,Re),Re},I=function(G){var ce=u(G),he=f(ce),Re=j(he),Ie=j(he),Ze=0,ot,Je,He,qe;if(!he)throw new E(q);for(;Ze0)throw new E(L);ot[1]=""}if(le){if(ot.length===1||ee(Q,ot[ot.length-1]))throw new E(F);ot[ot.length-2]="",ot[ot.length-1]=""}for(var U=2;U1?arguments[1]:void 0);return o(this,l)},!0)},59359:function(v,g,e){"use strict";var t=e(54872),r=e(2960).filterReject,o=e(20716),a=t.aTypedArray,s=t.exportTypedArrayMethod;s("filterReject",function(u){var l=r(a(this),u,arguments.length>1?arguments[1]:void 0);return o(this,l)},!0)},76677:function(v,g,e){"use strict";var t=e(76058),r=e(52655),o=e(2231),a=e(54872),s=e(59976),c=a.aTypedArrayConstructor,u=a.exportTypedArrayStaticMethod;u("fromAsync",function(f){var p=this,y=arguments.length,m=y>1?arguments[1]:void 0,d=y>2?arguments[2]:void 0;return new(t("Promise"))(function(b){r(p),b(o(f,m,d))}).then(function(b){return s(c(p),b)})},!0)},30548:function(v,g,e){"use strict";var t=e(54872),r=e(64976),o=e(47338),a=t.aTypedArray,s=t.exportTypedArrayMethod;s("groupBy",function(u){var l=arguments.length>1?arguments[1]:void 0;return r(a(this),u,l,o)},!0)},915:function(v,g,e){"use strict";var t=e(54872),r=e(6310),o=e(9401),a=e(27578),s=e(71530),c=e(68700),u=e(3689),l=t.aTypedArray,f=t.getTypedArrayConstructor,p=t.exportTypedArrayMethod,y=Math.max,m=Math.min,d=!u(function(){var b=new Int8Array([1]),C=b.toSpliced(1,0,{valueOf:function(){return b[0]=2,3}});return C[0]!==2||C[1]!==3});p("toSpliced",function(C,S){var x=l(this),w=f(x),O=r(x),j=a(C,O),E=arguments.length,$=0,N,oe,Z,Y,te,ee,B;if(E===0)N=oe=0;else if(E===1)N=0,oe=O-j;else if(oe=m(y(c(S),0),O-j),N=E-2,N){Y=new w(N),Z=o(Y);for(var ne=2;ne1?a(arguments[1]):void 0,N=f($)==="base64"?p:y,oe=$?!!$.strict:!1,Z=oe?E:C(E,w,"");if(Z.length%4===0)S(Z,-2)==="=="?Z=S(Z,0,-2):S(Z,-1)==="="&&(Z=S(Z,0,-1));else if(oe)throw new d("Input is not correctly padded");var Y=Z.length%4;switch(Y){case 1:throw new d("Bad input length");case 2:Z+="AA";break;case 3:Z+="A"}for(var te=[],ee=0,B=Z.length,ne=function(L){var F=b(Z,ee+L);if(!c(N,F))throw new d('Bad char in input: "'+F+'"');return N[F]<<18-6*L};ee>16&255,Q>>8&255,Q&255)}var q=te.length;if(Y===2){if(oe&&te[q-2]!==0)throw new d(O);q-=2}else if(Y===3){if(oe&&te[q-1]!==0)throw new d(O);q--}return u(m,te,q)}})},91117:function(v,g,e){"use strict";var t=e(79989),r=e(19037),o=e(68844),a=e(51082),s=r.Uint8Array,c=r.SyntaxError,u=r.parseInt,l=/[^\da-f]/i,f=o(l.exec),p=o("".slice);s&&t({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(m){a(m);var d=m.length;if(d%2)throw new c("String should have an even number of characters");if(f(l,m))throw new c("String should only contain hex characters");for(var b=new s(d/2),C=0;C>6*E&63)};x+21&&!p(arguments[1])?b(arguments[1]):void 0,ie=A?A.transfer:void 0,ke,Fe;ie!==void 0&&(ke=new T,Fe=Ne(ie,ke));var $e=de(xe,ke);return Fe&&st(Fe),$e}})},98858:function(v,g,e){"use strict";var t=e(11880),r=e(68844),o=e(34327),a=e(21500),s=URLSearchParams,c=s.prototype,u=r(c.append),l=r(c.delete),f=r(c.forEach),p=r([].push),y=new s("a=1&a=2&b=3");y.delete("a",1),y.delete("b",void 0),y+""!="a=2"&&t(c,"delete",function(m){var d=arguments.length,b=d<2?void 0:arguments[1];if(d&&b===void 0)return l(this,m);var C=[];f(this,function(N,oe){p(C,{key:oe,value:N})}),a(d,1);for(var S=o(m),x=o(b),w=0,O=0,j=!1,E=C.length,$;wr.length)&&(o=r.length);for(var a=0,s=new Array(o);a=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(m){throw m},f:u}}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 l=!0,f=!1,p;return{s:function(){s=s.call(o)},n:function(){var m=s.next();return l=m.done,m},e:function(m){f=!0,p=m},f:function(){try{!l&&s.return!=null&&s.return()}finally{if(f)throw p}}}}},29388:function(v,g,e){"use strict";e.d(g,{Z:function(){return a}});var t=e(61120),r=e(78814),o=e(82963);function a(s){var c=(0,r.Z)();return function(){var l=(0,t.Z)(s),f;if(c){var p=(0,t.Z)(this).constructor;f=Reflect.construct(l,arguments,p)}else f=l.apply(this,arguments);return(0,o.Z)(this,f)}}},4942:function(v,g,e){"use strict";e.d(g,{Z:function(){return r}});var t=e(83997);function r(o,a,s){return a=(0,t.Z)(a),a in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s,o}},87462:function(v,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(){return t=Object.assign?Object.assign.bind():function(r){for(var o=1;o=0)continue;s[c]=o[c]}return s}function r(o,a){if(o==null)return{};var s=t(o,a),c,u;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}},82963:function(v,g,e){"use strict";e.d(g,{Z:function(){return o}});var t=e(71002),r=e(97326);function o(a,s){if(s&&((0,t.Z)(s)==="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(a)}},74165:function(v,g,e){"use strict";e.d(g,{Z:function(){return r}});var t=e(71002);function r(){"use strict";r=function(){return a};var o,a={},s=Object.prototype,c=s.hasOwnProperty,u=Object.defineProperty||function(T,I,R){T[I]=R.value},l=typeof Symbol=="function"?Symbol:{},f=l.iterator||"@@iterator",p=l.asyncIterator||"@@asyncIterator",y=l.toStringTag||"@@toStringTag";function m(T,I,R){return Object.defineProperty(T,I,{value:R,enumerable:!0,configurable:!0,writable:!0}),T[I]}try{m({},"")}catch(T){m=function(R,z,ae){return R[z]=ae}}function d(T,I,R,z){var ae=I&&I.prototype instanceof j?I:j,X=Object.create(ae.prototype),G=new L(z||[]);return u(X,"_invoke",{value:B(T,R,G)}),X}function b(T,I,R){try{return{type:"normal",arg:T.call(I,R)}}catch(z){return{type:"throw",arg:z}}}a.wrap=d;var C="suspendedStart",S="suspendedYield",x="executing",w="completed",O={};function j(){}function E(){}function $(){}var N={};m(N,f,function(){return this});var oe=Object.getPrototypeOf,Z=oe&&oe(oe(F([])));Z&&Z!==s&&c.call(Z,f)&&(N=Z);var Y=$.prototype=j.prototype=Object.create(N);function te(T){["next","throw","return"].forEach(function(I){m(T,I,function(R){return this._invoke(I,R)})})}function ee(T,I){function R(ae,X,G,ce){var he=b(T[ae],T,X);if(he.type!=="throw"){var Re=he.arg,Ie=Re.value;return Ie&&(0,t.Z)(Ie)=="object"&&c.call(Ie,"__await")?I.resolve(Ie.__await).then(function(Ze){R("next",Ze,G,ce)},function(Ze){R("throw",Ze,G,ce)}):I.resolve(Ie).then(function(Ze){Re.value=Ze,G(Re)},function(Ze){return R("throw",Ze,G,ce)})}ce(he.arg)}var z;u(this,"_invoke",{value:function(X,G){function ce(){return new I(function(he,Re){R(X,G,he,Re)})}return z=z?z.then(ce,ce):ce()}})}function B(T,I,R){var z=C;return function(ae,X){if(z===x)throw Error("Generator is already running");if(z===w){if(ae==="throw")throw X;return{value:o,done:!0}}for(R.method=ae,R.arg=X;;){var G=R.delegate;if(G){var ce=ne(G,R);if(ce){if(ce===O)continue;return ce}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(z===C)throw z=w,R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);z=x;var he=b(T,I,R);if(he.type==="normal"){if(z=R.done?w:S,he.arg===O)continue;return{value:he.arg,done:R.done}}he.type==="throw"&&(z=w,R.method="throw",R.arg=he.arg)}}}function ne(T,I){var R=I.method,z=T.iterator[R];if(z===o)return I.delegate=null,R==="throw"&&T.iterator.return&&(I.method="return",I.arg=o,ne(T,I),I.method==="throw")||R!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+R+"' method")),O;var ae=b(z,T.iterator,I.arg);if(ae.type==="throw")return I.method="throw",I.arg=ae.arg,I.delegate=null,O;var X=ae.arg;return X?X.done?(I[T.resultName]=X.value,I.next=T.nextLoc,I.method!=="return"&&(I.method="next",I.arg=o),I.delegate=null,O):X:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,O)}function Q(T){var I={tryLoc:T[0]};1 in T&&(I.catchLoc=T[1]),2 in T&&(I.finallyLoc=T[2],I.afterLoc=T[3]),this.tryEntries.push(I)}function q(T){var I=T.completion||{};I.type="normal",delete I.arg,T.completion=I}function L(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(Q,this),this.reset(!0)}function F(T){if(T||T===""){var I=T[f];if(I)return I.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var R=-1,z=function ae(){for(;++R=0;--ae){var X=this.tryEntries[ae],G=X.completion;if(X.tryLoc==="root")return z("end");if(X.tryLoc<=this.prev){var ce=c.call(X,"catchLoc"),he=c.call(X,"finallyLoc");if(ce&&he){if(this.prev=0;--z){var ae=this.tryEntries[z];if(ae.tryLoc<=this.prev&&c.call(ae,"finallyLoc")&&this.prev=0;--R){var z=this.tryEntries[R];if(z.finallyLoc===I)return this.complete(z.completion,z.afterLoc),q(z),O}},catch:function(I){for(var R=this.tryEntries.length-1;R>=0;--R){var z=this.tryEntries[R];if(z.tryLoc===I){var ae=z.completion;if(ae.type==="throw"){var X=ae.arg;q(z)}return X}}throw Error("illegal catch attempt")},delegateYield:function(I,R,z){return this.delegate={iterator:F(I),resultName:R,nextLoc:z},this.method==="next"&&(this.arg=o),O}},a}},89611:function(v,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(r,o){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,c){return s.__proto__=c,s},t(r,o)}},97685:function(v,g,e){"use strict";e.d(g,{Z:function(){return s}});var t=e(83878);function r(c,u){var l=c==null?null:typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(l!=null){var f,p,y,m,d=[],b=!0,C=!1;try{if(y=(l=l.call(c)).next,u===0){if(Object(l)!==l)return;b=!1}else for(;!(b=(f=y.call(l)).done)&&(d.push(f.value),d.length!==u);b=!0);}catch(S){C=!0,p=S}finally{try{if(!b&&l.return!=null&&(m=l.return(),Object(m)!==m))return}finally{if(C)throw p}}return d}}var o=e(40181),a=e(25267);function s(c,u){return(0,t.Z)(c)||r(c,u)||(0,o.Z)(c,u)||(0,a.Z)()}},84506:function(v,g,e){"use strict";e.d(g,{Z:function(){return s}});var t=e(83878),r=e(59199),o=e(40181),a=e(25267);function s(c){return(0,t.Z)(c)||(0,r.Z)(c)||(0,o.Z)(c)||(0,a.Z)()}},74902:function(v,g,e){"use strict";e.d(g,{Z:function(){return c}});var t=e(30907);function r(u){if(Array.isArray(u))return(0,t.Z)(u)}var o=e(59199),a=e(40181);function s(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(u){return r(u)||(0,o.Z)(u)||(0,a.Z)(u)||s()}},83997:function(v,g,e){"use strict";e.d(g,{Z:function(){return o}});var t=e(71002);function r(a,s){if((0,t.Z)(a)!="object"||!a)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var u=c.call(a,s||"default");if((0,t.Z)(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(a)}function o(a){var s=r(a,"string");return(0,t.Z)(s)=="symbol"?s:s+""}},71002:function(v,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(r){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t(r)}},40181:function(v,g,e){"use strict";e.d(g,{Z:function(){return r}});var t=e(30907);function r(o,a){if(o){if(typeof o=="string")return(0,t.Z)(o,a);var s=Object.prototype.toString.call(o).slice(8,-1);if(s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set")return Array.from(o);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return(0,t.Z)(o,a)}}},58096:function(v,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(){return t=Object.assign?Object.assign.bind():function(r){for(var o=1;o=0)&&(s[u]=o[u]);return s}function r(o,a){if(o==null)return{};var s=t(o,a),c,u;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}},81758:function(v,g,e){"use strict";e.d(g,{J$:function(){return ke},ZP:function(){return Fe},kY:function(){return _}});var t=e(67294),r=e(61688);const o=()=>{},a=o(),s=Object,c=$e=>$e===a,u=$e=>typeof $e=="function",l=($e,we)=>Gl(Gl({},$e),we),f=$e=>u($e.then),p=new WeakMap;let y=0;const m=$e=>{const we=typeof $e,Pe=$e&&$e.constructor,Ae=Pe==Date;let We,tt;if(s($e)===$e&&!Ae&&Pe!=RegExp){if(We=p.get($e),We)return We;if(We=++y+"~",p.set($e,We),Pe==Array){for(We="@",tt=0;tt<$e.length;tt++)We+=m($e[tt])+",";p.set($e,We)}if(Pe==s){We="#";const dt=s.keys($e).sort();for(;!c(tt=dt.pop());)c($e[tt])||(We+=tt+":"+m($e[tt])+",");p.set($e,We)}}else We=Ae?$e.toJSON():we=="symbol"?$e.toString():we=="string"?JSON.stringify($e):""+$e;return We},d=new WeakMap,b={},C={},S="undefined",x=typeof window!=S,w=typeof document!=S,O=()=>x&&typeof window.requestAnimationFrame!=S,j=($e,we)=>{const Pe=d.get($e);return[()=>!c(we)&&$e.get(we)||b,Ae=>{if(!c(we)){const We=$e.get(we);we in C||(C[we]=We),Pe[5](we,l(We,Ae),We||b)}},Pe[6],()=>!c(we)&&we in C?C[we]:!c(we)&&$e.get(we)||b]};let E=!0;const $=()=>E,[N,oe]=x&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],Z=()=>{const $e=w&&document.visibilityState;return c($e)||$e!=="hidden"},Y=$e=>(w&&document.addEventListener("visibilitychange",$e),N("focus",$e),()=>{w&&document.removeEventListener("visibilitychange",$e),oe("focus",$e)}),te=$e=>{const we=()=>{E=!0,$e()},Pe=()=>{E=!1};return N("online",we),N("offline",Pe),()=>{oe("online",we),oe("offline",Pe)}},ee={isOnline:$,isVisible:Z},B={initFocus:Y,initReconnect:te},ne=!t.useId,Q=!x||"Deno"in window,q=$e=>O()?window.requestAnimationFrame($e):setTimeout($e,1),L=Q?t.useEffect:t.useLayoutEffect,F=typeof navigator!="undefined"&&navigator.connection,T=!Q&&F&&(["slow-2g","2g"].includes(F.effectiveType)||F.saveData),I=$e=>{if(u($e))try{$e=$e()}catch(Pe){$e=""}const we=$e;return $e=typeof $e=="string"?$e:(Array.isArray($e)?$e.length:$e)?m($e):"",[$e,we]};let R=0;const z=()=>++R,ae=0,X=1,G=2;var he={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:ae,MUTATE_EVENT:G,RECONNECT_EVENT:X};function Re(...$e){return Lu(this,null,function*(){const[we,Pe,Ae,We]=$e,tt=l({populateCache:!0,throwOnError:!0},typeof We=="boolean"?{revalidate:We}:We||{});let dt=tt.populateCache;const At=tt.rollbackOnError;let vt=tt.optimisticData;const qt=Kt=>typeof At=="function"?At(Kt):At!==!1,kt=tt.throwOnError;if(u(Pe)){const Kt=Pe,Ct=[],Ge=we.keys();for(const Et of Ge)!/^\$(inf|sub)\$/.test(Et)&&Kt(we.get(Et)._k)&&Ct.push(Et);return Promise.all(Ct.map(wt))}return wt(Pe);function wt(Kt){return Lu(this,null,function*(){const[Ct]=I(Kt);if(!Ct)return;const[Ge,Et]=j(we,Ct),[Ut,gt,cn,Ft]=d.get(we),en=()=>{const er=Ut[Ct];return(u(tt.revalidate)?tt.revalidate(Ge().data,Kt):tt.revalidate!==!1)&&(delete cn[Ct],delete Ft[Ct],er&&er[0])?er[0](G).then(()=>Ge().data):Ge().data};if($e.length<3)return en();let Yt=Ae,dn;const pn=z();gt[Ct]=[pn,0];const rn=!c(vt),On=Ge(),An=On.data,Jn=On._c,Rr=c(Jn)?An:Jn;if(rn&&(vt=u(vt)?vt(Rr,An):vt,Et({data:vt,_c:Rr})),u(Yt))try{Yt=Yt(Rr)}catch(er){dn=er}if(Yt&&f(Yt))if(Yt=yield Yt.catch(er=>{dn=er}),pn!==gt[Ct][0]){if(dn)throw dn;return Yt}else dn&&rn&&qt(dn)&&(dt=!0,Et({data:Rr,_c:a}));if(dt&&!dn)if(u(dt)){const er=dt(Yt,Rr);Et({data:er,error:a,_c:a})}else Et({data:Yt,error:a,_c:a});if(gt[Ct][1]=z(),Promise.resolve(en()).then(()=>{Et({_c:a})}),dn){if(kt)throw dn;return}return Yt})}})}const Ie=($e,we)=>{for(const Pe in $e)$e[Pe][0]&&$e[Pe][0](we)},Ze=($e,we)=>{if(!d.has($e)){const Pe=l(B,we),Ae={},We=Re.bind(a,$e);let tt=o;const dt={},At=(kt,wt)=>{const Kt=dt[kt]||[];return dt[kt]=Kt,Kt.push(wt),()=>Kt.splice(Kt.indexOf(wt),1)},vt=(kt,wt,Kt)=>{$e.set(kt,wt);const Ct=dt[kt];if(Ct)for(const Ge of Ct)Ge(wt,Kt)},qt=()=>{if(!d.has($e)&&(d.set($e,[Ae,{},{},{},We,vt,At]),!Q)){const kt=Pe.initFocus(setTimeout.bind(a,Ie.bind(a,Ae,ae))),wt=Pe.initReconnect(setTimeout.bind(a,Ie.bind(a,Ae,X)));tt=()=>{kt&&kt(),wt&&wt(),d.delete($e)}}};return qt(),[$e,We,qt,tt]}return[$e,d.get($e)[4]]},ot=($e,we,Pe,Ae,We)=>{const tt=Pe.errorRetryCount,dt=We.retryCount,At=~~((Math.random()+.5)*(1<<(dt<8?dt:8)))*Pe.errorRetryInterval;!c(tt)&&dt>tt||setTimeout(Ae,At,We)},Je=($e,we)=>m($e)==m(we),[He,qe]=Ze(new Map),Xe=l({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:ot,onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:T?5e3:3e3,compare:Je,isPaused:()=>!1,cache:He,mutate:qe,fallback:{}},ee),le=($e,we)=>{const Pe=l($e,we);if(we){const{use:Ae,fallback:We}=$e,{use:tt,fallback:dt}=we;Ae&&tt&&(Pe.use=Ae.concat(tt)),We&&dt&&(Pe.fallback=l(We,dt))}return Pe},U=(0,t.createContext)({}),M=$e=>{const{value:we}=$e,Pe=(0,t.useContext)(U),Ae=u(we),We=(0,t.useMemo)(()=>Ae?we(Pe):we,[Ae,Pe,we]),tt=(0,t.useMemo)(()=>Ae?We:le(Pe,We),[Ae,Pe,We]),dt=We&&We.provider,At=(0,t.useRef)(a);dt&&!At.current&&(At.current=Ze(dt(tt.cache||He),We));const vt=At.current;return vt&&(tt.cache=vt[0],tt.mutate=vt[1]),L(()=>{if(vt)return vt[2]&&vt[2](),vt[3]},[]),(0,t.createElement)(U.Provider,l($e,{value:tt}))},D="$inf$",K=x&&window.__SWR_DEVTOOLS_USE__,k=K?window.__SWR_DEVTOOLS_USE__:[],J=()=>{K&&(window.__SWR_DEVTOOLS_REACT__=t)},ue=$e=>u($e[1])?[$e[0],$e[1],$e[2]||{}]:[$e[0],null,($e[1]===null?$e[2]:$e[1])||{}],_=()=>l(Xe,(0,t.useContext)(U)),V=($e,we)=>{const[Pe,Ae]=I($e),[,,,We]=d.get(He);if(We[Pe])return We[Pe];const tt=we(Ae);return We[Pe]=tt,tt},se=$e=>(we,Pe,Ae)=>$e(we,Pe&&((...tt)=>{const[dt]=I(we),[,,,At]=d.get(He);if(dt.startsWith(D))return Pe(...tt);const vt=At[dt];return c(vt)?Pe(...tt):(delete At[dt],vt)}),Ae),pe=k.concat(se),de=$e=>function(...Pe){const Ae=_(),[We,tt,dt]=ue(Pe),At=le(Ae,dt);let vt=$e;const{use:qt}=At,kt=(qt||[]).concat(pe);for(let wt=kt.length;wt--;)vt=kt[wt](vt);return vt(We,tt||At.fetcher||null,At)},Ne=($e,we,Pe)=>{const Ae=we[$e]||(we[$e]=[]);return Ae.push(Pe),()=>{const We=Ae.indexOf(Pe);We>=0&&(Ae[We]=Ae[Ae.length-1],Ae.pop())}},st=($e,we)=>(...Pe)=>{const[Ae,We,tt]=ue(Pe),dt=(tt.use||[]).concat(we);return $e(Ae,We,Xc(Gl({},tt),{use:dt}))};J();const Ce=$e=>serialize($e)[0],xe=t.use||($e=>{if($e.status==="pending")throw $e;if($e.status==="fulfilled")return $e.value;throw $e.status==="rejected"?$e.reason:($e.status="pending",$e.then(we=>{$e.status="fulfilled",$e.value=we},we=>{$e.status="rejected",$e.reason=we}),$e)}),A={dedupe:!0},ie=($e,we,Pe)=>{const{cache:Ae,compare:We,suspense:tt,fallbackData:dt,revalidateOnMount:At,revalidateIfStale:vt,refreshInterval:qt,refreshWhenHidden:kt,refreshWhenOffline:wt,keepPreviousData:Kt}=Pe,[Ct,Ge,Et,Ut]=d.get(Ae),[gt,cn]=I($e),Ft=(0,t.useRef)(!1),en=(0,t.useRef)(!1),Yt=(0,t.useRef)(gt),dn=(0,t.useRef)(we),pn=(0,t.useRef)(Pe),rn=()=>pn.current,On=()=>rn().isVisible()&&rn().isOnline(),[An,Jn,Rr,er]=j(Ae,gt),ct=(0,t.useRef)({}).current,et=c(dt)?Pe.fallback[gt]:dt,Ve=(nt,xt)=>{for(const Bt in ct){const bt=Bt;if(bt==="data"){if(!We(nt[bt],xt[bt])&&(!c(nt[bt])||!We(ir,xt[bt])))return!1}else if(xt[bt]!==nt[bt])return!1}return!0},Jt=(0,t.useMemo)(()=>{const nt=(()=>!gt||!we?!1:c(At)?rn().isPaused()||tt?!1:c(vt)?!0:vt:At)(),xt=Dn=>{const Gn=l(Dn);return delete Gn._k,nt?Gl({isValidating:!0,isLoading:!0},Gn):Gn},Bt=An(),bt=er(),zt=xt(Bt),Vt=Bt===bt?zt:xt(bt);let nn=zt;return[()=>{const Dn=xt(An());return Ve(Dn,nn)?(nn.data=Dn.data,nn.isLoading=Dn.isLoading,nn.isValidating=Dn.isValidating,nn.error=Dn.error,nn):(nn=Dn,Dn)},()=>Vt]},[Ae,gt]),ht=(0,r.useSyncExternalStore)((0,t.useCallback)(nt=>Rr(gt,(xt,Bt)=>{Ve(Bt,xt)||nt()}),[Ae,gt]),Jt[0],Jt[1]),un=!Ft.current,Tn=Ct[gt]&&Ct[gt].length>0,Un=ht.data,rr=c(Un)?et:Un,or=ht.error,fr=(0,t.useRef)(rr),ir=Kt?c(Un)?fr.current:Un:rr,gr=(()=>Tn&&!c(or)?!1:un&&!c(At)?At:rn().isPaused()?!1:tt?c(rr)?!1:vt:c(rr)||vt)(),sr=!!(gt&&we&&un&&gr),fn=c(ht.isValidating)?sr:ht.isValidating,tr=c(ht.isLoading)?sr:ht.isLoading,gn=(0,t.useCallback)(nt=>Lu(this,null,function*(){const xt=dn.current;if(!gt||!xt||en.current||rn().isPaused())return!1;let Bt,bt,zt=!0;const Vt=nt||{},nn=!Et[gt]||!Vt.dedupe,Dn=()=>ne?!en.current&>===Yt.current&&Ft.current:gt===Yt.current,Gn={isValidating:!1,isLoading:!1},Vn=()=>{Jn(Gn)},Fn=()=>{const Bn=Et[gt];Bn&&Bn[1]===bt&&delete Et[gt]},mn={isValidating:!0};c(An().data)&&(mn.isLoading=!0);try{if(nn&&(Jn(mn),Pe.loadingTimeout&&c(An().data)&&setTimeout(()=>{zt&&Dn()&&rn().onLoadingSlow(gt,Pe)},Pe.loadingTimeout),Et[gt]=[xt(cn),z()]),[Bt,bt]=Et[gt],Bt=yield Bt,nn&&setTimeout(Fn,Pe.dedupingInterval),!Et[gt]||Et[gt][1]!==bt)return nn&&Dn()&&rn().onDiscarded(gt),!1;Gn.error=a;const Bn=Ge[gt];if(!c(Bn)&&(bt<=Bn[0]||bt<=Bn[1]||Bn[1]===0))return Vn(),nn&&Dn()&&rn().onDiscarded(gt),!1;const Mn=An().data;Gn.data=We(Mn,Bt)?Mn:Bt,nn&&Dn()&&rn().onSuccess(Bt,gt,Pe)}catch(Bn){Fn();const Mn=rn(),{shouldRetryOnError:jr}=Mn;Mn.isPaused()||(Gn.error=Bn,nn&&Dn()&&(Mn.onError(Bn,gt,Mn),(jr===!0||u(jr)&&jr(Bn))&&(!rn().revalidateOnFocus||!rn().revalidateOnReconnect||On())&&Mn.onErrorRetry(Bn,gt,Mn,De=>{const Te=Ct[gt];Te&&Te[0]&&Te[0](he.ERROR_REVALIDATE_EVENT,De)},{retryCount:(Vt.retryCount||0)+1,dedupe:!0})))}return zt=!1,Vn(),!0}),[gt,Ae]),an=(0,t.useCallback)((...nt)=>Re(Ae,Yt.current,...nt),[]);if(L(()=>{dn.current=we,pn.current=Pe,c(Un)||(fr.current=Un)}),L(()=>{if(!gt)return;const nt=gn.bind(a,A);let xt=0;const bt=Ne(gt,Ct,(zt,Vt={})=>{if(zt==he.FOCUS_EVENT){const nn=Date.now();rn().revalidateOnFocus&&nn>xt&&On()&&(xt=nn+rn().focusThrottleInterval,nt())}else if(zt==he.RECONNECT_EVENT)rn().revalidateOnReconnect&&On()&&nt();else{if(zt==he.MUTATE_EVENT)return gn();if(zt==he.ERROR_REVALIDATE_EVENT)return gn(Vt)}});return en.current=!1,Yt.current=gt,Ft.current=!0,Jn({_k:cn}),gr&&(c(rr)||Q?nt():q(nt)),()=>{en.current=!0,bt()}},[gt]),L(()=>{let nt;function xt(){const bt=u(qt)?qt(An().data):qt;bt&&nt!==-1&&(nt=setTimeout(Bt,bt))}function Bt(){!An().error&&(kt||rn().isVisible())&&(wt||rn().isOnline())?gn(A).then(xt):xt()}return xt(),()=>{nt&&(clearTimeout(nt),nt=-1)}},[qt,kt,wt,gt]),(0,t.useDebugValue)(ir),tt&&c(rr)&>){if(!ne&&Q)throw new Error("Fallback data is required when using suspense in SSR.");dn.current=we,pn.current=Pe,en.current=!1;const nt=Ut[gt];if(!c(nt)){const xt=an(nt);xe(xt)}if(c(or)){const xt=gn(A);c(ir)||(xt.status="fulfilled",xt.value=!0),xe(xt)}else throw or}return{mutate:an,get data(){return ct.data=!0,ir},get error(){return ct.error=!0,or},get isValidating(){return ct.isValidating=!0,fn},get isLoading(){return ct.isLoading=!0,tr}}},ke=s.defineProperty(M,"defaultValue",{value:Xe}),Fe=de(ie)}},Ho={};function be(v){var g=Ho[v];if(g!==void 0)return g.exports;var e=Ho[v]={id:v,loaded:!1,exports:{}};return di[v].call(e.exports,e,e.exports,be),e.loaded=!0,e.exports}be.m=di,function(){be.n=function(v){var g=v&&v.__esModule?function(){return v.default}:function(){return v};return be.d(g,{a:g}),g}}(),function(){var v=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},g;be.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var r=Object.create(null);be.r(r);var o={};g=g||[null,v({}),v([]),v(v)];for(var a=t&2&&e;typeof a=="object"&&!~g.indexOf(a);a=v(a))Object.getOwnPropertyNames(a).forEach(function(s){o[s]=function(){return e[s]}});return o.default=function(){return e},be.d(r,o),r}}(),function(){be.d=function(v,g){for(var e in g)be.o(g,e)&&!be.o(v,e)&&Object.defineProperty(v,e,{enumerable:!0,get:g[e]})}}(),function(){be.f={},be.e=function(v){return Promise.all(Object.keys(be.f).reduce(function(g,e){return be.f[e](v,g),g},[]))}}(),function(){be.u=function(v){return""+({185:"p__Welcome",301:"t__plugin-layout__Layout",366:"p__User__Login__index",371:"p__DeviceOwnerApp",455:"p__SuperAdmin",526:"p__Proxy__ProxyUserManagement",542:"p__AdvRecordListV2",557:"p__Bind",571:"p__404",731:"p__App__AppManagement",816:"p__AdminManagement",857:"p__AdvRecordList",903:"p__UserManagement",990:"p__Proxy__ProxyAdvRecordListV2"}[v]||v)+"."+{51:"a2ea1b3b",134:"6fc81d91",169:"57647c7d",185:"61596037",301:"4594a64b",343:"7ff141fb",366:"9d3ab92e",371:"c61abcd9",390:"41467286",393:"38316f72",397:"fb5f72c1",455:"e8eab676",526:"f7d74b28",531:"4c68f902",539:"49b7b156",542:"c183b707",557:"b6ee068f",559:"016bfdbb",571:"0c100574",635:"20e45f05",731:"8c2eb6d0",816:"3daf3600",822:"4ba8fa04",841:"614ef4c0",857:"fc092f59",903:"7a38d351",905:"6e225d1b",930:"fca7adbf",942:"561ac28f",990:"2e1ec116"}[v]+".async.js"}}(),function(){be.miniCssF=function(v){return"t__plugin-layout__Layout.6cae69f5.chunk.css"}}(),function(){be.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(v){if(typeof window=="object")return window}}()}(),function(){be.o=function(v,g){return Object.prototype.hasOwnProperty.call(v,g)}}(),function(){var v={},g="ant-design-pro:";be.l=function(e,t,r,o){if(v[e]){v[e].push(t);return}var a,s;if(r!==void 0)for(var c=document.getElementsByTagName("script"),u=0;u=0)&&(s[u]=o[u]);return s}function r(o,a){if(o==null)return{};var s=t(o,a),c,u;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}},81758:function(v,g,e){"use strict";e.d(g,{J$:function(){return ke},ZP:function(){return Fe},kY:function(){return _}});var t=e(67294),r=e(61688);const o=()=>{},a=o(),s=Object,c=$e=>$e===a,u=$e=>typeof $e=="function",l=($e,we)=>Gl(Gl({},$e),we),f=$e=>u($e.then),p=new WeakMap;let y=0;const m=$e=>{const we=typeof $e,Pe=$e&&$e.constructor,Ae=Pe==Date;let We,tt;if(s($e)===$e&&!Ae&&Pe!=RegExp){if(We=p.get($e),We)return We;if(We=++y+"~",p.set($e,We),Pe==Array){for(We="@",tt=0;tt<$e.length;tt++)We+=m($e[tt])+",";p.set($e,We)}if(Pe==s){We="#";const dt=s.keys($e).sort();for(;!c(tt=dt.pop());)c($e[tt])||(We+=tt+":"+m($e[tt])+",");p.set($e,We)}}else We=Ae?$e.toJSON():we=="symbol"?$e.toString():we=="string"?JSON.stringify($e):""+$e;return We},d=new WeakMap,b={},C={},S="undefined",x=typeof window!=S,w=typeof document!=S,O=()=>x&&typeof window.requestAnimationFrame!=S,j=($e,we)=>{const Pe=d.get($e);return[()=>!c(we)&&$e.get(we)||b,Ae=>{if(!c(we)){const We=$e.get(we);we in C||(C[we]=We),Pe[5](we,l(We,Ae),We||b)}},Pe[6],()=>!c(we)&&we in C?C[we]:!c(we)&&$e.get(we)||b]};let E=!0;const $=()=>E,[N,oe]=x&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],Z=()=>{const $e=w&&document.visibilityState;return c($e)||$e!=="hidden"},Y=$e=>(w&&document.addEventListener("visibilitychange",$e),N("focus",$e),()=>{w&&document.removeEventListener("visibilitychange",$e),oe("focus",$e)}),te=$e=>{const we=()=>{E=!0,$e()},Pe=()=>{E=!1};return N("online",we),N("offline",Pe),()=>{oe("online",we),oe("offline",Pe)}},ee={isOnline:$,isVisible:Z},B={initFocus:Y,initReconnect:te},ne=!t.useId,Q=!x||"Deno"in window,q=$e=>O()?window.requestAnimationFrame($e):setTimeout($e,1),L=Q?t.useEffect:t.useLayoutEffect,F=typeof navigator!="undefined"&&navigator.connection,T=!Q&&F&&(["slow-2g","2g"].includes(F.effectiveType)||F.saveData),I=$e=>{if(u($e))try{$e=$e()}catch(Pe){$e=""}const we=$e;return $e=typeof $e=="string"?$e:(Array.isArray($e)?$e.length:$e)?m($e):"",[$e,we]};let R=0;const z=()=>++R,ae=0,X=1,G=2;var he={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:ae,MUTATE_EVENT:G,RECONNECT_EVENT:X};function Re(...$e){return Lu(this,null,function*(){const[we,Pe,Ae,We]=$e,tt=l({populateCache:!0,throwOnError:!0},typeof We=="boolean"?{revalidate:We}:We||{});let dt=tt.populateCache;const At=tt.rollbackOnError;let vt=tt.optimisticData;const qt=Kt=>typeof At=="function"?At(Kt):At!==!1,kt=tt.throwOnError;if(u(Pe)){const Kt=Pe,Ct=[],Ge=we.keys();for(const Et of Ge)!/^\$(inf|sub)\$/.test(Et)&&Kt(we.get(Et)._k)&&Ct.push(Et);return Promise.all(Ct.map(wt))}return wt(Pe);function wt(Kt){return Lu(this,null,function*(){const[Ct]=I(Kt);if(!Ct)return;const[Ge,Et]=j(we,Ct),[Ut,gt,cn,Ft]=d.get(we),en=()=>{const er=Ut[Ct];return(u(tt.revalidate)?tt.revalidate(Ge().data,Kt):tt.revalidate!==!1)&&(delete cn[Ct],delete Ft[Ct],er&&er[0])?er[0](G).then(()=>Ge().data):Ge().data};if($e.length<3)return en();let Yt=Ae,dn;const pn=z();gt[Ct]=[pn,0];const rn=!c(vt),On=Ge(),An=On.data,Jn=On._c,Rr=c(Jn)?An:Jn;if(rn&&(vt=u(vt)?vt(Rr,An):vt,Et({data:vt,_c:Rr})),u(Yt))try{Yt=Yt(Rr)}catch(er){dn=er}if(Yt&&f(Yt))if(Yt=yield Yt.catch(er=>{dn=er}),pn!==gt[Ct][0]){if(dn)throw dn;return Yt}else dn&&rn&&qt(dn)&&(dt=!0,Et({data:Rr,_c:a}));if(dt&&!dn)if(u(dt)){const er=dt(Yt,Rr);Et({data:er,error:a,_c:a})}else Et({data:Yt,error:a,_c:a});if(gt[Ct][1]=z(),Promise.resolve(en()).then(()=>{Et({_c:a})}),dn){if(kt)throw dn;return}return Yt})}})}const Ie=($e,we)=>{for(const Pe in $e)$e[Pe][0]&&$e[Pe][0](we)},Ze=($e,we)=>{if(!d.has($e)){const Pe=l(B,we),Ae={},We=Re.bind(a,$e);let tt=o;const dt={},At=(kt,wt)=>{const Kt=dt[kt]||[];return dt[kt]=Kt,Kt.push(wt),()=>Kt.splice(Kt.indexOf(wt),1)},vt=(kt,wt,Kt)=>{$e.set(kt,wt);const Ct=dt[kt];if(Ct)for(const Ge of Ct)Ge(wt,Kt)},qt=()=>{if(!d.has($e)&&(d.set($e,[Ae,{},{},{},We,vt,At]),!Q)){const kt=Pe.initFocus(setTimeout.bind(a,Ie.bind(a,Ae,ae))),wt=Pe.initReconnect(setTimeout.bind(a,Ie.bind(a,Ae,X)));tt=()=>{kt&&kt(),wt&&wt(),d.delete($e)}}};return qt(),[$e,We,qt,tt]}return[$e,d.get($e)[4]]},ot=($e,we,Pe,Ae,We)=>{const tt=Pe.errorRetryCount,dt=We.retryCount,At=~~((Math.random()+.5)*(1<<(dt<8?dt:8)))*Pe.errorRetryInterval;!c(tt)&&dt>tt||setTimeout(Ae,At,We)},Je=($e,we)=>m($e)==m(we),[He,qe]=Ze(new Map),Xe=l({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:ot,onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:T?5e3:3e3,compare:Je,isPaused:()=>!1,cache:He,mutate:qe,fallback:{}},ee),le=($e,we)=>{const Pe=l($e,we);if(we){const{use:Ae,fallback:We}=$e,{use:tt,fallback:dt}=we;Ae&&tt&&(Pe.use=Ae.concat(tt)),We&&dt&&(Pe.fallback=l(We,dt))}return Pe},U=(0,t.createContext)({}),M=$e=>{const{value:we}=$e,Pe=(0,t.useContext)(U),Ae=u(we),We=(0,t.useMemo)(()=>Ae?we(Pe):we,[Ae,Pe,we]),tt=(0,t.useMemo)(()=>Ae?We:le(Pe,We),[Ae,Pe,We]),dt=We&&We.provider,At=(0,t.useRef)(a);dt&&!At.current&&(At.current=Ze(dt(tt.cache||He),We));const vt=At.current;return vt&&(tt.cache=vt[0],tt.mutate=vt[1]),L(()=>{if(vt)return vt[2]&&vt[2](),vt[3]},[]),(0,t.createElement)(U.Provider,l($e,{value:tt}))},D="$inf$",K=x&&window.__SWR_DEVTOOLS_USE__,k=K?window.__SWR_DEVTOOLS_USE__:[],J=()=>{K&&(window.__SWR_DEVTOOLS_REACT__=t)},ue=$e=>u($e[1])?[$e[0],$e[1],$e[2]||{}]:[$e[0],null,($e[1]===null?$e[2]:$e[1])||{}],_=()=>l(Xe,(0,t.useContext)(U)),V=($e,we)=>{const[Pe,Ae]=I($e),[,,,We]=d.get(He);if(We[Pe])return We[Pe];const tt=we(Ae);return We[Pe]=tt,tt},se=$e=>(we,Pe,Ae)=>$e(we,Pe&&((...tt)=>{const[dt]=I(we),[,,,At]=d.get(He);if(dt.startsWith(D))return Pe(...tt);const vt=At[dt];return c(vt)?Pe(...tt):(delete At[dt],vt)}),Ae),pe=k.concat(se),de=$e=>function(...Pe){const Ae=_(),[We,tt,dt]=ue(Pe),At=le(Ae,dt);let vt=$e;const{use:qt}=At,kt=(qt||[]).concat(pe);for(let wt=kt.length;wt--;)vt=kt[wt](vt);return vt(We,tt||At.fetcher||null,At)},Ne=($e,we,Pe)=>{const Ae=we[$e]||(we[$e]=[]);return Ae.push(Pe),()=>{const We=Ae.indexOf(Pe);We>=0&&(Ae[We]=Ae[Ae.length-1],Ae.pop())}},st=($e,we)=>(...Pe)=>{const[Ae,We,tt]=ue(Pe),dt=(tt.use||[]).concat(we);return $e(Ae,We,Xc(Gl({},tt),{use:dt}))};J();const Ce=$e=>serialize($e)[0],xe=t.use||($e=>{if($e.status==="pending")throw $e;if($e.status==="fulfilled")return $e.value;throw $e.status==="rejected"?$e.reason:($e.status="pending",$e.then(we=>{$e.status="fulfilled",$e.value=we},we=>{$e.status="rejected",$e.reason=we}),$e)}),A={dedupe:!0},ie=($e,we,Pe)=>{const{cache:Ae,compare:We,suspense:tt,fallbackData:dt,revalidateOnMount:At,revalidateIfStale:vt,refreshInterval:qt,refreshWhenHidden:kt,refreshWhenOffline:wt,keepPreviousData:Kt}=Pe,[Ct,Ge,Et,Ut]=d.get(Ae),[gt,cn]=I($e),Ft=(0,t.useRef)(!1),en=(0,t.useRef)(!1),Yt=(0,t.useRef)(gt),dn=(0,t.useRef)(we),pn=(0,t.useRef)(Pe),rn=()=>pn.current,On=()=>rn().isVisible()&&rn().isOnline(),[An,Jn,Rr,er]=j(Ae,gt),ct=(0,t.useRef)({}).current,et=c(dt)?Pe.fallback[gt]:dt,Ve=(nt,xt)=>{for(const Bt in ct){const bt=Bt;if(bt==="data"){if(!We(nt[bt],xt[bt])&&(!c(nt[bt])||!We(ir,xt[bt])))return!1}else if(xt[bt]!==nt[bt])return!1}return!0},Jt=(0,t.useMemo)(()=>{const nt=(()=>!gt||!we?!1:c(At)?rn().isPaused()||tt?!1:c(vt)?!0:vt:At)(),xt=Dn=>{const Gn=l(Dn);return delete Gn._k,nt?Gl({isValidating:!0,isLoading:!0},Gn):Gn},Bt=An(),bt=er(),zt=xt(Bt),Vt=Bt===bt?zt:xt(bt);let nn=zt;return[()=>{const Dn=xt(An());return Ve(Dn,nn)?(nn.data=Dn.data,nn.isLoading=Dn.isLoading,nn.isValidating=Dn.isValidating,nn.error=Dn.error,nn):(nn=Dn,Dn)},()=>Vt]},[Ae,gt]),ht=(0,r.useSyncExternalStore)((0,t.useCallback)(nt=>Rr(gt,(xt,Bt)=>{Ve(Bt,xt)||nt()}),[Ae,gt]),Jt[0],Jt[1]),un=!Ft.current,Tn=Ct[gt]&&Ct[gt].length>0,Un=ht.data,rr=c(Un)?et:Un,or=ht.error,fr=(0,t.useRef)(rr),ir=Kt?c(Un)?fr.current:Un:rr,gr=(()=>Tn&&!c(or)?!1:un&&!c(At)?At:rn().isPaused()?!1:tt?c(rr)?!1:vt:c(rr)||vt)(),sr=!!(gt&&we&&un&&gr),fn=c(ht.isValidating)?sr:ht.isValidating,tr=c(ht.isLoading)?sr:ht.isLoading,gn=(0,t.useCallback)(nt=>Lu(this,null,function*(){const xt=dn.current;if(!gt||!xt||en.current||rn().isPaused())return!1;let Bt,bt,zt=!0;const Vt=nt||{},nn=!Et[gt]||!Vt.dedupe,Dn=()=>ne?!en.current&>===Yt.current&&Ft.current:gt===Yt.current,Gn={isValidating:!1,isLoading:!1},Vn=()=>{Jn(Gn)},Fn=()=>{const Bn=Et[gt];Bn&&Bn[1]===bt&&delete Et[gt]},mn={isValidating:!0};c(An().data)&&(mn.isLoading=!0);try{if(nn&&(Jn(mn),Pe.loadingTimeout&&c(An().data)&&setTimeout(()=>{zt&&Dn()&&rn().onLoadingSlow(gt,Pe)},Pe.loadingTimeout),Et[gt]=[xt(cn),z()]),[Bt,bt]=Et[gt],Bt=yield Bt,nn&&setTimeout(Fn,Pe.dedupingInterval),!Et[gt]||Et[gt][1]!==bt)return nn&&Dn()&&rn().onDiscarded(gt),!1;Gn.error=a;const Bn=Ge[gt];if(!c(Bn)&&(bt<=Bn[0]||bt<=Bn[1]||Bn[1]===0))return Vn(),nn&&Dn()&&rn().onDiscarded(gt),!1;const Mn=An().data;Gn.data=We(Mn,Bt)?Mn:Bt,nn&&Dn()&&rn().onSuccess(Bt,gt,Pe)}catch(Bn){Fn();const Mn=rn(),{shouldRetryOnError:jr}=Mn;Mn.isPaused()||(Gn.error=Bn,nn&&Dn()&&(Mn.onError(Bn,gt,Mn),(jr===!0||u(jr)&&jr(Bn))&&(!rn().revalidateOnFocus||!rn().revalidateOnReconnect||On())&&Mn.onErrorRetry(Bn,gt,Mn,De=>{const Te=Ct[gt];Te&&Te[0]&&Te[0](he.ERROR_REVALIDATE_EVENT,De)},{retryCount:(Vt.retryCount||0)+1,dedupe:!0})))}return zt=!1,Vn(),!0}),[gt,Ae]),an=(0,t.useCallback)((...nt)=>Re(Ae,Yt.current,...nt),[]);if(L(()=>{dn.current=we,pn.current=Pe,c(Un)||(fr.current=Un)}),L(()=>{if(!gt)return;const nt=gn.bind(a,A);let xt=0;const bt=Ne(gt,Ct,(zt,Vt={})=>{if(zt==he.FOCUS_EVENT){const nn=Date.now();rn().revalidateOnFocus&&nn>xt&&On()&&(xt=nn+rn().focusThrottleInterval,nt())}else if(zt==he.RECONNECT_EVENT)rn().revalidateOnReconnect&&On()&&nt();else{if(zt==he.MUTATE_EVENT)return gn();if(zt==he.ERROR_REVALIDATE_EVENT)return gn(Vt)}});return en.current=!1,Yt.current=gt,Ft.current=!0,Jn({_k:cn}),gr&&(c(rr)||Q?nt():q(nt)),()=>{en.current=!0,bt()}},[gt]),L(()=>{let nt;function xt(){const bt=u(qt)?qt(An().data):qt;bt&&nt!==-1&&(nt=setTimeout(Bt,bt))}function Bt(){!An().error&&(kt||rn().isVisible())&&(wt||rn().isOnline())?gn(A).then(xt):xt()}return xt(),()=>{nt&&(clearTimeout(nt),nt=-1)}},[qt,kt,wt,gt]),(0,t.useDebugValue)(ir),tt&&c(rr)&>){if(!ne&&Q)throw new Error("Fallback data is required when using suspense in SSR.");dn.current=we,pn.current=Pe,en.current=!1;const nt=Ut[gt];if(!c(nt)){const xt=an(nt);xe(xt)}if(c(or)){const xt=gn(A);c(ir)||(xt.status="fulfilled",xt.value=!0),xe(xt)}else throw or}return{mutate:an,get data(){return ct.data=!0,ir},get error(){return ct.error=!0,or},get isValidating(){return ct.isValidating=!0,fn},get isLoading(){return ct.isLoading=!0,tr}}},ke=s.defineProperty(M,"defaultValue",{value:Xe}),Fe=de(ie)}},Ho={};function be(v){var g=Ho[v];if(g!==void 0)return g.exports;var e=Ho[v]={id:v,loaded:!1,exports:{}};return di[v].call(e.exports,e,e.exports,be),e.loaded=!0,e.exports}be.m=di,function(){be.n=function(v){var g=v&&v.__esModule?function(){return v.default}:function(){return v};return be.d(g,{a:g}),g}}(),function(){var v=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},g;be.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var r=Object.create(null);be.r(r);var o={};g=g||[null,v({}),v([]),v(v)];for(var a=t&2&&e;typeof a=="object"&&!~g.indexOf(a);a=v(a))Object.getOwnPropertyNames(a).forEach(function(s){o[s]=function(){return e[s]}});return o.default=function(){return e},be.d(r,o),r}}(),function(){be.d=function(v,g){for(var e in g)be.o(g,e)&&!be.o(v,e)&&Object.defineProperty(v,e,{enumerable:!0,get:g[e]})}}(),function(){be.f={},be.e=function(v){return Promise.all(Object.keys(be.f).reduce(function(g,e){return be.f[e](v,g),g},[]))}}(),function(){be.u=function(v){return""+({185:"p__Welcome",301:"t__plugin-layout__Layout",366:"p__User__Login__index",371:"p__DeviceOwnerApp",455:"p__SuperAdmin",526:"p__Proxy__ProxyUserManagement",542:"p__AdvRecordListV2",557:"p__Bind",571:"p__404",731:"p__App__AppManagement",816:"p__AdminManagement",857:"p__AdvRecordList",903:"p__UserManagement",990:"p__Proxy__ProxyAdvRecordListV2"}[v]||v)+"."+{51:"a2ea1b3b",134:"6fc81d91",169:"57647c7d",185:"61596037",301:"4594a64b",343:"7ff141fb",366:"9d3ab92e",371:"c61abcd9",390:"41467286",393:"38316f72",397:"fb5f72c1",455:"b23d2340",526:"09105256",531:"4c68f902",539:"49b7b156",542:"bed7a82c",557:"b6ee068f",559:"016bfdbb",571:"0c100574",635:"20e45f05",731:"8c2eb6d0",816:"aabf9f6f",822:"4ba8fa04",841:"614ef4c0",857:"fc092f59",903:"656d1839",905:"6e225d1b",930:"fca7adbf",942:"561ac28f",990:"109e8e16"}[v]+".async.js"}}(),function(){be.miniCssF=function(v){return"t__plugin-layout__Layout.6cae69f5.chunk.css"}}(),function(){be.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(v){if(typeof window=="object")return window}}()}(),function(){be.o=function(v,g){return Object.prototype.hasOwnProperty.call(v,g)}}(),function(){var v={},g="ant-design-pro:";be.l=function(e,t,r,o){if(v[e]){v[e].push(t);return}var a,s;if(r!==void 0)for(var c=document.getElementsByTagName("script"),u=0;uqn.length)&&(Yn=qn.length);for(var ye=0,je=new Array(Yn);ye0&&arguments[0]!==void 0?arguments[0]:"";return qn.endsWith("/")?qn:"".concat(qn,"/")}var Na=be(49647),Ga=be(58096),ka=fa.createContext(void 0);function no(){return fa.useContext(ka)}var bo=["redirect"];function Ro(qn){var Yn=qn.routesById,ye=qn.parentId,je=qn.routeComponents;return Object.keys(Yn).filter(function(W){return Yn[W].parentId===ye}).map(function(W){var ut=Ni(Hr({route:Yn[W],routeComponent:je[W],loadingComponent:qn.loadingComponent,reactRouter5Compat:qn.reactRouter5Compat},qn.reactRouter5Compat&&{hasChildren:Object.keys(Yn).filter(function(Pn){return Yn[Pn].parentId===W}).length>0})),Ot=Ro({routesById:Yn,routeComponents:je,parentId:ut.id,loadingComponent:qn.loadingComponent,reactRouter5Compat:qn.reactRouter5Compat});return Ot.length>0&&(ut.children=Ot,ut.routes=Ot),ut})}function mo(qn){var Yn=(0,Za.UO)(),ye=(0,Za.Gn)(qn.to,Yn),je=(0,so.T$)(),W=(0,Za.TH)();if(je!=null&&je.keepQuery){var ut=W.search+W.hash;ye+=ut}var Ot=Hr(Hr({},qn),{},{to:ye});return fa.createElement(Za.Fg,(0,Ga.Z)({replace:!0},Ot))}function Ni(qn){var Yn=qn.route,ye=Yn.redirect,je=(0,Na.Z)(Yn,bo),W=qn.reactRouter5Compat?Ei:Qi;return Hr({element:ye?fa.createElement(mo,{to:ye}):fa.createElement(ka.Provider,{value:{route:qn.route}},fa.createElement(W,{loader:fa.memo(qn.routeComponent),loadingComponent:qn.loadingComponent||Ci,hasChildren:qn.hasChildren}))},je)}function Ci(){return fa.createElement("div",null)}function Ei(qn){var Yn=no(),ye=Yn.route,je=(0,so.Ov)(),W=je.history,ut=je.clientRoutes,Ot=(0,Za.UO)(),Pn={params:Ot,isExact:!0,path:ye.path,url:W.location.pathname},Qn=qn.loader;return fa.createElement(fa.Suspense,{fallback:fa.createElement(qn.loadingComponent,null)},fa.createElement(Qn,{location:W.location,match:Pn,history:W,params:Ot,route:ye,routes:ut},qn.hasChildren&&fa.createElement(Za.j3,null)))}function Qi(qn){var Yn=qn.loader;return fa.createElement(fa.Suspense,{fallback:fa.createElement(qn.loadingComponent,null)},fa.createElement(Yn,null))}var Ji=null;function Hs(){return Ji}function Ps(qn){var Yn=qn.history,ye=fa.useState({action:Yn.action,location:Yn.location}),je=Yo(ye,2),W=je[0],ut=je[1];return(0,fa.useLayoutEffect)(function(){return Yn.listen(ut)},[Yn]),(0,fa.useLayoutEffect)(function(){function Ot(Pn){qn.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:qn.routes,clientRoutes:qn.clientRoutes,location:Pn.location,action:Pn.action,basename:qn.basename,isFirst:!!Pn.isFirst}})}return Ot({location:W.location,action:W.action,isFirst:!0}),Yn.listen(Ot)},[Yn,qn.routes,qn.clientRoutes]),fa.createElement(Za.F0,{navigator:Yn,location:W.location,basename:qn.basename},qn.children)}function Os(){var qn=(0,so.Ov)(),Yn=qn.clientRoutes;return(0,Za.V$)(Yn)}var Oe=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Se=function(Yn,ye){var je=Yn.basename||"/",W=Ro({routesById:Yn.routes,routeComponents:Yn.routeComponents,loadingComponent:Yn.loadingComponent,reactRouter5Compat:Yn.reactRouter5Compat});Yn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:W}});for(var ut=fa.createElement(Ps,{basename:je,pluginManager:Yn.pluginManager,routes:Yn.routes,clientRoutes:W,history:Yn.history},ye),Ot=0,Pn=Oe;Ot0&&arguments[0]!==void 0?arguments[0]:"";return qn.endsWith("/")?qn:"".concat(qn,"/")}var Na=be(49647),Ga=be(58096),ka=fa.createContext(void 0);function no(){return fa.useContext(ka)}var bo=["redirect"];function Ro(qn){var Yn=qn.routesById,ye=qn.parentId,je=qn.routeComponents;return Object.keys(Yn).filter(function(W){return Yn[W].parentId===ye}).map(function(W){var ut=Ni(Hr({route:Yn[W],routeComponent:je[W],loadingComponent:qn.loadingComponent,reactRouter5Compat:qn.reactRouter5Compat},qn.reactRouter5Compat&&{hasChildren:Object.keys(Yn).filter(function(Pn){return Yn[Pn].parentId===W}).length>0})),Ot=Ro({routesById:Yn,routeComponents:je,parentId:ut.id,loadingComponent:qn.loadingComponent,reactRouter5Compat:qn.reactRouter5Compat});return Ot.length>0&&(ut.children=Ot,ut.routes=Ot),ut})}function mo(qn){var Yn=(0,Za.UO)(),ye=(0,Za.Gn)(qn.to,Yn),je=(0,so.T$)(),W=(0,Za.TH)();if(je!=null&&je.keepQuery){var ut=W.search+W.hash;ye+=ut}var Ot=Hr(Hr({},qn),{},{to:ye});return fa.createElement(Za.Fg,(0,Ga.Z)({replace:!0},Ot))}function Ni(qn){var Yn=qn.route,ye=Yn.redirect,je=(0,Na.Z)(Yn,bo),W=qn.reactRouter5Compat?Ei:Qi;return Hr({element:ye?fa.createElement(mo,{to:ye}):fa.createElement(ka.Provider,{value:{route:qn.route}},fa.createElement(W,{loader:fa.memo(qn.routeComponent),loadingComponent:qn.loadingComponent||Ci,hasChildren:qn.hasChildren}))},je)}function Ci(){return fa.createElement("div",null)}function Ei(qn){var Yn=no(),ye=Yn.route,je=(0,so.Ov)(),W=je.history,ut=je.clientRoutes,Ot=(0,Za.UO)(),Pn={params:Ot,isExact:!0,path:ye.path,url:W.location.pathname},Qn=qn.loader;return fa.createElement(fa.Suspense,{fallback:fa.createElement(qn.loadingComponent,null)},fa.createElement(Qn,{location:W.location,match:Pn,history:W,params:Ot,route:ye,routes:ut},qn.hasChildren&&fa.createElement(Za.j3,null)))}function Qi(qn){var Yn=qn.loader;return fa.createElement(fa.Suspense,{fallback:fa.createElement(qn.loadingComponent,null)},fa.createElement(Yn,null))}var Ji=null;function Hs(){return Ji}function Ps(qn){var Yn=qn.history,ye=fa.useState({action:Yn.action,location:Yn.location}),je=Yo(ye,2),W=je[0],ut=je[1];return(0,fa.useLayoutEffect)(function(){return Yn.listen(ut)},[Yn]),(0,fa.useLayoutEffect)(function(){function Ot(Pn){qn.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:qn.routes,clientRoutes:qn.clientRoutes,location:Pn.location,action:Pn.action,basename:qn.basename,isFirst:!!Pn.isFirst}})}return Ot({location:W.location,action:W.action,isFirst:!0}),Yn.listen(Ot)},[Yn,qn.routes,qn.clientRoutes]),fa.createElement(Za.F0,{navigator:Yn,location:W.location,basename:qn.basename},qn.children)}function Os(){var qn=(0,so.Ov)(),Yn=qn.clientRoutes;return(0,Za.V$)(Yn)}var Oe=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Se=function(Yn,ye){var je=Yn.basename||"/",W=Ro({routesById:Yn.routes,routeComponents:Yn.routeComponents,loadingComponent:Yn.loadingComponent,reactRouter5Compat:Yn.reactRouter5Compat});Yn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:W}});for(var ut=fa.createElement(Ps,{basename:je,pluginManager:Yn.pluginManager,routes:Yn.routes,clientRoutes:W,history:Yn.history},ye),Ot=0,Pn=Oe;Ot { return ; }, }, - { - title: '支付宝名称', - dataIndex: 'name', - hideInSearch: true, - }, - { - title: '支付宝账号', - dataIndex: 'aliPayAccount', - hideInSearch: true, - }, { title: '微信', dataIndex: 'wxOpenId', @@ -60,22 +49,6 @@ const ProxyUserManagement: React.FC = () => { return 未绑定; }, }, - { - title: '总收益(元)', - hideInSearch: true, - dataIndex: 'income', - renderText: (r: number) => { - return formatIncome(r); - }, - }, - { - title: '已提现(元)', - hideInSearch: true, - dataIndex: 'realMoney', - renderText: (r: number) => { - return cent2Yuan(r); - }, - }, { title: '注册时间', hideInSearch: true, diff --git a/src/pages/User/UserInfo.tsx b/src/pages/User/UserInfo.tsx index 0e6be5d..351a4ce 100644 --- a/src/pages/User/UserInfo.tsx +++ b/src/pages/User/UserInfo.tsx @@ -1,7 +1,6 @@ import { Avatar, List, Popover, Row } from 'antd'; import React from 'react'; import { envMsg } from '../../utils/commonUtil'; -import { cent2Yuan, formatIncome } from '../../utils/numberUtils'; export type UserInfoProps = { data: API.UserBo; @@ -13,14 +12,6 @@ const UserInfo: React.FC = (props) => { -

- - {formatIncome(props.data.income)}元 -

-

- - {cent2Yuan(props.data.realMoney)}元 -

{msg.length > 0 && (