diff --git a/static/web/404.html b/static/web/404.html index ddc173480..620f02b2d 100644 --- a/static/web/404.html +++ b/static/web/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/404/index.html b/static/web/404/index.html index ddc173480..620f02b2d 100644 --- a/static/web/404/index.html +++ b/static/web/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/_next/static/HutFoDHrgAcv90pDILtMY/_buildManifest.js b/static/web/_next/static/HutFoDHrgAcv90pDILtMY/_buildManifest.js deleted file mode 100644 index 0f6b37705..000000000 --- a/static/web/_next/static/HutFoDHrgAcv90pDILtMY/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(a,s,c,e,i,t,n,d,f,h,o,m,b,u,k,r,g,j,p,l,_,w,v,y,I,B,F,A){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[k,r,g,a,s,i,t,n,f,h,j,p,l,_,"static/chunks/5768-33bf6e15d5ff8315.js",o,w,v,"static/css/4080b1834a08ebbf.css","static/chunks/pages/index-c9b695d6bbdb5b4e.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[a,s,c,e,i,t,n,d,h,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-b77b5e3dc8f81eef.js"],"/admin/access-tokens":[a,s,c,e,"static/chunks/pages/admin/access-tokens-0ab9b0c44a0a00a7.js"],"/admin/actions":[a,s,c,"static/chunks/pages/admin/actions-db055fbf43fdc231.js"],"/admin/chat/messages":[y,a,s,c,e,n,I,B,"static/chunks/pages/admin/chat/messages-1b67ebaecf96e8c1.js"],"/admin/chat/users":[y,a,s,c,e,i,n,I,B,"static/chunks/pages/admin/chat/users-57229fa608c9d9d5.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-826dceb82d133fca.js"],"/admin/config-federation":["static/chunks/1829-271cba4b38fde9a4.js","static/chunks/pages/admin/config-federation-08897e2247bf43bd.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-f36f296594904599.js"],"/admin/config-public-details":[a,s,c,m,"static/css/1f5ee95fffd43a71.css","static/chunks/927-8d644c10fb3512bc.js",F,"static/chunks/pages/admin/config-public-details-e92784f78b3a703a.js"],"/admin/config-server-details":[A,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[a,s,c,F,"static/chunks/pages/admin/config-social-items-668213a753485be5.js"],"/admin/config-storage":["static/chunks/5473-185a5241676edf4a.js","static/chunks/pages/admin/config-storage-a04c6b9cc63b11fd.js"],"/admin/config-video":[a,s,c,A,"static/chunks/5283-2d68bcc9592d5eff.js","static/chunks/pages/admin/config-video-497c67ced3b362ed.js"],"/admin/federation/actions":[a,s,c,e,"static/chunks/pages/admin/federation/actions-ab1a4849f44c9632.js"],"/admin/federation/followers":[a,s,c,e,i,"static/chunks/pages/admin/federation/followers-480c1feece872b8f.js"],"/admin/hardware-info":[b,e,i,t,d,u,m,"static/chunks/pages/admin/hardware-info-4574e94bc49c9046.js"],"/admin/help":[i,t,_,"static/chunks/9129-d700e99ec45974c3.js","static/chunks/pages/admin/help-d87a1368a8069047.js"],"/admin/logs":[a,s,c,e,h,"static/chunks/pages/admin/logs-92a12ac554e301e4.js"],"/admin/stream-health":[b,a,e,i,t,d,u,"static/chunks/pages/admin/stream-health-681b3896ade2a908.js"],"/admin/upgrade":[a,s,c,"static/chunks/9001-dfd80bc3c21b045b.js","static/chunks/pages/admin/upgrade-40df3b7b7fdad668.js"],"/admin/viewer-info":[b,a,s,c,e,i,t,n,d,u,m,"static/chunks/pages/admin/viewer-info-1681a662e9c50821.js"],"/admin/webhooks":[a,s,c,"static/chunks/pages/admin/webhooks-74e38177f6de73f1.js"],"/embed/chat/readonly":[r,g,a,f,l,o,v,"static/css/06d28146501a432f.css","static/chunks/pages/embed/chat/readonly-689659f45499ee0e.js"],"/embed/chat/readwrite":["static/chunks/pages/embed/chat/readwrite-eba1c9e46b587c63.js"],"/embed/video":[k,n,f,j,p,o,w,"static/css/8283b6095a0a048a.css","static/chunks/pages/embed/video-61510af0fd4d92ba.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/7330-32e84a34fb851e34.js","static/chunks/7266-d25df94ffd061589.js","static/chunks/355-973d1ca2734bd5dc.js","static/chunks/8091-5880357d1811013a.js","static/chunks/2944-fab178d3c2ba1b7b.js","static/chunks/6265-fff17a785cf4f99d.js","static/chunks/5938-b8bf626b6df6d168.js","static/chunks/428-ef26494fcbdd358e.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/2429-35846a119e7209fe.js","static/chunks/1899-3287d98ffaf2a526.js","static/chunks/7910-7248e2d1496cf795.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-1e3969b413cccadf.js","static/chunks/d3048c20-0576676e1017fabd.js","static/chunks/d2094a0f-f60fcb088b6bb78d.js","static/css/e70d97a4c102bec4.css","static/chunks/1681-bf79296178da4b12.js","static/chunks/2865-bb268743ae789aa6.js","static/chunks/1082-de62dbb1acdd83a0.js","static/chunks/2854-191152eb16ccb7f5.js","static/chunks/143-5f87758fe2f58ec4.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/9189-f5c2ee9572c7654a.js","static/chunks/9640-a9765e176df0f25f.js","static/chunks/2877-4ee8a344719d3523.js","static/chunks/3286-25235a0b8b0401f3.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/chunks/3052-3a4f3356a0055ed0.js b/static/web/_next/static/chunks/3052-3a4f3356a0055ed0.js new file mode 100644 index 000000000..e26432d53 --- /dev/null +++ b/static/web/_next/static/chunks/3052-3a4f3356a0055ed0.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3052],{33052:function(e,n,t){"use strict";t.d(n,{h:function(){return re},Z:function(){return ae}});var r=t(85893),a=t(97183),s=t(94199),i=t(20550),o=t(828),c=t(66516),l=t(38504),d=t(71577),u=t(26713),h=t(86548),p=t(94149),x=t(38545),v=t(87547),f=t(39398),j=t(4480),m=t(67294),g=t(49218),y=t(32365),Z=t(1899),w=t(47093),_=t.n(w),C=t(29815),b=t(38939),A=t(69677),k=t(11622),N=b.Z.Option,I=function(e){var n=e.color,t={textAlign:"center",backgroundColor:"var(--theme-color-users-".concat(n,")"),width:"100%",height:"100%"};return(0,r.jsx)("div",{style:t})},S=function(){var e=(0,j.sJ)(Z.Gt),n=(0,j.sJ)(Z.w4),t=(0,j.sJ)(Z.nk)||0,a=(0,m.useState)(n),s=a[0],i=a[1],o=s!==n&&""!==s&&(null===e||void 0===e?void 0:e.isConnected()),c=(0,C.Z)(Array(8)).map((function(e,n){return n}));return(0,r.jsxs)("div",{children:["Your chat display name is what people see when you send chat messages. Other information can go here to mention auth, and stuff.",(0,r.jsx)(A.Z,{value:s,onChange:function(e){return i(e.target.value)},placeholder:"Your chat display name",maxLength:30,showCount:!0,defaultValue:n}),(0,r.jsx)(d.Z,{disabled:!o,onClick:function(){var n={type:k.C.NAME_CHANGE,newName:s};e.send(n)},children:"Change name"}),(0,r.jsxs)("div",{children:["Your Color",(0,r.jsx)(b.Z,{style:{width:120},onChange:function(n){var t={type:k.C.COLOR_CHANGE,newColor:Number(n)};e.send(t)},defaultValue:t.toString(),getPopupContainer:function(e){return e.parentElement},children:c.map((function(e){return(0,r.jsx)(N,{title:e,children:(0,r.jsx)(I,{color:e})},e.toString())}))})]})]})},T=t(2944),F=t(47568),O=t(70655),E=t(54907),L=t(84485),J=t(11382),H=t(14670),M=t(19411),P=E.Z.Panel,B=L.Z.Link,U=function(e){var n=e.authenticated,t=e.displayName,a=e.accessToken,s=(0,m.useState)(null),i=s[0],o=s[1],c=(0,m.useState)(!1),l=c[0],h=c[1],p=(0,m.useState)(!1),x=p[0],v=p[1],f=(0,m.useState)(""),j=f[0],g=f[1],y=n?(0,r.jsxs)("span",{children:[(0,r.jsx)("b",{children:"You are already authenticated"}),". However, you can add other domains or log in as a different user."]}):(0,r.jsxs)("span",{children:["Use your own domain to authenticate ",(0,r.jsx)("span",{children:t})," or login as a previously"," ","authenticated chat user using IndieAuth."]}),Z=i;Z&&Z.includes("url does not support indieauth")&&(Z="The provided URL is either invalid or does not support IndieAuth.");var w=function(){var e=(0,F.Z)((function(){var e,n,t,r,s,i,c,l;return(0,O.__generator)(this,(function(d){switch(d.label){case 0:if(!x)return[2];h(!0),d.label=1;case 1:return d.trys.push([1,4,,5]),e="/api/auth/indieauth?accessToken=".concat(a),n="https://".concat(j),(r={}).authHost=n,t=r,s={},[4,fetch(e,(s.method="POST",s.headers={Accept:"application/json","Content-Type":"application/json"},s.body=JSON.stringify(t),s))];case 2:return[4,d.sent().json()];case 3:return(i=d.sent()).message?(o(i.message),h(!1),[2]):i.redirect?(i.redirect&&(c=i.redirect,window.location=c),[3,5]):(o("Auth provider did not return a redirect URL."),h(!1),[2]);case 4:return l=d.sent(),o(l.message),[3,5];case 5:return h(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,r.jsx)(J.Z,{spinning:l,children:(0,r.jsxs)(u.Z,{direction:"vertical",children:[y,Z&&(0,r.jsx)(H.Z,{message:"Error",description:Z,type:"error",showIcon:!0}),(0,r.jsx)("div",{children:"Your domain"}),(0,r.jsx)(A.Z.Search,{addonBefore:"https://",onInput:function(e){if(":"!==e.nativeEvent.data){g(e.target.value);var n,t="https://".concat(e.target.value);n=t,(0,M.Z)(n)&&n.includes(".")?v(!0):v(!1)}},type:"url",value:j,placeholder:"yoursite.com",status:!x&&j.length>0?"error":void 0,onPressEnter:w,enterButton:(0,r.jsx)(d.Z,{onClick:w,disabled:!x,children:"Authenticate with your domain"})}),(0,r.jsx)(E.Z,{ghost:!0,children:(0,r.jsxs)(P,{header:"Learn more about using IndieAuth to authenticate with chat.",children:[(0,r.jsx)("p",{children:"IndieAuth allows for a completely independent and decentralized way of identifying yourself using your own domain."}),(0,r.jsxs)("p",{children:["If you run an Owncast instance, you can use that domain here. Otherwise,"," ",(0,r.jsx)(B,{href:"https://indieauth.net/#providers",children:"learn more about how you can support IndieAuth"}),"."]})]},"header")}),(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:"Note"}),": This is for authentication purposes only, and no personal information will be accessed or stored."]})]})})},R=t(55237),Y=t.n(R);var z=E.Z.Panel,D=function(e){var n=e.authenticated,t=e.displayName,a=e.accessToken,s=(0,m.useState)(null),i=s[0],o=s[1],c=(0,m.useState)(!1),l=c[0],h=c[1],p=(0,m.useState)(!1),x=p[0],v=p[1],f=(0,m.useState)(""),j=f[0],g=f[1],y=(0,m.useState)(""),Z=y[0],w=y[1],_=(0,m.useState)(!1),C=_[0],b=_[1],k=n?(0,r.jsxs)("span",{children:[(0,r.jsx)("b",{children:"You are already authenticated"}),". However, you can add other domains or log in as a different user."]}):(0,r.jsxs)("span",{children:["Receive a direct message on the Fediverse to link your account to"," ",(0,r.jsx)("strong",{children:t}),", or login as a previously linked chat user."]}),N=i;N&&N.includes("url does not support indieauth")&&(N="The provided URL is either invalid or does not support IndieAuth.");var I=function(e){v(function(e){var n=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(n).toLowerCase())}(e))},S=function(){var e=(0,F.Z)((function(e,n){var t,r;return(0,O.__generator)(this,(function(a){switch(a.label){case 0:return t={},[4,fetch(e,(t.method="POST",t.headers={Accept:"application/json","Content-Type":"application/json"},t.body=JSON.stringify(n),t))];case 1:return[4,a.sent().json()];case 2:return(r=a.sent()).message&&(o(r.message),h(!1)),[2]}}))}));return function(n,t){return e.apply(this,arguments)}}(),T=function(){var e=(0,F.Z)((function(){var e,n,t,r;return(0,O.__generator)(this,(function(s){switch(s.label){case 0:h(!0),e="/api/auth/fediverse/verify?accessToken=".concat(a),(t={}).code=Z,n=t,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,S(e,n)];case 2:return s.sent(),window.location.href="/",[3,4];case 3:return r=s.sent(),console.error(r),o(r),[3,4];case 4:return h(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}(),L=function(){var e=(0,F.Z)((function(){var e,n,t,r,s;return(0,O.__generator)(this,(function(i){switch(i.label){case 0:if(!x)return[2];h(!0),o(null),e="/api/auth/fediverse?accessToken=".concat(a),n=j.replace(/^@+/,""),(r={}).account=n,t=r,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,S(e,t)];case 2:return i.sent(),b(!0),[3,4];case 3:return s=i.sent(),console.error(s),o(s),[3,4];case 4:return h(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}(),M=(0,r.jsxs)("div",{children:["Paste in the code that was sent to your Fediverse account. If you did not receive a code, make sure you can accept direct messages.",(0,r.jsxs)("div",{className:Y().codeInputContainer,children:[(0,r.jsx)(A.Z,{value:Z,onChange:function(e){return w(e.target.value)},className:Y().codeInput,placeholder:"123456",maxLength:6}),(0,r.jsx)(d.Z,{type:"primary",onClick:T,disabled:Z.length<6,className:Y().submitButton,children:"Verify Code"})]})]}),P=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{children:"Your Fediverse Account"}),(0,r.jsx)(A.Z.Search,{addonBefore:"@",onInput:function(e){g(e.target.value),I(e.target.value)},value:j,placeholder:"youraccount@yourserver.com",status:!x&&j.length>0?"error":void 0,onPressEnter:L,enterButton:(0,r.jsx)(d.Z,{onClick:L,disabled:!x,children:"Authenticate with Fediverse"})})]});return(0,r.jsx)(J.Z,{spinning:l,children:(0,r.jsxs)(u.Z,{direction:"vertical",children:[k,N&&(0,r.jsx)(H.Z,{message:"Error",description:N,type:"error",showIcon:!0}),C?M:P,(0,r.jsx)(E.Z,{ghost:!0,children:(0,r.jsx)(z,{header:"Learn more about using the Fediverse to authenticate with chat.",children:(0,r.jsx)("p",{children:"xxxxxx"})},"header")}),(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:"Note"}),": This is for authentication purposes only, and no personal information will be accessed or stored."]})]})})},V="/_next/static/media/fediverse-black.0b51c805.png",G="/_next/static/media/indieauth.38c52a3d.png",K=t(67211),Q=t.n(K),X=T.Z.TabPane,$=function(){var e=(0,j.sJ)(Z.w4),n=(0,j.sJ)(Z.L4),t=(0,j.sJ)(Z.FI);return(0,r.jsx)("div",{children:(0,r.jsxs)(T.Z,{defaultActiveKey:"1",type:"card",size:"small",renderTabBar:null,children:[(0,r.jsx)(X,{tab:(0,r.jsxs)("span",{className:Q().tabContent,children:[(0,r.jsx)("img",{className:Q().icon,src:G,alt:"IndieAuth"}),"IndieAuth"]}),children:(0,r.jsx)(U,{authenticated:n,displayName:e,accessToken:t})},"1"),(0,r.jsx)(X,{tab:(0,r.jsxs)("span",{className:Q().tabContent,children:[(0,r.jsx)("img",{className:Q().icon,src:V,alt:"Fediverse auth"}),"FediAuth"]}),children:(0,r.jsx)(D,{authenticated:n,displayName:e,accessToken:t})},"2")]})})},q=function(e){var n=e.username,t=(void 0===n?void 0:n)||(0,j.sJ)(Z.w4),a=(0,m.useState)(!1),s=a[0],i=a[1],w=(0,m.useState)(!1),C=w[0],b=w[1],A=(0,o.Z)((0,j.FV)(Z.ZA),2),k=A[0],N=A[1],I=(0,j.sJ)(Z.Q),T=function(){N(!k)};(0,g.y1)("c",T,{enableOnContentEditable:!1},[k]);var F=(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(c.Z.Item,{icon:(0,r.jsx)(h.Z,{}),onClick:function(){i(!0)},children:"Change name"},"0"),(0,r.jsx)(c.Z.Item,{icon:(0,r.jsx)(p.Z,{}),onClick:function(){return b(!0)},children:"Authenticate"},"1"),I.chatAvailable&&(0,r.jsx)(c.Z.Item,{icon:(0,r.jsx)(x.Z,{}),onClick:function(){return T()},children:"Toggle chat"},"3")]});return(0,r.jsxs)("div",{className:"".concat(_().root),children:[(0,r.jsx)(l.Z,{overlay:F,trigger:["click"],children:(0,r.jsx)(d.Z,{type:"primary",icon:(0,r.jsx)(v.Z,{style:{marginRight:".5rem"}}),children:(0,r.jsxs)(u.Z,{children:[t,(0,r.jsx)(f.Z,{})]})})}),(0,r.jsx)(y.u,{title:"Change Chat Display Name",visible:s,handleCancel:function(){return i(!1)},children:(0,r.jsx)(S,{})}),(0,r.jsx)(y.u,{title:"Authenticate",visible:C,handleCancel:function(){return b(!1)},children:(0,r.jsx)($,{})})]})},W=t(60113),ee=t(92910),ne=t.n(ee),te=a.Z.Header,re=function(e){var n=e.name,t=void 0===n?"Your stream title":n,a=e.chatAvailable,o=e.chatDisabled;return(0,r.jsxs)(te,{className:"".concat(ne().header),children:[(0,r.jsxs)("div",{className:"".concat(ne().logo),children:[(0,r.jsx)(W.C,{variant:"contrast"}),(0,r.jsx)("span",{children:t})]}),a&&!o&&(0,r.jsx)(q,{}),!a&&!o&&(0,r.jsx)(s.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,r.jsx)(i.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})},ae=re},32365:function(e,n,t){"use strict";t.d(n,{u:function(){return d}});var r=t(85893),a=t(85402),s=t(26303),i=t(11382),o=t(67294),c=t(78890),l=t.n(c),d=function(e){var n=e.title,t=e.url,c=e.visible,d=e.handleOk,u=e.handleCancel,h=e.afterClose,p=e.height,x=e.width,v=e.children,f=(0,o.useState)(!!t),j=f[0],m=f[1],g={padding:"0px",minHeight:p},y=t&&(0,r.jsx)("iframe",{title:n,src:t,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,onLoad:function(){return m(!1)}}),Z=j?"none":"inline";return(0,r.jsx)(a.Z,{title:n,visible:c,onOk:d,onCancel:u,afterClose:h,bodyStyle:g,width:x,zIndex:9999,footer:null,centered:!0,destroyOnClose:!0,children:(0,r.jsxs)(r.Fragment,{children:[j&&(0,r.jsx)(s.Z,{active:j,style:{padding:"10px"},paragraph:{rows:10}}),y&&(0,r.jsx)("div",{style:{display:Z},children:y}),v&&(0,r.jsx)("div",{className:l().content,children:v}),j&&(0,r.jsx)(i.Z,{className:l().spinner,spinning:j,size:"large"})]})})};d.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0,height:"40vh",width:"70%"}},47093:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},67211:function(e){e.exports={tabContent:"AuthModal_tabContent__KgMU3",icon:"AuthModal_icon__kpEuV"}},55237:function(e){e.exports={codeInputContainer:"FediAuthModal_codeInputContainer__M_dAD",codeInput:"FediAuthModal_codeInput__dIE6u",submitButton:"FediAuthModal_submitButton__iuF9R"}},92910:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},78890:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/384-a0ac0849b5bd17bd.js b/static/web/_next/static/chunks/384-a0ac0849b5bd17bd.js new file mode 100644 index 000000000..52e87fc74 --- /dev/null +++ b/static/web/_next/static/chunks/384-a0ac0849b5bd17bd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[384],{57838:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(97685),r=n(67294);function i(){var e=r.useReducer((function(e){return e+1}),0);return(0,a.Z)(e,2)[1]}},25378:function(e,t,n){var a=n(67294),r=n(57838),i=n(24308);t.Z=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=(0,a.useRef)({}),n=(0,r.Z)();return(0,a.useEffect)((function(){var a=i.ZP.subscribe((function(a){t.current=a,e&&n()}));return function(){return i.ZP.unsubscribe(a)}}),[]),t.current}},40378:function(e,t,n){var a=n(6213);t.Z=a.Z},3698:function(e,t,n){n.d(t,{Z:function(){return M}});var a=n(4942),r=n(87462),i=n(1413),o=n(67294),l={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"},c=n(42135),s=function(e,t){return o.createElement(c.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:l}))};s.displayName="DoubleLeftOutlined";var u=o.forwardRef(s),p={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"},h=function(e,t){return o.createElement(c.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:p}))};h.displayName="DoubleRightOutlined";var m=o.forwardRef(h),d=n(6171),g=n(18073),f=n(94184),v=n.n(f),C=n(15671),x=n(43144),y=n(60136),N=n(33643),b=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),r=v()(n,"".concat(n,"-").concat(e.page),(t={},(0,a.Z)(t,"".concat(n,"-active"),e.active),(0,a.Z)(t,"".concat(n,"-disabled"),!e.page),(0,a.Z)(t,e.className,!!e.className),t));return o.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",o.createElement("a",{rel:"nofollow"},e.page)))},E=13,P=38,S=40,I=function(e){(0,y.Z)(n,e);var t=(0,N.Z)(n);function n(){var e;(0,C.Z)(this,n);for(var a=arguments.length,r=new Array(a),i=0;i=0||t.relatedTarget.className.indexOf("".concat(i,"-item"))>=0)||r(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==E&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,x.Z)(n,[{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,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,a=t.locale,r=t.rootPrefixCls,i=t.changeSize,l=t.quickGo,c=t.goButton,s=t.selectComponentClass,u=t.buildOptionText,p=t.selectPrefixCls,h=t.disabled,m=this.state.goInputText,d="".concat(r,"-options"),g=s,f=null,v=null,C=null;if(!i&&!l)return null;var x=this.getPageSizeOptions();if(i&&g){var y=x.map((function(t,n){return o.createElement(g.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))}));f=o.createElement(g,{disabled:h,prefixCls:p,showSearch:!1,className:"".concat(d,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||x[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":a.page_size,defaultOpen:!1},y)}return l&&(c&&(C="boolean"===typeof c?o.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(d,"-quick-jumper-button")},a.jump_to_confirm):o.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),v=o.createElement("div",{className:"".concat(d,"-quick-jumper")},a.jump_to,o.createElement("input",{disabled:h,type:"text",value:m,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":a.page}),a.page,C)),o.createElement("li",{className:"".concat(d)},f,v)}}]),n}(o.Component);I.defaultProps={pageSizeOptions:["10","20","50","100"]};var k=I;function z(){}function w(e){var t=Number(e);return"number"===typeof t&&!isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Z(e,t,n){var a="undefined"===typeof e?t.pageSize:e;return Math.floor((n.total-1)/a)+1}var O=function(e){(0,y.Z)(n,e);var t=(0,N.Z)(n);function n(e){var a;(0,C.Z)(this,n),(a=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(Z(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(e,t){var n=a.props.prefixCls,r=e||o.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"===typeof e&&(r=o.createElement(e,(0,i.Z)({},a.props))),r},a.savePaginationNode=function(e){a.paginationNode=e},a.isValid=function(e){var t=a.props.total;return w(e)&&e!==a.state.current&&w(t)&&t>0},a.shouldDisplayQuickJumper=function(){var e=a.props,t=e.showQuickJumper;return!(e.total<=a.state.pageSize)&&t},a.handleKeyDown=function(e){e.keyCode!==P&&e.keyCode!==S||e.preventDefault()},a.handleKeyUp=function(e){var t=a.getValidValue(e);t!==a.state.currentInputValue&&a.setState({currentInputValue:t}),e.keyCode===E?a.handleChange(t):e.keyCode===P?a.handleChange(t-1):e.keyCode===S&&a.handleChange(t+1)},a.handleBlur=function(e){var t=a.getValidValue(e);a.handleChange(t)},a.changePageSize=function(e){var t=a.state.current,n=Z(e,a.state,a.props);t=t>n?n:t,0===n&&(t=a.state.current),"number"===typeof e&&("pageSize"in a.props||a.setState({pageSize:e}),"current"in a.props||a.setState({current:t,currentInputValue:t})),a.props.onShowSizeChange(t,e),"onChange"in a.props&&a.props.onChange&&a.props.onChange(t,e)},a.handleChange=function(e){var t=a.props,n=t.disabled,r=t.onChange,i=a.state,o=i.pageSize,l=i.current,c=i.currentInputValue;if(a.isValid(e)&&!n){var s=Z(void 0,a.state,a.props),u=e;return e>s?u=s:e<1&&(u=1),"current"in a.props||a.setState({current:u}),u!==c&&a.setState({currentInputValue:u}),r(u,o),u}return l},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current2?n-2:0),r=2;r=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,a=e.totalBoundaryShowSizeChanger;return"undefined"!==typeof t?t:n>a}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,a=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),r=!this.hasPrev();return(0,o.isValidElement)(a)?(0,o.cloneElement)(a,{disabled:r}):a}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,a=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),r=!this.hasNext();return(0,o.isValidElement)(a)?(0,o.cloneElement)(a,{disabled:r}):a}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.className,l=t.style,c=t.disabled,s=t.hideOnSinglePage,u=t.total,p=t.locale,h=t.showQuickJumper,m=t.showLessItems,d=t.showTitle,g=t.showTotal,f=t.simple,C=t.itemRender,x=t.showPrevNextJumpers,y=t.jumpPrevIcon,N=t.jumpNextIcon,E=t.selectComponentClass,P=t.selectPrefixCls,S=t.pageSizeOptions,I=this.state,z=I.current,w=I.pageSize,O=I.currentInputValue;if(!0===s&&u<=w)return null;var _=Z(void 0,this.state,this.props),j=[],T=null,V=null,K=null,L=null,J=null,B=h&&h.goButton,R=m?1:2,D=z-1>0?z-1:0,M=z+1<_?z+1:_,U=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{});if(f)return B&&(J="boolean"===typeof B?o.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},p.jump_to_confirm):o.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},B),J=o.createElement("li",{title:d?"".concat(p.jump_to).concat(z,"/").concat(_):null,className:"".concat(n,"-simple-pager")},J)),o.createElement("ul",(0,r.Z)({className:v()(n,"".concat(n,"-simple"),(0,a.Z)({},"".concat(n,"-disabled"),c),i),style:l,ref:this.savePaginationNode},U),o.createElement("li",{title:d?p.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:v()("".concat(n,"-prev"),(0,a.Z)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(D)),o.createElement("li",{title:d?"".concat(z,"/").concat(_):null,className:"".concat(n,"-simple-pager")},o.createElement("input",{type:"text",value:O,disabled:c,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),o.createElement("span",{className:"".concat(n,"-slash")},"/"),_),o.createElement("li",{title:d?p.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:v()("".concat(n,"-next"),(0,a.Z)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(M)),J);if(_<=3+2*R){var G={locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:d,itemRender:C};_||j.push(o.createElement(b,(0,r.Z)({},G,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var q=1;q<=_;q+=1){var H=z===q;j.push(o.createElement(b,(0,r.Z)({},G,{key:q,page:q,active:H})))}}else{var Q=m?p.prev_3:p.prev_5,A=m?p.next_3:p.next_5;x&&(T=o.createElement("li",{title:d?Q:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:v()("".concat(n,"-jump-prev"),(0,a.Z)({},"".concat(n,"-jump-prev-custom-icon"),!!y))},C(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(y,"prev page"))),V=o.createElement("li",{title:d?A:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:v()("".concat(n,"-jump-next"),(0,a.Z)({},"".concat(n,"-jump-next-custom-icon"),!!N))},C(this.getJumpNextPage(),"jump-next",this.getItemIcon(N,"next page")))),L=o.createElement(b,{locale:p,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_,page:_,active:!1,showTitle:d,itemRender:C}),K=o.createElement(b,{locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:d,itemRender:C});var W=Math.max(1,z-R),F=Math.min(z+R,_);z-1<=R&&(F=1+2*R),_-z<=R&&(W=_-2*R);for(var Y=W;Y<=F;Y+=1){var X=z===Y;j.push(o.createElement(b,{locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Y,page:Y,active:X,showTitle:d,itemRender:C}))}z-1>=2*R&&3!==z&&(j[0]=(0,o.cloneElement)(j[0],{className:"".concat(n,"-item-after-jump-prev")}),j.unshift(T)),_-z>=2*R&&z!==_-2&&(j[j.length-1]=(0,o.cloneElement)(j[j.length-1],{className:"".concat(n,"-item-before-jump-next")}),j.push(V)),1!==W&&j.unshift(K),F!==_&&j.push(L)}var $=null;g&&($=o.createElement("li",{className:"".concat(n,"-total-text")},g(u,[0===u?0:(z-1)*w+1,z*w>u?u:z*w])));var ee=!this.hasPrev()||!_,te=!this.hasNext()||!_;return o.createElement("ul",(0,r.Z)({className:v()(n,i,(0,a.Z)({},"".concat(n,"-disabled"),c)),style:l,unselectable:"unselectable",ref:this.savePaginationNode},U),$,o.createElement("li",{title:d?p.prev_page:null,onClick:this.prev,tabIndex:ee?null:0,onKeyPress:this.runIfEnterPrev,className:v()("".concat(n,"-prev"),(0,a.Z)({},"".concat(n,"-disabled"),ee)),"aria-disabled":ee},this.renderPrev(D)),j,o.createElement("li",{title:d?p.next_page:null,onClick:this.next,tabIndex:te?null:0,onKeyPress:this.runIfEnterNext,className:v()("".concat(n,"-next"),(0,a.Z)({},"".concat(n,"-disabled"),te)),"aria-disabled":te},this.renderNext(M)),o.createElement(k,{disabled:c,locale:p,rootPrefixCls:n,selectComponentClass:E,selectPrefixCls:P,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:z,pageSize:w,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:B}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var a=t.current,r=Z(e.pageSize,t,e);a=a>r?r:a,"current"in e||(n.current=a,n.currentInputValue=a),n.pageSize=e.pageSize}return n}}]),n}(o.Component);O.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:z,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:z,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,t,n){return n},totalBoundaryShowSizeChanger:50};var _=O,j=n(62906),T=n(53124),V=n(25378),K=n(23715),L=n(38939),J=function(e){return o.createElement(L.Z,(0,r.Z)({},e,{size:"small"}))},B=function(e){return o.createElement(L.Z,(0,r.Z)({},e,{size:"middle"}))};J.Option=L.Z.Option,B.Option=L.Z.Option;var R=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r=0?"".concat(t,"-slide-down"):"".concat(t,"-slide-up")}(),trigger:j,overlay:function(){var t,n=e.overlay;return t="function"===typeof n?n():n,t=d.Children.only("string"===typeof t?d.createElement("span",null,t):t),d.createElement(m.J,{prefixCls:"".concat(R,"-menu"),expandIcon:d.createElement("span",{className:"".concat(R,"-menu-submenu-arrow")},d.createElement(l.Z,{className:"".concat(R,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:z,validator:function(e){e.mode}},t)},placement:function(){var t=e.placement;return t?t.includes("Center")?t.slice(0,t.indexOf("Center")):t:"rtl"===b?"bottomRight":"bottomLeft"}(),onVisibleChange:H}),T)});O.Button=S,O.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var x=O,M=O},62986:function(e,t,n){n.d(t,{Z:function(){return h}});var o=n(4942),r=n(87462),a=n(94184),i=n.n(a),l=n(67294),u=n(53124),c=n(23715),s=function(){var e=(0,l.useContext(u.E_).getPrefixCls)("empty-img-default");return l.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),l.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),l.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),l.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),l.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),l.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},f=function(){var e=(0,l.useContext(u.E_).getPrefixCls)("empty-img-simple");return l.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},l.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),l.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))},p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rZ&&(a="".concat(i.slice(0,Z),"..."))}var l=function(t){t&&t.stopPropagation(),R(e)};return"function"===typeof x?function(e,t,n,o,r){return v.createElement("span",{onMouseDown:function(e){L(e),M(!u)}},x({label:t,value:e,disabled:n,closable:o,onClose:r}))}(o,a,t,r,l):ee(n,a,t,r,l)},renderRest:function(e){var t="function"===typeof O?O(e):O;return ee(t,t,!1)},suffix:te,itemKey:A,maxCount:C});return v.createElement(v.Fragment,null,ne,!l.length&&!Q&&v.createElement("span",{className:"".concat(J,"-placeholder")},p))},H=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,r=e.inputRef,a=e.disabled,i=e.autoFocus,l=e.autoComplete,u=e.activeDescendantId,s=e.mode,f=e.open,p=e.values,d=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,b=e.activeValue,y=e.maxLength,w=e.onInputKeyDown,E=e.onInputMouseDown,C=e.onInputChange,Z=e.onInputPaste,S=e.onInputCompositionStart,O=e.onInputCompositionEnd,x=v.useState(!1),M=(0,c.Z)(x,2),I=M[0],P=M[1],R="combobox"===s,D=R||h,j=p[0],k=g||"";R&&b&&!I&&(k=b),v.useEffect((function(){R&&P(!1)}),[R,b]);var A=!("combobox"!==s&&!f&&!h)&&!!k,L=!j||"string"!==typeof j.label&&"number"!==typeof j.label?void 0:j.label.toString();return v.createElement(v.Fragment,null,v.createElement("span",{className:"".concat(n,"-selection-search")},v.createElement(T,{ref:r,prefixCls:n,id:o,open:f,inputElement:t,disabled:a,autoFocus:i,autoComplete:l,editable:D,activeDescendantId:u,value:k,onKeyDown:w,onMouseDown:E,onChange:function(e){P(!0),C(e)},onPaste:Z,onCompositionStart:S,onCompositionEnd:O,tabIndex:m,attrs:(0,N.Z)(e,!0),maxLength:R?y:void 0})),!R&&j&&!A&&v.createElement("span",{className:"".concat(n,"-selection-item"),title:L},j.label),function(){if(j)return null;var e=A?{visibility:"hidden"}:void 0;return v.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},d)}())};function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=v.useRef(null),n=v.useRef(null);function o(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return v.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},o]}var F=function(e,t){var n=(0,v.useRef)(null),o=(0,v.useRef)(!1),a=e.prefixCls,i=e.open,l=e.mode,u=e.showSearch,s=e.tokenWithEnter,f=e.onSearch,p=e.onSearchSubmit,d=e.onToggleOpen,h=e.onInputKeyDown,g=e.domRef;v.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var b=V(0),y=(0,c.Z)(b,2),w=y[0],E=y[1],C=(0,v.useRef)(null),Z=function(e){!1!==f(e,!0,o.current)&&d(!0)},S={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==m.Z.UP&&n!==m.Z.DOWN||e.preventDefault(),h&&h(e),n!==m.Z.ENTER||"tags"!==l||o.current||i||null===p||void 0===p||p(e.target.value),t=n,[m.Z.ESC,m.Z.SHIFT,m.Z.BACKSPACE,m.Z.TAB,m.Z.WIN_KEY,m.Z.ALT,m.Z.META,m.Z.WIN_KEY_RIGHT,m.Z.CTRL,m.Z.SEMICOLON,m.Z.EQUALS,m.Z.CAPS_LOCK,m.Z.CONTEXT_MENU,m.Z.F1,m.Z.F2,m.Z.F3,m.Z.F4,m.Z.F5,m.Z.F6,m.Z.F7,m.Z.F8,m.Z.F9,m.Z.F10,m.Z.F11,m.Z.F12].includes(t)||d(!0)},onInputMouseDown:function(){E(!0)},onInputChange:function(e){var t=e.target.value;if(s&&C.current&&/[\r\n]/.test(C.current)){var n=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,C.current)}C.current=null,Z(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");C.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&Z(e.target.value)}},O="multiple"===l||"tags"===l?v.createElement(_,(0,r.Z)({},e,S)):v.createElement(H,(0,r.Z)({},e,S));return v.createElement("div",{ref:g,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=w();e.target===n.current||t||e.preventDefault(),("combobox"===l||u&&t)&&i||(i&&f("",!0,!1),d())}},O)},z=v.forwardRef(F);z.displayName="Selector";var K=z;var U=v.createContext(null);var W=["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"],B=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Y(e){return"tags"===e||"multiple"===e}var G=v.forwardRef((function(e,t){var n,a,d=e.id,w=e.prefixCls,E=e.className,C=e.showSearch,Z=e.tagRender,S=e.direction,O=e.omitDomProps,x=e.displayValues,N=e.onDisplayValuesChange,I=e.emptyOptions,R=e.notFoundContent,D=void 0===R?"Not Found":R,T=e.onClear,j=e.mode,k=e.disabled,A=e.loading,L=e.getInputElement,_=e.getRawInputElement,H=e.open,F=e.defaultOpen,z=e.onDropdownVisibleChange,G=e.activeValue,X=e.onActiveValueChange,$=e.activeDescendantId,J=e.searchValue,Q=e.onSearch,q=e.onSearchSplit,ee=e.tokenSeparators,te=e.allowClear,ne=e.showArrow,oe=e.inputIcon,re=e.clearIcon,ae=e.OptionList,ie=e.animation,le=e.transitionName,ue=e.dropdownStyle,ce=e.dropdownClassName,se=e.dropdownMatchSelectWidth,fe=e.dropdownRender,pe=e.dropdownAlign,de=e.placement,ve=e.getPopupContainer,me=e.showAction,he=void 0===me?[]:me,ge=e.onFocus,be=e.onBlur,ye=e.onKeyUp,we=e.onKeyDown,Ee=e.onMouseDown,Ce=(0,s.Z)(e,W),Ze=Y(j),Se=(void 0!==C?C:Ze)||"combobox"===j,Oe=(0,u.Z)({},Ce);B.forEach((function(e){delete Oe[e]})),null===O||void 0===O||O.forEach((function(e){delete Oe[e]}));var xe=v.useState(!1),Me=(0,c.Z)(xe,2),Ne=Me[0],Ie=Me[1];v.useEffect((function(){Ie((0,h.Z)())}),[]);var Pe=v.useRef(null),Re=v.useRef(null),De=v.useRef(null),Te=v.useRef(null),je=v.useRef(null),ke=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=v.useState(!1),n=(0,c.Z)(t,2),o=n[0],r=n[1],a=v.useRef(null),i=function(){window.clearTimeout(a.current)};return v.useEffect((function(){return i}),[]),[o,function(t,n){i(),a.current=window.setTimeout((function(){r(t),n&&n()}),e)},i]}(),Ae=(0,c.Z)(ke,3),Le=Ae[0],_e=Ae[1],He=Ae[2];v.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Te.current)||void 0===e?void 0:e.focus,blur:null===(t=Te.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=je.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Ve=v.useMemo((function(){var e;if("combobox"!==j)return J;var t=null===(e=x[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""}),[J,j,x]),Fe="combobox"===j&&"function"===typeof L&&L()||null,ze="function"===typeof _&&_(),Ke=(0,g.x1)(Re,null===ze||void 0===ze||null===(n=ze.props)||void 0===n?void 0:n.ref),Ue=(0,p.Z)(void 0,{defaultValue:F,value:H}),We=(0,c.Z)(Ue,2),Be=We[0],Ye=We[1],Ge=Be,Xe=!D&&I;(k||Xe&&Ge&&"combobox"===j)&&(Ge=!1);var $e=!Xe&&Ge,Je=v.useCallback((function(e){var t=void 0!==e?e:!Ge;Ge===t||k||(Ye(t),null===z||void 0===z||z(t))}),[k,Ge,Ye,z]),Qe=v.useMemo((function(){return(ee||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ee]),qe=function(e,t,n){var o=!0,r=e;null===X||void 0===X||X(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,o=function e(t,o){var r=(0,y.Z)(o),a=r[0],i=r.slice(1);if(!a)return[t];var u=t.split(a);return n=n||u.length>1,u.reduce((function(t,n){return[].concat((0,l.Z)(t),(0,l.Z)(e(n,i)))}),[]).filter((function(e){return e}))}(e,t);return n?o:null}(e,ee);return"combobox"!==j&&a&&(r="",null===q||void 0===q||q(a),Je(!1),o=!1),Q&&Ve!==r&&Q(r,{source:t?"typing":"effect"}),o};v.useEffect((function(){Ge||Ze||"combobox"===j||qe("",!1,!1)}),[Ge]),v.useEffect((function(){Be&&k&&Ye(!1),k&&_e(!1)}),[k]);var et=V(),tt=(0,c.Z)(et,2),nt=tt[0],ot=tt[1],rt=v.useRef(!1),at=[];v.useEffect((function(){return function(){at.forEach((function(e){return clearTimeout(e)})),at.splice(0,at.length)}}),[]);var it,lt=v.useState(null),ut=(0,c.Z)(lt,2),ct=ut[0],st=ut[1],ft=v.useState({}),pt=(0,c.Z)(ft,2)[1];(0,b.Z)((function(){if($e){var e,t=Math.ceil(null===(e=Pe.current)||void 0===e?void 0:e.offsetWidth);ct===t||Number.isNaN(t)||st(t)}}),[$e]),ze&&(it=function(e){Je(e)}),function(e,t,n,o){var r=v.useRef(null);r.current={open:t,triggerOpen:n,customizedTrigger:o},v.useEffect((function(){function t(t){var n;if(!(null===(n=r.current)||void 0===n?void 0:n.customizedTrigger)){var o=t.target;o.shadowRoot&&t.composed&&(o=t.composedPath()[0]||o),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Pe.current,null===(e=De.current)||void 0===e?void 0:e.getPopupElement()]}),$e,Je,!!ze);var dt,vt,mt=v.useMemo((function(){return(0,u.Z)((0,u.Z)({},e),{},{notFoundContent:D,open:Ge,triggerOpen:$e,id:d,showSearch:Se,multiple:Ze,toggleOpen:Je})}),[e,D,$e,Ge,d,Se,Ze,Je]),ht=void 0!==ne?ne:A||!Ze&&"combobox"!==j;ht&&(dt=v.createElement(P,{className:i()("".concat(w,"-arrow"),(0,o.Z)({},"".concat(w,"-arrow-loading"),A)),customizeIcon:oe,customizeIconProps:{loading:A,searchValue:Ve,open:Ge,focused:Le,showSearch:Se}}));!k&&te&&(x.length||Ve)&&(vt=v.createElement(P,{className:"".concat(w,"-clear"),onMouseDown:function(){null===T||void 0===T||T(),N([],{type:"clear",values:x}),qe("",!1,!1)},customizeIcon:re},"\xd7"));var gt,bt=v.createElement(ae,{ref:je}),yt=i()(w,E,(a={},(0,o.Z)(a,"".concat(w,"-focused"),Le),(0,o.Z)(a,"".concat(w,"-multiple"),Ze),(0,o.Z)(a,"".concat(w,"-single"),!Ze),(0,o.Z)(a,"".concat(w,"-allow-clear"),te),(0,o.Z)(a,"".concat(w,"-show-arrow"),ht),(0,o.Z)(a,"".concat(w,"-disabled"),k),(0,o.Z)(a,"".concat(w,"-loading"),A),(0,o.Z)(a,"".concat(w,"-open"),Ge),(0,o.Z)(a,"".concat(w,"-customize-input"),Fe),(0,o.Z)(a,"".concat(w,"-show-search"),Se),a)),wt=v.createElement(M,{ref:De,disabled:k,prefixCls:w,visible:$e,popupElement:bt,containerWidth:ct,animation:ie,transitionName:le,dropdownStyle:ue,dropdownClassName:ce,direction:S,dropdownMatchSelectWidth:se,dropdownRender:fe,dropdownAlign:pe,placement:de,getPopupContainer:ve,empty:I,getTriggerDOMNode:function(){return Re.current},onPopupVisibleChange:it,onPopupMouseEnter:function(){pt({})}},ze?v.cloneElement(ze,{ref:Ke}):v.createElement(K,(0,r.Z)({},e,{domRef:Re,prefixCls:w,inputElement:Fe,ref:Te,id:d,showSearch:Se,mode:j,activeDescendantId:$,tagRender:Z,values:x,open:Ge,onToggleOpen:Je,activeValue:G,searchValue:Ve,onSearch:qe,onSearchSubmit:function(e){e&&e.trim()&&Q(e,{source:"submit"})},onRemove:function(e){var t=x.filter((function(t){return t!==e}));N(t,{type:"remove",values:[e]})},tokenWithEnter:Qe})));return gt=ze?wt:v.createElement("div",(0,r.Z)({className:yt},Oe,{ref:Pe,onMouseDown:function(e){var t,n=e.target,o=null===(t=De.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=at.indexOf(r);-1!==t&&at.splice(t,1),He(),Ne||o.contains(document.activeElement)||null===(e=Te.current)||void 0===e||e.focus()}));at.push(r)}for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l=0;i-=1){var u=r[i];if(!u.disabled){r.splice(i,1),a=u;break}}a&&N(r,{type:"remove",values:[a]})}for(var c=arguments.length,s=new Array(c>1?c-1:0),f=1;f1?t-1:0),o=1;o1&&void 0!==arguments[1]&&arguments[1];return(0,te.Z)(e).map((function(e,n){if(!v.isValidElement(e)||!e.type)return null;var o=e.type.isSelectOptGroup,r=e.key,a=e.props,i=a.children,l=(0,s.Z)(a,oe);return t||!o?re(e):(0,u.Z)((0,u.Z)({key:"__RC_SELECT_GRP__".concat(null===r?n:r,"__"),label:r},l),{},{options:ae(i)})})).filter((function(e){return e}))}function ie(e,t,n,o,r){return v.useMemo((function(){var a=e;!e&&(a=ae(t));var i=new Map,l=new Map,u=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c1&&void 0!==arguments[1]?arguments[1]:1,n=j.length,o=0;o1&&void 0!==arguments[1]&&arguments[1];z(e);var n={source:t?"keyboard":"mouse"},o=j[e];o?C(o.value,e,n):C(null,-1,n)};(0,v.useEffect)((function(){K(!1!==Z?_(0):-1)}),[j.length,h]);var W=v.useCallback((function(e){return x.has(e)&&"combobox"!==d}),[d,(0,l.Z)(x).toString()]);(0,v.useEffect)((function(){var e,t=setTimeout((function(){if(!p&&f&&1===x.size){var e=Array.from(x)[0],t=j.findIndex((function(t){return t.data.value===e}));-1!==t&&(K(t),L(t))}}));f&&(null===(e=k.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[f,h]);var B=function(e){void 0!==e&&S(e,{selected:!x.has(e)}),p||g(!1)};if(v.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case m.Z.N:case m.Z.P:case m.Z.UP:case m.Z.DOWN:var o=0;if(t===m.Z.UP?o=-1:t===m.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===m.Z.N?o=1:t===m.Z.P&&(o=-1)),0!==o){var r=_(F+o,o);L(r),K(r,!0)}break;case m.Z.ENTER:var a=j[F];a&&!a.data.disabled?B(a.value):B(void 0),f&&e.preventDefault();break;case m.Z.ESC:g(!1),f&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){L(e)}}})),0===j.length)return v.createElement("div",{role:"listbox",id:"".concat(u,"_list"),className:"".concat(T,"-empty"),onMouseDown:A},b);var Y=Object.keys(M).map((function(e){return M[e]})),G=function(e){return e.label},X=function(e){var t=j[e];if(!t)return null;var n=t.data||{},o=n.value,a=t.group,i=(0,N.Z)(n,!0),l=G(t);return t?v.createElement("div",(0,r.Z)({"aria-label":"string"!==typeof l||a?null:l},i,{key:e,role:a?"presentation":"option",id:"".concat(u,"_list_").concat(e),"aria-selected":W(o)}),o):null};return v.createElement(v.Fragment,null,v.createElement("div",{role:"listbox",id:"".concat(u,"_list"),style:{height:0,width:0,overflow:"hidden"}},X(F-1),X(F),X(F+1)),v.createElement(ve.Z,{itemKey:"key",ref:k,data:j,height:R,itemHeight:D,fullHeight:!1,onMouseDown:A,onScroll:y,virtual:I},(function(e,t){var n,a=e.group,l=e.groupOption,u=e.data,c=e.label,f=e.value,p=u.key;if(a){var d,m=null!==(d=u.title)&&void 0!==d?d:ge(c)?c.toString():void 0;return v.createElement("div",{className:i()(T,"".concat(T,"-group")),title:m},void 0!==c?c:p)}var h=u.disabled,g=u.title,b=(u.children,u.style),y=u.className,w=(0,s.Z)(u,he),E=(0,pe.Z)(w,Y),C=W(f),Z="".concat(T,"-option"),S=i()(T,Z,y,(n={},(0,o.Z)(n,"".concat(Z,"-grouped"),l),(0,o.Z)(n,"".concat(Z,"-active"),F===t&&!h),(0,o.Z)(n,"".concat(Z,"-disabled"),h),(0,o.Z)(n,"".concat(Z,"-selected"),C),n)),x=G(e),M=!O||"function"===typeof O||C,I="number"===typeof x?x:x||f,R=ge(I)?I.toString():void 0;return void 0!==g&&(R=g),v.createElement("div",(0,r.Z)({},(0,N.Z)(E),{"aria-selected":C,className:S,title:R,onMouseMove:function(){F===t||h||K(t)},onClick:function(){h||B(f)},style:b}),v.createElement("div",{className:"".concat(Z,"-content")},I),v.isValidElement(O)||C,M&&v.createElement(P,{className:"".concat(T,"-option-state"),customizeIcon:O,customizeIconProps:{isSelected:C}},C?"\u2713":null))})))},ye=v.forwardRef(be);ye.displayName="OptionList";var we=ye;var Ee=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Ce=["inputValue"];var Ze=v.forwardRef((function(e,t){var n=e.id,a=e.mode,i=e.prefixCls,d=void 0===i?"rc-select":i,m=e.backfill,h=e.fieldNames,g=e.inputValue,b=e.searchValue,y=e.onSearch,Z=e.autoClearSearchValue,S=void 0===Z||Z,O=e.onSelect,x=e.onDeselect,M=e.dropdownMatchSelectWidth,N=void 0===M||M,I=e.filterOption,P=e.filterSort,R=e.optionFilterProp,D=e.optionLabelProp,T=e.options,k=e.children,A=e.defaultActiveFirstOption,L=e.menuItemSelectedIcon,_=e.virtual,H=e.listHeight,V=void 0===H?200:H,F=e.listItemHeight,z=void 0===F?20:F,K=e.value,U=e.defaultValue,W=e.labelInValue,B=e.onChange,G=(0,s.Z)(e,Ee),J=ee(n),Q=Y(a),q=!(T||!k),te=v.useMemo((function(){return(void 0!==I||"combobox"!==a)&&I}),[I,a]),ne=v.useMemo((function(){return E(h,q)}),[JSON.stringify(h),q]),oe=(0,p.Z)("",{value:void 0!==b?b:g,postState:function(e){return e||""}}),re=(0,c.Z)(oe,2),ae=re[0],ue=re[1],ce=ie(T,k,ne,R,D),se=ce.valueOptions,fe=ce.labelOptions,pe=ce.options,de=v.useCallback((function(e){return j(e).map((function(e){var t,n,o,r,a;(function(e){return!e||"object"!==(0,f.Z)(e)})(e)?t=e:(o=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:o);var i,l=se.get(t);l&&(void 0===n&&(n=null===l||void 0===l?void 0:l[D||ne.label]),void 0===o&&(o=null!==(i=null===l||void 0===l?void 0:l.key)&&void 0!==i?i:t),r=null===l||void 0===l?void 0:l.disabled);return{label:n,value:t,key:o,disabled:r}}))}),[ne,D,se]),ve=(0,p.Z)(U,{value:K}),he=(0,c.Z)(ve,2),ge=he[0],be=he[1],ye=function(e,t){var n=v.useRef({values:new Map,options:new Map});return[v.useMemo((function(){var o=n.current,r=o.values,a=o.options,i=e.map((function(e){var t;return void 0===e.label?(0,u.Z)((0,u.Z)({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,c=new Map;return i.forEach((function(e){l.set(e.value,e),c.set(e.value,t.get(e.value)||a.get(e.value))})),n.current.values=l,n.current.options=c,i}),[e,t]),v.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(v.useMemo((function(){var e,t=de(ge);return"combobox"!==a||(null===(e=t[0])||void 0===e?void 0:e.value)?t:[]}),[ge,de,a]),se),Ze=(0,c.Z)(ye,2),Se=Ze[0],Oe=Ze[1],xe=v.useMemo((function(){if(!a&&1===Se.length){var e=Se[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Se.map((function(e){var t;return(0,u.Z)((0,u.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[a,Se]),Me=v.useMemo((function(){return new Set(Se.map((function(e){return e.value})))}),[Se]);v.useEffect((function(){if("combobox"===a){var e,t=null===(e=Se[0])||void 0===e?void 0:e.value;void 0!==t&&null!==t&&ue(String(t))}}),[Se]);var Ne=le((function(e,t){var n,r=null!==t&&void 0!==t?t:e;return n={},(0,o.Z)(n,ne.value,e),(0,o.Z)(n,ne.label,r),n})),Ie=function(e,t,n,r,a){return v.useMemo((function(){if(!n||!1===r)return e;var i=t.options,l=t.label,c=t.value,s=[],f="function"===typeof r,p=n.toUpperCase(),d=f?r:function(e,t){return a?$(t[a],p):t[i]?$(t["children"!==l?l:"label"],p):$(t[c],p)},v=f?function(e){return C(e)}:function(e){return e};return e.forEach((function(e){if(e[i])if(d(n,v(e)))s.push(e);else{var t=e[i].filter((function(e){return d(n,v(e))}));t.length&&s.push((0,u.Z)((0,u.Z)({},e),{},(0,o.Z)({},i,t)))}else d(n,v(e))&&s.push(e)})),s}),[e,r,a,n,t])}(v.useMemo((function(){if("tags"!==a)return pe;var e=(0,l.Z)(pe);return(0,l.Z)(Se).sort((function(e,t){return e.value1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],a=E(n,!1),i=a.label,l=a.value,u=a.options;function c(e,t){e.forEach((function(e){var n=e[i];if(t||!(u in e)){var a=e[l];r.push({key:w(e,r.length),groupOption:t,data:e,label:n,value:a})}else{var s=n;void 0===s&&o&&(s=e.label),r.push({key:w(e,r.length),group:!0,data:e,label:s}),c(e[u],!0)}}))}return c(e,!1),r}(Re,{fieldNames:ne,childrenAsData:q})}),[Re,ne,q]),Te=function(e){var t=de(e);if(be(t),B&&(t.length!==Se.length||t.some((function(e,t){var n;return(null===(n=Se[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){var n=W?t:t.map((function(e){return e.value})),o=t.map((function(e){return C(Oe(e.value))}));B(Q?n:n[0],Q?o:o[0])}},je=v.useState(null),ke=(0,c.Z)(je,2),Ae=ke[0],Le=ke[1],_e=v.useState(0),He=(0,c.Z)(_e,2),Ve=He[0],Fe=He[1],ze=void 0!==A?A:"combobox"!==a,Ke=v.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.source,r=void 0===o?"keyboard":o;Fe(t),m&&"combobox"===a&&null!==e&&"keyboard"===r&&Le(String(e))}),[m,a]),Ue=function(e,t){var n=function(){var t,n=Oe(e);return[W?{label:null===n||void 0===n?void 0:n[ne.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,C(n)]};if(t&&O){var o=n(),r=(0,c.Z)(o,2),a=r[0],i=r[1];O(a,i)}else if(!t&&x){var l=n(),u=(0,c.Z)(l,2),s=u[0],f=u[1];x(s,f)}},We=le((function(e,t){var n,o=!Q||t.selected;n=o?Q?[].concat((0,l.Z)(Se),[e]):[e]:Se.filter((function(t){return t.value!==e})),Te(n),Ue(e,o),"combobox"===a?Le(""):Y&&!S||(ue(""),Le(""))})),Be=v.useMemo((function(){var e=!1!==_&&!1!==N;return(0,u.Z)((0,u.Z)({},ce),{},{flattenOptions:De,onActiveValue:Ke,defaultActiveFirstOption:ze,onSelect:We,menuItemSelectedIcon:L,rawValues:Me,fieldNames:ne,virtual:e,listHeight:V,listItemHeight:z,childrenAsData:q})}),[ce,De,Ke,ze,We,L,Me,ne,_,N,V,z,q]);return v.createElement(me.Provider,{value:Be},v.createElement(X,(0,r.Z)({},G,{id:J,prefixCls:d,ref:t,omitDomProps:Ce,mode:a,displayValues:xe,onDisplayValuesChange:function(e,t){Te(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((function(e){Ue(e.value,!1)}))},searchValue:ae,onSearch:function(e,t){if(ue(e),Le(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===a&&Te(e),null===y||void 0===y||y(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat((0,l.Z)(Me),[n])));Te(o),Ue(n,!0),ue("")}}},onSearchSplit:function(e){var t=e;"tags"!==a&&(t=e.map((function(e){var t=fe.get(e);return null===t||void 0===t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,l.Z)(Me),(0,l.Z)(t))));Te(n),n.forEach((function(e){Ue(e,!0)}))},dropdownMatchSelectWidth:N,OptionList:we,emptyOptions:!De.length,activeValue:Ae,activeDescendantId:"".concat(J,"_list_").concat(Ve)})))}));var Se=Ze;Se.Option=fe,Se.OptGroup=ce;var Oe=Se,xe=n(53124),Me=n(88258),Ne=n(98866),Ie=n(97647),Pe=n(65223),Re=n(33603),De=n(9708),Te=n(63606),je=n(4340),ke=n(97937),Ae=n(80882),Le=n(50888),_e=n(68795);var He=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rn},e}return t=l,(n=[{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,t=e.dragging,n=e.visible,r=this.props.prefixCls,i=this.getSpinHeight(),l=this.getTop(),u=this.showScroll(),c=u&&n;return o.createElement("div",{ref:this.scrollbarRef,className:a()("".concat(r,"-scrollbar"),v({},"".concat(r,"-scrollbar-show"),u)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:c?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},o.createElement("div",{ref:this.thumbRef,className:a()("".concat(r,"-scrollbar-thumb"),v({},"".concat(r,"-scrollbar-thumb-moving"),t)),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(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.Component);function Z(e){var t=e.children,n=e.setRef,r=o.useCallback((function(e){n(e)}),[]);return o.cloneElement(t,{ref:r})}var S=n(34203);function O(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]&&arguments[1],o=e<0&&i.current.top||e>0&&i.current.bottom;return t&&o?(clearTimeout(r.current),n.current=!1):o&&!n.current||a(),!n.current&&o}};var A=n(8410);var L=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function _(){return _=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var W=[],B={overflowY:"auto",overflowAnchor:"none"};function Y(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,i=e.className,l=e.height,u=e.itemHeight,c=e.fullHeight,s=void 0===c||c,d=e.style,v=e.data,m=e.children,h=e.itemKey,g=e.virtual,b=e.component,y=void 0===b?"div":b,w=e.onScroll,E=e.onVisibleChange,O=U(e,L),N=!(!1===g||!l||!u),P=N&&v&&u*v.length>l,R=z((0,o.useState)(0),2),T=R[0],H=R[1],K=z((0,o.useState)(!1),2),Y=K[0],G=K[1],X=a()(r,i),$=v||W,J=(0,o.useRef)(),Q=(0,o.useRef)(),q=(0,o.useRef)(),ee=o.useCallback((function(e){return"function"===typeof h?h(e):null===e||void 0===e?void 0:e[h]}),[h]),te={getKey:ee};function ne(e){H((function(t){var n=function(e){var t=e;Number.isNaN(be.current)||(t=Math.min(t,be.current));return t=Math.max(t,0)}("function"===typeof e?e(t):e);return J.current.scrollTop=n,n}))}var oe=(0,o.useRef)({start:0,end:$.length}),re=(0,o.useRef)(),ae=z(D($,ee),1)[0];re.current=ae;var ie=function(e,t,n){var r=M(o.useState(0),2),a=r[0],i=r[1],l=(0,o.useRef)(new Map),u=(0,o.useRef)(new x),c=(0,o.useRef)();function s(){p.Z.cancel(c.current)}function f(){s(),c.current=(0,p.Z)((function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=(0,S.Z)(e),o=n.offsetHeight;u.current.get(t)!==o&&u.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))}))}return(0,o.useEffect)((function(){return s}),[]),[function(o,r){var a=e(o),i=l.current.get(a);r?(l.current.set(a,r),f()):l.current.delete(a),!i!==!r&&(r?null===t||void 0===t||t(o):null===n||void 0===n||n(o))},f,u.current,a]}(ee,null,null),le=z(ie,4),ue=le[0],ce=le[1],se=le[2],fe=le[3],pe=o.useMemo((function(){if(!N)return{scrollHeight:void 0,start:0,end:$.length-1,offset:void 0};var e;if(!P)return{scrollHeight:(null===(e=Q.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:$.length-1,offset:void 0};for(var t,n,o,r=0,a=$.length,i=0;i=T&&void 0===t&&(t=i,n=r),p>T+l&&void 0===o&&(o=i),r=p}return void 0===t&&(t=0,n=0),void 0===o&&(o=$.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,$.length),offset:n}}),[P,N,T,$,fe,l]),de=pe.scrollHeight,ve=pe.start,me=pe.end,he=pe.offset;oe.current.start=ve,oe.current.end=me;var ge=de-l,be=(0,o.useRef)(ge);be.current=ge;var ye=T<=0,we=T>=ge,Ee=k(ye,we);var Ce=function(e,t,n,r){var a=(0,o.useRef)(0),i=(0,o.useRef)(null),l=(0,o.useRef)(null),u=(0,o.useRef)(!1),c=k(t,n);return[function(t){if(e){p.Z.cancel(i.current);var n=t.deltaY;a.current+=n,l.current=n,c(n)||(j||t.preventDefault(),i.current=(0,p.Z)((function(){var e=u.current?10:1;r(a.current*e),a.current=0})))}},function(t){e&&(u.current=t.detail===l.current)}]}(N,ye,we,(function(e){ne((function(t){return t+e}))})),Ze=z(Ce,2),Se=Ze[0],Oe=Ze[1];!function(e,t,n){var r,a=(0,o.useRef)(!1),i=(0,o.useRef)(0),l=(0,o.useRef)(null),u=(0,o.useRef)(null),c=function(e){if(a.current){var t=Math.ceil(e.touches[0].pageY),o=i.current-t;i.current=t,n(o)&&e.preventDefault(),clearInterval(u.current),u.current=setInterval((function(){(!n(o*=.9333333333333333,!0)||Math.abs(o)<=.1)&&clearInterval(u.current)}),16)}},s=function(){a.current=!1,r()},f=function(e){r(),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",c),l.current.addEventListener("touchend",s))};r=function(){l.current&&(l.current.removeEventListener("touchmove",c),l.current.removeEventListener("touchend",s))},(0,A.Z)((function(){return e&&t.current.addEventListener("touchstart",f),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),r(),clearInterval(u.current)}}),[e])}(N,J,(function(e,t){return!Ee(e,t)&&(Se({preventDefault:function(){},deltaY:e}),!0)})),(0,A.Z)((function(){function e(e){N&&e.preventDefault()}return J.current.addEventListener("wheel",Se),J.current.addEventListener("DOMMouseScroll",Oe),J.current.addEventListener("MozMousePixelScroll",e),function(){J.current&&(J.current.removeEventListener("wheel",Se),J.current.removeEventListener("DOMMouseScroll",Oe),J.current.removeEventListener("MozMousePixelScroll",e))}}),[N]);var xe=function(e,t,n,r,a,i,l,u){var c=o.useRef();return function(o){if(null!==o&&void 0!==o){if(p.Z.cancel(c.current),"number"===typeof o)l(o);else if(o&&"object"===I(o)){var s,f=o.align;s="index"in o?o.index:t.findIndex((function(e){return a(e)===o.key}));var d=o.offset,v=void 0===d?0:d;!function o(u,d){if(!(u<0)&&e.current){var m=e.current.clientHeight,h=!1,g=d;if(m){for(var b=d||f,y=0,w=0,E=0,C=Math.min(t.length,s),Z=0;Z<=C;Z+=1){var S=a(t[Z]);w=y;var O=n.get(S);y=E=w+(void 0===O?r:O),Z===s&&void 0===O&&(h=!0)}var x=null;switch(b){case"top":x=w-v;break;case"bottom":x=E-m+v;break;default:var M=e.current.scrollTop;wM+m&&(g="bottom")}null!==x&&x!==e.current.scrollTop&&l(x)}c.current=(0,p.Z)((function(){h&&i(),o(u-1,g)}))}}(3)}}else u()}}(J,$,se,u,ee,ce,ne,(function(){var e;null===(e=q.current)||void 0===e||e.delayHidden()}));o.useImperativeHandle(t,(function(){return{scrollTo:xe}})),(0,A.Z)((function(){if(E){var e=$.slice(ve,me+1);E(e,$)}}),[ve,me,$]);var Me=function(e,t,n,r,a,i){var l=i.getKey;return e.slice(t,n+1).map((function(e,n){var i=a(e,t+n,{}),u=l(e);return o.createElement(Z,{key:u,setRef:function(t){return r(e,t)}},i)}))}($,ve,me,ue,m,te),Ne=null;return l&&(Ne=V(F({},s?"height":"maxHeight",l),B),N&&(Ne.overflowY="hidden",Y&&(Ne.pointerEvents="none"))),o.createElement("div",_({style:V(V({},d),{},{position:"relative"}),className:X},O),o.createElement(y,{className:"".concat(r,"-holder"),style:Ne,ref:J,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==T&&ne(t),null===w||void 0===w||w(e)}},o.createElement(f,{prefixCls:r,height:de,offset:he,onInnerResize:ce,ref:Q},Me)),N&&o.createElement(C,{ref:q,prefixCls:r,scrollTop:T,height:l,scrollHeight:de,count:$.length,onScroll:function(e){ne(e)},onStartMove:function(){G(!0)},onStopMove:function(){G(!1)}}))}var G=o.forwardRef(Y);G.displayName="List";var X=G}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/5768-33bf6e15d5ff8315.js b/static/web/_next/static/chunks/5768-33bf6e15d5ff8315.js deleted file mode 100644 index 03b88f321..000000000 --- a/static/web/_next/static/chunks/5768-33bf6e15d5ff8315.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5768],{25413:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"}},6594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"}},77307:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},54067:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(r=n(45799))&&r.__esModule?r:{default:r};t.default=a,e.exports=a},68229:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(r=n(7500))&&r.__esModule?r:{default:r};t.default=a,e.exports=a},67638:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(r=n(86994))&&r.__esModule?r:{default:r};t.default=a,e.exports=a},71578:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z"}}]},name:"bell",theme:"filled"},i=n(42135),c=function(e,t){return a.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="BellFilled";var l=a.forwardRef(c)},34447:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"}}]},name:"heart",theme:"filled"},i=n(42135),c=function(e,t){return a.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="HeartFilled";var l=a.forwardRef(c)},94149:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},i=n(42135),c=function(e,t){return a.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="LockOutlined";var l=a.forwardRef(c)},87547:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1413),a=n(67294),o={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"},i=n(42135),c=function(e,t){return a.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="UserOutlined";var l=a.forwardRef(c)},45799:function(e,t,n){var r=n(75263),a=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(42122)),i=r(n(67294)),c=a(n(25413)),l=a(n(92074)),s=function(e,t){return i.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:c.default}))};s.displayName="BarsOutlined";var u=i.forwardRef(s);t.default=u},7500:function(e,t,n){var r=n(75263),a=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(42122)),i=r(n(67294)),c=a(n(6594)),l=a(n(92074)),s=function(e,t){return i.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:c.default}))};s.displayName="LeftOutlined";var u=i.forwardRef(s);t.default=u},86994:function(e,t,n){var r=n(75263),a=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(42122)),i=r(n(67294)),c=a(n(77307)),l=a(n(92074)),s=function(e,t){return i.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:c.default}))};s.displayName="RightOutlined";var u=i.forwardRef(s);t.default=u},24093:function(e,t,n){n.d(t,{C:function(){return k}});var r=n(87462),a=n(4942),o=n(71002),i=n(97685),c=n(94184),l=n.n(c),s=n(48555),u=n(42550),f=n(67294),d=n(53124),v=n(25378),p=n(24308),m=f.createContext("default"),h=function(e){var t=e.children,n=e.size;return f.createElement(m.Consumer,null,(function(e){return f.createElement(m.Provider,{value:n||e},t)}))},g=m,y=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);a-1?t.splice(n,1):t.push(e)}r.setActiveKey(t)},r.getNewChild=function(e,t){if(!e)return null;var n=r.state.activeKey,a=r.props,o=a.prefixCls,i=a.openMotion,c=a.accordion,l=a.destroyInactivePanel,s=a.expandIcon,u=a.collapsible,f=e.key||String(t),d=e.props,v=d.header,m=d.headerClass,h=d.destroyInactivePanel,g=d.collapsible,y=null!==g&&void 0!==g?g:u,C={key:f,panelKey:f,header:v,headerClass:m,isActive:c?n[0]===f:n.indexOf(f)>-1,prefixCls:o,destroyInactivePanel:null!==h&&void 0!==h?h:l,openMotion:i,accordion:c,children:e.props.children,onItemClick:"disabled"===y?null:r.onClickItem,expandIcon:s,collapsible:y};return"string"===typeof e.type?e:(Object.keys(C).forEach((function(e){"undefined"===typeof C[e]&&delete C[e]})),p.cloneElement(e,C))},r.getItems=function(){var e=r.props.children;return(0,g.Z)(e).map(r.getNewChild)},r.setActiveKey=function(e){"activeKey"in r.props||r.setState({activeKey:e}),r.props.onChange(r.props.accordion?e[0]:e)};var a=e.activeKey,o=e.defaultActiveKey;return"activeKey"in e&&(o=a),r.state={activeKey:E(o)},r}return(0,u.Z)(n,[{key:"shouldComponentUpdate",value:function(e,t){return!h()(this.props,e)||!h()(this.state,t)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,r=t.className,o=t.style,i=t.accordion,l=c()((e={},(0,a.Z)(e,n,!0),(0,a.Z)(e,r,!!r),e));return p.createElement("div",{className:l,style:o,role:i?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(e){var t={};return"activeKey"in e&&(t.activeKey=E(e.activeKey)),t}}]),n}(p.Component);N.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},N.Panel=b;var P=N,k=(N.Panel,n(98423)),O=n(53124),S=n(33603),z=n(96159),M=function(e){var t,n=p.useContext(O.E_),i=n.getPrefixCls,l=n.direction,s=e.prefixCls,u=e.className,f=void 0===u?"":u,d=e.bordered,v=void 0===d||d,m=e.ghost,h=e.expandIconPosition,y=void 0===h?"start":h,C=i("collapse",s),Z=p.useMemo((function(){return"left"===y?"start":"right"===y?"end":y}),[y]),w=c()("".concat(C,"-icon-position-").concat(Z),(t={},(0,a.Z)(t,"".concat(C,"-borderless"),!v),(0,a.Z)(t,"".concat(C,"-rtl"),"rtl"===l),(0,a.Z)(t,"".concat(C,"-ghost"),!!m),t),f),x=(0,r.Z)((0,r.Z)({},S.ZP),{motionAppear:!1,leavedClassName:"".concat(C,"-content-hidden")});return p.createElement(P,(0,r.Z)({openMotion:x},e,{expandIcon:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.expandIcon,r=n?n(t):p.createElement(o.Z,{rotate:t.isActive?90:void 0});return(0,z.Tm)(r,(function(){return{className:c()(r.props.className,"".concat(C,"-arrow"))}}))},prefixCls:C,className:w}),function(){var t=e.children;return(0,g.Z)(t).map((function(e,t){var n;if(null===(n=e.props)||void 0===n?void 0:n.disabled){var a=e.key||String(t),o=e.props,i=o.disabled,c=o.collapsible,l=(0,r.Z)((0,r.Z)({},(0,k.Z)(e.props,["disabled"])),{key:a,collapsible:null!==c&&void 0!==c?c:i?"disabled":void 0});return(0,z.Tm)(e,l)}return e}))}())};M.Panel=function(e){var t=p.useContext(O.E_).getPrefixCls,n=e.prefixCls,o=e.className,i=void 0===o?"":o,l=e.showArrow,s=void 0===l||l,u=t("collapse",n),f=c()((0,a.Z)({},"".concat(u,"-no-arrow"),!s),i);return p.createElement(P.Panel,(0,r.Z)({},e,{prefixCls:u,className:f}))};var I=M},79216:function(e,t,n){n.d(t,{Z:function(){return ce}});var r=n(87462),a=n(71002),o=n(99611),i=n(1413),c=n(4942),l=n(97685),s=n(91),u=n(67294),f=n(94184),d=n.n(f),v=n(27678),p=n(21770),m=n(95173),h=n(64019),g=n(15105),y=n(80334),C=n(75164);function Z(e,t,n,r){var a=t+n,o=(n-r)/2;if(n>r){if(t>0)return(0,c.Z)({},e,o);if(t<0&&ar)return(0,c.Z)({},e,t<0?o:-o);return{}}var w=["visible","onVisibleChange","getContainer","current","countRender"],x=u.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),b=x.Provider,E=function(e){var t=e.previewPrefixCls,n=void 0===t?"rc-image-preview":t,o=e.children,i=e.icons,c=void 0===i?{}:i,f=e.preview,d="object"===(0,a.Z)(f)?f:{},v=d.visible,m=void 0===v?void 0:v,h=d.onVisibleChange,g=void 0===h?void 0:h,y=d.getContainer,C=void 0===y?void 0:y,Z=d.current,x=void 0===Z?0:Z,E=d.countRender,N=void 0===E?void 0:E,P=(0,s.Z)(d,w),k=(0,u.useState)(new Map),O=(0,l.Z)(k,2),S=O[0],z=O[1],M=(0,u.useState)(),R=(0,l.Z)(M,2),j=R[0],_=R[1],L=(0,p.Z)(!!m,{value:m,onChange:g}),H=(0,l.Z)(L,2),A=H[0],V=H[1],K=(0,u.useState)(null),T=(0,l.Z)(K,2),B=T[0],F=T[1],D=void 0!==m,W=Array.from(S.keys())[x],G=new Map(Array.from(S).filter((function(e){return!!(0,l.Z)(e,2)[1].canPreview})).map((function(e){var t=(0,l.Z)(e,2);return[t[0],t[1].url]})));return u.useEffect((function(){_(W)}),[W]),u.useEffect((function(){!A&&D&&_(W)}),[W,D,A]),u.createElement(b,{value:{isPreviewGroup:!0,previewUrls:G,setPreviewUrls:z,current:j,setCurrent:_,setShowPreview:V,setMousePosition:F,registerImage:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=function(){z((function(t){var n=new Map(t);return n.delete(e)?n:t}))};return z((function(r){return new Map(r).set(e,{url:t,canPreview:n})})),r}}},o,u.createElement(I,(0,r.Z)({"aria-hidden":!A,visible:A,prefixCls:n,onClose:function(e){e.stopPropagation(),V(!1),F(null)},mousePosition:B,src:G.get(j),icons:c,getContainer:C,countRender:N},P)))},N=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","countRender"],P=u.useState,k=u.useEffect,O=u.useCallback,S=u.useRef,z=u.useContext,M={x:0,y:0},I=function(e){var t,n=e.prefixCls,a=e.src,o=e.alt,f=e.onClose,p=(e.afterClose,e.visible),w=e.icons,b=void 0===w?{}:w,E=e.rootClassName,I=e.countRender,R=(0,s.Z)(e,N),j=b.rotateLeft,_=b.rotateRight,L=b.zoomIn,H=b.zoomOut,A=b.close,V=b.left,K=b.right,T=P(1),B=(0,l.Z)(T,2),F=B[0],D=B[1],W=P(0),G=(0,l.Z)(W,2),U=G[0],X=G[1],Y=function(e){var t=u.useRef(null),n=u.useState(e),r=(0,l.Z)(n,2),a=r[0],o=r[1],c=u.useRef([]);return u.useEffect((function(){return function(){return t.current&&C.Z.cancel(t.current)}}),[]),[a,function(e){null===t.current&&(c.current=[],t.current=(0,C.Z)((function(){o((function(e){var n=e;return c.current.forEach((function(e){n=(0,i.Z)((0,i.Z)({},n),e)})),t.current=null,n}))}))),c.current.push(e)}]}(M),Q=(0,l.Z)(Y,2),q=Q[0],J=Q[1],$=S(),ee=S({originX:0,originY:0,deltaX:0,deltaY:0}),te=P(!1),ne=(0,l.Z)(te,2),re=ne[0],ae=ne[1],oe=z(x),ie=oe.previewUrls,ce=oe.current,le=oe.isPreviewGroup,se=oe.setCurrent,ue=ie.size,fe=Array.from(ie.keys()),de=fe.indexOf(ce),ve=le?ie.get(ce):a,pe=le&&ue>1,me=P({wheelDirection:0}),he=(0,l.Z)(me,2),ge=he[0],ye=he[1],Ce=function(){D((function(e){return e+1})),J(M)},Ze=function(){F>1&&D((function(e){return e-1})),J(M)},we=d()((0,c.Z)({},"".concat(n,"-moving"),re)),xe="".concat(n,"-operations-operation"),be="".concat(n,"-operations-icon"),Ee=[{icon:A,onClick:f,type:"close"},{icon:L,onClick:Ce,type:"zoomIn"},{icon:H,onClick:Ze,type:"zoomOut",disabled:1===F},{icon:_,onClick:function(){X((function(e){return e+90}))},type:"rotateRight"},{icon:j,onClick:function(){X((function(e){return e-90}))},type:"rotateLeft"}],Ne=function(){if(p&&re){var e=$.current.offsetWidth*F,t=$.current.offsetHeight*F,n=$.current.getBoundingClientRect(),r=n.left,a=n.top,o=U%180!==0;ae(!1);var c=function(e,t,n,r){var a=(0,v.g1)(),o=a.width,c=a.height,l=null;return e<=o&&t<=c?l={x:0,y:0}:(e>o||t>c)&&(l=(0,i.Z)((0,i.Z)({},Z("x",n,e,o)),Z("y",r,t,c))),l}(o?t:e,o?e:t,r,a);c&&J((0,i.Z)({},c))}},Pe=function(e){p&&re&&J({x:e.pageX-ee.current.deltaX,y:e.pageY-ee.current.deltaY})},ke=function(e){if(p){e.preventDefault();var t=e.deltaY;ye({wheelDirection:t})}},Oe=O((function(e){p&&pe&&(e.preventDefault(),e.keyCode===g.Z.LEFT?de>0&&se(fe[de-1]):e.keyCode===g.Z.RIGHT&&de0?Ze():e<0&&Ce()}),[ge]),k((function(){var e,t,n=(0,h.Z)(window,"mouseup",Ne,!1),r=(0,h.Z)(window,"mousemove",Pe,!1),a=(0,h.Z)(window,"wheel",ke,{passive:!1}),o=(0,h.Z)(window,"keydown",Oe,!1);try{window.top!==window.self&&(e=(0,h.Z)(window.top,"mouseup",Ne,!1),t=(0,h.Z)(window.top,"mousemove",Pe,!1))}catch(i){(0,y.Kp)(!1,"[rc-image] ".concat(i))}return function(){n.remove(),r.remove(),a.remove(),o.remove(),e&&e.remove(),t&&t.remove()}}),[p,re,Oe]),u.createElement(m.Z,(0,r.Z)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:n,onClose:f,afterClose:function(){D(1),X(0),J(M)},visible:p,wrapClassName:we,rootClassName:E},R),u.createElement("ul",{className:"".concat(n,"-operations")},pe&&u.createElement("li",{className:"".concat(n,"-operations-progress")},null!==(t=null===I||void 0===I?void 0:I(de+1,ue))&&void 0!==t?t:"".concat(de+1," / ").concat(ue)),Ee.map((function(e){var t=e.icon,r=e.onClick,a=e.type,o=e.disabled;return u.createElement("li",{className:d()(xe,(0,c.Z)({},"".concat(n,"-operations-operation-disabled"),!!o)),onClick:r,key:a},u.isValidElement(t)?u.cloneElement(t,{className:be}):t)}))),u.createElement("div",{className:"".concat(n,"-img-wrapper"),style:{transform:"translate3d(".concat(q.x,"px, ").concat(q.y,"px, 0)")}},u.createElement("img",{width:e.width,height:e.height,onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),ee.current.deltaX=e.pageX-q.x,ee.current.deltaY=e.pageY-q.y,ee.current.originX=q.x,ee.current.originY=q.y,ae(!0))},onDoubleClick:function(){p&&(1!==F&&D(1),q.x===M.x&&q.y===M.y||J(M))},ref:$,className:"".concat(n,"-img"),src:ve,alt:o,style:{transform:"scale3d(".concat(F,", ").concat(F,", 1) rotate(").concat(U,"deg)")}})),pe&&u.createElement("div",{className:d()("".concat(n,"-switch-left"),(0,c.Z)({},"".concat(n,"-switch-left-disabled"),0===de)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de>0&&se(fe[de-1])}},V),pe&&u.createElement("div",{className:d()("".concat(n,"-switch-right"),(0,c.Z)({},"".concat(n,"-switch-right-disabled"),de===ue-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}();var w=v.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,a=e.trigger,w=e.children,x=e.defaultCollapsed,b=void 0!==x&&x,E=e.theme,N=void 0===E?"dark":E,P=e.style,k=void 0===P?{}:P,O=e.collapsible,S=void 0!==O&&O,z=e.reverseArrow,M=void 0!==z&&z,I=e.width,R=void 0===I?200:I,j=e.collapsedWidth,_=void 0===j?80:j,L=e.zeroWidthTriggerStyle,H=e.breakpoint,A=e.onCollapse,V=e.onBreakpoint,K=g(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),T=(0,v.useContext)(h.LayoutContext).siderHook,B=(0,v.useState)("collapsed"in K?K.collapsed:b),F=(0,c.default)(B,2),D=F[0],W=F[1],G=(0,v.useState)(!1),U=(0,c.default)(G,2),X=U[0],Y=U[1];(0,v.useEffect)((function(){"collapsed"in K&&W(K.collapsed)}),[K.collapsed]);var Q=function(e,t){"collapsed"in K||W(e),null===A||void 0===A||A(e,t)},q=(0,v.useRef)();q.current=function(e){Y(e.matches),null===V||void 0===V||V(e.matches),D!==e.matches&&Q(e.matches,"responsive")},(0,v.useEffect)((function(){function e(e){return q.current(e)}var t;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&H&&H in y){t=n("(max-width: ".concat(y[H],")"));try{t.addEventListener("change",e)}catch(r){t.addListener(e)}e(t)}}return function(){try{null===t||void 0===t||t.removeEventListener("change",e)}catch(r){null===t||void 0===t||t.removeListener(e)}}}),[H]),(0,v.useEffect)((function(){var e=Z("ant-sider-");return T.addSider(e),function(){return T.removeSider(e)}}),[]);var J=function(){Q(!D,"clickTrigger")},$=(0,v.useContext)(p.ConfigContext).getPrefixCls,ee=v.useMemo((function(){return{siderCollapsed:D}}),[D]);return v.createElement(C.Provider,{value:ee},function(){var e,c=$("layout-sider",n),p=(0,d.default)(K,["collapsed"]),h=D?_:R,g=(0,m.default)(h)?"".concat(h,"px"):String(h),y=0===parseFloat(String(_||0))?v.createElement("span",{onClick:J,className:(0,f.default)("".concat(c,"-zero-width-trigger"),"".concat(c,"-zero-width-trigger-").concat(M?"right":"left")),style:L},a||v.createElement(l.default,null)):null,C={expanded:M?v.createElement(u.default,null):v.createElement(s.default,null),collapsed:M?v.createElement(s.default,null):v.createElement(u.default,null)}[D?"collapsed":"expanded"],Z=null!==a?y||v.createElement("div",{className:"".concat(c,"-trigger"),onClick:J,style:{width:g}},a||C):null,x=(0,i.default)((0,i.default)({},k),{flex:"0 0 ".concat(g),maxWidth:g,minWidth:g,width:g}),b=(0,f.default)(c,"".concat(c,"-").concat(N),(e={},(0,o.default)(e,"".concat(c,"-collapsed"),!!D),(0,o.default)(e,"".concat(c,"-has-trigger"),S&&null!==a&&!y),(0,o.default)(e,"".concat(c,"-below"),!!X),(0,o.default)(e,"".concat(c,"-zero-width"),0===parseFloat(g)),e),r);return v.createElement("aside",(0,i.default)({className:b},p,{style:x,ref:t}),v.createElement("div",{className:"".concat(c,"-children")},w),S||X&&y?Z:null)}())}));t.ZP=w},62704:function(e,t,n){var r=n(75263).default,a=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.LayoutContext=t.Header=t.Footer=t.Content=void 0;var o=a(n(861)),i=a(n(38416)),c=a(n(27424)),l=a(n(10434)),s=a(n(94184)),u=r(n(67294)),f=n(31929),d=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);a0),(0,i.default)(n,"".concat(g,"-rtl"),"rtl"===r),n),y),E=u.useMemo((function(){return{siderHook:{addSider:function(e){h((function(t){return[].concat((0,o.default)(t),[e])}))},removeSider:function(e){h((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return u.createElement(v.Provider,{value:E},u.createElement(w,(0,l.default)({ref:t,className:b},x),C))})),g=p({suffixCls:"layout",tagName:"section",displayName:"Layout"})(h),y=p({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(m);t.Header=y;var C=p({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(m);t.Footer=C;var Z=p({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(m);t.Content=Z;var w=g;t.default=w},82670:function(e,t,n){function r(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}n.d(t,{Z:function(){return r}})}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/7266-d25df94ffd061589.js b/static/web/_next/static/chunks/7266-d25df94ffd061589.js deleted file mode 100644 index 6b930c350..000000000 --- a/static/web/_next/static/chunks/7266-d25df94ffd061589.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7266],{39398:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(1413),o=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},i=n(42135),l=function(e,t){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};l.displayName="CaretDownOutlined";var c=o.forwardRef(l)},57838:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(97685),o=n(67294);function a(){var e=o.useReducer((function(e){return e+1}),0);return(0,r.Z)(e,2)[1]}},88258:function(e,t,n){var r=n(67294),o=n(53124),a=n(62986);t.Z=function(e){return r.createElement(o.C,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return r.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return r.createElement(a.Z,null)}}))}},38504:function(e,t,n){n.d(t,{Z:function(){return P}});var r=n(87462),o=n(71002),a=n(4942),i=n(97685),l=n(18073),c=n(94184),u=n.n(c),s=n(60057),p=n(66680),f=n(21770),d=n(67294),m=n(53124),v=n(76529),h=n(80636),g=n(96159),b=n(93355),y=n(89705),E=n(71577),w=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);o=0?"".concat(t,"-slide-down"):"".concat(t,"-slide-up")}(),trigger:D,overlay:function(){var t,n=e.overlay;return t="function"===typeof n?n():n,t=d.Children.only("string"===typeof t?d.createElement("span",null,t):t),d.createElement(v.J,{prefixCls:"".concat(R,"-menu"),expandIcon:d.createElement("span",{className:"".concat(R,"-menu-submenu-arrow")},d.createElement(l.Z,{className:"".concat(R,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:K,validator:function(e){e.mode}},t)},placement:function(){var t=e.placement;return t?t.includes("Center")?t.slice(0,t.indexOf("Center")):t:"rtl"===b?"bottomRight":"bottomLeft"}(),onVisibleChange:z}),T)});x.Button=Z,x.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var N=x,P=x},62986:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(4942),o=n(87462),a=n(94184),i=n.n(a),l=n(67294),c=n(53124),u=n(23715),s=function(){var e=(0,l.useContext(c.E_).getPrefixCls)("empty-img-default");return l.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),l.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),l.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),l.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),l.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),l.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},p=function(){var e=(0,l.useContext(c.E_).getPrefixCls)("empty-img-simple");return l.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},l.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),l.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))},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&&void 0!==arguments[0])||arguments[0],t=(0,r.useRef)({}),n=(0,o.Z)();return(0,r.useEffect)((function(){var r=a.ZP.subscribe((function(r){t.current=r,e&&n()}));return function(){return a.ZP.unsubscribe(r)}}),[]),t.current}},40378:function(e,t,n){var r=n(6213);t.Z=r.Z},3698:function(e,t,n){n.d(t,{Z:function(){return K}});var r=n(4942),o=n(87462),a=n(1413),i=n(67294),l={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"},c=n(42135),u=function(e,t){return i.createElement(c.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:l}))};u.displayName="DoubleLeftOutlined";var s=i.forwardRef(u),p={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"},f=function(e,t){return i.createElement(c.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:p}))};f.displayName="DoubleRightOutlined";var d=i.forwardRef(f),m=n(6171),v=n(18073),h=n(94184),g=n.n(h),b=n(15671),y=n(43144),E=n(60136),w=n(33643),C=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),o=g()(n,"".concat(n,"-").concat(e.page),(t={},(0,r.Z)(t,"".concat(n,"-active"),e.active),(0,r.Z)(t,"".concat(n,"-disabled"),!e.page),(0,r.Z)(t,e.className,!!e.className),t));return i.createElement("li",{title:e.showTitle?e.page:null,className:o,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",i.createElement("a",{rel:"nofollow"},e.page)))},S=13,Z=38,x=40,N=function(e){(0,E.Z)(n,e);var t=(0,w.Z)(n);function n(){var e;(0,b.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=0||t.relatedTarget.className.indexOf("".concat(a,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==S&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,y.Z)(n,[{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,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,o=t.rootPrefixCls,a=t.changeSize,l=t.quickGo,c=t.goButton,u=t.selectComponentClass,s=t.buildOptionText,p=t.selectPrefixCls,f=t.disabled,d=this.state.goInputText,m="".concat(o,"-options"),v=u,h=null,g=null,b=null;if(!a&&!l)return null;var y=this.getPageSizeOptions();if(a&&v){var E=y.map((function(t,n){return i.createElement(v.Option,{key:n,value:t.toString()},(s||e.buildOptionText)(t))}));h=i.createElement(v,{disabled:f,prefixCls:p,showSearch:!1,className:"".concat(m,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||y[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},E)}return l&&(c&&(b="boolean"===typeof c?i.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:f,className:"".concat(m,"-quick-jumper-button")},r.jump_to_confirm):i.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),g=i.createElement("div",{className:"".concat(m,"-quick-jumper")},r.jump_to,i.createElement("input",{disabled:f,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,b)),i.createElement("li",{className:"".concat(m)},h,g)}}]),n}(i.Component);N.defaultProps={pageSizeOptions:["10","20","50","100"]};var P=N;function O(){}function I(e){var t=Number(e);return"number"===typeof t&&!isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function M(e,t,n){var r="undefined"===typeof e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var R=function(e){(0,E.Z)(n,e);var t=(0,w.Z)(n);function n(e){var r;(0,b.Z)(this,n),(r=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(M(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,o=e||i.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"===typeof e&&(o=i.createElement(e,(0,a.Z)({},r.props))),o},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){var t=r.props.total;return I(e)&&e!==r.state.current&&I(t)&&t>0},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&t},r.handleKeyDown=function(e){e.keyCode!==Z&&e.keyCode!==x||e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===S?r.handleChange(t):e.keyCode===Z?r.handleChange(t-1):e.keyCode===x&&r.handleChange(t+1)},r.handleBlur=function(e){var t=r.getValidValue(e);r.handleChange(t)},r.changePageSize=function(e){var t=r.state.current,n=M(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"===typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props,n=t.disabled,o=t.onChange,a=r.state,i=a.pageSize,l=a.current,c=a.currentInputValue;if(r.isValid(e)&&!n){var u=M(void 0,r.state,r.props),s=e;return e>u?s=u:e<1&&(s=1),"current"in r.props||r.setState({current:s}),s!==c&&r.setState({currentInputValue:s}),o(s,i),s}return l},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?n-2:0),o=2;o=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return"undefined"!==typeof t?t:n>r}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,r=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),o=!this.hasPrev();return(0,i.isValidElement)(r)?(0,i.cloneElement)(r,{disabled:o}):r}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,r=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),o=!this.hasNext();return(0,i.isValidElement)(r)?(0,i.cloneElement)(r,{disabled:o}):r}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,a=t.className,l=t.style,c=t.disabled,u=t.hideOnSinglePage,s=t.total,p=t.locale,f=t.showQuickJumper,d=t.showLessItems,m=t.showTitle,v=t.showTotal,h=t.simple,b=t.itemRender,y=t.showPrevNextJumpers,E=t.jumpPrevIcon,w=t.jumpNextIcon,S=t.selectComponentClass,Z=t.selectPrefixCls,x=t.pageSizeOptions,N=this.state,O=N.current,I=N.pageSize,R=N.currentInputValue;if(!0===u&&s<=I)return null;var k=M(void 0,this.state,this.props),T=[],D=null,j=null,_=null,L=null,V=null,z=f&&f.goButton,A=d?1:2,H=O-1>0?O-1:0,K=O+1=2*A&&3!==O&&(T[0]=(0,i.cloneElement)(T[0],{className:"".concat(n,"-item-after-jump-prev")}),T.unshift(D)),k-O>=2*A&&O!==k-2&&(T[T.length-1]=(0,i.cloneElement)(T[T.length-1],{className:"".concat(n,"-item-before-jump-next")}),T.push(j)),1!==J&&T.unshift(_),q!==k&&T.push(L)}var $=null;v&&($=i.createElement("li",{className:"".concat(n,"-total-text")},v(s,[0===s?0:(O-1)*I+1,O*I>s?s:O*I])));var ee=!this.hasPrev()||!k,te=!this.hasNext()||!k;return i.createElement("ul",(0,o.Z)({className:g()(n,a,(0,r.Z)({},"".concat(n,"-disabled"),c)),style:l,unselectable:"unselectable",ref:this.savePaginationNode},F),$,i.createElement("li",{title:m?p.prev_page:null,onClick:this.prev,tabIndex:ee?null:0,onKeyPress:this.runIfEnterPrev,className:g()("".concat(n,"-prev"),(0,r.Z)({},"".concat(n,"-disabled"),ee)),"aria-disabled":ee},this.renderPrev(H)),T,i.createElement("li",{title:m?p.next_page:null,onClick:this.next,tabIndex:te?null:0,onKeyPress:this.runIfEnterNext,className:g()("".concat(n,"-next"),(0,r.Z)({},"".concat(n,"-disabled"),te)),"aria-disabled":te},this.renderNext(K)),i.createElement(P,{disabled:c,locale:p,rootPrefixCls:n,selectComponentClass:S,selectPrefixCls:Z,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:O,pageSize:I,pageSizeOptions:x,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,o=M(e.pageSize,t,e);r=r>o?o:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(i.Component);R.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:O,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:O,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,t,n){return n},totalBoundaryShowSizeChanger:50};var k=R,T=n(62906),D=n(53124),j=n(25378),_=n(23715),L=n(38939),V=function(e){return i.createElement(L.Z,(0,o.Z)({},e,{size:"small"}))},z=function(e){return i.createElement(L.Z,(0,o.Z)({},e,{size:"middle"}))};V.Option=L.Z.Option,z.Option=L.Z.Option;var A=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);oS&&(a="".concat(i.slice(0,S),"..."))}var l=function(t){t&&t.stopPropagation(),R(e)};return"function"===typeof N?function(e,t,n,r,o){return m.createElement("span",{onMouseDown:function(e){L(e),P(!c)}},N({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,a,t,o,l):ee(n,a,t,o,l)},renderRest:function(e){var t="function"===typeof x?x(e):x;return ee(t,t,!1)},suffix:te,itemKey:_,maxCount:C});return m.createElement(m.Fragment,null,ne,!l.length&&!Q&&m.createElement("span",{className:"".concat(X,"-placeholder")},f))},z=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,i=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,s=e.mode,p=e.open,f=e.values,d=e.placeholder,v=e.tabIndex,h=e.showSearch,g=e.searchValue,b=e.activeValue,y=e.maxLength,E=e.onInputKeyDown,w=e.onInputMouseDown,C=e.onInputChange,S=e.onInputPaste,Z=e.onInputCompositionStart,x=e.onInputCompositionEnd,N=m.useState(!1),P=(0,u.Z)(N,2),I=P[0],M=P[1],R="combobox"===s,k=R||h,D=f[0],j=g||"";R&&b&&!I&&(j=b),m.useEffect((function(){R&&M(!1)}),[R,b]);var _=!("combobox"!==s&&!p&&!h)&&!!j,L=!D||"string"!==typeof D.label&&"number"!==typeof D.label?void 0:D.label.toString();return m.createElement(m.Fragment,null,m.createElement("span",{className:"".concat(n,"-selection-search")},m.createElement(T,{ref:o,prefixCls:n,id:r,open:p,inputElement:t,disabled:a,autoFocus:i,autoComplete:l,editable:k,activeDescendantId:c,value:j,onKeyDown:E,onMouseDown:w,onChange:function(e){M(!0),C(e)},onPaste:S,onCompositionStart:Z,onCompositionEnd:x,tabIndex:v,attrs:(0,O.Z)(e,!0),maxLength:R?y:void 0})),!R&&D&&!_&&m.createElement("span",{className:"".concat(n,"-selection-item"),title:L},D.label),function(){if(D)return null;var e=_?{visibility:"hidden"}:void 0;return m.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},d)}())};function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=m.useRef(null),n=m.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return m.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var H=function(e,t){var n=(0,m.useRef)(null),r=(0,m.useRef)(!1),a=e.prefixCls,i=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,p=e.onSearch,f=e.onSearchSubmit,d=e.onToggleOpen,h=e.onInputKeyDown,g=e.domRef;m.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var b=A(0),y=(0,u.Z)(b,2),E=y[0],w=y[1],C=(0,m.useRef)(null),S=function(e){!1!==p(e,!0,r.current)&&d(!0)},Z={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==v.Z.UP&&n!==v.Z.DOWN||e.preventDefault(),h&&h(e),n!==v.Z.ENTER||"tags"!==l||r.current||i||null===f||void 0===f||f(e.target.value),t=n,[v.Z.ESC,v.Z.SHIFT,v.Z.BACKSPACE,v.Z.TAB,v.Z.WIN_KEY,v.Z.ALT,v.Z.META,v.Z.WIN_KEY_RIGHT,v.Z.CTRL,v.Z.SEMICOLON,v.Z.EQUALS,v.Z.CAPS_LOCK,v.Z.CONTEXT_MENU,v.Z.F1,v.Z.F2,v.Z.F3,v.Z.F4,v.Z.F5,v.Z.F6,v.Z.F7,v.Z.F8,v.Z.F9,v.Z.F10,v.Z.F11,v.Z.F12].includes(t)||d(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(s&&C.current&&/[\r\n]/.test(C.current)){var n=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,C.current)}C.current=null,S(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");C.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==l&&S(e.target.value)}},x="multiple"===l||"tags"===l?m.createElement(V,(0,o.Z)({},e,Z)):m.createElement(z,(0,o.Z)({},e,Z));return m.createElement("div",{ref:g,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=E();e.target===n.current||t||e.preventDefault(),("combobox"===l||c&&t)&&i||(i&&p("",!0,!1),d())}},x)},K=m.forwardRef(H);K.displayName="Selector";var F=K;var U=m.createContext(null);var B=["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 Y(e){return"tags"===e||"multiple"===e}var G=m.forwardRef((function(e,t){var n,a,d=e.id,E=e.prefixCls,w=e.className,C=e.showSearch,S=e.tagRender,Z=e.direction,x=e.omitDomProps,N=e.displayValues,O=e.onDisplayValuesChange,I=e.emptyOptions,R=e.notFoundContent,k=void 0===R?"Not Found":R,T=e.onClear,D=e.mode,j=e.disabled,_=e.loading,L=e.getInputElement,V=e.getRawInputElement,z=e.open,H=e.defaultOpen,K=e.onDropdownVisibleChange,G=e.activeValue,J=e.onActiveValueChange,q=e.activeDescendantId,X=e.searchValue,Q=e.onSearch,$=e.onSearchSplit,ee=e.tokenSeparators,te=e.allowClear,ne=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,pe=e.dropdownRender,fe=e.dropdownAlign,de=e.placement,me=e.getPopupContainer,ve=e.showAction,he=void 0===ve?[]:ve,ge=e.onFocus,be=e.onBlur,ye=e.onKeyUp,Ee=e.onKeyDown,we=e.onMouseDown,Ce=(0,s.Z)(e,B),Se=Y(D),Ze=(void 0!==C?C:Se)||"combobox"===D,xe=(0,c.Z)({},Ce);W.forEach((function(e){delete xe[e]})),null===x||void 0===x||x.forEach((function(e){delete xe[e]}));var Ne=m.useState(!1),Pe=(0,u.Z)(Ne,2),Oe=Pe[0],Ie=Pe[1];m.useEffect((function(){Ie((0,h.Z)())}),[]);var Me=m.useRef(null),Re=m.useRef(null),ke=m.useRef(null),Te=m.useRef(null),De=m.useRef(null),je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=m.useState(!1),n=(0,u.Z)(t,2),r=n[0],o=n[1],a=m.useRef(null),i=function(){window.clearTimeout(a.current)};return m.useEffect((function(){return i}),[]),[r,function(t,n){i(),a.current=window.setTimeout((function(){o(t),n&&n()}),e)},i]}(),_e=(0,u.Z)(je,3),Le=_e[0],Ve=_e[1],ze=_e[2];m.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Te.current)||void 0===e?void 0:e.focus,blur:null===(t=Te.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=De.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Ae=m.useMemo((function(){var e;if("combobox"!==D)return X;var t=null===(e=N[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""}),[X,D,N]),He="combobox"===D&&"function"===typeof L&&L()||null,Ke="function"===typeof V&&V(),Fe=(0,g.x1)(Re,null===Ke||void 0===Ke||null===(n=Ke.props)||void 0===n?void 0:n.ref),Ue=(0,f.Z)(void 0,{defaultValue:H,value:z}),Be=(0,u.Z)(Ue,2),We=Be[0],Ye=Be[1],Ge=We,Je=!k&&I;(j||Je&&Ge&&"combobox"===D)&&(Ge=!1);var qe=!Je&&Ge,Xe=m.useCallback((function(e){var t=void 0!==e?e:!Ge;Ge===t||j||(Ye(t),null===K||void 0===K||K(t))}),[j,Ge,Ye,K]),Qe=m.useMemo((function(){return(ee||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ee]),$e=function(e,t,n){var r=!0,o=e;null===J||void 0===J||J(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=(0,y.Z)(r),a=o[0],i=o.slice(1);if(!a)return[t];var c=t.split(a);return n=n||c.length>1,c.reduce((function(t,n){return[].concat((0,l.Z)(t),(0,l.Z)(e(n,i)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,ee);return"combobox"!==D&&a&&(o="",null===$||void 0===$||$(a),Xe(!1),r=!1),Q&&Ae!==o&&Q(o,{source:t?"typing":"effect"}),r};m.useEffect((function(){Ge||Se||"combobox"===D||$e("",!1,!1)}),[Ge]),m.useEffect((function(){We&&j&&Ye(!1),j&&Ve(!1)}),[j]);var et=A(),tt=(0,u.Z)(et,2),nt=tt[0],rt=tt[1],ot=m.useRef(!1),at=[];m.useEffect((function(){return function(){at.forEach((function(e){return clearTimeout(e)})),at.splice(0,at.length)}}),[]);var it,lt=m.useState(null),ct=(0,u.Z)(lt,2),ut=ct[0],st=ct[1],pt=m.useState({}),ft=(0,u.Z)(pt,2)[1];(0,b.Z)((function(){if(qe){var e,t=Math.ceil(null===(e=Me.current)||void 0===e?void 0:e.offsetWidth);ut===t||Number.isNaN(t)||st(t)}}),[qe]),Ke&&(it=function(e){Xe(e)}),function(e,t,n,r){var o=m.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},m.useEffect((function(){function t(t){var n;if(!(null===(n=o.current)||void 0===n?void 0:n.customizedTrigger)){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Me.current,null===(e=ke.current)||void 0===e?void 0:e.getPopupElement()]}),qe,Xe,!!Ke);var dt,mt,vt=m.useMemo((function(){return(0,c.Z)((0,c.Z)({},e),{},{notFoundContent:k,open:Ge,triggerOpen:qe,id:d,showSearch:Ze,multiple:Se,toggleOpen:Xe})}),[e,k,qe,Ge,d,Ze,Se,Xe]),ht=void 0!==ne?ne:_||!Se&&"combobox"!==D;ht&&(dt=m.createElement(M,{className:i()("".concat(E,"-arrow"),(0,r.Z)({},"".concat(E,"-arrow-loading"),_)),customizeIcon:re,customizeIconProps:{loading:_,searchValue:Ae,open:Ge,focused:Le,showSearch:Ze}}));!j&&te&&(N.length||Ae)&&(mt=m.createElement(M,{className:"".concat(E,"-clear"),onMouseDown:function(){null===T||void 0===T||T(),O([],{type:"clear",values:N}),$e("",!1,!1)},customizeIcon:oe},"\xd7"));var gt,bt=m.createElement(ae,{ref:De}),yt=i()(E,w,(a={},(0,r.Z)(a,"".concat(E,"-focused"),Le),(0,r.Z)(a,"".concat(E,"-multiple"),Se),(0,r.Z)(a,"".concat(E,"-single"),!Se),(0,r.Z)(a,"".concat(E,"-allow-clear"),te),(0,r.Z)(a,"".concat(E,"-show-arrow"),ht),(0,r.Z)(a,"".concat(E,"-disabled"),j),(0,r.Z)(a,"".concat(E,"-loading"),_),(0,r.Z)(a,"".concat(E,"-open"),Ge),(0,r.Z)(a,"".concat(E,"-customize-input"),He),(0,r.Z)(a,"".concat(E,"-show-search"),Ze),a)),Et=m.createElement(P,{ref:ke,disabled:j,prefixCls:E,visible:qe,popupElement:bt,containerWidth:ut,animation:ie,transitionName:le,dropdownStyle:ce,dropdownClassName:ue,direction:Z,dropdownMatchSelectWidth:se,dropdownRender:pe,dropdownAlign:fe,placement:de,getPopupContainer:me,empty:I,getTriggerDOMNode:function(){return Re.current},onPopupVisibleChange:it,onPopupMouseEnter:function(){ft({})}},Ke?m.cloneElement(Ke,{ref:Fe}):m.createElement(F,(0,o.Z)({},e,{domRef:Re,prefixCls:E,inputElement:He,ref:Te,id:d,showSearch:Ze,mode:D,activeDescendantId:q,tagRender:S,values:N,open:Ge,onToggleOpen:Xe,activeValue:G,searchValue:Ae,onSearch:$e,onSearchSubmit:function(e){e&&e.trim()&&Q(e,{source:"submit"})},onRemove:function(e){var t=N.filter((function(t){return t!==e}));O(t,{type:"remove",values:[e]})},tokenWithEnter:Qe})));return gt=Ke?Et:m.createElement("div",(0,o.Z)({className:yt},xe,{ref:Me,onMouseDown:function(e){var t,n=e.target,r=null===(t=ke.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=at.indexOf(o);-1!==t&&at.splice(t,1),ze(),Oe||r.contains(document.activeElement)||null===(e=Te.current)||void 0===e||e.focus()}));at.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l=0;i-=1){var c=o[i];if(!c.disabled){o.splice(i,1),a=c;break}}a&&O(o,{type:"remove",values:[a]})}for(var u=arguments.length,s=new Array(u>1?u-1:0),p=1;p1?t-1:0),r=1;r1&&void 0!==arguments[1]&&arguments[1];return(0,te.Z)(e).map((function(e,n){if(!m.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,a=e.props,i=a.children,l=(0,s.Z)(a,re);return t||!r?oe(e):(0,c.Z)((0,c.Z)({key:"__RC_SELECT_GRP__".concat(null===o?n:o,"__"),label:o},l),{},{options:ae(i)})})).filter((function(e){return e}))}function ie(e,t,n,r,o){return m.useMemo((function(){var a=e;!e&&(a=ae(t));var i=new Map,l=new Map,c=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=0;u1&&void 0!==arguments[1]?arguments[1]:1,n=D.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];K(e);var n={source:t?"keyboard":"mouse"},r=D[e];r?C(r.value,e,n):C(null,-1,n)};(0,m.useEffect)((function(){F(!1!==S?V(0):-1)}),[D.length,h]);var B=m.useCallback((function(e){return N.has(e)&&"combobox"!==d}),[d,(0,l.Z)(N).toString()]);(0,m.useEffect)((function(){var e,t=setTimeout((function(){if(!f&&p&&1===N.size){var e=Array.from(N)[0],t=D.findIndex((function(t){return t.data.value===e}));-1!==t&&(F(t),L(t))}}));p&&(null===(e=j.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[p,h]);var W=function(e){void 0!==e&&Z(e,{selected:!N.has(e)}),f||g(!1)};if(m.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case v.Z.N:case v.Z.P:case v.Z.UP:case v.Z.DOWN:var r=0;if(t===v.Z.UP?r=-1:t===v.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===v.Z.N?r=1:t===v.Z.P&&(r=-1)),0!==r){var o=V(H+r,r);L(o),F(o,!0)}break;case v.Z.ENTER:var a=D[H];a&&!a.data.disabled?W(a.value):W(void 0),p&&e.preventDefault();break;case v.Z.ESC:g(!1),p&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){L(e)}}})),0===D.length)return m.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(T,"-empty"),onMouseDown:_},b);var Y=Object.keys(P).map((function(e){return P[e]})),G=function(e){return e.label},J=function(e){var t=D[e];if(!t)return null;var n=t.data||{},r=n.value,a=t.group,i=(0,O.Z)(n,!0),l=G(t);return t?m.createElement("div",(0,o.Z)({"aria-label":"string"!==typeof l||a?null:l},i,{key:e,role:a?"presentation":"option",id:"".concat(c,"_list_").concat(e),"aria-selected":B(r)}),r):null};return m.createElement(m.Fragment,null,m.createElement("div",{role:"listbox",id:"".concat(c,"_list"),style:{height:0,width:0,overflow:"hidden"}},J(H-1),J(H),J(H+1)),m.createElement(me.Z,{itemKey:"key",ref:j,data:D,height:R,itemHeight:k,fullHeight:!1,onMouseDown:_,onScroll:y,virtual:I},(function(e,t){var n,a=e.group,l=e.groupOption,c=e.data,u=e.label,p=e.value,f=c.key;if(a){var d,v=null!==(d=c.title)&&void 0!==d?d:ge(u)?u.toString():void 0;return m.createElement("div",{className:i()(T,"".concat(T,"-group")),title:v},void 0!==u?u:f)}var h=c.disabled,g=c.title,b=(c.children,c.style),y=c.className,E=(0,s.Z)(c,he),w=(0,fe.Z)(E,Y),C=B(p),S="".concat(T,"-option"),Z=i()(T,S,y,(n={},(0,r.Z)(n,"".concat(S,"-grouped"),l),(0,r.Z)(n,"".concat(S,"-active"),H===t&&!h),(0,r.Z)(n,"".concat(S,"-disabled"),h),(0,r.Z)(n,"".concat(S,"-selected"),C),n)),N=G(e),P=!x||"function"===typeof x||C,I="number"===typeof N?N:N||p,R=ge(I)?I.toString():void 0;return void 0!==g&&(R=g),m.createElement("div",(0,o.Z)({},(0,O.Z)(w),{"aria-selected":C,className:Z,title:R,onMouseMove:function(){H===t||h||F(t)},onClick:function(){h||W(p)},style:b}),m.createElement("div",{className:"".concat(S,"-content")},I),m.isValidElement(x)||C,P&&m.createElement(M,{className:"".concat(T,"-option-state"),customizeIcon:x,customizeIconProps:{isSelected:C}},C?"\u2713":null))})))},ye=m.forwardRef(be);ye.displayName="OptionList";var Ee=ye;var we=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Ce=["inputValue"];var Se=m.forwardRef((function(e,t){var n=e.id,a=e.mode,i=e.prefixCls,d=void 0===i?"rc-select":i,v=e.backfill,h=e.fieldNames,g=e.inputValue,b=e.searchValue,y=e.onSearch,S=e.autoClearSearchValue,Z=void 0===S||S,x=e.onSelect,N=e.onDeselect,P=e.dropdownMatchSelectWidth,O=void 0===P||P,I=e.filterOption,M=e.filterSort,R=e.optionFilterProp,k=e.optionLabelProp,T=e.options,j=e.children,_=e.defaultActiveFirstOption,L=e.menuItemSelectedIcon,V=e.virtual,z=e.listHeight,A=void 0===z?200:z,H=e.listItemHeight,K=void 0===H?20:H,F=e.value,U=e.defaultValue,B=e.labelInValue,W=e.onChange,G=(0,s.Z)(e,we),X=ee(n),Q=Y(a),$=!(T||!j),te=m.useMemo((function(){return(void 0!==I||"combobox"!==a)&&I}),[I,a]),ne=m.useMemo((function(){return w(h,$)}),[JSON.stringify(h),$]),re=(0,f.Z)("",{value:void 0!==b?b:g,postState:function(e){return e||""}}),oe=(0,u.Z)(re,2),ae=oe[0],ce=oe[1],ue=ie(T,j,ne,R,k),se=ue.valueOptions,pe=ue.labelOptions,fe=ue.options,de=m.useCallback((function(e){return D(e).map((function(e){var t,n,r,o,a;(function(e){return!e||"object"!==(0,p.Z)(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var i,l=se.get(t);l&&(void 0===n&&(n=null===l||void 0===l?void 0:l[k||ne.label]),void 0===r&&(r=null!==(i=null===l||void 0===l?void 0:l.key)&&void 0!==i?i:t),o=null===l||void 0===l?void 0:l.disabled);return{label:n,value:t,key:r,disabled:o}}))}),[ne,k,se]),me=(0,f.Z)(U,{value:F}),he=(0,u.Z)(me,2),ge=he[0],be=he[1],ye=function(e,t){var n=m.useRef({values:new Map,options:new Map});return[m.useMemo((function(){var r=n.current,o=r.values,a=r.options,i=e.map((function(e){var t;return void 0===e.label?(0,c.Z)((0,c.Z)({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,u=new Map;return i.forEach((function(e){l.set(e.value,e),u.set(e.value,t.get(e.value)||a.get(e.value))})),n.current.values=l,n.current.options=u,i}),[e,t]),m.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(m.useMemo((function(){var e,t=de(ge);return"combobox"!==a||(null===(e=t[0])||void 0===e?void 0:e.value)?t:[]}),[ge,de,a]),se),Se=(0,u.Z)(ye,2),Ze=Se[0],xe=Se[1],Ne=m.useMemo((function(){if(!a&&1===Ze.length){var e=Ze[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Ze.map((function(e){var t;return(0,c.Z)((0,c.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[a,Ze]),Pe=m.useMemo((function(){return new Set(Ze.map((function(e){return e.value})))}),[Ze]);m.useEffect((function(){if("combobox"===a){var e,t=null===(e=Ze[0])||void 0===e?void 0:e.value;void 0!==t&&null!==t&&ce(String(t))}}),[Ze]);var Oe=le((function(e,t){var n,o=null!==t&&void 0!==t?t:e;return n={},(0,r.Z)(n,ne.value,e),(0,r.Z)(n,ne.label,o),n})),Ie=function(e,t,n,o,a){return m.useMemo((function(){if(!n||!1===o)return e;var i=t.options,l=t.label,u=t.value,s=[],p="function"===typeof o,f=n.toUpperCase(),d=p?o:function(e,t){return a?q(t[a],f):t[i]?q(t["children"!==l?l:"label"],f):q(t[u],f)},m=p?function(e){return C(e)}:function(e){return e};return e.forEach((function(e){if(e[i])if(d(n,m(e)))s.push(e);else{var t=e[i].filter((function(e){return d(n,m(e))}));t.length&&s.push((0,c.Z)((0,c.Z)({},e),{},(0,r.Z)({},i,t)))}else d(n,m(e))&&s.push(e)})),s}),[e,o,a,n,t])}(m.useMemo((function(){if("tags"!==a)return fe;var e=(0,l.Z)(fe);return(0,l.Z)(Ze).sort((function(e,t){return e.value1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=w(n,!1),i=a.label,l=a.value,c=a.options;function u(e,t){e.forEach((function(e){var n=e[i];if(t||!(c in e)){var a=e[l];o.push({key:E(e,o.length),groupOption:t,data:e,label:n,value:a})}else{var s=n;void 0===s&&r&&(s=e.label),o.push({key:E(e,o.length),group:!0,data:e,label:s}),u(e[c],!0)}}))}return u(e,!1),o}(Re,{fieldNames:ne,childrenAsData:$})}),[Re,ne,$]),Te=function(e){var t=de(e);if(be(t),W&&(t.length!==Ze.length||t.some((function(e,t){var n;return(null===(n=Ze[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){var n=B?t:t.map((function(e){return e.value})),r=t.map((function(e){return C(xe(e.value))}));W(Q?n:n[0],Q?r:r[0])}},De=m.useState(null),je=(0,u.Z)(De,2),_e=je[0],Le=je[1],Ve=m.useState(0),ze=(0,u.Z)(Ve,2),Ae=ze[0],He=ze[1],Ke=void 0!==_?_:"combobox"!==a,Fe=m.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=void 0===r?"keyboard":r;He(t),v&&"combobox"===a&&null!==e&&"keyboard"===o&&Le(String(e))}),[v,a]),Ue=function(e,t){var n=function(){var t,n=xe(e);return[B?{label:null===n||void 0===n?void 0:n[ne.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,C(n)]};if(t&&x){var r=n(),o=(0,u.Z)(r,2),a=o[0],i=o[1];x(a,i)}else if(!t&&N){var l=n(),c=(0,u.Z)(l,2),s=c[0],p=c[1];N(s,p)}},Be=le((function(e,t){var n,r=!Q||t.selected;n=r?Q?[].concat((0,l.Z)(Ze),[e]):[e]:Ze.filter((function(t){return t.value!==e})),Te(n),Ue(e,r),"combobox"===a?Le(""):Y&&!Z||(ce(""),Le(""))})),We=m.useMemo((function(){var e=!1!==V&&!1!==O;return(0,c.Z)((0,c.Z)({},ue),{},{flattenOptions:ke,onActiveValue:Fe,defaultActiveFirstOption:Ke,onSelect:Be,menuItemSelectedIcon:L,rawValues:Pe,fieldNames:ne,virtual:e,listHeight:A,listItemHeight:K,childrenAsData:$})}),[ue,ke,Fe,Ke,Be,L,Pe,ne,V,O,A,K,$]);return m.createElement(ve.Provider,{value:We},m.createElement(J,(0,o.Z)({},G,{id:X,prefixCls:d,ref:t,omitDomProps:Ce,mode:a,displayValues:Ne,onDisplayValuesChange:function(e,t){Te(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((function(e){Ue(e.value,!1)}))},searchValue:ae,onSearch:function(e,t){if(ce(e),Le(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===a&&Te(e),null===y||void 0===y||y(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,l.Z)(Pe),[n])));Te(r),Ue(n,!0),ce("")}}},onSearchSplit:function(e){var t=e;"tags"!==a&&(t=e.map((function(e){var t=pe.get(e);return null===t||void 0===t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,l.Z)(Pe),(0,l.Z)(t))));Te(n),n.forEach((function(e){Ue(e,!0)}))},dropdownMatchSelectWidth:O,OptionList:Ee,emptyOptions:!ke.length,activeValue:_e,activeDescendantId:"".concat(X,"_list_").concat(Ae)})))}));var Ze=Se;Ze.Option=pe,Ze.OptGroup=ue;var xe=Ze,Ne=n(53124),Pe=n(88258),Oe=n(98866),Ie=n(97647),Me=n(65223),Re=n(33603),ke=n(9708),Te=n(63606),De=n(4340),je=n(97937),_e=n(80882),Le=n(50888),Ve=n(68795);var ze=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);on},e}return t=l,(n=[{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,t=e.dragging,n=e.visible,o=this.props.prefixCls,i=this.getSpinHeight(),l=this.getTop(),c=this.showScroll(),u=c&&n;return r.createElement("div",{ref:this.scrollbarRef,className:a()("".concat(o,"-scrollbar"),m({},"".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"),m({},"".concat(o,"-scrollbar-thumb-moving"),t)),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(t.prototype,n),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.Component);function S(e){var t=e.children,n=e.setRef,o=r.useCallback((function(e){n(e)}),[]);return r.cloneElement(t,{ref:o})}var Z=n(34203);function x(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1],r=e<0&&i.current.top||e>0&&i.current.bottom;return t&&r?(clearTimeout(o.current),n.current=!1):r&&!n.current||a(),!n.current&&r}};var _=n(8410);var L=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function V(){return V=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var B=[],W={overflowY:"auto",overflowAnchor:"none"};function Y(e,t){var n=e.prefixCls,o=void 0===n?"rc-virtual-list":n,i=e.className,l=e.height,c=e.itemHeight,u=e.fullHeight,s=void 0===u||u,d=e.style,m=e.data,v=e.children,h=e.itemKey,g=e.virtual,b=e.component,y=void 0===b?"div":b,E=e.onScroll,w=e.onVisibleChange,x=U(e,L),O=!(!1===g||!l||!c),M=O&&m&&c*m.length>l,R=K((0,r.useState)(0),2),T=R[0],z=R[1],F=K((0,r.useState)(!1),2),Y=F[0],G=F[1],J=a()(o,i),q=m||B,X=(0,r.useRef)(),Q=(0,r.useRef)(),$=(0,r.useRef)(),ee=r.useCallback((function(e){return"function"===typeof h?h(e):null===e||void 0===e?void 0:e[h]}),[h]),te={getKey:ee};function ne(e){z((function(t){var n=function(e){var t=e;Number.isNaN(be.current)||(t=Math.min(t,be.current));return t=Math.max(t,0)}("function"===typeof e?e(t):e);return X.current.scrollTop=n,n}))}var re=(0,r.useRef)({start:0,end:q.length}),oe=(0,r.useRef)(),ae=K(k(q,ee),1)[0];oe.current=ae;var ie=function(e,t,n){var o=P(r.useState(0),2),a=o[0],i=o[1],l=(0,r.useRef)(new Map),c=(0,r.useRef)(new N),u=(0,r.useRef)();function s(){f.Z.cancel(u.current)}function p(){s(),u.current=(0,f.Z)((function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=(0,Z.Z)(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))}))}return(0,r.useEffect)((function(){return s}),[]),[function(r,o){var a=e(r),i=l.current.get(a);o?(l.current.set(a,o),p()):l.current.delete(a),!i!==!o&&(o?null===t||void 0===t||t(r):null===n||void 0===n||n(r))},p,c.current,a]}(ee,null,null),le=K(ie,4),ce=le[0],ue=le[1],se=le[2],pe=le[3],fe=r.useMemo((function(){if(!O)return{scrollHeight:void 0,start:0,end:q.length-1,offset:void 0};var e;if(!M)return{scrollHeight:(null===(e=Q.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:q.length-1,offset:void 0};for(var t,n,r,o=0,a=q.length,i=0;i=T&&void 0===t&&(t=i,n=o),f>T+l&&void 0===r&&(r=i),o=f}return void 0===t&&(t=0,n=0),void 0===r&&(r=q.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,q.length),offset:n}}),[M,O,T,q,pe,l]),de=fe.scrollHeight,me=fe.start,ve=fe.end,he=fe.offset;re.current.start=me,re.current.end=ve;var ge=de-l,be=(0,r.useRef)(ge);be.current=ge;var ye=T<=0,Ee=T>=ge,we=j(ye,Ee);var Ce=function(e,t,n,o){var a=(0,r.useRef)(0),i=(0,r.useRef)(null),l=(0,r.useRef)(null),c=(0,r.useRef)(!1),u=j(t,n);return[function(t){if(e){f.Z.cancel(i.current);var n=t.deltaY;a.current+=n,l.current=n,u(n)||(D||t.preventDefault(),i.current=(0,f.Z)((function(){var e=c.current?10:1;o(a.current*e),a.current=0})))}},function(t){e&&(c.current=t.detail===l.current)}]}(O,ye,Ee,(function(e){ne((function(t){return t+e}))})),Se=K(Ce,2),Ze=Se[0],xe=Se[1];!function(e,t,n){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 t=Math.ceil(e.touches[0].pageY),r=i.current-t;i.current=t,n(r)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){(!n(r*=.9333333333333333,!0)||Math.abs(r)<=.1)&&clearInterval(c.current)}),16)}},s=function(){a.current=!1,o()},p=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))},(0,_.Z)((function(){return e&&t.current.addEventListener("touchstart",p),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",p),o(),clearInterval(c.current)}}),[e])}(O,X,(function(e,t){return!we(e,t)&&(Ze({preventDefault:function(){},deltaY:e}),!0)})),(0,_.Z)((function(){function e(e){O&&e.preventDefault()}return X.current.addEventListener("wheel",Ze),X.current.addEventListener("DOMMouseScroll",xe),X.current.addEventListener("MozMousePixelScroll",e),function(){X.current&&(X.current.removeEventListener("wheel",Ze),X.current.removeEventListener("DOMMouseScroll",xe),X.current.removeEventListener("MozMousePixelScroll",e))}}),[O]);var Ne=function(e,t,n,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"===I(r)){var s,p=r.align;s="index"in r?r.index:t.findIndex((function(e){return a(e)===r.key}));var d=r.offset,m=void 0===d?0:d;!function r(c,d){if(!(c<0)&&e.current){var v=e.current.clientHeight,h=!1,g=d;if(v){for(var b=d||p,y=0,E=0,w=0,C=Math.min(t.length,s),S=0;S<=C;S+=1){var Z=a(t[S]);E=y;var x=n.get(Z);y=w=E+(void 0===x?o:x),S===s&&void 0===x&&(h=!0)}var N=null;switch(b){case"top":N=E-m;break;case"bottom":N=w-v+m;break;default:var P=e.current.scrollTop;EP+v&&(g="bottom")}null!==N&&N!==e.current.scrollTop&&l(N)}u.current=(0,f.Z)((function(){h&&i(),r(c-1,g)}))}}(3)}}else c()}}(X,q,se,c,ee,ue,ne,(function(){var e;null===(e=$.current)||void 0===e||e.delayHidden()}));r.useImperativeHandle(t,(function(){return{scrollTo:Ne}})),(0,_.Z)((function(){if(w){var e=q.slice(me,ve+1);w(e,q)}}),[me,ve,q]);var Pe=function(e,t,n,o,a,i){var l=i.getKey;return e.slice(t,n+1).map((function(e,n){var i=a(e,t+n,{}),c=l(e);return r.createElement(S,{key:c,setRef:function(t){return o(e,t)}},i)}))}(q,me,ve,ce,v,te),Oe=null;return l&&(Oe=A(H({},s?"height":"maxHeight",l),W),O&&(Oe.overflowY="hidden",Y&&(Oe.pointerEvents="none"))),r.createElement("div",V({style:A(A({},d),{},{position:"relative"}),className:J},x),r.createElement(y,{className:"".concat(o,"-holder"),style:Oe,ref:X,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==T&&ne(t),null===E||void 0===E||E(e)}},r.createElement(p,{prefixCls:o,height:de,offset:he,onInnerResize:ue,ref:Q},Pe)),O&&r.createElement(C,{ref:$,prefixCls:o,scrollTop:T,height:l,scrollHeight:de,count:q.length,onScroll:function(e){ne(e)},onStartMove:function(){G(!0)},onStopMove:function(){G(!1)}}))}var G=r.forwardRef(Y);G.displayName="List";var J=G}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/7900-a9ddaa4c2db8e5fa.js b/static/web/_next/static/chunks/7900-a9ddaa4c2db8e5fa.js new file mode 100644 index 000000000..6467c142b --- /dev/null +++ b/static/web/_next/static/chunks/7900-a9ddaa4c2db8e5fa.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7900],{94149:function(e,n,t){t.d(n,{Z:function(){return l}});var a=t(1413),r=t(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},o=t(42135),i=function(e,n){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:n,icon:c}))};i.displayName="LockOutlined";var l=r.forwardRef(i)},87547:function(e,n,t){t.d(n,{Z:function(){return l}});var a=t(1413),r=t(67294),c={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"},o=t(42135),i=function(e,n){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:n,icon:c}))};i.displayName="UserOutlined";var l=r.forwardRef(i)},54907:function(e,n,t){t.d(n,{Z:function(){return M}});var a=t(87462),r=t(4942),c=t(18073),o=t(94184),i=t.n(o),l=t(74902),s=t(15671),d=t(43144),u=t(60136),p=t(33643),v=t(71002),f=t(67294),m=t(96774),h=t.n(m),y=t(50344),C=t(62874),Z=t(97685),x=f.forwardRef((function(e,n){var t,a=e.prefixCls,c=e.forceRender,o=e.className,l=e.style,s=e.children,d=e.isActive,u=e.role,p=f.useState(d||c),v=(0,Z.Z)(p,2),m=v[0],h=v[1];return f.useEffect((function(){(c||d)&&h(!0)}),[c,d]),m?f.createElement("div",{ref:n,className:i()("".concat(a,"-content"),(t={},(0,r.Z)(t,"".concat(a,"-content-active"),d),(0,r.Z)(t,"".concat(a,"-content-inactive"),!d),t),o),style:l,role:u},f.createElement("div",{className:"".concat(a,"-content-box")},s)):null}));x.displayName="PanelContent";var b=x,k=function(e){(0,u.Z)(t,e);var n=(0,p.Z)(t);function t(){var e;(0,s.Z)(this,t);for(var a=arguments.length,r=new Array(a),c=0;c-1?n.splice(t,1):n.push(e)}a.setActiveKey(n)},a.getNewChild=function(e,n){if(!e)return null;var t=a.state.activeKey,r=a.props,c=r.prefixCls,o=r.openMotion,i=r.accordion,l=r.destroyInactivePanel,s=r.expandIcon,d=r.collapsible,u=e.key||String(n),p=e.props,v=p.header,m=p.headerClass,h=p.destroyInactivePanel,y=p.collapsible,C=null!==y&&void 0!==y?y:d,Z={key:u,panelKey:u,header:v,headerClass:m,isActive:i?t[0]===u:t.indexOf(u)>-1,prefixCls:c,destroyInactivePanel:null!==h&&void 0!==h?h:l,openMotion:o,accordion:i,children:e.props.children,onItemClick:"disabled"===C?null:a.onClickItem,expandIcon:s,collapsible:C};return"string"===typeof e.type?e:(Object.keys(Z).forEach((function(e){"undefined"===typeof Z[e]&&delete Z[e]})),f.cloneElement(e,Z))},a.getItems=function(){var e=a.props.children;return(0,y.Z)(e).map(a.getNewChild)},a.setActiveKey=function(e){"activeKey"in a.props||a.setState({activeKey:e}),a.props.onChange(a.props.accordion?e[0]:e)};var r=e.activeKey,c=e.defaultActiveKey;return"activeKey"in e&&(c=r),a.state={activeKey:I(c)},a}return(0,d.Z)(t,[{key:"shouldComponentUpdate",value:function(e,n){return!h()(this.props,e)||!h()(this.state,n)}},{key:"render",value:function(){var e,n=this.props,t=n.prefixCls,a=n.className,c=n.style,o=n.accordion,l=i()((e={},(0,r.Z)(e,t,!0),(0,r.Z)(e,a,!!a),e));return f.createElement("div",{className:l,style:c,role:o?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(e){var n={};return"activeKey"in e&&(n.activeKey=I(e.activeKey)),n}}]),t}(f.Component);g.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},g.Panel=N;var E=g,w=(g.Panel,t(98423)),P=t(53124),K=t(33603),A=t(96159),S=function(e){var n,t=f.useContext(P.E_),o=t.getPrefixCls,l=t.direction,s=e.prefixCls,d=e.className,u=void 0===d?"":d,p=e.bordered,v=void 0===p||p,m=e.ghost,h=e.expandIconPosition,C=void 0===h?"start":h,Z=o("collapse",s),x=f.useMemo((function(){return"left"===C?"start":"right"===C?"end":C}),[C]),b=i()("".concat(Z,"-icon-position-").concat(x),(n={},(0,r.Z)(n,"".concat(Z,"-borderless"),!v),(0,r.Z)(n,"".concat(Z,"-rtl"),"rtl"===l),(0,r.Z)(n,"".concat(Z,"-ghost"),!!m),n),u),k=(0,a.Z)((0,a.Z)({},K.ZP),{motionAppear:!1,leavedClassName:"".concat(Z,"-content-hidden")});return f.createElement(E,(0,a.Z)({openMotion:k},e,{expandIcon:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.expandIcon,a=t?t(n):f.createElement(c.Z,{rotate:n.isActive?90:void 0});return(0,A.Tm)(a,(function(){return{className:i()(a.props.className,"".concat(Z,"-arrow"))}}))},prefixCls:Z,className:b}),function(){var n=e.children;return(0,y.Z)(n).map((function(e,n){var t;if(null===(t=e.props)||void 0===t?void 0:t.disabled){var r=e.key||String(n),c=e.props,o=c.disabled,i=c.collapsible,l=(0,a.Z)((0,a.Z)({},(0,w.Z)(e.props,["disabled"])),{key:r,collapsible:null!==i&&void 0!==i?i:o?"disabled":void 0});return(0,A.Tm)(e,l)}return e}))}())};S.Panel=function(e){var n=f.useContext(P.E_).getPrefixCls,t=e.prefixCls,c=e.className,o=void 0===c?"":c,l=e.showArrow,s=void 0===l||l,d=n("collapse",t),u=i()((0,r.Z)({},"".concat(d,"-no-arrow"),!s),o);return f.createElement(E.Panel,(0,a.Z)({},e,{prefixCls:d,className:u}))};var M=S}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/8521-692724ee4f71b2cc.js b/static/web/_next/static/chunks/8521-692724ee4f71b2cc.js new file mode 100644 index 000000000..eb4fe6e53 --- /dev/null +++ b/static/web/_next/static/chunks/8521-692724ee4f71b2cc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8521],{25413:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"}},6594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"}},77307:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},54067:function(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(n=r(45799))&&n.__esModule?n:{default:n};t.default=a,e.exports=a},68229:function(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(n=r(7500))&&n.__esModule?n:{default:n};t.default=a,e.exports=a},67638:function(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(n=r(86994))&&n.__esModule?n:{default:n};t.default=a,e.exports=a},71578:function(e,t,r){r.d(t,{Z:function(){return c}});var n=r(1413),a=r(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z"}}]},name:"bell",theme:"filled"},i=r(42135),l=function(e,t){return a.createElement(i.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:o}))};l.displayName="BellFilled";var c=a.forwardRef(l)},34447:function(e,t,r){r.d(t,{Z:function(){return c}});var n=r(1413),a=r(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"}}]},name:"heart",theme:"filled"},i=r(42135),l=function(e,t){return a.createElement(i.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:o}))};l.displayName="HeartFilled";var c=a.forwardRef(l)},45799:function(e,t,r){var n=r(75263),a=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(42122)),i=n(r(67294)),l=a(r(25413)),c=a(r(92074)),s=function(e,t){return i.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:l.default}))};s.displayName="BarsOutlined";var u=i.forwardRef(s);t.default=u},7500:function(e,t,r){var n=r(75263),a=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(42122)),i=n(r(67294)),l=a(r(6594)),c=a(r(92074)),s=function(e,t){return i.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:l.default}))};s.displayName="LeftOutlined";var u=i.forwardRef(s);t.default=u},86994:function(e,t,r){var n=r(75263),a=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(42122)),i=n(r(67294)),l=a(r(77307)),c=a(r(92074)),s=function(e,t){return i.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:l.default}))};s.displayName="RightOutlined";var u=i.forwardRef(s);t.default=u},24093:function(e,t,r){r.d(t,{C:function(){return O}});var n=r(87462),a=r(4942),o=r(71002),i=r(97685),l=r(94184),c=r.n(l),s=r(48555),u=r(42550),f=r(67294),d=r(53124),v=r(25378),m=r(24308),p=f.createContext("default"),g=function(e){var t=e.children,r=e.size;return f.createElement(p.Consumer,null,(function(e){return f.createElement(p.Provider,{value:r||e},t)}))},h=p,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);an){if(t>0)return(0,l.Z)({},e,o);if(t<0&&an)return(0,l.Z)({},e,t<0?o:-o);return{}}var x=["visible","onVisibleChange","getContainer","current","countRender"],Z=u.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),b=Z.Provider,E=function(e){var t=e.previewPrefixCls,r=void 0===t?"rc-image-preview":t,o=e.children,i=e.icons,l=void 0===i?{}:i,f=e.preview,d="object"===(0,a.Z)(f)?f:{},v=d.visible,p=void 0===v?void 0:v,g=d.onVisibleChange,h=void 0===g?void 0:g,y=d.getContainer,w=void 0===y?void 0:y,C=d.current,Z=void 0===C?0:C,E=d.countRender,N=void 0===E?void 0:E,P=(0,s.Z)(d,x),O=(0,u.useState)(new Map),k=(0,c.Z)(O,2),z=k[0],S=k[1],M=(0,u.useState)(),R=(0,c.Z)(M,2),_=R[0],L=R[1],H=(0,m.Z)(!!p,{value:p,onChange:h}),I=(0,c.Z)(H,2),V=I[0],B=I[1],T=(0,u.useState)(null),F=(0,c.Z)(T,2),W=F[0],D=F[1],A=void 0!==p,G=Array.from(z.keys())[Z],X=new Map(Array.from(z).filter((function(e){return!!(0,c.Z)(e,2)[1].canPreview})).map((function(e){var t=(0,c.Z)(e,2);return[t[0],t[1].url]})));return u.useEffect((function(){L(G)}),[G]),u.useEffect((function(){!V&&A&&L(G)}),[G,A,V]),u.createElement(b,{value:{isPreviewGroup:!0,previewUrls:X,setPreviewUrls:S,current:_,setCurrent:L,setShowPreview:B,setMousePosition:D,registerImage:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=function(){S((function(t){var r=new Map(t);return r.delete(e)?r:t}))};return S((function(n){return new Map(n).set(e,{url:t,canPreview:r})})),n}}},o,u.createElement(j,(0,n.Z)({"aria-hidden":!V,visible:V,prefixCls:r,onClose:function(e){e.stopPropagation(),B(!1),D(null)},mousePosition:W,src:X.get(_),icons:l,getContainer:w,countRender:N},P)))},N=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","countRender"],P=u.useState,O=u.useEffect,k=u.useCallback,z=u.useRef,S=u.useContext,M={x:0,y:0},j=function(e){var t,r=e.prefixCls,a=e.src,o=e.alt,f=e.onClose,m=(e.afterClose,e.visible),x=e.icons,b=void 0===x?{}:x,E=e.rootClassName,j=e.countRender,R=(0,s.Z)(e,N),_=b.rotateLeft,L=b.rotateRight,H=b.zoomIn,I=b.zoomOut,V=b.close,B=b.left,T=b.right,F=P(1),W=(0,c.Z)(F,2),D=W[0],A=W[1],G=P(0),X=(0,c.Z)(G,2),Y=X[0],U=X[1],K=function(e){var t=u.useRef(null),r=u.useState(e),n=(0,c.Z)(r,2),a=n[0],o=n[1],l=u.useRef([]);return u.useEffect((function(){return function(){return t.current&&w.Z.cancel(t.current)}}),[]),[a,function(e){null===t.current&&(l.current=[],t.current=(0,w.Z)((function(){o((function(e){var r=e;return l.current.forEach((function(e){r=(0,i.Z)((0,i.Z)({},r),e)})),t.current=null,r}))}))),l.current.push(e)}]}(M),Q=(0,c.Z)(K,2),q=Q[0],J=Q[1],$=z(),ee=z({originX:0,originY:0,deltaX:0,deltaY:0}),te=P(!1),re=(0,c.Z)(te,2),ne=re[0],ae=re[1],oe=S(Z),ie=oe.previewUrls,le=oe.current,ce=oe.isPreviewGroup,se=oe.setCurrent,ue=ie.size,fe=Array.from(ie.keys()),de=fe.indexOf(le),ve=ce?ie.get(le):a,me=ce&&ue>1,pe=P({wheelDirection:0}),ge=(0,c.Z)(pe,2),he=ge[0],ye=ge[1],we=function(){A((function(e){return e+1})),J(M)},Ce=function(){D>1&&A((function(e){return e-1})),J(M)},xe=d()((0,l.Z)({},"".concat(r,"-moving"),ne)),Ze="".concat(r,"-operations-operation"),be="".concat(r,"-operations-icon"),Ee=[{icon:V,onClick:f,type:"close"},{icon:H,onClick:we,type:"zoomIn"},{icon:I,onClick:Ce,type:"zoomOut",disabled:1===D},{icon:L,onClick:function(){U((function(e){return e+90}))},type:"rotateRight"},{icon:_,onClick:function(){U((function(e){return e-90}))},type:"rotateLeft"}],Ne=function(){if(m&&ne){var e=$.current.offsetWidth*D,t=$.current.offsetHeight*D,r=$.current.getBoundingClientRect(),n=r.left,a=r.top,o=Y%180!==0;ae(!1);var l=function(e,t,r,n){var a=(0,v.g1)(),o=a.width,l=a.height,c=null;return e<=o&&t<=l?c={x:0,y:0}:(e>o||t>l)&&(c=(0,i.Z)((0,i.Z)({},C("x",r,e,o)),C("y",n,t,l))),c}(o?t:e,o?e:t,n,a);l&&J((0,i.Z)({},l))}},Pe=function(e){m&&ne&&J({x:e.pageX-ee.current.deltaX,y:e.pageY-ee.current.deltaY})},Oe=function(e){if(m){e.preventDefault();var t=e.deltaY;ye({wheelDirection:t})}},ke=k((function(e){m&&me&&(e.preventDefault(),e.keyCode===h.Z.LEFT?de>0&&se(fe[de-1]):e.keyCode===h.Z.RIGHT&&de0?Ce():e<0&&we()}),[he]),O((function(){var e,t,r=(0,g.Z)(window,"mouseup",Ne,!1),n=(0,g.Z)(window,"mousemove",Pe,!1),a=(0,g.Z)(window,"wheel",Oe,{passive:!1}),o=(0,g.Z)(window,"keydown",ke,!1);try{window.top!==window.self&&(e=(0,g.Z)(window.top,"mouseup",Ne,!1),t=(0,g.Z)(window.top,"mousemove",Pe,!1))}catch(i){(0,y.Kp)(!1,"[rc-image] ".concat(i))}return function(){r.remove(),n.remove(),a.remove(),o.remove(),e&&e.remove(),t&&t.remove()}}),[m,ne,ke]),u.createElement(p.Z,(0,n.Z)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:r,onClose:f,afterClose:function(){A(1),U(0),J(M)},visible:m,wrapClassName:xe,rootClassName:E},R),u.createElement("ul",{className:"".concat(r,"-operations")},me&&u.createElement("li",{className:"".concat(r,"-operations-progress")},null!==(t=null===j||void 0===j?void 0:j(de+1,ue))&&void 0!==t?t:"".concat(de+1," / ").concat(ue)),Ee.map((function(e){var t=e.icon,n=e.onClick,a=e.type,o=e.disabled;return u.createElement("li",{className:d()(Ze,(0,l.Z)({},"".concat(r,"-operations-operation-disabled"),!!o)),onClick:n,key:a},u.isValidElement(t)?u.cloneElement(t,{className:be}):t)}))),u.createElement("div",{className:"".concat(r,"-img-wrapper"),style:{transform:"translate3d(".concat(q.x,"px, ").concat(q.y,"px, 0)")}},u.createElement("img",{width:e.width,height:e.height,onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),ee.current.deltaX=e.pageX-q.x,ee.current.deltaY=e.pageY-q.y,ee.current.originX=q.x,ee.current.originY=q.y,ae(!0))},onDoubleClick:function(){m&&(1!==D&&A(1),q.x===M.x&&q.y===M.y||J(M))},ref:$,className:"".concat(r,"-img"),src:ve,alt:o,style:{transform:"scale3d(".concat(D,", ").concat(D,", 1) rotate(").concat(Y,"deg)")}})),me&&u.createElement("div",{className:d()("".concat(r,"-switch-left"),(0,l.Z)({},"".concat(r,"-switch-left-disabled"),0===de)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de>0&&se(fe[de-1])}},B),me&&u.createElement("div",{className:d()("".concat(r,"-switch-right"),(0,l.Z)({},"".concat(r,"-switch-right-disabled"),de===ue-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}();var x=v.forwardRef((function(e,t){var r=e.prefixCls,n=e.className,a=e.trigger,x=e.children,Z=e.defaultCollapsed,b=void 0!==Z&&Z,E=e.theme,N=void 0===E?"dark":E,P=e.style,O=void 0===P?{}:P,k=e.collapsible,z=void 0!==k&&k,S=e.reverseArrow,M=void 0!==S&&S,j=e.width,R=void 0===j?200:j,_=e.collapsedWidth,L=void 0===_?80:_,H=e.zeroWidthTriggerStyle,I=e.breakpoint,V=e.onCollapse,B=e.onBreakpoint,T=h(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),F=(0,v.useContext)(g.LayoutContext).siderHook,W=(0,v.useState)("collapsed"in T?T.collapsed:b),D=(0,l.default)(W,2),A=D[0],G=D[1],X=(0,v.useState)(!1),Y=(0,l.default)(X,2),U=Y[0],K=Y[1];(0,v.useEffect)((function(){"collapsed"in T&&G(T.collapsed)}),[T.collapsed]);var Q=function(e,t){"collapsed"in T||G(e),null===V||void 0===V||V(e,t)},q=(0,v.useRef)();q.current=function(e){K(e.matches),null===B||void 0===B||B(e.matches),A!==e.matches&&Q(e.matches,"responsive")},(0,v.useEffect)((function(){function e(e){return q.current(e)}var t;if("undefined"!==typeof window){var r=window.matchMedia;if(r&&I&&I in y){t=r("(max-width: ".concat(y[I],")"));try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return function(){try{null===t||void 0===t||t.removeEventListener("change",e)}catch(n){null===t||void 0===t||t.removeListener(e)}}}),[I]),(0,v.useEffect)((function(){var e=C("ant-sider-");return F.addSider(e),function(){return F.removeSider(e)}}),[]);var J=function(){Q(!A,"clickTrigger")},$=(0,v.useContext)(m.ConfigContext).getPrefixCls,ee=v.useMemo((function(){return{siderCollapsed:A}}),[A]);return v.createElement(w.Provider,{value:ee},function(){var e,l=$("layout-sider",r),m=(0,d.default)(T,["collapsed"]),g=A?L:R,h=(0,p.default)(g)?"".concat(g,"px"):String(g),y=0===parseFloat(String(L||0))?v.createElement("span",{onClick:J,className:(0,f.default)("".concat(l,"-zero-width-trigger"),"".concat(l,"-zero-width-trigger-").concat(M?"right":"left")),style:H},a||v.createElement(c.default,null)):null,w={expanded:M?v.createElement(u.default,null):v.createElement(s.default,null),collapsed:M?v.createElement(s.default,null):v.createElement(u.default,null)}[A?"collapsed":"expanded"],C=null!==a?y||v.createElement("div",{className:"".concat(l,"-trigger"),onClick:J,style:{width:h}},a||w):null,Z=(0,i.default)((0,i.default)({},O),{flex:"0 0 ".concat(h),maxWidth:h,minWidth:h,width:h}),b=(0,f.default)(l,"".concat(l,"-").concat(N),(e={},(0,o.default)(e,"".concat(l,"-collapsed"),!!A),(0,o.default)(e,"".concat(l,"-has-trigger"),z&&null!==a&&!y),(0,o.default)(e,"".concat(l,"-below"),!!U),(0,o.default)(e,"".concat(l,"-zero-width"),0===parseFloat(h)),e),n);return v.createElement("aside",(0,i.default)({className:b},m,{style:Z,ref:t}),v.createElement("div",{className:"".concat(l,"-children")},x),z||U&&y?C:null)}())}));t.ZP=x},62704:function(e,t,r){var n=r(75263).default,a=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.LayoutContext=t.Header=t.Footer=t.Content=void 0;var o=a(r(861)),i=a(r(38416)),l=a(r(27424)),c=a(r(10434)),s=a(r(94184)),u=n(r(67294)),f=r(31929),d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a0),(0,i.default)(r,"".concat(h,"-rtl"),"rtl"===n),r),y),E=u.useMemo((function(){return{siderHook:{addSider:function(e){g((function(t){return[].concat((0,o.default)(t),[e])}))},removeSider:function(e){g((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return u.createElement(v.Provider,{value:E},u.createElement(x,(0,c.default)({ref:t,className:b},Z),w))})),h=m({suffixCls:"layout",tagName:"section",displayName:"Layout"})(g),y=m({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(p);t.Header=y;var w=m({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(p);t.Footer=w;var C=m({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(p);t.Content=C;var x=h;t.default=x},82670:function(e,t,r){function n(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}r.d(t,{Z:function(){return n}})}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin-b77b5e3dc8f81eef.js b/static/web/_next/static/chunks/pages/admin-7f9372397fae0f4a.js similarity index 98% rename from static/web/_next/static/chunks/pages/admin-b77b5e3dc8f81eef.js rename to static/web/_next/static/chunks/pages/admin-7f9372397fae0f4a.js index 47671e27f..e37857ee9 100644 --- a/static/web/_next/static/chunks/pages/admin-b77b5e3dc8f81eef.js +++ b/static/web/_next/static/chunks/pages/admin-7f9372397fae0f4a.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6964],{64830:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin",function(){return t(47073)}])},38856:function(e,n,t){"use strict";t.d(n,{o:function(){return h}});var s=t(85893),r=(t(67294),t(84485)),i=t(20550),a=t(10355),o=t(53731),l=t(58091),c=r.Z.Title;function d(e,n){var t="black";return"warning"===n.level?t="orange":"error"===n.level&&(t="red"),(0,s.jsx)(i.Z,{color:t,children:e})}function u(e){return(0,s.jsx)(o.Z,{children:e})}var h=function(e){var n=e.logs,t=e.pageSize;if(!(null===n||void 0===n?void 0:n.length))return null;var r=[{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,s.jsxs)("div",{className:"logs-section",children:[(0,s.jsx)(c,{children:"Logs"}),(0,s.jsx)(a.Z,{size:"middle",dataSource:n,columns:r,rowKey:function(e){return e.time},pagination:{pageSize:t||20}})]})}},71630:function(e,n,t){"use strict";t.d(n,{j:function(){return v}});var s=t(85893),r=t(8751),i=t(11475),a=t(25968),o=t(6226),l=t(74763),c=t(84485),d=t(14670),u=t(71577),h=t(41664),m=t.n(h),x=t(67294),f=t(35159),v=function(e){var n=e.showTroubleshootButton,t=(0,x.useContext)(f.aC).health;if(!t)return null;var h=t.healthy,v=t.healthPercentage,j=t.message,p=t.representation,g="#3f8600",w="info";return v<80?(g="#cf000f",w="error"):v<30&&(g="#f0ad4e",w="error"),(0,s.jsxs)("div",{children:[(0,s.jsxs)(a.Z,{gutter:8,children:[(0,s.jsx)(o.Z,{span:12,children:(0,s.jsx)(l.Z,{title:"Healthy Stream",value:h?"Yes":"No",valueStyle:{color:g},prefix:h?(0,s.jsx)(r.Z,{}):(0,s.jsx)(i.Z,{})})}),(0,s.jsx)(o.Z,{span:12,children:(0,s.jsx)(l.Z,{title:"Playback Health",value:v,valueStyle:{color:g},suffix:"%"})})]}),(0,s.jsx)(a.Z,{style:{display:p<100&&0!==p?"grid":"none"},children:(0,s.jsxs)(c.Z.Text,{type:"secondary",style:{textAlign:"center",fontSize:"0.7em",opacity:"0.3"},children:["Stream health represents ",p,"% of all known players. Other player status is unknown."]})}),(0,s.jsx)(a.Z,{gutter:16,style:{width:"100%",display:j?"grid":"none",marginTop:"10px"},children:(0,s.jsx)(o.Z,{span:24,children:(0,s.jsx)(d.Z,{message:j,type:w,showIcon:!0,action:n&&(0,s.jsx)(m(),{passHref:!0,href:"/stream-health",children:(0,s.jsx)(u.Z,{size:"small",type:"text",style:{color:"black"},children:"TROUBLESHOOT"})})})})})]})};v.defaultProps={showTroubleshootButton:!0}},47073:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return V}});var s=t(47568),r=t(70655),i=t(85893),a=t(67294),o=t(26303),l=t(74763),c=t(59652),d=t(25968),u=t(6226),h=t(24019),m=t(87547),x=t(19642),f=t(45938),v=t(35159),j=t(38856),p=t(66567),g=t(63179),w=t(78346),Z=t(27482),y=t(84485),b=t(41664),k=t.n(b),N=t(60113),S=t(26042),_=t(69396),C=t(54907),T=t(58091),O=t(58827),E=C.Z.Panel,D=y.Z.Title,P=y.Z.Link,U=function(e){var n=e.title,t=e.url,s=e.content_html,r=e.date_published,a=new Date(r),o=(0,T.Z)(a,"MMM dd, yyyy, HH:mm");return(0,i.jsx)("article",{children:(0,i.jsx)(C.Z,{children:(0,i.jsxs)(E,{header:n,children:[(0,i.jsxs)("p",{className:"timestamp",children:[o," (",(0,i.jsx)(P,{href:"".concat("https://owncast.online").concat(t),target:"_blank",rel:"noopener noreferrer",children:"Link"}),")"]}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:s}})]},t)})})},I=function(){var e=(0,a.useState)([]),n=e[0],t=e[1],l=(0,a.useState)(!0),c=l[0],d=l[1],u=function(){var e=(0,s.Z)((function(){var e,n;return(0,r.__generator)(this,(function(s){switch(s.label){case 0:d(!1),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,O.kg)("https://owncast.online/news/index.json")];case 2:return(null===(e=s.sent())||void 0===e?void 0:e.items.length)>0&&t(e.items),[3,4];case 3:return n=s.sent(),console.log("==== error",n),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){u()}),[]);var h=c?(0,i.jsx)(o.Z,{loading:!0,active:!0}):null,m=c||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)(D,{level:2,children:"News & Updates from Owncast"}),h,n.map((function(e){return(0,a.createElement)(U,(0,_.Z)((0,S.Z)({},e),{key:e.url}))})),m]})},z=y.Z.Paragraph,B=y.Z.Text,L=y.Z.Title,F=c.Z.Meta;var H=function(e){var n,s,r,o,l=e.logs,h=void 0===l?[]:l,m=e.config,x=((0,a.useContext)(v.aC)||{}).serverConfig,f=x.streamKey,y=x.rtmpServerPort,b=(null===(n=t.g.window)||void 0===n?void 0:n.location.hostname)||"";b&&y&&(o=function(e,n){return"rtmp://".concat(e.replace(/(^\w+:|^)\/\//,""),":").concat(n,"/live")}(b,y));var S=[{icon:(0,i.jsx)(p.Z,{twoToneColor:"#6f42c1"}),title:"Use your broadcasting software",content:(0,i.jsxs)("div",{children:[(0,i.jsx)("a",{href:"https://owncast.online/docs/broadcasting/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn how to point your existing software to your new server and start streaming your content."}),(0,i.jsxs)("div",{className:"stream-info-container",children:[(0,i.jsx)(B,{strong:!0,className:"stream-info-label",children:"Streaming URL:"}),o&&(0,i.jsx)(z,{className:"stream-info-box",copyable:!0,children:o}),(0,i.jsx)(B,{strong:!0,className:"stream-info-label",children:"Stream Key:"}),(0,i.jsx)(z,{className:"stream-info-box",copyable:{text:f},children:"*********************"})]})]})},{icon:(0,i.jsx)(g.Z,{twoToneColor:"#f9826c"}),title:"Embed your video onto other sites",content:(0,i.jsx)("div",{children:(0,i.jsx)("a",{href:"https://owncast.online/docs/embed?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn how you can add your Owncast stream to other sites you control."})})}];return(null===m||void 0===m?void 0:m.chatDisabled)||S.push({icon:(0,i.jsx)(w.Z,{twoToneColor:"#0366d6"}),title:"Chat is disabled",content:(0,i.jsx)("span",{children:"Chat will continue to be disabled until you begin a live stream."})}),(null===m||void 0===m||null===(s=m.yp)||void 0===s?void 0:s.enabled)||S.push({icon:(0,i.jsx)(Z.Z,{twoToneColor:"#D18BFE"}),title:"Find an audience on the Owncast Directory",content:(0,i.jsxs)("div",{children:["List yourself in the Owncast Directory and show off your stream. Enable it in"," ",(0,i.jsx)(k(),{href:"/config-public-details",children:"settings."})]})}),(null===m||void 0===m||null===(r=m.federation)||void 0===r?void 0:r.enabled)||S.push({icon:(0,i.jsx)("img",{alt:"fediverse",width:"20px",src:"fediverse-white.png"}),title:"Add your Owncast instance to the Fediverse",content:(0,i.jsxs)("div",{children:[(0,i.jsx)(k(),{href:"/config-federation",children:"Enable Owncast social"})," features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream."]})}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{children:(0,i.jsx)(u.Z,{span:12,offset:6,children:(0,i.jsxs)("div",{className:"offline-intro",children:[(0,i.jsx)("span",{className:"logo",children:(0,i.jsx)(N.C,{variant:"simple"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(L,{level:2,children:"No stream is active"}),(0,i.jsx)("p",{children:"You should start one."})]})]})})}),(0,i.jsxs)(d.Z,{gutter:[16,16],className:"offline-content",children:[(0,i.jsx)(u.Z,{span:12,xs:24,sm:24,md:24,lg:12,className:"list-section",children:S.map((function(e){return(0,i.jsx)(c.Z,{size:"small",bordered:!1,children:(0,i.jsx)(F,{avatar:e.icon,title:e.title,description:e.content})},e.title)}))}),(0,i.jsx)(u.Z,{span:12,xs:24,sm:24,md:24,lg:12,children:(0,i.jsx)(I,{})})]}),(0,i.jsx)(j.o,{logs:h,pageSize:5})]})},M=t(71630),A=t(2766);function Q(e){return(0,i.jsxs)("ul",{className:"statistics-list",children:[(0,i.jsxs)("li",{children:[e.videoCodec||"Unknown"," @ ",e.videoBitrate||"Unknown"," kbps"]}),(0,i.jsxs)("li",{children:[e.framerate||"Unknown"," fps"]}),(0,i.jsxs)("li",{children:[e.width," x ",e.height]})]})}function V(){var e,n,t=(0,a.useContext)(v.aC),p=t||{},g=p.broadcaster,w=p.serverConfig,Z=g||{},y=Z.remoteAddr,b=Z.streamDetails,k=(null===b||void 0===b?void 0:b.encoder)||"Unknown encoder",N=(0,a.useState)([]),S=N[0],_=N[1],C=function(){var e=(0,s.Z)((function(){var e,n;return(0,r.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,O.rQ)(O.WQ)];case 1:return e=t.sent(),_(e),[3,3];case 2:return n=t.sent(),console.log("==== error",n),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),T=function(){C()};if((0,a.useEffect)((function(){T();var e;return e=setInterval(T,O.NE),function(){clearInterval(e)}}),[]),(0,A.Qr)(w)||(0,A.Qr)(t))return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Z,{active:!0}),(0,i.jsx)(o.Z,{active:!0}),(0,i.jsx)(o.Z,{active:!0})]});if(!g)return(0,i.jsx)(H,{logs:S,config:w});var E=null===t||void 0===t||null===(e=t.currentBroadcast)||void 0===e||null===(n=e.outputSettings)||void 0===n?void 0:n.map((function(e){var n=e.audioPassthrough,t=e.videoPassthrough,s=e.audioBitrate,r=e.videoBitrate,a=e.framerate,o=n?"".concat(b.audioCodec||"Unknown",", ").concat(b.audioBitrate," kbps"):"".concat(s||"Unknown"," kbps"),c=t?"".concat(b.videoBitrate||"Unknown"," kbps, ").concat(b.framerate," fps ").concat(b.width," x ").concat(b.height):"".concat(r||"Unknown"," kbps, ").concat(a," fps");return(0,i.jsxs)("div",{className:"stream-details-item-container",children:[(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Outbound Video Stream",value:c}),(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Outbound Audio Stream",value:o})]})})),D=t.viewerCount,P=t.sessionPeakViewerCount,U="".concat(b.audioCodec,", ").concat(b.audioBitrate||"Unknown"," kbps"),z=new Date(g.time);return(0,i.jsxs)("div",{className:"home-container",children:[(0,i.jsxs)("div",{className:"sections-container",children:[(0,i.jsx)("div",{className:"online-status-section",children:(0,i.jsxs)(c.Z,{size:"small",type:"inner",className:"online-details-card",children:[(0,i.jsxs)(d.Z,{gutter:[16,16],align:"middle",children:[(0,i.jsx)(u.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(l.Z,{title:"Stream started ".concat((0,x.Z)(z,Date.now())),value:(0,f.Z)(z),prefix:(0,i.jsx)(h.Z,{})})}),(0,i.jsx)(u.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(l.Z,{title:"Viewers",value:D,prefix:(0,i.jsx)(m.Z,{})})}),(0,i.jsx)(u.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(l.Z,{title:"Peak viewer count",value:P,prefix:(0,i.jsx)(m.Z,{})})})]}),(0,i.jsx)(M.j,{})]})}),(0,i.jsxs)(d.Z,{gutter:[16,16],className:"section stream-details-section",children:[(0,i.jsxs)(u.Z,{className:"stream-details",span:12,sm:24,md:24,lg:12,children:[(0,i.jsx)(c.Z,{size:"small",title:"Outbound Stream Details",type:"inner",className:"outbound-details",children:E}),(0,i.jsxs)(c.Z,{size:"small",title:"Inbound Stream Details",type:"inner",children:[(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Input",value:"".concat(k," ").concat((0,A.t5)(y))}),(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Inbound Video Stream",value:b,formatter:Q}),(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Inbound Audio Stream",value:U})]})]}),(0,i.jsx)(u.Z,{span:12,xs:24,sm:24,md:24,lg:12,children:(0,i.jsx)(I,{})})]})]}),(0,i.jsx)("br",{}),(0,i.jsx)(j.o,{logs:S,pageSize:5})]})}}},function(e){e.O(0,[7330,7266,355,8091,2944,6265,5938,428,2429,8676,9774,2888,179],(function(){return n=64830,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([[6964],{64830:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin",function(){return t(47073)}])},38856:function(e,n,t){"use strict";t.d(n,{o:function(){return h}});var s=t(85893),r=(t(67294),t(84485)),i=t(20550),a=t(10355),o=t(53731),l=t(58091),c=r.Z.Title;function d(e,n){var t="black";return"warning"===n.level?t="orange":"error"===n.level&&(t="red"),(0,s.jsx)(i.Z,{color:t,children:e})}function u(e){return(0,s.jsx)(o.Z,{children:e})}var h=function(e){var n=e.logs,t=e.pageSize;if(!(null===n||void 0===n?void 0:n.length))return null;var r=[{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,s.jsxs)("div",{className:"logs-section",children:[(0,s.jsx)(c,{children:"Logs"}),(0,s.jsx)(a.Z,{size:"middle",dataSource:n,columns:r,rowKey:function(e){return e.time},pagination:{pageSize:t||20}})]})}},71630:function(e,n,t){"use strict";t.d(n,{j:function(){return v}});var s=t(85893),r=t(8751),i=t(11475),a=t(25968),o=t(6226),l=t(74763),c=t(84485),d=t(14670),u=t(71577),h=t(41664),m=t.n(h),x=t(67294),f=t(35159),v=function(e){var n=e.showTroubleshootButton,t=(0,x.useContext)(f.aC).health;if(!t)return null;var h=t.healthy,v=t.healthPercentage,j=t.message,p=t.representation,g="#3f8600",w="info";return v<80?(g="#cf000f",w="error"):v<30&&(g="#f0ad4e",w="error"),(0,s.jsxs)("div",{children:[(0,s.jsxs)(a.Z,{gutter:8,children:[(0,s.jsx)(o.Z,{span:12,children:(0,s.jsx)(l.Z,{title:"Healthy Stream",value:h?"Yes":"No",valueStyle:{color:g},prefix:h?(0,s.jsx)(r.Z,{}):(0,s.jsx)(i.Z,{})})}),(0,s.jsx)(o.Z,{span:12,children:(0,s.jsx)(l.Z,{title:"Playback Health",value:v,valueStyle:{color:g},suffix:"%"})})]}),(0,s.jsx)(a.Z,{style:{display:p<100&&0!==p?"grid":"none"},children:(0,s.jsxs)(c.Z.Text,{type:"secondary",style:{textAlign:"center",fontSize:"0.7em",opacity:"0.3"},children:["Stream health represents ",p,"% of all known players. Other player status is unknown."]})}),(0,s.jsx)(a.Z,{gutter:16,style:{width:"100%",display:j?"grid":"none",marginTop:"10px"},children:(0,s.jsx)(o.Z,{span:24,children:(0,s.jsx)(d.Z,{message:j,type:w,showIcon:!0,action:n&&(0,s.jsx)(m(),{passHref:!0,href:"/stream-health",children:(0,s.jsx)(u.Z,{size:"small",type:"text",style:{color:"black"},children:"TROUBLESHOOT"})})})})})]})};v.defaultProps={showTroubleshootButton:!0}},47073:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return V}});var s=t(47568),r=t(70655),i=t(85893),a=t(67294),o=t(26303),l=t(74763),c=t(59652),d=t(25968),u=t(6226),h=t(24019),m=t(87547),x=t(19642),f=t(45938),v=t(35159),j=t(38856),p=t(66567),g=t(63179),w=t(78346),Z=t(27482),y=t(84485),b=t(41664),k=t.n(b),N=t(60113),S=t(26042),_=t(69396),C=t(54907),T=t(58091),O=t(58827),E=C.Z.Panel,D=y.Z.Title,P=y.Z.Link,U=function(e){var n=e.title,t=e.url,s=e.content_html,r=e.date_published,a=new Date(r),o=(0,T.Z)(a,"MMM dd, yyyy, HH:mm");return(0,i.jsx)("article",{children:(0,i.jsx)(C.Z,{children:(0,i.jsxs)(E,{header:n,children:[(0,i.jsxs)("p",{className:"timestamp",children:[o," (",(0,i.jsx)(P,{href:"".concat("https://owncast.online").concat(t),target:"_blank",rel:"noopener noreferrer",children:"Link"}),")"]}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:s}})]},t)})})},I=function(){var e=(0,a.useState)([]),n=e[0],t=e[1],l=(0,a.useState)(!0),c=l[0],d=l[1],u=function(){var e=(0,s.Z)((function(){var e,n;return(0,r.__generator)(this,(function(s){switch(s.label){case 0:d(!1),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,O.kg)("https://owncast.online/news/index.json")];case 2:return(null===(e=s.sent())||void 0===e?void 0:e.items.length)>0&&t(e.items),[3,4];case 3:return n=s.sent(),console.log("==== error",n),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){u()}),[]);var h=c?(0,i.jsx)(o.Z,{loading:!0,active:!0}):null,m=c||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)(D,{level:2,children:"News & Updates from Owncast"}),h,n.map((function(e){return(0,a.createElement)(U,(0,_.Z)((0,S.Z)({},e),{key:e.url}))})),m]})},z=y.Z.Paragraph,B=y.Z.Text,L=y.Z.Title,F=c.Z.Meta;var H=function(e){var n,s,r,o,l=e.logs,h=void 0===l?[]:l,m=e.config,x=((0,a.useContext)(v.aC)||{}).serverConfig,f=x.streamKey,y=x.rtmpServerPort,b=(null===(n=t.g.window)||void 0===n?void 0:n.location.hostname)||"";b&&y&&(o=function(e,n){return"rtmp://".concat(e.replace(/(^\w+:|^)\/\//,""),":").concat(n,"/live")}(b,y));var S=[{icon:(0,i.jsx)(p.Z,{twoToneColor:"#6f42c1"}),title:"Use your broadcasting software",content:(0,i.jsxs)("div",{children:[(0,i.jsx)("a",{href:"https://owncast.online/docs/broadcasting/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn how to point your existing software to your new server and start streaming your content."}),(0,i.jsxs)("div",{className:"stream-info-container",children:[(0,i.jsx)(B,{strong:!0,className:"stream-info-label",children:"Streaming URL:"}),o&&(0,i.jsx)(z,{className:"stream-info-box",copyable:!0,children:o}),(0,i.jsx)(B,{strong:!0,className:"stream-info-label",children:"Stream Key:"}),(0,i.jsx)(z,{className:"stream-info-box",copyable:{text:f},children:"*********************"})]})]})},{icon:(0,i.jsx)(g.Z,{twoToneColor:"#f9826c"}),title:"Embed your video onto other sites",content:(0,i.jsx)("div",{children:(0,i.jsx)("a",{href:"https://owncast.online/docs/embed?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn how you can add your Owncast stream to other sites you control."})})}];return(null===m||void 0===m?void 0:m.chatDisabled)||S.push({icon:(0,i.jsx)(w.Z,{twoToneColor:"#0366d6"}),title:"Chat is disabled",content:(0,i.jsx)("span",{children:"Chat will continue to be disabled until you begin a live stream."})}),(null===m||void 0===m||null===(s=m.yp)||void 0===s?void 0:s.enabled)||S.push({icon:(0,i.jsx)(Z.Z,{twoToneColor:"#D18BFE"}),title:"Find an audience on the Owncast Directory",content:(0,i.jsxs)("div",{children:["List yourself in the Owncast Directory and show off your stream. Enable it in"," ",(0,i.jsx)(k(),{href:"/config-public-details",children:"settings."})]})}),(null===m||void 0===m||null===(r=m.federation)||void 0===r?void 0:r.enabled)||S.push({icon:(0,i.jsx)("img",{alt:"fediverse",width:"20px",src:"fediverse-white.png"}),title:"Add your Owncast instance to the Fediverse",content:(0,i.jsxs)("div",{children:[(0,i.jsx)(k(),{href:"/config-federation",children:"Enable Owncast social"})," features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream."]})}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{children:(0,i.jsx)(u.Z,{span:12,offset:6,children:(0,i.jsxs)("div",{className:"offline-intro",children:[(0,i.jsx)("span",{className:"logo",children:(0,i.jsx)(N.C,{variant:"simple"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(L,{level:2,children:"No stream is active"}),(0,i.jsx)("p",{children:"You should start one."})]})]})})}),(0,i.jsxs)(d.Z,{gutter:[16,16],className:"offline-content",children:[(0,i.jsx)(u.Z,{span:12,xs:24,sm:24,md:24,lg:12,className:"list-section",children:S.map((function(e){return(0,i.jsx)(c.Z,{size:"small",bordered:!1,children:(0,i.jsx)(F,{avatar:e.icon,title:e.title,description:e.content})},e.title)}))}),(0,i.jsx)(u.Z,{span:12,xs:24,sm:24,md:24,lg:12,children:(0,i.jsx)(I,{})})]}),(0,i.jsx)(j.o,{logs:h,pageSize:5})]})},M=t(71630),A=t(2766);function Q(e){return(0,i.jsxs)("ul",{className:"statistics-list",children:[(0,i.jsxs)("li",{children:[e.videoCodec||"Unknown"," @ ",e.videoBitrate||"Unknown"," kbps"]}),(0,i.jsxs)("li",{children:[e.framerate||"Unknown"," fps"]}),(0,i.jsxs)("li",{children:[e.width," x ",e.height]})]})}function V(){var e,n,t=(0,a.useContext)(v.aC),p=t||{},g=p.broadcaster,w=p.serverConfig,Z=g||{},y=Z.remoteAddr,b=Z.streamDetails,k=(null===b||void 0===b?void 0:b.encoder)||"Unknown encoder",N=(0,a.useState)([]),S=N[0],_=N[1],C=function(){var e=(0,s.Z)((function(){var e,n;return(0,r.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,O.rQ)(O.WQ)];case 1:return e=t.sent(),_(e),[3,3];case 2:return n=t.sent(),console.log("==== error",n),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),T=function(){C()};if((0,a.useEffect)((function(){T();var e;return e=setInterval(T,O.NE),function(){clearInterval(e)}}),[]),(0,A.Qr)(w)||(0,A.Qr)(t))return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Z,{active:!0}),(0,i.jsx)(o.Z,{active:!0}),(0,i.jsx)(o.Z,{active:!0})]});if(!g)return(0,i.jsx)(H,{logs:S,config:w});var E=null===t||void 0===t||null===(e=t.currentBroadcast)||void 0===e||null===(n=e.outputSettings)||void 0===n?void 0:n.map((function(e){var n=e.audioPassthrough,t=e.videoPassthrough,s=e.audioBitrate,r=e.videoBitrate,a=e.framerate,o=n?"".concat(b.audioCodec||"Unknown",", ").concat(b.audioBitrate," kbps"):"".concat(s||"Unknown"," kbps"),c=t?"".concat(b.videoBitrate||"Unknown"," kbps, ").concat(b.framerate," fps ").concat(b.width," x ").concat(b.height):"".concat(r||"Unknown"," kbps, ").concat(a," fps");return(0,i.jsxs)("div",{className:"stream-details-item-container",children:[(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Outbound Video Stream",value:c}),(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Outbound Audio Stream",value:o})]})})),D=t.viewerCount,P=t.sessionPeakViewerCount,U="".concat(b.audioCodec,", ").concat(b.audioBitrate||"Unknown"," kbps"),z=new Date(g.time);return(0,i.jsxs)("div",{className:"home-container",children:[(0,i.jsxs)("div",{className:"sections-container",children:[(0,i.jsx)("div",{className:"online-status-section",children:(0,i.jsxs)(c.Z,{size:"small",type:"inner",className:"online-details-card",children:[(0,i.jsxs)(d.Z,{gutter:[16,16],align:"middle",children:[(0,i.jsx)(u.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(l.Z,{title:"Stream started ".concat((0,x.Z)(z,Date.now())),value:(0,f.Z)(z),prefix:(0,i.jsx)(h.Z,{})})}),(0,i.jsx)(u.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(l.Z,{title:"Viewers",value:D,prefix:(0,i.jsx)(m.Z,{})})}),(0,i.jsx)(u.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(l.Z,{title:"Peak viewer count",value:P,prefix:(0,i.jsx)(m.Z,{})})})]}),(0,i.jsx)(M.j,{})]})}),(0,i.jsxs)(d.Z,{gutter:[16,16],className:"section stream-details-section",children:[(0,i.jsxs)(u.Z,{className:"stream-details",span:12,sm:24,md:24,lg:12,children:[(0,i.jsx)(c.Z,{size:"small",title:"Outbound Stream Details",type:"inner",className:"outbound-details",children:E}),(0,i.jsxs)(c.Z,{size:"small",title:"Inbound Stream Details",type:"inner",children:[(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Input",value:"".concat(k," ").concat((0,A.t5)(y))}),(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Inbound Video Stream",value:b,formatter:Q}),(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Inbound Audio Stream",value:U})]})]}),(0,i.jsx)(u.Z,{span:12,xs:24,sm:24,md:24,lg:12,children:(0,i.jsx)(I,{})})]})]}),(0,i.jsx)("br",{}),(0,i.jsx)(j.o,{logs:S,pageSize:5})]})}}},function(e){e.O(0,[7330,3927,384,355,8091,2944,6265,5938,428,2429,8676,9774,2888,179],(function(){return n=64830,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/access-tokens-0ab9b0c44a0a00a7.js b/static/web/_next/static/chunks/pages/admin/access-tokens-0f003278e5d82f26.js similarity index 99% rename from static/web/_next/static/chunks/pages/admin/access-tokens-0ab9b0c44a0a00a7.js rename to static/web/_next/static/chunks/pages/admin/access-tokens-0f003278e5d82f26.js index 4c86aadd4..fab77a013 100644 --- a/static/web/_next/static/chunks/pages/admin/access-tokens-0ab9b0c44a0a00a7.js +++ b/static/web/_next/static/chunks/pages/admin/access-tokens-0f003278e5d82f26.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9882],{48689:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1413),c=n(67294),o={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),s=function(e,t){return c.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="DeleteOutlined";var i=c.forwardRef(s)},6226:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(4942),c=n(87462),o=n(71002),a=n(94184),s=n.n(a),i=n(67294),l=n(53124),u=n(99134),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 c=0;for(r=Object.getOwnPropertySymbols(e);c0){var I=m[0]/2;A.paddingLeft=I,A.paddingRight=I}if(m&&m[1]>0&&!b){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)),i.createElement("div",(0,c.Z)({},N,{style:(0,c.Z)((0,c.Z)({},A),S),className:T,ref:t}),O)}))},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 m}});var r=n(87462),c=n(4942),o=n(71002),a=n(97685),s=n(94184),i=n.n(s),l=n(67294),u=n(53124),f=n(98082),d=n(24308),p=n(93355),h=n(99134),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=null!=I[1]&&I[1]>0?I[1]/-2:void 0;if(G&&(M.marginLeft=G,M.marginRight=G),P){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=l.useMemo((function(){return{gutter:[B,F],wrap:j,supportFlexGap:P}}),[B,F,j,P]);return l.createElement(h.Z.Provider,{value:U},l.createElement("div",(0,r.Z)({},w,{className:R,style:(0,r.Z)((0,r.Z)({},M),b),ref:t}),Z))}))},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(97937),s=n(94184),i=n.n(s),l=n(98423),u=n(67294),f=n(53124),d=n(98787),p=n(68349),h=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&&!b){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)),i.createElement("div",(0,c.Z)({},N,{style:(0,c.Z)((0,c.Z)({},A),S),className:T,ref:t}),O)}))},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 m}});var r=n(87462),c=n(4942),o=n(71002),a=n(97685),s=n(94184),i=n.n(s),l=n(67294),u=n(53124),f=n(98082),d=n(24308),p=n(93355),h=n(99134),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=null!=I[1]&&I[1]>0?I[1]/-2:void 0;if(G&&(M.marginLeft=G,M.marginRight=G),P){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=l.useMemo((function(){return{gutter:[B,F],wrap:j,supportFlexGap:P}}),[B,F,j,P]);return l.createElement(h.Z.Provider,{value:U},l.createElement("div",(0,r.Z)({},w,{className:R,style:(0,r.Z)((0,r.Z)({},M),b),ref:t}),Z))}))},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(97937),s=n(94184),i=n.n(s),l=n(98423),u=n(67294),f=n(53124),d=n(98787),p=n(68349),h=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)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?(0,c.jsx)(m.Z,{style:{color:"var(--ant-success)"}}):(0,c.jsx)(f.Z,{style:{color:"var(--ant-warning)"}}));var _="Click to ".concat(t?"hide":"show"," this message");return(0,c.jsxs)("div",{className:"toggle-switch ".concat(t?"":"hidden"),children:[(0,c.jsx)("span",{className:"outcome-icon",children:j}),(0,c.jsx)(y.Z,{title:_,placement:"topRight",children:(0,c.jsx)(d.Z,{shape:"circle",size:"small",type:"text",icon:t?(0,c.jsx)(Z.Z,{}):(0,c.jsx)(b.Z,{}),onClick:N})})]})},j=n(11085),_=l.Z.Title;var T=3e3;function C(){var e=(0,o.useState)([]),t=e[0],n=e[1],l=(0,o.useState)([]),p=l[0],y=l[1],Z=(0,o.useState)(!1),b=Z[0],C=Z[1],S=(0,o.useState)(null),k=S[0],E=S[1],I=(0,o.useState)(""),M=I[0],O=I[1],P=null,z=null,A=function(){var e=(0,s.Z)((function(){var e,t,s;return(0,u.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t={},[4,(0,x.rQ)(x.WE,(t.auth=!0,t))];case 1:return e=r.sent(),(0,w.Qr)(e)?n([]):n(e),[3,3];case 2:return s=r.sent(),console.log("==== error",s),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,o.useEffect)((function(){return A(),z=setInterval((function(){A()}),x.NE),function(){clearTimeout(P),clearTimeout(z)}}),[]);var Q=function(e){return e.reduce((function(e,t){var n=t.user.id;return e.some((function(e){return e.text===n}))||e.push({text:n,value:n}),e}),[]).sort((function(e,t){var n=e.text.toUpperCase(),s=t.text.toUpperCase();return ns?1:0}))}(t),U={selectedRowKeys:p,onChange:function(e){y(e)}},D=function(e){var s=t.findIndex((function(t){return t.id===e.id}));t.splice(s,1,e),n((0,a.Z)(t))},H=function(){P=setTimeout((function(){E(null),O("")}),T)},V=function(){var e=(0,s.Z)((function(e){var s,o,l,d,h;return(0,u.__generator)(this,(function(u){switch(u.label){case 0:return C(!0),o={},[4,(0,x.rQ)(x.hn,(o.auth=!0,o.method="POST",o.data={visible:e,idArray:p},o))];case 1:return s=u.sent(),l={},h={},s.success&&"changed"===s.message?(E((0,c.jsx)(m.Z,l)),H(),d=(0,a.Z)(t),p.map((function(n){var s=d.findIndex((function(e){return e.id===n})),a=(0,i.Z)((0,r.Z)({},t[s]),{visible:e});return d.splice(s,1,a),null})),n(d),y([])):(E((0,c.jsx)(f.Z,h)),H()),C(!1),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),F=[{title:"Time",dataIndex:"timestamp",key:"timestamp",className:"timestamp-col",defaultSortOrder:"descend",render:function(e){var t=new Date(e);return(0,v.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:Q,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,c.jsx)(j.Z,{user:e,children:t})},width:110},{title:"Message",dataIndex:"body",key:"body",className:"message-col",width:320,render:function(e){return(0,c.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,c.jsx)(N,{isVisible:!e,message:t,setMessage:D})},width:30}],K=g()({"bulk-editor":!0,active:p.length});return(0,c.jsxs)("div",{className:"chat-messages",children:[(0,c.jsx)(_,{children:"Chat Messages"}),(0,c.jsx)("p",{children:"Manage the messages from viewers that show up on your stream."}),(0,c.jsxs)("div",{className:K,children:[(0,c.jsx)("span",{className:"label",children:"Check multiple messages to change their visibility to: "}),(0,c.jsx)(d.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"show"===M&&b,icon:"show"===M&&k,disabled:!p.length||M&&"show"!==M,onClick:function(){O("show"),V(!0)},children:"Show"}),(0,c.jsx)(d.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"hide"===M&&b,icon:"hide"===M&&k,disabled:!p.length||M&&"hide"!==M,onClick:function(){O("hide"),V(!1)},children:"Hide"})]}),(0,c.jsx)(h.Z,{size:"small",className:"table-container",pagination:{defaultPageSize:100,showSizeChanger:!0},scroll:{y:540},rowClassName:function(e){return e.hiddenAt?"hidden":""},dataSource:t,columns:F,rowKey:function(e){return e.id},rowSelection:U})]})}}},function(e){e.O(0,[3662,7330,7266,355,8091,5938,9189,9640,9774,2888,179],(function(){return t=62433,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([[7095],{62433:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/chat/messages",function(){return n(28599)}])},28599:function(e,t,n){"use strict";n.r(t),n.d(t,{OUTCOME_TIMEOUT:function(){return T},default:function(){return C}});var s=n(47568),r=n(26042),i=n(69396),a=n(29815),u=n(70655),c=n(85893),o=n(67294),l=n(84485),d=n(71577),h=n(10355),m=n(89739),f=n(21640),p=n(94184),g=n.n(p),v=n(58091),x=n(58827),w=n(2766),y=n(94199),Z=n(99611),b=n(90420),N=function(e){var t=e.isVisible,n=e.message,a=e.setMessage;if(!n||(0,w.Qr)(n))return null;var l=null,h=(0,o.useState)(0),p=h[0],g=h[1],v=(n||{}).id;(0,o.useEffect)((function(){return function(){clearTimeout(l)}}));var N=function(){var e=(0,s.Z)((function(){var e,s,c,o,d,h;return(0,u.__generator)(this,(function(u){switch(u.label){case 0:return clearTimeout(l),g(0),s={},[4,(0,x.rQ)(x.hn,(s.auth=!0,s.method="POST",s.data={visible:!t,idArray:[v]},s))];case 1:return e=u.sent(),c={},o={},d={},h={},e.success&&"changed"===e.message?(a((0,i.Z)((0,r.Z)(c,n),(o.visible=!t,o))),g(1)):(a((0,i.Z)((0,r.Z)(d,n),(h.visible=t,h))),g(-1)),l=setTimeout((function(){g(0)}),T),[2]}}))}));return function(){return e.apply(this,arguments)}}(),j=(0,c.jsx)(m.Z,{style:{color:"transparent"}});p&&(j=p>0?(0,c.jsx)(m.Z,{style:{color:"var(--ant-success)"}}):(0,c.jsx)(f.Z,{style:{color:"var(--ant-warning)"}}));var _="Click to ".concat(t?"hide":"show"," this message");return(0,c.jsxs)("div",{className:"toggle-switch ".concat(t?"":"hidden"),children:[(0,c.jsx)("span",{className:"outcome-icon",children:j}),(0,c.jsx)(y.Z,{title:_,placement:"topRight",children:(0,c.jsx)(d.Z,{shape:"circle",size:"small",type:"text",icon:t?(0,c.jsx)(Z.Z,{}):(0,c.jsx)(b.Z,{}),onClick:N})})]})},j=n(11085),_=l.Z.Title;var T=3e3;function C(){var e=(0,o.useState)([]),t=e[0],n=e[1],l=(0,o.useState)([]),p=l[0],y=l[1],Z=(0,o.useState)(!1),b=Z[0],C=Z[1],S=(0,o.useState)(null),k=S[0],E=S[1],I=(0,o.useState)(""),M=I[0],O=I[1],P=null,z=null,A=function(){var e=(0,s.Z)((function(){var e,t,s;return(0,u.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t={},[4,(0,x.rQ)(x.WE,(t.auth=!0,t))];case 1:return e=r.sent(),(0,w.Qr)(e)?n([]):n(e),[3,3];case 2:return s=r.sent(),console.log("==== error",s),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,o.useEffect)((function(){return A(),z=setInterval((function(){A()}),x.NE),function(){clearTimeout(P),clearTimeout(z)}}),[]);var Q=function(e){return e.reduce((function(e,t){var n=t.user.id;return e.some((function(e){return e.text===n}))||e.push({text:n,value:n}),e}),[]).sort((function(e,t){var n=e.text.toUpperCase(),s=t.text.toUpperCase();return ns?1:0}))}(t),U={selectedRowKeys:p,onChange:function(e){y(e)}},D=function(e){var s=t.findIndex((function(t){return t.id===e.id}));t.splice(s,1,e),n((0,a.Z)(t))},H=function(){P=setTimeout((function(){E(null),O("")}),T)},V=function(){var e=(0,s.Z)((function(e){var s,o,l,d,h;return(0,u.__generator)(this,(function(u){switch(u.label){case 0:return C(!0),o={},[4,(0,x.rQ)(x.hn,(o.auth=!0,o.method="POST",o.data={visible:e,idArray:p},o))];case 1:return s=u.sent(),l={},h={},s.success&&"changed"===s.message?(E((0,c.jsx)(m.Z,l)),H(),d=(0,a.Z)(t),p.map((function(n){var s=d.findIndex((function(e){return e.id===n})),a=(0,i.Z)((0,r.Z)({},t[s]),{visible:e});return d.splice(s,1,a),null})),n(d),y([])):(E((0,c.jsx)(f.Z,h)),H()),C(!1),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),F=[{title:"Time",dataIndex:"timestamp",key:"timestamp",className:"timestamp-col",defaultSortOrder:"descend",render:function(e){var t=new Date(e);return(0,v.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:Q,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,c.jsx)(j.Z,{user:e,children:t})},width:110},{title:"Message",dataIndex:"body",key:"body",className:"message-col",width:320,render:function(e){return(0,c.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,c.jsx)(N,{isVisible:!e,message:t,setMessage:D})},width:30}],K=g()({"bulk-editor":!0,active:p.length});return(0,c.jsxs)("div",{className:"chat-messages",children:[(0,c.jsx)(_,{children:"Chat Messages"}),(0,c.jsx)("p",{children:"Manage the messages from viewers that show up on your stream."}),(0,c.jsxs)("div",{className:K,children:[(0,c.jsx)("span",{className:"label",children:"Check multiple messages to change their visibility to: "}),(0,c.jsx)(d.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"show"===M&&b,icon:"show"===M&&k,disabled:!p.length||M&&"show"!==M,onClick:function(){O("show"),V(!0)},children:"Show"}),(0,c.jsx)(d.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"hide"===M&&b,icon:"hide"===M&&k,disabled:!p.length||M&&"hide"!==M,onClick:function(){O("hide"),V(!1)},children:"Hide"})]}),(0,c.jsx)(h.Z,{size:"small",className:"table-container",pagination:{defaultPageSize:100,showSizeChanger:!0},scroll:{y:540},rowClassName:function(e){return e.hiddenAt?"hidden":""},dataSource:t,columns:F,rowKey:function(e){return e.id},rowSelection:U})]})}}},function(e){e.O(0,[3662,7330,3927,384,355,8091,5938,9189,9640,9774,2888,179],(function(){return t=62433,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/chat/users-57229fa608c9d9d5.js b/static/web/_next/static/chunks/pages/admin/chat/users-f8e72b9282adc067.js similarity index 96% rename from static/web/_next/static/chunks/pages/admin/chat/users-57229fa608c9d9d5.js rename to static/web/_next/static/chunks/pages/admin/chat/users-f8e72b9282adc067.js index 069c41e00..fd42ddda6 100644 --- a/static/web/_next/static/chunks/pages/admin/chat/users-57229fa608c9d9d5.js +++ b/static/web/_next/static/chunks/pages/admin/chat/users-f8e72b9282adc067.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9522],{55583:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/chat/users",function(){return t(66540)}])},66540:function(e,n,t){"use strict";t.r(n),t.d(n,{FETCH_INTERVAL:function(){return k},default:function(){return C}});var r=t(47568),s=t(70655),a=t(85893),c=t(67294),o=t(2944),i=t(35159),u=t(58827),d=t(41542),l=t(69677),f=t(10355),h=t(68795),p=t(45938),m=t(11085),g=t(77891),x=t(2766),y=function(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)(m.Z,{user:n,connectionInfo:t,children:(0,a.jsx)("span",{className:"display-name",children:n.displayName})})},sorter:function(e,n){return n.user.displayName.localeCompare(e.user.displayName)},filterIcon:(0,a.jsx)(h.Z,{}),filterDropdown:function(e){var n=e.setSelectedKeys,t=e.selectedKeys,r=e.confirm;return(0,a.jsx)("div",{style:{padding:8},children:(0,a.jsx)(l.Z,{placeholder:"Search display names...",value:t[0],onChange:function(e){n(e.target.value?[e.target.value]:[]),r({closeDropdown:!1})}})})},onFilter:function(e,n){return n.user.displayName.includes(e)},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,p.Z)(new Date(e))},sorter:function(e,n){return new Date(n.connectedAt).getTime()-new Date(e.connectedAt).getTime()},sortDirections:["descend","ascend"]},{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,x.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)(g.e,{user:n.user,isEnabled:!n.user.disabledAt})}}];return(0,a.jsx)(f.Z,{className:"table-container",pagination:{hideOnSinglePage:!0},columns:t,dataSource:n,size:"small",rowKey:"id"})},j=t(71577),v=t(58091),A=t(84674);function w(){return(w=(0,r.Z)((function(e){var n,t;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),n={},[4,(0,u.rQ)(u.RB,(n.data={value:e},n.method="POST",n.auth=!0,n))];case 1:return r.sent(),[3,3];case 2:return t=r.sent(),console.error(t),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}var b=function(e){var n=e.data,t=[{title:"IP Address",dataIndex:"ipAddress",key:"ipAddress"},{title:"Reason",dataIndex:"notes",key:"notes"},{title:"Created",dataIndex:"createdAt",key:"createdAt",render:function(e){return function(e){return(0,v.Z)(new Date(e),"MMM d H:mma")}(e)},sorter:function(e,n){return new Date(e.createdAt).getTime()-new Date(n.createdAt).getTime()},sortDirections:["descend","ascend"]},{title:"",key:"block",className:"actions-col",render:function(e,n){return(0,a.jsx)(j.Z,{title:"Remove IP Address Ban",onClick:function(){return function(e){return w.apply(this,arguments)}(n.ipAddress)},icon:(0,a.jsx)(A.Z,{twoToneColor:"#ff4d4f"}),className:"block-user-button"})}}];return(0,a.jsx)(f.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:t,dataSource:n,size:"large",rowKey:"ipAddress"})},N=o.Z.TabPane,k=1e4;function C(){var e=((0,c.useContext)(i.aC)||{}).online,n=(0,c.useState)([]),t=n[0],l=n[1],f=(0,c.useState)([]),h=f[0],p=f[1],m=(0,c.useState)([]),g=m[0],x=m[1],j=(0,c.useState)([]),v=j[0],A=j[1],w=function(){var e=(0,r.Z)((function(){var e,n,t,r,a,c,o,i;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,(0,u.rQ)(u.qk)];case 1:return e=s.sent(),l(e),[3,3];case 2:return n=s.sent(),console.log("==== error",n),[3,3];case 3:return s.trys.push([3,5,,6]),[4,(0,u.rQ)(u.Kp)];case 4:return t=s.sent(),x(t),[3,6];case 5:return r=s.sent(),console.log("==== error",r),[3,6];case 6:return s.trys.push([6,8,,9]),[4,(0,u.rQ)(u.GC)];case 7:return a=s.sent(),A(a),[3,9];case 8:return c=s.sent(),console.error("error fetching moderators",c),[3,9];case 9:return s.trys.push([9,11,,12]),[4,(0,u.rQ)(u.Bu)];case 10:return o=s.sent(),p(o),[3,12];case 11:return i=s.sent(),console.error("error fetching banned ips",i),[3,12];case 12:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){var e;return w(),e=setInterval(w,k),function(){clearInterval(e)}}),[e]);var C=e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{data:g}),(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)(N,{tab:(0,a.jsxs)("span",{children:["Connected ",e?"(".concat(g.length,")"):"(offline)"]}),children:C},"1"),(0,a.jsx)(N,{tab:(0,a.jsxs)("span",{children:["Banned Users (",t.length,")"]}),children:(0,a.jsx)(d.K,{data:t})},"2"),(0,a.jsx)(N,{tab:(0,a.jsxs)("span",{children:["IP Bans (",h.length,")"]}),children:(0,a.jsx)(b,{data:h})},"3"),(0,a.jsx)(N,{tab:(0,a.jsxs)("span",{children:["Moderators (",v.length,")"]}),children:(0,a.jsx)(d.K,{data:v})},"4")]})}}},function(e){e.O(0,[3662,7330,7266,355,8091,2944,5938,9189,9640,9774,2888,179],(function(){return n=55583,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([[9522],{55583:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/chat/users",function(){return t(66540)}])},66540:function(e,n,t){"use strict";t.r(n),t.d(n,{FETCH_INTERVAL:function(){return k},default:function(){return C}});var r=t(47568),s=t(70655),a=t(85893),c=t(67294),o=t(2944),i=t(35159),u=t(58827),d=t(41542),l=t(69677),f=t(10355),h=t(68795),p=t(45938),m=t(11085),g=t(77891),x=t(2766),y=function(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)(m.Z,{user:n,connectionInfo:t,children:(0,a.jsx)("span",{className:"display-name",children:n.displayName})})},sorter:function(e,n){return n.user.displayName.localeCompare(e.user.displayName)},filterIcon:(0,a.jsx)(h.Z,{}),filterDropdown:function(e){var n=e.setSelectedKeys,t=e.selectedKeys,r=e.confirm;return(0,a.jsx)("div",{style:{padding:8},children:(0,a.jsx)(l.Z,{placeholder:"Search display names...",value:t[0],onChange:function(e){n(e.target.value?[e.target.value]:[]),r({closeDropdown:!1})}})})},onFilter:function(e,n){return n.user.displayName.includes(e)},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,p.Z)(new Date(e))},sorter:function(e,n){return new Date(n.connectedAt).getTime()-new Date(e.connectedAt).getTime()},sortDirections:["descend","ascend"]},{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,x.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)(g.e,{user:n.user,isEnabled:!n.user.disabledAt})}}];return(0,a.jsx)(f.Z,{className:"table-container",pagination:{hideOnSinglePage:!0},columns:t,dataSource:n,size:"small",rowKey:"id"})},j=t(71577),v=t(58091),A=t(84674);function w(){return(w=(0,r.Z)((function(e){var n,t;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),n={},[4,(0,u.rQ)(u.RB,(n.data={value:e},n.method="POST",n.auth=!0,n))];case 1:return r.sent(),[3,3];case 2:return t=r.sent(),console.error(t),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}var b=function(e){var n=e.data,t=[{title:"IP Address",dataIndex:"ipAddress",key:"ipAddress"},{title:"Reason",dataIndex:"notes",key:"notes"},{title:"Created",dataIndex:"createdAt",key:"createdAt",render:function(e){return function(e){return(0,v.Z)(new Date(e),"MMM d H:mma")}(e)},sorter:function(e,n){return new Date(e.createdAt).getTime()-new Date(n.createdAt).getTime()},sortDirections:["descend","ascend"]},{title:"",key:"block",className:"actions-col",render:function(e,n){return(0,a.jsx)(j.Z,{title:"Remove IP Address Ban",onClick:function(){return function(e){return w.apply(this,arguments)}(n.ipAddress)},icon:(0,a.jsx)(A.Z,{twoToneColor:"#ff4d4f"}),className:"block-user-button"})}}];return(0,a.jsx)(f.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:t,dataSource:n,size:"large",rowKey:"ipAddress"})},N=o.Z.TabPane,k=1e4;function C(){var e=((0,c.useContext)(i.aC)||{}).online,n=(0,c.useState)([]),t=n[0],l=n[1],f=(0,c.useState)([]),h=f[0],p=f[1],m=(0,c.useState)([]),g=m[0],x=m[1],j=(0,c.useState)([]),v=j[0],A=j[1],w=function(){var e=(0,r.Z)((function(){var e,n,t,r,a,c,o,i;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,(0,u.rQ)(u.qk)];case 1:return e=s.sent(),l(e),[3,3];case 2:return n=s.sent(),console.log("==== error",n),[3,3];case 3:return s.trys.push([3,5,,6]),[4,(0,u.rQ)(u.Kp)];case 4:return t=s.sent(),x(t),[3,6];case 5:return r=s.sent(),console.log("==== error",r),[3,6];case 6:return s.trys.push([6,8,,9]),[4,(0,u.rQ)(u.GC)];case 7:return a=s.sent(),A(a),[3,9];case 8:return c=s.sent(),console.error("error fetching moderators",c),[3,9];case 9:return s.trys.push([9,11,,12]),[4,(0,u.rQ)(u.Bu)];case 10:return o=s.sent(),p(o),[3,12];case 11:return i=s.sent(),console.error("error fetching banned ips",i),[3,12];case 12:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){var e;return w(),e=setInterval(w,k),function(){clearInterval(e)}}),[e]);var C=e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{data:g}),(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)(N,{tab:(0,a.jsxs)("span",{children:["Connected ",e?"(".concat(g.length,")"):"(offline)"]}),children:C},"1"),(0,a.jsx)(N,{tab:(0,a.jsxs)("span",{children:["Banned Users (",t.length,")"]}),children:(0,a.jsx)(d.K,{data:t})},"2"),(0,a.jsx)(N,{tab:(0,a.jsxs)("span",{children:["IP Bans (",h.length,")"]}),children:(0,a.jsx)(b,{data:h})},"3"),(0,a.jsx)(N,{tab:(0,a.jsxs)("span",{children:["Moderators (",v.length,")"]}),children:(0,a.jsx)(d.K,{data:v})},"4")]})}}},function(e){e.O(0,[3662,7330,3927,384,355,8091,2944,5938,9189,9640,9774,2888,179],(function(){return n=55583,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/config-public-details-e92784f78b3a703a.js b/static/web/_next/static/chunks/pages/admin/config-public-details-bd1945cbb8417d7b.js similarity index 98% rename from static/web/_next/static/chunks/pages/admin/config-public-details-e92784f78b3a703a.js rename to static/web/_next/static/chunks/pages/admin/config-public-details-bd1945cbb8417d7b.js index 52f71adea..33ba2a5d9 100644 --- a/static/web/_next/static/chunks/pages/admin/config-public-details-e92784f78b3a703a.js +++ b/static/web/_next/static/chunks/pages/admin/config-public-details-bd1945cbb8417d7b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4311],{86045:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config-public-details",function(){return t(42992)}])},80939:function(e,n,t){"use strict";t.d(n,{Q:function(){return u},Y:function(){return d}});var a=t(85893),s=t(67294),i=t(84485),r=t(20550),l=t(24389),o=t(25521),c=i.Z.Title,u="#5a67d8",d=function(e){var n=e.title,t=e.description,i=e.placeholder,d=e.maxLength,f=e.values,h=e.handleDeleteIndex,m=e.handleCreateString,p=e.submitStatus,g=e.continuousStatusMessage,v=(0,s.useState)(""),x=v[0],j=v[1];return(0,a.jsxs)("div",{className:"edit-string-array-container",children:[(0,a.jsx)(c,{level:3,className:"section-title",children:n}),(0,a.jsx)("p",{className:"description",children:t}),(0,a.jsx)("div",{className:"edit-current-strings",children:null===f||void 0===f?void 0:f.map((function(e,n){return(0,a.jsx)(r.Z,{closable:!0,onClose:function(){h(n)},color:u,children:e},"tag-".concat(e,"-").concat(n))}))}),g&&(0,a.jsx)("div",{className:"continuous-status-section",children:(0,a.jsx)(o.E,{status:g})}),(0,a.jsx)("div",{className:"add-new-string-section",children:(0,a.jsx)(l.nv,{fieldName:"string-input",value:x,onChange:function(e){var n=e.value;j(n)},onPressEnter:function(){var e=x.trim();m(e),j("")},maxLength:d,placeholder:i,status:p})})]})};d.defaultProps={maxLength:50,description:null,submitStatus:null,continuousStatusMessage:null}},3664:function(e,n,t){"use strict";t.d(n,{Z:function(){return f}});var a=t(47568),s=t(70655),i=t(85893),r=t(67294),l=t(94594),o=t(83192),c=t(25521),u=t(25964),d=t(35159),f=function(e){var n=e.apiPath,t=e.checked,f=e.reversed,h=void 0!==f&&f,m=e.configPath,p=void 0===m?"":m,g=e.disabled,v=void 0!==g&&g,x=e.fieldName,j=e.label,N=e.tip,C=e.useSubmit,S=e.onChange,y=(0,r.useState)(null),b=y[0],w=y[1],k=null,Z=((0,r.useContext)(d.aC)||{}).setFieldInConfigState,T=function(){w(null),clearTimeout(k),k=null},_=function(){var e=(0,a.Z)((function(e){var t,a;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return C?(w((0,o.kg)(o.Jk)),t=h?!e:e,a={},[4,(0,u.Si)((a.apiPath=n,a.data={value:t},a.onSuccess=function(){Z({fieldName:x,value:t,path:p}),w((0,o.kg)(o.zv))},a.onError=function(e){w((0,o.kg)(o.Un,"There was an error: ".concat(e)))},a))]):[3,2];case 1:s.sent(),k=setTimeout(T,u.sI),s.label=2;case 2:return S&&S(e),[2]}}))}));return function(n){return e.apply(this,arguments)}}(),P=null!==b&&b.type===o.Jk;return(0,i.jsxs)("div",{className:"formfield-container toggleswitch-container",children:[j&&(0,i.jsx)("div",{className:"label-side",children:(0,i.jsx)("span",{className:"formfield-label",children:j})}),(0,i.jsxs)("div",{className:"input-side",children:[(0,i.jsxs)("div",{className:"input-group",children:[(0,i.jsx)(l.Z,{className:"switch field-".concat(x),loading:P,onChange:_,defaultChecked:t,checked:t,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:v}),(0,i.jsx)(c.E,{status:b})]}),(0,i.jsx)("p",{className:"field-tip",children:N})]})]})};f.defaultProps={apiPath:"",checked:!1,reversed:!1,configPath:"",disabled:!1,label:"",tip:"",useSubmit:!1,onChange:null}},42992:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return $}});var a=t(85893),s=t(67294),i=t(84485),r=t(14924),l=t(26042),o=t(69396),c=t(45200),u=t(35159),d=t(25964),f=t(3664),h=t(47568),m=t(70655),p=t(77916),g=t(71577),v=t(50888),x=t(88484),j=t(25521),N=t(83192),C=t(58827),S=["image/png","image/jpeg","image/gif"];var y=function(){var e,n=(0,s.useState)(null),t=n[0],i=n[1],r=(0,s.useState)(!1),l=r[0],o=r[1],c=(0,s.useState)(0),f=c[0],y=c[1],b=(0,s.useContext)(u.aC)||{},w=b.setFieldInConfigState,k=b.serverConfig,Z=null===k||void 0===k||null===(e=k.instanceDetails)||void 0===e?void 0:e.logo,T=(0,s.useState)(null),_=T[0],P=T[1],E=null,L=d.ZQ.apiPath,U=d.ZQ.tip,I=function(){P(null),clearTimeout(E),E=null},D=function(){var e=(0,h.Z)((function(){var e;return(0,m.__generator)(this,(function(n){switch(n.label){case 0:return t===Z?[3,2]:(P((0,N.kg)(N.Jk)),e={},[4,(0,d.Si)((e.apiPath=L,e.data={value:t},e.onSuccess=function(){w({fieldName:"logo",value:t,path:""}),P((0,N.kg)(N.zv)),o(!1),y(Math.floor(100*Math.random()))},e.onError=function(e){P((0,N.kg)(N.Un,"There was an error: ".concat(e))),o(!1)},e))]);case 1:n.sent(),E=setTimeout(I,d.sI),n.label=2;case 2:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),F="".concat(C.WB,"logo?random=").concat(f);return(0,a.jsxs)("div",{className:"formfield-container logo-upload-container",children:[(0,a.jsx)("div",{className:"label-side",children:(0,a.jsx)("span",{className:"formfield-label",children:"Logo"})}),(0,a.jsxs)("div",{className:"input-side",children:[(0,a.jsxs)("div",{className:"input-group",children:[(0,a.jsx)("img",{src:F,alt:"avatar",className:"logo-preview"}),(0,a.jsx)(p.Z,{name:"logo",listType:"picture",className:"avatar-uploader",showUploadList:!1,accept:S.join(","),beforeUpload:function(e){return o(!0),new Promise((function(n,t){if(!S.includes(e.type)){var a="File type is not supported: ".concat(e.type);return P((0,N.kg)(N.Un,"There was an error: ".concat(a))),E=setTimeout(I,d.sI),o(!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:D,disabled:l,children:l?(0,a.jsx)(v.Z,{style:{color:"white"}}):(0,a.jsx)(g.Z,{icon:(0,a.jsx)(x.Z,{})})})]}),(0,a.jsx)(j.E,{status:_}),(0,a.jsx)("p",{className:"field-tip",children:U})]})]})},b=i.Z.Title,w=function(){var e=(0,s.useState)(null),n=e[0],t=e[1],i=((0,s.useContext)(u.aC)||{}).serverConfig,h=i.instanceDetails,m=i.yp,p=m.instanceUrl;if((0,s.useEffect)((function(){t((0,l.Z)({},h,m))}),[h,m]),!n)return null;var g=function(e){var a=e.fieldName,s=e.value;t((0,o.Z)((0,l.Z)({},n),(0,r.Z)({},a,s)))},v=""!==p;return(0,a.jsxs)("div",{className:"edit-general-settings",children:[(0,a.jsx)(b,{level:3,className:"section-title",children:"Configure Instance Details"}),(0,a.jsx)("br",{}),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"name"},d.RE),{value:n.name,initialValue:h.name,onChange:g})),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"instanceUrl"},d.cj),{value:n.instanceUrl,initialValue:m.instanceUrl,type:c.xA,onChange:g,onSubmit:function(){""===n.instanceUrl&&!0===m.enabled&&(0,d.Si)({apiPath:d.AP,data:{value:!1}})}})),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"summary"},d.rs),{type:c.Sk,value:n.summary,initialValue:h.summary,onChange:g})),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"offlineMessage"},d.rd),{type:c.Sk,value:n.offlineMessage,initialValue:h.offlineMessage,onChange:g})),(0,a.jsx)(y,{}),(0,a.jsx)(f.Z,(0,o.Z)((0,l.Z)({fieldName:"hideViewerCount",useSubmit:!0},d._X),{checked:n.hideViewerCount,onChange:function(e){g({fieldName:"hideViewerCount",value:e})}})),(0,a.jsx)("br",{}),(0,a.jsxs)("p",{className:"description",children:["Increase your audience by appearing in the"," ",(0,a.jsx)("a",{href:"https://directory.owncast.online",target:"_blank",rel:"noreferrer",children:(0,a.jsx)("strong",{children:"Owncast Directory"})}),". This is an external service run by the Owncast project."," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/directory/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn more"}),"."]}),!m.instanceUrl&&(0,a.jsxs)("p",{className:"description",children:["You must set your ",(0,a.jsx)("strong",{children:"Server URL"})," above to enable the directory."]}),(0,a.jsxs)("div",{className:"config-yp-container",children:[(0,a.jsx)(f.Z,(0,o.Z)((0,l.Z)({fieldName:"enabled",useSubmit:!0},d.P),{checked:n.enabled,disabled:!v})),(0,a.jsx)(f.Z,(0,o.Z)((0,l.Z)({fieldName:"nsfw",useSubmit:!0},d.EY),{checked:n.nsfw,disabled:!v}))]})]})},k=t(29815),Z=t(20550),T=t(24389),_=t(80939),P=i.Z.Title,E=function(){var e=(0,s.useState)(""),n=e[0],t=e[1],i=(0,s.useState)(null),r=i[0],l=i[1],o=(0,s.useContext)(u.aC)||{},c=o.serverConfig,f=o.setFieldInConfigState,p=c.instanceDetails.tags,g=void 0===p?[]:p,v=d.y_.apiPath,x=d.y_.maxLength,j=d.y_.placeholder,C=d.y_.configPath,S=null;(0,s.useEffect)((function(){return function(){clearTimeout(S)}}),[]);var y=function(){l(null),S=null,clearTimeout(S)},b=function(){var e=(0,h.Z)((function(e){var n;return(0,m.__generator)(this,(function(a){switch(a.label){case 0:return l((0,N.kg)(N.Jk)),n={},[4,(0,d.Si)((n.apiPath=v,n.data={value:e},n.onSuccess=function(){f({fieldName:"tags",value:e,path:C}),l((0,N.kg)(N.zv,"Tags updated.")),t(""),S=setTimeout(y,d.sI)},n.onError=function(e){l((0,N.kg)(N.Un,e)),S=setTimeout(y,d.sI)},n))];case 1:return a.sent(),[2]}}))}));return function(n){return e.apply(this,arguments)}}();return(0,a.jsxs)("div",{className:"tag-editor-container",children:[(0,a.jsx)(P,{level:3,className:"section-title",children:"Add Tags"}),(0,a.jsx)("p",{className:"description",children:"This is a great way to categorize your Owncast server on the Directory!"}),(0,a.jsx)("div",{className:"edit-current-strings",children:g.map((function(e,n){return(0,a.jsx)(Z.Z,{closable:!0,onClose:function(){!function(e){y();var n=(0,k.Z)(g);n.splice(e,1),b(n)}(n)},color:_.Q,children:e},"tag-".concat(e,"-").concat(n))}))}),(0,a.jsx)("div",{className:"add-new-string-section",children:(0,a.jsx)(T.nv,{fieldName:"tag-input",value:n,className:"new-tag-input",onChange:function(e){var n=e.value;r||l(null),t(n)},onPressEnter:function(){y();var e=n.trim();if(""!==e)if(g.some((function(n){return n.toLowerCase()===e.toLowerCase()})))l((0,N.kg)(N.dG,"This tag is already used!"));else{var t=(0,k.Z)(g).concat([e]);b(t)}else l((0,N.kg)(N.dG,"Please enter a tag"))},maxLength:x,placeholder:j,status:r})})]})},L=t(72877),U=t(5152),I=t.n(U),D=t(9980),F=t.n(D),M=(t(69596),new(F())),z=I()((function(){return t.e(7610).then(t.bind(t,77610))}),{loadableGenerated:{webpack:function(){return[77610]}},ssr:!1}),O=i.Z.Title,V=function(){var e=(0,s.useState)(""),n=e[0],t=e[1],i=(0,s.useState)(null),r=i[0],l=i[1],o=(0,s.useState)(!1),c=o[0],f=o[1],p=(0,s.useContext)(u.aC)||{},v=p.serverConfig,x=p.setFieldInConfigState,C=v.instanceDetails,S=C.extraPageContent,y=null,b=function(){l(null),f(!1),clearTimeout(y),y=null};function w(){return(w=(0,h.Z)((function(){var e;return(0,m.__generator)(this,(function(t){switch(t.label){case 0:return l((0,N.kg)(N.Jk)),e={},[4,(0,d.Si)((e.apiPath=d.AA,e.data={value:n},e.onSuccess=function(e){x({fieldName:"extraPageContent",value:n,path:"instanceDetails"}),l((0,N.kg)(N.zv,e))},e.onError=function(e){l((0,N.kg)(N.Un,e))},e))];case 1:return t.sent(),y=setTimeout(b,d.sI),[2]}}))}))).apply(this,arguments)}return(0,s.useEffect)((function(){t(S)}),[C]),(0,a.jsxs)("div",{className:"edit-page-content",children:[(0,a.jsx)(O,{level:3,className:"section-title",children:"Custom Page Content"}),(0,a.jsxs)("p",{className:"description",children:["Edit the content of your page by using simple"," ",(0,a.jsx)("a",{href:"https://www.markdownguide.org/basic-syntax/",target:"_blank",rel:"noopener noreferrer",children:"Markdown syntax"}),"."]}),(0,a.jsx)(z,{style:{height:"30em"},value:n,renderHTML:function(e){return M.render(e)},onChange:function(e){var n=e.text;t(n),n===S||c?n===S&&c&&f(!1):f(!0)},config:{htmlClass:"markdown-editor-preview-pane",markdownClass:"markdown-editor-pane"}}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"page-content-actions",children:[c&&(0,a.jsx)(g.Z,{type:"primary",onClick:function(){return w.apply(this,arguments)},children:"Save"}),(0,a.jsx)(j.E,{status:r})]})]})},A=i.Z.Title,J=function(){var e=(0,s.useState)(""),n=e[0],t=e[1],i=(0,s.useState)(null),r=i[0],l=i[1],o=(0,s.useState)(!1),c=o[0],f=o[1],p=(0,s.useContext)(u.aC)||{},v=p.serverConfig,x=p.setFieldInConfigState,C=v.instanceDetails,S=C.customStyles,y=null,b=function(){l(null),f(!1),clearTimeout(y),y=null};function w(){return(w=(0,h.Z)((function(){var e;return(0,m.__generator)(this,(function(t){switch(t.label){case 0:return l((0,N.kg)(N.Jk)),e={},[4,(0,d.Si)((e.apiPath=d.d$,e.data={value:n},e.onSuccess=function(e){x({fieldName:"customStyles",value:n,path:"instanceDetails"}),l((0,N.kg)(N.zv,e))},e.onError=function(e){l((0,N.kg)(N.Un,e))},e))];case 1:return t.sent(),y=setTimeout(b,d.sI),[2]}}))}))).apply(this,arguments)}return(0,s.useEffect)((function(){t(S)}),[C]),(0,a.jsxs)("div",{className:"edit-custom-css",children:[(0,a.jsx)(A,{level:3,className:"section-title",children:"Customize your page styling with CSS"}),(0,a.jsxs)("p",{className:"description",children:["Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the"," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/website/",rel:"noopener noreferrer",target:"_blank",children:"CSS & Components guide"}),"."]}),(0,a.jsx)("p",{className:"description",children:"Please input plain CSS text, as this will be directly injected onto your page during load."}),(0,a.jsx)(T.nv,{fieldName:"customStyles",type:T.Sk,value:n,maxLength:null,onChange:function(e){var n=e.value;t(n),n===S||c?n===S&&c&&f(!1):f(!0)},placeholder:"/* Enter custom CSS here */"}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"page-content-actions",children:[c&&(0,a.jsx)(g.Z,{type:"primary",onClick:function(){return w.apply(this,arguments)},children:"Save"}),(0,a.jsx)(j.E,{status:r})]})]})},R=i.Z.Title;function $(){return(0,a.jsxs)("div",{className:"config-public-details-page",children:[(0,a.jsx)(R,{children:"General Settings"}),(0,a.jsxs)("p",{className:"description",children:["The following are displayed on your site to describe your stream and its content."," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/website/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn more."})]}),(0,a.jsxs)("div",{className:"top-container",children:[(0,a.jsx)("div",{className:"form-module instance-details-container",children:(0,a.jsx)(w,{})}),(0,a.jsxs)("div",{className:"form-module social-items-container ",children:[(0,a.jsx)("div",{className:"form-module tags-module",children:(0,a.jsx)(E,{})}),(0,a.jsx)("div",{className:"form-module social-handles-container",children:(0,a.jsx)(L.h,{})})]})]}),(0,a.jsx)("div",{className:"form-module page-content-module",children:(0,a.jsx)(V,{})}),(0,a.jsx)("div",{className:"form-module page-content-module",children:(0,a.jsx)(J,{})})]})}}},function(e){e.O(0,[7330,7266,355,7910,927,2877,9774,2888,179],(function(){return n=86045,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([[4311],{86045:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config-public-details",function(){return t(42992)}])},80939:function(e,n,t){"use strict";t.d(n,{Q:function(){return u},Y:function(){return d}});var a=t(85893),s=t(67294),i=t(84485),r=t(20550),l=t(24389),o=t(25521),c=i.Z.Title,u="#5a67d8",d=function(e){var n=e.title,t=e.description,i=e.placeholder,d=e.maxLength,f=e.values,h=e.handleDeleteIndex,m=e.handleCreateString,p=e.submitStatus,g=e.continuousStatusMessage,v=(0,s.useState)(""),x=v[0],j=v[1];return(0,a.jsxs)("div",{className:"edit-string-array-container",children:[(0,a.jsx)(c,{level:3,className:"section-title",children:n}),(0,a.jsx)("p",{className:"description",children:t}),(0,a.jsx)("div",{className:"edit-current-strings",children:null===f||void 0===f?void 0:f.map((function(e,n){return(0,a.jsx)(r.Z,{closable:!0,onClose:function(){h(n)},color:u,children:e},"tag-".concat(e,"-").concat(n))}))}),g&&(0,a.jsx)("div",{className:"continuous-status-section",children:(0,a.jsx)(o.E,{status:g})}),(0,a.jsx)("div",{className:"add-new-string-section",children:(0,a.jsx)(l.nv,{fieldName:"string-input",value:x,onChange:function(e){var n=e.value;j(n)},onPressEnter:function(){var e=x.trim();m(e),j("")},maxLength:d,placeholder:i,status:p})})]})};d.defaultProps={maxLength:50,description:null,submitStatus:null,continuousStatusMessage:null}},3664:function(e,n,t){"use strict";t.d(n,{Z:function(){return f}});var a=t(47568),s=t(70655),i=t(85893),r=t(67294),l=t(94594),o=t(83192),c=t(25521),u=t(25964),d=t(35159),f=function(e){var n=e.apiPath,t=e.checked,f=e.reversed,h=void 0!==f&&f,m=e.configPath,p=void 0===m?"":m,g=e.disabled,v=void 0!==g&&g,x=e.fieldName,j=e.label,N=e.tip,C=e.useSubmit,S=e.onChange,y=(0,r.useState)(null),b=y[0],w=y[1],k=null,Z=((0,r.useContext)(d.aC)||{}).setFieldInConfigState,T=function(){w(null),clearTimeout(k),k=null},_=function(){var e=(0,a.Z)((function(e){var t,a;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return C?(w((0,o.kg)(o.Jk)),t=h?!e:e,a={},[4,(0,u.Si)((a.apiPath=n,a.data={value:t},a.onSuccess=function(){Z({fieldName:x,value:t,path:p}),w((0,o.kg)(o.zv))},a.onError=function(e){w((0,o.kg)(o.Un,"There was an error: ".concat(e)))},a))]):[3,2];case 1:s.sent(),k=setTimeout(T,u.sI),s.label=2;case 2:return S&&S(e),[2]}}))}));return function(n){return e.apply(this,arguments)}}(),P=null!==b&&b.type===o.Jk;return(0,i.jsxs)("div",{className:"formfield-container toggleswitch-container",children:[j&&(0,i.jsx)("div",{className:"label-side",children:(0,i.jsx)("span",{className:"formfield-label",children:j})}),(0,i.jsxs)("div",{className:"input-side",children:[(0,i.jsxs)("div",{className:"input-group",children:[(0,i.jsx)(l.Z,{className:"switch field-".concat(x),loading:P,onChange:_,defaultChecked:t,checked:t,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:v}),(0,i.jsx)(c.E,{status:b})]}),(0,i.jsx)("p",{className:"field-tip",children:N})]})]})};f.defaultProps={apiPath:"",checked:!1,reversed:!1,configPath:"",disabled:!1,label:"",tip:"",useSubmit:!1,onChange:null}},42992:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return $}});var a=t(85893),s=t(67294),i=t(84485),r=t(14924),l=t(26042),o=t(69396),c=t(45200),u=t(35159),d=t(25964),f=t(3664),h=t(47568),m=t(70655),p=t(77916),g=t(71577),v=t(50888),x=t(88484),j=t(25521),N=t(83192),C=t(58827),S=["image/png","image/jpeg","image/gif"];var y=function(){var e,n=(0,s.useState)(null),t=n[0],i=n[1],r=(0,s.useState)(!1),l=r[0],o=r[1],c=(0,s.useState)(0),f=c[0],y=c[1],b=(0,s.useContext)(u.aC)||{},w=b.setFieldInConfigState,k=b.serverConfig,Z=null===k||void 0===k||null===(e=k.instanceDetails)||void 0===e?void 0:e.logo,T=(0,s.useState)(null),_=T[0],P=T[1],E=null,L=d.ZQ.apiPath,U=d.ZQ.tip,I=function(){P(null),clearTimeout(E),E=null},D=function(){var e=(0,h.Z)((function(){var e;return(0,m.__generator)(this,(function(n){switch(n.label){case 0:return t===Z?[3,2]:(P((0,N.kg)(N.Jk)),e={},[4,(0,d.Si)((e.apiPath=L,e.data={value:t},e.onSuccess=function(){w({fieldName:"logo",value:t,path:""}),P((0,N.kg)(N.zv)),o(!1),y(Math.floor(100*Math.random()))},e.onError=function(e){P((0,N.kg)(N.Un,"There was an error: ".concat(e))),o(!1)},e))]);case 1:n.sent(),E=setTimeout(I,d.sI),n.label=2;case 2:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),F="".concat(C.WB,"logo?random=").concat(f);return(0,a.jsxs)("div",{className:"formfield-container logo-upload-container",children:[(0,a.jsx)("div",{className:"label-side",children:(0,a.jsx)("span",{className:"formfield-label",children:"Logo"})}),(0,a.jsxs)("div",{className:"input-side",children:[(0,a.jsxs)("div",{className:"input-group",children:[(0,a.jsx)("img",{src:F,alt:"avatar",className:"logo-preview"}),(0,a.jsx)(p.Z,{name:"logo",listType:"picture",className:"avatar-uploader",showUploadList:!1,accept:S.join(","),beforeUpload:function(e){return o(!0),new Promise((function(n,t){if(!S.includes(e.type)){var a="File type is not supported: ".concat(e.type);return P((0,N.kg)(N.Un,"There was an error: ".concat(a))),E=setTimeout(I,d.sI),o(!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:D,disabled:l,children:l?(0,a.jsx)(v.Z,{style:{color:"white"}}):(0,a.jsx)(g.Z,{icon:(0,a.jsx)(x.Z,{})})})]}),(0,a.jsx)(j.E,{status:_}),(0,a.jsx)("p",{className:"field-tip",children:U})]})]})},b=i.Z.Title,w=function(){var e=(0,s.useState)(null),n=e[0],t=e[1],i=((0,s.useContext)(u.aC)||{}).serverConfig,h=i.instanceDetails,m=i.yp,p=m.instanceUrl;if((0,s.useEffect)((function(){t((0,l.Z)({},h,m))}),[h,m]),!n)return null;var g=function(e){var a=e.fieldName,s=e.value;t((0,o.Z)((0,l.Z)({},n),(0,r.Z)({},a,s)))},v=""!==p;return(0,a.jsxs)("div",{className:"edit-general-settings",children:[(0,a.jsx)(b,{level:3,className:"section-title",children:"Configure Instance Details"}),(0,a.jsx)("br",{}),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"name"},d.RE),{value:n.name,initialValue:h.name,onChange:g})),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"instanceUrl"},d.cj),{value:n.instanceUrl,initialValue:m.instanceUrl,type:c.xA,onChange:g,onSubmit:function(){""===n.instanceUrl&&!0===m.enabled&&(0,d.Si)({apiPath:d.AP,data:{value:!1}})}})),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"summary"},d.rs),{type:c.Sk,value:n.summary,initialValue:h.summary,onChange:g})),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"offlineMessage"},d.rd),{type:c.Sk,value:n.offlineMessage,initialValue:h.offlineMessage,onChange:g})),(0,a.jsx)(y,{}),(0,a.jsx)(f.Z,(0,o.Z)((0,l.Z)({fieldName:"hideViewerCount",useSubmit:!0},d._X),{checked:n.hideViewerCount,onChange:function(e){g({fieldName:"hideViewerCount",value:e})}})),(0,a.jsx)("br",{}),(0,a.jsxs)("p",{className:"description",children:["Increase your audience by appearing in the"," ",(0,a.jsx)("a",{href:"https://directory.owncast.online",target:"_blank",rel:"noreferrer",children:(0,a.jsx)("strong",{children:"Owncast Directory"})}),". This is an external service run by the Owncast project."," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/directory/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn more"}),"."]}),!m.instanceUrl&&(0,a.jsxs)("p",{className:"description",children:["You must set your ",(0,a.jsx)("strong",{children:"Server URL"})," above to enable the directory."]}),(0,a.jsxs)("div",{className:"config-yp-container",children:[(0,a.jsx)(f.Z,(0,o.Z)((0,l.Z)({fieldName:"enabled",useSubmit:!0},d.P),{checked:n.enabled,disabled:!v})),(0,a.jsx)(f.Z,(0,o.Z)((0,l.Z)({fieldName:"nsfw",useSubmit:!0},d.EY),{checked:n.nsfw,disabled:!v}))]})]})},k=t(29815),Z=t(20550),T=t(24389),_=t(80939),P=i.Z.Title,E=function(){var e=(0,s.useState)(""),n=e[0],t=e[1],i=(0,s.useState)(null),r=i[0],l=i[1],o=(0,s.useContext)(u.aC)||{},c=o.serverConfig,f=o.setFieldInConfigState,p=c.instanceDetails.tags,g=void 0===p?[]:p,v=d.y_.apiPath,x=d.y_.maxLength,j=d.y_.placeholder,C=d.y_.configPath,S=null;(0,s.useEffect)((function(){return function(){clearTimeout(S)}}),[]);var y=function(){l(null),S=null,clearTimeout(S)},b=function(){var e=(0,h.Z)((function(e){var n;return(0,m.__generator)(this,(function(a){switch(a.label){case 0:return l((0,N.kg)(N.Jk)),n={},[4,(0,d.Si)((n.apiPath=v,n.data={value:e},n.onSuccess=function(){f({fieldName:"tags",value:e,path:C}),l((0,N.kg)(N.zv,"Tags updated.")),t(""),S=setTimeout(y,d.sI)},n.onError=function(e){l((0,N.kg)(N.Un,e)),S=setTimeout(y,d.sI)},n))];case 1:return a.sent(),[2]}}))}));return function(n){return e.apply(this,arguments)}}();return(0,a.jsxs)("div",{className:"tag-editor-container",children:[(0,a.jsx)(P,{level:3,className:"section-title",children:"Add Tags"}),(0,a.jsx)("p",{className:"description",children:"This is a great way to categorize your Owncast server on the Directory!"}),(0,a.jsx)("div",{className:"edit-current-strings",children:g.map((function(e,n){return(0,a.jsx)(Z.Z,{closable:!0,onClose:function(){!function(e){y();var n=(0,k.Z)(g);n.splice(e,1),b(n)}(n)},color:_.Q,children:e},"tag-".concat(e,"-").concat(n))}))}),(0,a.jsx)("div",{className:"add-new-string-section",children:(0,a.jsx)(T.nv,{fieldName:"tag-input",value:n,className:"new-tag-input",onChange:function(e){var n=e.value;r||l(null),t(n)},onPressEnter:function(){y();var e=n.trim();if(""!==e)if(g.some((function(n){return n.toLowerCase()===e.toLowerCase()})))l((0,N.kg)(N.dG,"This tag is already used!"));else{var t=(0,k.Z)(g).concat([e]);b(t)}else l((0,N.kg)(N.dG,"Please enter a tag"))},maxLength:x,placeholder:j,status:r})})]})},L=t(72877),U=t(5152),I=t.n(U),D=t(9980),F=t.n(D),M=(t(69596),new(F())),z=I()((function(){return t.e(7610).then(t.bind(t,77610))}),{loadableGenerated:{webpack:function(){return[77610]}},ssr:!1}),O=i.Z.Title,V=function(){var e=(0,s.useState)(""),n=e[0],t=e[1],i=(0,s.useState)(null),r=i[0],l=i[1],o=(0,s.useState)(!1),c=o[0],f=o[1],p=(0,s.useContext)(u.aC)||{},v=p.serverConfig,x=p.setFieldInConfigState,C=v.instanceDetails,S=C.extraPageContent,y=null,b=function(){l(null),f(!1),clearTimeout(y),y=null};function w(){return(w=(0,h.Z)((function(){var e;return(0,m.__generator)(this,(function(t){switch(t.label){case 0:return l((0,N.kg)(N.Jk)),e={},[4,(0,d.Si)((e.apiPath=d.AA,e.data={value:n},e.onSuccess=function(e){x({fieldName:"extraPageContent",value:n,path:"instanceDetails"}),l((0,N.kg)(N.zv,e))},e.onError=function(e){l((0,N.kg)(N.Un,e))},e))];case 1:return t.sent(),y=setTimeout(b,d.sI),[2]}}))}))).apply(this,arguments)}return(0,s.useEffect)((function(){t(S)}),[C]),(0,a.jsxs)("div",{className:"edit-page-content",children:[(0,a.jsx)(O,{level:3,className:"section-title",children:"Custom Page Content"}),(0,a.jsxs)("p",{className:"description",children:["Edit the content of your page by using simple"," ",(0,a.jsx)("a",{href:"https://www.markdownguide.org/basic-syntax/",target:"_blank",rel:"noopener noreferrer",children:"Markdown syntax"}),"."]}),(0,a.jsx)(z,{style:{height:"30em"},value:n,renderHTML:function(e){return M.render(e)},onChange:function(e){var n=e.text;t(n),n===S||c?n===S&&c&&f(!1):f(!0)},config:{htmlClass:"markdown-editor-preview-pane",markdownClass:"markdown-editor-pane"}}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"page-content-actions",children:[c&&(0,a.jsx)(g.Z,{type:"primary",onClick:function(){return w.apply(this,arguments)},children:"Save"}),(0,a.jsx)(j.E,{status:r})]})]})},A=i.Z.Title,J=function(){var e=(0,s.useState)(""),n=e[0],t=e[1],i=(0,s.useState)(null),r=i[0],l=i[1],o=(0,s.useState)(!1),c=o[0],f=o[1],p=(0,s.useContext)(u.aC)||{},v=p.serverConfig,x=p.setFieldInConfigState,C=v.instanceDetails,S=C.customStyles,y=null,b=function(){l(null),f(!1),clearTimeout(y),y=null};function w(){return(w=(0,h.Z)((function(){var e;return(0,m.__generator)(this,(function(t){switch(t.label){case 0:return l((0,N.kg)(N.Jk)),e={},[4,(0,d.Si)((e.apiPath=d.d$,e.data={value:n},e.onSuccess=function(e){x({fieldName:"customStyles",value:n,path:"instanceDetails"}),l((0,N.kg)(N.zv,e))},e.onError=function(e){l((0,N.kg)(N.Un,e))},e))];case 1:return t.sent(),y=setTimeout(b,d.sI),[2]}}))}))).apply(this,arguments)}return(0,s.useEffect)((function(){t(S)}),[C]),(0,a.jsxs)("div",{className:"edit-custom-css",children:[(0,a.jsx)(A,{level:3,className:"section-title",children:"Customize your page styling with CSS"}),(0,a.jsxs)("p",{className:"description",children:["Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the"," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/website/",rel:"noopener noreferrer",target:"_blank",children:"CSS & Components guide"}),"."]}),(0,a.jsx)("p",{className:"description",children:"Please input plain CSS text, as this will be directly injected onto your page during load."}),(0,a.jsx)(T.nv,{fieldName:"customStyles",type:T.Sk,value:n,maxLength:null,onChange:function(e){var n=e.value;t(n),n===S||c?n===S&&c&&f(!1):f(!0)},placeholder:"/* Enter custom CSS here */"}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"page-content-actions",children:[c&&(0,a.jsx)(g.Z,{type:"primary",onClick:function(){return w.apply(this,arguments)},children:"Save"}),(0,a.jsx)(j.E,{status:r})]})]})},R=i.Z.Title;function $(){return(0,a.jsxs)("div",{className:"config-public-details-page",children:[(0,a.jsx)(R,{children:"General Settings"}),(0,a.jsxs)("p",{className:"description",children:["The following are displayed on your site to describe your stream and its content."," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/website/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn more."})]}),(0,a.jsxs)("div",{className:"top-container",children:[(0,a.jsx)("div",{className:"form-module instance-details-container",children:(0,a.jsx)(w,{})}),(0,a.jsxs)("div",{className:"form-module social-items-container ",children:[(0,a.jsx)("div",{className:"form-module tags-module",children:(0,a.jsx)(E,{})}),(0,a.jsx)("div",{className:"form-module social-handles-container",children:(0,a.jsx)(L.h,{})})]})]}),(0,a.jsx)("div",{className:"form-module page-content-module",children:(0,a.jsx)(V,{})}),(0,a.jsx)("div",{className:"form-module page-content-module",children:(0,a.jsx)(J,{})})]})}}},function(e){e.O(0,[7330,3927,384,355,7910,927,2877,9774,2888,179],(function(){return n=86045,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/config-social-items-668213a753485be5.js b/static/web/_next/static/chunks/pages/admin/config-social-items-59fc92ae79167bce.js similarity index 94% rename from static/web/_next/static/chunks/pages/admin/config-social-items-668213a753485be5.js rename to static/web/_next/static/chunks/pages/admin/config-social-items-59fc92ae79167bce.js index 0abe9eeb1..7be16fbc1 100644 --- a/static/web/_next/static/chunks/pages/admin/config-social-items-668213a753485be5.js +++ b/static/web/_next/static/chunks/pages/admin/config-social-items-59fc92ae79167bce.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30],{48689:function(t,n,r){"use strict";r.d(n,{Z:function(){return a}});var e=r(1413),i=r(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"},o=r(42135),u=function(t,n){return i.createElement(o.Z,(0,e.Z)((0,e.Z)({},t),{},{ref:n,icon:c}))};u.displayName="DeleteOutlined";var a=i.forwardRef(u)},81009:function(t,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config-social-items",function(){return r(97063)}])},97063:function(t,n,r){"use strict";r.r(n),r.d(n,{default:function(){return u}});var e=r(85893),i=(r(67294),r(84485)),c=r(72877),o=i.Z.Title;function u(){return(0,e.jsxs)("div",{className:"config-social-items",children:[(0,e.jsx)(o,{children:"Social Items"}),(0,e.jsx)(c.h,{})]})}},20943:function(t,n,r){"use strict";function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);rt.length)&&(n=t.length);for(var r=0,e=new Array(n);r0&&"(".concat(r.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(r,M)]},"2");return(0,c.jsx)("div",{className:"followers-section",children:(0,c.jsxs)(o.Z,{defaultActiveKey:"1",children:[(0,c.jsxs)(j,{tab:(0,c.jsxs)("span",{children:["Followers ",x.length>0&&"(".concat(x.length,")")]}),children:[(0,c.jsx)("p",{children:"The following accounts get notified when you go live or send a post."}),e(x,q)," "]},"1"),H,(0,c.jsxs)(j,{tab:(0,c.jsxs)("span",{children:["Blocked ",p.length>0&&"(".concat(p.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(p,F)})]},"3")]})})}},20943:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&"(".concat(r.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(r,M)]},"2");return(0,c.jsx)("div",{className:"followers-section",children:(0,c.jsxs)(o.Z,{defaultActiveKey:"1",children:[(0,c.jsxs)(j,{tab:(0,c.jsxs)("span",{children:["Followers ",x.length>0&&"(".concat(x.length,")")]}),children:[(0,c.jsx)("p",{children:"The following accounts get notified when you go live or send a post."}),e(x,q)," "]},"1"),H,(0,c.jsxs)(j,{tab:(0,c.jsxs)("span",{children:["Blocked ",p.length>0&&"(".concat(p.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(p,F)})]},"3")]})})}},20943:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=c?u:(r.setFullYear(u.getFullYear(),u.getMonth(),o),r)}},92794:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/viewer-info",function(){return r(80961)}])},51222:function(e,t,r){"use strict";r.d(t,{k:function(){return l}});var n=r(85893),a=r(29217),s=r(92616),i=r.n(s),o=r(58091),u=r(60727);function c(e){var t={};return e.forEach((function(e){var r=new Date(e.time),n=(0,o.Z)(r,"H:mma");t[n]=e.value})),t}i().use(a.Z);var l=function(e){var t=e.data,r=e.title,a=e.color,s=e.unit,i=e.dataCollections,o=e.yFlipped,l=e.yLogarithmic,d=[];t&&t.length>0&&d.push({name:r,color:a,data:c(t)}),i.forEach((function(e){d.push({name:e.name,data:c(e.data),color:e.color,dataset:e.options})}));var f={scales:{y:{reverse:!1,type:"linear"},x:{type:"time"}}};return f.scales.y.reverse=o,f.scales.y.type=l?"logarithmic":"linear",(0,n.jsx)("div",{className:"line-chart-container",children:(0,n.jsx)(u.wW,{xtitle:"Time",ytitle:r,suffix:s,legend:"bottom",color:a,data:d,download:r,library:f})})};l.defaultProps={dataCollections:[],data:[],title:"",yFlipped:!1,yLogarithmic:!1}},97206:function(e,t,r){"use strict";r.d(t,{m:function(){return h}});var n=r(26042),a=r(85893),s=r(84485),i=r(97910),o=r(74763),u=r(59652),c=s.Z.Text,l={title:"",value:0,prefix:null,suffix:null,color:"",progress:!1,centered:!1,formatter:null},d=function(e){var t=e.prefix,r=e.value,n=e.suffix,s=e.title;return(0,a.jsxs)("div",{children:[t,(0,a.jsx)("div",{children:(0,a.jsx)(c,{type:"secondary",children:s})}),(0,a.jsx)("div",{children:(0,a.jsxs)(c,{type:"secondary",children:[r,n||"%"]})})]})},f=function(e){var t=e.title,r=e.value,n=e.prefix,s=e.suffix,o=e.color,u=r>90?"red":o,c=(0,a.jsx)(d,{prefix:n,value:r,suffix:s,title:t});return(0,a.jsx)(i.Z,{type:"dashboard",percent:r,width:120,strokeColor:{"0%":o,"90%":u},format:function(){return c}})};f.defaultProps=l;var v=function(e){var t=e.title,r=e.value,n=e.prefix,s=e.formatter;return(0,a.jsx)(o.Z,{title:t,value:r,prefix:n,formatter:s})};v.defaultProps=l;var h=function(e){var t=e.progress,r=e.centered,s=t?f:v,i=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,a.jsx)(u.Z,{type:"inner",children:(0,a.jsx)("div",{style:i,children:(0,a.jsx)(s,(0,n.Z)({},e))})})};h.defaultProps=l},80961:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return I}});var n=r(47568),a=r(70655),s=r(85893),i=r(67294),o=r(66516),u=r(84485),c=r(25968),l=r(6226),d=r(14670),f=r(11382),v=r(38504),h=r(87547),x=r(80882),m=r(77349),Z=r(13882),p=r(83946);function g(e,t){(0,Z.Z)(2,arguments);var r=(0,p.Z)(t);return(0,m.Z)(e,-r)}var y=r(11640);function w(e,t){(0,Z.Z)(2,arguments);var r=(0,p.Z)(t);return(0,y.Z)(e,-r)}function j(e,t){if((0,Z.Z)(2,arguments),!t||"object"!==typeof t)return new Date(NaN);var r=t.years?(0,p.Z)(t.years):0,n=t.months?(0,p.Z)(t.months):0,a=t.weeks?(0,p.Z)(t.weeks):0,s=t.days?(0,p.Z)(t.days):0,i=t.hours?(0,p.Z)(t.hours):0,o=t.minutes?(0,p.Z)(t.minutes):0,u=t.seconds?(0,p.Z)(t.seconds):0,c=w(e,n+12*r),l=g(c,s+7*a),d=o+60*i,f=u+60*d,v=1e3*f,h=new Date(l.getTime()-v);return h}var D=r(19013);function N(e){(0,Z.Z)(1,arguments);var t=(0,D.Z)(e),r=t.getTime();return r}var S=r(51222),k=r(97206),C=r(10355),b=r(45938),_=r(2766);var T=function(e){var t=e.data,r=[{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,_.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,b.Z)(new Date(e))},sorter:function(e,t){return new Date(e.firstSeen).getTime()-new Date(t.firstSeen).getTime()},sortDirections:["descend","ascend"]}];return(0,s.jsx)(C.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:r,dataSource:t,size:"small",rowKey:"id"})},E=r(35159),P=r(58827);function I(){var e,t=(0,i.useContext)(E.aC)||{},r=t.online,m=t.broadcaster,p=t.viewerCount,g=t.overallPeakViewerCount,y=t.sessionPeakViewerCount;m&&m.time&&(e=new Date(m.time));var w=[{title:"Current stream",start:e},{title:"Last 12 hours",start:j(new Date,{hours:12})},{title:"Last 24 hours",start:j(new Date,{hours:24})},{title:"Last 7 days",start:j(new Date,{days:7})},{title:"Last 30 days",start:j(new Date,{days:30})},{title:"Last 3 months",start:j(new Date,{months:3})},{title:"Last 6 months",start:j(new Date,{months:6})}],D=(0,i.useState)(!0),C=D[0],b=D[1],_=(0,i.useState)([]),I=_[0],L=_[1],M=(0,i.useState)([]),A=M[0],F=M[1],O=(0,i.useState)(w[1]),V=O[0],z=O[1],B=function(){var e=(0,n.Z)((function(){var e,t,r,n,s;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),e="".concat(P.iV,"?windowStart=").concat(function(e){return(0,Z.Z)(1,arguments),Math.floor(N(e)/1e3)}(V.start)),[4,(0,P.rQ)(e)];case 1:return t=a.sent(),L(t),b(!1),[3,3];case 2:return r=a.sent(),console.log("==== error",r),[3,3];case 3:return a.trys.push([3,5,,6]),[4,(0,P.rQ)(P.a_)];case 4:return n=a.sent(),F(n),[3,6];case 5:return s=a.sent(),console.log("==== error",s),[3,6];case 6:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,i.useEffect)((function(){var e=null;return B(),r?(e=setInterval(B,6e4),function(){clearInterval(e)}):function(){return[]}}),[r,V]);var Q=function(e){var t=e.key;z(w[t])},U=(0,s.jsxs)(o.Z,{children:[r&&e&&(0,s.jsx)(o.Z.Item,{onClick:Q,children:w[0].title},"0"),w.slice(1).map((function(e,t){return(0,s.jsx)(o.Z.Item,{onClick:Q,children:e.title},t+1)}))]});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.Z.Title,{children:"Viewer Info"}),(0,s.jsx)("br",{}),(0,s.jsxs)(c.Z,{gutter:[16,16],justify:"space-around",children:[r&&(0,s.jsx)(l.Z,{span:8,md:8,children:(0,s.jsx)(k.m,{title:"Current viewers",value:p.toString(),prefix:(0,s.jsx)(h.Z,{})})}),(0,s.jsx)(l.Z,{md:r?8:12,children:(0,s.jsx)(k.m,{title:r?"Max viewers this stream":"Max viewers last stream",value:y.toString(),prefix:(0,s.jsx)(h.Z,{})})}),(0,s.jsx)(l.Z,{md:r?8:12,children:(0,s.jsx)(k.m,{title:"All-time max viewers",value:g.toString(),prefix:(0,s.jsx)(h.Z,{})})})]}),!I.length&&(0,s.jsx)(d.Z,{style:{marginTop:"10px"},banner:!0,message:"Please wait",description:"No viewer data has been collected yet.",type:"info"}),(0,s.jsxs)(f.Z,{spinning:!I.length||C,children:[(0,s.jsx)(v.Z,{overlay:U,trigger:["click"],children:(0,s.jsxs)("button",{type:"button",style:{float:"right",background:"transparent",border:"unset"},children:[V.title," ",(0,s.jsx)(x.Z,{})]})}),I.length>0&&(0,s.jsx)(S.k,{title:"Viewers",data:I,color:"#2087E2",unit:""}),(0,s.jsx)(T,{data:A})]})]})}}},function(e){e.O(0,[2757,7330,7266,355,8091,2944,6265,5938,428,2139,7910,9774,2888,179],(function(){return t=92794,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([[6109],{87547:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(1413),a=r(67294),s={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"},i=r(42135),o=function(e,t){return a.createElement(i.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:s}))};o.displayName="UserOutlined";var u=a.forwardRef(o)},77349:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(83946),a=r(19013),s=r(13882);function i(e,t){(0,s.Z)(2,arguments);var r=(0,a.Z)(e),i=(0,n.Z)(t);return isNaN(i)?new Date(NaN):i?(r.setDate(r.getDate()+i),r):r}},11640:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(83946),a=r(19013),s=r(13882);function i(e,t){(0,s.Z)(2,arguments);var r=(0,a.Z)(e),i=(0,n.Z)(t);if(isNaN(i))return new Date(NaN);if(!i)return r;var o=r.getDate(),u=new Date(r.getTime());u.setMonth(r.getMonth()+i+1,0);var c=u.getDate();return o>=c?u:(r.setFullYear(u.getFullYear(),u.getMonth(),o),r)}},92794:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/viewer-info",function(){return r(80961)}])},51222:function(e,t,r){"use strict";r.d(t,{k:function(){return l}});var n=r(85893),a=r(29217),s=r(92616),i=r.n(s),o=r(58091),u=r(60727);function c(e){var t={};return e.forEach((function(e){var r=new Date(e.time),n=(0,o.Z)(r,"H:mma");t[n]=e.value})),t}i().use(a.Z);var l=function(e){var t=e.data,r=e.title,a=e.color,s=e.unit,i=e.dataCollections,o=e.yFlipped,l=e.yLogarithmic,d=[];t&&t.length>0&&d.push({name:r,color:a,data:c(t)}),i.forEach((function(e){d.push({name:e.name,data:c(e.data),color:e.color,dataset:e.options})}));var f={scales:{y:{reverse:!1,type:"linear"},x:{type:"time"}}};return f.scales.y.reverse=o,f.scales.y.type=l?"logarithmic":"linear",(0,n.jsx)("div",{className:"line-chart-container",children:(0,n.jsx)(u.wW,{xtitle:"Time",ytitle:r,suffix:s,legend:"bottom",color:a,data:d,download:r,library:f})})};l.defaultProps={dataCollections:[],data:[],title:"",yFlipped:!1,yLogarithmic:!1}},97206:function(e,t,r){"use strict";r.d(t,{m:function(){return h}});var n=r(26042),a=r(85893),s=r(84485),i=r(97910),o=r(74763),u=r(59652),c=s.Z.Text,l={title:"",value:0,prefix:null,suffix:null,color:"",progress:!1,centered:!1,formatter:null},d=function(e){var t=e.prefix,r=e.value,n=e.suffix,s=e.title;return(0,a.jsxs)("div",{children:[t,(0,a.jsx)("div",{children:(0,a.jsx)(c,{type:"secondary",children:s})}),(0,a.jsx)("div",{children:(0,a.jsxs)(c,{type:"secondary",children:[r,n||"%"]})})]})},f=function(e){var t=e.title,r=e.value,n=e.prefix,s=e.suffix,o=e.color,u=r>90?"red":o,c=(0,a.jsx)(d,{prefix:n,value:r,suffix:s,title:t});return(0,a.jsx)(i.Z,{type:"dashboard",percent:r,width:120,strokeColor:{"0%":o,"90%":u},format:function(){return c}})};f.defaultProps=l;var v=function(e){var t=e.title,r=e.value,n=e.prefix,s=e.formatter;return(0,a.jsx)(o.Z,{title:t,value:r,prefix:n,formatter:s})};v.defaultProps=l;var h=function(e){var t=e.progress,r=e.centered,s=t?f:v,i=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,a.jsx)(u.Z,{type:"inner",children:(0,a.jsx)("div",{style:i,children:(0,a.jsx)(s,(0,n.Z)({},e))})})};h.defaultProps=l},80961:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return I}});var n=r(47568),a=r(70655),s=r(85893),i=r(67294),o=r(66516),u=r(84485),c=r(25968),l=r(6226),d=r(14670),f=r(11382),v=r(38504),h=r(87547),x=r(80882),m=r(77349),Z=r(13882),p=r(83946);function g(e,t){(0,Z.Z)(2,arguments);var r=(0,p.Z)(t);return(0,m.Z)(e,-r)}var y=r(11640);function w(e,t){(0,Z.Z)(2,arguments);var r=(0,p.Z)(t);return(0,y.Z)(e,-r)}function j(e,t){if((0,Z.Z)(2,arguments),!t||"object"!==typeof t)return new Date(NaN);var r=t.years?(0,p.Z)(t.years):0,n=t.months?(0,p.Z)(t.months):0,a=t.weeks?(0,p.Z)(t.weeks):0,s=t.days?(0,p.Z)(t.days):0,i=t.hours?(0,p.Z)(t.hours):0,o=t.minutes?(0,p.Z)(t.minutes):0,u=t.seconds?(0,p.Z)(t.seconds):0,c=w(e,n+12*r),l=g(c,s+7*a),d=o+60*i,f=u+60*d,v=1e3*f,h=new Date(l.getTime()-v);return h}var D=r(19013);function N(e){(0,Z.Z)(1,arguments);var t=(0,D.Z)(e),r=t.getTime();return r}var S=r(51222),k=r(97206),C=r(10355),b=r(45938),_=r(2766);var T=function(e){var t=e.data,r=[{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,_.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,b.Z)(new Date(e))},sorter:function(e,t){return new Date(e.firstSeen).getTime()-new Date(t.firstSeen).getTime()},sortDirections:["descend","ascend"]}];return(0,s.jsx)(C.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:r,dataSource:t,size:"small",rowKey:"id"})},E=r(35159),P=r(58827);function I(){var e,t=(0,i.useContext)(E.aC)||{},r=t.online,m=t.broadcaster,p=t.viewerCount,g=t.overallPeakViewerCount,y=t.sessionPeakViewerCount;m&&m.time&&(e=new Date(m.time));var w=[{title:"Current stream",start:e},{title:"Last 12 hours",start:j(new Date,{hours:12})},{title:"Last 24 hours",start:j(new Date,{hours:24})},{title:"Last 7 days",start:j(new Date,{days:7})},{title:"Last 30 days",start:j(new Date,{days:30})},{title:"Last 3 months",start:j(new Date,{months:3})},{title:"Last 6 months",start:j(new Date,{months:6})}],D=(0,i.useState)(!0),C=D[0],b=D[1],_=(0,i.useState)([]),I=_[0],L=_[1],M=(0,i.useState)([]),A=M[0],F=M[1],O=(0,i.useState)(w[1]),V=O[0],z=O[1],B=function(){var e=(0,n.Z)((function(){var e,t,r,n,s;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),e="".concat(P.iV,"?windowStart=").concat(function(e){return(0,Z.Z)(1,arguments),Math.floor(N(e)/1e3)}(V.start)),[4,(0,P.rQ)(e)];case 1:return t=a.sent(),L(t),b(!1),[3,3];case 2:return r=a.sent(),console.log("==== error",r),[3,3];case 3:return a.trys.push([3,5,,6]),[4,(0,P.rQ)(P.a_)];case 4:return n=a.sent(),F(n),[3,6];case 5:return s=a.sent(),console.log("==== error",s),[3,6];case 6:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,i.useEffect)((function(){var e=null;return B(),r?(e=setInterval(B,6e4),function(){clearInterval(e)}):function(){return[]}}),[r,V]);var Q=function(e){var t=e.key;z(w[t])},U=(0,s.jsxs)(o.Z,{children:[r&&e&&(0,s.jsx)(o.Z.Item,{onClick:Q,children:w[0].title},"0"),w.slice(1).map((function(e,t){return(0,s.jsx)(o.Z.Item,{onClick:Q,children:e.title},t+1)}))]});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.Z.Title,{children:"Viewer Info"}),(0,s.jsx)("br",{}),(0,s.jsxs)(c.Z,{gutter:[16,16],justify:"space-around",children:[r&&(0,s.jsx)(l.Z,{span:8,md:8,children:(0,s.jsx)(k.m,{title:"Current viewers",value:p.toString(),prefix:(0,s.jsx)(h.Z,{})})}),(0,s.jsx)(l.Z,{md:r?8:12,children:(0,s.jsx)(k.m,{title:r?"Max viewers this stream":"Max viewers last stream",value:y.toString(),prefix:(0,s.jsx)(h.Z,{})})}),(0,s.jsx)(l.Z,{md:r?8:12,children:(0,s.jsx)(k.m,{title:"All-time max viewers",value:g.toString(),prefix:(0,s.jsx)(h.Z,{})})})]}),!I.length&&(0,s.jsx)(d.Z,{style:{marginTop:"10px"},banner:!0,message:"Please wait",description:"No viewer data has been collected yet.",type:"info"}),(0,s.jsxs)(f.Z,{spinning:!I.length||C,children:[(0,s.jsx)(v.Z,{overlay:U,trigger:["click"],children:(0,s.jsxs)("button",{type:"button",style:{float:"right",background:"transparent",border:"unset"},children:[V.title," ",(0,s.jsx)(x.Z,{})]})}),I.length>0&&(0,s.jsx)(S.k,{title:"Viewers",data:I,color:"#2087E2",unit:""}),(0,s.jsx)(T,{data:A})]})]})}}},function(e){e.O(0,[2757,7330,3927,384,355,8091,2944,6265,5938,428,2139,7910,9774,2888,179],(function(){return t=92794,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/webhooks-74e38177f6de73f1.js b/static/web/_next/static/chunks/pages/admin/webhooks-1531221c7b344c08.js similarity index 98% rename from static/web/_next/static/chunks/pages/admin/webhooks-74e38177f6de73f1.js rename to static/web/_next/static/chunks/pages/admin/webhooks-1531221c7b344c08.js index 3c94f10aa..895f4c964 100644 --- a/static/web/_next/static/chunks/pages/admin/webhooks-74e38177f6de73f1.js +++ b/static/web/_next/static/chunks/pages/admin/webhooks-1531221c7b344c08.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1234],{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 d}});var r=n(4942),o=n(87462),c=n(71002),a=n(94184),i=n.n(a),s=n(67294),l=n(53124),u=n(99134),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)),s.createElement("div",(0,o.Z)({},_,{style:(0,o.Z)((0,o.Z)({},A),P),className:T,ref:t}),k)}))},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 m}});var r=n(87462),o=n(4942),c=n(71002),a=n(97685),i=n(94184),s=n.n(i),l=n(67294),u=n(53124),f=n(98082),p=n(24308),d=n(93355),h=n(99134),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=null!=R[1]&&R[1]>0?R[1]/-2:void 0;if(M&&(W.marginLeft=M,W.marginRight=M),N){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=l.useMemo((function(){return{gutter:[D,U],wrap:j,supportFlexGap:N}}),[D,U,j,N]);return l.createElement(h.Z.Provider,{value:z},l.createElement("div",(0,r.Z)({},w,{className:I,style:(0,r.Z)((0,r.Z)({},W),y),ref:t}),Z))}))},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(4942),o=n(87462),c=n(97685),a=n(97937),i=n(94184),s=n.n(i),l=n(98423),u=n(67294),f=n(53124),p=n(98787),d=n(68349),h=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)),s.createElement("div",(0,o.Z)({},_,{style:(0,o.Z)((0,o.Z)({},A),P),className:T,ref:t}),k)}))},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 m}});var r=n(87462),o=n(4942),c=n(71002),a=n(97685),i=n(94184),s=n.n(i),l=n(67294),u=n(53124),f=n(98082),p=n(24308),d=n(93355),h=n(99134),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=null!=R[1]&&R[1]>0?R[1]/-2:void 0;if(M&&(W.marginLeft=M,W.marginRight=M),N){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=l.useMemo((function(){return{gutter:[D,U],wrap:j,supportFlexGap:N}}),[D,U,j,N]);return l.createElement(h.Z.Provider,{value:z},l.createElement("div",(0,r.Z)({},w,{className:I,style:(0,r.Z)((0,r.Z)({},W),y),ref:t}),Z))}))},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(4942),o=n(87462),c=n(97685),a=n(97937),i=n(94184),s=n.n(i),l=n(98423),u=n(67294),f=n(53124),p=n(98787),d=n(68349),h=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;function r(e,n,t,o){e.addEventListener?e.addEventListener(n,t,o):e.attachEvent&&e.attachEvent("on".concat(n),(function(){t(window.event)}))}function i(e,n){for(var t=n.slice(0,n.length-1),o=0;o=0;)n[t-1]+=",",n.splice(t,1),t=n.lastIndexOf("");return n}for(var a={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":o?173:189,"=":o?61:187,";":o?59:186,"'":222,"[":219,"]":221,"\\":220},l={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},s={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},u={16:!1,18:!1,17:!1,91:!1},f={},d=1;d<20;d++)a["f".concat(d)]=111+d;var p=[],y=!1,h="all",v=[],m=function(e){return a[e.toLowerCase()]||l[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function g(e){h=e||"all"}function b(){return h||"all"}var w=function(e){var n=e.key,t=e.scope,o=e.method,r=e.splitKey,a=void 0===r?"+":r;c(n).forEach((function(e){var n=e.split(a),r=n.length,c=n[r-1],s="*"===c?"*":m(c);if(f[s]){t||(t=b());var u=r>1?i(l,n):[];f[s]=f[s].filter((function(e){return!((!o||e.method===o)&&e.scope===t&&function(e,n){for(var t=e.length>=n.length?e:n,o=e.length>=n.length?n:e,r=!0,i=0;i0,u)Object.prototype.hasOwnProperty.call(u,i)&&(!u[i]&&n.mods.indexOf(+i)>-1||u[i]&&-1===n.mods.indexOf(+i))&&(r=!1);(0!==n.mods.length||u[16]||u[18]||u[17]||u[91])&&!r&&"*"!==n.shortcut||!1===n.method(e,n)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function O(e,n){var t=f["*"],o=e.keyCode||e.which||e.charCode;if(E.filter.call(this,e)){if(93!==o&&224!==o||(o=91),-1===p.indexOf(o)&&229!==o&&p.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(n){var t=s[n];e[n]&&-1===p.indexOf(t)?p.push(t):!e[n]&&p.indexOf(t)>-1?p.splice(p.indexOf(t),1):"metaKey"===n&&e[n]&&3===p.length&&(e.ctrlKey||e.shiftKey||e.altKey||(p=p.slice(p.indexOf(t))))})),o in u){for(var r in u[o]=!0,l)l[r]===o&&(E[r]=!0);if(!t)return}for(var i in u)Object.prototype.hasOwnProperty.call(u,i)&&(u[i]=e[s[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),u[17]=!0,u[18]=!0);var c=b();if(t)for(var a=0;a1&&(a=i(l,e)),(e="*"===(e=e[e.length-1])?"*":m(e))in f||(f[e]=[]),f[e].push({keyup:g,keydown:b,scope:s,mods:a,shortcut:o[h],method:t,key:o[h],splitKey:w,element:d});"undefined"!==typeof d&&!function(e){return v.indexOf(e)>-1}(d)&&window&&(v.push(d),r(d,"keydown",(function(e){O(e,d)}),k),y||(y=!0,r(window,"focus",(function(){p=[]}),k)),r(d,"keyup",(function(e){O(e,d),function(e){var n=e.keyCode||e.which||e.charCode,t=p.indexOf(n);if(t>=0&&p.splice(t,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),93!==n&&224!==n||(n=91),n in u)for(var o in u[n]=!1,l)l[o]===n&&(E[o]=!1)}(e)}),k))}var C={setScope:g,getScope:b,deleteScope:function(e,n){var t,o;for(var r in e||(e=b()),f)if(Object.prototype.hasOwnProperty.call(f,r))for(t=f[r],o=0;o1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(f).forEach((function(t){var o=f[t].find((function(t){return t.scope===n&&t.shortcut===e}));o&&o.method&&o.method()}))},unbind:function(e){if("undefined"===typeof e)Object.keys(f).forEach((function(e){return delete f[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&w(e)}));else if("object"===typeof e)e.key&&w(e);else if("string"===typeof e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())}(e)?d(!1):d(!0)},y=function(){var e=(0,v.Z)((function(){var e,n,o,r,i,a;return(0,w.__generator)(this,(function(l){switch(l.label){case 0:if(!u)return[2];f(!0),l.label=1;case 1:return l.trys.push([1,4,,5]),e=s.replace(/^@+/,""),(o={}).account=e,n=o,r={},[4,fetch("/api/remotefollow",(r.method="POST",r.body=JSON.stringify(n),r))];case 2:return[4,l.sent().json()];case 3:return(i=l.sent()).redirectUrl&&(window.open(i.redirectUrl,"_blank"),t()),i.success?i.redirectUrl?[3,5]:(j("Unable to follow."),f(!1),[2]):(j(i.message),f(!1),[2]);case 4:return a=l.sent(),j(a.message),[3,5];case 5:return f(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,o.jsxs)(oe.Z,{direction:"vertical",children:[(0,o.jsxs)("div",{className:ae().header,children:["By following this stream you'll get notified on the Fediverse when it goes live. Now is a great time to",(0,o.jsx)("a",{href:"https://owncast.online/join-fediverse",target:"_blank",rel:"noreferrer",children:"learn about the Fediverse"}),"if it's new to you."]}),(0,o.jsxs)(p.Z,{spinning:m,children:[g&&(0,o.jsx)(re.Z,{message:"Follow Error",description:g,type:"error",showIcon:!0}),(0,o.jsxs)("div",{className:ae().account,children:[(0,o.jsx)("img",{src:"/logo",alt:"logo",className:ae().logo}),(0,o.jsxs)("div",{className:ae().username,children:[(0,o.jsx)("div",{className:ae().name,children:r}),(0,o.jsx)("div",{children:n})]})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:ae().instructions,children:"Enter your username @server to follow"}),(0,o.jsx)(ie.Z,{value:n,size:"large",onChange:function(e){return _(e.target.value)},placeholder:"Your fediverse account @account@server",defaultValue:n}),(0,o.jsx)("div",{className:ae().footer,children:"You'll be redirected to your Fediverse server and asked to confirm the action."})]}),(0,o.jsxs)(oe.Z,{className:ae().buttons,children:[(0,o.jsx)(O.Z,{disabled:!u,type:"primary",onClick:y,children:"Follow"}),(0,o.jsx)(O.Z,{onClick:function(){window.open("https://owncast.online/join-fediverse","_blank")},type:"primary",children:"Join the Fediverse"})]})]})]})},ce=function(e){var t=(0,l.useState)(!1),n=t[0],r=t[1],s=(0,i.sJ)(c.g1),a=s.name,u=s.federation.account;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(O.Z,(0,te.Z)((0,ee.Z)({},e),{type:"primary",className:q().button,icon:(0,o.jsx)(ne.Z,{}),onClick:function(){return r(!0)},children:"Follow"})),(0,o.jsx)(D.u,{title:"Follow ".concat(a),visible:n,handleCancel:function(){return r(!1)},width:"550px",height:"200px",children:(0,o.jsx)(le,{account:u,name:a,handleClose:function(){return r(!1)}})})]})},ue=n(71578),de=function(e){var t=e.onClick;return(0,o.jsx)(O.Z,{type:"primary",className:"".concat(q().button),icon:(0,o.jsx)(ue.Z,{}),onClick:t,children:"Notify"})},pe=n(84485);function he(){return(he=(0,v.Z)((function(e,t,n){var o,r,i,s;return(0,w.__generator)(this,(function(a){switch(a.label){case 0:o="/api/notifications/register",(i={}).method="POST",i.headers={"Content-Type":"application/json"},i.body=JSON.stringify({channel:e,destination:t}),r=i,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch("".concat(o,"?accessToken=").concat(n),r)];case 2:return a.sent(),[3,4];case 3:return s=a.sent(),console.error(s),[3,4];case 4:return[2]}}))}))).apply(this,arguments)}function me(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),n=window.atob(t),o=new Uint8Array(n.length),r=0;r0&&s.map((function(e){return(0,o.jsxs)("span",{children:["#",e,"\xa0"]},e)}))}),(0,o.jsx)("div",{className:m()(Pe().socialLinks,Pe().row),children:(0,o.jsx)(Fe,{links:a})})]})]})})},Je=n(43125),Ee=d.Z.TabPane,Re=r.Z.Content,ze=function(e){var t=e.name,n=e.streamTitle,r=e.summary,i=e.tags,s=e.socialHandles,a=e.extraPageContent;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:L().lowerHalf,children:(0,o.jsx)(Ae,{name:t,title:n,summary:r,tags:i,links:s,logo:"/logo"})}),(0,o.jsx)("div",{className:L().lowerSection,children:(0,o.jsxs)(d.Z,{defaultActiveKey:"0",children:[(0,o.jsx)(Ee,{tab:"About",children:(0,o.jsx)(j,{content:a})},"2"),(0,o.jsx)(Ee,{tab:"Followers",children:(0,o.jsx)(T,{})},"3")]})})]})},Ie=function(e){var t=e.name,n=e.streamTitle,r=e.summary,i=e.tags,s=e.socialHandles,a=e.extraPageContent,l=e.messages,c=e.chatDisplayName,u=e.chatUserId,p=e.showChat;return(0,o.jsx)("div",{className:m()(L().lowerSectionMobile),children:(0,o.jsxs)(d.Z,{defaultActiveKey:"0",children:[p&&(0,o.jsx)(Ee,{tab:"Chat",children:(0,o.jsx)(H.u,{messages:l,usernameToHighlight:c,chatUserId:u,isModerator:!1,height:"40vh"})},"1"),(0,o.jsxs)(Ee,{tab:"About",children:[(0,o.jsx)(Ae,{name:t,title:n,summary:r,tags:i,links:s,logo:"/logo"}),(0,o.jsx)(j,{content:a})]},"2"),(0,o.jsx)(Ee,{tab:"Followers",children:(0,o.jsx)(T,{})},"3")]})})},Ue=function(){var e=(0,i.sJ)(c.Q),t=(0,i.sJ)(c.g1),n=(0,i.sJ)(c.pT),r=(0,i.sJ)(c.di),s=(0,u.Z)((0,i.FV)(c.hz),2),a=s[0],d=s[1],h=(0,i.sJ)(c.j$),m=(0,i.sJ)(c.YW),x=(0,i.sJ)(c.w4),g=(0,i.sJ)(c.uy),j=(0,i.sJ)(c.RI),v=j.viewerCount,w=j.lastConnectTime,y=j.lastDisconnectTime,b=j.streamTitle,N=t.extraPageContent,C=t.version,S=t.name,k=t.summary,Z=t.socialHandles,T=t.tags,M=t.externalActions,F=t.offlineMessage,H=t.chatDisabled,P=(0,l.useState)(!1),A=P[0],E=P[1],R=(0,l.useState)(!1),I=R[0],U=R[1],O=M.map((function(e){return(0,o.jsx)(K,{action:e},e.url)})),V=function(){U(!1),E(!1),(0,f.qQ)(f.dA.hasDisplayedNotificationModal,!0)},q=function(){var e=window.innerWidth;void 0===a&&d(e<=768),!a&&e<=768&&d(!0),a&&e>768&&d(!1)};(0,l.useEffect)((function(){!function(){var e=parseInt((0,f.$o)(f.dA.userVisitCount),10);Number.isNaN(e)&&(e=0),(0,f.qQ)(f.dA.userVisitCount,e+1),e>2&&!(0,f.$o)(f.dA.hasDisplayedNotificationModal)&&E(!0)}(),q(),window.addEventListener("resize",q)}),[]);var W=!e.appLoading&&"Please follow and ask to get notified when the stream is live.";F&&!e.appLoading&&(W=F);var Y=!e.appLoading&&"".concat(S," is currently offline"),G=!H&&r&&n;return(0,o.jsx)("div",{children:(0,o.jsxs)(p.Z,{className:L().loadingSpinner,size:"large",spinning:e.appLoading,children:[(0,o.jsxs)(Re,{className:L().root,children:[(0,o.jsxs)("div",{className:L().leftContent,children:[(0,o.jsxs)("div",{className:L().topSection,children:[m&&(0,o.jsx)(_.M,{source:"/hls/stream.m3u8",online:m}),!m&&!e.appLoading&&(0,o.jsx)($.R,{title:Y,text:W}),(0,o.jsx)(Je.X,{online:m,lastConnectTime:w,lastDisconnectTime:y,viewerCount:v})]}),(0,o.jsx)("div",{className:L().midSection,children:(0,o.jsxs)("div",{className:L().buttonsLogoTitleSection,children:[(0,o.jsxs)(B,{children:[O,(0,o.jsx)(ce,{size:"small"}),(0,o.jsx)(X,{visible:A,notificationClicked:function(){return U(!0)},notificationClosed:function(){return V()},children:(0,o.jsx)(de,{onClick:function(){return U(!0)}})})]}),(0,o.jsx)(D.u,{title:"Notify",visible:I,afterClose:function(){return V()},handleCancel:function(){return V()},children:(0,o.jsx)(Ne,{})})]})}),a&&n?(0,o.jsx)(Ie,{name:S,streamTitle:b,summary:k,tags:T,socialHandles:Z,extraPageContent:N,messages:h,chatDisplayName:x,chatUserId:g,showChat:G}):(0,o.jsx)(ze,{name:S,streamTitle:b,summary:k,tags:T,socialHandles:Z,extraPageContent:N})]}),G&&!a&&(0,o.jsx)(J,{})]}),(!a||!G)&&(0,o.jsx)(z,{version:C})]})})},Be=n(33052),Oe=n(85402),De=function(e){var t=e.title,n=e.message;return(0,o.jsx)(Oe.Z,{title:t,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,o.jsx)("p",{style:{fontSize:"1.3rem"},children:n})})},Ve=n(82670);var qe=function(){var e=(0,i.sJ)(c.g1),t=e.name,n=e.title,s=e.customStyles,u=(0,i.sJ)(c.di),d=(0,i.sJ)(c.ap),p=(0,l.useRef)(null),h=e.chatDisabled;(0,l.useEffect)((function(){!function(e){var t=function(e){e.setAttribute("rel","noopener noreferrer ")};e.querySelectorAll("a").forEach((function(e){return t(e)})),new MutationObserver((function(e){var n=!0,o=!1,r=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var a=i.value,l=!0,c=!1,u=void 0;try{for(var d,p=a.addedNodes[Symbol.iterator]();!(l=(d=p.next()).done);l=!0){var h=d.value;(0,Ve.Z)(h,HTMLElement)&&"a"===h.tagName.toLowerCase()&&t(h)}}catch(m){c=!0,u=m}finally{try{l||null==p.return||p.return()}finally{if(c)throw u}}}}catch(m){o=!0,r=m}finally{try{n||null==s.return||s.return()}finally{if(o)throw r}}})).observe(e,{attributes:!1,childList:!0,subtree:!0})}(p.current)}),[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(a(),{children:[(0,o.jsx)("meta",{name:"description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"og:title",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"og:site_name",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"og:url",content:"{{.RequestedURL}}"}),(0,o.jsx)("meta",{property:"og:description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"og:type",content:"video.other"}),(0,o.jsx)("meta",{property:"video:tag",content:"{{.TagsString}}"}),(0,o.jsx)("meta",{property:"og:image",content:"{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:url",content:"{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:alt",content:"{{.Image}}"}),(0,o.jsx)("meta",{property:"og:video",content:"{{.RequestedURL}}embed/video"}),(0,o.jsx)("meta",{property:"og:video:secure_url",content:"{{.RequestedURL}}embed/video"}),(0,o.jsx)("meta",{property:"og:video:height",content:"315"}),(0,o.jsx)("meta",{property:"og:video:width",content:"560"}),(0,o.jsx)("meta",{property:"og:video:type",content:"text/html"}),(0,o.jsx)("meta",{property:"og:video:actor",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"twitter:title",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"twitter:url",content:"{{.RequestedURL}}"}),(0,o.jsx)("meta",{property:"twitter:description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"twitter:image",content:"{{.Image}}"}),(0,o.jsx)("meta",{property:"twitter:card",content:"player"}),(0,o.jsx)("meta",{property:"twitter:player",content:"{{.RequestedURL}}embed/video"}),(0,o.jsx)("meta",{property:"twitter:player:width",content:"560"}),(0,o.jsx)("meta",{property:"twitter:player:height",content:"315"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"57x57",href:"/img/favicon/apple-icon-57x57.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"60x60",href:"/img/favicon/apple-icon-60x60.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"72x72",href:"/img/favicon/apple-icon-72x72.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"76x76",href:"/img/favicon/apple-icon-76x76.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"114x114",href:"/img/favicon/apple-icon-114x114.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/img/favicon/apple-icon-120x120.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"144x144",href:"/img/favicon/apple-icon-144x144.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/img/favicon/apple-icon-152x152.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/favicon/apple-icon-180x180.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/img/favicon/android-icon-192x192.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/img/favicon/favicon-96x96.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/favicon/favicon-16x16.png"}),(0,o.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,o.jsx)("link",{href:"/api/auth/provider/indieauth"}),(0,o.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,o.jsx)("meta",{name:"msapplication-TileImage",content:"/img/favicon/ms-icon-144x144.png"}),(0,o.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,o.jsx)("style",{children:s}),(0,o.jsx)("script",{dangerouslySetInnerHTML:{__html:"\n\twindow.statusHydration = {{.StatusJSON}};\n\twindow.configHydration = {{.ServerConfigJSON}};\n\t"}})]}),(0,o.jsx)(c.me,{}),(0,o.jsxs)(r.Z,{ref:p,children:[(0,o.jsx)(Be.h,{name:n||t,chatAvailable:u,chatDisabled:h}),(0,o.jsx)(Ue,{}),d&&(0,o.jsx)(De,{title:d.title,message:d.message})]})]})};function Ke(){return(0,o.jsx)(qe,{})}},36879:function(e){e.exports={button:"ActionButton_button__z5Z2c",icon:"ActionButton_icon__EPp7Q"}},69767:function(e){e.exports={row:"ActionButtonRow_row__SiEGe"}},74688:function(e){e.exports={root:"ContentHeader_root__HaUG0",row:"ContentHeader_row__9Q8gH",logoTitleSection:"ContentHeader_logoTitleSection__Z8pUc",logo:"ContentHeader_logo__wo_HN",titleSection:"ContentHeader_titleSection___6Y15",title:"ContentHeader_title__E_DsI",subtitle:"ContentHeader_subtitle__n1Wew",tagList:"ContentHeader_tagList__rx3jY"}},5225:function(e){e.exports={pushPreview:"BrowserNotifyModal_pushPreview__4Og4q",inner:"BrowserNotifyModal_inner__uhFDw",title:"BrowserNotifyModal_title__dd_Lh",permissionLine:"BrowserNotifyModal_permissionLine__K8nyJ",buttonRow:"BrowserNotifyModal_buttonRow__oxJUg",disabled:"BrowserNotifyModal_disabled__v88lb",allow:"BrowserNotifyModal_allow__M9AWC"}},13840:function(e){e.exports={header:"FollowModal_header__la1ji",buttons:"FollowModal_buttons__tt4Mc",instructions:"FollowModal_instructions__HiKFF",footer:"FollowModal_footer__AjucH",account:"FollowModal_account__cmHkm",logo:"FollowModal_logo__Ew8xK",username:"FollowModal_username__A_OTw",name:"FollowModal_name__Sf_TP"}},63291:function(e){e.exports={root:"Content_root__h1mNK",topSection:"Content_topSection__JIZi0",lowerSection:"Content_lowerSection__BZHYI",lowerSectionMobile:"Content_lowerSectionMobile__hRr0_",leftCol:"Content_leftCol__U2TDq",loadingSpinner:"Content_loadingSpinner__mDlYC"}},28105:function(e){e.exports={pageContentContainer:"CustomPageContent_pageContentContainer__EG4tU",customPageContent:"CustomPageContent_customPageContent__Mr981",summary:"CustomPageContent_summary___Zgps"}},35603:function(e){e.exports={footer:"Footer_footer__mPuvf",links:"Footer_links__7bBxV",item:"Footer_item__rXxSr"}},7918:function(e){e.exports={root:"Logo_root__jKiJC",container:"Logo_container__A4UYT",image:"Logo_image__Ahkom"}},18668:function(e){e.exports={contentbutton:"NotifyReminderPopup_contentbutton__a_tsp",closebutton:"NotifyReminderPopup_closebutton__GVcP3",title:"NotifyReminderPopup_title__Dm9Iy"}},75347:function(e){e.exports={root:"Sidebar_root__8HE0A"}},52740:function(e){e.exports={link:"SocialLinks_link___CcSm",links:"SocialLinks_links__gOAb7"}},40305:function(e){e.exports={follower:"SingleFollower_follower__EyBDI",avatar:"SingleFollower_avatar__V9jHG",account:"SingleFollower_account__Z66vo",placeholder:"SingleFollower_placeholder__CgsfJ"}}},function(e){e.O(0,[1272,8700,2544,7330,3927,384,2944,6265,5938,9372,2865,2429,1681,1082,7900,8521,1899,143,2854,3052,9774,2888,179],(function(){return t=48312,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/index-c9b695d6bbdb5b4e.js b/static/web/_next/static/chunks/pages/index-c9b695d6bbdb5b4e.js deleted file mode 100644 index dc642ce63..000000000 --- a/static/web/_next/static/chunks/pages/index-c9b695d6bbdb5b4e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(40434)}])},40434:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Hn}});var r=t(85893),i=t(97183),o=t(4480),s=t(9008),a=t.n(s),l=t(67294),c=t(1899),u=t(828),d=t(2944),h=t(11382),p=t(94184),m=t.n(p),f=t(73682),x=t(28105),g=t.n(x),v=function(e){var n=e.content;return(0,r.jsx)("div",{className:g().pageContentContainer,children:(0,r.jsx)("div",{className:g().customPageContent,dangerouslySetInnerHTML:{__html:n}})})},j=t(83818),_=t(47568),y=t(70655),w=t(25968),b=t(6226),C=t(3698),N=t(24093),Z=t(40305),S=t.n(Z),k=function(e){var n=e.follower;return(0,r.jsx)("div",{className:S().follower,children:(0,r.jsx)("a",{href:n.link,target:"_blank",rel:"noreferrer",children:(0,r.jsxs)(w.Z,{wrap:!1,children:[(0,r.jsx)(b.Z,{span:6,children:(0,r.jsx)(N.C,{src:n.image,alt:"Avatar",className:S().avatar,children:(0,r.jsx)("img",{src:"/logo",alt:"Logo",className:S().placeholder})})}),(0,r.jsxs)(b.Z,{children:[(0,r.jsx)(w.Z,{children:n.name}),(0,r.jsx)(w.Z,{className:S().account,children:n.username})]})]})})})},A=function(){var e=(0,l.useState)([]),n=e[0],t=e[1],i=(0,l.useState)(0),o=i[0],s=i[1],a=(0,l.useState)(1),c=a[0],u=a[1],d=Math.ceil(o/24),h=function(){var e=(0,_.Z)((function(){var e,n;return(0,y.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,fetch("".concat("/api/followers","?page=").concat(c))];case 1:return[4,r.sent().json()];case 2:return e=r.sent(),t(e.response),s(e.total),[3,4];case 3:return n=r.sent(),console.error(n),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){h()}),[]),(0,l.useEffect)((function(){h()}),[c]);var p=(0,r.jsx)("div",{children:"A message explaining how to follow goes here since there are no followers."});return(null===n||void 0===n?void 0:n.length)?(0,r.jsxs)("div",{className:S().followers,children:[(0,r.jsx)(w.Z,{wrap:!0,gutter:[10,10],justify:"space-around",children:n.map((function(e){return(0,r.jsx)(b.Z,{children:(0,r.jsx)(k,{follower:e},e.link)})}))}),(0,r.jsx)(C.Z,{current:c,pageSize:24,total:d||1,onChange:function(e){u(e)},hideOnSinglePage:!0})]}):p},T=t(63291),F=t.n(T),I=t(87412),L=t(50143),M=t(75347),H=t.n(M),P=function(){var e=(0,o.sJ)(c.w4),n=(0,o.sJ)(c.uy),t=(0,o.sJ)(c.fE),i=(0,o.sJ)(c.pH);return(0,r.jsx)(I.ZP,{className:H().root,collapsedWidth:0,width:320,children:(0,r.jsx)(L.u,{messages:i,usernameToHighlight:e,chatUserId:n,isModerator:t})})},J=t(35603),E=t.n(J),O=function(e){var n=e.version;return(0,r.jsxs)("div",{className:E().footer,children:[(0,r.jsxs)("div",{className:E().text,children:["Powered by ",(0,r.jsx)("a",{href:"https://owncast.online",children:n})]}),(0,r.jsxs)("div",{className:E().links,children:[(0,r.jsx)("div",{className:E().item,children:(0,r.jsx)("a",{href:"https://owncast.online/docs",target:"_blank",rel:"noreferrer",children:"Documentation"})}),(0,r.jsx)("div",{className:E().item,children:(0,r.jsx)("a",{href:"https://owncast.online/help",target:"_blank",rel:"noreferrer",children:"Contribute"})}),(0,r.jsx)("div",{className:E().item,children:(0,r.jsx)("a",{href:"https://github.com/owncast/owncast",target:"_blank",rel:"noreferrer",children:"Source"})})]})]})},R=t(69767),z=t.n(R),U=function(e){var n=e.children;return(0,r.jsx)("div",{className:"".concat(z().row),children:n})},B=t(71577),D=t(85402),V=t(26303),Y=t(78890),K=t.n(Y),q=function(e){var n=e.title,t=e.url,i=e.visible,o=e.handleOk,s=e.handleCancel,a=e.afterClose,c=e.height,u=e.width,d=e.children,p=(0,l.useState)(!!t),m=p[0],f=p[1],x={padding:"0px",minHeight:c},g=t&&(0,r.jsx)("iframe",{title:n,src:t,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,onLoad:function(){return f(!1)}}),v=m?"none":"inline";return(0,r.jsx)(D.Z,{title:n,visible:i,onOk:o,onCancel:s,afterClose:a,bodyStyle:x,width:u,zIndex:9999,footer:null,centered:!0,destroyOnClose:!0,children:(0,r.jsxs)(r.Fragment,{children:[m&&(0,r.jsx)(V.Z,{active:m,style:{padding:"10px"},paragraph:{rows:10}}),g&&(0,r.jsx)("div",{style:{display:v},children:g}),d&&(0,r.jsx)("div",{className:K().content,children:d}),m&&(0,r.jsx)(h.Z,{className:K().spinner,spinning:m,size:"large"})]})})};q.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0,height:"40vh",width:"70%"};var G=t(36879),W=t.n(G),Q=function(e){var n=e.action,t=n.url,i=n.title,o=n.description,s=n.icon,a=n.color,c=n.openExternally,u=e.primary,d=void 0===u||u,h=(0,l.useState)(!1),p=h[0],m=h[1];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(B.Z,{type:d?"primary":"default",className:"".concat(W().button),onClick:function(){c?window.open(t,"_blank"):m(!0)},style:{backgroundColor:a},children:[(0,r.jsx)("img",{src:s,className:"".concat(W().icon),alt:o}),i]}),(0,r.jsx)(q,{title:o||i,url:t,visible:p,height:"80vh",handleCancel:function(){return m(!1)}})]})},X=t(55241),$=t(97937),ee=t(18668),ne=t.n(ee),te=function(e){var n=e.children,t=e.visible,i=e.notificationClicked,o=e.notificationClosed,s=(0,l.useState)(t),a=s[0],c=s[1],u=(0,l.useState)(!1),d=u[0],h=u[1];(0,l.useEffect)((function(){c(t)}),[t]),(0,l.useEffect)((function(){h(!0)}),[]);var p=(0,r.jsx)("div",{className:ne().title,children:"Stay updated!"}),m=function(e){e.stopPropagation(),i()},f=(0,r.jsxs)("div",{onClick:m,onKeyDown:m,role:"menuitem",tabIndex:0,children:[(0,r.jsx)("button",{type:"button",className:ne().closebutton,onClick:function(e){e.stopPropagation(),c(!1),o()},children:(0,r.jsx)($.Z,{})}),(0,r.jsxs)("div",{className:ne().contentbutton,children:["Click and never miss",(0,r.jsx)("br",{}),"future streams!"]})]});return d&&(0,r.jsx)(X.Z,{placement:"topLeft",defaultVisible:a,visible:a,destroyTooltipOnHide:!0,title:p,content:f,overlayInnerStyle:{borderRadius:"5px",cursor:"pointer",paddingTop:"10px",paddingRight:"10px",fontSize:"16px"},children:n})},re=t(1698),ie=t(26042),oe=t(69396),se=t(34447),ae=t(26713),le=t(14670),ce=t(69677),ue=t(13840),de=t.n(ue);var he=function(e){var n=e.handleClose,t=e.account,i=e.name,o=(0,l.useState)(null),s=o[0],a=o[1],c=(0,l.useState)(!1),u=c[0],d=c[1],p=(0,l.useState)(!1),m=p[0],f=p[1],x=(0,l.useState)(null),g=x[0],v=x[1],j=function(e){a(e),!function(e){var n=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(n).toLowerCase())}(e)?d(!1):d(!0)},w=function(){var e=(0,_.Z)((function(){var e,t,r,i,o,a;return(0,y.__generator)(this,(function(l){switch(l.label){case 0:if(!u)return[2];f(!0),l.label=1;case 1:return l.trys.push([1,4,,5]),e=s.replace(/^@+/,""),(r={}).account=e,t=r,i={},[4,fetch("/api/remotefollow",(i.method="POST",i.body=JSON.stringify(t),i))];case 2:return[4,l.sent().json()];case 3:return(o=l.sent()).redirectUrl&&(window.open(o.redirectUrl,"_blank"),n()),o.success?o.redirectUrl?[3,5]:(v("Unable to follow."),f(!1),[2]):(v(o.message),f(!1),[2]);case 4:return a=l.sent(),v(a.message),[3,5];case 5:return f(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,r.jsxs)(ae.Z,{direction:"vertical",children:[(0,r.jsxs)("div",{className:de().header,children:["By following this stream you'll get notified on the Fediverse when it goes live. Now is a great time to",(0,r.jsx)("a",{href:"https://owncast.online/join-fediverse",target:"_blank",rel:"noreferrer",children:"learn about the Fediverse"}),"if it's new to you."]}),(0,r.jsxs)(h.Z,{spinning:m,children:[g&&(0,r.jsx)(le.Z,{message:"Follow Error",description:g,type:"error",showIcon:!0}),(0,r.jsxs)("div",{className:de().account,children:[(0,r.jsx)("img",{src:"/logo",alt:"logo",className:de().logo}),(0,r.jsxs)("div",{className:de().username,children:[(0,r.jsx)("div",{className:de().name,children:i}),(0,r.jsx)("div",{children:t})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:de().instructions,children:"Enter your username @server to follow"}),(0,r.jsx)(ce.Z,{value:t,size:"large",onChange:function(e){return j(e.target.value)},placeholder:"Your fediverse account @account@server",defaultValue:t}),(0,r.jsx)("div",{className:de().footer,children:"You'll be redirected to your Fediverse server and asked to confirm the action."})]}),(0,r.jsxs)(ae.Z,{className:de().buttons,children:[(0,r.jsx)(B.Z,{disabled:!u,type:"primary",onClick:w,children:"Follow"}),(0,r.jsx)(B.Z,{onClick:function(){window.open("https://owncast.online/join-fediverse","_blank")},type:"primary",children:"Join the Fediverse"})]})]})]})},pe=function(e){var n=(0,l.useState)(!1),t=n[0],i=n[1],s=(0,o.sJ)(c.g1),a=s.name,u=s.federation.account;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B.Z,(0,oe.Z)((0,ie.Z)({},e),{type:"primary",className:W().button,icon:(0,r.jsx)(se.Z,{}),onClick:function(){return i(!0)},children:"Follow"})),(0,r.jsx)(q,{title:"Follow ".concat(a),visible:t,handleCancel:function(){return i(!1)},width:"550px",height:"200px",children:(0,r.jsx)(he,{account:u,name:a,handleClose:function(){return i(!1)}})})]})},me=t(71578),fe=function(e){var n=e.onClick;return(0,r.jsx)(B.Z,{type:"primary",className:"".concat(W().button),icon:(0,r.jsx)(me.Z,{}),onClick:n,children:"Notify"})},xe=t(84485);function ge(){return(ge=(0,_.Z)((function(e,n,t){var r,i,o,s;return(0,y.__generator)(this,(function(a){switch(a.label){case 0:r="/api/notifications/register",(o={}).method="POST",o.headers={"Content-Type":"application/json"},o.body=JSON.stringify({channel:e,destination:n}),i=o,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch("".concat(r,"?accessToken=").concat(t),i)];case 2:return a.sent(),[3,4];case 3:return s=a.sent(),console.error(s),[3,4];case 4:return[2]}}))}))).apply(this,arguments)}function ve(e){for(var n=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),t=window.atob(n),r=new Uint8Array(t.length),i=0;i0&&s.map((function(e){return(0,r.jsxs)("span",{children:["#",e,"\xa0"]},e)}))}),(0,r.jsx)("div",{className:m()(Ee().socialLinks,Ee().row),children:(0,r.jsx)(Pe,{links:a})})]})]})})},Re=t(43125),ze=d.Z.TabPane,Ue=i.Z.Content,Be=function(e){var n=e.name,t=e.streamTitle,i=e.summary,o=e.tags,s=e.socialHandles,a=e.extraPageContent;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:F().lowerHalf,children:(0,r.jsx)(Oe,{name:n,title:t,summary:i,tags:o,links:s,logo:"/logo"})}),(0,r.jsx)("div",{className:F().lowerSection,children:(0,r.jsxs)(d.Z,{defaultActiveKey:"0",children:[(0,r.jsx)(ze,{tab:"About",children:(0,r.jsx)(v,{content:a})},"2"),(0,r.jsx)(ze,{tab:"Followers",children:(0,r.jsx)(A,{})},"3")]})})]})},De=function(e){var n=e.name,t=e.streamTitle,i=e.summary,o=e.tags,s=e.socialHandles,a=e.extraPageContent,l=e.messages,c=e.chatDisplayName,u=e.chatUserId,h=e.showChat;return(0,r.jsx)("div",{className:m()(F().lowerSectionMobile),children:(0,r.jsxs)(d.Z,{defaultActiveKey:"0",children:[h&&(0,r.jsx)(ze,{tab:"Chat",children:(0,r.jsx)(L.u,{messages:l,usernameToHighlight:c,chatUserId:u,isModerator:!1,height:"40vh"})},"1"),(0,r.jsxs)(ze,{tab:"About",children:[(0,r.jsx)(Oe,{name:n,title:t,summary:i,tags:o,links:s,logo:"/logo"}),(0,r.jsx)(v,{content:a})]},"2"),(0,r.jsx)(ze,{tab:"Followers",children:(0,r.jsx)(A,{})},"3")]})})},Ve=function(){var e=(0,o.sJ)(c.Q),n=(0,o.sJ)(c.g1),t=(0,o.sJ)(c.pT),i=(0,o.sJ)(c.di),s=(0,u.Z)((0,o.FV)(c.hz),2),a=s[0],d=s[1],p=(0,o.sJ)(c.j$),m=(0,o.sJ)(c.YW),x=(0,o.sJ)(c.w4),g=(0,o.sJ)(c.uy),v=(0,o.sJ)(c.RI),_=v.viewerCount,y=v.lastConnectTime,w=v.lastDisconnectTime,b=v.streamTitle,C=n.extraPageContent,N=n.version,Z=n.name,S=n.summary,k=n.socialHandles,A=n.tags,T=n.externalActions,I=n.offlineMessage,L=n.chatDisabled,M=(0,l.useState)(!1),H=M[0],J=M[1],E=(0,l.useState)(!1),R=E[0],z=E[1],B=T.map((function(e){return(0,r.jsx)(Q,{action:e},e.url)})),D=function(){z(!1),J(!1),(0,f.qQ)(f.dA.hasDisplayedNotificationModal,!0)},V=function(){var e=window.innerWidth;void 0===a&&d(e<=768),!a&&e<=768&&d(!0),a&&e>768&&d(!1)};(0,l.useEffect)((function(){!function(){var e=parseInt((0,f.$o)(f.dA.userVisitCount),10);Number.isNaN(e)&&(e=0),(0,f.qQ)(f.dA.userVisitCount,e+1),e>2&&!(0,f.$o)(f.dA.hasDisplayedNotificationModal)&&J(!0)}(),V(),window.addEventListener("resize",V)}),[]);var Y=!e.appLoading&&"Please follow and ask to get notified when the stream is live.";I&&!e.appLoading&&(Y=I);var K=!e.appLoading&&"".concat(Z," is currently offline"),G=!L&&i&&t;return(0,r.jsx)("div",{children:(0,r.jsxs)(h.Z,{className:F().loadingSpinner,size:"large",spinning:e.appLoading,children:[(0,r.jsxs)(Ue,{className:F().root,children:[(0,r.jsxs)("div",{className:F().leftContent,children:[(0,r.jsxs)("div",{className:F().topSection,children:[m&&(0,r.jsx)(j.M,{source:"/hls/stream.m3u8",online:m}),!m&&!e.appLoading&&(0,r.jsx)(re.R,{title:K,text:Y}),(0,r.jsx)(Re.X,{online:m,lastConnectTime:y,lastDisconnectTime:w,viewerCount:_})]}),(0,r.jsx)("div",{className:F().midSection,children:(0,r.jsxs)("div",{className:F().buttonsLogoTitleSection,children:[(0,r.jsxs)(U,{children:[B,(0,r.jsx)(pe,{size:"small"}),(0,r.jsx)(te,{visible:H,notificationClicked:function(){return z(!0)},notificationClosed:function(){return D()},children:(0,r.jsx)(fe,{onClick:function(){return z(!0)}})})]}),(0,r.jsx)(q,{title:"Notify",visible:R,afterClose:function(){return D()},handleCancel:function(){return D()},children:(0,r.jsx)(ke,{})})]})}),a&&t?(0,r.jsx)(De,{name:Z,streamTitle:b,summary:S,tags:A,socialHandles:k,extraPageContent:C,messages:p,chatDisplayName:x,chatUserId:g,showChat:G}):(0,r.jsx)(Be,{name:Z,streamTitle:b,summary:S,tags:A,socialHandles:k,extraPageContent:C})]}),G&&!a&&(0,r.jsx)(P,{})]}),(!a||!G)&&(0,r.jsx)(O,{version:N})]})})},Ye=t(94199),Ke=t(20550),qe=t(66516),Ge=t(38504),We=t(86548),Qe=t(94149),Xe=t(38545),$e=t(87547),en=t(39398),nn=t(49218),tn=t(47093),rn=t.n(tn),on=t(29815),sn=t(38939),an=t(11622),ln=sn.Z.Option,cn=function(e){var n=e.color,t={textAlign:"center",backgroundColor:"var(--theme-color-users-".concat(n,")"),width:"100%",height:"100%"};return(0,r.jsx)("div",{style:t})},un=function(){var e=(0,o.sJ)(c.Gt),n=(0,o.sJ)(c.w4),t=(0,o.sJ)(c.nk)||0,i=(0,l.useState)(n),s=i[0],a=i[1],u=s!==n&&""!==s&&(null===e||void 0===e?void 0:e.isConnected()),d=(0,on.Z)(Array(8)).map((function(e,n){return n}));return(0,r.jsxs)("div",{children:["Your chat display name is what people see when you send chat messages. Other information can go here to mention auth, and stuff.",(0,r.jsx)(ce.Z,{value:s,onChange:function(e){return a(e.target.value)},placeholder:"Your chat display name",maxLength:30,showCount:!0,defaultValue:n}),(0,r.jsx)(B.Z,{disabled:!u,onClick:function(){var n={type:an.C.NAME_CHANGE,newName:s};e.send(n)},children:"Change name"}),(0,r.jsxs)("div",{children:["Your Color",(0,r.jsx)(sn.Z,{style:{width:120},onChange:function(n){var t={type:an.C.COLOR_CHANGE,newColor:Number(n)};e.send(t)},defaultValue:t.toString(),getPopupContainer:function(e){return e.parentElement},children:d.map((function(e){return(0,r.jsx)(ln,{title:e,children:(0,r.jsx)(cn,{color:e})},e.toString())}))})]})]})},dn=t(54907),hn=t(19411),pn=dn.Z.Panel,mn=xe.Z.Link,fn=function(e){var n=e.authenticated,t=e.displayName,i=e.accessToken,o=(0,l.useState)(null),s=o[0],a=o[1],c=(0,l.useState)(!1),u=c[0],d=c[1],p=(0,l.useState)(!1),m=p[0],f=p[1],x=(0,l.useState)(""),g=x[0],v=x[1],j=n?(0,r.jsxs)("span",{children:[(0,r.jsx)("b",{children:"You are already authenticated"}),". However, you can add other domains or log in as a different user."]}):(0,r.jsxs)("span",{children:["Use your own domain to authenticate ",(0,r.jsx)("span",{children:t})," or login as a previously"," ","authenticated chat user using IndieAuth."]}),w=s;w&&w.includes("url does not support indieauth")&&(w="The provided URL is either invalid or does not support IndieAuth.");var b=function(){var e=(0,_.Z)((function(){var e,n,t,r,o,s,l,c;return(0,y.__generator)(this,(function(u){switch(u.label){case 0:if(!m)return[2];d(!0),u.label=1;case 1:return u.trys.push([1,4,,5]),e="/api/auth/indieauth?accessToken=".concat(i),n="https://".concat(g),(r={}).authHost=n,t=r,o={},[4,fetch(e,(o.method="POST",o.headers={Accept:"application/json","Content-Type":"application/json"},o.body=JSON.stringify(t),o))];case 2:return[4,u.sent().json()];case 3:return(s=u.sent()).message?(a(s.message),d(!1),[2]):s.redirect?(s.redirect&&(l=s.redirect,window.location=l),[3,5]):(a("Auth provider did not return a redirect URL."),d(!1),[2]);case 4:return c=u.sent(),a(c.message),[3,5];case 5:return d(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,r.jsx)(h.Z,{spinning:u,children:(0,r.jsxs)(ae.Z,{direction:"vertical",children:[j,w&&(0,r.jsx)(le.Z,{message:"Error",description:w,type:"error",showIcon:!0}),(0,r.jsx)("div",{children:"Your domain"}),(0,r.jsx)(ce.Z.Search,{addonBefore:"https://",onInput:function(e){if(":"!==e.nativeEvent.data){v(e.target.value);var n,t="https://".concat(e.target.value);n=t,(0,hn.Z)(n)&&n.includes(".")?f(!0):f(!1)}},type:"url",value:g,placeholder:"yoursite.com",status:!m&&g.length>0?"error":void 0,onPressEnter:b,enterButton:(0,r.jsx)(B.Z,{onClick:b,disabled:!m,children:"Authenticate with your domain"})}),(0,r.jsx)(dn.Z,{ghost:!0,children:(0,r.jsxs)(pn,{header:"Learn more about using IndieAuth to authenticate with chat.",children:[(0,r.jsx)("p",{children:"IndieAuth allows for a completely independent and decentralized way of identifying yourself using your own domain."}),(0,r.jsxs)("p",{children:["If you run an Owncast instance, you can use that domain here. Otherwise,"," ",(0,r.jsx)(mn,{href:"https://indieauth.net/#providers",children:"learn more about how you can support IndieAuth"}),"."]})]},"header")}),(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:"Note"}),": This is for authentication purposes only, and no personal information will be accessed or stored."]})]})})},xn=t(55237),gn=t.n(xn);var vn=dn.Z.Panel,jn=function(e){var n=e.authenticated,t=e.displayName,i=e.accessToken,o=(0,l.useState)(null),s=o[0],a=o[1],c=(0,l.useState)(!1),u=c[0],d=c[1],p=(0,l.useState)(!1),m=p[0],f=p[1],x=(0,l.useState)(""),g=x[0],v=x[1],j=(0,l.useState)(""),w=j[0],b=j[1],C=(0,l.useState)(!1),N=C[0],Z=C[1],S=n?(0,r.jsxs)("span",{children:[(0,r.jsx)("b",{children:"You are already authenticated"}),". However, you can add other domains or log in as a different user."]}):(0,r.jsxs)("span",{children:["Receive a direct message on the Fediverse to link your account to"," ",(0,r.jsx)("strong",{children:t}),", or login as a previously linked chat user."]}),k=s;k&&k.includes("url does not support indieauth")&&(k="The provided URL is either invalid or does not support IndieAuth.");var A=function(e){f(function(e){var n=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(n).toLowerCase())}(e))},T=function(){var e=(0,_.Z)((function(e,n){var t,r;return(0,y.__generator)(this,(function(i){switch(i.label){case 0:return t={},[4,fetch(e,(t.method="POST",t.headers={Accept:"application/json","Content-Type":"application/json"},t.body=JSON.stringify(n),t))];case 1:return[4,i.sent().json()];case 2:return(r=i.sent()).message&&(a(r.message),d(!1)),[2]}}))}));return function(n,t){return e.apply(this,arguments)}}(),F=function(){var e=(0,_.Z)((function(){var e,n,t,r;return(0,y.__generator)(this,(function(o){switch(o.label){case 0:d(!0),e="/api/auth/fediverse/verify?accessToken=".concat(i),(t={}).code=w,n=t,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,T(e,n)];case 2:return o.sent(),window.location.href="/",[3,4];case 3:return r=o.sent(),console.error(r),a(r),[3,4];case 4:return d(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}(),I=function(){var e=(0,_.Z)((function(){var e,n,t,r,o;return(0,y.__generator)(this,(function(s){switch(s.label){case 0:if(!m)return[2];d(!0),a(null),e="/api/auth/fediverse?accessToken=".concat(i),n=g.replace(/^@+/,""),(r={}).account=n,t=r,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,T(e,t)];case 2:return s.sent(),Z(!0),[3,4];case 3:return o=s.sent(),console.error(o),a(o),[3,4];case 4:return d(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}(),L=(0,r.jsxs)("div",{children:["Paste in the code that was sent to your Fediverse account. If you did not receive a code, make sure you can accept direct messages.",(0,r.jsxs)("div",{className:gn().codeInputContainer,children:[(0,r.jsx)(ce.Z,{value:w,onChange:function(e){return b(e.target.value)},className:gn().codeInput,placeholder:"123456",maxLength:6}),(0,r.jsx)(B.Z,{type:"primary",onClick:F,disabled:w.length<6,className:gn().submitButton,children:"Verify Code"})]})]}),M=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{children:"Your Fediverse Account"}),(0,r.jsx)(ce.Z.Search,{addonBefore:"@",onInput:function(e){v(e.target.value),A(e.target.value)},value:g,placeholder:"youraccount@yourserver.com",status:!m&&g.length>0?"error":void 0,onPressEnter:I,enterButton:(0,r.jsx)(B.Z,{onClick:I,disabled:!m,children:"Authenticate with Fediverse"})})]});return(0,r.jsx)(h.Z,{spinning:u,children:(0,r.jsxs)(ae.Z,{direction:"vertical",children:[S,k&&(0,r.jsx)(le.Z,{message:"Error",description:k,type:"error",showIcon:!0}),N?L:M,(0,r.jsx)(dn.Z,{ghost:!0,children:(0,r.jsx)(vn,{header:"Learn more about using the Fediverse to authenticate with chat.",children:(0,r.jsx)("p",{children:"xxxxxx"})},"header")}),(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:"Note"}),": This is for authentication purposes only, and no personal information will be accessed or stored."]})]})})},_n="/_next/static/media/fediverse-black.0b51c805.png",yn="/_next/static/media/indieauth.38c52a3d.png",wn=t(67211),bn=t.n(wn),Cn=d.Z.TabPane,Nn=function(){var e=(0,o.sJ)(c.w4),n=(0,o.sJ)(c.L4),t=(0,o.sJ)(c.FI);return(0,r.jsx)("div",{children:(0,r.jsxs)(d.Z,{defaultActiveKey:"1",type:"card",size:"small",renderTabBar:null,children:[(0,r.jsx)(Cn,{tab:(0,r.jsxs)("span",{className:bn().tabContent,children:[(0,r.jsx)("img",{className:bn().icon,src:yn,alt:"IndieAuth"}),"IndieAuth"]}),children:(0,r.jsx)(fn,{authenticated:n,displayName:e,accessToken:t})},"1"),(0,r.jsx)(Cn,{tab:(0,r.jsxs)("span",{className:bn().tabContent,children:[(0,r.jsx)("img",{className:bn().icon,src:_n,alt:"Fediverse auth"}),"FediAuth"]}),children:(0,r.jsx)(jn,{authenticated:n,displayName:e,accessToken:t})},"2")]})})},Zn=function(e){var n=e.username,t=(void 0===n?void 0:n)||(0,o.sJ)(c.w4),i=(0,l.useState)(!1),s=i[0],a=i[1],d=(0,l.useState)(!1),h=d[0],p=d[1],m=(0,u.Z)((0,o.FV)(c.ZA),2),f=m[0],x=m[1],g=(0,o.sJ)(c.Q),v=function(){x(!f)};(0,nn.y1)("c",v,{enableOnContentEditable:!1},[f]);var j=(0,r.jsxs)(qe.Z,{children:[(0,r.jsx)(qe.Z.Item,{icon:(0,r.jsx)(We.Z,{}),onClick:function(){a(!0)},children:"Change name"},"0"),(0,r.jsx)(qe.Z.Item,{icon:(0,r.jsx)(Qe.Z,{}),onClick:function(){return p(!0)},children:"Authenticate"},"1"),g.chatAvailable&&(0,r.jsx)(qe.Z.Item,{icon:(0,r.jsx)(Xe.Z,{}),onClick:function(){return v()},children:"Toggle chat"},"3")]});return(0,r.jsxs)("div",{className:"".concat(rn().root),children:[(0,r.jsx)(Ge.Z,{overlay:j,trigger:["click"],children:(0,r.jsx)(B.Z,{type:"primary",icon:(0,r.jsx)($e.Z,{style:{marginRight:".5rem"}}),children:(0,r.jsxs)(ae.Z,{children:[t,(0,r.jsx)(en.Z,{})]})})}),(0,r.jsx)(q,{title:"Change Chat Display Name",visible:s,handleCancel:function(){return a(!1)},children:(0,r.jsx)(un,{})}),(0,r.jsx)(q,{title:"Authenticate",visible:h,handleCancel:function(){return p(!1)},children:(0,r.jsx)(Nn,{})})]})},Sn=t(60113),kn=t(92910),An=t.n(kn),Tn=i.Z.Header,Fn=function(e){var n=e.name,t=void 0===n?"Your stream title":n,i=e.chatAvailable,o=e.chatDisabled;return(0,r.jsxs)(Tn,{className:"".concat(An().header),children:[(0,r.jsxs)("div",{className:"".concat(An().logo),children:[(0,r.jsx)(Sn.C,{variant:"contrast"}),(0,r.jsx)("span",{children:t})]}),i&&!o&&(0,r.jsx)(Zn,{}),!i&&!o&&(0,r.jsx)(Ye.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,r.jsx)(Ke.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})},In=function(e){var n=e.title,t=e.message;return(0,r.jsx)(D.Z,{title:n,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,r.jsx)("p",{style:{fontSize:"1.3rem"},children:t})})},Ln=t(82670);var Mn=function(){var e=(0,o.sJ)(c.g1),n=e.name,t=e.title,s=e.customStyles,u=(0,o.sJ)(c.di),d=(0,o.sJ)(c.ap),h=(0,l.useRef)(null),p=e.chatDisabled;(0,l.useEffect)((function(){!function(e){var n=function(e){e.setAttribute("rel","noopener noreferrer ")};e.querySelectorAll("a").forEach((function(e){return n(e)})),new MutationObserver((function(e){var t=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){var a=o.value,l=!0,c=!1,u=void 0;try{for(var d,h=a.addedNodes[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var p=d.value;(0,Ln.Z)(p,HTMLElement)&&"a"===p.tagName.toLowerCase()&&n(p)}}catch(m){c=!0,u=m}finally{try{l||null==h.return||h.return()}finally{if(c)throw u}}}}catch(m){r=!0,i=m}finally{try{t||null==s.return||s.return()}finally{if(r)throw i}}})).observe(e,{attributes:!1,childList:!0,subtree:!0})}(h.current)}),[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a(),{children:[(0,r.jsx)("meta",{name:"description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"og:title",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"og:site_name",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"og:url",content:"{{.RequestedURL}}"}),(0,r.jsx)("meta",{property:"og:description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"og:type",content:"video.other"}),(0,r.jsx)("meta",{property:"video:tag",content:"{{.TagsString}}"}),(0,r.jsx)("meta",{property:"og:image",content:"{{.Thumbnail}}"}),(0,r.jsx)("meta",{property:"og:image:url",content:"{{.Thumbnail}}"}),(0,r.jsx)("meta",{property:"og:image:alt",content:"{{.Image}}"}),(0,r.jsx)("meta",{property:"og:video",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"og:video:secure_url",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"og:video:height",content:"315"}),(0,r.jsx)("meta",{property:"og:video:width",content:"560"}),(0,r.jsx)("meta",{property:"og:video:type",content:"text/html"}),(0,r.jsx)("meta",{property:"og:video:actor",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"twitter:title",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"twitter:url",content:"{{.RequestedURL}}"}),(0,r.jsx)("meta",{property:"twitter:description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"twitter:image",content:"{{.Image}}"}),(0,r.jsx)("meta",{property:"twitter:card",content:"player"}),(0,r.jsx)("meta",{property:"twitter:player",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"twitter:player:width",content:"560"}),(0,r.jsx)("meta",{property:"twitter:player:height",content:"315"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"57x57",href:"/img/favicon/apple-icon-57x57.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"60x60",href:"/img/favicon/apple-icon-60x60.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"72x72",href:"/img/favicon/apple-icon-72x72.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"76x76",href:"/img/favicon/apple-icon-76x76.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"114x114",href:"/img/favicon/apple-icon-114x114.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/img/favicon/apple-icon-120x120.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"144x144",href:"/img/favicon/apple-icon-144x144.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/img/favicon/apple-icon-152x152.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/favicon/apple-icon-180x180.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/img/favicon/android-icon-192x192.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/img/favicon/favicon-96x96.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/favicon/favicon-16x16.png"}),(0,r.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,r.jsx)("link",{href:"/api/auth/provider/indieauth"}),(0,r.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,r.jsx)("meta",{name:"msapplication-TileImage",content:"/img/favicon/ms-icon-144x144.png"}),(0,r.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,r.jsx)("style",{children:s}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"\n\twindow.statusHydration = {{.StatusJSON}};\n\twindow.configHydration = {{.ServerConfigJSON}};\n\t"}})]}),(0,r.jsx)(c.me,{}),(0,r.jsxs)(i.Z,{ref:h,children:[(0,r.jsx)(Fn,{name:t||n,chatAvailable:u,chatDisabled:p}),(0,r.jsx)(Ve,{}),d&&(0,r.jsx)(In,{title:d.title,message:d.message})]})]})};function Hn(){return(0,r.jsx)(Mn,{})}},36879:function(e){e.exports={button:"ActionButton_button__z5Z2c",icon:"ActionButton_icon__EPp7Q"}},69767:function(e){e.exports={row:"ActionButtonRow_row__SiEGe"}},74688:function(e){e.exports={root:"ContentHeader_root__HaUG0",row:"ContentHeader_row__9Q8gH",logoTitleSection:"ContentHeader_logoTitleSection__Z8pUc",logo:"ContentHeader_logo__wo_HN",titleSection:"ContentHeader_titleSection___6Y15",title:"ContentHeader_title__E_DsI",subtitle:"ContentHeader_subtitle__n1Wew",tagList:"ContentHeader_tagList__rx3jY"}},47093:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},67211:function(e){e.exports={tabContent:"AuthModal_tabContent__KgMU3",icon:"AuthModal_icon__kpEuV"}},5225:function(e){e.exports={pushPreview:"BrowserNotifyModal_pushPreview__4Og4q",inner:"BrowserNotifyModal_inner__uhFDw",title:"BrowserNotifyModal_title__dd_Lh",permissionLine:"BrowserNotifyModal_permissionLine__K8nyJ",buttonRow:"BrowserNotifyModal_buttonRow__oxJUg",disabled:"BrowserNotifyModal_disabled__v88lb",allow:"BrowserNotifyModal_allow__M9AWC"}},55237:function(e){e.exports={codeInputContainer:"FediAuthModal_codeInputContainer__M_dAD",codeInput:"FediAuthModal_codeInput__dIE6u",submitButton:"FediAuthModal_submitButton__iuF9R"}},13840:function(e){e.exports={header:"FollowModal_header__la1ji",buttons:"FollowModal_buttons__tt4Mc",instructions:"FollowModal_instructions__HiKFF",footer:"FollowModal_footer__AjucH",account:"FollowModal_account__cmHkm",logo:"FollowModal_logo__Ew8xK",username:"FollowModal_username__A_OTw",name:"FollowModal_name__Sf_TP"}},63291:function(e){e.exports={root:"Content_root__h1mNK",topSection:"Content_topSection__JIZi0",lowerSection:"Content_lowerSection__BZHYI",lowerSectionMobile:"Content_lowerSectionMobile__hRr0_",leftCol:"Content_leftCol__U2TDq",loadingSpinner:"Content_loadingSpinner__mDlYC"}},28105:function(e){e.exports={pageContentContainer:"CustomPageContent_pageContentContainer__EG4tU",customPageContent:"CustomPageContent_customPageContent__Mr981",summary:"CustomPageContent_summary___Zgps"}},35603:function(e){e.exports={footer:"Footer_footer__mPuvf",links:"Footer_links__7bBxV",item:"Footer_item__rXxSr"}},92910:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},7918:function(e){e.exports={root:"Logo_root__jKiJC",container:"Logo_container__A4UYT",image:"Logo_image__Ahkom"}},78890:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}},18668:function(e){e.exports={contentbutton:"NotifyReminderPopup_contentbutton__a_tsp",closebutton:"NotifyReminderPopup_closebutton__GVcP3",title:"NotifyReminderPopup_title__Dm9Iy"}},75347:function(e){e.exports={root:"Sidebar_root__8HE0A"}},52740:function(e){e.exports={link:"SocialLinks_link___CcSm",links:"SocialLinks_links__gOAb7"}},40305:function(e){e.exports={follower:"SingleFollower_follower__EyBDI",avatar:"SingleFollower_avatar__V9jHG",account:"SingleFollower_account__Z66vo",placeholder:"SingleFollower_placeholder__CgsfJ"}}},function(e){e.O(0,[2544,1272,8700,7330,7266,2944,6265,5938,9372,2429,1681,2865,1082,5768,1899,2854,143,9774,2888,179],(function(){return n=48312,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/webpack-954446c3bca5b2dc.js b/static/web/_next/static/chunks/webpack-954446c3bca5b2dc.js new file mode 100644 index 000000000..06232ab24 --- /dev/null +++ b/static/web/_next/static/chunks/webpack-954446c3bca5b2dc.js @@ -0,0 +1 @@ +!function(){"use strict";var e={},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var u=t[r]={id:r,loaded:!1,exports:{}},i=!0;try{e[r].call(u.exports,u,u.exports,n),i=!1}finally{i&&delete t[r]}return u.loaded=!0,u.exports}n.m=e,n.amdO={},function(){var e=[];n.O=function(t,r,o,u){if(!r){var i=1/0;for(l=0;l=u)&&Object.keys(n.O).every((function(e){return n.O[e](r[f])}))?r.splice(f--,1):(c=!1,u0&&e[l-1][2]>u;l--)e[l]=e[l-1];e[l]=[r,o,u]}}(),n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var u=Object.create(null);n.r(u);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){i[e]=function(){return r[e]}}));return i.default=function(){return r},n.d(u,i),u}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/chunks/"+e+".95543cd3023fceae.js"},n.miniCssF=function(e){return"static/css/"+{927:"1f5ee95fffd43a71",955:"2a3d921930e3c0ff",1681:"e70d97a4c102bec4",2888:"137f06272d5f11ab",3126:"8283b6095a0a048a",5405:"4080b1834a08ebbf",8399:"06d28146501a432f"}[e]+".css"},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="_N_E:";n.l=function(r,o,u,i){if(e[r])e[r].push(o);else{var c,f;if(void 0!==u)for(var a=document.getElementsByTagName("script"),l=0;l=u)&&Object.keys(n.O).every((function(e){return n.O[e](r[f])}))?r.splice(f--,1):(c=!1,u0&&e[l-1][2]>u;l--)e[l]=e[l-1];e[l]=[r,o,u]}}(),n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var u=Object.create(null);n.r(u);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){i[e]=function(){return r[e]}}));return i.default=function(){return r},n.d(u,i),u}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/chunks/"+e+".95543cd3023fceae.js"},n.miniCssF=function(e){return"static/css/"+{927:"1f5ee95fffd43a71",1681:"e70d97a4c102bec4",2888:"137f06272d5f11ab",3126:"8283b6095a0a048a",5405:"4080b1834a08ebbf",8399:"06d28146501a432f"}[e]+".css"},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="_N_E:";n.l=function(r,o,u,i){if(e[r])e[r].push(o);else{var c,f;if(void 0!==u)for(var a=document.getElementsByTagName("script"),l=0;lp{margin:0}.ChatTextField_root__4oUkJ .ChatTextField_inputWrapper__qBEWv{display:flex;flex-direction:row;position:relative;margin-right:.3rem;border-radius:.2rem}.ChatTextField_root__4oUkJ .ChatTextField_inputWrapper__qBEWv>div{transition:box-shadow .2s ease-in-out}.ChatTextField_root__4oUkJ .ChatTextField_submitButtonWrapper__YBPMe{display:flex;padding:6px 0;justify-content:flex-end}.ChatTextField_sendButton__MOmD4{display:none}@media(max-width:768px){.ChatTextField_sendButton__MOmD4{display:inline;margin-left:5px}}.ChatTextField_emojiButton__ON_Cu{border:none;background:none;cursor:pointer;padding:0 1rem}.ChatModeratorNotification_chatModerationNotification__kgFWe{background-color:var(--theme-background-primary);margin:5px;border-radius:15px;border:1px solid rgba(0,0,0,.3);padding:10px;max-width:400px;display:flex;justify-content:center;align-items:center}.ChatModeratorNotification_chatModerationNotification__kgFWe .ChatModeratorNotification_icon__7FdGg{margin-right:10px;width:20px;height:20px}.ChatSystemMessage_chatSystemMessage__c6XEN{background:var(--theme-color-background-main);background:linear-gradient(70deg,#4e3672,#411c8b 40%,#534382 80%);margin:5px;border-radius:5px;border-width:1px;border-style:solid;padding:12px;max-width:400px}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_user__6yHSJ{display:flex;align-items:center;font-family:var(--theme-text-display-font-family);font-weight:700;color:#fff}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g{color:#fff}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g p{color:#fff;margin:unset}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g mark{padding-left:.35em;padding-right:.35em;background-color:var(--theme-color-palette-12)}.ChatJoinMessage_join__fP0IQ{margin:5px;text-align:center}.ChatContainer_chatHeader__EJsYI{text-align:center;font-weight:700;padding:5px 0;color:var(--text-color-secondary);border-bottom:1px solid var(--color-owncast-gray-700);font-variant:small-caps}.ChatContainer_toBottomWrap__3V5wa{display:flex;opacity:.9;width:100%;justify-content:center;position:absolute;bottom:5px}.ChatContainer_nameChangeView__ziyXN{display:flex;font-size:.9rem;border-radius:var(--theme-rounded-corners);padding:5px 15px;color:var(--color-owncast-gray-300);background-color:var(--color-owncast-background)}.ChatContainer_nameChangeView__ziyXN .ChatContainer_nameChangeText__yXG__{font-weight:700;font-family:var(--theme-text-display-font-family)}.ChatContainer_nameChangeView__ziyXN .ChatContainer_nameChangeText__yXG__ .ChatContainer_plain__IPS19{font-weight:400;font-family:var(--theme-text-body-font-family)!important}.Modal_spinner__GiSS0{position:absolute;top:50%;left:50%}.Modal_content__h9my9{display:block;height:100%;padding:2vw;background-color:var(--theme-color-components-modal-content-background);color:var(--theme-color-components-modal-content-text)}.FediAuthModal_codeInputContainer__M_dAD{display:flex;justify-content:center;flex-direction:column}.FediAuthModal_codeInputContainer__M_dAD .FediAuthModal_codeInput__dIE6u{font-size:1.6rem;font-family:monospace;max-width:220px;margin:auto;text-align:center;letter-spacing:6px;border-color:var(--theme-color-palette-9);color:var(--theme-color-palette-9)}.FediAuthModal_codeInputContainer__M_dAD .FediAuthModal_submitButton__iuF9R{max-width:150px;margin:10px auto auto}.AuthModal_tabContent__KgMU3{flex-direction:row;display:flex;justify-content:center;align-items:center}.AuthModal_tabContent__KgMU3 .AuthModal_icon__kpEuV{height:15px;padding-right:5px}.UserDropdown_root__IdxfQ button{border:none}.UserDropdown_root__IdxfQ button .UserDropdown_ant-space__XJTZ3 .UserDropdown_ant-space-item__w4nC2{color:var(--theme-unknown-2)}.Header_header__U4Ro1{position:-webkit-sticky;position:sticky;top:0;justify-content:space-between;z-index:20;padding:.4rem .7rem;box-shadow:0 1px 3px 1px rgba(0,0,0,.1);background-color:var(--theme-color-background-header)}.Header_header__U4Ro1,.Header_header__U4Ro1 .Header_logo__HLZ6Z{display:flex;align-items:center}.Header_header__U4Ro1 .Header_logo__HLZ6Z span{color:var(--theme-color-components-text-on-dark);font-family:var(--theme-text-display-font-family);margin-left:.5rem;font-size:1.5rem;font-weight:600}@media(max-width:768px){.Header_header__U4Ro1{line-height:5vh;height:5vh}} \ No newline at end of file diff --git a/static/web/_next/static/hToTR2LS1_C396_mDo5he/_buildManifest.js b/static/web/_next/static/hToTR2LS1_C396_mDo5he/_buildManifest.js new file mode 100644 index 000000000..d00897a37 --- /dev/null +++ b/static/web/_next/static/hToTR2LS1_C396_mDo5he/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,a,c,i,e,t,n,d,f,b,h,o,m,u,k,r,g,j,p,l,_,w,v,y,I,B,F,A,D,E,L){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[o,m,l,s,a,c,t,n,d,f,u,k,_,w,v,y,"static/chunks/8521-692724ee4f71b2cc.js",b,r,I,B,"static/css/4080b1834a08ebbf.css","static/chunks/pages/index-0d85578a34b82e73.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[s,a,c,i,e,t,n,d,h,k,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-7f9372397fae0f4a.js"],"/admin/access-tokens":[s,a,c,i,e,"static/chunks/pages/admin/access-tokens-0f003278e5d82f26.js"],"/admin/actions":[s,a,c,i,"static/chunks/pages/admin/actions-e82ca8c824f98ea9.js"],"/admin/chat/messages":[F,s,a,c,i,e,d,A,D,"static/chunks/pages/admin/chat/messages-29386b71919e5b0e.js"],"/admin/chat/users":[F,s,a,c,i,e,t,d,A,D,"static/chunks/pages/admin/chat/users-f8e72b9282adc067.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-826dceb82d133fca.js"],"/admin/config-federation":["static/chunks/1829-271cba4b38fde9a4.js","static/chunks/pages/admin/config-federation-08897e2247bf43bd.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-f36f296594904599.js"],"/admin/config-public-details":[s,a,c,i,g,"static/css/1f5ee95fffd43a71.css","static/chunks/927-8d644c10fb3512bc.js",E,"static/chunks/pages/admin/config-public-details-bd1945cbb8417d7b.js"],"/admin/config-server-details":[L,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[s,a,c,i,E,"static/chunks/pages/admin/config-social-items-59fc92ae79167bce.js"],"/admin/config-storage":["static/chunks/5473-185a5241676edf4a.js","static/chunks/pages/admin/config-storage-a04c6b9cc63b11fd.js"],"/admin/config-video":[s,a,c,i,L,"static/chunks/5283-2d68bcc9592d5eff.js","static/chunks/pages/admin/config-video-c061dbcfcd3c083c.js"],"/admin/federation/actions":[s,a,c,i,e,"static/chunks/pages/admin/federation/actions-71bae9cfde249988.js"],"/admin/federation/followers":[s,a,c,i,e,t,"static/chunks/pages/admin/federation/followers-55d337b7a6dc60c5.js"],"/admin/hardware-info":[j,e,t,n,h,p,g,"static/chunks/pages/admin/hardware-info-4574e94bc49c9046.js"],"/admin/help":[t,n,v,"static/chunks/9129-d700e99ec45974c3.js","static/chunks/pages/admin/help-d87a1368a8069047.js"],"/admin/logs":[s,a,c,i,e,k,"static/chunks/pages/admin/logs-d3b6ff3376163bd7.js"],"/admin/stream-health":[j,s,e,t,n,h,p,"static/chunks/pages/admin/stream-health-681b3896ade2a908.js"],"/admin/upgrade":[s,a,c,i,"static/chunks/9001-dfd80bc3c21b045b.js","static/chunks/pages/admin/upgrade-14176112f873422c.js"],"/admin/viewer-info":[j,s,a,c,i,e,t,n,d,h,p,g,"static/chunks/pages/admin/viewer-info-8e9729e8b94c19b8.js"],"/admin/webhooks":[s,a,c,i,"static/chunks/pages/admin/webhooks-1531221c7b344c08.js"],"/embed/chat/readonly":[o,m,s,f,u,b,r,"static/css/06d28146501a432f.css","static/chunks/pages/embed/chat/readonly-689659f45499ee0e.js"],"/embed/chat/readwrite":[o,m,s,a,t,n,f,u,y,b,r,B,"static/css/2a3d921930e3c0ff.css","static/chunks/pages/embed/chat/readwrite-6f8b99a091c946c1.js"],"/embed/video":[l,d,f,_,w,b,I,"static/css/8283b6095a0a048a.css","static/chunks/pages/embed/video-61510af0fd4d92ba.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/7330-32e84a34fb851e34.js","static/chunks/3927-b73d485dce01a235.js","static/chunks/384-a0ac0849b5bd17bd.js","static/chunks/355-973d1ca2734bd5dc.js","static/chunks/8091-5880357d1811013a.js","static/chunks/2944-fab178d3c2ba1b7b.js","static/chunks/6265-fff17a785cf4f99d.js","static/chunks/5938-b8bf626b6df6d168.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-3287d98ffaf2a526.js","static/chunks/428-ef26494fcbdd358e.js","static/chunks/d3048c20-0576676e1017fabd.js","static/chunks/d2094a0f-f60fcb088b6bb78d.js","static/chunks/2865-bb268743ae789aa6.js","static/chunks/2429-35846a119e7209fe.js","static/chunks/143-5f87758fe2f58ec4.js","static/chunks/7910-7248e2d1496cf795.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-1e3969b413cccadf.js","static/css/e70d97a4c102bec4.css","static/chunks/1681-bf79296178da4b12.js","static/chunks/1082-de62dbb1acdd83a0.js","static/chunks/7900-a9ddaa4c2db8e5fa.js","static/chunks/2854-191152eb16ccb7f5.js","static/chunks/3052-3a4f3356a0055ed0.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/9189-f5c2ee9572c7654a.js","static/chunks/9640-a9765e176df0f25f.js","static/chunks/2877-4ee8a344719d3523.js","static/chunks/3286-25235a0b8b0401f3.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/HutFoDHrgAcv90pDILtMY/_ssgManifest.js b/static/web/_next/static/hToTR2LS1_C396_mDo5he/_ssgManifest.js similarity index 100% rename from static/web/_next/static/HutFoDHrgAcv90pDILtMY/_ssgManifest.js rename to static/web/_next/static/hToTR2LS1_C396_mDo5he/_ssgManifest.js diff --git a/static/web/admin/access-tokens/index.html b/static/web/admin/access-tokens/index.html index dcafa841c..0da5e323a 100644 --- a/static/web/admin/access-tokens/index.html +++ b/static/web/admin/access-tokens/index.html @@ -1 +1 @@ -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 +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/web/admin/actions/index.html b/static/web/admin/actions/index.html index 3568dc2df..dbd69456b 100644 --- a/static/web/admin/actions/index.html +++ b/static/web/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/web/admin/chat/messages/index.html b/static/web/admin/chat/messages/index.html index 5743bab9f..8856f39fd 100644 --- a/static/web/admin/chat/messages/index.html +++ b/static/web/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/web/admin/chat/users/index.html b/static/web/admin/chat/users/index.html index bceac37fb..e4dee9c1d 100644 --- a/static/web/admin/chat/users/index.html +++ b/static/web/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/web/admin/config-chat/index.html b/static/web/admin/config-chat/index.html index 85986d54a..d4ff65584 100644 --- a/static/web/admin/config-chat/index.html +++ b/static/web/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/web/admin/config-federation/index.html b/static/web/admin/config-federation/index.html index 010d847c2..0bf3e885e 100644 --- a/static/web/admin/config-federation/index.html +++ b/static/web/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/web/admin/config-notify/index.html b/static/web/admin/config-notify/index.html index a7443ce0d..e71e00700 100644 --- a/static/web/admin/config-notify/index.html +++ b/static/web/admin/config-notify/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file diff --git a/static/web/admin/config-public-details/index.html b/static/web/admin/config-public-details/index.html index 607dbe5e3..edd2d8540 100644 --- a/static/web/admin/config-public-details/index.html +++ b/static/web/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/web/admin/config-server-details/index.html b/static/web/admin/config-server-details/index.html index f432fdd85..71d122f87 100644 --- a/static/web/admin/config-server-details/index.html +++ b/static/web/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/web/admin/config-social-items/index.html b/static/web/admin/config-social-items/index.html index 1467c662f..9ad676e43 100644 --- a/static/web/admin/config-social-items/index.html +++ b/static/web/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/web/admin/config-storage/index.html b/static/web/admin/config-storage/index.html index 1040d0558..1390dfcc6 100644 --- a/static/web/admin/config-storage/index.html +++ b/static/web/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/web/admin/config-video/index.html b/static/web/admin/config-video/index.html index f0f82a210..2763982a4 100644 --- a/static/web/admin/config-video/index.html +++ b/static/web/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/web/admin/federation/actions/index.html b/static/web/admin/federation/actions/index.html index 041e1f764..e6a19f11b 100644 --- a/static/web/admin/federation/actions/index.html +++ b/static/web/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/web/admin/federation/followers/index.html b/static/web/admin/federation/followers/index.html index 08b212e01..a6589c19a 100644 --- a/static/web/admin/federation/followers/index.html +++ b/static/web/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/web/admin/hardware-info/index.html b/static/web/admin/hardware-info/index.html index 14f58f251..e79cabb08 100644 --- a/static/web/admin/hardware-info/index.html +++ b/static/web/admin/hardware-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file diff --git a/static/web/admin/help/index.html b/static/web/admin/help/index.html index 47c83cb68..b5c3785a4 100644 --- a/static/web/admin/help/index.html +++ b/static/web/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/web/admin/index.html b/static/web/admin/index.html index 39aaa596c..d24559d59 100644 --- a/static/web/admin/index.html +++ b/static/web/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.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

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.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file diff --git a/static/web/admin/logs/index.html b/static/web/admin/logs/index.html index bd5409321..00e1ee229 100644 --- a/static/web/admin/logs/index.html +++ b/static/web/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/web/admin/stream-health/index.html b/static/web/admin/stream-health/index.html index 6b11f8138..1a122b276 100644 --- a/static/web/admin/stream-health/index.html +++ b/static/web/admin/stream-health/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file diff --git a/static/web/admin/upgrade/index.html b/static/web/admin/upgrade/index.html index 7be2fc34e..bc48e3f50 100644 --- a/static/web/admin/upgrade/index.html +++ b/static/web/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/web/admin/viewer-info/index.html b/static/web/admin/viewer-info/index.html index ec8bd9f21..a92145fac 100644 --- a/static/web/admin/viewer-info/index.html +++ b/static/web/admin/viewer-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ 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 stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ No newline at end of file diff --git a/static/web/admin/webhooks/index.html b/static/web/admin/webhooks/index.html index 9522cd4b5..4c481db4e 100644 --- a/static/web/admin/webhooks/index.html +++ b/static/web/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 diff --git a/static/web/embed/chat/readonly/index.html b/static/web/embed/chat/readonly/index.html index d7fb33c71..73d0d3f99 100644 --- a/static/web/embed/chat/readonly/index.html +++ b/static/web/embed/chat/readonly/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/chat/readwrite/index.html b/static/web/embed/chat/readwrite/index.html index a82f62c50..c4328a469 100644 --- a/static/web/embed/chat/readwrite/index.html +++ b/static/web/embed/chat/readwrite/index.html @@ -1 +1 @@ -
fully featured chat embed goes here
\ No newline at end of file +

Chat message goes here...

\ No newline at end of file diff --git a/static/web/embed/video/index.html b/static/web/embed/video/index.html index ffbd4cc48..ffdb2b40c 100644 --- a/static/web/embed/video/index.html +++ b/static/web/embed/video/index.html @@ -1 +1 @@ -
Stream is offline text goes here.
Offline
\ No newline at end of file +
Stream is offline text goes here.
Offline
\ No newline at end of file diff --git a/static/web/index.html b/static/web/index.html index 462aa938b..f93559d0c 100644 --- a/static/web/index.html +++ b/static/web/index.html @@ -1,4 +1,4 @@
Chat offline
Offline
Logo
Preview
\ No newline at end of file +
Chat offline
Offline
Logo
Preview
\ No newline at end of file