From cc588d68d6e1cb60ab203c7fd5325eb9216b155b Mon Sep 17 00:00:00 2001 From: nili Date: Fri, 31 May 2024 22:33:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8F=90=E7=8E=B0=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E7=8A=B6=E6=80=81=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ... => _umi_route_preload_helper.f270acf5.js} | 2 +- dist/index.html | 4 +- ...s => p__AdvRecordListV2.e4a2e08b.async.js} | 2 +- dist/p__App__AppManagement.a12680df.async.js | 1 - dist/p__App__AppManagement.dd12ff21.async.js | 1 + dist/p__MoneyManagement.104db416.async.js | 1 + dist/p__MoneyManagement.27e1a086.async.js | 1 - dist/p__SuperAdmin.aaa0f8d9.async.js | 1 - dist/p__SuperAdmin.bbb0991c.async.js | 1 + dist/p__UserManagement.2c68b70b.async.js | 1 - dist/p__UserManagement.8cf2aa91.async.js | 1 + dist/{umi.eb50940d.js => umi.872ad573.js} | 2 +- src/pages/MoneyManagement.tsx | 45 +++++++++++++++---- src/pages/UserManagement.tsx | 2 +- src/services/matrix/typings.d.ts | 1 + src/utils/commonUtil.ts | 27 ++++++++--- src/utils/numberUtils.ts | 8 ++-- 17 files changed, 72 insertions(+), 29 deletions(-) rename dist/{_umi_route_preload_helper.8fe02674.js => _umi_route_preload_helper.f270acf5.js} (87%) rename dist/{p__AdvRecordListV2.52c0941e.async.js => p__AdvRecordListV2.e4a2e08b.async.js} (98%) delete mode 100644 dist/p__App__AppManagement.a12680df.async.js create mode 100644 dist/p__App__AppManagement.dd12ff21.async.js create mode 100644 dist/p__MoneyManagement.104db416.async.js delete mode 100644 dist/p__MoneyManagement.27e1a086.async.js delete mode 100644 dist/p__SuperAdmin.aaa0f8d9.async.js create mode 100644 dist/p__SuperAdmin.bbb0991c.async.js delete mode 100644 dist/p__UserManagement.2c68b70b.async.js create mode 100644 dist/p__UserManagement.8cf2aa91.async.js rename dist/{umi.eb50940d.js => umi.872ad573.js} (99%) diff --git a/dist/_umi_route_preload_helper.8fe02674.js b/dist/_umi_route_preload_helper.f270acf5.js similarity index 87% rename from dist/_umi_route_preload_helper.8fe02674.js rename to dist/_umi_route_preload_helper.f270acf5.js index 4231df4..dc6acd2 100644 --- a/dist/_umi_route_preload_helper.8fe02674.js +++ b/dist/_umi_route_preload_helper.f270acf5.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],["63.86ff1d28.async.js",63],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["p__MoneyManagement.27e1a086.async.js",190],["247.3fe8fb10.async.js",247],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.ec53e5c4.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["427.f16a2970.async.js",427],["p__SuperAdmin.aaa0f8d9.async.js",455],["531.3d4ec55a.async.js",531],["539.49b7b156.async.js",539],["p__AdvRecordListV2.52c0941e.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.a12680df.async.js",731],["804.139cd916.async.js",804],["p__AdminManagement.123d40ec.async.js",816],["841.614ef4c0.async.js",841],["p__AdvRecordList.8e5ef22c.async.js",857],["p__UserManagement.2c68b70b.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930]],"r":{"/*":[21,29],"/":[2,7,8,20,22,29],"/welcome":[2,3,4,12,20,30,7,8,22,29],"/super":[0,1,2,3,6,14,15,30,7,8,20,22,29],"/adminList":[0,3,14,24,25,2,7,8,20,22,29],"/bind":[2,3,12,13,19,20,30,7,8,22,29],"/appList":[0,1,2,3,6,13,14,16,17,23,24,29,30,7,8,20,22],"/advList/:code":[0,1,2,3,14,16,17,20,24,26,27,29,30,7,8,22],"/advListV2/:code":[0,1,2,3,14,16,17,18,20,24,26,29,30,7,8,22],"/user/:code":[0,1,2,3,14,16,17,24,28,29,30,7,8,20,22],"/money/:code":[0,1,2,3,5,14,16,17,24,29,30,7,8,20,22],"/app/:code":[0,1,2,3,10,14,16,17,20,24,26,29,30,7,8,22],"/user/login":[1,2,3,9,14,16,24]}},{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],["63.86ff1d28.async.js",63],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["p__MoneyManagement.104db416.async.js",190],["247.3fe8fb10.async.js",247],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.ec53e5c4.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["427.f16a2970.async.js",427],["p__SuperAdmin.bbb0991c.async.js",455],["531.3d4ec55a.async.js",531],["539.49b7b156.async.js",539],["p__AdvRecordListV2.e4a2e08b.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.dd12ff21.async.js",731],["804.139cd916.async.js",804],["p__AdminManagement.123d40ec.async.js",816],["841.614ef4c0.async.js",841],["p__AdvRecordList.8e5ef22c.async.js",857],["p__UserManagement.8cf2aa91.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930]],"r":{"/*":[21,29],"/":[2,7,8,20,22,29],"/welcome":[2,3,4,12,20,30,7,8,22,29],"/super":[0,1,2,3,6,14,15,30,7,8,20,22,29],"/adminList":[0,3,14,24,25,2,7,8,20,22,29],"/bind":[2,3,12,13,19,20,30,7,8,22,29],"/appList":[0,1,2,3,6,13,14,16,17,23,24,29,30,7,8,20,22],"/advList/:code":[0,1,2,3,14,16,17,20,24,26,27,29,30,7,8,22],"/advListV2/:code":[0,1,2,3,14,16,17,18,20,24,26,29,30,7,8,22],"/user/:code":[0,1,2,3,14,16,17,24,28,29,30,7,8,20,22],"/money/:code":[0,1,2,3,5,14,16,17,24,29,30,7,8,20,22],"/app/:code":[0,1,2,3,10,14,16,17,20,24,26,29,30,7,8,22],"/user/login":[1,2,3,9,14,16,24]}},{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 d4e8ef0..2594cd1 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__AdvRecordListV2.52c0941e.async.js b/dist/p__AdvRecordListV2.e4a2e08b.async.js similarity index 98% rename from dist/p__AdvRecordListV2.52c0941e.async.js rename to dist/p__AdvRecordListV2.e4a2e08b.async.js index ec1e8f2..eb8a6fb 100644 --- a/dist/p__AdvRecordListV2.52c0941e.async.js +++ b/dist/p__AdvRecordListV2.e4a2e08b.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[542],{86408:function(W,P,e){e.r(P);var p=e(97857),u=e.n(p),D=e(15009),i=e.n(D),g=e(99289),M=e.n(g),Z=e(5574),f=e.n(Z),O=e(48357),F=e(11415),l=e(39615),V=e(90930),$=e(67539),z=e(57470),T=e(64317),N=e(34540),w=e(71230),G=e(7134),Y=e(13169),C=e(16250),H=e(27484),J=e.n(H),Q=e(9220),c=e(67294),X=e(96974),m=e(58125),a=e(85893),k=function(){var R=(0,c.useRef)(),q=(0,c.useState)(void 0),b=f()(q,2),A=b[0],ee=b[1],v=function(){return window.innerWidth<=768},te=(0,c.useState)({deviceId:{show:!v()},appName:{show:!v()},platform:{show:!v()},deviceBrand:{show:!v()},deviceName:{show:!v()},ip:{show:!v()},advType:{show:!v()}}),U=f()(te,2),ae=U[0],ne=U[1],re=[{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:"Default"},2:{text:"\u63D2\u9875",status:"Processing"},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,s){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:s.deviceBrand}),(0,a.jsx)("p",{children:s.deviceName})]})}},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,renderText:function(t,s){var _,o,r;if(s.user)return(0,a.jsxs)(w.Z,{children:[(0,a.jsx)(G.C,{src:(_=s.user)===null||_===void 0?void 0:_.avatar}),(0,a.jsxs)("p",{style:{fontSize:12},children:["id:",s.user.id,(0,a.jsx)("br",{}),((o=s.user)===null||o===void 0?void 0:o.nickname)||((r=s.user)===null||r===void 0?void 0:r.mobile)]})]})}},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}],se=(0,X.UO)(),h=se.code,_e=(0,c.useState)(),y=f()(_e,2),d=y[0],ie=y[1],de=(0,c.useState)([]),B=f()(de,2),S=B[0],oe=B[1],j=l.Z.Divider,ue=(0,c.useState)(!1),K=f()(ue,2),x=K[0],le=K[1],ce=function(){var n=M()(i()().mark(function t(s){var _;return i()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,O.d1)({appCode:s});case 2:_=r.sent,_.data&&ie(_.data);case 4:case"end":return r.stop()}},t)}));return function(s){return n.apply(this,arguments)}}(),L=function(){var n=M()(i()().mark(function t(s){var _;return i()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,O.Zb)(u()(u()({},s),{},{code:h}));case 2:_=r.sent,_.data&&oe(_.data);case 4:case"end":return r.stop()}},t)}));return function(s){return n.apply(this,arguments)}}();(0,c.useEffect)(function(){var n;(n=R.current)===null||n===void 0||n.reload(),ce(h),L({code:h})},[h]);var me=S.map(function(n){return{date:function(){var t=n.date+"",s=t.slice(0,4),_=t.slice(4,6),o=t.slice(6,8);return"".concat(s,"-").concat(_,"-").concat(o)}(),income:(0,m.P)(n.income)}}),ve={data:me,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"}},title:"\u7D2F\u8BA1"+(0,m.P)(S.reduce(function(n,t){return n+(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)(V._z,{children:(0,a.jsxs)(Y.Z,{defaultActiveKey:"1",centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,a.jsx)(C.Z,{tab:"\u5E7F\u544A\u8BE6\u60C5",children:(0,a.jsx)($.Z,{headerTitle:A?"\u8868\u683C\u7D2F\u8BA1\uFF1A"+(0,m.P)(A)+"\u5143":"",actionRef:R,rowKey:"key",search:{labelWidth:120},request:function(){var n=M()(i()().mark(function t(s){var _,o,r,I;return i()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,(0,O._5)(u()(u()({},s),{},{code:h}));case 2:return r=E.sent,s.current===1&&ee((I=r.data)===null||I===void 0?void 0:I.sum),E.abrupt("return",{data:(_=r.data)===null||_===void 0?void 0:_.data,total:(o=r.data)===null||o===void 0?void 0:o.total,success:!0});case 5:case"end":return E.stop()}},t)}));return function(t){return n.apply(this,arguments)}}(),columns:re,columnsState:{value:ae,onChange:function(t){ne(t)}}})},"1"),(0,a.jsxs)(C.Z,{tab:"\u6570\u636E\u603B\u89C8",children:[(0,a.jsx)(Q.Z,{onResize:function(t){le(t.width<596)},children:(0,a.jsx)(l.Z,{children:(0,a.jsxs)(l.Z.Group,{direction:x?"column":"row",children:[(0,a.jsx)(l.Z,{statistic:{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",value:(0,m.P)(d==null?void 0:d.lastMonthIncome)}}),(0,a.jsx)(j,{type:x?"horizontal":"vertical"}),(0,a.jsx)(l.Z,{statistic:{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",value:(0,m.P)(d==null?void 0:d.thisMonthIncome)}}),(0,a.jsx)(j,{type:x?"horizontal":"vertical"}),(0,a.jsx)(l.Z,{statistic:{title:"\u4ECA\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:(0,m.P)(d==null?void 0:d.todayIncome)}}),(0,a.jsx)(j,{type:x?"horizontal":"vertical"}),(0,a.jsx)(l.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:(0,m.P)(d==null?void 0:d.yesterdayIncome)}})]})})},"resize-observer"),(0,a.jsxs)(z.t,{defaultCollapsed:!0,split:!0,onFinish:L,children:[(0,a.jsx)(T.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)(T.Z,{name:"advType",label:"\u5E7F\u544A\u7C7B\u578B",valueEnum:{1:"\u6A2A\u5E45",2:"\u63D2\u9875",3:"\u6FC0\u52B1\u89C6\u9891"}}),(0,a.jsx)(N.Z,{fieldProps:{disabledDate:function(t){return t&&t>=J()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,a.jsx)(F.Z,u()({},ve))]},"2")]})})};P.default=k},58125:function(W,P,e){e.d(P,{D:function(){return u},P:function(){return p}});var p=function(i){return i?parseFloat((i/1e5).toFixed(2)):0},u=function(i){return i?parseFloat((i/100).toFixed(2)):0}}}]); +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[542],{86408:function(W,P,e){e.r(P);var p=e(97857),u=e.n(p),D=e(15009),i=e.n(D),g=e(99289),M=e.n(g),Z=e(5574),f=e.n(Z),O=e(48357),F=e(11415),l=e(39615),V=e(90930),$=e(67539),z=e(57470),T=e(64317),N=e(34540),w=e(71230),G=e(7134),Y=e(13169),C=e(16250),H=e(27484),J=e.n(H),Q=e(9220),c=e(67294),X=e(96974),m=e(58125),a=e(85893),k=function(){var R=(0,c.useRef)(),q=(0,c.useState)(void 0),b=f()(q,2),A=b[0],ee=b[1],v=function(){return window.innerWidth<=768},te=(0,c.useState)({deviceId:{show:!v()},appName:{show:!v()},platform:{show:!v()},deviceBrand:{show:!v()},deviceName:{show:!v()},ip:{show:!v()},advType:{show:!v()}}),U=f()(te,2),ae=U[0],ne=U[1],re=[{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:"Default"},2:{text:"\u63D2\u9875",status:"Processing"},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,s){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:s.deviceBrand}),(0,a.jsx)("p",{children:s.deviceName})]})}},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,renderText:function(t,s){var _,o,r;if(s.user)return(0,a.jsxs)(w.Z,{children:[(0,a.jsx)(G.C,{src:(_=s.user)===null||_===void 0?void 0:_.avatar}),(0,a.jsxs)("p",{style:{fontSize:12},children:["id:",s.user.id,(0,a.jsx)("br",{}),((o=s.user)===null||o===void 0?void 0:o.nickname)||((r=s.user)===null||r===void 0?void 0:r.mobile)]})]})}},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}],se=(0,X.UO)(),h=se.code,_e=(0,c.useState)(),y=f()(_e,2),d=y[0],ie=y[1],de=(0,c.useState)([]),B=f()(de,2),S=B[0],oe=B[1],j=l.Z.Divider,ue=(0,c.useState)(!1),K=f()(ue,2),x=K[0],le=K[1],ce=function(){var n=M()(i()().mark(function t(s){var _;return i()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,O.d1)({appCode:s});case 2:_=r.sent,_.data&&ie(_.data);case 4:case"end":return r.stop()}},t)}));return function(s){return n.apply(this,arguments)}}(),L=function(){var n=M()(i()().mark(function t(s){var _;return i()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,O.Zb)(u()(u()({},s),{},{code:h}));case 2:_=r.sent,_.data&&oe(_.data);case 4:case"end":return r.stop()}},t)}));return function(s){return n.apply(this,arguments)}}();(0,c.useEffect)(function(){var n;(n=R.current)===null||n===void 0||n.reload(),ce(h),L({code:h})},[h]);var me=S.map(function(n){return{date:function(){var t=n.date+"",s=t.slice(0,4),_=t.slice(4,6),o=t.slice(6,8);return"".concat(s,"-").concat(_,"-").concat(o)}(),income:(0,m.P)(n.income)}}),ve={data:me,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"}},title:"\u7D2F\u8BA1"+(0,m.P)(S.reduce(function(n,t){return n+(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)(V._z,{children:(0,a.jsxs)(Y.Z,{defaultActiveKey:"1",centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,a.jsx)(C.Z,{tab:"\u5E7F\u544A\u8BE6\u60C5",children:(0,a.jsx)($.Z,{headerTitle:A?"\u8868\u683C\u7D2F\u8BA1\uFF1A"+(0,m.P)(A)+"\u5143":"",actionRef:R,rowKey:"key",search:{labelWidth:120},request:function(){var n=M()(i()().mark(function t(s){var _,o,r,I;return i()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,(0,O._5)(u()(u()({},s),{},{code:h}));case 2:return r=E.sent,s.current===1&&ee((I=r.data)===null||I===void 0?void 0:I.sum),E.abrupt("return",{data:(_=r.data)===null||_===void 0?void 0:_.data,total:(o=r.data)===null||o===void 0?void 0:o.total,success:!0});case 5:case"end":return E.stop()}},t)}));return function(t){return n.apply(this,arguments)}}(),columns:re,columnsState:{value:ae,onChange:function(t){ne(t)}}})},"1"),(0,a.jsxs)(C.Z,{tab:"\u6570\u636E\u603B\u89C8",children:[(0,a.jsx)(Q.Z,{onResize:function(t){le(t.width<596)},children:(0,a.jsx)(l.Z,{children:(0,a.jsxs)(l.Z.Group,{direction:x?"column":"row",children:[(0,a.jsx)(l.Z,{statistic:{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",value:(0,m.P)(d==null?void 0:d.lastMonthIncome)}}),(0,a.jsx)(j,{type:x?"horizontal":"vertical"}),(0,a.jsx)(l.Z,{statistic:{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",value:(0,m.P)(d==null?void 0:d.thisMonthIncome)}}),(0,a.jsx)(j,{type:x?"horizontal":"vertical"}),(0,a.jsx)(l.Z,{statistic:{title:"\u4ECA\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:(0,m.P)(d==null?void 0:d.todayIncome)}}),(0,a.jsx)(j,{type:x?"horizontal":"vertical"}),(0,a.jsx)(l.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:(0,m.P)(d==null?void 0:d.yesterdayIncome)}})]})})},"resize-observer"),(0,a.jsxs)(z.t,{defaultCollapsed:!0,split:!0,onFinish:L,children:[(0,a.jsx)(T.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)(T.Z,{name:"advType",label:"\u5E7F\u544A\u7C7B\u578B",valueEnum:{1:"\u6A2A\u5E45",2:"\u63D2\u9875",3:"\u6FC0\u52B1\u89C6\u9891"}}),(0,a.jsx)(N.Z,{fieldProps:{disabledDate:function(t){return t&&t>=J()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,a.jsx)(F.Z,u()({},ve))]},"2")]})})};P.default=k},58125:function(W,P,e){e.d(P,{D:function(){return u},P:function(){return p}});var p=function(i){return i?(i/1e5).toFixed(2):"0.00"},u=function(i){return i?(i/100).toFixed(2):"0.00"}}}]); diff --git a/dist/p__App__AppManagement.a12680df.async.js b/dist/p__App__AppManagement.a12680df.async.js deleted file mode 100644 index 44b09ff..0000000 --- a/dist/p__App__AppManagement.a12680df.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[731],{3345:function(Fe,q,r){r.r(q),r.d(q,{default:function(){return fn}});var N=r(90930),T=r(35312),_=r(15009),s=r.n(_),ue=r(99289),I=r.n(ue),oe=r(5574),w=r.n(oe),H=r(48357),ne=r(67539),se=r(55241),J=r(10397),Z=r(55102),j=r(67294),ie=r(97857),y=r.n(ie);function ae(c,n){return Q.apply(this,arguments)}function Q(){return Q=I()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/aliPayConfig",y()({method:"GET",params:y()({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),Q.apply(this,arguments)}function Se(c,n,u){return ce.apply(this,arguments)}function ce(){return ce=I()(s()().mark(function c(n,u,m){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,T.request)("/api/admin/app/aliPayConfig",y()({method:"POST",headers:{"Content-Type":"application/json"},params:y()({},n),data:u},m||{})));case 1:case"end":return h.stop()}},c)})),ce.apply(this,arguments)}function Ze(c,n){return de.apply(this,arguments)}function de(){return de=I()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/basicConfig",y()({method:"GET",params:y()({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),de.apply(this,arguments)}function be(c,n){return pe.apply(this,arguments)}function pe(){return pe=I()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/basicConfig",y()({method:"POST",headers:{"Content-Type":"application/json"},data:n},u||{})));case 1:case"end":return a.stop()}},c)})),pe.apply(this,arguments)}function Ue(c,n){return fe.apply(this,arguments)}function fe(){return fe=I()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/normalConfig",y()({method:"GET",params:y()({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),fe.apply(this,arguments)}function o(c,n,u){return v.apply(this,arguments)}function v(){return v=I()(s()().mark(function c(n,u,m){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,T.request)("/api/admin/app/normalConfig",y()({method:"POST",headers:{"Content-Type":"application/json"},params:y()({},n),data:u},m||{})));case 1:case"end":return h.stop()}},c)})),v.apply(this,arguments)}function F(c,n){return g.apply(this,arguments)}function g(){return g=I()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/uMengConfig",y()({method:"GET",params:y()({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),g.apply(this,arguments)}function B(c,n,u){return me.apply(this,arguments)}function me(){return me=I()(s()().mark(function c(n,u,m){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,T.request)("/api/admin/app/uMengConfig",y()({method:"POST",headers:{"Content-Type":"application/json"},params:y()({},n),data:u},m||{})));case 1:case"end":return h.stop()}},c)})),me.apply(this,arguments)}function Ae(c,n){return X.apply(this,arguments)}function X(){return X=_asyncToGenerator(_regeneratorRuntime().mark(function c(n,u){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"GET",params:_objectSpread({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),X.apply(this,arguments)}function ke(c,n,u){return re.apply(this,arguments)}function re(){return re=_asyncToGenerator(_regeneratorRuntime().mark(function c(n,u,m){return _regeneratorRuntime().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"POST",headers:{"Content-Type":"application/json"},params:_objectSpread({},n),data:u},m||{})));case 1:case"end":return h.stop()}},c)})),re.apply(this,arguments)}var ee=r(1413),Ee=r(93696),L=r(91146),Ie=function(n,u){return j.createElement(L.Z,(0,ee.Z)((0,ee.Z)({},n),{},{ref:u,icon:Ee.Z}))},we=j.forwardRef(Ie),$=we,ge=r(3089),Oe=r(42110),Pe=function(n,u){return j.createElement(L.Z,(0,ee.Z)((0,ee.Z)({},n),{},{ref:u,icon:Oe.Z}))},De=j.forwardRef(Pe),Te=De,t=r(8232),Ce=r(17788),Y=r(83062),Be=r(71230),he=r(37804),te=r(14726),$e=r(15746),e=r(85893),Ke=function(n){var u=t.Z.useForm(),m=w()(u,1),a=m[0],h=function(){a.submit()},M=function(){n.onCancel()},D=function(){var p=I()(s()().mark(function S(l){var i;return s()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Ue({appCode:l});case 2:i=d.sent,a.setFieldsValue(i.data);case 4:case"end":return d.stop()}},S)}));return function(l){return p.apply(this,arguments)}}();(0,j.useEffect)(function(){D(n.appCode)},[n.appCode]);var V=function(){var p=I()(s()().mark(function S(l){return s()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.prev=0,C.next=3,o({appCode:n.appCode},l);case 3:C.next=8;break;case 5:return C.prev=5,C.t0=C.catch(0),C.abrupt("return");case 8:n.onSubmit();case 9:case"end":return C.stop()}},S,null,[[0,5]])}));return function(l){return p.apply(this,arguments)}}(),b={labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:20}}},f={wrapperCol:{xs:{span:24,offset:10},sm:{span:20,offset:6}}};return(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:h,onCancel:M,children:(0,e.jsxs)(t.Z,{labelCol:{span:6},wrapperCol:{span:18},form:a,onFinish:V,children:[(0,e.jsx)(t.Z.List,{name:"moneyLadder",children:function(S,l){var i=l.add,C=l.remove;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(t.Z.Item,{label:(0,e.jsxs)(e.Fragment,{children:["\u63D0\u73B0\u68AF\u5EA6",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(Y.Z,{title:"\u7528\u6237\u53EF\u9009\u7684\u63D0\u73B0\u91D1\u989D\u6863\u4F4D\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)($,{})})})]}),required:!1,children:[(0,e.jsx)(Be.Z,{children:S.map(function(d){return(0,e.jsx)(t.Z.Item,{label:"",required:!1,children:(0,e.jsxs)(Be.Z,{align:"stretch",style:{marginRight:10},children:[(0,e.jsx)(t.Z.Item,y()(y()({},d),{},{validateTrigger:["onChange","onBlur"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D\u6216\u8005\u5220\u9664"}],noStyle:!0,children:(0,e.jsx)(he.Z,{placeholder:"\u91D1\u989D\uFF0C\u5355\u4F4D\u5206"})})),(0,e.jsx)(ge.Z,{style:{marginLeft:4},className:"dynamic-delete-button",onClick:function(){return C(d.name)}})]})},d.key)})}),(0,e.jsx)(t.Z.Item,y()(y()({},f),{},{children:(0,e.jsx)(te.ZP,{type:"dashed",onClick:function(){return i()},icon:(0,e.jsx)(Te,{}),children:"\u6DFB\u52A0\u63D0\u73B0\u68AF\u5EA6"})}))]})})}}),(0,e.jsx)(t.Z.Item,{name:"noAuditMoney",label:(0,e.jsxs)(e.Fragment,{children:["\u4E0D\u5BA1\u6838\u95E8\u69DB",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(Y.Z,{title:"\u4F4E\u4E8E\u6B64\u91D1\u989D\u7684\u63D0\u73B0\u7533\u8BF7\u5C06\u4F1A\u81EA\u52A8\u5BA1\u6838\u901A\u8FC7\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsx)(he.Z,{placeholder:"\u5355\u4F4D\u5206",style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"qqUrl",label:"QQ\u7FA4\u94FE\u63A5",children:(0,e.jsx)(Z.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"dayLimit",label:(0,e.jsxs)(e.Fragment,{children:["\u6BCF\u65E5\u63D0\u73B0\u6B21\u6570",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(Y.Z,{title:"\u540C\u4E2A\u8D26\u53F7\u6216\u540C\u4E2A\u652F\u4ED8\u5B9D\u6BCF\u65E5\u6700\u591A\u63D0\u73B0\u7684\u6B21\u6570",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsx)(he.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"maxIncomeEachVideo",label:(0,e.jsxs)(e.Fragment,{children:["\u5355\u6761\u6536\u76CA\u4E0A\u9650",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(Y.Z,{title:"\u770B\u4E00\u6761\u89C6\u9891\u6700\u591A\u80FD\u83B7\u5F97\u7684\u94B1\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsx)(he.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"defaultRate",label:(0,e.jsx)(e.Fragment,{children:"\u9ED8\u8BA4\u5206\u6210\u6BD4\u4F8B"}),children:(0,e.jsx)(he.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.List,{name:"dayRates",children:function(S,l){var i=l.add,C=l.remove;return(0,e.jsxs)(e.Fragment,{children:[S.map(function(d,A){var O=d.key,E=d.name;return(0,e.jsx)(e.Fragment,{children:(0,j.createElement)(t.Z.Item,y()(y()({},A===0?b:f),{},{label:A===0?"\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B":"",required:!1,key:O}),(0,e.jsxs)(Be.Z,{align:"stretch",gutter:16,children:[(0,e.jsx)($e.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[E,"day"],rules:[{required:!0}],children:(0,e.jsx)(Z.Z,{placeholder:"Day"})})}),(0,e.jsx)($e.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[E,"rate"],rules:[{required:!0}],children:(0,e.jsx)(Z.Z,{placeholder:"Rate"})})}),(0,e.jsx)($e.Z,{children:(0,e.jsx)(ge.Z,{onClick:function(){return C(E)}})})]},O))})}),(0,e.jsx)(t.Z.Item,y()(y()({},f),{},{children:(0,e.jsx)(te.ZP,{type:"dashed",onClick:function(){return i()},block:!0,children:"\u6DFB\u52A0\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B"})}))]})}})]})})},Ne=Ke,We=function(){var n=(0,j.useState)(!1),u=w()(n,2),m=u[0],a=u[1],h=(0,j.useState)([]),M=w()(h,2),D=M[0],V=M[1],b=(0,j.useState)([]),f=w()(b,2),p=f[0],S=f[1],l=(0,j.useState)(),i=w()(l,2),C=i[0],d=i[1],A=function(x){var K=D.filter(function(z){var k;return z==null||(k=z.name)===null||k===void 0?void 0:k.includes(x)});S(K)},O=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u5E94\u7528\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(x){return(0,e.jsx)("img",{style:{width:"40px"},src:x})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function(x){return(0,e.jsx)(se.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(J.Z,{value:x||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:x})})}},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(x){if(x.enableCash)return(0,e.jsx)("a",{onClick:function(){d(x.code),a(!0)},children:"\u7F16\u8F91"},"edit")}}],E=function(){var U=I()(s()().mark(function x(){var K;return s()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,(0,H.ln)();case 2:K=k.sent,K.data&&(V(K.data),S(K.data));case 4:case"end":return k.stop()}},x)}));return function(){return U.apply(this,arguments)}}();return(0,j.useEffect)(function(){E()},[]),(0,e.jsxs)(N._z,{children:[(0,e.jsx)(ne.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(Z.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(K){return A(K.target.value)}},"name")]}},onReset:function(){S(D)},columns:O,dataSource:p}),C&&(0,e.jsx)(Ne,{updateModalOpen:m,appCode:C||"",onCancel:function(){return a(!1)},onSubmit:function(){a(!1)}})]})},ze=We,Le=r(52043),ve=r(66309),He=r(86250),Je={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Qe=Je,Xe=function(n,u){return j.createElement(L.Z,(0,ee.Z)((0,ee.Z)({},n),{},{ref:u,icon:Qe}))},Ye=j.forwardRef(Xe),xe=Ye,je=r(66476),Me=Z.Z.TextArea,qe=function(n){var u=t.Z.useForm(),m=w()(u,1),a=m[0],h=function(){a.submit()},M=function(){n.onCancel()},D=function(){var b=I()(s()().mark(function f(p){var S;return s()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,ae({appCode:p});case 2:S=i.sent,a.setFieldsValue(S.data);case 4:case"end":return i.stop()}},f)}));return function(p){return b.apply(this,arguments)}}();(0,j.useEffect)(function(){D(n.appCode)},[n.appCode]);var V=function(){var b=I()(s()().mark(function f(p){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,Se({appCode:n.appCode},p);case 3:l.next=8;break;case 5:return l.prev=5,l.t0=l.catch(0),l.abrupt("return");case 8:n.onSubmit();case 9:case"end":return l.stop()}},f,null,[[0,5]])}));return function(p){return b.apply(this,arguments)}}();return(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:h,onCancel:M,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:18},form:a,onFinish:V,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayAppId",label:(0,e.jsxs)(e.Fragment,{children:["AppId",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(Y.Z,{title:"\u963F\u91CC\u4E91\u5F00\u653E\u5E73\u53F0\u83B7\u53D6",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsx)(Z.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"aliPayPrivateKey",label:(0,e.jsxs)(e.Fragment,{children:["PrivateKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(Y.Z,{title:"\u963F\u91CC\u4E91\u5F00\u653E\u5E73\u53F0\u83B7\u53D6",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsx)(Z.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"aliPayAppCert",label:(0,e.jsxs)(e.Fragment,{children:["appCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(Y.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsxs)(Z.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayAppCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9appCertPublicKey!"}],children:(0,e.jsx)(Me,{autoSize:{maxRows:6}})}),(0,e.jsx)(je.Z,{name:"file",multiple:!1,onChange:function(f){if(f.file.status!=="uploading"){var p=new FileReader;p.onload=function(){a.setFieldsValue({aliPayAppCert:p.result})},p.readAsText(f.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(te.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(xe,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayRootCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayRootCert",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(Y.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsxs)(Z.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayRootCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayRootCert!"}],children:(0,e.jsx)(Me,{autoSize:{maxRows:6}})}),(0,e.jsx)(je.Z,{name:"file",multiple:!1,onChange:function(f){if(f.file.status!=="uploading"){var p=new FileReader;p.onload=function(){a.setFieldsValue({aliPayRootCert:p.result})},p.readAsText(f.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(te.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(xe,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayPublicCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(Y.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsxs)(Z.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayPublicCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayCertPublicKey!"}],children:(0,e.jsx)(Me,{autoSize:{maxRows:6}})}),(0,e.jsx)(je.Z,{name:"file",multiple:!1,onChange:function(f){if(f.file.status!=="uploading"){var p=new FileReader;p.onload=function(){a.setFieldsValue({aliPayPublicCert:p.result})},p.readAsText(f.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(te.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(xe,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})})]})})},_e=qe,Ve=r(34041),en=r(32400),nn=r(56448),an=r.n(nn),ye=r(2453),rn=function(n){var u=n.onUploadSuccess,m=n.onUploadError,a=(0,j.useState)(!1),h=w()(a,2),M=h[0],D=h[1],V=(0,j.useState)(null),b=w()(V,2),f=b[0],p=b[1];(0,j.useEffect)(function(){function l(){return i.apply(this,arguments)}function i(){return i=I()(s()().mark(function C(){var d,A;return s()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.prev=0,E.next=3,(0,H.po)();case 3:if(d=E.sent,!(!d.data||!d.data.accessKeySecret||!d.data.accessKeyId)){E.next=7;break}return ye.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),E.abrupt("return");case 7:A=new(an())({region:"oss-cn-beijing",accessKeyId:d.data.accessKeyId,accessKeySecret:d.data.accessKeySecret,stsToken:d.data.securityToken,bucket:d.data.bucket}),p(A),E.next=15;break;case 11:E.prev=11,E.t0=E.catch(0),ye.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),m&&m(E.t0);case 15:case"end":return E.stop()}},C,null,[[0,11]])})),i.apply(this,arguments)}l()},[m]);var S=function(){var l=I()(s()().mark(function i(C){var d,A,O,E;return s()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(d=C.file,!(d instanceof File)){x.next=24;break}return D(!0),x.prev=3,x.next=6,(0,en.p)(d);case 6:return A=x.sent,O="matrix/".concat(A,".").concat(d.name.split(".").pop()),x.next=10,f==null?void 0:f.put(O,d,{headers:{"Content-Type":d.type}});case 10:E="https://apks.bzgames.cn/".concat(O),u&&u(E),D(!1),x.next=19;break;case 15:x.prev=15,x.t0=x.catch(3),ye.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),m&&m(x.t0);case 19:return x.prev=19,D(!1),x.finish(19);case 22:x.next=25;break;case 24:ye.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 25:case"end":return x.stop()}},i,null,[[3,15,19,22]])}));return function(C){return l.apply(this,arguments)}}();return(0,e.jsx)(je.Z,{showUploadList:!1,customRequest:S,disabled:M||!f,children:(0,e.jsx)(te.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(xe,{}),children:"\u9009\u62E9\u6587\u4EF6"})})},Ge=rn,tn=function(n){var u=t.Z.useForm(),m=w()(u,1),a=m[0],h=(0,j.useState)(!1),M=w()(h,2),D=M[0],V=M[1],b=function(){a.submit()},f=function(){n.onCancel()},p=function(){var l=I()(s()().mark(function i(C){var d;return s()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(C){O.next=3;break}return a.resetFields(),O.abrupt("return");case 3:return O.next=5,Ze({appCode:C});case 5:d=O.sent,a.setFieldsValue(d.data);case 7:case"end":return O.stop()}},i)}));return function(C){return l.apply(this,arguments)}}();(0,j.useEffect)(function(){p(n.appCode),V(n.appCode!==void 0),n.appCode||a.resetFields()},[n.appCode]);var S=function(){var l=I()(s()().mark(function i(C){return s()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.prev=0,A.next=3,be(C);case 3:A.next=8;break;case 5:return A.prev=5,A.t0=A.catch(0),A.abrupt("return");case 8:n.onSubmit();case 9:case"end":return A.stop()}},i,null,[[0,5]])}));return function(C){return l.apply(this,arguments)}}();return(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:b,onCancel:f,children:(0,e.jsxs)(t.Z,{labelCol:{span:5},wrapperCol:{span:18},form:a,onFinish:S,children:[(0,e.jsx)(t.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(Z.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{name:"code",style:{display:"none"},children:(0,e.jsx)(Z.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,e.jsx)(Z.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528\u56FE\u7247",name:"img",children:(0,e.jsxs)(Z.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"img",noStyle:!0,children:(0,e.jsx)(Z.Z,{})}),(0,e.jsx)(Ge,{onUploadSuccess:function(i){a.setFieldsValue({img:i})}})]})}),(0,e.jsx)(t.Z.Item,{label:"\u4E0B\u8F7D\u5730\u5740",name:"url",children:(0,e.jsxs)(Z.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"url",noStyle:!0,children:(0,e.jsx)(Z.Z,{})}),(0,e.jsx)(Ge,{onUploadSuccess:function(i){a.setFieldsValue({url:i})}})]})}),(0,e.jsx)(t.Z.Item,{label:"app\u7248\u672C",name:"version",children:(0,e.jsx)(Z.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u83DC\u5355\u680F\u4E2D",name:"hide",children:(0,e.jsx)(Ve.Z,{options:[{label:"\u5C55\u793A",value:0},{label:"\u9690\u85CF",value:1}]})}),(0,e.jsx)(t.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,e.jsx)(Ve.Z,{disabled:D,options:(0,Le.F)()})})]})})},ln=tn,un=r(72269),sn=function(n){var u=t.Z.useForm(),m=w()(u,1),a=m[0],h=function(){a.submit()},M=function(){n.onCancel()},D=function(){var b=I()(s()().mark(function f(p){var S;return s()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,F({appCode:p});case 2:S=i.sent,a.setFieldsValue(S.data);case 4:case"end":return i.stop()}},f)}));return function(p){return b.apply(this,arguments)}}();(0,j.useEffect)(function(){D(n.appCode)},[n.appCode]);var V=function(){var b=I()(s()().mark(function f(p){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,B({appCode:n.appCode},p);case 3:l.next=8;break;case 5:return l.prev=5,l.t0=l.catch(0),l.abrupt("return");case 8:n.onSubmit();case 9:case"end":return l.stop()}},f,null,[[0,5]])}));return function(p){return b.apply(this,arguments)}}();return(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:h,onCancel:M,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:16},form:a,onFinish:V,children:[(0,e.jsx)(t.Z.Item,{name:"umengAppKeyAli",label:"AppKey(\u963F\u91CC\u4E91)",children:(0,e.jsx)(Z.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppSecret",label:"AppSecret(\u963F\u91CC\u4E91)",children:(0,e.jsx)(Z.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppCode",label:"AppCode(\u963F\u91CC\u4E91)",children:(0,e.jsx)(Z.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppKey",label:"AppKey(\u53CB\u76DF)",children:(0,e.jsx)(Z.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"linkId",label:"linkId(\u53CB\u76DF)",children:(0,e.jsx)(Z.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"bindWx",label:"\u7ED1\u5B9A\u5FAE\u4FE1\u8D26\u53F7",children:(0,e.jsx)(un.Z,{})})]})})},on=sn,cn=function(){var n=(0,j.useState)(!1),u=w()(n,2),m=u[0],a=u[1],h=(0,j.useState)([]),M=w()(h,2),D=M[0],V=M[1],b=(0,j.useState)([]),f=w()(b,2),p=f[0],S=f[1],l=(0,j.useState)(!1),i=w()(l,2),C=i[0],d=i[1],A=(0,j.useState)(!1),O=w()(A,2),E=O[0],U=O[1],x=(0,j.useState)(),K=w()(x,2),z=K[0],k=K[1],mn=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(P){return(0,e.jsx)("img",{style:{width:"40px"},src:P})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function(P){return(0,e.jsx)(se.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(J.Z,{value:P||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:P})})}},{title:"secret",dataIndex:"secret",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u83DC\u5355\u680F\u4E2D",dataIndex:"hide",hideInSearch:!0,renderText:function(P){return P===0?(0,e.jsx)(ve.Z,{color:"blue",children:"\u5C55\u793A"}):(0,e.jsx)(ve.Z,{color:"purple",children:"\u9690\u85CF"})}},{title:"\u6E20\u9053",dataIndex:"channel",hideInSearch:!0,renderText:function(P){var G=(0,Le.F)(),le=G.find(function(W){return W.value===P});return le?le.label:P}},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(P){return(0,e.jsxs)(He.Z,{gap:"small",wrap:!0,children:[(0,e.jsx)(ve.Z,{color:"magenta",onClick:function(){k(P.code),a(!0)},children:"\u7F16\u8F91"},"edit"),P.enableCash&&(0,e.jsx)(ve.Z,{color:"orange",onClick:function(){k(P.code),U(!0)},children:"\u53CB\u76DF\u914D\u7F6E"},"ediyUMeng"),(0,e.jsx)(ve.Z,{color:"#2db7f5",onClick:function(){k(P.code),d(!0)},children:"\u652F\u4ED8\u5B9D\u914D\u7F6E"},"ediyAliPay")]})}}],Re=function(){var R=I()(s()().mark(function P(){var G;return s()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,(0,H.ln)();case 2:G=W.sent,G.data&&(V(G.data),S(G.data));case 4:case"end":return W.stop()}},P)}));return function(){return R.apply(this,arguments)}}();(0,j.useEffect)(function(){Re()},[]);var hn=function(P){var G=D.filter(function(le){var W;return le==null||(W=le.name)===null||W===void 0?void 0:W.includes(P)});S(G)};return(0,e.jsxs)(N._z,{children:[(0,e.jsx)(te.ZP,{style:{marginBottom:"20px"},onClick:function(){a(!0),k(void 0)},children:"\u65B0\u5EFA\u5E94\u7528"}),(0,e.jsx)(ne.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(Z.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(G){return hn(G.target.value)}},"name")]}},onReset:function(){S(D)},columns:mn,dataSource:p}),z&&C&&(0,e.jsx)(_e,{updateModalOpen:C,appCode:z||"",onCancel:function(){return d(!1)},onSubmit:function(){d(!1),Re()}}),z&&E&&(0,e.jsx)(on,{updateModalOpen:E,appCode:z||"",onCancel:function(){return U(!1)},onSubmit:function(){U(!1)}}),(0,e.jsx)(ln,{updateModalOpen:m,appCode:z,onCancel:function(){return a(!1)},onSubmit:function(){a(!1),Re()}})]})},dn=cn,pn=function(){var n=(0,T.useModel)("@@initialState"),u=n.initialState,m=u==null?void 0:u.currentUser,a=m&&m.role&&m.role<2;return(0,e.jsx)(N._z,{children:a?(0,e.jsx)(dn,{}):(0,e.jsx)(ze,{})})},fn=pn},52043:function(Fe,q,r){r.d(q,{F:function(){return N},X:function(){return T}});var N=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"}]},T=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1"},{label:"\u8F6C\u8D26\u4E2D",value:"2"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2"}]}},32400:function(Fe,q,r){r.d(q,{p:function(){return oe}});var N=r(15009),T=r.n(N),_=r(99289),s=r.n(_),ue=r(8322),I=r.n(ue);function oe(H){return w.apply(this,arguments)}function w(){return w=s()(T()().mark(function H(ne){return T()().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.abrupt("return",new Promise(function(Z,j){var ie=new(I()).ArrayBuffer,y=new FileReader;y.onload=function(ae){var Q;ie.append((Q=ae.target)===null||Q===void 0?void 0:Q.result),Z(ie.end())},y.onerror=function(ae){j(ae)},y.readAsArrayBuffer(ne)}));case 1:case"end":return J.stop()}},H)})),w.apply(this,arguments)}},86250:function(Fe,q,r){r.d(q,{Z:function(){return fe}});var N=r(67294),T=r(93967),_=r.n(T),s=r(98423),ue=r(98065),I=r(53124),oe=r(91945),w=r(45503);const H=["wrap","nowrap","wrap-reverse"],ne=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],se=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],J=(o,v)=>{const F=v.wrap===!0?"wrap":v.wrap;return{[`${o}-wrap-${F}`]:F&&H.includes(F)}},Z=(o,v)=>{const F={};return se.forEach(g=>{F[`${o}-align-${g}`]=v.align===g}),F[`${o}-align-stretch`]=!v.align&&!!v.vertical,F},j=(o,v)=>{const F={};return ne.forEach(g=>{F[`${o}-justify-${g}`]=v.justify===g}),F};function ie(o,v){return _()(Object.assign(Object.assign(Object.assign({},J(o,v)),Z(o,v)),j(o,v)))}var y=ie;const ae=o=>{const{componentCls:v}=o;return{[v]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Q=o=>{const{componentCls:v}=o;return{[v]:{"&-gap-small":{gap:o.flexGapSM},"&-gap-middle":{gap:o.flexGap},"&-gap-large":{gap:o.flexGapLG}}}},Se=o=>{const{componentCls:v}=o,F={};return H.forEach(g=>{F[`${v}-wrap-${g}`]={flexWrap:g}}),F},ce=o=>{const{componentCls:v}=o,F={};return se.forEach(g=>{F[`${v}-align-${g}`]={alignItems:g}}),F},Ze=o=>{const{componentCls:v}=o,F={};return ne.forEach(g=>{F[`${v}-justify-${g}`]={justifyContent:g}}),F},de=()=>({});var be=(0,oe.I$)("Flex",o=>{const{paddingXS:v,padding:F,paddingLG:g}=o,B=(0,w.TS)(o,{flexGapSM:v,flexGap:F,flexGapLG:g});return[ae(B),Q(B),Se(B),ce(B),Ze(B)]},de,{resetStyle:!1}),pe=function(o,v){var F={};for(var g in o)Object.prototype.hasOwnProperty.call(o,g)&&v.indexOf(g)<0&&(F[g]=o[g]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,g=Object.getOwnPropertySymbols(o);B{const{prefixCls:F,rootClassName:g,className:B,style:me,flex:Ae,gap:X,children:ke,vertical:re=!1,component:ee="div"}=o,Ee=pe(o,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:L,direction:Ie,getPrefixCls:we}=N.useContext(I.E_),$=we("flex",F),[ge,Oe,Pe]=be($),De=re!=null?re:L==null?void 0:L.vertical,Te=_()(B,g,L==null?void 0:L.className,$,Oe,Pe,y($,o),{[`${$}-rtl`]:Ie==="rtl",[`${$}-gap-${X}`]:(0,ue.n)(X),[`${$}-vertical`]:De}),t=Object.assign(Object.assign({},L==null?void 0:L.style),me);return Ae&&(t.flex=Ae),X&&!(0,ue.n)(X)&&(t.gap=X),ge(N.createElement(ee,Object.assign({ref:v,className:Te,style:t},(0,s.Z)(Ee,["justify","wrap","align"])),ke))})}}]); diff --git a/dist/p__App__AppManagement.dd12ff21.async.js b/dist/p__App__AppManagement.dd12ff21.async.js new file mode 100644 index 0000000..4c9ff23 --- /dev/null +++ b/dist/p__App__AppManagement.dd12ff21.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[731],{3345:function(Fe,ne,r){r.r(ne),r.d(ne,{default:function(){return fn}});var N=r(90930),T=r(35312),ae=r(15009),s=r.n(ae),Q=r(99289),Z=r.n(Q),W=r(5574),A=r.n(W),z=r(48357),X=r(67539),ie=r(55241),Y=r(10397),b=r(55102),j=r(67294),oe=r(97857),y=r.n(oe);function te(c,n){return q.apply(this,arguments)}function q(){return q=Z()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/aliPayConfig",y()({method:"GET",params:y()({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),q.apply(this,arguments)}function Se(c,n,u){return ce.apply(this,arguments)}function ce(){return ce=Z()(s()().mark(function c(n,u,m){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,T.request)("/api/admin/app/aliPayConfig",y()({method:"POST",headers:{"Content-Type":"application/json"},params:y()({},n),data:u},m||{})));case 1:case"end":return h.stop()}},c)})),ce.apply(this,arguments)}function Ze(c,n){return de.apply(this,arguments)}function de(){return de=Z()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/basicConfig",y()({method:"GET",params:y()({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),de.apply(this,arguments)}function be(c,n){return pe.apply(this,arguments)}function pe(){return pe=Z()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/basicConfig",y()({method:"POST",headers:{"Content-Type":"application/json"},data:n},u||{})));case 1:case"end":return a.stop()}},c)})),pe.apply(this,arguments)}function Ue(c,n){return fe.apply(this,arguments)}function fe(){return fe=Z()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/normalConfig",y()({method:"GET",params:y()({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),fe.apply(this,arguments)}function o(c,n,u){return v.apply(this,arguments)}function v(){return v=Z()(s()().mark(function c(n,u,m){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,T.request)("/api/admin/app/normalConfig",y()({method:"POST",headers:{"Content-Type":"application/json"},params:y()({},n),data:u},m||{})));case 1:case"end":return h.stop()}},c)})),v.apply(this,arguments)}function F(c,n){return g.apply(this,arguments)}function g(){return g=Z()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/uMengConfig",y()({method:"GET",params:y()({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),g.apply(this,arguments)}function B(c,n,u){return me.apply(this,arguments)}function me(){return me=Z()(s()().mark(function c(n,u,m){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,T.request)("/api/admin/app/uMengConfig",y()({method:"POST",headers:{"Content-Type":"application/json"},params:y()({},n),data:u},m||{})));case 1:case"end":return h.stop()}},c)})),me.apply(this,arguments)}function Ae(c,n){return _.apply(this,arguments)}function _(){return _=_asyncToGenerator(_regeneratorRuntime().mark(function c(n,u){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"GET",params:_objectSpread({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),_.apply(this,arguments)}function ke(c,n,u){return le.apply(this,arguments)}function le(){return le=_asyncToGenerator(_regeneratorRuntime().mark(function c(n,u,m){return _regeneratorRuntime().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"POST",headers:{"Content-Type":"application/json"},params:_objectSpread({},n),data:u},m||{})));case 1:case"end":return h.stop()}},c)})),le.apply(this,arguments)}var re=r(1413),Ie=r(93696),L=r(91146),Ee=function(n,u){return j.createElement(L.Z,(0,re.Z)((0,re.Z)({},n),{},{ref:u,icon:Ie.Z}))},we=j.forwardRef(Ee),$=we,ge=r(3089),Oe=r(42110),Pe=function(n,u){return j.createElement(L.Z,(0,re.Z)((0,re.Z)({},n),{},{ref:u,icon:Oe.Z}))},De=j.forwardRef(Pe),Te=De,t=r(8232),Ce=r(17788),ee=r(83062),Be=r(71230),he=r(37804),ue=r(14726),$e=r(15746),e=r(85893),Ke=function(n){var u=t.Z.useForm(),m=A()(u,1),a=m[0],h=function(){a.submit()},M=function(){n.onCancel()},D=function(){var p=Z()(s()().mark(function S(l){var i;return s()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Ue({appCode:l});case 2:i=d.sent,a.setFieldsValue(i.data);case 4:case"end":return d.stop()}},S)}));return function(l){return p.apply(this,arguments)}}();(0,j.useEffect)(function(){D(n.appCode)},[n.appCode]);var V=function(){var p=Z()(s()().mark(function S(l){return s()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.prev=0,C.next=3,o({appCode:n.appCode},l);case 3:C.next=8;break;case 5:return C.prev=5,C.t0=C.catch(0),C.abrupt("return");case 8:n.onSubmit();case 9:case"end":return C.stop()}},S,null,[[0,5]])}));return function(l){return p.apply(this,arguments)}}(),I={labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:20}}},f={wrapperCol:{xs:{span:24,offset:10},sm:{span:20,offset:6}}};return(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:h,onCancel:M,children:(0,e.jsxs)(t.Z,{labelCol:{span:6},wrapperCol:{span:18},form:a,onFinish:V,children:[(0,e.jsx)(t.Z.List,{name:"moneyLadder",children:function(S,l){var i=l.add,C=l.remove;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(t.Z.Item,{label:(0,e.jsxs)(e.Fragment,{children:["\u63D0\u73B0\u68AF\u5EA6",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u7528\u6237\u53EF\u9009\u7684\u63D0\u73B0\u91D1\u989D\u6863\u4F4D\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)($,{})})})]}),required:!1,children:[(0,e.jsx)(Be.Z,{children:S.map(function(d){return(0,e.jsx)(t.Z.Item,{label:"",required:!1,children:(0,e.jsxs)(Be.Z,{align:"stretch",style:{marginRight:10},children:[(0,e.jsx)(t.Z.Item,y()(y()({},d),{},{validateTrigger:["onChange","onBlur"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D\u6216\u8005\u5220\u9664"}],noStyle:!0,children:(0,e.jsx)(he.Z,{placeholder:"\u91D1\u989D\uFF0C\u5355\u4F4D\u5206"})})),(0,e.jsx)(ge.Z,{style:{marginLeft:4},className:"dynamic-delete-button",onClick:function(){return C(d.name)}})]})},d.key)})}),(0,e.jsx)(t.Z.Item,y()(y()({},f),{},{children:(0,e.jsx)(ue.ZP,{type:"dashed",onClick:function(){return i()},icon:(0,e.jsx)(Te,{}),children:"\u6DFB\u52A0\u63D0\u73B0\u68AF\u5EA6"})}))]})})}}),(0,e.jsx)(t.Z.Item,{name:"noAuditMoney",label:(0,e.jsxs)(e.Fragment,{children:["\u4E0D\u5BA1\u6838\u95E8\u69DB",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u4F4E\u4E8E\u6B64\u91D1\u989D\u7684\u63D0\u73B0\u7533\u8BF7\u5C06\u4F1A\u81EA\u52A8\u5BA1\u6838\u901A\u8FC7\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsx)(he.Z,{placeholder:"\u5355\u4F4D\u5206",style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"qqUrl",label:"QQ\u7FA4\u94FE\u63A5",children:(0,e.jsx)(b.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"dayLimit",label:(0,e.jsxs)(e.Fragment,{children:["\u6BCF\u65E5\u63D0\u73B0\u6B21\u6570",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u540C\u4E2A\u8D26\u53F7\u6216\u540C\u4E2A\u652F\u4ED8\u5B9D\u6BCF\u65E5\u6700\u591A\u63D0\u73B0\u7684\u6B21\u6570",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsx)(he.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"maxIncomeEachVideo",label:(0,e.jsxs)(e.Fragment,{children:["\u5355\u6761\u6536\u76CA\u4E0A\u9650",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u770B\u4E00\u6761\u89C6\u9891\u6700\u591A\u80FD\u83B7\u5F97\u7684\u94B1\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsx)(he.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"defaultRate",label:(0,e.jsx)(e.Fragment,{children:"\u9ED8\u8BA4\u5206\u6210\u6BD4\u4F8B"}),children:(0,e.jsx)(he.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.List,{name:"dayRates",children:function(S,l){var i=l.add,C=l.remove;return(0,e.jsxs)(e.Fragment,{children:[S.map(function(d,E){var O=d.key,w=d.name;return(0,e.jsx)(e.Fragment,{children:(0,j.createElement)(t.Z.Item,y()(y()({},E===0?I:f),{},{label:E===0?"\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B":"",required:!1,key:O}),(0,e.jsxs)(Be.Z,{align:"stretch",gutter:16,children:[(0,e.jsx)($e.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[w,"day"],rules:[{required:!0}],children:(0,e.jsx)(b.Z,{placeholder:"Day"})})}),(0,e.jsx)($e.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[w,"rate"],rules:[{required:!0}],children:(0,e.jsx)(b.Z,{placeholder:"Rate"})})}),(0,e.jsx)($e.Z,{children:(0,e.jsx)(ge.Z,{onClick:function(){return C(w)}})})]},O))})}),(0,e.jsx)(t.Z.Item,y()(y()({},f),{},{children:(0,e.jsx)(ue.ZP,{type:"dashed",onClick:function(){return i()},block:!0,children:"\u6DFB\u52A0\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B"})}))]})}})]})})},Ne=Ke,We=function(){var n=(0,j.useState)(!1),u=A()(n,2),m=u[0],a=u[1],h=(0,j.useState)([]),M=A()(h,2),D=M[0],V=M[1],I=(0,j.useState)([]),f=A()(I,2),p=f[0],S=f[1],l=(0,j.useState)(),i=A()(l,2),C=i[0],d=i[1],E=function(x){var K=D.filter(function(J){var k;return J==null||(k=J.name)===null||k===void 0?void 0:k.includes(x)});S(K)},O=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u5E94\u7528\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(x){return(0,e.jsx)("img",{style:{width:"40px"},src:x})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function(x){return(0,e.jsx)(ie.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(Y.Z,{value:x||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:x})})}},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(x){if(x.enableCash)return(0,e.jsx)("a",{onClick:function(){d(x.code),a(!0)},children:"\u7F16\u8F91"},"edit")}}],w=function(){var U=Z()(s()().mark(function x(){var K;return s()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,(0,z.ln)();case 2:K=k.sent,K.data&&(V(K.data),S(K.data));case 4:case"end":return k.stop()}},x)}));return function(){return U.apply(this,arguments)}}();return(0,j.useEffect)(function(){w()},[]),(0,e.jsxs)(N._z,{children:[(0,e.jsx)(X.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(K){return E(K.target.value)}},"name")]}},onReset:function(){S(D)},columns:O,dataSource:p}),C&&(0,e.jsx)(Ne,{updateModalOpen:m,appCode:C||"",onCancel:function(){return a(!1)},onSubmit:function(){a(!1)}})]})},ze=We,Le=r(52043),ve=r(66309),He=r(86250),Qe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Je=Qe,Xe=function(n,u){return j.createElement(L.Z,(0,re.Z)((0,re.Z)({},n),{},{ref:u,icon:Je}))},Ye=j.forwardRef(Xe),xe=Ye,je=r(66476),Me=b.Z.TextArea,qe=function(n){var u=t.Z.useForm(),m=A()(u,1),a=m[0],h=function(){a.submit()},M=function(){n.onCancel()},D=function(){var I=Z()(s()().mark(function f(p){var S;return s()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,te({appCode:p});case 2:S=i.sent,a.setFieldsValue(S.data);case 4:case"end":return i.stop()}},f)}));return function(p){return I.apply(this,arguments)}}();(0,j.useEffect)(function(){D(n.appCode)},[n.appCode]);var V=function(){var I=Z()(s()().mark(function f(p){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,Se({appCode:n.appCode},p);case 3:l.next=8;break;case 5:return l.prev=5,l.t0=l.catch(0),l.abrupt("return");case 8:n.onSubmit();case 9:case"end":return l.stop()}},f,null,[[0,5]])}));return function(p){return I.apply(this,arguments)}}();return(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:h,onCancel:M,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:18},form:a,onFinish:V,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayAppId",label:(0,e.jsxs)(e.Fragment,{children:["AppId",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u963F\u91CC\u4E91\u5F00\u653E\u5E73\u53F0\u83B7\u53D6",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsx)(b.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"aliPayPrivateKey",label:(0,e.jsxs)(e.Fragment,{children:["PrivateKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u963F\u91CC\u4E91\u5F00\u653E\u5E73\u53F0\u83B7\u53D6",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsx)(b.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"aliPayAppCert",label:(0,e.jsxs)(e.Fragment,{children:["appCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsxs)(b.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayAppCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9appCertPublicKey!"}],children:(0,e.jsx)(Me,{autoSize:{maxRows:6}})}),(0,e.jsx)(je.Z,{name:"file",multiple:!1,onChange:function(f){if(f.file.status!=="uploading"){var p=new FileReader;p.onload=function(){a.setFieldsValue({aliPayAppCert:p.result})},p.readAsText(f.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(ue.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(xe,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayRootCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayRootCert",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsxs)(b.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayRootCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayRootCert!"}],children:(0,e.jsx)(Me,{autoSize:{maxRows:6}})}),(0,e.jsx)(je.Z,{name:"file",multiple:!1,onChange:function(f){if(f.file.status!=="uploading"){var p=new FileReader;p.onload=function(){a.setFieldsValue({aliPayRootCert:p.result})},p.readAsText(f.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(ue.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(xe,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayPublicCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsxs)(b.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayPublicCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayCertPublicKey!"}],children:(0,e.jsx)(Me,{autoSize:{maxRows:6}})}),(0,e.jsx)(je.Z,{name:"file",multiple:!1,onChange:function(f){if(f.file.status!=="uploading"){var p=new FileReader;p.onload=function(){a.setFieldsValue({aliPayPublicCert:p.result})},p.readAsText(f.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(ue.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(xe,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})})]})})},_e=qe,Ve=r(34041),en=r(32400),nn=r(56448),an=r.n(nn),ye=r(2453),rn=function(n){var u=n.onUploadSuccess,m=n.onUploadError,a=(0,j.useState)(!1),h=A()(a,2),M=h[0],D=h[1],V=(0,j.useState)(null),I=A()(V,2),f=I[0],p=I[1];(0,j.useEffect)(function(){function l(){return i.apply(this,arguments)}function i(){return i=Z()(s()().mark(function C(){var d,E;return s()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.prev=0,w.next=3,(0,z.po)();case 3:if(d=w.sent,!(!d.data||!d.data.accessKeySecret||!d.data.accessKeyId)){w.next=7;break}return ye.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),w.abrupt("return");case 7:E=new(an())({region:"oss-cn-beijing",accessKeyId:d.data.accessKeyId,accessKeySecret:d.data.accessKeySecret,stsToken:d.data.securityToken,bucket:d.data.bucket}),p(E),w.next=15;break;case 11:w.prev=11,w.t0=w.catch(0),ye.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),m&&m(w.t0);case 15:case"end":return w.stop()}},C,null,[[0,11]])})),i.apply(this,arguments)}l()},[m]);var S=function(){var l=Z()(s()().mark(function i(C){var d,E,O,w;return s()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(d=C.file,!(d instanceof File)){x.next=24;break}return D(!0),x.prev=3,x.next=6,(0,en.p)(d);case 6:return E=x.sent,O="matrix/".concat(E,".").concat(d.name.split(".").pop()),x.next=10,f==null?void 0:f.put(O,d,{headers:{"Content-Type":d.type}});case 10:w="https://apks.bzgames.cn/".concat(O),u&&u(w),D(!1),x.next=19;break;case 15:x.prev=15,x.t0=x.catch(3),ye.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),m&&m(x.t0);case 19:return x.prev=19,D(!1),x.finish(19);case 22:x.next=25;break;case 24:ye.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 25:case"end":return x.stop()}},i,null,[[3,15,19,22]])}));return function(C){return l.apply(this,arguments)}}();return(0,e.jsx)(je.Z,{showUploadList:!1,customRequest:S,disabled:M||!f,children:(0,e.jsx)(ue.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(xe,{}),children:"\u9009\u62E9\u6587\u4EF6"})})},Ge=rn,tn=function(n){var u=t.Z.useForm(),m=A()(u,1),a=m[0],h=(0,j.useState)(!1),M=A()(h,2),D=M[0],V=M[1],I=function(){a.submit()},f=function(){n.onCancel()},p=function(){var l=Z()(s()().mark(function i(C){var d;return s()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(C){O.next=3;break}return a.resetFields(),O.abrupt("return");case 3:return O.next=5,Ze({appCode:C});case 5:d=O.sent,a.setFieldsValue(d.data);case 7:case"end":return O.stop()}},i)}));return function(C){return l.apply(this,arguments)}}();(0,j.useEffect)(function(){p(n.appCode),V(n.appCode!==void 0),n.appCode||a.resetFields()},[n.appCode]);var S=function(){var l=Z()(s()().mark(function i(C){return s()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.prev=0,E.next=3,be(C);case 3:E.next=8;break;case 5:return E.prev=5,E.t0=E.catch(0),E.abrupt("return");case 8:n.onSubmit();case 9:case"end":return E.stop()}},i,null,[[0,5]])}));return function(C){return l.apply(this,arguments)}}();return(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:I,onCancel:f,children:(0,e.jsxs)(t.Z,{labelCol:{span:5},wrapperCol:{span:18},form:a,onFinish:S,children:[(0,e.jsx)(t.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(b.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{name:"code",style:{display:"none"},children:(0,e.jsx)(b.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,e.jsx)(b.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528\u56FE\u7247",name:"img",children:(0,e.jsxs)(b.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"img",noStyle:!0,children:(0,e.jsx)(b.Z,{})}),(0,e.jsx)(Ge,{onUploadSuccess:function(i){a.setFieldsValue({img:i})}})]})}),(0,e.jsx)(t.Z.Item,{label:"\u4E0B\u8F7D\u5730\u5740",name:"url",children:(0,e.jsxs)(b.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"url",noStyle:!0,children:(0,e.jsx)(b.Z,{})}),(0,e.jsx)(Ge,{onUploadSuccess:function(i){a.setFieldsValue({url:i})}})]})}),(0,e.jsx)(t.Z.Item,{label:"app\u7248\u672C",name:"version",children:(0,e.jsx)(b.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u83DC\u5355\u680F\u4E2D",name:"hide",children:(0,e.jsx)(Ve.Z,{options:[{label:"\u5C55\u793A",value:0},{label:"\u9690\u85CF",value:1}]})}),(0,e.jsx)(t.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,e.jsx)(Ve.Z,{disabled:D,options:(0,Le.FG)()})})]})})},ln=tn,un=r(72269),sn=function(n){var u=t.Z.useForm(),m=A()(u,1),a=m[0],h=function(){a.submit()},M=function(){n.onCancel()},D=function(){var I=Z()(s()().mark(function f(p){var S;return s()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,F({appCode:p});case 2:S=i.sent,a.setFieldsValue(S.data);case 4:case"end":return i.stop()}},f)}));return function(p){return I.apply(this,arguments)}}();(0,j.useEffect)(function(){D(n.appCode)},[n.appCode]);var V=function(){var I=Z()(s()().mark(function f(p){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,B({appCode:n.appCode},p);case 3:l.next=8;break;case 5:return l.prev=5,l.t0=l.catch(0),l.abrupt("return");case 8:n.onSubmit();case 9:case"end":return l.stop()}},f,null,[[0,5]])}));return function(p){return I.apply(this,arguments)}}();return(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:h,onCancel:M,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:16},form:a,onFinish:V,children:[(0,e.jsx)(t.Z.Item,{name:"umengAppKeyAli",label:"AppKey(\u963F\u91CC\u4E91)",children:(0,e.jsx)(b.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppSecret",label:"AppSecret(\u963F\u91CC\u4E91)",children:(0,e.jsx)(b.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppCode",label:"AppCode(\u963F\u91CC\u4E91)",children:(0,e.jsx)(b.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppKey",label:"AppKey(\u53CB\u76DF)",children:(0,e.jsx)(b.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"linkId",label:"linkId(\u53CB\u76DF)",children:(0,e.jsx)(b.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"bindWx",label:"\u7ED1\u5B9A\u5FAE\u4FE1\u8D26\u53F7",children:(0,e.jsx)(un.Z,{})})]})})},on=sn,cn=function(){var n=(0,j.useState)(!1),u=A()(n,2),m=u[0],a=u[1],h=(0,j.useState)([]),M=A()(h,2),D=M[0],V=M[1],I=(0,j.useState)([]),f=A()(I,2),p=f[0],S=f[1],l=(0,j.useState)(!1),i=A()(l,2),C=i[0],d=i[1],E=(0,j.useState)(!1),O=A()(E,2),w=O[0],U=O[1],x=(0,j.useState)(),K=A()(x,2),J=K[0],k=K[1],mn=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(P){return(0,e.jsx)("img",{style:{width:"40px"},src:P})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function(P){return(0,e.jsx)(ie.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(Y.Z,{value:P||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:P})})}},{title:"secret",dataIndex:"secret",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u83DC\u5355\u680F\u4E2D",dataIndex:"hide",hideInSearch:!0,renderText:function(P){return P===0?(0,e.jsx)(ve.Z,{color:"blue",children:"\u5C55\u793A"}):(0,e.jsx)(ve.Z,{color:"purple",children:"\u9690\u85CF"})}},{title:"\u6E20\u9053",dataIndex:"channel",hideInSearch:!0,renderText:function(P){var G=(0,Le.FG)(),se=G.find(function(H){return H.value===P});return se?se.label:P}},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(P){return(0,e.jsxs)(He.Z,{gap:"small",wrap:!0,children:[(0,e.jsx)(ve.Z,{color:"magenta",onClick:function(){k(P.code),a(!0)},children:"\u7F16\u8F91"},"edit"),P.enableCash&&(0,e.jsx)(ve.Z,{color:"orange",onClick:function(){k(P.code),U(!0)},children:"\u53CB\u76DF\u914D\u7F6E"},"ediyUMeng"),(0,e.jsx)(ve.Z,{color:"#2db7f5",onClick:function(){k(P.code),d(!0)},children:"\u652F\u4ED8\u5B9D\u914D\u7F6E"},"ediyAliPay")]})}}],Re=function(){var R=Z()(s()().mark(function P(){var G;return s()().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,(0,z.ln)();case 2:G=H.sent,G.data&&(V(G.data),S(G.data));case 4:case"end":return H.stop()}},P)}));return function(){return R.apply(this,arguments)}}();(0,j.useEffect)(function(){Re()},[]);var hn=function(P){var G=D.filter(function(se){var H;return se==null||(H=se.name)===null||H===void 0?void 0:H.includes(P)});S(G)};return(0,e.jsxs)(N._z,{children:[(0,e.jsx)(ue.ZP,{style:{marginBottom:"20px"},onClick:function(){a(!0),k(void 0)},children:"\u65B0\u5EFA\u5E94\u7528"}),(0,e.jsx)(X.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(G){return hn(G.target.value)}},"name")]}},onReset:function(){S(D)},columns:mn,dataSource:p}),J&&C&&(0,e.jsx)(_e,{updateModalOpen:C,appCode:J||"",onCancel:function(){return d(!1)},onSubmit:function(){d(!1),Re()}}),J&&w&&(0,e.jsx)(on,{updateModalOpen:w,appCode:J||"",onCancel:function(){return U(!1)},onSubmit:function(){U(!1)}}),(0,e.jsx)(ln,{updateModalOpen:m,appCode:J,onCancel:function(){return a(!1)},onSubmit:function(){a(!1),Re()}})]})},dn=cn,pn=function(){var n=(0,T.useModel)("@@initialState"),u=n.initialState,m=u==null?void 0:u.currentUser,a=m&&m.role&&m.role<2;return(0,e.jsx)(N._z,{children:a?(0,e.jsx)(dn,{}):(0,e.jsx)(ze,{})})},fn=pn},52043:function(Fe,ne,r){r.d(ne,{FG:function(){return N},RQ:function(){return s},XY:function(){return T},m0:function(){return ae}});var N=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"}]},T=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"}]},ae=function(Z){var W=new Date(Z),A=W.getFullYear().toString().padStart(4,"0"),z=(W.getMonth()+1).toString().padStart(2,"0"),X=W.getDate().toString().padStart(2,"0");return A+z+X},s=function(Z,W){var A=Z.toString();return A.padStart(W,"0")}},32400:function(Fe,ne,r){r.d(ne,{p:function(){return W}});var N=r(15009),T=r.n(N),ae=r(99289),s=r.n(ae),Q=r(8322),Z=r.n(Q);function W(z){return A.apply(this,arguments)}function A(){return A=s()(T()().mark(function z(X){return T()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.abrupt("return",new Promise(function(b,j){var oe=new(Z()).ArrayBuffer,y=new FileReader;y.onload=function(te){var q;oe.append((q=te.target)===null||q===void 0?void 0:q.result),b(oe.end())},y.onerror=function(te){j(te)},y.readAsArrayBuffer(X)}));case 1:case"end":return Y.stop()}},z)})),A.apply(this,arguments)}},86250:function(Fe,ne,r){r.d(ne,{Z:function(){return fe}});var N=r(67294),T=r(93967),ae=r.n(T),s=r(98423),Q=r(98065),Z=r(53124),W=r(91945),A=r(45503);const z=["wrap","nowrap","wrap-reverse"],X=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],ie=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Y=(o,v)=>{const F=v.wrap===!0?"wrap":v.wrap;return{[`${o}-wrap-${F}`]:F&&z.includes(F)}},b=(o,v)=>{const F={};return ie.forEach(g=>{F[`${o}-align-${g}`]=v.align===g}),F[`${o}-align-stretch`]=!v.align&&!!v.vertical,F},j=(o,v)=>{const F={};return X.forEach(g=>{F[`${o}-justify-${g}`]=v.justify===g}),F};function oe(o,v){return ae()(Object.assign(Object.assign(Object.assign({},Y(o,v)),b(o,v)),j(o,v)))}var y=oe;const te=o=>{const{componentCls:v}=o;return{[v]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},q=o=>{const{componentCls:v}=o;return{[v]:{"&-gap-small":{gap:o.flexGapSM},"&-gap-middle":{gap:o.flexGap},"&-gap-large":{gap:o.flexGapLG}}}},Se=o=>{const{componentCls:v}=o,F={};return z.forEach(g=>{F[`${v}-wrap-${g}`]={flexWrap:g}}),F},ce=o=>{const{componentCls:v}=o,F={};return ie.forEach(g=>{F[`${v}-align-${g}`]={alignItems:g}}),F},Ze=o=>{const{componentCls:v}=o,F={};return X.forEach(g=>{F[`${v}-justify-${g}`]={justifyContent:g}}),F},de=()=>({});var be=(0,W.I$)("Flex",o=>{const{paddingXS:v,padding:F,paddingLG:g}=o,B=(0,A.TS)(o,{flexGapSM:v,flexGap:F,flexGapLG:g});return[te(B),q(B),Se(B),ce(B),Ze(B)]},de,{resetStyle:!1}),pe=function(o,v){var F={};for(var g in o)Object.prototype.hasOwnProperty.call(o,g)&&v.indexOf(g)<0&&(F[g]=o[g]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,g=Object.getOwnPropertySymbols(o);B{const{prefixCls:F,rootClassName:g,className:B,style:me,flex:Ae,gap:_,children:ke,vertical:le=!1,component:re="div"}=o,Ie=pe(o,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:L,direction:Ee,getPrefixCls:we}=N.useContext(Z.E_),$=we("flex",F),[ge,Oe,Pe]=be($),De=le!=null?le:L==null?void 0:L.vertical,Te=ae()(B,g,L==null?void 0:L.className,$,Oe,Pe,y($,o),{[`${$}-rtl`]:Ee==="rtl",[`${$}-gap-${_}`]:(0,Q.n)(_),[`${$}-vertical`]:De}),t=Object.assign(Object.assign({},L==null?void 0:L.style),me);return Ae&&(t.flex=Ae),_&&!(0,Q.n)(_)&&(t.gap=_),ge(N.createElement(re,Object.assign({ref:v,className:Te,style:t},(0,s.Z)(Ie,["justify","wrap","align"])),ke))})}}]); diff --git a/dist/p__MoneyManagement.104db416.async.js b/dist/p__MoneyManagement.104db416.async.js new file mode 100644 index 0000000..b9c7e20 --- /dev/null +++ b/dist/p__MoneyManagement.104db416.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[190],{39829:function(q,O,n){n.r(O),n.d(O,{default:function(){return _}});var d=n(97857),S=n.n(d),b=n(15009),g=n.n(b),$=n(99289),p=n.n($),C=n(35312);function E(y,o){return T.apply(this,arguments)}function T(){return T=p()(g()().mark(function y(o,c){return g()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,C.request)("/api/admin/money/audit",S()({method:"POST",headers:{"Content-Type":"application/json"},data:o},c||{})));case 1:case"end":return s.stop()}},y)})),T.apply(this,arguments)}function D(y,o){return N.apply(this,arguments)}function N(){return N=p()(g()().mark(function y(o,c){return g()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,C.request)("/api/admin/money/list",S()({method:"POST",headers:{"Content-Type":"application/json"},data:o},c||{})));case 1:case"end":return s.stop()}},y)})),N.apply(this,arguments)}var X=n(58125),Y=n(90930),A=n(67539),Q=n(71230),z=n(7134),w=n(66309),G=n(86250),V=n(86738),U=n(14726),H=n(67294),B=n(52043),v=n(85893),J=function(){var o=(0,C.useParams)(),c=o.code,i=(0,H.useRef)();(0,H.useEffect)(function(){var u;(u=i.current)===null||u===void 0||u.reload()},[c]);var s=[{title:"id",dataIndex:"id",valueType:"textarea",copyable:!0,hideInSearch:!0,renderText:function(e,l){return(0,B.m0)(l.createdAt||0)+(0,B.RQ)(l.id||0,6)}},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"user",valueType:"textarea",width:180,renderText:function(e,l){var a,r,t;if(l.user)return(0,v.jsxs)(Q.Z,{children:[(0,v.jsx)(z.C,{src:((a=l.user)===null||a===void 0?void 0:a.avatar)||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,v.jsxs)("p",{style:{fontSize:12,marginLeft:10},children:["id:",l.user.id,(0,v.jsx)("br",{}),((r=l.user)===null||r===void 0?void 0:r.nickname)||((t=l.user)===null||t===void 0?void 0:t.mobile)]})]})}},{title:"\u91D1\u989D\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"cent",valueType:"textarea",renderText:function(e){return(0,X.D)(e)}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount",hideInSearch:!0},{title:"\u8BA2\u5355\u53F7",dataIndex:"orderId",hideInSearch:!0},{title:"\u8F6C\u8D26\u65F6\u95F4",dataIndex:"transDate",hideInSearch:!0},{title:"\u72B6\u6001",dataIndex:"status",hideInSearch:!0,renderText:function(e){var l=(0,B.XY)(),a=l.find(function(t){return t.value===e+""}),r=a?a.label:"\u672A\u77E5";return(0,v.jsx)(w.Z,{color:a==null?void 0:a.color,children:r})}},{title:"\u72B6\u6001",dataIndex:"status",hideInTable:!0,valueType:"select",fieldProps:{options:(0,B.XY)()}},{title:"\u7533\u8BF7\u65F6\u95F4",dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(e){return(0,v.jsx)(G.Z,{gap:"small",wrap:!0,children:e.status===0&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(V.Z,{title:"\u62D2\u7EDD\u63D0\u73B0\u7533\u8BF7",description:"\u62D2\u7EDD\u540E\uFF0C\u72B6\u6001\u65E0\u6CD5\u4FEE\u6539\u6210\u5BA1\u6279\u901A\u8FC7\uFF0C\u786E\u5B9A\u62D2\u7EDD\u5417?",onConfirm:p()(g()().mark(function l(){var a;return g()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,E({id:e.id,status:-2,reason:""});case 2:(a=i.current)===null||a===void 0||a.reload();case 3:case"end":return t.stop()}},l)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,v.jsx)(U.ZP,{children:"\u62D2\u7EDD"})}),(0,v.jsx)(V.Z,{title:"\u901A\u8FC7\u63D0\u73B0\u7533\u8BF7",description:"\u901A\u8FC7\u540E\u7CFB\u7EDF\u5C06\u81EA\u52A8\u8F6C\u8D26\uFF0C\u65E0\u6CD5\u64A4\u56DE\uFF0C\u786E\u5B9A\u901A\u8FC7\u5417?",onConfirm:p()(g()().mark(function l(){var a;return g()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,E({id:e.id,status:1,reason:""});case 2:(a=i.current)===null||a===void 0||a.reload();case 3:case"end":return t.stop()}},l)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,v.jsx)(U.ZP,{type:"primary",children:"\u901A\u8FC7"})})]})})}}];return(0,v.jsx)(Y._z,{children:(0,v.jsx)(A.Z,{actionRef:i,request:function(){var u=p()(g()().mark(function e(l){var a,r,t;return g()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,D(S()(S()({},l),{},{appCode:c}));case 2:return t=f.sent,f.abrupt("return",{data:(a=t.data)===null||a===void 0?void 0:a.data,total:(r=t.data)===null||r===void 0?void 0:r.total,success:!0});case 4:case"end":return f.stop()}},e)}));return function(e){return u.apply(this,arguments)}}(),columns:s})})},_=J},52043:function(q,O,n){n.d(O,{FG:function(){return d},RQ:function(){return g},XY:function(){return S},m0:function(){return b}});var d=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"}]},S=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"}]},b=function(p){var C=new Date(p),E=C.getFullYear().toString().padStart(4,"0"),T=(C.getMonth()+1).toString().padStart(2,"0"),D=C.getDate().toString().padStart(2,"0");return E+T+D},g=function(p,C){var E=p.toString();return E.padStart(C,"0")}},58125:function(q,O,n){n.d(O,{D:function(){return S},P:function(){return d}});var d=function(g){return g?(g/1e5).toFixed(2):"0.00"},S=function(g){return g?(g/100).toFixed(2):"0.00"}},86250:function(q,O,n){n.d(O,{Z:function(){return y}});var d=n(67294),S=n(93967),b=n.n(S),g=n(98423),$=n(98065),p=n(53124),C=n(91945),E=n(45503);const T=["wrap","nowrap","wrap-reverse"],D=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],N=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],X=(o,c)=>{const i=c.wrap===!0?"wrap":c.wrap;return{[`${o}-wrap-${i}`]:i&&T.includes(i)}},Y=(o,c)=>{const i={};return N.forEach(s=>{i[`${o}-align-${s}`]=c.align===s}),i[`${o}-align-stretch`]=!c.align&&!!c.vertical,i},A=(o,c)=>{const i={};return D.forEach(s=>{i[`${o}-justify-${s}`]=c.justify===s}),i};function Q(o,c){return b()(Object.assign(Object.assign(Object.assign({},X(o,c)),Y(o,c)),A(o,c)))}var z=Q;const w=o=>{const{componentCls:c}=o;return{[c]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},G=o=>{const{componentCls:c}=o;return{[c]:{"&-gap-small":{gap:o.flexGapSM},"&-gap-middle":{gap:o.flexGap},"&-gap-large":{gap:o.flexGapLG}}}},V=o=>{const{componentCls:c}=o,i={};return T.forEach(s=>{i[`${c}-wrap-${s}`]={flexWrap:s}}),i},U=o=>{const{componentCls:c}=o,i={};return N.forEach(s=>{i[`${c}-align-${s}`]={alignItems:s}}),i},H=o=>{const{componentCls:c}=o,i={};return D.forEach(s=>{i[`${c}-justify-${s}`]={justifyContent:s}}),i},B=()=>({});var v=(0,C.I$)("Flex",o=>{const{paddingXS:c,padding:i,paddingLG:s}=o,u=(0,E.TS)(o,{flexGapSM:c,flexGap:i,flexGapLG:s});return[w(u),G(u),V(u),U(u),H(u)]},B,{resetStyle:!1}),J=function(o,c){var i={};for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&c.indexOf(s)<0&&(i[s]=o[s]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(o);u{const{prefixCls:i,rootClassName:s,className:u,style:e,flex:l,gap:a,children:r,vertical:t=!1,component:x="div"}=o,f=J(o,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:m,direction:F,getPrefixCls:R}=d.useContext(p.E_),h=R("flex",i),[M,P,K]=v(h),k=t!=null?t:m==null?void 0:m.vertical,j=b()(u,s,m==null?void 0:m.className,h,P,K,z(h,o),{[`${h}-rtl`]:F==="rtl",[`${h}-gap-${a}`]:(0,$.n)(a),[`${h}-vertical`]:k}),Z=Object.assign(Object.assign({},m==null?void 0:m.style),e);return l&&(Z.flex=l),a&&!(0,$.n)(a)&&(Z.gap=a),M(d.createElement(x,Object.assign({ref:c,className:j,style:Z},(0,g.Z)(f,["justify","wrap","align"])),r))})},66309:function(q,O,n){n.d(O,{Z:function(){return u}});var d=n(67294),S=n(93967),b=n.n(S),g=n(98423),$=n(98787),p=n(69760),C=n(96159),E=n(45353),T=n(53124),D=n(54548),N=n(10274),X=n(14747),Y=n(45503),A=n(91945);const Q=e=>{const{paddingXXS:l,lineWidth:a,tagPaddingHorizontal:r,componentCls:t,calc:x}=e,f=x(r).sub(a).equal(),m=x(l).sub(a).equal();return{[t]:Object.assign(Object.assign({},(0,X.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:f,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,D.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${t}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${t}-close-icon`]:{marginInlineStart:m,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${t}-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(${t}-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:f}}),[`${t}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},z=e=>{const{lineWidth:l,fontSizeIcon:a,calc:r}=e,t=e.fontSizeSM;return(0,Y.TS)(e,{tagFontSize:t,tagLineHeight:(0,D.bf)(r(e.lineHeightSM).mul(t).equal()),tagIconSize:r(a).sub(r(l).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},w=e=>({defaultBg:new N.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var G=(0,A.I$)("Tag",e=>{const l=z(e);return Q(l)},w),V=function(e,l){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&l.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);t{const{prefixCls:a,style:r,className:t,checked:x,onChange:f,onClick:m}=e,F=V(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:R,tag:h}=d.useContext(T.E_),M=ee=>{f==null||f(!x),m==null||m(ee)},P=R("tag",a),[K,k,j]=G(P),Z=b()(P,`${P}-checkable`,{[`${P}-checkable-checked`]:x},h==null?void 0:h.className,t,k,j);return K(d.createElement("span",Object.assign({},F,{ref:l,style:Object.assign(Object.assign({},r),h==null?void 0:h.style),className:Z,onClick:M})))}),B=n(98719);const v=e=>(0,B.Z)(e,(l,a)=>{let{textColor:r,lightBorderColor:t,lightColor:x,darkColor:f}=a;return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:r,background:x,borderColor:t,"&-inverse":{color:e.colorTextLightSolid,background:f,borderColor:f},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var J=(0,A.bk)(["Tag","preset"],e=>{const l=z(e);return v(l)},w);function _(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const y=(e,l,a)=>{const r=_(a);return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:e[`color${a}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var o=(0,A.bk)(["Tag","status"],e=>{const l=z(e);return[y(l,"success","Success"),y(l,"processing","Info"),y(l,"error","Error"),y(l,"warning","Warning")]},w),c=function(e,l){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&l.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);t{const{prefixCls:a,className:r,rootClassName:t,style:x,children:f,icon:m,color:F,onClose:R,bordered:h=!0,visible:M}=e,P=c(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:K,direction:k,tag:j}=d.useContext(T.E_),[Z,ee]=d.useState(!0),ie=(0,g.Z)(P,["closeIcon","closable"]);d.useEffect(()=>{M!==void 0&&ee(M)},[M]);const re=(0,$.o2)(F),ae=(0,$.yT)(F),te=re||ae,ue=Object.assign(Object.assign({backgroundColor:F&&!te?F:void 0},j==null?void 0:j.style),x),I=K("tag",a),[de,fe,ge]=G(I),ve=b()(I,j==null?void 0:j.className,{[`${I}-${F}`]:te,[`${I}-has-color`]:F&&!te,[`${I}-hidden`]:!Z,[`${I}-rtl`]:k==="rtl",[`${I}-borderless`]:!h},r,t,fe,ge),oe=W=>{W.stopPropagation(),R==null||R(W),!W.defaultPrevented&&ee(!1)},[,me]=(0,p.Z)((0,p.w)(e),(0,p.w)(j),{closable:!1,closeIconRender:W=>{const Ce=d.createElement("span",{className:`${I}-close-icon`,onClick:oe},W);return(0,C.wm)(W,Ce,L=>({onClick:ce=>{var ne;(ne=L==null?void 0:L.onClick)===null||ne===void 0||ne.call(L,ce),oe(ce)},className:b()(L==null?void 0:L.className,`${I}-close-icon`)}))}}),pe=typeof P.onClick=="function"||f&&f.type==="a",le=m||null,he=le?d.createElement(d.Fragment,null,le,f&&d.createElement("span",null,f)):f,se=d.createElement("span",Object.assign({},ie,{ref:l,className:ve,style:ue}),he,me,re&&d.createElement(J,{key:"preset",prefixCls:I}),ae&&d.createElement(o,{key:"status",prefixCls:I}));return de(pe?d.createElement(E.Z,{component:"Tag"},se):se)});s.CheckableTag=H;var u=s}}]); diff --git a/dist/p__MoneyManagement.27e1a086.async.js b/dist/p__MoneyManagement.27e1a086.async.js deleted file mode 100644 index 8314c8c..0000000 --- a/dist/p__MoneyManagement.27e1a086.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[190],{39829:function(b,x,r){r.r(x),r.d(x,{default:function(){return V}});var v=r(97857),f=r.n(v),g=r(15009),o=r.n(g),D=r(99289),h=r.n(D),S=r(35312);function T(C,p){return j.apply(this,arguments)}function j(){return j=h()(o()().mark(function C(p,e){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,S.request)("/api/admin/money/audit",f()({method:"POST",headers:{"Content-Type":"application/json"},data:p},e||{})));case 1:case"end":return t.stop()}},C)})),j.apply(this,arguments)}function E(C,p){return F.apply(this,arguments)}function F(){return F=h()(o()().mark(function C(p,e){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,S.request)("/api/admin/money/list",f()({method:"POST",headers:{"Content-Type":"application/json"},data:p},e||{})));case 1:case"end":return t.stop()}},C)})),F.apply(this,arguments)}var w=r(58125),G=r(90930),B=r(67539),R=r(71230),L=r(7134),Z=r(86250),I=r(86738),A=r(14726),O=r(67294),M=r(52043),c=r(85893),N=function(){var p=(0,S.useParams)(),e=p.code,a=(0,O.useRef)();(0,O.useEffect)(function(){var n;(n=a.current)===null||n===void 0||n.reload()},[e]);var t=[{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"user",valueType:"textarea",renderText:function(l,d){var u,i,s;if(d.user)return(0,c.jsxs)(R.Z,{children:[(0,c.jsx)(L.C,{src:(u=d.user)===null||u===void 0?void 0:u.avatar}),(0,c.jsxs)("p",{style:{fontSize:12,marginLeft:10},children:["id:",d.user.id,(0,c.jsx)("br",{}),((i=d.user)===null||i===void 0?void 0:i.nickname)||((s=d.user)===null||s===void 0?void 0:s.mobile)]})]})}},{title:"\u91D1\u989D\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"cent",valueType:"textarea",renderText:function(l){return(0,w.D)(l)}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name"},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount"},{title:"\u8BA2\u5355\u53F7",dataIndex:"orderId"},{title:"\u8F6C\u8D26\u65F6\u95F4",dataIndex:"transDate"},{title:"\u72B6\u6001",dataIndex:"status",renderText:function(l){var d=(0,M.X)(),u=d.find(function(i){return i.value===l+""});return u?u.label:"\u672A\u77E5"}},{title:"\u63D0\u73B0\u7533\u8BF7\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(l){return(0,c.jsx)(Z.Z,{gap:"small",wrap:!0,children:l.status===0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(I.Z,{title:"\u62D2\u7EDD\u63D0\u73B0\u7533\u8BF7",description:"\u62D2\u7EDD\u540E\uFF0C\u72B6\u6001\u65E0\u6CD5\u4FEE\u6539\u6210\u5BA1\u6279\u901A\u8FC7\uFF0C\u786E\u5B9A\u62D2\u7EDD\u5417?",onConfirm:h()(o()().mark(function d(){var u;return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,T({id:l.id,status:-2,reason:""});case 2:(u=a.current)===null||u===void 0||u.reload();case 3:case"end":return s.stop()}},d)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)(A.ZP,{children:"\u62D2\u7EDD"})}),(0,c.jsx)(I.Z,{title:"\u901A\u8FC7\u63D0\u73B0\u7533\u8BF7",description:"\u901A\u8FC7\u540E\u7CFB\u7EDF\u5C06\u81EA\u52A8\u8F6C\u8D26\uFF0C\u65E0\u6CD5\u64A4\u56DE\uFF0C\u786E\u5B9A\u901A\u8FC7\u5417?",onConfirm:h()(o()().mark(function d(){var u;return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,T({id:l.id,status:1,reason:""});case 2:(u=a.current)===null||u===void 0||u.reload();case 3:case"end":return s.stop()}},d)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)(A.ZP,{type:"primary",children:"\u901A\u8FC7"})})]})})}}];return(0,c.jsx)(G._z,{children:(0,c.jsx)(B.Z,{search:!1,actionRef:a,request:function(){var n=h()(o()().mark(function l(d){var u,i,s;return o()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,E(f()(f()({},d),{},{appCode:e}));case 2:return s=y.sent,y.abrupt("return",{data:(u=s.data)===null||u===void 0?void 0:u.data,total:(i=s.data)===null||i===void 0?void 0:i.total,success:!0});case 4:case"end":return y.stop()}},l)}));return function(l){return n.apply(this,arguments)}}(),columns:t})})},V=N},52043:function(b,x,r){r.d(x,{F:function(){return v},X:function(){return f}});var v=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"}]},f=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1"},{label:"\u8F6C\u8D26\u4E2D",value:"2"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2"}]}},58125:function(b,x,r){r.d(x,{D:function(){return f},P:function(){return v}});var v=function(o){return o?parseFloat((o/1e5).toFixed(2)):0},f=function(o){return o?parseFloat((o/100).toFixed(2)):0}},86250:function(b,x,r){r.d(x,{Z:function(){return p}});var v=r(67294),f=r(93967),g=r.n(f),o=r(98423),D=r(98065),h=r(53124),S=r(91945),T=r(45503);const j=["wrap","nowrap","wrap-reverse"],E=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],F=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],w=(e,a)=>{const t=a.wrap===!0?"wrap":a.wrap;return{[`${e}-wrap-${t}`]:t&&j.includes(t)}},G=(e,a)=>{const t={};return F.forEach(n=>{t[`${e}-align-${n}`]=a.align===n}),t[`${e}-align-stretch`]=!a.align&&!!a.vertical,t},B=(e,a)=>{const t={};return E.forEach(n=>{t[`${e}-justify-${n}`]=a.justify===n}),t};function R(e,a){return g()(Object.assign(Object.assign(Object.assign({},w(e,a)),G(e,a)),B(e,a)))}var L=R;const Z=e=>{const{componentCls:a}=e;return{[a]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},I=e=>{const{componentCls:a}=e;return{[a]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},A=e=>{const{componentCls:a}=e,t={};return j.forEach(n=>{t[`${a}-wrap-${n}`]={flexWrap:n}}),t},O=e=>{const{componentCls:a}=e,t={};return F.forEach(n=>{t[`${a}-align-${n}`]={alignItems:n}}),t},M=e=>{const{componentCls:a}=e,t={};return E.forEach(n=>{t[`${a}-justify-${n}`]={justifyContent:n}}),t},c=()=>({});var N=(0,S.I$)("Flex",e=>{const{paddingXS:a,padding:t,paddingLG:n}=e,l=(0,T.TS)(e,{flexGapSM:a,flexGap:t,flexGapLG:n});return[Z(l),I(l),A(l),O(l),M(l)]},c,{resetStyle:!1}),V=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l{const{prefixCls:t,rootClassName:n,className:l,style:d,flex:u,gap:i,children:s,vertical:P=!1,component:y="div"}=e,W=V(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:m,direction:X,getPrefixCls:J}=v.useContext(h.E_),$=J("flex",t),[U,Y,H]=N($),Q=P!=null?P:m==null?void 0:m.vertical,K=g()(l,n,m==null?void 0:m.className,$,Y,H,L($,e),{[`${$}-rtl`]:X==="rtl",[`${$}-gap-${i}`]:(0,D.n)(i),[`${$}-vertical`]:Q}),z=Object.assign(Object.assign({},m==null?void 0:m.style),d);return u&&(z.flex=u),i&&!(0,D.n)(i)&&(z.gap=i),U(v.createElement(y,Object.assign({ref:a,className:K,style:z},(0,o.Z)(W,["justify","wrap","align"])),s))})}}]); diff --git a/dist/p__SuperAdmin.aaa0f8d9.async.js b/dist/p__SuperAdmin.aaa0f8d9.async.js deleted file mode 100644 index 3dce3c0..0000000 --- a/dist/p__SuperAdmin.aaa0f8d9.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[455],{52128:function(le,A,e){e.r(A),e.d(A,{default:function(){return xe}});var x=e(97857),Z=e.n(x),B=e(13769),w=e.n(B),X=e(15009),i=e.n(X),J=e(99289),v=e.n(J),W=e(5574),p=e.n(W),g=e(48357),D=e(52043),Q=e(3089),q=e(90930),m=e(8232),P=e(55241),O=e(66309),F=e(2453),pe=e(13169),_=e(14726),ie=e(72051),de=e(17788),ce=e(55102),oe=e(34041),je=e(71230),me=e(15746),Fe=e(47676),ee=e(16250),Se=e(27484),$=e.n(Se),S=e(67294),ge=e(19632),fe=e.n(ge),De=e(32400),ye=e(56448),Ce=e.n(ye),Ee=e(66476),n=e(85893),Ae=function(k){var M=k.onUploadSuccess,y=k.onUploadError,ne=(0,S.useState)(!1),K=p()(ne,2),H=K[0],T=K[1],re=(0,S.useState)([]),V=p()(re,2),L=V[0],U=V[1],ae=(0,S.useState)(null),N=p()(ae,2),E=N[0],te=N[1],Y=Ee.Z.Dragger;(0,S.useEffect)(function(){function C(){return o.apply(this,arguments)}function o(){return o=v()(i()().mark(function j(){var s,f;return i()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,(0,g.po)();case 3:if(s=d.sent,!(!s.data||!s.data.accessKeySecret||!s.data.accessKeyId)){d.next=7;break}return F.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),d.abrupt("return");case 7:f=new(Ce())({region:"oss-cn-beijing",accessKeyId:s.data.accessKeyId,accessKeySecret:s.data.accessKeySecret,stsToken:s.data.securityToken,bucket:s.data.bucket}),te(f),d.next=15;break;case 11:d.prev=11,d.t0=d.catch(0),F.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),y&&y(d.t0);case 15:case"end":return d.stop()}},j,null,[[0,11]])})),o.apply(this,arguments)}C()},[y]);var ue=function(o){var j=(L||[]).filter(function(s){return s.url!==o.url});U(j)},G=function(){var C=v()(i()().mark(function o(j){var s,f,b,d;return i()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(s=j.file,!(s instanceof File)){l.next=26;break}return T(!0),l.prev=3,l.next=6,(0,De.p)(s);case 6:return f=l.sent,b="matrix/".concat(f,".").concat(s.name.split(".").pop()),l.next=10,E==null?void 0:E.put(b,s,{headers:{"Content-Type":s.type}});case 10:d="https://apks.bzgames.cn/".concat(b),M&&M(d),T(!1),U(function(R){return[].concat(fe()(R),[{uid:s.uid,name:s.name+"\uFF1A"+d,status:"done",url:d}])}),l.next=21;break;case 16:l.prev=16,l.t0=l.catch(3),F.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),y&&y(l.t0),U(function(R){return[].concat(fe()(R),[{uid:s.uid,name:s.name,status:"error"}])});case 21:return l.prev=21,T(!1),l.finish(21);case 24:l.next=27;break;case 26:F.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 27:case"end":return l.stop()}},o,null,[[3,16,21,24]])}));return function(j){return C.apply(this,arguments)}}();return(0,n.jsxs)(Y,{fileList:L,multiple:!0,customRequest:G,onRemove:ue,disabled:H||!E,onPreview:function(){var C=v()(i()().mark(function o(j){return i()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,navigator.clipboard.writeText(j.url||"");case 2:F.ZP.success("\u94FE\u63A5\u590D\u5236\u6210\u529F "+j.url);case 3:case"end":return f.stop()}},o)}));return function(o){return C.apply(this,arguments)}}(),capture:void 0,children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)("i",{className:"anticon anticon-inbox"})}),(0,n.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"}),(0,n.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"})]})},Ze=Ae,be=["scheduleTime"],Ie=function(){var k=(0,S.useState)([]),M=p()(k,2),y=M[0],ne=M[1],K=(0,S.useState)([]),H=p()(K,2),T=H[0],re=H[1],V=(0,S.useState)([]),L=p()(V,2),U=L[0],ae=L[1],N=(0,S.useState)(!1),E=p()(N,2),te=E[0],Y=E[1],ue=(0,S.useState)(!1),G=p()(ue,2),C=G[0],o=G[1],j=m.Z.useForm(),s=p()(j,1),f=s[0],b=m.Z.useForm(),d=p()(b,1),z=d[0],l=function(){var u=v()(i()().mark(function r(){var t;return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,g.hy)();case 2:t=a.sent,t.data&&re(t.data);case 4:case"end":return a.stop()}},r)}));return function(){return u.apply(this,arguments)}}(),R=function(){var u=v()(i()().mark(function r(t){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,(0,g.o9)({deviceId:t});case 4:l();case 5:case"end":return a.stop()}},r)}));return function(t){return u.apply(this,arguments)}}(),Pe=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",ellipsis:!0},{title:"\u6E20\u9053",dataIndex:"channel",render:function(r){var t=(0,D.F)(),c=t.find(function(a){return a.value===r});return c?c.label:r}},{title:"\u64CD\u4F5C",dataIndex:"operate",render:function(r,t){return(0,n.jsx)(P.Z,{title:"\u786E\u8BA4\u5220\u9664\u5417",content:(0,n.jsxs)("div",{style:{textAlign:"center"},children:[(0,n.jsxs)("p",{children:["\u5220\u9664\u4E4B\u540Eecpm\u4F1A\u964D\u4F4E",(0,n.jsx)("br",{}),"\u4E5F\u4F1A\u5F71\u54CD\u5237\u6570\u636E\u53EF\u4F7F\u7528\u7684\u8BBE\u5907"]}),(0,n.jsx)("a",{onClick:function(){return R(t.deviceId)},children:"\u786E\u5B9A"})]}),children:(0,n.jsx)("a",{children:"\u5220\u9664"})})}}],Oe=function(r){var t=y.find(function(c){return c.id===r});return t?t.name:""},Me=function(r){return r?parseFloat((r/1e5).toFixed(2)):0},Te=[{title:"\u5E94\u7528",dataIndex:"appId",render:function(r){return(0,n.jsx)(O.Z,{color:"blue",children:Oe(r)},r)}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(r){var t=(0,D.F)(),c=t.find(function(a){return a.value===r});return c?c.label:r}},{title:"\u76EE\u6807\u91D1\u989D",dataIndex:"incomeYuan"},{title:"\u5DF2\u5237\u91D1\u989D",dataIndex:"mockIncome",render:function(r){return Me(r)}},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"scheduleTime",render:function(r){return $()(r).format("YYYY-MM-DD HH:mm")}},{title:"\u72B6\u6001",dataIndex:"status",render:function(r){switch(r){case 0:return"\u672A\u5F00\u59CB";case 1:return"\u8FDB\u884C\u4E2D";case 2:return"\u5DF2\u5B8C\u6210"}return r}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createdAt",render:function(r){return $()(r).format("YYYY-MM-DD HH:mm")}},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updatedAt",render:function(r){return $()(r).format("YYYY-MM-DD HH:mm")}}],se=function(){var u=v()(i()().mark(function r(){var t;return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,g.mW)();case 2:t=a.sent,t.data&&ae(t.data);case 4:case"end":return a.stop()}},r)}));return function(){return u.apply(this,arguments)}}(),Le=function(){var u=v()(i()().mark(function r(){var t;return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,g.ln)();case 2:t=a.sent,t.data&&ne(t.data);case 4:case"end":return a.stop()}},r)}));return function(){return u.apply(this,arguments)}}();(0,S.useEffect)(function(){Le(),l(),se()},[]);var Ue=function(){var u=v()(i()().mark(function r(t){var c,a,I;return i()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return c=t.scheduleTime,a=w()(t,be),I=c.map(function(he){return $()(he.time).valueOf()}),h.prev=2,h.next=5,(0,g.tI)(Z()({scheduleTime:I},a));case 5:h.next=10;break;case 7:return h.prev=7,h.t0=h.catch(2),h.abrupt("return");case 10:F.ZP.success("\u4EFB\u52A1\u63D0\u4EA4\u6210\u529F"),se(),o(!1);case 13:case"end":return h.stop()}},r,null,[[2,7]])}));return function(t){return u.apply(this,arguments)}}(),Ye=function(){f.resetFields(),Y(!0)},Re=function(){z.resetFields(),o(!0)},We=function(){f.submit()},$e=function(){Y(!1)},ke=function(){z.submit()},Ke=function(){o(!1)},He=function(){var u=v()(i()().mark(function r(t){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,(0,g.gz)({deviceId:t.deviceId||"",channel:t.channel||""});case 3:a.next=8;break;case 5:return a.prev=5,a.t0=a.catch(0),a.abrupt("return");case 8:Y(!1),l();case 10:case"end":return a.stop()}},r,null,[[0,5]])}));return function(t){return u.apply(this,arguments)}}();return(0,n.jsx)(q._z,{children:(0,n.jsxs)(pe.Z,{defaultActiveKey:"1",onChange:function(r){r==="1"?l():r==="2"&&se()},centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,n.jsx)(ee.Z,{tab:"\u8BBE\u5907\u767D\u540D\u5355",children:(0,n.jsxs)("div",{children:[(0,n.jsx)(_.ZP,{onClick:Ye,children:"\u6DFB\u52A0\u767D\u540D\u5355"}),(0,n.jsx)(ie.Z,{columns:Pe,dataSource:T}),(0,n.jsx)(de.Z,{title:"\u6DFB\u52A0\u767D\u540D\u5355",visible:te,onOk:We,onCancel:$e,children:(0,n.jsxs)(m.Z,{form:f,onFinish:He,children:[(0,n.jsx)(m.Z.Item,{name:"deviceId",label:"\u8BBE\u5907id",children:(0,n.jsx)(ce.Z,{})}),(0,n.jsx)(m.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,n.jsx)(oe.Z,{options:(0,D.F)()})})]})})]})},"1"),(0,n.jsx)(ee.Z,{tab:"\u5237\u6570\u636E",children:(0,n.jsxs)("div",{children:[(0,n.jsx)(_.ZP,{onClick:Re,children:"\u6DFB\u52A0\u4EFB\u52A1"}),(0,n.jsx)(ie.Z,{columns:Te,dataSource:U}),(0,n.jsx)(de.Z,{title:"\u6DFB\u52A0\u4EFB\u52A1",visible:C,onOk:ke,onCancel:Ke,children:(0,n.jsxs)(m.Z,{labelCol:{span:6},wrapperCol:{span:18},form:z,onFinish:Ue,children:[(0,n.jsx)(m.Z.Item,{label:"\u5E94\u7528",name:"appId",children:(0,n.jsx)(oe.Z,{mode:"multiple",options:y.map(function(u){return{label:u.name,value:u.id}})})}),(0,n.jsx)(m.Z.Item,{name:"incomeYuan",label:"\u91D1\u989D\uFF08\u5143\uFF09",children:(0,n.jsx)(ce.Z,{})}),(0,n.jsx)(m.Z.List,{name:"scheduleTime",children:function(r,t){var c=t.add,a=t.remove;return(0,n.jsxs)(n.Fragment,{children:[r.map(function(I){var ve=I.key,h=I.name;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(je.Z,{align:"stretch",gutter:16,children:[(0,n.jsx)(me.Z,{span:18,children:(0,n.jsx)(m.Z.Item,{labelCol:{xs:{span:24},sm:{span:8}},name:[h,"time"],label:"\u5F00\u59CB\u65F6\u95F4",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}],children:(0,n.jsx)(Fe.default,{format:"YYYY-MM-DD HH:mm",showTime:{format:"HH:mm"}})})}),(0,n.jsx)(me.Z,{children:(0,n.jsx)(Q.Z,{onClick:function(){return a(h)}})})]},ve)})}),(0,n.jsx)(m.Z.Item,{children:(0,n.jsx)(_.ZP,{type:"dashed",onClick:function(){return c()},block:!0,children:"\u6DFB\u52A0\u5F00\u59CB\u65F6\u95F4"})})]})}})]})})]})},"2"),(0,n.jsx)(ee.Z,{tab:"\u4E0A\u4F20\u8D44\u6E90",children:(0,n.jsx)(Ze,{})},"3")]})})},xe=Ie},52043:function(le,A,e){e.d(A,{F:function(){return x},X:function(){return Z}});var x=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"}]},Z=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1"},{label:"\u8F6C\u8D26\u4E2D",value:"2"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2"}]}},32400:function(le,A,e){e.d(A,{p:function(){return J}});var x=e(15009),Z=e.n(x),B=e(99289),w=e.n(B),X=e(8322),i=e.n(X);function J(W){return v.apply(this,arguments)}function v(){return v=w()(Z()().mark(function W(p){return Z()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.abrupt("return",new Promise(function(Q,q){var m=new(i()).ArrayBuffer,P=new FileReader;P.onload=function(O){var F;m.append((F=O.target)===null||F===void 0?void 0:F.result),Q(m.end())},P.onerror=function(O){q(O)},P.readAsArrayBuffer(p)}));case 1:case"end":return D.stop()}},W)})),v.apply(this,arguments)}}}]); diff --git a/dist/p__SuperAdmin.bbb0991c.async.js b/dist/p__SuperAdmin.bbb0991c.async.js new file mode 100644 index 0000000..a80bd1a --- /dev/null +++ b/dist/p__SuperAdmin.bbb0991c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[455],{52128:function(le,x,e){e.r(x),e.d(x,{default:function(){return be}});var M=e(97857),Z=e.n(M),O=e(13769),T=e.n(O),A=e(15009),s=e.n(A),F=e(99289),o=e.n(F),b=e(5574),f=e.n(b),D=e(48357),y=e(52043),J=e(3089),q=e(90930),v=e(8232),L=e(55241),U=e(66309),g=e(2453),pe=e(13169),_=e(14726),ie=e(72051),de=e(17788),ce=e(55102),oe=e(34041),Se=e(71230),me=e(15746),ge=e(47676),ee=e(16250),je=e(27484),H=e.n(je),j=e(67294),Fe=e(19632),fe=e.n(Fe),De=e(32400),ye=e(56448),Ce=e.n(ye),Ee=e(66476),n=e(85893),Ae=function(N){var Y=N.onUploadSuccess,C=N.onUploadError,ne=(0,j.useState)(!1),G=f()(ne,2),V=G[0],R=G[1],re=(0,j.useState)([]),w=f()(re,2),W=w[0],$=w[1],ae=(0,j.useState)(null),z=f()(ae,2),I=z[0],te=z[1],k=Ee.Z.Dragger;(0,j.useEffect)(function(){function E(){return m.apply(this,arguments)}function m(){return m=o()(s()().mark(function S(){var l,h;return s()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,(0,D.po)();case 3:if(l=d.sent,!(!l.data||!l.data.accessKeySecret||!l.data.accessKeyId)){d.next=7;break}return g.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),d.abrupt("return");case 7:h=new(Ce())({region:"oss-cn-beijing",accessKeyId:l.data.accessKeyId,accessKeySecret:l.data.accessKeySecret,stsToken:l.data.securityToken,bucket:l.data.bucket}),te(h),d.next=15;break;case 11:d.prev=11,d.t0=d.catch(0),g.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),C&&C(d.t0);case 15:case"end":return d.stop()}},S,null,[[0,11]])})),m.apply(this,arguments)}E()},[C]);var ue=function(m){var S=(W||[]).filter(function(l){return l.url!==m.url});$(S)},Q=function(){var E=o()(s()().mark(function m(S){var l,h,B,d;return s()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(l=S.file,!(l instanceof File)){i.next=26;break}return R(!0),i.prev=3,i.next=6,(0,De.p)(l);case 6:return h=i.sent,B="matrix/".concat(h,".").concat(l.name.split(".").pop()),i.next=10,I==null?void 0:I.put(B,l,{headers:{"Content-Type":l.type}});case 10:d="https://apks.bzgames.cn/".concat(B),Y&&Y(d),R(!1),$(function(K){return[].concat(fe()(K),[{uid:l.uid,name:l.name+"\uFF1A"+d,status:"done",url:d}])}),i.next=21;break;case 16:i.prev=16,i.t0=i.catch(3),g.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),C&&C(i.t0),$(function(K){return[].concat(fe()(K),[{uid:l.uid,name:l.name,status:"error"}])});case 21:return i.prev=21,R(!1),i.finish(21);case 24:i.next=27;break;case 26:g.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 27:case"end":return i.stop()}},m,null,[[3,16,21,24]])}));return function(S){return E.apply(this,arguments)}}();return(0,n.jsxs)(k,{fileList:W,multiple:!0,customRequest:Q,onRemove:ue,disabled:V||!I,onPreview:function(){var E=o()(s()().mark(function m(S){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,navigator.clipboard.writeText(S.url||"");case 2:g.ZP.success("\u94FE\u63A5\u590D\u5236\u6210\u529F "+S.url);case 3:case"end":return h.stop()}},m)}));return function(m){return E.apply(this,arguments)}}(),capture:void 0,children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)("i",{className:"anticon anticon-inbox"})}),(0,n.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"}),(0,n.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"})]})},Ie=Ae,xe=["scheduleTime"],Ze=function(){var N=(0,j.useState)([]),Y=f()(N,2),C=Y[0],ne=Y[1],G=(0,j.useState)([]),V=f()(G,2),R=V[0],re=V[1],w=(0,j.useState)([]),W=f()(w,2),$=W[0],ae=W[1],z=(0,j.useState)(!1),I=f()(z,2),te=I[0],k=I[1],ue=(0,j.useState)(!1),Q=f()(ue,2),E=Q[0],m=Q[1],S=v.Z.useForm(),l=f()(S,1),h=l[0],B=v.Z.useForm(),d=f()(B,1),X=d[0],i=function(){var u=o()(s()().mark(function r(){var t;return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,D.hy)();case 2:t=a.sent,t.data&&re(t.data);case 4:case"end":return a.stop()}},r)}));return function(){return u.apply(this,arguments)}}(),K=function(){var u=o()(s()().mark(function r(t){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,(0,D.o9)({deviceId:t});case 4:i();case 5:case"end":return a.stop()}},r)}));return function(t){return u.apply(this,arguments)}}(),Pe=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",ellipsis:!0},{title:"\u6E20\u9053",dataIndex:"channel",render:function(r){var t=(0,y.FG)(),c=t.find(function(a){return a.value===r});return c?c.label:r}},{title:"\u64CD\u4F5C",dataIndex:"operate",render:function(r,t){return(0,n.jsx)(L.Z,{title:"\u786E\u8BA4\u5220\u9664\u5417",content:(0,n.jsxs)("div",{style:{textAlign:"center"},children:[(0,n.jsxs)("p",{children:["\u5220\u9664\u4E4B\u540Eecpm\u4F1A\u964D\u4F4E",(0,n.jsx)("br",{}),"\u4E5F\u4F1A\u5F71\u54CD\u5237\u6570\u636E\u53EF\u4F7F\u7528\u7684\u8BBE\u5907"]}),(0,n.jsx)("a",{onClick:function(){return K(t.deviceId)},children:"\u786E\u5B9A"})]}),children:(0,n.jsx)("a",{children:"\u5220\u9664"})})}}],Me=function(r){var t=C.find(function(c){return c.id===r});return t?t.name:""},Oe=function(r){return r?parseFloat((r/1e5).toFixed(2)):0},Te=[{title:"\u5E94\u7528",dataIndex:"appId",render:function(r){return(0,n.jsx)(U.Z,{color:"blue",children:Me(r)},r)}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(r){var t=(0,y.FG)(),c=t.find(function(a){return a.value===r});return c?c.label:r}},{title:"\u76EE\u6807\u91D1\u989D",dataIndex:"incomeYuan"},{title:"\u5DF2\u5237\u91D1\u989D",dataIndex:"mockIncome",render:function(r){return Oe(r)}},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"scheduleTime",render:function(r){return H()(r).format("YYYY-MM-DD HH:mm")}},{title:"\u72B6\u6001",dataIndex:"status",render:function(r){switch(r){case 0:return"\u672A\u5F00\u59CB";case 1:return"\u8FDB\u884C\u4E2D";case 2:return"\u5DF2\u5B8C\u6210"}return r}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createdAt",render:function(r){return H()(r).format("YYYY-MM-DD HH:mm")}},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updatedAt",render:function(r){return H()(r).format("YYYY-MM-DD HH:mm")}}],se=function(){var u=o()(s()().mark(function r(){var t;return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,D.mW)();case 2:t=a.sent,t.data&&ae(t.data);case 4:case"end":return a.stop()}},r)}));return function(){return u.apply(this,arguments)}}(),Le=function(){var u=o()(s()().mark(function r(){var t;return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,D.ln)();case 2:t=a.sent,t.data&&ne(t.data);case 4:case"end":return a.stop()}},r)}));return function(){return u.apply(this,arguments)}}();(0,j.useEffect)(function(){Le(),i(),se()},[]);var Ue=function(){var u=o()(s()().mark(function r(t){var c,a,P;return s()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return c=t.scheduleTime,a=T()(t,xe),P=c.map(function(he){return H()(he.time).valueOf()}),p.prev=2,p.next=5,(0,D.tI)(Z()({scheduleTime:P},a));case 5:p.next=10;break;case 7:return p.prev=7,p.t0=p.catch(2),p.abrupt("return");case 10:g.ZP.success("\u4EFB\u52A1\u63D0\u4EA4\u6210\u529F"),se(),m(!1);case 13:case"end":return p.stop()}},r,null,[[2,7]])}));return function(t){return u.apply(this,arguments)}}(),Ye=function(){h.resetFields(),k(!0)},Re=function(){X.resetFields(),m(!0)},We=function(){h.submit()},$e=function(){k(!1)},ke=function(){X.submit()},Ke=function(){m(!1)},He=function(){var u=o()(s()().mark(function r(t){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,(0,D.gz)({deviceId:t.deviceId||"",channel:t.channel||""});case 3:a.next=8;break;case 5:return a.prev=5,a.t0=a.catch(0),a.abrupt("return");case 8:k(!1),i();case 10:case"end":return a.stop()}},r,null,[[0,5]])}));return function(t){return u.apply(this,arguments)}}();return(0,n.jsx)(q._z,{children:(0,n.jsxs)(pe.Z,{defaultActiveKey:"1",onChange:function(r){r==="1"?i():r==="2"&&se()},centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,n.jsx)(ee.Z,{tab:"\u8BBE\u5907\u767D\u540D\u5355",children:(0,n.jsxs)("div",{children:[(0,n.jsx)(_.ZP,{onClick:Ye,children:"\u6DFB\u52A0\u767D\u540D\u5355"}),(0,n.jsx)(ie.Z,{columns:Pe,dataSource:R}),(0,n.jsx)(de.Z,{title:"\u6DFB\u52A0\u767D\u540D\u5355",visible:te,onOk:We,onCancel:$e,children:(0,n.jsxs)(v.Z,{form:h,onFinish:He,children:[(0,n.jsx)(v.Z.Item,{name:"deviceId",label:"\u8BBE\u5907id",children:(0,n.jsx)(ce.Z,{})}),(0,n.jsx)(v.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,n.jsx)(oe.Z,{options:(0,y.FG)()})})]})})]})},"1"),(0,n.jsx)(ee.Z,{tab:"\u5237\u6570\u636E",children:(0,n.jsxs)("div",{children:[(0,n.jsx)(_.ZP,{onClick:Re,children:"\u6DFB\u52A0\u4EFB\u52A1"}),(0,n.jsx)(ie.Z,{columns:Te,dataSource:$}),(0,n.jsx)(de.Z,{title:"\u6DFB\u52A0\u4EFB\u52A1",visible:E,onOk:ke,onCancel:Ke,children:(0,n.jsxs)(v.Z,{labelCol:{span:6},wrapperCol:{span:18},form:X,onFinish:Ue,children:[(0,n.jsx)(v.Z.Item,{label:"\u5E94\u7528",name:"appId",children:(0,n.jsx)(oe.Z,{mode:"multiple",options:C.map(function(u){return{label:u.name,value:u.id}})})}),(0,n.jsx)(v.Z.Item,{name:"incomeYuan",label:"\u91D1\u989D\uFF08\u5143\uFF09",children:(0,n.jsx)(ce.Z,{})}),(0,n.jsx)(v.Z.List,{name:"scheduleTime",children:function(r,t){var c=t.add,a=t.remove;return(0,n.jsxs)(n.Fragment,{children:[r.map(function(P){var ve=P.key,p=P.name;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(Se.Z,{align:"stretch",gutter:16,children:[(0,n.jsx)(me.Z,{span:18,children:(0,n.jsx)(v.Z.Item,{labelCol:{xs:{span:24},sm:{span:8}},name:[p,"time"],label:"\u5F00\u59CB\u65F6\u95F4",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}],children:(0,n.jsx)(ge.default,{format:"YYYY-MM-DD HH:mm",showTime:{format:"HH:mm"}})})}),(0,n.jsx)(me.Z,{children:(0,n.jsx)(J.Z,{onClick:function(){return a(p)}})})]},ve)})}),(0,n.jsx)(v.Z.Item,{children:(0,n.jsx)(_.ZP,{type:"dashed",onClick:function(){return c()},block:!0,children:"\u6DFB\u52A0\u5F00\u59CB\u65F6\u95F4"})})]})}})]})})]})},"2"),(0,n.jsx)(ee.Z,{tab:"\u4E0A\u4F20\u8D44\u6E90",children:(0,n.jsx)(Ie,{})},"3")]})})},be=Ze},52043:function(le,x,e){e.d(x,{FG:function(){return M},RQ:function(){return T},XY:function(){return Z},m0:function(){return O}});var M=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"}]},Z=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 F=new Date(s),o=F.getFullYear().toString().padStart(4,"0"),b=(F.getMonth()+1).toString().padStart(2,"0"),f=F.getDate().toString().padStart(2,"0");return o+b+f},T=function(s,F){var o=s.toString();return o.padStart(F,"0")}},32400:function(le,x,e){e.d(x,{p:function(){return F}});var M=e(15009),Z=e.n(M),O=e(99289),T=e.n(O),A=e(8322),s=e.n(A);function F(b){return o.apply(this,arguments)}function o(){return o=T()(Z()().mark(function b(f){return Z()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(J,q){var v=new(s()).ArrayBuffer,L=new FileReader;L.onload=function(U){var g;v.append((g=U.target)===null||g===void 0?void 0:g.result),J(v.end())},L.onerror=function(U){q(U)},L.readAsArrayBuffer(f)}));case 1:case"end":return y.stop()}},b)})),o.apply(this,arguments)}}}]); diff --git a/dist/p__UserManagement.2c68b70b.async.js b/dist/p__UserManagement.2c68b70b.async.js deleted file mode 100644 index be2a2ba..0000000 --- a/dist/p__UserManagement.2c68b70b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{18174:function(re,O,r){r.r(O),r.d(O,{default:function(){return X}});var l=r(15009),m=r.n(l),b=r(97857),d=r.n(b),Z=r(99289),j=r.n(Z),Q=r(90930),J=r(67539),N=r(35312),V=r(7134),W=r(66309),L=r(67294);function K(z,R){return T.apply(this,arguments)}function T(){return T=j()(m()().mark(function z(R,P){return m()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,N.request)("/api/admin/user/list",d()({method:"POST",headers:{"Content-Type":"application/json"},data:R},P||{})));case 1:case"end":return C.stop()}},z)})),T.apply(this,arguments)}var U=r(58125),g=r(85893),B=function(){var R=(0,N.useParams)(),P=R.code,F=(0,L.useRef)();(0,L.useEffect)(function(){var i;(i=F.current)===null||i===void 0||i.reload()},[P]);var C=[{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u6635\u79F0",hideInSearch:!0,dataIndex:"nickname",valueType:"textarea",renderText:function(s,p){return s||p.mobile}},{title:"\u5934\u50CF",hideInSearch:!0,dataIndex:"avatar",valueType:"textarea",renderText:function(s){return(0,g.jsx)(V.C,{src:s})}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name"},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount"},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",renderText:function(s){return s?(0,g.jsx)(W.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,g.jsx)(W.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",dataIndex:"income",renderText:function(s){return(0,U.P)(s)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",dataIndex:"money",renderText:function(s){return(0,U.D)(s)}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}];return(0,g.jsx)(Q._z,{children:(0,g.jsx)(J.Z,{search:!1,actionRef:F,request:function(){var i=j()(m()().mark(function s(p){var H,A,G;return m()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,K(d()(d()({},p),{},{appCode:P}));case 2:return G=h.sent,h.abrupt("return",{data:(H=G.data)===null||H===void 0?void 0:H.data,total:(A=G.data)===null||A===void 0?void 0:A.total,success:!0});case 4:case"end":return h.stop()}},s)}));return function(s){return i.apply(this,arguments)}}(),columns:C})})},X=B},58125:function(re,O,r){r.d(O,{D:function(){return m},P:function(){return l}});var l=function(d){return d?parseFloat((d/1e5).toFixed(2)):0},m=function(d){return d?parseFloat((d/100).toFixed(2)):0}},66309:function(re,O,r){r.d(O,{Z:function(){return h}});var l=r(67294),m=r(93967),b=r.n(m),d=r(98423),Z=r(98787),j=r(69760),Q=r(96159),J=r(45353),N=r(53124),V=r(54548),W=r(10274),L=r(14747),K=r(45503),T=r(91945);const U=e=>{const{paddingXXS:a,lineWidth:o,tagPaddingHorizontal:t,componentCls:n,calc:f}=e,c=f(t).sub(o).equal(),S=f(a).sub(o).equal();return{[n]:Object.assign(Object.assign({},(0,L.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,V.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:S,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-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(${n}-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:c}}),[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},g=e=>{const{lineWidth:a,fontSizeIcon:o,calc:t}=e,n=e.fontSizeSM;return(0,K.TS)(e,{tagFontSize:n,tagLineHeight:(0,V.bf)(t(e.lineHeightSM).mul(n).equal()),tagIconSize:t(o).sub(t(a).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},B=e=>({defaultBg:new W.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var X=(0,T.I$)("Tag",e=>{const a=g(e);return U(a)},B),z=function(e,a){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n{const{prefixCls:o,style:t,className:n,checked:f,onChange:c,onClick:S}=e,y=z(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:M,tag:x}=l.useContext(N.E_),D=Y=>{c==null||c(!f),S==null||S(Y)},$=M("tag",o),[k,q,v]=X($),_=b()($,`${$}-checkable`,{[`${$}-checkable-checked`]:f},x==null?void 0:x.className,n,q,v);return k(l.createElement("span",Object.assign({},y,{ref:a,style:Object.assign(Object.assign({},t),x==null?void 0:x.style),className:_,onClick:D})))}),F=r(98719);const C=e=>(0,F.Z)(e,(a,o)=>{let{textColor:t,lightBorderColor:n,lightColor:f,darkColor:c}=o;return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:t,background:f,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:c,borderColor:c},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var i=(0,T.bk)(["Tag","preset"],e=>{const a=g(e);return C(a)},B);function s(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const p=(e,a,o)=>{const t=s(o);return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:e[`color${o}`],background:e[`color${t}Bg`],borderColor:e[`color${t}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var H=(0,T.bk)(["Tag","status"],e=>{const a=g(e);return[p(a,"success","Success"),p(a,"processing","Info"),p(a,"error","Error"),p(a,"warning","Warning")]},B),A=function(e,a){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n{const{prefixCls:o,className:t,rootClassName:n,style:f,children:c,icon:S,color:y,onClose:M,bordered:x=!0,visible:D}=e,$=A(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:k,direction:q,tag:v}=l.useContext(N.E_),[_,Y]=l.useState(!0),ie=(0,d.Z)($,["closeIcon","closable"]);l.useEffect(()=>{D!==void 0&&Y(D)},[D]);const ne=(0,Z.o2)(y),ae=(0,Z.yT)(y),ee=ne||ae,de=Object.assign(Object.assign({backgroundColor:y&&!ee?y:void 0},v==null?void 0:v.style),f),u=k("tag",o),[ue,fe,ge]=X(u),ve=b()(u,v==null?void 0:v.className,{[`${u}-${y}`]:ee,[`${u}-has-color`]:y&&!ee,[`${u}-hidden`]:!_,[`${u}-rtl`]:q==="rtl",[`${u}-borderless`]:!x},t,n,fe,ge),oe=E=>{E.stopPropagation(),M==null||M(E),!E.defaultPrevented&&Y(!1)},[,me]=(0,j.Z)((0,j.w)(e),(0,j.w)(v),{closable:!1,closeIconRender:E=>{const he=l.createElement("span",{className:`${u}-close-icon`,onClick:oe},E);return(0,Q.wm)(E,he,I=>({onClick:ce=>{var te;(te=I==null?void 0:I.onClick)===null||te===void 0||te.call(I,ce),oe(ce)},className:b()(I==null?void 0:I.className,`${u}-close-icon`)}))}}),Ce=typeof $.onClick=="function"||c&&c.type==="a",le=S||null,pe=le?l.createElement(l.Fragment,null,le,c&&l.createElement("span",null,c)):c,se=l.createElement("span",Object.assign({},ie,{ref:a,className:ve,style:de}),pe,me,ne&&l.createElement(i,{key:"preset",prefixCls:u}),ae&&l.createElement(H,{key:"status",prefixCls:u}));return ue(Ce?l.createElement(J.Z,{component:"Tag"},se):se)});w.CheckableTag=P;var h=w}}]); diff --git a/dist/p__UserManagement.8cf2aa91.async.js b/dist/p__UserManagement.8cf2aa91.async.js new file mode 100644 index 0000000..8613e7c --- /dev/null +++ b/dist/p__UserManagement.8cf2aa91.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{18174:function(re,O,r){r.r(O),r.d(O,{default:function(){return X}});var l=r(15009),m=r.n(l),b=r(97857),d=r.n(b),Z=r(99289),j=r.n(Z),Q=r(90930),J=r(67539),N=r(35312),V=r(7134),W=r(66309),L=r(67294);function K(z,R){return T.apply(this,arguments)}function T(){return T=j()(m()().mark(function z(R,P){return m()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,N.request)("/api/admin/user/list",d()({method:"POST",headers:{"Content-Type":"application/json"},data:R},P||{})));case 1:case"end":return C.stop()}},z)})),T.apply(this,arguments)}var U=r(58125),g=r(85893),B=function(){var R=(0,N.useParams)(),P=R.code,H=(0,L.useRef)();(0,L.useEffect)(function(){var i;(i=H.current)===null||i===void 0||i.reload()},[P]);var C=[{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u6635\u79F0",hideInSearch:!0,dataIndex:"nickname",valueType:"textarea",renderText:function(s,p){return s||p.mobile}},{title:"\u5934\u50CF",hideInSearch:!0,dataIndex:"avatar",valueType:"textarea",renderText:function(s){return(0,g.jsx)(V.C,{src:s})}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name"},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount"},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",renderText:function(s){return s?(0,g.jsx)(W.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,g.jsx)(W.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",dataIndex:"income",renderText:function(s){return(0,U.P)(s)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",dataIndex:"realMoney",renderText:function(s){return(0,U.D)(s)}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}];return(0,g.jsx)(Q._z,{children:(0,g.jsx)(J.Z,{search:!1,actionRef:H,request:function(){var i=j()(m()().mark(function s(p){var M,A,G;return m()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,K(d()(d()({},p),{},{appCode:P}));case 2:return G=h.sent,h.abrupt("return",{data:(M=G.data)===null||M===void 0?void 0:M.data,total:(A=G.data)===null||A===void 0?void 0:A.total,success:!0});case 4:case"end":return h.stop()}},s)}));return function(s){return i.apply(this,arguments)}}(),columns:C})})},X=B},58125:function(re,O,r){r.d(O,{D:function(){return m},P:function(){return l}});var l=function(d){return d?(d/1e5).toFixed(2):"0.00"},m=function(d){return d?(d/100).toFixed(2):"0.00"}},66309:function(re,O,r){r.d(O,{Z:function(){return h}});var l=r(67294),m=r(93967),b=r.n(m),d=r(98423),Z=r(98787),j=r(69760),Q=r(96159),J=r(45353),N=r(53124),V=r(54548),W=r(10274),L=r(14747),K=r(45503),T=r(91945);const U=e=>{const{paddingXXS:a,lineWidth:o,tagPaddingHorizontal:t,componentCls:n,calc:f}=e,c=f(t).sub(o).equal(),S=f(a).sub(o).equal();return{[n]:Object.assign(Object.assign({},(0,L.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,V.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:S,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-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(${n}-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:c}}),[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},g=e=>{const{lineWidth:a,fontSizeIcon:o,calc:t}=e,n=e.fontSizeSM;return(0,K.TS)(e,{tagFontSize:n,tagLineHeight:(0,V.bf)(t(e.lineHeightSM).mul(n).equal()),tagIconSize:t(o).sub(t(a).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},B=e=>({defaultBg:new W.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var X=(0,T.I$)("Tag",e=>{const a=g(e);return U(a)},B),z=function(e,a){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n{const{prefixCls:o,style:t,className:n,checked:f,onChange:c,onClick:S}=e,y=z(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:D,tag:x}=l.useContext(N.E_),F=Y=>{c==null||c(!f),S==null||S(Y)},$=D("tag",o),[k,q,v]=X($),_=b()($,`${$}-checkable`,{[`${$}-checkable-checked`]:f},x==null?void 0:x.className,n,q,v);return k(l.createElement("span",Object.assign({},y,{ref:a,style:Object.assign(Object.assign({},t),x==null?void 0:x.style),className:_,onClick:F})))}),H=r(98719);const C=e=>(0,H.Z)(e,(a,o)=>{let{textColor:t,lightBorderColor:n,lightColor:f,darkColor:c}=o;return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:t,background:f,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:c,borderColor:c},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var i=(0,T.bk)(["Tag","preset"],e=>{const a=g(e);return C(a)},B);function s(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const p=(e,a,o)=>{const t=s(o);return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:e[`color${o}`],background:e[`color${t}Bg`],borderColor:e[`color${t}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var M=(0,T.bk)(["Tag","status"],e=>{const a=g(e);return[p(a,"success","Success"),p(a,"processing","Info"),p(a,"error","Error"),p(a,"warning","Warning")]},B),A=function(e,a){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n{const{prefixCls:o,className:t,rootClassName:n,style:f,children:c,icon:S,color:y,onClose:D,bordered:x=!0,visible:F}=e,$=A(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:k,direction:q,tag:v}=l.useContext(N.E_),[_,Y]=l.useState(!0),ie=(0,d.Z)($,["closeIcon","closable"]);l.useEffect(()=>{F!==void 0&&Y(F)},[F]);const ne=(0,Z.o2)(y),ae=(0,Z.yT)(y),ee=ne||ae,de=Object.assign(Object.assign({backgroundColor:y&&!ee?y:void 0},v==null?void 0:v.style),f),u=k("tag",o),[ue,fe,ge]=X(u),ve=b()(u,v==null?void 0:v.className,{[`${u}-${y}`]:ee,[`${u}-has-color`]:y&&!ee,[`${u}-hidden`]:!_,[`${u}-rtl`]:q==="rtl",[`${u}-borderless`]:!x},t,n,fe,ge),oe=E=>{E.stopPropagation(),D==null||D(E),!E.defaultPrevented&&Y(!1)},[,me]=(0,j.Z)((0,j.w)(e),(0,j.w)(v),{closable:!1,closeIconRender:E=>{const he=l.createElement("span",{className:`${u}-close-icon`,onClick:oe},E);return(0,Q.wm)(E,he,I=>({onClick:ce=>{var te;(te=I==null?void 0:I.onClick)===null||te===void 0||te.call(I,ce),oe(ce)},className:b()(I==null?void 0:I.className,`${u}-close-icon`)}))}}),Ce=typeof $.onClick=="function"||c&&c.type==="a",le=S||null,pe=le?l.createElement(l.Fragment,null,le,c&&l.createElement("span",null,c)):c,se=l.createElement("span",Object.assign({},ie,{ref:a,className:ve,style:de}),pe,me,ne&&l.createElement(i,{key:"preset",prefixCls:u}),ae&&l.createElement(M,{key:"status",prefixCls:u}));return ue(Ce?l.createElement(J.Z,{component:"Tag"},se):se)});w.CheckableTag=P;var h=w}}]); diff --git a/dist/umi.eb50940d.js b/dist/umi.872ad573.js similarity index 99% rename from dist/umi.eb50940d.js rename to dist/umi.872ad573.js index cf4ba85..0f9e31f 100644 --- a/dist/umi.eb50940d.js +++ b/dist/umi.872ad573.js @@ -419,7 +419,7 @@ 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,x,S){var w="stackTraceLimit",O=S?2:1,j=b.split("."),E=j[j.length-1],I=t.apply(null,j);if(I){var B=I.prototype;if(!d&&r(B,"cause")&&delete B.cause,!x)return I;var ae=t("Error"),Z=C(function(G,ee){var te=f(S?ee:G,void 0),F=S?new I(G):new I;return te!==void 0&&o(F,"message",te),y(F,Z,F.stack,2),this&&a(B,this)&&l(F,this,Z),arguments.length>O&&p(F,arguments[O]),F});if(Z.prototype=B,E!=="Error"?s?s(Z,ae):c(Z,ae,{name:!0}):m&&w in I&&(u(Z,I,w),u(Z,I,"prepareStackTrace")),c(Z,I),!d)try{B.name!==E&&o(B,"name",E),B.constructor=Z}catch(G){}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,x=[].push,S=function(j,E){var I=r(w,this),B;a?B=a(new C,I?o(this):w):(B=I?this:c(w),u(B,b,"Error")),E!==void 0&&u(B,"message",m(E)),p(B,S,B.stack,1),arguments.length>2&&f(B,arguments[2]);var ae=[];return y(j,x,{that:ae}),u(B,"errors",ae),B};a?a(S,C):s(S,C,{name:!0});var w=S.prototype=c(C.prototype,{constructor:l(1,S),message:l(1,""),name:l(1,"AggregateError")});t({global:!0,constructor:!0,arity:2},{AggregateError:S})},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),x=s(m,C),S=arguments.length,w=0,O,j,E,I;for(S===0?O=j=0:S===1?(O=0,j=C-x):(O=S-2,j=p(f(u(d),0),C-x)),E=o(C+O-j),I=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,x=o("".indexOf),S=o("".replace),w=o("".slice),O=Math.max,j=function(E,I,B){return B>E.length?-1:I===""?B:x(E,I,B)};t({target:"String",proto:!0},{replaceAll:function(I,B){var ae=a(this),Z,G,ee,te,F,ne,X,q,L,N=0,$=0,A="";if(!c(I)){if(Z=u(I),Z&&(G=l(a(p(I))),!~x(G,"g")))throw new C("`.replaceAll` does not allow non-global regexes");if(ee=f(I,b),ee)return r(ee,I,ae,B);if(d&&Z)return S(l(ae),I,B)}for(te=l(ae),F=l(I),ne=s(B),ne||(B=l(B)),X=F.length,q=O(1,X),N=j(te,F,0);N!==-1;)L=ne?l(B(F,N,te)):y(F,te,N,[],void 0,B),A+=w(te,$,N)+L,$=N+X,N=j(te,F,N+q);return $=56320||w+1>=x||(f(C,w+1)&64512)!==56320?S[w]=m:(S[w]=l(C,w),S[++w]=l(C,w))}return p(S,"")}})},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 x=new Uint8ClampedArray(2);return r(y,x,{length:1,0:3},1),x[1]!==3}),C=b&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u(function(){var x=new f(2);return x.set(1),x.set("2",1),x[0]!==0||x[1]!==2});d("set",function(S){m(this);var w=s(arguments.length>1?arguments[1]:void 0,1),O=c(S);if(b)return r(y,this,O,w);var j=this.length,E=a(O),I=0;if(E+w>j)throw new l("Wrong length");for(;I1?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"),x="DisposableStack",S=p.set,w=p.getterFor(x),O="sync-dispose",j="disposed",E="pending",I=function(Z){var G=w(Z);if(G.state===j)throw new d(x+" already disposed");return G},B=function(){S(s(this,ae),{type:x,state:E,stack:[]}),r||(this.disposed=!1)},ae=B.prototype;u(ae,{dispose:function(){var G=w(this);if(G.state!==j){G.state=j,r||(this.disposed=!0);for(var ee=G.stack,te=ee.length,F=!1,ne;te;){var X=ee[--te];ee[te]=null;try{X()}catch(q){F?ne=new m(q,ne):(F=!0,ne=q)}}if(G.stack=null,F)throw ne}},use:function(G){return y(I(this),G,O),G},adopt:function(G,ee){var te=I(this);return a(ee),y(te,void 0,O,function(){ee(G)}),G},defer:function(G){var ee=I(this);a(G),y(ee,void 0,O,G)},move:function(){var G=I(this),ee=new B;return w(ee).stack=G.stack,G.stack=[],G.state=j,r||(this.disposed=!0),ee}}),r&&l(ae,"disposed",{configurable:!0,get:function(){return w(this).state===j}}),c(ae,b,ae.dispose,{name:"dispose"}),c(ae,C,x,{nonWritable:!0}),t({global:!0,constructor:!0},{DisposableStack:B})},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",x="Iterator",S=y("toStringTag"),w=TypeError,O=r[x],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")},I=function(B,ae){d?u(m,B,{configurable:!0,get:function(){return ae},set:function(Z){if(a(this),this===m)throw new w("You can't redefine this property");p(this,B)?this[B]=Z:l(this,B,Z)}}):m[B]=ae};p(m,S)||I(S,x),(j||!p(m,C)||m[C]===Object)&&I(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),x=e(50146),S=o.JSON,w=o.Number,O=o.SyntaxError,j=S&&S.parse,E=a("Object","keys"),I=Object.getOwnPropertyDescriptor,B=s("".charAt),ae=s("".slice),Z=s(/./.exec),G=s([].push),ee=/^\d$/,te=/^[1-9]$/,F=/^(?:-|\d)$/,ne=/^[\t\n\r ]$/,X=0,q=1,L=function(J,Y){J=y(J);var de=new M(J,0,""),be=de.parse(),Pe=be.value,Ee=de.skip(ne,be.end);if(Ee1?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),x=C.seed=(C.seed*1103515245+12345)%2147483647;return s((x&1073741823)/1073741823,!1)});t({target:"Math",stat:!0,forced:!0},{seededPRNG:function(C){var x=r(C).seed;if(!o(x))throw new m(f);return new d(x)}})},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),x=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 I=x(w,"."),B=f(I[0],E);if(I.length>1&&(B+=f(I[1],E)/p(E,I[1].length)),E===10&&b(B,E)!==w)throw new u(a);return j*B}})},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),x=e(44201),S=e(618),w=x("observable"),O="Observable",j="Subscription",E="SubscriptionObserver",I=S.getterFor,B=S.set,ae=I(O),Z=I(j),G=I(E),ee=function(q){this.observer=c(q),this.cleanup=void 0,this.subscriptionObserver=void 0};ee.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 te=function(q,L){var N=B(this,new ee(q)),$;o||(this.closed=!1);try{($=y(q,"start"))&&r($,q,this)}catch(se){C(se)}if(!N.isClosed()){var A=N.subscriptionObserver=new F(N);try{var M=L(A),H=M;f(M)||(N.cleanup=l(M.unsubscribe)?function(){H.unsubscribe()}:s(M))}catch(se){A.error(se);return}N.isClosed()&&N.clean()}};te.prototype=d({},{unsubscribe:function(){var L=Z(this);L.isClosed()||(L.close(),L.clean())}}),o&&b(te.prototype,"closed",{configurable:!0,get:function(){return Z(this).isClosed()}});var F=function(q){B(this,{type:E,subscriptionState:q}),o||(this.closed=!1)};F.prototype=d({},{next:function(L){var N=G(this).subscriptionState;if(!N.isClosed()){var $=N.observer;try{var A=y($,"next");A&&r(A,$,L)}catch(M){C(M)}}},error:function(L){var N=G(this).subscriptionState;if(!N.isClosed()){var $=N.observer;N.close();try{var A=y($,"error");A?r(A,$,L):C(L)}catch(M){C(M)}N.clean()}},complete:function(){var L=G(this).subscriptionState;if(!L.isClosed()){var N=L.observer;L.close();try{var $=y(N,"complete");$&&r($,N)}catch(A){C(A)}L.clean()}}}),o&&b(F.prototype,"closed",{configurable:!0,get:function(){return G(this).subscriptionState.isClosed()}});var ne=function(L){u(this,X),B(this,{type:O,subscriber:s(L)})},X=ne.prototype;d(X,{subscribe:function(L){var N=arguments.length;return new te(l(L)?{next:L,error:N>1?arguments[1]:void 0,complete:N>2?arguments[2]:void 0}:p(L)?L:{},ae(this).subscriber)}}),m(X,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(S){return C.subscribe(S)})}var x=c(m);return new d(function(S){l(x,function(w,O){if(S.next(w),S.closed)return O()},{IS_ITERATOR:!0,INTERRUPTED:!0}),S.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),x=C.string,S=C.index,w;return S>=x.length?o(void 0,!0):(w=f(x,S),C.index+=w.length,o({codePoint:l(w,0),position:S},!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),x=new m.WeakMap,S=m.get,w=m.has,O=m.set,j=Array,E=TypeError,I=Object.freeze||Object,B=Object.isFrozen,ae=Math.min,Z=a("".charAt),G=a("".slice),ee=a("".split),te=a(/./.exec),F=/([\n\u2028\u2029]|\r\n?)/g,ne=RegExp("^["+C+"]*"),X=RegExp("[^"+C+"]"),q="Invalid tag",L="Invalid opening line",N="Invalid closing line",$=function(Y){var de=Y.raw;if(t&&!B(de))throw new E("Raw template should be frozen");if(w(x,de))return S(x,de);var be=A(de),Pe=H(be);return p(Pe,"raw",{value:I(be)}),I(Pe),O(x,de,Pe),Pe},A=function(Y){var de=u(Y),be=f(de),Pe=j(be),Ee=j(be),Ae=0,Ye,nt,st,ft;if(!be)throw new E(q);for(;Ae0)throw new E(L);Ye[1]=""}if(me){if(Ye.length===1||te(X,Ye[Ye.length-1]))throw new E(N);Ye[Ye.length-2]="",Ye[Ye.length-1]=""}for(var W=2;W1?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,x){var S=l(this),w=f(S),O=r(S),j=a(C,O),E=arguments.length,I=0,B,ae,Z,G,ee,te,F;if(E===0)B=ae=0;else if(E===1)B=0,ae=O-j;else if(ae=m(y(c(x),0),O-j),B=E-2,B){G=new w(B),Z=o(G);for(var ne=2;ne1?a(arguments[1]):void 0,B=f(I)==="base64"?p:y,ae=I?!!I.strict:!1,Z=ae?E:C(E,w,"");if(Z.length%4===0)x(Z,-2)==="=="?Z=x(Z,0,-2):x(Z,-1)==="="&&(Z=x(Z,0,-1));else if(ae)throw new d("Input is not correctly padded");var G=Z.length%4;switch(G){case 1:throw new d("Bad input length");case 2:Z+="AA";break;case 3:Z+="A"}for(var ee=[],te=0,F=Z.length,ne=function(L){var N=b(Z,te+L);if(!c(B,N))throw new d('Bad char in input: "'+N+'"');return B[N]<<18-6*L};te>16&255,X>>8&255,X&255)}var q=ee.length;if(G===2){if(ae&&ee[q-2]!==0)throw new d(O);q-=2}else if(G===3){if(ae&&ee[q-1]!==0)throw new d(O);q--}return u(m,ee,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)};S+21&&!p(arguments[1])?b(arguments[1]):void 0,oe=R?R.transfer:void 0,Ve,He;oe!==void 0&&(Ve=new $,He=Ze(oe,Ve));var De=ce(xe,Ve);return He&<(He),De}})},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(B,ae){p(C,{key:ae,value:B})}),a(d,1);for(var x=o(m),S=o(b),w=0,O=0,j=!1,E=C.length,I;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($,A,M){$[A]=M.value},l=typeof Symbol=="function"?Symbol:{},f=l.iterator||"@@iterator",p=l.asyncIterator||"@@asyncIterator",y=l.toStringTag||"@@toStringTag";function m($,A,M){return Object.defineProperty($,A,{value:M,enumerable:!0,configurable:!0,writable:!0}),$[A]}try{m({},"")}catch($){m=function(M,H,se){return M[H]=se}}function d($,A,M,H){var se=A&&A.prototype instanceof j?A:j,J=Object.create(se.prototype),Y=new L(H||[]);return u(J,"_invoke",{value:F($,M,Y)}),J}function b($,A,M){try{return{type:"normal",arg:$.call(A,M)}}catch(H){return{type:"throw",arg:H}}}a.wrap=d;var C="suspendedStart",x="suspendedYield",S="executing",w="completed",O={};function j(){}function E(){}function I(){}var B={};m(B,f,function(){return this});var ae=Object.getPrototypeOf,Z=ae&&ae(ae(N([])));Z&&Z!==s&&c.call(Z,f)&&(B=Z);var G=I.prototype=j.prototype=Object.create(B);function ee($){["next","throw","return"].forEach(function(A){m($,A,function(M){return this._invoke(A,M)})})}function te($,A){function M(se,J,Y,de){var be=b($[se],$,J);if(be.type!=="throw"){var Pe=be.arg,Ee=Pe.value;return Ee&&(0,t.Z)(Ee)=="object"&&c.call(Ee,"__await")?A.resolve(Ee.__await).then(function(Ae){M("next",Ae,Y,de)},function(Ae){M("throw",Ae,Y,de)}):A.resolve(Ee).then(function(Ae){Pe.value=Ae,Y(Pe)},function(Ae){return M("throw",Ae,Y,de)})}de(be.arg)}var H;u(this,"_invoke",{value:function(J,Y){function de(){return new A(function(be,Pe){M(J,Y,be,Pe)})}return H=H?H.then(de,de):de()}})}function F($,A,M){var H=C;return function(se,J){if(H===S)throw Error("Generator is already running");if(H===w){if(se==="throw")throw J;return{value:o,done:!0}}for(M.method=se,M.arg=J;;){var Y=M.delegate;if(Y){var de=ne(Y,M);if(de){if(de===O)continue;return de}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(H===C)throw H=w,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);H=S;var be=b($,A,M);if(be.type==="normal"){if(H=M.done?w:x,be.arg===O)continue;return{value:be.arg,done:M.done}}be.type==="throw"&&(H=w,M.method="throw",M.arg=be.arg)}}}function ne($,A){var M=A.method,H=$.iterator[M];if(H===o)return A.delegate=null,M==="throw"&&$.iterator.return&&(A.method="return",A.arg=o,ne($,A),A.method==="throw")||M!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+M+"' method")),O;var se=b(H,$.iterator,A.arg);if(se.type==="throw")return A.method="throw",A.arg=se.arg,A.delegate=null,O;var J=se.arg;return J?J.done?(A[$.resultName]=J.value,A.next=$.nextLoc,A.method!=="return"&&(A.method="next",A.arg=o),A.delegate=null,O):J:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,O)}function X($){var A={tryLoc:$[0]};1 in $&&(A.catchLoc=$[1]),2 in $&&(A.finallyLoc=$[2],A.afterLoc=$[3]),this.tryEntries.push(A)}function q($){var A=$.completion||{};A.type="normal",delete A.arg,$.completion=A}function L($){this.tryEntries=[{tryLoc:"root"}],$.forEach(X,this),this.reset(!0)}function N($){if($||$===""){var A=$[f];if(A)return A.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var M=-1,H=function se(){for(;++M<$.length;)if(c.call($,M))return se.value=$[M],se.done=!1,se;return se.value=o,se.done=!0,se};return H.next=H}}throw new TypeError((0,t.Z)($)+" is not iterable")}return E.prototype=I,u(G,"constructor",{value:I,configurable:!0}),u(I,"constructor",{value:E,configurable:!0}),E.displayName=m(I,y,"GeneratorFunction"),a.isGeneratorFunction=function($){var A=typeof $=="function"&&$.constructor;return!!A&&(A===E||(A.displayName||A.name)==="GeneratorFunction")},a.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,I):($.__proto__=I,m($,y,"GeneratorFunction")),$.prototype=Object.create(G),$},a.awrap=function($){return{__await:$}},ee(te.prototype),m(te.prototype,p,function(){return this}),a.AsyncIterator=te,a.async=function($,A,M,H,se){se===void 0&&(se=Promise);var J=new te(d($,A,M,H),se);return a.isGeneratorFunction(A)?J:J.next().then(function(Y){return Y.done?Y.value:J.next()})},ee(G),m(G,y,"Generator"),m(G,f,function(){return this}),m(G,"toString",function(){return"[object Generator]"}),a.keys=function($){var A=Object($),M=[];for(var H in A)M.push(H);return M.reverse(),function se(){for(;M.length;){var J=M.pop();if(J in A)return se.value=J,se.done=!1,se}return se.done=!0,se}},a.values=N,L.prototype={constructor:L,reset:function(A){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(q),!A)for(var M in this)M.charAt(0)==="t"&&c.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=o)},stop:function(){this.done=!0;var A=this.tryEntries[0].completion;if(A.type==="throw")throw A.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var M=this;function H(Pe,Ee){return Y.type="throw",Y.arg=A,M.next=Pe,Ee&&(M.method="next",M.arg=o),!!Ee}for(var se=this.tryEntries.length-1;se>=0;--se){var J=this.tryEntries[se],Y=J.completion;if(J.tryLoc==="root")return H("end");if(J.tryLoc<=this.prev){var de=c.call(J,"catchLoc"),be=c.call(J,"finallyLoc");if(de&&be){if(this.prev=0;--H){var se=this.tryEntries[H];if(se.tryLoc<=this.prev&&c.call(se,"finallyLoc")&&this.prev=0;--M){var H=this.tryEntries[M];if(H.finallyLoc===A)return this.complete(H.completion,H.afterLoc),q(H),O}},catch:function(A){for(var M=this.tryEntries.length-1;M>=0;--M){var H=this.tryEntries[M];if(H.tryLoc===A){var se=H.completion;if(se.type==="throw"){var J=se.arg;q(H)}return J}}throw Error("illegal catch attempt")},delegateYield:function(A,M,H){return this.delegate={iterator:N(A),resultName:M,nextLoc:H},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(x){C=!0,p=x}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 Ve},ZP:function(){return He},kY:function(){return _}});var t=e(67294),r=e(61688);const o=()=>{},a=o(),s=Object,c=De=>De===a,u=De=>typeof De=="function",l=(De,Ie)=>Gl(Gl({},De),Ie),f=De=>u(De.then),p=new WeakMap;let y=0;const m=De=>{const Ie=typeof De,Te=De&&De.constructor,Re=Te==Date;let We,rt;if(s(De)===De&&!Re&&Te!=RegExp){if(We=p.get(De),We)return We;if(We=++y+"~",p.set(De,We),Te==Array){for(We="@",rt=0;rtS&&typeof window.requestAnimationFrame!=x,j=(De,Ie)=>{const Te=d.get(De);return[()=>!c(Ie)&&De.get(Ie)||b,Re=>{if(!c(Ie)){const We=De.get(Ie);Ie in C||(C[Ie]=We),Te[5](Ie,l(We,Re),We||b)}},Te[6],()=>!c(Ie)&&Ie in C?C[Ie]:!c(Ie)&&De.get(Ie)||b]};let E=!0;const I=()=>E,[B,ae]=S&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],Z=()=>{const De=w&&document.visibilityState;return c(De)||De!=="hidden"},G=De=>(w&&document.addEventListener("visibilitychange",De),B("focus",De),()=>{w&&document.removeEventListener("visibilitychange",De),ae("focus",De)}),ee=De=>{const Ie=()=>{E=!0,De()},Te=()=>{E=!1};return B("online",Ie),B("offline",Te),()=>{ae("online",Ie),ae("offline",Te)}},te={isOnline:I,isVisible:Z},F={initFocus:G,initReconnect:ee},ne=!t.useId,X=!S||"Deno"in window,q=De=>O()?window.requestAnimationFrame(De):setTimeout(De,1),L=X?t.useEffect:t.useLayoutEffect,N=typeof navigator!="undefined"&&navigator.connection,$=!X&&N&&(["slow-2g","2g"].includes(N.effectiveType)||N.saveData),A=De=>{if(u(De))try{De=De()}catch(Te){De=""}const Ie=De;return De=typeof De=="string"?De:(Array.isArray(De)?De.length:De)?m(De):"",[De,Ie]};let M=0;const H=()=>++M,se=0,J=1,Y=2;var be={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:se,MUTATE_EVENT:Y,RECONNECT_EVENT:J};function Pe(...De){return Lu(this,null,function*(){const[Ie,Te,Re,We]=De,rt=l({populateCache:!0,throwOnError:!0},typeof We=="boolean"?{revalidate:We}:We||{});let gt=rt.populateCache;const jt=rt.rollbackOnError;let Ct=rt.optimisticData;const rn=Qt=>typeof jt=="function"?jt(Qt):jt!==!1,kt=rt.throwOnError;if(u(Te)){const Qt=Te,Pt=[],Ge=Ie.keys();for(const Ot of Ge)!/^\$(inf|sub)\$/.test(Ot)&&Qt(Ie.get(Ot)._k)&&Pt.push(Ot);return Promise.all(Pt.map(Rt))}return Rt(Te);function Rt(Qt){return Lu(this,null,function*(){const[Pt]=A(Qt);if(!Pt)return;const[Ge,Ot]=j(Ie,Pt),[Vt,bt,un,Jt]=d.get(Ie),mn=()=>{const tr=Vt[Pt];return(u(rt.revalidate)?rt.revalidate(Ge().data,Qt):rt.revalidate!==!1)&&(delete un[Pt],delete Jt[Pt],tr&&tr[0])?tr[0](Y).then(()=>Ge().data):Ge().data};if(De.length<3)return mn();let ln=Re,hn;const vn=H();bt[Pt]=[vn,0];const qt=!c(Ct),Tn=Ge(),Ln=Tn.data,Jn=Tn._c,Or=c(Jn)?Ln:Jn;if(qt&&(Ct=u(Ct)?Ct(Or,Ln):Ct,Ot({data:Ct,_c:Or})),u(ln))try{ln=ln(Or)}catch(tr){hn=tr}if(ln&&f(ln))if(ln=yield ln.catch(tr=>{hn=tr}),vn!==bt[Pt][0]){if(hn)throw hn;return ln}else hn&&qt&&rn(hn)&&(gt=!0,Ot({data:Or,_c:a}));if(gt&&!hn)if(u(gt)){const tr=gt(ln,Or);Ot({data:tr,error:a,_c:a})}else Ot({data:ln,error:a,_c:a});if(bt[Pt][1]=H(),Promise.resolve(mn()).then(()=>{Ot({_c:a})}),hn){if(kt)throw hn;return}return ln})}})}const Ee=(De,Ie)=>{for(const Te in De)De[Te][0]&&De[Te][0](Ie)},Ae=(De,Ie)=>{if(!d.has(De)){const Te=l(F,Ie),Re={},We=Pe.bind(a,De);let rt=o;const gt={},jt=(kt,Rt)=>{const Qt=gt[kt]||[];return gt[kt]=Qt,Qt.push(Rt),()=>Qt.splice(Qt.indexOf(Rt),1)},Ct=(kt,Rt,Qt)=>{De.set(kt,Rt);const Pt=gt[kt];if(Pt)for(const Ge of Pt)Ge(Rt,Qt)},rn=()=>{if(!d.has(De)&&(d.set(De,[Re,{},{},{},We,Ct,jt]),!X)){const kt=Te.initFocus(setTimeout.bind(a,Ee.bind(a,Re,se))),Rt=Te.initReconnect(setTimeout.bind(a,Ee.bind(a,Re,J)));rt=()=>{kt&&kt(),Rt&&Rt(),d.delete(De)}}};return rn(),[De,We,rn,rt]}return[De,d.get(De)[4]]},Ye=(De,Ie,Te,Re,We)=>{const rt=Te.errorRetryCount,gt=We.retryCount,jt=~~((Math.random()+.5)*(1<<(gt<8?gt:8)))*Te.errorRetryInterval;!c(rt)&>>rt||setTimeout(Re,jt,We)},nt=(De,Ie)=>m(De)==m(Ie),[st,ft]=Ae(new Map),pt=l({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:Ye,onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:$?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:$?5e3:3e3,compare:nt,isPaused:()=>!1,cache:st,mutate:ft,fallback:{}},te),me=(De,Ie)=>{const Te=l(De,Ie);if(Ie){const{use:Re,fallback:We}=De,{use:rt,fallback:gt}=Ie;Re&&rt&&(Te.use=Re.concat(rt)),We&>&&(Te.fallback=l(We,gt))}return Te},W=(0,t.createContext)({}),T=De=>{const{value:Ie}=De,Te=(0,t.useContext)(W),Re=u(Ie),We=(0,t.useMemo)(()=>Re?Ie(Te):Ie,[Re,Te,Ie]),rt=(0,t.useMemo)(()=>Re?We:me(Te,We),[Re,Te,We]),gt=We&&We.provider,jt=(0,t.useRef)(a);gt&&!jt.current&&(jt.current=Ae(gt(rt.cache||st),We));const Ct=jt.current;return Ct&&(rt.cache=Ct[0],rt.mutate=Ct[1]),L(()=>{if(Ct)return Ct[2]&&Ct[2](),Ct[3]},[]),(0,t.createElement)(W.Provider,l(De,{value:rt}))},D="$inf$",K=S&&window.__SWR_DEVTOOLS_USE__,k=K?window.__SWR_DEVTOOLS_USE__:[],Q=()=>{K&&(window.__SWR_DEVTOOLS_REACT__=t)},le=De=>u(De[1])?[De[0],De[1],De[2]||{}]:[De[0],null,(De[1]===null?De[2]:De[1])||{}],_=()=>l(pt,(0,t.useContext)(W)),V=(De,Ie)=>{const[Te,Re]=A(De),[,,,We]=d.get(st);if(We[Te])return We[Te];const rt=Ie(Re);return We[Te]=rt,rt},ie=De=>(Ie,Te,Re)=>De(Ie,Te&&((...rt)=>{const[gt]=A(Ie),[,,,jt]=d.get(st);if(gt.startsWith(D))return Te(...rt);const Ct=jt[gt];return c(Ct)?Te(...rt):(delete jt[gt],Ct)}),Re),fe=k.concat(ie),ce=De=>function(...Te){const Re=_(),[We,rt,gt]=le(Te),jt=me(Re,gt);let Ct=De;const{use:rn}=jt,kt=(rn||[]).concat(fe);for(let Rt=kt.length;Rt--;)Ct=kt[Rt](Ct);return Ct(We,rt||jt.fetcher||null,jt)},Ze=(De,Ie,Te)=>{const Re=Ie[De]||(Ie[De]=[]);return Re.push(Te),()=>{const We=Re.indexOf(Te);We>=0&&(Re[We]=Re[Re.length-1],Re.pop())}},lt=(De,Ie)=>(...Te)=>{const[Re,We,rt]=le(Te),gt=(rt.use||[]).concat(Ie);return De(Re,We,Xc(Gl({},rt),{use:gt}))};Q();const Ce=De=>serialize(De)[0],xe=t.use||(De=>{if(De.status==="pending")throw De;if(De.status==="fulfilled")return De.value;throw De.status==="rejected"?De.reason:(De.status="pending",De.then(Ie=>{De.status="fulfilled",De.value=Ie},Ie=>{De.status="rejected",De.reason=Ie}),De)}),R={dedupe:!0},oe=(De,Ie,Te)=>{const{cache:Re,compare:We,suspense:rt,fallbackData:gt,revalidateOnMount:jt,revalidateIfStale:Ct,refreshInterval:rn,refreshWhenHidden:kt,refreshWhenOffline:Rt,keepPreviousData:Qt}=Te,[Pt,Ge,Ot,Vt]=d.get(Re),[bt,un]=A(De),Jt=(0,t.useRef)(!1),mn=(0,t.useRef)(!1),ln=(0,t.useRef)(bt),hn=(0,t.useRef)(Ie),vn=(0,t.useRef)(Te),qt=()=>vn.current,Tn=()=>qt().isVisible()&&qt().isOnline(),[Ln,Jn,Or,tr]=j(Re,bt),pr=(0,t.useRef)({}).current,at=c(gt)?Te.fallback[bt]:gt,ke=(tt,St)=>{for(const Zt in pr){const yt=Zt;if(yt==="data"){if(!We(tt[yt],St[yt])&&(!c(tt[yt])||!We(or,St[yt])))return!1}else if(St[yt]!==tt[yt])return!1}return!0},en=(0,t.useMemo)(()=>{const tt=(()=>!bt||!Ie?!1:c(jt)?qt().isPaused()||rt?!1:c(Ct)?!0:Ct:jt)(),St=$n=>{const ct=l($n);return delete ct._k,tt?Gl({isValidating:!0,isLoading:!0},ct):ct},Zt=Ln(),yt=tr(),zt=St(Zt),_t=Zt===yt?zt:St(yt);let nn=zt;return[()=>{const $n=St(Ln());return ke($n,nn)?(nn.data=$n.data,nn.isLoading=$n.isLoading,nn.isValidating=$n.isValidating,nn.error=$n.error,nn):(nn=$n,$n)},()=>_t]},[Re,bt]),ht=(0,r.useSyncExternalStore)((0,t.useCallback)(tt=>Or(bt,(St,Zt)=>{ke(Zt,St)||tt()}),[Re,bt]),en[0],en[1]),an=!Jt.current,In=Pt[bt]&&Pt[bt].length>0,Un=ht.data,nr=c(Un)?at:Un,ar=ht.error,mr=(0,t.useRef)(nr),or=Qt?c(Un)?mr.current:Un:nr,hr=(()=>In&&!c(ar)?!1:an&&!c(jt)?jt:qt().isPaused()?!1:rt?c(nr)?!1:Ct:c(nr)||Ct)(),ir=!!(bt&&Ie&&an&&hr),dn=c(ht.isValidating)?ir:ht.isValidating,Yn=c(ht.isLoading)?ir:ht.isLoading,xn=(0,t.useCallback)(tt=>Lu(this,null,function*(){const St=hn.current;if(!bt||!St||mn.current||qt().isPaused())return!1;let Zt,yt,zt=!0;const _t=tt||{},nn=!Ot[bt]||!_t.dedupe,$n=()=>ne?!mn.current&&bt===ln.current&&Jt.current:bt===ln.current,ct={isValidating:!1,isLoading:!1},Wn=()=>{Jn(ct)},Bn=()=>{const zn=Ot[bt];zn&&zn[1]===yt&&delete Ot[bt]},pn={isValidating:!0};c(Ln().data)&&(pn.isLoading=!0);try{if(nn&&(Jn(pn),Te.loadingTimeout&&c(Ln().data)&&setTimeout(()=>{zt&&$n()&&qt().onLoadingSlow(bt,Te)},Te.loadingTimeout),Ot[bt]=[St(un),H()]),[Zt,yt]=Ot[bt],Zt=yield Zt,nn&&setTimeout(Bn,Te.dedupingInterval),!Ot[bt]||Ot[bt][1]!==yt)return nn&&$n()&&qt().onDiscarded(bt),!1;ct.error=a;const zn=Ge[bt];if(!c(zn)&&(yt<=zn[0]||yt<=zn[1]||zn[1]===0))return Wn(),nn&&$n()&&qt().onDiscarded(bt),!1;const Mn=Ln().data;ct.data=We(Mn,Zt)?Mn:Zt,nn&&$n()&&qt().onSuccess(Zt,bt,Te)}catch(zn){Bn();const Mn=qt(),{shouldRetryOnError:$r}=Mn;Mn.isPaused()||(ct.error=zn,nn&&$n()&&(Mn.onError(zn,bt,Mn),($r===!0||u($r)&&$r(zn))&&(!qt().revalidateOnFocus||!qt().revalidateOnReconnect||Tn())&&Mn.onErrorRetry(zn,bt,Mn,Le=>{const Me=Pt[bt];Me&&Me[0]&&Me[0](be.ERROR_REVALIDATE_EVENT,Le)},{retryCount:(_t.retryCount||0)+1,dedupe:!0})))}return zt=!1,Wn(),!0}),[bt,Re]),tn=(0,t.useCallback)((...tt)=>Pe(Re,ln.current,...tt),[]);if(L(()=>{hn.current=Ie,vn.current=Te,c(Un)||(mr.current=Un)}),L(()=>{if(!bt)return;const tt=xn.bind(a,R);let St=0;const yt=Ze(bt,Pt,(zt,_t={})=>{if(zt==be.FOCUS_EVENT){const nn=Date.now();qt().revalidateOnFocus&&nn>St&&Tn()&&(St=nn+qt().focusThrottleInterval,tt())}else if(zt==be.RECONNECT_EVENT)qt().revalidateOnReconnect&&Tn()&&tt();else{if(zt==be.MUTATE_EVENT)return xn();if(zt==be.ERROR_REVALIDATE_EVENT)return xn(_t)}});return mn.current=!1,ln.current=bt,Jt.current=!0,Jn({_k:un}),hr&&(c(nr)||X?tt():q(tt)),()=>{mn.current=!0,yt()}},[bt]),L(()=>{let tt;function St(){const yt=u(rn)?rn(Ln().data):rn;yt&&tt!==-1&&(tt=setTimeout(Zt,yt))}function Zt(){!Ln().error&&(kt||qt().isVisible())&&(Rt||qt().isOnline())?xn(R).then(St):St()}return St(),()=>{tt&&(clearTimeout(tt),tt=-1)}},[rn,kt,Rt,bt]),(0,t.useDebugValue)(or),rt&&c(nr)&&bt){if(!ne&&X)throw new Error("Fallback data is required when using suspense in SSR.");hn.current=Ie,vn.current=Te,mn.current=!1;const tt=Vt[bt];if(!c(tt)){const St=tn(tt);xe(St)}if(c(ar)){const St=xn(R);c(or)||(St.status="fulfilled",St.value=!0),xe(St)}else throw ar}return{mutate:tn,get data(){return pr.data=!0,or},get error(){return pr.error=!0,ar},get isValidating(){return pr.isValidating=!0,dn},get isLoading(){return pr.isLoading=!0,Yn}}},Ve=s.defineProperty(T,"defaultValue",{value:pt}),He=ce(oe)}},Jo={};function ye(v){var g=Jo[v];if(g!==void 0)return g.exports;var e=Jo[v]={id:v,loaded:!1,exports:{}};return bi[v].call(e.exports,e,e.exports,ye),e.loaded=!0,e.exports}ye.m=bi,function(){ye.n=function(v){var g=v&&v.__esModule?function(){return v.default}:function(){return v};return ye.d(g,{a:g}),g}}(),function(){var v=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},g;ye.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);ye.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},ye.d(r,o),r}}(),function(){ye.d=function(v,g){for(var e in g)ye.o(g,e)&&!ye.o(v,e)&&Object.defineProperty(v,e,{enumerable:!0,get:g[e]})}}(),function(){ye.f={},ye.e=function(v){return Promise.all(Object.keys(ye.f).reduce(function(g,e){return ye.f[e](v,g),g},[]))}}(),function(){ye.u=function(v){return""+({185:"p__Welcome",190:"p__MoneyManagement",301:"t__plugin-layout__Layout",366:"p__User__Login__index",371:"p__DeviceOwnerApp",455:"p__SuperAdmin",542:"p__AdvRecordListV2",557:"p__Bind",571:"p__404",731:"p__App__AppManagement",816:"p__AdminManagement",857:"p__AdvRecordList",903:"p__UserManagement"}[v]||v)+"."+{51:"a2ea1b3b",63:"86ff1d28",134:"6fc81d91",169:"57647c7d",185:"61596037",190:"27e1a086",247:"3fe8fb10",301:"4594a64b",366:"9d3ab92e",371:"ec53e5c4",390:"41467286",393:"38316f72",397:"fb5f72c1",427:"f16a2970",455:"aaa0f8d9",531:"3d4ec55a",539:"49b7b156",542:"52c0941e",557:"b6ee068f",559:"016bfdbb",571:"0c100574",635:"20e45f05",731:"a12680df",804:"139cd916",816:"123d40ec",841:"614ef4c0",857:"8e5ef22c",903:"2c68b70b",905:"6e225d1b",930:"fca7adbf"}[v]+".async.js"}}(),function(){ye.miniCssF=function(v){return"t__plugin-layout__Layout.6cae69f5.chunk.css"}}(),function(){ye.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(v){if(typeof window=="object")return window}}()}(),function(){ye.o=function(v,g){return Object.prototype.hasOwnProperty.call(v,g)}}(),function(){var v={},g="ant-design-pro:";ye.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 Ve},ZP:function(){return He},kY:function(){return _}});var t=e(67294),r=e(61688);const o=()=>{},a=o(),s=Object,c=De=>De===a,u=De=>typeof De=="function",l=(De,Ie)=>Gl(Gl({},De),Ie),f=De=>u(De.then),p=new WeakMap;let y=0;const m=De=>{const Ie=typeof De,Te=De&&De.constructor,Re=Te==Date;let We,rt;if(s(De)===De&&!Re&&Te!=RegExp){if(We=p.get(De),We)return We;if(We=++y+"~",p.set(De,We),Te==Array){for(We="@",rt=0;rtS&&typeof window.requestAnimationFrame!=x,j=(De,Ie)=>{const Te=d.get(De);return[()=>!c(Ie)&&De.get(Ie)||b,Re=>{if(!c(Ie)){const We=De.get(Ie);Ie in C||(C[Ie]=We),Te[5](Ie,l(We,Re),We||b)}},Te[6],()=>!c(Ie)&&Ie in C?C[Ie]:!c(Ie)&&De.get(Ie)||b]};let E=!0;const I=()=>E,[B,ae]=S&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],Z=()=>{const De=w&&document.visibilityState;return c(De)||De!=="hidden"},G=De=>(w&&document.addEventListener("visibilitychange",De),B("focus",De),()=>{w&&document.removeEventListener("visibilitychange",De),ae("focus",De)}),ee=De=>{const Ie=()=>{E=!0,De()},Te=()=>{E=!1};return B("online",Ie),B("offline",Te),()=>{ae("online",Ie),ae("offline",Te)}},te={isOnline:I,isVisible:Z},F={initFocus:G,initReconnect:ee},ne=!t.useId,X=!S||"Deno"in window,q=De=>O()?window.requestAnimationFrame(De):setTimeout(De,1),L=X?t.useEffect:t.useLayoutEffect,N=typeof navigator!="undefined"&&navigator.connection,$=!X&&N&&(["slow-2g","2g"].includes(N.effectiveType)||N.saveData),A=De=>{if(u(De))try{De=De()}catch(Te){De=""}const Ie=De;return De=typeof De=="string"?De:(Array.isArray(De)?De.length:De)?m(De):"",[De,Ie]};let M=0;const H=()=>++M,se=0,J=1,Y=2;var be={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:se,MUTATE_EVENT:Y,RECONNECT_EVENT:J};function Pe(...De){return Lu(this,null,function*(){const[Ie,Te,Re,We]=De,rt=l({populateCache:!0,throwOnError:!0},typeof We=="boolean"?{revalidate:We}:We||{});let gt=rt.populateCache;const jt=rt.rollbackOnError;let Ct=rt.optimisticData;const rn=Qt=>typeof jt=="function"?jt(Qt):jt!==!1,kt=rt.throwOnError;if(u(Te)){const Qt=Te,Pt=[],Ge=Ie.keys();for(const Ot of Ge)!/^\$(inf|sub)\$/.test(Ot)&&Qt(Ie.get(Ot)._k)&&Pt.push(Ot);return Promise.all(Pt.map(Rt))}return Rt(Te);function Rt(Qt){return Lu(this,null,function*(){const[Pt]=A(Qt);if(!Pt)return;const[Ge,Ot]=j(Ie,Pt),[Vt,bt,un,Jt]=d.get(Ie),mn=()=>{const tr=Vt[Pt];return(u(rt.revalidate)?rt.revalidate(Ge().data,Qt):rt.revalidate!==!1)&&(delete un[Pt],delete Jt[Pt],tr&&tr[0])?tr[0](Y).then(()=>Ge().data):Ge().data};if(De.length<3)return mn();let ln=Re,hn;const vn=H();bt[Pt]=[vn,0];const qt=!c(Ct),Tn=Ge(),Ln=Tn.data,Jn=Tn._c,Or=c(Jn)?Ln:Jn;if(qt&&(Ct=u(Ct)?Ct(Or,Ln):Ct,Ot({data:Ct,_c:Or})),u(ln))try{ln=ln(Or)}catch(tr){hn=tr}if(ln&&f(ln))if(ln=yield ln.catch(tr=>{hn=tr}),vn!==bt[Pt][0]){if(hn)throw hn;return ln}else hn&&qt&&rn(hn)&&(gt=!0,Ot({data:Or,_c:a}));if(gt&&!hn)if(u(gt)){const tr=gt(ln,Or);Ot({data:tr,error:a,_c:a})}else Ot({data:ln,error:a,_c:a});if(bt[Pt][1]=H(),Promise.resolve(mn()).then(()=>{Ot({_c:a})}),hn){if(kt)throw hn;return}return ln})}})}const Ee=(De,Ie)=>{for(const Te in De)De[Te][0]&&De[Te][0](Ie)},Ae=(De,Ie)=>{if(!d.has(De)){const Te=l(F,Ie),Re={},We=Pe.bind(a,De);let rt=o;const gt={},jt=(kt,Rt)=>{const Qt=gt[kt]||[];return gt[kt]=Qt,Qt.push(Rt),()=>Qt.splice(Qt.indexOf(Rt),1)},Ct=(kt,Rt,Qt)=>{De.set(kt,Rt);const Pt=gt[kt];if(Pt)for(const Ge of Pt)Ge(Rt,Qt)},rn=()=>{if(!d.has(De)&&(d.set(De,[Re,{},{},{},We,Ct,jt]),!X)){const kt=Te.initFocus(setTimeout.bind(a,Ee.bind(a,Re,se))),Rt=Te.initReconnect(setTimeout.bind(a,Ee.bind(a,Re,J)));rt=()=>{kt&&kt(),Rt&&Rt(),d.delete(De)}}};return rn(),[De,We,rn,rt]}return[De,d.get(De)[4]]},Ye=(De,Ie,Te,Re,We)=>{const rt=Te.errorRetryCount,gt=We.retryCount,jt=~~((Math.random()+.5)*(1<<(gt<8?gt:8)))*Te.errorRetryInterval;!c(rt)&>>rt||setTimeout(Re,jt,We)},nt=(De,Ie)=>m(De)==m(Ie),[st,ft]=Ae(new Map),pt=l({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:Ye,onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:$?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:$?5e3:3e3,compare:nt,isPaused:()=>!1,cache:st,mutate:ft,fallback:{}},te),me=(De,Ie)=>{const Te=l(De,Ie);if(Ie){const{use:Re,fallback:We}=De,{use:rt,fallback:gt}=Ie;Re&&rt&&(Te.use=Re.concat(rt)),We&>&&(Te.fallback=l(We,gt))}return Te},W=(0,t.createContext)({}),T=De=>{const{value:Ie}=De,Te=(0,t.useContext)(W),Re=u(Ie),We=(0,t.useMemo)(()=>Re?Ie(Te):Ie,[Re,Te,Ie]),rt=(0,t.useMemo)(()=>Re?We:me(Te,We),[Re,Te,We]),gt=We&&We.provider,jt=(0,t.useRef)(a);gt&&!jt.current&&(jt.current=Ae(gt(rt.cache||st),We));const Ct=jt.current;return Ct&&(rt.cache=Ct[0],rt.mutate=Ct[1]),L(()=>{if(Ct)return Ct[2]&&Ct[2](),Ct[3]},[]),(0,t.createElement)(W.Provider,l(De,{value:rt}))},D="$inf$",K=S&&window.__SWR_DEVTOOLS_USE__,k=K?window.__SWR_DEVTOOLS_USE__:[],Q=()=>{K&&(window.__SWR_DEVTOOLS_REACT__=t)},le=De=>u(De[1])?[De[0],De[1],De[2]||{}]:[De[0],null,(De[1]===null?De[2]:De[1])||{}],_=()=>l(pt,(0,t.useContext)(W)),V=(De,Ie)=>{const[Te,Re]=A(De),[,,,We]=d.get(st);if(We[Te])return We[Te];const rt=Ie(Re);return We[Te]=rt,rt},ie=De=>(Ie,Te,Re)=>De(Ie,Te&&((...rt)=>{const[gt]=A(Ie),[,,,jt]=d.get(st);if(gt.startsWith(D))return Te(...rt);const Ct=jt[gt];return c(Ct)?Te(...rt):(delete jt[gt],Ct)}),Re),fe=k.concat(ie),ce=De=>function(...Te){const Re=_(),[We,rt,gt]=le(Te),jt=me(Re,gt);let Ct=De;const{use:rn}=jt,kt=(rn||[]).concat(fe);for(let Rt=kt.length;Rt--;)Ct=kt[Rt](Ct);return Ct(We,rt||jt.fetcher||null,jt)},Ze=(De,Ie,Te)=>{const Re=Ie[De]||(Ie[De]=[]);return Re.push(Te),()=>{const We=Re.indexOf(Te);We>=0&&(Re[We]=Re[Re.length-1],Re.pop())}},lt=(De,Ie)=>(...Te)=>{const[Re,We,rt]=le(Te),gt=(rt.use||[]).concat(Ie);return De(Re,We,Xc(Gl({},rt),{use:gt}))};Q();const Ce=De=>serialize(De)[0],xe=t.use||(De=>{if(De.status==="pending")throw De;if(De.status==="fulfilled")return De.value;throw De.status==="rejected"?De.reason:(De.status="pending",De.then(Ie=>{De.status="fulfilled",De.value=Ie},Ie=>{De.status="rejected",De.reason=Ie}),De)}),R={dedupe:!0},oe=(De,Ie,Te)=>{const{cache:Re,compare:We,suspense:rt,fallbackData:gt,revalidateOnMount:jt,revalidateIfStale:Ct,refreshInterval:rn,refreshWhenHidden:kt,refreshWhenOffline:Rt,keepPreviousData:Qt}=Te,[Pt,Ge,Ot,Vt]=d.get(Re),[bt,un]=A(De),Jt=(0,t.useRef)(!1),mn=(0,t.useRef)(!1),ln=(0,t.useRef)(bt),hn=(0,t.useRef)(Ie),vn=(0,t.useRef)(Te),qt=()=>vn.current,Tn=()=>qt().isVisible()&&qt().isOnline(),[Ln,Jn,Or,tr]=j(Re,bt),pr=(0,t.useRef)({}).current,at=c(gt)?Te.fallback[bt]:gt,ke=(tt,St)=>{for(const Zt in pr){const yt=Zt;if(yt==="data"){if(!We(tt[yt],St[yt])&&(!c(tt[yt])||!We(or,St[yt])))return!1}else if(St[yt]!==tt[yt])return!1}return!0},en=(0,t.useMemo)(()=>{const tt=(()=>!bt||!Ie?!1:c(jt)?qt().isPaused()||rt?!1:c(Ct)?!0:Ct:jt)(),St=$n=>{const ct=l($n);return delete ct._k,tt?Gl({isValidating:!0,isLoading:!0},ct):ct},Zt=Ln(),yt=tr(),zt=St(Zt),_t=Zt===yt?zt:St(yt);let nn=zt;return[()=>{const $n=St(Ln());return ke($n,nn)?(nn.data=$n.data,nn.isLoading=$n.isLoading,nn.isValidating=$n.isValidating,nn.error=$n.error,nn):(nn=$n,$n)},()=>_t]},[Re,bt]),ht=(0,r.useSyncExternalStore)((0,t.useCallback)(tt=>Or(bt,(St,Zt)=>{ke(Zt,St)||tt()}),[Re,bt]),en[0],en[1]),an=!Jt.current,In=Pt[bt]&&Pt[bt].length>0,Un=ht.data,nr=c(Un)?at:Un,ar=ht.error,mr=(0,t.useRef)(nr),or=Qt?c(Un)?mr.current:Un:nr,hr=(()=>In&&!c(ar)?!1:an&&!c(jt)?jt:qt().isPaused()?!1:rt?c(nr)?!1:Ct:c(nr)||Ct)(),ir=!!(bt&&Ie&&an&&hr),dn=c(ht.isValidating)?ir:ht.isValidating,Yn=c(ht.isLoading)?ir:ht.isLoading,xn=(0,t.useCallback)(tt=>Lu(this,null,function*(){const St=hn.current;if(!bt||!St||mn.current||qt().isPaused())return!1;let Zt,yt,zt=!0;const _t=tt||{},nn=!Ot[bt]||!_t.dedupe,$n=()=>ne?!mn.current&&bt===ln.current&&Jt.current:bt===ln.current,ct={isValidating:!1,isLoading:!1},Wn=()=>{Jn(ct)},Bn=()=>{const zn=Ot[bt];zn&&zn[1]===yt&&delete Ot[bt]},pn={isValidating:!0};c(Ln().data)&&(pn.isLoading=!0);try{if(nn&&(Jn(pn),Te.loadingTimeout&&c(Ln().data)&&setTimeout(()=>{zt&&$n()&&qt().onLoadingSlow(bt,Te)},Te.loadingTimeout),Ot[bt]=[St(un),H()]),[Zt,yt]=Ot[bt],Zt=yield Zt,nn&&setTimeout(Bn,Te.dedupingInterval),!Ot[bt]||Ot[bt][1]!==yt)return nn&&$n()&&qt().onDiscarded(bt),!1;ct.error=a;const zn=Ge[bt];if(!c(zn)&&(yt<=zn[0]||yt<=zn[1]||zn[1]===0))return Wn(),nn&&$n()&&qt().onDiscarded(bt),!1;const Mn=Ln().data;ct.data=We(Mn,Zt)?Mn:Zt,nn&&$n()&&qt().onSuccess(Zt,bt,Te)}catch(zn){Bn();const Mn=qt(),{shouldRetryOnError:$r}=Mn;Mn.isPaused()||(ct.error=zn,nn&&$n()&&(Mn.onError(zn,bt,Mn),($r===!0||u($r)&&$r(zn))&&(!qt().revalidateOnFocus||!qt().revalidateOnReconnect||Tn())&&Mn.onErrorRetry(zn,bt,Mn,Le=>{const Me=Pt[bt];Me&&Me[0]&&Me[0](be.ERROR_REVALIDATE_EVENT,Le)},{retryCount:(_t.retryCount||0)+1,dedupe:!0})))}return zt=!1,Wn(),!0}),[bt,Re]),tn=(0,t.useCallback)((...tt)=>Pe(Re,ln.current,...tt),[]);if(L(()=>{hn.current=Ie,vn.current=Te,c(Un)||(mr.current=Un)}),L(()=>{if(!bt)return;const tt=xn.bind(a,R);let St=0;const yt=Ze(bt,Pt,(zt,_t={})=>{if(zt==be.FOCUS_EVENT){const nn=Date.now();qt().revalidateOnFocus&&nn>St&&Tn()&&(St=nn+qt().focusThrottleInterval,tt())}else if(zt==be.RECONNECT_EVENT)qt().revalidateOnReconnect&&Tn()&&tt();else{if(zt==be.MUTATE_EVENT)return xn();if(zt==be.ERROR_REVALIDATE_EVENT)return xn(_t)}});return mn.current=!1,ln.current=bt,Jt.current=!0,Jn({_k:un}),hr&&(c(nr)||X?tt():q(tt)),()=>{mn.current=!0,yt()}},[bt]),L(()=>{let tt;function St(){const yt=u(rn)?rn(Ln().data):rn;yt&&tt!==-1&&(tt=setTimeout(Zt,yt))}function Zt(){!Ln().error&&(kt||qt().isVisible())&&(Rt||qt().isOnline())?xn(R).then(St):St()}return St(),()=>{tt&&(clearTimeout(tt),tt=-1)}},[rn,kt,Rt,bt]),(0,t.useDebugValue)(or),rt&&c(nr)&&bt){if(!ne&&X)throw new Error("Fallback data is required when using suspense in SSR.");hn.current=Ie,vn.current=Te,mn.current=!1;const tt=Vt[bt];if(!c(tt)){const St=tn(tt);xe(St)}if(c(ar)){const St=xn(R);c(or)||(St.status="fulfilled",St.value=!0),xe(St)}else throw ar}return{mutate:tn,get data(){return pr.data=!0,or},get error(){return pr.error=!0,ar},get isValidating(){return pr.isValidating=!0,dn},get isLoading(){return pr.isLoading=!0,Yn}}},Ve=s.defineProperty(T,"defaultValue",{value:pt}),He=ce(oe)}},Jo={};function ye(v){var g=Jo[v];if(g!==void 0)return g.exports;var e=Jo[v]={id:v,loaded:!1,exports:{}};return bi[v].call(e.exports,e,e.exports,ye),e.loaded=!0,e.exports}ye.m=bi,function(){ye.n=function(v){var g=v&&v.__esModule?function(){return v.default}:function(){return v};return ye.d(g,{a:g}),g}}(),function(){var v=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},g;ye.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);ye.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},ye.d(r,o),r}}(),function(){ye.d=function(v,g){for(var e in g)ye.o(g,e)&&!ye.o(v,e)&&Object.defineProperty(v,e,{enumerable:!0,get:g[e]})}}(),function(){ye.f={},ye.e=function(v){return Promise.all(Object.keys(ye.f).reduce(function(g,e){return ye.f[e](v,g),g},[]))}}(),function(){ye.u=function(v){return""+({185:"p__Welcome",190:"p__MoneyManagement",301:"t__plugin-layout__Layout",366:"p__User__Login__index",371:"p__DeviceOwnerApp",455:"p__SuperAdmin",542:"p__AdvRecordListV2",557:"p__Bind",571:"p__404",731:"p__App__AppManagement",816:"p__AdminManagement",857:"p__AdvRecordList",903:"p__UserManagement"}[v]||v)+"."+{51:"a2ea1b3b",63:"86ff1d28",134:"6fc81d91",169:"57647c7d",185:"61596037",190:"104db416",247:"3fe8fb10",301:"4594a64b",366:"9d3ab92e",371:"ec53e5c4",390:"41467286",393:"38316f72",397:"fb5f72c1",427:"f16a2970",455:"bbb0991c",531:"3d4ec55a",539:"49b7b156",542:"e4a2e08b",557:"b6ee068f",559:"016bfdbb",571:"0c100574",635:"20e45f05",731:"dd12ff21",804:"139cd916",816:"123d40ec",841:"614ef4c0",857:"8e5ef22c",903:"8cf2aa91",905:"6e225d1b",930:"fca7adbf"}[v]+".async.js"}}(),function(){ye.miniCssF=function(v){return"t__plugin-layout__Layout.6cae69f5.chunk.css"}}(),function(){ye.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(v){if(typeof window=="object")return window}}()}(),function(){ye.o=function(v,g){return Object.prototype.hasOwnProperty.call(v,g)}}(),function(){var v={},g="ant-design-pro:";ye.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_n.length)&&(Gn=_n.length);for(var he=0,Be=new Array(Gn);he0&&arguments[0]!==void 0?arguments[0]:"";return _n.endsWith("/")?_n:"".concat(_n,"/")}var Pa=ye(49647),ja=ye(58096),Va=aa.createContext(void 0);function _a(){return aa.useContext(Va)}var Na=["redirect"];function eo(_n){var Gn=_n.routesById,he=_n.parentId,Be=_n.routeComponents;return Object.keys(Gn).filter(function(U){return Gn[U].parentId===he}).map(function(U){var dt=ni(ea({route:Gn[U],routeComponent:Be[U],loadingComponent:_n.loadingComponent,reactRouter5Compat:_n.reactRouter5Compat},_n.reactRouter5Compat&&{hasChildren:Object.keys(Gn).filter(function(wn){return Gn[wn].parentId===U}).length>0})),Tt=eo({routesById:Gn,routeComponents:Be,parentId:dt.id,loadingComponent:_n.loadingComponent,reactRouter5Compat:_n.reactRouter5Compat});return Tt.length>0&&(dt.children=Tt,dt.routes=Tt),dt})}function Ka(_n){var Gn=(0,Ma.UO)(),he=(0,Ma.Gn)(_n.to,Gn),Be=(0,Ea.T$)(),U=(0,Ma.TH)();if(Be!=null&&Be.keepQuery){var dt=U.search+U.hash;he+=dt}var Tt=ea(ea({},_n),{},{to:he});return aa.createElement(Ma.Fg,(0,ja.Z)({replace:!0},Tt))}function ni(_n){var Gn=_n.route,he=Gn.redirect,Be=(0,Pa.Z)(Gn,Na),U=_n.reactRouter5Compat?ko:yo;return ea({element:he?aa.createElement(Ka,{to:he}):aa.createElement(Va.Provider,{value:{route:_n.route}},aa.createElement(U,{loader:aa.memo(_n.routeComponent),loadingComponent:_n.loadingComponent||po,hasChildren:_n.hasChildren}))},Be)}function po(){return aa.createElement("div",null)}function ko(_n){var Gn=_a(),he=Gn.route,Be=(0,Ea.Ov)(),U=Be.history,dt=Be.clientRoutes,Tt=(0,Ma.UO)(),wn={params:Tt,isExact:!0,path:he.path,url:U.location.pathname},Qn=_n.loader;return aa.createElement(aa.Suspense,{fallback:aa.createElement(_n.loadingComponent,null)},aa.createElement(Qn,{location:U.location,match:wn,history:U,params:Tt,route:he,routes:dt},_n.hasChildren&&aa.createElement(Ma.j3,null)))}function yo(_n){var Gn=_n.loader;return aa.createElement(aa.Suspense,{fallback:aa.createElement(_n.loadingComponent,null)},aa.createElement(Gn,null))}var uo=null;function oo(){return uo}function zo(_n){var Gn=_n.history,he=aa.useState({action:Gn.action,location:Gn.location}),Be=$o(he,2),U=Be[0],dt=Be[1];return(0,aa.useLayoutEffect)(function(){return Gn.listen(dt)},[Gn]),(0,aa.useLayoutEffect)(function(){function Tt(wn){_n.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:_n.routes,clientRoutes:_n.clientRoutes,location:wn.location,action:wn.action,basename:_n.basename,isFirst:!!wn.isFirst}})}return Tt({location:U.location,action:U.action,isFirst:!0}),Gn.listen(Tt)},[Gn,_n.routes,_n.clientRoutes]),aa.createElement(Ma.F0,{navigator:Gn,location:U.location,basename:_n.basename},_n.children)}function ri(){var _n=(0,Ea.Ov)(),Gn=_n.clientRoutes;return(0,Ma.V$)(Gn)}var we=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Se=function(Gn,he){var Be=Gn.basename||"/",U=eo({routesById:Gn.routes,routeComponents:Gn.routeComponents,loadingComponent:Gn.loadingComponent,reactRouter5Compat:Gn.reactRouter5Compat});Gn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:U}});for(var dt=aa.createElement(zo,{basename:Be,pluginManager:Gn.pluginManager,routes:Gn.routes,clientRoutes:U,history:Gn.history},he),Tt=0,wn=we;Tt { const { code } = useParams(); @@ -19,21 +19,30 @@ const MoneyManagement: React.FC = () => { title: 'id', dataIndex: 'id', valueType: 'textarea', - ellipsis: true, copyable: true, + hideInSearch: true, + renderText: (_, r: API.MoneyBo) => { + return timestamp2Num(r.createdAt || 0) + prefixInteger(r.id || 0, 6); + }, }, { title: '用户', hideInSearch: true, dataIndex: 'user', valueType: 'textarea', + width: 180, renderText: (_, r: API.MoneyBo) => { if (!r.user) { return; } return ( - +

id:{r.user.id}
@@ -55,33 +64,54 @@ const MoneyManagement: React.FC = () => { { title: '支付宝名称', dataIndex: 'name', + hideInSearch: true, }, { title: '支付宝账号', dataIndex: 'aliPayAccount', + hideInSearch: true, }, { title: '订单号', dataIndex: 'orderId', + hideInSearch: true, }, { title: '转账时间', dataIndex: 'transDate', + hideInSearch: true, }, { title: '状态', dataIndex: 'status', + hideInSearch: true, renderText: (status: number) => { const statusList = moneyStatus(); const matched = statusList.find((x) => x.value === status + ''); - return matched ? matched.label : '未知'; + const label = matched ? matched.label : '未知'; + return {label}; }, }, { - title: '提现申请时间', + title: '状态', + dataIndex: 'status', hideInTable: true, + valueType: 'select', + fieldProps: { + options: moneyStatus(), + }, + }, + // { + // title: '提现申请时间', + // hideInTable: true, + // dataIndex: 'createdAt', + // valueType: 'dateRange', + // }, + { + title: '申请时间', dataIndex: 'createdAt', - valueType: 'dateRange', + valueType: 'dateTime', + hideInSearch: true, }, { title: '操作', @@ -125,7 +155,6 @@ const MoneyManagement: React.FC = () => { return ( - search={false} actionRef={actionRef} request={async (params: API.MoneyQuery) => { const res = await moneyApplyList({ ...params, appCode: code }); diff --git a/src/pages/UserManagement.tsx b/src/pages/UserManagement.tsx index 2a147bc..38d9986 100644 --- a/src/pages/UserManagement.tsx +++ b/src/pages/UserManagement.tsx @@ -69,7 +69,7 @@ const UserManagement: React.FC = () => { }, { title: '已提现(元)', - dataIndex: 'money', + dataIndex: 'realMoney', renderText: (r: number) => { return cent2Yuan(r); }, diff --git a/src/services/matrix/typings.d.ts b/src/services/matrix/typings.d.ts index c145af0..7886040 100644 --- a/src/services/matrix/typings.d.ts +++ b/src/services/matrix/typings.d.ts @@ -448,6 +448,7 @@ declare namespace API { nickname?: string; avatar?: string; money?: number; + realMoney?: number; aliPayAccount?: string; income?: number; goldCoin?: number; diff --git a/src/utils/commonUtil.ts b/src/utils/commonUtil.ts index 2e8f08f..630a1b6 100644 --- a/src/utils/commonUtil.ts +++ b/src/utils/commonUtil.ts @@ -7,13 +7,26 @@ const channelList = () => { const moneyStatus = () => { return [ - { label: '待审批', value: '0' }, - { label: '审批通过', value: '1' }, - { label: '转账中', value: '2' }, - { label: '转账成功', value: '3' }, - { label: '转账失败', value: '-1' }, - { label: '审批拒绝', value: '-2' }, + { label: '待审批', value: '0', color: 'orange' }, + { label: '审批通过', value: '1', color: 'green' }, + { label: '转账中', value: '2', color: 'orange' }, + { label: '转账成功', value: '3', color: 'green' }, + { label: '转账失败', value: '-1', color: 'red' }, + { label: '审批拒绝', value: '-2', color: 'red' }, ]; }; -export { channelList, moneyStatus }; +const timestamp2Num = (t: number) => { + let time = new Date(t); + let year = time.getFullYear().toString().padStart(4, '0'); + let month = (time.getMonth() + 1).toString().padStart(2, '0'); + let day = time.getDate().toString().padStart(2, '0'); + return year + month + day; +}; + +const prefixInteger = (num: number, length: number) => { + let str = num.toString(); + return str.padStart(length, '0'); +}; + +export { channelList, moneyStatus, prefixInteger, timestamp2Num }; diff --git a/src/utils/numberUtils.ts b/src/utils/numberUtils.ts index 91f97eb..8eee493 100644 --- a/src/utils/numberUtils.ts +++ b/src/utils/numberUtils.ts @@ -1,15 +1,15 @@ const formatIncome = (v: number | undefined) => { if (!v) { - return 0; + return '0.00'; } - return parseFloat((v / 1000_00).toFixed(2)); + return (v / 1000_00).toFixed(2); }; const cent2Yuan = (v: number | undefined) => { if (!v) { - return 0; + return '0.00'; } - return parseFloat((v / 100).toFixed(2)); + return (v / 100).toFixed(2); }; export { cent2Yuan, formatIncome };