From 2e81290adf2d70de4a1887a0c43ccb95fdaec02d Mon Sep 17 00:00:00 2001 From: gabek Date: Tue, 11 Oct 2022 00:14:01 +0000 Subject: [PATCH] Bundle embedded web app --- static/web/404.html | 4 ++-- static/web/404/index.html | 4 ++-- .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 .../{2365.1fdb4082fa6c06b8.js => 2365.e111da64ecd79b2c.js} | 2 +- static/web/_next/static/chunks/2854-7495dff68ef13adc.js | 1 - static/web/_next/static/chunks/2854-904b0905cf6698f3.js | 1 + static/web/_next/static/chunks/7735.d76060cd6e9f5115.js | 1 - static/web/_next/static/chunks/7735.df129ee8ae364d5e.js | 1 + static/web/_next/static/chunks/7781.c2410185d16b1336.js | 1 - static/web/_next/static/chunks/7781.f2e7d91aa07a4804.js | 1 + static/web/_next/static/chunks/8763-3aa1a6c3e214b143.js | 1 + static/web/_next/static/chunks/8763-9490625166d46d87.js | 1 - .../chunks/pages/embed/chat/readwrite-b54f76d80455488b.js | 1 + .../chunks/pages/embed/chat/readwrite-f0de020531480b8d.js | 1 - .../web/_next/static/chunks/pages/index-41d67f5a4a2ea046.js | 1 - .../web/_next/static/chunks/pages/index-8428aa8bd724af35.js | 1 + ...ebpack-98075c8d440b1b86.js => webpack-4f605c79a17f4038.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/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 | 2 +- 44 files changed, 39 insertions(+), 39 deletions(-) rename static/web/_next/static/{1S3Mixnt2QJFX6iJrblpx => Nl7T0zqViUFvpmDKR8dxt}/_buildManifest.js (81%) rename static/web/_next/static/{1S3Mixnt2QJFX6iJrblpx => Nl7T0zqViUFvpmDKR8dxt}/_ssgManifest.js (100%) rename static/web/_next/static/chunks/{2365.1fdb4082fa6c06b8.js => 2365.e111da64ecd79b2c.js} (90%) delete mode 100644 static/web/_next/static/chunks/2854-7495dff68ef13adc.js create mode 100644 static/web/_next/static/chunks/2854-904b0905cf6698f3.js delete mode 100644 static/web/_next/static/chunks/7735.d76060cd6e9f5115.js create mode 100644 static/web/_next/static/chunks/7735.df129ee8ae364d5e.js delete mode 100644 static/web/_next/static/chunks/7781.c2410185d16b1336.js create mode 100644 static/web/_next/static/chunks/7781.f2e7d91aa07a4804.js create mode 100644 static/web/_next/static/chunks/8763-3aa1a6c3e214b143.js delete mode 100644 static/web/_next/static/chunks/8763-9490625166d46d87.js create mode 100644 static/web/_next/static/chunks/pages/embed/chat/readwrite-b54f76d80455488b.js delete mode 100644 static/web/_next/static/chunks/pages/embed/chat/readwrite-f0de020531480b8d.js delete mode 100644 static/web/_next/static/chunks/pages/index-41d67f5a4a2ea046.js create mode 100644 static/web/_next/static/chunks/pages/index-8428aa8bd724af35.js rename static/web/_next/static/chunks/{webpack-98075c8d440b1b86.js => webpack-4f605c79a17f4038.js} (79%) diff --git a/static/web/404.html b/static/web/404.html index 08fae0df8..bd9613e9a 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 08fae0df8..bd9613e9a 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/1S3Mixnt2QJFX6iJrblpx/_buildManifest.js b/static/web/_next/static/Nl7T0zqViUFvpmDKR8dxt/_buildManifest.js similarity index 81% rename from static/web/_next/static/1S3Mixnt2QJFX6iJrblpx/_buildManifest.js rename to static/web/_next/static/Nl7T0zqViUFvpmDKR8dxt/_buildManifest.js index 845ef112d..ea3772174 100644 --- a/static/web/_next/static/1S3Mixnt2QJFX6iJrblpx/_buildManifest.js +++ b/static/web/_next/static/Nl7T0zqViUFvpmDKR8dxt/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,a,c,e,i,t,n,d,f,h,b,o,m,u,k,r,g,j,p,l,_,w,v,y,I,B,F,A,D){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[o,m,l,s,t,n,f,u,k,_,w,v,"static/chunks/9358-6c31827aa73f405a.js",h,r,y,"static/css/88e696b24c18d1ea.css","static/chunks/pages/index-41d67f5a4a2ea046.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[a,s,c,e,i,t,n,d,b,k,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-3176829e7059317f.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-ffe8732ccbc0256e.js"],"/admin/actions":[a,s,c,e,"static/chunks/pages/admin/actions-e6982b17ca2b6d30.js"],"/admin/chat/messages":[I,a,s,c,e,i,n,B,F,"static/chunks/pages/admin/chat/messages-574b118b6708bb45.js"],"/admin/chat/users":[I,a,s,c,e,i,t,n,B,F,"static/chunks/pages/admin/chat/users-33efa67745b85252.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-40e0e71cfeaff121.js"],"/admin/config-federation":["static/chunks/1829-271cba4b38fde9a4.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-58fa36815f7c88c5.js"],"/admin/config-public-details":[a,s,c,e,g,"static/css/1f5ee95fffd43a71.css","static/chunks/9181-df8b71d4f342f83d.js",A,"static/chunks/pages/admin/config-public-details-271e3473e762bcda.js"],"/admin/config-server-details":[D,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[a,s,c,e,A,"static/chunks/pages/admin/config-social-items-0c9506f9b2b2acaf.js"],"/admin/config-storage":["static/chunks/5473-185a5241676edf4a.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[a,s,c,e,D,"static/chunks/4812-106e72c5e21f1d74.js","static/chunks/pages/admin/config-video-67dd9ceeab2a8d04.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-e31f1858274d3033.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-e98bbd3f5a837580.js"],"/admin/hardware-info":[j,i,t,d,b,p,g,"static/chunks/pages/admin/hardware-info-cd84396bc39c49ed.js"],"/admin/help":[t,d,v,"static/chunks/5566-66931d6b98651304.js","static/chunks/pages/admin/help-635a866be914f510.js"],"/admin/logs":[a,s,c,e,i,k,"static/chunks/pages/admin/logs-2296627de57047d9.js"],"/admin/stream-health":[j,i,t,d,b,p,"static/chunks/6610-62b167129a72b8f1.js","static/chunks/pages/admin/stream-health-897a4c79610a240c.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/3812-73e73ff4fa8c15d9.js","static/chunks/pages/admin/upgrade-a2690af66d4d3214.js"],"/admin/viewer-info":[j,a,s,c,e,i,t,n,d,b,p,g,"static/chunks/pages/admin/viewer-info-fcaef066e0a36623.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-31e1e30a1af46238.js"],"/embed/chat/readonly":[o,m,f,u,h,r,"static/css/87104b15c089124a.css","static/chunks/pages/embed/chat/readonly-7d52555642af387d.js"],"/embed/chat/readwrite":[o,m,s,f,u,h,r,"static/css/38031c0e461b403f.css","static/chunks/pages/embed/chat/readwrite-f0de020531480b8d.js"],"/embed/video":[l,n,f,_,w,h,y,"static/css/50d4ea374f37f0f9.css","static/chunks/pages/embed/video-b921529d7c1b6a75.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-1e79dad4c0cd3b68.js","static/chunks/8939-b1631aef52fbaa8f.js","static/chunks/3698-68c12d00e813fbb1.js","static/chunks/3626-e1c13c951477db78.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/2944-6793cb651dad1c89.js","static/chunks/9764-3705d4c034a766fe.js","static/chunks/5315-0e7e74a6fb9533c3.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-18f6a7fa5034eeb3.js","static/chunks/4763-a050d4b408cb3260.js","static/chunks/d3048c20-0576676e1017fabd.js","static/chunks/d2094a0f-579ef58c933db91c.js","static/chunks/7364-b1e647c0e7c9ab4e.js","static/chunks/2429-6b998575dbc68f9a.js","static/chunks/8763-9490625166d46d87.js","static/chunks/7910-7248e2d1496cf795.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-1e3969b413cccadf.js","static/css/7c735c05af084bb2.css","static/chunks/2860-6233db10d7394b17.js","static/chunks/1082-03ae605a1f81cbce.js","static/chunks/2854-7495dff68ef13adc.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/9189-200a9342100c92dd.js","static/chunks/9640-e282810d6fb4f58d.js","static/chunks/2877-6ed259e27dba66ad.js","static/chunks/3286-a15aa91d3d2fc97f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(s,a,c,e,i,t,d,n,f,h,b,o,m,u,k,r,g,j,p,l,_,w,v,y,I,B,F,A,D){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[o,m,l,s,t,d,f,u,k,_,w,v,"static/chunks/9358-6c31827aa73f405a.js",h,r,y,"static/css/88e696b24c18d1ea.css","static/chunks/pages/index-8428aa8bd724af35.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[a,s,c,e,i,t,d,n,b,k,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-3176829e7059317f.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-ffe8732ccbc0256e.js"],"/admin/actions":[a,s,c,e,"static/chunks/pages/admin/actions-e6982b17ca2b6d30.js"],"/admin/chat/messages":[I,a,s,c,e,i,d,B,F,"static/chunks/pages/admin/chat/messages-574b118b6708bb45.js"],"/admin/chat/users":[I,a,s,c,e,i,t,d,B,F,"static/chunks/pages/admin/chat/users-33efa67745b85252.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-40e0e71cfeaff121.js"],"/admin/config-federation":["static/chunks/1829-271cba4b38fde9a4.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-58fa36815f7c88c5.js"],"/admin/config-public-details":[a,s,c,e,g,"static/css/1f5ee95fffd43a71.css","static/chunks/9181-df8b71d4f342f83d.js",A,"static/chunks/pages/admin/config-public-details-271e3473e762bcda.js"],"/admin/config-server-details":[D,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[a,s,c,e,A,"static/chunks/pages/admin/config-social-items-0c9506f9b2b2acaf.js"],"/admin/config-storage":["static/chunks/5473-185a5241676edf4a.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[a,s,c,e,D,"static/chunks/4812-106e72c5e21f1d74.js","static/chunks/pages/admin/config-video-67dd9ceeab2a8d04.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-e31f1858274d3033.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-e98bbd3f5a837580.js"],"/admin/hardware-info":[j,i,t,n,b,p,g,"static/chunks/pages/admin/hardware-info-cd84396bc39c49ed.js"],"/admin/help":[t,n,v,"static/chunks/5566-66931d6b98651304.js","static/chunks/pages/admin/help-635a866be914f510.js"],"/admin/logs":[a,s,c,e,i,k,"static/chunks/pages/admin/logs-2296627de57047d9.js"],"/admin/stream-health":[j,i,t,n,b,p,"static/chunks/6610-62b167129a72b8f1.js","static/chunks/pages/admin/stream-health-897a4c79610a240c.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/3812-73e73ff4fa8c15d9.js","static/chunks/pages/admin/upgrade-a2690af66d4d3214.js"],"/admin/viewer-info":[j,a,s,c,e,i,t,d,n,b,p,g,"static/chunks/pages/admin/viewer-info-fcaef066e0a36623.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-31e1e30a1af46238.js"],"/embed/chat/readonly":[o,m,f,u,h,r,"static/css/87104b15c089124a.css","static/chunks/pages/embed/chat/readonly-7d52555642af387d.js"],"/embed/chat/readwrite":[o,m,s,f,u,h,r,"static/css/38031c0e461b403f.css","static/chunks/pages/embed/chat/readwrite-b54f76d80455488b.js"],"/embed/video":[l,d,f,_,w,h,y,"static/css/50d4ea374f37f0f9.css","static/chunks/pages/embed/video-b921529d7c1b6a75.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-1e79dad4c0cd3b68.js","static/chunks/8939-b1631aef52fbaa8f.js","static/chunks/3698-68c12d00e813fbb1.js","static/chunks/3626-e1c13c951477db78.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/2944-6793cb651dad1c89.js","static/chunks/9764-3705d4c034a766fe.js","static/chunks/5315-0e7e74a6fb9533c3.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-18f6a7fa5034eeb3.js","static/chunks/4763-a050d4b408cb3260.js","static/chunks/d3048c20-0576676e1017fabd.js","static/chunks/d2094a0f-579ef58c933db91c.js","static/chunks/7364-b1e647c0e7c9ab4e.js","static/chunks/2429-6b998575dbc68f9a.js","static/chunks/8763-3aa1a6c3e214b143.js","static/chunks/7910-7248e2d1496cf795.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-1e3969b413cccadf.js","static/css/7c735c05af084bb2.css","static/chunks/2860-6233db10d7394b17.js","static/chunks/1082-03ae605a1f81cbce.js","static/chunks/2854-904b0905cf6698f3.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/9189-200a9342100c92dd.js","static/chunks/9640-e282810d6fb4f58d.js","static/chunks/2877-6ed259e27dba66ad.js","static/chunks/3286-a15aa91d3d2fc97f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/1S3Mixnt2QJFX6iJrblpx/_ssgManifest.js b/static/web/_next/static/Nl7T0zqViUFvpmDKR8dxt/_ssgManifest.js similarity index 100% rename from static/web/_next/static/1S3Mixnt2QJFX6iJrblpx/_ssgManifest.js rename to static/web/_next/static/Nl7T0zqViUFvpmDKR8dxt/_ssgManifest.js diff --git a/static/web/_next/static/chunks/2365.1fdb4082fa6c06b8.js b/static/web/_next/static/chunks/2365.e111da64ecd79b2c.js similarity index 90% rename from static/web/_next/static/chunks/2365.1fdb4082fa6c06b8.js rename to static/web/_next/static/chunks/2365.e111da64ecd79b2c.js index 2af57e66a..ef942be48 100644 --- a/static/web/_next/static/chunks/2365.1fdb4082fa6c06b8.js +++ b/static/web/_next/static/chunks/2365.e111da64ecd79b2c.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2365],{26303:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var a=n(4942),i=n(87462),c=n(71002),r=n(94184),l=n.n(r),s=n(67294),o=n(53124),u=n(98423),p=function(e){var t,n,c=e.prefixCls,r=e.className,o=e.style,u=e.size,p=e.shape,d=l()((t={},(0,a.Z)(t,"".concat(c,"-lg"),"large"===u),(0,a.Z)(t,"".concat(c,"-sm"),"small"===u),t)),m=l()((n={},(0,a.Z)(n,"".concat(c,"-circle"),"circle"===p),(0,a.Z)(n,"".concat(c,"-square"),"square"===p),(0,a.Z)(n,"".concat(c,"-round"),"round"===p),n)),f=s.useMemo((function(){return"number"===typeof u?{width:u,height:u,lineHeight:"".concat(u,"px")}:{}}),[u]);return s.createElement("span",{className:l()(c,d,m,r),style:(0,i.Z)((0,i.Z)({},f),o)})},d=function(e){var t=e.prefixCls,n=e.className,c=e.active,r=e.shape,d=void 0===r?"circle":r,m=e.size,f=void 0===m?"default":m,v=(0,s.useContext(o.E_).getPrefixCls)("skeleton",t),h=(0,u.Z)(e,["prefixCls","className"]),g=l()(v,"".concat(v,"-element"),(0,a.Z)({},"".concat(v,"-active"),c),n);return s.createElement("div",{className:g},s.createElement(p,(0,i.Z)({prefixCls:"".concat(v,"-avatar"),shape:d,size:f},h)))},m=function(e){var t,n=e.prefixCls,c=e.className,r=e.active,d=e.block,m=void 0!==d&&d,f=e.size,v=void 0===f?"default":f,h=(0,s.useContext(o.E_).getPrefixCls)("skeleton",n),g=(0,u.Z)(e,["prefixCls"]),x=l()(h,"".concat(h,"-element"),(t={},(0,a.Z)(t,"".concat(h,"-active"),r),(0,a.Z)(t,"".concat(h,"-block"),m),t),c);return s.createElement("div",{className:x},s.createElement(p,(0,i.Z)({prefixCls:"".concat(h,"-button"),size:v},g)))},f=n(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"},h=n(42135),g=function(e,t){return s.createElement(h.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:t,icon:v}))};g.displayName="DotChartOutlined";var x=s.forwardRef(g),Z=function(e){var t=e.prefixCls,n=e.className,i=e.style,c=e.active,r=e.children,u=(0,s.useContext(o.E_).getPrefixCls)("skeleton",t),p=l()(u,"".concat(u,"-element"),(0,a.Z)({},"".concat(u,"-active"),c),n),d=null!==r&&void 0!==r?r:s.createElement(x,null);return s.createElement("div",{className:p},s.createElement("div",{className:l()("".concat(u,"-image"),n),style:i},d))},y=function(e){var t=e.prefixCls,n=e.className,i=e.style,c=e.active,r=(0,s.useContext(o.E_).getPrefixCls)("skeleton",t),u=l()(r,"".concat(r,"-element"),(0,a.Z)({},"".concat(r,"-active"),c),n);return s.createElement("div",{className:u},s.createElement("div",{className:l()("".concat(r,"-image"),n),style:i},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(r,"-image-svg")},s.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")}))))},N=function(e){var t,n=e.prefixCls,c=e.className,r=e.active,d=e.block,m=e.size,f=void 0===m?"default":m,v=(0,s.useContext(o.E_).getPrefixCls)("skeleton",n),h=(0,u.Z)(e,["prefixCls"]),g=l()(v,"".concat(v,"-element"),(t={},(0,a.Z)(t,"".concat(v,"-active"),r),(0,a.Z)(t,"".concat(v,"-block"),d),t),c);return s.createElement("div",{className:g},s.createElement(p,(0,i.Z)({prefixCls:"".concat(v,"-input"),size:f},h)))},C=n(74902),E=function(e){var t=function(t){var n=e.width,a=e.rows,i=void 0===a?2:a;return Array.isArray(n)?n[t]:i-1===t?n:void 0},n=e.prefixCls,a=e.className,i=e.style,c=e.rows,r=(0,C.Z)(Array(c)).map((function(e,n){return s.createElement("li",{key:n,style:{width:t(n)}})}));return s.createElement("ul",{className:l()(n,a),style:i},r)},w=function(e){var t=e.prefixCls,n=e.className,a=e.width,c=e.style;return s.createElement("h3",{className:l()(t,n),style:(0,i.Z)({width:a},c)})};function b(e){return e&&"object"===(0,c.Z)(e)?e:{}}var k=function(e){var t=e.prefixCls,n=e.loading,c=e.className,r=e.style,u=e.children,d=e.avatar,m=void 0!==d&&d,f=e.title,v=void 0===f||f,h=e.paragraph,g=void 0===h||h,x=e.active,Z=e.round,y=s.useContext(o.E_),N=y.getPrefixCls,C=y.direction,k=N("skeleton",t);if(n||!("loading"in e)){var S,z,P,_=!!m,O=!!v,j=!!g;if(_){var q=(0,i.Z)((0,i.Z)({prefixCls:"".concat(k,"-avatar")},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(O,j)),b(m));z=s.createElement("div",{className:"".concat(k,"-header")},s.createElement(p,(0,i.Z)({},q)))}if(O||j){var M,U;if(O){var I=(0,i.Z)((0,i.Z)({prefixCls:"".concat(k,"-title")},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(_,j)),b(v));M=s.createElement(w,(0,i.Z)({},I))}if(j){var A=(0,i.Z)((0,i.Z)({prefixCls:"".concat(k,"-paragraph")},function(e,t){var n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(_,O)),b(g));U=s.createElement(E,(0,i.Z)({},A))}P=s.createElement("div",{className:"".concat(k,"-content")},M,U)}var B=l()(k,(S={},(0,a.Z)(S,"".concat(k,"-with-avatar"),_),(0,a.Z)(S,"".concat(k,"-active"),x),(0,a.Z)(S,"".concat(k,"-rtl"),"rtl"===C),(0,a.Z)(S,"".concat(k,"-round"),Z),S),c);return s.createElement("div",{className:B,style:r},z,P)}return"undefined"!==typeof u?u:null};k.Button=m,k.Avatar=d,k.Input=N,k.Image=y,k.Node=Z;var S=k},11382:function(e,t,n){"use strict";var a=n(87462),i=n(4942),c=n(15671),r=n(43144),l=n(60136),s=n(33643),o=n(94184),u=n.n(o),p=n(23279),d=n.n(p),m=n(98423),f=n(67294),v=n(53124),h=n(96159),g=n(93355),x=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i()[\]\\.,;:\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)?b(!1):b(!0)},B=function(){var e=(0,h.Z)((function(){var e,n,i,r;return(0,d.__generator)(this,(function(a){switch(a.label){case 0:if(!g)return[2];T(!0),a.label=1;case 1:return a.trys.push([1,4,,5]),e=o.replace(/^@+/,""),n={account:e},[4,fetch("/api/remotefollow",{method:"POST",body:JSON.stringify(n)})];case 2:return[4,a.sent().json()];case 3:return(i=a.sent()).redirectUrl&&(window.open(i.redirectUrl,"_blank"),t()),i.success?i.redirectUrl?[3,5]:(j("Unable to follow."),T(!1),[2]):(j(i.message),T(!1),[2]);case 4:return r=a.sent(),j(r.message),[3,5];case 5:return T(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,a.jsxs)(f.Z,{direction:"vertical",children:[(0,a.jsxs)("div",{className:y().header,children:["By following this stream you'll get notified on the Fediverse when it goes live. Now is a great time to",(0,a.jsx)("a",{href:"https://owncast.online/join-fediverse",target:"_blank",rel:"noreferrer",children:"learn about the Fediverse"}),"if it's new to you."]}),(0,a.jsxs)(v.Z,{spinning:w,children:[_&&(0,a.jsx)(m.Z,{message:"Follow Error",description:_,type:"error",showIcon:!0}),(0,a.jsxs)("div",{className:y().account,children:[(0,a.jsx)("img",{src:"/logo",alt:"logo",className:y().logo}),(0,a.jsxs)("div",{className:y().username,children:[(0,a.jsx)("div",{className:y().name,children:i}),(0,a.jsx)("div",{children:n})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:y().instructions,children:"Enter your username @server to follow"}),(0,a.jsx)(p.Z,{value:o,size:"large",onChange:function(e){return C(e.target.value)},placeholder:"Your fediverse account @account@server",defaultValue:o}),(0,a.jsx)("div",{className:y().footer,children:"You'll be redirected to your Fediverse server and asked to confirm the action."})]}),(0,a.jsxs)(f.Z,{className:y().buttons,children:[(0,a.jsx)(s.Z,{disabled:!g,type:"primary",onClick:B,children:"Follow"}),(0,a.jsx)(s.Z,{onClick:function(){window.open("https://owncast.online/join-fediverse","_blank")},type:"primary",children:"Join the Fediverse"})]})]})]})},k=n(36879),w=n.n(k),T=n(1899),x=function(e){var t=(0,l.useState)(!1),n=t[0],h=t[1],d=(0,c.sJ)(T.g1),f=d.name,v=d.federation.account;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,(0,r.Z)((0,i.Z)({},e),{type:"primary",className:w().button,icon:(0,a.jsx)(o.Z,{}),onClick:function(){return h(!0)},children:"Follow"})),(0,a.jsx)(u.Modal,{title:"Follow ".concat(f),visible:n,handleCancel:function(){return h(!1)},width:"550px",height:"200px",children:(0,a.jsx)(b,{account:v,name:f,handleClose:function(){return h(!1)}})})]})}},52437:function(e,t,n){"use strict";n.d(t,{E:function(){return l}});var i=n(85893),r=n(71577),a=n(71578),s=n(36879),o=n.n(s),l=function(e){var t=e.onClick,n=e.text;return(0,i.jsx)(r.Z,{type:"primary",className:"".concat(o().button),icon:(0,i.jsx)(a.Z,{}),onClick:t,children:n||"Notify"})}},32365:function(e,t,n){"use strict";n.r(t),n.d(t,{Modal:function(){return u}});var i=n(85893),r=n(85402),a=n(26303),s=n(11382),o=n(67294),l=n(78890),c=n.n(l),u=function(e){var t=e.title,n=e.url,l=e.visible,u=e.handleOk,h=e.handleCancel,d=e.afterClose,f=e.height,v=e.width,m=e.children,p=(0,o.useState)(!!n),g=p[0],y=p[1],b={padding:"0px",minHeight:f},k=n&&(0,i.jsx)("iframe",{title:t,src:n,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,onLoad:function(){return y(!1)}}),w=g?"none":"inline";return(0,i.jsx)(r.Z,{title:t,visible:l,onOk:u,onCancel:h,afterClose:d,bodyStyle:b,width:v,zIndex:9999,footer:null,centered:!0,destroyOnClose:!0,children:(0,i.jsxs)(i.Fragment,{children:[g&&(0,i.jsx)(a.Z,{active:g,style:{padding:"10px"},paragraph:{rows:10}}),k&&(0,i.jsx)("div",{style:{display:w},children:k}),m&&(0,i.jsx)("div",{className:c().content,children:m}),g&&(0,i.jsx)(s.Z,{className:c().spinner,spinning:g,size:"large"})]})})};t.default=u,u.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0,height:"40vh",width:"70%"}},1698:function(e,t,n){"use strict";n.d(t,{R:function(){return h}});var i=n(85893),r=n(27049),a=n(24019),s=n(45938),o=n(29316),l=n.n(o),c=n(30896),u=n(52437),h=function(e){var t,n=e.streamName,o=e.customText,h=e.lastLive,d=e.notificationsEnabled,f=e.fediverseAccount,v=e.onNotifyClick;return t=o||(!o&&d&&f?"This stream is offline. You can be notified the next time ".concat(n," goes live or follow ").concat(f," on the Fediverse."):!o&&d?"This stream is offline. Be notified the next time ".concat(n," goes live."):"This stream is offline. Check back soon!"),(0,i.jsx)("div",{className:l().outerContainer,children:(0,i.jsxs)("div",{className:l().innerContainer,children:[(0,i.jsx)("div",{className:l().header,children:n}),(0,i.jsx)(r.Z,{className:l().separator}),(0,i.jsx)("div",{className:l().bodyText,children:t}),h&&(0,i.jsxs)("div",{className:l().lastLiveDate,children:[(0,i.jsx)(a.Z,{className:l().clockIcon}),"Last live ".concat((0,s.Z)(new Date(h))," ago.")]}),(0,i.jsxs)("div",{className:l().footer,children:[f&&(0,i.jsx)(c.e,{}),d&&(0,i.jsx)(u.E,{text:"Notify when live",onClick:v})]})]})})}},43125:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var i=n(85893),r=n(45938),a=n(68730),s=n(67294),o=n(99611),l=n(93132),c=n.n(l);var u=function(e){var t=e.online,n=e.lastConnectTime,l=e.lastDisconnectTime,u=e.viewerCount,h=(0,s.useState)(new Date)[1];(0,s.useEffect)((function(){var e=setInterval((function(){return h(new Date)}),1e3);return function(){clearInterval(e)}}),[]);var d,f="";if(t&&n){var v=function(e){var t=(0,a.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(n));f=t?"Live for ".concat(v):"Offline",d=u>0&&(0,i.jsxs)("span",{children:[(0,i.jsx)(o.Z,{})," ",u]})}else t||(f="Offline",l&&(d="Last live ".concat((0,r.Z)(new Date(l))," ago.")));return(0,i.jsxs)("div",{className:c().statusbar,children:[(0,i.jsx)("div",{children:f}),(0,i.jsx)("div",{children:d})]})};u.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},83818:function(e,t,n){"use strict";n.d(t,{M:function(){return z}});var i=n(47568),r=n(828),a=n(70655),s=n(85893),o=n(67294),l=n(4480),c=n(49218),u=n(85215),h=n(55206),d=n.n(h);n(33108);var f=function(e){var t=e.options,n=e.onReady,i=o.useRef(null),r=o.useRef(null);return o.useEffect((function(){if(!r.current){var e=i.current,a=r.current=(0,u.Z)(e,t,(function(){return a.log("player is ready"),n&&n(a,u.Z)}));a.autoplay(t.autoplay),a.src(t.sources)}}),[t,i]),o.useEffect((function(){var e=r.current;return function(){e&&(e.dispose(),r.current=null)}}),[r]),(0,s.jsx)("div",{"data-vjs-player":!0,children:(0,s.jsx)("video",{ref:i,className:"video-js vjs-big-play-centered ".concat(d().player," vjs-owncast")})})},v=n(51438);var m=function(){function e(){(0,v.Z)(this,e)}var t=e.prototype;return t.start=function(){this.stop(),this.timer=setInterval((function(){!function(){try{fetch("/api/ping")}catch(e){console.error(e)}}()}),4e3)},t.stop=function(){clearInterval(this.timer)},e}(),p=n(26042),g=n(69396),y=n(29815),b={position:"absolute",width:"100%",height:"100%"},k=function(e){var t=e.src,n=void 0===t?"":t,i=e.width,r=e.height,a=e.objectFit,l=void 0===a?"fill":a,c=e.duration,u=void 0===c?"1s":c,h=(0,o.useMemo)((function(){return{display:"inline-block",position:"relative",width:i,height:r}}),[i,r]),d=(0,o.useMemo)((function(){return[(0,g.Z)((0,p.Z)({},b),{objectFit:l,opacity:0,transition:"opacity ".concat(u)}),(0,g.Z)((0,p.Z)({},b),{objectFit:l,opacity:1,transition:"opacity ".concat(u)}),(0,g.Z)((0,p.Z)({},b),{objectFit:l,opacity:0})]}),[l,u]),f=(0,o.useState)(0),v=f[0],m=f[1],k=(0,o.useState)(["",""]),w=k[0],T=k[1],x=n!==w[1]?n:"",_=function(){m((v+1)%3),T([w[1],x])};return(0,s.jsx)("span",{style:h,children:(0,y.Z)(w).concat([x]).map((function(e,t){return""!==e&&(0,s.jsx)("img",{src:e,alt:"",style:d[t],onLoad:2===t?_:void 0},e)}))})};k.defaultProps={objectFit:"fill",duration:"3s"};var w=n(1125),T=n.n(w),x=function(e){var t,n=e.online,i=e.initialSrc,r=e.src,a=(0,o.useState)(i),l=a[0],c=a[1],u=(0,o.useState)("0s"),h=u[0],d=u[1];return(0,o.useEffect)((function(){clearInterval(t),t=setInterval((function(){"0s"===h&&d("3s"),c("".concat(r,"?").concat(Date.now()))}),2e4)}),[]),(0,s.jsxs)("div",{className:T().poster,children:[!n&&(0,s.jsx)("img",{src:i,alt:"logo"}),n&&(0,s.jsx)(k,{src:l,duration:h,objectFit:"cover",width:"100%",height:"100%"})]})},_=n(73682),j=n(1899),C=n(52951);var B=function(){function e(t,n){var i=this;(0,v.Z)(this,e),this.player=t,this.supportsDetailedMetrics=!1,this.hasPerformedInitialVariantChange=!1,this.clockSkewMs=0,this.segmentDownloadTime=[],this.bandwidthTracking=[],this.latencyTracking=[],this.errors=0,this.qualityVariantChanges=0,this.isBuffering=!1,this.bufferingDurationTimer=0,this.collectPlaybackMetricsTimer=0,this.videoJSReady=this.videoJSReady.bind(this),this.handlePlaying=this.handlePlaying.bind(this),this.handleBuffering=this.handleBuffering.bind(this),this.handleEnded=this.handleEnded.bind(this),this.handleError=this.handleError.bind(this),this.send=this.send.bind(this),this.collectPlaybackMetrics=this.collectPlaybackMetrics.bind(this),this.handleNoLongerBuffering=this.handleNoLongerBuffering.bind(this),this.player.on("canplaythrough",this.handleNoLongerBuffering),this.player.on("error",this.handleError),this.player.on("stalled",this.handleBuffering),this.player.on("waiting",this.handleBuffering),this.player.on("playing",this.handlePlaying),this.player.on("ended",this.handleEnded);var r=n.xhr;n.Vhs.xhr=function(){for(var e=arguments.length,t=new Array(e),n=0;n=40)return;this.trackLatency(a)}catch(s){console.warn(s)}}}},{key:"send",value:function(){var e=this;return(0,i.Z)((function(){var t,n,i,r,s,o,l,c,u,h,d;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(0===e.segmentDownloadTime.length)return[2];if(!e.player||e.player.paused())return[2];t=e.errors,e.supportsDetailedMetrics?(r=(i=function(e){return e.reduce((function(e,t){return e+t}),0)/e.length})(e.segmentDownloadTime)/1e3,s=Math.round(1e3*r)/1e3,o=i(e.bandwidthTracking)/1e3,l=Math.round(1e3*o)/1e3,c=i(e.latencyTracking)/1e3,u=Math.round(1e3*c)/1e3,n={bandwidth:l,latency:u,downloadDuration:s,errors:t+e.isBuffering?1:0,qualityVariantChanges:e.qualityVariantChanges}):n={errors:t+e.isBuffering?1:0},e.errors=0,e.qualityVariantChanges=0,e.segmentDownloadTime=[],e.bandwidthTracking=[],e.latencyTracking=[],h={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch("/api/metrics/playback",h)];case 2:return a.sent(),[3,4];case 3:return d=a.sent(),console.error(d),[3,4];case 4:return[2]}}))}))()}}]),e}(),Z=B,I=n(45785),M=n(82662),S=n(88029),E=n(91224);var N=function(e,t,n,i){var r=t.getComponent("MenuItem"),a=t.getComponent("MenuItem"),s=t.getComponent("MenuButton"),o=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e,i){return(0,v.Z)(this,n),t.call(this,e,i)}return n.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,I.Z)((0,M.Z)(n.prototype),"createEl",this).call(this,e,t,i);return r.innerHTML='
',r},n}(r),l=new a(e,{selectable:!0});l.setAttribute("class","latency-toggle-item"),l.on("click",(function(){i()}));var c=new o(e,{selectable:!1}),u=t.extend(s,{constructor:function(){s.call(this,e)},createItems:function(){var t=e.tech({IWillNotUseThisInPlugins:!0}),i=new a(e,{selectable:!0,label:"Auto"}),r=n.map((function(n){var i=new a(e,{selectable:!0,label:n.name});return i.on("click",(function(){t?(t.vhs.representations().forEach((function(e,t){e.enabled(t===n.index)})),i.selected(!1)):console.warn("Invalid attempt to access null player tech")})),i}));i.on("click",(function(){t.vhs.representations().forEach((function(e){e.enabled(!0)})),i.selected(!1)}));var s=!!t&&!!t.vhs;return n.length<2&&s?[l]:n.length>1&&s?[i].concat((0,y.Z)(r),[c,l]):s||1!==n.length?[i].concat((0,y.Z)(r)):[]}}),h=e.tech({IWillNotUseThisInPlugins:!0});if(!(n.length<2)||h&&h.vhs){var d=new u;return d.addClass("vjs-quality-selector"),d}};var P=function(){function e(t){(0,v.Z)(this,e),this.player=t,this.playing=!1,this.enabled=!1,this.running=!1,this.inTimeout=!1,this.jumpingToLiveIgnoreBuffer=!1,this.timeoutTimer=0,this.checkTimer=0,this.bufferingCounter=0,this.bufferingTimer=0,this.playbackRate=1,this.lastJumpOccurred=null,this.startupTime=new Date,this.clockSkewMs=0,this.currentLatency=null,this.bufferedAtLatency=[],this.player.on("playing",this.handlePlaying.bind(this)),this.player.on("pause",this.handlePause.bind(this)),this.player.on("error",this.handleError.bind(this)),this.player.on("waiting",this.handleBuffering.bind(this)),this.player.on("stalled",this.handleBuffering.bind(this)),this.player.on("ended",this.handleEnded.bind(this)),this.player.on("canplaythrough",this.handlePlaying.bind(this)),this.player.on("canplay",this.handlePlaying.bind(this)),this.check=this.check.bind(this),this.start=this.start.bind(this),this.enable=this.enable.bind(this),this.countBufferingEvent=this.countBufferingEvent.bind(this)}return(0,C.Z)(e,[{key:"setClockSkew",value:function(e){this.clockSkewMs=e}},{key:"check",value:function(){if(!((new Date).getTime()-this.startupTime.getTime()<1e4)&&!this.player.paused()&&!this.player.seeking()&&!this.inTimeout&&this.enabled){var e=this.player.tech({IWillNotUseThisInPlugins:!0});if(e&&e.vhs)if(2===this.player.networkState()){var t=0;try{if(0===e.vhs.stats.buffered.length)return void this.timeout();e.vhs.stats.buffered.forEach((function(e){t+=e.end-e.start}))}catch(p){console.error(p)}var n=e.vhs.playlists.media().attributes.BANDWIDTH,i=e.vhs.systemBandwidth/n;try{var a=function(e){for(var t,n=e.vhs.playlists.media(),i=e.currentTime(),a=0,s=n.segments.length;a=c&&(c=l+3e3);var u=a.dateTimeObject.getTime(),h=(new Date).getTime()+this.clockSkewMs-u;if(this.currentLatency=h,Math.abs(h)>8e4)return void this.timeout();if(h>c){if(this.shouldJumpToLive()&&h>c+5e3){var d=h/1e3-3*a.duration,f=this.player.currentTime()+d;console.info("latency",h/1e3,"jumping",d,"to live from ",this.player.currentTime()," to ",f);var v=e.vhs.stats.buffered[0].end;if(f>e.vhs.stats.buffered[0].startthis.playbackRate+.02&&(m=this.playbackRate+.02),m=Math.round(m*Math.pow(10,3))/Math.pow(10,3),this.start(m)}else h<=l&&this.stop();console.info("latency",h/1e3,"min",l/1e3,"max",c/1e3,"playback rate",this.playbackRate,"enabled:",this.enabled,"running: ",this.running,"skew: ",this.clockSkewMs,"rebuffer events: ",this.bufferingCounter)}catch(g){}}}}},{key:"shouldJumpToLive",value:function(){return!(this.bufferingCounter>1)&&(new Date).getTime()-this.lastJumpOccurred>2e4}},{key:"jump",value:function(e){var t=this;this.jumpingToLiveIgnoreBuffer=!0,this.performedInitialLiveJump=!0,this.lastJumpOccurred=new Date,console.info("current time",this.player.currentTime(),"seeking to",e),this.player.currentTime(e),setTimeout((function(){t.jumpingToLiveIgnoreBuffer=!1}),5e3)}},{key:"setPlaybackRate",value:function(e){this.playbackRate=e,this.player.playbackRate(e)}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;!this.inTimeout&&this.enabled&&e!==this.playbackRate&&(this.running=!0,this.setPlaybackRate(e))}},{key:"stop",value:function(){this.running&&console.log("stopping latency compensator..."),this.running=!1,this.setPlaybackRate(1)}},{key:"enable",value:function(){var e=this;this.enabled=!0,clearInterval(this.checkTimer),clearTimeout(this.bufferingTimer),this.checkTimer=setInterval((function(){e.check()}),3e3)}},{key:"disable",value:function(){clearInterval(this.checkTimer),clearTimeout(this.timeoutTimer),this.stop(),this.enabled=!1}},{key:"timeout",value:function(){var e=this;this.jumpingToLiveIgnoreBuffer||(this.inTimeout=!0,this.stop(),clearTimeout(this.timeoutTimer),this.timeoutTimer=setTimeout((function(){e.endTimeout()}),3e4))}},{key:"endTimeout",value:function(){clearTimeout(this.timeoutTimer),this.inTimeout=!1}},{key:"handlePlaying",value:function(){var e=this.playing;this.playing=!0,clearTimeout(this.bufferingTimer),this.enabled&&this.shouldJumpToLive()&&(e||(this.jumpingToLiveIgnoreBuffer=!0,this.player.liveTracker.seekToLiveEdge(),this.lastJumpOccurred=new Date))}},{key:"handlePause",value:function(){this.playing=!1}},{key:"handleEnded",value:function(){this.enabled&&this.disable()}},{key:"handleError",value:function(){this.enabled&&this.timeout()}},{key:"countBufferingEvent",value:function(){var e=this;this.bufferingCounter+=1,this.bufferingCounter>4?this.disable():(this.bufferedAtLatency.push(this.currentLatency),console.log("latency compensation timeout due to buffering:",this.bufferingCounter,"buffering events of",4),setTimeout((function(){e.bufferingCounter>0&&(e.bufferingCounter-=1)}),18e4))}},{key:"handleBuffering",value:function(){var e=this;this.enabled&&!this.inTimeout&&(this.jumpingToLiveIgnoreBuffer?this.jumpingToLiveIgnoreBuffer=!1:(this.timeout(),clearTimeout(this.bufferingTimer),this.bufferingTimer=setTimeout((function(){e.countBufferingEvent()}),200)))}}]),e}(),D=P,L="/api/video/variants",F="owncast_volume",O="latencyCompensatorEnabled",R=new m,A=null,J=null,V=!1;function q(){return U.apply(this,arguments)}function U(){return(U=(0,i.Z)((function(){var e,t;return(0,a.__generator)(this,(function(n){switch(n.label){case 0:e=[],n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch(L)];case 2:return[4,n.sent().json()];case 3:return e=n.sent(),[3,5];case 4:return t=n.sent(),console.error(t),[3,5];case 5:return[2,e]}}))}))).apply(this,arguments)}var z=function(e){var t=e.source,n=e.online,u=o.useRef(null),h=(0,r.Z)((0,l.FV)(j.We),2),d=h[0],v=h[1],m=(0,l.sJ)(j.g8),p=function(){(0,_.qQ)(F,u.current.muted()?0:u.current.volume())},g=function(e){var t=document.querySelector(".latency-toggle-item > .vjs-menu-item-text");t&&(t.innerHTML=e)},y=function(){J&&J.stop(),V=!0,(J=new D(u.current)).setClockSkew(m),J.enable(),(0,_.qQ)(O,!0),g("disable minimized latency")},b=function(){J&&J.disable(),J=null,V=!1,(0,_.qQ)(O,!1),g('enable minimized latency (experimental)')},k=function(){V?b():y()},w=function(){var e=(0,i.Z)((function(e,t){var n,i;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return[4,q()];case 1:return n=r.sent(),i=N(e,t,n,k),e.controlBar.addChild(i,{},e.controlBar.children_.length-2),function(e){var t=e.tech({IWillNotUseThisInPlugins:!0});t&&t.vhs&&("true"===(0,_.$o)(O)&&t&&t.vhs?y():b())}(e),[2]}}))}));return function(t,n){return e.apply(this,arguments)}}();(0,c.y1)("space",(function(e){e.preventDefault(),u.current.paused()?u.current.play():u.current.pause()})),(0,c.y1)("f",(function(){u.current.isFullscreen()?u.current.exitFullscreen():u.current.requestFullscreen()}),{enableOnContentEditable:!1}),(0,c.y1)("m",(function(){u.current.muted()||0===u.current.volume()?u.current.volume(.7):u.current.volume(0)}),{enableOnContentEditable:!1}),(0,c.y1)("0",(function(){return u.current.volume(u.current.volume()+.1)}),{enableOnContentEditable:!1}),(0,c.y1)("9",(function(){return u.current.volume(u.current.volume()-.1)}),{enableOnContentEditable:!1});var T={autoplay:!1,controls:!0,responsive:!0,fluid:!1,playsInline:!0,liveui:!0,preload:"auto",controlBar:{progressControl:{seekBar:!1}},html5:{vhs:{enableLowInitialPlaylist:!0,experimentalBufferBasedABR:!0,useNetworkInformationApi:!0,maxPlaylistRetries:30}},liveTracker:{trackingThreshold:0,liveTolerance:15},sources:[{src:t,type:"application/x-mpegURL"}]};return(0,o.useEffect)((function(){A&&A.setClockSkew(m)}),[m]),(0,o.useEffect)((function(){return function(){b()}}),[]),(0,s.jsxs)("div",{style:{display:"grid"},children:[n&&(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:(0,s.jsx)(f,{options:T,onReady:function(e,t){u.current=e,function(){try{u.current.volume((0,_.$o)(F)||1)}catch(e){console.warn(e)}}(),function(e,t){if(window.hasOwnProperty("WebKitPlaybackTargetAvailabilityEvent")){var n=t.getComponent("Button"),i=t.extend(n,{constructor:function(){n.call(this,e)},handleClick:function(){try{document.getElementsByTagName("video")[0].webkitShowPlaybackTargetPicker()}catch(e){console.error(e)}}});e.controlBar.addChild(new i).addClass("vjs-airplay")}}(e,t),e.on("waiting",(function(){e.log("player is waiting")})),e.on("dispose",(function(){e.log("player will dispose"),R.stop()})),e.on("playing",(function(){e.log("player is playing"),R.start(),v(!0)})),e.on("pause",(function(){e.log("player is paused"),R.stop(),v(!1)})),e.on("ended",(function(){e.log("player is ended"),R.stop(),v(!1)})),t.hookOnce(),e.on("volumechange",p),(A=new Z(e,t)).setClockSkew(m),w(e,t)}})}),(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:!d&&(0,s.jsx)(x,{online:n,initialSrc:"/thumbnail.jpg",src:"/thumbnail.jpg"})})]})}},36879:function(e){e.exports={button:"ActionButton_button__z5Z2c",icon:"ActionButton_icon__EPp7Q"}},13840:function(e){e.exports={header:"FollowModal_header__la1ji",buttons:"FollowModal_buttons__tt4Mc",instructions:"FollowModal_instructions__HiKFF",footer:"FollowModal_footer__AjucH",account:"FollowModal_account__cmHkm",logo:"FollowModal_logo__Ew8xK",username:"FollowModal_username__A_OTw",name:"FollowModal_name__Sf_TP"}},78890:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}},29316: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"}},93132:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},55206:function(e){e.exports={player:"VideoJS_player__GT8FN",poster:"VideoJS_poster__nlmqm"}},1125:function(e){e.exports={poster:"VideoPoster_poster__RDkSk"}},25893:function(){}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/2854-904b0905cf6698f3.js b/static/web/_next/static/chunks/2854-904b0905cf6698f3.js new file mode 100644 index 000000000..978504f87 --- /dev/null +++ b/static/web/_next/static/chunks/2854-904b0905cf6698f3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2854],{30896:function(e,t,n){"use strict";n.d(t,{e:function(){return x}});var i=n(26042),r=n(69396),a=n(85893),s=n(71577),o=n(34447),l=n(67294),c=n(4480),u=n(32365),h=n(47568),d=n(70655),f=n(26713),m=n(11382),v=n(14670),p=n(69677),g=n(13840),y=n.n(g);var b=function(e){var t=e.handleClose,n=e.account,i=e.name,r=(0,l.useState)(null),o=r[0],c=r[1],u=(0,l.useState)(!1),g=u[0],b=u[1],k=(0,l.useState)(!1),w=k[0],T=k[1],x=(0,l.useState)(null),_=x[0],j=x[1],C=function(e){c(e),!function(e){var 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)?b(!1):b(!0)},B=function(){var e=(0,h.Z)((function(){var e,n,i,r;return(0,d.__generator)(this,(function(a){switch(a.label){case 0:if(!g)return[2];T(!0),a.label=1;case 1:return a.trys.push([1,4,,5]),e=o.replace(/^@+/,""),n={account:e},[4,fetch("/api/remotefollow",{method:"POST",body:JSON.stringify(n)})];case 2:return[4,a.sent().json()];case 3:return(i=a.sent()).redirectUrl&&(window.open(i.redirectUrl,"_blank"),t()),i.success?i.redirectUrl?[3,5]:(j("Unable to follow."),T(!1),[2]):(j(i.message),T(!1),[2]);case 4:return r=a.sent(),j(r.message),[3,5];case 5:return T(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,a.jsxs)(f.Z,{direction:"vertical",children:[(0,a.jsxs)("div",{className:y().header,children:["By following this stream you'll get notified on the Fediverse when it goes live. Now is a great time to",(0,a.jsx)("a",{href:"https://owncast.online/join-fediverse",target:"_blank",rel:"noreferrer",children:"learn about the Fediverse"}),"if it's new to you."]}),(0,a.jsxs)(m.Z,{spinning:w,children:[_&&(0,a.jsx)(v.Z,{message:"Follow Error",description:_,type:"error",showIcon:!0}),(0,a.jsxs)("div",{className:y().account,children:[(0,a.jsx)("img",{src:"/logo",alt:"logo",className:y().logo}),(0,a.jsxs)("div",{className:y().username,children:[(0,a.jsx)("div",{className:y().name,children:i}),(0,a.jsx)("div",{children:n})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:y().instructions,children:"Enter your username @server to follow"}),(0,a.jsx)(p.Z,{value:o,size:"large",onChange:function(e){return C(e.target.value)},placeholder:"Your fediverse account @account@server",defaultValue:o}),(0,a.jsx)("div",{className:y().footer,children:"You'll be redirected to your Fediverse server and asked to confirm the action."})]}),(0,a.jsxs)(f.Z,{className:y().buttons,children:[(0,a.jsx)(s.Z,{disabled:!g,type:"primary",onClick:B,children:"Follow"}),(0,a.jsx)(s.Z,{onClick:function(){window.open("https://owncast.online/join-fediverse","_blank")},type:"primary",children:"Join the Fediverse"})]})]})]})},k=n(36879),w=n.n(k),T=n(1899),x=function(e){var t=(0,l.useState)(!1),n=t[0],h=t[1],d=(0,c.sJ)(T.g1),f=d.name,m=d.federation.account;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,(0,r.Z)((0,i.Z)({},e),{type:"primary",className:w().button,icon:(0,a.jsx)(o.Z,{}),onClick:function(){return h(!0)},children:"Follow"})),(0,a.jsx)(u.Modal,{title:"Follow ".concat(f),open:n,handleCancel:function(){return h(!1)},width:"550px",height:"200px",children:(0,a.jsx)(b,{account:m,name:f,handleClose:function(){return h(!1)}})})]})}},52437:function(e,t,n){"use strict";n.d(t,{E:function(){return l}});var i=n(85893),r=n(71577),a=n(71578),s=n(36879),o=n.n(s),l=function(e){var t=e.onClick,n=e.text;return(0,i.jsx)(r.Z,{type:"primary",className:"".concat(o().button),icon:(0,i.jsx)(a.Z,{}),onClick:t,children:n||"Notify"})}},32365:function(e,t,n){"use strict";n.r(t),n.d(t,{Modal:function(){return u}});var i=n(85893),r=n(85402),a=n(26303),s=n(11382),o=n(67294),l=n(78890),c=n.n(l),u=function(e){var t=e.title,n=e.url,l=e.open,u=e.handleOk,h=e.handleCancel,d=e.afterClose,f=e.height,m=e.width,v=e.children,p=(0,o.useState)(!!n),g=p[0],y=p[1],b={padding:"0px",minHeight:f},k=n&&(0,i.jsx)("iframe",{title:t,src:n,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,onLoad:function(){return y(!1)}}),w=g?"none":"inline";return(0,i.jsx)(r.Z,{title:t,open:l,onOk:u,onCancel:h,afterClose:d,bodyStyle:b,width:m,zIndex:9999,footer:null,centered:!0,destroyOnClose:!0,children:(0,i.jsxs)(i.Fragment,{children:[g&&(0,i.jsx)(a.Z,{active:g,style:{padding:"10px"},paragraph:{rows:10}}),k&&(0,i.jsx)("div",{style:{display:w},children:k}),v&&(0,i.jsx)("div",{className:c().content,children:v}),g&&(0,i.jsx)(s.Z,{className:c().spinner,spinning:g,size:"large"})]})})};t.default=u,u.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0,height:"40vh",width:"70%"}},1698:function(e,t,n){"use strict";n.d(t,{R:function(){return h}});var i=n(85893),r=n(27049),a=n(24019),s=n(45938),o=n(29316),l=n.n(o),c=n(30896),u=n(52437),h=function(e){var t,n=e.streamName,o=e.customText,h=e.lastLive,d=e.notificationsEnabled,f=e.fediverseAccount,m=e.onNotifyClick;return t=o||(!o&&d&&f?"This stream is offline. You can be notified the next time ".concat(n," goes live or follow ").concat(f," on the Fediverse."):!o&&d?"This stream is offline. Be notified the next time ".concat(n," goes live."):"This stream is offline. Check back soon!"),(0,i.jsx)("div",{className:l().outerContainer,children:(0,i.jsxs)("div",{className:l().innerContainer,children:[(0,i.jsx)("div",{className:l().header,children:n}),(0,i.jsx)(r.Z,{className:l().separator}),(0,i.jsx)("div",{className:l().bodyText,children:t}),h&&(0,i.jsxs)("div",{className:l().lastLiveDate,children:[(0,i.jsx)(a.Z,{className:l().clockIcon}),"Last live ".concat((0,s.Z)(new Date(h))," ago.")]}),(0,i.jsxs)("div",{className:l().footer,children:[f&&(0,i.jsx)(c.e,{}),d&&(0,i.jsx)(u.E,{text:"Notify when live",onClick:m})]})]})})}},43125:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var i=n(85893),r=n(45938),a=n(68730),s=n(67294),o=n(99611),l=n(93132),c=n.n(l);var u=function(e){var t=e.online,n=e.lastConnectTime,l=e.lastDisconnectTime,u=e.viewerCount,h=(0,s.useState)(new Date)[1];(0,s.useEffect)((function(){var e=setInterval((function(){return h(new Date)}),1e3);return function(){clearInterval(e)}}),[]);var d,f="";if(t&&n){var m=function(e){var t=(0,a.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(n));f=t?"Live for ".concat(m):"Offline",d=u>0&&(0,i.jsxs)("span",{children:[(0,i.jsx)(o.Z,{})," ",u]})}else t||(f="Offline",l&&(d="Last live ".concat((0,r.Z)(new Date(l))," ago.")));return(0,i.jsxs)("div",{className:c().statusbar,children:[(0,i.jsx)("div",{children:f}),(0,i.jsx)("div",{children:d})]})};u.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},83818:function(e,t,n){"use strict";n.d(t,{M:function(){return z}});var i=n(47568),r=n(828),a=n(70655),s=n(85893),o=n(67294),l=n(4480),c=n(49218),u=n(85215),h=n(55206),d=n.n(h);n(33108);var f=function(e){var t=e.options,n=e.onReady,i=o.useRef(null),r=o.useRef(null);return o.useEffect((function(){if(!r.current){var e=i.current,a=r.current=(0,u.Z)(e,t,(function(){return a.log("player is ready"),n&&n(a,u.Z)}));a.autoplay(t.autoplay),a.src(t.sources)}}),[t,i]),o.useEffect((function(){var e=r.current;return function(){e&&(e.dispose(),r.current=null)}}),[r]),(0,s.jsx)("div",{"data-vjs-player":!0,children:(0,s.jsx)("video",{ref:i,className:"video-js vjs-big-play-centered ".concat(d().player," vjs-owncast")})})},m=n(51438);var v=function(){function e(){(0,m.Z)(this,e)}var t=e.prototype;return t.start=function(){this.stop(),this.timer=setInterval((function(){!function(){try{fetch("/api/ping")}catch(e){console.error(e)}}()}),4e3)},t.stop=function(){clearInterval(this.timer)},e}(),p=n(26042),g=n(69396),y=n(29815),b={position:"absolute",width:"100%",height:"100%"},k=function(e){var t=e.src,n=void 0===t?"":t,i=e.width,r=e.height,a=e.objectFit,l=void 0===a?"fill":a,c=e.duration,u=void 0===c?"1s":c,h=(0,o.useMemo)((function(){return{display:"inline-block",position:"relative",width:i,height:r}}),[i,r]),d=(0,o.useMemo)((function(){return[(0,g.Z)((0,p.Z)({},b),{objectFit:l,opacity:0,transition:"opacity ".concat(u)}),(0,g.Z)((0,p.Z)({},b),{objectFit:l,opacity:1,transition:"opacity ".concat(u)}),(0,g.Z)((0,p.Z)({},b),{objectFit:l,opacity:0})]}),[l,u]),f=(0,o.useState)(0),m=f[0],v=f[1],k=(0,o.useState)(["",""]),w=k[0],T=k[1],x=n!==w[1]?n:"",_=function(){v((m+1)%3),T([w[1],x])};return(0,s.jsx)("span",{style:h,children:(0,y.Z)(w).concat([x]).map((function(e,t){return""!==e&&(0,s.jsx)("img",{src:e,alt:"",style:d[t],onLoad:2===t?_:void 0},e)}))})};k.defaultProps={objectFit:"fill",duration:"3s"};var w=n(1125),T=n.n(w),x=function(e){var t,n=e.online,i=e.initialSrc,r=e.src,a=(0,o.useState)(i),l=a[0],c=a[1],u=(0,o.useState)("0s"),h=u[0],d=u[1];return(0,o.useEffect)((function(){clearInterval(t),t=setInterval((function(){"0s"===h&&d("3s"),c("".concat(r,"?").concat(Date.now()))}),2e4)}),[]),(0,s.jsxs)("div",{className:T().poster,children:[!n&&(0,s.jsx)("img",{src:i,alt:"logo"}),n&&(0,s.jsx)(k,{src:l,duration:h,objectFit:"cover",width:"100%",height:"100%"})]})},_=n(73682),j=n(1899),C=n(52951);var B=function(){function e(t,n){var i=this;(0,m.Z)(this,e),this.player=t,this.supportsDetailedMetrics=!1,this.hasPerformedInitialVariantChange=!1,this.clockSkewMs=0,this.segmentDownloadTime=[],this.bandwidthTracking=[],this.latencyTracking=[],this.errors=0,this.qualityVariantChanges=0,this.isBuffering=!1,this.bufferingDurationTimer=0,this.collectPlaybackMetricsTimer=0,this.videoJSReady=this.videoJSReady.bind(this),this.handlePlaying=this.handlePlaying.bind(this),this.handleBuffering=this.handleBuffering.bind(this),this.handleEnded=this.handleEnded.bind(this),this.handleError=this.handleError.bind(this),this.send=this.send.bind(this),this.collectPlaybackMetrics=this.collectPlaybackMetrics.bind(this),this.handleNoLongerBuffering=this.handleNoLongerBuffering.bind(this),this.player.on("canplaythrough",this.handleNoLongerBuffering),this.player.on("error",this.handleError),this.player.on("stalled",this.handleBuffering),this.player.on("waiting",this.handleBuffering),this.player.on("playing",this.handlePlaying),this.player.on("ended",this.handleEnded);var r=n.xhr;n.Vhs.xhr=function(){for(var e=arguments.length,t=new Array(e),n=0;n=40)return;this.trackLatency(a)}catch(s){console.warn(s)}}}},{key:"send",value:function(){var e=this;return(0,i.Z)((function(){var t,n,i,r,s,o,l,c,u,h,d;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(0===e.segmentDownloadTime.length)return[2];if(!e.player||e.player.paused())return[2];t=e.errors,e.supportsDetailedMetrics?(r=(i=function(e){return e.reduce((function(e,t){return e+t}),0)/e.length})(e.segmentDownloadTime)/1e3,s=Math.round(1e3*r)/1e3,o=i(e.bandwidthTracking)/1e3,l=Math.round(1e3*o)/1e3,c=i(e.latencyTracking)/1e3,u=Math.round(1e3*c)/1e3,n={bandwidth:l,latency:u,downloadDuration:s,errors:t+e.isBuffering?1:0,qualityVariantChanges:e.qualityVariantChanges}):n={errors:t+e.isBuffering?1:0},e.errors=0,e.qualityVariantChanges=0,e.segmentDownloadTime=[],e.bandwidthTracking=[],e.latencyTracking=[],h={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch("/api/metrics/playback",h)];case 2:return a.sent(),[3,4];case 3:return d=a.sent(),console.error(d),[3,4];case 4:return[2]}}))}))()}}]),e}(),Z=B,I=n(45785),M=n(82662),S=n(88029),E=n(91224);var N=function(e,t,n,i){var r=t.getComponent("MenuItem"),a=t.getComponent("MenuItem"),s=t.getComponent("MenuButton"),o=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e,i){return(0,m.Z)(this,n),t.call(this,e,i)}return n.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,I.Z)((0,M.Z)(n.prototype),"createEl",this).call(this,e,t,i);return r.innerHTML='
',r},n}(r),l=new a(e,{selectable:!0});l.setAttribute("class","latency-toggle-item"),l.on("click",(function(){i()}));var c=new o(e,{selectable:!1}),u=t.extend(s,{constructor:function(){s.call(this,e)},createItems:function(){var t=e.tech({IWillNotUseThisInPlugins:!0}),i=new a(e,{selectable:!0,label:"Auto"}),r=n.map((function(n){var i=new a(e,{selectable:!0,label:n.name});return i.on("click",(function(){t?(t.vhs.representations().forEach((function(e,t){e.enabled(t===n.index)})),i.selected(!1)):console.warn("Invalid attempt to access null player tech")})),i}));i.on("click",(function(){t.vhs.representations().forEach((function(e){e.enabled(!0)})),i.selected(!1)}));var s=!!t&&!!t.vhs;return n.length<2&&s?[l]:n.length>1&&s?[i].concat((0,y.Z)(r),[c,l]):s||1!==n.length?[i].concat((0,y.Z)(r)):[]}}),h=e.tech({IWillNotUseThisInPlugins:!0});if(!(n.length<2)||h&&h.vhs){var d=new u;return d.addClass("vjs-quality-selector"),d}};var P=function(){function e(t){(0,m.Z)(this,e),this.player=t,this.playing=!1,this.enabled=!1,this.running=!1,this.inTimeout=!1,this.jumpingToLiveIgnoreBuffer=!1,this.timeoutTimer=0,this.checkTimer=0,this.bufferingCounter=0,this.bufferingTimer=0,this.playbackRate=1,this.lastJumpOccurred=null,this.startupTime=new Date,this.clockSkewMs=0,this.currentLatency=null,this.bufferedAtLatency=[],this.player.on("playing",this.handlePlaying.bind(this)),this.player.on("pause",this.handlePause.bind(this)),this.player.on("error",this.handleError.bind(this)),this.player.on("waiting",this.handleBuffering.bind(this)),this.player.on("stalled",this.handleBuffering.bind(this)),this.player.on("ended",this.handleEnded.bind(this)),this.player.on("canplaythrough",this.handlePlaying.bind(this)),this.player.on("canplay",this.handlePlaying.bind(this)),this.check=this.check.bind(this),this.start=this.start.bind(this),this.enable=this.enable.bind(this),this.countBufferingEvent=this.countBufferingEvent.bind(this)}return(0,C.Z)(e,[{key:"setClockSkew",value:function(e){this.clockSkewMs=e}},{key:"check",value:function(){if(!((new Date).getTime()-this.startupTime.getTime()<1e4)&&!this.player.paused()&&!this.player.seeking()&&!this.inTimeout&&this.enabled){var e=this.player.tech({IWillNotUseThisInPlugins:!0});if(e&&e.vhs)if(2===this.player.networkState()){var t=0;try{if(0===e.vhs.stats.buffered.length)return void this.timeout();e.vhs.stats.buffered.forEach((function(e){t+=e.end-e.start}))}catch(p){console.error(p)}var n=e.vhs.playlists.media().attributes.BANDWIDTH,i=e.vhs.systemBandwidth/n;try{var a=function(e){for(var t,n=e.vhs.playlists.media(),i=e.currentTime(),a=0,s=n.segments.length;a=c&&(c=l+3e3);var u=a.dateTimeObject.getTime(),h=(new Date).getTime()+this.clockSkewMs-u;if(this.currentLatency=h,Math.abs(h)>8e4)return void this.timeout();if(h>c){if(this.shouldJumpToLive()&&h>c+5e3){var d=h/1e3-3*a.duration,f=this.player.currentTime()+d;console.info("latency",h/1e3,"jumping",d,"to live from ",this.player.currentTime()," to ",f);var m=e.vhs.stats.buffered[0].end;if(f>e.vhs.stats.buffered[0].startthis.playbackRate+.02&&(v=this.playbackRate+.02),v=Math.round(v*Math.pow(10,3))/Math.pow(10,3),this.start(v)}else h<=l&&this.stop();console.info("latency",h/1e3,"min",l/1e3,"max",c/1e3,"playback rate",this.playbackRate,"enabled:",this.enabled,"running: ",this.running,"skew: ",this.clockSkewMs,"rebuffer events: ",this.bufferingCounter)}catch(g){}}}}},{key:"shouldJumpToLive",value:function(){return!(this.bufferingCounter>1)&&(new Date).getTime()-this.lastJumpOccurred>2e4}},{key:"jump",value:function(e){var t=this;this.jumpingToLiveIgnoreBuffer=!0,this.performedInitialLiveJump=!0,this.lastJumpOccurred=new Date,console.info("current time",this.player.currentTime(),"seeking to",e),this.player.currentTime(e),setTimeout((function(){t.jumpingToLiveIgnoreBuffer=!1}),5e3)}},{key:"setPlaybackRate",value:function(e){this.playbackRate=e,this.player.playbackRate(e)}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;!this.inTimeout&&this.enabled&&e!==this.playbackRate&&(this.running=!0,this.setPlaybackRate(e))}},{key:"stop",value:function(){this.running&&console.log("stopping latency compensator..."),this.running=!1,this.setPlaybackRate(1)}},{key:"enable",value:function(){var e=this;this.enabled=!0,clearInterval(this.checkTimer),clearTimeout(this.bufferingTimer),this.checkTimer=setInterval((function(){e.check()}),3e3)}},{key:"disable",value:function(){clearInterval(this.checkTimer),clearTimeout(this.timeoutTimer),this.stop(),this.enabled=!1}},{key:"timeout",value:function(){var e=this;this.jumpingToLiveIgnoreBuffer||(this.inTimeout=!0,this.stop(),clearTimeout(this.timeoutTimer),this.timeoutTimer=setTimeout((function(){e.endTimeout()}),3e4))}},{key:"endTimeout",value:function(){clearTimeout(this.timeoutTimer),this.inTimeout=!1}},{key:"handlePlaying",value:function(){var e=this.playing;this.playing=!0,clearTimeout(this.bufferingTimer),this.enabled&&this.shouldJumpToLive()&&(e||(this.jumpingToLiveIgnoreBuffer=!0,this.player.liveTracker.seekToLiveEdge(),this.lastJumpOccurred=new Date))}},{key:"handlePause",value:function(){this.playing=!1}},{key:"handleEnded",value:function(){this.enabled&&this.disable()}},{key:"handleError",value:function(){this.enabled&&this.timeout()}},{key:"countBufferingEvent",value:function(){var e=this;this.bufferingCounter+=1,this.bufferingCounter>4?this.disable():(this.bufferedAtLatency.push(this.currentLatency),console.log("latency compensation timeout due to buffering:",this.bufferingCounter,"buffering events of",4),setTimeout((function(){e.bufferingCounter>0&&(e.bufferingCounter-=1)}),18e4))}},{key:"handleBuffering",value:function(){var e=this;this.enabled&&!this.inTimeout&&(this.jumpingToLiveIgnoreBuffer?this.jumpingToLiveIgnoreBuffer=!1:(this.timeout(),clearTimeout(this.bufferingTimer),this.bufferingTimer=setTimeout((function(){e.countBufferingEvent()}),200)))}}]),e}(),D=P,L="/api/video/variants",F="owncast_volume",O="latencyCompensatorEnabled",R=new v,A=null,J=null,V=!1;function q(){return U.apply(this,arguments)}function U(){return(U=(0,i.Z)((function(){var e,t;return(0,a.__generator)(this,(function(n){switch(n.label){case 0:e=[],n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch(L)];case 2:return[4,n.sent().json()];case 3:return e=n.sent(),[3,5];case 4:return t=n.sent(),console.error(t),[3,5];case 5:return[2,e]}}))}))).apply(this,arguments)}var z=function(e){var t=e.source,n=e.online,u=o.useRef(null),h=(0,r.Z)((0,l.FV)(j.We),2),d=h[0],m=h[1],v=(0,l.sJ)(j.g8),p=function(){(0,_.qQ)(F,u.current.muted()?0:u.current.volume())},g=function(e){var t=document.querySelector(".latency-toggle-item > .vjs-menu-item-text");t&&(t.innerHTML=e)},y=function(){J&&J.stop(),V=!0,(J=new D(u.current)).setClockSkew(v),J.enable(),(0,_.qQ)(O,!0),g("disable minimized latency")},b=function(){J&&J.disable(),J=null,V=!1,(0,_.qQ)(O,!1),g('enable minimized latency (experimental)')},k=function(){V?b():y()},w=function(){var e=(0,i.Z)((function(e,t){var n,i;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return[4,q()];case 1:return n=r.sent(),i=N(e,t,n,k),e.controlBar.addChild(i,{},e.controlBar.children_.length-2),function(e){var t=e.tech({IWillNotUseThisInPlugins:!0});t&&t.vhs&&("true"===(0,_.$o)(O)&&t&&t.vhs?y():b())}(e),[2]}}))}));return function(t,n){return e.apply(this,arguments)}}();(0,c.y1)("space",(function(e){e.preventDefault(),u.current.paused()?u.current.play():u.current.pause()})),(0,c.y1)("f",(function(){u.current.isFullscreen()?u.current.exitFullscreen():u.current.requestFullscreen()}),{enableOnContentEditable:!1}),(0,c.y1)("m",(function(){u.current.muted()||0===u.current.volume()?u.current.volume(.7):u.current.volume(0)}),{enableOnContentEditable:!1}),(0,c.y1)("0",(function(){return u.current.volume(u.current.volume()+.1)}),{enableOnContentEditable:!1}),(0,c.y1)("9",(function(){return u.current.volume(u.current.volume()-.1)}),{enableOnContentEditable:!1});var T={autoplay:!1,controls:!0,responsive:!0,fluid:!1,playsInline:!0,liveui:!0,preload:"auto",controlBar:{progressControl:{seekBar:!1}},html5:{vhs:{enableLowInitialPlaylist:!0,experimentalBufferBasedABR:!0,useNetworkInformationApi:!0,maxPlaylistRetries:30}},liveTracker:{trackingThreshold:0,liveTolerance:15},sources:[{src:t,type:"application/x-mpegURL"}]};return(0,o.useEffect)((function(){A&&A.setClockSkew(v)}),[v]),(0,o.useEffect)((function(){return function(){b()}}),[]),(0,s.jsxs)("div",{style:{display:"grid"},children:[n&&(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:(0,s.jsx)(f,{options:T,onReady:function(e,t){u.current=e,function(){try{u.current.volume((0,_.$o)(F)||1)}catch(e){console.warn(e)}}(),function(e,t){if(window.hasOwnProperty("WebKitPlaybackTargetAvailabilityEvent")){var n=t.getComponent("Button"),i=t.extend(n,{constructor:function(){n.call(this,e)},handleClick:function(){try{document.getElementsByTagName("video")[0].webkitShowPlaybackTargetPicker()}catch(e){console.error(e)}}});e.controlBar.addChild(new i).addClass("vjs-airplay")}}(e,t),e.on("waiting",(function(){e.log("player is waiting")})),e.on("dispose",(function(){e.log("player will dispose"),R.stop()})),e.on("playing",(function(){e.log("player is playing"),R.start(),m(!0)})),e.on("pause",(function(){e.log("player is paused"),R.stop(),m(!1)})),e.on("ended",(function(){e.log("player is ended"),R.stop(),m(!1)})),t.hookOnce(),e.on("volumechange",p),(A=new Z(e,t)).setClockSkew(v),w(e,t)}})}),(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:!d&&(0,s.jsx)(x,{online:n,initialSrc:"/thumbnail.jpg",src:"/thumbnail.jpg"})})]})}},36879:function(e){e.exports={button:"ActionButton_button__z5Z2c",icon:"ActionButton_icon__EPp7Q"}},13840:function(e){e.exports={header:"FollowModal_header__la1ji",buttons:"FollowModal_buttons__tt4Mc",instructions:"FollowModal_instructions__HiKFF",footer:"FollowModal_footer__AjucH",account:"FollowModal_account__cmHkm",logo:"FollowModal_logo__Ew8xK",username:"FollowModal_username__A_OTw",name:"FollowModal_name__Sf_TP"}},78890:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}},29316: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"}},93132:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},55206:function(e){e.exports={player:"VideoJS_player__GT8FN",poster:"VideoJS_poster__nlmqm"}},1125:function(e){e.exports={poster:"VideoPoster_poster__RDkSk"}},25893:function(){}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/7735.d76060cd6e9f5115.js b/static/web/_next/static/chunks/7735.d76060cd6e9f5115.js deleted file mode 100644 index 0a18d6b5e..000000000 --- a/static/web/_next/static/chunks/7735.d76060cd6e9f5115.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7735],{57735:function(t,e,n){"use strict";n.r(e),n.d(e,{NotifyReminderPopup:function(){return l}});var i=n(85893),o=n(55241),s=n(97937),c=n(67294),u=n(18668),r=n.n(u),l=function(t){var e=t.children,n=t.visible,u=t.notificationClicked,l=t.notificationClosed,a=(0,c.useState)(n),p=a[0],d=a[1],f=(0,c.useState)(!1),b=f[0],_=f[1];(0,c.useEffect)((function(){d(n)}),[n]),(0,c.useEffect)((function(){_(!0)}),[]);var m=(0,i.jsx)("div",{className:r().title,children:"Stay updated!"}),x=function(t){t.stopPropagation(),u()},y=(0,i.jsxs)("div",{onClick:x,onKeyDown:x,role:"menuitem",tabIndex:0,children:[(0,i.jsx)("button",{type:"button",className:r().closebutton,onClick:function(t){t.stopPropagation(),d(!1),l()},children:(0,i.jsx)(s.Z,{})}),(0,i.jsxs)("div",{className:r().contentbutton,children:["Click and never miss",(0,i.jsx)("br",{}),"future streams!"]})]});return b&&(0,i.jsx)(o.Z,{placement:"topLeft",defaultVisible:p,visible:p,destroyTooltipOnHide:!0,title:m,content:y,overlayInnerStyle:{borderRadius:"5px",cursor:"pointer",paddingTop:"10px",paddingRight:"10px",fontSize:"16px"},children:e})}},18668:function(t){t.exports={contentbutton:"NotifyReminderPopup_contentbutton__a_tsp",closebutton:"NotifyReminderPopup_closebutton__GVcP3",title:"NotifyReminderPopup_title__Dm9Iy"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/7735.df129ee8ae364d5e.js b/static/web/_next/static/chunks/7735.df129ee8ae364d5e.js new file mode 100644 index 000000000..a2351f8d8 --- /dev/null +++ b/static/web/_next/static/chunks/7735.df129ee8ae364d5e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7735],{57735:function(t,e,n){"use strict";n.r(e),n.d(e,{NotifyReminderPopup:function(){return p}});var o=n(85893),i=n(55241),s=n(97937),c=n(67294),u=n(18668),r=n.n(u),p=function(t){var e=t.children,n=t.open,u=t.notificationClicked,p=t.notificationClosed,a=(0,c.useState)(n),d=a[0],l=a[1],f=(0,c.useState)(!1),_=f[0],b=f[1];(0,c.useEffect)((function(){l(n)}),[n]),(0,c.useEffect)((function(){b(!0)}),[]);var m=(0,o.jsx)("div",{className:r().title,children:"Stay updated!"}),x=function(t){t.stopPropagation(),u()},y=(0,o.jsxs)("div",{onClick:x,onKeyDown:x,role:"menuitem",tabIndex:0,children:[(0,o.jsx)("button",{type:"button",className:r().closebutton,onClick:function(t){t.stopPropagation(),l(!1),p()},children:(0,o.jsx)(s.Z,{})}),(0,o.jsxs)("div",{className:r().contentbutton,children:["Click and never miss",(0,o.jsx)("br",{}),"future streams!"]})]});return _&&(0,o.jsx)(i.Z,{placement:"topLeft",defaultOpen:d,open:d,destroyTooltipOnHide:!0,title:m,content:y,overlayInnerStyle:{borderRadius:"5px",cursor:"pointer",paddingTop:"10px",paddingRight:"10px",fontSize:"16px"},children:e})}},18668:function(t){t.exports={contentbutton:"NotifyReminderPopup_contentbutton__a_tsp",closebutton:"NotifyReminderPopup_closebutton__GVcP3",title:"NotifyReminderPopup_title__Dm9Iy"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/7781.c2410185d16b1336.js b/static/web/_next/static/chunks/7781.c2410185d16b1336.js deleted file mode 100644 index 824d8b168..000000000 --- a/static/web/_next/static/chunks/7781.c2410185d16b1336.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7781],{87781:function(e,n,t){"use strict";t.r(n),t.d(n,{ChatModerationActionMenu:function(){return H}});var r=t(47568),s=t(70655),a=t(85893),o=t(11475),i=t(90420),c=t(18429),l=t(64942),u=t(85402),d=t(12461),h=t(66516),f=t(38504),p=t(26713),x=t(67294),j=t(32365),g=t(54907),m=t(25968),v=t(6226),y=t(71577),_=t(11382),Z=t(20550),b=t(93626),C=t(58091),k=t(48689),w=t(51438),M=function(){function e(){(0,w.Z)(this,e)}return e.removeMessage=function(e,n){return(0,r.Z)((function(){var t,r,a;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return(t=new URL("/api/chat/messagevisibility",window.location.toString())).searchParams.append("accessToken",n),r=t.toString(),a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idArray:[e]})},[4,fetch(r,a)];case 1:return s.sent(),[2]}}))}))()},e.banUser=function(e,n){return(0,r.Z)((function(){var t,r,a;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return(t=new URL("/api/chat/users/setenabled",window.location.toString())).searchParams.append("accessToken",n),r=t.toString(),a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})},[4,fetch(r,a)];case 1:return s.sent(),[2]}}))}))()},e}(),S=t(62638),A=t.n(S),P=t(2766),N=g.Z.Panel,D=function(){var e=(0,r.Z)((function(e,n){return(0,s.__generator)(this,(function(t){try{M.removeMessage(e,n)}catch(r){console.error(r)}return[2]}))}));return function(n,t){return e.apply(this,arguments)}}(),O=function(e){var n=e.label,t=e.value;return(0,a.jsxs)(m.Z,{justify:"space-around",align:"middle",children:[(0,a.jsx)(v.Z,{span:12,children:n}),(0,a.jsx)(v.Z,{span:12,children:t})]})},T=function(e){var n=e.client,t=n.messageCount,r=n.connectedAt,s=n.geo,o=(0,C.Z)(new Date(r),"PP pp");return(0,a.jsxs)("div",{children:[(0,a.jsx)(O,{label:"Messages Sent",value:"".concat(t)}),"N/A"!==s&&(0,a.jsx)(O,{label:"Geo",value:s}),(0,a.jsx)(O,{label:"Connected At",value:o})]})},I=function(e){var n=e.color,t="var(--theme-color-users-".concat(n,")");return(0,a.jsxs)("div",{className:A().colorBlock,style:{backgroundColor:t},children:["Color ",n]})},B=function(e){var n=e.userId,t=e.accessToken,o=(0,x.useState)(null),i=o[0],c=o[1],l=(0,x.useState)(!0),u=l[0],d=l[1],h=function(){var e=(0,r.Z)((function(){var e,r;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),[4,fetch("/api/moderation/chat/user/".concat(n,"?accessToken=").concat(t))];case 1:return[4,s.sent().json()];case 2:return e=s.sent(),c(e),d(!1),[3,4];case 3:return r=s.sent(),console.error(r),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();if((0,x.useEffect)((function(){h()}),[]),!i)return null;var f=i.user,p=i.connectedClients,j=i.messages,m=f.displayColor,v=f.createdAt,w=f.previousNames,M=f.scopes,S=f.isBot,A=f.authenticated,B=p.reduce((function(e,n){return e+n.messageCount}),0),U=(0,C.Z)(new Date(v),"PP pp"),z=[{title:"Message",dataIndex:"body",key:"body"},{title:"Sent At",dataIndex:"timestamp",key:"timestamp",render:function(e){return(0,C.Z)(new Date(e),"PP pp")}},{title:"Delete",key:"delete",render:function(e,n){return(0,a.jsx)(y.Z,{type:"primary",ghost:!0,icon:(0,a.jsx)(k.Z,{}),onClick:function(){return D(n.id,t)}})}}];return(0,a.jsxs)(_.Z,{spinning:u,children:[(0,a.jsx)(I,{color:m}),M.map((function(e){return(0,a.jsx)(Z.Z,{children:e},e)})),A&&(0,a.jsx)(Z.Z,{children:"Authenticated"}),S&&(0,a.jsx)(Z.Z,{children:"Bot"}),(0,a.jsx)(O,{label:"Messages Sent Across Clients",value:B.toString()}),(0,a.jsx)(O,{label:"User Created",value:U}),(0,a.jsx)(O,{label:"Known As",value:w.join(",")}),(0,a.jsxs)(g.Z,{accordion:!0,children:[(0,a.jsx)(N,{header:"Currently Connected Clients",children:(0,a.jsx)(g.Z,{accordion:!0,children:p.map((function(e){return(0,a.jsx)(N,{header:(0,P.AB)(e.userAgent),children:(0,a.jsx)(T,{client:e})},e.userAgent)}))})},"connected-clients"),(0,a.jsx)(g.Z,{accordion:!0,children:(0,a.jsx)(N,{header:"Recent Chat Messages",children:(0,a.jsx)(b.Z,{size:"small",pagination:null,columns:z,dataSource:j})},"chat-messages")})]})]})},U=t(31833),z=t.n(U),F=u.Z.confirm,H=function(e){var n=e.messageID,t=e.userID,u=e.userDisplayName,g=e.accessToken,m=(0,x.useState)(!1),v=m[0],y=m[1],_=function(){var e=(0,r.Z)((function(){var e;return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,M.banUser(t,g)];case 1:return n.sent(),[3,3];case 2:return e=n.sent(),console.error(e),d.ZP.error(e),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=(0,r.Z)((function(){var e;return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,M.removeMessage(n,g)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),console.error(e),d.ZP.error(e),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),b=function(){var e=(0,r.Z)((function(){return(0,s.__generator)(this,(function(e){return F({icon:(0,a.jsx)(o.Z,{}),content:"Are you sure you want to remove this message from ".concat(u,"?"),onOk:function(){Z()}}),[2]}))}));return function(){return e.apply(this,arguments)}}(),C=function(){var e=(0,r.Z)((function(){return(0,s.__generator)(this,(function(e){return F({icon:(0,a.jsx)(o.Z,{}),content:"Are you sure you want to ban ".concat(u," from chat?"),onOk:function(){_()}}),[2]}))}));return function(){return e.apply(this,arguments)}}(),k=(0,a.jsx)(h.Z,{onClick:function(e){var n=e.key;"hide-message"===n?b():"ban-user"===n?C():"more-info"===n&&y(!0)},items:[{label:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:z().icon,children:(0,a.jsx)(i.Z,{})}),"Hide Message"]}),key:"hide-message"},{label:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:z().icon,children:(0,a.jsx)(c.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)(f.Z,{overlay:k,trigger:["click"],children:(0,a.jsx)("button",{type:"button",onClick:function(e){return e.preventDefault()},children:(0,a.jsx)(p.Z,{children:(0,a.jsx)(l.Z,{})})})}),(0,a.jsx)(j.Modal,{title:u,visible:v,handleCancel:function(){y(!1)},children:(0,a.jsx)(B,{userId:t,accessToken:g})})]})}},32365:function(e,n,t){"use strict";t.r(n),t.d(n,{Modal:function(){return u}});var r=t(85893),s=t(85402),a=t(26303),o=t(11382),i=t(67294),c=t(78890),l=t.n(c),u=function(e){var n=e.title,t=e.url,c=e.visible,u=e.handleOk,d=e.handleCancel,h=e.afterClose,f=e.height,p=e.width,x=e.children,j=(0,i.useState)(!!t),g=j[0],m=j[1],v={padding:"0px",minHeight:f},y=t&&(0,r.jsx)("iframe",{title:n,src:t,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,onLoad:function(){return m(!1)}}),_=g?"none":"inline";return(0,r.jsx)(s.Z,{title:n,visible:c,onOk:u,onCancel:d,afterClose:h,bodyStyle:v,width:p,zIndex:9999,footer:null,centered:!0,destroyOnClose:!0,children:(0,r.jsxs)(r.Fragment,{children:[g&&(0,r.jsx)(a.Z,{active:g,style:{padding:"10px"},paragraph:{rows:10}}),y&&(0,r.jsx)("div",{style:{display:_},children:y}),x&&(0,r.jsx)("div",{className:l().content,children:x}),g&&(0,r.jsx)(o.Z,{className:l().spinner,spinning:g,size:"large"})]})})};n.default=u,u.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0,height:"40vh",width:"70%"}},31833:function(e){e.exports={icon:"ChatModerationActionMenu_icon__9j6DF"}},62638:function(e){e.exports={modalContainer:"ChatModerationDetailsModal_modalContainer__czndV",chatHistory:"ChatModerationDetailsModal_chatHistory__PunRk",colorBlock:"ChatModerationDetailsModal_colorBlock___rAlw",displayName:"ChatModerationDetailsModal_displayName__p7pLI"}},78890:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/7781.f2e7d91aa07a4804.js b/static/web/_next/static/chunks/7781.f2e7d91aa07a4804.js new file mode 100644 index 000000000..628851033 --- /dev/null +++ b/static/web/_next/static/chunks/7781.f2e7d91aa07a4804.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7781],{87781:function(e,n,t){"use strict";t.r(n),t.d(n,{ChatModerationActionMenu:function(){return H}});var r=t(47568),s=t(70655),o=t(85893),a=t(11475),i=t(90420),c=t(18429),l=t(64942),u=t(85402),d=t(12461),h=t(66516),f=t(38504),p=t(26713),x=t(67294),j=t(32365),g=t(54907),m=t(25968),v=t(6226),y=t(71577),_=t(11382),Z=t(20550),C=t(93626),b=t(58091),k=t(48689),w=t(51438),M=function(){function e(){(0,w.Z)(this,e)}return e.removeMessage=function(e,n){return(0,r.Z)((function(){var t,r,o;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return(t=new URL("/api/chat/messagevisibility",window.location.toString())).searchParams.append("accessToken",n),r=t.toString(),o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idArray:[e]})},[4,fetch(r,o)];case 1:return s.sent(),[2]}}))}))()},e.banUser=function(e,n){return(0,r.Z)((function(){var t,r,o;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return(t=new URL("/api/chat/users/setenabled",window.location.toString())).searchParams.append("accessToken",n),r=t.toString(),o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})},[4,fetch(r,o)];case 1:return s.sent(),[2]}}))}))()},e}(),S=t(62638),A=t.n(S),P=t(2766),N=g.Z.Panel,D=function(){var e=(0,r.Z)((function(e,n){return(0,s.__generator)(this,(function(t){try{M.removeMessage(e,n)}catch(r){console.error(r)}return[2]}))}));return function(n,t){return e.apply(this,arguments)}}(),O=function(e){var n=e.label,t=e.value;return(0,o.jsxs)(m.Z,{justify:"space-around",align:"middle",children:[(0,o.jsx)(v.Z,{span:12,children:n}),(0,o.jsx)(v.Z,{span:12,children:t})]})},T=function(e){var n=e.client,t=n.messageCount,r=n.connectedAt,s=n.geo,a=(0,b.Z)(new Date(r),"PP pp");return(0,o.jsxs)("div",{children:[(0,o.jsx)(O,{label:"Messages Sent",value:"".concat(t)}),"N/A"!==s&&(0,o.jsx)(O,{label:"Geo",value:s}),(0,o.jsx)(O,{label:"Connected At",value:a})]})},I=function(e){var n=e.color,t="var(--theme-color-users-".concat(n,")");return(0,o.jsxs)("div",{className:A().colorBlock,style:{backgroundColor:t},children:["Color ",n]})},B=function(e){var n=e.userId,t=e.accessToken,a=(0,x.useState)(null),i=a[0],c=a[1],l=(0,x.useState)(!0),u=l[0],d=l[1],h=function(){var e=(0,r.Z)((function(){var e,r;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),[4,fetch("/api/moderation/chat/user/".concat(n,"?accessToken=").concat(t))];case 1:return[4,s.sent().json()];case 2:return e=s.sent(),c(e),d(!1),[3,4];case 3:return r=s.sent(),console.error(r),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();if((0,x.useEffect)((function(){h()}),[]),!i)return null;var f=i.user,p=i.connectedClients,j=i.messages,m=f.displayColor,v=f.createdAt,w=f.previousNames,M=f.scopes,S=f.isBot,A=f.authenticated,B=p.reduce((function(e,n){return e+n.messageCount}),0),U=(0,b.Z)(new Date(v),"PP pp"),z=[{title:"Message",dataIndex:"body",key:"body"},{title:"Sent At",dataIndex:"timestamp",key:"timestamp",render:function(e){return(0,b.Z)(new Date(e),"PP pp")}},{title:"Delete",key:"delete",render:function(e,n){return(0,o.jsx)(y.Z,{type:"primary",ghost:!0,icon:(0,o.jsx)(k.Z,{}),onClick:function(){return D(n.id,t)}})}}];return(0,o.jsxs)(_.Z,{spinning:u,children:[(0,o.jsx)(I,{color:m}),M.map((function(e){return(0,o.jsx)(Z.Z,{children:e},e)})),A&&(0,o.jsx)(Z.Z,{children:"Authenticated"}),S&&(0,o.jsx)(Z.Z,{children:"Bot"}),(0,o.jsx)(O,{label:"Messages Sent Across Clients",value:B.toString()}),(0,o.jsx)(O,{label:"User Created",value:U}),(0,o.jsx)(O,{label:"Known As",value:w.join(",")}),(0,o.jsxs)(g.Z,{accordion:!0,children:[(0,o.jsx)(N,{header:"Currently Connected Clients",children:(0,o.jsx)(g.Z,{accordion:!0,children:p.map((function(e){return(0,o.jsx)(N,{header:(0,P.AB)(e.userAgent),children:(0,o.jsx)(T,{client:e})},e.userAgent)}))})},"connected-clients"),(0,o.jsx)(g.Z,{accordion:!0,children:(0,o.jsx)(N,{header:"Recent Chat Messages",children:(0,o.jsx)(C.Z,{size:"small",pagination:null,columns:z,dataSource:j})},"chat-messages")})]})]})},U=t(31833),z=t.n(U),F=u.Z.confirm,H=function(e){var n=e.messageID,t=e.userID,u=e.userDisplayName,g=e.accessToken,m=(0,x.useState)(!1),v=m[0],y=m[1],_=function(){var e=(0,r.Z)((function(){var e;return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,M.banUser(t,g)];case 1:return n.sent(),[3,3];case 2:return e=n.sent(),console.error(e),d.ZP.error(e),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=(0,r.Z)((function(){var e;return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,M.removeMessage(n,g)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),console.error(e),d.ZP.error(e),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),C=function(){var e=(0,r.Z)((function(){return(0,s.__generator)(this,(function(e){return F({icon:(0,o.jsx)(a.Z,{}),content:"Are you sure you want to remove this message from ".concat(u,"?"),onOk:function(){Z()}}),[2]}))}));return function(){return e.apply(this,arguments)}}(),b=function(){var e=(0,r.Z)((function(){return(0,s.__generator)(this,(function(e){return F({icon:(0,o.jsx)(a.Z,{}),content:"Are you sure you want to ban ".concat(u," from chat?"),onOk:function(){_()}}),[2]}))}));return function(){return e.apply(this,arguments)}}(),k=(0,o.jsx)(h.Z,{onClick:function(e){var n=e.key;"hide-message"===n?C():"ban-user"===n?b():"more-info"===n&&y(!0)},items:[{label:(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:z().icon,children:(0,o.jsx)(i.Z,{})}),"Hide Message"]}),key:"hide-message"},{label:(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:z().icon,children:(0,o.jsx)(c.Z,{})}),"Ban User"]}),key:"ban-user"},{label:(0,o.jsx)("div",{children:"More Info..."}),key:"more-info"}]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.Z,{overlay:k,trigger:["click"],children:(0,o.jsx)("button",{type:"button",onClick:function(e){return e.preventDefault()},children:(0,o.jsx)(p.Z,{children:(0,o.jsx)(l.Z,{})})})}),(0,o.jsx)(j.Modal,{title:u,open:v,handleCancel:function(){y(!1)},children:(0,o.jsx)(B,{userId:t,accessToken:g})})]})}},32365:function(e,n,t){"use strict";t.r(n),t.d(n,{Modal:function(){return u}});var r=t(85893),s=t(85402),o=t(26303),a=t(11382),i=t(67294),c=t(78890),l=t.n(c),u=function(e){var n=e.title,t=e.url,c=e.open,u=e.handleOk,d=e.handleCancel,h=e.afterClose,f=e.height,p=e.width,x=e.children,j=(0,i.useState)(!!t),g=j[0],m=j[1],v={padding:"0px",minHeight:f},y=t&&(0,r.jsx)("iframe",{title:n,src:t,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,onLoad:function(){return m(!1)}}),_=g?"none":"inline";return(0,r.jsx)(s.Z,{title:n,open:c,onOk:u,onCancel:d,afterClose:h,bodyStyle:v,width:p,zIndex:9999,footer:null,centered:!0,destroyOnClose:!0,children:(0,r.jsxs)(r.Fragment,{children:[g&&(0,r.jsx)(o.Z,{active:g,style:{padding:"10px"},paragraph:{rows:10}}),y&&(0,r.jsx)("div",{style:{display:_},children:y}),x&&(0,r.jsx)("div",{className:l().content,children:x}),g&&(0,r.jsx)(a.Z,{className:l().spinner,spinning:g,size:"large"})]})})};n.default=u,u.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0,height:"40vh",width:"70%"}},31833:function(e){e.exports={icon:"ChatModerationActionMenu_icon__9j6DF"}},62638:function(e){e.exports={modalContainer:"ChatModerationDetailsModal_modalContainer__czndV",chatHistory:"ChatModerationDetailsModal_chatHistory__PunRk",colorBlock:"ChatModerationDetailsModal_colorBlock___rAlw",displayName:"ChatModerationDetailsModal_displayName__p7pLI"}},78890:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/8763-3aa1a6c3e214b143.js b/static/web/_next/static/chunks/8763-3aa1a6c3e214b143.js new file mode 100644 index 000000000..1f793a44f --- /dev/null +++ b/static/web/_next/static/chunks/8763-3aa1a6c3e214b143.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8763],{28763:function(e,t,n){"use strict";n.r(t),n.d(t,{ChatContainer:function(){return ge}});var a=n(85893),s=n(9764),r=n(67294),o=n(36531),i=n(11622),c=n(13545),l=n.n(c),u=n(14924),d=n(86492),h=n.n(d),m=n(94184),g=n.n(m),p=n(94199),f=n(29158),x=n(4480),_=n(5152),C=n.n(_),v=n(78583),j=n.n(v);function y(e){var t=new Date(e);if(Number.isNaN(t))return"";if(function(e){var t="string"===typeof e?new Date(e):e;return(new Date-t)/864e5}(e)>=1){var n=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"at ".concat(n," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}var N,M,b,w,S,E=n(79010),T=n.n(E),k=function(e){var t=e.badge,n=e.userColor,s="var(--theme-user-colors-".concat(n,")"),r={color:s,borderColor:s};return(0,a.jsx)("span",{style:r,className:T().badge,children:t})},B=n(1899),D=C()((function(){return Promise.all([n.e(8939),n.e(3903),n.e(3698),n.e(3626),n.e(8091),n.e(1300),n.e(7781)]).then(n.bind(n,87781)).then((function(e){return e.ChatModerationActionMenu}))}),{loadableGenerated:{webpack:function(){return[87781]}}}),O=C()((function(){return Promise.resolve().then(n.bind(n,47049)).then((function(e){return e.Highlight}))}),{loadableGenerated:{webpack:function(){return[47049]}}}),U=function(e){var t=e.message,n=e.highlightString,s=e.showModeratorMenu,o=e.sentBySelf,i=e.sameUserAsLast,c=e.isAuthorModerator,l=e.isAuthorAuthenticated,d=t.id,m=t.body,_=t.user,C=t.timestamp,v=_.id,N=_.displayName,M=_.displayColor,b=(0,x.sJ)(B.FI),w="var(--theme-color-users-".concat(M,")"),S="Sent ".concat(y(C)),E=(0,r.useState)(m),T=E[0],U=E[1],A=[];return c&&A.push((0,a.jsx)(k,{badge:"mod",userColor:M},"mod")),l&&A.push((0,a.jsx)(k,{badge:(0,a.jsx)(f.Z,{title:"authenticated"}),userColor:M},"auth")),(0,r.useEffect)((function(){U(h().decode(m))}),[t]),(0,a.jsx)("div",{className:g()(j().messagePadding,i&&j().messagePaddingCollapsed),children:(0,a.jsxs)("div",{className:g()(j().root,(0,u.Z)({},j().ownMessage,o)),style:{borderColor:w},children:[!i&&(0,a.jsx)(p.Z,{title:"user info goes here",placement:"topLeft",mouseEnterDelay:1,children:(0,a.jsxs)("div",{className:j().user,style:{color:w},children:[(0,a.jsx)("span",{className:j().userName,children:N}),(0,a.jsx)("span",{children:A})]})}),(0,a.jsx)(p.Z,{title:S,mouseEnterDelay:1,children:(0,a.jsx)(O,{search:n,children:(0,a.jsx)("div",{className:j().message,dangerouslySetInnerHTML:{__html:T}})})}),s&&(0,a.jsx)("div",{className:j().modMenuWrapper,children:(0,a.jsx)(D,{messageID:d,accessToken:b,userID:v,userDisplayName:N})}),(0,a.jsx)("div",{className:j().background,style:{color:w}})]})})},A=n(26042),F=n(69396),I=n(828),R=n(93045),Z=n(27496),L=n(55241),H=n(77493),P=n(96391),W=n(25882),G=n.n(W),V=C()((function(){return Promise.all([n.e(7741),n.e(786)]).then(n.bind(n,30786)).then((function(e){return e.EmojiPicker}))}),{loadableGenerated:{webpack:function(){return[30786]}}}),Y=function(e){var t=e.attributes,n=e.element,s=e.children,r=(0,P.vt)(),o=(0,P.UE)();return(0,a.jsxs)("span",(0,F.Z)((0,A.Z)({},t),{contentEditable:!1,children:[(0,a.jsx)("img",{alt:n.alt,src:n.src,title:n.name,style:{display:"inline",maxWidth:"50px",maxHeight:"20px",boxShadow:"".concat(r&&o?"0 0 0 3px #B4D5FF":"none")}}),s]}))},J=function(e){var t,n;if(H.xv.isText(e))return e.text;0===e.children.length?t=[{text:""}]:t=null===(n=e.children)||void 0===n?void 0:n.map((function(e){return J(e)})).join("");switch(e.type){case"paragraph":return"

