diff --git a/static/web/404.html b/static/web/404.html index 65b545eb1..72a9d5d0b 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 65b545eb1..72a9d5d0b 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/chunks/1632-6459755a347ad23a.js b/static/web/_next/static/chunks/1632-6459755a347ad23a.js deleted file mode 100644 index 85e9ee9a6..000000000 --- a/static/web/_next/static/chunks/1632-6459755a347ad23a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1632],{71632:function(e,t,n){"use strict";n.r(t),n.d(t,{ChatContainer:function(){return xe}});var a=n(85893),s=n(9764),r=n(67294),o=n(36531),i=n(11622),c=n(13545),l=n.n(c),u=n(14924),d=n(86492),h=n.n(d),m=n(94184),g=n.n(m),p=n(94199),f=n(29158),x=n(4480),_=n(5152),C=n.n(_),v=n(78583),j=n.n(v);function y(e){var t=new Date(e);if(Number.isNaN(t))return"";if(function(e){var t="string"===typeof e?new Date(e):e;return(new Date-t)/864e5}(e)>=1){var n=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"at ".concat(n," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}var N,M,b,S,w,E=n(79010),T=n.n(E),k=function(e){var t=e.badge,n=e.userColor,s="var(--theme-user-colors-".concat(n,")"),r={color:s,borderColor:s};return(0,a.jsx)("span",{style:r,className:T().badge,children:t})},A=n(1899),B=C()((function(){return Promise.all([n.e(8939),n.e(3903),n.e(4267),n.e(3626),n.e(8091),n.e(1300),n.e(7781)]).then(n.bind(n,87781)).then((function(e){return e.ChatModerationActionMenu}))}),{loadableGenerated:{webpack:function(){return[87781]}}}),D=C()((function(){return Promise.resolve().then(n.bind(n,47049)).then((function(e){return e.Highlight}))}),{loadableGenerated:{webpack:function(){return[47049]}}}),O=function(e){var t=e.message,n=e.highlightString,s=e.showModeratorMenu,o=e.sentBySelf,i=e.sameUserAsLast,c=e.isAuthorModerator,l=e.isAuthorAuthenticated,d=t.id,m=t.body,_=t.user,C=t.timestamp,v=_.id,N=_.displayName,M=_.displayColor,b=(0,x.sJ)(A.FI),S="var(--theme-color-users-".concat(M,")"),w="Sent ".concat(y(C)),E=(0,r.useState)(m),T=E[0],O=E[1],U=[];return c&&U.push((0,a.jsx)(k,{badge:"mod",userColor:M},"mod")),l&&U.push((0,a.jsx)(k,{badge:(0,a.jsx)(f.Z,{title:"authenticated"}),userColor:M},"auth")),(0,r.useEffect)((function(){O(h().decode(m))}),[t]),(0,a.jsx)("div",{className:g()(j().messagePadding,i&&j().messagePaddingCollapsed),children:(0,a.jsxs)("div",{className:g()(j().root,(0,u.Z)({},j().ownMessage,o)),style:{borderColor:S},children:[!i&&(0,a.jsx)(p.Z,{title:"user info goes here",placement:"topLeft",mouseEnterDelay:1,children:(0,a.jsxs)("div",{className:j().user,style:{color:S},children:[(0,a.jsx)("span",{className:j().userName,children:N}),(0,a.jsx)("span",{children:U})]})}),(0,a.jsx)(p.Z,{title:w,mouseEnterDelay:1,children:(0,a.jsx)(D,{search:n,children:(0,a.jsx)("div",{className:j().message,dangerouslySetInnerHTML:{__html:T}})})}),s&&(0,a.jsx)("div",{className:j().modMenuWrapper,children:(0,a.jsx)(B,{messageID:d,accessToken:b,userID:v,userDisplayName:N})}),(0,a.jsx)("div",{className:j().background,style:{color:S}})]})})},U=n(26042),I=n(69396),F=n(828),H=n(93045),L=n(27496),R=n(55241),Z=n(77493),P=n(96391),W=n(25882),G=n.n(W),V=C()((function(){return Promise.all([n.e(7741),n.e(786)]).then(n.bind(n,30786)).then((function(e){return e.EmojiPicker}))}),{loadableGenerated:{webpack:function(){return[30786]}}}),Y=function(e){var t=e.attributes,n=e.element,s=e.children,r=(0,P.vt)(),o=(0,P.UE)();return(0,a.jsxs)("span",(0,I.Z)((0,U.Z)({},t),{contentEditable:!1,children:[(0,a.jsx)("img",{alt:n.alt,src:n.src,title:n.name,style:{display:"inline",maxWidth:"50px",maxHeight:"20px",boxShadow:"".concat(r&&o?"0 0 0 3px #B4D5FF":"none")}}),s]}))},J=function(e){var t,n;if(Z.xv.isText(e))return e.text;0===e.children.length?t=[{text:""}]:t=null===(n=e.children)||void 0===n?void 0:n.map((function(e){return J(e)})).join("");switch(e.type){case"paragraph":return"

".concat(t,"

");case"image":return'').concat(e.alt,'');default:return t}},z=function(e){if(Z.xv.isText(e))return e.text.length;if("image"===e.type)return 5;var t=0;return e.children.forEach((function(e){t+=z(e)})),t},X=function(e){var t=e.defaultText,n=(0,r.useState)(!1),s=n[0],o=n[1],c=(0,r.useState)(null===t||void 0===t?void 0:t.length),l=c[0],u=c[1],d=(0,x.sJ)(A.Gt),h=(0,r.useMemo)((function(){return(0,P.BU)(function(e){var t=e.isVoid;return e.isVoid=function(e){return"image"===e.type||t(e)},e.isInline=function(e){return"image"===e.type},e}((0,Z.Jh)()))}),[]),m=[{type:"paragraph",children:[{text:t||""}]}],p=function(){if(d){var e=J(h);d.send({type:i.C.CHAT,body:e}),Z.YR.delete(h,{at:{anchor:Z.ML.start(h,[]),focus:Z.ML.end(h,[])}}),u(0)}else console.log("websocketService is not defined")};return(0,a.jsx)("div",{className:G().root,children:(0,a.jsxs)("div",{className:g()(G().inputWrap,l>=300&&G().maxCharacters),children:[(0,a.jsxs)(P.mH,{editor:h,value:m,children:[(0,a.jsx)(P.CX,{onKeyDown:function(e){var t=z(h)+1;if("Enter"===e.key)return e.preventDefault(),void p();"Backspace"!==e.key?(t+1>300&&e.preventDefault(),u(t+1)):u(t-1)},onPaste:function(e){var t=e.clipboardData.getData("text/plain").length;l+t>300&&e.preventDefault()},renderElement:function(e){return"image"===e.element.type?(0,a.jsx)(Y,(0,U.Z)({},e)):(0,a.jsx)("p",(0,U.Z)({},e))},placeholder:"Chat message goes here...",style:{width:"100%"},autoFocus:!0}),(0,a.jsx)(R.Z,{content:(0,a.jsx)(V,{onEmojiSelect:function(e){P.F3.focus(h),Z.YR.insertText(h,e)},onCustomEmojiSelect:function(e,t){P.F3.focus(h),function(e,t){if(e){var n=h.selection,a=function(e,t,n){return{type:"image",alt:e,src:t,name:n,children:[{text:""}]}}(t,e,t);if(Z.YR.insertNodes(h,a,{select:!0}),n){var s,r=(0,F.Z)(Z.ML.parent(h,null===(s=n.focus)||void 0===s?void 0:s.path),2),o=r[0],i=r[1];h.isVoid(o)||Z.NB.string(o).length?Z.YR.insertNodes(h,a,{at:Z.y$.next(i),select:!0}):(Z.YR.insertNodes(h,a,{at:i,select:!0}),Z.ML.normalize(h,{force:!0}))}else Z.YR.insertNodes(h,a,{select:!0})}}(t,e)}}),trigger:"click",onOpenChange:function(e){return o(e)},open:s})]}),(0,a.jsxs)("div",{style:{display:"flex",paddingLeft:"5px"},children:[(0,a.jsx)("button",{type:"button",className:G().emojiButton,title:"Emoji picker button",onClick:function(){return o(!s)},children:(0,a.jsx)(H.Z,{})}),(0,a.jsx)("button",{type:"button",className:G().sendButton,title:"Send message Button",onClick:p,children:(0,a.jsx)(L.Z,{})})]})]})})},q=n(93174),K=n.n(q);function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t12e4)&&a===(null===s||void 0===s?void 0:s.user.id)}function fe(e){var t=e.user.scopes;return!(!t||0===t.length)&&t.includes("MODERATOR")}var xe=function(e){var t=e.messages,n=e.usernameToHighlight,c=e.chatUserId,u=e.isModerator,d=e.showInput,h=e.height,m=(0,r.useState)(!1),g=m[0],p=m[1],f=(0,r.useRef)(null),x=function(e,s){switch(s.type){case i.C.CHAT:var r,d,h;return(0,a.jsx)(O,{message:s,showModeratorMenu:u,highlightString:n,sentBySelf:(null===(r=s.user)||void 0===r?void 0:r.id)===c,sameUserAsLast:pe(t,e),isAuthorModerator:null===(d=s.user.scopes)||void 0===d?void 0:d.includes("MODERATOR"),isAuthorAuthenticated:null===(h=s.user)||void 0===h?void 0:h.authenticated},s.id);case i.C.NAME_CHANGE:return function(e){var t=e.oldName,n=e.user,s=n.displayName,r=n.displayColor,i="var(--theme-color-users-".concat(r,")");return(0,a.jsxs)("div",{className:l().nameChangeView,children:[(0,a.jsx)("div",{style:{marginRight:5,height:"max-content",margin:"auto 5px auto 0"},children:(0,a.jsx)(o.Z,{})}),(0,a.jsxs)("div",{className:l().nameChangeText,children:[(0,a.jsx)("span",{style:{color:i},children:t}),(0,a.jsx)("span",{className:l().plain,children:" is now known as "}),(0,a.jsx)("span",{style:{color:i},children:s})]})]})}(s);case i.C.CONNECTED_USER_INFO:return function(e){if(!fe(e))return(0,a.jsx)("div",{style:{width:"1px",height:"1px"}});return(0,a.jsx)(ee,{})}(s);case i.C.USER_JOINED:return function(e){var t=e.user,n=t.displayName,s=t.displayColor,r=fe(e);return(0,a.jsx)(ce,{displayName:n,userColor:s,isAuthorModerator:r})}(s);case i.C.CHAT_ACTION:return function(e){var t=e.body;return(0,a.jsx)(ge,{body:t})}(s);case i.C.SYSTEM:return(0,a.jsx)(se,{message:s,highlightString:n},s.id);default:return null}},_=(0,r.useMemo)((function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.OO,{style:{height:h},className:l().virtuoso,ref:f,initialTopMostItemIndex:t.length-1,data:t,itemContent:function(e,t){return x(e,t)},followOutput:"auto",alignToBottom:!0,atBottomStateChange:function(e){return p(e)}}),!g&&(0,a.jsx)(de,{chatContainerRef:f,messages:t})]})}),[t,n,c,u,g]);return(0,a.jsxs)("div",{className:l().chatContainer,children:[_,d&&(0,a.jsx)(X,{})]})};xe.defaultProps={showInput:!0,height:"auto"}},33196:function(e){e.exports={chatAction:"ChatActionMessage_chatAction__x9Xsg"}},13545:function(e){e.exports={chatHeader:"ChatContainer_chatHeader__EJsYI",toBottomWrap:"ChatContainer_toBottomWrap__3V5wa",toBottomBtn:"ChatContainer_toBottomBtn__453AG",nameChangeView:"ChatContainer_nameChangeView__ziyXN",nameChangeText:"ChatContainer_nameChangeText__yXG__",plain:"ChatContainer_plain__IPS19",chatContainer:"ChatContainer_chatContainer__O2lYN",virtuoso:"ChatContainer_virtuoso__OS9Kz"}},83066:function(e){e.exports={root:"ChatJoinMessage_root__vuVXa"}},93174:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},31681:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},25882:function(e){e.exports={root:"ChatTextField_root__4oUkJ",inputWrap:"ChatTextField_inputWrap__1mAjD",maxCharacters:"ChatTextField_maxCharacters__yGT4s",emojiButton:"ChatTextField_emojiButton__ON_Cu",sendButton:"ChatTextField_sendButton__MOmD4"}},79010:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},78583:function(e){e.exports={root:"ChatUserMessage_root__79heB",user:"ChatUserMessage_user__xUEp9",message:"ChatUserMessage_message__MJ9LD",ownMessage:"ChatUserMessage_ownMessage__d28A3",background:"ChatUserMessage_background__Tfghp",modMenuWrapper:"ChatUserMessage_modMenuWrapper__7fblv",messagePadding:"ChatUserMessage_messagePadding__Xp1F6",messagePaddingCollapsed:"ChatUserMessage_messagePaddingCollapsed__qxN0E"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/1899-19c3bbd726bf14e2.js b/static/web/_next/static/chunks/1899-19c3bbd726bf14e2.js new file mode 100644 index 000000000..aa95fce8f --- /dev/null +++ b/static/web/_next/static/chunks/1899-19c3bbd726bf14e2.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 W},FI:function(){return k},Q:function(){return G},L4:function(){return Z},j$:function(){return D},ZA:function(){return F},g1:function(){return T},g8:function(){return P},db:function(){return m},ap:function(){return H},di:function(){return J},pT:function(){return Y},hz:function(){return M},YW:function(){return j},We:function(){return U},RI:function(){return I},pH:function(){return B},Gt:function(){return L}});var r=n(47568),o=n(26042),i=n(69396),a=n(828),c=n(29815),s=n(70655),u=n(67294),l=n(4480),f=n(23917);var d=n(51438),h=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}(),E=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,E.$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,E.$l)("/api/chat/register",t)];case 1:return[2,n.sent()]}}))}))()},e}(),v=n(11622),p=function(){function e(t,n,r){(0,d.Z)(this,e),this.isShutdown=!1,this.backOff=1e3,this.accessToken=t,this.path=n,this.websocketReconnectTimer=null,this.isShutdown=!1,this.createAndConnect=this.createAndConnect.bind(this),this.shutdown=this.shutdown.bind(this),this.createAndConnect(r)}var t=e.prototype;return t.createAndConnect=function(e){var t=new URL(e);t.protocol="https:"===window.location.protocol?"wss:":"ws:",t.pathname="/ws",t.port="3000"===window.location.port?"8080":window.location.port,t.searchParams.append("accessToken",this.accessToken),console.debug("connecting to ",t.toString());var n=new WebSocket(t.toString());n.onopen=this.onOpen.bind(this),n.onerror=this.onError.bind(this),n.onmessage=this.onMessage.bind(this),this.websocket=n},t.onOpen=function(){this.websocketReconnectTimer&&clearTimeout(this.websocketReconnectTimer)},t.onError=function(e){var t;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(),this.isShutdown||this.scheduleReconnect()},t.scheduleReconnect=function(){this.websocketReconnectTimer&&clearTimeout(this.websocketReconnectTimer),this.backOff*=2,this.websocketReconnectTimer=setTimeout(this.createAndConnect,5e3+Math.min(this.backOff,1e4))},t.shutdown=function(){this.isShutdown=!0,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(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,A.getStatus()];case 1:return e=o.sent(),B(e),ce(!0),t=e.serverTime,n=new Date(t).getTime()-Date.now(),W(n),e.online?de(y.Online):e.online||de(y.Offline),ee(null),[3,3];case 2:return r=o.sent(),de(y.Fail),fe("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)}}(),ge=function(){var e=(0,r.Z)((function(e){var t,n,r,a,c,u;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:if(t=(0,N.$o)(_))return K(t),[2];s.label=1;case 1:return s.trys.push([1,3,,4]),de(y.NeedsRegister),[4,g.registerUser(e)];case 2:return n=s.sent(),console.log("ChatService -> registerUser() response: \n".concat(n)),r=n.accessToken,a=n.displayName,c=n.displayColor,r?(console.log("setting access token",r),F((0,i.Z)((0,o.Z)({},M),{displayName:a,displayColor:c})),K(r),(0,N.qQ)(_,r),[3,4]):[2];case 3:return u=s.sent(),de(y.Fail),console.error("ChatService -> registerUser() ERROR: \n".concat(u)),[3,4];case 4:return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),ve=function(e){switch(e.type){case v.C.ERROR_NEEDS_REGISTRATION:(0,N.qQ)(_,""),K(null),ge();break;case v.C.CONNECTED_USER_INFO:R(e,U,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:w(e,$,Q);break;case v.C.USER_JOINED:case v.C.SYSTEM:case v.C.CHAT_ACTION: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=re.filter((function(e){return!t.includes(e)}));oe(n)}else{var r=(0,c.Z)(re).concat((0,c.Z)(t));oe(r)}}(e);break;default:console.error("Unknown socket message type: ",e.type)}},pe=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(x)];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)}}(),Se=function(){var t=(0,r.Z)((function(){var t,n;return(0,s.__generator)(this,(function(r){try{t=J.socketHostOverride,n=t||window.location.toString(),(e=new p(x,"/ws",n)).handleMessage=ve,te(e)}catch(o){console.error("ChatService -> startChat() ERROR: \n".concat(o))}return[2]}))}));return function(){return t.apply(this,arguments)}}();return(0,u.useEffect)((function(){try{if(window.configHydration){var e=JSON.parse(window.configHydration);j(e)}}catch(n){console.error("Error parsing config hydration",n)}try{if(window.statusHydration){var t=JSON.parse(window.statusHydration);B(t)}}catch(r){console.error("error parsing status hydration",r)}}),[]),(0,u.useEffect)((function(){ae&&ue&&de(y.Loaded)}),[ae,ue]),(0,u.useEffect)((function(){!J.chatDisabled&&x&&ue&&Se()}),[ue,x]),(0,u.useEffect)((function(){}),[$]),(0,u.useEffect)((function(){he(),ge(),Ee(),clearInterval(C),C=setInterval((function(){Ee()}),5e3)}),[n]),(0,u.useEffect)((function(){x&&pe()}),[x]),(0,u.useEffect)((function(){E.onTransition((function(e){if(e.changed){var t=(0,b.YR)(e.meta);z(t)}}))})),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={}))},44108:function(e,t,n){function r(e){var t="string"===typeof e?new Date(e):e;return(new Date-t)/864e5}n.d(t,{Xb:function(){return r},YR:function(){return o}});function o(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return Object.assign(t,r),t}),{})}},73682:function(e,t,n){n.d(t,{$o:function(){return o},dA:function(){return r},qQ:function(){return i}});var r={username:"username",hasDisplayedNotificationModal:"HAS_DISPLAYED_NOTIFICATION_MODAL",userVisitCount:"USER_VISIT_COUNT"};function o(e){try{return localStorage.getItem(e)}catch(t){}return null}function i(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-594b6afdcc743835.js b/static/web/_next/static/chunks/1899-594b6afdcc743835.js deleted file mode 100644 index 934bb3891..000000000 --- a/static/web/_next/static/chunks/1899-594b6afdcc743835.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 B},FI:function(){return T},Q:function(){return L},L4:function(){return Z},j$:function(){return m},ZA:function(){return M},g1:function(){return I},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 F},RI:function(){return w},pH:function(){return j},Gt:function(){return D}});var r=n(47568),o=n(26042),a=n(69396),i=n(828),c=n(29815),s=n(70655),u=n(67294),l=n(4480),f=n(23917);var d=n(51438),h=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}(),E=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,E.$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,E.$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.isShutdown=!1,this.backOff=1e3,this.accessToken=t,this.path=n,this.websocketReconnectTimer=null,this.createAndConnect=this.createAndConnect.bind(this),this.shutdown=this.shutdown.bind(this),this.isShutdown=!1,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;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(),this.isShutdown||this.scheduleReconnect()},t.scheduleReconnect=function(){this.websocketReconnectTimer&&clearTimeout(this.websocketReconnectTimer),this.backOff*=2,this.websocketReconnectTimer=setTimeout(this.createAndConnect,5e3+Math.min(this.backOff,1e4))},t.shutdown=function(){this.isShutdown=!0,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)}}(),he=function(){var e=(0,r.Z)((function(){var e,t,n,r;return(0,s.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,A.getStatus()];case 1:return e=o.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=o.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)}}(),Ee=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)(_))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),M((0,a.Z)((0,o.Z)({},G),{displayName:i,displayColor:c})),x(r),(0,O.qQ)(_,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)(_,""),x(null),Ee();break;case v.C.CONNECTED_USER_INFO:b(e,F,M),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:case v.C.CHAT_ACTION: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){console.error("Error parsing config hydration",n)}try{if(window.statusHydration){var t=JSON.parse(window.statusHydration);j(t)}}catch(r){console.error("error parsing status hydration",r)}}),[]),(0,u.useEffect)((function(){ae&&se&&fe(y.Loaded)}),[ae,se]),(0,u.useEffect)((function(){!J.chatDisabled&&q&&se&&pe()}),[se,q]),(0,u.useEffect)((function(){}),[$]),(0,u.useEffect)((function(){de(),Ee(),he(),clearInterval(R),R=setInterval((function(){he()}),5e3)}),[n]),(0,u.useEffect)((function(){q&&ve()}),[q]),(0,u.useEffect)((function(){E.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 o},dA:function(){return r},qQ:function(){return a}});var r={username:"username",hasDisplayedNotificationModal:"HAS_DISPLAYED_NOTIFICATION_MODAL",userVisitCount:"USER_VISIT_COUNT"};function o(e){try{return localStorage.getItem(e)}catch(t){}return null}function a(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/2382-db0487c02624c136.js b/static/web/_next/static/chunks/2382-db0487c02624c136.js new file mode 100644 index 000000000..7e64dfcf3 --- /dev/null +++ b/static/web/_next/static/chunks/2382-db0487c02624c136.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2382],{32382:function(e,t,n){"use strict";n.r(t),n.d(t,{ChatContainer:function(){return xe}});var a=n(85893),s=n(9764),r=n(67294),o=n(36531),i=n(11622),c=n(13545),l=n.n(c),u=n(14924),d=n(86492),h=n.n(d),m=n(94184),g=n.n(m),p=n(94199),f=n(29158),x=n(4480),_=n(5152),C=n.n(_),v=n(78583),j=n.n(v),y=n(44108);var N,M,b,S,w,E=n(79010),T=n.n(E),k=function(e){var t=e.badge,n=e.userColor,s="var(--theme-user-colors-".concat(n,")"),r={color:s,borderColor:s};return(0,a.jsx)("span",{style:r,className:T().badge,children:t})},A=n(1899),B=C()((function(){return Promise.all([n.e(8939),n.e(3903),n.e(4267),n.e(3626),n.e(8091),n.e(1300),n.e(7781)]).then(n.bind(n,87781)).then((function(e){return e.ChatModerationActionMenu}))}),{loadableGenerated:{webpack:function(){return[87781]}}}),D=C()((function(){return Promise.resolve().then(n.bind(n,47049)).then((function(e){return e.Highlight}))}),{loadableGenerated:{webpack:function(){return[47049]}}}),O=function(e){var t=e.message,n=e.highlightString,s=e.showModeratorMenu,o=e.sentBySelf,i=e.sameUserAsLast,c=e.isAuthorModerator,l=e.isAuthorAuthenticated,d=t.id,m=t.body,_=t.user,C=t.timestamp,v=_.id,N=_.displayName,M=_.displayColor,b=(0,x.sJ)(A.FI),S="var(--theme-color-users-".concat(M,")"),w="Sent ".concat(function(e){var t=new Date(e);if(Number.isNaN(t))return"";if((0,y.Xb)(e)>=1){var n=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"at ".concat(n," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}(C)),E=(0,r.useState)(m),T=E[0],O=E[1],U=[];return c&&U.push((0,a.jsx)(k,{badge:"mod",userColor:M},"mod")),l&&U.push((0,a.jsx)(k,{badge:(0,a.jsx)(f.Z,{title:"authenticated"}),userColor:M},"auth")),(0,r.useEffect)((function(){O(h().decode(m))}),[t]),(0,a.jsx)("div",{className:g()(j().messagePadding,i&&j().messagePaddingCollapsed),children:(0,a.jsxs)("div",{className:g()(j().root,(0,u.Z)({},j().ownMessage,o)),style:{borderColor:S},children:[!i&&(0,a.jsx)(p.Z,{title:"user info goes here",placement:"topLeft",mouseEnterDelay:1,children:(0,a.jsxs)("div",{className:j().user,style:{color:S},children:[(0,a.jsx)("span",{className:j().userName,children:N}),(0,a.jsx)("span",{children:U})]})}),(0,a.jsx)(p.Z,{title:w,mouseEnterDelay:1,children:(0,a.jsx)(D,{search:n,children:(0,a.jsx)("div",{className:j().message,dangerouslySetInnerHTML:{__html:T}})})}),s&&(0,a.jsx)("div",{className:j().modMenuWrapper,children:(0,a.jsx)(B,{messageID:d,accessToken:b,userID:v,userDisplayName:N})}),(0,a.jsx)("div",{className:j().background,style:{color:S}})]})})},U=n(26042),I=n(69396),F=n(828),H=n(93045),L=n(27496),R=n(55241),Z=n(77493),P=n(96391),W=n(25882),G=n.n(W),V=C()((function(){return Promise.all([n.e(7741),n.e(786)]).then(n.bind(n,30786)).then((function(e){return e.EmojiPicker}))}),{loadableGenerated:{webpack:function(){return[30786]}}}),Y=function(e){var t=e.attributes,n=e.element,s=e.children,r=(0,P.vt)(),o=(0,P.UE)();return(0,a.jsxs)("span",(0,I.Z)((0,U.Z)({},t),{contentEditable:!1,children:[(0,a.jsx)("img",{alt:n.alt,src:n.src,title:n.name,style:{display:"inline",maxWidth:"50px",maxHeight:"20px",boxShadow:"".concat(r&&o?"0 0 0 3px #B4D5FF":"none")}}),s]}))},J=function(e){var t,n;if(Z.xv.isText(e))return e.text;0===e.children.length?t=[{text:""}]:t=null===(n=e.children)||void 0===n?void 0:n.map((function(e){return J(e)})).join("");switch(e.type){case"paragraph":return"

".concat(t,"

");case"image":return'').concat(e.alt,'');default:return t}},X=function(e){if(Z.xv.isText(e))return e.text.length;if("image"===e.type)return 5;var t=0;return e.children.forEach((function(e){t+=X(e)})),t},z=function(e){var t=e.defaultText,n=(0,r.useState)(!1),s=n[0],o=n[1],c=(0,r.useState)(null===t||void 0===t?void 0:t.length),l=c[0],u=c[1],d=(0,x.sJ)(A.Gt),h=(0,r.useMemo)((function(){return(0,P.BU)(function(e){var t=e.isVoid;return e.isVoid=function(e){return"image"===e.type||t(e)},e.isInline=function(e){return"image"===e.type},e}((0,Z.Jh)()))}),[]),m=[{type:"paragraph",children:[{text:t||""}]}],p=function(){if(d){var e=J(h);d.send({type:i.C.CHAT,body:e}),Z.YR.delete(h,{at:{anchor:Z.ML.start(h,[]),focus:Z.ML.end(h,[])}}),u(0)}else console.log("websocketService is not defined")};return(0,a.jsx)("div",{className:G().root,children:(0,a.jsxs)("div",{className:g()(G().inputWrap,l>=300&&G().maxCharacters),children:[(0,a.jsxs)(P.mH,{editor:h,value:m,children:[(0,a.jsx)(P.CX,{onKeyDown:function(e){var t=X(h)+1;if("Enter"===e.key)return e.preventDefault(),void p();"Backspace"!==e.key?(t+1>300&&e.preventDefault(),u(t+1)):u(t-1)},onPaste:function(e){var t=e.clipboardData.getData("text/plain").length;l+t>300&&e.preventDefault()},renderElement:function(e){return"image"===e.element.type?(0,a.jsx)(Y,(0,U.Z)({},e)):(0,a.jsx)("p",(0,U.Z)({},e))},placeholder:"Chat message goes here...",style:{width:"100%"},autoFocus:!0}),(0,a.jsx)(R.Z,{content:(0,a.jsx)(V,{onEmojiSelect:function(e){P.F3.focus(h),Z.YR.insertText(h,e)},onCustomEmojiSelect:function(e,t){P.F3.focus(h),function(e,t){if(e){var n=h.selection,a=function(e,t,n){return{type:"image",alt:e,src:t,name:n,children:[{text:""}]}}(t,e,t);if(Z.YR.insertNodes(h,a,{select:!0}),n){var s,r=(0,F.Z)(Z.ML.parent(h,null===(s=n.focus)||void 0===s?void 0:s.path),2),o=r[0],i=r[1];h.isVoid(o)||Z.NB.string(o).length?Z.YR.insertNodes(h,a,{at:Z.y$.next(i),select:!0}):(Z.YR.insertNodes(h,a,{at:i,select:!0}),Z.ML.normalize(h,{force:!0}))}else Z.YR.insertNodes(h,a,{select:!0})}}(t,e)}}),trigger:"click",onOpenChange:function(e){return o(e)},open:s})]}),(0,a.jsxs)("div",{style:{display:"flex",paddingLeft:"5px"},children:[(0,a.jsx)("button",{type:"button",className:G().emojiButton,title:"Emoji picker button",onClick:function(){return o(!s)},children:(0,a.jsx)(H.Z,{})}),(0,a.jsx)("button",{type:"button",className:G().sendButton,title:"Send message Button",onClick:p,children:(0,a.jsx)(L.Z,{})})]})]})})},q=n(93174),K=n.n(q);function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t12e4)&&a===(null===s||void 0===s?void 0:s.user.id)}function fe(e){var t=e.user.scopes;return!(!t||0===t.length)&&t.includes("MODERATOR")}var xe=function(e){var t=e.messages,n=e.usernameToHighlight,c=e.chatUserId,u=e.isModerator,d=e.showInput,h=e.height,m=(0,r.useState)(!1),g=m[0],p=m[1],f=(0,r.useRef)(null),x=function(e,s){switch(s.type){case i.C.CHAT:var r,d,h;return(0,a.jsx)(O,{message:s,showModeratorMenu:u,highlightString:n,sentBySelf:(null===(r=s.user)||void 0===r?void 0:r.id)===c,sameUserAsLast:pe(t,e),isAuthorModerator:null===(d=s.user.scopes)||void 0===d?void 0:d.includes("MODERATOR"),isAuthorAuthenticated:null===(h=s.user)||void 0===h?void 0:h.authenticated},s.id);case i.C.NAME_CHANGE:return function(e){var t=e.oldName,n=e.user,s=n.displayName,r=n.displayColor,i="var(--theme-color-users-".concat(r,")");return(0,a.jsxs)("div",{className:l().nameChangeView,children:[(0,a.jsx)("div",{style:{marginRight:5,height:"max-content",margin:"auto 5px auto 0"},children:(0,a.jsx)(o.Z,{})}),(0,a.jsxs)("div",{className:l().nameChangeText,children:[(0,a.jsx)("span",{style:{color:i},children:t}),(0,a.jsx)("span",{className:l().plain,children:" is now known as "}),(0,a.jsx)("span",{style:{color:i},children:s})]})]})}(s);case i.C.CONNECTED_USER_INFO:return function(e){if(!fe(e))return(0,a.jsx)("div",{style:{width:"1px",height:"1px"}});return(0,a.jsx)(ee,{})}(s);case i.C.USER_JOINED:return function(e){var t=e.user,n=t.displayName,s=t.displayColor,r=fe(e);return(0,a.jsx)(ce,{displayName:n,userColor:s,isAuthorModerator:r})}(s);case i.C.CHAT_ACTION:return function(e){var t=e.body;return(0,a.jsx)(ge,{body:t})}(s);case i.C.SYSTEM:return(0,a.jsx)(se,{message:s,highlightString:n},s.id);default:return null}},_=(0,r.useMemo)((function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.OO,{style:{height:h},className:l().virtuoso,ref:f,initialTopMostItemIndex:t.length-1,data:t,itemContent:function(e,t){return x(e,t)},followOutput:"auto",alignToBottom:!0,atBottomStateChange:function(e){return p(e)}}),!g&&(0,a.jsx)(de,{chatContainerRef:f,messages:t})]})}),[t,n,c,u,g]);return(0,a.jsxs)("div",{className:l().chatContainer,children:[_,d&&(0,a.jsx)(z,{})]})};xe.defaultProps={showInput:!0,height:"auto"}},33196:function(e){e.exports={chatAction:"ChatActionMessage_chatAction__x9Xsg"}},13545:function(e){e.exports={chatHeader:"ChatContainer_chatHeader__EJsYI",toBottomWrap:"ChatContainer_toBottomWrap__3V5wa",toBottomBtn:"ChatContainer_toBottomBtn__453AG",nameChangeView:"ChatContainer_nameChangeView__ziyXN",nameChangeText:"ChatContainer_nameChangeText__yXG__",plain:"ChatContainer_plain__IPS19",chatContainer:"ChatContainer_chatContainer__O2lYN",virtuoso:"ChatContainer_virtuoso__OS9Kz"}},83066:function(e){e.exports={root:"ChatJoinMessage_root__vuVXa"}},93174:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},31681:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},25882:function(e){e.exports={root:"ChatTextField_root__4oUkJ",inputWrap:"ChatTextField_inputWrap__1mAjD",maxCharacters:"ChatTextField_maxCharacters__yGT4s",emojiButton:"ChatTextField_emojiButton__ON_Cu",sendButton:"ChatTextField_sendButton__MOmD4"}},79010:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},78583:function(e){e.exports={root:"ChatUserMessage_root__79heB",user:"ChatUserMessage_user__xUEp9",message:"ChatUserMessage_message__MJ9LD",ownMessage:"ChatUserMessage_ownMessage__d28A3",background:"ChatUserMessage_background__Tfghp",modMenuWrapper:"ChatUserMessage_modMenuWrapper__7fblv",messagePadding:"ChatUserMessage_messagePadding__Xp1F6",messagePaddingCollapsed:"ChatUserMessage_messagePaddingCollapsed__qxN0E"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/embed/chat/readonly-b7b2cfdeeb8e28e3.js b/static/web/_next/static/chunks/pages/embed/chat/readonly-d969a04b544dbdb5.js similarity index 94% rename from static/web/_next/static/chunks/pages/embed/chat/readonly-b7b2cfdeeb8e28e3.js rename to static/web/_next/static/chunks/pages/embed/chat/readonly-d969a04b544dbdb5.js index 97584f3ba..5be166b47 100644 --- a/static/web/_next/static/chunks/pages/embed/chat/readonly-b7b2cfdeeb8e28e3.js +++ b/static/web/_next/static/chunks/pages/embed/chat/readonly-d969a04b544dbdb5.js @@ -1 +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(71632),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,1632,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 +(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(32382),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,2382,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-0d78334a1012d08f.js b/static/web/_next/static/chunks/pages/embed/chat/readwrite-c3a95f986e268c63.js similarity index 99% rename from static/web/_next/static/chunks/pages/embed/chat/readwrite-0d78334a1012d08f.js rename to static/web/_next/static/chunks/pages/embed/chat/readwrite-c3a95f986e268c63.js index 7e55f3390..2783780bc 100644 --- a/static/web/_next/static/chunks/pages/embed/chat/readwrite-0d78334a1012d08f.js +++ b/static/web/_next/static/chunks/pages/embed/chat/readwrite-c3a95f986e268c63.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[955],{94149:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var r=t(1413),o=t(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},a=t(42135),c=function(e,n){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:i}))};c.displayName="LockOutlined";var l=o.forwardRef(c)},87547:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var r=t(1413),o=t(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},a=t(42135),c=function(e,n){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:i}))};c.displayName="UserOutlined";var l=o.forwardRef(c)},20550:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(4942),o=t(87462),i=t(97685),a=t(97937),c=t(94184),l=t.n(c),u=t(98423),s=t(67294),f=t(53124),d=t(98787),p=t(68349),h=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=n||t<0||y&&e-h>=s}function w(){var e=o();if(x(e))return k(e);d=setTimeout(w,function(e){var t=n-(e-p);return y?c(t,s-(e-h)):t}(e))}function k(e){return d=void 0,m&&l?g(e):(l=u=void 0,f)}function C(){var e=o(),t=x(e);if(l=arguments,u=this,p=e,t){if(void 0===d)return b(p);if(y)return clearTimeout(d),d=setTimeout(w,n),g(p)}return void 0===d&&(d=setTimeout(w,n)),f}return n=i(n)||0,r(t)&&(v=!!t.leading,s=(y="maxWait"in t)?a(i(t.maxWait)||0,n):s,m="trailing"in t?!!t.trailing:m),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=p=u=d=void 0},C.flush=function(){return void 0===d?f:k(o())},C}},33448:function(e,n,t){var r=t(44239),o=t(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),o=t(13218),i=t(33448),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=c.test(e);return t||l.test(e)?u(e.slice(2),t?2:8):a.test(e)?NaN:+e}},30672:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readwrite",function(){return t(41095)}])},8119:function(e,n,t){"use strict";t.d(n,{h:function(){return S},Z:function(){return A}});var r=t(85893),o=t(97183),i=t(94199),a=t(20550),c=t(828),l=t(66516),u=t(38504),s=t(71577),f=t(26713),d=t(86548),p=t(94149),h=t(38545),v=t(87547),y=t(39398),m=t(4480),g=t(67294),b=t(49218),x=t(5152),w=t.n(x),k=t(1899),C=t(47093),O=t.n(C),j=w()((function(){return t.e(2365).then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),E=w()((function(){return Promise.all([t.e(8939),t.e(8225)]).then(t.bind(t,98225)).then((function(e){return e.NameChangeModal}))}),{loadableGenerated:{webpack:function(){return[98225]}}}),_=w()((function(){return Promise.all([t.e(2944),t.e(9674)]).then(t.bind(t,9674)).then((function(e){return e.AuthModal}))}),{loadableGenerated:{webpack:function(){return[9674]}}}),Z=function(e){var n=e.username,t=void 0===n?void 0:n,o=(0,g.useState)(!1),i=o[0],a=o[1],x=(0,g.useState)(!1),w=x[0],C=x[1],Z=(0,c.Z)((0,m.FV)(k.ZA),2),N=Z[0],P=Z[1],K=(0,m.sJ)(k.Q),T=function(){P(!N)};(0,b.y1)("c",T,{enableOnContentEditable:!1},[N]);var S=(0,m.sJ)(k.db);if(!S)return null;var A=S.displayName,M=t||A,I=(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(d.Z,{}),onClick:function(){a(!0)},children:"Change name"},"0"),(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(p.Z,{}),onClick:function(){return C(!0)},children:"Authenticate"},"1"),K.chatAvailable&&(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(h.Z,{}),onClick:function(){return T()},children:"Toggle chat"},"3")]});return(0,r.jsxs)("div",{className:"".concat(O().root),children:[(0,r.jsx)(u.Z,{overlay:I,trigger:["click"],children:(0,r.jsx)(s.Z,{type:"primary",icon:(0,r.jsx)(v.Z,{style:{marginRight:".5rem"}}),children:(0,r.jsxs)(f.Z,{children:[M,(0,r.jsx)(y.Z,{})]})})}),(0,r.jsx)(j,{title:"Change Chat Display Name",open:i,handleCancel:function(){return a(!1)},children:(0,r.jsx)(E,{})}),(0,r.jsx)(j,{title:"Authenticate",open:w,handleCancel:function(){return C(!1)},children:(0,r.jsx)(_,{})})]})},N=t(60113),P=t(92910),K=t.n(P),T=o.Z.Header,S=function(e){var n=e.name,t=void 0===n?"Your stream title":n,o=e.chatAvailable,c=e.chatDisabled;return(0,r.jsxs)(T,{className:"".concat(K().header),children:[(0,r.jsxs)("div",{className:"".concat(K().logo),children:[(0,r.jsx)(N.C,{variant:"contrast"}),(0,r.jsx)("span",{children:t})]}),o&&!c&&(0,r.jsx)(Z,{}),!o&&!c&&(0,r.jsx)(i.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,r.jsx)(a.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})},A=S},41095:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return l}});var r=t(85893),o=t(4480),i=t(71632),a=t(1899),c=t(8119);function l(){var e=(0,o.sJ)(a.db),n=(0,o.sJ)(a.pH),t=(0,o.sJ)(a.g1),l=t.name,u=t.chatDisabled;if(!e)return null;var s=e.id,f=e.displayName,d=e.isModerator;return(0,r.jsxs)("div",{children:[(0,r.jsx)(a.me,{}),(0,r.jsx)(c.Z,{name:l,chatAvailable:!0,chatDisabled:u}),(0,r.jsx)(i.ChatContainer,{messages:n,usernameToHighlight:f,chatUserId:s,isModerator:d,showInput:!0,height:"80vh"})]})}},47093:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},92910:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},49218:function(e,n,t){"use strict";t.d(n,{y1:function(){return N}});var r="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function o(e,n,t,r){e.addEventListener?e.addEventListener(n,t,r):e.attachEvent&&e.attachEvent("on".concat(n),(function(){t(window.event)}))}function i(e,n){for(var t=n.slice(0,n.length-1),r=0;r=0;)n[t-1]+=",",n.splice(t,1),t=n.lastIndexOf("");return n}for(var c={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},l={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},u={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},s={16:!1,18:!1,17:!1,91:!1},f={},d=1;d<20;d++)c["f".concat(d)]=111+d;var p=[],h=!1,v="all",y=[],m=function(e){return c[e.toLowerCase()]||l[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function g(e){v=e||"all"}function b(){return v||"all"}var x=function(e){var n=e.key,t=e.scope,r=e.method,o=e.splitKey,c=void 0===o?"+":o;a(n).forEach((function(e){var n=e.split(c),o=n.length,a=n[o-1],u="*"===a?"*":m(a);if(f[u]){t||(t=b());var s=o>1?i(l,n):[];f[u]=f[u].filter((function(e){return!((!r||e.method===r)&&e.scope===t&&function(e,n){for(var t=e.length>=n.length?e:n,r=e.length>=n.length?n:e,o=!0,i=0;i0,s)Object.prototype.hasOwnProperty.call(s,i)&&(!s[i]&&n.mods.indexOf(+i)>-1||s[i]&&-1===n.mods.indexOf(+i))&&(o=!1);(0!==n.mods.length||s[16]||s[18]||s[17]||s[91])&&!o&&"*"!==n.shortcut||!1===n.method(e,n)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function k(e,n){var t=f["*"],r=e.keyCode||e.which||e.charCode;if(C.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===p.indexOf(r)&&229!==r&&p.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(n){var t=u[n];e[n]&&-1===p.indexOf(t)?p.push(t):!e[n]&&p.indexOf(t)>-1?p.splice(p.indexOf(t),1):"metaKey"===n&&e[n]&&3===p.length&&(e.ctrlKey||e.shiftKey||e.altKey||(p=p.slice(p.indexOf(t))))})),r in s){for(var o in s[r]=!0,l)l[o]===r&&(C[o]=!0);if(!t)return}for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(s[i]=e[u[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),s[17]=!0,s[18]=!0);var a=b();if(t)for(var c=0;c1&&(c=i(l,e)),(e="*"===(e=e[e.length-1])?"*":m(e))in f||(f[e]=[]),f[e].push({keyup:g,keydown:b,scope:u,mods:c,shortcut:r[v],method:t,key:r[v],splitKey:x,element:d});"undefined"!==typeof d&&!function(e){return y.indexOf(e)>-1}(d)&&window&&(y.push(d),o(d,"keydown",(function(e){k(e,d)}),w),h||(h=!0,o(window,"focus",(function(){p=[]}),w)),o(d,"keyup",(function(e){k(e,d),function(e){var n=e.keyCode||e.which||e.charCode,t=p.indexOf(n);if(t>=0&&p.splice(t,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),93!==n&&224!==n||(n=91),n in s)for(var r in s[n]=!1,l)l[r]===n&&(C[r]=!1)}(e)}),w))}var O={setScope:g,getScope:b,deleteScope:function(e,n){var t,r;for(var o in e||(e=b()),f)if(Object.prototype.hasOwnProperty.call(f,o))for(t=f[o],r=0;r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(f).forEach((function(t){var r=f[t].find((function(t){return t.scope===n&&t.shortcut===e}));r&&r.method&&r.method()}))},unbind:function(e){if("undefined"===typeof e)Object.keys(f).forEach((function(e){return delete f[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&x(e)}));else if("object"===typeof e)e.key&&x(e);else if("string"===typeof e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r=n||t<0||y&&e-h>=s}function w(){var e=o();if(x(e))return k(e);d=setTimeout(w,function(e){var t=n-(e-p);return y?c(t,s-(e-h)):t}(e))}function k(e){return d=void 0,m&&l?g(e):(l=u=void 0,f)}function C(){var e=o(),t=x(e);if(l=arguments,u=this,p=e,t){if(void 0===d)return b(p);if(y)return clearTimeout(d),d=setTimeout(w,n),g(p)}return void 0===d&&(d=setTimeout(w,n)),f}return n=i(n)||0,r(t)&&(v=!!t.leading,s=(y="maxWait"in t)?a(i(t.maxWait)||0,n):s,m="trailing"in t?!!t.trailing:m),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=p=u=d=void 0},C.flush=function(){return void 0===d?f:k(o())},C}},33448:function(e,n,t){var r=t(44239),o=t(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),o=t(13218),i=t(33448),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=c.test(e);return t||l.test(e)?u(e.slice(2),t?2:8):a.test(e)?NaN:+e}},30672:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readwrite",function(){return t(41095)}])},8119:function(e,n,t){"use strict";t.d(n,{h:function(){return S},Z:function(){return A}});var r=t(85893),o=t(97183),i=t(94199),a=t(20550),c=t(828),l=t(66516),u=t(38504),s=t(71577),f=t(26713),d=t(86548),p=t(94149),h=t(38545),v=t(87547),y=t(39398),m=t(4480),g=t(67294),b=t(49218),x=t(5152),w=t.n(x),k=t(1899),C=t(47093),O=t.n(C),j=w()((function(){return t.e(2365).then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),E=w()((function(){return Promise.all([t.e(8939),t.e(8225)]).then(t.bind(t,98225)).then((function(e){return e.NameChangeModal}))}),{loadableGenerated:{webpack:function(){return[98225]}}}),_=w()((function(){return Promise.all([t.e(2944),t.e(9674)]).then(t.bind(t,9674)).then((function(e){return e.AuthModal}))}),{loadableGenerated:{webpack:function(){return[9674]}}}),Z=function(e){var n=e.username,t=void 0===n?void 0:n,o=(0,g.useState)(!1),i=o[0],a=o[1],x=(0,g.useState)(!1),w=x[0],C=x[1],Z=(0,c.Z)((0,m.FV)(k.ZA),2),N=Z[0],P=Z[1],K=(0,m.sJ)(k.Q),T=function(){P(!N)};(0,b.y1)("c",T,{enableOnContentEditable:!1},[N]);var S=(0,m.sJ)(k.db);if(!S)return null;var A=S.displayName,M=t||A,I=(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(d.Z,{}),onClick:function(){a(!0)},children:"Change name"},"0"),(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(p.Z,{}),onClick:function(){return C(!0)},children:"Authenticate"},"1"),K.chatAvailable&&(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(h.Z,{}),onClick:function(){return T()},children:"Toggle chat"},"3")]});return(0,r.jsxs)("div",{className:"".concat(O().root),children:[(0,r.jsx)(u.Z,{overlay:I,trigger:["click"],children:(0,r.jsx)(s.Z,{type:"primary",icon:(0,r.jsx)(v.Z,{style:{marginRight:".5rem"}}),children:(0,r.jsxs)(f.Z,{children:[M,(0,r.jsx)(y.Z,{})]})})}),(0,r.jsx)(j,{title:"Change Chat Display Name",open:i,handleCancel:function(){return a(!1)},children:(0,r.jsx)(E,{})}),(0,r.jsx)(j,{title:"Authenticate",open:w,handleCancel:function(){return C(!1)},children:(0,r.jsx)(_,{})})]})},N=t(60113),P=t(92910),K=t.n(P),T=o.Z.Header,S=function(e){var n=e.name,t=void 0===n?"Your stream title":n,o=e.chatAvailable,c=e.chatDisabled;return(0,r.jsxs)(T,{className:"".concat(K().header),children:[(0,r.jsxs)("div",{className:"".concat(K().logo),children:[(0,r.jsx)(N.C,{variant:"contrast"}),(0,r.jsx)("span",{children:t})]}),o&&!c&&(0,r.jsx)(Z,{}),!o&&!c&&(0,r.jsx)(i.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,r.jsx)(a.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})},A=S},41095:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return l}});var r=t(85893),o=t(4480),i=t(32382),a=t(1899),c=t(8119);function l(){var e=(0,o.sJ)(a.db),n=(0,o.sJ)(a.pH),t=(0,o.sJ)(a.g1),l=t.name,u=t.chatDisabled;if(!e)return null;var s=e.id,f=e.displayName,d=e.isModerator;return(0,r.jsxs)("div",{children:[(0,r.jsx)(a.me,{}),(0,r.jsx)(c.Z,{name:l,chatAvailable:!0,chatDisabled:u}),(0,r.jsx)(i.ChatContainer,{messages:n,usernameToHighlight:f,chatUserId:s,isModerator:d,showInput:!0,height:"80vh"})]})}},47093:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},92910:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},49218:function(e,n,t){"use strict";t.d(n,{y1:function(){return N}});var r="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function o(e,n,t,r){e.addEventListener?e.addEventListener(n,t,r):e.attachEvent&&e.attachEvent("on".concat(n),(function(){t(window.event)}))}function i(e,n){for(var t=n.slice(0,n.length-1),r=0;r=0;)n[t-1]+=",",n.splice(t,1),t=n.lastIndexOf("");return n}for(var c={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},l={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},u={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},s={16:!1,18:!1,17:!1,91:!1},f={},d=1;d<20;d++)c["f".concat(d)]=111+d;var p=[],h=!1,v="all",y=[],m=function(e){return c[e.toLowerCase()]||l[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function g(e){v=e||"all"}function b(){return v||"all"}var x=function(e){var n=e.key,t=e.scope,r=e.method,o=e.splitKey,c=void 0===o?"+":o;a(n).forEach((function(e){var n=e.split(c),o=n.length,a=n[o-1],u="*"===a?"*":m(a);if(f[u]){t||(t=b());var s=o>1?i(l,n):[];f[u]=f[u].filter((function(e){return!((!r||e.method===r)&&e.scope===t&&function(e,n){for(var t=e.length>=n.length?e:n,r=e.length>=n.length?n:e,o=!0,i=0;i0,s)Object.prototype.hasOwnProperty.call(s,i)&&(!s[i]&&n.mods.indexOf(+i)>-1||s[i]&&-1===n.mods.indexOf(+i))&&(o=!1);(0!==n.mods.length||s[16]||s[18]||s[17]||s[91])&&!o&&"*"!==n.shortcut||!1===n.method(e,n)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function k(e,n){var t=f["*"],r=e.keyCode||e.which||e.charCode;if(C.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===p.indexOf(r)&&229!==r&&p.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(n){var t=u[n];e[n]&&-1===p.indexOf(t)?p.push(t):!e[n]&&p.indexOf(t)>-1?p.splice(p.indexOf(t),1):"metaKey"===n&&e[n]&&3===p.length&&(e.ctrlKey||e.shiftKey||e.altKey||(p=p.slice(p.indexOf(t))))})),r in s){for(var o in s[r]=!0,l)l[o]===r&&(C[o]=!0);if(!t)return}for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(s[i]=e[u[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),s[17]=!0,s[18]=!0);var a=b();if(t)for(var c=0;c1&&(c=i(l,e)),(e="*"===(e=e[e.length-1])?"*":m(e))in f||(f[e]=[]),f[e].push({keyup:g,keydown:b,scope:u,mods:c,shortcut:r[v],method:t,key:r[v],splitKey:x,element:d});"undefined"!==typeof d&&!function(e){return y.indexOf(e)>-1}(d)&&window&&(y.push(d),o(d,"keydown",(function(e){k(e,d)}),w),h||(h=!0,o(window,"focus",(function(){p=[]}),w)),o(d,"keyup",(function(e){k(e,d),function(e){var n=e.keyCode||e.which||e.charCode,t=p.indexOf(n);if(t>=0&&p.splice(t,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),93!==n&&224!==n||(n=91),n in s)for(var r in s[n]=!1,l)l[r]===n&&(C[r]=!1)}(e)}),w))}var O={setScope:g,getScope:b,deleteScope:function(e,n){var t,r;for(var o in e||(e=b()),f)if(Object.prototype.hasOwnProperty.call(f,o))for(t=f[o],r=0;r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(f).forEach((function(t){var r=f[t].find((function(t){return t.scope===n&&t.shortcut===e}));r&&r.method&&r.method()}))},unbind:function(e){if("undefined"===typeof e)Object.keys(f).forEach((function(e){return delete f[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&x(e)}));else if("object"===typeof e)e.key&&x(e);else if("string"===typeof e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r0&&a.map((function(e){return(0,r.jsxs)("span",{children:["#",e,"\xa0"]},e)}))}),(0,r.jsx)("div",{className:h()(K().socialLinks,K().row),children:(0,r.jsx)(X,{links:s})})]})]})})},ee=t(43125),ne=t(47568),te=t(70655),re=t(25968),oe=t(6226),ie=t(3698),ae=t(24093),se=t(40305),le=t.n(se),ce=function(e){var n=e.follower;return(0,r.jsx)("div",{className:le().follower,children:(0,r.jsx)("a",{href:n.link,target:"_blank",rel:"noreferrer",children:(0,r.jsxs)(re.Z,{wrap:!1,children:[(0,r.jsx)(oe.Z,{span:6,children:(0,r.jsx)(ae.C,{src:n.image,alt:"Avatar",className:le().avatar,children:(0,r.jsx)("img",{src:"/logo",alt:"Logo",className:le().placeholder})})}),(0,r.jsxs)(oe.Z,{children:[(0,r.jsx)(re.Z,{children:n.name}),(0,r.jsx)(re.Z,{className:le().account,children:n.username})]})]})})})},ue=t(12103),de=t.n(ue),me=function(e){var n=e.name,t=(0,l.useState)([]),o=t[0],i=t[1],a=(0,l.useState)(0),s=a[0],c=a[1],u=(0,l.useState)(1),d=u[0],m=u[1],f=Math.ceil(s/24),h=function(){var e=(0,ne.Z)((function(){var e,n,t,r;return(0,te.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,fetch("".concat("/api/followers","?page=").concat(d))];case 1:return[4,o.sent().json()];case 2:return e=o.sent(),n=e.results,t=e.total,i(n),c(t),[3,4];case 3:return r=o.sent(),console.error(r),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){h()}),[]),(0,l.useEffect)((function(){h()}),[d]);var p=(0,r.jsxs)("div",{className:de().noFollowers,children:[(0,r.jsx)("h2",{children:"Be the first follower!"}),(0,r.jsxs)("p",{children:["Owncast"!==n?n:"This server"," is a part of the"," ",(0,r.jsx)("a",{href:"https://owncast.online/join-fediverse",children:"Fediverse"}),", an interconnected network of independent users and servers."]}),(0,r.jsxs)("p",{children:["By following ","Owncast"!==n?n:"this server"," you'll be able to get updates from the stream, share it with others, and and show your appreciation when it goes live, all from your own Fediverse account."]}),(0,r.jsx)(I.e,{})]});return(null===o||void 0===o?void 0:o.length)?(0,r.jsxs)("div",{className:de().followers,children:[(0,r.jsx)(re.Z,{wrap:!0,gutter:[10,10],children:o.map((function(e){return(0,r.jsx)(oe.Z,{children:(0,r.jsx)(ce,{follower:e},e.link)})}))}),(0,r.jsx)(ie.Z,{current:d,pageSize:24,total:f||1,onChange:function(e){m(e)},hideOnSinglePage:!0})]}):p},fe=o.Z.Content,he=x()((function(){return Promise.resolve().then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),pe=x()((function(){return t.e(5135).then(t.bind(t,5135)).then((function(e){return e.BrowserNotifyModal}))}),{loadableGenerated:{webpack:function(){return[5135]}}}),xe=x()((function(){return t.e(7735).then(t.bind(t,57735)).then((function(e){return e.NotifyReminderPopup}))}),{loadableGenerated:{webpack:function(){return[57735]}}}),ge=x()((function(){return Promise.resolve().then(t.bind(t,71632)).then((function(e){return e.ChatContainer}))}),{loadableGenerated:{webpack:function(){return[71632]}}}),je=function(e){var n=e.name,t=e.streamTitle,o=e.summary,i=e.tags,a=e.socialHandles,s=e.extraPageContent,l=[{label:"About",key:"2",children:(0,r.jsx)(_,{content:s})},{label:"Followers",key:"3",children:(0,r.jsx)(me,{name:n})}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:C().lowerHalf,children:(0,r.jsx)($,{name:n,title:t,summary:o,tags:i,links:a,logo:"/logo"})}),(0,r.jsx)("div",{className:C().lowerSection,children:(0,r.jsx)(d.Z,{defaultActiveKey:"0",items:l})})]})},ve=function(e){var n=e.name,t=e.streamTitle,o=e.summary,i=e.tags,a=e.socialHandles,s=e.extraPageContent,l=e.messages,c=e.currentUser,u=e.showChat;if(!c)return null;var m=c.id,f=c.displayName,p=[{label:"Chat",key:"1",children:u&&(0,r.jsx)(ge,{messages:l,usernameToHighlight:f,chatUserId:m,isModerator:!1,height:"40vh"})},{label:"About",key:"2",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)($,{name:n,title:t,summary:o,tags:i,links:a,logo:"/logo"}),(0,r.jsx)(_,{content:s})]})},{label:"Followers",key:"3",children:(0,r.jsx)(me,{name:n})}];return(0,r.jsx)("div",{className:h()(C().lowerSectionMobile),children:(0,r.jsx)(d.Z,{defaultActiveKey:"0",items:p})})},_e=function(){var e=(0,i.sJ)(c.Q),n=(0,i.sJ)(c.g1),t=(0,i.sJ)(c.pT),o=(0,i.sJ)(c.di),a=(0,i.sJ)(c.db),s=(0,u.Z)((0,i.FV)(c.hz),2),d=s[0],f=s[1],h=(0,i.sJ)(c.j$),p=(0,i.sJ)(c.YW),x=(0,i.sJ)(c.RI),j=x.viewerCount,v=x.lastConnectTime,_=x.lastDisconnectTime,y=x.streamTitle,b=n.extraPageContent,N=n.version,k=n.name,S=n.summary,H=n.socialHandles,T=n.tags,E=n.externalActions,A=n.offlineMessage,J=n.chatDisabled,M=n.federation,P=n.notifications,R=(0,l.useState)(!1),G=R[0],O=R[1],q=(0,l.useState)(!1),V=q[0],B=q[1],Y=M.account,Q=P.browser.enabled,X=E.map((function(e){return(0,r.jsx)(U,{action:e},e.url)})),W=function(){B(!1),O(!1),(0,g.qQ)(g.dA.hasDisplayedNotificationModal,!0)},K=function(){var e=window.innerWidth;void 0===d&&f(e<=768),!d&&e<=768&&f(!0),d&&e>768&&f(!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)}(),K(),window.addEventListener("resize",K)}),[]);var $=!J&&o&&t;return(0,r.jsxs)("div",{className:C().main,children:[(0,r.jsx)(m.Z,{wrapperClassName:C().loadingSpinner,size:"large",spinning:e.appLoading,children:(0,r.jsxs)(fe,{className:C().root,children:[(0,r.jsxs)("div",{className:C().leftContent,children:[(0,r.jsxs)("div",{className:C().topSection,children:[p&&(0,r.jsx)(w.M,{source:"/hls/stream.m3u8",online:p}),!p&&!e.appLoading&&(0,r.jsx)(z.R,{streamName:k,customText:A,notificationsEnabled:Q,fediverseAccount:Y,lastLive:_,onNotifyClick:function(){return B(!0)}}),p&&(0,r.jsx)(ee.X,{online:p,lastConnectTime:v,lastDisconnectTime:_,viewerCount:j})]}),(0,r.jsx)("div",{className:C().midSection,children:(0,r.jsxs)("div",{className:C().buttonsLogoTitleSection,children:[(0,r.jsxs)(F,{children:[X,(0,r.jsx)(I.e,{size:"small"}),(0,r.jsx)(xe,{open:G,notificationClicked:function(){return B(!0)},notificationClosed:function(){return W()},children:(0,r.jsx)(D.E,{onClick:function(){return B(!0)}})})]}),(0,r.jsx)(he,{title:"Notify",open:V,afterClose:function(){return W()},handleCancel:function(){return W()},children:(0,r.jsx)(pe,{})})]})}),d&&t?(0,r.jsx)(ve,{name:k,streamTitle:y,summary:S,tags:T,socialHandles:H,extraPageContent:b,messages:h,currentUser:a,showChat:$}):(0,r.jsx)(je,{name:k,streamTitle:y,summary:S,tags:T,socialHandles:H,extraPageContent:b})]}),$&&!d&&(0,r.jsx)(Z,{})]})}),(!d||!$)&&(0,r.jsx)(L,{version:N})]})},we=t(8119),ye=t(85402),Ce=function(e){var n=e.title,t=e.message;return(0,r.jsx)(ye.Z,{title:n,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,r.jsx)("p",{style:{fontSize:"1.3rem"},children:t})})},be=t(82670);var Ne=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"og:title",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"og:site_name",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"og:url",content:"{{.RequestedURL}}"}),(0,r.jsx)("meta",{property:"og:description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"og:type",content:"video.other"}),(0,r.jsx)("meta",{property:"video:tag",content:"{{.TagsString}}"}),(0,r.jsx)("meta",{property:"og:image",content:"{{.Thumbnail}}"}),(0,r.jsx)("meta",{property:"og:image:url",content:"{{.Thumbnail}}"}),(0,r.jsx)("meta",{property:"og:image:alt",content:"{{.Image}}"}),(0,r.jsx)("meta",{property:"og:video",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"og:video:secure_url",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"og:video:height",content:"315"}),(0,r.jsx)("meta",{property:"og:video:width",content:"560"}),(0,r.jsx)("meta",{property:"og:video:type",content:"text/html"}),(0,r.jsx)("meta",{property:"og:video:actor",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"twitter:title",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"twitter:url",content:"{{.RequestedURL}}"}),(0,r.jsx)("meta",{property:"twitter:description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"twitter:image",content:"{{.Image}}"}),(0,r.jsx)("meta",{property:"twitter:card",content:"player"}),(0,r.jsx)("meta",{property:"twitter:player",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"twitter:player:width",content:"560"}),(0,r.jsx)("meta",{property:"twitter:player:height",content:"315"})]})},ke=function(e){var n=e.hydrationScript;return(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:n}})},Se=function(){var e=(0,i.sJ)(c.j$),n=(0,i.sJ)(c.RI),t=!1,r="",o=function(){t=!0,r=document.title},a=function(){t=!1,window.document.title=r};return(0,l.useEffect)((function(){return r=window.document.title,window.addEventListener("blur",o),window.addEventListener("focus",a),function(){window.removeEventListener("focus",a),window.removeEventListener("blur",o)}}),[]),(0,l.useEffect)((function(){var e=n.online;t&&e&&(window.document.title="\ud83d\udcac :: ".concat(r))}),[e]),(0,l.useEffect)((function(){if(t){var e=n.online;e?window.document.title=" \ud83d\udfe2 :: ".concat(r):e||(window.document.title=" \ud83d\udd34 :: ".concat(r))}}),[c.RI]),null},Ze=function(){var e=(0,i.sJ)(c.g1),n=e.name,t=e.title,a=e.customStyles,u=(0,i.sJ)(c.di),d=(0,i.sJ)(c.ap),m=(0,l.useRef)(null),f=e.chatDisabled;(0,l.useEffect)((function(){!function(e){var n=function(e){e.setAttribute("rel","noopener noreferrer ")};e.querySelectorAll("a").forEach((function(e){return n(e)})),new MutationObserver((function(e){var t=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value,l=!0,c=!1,u=void 0;try{for(var d,m=s.addedNodes[Symbol.iterator]();!(l=(d=m.next()).done);l=!0){var f=d.value;(0,be.Z)(f,HTMLElement)&&"a"===f.tagName.toLowerCase()&&n(f)}}catch(h){c=!0,u=h}finally{try{l||null==m.return||m.return()}finally{if(c)throw u}}}}catch(h){r=!0,o=h}finally{try{t||null==a.return||a.return()}finally{if(r)throw o}}})).observe(e,{attributes:!1,childList:!0,subtree:!0})}(m.current)}),[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s(),{children:[(0,r.jsx)(Ne,{}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"57x57",href:"/img/favicon/apple-icon-57x57.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"60x60",href:"/img/favicon/apple-icon-60x60.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"72x72",href:"/img/favicon/apple-icon-72x72.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"76x76",href:"/img/favicon/apple-icon-76x76.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"114x114",href:"/img/favicon/apple-icon-114x114.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/img/favicon/apple-icon-120x120.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"144x144",href:"/img/favicon/apple-icon-144x144.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/img/favicon/apple-icon-152x152.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/favicon/apple-icon-180x180.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/img/favicon/android-icon-192x192.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/img/favicon/favicon-96x96.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/favicon/favicon-16x16.png"}),(0,r.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,r.jsx)("link",{href:"/api/auth/provider/indieauth"}),(0,r.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,r.jsx)("meta",{name:"msapplication-TileImage",content:"/img/favicon/ms-icon-144x144.png"}),(0,r.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,r.jsx)("style",{children:a}),(0,r.jsx)(ke,{hydrationScript:"\n\twindow.statusHydration = {{.StatusJSON}};\n\twindow.configHydration = {{.ServerConfigJSON}};\n\t"})]}),(0,r.jsx)(c.me,{}),(0,r.jsx)(Se,{}),(0,r.jsxs)(o.Z,{ref:m,style:{minHeight:"100vh"},children:[(0,r.jsx)(we.h,{name:t||n,chatAvailable:u,chatDisabled:f}),(0,r.jsx)(_e,{}),d&&(0,r.jsx)(Ce,{title:d.title,message:d.message})]})]})};function He(){return(0,r.jsx)(Ze,{})}},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",main:"Content_main__XVf63"}},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"}},12103:function(e){e.exports={followers:"FollowerCollection_followers__e_EUS",noFollowers:"FollowerCollection_noFollowers__UaCVW"}},40305:function(e){e.exports={follower:"SingleFollower_follower__EyBDI",avatar:"SingleFollower_avatar__V9jHG",account:"SingleFollower_account__Z66vo",placeholder:"SingleFollower_placeholder__CgsfJ"}}},function(e){e.O(0,[1272,8700,2544,8939,3903,4267,2944,9764,9372,7364,2429,29,1082,8782,1899,1632,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 +(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(12184)}])},8119:function(e,n,t){"use strict";t.d(n,{h:function(){return A},Z:function(){return F}});var r=t(85893),o=t(97183),i=t(94199),a=t(20550),s=t(828),l=t(66516),c=t(38504),u=t(71577),d=t(26713),m=t(86548),f=t(94149),h=t(38545),p=t(87547),x=t(39398),g=t(4480),j=t(67294),v=t(49218),_=t(5152),w=t.n(_),y=t(1899),C=t(47093),b=t.n(C),N=w()((function(){return t.e(2365).then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),k=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]}}}),S=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,j.useState)(!1),i=o[0],a=o[1],_=(0,j.useState)(!1),w=_[0],C=_[1],Z=(0,s.Z)((0,g.FV)(y.ZA),2),H=Z[0],T=Z[1],L=(0,g.sJ)(y.Q),E=function(){T(!H)};(0,v.y1)("c",E,{enableOnContentEditable:!1},[H]);var A=(0,g.sJ)(y.db);if(!A)return null;var F=A.displayName,J=t||F,M=(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(m.Z,{}),onClick:function(){a(!0)},children:"Change name"},"0"),(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(f.Z,{}),onClick:function(){return C(!0)},children:"Authenticate"},"1"),L.chatAvailable&&(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(h.Z,{}),onClick:function(){return E()},children:"Toggle chat"},"3")]});return(0,r.jsxs)("div",{className:"".concat(b().root),children:[(0,r.jsx)(c.Z,{overlay:M,trigger:["click"],children:(0,r.jsx)(u.Z,{type:"primary",icon:(0,r.jsx)(p.Z,{style:{marginRight:".5rem"}}),children:(0,r.jsxs)(d.Z,{children:[J,(0,r.jsx)(x.Z,{})]})})}),(0,r.jsx)(N,{title:"Change Chat Display Name",open:i,handleCancel:function(){return a(!1)},children:(0,r.jsx)(k,{})}),(0,r.jsx)(N,{title:"Authenticate",open:w,handleCancel:function(){return C(!1)},children:(0,r.jsx)(S,{})})]})},H=t(60113),T=t(92910),L=t.n(T),E=o.Z.Header,A=function(e){var n=e.name,t=void 0===n?"Your stream title":n,o=e.chatAvailable,s=e.chatDisabled;return(0,r.jsxs)(E,{className:"".concat(L().header),children:[(0,r.jsxs)("div",{className:"".concat(L().logo),children:[(0,r.jsx)(H.C,{variant:"contrast"}),(0,r.jsx)("span",{children:t})]}),o&&!s&&(0,r.jsx)(Z,{}),!o&&!s&&(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"})})]})},F=A},12184:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return He}});var r=t(85893),o=t(97183),i=t(4480),a=t(9008),s=t.n(a),l=t(67294),c=t(1899),u=t(828),d=t(2944),m=t(11382),f=t(94184),h=t.n(f),p=t(5152),x=t.n(p),g=t(73682),j=t(28105),v=t.n(j),_=function(e){var n=e.content;return(0,r.jsx)("div",{className:v().pageContentContainer,children:(0,r.jsx)("div",{className:v().customPageContent,dangerouslySetInnerHTML:{__html:n}})})},w=t(83818),y=t(63291),C=t.n(y),b=t(87412),N=t(32382),k=t(75347),S=t.n(k),Z=function(){var e=(0,i.sJ)(c.db),n=(0,i.sJ)(c.pH);if(!e)return null;var t=e.id,o=e.isModerator,a=e.displayName;return(0,r.jsx)(b.ZP,{className:S().root,collapsedWidth:0,width:320,children:(0,r.jsx)(N.ChatContainer,{messages:n,usernameToHighlight:a,chatUserId:t,isModerator:o})})},H=t(35603),T=t.n(H),L=function(e){var n=e.version;return(0,r.jsxs)("div",{className:T().footer,children:[(0,r.jsxs)("div",{className:T().text,children:["Powered by ",(0,r.jsx)("a",{href:"https://owncast.online",children:n})]}),(0,r.jsxs)("div",{className:T().links,children:[(0,r.jsx)("div",{className:T().item,children:(0,r.jsx)("a",{href:"https://owncast.online/docs",target:"_blank",rel:"noreferrer",children:"Documentation"})}),(0,r.jsx)("div",{className:T().item,children:(0,r.jsx)("a",{href:"https://owncast.online/help",target:"_blank",rel:"noreferrer",children:"Contribute"})}),(0,r.jsx)("div",{className:T().item,children:(0,r.jsx)("a",{href:"https://github.com/owncast/owncast",target:"_blank",rel:"noreferrer",children:"Source"})})]})]})},E=t(69767),A=t.n(E),F=function(e){var n=e.children;return(0,r.jsx)("div",{className:"".concat(A().row),children:n})},J=t(71577),M=t(32365),P=t(36879),R=t.n(P),U=function(e){var n=e.action,t=n.url,o=n.title,i=n.description,a=n.icon,s=n.color,c=n.openExternally,u=e.primary,d=void 0===u||u,m=(0,l.useState)(!1),f=m[0],h=m[1];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(J.Z,{type:d?"primary":"default",className:"".concat(R().button),onClick:function(){c?window.open(t,"_blank"):h(!0)},style:{backgroundColor:s},children:[a&&(0,r.jsx)("img",{src:a,className:"".concat(R().icon),alt:i}),o]}),(0,r.jsx)(M.Modal,{title:i||o,url:t,open:f,height:"80vh",handleCancel:function(){return h(!1)}})]})},z=t(1698),I=t(30896),D=t(52437),G=t(53731),O=t(79216),q=t(7918),V=t.n(q),B=function(e){var n=e.src;return(0,r.jsx)("div",{className:V().root,children:(0,r.jsx)("div",{className:V().container,children:(0,r.jsx)(O.Z,{src:n,alt:"Logo",className:V().image,rootClassName:V().image})})})},Y=t(52740),Q=t.n(Y),X=function(e){var n=e.links;return(0,r.jsx)("div",{className:Q().links,children:n.map((function(e){return(0,r.jsx)("a",{href:e.url,className:Q().link,target:"_blank",rel:"noreferrer",children:(0,r.jsx)("img",{src:e.icon,alt:e.platform,title:e.platform,className:Q().link})},e.platform)}))})},W=t(74688),K=t.n(W),$=function(e){var n=e.name,t=e.title,o=e.summary,i=e.logo,a=e.tags,s=e.links;return(0,r.jsx)("div",{className:K().root,children:(0,r.jsxs)("div",{className:K().logoTitleSection,children:[(0,r.jsx)("div",{className:K().logo,children:(0,r.jsx)(B,{src:i})}),(0,r.jsxs)("div",{className:K().titleSection,children:[(0,r.jsx)("div",{className:h()(K().title,K().row),children:n}),(0,r.jsx)("div",{className:h()(K().subtitle,K().row),children:(0,r.jsx)(G.Z,{children:t||o})}),(0,r.jsx)("div",{className:h()(K().tagList,K().row),children:a.length>0&&a.map((function(e){return(0,r.jsxs)("span",{children:["#",e,"\xa0"]},e)}))}),(0,r.jsx)("div",{className:h()(K().socialLinks,K().row),children:(0,r.jsx)(X,{links:s})})]})]})})},ee=t(43125),ne=t(47568),te=t(70655),re=t(25968),oe=t(6226),ie=t(3698),ae=t(24093),se=t(40305),le=t.n(se),ce=function(e){var n=e.follower;return(0,r.jsx)("div",{className:le().follower,children:(0,r.jsx)("a",{href:n.link,target:"_blank",rel:"noreferrer",children:(0,r.jsxs)(re.Z,{wrap:!1,children:[(0,r.jsx)(oe.Z,{span:6,children:(0,r.jsx)(ae.C,{src:n.image,alt:"Avatar",className:le().avatar,children:(0,r.jsx)("img",{src:"/logo",alt:"Logo",className:le().placeholder})})}),(0,r.jsxs)(oe.Z,{children:[(0,r.jsx)(re.Z,{children:n.name}),(0,r.jsx)(re.Z,{className:le().account,children:n.username})]})]})})})},ue=t(12103),de=t.n(ue),me=function(e){var n=e.name,t=(0,l.useState)([]),o=t[0],i=t[1],a=(0,l.useState)(0),s=a[0],c=a[1],u=(0,l.useState)(1),d=u[0],m=u[1],f=Math.ceil(s/24),h=function(){var e=(0,ne.Z)((function(){var e,n,t,r;return(0,te.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,fetch("".concat("/api/followers","?page=").concat(d))];case 1:return[4,o.sent().json()];case 2:return e=o.sent(),n=e.results,t=e.total,i(n),c(t),[3,4];case 3:return r=o.sent(),console.error(r),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){h()}),[]),(0,l.useEffect)((function(){h()}),[d]);var p=(0,r.jsxs)("div",{className:de().noFollowers,children:[(0,r.jsx)("h2",{children:"Be the first follower!"}),(0,r.jsxs)("p",{children:["Owncast"!==n?n:"This server"," is a part of the"," ",(0,r.jsx)("a",{href:"https://owncast.online/join-fediverse",children:"Fediverse"}),", an interconnected network of independent users and servers."]}),(0,r.jsxs)("p",{children:["By following ","Owncast"!==n?n:"this server"," you'll be able to get updates from the stream, share it with others, and and show your appreciation when it goes live, all from your own Fediverse account."]}),(0,r.jsx)(I.e,{})]});return(null===o||void 0===o?void 0:o.length)?(0,r.jsxs)("div",{className:de().followers,children:[(0,r.jsx)(re.Z,{wrap:!0,gutter:[10,10],children:o.map((function(e){return(0,r.jsx)(oe.Z,{children:(0,r.jsx)(ce,{follower:e},e.link)})}))}),(0,r.jsx)(ie.Z,{current:d,pageSize:24,total:f||1,onChange:function(e){m(e)},hideOnSinglePage:!0})]}):p},fe=o.Z.Content,he=x()((function(){return Promise.resolve().then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),pe=x()((function(){return t.e(5135).then(t.bind(t,5135)).then((function(e){return e.BrowserNotifyModal}))}),{loadableGenerated:{webpack:function(){return[5135]}}}),xe=x()((function(){return t.e(7735).then(t.bind(t,57735)).then((function(e){return e.NotifyReminderPopup}))}),{loadableGenerated:{webpack:function(){return[57735]}}}),ge=x()((function(){return Promise.resolve().then(t.bind(t,32382)).then((function(e){return e.ChatContainer}))}),{loadableGenerated:{webpack:function(){return[32382]}}}),je=function(e){var n=e.name,t=e.streamTitle,o=e.summary,i=e.tags,a=e.socialHandles,s=e.extraPageContent,l=[{label:"About",key:"2",children:(0,r.jsx)(_,{content:s})},{label:"Followers",key:"3",children:(0,r.jsx)(me,{name:n})}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:C().lowerHalf,children:(0,r.jsx)($,{name:n,title:t,summary:o,tags:i,links:a,logo:"/logo"})}),(0,r.jsx)("div",{className:C().lowerSection,children:(0,r.jsx)(d.Z,{defaultActiveKey:"0",items:l})})]})},ve=function(e){var n=e.name,t=e.streamTitle,o=e.summary,i=e.tags,a=e.socialHandles,s=e.extraPageContent,l=e.messages,c=e.currentUser,u=e.showChat;if(!c)return null;var m=c.id,f=c.displayName,p=[{label:"Chat",key:"1",children:u&&(0,r.jsx)(ge,{messages:l,usernameToHighlight:f,chatUserId:m,isModerator:!1,height:"40vh"})},{label:"About",key:"2",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)($,{name:n,title:t,summary:o,tags:i,links:a,logo:"/logo"}),(0,r.jsx)(_,{content:s})]})},{label:"Followers",key:"3",children:(0,r.jsx)(me,{name:n})}];return(0,r.jsx)("div",{className:h()(C().lowerSectionMobile),children:(0,r.jsx)(d.Z,{defaultActiveKey:"0",items:p})})},_e=function(){var e=(0,i.sJ)(c.Q),n=(0,i.sJ)(c.g1),t=(0,i.sJ)(c.pT),o=(0,i.sJ)(c.di),a=(0,i.sJ)(c.db),s=(0,u.Z)((0,i.FV)(c.hz),2),d=s[0],f=s[1],h=(0,i.sJ)(c.j$),p=(0,i.sJ)(c.YW),x=(0,i.sJ)(c.RI),j=x.viewerCount,v=x.lastConnectTime,_=x.lastDisconnectTime,y=x.streamTitle,b=n.extraPageContent,N=n.version,k=n.name,S=n.summary,H=n.socialHandles,T=n.tags,E=n.externalActions,A=n.offlineMessage,J=n.chatDisabled,M=n.federation,P=n.notifications,R=(0,l.useState)(!1),G=R[0],O=R[1],q=(0,l.useState)(!1),V=q[0],B=q[1],Y=M.account,Q=P.browser.enabled,X=E.map((function(e){return(0,r.jsx)(U,{action:e},e.url)})),W=function(){B(!1),O(!1),(0,g.qQ)(g.dA.hasDisplayedNotificationModal,!0)},K=function(){var e=window.innerWidth;void 0===d&&f(e<=768),!d&&e<=768&&f(!0),d&&e>768&&f(!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)}(),K(),window.addEventListener("resize",K)}),[]);var $=!J&&o&&t;return(0,r.jsxs)("div",{className:C().main,children:[(0,r.jsx)(m.Z,{wrapperClassName:C().loadingSpinner,size:"large",spinning:e.appLoading,children:(0,r.jsxs)(fe,{className:C().root,children:[(0,r.jsxs)("div",{className:C().leftContent,children:[(0,r.jsxs)("div",{className:C().topSection,children:[p&&(0,r.jsx)(w.M,{source:"/hls/stream.m3u8",online:p}),!p&&!e.appLoading&&(0,r.jsx)(z.R,{streamName:k,customText:A,notificationsEnabled:Q,fediverseAccount:Y,lastLive:_,onNotifyClick:function(){return B(!0)}}),p&&(0,r.jsx)(ee.X,{online:p,lastConnectTime:v,lastDisconnectTime:_,viewerCount:j})]}),(0,r.jsx)("div",{className:C().midSection,children:(0,r.jsxs)("div",{className:C().buttonsLogoTitleSection,children:[(0,r.jsxs)(F,{children:[X,(0,r.jsx)(I.e,{size:"small"}),(0,r.jsx)(xe,{open:G,notificationClicked:function(){return B(!0)},notificationClosed:function(){return W()},children:(0,r.jsx)(D.E,{onClick:function(){return B(!0)}})})]}),(0,r.jsx)(he,{title:"Notify",open:V,afterClose:function(){return W()},handleCancel:function(){return W()},children:(0,r.jsx)(pe,{})})]})}),d&&t?(0,r.jsx)(ve,{name:k,streamTitle:y,summary:S,tags:T,socialHandles:H,extraPageContent:b,messages:h,currentUser:a,showChat:$}):(0,r.jsx)(je,{name:k,streamTitle:y,summary:S,tags:T,socialHandles:H,extraPageContent:b})]}),$&&!d&&(0,r.jsx)(Z,{})]})}),(!d||!$)&&(0,r.jsx)(L,{version:N})]})},we=t(8119),ye=t(85402),Ce=function(e){var n=e.title,t=e.message;return(0,r.jsx)(ye.Z,{title:n,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,r.jsx)("p",{style:{fontSize:"1.3rem"},children:t})})},be=t(82670);var Ne=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"og:title",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"og:site_name",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"og:url",content:"{{.RequestedURL}}"}),(0,r.jsx)("meta",{property:"og:description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"og:type",content:"video.other"}),(0,r.jsx)("meta",{property:"video:tag",content:"{{.TagsString}}"}),(0,r.jsx)("meta",{property:"og:image",content:"{{.Thumbnail}}"}),(0,r.jsx)("meta",{property:"og:image:url",content:"{{.Thumbnail}}"}),(0,r.jsx)("meta",{property:"og:image:alt",content:"{{.Image}}"}),(0,r.jsx)("meta",{property:"og:video",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"og:video:secure_url",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"og:video:height",content:"315"}),(0,r.jsx)("meta",{property:"og:video:width",content:"560"}),(0,r.jsx)("meta",{property:"og:video:type",content:"text/html"}),(0,r.jsx)("meta",{property:"og:video:actor",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"twitter:title",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"twitter:url",content:"{{.RequestedURL}}"}),(0,r.jsx)("meta",{property:"twitter:description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"twitter:image",content:"{{.Image}}"}),(0,r.jsx)("meta",{property:"twitter:card",content:"player"}),(0,r.jsx)("meta",{property:"twitter:player",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"twitter:player:width",content:"560"}),(0,r.jsx)("meta",{property:"twitter:player:height",content:"315"})]})},ke=function(e){var n=e.hydrationScript;return(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:n}})},Se=function(){var e=(0,i.sJ)(c.j$),n=(0,i.sJ)(c.RI),t=!1,r="",o=function(){t=!0,r=document.title},a=function(){t=!1,window.document.title=r};return(0,l.useEffect)((function(){return r=window.document.title,window.addEventListener("blur",o),window.addEventListener("focus",a),function(){window.removeEventListener("focus",a),window.removeEventListener("blur",o)}}),[]),(0,l.useEffect)((function(){var e=n.online;t&&e&&(window.document.title="\ud83d\udcac :: ".concat(r))}),[e]),(0,l.useEffect)((function(){if(t){var e=n.online;e?window.document.title=" \ud83d\udfe2 :: ".concat(r):e||(window.document.title=" \ud83d\udd34 :: ".concat(r))}}),[c.RI]),null},Ze=function(){var e=(0,i.sJ)(c.g1),n=e.name,t=e.title,a=e.customStyles,u=(0,i.sJ)(c.di),d=(0,i.sJ)(c.ap),m=(0,l.useRef)(null),f=e.chatDisabled;(0,l.useEffect)((function(){!function(e){var n=function(e){e.setAttribute("rel","noopener noreferrer ")};e.querySelectorAll("a").forEach((function(e){return n(e)})),new MutationObserver((function(e){var t=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value,l=!0,c=!1,u=void 0;try{for(var d,m=s.addedNodes[Symbol.iterator]();!(l=(d=m.next()).done);l=!0){var f=d.value;(0,be.Z)(f,HTMLElement)&&"a"===f.tagName.toLowerCase()&&n(f)}}catch(h){c=!0,u=h}finally{try{l||null==m.return||m.return()}finally{if(c)throw u}}}}catch(h){r=!0,o=h}finally{try{t||null==a.return||a.return()}finally{if(r)throw o}}})).observe(e,{attributes:!1,childList:!0,subtree:!0})}(m.current)}),[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s(),{children:[(0,r.jsx)(Ne,{}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"57x57",href:"/img/favicon/apple-icon-57x57.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"60x60",href:"/img/favicon/apple-icon-60x60.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"72x72",href:"/img/favicon/apple-icon-72x72.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"76x76",href:"/img/favicon/apple-icon-76x76.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"114x114",href:"/img/favicon/apple-icon-114x114.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/img/favicon/apple-icon-120x120.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"144x144",href:"/img/favicon/apple-icon-144x144.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/img/favicon/apple-icon-152x152.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/favicon/apple-icon-180x180.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/img/favicon/android-icon-192x192.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/img/favicon/favicon-96x96.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/favicon/favicon-16x16.png"}),(0,r.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,r.jsx)("link",{href:"/api/auth/provider/indieauth"}),(0,r.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,r.jsx)("meta",{name:"msapplication-TileImage",content:"/img/favicon/ms-icon-144x144.png"}),(0,r.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,r.jsx)("style",{children:a}),(0,r.jsx)(ke,{hydrationScript:"\n\twindow.statusHydration = {{.StatusJSON}};\n\twindow.configHydration = {{.ServerConfigJSON}};\n\t"})]}),(0,r.jsx)(c.me,{}),(0,r.jsx)(Se,{}),(0,r.jsxs)(o.Z,{ref:m,style:{minHeight:"100vh"},children:[(0,r.jsx)(we.h,{name:t||n,chatAvailable:u,chatDisabled:f}),(0,r.jsx)(_e,{}),d&&(0,r.jsx)(Ce,{title:d.title,message:d.message})]})]})};function He(){return(0,r.jsx)(Ze,{})}},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",main:"Content_main__XVf63"}},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"}},12103:function(e){e.exports={followers:"FollowerCollection_followers__e_EUS",noFollowers:"FollowerCollection_noFollowers__UaCVW"}},40305:function(e){e.exports={follower:"SingleFollower_follower__EyBDI",avatar:"SingleFollower_avatar__V9jHG",account:"SingleFollower_account__Z66vo",placeholder:"SingleFollower_placeholder__CgsfJ"}}},function(e){e.O(0,[1272,8700,2544,8939,3903,4267,2944,9764,9372,7364,2429,29,1082,8782,1899,2382,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/NWvnps6UCfOPcF87ve9P2/_buildManifest.js b/static/web/_next/static/hgh8q5kgihzNGSE1r-Og_/_buildManifest.js similarity index 92% rename from static/web/_next/static/NWvnps6UCfOPcF87ve9P2/_buildManifest.js rename to static/web/_next/static/hgh8q5kgihzNGSE1r-Og_/_buildManifest.js index f0b4ffda8..d421a07ba 100644 --- a/static/web/_next/static/NWvnps6UCfOPcF87ve9P2/_buildManifest.js +++ b/static/web/_next/static/hgh8q5kgihzNGSE1r-Og_/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,a,c,e,i,t,d,n,f,h,o,b,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:[]},"/":[b,m,l,a,s,c,t,d,f,u,k,_,w,v,"static/chunks/8782-f3854e33766b9b1f.js",h,r,y,"static/css/2458f45edc0f6648.css","static/chunks/pages/index-103dd0b31d1249b0.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[a,s,c,e,i,t,d,n,o,k,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-4b93901c94acbbd2.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-5f45e77ab2176f5b.js"],"/admin/actions":[a,s,c,e,"static/chunks/pages/admin/actions-118addb368d4ec1b.js"],"/admin/chat/messages":[I,a,s,c,e,i,d,B,F,"static/chunks/pages/admin/chat/messages-954bab3a08b52e63.js"],"/admin/chat/users":[I,a,s,c,e,i,t,d,B,F,"static/chunks/pages/admin/chat/users-47c7102aec07a1a6.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-60cf4efa879df43b.js"],"/admin/config-federation":["static/chunks/1829-b015b4e5cd814fc8.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-162a41a161f6bd5a.js"],"/admin/config-public-details":["static/chunks/4ad82c5e-aee7dee7c0ddef1c.js",a,s,c,e,g,"static/chunks/9257-66ad7ef8cc6a6ab9.js",A,"static/chunks/pages/admin/config-public-details-e19f32415e69afa7.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-4259e7e71b649d89.js"],"/admin/config-storage":["static/chunks/5473-ecd3fd646bf241fd.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[a,s,c,e,D,"static/chunks/4812-9c96405be4c6ddd3.js","static/chunks/pages/admin/config-video-77be2acde5c474cb.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-7358c2d2b36cd0d3.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-7c6d59427a9c1b69.js"],"/admin/hardware-info":[j,i,t,n,o,p,g,"static/chunks/pages/admin/hardware-info-2cb40bf1c957de96.js"],"/admin/help":[t,n,v,"static/chunks/5566-d74e7fd6b2bc806a.js","static/chunks/pages/admin/help-635a866be914f510.js"],"/admin/logs":[a,s,c,e,i,k,"static/chunks/pages/admin/logs-edbab10327a430d5.js"],"/admin/stream-health":[j,i,t,n,o,p,"static/chunks/6610-d5a140d3395ae209.js","static/chunks/pages/admin/stream-health-897a4c79610a240c.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/2069-57515c89a2a2ad62.js","static/chunks/pages/admin/upgrade-c7e86ed531f5961a.js"],"/admin/viewer-info":[j,a,s,c,e,i,t,d,n,o,p,g,"static/chunks/pages/admin/viewer-info-b295d263f1fe0bd8.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-66e239b373b061f0.js"],"/embed/chat/readonly":[b,m,f,u,h,r,"static/css/1bf43cf3f77e5ddf.css","static/chunks/pages/embed/chat/readonly-b7b2cfdeeb8e28e3.js"],"/embed/chat/readwrite":[b,m,s,f,u,h,r,"static/css/e109cf56cf6d95cf.css","static/chunks/pages/embed/chat/readwrite-0d78334a1012d08f.js"],"/embed/video":[l,d,f,_,w,h,y,"static/css/50d4ea374f37f0f9.css","static/chunks/pages/embed/video-767df07d35be7bcf.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-97c724332d1a5798.js","static/chunks/8939-2c7dd78bd2286b4d.js","static/chunks/4267-b54c540ce3a8eed5.js","static/chunks/3626-717f7ff16ee717f6.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/2944-2a9b62dad629aca2.js","static/chunks/9764-3705d4c034a766fe.js","static/chunks/5315-0e7e74a6fb9533c3.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-594b6afdcc743835.js","static/chunks/4763-a050d4b408cb3260.js","static/chunks/d3048c20-0576676e1017fabd.js","static/chunks/d2094a0f-579ef58c933db91c.js","static/chunks/7364-aaa393afe6bb8ebd.js","static/chunks/2429-38af9f180f370b65.js","static/chunks/1632-6459755a347ad23a.js","static/chunks/7910-c80aab5f0058b5c3.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-e5a704c6afec0fd3.js","static/css/7c735c05af084bb2.css","static/chunks/29-efb8248317a52098.js","static/chunks/1082-c86716156ee6f510.js","static/chunks/2854-adab6ebb159dfcfb.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,o,b,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:[]},"/":[b,m,l,a,s,c,t,d,f,u,k,_,w,v,"static/chunks/8782-f3854e33766b9b1f.js",h,r,y,"static/css/2458f45edc0f6648.css","static/chunks/pages/index-ed77ef968d58a400.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[a,s,c,e,i,t,d,n,o,k,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-4b93901c94acbbd2.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-5f45e77ab2176f5b.js"],"/admin/actions":[a,s,c,e,"static/chunks/pages/admin/actions-118addb368d4ec1b.js"],"/admin/chat/messages":[I,a,s,c,e,i,d,B,F,"static/chunks/pages/admin/chat/messages-954bab3a08b52e63.js"],"/admin/chat/users":[I,a,s,c,e,i,t,d,B,F,"static/chunks/pages/admin/chat/users-47c7102aec07a1a6.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-60cf4efa879df43b.js"],"/admin/config-federation":["static/chunks/1829-b015b4e5cd814fc8.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-162a41a161f6bd5a.js"],"/admin/config-public-details":["static/chunks/4ad82c5e-aee7dee7c0ddef1c.js",a,s,c,e,g,"static/chunks/9257-66ad7ef8cc6a6ab9.js",A,"static/chunks/pages/admin/config-public-details-e19f32415e69afa7.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-4259e7e71b649d89.js"],"/admin/config-storage":["static/chunks/5473-ecd3fd646bf241fd.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[a,s,c,e,D,"static/chunks/4812-9c96405be4c6ddd3.js","static/chunks/pages/admin/config-video-77be2acde5c474cb.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-7358c2d2b36cd0d3.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-7c6d59427a9c1b69.js"],"/admin/hardware-info":[j,i,t,n,o,p,g,"static/chunks/pages/admin/hardware-info-2cb40bf1c957de96.js"],"/admin/help":[t,n,v,"static/chunks/5566-d74e7fd6b2bc806a.js","static/chunks/pages/admin/help-635a866be914f510.js"],"/admin/logs":[a,s,c,e,i,k,"static/chunks/pages/admin/logs-edbab10327a430d5.js"],"/admin/stream-health":[j,i,t,n,o,p,"static/chunks/6610-d5a140d3395ae209.js","static/chunks/pages/admin/stream-health-897a4c79610a240c.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/2069-57515c89a2a2ad62.js","static/chunks/pages/admin/upgrade-c7e86ed531f5961a.js"],"/admin/viewer-info":[j,a,s,c,e,i,t,d,n,o,p,g,"static/chunks/pages/admin/viewer-info-b295d263f1fe0bd8.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-66e239b373b061f0.js"],"/embed/chat/readonly":[b,m,f,u,h,r,"static/css/1bf43cf3f77e5ddf.css","static/chunks/pages/embed/chat/readonly-d969a04b544dbdb5.js"],"/embed/chat/readwrite":[b,m,s,f,u,h,r,"static/css/e109cf56cf6d95cf.css","static/chunks/pages/embed/chat/readwrite-c3a95f986e268c63.js"],"/embed/video":[l,d,f,_,w,h,y,"static/css/50d4ea374f37f0f9.css","static/chunks/pages/embed/video-767df07d35be7bcf.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-97c724332d1a5798.js","static/chunks/8939-2c7dd78bd2286b4d.js","static/chunks/4267-b54c540ce3a8eed5.js","static/chunks/3626-717f7ff16ee717f6.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/2944-2a9b62dad629aca2.js","static/chunks/9764-3705d4c034a766fe.js","static/chunks/5315-0e7e74a6fb9533c3.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-19c3bbd726bf14e2.js","static/chunks/4763-a050d4b408cb3260.js","static/chunks/d3048c20-0576676e1017fabd.js","static/chunks/d2094a0f-579ef58c933db91c.js","static/chunks/7364-aaa393afe6bb8ebd.js","static/chunks/2429-38af9f180f370b65.js","static/chunks/2382-db0487c02624c136.js","static/chunks/7910-c80aab5f0058b5c3.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-e5a704c6afec0fd3.js","static/css/7c735c05af084bb2.css","static/chunks/29-efb8248317a52098.js","static/chunks/1082-c86716156ee6f510.js","static/chunks/2854-adab6ebb159dfcfb.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/NWvnps6UCfOPcF87ve9P2/_ssgManifest.js b/static/web/_next/static/hgh8q5kgihzNGSE1r-Og_/_ssgManifest.js similarity index 100% rename from static/web/_next/static/NWvnps6UCfOPcF87ve9P2/_ssgManifest.js rename to static/web/_next/static/hgh8q5kgihzNGSE1r-Og_/_ssgManifest.js diff --git a/static/web/admin/access-tokens/index.html b/static/web/admin/access-tokens/index.html index 6dccc5200..10a8f41f5 100644 --- a/static/web/admin/access-tokens/index.html +++ b/static/web/admin/access-tokens/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

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

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

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

\ No newline at end of file diff --git a/static/web/admin/actions/index.html b/static/web/admin/actions/index.html index 5b3b022b1..7246c910b 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 442a86691..35b072ef6 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 5257b03e4..d27dd8467 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 6fe672077..23cd34d51 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 8983b8b27..e507b0cb5 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 f247f6b7c..c0dcf5abf 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 6c5f4cf07..c72e06dd4 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 13c9bc4a0..9c4d98ddd 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 860740fa1..0b8fc4f6b 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 1768ae7be..32f9a1064 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 4f764562a..50b49af6f 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 3f3f8fc08..55898402b 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 c7dff7351..15d1b8da0 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 eccbd622b..5dc9034e5 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 819a2c06d..6f63e4aaf 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 e8056920d..e741289bd 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 27fea6812..c83984acc 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 3b835f203..67d089677 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 3db433978..4f83b68f2 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 3e5fb0080..8987358db 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 ab2ccbc74..6a3a1fe9b 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 c9e7e0ce5..b13a42242 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 616db28c4..e9f267a66 100644 --- a/static/web/embed/chat/readwrite/index.html +++ b/static/web/embed/chat/readwrite/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/video/index.html b/static/web/embed/video/index.html index c9d3e6d1a..3d8d6d978 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 3aa6c416b..06eb7e385 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
Logo
Preview
\ No newline at end of file