diff --git a/static/web/404.html b/static/web/404.html index 3b74514cc..bfaf751c1 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 3b74514cc..bfaf751c1 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/CzRbFZGs9N03Y8TTVJgt5/_buildManifest.js b/static/web/_next/static/NE0mYZa8P8o9v8BdIf6qi/_buildManifest.js similarity index 93% rename from static/web/_next/static/CzRbFZGs9N03Y8TTVJgt5/_buildManifest.js rename to static/web/_next/static/NE0mYZa8P8o9v8BdIf6qi/_buildManifest.js index 5dee23680..535531974 100644 --- a/static/web/_next/static/CzRbFZGs9N03Y8TTVJgt5/_buildManifest.js +++ b/static/web/_next/static/NE0mYZa8P8o9v8BdIf6qi/_buildManifest.js @@ -1 +1 @@ -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-67e6717ddb4a7a5f.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-5595887f9035766a.js"],"/embed/chat/readwrite":[o,m,s,f,u,h,r,"static/css/38031c0e461b403f.css","static/chunks/pages/embed/chat/readwrite-951dea2889142856.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-9ae55b9430a3f922.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-5421073a370a323d.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-62661ede7922999d.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-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 diff --git a/static/web/_next/static/CzRbFZGs9N03Y8TTVJgt5/_ssgManifest.js b/static/web/_next/static/NE0mYZa8P8o9v8BdIf6qi/_ssgManifest.js similarity index 100% rename from static/web/_next/static/CzRbFZGs9N03Y8TTVJgt5/_ssgManifest.js rename to static/web/_next/static/NE0mYZa8P8o9v8BdIf6qi/_ssgManifest.js diff --git a/static/web/_next/static/chunks/1899-18f6a7fa5034eeb3.js b/static/web/_next/static/chunks/1899-18f6a7fa5034eeb3.js new file mode 100644 index 000000000..e742faa6c --- /dev/null +++ b/static/web/_next/static/chunks/1899-18f6a7fa5034eeb3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1899],{1899:function(e,t,n){n.d(t,{me:function(){return B},FI:function(){return T},Q:function(){return L},L4:function(){return Z},j$:function(){return m},ZA:function(){return F},g1:function(){return w},g8:function(){return P},db:function(){return k},ap:function(){return U},di:function(){return J},pT:function(){return V},hz:function(){return G},YW:function(){return Y},We:function(){return M},RI:function(){return I},pH:function(){return j},Gt:function(){return D}});var r=n(47568),a=n(26042),o=n(69396),i=n(828),c=n(29815),s=n(70655),u=n(67294),l=n(4480),f=n(23917);var d=n(51438),E=function(){function e(){(0,d.Z)(this,e)}return e.getConfig=function(){return(0,r.Z)((function(){return(0,s.__generator)(this,(function(e){switch(e.label){case 0:return[4,fetch("/api/config")];case 1:return[4,e.sent().json()];case 2:return[2,e.sent()]}}))}))()},e}(),h=n(58827),g=function(){function e(){(0,d.Z)(this,e)}return e.getChatHistory=function(e){return(0,r.Z)((function(){return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,h.$l)("".concat("/api/chat","?accessToken=").concat(e))];case 1:return[2,t.sent()]}}))}))()},e.registerUser=function(e){return(0,r.Z)((function(){var t;return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return t={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({displayName:e})},[4,(0,h.$l)("/api/chat/register",t)];case 1:return[2,n.sent()]}}))}))()},e}(),v=n(11622),p=function(){function e(t,n){(0,d.Z)(this,e),this.accessToken=t,this.path=n,this.createAndConnect()}var t=e.prototype;return t.createAndConnect=function(){var e=new URL(window.location.toString());e.protocol="https:"===window.location.protocol?"wss:":"ws:",e.pathname="/ws",e.port="3000"===window.location.port?"8080":window.location.port,e.searchParams.append("accessToken",this.accessToken),console.debug("connecting to ",e.toString());var t=new WebSocket(e.toString());t.onopen=this.onOpen.bind(this),t.onerror=this.onError.bind(this),t.onmessage=this.onMessage.bind(this),this.websocket=t},t.onOpen=function(){this.websocketReconnectTimer&&clearTimeout(this.websocketReconnectTimer)},t.onError=function(e){var t;console.error(e),t="Socket error: ".concat(e),console.error("Chat has been disconnected and is likely not working for you. It's possible you were removed from chat. If this is a server configuration issue, visit troubleshooting steps to resolve. https://owncast.online/docs/troubleshooting/#chat-is-disabled: ".concat(t)),this.websocket.close()},t.onMessage=function(e){for(var t,n=e.data.split("\n"),r=0;r getConfig() ERROR: \n".concat(t)),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),Ee=function(){var e=(0,r.Z)((function(){var e,t,n,r;return(0,s.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,A.getStatus()];case 1:return e=a.sent(),j(e),ie(!0),t=e.serverTime,n=new Date(t).getTime()-Date.now(),B(n),e.online?fe(y.Online):e.online||fe(y.Offline),z(null),[3,3];case 2:return r=a.sent(),fe(y.Fail),le("Unable to reach Owncast server","Owncast cannot launch. Please make sure the Owncast server is running."),console.error("serverStatusState -> getStatus() ERROR: \n".concat(r)),[3,3];case 3:return[2,null]}}))}));return function(){return e.apply(this,arguments)}}(),he=function(){var e=(0,r.Z)((function(e){var t,n,r,i,c,u;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:if(t=(0,O.$o)(b))return x(t),[2];s.label=1;case 1:return s.trys.push([1,3,,4]),fe(y.NeedsRegister),[4,g.registerUser(e)];case 2:return n=s.sent(),console.log("ChatService -> registerUser() response: \n".concat(n)),r=n.accessToken,i=n.displayName,c=n.displayColor,r?(console.log("setting access token",r),F((0,o.Z)((0,a.Z)({},G),{displayName:i,displayColor:c})),x(r),(0,O.qQ)(b,r),[3,4]):[2];case 3:return u=s.sent(),fe(y.Fail),console.error("ChatService -> registerUser() ERROR: \n".concat(u)),[3,4];case 4:return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),ge=function(e){switch(e.type){case v.C.ERROR_NEEDS_REGISTRATION:(0,O.qQ)(b,""),x(null),he();break;case v.C.CONNECTED_USER_INFO:_(e,M,F),Q((function(t){return(0,c.Z)(t).concat([e])}));break;case v.C.CHAT:Q((function(t){return(0,c.Z)(t).concat([e])}));break;case v.C.NAME_CHANGE:C(e,$,Q);break;case v.C.USER_JOINED:case v.C.SYSTEM:Q((function(t){return(0,c.Z)(t).concat([e])}));break;case v.C.VISIBILITY_UPDATE:!function(e){var t=e.ids;if(e.visible){var n=ne.filter((function(e){return!t.includes(e)}));re(n)}else{var r=(0,c.Z)(ne).concat((0,c.Z)(t));re(r)}}(e);break;default:console.error("Unknown socket message type: ",e.type)}},ve=function(){var e=(0,r.Z)((function(){var e,t;return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,g.getChatHistory(q)];case 1:return e=n.sent(),Q((function(t){return(0,c.Z)(t).concat((0,c.Z)(e))})),[3,3];case 2:return t=n.sent(),console.error("ChatService -> getChatHistory() ERROR: \n".concat(t)),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),pe=function(){var t=(0,r.Z)((function(){return(0,s.__generator)(this,(function(t){try{(e=new p(q,"/ws")).handleMessage=ge,ee(e)}catch(n){console.error("ChatService -> startChat() ERROR: \n".concat(n))}return[2]}))}));return function(){return t.apply(this,arguments)}}();return(0,u.useEffect)((function(){try{if(window.configHydration){var e=JSON.parse(window.configHydration);Y(e)}}catch(n){}try{if(window.statusHydration){var t=JSON.parse(window.statusHydration);j(t)}}catch(r){}}),[]),(0,u.useEffect)((function(){oe&&se&&fe(y.Loaded)}),[oe,se]),(0,u.useEffect)((function(){!J.chatDisabled&&q&&se&&pe()}),[se,q]),(0,u.useEffect)((function(){de(),he(),Ee(),clearInterval(R),R=setInterval((function(){Ee()}),5e3)}),[n]),(0,u.useEffect)((function(){q&&ve()}),[q]),(0,u.useEffect)((function(){h.onTransition((function(e){if(e.changed){var t,n=(t=e.meta,Object.keys(t).reduce((function(e,n){var r=t[n];return Object.assign(e,r),e}),{}));K(n)}}))})),null}},11622:function(e,t,n){var r;n.d(t,{C:function(){return r}}),function(e){e.CHAT="CHAT",e.PING="PING",e.NAME_CHANGE="NAME_CHANGE",e.COLOR_CHANGE="COLOR_CHANGE",e.PONG="PONG",e.SYSTEM="SYSTEM",e.USER_JOINED="USER_JOINED",e.CHAT_ACTION="CHAT_ACTION",e.FEDIVERSE_ENGAGEMENT_FOLLOW="FEDIVERSE_ENGAGEMENT_FOLLOW",e.FEDIVERSE_ENGAGEMENT_LIKE="FEDIVERSE_ENGAGEMENT_LIKE",e.FEDIVERSE_ENGAGEMENT_REPOST="FEDIVERSE_ENGAGEMENT_REPOST",e.CONNECTED_USER_INFO="CONNECTED_USER_INFO",e.ERROR_USER_DISABLED="ERROR_USER_DISABLED",e.ERROR_NEEDS_REGISTRATION="ERROR_NEEDS_REGISTRATION",e.ERROR_MAX_CONNECTIONS_EXCEEDED="ERROR_MAX_CONNECTIONS_EXCEEDED",e.VISIBILITY_UPDATE="VISIBILITY-UPDATE"}(r||(r={}))},73682:function(e,t,n){n.d(t,{$o:function(){return a},dA:function(){return r},qQ:function(){return o}});var r={username:"username",hasDisplayedNotificationModal:"HAS_DISPLAYED_NOTIFICATION_MODAL",userVisitCount:"USER_VISIT_COUNT"};function a(e){try{return localStorage.getItem(e)}catch(t){}return null}function o(e,t){try{return""!==t&&null!==t?localStorage.setItem(e,t):localStorage.removeItem(e),!0}catch(n){}return!1}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/1899-9ae55b9430a3f922.js b/static/web/_next/static/chunks/1899-9ae55b9430a3f922.js deleted file mode 100644 index 9fccd292a..000000000 --- a/static/web/_next/static/chunks/1899-9ae55b9430a3f922.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1899],{1899:function(e,t,n){n.d(t,{me:function(){return $},FI:function(){return D},Q:function(){return F},L4:function(){return L},nk:function(){return k},w4:function(){return w},j$:function(){return Z},uy:function(){return T},ZA:function(){return U},g1:function(){return I},g8:function(){return V},ap:function(){return H},di:function(){return j},fE:function(){return m},pT:function(){return Y},hz:function(){return M},YW:function(){return B},We:function(){return P},RI:function(){return b},pH:function(){return W},Gt:function(){return G}});var r=n(47568),a=n(828),o=n(29815),i=n(70655),c=n(67294),s=n(4480),u=n(23917);var l=n(51438),f=function(){function e(){(0,l.Z)(this,e)}return e.getConfig=function(){return(0,r.Z)((function(){return(0,i.__generator)(this,(function(e){switch(e.label){case 0:return[4,fetch("/api/config")];case 1:return[4,e.sent().json()];case 2:return[2,e.sent()]}}))}))()},e}(),d=n(58827),E=function(){function e(){(0,l.Z)(this,e)}return e.getChatHistory=function(e){return(0,r.Z)((function(){return(0,i.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,d.$l)("".concat("/api/chat","?accessToken=").concat(e))];case 1:return[2,t.sent()]}}))}))()},e.registerUser=function(e){return(0,r.Z)((function(){var t;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return t={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({displayName:e})},[4,(0,d.$l)("/api/chat/register",t)];case 1:return[2,n.sent()]}}))}))()},e}(),h=n(11622),g=function(){function e(t,n){(0,l.Z)(this,e),this.accessToken=t,this.path=n,this.createAndConnect()}var t=e.prototype;return t.createAndConnect=function(){var e=new URL(window.location.toString());e.protocol="https:"===window.location.protocol?"wss:":"ws:",e.pathname="/ws",e.port="3000"===window.location.port?"8080":window.location.port,e.searchParams.append("accessToken",this.accessToken),console.debug("connecting to ",e.toString());var t=new WebSocket(e.toString());t.onopen=this.onOpen.bind(this),t.onerror=this.onError.bind(this),t.onmessage=this.onMessage.bind(this),this.websocket=t},t.onOpen=function(){this.websocketReconnectTimer&&clearTimeout(this.websocketReconnectTimer)},t.onError=function(e){var t;console.error(e),t="Socket error: ".concat(e),console.error("Chat has been disconnected and is likely not working for you. It's possible you were removed from chat. If this is a server configuration issue, visit troubleshooting steps to resolve. https://owncast.online/docs/troubleshooting/#chat-is-disabled: ".concat(t)),this.websocket.close()},t.onMessage=function(e){for(var t,n=e.data.split("\n"),r=0;r getConfig() ERROR: \n".concat(t)),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),ge=function(){var e=(0,r.Z)((function(){var e,t,n,r;return(0,i.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,_.getStatus()];case 1:return e=a.sent(),W(e),se(!0),t=e.serverTime,n=new Date(t).getTime()-Date.now(),$(n),e.online?Ee(y.Online):e.online||Ee(y.Offline),te(null),[3,3];case 2:return r=a.sent(),Ee(y.Fail),de("Unable to reach Owncast server","Owncast cannot launch. Please make sure the Owncast server is running."),console.error("serverStatusState -> getStatus() ERROR: \n".concat(r)),[3,3];case 3:return[2,null]}}))}));return function(){return e.apply(this,arguments)}}(),ve=function(){var e=(0,r.Z)((function(e){var t,n,r,a,o,c;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if(t=(0,N.$o)(C))return z(t),[2];i.label=1;case 1:return i.trys.push([1,3,,4]),Ee(y.NeedsRegister),[4,E.registerUser(e)];case 2:return n=i.sent(),console.log("ChatService -> registerUser() response: \n".concat(n)),r=n.accessToken,a=n.displayName,o=n.displayColor,r?(console.log("setting access token",r),z(r),(0,N.qQ)(C,r),v(a),p(o),[3,4]):[2];case 3:return c=i.sent(),Ee(y.Fail),console.error("ChatService -> registerUser() ERROR: \n".concat(c)),[3,4];case 4:return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),pe=function(e){switch(e.type){case h.C.ERROR_NEEDS_REGISTRATION:(0,N.qQ)(C,""),z(""),ve();break;case h.C.CONNECTED_USER_INFO:O(e,v,p,M,P,U),q((function(t){return(0,o.Z)(t).concat([e])}));break;case h.C.CHAT:q((function(t){return(0,o.Z)(t).concat([e])}));break;case h.C.NAME_CHANGE:R(e,X,q);break;case h.C.USER_JOINED:case h.C.SYSTEM:q((function(t){return(0,o.Z)(t).concat([e])}));break;case h.C.VISIBILITY_UPDATE:!function(e){var t=e.ids;if(e.visible){var n=ae.filter((function(e){return!t.includes(e)}));oe(n)}else{var r=(0,o.Z)(ae).concat((0,o.Z)(t));oe(r)}}(e);break;default:console.error("Unknown socket message type: ",e.type)}},ye=function(){var e=(0,r.Z)((function(){var e,t;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,E.getChatHistory(K)];case 1:return e=n.sent(),q((function(t){return(0,o.Z)(t).concat((0,o.Z)(e))})),[3,3];case 2:return t=n.sent(),console.error("ChatService -> getChatHistory() ERROR: \n".concat(t)),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),Se=function(){var t=(0,r.Z)((function(){return(0,i.__generator)(this,(function(t){try{(e=new g(K,"/ws")).handleMessage=pe,ne(e)}catch(n){console.error("ChatService -> startChat() ERROR: \n".concat(n))}return[2]}))}));return function(){return t.apply(this,arguments)}}();return(0,c.useEffect)((function(){try{if(window.configHydration){var e=JSON.parse(window.configHydration);B(e)}}catch(n){}try{if(window.statusHydration){var t=JSON.parse(window.statusHydration);W(t)}}catch(r){}}),[]),(0,c.useEffect)((function(){ce&&le&&Ee(y.Loaded)}),[ce,le]),(0,c.useEffect)((function(){!j.chatDisabled&&K&&le&&Se()}),[le,K]),(0,c.useEffect)((function(){he(),ve(),ge(),clearInterval(A),A=setInterval((function(){ge()}),5e3)}),[n]),(0,c.useEffect)((function(){K&&ye()}),[K]),(0,c.useEffect)((function(){d.onTransition((function(e){if(e.changed){var t,n=(t=e.meta,Object.keys(t).reduce((function(e,n){var r=t[n];return Object.assign(e,r),e}),{}));ee(n)}}))})),null}},11622:function(e,t,n){var r;n.d(t,{C:function(){return r}}),function(e){e.CHAT="CHAT",e.PING="PING",e.NAME_CHANGE="NAME_CHANGE",e.COLOR_CHANGE="COLOR_CHANGE",e.PONG="PONG",e.SYSTEM="SYSTEM",e.USER_JOINED="USER_JOINED",e.CHAT_ACTION="CHAT_ACTION",e.FEDIVERSE_ENGAGEMENT_FOLLOW="FEDIVERSE_ENGAGEMENT_FOLLOW",e.FEDIVERSE_ENGAGEMENT_LIKE="FEDIVERSE_ENGAGEMENT_LIKE",e.FEDIVERSE_ENGAGEMENT_REPOST="FEDIVERSE_ENGAGEMENT_REPOST",e.CONNECTED_USER_INFO="CONNECTED_USER_INFO",e.ERROR_USER_DISABLED="ERROR_USER_DISABLED",e.ERROR_NEEDS_REGISTRATION="ERROR_NEEDS_REGISTRATION",e.ERROR_MAX_CONNECTIONS_EXCEEDED="ERROR_MAX_CONNECTIONS_EXCEEDED",e.VISIBILITY_UPDATE="VISIBILITY-UPDATE"}(r||(r={}))},73682:function(e,t,n){n.d(t,{$o:function(){return a},dA:function(){return r},qQ:function(){return o}});var r={username:"username",hasDisplayedNotificationModal:"HAS_DISPLAYED_NOTIFICATION_MODAL",userVisitCount:"USER_VISIT_COUNT"};function a(e){try{return localStorage.getItem(e)}catch(t){}return null}function o(e,t){try{return""!==t&&null!==t?localStorage.setItem(e,t):localStorage.removeItem(e),!0}catch(n){}return!1}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/8225.4dd26c9f3db1b3d0.js b/static/web/_next/static/chunks/8225.4dd26c9f3db1b3d0.js deleted file mode 100644 index 9c2388d7a..000000000 --- a/static/web/_next/static/chunks/8225.4dd26c9f3db1b3d0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8225],{98225:function(e,n,t){t.r(n),t.d(n,{NameChangeModal:function(){return f}});var r=t(29815),o=t(85893),a=t(67294),u=t(4480),i=t(38939),s=t(69677),l=t(71577),c=t(11622),h=t(1899),d=i.Z.Option,C=function(e){var n=e.color,t={textAlign:"center",backgroundColor:"var(--theme-color-users-".concat(n,")"),width:"100%",height:"100%"};return(0,o.jsx)("div",{style:t})},f=function(){var e=(0,u.sJ)(h.Gt),n=(0,u.sJ)(h.w4),t=(0,u.sJ)(h.nk)||0,f=(0,a.useState)(n),p=f[0],g=f[1],m=p!==n&&""!==p&&(null===e||void 0===e?void 0:e.isConnected()),v=(0,r.Z)(Array(8)).map((function(e,n){return n}));return(0,o.jsxs)("div",{children:["Your chat display name is what people see when you send chat messages. Other information can go here to mention auth, and stuff.",(0,o.jsx)(s.Z,{value:p,onChange:function(e){return g(e.target.value)},placeholder:"Your chat display name",maxLength:30,showCount:!0,defaultValue:n}),(0,o.jsx)(l.Z,{disabled:!m,onClick:function(){var n={type:c.C.NAME_CHANGE,newName:p};e.send(n)},children:"Change name"}),(0,o.jsxs)("div",{children:["Your Color",(0,o.jsx)(i.Z,{style:{width:120},onChange:function(n){var t={type:c.C.COLOR_CHANGE,newColor:Number(n)};e.send(t)},defaultValue:t.toString(),getPopupContainer:function(e){return e.parentElement},children:v.map((function(e){return(0,o.jsx)(d,{title:e,children:(0,o.jsx)(C,{color:e})},e.toString())}))})]})]})}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/8225.b1ad83c90140af1a.js b/static/web/_next/static/chunks/8225.b1ad83c90140af1a.js new file mode 100644 index 000000000..e5320b3e5 --- /dev/null +++ b/static/web/_next/static/chunks/8225.b1ad83c90140af1a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8225],{98225:function(e,n,t){t.r(n),t.d(n,{NameChangeModal:function(){return f}});var r=t(29815),a=t(85893),o=t(67294),i=t(4480),u=t(38939),l=t(69677),s=t(71577),c=t(11622),d=t(1899),h=u.Z.Option,C=function(e){var n=e.color,t={textAlign:"center",backgroundColor:"var(--theme-color-users-".concat(n,")"),width:"100%",height:"100%"};return(0,a.jsx)("div",{style:t})},f=function(){var e=(0,i.sJ)(d.db);if(!e)return null;var n=e.displayName,t=e.displayColor,f=(0,i.sJ)(d.Gt),p=(0,o.useState)(n),m=p[0],g=p[1],v=m!==n&&""!==m&&(null===f||void 0===f?void 0:f.isConnected()),x=(0,r.Z)(Array(8)).map((function(e,n){return n}));return(0,a.jsxs)("div",{children:["Your chat display name is what people see when you send chat messages. Other information can go here to mention auth, and stuff.",(0,a.jsx)(l.Z,{value:m,onChange:function(e){return g(e.target.value)},placeholder:"Your chat display name",maxLength:30,showCount:!0,defaultValue:n}),(0,a.jsx)(s.Z,{disabled:!v,onClick:function(){var e={type:c.C.NAME_CHANGE,newName:m};f.send(e)},children:"Change name"}),(0,a.jsxs)("div",{children:["Your Color",(0,a.jsx)(u.Z,{style:{width:120},onChange:function(e){var n={type:c.C.COLOR_CHANGE,newColor:Number(e)};f.send(n)},defaultValue:t.toString(),getPopupContainer:function(e){return e.parentElement},children:x.map((function(e){return(0,a.jsx)(h,{title:e,children:(0,a.jsx)(C,{color:e})},e.toString())}))})]})]})}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/9674.3b07138ac351a119.js b/static/web/_next/static/chunks/9674.1c5c39d7f2005e1c.js similarity index 94% rename from static/web/_next/static/chunks/9674.3b07138ac351a119.js rename to static/web/_next/static/chunks/9674.1c5c39d7f2005e1c.js index f6fa6b11c..576cf6ec4 100644 --- a/static/web/_next/static/chunks/9674.3b07138ac351a119.js +++ b/static/web/_next/static/chunks/9674.1c5c39d7f2005e1c.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9674],{54907:function(e,n,t){"use strict";t.d(n,{Z:function(){return _}});var a=t(87462),r=t(4942),i=t(18073),s=t(94184),o=t.n(s),c=t(74902),l=t(15671),u=t(43144),d=t(60136),p=t(33643),h=t(71002),v=t(67294),f=t(96774),m=t.n(f),y=t(50344),x=t(62874),g=t(97685),Z=v.forwardRef((function(e,n){var t,a=e.prefixCls,i=e.forceRender,s=e.className,c=e.style,l=e.children,u=e.isActive,d=e.role,p=v.useState(u||i),h=(0,g.Z)(p,2),f=h[0],m=h[1];return v.useEffect((function(){(i||u)&&m(!0)}),[i,u]),f?v.createElement("div",{ref:n,className:o()("".concat(a,"-content"),(t={},(0,r.Z)(t,"".concat(a,"-content-active"),u),(0,r.Z)(t,"".concat(a,"-content-inactive"),!u),t),s),style:c,role:d},v.createElement("div",{className:"".concat(a,"-content-box")},l)):null}));Z.displayName="PanelContent";var b=Z,C=function(e){(0,d.Z)(t,e);var n=(0,p.Z)(t);function t(){var e;(0,l.Z)(this,t);for(var a=arguments.length,r=new Array(a),i=0;i-1?n.splice(t,1):n.push(e)}a.setActiveKey(n)},a.getNewChild=function(e,n){if(!e)return null;var t=a.state.activeKey,r=a.props,i=r.prefixCls,s=r.openMotion,o=r.accordion,c=r.destroyInactivePanel,l=r.expandIcon,u=r.collapsible,d=e.key||String(n),p=e.props,h=p.header,f=p.headerClass,m=p.destroyInactivePanel,y=p.collapsible,x=null!==y&&void 0!==y?y:u,g={key:d,panelKey:d,header:h,headerClass:f,isActive:o?t[0]===d:t.indexOf(d)>-1,prefixCls:i,destroyInactivePanel:null!==m&&void 0!==m?m:c,openMotion:s,accordion:o,children:e.props.children,onItemClick:"disabled"===x?null:a.onClickItem,expandIcon:l,collapsible:x};return"string"===typeof e.type?e:(Object.keys(g).forEach((function(e){"undefined"===typeof g[e]&&delete g[e]})),v.cloneElement(e,g))},a.getItems=function(){var e=a.props.children;return(0,y.Z)(e).map(a.getNewChild)},a.setActiveKey=function(e){"activeKey"in a.props||a.setState({activeKey:e}),a.props.onChange(a.props.accordion?e[0]:e)};var r=e.activeKey,i=e.defaultActiveKey;return"activeKey"in e&&(i=r),a.state={activeKey:j(i)},a}return(0,u.Z)(t,[{key:"shouldComponentUpdate",value:function(e,n){return!m()(this.props,e)||!m()(this.state,n)}},{key:"render",value:function(){var e,n=this.props,t=n.prefixCls,a=n.className,i=n.style,s=n.accordion,c=o()((e={},(0,r.Z)(e,t,!0),(0,r.Z)(e,a,!!a),e));return v.createElement("div",{className:c,style:i,role:s?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(e){var n={};return"activeKey"in e&&(n.activeKey=j(e.activeKey)),n}}]),t}(v.Component);k.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},k.Panel=N;var w=k,I=(k.Panel,t(98423)),E=t(53124),S=t(33603),A=t(96159),P=function(e){var n,t=v.useContext(E.E_),s=t.getPrefixCls,c=t.direction,l=e.prefixCls,u=e.className,d=void 0===u?"":u,p=e.bordered,h=void 0===p||p,f=e.ghost,m=e.expandIconPosition,x=void 0===m?"start":m,g=s("collapse",l),Z=v.useMemo((function(){return"left"===x?"start":"right"===x?"end":x}),[x]),b=o()("".concat(g,"-icon-position-").concat(Z),(n={},(0,r.Z)(n,"".concat(g,"-borderless"),!h),(0,r.Z)(n,"".concat(g,"-rtl"),"rtl"===c),(0,r.Z)(n,"".concat(g,"-ghost"),!!f),n),d),C=(0,a.Z)((0,a.Z)({},S.ZP),{motionAppear:!1,leavedClassName:"".concat(g,"-content-hidden")});return v.createElement(w,(0,a.Z)({openMotion:C},e,{expandIcon:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.expandIcon,a=t?t(n):v.createElement(i.Z,{rotate:n.isActive?90:void 0});return(0,A.Tm)(a,(function(){return{className:o()(a.props.className,"".concat(g,"-arrow"))}}))},prefixCls:g,className:b}),function(){var n=e.children;return(0,y.Z)(n).map((function(e,n){var t;if(null===(t=e.props)||void 0===t?void 0:t.disabled){var r=e.key||String(n),i=e.props,s=i.disabled,o=i.collapsible,c=(0,a.Z)((0,a.Z)({},(0,I.Z)(e.props,["disabled"])),{key:r,collapsible:null!==o&&void 0!==o?o:s?"disabled":void 0});return(0,A.Tm)(e,c)}return e}))}())};P.Panel=function(e){var n=v.useContext(E.E_).getPrefixCls,t=e.prefixCls,i=e.className,s=void 0===i?"":i,c=e.showArrow,l=void 0===c||c,u=n("collapse",t),d=o()((0,r.Z)({},"".concat(u,"-no-arrow"),!l),s);return v.createElement(w.Panel,(0,a.Z)({},e,{prefixCls:u,className:d}))};var _=P},11382:function(e,n,t){"use strict";var a=t(87462),r=t(4942),i=t(15671),s=t(43144),o=t(60136),c=t(33643),l=t(94184),u=t.n(l),d=t(23279),p=t.n(d),h=t(98423),v=t(67294),f=t(53124),m=t(96159),y=t(93355),x=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r0?"error":void 0,onPressEnter:P,enterButton:(0,a.jsx)(v.Z,{onClick:P,disabled:!j,children:"Authenticate with your domain"})}),(0,a.jsx)(c.Z,{ghost:!0,children:(0,a.jsxs)(y,{header:"Learn more about using IndieAuth to authenticate with chat.",children:[(0,a.jsx)("p",{children:"IndieAuth allows for a completely independent and decentralized way of identifying yourself using your own domain."}),(0,a.jsxs)("p",{children:["If you run an Owncast instance, you can use that domain here. Otherwise,"," ",(0,a.jsx)(x,{href:"https://indieauth.net/#providers",children:"learn more about how you can support IndieAuth"}),"."]})]},"header")}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Note"}),": This is for authentication purposes only, and no personal information will be accessed or stored."]})]})})},Z=t(55237),b=t.n(Z);var C=c.Z.Panel,N=function(e){var n=e.authenticated,t=e.displayName,r=e.accessToken,i=(0,f.useState)(null),l=i[0],m=i[1],y=(0,f.useState)(!1),x=y[0],g=y[1],Z=(0,f.useState)(!1),N=Z[0],j=Z[1],k=(0,f.useState)(""),w=k[0],I=k[1],E=(0,f.useState)(""),S=E[0],A=E[1],P=(0,f.useState)(!1),_=P[0],T=P[1],K=n?(0,a.jsxs)("span",{children:[(0,a.jsx)("b",{children:"You are already authenticated"}),". However, you can add other domains or log in as a different user."]}):(0,a.jsxs)("span",{children:["Receive a direct message on the Fediverse to link your account to"," ",(0,a.jsx)("strong",{children:t}),", or login as a previously linked chat user."]}),O=l;O&&O.includes("url does not support indieauth")&&(O="The provided URL is either invalid or does not support IndieAuth.");var F=function(e){j(function(e){var n=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(n).toLowerCase())}(e))},M=function(){var e=(0,s.Z)((function(e,n){var t;return(0,o.__generator)(this,(function(a){switch(a.label){case 0:return[4,fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})];case 1:return[4,a.sent().json()];case 2:return(t=a.sent()).message&&(m(t.message),g(!1)),[2]}}))}));return function(n,t){return e.apply(this,arguments)}}(),U=function(){var e=(0,s.Z)((function(){var e,n,t;return(0,o.__generator)(this,(function(a){switch(a.label){case 0:g(!0),e="/api/auth/fediverse/verify?accessToken=".concat(r),n={code:S},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,M(e,n)];case 2:return a.sent(),window.location.href="/",[3,4];case 3:return t=a.sent(),console.error(t),m(t),[3,4];case 4:return g(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}(),R=function(){var e=(0,s.Z)((function(){var e,n,t,a;return(0,o.__generator)(this,(function(i){switch(i.label){case 0:if(!N)return[2];g(!0),m(null),e="/api/auth/fediverse?accessToken=".concat(r),n=w.replace(/^@+/,""),t={account:n},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,M(e,t)];case 2:return i.sent(),T(!0),[3,4];case 3:return a=i.sent(),console.error(a),m(a),[3,4];case 4:return g(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}(),L=(0,a.jsxs)("div",{children:["Paste in the code that was sent to your Fediverse account. If you did not receive a code, make sure you can accept direct messages.",(0,a.jsxs)("div",{className:b().codeInputContainer,children:[(0,a.jsx)(h.Z,{value:S,onChange:function(e){return A(e.target.value)},className:b().codeInput,placeholder:"123456",maxLength:6}),(0,a.jsx)(v.Z,{type:"primary",onClick:U,disabled:S.length<6,className:b().submitButton,children:"Verify Code"})]})]}),B=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{children:"Your Fediverse Account"}),(0,a.jsx)(h.Z.Search,{addonBefore:"@",onInput:function(e){I(e.target.value),F(e.target.value)},value:w,placeholder:"youraccount@yourserver.com",status:!N&&w.length>0?"error":void 0,onPressEnter:R,enterButton:(0,a.jsx)(v.Z,{onClick:R,disabled:!N,children:"Authenticate with Fediverse"})})]});return(0,a.jsx)(u.Z,{spinning:x,children:(0,a.jsxs)(d.Z,{direction:"vertical",children:[K,O&&(0,a.jsx)(p.Z,{message:"Error",description:O,type:"error",showIcon:!0}),_?L:B,(0,a.jsx)(c.Z,{ghost:!0,children:(0,a.jsx)(C,{header:"Learn more about using the Fediverse to authenticate with chat.",children:(0,a.jsx)("p",{children:"xxxxxx"})},"header")}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Note"}),": This is for authentication purposes only, and no personal information will be accessed or stored."]})]})})},j="/_next/static/media/fediverse-black.0b51c805.png",k="/_next/static/media/indieauth.38c52a3d.png",w=t(67211),I=t.n(w),E=t(1899),S=r.Z.TabPane,A=function(){var e=(0,i.sJ)(E.w4),n=(0,i.sJ)(E.L4),t=(0,i.sJ)(E.FI);return(0,a.jsx)("div",{children:(0,a.jsxs)(r.Z,{defaultActiveKey:"1",type:"card",size:"small",renderTabBar:null,children:[(0,a.jsx)(S,{tab:(0,a.jsxs)("span",{className:I().tabContent,children:[(0,a.jsx)("img",{className:I().icon,src:k,alt:"IndieAuth"}),"IndieAuth"]}),children:(0,a.jsx)(g,{authenticated:n,displayName:e,accessToken:t})},"1"),(0,a.jsx)(S,{tab:(0,a.jsxs)("span",{className:I().tabContent,children:[(0,a.jsx)("img",{className:I().icon,src:j,alt:"Fediverse auth"}),"FediAuth"]}),children:(0,a.jsx)(N,{authenticated:n,displayName:e,accessToken:t})},"2")]})})}},67211:function(e){e.exports={tabContent:"AuthModal_tabContent__KgMU3",icon:"AuthModal_icon__kpEuV"}},55237:function(e){e.exports={codeInputContainer:"FediAuthModal_codeInputContainer__M_dAD",codeInput:"FediAuthModal_codeInput__dIE6u",submitButton:"FediAuthModal_submitButton__iuF9R"}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9674],{54907:function(e,n,t){"use strict";t.d(n,{Z:function(){return _}});var a=t(87462),r=t(4942),i=t(18073),s=t(94184),o=t.n(s),c=t(74902),l=t(15671),u=t(43144),d=t(60136),p=t(33643),h=t(71002),v=t(67294),f=t(96774),m=t.n(f),y=t(50344),x=t(62874),g=t(97685),Z=v.forwardRef((function(e,n){var t,a=e.prefixCls,i=e.forceRender,s=e.className,c=e.style,l=e.children,u=e.isActive,d=e.role,p=v.useState(u||i),h=(0,g.Z)(p,2),f=h[0],m=h[1];return v.useEffect((function(){(i||u)&&m(!0)}),[i,u]),f?v.createElement("div",{ref:n,className:o()("".concat(a,"-content"),(t={},(0,r.Z)(t,"".concat(a,"-content-active"),u),(0,r.Z)(t,"".concat(a,"-content-inactive"),!u),t),s),style:c,role:d},v.createElement("div",{className:"".concat(a,"-content-box")},l)):null}));Z.displayName="PanelContent";var b=Z,C=function(e){(0,d.Z)(t,e);var n=(0,p.Z)(t);function t(){var e;(0,l.Z)(this,t);for(var a=arguments.length,r=new Array(a),i=0;i-1?n.splice(t,1):n.push(e)}a.setActiveKey(n)},a.getNewChild=function(e,n){if(!e)return null;var t=a.state.activeKey,r=a.props,i=r.prefixCls,s=r.openMotion,o=r.accordion,c=r.destroyInactivePanel,l=r.expandIcon,u=r.collapsible,d=e.key||String(n),p=e.props,h=p.header,f=p.headerClass,m=p.destroyInactivePanel,y=p.collapsible,x=null!==y&&void 0!==y?y:u,g={key:d,panelKey:d,header:h,headerClass:f,isActive:o?t[0]===d:t.indexOf(d)>-1,prefixCls:i,destroyInactivePanel:null!==m&&void 0!==m?m:c,openMotion:s,accordion:o,children:e.props.children,onItemClick:"disabled"===x?null:a.onClickItem,expandIcon:l,collapsible:x};return"string"===typeof e.type?e:(Object.keys(g).forEach((function(e){"undefined"===typeof g[e]&&delete g[e]})),v.cloneElement(e,g))},a.getItems=function(){var e=a.props.children;return(0,y.Z)(e).map(a.getNewChild)},a.setActiveKey=function(e){"activeKey"in a.props||a.setState({activeKey:e}),a.props.onChange(a.props.accordion?e[0]:e)};var r=e.activeKey,i=e.defaultActiveKey;return"activeKey"in e&&(i=r),a.state={activeKey:j(i)},a}return(0,u.Z)(t,[{key:"shouldComponentUpdate",value:function(e,n){return!m()(this.props,e)||!m()(this.state,n)}},{key:"render",value:function(){var e,n=this.props,t=n.prefixCls,a=n.className,i=n.style,s=n.accordion,c=o()((e={},(0,r.Z)(e,t,!0),(0,r.Z)(e,a,!!a),e));return v.createElement("div",{className:c,style:i,role:s?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(e){var n={};return"activeKey"in e&&(n.activeKey=j(e.activeKey)),n}}]),t}(v.Component);k.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},k.Panel=N;var w=k,I=(k.Panel,t(98423)),E=t(53124),S=t(33603),A=t(96159),P=function(e){var n,t=v.useContext(E.E_),s=t.getPrefixCls,c=t.direction,l=e.prefixCls,u=e.className,d=void 0===u?"":u,p=e.bordered,h=void 0===p||p,f=e.ghost,m=e.expandIconPosition,x=void 0===m?"start":m,g=s("collapse",l),Z=v.useMemo((function(){return"left"===x?"start":"right"===x?"end":x}),[x]),b=o()("".concat(g,"-icon-position-").concat(Z),(n={},(0,r.Z)(n,"".concat(g,"-borderless"),!h),(0,r.Z)(n,"".concat(g,"-rtl"),"rtl"===c),(0,r.Z)(n,"".concat(g,"-ghost"),!!f),n),d),C=(0,a.Z)((0,a.Z)({},S.ZP),{motionAppear:!1,leavedClassName:"".concat(g,"-content-hidden")});return v.createElement(w,(0,a.Z)({openMotion:C},e,{expandIcon:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.expandIcon,a=t?t(n):v.createElement(i.Z,{rotate:n.isActive?90:void 0});return(0,A.Tm)(a,(function(){return{className:o()(a.props.className,"".concat(g,"-arrow"))}}))},prefixCls:g,className:b}),function(){var n=e.children;return(0,y.Z)(n).map((function(e,n){var t;if(null===(t=e.props)||void 0===t?void 0:t.disabled){var r=e.key||String(n),i=e.props,s=i.disabled,o=i.collapsible,c=(0,a.Z)((0,a.Z)({},(0,I.Z)(e.props,["disabled"])),{key:r,collapsible:null!==o&&void 0!==o?o:s?"disabled":void 0});return(0,A.Tm)(e,c)}return e}))}())};P.Panel=function(e){var n=v.useContext(E.E_).getPrefixCls,t=e.prefixCls,i=e.className,s=void 0===i?"":i,c=e.showArrow,l=void 0===c||c,u=n("collapse",t),d=o()((0,r.Z)({},"".concat(u,"-no-arrow"),!l),s);return v.createElement(w.Panel,(0,a.Z)({},e,{prefixCls:u,className:d}))};var _=P},11382:function(e,n,t){"use strict";var a=t(87462),r=t(4942),i=t(15671),s=t(43144),o=t(60136),c=t(33643),l=t(94184),u=t.n(l),d=t(23279),p=t.n(d),h=t(98423),v=t(67294),f=t(53124),m=t(96159),y=t(93355),x=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r0?"error":void 0,onPressEnter:P,enterButton:(0,a.jsx)(v.Z,{onClick:P,disabled:!j,children:"Authenticate with your domain"})}),(0,a.jsx)(c.Z,{ghost:!0,children:(0,a.jsxs)(y,{header:"Learn more about using IndieAuth to authenticate with chat.",children:[(0,a.jsx)("p",{children:"IndieAuth allows for a completely independent and decentralized way of identifying yourself using your own domain."}),(0,a.jsxs)("p",{children:["If you run an Owncast instance, you can use that domain here. Otherwise,"," ",(0,a.jsx)(x,{href:"https://indieauth.net/#providers",children:"learn more about how you can support IndieAuth"}),"."]})]},"header")}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Note"}),": This is for authentication purposes only, and no personal information will be accessed or stored."]})]})})},Z=t(55237),b=t.n(Z);var C=c.Z.Panel,N=function(e){var n=e.authenticated,t=e.displayName,r=e.accessToken,i=(0,f.useState)(null),l=i[0],m=i[1],y=(0,f.useState)(!1),x=y[0],g=y[1],Z=(0,f.useState)(!1),N=Z[0],j=Z[1],k=(0,f.useState)(""),w=k[0],I=k[1],E=(0,f.useState)(""),S=E[0],A=E[1],P=(0,f.useState)(!1),_=P[0],T=P[1],K=n?(0,a.jsxs)("span",{children:[(0,a.jsx)("b",{children:"You are already authenticated"}),". However, you can add other domains or log in as a different user."]}):(0,a.jsxs)("span",{children:["Receive a direct message on the Fediverse to link your account to"," ",(0,a.jsx)("strong",{children:t}),", or login as a previously linked chat user."]}),O=l;O&&O.includes("url does not support indieauth")&&(O="The provided URL is either invalid or does not support IndieAuth.");var F=function(e){j(function(e){var n=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(n).toLowerCase())}(e))},M=function(){var e=(0,s.Z)((function(e,n){var t;return(0,o.__generator)(this,(function(a){switch(a.label){case 0:return[4,fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})];case 1:return[4,a.sent().json()];case 2:return(t=a.sent()).message&&(m(t.message),g(!1)),[2]}}))}));return function(n,t){return e.apply(this,arguments)}}(),U=function(){var e=(0,s.Z)((function(){var e,n,t;return(0,o.__generator)(this,(function(a){switch(a.label){case 0:g(!0),e="/api/auth/fediverse/verify?accessToken=".concat(r),n={code:S},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,M(e,n)];case 2:return a.sent(),window.location.href="/",[3,4];case 3:return t=a.sent(),console.error(t),m(t),[3,4];case 4:return g(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}(),R=function(){var e=(0,s.Z)((function(){var e,n,t,a;return(0,o.__generator)(this,(function(i){switch(i.label){case 0:if(!N)return[2];g(!0),m(null),e="/api/auth/fediverse?accessToken=".concat(r),n=w.replace(/^@+/,""),t={account:n},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,M(e,t)];case 2:return i.sent(),T(!0),[3,4];case 3:return a=i.sent(),console.error(a),m(a),[3,4];case 4:return g(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}(),L=(0,a.jsxs)("div",{children:["Paste in the code that was sent to your Fediverse account. If you did not receive a code, make sure you can accept direct messages.",(0,a.jsxs)("div",{className:b().codeInputContainer,children:[(0,a.jsx)(h.Z,{value:S,onChange:function(e){return A(e.target.value)},className:b().codeInput,placeholder:"123456",maxLength:6}),(0,a.jsx)(v.Z,{type:"primary",onClick:U,disabled:S.length<6,className:b().submitButton,children:"Verify Code"})]})]}),B=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{children:"Your Fediverse Account"}),(0,a.jsx)(h.Z.Search,{addonBefore:"@",onInput:function(e){I(e.target.value),F(e.target.value)},value:w,placeholder:"youraccount@yourserver.com",status:!N&&w.length>0?"error":void 0,onPressEnter:R,enterButton:(0,a.jsx)(v.Z,{onClick:R,disabled:!N,children:"Authenticate with Fediverse"})})]});return(0,a.jsx)(u.Z,{spinning:x,children:(0,a.jsxs)(d.Z,{direction:"vertical",children:[K,O&&(0,a.jsx)(p.Z,{message:"Error",description:O,type:"error",showIcon:!0}),_?L:B,(0,a.jsx)(c.Z,{ghost:!0,children:(0,a.jsx)(C,{header:"Learn more about using the Fediverse to authenticate with chat.",children:(0,a.jsx)("p",{children:"xxxxxx"})},"header")}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Note"}),": This is for authentication purposes only, and no personal information will be accessed or stored."]})]})})},j="/_next/static/media/fediverse-black.0b51c805.png",k="/_next/static/media/indieauth.38c52a3d.png",w=t(67211),I=t.n(w),E=t(1899),S=r.Z.TabPane,A=function(){var e=(0,i.sJ)(E.db);if(!e)return null;var n=(0,i.sJ)(E.L4),t=(0,i.sJ)(E.FI),s=e.displayName;return(0,a.jsx)("div",{children:(0,a.jsxs)(r.Z,{defaultActiveKey:"1",type:"card",size:"small",renderTabBar:null,children:[(0,a.jsx)(S,{tab:(0,a.jsxs)("span",{className:I().tabContent,children:[(0,a.jsx)("img",{className:I().icon,src:k,alt:"IndieAuth"}),"IndieAuth"]}),children:(0,a.jsx)(g,{authenticated:n,displayName:s,accessToken:t})},"1"),(0,a.jsx)(S,{tab:(0,a.jsxs)("span",{className:I().tabContent,children:[(0,a.jsx)("img",{className:I().icon,src:j,alt:"Fediverse auth"}),"FediAuth"]}),children:(0,a.jsx)(N,{authenticated:n,displayName:s,accessToken:t})},"2")]})})}},67211:function(e){e.exports={tabContent:"AuthModal_tabContent__KgMU3",icon:"AuthModal_icon__kpEuV"}},55237:function(e){e.exports={codeInputContainer:"FediAuthModal_codeInputContainer__M_dAD",codeInput:"FediAuthModal_codeInput__dIE6u",submitButton:"FediAuthModal_submitButton__iuF9R"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/embed/chat/readonly-5595887f9035766a.js b/static/web/_next/static/chunks/pages/embed/chat/readonly-5595887f9035766a.js deleted file mode 100644 index de192b1d5..000000000 --- a/static/web/_next/static/chunks/pages/embed/chat/readonly-5595887f9035766a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8399],{27561:function(t,n,r){var e=r(67990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,e(t)+1).replace(i,""):t}},67990:function(t){var n=/\s/;t.exports=function(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}},23279:function(t,n,r){var e=r(13218),i=r(7771),o=r(14841),u=Math.max,a=Math.min;t.exports=function(t,n,r){var f,c,s,v,p,l,d=0,h=!1,m=!1,x=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function _(n){var r=f,e=c;return f=c=void 0,d=n,v=t.apply(e,r)}function w(t){return d=t,p=setTimeout(T,n),h?_(t):v}function y(t){var r=t-l;return void 0===l||r>=n||r<0||m&&t-d>=s}function T(){var t=i();if(y(t))return g(t);p=setTimeout(T,function(t){var r=n-(t-l);return m?a(r,s-(t-d)):r}(t))}function g(t){return p=void 0,x&&f?_(t):(f=c=void 0,v)}function N(){var t=i(),r=y(t);if(f=arguments,c=this,l=t,r){if(void 0===p)return w(l);if(m)return clearTimeout(p),p=setTimeout(T,n),_(l)}return void 0===p&&(p=setTimeout(T,n)),v}return n=o(n)||0,e(r)&&(h=!!r.leading,s=(m="maxWait"in r)?u(o(r.maxWait)||0,n):s,x="trailing"in r?!!r.trailing:x),N.cancel=function(){void 0!==p&&clearTimeout(p),d=0,f=l=c=p=void 0},N.flush=function(){return void 0===p?v:g(i())},N}},33448:function(t,n,r){var e=r(44239),i=r(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==e(t)}},7771:function(t,n,r){var e=r(55639);t.exports=function(){return e.Date.now()}},14841:function(t,n,r){var e=r(27561),i=r(13218),o=r(33448),u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=e(t);var r=a.test(t);return r||f.test(t)?c(t.slice(2),r?2:8):u.test(t)?NaN:+t}},88054:function(t,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readonly",function(){return r(15410)}])},15410:function(t,n,r){"use strict";r.r(n),r.d(n,{default:function(){return a}});var e=r(85893),i=r(4480),o=r(28763),u=r(1899);function a(){var t=(0,i.sJ)(u.w4),n=(0,i.sJ)(u.uy),r=(0,i.sJ)(u.pH);return(0,e.jsxs)("div",{children:[(0,e.jsx)(u.me,{}),(0,e.jsx)(o.ChatContainer,{messages:r,usernameToHighlight:t,chatUserId:n,isModerator:!1,showInput:!1,height:"100vh"})]})}}},function(t){t.O(0,[1272,8700,9372,7364,1899,8763,9774,2888,179],(function(){return n=88054,t(t.s=n);var n}));var n=t.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/embed/chat/readonly-7d52555642af387d.js b/static/web/_next/static/chunks/pages/embed/chat/readonly-7d52555642af387d.js new file mode 100644 index 000000000..b025958a1 --- /dev/null +++ b/static/web/_next/static/chunks/pages/embed/chat/readonly-7d52555642af387d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8399],{27561:function(n,t,r){var e=r(67990),i=/^\s+/;n.exports=function(n){return n?n.slice(0,e(n)+1).replace(i,""):n}},67990:function(n){var t=/\s/;n.exports=function(n){for(var r=n.length;r--&&t.test(n.charAt(r)););return r}},23279:function(n,t,r){var e=r(13218),i=r(7771),u=r(14841),o=Math.max,a=Math.min;n.exports=function(n,t,r){var f,c,s,v,l,d,p=0,h=!1,m=!1,x=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function _(t){var r=f,e=c;return f=c=void 0,p=t,v=n.apply(e,r)}function y(n){return p=n,l=setTimeout(N,t),h?_(n):v}function w(n){var r=n-d;return void 0===d||r>=t||r<0||m&&n-p>=s}function N(){var n=i();if(w(n))return T(n);l=setTimeout(N,function(n){var r=t-(n-d);return m?a(r,s-(n-p)):r}(n))}function T(n){return l=void 0,x&&f?_(n):(f=c=void 0,v)}function b(){var n=i(),r=w(n);if(f=arguments,c=this,d=n,r){if(void 0===l)return y(d);if(m)return clearTimeout(l),l=setTimeout(N,t),_(d)}return void 0===l&&(l=setTimeout(N,t)),v}return t=u(t)||0,e(r)&&(h=!!r.leading,s=(m="maxWait"in r)?o(u(r.maxWait)||0,t):s,x="trailing"in r?!!r.trailing:x),b.cancel=function(){void 0!==l&&clearTimeout(l),p=0,f=d=c=l=void 0},b.flush=function(){return void 0===l?v:T(i())},b}},33448:function(n,t,r){var e=r(44239),i=r(37005);n.exports=function(n){return"symbol"==typeof n||i(n)&&"[object Symbol]"==e(n)}},7771:function(n,t,r){var e=r(55639);n.exports=function(){return e.Date.now()}},14841:function(n,t,r){var e=r(27561),i=r(13218),u=r(33448),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(u(n))return NaN;if(i(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=i(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=e(n);var r=a.test(n);return r||f.test(n)?c(n.slice(2),r?2:8):o.test(n)?NaN:+n}},88054:function(n,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readonly",function(){return r(15410)}])},15410:function(n,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var e=r(85893),i=r(4480),u=r(28763),o=r(1899);function a(){var n=(0,i.sJ)(o.db),t=(0,i.sJ)(o.pH);if(!n)return null;var r=n.id,a=n.displayName;return(0,e.jsxs)("div",{children:[(0,e.jsx)(o.me,{}),(0,e.jsx)(u.ChatContainer,{messages:t,usernameToHighlight:a,chatUserId:r,isModerator:!1,showInput:!1,height:"100vh"})]})}}},function(n){n.O(0,[1272,8700,9372,7364,1899,8763,9774,2888,179],(function(){return t=88054,n(n.s=t);var t}));var t=n.O();_N_E=t}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/embed/chat/readwrite-62661ede7922999d.js b/static/web/_next/static/chunks/pages/embed/chat/readwrite-62661ede7922999d.js new file mode 100644 index 000000000..ee041049f --- /dev/null +++ b/static/web/_next/static/chunks/pages/embed/chat/readwrite-62661ede7922999d.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=(0,m.sJ)(k.db);if(!T)return null;var S=T.displayName,A=t||S,M=function(){P(!N)};(0,b.y1)("c",M,{enableOnContentEditable:!1},[N]);var 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 M()},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:[A,(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;r=n||t<0||y&&e-h>=u}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,u-(e-h)):t}(e))}function k(e){return d=void 0,m&&l?g(e):(l=s=void 0,f)}function C(){var e=o(),t=x(e);if(l=arguments,s=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,u=(y="maxWait"in t)?a(i(t.maxWait)||0,n):u,m="trailing"in t?!!t.trailing:m),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=p=s=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,s=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)?s(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),s=t(38504),u=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)||(0,m.sJ)(k.w4),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,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)(s.Z,{overlay:S,trigger:["click"],children:(0,r.jsx)(u.Z,{type:"primary",icon:(0,r.jsx)(v.Z,{style:{marginRight:".5rem"}}),children:(0,r.jsxs)(f.Z,{children:[t,(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.w4),n=(0,o.sJ)(a.uy),t=(0,o.sJ)(a.pH),l=(0,o.sJ)(a.g1),s=(0,o.sJ)(a.fE),u=l.name,f=l.chatDisabled;return(0,r.jsxs)("div",{children:[(0,r.jsx)(a.me,{}),(0,r.jsx)(c.Z,{name:u,chatAvailable:!0,chatDisabled:f}),(0,r.jsx)(i.ChatContainer,{messages:t,usernameToHighlight:e,chatUserId:n,isModerator:s,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},s={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},u={16:!1,18:!1,17:!1,91:!1},f={},d=1;d<20;d++)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],s="*"===a?"*":m(a);if(f[s]){t||(t=b());var u=o>1?i(l,n):[];f[s]=f[s].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,u)Object.prototype.hasOwnProperty.call(u,i)&&(!u[i]&&n.mods.indexOf(+i)>-1||u[i]&&-1===n.mods.indexOf(+i))&&(o=!1);(0!==n.mods.length||u[16]||u[18]||u[17]||u[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=s[n];e[n]&&-1===p.indexOf(t)?p.push(t):!e[n]&&p.indexOf(t)>-1?p.splice(p.indexOf(t),1):"metaKey"===n&&e[n]&&3===p.length&&(e.ctrlKey||e.shiftKey||e.altKey||(p=p.slice(p.indexOf(t))))})),r in u){for(var o in u[r]=!0,l)l[o]===r&&(C[o]=!0);if(!t)return}for(var i in u)Object.prototype.hasOwnProperty.call(u,i)&&(u[i]=e[s[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),u[17]=!0,u[18]=!0);var 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:s,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 u)for(var r in u[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-67e6717ddb4a7a5f.js b/static/web/_next/static/chunks/pages/index-67e6717ddb4a7a5f.js deleted file mode 100644 index 438974566..000000000 --- a/static/web/_next/static/chunks/pages/index-67e6717ddb4a7a5f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(52924)}])},8119:function(e,n,t){"use strict";t.d(n,{h:function(){return J},Z:function(){return P}});var i=t(85893),o=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),x=t(38545),p=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)||(0,g.sJ)(b.w4),o=(0,j.useState)(!1),r=o[0],a=o[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 J=(0,i.jsxs)(l.Z,{children:[(0,i.jsx)(l.Z.Item,{icon:(0,i.jsx)(m.Z,{}),onClick:function(){a(!0)},children:"Change name"},"0"),(0,i.jsx)(l.Z.Item,{icon:(0,i.jsx)(h.Z,{}),onClick:function(){return C(!0)},children:"Authenticate"},"1"),L.chatAvailable&&(0,i.jsx)(l.Z.Item,{icon:(0,i.jsx)(x.Z,{}),onClick:function(){return A()},children:"Toggle chat"},"3")]});return(0,i.jsxs)("div",{className:"".concat(w().root),children:[(0,i.jsx)(c.Z,{overlay:J,trigger:["click"],children:(0,i.jsx)(d.Z,{type:"primary",icon:(0,i.jsx)(p.Z,{style:{marginRight:".5rem"}}),children:(0,i.jsxs)(u.Z,{children:[t,(0,i.jsx)(f.Z,{})]})})}),(0,i.jsx)(N,{title:"Change Chat Display Name",visible:r,handleCancel:function(){return a(!1)},children:(0,i.jsx)(k,{})}),(0,i.jsx)(N,{title:"Authenticate",visible:y,handleCancel:function(){return C(!1)},children:(0,i.jsx)(S,{})})]})},T=t(60113),H=t(92910),L=t.n(H),A=o.Z.Header,J=function(e){var n=e.name,t=void 0===n?"Your stream title":n,o=e.chatAvailable,s=e.chatDisabled;return(0,i.jsxs)(A,{className:"".concat(L().header),children:[(0,i.jsxs)("div",{className:"".concat(L().logo),children:[(0,i.jsx)(T.C,{variant:"contrast"}),(0,i.jsx)("span",{children:t})]}),o&&!s&&(0,i.jsx)(Z,{}),!o&&!s&&(0,i.jsx)(r.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,i.jsx)(a.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})},P=J},52924:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return je}});var i=t(85893),o=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),x=t.n(h),p=t(5152),f=t.n(p),g=t(73682),j=t(28105),v=t.n(j),_=function(e){var n=e.content;return(0,i.jsx)("div",{className:v().pageContentContainer,children:(0,i.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.w4),n=(0,r.sJ)(c.uy),t=(0,r.sJ)(c.fE),o=(0,r.sJ)(c.pH);return(0,i.jsx)(w.ZP,{className:S().root,collapsedWidth:0,width:320,children:(0,i.jsx)(N.ChatContainer,{messages:o,usernameToHighlight:e,chatUserId:n,isModerator:t})})},T=t(35603),H=t.n(T),L=function(e){var n=e.version;return(0,i.jsxs)("div",{className:H().footer,children:[(0,i.jsxs)("div",{className:H().text,children:["Powered by ",(0,i.jsx)("a",{href:"https://owncast.online",children:n})]}),(0,i.jsxs)("div",{className:H().links,children:[(0,i.jsx)("div",{className:H().item,children:(0,i.jsx)("a",{href:"https://owncast.online/docs",target:"_blank",rel:"noreferrer",children:"Documentation"})}),(0,i.jsx)("div",{className:H().item,children:(0,i.jsx)("a",{href:"https://owncast.online/help",target:"_blank",rel:"noreferrer",children:"Contribute"})}),(0,i.jsx)("div",{className:H().item,children:(0,i.jsx)("a",{href:"https://github.com/owncast/owncast",target:"_blank",rel:"noreferrer",children:"Source"})})]})]})},A=t(69767),J=t.n(A),P=function(e){var n=e.children;return(0,i.jsx)("div",{className:"".concat(J().row),children:n})},M=t(71577),E=t(32365),z=t(36879),D=t.n(z),I=function(e){var n=e.action,t=n.url,o=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],x=m[1];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(M.Z,{type:u?"primary":"default",className:"".concat(D().button),onClick:function(){c?window.open(t,"_blank"):x(!0)},style:{backgroundColor:s},children:[(0,i.jsx)("img",{src:a,className:"".concat(D().icon),alt:r}),o]}),(0,i.jsx)(E.Modal,{title:r||o,url:t,visible:h,height:"80vh",handleCancel:function(){return x(!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,i.jsx)("div",{className:Y().root,children:(0,i.jsx)("div",{className:Y().container,children:(0,i.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,i.jsx)("div",{className:X().links,children:n.map((function(e){return(0,i.jsx)("a",{href:e.url,className:X().link,target:"_blank",rel:"noreferrer",children:(0,i.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,o=e.summary,r=e.logo,a=e.tags,s=e.links;return(0,i.jsx)("div",{className:W().root,children:(0,i.jsxs)("div",{className:W().logoTitleSection,children:[(0,i.jsx)("div",{className:W().logo,children:(0,i.jsx)(Q,{src:r})}),(0,i.jsxs)("div",{className:W().titleSection,children:[(0,i.jsx)("div",{className:x()(W().title,W().row),children:n}),(0,i.jsx)("div",{className:x()(W().subtitle,W().row),children:(0,i.jsx)(G.Z,{children:t||o})}),(0,i.jsx)("div",{className:x()(W().tagList,W().row),children:a.length>0&&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=o.Z.Content,ie=f()((function(){return Promise.resolve().then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),oe=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,o=e.summary,r=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:o,tags:r,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,o=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,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:o,tags:r,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,r.sJ)(c.Q),n=(0,r.sJ)(c.g1),t=(0,r.sJ)(c.pT),o=(0,r.sJ)(c.di),a=(0,d.Z)((0,r.FV)(c.hz),2),s=a[0],u=a[1],h=(0,r.sJ)(c.j$),x=(0,r.sJ)(c.YW),p=(0,r.sJ)(c.w4),f=(0,r.sJ)(c.uy),j=(0,r.sJ)(c.RI),v=j.viewerCount,_=j.lastConnectTime,b=j.lastDisconnectTime,w=j.streamTitle,N=n.extraPageContent,k=n.version,S=n.name,T=n.summary,H=n.socialHandles,A=n.tags,J=n.externalActions,M=n.offlineMessage,E=n.chatDisabled,z=n.federation,D=n.notifications,G=(0,l.useState)(!1),q=G[0],O=G[1],Y=(0,l.useState)(!1),Q=Y[0],V=Y[1],X=z.account,B=D.browser.enabled,K=J.map((function(e){return(0,i.jsx)(I,{action:e},e.url)})),W=function(){V(!1),O(!1),(0,g.qQ)(g.dA.hasDisplayedNotificationModal,!0)},$=function(){var e=window.innerWidth;void 0===s&&u(e<=768),!s&&e<=768&&u(!0),s&&e>768&&u(!1)};(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)&&O(!0)}(),$(),window.addEventListener("resize",$)}),[]);var ne=!E&&o&&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:[x&&(0,i.jsx)(y.M,{source:"/hls/stream.m3u8",online:x}),!x&&!e.appLoading&&(0,i.jsx)(R.R,{streamName:S,customText:M,notificationsEnabled:B,fediverseAccount:X,lastLive:b,onNotifyClick:function(){return V(!0)}}),x&&(0,i.jsx)(ee.X,{online:x,lastConnectTime:_,lastDisconnectTime:b,viewerCount:v})]}),(0,i.jsx)("div",{className:C().midSection,children:(0,i.jsxs)("div",{className:C().buttonsLogoTitleSection,children:[(0,i.jsxs)(P,{children:[K,(0,i.jsx)(U.e,{size:"small"}),(0,i.jsx)(re,{visible:q,notificationClicked:function(){return V(!0)},notificationClosed:function(){return W()},children:(0,i.jsx)(F.E,{onClick:function(){return V(!0)}})})]}),(0,i.jsx)(ie,{title:"Notify",visible:Q,afterClose:function(){return W()},handleCancel:function(){return W()},children:(0,i.jsx)(oe,{})})]})}),s&&t?(0,i.jsx)(ce,{name:S,streamTitle:w,summary:T,tags:A,socialHandles:H,extraPageContent:N,messages:h,chatDisplayName:p,chatUserId:f,showChat:ne}):(0,i.jsx)(le,{name:S,streamTitle:w,summary:T,tags:A,socialHandles:H,extraPageContent:N})]}),ne&&!s&&(0,i.jsx)(Z,{})]}),(!s||!ne)&&(0,i.jsx)(L,{version:k})]})})},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,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,i=!1,o=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,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,o=x}finally{try{t||null==a.return||a.return()}finally{if(i)throw o}}})).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)(o.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/webpack-b1fa70118cc00f02.js b/static/web/_next/static/chunks/webpack-98075c8d440b1b86.js similarity index 73% rename from static/web/_next/static/chunks/webpack-b1fa70118cc00f02.js rename to static/web/_next/static/chunks/webpack-98075c8d440b1b86.js index 344136685..3b7103c5a 100644 --- a/static/web/_next/static/chunks/webpack-b1fa70118cc00f02.js +++ b/static/web/_next/static/chunks/webpack-98075c8d440b1b86.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[c])}))?r.splice(c--,1):(a=!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 a=2&o&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).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:"4dd26c9f3db1b3d0",9674:"3b07138ac351a119"}[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 a,c;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[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;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 a62ee581c..8631c58dd 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 a47764c51..54512e618 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 c6285c829..f706dc0e8 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 14c50e722..24350e02c 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 96c71c433..832d465b8 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 26d12c8a2..c3fd84ff4 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 efc5a351d..0b80fc580 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 bfaffdbbf..9c2c42907 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 b8cacfc4b..c7a36ec19 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 c3a1c157c..00f66fde5 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 bf21b980e..d3657f912 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 0fa6c4164..7f0d1702f 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 f9a56336a..fa79bb2da 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 b28320a08..ac2afa79d 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 72282a5ab..c6a079b5b 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 18cc37c9f..034bd2be0 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 eefe82e9f..c48a46d87 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 304f0d19c..cdf6854b1 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 622c4b829..9765c5217 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 a5ba4285e..2403404b6 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 9860a6959..b976cbb86 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 2345f8ac8..993b033bb 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 7a6de7c35..c5d628d08 100644 --- a/static/web/embed/chat/readwrite/index.html +++ b/static/web/embed/chat/readwrite/index.html @@ -1 +1 @@ -

Chat message goes here...

\ 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 94f363f14..27d1fe8a9 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 70f667bbf..748faee2a 100644 --- a/static/web/index.html +++ b/static/web/index.html @@ -1,4 +1,4 @@
Chat offline
Logo
Preview
\ No newline at end of file +
Chat offline
\ No newline at end of file diff --git a/static/web/styles/admin/chat.css b/static/web/styles/admin/chat.css index bcf73257c..93ffe6ca3 100644 --- a/static/web/styles/admin/chat.css +++ b/static/web/styles/admin/chat.css @@ -1 +1,120 @@ -.chat-messages .ant-table-cell.name-col{text-overflow:ellipsis;overflow:hidden}.chat-messages .ant-table-cell.toggle-col label{font-size:0.7rem}.chat-messages .ant-table-cell .message-contents{overflow:auto;max-height:200px}.chat-messages .ant-table-cell .message-contents img{position:relative;margin-top:-5px;width:3rem;padding:0.25rem}.chat-messages .ant-table-cell .message-contents p{margin-bottom:0}.chat-messages .bulk-editor{margin:0.5rem 0;padding:0.5rem;border:1px solid var(--textfield-border);display:flex;flex-direction:row;align-items:center;justify-content:flex-end;border-radius:4px}.chat-messages .bulk-editor.active .label{color:var(--black-3)}.chat-messages .bulk-editor .label{font-size:0.75rem;color:var(--white-50);margin-right:0.5rem}.chat-messages .bulk-editor button{margin:0 0.2rem;font-size:0.75rem}.ant-table-filter-dropdown{max-width:250px}.toggle-switch{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;justify-content:flex-end;transition:opacity 0.15s}.toggle-switch .outcome-icon{margin-right:0.5rem}.toggle-switch.hidden{opacity:0.25}.toggle-switch.hidden:hover{opacity:1}.toggle-switch .ant-btn .anticon{opacity:0.5}.toggle-switch .ant-btn:hover .anticon{opacity:1}.toggle-switch .ant-btn-text:hover{background-color:var(--black-35)}.blockuser-popover{max-width:400px}.user-item-container{border:none;background:none;text-align:left;padding:0;margin:0;cursor:pointer;outline:none}.user-item-container .display-name{color:var(--white);border-bottom:1px dotted var(--white-50)}.user-item-container:hover .display-name{border-color:var(--white)}.user-details h5{color:var(--white)}.user-details .created-at{font-size:0.75em;font-style:italic}.user-details .connection-info{font-size:0.88em}.user-details .previous-names-list{font-size:0.88em}.user-details .previous-names-list .user-name-item{font-family:monospace}.user-details .previous-names-list .latest{font-style:italic}.user-details .previous-names-list .latest .user-name-item{font-weight:bold;font-style:normal;color:var(--pink)}.user-details .ant-divider{border-color:var(--white-25)}.block-user-button{text-transform:capitalize} +.chat-messages .ant-table-cell.name-col { + text-overflow: ellipsis; + overflow: hidden; +} +.chat-messages .ant-table-cell.toggle-col label { + font-size: 0.7rem; +} +.chat-messages .ant-table-cell .message-contents { + overflow: auto; + max-height: 200px; +} +.chat-messages .ant-table-cell .message-contents img { + position: relative; + margin-top: -5px; + width: 3rem; + padding: 0.25rem; +} +.chat-messages .ant-table-cell .message-contents p { + margin-bottom: 0; +} +.chat-messages .bulk-editor { + margin: 0.5rem 0; + padding: 0.5rem; + border: 1px solid var(--textfield-border); + display: flex; + flex-direction: row; + align-items: center; + justify-content: flex-end; + border-radius: 4px; +} +.chat-messages .bulk-editor.active .label { + color: var(--black-3); +} +.chat-messages .bulk-editor .label { + font-size: 0.75rem; + color: var(--white-50); + margin-right: 0.5rem; +} +.chat-messages .bulk-editor button { + margin: 0 0.2rem; + font-size: 0.75rem; +} +.ant-table-filter-dropdown { + max-width: 250px; +} +.toggle-switch { + display: flex; + flex-direction: row; + align-items: center; + flex-wrap: nowrap; + justify-content: flex-end; + transition: opacity 0.15s; +} +.toggle-switch .outcome-icon { + margin-right: 0.5rem; +} +.toggle-switch.hidden { + opacity: 0.25; +} +.toggle-switch.hidden:hover { + opacity: 1; +} +.toggle-switch .ant-btn .anticon { + opacity: 0.5; +} +.toggle-switch .ant-btn:hover .anticon { + opacity: 1; +} +.toggle-switch .ant-btn-text:hover { + background-color: var(--black-35); +} +.blockuser-popover { + max-width: 400px; +} +.user-item-container { + border: none; + background: none; + text-align: left; + padding: 0; + margin: 0; + cursor: pointer; + outline: none; +} +.user-item-container .display-name { + color: var(--white); + border-bottom: 1px dotted var(--white-50); +} +.user-item-container:hover .display-name { + border-color: var(--white); +} +.user-details h5 { + color: var(--white); +} +.user-details .created-at { + font-size: 0.75em; + font-style: italic; +} +.user-details .connection-info { + font-size: 0.88em; +} +.user-details .previous-names-list { + font-size: 0.88em; +} +.user-details .previous-names-list .user-name-item { + font-family: monospace; +} +.user-details .previous-names-list .latest { + font-style: italic; +} +.user-details .previous-names-list .latest .user-name-item { + font-weight: bold; + font-style: normal; + color: var(--pink); +} +.user-details .ant-divider { + border-color: var(--white-25); +} +.block-user-button { + text-transform: capitalize; +} diff --git a/static/web/styles/admin/config-edit-string-tags.css b/static/web/styles/admin/config-edit-string-tags.css index 41a973e01..6240b5034 100644 --- a/static/web/styles/admin/config-edit-string-tags.css +++ b/static/web/styles/admin/config-edit-string-tags.css @@ -1 +1,36 @@ -.edit-current-strings .ant-tag{margin:0.1rem;font-size:0.85rem;border-radius:10em;padding:0.25em 1em}.edit-current-strings .ant-tag:hover{opacity:1}.edit-current-strings .ant-tag .ant-tag-close-icon{transform:translateY(-1px);margin-left:0.3rem;padding:2px;border-radius:5rem;color:var(--black);border:1px solid var(--black);transition-duration:var(--ant-transition-duration)}.edit-current-strings .ant-tag .ant-tag-close-icon:hover{border-color:var(--owncast-purple);background-color:var(--white)}.edit-current-strings .ant-tag .ant-tag-close-icon:hover svg{fill:black;transition:fill var(--ant-transition-duration)}.add-new-string-section{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;margin-top:2em}.continuous-status-section{margin-top:1em} +.edit-current-strings .ant-tag { + margin: 0.1rem; + font-size: 0.85rem; + border-radius: 10em; + padding: 0.25em 1em; +} +.edit-current-strings .ant-tag:hover { + opacity: 1; +} +.edit-current-strings .ant-tag .ant-tag-close-icon { + transform: translateY(-1px); + margin-left: 0.3rem; + padding: 2px; + border-radius: 5rem; + color: var(--black); + border: 1px solid var(--black); + transition-duration: var(--ant-transition-duration); +} +.edit-current-strings .ant-tag .ant-tag-close-icon:hover { + border-color: var(--owncast-purple); + background-color: var(--white); +} +.edit-current-strings .ant-tag .ant-tag-close-icon:hover svg { + fill: black; + transition: fill var(--ant-transition-duration); +} +.add-new-string-section { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + margin-top: 2em; +} +.continuous-status-section { + margin-top: 1em; +} diff --git a/static/web/styles/admin/config-public-details.css b/static/web/styles/admin/config-public-details.css index 9d46e0094..c3f64e0cd 100644 --- a/static/web/styles/admin/config-public-details.css +++ b/static/web/styles/admin/config-public-details.css @@ -1 +1,82 @@ -.config-public-details-page{width:100%}.config-public-details-page .top-container{display:flex;flex-direction:row;flex-wrap:nowrap}@media (max-width: 1200px){.config-public-details-page .top-container{flex-wrap:wrap}.config-public-details-page .top-container .social-items-container{display:flex;flex-direction:row;justify-content:space-around;flex-wrap:nowrap;margin:1em 0;width:100%;max-width:none}.config-public-details-page .top-container .social-items-container .tags-module{margin-right:1em}.config-public-details-page .top-container .social-items-container .form-module{max-width:none}}@media (max-width: 1200px) and (max-width: 980px){.config-public-details-page .top-container .social-items-container{flex-direction:column}.config-public-details-page .top-container .social-items-container .form-module{width:100%}.config-public-details-page .top-container .social-items-container .tags-module{margin-bottom:0}}.config-public-details-page .instance-details-container{width:100%}.config-public-details-page .social-items-container{background-color:var(--container-bg-color-alt);padding:0 0.75em;margin-left:1em;max-width:450px}.config-public-details-page .social-items-container .form-module{background-color:var(--black)}.config-public-details-page .social-items-container .social-handles-container{min-width:350px}.config-public-details-page .instance-details-container,.config-public-details-page .page-content-module{margin:1em 0}.config-public-details-page .field-summary textarea{height:6em !important}.config-public-details-page .edit-custom-css #field-customStyles{height:15em;width:100%;font-family:monospace;resize:auto}.other-field-container{margin:0.5em 0}.logo-upload-container .input-group{align-items:center}.logo-upload-container img.logo-preview{min-height:120px;min-width:120px;max-height:256px;max-width:256px;margin-right:1em;display:inline-block;border:1px solid var(--white-25)} +.config-public-details-page { + width: 100%; +} +.config-public-details-page .top-container { + display: flex; + flex-direction: row; + flex-wrap: nowrap; +} +@media (max-width: 1200px) { + .config-public-details-page .top-container { + flex-wrap: wrap; + } + .config-public-details-page .top-container .social-items-container { + display: flex; + flex-direction: row; + justify-content: space-around; + flex-wrap: nowrap; + margin: 1em 0; + width: 100%; + max-width: none; + } + .config-public-details-page .top-container .social-items-container .tags-module { + margin-right: 1em; + } + .config-public-details-page .top-container .social-items-container .form-module { + max-width: none; + } +} +@media (max-width: 1200px) and (max-width: 980px) { + .config-public-details-page .top-container .social-items-container { + flex-direction: column; + } + .config-public-details-page .top-container .social-items-container .form-module { + width: 100%; + } + .config-public-details-page .top-container .social-items-container .tags-module { + margin-bottom: 0; + } +} +.config-public-details-page .instance-details-container { + width: 100%; +} +.config-public-details-page .social-items-container { + background-color: var(--container-bg-color-alt); + padding: 0 0.75em; + margin-left: 1em; + max-width: 450px; +} +.config-public-details-page .social-items-container .form-module { + background-color: var(--black); +} +.config-public-details-page .social-items-container .social-handles-container { + min-width: 350px; +} +.config-public-details-page .instance-details-container, +.config-public-details-page .page-content-module { + margin: 1em 0; +} +.config-public-details-page .field-summary textarea { + height: 6em !important; +} +.config-public-details-page .edit-custom-css #field-customStyles { + height: 15em; + width: 100%; + font-family: monospace; + resize: auto; +} +.other-field-container { + margin: 0.5em 0; +} +.logo-upload-container .input-group { + align-items: center; +} +.logo-upload-container img.logo-preview { + min-height: 120px; + min-width: 120px; + max-height: 256px; + max-width: 256px; + margin-right: 1em; + display: inline-block; + border: 1px solid var(--white-25); +} diff --git a/static/web/styles/admin/config-socialhandles.css b/static/web/styles/admin/config-socialhandles.css index a6ab4e12c..54a4f50cc 100644 --- a/static/web/styles/admin/config-socialhandles.css +++ b/static/web/styles/admin/config-socialhandles.css @@ -1 +1,55 @@ -.social-option .ant-select-item-option-content,.social-option .ant-select-selection-item,.social-dropdown .ant-select-item-option-content,.social-dropdown .ant-select-selection-item{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:0.25em;line-height:normal}.social-option .ant-select-item-option-content .option-icon,.social-option .ant-select-selection-item .option-icon,.social-dropdown .ant-select-item-option-content .option-icon,.social-dropdown .ant-select-selection-item .option-icon{height:1.5em;width:1.5em;line-height:normal}.social-option .ant-select-item-option-content .option-label,.social-option .ant-select-selection-item .option-label,.social-dropdown .ant-select-item-option-content .option-label,.social-dropdown .ant-select-selection-item .option-label{display:inline-block;margin-left:1em;line-height:normal;word-break:break-word}.social-links-edit-container .social-handles-table .social-handle-cell{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;color:var(--white-75)}.social-links-edit-container .social-handles-table .social-handle-cell .option-icon{height:2em;width:2em;line-height:normal}.social-links-edit-container .social-handles-table .social-handle-cell .option-label{display:flex;flex-direction:column;margin:0 0 0 1em;line-height:2;font-size:0.85em;word-break:break-word}.social-links-edit-container .social-handles-table .actions{display:flex;flex-direction:row;align-items:center;justify-content:space-evenly;width:6em} +.social-option .ant-select-item-option-content, +.social-option .ant-select-selection-item, +.social-dropdown .ant-select-item-option-content, +.social-dropdown .ant-select-selection-item { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + padding: 0.25em; + line-height: normal; +} +.social-option .ant-select-item-option-content .option-icon, +.social-option .ant-select-selection-item .option-icon, +.social-dropdown .ant-select-item-option-content .option-icon, +.social-dropdown .ant-select-selection-item .option-icon { + height: 1.5em; + width: 1.5em; + line-height: normal; +} +.social-option .ant-select-item-option-content .option-label, +.social-option .ant-select-selection-item .option-label, +.social-dropdown .ant-select-item-option-content .option-label, +.social-dropdown .ant-select-selection-item .option-label { + display: inline-block; + margin-left: 1em; + line-height: normal; + word-break: break-word; +} +.social-links-edit-container .social-handles-table .social-handle-cell { + display: flex; + flex-direction: row; + align-items: center; + justify-content: flex-start; + color: var(--white-75); +} +.social-links-edit-container .social-handles-table .social-handle-cell .option-icon { + height: 2em; + width: 2em; + line-height: normal; +} +.social-links-edit-container .social-handles-table .social-handle-cell .option-label { + display: flex; + flex-direction: column; + margin: 0 0 0 1em; + line-height: 2; + font-size: 0.85em; + word-break: break-word; +} +.social-links-edit-container .social-handles-table .actions { + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-evenly; + width: 6em; +} diff --git a/static/web/styles/admin/config-storage.css b/static/web/styles/admin/config-storage.css index 24db84c31..f179f1e21 100644 --- a/static/web/styles/admin/config-storage.css +++ b/static/web/styles/admin/config-storage.css @@ -1 +1,44 @@ -.edit-storage-container{padding:1em}.edit-storage-container .form-fields{display:none;margin-bottom:1em}.edit-storage-container.enabled .form-fields{display:block}.edit-storage-container .button-container{margin:2em 0 1em 0}.edit-storage-container .advanced-section{margin:1em 0}.edit-server-details-container .field-streamkey-container{margin-bottom:1.5em}.edit-server-details-container .field-streamkey-container .field-tip{color:var(--ant-warning)}.edit-server-details-container .field-streamkey-container .left-side{display:flex;flex-direction:row;align-items:flex-start}.edit-server-details-container .field-streamkey-container .textfield-with-submit-container{margin-bottom:0}.edit-server-details-container .field-streamkey-container .streamkey-actions{white-space:nowrap}.edit-server-details-container .field-streamkey-container .streamkey-actions button{margin:0.25em}@media (max-width: 800px){.edit-server-details-container .field-streamkey-container .streamkey-actions{margin-top:2em}}.edit-server-details-container .advanced-settings{max-width:800px} +.edit-storage-container { + padding: 1em; +} +.edit-storage-container .form-fields { + display: none; + margin-bottom: 1em; +} +.edit-storage-container.enabled .form-fields { + display: block; +} +.edit-storage-container .button-container { + margin: 2em 0 1em 0; +} +.edit-storage-container .advanced-section { + margin: 1em 0; +} +.edit-server-details-container .field-streamkey-container { + margin-bottom: 1.5em; +} +.edit-server-details-container .field-streamkey-container .field-tip { + color: var(--ant-warning); +} +.edit-server-details-container .field-streamkey-container .left-side { + display: flex; + flex-direction: row; + align-items: flex-start; +} +.edit-server-details-container .field-streamkey-container .textfield-with-submit-container { + margin-bottom: 0; +} +.edit-server-details-container .field-streamkey-container .streamkey-actions { + white-space: nowrap; +} +.edit-server-details-container .field-streamkey-container .streamkey-actions button { + margin: 0.25em; +} +@media (max-width: 800px) { + .edit-server-details-container .field-streamkey-container .streamkey-actions { + margin-top: 2em; + } +} +.edit-server-details-container .advanced-settings { + max-width: 800px; +} diff --git a/static/web/styles/admin/config-video-variants.css b/static/web/styles/admin/config-video-variants.css index 2cafdc127..e2f5e745b 100644 --- a/static/web/styles/admin/config-video-variants.css +++ b/static/web/styles/admin/config-video-variants.css @@ -1 +1,48 @@ -.config-video-variants .variants-table{margin-top:2em}.config-video-variants .variants-table-module{min-width:400px}.config-variant-form .description{margin-top:0}.config-variant-form .passthrough-warning{text-align:center;padding:1em;color:var(--ant-warning);font-size:0.88em;font-weight:500;background-color:var(--black-50);border-radius:var(--container-border-radius)}.config-variant-form .cpu-usage-container,.config-variant-form .bitrate-container{min-height:22em}.config-variant-form .advanced-settings{margin-top:1em}.config-variant-form .advanced-settings .resolution-module,.config-variant-form .advanced-settings .video-passthrough-module{min-height:30em}.config-variant-form.video-passthrough-enabled .form-module:not(.video-passthrough-module){opacity:0.25;cursor:not-allowed}.variants-table .actions{display:flex;align-items:center;justify-content:center}.variants-table .delete-button{margin-left:0.5em;opacity:0.8}.read-more-subtext{font-size:0.8rem}.codec-module .ant-collapse-content-active{background-color:var(--white-15)} +.config-video-variants .variants-table { + margin-top: 2em; +} +.config-video-variants .variants-table-module { + min-width: 400px; +} +.config-variant-form .description { + margin-top: 0; +} +.config-variant-form .passthrough-warning { + text-align: center; + padding: 1em; + color: var(--ant-warning); + font-size: 0.88em; + font-weight: 500; + background-color: var(--black-50); + border-radius: var(--container-border-radius); +} +.config-variant-form .cpu-usage-container, +.config-variant-form .bitrate-container { + min-height: 22em; +} +.config-variant-form .advanced-settings { + margin-top: 1em; +} +.config-variant-form .advanced-settings .resolution-module, +.config-variant-form .advanced-settings .video-passthrough-module { + min-height: 30em; +} +.config-variant-form.video-passthrough-enabled .form-module:not(.video-passthrough-module) { + opacity: 0.25; + cursor: not-allowed; +} +.variants-table .actions { + display: flex; + align-items: center; + justify-content: center; +} +.variants-table .delete-button { + margin-left: 0.5em; + opacity: 0.8; +} +.read-more-subtext { + font-size: 0.8rem; +} +.codec-module .ant-collapse-content-active { + background-color: var(--white-15); +} diff --git a/static/web/styles/admin/form-misc-elements.css b/static/web/styles/admin/form-misc-elements.css index af4fba38d..011d05b86 100644 --- a/static/web/styles/admin/form-misc-elements.css +++ b/static/web/styles/admin/form-misc-elements.css @@ -1 +1,64 @@ -.status-container{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;font-size:0.75rem}.status-container.status-success{color:var(--ant-success)}.status-container.status-error{color:var(--ant-error)}.status-container.status-warning{color:var(--ant-warning)}.status-container.empty{display:none}.status-container .status-icon{display:inline-block;margin-right:0.5em}.field-tip{font-size:0.8em;color:var(--white-50)}.field-container{padding:0.85em 0 0.5em}.segment-slider-container{width:100%;margin:auto;padding:1em 2em 0.75em;background-color:var(--owncast-purple-25);border-radius:var(--container-border-radius)}.segment-slider-container .status-container{width:100%;margin:0.5em auto;text-align:center}.segment-slider-container .selected-value-note{width:100%;margin:3em auto 0;text-align:center;font-size:0.75em;line-height:normal;color:var(--white);padding:1em;border-radius:var(--container-border-radius);background-color:var(--black-35)}.segment-tip{width:10em;text-align:center;margin:auto;display:inline-block}#selected-codec-note{margin-top:8px;text-align:justify;line-height:1.4em} +.status-container { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + font-size: 0.75rem; +} +.status-container.status-success { + color: var(--ant-success); +} +.status-container.status-error { + color: var(--ant-error); +} +.status-container.status-warning { + color: var(--ant-warning); +} +.status-container.empty { + display: none; +} +.status-container .status-icon { + display: inline-block; + margin-right: 0.5em; +} +.field-tip { + font-size: 0.8em; + color: var(--white-50); +} +.field-container { + padding: 0.85em 0 0.5em; +} +.segment-slider-container { + width: 100%; + margin: auto; + padding: 1em 2em 0.75em; + background-color: var(--owncast-purple-25); + border-radius: var(--container-border-radius); +} +.segment-slider-container .status-container { + width: 100%; + margin: 0.5em auto; + text-align: center; +} +.segment-slider-container .selected-value-note { + width: 100%; + margin: 3em auto 0; + text-align: center; + font-size: 0.75em; + line-height: normal; + color: var(--white); + padding: 1em; + border-radius: var(--container-border-radius); + background-color: var(--black-35); +} +.segment-tip { + width: 10em; + text-align: center; + margin: auto; + display: inline-block; +} +#selected-codec-note { + margin-top: 8px; + text-align: justify; + line-height: 1.4em; +} diff --git a/static/web/styles/admin/form-textfields.css b/static/web/styles/admin/form-textfields.css index 6df440343..3973f481c 100644 --- a/static/web/styles/admin/form-textfields.css +++ b/static/web/styles/admin/form-textfields.css @@ -1 +1,128 @@ -.formfield-container{--form-label-container-width: 15em;display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;width:100%;max-width:600px}.formfield-container .label-side{padding-right:1.25em;text-align:right;width:var(--form-label-container-width);margin:0.2em 0}.formfield-container .formfield-label{font-weight:500;font-size:1em;color:var(--owncast-purple)}.formfield-container .formfield-label::after{content:':'}.formfield-container.required .formfield-label::before{content:'*';display:inline-block;margin-right:0.25em;color:var(--ant-error)}.formfield-container .input-side{max-width:500px;width:100%}.formfield-container .input-group{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.formfield-container .status-container{margin:0.25em;width:100%;display:block}.formfield-container .status-container.empty{display:none;visibility:visible}.formfield-container .field-tip{margin:0.5em 0.5em}@media (max-width: 800px){.formfield-container{flex-wrap:wrap}.formfield-container .label-side{width:100%;text-align:left}}.textfield-with-submit-container{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:1em}.textfield-with-submit-container .textfield-component{width:100%}.textfield-with-submit-container .textfield-component .textfield-container .field-tip,.textfield-with-submit-container .textfield-component .textfield-container .status-container{display:none}.textfield-with-submit-container .lower-container{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start}.textfield-with-submit-container .lower-container .label-spacer{width:var(--form-label-container-width)}.textfield-with-submit-container .lower-container .lower-content{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-end;width:100%}.textfield-with-submit-container .lower-container .lower-content .field-tip{margin-right:1em;width:100%}.textfield-with-submit-container .lower-container .lower-content .status-container{margin:0.5em}.textfield-with-submit-container .lower-container .lower-content .status-container.empty{display:none}.textfield-with-submit-container .lower-container .update-button-container{visibility:hidden;margin:0.25em 0}.textfield-with-submit-container.submittable .lower-container .update-button-container{visibility:visible}@media (max-width: 800px){.textfield-with-submit-container .label-spacer{display:none}}.toggleswitch-container{margin:2em 0 1em}.toggleswitch-container .label-side{margin-top:0}.toggleswitch-container .input-group{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.toggleswitch-container .input-group .status-container{width:auto;margin:0 0 0 1em;display:inline-block} +.formfield-container { + --form-label-container-width: 15em; + display: flex; + flex-direction: row; + align-items: flex-start; + justify-content: flex-start; + width: 100%; + max-width: 600px; +} +.formfield-container .label-side { + padding-right: 1.25em; + text-align: right; + width: var(--form-label-container-width); + margin: 0.2em 0; +} +.formfield-container .formfield-label { + font-weight: 500; + font-size: 1em; + color: var(--owncast-purple); +} +.formfield-container .formfield-label::after { + content: ':'; +} +.formfield-container.required .formfield-label::before { + content: '*'; + display: inline-block; + margin-right: 0.25em; + color: var(--ant-error); +} +.formfield-container .input-side { + max-width: 500px; + width: 100%; +} +.formfield-container .input-group { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; +} +.formfield-container .status-container { + margin: 0.25em; + width: 100%; + display: block; +} +.formfield-container .status-container.empty { + display: none; + visibility: visible; +} +.formfield-container .field-tip { + margin: 0.5em 0.5em; +} +@media (max-width: 800px) { + .formfield-container { + flex-wrap: wrap; + } + .formfield-container .label-side { + width: 100%; + text-align: left; + } +} +.textfield-with-submit-container { + display: flex; + flex-direction: column; + align-items: flex-start; + margin-bottom: 1em; +} +.textfield-with-submit-container .textfield-component { + width: 100%; +} +.textfield-with-submit-container .textfield-component .textfield-container .field-tip, +.textfield-with-submit-container .textfield-component .textfield-container .status-container { + display: none; +} +.textfield-with-submit-container .lower-container { + display: flex; + flex-direction: row; + align-items: flex-start; + justify-content: flex-start; +} +.textfield-with-submit-container .lower-container .label-spacer { + width: var(--form-label-container-width); +} +.textfield-with-submit-container .lower-container .lower-content { + display: flex; + flex-direction: row; + align-items: flex-start; + justify-content: flex-end; + width: 100%; +} +.textfield-with-submit-container .lower-container .lower-content .field-tip { + margin-right: 1em; + width: 100%; +} +.textfield-with-submit-container .lower-container .lower-content .status-container { + margin: 0.5em; +} +.textfield-with-submit-container .lower-container .lower-content .status-container.empty { + display: none; +} +.textfield-with-submit-container .lower-container .update-button-container { + visibility: hidden; + margin: 0.25em 0; +} +.textfield-with-submit-container.submittable .lower-container .update-button-container { + visibility: visible; +} +@media (max-width: 800px) { + .textfield-with-submit-container .label-spacer { + display: none; + } +} +.toggleswitch-container { + margin: 2em 0 1em; +} +.toggleswitch-container .label-side { + margin-top: 0; +} +.toggleswitch-container .input-group { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; +} +.toggleswitch-container .input-group .status-container { + width: auto; + margin: 0 0 0 1em; + display: inline-block; +} diff --git a/static/web/styles/admin/home.css b/static/web/styles/admin/home.css index 3c8558abe..76c01651b 100644 --- a/static/web/styles/admin/home.css +++ b/static/web/styles/admin/home.css @@ -1 +1,65 @@ -.home-container .online-status-section{margin-bottom:1em}.home-container .online-status-section .online-details-card{border-color:var(--online-color)}.home-container .stream-details-item-container{margin:1em 0}.home-container .stream-details-item-container:first-of-type{margin-top:0}.home-container .stream-details>.ant-card-bordered{border-color:rgba(255,255,255,0.1)}.home-container .outbound-details{margin-bottom:1em}.offline-content .list-section{background-color:var(--container-bg-color-alt);border-radius:var(--container-border-radius);padding:1em}.offline-content .list-section>.ant-card{background-color:var(--black);margin-bottom:1em}.offline-intro{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;margin-bottom:2em}.offline-intro .logo-svg{height:6em;width:6em}.news-feed{margin-top:0;padding:1.5em}.news-feed h2{font-size:1.2em;margin-top:0;color:var(--pink)}.news-feed article{padding:1em 0.25em;font-size:0.9rem;color:var(--white-75);border-bottom:1px solid var(--gray)}.news-feed article h3{font-size:1.2em}.news-feed article h3 a{font-weight:400;font-size:1em}.news-feed article .timestamp{margin-top:0;font-size:0.75em;color:var(--white-50)} +.home-container .online-status-section { + margin-bottom: 1em; +} +.home-container .online-status-section .online-details-card { + border-color: var(--online-color); +} +.home-container .stream-details-item-container { + margin: 1em 0; +} +.home-container .stream-details-item-container:first-of-type { + margin-top: 0; +} +.home-container .stream-details > .ant-card-bordered { + border-color: rgba(255, 255, 255, 0.1); +} +.home-container .outbound-details { + margin-bottom: 1em; +} +.offline-content .list-section { + background-color: var(--container-bg-color-alt); + border-radius: var(--container-border-radius); + padding: 1em; +} +.offline-content .list-section > .ant-card { + background-color: var(--black); + margin-bottom: 1em; +} +.offline-intro { + display: flex; + flex-direction: row; + justify-content: space-evenly; + align-items: center; + margin-bottom: 2em; +} +.offline-intro .logo-svg { + height: 6em; + width: 6em; +} +.news-feed { + margin-top: 0; + padding: 1.5em; +} +.news-feed h2 { + font-size: 1.2em; + margin-top: 0; + color: var(--pink); +} +.news-feed article { + padding: 1em 0.25em; + font-size: 0.9rem; + color: var(--white-75); + border-bottom: 1px solid var(--gray); +} +.news-feed article h3 { + font-size: 1.2em; +} +.news-feed article h3 a { + font-weight: 400; + font-size: 1em; +} +.news-feed article .timestamp { + margin-top: 0; + font-size: 0.75em; + color: var(--white-50); +} diff --git a/static/web/styles/admin/main-layout.css b/static/web/styles/admin/main-layout.css index e67660ea7..f74e7842f 100644 --- a/static/web/styles/admin/main-layout.css +++ b/static/web/styles/admin/main-layout.css @@ -1 +1,130 @@ -.app-container .side-nav{position:fixed;height:100vh;overflow:auto;z-index:10;background-color:var(--nav-bg-color)}.app-container .menu-container{border-color:transparent}.app-container h1.owncast-title{padding:1rem;padding-bottom:4px;display:flex;flex-direction:row;justify-content:center;align-items:center}.app-container h1.owncast-title .logo-container{background-color:var(--white);padding-top:4px;padding-right:6px;padding-left:6px;border-radius:9999px}.app-container h1.owncast-title .title-label{display:inline-block;margin-left:1rem;color:var(--white);font-size:1.15rem;font-weight:200;text-transform:uppercase;line-height:normal;letter-spacing:0.05em}.app-container .layout-main{margin-left:240px}.app-container .layout-header{display:flex;flex-direction:row;justify-content:flex-end;padding-right:1rem;padding-left:1rem;background-color:var(--nav-bg-color)}.app-container .main-content-container{padding:2em 3em 3em;min-width:50vw}.app-container .footer-container{text-align:center}.app-container .online-status-indicator{display:flex;flex-direction:row;justify-content:center;align-items:center}.app-container .online-status-indicator .online-thumbnail{width:12.5rem}.app-container .online-status-indicator .status-label{color:var(--white);text-transform:uppercase;font-size:0.75rem;display:inline-block;margin-right:0.5rem;color:var(--offline-color)}.app-container .online-status-indicator .status-icon{font-size:1.5rem}.app-container .online-status-indicator .status-icon svg{fill:var(--offline-color)}.app-container.online .online-status-indicator .status-icon svg{fill:var(--online-color)}.app-container.online .online-status-indicator .status-label{white-space:nowrap;color:var(--online-color)}.global-stream-title-container{display:flex;justify-content:center;align-items:center;width:100%}.global-stream-title-container .textfield-with-submit-container{flex-direction:row;justify-content:center;align-items:center;margin-bottom:0}.global-stream-title-container .textfield-with-submit-container .input-side{width:400px}@media (max-width: 800px){.global-stream-title-container .textfield-with-submit-container .input-side{width:auto}}.global-stream-title-container .textfield-with-submit-container .label-side{display:none}.global-stream-title-container .textfield-with-submit-container .lower-container{width:auto}.global-stream-title-container .textfield-with-submit-container .lower-container .lower-content{flex-direction:column-reverse;position:relative}.global-stream-title-container .textfield-with-submit-container .lower-container .label-spacer,.global-stream-title-container .textfield-with-submit-container .lower-container .field-tip{display:none}.global-stream-title-container .textfield-with-submit-container .lower-container .status-container{line-height:1;position:absolute;bottom:-2em}.global-stream-title-container .textfield-with-submit-container .lower-container .update-button-container{margin:0;margin-left:0.5em;line-height:1} +.app-container .side-nav { + position: fixed; + height: 100vh; + overflow: auto; + z-index: 10; + background-color: var(--nav-bg-color); +} +.app-container .menu-container { + border-color: transparent; +} +.app-container h1.owncast-title { + padding: 1rem; + padding-bottom: 4px; + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; +} +.app-container h1.owncast-title .logo-container { + background-color: var(--white); + padding-top: 4px; + padding-right: 6px; + padding-left: 6px; + border-radius: 9999px; +} +.app-container h1.owncast-title .title-label { + display: inline-block; + margin-left: 1rem; + color: var(--white); + font-size: 1.15rem; + font-weight: 200; + text-transform: uppercase; + line-height: normal; + letter-spacing: 0.05em; +} +.app-container .layout-main { + margin-left: 240px; +} +.app-container .layout-header { + display: flex; + flex-direction: row; + justify-content: flex-end; + padding-right: 1rem; + padding-left: 1rem; + background-color: var(--nav-bg-color); +} +.app-container .main-content-container { + padding: 2em 3em 3em; + min-width: 50vw; +} +.app-container .footer-container { + text-align: center; +} +.app-container .online-status-indicator { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; +} +.app-container .online-status-indicator .online-thumbnail { + width: 12.5rem; +} +.app-container .online-status-indicator .status-label { + color: var(--white); + text-transform: uppercase; + font-size: 0.75rem; + display: inline-block; + margin-right: 0.5rem; + color: var(--offline-color); +} +.app-container .online-status-indicator .status-icon { + font-size: 1.5rem; +} +.app-container .online-status-indicator .status-icon svg { + fill: var(--offline-color); +} +.app-container.online .online-status-indicator .status-icon svg { + fill: var(--online-color); +} +.app-container.online .online-status-indicator .status-label { + white-space: nowrap; + color: var(--online-color); +} +.global-stream-title-container { + display: flex; + justify-content: center; + align-items: center; + width: 100%; +} +.global-stream-title-container .textfield-with-submit-container { + flex-direction: row; + justify-content: center; + align-items: center; + margin-bottom: 0; +} +.global-stream-title-container .textfield-with-submit-container .input-side { + width: 400px; +} +@media (max-width: 800px) { + .global-stream-title-container .textfield-with-submit-container .input-side { + width: auto; + } +} +.global-stream-title-container .textfield-with-submit-container .label-side { + display: none; +} +.global-stream-title-container .textfield-with-submit-container .lower-container { + width: auto; +} +.global-stream-title-container .textfield-with-submit-container .lower-container .lower-content { + flex-direction: column-reverse; + position: relative; +} +.global-stream-title-container .textfield-with-submit-container .lower-container .label-spacer, +.global-stream-title-container .textfield-with-submit-container .lower-container .field-tip { + display: none; +} +.global-stream-title-container .textfield-with-submit-container .lower-container .status-container { + line-height: 1; + position: absolute; + bottom: -2em; +} +.global-stream-title-container + .textfield-with-submit-container + .lower-container + .update-button-container { + margin: 0; + margin-left: 0.5em; + line-height: 1; +} diff --git a/static/web/styles/admin/offline-notice.css b/static/web/styles/admin/offline-notice.css index 54036cc18..9a31f466d 100644 --- a/static/web/styles/admin/offline-notice.css +++ b/static/web/styles/admin/offline-notice.css @@ -1 +1,22 @@ -.stream-info-box{background-color:var(--purple-dark);color:var(--white);padding:0.25rem 0.5rem;margin:0 !important}.stream-info-box .ant-typography-copy{margin-left:0.25rem}.stream-info-label{align-self:center;text-align:right;margin:0}.stream-info-container{margin:8px 0 4px 0;display:grid;grid-template-columns:max-content 1fr;grid-template-rows:min-content min-content;gap:8px 8px;grid-template-areas:'. .' '. .'} +.stream-info-box { + background-color: var(--purple-dark); + color: var(--white); + padding: 0.25rem 0.5rem; + margin: 0 !important; +} +.stream-info-box .ant-typography-copy { + margin-left: 0.25rem; +} +.stream-info-label { + align-self: center; + text-align: right; + margin: 0; +} +.stream-info-container { + margin: 8px 0 4px 0; + display: grid; + grid-template-columns: max-content 1fr; + grid-template-rows: min-content min-content; + gap: 8px 8px; + grid-template-areas: '. .' '. .'; +} diff --git a/static/web/styles/admin/pages.css b/static/web/styles/admin/pages.css index 4179d137a..fec86cb49 100644 --- a/static/web/styles/admin/pages.css +++ b/static/web/styles/admin/pages.css @@ -1 +1,5 @@ -.upgrade-page h2,.upgrade-page h3{color:var(--pink);font-size:1.25em} +.upgrade-page h2, +.upgrade-page h3 { + color: var(--pink); + font-size: 1.25em; +}