From 0f9e246302ed967a5d3c7446a68cdcabb10c60ba Mon Sep 17 00:00:00 2001 From: gabek Date: Mon, 12 Dec 2022 05:11:45 +0000 Subject: [PATCH] Bundle embedded web app --- static/web/404.html | 4 ++-- static/web/404/index.html | 4 ++-- .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 .../{4761.cb910a55acf314dc.js => 4761.87081196c75ba794.js} | 2 +- .../{4860.1fa203f907dec42e.js => 4860.79ae86f2aa163e31.js} | 2 +- ...rite-77b026a7e5273b6b.js => readwrite-56b92edb498f6991.js} | 2 +- .../_next/static/chunks/pages/embed/video-04abad59027d2c31.js | 1 + .../_next/static/chunks/pages/embed/video-58a5d6ba4b2bb819.js | 1 - .../web/_next/static/chunks/pages/index-77383441e78cee11.js | 1 + .../web/_next/static/chunks/pages/index-93a1aa2132f561f4.js | 1 - ...ebpack-76c6466541f6cdb3.js => webpack-618f6b9d27c411da.js} | 2 +- static/web/admin/access-tokens/index.html | 2 +- static/web/admin/actions/index.html | 2 +- static/web/admin/chat/messages/index.html | 2 +- static/web/admin/chat/users/index.html | 2 +- static/web/admin/config-chat/index.html | 2 +- static/web/admin/config-federation/index.html | 2 +- static/web/admin/config-notify/index.html | 2 +- static/web/admin/config-public-details/index.html | 2 +- static/web/admin/config-server-details/index.html | 2 +- static/web/admin/config-social-items/index.html | 2 +- static/web/admin/config-storage/index.html | 2 +- static/web/admin/config-video/index.html | 2 +- static/web/admin/config/appearance/index.html | 2 +- static/web/admin/config/streamkeys/index.html | 2 +- static/web/admin/federation/actions/index.html | 2 +- static/web/admin/federation/followers/index.html | 2 +- static/web/admin/hardware-info/index.html | 2 +- static/web/admin/help/index.html | 2 +- static/web/admin/index.html | 2 +- static/web/admin/logs/index.html | 2 +- static/web/admin/stream-health/index.html | 2 +- static/web/admin/upgrade/index.html | 2 +- static/web/admin/viewer-info/index.html | 2 +- static/web/admin/webhooks/index.html | 2 +- static/web/embed/chat/readonly/index.html | 2 +- static/web/embed/chat/readwrite/index.html | 2 +- static/web/embed/video/index.html | 2 +- static/web/index.html | 4 ++-- 40 files changed, 40 insertions(+), 40 deletions(-) rename static/web/_next/static/{BVDfMwekITziMoOSJLAS6 => 2PHoXvghxUJEuSZYB92KR}/_buildManifest.js (94%) rename static/web/_next/static/{BVDfMwekITziMoOSJLAS6 => 2PHoXvghxUJEuSZYB92KR}/_ssgManifest.js (100%) rename static/web/_next/static/chunks/{4761.cb910a55acf314dc.js => 4761.87081196c75ba794.js} (94%) rename static/web/_next/static/chunks/{4860.1fa203f907dec42e.js => 4860.79ae86f2aa163e31.js} (85%) rename static/web/_next/static/chunks/pages/embed/chat/{readwrite-77b026a7e5273b6b.js => readwrite-56b92edb498f6991.js} (61%) create mode 100644 static/web/_next/static/chunks/pages/embed/video-04abad59027d2c31.js delete mode 100644 static/web/_next/static/chunks/pages/embed/video-58a5d6ba4b2bb819.js create mode 100644 static/web/_next/static/chunks/pages/index-77383441e78cee11.js delete mode 100644 static/web/_next/static/chunks/pages/index-93a1aa2132f561f4.js rename static/web/_next/static/chunks/{webpack-76c6466541f6cdb3.js => webpack-618f6b9d27c411da.js} (65%) diff --git a/static/web/404.html b/static/web/404.html index 064babc61..19bdd0c57 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 064babc61..19bdd0c57 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/BVDfMwekITziMoOSJLAS6/_buildManifest.js b/static/web/_next/static/2PHoXvghxUJEuSZYB92KR/_buildManifest.js similarity index 94% rename from static/web/_next/static/BVDfMwekITziMoOSJLAS6/_buildManifest.js rename to static/web/_next/static/2PHoXvghxUJEuSZYB92KR/_buildManifest.js index e6b9993e6..c5b07fcb8 100644 --- a/static/web/_next/static/BVDfMwekITziMoOSJLAS6/_buildManifest.js +++ b/static/web/_next/static/2PHoXvghxUJEuSZYB92KR/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(a,s,c,e,i,t,n,d,f,h,b,o,m,u,k,g,r,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:[]},"/":[s,a,c,t,n,f,o,m,j,"static/chunks/4466-2e8c1156cd6902a6.js",h,"static/css/089ea92974e6f7ca.css","static/chunks/pages/index-93a1aa2132f561f4.js"],"/_error":["static/chunks/pages/_error-02cc11fd74b4e5ff.js"],"/admin":[s,a,c,e,i,t,n,d,b,m,"static/chunks/8676-c38bd41883242e8e.js","static/chunks/pages/admin-f61cf9b387d8362c.js"],"/admin/access-tokens":[s,a,c,e,i,"static/chunks/pages/admin/access-tokens-91177ddb58bd90ee.js"],"/admin/actions":[u,s,a,c,e,p,"static/chunks/pages/admin/actions-0b45668aebec7dde.js"],"/admin/chat/messages":[u,s,a,c,e,i,n,l,"static/chunks/pages/admin/chat/messages-7e88922542839f8a.js"],"/admin/chat/users":[u,s,a,c,e,i,t,n,l,"static/chunks/pages/admin/chat/users-8fc28dfaa9e52d37.js"],"/admin/config/appearance":[_,o,w,v,"static/css/6c8941159bdd16f6.css","static/chunks/pages/admin/config/appearance-be1829febefc4db6.js"],"/admin/config/streamkeys":[s,a,c,e,p,"static/chunks/pages/admin/config/streamkeys-6a3f2badc0712b01.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-fab037451220beb1.js"],"/admin/config-federation":["static/chunks/8572-deca358d1a965d80.js","static/chunks/pages/admin/config-federation-3e7e0a54acf1bd9b.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-b525013f97b7a9a9.js"],"/admin/config-public-details":[_,s,a,c,e,k,w,"static/chunks/1043-9c545dc74036761a.js","static/chunks/pages/admin/config-public-details-085c048afcb776d7.js"],"/admin/config-server-details":[y,"static/chunks/pages/admin/config-server-details-fafadf003f21dada.js"],"/admin/config-social-items":[s,a,c,e,"static/chunks/pages/admin/config-social-items-f022d29681248095.js"],"/admin/config-storage":["static/chunks/pages/admin/config-storage-7c5510a084d9c01c.js"],"/admin/config-video":[s,a,c,e,y,"static/chunks/6962-f197cc126c73fb7f.js","static/chunks/pages/admin/config-video-ea088d6f81d33fcc.js"],"/admin/federation/actions":[s,a,c,e,i,"static/chunks/pages/admin/federation/actions-d79f77b8b18148ad.js"],"/admin/federation/followers":[s,a,c,e,i,t,"static/chunks/pages/admin/federation/followers-8c2d451ee44fb398.js"],"/admin/hardware-info":[g,i,t,d,b,r,k,"static/chunks/pages/admin/hardware-info-d1ca2af204c98f51.js"],"/admin/help":[t,d,o,v,"static/chunks/7830-37f6f9f7aaae2bbf.js","static/chunks/pages/admin/help-cf85d400d1ada208.js"],"/admin/logs":[s,a,c,e,i,m,"static/chunks/pages/admin/logs-c494c4dc6f214d8b.js"],"/admin/stream-health":[g,i,t,d,b,r,"static/chunks/2934-4a8cbef0e0cea1a5.js","static/chunks/pages/admin/stream-health-f2cf52294c67fcb8.js"],"/admin/upgrade":[s,a,c,e,"static/chunks/2069-c5012847917b76df.js","static/chunks/pages/admin/upgrade-41783a74d59f851b.js"],"/admin/viewer-info":[g,s,a,c,e,i,t,n,d,b,r,k,"static/chunks/pages/admin/viewer-info-9a828a713dcea351.js"],"/admin/webhooks":[s,a,c,e,"static/chunks/pages/admin/webhooks-c59eaaf1fe4ac78c.js"],"/embed/chat/readonly":[I,B,f,F,h,A,"static/css/c43a4bf0142c5559.css","static/chunks/pages/embed/chat/readonly-1d789cb2de5c6857.js"],"/embed/chat/readwrite":[I,B,a,f,F,"static/chunks/911-9156415c36038fd8.js",h,A,"static/css/0db0271556306928.css","static/chunks/pages/embed/chat/readwrite-77b026a7e5273b6b.js"],"/embed/video":["static/chunks/d6e1aeb5-0705bf43bcd6af77.js",n,f,"static/css/7c735c05af084bb2.css","static/chunks/7902-139b487986de3737.js",j,h,"static/chunks/2239-ceff4252276e3d5e.js","static/css/f065863129f648da.css","static/chunks/pages/embed/video-58a5d6ba4b2bb819.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config/appearance","/admin/config/streamkeys","/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/3903-37c1af34070ecbf4.js","static/chunks/8909-6d59cce6f69e27ae.js","static/chunks/4267-cfe0f573c442773c.js","static/chunks/2206-8da9006b177e3283.js","static/chunks/8091-5d2e0cdb05cd1ef7.js","static/chunks/575-11393a44fd60b818.js","static/chunks/5938-b5bac17e4fa31c49.js","static/chunks/5101-e2c6238798b20535.js","static/chunks/6395-f04016ae318b5e91.js","static/chunks/7466-1e76829814bac0c3.js","static/chunks/4763-cd081ceb0032736f.js","static/chunks/1082-51b9f63c6446d49d.js","static/chunks/5360-ddb180f0aeda9ff0.js","static/chunks/29107295-1453a3860b50f70e.js","static/chunks/7910-44b63d030e4b1767.js","static/chunks/ee8b1517-9cf421a7da630c58.js","static/chunks/236-f876fd1a47451d45.js","static/chunks/8245-b34a27e35386277e.js","static/chunks/8119-57984c2c349ea105.js","static/chunks/9550-db4a457e5e1bbbcf.js","static/chunks/4ad82c5e-929b3fa886d2b3d7.js","static/chunks/1943-896020ebd27dae4b.js","static/chunks/1938-c04d908728a12ddb.js","static/chunks/3286-716fef4ced844a4d.js","static/chunks/d3048c20-93c008b4ff3ddb0e.js","static/chunks/d2094a0f-7059b9f8abbc2737.js","static/chunks/3729-e88e6289f5436bb5.js","static/chunks/4977-167fb026492a9609.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(a,s,c,e,i,t,n,d,f,h,b,o,m,u,k,g,r,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:[]},"/":[s,a,c,t,n,f,o,m,j,"static/chunks/4466-2e8c1156cd6902a6.js",h,"static/css/089ea92974e6f7ca.css","static/chunks/pages/index-77383441e78cee11.js"],"/_error":["static/chunks/pages/_error-02cc11fd74b4e5ff.js"],"/admin":[s,a,c,e,i,t,n,d,b,m,"static/chunks/8676-c38bd41883242e8e.js","static/chunks/pages/admin-f61cf9b387d8362c.js"],"/admin/access-tokens":[s,a,c,e,i,"static/chunks/pages/admin/access-tokens-91177ddb58bd90ee.js"],"/admin/actions":[u,s,a,c,e,p,"static/chunks/pages/admin/actions-0b45668aebec7dde.js"],"/admin/chat/messages":[u,s,a,c,e,i,n,l,"static/chunks/pages/admin/chat/messages-7e88922542839f8a.js"],"/admin/chat/users":[u,s,a,c,e,i,t,n,l,"static/chunks/pages/admin/chat/users-8fc28dfaa9e52d37.js"],"/admin/config/appearance":[_,o,w,v,"static/css/6c8941159bdd16f6.css","static/chunks/pages/admin/config/appearance-be1829febefc4db6.js"],"/admin/config/streamkeys":[s,a,c,e,p,"static/chunks/pages/admin/config/streamkeys-6a3f2badc0712b01.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-fab037451220beb1.js"],"/admin/config-federation":["static/chunks/8572-deca358d1a965d80.js","static/chunks/pages/admin/config-federation-3e7e0a54acf1bd9b.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-b525013f97b7a9a9.js"],"/admin/config-public-details":[_,s,a,c,e,k,w,"static/chunks/1043-9c545dc74036761a.js","static/chunks/pages/admin/config-public-details-085c048afcb776d7.js"],"/admin/config-server-details":[y,"static/chunks/pages/admin/config-server-details-fafadf003f21dada.js"],"/admin/config-social-items":[s,a,c,e,"static/chunks/pages/admin/config-social-items-f022d29681248095.js"],"/admin/config-storage":["static/chunks/pages/admin/config-storage-7c5510a084d9c01c.js"],"/admin/config-video":[s,a,c,e,y,"static/chunks/6962-f197cc126c73fb7f.js","static/chunks/pages/admin/config-video-ea088d6f81d33fcc.js"],"/admin/federation/actions":[s,a,c,e,i,"static/chunks/pages/admin/federation/actions-d79f77b8b18148ad.js"],"/admin/federation/followers":[s,a,c,e,i,t,"static/chunks/pages/admin/federation/followers-8c2d451ee44fb398.js"],"/admin/hardware-info":[g,i,t,d,b,r,k,"static/chunks/pages/admin/hardware-info-d1ca2af204c98f51.js"],"/admin/help":[t,d,o,v,"static/chunks/7830-37f6f9f7aaae2bbf.js","static/chunks/pages/admin/help-cf85d400d1ada208.js"],"/admin/logs":[s,a,c,e,i,m,"static/chunks/pages/admin/logs-c494c4dc6f214d8b.js"],"/admin/stream-health":[g,i,t,d,b,r,"static/chunks/2934-4a8cbef0e0cea1a5.js","static/chunks/pages/admin/stream-health-f2cf52294c67fcb8.js"],"/admin/upgrade":[s,a,c,e,"static/chunks/2069-c5012847917b76df.js","static/chunks/pages/admin/upgrade-41783a74d59f851b.js"],"/admin/viewer-info":[g,s,a,c,e,i,t,n,d,b,r,k,"static/chunks/pages/admin/viewer-info-9a828a713dcea351.js"],"/admin/webhooks":[s,a,c,e,"static/chunks/pages/admin/webhooks-c59eaaf1fe4ac78c.js"],"/embed/chat/readonly":[I,B,f,F,h,A,"static/css/c43a4bf0142c5559.css","static/chunks/pages/embed/chat/readonly-1d789cb2de5c6857.js"],"/embed/chat/readwrite":[I,B,a,f,F,"static/chunks/911-9156415c36038fd8.js",h,A,"static/css/0db0271556306928.css","static/chunks/pages/embed/chat/readwrite-56b92edb498f6991.js"],"/embed/video":["static/chunks/d6e1aeb5-0705bf43bcd6af77.js",n,f,"static/css/7c735c05af084bb2.css","static/chunks/7902-139b487986de3737.js",j,h,"static/chunks/2239-ceff4252276e3d5e.js","static/css/f065863129f648da.css","static/chunks/pages/embed/video-04abad59027d2c31.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config/appearance","/admin/config/streamkeys","/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/3903-37c1af34070ecbf4.js","static/chunks/8909-6d59cce6f69e27ae.js","static/chunks/4267-cfe0f573c442773c.js","static/chunks/2206-8da9006b177e3283.js","static/chunks/8091-5d2e0cdb05cd1ef7.js","static/chunks/575-11393a44fd60b818.js","static/chunks/5938-b5bac17e4fa31c49.js","static/chunks/5101-e2c6238798b20535.js","static/chunks/6395-f04016ae318b5e91.js","static/chunks/7466-1e76829814bac0c3.js","static/chunks/4763-cd081ceb0032736f.js","static/chunks/1082-51b9f63c6446d49d.js","static/chunks/5360-ddb180f0aeda9ff0.js","static/chunks/29107295-1453a3860b50f70e.js","static/chunks/7910-44b63d030e4b1767.js","static/chunks/ee8b1517-9cf421a7da630c58.js","static/chunks/236-f876fd1a47451d45.js","static/chunks/8245-b34a27e35386277e.js","static/chunks/8119-57984c2c349ea105.js","static/chunks/9550-db4a457e5e1bbbcf.js","static/chunks/4ad82c5e-929b3fa886d2b3d7.js","static/chunks/1943-896020ebd27dae4b.js","static/chunks/1938-c04d908728a12ddb.js","static/chunks/3286-716fef4ced844a4d.js","static/chunks/d3048c20-93c008b4ff3ddb0e.js","static/chunks/d2094a0f-7059b9f8abbc2737.js","static/chunks/3729-e88e6289f5436bb5.js","static/chunks/4977-167fb026492a9609.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/BVDfMwekITziMoOSJLAS6/_ssgManifest.js b/static/web/_next/static/2PHoXvghxUJEuSZYB92KR/_ssgManifest.js similarity index 100% rename from static/web/_next/static/BVDfMwekITziMoOSJLAS6/_ssgManifest.js rename to static/web/_next/static/2PHoXvghxUJEuSZYB92KR/_ssgManifest.js diff --git a/static/web/_next/static/chunks/4761.cb910a55acf314dc.js b/static/web/_next/static/chunks/4761.87081196c75ba794.js similarity index 94% rename from static/web/_next/static/chunks/4761.cb910a55acf314dc.js rename to static/web/_next/static/chunks/4761.87081196c75ba794.js index bb6dcaf23..fca08cd29 100644 --- a/static/web/_next/static/chunks/4761.cb910a55acf314dc.js +++ b/static/web/_next/static/chunks/4761.87081196c75ba794.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4761],{26303:function(e,t,a){"use strict";a.d(t,{Z:function(){return E}});var n=a(4942),l=a(87462),c=a(71002),r=a(94184),s=a.n(r),i=a(67294),o=a(53124),m=a(98423),d=function(e){var t,a,c=e.prefixCls,r=e.className,o=e.style,m=e.size,d=e.shape,u=s()((t={},(0,n.Z)(t,"".concat(c,"-lg"),"large"===m),(0,n.Z)(t,"".concat(c,"-sm"),"small"===m),t)),v=s()((a={},(0,n.Z)(a,"".concat(c,"-circle"),"circle"===d),(0,n.Z)(a,"".concat(c,"-square"),"square"===d),(0,n.Z)(a,"".concat(c,"-round"),"round"===d),a)),f=i.useMemo(function(){return"number"==typeof m?{width:m,height:m,lineHeight:"".concat(m,"px")}:{}},[m]);return i.createElement("span",{className:s()(c,u,v,r),style:(0,l.Z)((0,l.Z)({},f),o)})},u=a(1413),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},f=a(42135),p=function(e,t){return i.createElement(f.Z,(0,u.Z)((0,u.Z)({},e),{},{ref:t,icon:v}))};p.displayName="DotChartOutlined";var x=i.forwardRef(p),h=a(74902),Z=function(e){var t=function(t){var a=e.width,n=e.rows;return Array.isArray(a)?a[t]:(void 0===n?2:n)-1===t?a:void 0},a=e.prefixCls,n=e.className,l=e.style,c=e.rows,r=(0,h.Z)(Array(c)).map(function(e,a){return i.createElement("li",{key:a,style:{width:t(a)}})});return i.createElement("ul",{className:s()(a,n),style:l},r)},N=function(e){var t=e.prefixCls,a=e.className,n=e.width,c=e.style;return i.createElement("h3",{className:s()(t,a),style:(0,l.Z)({width:n},c)})};function g(e){return e&&"object"===(0,c.Z)(e)?e:{}}var C=function(e){var t=e.prefixCls,a=e.loading,c=e.className,r=e.style,m=e.children,u=e.avatar,v=void 0!==u&&u,f=e.title,p=void 0===f||f,x=e.paragraph,h=void 0===x||x,C=e.active,E=e.round,y=i.useContext(o.E_),w=y.getPrefixCls,b=y.direction,z=w("skeleton",t);if(a||!("loading"in e)){var k=!!v,_=!!p,P=!!h;if(k){var O=(0,l.Z)((0,l.Z)({prefixCls:"".concat(z,"-avatar")},_&&!P?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),g(v));q=i.createElement("div",{className:"".concat(z,"-header")},i.createElement(d,(0,l.Z)({},O)))}if(_||P){if(_){var j,q,M,S,I,A=(0,l.Z)((0,l.Z)({prefixCls:"".concat(z,"-title")},!k&&P?{width:"38%"}:k&&P?{width:"50%"}:{}),g(p));S=i.createElement(N,(0,l.Z)({},A))}if(P){var B,H=(0,l.Z)((0,l.Z)({prefixCls:"".concat(z,"-paragraph")},(B={},k&&_||(B.width="61%"),!k&&_?B.rows=3:B.rows=2,B)),g(h));I=i.createElement(Z,(0,l.Z)({},H))}M=i.createElement("div",{className:"".concat(z,"-content")},S,I)}var D=s()(z,(j={},(0,n.Z)(j,"".concat(z,"-with-avatar"),k),(0,n.Z)(j,"".concat(z,"-active"),C),(0,n.Z)(j,"".concat(z,"-rtl"),"rtl"===b),(0,n.Z)(j,"".concat(z,"-round"),E),j),c);return i.createElement("div",{className:D,style:r},q,M)}return void 0!==m?m:null};C.Button=function(e){var t,a=e.prefixCls,c=e.className,r=e.active,u=e.block,v=e.size,f=(0,i.useContext(o.E_).getPrefixCls)("skeleton",a),p=(0,m.Z)(e,["prefixCls"]),x=s()(f,"".concat(f,"-element"),(t={},(0,n.Z)(t,"".concat(f,"-active"),r),(0,n.Z)(t,"".concat(f,"-block"),void 0!==u&&u),t),c);return i.createElement("div",{className:x},i.createElement(d,(0,l.Z)({prefixCls:"".concat(f,"-button"),size:void 0===v?"default":v},p)))},C.Avatar=function(e){var t=e.prefixCls,a=e.className,c=e.active,r=e.shape,u=e.size,v=(0,i.useContext(o.E_).getPrefixCls)("skeleton",t),f=(0,m.Z)(e,["prefixCls","className"]),p=s()(v,"".concat(v,"-element"),(0,n.Z)({},"".concat(v,"-active"),c),a);return i.createElement("div",{className:p},i.createElement(d,(0,l.Z)({prefixCls:"".concat(v,"-avatar"),shape:void 0===r?"circle":r,size:void 0===u?"default":u},f)))},C.Input=function(e){var t,a=e.prefixCls,c=e.className,r=e.active,u=e.block,v=e.size,f=(0,i.useContext(o.E_).getPrefixCls)("skeleton",a),p=(0,m.Z)(e,["prefixCls"]),x=s()(f,"".concat(f,"-element"),(t={},(0,n.Z)(t,"".concat(f,"-active"),r),(0,n.Z)(t,"".concat(f,"-block"),u),t),c);return i.createElement("div",{className:x},i.createElement(d,(0,l.Z)({prefixCls:"".concat(f,"-input"),size:void 0===v?"default":v},p)))},C.Image=function(e){var t=e.prefixCls,a=e.className,l=e.style,c=e.active,r=(0,i.useContext(o.E_).getPrefixCls)("skeleton",t),m=s()(r,"".concat(r,"-element"),(0,n.Z)({},"".concat(r,"-active"),c),a);return i.createElement("div",{className:m},i.createElement("div",{className:s()("".concat(r,"-image"),a),style:l},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(r,"-image-svg")},i.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(r,"-image-path")}))))},C.Node=function(e){var t=e.prefixCls,a=e.className,l=e.style,c=e.active,r=e.children,m=(0,i.useContext(o.E_).getPrefixCls)("skeleton",t),d=s()(m,"".concat(m,"-element"),(0,n.Z)({},"".concat(m,"-active"),c),a),u=null!=r?r:i.createElement(x,null);return i.createElement("div",{className:d},i.createElement("div",{className:s()("".concat(m,"-image"),a),style:l},u))};var E=C},11382:function(e,t,a){"use strict";var n=a(87462),l=a(4942),c=a(97685),r=a(94184),s=a.n(r),i=a(23279),o=a.n(i),m=a(98423),d=a(67294),u=a(53124),v=a(96159),f=a(93355),p=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);lt.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(a[n[l]]=e[n[l]]);return a};(0,f.b)("small","default","large");var x=null,h=function(e){var t=e.spinPrefixCls,a=e.spinning,r=void 0===a||a,i=e.delay,f=e.className,h=e.size,Z=void 0===h?"default":h,N=e.tip,g=e.wrapperClassName,C=e.style,E=e.children,y=p(e,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),w=d.useState(function(){return r&&(!r||!i||!!isNaN(Number(i)))}),b=(0,c.Z)(w,2),z=b[0],k=b[1];return d.useEffect(function(){var e=o()(function(){k(r)},i);return e(),function(){var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}},[i,r]),d.createElement(u.C,null,function(a){var c,r,i,o=a.direction,u=s()(t,(i={},(0,l.Z)(i,"".concat(t,"-sm"),"small"===Z),(0,l.Z)(i,"".concat(t,"-lg"),"large"===Z),(0,l.Z)(i,"".concat(t,"-spinning"),z),(0,l.Z)(i,"".concat(t,"-show-text"),!!N),(0,l.Z)(i,"".concat(t,"-rtl"),"rtl"===o),i),f),p=(0,m.Z)(y,["indicator","prefixCls"]),h=d.createElement("div",(0,n.Z)({},p,{style:C,className:u,"aria-live":"polite","aria-busy":z}),(c=e.indicator,r="".concat(t,"-dot"),null===c?null:(0,v.l$)(c)?(0,v.Tm)(c,{className:s()(c.props.className,r)}):(0,v.l$)(x)?(0,v.Tm)(x,{className:s()(x.props.className,r)}):d.createElement("span",{className:s()(r,"".concat(t,"-dot-spin"))},d.createElement("i",{className:"".concat(t,"-dot-item")}),d.createElement("i",{className:"".concat(t,"-dot-item")}),d.createElement("i",{className:"".concat(t,"-dot-item")}),d.createElement("i",{className:"".concat(t,"-dot-item")}))),N?d.createElement("div",{className:"".concat(t,"-text")},N):null);if(void 0!==E){var w=s()("".concat(t,"-container"),(0,l.Z)({},"".concat(t,"-blur"),z));return d.createElement("div",(0,n.Z)({},p,{className:s()("".concat(t,"-nested-loading"),g)}),z&&d.createElement("div",{key:"loading"},h),d.createElement("div",{className:w,key:"container"},E))}return h})},Z=function(e){var t=e.prefixCls,a=(0,d.useContext(u.E_).getPrefixCls)("spin",t),l=(0,n.Z)((0,n.Z)({},e),{spinPrefixCls:a});return d.createElement(h,(0,n.Z)({},l))};Z.setDefaultIndicator=function(e){x=e},t.Z=Z},14761:function(e,t,a){"use strict";a.r(t),a.d(t,{Modal:function(){return m}});var n=a(85893),l=a(85402),c=a(26303),r=a(11382),s=a(67294),i=a(77011),o=a.n(i);let m=e=>{let{title:t,url:a,open:i,handleOk:m,handleCancel:d,afterClose:u,height:v,width:f,children:p}=e,[x,h]=(0,s.useState)(!!a),Z="100%",N="520px";a&&(Z="70vh",N="900px");let g={padding:"0px",minHeight:v,height:null!=v?v:Z},C=a&&(0,n.jsx)("iframe",{title:t,src:a,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,style:{display:"block"},onLoad:()=>h(!1)});return(0,n.jsx)(l.Z,{title:t,open:i,onOk:m,onCancel:d,afterClose:u,bodyStyle:g,width:null!=f?f:N,zIndex:999,footer:null,centered:!0,destroyOnClose:!0,children:(0,n.jsxs)(n.Fragment,{children:[x&&(0,n.jsx)(c.Z,{active:x,style:{padding:"10px"},paragraph:{rows:10}}),C&&(0,n.jsx)("div",{style:{display:x?"none":"inline"},children:C}),p&&(0,n.jsx)("div",{className:o().content,children:p}),x&&(0,n.jsx)(r.Z,{className:o().spinner,spinning:x,size:"large"})]})})};t.default=m,m.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0}},77011:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4761],{26303:function(e,t,a){"use strict";a.d(t,{Z:function(){return E}});var n=a(4942),l=a(87462),c=a(71002),r=a(94184),s=a.n(r),i=a(67294),o=a(53124),m=a(98423),d=function(e){var t,a,c=e.prefixCls,r=e.className,o=e.style,m=e.size,d=e.shape,u=s()((t={},(0,n.Z)(t,"".concat(c,"-lg"),"large"===m),(0,n.Z)(t,"".concat(c,"-sm"),"small"===m),t)),v=s()((a={},(0,n.Z)(a,"".concat(c,"-circle"),"circle"===d),(0,n.Z)(a,"".concat(c,"-square"),"square"===d),(0,n.Z)(a,"".concat(c,"-round"),"round"===d),a)),f=i.useMemo(function(){return"number"==typeof m?{width:m,height:m,lineHeight:"".concat(m,"px")}:{}},[m]);return i.createElement("span",{className:s()(c,u,v,r),style:(0,l.Z)((0,l.Z)({},f),o)})},u=a(1413),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},f=a(42135),p=function(e,t){return i.createElement(f.Z,(0,u.Z)((0,u.Z)({},e),{},{ref:t,icon:v}))};p.displayName="DotChartOutlined";var x=i.forwardRef(p),h=a(74902),Z=function(e){var t=function(t){var a=e.width,n=e.rows;return Array.isArray(a)?a[t]:(void 0===n?2:n)-1===t?a:void 0},a=e.prefixCls,n=e.className,l=e.style,c=e.rows,r=(0,h.Z)(Array(c)).map(function(e,a){return i.createElement("li",{key:a,style:{width:t(a)}})});return i.createElement("ul",{className:s()(a,n),style:l},r)},N=function(e){var t=e.prefixCls,a=e.className,n=e.width,c=e.style;return i.createElement("h3",{className:s()(t,a),style:(0,l.Z)({width:n},c)})};function g(e){return e&&"object"===(0,c.Z)(e)?e:{}}var C=function(e){var t=e.prefixCls,a=e.loading,c=e.className,r=e.style,m=e.children,u=e.avatar,v=void 0!==u&&u,f=e.title,p=void 0===f||f,x=e.paragraph,h=void 0===x||x,C=e.active,E=e.round,y=i.useContext(o.E_),w=y.getPrefixCls,b=y.direction,z=w("skeleton",t);if(a||!("loading"in e)){var k=!!v,_=!!p,P=!!h;if(k){var O=(0,l.Z)((0,l.Z)({prefixCls:"".concat(z,"-avatar")},_&&!P?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),g(v));q=i.createElement("div",{className:"".concat(z,"-header")},i.createElement(d,(0,l.Z)({},O)))}if(_||P){if(_){var j,q,M,S,I,A=(0,l.Z)((0,l.Z)({prefixCls:"".concat(z,"-title")},!k&&P?{width:"38%"}:k&&P?{width:"50%"}:{}),g(p));S=i.createElement(N,(0,l.Z)({},A))}if(P){var B,H=(0,l.Z)((0,l.Z)({prefixCls:"".concat(z,"-paragraph")},(B={},k&&_||(B.width="61%"),!k&&_?B.rows=3:B.rows=2,B)),g(h));I=i.createElement(Z,(0,l.Z)({},H))}M=i.createElement("div",{className:"".concat(z,"-content")},S,I)}var D=s()(z,(j={},(0,n.Z)(j,"".concat(z,"-with-avatar"),k),(0,n.Z)(j,"".concat(z,"-active"),C),(0,n.Z)(j,"".concat(z,"-rtl"),"rtl"===b),(0,n.Z)(j,"".concat(z,"-round"),E),j),c);return i.createElement("div",{className:D,style:r},q,M)}return void 0!==m?m:null};C.Button=function(e){var t,a=e.prefixCls,c=e.className,r=e.active,u=e.block,v=e.size,f=(0,i.useContext(o.E_).getPrefixCls)("skeleton",a),p=(0,m.Z)(e,["prefixCls"]),x=s()(f,"".concat(f,"-element"),(t={},(0,n.Z)(t,"".concat(f,"-active"),r),(0,n.Z)(t,"".concat(f,"-block"),void 0!==u&&u),t),c);return i.createElement("div",{className:x},i.createElement(d,(0,l.Z)({prefixCls:"".concat(f,"-button"),size:void 0===v?"default":v},p)))},C.Avatar=function(e){var t=e.prefixCls,a=e.className,c=e.active,r=e.shape,u=e.size,v=(0,i.useContext(o.E_).getPrefixCls)("skeleton",t),f=(0,m.Z)(e,["prefixCls","className"]),p=s()(v,"".concat(v,"-element"),(0,n.Z)({},"".concat(v,"-active"),c),a);return i.createElement("div",{className:p},i.createElement(d,(0,l.Z)({prefixCls:"".concat(v,"-avatar"),shape:void 0===r?"circle":r,size:void 0===u?"default":u},f)))},C.Input=function(e){var t,a=e.prefixCls,c=e.className,r=e.active,u=e.block,v=e.size,f=(0,i.useContext(o.E_).getPrefixCls)("skeleton",a),p=(0,m.Z)(e,["prefixCls"]),x=s()(f,"".concat(f,"-element"),(t={},(0,n.Z)(t,"".concat(f,"-active"),r),(0,n.Z)(t,"".concat(f,"-block"),u),t),c);return i.createElement("div",{className:x},i.createElement(d,(0,l.Z)({prefixCls:"".concat(f,"-input"),size:void 0===v?"default":v},p)))},C.Image=function(e){var t=e.prefixCls,a=e.className,l=e.style,c=e.active,r=(0,i.useContext(o.E_).getPrefixCls)("skeleton",t),m=s()(r,"".concat(r,"-element"),(0,n.Z)({},"".concat(r,"-active"),c),a);return i.createElement("div",{className:m},i.createElement("div",{className:s()("".concat(r,"-image"),a),style:l},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(r,"-image-svg")},i.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(r,"-image-path")}))))},C.Node=function(e){var t=e.prefixCls,a=e.className,l=e.style,c=e.active,r=e.children,m=(0,i.useContext(o.E_).getPrefixCls)("skeleton",t),d=s()(m,"".concat(m,"-element"),(0,n.Z)({},"".concat(m,"-active"),c),a),u=null!=r?r:i.createElement(x,null);return i.createElement("div",{className:d},i.createElement("div",{className:s()("".concat(m,"-image"),a),style:l},u))};var E=C},11382:function(e,t,a){"use strict";var n=a(87462),l=a(4942),c=a(97685),r=a(94184),s=a.n(r),i=a(23279),o=a.n(i),m=a(98423),d=a(67294),u=a(53124),v=a(96159),f=a(93355),p=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);lt.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(a[n[l]]=e[n[l]]);return a};(0,f.b)("small","default","large");var x=null,h=function(e){var t=e.spinPrefixCls,a=e.spinning,r=void 0===a||a,i=e.delay,f=e.className,h=e.size,Z=void 0===h?"default":h,N=e.tip,g=e.wrapperClassName,C=e.style,E=e.children,y=p(e,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),w=d.useState(function(){return r&&(!r||!i||!!isNaN(Number(i)))}),b=(0,c.Z)(w,2),z=b[0],k=b[1];return d.useEffect(function(){var e=o()(function(){k(r)},i);return e(),function(){var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}},[i,r]),d.createElement(u.C,null,function(a){var c,r,i,o=a.direction,u=s()(t,(i={},(0,l.Z)(i,"".concat(t,"-sm"),"small"===Z),(0,l.Z)(i,"".concat(t,"-lg"),"large"===Z),(0,l.Z)(i,"".concat(t,"-spinning"),z),(0,l.Z)(i,"".concat(t,"-show-text"),!!N),(0,l.Z)(i,"".concat(t,"-rtl"),"rtl"===o),i),f),p=(0,m.Z)(y,["indicator","prefixCls"]),h=d.createElement("div",(0,n.Z)({},p,{style:C,className:u,"aria-live":"polite","aria-busy":z}),(c=e.indicator,r="".concat(t,"-dot"),null===c?null:(0,v.l$)(c)?(0,v.Tm)(c,{className:s()(c.props.className,r)}):(0,v.l$)(x)?(0,v.Tm)(x,{className:s()(x.props.className,r)}):d.createElement("span",{className:s()(r,"".concat(t,"-dot-spin"))},d.createElement("i",{className:"".concat(t,"-dot-item")}),d.createElement("i",{className:"".concat(t,"-dot-item")}),d.createElement("i",{className:"".concat(t,"-dot-item")}),d.createElement("i",{className:"".concat(t,"-dot-item")}))),N?d.createElement("div",{className:"".concat(t,"-text")},N):null);if(void 0!==E){var w=s()("".concat(t,"-container"),(0,l.Z)({},"".concat(t,"-blur"),z));return d.createElement("div",(0,n.Z)({},p,{className:s()("".concat(t,"-nested-loading"),g)}),z&&d.createElement("div",{key:"loading"},h),d.createElement("div",{className:w,key:"container"},E))}return h})},Z=function(e){var t=e.prefixCls,a=(0,d.useContext(u.E_).getPrefixCls)("spin",t),l=(0,n.Z)((0,n.Z)({},e),{spinPrefixCls:a});return d.createElement(h,(0,n.Z)({},l))};Z.setDefaultIndicator=function(e){x=e},t.Z=Z},14761:function(e,t,a){"use strict";a.r(t),a.d(t,{Modal:function(){return m}});var n=a(85893),l=a(85402),c=a(26303),r=a(11382),s=a(67294),i=a(77011),o=a.n(i);let m=e=>{let{title:t,url:a,open:i,handleOk:m,handleCancel:d,afterClose:u,height:v,width:f,children:p}=e,[x,h]=(0,s.useState)(!!a),Z="100%",N="520px";a&&(Z="70vh",N="900px");let g={padding:"0px",minHeight:v,height:null!=v?v:Z},C=a&&(0,n.jsx)("iframe",{title:t,src:a,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,style:{display:"block"},onLoad:()=>h(!1)});return(0,n.jsx)(l.Z,{title:t,open:i,onOk:m,onCancel:d,afterClose:u,bodyStyle:g,width:null!=f?f:N,zIndex:999,footer:null,centered:!0,destroyOnClose:!0,children:(0,n.jsxs)("div",{id:"modal-container",children:[x&&(0,n.jsx)(c.Z,{active:x,style:{padding:"10px"},paragraph:{rows:10}}),C&&(0,n.jsx)("div",{style:{display:x?"none":"inline"},children:C}),p&&(0,n.jsx)("div",{className:o().content,children:p}),x&&(0,n.jsx)(r.Z,{className:o().spinner,spinning:x,size:"large"})]})})};t.default=m,m.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0}},77011: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/4860.1fa203f907dec42e.js b/static/web/_next/static/chunks/4860.79ae86f2aa163e31.js similarity index 85% rename from static/web/_next/static/chunks/4860.1fa203f907dec42e.js rename to static/web/_next/static/chunks/4860.79ae86f2aa163e31.js index a9179ad34..999879442 100644 --- a/static/web/_next/static/chunks/4860.1fa203f907dec42e.js +++ b/static/web/_next/static/chunks/4860.79ae86f2aa163e31.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4860],{94860:function(e,n,t){"use strict";t.r(n),t.d(n,{ChatModerationActionMenu:function(){return U}});var a=t(85893),s=t(11475),o=t(90420),r=t(18429),l=t(64942),i=t(85402),c=t(12461),d=t(66516),h=t(38504),u=t(26713),p=t(67294),x=t(14761),j=t(54907),y=t(71230),m=t(15746),g=t(71577),f=t(11382),v=t(20550),C=t(52206),Z=t(58091),w=t(48689),b=class{static async removeMessage(e,n){let t=new URL("/api/chat/messagevisibility",window.location.toString());t.searchParams.append("accessToken",n);let a=t.toString(),s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idArray:[e]})};await fetch(a,s)}static async banUser(e,n){let t=new URL("/api/chat/users/setenabled",window.location.toString());t.searchParams.append("accessToken",n);let a=t.toString(),s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})};await fetch(a,s)}},k=t(57761),_=t.n(k),M=t(70241);let{Panel:S}=j.Z,A=async(e,n)=>{try{b.removeMessage(e,n)}catch(t){console.error(t)}},P=e=>{let{label:n,value:t}=e;return(0,a.jsxs)(y.Z,{justify:"space-around",align:"middle",children:[(0,a.jsx)(m.Z,{span:12,children:n}),(0,a.jsx)(m.Z,{span:12,children:t})]})},N=e=>{let{client:n}=e,{messageCount:t,connectedAt:s,geo:o}=n,r=(0,Z.Z)(new Date(s),"PP pp");return(0,a.jsxs)("div",{children:[(0,a.jsx)(P,{label:"Messages Sent",value:"".concat(t)}),"N/A"!==o&&(0,a.jsx)(P,{label:"Geo",value:o}),(0,a.jsx)(P,{label:"Connected At",value:r})]})},D=e=>{let{color:n}=e;return(0,a.jsxs)("div",{className:_().colorBlock,style:{backgroundColor:"var(--theme-color-users-".concat(n,")")},children:["Color ",n]})},O=e=>{let{userId:n,accessToken:t}=e,[s,o]=(0,p.useState)(null),[r,l]=(0,p.useState)(!0),i=async()=>{try{let e=await (await fetch("/api/moderation/chat/user/".concat(n,"?accessToken=").concat(t))).json();o(e),l(!1)}catch(a){console.error(a)}};if((0,p.useEffect)(()=>{i()},[]),!s)return null;let{user:c,connectedClients:d,messages:h}=s,{displayColor:u,createdAt:x,previousNames:y,scopes:m,isBot:b,authenticated:k}=c,_=d.reduce((e,n)=>e+n.messageCount,0),O=(0,Z.Z)(new Date(x),"PP pp");return(0,a.jsxs)(f.Z,{spinning:r,children:[(0,a.jsx)(D,{color:u}),m.map(e=>(0,a.jsx)(v.Z,{children:e},e)),k&&(0,a.jsx)(v.Z,{children:"Authenticated"}),b&&(0,a.jsx)(v.Z,{children:"Bot"}),(0,a.jsx)(P,{label:"Messages Sent Across Clients",value:_.toString()}),(0,a.jsx)(P,{label:"User Created",value:O}),(0,a.jsx)(P,{label:"Known As",value:y.join(",")}),(0,a.jsxs)(j.Z,{accordion:!0,children:[(0,a.jsx)(S,{header:"Currently Connected Clients",children:(0,a.jsx)(j.Z,{accordion:!0,children:d.map(e=>(0,a.jsx)(S,{header:(0,M.AB)(e.userAgent),children:(0,a.jsx)(N,{client:e})},e.userAgent))})},"connected-clients"),(0,a.jsx)(j.Z,{accordion:!0,children:(0,a.jsx)(S,{header:"Recent Chat Messages",children:(0,a.jsx)(C.Z,{size:"small",pagination:null,columns:[{title:"Message",dataIndex:"body",key:"body"},{title:"Sent At",dataIndex:"timestamp",key:"timestamp",render:e=>(0,Z.Z)(new Date(e),"PP pp")},{title:"Delete",key:"delete",render:(e,n)=>(0,a.jsx)(g.Z,{type:"primary",ghost:!0,icon:(0,a.jsx)(w.Z,{}),onClick:()=>A(n.id,t)})}],dataSource:h})},"chat-messages")})]})]})};var T=t(24110),B=t.n(T);let{confirm:I}=i.Z,U=e=>{let{messageID:n,userID:t,userDisplayName:i,accessToken:j}=e,[y,m]=(0,p.useState)(!1),g=async()=>{try{await b.banUser(t,j)}catch(e){console.error(e),c.ZP.error(e)}},f=async()=>{try{await b.removeMessage(n,j)}catch(e){console.error(e),c.ZP.error(e)}},v=async()=>{I({icon:(0,a.jsx)(s.Z,{}),content:"Are you sure you want to remove this message from ".concat(i,"?"),onOk(){f()}})},C=async()=>{I({icon:(0,a.jsx)(s.Z,{}),content:"Are you sure you want to ban ".concat(i," from chat?"),onOk(){g()}})},Z=e=>{let{key:n}=e;"hide-message"===n?v():"ban-user"===n?C():"more-info"===n&&m(!0)},w=(0,a.jsx)(d.Z,{onClick:Z,items:[{label:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:B().icon,children:(0,a.jsx)(o.Z,{})}),"Hide Message"]}),key:"hide-message"},{label:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:B().icon,children:(0,a.jsx)(r.Z,{})}),"Ban User"]}),key:"ban-user"},{label:(0,a.jsx)("div",{children:"More Info..."}),key:"more-info"}]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.Z,{overlay:w,trigger:["click"],children:(0,a.jsx)("button",{type:"button",onClick:e=>e.preventDefault(),children:(0,a.jsx)(u.Z,{children:(0,a.jsx)(l.Z,{})})})}),(0,a.jsx)(x.Modal,{title:i,open:y,handleCancel(){m(!1)},children:(0,a.jsx)(O,{userId:t,accessToken:j})})]})}},14761:function(e,n,t){"use strict";t.r(n),t.d(n,{Modal:function(){return d}});var a=t(85893),s=t(85402),o=t(26303),r=t(11382),l=t(67294),i=t(77011),c=t.n(i);let d=e=>{let{title:n,url:t,open:i,handleOk:d,handleCancel:h,afterClose:u,height:p,width:x,children:j}=e,[y,m]=(0,l.useState)(!!t),g="100%",f="520px";t&&(g="70vh",f="900px");let v={padding:"0px",minHeight:p,height:null!=p?p:g},C=t&&(0,a.jsx)("iframe",{title:n,src:t,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,style:{display:"block"},onLoad:()=>m(!1)});return(0,a.jsx)(s.Z,{title:n,open:i,onOk:d,onCancel:h,afterClose:u,bodyStyle:v,width:null!=x?x:f,zIndex:999,footer:null,centered:!0,destroyOnClose:!0,children:(0,a.jsxs)(a.Fragment,{children:[y&&(0,a.jsx)(o.Z,{active:y,style:{padding:"10px"},paragraph:{rows:10}}),C&&(0,a.jsx)("div",{style:{display:y?"none":"inline"},children:C}),j&&(0,a.jsx)("div",{className:c().content,children:j}),y&&(0,a.jsx)(r.Z,{className:c().spinner,spinning:y,size:"large"})]})})};n.default=d,d.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0}},24110:function(e){e.exports={icon:"ChatModerationActionMenu_icon__9j6DF"}},57761:function(e){e.exports={modalContainer:"ChatModerationDetailsModal_modalContainer__czndV",chatHistory:"ChatModerationDetailsModal_chatHistory__PunRk",colorBlock:"ChatModerationDetailsModal_colorBlock___rAlw",displayName:"ChatModerationDetailsModal_displayName__p7pLI"}},77011:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4860],{94860:function(e,n,t){"use strict";t.r(n),t.d(n,{ChatModerationActionMenu:function(){return U}});var a=t(85893),s=t(11475),o=t(90420),r=t(18429),l=t(64942),i=t(85402),c=t(12461),d=t(66516),h=t(38504),u=t(26713),p=t(67294),x=t(14761),j=t(54907),y=t(71230),m=t(15746),g=t(71577),f=t(11382),v=t(20550),C=t(52206),Z=t(58091),w=t(48689),b=class{static async removeMessage(e,n){let t=new URL("/api/chat/messagevisibility",window.location.toString());t.searchParams.append("accessToken",n);let a=t.toString(),s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idArray:[e]})};await fetch(a,s)}static async banUser(e,n){let t=new URL("/api/chat/users/setenabled",window.location.toString());t.searchParams.append("accessToken",n);let a=t.toString(),s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})};await fetch(a,s)}},k=t(57761),_=t.n(k),M=t(70241);let{Panel:S}=j.Z,A=async(e,n)=>{try{b.removeMessage(e,n)}catch(t){console.error(t)}},P=e=>{let{label:n,value:t}=e;return(0,a.jsxs)(y.Z,{justify:"space-around",align:"middle",children:[(0,a.jsx)(m.Z,{span:12,children:n}),(0,a.jsx)(m.Z,{span:12,children:t})]})},N=e=>{let{client:n}=e,{messageCount:t,connectedAt:s,geo:o}=n,r=(0,Z.Z)(new Date(s),"PP pp");return(0,a.jsxs)("div",{children:[(0,a.jsx)(P,{label:"Messages Sent",value:"".concat(t)}),"N/A"!==o&&(0,a.jsx)(P,{label:"Geo",value:o}),(0,a.jsx)(P,{label:"Connected At",value:r})]})},D=e=>{let{color:n}=e;return(0,a.jsxs)("div",{className:_().colorBlock,style:{backgroundColor:"var(--theme-color-users-".concat(n,")")},children:["Color ",n]})},O=e=>{let{userId:n,accessToken:t}=e,[s,o]=(0,p.useState)(null),[r,l]=(0,p.useState)(!0),i=async()=>{try{let e=await (await fetch("/api/moderation/chat/user/".concat(n,"?accessToken=").concat(t))).json();o(e),l(!1)}catch(a){console.error(a)}};if((0,p.useEffect)(()=>{i()},[]),!s)return null;let{user:c,connectedClients:d,messages:h}=s,{displayColor:u,createdAt:x,previousNames:y,scopes:m,isBot:b,authenticated:k}=c,_=d.reduce((e,n)=>e+n.messageCount,0),O=(0,Z.Z)(new Date(x),"PP pp");return(0,a.jsxs)(f.Z,{spinning:r,children:[(0,a.jsx)(D,{color:u}),m.map(e=>(0,a.jsx)(v.Z,{children:e},e)),k&&(0,a.jsx)(v.Z,{children:"Authenticated"}),b&&(0,a.jsx)(v.Z,{children:"Bot"}),(0,a.jsx)(P,{label:"Messages Sent Across Clients",value:_.toString()}),(0,a.jsx)(P,{label:"User Created",value:O}),(0,a.jsx)(P,{label:"Known As",value:y.join(",")}),(0,a.jsxs)(j.Z,{accordion:!0,children:[(0,a.jsx)(S,{header:"Currently Connected Clients",children:(0,a.jsx)(j.Z,{accordion:!0,children:d.map(e=>(0,a.jsx)(S,{header:(0,M.AB)(e.userAgent),children:(0,a.jsx)(N,{client:e})},e.userAgent))})},"connected-clients"),(0,a.jsx)(j.Z,{accordion:!0,children:(0,a.jsx)(S,{header:"Recent Chat Messages",children:(0,a.jsx)(C.Z,{size:"small",pagination:null,columns:[{title:"Message",dataIndex:"body",key:"body"},{title:"Sent At",dataIndex:"timestamp",key:"timestamp",render:e=>(0,Z.Z)(new Date(e),"PP pp")},{title:"Delete",key:"delete",render:(e,n)=>(0,a.jsx)(g.Z,{type:"primary",ghost:!0,icon:(0,a.jsx)(w.Z,{}),onClick:()=>A(n.id,t)})}],dataSource:h})},"chat-messages")})]})]})};var T=t(24110),B=t.n(T);let{confirm:I}=i.Z,U=e=>{let{messageID:n,userID:t,userDisplayName:i,accessToken:j}=e,[y,m]=(0,p.useState)(!1),g=async()=>{try{await b.banUser(t,j)}catch(e){console.error(e),c.ZP.error(e)}},f=async()=>{try{await b.removeMessage(n,j)}catch(e){console.error(e),c.ZP.error(e)}},v=async()=>{I({icon:(0,a.jsx)(s.Z,{}),content:"Are you sure you want to remove this message from ".concat(i,"?"),onOk(){f()}})},C=async()=>{I({icon:(0,a.jsx)(s.Z,{}),content:"Are you sure you want to ban ".concat(i," from chat?"),onOk(){g()}})},Z=e=>{let{key:n}=e;"hide-message"===n?v():"ban-user"===n?C():"more-info"===n&&m(!0)},w=(0,a.jsx)(d.Z,{onClick:Z,items:[{label:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:B().icon,children:(0,a.jsx)(o.Z,{})}),"Hide Message"]}),key:"hide-message"},{label:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:B().icon,children:(0,a.jsx)(r.Z,{})}),"Ban User"]}),key:"ban-user"},{label:(0,a.jsx)("div",{children:"More Info..."}),key:"more-info"}]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.Z,{overlay:w,trigger:["click"],children:(0,a.jsx)("button",{type:"button",onClick:e=>e.preventDefault(),children:(0,a.jsx)(u.Z,{children:(0,a.jsx)(l.Z,{})})})}),(0,a.jsx)(x.Modal,{title:i,open:y,handleCancel(){m(!1)},children:(0,a.jsx)(O,{userId:t,accessToken:j})})]})}},14761:function(e,n,t){"use strict";t.r(n),t.d(n,{Modal:function(){return d}});var a=t(85893),s=t(85402),o=t(26303),r=t(11382),l=t(67294),i=t(77011),c=t.n(i);let d=e=>{let{title:n,url:t,open:i,handleOk:d,handleCancel:h,afterClose:u,height:p,width:x,children:j}=e,[y,m]=(0,l.useState)(!!t),g="100%",f="520px";t&&(g="70vh",f="900px");let v={padding:"0px",minHeight:p,height:null!=p?p:g},C=t&&(0,a.jsx)("iframe",{title:n,src:t,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,style:{display:"block"},onLoad:()=>m(!1)});return(0,a.jsx)(s.Z,{title:n,open:i,onOk:d,onCancel:h,afterClose:u,bodyStyle:v,width:null!=x?x:f,zIndex:999,footer:null,centered:!0,destroyOnClose:!0,children:(0,a.jsxs)("div",{id:"modal-container",children:[y&&(0,a.jsx)(o.Z,{active:y,style:{padding:"10px"},paragraph:{rows:10}}),C&&(0,a.jsx)("div",{style:{display:y?"none":"inline"},children:C}),j&&(0,a.jsx)("div",{className:c().content,children:j}),y&&(0,a.jsx)(r.Z,{className:c().spinner,spinning:y,size:"large"})]})})};n.default=d,d.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0}},24110:function(e){e.exports={icon:"ChatModerationActionMenu_icon__9j6DF"}},57761:function(e){e.exports={modalContainer:"ChatModerationDetailsModal_modalContainer__czndV",chatHistory:"ChatModerationDetailsModal_chatHistory__PunRk",colorBlock:"ChatModerationDetailsModal_colorBlock___rAlw",displayName:"ChatModerationDetailsModal_displayName__p7pLI"}},77011: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/pages/embed/chat/readwrite-77b026a7e5273b6b.js b/static/web/_next/static/chunks/pages/embed/chat/readwrite-56b92edb498f6991.js similarity index 61% rename from static/web/_next/static/chunks/pages/embed/chat/readwrite-77b026a7e5273b6b.js rename to static/web/_next/static/chunks/pages/embed/chat/readwrite-56b92edb498f6991.js index be9980c8b..50344669f 100644 --- a/static/web/_next/static/chunks/pages/embed/chat/readwrite-77b026a7e5273b6b.js +++ b/static/web/_next/static/chunks/pages/embed/chat/readwrite-56b92edb498f6991.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[955,1496],{30672:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readwrite",function(){return t(34986)}])},37527:function(e,n,t){"use strict";t.d(n,{h:function(){return T},Z:function(){return U}});var a=t(85893),r=t(97183),s=t(94199),l=t(20550),i=t(94184),c=t.n(i),o=t(66516),d=t(38504),h=t(71577),u=t(26713),x=t(86548),j=t(94149),m=t(38545),_=t(87547),p=t(39398),b=t(4480),f=t(67294),Z=t(49218),g=t(5152),C=t.n(g),w=t(77466),v=t(79252),k=t.n(v);let N=C()(()=>t.e(4761).then(t.bind(t,14761)).then(e=>e.Modal),{loadableGenerated:{webpack:()=>[14761]}}),y=C()(()=>Promise.all([t.e(8909),t.e(8119),t.e(9096)]).then(t.bind(t,59096)).then(e=>e.NameChangeModal),{loadableGenerated:{webpack:()=>[59096]}}),A=C()(()=>Promise.all([t.e(575),t.e(5535)]).then(t.bind(t,65535)).then(e=>e.AuthModal),{loadableGenerated:{webpack:()=>[65535]}}),E=e=>{let{username:n}=e,[t,r]=(0,f.useState)(!1),[s,l]=(0,f.useState)(!1),[i,c]=(0,b.FV)(w.ZA),g=(0,b.sJ)(w.Q),C=()=>{c(!i)},v=()=>{r(!0)};(0,Z.y1)("c",C,{enableOnContentEditable:!1},[i]);let E=(0,b.sJ)(w.db);if(!E)return null;let{displayName:H}=E,I=(0,a.jsxs)(o.Z,{children:[(0,a.jsx)(o.Z.Item,{icon:(0,a.jsx)(x.Z,{}),onClick:()=>v(),children:"Change name"},"0"),(0,a.jsx)(o.Z.Item,{icon:(0,a.jsx)(j.Z,{}),onClick:()=>l(!0),children:"Authenticate"},"1"),g.chatAvailable&&(0,a.jsx)(o.Z.Item,{icon:(0,a.jsx)(m.Z,{}),onClick:()=>C(),children:"Toggle chat"},"3")]});return(0,a.jsxs)("div",{id:"user-menu",className:"".concat(k().root),children:[(0,a.jsx)(d.Z,{overlay:I,trigger:["click"],children:(0,a.jsx)(h.Z,{type:"primary",icon:(0,a.jsx)(_.Z,{style:{marginRight:".5rem"}}),children:(0,a.jsxs)(u.Z,{children:[n||H,(0,a.jsx)(p.Z,{})]})})}),(0,a.jsx)(N,{title:"Change Chat Display Name",open:t,handleCancel:()=>r(!1),children:(0,a.jsx)(y,{})}),(0,a.jsx)(N,{title:"Authenticate",open:s,handleCancel:()=>l(!1),children:(0,a.jsx)(A,{})})]})};var H=t(50738),I=t(31764),J=t.n(I);let{Header:D}=r.Z,T=e=>{let{name:n="Your stream title",chatAvailable:t,chatDisabled:r}=e;return(0,a.jsxs)(D,{className:c()(["".concat(J().header)],"global-header"),children:[(0,a.jsxs)("div",{className:"".concat(J().logo),children:[(0,a.jsx)("div",{id:"header-logo",children:(0,a.jsx)(H.C,{variant:"contrast"})}),(0,a.jsx)("span",{className:"global-header-text",children:n})]}),t&&!r&&(0,a.jsx)(E,{}),!t&&!r&&(0,a.jsx)(s.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,a.jsx)(l.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})};var U=T},34986:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return c}});var a=t(85893),r=t(4480),s=t(94977),l=t(77466),i=t(37527);function c(){let e=(0,r.sJ)(l.db),n=(0,r.sJ)(l.pH),t=(0,r.sJ)(l.g1),{name:c,chatDisabled:o}=t;if(!e)return null;let{id:d,displayName:h,isModerator:u}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)(l.me,{}),(0,a.jsx)(i.Z,{name:c,chatAvailable:!0,chatDisabled:o}),(0,a.jsx)(s.ChatContainer,{messages:n,usernameToHighlight:h,chatUserId:d,isModerator:u,showInput:!0,height:"80vh"})]})}},79252:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},31764:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}}},function(e){e.O(0,[1272,8700,3903,6395,3729,911,7466,4977,9774,2888,179],function(){return e(e.s=30672)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[955,1496],{30672:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readwrite",function(){return t(34986)}])},37527:function(e,n,t){"use strict";t.d(n,{h:function(){return T},Z:function(){return U}});var a=t(85893),r=t(97183),s=t(94199),l=t(20550),i=t(94184),c=t.n(i),o=t(66516),d=t(38504),h=t(71577),u=t(26713),x=t(86548),j=t(94149),_=t(38545),m=t(87547),p=t(39398),b=t(4480),f=t(67294),Z=t(49218),g=t(5152),C=t.n(g),w=t(77466),v=t(79252),k=t.n(v);let N=C()(()=>t.e(4761).then(t.bind(t,14761)).then(e=>e.Modal),{loadableGenerated:{webpack:()=>[14761]}}),y=C()(()=>Promise.all([t.e(8909),t.e(8119),t.e(9096)]).then(t.bind(t,59096)).then(e=>e.NameChangeModal),{loadableGenerated:{webpack:()=>[59096]}}),A=C()(()=>Promise.all([t.e(575),t.e(5535)]).then(t.bind(t,65535)).then(e=>e.AuthModal),{loadableGenerated:{webpack:()=>[65535]}}),E=e=>{let{username:n}=e,[t,r]=(0,f.useState)(!1),[s,l]=(0,f.useState)(!1),[i,c]=(0,b.FV)(w.ZA),g=(0,b.sJ)(w.Q),C=()=>{c(!i)},v=()=>{r(!0)};(0,Z.y1)("c",C,{enableOnContentEditable:!1},[i]);let E=(0,b.sJ)(w.db);if(!E)return null;let{displayName:H}=E,I=(0,a.jsxs)(o.Z,{children:[(0,a.jsx)(o.Z.Item,{icon:(0,a.jsx)(x.Z,{}),onClick:()=>v(),children:"Change name"},"0"),(0,a.jsx)(o.Z.Item,{icon:(0,a.jsx)(j.Z,{}),onClick:()=>l(!0),children:"Authenticate"},"1"),g.chatAvailable&&(0,a.jsx)(o.Z.Item,{icon:(0,a.jsx)(_.Z,{}),onClick:()=>C(),children:"Toggle chat"},"3")]});return(0,a.jsxs)("div",{id:"user-menu",className:"".concat(k().root),children:[(0,a.jsx)(d.Z,{overlay:I,trigger:["click"],children:(0,a.jsx)(h.Z,{type:"primary",icon:(0,a.jsx)(m.Z,{style:{marginRight:".5rem"}}),children:(0,a.jsxs)(u.Z,{children:[n||H,(0,a.jsx)(p.Z,{})]})})}),(0,a.jsx)(N,{title:"Change Chat Display Name",open:t,handleCancel:()=>r(!1),children:(0,a.jsx)(y,{})}),(0,a.jsx)(N,{title:"Authenticate",open:s,handleCancel:()=>l(!1),children:(0,a.jsx)(A,{})})]})};var H=t(50738),I=t(31764),J=t.n(I);let{Header:D}=r.Z,T=e=>{let{name:n="Your stream title",chatAvailable:t,chatDisabled:r}=e;return(0,a.jsxs)(D,{className:c()(["".concat(J().header)],"global-header"),children:[(0,a.jsxs)("div",{className:"".concat(J().logo),children:[(0,a.jsx)("div",{id:"header-logo",children:(0,a.jsx)(H.C,{variant:"contrast"})}),(0,a.jsx)("span",{id:"global-header-text",children:n})]}),t&&!r&&(0,a.jsx)(E,{}),!t&&!r&&(0,a.jsx)(s.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,a.jsx)(l.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})};var U=T},34986:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return c}});var a=t(85893),r=t(4480),s=t(94977),l=t(77466),i=t(37527);function c(){let e=(0,r.sJ)(l.db),n=(0,r.sJ)(l.pH),t=(0,r.sJ)(l.g1),{name:c,chatDisabled:o}=t;if(!e)return null;let{id:d,displayName:h,isModerator:u}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)(l.me,{}),(0,a.jsx)(i.Z,{name:c,chatAvailable:!0,chatDisabled:o}),(0,a.jsx)(s.ChatContainer,{messages:n,usernameToHighlight:h,chatUserId:d,isModerator:u,showInput:!0,height:"80vh"})]})}},79252:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},31764:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}}},function(e){e.O(0,[1272,8700,3903,6395,3729,911,7466,4977,9774,2888,179],function(){return e(e.s=30672)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/embed/video-04abad59027d2c31.js b/static/web/_next/static/chunks/pages/embed/video-04abad59027d2c31.js new file mode 100644 index 000000000..ce77dffab --- /dev/null +++ b/static/web/_next/static/chunks/pages/embed/video-04abad59027d2c31.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3126,5202],{61357:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/video",function(){return s(29942)}])},51513:function(e,n,s){"use strict";s.d(n,{R:function(){return l}});var t=s(85893),a=s(27049),i=s(24019),r=s(45938),o=s(88335),c=s.n(o);let l=e=>{let n,{streamName:s,customText:o,lastLive:l,notificationsEnabled:d,fediverseAccount:u,onNotifyClick:f,onFollowClick:_}=e;return n=o||(!o&&d&&u?(0,t.jsxs)("span",{children:["This stream is offline. You can"," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:f,children:"be notified"})," ","the next time ",s," goes live or"," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:_,children:"follow"})," ",u," on the Fediverse."]}):!o&&d?(0,t.jsxs)("span",{children:["This stream is offline."," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:f,children:"Be notified"})," ","the next time ",s," goes live."]}):!o&&u?(0,t.jsxs)("span",{children:["This stream is offline."," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:_,children:"Follow"})," ",u," on the Fediverse to see the next time ",s," goes live."]}):"This stream is offline. Check back soon!"),(0,t.jsx)("div",{id:"offline-banner",className:c().outerContainer,children:(0,t.jsxs)("div",{className:c().innerContainer,children:[(0,t.jsx)("div",{className:c().header,children:s}),(0,t.jsx)(a.Z,{className:c().separator}),(0,t.jsx)("div",{className:c().bodyText,children:n}),l&&(0,t.jsxs)("div",{className:c().lastLiveDate,children:[(0,t.jsx)(i.Z,{className:c().clockIcon}),"Last live ".concat((0,r.Z)(new Date(l))," ago.")]})]})})}},69357:function(e,n,s){"use strict";s.d(n,{X:function(){return d}});var t=s(85893),a=s(45938),i=s(68730),r=s(67294),o=s(31326),c=s(37970),l=s.n(c);let d=e=>{let n,{online:s,lastConnectTime:c,lastDisconnectTime:d,viewerCount:u}=e,[,f]=(0,r.useState)(new Date);(0,r.useEffect)(()=>{let e=setInterval(()=>f(new Date),1e3);return()=>{clearInterval(e)}},[]);let _="";if(s&&c){let x=function(e){let n=(0,i.Z)({start:e,end:new Date});return n.days>1?"".concat(n.days," days ").concat(n.hours," hours"):n.hours>=1?"".concat(n.hours," hours ").concat(n.minutes," minutes"):"".concat(n.minutes," minutes ").concat(n.seconds," seconds")}(new Date(c));_=s?"Live for ".concat(x):"Offline",n=u>0&&(0,t.jsxs)("div",{className:l().right,children:[(0,t.jsx)("span",{children:(0,t.jsx)(o.Z,{})}),(0,t.jsx)("span",{children:" ".concat(u)})]})}else!s&&(_="Offline",d&&(n="Last live ".concat((0,a.Z)(new Date(d))," ago.")));return(0,t.jsxs)("div",{className:l().statusbar,children:[(0,t.jsx)("div",{children:_}),(0,t.jsx)("div",{children:n})]})};d.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},29942:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return l}});var t=s(85893);s(67294);var a=s(4480),i=s(77466),r=s(51513),o=s(69357),c=s(8888);function l(){let e=(0,a.sJ)(i.RI),n=(0,a.sJ)(i.g1),{name:s}=n,{offlineMessage:l}=n,{viewerCount:d,lastConnectTime:u,lastDisconnectTime:f}=e,_=(0,a.sJ)(i.YW);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.me,{}),(0,t.jsxs)("div",{className:"video-embed",children:[_&&(0,t.jsx)(c.OwncastPlayer,{source:"/hls/stream.m3u8",online:_}),!_&&(0,t.jsx)(r.R,{streamName:s,customText:l,notificationsEnabled:!1}),_&&(0,t.jsx)(o.X,{online:_,lastConnectTime:u,lastDisconnectTime:f,viewerCount:d})]})]})}},88335:function(e){e.exports={outerContainer:"OfflineBanner_outerContainer__3AbsB",innerContainer:"OfflineBanner_innerContainer__zTm13",bodyText:"OfflineBanner_bodyText__nNNy0",separator:"OfflineBanner_separator___j_Ss",lastLiveDate:"OfflineBanner_lastLiveDate___UZdO",clockIcon:"OfflineBanner_clockIcon__s0DB_",header:"OfflineBanner_header__Vu20o",footer:"OfflineBanner_footer__o3Zl5",actionLink:"OfflineBanner_actionLink__b4Mwa"}},37970:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},10434:function(e){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var n=1;n{let n,{streamName:s,customText:o,lastLive:l,notificationsEnabled:d,fediverseAccount:u,onNotifyClick:f,onFollowClick:_}=e;return n=o||(!o&&d&&u?(0,t.jsxs)("span",{children:["This stream is offline. You can"," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:f,children:"be notified"})," ","the next time ",s," goes live or"," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:_,children:"follow"})," ",u," on the Fediverse."]}):!o&&d?(0,t.jsxs)("span",{children:["This stream is offline."," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:f,children:"Be notified"})," ","the next time ",s," goes live."]}):!o&&u?(0,t.jsxs)("span",{children:["This stream is offline."," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:_,children:"Follow"})," ",u," on the Fediverse to see the next time ",s," goes live."]}):"This stream is offline. Check back soon!"),(0,t.jsx)("div",{className:c().outerContainer,children:(0,t.jsxs)("div",{className:c().innerContainer,children:[(0,t.jsx)("div",{className:c().header,children:s}),(0,t.jsx)(a.Z,{className:c().separator}),(0,t.jsx)("div",{className:c().bodyText,children:n}),l&&(0,t.jsxs)("div",{className:c().lastLiveDate,children:[(0,t.jsx)(i.Z,{className:c().clockIcon}),"Last live ".concat((0,r.Z)(new Date(l))," ago.")]})]})})}},69357:function(e,n,s){"use strict";s.d(n,{X:function(){return d}});var t=s(85893),a=s(45938),i=s(68730),r=s(67294),o=s(31326),c=s(37970),l=s.n(c);let d=e=>{let n,{online:s,lastConnectTime:c,lastDisconnectTime:d,viewerCount:u}=e,[,f]=(0,r.useState)(new Date);(0,r.useEffect)(()=>{let e=setInterval(()=>f(new Date),1e3);return()=>{clearInterval(e)}},[]);let _="";if(s&&c){let x=function(e){let n=(0,i.Z)({start:e,end:new Date});return n.days>1?"".concat(n.days," days ").concat(n.hours," hours"):n.hours>=1?"".concat(n.hours," hours ").concat(n.minutes," minutes"):"".concat(n.minutes," minutes ").concat(n.seconds," seconds")}(new Date(c));_=s?"Live for ".concat(x):"Offline",n=u>0&&(0,t.jsxs)("div",{className:l().right,children:[(0,t.jsx)("span",{children:(0,t.jsx)(o.Z,{})}),(0,t.jsx)("span",{children:" ".concat(u)})]})}else!s&&(_="Offline",d&&(n="Last live ".concat((0,a.Z)(new Date(d))," ago.")));return(0,t.jsxs)("div",{className:l().statusbar,children:[(0,t.jsx)("div",{children:_}),(0,t.jsx)("div",{children:n})]})};d.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},29942:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return l}});var t=s(85893);s(67294);var a=s(4480),i=s(77466),r=s(51513),o=s(69357),c=s(8888);function l(){let e=(0,a.sJ)(i.RI),n=(0,a.sJ)(i.g1),{name:s}=n,{offlineMessage:l}=n,{viewerCount:d,lastConnectTime:u,lastDisconnectTime:f}=e,_=(0,a.sJ)(i.YW);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.me,{}),(0,t.jsxs)("div",{className:"video-embed",children:[_&&(0,t.jsx)(c.OwncastPlayer,{source:"/hls/stream.m3u8",online:_}),!_&&(0,t.jsx)(r.R,{streamName:s,customText:l,notificationsEnabled:!1}),_&&(0,t.jsx)(o.X,{online:_,lastConnectTime:u,lastDisconnectTime:f,viewerCount:d})]})]})}},88335:function(e){e.exports={outerContainer:"OfflineBanner_outerContainer__3AbsB",innerContainer:"OfflineBanner_innerContainer__zTm13",bodyText:"OfflineBanner_bodyText__nNNy0",separator:"OfflineBanner_separator___j_Ss",lastLiveDate:"OfflineBanner_lastLiveDate___UZdO",clockIcon:"OfflineBanner_clockIcon__s0DB_",header:"OfflineBanner_header__Vu20o",footer:"OfflineBanner_footer__o3Zl5",actionLink:"OfflineBanner_actionLink__b4Mwa"}},37970:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},10434:function(e){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var n=1;nn.e(4761).then(n.bind(n,14761)).then(e=>e.Modal),{loadableGenerated:{webpack:()=>[14761]}}),S=y()(()=>Promise.all([n.e(8909),n.e(8119),n.e(9096)]).then(n.bind(n,59096)).then(e=>e.NameChangeModal),{loadableGenerated:{webpack:()=>[59096]}}),Z=y()(()=>Promise.all([n.e(575),n.e(5535)]).then(n.bind(n,65535)).then(e=>e.AuthModal),{loadableGenerated:{webpack:()=>[65535]}}),L=e=>{let{username:t}=e,[n,s]=(0,g.useState)(!1),[i,l]=(0,g.useState)(!1),[a,r]=(0,_.FV)(b.ZA),v=(0,_.sJ)(b.Q),y=()=>{r(!a)},C=()=>{s(!0)};(0,w.y1)("c",y,{enableOnContentEditable:!1},[a]);let L=(0,_.sJ)(b.db);if(!L)return null;let{displayName:F}=L,T=(0,o.jsxs)(c.Z,{children:[(0,o.jsx)(c.Z.Item,{icon:(0,o.jsx)(m.Z,{}),onClick:()=>C(),children:"Change name"},"0"),(0,o.jsx)(c.Z.Item,{icon:(0,o.jsx)(x.Z,{}),onClick:()=>l(!0),children:"Authenticate"},"1"),v.chatAvailable&&(0,o.jsx)(c.Z.Item,{icon:(0,o.jsx)(p.Z,{}),onClick:()=>y(),children:"Toggle chat"},"3")]});return(0,o.jsxs)("div",{id:"user-menu",className:"".concat(k().root),children:[(0,o.jsx)(d.Z,{overlay:T,trigger:["click"],children:(0,o.jsx)(u.Z,{type:"primary",icon:(0,o.jsx)(f.Z,{style:{marginRight:".5rem"}}),children:(0,o.jsxs)(h.Z,{children:[t||F,(0,o.jsx)(j.Z,{})]})})}),(0,o.jsx)(N,{title:"Change Chat Display Name",open:n,handleCancel:()=>s(!1),children:(0,o.jsx)(S,{})}),(0,o.jsx)(N,{title:"Authenticate",open:i,handleCancel:()=>l(!1),children:(0,o.jsx)(Z,{})})]})};var F=n(50738),T=n(31764),A=n.n(T);let{Header:D}=s.Z,E=e=>{let{name:t="Your stream title",chatAvailable:n,chatDisabled:s}=e;return(0,o.jsxs)(D,{className:r()(["".concat(A().header)],"global-header"),children:[(0,o.jsxs)("div",{className:"".concat(A().logo),children:[(0,o.jsx)("div",{id:"header-logo",children:(0,o.jsx)(F.C,{variant:"contrast"})}),(0,o.jsx)("span",{id:"global-header-text",children:t})]}),n&&!s&&(0,o.jsx)(L,{}),!n&&!s&&(0,o.jsx)(i.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,o.jsx)(l.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})};var M=E},14761:function(e,t,n){"use strict";n.r(t),n.d(t,{Modal:function(){return d}});var o=n(85893),s=n(85402),i=n(26303),l=n(11382),a=n(67294),r=n(77011),c=n.n(r);let d=e=>{let{title:t,url:n,open:r,handleOk:d,handleCancel:u,afterClose:h,height:m,width:x,children:p}=e,[f,j]=(0,a.useState)(!!n),_="100%",g="520px";n&&(_="70vh",g="900px");let w={padding:"0px",minHeight:m,height:null!=m?m:_},v=n&&(0,o.jsx)("iframe",{title:t,src:n,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,style:{display:"block"},onLoad:()=>j(!1)});return(0,o.jsx)(s.Z,{title:t,open:r,onOk:d,onCancel:u,afterClose:h,bodyStyle:w,width:null!=x?x:g,zIndex:999,footer:null,centered:!0,destroyOnClose:!0,children:(0,o.jsxs)("div",{id:"modal-container",children:[f&&(0,o.jsx)(i.Z,{active:f,style:{padding:"10px"},paragraph:{rows:10}}),v&&(0,o.jsx)("div",{style:{display:f?"none":"inline"},children:v}),p&&(0,o.jsx)("div",{className:c().content,children:p}),f&&(0,o.jsx)(l.Z,{className:c().spinner,spinning:f,size:"large"})]})})};t.default=d,d.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0}},51513:function(e,t,n){"use strict";n.d(t,{R:function(){return c}});var o=n(85893),s=n(27049),i=n(24019),l=n(45938),a=n(88335),r=n.n(a);let c=e=>{let t,{streamName:n,customText:a,lastLive:c,notificationsEnabled:d,fediverseAccount:u,onNotifyClick:h,onFollowClick:m}=e;return t=a||(!a&&d&&u?(0,o.jsxs)("span",{children:["This stream is offline. You can"," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:h,children:"be notified"})," ","the next time ",n," goes live or"," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:m,children:"follow"})," ",u," on the Fediverse."]}):!a&&d?(0,o.jsxs)("span",{children:["This stream is offline."," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:h,children:"Be notified"})," ","the next time ",n," goes live."]}):!a&&u?(0,o.jsxs)("span",{children:["This stream is offline."," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:m,children:"Follow"})," ",u," on the Fediverse to see the next time ",n," goes live."]}):"This stream is offline. Check back soon!"),(0,o.jsx)("div",{id:"offline-banner",className:r().outerContainer,children:(0,o.jsxs)("div",{className:r().innerContainer,children:[(0,o.jsx)("div",{className:r().header,children:n}),(0,o.jsx)(s.Z,{className:r().separator}),(0,o.jsx)("div",{className:r().bodyText,children:t}),c&&(0,o.jsxs)("div",{className:r().lastLiveDate,children:[(0,o.jsx)(i.Z,{className:r().clockIcon}),"Last live ".concat((0,l.Z)(new Date(c))," ago.")]})]})})}},69357:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var o=n(85893),s=n(45938),i=n(68730),l=n(67294),a=n(31326),r=n(37970),c=n.n(r);let d=e=>{let t,{online:n,lastConnectTime:r,lastDisconnectTime:d,viewerCount:u}=e,[,h]=(0,l.useState)(new Date);(0,l.useEffect)(()=>{let e=setInterval(()=>h(new Date),1e3);return()=>{clearInterval(e)}},[]);let m="";if(n&&r){let x=function(e){let t=(0,i.Z)({start:e,end:new Date});return t.days>1?"".concat(t.days," days ").concat(t.hours," hours"):t.hours>=1?"".concat(t.hours," hours ").concat(t.minutes," minutes"):"".concat(t.minutes," minutes ").concat(t.seconds," seconds")}(new Date(r));m=n?"Live for ".concat(x):"Offline",t=u>0&&(0,o.jsxs)("div",{className:c().right,children:[(0,o.jsx)("span",{children:(0,o.jsx)(a.Z,{})}),(0,o.jsx)("span",{children:" ".concat(u)})]})}else!n&&(m="Offline",d&&(t="Last live ".concat((0,s.Z)(new Date(d))," ago.")));return(0,o.jsxs)("div",{className:c().statusbar,children:[(0,o.jsx)("div",{children:m}),(0,o.jsx)("div",{children:t})]})};d.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},6511:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eq}});var o=n(85893),s=n(97183),i=n(4480),l=n(9008),a=n.n(l),r=n(67294),c=n(77466),d=n(90575),u=n(11382),h=n(94184),m=n.n(h),x=n(5152),p=n.n(x),f=n(72581),j=n(10808),_=n.n(j);let g=e=>{let{content:t}=e;return(0,o.jsx)("div",{className:_().pageContentContainer,id:"custom-page-content",children:(0,o.jsx)("div",{className:_().customPageContent,dangerouslySetInnerHTML:{__html:t}})})};var w=n(17725),v=n.n(w),y=n(87412),b=n(12341),C=n.n(b);let k=p()(()=>Promise.all([n.e(1272),n.e(8700),n.e(3729),n.e(4977),n.e(1496)]).then(n.bind(n,94977)).then(e=>e.ChatContainer),{loadableGenerated:{webpack:()=>[94977]}}),N=()=>{let e=(0,i.sJ)(c.db),t=(0,i.sJ)(c.pH);if(!e)return null;let{id:n,isModerator:s,displayName:l}=e;return(0,o.jsx)(y.ZP,{className:C().root,collapsedWidth:0,width:320,children:(0,o.jsx)(k,{messages:t,usernameToHighlight:l,chatUserId:n,isModerator:s})})};var S=n(67917),Z=n.n(S);let L=e=>{let{version:t}=e;return(0,o.jsxs)("footer",{className:Z().footer,children:[(0,o.jsxs)("span",{children:["Powered by ",(0,o.jsx)("a",{href:"https://owncast.online",children:t})]}),(0,o.jsxs)("span",{className:Z().links,children:[(0,o.jsx)("a",{href:"https://owncast.online/docs",target:"_blank",rel:"noreferrer",children:"Documentation"}),(0,o.jsx)("a",{href:"https://owncast.online/help",target:"_blank",rel:"noreferrer",children:"Contribute"}),(0,o.jsx)("a",{href:"https://github.com/owncast/owncast",target:"_blank",rel:"noreferrer",children:"Source"})]})]})};var F=n(12270),T=n.n(F);let A=e=>{let{children:t}=e;return(0,o.jsx)("div",{className:"".concat(T().row),children:t})};var D=n(71577),E=n(13959),M=n.n(E);let I=e=>{let{action:t,primary:n=!0,externalActionSelected:s}=e,{title:i,description:l,icon:a,color:r}=t;return(0,o.jsxs)(D.Z,{type:n?"primary":"default",className:m()(["".concat(M().button),"action-button"]),onClick:()=>s(t),style:{backgroundColor:r},children:[a&&(0,o.jsx)("img",{src:a,className:"".concat(M().icon),alt:l}),i]})};var H=n(51513),B=n(34447);let z=e=>{let{onClick:t,props:n}=e;return(0,o.jsx)(D.Z,{...n,type:"primary",className:M().button,icon:(0,o.jsx)(B.Z,{}),onClick:t,id:"follow-button",children:"Follow"})};var O=n(71578);let R=e=>{let{onClick:t,text:n}=e;return(0,o.jsx)(D.Z,{type:"primary",className:"".concat(M().button),icon:(0,o.jsx)(O.Z,{}),onClick:t,id:"notify-button",children:n||"Notify"})};var J=n(53731),P=n(79216),U=n(74933),G=n.n(U);let q=e=>{let{src:t}=e;return(0,o.jsx)("div",{className:G().root,children:(0,o.jsx)("div",{className:G().container,children:(0,o.jsx)(P.Z,{src:t,alt:"Logo",className:G().image,rootClassName:G().image})})})};var Y=n(25675),V=n.n(Y),Q=n(573),W=n.n(Q);let K=e=>{let{links:t}=e;return(0,o.jsx)("div",{className:W().links,children:t.map(e=>(0,o.jsx)("a",{href:e.url,className:W().link,target:"_blank",rel:"noreferrer me",children:(0,o.jsx)(V(),{src:e.icon||"/img/platformlogos/default.svg",alt:e.platform,title:e.platform,className:W().link,width:"30",height:"30"})},e.platform))})};var X=n(47900),$=n.n(X);let ee=e=>{let{name:t,title:n,summary:s,logo:i,tags:l,links:a}=e;return(0,o.jsx)("div",{className:$().root,children:(0,o.jsxs)("div",{className:$().logoTitleSection,children:[(0,o.jsx)("div",{className:$().logo,children:(0,o.jsx)(q,{src:i})}),(0,o.jsxs)("div",{className:$().titleSection,children:[(0,o.jsx)("div",{className:m()($().title,$().row,"header-title"),children:t}),(0,o.jsx)("div",{className:m()($().subtitle,$().row,"header-subtitle"),children:(0,o.jsx)(J.Z,{children:n||s})}),(0,o.jsx)("div",{className:m()($().tagList,$().row),children:l.length>0&&l.map(e=>(0,o.jsxs)("span",{children:["#",e,"\xa0"]},e))}),(0,o.jsx)("div",{className:m()($().socialLinks,$().row),children:(0,o.jsx)(K,{links:a})})]})]})})};var et=n(69357),en=n(26303),eo=n(71230),es=n(15746),ei=n(3698),el=n(24093),ea=n(69833),er=n.n(ea);let ec=e=>{let{follower:t}=e;return(0,o.jsx)("div",{className:er().follower,children:(0,o.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,o.jsxs)(eo.Z,{wrap:!1,children:[(0,o.jsx)(es.Z,{span:6,children:(0,o.jsx)(el.C,{src:t.image,alt:"Avatar",className:er().avatar,children:(0,o.jsx)("img",{src:"/logo",alt:"Logo",className:er().placeholder})})}),(0,o.jsxs)(es.Z,{children:[(0,o.jsx)(eo.Z,{children:t.name}),(0,o.jsx)(eo.Z,{className:er().account,children:t.username})]})]})})})};var ed=n(21890),eu=n.n(ed);let eh=e=>{let{name:t,onFollowButtonClick:n}=e,[s,i]=(0,r.useState)([]),[l,a]=(0,r.useState)(0),[c,d]=(0,r.useState)(1),[u,h]=(0,r.useState)(!0),m=async()=>{try{let e=await fetch("".concat("/api/followers","?page=").concat(c)),t=await e.json(),{results:n,total:o}=t;i(n),a(o)}catch(s){console.error(s)}};(0,r.useEffect)(()=>{m()},[]),(0,r.useEffect)(()=>{m()},[c]),(0,r.useEffect)(()=>{h(!1)},[s]);let x=(0,o.jsxs)("div",{className:eu().noFollowers,id:"followers-collection",children:[(0,o.jsx)("h2",{children:"Be the first follower!"}),(0,o.jsxs)("p",{children:["Owncast"!==t?t:"This server"," is a part of the"," ",(0,o.jsx)("a",{href:"https://owncast.online/join-fediverse",children:"Fediverse"}),", an interconnected network of independent users and servers."]}),(0,o.jsxs)("p",{children:["By following ","Owncast"!==t?t:"this server"," you'll be able to get updates from the stream, share it with others, and and show your appreciation when it goes live, all from your own Fediverse account."]}),(0,o.jsx)(z,{onClick:n})]}),p=(0,o.jsx)(en.Z,{active:!0,paragraph:{rows:3}});return u?p:(null==s?void 0:s.length)?(0,o.jsxs)("div",{className:eu().followers,id:"followers-collection",children:[(0,o.jsx)(eo.Z,{wrap:!0,gutter:[10,10],children:s.map(e=>(0,o.jsx)(es.Z,{children:(0,o.jsx)(ec,{follower:e},e.link)},e.link))}),(0,o.jsx)(ei.Z,{current:c,pageSize:24,total:Math.ceil(l/24)||1,onChange(e){d(e)},hideOnSinglePage:!0})]}):x};var em=n(14761),ex=n(66516),ep=n(38504),ef=n(49647),ej=n(60198),e_=n(89705),eg=n(97038),ew=n.n(eg);let ev="notify",ey="follow",eb=e=>{let{actions:t,externalActionSelected:n,notifyItemSelected:s,followItemSelected:i,showFollowItem:l,showNotifyItem:a}=e,r=e=>{if(e.key===ev){s();return}if(e.key===ey){i();return}let o=t.find(t=>t.url===e.key);n(o)},c=t.map(e=>({key:e.url,label:(0,o.jsxs)("span",{className:ew().item,children:[e.icon&&(0,o.jsx)("img",{className:ew().icon,src:e.icon,alt:e.title})," ",e.title]})}));l&&c.unshift({key:ey,label:(0,o.jsxs)("span",{className:ew().item,children:[(0,o.jsx)(ef.Z,{className:ew().icon})," Follow this stream"]})}),a&&c.unshift({key:ev,label:(0,o.jsxs)("span",{className:ew().item,children:[(0,o.jsx)(ej.Z,{className:ew().icon}),"Notify when live"]})});let d=(0,o.jsx)(ex.Z,{items:c,onClick:r});return(0,o.jsx)(ep.Z,{overlay:d,placement:"bottomRight",trigger:["click"],className:ew().menu,children:(0,o.jsx)("div",{className:ew().buttonWrap,children:(0,o.jsx)(D.Z,{type:"default",onClick:e=>e.preventDefault(),size:"large",icon:(0,o.jsx)(e_.Z,{size:6,style:{rotate:"90deg"}})})})})};var eC=n(26713),ek=n(14670),eN=n(69677),eS=n(66009),eZ=n.n(eS);let eL=e=>{let{handleClose:t,account:n,name:s}=e,[i,l]=(0,r.useState)(null),[a,c]=(0,r.useState)(!1),[d,h]=(0,r.useState)(!1),[m,x]=(0,r.useState)(null),p=e=>{l(e),function(e){let t=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(t).toLowerCase())}(e)?c(!0):c(!1)},f=()=>{window.open("https://owncast.online/join-fediverse","_blank")},j=async()=>{if(a){h(!0);try{let e=i.replace(/^@+/,""),n=await fetch("/api/remotefollow",{method:"POST",body:JSON.stringify({account:e})}),o=await n.json();if(o.redirectUrl&&(window.open(o.redirectUrl,"_blank"),t()),!o.success){x(o.message),h(!1);return}if(!o.redirectUrl){x("Unable to follow."),h(!1);return}}catch(s){x(s.message)}h(!1)}};return(0,o.jsxs)(eC.Z,{direction:"vertical",id:"follow-modal",children:[(0,o.jsxs)("div",{className:eZ().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:"\xa0learn about the Fediverse\xa0"}),"if it's new to you."]}),(0,o.jsxs)(u.Z,{spinning:d,children:[m&&(0,o.jsx)(ek.Z,{message:"Follow Error",description:m,type:"error",showIcon:!0}),(0,o.jsxs)("div",{className:eZ().account,children:[(0,o.jsx)("img",{src:"/logo",alt:"logo",className:eZ().logo}),(0,o.jsxs)("div",{className:eZ().username,children:[(0,o.jsx)("div",{className:eZ().name,children:s}),(0,o.jsx)("div",{children:n})]})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:eZ().instructions,children:"Enter your username @server to follow"}),(0,o.jsx)(eN.Z,{value:i,size:"large",onChange:e=>p(e.target.value),placeholder:"Your fediverse account @account@server",defaultValue:i}),(0,o.jsx)("div",{className:eZ().footer,children:"You'll be redirected to your Fediverse server and asked to confirm the action."})]}),(0,o.jsxs)(eC.Z,{className:eZ().buttons,children:[(0,o.jsx)(D.Z,{disabled:!a,type:"primary",onClick:j,children:"Follow"}),(0,o.jsx)(D.Z,{onClick:f,type:"primary",children:"Join the Fediverse"})]})]})]})},{Content:eF}=s.Z,eT=p()(()=>n.e(6160).then(n.bind(n,66160)).then(e=>e.BrowserNotifyModal),{loadableGenerated:{webpack:()=>[66160]}}),eA=p()(()=>n.e(7815).then(n.bind(n,17815)).then(e=>e.NotifyReminderPopup),{loadableGenerated:{webpack:()=>[17815]}}),eD=p()(()=>Promise.all([n.e(2544),n.e(7902),n.e(2239),n.e(5202)]).then(n.bind(n,8888)).then(e=>e.OwncastPlayer),{loadableGenerated:{webpack:()=>[8888]}}),eE=p()(()=>Promise.all([n.e(1272),n.e(8700),n.e(3729),n.e(4977),n.e(1496)]).then(n.bind(n,94977)).then(e=>e.ChatContainer),{loadableGenerated:{webpack:()=>[94977]}}),eM=e=>{let{name:t,streamTitle:n,summary:s,tags:i,socialHandles:l,extraPageContent:a,setShowFollowModal:r}=e,c=(0,o.jsx)(g,{content:a}),u=(0,o.jsx)(eh,{name:t,onFollowButtonClick:()=>r(!0)});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:v().lowerHalf,children:(0,o.jsx)(ee,{name:t,title:n,summary:s,tags:i,links:l,logo:"/logo"})}),(0,o.jsx)("div",{className:v().lowerSection,children:(0,o.jsx)(d.Z,{defaultActiveKey:"0",items:[{label:"About",key:"2",children:c},{label:"Followers",key:"3",children:u}]})})]})},eI=e=>{let{name:t,streamTitle:n,summary:s,tags:i,socialHandles:l,extraPageContent:a,messages:c,currentUser:u,showChat:h,actions:x,setExternalActionToDisplay:p,setShowNotifyPopup:f,setShowFollowModal:j}=e;if(!u)return null;let _=(0,r.useRef)(),{id:w,displayName:y}=u,b=h&&(0,o.jsx)(eE,{messages:c,usernameToHighlight:y,chatUserId:w,isModerator:!1}),C=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ee,{name:t,title:n,summary:s,tags:i,links:l,logo:"/logo"}),(0,o.jsx)(g,{content:a})]}),k=(0,o.jsx)(eh,{name:t,onFollowButtonClick:()=>j(!0)}),N="".concat(function(e){let[t,n]=(0,r.useState)(0),o=()=>{if(!e.current)return;let t=e.current.getBoundingClientRect().top,{innerHeight:o}=window;n(o-t)};return(0,r.useEffect)(()=>(o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),t}(_),"px"),S=(e,t)=>(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"start"},children:[(0,o.jsx)(t,{...e,style:{width:"85%"}}),(0,o.jsx)(eb,{showFollowItem:!0,showNotifyItem:!0,actions:x,externalActionSelected:p,notifyItemSelected:()=>f(!0),followItemSelected:()=>j(!0)})]});return(0,o.jsx)("div",{className:m()(v().lowerSectionMobile),ref:_,style:{height:N},children:(0,o.jsx)(d.Z,{defaultActiveKey:"0",items:[h&&{label:"Chat",key:"0",children:b},{label:"About",key:"2",children:C},{label:"Followers",key:"3",children:k}],renderTabBar:S})})},eH=e=>{let{externalActionToDisplay:t,setExternalActionToDisplay:n}=e,{title:s,description:i,url:l}=t;return(0,o.jsx)(em.Modal,{title:i||s,url:l,open:!!t,height:"80vh",handleCancel:()=>n(null)})},eB=()=>{let e=(0,i.sJ)(c.Q),t=(0,i.sJ)(c.g1),n=(0,i.sJ)(c.pT),s=(0,i.sJ)(c.di),l=(0,i.sJ)(c.db),[a,d]=(0,i.FV)(c.hz),h=(0,i.sJ)(c.j$),m=(0,i.sJ)(c.YW),{viewerCount:x,lastConnectTime:p,lastDisconnectTime:j,streamTitle:_}=(0,i.sJ)(c.RI),{extraPageContent:g,version:w,name:y,summary:b,socialHandles:C,tags:k,externalActions:S,offlineMessage:Z,chatDisabled:F,federation:T,notifications:D}=t,[E,M]=(0,r.useState)(!1),[B,O]=(0,r.useState)(!1),[J,P]=(0,r.useState)(!1),{account:U}=T,{browser:G}=D,{enabled:q}=G,[Y,V]=(0,r.useState)(null),Q=e=>{let{openExternally:t,url:n}=e;t?window.open(n,"_blank"):V(e)},W=S.map(e=>(0,o.jsx)(I,{action:e,externalActionSelected:Q},e.url)),K=()=>{let 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)&&M(!0)},X=()=>{O(!1),M(!1),(0,f.qQ)(f.dA.hasDisplayedNotificationModal,!0)},$=()=>{let e=window.innerWidth;void 0===a&&(e<=768?d(!0):d(!1)),!a&&e<=768&&d(!0),a&&e>768&&d(!1)};(0,r.useEffect)(()=>(K(),$(),window.addEventListener("resize",$),()=>{window.removeEventListener("resize",$)}),[]);let ee=!F&&s&&n;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:v().main,children:[(0,o.jsx)(u.Z,{wrapperClassName:v().loadingSpinner,size:"large",spinning:e.appLoading,children:(0,o.jsxs)(eF,{className:v().root,children:[(0,o.jsxs)("div",{className:v().mainSection,children:[(0,o.jsxs)("div",{className:v().topSection,children:[m&&(0,o.jsx)(eD,{source:"/hls/stream.m3u8",online:m}),!m&&!e.appLoading&&(0,o.jsx)(H.R,{streamName:y,customText:Z,notificationsEnabled:q,fediverseAccount:U,lastLive:j,onNotifyClick:()=>O(!0),onFollowClick:()=>P(!0)}),m&&(0,o.jsx)(et.X,{online:m,lastConnectTime:p,lastDisconnectTime:j,viewerCount:x})]}),(0,o.jsx)("div",{className:v().midSection,children:(0,o.jsxs)("div",{className:v().buttonsLogoTitleSection,children:[!a&&(0,o.jsxs)(A,{children:[W,(0,o.jsx)(z,{size:"small",onClick:()=>P(!0)}),(0,o.jsx)(eA,{open:E,notificationClicked:()=>O(!0),notificationClosed:()=>X(),children:(0,o.jsx)(R,{onClick:()=>O(!0)})})]}),(0,o.jsx)(em.Modal,{title:"Browser Notifications",open:B,afterClose:()=>X(),handleCancel:()=>X(),children:(0,o.jsx)(eT,{})})]})}),a?(0,o.jsx)(eI,{name:y,streamTitle:_,summary:b,tags:k,socialHandles:C,extraPageContent:g,messages:h,currentUser:l,showChat:ee,actions:S,setExternalActionToDisplay:Q,setShowNotifyPopup:O,setShowFollowModal:P}):(0,o.jsx)(eM,{name:y,streamTitle:_,summary:b,tags:k,socialHandles:C,extraPageContent:g,setShowFollowModal:P}),(0,o.jsx)(L,{version:w})]}),ee&&!a&&(0,o.jsx)(N,{})]})}),!a&&!1]}),Y&&(0,o.jsx)(eH,{externalActionToDisplay:Y,setExternalActionToDisplay:V}),(0,o.jsx)(em.Modal,{title:"Follow ".concat(y),open:J,handleCancel:()=>P(!1),width:"550px",children:(0,o.jsx)(eL,{account:U,name:y,handleClose:()=>P(!1)})})]})};var ez=n(37527),eO=n(85402);let eR=e=>{let{title:t,message:n}=e;return(0,o.jsx)(eO.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})})},eJ=()=>{let e=(0,i.sJ)(c.j$),t=(0,i.sJ)(c.RI),n=!1,o="",s=()=>{n=!0,o=window.document.title},l=()=>{n=!1,window.document.title=o},a=()=>{window.addEventListener("blur",s),window.addEventListener("focus",l)};return(0,r.useEffect)(()=>(o=window.document.title,a(),()=>{window.removeEventListener("focus",l),window.removeEventListener("blur",s)}),[]),(0,r.useEffect)(()=>{let{online:e}=t;n&&e&&(window.document.title="\uD83D\uDCAC :: ".concat(o))},[e]),(0,r.useEffect)(()=>{if(!n)return;let{online:e}=t;e?window.document.title=" \uD83D\uDFE2 :: ".concat(o):e||(window.document.title=" \uD83D\uDD34 :: ".concat(o))},[c.RI]),null},eP=()=>(0,o.jsx)("script",{id:"server-side-hydration",dangerouslySetInnerHTML:{__html:"\n window.configHydration = {{.ServerConfigJSON}};\n window.statusHydration = {{.StatusJSON}};\n "}}),eU=()=>{let e=(0,i.sJ)(c.g1),{appearanceVariables:t,customStyles:n}=e,s=Object.keys(t).filter(e=>!!t[e]).map(e=>"--".concat(e,": ").concat(t[e]));return(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n :root {\n ".concat(s.join(";\n"),"\n }\n ").concat(n,"\n ")}})},eG=()=>{let e=(0,i.sJ)(c.g1),{name:t,title:n,customStyles:l}=e,d=(0,i.sJ)(c.di),u=(0,i.sJ)(c.ap),h=(0,r.useRef)(null),{chatDisabled:m}=e;return(0,r.useEffect)(()=>{!function(e){let t=e=>{let t=e.getAttribute("rel");e.setAttribute("rel","".concat(t," noopener noreferrer"))};e.querySelectorAll("a").forEach(e=>t(e));let n=new MutationObserver(function(e){for(let n of e)for(let o of n.addedNodes)o instanceof HTMLElement&&"a"===o.tagName.toLowerCase()&&t(o)});n.observe(e,{attributes:!1,childList:!0,subtree:!0})}(h.current)},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(a(),{children:[(0,o.jsx)(eP,{}),(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:l}),(0,o.jsx)("base",{target:"_blank"})]}),(0,o.jsxs)(a(),{children:[t?(0,o.jsx)("title",{children:t}):(0,o.jsx)("title",{children:"{{.Name}}"}),(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:"{{.RequestedURL}}{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:url",content:"{{.RequestedURL}}{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:alt",content:"{{.RequestedURL}}{{.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)(c.me,{}),(0,o.jsx)(eJ,{}),(0,o.jsx)(eU,{}),(0,o.jsxs)(s.Z,{ref:h,style:{minHeight:"100vh"},children:[(0,o.jsx)(ez.h,{name:n||t,chatAvailable:d,chatDisabled:m}),(0,o.jsx)(eB,{}),u&&(0,o.jsx)(eR,{title:u.title,message:u.message})]})]})};function eq(){return(0,o.jsx)(eG,{})}},13959:function(e){e.exports={button:"ActionButton_button__z5Z2c",icon:"ActionButton_icon__EPp7Q"}},97038:function(e){e.exports={item:"ActionButtonMenu_item__OJQdr",buttonWrap:"ActionButtonMenu_buttonWrap__WQ9kt",icon:"ActionButtonMenu_icon__edY1D",menu:"ActionButtonMenu_menu__GChDk"}},12270:function(e){e.exports={row:"ActionButtonRow_row__SiEGe"}},47900: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"}},79252:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},66009: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"}},17725:function(e){e.exports={root:"Content_root__h1mNK",mainSection:"Content_mainSection__Gk78Y",topSection:"Content_topSection__JIZi0",lowerSection:"Content_lowerSection__BZHYI",lowerSectionMobile:"Content_lowerSectionMobile__hRr0_",leftCol:"Content_leftCol__U2TDq",loadingSpinner:"Content_loadingSpinner__mDlYC",main:"Content_main__XVf63"}},10808:function(e){e.exports={pageContentContainer:"CustomPageContent_pageContentContainer__EG4tU",customPageContent:"CustomPageContent_customPageContent__Mr981",summary:"CustomPageContent_summary___Zgps"}},67917:function(e){e.exports={footer:"Footer_footer__mPuvf",links:"Footer_links__7bBxV"}},31764:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},74933:function(e){e.exports={root:"Logo_root__jKiJC",container:"Logo_container__A4UYT",image:"Logo_image__Ahkom"}},77011:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}},88335:function(e){e.exports={outerContainer:"OfflineBanner_outerContainer__3AbsB",innerContainer:"OfflineBanner_innerContainer__zTm13",bodyText:"OfflineBanner_bodyText__nNNy0",separator:"OfflineBanner_separator___j_Ss",lastLiveDate:"OfflineBanner_lastLiveDate___UZdO",clockIcon:"OfflineBanner_clockIcon__s0DB_",header:"OfflineBanner_header__Vu20o",footer:"OfflineBanner_footer__o3Zl5",actionLink:"OfflineBanner_actionLink__b4Mwa"}},12341:function(e){e.exports={root:"Sidebar_root__8HE0A"}},573:function(e){e.exports={link:"SocialLinks_link___CcSm",links:"SocialLinks_links__gOAb7"}},37970:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},21890:function(e){e.exports={followers:"FollowerCollection_followers__e_EUS",noFollowers:"FollowerCollection_noFollowers__UaCVW"}},69833: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,[8909,3903,4267,575,5938,6395,1082,5360,8245,4466,7466,9774,2888,179],function(){return e(e.s=48312)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/index-93a1aa2132f561f4.js b/static/web/_next/static/chunks/pages/index-93a1aa2132f561f4.js deleted file mode 100644 index 118486b20..000000000 --- a/static/web/_next/static/chunks/pages/index-93a1aa2132f561f4.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(6511)}])},37527:function(e,t,n){"use strict";n.d(t,{h:function(){return E},Z:function(){return M}});var o=n(85893),s=n(97183),i=n(94199),l=n(20550),a=n(94184),r=n.n(a),c=n(66516),d=n(38504),h=n(71577),u=n(26713),m=n(86548),x=n(94149),p=n(38545),f=n(87547),j=n(39398),_=n(4480),g=n(67294),w=n(49218),v=n(5152),y=n.n(v),b=n(77466),C=n(79252),k=n.n(C);let N=y()(()=>n.e(4761).then(n.bind(n,14761)).then(e=>e.Modal),{loadableGenerated:{webpack:()=>[14761]}}),S=y()(()=>Promise.all([n.e(8909),n.e(8119),n.e(9096)]).then(n.bind(n,59096)).then(e=>e.NameChangeModal),{loadableGenerated:{webpack:()=>[59096]}}),Z=y()(()=>Promise.all([n.e(575),n.e(5535)]).then(n.bind(n,65535)).then(e=>e.AuthModal),{loadableGenerated:{webpack:()=>[65535]}}),F=e=>{let{username:t}=e,[n,s]=(0,g.useState)(!1),[i,l]=(0,g.useState)(!1),[a,r]=(0,_.FV)(b.ZA),v=(0,_.sJ)(b.Q),y=()=>{r(!a)},C=()=>{s(!0)};(0,w.y1)("c",y,{enableOnContentEditable:!1},[a]);let F=(0,_.sJ)(b.db);if(!F)return null;let{displayName:L}=F,T=(0,o.jsxs)(c.Z,{children:[(0,o.jsx)(c.Z.Item,{icon:(0,o.jsx)(m.Z,{}),onClick:()=>C(),children:"Change name"},"0"),(0,o.jsx)(c.Z.Item,{icon:(0,o.jsx)(x.Z,{}),onClick:()=>l(!0),children:"Authenticate"},"1"),v.chatAvailable&&(0,o.jsx)(c.Z.Item,{icon:(0,o.jsx)(p.Z,{}),onClick:()=>y(),children:"Toggle chat"},"3")]});return(0,o.jsxs)("div",{id:"user-menu",className:"".concat(k().root),children:[(0,o.jsx)(d.Z,{overlay:T,trigger:["click"],children:(0,o.jsx)(h.Z,{type:"primary",icon:(0,o.jsx)(f.Z,{style:{marginRight:".5rem"}}),children:(0,o.jsxs)(u.Z,{children:[t||L,(0,o.jsx)(j.Z,{})]})})}),(0,o.jsx)(N,{title:"Change Chat Display Name",open:n,handleCancel:()=>s(!1),children:(0,o.jsx)(S,{})}),(0,o.jsx)(N,{title:"Authenticate",open:i,handleCancel:()=>l(!1),children:(0,o.jsx)(Z,{})})]})};var L=n(50738),T=n(31764),A=n.n(T);let{Header:D}=s.Z,E=e=>{let{name:t="Your stream title",chatAvailable:n,chatDisabled:s}=e;return(0,o.jsxs)(D,{className:r()(["".concat(A().header)],"global-header"),children:[(0,o.jsxs)("div",{className:"".concat(A().logo),children:[(0,o.jsx)("div",{id:"header-logo",children:(0,o.jsx)(L.C,{variant:"contrast"})}),(0,o.jsx)("span",{className:"global-header-text",children:t})]}),n&&!s&&(0,o.jsx)(F,{}),!n&&!s&&(0,o.jsx)(i.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,o.jsx)(l.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})};var M=E},14761:function(e,t,n){"use strict";n.r(t),n.d(t,{Modal:function(){return d}});var o=n(85893),s=n(85402),i=n(26303),l=n(11382),a=n(67294),r=n(77011),c=n.n(r);let d=e=>{let{title:t,url:n,open:r,handleOk:d,handleCancel:h,afterClose:u,height:m,width:x,children:p}=e,[f,j]=(0,a.useState)(!!n),_="100%",g="520px";n&&(_="70vh",g="900px");let w={padding:"0px",minHeight:m,height:null!=m?m:_},v=n&&(0,o.jsx)("iframe",{title:t,src:n,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,style:{display:"block"},onLoad:()=>j(!1)});return(0,o.jsx)(s.Z,{title:t,open:r,onOk:d,onCancel:h,afterClose:u,bodyStyle:w,width:null!=x?x:g,zIndex:999,footer:null,centered:!0,destroyOnClose:!0,children:(0,o.jsxs)(o.Fragment,{children:[f&&(0,o.jsx)(i.Z,{active:f,style:{padding:"10px"},paragraph:{rows:10}}),v&&(0,o.jsx)("div",{style:{display:f?"none":"inline"},children:v}),p&&(0,o.jsx)("div",{className:c().content,children:p}),f&&(0,o.jsx)(l.Z,{className:c().spinner,spinning:f,size:"large"})]})})};t.default=d,d.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0}},51513:function(e,t,n){"use strict";n.d(t,{R:function(){return c}});var o=n(85893),s=n(27049),i=n(24019),l=n(45938),a=n(88335),r=n.n(a);let c=e=>{let t,{streamName:n,customText:a,lastLive:c,notificationsEnabled:d,fediverseAccount:h,onNotifyClick:u,onFollowClick:m}=e;return t=a||(!a&&d&&h?(0,o.jsxs)("span",{children:["This stream is offline. You can"," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:u,children:"be notified"})," ","the next time ",n," goes live or"," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:m,children:"follow"})," ",h," on the Fediverse."]}):!a&&d?(0,o.jsxs)("span",{children:["This stream is offline."," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:u,children:"Be notified"})," ","the next time ",n," goes live."]}):!a&&h?(0,o.jsxs)("span",{children:["This stream is offline."," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:m,children:"Follow"})," ",h," on the Fediverse to see the next time ",n," goes live."]}):"This stream is offline. Check back soon!"),(0,o.jsx)("div",{className:r().outerContainer,children:(0,o.jsxs)("div",{className:r().innerContainer,children:[(0,o.jsx)("div",{className:r().header,children:n}),(0,o.jsx)(s.Z,{className:r().separator}),(0,o.jsx)("div",{className:r().bodyText,children:t}),c&&(0,o.jsxs)("div",{className:r().lastLiveDate,children:[(0,o.jsx)(i.Z,{className:r().clockIcon}),"Last live ".concat((0,l.Z)(new Date(c))," ago.")]})]})})}},69357:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var o=n(85893),s=n(45938),i=n(68730),l=n(67294),a=n(31326),r=n(37970),c=n.n(r);let d=e=>{let t,{online:n,lastConnectTime:r,lastDisconnectTime:d,viewerCount:h}=e,[,u]=(0,l.useState)(new Date);(0,l.useEffect)(()=>{let e=setInterval(()=>u(new Date),1e3);return()=>{clearInterval(e)}},[]);let m="";if(n&&r){let x=function(e){let t=(0,i.Z)({start:e,end:new Date});return t.days>1?"".concat(t.days," days ").concat(t.hours," hours"):t.hours>=1?"".concat(t.hours," hours ").concat(t.minutes," minutes"):"".concat(t.minutes," minutes ").concat(t.seconds," seconds")}(new Date(r));m=n?"Live for ".concat(x):"Offline",t=h>0&&(0,o.jsxs)("div",{className:c().right,children:[(0,o.jsx)("span",{children:(0,o.jsx)(a.Z,{})}),(0,o.jsx)("span",{children:" ".concat(h)})]})}else!n&&(m="Offline",d&&(t="Last live ".concat((0,s.Z)(new Date(d))," ago.")));return(0,o.jsxs)("div",{className:c().statusbar,children:[(0,o.jsx)("div",{children:m}),(0,o.jsx)("div",{children:t})]})};d.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},6511:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eq}});var o=n(85893),s=n(97183),i=n(4480),l=n(9008),a=n.n(l),r=n(67294),c=n(77466),d=n(90575),h=n(11382),u=n(94184),m=n.n(u),x=n(5152),p=n.n(x),f=n(72581),j=n(10808),_=n.n(j);let g=e=>{let{content:t}=e;return(0,o.jsx)("div",{className:_().pageContentContainer,children:(0,o.jsx)("div",{className:_().customPageContent,dangerouslySetInnerHTML:{__html:t}})})};var w=n(17725),v=n.n(w),y=n(87412),b=n(12341),C=n.n(b);let k=p()(()=>Promise.all([n.e(1272),n.e(8700),n.e(3729),n.e(4977),n.e(1496)]).then(n.bind(n,94977)).then(e=>e.ChatContainer),{loadableGenerated:{webpack:()=>[94977]}}),N=()=>{let e=(0,i.sJ)(c.db),t=(0,i.sJ)(c.pH);if(!e)return null;let{id:n,isModerator:s,displayName:l}=e;return(0,o.jsx)(y.ZP,{className:C().root,collapsedWidth:0,width:320,children:(0,o.jsx)(k,{messages:t,usernameToHighlight:l,chatUserId:n,isModerator:s})})};var S=n(67917),Z=n.n(S);let F=e=>{let{version:t}=e;return(0,o.jsxs)("div",{className:Z().footer,children:[(0,o.jsxs)("span",{children:["Powered by ",(0,o.jsx)("a",{href:"https://owncast.online",children:t})]}),(0,o.jsxs)("span",{className:Z().links,children:[(0,o.jsx)("a",{href:"https://owncast.online/docs",target:"_blank",rel:"noreferrer",children:"Documentation"}),(0,o.jsx)("a",{href:"https://owncast.online/help",target:"_blank",rel:"noreferrer",children:"Contribute"}),(0,o.jsx)("a",{href:"https://github.com/owncast/owncast",target:"_blank",rel:"noreferrer",children:"Source"})]})]})};var L=n(12270),T=n.n(L);let A=e=>{let{children:t}=e;return(0,o.jsx)("div",{className:"".concat(T().row),children:t})};var D=n(71577),E=n(13959),M=n.n(E);let I=e=>{let{action:t,primary:n=!0,externalActionSelected:s}=e,{title:i,description:l,icon:a,color:r}=t;return(0,o.jsxs)(D.Z,{type:n?"primary":"default",className:"".concat(M().button),onClick:()=>s(t),style:{backgroundColor:r},children:[a&&(0,o.jsx)("img",{src:a,className:"".concat(M().icon),alt:l}),i]})};var H=n(51513),B=n(34447);let z=e=>{let{onClick:t,props:n}=e;return(0,o.jsx)(D.Z,{...n,type:"primary",className:M().button,icon:(0,o.jsx)(B.Z,{}),onClick:t,children:"Follow"})};var O=n(71578);let R=e=>{let{onClick:t,text:n}=e;return(0,o.jsx)(D.Z,{type:"primary",className:"".concat(M().button),icon:(0,o.jsx)(O.Z,{}),onClick:t,children:n||"Notify"})};var J=n(53731),P=n(79216),U=n(74933),G=n.n(U);let q=e=>{let{src:t}=e;return(0,o.jsx)("div",{className:G().root,children:(0,o.jsx)("div",{className:G().container,children:(0,o.jsx)(P.Z,{src:t,alt:"Logo",className:G().image,rootClassName:G().image})})})};var Y=n(25675),V=n.n(Y),Q=n(573),W=n.n(Q);let K=e=>{let{links:t}=e;return(0,o.jsx)("div",{className:W().links,children:t.map(e=>(0,o.jsx)("a",{href:e.url,className:W().link,target:"_blank",rel:"noreferrer me",children:(0,o.jsx)(V(),{src:e.icon||"/img/platformlogos/default.svg",alt:e.platform,title:e.platform,className:W().link,width:"30",height:"30"})},e.platform))})};var X=n(47900),$=n.n(X);let ee=e=>{let{name:t,title:n,summary:s,logo:i,tags:l,links:a}=e;return(0,o.jsx)("div",{className:$().root,children:(0,o.jsxs)("div",{className:$().logoTitleSection,children:[(0,o.jsx)("div",{className:$().logo,children:(0,o.jsx)(q,{src:i})}),(0,o.jsxs)("div",{className:$().titleSection,children:[(0,o.jsx)("div",{className:m()($().title,$().row,"header-title"),children:t}),(0,o.jsx)("div",{className:m()($().subtitle,$().row,"header-subtitle"),children:(0,o.jsx)(J.Z,{children:n||s})}),(0,o.jsx)("div",{className:m()($().tagList,$().row),children:l.length>0&&l.map(e=>(0,o.jsxs)("span",{children:["#",e,"\xa0"]},e))}),(0,o.jsx)("div",{className:m()($().socialLinks,$().row),children:(0,o.jsx)(K,{links:a})})]})]})})};var et=n(69357),en=n(26303),eo=n(71230),es=n(15746),ei=n(3698),el=n(24093),ea=n(69833),er=n.n(ea);let ec=e=>{let{follower:t}=e;return(0,o.jsx)("div",{className:er().follower,children:(0,o.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,o.jsxs)(eo.Z,{wrap:!1,children:[(0,o.jsx)(es.Z,{span:6,children:(0,o.jsx)(el.C,{src:t.image,alt:"Avatar",className:er().avatar,children:(0,o.jsx)("img",{src:"/logo",alt:"Logo",className:er().placeholder})})}),(0,o.jsxs)(es.Z,{children:[(0,o.jsx)(eo.Z,{children:t.name}),(0,o.jsx)(eo.Z,{className:er().account,children:t.username})]})]})})})};var ed=n(21890),eh=n.n(ed);let eu=e=>{let{name:t,onFollowButtonClick:n}=e,[s,i]=(0,r.useState)([]),[l,a]=(0,r.useState)(0),[c,d]=(0,r.useState)(1),[h,u]=(0,r.useState)(!0),m=async()=>{try{let e=await fetch("".concat("/api/followers","?page=").concat(c)),t=await e.json(),{results:n,total:o}=t;i(n),a(o)}catch(s){console.error(s)}};(0,r.useEffect)(()=>{m()},[]),(0,r.useEffect)(()=>{m()},[c]),(0,r.useEffect)(()=>{u(!1)},[s]);let x=(0,o.jsxs)("div",{className:eh().noFollowers,children:[(0,o.jsx)("h2",{children:"Be the first follower!"}),(0,o.jsxs)("p",{children:["Owncast"!==t?t:"This server"," is a part of the"," ",(0,o.jsx)("a",{href:"https://owncast.online/join-fediverse",children:"Fediverse"}),", an interconnected network of independent users and servers."]}),(0,o.jsxs)("p",{children:["By following ","Owncast"!==t?t:"this server"," you'll be able to get updates from the stream, share it with others, and and show your appreciation when it goes live, all from your own Fediverse account."]}),(0,o.jsx)(z,{onClick:n})]}),p=(0,o.jsx)(en.Z,{active:!0,paragraph:{rows:3}});return h?p:(null==s?void 0:s.length)?(0,o.jsxs)("div",{className:eh().followers,children:[(0,o.jsx)(eo.Z,{wrap:!0,gutter:[10,10],children:s.map(e=>(0,o.jsx)(es.Z,{children:(0,o.jsx)(ec,{follower:e},e.link)},e.link))}),(0,o.jsx)(ei.Z,{current:c,pageSize:24,total:Math.ceil(l/24)||1,onChange(e){d(e)},hideOnSinglePage:!0})]}):x};var em=n(14761),ex=n(66516),ep=n(38504),ef=n(49647),ej=n(60198),e_=n(89705),eg=n(97038),ew=n.n(eg);let ev="notify",ey="follow",eb=e=>{let{actions:t,externalActionSelected:n,notifyItemSelected:s,followItemSelected:i,showFollowItem:l,showNotifyItem:a}=e,r=e=>{if(e.key===ev){s();return}if(e.key===ey){i();return}let o=t.find(t=>t.url===e.key);n(o)},c=t.map(e=>({key:e.url,label:(0,o.jsxs)("span",{className:ew().item,children:[e.icon&&(0,o.jsx)("img",{className:ew().icon,src:e.icon,alt:e.title})," ",e.title]})}));l&&c.unshift({key:ey,label:(0,o.jsxs)("span",{className:ew().item,children:[(0,o.jsx)(ef.Z,{className:ew().icon})," Follow this stream"]})}),a&&c.unshift({key:ev,label:(0,o.jsxs)("span",{className:ew().item,children:[(0,o.jsx)(ej.Z,{className:ew().icon}),"Notify when live"]})});let d=(0,o.jsx)(ex.Z,{items:c,onClick:r});return(0,o.jsx)(ep.Z,{overlay:d,placement:"bottomRight",trigger:["click"],className:ew().menu,children:(0,o.jsx)("div",{className:ew().buttonWrap,children:(0,o.jsx)(D.Z,{type:"default",onClick:e=>e.preventDefault(),size:"large",icon:(0,o.jsx)(e_.Z,{size:6,style:{rotate:"90deg"}})})})})};var eC=n(26713),ek=n(14670),eN=n(69677),eS=n(66009),eZ=n.n(eS);let eF=e=>{let{handleClose:t,account:n,name:s}=e,[i,l]=(0,r.useState)(null),[a,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)(!1),[m,x]=(0,r.useState)(null),p=e=>{l(e),function(e){let t=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(t).toLowerCase())}(e)?c(!0):c(!1)},f=()=>{window.open("https://owncast.online/join-fediverse","_blank")},j=async()=>{if(a){u(!0);try{let e=i.replace(/^@+/,""),n=await fetch("/api/remotefollow",{method:"POST",body:JSON.stringify({account:e})}),o=await n.json();if(o.redirectUrl&&(window.open(o.redirectUrl,"_blank"),t()),!o.success){x(o.message),u(!1);return}if(!o.redirectUrl){x("Unable to follow."),u(!1);return}}catch(s){x(s.message)}u(!1)}};return(0,o.jsxs)(eC.Z,{direction:"vertical",children:[(0,o.jsxs)("div",{className:eZ().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:"\xa0learn about the Fediverse\xa0"}),"if it's new to you."]}),(0,o.jsxs)(h.Z,{spinning:d,children:[m&&(0,o.jsx)(ek.Z,{message:"Follow Error",description:m,type:"error",showIcon:!0}),(0,o.jsxs)("div",{className:eZ().account,children:[(0,o.jsx)("img",{src:"/logo",alt:"logo",className:eZ().logo}),(0,o.jsxs)("div",{className:eZ().username,children:[(0,o.jsx)("div",{className:eZ().name,children:s}),(0,o.jsx)("div",{children:n})]})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:eZ().instructions,children:"Enter your username @server to follow"}),(0,o.jsx)(eN.Z,{value:i,size:"large",onChange:e=>p(e.target.value),placeholder:"Your fediverse account @account@server",defaultValue:i}),(0,o.jsx)("div",{className:eZ().footer,children:"You'll be redirected to your Fediverse server and asked to confirm the action."})]}),(0,o.jsxs)(eC.Z,{className:eZ().buttons,children:[(0,o.jsx)(D.Z,{disabled:!a,type:"primary",onClick:j,children:"Follow"}),(0,o.jsx)(D.Z,{onClick:f,type:"primary",children:"Join the Fediverse"})]})]})]})},{Content:eL}=s.Z,eT=p()(()=>n.e(6160).then(n.bind(n,66160)).then(e=>e.BrowserNotifyModal),{loadableGenerated:{webpack:()=>[66160]}}),eA=p()(()=>n.e(7815).then(n.bind(n,17815)).then(e=>e.NotifyReminderPopup),{loadableGenerated:{webpack:()=>[17815]}}),eD=p()(()=>Promise.all([n.e(2544),n.e(7902),n.e(2239),n.e(5202)]).then(n.bind(n,8888)).then(e=>e.OwncastPlayer),{loadableGenerated:{webpack:()=>[8888]}}),eE=p()(()=>Promise.all([n.e(1272),n.e(8700),n.e(3729),n.e(4977),n.e(1496)]).then(n.bind(n,94977)).then(e=>e.ChatContainer),{loadableGenerated:{webpack:()=>[94977]}}),eM=e=>{let{name:t,streamTitle:n,summary:s,tags:i,socialHandles:l,extraPageContent:a,setShowFollowModal:r}=e,c=(0,o.jsx)(g,{content:a}),h=(0,o.jsx)(eu,{name:t,onFollowButtonClick:()=>r(!0)});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:v().lowerHalf,children:(0,o.jsx)(ee,{name:t,title:n,summary:s,tags:i,links:l,logo:"/logo"})}),(0,o.jsx)("div",{className:v().lowerSection,children:(0,o.jsx)(d.Z,{defaultActiveKey:"0",items:[{label:"About",key:"2",children:c},{label:"Followers",key:"3",children:h}]})})]})},eI=e=>{let{name:t,streamTitle:n,summary:s,tags:i,socialHandles:l,extraPageContent:a,messages:c,currentUser:h,showChat:u,actions:x,setExternalActionToDisplay:p,setShowNotifyPopup:f,setShowFollowModal:j}=e;if(!h)return null;let _=(0,r.useRef)(),{id:w,displayName:y}=h,b=u&&(0,o.jsx)(eE,{messages:c,usernameToHighlight:y,chatUserId:w,isModerator:!1}),C=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ee,{name:t,title:n,summary:s,tags:i,links:l,logo:"/logo"}),(0,o.jsx)(g,{content:a})]}),k=(0,o.jsx)(eu,{name:t,onFollowButtonClick:()=>j(!0)}),N="".concat(function(e){let[t,n]=(0,r.useState)(0),o=()=>{if(!e.current)return;let t=e.current.getBoundingClientRect().top,{innerHeight:o}=window;n(o-t)};return(0,r.useEffect)(()=>(o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),t}(_),"px"),S=(e,t)=>(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"start"},children:[(0,o.jsx)(t,{...e,style:{width:"85%"}}),(0,o.jsx)(eb,{showFollowItem:!0,showNotifyItem:!0,actions:x,externalActionSelected:p,notifyItemSelected:()=>f(!0),followItemSelected:()=>j(!0)})]});return(0,o.jsx)("div",{className:m()(v().lowerSectionMobile),ref:_,style:{height:N},children:(0,o.jsx)(d.Z,{defaultActiveKey:"0",items:[u&&{label:"Chat",key:"0",children:b},{label:"About",key:"2",children:C},{label:"Followers",key:"3",children:k}],renderTabBar:S})})},eH=e=>{let{externalActionToDisplay:t,setExternalActionToDisplay:n}=e,{title:s,description:i,url:l}=t;return(0,o.jsx)(em.Modal,{title:i||s,url:l,open:!!t,height:"80vh",handleCancel:()=>n(null)})},eB=()=>{let e=(0,i.sJ)(c.Q),t=(0,i.sJ)(c.g1),n=(0,i.sJ)(c.pT),s=(0,i.sJ)(c.di),l=(0,i.sJ)(c.db),[a,d]=(0,i.FV)(c.hz),u=(0,i.sJ)(c.j$),m=(0,i.sJ)(c.YW),{viewerCount:x,lastConnectTime:p,lastDisconnectTime:j,streamTitle:_}=(0,i.sJ)(c.RI),{extraPageContent:g,version:w,name:y,summary:b,socialHandles:C,tags:k,externalActions:S,offlineMessage:Z,chatDisabled:L,federation:T,notifications:D}=t,[E,M]=(0,r.useState)(!1),[B,O]=(0,r.useState)(!1),[J,P]=(0,r.useState)(!1),{account:U}=T,{browser:G}=D,{enabled:q}=G,[Y,V]=(0,r.useState)(null),Q=e=>{let{openExternally:t,url:n}=e;t?window.open(n,"_blank"):V(e)},W=S.map(e=>(0,o.jsx)(I,{action:e,externalActionSelected:Q},e.url)),K=()=>{let 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)&&M(!0)},X=()=>{O(!1),M(!1),(0,f.qQ)(f.dA.hasDisplayedNotificationModal,!0)},$=()=>{let e=window.innerWidth;void 0===a&&(e<=768?d(!0):d(!1)),!a&&e<=768&&d(!0),a&&e>768&&d(!1)};(0,r.useEffect)(()=>(K(),$(),window.addEventListener("resize",$),()=>{window.removeEventListener("resize",$)}),[]);let ee=!L&&s&&n;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:v().main,children:[(0,o.jsx)(h.Z,{wrapperClassName:v().loadingSpinner,size:"large",spinning:e.appLoading,children:(0,o.jsxs)(eL,{className:v().root,children:[(0,o.jsxs)("div",{className:v().mainSection,children:[(0,o.jsxs)("div",{className:v().topSection,children:[m&&(0,o.jsx)(eD,{source:"/hls/stream.m3u8",online:m}),!m&&!e.appLoading&&(0,o.jsx)(H.R,{streamName:y,customText:Z,notificationsEnabled:q,fediverseAccount:U,lastLive:j,onNotifyClick:()=>O(!0),onFollowClick:()=>P(!0)}),m&&(0,o.jsx)(et.X,{online:m,lastConnectTime:p,lastDisconnectTime:j,viewerCount:x})]}),(0,o.jsx)("div",{className:v().midSection,children:(0,o.jsxs)("div",{className:v().buttonsLogoTitleSection,children:[!a&&(0,o.jsxs)(A,{children:[W,(0,o.jsx)(z,{size:"small",onClick:()=>P(!0)}),(0,o.jsx)(eA,{open:E,notificationClicked:()=>O(!0),notificationClosed:()=>X(),children:(0,o.jsx)(R,{onClick:()=>O(!0)})})]}),(0,o.jsx)(em.Modal,{title:"Browser Notifications",open:B,afterClose:()=>X(),handleCancel:()=>X(),children:(0,o.jsx)(eT,{})})]})}),a?(0,o.jsx)(eI,{name:y,streamTitle:_,summary:b,tags:k,socialHandles:C,extraPageContent:g,messages:u,currentUser:l,showChat:ee,actions:S,setExternalActionToDisplay:Q,setShowNotifyPopup:O,setShowFollowModal:P}):(0,o.jsx)(eM,{name:y,streamTitle:_,summary:b,tags:k,socialHandles:C,extraPageContent:g,setShowFollowModal:P}),(0,o.jsx)(F,{version:w})]}),ee&&!a&&(0,o.jsx)(N,{})]})}),!a&&!1]}),Y&&(0,o.jsx)(eH,{externalActionToDisplay:Y,setExternalActionToDisplay:V}),(0,o.jsx)(em.Modal,{title:"Follow ".concat(y),open:J,handleCancel:()=>P(!1),width:"550px",children:(0,o.jsx)(eF,{account:U,name:y,handleClose:()=>P(!1)})})]})};var ez=n(37527),eO=n(85402);let eR=e=>{let{title:t,message:n}=e;return(0,o.jsx)(eO.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})})},eJ=()=>{let e=(0,i.sJ)(c.j$),t=(0,i.sJ)(c.RI),n=!1,o="",s=()=>{n=!0,o=window.document.title},l=()=>{n=!1,window.document.title=o},a=()=>{window.addEventListener("blur",s),window.addEventListener("focus",l)};return(0,r.useEffect)(()=>(o=window.document.title,a(),()=>{window.removeEventListener("focus",l),window.removeEventListener("blur",s)}),[]),(0,r.useEffect)(()=>{let{online:e}=t;n&&e&&(window.document.title="\uD83D\uDCAC :: ".concat(o))},[e]),(0,r.useEffect)(()=>{if(!n)return;let{online:e}=t;e?window.document.title=" \uD83D\uDFE2 :: ".concat(o):e||(window.document.title=" \uD83D\uDD34 :: ".concat(o))},[c.RI]),null},eP=()=>(0,o.jsx)("script",{id:"server-side-hydration",dangerouslySetInnerHTML:{__html:"\n window.configHydration = {{.ServerConfigJSON}};\n window.statusHydration = {{.StatusJSON}};\n "}}),eU=()=>{let e=(0,i.sJ)(c.g1),{appearanceVariables:t,customStyles:n}=e,s=Object.keys(t).filter(e=>!!t[e]).map(e=>"--".concat(e,": ").concat(t[e]));return(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n :root {\n ".concat(s.join(";\n"),"\n }\n ").concat(n,"\n ")}})},eG=()=>{let e=(0,i.sJ)(c.g1),{name:t,title:n,customStyles:l}=e,d=(0,i.sJ)(c.di),h=(0,i.sJ)(c.ap),u=(0,r.useRef)(null),{chatDisabled:m}=e;return(0,r.useEffect)(()=>{!function(e){let t=e=>{let t=e.getAttribute("rel");e.setAttribute("rel","".concat(t," noopener noreferrer"))};e.querySelectorAll("a").forEach(e=>t(e));let n=new MutationObserver(function(e){for(let n of e)for(let o of n.addedNodes)o instanceof HTMLElement&&"a"===o.tagName.toLowerCase()&&t(o)});n.observe(e,{attributes:!1,childList:!0,subtree:!0})}(u.current)},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(a(),{children:[(0,o.jsx)(eP,{}),(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:l}),(0,o.jsx)("base",{target:"_blank"})]}),(0,o.jsxs)(a(),{children:[t?(0,o.jsx)("title",{children:t}):(0,o.jsx)("title",{children:"{{.Name}}"}),(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:"{{.RequestedURL}}{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:url",content:"{{.RequestedURL}}{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:alt",content:"{{.RequestedURL}}{{.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)(c.me,{}),(0,o.jsx)(eJ,{}),(0,o.jsx)(eU,{}),(0,o.jsxs)(s.Z,{ref:u,style:{minHeight:"100vh"},children:[(0,o.jsx)(ez.h,{name:n||t,chatAvailable:d,chatDisabled:m}),(0,o.jsx)(eB,{}),h&&(0,o.jsx)(eR,{title:h.title,message:h.message})]})]})};function eq(){return(0,o.jsx)(eG,{})}},13959:function(e){e.exports={button:"ActionButton_button__z5Z2c",icon:"ActionButton_icon__EPp7Q"}},97038:function(e){e.exports={item:"ActionButtonMenu_item__OJQdr",buttonWrap:"ActionButtonMenu_buttonWrap__WQ9kt",icon:"ActionButtonMenu_icon__edY1D",menu:"ActionButtonMenu_menu__GChDk"}},12270:function(e){e.exports={row:"ActionButtonRow_row__SiEGe"}},47900: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"}},79252:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},66009: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"}},17725:function(e){e.exports={root:"Content_root__h1mNK",mainSection:"Content_mainSection__Gk78Y",topSection:"Content_topSection__JIZi0",lowerSection:"Content_lowerSection__BZHYI",lowerSectionMobile:"Content_lowerSectionMobile__hRr0_",leftCol:"Content_leftCol__U2TDq",loadingSpinner:"Content_loadingSpinner__mDlYC",main:"Content_main__XVf63"}},10808:function(e){e.exports={pageContentContainer:"CustomPageContent_pageContentContainer__EG4tU",customPageContent:"CustomPageContent_customPageContent__Mr981",summary:"CustomPageContent_summary___Zgps"}},67917:function(e){e.exports={footer:"Footer_footer__mPuvf",links:"Footer_links__7bBxV"}},31764:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},74933:function(e){e.exports={root:"Logo_root__jKiJC",container:"Logo_container__A4UYT",image:"Logo_image__Ahkom"}},77011:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}},88335:function(e){e.exports={outerContainer:"OfflineBanner_outerContainer__3AbsB",innerContainer:"OfflineBanner_innerContainer__zTm13",bodyText:"OfflineBanner_bodyText__nNNy0",separator:"OfflineBanner_separator___j_Ss",lastLiveDate:"OfflineBanner_lastLiveDate___UZdO",clockIcon:"OfflineBanner_clockIcon__s0DB_",header:"OfflineBanner_header__Vu20o",footer:"OfflineBanner_footer__o3Zl5",actionLink:"OfflineBanner_actionLink__b4Mwa"}},12341:function(e){e.exports={root:"Sidebar_root__8HE0A"}},573:function(e){e.exports={link:"SocialLinks_link___CcSm",links:"SocialLinks_links__gOAb7"}},37970:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},21890:function(e){e.exports={followers:"FollowerCollection_followers__e_EUS",noFollowers:"FollowerCollection_noFollowers__UaCVW"}},69833: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,[8909,3903,4267,575,5938,6395,1082,5360,8245,4466,7466,9774,2888,179],function(){return e(e.s=48312)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/webpack-76c6466541f6cdb3.js b/static/web/_next/static/chunks/webpack-618f6b9d27c411da.js similarity index 65% rename from static/web/_next/static/chunks/webpack-76c6466541f6cdb3.js rename to static/web/_next/static/chunks/webpack-618f6b9d27c411da.js index 82ac4df43..73879aab2 100644 --- a/static/web/_next/static/chunks/webpack-76c6466541f6cdb3.js +++ b/static/web/_next/static/chunks/webpack-618f6b9d27c411da.js @@ -1 +1 @@ -!function(){"use strict";var e,t,c,a,f,n,d,r,b,o,u,i,s={},l={};function h(e){var t=l[e];if(void 0!==t)return t.exports;var c=l[e]={id:e,loaded:!1,exports:{}},a=!0;try{s[e].call(c.exports,c,c.exports,h),a=!1}finally{a&&delete l[e]}return c.loaded=!0,c.exports}h.m=s,h.amdO={},e=[],h.O=function(t,c,a,f){if(c){f=f||0;for(var n=e.length;n>0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[c,a,f];return}for(var d=1/0,n=0;n=f&&Object.keys(h.O).every(function(e){return h.O[e](c[b])})?c.splice(b--,1):(r=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[a,c,f];return}for(var d=1/0,n=0;n=f&&Object.keys(h.O).every(function(e){return h.O[e](a[b])})?a.splice(b--,1):(r=!1,fOwncast 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 5813468c5..5dafafeb2 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 3f963ba80..839d9515c 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 d1b64f79d..4a85fa880 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 160978a9d..70ae411c6 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 0e5427699..e319f7cad 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 71604714c..1747a91cc 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

Custom

Build your own notifications by using custom webhooks.

\ 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

Custom

Build your own notifications by using custom webhooks.

\ 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 cc3c0d990..210252302 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.


\ 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.


\ 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 013b4f9b3..6b51c60fe 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 72babfc62..8df61e422 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 be15d5e7d..6b72408bc 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 23e27ac88..b0725beae 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/config/appearance/index.html b/static/web/admin/config/appearance/index.html index 9d575c599..64936840d 100644 --- a/static/web/admin/config/appearance/index.html +++ b/static/web/admin/config/appearance/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

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

What is your stream about today?

What is your stream about today?
Offline
Loading...
\ No newline at end of file diff --git a/static/web/admin/config/streamkeys/index.html b/static/web/admin/config/streamkeys/index.html index 9b5bbb6b6..f01d86b8e 100644 --- a/static/web/admin/config/streamkeys/index.html +++ b/static/web/admin/config/streamkeys/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Streaming Keys

A streaming key is used with your broadcasting software to authenticate itself to Owncast. Most people will only need one. However, if you share a server with others or you want different keys for different broadcasting sources you can add more here.
These keys are unrelated to the admin password and will not grant you access to make changes to Owncast's configuration.
Read more about broadcasting at the documentation.
KeyComment
No data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Streaming Keys

A streaming key is used with your broadcasting software to authenticate itself to Owncast. Most people will only need one. However, if you share a server with others or you want different keys for different broadcasting sources you can add more here.
These keys are unrelated to the admin password and will not grant you access to make changes to Owncast's configuration.
Read more about broadcasting at the documentation.
KeyComment
No data

\ 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 42e7fd1ae..0e759dd60 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 1a47a2982..2e5f17cfe 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 7d22baf3f..96c517846 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 332a80335..c6f4c2b8d 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 fced57a1a..854097bd6 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.

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.

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 5407a3606..1851a1bc5 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 770bb288e..4d60c625f 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 a1e7cb04c..19b9ea24c 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 6b735779e..358c7dd2c 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 cde398bbd..e71629666 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 378608a36..320d9bf20 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 5a8ed8df7..29a2917d1 100644 --- a/static/web/embed/chat/readwrite/index.html +++ b/static/web/embed/chat/readwrite/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/video/index.html b/static/web/embed/video/index.html index bb6d52254..f875981c5 100644 --- a/static/web/embed/video/index.html +++ b/static/web/embed/video/index.html @@ -1 +1 @@ -
This stream is offline. Check back soon!
\ No newline at end of file +
This stream is offline. Check back soon!
\ No newline at end of file diff --git a/static/web/index.html b/static/web/index.html index baccfc254..99e961a17 100644 --- a/static/web/index.html +++ b/static/web/index.html @@ -1,9 +1,9 @@ {{.Name}}
{{.Name}}
Logo
Preview
\ No newline at end of file +
Logo
Preview
\ No newline at end of file