From 6e0e33dedb2d344b8874d7835046008b838db459 Mon Sep 17 00:00:00 2001 From: Owncast Date: Mon, 7 Mar 2022 03:51:36 +0000 Subject: [PATCH] Update admin to cbd6bc7936dd86e7eab87bc6b4cf6e50c4720914 --- static/admin/404/index.html | 2 +- .../_buildManifest.js | 2 +- .../_middlewareManifest.js | 0 .../_ssgManifest.js | 0 static/admin/_next/static/chunks/193-bda4c56edead8906.js | 1 - static/admin/_next/static/chunks/406-7c15d121d8803c15.js | 1 + .../{464-db01a44ec2dad9e9.js => 464-2f77b4d35258d966.js} | 2 +- .../{733-a3097123115d22a0.js => 733-c29eb814813c0818.js} | 2 +- ...-3acd5a7830403e31.js => access-tokens-8afe0156dede2f32.js} | 2 +- ...ctions-92d9d70383c09d7c.js => actions-14768f08b97377a1.js} | 2 +- ...sages-786181cf1c166259.js => messages-a1faa76f1e8205c6.js} | 2 +- .../{users-36554d1a55aae593.js => users-c96f1f13330efa08.js} | 2 +- ...384b75736.js => config-public-details-7c823f723b9356a8.js} | 2 +- ...54aa3b36b9b.js => config-social-items-4f6a061c0a4c19b6.js} | 2 +- ...o-6e2b00e33bf2e6c8.js => config-video-02f04c81da513e5c.js} | 2 +- ...ctions-ba2389637e03889d.js => actions-f59afeb0516d91a7.js} | 2 +- ...wers-4b36abc8560283e5.js => followers-b322ab871ff6a0bf.js} | 2 +- .../{index-159689a8a8a5e507.js => index-a29641f072fbdf05.js} | 2 +- .../{logs-813575bf5d07d2e9.js => logs-9319e0de2ab17377.js} | 2 +- ...pgrade-0ae3bc487cafeaaa.js => upgrade-83190bb84a6d4904.js} | 2 +- .../_next/static/chunks/pages/viewer-info-7834b41cfea203e8.js | 1 - .../_next/static/chunks/pages/viewer-info-d01e168cc6d70a75.js | 1 + ...hooks-c3d3edd3d72835f8.js => webhooks-d651dd7af05b93b9.js} | 2 +- static/admin/access-tokens/index.html | 2 +- static/admin/actions/index.html | 2 +- static/admin/chat/messages/index.html | 2 +- static/admin/chat/users/index.html | 2 +- static/admin/config-chat/index.html | 2 +- static/admin/config-federation/index.html | 2 +- static/admin/config-public-details/index.html | 2 +- static/admin/config-server-details/index.html | 2 +- static/admin/config-social-items/index.html | 2 +- static/admin/config-storage/index.html | 2 +- static/admin/config-video/index.html | 2 +- static/admin/federation/actions/index.html | 2 +- static/admin/federation/followers/index.html | 2 +- static/admin/hardware-info/index.html | 4 ++-- static/admin/help/index.html | 2 +- static/admin/index.html | 2 +- static/admin/logs/index.html | 2 +- static/admin/upgrade/index.html | 2 +- static/admin/viewer-info/index.html | 2 +- static/admin/webhooks/index.html | 2 +- 43 files changed, 40 insertions(+), 40 deletions(-) rename static/admin/_next/static/{KE-QLxQHXyDl1Xp6Di9iN => HctYZnbZVjq30Arf7LitJ}/_buildManifest.js (55%) rename static/admin/_next/static/{KE-QLxQHXyDl1Xp6Di9iN => HctYZnbZVjq30Arf7LitJ}/_middlewareManifest.js (100%) rename static/admin/_next/static/{KE-QLxQHXyDl1Xp6Di9iN => HctYZnbZVjq30Arf7LitJ}/_ssgManifest.js (100%) delete mode 100644 static/admin/_next/static/chunks/193-bda4c56edead8906.js create mode 100644 static/admin/_next/static/chunks/406-7c15d121d8803c15.js rename static/admin/_next/static/chunks/{464-db01a44ec2dad9e9.js => 464-2f77b4d35258d966.js} (99%) rename static/admin/_next/static/chunks/{733-a3097123115d22a0.js => 733-c29eb814813c0818.js} (99%) rename static/admin/_next/static/chunks/pages/{access-tokens-3acd5a7830403e31.js => access-tokens-8afe0156dede2f32.js} (99%) rename static/admin/_next/static/chunks/pages/{actions-92d9d70383c09d7c.js => actions-14768f08b97377a1.js} (98%) rename static/admin/_next/static/chunks/pages/chat/{messages-786181cf1c166259.js => messages-a1faa76f1e8205c6.js} (98%) rename static/admin/_next/static/chunks/pages/chat/{users-36554d1a55aae593.js => users-c96f1f13330efa08.js} (96%) rename static/admin/_next/static/chunks/pages/{config-public-details-1e55965384b75736.js => config-public-details-7c823f723b9356a8.js} (99%) rename static/admin/_next/static/chunks/pages/{config-social-items-7bfac54aa3b36b9b.js => config-social-items-4f6a061c0a4c19b6.js} (95%) rename static/admin/_next/static/chunks/pages/{config-video-6e2b00e33bf2e6c8.js => config-video-02f04c81da513e5c.js} (99%) rename static/admin/_next/static/chunks/pages/federation/{actions-ba2389637e03889d.js => actions-f59afeb0516d91a7.js} (95%) rename static/admin/_next/static/chunks/pages/federation/{followers-4b36abc8560283e5.js => followers-b322ab871ff6a0bf.js} (99%) rename static/admin/_next/static/chunks/pages/{index-159689a8a8a5e507.js => index-a29641f072fbdf05.js} (98%) rename static/admin/_next/static/chunks/pages/{logs-813575bf5d07d2e9.js => logs-9319e0de2ab17377.js} (94%) rename static/admin/_next/static/chunks/pages/{upgrade-0ae3bc487cafeaaa.js => upgrade-83190bb84a6d4904.js} (94%) delete mode 100644 static/admin/_next/static/chunks/pages/viewer-info-7834b41cfea203e8.js create mode 100644 static/admin/_next/static/chunks/pages/viewer-info-d01e168cc6d70a75.js rename static/admin/_next/static/chunks/pages/{webhooks-c3d3edd3d72835f8.js => webhooks-d651dd7af05b93b9.js} (99%) diff --git a/static/admin/404/index.html b/static/admin/404/index.html index b76f973db..ba2149cdf 100644 --- a/static/admin/404/index.html +++ b/static/admin/404/index.html @@ -1 +1 @@ -404: This page could not be found

What is your stream about today?

What is your stream about today?
Offline

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

What is your stream about today?

What is your stream about today?
Offline

404

This page could not be found.