".concat(t,"

");case"image":return'').concat(e.alt,'');default:return t}},z=function(e){if(H.xv.isText(e))return e.text.length;if("image"===e.type)return 5;var t=0;return e.children.forEach((function(e){t+=z(e)})),t},X=function(e){var t=e.defaultText,n=(0,r.useState)(!1),s=n[0],o=n[1],c=(0,r.useState)(null===t||void 0===t?void 0:t.length),l=c[0],u=c[1],d=(0,x.sJ)(B.Gt),h=(0,r.useMemo)((function(){return(0,P.BU)(function(e){var t=e.isVoid;return e.isVoid=function(e){return"image"===e.type||t(e)},e.isInline=function(e){return"image"===e.type},e}((0,H.Jh)()))}),[]),m=[{type:"paragraph",children:[{text:t||""}]}],p=function(){if(d){var e=J(h);d.send({type:i.C.CHAT,body:e}),H.YR.delete(h,{at:{anchor:H.ML.start(h,[]),focus:H.ML.end(h,[])}}),u(0)}else console.log("websocketService is not defined")};return(0,a.jsx)("div",{className:G().root,children:(0,a.jsxs)("div",{className:g()(G().inputWrap,l>=300&&G().maxCharacters),children:[(0,a.jsxs)(P.mH,{editor:h,value:m,children:[(0,a.jsx)(P.CX,{onKeyDown:function(e){var t=z(h)+1;if("Enter"===e.key)return e.preventDefault(),void p();"Backspace"!==e.key?(t+1>300&&e.preventDefault(),u(t+1)):u(t-1)},onPaste:function(e){var t=e.clipboardData.getData("text/plain").length;l+t>300&&e.preventDefault()},renderElement:function(e){return"image"===e.element.type?(0,a.jsx)(Y,(0,A.Z)({},e)):(0,a.jsx)("p",(0,A.Z)({},e))},placeholder:"Chat message goes here...",style:{width:"100%"},autoFocus:!0}),(0,a.jsx)(L.Z,{content:(0,a.jsx)(V,{onEmojiSelect:function(e){P.F3.focus(h),H.YR.insertText(h,e)},onCustomEmojiSelect:function(e,t){P.F3.focus(h),function(e,t){if(e){var n=h.selection,a=function(e,t,n){return{type:"image",alt:e,src:t,name:n,children:[{text:""}]}}(t,e,t);if(H.YR.insertNodes(h,a,{select:!0}),n){var s,r=(0,I.Z)(H.ML.parent(h,null===(s=n.focus)||void 0===s?void 0:s.path),2),o=r[0],i=r[1];h.isVoid(o)||H.NB.string(o).length?H.YR.insertNodes(h,a,{at:H.y$.next(i),select:!0}):(H.YR.insertNodes(h,a,{at:i,select:!0}),H.ML.normalize(h,{force:!0}))}else H.YR.insertNodes(h,a,{select:!0})}}(t,e)}}),trigger:"click",onOpenChange:function(e){return o(e)},open:s})]}),(0,a.jsxs)("div",{style:{display:"flex",paddingLeft:"5px"},children:[(0,a.jsx)("button",{type:"button",className:G().emojiButton,title:"Emoji picker button",onClick:function(){return o(!s)},children:(0,a.jsx)(R.Z,{})}),(0,a.jsx)("button",{type:"button",className:G().sendButton,title:"Send message Button",onClick:p,children:(0,a.jsx)(Z.Z,{})})]})]})})},q=n(93174),K=n.n(q);function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t12e4)&&a===(null===s||void 0===s?void 0:s.user.id)}function me(e){var t=e.user.scopes;return!(!t||0===t.length)&&t.includes("MODERATOR")}var ge=function(e){var t=e.messages,n=e.usernameToHighlight,c=e.chatUserId,u=e.isModerator,d=e.showInput,h=e.height,m=(0,r.useState)(!1),g=m[0],p=m[1],f=(0,r.useRef)(null),x=function(e,s){switch(s.type){case i.C.CHAT:var r,d,h;return(0,a.jsx)(U,{message:s,showModeratorMenu:u,highlightString:n,sentBySelf:(null===(r=s.user)||void 0===r?void 0:r.id)===c,sameUserAsLast:he(t,e),isAuthorModerator:null===(d=s.user.scopes)||void 0===d?void 0:d.includes("MODERATOR"),isAuthorAuthenticated:null===(h=s.user)||void 0===h?void 0:h.authenticated},s.id);case i.C.NAME_CHANGE:return function(e){var t=e.oldName,n=e.user,s=n.displayName,r=n.displayColor,i="var(--theme-color-users-".concat(r,")");return(0,a.jsxs)("div",{className:l().nameChangeView,children:[(0,a.jsx)("div",{style:{marginRight:5,height:"max-content",margin:"auto 5px auto 0"},children:(0,a.jsx)(o.Z,{})}),(0,a.jsxs)("div",{className:l().nameChangeText,children:[(0,a.jsx)("span",{style:{color:i},children:t}),(0,a.jsx)("span",{className:l().plain,children:" is now known as "}),(0,a.jsx)("span",{style:{color:i},children:s})]})]})}(s);case i.C.CONNECTED_USER_INFO:return function(e){if(!me(e))return(0,a.jsx)("div",{style:{width:"1px",height:"1px"}});return(0,a.jsx)(ee,{})}(s);case i.C.USER_JOINED:return function(e){var t=e.user,n=t.displayName,s=t.displayColor,r=me(e);return(0,a.jsx)(ce,{displayName:n,userColor:s,isAuthorModerator:r})}(s);case i.C.SYSTEM:return(0,a.jsx)(se,{message:s,highlightString:n},s.id);default:return null}},_=(0,r.useMemo)((function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.OO,{style:{height:h},className:l().virtuoso,ref:f,initialTopMostItemIndex:t.length-1,data:t,itemContent:function(e,t){return x(e,t)},followOutput:"auto",alignToBottom:!0,atBottomStateChange:function(e){return p(e)}}),!g&&(0,a.jsx)(de,{chatContainerRef:f,messages:t})]})}),[t,n,c,u,g]);return(0,a.jsxs)("div",{className:l().chatContainer,children:[_,d&&(0,a.jsx)(X,{})]})};ge.defaultProps={showInput:!0,height:"auto"}},13545:function(e){e.exports={chatHeader:"ChatContainer_chatHeader__EJsYI",toBottomWrap:"ChatContainer_toBottomWrap__3V5wa",toBottomBtn:"ChatContainer_toBottomBtn__453AG",nameChangeView:"ChatContainer_nameChangeView__ziyXN",nameChangeText:"ChatContainer_nameChangeText__yXG__",plain:"ChatContainer_plain__IPS19",chatContainer:"ChatContainer_chatContainer__O2lYN",virtuoso:"ChatContainer_virtuoso__OS9Kz"}},83066:function(e){e.exports={root:"ChatJoinMessage_root__vuVXa"}},93174:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},31681:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},25882:function(e){e.exports={root:"ChatTextField_root__4oUkJ",inputWrap:"ChatTextField_inputWrap__1mAjD",maxCharacters:"ChatTextField_maxCharacters__yGT4s",emojiButton:"ChatTextField_emojiButton__ON_Cu",sendButton:"ChatTextField_sendButton__MOmD4"}},79010:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},78583:function(e){e.exports={root:"ChatUserMessage_root__79heB",user:"ChatUserMessage_user__xUEp9",message:"ChatUserMessage_message__MJ9LD",ownMessage:"ChatUserMessage_ownMessage__d28A3",background:"ChatUserMessage_background__Tfghp",modMenuWrapper:"ChatUserMessage_modMenuWrapper__7fblv",messagePadding:"ChatUserMessage_messagePadding__Xp1F6",messagePaddingCollapsed:"ChatUserMessage_messagePaddingCollapsed__qxN0E"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/8763-9490625166d46d87.js b/static/web/_next/static/chunks/8763-9490625166d46d87.js deleted file mode 100644 index 5f1c4d672..000000000 --- a/static/web/_next/static/chunks/8763-9490625166d46d87.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8763],{28763:function(e,t,n){"use strict";n.r(t),n.d(t,{ChatContainer:function(){return ge}});var a=n(85893),s=n(9764),r=n(67294),o=n(36531),i=n(11622),c=n(13545),l=n.n(c),u=n(14924),d=n(86492),h=n.n(d),m=n(94184),g=n.n(m),p=n(94199),f=n(29158),x=n(4480),_=n(5152),v=n.n(_),C=n(78583),j=n.n(C);function y(e){var t=new Date(e);if(Number.isNaN(t))return"";if(function(e){var t="string"===typeof e?new Date(e):e;return(new Date-t)/864e5}(e)>=1){var n=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"at ".concat(n," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}var N,M,b,w,S,E=n(79010),T=n.n(E),k=function(e){var t=e.badge,n=e.userColor,s="var(--theme-user-colors-".concat(n,")"),r={color:s,borderColor:s};return(0,a.jsx)("span",{style:r,className:T().badge,children:t})},B=n(1899),D=v()((function(){return Promise.all([n.e(8939),n.e(3903),n.e(3698),n.e(3626),n.e(8091),n.e(1300),n.e(7781)]).then(n.bind(n,87781)).then((function(e){return e.ChatModerationActionMenu}))}),{loadableGenerated:{webpack:function(){return[87781]}}}),U=v()((function(){return Promise.resolve().then(n.bind(n,47049)).then((function(e){return e.Highlight}))}),{loadableGenerated:{webpack:function(){return[47049]}}}),A=function(e){var t=e.message,n=e.highlightString,s=e.showModeratorMenu,o=e.sentBySelf,i=e.sameUserAsLast,c=e.isAuthorModerator,l=e.isAuthorAuthenticated,d=t.id,m=t.body,_=t.user,v=t.timestamp,C=_.id,N=_.displayName,M=_.displayColor,b=(0,x.sJ)(B.FI),w="var(--theme-color-users-".concat(M,")"),S="Sent ".concat(y(v)),E=(0,r.useState)(m),T=E[0],A=E[1],O=[];return c&&O.push((0,a.jsx)(k,{badge:"mod",userColor:M},"mod")),l&&O.push((0,a.jsx)(k,{badge:(0,a.jsx)(f.Z,{title:"authenticated"}),userColor:M},"auth")),(0,r.useEffect)((function(){A(h().decode(m))}),[t]),(0,a.jsx)("div",{className:g()(j().messagePadding,i&&j().messagePaddingCollapsed),children:(0,a.jsxs)("div",{className:g()(j().root,(0,u.Z)({},j().ownMessage,o)),style:{borderColor:w},children:[!i&&(0,a.jsx)(p.Z,{title:"user info goes here",placement:"topLeft",mouseEnterDelay:1,children:(0,a.jsxs)("div",{className:j().user,style:{color:w},children:[(0,a.jsx)("span",{className:j().userName,children:N}),(0,a.jsx)("span",{children:O})]})}),(0,a.jsx)(p.Z,{title:S,mouseEnterDelay:1,children:(0,a.jsx)(U,{search:n,children:(0,a.jsx)("div",{className:j().message,dangerouslySetInnerHTML:{__html:T}})})}),s&&(0,a.jsx)("div",{className:j().modMenuWrapper,children:(0,a.jsx)(D,{messageID:d,accessToken:b,userID:C,userDisplayName:N})}),(0,a.jsx)("div",{className:j().background,style:{color:w}})]})})},O=n(26042),F=n(69396),I=n(828),R=n(93045),Z=n(27496),L=n(55241),H=n(77493),P=n(96391),W=n(25882),G=n.n(W),V=v()((function(){return Promise.all([n.e(7741),n.e(786)]).then(n.bind(n,30786)).then((function(e){return e.EmojiPicker}))}),{loadableGenerated:{webpack:function(){return[30786]}}}),Y=function(e){var t=e.attributes,n=e.element,s=e.children,r=(0,P.vt)(),o=(0,P.UE)();return(0,a.jsxs)("span",(0,F.Z)((0,O.Z)({},t),{contentEditable:!1,children:[(0,a.jsx)("img",{alt:n.alt,src:n.src,title:n.name,style:{display:"inline",maxWidth:"50px",maxHeight:"20px",boxShadow:"".concat(r&&o?"0 0 0 3px #B4D5FF":"none")}}),s]}))},J=function(e){var t,n;if(H.xv.isText(e))return e.text;0===e.children.length?t=[{text:""}]:t=null===(n=e.children)||void 0===n?void 0:n.map((function(e){return J(e)})).join("");switch(e.type){case"paragraph":return"

".concat(t,"

");case"image":return'').concat(e.alt,'');default:return t}},z=function(e){if(H.xv.isText(e))return e.text.length;if("image"===e.type)return 5;var t=0;return e.children.forEach((function(e){t+=z(e)})),t},X=function(e){var t=e.defaultText,n=(0,r.useState)(!1),s=n[0],o=n[1],c=(0,r.useState)(null===t||void 0===t?void 0:t.length),l=c[0],u=c[1],d=(0,x.sJ)(B.Gt),h=(0,r.useMemo)((function(){return(0,P.BU)(function(e){var t=e.isVoid;return e.isVoid=function(e){return"image"===e.type||t(e)},e.isInline=function(e){return"image"===e.type},e}((0,H.Jh)()))}),[]),m=[{type:"paragraph",children:[{text:t||""}]}],p=function(){if(d){var e=J(h);d.send({type:i.C.CHAT,body:e}),H.YR.delete(h,{at:{anchor:H.ML.start(h,[]),focus:H.ML.end(h,[])}}),u(0)}else console.log("websocketService is not defined")};return(0,a.jsx)("div",{className:G().root,children:(0,a.jsxs)("div",{className:g()(G().inputWrap,l>=300&&G().maxCharacters),children:[(0,a.jsxs)(P.mH,{editor:h,value:m,children:[(0,a.jsx)(P.CX,{onKeyDown:function(e){var t=z(h)+1;if("Enter"===e.key)return e.preventDefault(),void p();"Backspace"!==e.key?(t+1>300&&e.preventDefault(),u(t+1)):u(t-1)},onPaste:function(e){var t=e.clipboardData.getData("text/plain").length;l+t>300&&e.preventDefault()},renderElement:function(e){return"image"===e.element.type?(0,a.jsx)(Y,(0,O.Z)({},e)):(0,a.jsx)("p",(0,O.Z)({},e))},placeholder:"Chat message goes here...",style:{width:"100%"},autoFocus:!0}),(0,a.jsx)(L.Z,{content:(0,a.jsx)(V,{onEmojiSelect:function(e){P.F3.focus(h),H.YR.insertText(h,e)},onCustomEmojiSelect:function(e,t){P.F3.focus(h),function(e,t){if(e){var n=h.selection,a=function(e,t,n){return{type:"image",alt:e,src:t,name:n,children:[{text:""}]}}(t,e,t);if(H.YR.insertNodes(h,a,{select:!0}),n){var s,r=(0,I.Z)(H.ML.parent(h,null===(s=n.focus)||void 0===s?void 0:s.path),2),o=r[0],i=r[1];h.isVoid(o)||H.NB.string(o).length?H.YR.insertNodes(h,a,{at:H.y$.next(i),select:!0}):(H.YR.insertNodes(h,a,{at:i,select:!0}),H.ML.normalize(h,{force:!0}))}else H.YR.insertNodes(h,a,{select:!0})}}(t,e)}}),trigger:"click",onVisibleChange:function(e){return o(e)},visible:s})]}),(0,a.jsxs)("div",{style:{display:"flex",paddingLeft:"5px"},children:[(0,a.jsx)("button",{type:"button",className:G().emojiButton,title:"Emoji picker button",onClick:function(){return o(!s)},children:(0,a.jsx)(R.Z,{})}),(0,a.jsx)("button",{type:"button",className:G().sendButton,title:"Send message Button",onClick:p,children:(0,a.jsx)(Z.Z,{})})]})]})})},q=n(93174),K=n.n(q);function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t12e4)&&a===(null===s||void 0===s?void 0:s.user.id)}function me(e){var t=e.user.scopes;return!(!t||0===t.length)&&t.includes("MODERATOR")}var ge=function(e){var t=e.messages,n=e.usernameToHighlight,c=e.chatUserId,u=e.isModerator,d=e.showInput,h=e.height,m=(0,r.useState)(!1),g=m[0],p=m[1],f=(0,r.useRef)(null),x=function(e,s){switch(s.type){case i.C.CHAT:var r,d,h;return(0,a.jsx)(A,{message:s,showModeratorMenu:u,highlightString:n,sentBySelf:(null===(r=s.user)||void 0===r?void 0:r.id)===c,sameUserAsLast:he(t,e),isAuthorModerator:null===(d=s.user.scopes)||void 0===d?void 0:d.includes("MODERATOR"),isAuthorAuthenticated:null===(h=s.user)||void 0===h?void 0:h.authenticated},s.id);case i.C.NAME_CHANGE:return function(e){var t=e.oldName,n=e.user,s=n.displayName,r=n.displayColor,i="var(--theme-color-users-".concat(r,")");return(0,a.jsxs)("div",{className:l().nameChangeView,children:[(0,a.jsx)("div",{style:{marginRight:5,height:"max-content",margin:"auto 5px auto 0"},children:(0,a.jsx)(o.Z,{})}),(0,a.jsxs)("div",{className:l().nameChangeText,children:[(0,a.jsx)("span",{style:{color:i},children:t}),(0,a.jsx)("span",{className:l().plain,children:" is now known as "}),(0,a.jsx)("span",{style:{color:i},children:s})]})]})}(s);case i.C.CONNECTED_USER_INFO:return function(e){if(!me(e))return(0,a.jsx)("div",{style:{width:"1px",height:"1px"}});return(0,a.jsx)(ee,{})}(s);case i.C.USER_JOINED:return function(e){var t=e.user,n=t.displayName,s=t.displayColor,r=me(e);return(0,a.jsx)(ce,{displayName:n,userColor:s,isAuthorModerator:r})}(s);case i.C.SYSTEM:return(0,a.jsx)(se,{message:s,highlightString:n},s.id);default:return null}},_=(0,r.useMemo)((function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.OO,{style:{height:h},className:l().virtuoso,ref:f,initialTopMostItemIndex:t.length-1,data:t,itemContent:function(e,t){return x(e,t)},followOutput:"auto",alignToBottom:!0,atBottomStateChange:function(e){return p(e)}}),!g&&(0,a.jsx)(de,{chatContainerRef:f,messages:t})]})}),[t,n,c,u,g]);return(0,a.jsxs)("div",{className:l().chatContainer,children:[_,d&&(0,a.jsx)(X,{})]})};ge.defaultProps={showInput:!0,height:"auto"}},13545:function(e){e.exports={chatHeader:"ChatContainer_chatHeader__EJsYI",toBottomWrap:"ChatContainer_toBottomWrap__3V5wa",toBottomBtn:"ChatContainer_toBottomBtn__453AG",nameChangeView:"ChatContainer_nameChangeView__ziyXN",nameChangeText:"ChatContainer_nameChangeText__yXG__",plain:"ChatContainer_plain__IPS19",chatContainer:"ChatContainer_chatContainer__O2lYN",virtuoso:"ChatContainer_virtuoso__OS9Kz"}},83066:function(e){e.exports={root:"ChatJoinMessage_root__vuVXa"}},93174:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},31681:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},25882:function(e){e.exports={root:"ChatTextField_root__4oUkJ",inputWrap:"ChatTextField_inputWrap__1mAjD",maxCharacters:"ChatTextField_maxCharacters__yGT4s",emojiButton:"ChatTextField_emojiButton__ON_Cu",sendButton:"ChatTextField_sendButton__MOmD4"}},79010:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},78583:function(e){e.exports={root:"ChatUserMessage_root__79heB",user:"ChatUserMessage_user__xUEp9",message:"ChatUserMessage_message__MJ9LD",ownMessage:"ChatUserMessage_ownMessage__d28A3",background:"ChatUserMessage_background__Tfghp",modMenuWrapper:"ChatUserMessage_modMenuWrapper__7fblv",messagePadding:"ChatUserMessage_messagePadding__Xp1F6",messagePaddingCollapsed:"ChatUserMessage_messagePaddingCollapsed__qxN0E"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/embed/chat/readwrite-b54f76d80455488b.js b/static/web/_next/static/chunks/pages/embed/chat/readwrite-b54f76d80455488b.js new file mode 100644 index 000000000..43572c49f --- /dev/null +++ b/static/web/_next/static/chunks/pages/embed/chat/readwrite-b54f76d80455488b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[955],{94149:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var r=t(1413),o=t(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},a=t(42135),c=function(e,n){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:i}))};c.displayName="LockOutlined";var l=o.forwardRef(c)},87547:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var r=t(1413),o=t(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},a=t(42135),c=function(e,n){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:i}))};c.displayName="UserOutlined";var l=o.forwardRef(c)},20550:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(4942),o=t(87462),i=t(97685),a=t(97937),c=t(94184),l=t.n(c),u=t(98423),s=t(67294),f=t(53124),d=t(98787),p=t(68349),h=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=n||t<0||y&&e-h>=s}function w(){var e=o();if(x(e))return k(e);d=setTimeout(w,function(e){var t=n-(e-p);return y?c(t,s-(e-h)):t}(e))}function k(e){return d=void 0,m&&l?g(e):(l=u=void 0,f)}function C(){var e=o(),t=x(e);if(l=arguments,u=this,p=e,t){if(void 0===d)return b(p);if(y)return clearTimeout(d),d=setTimeout(w,n),g(p)}return void 0===d&&(d=setTimeout(w,n)),f}return n=i(n)||0,r(t)&&(v=!!t.leading,s=(y="maxWait"in t)?a(i(t.maxWait)||0,n):s,m="trailing"in t?!!t.trailing:m),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=p=u=d=void 0},C.flush=function(){return void 0===d?f:k(o())},C}},33448:function(e,n,t){var r=t(44239),o=t(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),o=t(13218),i=t(33448),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=c.test(e);return t||l.test(e)?u(e.slice(2),t?2:8):a.test(e)?NaN:+e}},30672:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readwrite",function(){return t(41095)}])},8119:function(e,n,t){"use strict";t.d(n,{h:function(){return S},Z:function(){return A}});var r=t(85893),o=t(97183),i=t(94199),a=t(20550),c=t(828),l=t(66516),u=t(38504),s=t(71577),f=t(26713),d=t(86548),p=t(94149),h=t(38545),v=t(87547),y=t(39398),m=t(4480),g=t(67294),b=t(49218),x=t(5152),w=t.n(x),k=t(1899),C=t(47093),O=t.n(C),j=w()((function(){return t.e(2365).then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),E=w()((function(){return Promise.all([t.e(8939),t.e(8225)]).then(t.bind(t,98225)).then((function(e){return e.NameChangeModal}))}),{loadableGenerated:{webpack:function(){return[98225]}}}),_=w()((function(){return Promise.all([t.e(2944),t.e(9674)]).then(t.bind(t,9674)).then((function(e){return e.AuthModal}))}),{loadableGenerated:{webpack:function(){return[9674]}}}),Z=function(e){var n=e.username,t=void 0===n?void 0:n,o=(0,g.useState)(!1),i=o[0],a=o[1],x=(0,g.useState)(!1),w=x[0],C=x[1],Z=(0,c.Z)((0,m.FV)(k.ZA),2),N=Z[0],P=Z[1],K=(0,m.sJ)(k.Q),T=function(){P(!N)};(0,b.y1)("c",T,{enableOnContentEditable:!1},[N]);var S=(0,m.sJ)(k.db);if(!S)return null;var A=S.displayName,M=t||A,I=(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(d.Z,{}),onClick:function(){a(!0)},children:"Change name"},"0"),(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(p.Z,{}),onClick:function(){return C(!0)},children:"Authenticate"},"1"),K.chatAvailable&&(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(h.Z,{}),onClick:function(){return T()},children:"Toggle chat"},"3")]});return(0,r.jsxs)("div",{className:"".concat(O().root),children:[(0,r.jsx)(u.Z,{overlay:I,trigger:["click"],children:(0,r.jsx)(s.Z,{type:"primary",icon:(0,r.jsx)(v.Z,{style:{marginRight:".5rem"}}),children:(0,r.jsxs)(f.Z,{children:[M,(0,r.jsx)(y.Z,{})]})})}),(0,r.jsx)(j,{title:"Change Chat Display Name",open:i,handleCancel:function(){return a(!1)},children:(0,r.jsx)(E,{})}),(0,r.jsx)(j,{title:"Authenticate",open:w,handleCancel:function(){return C(!1)},children:(0,r.jsx)(_,{})})]})},N=t(60113),P=t(92910),K=t.n(P),T=o.Z.Header,S=function(e){var n=e.name,t=void 0===n?"Your stream title":n,o=e.chatAvailable,c=e.chatDisabled;return(0,r.jsxs)(T,{className:"".concat(K().header),children:[(0,r.jsxs)("div",{className:"".concat(K().logo),children:[(0,r.jsx)(N.C,{variant:"contrast"}),(0,r.jsx)("span",{children:t})]}),o&&!c&&(0,r.jsx)(Z,{}),!o&&!c&&(0,r.jsx)(i.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,r.jsx)(a.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})},A=S},41095:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return l}});var r=t(85893),o=t(4480),i=t(28763),a=t(1899),c=t(8119);function l(){var e=(0,o.sJ)(a.db),n=(0,o.sJ)(a.pH),t=(0,o.sJ)(a.g1),l=t.name,u=t.chatDisabled;if(!e)return null;var s=e.id,f=e.displayName,d=e.isModerator;return(0,r.jsxs)("div",{children:[(0,r.jsx)(a.me,{}),(0,r.jsx)(c.Z,{name:l,chatAvailable:!0,chatDisabled:u}),(0,r.jsx)(i.ChatContainer,{messages:n,usernameToHighlight:f,chatUserId:s,isModerator:d,showInput:!0,height:"80vh"})]})}},47093:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},92910:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},49218:function(e,n,t){"use strict";t.d(n,{y1:function(){return N}});var r="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function o(e,n,t,r){e.addEventListener?e.addEventListener(n,t,r):e.attachEvent&&e.attachEvent("on".concat(n),(function(){t(window.event)}))}function i(e,n){for(var t=n.slice(0,n.length-1),r=0;r=0;)n[t-1]+=",",n.splice(t,1),t=n.lastIndexOf("");return n}for(var c={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},l={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},u={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},s={16:!1,18:!1,17:!1,91:!1},f={},d=1;d<20;d++)c["f".concat(d)]=111+d;var p=[],h=!1,v="all",y=[],m=function(e){return c[e.toLowerCase()]||l[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function g(e){v=e||"all"}function b(){return v||"all"}var x=function(e){var n=e.key,t=e.scope,r=e.method,o=e.splitKey,c=void 0===o?"+":o;a(n).forEach((function(e){var n=e.split(c),o=n.length,a=n[o-1],u="*"===a?"*":m(a);if(f[u]){t||(t=b());var s=o>1?i(l,n):[];f[u]=f[u].filter((function(e){return!((!r||e.method===r)&&e.scope===t&&function(e,n){for(var t=e.length>=n.length?e:n,r=e.length>=n.length?n:e,o=!0,i=0;i0,s)Object.prototype.hasOwnProperty.call(s,i)&&(!s[i]&&n.mods.indexOf(+i)>-1||s[i]&&-1===n.mods.indexOf(+i))&&(o=!1);(0!==n.mods.length||s[16]||s[18]||s[17]||s[91])&&!o&&"*"!==n.shortcut||!1===n.method(e,n)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function k(e,n){var t=f["*"],r=e.keyCode||e.which||e.charCode;if(C.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===p.indexOf(r)&&229!==r&&p.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(n){var t=u[n];e[n]&&-1===p.indexOf(t)?p.push(t):!e[n]&&p.indexOf(t)>-1?p.splice(p.indexOf(t),1):"metaKey"===n&&e[n]&&3===p.length&&(e.ctrlKey||e.shiftKey||e.altKey||(p=p.slice(p.indexOf(t))))})),r in s){for(var o in s[r]=!0,l)l[o]===r&&(C[o]=!0);if(!t)return}for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(s[i]=e[u[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),s[17]=!0,s[18]=!0);var a=b();if(t)for(var c=0;c1&&(c=i(l,e)),(e="*"===(e=e[e.length-1])?"*":m(e))in f||(f[e]=[]),f[e].push({keyup:g,keydown:b,scope:u,mods:c,shortcut:r[v],method:t,key:r[v],splitKey:x,element:d});"undefined"!==typeof d&&!function(e){return y.indexOf(e)>-1}(d)&&window&&(y.push(d),o(d,"keydown",(function(e){k(e,d)}),w),h||(h=!0,o(window,"focus",(function(){p=[]}),w)),o(d,"keyup",(function(e){k(e,d),function(e){var n=e.keyCode||e.which||e.charCode,t=p.indexOf(n);if(t>=0&&p.splice(t,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),93!==n&&224!==n||(n=91),n in s)for(var r in s[n]=!1,l)l[r]===n&&(C[r]=!1)}(e)}),w))}var O={setScope:g,getScope:b,deleteScope:function(e,n){var t,r;for(var o in e||(e=b()),f)if(Object.prototype.hasOwnProperty.call(f,o))for(t=f[o],r=0;r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(f).forEach((function(t){var r=f[t].find((function(t){return t.scope===n&&t.shortcut===e}));r&&r.method&&r.method()}))},unbind:function(e){if("undefined"===typeof e)Object.keys(f).forEach((function(e){return delete f[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&x(e)}));else if("object"===typeof e)e.key&&x(e);else if("string"===typeof e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r=n||t<0||y&&e-h>=s}function w(){var e=o();if(x(e))return k(e);d=setTimeout(w,function(e){var t=n-(e-p);return y?c(t,s-(e-h)):t}(e))}function k(e){return d=void 0,m&&l?g(e):(l=u=void 0,f)}function C(){var e=o(),t=x(e);if(l=arguments,u=this,p=e,t){if(void 0===d)return b(p);if(y)return clearTimeout(d),d=setTimeout(w,n),g(p)}return void 0===d&&(d=setTimeout(w,n)),f}return n=i(n)||0,r(t)&&(v=!!t.leading,s=(y="maxWait"in t)?a(i(t.maxWait)||0,n):s,m="trailing"in t?!!t.trailing:m),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=p=u=d=void 0},C.flush=function(){return void 0===d?f:k(o())},C}},33448:function(e,n,t){var r=t(44239),o=t(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),o=t(13218),i=t(33448),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=c.test(e);return t||l.test(e)?u(e.slice(2),t?2:8):a.test(e)?NaN:+e}},30672:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readwrite",function(){return t(41095)}])},8119:function(e,n,t){"use strict";t.d(n,{h:function(){return S},Z:function(){return A}});var r=t(85893),o=t(97183),i=t(94199),a=t(20550),c=t(828),l=t(66516),u=t(38504),s=t(71577),f=t(26713),d=t(86548),p=t(94149),h=t(38545),v=t(87547),y=t(39398),m=t(4480),g=t(67294),b=t(49218),x=t(5152),w=t.n(x),k=t(1899),C=t(47093),O=t.n(C),j=w()((function(){return t.e(2365).then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),E=w()((function(){return Promise.all([t.e(8939),t.e(8225)]).then(t.bind(t,98225)).then((function(e){return e.NameChangeModal}))}),{loadableGenerated:{webpack:function(){return[98225]}}}),_=w()((function(){return Promise.all([t.e(2944),t.e(9674)]).then(t.bind(t,9674)).then((function(e){return e.AuthModal}))}),{loadableGenerated:{webpack:function(){return[9674]}}}),Z=function(e){var n=e.username,t=void 0===n?void 0:n,o=(0,g.useState)(!1),i=o[0],a=o[1],x=(0,g.useState)(!1),w=x[0],C=x[1],Z=(0,c.Z)((0,m.FV)(k.ZA),2),N=Z[0],P=Z[1],K=(0,m.sJ)(k.Q),T=function(){P(!N)};(0,b.y1)("c",T,{enableOnContentEditable:!1},[N]);var S=(0,m.sJ)(k.db);if(!S)return null;var A=S.displayName,M=t||A,I=(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(d.Z,{}),onClick:function(){a(!0)},children:"Change name"},"0"),(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(p.Z,{}),onClick:function(){return C(!0)},children:"Authenticate"},"1"),K.chatAvailable&&(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(h.Z,{}),onClick:function(){return T()},children:"Toggle chat"},"3")]});return(0,r.jsxs)("div",{className:"".concat(O().root),children:[(0,r.jsx)(u.Z,{overlay:I,trigger:["click"],children:(0,r.jsx)(s.Z,{type:"primary",icon:(0,r.jsx)(v.Z,{style:{marginRight:".5rem"}}),children:(0,r.jsxs)(f.Z,{children:[M,(0,r.jsx)(y.Z,{})]})})}),(0,r.jsx)(j,{title:"Change Chat Display Name",visible:i,handleCancel:function(){return a(!1)},children:(0,r.jsx)(E,{})}),(0,r.jsx)(j,{title:"Authenticate",visible:w,handleCancel:function(){return C(!1)},children:(0,r.jsx)(_,{})})]})},N=t(60113),P=t(92910),K=t.n(P),T=o.Z.Header,S=function(e){var n=e.name,t=void 0===n?"Your stream title":n,o=e.chatAvailable,c=e.chatDisabled;return(0,r.jsxs)(T,{className:"".concat(K().header),children:[(0,r.jsxs)("div",{className:"".concat(K().logo),children:[(0,r.jsx)(N.C,{variant:"contrast"}),(0,r.jsx)("span",{children:t})]}),o&&!c&&(0,r.jsx)(Z,{}),!o&&!c&&(0,r.jsx)(i.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,r.jsx)(a.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})},A=S},41095:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return l}});var r=t(85893),o=t(4480),i=t(28763),a=t(1899),c=t(8119);function l(){var e=(0,o.sJ)(a.db),n=(0,o.sJ)(a.pH),t=(0,o.sJ)(a.g1),l=t.name,u=t.chatDisabled;if(!e)return null;var s=e.id,f=e.displayName,d=e.isModerator;return(0,r.jsxs)("div",{children:[(0,r.jsx)(a.me,{}),(0,r.jsx)(c.Z,{name:l,chatAvailable:!0,chatDisabled:u}),(0,r.jsx)(i.ChatContainer,{messages:n,usernameToHighlight:f,chatUserId:s,isModerator:d,showInput:!0,height:"80vh"})]})}},47093:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},92910:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},49218:function(e,n,t){"use strict";t.d(n,{y1:function(){return N}});var r="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function o(e,n,t,r){e.addEventListener?e.addEventListener(n,t,r):e.attachEvent&&e.attachEvent("on".concat(n),(function(){t(window.event)}))}function i(e,n){for(var t=n.slice(0,n.length-1),r=0;r=0;)n[t-1]+=",",n.splice(t,1),t=n.lastIndexOf("");return n}for(var c={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},l={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},u={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},s={16:!1,18:!1,17:!1,91:!1},f={},d=1;d<20;d++)c["f".concat(d)]=111+d;var p=[],h=!1,v="all",y=[],m=function(e){return c[e.toLowerCase()]||l[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function g(e){v=e||"all"}function b(){return v||"all"}var x=function(e){var n=e.key,t=e.scope,r=e.method,o=e.splitKey,c=void 0===o?"+":o;a(n).forEach((function(e){var n=e.split(c),o=n.length,a=n[o-1],u="*"===a?"*":m(a);if(f[u]){t||(t=b());var s=o>1?i(l,n):[];f[u]=f[u].filter((function(e){return!((!r||e.method===r)&&e.scope===t&&function(e,n){for(var t=e.length>=n.length?e:n,r=e.length>=n.length?n:e,o=!0,i=0;i0,s)Object.prototype.hasOwnProperty.call(s,i)&&(!s[i]&&n.mods.indexOf(+i)>-1||s[i]&&-1===n.mods.indexOf(+i))&&(o=!1);(0!==n.mods.length||s[16]||s[18]||s[17]||s[91])&&!o&&"*"!==n.shortcut||!1===n.method(e,n)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function k(e,n){var t=f["*"],r=e.keyCode||e.which||e.charCode;if(C.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===p.indexOf(r)&&229!==r&&p.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(n){var t=u[n];e[n]&&-1===p.indexOf(t)?p.push(t):!e[n]&&p.indexOf(t)>-1?p.splice(p.indexOf(t),1):"metaKey"===n&&e[n]&&3===p.length&&(e.ctrlKey||e.shiftKey||e.altKey||(p=p.slice(p.indexOf(t))))})),r in s){for(var o in s[r]=!0,l)l[o]===r&&(C[o]=!0);if(!t)return}for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(s[i]=e[u[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),s[17]=!0,s[18]=!0);var a=b();if(t)for(var c=0;c1&&(c=i(l,e)),(e="*"===(e=e[e.length-1])?"*":m(e))in f||(f[e]=[]),f[e].push({keyup:g,keydown:b,scope:u,mods:c,shortcut:r[v],method:t,key:r[v],splitKey:x,element:d});"undefined"!==typeof d&&!function(e){return y.indexOf(e)>-1}(d)&&window&&(y.push(d),o(d,"keydown",(function(e){k(e,d)}),w),h||(h=!0,o(window,"focus",(function(){p=[]}),w)),o(d,"keyup",(function(e){k(e,d),function(e){var n=e.keyCode||e.which||e.charCode,t=p.indexOf(n);if(t>=0&&p.splice(t,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),93!==n&&224!==n||(n=91),n in s)for(var r in s[n]=!1,l)l[r]===n&&(C[r]=!1)}(e)}),w))}var O={setScope:g,getScope:b,deleteScope:function(e,n){var t,r;for(var o in e||(e=b()),f)if(Object.prototype.hasOwnProperty.call(f,o))for(t=f[o],r=0;r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(f).forEach((function(t){var r=f[t].find((function(t){return t.scope===n&&t.shortcut===e}));r&&r.method&&r.method()}))},unbind:function(e){if("undefined"===typeof e)Object.keys(f).forEach((function(e){return delete f[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&x(e)}));else if("object"===typeof e)e.key&&x(e);else if("string"===typeof e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r0&&a.map((function(e){return(0,i.jsxs)("span",{children:["#",e,"\xa0"]},e)}))}),(0,i.jsx)("div",{className:x()(W().socialLinks,W().row),children:(0,i.jsx)(B,{links:s})})]})]})})},ee=t(43125),ne=u.Z.TabPane,te=r.Z.Content,ie=f()((function(){return Promise.resolve().then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),re=f()((function(){return t.e(5135).then(t.bind(t,5135)).then((function(e){return e.BrowserNotifyModal}))}),{loadableGenerated:{webpack:function(){return[5135]}}}),oe=f()((function(){return t.e(7735).then(t.bind(t,57735)).then((function(e){return e.NotifyReminderPopup}))}),{loadableGenerated:{webpack:function(){return[57735]}}}),ae=f()((function(){return Promise.all([t.e(8939),t.e(3698),t.e(7373)]).then(t.bind(t,97373)).then((function(e){return e.FollowerCollection}))}),{loadableGenerated:{webpack:function(){return[97373]}}}),se=f()((function(){return Promise.resolve().then(t.bind(t,28763)).then((function(e){return e.ChatContainer}))}),{loadableGenerated:{webpack:function(){return[28763]}}}),le=function(e){var n=e.name,t=e.streamTitle,r=e.summary,o=e.tags,a=e.socialHandles,s=e.extraPageContent;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:C().lowerHalf,children:(0,i.jsx)($,{name:n,title:t,summary:r,tags:o,links:a,logo:"/logo"})}),(0,i.jsx)("div",{className:C().lowerSection,children:(0,i.jsxs)(u.Z,{defaultActiveKey:"0",children:[(0,i.jsx)(ne,{tab:"About",children:(0,i.jsx)(_,{content:s})},"2"),(0,i.jsx)(ne,{tab:"Followers",children:(0,i.jsx)(ae,{name:n})},"3")]})})]})},ce=function(e){var n=e.name,t=e.streamTitle,r=e.summary,o=e.tags,a=e.socialHandles,s=e.extraPageContent,l=e.messages,c=e.chatDisplayName,d=e.chatUserId,m=e.showChat;return(0,i.jsx)("div",{className:x()(C().lowerSectionMobile),children:(0,i.jsxs)(u.Z,{defaultActiveKey:"0",children:[m&&(0,i.jsx)(ne,{tab:"Chat",children:(0,i.jsx)(se,{messages:l,usernameToHighlight:c,chatUserId:d,isModerator:!1,height:"40vh"})},"1"),(0,i.jsxs)(ne,{tab:"About",children:[(0,i.jsx)($,{name:n,title:t,summary:r,tags:o,links:a,logo:"/logo"}),(0,i.jsx)(_,{content:s})]},"2"),(0,i.jsx)(ne,{tab:"Followers",children:(0,i.jsx)(ae,{name:n})},"3")]})})},de=function(){var e=(0,o.sJ)(c.Q),n=(0,o.sJ)(c.g1),t=(0,o.sJ)(c.pT),r=(0,o.sJ)(c.di),a=(0,o.sJ)(c.db),s=(0,d.Z)((0,o.FV)(c.hz),2),u=s[0],h=s[1],x=(0,o.sJ)(c.j$),p=(0,o.sJ)(c.YW),f=(0,o.sJ)(c.RI),j=f.viewerCount,v=f.lastConnectTime,_=f.lastDisconnectTime,b=f.streamTitle,w=n.extraPageContent,N=n.version,k=n.name,S=n.summary,T=n.socialHandles,H=n.tags,A=n.externalActions,P=n.offlineMessage,J=n.chatDisabled,z=n.federation,D=n.notifications,E=(0,l.useState)(!1),G=E[0],q=E[1],O=(0,l.useState)(!1),Y=O[0],Q=O[1],V=z.account,X=D.browser.enabled,B=A.map((function(e){return(0,i.jsx)(I,{action:e},e.url)})),K=function(){Q(!1),q(!1),(0,g.qQ)(g.dA.hasDisplayedNotificationModal,!0)},W=function(){var e=window.innerWidth;void 0===u&&h(e<=768),!u&&e<=768&&h(!0),u&&e>768&&h(!1)};if((0,l.useEffect)((function(){!function(){var e=parseInt((0,g.$o)(g.dA.userVisitCount),10);Number.isNaN(e)&&(e=0),(0,g.qQ)(g.dA.userVisitCount,e+1),e>2&&!(0,g.$o)(g.dA.hasDisplayedNotificationModal)&&q(!0)}(),W(),window.addEventListener("resize",W)}),[]),!a)return null;var $=a.id,ne=a.displayName,ae=!J&&r&&t;return(0,i.jsx)("div",{children:(0,i.jsxs)(m.Z,{className:C().loadingSpinner,size:"large",spinning:e.appLoading,children:[(0,i.jsxs)(te,{className:C().root,children:[(0,i.jsxs)("div",{className:C().leftContent,children:[(0,i.jsxs)("div",{className:C().topSection,children:[p&&(0,i.jsx)(y.M,{source:"/hls/stream.m3u8",online:p}),!p&&!e.appLoading&&(0,i.jsx)(R.R,{streamName:k,customText:P,notificationsEnabled:X,fediverseAccount:V,lastLive:_,onNotifyClick:function(){return Q(!0)}}),p&&(0,i.jsx)(ee.X,{online:p,lastConnectTime:v,lastDisconnectTime:_,viewerCount:j})]}),(0,i.jsx)("div",{className:C().midSection,children:(0,i.jsxs)("div",{className:C().buttonsLogoTitleSection,children:[(0,i.jsxs)(M,{children:[B,(0,i.jsx)(U.e,{size:"small"}),(0,i.jsx)(oe,{visible:G,notificationClicked:function(){return Q(!0)},notificationClosed:function(){return K()},children:(0,i.jsx)(F.E,{onClick:function(){return Q(!0)}})})]}),(0,i.jsx)(ie,{title:"Notify",visible:Y,afterClose:function(){return K()},handleCancel:function(){return K()},children:(0,i.jsx)(re,{})})]})}),u&&t?(0,i.jsx)(ce,{name:k,streamTitle:b,summary:S,tags:H,socialHandles:T,extraPageContent:w,messages:x,chatDisplayName:ne,chatUserId:$,showChat:ae}):(0,i.jsx)(le,{name:k,streamTitle:b,summary:S,tags:H,socialHandles:T,extraPageContent:w})]}),ae&&!u&&(0,i.jsx)(Z,{})]}),(!u||!ae)&&(0,i.jsx)(L,{version:N})]})})},ue=t(8119),me=t(85402),he=function(e){var n=e.title,t=e.message;return(0,i.jsx)(me.Z,{title:n,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,i.jsx)("p",{style:{fontSize:"1.3rem"},children:t})})},xe=t(82670);var pe=function(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("meta",{name:"description",content:"{{.Summary}}"}),(0,i.jsx)("meta",{property:"og:title",content:"{{.Name}}"}),(0,i.jsx)("meta",{property:"og:site_name",content:"{{.Name}}"}),(0,i.jsx)("meta",{property:"og:url",content:"{{.RequestedURL}}"}),(0,i.jsx)("meta",{property:"og:description",content:"{{.Summary}}"}),(0,i.jsx)("meta",{property:"og:type",content:"video.other"}),(0,i.jsx)("meta",{property:"video:tag",content:"{{.TagsString}}"}),(0,i.jsx)("meta",{property:"og:image",content:"{{.Thumbnail}}"}),(0,i.jsx)("meta",{property:"og:image:url",content:"{{.Thumbnail}}"}),(0,i.jsx)("meta",{property:"og:image:alt",content:"{{.Image}}"}),(0,i.jsx)("meta",{property:"og:video",content:"{{.RequestedURL}}embed/video"}),(0,i.jsx)("meta",{property:"og:video:secure_url",content:"{{.RequestedURL}}embed/video"}),(0,i.jsx)("meta",{property:"og:video:height",content:"315"}),(0,i.jsx)("meta",{property:"og:video:width",content:"560"}),(0,i.jsx)("meta",{property:"og:video:type",content:"text/html"}),(0,i.jsx)("meta",{property:"og:video:actor",content:"{{.Name}}"}),(0,i.jsx)("meta",{property:"twitter:title",content:"{{.Name}}"}),(0,i.jsx)("meta",{property:"twitter:url",content:"{{.RequestedURL}}"}),(0,i.jsx)("meta",{property:"twitter:description",content:"{{.Summary}}"}),(0,i.jsx)("meta",{property:"twitter:image",content:"{{.Image}}"}),(0,i.jsx)("meta",{property:"twitter:card",content:"player"}),(0,i.jsx)("meta",{property:"twitter:player",content:"{{.RequestedURL}}embed/video"}),(0,i.jsx)("meta",{property:"twitter:player:width",content:"560"}),(0,i.jsx)("meta",{property:"twitter:player:height",content:"315"})]})},fe=function(e){var n=e.hydrationScript;return(0,i.jsx)("script",{dangerouslySetInnerHTML:{__html:n}})},ge=function(){var e=(0,o.sJ)(c.g1),n=e.name,t=e.title,a=e.customStyles,d=(0,o.sJ)(c.di),u=(0,o.sJ)(c.ap),m=(0,l.useRef)(null),h=e.chatDisabled;(0,l.useEffect)((function(){!function(e){var n=function(e){e.setAttribute("rel","noopener noreferrer ")};e.querySelectorAll("a").forEach((function(e){return n(e)})),new MutationObserver((function(e){var t=!0,i=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var s=o.value,l=!0,c=!1,d=void 0;try{for(var u,m=s.addedNodes[Symbol.iterator]();!(l=(u=m.next()).done);l=!0){var h=u.value;(0,xe.Z)(h,HTMLElement)&&"a"===h.tagName.toLowerCase()&&n(h)}}catch(x){c=!0,d=x}finally{try{l||null==m.return||m.return()}finally{if(c)throw d}}}}catch(x){i=!0,r=x}finally{try{t||null==a.return||a.return()}finally{if(i)throw r}}})).observe(e,{attributes:!1,childList:!0,subtree:!0})}(m.current)}),[]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s(),{children:[(0,i.jsx)(pe,{}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"57x57",href:"/img/favicon/apple-icon-57x57.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"60x60",href:"/img/favicon/apple-icon-60x60.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"72x72",href:"/img/favicon/apple-icon-72x72.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"76x76",href:"/img/favicon/apple-icon-76x76.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"114x114",href:"/img/favicon/apple-icon-114x114.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/img/favicon/apple-icon-120x120.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"144x144",href:"/img/favicon/apple-icon-144x144.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/img/favicon/apple-icon-152x152.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/favicon/apple-icon-180x180.png"}),(0,i.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/img/favicon/android-icon-192x192.png"}),(0,i.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"}),(0,i.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/img/favicon/favicon-96x96.png"}),(0,i.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/favicon/favicon-16x16.png"}),(0,i.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,i.jsx)("link",{href:"/api/auth/provider/indieauth"}),(0,i.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,i.jsx)("meta",{name:"msapplication-TileImage",content:"/img/favicon/ms-icon-144x144.png"}),(0,i.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,i.jsx)("style",{children:a}),(0,i.jsx)(fe,{hydrationScript:"\n\twindow.statusHydration = {{.StatusJSON}};\n\twindow.configHydration = {{.ServerConfigJSON}};\n\t"})]}),(0,i.jsx)(c.me,{}),(0,i.jsxs)(r.Z,{ref:m,children:[(0,i.jsx)(ue.h,{name:t||n,chatAvailable:d,chatDisabled:h}),(0,i.jsx)(de,{}),u&&(0,i.jsx)(he,{title:u.title,message:u.message})]})]})};function je(){return(0,i.jsx)(ge,{})}},69767:function(e){e.exports={row:"ActionButtonRow_row__SiEGe"}},74688:function(e){e.exports={root:"ContentHeader_root__HaUG0",row:"ContentHeader_row__9Q8gH",logoTitleSection:"ContentHeader_logoTitleSection__Z8pUc",logo:"ContentHeader_logo__wo_HN",titleSection:"ContentHeader_titleSection___6Y15",title:"ContentHeader_title__E_DsI",subtitle:"ContentHeader_subtitle__n1Wew",tagList:"ContentHeader_tagList__rx3jY"}},47093:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},63291:function(e){e.exports={root:"Content_root__h1mNK",topSection:"Content_topSection__JIZi0",lowerSection:"Content_lowerSection__BZHYI",lowerSectionMobile:"Content_lowerSectionMobile__hRr0_",leftCol:"Content_leftCol__U2TDq",loadingSpinner:"Content_loadingSpinner__mDlYC"}},28105:function(e){e.exports={pageContentContainer:"CustomPageContent_pageContentContainer__EG4tU",customPageContent:"CustomPageContent_customPageContent__Mr981",summary:"CustomPageContent_summary___Zgps"}},35603:function(e){e.exports={footer:"Footer_footer__mPuvf",links:"Footer_links__7bBxV",item:"Footer_item__rXxSr"}},92910:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},7918:function(e){e.exports={root:"Logo_root__jKiJC",container:"Logo_container__A4UYT",image:"Logo_image__Ahkom"}},75347:function(e){e.exports={root:"Sidebar_root__8HE0A"}},52740:function(e){e.exports={link:"SocialLinks_link___CcSm",links:"SocialLinks_links__gOAb7"}}},function(e){e.O(0,[1272,8700,2544,3903,2944,9764,9372,7364,2429,2860,1082,9358,1899,8763,2854,9774,2888,179],(function(){return n=48312,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/index-8428aa8bd724af35.js b/static/web/_next/static/chunks/pages/index-8428aa8bd724af35.js new file mode 100644 index 000000000..d71e7f652 --- /dev/null +++ b/static/web/_next/static/chunks/pages/index-8428aa8bd724af35.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(52924)}])},8119:function(e,n,t){"use strict";t.d(n,{h:function(){return P},Z:function(){return M}});var o=t(85893),i=t(97183),r=t(94199),a=t(20550),s=t(828),l=t(66516),c=t(38504),d=t(71577),u=t(26713),m=t(86548),h=t(94149),p=t(38545),x=t(87547),f=t(39398),g=t(4480),j=t(67294),v=t(49218),_=t(5152),y=t.n(_),b=t(1899),C=t(47093),w=t.n(C),N=y()((function(){return t.e(2365).then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),k=y()((function(){return Promise.all([t.e(8939),t.e(8225)]).then(t.bind(t,98225)).then((function(e){return e.NameChangeModal}))}),{loadableGenerated:{webpack:function(){return[98225]}}}),S=y()((function(){return Promise.all([t.e(2944),t.e(9674)]).then(t.bind(t,9674)).then((function(e){return e.AuthModal}))}),{loadableGenerated:{webpack:function(){return[9674]}}}),Z=function(e){var n=e.username,t=void 0===n?void 0:n,i=(0,j.useState)(!1),r=i[0],a=i[1],_=(0,j.useState)(!1),y=_[0],C=_[1],Z=(0,s.Z)((0,g.FV)(b.ZA),2),T=Z[0],H=Z[1],L=(0,g.sJ)(b.Q),A=function(){H(!T)};(0,v.y1)("c",A,{enableOnContentEditable:!1},[T]);var P=(0,g.sJ)(b.db);if(!P)return null;var M=P.displayName,J=t||M,z=(0,o.jsxs)(l.Z,{children:[(0,o.jsx)(l.Z.Item,{icon:(0,o.jsx)(m.Z,{}),onClick:function(){a(!0)},children:"Change name"},"0"),(0,o.jsx)(l.Z.Item,{icon:(0,o.jsx)(h.Z,{}),onClick:function(){return C(!0)},children:"Authenticate"},"1"),L.chatAvailable&&(0,o.jsx)(l.Z.Item,{icon:(0,o.jsx)(p.Z,{}),onClick:function(){return A()},children:"Toggle chat"},"3")]});return(0,o.jsxs)("div",{className:"".concat(w().root),children:[(0,o.jsx)(c.Z,{overlay:z,trigger:["click"],children:(0,o.jsx)(d.Z,{type:"primary",icon:(0,o.jsx)(x.Z,{style:{marginRight:".5rem"}}),children:(0,o.jsxs)(u.Z,{children:[J,(0,o.jsx)(f.Z,{})]})})}),(0,o.jsx)(N,{title:"Change Chat Display Name",open:r,handleCancel:function(){return a(!1)},children:(0,o.jsx)(k,{})}),(0,o.jsx)(N,{title:"Authenticate",open:y,handleCancel:function(){return C(!1)},children:(0,o.jsx)(S,{})})]})},T=t(60113),H=t(92910),L=t.n(H),A=i.Z.Header,P=function(e){var n=e.name,t=void 0===n?"Your stream title":n,i=e.chatAvailable,s=e.chatDisabled;return(0,o.jsxs)(A,{className:"".concat(L().header),children:[(0,o.jsxs)("div",{className:"".concat(L().logo),children:[(0,o.jsx)(T.C,{variant:"contrast"}),(0,o.jsx)("span",{children:t})]}),i&&!s&&(0,o.jsx)(Z,{}),!i&&!s&&(0,o.jsx)(r.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,o.jsx)(a.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})},M=P},52924:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return je}});var o=t(85893),i=t(97183),r=t(4480),a=t(9008),s=t.n(a),l=t(67294),c=t(1899),d=t(828),u=t(2944),m=t(11382),h=t(94184),p=t.n(h),x=t(5152),f=t.n(x),g=t(73682),j=t(28105),v=t.n(j),_=function(e){var n=e.content;return(0,o.jsx)("div",{className:v().pageContentContainer,children:(0,o.jsx)("div",{className:v().customPageContent,dangerouslySetInnerHTML:{__html:n}})})},y=t(83818),b=t(63291),C=t.n(b),w=t(87412),N=t(28763),k=t(75347),S=t.n(k),Z=function(){var e=(0,r.sJ)(c.db),n=(0,r.sJ)(c.pH),t=e.id,i=e.isModerator,a=e.displayName;return(0,o.jsx)(w.ZP,{className:S().root,collapsedWidth:0,width:320,children:(0,o.jsx)(N.ChatContainer,{messages:n,usernameToHighlight:a,chatUserId:t,isModerator:i})})},T=t(35603),H=t.n(T),L=function(e){var n=e.version;return(0,o.jsxs)("div",{className:H().footer,children:[(0,o.jsxs)("div",{className:H().text,children:["Powered by ",(0,o.jsx)("a",{href:"https://owncast.online",children:n})]}),(0,o.jsxs)("div",{className:H().links,children:[(0,o.jsx)("div",{className:H().item,children:(0,o.jsx)("a",{href:"https://owncast.online/docs",target:"_blank",rel:"noreferrer",children:"Documentation"})}),(0,o.jsx)("div",{className:H().item,children:(0,o.jsx)("a",{href:"https://owncast.online/help",target:"_blank",rel:"noreferrer",children:"Contribute"})}),(0,o.jsx)("div",{className:H().item,children:(0,o.jsx)("a",{href:"https://github.com/owncast/owncast",target:"_blank",rel:"noreferrer",children:"Source"})})]})]})},A=t(69767),P=t.n(A),M=function(e){var n=e.children;return(0,o.jsx)("div",{className:"".concat(P().row),children:n})},J=t(71577),z=t(32365),D=t(36879),E=t.n(D),I=function(e){var n=e.action,t=n.url,i=n.title,r=n.description,a=n.icon,s=n.color,c=n.openExternally,d=e.primary,u=void 0===d||d,m=(0,l.useState)(!1),h=m[0],p=m[1];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(J.Z,{type:u?"primary":"default",className:"".concat(E().button),onClick:function(){c?window.open(t,"_blank"):p(!0)},style:{backgroundColor:s},children:[(0,o.jsx)("img",{src:a,className:"".concat(E().icon),alt:r}),i]}),(0,o.jsx)(z.Modal,{title:r||i,url:t,open:h,height:"80vh",handleCancel:function(){return p(!1)}})]})},R=t(1698),U=t(30896),F=t(52437),G=t(53731),q=t(79216),O=t(7918),Y=t.n(O),Q=function(e){var n=e.src;return(0,o.jsx)("div",{className:Y().root,children:(0,o.jsx)("div",{className:Y().container,children:(0,o.jsx)(q.Z,{src:n,alt:"Logo",className:Y().image,rootClassName:Y().image})})})},V=t(52740),X=t.n(V),B=function(e){var n=e.links;return(0,o.jsx)("div",{className:X().links,children:n.map((function(e){return(0,o.jsx)("a",{href:e.url,className:X().link,target:"_blank",rel:"noreferrer",children:(0,o.jsx)("img",{src:e.icon,alt:e.platform,title:e.platform,className:X().link})},e.platform)}))})},K=t(74688),W=t.n(K),$=function(e){var n=e.name,t=e.title,i=e.summary,r=e.logo,a=e.tags,s=e.links;return(0,o.jsx)("div",{className:W().root,children:(0,o.jsxs)("div",{className:W().logoTitleSection,children:[(0,o.jsx)("div",{className:W().logo,children:(0,o.jsx)(Q,{src:r})}),(0,o.jsxs)("div",{className:W().titleSection,children:[(0,o.jsx)("div",{className:p()(W().title,W().row),children:n}),(0,o.jsx)("div",{className:p()(W().subtitle,W().row),children:(0,o.jsx)(G.Z,{children:t||i})}),(0,o.jsx)("div",{className:p()(W().tagList,W().row),children:a.length>0&&a.map((function(e){return(0,o.jsxs)("span",{children:["#",e,"\xa0"]},e)}))}),(0,o.jsx)("div",{className:p()(W().socialLinks,W().row),children:(0,o.jsx)(B,{links:s})})]})]})})},ee=t(43125),ne=u.Z.TabPane,te=i.Z.Content,oe=f()((function(){return Promise.resolve().then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),ie=f()((function(){return t.e(5135).then(t.bind(t,5135)).then((function(e){return e.BrowserNotifyModal}))}),{loadableGenerated:{webpack:function(){return[5135]}}}),re=f()((function(){return t.e(7735).then(t.bind(t,57735)).then((function(e){return e.NotifyReminderPopup}))}),{loadableGenerated:{webpack:function(){return[57735]}}}),ae=f()((function(){return Promise.all([t.e(8939),t.e(3698),t.e(7373)]).then(t.bind(t,97373)).then((function(e){return e.FollowerCollection}))}),{loadableGenerated:{webpack:function(){return[97373]}}}),se=f()((function(){return Promise.resolve().then(t.bind(t,28763)).then((function(e){return e.ChatContainer}))}),{loadableGenerated:{webpack:function(){return[28763]}}}),le=function(e){var n=e.name,t=e.streamTitle,i=e.summary,r=e.tags,a=e.socialHandles,s=e.extraPageContent;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:C().lowerHalf,children:(0,o.jsx)($,{name:n,title:t,summary:i,tags:r,links:a,logo:"/logo"})}),(0,o.jsx)("div",{className:C().lowerSection,children:(0,o.jsxs)(u.Z,{defaultActiveKey:"0",children:[(0,o.jsx)(ne,{tab:"About",children:(0,o.jsx)(_,{content:s})},"2"),(0,o.jsx)(ne,{tab:"Followers",children:(0,o.jsx)(ae,{name:n})},"3")]})})]})},ce=function(e){var n=e.name,t=e.streamTitle,i=e.summary,r=e.tags,a=e.socialHandles,s=e.extraPageContent,l=e.messages,c=e.chatDisplayName,d=e.chatUserId,m=e.showChat;return(0,o.jsx)("div",{className:p()(C().lowerSectionMobile),children:(0,o.jsxs)(u.Z,{defaultActiveKey:"0",children:[m&&(0,o.jsx)(ne,{tab:"Chat",children:(0,o.jsx)(se,{messages:l,usernameToHighlight:c,chatUserId:d,isModerator:!1,height:"40vh"})},"1"),(0,o.jsxs)(ne,{tab:"About",children:[(0,o.jsx)($,{name:n,title:t,summary:i,tags:r,links:a,logo:"/logo"}),(0,o.jsx)(_,{content:s})]},"2"),(0,o.jsx)(ne,{tab:"Followers",children:(0,o.jsx)(ae,{name:n})},"3")]})})},de=function(){var e=(0,r.sJ)(c.Q),n=(0,r.sJ)(c.g1),t=(0,r.sJ)(c.pT),i=(0,r.sJ)(c.di),a=(0,r.sJ)(c.db),s=(0,d.Z)((0,r.FV)(c.hz),2),u=s[0],h=s[1],p=(0,r.sJ)(c.j$),x=(0,r.sJ)(c.YW),f=(0,r.sJ)(c.RI),j=f.viewerCount,v=f.lastConnectTime,_=f.lastDisconnectTime,b=f.streamTitle,w=n.extraPageContent,N=n.version,k=n.name,S=n.summary,T=n.socialHandles,H=n.tags,A=n.externalActions,P=n.offlineMessage,J=n.chatDisabled,z=n.federation,D=n.notifications,E=(0,l.useState)(!1),G=E[0],q=E[1],O=(0,l.useState)(!1),Y=O[0],Q=O[1],V=z.account,X=D.browser.enabled,B=A.map((function(e){return(0,o.jsx)(I,{action:e},e.url)})),K=function(){Q(!1),q(!1),(0,g.qQ)(g.dA.hasDisplayedNotificationModal,!0)},W=function(){var e=window.innerWidth;void 0===u&&h(e<=768),!u&&e<=768&&h(!0),u&&e>768&&h(!1)};if((0,l.useEffect)((function(){!function(){var e=parseInt((0,g.$o)(g.dA.userVisitCount),10);Number.isNaN(e)&&(e=0),(0,g.qQ)(g.dA.userVisitCount,e+1),e>2&&!(0,g.$o)(g.dA.hasDisplayedNotificationModal)&&q(!0)}(),W(),window.addEventListener("resize",W)}),[]),!a)return null;var $=a.id,ne=a.displayName,ae=!J&&i&&t;return(0,o.jsx)("div",{children:(0,o.jsxs)(m.Z,{className:C().loadingSpinner,size:"large",spinning:e.appLoading,children:[(0,o.jsxs)(te,{className:C().root,children:[(0,o.jsxs)("div",{className:C().leftContent,children:[(0,o.jsxs)("div",{className:C().topSection,children:[x&&(0,o.jsx)(y.M,{source:"/hls/stream.m3u8",online:x}),!x&&!e.appLoading&&(0,o.jsx)(R.R,{streamName:k,customText:P,notificationsEnabled:X,fediverseAccount:V,lastLive:_,onNotifyClick:function(){return Q(!0)}}),x&&(0,o.jsx)(ee.X,{online:x,lastConnectTime:v,lastDisconnectTime:_,viewerCount:j})]}),(0,o.jsx)("div",{className:C().midSection,children:(0,o.jsxs)("div",{className:C().buttonsLogoTitleSection,children:[(0,o.jsxs)(M,{children:[B,(0,o.jsx)(U.e,{size:"small"}),(0,o.jsx)(re,{open:G,notificationClicked:function(){return Q(!0)},notificationClosed:function(){return K()},children:(0,o.jsx)(F.E,{onClick:function(){return Q(!0)}})})]}),(0,o.jsx)(oe,{title:"Notify",open:Y,afterClose:function(){return K()},handleCancel:function(){return K()},children:(0,o.jsx)(ie,{})})]})}),u&&t?(0,o.jsx)(ce,{name:k,streamTitle:b,summary:S,tags:H,socialHandles:T,extraPageContent:w,messages:p,chatDisplayName:ne,chatUserId:$,showChat:ae}):(0,o.jsx)(le,{name:k,streamTitle:b,summary:S,tags:H,socialHandles:T,extraPageContent:w})]}),ae&&!u&&(0,o.jsx)(Z,{})]}),(!u||!ae)&&(0,o.jsx)(L,{version:N})]})})},ue=t(8119),me=t(85402),he=function(e){var n=e.title,t=e.message;return(0,o.jsx)(me.Z,{title:n,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,o.jsx)("p",{style:{fontSize:"1.3rem"},children:t})})},pe=t(82670);var xe=function(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"og:title",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"og:site_name",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"og:url",content:"{{.RequestedURL}}"}),(0,o.jsx)("meta",{property:"og:description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"og:type",content:"video.other"}),(0,o.jsx)("meta",{property:"video:tag",content:"{{.TagsString}}"}),(0,o.jsx)("meta",{property:"og:image",content:"{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:url",content:"{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:alt",content:"{{.Image}}"}),(0,o.jsx)("meta",{property:"og:video",content:"{{.RequestedURL}}embed/video"}),(0,o.jsx)("meta",{property:"og:video:secure_url",content:"{{.RequestedURL}}embed/video"}),(0,o.jsx)("meta",{property:"og:video:height",content:"315"}),(0,o.jsx)("meta",{property:"og:video:width",content:"560"}),(0,o.jsx)("meta",{property:"og:video:type",content:"text/html"}),(0,o.jsx)("meta",{property:"og:video:actor",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"twitter:title",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"twitter:url",content:"{{.RequestedURL}}"}),(0,o.jsx)("meta",{property:"twitter:description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"twitter:image",content:"{{.Image}}"}),(0,o.jsx)("meta",{property:"twitter:card",content:"player"}),(0,o.jsx)("meta",{property:"twitter:player",content:"{{.RequestedURL}}embed/video"}),(0,o.jsx)("meta",{property:"twitter:player:width",content:"560"}),(0,o.jsx)("meta",{property:"twitter:player:height",content:"315"})]})},fe=function(e){var n=e.hydrationScript;return(0,o.jsx)("script",{dangerouslySetInnerHTML:{__html:n}})},ge=function(){var e=(0,r.sJ)(c.g1),n=e.name,t=e.title,a=e.customStyles,d=(0,r.sJ)(c.di),u=(0,r.sJ)(c.ap),m=(0,l.useRef)(null),h=e.chatDisabled;(0,l.useEffect)((function(){!function(e){var n=function(e){e.setAttribute("rel","noopener noreferrer ")};e.querySelectorAll("a").forEach((function(e){return n(e)})),new MutationObserver((function(e){var t=!0,o=!1,i=void 0;try{for(var r,a=e[Symbol.iterator]();!(t=(r=a.next()).done);t=!0){var s=r.value,l=!0,c=!1,d=void 0;try{for(var u,m=s.addedNodes[Symbol.iterator]();!(l=(u=m.next()).done);l=!0){var h=u.value;(0,pe.Z)(h,HTMLElement)&&"a"===h.tagName.toLowerCase()&&n(h)}}catch(p){c=!0,d=p}finally{try{l||null==m.return||m.return()}finally{if(c)throw d}}}}catch(p){o=!0,i=p}finally{try{t||null==a.return||a.return()}finally{if(o)throw i}}})).observe(e,{attributes:!1,childList:!0,subtree:!0})}(m.current)}),[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(s(),{children:[(0,o.jsx)(xe,{}),(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:a}),(0,o.jsx)(fe,{hydrationScript:"\n\twindow.statusHydration = {{.StatusJSON}};\n\twindow.configHydration = {{.ServerConfigJSON}};\n\t"})]}),(0,o.jsx)(c.me,{}),(0,o.jsxs)(i.Z,{ref:m,children:[(0,o.jsx)(ue.h,{name:t||n,chatAvailable:d,chatDisabled:h}),(0,o.jsx)(de,{}),u&&(0,o.jsx)(he,{title:u.title,message:u.message})]})]})};function je(){return(0,o.jsx)(ge,{})}},69767:function(e){e.exports={row:"ActionButtonRow_row__SiEGe"}},74688:function(e){e.exports={root:"ContentHeader_root__HaUG0",row:"ContentHeader_row__9Q8gH",logoTitleSection:"ContentHeader_logoTitleSection__Z8pUc",logo:"ContentHeader_logo__wo_HN",titleSection:"ContentHeader_titleSection___6Y15",title:"ContentHeader_title__E_DsI",subtitle:"ContentHeader_subtitle__n1Wew",tagList:"ContentHeader_tagList__rx3jY"}},47093:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},63291:function(e){e.exports={root:"Content_root__h1mNK",topSection:"Content_topSection__JIZi0",lowerSection:"Content_lowerSection__BZHYI",lowerSectionMobile:"Content_lowerSectionMobile__hRr0_",leftCol:"Content_leftCol__U2TDq",loadingSpinner:"Content_loadingSpinner__mDlYC"}},28105:function(e){e.exports={pageContentContainer:"CustomPageContent_pageContentContainer__EG4tU",customPageContent:"CustomPageContent_customPageContent__Mr981",summary:"CustomPageContent_summary___Zgps"}},35603:function(e){e.exports={footer:"Footer_footer__mPuvf",links:"Footer_links__7bBxV",item:"Footer_item__rXxSr"}},92910:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},7918:function(e){e.exports={root:"Logo_root__jKiJC",container:"Logo_container__A4UYT",image:"Logo_image__Ahkom"}},75347:function(e){e.exports={root:"Sidebar_root__8HE0A"}},52740:function(e){e.exports={link:"SocialLinks_link___CcSm",links:"SocialLinks_links__gOAb7"}}},function(e){e.O(0,[1272,8700,2544,3903,2944,9764,9372,7364,2429,2860,1082,9358,1899,8763,2854,9774,2888,179],(function(){return n=48312,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/webpack-98075c8d440b1b86.js b/static/web/_next/static/chunks/webpack-4f605c79a17f4038.js similarity index 79% rename from static/web/_next/static/chunks/webpack-98075c8d440b1b86.js rename to static/web/_next/static/chunks/webpack-4f605c79a17f4038.js index 3b7103c5a..1f5a170af 100644 --- a/static/web/_next/static/chunks/webpack-98075c8d440b1b86.js +++ b/static/web/_next/static/chunks/webpack-4f605c79a17f4038.js @@ -1 +1 @@ -!function(){"use strict";var e={},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}},u=!0;try{e[r].call(i.exports,i,i.exports,n),u=!1}finally{u&&delete t[r]}return i.loaded=!0,i.exports}n.m=e,n.amdO={},function(){var e=[];n.O=function(t,r,o,i){if(!r){var u=1/0;for(d=0;d=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[a])}))?r.splice(a--,1):(c=!1,i0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[r,o,i]}}(),n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var u={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){u[e]=function(){return r[e]}}));return u.default=function(){return r},n.d(i,u),i}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return 8939===e?"static/chunks/8939-b1631aef52fbaa8f.js":3903===e?"static/chunks/3903-1e79dad4c0cd3b68.js":3698===e?"static/chunks/3698-68c12d00e813fbb1.js":3626===e?"static/chunks/3626-e1c13c951477db78.js":8091===e?"static/chunks/8091-d7457a988f3f1d54.js":2944===e?"static/chunks/2944-6793cb651dad1c89.js":"static/chunks/"+e+"."+{786:"bda6a234b010d76b",1300:"4b32175d5676e8df",2365:"1fdb4082fa6c06b8",5135:"53533171eca4a3fd",7373:"1edc9c455c71cb1e",7610:"95543cd3023fceae",7735:"d76060cd6e9f5115",7741:"177818bb3887216e",7781:"c2410185d16b1336",8225:"b1ad83c90140af1a",9674:"1c5c39d7f2005e1c"}[e]+".js"},n.miniCssF=function(e){return"static/css/"+{955:"38031c0e461b403f",2365:"19d74602c45ee60b",2860:"7c735c05af084bb2",2888:"8716c80adba1ed55",3126:"50d4ea374f37f0f9",5135:"edb3f793b986286c",5405:"88e696b24c18d1ea",7373:"3de321ecac3cd01f",7735:"ffd83995160971e6",7781:"b92b45b3f2e03f44",8399:"87104b15c089124a",9181:"1f5ee95fffd43a71",9674:"ed28f196ebbc4ea9"}[e]+".css"},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="_N_E:";n.l=function(r,o,i,u){if(e[r])e[r].push(o);else{var c,a;if(void 0!==i)for(var f=document.getElementsByTagName("script"),d=0;d=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[f])}))?r.splice(f--,1):(c=!1,i0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[r,o,i]}}(),n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var u={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){u[e]=function(){return r[e]}}));return u.default=function(){return r},n.d(i,u),i}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return 8939===e?"static/chunks/8939-b1631aef52fbaa8f.js":3903===e?"static/chunks/3903-1e79dad4c0cd3b68.js":3698===e?"static/chunks/3698-68c12d00e813fbb1.js":3626===e?"static/chunks/3626-e1c13c951477db78.js":8091===e?"static/chunks/8091-d7457a988f3f1d54.js":2944===e?"static/chunks/2944-6793cb651dad1c89.js":"static/chunks/"+e+"."+{786:"bda6a234b010d76b",1300:"4b32175d5676e8df",2365:"e111da64ecd79b2c",5135:"53533171eca4a3fd",7373:"1edc9c455c71cb1e",7610:"95543cd3023fceae",7735:"df129ee8ae364d5e",7741:"177818bb3887216e",7781:"f2e7d91aa07a4804",8225:"b1ad83c90140af1a",9674:"1c5c39d7f2005e1c"}[e]+".js"},n.miniCssF=function(e){return"static/css/"+{955:"38031c0e461b403f",2365:"19d74602c45ee60b",2860:"7c735c05af084bb2",2888:"8716c80adba1ed55",3126:"50d4ea374f37f0f9",5135:"edb3f793b986286c",5405:"88e696b24c18d1ea",7373:"3de321ecac3cd01f",7735:"ffd83995160971e6",7781:"b92b45b3f2e03f44",8399:"87104b15c089124a",9181:"1f5ee95fffd43a71",9674:"ed28f196ebbc4ea9"}[e]+".css"},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="_N_E:";n.l=function(r,o,i,u){if(e[r])e[r].push(o);else{var c,f;if(void 0!==i)for(var a=document.getElementsByTagName("script"),d=0;dOwncast 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 c1295703f..3cb8ac87e 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 be0de103c..b299cfb34 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 25e6a25e8..10d1664ac 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 dbaec63a7..ae57ab291 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 c5ed367b9..f68af7663 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 78abea255..de94109da 100644 --- a/static/web/admin/config-notify/index.html +++ b/static/web/admin/config-notify/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

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


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

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

Browser Alerts

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

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

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

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

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

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

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


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

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

Browser Alerts

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

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

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

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

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

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file diff --git a/static/web/admin/config-public-details/index.html b/static/web/admin/config-public-details/index.html index c5c4892b8..3c477b9d1 100644 --- a/static/web/admin/config-public-details/index.html +++ b/static/web/admin/config-public-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

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

Custom Page Content

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


Customize your page styling with CSS

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

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


\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

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

Custom Page Content

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


Customize your page styling with CSS

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

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


\ No newline at end of file diff --git a/static/web/admin/config-server-details/index.html b/static/web/admin/config-server-details/index.html index c752c3610..a97cbe30b 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 b39d1d1b7..2ef9e6bbc 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 67459b010..bfdfed856 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 e4ff13f24..1e037c9c9 100644 --- a/static/web/admin/config-video/index.html +++ b/static/web/admin/config-video/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

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

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

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

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

LowestHighest

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

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

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

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

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

LowestHighest

\ No newline at end of file diff --git a/static/web/admin/federation/actions/index.html b/static/web/admin/federation/actions/index.html index a5e77a534..0d8141a89 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 dc4aa6930..9f34dbb1b 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 7c9ad23b1..903d29a92 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 4e64abb57..c795cc717 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 4425c1241..3198a0d72 100644 --- a/static/web/admin/index.html +++ b/static/web/admin/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file diff --git a/static/web/admin/logs/index.html b/static/web/admin/logs/index.html index 691dc4fd8..0894ad167 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 703da5812..949c97661 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 64ce6e7ce..8571443d9 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 4f0432fc3..bfebe9345 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 a305c9d3e..2b2ad7f5a 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 338e447d3..46c3c4241 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 208c8421b..74d4f7f3f 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 5879cd9c7..6b25a8c60 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 7b163d9c1..9063eb243 100644 --- a/static/web/index.html +++ b/static/web/index.html @@ -1,4 +1,4 @@
Chat offline
\ No newline at end of file +
Chat offline
\ No newline at end of file