\ No newline at end of file diff --git a/static/admin/_next/static/KE-QLxQHXyDl1Xp6Di9iN/_buildManifest.js b/static/admin/_next/static/HctYZnbZVjq30Arf7LitJ/_buildManifest.js similarity index 55% rename from static/admin/_next/static/KE-QLxQHXyDl1Xp6Di9iN/_buildManifest.js rename to static/admin/_next/static/HctYZnbZVjq30Arf7LitJ/_buildManifest.js index 6f51828d0..ff69b9de1 100644 --- a/static/admin/_next/static/KE-QLxQHXyDl1Xp6Di9iN/_buildManifest.js +++ b/static/admin/_next/static/HctYZnbZVjq30Arf7LitJ/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,c,a,e,t,i,f,n,o,d,h,g,b){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,c,a,e,t,f,"static/chunks/59-7fdae807cba004d7.js","static/chunks/pages/index-159689a8a8a5e507.js"],"/_error":["static/chunks/pages/_error-a3f18418a2205cb8.js"],"/access-tokens":[s,c,"static/chunks/pages/access-tokens-3acd5a7830403e31.js"],"/actions":[s,"static/chunks/pages/actions-92d9d70383c09d7c.js"],"/chat/messages":[n,s,c,e,o,"static/chunks/pages/chat/messages-786181cf1c166259.js"],"/chat/users":[n,s,c,a,e,o,"static/chunks/pages/chat/users-36554d1a55aae593.js"],"/config-chat":["static/chunks/pages/config-chat-a3cf0bc74e319b68.js"],"/config-federation":["static/chunks/829-d13a92a702516b11.js","static/chunks/pages/config-federation-726ead757495a90e.js"],"/config-public-details":[s,i,"static/css/e773f9ad06a56dc3.css","static/chunks/589-dee21eef75490d30.js",d,"static/chunks/pages/config-public-details-1e55965384b75736.js"],"/config-server-details":[h,"static/chunks/pages/config-server-details-e5bd6cc3840023d9.js"],"/config-social-items":[s,d,"static/chunks/pages/config-social-items-7bfac54aa3b36b9b.js"],"/config-storage":["static/chunks/473-071d0ccb4058336e.js","static/chunks/pages/config-storage-bde3d5d3a1f7c6a2.js"],"/config-video":[s,h,"static/chunks/556-e371537a5b08e653.js","static/chunks/pages/config-video-6e2b00e33bf2e6c8.js"],"/federation/actions":[s,c,"static/chunks/pages/federation/actions-ba2389637e03889d.js"],"/federation/followers":[s,c,a,"static/chunks/pages/federation/followers-4b36abc8560283e5.js"],"/hardware-info":[g,c,a,t,i,b,"static/chunks/pages/hardware-info-adf26cdfa8eebab7.js"],"/help":[a,"static/chunks/17-ac2e2ca5e63d3007.js","static/chunks/pages/help-5336bd99636e2dc3.js"],"/logs":[s,c,f,"static/chunks/pages/logs-813575bf5d07d2e9.js"],"/upgrade":[s,"static/chunks/655-7d27b7c49ede8381.js","static/chunks/pages/upgrade-0ae3bc487cafeaaa.js"],"/viewer-info":[g,s,c,a,e,t,i,b,"static/chunks/pages/viewer-info-7834b41cfea203e8.js"],"/webhooks":[s,"static/chunks/pages/webhooks-c3d3edd3d72835f8.js"],sortedPages:["/","/_app","/_error","/access-tokens","/actions","/chat/messages","/chat/users","/config-chat","/config-federation","/config-public-details","/config-server-details","/config-social-items","/config-storage","/config-video","/federation/actions","/federation/followers","/hardware-info","/help","/logs","/upgrade","/viewer-info","/webhooks"]}}("static/chunks/193-bda4c56edead8906.js","static/chunks/91-e5a929ca024e0e59.js","static/chunks/961-932002f6def24a76.js","static/chunks/308-b4f28049610db2e1.js","static/chunks/138-71c967507f314a8a.js","static/chunks/910-ed07ccf32f311d03.js","static/chunks/429-b916347815798eef.js","static/chunks/29107295-1494f237b9e407ad.js","static/chunks/464-db01a44ec2dad9e9.js","static/chunks/733-a3097123115d22a0.js","static/chunks/578-f63843553d757ffc.js","static/chunks/36bcf0ca-c1f70baa5cd8cbbf.js","static/chunks/80-979a39dd33b1f687.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(s,c,a,e,t,i,f,n,o,d,h,g,r){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,c,a,e,t,f,"static/chunks/59-7fdae807cba004d7.js","static/chunks/pages/index-a29641f072fbdf05.js"],"/_error":["static/chunks/pages/_error-a3f18418a2205cb8.js"],"/access-tokens":[s,c,"static/chunks/pages/access-tokens-8afe0156dede2f32.js"],"/actions":[s,"static/chunks/pages/actions-14768f08b97377a1.js"],"/chat/messages":[n,s,c,e,o,"static/chunks/pages/chat/messages-a1faa76f1e8205c6.js"],"/chat/users":[n,s,c,a,e,o,"static/chunks/pages/chat/users-c96f1f13330efa08.js"],"/config-chat":["static/chunks/pages/config-chat-a3cf0bc74e319b68.js"],"/config-federation":["static/chunks/829-d13a92a702516b11.js","static/chunks/pages/config-federation-726ead757495a90e.js"],"/config-public-details":[s,i,"static/css/e773f9ad06a56dc3.css","static/chunks/589-dee21eef75490d30.js",d,"static/chunks/pages/config-public-details-7c823f723b9356a8.js"],"/config-server-details":[h,"static/chunks/pages/config-server-details-e5bd6cc3840023d9.js"],"/config-social-items":[s,d,"static/chunks/pages/config-social-items-4f6a061c0a4c19b6.js"],"/config-storage":["static/chunks/473-071d0ccb4058336e.js","static/chunks/pages/config-storage-bde3d5d3a1f7c6a2.js"],"/config-video":[s,h,"static/chunks/556-e371537a5b08e653.js","static/chunks/pages/config-video-02f04c81da513e5c.js"],"/federation/actions":[s,c,"static/chunks/pages/federation/actions-f59afeb0516d91a7.js"],"/federation/followers":[s,c,a,"static/chunks/pages/federation/followers-b322ab871ff6a0bf.js"],"/hardware-info":[g,c,a,t,i,r,"static/chunks/pages/hardware-info-adf26cdfa8eebab7.js"],"/help":[a,"static/chunks/17-ac2e2ca5e63d3007.js","static/chunks/pages/help-5336bd99636e2dc3.js"],"/logs":[s,c,f,"static/chunks/pages/logs-9319e0de2ab17377.js"],"/upgrade":[s,"static/chunks/655-7d27b7c49ede8381.js","static/chunks/pages/upgrade-83190bb84a6d4904.js"],"/viewer-info":[g,s,c,a,e,t,i,r,"static/chunks/pages/viewer-info-d01e168cc6d70a75.js"],"/webhooks":[s,"static/chunks/pages/webhooks-d651dd7af05b93b9.js"],sortedPages:["/","/_app","/_error","/access-tokens","/actions","/chat/messages","/chat/users","/config-chat","/config-federation","/config-public-details","/config-server-details","/config-social-items","/config-storage","/config-video","/federation/actions","/federation/followers","/hardware-info","/help","/logs","/upgrade","/viewer-info","/webhooks"]}}("static/chunks/406-7c15d121d8803c15.js","static/chunks/91-e5a929ca024e0e59.js","static/chunks/961-932002f6def24a76.js","static/chunks/308-b4f28049610db2e1.js","static/chunks/138-71c967507f314a8a.js","static/chunks/910-ed07ccf32f311d03.js","static/chunks/429-b916347815798eef.js","static/chunks/29107295-1494f237b9e407ad.js","static/chunks/464-2f77b4d35258d966.js","static/chunks/733-c29eb814813c0818.js","static/chunks/578-f63843553d757ffc.js","static/chunks/36bcf0ca-c1f70baa5cd8cbbf.js","static/chunks/80-979a39dd33b1f687.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/admin/_next/static/KE-QLxQHXyDl1Xp6Di9iN/_middlewareManifest.js b/static/admin/_next/static/HctYZnbZVjq30Arf7LitJ/_middlewareManifest.js similarity index 100% rename from static/admin/_next/static/KE-QLxQHXyDl1Xp6Di9iN/_middlewareManifest.js rename to static/admin/_next/static/HctYZnbZVjq30Arf7LitJ/_middlewareManifest.js diff --git a/static/admin/_next/static/KE-QLxQHXyDl1Xp6Di9iN/_ssgManifest.js b/static/admin/_next/static/HctYZnbZVjq30Arf7LitJ/_ssgManifest.js similarity index 100% rename from static/admin/_next/static/KE-QLxQHXyDl1Xp6Di9iN/_ssgManifest.js rename to static/admin/_next/static/HctYZnbZVjq30Arf7LitJ/_ssgManifest.js diff --git a/static/admin/_next/static/chunks/193-bda4c56edead8906.js b/static/admin/_next/static/chunks/193-bda4c56edead8906.js deleted file mode 100644 index 573898a3c..000000000 --- a/static/admin/_next/static/chunks/193-bda4c56edead8906.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[193],{57838:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var r=t(97685),o=t(67294);function a(){var e=o.useReducer((function(e){return e+1}),0);return(0,r.Z)(e,2)[1]}},24308:function(e,n,t){"use strict";t.d(n,{c4:function(){return a}});var r=t(4942),o=t(87462),a=["xxl","xl","lg","md","sm","xs"],i={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},l=new Map,c=-1,u={},s={matchHandlers:{},dispatch:function(e){return u=e,l.forEach((function(e){return e(u)})),l.size>=1},subscribe:function(e){return l.size||this.register(),c+=1,l.set(c,e),e(u),c},unsubscribe:function(e){l.delete(e),l.size||this.unregister()},unregister:function(){var e=this;Object.keys(i).forEach((function(n){var t=i[n],r=e.matchHandlers[t];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),l.clear()},register:function(){var e=this;Object.keys(i).forEach((function(n){var t=i[n],a=function(t){var a=t.matches;e.dispatch((0,o.Z)((0,o.Z)({},u),(0,r.Z)({},n,a)))},l=window.matchMedia(t);l.addListener(a),e.matchHandlers[t]={mql:l,listener:a},a(l)}))}};n.ZP=s},32808:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(4942),o=t(87462),a=t(67294),i=t(94184),l=t.n(i),c=t(50132),u=t(74902),s=t(97685),d=t(98423),f=t(59844),p=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&(i=M().map((function(e){return a.createElement(E,{prefixCls:R,key:e.value.toString(),disabled:"disabled"in e?e.disabled:x.disabled,value:e.value,checked:-1!==k.indexOf(e.value),onChange:e.onChange,className:"".concat(T,"-item"),style:e.style},e.label)})));var j={toggleOption:function(e){var n=k.indexOf(e.value),t=(0,u.Z)(k);-1===n?t.push(e.value):t.splice(n,1),"value"in x||O(t);var r=M();null===b||void 0===b||b(t.filter((function(e){return-1!==I.indexOf(e)})).sort((function(e,n){return r.findIndex((function(n){return n.value===e}))-r.findIndex((function(e){return e.value===n}))})))},value:k,disabled:x.disabled,name:x.name,registerValue:function(e){D((function(n){return[].concat((0,u.Z)(n),[e])}))},cancelValue:function(e){D((function(n){return n.filter((function(n){return n!==e}))}))}},A=l()(T,(0,r.Z)({},"".concat(T,"-rtl"),"rtl"===Z),y);return a.createElement("div",(0,o.Z)({className:A,style:g},L,{ref:n}),a.createElement(v.Provider,{value:j},i))},h=a.forwardRef(m),y=a.memo(h),g=t(21687),b=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&void 0!==arguments[0])||arguments[0],n=(0,r.useRef)({}),t=(0,o.Z)();return(0,r.useEffect)((function(){var r=a.ZP.subscribe((function(r){n.current=r,e&&t()}));return function(){return a.ZP.unsubscribe(r)}}),[]),n.current}},38939:function(e,n,t){"use strict";t.d(n,{Z:function(){return je}});var r=t(4942),o=t(87462),a=t(67294),i=t(98423),l=t(94184),c=t.n(l),u=t(74902),s=t(1413),d=t(97685),f=t(91),p=t(71002),v=t(80334),m=t(21770),h=t(15105),y=t(31131),g=t(42550),b=t(8410),x=t(84506);function C(e,n){var t,r=e.key;return"value"in e&&(t=e.value),null!==r&&void 0!==r?r:void 0!==t?t:"rc-index-key-".concat(n)}function E(e,n){var t=e||{};return{label:t.label||(n?"children":"label"),value:t.value||"value",options:t.options||"options"}}function w(e){var n=(0,s.Z)({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return(0,v.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),n}}),n}var Z=t(51169),N=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],S=function(e,n){var t=e.prefixCls,i=(e.disabled,e.visible),l=e.children,u=e.popupElement,d=e.containerWidth,p=e.animation,v=e.transitionName,m=e.dropdownStyle,h=e.dropdownClassName,y=e.direction,g=void 0===y?"ltr":y,b=e.placement,x=e.dropdownMatchSelectWidth,C=e.dropdownRender,E=e.dropdownAlign,w=e.getPopupContainer,S=e.empty,k=e.getTriggerDOMNode,O=e.onPopupVisibleChange,P=e.onPopupMouseEnter,K=(0,f.Z)(e,N),I="".concat(t,"-dropdown"),D=u;C&&(D=C(u));var M=a.useMemo((function(){return function(e){var n=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}}}}(x)}),[x]),R=p?"".concat(I,"-").concat(p):v,T=a.useRef(null);a.useImperativeHandle(n,(function(){return{getPopupElement:function(){return T.current}}}));var L=(0,s.Z)({minWidth:d},m);return"number"===typeof x?L.width=x:x&&(L.width=d),a.createElement(Z.Z,(0,o.Z)({},K,{showAction:O?["click"]:[],hideAction:O?["click"]:[],popupPlacement:b||("rtl"===g?"bottomRight":"bottomLeft"),builtinPlacements:M,prefixCls:I,popupTransitionName:R,popup:a.createElement("div",{ref:T,onMouseEnter:P},D),popupAlign:E,popupVisible:i,getPopupContainer:w,popupClassName:c()(h,(0,r.Z)({},"".concat(I,"-empty"),S)),popupStyle:L,getTriggerDOMNode:k,onPopupVisibleChange:O}),l)},k=a.forwardRef(S);k.displayName="SelectTrigger";var O=k,P=t(64217),K=t(34243),I=function(e){var n,t=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,l=e.onClick,u=e.children;return n="function"===typeof r?r(o):r,a.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==n?n:a.createElement("span",{className:c()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},u))},D=function(e,n){var t,r,o=e.prefixCls,i=e.id,l=e.inputElement,u=e.disabled,d=e.tabIndex,f=e.autoFocus,p=e.autoComplete,v=e.editable,m=e.activeDescendantId,h=e.value,y=e.maxLength,b=e.onKeyDown,x=e.onMouseDown,C=e.onChange,E=e.onPaste,w=e.onCompositionStart,Z=e.onCompositionEnd,N=e.open,S=e.attrs,k=l||a.createElement("input",null),O=k,P=O.ref,K=O.props,I=K.onKeyDown,D=K.onChange,M=K.onMouseDown,R=K.onCompositionStart,T=K.onCompositionEnd,L=K.style;return k=a.cloneElement(k,(0,s.Z)((0,s.Z)({id:i,ref:(0,g.sQ)(n,P),disabled:u,tabIndex:d,autoComplete:p||"off",type:"search",autoFocus:f,className:c()("".concat(o,"-selection-search-input"),null===(t=k)||void 0===t||null===(r=t.props)||void 0===r?void 0:r.className),style:(0,s.Z)((0,s.Z)({},L),{},{opacity:v?null:0}),role:"combobox","aria-expanded":N,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":m},S),{},{value:v?h:"",maxLength:y,readOnly:!v,unselectable:v?null:"on",onKeyDown:function(e){b(e),I&&I(e)},onMouseDown:function(e){x(e),M&&M(e)},onChange:function(e){C(e),D&&D(e)},onCompositionStart:function(e){w(e),R&&R(e)},onCompositionEnd:function(e){Z(e),T&&T(e)},onPaste:E}))},M=a.forwardRef(D);M.displayName="Input";var R=M;function T(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var L="undefined"!==typeof window&&window.document&&window.document.documentElement;var j=function(e){e.preventDefault(),e.stopPropagation()},A=function(e){var n,t,o=e.id,i=e.prefixCls,l=e.values,u=e.open,s=e.searchValue,f=e.inputRef,p=e.placeholder,v=e.disabled,m=e.mode,h=e.showSearch,y=e.autoFocus,g=e.autoComplete,b=e.activeDescendantId,x=e.tabIndex,C=e.removeIcon,E=e.maxTagCount,w=e.maxTagTextLength,Z=e.maxTagPlaceholder,N=void 0===Z?function(e){return"+ ".concat(e.length," ...")}:Z,S=e.tagRender,k=e.onToggleOpen,O=e.onRemove,D=e.onInputChange,M=e.onInputPaste,T=e.onInputKeyDown,A=e.onInputMouseDown,H=e.onInputCompositionStart,_=e.onInputCompositionEnd,z=a.useRef(null),V=(0,a.useState)(0),F=(0,d.Z)(V,2),B=F[0],U=F[1],W=(0,a.useState)(!1),G=(0,d.Z)(W,2),Y=G[0],X=G[1],q="".concat(i,"-selection"),J=u||"tags"===m?s:"",$="tags"===m||h&&(u||Y);function Q(e,n,t,o,i){return a.createElement("span",{className:c()("".concat(q,"-item"),(0,r.Z)({},"".concat(q,"-item-disabled"),t)),title:"string"===typeof e||"number"===typeof e?e.toString():void 0},a.createElement("span",{className:"".concat(q,"-item-content")},n),o&&a.createElement(I,{className:"".concat(q,"-item-remove"),onMouseDown:j,onClick:i,customizeIcon:C},"\xd7"))}n=function(){U(z.current.scrollWidth)},t=[J],L?a.useLayoutEffect(n,t):a.useEffect(n,t);var ee=a.createElement("div",{className:"".concat(q,"-search"),style:{width:B},onFocus:function(){X(!0)},onBlur:function(){X(!1)}},a.createElement(R,{ref:f,open:u,prefixCls:i,id:o,inputElement:null,disabled:v,autoFocus:y,autoComplete:g,editable:$,activeDescendantId:b,value:J,onKeyDown:T,onMouseDown:A,onChange:D,onPaste:M,onCompositionStart:H,onCompositionEnd:_,tabIndex:x,attrs:(0,P.Z)(e,!0)}),a.createElement("span",{ref:z,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},J,"\xa0")),ne=a.createElement(K.Z,{prefixCls:"".concat(q,"-overflow"),data:l,renderItem:function(e){var n=e.disabled,t=e.label,r=e.value,o=!v&&!n,i=t;if("number"===typeof w&&("string"===typeof t||"number"===typeof t)){var l=String(i);l.length>w&&(i="".concat(l.slice(0,w),"..."))}var c=function(n){n&&n.stopPropagation(),O(e)};return"function"===typeof S?function(e,n,t,r,o){return a.createElement("span",{onMouseDown:function(e){j(e),k(!u)}},S({label:n,value:e,disabled:t,closable:r,onClose:o}))}(r,i,n,o,c):Q(t,i,n,o,c)},renderRest:function(e){var n="function"===typeof N?N(e):N;return Q(n,n,!1)},suffix:ee,itemKey:"key",maxCount:E});return a.createElement(a.Fragment,null,ne,!l.length&&!J&&a.createElement("span",{className:"".concat(q,"-placeholder")},p))},H=function(e){var n=e.inputElement,t=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,l=e.autoFocus,c=e.autoComplete,u=e.activeDescendantId,s=e.mode,f=e.open,p=e.values,v=e.placeholder,m=e.tabIndex,h=e.showSearch,y=e.searchValue,g=e.activeValue,b=e.maxLength,x=e.onInputKeyDown,C=e.onInputMouseDown,E=e.onInputChange,w=e.onInputPaste,Z=e.onInputCompositionStart,N=e.onInputCompositionEnd,S=a.useState(!1),k=(0,d.Z)(S,2),O=k[0],K=k[1],I="combobox"===s,D=I||h,M=p[0],T=y||"";I&&g&&!O&&(T=g),a.useEffect((function(){I&&K(!1)}),[I,g]);var L=!("combobox"!==s&&!f&&!h)&&!!T,j=!M||"string"!==typeof M.label&&"number"!==typeof M.label?void 0:M.label.toString();return a.createElement(a.Fragment,null,a.createElement("span",{className:"".concat(t,"-selection-search")},a.createElement(R,{ref:o,prefixCls:t,id:r,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:c,editable:D,activeDescendantId:u,value:T,onKeyDown:x,onMouseDown:C,onChange:function(e){K(!0),E(e)},onPaste:w,onCompositionStart:Z,onCompositionEnd:N,tabIndex:m,attrs:(0,P.Z)(e,!0),maxLength:I?b:void 0})),!I&&M&&!L&&a.createElement("span",{className:"".concat(t,"-selection-item"),title:j},M.label),function(){if(M)return null;var e=L?{visibility:"hidden"}:void 0;return a.createElement("span",{className:"".concat(t,"-selection-placeholder"),style:e},v)}())};function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=a.useRef(null),t=a.useRef(null);function r(r){(r||null===n.current)&&(n.current=r),window.clearTimeout(t.current),t.current=window.setTimeout((function(){n.current=null}),e)}return a.useEffect((function(){return function(){window.clearTimeout(t.current)}}),[]),[function(){return n.current},r]}var z=function(e,n){var t=(0,a.useRef)(null),r=(0,a.useRef)(!1),i=e.prefixCls,l=e.open,c=e.mode,u=e.showSearch,s=e.tokenWithEnter,f=e.onSearch,p=e.onSearchSubmit,v=e.onToggleOpen,m=e.onInputKeyDown,y=e.domRef;a.useImperativeHandle(n,(function(){return{focus:function(){t.current.focus()},blur:function(){t.current.blur()}}}));var g=_(0),b=(0,d.Z)(g,2),x=b[0],C=b[1],E=(0,a.useRef)(null),w=function(e){!1!==f(e,!0,r.current)&&v(!0)},Z={inputRef:t,onInputKeyDown:function(e){var n,t=e.which;t!==h.Z.UP&&t!==h.Z.DOWN||e.preventDefault(),m&&m(e),t!==h.Z.ENTER||"tags"!==c||r.current||l||null===p||void 0===p||p(e.target.value),n=t,[h.Z.ESC,h.Z.SHIFT,h.Z.BACKSPACE,h.Z.TAB,h.Z.WIN_KEY,h.Z.ALT,h.Z.META,h.Z.WIN_KEY_RIGHT,h.Z.CTRL,h.Z.SEMICOLON,h.Z.EQUALS,h.Z.CAPS_LOCK,h.Z.CONTEXT_MENU,h.Z.F1,h.Z.F2,h.Z.F3,h.Z.F4,h.Z.F5,h.Z.F6,h.Z.F7,h.Z.F8,h.Z.F9,h.Z.F10,h.Z.F11,h.Z.F12].includes(n)||v(!0)},onInputMouseDown:function(){C(!0)},onInputChange:function(e){var n=e.target.value;if(s&&E.current&&/[\r\n]/.test(E.current)){var t=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(t,E.current)}E.current=null,w(n)},onInputPaste:function(e){var n=e.clipboardData.getData("text");E.current=n},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&w(e.target.value)}},N="multiple"===c||"tags"===c?a.createElement(A,(0,o.Z)({},e,Z)):a.createElement(H,(0,o.Z)({},e,Z));return a.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:function(e){e.target!==t.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){t.current.focus()})):t.current.focus())},onMouseDown:function(e){var n=x();e.target===t.current||n||e.preventDefault(),("combobox"===c||u&&n)&&l||(l&&f("",!0,!1),v())}},N)},V=a.forwardRef(z);V.displayName="Selector";var F=V;var B=a.createContext(null);var U=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],W=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function G(e){return"tags"===e||"multiple"===e}var Y=a.forwardRef((function(e,n){var t,i,l=e.id,v=e.prefixCls,C=e.className,E=e.showSearch,w=e.tagRender,Z=e.direction,N=e.omitDomProps,S=e.displayValues,k=e.onDisplayValuesChange,P=e.emptyOptions,K=e.notFoundContent,D=void 0===K?"Not Found":K,M=e.onClear,R=e.mode,T=e.disabled,L=e.loading,j=e.getInputElement,A=e.getRawInputElement,H=e.open,z=e.defaultOpen,V=e.onDropdownVisibleChange,Y=e.activeValue,X=e.onActiveValueChange,q=e.activeDescendantId,J=e.searchValue,$=e.onSearch,Q=e.onSearchSplit,ee=e.tokenSeparators,ne=e.allowClear,te=e.showArrow,re=e.inputIcon,oe=e.clearIcon,ae=e.OptionList,ie=e.animation,le=e.transitionName,ce=e.dropdownStyle,ue=e.dropdownClassName,se=e.dropdownMatchSelectWidth,de=e.dropdownRender,fe=e.dropdownAlign,pe=e.placement,ve=e.getPopupContainer,me=e.showAction,he=void 0===me?[]:me,ye=e.onFocus,ge=e.onBlur,be=e.onKeyUp,xe=e.onKeyDown,Ce=e.onMouseDown,Ee=(0,f.Z)(e,U),we=G(R),Ze=(void 0!==E?E:we)||"combobox"===R,Ne=(0,s.Z)({},Ee);W.forEach((function(e){delete Ne[e]})),null===N||void 0===N||N.forEach((function(e){delete Ne[e]}));var Se=a.useState(!1),ke=(0,d.Z)(Se,2),Oe=ke[0],Pe=ke[1];a.useEffect((function(){Pe((0,y.Z)())}),[]);var Ke=a.useRef(null),Ie=a.useRef(null),De=a.useRef(null),Me=a.useRef(null),Re=a.useRef(null),Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=a.useState(!1),t=(0,d.Z)(n,2),r=t[0],o=t[1],i=a.useRef(null),l=function(){window.clearTimeout(i.current)};return a.useEffect((function(){return l}),[]),[r,function(n,t){l(),i.current=window.setTimeout((function(){o(n),t&&t()}),e)},l]}(),Le=(0,d.Z)(Te,3),je=Le[0],Ae=Le[1],He=Le[2];a.useImperativeHandle(n,(function(){var e,n;return{focus:null===(e=Me.current)||void 0===e?void 0:e.focus,blur:null===(n=Me.current)||void 0===n?void 0:n.blur,scrollTo:function(e){var n;return null===(n=Re.current)||void 0===n?void 0:n.scrollTo(e)}}}));var _e=a.useMemo((function(){var e;if("combobox"!==R)return J;var n=null===(e=S[0])||void 0===e?void 0:e.value;return"string"===typeof n||"number"===typeof n?String(n):""}),[J,R,S]),ze="combobox"===R&&"function"===typeof j&&j()||null,Ve="function"===typeof A&&A(),Fe=(0,g.x1)(Ie,null===Ve||void 0===Ve||null===(t=Ve.props)||void 0===t?void 0:t.ref),Be=(0,m.Z)(void 0,{defaultValue:z,value:H}),Ue=(0,d.Z)(Be,2),We=Ue[0],Ge=Ue[1],Ye=We,Xe=!D&&P;(T||Xe&&Ye&&"combobox"===R)&&(Ye=!1);var qe=!Xe&&Ye,Je=a.useCallback((function(e){var n=void 0!==e?e:!Ye;Ye===n||T||(Ge(n),null===V||void 0===V||V(n))}),[T,Ye,Ge,V]),$e=a.useMemo((function(){return(ee||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ee]),Qe=function(e,n,t){var r=!0,o=e;null===X||void 0===X||X(null);var a=t?null:function(e,n){if(!n||!n.length)return null;var t=!1,r=function e(n,r){var o=(0,x.Z)(r),a=o[0],i=o.slice(1);if(!a)return[n];var l=n.split(a);return t=t||l.length>1,l.reduce((function(n,t){return[].concat((0,u.Z)(n),(0,u.Z)(e(t,i)))}),[]).filter((function(e){return e}))}(e,n);return t?r:null}(e,ee);return"combobox"!==R&&a&&(o="",null===Q||void 0===Q||Q(a),Je(!1),r=!1),$&&_e!==o&&$(o,{source:n?"typing":"effect"}),r};a.useEffect((function(){Ye||we||"combobox"===R||Qe("",!1,!1)}),[Ye]),a.useEffect((function(){We&&T&&Ge(!1),T&&Ae(!1)}),[T]);var en=_(),nn=(0,d.Z)(en,2),tn=nn[0],rn=nn[1],on=a.useRef(!1),an=[];a.useEffect((function(){return function(){an.forEach((function(e){return clearTimeout(e)})),an.splice(0,an.length)}}),[]);var ln,cn=a.useState(null),un=(0,d.Z)(cn,2),sn=un[0],dn=un[1],fn=a.useState({}),pn=(0,d.Z)(fn,2)[1];(0,b.Z)((function(){if(qe){var e,n=Math.ceil(null===(e=Ke.current)||void 0===e?void 0:e.offsetWidth);sn===n||Number.isNaN(n)||dn(n)}}),[qe]),Ve&&(ln=function(e){Je(e)}),function(e,n,t){var r=a.useRef(null);r.current={open:n,triggerOpen:t},a.useEffect((function(){function n(n){var t=n.target;t.shadowRoot&&n.composed&&(t=n.composedPath()[0]||t),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(t)&&e!==t}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",n),function(){return window.removeEventListener("mousedown",n)}}),[])}((function(){var e;return[Ke.current,null===(e=De.current)||void 0===e?void 0:e.getPopupElement()]}),qe,Je);var vn,mn,hn=a.useMemo((function(){return(0,s.Z)((0,s.Z)({},e),{},{notFoundContent:D,open:Ye,triggerOpen:qe,id:l,showSearch:Ze,multiple:we,toggleOpen:Je})}),[e,D,qe,Ye,l,Ze,we,Je]),yn=void 0!==te?te:L||!we&&"combobox"!==R;yn&&(vn=a.createElement(I,{className:c()("".concat(v,"-arrow"),(0,r.Z)({},"".concat(v,"-arrow-loading"),L)),customizeIcon:re,customizeIconProps:{loading:L,searchValue:_e,open:Ye,focused:je,showSearch:Ze}}));!T&&ne&&(S.length||_e)&&(mn=a.createElement(I,{className:"".concat(v,"-clear"),onMouseDown:function(){null===M||void 0===M||M(),k([],{type:"clear",values:S}),Qe("",!1,!1)},customizeIcon:oe},"\xd7"));var gn,bn=a.createElement(ae,{ref:Re}),xn=c()(v,C,(i={},(0,r.Z)(i,"".concat(v,"-focused"),je),(0,r.Z)(i,"".concat(v,"-multiple"),we),(0,r.Z)(i,"".concat(v,"-single"),!we),(0,r.Z)(i,"".concat(v,"-allow-clear"),ne),(0,r.Z)(i,"".concat(v,"-show-arrow"),yn),(0,r.Z)(i,"".concat(v,"-disabled"),T),(0,r.Z)(i,"".concat(v,"-loading"),L),(0,r.Z)(i,"".concat(v,"-open"),Ye),(0,r.Z)(i,"".concat(v,"-customize-input"),ze),(0,r.Z)(i,"".concat(v,"-show-search"),Ze),i)),Cn=a.createElement(O,{ref:De,disabled:T,prefixCls:v,visible:qe,popupElement:bn,containerWidth:sn,animation:ie,transitionName:le,dropdownStyle:ce,dropdownClassName:ue,direction:Z,dropdownMatchSelectWidth:se,dropdownRender:de,dropdownAlign:fe,placement:pe,getPopupContainer:ve,empty:P,getTriggerDOMNode:function(){return Ie.current},onPopupVisibleChange:ln,onPopupMouseEnter:function(){pn({})}},Ve?a.cloneElement(Ve,{ref:Fe}):a.createElement(F,(0,o.Z)({},e,{domRef:Ie,prefixCls:v,inputElement:ze,ref:Me,id:l,showSearch:Ze,mode:R,activeDescendantId:q,tagRender:w,values:S,open:Ye,onToggleOpen:Je,activeValue:Y,searchValue:_e,onSearch:Qe,onSearchSubmit:function(e){e&&e.trim()&&$(e,{source:"submit"})},onRemove:function(e){var n=S.filter((function(n){return n!==e}));k(n,{type:"remove",values:[e]})},tokenWithEnter:$e})));return gn=Ve?Cn:a.createElement("div",(0,o.Z)({className:xn},Ne,{ref:Ke,onMouseDown:function(e){var n,t=e.target,r=null===(n=De.current)||void 0===n?void 0:n.getPopupElement();if(r&&r.contains(t)){var o=setTimeout((function(){var e,n=an.indexOf(o);-1!==n&&an.splice(n,1),He(),Oe||r.contains(document.activeElement)||null===(e=Me.current)||void 0===e||e.focus()}));an.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l=0;i-=1){var l=o[i];if(!l.disabled){o.splice(i,1),a=l;break}}a&&k(o,{type:"remove",values:[a]})}for(var c=arguments.length,s=new Array(c>1?c-1:0),d=1;d1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:1,t=M.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];z(e);var t={source:n?"keyboard":"mouse"},r=M[e];r?C(r.value,e,t):C(null,-1,t)};(0,a.useEffect)((function(){V(!1!==E?j(0):-1)}),[M.length,v]),(0,a.useEffect)((function(){var e,n=setTimeout((function(){if(!p&&s&&1===N.size){var e=Array.from(N)[0],n=M.findIndex((function(n){return n.data.value===e}));-1!==n&&(V(n),L(n))}}));s&&(null===(e=R.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(n)}}),[s,v]);var F=function(e){void 0!==e&&w(e,{selected:!N.has(e)}),p||m(!1)};if(a.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var n=e.which,t=e.ctrlKey;switch(n){case h.Z.N:case h.Z.P:case h.Z.UP:case h.Z.DOWN:var r=0;if(n===h.Z.UP?r=-1:n===h.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&t&&(n===h.Z.N?r=1:n===h.Z.P&&(r=-1)),0!==r){var o=j(_+r,r);L(o),V(o,!0)}break;case h.Z.ENTER:var a=M[_];a&&!a.data.disabled?F(a.value):F(void 0),s&&e.preventDefault();break;case h.Z.ESC:m(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){L(e)}}})),0===M.length)return a.createElement("div",{role:"listbox",id:"".concat(u,"_list"),className:"".concat(D,"-empty"),onMouseDown:T},y);var U=Object.keys(S).map((function(e){return S[e]})),W=function(e){return e.label},G=function(e){var n=M[e];if(!n)return null;var t=n.data||{},r=t.value,i=n.group,l=(0,P.Z)(t,!0),c=W(n);return n?a.createElement("div",(0,o.Z)({"aria-label":"string"!==typeof c||i?null:c},l,{key:e,role:i?"presentation":"option",id:"".concat(u,"_list_").concat(e),"aria-selected":N.has(r)}),r):null};return a.createElement(a.Fragment,null,a.createElement("div",{role:"listbox",id:"".concat(u,"_list"),style:{height:0,width:0,overflow:"hidden"}},G(_-1),G(_),G(_+1)),a.createElement(J.Z,{itemKey:"key",ref:R,data:M,height:O,itemHeight:K,fullHeight:!1,onMouseDown:T,onScroll:g,virtual:k},(function(e,n){var t,l=e.group,u=e.groupOption,s=e.data,d=e.label,p=e.value,v=s.key;if(l)return a.createElement("div",{className:c()(D,"".concat(D,"-group"))},void 0!==d?d:v);var m=s.disabled,h=s.title,y=(s.children,s.style),g=s.className,b=(0,f.Z)(s,Q),x=(0,i.Z)(b,U),C=N.has(p),E="".concat(D,"-option"),w=c()(D,E,g,(t={},(0,r.Z)(t,"".concat(E,"-grouped"),u),(0,r.Z)(t,"".concat(E,"-active"),_===n&&!m),(0,r.Z)(t,"".concat(E,"-disabled"),m),(0,r.Z)(t,"".concat(E,"-selected"),C),t)),S=W(e),k=!Z||"function"===typeof Z||C,O="number"===typeof S?S:S||p,P="string"===typeof O||"number"===typeof O?O.toString():void 0;return void 0!==h&&(P=h),a.createElement("div",(0,o.Z)({},x,{"aria-selected":C,className:w,title:P,onMouseMove:function(){_===n||m||V(n)},onClick:function(){m||F(p)},style:y}),a.createElement("div",{className:"".concat(E,"-content")},O),a.isValidElement(Z)||C,k&&a.createElement(I,{className:"".concat(D,"-option-state"),customizeIcon:Z,customizeIconProps:{isSelected:C}},C?"\u2713":null))})))},ne=a.forwardRef(ee);ne.displayName="OptionList";var te=ne,re=function(){return null};re.isSelectOption=!0;var oe=re,ae=function(){return null};ae.isSelectOptGroup=!0;var ie=ae,le=t(50344),ce=["children","value"],ue=["children"];function se(e){var n=e.key,t=e.props,r=t.children,o=t.value,a=(0,f.Z)(t,ce);return(0,s.Z)({key:n,value:void 0!==o?o:n,children:r},a)}function de(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,le.Z)(e).map((function(e,t){if(!a.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,l=i.children,c=(0,f.Z)(i,ue);return n||!r?se(e):(0,s.Z)((0,s.Z)({key:"__RC_SELECT_GRP__".concat(null===o?t:o,"__"),label:o},c),{},{options:de(l)})})).filter((function(e){return e}))}function fe(e,n,t){return a.useMemo((function(){var r=e;!e&&(r=de(n));var o=new Map,a=new Map;return function e(n){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i1&&void 0!==arguments[1]?arguments[1]:{},t=n.fieldNames,r=n.childrenAsData,o=[],a=E(t,!1),i=a.label,l=a.value,c=a.options;function u(e,n){e.forEach((function(e){var t=e[i];if(n||!(c in e)){var a=e[l];o.push({key:C(e,o.length),groupOption:n,data:e,label:t,value:a})}else{var s=t;void 0===s&&r&&(s=e.label),o.push({key:C(e,o.length),group:!0,data:e,label:s}),u(e[c],!0)}}))}return u(e,!1),o}(Ie,{fieldNames:ne,childrenAsData:Q})}),[Ie,ne,Q]),Me=function(e){var n=de(e);if(Ce(n),W&&(n.length!==Ze.length||n.some((function(e,n){var t;return(null===(t=Ze[n])||void 0===t?void 0:t.value)!==(null===e||void 0===e?void 0:e.value)})))){var t=U?n:n.map((function(e){return e.value})),r=n.map((function(e){return w(Ne(e.value))}));W(J?t:t[0],J?r:r[0])}},Re=a.useState(null),Te=(0,d.Z)(Re,2),Le=Te[0],je=Te[1],Ae=a.useState(0),He=(0,d.Z)(Ae,2),_e=He[0],ze=He[1],Ve=void 0!==L?L:"combobox"!==i,Fe=a.useCallback((function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.source,o=void 0===r?"keyboard":r;ze(n),v&&"combobox"===i&&null!==e&&"keyboard"===o&&je(String(e))}),[v,i]),Be=function(e,n){var t=function(){var n,t=Ne(e);return[U?{label:null===t||void 0===t?void 0:t[ne.label],value:e,key:null!==(n=t.key)&&void 0!==n?n:e}:e,w(t)]};if(n&&N){var r=t(),o=(0,d.Z)(r,2),a=o[0],i=o[1];N(a,i)}else if(!n&&S){var l=t(),c=(0,d.Z)(l,2),u=c[0],s=c[1];S(u,s)}},Ue=ye((function(e,n){var t,r=!J||n.selected;t=r?J?[].concat((0,u.Z)(Ze),[e]):[e]:Ze.filter((function(n){return n.value!==e})),Me(t),Be(e,r),"combobox"===i?je(""):G&&!Z||(ie(""),je(""))})),We=a.useMemo((function(){var e=!1!==A&&!1!==O;return(0,s.Z)((0,s.Z)({},le),{},{flattenOptions:De,onActiveValue:Fe,defaultActiveFirstOption:Ve,onSelect:Ue,menuItemSelectedIcon:j,rawValues:ke,fieldNames:ne,virtual:e,listHeight:_,listItemHeight:V,childrenAsData:Q})}),[le,De,Fe,Ve,Ue,j,ke,ne,A,O,_,V,Q]);return a.createElement($.Provider,{value:We},a.createElement(X,(0,o.Z)({},Y,{id:q,prefixCls:c,ref:n,omitDomProps:xe,mode:i,displayValues:Se,onDisplayValuesChange:function(e,n){Me(e),"remove"!==n.type&&"clear"!==n.type||n.values.forEach((function(e){Be(e.value,!1)}))},searchValue:ae,onSearch:function(e,n){if(ie(e),je(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===i&&Me(e),null===b||void 0===b||b(e));else{var t=(e||"").trim();if(t){var r=Array.from(new Set([].concat((0,u.Z)(ke),[t])));Me(r),Be(t,!0),ie("")}}},onSearchSplit:function(e){var n=e;"tags"!==i&&(n=e.map((function(e){var n=ue.get(e);return null===n||void 0===n?void 0:n.value})).filter((function(e){return void 0!==e})));var t=Array.from(new Set([].concat((0,u.Z)(ke),(0,u.Z)(n))));Me(t),t.forEach((function(e){Be(e,!0)}))},dropdownMatchSelectWidth:O,OptionList:te,emptyOptions:!De.length,activeValue:Le,activeDescendantId:"".concat(q,"_list_").concat(_e)})))}));var Ee=Ce;Ee.Option=oe,Ee.OptGroup=ie;var we=Ee,Ze=t(59844),Ne=t(80882),Se=t(50888),ke=t(63606),Oe=t(97937),Pe=t(4340),Ke=t(68795);var Ie=t(97647),De=t(33603),Me=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=t}(c,h||1,o,a);return l.createElement(L,(0,i.Z)({},e,{colSpan:m,rowSpan:h,hovering:y,ref:n,onHover:r}))}));j.displayName="WrappedCell";var A=j,H=l.createContext(null);function _(e,n,t,r,o){var a,i,l=t[e]||{},c=t[n]||{};"left"===l.fixed?a=r.left[e]:"right"===c.fixed&&(i=r.right[n]);var u=!1,s=!1,d=!1,f=!1,p=t[n+1],v=t[e-1];if("rtl"===o){if(void 0!==a)f=!(v&&"left"===v.fixed);else if(void 0!==i){d=!(p&&"right"===p.fixed)}}else if(void 0!==a){u=!(p&&"left"===p.fixed)}else if(void 0!==i){s=!(v&&"right"===v.fixed)}return{fixLeft:a,fixRight:i,lastFixLeft:u,firstFixRight:s,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}function z(e){var n,t=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,c=e.cellComponent,u=e.onHeaderRow,s=e.index,d=l.useContext(H),f=d.prefixCls,p=d.direction;u&&(n=u(t.map((function(e){return e.column})),s));var v=k(t.map((function(e){return e.column})));return l.createElement(a,n,t.map((function(e,n){var t,a=e.column,u=_(e.colStart,e.colEnd,o,r,p);return a&&a.onHeaderCell&&(t=e.column.onHeaderCell(a)),l.createElement(A,(0,i.Z)({},e,{ellipsis:a.ellipsis,align:a.align,component:c,prefixCls:f,key:v[n]},u,{additionalProps:t,rowType:"header"}))})))}z.displayName="HeaderRow";var V=z;var F=function(e){var n=e.stickyOffsets,t=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=l.useContext(H),i=a.prefixCls,c=a.getComponent,u=l.useMemo((function(){return function(e){var n=[];!function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n[o]=n[o]||[];var a=r;return t.filter(Boolean).map((function(t){var r={key:t.key,className:t.className||"",children:t.title,column:t,colStart:a},i=1,l=t.children;return l&&l.length>0&&(i=e(l,a,o+1).reduce((function(e,n){return e+n}),0),r.hasSubColumns=!0),"colSpan"in t&&(i=t.colSpan),"rowSpan"in t&&(r.rowSpan=t.rowSpan),r.colSpan=i,r.colEnd=r.colStart+i-1,n[o].push(r),a+=i,i}))}(e,0);for(var t=n.length,r=function(e){n[e].forEach((function(n){"rowSpan"in n||n.hasSubColumns||(n.rowSpan=t-e)}))},o=0;o1?o-1:0),i=1;i0?[].concat((0,f.Z)(e),(0,f.Z)(se(o).map((function(e){return(0,d.Z)({fixed:r},e)})))):[].concat((0,f.Z)(e),[(0,d.Z)((0,d.Z)({},n),{},{fixed:r})])}),[])}var de=function(e,n){var t=e.prefixCls,r=e.columns,a=e.children,i=e.expandable,c=e.expandedKeys,u=e.getRowKey,s=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,v=e.expandIconColumnIndex,m=e.direction,h=e.expandRowByClick,y=e.columnWidth,g=e.fixed,b=l.useMemo((function(){return r||ue(a)}),[r,a]),x=l.useMemo((function(){if(i){var e,n=b.slice();if(!n.includes(ie)){var r=v||0;r>=0&&n.splice(r,0,ie)}0;var a=n.indexOf(ie);n=n.filter((function(e,n){return e!==ie||n===a}));var d,m=b[a];d="left"!==g&&!g||v?"right"!==g&&!g||v!==b.length?m?m.fixed:null:"right":"left";var x=(e={},(0,o.Z)(e,ae,{className:"".concat(t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,o.Z)(e,"title",""),(0,o.Z)(e,"fixed",d),(0,o.Z)(e,"className","".concat(t,"-row-expand-icon-cell")),(0,o.Z)(e,"width",y),(0,o.Z)(e,"render",(function(e,n,r){var o=u(n,r),a=c.has(o),i=!p||p(n),d=f({prefixCls:t,expanded:a,expandable:i,record:n,onExpand:s});return h?l.createElement("span",{onClick:function(e){return e.stopPropagation()}},d):d})),e);return n.map((function(e){return e===ie?x:e}))}return b.filter((function(e){return e!==ie}))}),[i,b,u,c,f,m]),C=l.useMemo((function(){var e=x;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,x,m]),E=l.useMemo((function(){return"rtl"===m?function(e){return e.map((function(e){var n=e.fixed,t=(0,w.Z)(e,ce),r=n;return"left"===n?r="right":"right"===n&&(r="left"),(0,d.Z)({fixed:r},t)}))}(se(C)):se(C)}),[C,m]);return[C,E]};function fe(e){var n=(0,l.useRef)(e),t=(0,l.useState)({}),r=(0,a.Z)(t,2)[1],o=(0,l.useRef)(null),i=(0,l.useRef)([]);return(0,l.useEffect)((function(){return function(){o.current=null}}),[]),[n.current,function(e){i.current.push(e);var t=Promise.resolve();o.current=t,t.then((function(){if(o.current===t){var e=i.current,a=n.current;i.current=[],e.forEach((function(e){n.current=e(n.current)})),o.current=null,a!==n.current&&r({})}}))}]}var pe=function(e,n,t){return(0,l.useMemo)((function(){for(var r=[],o=[],a=0,i=0,l=0;l=0;a-=1){var c=n[a],u=t&&t[a],s=u&&u[ae];if(c||s||o){var d=s||{},f=(d.columnType,(0,w.Z)(d,ve));r.unshift(l.createElement("col",(0,i.Z)({key:a,style:{width:c}},f))),o=!0}}return l.createElement("colgroup",null,r)};var he=function(e){var n=e.className,t=e.children;return l.createElement("div",{className:n},t)};var ye=["children"];var ge=l.createContext({});function be(e){return e.children}be.Row=function(e){var n=e.children,t=(0,w.Z)(e,ye);return l.createElement("tr",t,n)},be.Cell=function(e){var n=e.className,t=e.index,r=e.children,o=e.colSpan,a=void 0===o?1:o,c=e.rowSpan,u=e.align,s=l.useContext(H),d=s.prefixCls,f=s.direction,p=l.useContext(ge),v=p.scrollColumnIndex,m=p.stickyOffsets,h=t+a-1+1===v?a+1:a,y=_(t,t+h-1,p.flattenColumns,m,f);return l.createElement(A,(0,i.Z)({className:n,index:t,component:"td",prefixCls:d,record:null,dataIndex:null,align:u,colSpan:h,rowSpan:c,render:function(){return r}},y))};var xe=be;var Ce=function(e){var n=e.children,t=e.stickyOffsets,r=e.flattenColumns,o=l.useContext(H).prefixCls,a=r.length-1,i=r[a],c=l.useMemo((function(){return{stickyOffsets:t,flattenColumns:r,scrollColumnIndex:(null===i||void 0===i?void 0:i.scrollbar)?a:null}}),[i,r,a,t]);return l.createElement(ge.Provider,{value:c},l.createElement("tfoot",{className:"".concat(o,"-summary")},n))},Ee=xe;function we(e){var n,t=e.prefixCls,r=e.record,a=e.onExpand,i=e.expanded,c=e.expandable,s="".concat(t,"-row-expand-icon");if(!c)return l.createElement("span",{className:u()(s,"".concat(t,"-row-spaced"))});return l.createElement("span",{className:u()(s,(n={},(0,o.Z)(n,"".concat(t,"-row-expanded"),i),(0,o.Z)(n,"".concat(t,"-row-collapsed"),!i),n)),onClick:function(e){a(r,e),e.stopPropagation()}})}var Ze=t(64019);function Ne(e){var n=e.getBoundingClientRect(),t=document.documentElement;return{left:n.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||document.body.clientTop||0)}}var Se=function(e,n){var t,r,i=e.scrollBodyRef,c=e.onScroll,s=e.offsetScroll,f=e.container,p=l.useContext(H).prefixCls,v=(null===(t=i.current)||void 0===t?void 0:t.scrollWidth)||0,m=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,h=v&&m*(m/v),y=l.useRef(),g=fe({scrollLeft:0,isHiddenScrollBar:!1}),b=(0,a.Z)(g,2),C=b[0],E=b[1],w=l.useRef({delta:0,x:0}),Z=l.useState(!1),N=(0,a.Z)(Z,2),S=N[0],k=N[1],O=function(){k(!1)},P=function(e){var n,t=(e||(null===(n=window)||void 0===n?void 0:n.event)).buttons;if(S&&0!==t){var r=w.current.x+e.pageX-w.current.x-w.current.delta;r<=0&&(r=0),r+h>=m&&(r=m-h),c({scrollLeft:r/m*(v+2)}),w.current.x=e.pageX}else S&&k(!1)},K=function(){if(i.current){var e=Ne(i.current).top,n=e+i.current.offsetHeight,t=f===window?document.documentElement.scrollTop+window.innerHeight:Ne(f).top+f.clientHeight;n-(0,x.Z)()<=t||e>=t-s?E((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!0})})):E((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!1})}))}},I=function(e){E((function(n){return(0,d.Z)((0,d.Z)({},n),{},{scrollLeft:e/v*m||0})}))};return l.useImperativeHandle(n,(function(){return{setScrollLeft:I}})),l.useEffect((function(){var e=(0,Ze.Z)(document.body,"mouseup",O,!1),n=(0,Ze.Z)(document.body,"mousemove",P,!1);return K(),function(){e.remove(),n.remove()}}),[h,S]),l.useEffect((function(){var e=(0,Ze.Z)(f,"scroll",K,!1),n=(0,Ze.Z)(window,"resize",K,!1);return function(){e.remove(),n.remove()}}),[f]),l.useEffect((function(){C.isHiddenScrollBar||E((function(e){var n=i.current;return n?(0,d.Z)((0,d.Z)({},e),{},{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):e}))}),[C.isHiddenScrollBar]),v<=m||!h||C.isHiddenScrollBar?null:l.createElement("div",{style:{height:(0,x.Z)(),width:m,bottom:s},className:"".concat(p,"-sticky-scroll")},l.createElement("div",{onMouseDown:function(e){e.persist(),w.current.delta=e.pageX-C.scrollLeft,w.current.x=0,k(!0),e.preventDefault()},ref:y,className:u()("".concat(p,"-sticky-scroll-bar"),(0,o.Z)({},"".concat(p,"-sticky-scroll-bar-active"),S)),style:{width:"".concat(h,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))},ke=l.forwardRef(Se),Oe=(0,t(98924).Z)()?window:null;var Pe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var Ke=l.forwardRef((function(e,n){var t=e.className,r=e.noData,a=e.columns,i=e.flattenColumns,c=e.colWidths,s=e.columCount,p=e.stickyOffsets,v=e.direction,m=e.fixHeader,h=e.stickyTopOffset,y=e.stickyBottomOffset,g=e.stickyClassName,b=e.onScroll,x=e.maxContentScroll,C=e.children,E=(0,w.Z)(e,Pe),N=l.useContext(H),S=N.prefixCls,k=N.scrollbarSize,O=N.isSticky,P=O&&!m?0:k,K=l.useRef(null),I=l.useCallback((function(e){(0,Z.mH)(n,e),(0,Z.mH)(K,e)}),[]);l.useEffect((function(){var e;function n(e){var n=e.currentTarget,t=e.deltaX;t&&(b({currentTarget:n,scrollLeft:n.scrollLeft+t}),e.preventDefault())}return null===(e=K.current)||void 0===e||e.addEventListener("wheel",n),function(){var e;null===(e=K.current)||void 0===e||e.removeEventListener("wheel",n)}}),[]);var D=l.useMemo((function(){return i.every((function(e){return e.width>=0}))}),[i]),M=i[i.length-1],R={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(S,"-cell-scrollbar")}}},T=(0,l.useMemo)((function(){return P?[].concat((0,f.Z)(a),[R]):a}),[P,a]),L=(0,l.useMemo)((function(){return P?[].concat((0,f.Z)(i),[R]):i}),[P,i]),j=(0,l.useMemo)((function(){var e=p.right,n=p.left;return(0,d.Z)((0,d.Z)({},p),{},{left:"rtl"===v?[].concat((0,f.Z)(n.map((function(e){return e+P}))),[0]):n,right:"rtl"===v?e:[].concat((0,f.Z)(e.map((function(e){return e+P}))),[0]),isSticky:O})}),[P,p,O]),A=function(e,n){return(0,l.useMemo)((function(){for(var t=[],r=0;r0)):(an(a>0),sn(a=0||n.relatedTarget.className.indexOf("".concat(a,"-item"))>=0)||o(e.getValidValue()))},e.go=function(n){""!==e.state.goInputText&&(n.keyCode!==$e&&"click"!==n.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,He.Z)(t,[{key:"getValidValue",value:function(){var e=this.state.goInputText;return!e||isNaN(e)?void 0:Number(e)}},{key:"getPageSizeOptions",value:function(){var e=this.props,n=e.pageSize,t=e.pageSizeOptions;return t.some((function(e){return e.toString()===n.toString()}))?t:t.concat([n.toString()]).sort((function(e,n){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(n))?0:Number(n))}))}},{key:"render",value:function(){var e=this,n=this.props,t=n.pageSize,r=n.locale,o=n.rootPrefixCls,a=n.changeSize,i=n.quickGo,c=n.goButton,u=n.selectComponentClass,s=n.buildOptionText,d=n.selectPrefixCls,f=n.disabled,p=this.state.goInputText,v="".concat(o,"-options"),m=u,h=null,y=null,g=null;if(!a&&!i)return null;var b=this.getPageSizeOptions();if(a&&m){var x=b.map((function(n,t){return l.createElement(m.Option,{key:t,value:n.toString()},(s||e.buildOptionText)(n))}));h=l.createElement(m,{disabled:f,prefixCls:d,showSearch:!1,className:"".concat(v,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(t||b[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},x)}return i&&(c&&(g="boolean"===typeof c?l.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:f,className:"".concat(v,"-quick-jumper-button")},r.jump_to_confirm):l.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),y=l.createElement("div",{className:"".concat(v,"-quick-jumper")},r.jump_to,l.createElement("input",{disabled:f,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,g)),l.createElement("li",{className:"".concat(v)},h,y)}}]),t}(l.Component);nn.defaultProps={pageSizeOptions:["10","20","50","100"]};var tn=nn;function rn(){}function on(e){var n=Number(e);return"number"===typeof n&&!isNaN(n)&&isFinite(n)&&Math.floor(n)===n}function an(e,n,t){var r="undefined"===typeof e?n.pageSize:e;return Math.floor((t.total-1)/r)+1}var ln=function(e){(0,_e.Z)(t,e);var n=(0,ze.Z)(t);function t(e){var r;(0,Ae.Z)(this,t),(r=n.call(this,e)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(an(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,n){var t=r.props.prefixCls,o=e||l.createElement("button",{type:"button","aria-label":n,className:"".concat(t,"-item-link")});return"function"===typeof e&&(o=l.createElement(e,(0,d.Z)({},r.props))),o},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){var n=r.props.total;return on(e)&&e!==r.state.current&&on(n)&&n>0},r.shouldDisplayQuickJumper=function(){var e=r.props,n=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&n},r.handleKeyDown=function(e){e.keyCode!==Qe&&e.keyCode!==en||e.preventDefault()},r.handleKeyUp=function(e){var n=r.getValidValue(e);n!==r.state.currentInputValue&&r.setState({currentInputValue:n}),e.keyCode===$e?r.handleChange(n):e.keyCode===Qe?r.handleChange(n-1):e.keyCode===en&&r.handleChange(n+1)},r.handleBlur=function(e){var n=r.getValidValue(e);r.handleChange(n)},r.changePageSize=function(e){var n=r.state.current,t=an(e,r.state,r.props);n=n>t?t:n,0===t&&(n=r.state.current),"number"===typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:n,currentInputValue:n})),r.props.onShowSizeChange(n,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(n,e)},r.handleChange=function(e){var n=r.props.disabled,t=e;if(r.isValid(t)&&!n){var o=an(void 0,r.state,r.props);t>o?t=o:t<1&&(t=1),"current"in r.props||r.setState({current:t,currentInputValue:t});var a=r.state.pageSize;return r.props.onChange(t,a),t}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?t-2:0),o=2;o=t?t:Number(n)}},{key:"getShowSizeChanger",value:function(){var e=this.props,n=e.showSizeChanger,t=e.total,r=e.totalBoundaryShowSizeChanger;return"undefined"!==typeof n?n:t>r}},{key:"renderPrev",value:function(e){var n=this.props,t=n.prevIcon,r=(0,n.itemRender)(e,"prev",this.getItemIcon(t,"prev page")),o=!this.hasPrev();return(0,l.isValidElement)(r)?(0,l.cloneElement)(r,{disabled:o}):r}},{key:"renderNext",value:function(e){var n=this.props,t=n.nextIcon,r=(0,n.itemRender)(e,"next",this.getItemIcon(t,"next page")),o=!this.hasNext();return(0,l.isValidElement)(r)?(0,l.cloneElement)(r,{disabled:o}):r}},{key:"render",value:function(){var e=this,n=this.props,t=n.prefixCls,r=n.className,a=n.style,c=n.disabled,s=n.hideOnSinglePage,d=n.total,f=n.locale,p=n.showQuickJumper,v=n.showLessItems,m=n.showTitle,h=n.showTotal,y=n.simple,g=n.itemRender,b=n.showPrevNextJumpers,x=n.jumpPrevIcon,C=n.jumpNextIcon,E=n.selectComponentClass,w=n.selectPrefixCls,Z=n.pageSizeOptions,N=this.state,S=N.current,k=N.pageSize,O=N.currentInputValue;if(!0===s&&d<=k)return null;var P=an(void 0,this.state,this.props),K=[],I=null,D=null,M=null,R=null,T=null,L=p&&p.goButton,j=v?1:2,A=S-1>0?S-1:0,H=S+1=2*j&&3!==S&&(K[0]=(0,l.cloneElement)(K[0],{className:"".concat(t,"-item-after-jump-prev")}),K.unshift(I)),P-S>=2*j&&S!==P-2&&(K[K.length-1]=(0,l.cloneElement)(K[K.length-1],{className:"".concat(t,"-item-before-jump-next")}),K.push(D)),1!==W&&K.unshift(M),G!==P&&K.push(R)}var q=null;h&&(q=l.createElement("li",{className:"".concat(t,"-total-text")},h(d,[0===d?0:(S-1)*k+1,S*k>d?d:S*k])));var J=!this.hasPrev()||!P,$=!this.hasNext()||!P;return l.createElement("ul",(0,i.Z)({className:u()(t,r,(0,o.Z)({},"".concat(t,"-disabled"),c)),style:a,unselectable:"unselectable",ref:this.savePaginationNode},_),q,l.createElement("li",{title:m?f.prev_page:null,onClick:this.prev,tabIndex:J?null:0,onKeyPress:this.runIfEnterPrev,className:u()("".concat(t,"-prev"),(0,o.Z)({},"".concat(t,"-disabled"),J)),"aria-disabled":J},this.renderPrev(A)),K,l.createElement("li",{title:m?f.next_page:null,onClick:this.next,tabIndex:$?null:0,onKeyPress:this.runIfEnterNext,className:u()("".concat(t,"-next"),(0,o.Z)({},"".concat(t,"-disabled"),$)),"aria-disabled":$},this.renderNext(H)),l.createElement(tn,{disabled:c,locale:f,rootPrefixCls:t,selectComponentClass:E,selectPrefixCls:w,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:S,pageSize:k,pageSizeOptions:Z,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:L}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t={};if("current"in e&&(t.current=e.current,e.current!==n.current&&(t.currentInputValue=t.current)),"pageSize"in e&&e.pageSize!==n.pageSize){var r=n.current,o=an(e.pageSize,n,e);r=r>o?o:r,"current"in e||(t.current=r,t.currentInputValue=r),t.pageSize=e.pageSize}return t}}]),t}(l.Component);ln.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:rn,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:rn,locale:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"},style:{},itemRender:function(e,n,t){return t},totalBoundaryShowSizeChanger:50};var cn=ln,un=t(62906),sn=t(6171),dn=t(18073),fn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},pn=t(42135),vn=function(e,n){return l.createElement(pn.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:fn}))};vn.displayName="DoubleLeftOutlined";var mn=l.forwardRef(vn),hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},yn=function(e,n){return l.createElement(pn.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:hn}))};yn.displayName="DoubleRightOutlined";var gn=l.forwardRef(yn),bn=t(38939),xn=function(e){return l.createElement(bn.Z,(0,i.Z)({size:"small"},e))};xn.Option=bn.Z.Option;var Cn=xn,En=t(23715),wn=t(25378),Zn=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0?u:e}),h=Math.ceil((u||e)/m.pageSize);m.current>h&&(m.current=h||1);var y=function(e,n){v({current:null!==e&&void 0!==e?e:1,pageSize:n||m.pageSize})};return!1===n?[{},function(){}]:[(0,i.Z)((0,i.Z)({},m),{onChange:function(e,r){var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),y(e,r),t(e,r||(null===m||void 0===m?void 0:m.pageSize))}}),y]}var On=t(84506),Pn=t(80882),Kn=t(97326),In=l.createContext(null),Dn=function(e){for(var n=e.prefixCls,t=e.level,r=e.isStart,a=e.isEnd,i="".concat(n,"-indent-unit"),c=[],s=0;s=0&&t.splice(r,1),t}function zn(e,n){var t=(e||[]).slice();return-1===t.indexOf(n)&&t.push(n),t}function Vn(e){return e.split("-")}function Fn(e,n){return"".concat(e,"-").concat(n)}function Bn(e,n){var t=[];return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n.forEach((function(n){var r=n.key,o=n.children;t.push(r),e(o)}))}(n[e].children),t}function Un(e){if(e.parent){var n=Vn(e.pos);return Number(n[n.length-1])===e.parent.children.length-1}return!1}function Wn(e,n,t,r,o,a,i,l,c,u){var s,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),v=p.top,m=p.height,h=(("rtl"===u?-1:1)*(((null===o||void 0===o?void 0:o.x)||0)-d)-12)/r,y=l[t.props.eventKey];if(f-1.5?a({dragNode:S,dropNode:k,dropPosition:1})?w=1:O=!1:a({dragNode:S,dropNode:k,dropPosition:0})?w=0:a({dragNode:S,dropNode:k,dropPosition:1})?w=1:O=!1:a({dragNode:S,dropNode:k,dropPosition:1})?w=1:O=!1,{dropPosition:w,dropLevelOffset:Z,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:E,dropContainerKey:0===w?null:(null===(s=y.parent)||void 0===s?void 0:s.key)||null,dropAllowed:O}}function Gn(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function Yn(e){if(!e)return null;var n;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,r.Z)(e))return(0,g.ZP)(!1,"`checkedKeys` is not an array or an object"),null;n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return n}function Xn(e,n){var t=new Set;function r(e){if(!t.has(e)){var o=n[e];if(o){t.add(e);var a=o.parent;o.node.disabled||a&&r(a.key)}}}return(e||[]).forEach((function(e){r(e)})),(0,f.Z)(t)}var qn=["children"];function Jn(e,n){return null!==e&&void 0!==e?e:n}function $n(e){var n=e||{},t=n.title||"title";return{title:t,_title:n._title||[t],key:n.key||"key",children:n.children||"children"}}function Qn(e){return function e(n){return(0,re.Z)(n).map((function(n){if(!function(e){return e&&e.type&&e.type.isTreeNode}(n))return(0,g.ZP)(!n,"Tree/TreeNode can only accept TreeNode as children."),null;var t=n.key,r=n.props,o=r.children,a=(0,w.Z)(r,qn),i=(0,d.Z)({key:t},a),l=e(o);return l.length&&(i.children=l),i})).filter((function(e){return e}))}(e)}function et(e,n,t){var r=$n(t),o=r._title,a=r.key,i=r.children,l=new Set(!0===n?[]:n),c=[];return function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t.map((function(u,p){for(var v,m=Fn(r?r.pos:"0",p),h=Jn(u[a],m),y=0;y1&&void 0!==arguments[1]?arguments[1]:{},t=n.initWrapper,r=n.processEntity,o=n.onProcessFinished,a=n.externalGetKey,i=n.childrenPropName,l=n.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,s={},d={},f={posEntities:s,keyEntities:d};return t&&(f=t(f)||f),nt(e,(function(e){var n=e.node,t=e.index,o=e.pos,a=e.key,i=e.parentPos,l=e.level,c={node:n,nodes:e.nodes,index:t,key:a,pos:o,level:l},u=Jn(a,o);s[o]=c,d[u]=c,c.parent=s[i],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,f)}),{externalGetKey:u,childrenPropName:i,fieldNames:l}),o&&o(f),f}function rt(e,n){var t=n.expandedKeys,r=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,i=n.checkedKeys,l=n.halfCheckedKeys,c=n.dragOverNodeKey,u=n.dropPosition,s=n.keyEntities[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(s?s.pos:""),dragOver:c===e&&0===u,dragOverGapTop:c===e&&-1===u,dragOverGapBottom:c===e&&1===u}}function ot(e){var n=e.data,t=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,s=e.dragOverGapBottom,f=e.pos,p=e.active,v=e.eventKey,m=(0,d.Z)((0,d.Z)({},n),{},{expanded:t,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:s,pos:f,active:p,key:v});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,g.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function at(e,n){var t=new Set;return e.forEach((function(e){n.has(e)||t.add(e)})),t}function it(e){var n=e||{},t=n.disabled,r=n.disableCheckbox,o=n.checkable;return!(!t&&!r)||!1===o}function lt(e,n,t,r){var o,a=[];o=r||it;var i,l=new Set(e.filter((function(e){var n=!!t[e];return n||a.push(e),n}))),c=new Map,u=0;return Object.keys(t).forEach((function(e){var n=t[e],r=n.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(n),u=Math.max(u,r)})),(0,g.ZP)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),i=!0===n?function(e,n,t,r){for(var o=new Set(e),a=new Set,i=0;i<=t;i+=1)(n.get(i)||new Set).forEach((function(e){var n=e.key,t=e.node,a=e.children,i=void 0===a?[]:a;o.has(n)&&!r(t)&&i.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,c=t;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!r(t)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(n.key);else{var i=!0,c=!1;(n.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var n=e.key,t=o.has(n);i&&!t&&(i=!1),c||!t&&!a.has(n)||(c=!0)})),i&&o.add(n.key),c&&a.add(n.key),l.add(n.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(at(a,o))}}(l,c,u,o):function(e,n,t,r,o){for(var a=new Set(e),i=new Set(n),l=0;l<=r;l+=1)(t.get(l)||new Set).forEach((function(e){var n=e.key,t=e.node,r=e.children,l=void 0===r?[]:r;a.has(n)||i.has(n)||o(t)||l.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}));i=new Set;for(var c=new Set,u=r;u>=0;u-=1)(t.get(u)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!o(t)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(n.key);else{var r=!0,l=!1;(n.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var n=e.key,t=a.has(n);r&&!t&&(r=!1),l||!t&&!i.has(n)||(l=!0)})),r||a.delete(n.key),l&&i.add(n.key),c.add(n.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(at(i,a))}}(l,n.halfCheckedKeys,c,u,o),i}var ct=t(21770),ut=t(32808),st=t(56180),dt=t(89705),ft=t(71577),pt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0?"".concat(n,"-slide-down"):"".concat(n,"-slide-up")}(),trigger:C,overlay:function(){return function(n){var t,r=e.overlay;t="function"===typeof r?r():r;var o=(t=l.Children.only("string"===typeof t?l.createElement("span",null,t):t)).props;(0,yt.Z)(!o.mode||"vertical"===o.mode,"Dropdown",'mode="'.concat(o.mode,"\" is not supported for Dropdown's Menu."));var a=o.selectable,i=void 0!==a&&a,c=o.expandIcon,u="undefined"!==typeof c&&l.isValidElement(c)?c:l.createElement("span",{className:"".concat(n,"-menu-submenu-arrow")},l.createElement(dn.Z,{className:"".concat(n,"-menu-submenu-arrow-icon")}));return"string"===typeof t.type?t:(0,We.Tm)(t,{mode:"vertical",selectable:i,expandIcon:u})}(y)},placement:function(){var n=e.placement;return void 0!==n?n:"rtl"===c?"bottomRight":"bottomLeft"}()}),b)});gt.Button=ht,gt.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var bt=gt,xt=bt,Ct=t(68157),Et=t(50132),wt=l.createContext(null),Zt=wt.Provider,Nt=wt,St=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0){var O="button"===m?"".concat(N,"-button"):N;k=v.map((function(e){return"string"===typeof e||"number"===typeof e?l.createElement(Pt,{key:e.toString(),prefixCls:O,disabled:g,value:e,checked:p===e},e):l.createElement(Pt,{key:"radio-group-value-options-".concat(e.value),prefixCls:O,disabled:e.disabled||g,value:e.value,checked:p===e.value,style:e.style},e.label)}))}var P=x||s,K=u()(S,"".concat(S,"-").concat(y),(t={},(0,o.Z)(t,"".concat(S,"-").concat(P),P),(0,o.Z)(t,"".concat(S,"-rtl"),"rtl"===c),t),f);return l.createElement("div",(0,i.Z)({},(0,It.Z)(e),{className:K,style:C,onMouseEnter:w,onMouseLeave:Z,id:E,ref:n}),k)}())})),Mt=l.memo(Dt),Rt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=e.length,r=n.length;if(1!==Math.abs(t-r))return{add:!1,key:null};function o(e,n){var t=new Map;e.forEach((function(e){t.set(e,!0)}));var r=n.filter((function(e){return!t.has(e)}));return 1===r.length?r[0]:null}return t ").concat(n);return n}(Z)),l.createElement("div",null,l.createElement("input",{style:Or,disabled:!1===E||v,tabIndex:!1!==E?S:null,onKeyDown:k,onFocus:O,onBlur:P,value:"",onChange:Pr,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},l.createElement("div",{className:"".concat(t,"-indent")},l.createElement("div",{ref:T,className:"".concat(t,"-indent-unit")}))),l.createElement(Cr.Z,(0,i.Z)({},M,{data:re,itemKey:Tr,height:b,fullHeight:!1,virtual:C,itemHeight:x,prefixCls:"".concat(t,"-list"),ref:R,onVisibleChange:function(e,n){var t=new Set(e);n.filter((function(e){return!t.has(e)})).some((function(e){return Tr(e)===Kr}))&&te()}}),(function(e){var n=e.pos,t=(0,i.Z)({},e.data),r=e.title,o=e.key,a=e.isStart,c=e.isEnd,u=Jn(o,n);delete t.key,delete t.children;var s=rt(u,oe);return l.createElement(Nr,(0,i.Z)({},t,s,{title:r,active:!!Z&&o===Z.key,pos:n,data:e.data,isStart:a,isEnd:c,motion:g,motionNodes:o===Kr?q:null,motionType:ee,onMotionStart:I,onMotionEnd:te,treeNodeRequiredProps:oe,onMouseMove:function(){K(null)}}))})))},jr=l.forwardRef(Lr);jr.displayName="NodeList";var Ar=jr;var Hr=function(e){(0,_e.Z)(t,e);var n=(0,ze.Z)(t);function t(){var e;(0,Ae.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],a=e.state,i=a.dragChildrenKeys,l=a.dropPosition,c=a.dropTargetKey,u=a.dropTargetPos,s=a.dropAllowed;if(s){var f=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var p=(0,d.Z)((0,d.Z)({},rt(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.data.key)===c,data:e.state.keyEntities[c].node}),v=-1!==i.indexOf(c);(0,g.ZP)(!v,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var m=Vn(u),h={event:n,node:ot(p),dragNode:e.dragNode?ot(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(i),dropToGap:0!==l,dropPosition:l+Number(m[m.length-1])};o||null===f||void 0===f||f(h),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.onNodeClick=function(n,t){var r=e.props.onClick;null===r||void 0===r||r(n,t)},e.onNodeDoubleClick=function(n,t){var r=e.props.onDoubleClick;null===r||void 0===r||r(n,t)},e.onNodeSelect=function(n,t){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,i=o.fieldNames,l=e.props,c=l.onSelect,u=l.multiple,s=t.selected,d=t[i.key],f=!s,p=(r=f?u?zn(r,d):[d]:_n(r,d)).map((function(e){var n=a[e];return n?n.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null===c||void 0===c||c(r,{event:"select",selected:f,node:t,selectedNodes:p,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,t,r){var o,a=e.state,i=a.keyEntities,l=a.checkedKeys,c=a.halfCheckedKeys,u=e.props,s=u.checkStrictly,d=u.onCheck,p=t.key,v={event:"check",node:t,checked:r,nativeEvent:n.nativeEvent};if(s){var m=r?zn(l,p):_n(l,p);o={checked:m,halfChecked:_n(c,p)},v.checkedNodes=m.map((function(e){return i[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var h=lt([].concat((0,f.Z)(l),[p]),!0,i),y=h.checkedKeys,g=h.halfCheckedKeys;if(!r){var b=new Set(y);b.delete(p);var x=lt(Array.from(b),{checked:!1,halfCheckedKeys:g},i);y=x.checkedKeys,g=x.halfCheckedKeys}o=y,v.checkedNodes=[],v.checkedNodesPositions=[],v.halfCheckedKeys=g,y.forEach((function(e){var n=i[e];if(n){var t=n.node,r=n.pos;v.checkedNodes.push(t),v.checkedNodesPositions.push({node:t,pos:r})}})),e.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:g})}null===d||void 0===d||d(o,v)},e.onNodeLoad=function(n){var t=n.key,r=new Promise((function(r,o){e.setState((function(a){var i=a.loadedKeys,l=void 0===i?[]:i,c=a.loadingKeys,u=void 0===c?[]:c,s=e.props,d=s.loadData,f=s.onLoad;return d&&-1===l.indexOf(t)&&-1===u.indexOf(t)?(d(n).then((function(){var o=zn(e.state.loadedKeys,t);null===f||void 0===f||f(o,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:_n(e.loadingKeys,t)}})),r()})).catch((function(n){if(e.setState((function(e){return{loadingKeys:_n(e.loadingKeys,t)}})),e.loadingRetryTimes[t]=(e.loadingRetryTimes[t]||0)+1,e.loadingRetryTimes[t]>=10){var a=e.state.loadedKeys;(0,g.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:zn(a,t)}),r()}o(n)})),{loadingKeys:zn(u,t)}):null}))}));return r.catch((function(){})),r},e.onNodeMouseEnter=function(n,t){var r=e.props.onMouseEnter;null===r||void 0===r||r({event:n,node:t})},e.onNodeMouseLeave=function(n,t){var r=e.props.onMouseLeave;null===r||void 0===r||r({event:n,node:t})},e.onNodeContextMenu=function(n,t){var r=e.props.onRightClick;r&&(n.preventDefault(),r({event:n,node:t}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var t=arguments.length,r=new Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,a=!0,i={};Object.keys(n).forEach((function(t){t in e.props?a=!1:(o=!0,i[t]=n[t])})),!o||t&&!a||e.setState((0,d.Z)((0,d.Z)({},i),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,He.Z)(t,[{key:"componentDidMount",value:function(){this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,n,t=this.state,a=t.focused,c=t.flattenNodes,s=t.keyEntities,d=t.draggingNodeKey,f=t.activeKey,p=t.dropLevelOffset,m=t.dropContainerKey,h=t.dropTargetKey,y=t.dropPosition,g=t.dragOverNodeKey,b=t.indent,x=this.props,C=x.prefixCls,E=x.className,w=x.style,Z=x.showLine,N=x.focusable,S=x.tabIndex,k=void 0===S?0:S,O=x.selectable,P=x.showIcon,K=x.icon,I=x.switcherIcon,D=x.draggable,M=x.checkable,R=x.checkStrictly,T=x.disabled,L=x.motion,j=x.loadData,A=x.filterTreeNode,H=x.height,_=x.itemHeight,z=x.virtual,V=x.titleRender,F=x.dropIndicatorRender,B=x.onContextMenu,U=x.onScroll,W=x.direction,G=(0,v.Z)(this.props,{aria:!0,data:!0});return D&&(n="object"===(0,r.Z)(D)?D:"function"===typeof D?{nodeDraggable:D}:{}),l.createElement(In.Provider,{value:{prefixCls:C,selectable:O,showIcon:P,icon:K,switcherIcon:I,draggable:n,draggingNodeKey:d,checkable:M,checkStrictly:R,disabled:T,keyEntities:s,dropLevelOffset:p,dropContainerKey:m,dropTargetKey:h,dropPosition:y,dragOverNodeKey:g,indent:b,direction:W,dropIndicatorRender:F,loadData:j,filterTreeNode:A,titleRender:V,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},l.createElement("div",{role:"tree",className:u()(C,E,(e={},(0,o.Z)(e,"".concat(C,"-show-line"),Z),(0,o.Z)(e,"".concat(C,"-focused"),a),(0,o.Z)(e,"".concat(C,"-active-focused"),null!==f),e))},l.createElement(Ar,(0,i.Z)({ref:this.listRef,prefixCls:C,style:w,data:c,disabled:T,selectable:O,checkable:!!M,motion:L,dragging:null!==d,height:H,itemHeight:_,virtual:z,focusable:N,focused:a,tabIndex:k,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B,onScroll:U},this.getTreeNodeRequiredProps(),G))))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t,r=n.prevProps,a={prevProps:e};function i(n){return!r&&n in e||r&&r[n]!==e[n]}var l=n.fieldNames;if(i("fieldNames")&&(l=$n(e.fieldNames),a.fieldNames=l),i("treeData")?t=e.treeData:i("children")&&((0,g.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),t=Qn(e.children)),t){a.treeData=t;var c=tt(t,{fieldNames:l});a.keyEntities=(0,d.Z)((0,o.Z)({},Kr,Dr),c.keyEntities)}var u,s=a.keyEntities||n.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Xn(e.expandedKeys,s):e.expandedKeys;else if(!r&&e.defaultExpandAll){var f=(0,d.Z)({},s);delete f[Kr],a.expandedKeys=Object.keys(f).map((function(e){return f[e].key}))}else!r&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Xn(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,t||a.expandedKeys){var p=et(t||n.treeData,a.expandedKeys||n.expandedKeys,l);a.flattenNodes=p}if((e.selectable&&(i("selectedKeys")?a.selectedKeys=Gn(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(a.selectedKeys=Gn(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?u=Yn(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=Yn(e.defaultCheckedKeys)||{}:t&&(u=Yn(e.checkedKeys)||{checkedKeys:n.checkedKeys,halfCheckedKeys:n.halfCheckedKeys}),u)){var v=u,m=v.checkedKeys,h=void 0===m?[]:m,y=v.halfCheckedKeys,b=void 0===y?[]:y;if(!e.checkStrictly){var x=lt(h,!0,s);h=x.checkedKeys,b=x.halfCheckedKeys}a.checkedKeys=h,a.halfCheckedKeys=b}return i("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),t}(l.Component);Hr.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,t=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-t*r;break;case 1:o.bottom=0,o.left=-t*r;break;case 0:o.bottom=0,o.left=r}return l.createElement("div",{style:o})},allowDrop:function(){return!0}},Hr.TreeNode=Hn;var _r=Hr,zr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Vr=function(e,n){return l.createElement(pn.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:zr}))};Vr.displayName="FileOutlined";var Fr=l.forwardRef(Vr),Br={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Ur=function(e,n){return l.createElement(pn.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Br}))};Ur.displayName="FolderOpenOutlined";var Wr=l.forwardRef(Ur),Gr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Yr=function(e,n){return l.createElement(pn.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Gr}))};Yr.displayName="FolderOutlined";var Xr,qr=l.forwardRef(Yr);function Jr(e,n){e.forEach((function(e){var t=e.key,r=e.children;!1!==n(t,e)&&Jr(r||[],n)}))}function $r(e){var n=e.treeData,t=e.expandedKeys,r=e.startKey,o=e.endKey,a=[],i=Xr.None;if(r&&r===o)return[r];if(!r||!o)return[];return Jr(n,(function(e){if(i===Xr.End)return!1;if(function(e){return e===r||e===o}(e)){if(a.push(e),i===Xr.None)i=Xr.Start;else if(i===Xr.Start)return i=Xr.End,!1}else i===Xr.Start&&a.push(e);return-1!==t.indexOf(e)})),a}function Qr(e,n){var t=(0,f.Z)(n),r=[];return Jr(e,(function(e,n){var o=t.indexOf(e);return-1!==o&&(r.push(n),t.splice(o,1)),!!t.length})),r}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(Xr||(Xr={}));var eo=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0}).closeDropdown&&O(!1),q(M())},clearFilters:$,filters:i.filters,visible:P});else if(i.filterDropdown)X=i.filterDropdown;else{var te=M()||[];X=l.createElement(l.Fragment,null,0===(i.filters||[]).length?l.createElement(Eo.Z,{image:Eo.Z.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===p?l.createElement(l.Fragment,null,l.createElement(So,{filterSearch:m,value:W,onChange:Y,tablePrefixCls:t,locale:g}),l.createElement("div",{className:"".concat(t,"-filter-dropdown-tree")},d?l.createElement(ut.Z,{className:"".concat(t,"-filter-dropdown-checkall"),onChange:ee},g.filterCheckall):null,l.createElement(Co,{checkable:!0,selectable:!1,blockNode:!0,multiple:d,checkStrictly:!d,className:"".concat(c,"-menu"),onCheck:L,checkedKeys:te,selectedKeys:te,showIcon:!1,treeData:ne({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:W.trim()?function(e){return Oo(W,e.title)}:void 0}))):l.createElement(l.Fragment,null,l.createElement(So,{filterSearch:m,value:W,onChange:Y,tablePrefixCls:t,locale:g}),l.createElement(Ct.Z,{multiple:d,prefixCls:"".concat(c,"-menu"),className:Q,onClick:F,onSelect:T,onDeselect:T,selectedKeys:te,getPopupContainer:x,openKeys:H,onOpenChange:V},Po({filters:i.filters||[],prefixCls:r,filteredKeys:M(),filterMultiple:d,searchValue:W}))),l.createElement("div",{className:"".concat(r,"-dropdown-btns")},l.createElement(ft.Z,{type:"link",size:"small",disabled:0===te.length,onClick:$},g.filterReset),l.createElement(ft.Z,{type:"primary",size:"small",onClick:J},g.filterConfirm)))}var re,oe=l.createElement(wo,{className:"".concat(r,"-dropdown")},X);re="function"===typeof i.filterIcon?i.filterIcon(k):i.filterIcon?i.filterIcon:l.createElement(hr,null);var ae=l.useContext(Be.E_).direction;return l.createElement("div",{className:"".concat(r,"-column")},l.createElement("span",{className:"".concat(t,"-column-title")},b),l.createElement(xt,{overlay:oe,trigger:["click"],visible:P,onVisibleChange:function(e){e&&void 0!==K&&R(K||[]),O(e),e||i.filterDropdown||J()},getPopupContainer:x,placement:"rtl"===ae?"bottomLeft":"bottomRight"},l.createElement("span",{role:"button",tabIndex:-1,className:u()("".concat(r,"-trigger"),{active:k}),onClick:function(e){e.stopPropagation()}},re)))};function Io(e,n,t){var r=[];return(e||[]).forEach((function(e,o){var a,i=er(o,t);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){var l=e.filteredValue;"filterDropdown"in e||(l=null!==(a=null===l||void 0===l?void 0:l.map(String))&&void 0!==a?a:l),r.push({column:e,key:Qt(e,i),filteredKeys:l,forceFiltered:e.filtered})}else r.push({column:e,key:Qt(e,i),filteredKeys:n&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat((0,f.Z)(r),(0,f.Z)(Io(e.children,n,i))))})),r}function Do(e,n,t,r,o,a,c,u){return t.map((function(t,s){var d=er(s,u),f=t.filterMultiple,p=void 0===f||f,v=t.filterMode,m=t.filterSearch,h=t;if(h.filters||h.filterDropdown){var y=Qt(h,d),g=r.find((function(e){var n=e.key;return y===n}));h=(0,i.Z)((0,i.Z)({},h),{title:function(r){return l.createElement(Ko,{tablePrefixCls:e,prefixCls:"".concat(e,"-filter"),dropdownPrefixCls:n,column:h,columnKey:y,filterState:g,filterMultiple:p,filterMode:v,filterSearch:m,triggerFilter:o,locale:c,getPopupContainer:a},nr(t.title,r))}})}return"children"in h&&(h=(0,i.Z)((0,i.Z)({},h),{children:Do(e,n,h.children,r,o,a,c,d)})),h}))}function Mo(e){var n=[];return(e||[]).forEach((function(e){var t=e.value,r=e.children;n.push(t),r&&(n=[].concat((0,f.Z)(n),(0,f.Z)(Mo(r))))})),n}function Ro(e){var n={};return e.forEach((function(e){var t=e.key,r=e.filteredKeys,o=e.column,a=o.filters;if(o.filterDropdown)n[t]=r||null;else if(Array.isArray(r)){var i=Mo(a);n[t]=i.filter((function(e){return r.includes(String(e))}))}else n[t]=null})),n}function To(e,n){return n.reduce((function(e,n){var t=n.column,r=t.onFilter,o=t.filters,a=n.filteredKeys;return r&&a&&a.length?e.filter((function(e){return a.some((function(n){var t=Mo(o),a=t.findIndex((function(e){return String(e)===String(n)})),i=-1!==a?t[a]:n;return r(i,e)}))})):e}),e)}var Lo=function(e){var n=e.prefixCls,t=e.dropdownPrefixCls,r=e.mergedColumns,o=e.onFilterChange,i=e.getPopupContainer,c=e.locale,u=l.useState(Io(r,!0)),s=(0,a.Z)(u,2),d=s[0],f=s[1],p=l.useMemo((function(){var e=Io(r,!1),n=e.every((function(e){return void 0===e.filteredKeys}));if(n)return d;var t=e.every((function(e){return void 0!==e.filteredKeys}));return(0,yt.Z)(n||t,"Table","`FilteredKeys` should all be controlled or not controlled."),e}),[r,d]),v=l.useCallback((function(){return Ro(p)}),[p]),m=function(e){var n=p.filter((function(n){return n.key!==e.key}));n.push(e),f(n),o(Ro(n),n)};return[function(e){return Do(n,t,e,p,m,i,c)},p,v]};function jo(e,n){return e.map((function(e){var t=(0,i.Z)({},e);return t.title=nr(e.title,n),"children"in t&&(t.children=jo(t.children,n)),t}))}function Ao(e){return[l.useCallback((function(n){return jo(n,e)}),[e])]}var Ho=function(e){return function(n){var t,r=n.prefixCls,a=n.onExpand,i=n.record,c=n.expanded,s=n.expandable,d="".concat(r,"-row-expand-icon");return l.createElement("button",{type:"button",onClick:function(e){a(i,e),e.stopPropagation()},className:u()(d,(t={},(0,o.Z)(t,"".concat(d,"-spaced"),!s),(0,o.Z)(t,"".concat(d,"-expanded"),s&&c),(0,o.Z)(t,"".concat(d,"-collapsed"),s&&!c),t)),"aria-label":c?e.collapse:e.expand})}};function _o(e){return null!==e&&void 0!==e&&e===e.window}function zo(e,n){var t;if("undefined"===typeof window)return 0;var r=n?"scrollTop":"scrollLeft",o=0;return _o(e)?o=e[n?"pageYOffset":"pageXOffset"]:e instanceof Document?o=e.documentElement[r]:e&&(o=e[r]),e&&!_o(e)&&"number"!==typeof o&&(o=null===(t=(e.ownerDocument||e).documentElement)||void 0===t?void 0:t[r]),o}function Vo(e,n,t,r){var o=t-n;return(e/=r/2)<1?o/2*e*e*e+n:o/2*((e-=2)*e*e+2)+n}function Fo(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.getContainer,r=void 0===t?function(){return window}:t,o=n.callback,a=n.duration,i=void 0===a?450:a,l=r(),c=zo(l,!0),u=Date.now(),s=function n(){var t=Date.now()-u,r=Vo(t>i?i:t,c,e,i);_o(l)?l.scrollTo(window.pageXOffset,r):l instanceof HTMLDocument||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=r:l.scrollTop=r,t1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var j=l.useMemo((function(){return C||ue(E)}),[C,E]),A=l.useMemo((function(){return j.some((function(e){return e.responsive}))}),[j]),H=(0,wn.Z)(A),_=l.useMemo((function(){var e=new Set(Object.keys(H).filter((function(e){return H[e]})));return j.filter((function(n){return!n.responsive||n.responsive.some((function(n){return e.has(n)}))}))}),[j,H]),z=(0,s.Z)(e,["className","style","columns"]),V=l.useContext(Kt.Z),F=l.useContext(Be.E_),B=F.locale,U=void 0===B?Bo:B,W=F.renderEmpty,G=F.direction,Y=p||V,X=(0,i.Z)((0,i.Z)({},U.Table),R),q=h||Go,J=l.useContext(Be.E_).getPrefixCls,$=J("table",c),Q=J("dropdown",m),ee=(0,i.Z)({childrenColumnName:w,expandIconColumnIndex:K},O),ne=ee.childrenColumnName,te=void 0===ne?"children":ne,re=l.useMemo((function(){return q.some((function(e){var n;return null===(n=e)||void 0===n?void 0:n[te]}))?"nest":P||O&&O.expandedRowRender?"row":null}),[q]),oe={body:l.useRef()},ae=l.useMemo((function(){return"function"===typeof b?b:function(e){var n;return null===(n=e)||void 0===n?void 0:n[b]}}),[b]),ie=function(e,n,t){var o=l.useRef({});return[function(a){if(!o.current||o.current.data!==e||o.current.childrenColumnName!==n||o.current.getRowKey!==t){var i=new Map;function a(e){e.forEach((function(e,o){var l=t(e,o);i.set(l,e),e&&"object"===(0,r.Z)(e)&&n in e&&a(e[n]||[])}))}a(e),o.current={data:e,childrenColumnName:n,kvMap:i,getRowKey:t}}return o.current.kvMap.get(a)}]}(q,te,ae),le=(0,a.Z)(ie,1)[0],ce={},se=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=(0,i.Z)((0,i.Z)({},ce),e);t&&(ce.resetPagination(),r.pagination.current&&(r.pagination.current=1),y&&y.onChange&&y.onChange(1,r.pagination.pageSize)),D&&!1!==D.scrollToFirstRowOnChange&&oe.body.current&&Fo(0,{getContainer:function(){return oe.body.current}}),null===Z||void 0===Z||Z(r.pagination,r.filters,r.sorter,{currentDataSource:To(sr(q,r.sorterStates,te),r.filterStates),action:n})},de=dr({prefixCls:$,mergedColumns:_,onSorterChange:function(e,n){se({sorter:e,sorterStates:n},"sort",!1)},sortDirections:M||["ascend","descend"],tableLocale:X,showSorterTooltip:L}),fe=(0,a.Z)(de,4),pe=fe[0],ve=fe[1],me=fe[2],he=fe[3],ye=l.useMemo((function(){return sr(q,ve,te)}),[q,ve]);ce.sorter=he(),ce.sorterStates=ve;var ge=Lo({prefixCls:$,locale:X,dropdownPrefixCls:Q,mergedColumns:_,onFilterChange:function(e,n){se({filters:e,filterStates:n},"filter",!0)},getPopupContainer:N}),be=(0,a.Z)(ge,3),xe=be[0],Ce=be[1],Ee=be[2],we=To(ye,Ce);ce.filters=Ee(),ce.filterStates=Ce;var Ze=Ao(l.useMemo((function(){return(0,i.Z)({},me)}),[me])),Ne=(0,a.Z)(Ze,1)[0],Se=kn(we.length,y,(function(e,n){se({pagination:(0,i.Z)((0,i.Z)({},ce.pagination),{current:e,pageSize:n})},"paginate")})),ke=(0,a.Z)(Se,2),Oe=ke[0],Pe=ke[1];ce.pagination=!1===y?{}:function(e,n){var t={current:n.current,pageSize:n.pageSize},o=e&&"object"===(0,r.Z)(e)?e:{};return Object.keys(o).forEach((function(e){var r=n[e];"function"!==typeof r&&(t[e]=r)})),t}(y,Oe),ce.resetPagination=Pe;var Ke=l.useMemo((function(){if(!1===y||!Oe.pageSize)return we;var e=Oe.current,n=void 0===e?1:e,t=Oe.total,r=Oe.pageSize,o=void 0===r?10:r;return(0,yt.Z)(n>0,"Table","`current` should be positive number."),we.lengtho?((0,yt.Z)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),we.slice((n-1)*o,n*o)):we:we.slice((n-1)*o,n*o)}),[!!y,we,Oe&&Oe.current,Oe&&Oe.pageSize,Oe&&Oe.total]),Ie=Ut(g,{prefixCls:$,data:we,pageData:Ke,getRowKey:ae,getRecordByKey:le,expandType:re,childrenColumnName:te,locale:X,getPopupContainer:N}),De=(0,a.Z)(Ie,2),Me=De[0],Te=De[1];ee.__PARENT_RENDER_ICON__=ee.expandIcon,ee.expandIcon=ee.expandIcon||k||Ho(X),"nest"===re&&void 0===ee.expandIconColumnIndex?ee.expandIconColumnIndex=g?1:0:ee.expandIconColumnIndex>0&&g&&(ee.expandIconColumnIndex-=1),"number"!==typeof ee.indentSize&&(ee.indentSize="number"===typeof I?I:15);var Le,Ae,He,_e=l.useCallback((function(e){return Ne(Me(xe(pe(e))))}),[pe,xe,Me]);if(!1!==y&&(null===Oe||void 0===Oe?void 0:Oe.total)){var ze;ze=Oe.size?Oe.size:"small"===Y||"middle"===Y?"small":void 0;var Ve=function(e){return l.createElement(Nn,(0,i.Z)({},Oe,{className:u()("".concat($,"-pagination ").concat($,"-pagination-").concat(e),Oe.className),size:ze}))},Fe="rtl"===G?"left":"right",Ue=Oe.position;if(null!==Ue&&Array.isArray(Ue)){var We=Ue.find((function(e){return-1!==e.indexOf("top")})),Ge=Ue.find((function(e){return-1!==e.indexOf("bottom")})),Ye=Ue.every((function(e){return"none"==="".concat(e)}));We||Ge||Ye||(Ae=Ve(Fe)),We&&(Le=Ve(We.toLowerCase().replace("top",""))),Ge&&(Ae=Ve(Ge.toLowerCase().replace("bottom","")))}else Ae=Ve(Fe)}"boolean"===typeof S?He={spinning:S}:"object"===(0,r.Z)(S)&&(He=(0,i.Z)({spinning:!0},S));var Xe=u()("".concat($,"-wrapper"),(0,o.Z)({},"".concat($,"-wrapper-rtl"),"rtl"===G),d);return l.createElement("div",{ref:n,className:Xe,style:f},l.createElement(qe,(0,i.Z)({spinning:!1},He),Le,l.createElement(je,(0,i.Z)({},z,{columns:_,direction:G,expandable:ee,prefixCls:$,className:u()((t={},(0,o.Z)(t,"".concat($,"-middle"),"middle"===Y),(0,o.Z)(t,"".concat($,"-small"),"small"===Y),(0,o.Z)(t,"".concat($,"-bordered"),v),(0,o.Z)(t,"".concat($,"-empty"),0===q.length),t)),data:Ke,rowKey:ae,rowClassName:function(e,n,t){var r;return r="function"===typeof x?u()(x(e,n,t)):u()(x),u()((0,o.Z)({},"".concat($,"-row-selected"),Te.has(ae(e,n))),r)},emptyText:R&&R.emptyText||W("Table"),internalHooks:Re,internalRefs:oe,transformColumns:_e})),Ae))}var Xo=l.forwardRef(Yo);Xo.defaultProps={rowKey:"key"},Xo.SELECTION_COLUMN=Ht,Xo.EXPAND_COLUMN=je.EXPAND_COLUMN,Xo.SELECTION_ALL=_t,Xo.SELECTION_INVERT=zt,Xo.SELECTION_NONE=Vt,Xo.Column=Uo,Xo.ColumnGroup=Wo,Xo.Summary=Ee;var qo=Xo},27561:function(e,n,t){var r=t(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},67990:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},23279:function(e,n,t){var r=t(13218),o=t(7771),a=t(14841),i=Math.max,l=Math.min;e.exports=function(e,n,t){var c,u,s,d,f,p,v=0,m=!1,h=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(n){var t=c,r=u;return c=u=void 0,v=n,d=e.apply(r,t)}function b(e){return v=e,f=setTimeout(C,n),m?g(e):d}function x(e){var t=e-p;return void 0===p||t>=n||t<0||h&&e-v>=s}function C(){var e=o();if(x(e))return E(e);f=setTimeout(C,function(e){var t=n-(e-p);return h?l(t,s-(e-v)):t}(e))}function E(e){return f=void 0,y&&c?g(e):(c=u=void 0,d)}function w(){var e=o(),t=x(e);if(c=arguments,u=this,p=e,t){if(void 0===f)return b(p);if(h)return clearTimeout(f),f=setTimeout(C,n),g(p)}return void 0===f&&(f=setTimeout(C,n)),d}return n=a(n)||0,r(t)&&(m=!!t.leading,s=(h="maxWait"in t)?i(a(t.maxWait)||0,n):s,y="trailing"in t?!!t.trailing:y),w.cancel=function(){void 0!==f&&clearTimeout(f),v=0,c=p=u=f=void 0},w.flush=function(){return void 0===f?d:E(o())},w}},33448:function(e,n,t){var r=t(44239),o=t(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),o=t(13218),a=t(33448),i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=l.test(e);return t||c.test(e)?u(e.slice(2),t?2:8):i.test(e)?NaN:+e}},50132:function(e,n,t){"use strict";var r=t(87462),o=t(4942),a=t(91),i=t(1413),l=t(15671),c=t(43144),u=t(60136),s=t(3289),d=t(67294),f=t(94184),p=t.n(f),v=function(e){(0,u.Z)(t,e);var n=(0,s.Z)(t);function t(e){var r;(0,l.Z)(this,t),(r=n.call(this,e)).handleChange=function(e){var n=r.props,t=n.disabled,o=n.onChange;t||("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:(0,i.Z)((0,i.Z)({},r.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var o="checked"in e?e.checked:e.defaultChecked;return r.state={checked:o},r}return(0,c.Z)(t,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,n=this.props,t=n.prefixCls,i=n.className,l=n.style,c=n.name,u=n.id,s=n.type,f=n.disabled,v=n.readOnly,m=n.tabIndex,h=n.onClick,y=n.onFocus,g=n.onBlur,b=n.onKeyDown,x=n.onKeyPress,C=n.onKeyUp,E=n.autoFocus,w=n.value,Z=n.required,N=(0,a.Z)(n,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),S=Object.keys(N).reduce((function(e,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(e[n]=N[n]),e}),{}),k=this.state.checked,O=p()(t,i,(e={},(0,o.Z)(e,"".concat(t,"-checked"),k),(0,o.Z)(e,"".concat(t,"-disabled"),f),e));return d.createElement("span",{className:O,style:l},d.createElement("input",(0,r.Z)({name:c,id:u,type:s,required:Z,readOnly:v,disabled:f,tabIndex:m,className:"".concat(t,"-input"),checked:!!k,onClick:h,onFocus:y,onBlur:g,onKeyUp:C,onKeyDown:b,onKeyPress:x,onChange:this.handleChange,autoFocus:E,ref:this.saveInput,value:w},S)),d.createElement("span",{className:"".concat(t,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){return"checked"in e?(0,i.Z)((0,i.Z)({},n),{},{checked:e.checked}):null}}]),t}(d.Component);v.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}},n.Z=v},56180:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var r=t(4942),o=t(1413),a=t(97685),i=t(91),l=t(67294),c=t(51169),u=t(94184),s=t.n(u),d={adjustX:1,adjustY:1},f=[0,0],p={topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:f},topCenter:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:f},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:f},bottomCenter:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:f},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:f}},v=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"];function m(e,n){var t=e.arrow,u=void 0!==t&&t,d=e.prefixCls,f=void 0===d?"rc-dropdown":d,m=e.transitionName,h=e.animation,y=e.align,g=e.placement,b=void 0===g?"bottomLeft":g,x=e.placements,C=void 0===x?p:x,E=e.getPopupContainer,w=e.showAction,Z=e.hideAction,N=e.overlayClassName,S=e.overlayStyle,k=e.visible,O=e.trigger,P=void 0===O?["hover"]:O,K=(0,i.Z)(e,v),I=l.useState(),D=(0,a.Z)(I,2),M=D[0],R=D[1],T="visible"in e?k:M,L=l.useRef(null);l.useImperativeHandle(n,(function(){return L.current}));var j=function(){var n=e.overlay;return"function"===typeof n?n():n},A=function(n){var t=e.onOverlayClick,r=j().props;R(!1),t&&t(n),r.onClick&&r.onClick(n)},H=function(){var e=j(),n={prefixCls:"".concat(f,"-menu"),onClick:A};return"string"===typeof e.type&&delete n.prefixCls,l.createElement(l.Fragment,null,u&&l.createElement("div",{className:"".concat(f,"-arrow")}),l.cloneElement(e,n))},_=Z;return _||-1===P.indexOf("contextMenu")||(_=["click"]),l.createElement(c.Z,(0,o.Z)((0,o.Z)({builtinPlacements:C},K),{},{prefixCls:f,ref:L,popupClassName:s()(N,(0,r.Z)({},"".concat(f,"-show-arrow"),u)),popupStyle:S,action:P,showAction:w,hideAction:_||[],popupPlacement:b,popupAlign:y,popupTransitionName:m,popupAnimation:h,popupVisible:T,stretch:function(){var n=e.minOverlayWidthMatchTrigger,t=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?n:!t}()?"minWidth":"",popup:"function"===typeof e.overlay?H:H(),onPopupVisibleChange:function(n){var t=e.onVisibleChange;R(n),"function"===typeof t&&t(n)},getPopupContainer:E}),function(){var n=e.children,t=n.props?n.props:{},r=s()(t.className,function(){var n=e.openClassName;return void 0!==n?n:"".concat(f,"-open")}());return T&&n?l.cloneElement(n,{className:r}):n}())}var h=l.forwardRef(m)},73453:function(e,n,t){"use strict";t.d(n,{Z:function(){return Y}});var r=t(67294),o=t(94184),a=t.n(o),i=t(48555);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;nt},e}return n=l,(t=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,n=e.dragging,t=e.visible,o=this.props.prefixCls,i=this.getSpinHeight(),l=this.getTop(),c=this.showScroll(),u=c&&t;return r.createElement("div",{ref:this.scrollbarRef,className:a()("".concat(o,"-scrollbar"),v({},"".concat(o,"-scrollbar-show"),c)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:u?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},r.createElement("div",{ref:this.thumbRef,className:a()("".concat(o,"-scrollbar-thumb"),v({},"".concat(o,"-scrollbar-thumb-moving"),n)),style:{width:"100%",height:i,top:l,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&h(n.prototype,t),o&&h(n,o),l}(r.Component);function w(e){var n=e.children,t=e.setRef,o=r.useCallback((function(e){t(e)}),[]);return r.cloneElement(n,{ref:o})}var Z=t(34203);function N(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]&&arguments[1],r=e<0&&i.current.top||e>0&&i.current.bottom;return n&&r?(clearTimeout(o.current),t.current=!1):r&&!t.current||a(),!t.current&&r}};var L=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function j(){return j=Object.assign||function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var B=[],U={overflowY:"auto",overflowAnchor:"none"};function W(e,n){var t=e.prefixCls,o=void 0===t?"rc-virtual-list":t,i=e.className,l=e.height,c=e.itemHeight,u=e.fullHeight,s=void 0===u||u,p=e.style,v=e.data,m=e.children,h=e.itemKey,y=e.virtual,g=e.component,b=void 0===g?"div":g,x=e.onScroll,C=e.onVisibleChange,N=F(e,L),O=!(!1===y||!l||!c),K=O&&v&&c*v.length>l,I=z((0,r.useState)(0),2),M=I[0],A=I[1],V=z((0,r.useState)(!1),2),W=V[0],G=V[1],Y=a()(o,i),X=v||B,q=(0,r.useRef)(),J=(0,r.useRef)(),$=(0,r.useRef)(),Q=r.useCallback((function(e){return"function"===typeof h?h(e):null===e||void 0===e?void 0:e[h]}),[h]),ee={getKey:Q};function ne(e){A((function(n){var t=function(e){var n=e;Number.isNaN(ye.current)||(n=Math.min(n,ye.current));return n=Math.max(n,0)}("function"===typeof e?e(n):e);return q.current.scrollTop=t,t}))}var te=(0,r.useRef)({start:0,end:X.length}),re=(0,r.useRef)(),oe=z(D(X,Q),1)[0];re.current=oe;var ae=function(e,n,t){var o=k(r.useState(0),2),a=o[0],i=o[1],l=(0,r.useRef)(new Map),c=(0,r.useRef)(new S),u=(0,r.useRef)(0);function s(){u.current+=1;var e=u.current;Promise.resolve().then((function(){e===u.current&&(l.current.forEach((function(e,n){if(e&&e.offsetParent){var t=(0,Z.Z)(e),r=t.offsetHeight;c.current.get(n)!==r&&c.current.set(n,t.offsetHeight)}})),i((function(e){return e+1})))}))}return[function(r,o){var a=e(r),i=l.current.get(a);o?(l.current.set(a,o),s()):l.current.delete(a),!i!==!o&&(o?null===n||void 0===n||n(r):null===t||void 0===t||t(r))},s,c.current,a]}(Q,null,null),ie=z(ae,4),le=ie[0],ce=ie[1],ue=ie[2],se=ie[3],de=r.useMemo((function(){if(!O)return{scrollHeight:void 0,start:0,end:X.length-1,offset:void 0};var e;if(!K)return{scrollHeight:(null===(e=J.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:X.length-1,offset:void 0};for(var n,t,r,o=0,a=X.length,i=0;i=M&&void 0===n&&(n=i,t=o),f>M+l&&void 0===r&&(r=i),o=f}return void 0===n&&(n=0,t=0),void 0===r&&(r=X.length-1),{scrollHeight:o,start:n,end:r=Math.min(r+1,X.length),offset:t}}),[K,O,M,X,se,l]),fe=de.scrollHeight,pe=de.start,ve=de.end,me=de.offset;te.current.start=pe,te.current.end=ve;var he=fe-l,ye=(0,r.useRef)(he);ye.current=he;var ge=M<=0,be=M>=he,xe=T(ge,be);var Ce=function(e,n,t,o){var a=(0,r.useRef)(0),i=(0,r.useRef)(null),l=(0,r.useRef)(null),c=(0,r.useRef)(!1),u=T(n,t);return[function(n){if(e){f.Z.cancel(i.current);var t=n.deltaY;a.current+=t,l.current=t,u(t)||(R||n.preventDefault(),i.current=(0,f.Z)((function(){var e=c.current?10:1;o(a.current*e),a.current=0})))}},function(n){e&&(c.current=n.detail===l.current)}]}(O,ge,be,(function(e){ne((function(n){return n+e}))})),Ee=z(Ce,2),we=Ee[0],Ze=Ee[1];!function(e,n,t){var o,a=(0,r.useRef)(!1),i=(0,r.useRef)(0),l=(0,r.useRef)(null),c=(0,r.useRef)(null),u=function(e){if(a.current){var n=Math.ceil(e.touches[0].pageY),r=i.current-n;i.current=n,t(r)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){(!t(r*=.9333333333333333,!0)||Math.abs(r)<=.1)&&clearInterval(c.current)}),16)}},s=function(){a.current=!1,o()},d=function(e){o(),1!==e.touches.length||a.current||(a.current=!0,i.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",u),l.current.addEventListener("touchend",s))};o=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",s))},r.useLayoutEffect((function(){return e&&n.current.addEventListener("touchstart",d),function(){n.current.removeEventListener("touchstart",d),o(),clearInterval(c.current)}}),[e])}(O,q,(function(e,n){return!xe(e,n)&&(we({preventDefault:function(){},deltaY:e}),!0)})),(0,r.useLayoutEffect)((function(){function e(e){O&&e.preventDefault()}return q.current.addEventListener("wheel",we),q.current.addEventListener("DOMMouseScroll",Ze),q.current.addEventListener("MozMousePixelScroll",e),function(){q.current.removeEventListener("wheel",we),q.current.removeEventListener("DOMMouseScroll",Ze),q.current.removeEventListener("MozMousePixelScroll",e)}}),[O]);var Ne=function(e,n,t,o,a,i,l,c){var u=r.useRef();return function(r){if(null!==r&&void 0!==r){if(f.Z.cancel(u.current),"number"===typeof r)l(r);else if(r&&"object"===P(r)){var s,d=r.align;s="index"in r?r.index:n.findIndex((function(e){return a(e)===r.key}));var p=r.offset,v=void 0===p?0:p;!function r(c,p){if(!(c<0)&&e.current){var m=e.current.clientHeight,h=!1,y=p;if(m){for(var g=p||d,b=0,x=0,C=0,E=Math.min(n.length,s),w=0;w<=E;w+=1){var Z=a(n[w]);x=b;var N=t.get(Z);b=C=x+(void 0===N?o:N),w===s&&void 0===N&&(h=!0)}var S=null;switch(g){case"top":S=x-v;break;case"bottom":S=C-m+v;break;default:var k=e.current.scrollTop;xk+m&&(y="bottom")}null!==S&&S!==e.current.scrollTop&&l(S)}u.current=(0,f.Z)((function(){h&&i(),r(c-1,y)}))}}(3)}}else c()}}(q,X,ue,c,Q,ce,ne,(function(){var e;null===(e=$.current)||void 0===e||e.delayHidden()}));r.useImperativeHandle(n,(function(){return{scrollTo:Ne}})),(0,r.useLayoutEffect)((function(){if(C){var e=X.slice(pe,ve+1);C(e,X)}}),[pe,ve,X]);var Se=function(e,n,t,o,a,i){var l=i.getKey;return e.slice(n,t+1).map((function(e,t){var i=a(e,n+t,{}),c=l(e);return r.createElement(w,{key:c,setRef:function(n){return o(e,n)}},i)}))}(X,pe,ve,le,m,ee),ke=null;return l&&(ke=H(_({},s?"height":"maxHeight",l),U),O&&(ke.overflowY="hidden",W&&(ke.pointerEvents="none"))),r.createElement("div",j({style:H(H({},p),{},{position:"relative"}),className:Y},N),r.createElement(b,{className:"".concat(o,"-holder"),style:ke,ref:q,onScroll:function(e){var n=e.currentTarget.scrollTop;n!==M&&ne(n),null===x||void 0===x||x(e)}},r.createElement(d,{prefixCls:o,height:fe,offset:me,onInnerResize:ce,ref:J},Se)),O&&r.createElement(E,{ref:$,prefixCls:o,scrollTop:M,height:l,scrollHeight:fe,count:X.length,onScroll:function(e){ne(e)},onStartMove:function(){G(!0)},onStopMove:function(){G(!1)}}))}var G=r.forwardRef(W);G.displayName="List";var Y=G}}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/406-7c15d121d8803c15.js b/static/admin/_next/static/chunks/406-7c15d121d8803c15.js new file mode 100644 index 000000000..48035ac27 --- /dev/null +++ b/static/admin/_next/static/chunks/406-7c15d121d8803c15.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[406],{57838:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var r=t(97685),o=t(67294);function a(){var e=o.useReducer((function(e){return e+1}),0);return(0,r.Z)(e,2)[1]}},24308:function(e,n,t){"use strict";t.d(n,{c4:function(){return a}});var r=t(4942),o=t(87462),a=["xxl","xl","lg","md","sm","xs"],i={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},l=new Map,c=-1,u={},s={matchHandlers:{},dispatch:function(e){return u=e,l.forEach((function(e){return e(u)})),l.size>=1},subscribe:function(e){return l.size||this.register(),c+=1,l.set(c,e),e(u),c},unsubscribe:function(e){l.delete(e),l.size||this.unregister()},unregister:function(){var e=this;Object.keys(i).forEach((function(n){var t=i[n],r=e.matchHandlers[t];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),l.clear()},register:function(){var e=this;Object.keys(i).forEach((function(n){var t=i[n],a=function(t){var a=t.matches;e.dispatch((0,o.Z)((0,o.Z)({},u),(0,r.Z)({},n,a)))},l=window.matchMedia(t);l.addListener(a),e.matchHandlers[t]={mql:l,listener:a},a(l)}))}};n.ZP=s},32808:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(4942),o=t(87462),a=t(67294),i=t(94184),l=t.n(i),c=t(50132),u=t(74902),s=t(97685),d=t(98423),f=t(59844),p=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&(i=M().map((function(e){return a.createElement(E,{prefixCls:R,key:e.value.toString(),disabled:"disabled"in e?e.disabled:x.disabled,value:e.value,checked:-1!==k.indexOf(e.value),onChange:e.onChange,className:"".concat(T,"-item"),style:e.style},e.label)})));var j={toggleOption:function(e){var n=k.indexOf(e.value),t=(0,u.Z)(k);-1===n?t.push(e.value):t.splice(n,1),"value"in x||O(t);var r=M();null===b||void 0===b||b(t.filter((function(e){return-1!==I.indexOf(e)})).sort((function(e,n){return r.findIndex((function(n){return n.value===e}))-r.findIndex((function(e){return e.value===n}))})))},value:k,disabled:x.disabled,name:x.name,registerValue:function(e){D((function(n){return[].concat((0,u.Z)(n),[e])}))},cancelValue:function(e){D((function(n){return n.filter((function(n){return n!==e}))}))}},A=l()(T,(0,r.Z)({},"".concat(T,"-rtl"),"rtl"===Z),y);return a.createElement("div",(0,o.Z)({className:A,style:g},L,{ref:n}),a.createElement(v.Provider,{value:j},i))},h=a.forwardRef(m),y=a.memo(h),g=t(21687),b=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0?"".concat(n,"-slide-down"):"".concat(n,"-slide-up")}(),trigger:S,overlay:function(){return function(n){var t,r=e.overlay;t="function"===typeof r?r():r;var o=(t=a.Children.only("string"===typeof t?a.createElement("span",null,t):t)).props;(0,g.Z)(!o.mode||"vertical"===o.mode,"Dropdown",'mode="'.concat(o.mode,"\" is not supported for Dropdown's Menu."));var i=o.selectable,l=void 0!==i&&i,c=o.expandIcon,s="undefined"!==typeof c&&a.isValidElement(c)?c:a.createElement("span",{className:"".concat(n,"-menu-submenu-arrow")},a.createElement(u.Z,{className:"".concat(n,"-menu-submenu-arrow-icon")}));return"string"===typeof t.type?t:(0,x.Tm)(t,{mode:"vertical",selectable:l,expandIcon:s})}(E)},placement:function(){var n=e.placement;return void 0!==n?n:"rtl"===d?"bottomRight":"bottomLeft"}()}),Z)});C.Button=y,C.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var E=C,w=C},25378:function(e,n,t){"use strict";var r=t(67294),o=t(57838),a=t(24308);n.Z=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=(0,r.useRef)({}),t=(0,o.Z)();return(0,r.useEffect)((function(){var r=a.ZP.subscribe((function(r){n.current=r,e&&t()}));return function(){return a.ZP.unsubscribe(r)}}),[]),n.current}},38939:function(e,n,t){"use strict";t.d(n,{Z:function(){return je}});var r=t(4942),o=t(87462),a=t(67294),i=t(98423),l=t(94184),c=t.n(l),u=t(74902),s=t(1413),d=t(97685),f=t(91),p=t(71002),v=t(80334),m=t(21770),h=t(15105),y=t(31131),g=t(42550),b=t(8410),x=t(84506);function C(e,n){var t,r=e.key;return"value"in e&&(t=e.value),null!==r&&void 0!==r?r:void 0!==t?t:"rc-index-key-".concat(n)}function E(e,n){var t=e||{};return{label:t.label||(n?"children":"label"),value:t.value||"value",options:t.options||"options"}}function w(e){var n=(0,s.Z)({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return(0,v.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),n}}),n}var Z=t(51169),N=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],S=function(e,n){var t=e.prefixCls,i=(e.disabled,e.visible),l=e.children,u=e.popupElement,d=e.containerWidth,p=e.animation,v=e.transitionName,m=e.dropdownStyle,h=e.dropdownClassName,y=e.direction,g=void 0===y?"ltr":y,b=e.placement,x=e.dropdownMatchSelectWidth,C=e.dropdownRender,E=e.dropdownAlign,w=e.getPopupContainer,S=e.empty,k=e.getTriggerDOMNode,O=e.onPopupVisibleChange,P=e.onPopupMouseEnter,K=(0,f.Z)(e,N),I="".concat(t,"-dropdown"),D=u;C&&(D=C(u));var M=a.useMemo((function(){return function(e){var n=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}}}}(x)}),[x]),R=p?"".concat(I,"-").concat(p):v,T=a.useRef(null);a.useImperativeHandle(n,(function(){return{getPopupElement:function(){return T.current}}}));var L=(0,s.Z)({minWidth:d},m);return"number"===typeof x?L.width=x:x&&(L.width=d),a.createElement(Z.Z,(0,o.Z)({},K,{showAction:O?["click"]:[],hideAction:O?["click"]:[],popupPlacement:b||("rtl"===g?"bottomRight":"bottomLeft"),builtinPlacements:M,prefixCls:I,popupTransitionName:R,popup:a.createElement("div",{ref:T,onMouseEnter:P},D),popupAlign:E,popupVisible:i,getPopupContainer:w,popupClassName:c()(h,(0,r.Z)({},"".concat(I,"-empty"),S)),popupStyle:L,getTriggerDOMNode:k,onPopupVisibleChange:O}),l)},k=a.forwardRef(S);k.displayName="SelectTrigger";var O=k,P=t(64217),K=t(34243),I=function(e){var n,t=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,l=e.onClick,u=e.children;return n="function"===typeof r?r(o):r,a.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==n?n:a.createElement("span",{className:c()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},u))},D=function(e,n){var t,r,o=e.prefixCls,i=e.id,l=e.inputElement,u=e.disabled,d=e.tabIndex,f=e.autoFocus,p=e.autoComplete,v=e.editable,m=e.activeDescendantId,h=e.value,y=e.maxLength,b=e.onKeyDown,x=e.onMouseDown,C=e.onChange,E=e.onPaste,w=e.onCompositionStart,Z=e.onCompositionEnd,N=e.open,S=e.attrs,k=l||a.createElement("input",null),O=k,P=O.ref,K=O.props,I=K.onKeyDown,D=K.onChange,M=K.onMouseDown,R=K.onCompositionStart,T=K.onCompositionEnd,L=K.style;return k=a.cloneElement(k,(0,s.Z)((0,s.Z)({id:i,ref:(0,g.sQ)(n,P),disabled:u,tabIndex:d,autoComplete:p||"off",type:"search",autoFocus:f,className:c()("".concat(o,"-selection-search-input"),null===(t=k)||void 0===t||null===(r=t.props)||void 0===r?void 0:r.className),style:(0,s.Z)((0,s.Z)({},L),{},{opacity:v?null:0}),role:"combobox","aria-expanded":N,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":m},S),{},{value:v?h:"",maxLength:y,readOnly:!v,unselectable:v?null:"on",onKeyDown:function(e){b(e),I&&I(e)},onMouseDown:function(e){x(e),M&&M(e)},onChange:function(e){C(e),D&&D(e)},onCompositionStart:function(e){w(e),R&&R(e)},onCompositionEnd:function(e){Z(e),T&&T(e)},onPaste:E}))},M=a.forwardRef(D);M.displayName="Input";var R=M;function T(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var L="undefined"!==typeof window&&window.document&&window.document.documentElement;var j=function(e){e.preventDefault(),e.stopPropagation()},A=function(e){var n,t,o=e.id,i=e.prefixCls,l=e.values,u=e.open,s=e.searchValue,f=e.inputRef,p=e.placeholder,v=e.disabled,m=e.mode,h=e.showSearch,y=e.autoFocus,g=e.autoComplete,b=e.activeDescendantId,x=e.tabIndex,C=e.removeIcon,E=e.maxTagCount,w=e.maxTagTextLength,Z=e.maxTagPlaceholder,N=void 0===Z?function(e){return"+ ".concat(e.length," ...")}:Z,S=e.tagRender,k=e.onToggleOpen,O=e.onRemove,D=e.onInputChange,M=e.onInputPaste,T=e.onInputKeyDown,A=e.onInputMouseDown,H=e.onInputCompositionStart,_=e.onInputCompositionEnd,z=a.useRef(null),V=(0,a.useState)(0),F=(0,d.Z)(V,2),B=F[0],U=F[1],W=(0,a.useState)(!1),G=(0,d.Z)(W,2),Y=G[0],X=G[1],q="".concat(i,"-selection"),J=u||"tags"===m?s:"",$="tags"===m||h&&(u||Y);function Q(e,n,t,o,i){return a.createElement("span",{className:c()("".concat(q,"-item"),(0,r.Z)({},"".concat(q,"-item-disabled"),t)),title:"string"===typeof e||"number"===typeof e?e.toString():void 0},a.createElement("span",{className:"".concat(q,"-item-content")},n),o&&a.createElement(I,{className:"".concat(q,"-item-remove"),onMouseDown:j,onClick:i,customizeIcon:C},"\xd7"))}n=function(){U(z.current.scrollWidth)},t=[J],L?a.useLayoutEffect(n,t):a.useEffect(n,t);var ee=a.createElement("div",{className:"".concat(q,"-search"),style:{width:B},onFocus:function(){X(!0)},onBlur:function(){X(!1)}},a.createElement(R,{ref:f,open:u,prefixCls:i,id:o,inputElement:null,disabled:v,autoFocus:y,autoComplete:g,editable:$,activeDescendantId:b,value:J,onKeyDown:T,onMouseDown:A,onChange:D,onPaste:M,onCompositionStart:H,onCompositionEnd:_,tabIndex:x,attrs:(0,P.Z)(e,!0)}),a.createElement("span",{ref:z,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},J,"\xa0")),ne=a.createElement(K.Z,{prefixCls:"".concat(q,"-overflow"),data:l,renderItem:function(e){var n=e.disabled,t=e.label,r=e.value,o=!v&&!n,i=t;if("number"===typeof w&&("string"===typeof t||"number"===typeof t)){var l=String(i);l.length>w&&(i="".concat(l.slice(0,w),"..."))}var c=function(n){n&&n.stopPropagation(),O(e)};return"function"===typeof S?function(e,n,t,r,o){return a.createElement("span",{onMouseDown:function(e){j(e),k(!u)}},S({label:n,value:e,disabled:t,closable:r,onClose:o}))}(r,i,n,o,c):Q(t,i,n,o,c)},renderRest:function(e){var n="function"===typeof N?N(e):N;return Q(n,n,!1)},suffix:ee,itemKey:"key",maxCount:E});return a.createElement(a.Fragment,null,ne,!l.length&&!J&&a.createElement("span",{className:"".concat(q,"-placeholder")},p))},H=function(e){var n=e.inputElement,t=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,l=e.autoFocus,c=e.autoComplete,u=e.activeDescendantId,s=e.mode,f=e.open,p=e.values,v=e.placeholder,m=e.tabIndex,h=e.showSearch,y=e.searchValue,g=e.activeValue,b=e.maxLength,x=e.onInputKeyDown,C=e.onInputMouseDown,E=e.onInputChange,w=e.onInputPaste,Z=e.onInputCompositionStart,N=e.onInputCompositionEnd,S=a.useState(!1),k=(0,d.Z)(S,2),O=k[0],K=k[1],I="combobox"===s,D=I||h,M=p[0],T=y||"";I&&g&&!O&&(T=g),a.useEffect((function(){I&&K(!1)}),[I,g]);var L=!("combobox"!==s&&!f&&!h)&&!!T,j=!M||"string"!==typeof M.label&&"number"!==typeof M.label?void 0:M.label.toString();return a.createElement(a.Fragment,null,a.createElement("span",{className:"".concat(t,"-selection-search")},a.createElement(R,{ref:o,prefixCls:t,id:r,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:c,editable:D,activeDescendantId:u,value:T,onKeyDown:x,onMouseDown:C,onChange:function(e){K(!0),E(e)},onPaste:w,onCompositionStart:Z,onCompositionEnd:N,tabIndex:m,attrs:(0,P.Z)(e,!0),maxLength:I?b:void 0})),!I&&M&&!L&&a.createElement("span",{className:"".concat(t,"-selection-item"),title:j},M.label),function(){if(M)return null;var e=L?{visibility:"hidden"}:void 0;return a.createElement("span",{className:"".concat(t,"-selection-placeholder"),style:e},v)}())};function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=a.useRef(null),t=a.useRef(null);function r(r){(r||null===n.current)&&(n.current=r),window.clearTimeout(t.current),t.current=window.setTimeout((function(){n.current=null}),e)}return a.useEffect((function(){return function(){window.clearTimeout(t.current)}}),[]),[function(){return n.current},r]}var z=function(e,n){var t=(0,a.useRef)(null),r=(0,a.useRef)(!1),i=e.prefixCls,l=e.open,c=e.mode,u=e.showSearch,s=e.tokenWithEnter,f=e.onSearch,p=e.onSearchSubmit,v=e.onToggleOpen,m=e.onInputKeyDown,y=e.domRef;a.useImperativeHandle(n,(function(){return{focus:function(){t.current.focus()},blur:function(){t.current.blur()}}}));var g=_(0),b=(0,d.Z)(g,2),x=b[0],C=b[1],E=(0,a.useRef)(null),w=function(e){!1!==f(e,!0,r.current)&&v(!0)},Z={inputRef:t,onInputKeyDown:function(e){var n,t=e.which;t!==h.Z.UP&&t!==h.Z.DOWN||e.preventDefault(),m&&m(e),t!==h.Z.ENTER||"tags"!==c||r.current||l||null===p||void 0===p||p(e.target.value),n=t,[h.Z.ESC,h.Z.SHIFT,h.Z.BACKSPACE,h.Z.TAB,h.Z.WIN_KEY,h.Z.ALT,h.Z.META,h.Z.WIN_KEY_RIGHT,h.Z.CTRL,h.Z.SEMICOLON,h.Z.EQUALS,h.Z.CAPS_LOCK,h.Z.CONTEXT_MENU,h.Z.F1,h.Z.F2,h.Z.F3,h.Z.F4,h.Z.F5,h.Z.F6,h.Z.F7,h.Z.F8,h.Z.F9,h.Z.F10,h.Z.F11,h.Z.F12].includes(n)||v(!0)},onInputMouseDown:function(){C(!0)},onInputChange:function(e){var n=e.target.value;if(s&&E.current&&/[\r\n]/.test(E.current)){var t=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(t,E.current)}E.current=null,w(n)},onInputPaste:function(e){var n=e.clipboardData.getData("text");E.current=n},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&w(e.target.value)}},N="multiple"===c||"tags"===c?a.createElement(A,(0,o.Z)({},e,Z)):a.createElement(H,(0,o.Z)({},e,Z));return a.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:function(e){e.target!==t.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){t.current.focus()})):t.current.focus())},onMouseDown:function(e){var n=x();e.target===t.current||n||e.preventDefault(),("combobox"===c||u&&n)&&l||(l&&f("",!0,!1),v())}},N)},V=a.forwardRef(z);V.displayName="Selector";var F=V;var B=a.createContext(null);var U=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],W=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function G(e){return"tags"===e||"multiple"===e}var Y=a.forwardRef((function(e,n){var t,i,l=e.id,v=e.prefixCls,C=e.className,E=e.showSearch,w=e.tagRender,Z=e.direction,N=e.omitDomProps,S=e.displayValues,k=e.onDisplayValuesChange,P=e.emptyOptions,K=e.notFoundContent,D=void 0===K?"Not Found":K,M=e.onClear,R=e.mode,T=e.disabled,L=e.loading,j=e.getInputElement,A=e.getRawInputElement,H=e.open,z=e.defaultOpen,V=e.onDropdownVisibleChange,Y=e.activeValue,X=e.onActiveValueChange,q=e.activeDescendantId,J=e.searchValue,$=e.onSearch,Q=e.onSearchSplit,ee=e.tokenSeparators,ne=e.allowClear,te=e.showArrow,re=e.inputIcon,oe=e.clearIcon,ae=e.OptionList,ie=e.animation,le=e.transitionName,ce=e.dropdownStyle,ue=e.dropdownClassName,se=e.dropdownMatchSelectWidth,de=e.dropdownRender,fe=e.dropdownAlign,pe=e.placement,ve=e.getPopupContainer,me=e.showAction,he=void 0===me?[]:me,ye=e.onFocus,ge=e.onBlur,be=e.onKeyUp,xe=e.onKeyDown,Ce=e.onMouseDown,Ee=(0,f.Z)(e,U),we=G(R),Ze=(void 0!==E?E:we)||"combobox"===R,Ne=(0,s.Z)({},Ee);W.forEach((function(e){delete Ne[e]})),null===N||void 0===N||N.forEach((function(e){delete Ne[e]}));var Se=a.useState(!1),ke=(0,d.Z)(Se,2),Oe=ke[0],Pe=ke[1];a.useEffect((function(){Pe((0,y.Z)())}),[]);var Ke=a.useRef(null),Ie=a.useRef(null),De=a.useRef(null),Me=a.useRef(null),Re=a.useRef(null),Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=a.useState(!1),t=(0,d.Z)(n,2),r=t[0],o=t[1],i=a.useRef(null),l=function(){window.clearTimeout(i.current)};return a.useEffect((function(){return l}),[]),[r,function(n,t){l(),i.current=window.setTimeout((function(){o(n),t&&t()}),e)},l]}(),Le=(0,d.Z)(Te,3),je=Le[0],Ae=Le[1],He=Le[2];a.useImperativeHandle(n,(function(){var e,n;return{focus:null===(e=Me.current)||void 0===e?void 0:e.focus,blur:null===(n=Me.current)||void 0===n?void 0:n.blur,scrollTo:function(e){var n;return null===(n=Re.current)||void 0===n?void 0:n.scrollTo(e)}}}));var _e=a.useMemo((function(){var e;if("combobox"!==R)return J;var n=null===(e=S[0])||void 0===e?void 0:e.value;return"string"===typeof n||"number"===typeof n?String(n):""}),[J,R,S]),ze="combobox"===R&&"function"===typeof j&&j()||null,Ve="function"===typeof A&&A(),Fe=(0,g.x1)(Ie,null===Ve||void 0===Ve||null===(t=Ve.props)||void 0===t?void 0:t.ref),Be=(0,m.Z)(void 0,{defaultValue:z,value:H}),Ue=(0,d.Z)(Be,2),We=Ue[0],Ge=Ue[1],Ye=We,Xe=!D&&P;(T||Xe&&Ye&&"combobox"===R)&&(Ye=!1);var qe=!Xe&&Ye,Je=a.useCallback((function(e){var n=void 0!==e?e:!Ye;Ye===n||T||(Ge(n),null===V||void 0===V||V(n))}),[T,Ye,Ge,V]),$e=a.useMemo((function(){return(ee||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ee]),Qe=function(e,n,t){var r=!0,o=e;null===X||void 0===X||X(null);var a=t?null:function(e,n){if(!n||!n.length)return null;var t=!1,r=function e(n,r){var o=(0,x.Z)(r),a=o[0],i=o.slice(1);if(!a)return[n];var l=n.split(a);return t=t||l.length>1,l.reduce((function(n,t){return[].concat((0,u.Z)(n),(0,u.Z)(e(t,i)))}),[]).filter((function(e){return e}))}(e,n);return t?r:null}(e,ee);return"combobox"!==R&&a&&(o="",null===Q||void 0===Q||Q(a),Je(!1),r=!1),$&&_e!==o&&$(o,{source:n?"typing":"effect"}),r};a.useEffect((function(){Ye||we||"combobox"===R||Qe("",!1,!1)}),[Ye]),a.useEffect((function(){We&&T&&Ge(!1),T&&Ae(!1)}),[T]);var en=_(),nn=(0,d.Z)(en,2),tn=nn[0],rn=nn[1],on=a.useRef(!1),an=[];a.useEffect((function(){return function(){an.forEach((function(e){return clearTimeout(e)})),an.splice(0,an.length)}}),[]);var ln,cn=a.useState(null),un=(0,d.Z)(cn,2),sn=un[0],dn=un[1],fn=a.useState({}),pn=(0,d.Z)(fn,2)[1];(0,b.Z)((function(){if(qe){var e,n=Math.ceil(null===(e=Ke.current)||void 0===e?void 0:e.offsetWidth);sn===n||Number.isNaN(n)||dn(n)}}),[qe]),Ve&&(ln=function(e){Je(e)}),function(e,n,t){var r=a.useRef(null);r.current={open:n,triggerOpen:t},a.useEffect((function(){function n(n){var t=n.target;t.shadowRoot&&n.composed&&(t=n.composedPath()[0]||t),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(t)&&e!==t}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",n),function(){return window.removeEventListener("mousedown",n)}}),[])}((function(){var e;return[Ke.current,null===(e=De.current)||void 0===e?void 0:e.getPopupElement()]}),qe,Je);var vn,mn,hn=a.useMemo((function(){return(0,s.Z)((0,s.Z)({},e),{},{notFoundContent:D,open:Ye,triggerOpen:qe,id:l,showSearch:Ze,multiple:we,toggleOpen:Je})}),[e,D,qe,Ye,l,Ze,we,Je]),yn=void 0!==te?te:L||!we&&"combobox"!==R;yn&&(vn=a.createElement(I,{className:c()("".concat(v,"-arrow"),(0,r.Z)({},"".concat(v,"-arrow-loading"),L)),customizeIcon:re,customizeIconProps:{loading:L,searchValue:_e,open:Ye,focused:je,showSearch:Ze}}));!T&&ne&&(S.length||_e)&&(mn=a.createElement(I,{className:"".concat(v,"-clear"),onMouseDown:function(){null===M||void 0===M||M(),k([],{type:"clear",values:S}),Qe("",!1,!1)},customizeIcon:oe},"\xd7"));var gn,bn=a.createElement(ae,{ref:Re}),xn=c()(v,C,(i={},(0,r.Z)(i,"".concat(v,"-focused"),je),(0,r.Z)(i,"".concat(v,"-multiple"),we),(0,r.Z)(i,"".concat(v,"-single"),!we),(0,r.Z)(i,"".concat(v,"-allow-clear"),ne),(0,r.Z)(i,"".concat(v,"-show-arrow"),yn),(0,r.Z)(i,"".concat(v,"-disabled"),T),(0,r.Z)(i,"".concat(v,"-loading"),L),(0,r.Z)(i,"".concat(v,"-open"),Ye),(0,r.Z)(i,"".concat(v,"-customize-input"),ze),(0,r.Z)(i,"".concat(v,"-show-search"),Ze),i)),Cn=a.createElement(O,{ref:De,disabled:T,prefixCls:v,visible:qe,popupElement:bn,containerWidth:sn,animation:ie,transitionName:le,dropdownStyle:ce,dropdownClassName:ue,direction:Z,dropdownMatchSelectWidth:se,dropdownRender:de,dropdownAlign:fe,placement:pe,getPopupContainer:ve,empty:P,getTriggerDOMNode:function(){return Ie.current},onPopupVisibleChange:ln,onPopupMouseEnter:function(){pn({})}},Ve?a.cloneElement(Ve,{ref:Fe}):a.createElement(F,(0,o.Z)({},e,{domRef:Ie,prefixCls:v,inputElement:ze,ref:Me,id:l,showSearch:Ze,mode:R,activeDescendantId:q,tagRender:w,values:S,open:Ye,onToggleOpen:Je,activeValue:Y,searchValue:_e,onSearch:Qe,onSearchSubmit:function(e){e&&e.trim()&&$(e,{source:"submit"})},onRemove:function(e){var n=S.filter((function(n){return n!==e}));k(n,{type:"remove",values:[e]})},tokenWithEnter:$e})));return gn=Ve?Cn:a.createElement("div",(0,o.Z)({className:xn},Ne,{ref:Ke,onMouseDown:function(e){var n,t=e.target,r=null===(n=De.current)||void 0===n?void 0:n.getPopupElement();if(r&&r.contains(t)){var o=setTimeout((function(){var e,n=an.indexOf(o);-1!==n&&an.splice(n,1),He(),Oe||r.contains(document.activeElement)||null===(e=Me.current)||void 0===e||e.focus()}));an.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l=0;i-=1){var l=o[i];if(!l.disabled){o.splice(i,1),a=l;break}}a&&k(o,{type:"remove",values:[a]})}for(var c=arguments.length,s=new Array(c>1?c-1:0),d=1;d1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:1,t=M.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];z(e);var t={source:n?"keyboard":"mouse"},r=M[e];r?C(r.value,e,t):C(null,-1,t)};(0,a.useEffect)((function(){V(!1!==E?j(0):-1)}),[M.length,v]),(0,a.useEffect)((function(){var e,n=setTimeout((function(){if(!p&&s&&1===N.size){var e=Array.from(N)[0],n=M.findIndex((function(n){return n.data.value===e}));-1!==n&&(V(n),L(n))}}));s&&(null===(e=R.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(n)}}),[s,v]);var F=function(e){void 0!==e&&w(e,{selected:!N.has(e)}),p||m(!1)};if(a.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var n=e.which,t=e.ctrlKey;switch(n){case h.Z.N:case h.Z.P:case h.Z.UP:case h.Z.DOWN:var r=0;if(n===h.Z.UP?r=-1:n===h.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&t&&(n===h.Z.N?r=1:n===h.Z.P&&(r=-1)),0!==r){var o=j(_+r,r);L(o),V(o,!0)}break;case h.Z.ENTER:var a=M[_];a&&!a.data.disabled?F(a.value):F(void 0),s&&e.preventDefault();break;case h.Z.ESC:m(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){L(e)}}})),0===M.length)return a.createElement("div",{role:"listbox",id:"".concat(u,"_list"),className:"".concat(D,"-empty"),onMouseDown:T},y);var U=Object.keys(S).map((function(e){return S[e]})),W=function(e){return e.label},G=function(e){var n=M[e];if(!n)return null;var t=n.data||{},r=t.value,i=n.group,l=(0,P.Z)(t,!0),c=W(n);return n?a.createElement("div",(0,o.Z)({"aria-label":"string"!==typeof c||i?null:c},l,{key:e,role:i?"presentation":"option",id:"".concat(u,"_list_").concat(e),"aria-selected":N.has(r)}),r):null};return a.createElement(a.Fragment,null,a.createElement("div",{role:"listbox",id:"".concat(u,"_list"),style:{height:0,width:0,overflow:"hidden"}},G(_-1),G(_),G(_+1)),a.createElement(J.Z,{itemKey:"key",ref:R,data:M,height:O,itemHeight:K,fullHeight:!1,onMouseDown:T,onScroll:g,virtual:k},(function(e,n){var t,l=e.group,u=e.groupOption,s=e.data,d=e.label,p=e.value,v=s.key;if(l)return a.createElement("div",{className:c()(D,"".concat(D,"-group"))},void 0!==d?d:v);var m=s.disabled,h=s.title,y=(s.children,s.style),g=s.className,b=(0,f.Z)(s,Q),x=(0,i.Z)(b,U),C=N.has(p),E="".concat(D,"-option"),w=c()(D,E,g,(t={},(0,r.Z)(t,"".concat(E,"-grouped"),u),(0,r.Z)(t,"".concat(E,"-active"),_===n&&!m),(0,r.Z)(t,"".concat(E,"-disabled"),m),(0,r.Z)(t,"".concat(E,"-selected"),C),t)),S=W(e),k=!Z||"function"===typeof Z||C,O="number"===typeof S?S:S||p,P="string"===typeof O||"number"===typeof O?O.toString():void 0;return void 0!==h&&(P=h),a.createElement("div",(0,o.Z)({},x,{"aria-selected":C,className:w,title:P,onMouseMove:function(){_===n||m||V(n)},onClick:function(){m||F(p)},style:y}),a.createElement("div",{className:"".concat(E,"-content")},O),a.isValidElement(Z)||C,k&&a.createElement(I,{className:"".concat(D,"-option-state"),customizeIcon:Z,customizeIconProps:{isSelected:C}},C?"\u2713":null))})))},ne=a.forwardRef(ee);ne.displayName="OptionList";var te=ne,re=function(){return null};re.isSelectOption=!0;var oe=re,ae=function(){return null};ae.isSelectOptGroup=!0;var ie=ae,le=t(50344),ce=["children","value"],ue=["children"];function se(e){var n=e.key,t=e.props,r=t.children,o=t.value,a=(0,f.Z)(t,ce);return(0,s.Z)({key:n,value:void 0!==o?o:n,children:r},a)}function de(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,le.Z)(e).map((function(e,t){if(!a.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,l=i.children,c=(0,f.Z)(i,ue);return n||!r?se(e):(0,s.Z)((0,s.Z)({key:"__RC_SELECT_GRP__".concat(null===o?t:o,"__"),label:o},c),{},{options:de(l)})})).filter((function(e){return e}))}function fe(e,n,t){return a.useMemo((function(){var r=e;!e&&(r=de(n));var o=new Map,a=new Map;return function e(n){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i1&&void 0!==arguments[1]?arguments[1]:{},t=n.fieldNames,r=n.childrenAsData,o=[],a=E(t,!1),i=a.label,l=a.value,c=a.options;function u(e,n){e.forEach((function(e){var t=e[i];if(n||!(c in e)){var a=e[l];o.push({key:C(e,o.length),groupOption:n,data:e,label:t,value:a})}else{var s=t;void 0===s&&r&&(s=e.label),o.push({key:C(e,o.length),group:!0,data:e,label:s}),u(e[c],!0)}}))}return u(e,!1),o}(Ie,{fieldNames:ne,childrenAsData:Q})}),[Ie,ne,Q]),Me=function(e){var n=de(e);if(Ce(n),W&&(n.length!==Ze.length||n.some((function(e,n){var t;return(null===(t=Ze[n])||void 0===t?void 0:t.value)!==(null===e||void 0===e?void 0:e.value)})))){var t=U?n:n.map((function(e){return e.value})),r=n.map((function(e){return w(Ne(e.value))}));W(J?t:t[0],J?r:r[0])}},Re=a.useState(null),Te=(0,d.Z)(Re,2),Le=Te[0],je=Te[1],Ae=a.useState(0),He=(0,d.Z)(Ae,2),_e=He[0],ze=He[1],Ve=void 0!==L?L:"combobox"!==i,Fe=a.useCallback((function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.source,o=void 0===r?"keyboard":r;ze(n),v&&"combobox"===i&&null!==e&&"keyboard"===o&&je(String(e))}),[v,i]),Be=function(e,n){var t=function(){var n,t=Ne(e);return[U?{label:null===t||void 0===t?void 0:t[ne.label],value:e,key:null!==(n=t.key)&&void 0!==n?n:e}:e,w(t)]};if(n&&N){var r=t(),o=(0,d.Z)(r,2),a=o[0],i=o[1];N(a,i)}else if(!n&&S){var l=t(),c=(0,d.Z)(l,2),u=c[0],s=c[1];S(u,s)}},Ue=ye((function(e,n){var t,r=!J||n.selected;t=r?J?[].concat((0,u.Z)(Ze),[e]):[e]:Ze.filter((function(n){return n.value!==e})),Me(t),Be(e,r),"combobox"===i?je(""):G&&!Z||(ie(""),je(""))})),We=a.useMemo((function(){var e=!1!==A&&!1!==O;return(0,s.Z)((0,s.Z)({},le),{},{flattenOptions:De,onActiveValue:Fe,defaultActiveFirstOption:Ve,onSelect:Ue,menuItemSelectedIcon:j,rawValues:ke,fieldNames:ne,virtual:e,listHeight:_,listItemHeight:V,childrenAsData:Q})}),[le,De,Fe,Ve,Ue,j,ke,ne,A,O,_,V,Q]);return a.createElement($.Provider,{value:We},a.createElement(X,(0,o.Z)({},Y,{id:q,prefixCls:c,ref:n,omitDomProps:xe,mode:i,displayValues:Se,onDisplayValuesChange:function(e,n){Me(e),"remove"!==n.type&&"clear"!==n.type||n.values.forEach((function(e){Be(e.value,!1)}))},searchValue:ae,onSearch:function(e,n){if(ie(e),je(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===i&&Me(e),null===b||void 0===b||b(e));else{var t=(e||"").trim();if(t){var r=Array.from(new Set([].concat((0,u.Z)(ke),[t])));Me(r),Be(t,!0),ie("")}}},onSearchSplit:function(e){var n=e;"tags"!==i&&(n=e.map((function(e){var n=ue.get(e);return null===n||void 0===n?void 0:n.value})).filter((function(e){return void 0!==e})));var t=Array.from(new Set([].concat((0,u.Z)(ke),(0,u.Z)(n))));Me(t),t.forEach((function(e){Be(e,!0)}))},dropdownMatchSelectWidth:O,OptionList:te,emptyOptions:!De.length,activeValue:Le,activeDescendantId:"".concat(q,"_list_").concat(_e)})))}));var Ee=Ce;Ee.Option=oe,Ee.OptGroup=ie;var we=Ee,Ze=t(59844),Ne=t(80882),Se=t(50888),ke=t(63606),Oe=t(97937),Pe=t(4340),Ke=t(68795);var Ie=t(97647),De=t(33603),Me=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=t}(c,h||1,o,a);return l.createElement(L,(0,i.Z)({},e,{colSpan:m,rowSpan:h,hovering:y,ref:n,onHover:r}))}));j.displayName="WrappedCell";var A=j,H=l.createContext(null);function _(e,n,t,r,o){var a,i,l=t[e]||{},c=t[n]||{};"left"===l.fixed?a=r.left[e]:"right"===c.fixed&&(i=r.right[n]);var u=!1,s=!1,d=!1,f=!1,p=t[n+1],v=t[e-1];if("rtl"===o){if(void 0!==a)f=!(v&&"left"===v.fixed);else if(void 0!==i){d=!(p&&"right"===p.fixed)}}else if(void 0!==a){u=!(p&&"left"===p.fixed)}else if(void 0!==i){s=!(v&&"right"===v.fixed)}return{fixLeft:a,fixRight:i,lastFixLeft:u,firstFixRight:s,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}function z(e){var n,t=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,c=e.cellComponent,u=e.onHeaderRow,s=e.index,d=l.useContext(H),f=d.prefixCls,p=d.direction;u&&(n=u(t.map((function(e){return e.column})),s));var v=k(t.map((function(e){return e.column})));return l.createElement(a,n,t.map((function(e,n){var t,a=e.column,u=_(e.colStart,e.colEnd,o,r,p);return a&&a.onHeaderCell&&(t=e.column.onHeaderCell(a)),l.createElement(A,(0,i.Z)({},e,{ellipsis:a.ellipsis,align:a.align,component:c,prefixCls:f,key:v[n]},u,{additionalProps:t,rowType:"header"}))})))}z.displayName="HeaderRow";var V=z;var F=function(e){var n=e.stickyOffsets,t=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=l.useContext(H),i=a.prefixCls,c=a.getComponent,u=l.useMemo((function(){return function(e){var n=[];!function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n[o]=n[o]||[];var a=r;return t.filter(Boolean).map((function(t){var r={key:t.key,className:t.className||"",children:t.title,column:t,colStart:a},i=1,l=t.children;return l&&l.length>0&&(i=e(l,a,o+1).reduce((function(e,n){return e+n}),0),r.hasSubColumns=!0),"colSpan"in t&&(i=t.colSpan),"rowSpan"in t&&(r.rowSpan=t.rowSpan),r.colSpan=i,r.colEnd=r.colStart+i-1,n[o].push(r),a+=i,i}))}(e,0);for(var t=n.length,r=function(e){n[e].forEach((function(n){"rowSpan"in n||n.hasSubColumns||(n.rowSpan=t-e)}))},o=0;o1?o-1:0),i=1;i0?[].concat((0,f.Z)(e),(0,f.Z)(se(o).map((function(e){return(0,d.Z)({fixed:r},e)})))):[].concat((0,f.Z)(e),[(0,d.Z)((0,d.Z)({},n),{},{fixed:r})])}),[])}var de=function(e,n){var t=e.prefixCls,r=e.columns,a=e.children,i=e.expandable,c=e.expandedKeys,u=e.getRowKey,s=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,v=e.expandIconColumnIndex,m=e.direction,h=e.expandRowByClick,y=e.columnWidth,g=e.fixed,b=l.useMemo((function(){return r||ue(a)}),[r,a]),x=l.useMemo((function(){if(i){var e,n=b.slice();if(!n.includes(ie)){var r=v||0;r>=0&&n.splice(r,0,ie)}0;var a=n.indexOf(ie);n=n.filter((function(e,n){return e!==ie||n===a}));var d,m=b[a];d="left"!==g&&!g||v?"right"!==g&&!g||v!==b.length?m?m.fixed:null:"right":"left";var x=(e={},(0,o.Z)(e,ae,{className:"".concat(t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,o.Z)(e,"title",""),(0,o.Z)(e,"fixed",d),(0,o.Z)(e,"className","".concat(t,"-row-expand-icon-cell")),(0,o.Z)(e,"width",y),(0,o.Z)(e,"render",(function(e,n,r){var o=u(n,r),a=c.has(o),i=!p||p(n),d=f({prefixCls:t,expanded:a,expandable:i,record:n,onExpand:s});return h?l.createElement("span",{onClick:function(e){return e.stopPropagation()}},d):d})),e);return n.map((function(e){return e===ie?x:e}))}return b.filter((function(e){return e!==ie}))}),[i,b,u,c,f,m]),C=l.useMemo((function(){var e=x;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,x,m]),E=l.useMemo((function(){return"rtl"===m?function(e){return e.map((function(e){var n=e.fixed,t=(0,w.Z)(e,ce),r=n;return"left"===n?r="right":"right"===n&&(r="left"),(0,d.Z)({fixed:r},t)}))}(se(C)):se(C)}),[C,m]);return[C,E]};function fe(e){var n=(0,l.useRef)(e),t=(0,l.useState)({}),r=(0,a.Z)(t,2)[1],o=(0,l.useRef)(null),i=(0,l.useRef)([]);return(0,l.useEffect)((function(){return function(){o.current=null}}),[]),[n.current,function(e){i.current.push(e);var t=Promise.resolve();o.current=t,t.then((function(){if(o.current===t){var e=i.current,a=n.current;i.current=[],e.forEach((function(e){n.current=e(n.current)})),o.current=null,a!==n.current&&r({})}}))}]}var pe=function(e,n,t){return(0,l.useMemo)((function(){for(var r=[],o=[],a=0,i=0,l=0;l=0;a-=1){var c=n[a],u=t&&t[a],s=u&&u[ae];if(c||s||o){var d=s||{},f=(d.columnType,(0,w.Z)(d,ve));r.unshift(l.createElement("col",(0,i.Z)({key:a,style:{width:c}},f))),o=!0}}return l.createElement("colgroup",null,r)};var he=function(e){var n=e.className,t=e.children;return l.createElement("div",{className:n},t)};var ye=["children"];var ge=l.createContext({});function be(e){return e.children}be.Row=function(e){var n=e.children,t=(0,w.Z)(e,ye);return l.createElement("tr",t,n)},be.Cell=function(e){var n=e.className,t=e.index,r=e.children,o=e.colSpan,a=void 0===o?1:o,c=e.rowSpan,u=e.align,s=l.useContext(H),d=s.prefixCls,f=s.direction,p=l.useContext(ge),v=p.scrollColumnIndex,m=p.stickyOffsets,h=t+a-1+1===v?a+1:a,y=_(t,t+h-1,p.flattenColumns,m,f);return l.createElement(A,(0,i.Z)({className:n,index:t,component:"td",prefixCls:d,record:null,dataIndex:null,align:u,colSpan:h,rowSpan:c,render:function(){return r}},y))};var xe=be;var Ce=function(e){var n=e.children,t=e.stickyOffsets,r=e.flattenColumns,o=l.useContext(H).prefixCls,a=r.length-1,i=r[a],c=l.useMemo((function(){return{stickyOffsets:t,flattenColumns:r,scrollColumnIndex:(null===i||void 0===i?void 0:i.scrollbar)?a:null}}),[i,r,a,t]);return l.createElement(ge.Provider,{value:c},l.createElement("tfoot",{className:"".concat(o,"-summary")},n))},Ee=xe;function we(e){var n,t=e.prefixCls,r=e.record,a=e.onExpand,i=e.expanded,c=e.expandable,s="".concat(t,"-row-expand-icon");if(!c)return l.createElement("span",{className:u()(s,"".concat(t,"-row-spaced"))});return l.createElement("span",{className:u()(s,(n={},(0,o.Z)(n,"".concat(t,"-row-expanded"),i),(0,o.Z)(n,"".concat(t,"-row-collapsed"),!i),n)),onClick:function(e){a(r,e),e.stopPropagation()}})}var Ze=t(64019);function Ne(e){var n=e.getBoundingClientRect(),t=document.documentElement;return{left:n.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||document.body.clientTop||0)}}var Se=function(e,n){var t,r,i=e.scrollBodyRef,c=e.onScroll,s=e.offsetScroll,f=e.container,p=l.useContext(H).prefixCls,v=(null===(t=i.current)||void 0===t?void 0:t.scrollWidth)||0,m=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,h=v&&m*(m/v),y=l.useRef(),g=fe({scrollLeft:0,isHiddenScrollBar:!1}),b=(0,a.Z)(g,2),C=b[0],E=b[1],w=l.useRef({delta:0,x:0}),Z=l.useState(!1),N=(0,a.Z)(Z,2),S=N[0],k=N[1],O=function(){k(!1)},P=function(e){var n,t=(e||(null===(n=window)||void 0===n?void 0:n.event)).buttons;if(S&&0!==t){var r=w.current.x+e.pageX-w.current.x-w.current.delta;r<=0&&(r=0),r+h>=m&&(r=m-h),c({scrollLeft:r/m*(v+2)}),w.current.x=e.pageX}else S&&k(!1)},K=function(){if(i.current){var e=Ne(i.current).top,n=e+i.current.offsetHeight,t=f===window?document.documentElement.scrollTop+window.innerHeight:Ne(f).top+f.clientHeight;n-(0,x.Z)()<=t||e>=t-s?E((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!0})})):E((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!1})}))}},I=function(e){E((function(n){return(0,d.Z)((0,d.Z)({},n),{},{scrollLeft:e/v*m||0})}))};return l.useImperativeHandle(n,(function(){return{setScrollLeft:I}})),l.useEffect((function(){var e=(0,Ze.Z)(document.body,"mouseup",O,!1),n=(0,Ze.Z)(document.body,"mousemove",P,!1);return K(),function(){e.remove(),n.remove()}}),[h,S]),l.useEffect((function(){var e=(0,Ze.Z)(f,"scroll",K,!1),n=(0,Ze.Z)(window,"resize",K,!1);return function(){e.remove(),n.remove()}}),[f]),l.useEffect((function(){C.isHiddenScrollBar||E((function(e){var n=i.current;return n?(0,d.Z)((0,d.Z)({},e),{},{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):e}))}),[C.isHiddenScrollBar]),v<=m||!h||C.isHiddenScrollBar?null:l.createElement("div",{style:{height:(0,x.Z)(),width:m,bottom:s},className:"".concat(p,"-sticky-scroll")},l.createElement("div",{onMouseDown:function(e){e.persist(),w.current.delta=e.pageX-C.scrollLeft,w.current.x=0,k(!0),e.preventDefault()},ref:y,className:u()("".concat(p,"-sticky-scroll-bar"),(0,o.Z)({},"".concat(p,"-sticky-scroll-bar-active"),S)),style:{width:"".concat(h,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))},ke=l.forwardRef(Se),Oe=(0,t(98924).Z)()?window:null;var Pe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var Ke=l.forwardRef((function(e,n){var t=e.className,r=e.noData,a=e.columns,i=e.flattenColumns,c=e.colWidths,s=e.columCount,p=e.stickyOffsets,v=e.direction,m=e.fixHeader,h=e.stickyTopOffset,y=e.stickyBottomOffset,g=e.stickyClassName,b=e.onScroll,x=e.maxContentScroll,C=e.children,E=(0,w.Z)(e,Pe),N=l.useContext(H),S=N.prefixCls,k=N.scrollbarSize,O=N.isSticky,P=O&&!m?0:k,K=l.useRef(null),I=l.useCallback((function(e){(0,Z.mH)(n,e),(0,Z.mH)(K,e)}),[]);l.useEffect((function(){var e;function n(e){var n=e.currentTarget,t=e.deltaX;t&&(b({currentTarget:n,scrollLeft:n.scrollLeft+t}),e.preventDefault())}return null===(e=K.current)||void 0===e||e.addEventListener("wheel",n),function(){var e;null===(e=K.current)||void 0===e||e.removeEventListener("wheel",n)}}),[]);var D=l.useMemo((function(){return i.every((function(e){return e.width>=0}))}),[i]),M=i[i.length-1],R={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(S,"-cell-scrollbar")}}},T=(0,l.useMemo)((function(){return P?[].concat((0,f.Z)(a),[R]):a}),[P,a]),L=(0,l.useMemo)((function(){return P?[].concat((0,f.Z)(i),[R]):i}),[P,i]),j=(0,l.useMemo)((function(){var e=p.right,n=p.left;return(0,d.Z)((0,d.Z)({},p),{},{left:"rtl"===v?[].concat((0,f.Z)(n.map((function(e){return e+P}))),[0]):n,right:"rtl"===v?e:[].concat((0,f.Z)(e.map((function(e){return e+P}))),[0]),isSticky:O})}),[P,p,O]),A=function(e,n){return(0,l.useMemo)((function(){for(var t=[],r=0;r0)):(an(a>0),sn(a=0||n.relatedTarget.className.indexOf("".concat(a,"-item"))>=0)||o(e.getValidValue()))},e.go=function(n){""!==e.state.goInputText&&(n.keyCode!==Be&&"click"!==n.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,_e.Z)(t,[{key:"getValidValue",value:function(){var e=this.state.goInputText;return!e||isNaN(e)?void 0:Number(e)}},{key:"getPageSizeOptions",value:function(){var e=this.props,n=e.pageSize,t=e.pageSizeOptions;return t.some((function(e){return e.toString()===n.toString()}))?t:t.concat([n.toString()]).sort((function(e,n){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(n))?0:Number(n))}))}},{key:"render",value:function(){var e=this,n=this.props,t=n.pageSize,r=n.locale,o=n.rootPrefixCls,a=n.changeSize,i=n.quickGo,c=n.goButton,u=n.selectComponentClass,s=n.buildOptionText,d=n.selectPrefixCls,f=n.disabled,p=this.state.goInputText,v="".concat(o,"-options"),m=u,h=null,y=null,g=null;if(!a&&!i)return null;var b=this.getPageSizeOptions();if(a&&m){var x=b.map((function(n,t){return l.createElement(m.Option,{key:t,value:n.toString()},(s||e.buildOptionText)(n))}));h=l.createElement(m,{disabled:f,prefixCls:d,showSearch:!1,className:"".concat(v,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(t||b[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},x)}return i&&(c&&(g="boolean"===typeof c?l.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:f,className:"".concat(v,"-quick-jumper-button")},r.jump_to_confirm):l.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),y=l.createElement("div",{className:"".concat(v,"-quick-jumper")},r.jump_to,l.createElement("input",{disabled:f,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,g)),l.createElement("li",{className:"".concat(v)},h,y)}}]),t}(l.Component);Ge.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ye=Ge;function Xe(){}function qe(e){var n=Number(e);return"number"===typeof n&&!isNaN(n)&&isFinite(n)&&Math.floor(n)===n}function Je(e,n,t){var r="undefined"===typeof e?n.pageSize:e;return Math.floor((t.total-1)/r)+1}var $e=function(e){(0,ze.Z)(t,e);var n=(0,Ve.Z)(t);function t(e){var r;(0,He.Z)(this,t),(r=n.call(this,e)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(Je(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,n){var t=r.props.prefixCls,o=e||l.createElement("button",{type:"button","aria-label":n,className:"".concat(t,"-item-link")});return"function"===typeof e&&(o=l.createElement(e,(0,d.Z)({},r.props))),o},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){var n=r.props.total;return qe(e)&&e!==r.state.current&&qe(n)&&n>0},r.shouldDisplayQuickJumper=function(){var e=r.props,n=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&n},r.handleKeyDown=function(e){e.keyCode!==Ue&&e.keyCode!==We||e.preventDefault()},r.handleKeyUp=function(e){var n=r.getValidValue(e);n!==r.state.currentInputValue&&r.setState({currentInputValue:n}),e.keyCode===Be?r.handleChange(n):e.keyCode===Ue?r.handleChange(n-1):e.keyCode===We&&r.handleChange(n+1)},r.handleBlur=function(e){var n=r.getValidValue(e);r.handleChange(n)},r.changePageSize=function(e){var n=r.state.current,t=Je(e,r.state,r.props);n=n>t?t:n,0===t&&(n=r.state.current),"number"===typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:n,currentInputValue:n})),r.props.onShowSizeChange(n,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(n,e)},r.handleChange=function(e){var n=r.props.disabled,t=e;if(r.isValid(t)&&!n){var o=Je(void 0,r.state,r.props);t>o?t=o:t<1&&(t=1),"current"in r.props||r.setState({current:t,currentInputValue:t});var a=r.state.pageSize;return r.props.onChange(t,a),t}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?t-2:0),o=2;o=t?t:Number(n)}},{key:"getShowSizeChanger",value:function(){var e=this.props,n=e.showSizeChanger,t=e.total,r=e.totalBoundaryShowSizeChanger;return"undefined"!==typeof n?n:t>r}},{key:"renderPrev",value:function(e){var n=this.props,t=n.prevIcon,r=(0,n.itemRender)(e,"prev",this.getItemIcon(t,"prev page")),o=!this.hasPrev();return(0,l.isValidElement)(r)?(0,l.cloneElement)(r,{disabled:o}):r}},{key:"renderNext",value:function(e){var n=this.props,t=n.nextIcon,r=(0,n.itemRender)(e,"next",this.getItemIcon(t,"next page")),o=!this.hasNext();return(0,l.isValidElement)(r)?(0,l.cloneElement)(r,{disabled:o}):r}},{key:"render",value:function(){var e=this,n=this.props,t=n.prefixCls,r=n.className,a=n.style,c=n.disabled,s=n.hideOnSinglePage,d=n.total,f=n.locale,p=n.showQuickJumper,v=n.showLessItems,m=n.showTitle,h=n.showTotal,y=n.simple,g=n.itemRender,b=n.showPrevNextJumpers,x=n.jumpPrevIcon,C=n.jumpNextIcon,E=n.selectComponentClass,w=n.selectPrefixCls,Z=n.pageSizeOptions,N=this.state,S=N.current,k=N.pageSize,O=N.currentInputValue;if(!0===s&&d<=k)return null;var P=Je(void 0,this.state,this.props),K=[],I=null,D=null,M=null,R=null,T=null,L=p&&p.goButton,j=v?1:2,A=S-1>0?S-1:0,H=S+1=2*j&&3!==S&&(K[0]=(0,l.cloneElement)(K[0],{className:"".concat(t,"-item-after-jump-prev")}),K.unshift(I)),P-S>=2*j&&S!==P-2&&(K[K.length-1]=(0,l.cloneElement)(K[K.length-1],{className:"".concat(t,"-item-before-jump-next")}),K.push(D)),1!==W&&K.unshift(M),G!==P&&K.push(R)}var q=null;h&&(q=l.createElement("li",{className:"".concat(t,"-total-text")},h(d,[0===d?0:(S-1)*k+1,S*k>d?d:S*k])));var J=!this.hasPrev()||!P,$=!this.hasNext()||!P;return l.createElement("ul",(0,i.Z)({className:u()(t,r,(0,o.Z)({},"".concat(t,"-disabled"),c)),style:a,unselectable:"unselectable",ref:this.savePaginationNode},_),q,l.createElement("li",{title:m?f.prev_page:null,onClick:this.prev,tabIndex:J?null:0,onKeyPress:this.runIfEnterPrev,className:u()("".concat(t,"-prev"),(0,o.Z)({},"".concat(t,"-disabled"),J)),"aria-disabled":J},this.renderPrev(A)),K,l.createElement("li",{title:m?f.next_page:null,onClick:this.next,tabIndex:$?null:0,onKeyPress:this.runIfEnterNext,className:u()("".concat(t,"-next"),(0,o.Z)({},"".concat(t,"-disabled"),$)),"aria-disabled":$},this.renderNext(H)),l.createElement(Ye,{disabled:c,locale:f,rootPrefixCls:t,selectComponentClass:E,selectPrefixCls:w,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:S,pageSize:k,pageSizeOptions:Z,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:L}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t={};if("current"in e&&(t.current=e.current,e.current!==n.current&&(t.currentInputValue=t.current)),"pageSize"in e&&e.pageSize!==n.pageSize){var r=n.current,o=Je(e.pageSize,n,e);r=r>o?o:r,"current"in e||(t.current=r,t.currentInputValue=r),t.pageSize=e.pageSize}return t}}]),t}(l.Component);$e.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Xe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Xe,locale:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"},style:{},itemRender:function(e,n,t){return t},totalBoundaryShowSizeChanger:50};var Qe=$e,en=t(62906),nn=t(6171),tn=t(18073),rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},on=t(42135),an=function(e,n){return l.createElement(on.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:rn}))};an.displayName="DoubleLeftOutlined";var ln=l.forwardRef(an),cn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},un=function(e,n){return l.createElement(on.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:cn}))};un.displayName="DoubleRightOutlined";var sn=l.forwardRef(un),dn=t(38939),fn=function(e){return l.createElement(dn.Z,(0,i.Z)({size:"small"},e))};fn.Option=dn.Z.Option;var pn=fn,vn=t(23715),mn=t(59844),hn=t(25378),yn=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0?u:e}),h=Math.ceil((u||e)/m.pageSize);m.current>h&&(m.current=h||1);var y=function(e,n){v({current:null!==e&&void 0!==e?e:1,pageSize:n||m.pageSize})};return!1===n?[{},function(){}]:[(0,i.Z)((0,i.Z)({},m),{onChange:function(e,r){var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),y(e,r),t(e,r||(null===m||void 0===m?void 0:m.pageSize))}}),y]}var Cn=t(84506),En=t(80882),wn=t(97326),Zn=l.createContext(null),Nn=function(e){for(var n=e.prefixCls,t=e.level,r=e.isStart,a=e.isEnd,i="".concat(n,"-indent-unit"),c=[],s=0;s=0&&t.splice(r,1),t}function Rn(e,n){var t=(e||[]).slice();return-1===t.indexOf(n)&&t.push(n),t}function Tn(e){return e.split("-")}function Ln(e,n){return"".concat(e,"-").concat(n)}function jn(e,n){var t=[];return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n.forEach((function(n){var r=n.key,o=n.children;t.push(r),e(o)}))}(n[e].children),t}function An(e){if(e.parent){var n=Tn(e.pos);return Number(n[n.length-1])===e.parent.children.length-1}return!1}function Hn(e,n,t,r,o,a,i,l,c,u){var s,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),v=p.top,m=p.height,h=(("rtl"===u?-1:1)*(((null===o||void 0===o?void 0:o.x)||0)-d)-12)/r,y=l[t.props.eventKey];if(f-1.5?a({dragNode:S,dropNode:k,dropPosition:1})?w=1:O=!1:a({dragNode:S,dropNode:k,dropPosition:0})?w=0:a({dragNode:S,dropNode:k,dropPosition:1})?w=1:O=!1:a({dragNode:S,dropNode:k,dropPosition:1})?w=1:O=!1,{dropPosition:w,dropLevelOffset:Z,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:E,dropContainerKey:0===w?null:(null===(s=y.parent)||void 0===s?void 0:s.key)||null,dropAllowed:O}}function _n(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function zn(e){if(!e)return null;var n;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,r.Z)(e))return(0,g.ZP)(!1,"`checkedKeys` is not an array or an object"),null;n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return n}function Vn(e,n){var t=new Set;function r(e){if(!t.has(e)){var o=n[e];if(o){t.add(e);var a=o.parent;o.node.disabled||a&&r(a.key)}}}return(e||[]).forEach((function(e){r(e)})),(0,f.Z)(t)}var Fn=["children"];function Bn(e,n){return null!==e&&void 0!==e?e:n}function Un(e){var n=e||{},t=n.title||"title";return{title:t,_title:n._title||[t],key:n.key||"key",children:n.children||"children"}}function Wn(e){return function e(n){return(0,re.Z)(n).map((function(n){if(!function(e){return e&&e.type&&e.type.isTreeNode}(n))return(0,g.ZP)(!n,"Tree/TreeNode can only accept TreeNode as children."),null;var t=n.key,r=n.props,o=r.children,a=(0,w.Z)(r,Fn),i=(0,d.Z)({key:t},a),l=e(o);return l.length&&(i.children=l),i})).filter((function(e){return e}))}(e)}function Gn(e,n,t){var r=Un(t),o=r._title,a=r.key,i=r.children,l=new Set(!0===n?[]:n),c=[];return function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t.map((function(u,p){for(var v,m=Ln(r?r.pos:"0",p),h=Bn(u[a],m),y=0;y1&&void 0!==arguments[1]?arguments[1]:{},t=n.initWrapper,r=n.processEntity,o=n.onProcessFinished,a=n.externalGetKey,i=n.childrenPropName,l=n.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,s={},d={},f={posEntities:s,keyEntities:d};return t&&(f=t(f)||f),Yn(e,(function(e){var n=e.node,t=e.index,o=e.pos,a=e.key,i=e.parentPos,l=e.level,c={node:n,nodes:e.nodes,index:t,key:a,pos:o,level:l},u=Bn(a,o);s[o]=c,d[u]=c,c.parent=s[i],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,f)}),{externalGetKey:u,childrenPropName:i,fieldNames:l}),o&&o(f),f}function qn(e,n){var t=n.expandedKeys,r=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,i=n.checkedKeys,l=n.halfCheckedKeys,c=n.dragOverNodeKey,u=n.dropPosition,s=n.keyEntities[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(s?s.pos:""),dragOver:c===e&&0===u,dragOverGapTop:c===e&&-1===u,dragOverGapBottom:c===e&&1===u}}function Jn(e){var n=e.data,t=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,s=e.dragOverGapBottom,f=e.pos,p=e.active,v=e.eventKey,m=(0,d.Z)((0,d.Z)({},n),{},{expanded:t,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:s,pos:f,active:p,key:v});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,g.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function $n(e,n){var t=new Set;return e.forEach((function(e){n.has(e)||t.add(e)})),t}function Qn(e){var n=e||{},t=n.disabled,r=n.disableCheckbox,o=n.checkable;return!(!t&&!r)||!1===o}function et(e,n,t,r){var o,a=[];o=r||Qn;var i,l=new Set(e.filter((function(e){var n=!!t[e];return n||a.push(e),n}))),c=new Map,u=0;return Object.keys(t).forEach((function(e){var n=t[e],r=n.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(n),u=Math.max(u,r)})),(0,g.ZP)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),i=!0===n?function(e,n,t,r){for(var o=new Set(e),a=new Set,i=0;i<=t;i+=1)(n.get(i)||new Set).forEach((function(e){var n=e.key,t=e.node,a=e.children,i=void 0===a?[]:a;o.has(n)&&!r(t)&&i.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,c=t;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!r(t)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(n.key);else{var i=!0,c=!1;(n.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var n=e.key,t=o.has(n);i&&!t&&(i=!1),c||!t&&!a.has(n)||(c=!0)})),i&&o.add(n.key),c&&a.add(n.key),l.add(n.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from($n(a,o))}}(l,c,u,o):function(e,n,t,r,o){for(var a=new Set(e),i=new Set(n),l=0;l<=r;l+=1)(t.get(l)||new Set).forEach((function(e){var n=e.key,t=e.node,r=e.children,l=void 0===r?[]:r;a.has(n)||i.has(n)||o(t)||l.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}));i=new Set;for(var c=new Set,u=r;u>=0;u-=1)(t.get(u)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!o(t)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(n.key);else{var r=!0,l=!1;(n.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var n=e.key,t=a.has(n);r&&!t&&(r=!1),l||!t&&!i.has(n)||(l=!0)})),r||a.delete(n.key),l&&i.add(n.key),c.add(n.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from($n(i,a))}}(l,n.halfCheckedKeys,c,u,o),i}var nt=t(21770),tt=t(32808),rt=t(38504),ot=t(68157),at=t(50132),it=l.createContext(null),lt=it.Provider,ct=it,ut=t(21687),st=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0){var O="button"===m?"".concat(N,"-button"):N;k=v.map((function(e){return"string"===typeof e||"number"===typeof e?l.createElement(pt,{key:e.toString(),prefixCls:O,disabled:g,value:e,checked:p===e},e):l.createElement(pt,{key:"radio-group-value-options-".concat(e.value),prefixCls:O,disabled:e.disabled||g,value:e.value,checked:p===e.value,style:e.style},e.label)}))}var P=x||s,K=u()(S,"".concat(S,"-").concat(y),(t={},(0,o.Z)(t,"".concat(S,"-").concat(P),P),(0,o.Z)(t,"".concat(S,"-rtl"),"rtl"===c),t),f);return l.createElement("div",(0,i.Z)({},(0,mt.Z)(e),{className:K,style:C,onMouseEnter:w,onMouseLeave:Z,id:E,ref:n}),k)}())})),yt=l.memo(ht),gt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=e.length,r=n.length;if(1!==Math.abs(t-r))return{add:!1,key:null};function o(e,n){var t=new Map;e.forEach((function(e){t.set(e,!0)}));var r=n.filter((function(e){return!t.has(e)}));return 1===r.length?r[0]:null}return t ").concat(n);return n}(Z)),l.createElement("div",null,l.createElement("input",{style:pr,disabled:!1===E||v,tabIndex:!1!==E?S:null,onKeyDown:k,onFocus:O,onBlur:P,value:"",onChange:vr,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},l.createElement("div",{className:"".concat(t,"-indent")},l.createElement("div",{ref:T,className:"".concat(t,"-indent-unit")}))),l.createElement(ir.Z,(0,i.Z)({},M,{data:re,itemKey:xr,height:b,fullHeight:!1,virtual:C,itemHeight:x,prefixCls:"".concat(t,"-list"),ref:R,onVisibleChange:function(e,n){var t=new Set(e);n.filter((function(e){return!t.has(e)})).some((function(e){return xr(e)===mr}))&&te()}}),(function(e){var n=e.pos,t=(0,i.Z)({},e.data),r=e.title,o=e.key,a=e.isStart,c=e.isEnd,u=Bn(o,n);delete t.key,delete t.children;var s=qn(u,oe);return l.createElement(sr,(0,i.Z)({},t,s,{title:r,active:!!Z&&o===Z.key,pos:n,data:e.data,isStart:a,isEnd:c,motion:g,motionNodes:o===mr?q:null,motionType:ee,onMotionStart:I,onMotionEnd:te,treeNodeRequiredProps:oe,onMouseMove:function(){K(null)}}))})))},Er=l.forwardRef(Cr);Er.displayName="NodeList";var wr=Er;var Zr=function(e){(0,ze.Z)(t,e);var n=(0,Ve.Z)(t);function t(){var e;(0,He.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],a=e.state,i=a.dragChildrenKeys,l=a.dropPosition,c=a.dropTargetKey,u=a.dropTargetPos,s=a.dropAllowed;if(s){var f=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var p=(0,d.Z)((0,d.Z)({},qn(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.data.key)===c,data:e.state.keyEntities[c].node}),v=-1!==i.indexOf(c);(0,g.ZP)(!v,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var m=Tn(u),h={event:n,node:Jn(p),dragNode:e.dragNode?Jn(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(i),dropToGap:0!==l,dropPosition:l+Number(m[m.length-1])};o||null===f||void 0===f||f(h),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.onNodeClick=function(n,t){var r=e.props.onClick;null===r||void 0===r||r(n,t)},e.onNodeDoubleClick=function(n,t){var r=e.props.onDoubleClick;null===r||void 0===r||r(n,t)},e.onNodeSelect=function(n,t){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,i=o.fieldNames,l=e.props,c=l.onSelect,u=l.multiple,s=t.selected,d=t[i.key],f=!s,p=(r=f?u?Rn(r,d):[d]:Mn(r,d)).map((function(e){var n=a[e];return n?n.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null===c||void 0===c||c(r,{event:"select",selected:f,node:t,selectedNodes:p,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,t,r){var o,a=e.state,i=a.keyEntities,l=a.checkedKeys,c=a.halfCheckedKeys,u=e.props,s=u.checkStrictly,d=u.onCheck,p=t.key,v={event:"check",node:t,checked:r,nativeEvent:n.nativeEvent};if(s){var m=r?Rn(l,p):Mn(l,p);o={checked:m,halfChecked:Mn(c,p)},v.checkedNodes=m.map((function(e){return i[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var h=et([].concat((0,f.Z)(l),[p]),!0,i),y=h.checkedKeys,g=h.halfCheckedKeys;if(!r){var b=new Set(y);b.delete(p);var x=et(Array.from(b),{checked:!1,halfCheckedKeys:g},i);y=x.checkedKeys,g=x.halfCheckedKeys}o=y,v.checkedNodes=[],v.checkedNodesPositions=[],v.halfCheckedKeys=g,y.forEach((function(e){var n=i[e];if(n){var t=n.node,r=n.pos;v.checkedNodes.push(t),v.checkedNodesPositions.push({node:t,pos:r})}})),e.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:g})}null===d||void 0===d||d(o,v)},e.onNodeLoad=function(n){var t=n.key,r=new Promise((function(r,o){e.setState((function(a){var i=a.loadedKeys,l=void 0===i?[]:i,c=a.loadingKeys,u=void 0===c?[]:c,s=e.props,d=s.loadData,f=s.onLoad;return d&&-1===l.indexOf(t)&&-1===u.indexOf(t)?(d(n).then((function(){var o=Rn(e.state.loadedKeys,t);null===f||void 0===f||f(o,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:Mn(e.loadingKeys,t)}})),r()})).catch((function(n){if(e.setState((function(e){return{loadingKeys:Mn(e.loadingKeys,t)}})),e.loadingRetryTimes[t]=(e.loadingRetryTimes[t]||0)+1,e.loadingRetryTimes[t]>=10){var a=e.state.loadedKeys;(0,g.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:Rn(a,t)}),r()}o(n)})),{loadingKeys:Rn(u,t)}):null}))}));return r.catch((function(){})),r},e.onNodeMouseEnter=function(n,t){var r=e.props.onMouseEnter;null===r||void 0===r||r({event:n,node:t})},e.onNodeMouseLeave=function(n,t){var r=e.props.onMouseLeave;null===r||void 0===r||r({event:n,node:t})},e.onNodeContextMenu=function(n,t){var r=e.props.onRightClick;r&&(n.preventDefault(),r({event:n,node:t}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var t=arguments.length,r=new Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,a=!0,i={};Object.keys(n).forEach((function(t){t in e.props?a=!1:(o=!0,i[t]=n[t])})),!o||t&&!a||e.setState((0,d.Z)((0,d.Z)({},i),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,_e.Z)(t,[{key:"componentDidMount",value:function(){this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,n,t=this.state,a=t.focused,c=t.flattenNodes,s=t.keyEntities,d=t.draggingNodeKey,f=t.activeKey,p=t.dropLevelOffset,m=t.dropContainerKey,h=t.dropTargetKey,y=t.dropPosition,g=t.dragOverNodeKey,b=t.indent,x=this.props,C=x.prefixCls,E=x.className,w=x.style,Z=x.showLine,N=x.focusable,S=x.tabIndex,k=void 0===S?0:S,O=x.selectable,P=x.showIcon,K=x.icon,I=x.switcherIcon,D=x.draggable,M=x.checkable,R=x.checkStrictly,T=x.disabled,L=x.motion,j=x.loadData,A=x.filterTreeNode,H=x.height,_=x.itemHeight,z=x.virtual,V=x.titleRender,F=x.dropIndicatorRender,B=x.onContextMenu,U=x.onScroll,W=x.direction,G=(0,v.Z)(this.props,{aria:!0,data:!0});return D&&(n="object"===(0,r.Z)(D)?D:"function"===typeof D?{nodeDraggable:D}:{}),l.createElement(Zn.Provider,{value:{prefixCls:C,selectable:O,showIcon:P,icon:K,switcherIcon:I,draggable:n,draggingNodeKey:d,checkable:M,checkStrictly:R,disabled:T,keyEntities:s,dropLevelOffset:p,dropContainerKey:m,dropTargetKey:h,dropPosition:y,dragOverNodeKey:g,indent:b,direction:W,dropIndicatorRender:F,loadData:j,filterTreeNode:A,titleRender:V,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},l.createElement("div",{role:"tree",className:u()(C,E,(e={},(0,o.Z)(e,"".concat(C,"-show-line"),Z),(0,o.Z)(e,"".concat(C,"-focused"),a),(0,o.Z)(e,"".concat(C,"-active-focused"),null!==f),e))},l.createElement(wr,(0,i.Z)({ref:this.listRef,prefixCls:C,style:w,data:c,disabled:T,selectable:O,checkable:!!M,motion:L,dragging:null!==d,height:H,itemHeight:_,virtual:z,focusable:N,focused:a,tabIndex:k,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B,onScroll:U},this.getTreeNodeRequiredProps(),G))))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t,r=n.prevProps,a={prevProps:e};function i(n){return!r&&n in e||r&&r[n]!==e[n]}var l=n.fieldNames;if(i("fieldNames")&&(l=Un(e.fieldNames),a.fieldNames=l),i("treeData")?t=e.treeData:i("children")&&((0,g.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),t=Wn(e.children)),t){a.treeData=t;var c=Xn(t,{fieldNames:l});a.keyEntities=(0,d.Z)((0,o.Z)({},mr,yr),c.keyEntities)}var u,s=a.keyEntities||n.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Vn(e.expandedKeys,s):e.expandedKeys;else if(!r&&e.defaultExpandAll){var f=(0,d.Z)({},s);delete f[mr],a.expandedKeys=Object.keys(f).map((function(e){return f[e].key}))}else!r&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Vn(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,t||a.expandedKeys){var p=Gn(t||n.treeData,a.expandedKeys||n.expandedKeys,l);a.flattenNodes=p}if((e.selectable&&(i("selectedKeys")?a.selectedKeys=_n(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(a.selectedKeys=_n(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?u=zn(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=zn(e.defaultCheckedKeys)||{}:t&&(u=zn(e.checkedKeys)||{checkedKeys:n.checkedKeys,halfCheckedKeys:n.halfCheckedKeys}),u)){var v=u,m=v.checkedKeys,h=void 0===m?[]:m,y=v.halfCheckedKeys,b=void 0===y?[]:y;if(!e.checkStrictly){var x=et(h,!0,s);h=x.checkedKeys,b=x.halfCheckedKeys}a.checkedKeys=h,a.halfCheckedKeys=b}return i("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),t}(l.Component);Zr.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,t=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-t*r;break;case 1:o.bottom=0,o.left=-t*r;break;case 0:o.bottom=0,o.left=r}return l.createElement("div",{style:o})},allowDrop:function(){return!0}},Zr.TreeNode=Dn;var Nr=Zr,Sr=t(23279),kr=t.n(Sr),Or={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Pr=function(e,n){return l.createElement(on.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Or}))};Pr.displayName="FileOutlined";var Kr=l.forwardRef(Pr),Ir={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Dr=function(e,n){return l.createElement(on.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Ir}))};Dr.displayName="FolderOpenOutlined";var Mr=l.forwardRef(Dr),Rr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Tr=function(e,n){return l.createElement(on.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Rr}))};Tr.displayName="FolderOutlined";var Lr,jr=l.forwardRef(Tr);function Ar(e,n){e.forEach((function(e){var t=e.key,r=e.children;!1!==n(t,e)&&Ar(r||[],n)}))}function Hr(e){var n=e.treeData,t=e.expandedKeys,r=e.startKey,o=e.endKey,a=[],i=Lr.None;if(r&&r===o)return[r];if(!r||!o)return[];return Ar(n,(function(e){if(i===Lr.End)return!1;if(function(e){return e===r||e===o}(e)){if(a.push(e),i===Lr.None)i=Lr.Start;else if(i===Lr.Start)return i=Lr.End,!1}else i===Lr.Start&&a.push(e);return-1!==t.indexOf(e)})),a}function _r(e,n){var t=(0,f.Z)(n),r=[];return Ar(e,(function(e,n){var o=t.indexOf(e);return-1!==o&&(r.push(n),t.splice(o,1)),!!t.length})),r}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(Lr||(Lr={}));var zr=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0}).closeDropdown&&O(!1),q(M())},clearFilters:$,filters:i.filters,visible:P});else if(i.filterDropdown)X=i.filterDropdown;else{var te=M()||[];X=l.createElement(l.Fragment,null,0===(i.filters||[]).length?l.createElement(uo.Z,{image:uo.Z.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===p?l.createElement(l.Fragment,null,l.createElement(vo,{filterSearch:m,value:W,onChange:Y,tablePrefixCls:t,locale:g}),l.createElement("div",{className:"".concat(t,"-filter-dropdown-tree")},d?l.createElement(tt.Z,{className:"".concat(t,"-filter-dropdown-checkall"),onChange:ee},g.filterCheckall):null,l.createElement(co,{checkable:!0,selectable:!1,blockNode:!0,multiple:d,checkStrictly:!d,className:"".concat(c,"-menu"),onCheck:L,checkedKeys:te,selectedKeys:te,showIcon:!1,treeData:ne({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:W.trim()?function(e){return ho(W,e.title)}:void 0}))):l.createElement(l.Fragment,null,l.createElement(vo,{filterSearch:m,value:W,onChange:Y,tablePrefixCls:t,locale:g}),l.createElement(ot.Z,{multiple:d,prefixCls:"".concat(c,"-menu"),className:Q,onClick:F,onSelect:T,onDeselect:T,selectedKeys:te,getPopupContainer:x,openKeys:H,onOpenChange:V},yo({filters:i.filters||[],prefixCls:r,filteredKeys:M(),filterMultiple:d,searchValue:W}))),l.createElement("div",{className:"".concat(r,"-dropdown-btns")},l.createElement(nr.Z,{type:"link",size:"small",disabled:0===te.length,onClick:$},g.filterReset),l.createElement(nr.Z,{type:"primary",size:"small",onClick:J},g.filterConfirm)))}var re,oe=l.createElement(so,{className:"".concat(r,"-dropdown")},X);re="function"===typeof i.filterIcon?i.filterIcon(k):i.filterIcon?i.filterIcon:l.createElement(er,null);var ae=l.useContext(mn.E_).direction;return l.createElement("div",{className:"".concat(r,"-column")},l.createElement("span",{className:"".concat(t,"-column-title")},b),l.createElement(rt.Z,{overlay:oe,trigger:["click"],visible:P,onVisibleChange:function(e){e&&void 0!==K&&R(K||[]),O(e),e||i.filterDropdown||J()},getPopupContainer:x,placement:"rtl"===ae?"bottomLeft":"bottomRight"},l.createElement("span",{role:"button",tabIndex:-1,className:u()("".concat(r,"-trigger"),{active:k}),onClick:function(e){e.stopPropagation()}},re)))};function bo(e,n,t){var r=[];return(e||[]).forEach((function(e,o){var a,i=At(o,t);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){var l=e.filteredValue;"filterDropdown"in e||(l=null!==(a=null===l||void 0===l?void 0:l.map(String))&&void 0!==a?a:l),r.push({column:e,key:jt(e,i),filteredKeys:l,forceFiltered:e.filtered})}else r.push({column:e,key:jt(e,i),filteredKeys:n&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat((0,f.Z)(r),(0,f.Z)(bo(e.children,n,i))))})),r}function xo(e,n,t,r,o,a,c,u){return t.map((function(t,s){var d=At(s,u),f=t.filterMultiple,p=void 0===f||f,v=t.filterMode,m=t.filterSearch,h=t;if(h.filters||h.filterDropdown){var y=jt(h,d),g=r.find((function(e){var n=e.key;return y===n}));h=(0,i.Z)((0,i.Z)({},h),{title:function(r){return l.createElement(go,{tablePrefixCls:e,prefixCls:"".concat(e,"-filter"),dropdownPrefixCls:n,column:h,columnKey:y,filterState:g,filterMultiple:p,filterMode:v,filterSearch:m,triggerFilter:o,locale:c,getPopupContainer:a},Ht(t.title,r))}})}return"children"in h&&(h=(0,i.Z)((0,i.Z)({},h),{children:xo(e,n,h.children,r,o,a,c,d)})),h}))}function Co(e){var n=[];return(e||[]).forEach((function(e){var t=e.value,r=e.children;n.push(t),r&&(n=[].concat((0,f.Z)(n),(0,f.Z)(Co(r))))})),n}function Eo(e){var n={};return e.forEach((function(e){var t=e.key,r=e.filteredKeys,o=e.column,a=o.filters;if(o.filterDropdown)n[t]=r||null;else if(Array.isArray(r)){var i=Co(a);n[t]=i.filter((function(e){return r.includes(String(e))}))}else n[t]=null})),n}function wo(e,n){return n.reduce((function(e,n){var t=n.column,r=t.onFilter,o=t.filters,a=n.filteredKeys;return r&&a&&a.length?e.filter((function(e){return a.some((function(n){var t=Co(o),a=t.findIndex((function(e){return String(e)===String(n)})),i=-1!==a?t[a]:n;return r(i,e)}))})):e}),e)}var Zo=function(e){var n=e.prefixCls,t=e.dropdownPrefixCls,r=e.mergedColumns,o=e.onFilterChange,i=e.getPopupContainer,c=e.locale,u=l.useState(bo(r,!0)),s=(0,a.Z)(u,2),d=s[0],f=s[1],p=l.useMemo((function(){var e=bo(r,!1),n=e.every((function(e){return void 0===e.filteredKeys}));if(n)return d;var t=e.every((function(e){return void 0!==e.filteredKeys}));return(0,ut.Z)(n||t,"Table","`FilteredKeys` should all be controlled or not controlled."),e}),[r,d]),v=l.useCallback((function(){return Eo(p)}),[p]),m=function(e){var n=p.filter((function(n){return n.key!==e.key}));n.push(e),f(n),o(Eo(n),n)};return[function(e){return xo(n,t,e,p,m,i,c)},p,v]};function No(e,n){return e.map((function(e){var t=(0,i.Z)({},e);return t.title=Ht(e.title,n),"children"in t&&(t.children=No(t.children,n)),t}))}function So(e){return[l.useCallback((function(n){return No(n,e)}),[e])]}var ko=function(e){return function(n){var t,r=n.prefixCls,a=n.onExpand,i=n.record,c=n.expanded,s=n.expandable,d="".concat(r,"-row-expand-icon");return l.createElement("button",{type:"button",onClick:function(e){a(i,e),e.stopPropagation()},className:u()(d,(t={},(0,o.Z)(t,"".concat(d,"-spaced"),!s),(0,o.Z)(t,"".concat(d,"-expanded"),s&&c),(0,o.Z)(t,"".concat(d,"-collapsed"),s&&!c),t)),"aria-label":c?e.collapse:e.expand})}};function Oo(e){return null!==e&&void 0!==e&&e===e.window}function Po(e,n){var t;if("undefined"===typeof window)return 0;var r=n?"scrollTop":"scrollLeft",o=0;return Oo(e)?o=e[n?"pageYOffset":"pageXOffset"]:e instanceof Document?o=e.documentElement[r]:e&&(o=e[r]),e&&!Oo(e)&&"number"!==typeof o&&(o=null===(t=(e.ownerDocument||e).documentElement)||void 0===t?void 0:t[r]),o}function Ko(e,n,t,r){var o=t-n;return(e/=r/2)<1?o/2*e*e*e+n:o/2*((e-=2)*e*e+2)+n}function Io(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.getContainer,r=void 0===t?function(){return window}:t,o=n.callback,a=n.duration,i=void 0===a?450:a,l=r(),c=Po(l,!0),u=Date.now(),s=function n(){var t=Date.now()-u,r=Ko(t>i?i:t,c,e,i);Oo(l)?l.scrollTo(window.pageXOffset,r):l instanceof HTMLDocument||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=r:l.scrollTop=r,t1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var j=l.useMemo((function(){return C||ue(E)}),[C,E]),A=l.useMemo((function(){return j.some((function(e){return e.responsive}))}),[j]),H=(0,hn.Z)(A),_=l.useMemo((function(){var e=new Set(Object.keys(H).filter((function(e){return H[e]})));return j.filter((function(n){return!n.responsive||n.responsive.some((function(n){return e.has(n)}))}))}),[j,H]),z=(0,s.Z)(e,["className","style","columns"]),V=l.useContext(vt.Z),F=l.useContext(mn.E_),B=F.locale,U=void 0===B?Do:B,W=F.renderEmpty,G=F.direction,Y=p||V,X=(0,i.Z)((0,i.Z)({},U.Table),R),q=h||To,J=l.useContext(mn.E_).getPrefixCls,$=J("table",c),Q=J("dropdown",m),ee=(0,i.Z)({childrenColumnName:w,expandIconColumnIndex:K},O),ne=ee.childrenColumnName,te=void 0===ne?"children":ne,re=l.useMemo((function(){return q.some((function(e){var n;return null===(n=e)||void 0===n?void 0:n[te]}))?"nest":P||O&&O.expandedRowRender?"row":null}),[q]),oe={body:l.useRef()},ae=l.useMemo((function(){return"function"===typeof b?b:function(e){var n;return null===(n=e)||void 0===n?void 0:n[b]}}),[b]),ie=function(e,n,t){var o=l.useRef({});return[function(a){if(!o.current||o.current.data!==e||o.current.childrenColumnName!==n||o.current.getRowKey!==t){var i=new Map;function a(e){e.forEach((function(e,o){var l=t(e,o);i.set(l,e),e&&"object"===(0,r.Z)(e)&&n in e&&a(e[n]||[])}))}a(e),o.current={data:e,childrenColumnName:n,kvMap:i,getRowKey:t}}return o.current.kvMap.get(a)}]}(q,te,ae),le=(0,a.Z)(ie,1)[0],ce={},se=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=(0,i.Z)((0,i.Z)({},ce),e);t&&(ce.resetPagination(),r.pagination.current&&(r.pagination.current=1),y&&y.onChange&&y.onChange(1,r.pagination.pageSize)),D&&!1!==D.scrollToFirstRowOnChange&&oe.body.current&&Io(0,{getContainer:function(){return oe.body.current}}),null===Z||void 0===Z||Z(r.pagination,r.filters,r.sorter,{currentDataSource:wo(Yt(q,r.sorterStates,te),r.filterStates),action:n})},de=Xt({prefixCls:$,mergedColumns:_,onSorterChange:function(e,n){se({sorter:e,sorterStates:n},"sort",!1)},sortDirections:M||["ascend","descend"],tableLocale:X,showSorterTooltip:L}),fe=(0,a.Z)(de,4),pe=fe[0],ve=fe[1],me=fe[2],he=fe[3],ye=l.useMemo((function(){return Yt(q,ve,te)}),[q,ve]);ce.sorter=he(),ce.sorterStates=ve;var ge=Zo({prefixCls:$,locale:X,dropdownPrefixCls:Q,mergedColumns:_,onFilterChange:function(e,n){se({filters:e,filterStates:n},"filter",!0)},getPopupContainer:N}),be=(0,a.Z)(ge,3),xe=be[0],Ce=be[1],Ee=be[2],we=wo(ye,Ce);ce.filters=Ee(),ce.filterStates=Ce;var Ze=So(l.useMemo((function(){return(0,i.Z)({},me)}),[me])),Ne=(0,a.Z)(Ze,1)[0],Se=xn(we.length,y,(function(e,n){se({pagination:(0,i.Z)((0,i.Z)({},ce.pagination),{current:e,pageSize:n})},"paginate")})),ke=(0,a.Z)(Se,2),Oe=ke[0],Pe=ke[1];ce.pagination=!1===y?{}:function(e,n){var t={current:n.current,pageSize:n.pageSize},o=e&&"object"===(0,r.Z)(e)?e:{};return Object.keys(o).forEach((function(e){var r=n[e];"function"!==typeof r&&(t[e]=r)})),t}(y,Oe),ce.resetPagination=Pe;var Ke=l.useMemo((function(){if(!1===y||!Oe.pageSize)return we;var e=Oe.current,n=void 0===e?1:e,t=Oe.total,r=Oe.pageSize,o=void 0===r?10:r;return(0,ut.Z)(n>0,"Table","`current` should be positive number."),we.lengtho?((0,ut.Z)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),we.slice((n-1)*o,n*o)):we:we.slice((n-1)*o,n*o)}),[!!y,we,Oe&&Oe.current,Oe&&Oe.pageSize,Oe&&Oe.total]),Ie=Pt(g,{prefixCls:$,data:we,pageData:Ke,getRowKey:ae,getRecordByKey:le,expandType:re,childrenColumnName:te,locale:X,getPopupContainer:N}),De=(0,a.Z)(Ie,2),Me=De[0],Te=De[1];ee.__PARENT_RENDER_ICON__=ee.expandIcon,ee.expandIcon=ee.expandIcon||k||ko(X),"nest"===re&&void 0===ee.expandIconColumnIndex?ee.expandIconColumnIndex=g?1:0:ee.expandIconColumnIndex>0&&g&&(ee.expandIconColumnIndex-=1),"number"!==typeof ee.indentSize&&(ee.indentSize="number"===typeof I?I:15);var Le,He,_e,ze=l.useCallback((function(e){return Ne(Me(xe(pe(e))))}),[pe,xe,Me]);if(!1!==y&&(null===Oe||void 0===Oe?void 0:Oe.total)){var Ve;Ve=Oe.size?Oe.size:"small"===Y||"middle"===Y?"small":void 0;var Fe=function(e){return l.createElement(gn,(0,i.Z)({},Oe,{className:u()("".concat($,"-pagination ").concat($,"-pagination-").concat(e),Oe.className),size:Ve}))},Be="rtl"===G?"left":"right",Ue=Oe.position;if(null!==Ue&&Array.isArray(Ue)){var We=Ue.find((function(e){return-1!==e.indexOf("top")})),Ge=Ue.find((function(e){return-1!==e.indexOf("bottom")})),Ye=Ue.every((function(e){return"none"==="".concat(e)}));We||Ge||Ye||(He=Fe(Be)),We&&(Le=Fe(We.toLowerCase().replace("top",""))),Ge&&(He=Fe(Ge.toLowerCase().replace("bottom","")))}else He=Fe(Be)}"boolean"===typeof S?_e={spinning:S}:"object"===(0,r.Z)(S)&&(_e=(0,i.Z)({spinning:!0},S));var Xe=u()("".concat($,"-wrapper"),(0,o.Z)({},"".concat($,"-wrapper-rtl"),"rtl"===G),d);return l.createElement("div",{ref:n,className:Xe,style:f},l.createElement(Ae.Z,(0,i.Z)({spinning:!1},_e),Le,l.createElement(je,(0,i.Z)({},z,{columns:_,direction:G,expandable:ee,prefixCls:$,className:u()((t={},(0,o.Z)(t,"".concat($,"-middle"),"middle"===Y),(0,o.Z)(t,"".concat($,"-small"),"small"===Y),(0,o.Z)(t,"".concat($,"-bordered"),v),(0,o.Z)(t,"".concat($,"-empty"),0===q.length),t)),data:Ke,rowKey:ae,rowClassName:function(e,n,t){var r;return r="function"===typeof x?u()(x(e,n,t)):u()(x),u()((0,o.Z)({},"".concat($,"-row-selected"),Te.has(ae(e,n))),r)},emptyText:R&&R.emptyText||W("Table"),internalHooks:Re,internalRefs:oe,transformColumns:ze})),He))}var jo=l.forwardRef(Lo);jo.defaultProps={rowKey:"key"},jo.SELECTION_COLUMN=wt,jo.EXPAND_COLUMN=je.EXPAND_COLUMN,jo.SELECTION_ALL=Zt,jo.SELECTION_INVERT=Nt,jo.SELECTION_NONE=St,jo.Column=Mo,jo.ColumnGroup=Ro,jo.Summary=Ee;var Ao=jo},27561:function(e,n,t){var r=t(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},67990:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},23279:function(e,n,t){var r=t(13218),o=t(7771),a=t(14841),i=Math.max,l=Math.min;e.exports=function(e,n,t){var c,u,s,d,f,p,v=0,m=!1,h=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(n){var t=c,r=u;return c=u=void 0,v=n,d=e.apply(r,t)}function b(e){return v=e,f=setTimeout(C,n),m?g(e):d}function x(e){var t=e-p;return void 0===p||t>=n||t<0||h&&e-v>=s}function C(){var e=o();if(x(e))return E(e);f=setTimeout(C,function(e){var t=n-(e-p);return h?l(t,s-(e-v)):t}(e))}function E(e){return f=void 0,y&&c?g(e):(c=u=void 0,d)}function w(){var e=o(),t=x(e);if(c=arguments,u=this,p=e,t){if(void 0===f)return b(p);if(h)return clearTimeout(f),f=setTimeout(C,n),g(p)}return void 0===f&&(f=setTimeout(C,n)),d}return n=a(n)||0,r(t)&&(m=!!t.leading,s=(h="maxWait"in t)?i(a(t.maxWait)||0,n):s,y="trailing"in t?!!t.trailing:y),w.cancel=function(){void 0!==f&&clearTimeout(f),v=0,c=p=u=f=void 0},w.flush=function(){return void 0===f?d:E(o())},w}},33448:function(e,n,t){var r=t(44239),o=t(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),o=t(13218),a=t(33448),i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=l.test(e);return t||c.test(e)?u(e.slice(2),t?2:8):i.test(e)?NaN:+e}},50132:function(e,n,t){"use strict";var r=t(87462),o=t(4942),a=t(91),i=t(1413),l=t(15671),c=t(43144),u=t(60136),s=t(3289),d=t(67294),f=t(94184),p=t.n(f),v=function(e){(0,u.Z)(t,e);var n=(0,s.Z)(t);function t(e){var r;(0,l.Z)(this,t),(r=n.call(this,e)).handleChange=function(e){var n=r.props,t=n.disabled,o=n.onChange;t||("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:(0,i.Z)((0,i.Z)({},r.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var o="checked"in e?e.checked:e.defaultChecked;return r.state={checked:o},r}return(0,c.Z)(t,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,n=this.props,t=n.prefixCls,i=n.className,l=n.style,c=n.name,u=n.id,s=n.type,f=n.disabled,v=n.readOnly,m=n.tabIndex,h=n.onClick,y=n.onFocus,g=n.onBlur,b=n.onKeyDown,x=n.onKeyPress,C=n.onKeyUp,E=n.autoFocus,w=n.value,Z=n.required,N=(0,a.Z)(n,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),S=Object.keys(N).reduce((function(e,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(e[n]=N[n]),e}),{}),k=this.state.checked,O=p()(t,i,(e={},(0,o.Z)(e,"".concat(t,"-checked"),k),(0,o.Z)(e,"".concat(t,"-disabled"),f),e));return d.createElement("span",{className:O,style:l},d.createElement("input",(0,r.Z)({name:c,id:u,type:s,required:Z,readOnly:v,disabled:f,tabIndex:m,className:"".concat(t,"-input"),checked:!!k,onClick:h,onFocus:y,onBlur:g,onKeyUp:C,onKeyDown:b,onKeyPress:x,onChange:this.handleChange,autoFocus:E,ref:this.saveInput,value:w},S)),d.createElement("span",{className:"".concat(t,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){return"checked"in e?(0,i.Z)((0,i.Z)({},n),{},{checked:e.checked}):null}}]),t}(d.Component);v.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}},n.Z=v},56180:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var r=t(4942),o=t(1413),a=t(97685),i=t(91),l=t(67294),c=t(51169),u=t(94184),s=t.n(u),d={adjustX:1,adjustY:1},f=[0,0],p={topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:f},topCenter:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:f},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:f},bottomCenter:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:f},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:f}},v=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"];function m(e,n){var t=e.arrow,u=void 0!==t&&t,d=e.prefixCls,f=void 0===d?"rc-dropdown":d,m=e.transitionName,h=e.animation,y=e.align,g=e.placement,b=void 0===g?"bottomLeft":g,x=e.placements,C=void 0===x?p:x,E=e.getPopupContainer,w=e.showAction,Z=e.hideAction,N=e.overlayClassName,S=e.overlayStyle,k=e.visible,O=e.trigger,P=void 0===O?["hover"]:O,K=(0,i.Z)(e,v),I=l.useState(),D=(0,a.Z)(I,2),M=D[0],R=D[1],T="visible"in e?k:M,L=l.useRef(null);l.useImperativeHandle(n,(function(){return L.current}));var j=function(){var n=e.overlay;return"function"===typeof n?n():n},A=function(n){var t=e.onOverlayClick,r=j().props;R(!1),t&&t(n),r.onClick&&r.onClick(n)},H=function(){var e=j(),n={prefixCls:"".concat(f,"-menu"),onClick:A};return"string"===typeof e.type&&delete n.prefixCls,l.createElement(l.Fragment,null,u&&l.createElement("div",{className:"".concat(f,"-arrow")}),l.cloneElement(e,n))},_=Z;return _||-1===P.indexOf("contextMenu")||(_=["click"]),l.createElement(c.Z,(0,o.Z)((0,o.Z)({builtinPlacements:C},K),{},{prefixCls:f,ref:L,popupClassName:s()(N,(0,r.Z)({},"".concat(f,"-show-arrow"),u)),popupStyle:S,action:P,showAction:w,hideAction:_||[],popupPlacement:b,popupAlign:y,popupTransitionName:m,popupAnimation:h,popupVisible:T,stretch:function(){var n=e.minOverlayWidthMatchTrigger,t=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?n:!t}()?"minWidth":"",popup:"function"===typeof e.overlay?H:H(),onPopupVisibleChange:function(n){var t=e.onVisibleChange;R(n),"function"===typeof t&&t(n)},getPopupContainer:E}),function(){var n=e.children,t=n.props?n.props:{},r=s()(t.className,function(){var n=e.openClassName;return void 0!==n?n:"".concat(f,"-open")}());return T&&n?l.cloneElement(n,{className:r}):n}())}var h=l.forwardRef(m)},73453:function(e,n,t){"use strict";t.d(n,{Z:function(){return Y}});var r=t(67294),o=t(94184),a=t.n(o),i=t(48555);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;nt},e}return n=l,(t=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,n=e.dragging,t=e.visible,o=this.props.prefixCls,i=this.getSpinHeight(),l=this.getTop(),c=this.showScroll(),u=c&&t;return r.createElement("div",{ref:this.scrollbarRef,className:a()("".concat(o,"-scrollbar"),v({},"".concat(o,"-scrollbar-show"),c)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:u?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},r.createElement("div",{ref:this.thumbRef,className:a()("".concat(o,"-scrollbar-thumb"),v({},"".concat(o,"-scrollbar-thumb-moving"),n)),style:{width:"100%",height:i,top:l,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&h(n.prototype,t),o&&h(n,o),l}(r.Component);function w(e){var n=e.children,t=e.setRef,o=r.useCallback((function(e){t(e)}),[]);return r.cloneElement(n,{ref:o})}var Z=t(34203);function N(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]&&arguments[1],r=e<0&&i.current.top||e>0&&i.current.bottom;return n&&r?(clearTimeout(o.current),t.current=!1):r&&!t.current||a(),!t.current&&r}};var L=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function j(){return j=Object.assign||function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var B=[],U={overflowY:"auto",overflowAnchor:"none"};function W(e,n){var t=e.prefixCls,o=void 0===t?"rc-virtual-list":t,i=e.className,l=e.height,c=e.itemHeight,u=e.fullHeight,s=void 0===u||u,p=e.style,v=e.data,m=e.children,h=e.itemKey,y=e.virtual,g=e.component,b=void 0===g?"div":g,x=e.onScroll,C=e.onVisibleChange,N=F(e,L),O=!(!1===y||!l||!c),K=O&&v&&c*v.length>l,I=z((0,r.useState)(0),2),M=I[0],A=I[1],V=z((0,r.useState)(!1),2),W=V[0],G=V[1],Y=a()(o,i),X=v||B,q=(0,r.useRef)(),J=(0,r.useRef)(),$=(0,r.useRef)(),Q=r.useCallback((function(e){return"function"===typeof h?h(e):null===e||void 0===e?void 0:e[h]}),[h]),ee={getKey:Q};function ne(e){A((function(n){var t=function(e){var n=e;Number.isNaN(ye.current)||(n=Math.min(n,ye.current));return n=Math.max(n,0)}("function"===typeof e?e(n):e);return q.current.scrollTop=t,t}))}var te=(0,r.useRef)({start:0,end:X.length}),re=(0,r.useRef)(),oe=z(D(X,Q),1)[0];re.current=oe;var ae=function(e,n,t){var o=k(r.useState(0),2),a=o[0],i=o[1],l=(0,r.useRef)(new Map),c=(0,r.useRef)(new S),u=(0,r.useRef)(0);function s(){u.current+=1;var e=u.current;Promise.resolve().then((function(){e===u.current&&(l.current.forEach((function(e,n){if(e&&e.offsetParent){var t=(0,Z.Z)(e),r=t.offsetHeight;c.current.get(n)!==r&&c.current.set(n,t.offsetHeight)}})),i((function(e){return e+1})))}))}return[function(r,o){var a=e(r),i=l.current.get(a);o?(l.current.set(a,o),s()):l.current.delete(a),!i!==!o&&(o?null===n||void 0===n||n(r):null===t||void 0===t||t(r))},s,c.current,a]}(Q,null,null),ie=z(ae,4),le=ie[0],ce=ie[1],ue=ie[2],se=ie[3],de=r.useMemo((function(){if(!O)return{scrollHeight:void 0,start:0,end:X.length-1,offset:void 0};var e;if(!K)return{scrollHeight:(null===(e=J.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:X.length-1,offset:void 0};for(var n,t,r,o=0,a=X.length,i=0;i=M&&void 0===n&&(n=i,t=o),f>M+l&&void 0===r&&(r=i),o=f}return void 0===n&&(n=0,t=0),void 0===r&&(r=X.length-1),{scrollHeight:o,start:n,end:r=Math.min(r+1,X.length),offset:t}}),[K,O,M,X,se,l]),fe=de.scrollHeight,pe=de.start,ve=de.end,me=de.offset;te.current.start=pe,te.current.end=ve;var he=fe-l,ye=(0,r.useRef)(he);ye.current=he;var ge=M<=0,be=M>=he,xe=T(ge,be);var Ce=function(e,n,t,o){var a=(0,r.useRef)(0),i=(0,r.useRef)(null),l=(0,r.useRef)(null),c=(0,r.useRef)(!1),u=T(n,t);return[function(n){if(e){f.Z.cancel(i.current);var t=n.deltaY;a.current+=t,l.current=t,u(t)||(R||n.preventDefault(),i.current=(0,f.Z)((function(){var e=c.current?10:1;o(a.current*e),a.current=0})))}},function(n){e&&(c.current=n.detail===l.current)}]}(O,ge,be,(function(e){ne((function(n){return n+e}))})),Ee=z(Ce,2),we=Ee[0],Ze=Ee[1];!function(e,n,t){var o,a=(0,r.useRef)(!1),i=(0,r.useRef)(0),l=(0,r.useRef)(null),c=(0,r.useRef)(null),u=function(e){if(a.current){var n=Math.ceil(e.touches[0].pageY),r=i.current-n;i.current=n,t(r)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){(!t(r*=.9333333333333333,!0)||Math.abs(r)<=.1)&&clearInterval(c.current)}),16)}},s=function(){a.current=!1,o()},d=function(e){o(),1!==e.touches.length||a.current||(a.current=!0,i.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",u),l.current.addEventListener("touchend",s))};o=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",s))},r.useLayoutEffect((function(){return e&&n.current.addEventListener("touchstart",d),function(){n.current.removeEventListener("touchstart",d),o(),clearInterval(c.current)}}),[e])}(O,q,(function(e,n){return!xe(e,n)&&(we({preventDefault:function(){},deltaY:e}),!0)})),(0,r.useLayoutEffect)((function(){function e(e){O&&e.preventDefault()}return q.current.addEventListener("wheel",we),q.current.addEventListener("DOMMouseScroll",Ze),q.current.addEventListener("MozMousePixelScroll",e),function(){q.current.removeEventListener("wheel",we),q.current.removeEventListener("DOMMouseScroll",Ze),q.current.removeEventListener("MozMousePixelScroll",e)}}),[O]);var Ne=function(e,n,t,o,a,i,l,c){var u=r.useRef();return function(r){if(null!==r&&void 0!==r){if(f.Z.cancel(u.current),"number"===typeof r)l(r);else if(r&&"object"===P(r)){var s,d=r.align;s="index"in r?r.index:n.findIndex((function(e){return a(e)===r.key}));var p=r.offset,v=void 0===p?0:p;!function r(c,p){if(!(c<0)&&e.current){var m=e.current.clientHeight,h=!1,y=p;if(m){for(var g=p||d,b=0,x=0,C=0,E=Math.min(n.length,s),w=0;w<=E;w+=1){var Z=a(n[w]);x=b;var N=t.get(Z);b=C=x+(void 0===N?o:N),w===s&&void 0===N&&(h=!0)}var S=null;switch(g){case"top":S=x-v;break;case"bottom":S=C-m+v;break;default:var k=e.current.scrollTop;xk+m&&(y="bottom")}null!==S&&S!==e.current.scrollTop&&l(S)}u.current=(0,f.Z)((function(){h&&i(),r(c-1,y)}))}}(3)}}else c()}}(q,X,ue,c,Q,ce,ne,(function(){var e;null===(e=$.current)||void 0===e||e.delayHidden()}));r.useImperativeHandle(n,(function(){return{scrollTo:Ne}})),(0,r.useLayoutEffect)((function(){if(C){var e=X.slice(pe,ve+1);C(e,X)}}),[pe,ve,X]);var Se=function(e,n,t,o,a,i){var l=i.getKey;return e.slice(n,t+1).map((function(e,t){var i=a(e,n+t,{}),c=l(e);return r.createElement(w,{key:c,setRef:function(n){return o(e,n)}},i)}))}(X,pe,ve,le,m,ee),ke=null;return l&&(ke=H(_({},s?"height":"maxHeight",l),U),O&&(ke.overflowY="hidden",W&&(ke.pointerEvents="none"))),r.createElement("div",j({style:H(H({},p),{},{position:"relative"}),className:Y},N),r.createElement(b,{className:"".concat(o,"-holder"),style:ke,ref:q,onScroll:function(e){var n=e.currentTarget.scrollTop;n!==M&&ne(n),null===x||void 0===x||x(e)}},r.createElement(d,{prefixCls:o,height:fe,offset:me,onInnerResize:ce,ref:J},Se)),O&&r.createElement(E,{ref:$,prefixCls:o,scrollTop:M,height:l,scrollHeight:fe,count:X.length,onScroll:function(e){ne(e)},onStartMove:function(){G(!0)},onStopMove:function(){G(!1)}}))}var G=r.forwardRef(W);G.displayName="List";var Y=G}}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/464-db01a44ec2dad9e9.js b/static/admin/_next/static/chunks/464-2f77b4d35258d966.js similarity index 99% rename from static/admin/_next/static/chunks/464-db01a44ec2dad9e9.js rename to static/admin/_next/static/chunks/464-2f77b4d35258d966.js index a42a02615..53c70a116 100644 --- a/static/admin/_next/static/chunks/464-db01a44ec2dad9e9.js +++ b/static/admin/_next/static/chunks/464-2f77b4d35258d966.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[464],{82911:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(1413),a=t(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},i=t(42135),s=function(e,n){return a.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:o}))};s.displayName="QuestionCircleFilled";var c=a.forwardRef(s)},84674:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(1413),a=t(67294),o={icon:function(e,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm288.5 682.8L277.7 224C258 240 240 258 224 277.7l522.8 522.8C682.8 852.7 601 884 512 884c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372c0 89-31.3 170.8-83.5 234.8z",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372c89 0 170.8-31.3 234.8-83.5L224 277.7c16-19.7 34-37.7 53.7-53.7l522.8 522.8C852.7 682.8 884 601 884 512c0-205.4-166.6-372-372-372z",fill:n}}]}},name:"stop",theme:"twotone"},i=t(42135),s=function(e,n){return a.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:o}))};s.displayName="StopTwoTone";var c=a.forwardRef(s)},27049:function(e,n,t){var r=t(87462),a=t(4942),o=t(67294),i=t(94184),s=t.n(i),c=t(59844),l=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0?"-".concat(h):h,w=!!x,C="left"===h&&null!=p,k="right"===h&&null!=p,N=s()(j,"".concat(j,"-").concat(f),(t={},(0,a.Z)(t,"".concat(j,"-with-text"),w),(0,a.Z)(t,"".concat(j,"-with-text").concat(Z),w),(0,a.Z)(t,"".concat(j,"-dashed"),!!y),(0,a.Z)(t,"".concat(j,"-plain"),!!b),(0,a.Z)(t,"".concat(j,"-rtl"),"rtl"===c),(0,a.Z)(t,"".concat(j,"-no-default-orientation-margin-left"),C),(0,a.Z)(t,"".concat(j,"-no-default-orientation-margin-right"),k),t),v),A=(0,r.Z)((0,r.Z)({},C&&{marginLeft:p}),k&&{marginRight:p});return o.createElement("div",(0,r.Z)({className:N},g,{role:"separator"}),x&&o.createElement("span",{className:"".concat(j,"-inner-text"),style:A},x))}))}},66192:function(e,n,t){t.d(n,{Z:function(){return h}});var r=t(34051),a=t.n(r),o=t(85893),i=t(80414),s=t(71577),c=t(21640),l=t(82911),u=t(84674),d=t(58827);function f(e,n,t,r,a,o,i){try{var s=e[o](i),c=s.value}catch(l){return void t(l)}s.done?n(c):Promise.resolve(c).then(r,a)}function m(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){f(o,r,a,i,s,"next",e)}function s(e){f(o,r,a,i,s,"throw",e)}i(void 0)}))}}function h(e){var n=e.user,t=e.isEnabled,r=e.label,f=e.onClick;function h(){return(h=m(a().mark((function e(n){var r,o,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.id,o={userId:r,enabled:!t},e.prev=2,e.next=5,(0,d.rQ)(d.NM,{data:o,method:"POST",auth:!0});case 5:return i=e.sent,e.abrupt("return",i.success);case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}var p=t?"ban":"unban",v=t?(0,o.jsx)(c.Z,{style:{color:"var(--ant-error)"}}):(0,o.jsx)(l.Z,{style:{color:"var(--ant-warning)"}}),x=(0,o.jsxs)(o.Fragment,{children:["Are you sure you want to ",p," ",(0,o.jsx)("strong",{children:n.displayName}),t?" and remove their messages?":"?"]});return(0,o.jsx)(s.Z,{onClick:function(){i.Z.confirm({title:"Confirm ".concat(p),content:x,onCancel:function(){},onOk:function(){return new Promise((function(e,t){var r=function(e){return h.apply(this,arguments)}(n);r?setTimeout((function(){e(r),null===f||void 0===f||f()}),3e3):t()}))},okType:"danger",okText:t?"Absolutely":null,icon:v})},size:"small",icon:t?(0,o.jsx)(u.Z,{twoToneColor:"#ff4d4f"}):null,className:"block-user-button",children:r||p})}h.defaultProps={label:"",onClick:null}},31386:function(e,n,t){t.d(n,{Z:function(){return D}});var r=t(85893),a=t(67294),o=t(56266),i=t(80414),s=t(84485),c=t(25968),l=t(6226),u=t(27049),d=t(26713),f=t(85533),m=t(58091),h=t(96486),p=t(66192),v=t(34051),x=t.n(v),y=t(71577),b=t(21640),g=t(82911),j=t(84674),Z=t(1413),w={icon:function(e,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z",fill:e}},{tag:"path",attrs:{d:"M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM632.8 328H688c6.5 0 10.3 7.4 6.5 12.7L481.9 633.4a16.1 16.1 0 01-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89.1 150.9-207.8c3-4.1 7.9-6.6 13-6.6z",fill:n}},{tag:"path",attrs:{d:"M404.2 453.3c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z",fill:e}}]}},name:"safety-certificate",theme:"twotone"},C=t(42135),k=function(e,n){return a.createElement(C.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:n,icon:w}))};k.displayName="SafetyCertificateTwoTone";var N=a.forwardRef(k),A=t(58827);function T(e,n,t,r,a,o,i){try{var s=e[o](i),c=s.value}catch(l){return void t(l)}s.done?n(c):Promise.resolve(c).then(r,a)}function O(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){T(o,r,a,i,s,"next",e)}function s(e){T(o,r,a,i,s,"throw",e)}i(void 0)}))}}function P(e){var n,t=e.user,a=e.onClick;function o(){return(o=O(x().mark((function e(n,t){var r,a,o;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.id,a={userId:r,isModerator:t},e.prev=2,e.next=5,(0,A.rQ)(A.jr,{data:a,method:"POST",auth:!0});case 5:return o=e.sent,e.abrupt("return",o.success);case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}var s=null===(n=t.scopes)||void 0===n?void 0:n.includes("MODERATOR"),c=s?"remove moderator":"add moderator",l=s?(0,r.jsx)(b.Z,{style:{color:"var(--ant-error)"}}):(0,r.jsx)(g.Z,{style:{color:"var(--ant-warning)"}}),u=(0,r.jsxs)(r.Fragment,{children:["Are you sure you want to ",c," ",(0,r.jsx)("strong",{children:t.displayName}),"?"]});return(0,r.jsx)(y.Z,{onClick:function(){i.Z.confirm({title:"Confirm ".concat(c),content:u,onCancel:function(){},onOk:function(){return new Promise((function(e,n){var r=function(e,n){return o.apply(this,arguments)}(t,!s);r?setTimeout((function(){e(r),null===a||void 0===a||a()}),3e3):n()}))},okType:"danger",okText:s?"Yup!":null,icon:l})},size:"small",icon:s?(0,r.jsx)(j.Z,{twoToneColor:"#ff4d4f"}):(0,r.jsx)(N,{twoToneColor:"#22bb44"}),className:"block-user-button",children:c})}P.defaultProps={onClick:null};var M=t(20643),S=t(2766);function z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&C&&(z=new Date(C),D.reverse());var L=new Date(Z),I=(0,m.Z)(L,"PP pp"),B=z?(0,f.Z)(z):null;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{title:(0,r.jsxs)(r.Fragment,{children:["Created at: ",I,".",(0,r.jsx)("br",{})," Click for more info."]}),placement:"bottomLeft",children:(0,r.jsx)("button",{type:"button","aria-label":"Display more details about this user",className:"user-item-container",onClick:function(){b(!0)},children:v})}),(0,r.jsx)(i.Z,{destroyOnClose:!0,width:600,cancelText:"Close",okButtonProps:{style:{display:"none"}},title:"User details: ".concat(j),visible:y,onOk:g,onCancel:g,children:(0,r.jsxs)("div",{className:"user-details",children:[(0,r.jsx)(s.Z.Title,{level:4,children:j}),(0,r.jsxs)("p",{className:"created-at",children:["User created at ",I,"."]}),(0,r.jsxs)(c.Z,{gutter:16,children:[t&&(0,r.jsxs)(l.Z,{md:z?12:24,children:[(0,r.jsx)(s.Z.Title,{level:5,children:"This user is currently connected to Chat."}),(0,r.jsxs)("ul",{className:"connection-info",children:[(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"Active for:"})," ",(0,f.Z)(new Date(A))]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"Messages sent:"})," ",T]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"User Agent:"}),(0,r.jsx)("br",{}),(0,S.AB)(O)]})]})]}),z&&(0,r.jsxs)(l.Z,{md:t?12:24,children:[(0,r.jsx)(s.Z.Title,{level:5,children:"This user is also seen as:"}),(0,r.jsx)("ul",{className:"previous-names-list",children:(0,h.uniq)(D).map((function(e,n){return(0,r.jsxs)("li",{className:0===n?"latest":"",children:[(0,r.jsx)("span",{className:"user-name-item",children:e}),0===n?" (Changed ".concat(B," ago)"):""]})}))})]})]}),(0,r.jsx)(u.Z,{}),(0,r.jsxs)(d.Z,{direction:"horizontal",children:[k?(0,r.jsxs)(r.Fragment,{children:["This user was banned on ",(0,r.jsx)("code",{children:(0,M.u)(k)}),".",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)(p.Z,{label:"Unban this user",user:n,isEnabled:!1,onClick:g})]}):(0,r.jsx)(p.Z,{label:"Ban this user",user:n,isEnabled:!0,onClick:g}),(0,r.jsx)(P,{user:n,onClick:g})]})]})})]})}D.defaultProps={connectionInfo:null}},20643:function(e,n,t){t.d(n,{u:function(){return c},Z:function(){return l}});var r=t(85893),a=t(15193),o=t(58091),i=t(31386),s=t(66192);function c(e){return(0,o.Z)(new Date(e),"MMM d H:mma")}function l(e){var n=e.data,t=[{title:"Last Known Display Name",dataIndex:"displayName",key:"displayName",render:function(e,n){return(0,r.jsx)(i.Z,{user:n,children:(0,r.jsx)("span",{className:"display-name",children:e})})}},{title:"Created",dataIndex:"createdAt",key:"createdAt",render:function(e){return c(e)},sorter:function(e,n){return new Date(e.createdAt).getTime()-new Date(n.createdAt).getTime()},sortDirections:["descend","ascend"]},{title:"Disabled at",dataIndex:"disabledAt",key:"disabledAt",defaultSortOrder:"descend",render:function(e){return e?c(e):null},sorter:function(e,n){return new Date(e.disabledAt).getTime()-new Date(n.disabledAt).getTime()},sortDirections:["descend","ascend"]},{title:"",key:"block",className:"actions-col",render:function(e,n){return(0,r.jsx)(s.Z,{user:n,isEnabled:!n.disabledAt})}}];return(0,r.jsx)(a.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:t,dataSource:n,size:"small",rowKey:"id"})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[464],{82911:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(1413),a=t(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},i=t(42135),s=function(e,n){return a.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:o}))};s.displayName="QuestionCircleFilled";var c=a.forwardRef(s)},84674:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(1413),a=t(67294),o={icon:function(e,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm288.5 682.8L277.7 224C258 240 240 258 224 277.7l522.8 522.8C682.8 852.7 601 884 512 884c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372c0 89-31.3 170.8-83.5 234.8z",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372c89 0 170.8-31.3 234.8-83.5L224 277.7c16-19.7 34-37.7 53.7-53.7l522.8 522.8C852.7 682.8 884 601 884 512c0-205.4-166.6-372-372-372z",fill:n}}]}},name:"stop",theme:"twotone"},i=t(42135),s=function(e,n){return a.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:o}))};s.displayName="StopTwoTone";var c=a.forwardRef(s)},27049:function(e,n,t){var r=t(87462),a=t(4942),o=t(67294),i=t(94184),s=t.n(i),c=t(59844),l=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0?"-".concat(h):h,w=!!x,C="left"===h&&null!=p,k="right"===h&&null!=p,N=s()(j,"".concat(j,"-").concat(f),(t={},(0,a.Z)(t,"".concat(j,"-with-text"),w),(0,a.Z)(t,"".concat(j,"-with-text").concat(Z),w),(0,a.Z)(t,"".concat(j,"-dashed"),!!y),(0,a.Z)(t,"".concat(j,"-plain"),!!b),(0,a.Z)(t,"".concat(j,"-rtl"),"rtl"===c),(0,a.Z)(t,"".concat(j,"-no-default-orientation-margin-left"),C),(0,a.Z)(t,"".concat(j,"-no-default-orientation-margin-right"),k),t),v),A=(0,r.Z)((0,r.Z)({},C&&{marginLeft:p}),k&&{marginRight:p});return o.createElement("div",(0,r.Z)({className:N},g,{role:"separator"}),x&&o.createElement("span",{className:"".concat(j,"-inner-text"),style:A},x))}))}},66192:function(e,n,t){t.d(n,{Z:function(){return h}});var r=t(34051),a=t.n(r),o=t(85893),i=t(80414),s=t(71577),c=t(21640),l=t(82911),u=t(84674),d=t(58827);function f(e,n,t,r,a,o,i){try{var s=e[o](i),c=s.value}catch(l){return void t(l)}s.done?n(c):Promise.resolve(c).then(r,a)}function m(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){f(o,r,a,i,s,"next",e)}function s(e){f(o,r,a,i,s,"throw",e)}i(void 0)}))}}function h(e){var n=e.user,t=e.isEnabled,r=e.label,f=e.onClick;function h(){return(h=m(a().mark((function e(n){var r,o,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.id,o={userId:r,enabled:!t},e.prev=2,e.next=5,(0,d.rQ)(d.NM,{data:o,method:"POST",auth:!0});case 5:return i=e.sent,e.abrupt("return",i.success);case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}var p=t?"ban":"unban",v=t?(0,o.jsx)(c.Z,{style:{color:"var(--ant-error)"}}):(0,o.jsx)(l.Z,{style:{color:"var(--ant-warning)"}}),x=(0,o.jsxs)(o.Fragment,{children:["Are you sure you want to ",p," ",(0,o.jsx)("strong",{children:n.displayName}),t?" and remove their messages?":"?"]});return(0,o.jsx)(s.Z,{onClick:function(){i.Z.confirm({title:"Confirm ".concat(p),content:x,onCancel:function(){},onOk:function(){return new Promise((function(e,t){var r=function(e){return h.apply(this,arguments)}(n);r?setTimeout((function(){e(r),null===f||void 0===f||f()}),3e3):t()}))},okType:"danger",okText:t?"Absolutely":null,icon:v})},size:"small",icon:t?(0,o.jsx)(u.Z,{twoToneColor:"#ff4d4f"}):null,className:"block-user-button",children:r||p})}h.defaultProps={label:"",onClick:null}},31386:function(e,n,t){t.d(n,{Z:function(){return D}});var r=t(85893),a=t(67294),o=t(56266),i=t(80414),s=t(84485),c=t(25968),l=t(6226),u=t(27049),d=t(26713),f=t(85533),m=t(58091),h=t(96486),p=t(66192),v=t(34051),x=t.n(v),y=t(71577),b=t(21640),g=t(82911),j=t(84674),Z=t(1413),w={icon:function(e,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z",fill:e}},{tag:"path",attrs:{d:"M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM632.8 328H688c6.5 0 10.3 7.4 6.5 12.7L481.9 633.4a16.1 16.1 0 01-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89.1 150.9-207.8c3-4.1 7.9-6.6 13-6.6z",fill:n}},{tag:"path",attrs:{d:"M404.2 453.3c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z",fill:e}}]}},name:"safety-certificate",theme:"twotone"},C=t(42135),k=function(e,n){return a.createElement(C.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:n,icon:w}))};k.displayName="SafetyCertificateTwoTone";var N=a.forwardRef(k),A=t(58827);function T(e,n,t,r,a,o,i){try{var s=e[o](i),c=s.value}catch(l){return void t(l)}s.done?n(c):Promise.resolve(c).then(r,a)}function O(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){T(o,r,a,i,s,"next",e)}function s(e){T(o,r,a,i,s,"throw",e)}i(void 0)}))}}function P(e){var n,t=e.user,a=e.onClick;function o(){return(o=O(x().mark((function e(n,t){var r,a,o;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.id,a={userId:r,isModerator:t},e.prev=2,e.next=5,(0,A.rQ)(A.jr,{data:a,method:"POST",auth:!0});case 5:return o=e.sent,e.abrupt("return",o.success);case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}var s=null===(n=t.scopes)||void 0===n?void 0:n.includes("MODERATOR"),c=s?"remove moderator":"add moderator",l=s?(0,r.jsx)(b.Z,{style:{color:"var(--ant-error)"}}):(0,r.jsx)(g.Z,{style:{color:"var(--ant-warning)"}}),u=(0,r.jsxs)(r.Fragment,{children:["Are you sure you want to ",c," ",(0,r.jsx)("strong",{children:t.displayName}),"?"]});return(0,r.jsx)(y.Z,{onClick:function(){i.Z.confirm({title:"Confirm ".concat(c),content:u,onCancel:function(){},onOk:function(){return new Promise((function(e,n){var r=function(e,n){return o.apply(this,arguments)}(t,!s);r?setTimeout((function(){e(r),null===a||void 0===a||a()}),3e3):n()}))},okType:"danger",okText:s?"Yup!":null,icon:l})},size:"small",icon:s?(0,r.jsx)(j.Z,{twoToneColor:"#ff4d4f"}):(0,r.jsx)(N,{twoToneColor:"#22bb44"}),className:"block-user-button",children:c})}P.defaultProps={onClick:null};var M=t(20643),S=t(2766);function z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&C&&(z=new Date(C),D.reverse());var L=new Date(Z),I=(0,m.Z)(L,"PP pp"),B=z?(0,f.Z)(z):null;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{title:(0,r.jsxs)(r.Fragment,{children:["Created at: ",I,".",(0,r.jsx)("br",{})," Click for more info."]}),placement:"bottomLeft",children:(0,r.jsx)("button",{type:"button","aria-label":"Display more details about this user",className:"user-item-container",onClick:function(){b(!0)},children:v})}),(0,r.jsx)(i.Z,{destroyOnClose:!0,width:600,cancelText:"Close",okButtonProps:{style:{display:"none"}},title:"User details: ".concat(j),visible:y,onOk:g,onCancel:g,children:(0,r.jsxs)("div",{className:"user-details",children:[(0,r.jsx)(s.Z.Title,{level:4,children:j}),(0,r.jsxs)("p",{className:"created-at",children:["User created at ",I,"."]}),(0,r.jsxs)(c.Z,{gutter:16,children:[t&&(0,r.jsxs)(l.Z,{md:z?12:24,children:[(0,r.jsx)(s.Z.Title,{level:5,children:"This user is currently connected to Chat."}),(0,r.jsxs)("ul",{className:"connection-info",children:[(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"Active for:"})," ",(0,f.Z)(new Date(A))]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"Messages sent:"})," ",T]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"User Agent:"}),(0,r.jsx)("br",{}),(0,S.AB)(O)]})]})]}),z&&(0,r.jsxs)(l.Z,{md:t?12:24,children:[(0,r.jsx)(s.Z.Title,{level:5,children:"This user is also seen as:"}),(0,r.jsx)("ul",{className:"previous-names-list",children:(0,h.uniq)(D).map((function(e,n){return(0,r.jsxs)("li",{className:0===n?"latest":"",children:[(0,r.jsx)("span",{className:"user-name-item",children:e}),0===n?" (Changed ".concat(B," ago)"):""]})}))})]})]}),(0,r.jsx)(u.Z,{}),(0,r.jsxs)(d.Z,{direction:"horizontal",children:[k?(0,r.jsxs)(r.Fragment,{children:["This user was banned on ",(0,r.jsx)("code",{children:(0,M.u)(k)}),".",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)(p.Z,{label:"Unban this user",user:n,isEnabled:!1,onClick:g})]}):(0,r.jsx)(p.Z,{label:"Ban this user",user:n,isEnabled:!0,onClick:g}),(0,r.jsx)(P,{user:n,onClick:g})]})]})})]})}D.defaultProps={connectionInfo:null}},20643:function(e,n,t){t.d(n,{u:function(){return c},Z:function(){return l}});var r=t(85893),a=t(77406),o=t(58091),i=t(31386),s=t(66192);function c(e){return(0,o.Z)(new Date(e),"MMM d H:mma")}function l(e){var n=e.data,t=[{title:"Last Known Display Name",dataIndex:"displayName",key:"displayName",render:function(e,n){return(0,r.jsx)(i.Z,{user:n,children:(0,r.jsx)("span",{className:"display-name",children:e})})}},{title:"Created",dataIndex:"createdAt",key:"createdAt",render:function(e){return c(e)},sorter:function(e,n){return new Date(e.createdAt).getTime()-new Date(n.createdAt).getTime()},sortDirections:["descend","ascend"]},{title:"Disabled at",dataIndex:"disabledAt",key:"disabledAt",defaultSortOrder:"descend",render:function(e){return e?c(e):null},sorter:function(e,n){return new Date(e.disabledAt).getTime()-new Date(n.disabledAt).getTime()},sortDirections:["descend","ascend"]},{title:"",key:"block",className:"actions-col",render:function(e,n){return(0,r.jsx)(s.Z,{user:n,isEnabled:!n.disabledAt})}}];return(0,r.jsx)(a.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:t,dataSource:n,size:"small",rowKey:"id"})}}}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/733-a3097123115d22a0.js b/static/admin/_next/static/chunks/733-c29eb814813c0818.js similarity index 99% rename from static/admin/_next/static/chunks/733-a3097123115d22a0.js rename to static/admin/_next/static/chunks/733-c29eb814813c0818.js index accea40d5..1453b9673 100644 --- a/static/admin/_next/static/chunks/733-a3097123115d22a0.js +++ b/static/admin/_next/static/chunks/733-c29eb814813c0818.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[733],{91017:function(e,n,t){t.d(n,{Z:function(){return A}});var a=t(34051),r=t.n(a),l=t(85893),o=t(67294),i=t(84485),s=t(71577),c=t(69677),u=t(15193),d=t(80414),f=t(48689),p=t(38939),m=t(58827),h=t(25964);function v(e){var n=e.iconList,t=e.selectedOption,a=e.onSelected,r=""===t?null:t;return(0,l.jsxs)("div",{className:"social-dropdown-container",children:[(0,l.jsx)("p",{className:"description",children:"If you are looking for a platform name not on this list, please select Other and type in your own name. A logo will not be provided."}),(0,l.jsxs)("div",{className:"formfield-container",children:[(0,l.jsx)("div",{className:"label-side",children:(0,l.jsx)("span",{className:"formfield-label",children:"Social Platform"})}),(0,l.jsx)("div",{className:"input-side",children:(0,l.jsxs)(p.Z,{style:{width:240},className:"social-dropdown",placeholder:"Social platform...",defaultValue:r,value:r,onSelect:function(e){a&&a(e)},children:[n.map((function(e){var n=e.platform,t=e.icon,a=e.key,r="".concat(m.WB).concat(t.slice(1));return(0,l.jsxs)(p.Z.Option,{className:"social-option",value:a,children:[(0,l.jsx)("span",{className:"option-icon",children:(0,l.jsx)("img",{src:r,alt:"",className:"option-icon"})}),(0,l.jsx)("span",{className:"option-label",children:n})]},"platform-".concat(a))})),(0,l.jsx)(p.Z.Option,{className:"social-option",value:h.z_,children:"Other..."},"platform-".concat(h.z_))]})})]})]})}var j=t(35159),x=t(19411),y=t(48419),b=t(83200),N=t(78464);function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);te.length)&&(n=e.length);for(var t=0,a=new Array(n);t0){var I=m[0]/2;A.paddingLeft=I,A.paddingRight=I}if(m&&m[1]>0&&!x){var R=m[1]/2;A.paddingTop=R,A.paddingBottom=R}return E&&(A.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(E),!1!==y||A.minWidth||(A.minWidth=0)),a.createElement("div",(0,c.Z)({},S,{style:(0,c.Z)((0,c.Z)({},A),N),className:T,ref:t}),O)}));d.displayName="Col";var h=d},99134:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},25968:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(87462),c=n(4942),o=n(71002),a=n(97685),s=n(67294),i=n(94184),l=n.n(i),u=n(59844),f=n(99134),p=n(93355),d=n(24308),h=n(98082),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(r=Object.getOwnPropertySymbols(e);c0?I[0]/-2:void 0,H=I[1]>0?I[1]/-2:void 0;if(G&&(M.marginLeft=G,M.marginRight=G),_){var z=(0,a.Z)(I,2);M.rowGap=z[1]}else H&&(M.marginTop=H,M.marginBottom=H);var D=(0,a.Z)(I,2),B=D[0],F=D[1],U=s.useMemo((function(){return{gutter:[B,F],wrap:w,supportFlexGap:_}}),[B,F,w,_]);return s.createElement(f.Z.Provider,{value:U},s.createElement("div",(0,r.Z)({},k,{className:R,style:(0,r.Z)((0,r.Z)({},M),x),ref:t}),b))})));m.displayName="Row";var y=m},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(4942),c=n(87462),o=n(97685),a=n(67294),s=n(94184),i=n.n(s),l=n(98423),u=n(97937),f=n(59844),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(r=Object.getOwnPropertySymbols(e);c0){var I=m[0]/2;A.paddingLeft=I,A.paddingRight=I}if(m&&m[1]>0&&!x){var R=m[1]/2;A.paddingTop=R,A.paddingBottom=R}return E&&(A.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(E),!1!==y||A.minWidth||(A.minWidth=0)),a.createElement("div",(0,c.Z)({},S,{style:(0,c.Z)((0,c.Z)({},A),N),className:T,ref:t}),O)}));d.displayName="Col";var h=d},99134:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},25968:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(87462),c=n(4942),o=n(71002),a=n(97685),s=n(67294),i=n(94184),l=n.n(i),u=n(59844),f=n(99134),p=n(93355),d=n(24308),h=n(98082),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(r=Object.getOwnPropertySymbols(e);c0?I[0]/-2:void 0,H=I[1]>0?I[1]/-2:void 0;if(G&&(M.marginLeft=G,M.marginRight=G),_){var z=(0,a.Z)(I,2);M.rowGap=z[1]}else H&&(M.marginTop=H,M.marginBottom=H);var D=(0,a.Z)(I,2),B=D[0],F=D[1],U=s.useMemo((function(){return{gutter:[B,F],wrap:w,supportFlexGap:_}}),[B,F,w,_]);return s.createElement(f.Z.Provider,{value:U},s.createElement("div",(0,r.Z)({},k,{className:R,style:(0,r.Z)((0,r.Z)({},M),x),ref:t}),b))})));m.displayName="Row";var y=m},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(4942),c=n(87462),o=n(97685),a=n(67294),s=n(94184),i=n.n(s),l=n(98423),u=n(97937),f=n(59844),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(r=Object.getOwnPropertySymbols(e);ce.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0?(0,s.jsx)(l.Z,{style:{color:"var(--ant-success)"}}):(0,s.jsx)(f.Z,{style:{color:"var(--ant-warning)"}}));var S="Click to ".concat(t?"hide":"show"," this message");return(0,s.jsxs)("div",{className:"toggle-switch ".concat(t?"":"hidden"),children:[(0,s.jsx)("span",{className:"outcome-icon",children:O}),(0,s.jsx)(y.Z,{title:S,placement:"topRight",children:(0,s.jsx)(u.Z,{shape:"circle",size:"small",type:"text",icon:t?(0,s.jsx)(g.Z,{}):(0,s.jsx)(b.Z,{}),onClick:x})})]})}var S=n(31386);function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nr?1:0}))}(t),D={selectedRowKeys:o,onChange:function(e){d(e)}},U=function(e){var r=t.findIndex((function(t){return t.id===e.id}));t.splice(r,1,e),n(Z(t))},Q=function(){A=setTimeout((function(){j(null),T("")}),E)},H=function(){var e=P(i().mark((function e(r){var a,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(!0),e.next=3,(0,p.rQ)(p.hn,{auth:!0,method:"POST",data:{visible:r,idArray:o}});case 3:(a=e.sent).success&&"changed"===a.message?(j((0,s.jsx)(l.Z,{})),Q(),u=Z(t),o.map((function(e){var n=u.findIndex((function(t){return t.id===e})),i=C({},t[n],{visible:r});return u.splice(n,1,i),null})),n(u),d([])):(j((0,s.jsx)(f.Z,{})),Q()),b(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),V=[{title:"Time",dataIndex:"timestamp",key:"timestamp",className:"timestamp-col",defaultSortOrder:"descend",render:function(e){var t=new Date(e);return(0,h.Z)(t,"PP pp")},sorter:function(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()},width:90},{title:"User",dataIndex:"user",key:"user",className:"name-col",filters:z,onFilter:function(e,t){return t.user.id===e},sorter:function(e,t){return e.user.displayName.localeCompare(t.user.displayName)},sortDirections:["ascend","descend"],ellipsis:!0,render:function(e){var t=e.displayName;return(0,s.jsx)(S.Z,{user:e,children:t})},width:110},{title:"Message",dataIndex:"body",key:"body",className:"message-col",width:320,render:function(e){return(0,s.jsx)("div",{className:"message-contents",dangerouslySetInnerHTML:{__html:e}})}},{title:"",dataIndex:"hiddenAt",key:"hiddenAt",className:"toggle-col",filters:[{text:"Visible messages",value:!0},{text:"Hidden messages",value:!1}],onFilter:function(e,t){return t.visible===e},render:function(e,t){return(0,s.jsx)(O,{isVisible:!e,message:t,setMessage:U})},width:30}],F=m()({"bulk-editor":!0,active:o.length});return(0,s.jsxs)("div",{className:"chat-messages",children:[(0,s.jsx)(_,{children:"Chat Messages"}),(0,s.jsx)("p",{children:"Manage the messages from viewers that show up on your stream."}),(0,s.jsxs)("div",{className:F,children:[(0,s.jsx)("span",{className:"label",children:"Check multiple messages to change their visibility to: "}),(0,s.jsx)(u.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"show"===k&&g,icon:"show"===k&&x,disabled:!o.length||k&&"show"!==k,onClick:function(){T("show"),H(!0)},children:"Show"}),(0,s.jsx)(u.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"hide"===k&&g,icon:"hide"===k&&x,disabled:!o.length||k&&"hide"!==k,onClick:function(){T("hide"),H(!1)},children:"Hide"})]}),(0,s.jsx)(c.Z,{size:"small",className:"table-container",pagination:{defaultPageSize:100,showSizeChanger:!0},scroll:{y:540},rowClassName:function(e){return e.hiddenAt?"hidden":""},dataSource:t,columns:V,rowKey:function(e){return e.id},rowSelection:D})]})}}},function(e){e.O(0,[662,193,91,308,464,774,888,179],(function(){return t=9007,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[145],{9007:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/chat/messages",function(){return n(40625)}])},40625:function(e,t,n){"use strict";n.r(t),n.d(t,{OUTCOME_TIMEOUT:function(){return E},default:function(){return A}});var r=n(34051),i=n.n(r),s=n(85893),a=n(67294),o=n(84485),u=n(71577),c=n(77406),l=n(89739),f=n(21640),d=n(94184),m=n.n(d),h=n(58091),p=n(58827),v=n(2766),y=n(56266),g=n(99611),b=n(90420);function w(e,t,n,r,i,s,a){try{var o=e[s](a),u=o.value}catch(c){return void n(c)}o.done?t(u):Promise.resolve(u).then(r,i)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){for(var t=1;t0?(0,s.jsx)(l.Z,{style:{color:"var(--ant-success)"}}):(0,s.jsx)(f.Z,{style:{color:"var(--ant-warning)"}}));var S="Click to ".concat(t?"hide":"show"," this message");return(0,s.jsxs)("div",{className:"toggle-switch ".concat(t?"":"hidden"),children:[(0,s.jsx)("span",{className:"outcome-icon",children:O}),(0,s.jsx)(y.Z,{title:S,placement:"topRight",children:(0,s.jsx)(u.Z,{shape:"circle",size:"small",type:"text",icon:t?(0,s.jsx)(g.Z,{}):(0,s.jsx)(b.Z,{}),onClick:x})})]})}var S=n(31386);function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nr?1:0}))}(t),D={selectedRowKeys:o,onChange:function(e){d(e)}},U=function(e){var r=t.findIndex((function(t){return t.id===e.id}));t.splice(r,1,e),n(Z(t))},Q=function(){A=setTimeout((function(){j(null),T("")}),E)},H=function(){var e=P(i().mark((function e(r){var a,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(!0),e.next=3,(0,p.rQ)(p.hn,{auth:!0,method:"POST",data:{visible:r,idArray:o}});case 3:(a=e.sent).success&&"changed"===a.message?(j((0,s.jsx)(l.Z,{})),Q(),u=Z(t),o.map((function(e){var n=u.findIndex((function(t){return t.id===e})),i=C({},t[n],{visible:r});return u.splice(n,1,i),null})),n(u),d([])):(j((0,s.jsx)(f.Z,{})),Q()),b(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),V=[{title:"Time",dataIndex:"timestamp",key:"timestamp",className:"timestamp-col",defaultSortOrder:"descend",render:function(e){var t=new Date(e);return(0,h.Z)(t,"PP pp")},sorter:function(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()},width:90},{title:"User",dataIndex:"user",key:"user",className:"name-col",filters:z,onFilter:function(e,t){return t.user.id===e},sorter:function(e,t){return e.user.displayName.localeCompare(t.user.displayName)},sortDirections:["ascend","descend"],ellipsis:!0,render:function(e){var t=e.displayName;return(0,s.jsx)(S.Z,{user:e,children:t})},width:110},{title:"Message",dataIndex:"body",key:"body",className:"message-col",width:320,render:function(e){return(0,s.jsx)("div",{className:"message-contents",dangerouslySetInnerHTML:{__html:e}})}},{title:"",dataIndex:"hiddenAt",key:"hiddenAt",className:"toggle-col",filters:[{text:"Visible messages",value:!0},{text:"Hidden messages",value:!1}],onFilter:function(e,t){return t.visible===e},render:function(e,t){return(0,s.jsx)(O,{isVisible:!e,message:t,setMessage:U})},width:30}],F=m()({"bulk-editor":!0,active:o.length});return(0,s.jsxs)("div",{className:"chat-messages",children:[(0,s.jsx)(_,{children:"Chat Messages"}),(0,s.jsx)("p",{children:"Manage the messages from viewers that show up on your stream."}),(0,s.jsxs)("div",{className:F,children:[(0,s.jsx)("span",{className:"label",children:"Check multiple messages to change their visibility to: "}),(0,s.jsx)(u.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"show"===k&&g,icon:"show"===k&&x,disabled:!o.length||k&&"show"!==k,onClick:function(){T("show"),H(!0)},children:"Show"}),(0,s.jsx)(u.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"hide"===k&&g,icon:"hide"===k&&x,disabled:!o.length||k&&"hide"!==k,onClick:function(){T("hide"),H(!1)},children:"Hide"})]}),(0,s.jsx)(c.Z,{size:"small",className:"table-container",pagination:{defaultPageSize:100,showSizeChanger:!0},scroll:{y:540},rowClassName:function(e){return e.hiddenAt?"hidden":""},dataSource:t,columns:V,rowKey:function(e){return e.id},rowSelection:D})]})}}},function(e){e.O(0,[662,406,91,308,464,774,888,179],(function(){return t=9007,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/chat/users-36554d1a55aae593.js b/static/admin/_next/static/chunks/pages/chat/users-c96f1f13330efa08.js similarity index 96% rename from static/admin/_next/static/chunks/pages/chat/users-36554d1a55aae593.js rename to static/admin/_next/static/chunks/pages/chat/users-c96f1f13330efa08.js index 199982104..1a801e372 100644 --- a/static/admin/_next/static/chunks/pages/chat/users-36554d1a55aae593.js +++ b/static/admin/_next/static/chunks/pages/chat/users-c96f1f13330efa08.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[255],{22494:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/chat/users",function(){return t(20536)}])},20536:function(e,n,t){"use strict";t.r(n),t.d(n,{FETCH_INTERVAL:function(){return y},default:function(){return j}});var r=t(34051),s=t.n(r),a=t(85893),c=t(67294),o=t(87961),i=t(35159),u=t(58827),d=t(20643),l=t(15193),f=t(85533),h=t(31386),p=t(66192),m=t(2766);function x(e){var n=e.data,t=[{title:"Display Name",key:"username",render:function(e){var n=e.user,t={connectedAt:e.connectedAt,messageCount:e.messageCount,userAgent:e.userAgent};return(0,a.jsx)(h.Z,{user:n,connectionInfo:t,children:(0,a.jsx)("span",{className:"display-name",children:n.displayName})})},sorter:function(e,n){return e.user.displayName-n.user.displayName},sortDirections:["descend","ascend"]},{title:"Messages sent",dataIndex:"messageCount",key:"messageCount",className:"number-col",width:"12%",sorter:function(e,n){return e.messageCount-n.messageCount},sortDirections:["descend","ascend"],render:function(e){return(0,a.jsx)("div",{style:{textAlign:"center"},children:e})}},{title:"Connected Time",dataIndex:"connectedAt",key:"connectedAt",defaultSortOrder:"ascend",render:function(e){return(0,f.Z)(new Date(e))},sorter:function(e,n){return new Date(e.connectedAt).getTime()-new Date(n.connectedAt).getTime()},sortDirections:["descend","ascend"]},{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,m.AB)(e)}},{title:"Location",dataIndex:"geo",key:"geo",render:function(e){return e?"".concat(e.regionName,", ").concat(e.countryCode):"-"}},{title:"",key:"block",className:"actions-col",render:function(e,n){return(0,a.jsx)(p.Z,{user:n.user,isEnabled:!n.user.disabledAt})}}];return(0,a.jsx)(l.Z,{className:"table-container",pagination:{hideOnSinglePage:!0},columns:t,dataSource:n,size:"small",rowKey:"id"})}function v(e,n,t,r,s,a,c){try{var o=e[a](c),i=o.value}catch(u){return void t(u)}o.done?n(i):Promise.resolve(i).then(r,s)}var g=o.Z.TabPane,y=1e4;function j(){var e=((0,c.useContext)(i.aC)||{}).online,n=(0,c.useState)([]),t=n[0],r=n[1],l=(0,c.useState)([]),f=l[0],h=l[1],p=(0,c.useState)([]),m=p[0],j=p[1],w=function(){var e,n=(e=s().mark((function e(){var n,t,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.rQ)(u.qk);case 3:n=e.sent,r(n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("==== error",e.t0);case 10:return e.prev=10,e.next=13,(0,u.rQ)(u.Kp);case 13:t=e.sent,h(t),e.next=20;break;case 17:e.prev=17,e.t1=e.catch(10),console.log("==== error",e.t1);case 20:return e.prev=20,e.next=23,(0,u.rQ)(u.GC);case 23:a=e.sent,j(a),e.next=30;break;case 27:e.prev=27,e.t2=e.catch(20),console.error("error fetching moderators",e.t2);case 30:case"end":return e.stop()}}),e,null,[[0,7],[10,17],[20,27]])})),function(){var n=this,t=arguments;return new Promise((function(r,s){var a=e.apply(n,t);function c(e){v(a,r,s,c,o,"next",e)}function o(e){v(a,r,s,c,o,"throw",e)}c(void 0)}))});return function(){return n.apply(this,arguments)}}();(0,c.useEffect)((function(){var e;return w(),e=setInterval(w,y),function(){clearInterval(e)}}),[e]);var b=e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x,{data:f}),(0,a.jsxs)("p",{className:"description",children:["Visit the"," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/viewers/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"documentation"})," ","to configure additional details about your viewers."]})]}):(0,a.jsx)("p",{className:"description",children:"When a stream is active and chat is enabled, connected chat clients will be displayed here."});return(0,a.jsxs)(o.Z,{defaultActiveKey:"1",children:[(0,a.jsx)(g,{tab:(0,a.jsxs)("span",{children:["Connected ",e?"(".concat(f.length,")"):"(offline)"]}),children:b},"1"),(0,a.jsx)(g,{tab:(0,a.jsxs)("span",{children:["Banned ",e?"(".concat(t.length,")"):null]}),children:(0,a.jsx)(d.Z,{data:t})},"2"),(0,a.jsx)(g,{tab:(0,a.jsxs)("span",{children:["Moderators ",e?"(".concat(m.length,")"):null]}),children:(0,a.jsx)(d.Z,{data:m})},"3")]})}}},function(e){e.O(0,[662,193,91,961,308,464,774,888,179],(function(){return n=22494,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[255],{22494:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/chat/users",function(){return t(20536)}])},20536:function(e,n,t){"use strict";t.r(n),t.d(n,{FETCH_INTERVAL:function(){return y},default:function(){return j}});var r=t(34051),s=t.n(r),a=t(85893),c=t(67294),o=t(87961),i=t(35159),u=t(58827),d=t(20643),l=t(77406),f=t(85533),h=t(31386),p=t(66192),m=t(2766);function x(e){var n=e.data,t=[{title:"Display Name",key:"username",render:function(e){var n=e.user,t={connectedAt:e.connectedAt,messageCount:e.messageCount,userAgent:e.userAgent};return(0,a.jsx)(h.Z,{user:n,connectionInfo:t,children:(0,a.jsx)("span",{className:"display-name",children:n.displayName})})},sorter:function(e,n){return e.user.displayName-n.user.displayName},sortDirections:["descend","ascend"]},{title:"Messages sent",dataIndex:"messageCount",key:"messageCount",className:"number-col",width:"12%",sorter:function(e,n){return e.messageCount-n.messageCount},sortDirections:["descend","ascend"],render:function(e){return(0,a.jsx)("div",{style:{textAlign:"center"},children:e})}},{title:"Connected Time",dataIndex:"connectedAt",key:"connectedAt",defaultSortOrder:"ascend",render:function(e){return(0,f.Z)(new Date(e))},sorter:function(e,n){return new Date(e.connectedAt).getTime()-new Date(n.connectedAt).getTime()},sortDirections:["descend","ascend"]},{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,m.AB)(e)}},{title:"Location",dataIndex:"geo",key:"geo",render:function(e){return e?"".concat(e.regionName,", ").concat(e.countryCode):"-"}},{title:"",key:"block",className:"actions-col",render:function(e,n){return(0,a.jsx)(p.Z,{user:n.user,isEnabled:!n.user.disabledAt})}}];return(0,a.jsx)(l.Z,{className:"table-container",pagination:{hideOnSinglePage:!0},columns:t,dataSource:n,size:"small",rowKey:"id"})}function v(e,n,t,r,s,a,c){try{var o=e[a](c),i=o.value}catch(u){return void t(u)}o.done?n(i):Promise.resolve(i).then(r,s)}var g=o.Z.TabPane,y=1e4;function j(){var e=((0,c.useContext)(i.aC)||{}).online,n=(0,c.useState)([]),t=n[0],r=n[1],l=(0,c.useState)([]),f=l[0],h=l[1],p=(0,c.useState)([]),m=p[0],j=p[1],w=function(){var e,n=(e=s().mark((function e(){var n,t,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.rQ)(u.qk);case 3:n=e.sent,r(n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("==== error",e.t0);case 10:return e.prev=10,e.next=13,(0,u.rQ)(u.Kp);case 13:t=e.sent,h(t),e.next=20;break;case 17:e.prev=17,e.t1=e.catch(10),console.log("==== error",e.t1);case 20:return e.prev=20,e.next=23,(0,u.rQ)(u.GC);case 23:a=e.sent,j(a),e.next=30;break;case 27:e.prev=27,e.t2=e.catch(20),console.error("error fetching moderators",e.t2);case 30:case"end":return e.stop()}}),e,null,[[0,7],[10,17],[20,27]])})),function(){var n=this,t=arguments;return new Promise((function(r,s){var a=e.apply(n,t);function c(e){v(a,r,s,c,o,"next",e)}function o(e){v(a,r,s,c,o,"throw",e)}c(void 0)}))});return function(){return n.apply(this,arguments)}}();(0,c.useEffect)((function(){var e;return w(),e=setInterval(w,y),function(){clearInterval(e)}}),[e]);var b=e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x,{data:f}),(0,a.jsxs)("p",{className:"description",children:["Visit the"," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/viewers/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"documentation"})," ","to configure additional details about your viewers."]})]}):(0,a.jsx)("p",{className:"description",children:"When a stream is active and chat is enabled, connected chat clients will be displayed here."});return(0,a.jsxs)(o.Z,{defaultActiveKey:"1",children:[(0,a.jsx)(g,{tab:(0,a.jsxs)("span",{children:["Connected ",e?"(".concat(f.length,")"):"(offline)"]}),children:b},"1"),(0,a.jsx)(g,{tab:(0,a.jsxs)("span",{children:["Banned ",e?"(".concat(t.length,")"):null]}),children:(0,a.jsx)(d.Z,{data:t})},"2"),(0,a.jsx)(g,{tab:(0,a.jsxs)("span",{children:["Moderators ",e?"(".concat(m.length,")"):null]}),children:(0,a.jsx)(d.Z,{data:m})},"3")]})}}},function(e){e.O(0,[662,406,91,961,308,464,774,888,179],(function(){return n=22494,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/config-public-details-1e55965384b75736.js b/static/admin/_next/static/chunks/pages/config-public-details-7c823f723b9356a8.js similarity index 99% rename from static/admin/_next/static/chunks/pages/config-public-details-1e55965384b75736.js rename to static/admin/_next/static/chunks/pages/config-public-details-7c823f723b9356a8.js index f99272866..f91a3ca66 100644 --- a/static/admin/_next/static/chunks/pages/config-public-details-1e55965384b75736.js +++ b/static/admin/_next/static/chunks/pages/config-public-details-7c823f723b9356a8.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[721],{85344:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config-public-details",function(){return t(99928)}])},10063:function(e,n,t){"use strict";t.d(n,{Q:function(){return u},Z:function(){return d}});var r=t(85893),a=t(67294),i=t(84485),s=t(20550),o=t(48419),c=t(78464),l=i.Z.Title,u="#5a67d8";function d(e){var n=(0,a.useState)(""),t=n[0],i=n[1],d=e.title,f=e.description,h=e.placeholder,m=e.maxLength,p=e.values,v=e.handleDeleteIndex,g=e.handleCreateString,x=e.submitStatus,j=e.continuousStatusMessage;return(0,r.jsxs)("div",{className:"edit-string-array-container",children:[(0,r.jsx)(l,{level:3,className:"section-title",children:d}),(0,r.jsx)("p",{className:"description",children:f}),(0,r.jsx)("div",{className:"edit-current-strings",children:null===p||void 0===p?void 0:p.map((function(e,n){return(0,r.jsx)(s.Z,{closable:!0,onClose:function(){v(n)},color:u,children:e},"tag-".concat(e,"-").concat(n))}))}),j&&(0,r.jsx)("div",{className:"continuous-status-section",children:(0,r.jsx)(c.Z,{status:j})}),(0,r.jsx)("div",{className:"add-new-string-section",children:(0,r.jsx)(o.ZP,{fieldName:"string-input",value:t,onChange:function(e){var n=e.value;i(n)},onPressEnter:function(){var e=t.trim();g(e),i("")},maxLength:m,placeholder:h,status:x})})]})}d.defaultProps={maxLength:50,description:null,submitStatus:null,continuousStatusMessage:null}},15976:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var r=t(34051),a=t.n(r),i=t(85893),s=t(67294),o=t(94594),c=t(83200),l=t(78464),u=t(25964),d=t(35159);function f(e,n,t,r,a,i,s){try{var o=e[i](s),c=o.value}catch(l){return void t(l)}o.done?n(c):Promise.resolve(c).then(r,a)}function h(e){var n=(0,s.useState)(null),t=n[0],r=n[1],h=null,m=((0,s.useContext)(d.aC)||{}).setFieldInConfigState,p=e.apiPath,v=e.checked,g=e.reversed,x=void 0!==g&&g,j=e.configPath,y=void 0===j?"":j,w=e.disabled,b=void 0!==w&&w,N=e.fieldName,S=e.label,C=e.tip,k=e.useSubmit,P=e.onChange,T=function(){r(null),clearTimeout(h),h=null},Z=function(){var e,n=(e=a().mark((function e(n){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!k){e.next=6;break}return r((0,c.kg)(c.Jk)),t=x?!n:n,e.next=5,(0,u.Si)({apiPath:p,data:{value:t},onSuccess:function(){m({fieldName:N,value:t,path:y}),r((0,c.kg)(c.zv))},onError:function(e){r((0,c.kg)(c.Un,"There was an error: ".concat(e)))}});case 5:h=setTimeout(T,u.sI);case 6:P&&P(n);case 7:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,a){var i=e.apply(n,t);function s(e){f(i,r,a,s,o,"next",e)}function o(e){f(i,r,a,s,o,"throw",e)}s(void 0)}))});return function(e){return n.apply(this,arguments)}}(),E=null!==t&&t.type===c.Jk;return(0,i.jsxs)("div",{className:"formfield-container toggleswitch-container",children:[S&&(0,i.jsx)("div",{className:"label-side",children:(0,i.jsx)("span",{className:"formfield-label",children:S})}),(0,i.jsxs)("div",{className:"input-side",children:[(0,i.jsxs)("div",{className:"input-group",children:[(0,i.jsx)(o.Z,{className:"switch field-".concat(N),loading:E,onChange:Z,defaultChecked:v,checked:v,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:b}),(0,i.jsx)(l.Z,{status:t})]}),(0,i.jsx)("p",{className:"field-tip",children:C})]})]})}h.defaultProps={apiPath:"",checked:!1,reversed:!1,configPath:"",disabled:!1,label:"",tip:"",useSubmit:!1,onChange:null}},99928:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return q}});var r=t(85893),a=t(67294),i=t(84485),s=t(50197),o=t(35159),c=t(25964),l=t(15976),u=t(34051),d=t.n(u),f=t(77916),h=t(71577),m=t(50888),p=t(88484),v=t(78464),g=t(83200),x=t(58827);function j(e,n,t,r,a,i,s){try{var o=e[i](s),c=o.value}catch(l){return void t(l)}o.done?n(c):Promise.resolve(c).then(r,a)}var y=["image/svg+xml","image/png","image/jpeg","image/gif"];function w(){var e,n=(0,a.useState)(null),t=n[0],i=n[1],s=(0,a.useState)(!1),l=s[0],u=s[1],w=(0,a.useState)(0),b=w[0],N=w[1],S=(0,a.useContext)(o.aC)||{},C=S.setFieldInConfigState,k=S.serverConfig,P=null===k||void 0===k||null===(e=k.instanceDetails)||void 0===e?void 0:e.logo,T=(0,a.useState)(null),Z=T[0],E=T[1],_=null,I=c.ZQ.apiPath,O=c.ZQ.tip,U=function(){E(null),clearTimeout(_),_=null},L=function(){var e,n=(e=d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t===P){e.next=5;break}return E((0,g.kg)(g.Jk)),e.next=4,(0,c.Si)({apiPath:I,data:{value:t},onSuccess:function(){C({fieldName:"logo",value:t,path:""}),E((0,g.kg)(g.zv)),u(!1),N(Math.floor(100*Math.random()))},onError:function(e){E((0,g.kg)(g.Un,"There was an error: ".concat(e))),u(!1)}});case 4:_=setTimeout(U,c.sI);case 5:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,a){var i=e.apply(n,t);function s(e){j(i,r,a,s,o,"next",e)}function o(e){j(i,r,a,s,o,"throw",e)}s(void 0)}))});return function(){return n.apply(this,arguments)}}(),A="".concat(x.WB,"logo?random=").concat(b);return(0,r.jsxs)("div",{className:"formfield-container logo-upload-container",children:[(0,r.jsx)("div",{className:"label-side",children:(0,r.jsx)("span",{className:"formfield-label",children:"Logo"})}),(0,r.jsxs)("div",{className:"input-side",children:[(0,r.jsxs)("div",{className:"input-group",children:[(0,r.jsx)("img",{src:A,alt:"avatar",className:"logo-preview"}),(0,r.jsx)(f.Z,{name:"logo",listType:"picture",className:"avatar-uploader",showUploadList:!1,accept:y.join(","),beforeUpload:function(e){return u(!0),new Promise((function(n,t){if(!y.includes(e.type)){var r="File type is not supported: ".concat(e.type);return E((0,g.kg)(g.Un,"There was an error: ".concat(r))),_=setTimeout(U,c.sI),u(!1),t()}!function(e,n){var t=new FileReader;t.addEventListener("load",(function(){return n(t.result)})),t.readAsDataURL(e)}(e,(function(e){return i(e),n()}))}))},customRequest:L,disabled:l,children:l?(0,r.jsx)(m.Z,{style:{color:"white"}}):(0,r.jsx)(h.Z,{icon:(0,r.jsx)(p.Z,{})})})]}),(0,r.jsx)(v.Z,{status:Z}),(0,r.jsx)("p",{className:"field-tip",children:O})]})]})}function b(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function N(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t2),"Avatar","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(q,"` at https://ant.design/components/icon"));var $,J=I("avatar",D),ee=f()((n={},(0,s.Z)(n,"".concat(J,"-lg"),"large"===Y),(0,s.Z)(n,"".concat(J,"-sm"),"small"===Y),n)),te=i.isValidElement(M),ne=f()(J,ee,(r={},(0,s.Z)(r,"".concat(J,"-").concat(R),!!R),(0,s.Z)(r,"".concat(J,"-image"),te||M&&P),(0,s.Z)(r,"".concat(J,"-icon"),!!q),r),H),re="number"===typeof Y?{width:Y,height:Y,lineHeight:"".concat(Y,"px"),fontSize:q?Y/2:18}:{};if("string"===typeof M&&P)$=i.createElement("img",{src:M,draggable:U,srcSet:F,onError:function(){var t=e.onError;!1!==(t?t():void 0)&&T(!1)},alt:B,crossOrigin:X});else if(te)$=M;else if(q)$=q;else if(E||1!==x){var ae="scale(".concat(x,") translateX(-50%)"),ce={msTransform:ae,WebkitTransform:ae,transform:ae},ie="number"===typeof Y?{lineHeight:"".concat(Y,"px")}:{};$=i.createElement(p.default,{onResize:_},i.createElement("span",{className:"".concat(J,"-string"),ref:function(e){A.current=e},style:(0,o.Z)((0,o.Z)({},ie),ce)},W))}else $=i.createElement("span",{className:"".concat(J,"-string"),style:{opacity:0},ref:function(e){A.current=e}},W);return delete K.onError,delete K.gap,i.createElement("span",(0,o.Z)({},K,{style:(0,o.Z)((0,o.Z)((0,o.Z)({},re),V),K.style),className:ne,ref:N}),$)},Z=i.forwardRef(j);Z.displayName="Avatar",Z.defaultProps={shape:"circle",size:"default"};var E=Z,S=n(50344),C=n(96159),O=n(55241),P=function(e){var t=i.useContext(h.E_),n=t.getPrefixCls,r=t.direction,a=e.prefixCls,c=e.className,o=void 0===c?"":c,l=e.maxCount,u=e.maxStyle,d=e.size,p=n("avatar-group",a),m=f()(p,(0,s.Z)({},"".concat(p,"-rtl"),"rtl"===r),o),v=e.children,g=e.maxPopoverPlacement,y=void 0===g?"top":g,x=e.maxPopoverTrigger,k=void 0===x?"hover":x,b=(0,S.Z)(v).map((function(e,t){return(0,C.Tm)(e,{key:"avatar-key-".concat(t)})})),j=b.length;if(l&&le.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&"(".concat(n.length,")")]}),children:[(0,c.jsxs)("p",{children:["The following people are requesting to follow your Owncast server on the"," ",(0,c.jsx)("a",{href:"https://en.wikipedia.org/wiki/Fediverse",target:"_blank",rel:"noopener noreferrer",children:"Fediverse"})," ","and be alerted to when you go live. Each must be approved."]}),e(n,w)]},"2");return(0,c.jsx)("div",{className:"followers-section",children:(0,c.jsxs)(A.Z,{defaultActiveKey:"1",children:[(0,c.jsxs)(V,{tab:(0,c.jsxs)("span",{children:["Followers ",d.length>0&&"(".concat(d.length,")")]}),children:[(0,c.jsx)("p",{children:"The following accounts get notified when you go live or send a post."}),e(d,b)," "]},"1"),j,(0,c.jsxs)(V,{tab:(0,c.jsxs)("span",{children:["Blocked ",s.length>0&&"(".concat(s.length,")")]}),children:[(0,c.jsx)("p",{children:"The following people were either rejected or blocked by you. You can approve them as a follower."}),(0,c.jsx)("p",{children:e(s,k)})]},"3")]})})}}},function(e){e.O(0,[193,91,961,774,888,179],(function(){return t=1481,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[480],{1481:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/federation/followers",function(){return n(38403)}])},38403:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return $}});var r=n(34051),a=n.n(r),c=n(85893),i=n(67294),o=n(87462),s=n(4942),l=n(71002),u=n(97685),d=n(94184),f=n.n(d),p=n(48555),m=n(42550),h=n(59844),v=n(21687),g=n(24308),y=n(25378),x=i.createContext("default"),w=function(e){var t=e.children,n=e.size;return i.createElement(x.Consumer,null,(function(e){return i.createElement(x.Provider,{value:n||e},t)}))},k=x,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a2),"Avatar","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(q,"` at https://ant.design/components/icon"));var $,J=I("avatar",D),ee=f()((n={},(0,s.Z)(n,"".concat(J,"-lg"),"large"===Y),(0,s.Z)(n,"".concat(J,"-sm"),"small"===Y),n)),te=i.isValidElement(M),ne=f()(J,ee,(r={},(0,s.Z)(r,"".concat(J,"-").concat(R),!!R),(0,s.Z)(r,"".concat(J,"-image"),te||M&&P),(0,s.Z)(r,"".concat(J,"-icon"),!!q),r),H),re="number"===typeof Y?{width:Y,height:Y,lineHeight:"".concat(Y,"px"),fontSize:q?Y/2:18}:{};if("string"===typeof M&&P)$=i.createElement("img",{src:M,draggable:U,srcSet:F,onError:function(){var t=e.onError;!1!==(t?t():void 0)&&T(!1)},alt:B,crossOrigin:X});else if(te)$=M;else if(q)$=q;else if(E||1!==x){var ae="scale(".concat(x,") translateX(-50%)"),ce={msTransform:ae,WebkitTransform:ae,transform:ae},ie="number"===typeof Y?{lineHeight:"".concat(Y,"px")}:{};$=i.createElement(p.default,{onResize:_},i.createElement("span",{className:"".concat(J,"-string"),ref:function(e){A.current=e},style:(0,o.Z)((0,o.Z)({},ie),ce)},W))}else $=i.createElement("span",{className:"".concat(J,"-string"),style:{opacity:0},ref:function(e){A.current=e}},W);return delete K.onError,delete K.gap,i.createElement("span",(0,o.Z)({},K,{style:(0,o.Z)((0,o.Z)((0,o.Z)({},re),V),K.style),className:ne,ref:N}),$)},Z=i.forwardRef(j);Z.displayName="Avatar",Z.defaultProps={shape:"circle",size:"default"};var E=Z,S=n(50344),C=n(96159),O=n(55241),P=function(e){var t=i.useContext(h.E_),n=t.getPrefixCls,r=t.direction,a=e.prefixCls,c=e.className,o=void 0===c?"":c,l=e.maxCount,u=e.maxStyle,d=e.size,p=n("avatar-group",a),m=f()(p,(0,s.Z)({},"".concat(p,"-rtl"),"rtl"===r),o),v=e.children,g=e.maxPopoverPlacement,y=void 0===g?"top":g,x=e.maxPopoverTrigger,k=void 0===x?"hover":x,b=(0,S.Z)(v).map((function(e,t){return(0,C.Tm)(e,{key:"avatar-key-".concat(t)})})),j=b.length;if(l&&le.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&"(".concat(n.length,")")]}),children:[(0,c.jsxs)("p",{children:["The following people are requesting to follow your Owncast server on the"," ",(0,c.jsx)("a",{href:"https://en.wikipedia.org/wiki/Fediverse",target:"_blank",rel:"noopener noreferrer",children:"Fediverse"})," ","and be alerted to when you go live. Each must be approved."]}),e(n,w)]},"2");return(0,c.jsx)("div",{className:"followers-section",children:(0,c.jsxs)(A.Z,{defaultActiveKey:"1",children:[(0,c.jsxs)(V,{tab:(0,c.jsxs)("span",{children:["Followers ",d.length>0&&"(".concat(d.length,")")]}),children:[(0,c.jsx)("p",{children:"The following accounts get notified when you go live or send a post."}),e(d,b)," "]},"1"),j,(0,c.jsxs)(V,{tab:(0,c.jsxs)("span",{children:["Blocked ",s.length>0&&"(".concat(s.length,")")]}),children:[(0,c.jsx)("p",{children:"The following people were either rejected or blocked by you. You can approve them as a follower."}),(0,c.jsx)("p",{children:e(s,k)})]},"3")]})})}}},function(e){e.O(0,[406,91,961,774,888,179],(function(){return t=1481,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/index-159689a8a8a5e507.js b/static/admin/_next/static/chunks/pages/index-a29641f072fbdf05.js similarity index 98% rename from static/admin/_next/static/chunks/pages/index-159689a8a8a5e507.js rename to static/admin/_next/static/chunks/pages/index-a29641f072fbdf05.js index ba4c6ad8c..d04f87a1e 100644 --- a/static/admin/_next/static/chunks/pages/index-159689a8a8a5e507.js +++ b/static/admin/_next/static/chunks/pages/index-a29641f072fbdf05.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(94831)}])},824:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var r=t(85893),s=(t(67294),t(84485)),i=t(20550),a=t(15193),o=t(53731),l=t(58091),c=s.Z.Title;function d(e,n){var t="black";return"warning"===n.level?t="orange":"error"===n.level&&(t="red"),(0,r.jsx)(i.Z,{color:t,children:e})}function u(e){return(0,r.jsx)(o.Z,{children:e})}function m(e){var n=e.logs,t=e.pageSize;if(!(null===n||void 0===n?void 0:n.length))return null;var s=[{title:"Level",dataIndex:"level",key:"level",filters:[{text:"Info",value:"info"},{text:"Warning",value:"warning"},{text:"Error",value:"Error"}],onFilter:function(e,n){return 0===n.level.indexOf(e)},render:d},{title:"Timestamp",dataIndex:"time",key:"time",render:function(e){var n=new Date(e);return(0,l.Z)(n,"pp P")},sorter:function(e,n){return new Date(e.time).getTime()-new Date(n.time).getTime()},sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Message",dataIndex:"message",key:"message",render:u}];return(0,r.jsxs)("div",{className:"logs-section",children:[(0,r.jsx)(c,{children:"Logs"}),(0,r.jsx)(a.Z,{size:"middle",dataSource:n,columns:s,rowKey:function(e){return e.time},pagination:{pageSize:t||20}})]})}},94831:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return K}});var r=t(34051),s=t.n(r),i=t(85893),a=t(67294),o=t(41080),l=t(74763),c=t(97751),d=t(25968),u=t(6226),m=t(24019),h=t(87547),f=t(26555),v=t(85533),x=t(35159),p=t(824),j=t(66567),w=t(63179),g=t(78346),Z=t(27482),b=t(43439),y=t(84485),k=t(41664),N=t(92659),S=t(54907),C=t(58091),O=t(58827);function _(e,n,t,r,s,i,a){try{var o=e[i](a),l=o.value}catch(c){return void t(c)}o.done?n(l):Promise.resolve(l).then(r,s)}function P(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var D=S.Z.Panel,E=y.Z.Title,T=y.Z.Link;function I(e){var n=e.title,t=e.url,r=e.content_html,s=e.date_published,a=new Date(s),o=(0,C.Z)(a,"MMM dd, yyyy, HH:mm");return(0,i.jsx)("article",{children:(0,i.jsx)(S.Z,{children:(0,i.jsxs)(D,{header:n,children:[(0,i.jsxs)("p",{className:"timestamp",children:[o," (",(0,i.jsx)(T,{href:"".concat("https://owncast.online").concat(t),target:"_blank",rel:"noopener noreferrer",children:"Link"}),")"]}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})]},t)})})}function U(){var e=(0,a.useState)([]),n=e[0],t=e[1],r=(0,a.useState)(!0),l=r[0],c=r[1],d=function(){var e,n=(e=s().mark((function e(){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c(!1),e.prev=1,e.next=4,(0,O.kg)("https://owncast.online/news/index.json");case 4:(null===(n=e.sent)||void 0===n?void 0:n.items.length)>0&&t(n.items),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.log("==== error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})),function(){var n=this,t=arguments;return new Promise((function(r,s){var i=e.apply(n,t);function a(e){_(i,r,s,a,o,"next",e)}function o(e){_(i,r,s,a,o,"throw",e)}a(void 0)}))});return function(){return n.apply(this,arguments)}}();(0,a.useEffect)((function(){d()}),[]);var u=l?(0,i.jsx)(o.Z,{loading:!0,active:!0}):null,m=l||0!==n.length?null:(0,i.jsx)("div",{children:"No news."});return(0,i.jsxs)("section",{className:"news-feed form-module",children:[(0,i.jsx)(E,{level:2,children:"News & Updates from Owncast"}),u,n.map((function(e){return(0,a.createElement)(I,function(e){for(var n=1;n0&&t(n.items),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.log("==== error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})),function(){var n=this,t=arguments;return new Promise((function(r,s){var i=e.apply(n,t);function a(e){_(i,r,s,a,o,"next",e)}function o(e){_(i,r,s,a,o,"throw",e)}a(void 0)}))});return function(){return n.apply(this,arguments)}}();(0,a.useEffect)((function(){d()}),[]);var u=l?(0,i.jsx)(o.Z,{loading:!0,active:!0}):null,m=l||0!==n.length?null:(0,i.jsx)("div",{children:"No news."});return(0,i.jsxs)("section",{className:"news-feed form-module",children:[(0,i.jsx)(E,{level:2,children:"News & Updates from Owncast"}),u,n.map((function(e){return(0,a.createElement)(I,function(e){for(var n=1;n0&&c.push({name:n,color:a,data:u(t)}),o.forEach((function(e){c.push({name:e.name,data:u(e.data),color:e.color})})),(0,r.jsx)("div",{className:"line-chart-container",children:(0,r.jsx)(s.wW,{xtitle:"Time",ytitle:n,suffix:i,legend:"bottom",color:a,data:c,download:n})})}o().use(a.Z),l.defaultProps={dataCollections:[],data:[],title:""}},34440:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(85893),a=n(84485),i=n(97910),o=n(74763),c=n(97751);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){for(var t=1;t90?"red":o,s=(0,r.jsxs)("div",{children:[a,(0,r.jsx)("div",{children:(0,r.jsx)(l,{type:"secondary",children:t})}),(0,r.jsx)("div",{children:(0,r.jsxs)(l,{type:"secondary",children:[n,"%"]})})]});return(0,r.jsx)(i.Z,{type:"dashboard",percent:n,width:120,strokeColor:{"0%":o,"90%":c},format:function(){return s}})}function v(e){var t=e.title,n=e.value,a=e.prefix,i=e.formatter;return(0,r.jsx)(o.Z,{title:t,value:n,prefix:a,formatter:i})}function x(e){var t=e.progress?d:v,n=e.centered?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,r.jsx)(c.Z,{type:"inner",children:(0,r.jsx)("div",{style:n,children:(0,r.jsx)(t,u({},e))})})}d.defaultProps=f,v.defaultProps=f,x.defaultProps=f},78632:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=n(34051),a=n.n(r),i=n(85893),o=n(67294),c=n(84485),s=n(25968),u=n(6226),l=n(87547),f=n(89270),d=n(34440),v=n(15193),x=n(85533),p=n(2766);function h(e){var t=e.data,n=[{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,p.AB)(e)}},{title:"Location",dataIndex:"geo",key:"geo",render:function(e){return e?"".concat(e.regionName,", ").concat(e.countryCode):"-"}},{title:"Watch Time",dataIndex:"firstSeen",key:"firstSeen",defaultSortOrder:"ascend",render:function(e){return(0,x.Z)(new Date(e))},sorter:function(e,t){return new Date(e.firstSeen).getTime()-new Date(t.firstSeen).getTime()},sortDirections:["descend","ascend"]}];return(0,i.jsx)(v.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:n,dataSource:t,size:"small",rowKey:"id"})}var m=n(35159),j=n(58827);function w(e,t,n,r,a,i,o){try{var c=e[i](o),s=c.value}catch(u){return void n(u)}c.done?t(s):Promise.resolve(s).then(r,a)}function g(){var e=(0,o.useContext)(m.aC)||{},t=e.online,n=e.viewerCount,r=e.overallPeakViewerCount,v=e.sessionPeakViewerCount,x=(0,o.useState)([]),p=x[0],g=x[1],y=(0,o.useState)([]),Z=y[0],b=y[1],S=function(){var e,t=(e=a().mark((function e(){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,j.rQ)(j.iV);case 3:t=e.sent,g(t),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("==== error",e.t0);case 10:return e.prev=10,e.next=13,(0,j.rQ)(j.a_);case 13:n=e.sent,b(n),e.next=20;break;case 17:e.prev=17,e.t1=e.catch(10),console.log("==== error",e.t1);case 20:case"end":return e.stop()}}),e,null,[[0,7],[10,17]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){w(i,r,a,o,c,"next",e)}function c(e){w(i,r,a,o,c,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){var e=null;return S(),t?(e=setInterval(S,6e4),function(){clearInterval(e)}):function(){return[]}}),[t]),p.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Z.Title,{children:"Viewer Info"}),(0,i.jsx)("br",{}),(0,i.jsxs)(s.Z,{gutter:[16,16],justify:"space-around",children:[t&&(0,i.jsx)(u.Z,{span:8,md:8,children:(0,i.jsx)(d.Z,{title:"Current viewers",value:n.toString(),prefix:(0,i.jsx)(l.Z,{})})}),(0,i.jsx)(u.Z,{md:t?8:12,children:(0,i.jsx)(d.Z,{title:t?"Max viewers this session":"Max viewers last session",value:v.toString(),prefix:(0,i.jsx)(l.Z,{})})}),(0,i.jsx)(u.Z,{md:t?8:12,children:(0,i.jsx)(d.Z,{title:"All-time max viewers",value:r.toString(),prefix:(0,i.jsx)(l.Z,{})})})]}),(0,i.jsx)(f.Z,{title:"Viewers",data:p,color:"#2087E2",unit:""}),(0,i.jsx)(h,{data:Z})]}):"no info"}}},function(e){e.O(0,[570,193,91,961,308,138,910,80,774,888,179],(function(){return t=31709,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/viewer-info-d01e168cc6d70a75.js b/static/admin/_next/static/chunks/pages/viewer-info-d01e168cc6d70a75.js new file mode 100644 index 000000000..e24a89bbb --- /dev/null +++ b/static/admin/_next/static/chunks/pages/viewer-info-d01e168cc6d70a75.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[194],{87547:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(1413),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},s=n(42135),o=function(e,t){return a.createElement(s.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};o.displayName="UserOutlined";var c=a.forwardRef(o)},31709:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/viewer-info",function(){return n(51237)}])},89270:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(85893),a=n(31877),i=n(92616),s=n.n(i),o=n(58091),c=n(60727);function u(e){var t={};return e.forEach((function(e){var n=new Date(e.time),r=(0,o.Z)(n,"H:mma");t[r]=e.value})),t}function l(e){var t=e.data,n=e.title,a=e.color,i=e.unit,s=e.dataCollections,o=[];return t&&t.length>0&&o.push({name:n,color:a,data:u(t)}),s.forEach((function(e){o.push({name:e.name,data:u(e.data),color:e.color})})),(0,r.jsx)("div",{className:"line-chart-container",children:(0,r.jsx)(c.wW,{xtitle:"Time",ytitle:n,suffix:i,legend:"bottom",color:a,data:o,download:n})})}s().use(a.Z),l.defaultProps={dataCollections:[],data:[],title:""}},34440:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(85893),a=n(84485),i=n(97910),s=n(74763),o=n(97751);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){for(var t=1;t90?"red":s,c=(0,r.jsxs)("div",{children:[a,(0,r.jsx)("div",{children:(0,r.jsx)(l,{type:"secondary",children:t})}),(0,r.jsx)("div",{children:(0,r.jsxs)(l,{type:"secondary",children:[n,"%"]})})]});return(0,r.jsx)(i.Z,{type:"dashboard",percent:n,width:120,strokeColor:{"0%":s,"90%":o},format:function(){return c}})}function v(e){var t=e.title,n=e.value,a=e.prefix,i=e.formatter;return(0,r.jsx)(s.Z,{title:t,value:n,prefix:a,formatter:i})}function h(e){var t=e.progress?f:v,n=e.centered?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,r.jsx)(o.Z,{type:"inner",children:(0,r.jsx)("div",{style:n,children:(0,r.jsx)(t,u({},e))})})}f.defaultProps=d,v.defaultProps=d,h.defaultProps=d},51237:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return M}});var r=n(34051),a=n.n(r),i=n(85893),s=n(67294),o=n(68157),c=n(84485),u=n(25968),l=n(6226),d=n(38504),f=n(11382),v=n(14670),h=n(87547),x=n(80882),m=n(83946),p=n(19013),Z=n(13882);function w(e,t){(0,Z.Z)(2,arguments);var n=(0,p.Z)(e),r=(0,m.Z)(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function g(e,t){(0,Z.Z)(2,arguments);var n=(0,m.Z)(t);return w(e,-n)}function j(e,t){(0,Z.Z)(2,arguments);var n=(0,p.Z)(e),r=(0,m.Z)(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var s=i.getDate();return a>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),a),n)}function y(e,t){(0,Z.Z)(2,arguments);var n=(0,m.Z)(t);return j(e,-n)}function b(e,t){if((0,Z.Z)(2,arguments),!t||"object"!==typeof t)return new Date(NaN);var n=t.years?(0,m.Z)(t.years):0,r=t.months?(0,m.Z)(t.months):0,a=t.weeks?(0,m.Z)(t.weeks):0,i=t.days?(0,m.Z)(t.days):0,s=t.hours?(0,m.Z)(t.hours):0,o=t.minutes?(0,m.Z)(t.minutes):0,c=t.seconds?(0,m.Z)(t.seconds):0,u=y(e,r+12*n),l=g(u,i+7*a),d=o+60*s,f=c+60*d,v=1e3*f,h=new Date(l.getTime()-v);return h}function D(e){(0,Z.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getTime();return n}function S(e){return(0,Z.Z)(1,arguments),Math.floor(D(e)/1e3)}var k=n(89270),N=n(34440),C=n(77406),P=n(85533),O=n(2766);function _(e){var t=e.data,n=[{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,O.AB)(e)}},{title:"Location",dataIndex:"geo",key:"geo",render:function(e){return e?"".concat(e.regionName,", ").concat(e.countryCode):"-"}},{title:"Watch Time",dataIndex:"firstSeen",key:"firstSeen",defaultSortOrder:"ascend",render:function(e){return(0,P.Z)(new Date(e))},sorter:function(e,t){return new Date(e.firstSeen).getTime()-new Date(t.firstSeen).getTime()},sortDirections:["descend","ascend"]}];return(0,i.jsx)(C.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:n,dataSource:t,size:"small",rowKey:"id"})}var E=n(35159),T=n(58827);function I(e,t,n,r,a,i,s){try{var o=e[i](s),c=o.value}catch(u){return void n(u)}o.done?t(c):Promise.resolve(c).then(r,a)}function M(){var e,t=(0,s.useContext)(E.aC)||{},n=t.online,r=t.broadcaster,m=t.viewerCount,p=t.overallPeakViewerCount,Z=t.sessionPeakViewerCount;r&&r.time&&(e=new Date(r.time));var w=[{title:"Current stream",start:e},{title:"Last 12 hours",start:b(new Date,{hours:12})},{title:"Last 24 hours",start:b(new Date,{hours:24})},{title:"Last 7 days",start:b(new Date,{days:7})},{title:"Last 30 days",start:b(new Date,{days:30})},{title:"Last 3 months",start:b(new Date,{months:3})},{title:"Last 6 months",start:b(new Date,{months:6})}],g=(0,s.useState)(!0),j=g[0],y=g[1],D=(0,s.useState)([]),C=D[0],P=D[1],O=(0,s.useState)([]),M=O[0],L=O[1],A=(0,s.useState)(w[1]),V=A[0],z=A[1],F=function(){var e,t=(e=a().mark((function e(){var t,n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t="".concat(T.iV,"?windowStart=").concat(S(V.start)),e.next=4,(0,T.rQ)(t);case 4:n=e.sent,P(n),y(!1),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.log("==== error",e.t0);case 12:return e.prev=12,e.next=15,(0,T.rQ)(T.a_);case 15:r=e.sent,L(r),e.next=22;break;case 19:e.prev=19,e.t1=e.catch(12),console.log("==== error",e.t1);case 22:case"end":return e.stop()}}),e,null,[[0,9],[12,19]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){I(i,r,a,s,o,"next",e)}function o(e){I(i,r,a,s,o,"throw",e)}s(void 0)}))});return function(){return t.apply(this,arguments)}}();(0,s.useEffect)((function(){var e=null;return F(),n?(e=setInterval(F,6e4),function(){clearInterval(e)}):function(){return[]}}),[n,V]);var B=function(e){var t=e.key;z(w[t])},Q=(0,i.jsxs)(o.Z,{children:[n&&e&&(0,i.jsx)(o.Z.Item,{onClick:B,children:w[0].title},"0"),w.slice(1).map((function(e,t){return(0,i.jsx)(o.Z.Item,{onClick:B,children:e.title},t+1)}))]});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Z.Title,{children:"Viewer Info"}),(0,i.jsx)("br",{}),(0,i.jsxs)(u.Z,{gutter:[16,16],justify:"space-around",children:[n&&(0,i.jsx)(l.Z,{span:8,md:8,children:(0,i.jsx)(N.Z,{title:"Current viewers",value:m.toString(),prefix:(0,i.jsx)(h.Z,{})})}),(0,i.jsx)(l.Z,{md:n?8:12,children:(0,i.jsx)(N.Z,{title:n?"Max viewers this session":"Max viewers last session",value:Z.toString(),prefix:(0,i.jsx)(h.Z,{})})}),(0,i.jsx)(l.Z,{md:n?8:12,children:(0,i.jsx)(N.Z,{title:"All-time max viewers",value:p.toString(),prefix:(0,i.jsx)(h.Z,{})})})]}),(0,i.jsx)(d.Z,{overlay:Q,trigger:["click"],children:(0,i.jsxs)("button",{type:"button",style:{float:"right",background:"transparent",border:"unset"},children:[V.title," ",(0,i.jsx)(x.Z,{})]})}),C.length>0&&(0,i.jsx)(k.Z,{title:"Viewers",data:C,color:"#2087E2",unit:"viewers"}),(0,i.jsx)(_,{data:M}),(0,i.jsx)(f.Z,{spinning:j,children:0===C.length&&(0,i.jsx)(v.Z,{banner:!0,message:"Please wait",description:"No viewer data has been collected yet.",type:"info"})})]})}}},function(e){e.O(0,[570,406,91,961,308,138,910,80,774,888,179],(function(){return t=31709,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/webhooks-c3d3edd3d72835f8.js b/static/admin/_next/static/chunks/pages/webhooks-d651dd7af05b93b9.js similarity index 99% rename from static/admin/_next/static/chunks/pages/webhooks-c3d3edd3d72835f8.js rename to static/admin/_next/static/chunks/pages/webhooks-d651dd7af05b93b9.js index 8f78e0b74..a29a823d0 100644 --- a/static/admin/_next/static/chunks/pages/webhooks-c3d3edd3d72835f8.js +++ b/static/admin/_next/static/chunks/pages/webhooks-d651dd7af05b93b9.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[462],{48689:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},a=n(42135),i=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:c}))};i.displayName="DeleteOutlined";var s=o.forwardRef(i)},6226:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(4942),o=n(87462),c=n(71002),a=n(67294),i=n(94184),s=n.n(i),l=n(99134),u=n(59844),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0){var R=m[0]/2;A.paddingLeft=R,A.paddingRight=R}if(m&&m[1]>0&&!y){var I=m[1]/2;A.paddingTop=I,A.paddingBottom=I}return E&&(A.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(E),!1!==b||A.minWidth||(A.minWidth=0)),a.createElement("div",(0,o.Z)({},N,{style:(0,o.Z)((0,o.Z)({},A),P),className:T,ref:t}),C)}));d.displayName="Col";var h=d},99134:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},25968:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(87462),o=n(4942),c=n(71002),a=n(97685),i=n(67294),s=n(94184),l=n.n(s),u=n(59844),f=n(99134),p=n(93355),d=n(24308),h=n(98082),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0?R[0]/-2:void 0,G=R[1]>0?R[1]/-2:void 0;if(M&&(W.marginLeft=M,W.marginRight=M),_){var H=(0,a.Z)(R,2);W.rowGap=H[1]}else G&&(W.marginTop=G,W.marginBottom=G);var B=(0,a.Z)(R,2),D=B[0],U=B[1],z=i.useMemo((function(){return{gutter:[D,U],wrap:w,supportFlexGap:_}}),[D,U,w,_]);return i.createElement(f.Z.Provider,{value:z},i.createElement("div",(0,r.Z)({},j,{className:I,style:(0,r.Z)((0,r.Z)({},W),y),ref:t}),x))})));m.displayName="Row";var b=m},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(4942),o=n(87462),c=n(97685),a=n(67294),i=n(94184),s=n.n(i),l=n(98423),u=n(97937),f=n(59844),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0){var R=m[0]/2;A.paddingLeft=R,A.paddingRight=R}if(m&&m[1]>0&&!y){var I=m[1]/2;A.paddingTop=I,A.paddingBottom=I}return E&&(A.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(E),!1!==b||A.minWidth||(A.minWidth=0)),a.createElement("div",(0,o.Z)({},N,{style:(0,o.Z)((0,o.Z)({},A),P),className:T,ref:t}),C)}));d.displayName="Col";var h=d},99134:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},25968:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(87462),o=n(4942),c=n(71002),a=n(97685),i=n(67294),s=n(94184),l=n.n(s),u=n(59844),f=n(99134),p=n(93355),d=n(24308),h=n(98082),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0?R[0]/-2:void 0,G=R[1]>0?R[1]/-2:void 0;if(M&&(W.marginLeft=M,W.marginRight=M),_){var H=(0,a.Z)(R,2);W.rowGap=H[1]}else G&&(W.marginTop=G,W.marginBottom=G);var B=(0,a.Z)(R,2),D=B[0],U=B[1],z=i.useMemo((function(){return{gutter:[D,U],wrap:w,supportFlexGap:_}}),[D,U,w,_]);return i.createElement(f.Z.Provider,{value:z},i.createElement("div",(0,r.Z)({},j,{className:I,style:(0,r.Z)((0,r.Z)({},W),y),ref:t}),x))})));m.displayName="Row";var b=m},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(4942),o=n(87462),c=n(97685),a=n(67294),i=n(94184),s=n.n(i),l=n(98423),u=n(97937),f=n(59844),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oOwncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file diff --git a/static/admin/actions/index.html b/static/admin/actions/index.html index 278c0badf..e25e44914 100644 --- a/static/admin/actions/index.html +++ b/static/admin/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file diff --git a/static/admin/chat/messages/index.html b/static/admin/chat/messages/index.html index ed45e99ca..81754fca2 100644 --- a/static/admin/chat/messages/index.html +++ b/static/admin/chat/messages/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file diff --git a/static/admin/chat/users/index.html b/static/admin/chat/users/index.html index 7f4629718..66f7504d6 100644 --- a/static/admin/chat/users/index.html +++ b/static/admin/chat/users/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file diff --git a/static/admin/config-chat/index.html b/static/admin/config-chat/index.html index 9cf093824..c7da9e3b8 100644 --- a/static/admin/config-chat/index.html +++ b/static/admin/config-chat/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/admin/config-federation/index.html b/static/admin/config-federation/index.html index b848e444a..904c483f7 100644 --- a/static/admin/config-federation/index.html +++ b/static/admin/config-federation/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/admin/config-public-details/index.html b/static/admin/config-public-details/index.html index c71989a23..12c518302 100644 --- a/static/admin/config-public-details/index.html +++ b/static/admin/config-public-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file diff --git a/static/admin/config-server-details/index.html b/static/admin/config-server-details/index.html index 9ffbed467..33c88924a 100644 --- a/static/admin/config-server-details/index.html +++ b/static/admin/config-server-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file diff --git a/static/admin/config-social-items/index.html b/static/admin/config-social-items/index.html index 791eeeee0..daca7f64f 100644 --- a/static/admin/config-social-items/index.html +++ b/static/admin/config-social-items/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file diff --git a/static/admin/config-storage/index.html b/static/admin/config-storage/index.html index 041044826..2095c3029 100644 --- a/static/admin/config-storage/index.html +++ b/static/admin/config-storage/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file diff --git a/static/admin/config-video/index.html b/static/admin/config-video/index.html index 38f2e4936..6457cb453 100644 --- a/static/admin/config-video/index.html +++ b/static/admin/config-video/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file diff --git a/static/admin/federation/actions/index.html b/static/admin/federation/actions/index.html index 22935084e..f7377d526 100644 --- a/static/admin/federation/actions/index.html +++ b/static/admin/federation/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No Data
\ No newline at end of file diff --git a/static/admin/federation/followers/index.html b/static/admin/federation/followers/index.html index 4fc39e153..e9c957596 100644 --- a/static/admin/federation/followers/index.html +++ b/static/admin/federation/followers/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No Data
\ No newline at end of file diff --git a/static/admin/hardware-info/index.html b/static/admin/hardware-info/index.html index 54010bcdc..0d6d9d4ca 100644 --- a/static/admin/hardware-info/index.html +++ b/static/admin/hardware-info/index.html @@ -1,4 +1,4 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


Disk
0%
Loading...
\ No newline at end of file + a 47,47 0 1 1 0,94" stroke="" stroke-linecap="round" stroke-width="6" opacity="0" fill-opacity="0" style="stroke:#52C41A;stroke-dasharray:0px 295.3097094374406px;stroke-dashoffset:-37.5px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s">
Disk
0%
Loading...
\ No newline at end of file diff --git a/static/admin/help/index.html b/static/admin/help/index.html index 77995112b..c9eb7bfba 100644 --- a/static/admin/help/index.html +++ b/static/admin/help/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file diff --git a/static/admin/index.html b/static/admin/index.html index f02ade0fe..5f66cc81b 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
Not sure what to do next?
If you're having issues or would like to know how to customize and configure your Owncast server visit the help page.

News & Updates from Owncast

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
Not sure what to do next?
If you're having issues or would like to know how to customize and configure your Owncast server visit the help page.

News & Updates from Owncast

\ No newline at end of file diff --git a/static/admin/logs/index.html b/static/admin/logs/index.html index 9899c94a4..7e4d80fdf 100644 --- a/static/admin/logs/index.html +++ b/static/admin/logs/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/admin/upgrade/index.html b/static/admin/upgrade/index.html index e931286b5..dddd7d95e 100644 --- a/static/admin/upgrade/index.html +++ b/static/admin/upgrade/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file diff --git a/static/admin/viewer-info/index.html b/static/admin/viewer-info/index.html index d63d538c8..cc0af5bf3 100644 --- a/static/admin/viewer-info/index.html +++ b/static/admin/viewer-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
no info
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last session
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ No newline at end of file diff --git a/static/admin/webhooks/index.html b/static/admin/webhooks/index.html index cbc828e12..ec189748f 100644 --- a/static/admin/webhooks/index.html +++ b/static/admin/webhooks/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file