From 0ebca7b87a235d11fa4bba8d46f640472d3ae2b0 Mon Sep 17 00:00:00 2001 From: gabek Date: Sat, 5 Nov 2022 03:07:45 +0000 Subject: [PATCH] Bundle embedded web app --- static/web/404.html | 4 ++-- static/web/404/index.html | 4 ++-- .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 static/web/_next/static/chunks/4977-bed85c8621107c87.js | 1 - static/web/_next/static/chunks/4977-f274a74efdb43a9d.js | 1 + static/web/_next/static/chunks/9096.d34aab8efe3f3961.js | 1 - static/web/_next/static/chunks/9096.eb9dad81ab14f572.js | 1 + .../chunks/pages/embed/chat/readwrite-085229ff1a723635.js | 1 + .../chunks/pages/embed/chat/readwrite-b543ccdb8357b767.js | 1 - .../web/_next/static/chunks/pages/index-621691175474ffbc.js | 1 + .../web/_next/static/chunks/pages/index-ed5c25df409d7c51.js | 1 - ...ebpack-3fa33ad1d2a3fb3b.js => webpack-6928ef3b8aaabc6c.js} | 2 +- static/web/admin/access-tokens/index.html | 2 +- static/web/admin/actions/index.html | 2 +- static/web/admin/chat/messages/index.html | 2 +- static/web/admin/chat/users/index.html | 2 +- static/web/admin/config-chat/index.html | 2 +- static/web/admin/config-federation/index.html | 2 +- static/web/admin/config-notify/index.html | 2 +- static/web/admin/config-public-details/index.html | 2 +- static/web/admin/config-server-details/index.html | 2 +- static/web/admin/config-social-items/index.html | 2 +- static/web/admin/config-storage/index.html | 2 +- static/web/admin/config-video/index.html | 2 +- static/web/admin/federation/actions/index.html | 2 +- static/web/admin/federation/followers/index.html | 2 +- static/web/admin/hardware-info/index.html | 2 +- static/web/admin/help/index.html | 2 +- static/web/admin/index.html | 2 +- static/web/admin/logs/index.html | 2 +- static/web/admin/stream-health/index.html | 2 +- static/web/admin/upgrade/index.html | 2 +- static/web/admin/viewer-info/index.html | 2 +- static/web/admin/webhooks/index.html | 2 +- static/web/embed/chat/readonly/index.html | 2 +- static/web/embed/chat/readwrite/index.html | 2 +- static/web/embed/video/index.html | 2 +- static/web/index.html | 2 +- 39 files changed, 36 insertions(+), 36 deletions(-) rename static/web/_next/static/{nW3XkOiZISbqxGbGfu_1m => ATDZhCsqJAlbAmA_meARK}/_buildManifest.js (94%) rename static/web/_next/static/{nW3XkOiZISbqxGbGfu_1m => ATDZhCsqJAlbAmA_meARK}/_ssgManifest.js (100%) delete mode 100644 static/web/_next/static/chunks/4977-bed85c8621107c87.js create mode 100644 static/web/_next/static/chunks/4977-f274a74efdb43a9d.js delete mode 100644 static/web/_next/static/chunks/9096.d34aab8efe3f3961.js create mode 100644 static/web/_next/static/chunks/9096.eb9dad81ab14f572.js create mode 100644 static/web/_next/static/chunks/pages/embed/chat/readwrite-085229ff1a723635.js delete mode 100644 static/web/_next/static/chunks/pages/embed/chat/readwrite-b543ccdb8357b767.js create mode 100644 static/web/_next/static/chunks/pages/index-621691175474ffbc.js delete mode 100644 static/web/_next/static/chunks/pages/index-ed5c25df409d7c51.js rename static/web/_next/static/chunks/{webpack-3fa33ad1d2a3fb3b.js => webpack-6928ef3b8aaabc6c.js} (98%) diff --git a/static/web/404.html b/static/web/404.html index 749b5d22e..17ef90655 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 749b5d22e..17ef90655 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/nW3XkOiZISbqxGbGfu_1m/_buildManifest.js b/static/web/_next/static/ATDZhCsqJAlbAmA_meARK/_buildManifest.js similarity index 94% rename from static/web/_next/static/nW3XkOiZISbqxGbGfu_1m/_buildManifest.js rename to static/web/_next/static/ATDZhCsqJAlbAmA_meARK/_buildManifest.js index 63e3a9417..a28f3fc80 100644 --- a/static/web/_next/static/nW3XkOiZISbqxGbGfu_1m/_buildManifest.js +++ b/static/web/_next/static/ATDZhCsqJAlbAmA_meARK/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,a,c,e,i,t,n,d,f,b,h,o,m,u,k,r,g,j,p,l,_,w,v,y){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[a,s,c,t,n,f,o,r,g,"static/chunks/8980-ed3298b2bcefdc65.js",b,"static/css/cffc98a5ffdc74a3.css","static/chunks/pages/index-ed5c25df409d7c51.js"],"/_error":["static/chunks/pages/_error-02cc11fd74b4e5ff.js"],"/admin":[a,s,c,e,i,t,n,d,h,o,"static/chunks/8676-9693205d9b48d90d.js","static/chunks/pages/admin-9743bab3e8215a95.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-647bf15770f8de69.js"],"/admin/actions":[a,s,c,e,"static/chunks/pages/admin/actions-6130c774a7acaaaa.js"],"/admin/chat/messages":[j,a,s,c,e,i,n,p,"static/chunks/pages/admin/chat/messages-7a31c7f626fb8bec.js"],"/admin/chat/users":[j,a,s,c,e,i,t,n,p,"static/chunks/pages/admin/chat/users-39fb6345a4973ccf.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-2d8f314ed2c642bf.js"],"/admin/config-federation":["static/chunks/1829-0eb93b8278101717.js","static/chunks/pages/admin/config-federation-b722e1bc8f0608b4.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-2462c2f26ef3ddf1.js"],"/admin/config-public-details":["static/chunks/4ad82c5e-36e71da4442aa09e.js",a,s,c,e,m,"static/chunks/1140-3badda529c932b4b.js","static/chunks/pages/admin/config-public-details-4fca601eff1151f7.js"],"/admin/config-server-details":[l,"static/chunks/pages/admin/config-server-details-a148074a13faf6b7.js"],"/admin/config-social-items":[a,s,c,e,"static/chunks/pages/admin/config-social-items-ce13bfc436b5d6a9.js"],"/admin/config-storage":["static/chunks/pages/admin/config-storage-36a2bd13af05ae97.js"],"/admin/config-video":[a,s,c,e,l,"static/chunks/7326-d1457038bcb2631e.js","static/chunks/pages/admin/config-video-130a2f37c23239cf.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-78fd66c12ca134fb.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-3ec562a4246409e8.js"],"/admin/hardware-info":[u,i,t,d,h,k,m,"static/chunks/pages/admin/hardware-info-46d48f624d002e29.js"],"/admin/help":[t,d,r,"static/chunks/3206-f2cb6647feba06a7.js","static/chunks/pages/admin/help-05438b314b61d45b.js"],"/admin/logs":[a,s,c,e,i,o,"static/chunks/pages/admin/logs-27fd8a9785eb4444.js"],"/admin/stream-health":[u,i,t,d,h,k,"static/chunks/2934-7e53ecb633cea33f.js","static/chunks/pages/admin/stream-health-b0b8adb3104c1426.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/2069-45eeb5cd16bd7089.js","static/chunks/pages/admin/upgrade-f2dff185555ce8b4.js"],"/admin/viewer-info":[u,a,s,c,e,i,t,n,d,h,k,m,"static/chunks/pages/admin/viewer-info-91f77ca6adbf9cd7.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-f4de58dc6d71d032.js"],"/embed/chat/readonly":[_,w,f,v,b,y,"static/css/17f627d7855ca35b.css","static/chunks/pages/embed/chat/readonly-8691c428580148c9.js"],"/embed/chat/readwrite":[_,w,s,f,v,"static/chunks/911-ab40692bfb30c49e.js",b,y,"static/css/055d67bfc0fcb262.css","static/chunks/pages/embed/chat/readwrite-b543ccdb8357b767.js"],"/embed/video":["static/chunks/d6e1aeb5-10235c1a69554191.js",n,f,"static/css/7c735c05af084bb2.css","static/chunks/7902-45536fa617d228c5.js",g,b,"static/chunks/2239-2c6cff0493dc29f4.js","static/css/df2265f42be36c15.css","static/chunks/pages/embed/video-79fec247758d49b8.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-9cbfaf7acb4d3371.js","static/chunks/8939-eda7d68f97fec02a.js","static/chunks/4267-1777f44d4766c201.js","static/chunks/3626-984008629d4162ee.js","static/chunks/8091-a6f276da992f1283.js","static/chunks/4381-8950542b0a2e52d1.js","static/chunks/5938-b5bac17e4fa31c49.js","static/chunks/5315-f2b245b2b53141f8.js","static/chunks/6395-982bd92523d8632a.js","static/chunks/7466-c4f45184a343459a.js","static/chunks/4763-9e9e95131bc3a2f7.js","static/chunks/5360-e0e4b550194b07d1.js","static/chunks/7910-c08e4804be2001d2.js","static/chunks/3fff1979-8d1696e6e8bf7bc8.js","static/chunks/2139-45d397b25adef6af.js","static/chunks/250-63001d9dd7b0e717.js","static/chunks/2858-8831bf0d6fe371bc.js","static/chunks/29107295-1453a3860b50f70e.js","static/chunks/7635-7a16767323b61021.js","static/chunks/3286-ce799b633708bdb2.js","static/chunks/d3048c20-459c4b438d0161cb.js","static/chunks/d2094a0f-43945b499b1f7318.js","static/chunks/2852-9d898f87c57f0684.js","static/chunks/4977-bed85c8621107c87.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,n,d,f,b,h,o,m,u,k,r,g,j,p,l,_,w,v,y){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[a,s,c,t,n,f,o,r,g,"static/chunks/8980-ed3298b2bcefdc65.js",b,"static/css/cffc98a5ffdc74a3.css","static/chunks/pages/index-621691175474ffbc.js"],"/_error":["static/chunks/pages/_error-02cc11fd74b4e5ff.js"],"/admin":[a,s,c,e,i,t,n,d,h,o,"static/chunks/8676-9693205d9b48d90d.js","static/chunks/pages/admin-9743bab3e8215a95.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-647bf15770f8de69.js"],"/admin/actions":[a,s,c,e,"static/chunks/pages/admin/actions-6130c774a7acaaaa.js"],"/admin/chat/messages":[j,a,s,c,e,i,n,p,"static/chunks/pages/admin/chat/messages-7a31c7f626fb8bec.js"],"/admin/chat/users":[j,a,s,c,e,i,t,n,p,"static/chunks/pages/admin/chat/users-39fb6345a4973ccf.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-2d8f314ed2c642bf.js"],"/admin/config-federation":["static/chunks/1829-0eb93b8278101717.js","static/chunks/pages/admin/config-federation-b722e1bc8f0608b4.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-2462c2f26ef3ddf1.js"],"/admin/config-public-details":["static/chunks/4ad82c5e-36e71da4442aa09e.js",a,s,c,e,m,"static/chunks/1140-3badda529c932b4b.js","static/chunks/pages/admin/config-public-details-4fca601eff1151f7.js"],"/admin/config-server-details":[l,"static/chunks/pages/admin/config-server-details-a148074a13faf6b7.js"],"/admin/config-social-items":[a,s,c,e,"static/chunks/pages/admin/config-social-items-ce13bfc436b5d6a9.js"],"/admin/config-storage":["static/chunks/pages/admin/config-storage-36a2bd13af05ae97.js"],"/admin/config-video":[a,s,c,e,l,"static/chunks/7326-d1457038bcb2631e.js","static/chunks/pages/admin/config-video-130a2f37c23239cf.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-78fd66c12ca134fb.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-3ec562a4246409e8.js"],"/admin/hardware-info":[u,i,t,d,h,k,m,"static/chunks/pages/admin/hardware-info-46d48f624d002e29.js"],"/admin/help":[t,d,r,"static/chunks/3206-f2cb6647feba06a7.js","static/chunks/pages/admin/help-05438b314b61d45b.js"],"/admin/logs":[a,s,c,e,i,o,"static/chunks/pages/admin/logs-27fd8a9785eb4444.js"],"/admin/stream-health":[u,i,t,d,h,k,"static/chunks/2934-7e53ecb633cea33f.js","static/chunks/pages/admin/stream-health-b0b8adb3104c1426.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/2069-45eeb5cd16bd7089.js","static/chunks/pages/admin/upgrade-f2dff185555ce8b4.js"],"/admin/viewer-info":[u,a,s,c,e,i,t,n,d,h,k,m,"static/chunks/pages/admin/viewer-info-91f77ca6adbf9cd7.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-f4de58dc6d71d032.js"],"/embed/chat/readonly":[_,w,f,v,b,y,"static/css/17f627d7855ca35b.css","static/chunks/pages/embed/chat/readonly-8691c428580148c9.js"],"/embed/chat/readwrite":[_,w,s,f,v,"static/chunks/911-ab40692bfb30c49e.js",b,y,"static/css/055d67bfc0fcb262.css","static/chunks/pages/embed/chat/readwrite-085229ff1a723635.js"],"/embed/video":["static/chunks/d6e1aeb5-10235c1a69554191.js",n,f,"static/css/7c735c05af084bb2.css","static/chunks/7902-45536fa617d228c5.js",g,b,"static/chunks/2239-2c6cff0493dc29f4.js","static/css/df2265f42be36c15.css","static/chunks/pages/embed/video-79fec247758d49b8.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-9cbfaf7acb4d3371.js","static/chunks/8939-eda7d68f97fec02a.js","static/chunks/4267-1777f44d4766c201.js","static/chunks/3626-984008629d4162ee.js","static/chunks/8091-a6f276da992f1283.js","static/chunks/4381-8950542b0a2e52d1.js","static/chunks/5938-b5bac17e4fa31c49.js","static/chunks/5315-f2b245b2b53141f8.js","static/chunks/6395-982bd92523d8632a.js","static/chunks/7466-c4f45184a343459a.js","static/chunks/4763-9e9e95131bc3a2f7.js","static/chunks/5360-e0e4b550194b07d1.js","static/chunks/7910-c08e4804be2001d2.js","static/chunks/3fff1979-8d1696e6e8bf7bc8.js","static/chunks/2139-45d397b25adef6af.js","static/chunks/250-63001d9dd7b0e717.js","static/chunks/2858-8831bf0d6fe371bc.js","static/chunks/29107295-1453a3860b50f70e.js","static/chunks/7635-7a16767323b61021.js","static/chunks/3286-ce799b633708bdb2.js","static/chunks/d3048c20-459c4b438d0161cb.js","static/chunks/d2094a0f-43945b499b1f7318.js","static/chunks/2852-9d898f87c57f0684.js","static/chunks/4977-f274a74efdb43a9d.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/nW3XkOiZISbqxGbGfu_1m/_ssgManifest.js b/static/web/_next/static/ATDZhCsqJAlbAmA_meARK/_ssgManifest.js similarity index 100% rename from static/web/_next/static/nW3XkOiZISbqxGbGfu_1m/_ssgManifest.js rename to static/web/_next/static/ATDZhCsqJAlbAmA_meARK/_ssgManifest.js diff --git a/static/web/_next/static/chunks/4977-bed85c8621107c87.js b/static/web/_next/static/chunks/4977-bed85c8621107c87.js deleted file mode 100644 index cac496e7d..000000000 --- a/static/web/_next/static/chunks/4977-bed85c8621107c87.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4977],{94977:function(e,t,s){"use strict";s.r(t),s.d(t,{ChatContainer:function(){return em}});var a,n,r,o,i,l=s(85893),c=s(9764),d=s(67294),h=s(36531),u=s(91951),m=s(59760),g=s.n(m),p=s(86492),x=s.n(p),_=s(94184),C=s.n(_),f=s(94199),j=s(29158),v=s(4480),y=s(5152),N=s.n(y),M=s(50085),b=s.n(M),S=s(77278),E=s(48976),w=s.n(E);let T=e=>{let{badge:t,userColor:s}=e,a="var(--theme-user-colors-".concat(s,")");return(0,l.jsx)("span",{style:{color:a,borderColor:a},className:w().badge,children:t})};var k=s(77466);let B=N()(()=>Promise.all([s.e(8939),s.e(3903),s.e(4267),s.e(3626),s.e(8091),s.e(1300),s.e(4860)]).then(s.bind(s,94860)).then(e=>e.ChatModerationActionMenu),{loadableGenerated:{webpack:()=>[94860]}}),D=N()(()=>Promise.resolve().then(s.bind(s,47049)).then(e=>e.Highlight),{loadableGenerated:{webpack:()=>[47049]}}),O=e=>{let{message:t,highlightString:s,showModeratorMenu:a,sentBySelf:n,sameUserAsLast:r,isAuthorModerator:o,isAuthorAuthenticated:i}=e,{id:c,body:h,user:u,timestamp:m}=t,{id:g,displayName:p,displayColor:_}=u,y=(0,v.sJ)(k.FI),N="var(--theme-color-users-".concat(_,")"),M="Sent ".concat(function(e){let t=new Date(e);if(Number.isNaN(t))return"";let s=(0,S.Xb)(e);if(s>=1){let a=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"at ".concat(a," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}(m)),[E,w]=(0,d.useState)(h),O=[];return o&&O.push((0,l.jsx)(T,{badge:"mod",userColor:_},"mod")),i&&O.push((0,l.jsx)(T,{badge:(0,l.jsx)(j.Z,{title:"authenticated"}),userColor:_},"auth")),(0,d.useEffect)(()=>{w(x().decode(h))},[t]),(0,l.jsx)("div",{className:C()(b().messagePadding,r&&b().messagePaddingCollapsed),children:(0,l.jsxs)("div",{className:C()(b().root,{[b().ownMessage]:n}),style:{borderColor:N},children:[!r&&(0,l.jsx)(f.Z,{title:"user info goes here",placement:"topLeft",mouseEnterDelay:1,children:(0,l.jsxs)("div",{className:b().user,style:{color:N},children:[(0,l.jsx)("span",{className:b().userName,children:p}),(0,l.jsx)("span",{children:O})]})}),(0,l.jsx)(f.Z,{title:M,mouseEnterDelay:1,children:(0,l.jsx)(D,{search:s,children:(0,l.jsx)("div",{className:b().message,dangerouslySetInnerHTML:{__html:E}})})}),a&&(0,l.jsx)("div",{className:b().modMenuWrapper,children:(0,l.jsx)(B,{messageID:c,accessToken:y,userID:g,userDisplayName:p})}),(0,l.jsx)("div",{className:b().background,style:{color:N}})]})})};var A=s(93045),U=s(27496),F=s(55241),I=s(77493),H=s(96391),L=s(26912),R=s.n(L);let P=N()(()=>Promise.all([s.e(7741),s.e(1559)]).then(s.bind(s,51559)).then(e=>e.EmojiPicker),{loadableGenerated:{webpack:()=>[51559]}}),W=e=>{let{attributes:t,element:s,children:a}=e,n=(0,H.vt)(),r=(0,H.UE)();return(0,l.jsxs)("span",{...t,contentEditable:!1,children:[(0,l.jsx)("img",{alt:s.alt,src:s.src,title:s.name,style:{display:"inline",maxWidth:"50px",maxHeight:"20px",boxShadow:"".concat(n&&r?"0 0 0 3px #B4D5FF":"none")}}),a]})},G=e=>{let{isVoid:t}=e;return e.isVoid=e=>"image"===e.type||t(e),e.isInline=e=>"image"===e.type,e},Y=e=>{let t;if(I.xv.isText(e)){let s=e.text;return s}if(0===e.children.length)t=[{text:""}];else{var a;t=null===(a=e.children)||void 0===a?void 0:a.map(e=>Y(e)).join("")}switch(e.type){case"paragraph":return"

".concat(t,"

");case"image":return'').concat(e.alt,'');default:return t}},Z=e=>{if(I.xv.isText(e))return e.text.length;if("image"===e.type)return 5;let t=0;return e.children.forEach(e=>{t+=Z(e)}),t},J=e=>{let{defaultText:t}=e,[s,a]=(0,d.useState)(!1),[n,r]=(0,d.useState)(null==t?void 0:t.length),o=(0,v.sJ)(k.Gt),i=(0,d.useMemo)(()=>(0,H.BU)(G((0,I.Jh)())),[]),c=()=>{if(!o){console.log("websocketService is not defined");return}let e=Y(i);o.send({type:u.C.CHAT,body:e}),I.YR.delete(i,{at:{anchor:I.ML.start(i,[]),focus:I.ML.end(i,[])}}),r(0)},h=(e,t,s)=>({type:"image",alt:e,src:t,name:s,children:[{text:""}]}),m=(e,t)=>{if(!e)return;let{selection:s}=i,a=h(t,e,t);if(I.YR.insertNodes(i,a,{select:!0}),s){var n;let[r,o]=I.ML.parent(i,null===(n=s.focus)||void 0===n?void 0:n.path);i.isVoid(r)||I.NB.string(r).length?I.YR.insertNodes(i,a,{at:I.y$.next(o),select:!0}):(I.YR.insertNodes(i,a,{at:o,select:!0}),I.ML.normalize(i,{force:!0}))}else I.YR.insertNodes(i,a,{select:!0})},g=e=>{H.F3.focus(i),I.YR.insertText(i,e)},p=(e,t)=>{H.F3.focus(i),m(t,e)},x=e=>{let t=Z(i)+1;if("Enter"===e.key){e.preventDefault(),c();return}if("Backspace"===e.key){r(t-1);return}t+1>300&&e.preventDefault(),r(t+1)},_=e=>{let t=e.clipboardData.getData("text/plain"),{length:s}=t;n+s>300&&e.preventDefault()},f=e=>"image"===e.element.type?(0,l.jsx)(W,{...e}):(0,l.jsx)("p",{...e});return(0,l.jsx)("div",{className:R().root,children:(0,l.jsxs)("div",{className:C()(R().inputWrap,n>=300&&R().maxCharacters),children:[(0,l.jsxs)(H.mH,{editor:i,value:[{type:"paragraph",children:[{text:t||""}]}],children:[(0,l.jsx)(H.CX,{onKeyDown:x,onPaste:_,renderElement:f,placeholder:"Send a message to chat",style:{width:"100%"},autoFocus:!0}),(0,l.jsx)(F.Z,{content:(0,l.jsx)(P,{onEmojiSelect:g,onCustomEmojiSelect:p}),trigger:"click",onOpenChange:e=>a(e),open:s})]}),(0,l.jsxs)("div",{style:{display:"flex",paddingLeft:"5px"},children:[(0,l.jsx)("button",{type:"button",className:R().emojiButton,title:"Emoji picker button",onClick:()=>a(!s),children:(0,l.jsx)(A.Z,{})}),(0,l.jsx)("button",{type:"button",className:R().sendButton,title:"Send message Button",onClick:c,children:(0,l.jsx)(U.Z,{})})]})]})})};var V=s(93107),X=s.n(V);function z(){return(z=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,l.jsxs)("div",{className:X().chatModerationNotification,children:[(0,l.jsx)(q,{className:X().icon}),"You are now a moderator."]});var $=s(47049),Q=s(23421),ee=s.n(Q);let et=e=>{let{message:{body:t,user:{displayName:s}},highlightString:a}=e;return(0,l.jsxs)("div",{className:ee().chatSystemMessage,children:[(0,l.jsx)("div",{className:ee().user,children:(0,l.jsx)("span",{className:ee().userName,children:s})}),(0,l.jsx)($.Highlight,{search:a,children:(0,l.jsx)("div",{className:ee().message,dangerouslySetInnerHTML:{__html:t}})})]})};var es=s(55355),ea=s(91044),en=s.n(ea);let er=e=>{let{isAuthorModerator:t,userColor:s,displayName:a}=e;return(0,l.jsxs)("div",{className:en().root,children:[(0,l.jsxs)("span",{style:{color:"var(--theme-color-users-".concat(s,")")},children:[(0,l.jsx)("span",{style:{padding:"0 10px"},children:(0,l.jsx)(es.Z,{})}),(0,l.jsx)("span",{style:{fontWeight:"bold"},children:a}),t&&(0,l.jsx)("span",{children:(0,l.jsx)(T,{badge:"mod",userColor:s})})]})," ","joined the chat."]})};var eo=s(66017),ei=s(71577);let el=e=>{let{chatContainerRef:t,messages:s}=e;return(0,l.jsx)("div",{className:g().toBottomWrap,children:(0,l.jsx)(ei.Z,{type:"default",style:{color:"currentColor"},icon:(0,l.jsx)(eo.Z,{}),onClick:()=>t.current.scrollToIndex({index:s.length-1,behavior:"smooth"}),children:"Go to last message"})})};var ec=s(65302),ed=s.n(ec);let eh=e=>{let{body:t}=e;return(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t},className:ed().chatAction})};function eu(e){let{user:{scopes:t}}=e;return!!t&&0!==t.length&&t.includes("MODERATOR")}let em=e=>{let{messages:t,usernameToHighlight:s,chatUserId:a,isModerator:n,showInput:r,height:o}=e,[i,m]=(0,d.useState)(!1),p=(0,d.useRef)(null),x=e=>{let{oldName:t,user:s}=e,{displayName:a,displayColor:n}=s,r="var(--theme-color-users-".concat(n,")");return(0,l.jsxs)("div",{className:g().nameChangeView,children:[(0,l.jsx)("div",{style:{marginRight:5,height:"max-content",margin:"auto 5px auto 0"},children:(0,l.jsx)(h.Z,{})}),(0,l.jsxs)("div",{className:g().nameChangeText,children:[(0,l.jsx)("span",{style:{color:r},children:t}),(0,l.jsx)("span",{className:g().plain,children:" is now known as "}),(0,l.jsx)("span",{style:{color:r},children:a})]})]})},_=e=>{let{user:{displayName:t,displayColor:s}}=e,a=eu(e);return(0,l.jsx)(er,{displayName:t,userColor:s,isAuthorModerator:a})},C=e=>{let{body:t}=e;return(0,l.jsx)(eh,{body:t})},f=e=>{let t=eu(e);return t?(0,l.jsx)(K,{}):(0,l.jsx)("div",{style:{width:"1px",height:"1px"}})},j=(e,r)=>{switch(r.type){case u.C.CHAT:var o,i,c;return(0,l.jsx)(O,{message:r,showModeratorMenu:n,highlightString:s,sentBySelf:(null===(o=r.user)||void 0===o?void 0:o.id)===a,sameUserAsLast:function(e,t){if(e.length<2)return!1;let s=e[t],{user:{id:a}}=s,n=e[t-1];if((null==n?void 0:n.type)!==u.C.CHAT||!n.timestamp||!s.timestamp)return!1;let r=new Date(n.timestamp).getTime(),o=new Date(s.timestamp).getTime();return!(o-r>12e4)&&a===(null==n?void 0:n.user.id)}(t,e),isAuthorModerator:null===(i=r.user.scopes)||void 0===i?void 0:i.includes("MODERATOR"),isAuthorAuthenticated:null===(c=r.user)||void 0===c?void 0:c.authenticated},r.id);case u.C.NAME_CHANGE:return x(r);case u.C.CONNECTED_USER_INFO:return f(r);case u.C.USER_JOINED:return _(r);case u.C.CHAT_ACTION:return C(r);case u.C.SYSTEM:return(0,l.jsx)(et,{message:r,highlightString:s},r.id);default:return null}},v=(0,d.useMemo)(()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.OO,{style:{height:o},className:g().virtuoso,ref:p,initialTopMostItemIndex:t.length-1,data:t,itemContent:(e,t)=>j(e,t),followOutput:"auto",alignToBottom:!0,atBottomStateChange:e=>m(e)}),!i&&(0,l.jsx)(el,{chatContainerRef:p,messages:t})]}),[t,s,a,n,i]);return(0,l.jsxs)("div",{className:g().chatContainer,children:[v,r&&(0,l.jsx)(J,{})]})};em.defaultProps={showInput:!0,height:"auto"}},65302:function(e){e.exports={chatAction:"ChatActionMessage_chatAction__x9Xsg"}},59760: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"}},91044:function(e){e.exports={root:"ChatJoinMessage_root__vuVXa"}},93107:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},23421:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},26912: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"}},48976:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},50085: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/4977-f274a74efdb43a9d.js b/static/web/_next/static/chunks/4977-f274a74efdb43a9d.js new file mode 100644 index 000000000..ade4036b7 --- /dev/null +++ b/static/web/_next/static/chunks/4977-f274a74efdb43a9d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4977],{94977:function(e,t,a){"use strict";a.r(t),a.d(t,{ChatContainer:function(){return em}});var s,n,r,o,i,l=a(85893),c=a(9764),d=a(67294),h=a(36531),u=a(91951),m=a(59760),g=a.n(m),p=a(86492),x=a.n(p),_=a(94184),C=a.n(_),f=a(94199),j=a(29158),v=a(4480),y=a(5152),N=a.n(y),M=a(50085),b=a.n(M),S=a(77278),E=a(48976),w=a.n(E);let T=e=>{let{badge:t,userColor:a}=e,s="var(--theme-user-colors-".concat(a,")");return(0,l.jsx)("span",{style:{color:s,borderColor:s},className:w().badge,children:t})};var k=a(77466);let B=N()(()=>Promise.all([a.e(8939),a.e(3903),a.e(4267),a.e(3626),a.e(8091),a.e(1300),a.e(4860)]).then(a.bind(a,94860)).then(e=>e.ChatModerationActionMenu),{loadableGenerated:{webpack:()=>[94860]}}),D=N()(()=>Promise.resolve().then(a.bind(a,47049)).then(e=>e.Highlight),{loadableGenerated:{webpack:()=>[47049]}}),O=e=>{let{message:t,highlightString:a,showModeratorMenu:s,sentBySelf:n,sameUserAsLast:r,isAuthorModerator:o,isAuthorAuthenticated:i}=e,{id:c,body:h,user:u,timestamp:m}=t,{id:g,displayName:p,displayColor:_}=u,y=(0,v.sJ)(k.FI),N="var(--theme-color-users-".concat(_,")"),M="Sent ".concat(function(e){let t=new Date(e);if(Number.isNaN(t))return"";let a=(0,S.Xb)(e);if(a>=1){let s=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"at ".concat(s," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}(m)),[E,w]=(0,d.useState)(h),O=[];return o&&O.push((0,l.jsx)(T,{badge:"mod",userColor:_},"mod")),i&&O.push((0,l.jsx)(T,{badge:(0,l.jsx)(j.Z,{title:"authenticated"}),userColor:_},"auth")),(0,d.useEffect)(()=>{w(x().decode(h))},[t]),(0,l.jsx)("div",{className:C()(b().messagePadding,r&&b().messagePaddingCollapsed),children:(0,l.jsxs)("div",{className:C()(b().root,{[b().ownMessage]:n}),style:{borderColor:N},children:[!r&&(0,l.jsx)(f.Z,{title:"user info goes here",placement:"topLeft",mouseEnterDelay:1,children:(0,l.jsxs)("div",{className:b().user,style:{color:N},children:[(0,l.jsx)("span",{className:b().userName,children:p}),(0,l.jsx)("span",{children:O})]})}),(0,l.jsx)(f.Z,{title:M,mouseEnterDelay:1,children:(0,l.jsx)(D,{search:a,children:(0,l.jsx)("div",{className:b().message,dangerouslySetInnerHTML:{__html:E}})})}),s&&(0,l.jsx)("div",{className:b().modMenuWrapper,children:(0,l.jsx)(B,{messageID:c,accessToken:y,userID:g,userDisplayName:p})}),(0,l.jsx)("div",{className:b().background,style:{color:N}})]})})};var A=a(93045),U=a(27496),F=a(55241),I=a(77493),H=a(96391),L=a(26912),R=a.n(L);let P=N()(()=>Promise.all([a.e(7741),a.e(1559)]).then(a.bind(a,51559)).then(e=>e.EmojiPicker),{loadableGenerated:{webpack:()=>[51559]}}),W=e=>{let{attributes:t,element:a,children:s}=e,n=(0,H.vt)(),r=(0,H.UE)();return(0,l.jsxs)("span",{...t,contentEditable:!1,children:[(0,l.jsx)("img",{alt:a.alt,src:a.src,title:a.name,style:{display:"inline",maxWidth:"50px",maxHeight:"20px",boxShadow:"".concat(n&&r?"0 0 0 3px #B4D5FF":"none")}}),s]})},G=e=>{let{isVoid:t}=e;return e.isVoid=e=>"image"===e.type||t(e),e.isInline=e=>"image"===e.type,e},Y=e=>{let t;if(I.xv.isText(e)){let a=e.text;return a}if(0===e.children.length)t=[{text:""}];else{var s;t=null===(s=e.children)||void 0===s?void 0:s.map(e=>Y(e)).join("")}switch(e.type){case"paragraph":return"

".concat(t,"

");case"image":return'').concat(e.alt,'');default:return t}},Z=e=>{if(I.xv.isText(e))return e.text.length;if("image"===e.type)return 5;let t=0;return e.children.forEach(e=>{t+=Z(e)}),t},J=e=>{let{defaultText:t}=e,[a,s]=(0,d.useState)(!1),[n,r]=(0,d.useState)(null==t?void 0:t.length),o=(0,v.sJ)(k.Gt),i=(0,d.useMemo)(()=>(0,H.BU)(G((0,I.Jh)())),[]),c=()=>{if(!o){console.log("websocketService is not defined");return}let e=Y(i);o.send({type:u.C.CHAT,body:e}),I.YR.delete(i,{at:{anchor:I.ML.start(i,[]),focus:I.ML.end(i,[])}}),r(0)},h=(e,t,a)=>({type:"image",alt:e,src:t,name:a,children:[{text:""}]}),m=(e,t)=>{if(!e)return;let{selection:a}=i,s=h(t,e,t);if(I.YR.insertNodes(i,s,{select:!0}),a){var n;let[r,o]=I.ML.parent(i,null===(n=a.focus)||void 0===n?void 0:n.path);i.isVoid(r)||I.NB.string(r).length?I.YR.insertNodes(i,s,{at:I.y$.next(o),select:!0}):(I.YR.insertNodes(i,s,{at:o,select:!0}),I.ML.normalize(i,{force:!0}))}else I.YR.insertNodes(i,s,{select:!0})},g=e=>{H.F3.focus(i),I.YR.insertText(i,e)},p=(e,t)=>{H.F3.focus(i),m(t,e)},x=e=>{let t=Z(i)+1;if("Enter"===e.key){e.preventDefault(),c();return}if("Backspace"===e.key){r(t-1);return}t+1>300&&e.preventDefault(),r(t+1)},_=e=>{let t=e.clipboardData.getData("text/plain"),{length:a}=t;n+a>300&&e.preventDefault()},f=e=>"image"===e.element.type?(0,l.jsx)(W,{...e}):(0,l.jsx)("p",{...e});return(0,l.jsx)("div",{className:R().root,children:(0,l.jsxs)("div",{className:C()(R().inputWrap,n>=300&&R().maxCharacters),children:[(0,l.jsxs)(H.mH,{editor:i,value:[{type:"paragraph",children:[{text:t||""}]}],children:[(0,l.jsx)(H.CX,{className:"chat-text-input",onKeyDown:x,onPaste:_,renderElement:f,placeholder:"Send a message to chat",style:{width:"100%"},autoFocus:!0}),(0,l.jsx)(F.Z,{content:(0,l.jsx)(P,{onEmojiSelect:g,onCustomEmojiSelect:p}),trigger:"click",onOpenChange:e=>s(e),open:a})]}),(0,l.jsxs)("div",{style:{display:"flex",paddingLeft:"5px"},children:[(0,l.jsx)("button",{type:"button",className:R().emojiButton,title:"Emoji picker button",onClick:()=>s(!a),children:(0,l.jsx)(A.Z,{})}),(0,l.jsx)("button",{type:"button",className:R().sendButton,title:"Send message Button",onClick:c,children:(0,l.jsx)(U.Z,{})})]})]})})};var V=a(93107),X=a.n(V);function z(){return(z=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,l.jsxs)("div",{className:X().chatModerationNotification,children:[(0,l.jsx)(q,{className:X().icon}),"You are now a moderator."]});var $=a(47049),Q=a(23421),ee=a.n(Q);let et=e=>{let{message:{body:t,user:{displayName:a}},highlightString:s}=e;return(0,l.jsxs)("div",{className:ee().chatSystemMessage,children:[(0,l.jsx)("div",{className:ee().user,children:(0,l.jsx)("span",{className:ee().userName,children:a})}),(0,l.jsx)($.Highlight,{search:s,children:(0,l.jsx)("div",{className:ee().message,dangerouslySetInnerHTML:{__html:t}})})]})};var ea=a(55355),es=a(91044),en=a.n(es);let er=e=>{let{isAuthorModerator:t,userColor:a,displayName:s}=e;return(0,l.jsxs)("div",{className:en().root,children:[(0,l.jsxs)("span",{style:{color:"var(--theme-color-users-".concat(a,")")},children:[(0,l.jsx)("span",{style:{padding:"0 10px"},children:(0,l.jsx)(ea.Z,{})}),(0,l.jsx)("span",{style:{fontWeight:"bold"},children:s}),t&&(0,l.jsx)("span",{children:(0,l.jsx)(T,{badge:"mod",userColor:a})})]})," ","joined the chat."]})};var eo=a(66017),ei=a(71577);let el=e=>{let{chatContainerRef:t,messages:a}=e;return(0,l.jsx)("div",{className:g().toBottomWrap,children:(0,l.jsx)(ei.Z,{type:"default",style:{color:"currentColor"},icon:(0,l.jsx)(eo.Z,{}),onClick:()=>t.current.scrollToIndex({index:a.length-1,behavior:"smooth"}),children:"Go to last message"})})};var ec=a(65302),ed=a.n(ec);let eh=e=>{let{body:t}=e;return(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t},className:ed().chatAction})};function eu(e){let{user:{scopes:t}}=e;return!!t&&0!==t.length&&t.includes("MODERATOR")}let em=e=>{let{messages:t,usernameToHighlight:a,chatUserId:s,isModerator:n,showInput:r,height:o}=e,[i,m]=(0,d.useState)(!1),p=(0,d.useRef)(null),x=e=>{let{oldName:t,user:a}=e,{displayName:s,displayColor:n}=a,r="var(--theme-color-users-".concat(n,")");return(0,l.jsxs)("div",{className:g().nameChangeView,children:[(0,l.jsx)("div",{style:{marginRight:5,height:"max-content",margin:"auto 5px auto 0"},children:(0,l.jsx)(h.Z,{})}),(0,l.jsxs)("div",{className:g().nameChangeText,children:[(0,l.jsx)("span",{style:{color:r},children:t}),(0,l.jsx)("span",{className:g().plain,children:" is now known as "}),(0,l.jsx)("span",{style:{color:r},children:s})]})]})},_=e=>{let{user:{displayName:t,displayColor:a}}=e,s=eu(e);return(0,l.jsx)(er,{displayName:t,userColor:a,isAuthorModerator:s})},C=e=>{let{body:t}=e;return(0,l.jsx)(eh,{body:t})},f=e=>{let t=eu(e);return t?(0,l.jsx)(K,{}):(0,l.jsx)("div",{style:{width:"1px",height:"1px"}})},j=(e,r)=>{switch(r.type){case u.C.CHAT:var o,i,c;return(0,l.jsx)(O,{message:r,showModeratorMenu:n,highlightString:a,sentBySelf:(null===(o=r.user)||void 0===o?void 0:o.id)===s,sameUserAsLast:function(e,t){if(e.length<2)return!1;let a=e[t],{user:{id:s}}=a,n=e[t-1];if((null==n?void 0:n.type)!==u.C.CHAT||!n.timestamp||!a.timestamp)return!1;let r=new Date(n.timestamp).getTime(),o=new Date(a.timestamp).getTime();return!(o-r>12e4)&&s===(null==n?void 0:n.user.id)}(t,e),isAuthorModerator:null===(i=r.user.scopes)||void 0===i?void 0:i.includes("MODERATOR"),isAuthorAuthenticated:null===(c=r.user)||void 0===c?void 0:c.authenticated},r.id);case u.C.NAME_CHANGE:return x(r);case u.C.CONNECTED_USER_INFO:return f(r);case u.C.USER_JOINED:return _(r);case u.C.CHAT_ACTION:return C(r);case u.C.SYSTEM:return(0,l.jsx)(et,{message:r,highlightString:a},r.id);default:return null}},v=(0,d.useMemo)(()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.OO,{style:{height:o},className:g().virtuoso,ref:p,initialTopMostItemIndex:t.length-1,data:t,itemContent:(e,t)=>j(e,t),followOutput:"auto",alignToBottom:!0,atBottomStateChange:e=>m(e)}),!i&&(0,l.jsx)(el,{chatContainerRef:p,messages:t})]}),[t,a,s,n,i]);return(0,l.jsxs)("div",{id:"chat-container",className:g().chatContainer,children:[v,r&&(0,l.jsx)(J,{})]})};em.defaultProps={showInput:!0,height:"auto"}},65302:function(e){e.exports={chatAction:"ChatActionMessage_chatAction__x9Xsg"}},59760: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"}},91044:function(e){e.exports={root:"ChatJoinMessage_root__vuVXa"}},93107:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},23421:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},26912: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"}},48976:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},50085: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/9096.d34aab8efe3f3961.js b/static/web/_next/static/chunks/9096.d34aab8efe3f3961.js deleted file mode 100644 index 836153bd0..000000000 --- a/static/web/_next/static/chunks/9096.d34aab8efe3f3961.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9096],{59096:function(e,t,n){n.r(t),n.d(t,{NameChangeModal:function(){return C}});var a=n(85893),l=n(67294),r=n(4480),o=n(38939),s=n(69677),i=n(71577),u=n(91951),h=n(77466);let{Option:d}=o.Z,c=e=>{let{color:t}=e;return(0,a.jsx)("div",{style:{textAlign:"center",backgroundColor:"var(--theme-color-users-".concat(t,")"),width:"100%",height:"100%"}})},C=()=>{let e=(0,r.sJ)(h.db);if(!e)return null;let{displayName:t,displayColor:n}=e,C=(0,r.sJ)(h.Gt),[p,g]=(0,l.useState)(t),m=()=>{let e={type:u.C.NAME_CHANGE,newName:p};C.send(e)},f=p!==t&&""!==p&&(null==C?void 0:C.isConnected()),x=e=>{let t={type:u.C.COLOR_CHANGE,newColor:Number(e)};C.send(t)},j=[...Array(8)].map((e,t)=>t);return(0,a.jsxs)("div",{children:["Your chat display name is what people see when you send chat messages. Other information can go here to mention auth, and stuff.",(0,a.jsx)(s.Z,{value:p,onChange:e=>g(e.target.value),placeholder:"Your chat display name",maxLength:30,showCount:!0,defaultValue:t}),(0,a.jsx)(i.Z,{disabled:!f,onClick:m,children:"Change name"}),(0,a.jsxs)("div",{children:["Your Color",(0,a.jsx)(o.Z,{style:{width:120},onChange:x,defaultValue:n.toString(),getPopupContainer:e=>e.parentElement,children:j.map(e=>(0,a.jsx)(d,{title:e,children:(0,a.jsx)(c,{color:e})},e.toString()))})]})]})}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/9096.eb9dad81ab14f572.js b/static/web/_next/static/chunks/9096.eb9dad81ab14f572.js new file mode 100644 index 000000000..654ac3f42 --- /dev/null +++ b/static/web/_next/static/chunks/9096.eb9dad81ab14f572.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9096],{59096:function(e,t,n){n.r(t),n.d(t,{NameChangeModal:function(){return C}});var a=n(85893),l=n(67294),r=n(4480),o=n(38939),s=n(69677),i=n(71577),u=n(91951),d=n(77466);let{Option:h}=o.Z,c=e=>{let{color:t}=e;return(0,a.jsx)("div",{style:{textAlign:"center",backgroundColor:"var(--theme-color-users-".concat(t,")"),width:"100%",height:"100%"}})},C=()=>{let e=(0,r.sJ)(d.db);if(!e)return null;let{displayName:t,displayColor:n}=e,C=(0,r.sJ)(d.Gt),[g,m]=(0,l.useState)(t),p=()=>{let e={type:u.C.NAME_CHANGE,newName:g};C.send(e)},f=g!==t&&""!==g&&(null==C?void 0:C.isConnected()),x=e=>{let t={type:u.C.COLOR_CHANGE,newColor:Number(e)};C.send(t)},j=[...Array(8)].map((e,t)=>t);return(0,a.jsxs)("div",{children:["Your chat display name is what people see when you send chat messages. Other information can go here to mention auth, and stuff.",(0,a.jsx)(s.Z,{id:"name-change-field",value:g,onChange:e=>m(e.target.value),placeholder:"Your chat display name",maxLength:30,showCount:!0,defaultValue:t}),(0,a.jsx)(i.Z,{id:"name-change-submit",disabled:!f,onClick:p,children:"Change name"}),(0,a.jsxs)("div",{children:["Your Color",(0,a.jsx)(o.Z,{style:{width:120},onChange:x,defaultValue:n.toString(),getPopupContainer:e=>e.parentElement,children:j.map(e=>(0,a.jsx)(h,{title:e,children:(0,a.jsx)(c,{color:e})},e.toString()))})]})]})}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/embed/chat/readwrite-085229ff1a723635.js b/static/web/_next/static/chunks/pages/embed/chat/readwrite-085229ff1a723635.js new file mode 100644 index 000000000..8d02583c8 --- /dev/null +++ b/static/web/_next/static/chunks/pages/embed/chat/readwrite-085229ff1a723635.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[955,1496],{30672:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readwrite",function(){return t(34986)}])},37527:function(e,n,t){"use strict";t.d(n,{h:function(){return T},Z:function(){return U}});var a=t(85893),r=t(97183),s=t(94199),l=t(20550),i=t(94184),c=t.n(i),o=t(66516),d=t(38504),h=t(71577),u=t(26713),x=t(86548),j=t(94149),m=t(38545),_=t(87547),p=t(39398),b=t(4480),f=t(67294),Z=t(49218),g=t(5152),C=t.n(g),w=t(77466),v=t(79252),k=t.n(v);let N=C()(()=>t.e(4761).then(t.bind(t,14761)).then(e=>e.Modal),{loadableGenerated:{webpack:()=>[14761]}}),y=C()(()=>Promise.all([t.e(8939),t.e(9096)]).then(t.bind(t,59096)).then(e=>e.NameChangeModal),{loadableGenerated:{webpack:()=>[59096]}}),A=C()(()=>Promise.all([t.e(4381),t.e(5535)]).then(t.bind(t,65535)).then(e=>e.AuthModal),{loadableGenerated:{webpack:()=>[65535]}}),E=e=>{let{username:n}=e,[t,r]=(0,f.useState)(!1),[s,l]=(0,f.useState)(!1),[i,c]=(0,b.FV)(w.ZA),g=(0,b.sJ)(w.Q),C=()=>{c(!i)},v=()=>{r(!0)};(0,Z.y1)("c",C,{enableOnContentEditable:!1},[i]);let E=(0,b.sJ)(w.db);if(!E)return null;let{displayName:H}=E,I=(0,a.jsxs)(o.Z,{children:[(0,a.jsx)(o.Z.Item,{icon:(0,a.jsx)(x.Z,{}),onClick:()=>v(),children:"Change name"},"0"),(0,a.jsx)(o.Z.Item,{icon:(0,a.jsx)(j.Z,{}),onClick:()=>l(!0),children:"Authenticate"},"1"),g.chatAvailable&&(0,a.jsx)(o.Z.Item,{icon:(0,a.jsx)(m.Z,{}),onClick:()=>C(),children:"Toggle chat"},"3")]});return(0,a.jsxs)("div",{id:"user-menu",className:"".concat(k().root),children:[(0,a.jsx)(d.Z,{overlay:I,trigger:["click"],children:(0,a.jsx)(h.Z,{type:"primary",icon:(0,a.jsx)(_.Z,{style:{marginRight:".5rem"}}),children:(0,a.jsxs)(u.Z,{children:[n||H,(0,a.jsx)(p.Z,{})]})})}),(0,a.jsx)(N,{title:"Change Chat Display Name",open:t,handleCancel:()=>r(!1),children:(0,a.jsx)(y,{})}),(0,a.jsx)(N,{title:"Authenticate",open:s,handleCancel:()=>l(!1),children:(0,a.jsx)(A,{})})]})};var H=t(50738),I=t(31764),J=t.n(I);let{Header:D}=r.Z,T=e=>{let{name:n="Your stream title",chatAvailable:t,chatDisabled:r}=e;return(0,a.jsxs)(D,{className:c()(["".concat(J().header)],"global-header"),children:[(0,a.jsxs)("div",{className:"".concat(J().logo),children:[(0,a.jsx)(H.C,{variant:"contrast"}),(0,a.jsx)("span",{className:"global-header-text",children:n})]}),t&&!r&&(0,a.jsx)(E,{}),!t&&!r&&(0,a.jsx)(s.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,a.jsx)(l.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})};var U=T},34986:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return c}});var a=t(85893),r=t(4480),s=t(94977),l=t(77466),i=t(37527);function c(){let e=(0,r.sJ)(l.db),n=(0,r.sJ)(l.pH),t=(0,r.sJ)(l.g1),{name:c,chatDisabled:o}=t;if(!e)return null;let{id:d,displayName:h,isModerator:u}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)(l.me,{}),(0,a.jsx)(i.Z,{name:c,chatAvailable:!0,chatDisabled:o}),(0,a.jsx)(s.ChatContainer,{messages:n,usernameToHighlight:h,chatUserId:d,isModerator:u,showInput:!0,height:"80vh"})]})}},79252:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},31764:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}}},function(e){e.O(0,[1272,8700,3903,6395,2852,911,7466,4977,9774,2888,179],function(){return e(e.s=30672)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/embed/chat/readwrite-b543ccdb8357b767.js b/static/web/_next/static/chunks/pages/embed/chat/readwrite-b543ccdb8357b767.js deleted file mode 100644 index 8b0e1bccf..000000000 --- a/static/web/_next/static/chunks/pages/embed/chat/readwrite-b543ccdb8357b767.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[955,1496],{30672:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readwrite",function(){return t(34986)}])},37527:function(e,n,t){"use strict";t.d(n,{h:function(){return J},Z:function(){return D}});var a=t(85893),r=t(97183),s=t(94199),l=t(20550),i=t(66516),c=t(38504),o=t(71577),h=t(26713),d=t(86548),u=t(94149),x=t(38545),j=t(87547),_=t(39398),p=t(4480),m=t(67294),f=t(49218),Z=t(5152),b=t.n(Z),C=t(77466),g=t(79252),w=t.n(g);let v=b()(()=>t.e(4761).then(t.bind(t,14761)).then(e=>e.Modal),{loadableGenerated:{webpack:()=>[14761]}}),k=b()(()=>Promise.all([t.e(8939),t.e(9096)]).then(t.bind(t,59096)).then(e=>e.NameChangeModal),{loadableGenerated:{webpack:()=>[59096]}}),N=b()(()=>Promise.all([t.e(4381),t.e(5535)]).then(t.bind(t,65535)).then(e=>e.AuthModal),{loadableGenerated:{webpack:()=>[65535]}}),y=e=>{let{username:n}=e,[t,r]=(0,m.useState)(!1),[s,l]=(0,m.useState)(!1),[Z,b]=(0,p.FV)(C.ZA),g=(0,p.sJ)(C.Q),y=()=>{b(!Z)},A=()=>{r(!0)};(0,f.y1)("c",y,{enableOnContentEditable:!1},[Z]);let E=(0,p.sJ)(C.db);if(!E)return null;let{displayName:H}=E,I=(0,a.jsxs)(i.Z,{children:[(0,a.jsx)(i.Z.Item,{icon:(0,a.jsx)(d.Z,{}),onClick:()=>A(),children:"Change name"},"0"),(0,a.jsx)(i.Z.Item,{icon:(0,a.jsx)(u.Z,{}),onClick:()=>l(!0),children:"Authenticate"},"1"),g.chatAvailable&&(0,a.jsx)(i.Z.Item,{icon:(0,a.jsx)(x.Z,{}),onClick:()=>y(),children:"Toggle chat"},"3")]});return(0,a.jsxs)("div",{className:"".concat(w().root),children:[(0,a.jsx)(c.Z,{overlay:I,trigger:["click"],children:(0,a.jsx)(o.Z,{type:"primary",icon:(0,a.jsx)(j.Z,{style:{marginRight:".5rem"}}),children:(0,a.jsxs)(h.Z,{children:[n||H,(0,a.jsx)(_.Z,{})]})})}),(0,a.jsx)(v,{title:"Change Chat Display Name",open:t,handleCancel:()=>r(!1),children:(0,a.jsx)(k,{})}),(0,a.jsx)(v,{title:"Authenticate",open:s,handleCancel:()=>l(!1),children:(0,a.jsx)(N,{})})]})};var A=t(50738),E=t(31764),H=t.n(E);let{Header:I}=r.Z,J=e=>{let{name:n="Your stream title",chatAvailable:t,chatDisabled:r}=e;return(0,a.jsxs)(I,{className:"".concat(H().header),children:[(0,a.jsxs)("div",{className:"".concat(H().logo),children:[(0,a.jsx)(A.C,{variant:"contrast"}),(0,a.jsx)("span",{children:n})]}),t&&!r&&(0,a.jsx)(y,{}),!t&&!r&&(0,a.jsx)(s.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,a.jsx)(l.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})};var D=J},34986:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return c}});var a=t(85893),r=t(4480),s=t(94977),l=t(77466),i=t(37527);function c(){let e=(0,r.sJ)(l.db),n=(0,r.sJ)(l.pH),t=(0,r.sJ)(l.g1),{name:c,chatDisabled:o}=t;if(!e)return null;let{id:h,displayName:d,isModerator:u}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)(l.me,{}),(0,a.jsx)(i.Z,{name:c,chatAvailable:!0,chatDisabled:o}),(0,a.jsx)(s.ChatContainer,{messages:n,usernameToHighlight:d,chatUserId:h,isModerator:u,showInput:!0,height:"80vh"})]})}},79252:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},31764:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}}},function(e){e.O(0,[1272,8700,3903,6395,2852,911,7466,4977,9774,2888,179],function(){return e(e.s=30672)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/index-621691175474ffbc.js b/static/web/_next/static/chunks/pages/index-621691175474ffbc.js new file mode 100644 index 000000000..169dc3358 --- /dev/null +++ b/static/web/_next/static/chunks/pages/index-621691175474ffbc.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(44486)}])},37527:function(e,t,n){"use strict";n.d(t,{h:function(){return E},Z:function(){return M}});var o=n(85893),s=n(97183),i=n(94199),a=n(20550),l=n(94184),r=n.n(l),c=n(66516),d=n(38504),h=n(71577),u=n(26713),m=n(86548),x=n(94149),p=n(38545),f=n(87547),j=n(39398),_=n(4480),g=n(67294),w=n(49218),v=n(5152),y=n.n(v),b=n(77466),C=n(79252),k=n.n(C);let N=y()(()=>n.e(4761).then(n.bind(n,14761)).then(e=>e.Modal),{loadableGenerated:{webpack:()=>[14761]}}),S=y()(()=>Promise.all([n.e(8939),n.e(9096)]).then(n.bind(n,59096)).then(e=>e.NameChangeModal),{loadableGenerated:{webpack:()=>[59096]}}),Z=y()(()=>Promise.all([n.e(4381),n.e(5535)]).then(n.bind(n,65535)).then(e=>e.AuthModal),{loadableGenerated:{webpack:()=>[65535]}}),F=e=>{let{username:t}=e,[n,s]=(0,g.useState)(!1),[i,a]=(0,g.useState)(!1),[l,r]=(0,_.FV)(b.ZA),v=(0,_.sJ)(b.Q),y=()=>{r(!l)},C=()=>{s(!0)};(0,w.y1)("c",y,{enableOnContentEditable:!1},[l]);let F=(0,_.sJ)(b.db);if(!F)return null;let{displayName:L}=F,T=(0,o.jsxs)(c.Z,{children:[(0,o.jsx)(c.Z.Item,{icon:(0,o.jsx)(m.Z,{}),onClick:()=>C(),children:"Change name"},"0"),(0,o.jsx)(c.Z.Item,{icon:(0,o.jsx)(x.Z,{}),onClick:()=>a(!0),children:"Authenticate"},"1"),v.chatAvailable&&(0,o.jsx)(c.Z.Item,{icon:(0,o.jsx)(p.Z,{}),onClick:()=>y(),children:"Toggle chat"},"3")]});return(0,o.jsxs)("div",{id:"user-menu",className:"".concat(k().root),children:[(0,o.jsx)(d.Z,{overlay:T,trigger:["click"],children:(0,o.jsx)(h.Z,{type:"primary",icon:(0,o.jsx)(f.Z,{style:{marginRight:".5rem"}}),children:(0,o.jsxs)(u.Z,{children:[t||L,(0,o.jsx)(j.Z,{})]})})}),(0,o.jsx)(N,{title:"Change Chat Display Name",open:n,handleCancel:()=>s(!1),children:(0,o.jsx)(S,{})}),(0,o.jsx)(N,{title:"Authenticate",open:i,handleCancel:()=>a(!1),children:(0,o.jsx)(Z,{})})]})};var L=n(50738),T=n(31764),A=n.n(T);let{Header:D}=s.Z,E=e=>{let{name:t="Your stream title",chatAvailable:n,chatDisabled:s}=e;return(0,o.jsxs)(D,{className:r()(["".concat(A().header)],"global-header"),children:[(0,o.jsxs)("div",{className:"".concat(A().logo),children:[(0,o.jsx)(L.C,{variant:"contrast"}),(0,o.jsx)("span",{className:"global-header-text",children:t})]}),n&&!s&&(0,o.jsx)(F,{}),!n&&!s&&(0,o.jsx)(i.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,o.jsx)(a.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})};var M=E},14761:function(e,t,n){"use strict";n.r(t),n.d(t,{Modal:function(){return d}});var o=n(85893),s=n(85402),i=n(26303),a=n(11382),l=n(67294),r=n(77011),c=n.n(r);let d=e=>{let{title:t,url:n,open:r,handleOk:d,handleCancel:h,afterClose:u,height:m,width:x,children:p}=e,[f,j]=(0,l.useState)(!!n),_=n&&(0,o.jsx)("iframe",{title:t,src:n,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,onLoad:()=>j(!1)});return(0,o.jsx)(s.Z,{title:t,open:r,onOk:d,onCancel:h,afterClose:u,bodyStyle:{padding:"0px",minHeight:m,height:null!=m?m:"100%"},width:x,zIndex:9999,footer:null,centered:!0,destroyOnClose:!0,children:(0,o.jsxs)(o.Fragment,{children:[f&&(0,o.jsx)(i.Z,{active:f,style:{padding:"10px"},paragraph:{rows:10}}),_&&(0,o.jsx)("div",{style:{display:f?"none":"inline"},children:_}),p&&(0,o.jsx)("div",{className:c().content,children:p}),f&&(0,o.jsx)(a.Z,{className:c().spinner,spinning:f,size:"large"})]})})};t.default=d,d.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0}},51513:function(e,t,n){"use strict";n.d(t,{R:function(){return c}});var o=n(85893),s=n(27049),i=n(24019),a=n(45938),l=n(88335),r=n.n(l);let c=e=>{let t,{streamName:n,customText:l,lastLive:c,notificationsEnabled:d,fediverseAccount:h,onNotifyClick:u,onFollowClick:m}=e;return t=l||(!l&&d&&h?(0,o.jsxs)("span",{children:["This stream is offline. You can"," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:u,children:"be notified"})," ","the next time ",n," goes live or"," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:m,children:"follow"})," ",h," on the Fediverse."]}):!l&&d?(0,o.jsxs)("span",{children:["This stream is offline."," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:u,children:"Be notified"})," ","the next time ",n," goes live."]}):!l&&h?(0,o.jsxs)("span",{children:["This stream is offline."," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:m,children:"Follow"})," ",h," on the Fediverse to see the next time ",n," goes live."]}):"This stream is offline. Check back soon!"),(0,o.jsx)("div",{className:r().outerContainer,children:(0,o.jsxs)("div",{className:r().innerContainer,children:[(0,o.jsx)("div",{className:r().header,children:n}),(0,o.jsx)(s.Z,{className:r().separator}),(0,o.jsx)("div",{className:r().bodyText,children:t}),c&&(0,o.jsxs)("div",{className:r().lastLiveDate,children:[(0,o.jsx)(i.Z,{className:r().clockIcon}),"Last live ".concat((0,a.Z)(new Date(c))," ago.")]})]})})}},69357:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var o=n(85893),s=n(45938),i=n(68730),a=n(67294),l=n(31326),r=n(37970),c=n.n(r);let d=e=>{let t,{online:n,lastConnectTime:r,lastDisconnectTime:d,viewerCount:h}=e,[,u]=(0,a.useState)(new Date);(0,a.useEffect)(()=>{let e=setInterval(()=>u(new Date),1e3);return()=>{clearInterval(e)}},[]);let m="";if(n&&r){let x=function(e){let t=(0,i.Z)({start:e,end:new Date});return t.days>1?"".concat(t.days," days ").concat(t.hours," hours"):t.hours>=1?"".concat(t.hours," hours ").concat(t.minutes," minutes"):"".concat(t.minutes," minutes ").concat(t.seconds," seconds")}(new Date(r));m=n?"Live for ".concat(x):"Offline",t=h>0&&(0,o.jsxs)("div",{className:c().right,children:[(0,o.jsx)("span",{children:(0,o.jsx)(l.Z,{})}),(0,o.jsx)("span",{children:" ".concat(h)})]})}else!n&&(m="Offline",d&&(t="Last live ".concat((0,s.Z)(new Date(d))," ago.")));return(0,o.jsxs)("div",{className:c().statusbar,children:[(0,o.jsx)("div",{children:m}),(0,o.jsx)("div",{children:t})]})};d.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},44486:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eG}});var o=n(85893),s=n(97183),i=n(4480),a=n(9008),l=n.n(a),r=n(67294),c=n(77466),d=n(84381),h=n(11382),u=n(94184),m=n.n(u),x=n(5152),p=n.n(x),f=n(72581),j=n(67917),_=n.n(j);let g=e=>{let{version:t}=e;return(0,o.jsxs)("div",{className:_().footer,children:[(0,o.jsxs)("span",{children:["Powered by ",(0,o.jsx)("a",{href:"https://owncast.online",children:t})]}),(0,o.jsxs)("span",{className:_().links,children:[(0,o.jsx)("a",{href:"https://owncast.online/docs",target:"_blank",rel:"noreferrer",children:"Documentation"}),(0,o.jsx)("a",{href:"https://owncast.online/help",target:"_blank",rel:"noreferrer",children:"Contribute"}),(0,o.jsx)("a",{href:"https://github.com/owncast/owncast",target:"_blank",rel:"noreferrer",children:"Source"})]})]})};var w=n(10808),v=n.n(w);let y=e=>{let{content:t}=e,n=(0,i.sJ)(c.hz),s=(0,i.sJ)(c.g1),{version:a}=s;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:v().pageContentContainer,children:(0,o.jsx)("div",{className:v().customPageContent,dangerouslySetInnerHTML:{__html:t}})}),n&&(0,o.jsx)(g,{version:a})]})};var b=n(17725),C=n.n(b),k=n(87412),N=n(12341),S=n.n(N);let Z=p()(()=>Promise.all([n.e(1272),n.e(8700),n.e(2852),n.e(4977),n.e(1496)]).then(n.bind(n,94977)).then(e=>e.ChatContainer),{loadableGenerated:{webpack:()=>[94977]}}),F=()=>{let e=(0,i.sJ)(c.db),t=(0,i.sJ)(c.pH);if(!e)return null;let{id:n,isModerator:s,displayName:a}=e;return(0,o.jsx)(k.ZP,{className:S().root,collapsedWidth:0,width:320,children:(0,o.jsx)(Z,{messages:t,usernameToHighlight:a,chatUserId:n,isModerator:s})})};var L=n(12270),T=n.n(L);let A=e=>{let{children:t}=e;return(0,o.jsx)("div",{className:"".concat(T().row),children:t})};var D=n(71577),E=n(13959),M=n.n(E);let I=e=>{let{action:t,primary:n=!0,externalActionSelected:s}=e,{title:i,description:a,icon:l,color:r}=t;return(0,o.jsxs)(D.Z,{type:n?"primary":"default",className:"".concat(M().button),onClick:()=>s(t),style:{backgroundColor:r},children:[l&&(0,o.jsx)("img",{src:l,className:"".concat(M().icon),alt:a}),i]})};var H=n(51513),z=n(34447);let B=e=>{let{onClick:t,props:n}=e;return(0,o.jsx)(D.Z,{...n,type:"primary",className:M().button,icon:(0,o.jsx)(z.Z,{}),onClick:t,children:"Follow"})};var O=n(71578);let J=e=>{let{onClick:t,text:n}=e;return(0,o.jsx)(D.Z,{type:"primary",className:"".concat(M().button),icon:(0,o.jsx)(O.Z,{}),onClick:t,children:n||"Notify"})};var P=n(53731),R=n(79216),U=n(74933),G=n.n(U);let V=e=>{let{src:t}=e;return(0,o.jsx)("div",{className:G().root,children:(0,o.jsx)("div",{className:G().container,children:(0,o.jsx)(R.Z,{src:t,alt:"Logo",className:G().image,rootClassName:G().image})})})};var Y=n(25675),q=n.n(Y),Q=n(573),W=n.n(Q);let K=e=>{let{links:t}=e;return(0,o.jsx)("div",{className:W().links,children:t.map(e=>(0,o.jsx)("a",{href:e.url,className:W().link,target:"_blank",rel:"noreferrer me",children:(0,o.jsx)(q(),{src:e.icon||"/img/platformlogos/default.svg",alt:e.platform,title:e.platform,className:W().link,width:"30",height:"30"})},e.platform))})};var X=n(47900),$=n.n(X);let ee=e=>{let{name:t,title:n,summary:s,logo:i,tags:a,links:l}=e;return(0,o.jsx)("div",{className:$().root,children:(0,o.jsxs)("div",{className:$().logoTitleSection,children:[(0,o.jsx)("div",{className:$().logo,children:(0,o.jsx)(V,{src:i})}),(0,o.jsxs)("div",{className:$().titleSection,children:[(0,o.jsx)("div",{className:m()($().title,$().row,"header-title"),children:t}),(0,o.jsx)("div",{className:m()($().subtitle,$().row,"header-subtitle"),children:(0,o.jsx)(P.Z,{children:n||s})}),(0,o.jsx)("div",{className:m()($().tagList,$().row),children:a.length>0&&a.map(e=>(0,o.jsxs)("span",{children:["#",e,"\xa0"]},e))}),(0,o.jsx)("div",{className:m()($().socialLinks,$().row),children:(0,o.jsx)(K,{links:l})})]})]})})};var et=n(69357),en=n(26303),eo=n(25968),es=n(6226),ei=n(3698),ea=n(24093),el=n(69833),er=n.n(el);let ec=e=>{let{follower:t}=e;return(0,o.jsx)("div",{className:er().follower,children:(0,o.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,o.jsxs)(eo.Z,{wrap:!1,children:[(0,o.jsx)(es.Z,{span:6,children:(0,o.jsx)(ea.C,{src:t.image,alt:"Avatar",className:er().avatar,children:(0,o.jsx)("img",{src:"/logo",alt:"Logo",className:er().placeholder})})}),(0,o.jsxs)(es.Z,{children:[(0,o.jsx)(eo.Z,{children:t.name}),(0,o.jsx)(eo.Z,{className:er().account,children:t.username})]})]})})})};var ed=n(21890),eh=n.n(ed);let eu=e=>{let{name:t}=e,[n,s]=(0,r.useState)([]),[i,a]=(0,r.useState)(0),[l,c]=(0,r.useState)(1),[d,h]=(0,r.useState)(!0),u=async()=>{try{let e=await fetch("".concat("/api/followers","?page=").concat(l)),t=await e.json(),{results:n,total:o}=t;s(n),a(o)}catch(i){console.error(i)}};(0,r.useEffect)(()=>{u()},[]),(0,r.useEffect)(()=>{u()},[l]),(0,r.useEffect)(()=>{h(!1)},[n]);let m=(0,o.jsxs)("div",{className:eh().noFollowers,children:[(0,o.jsx)("h2",{children:"Be the first follower!"}),(0,o.jsxs)("p",{children:["Owncast"!==t?t:"This server"," is a part of the"," ",(0,o.jsx)("a",{href:"https://owncast.online/join-fediverse",children:"Fediverse"}),", an interconnected network of independent users and servers."]}),(0,o.jsxs)("p",{children:["By following ","Owncast"!==t?t:"this server"," you'll be able to get updates from the stream, share it with others, and and show your appreciation when it goes live, all from your own Fediverse account."]}),(0,o.jsx)(B,{})]}),x=(0,o.jsx)(en.Z,{active:!0,paragraph:{rows:3}});return d?x:(null==n?void 0:n.length)?(0,o.jsxs)("div",{className:eh().followers,children:[(0,o.jsx)(eo.Z,{wrap:!0,gutter:[10,10],children:n.map(e=>(0,o.jsx)(es.Z,{children:(0,o.jsx)(ec,{follower:e},e.link)},e.link))}),(0,o.jsx)(ei.Z,{current:l,pageSize:24,total:Math.ceil(i/24)||1,onChange(e){c(e)},hideOnSinglePage:!0})]}):m};var em=n(14761),ex=n(66516),ep=n(38504),ef=n(49647),ej=n(60198),e_=n(89705),eg=n(97038),ew=n.n(eg);let ev="notify",ey="follow",eb=e=>{let{actions:t,externalActionSelected:n,notifyItemSelected:s,followItemSelected:i,showFollowItem:a,showNotifyItem:l}=e,r=e=>{if(e.key===ev){s();return}if(e.key===ey){i();return}let o=t.find(t=>t.url===e.key);n(o)},c=t.map(e=>({key:e.url,label:(0,o.jsxs)("span",{className:ew().item,children:[e.icon&&(0,o.jsx)("img",{className:ew().icon,src:e.icon,alt:e.title})," ",e.title]})}));a&&c.unshift({key:ey,label:(0,o.jsxs)("span",{className:ew().item,children:[(0,o.jsx)(ef.Z,{className:ew().icon})," Follow this stream"]})}),l&&c.unshift({key:ev,label:(0,o.jsxs)("span",{className:ew().item,children:[(0,o.jsx)(ej.Z,{className:ew().icon}),"Notify when live"]})});let d=(0,o.jsx)(ex.Z,{items:c,onClick:r});return(0,o.jsx)(ep.Z,{overlay:d,placement:"bottomRight",trigger:["click"],className:ew().menu,children:(0,o.jsx)("div",{className:ew().buttonWrap,children:(0,o.jsx)(D.Z,{type:"default",onClick:e=>e.preventDefault(),size:"large",icon:(0,o.jsx)(e_.Z,{size:6,style:{rotate:"90deg"}})})})})};var eC=n(26713),ek=n(14670),eN=n(69677),eS=n(66009),eZ=n.n(eS);let eF=e=>{let{handleClose:t,account:n,name:s}=e,[i,a]=(0,r.useState)(null),[l,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)(!1),[m,x]=(0,r.useState)(null),p=e=>{a(e),function(e){let t=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())}(e)?c(!0):c(!1)},f=()=>{window.open("https://owncast.online/join-fediverse","_blank")},j=async()=>{if(l){u(!0);try{let e=i.replace(/^@+/,""),n=await fetch("/api/remotefollow",{method:"POST",body:JSON.stringify({account:e})}),o=await n.json();if(o.redirectUrl&&(window.open(o.redirectUrl,"_blank"),t()),!o.success){x(o.message),u(!1);return}if(!o.redirectUrl){x("Unable to follow."),u(!1);return}}catch(s){x(s.message)}u(!1)}};return(0,o.jsxs)(eC.Z,{direction:"vertical",children:[(0,o.jsxs)("div",{className:eZ().header,children:["By following this stream you'll get notified on the Fediverse when it goes live. Now is a great time to",(0,o.jsx)("a",{href:"https://owncast.online/join-fediverse",target:"_blank",rel:"noreferrer",children:"learn about the Fediverse"}),"if it's new to you."]}),(0,o.jsxs)(h.Z,{spinning:d,children:[m&&(0,o.jsx)(ek.Z,{message:"Follow Error",description:m,type:"error",showIcon:!0}),(0,o.jsxs)("div",{className:eZ().account,children:[(0,o.jsx)("img",{src:"/logo",alt:"logo",className:eZ().logo}),(0,o.jsxs)("div",{className:eZ().username,children:[(0,o.jsx)("div",{className:eZ().name,children:s}),(0,o.jsx)("div",{children:n})]})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:eZ().instructions,children:"Enter your username @server to follow"}),(0,o.jsx)(eN.Z,{value:i,size:"large",onChange:e=>p(e.target.value),placeholder:"Your fediverse account @account@server",defaultValue:i}),(0,o.jsx)("div",{className:eZ().footer,children:"You'll be redirected to your Fediverse server and asked to confirm the action."})]}),(0,o.jsxs)(eC.Z,{className:eZ().buttons,children:[(0,o.jsx)(D.Z,{disabled:!l,type:"primary",onClick:j,children:"Follow"}),(0,o.jsx)(D.Z,{onClick:f,type:"primary",children:"Join the Fediverse"})]})]})]})},{Content:eL}=s.Z,eT=p()(()=>n.e(6160).then(n.bind(n,66160)).then(e=>e.BrowserNotifyModal),{loadableGenerated:{webpack:()=>[66160]}}),eA=p()(()=>n.e(7815).then(n.bind(n,17815)).then(e=>e.NotifyReminderPopup),{loadableGenerated:{webpack:()=>[17815]}}),eD=p()(()=>Promise.all([n.e(2544),n.e(7902),n.e(2239),n.e(7018)]).then(n.bind(n,8888)).then(e=>e.OwncastPlayer),{loadableGenerated:{webpack:()=>[8888]}}),eE=p()(()=>Promise.all([n.e(1272),n.e(8700),n.e(2852),n.e(4977),n.e(1496)]).then(n.bind(n,94977)).then(e=>e.ChatContainer),{loadableGenerated:{webpack:()=>[94977]}}),eM=e=>{let{name:t,streamTitle:n,summary:s,tags:i,socialHandles:a,extraPageContent:l}=e,r=(0,o.jsx)(y,{content:l}),c=(0,o.jsx)(eu,{name:t});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:C().lowerHalf,children:(0,o.jsx)(ee,{name:t,title:n,summary:s,tags:i,links:a,logo:"/logo"})}),(0,o.jsx)("div",{className:C().lowerSection,children:(0,o.jsx)(d.Z,{defaultActiveKey:"0",items:[{label:"About",key:"2",children:r},{label:"Followers",key:"3",children:c}]})})]})},eI=e=>{let{name:t,streamTitle:n,summary:s,tags:i,socialHandles:a,extraPageContent:l,messages:c,currentUser:h,showChat:u,actions:x,setExternalActionToDisplay:p,setShowNotifyPopup:f,setShowFollowModal:j}=e;if(!h)return null;let _=(0,r.useRef)(),{id:g,displayName:w}=h,v=u&&(0,o.jsx)(eE,{messages:c,usernameToHighlight:w,chatUserId:g,isModerator:!1}),b=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ee,{name:t,title:n,summary:s,tags:i,links:a,logo:"/logo"}),(0,o.jsx)(y,{content:l})]}),k=(0,o.jsx)(eu,{name:t}),N="".concat(function(e){let[t,n]=(0,r.useState)(0),o=()=>{if(!e.current)return;let t=e.current.getBoundingClientRect().top,{innerHeight:o}=window;n(o-t)};return(0,r.useEffect)(()=>(o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),t}(_),"px"),S=(e,t)=>(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"start"},children:[(0,o.jsx)(t,{...e,style:{width:"85%"}}),(0,o.jsx)(eb,{showFollowItem:!0,showNotifyItem:!0,actions:x,externalActionSelected:p,notifyItemSelected:()=>f(!0),followItemSelected:()=>j(!0)})]});return(0,o.jsx)("div",{className:m()(C().lowerSectionMobile),ref:_,style:{height:N},children:(0,o.jsx)(d.Z,{defaultActiveKey:"0",items:[u&&{label:"Chat",key:"0",children:v},{label:"About",key:"2",children:b},{label:"Followers",key:"3",children:k}],renderTabBar:S})})},eH=e=>{let{externalActionToDisplay:t,setExternalActionToDisplay:n}=e,{title:s,description:i,url:a}=t;return(0,o.jsx)(em.Modal,{title:i||s,url:a,open:!!t,height:"80vh",handleCancel:()=>n(null)})},ez=()=>{let e=(0,i.sJ)(c.Q),t=(0,i.sJ)(c.g1),n=(0,i.sJ)(c.pT),s=(0,i.sJ)(c.di),a=(0,i.sJ)(c.db),[l,d]=(0,i.FV)(c.hz),u=(0,i.sJ)(c.j$),m=(0,i.sJ)(c.YW),{viewerCount:x,lastConnectTime:p,lastDisconnectTime:j,streamTitle:_}=(0,i.sJ)(c.RI),{extraPageContent:g,version:w,name:v,summary:y,socialHandles:b,tags:k,externalActions:N,offlineMessage:S,chatDisabled:Z,federation:L,notifications:T}=t,[D,E]=(0,r.useState)(!1),[M,z]=(0,r.useState)(!1),[O,P]=(0,r.useState)(!1),{account:R}=L,{browser:U}=T,{enabled:G}=U,[V,Y]=(0,r.useState)(null),q=e=>{let{openExternally:t,url:n}=e;t?window.open(n,"_blank"):Y(e)},Q=N.map(e=>(0,o.jsx)(I,{action:e,externalActionSelected:q},e.url)),W=()=>{let e=parseInt((0,f.$o)(f.dA.userVisitCount),10);Number.isNaN(e)&&(e=0),(0,f.qQ)(f.dA.userVisitCount,e+1),e>2&&!(0,f.$o)(f.dA.hasDisplayedNotificationModal)&&E(!0)},K=()=>{z(!1),E(!1),(0,f.qQ)(f.dA.hasDisplayedNotificationModal,!0)},X=()=>{let e=window.innerWidth;void 0===l&&(e<=768?d(!0):d(!1)),!l&&e<=768&&d(!0),l&&e>768&&d(!1)};(0,r.useEffect)(()=>(W(),X(),window.addEventListener("resize",X),()=>{window.removeEventListener("resize",X)}),[]);let $=!Z&&s&&n;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:C().main,children:[(0,o.jsx)(h.Z,{wrapperClassName:C().loadingSpinner,size:"large",spinning:e.appLoading,children:(0,o.jsxs)(eL,{className:C().root,children:[(0,o.jsxs)("div",{className:C().mainSection,children:[(0,o.jsxs)("div",{className:C().topSection,children:[m&&(0,o.jsx)(eD,{source:"/hls/stream.m3u8",online:m}),!m&&!e.appLoading&&(0,o.jsx)(H.R,{streamName:v,customText:S,notificationsEnabled:G,fediverseAccount:R,lastLive:j,onNotifyClick:()=>z(!0),onFollowClick:()=>P(!0)}),m&&(0,o.jsx)(et.X,{online:m,lastConnectTime:p,lastDisconnectTime:j,viewerCount:x})]}),(0,o.jsx)("div",{className:C().midSection,children:(0,o.jsxs)("div",{className:C().buttonsLogoTitleSection,children:[!l&&(0,o.jsxs)(A,{children:[Q,(0,o.jsx)(B,{size:"small",onClick:()=>P(!0)}),(0,o.jsx)(eA,{open:D,notificationClicked:()=>z(!0),notificationClosed:()=>K(),children:(0,o.jsx)(J,{onClick:()=>z(!0)})})]}),(0,o.jsx)(em.Modal,{title:"Notify",open:M,afterClose:()=>K(),handleCancel:()=>K(),children:(0,o.jsx)(eT,{})})]})}),l?(0,o.jsx)(eI,{name:v,streamTitle:_,summary:y,tags:k,socialHandles:b,extraPageContent:g,messages:u,currentUser:a,showChat:$,actions:N,setExternalActionToDisplay:q,setShowNotifyPopup:z,setShowFollowModal:P}):(0,o.jsx)(eM,{name:v,streamTitle:_,summary:y,tags:k,socialHandles:b,extraPageContent:g})]}),$&&!l&&(0,o.jsx)(F,{})]})}),!l&&!1]}),V&&(0,o.jsx)(eH,{externalActionToDisplay:V,setExternalActionToDisplay:Y}),(0,o.jsx)(em.Modal,{title:"Follow ".concat(v),open:O,handleCancel:()=>P(!1),width:"550px",children:(0,o.jsx)(eF,{account:R,name:v,handleClose:()=>P(!1)})})]})};var eB=n(37527),eO=n(85402);let eJ=e=>{let{title:t,message:n}=e;return(0,o.jsx)(eO.Z,{title:t,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,o.jsx)("p",{style:{fontSize:"1.3rem"},children:n})})},eP=()=>{let e=(0,i.sJ)(c.j$),t=(0,i.sJ)(c.RI),n=!1,o="",s=()=>{n=!0,o=window.document.title},a=()=>{n=!1,window.document.title=o},l=()=>{window.addEventListener("blur",s),window.addEventListener("focus",a)};return(0,r.useEffect)(()=>(o=window.document.title,l(),()=>{window.removeEventListener("focus",a),window.removeEventListener("blur",s)}),[]),(0,r.useEffect)(()=>{let{online:e}=t;n&&e&&(window.document.title="\uD83D\uDCAC :: ".concat(o))},[e]),(0,r.useEffect)(()=>{if(!n)return;let{online:e}=t;e?window.document.title=" \uD83D\uDFE2 :: ".concat(o):e||(window.document.title=" \uD83D\uDD34 :: ".concat(o))},[c.RI]),null},eR=()=>(0,o.jsx)("script",{id:"server-side-hydration",dangerouslySetInnerHTML:{__html:"\n window.configHydration = {{.ServerConfigJSON}};\n window.statusHydration = {{.StatusJSON}};\n "}}),eU=()=>{let[e]=(0,i.FV)(c.hz),t=(0,i.sJ)(c.g1),{name:n,title:a,customStyles:d,version:h}=t,u=(0,i.sJ)(c.di),m=(0,i.sJ)(c.ap),x=(0,r.useRef)(null),{chatDisabled:p}=t;return(0,r.useEffect)(()=>{!function(e){let t=e=>{let t=e.getAttribute("rel");e.setAttribute("rel","".concat(t," noopener noreferrer"))},n=function(e){for(let n of e)for(let o of n.addedNodes)o instanceof HTMLElement&&"a"===o.tagName.toLowerCase()&&t(o)};e.querySelectorAll("a").forEach(e=>t(e));let o=new MutationObserver(n);o.observe(e,{attributes:!1,childList:!0,subtree:!0})}(x.current)},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(l(),{children:[(0,o.jsx)(eR,{}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"57x57",href:"/img/favicon/apple-icon-57x57.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"60x60",href:"/img/favicon/apple-icon-60x60.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"72x72",href:"/img/favicon/apple-icon-72x72.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"76x76",href:"/img/favicon/apple-icon-76x76.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"114x114",href:"/img/favicon/apple-icon-114x114.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/img/favicon/apple-icon-120x120.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"144x144",href:"/img/favicon/apple-icon-144x144.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/img/favicon/apple-icon-152x152.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/favicon/apple-icon-180x180.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/img/favicon/android-icon-192x192.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/img/favicon/favicon-96x96.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/favicon/favicon-16x16.png"}),(0,o.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,o.jsx)("link",{href:"/api/auth/provider/indieauth"}),(0,o.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,o.jsx)("meta",{name:"msapplication-TileImage",content:"/img/favicon/ms-icon-144x144.png"}),(0,o.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,o.jsx)("style",{children:d}),(0,o.jsx)("base",{target:"_blank"})]}),(0,o.jsxs)(l(),{children:[n?(0,o.jsx)("title",{children:n}):(0,o.jsx)("title",{children:"{{.Name}}"}),(0,o.jsx)("meta",{name:"description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"og:title",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"og:site_name",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"og:url",content:"{{.RequestedURL}}"}),(0,o.jsx)("meta",{property:"og:description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"og:type",content:"video.other"}),(0,o.jsx)("meta",{property:"video:tag",content:"{{.TagsString}}"}),(0,o.jsx)("meta",{property:"og:image",content:"{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:url",content:"{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:alt",content:"{{.Image}}"}),(0,o.jsx)("meta",{property:"og:video",content:"{{.RequestedURL}}/embed/video"}),(0,o.jsx)("meta",{property:"og:video:secure_url",content:"{{.RequestedURL}}/embed/video"}),(0,o.jsx)("meta",{property:"og:video:height",content:"315"}),(0,o.jsx)("meta",{property:"og:video:width",content:"560"}),(0,o.jsx)("meta",{property:"og:video:type",content:"text/html"}),(0,o.jsx)("meta",{property:"og:video:actor",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"twitter:title",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"twitter:url",content:"{{.RequestedURL}}"}),(0,o.jsx)("meta",{property:"twitter:description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"twitter:image",content:"{{.Image}}"}),(0,o.jsx)("meta",{property:"twitter:card",content:"player"}),(0,o.jsx)("meta",{property:"twitter:player",content:"{{.RequestedURL}}/embed/video"}),(0,o.jsx)("meta",{property:"twitter:player:width",content:"560"}),(0,o.jsx)("meta",{property:"twitter:player:height",content:"315"})]}),(0,o.jsx)(c.me,{}),(0,o.jsx)(eP,{}),(0,o.jsxs)(s.Z,{ref:x,style:{minHeight:"100vh"},children:[(0,o.jsx)(eB.h,{name:a||n,chatAvailable:u,chatDisabled:p}),(0,o.jsx)(ez,{}),m&&(0,o.jsx)(eJ,{title:m.title,message:m.message}),!e&&(0,o.jsx)(g,{version:h})]})]})};function eG(){return(0,o.jsx)(eU,{})}},13959:function(e){e.exports={button:"ActionButton_button__z5Z2c",icon:"ActionButton_icon__EPp7Q"}},97038:function(e){e.exports={item:"ActionButtonMenu_item__OJQdr",buttonWrap:"ActionButtonMenu_buttonWrap__WQ9kt",icon:"ActionButtonMenu_icon__edY1D",menu:"ActionButtonMenu_menu__GChDk"}},12270:function(e){e.exports={row:"ActionButtonRow_row__SiEGe"}},47900:function(e){e.exports={root:"ContentHeader_root__HaUG0",row:"ContentHeader_row__9Q8gH",logoTitleSection:"ContentHeader_logoTitleSection__Z8pUc",logo:"ContentHeader_logo__wo_HN",titleSection:"ContentHeader_titleSection___6Y15",title:"ContentHeader_title__E_DsI",subtitle:"ContentHeader_subtitle__n1Wew",tagList:"ContentHeader_tagList__rx3jY"}},79252:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},66009:function(e){e.exports={header:"FollowModal_header__la1ji",buttons:"FollowModal_buttons__tt4Mc",instructions:"FollowModal_instructions__HiKFF",footer:"FollowModal_footer__AjucH",account:"FollowModal_account__cmHkm",logo:"FollowModal_logo__Ew8xK",username:"FollowModal_username__A_OTw",name:"FollowModal_name__Sf_TP"}},17725:function(e){e.exports={root:"Content_root__h1mNK",mainSection:"Content_mainSection__Gk78Y",topSection:"Content_topSection__JIZi0",lowerSection:"Content_lowerSection__BZHYI",lowerSectionMobile:"Content_lowerSectionMobile__hRr0_",leftCol:"Content_leftCol__U2TDq",loadingSpinner:"Content_loadingSpinner__mDlYC",main:"Content_main__XVf63"}},10808:function(e){e.exports={pageContentContainer:"CustomPageContent_pageContentContainer__EG4tU",customPageContent:"CustomPageContent_customPageContent__Mr981",summary:"CustomPageContent_summary___Zgps"}},67917:function(e){e.exports={footer:"Footer_footer__mPuvf",links:"Footer_links__7bBxV"}},31764:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},74933:function(e){e.exports={root:"Logo_root__jKiJC",container:"Logo_container__A4UYT",image:"Logo_image__Ahkom"}},77011:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}},88335:function(e){e.exports={outerContainer:"OfflineBanner_outerContainer__3AbsB",innerContainer:"OfflineBanner_innerContainer__zTm13",bodyText:"OfflineBanner_bodyText__nNNy0",separator:"OfflineBanner_separator___j_Ss",lastLiveDate:"OfflineBanner_lastLiveDate___UZdO",clockIcon:"OfflineBanner_clockIcon__s0DB_",header:"OfflineBanner_header__Vu20o",footer:"OfflineBanner_footer__o3Zl5",actionLink:"OfflineBanner_actionLink__b4Mwa"}},12341:function(e){e.exports={root:"Sidebar_root__8HE0A"}},573:function(e){e.exports={link:"SocialLinks_link___CcSm",links:"SocialLinks_links__gOAb7"}},37970:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},21890:function(e){e.exports={followers:"FollowerCollection_followers__e_EUS",noFollowers:"FollowerCollection_noFollowers__UaCVW"}},69833:function(e){e.exports={follower:"SingleFollower_follower__EyBDI",avatar:"SingleFollower_avatar__V9jHG",account:"SingleFollower_account__Z66vo",placeholder:"SingleFollower_placeholder__CgsfJ"}}},function(e){e.O(0,[8939,3903,4267,4381,5938,6395,5360,250,2858,8980,7466,9774,2888,179],function(){return e(e.s=48312)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/index-ed5c25df409d7c51.js b/static/web/_next/static/chunks/pages/index-ed5c25df409d7c51.js deleted file mode 100644 index 62c77de96..000000000 --- a/static/web/_next/static/chunks/pages/index-ed5c25df409d7c51.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(44486)}])},37527:function(e,t,n){"use strict";n.d(t,{h:function(){return A},Z:function(){return D}});var o=n(85893),s=n(97183),i=n(94199),a=n(20550),l=n(66516),r=n(38504),c=n(71577),d=n(26713),h=n(86548),m=n(94149),u=n(38545),x=n(87547),p=n(39398),f=n(4480),j=n(67294),_=n(49218),g=n(5152),w=n.n(g),v=n(77466),y=n(79252),b=n.n(y);let C=w()(()=>n.e(4761).then(n.bind(n,14761)).then(e=>e.Modal),{loadableGenerated:{webpack:()=>[14761]}}),k=w()(()=>Promise.all([n.e(8939),n.e(9096)]).then(n.bind(n,59096)).then(e=>e.NameChangeModal),{loadableGenerated:{webpack:()=>[59096]}}),N=w()(()=>Promise.all([n.e(4381),n.e(5535)]).then(n.bind(n,65535)).then(e=>e.AuthModal),{loadableGenerated:{webpack:()=>[65535]}}),S=e=>{let{username:t}=e,[n,s]=(0,j.useState)(!1),[i,a]=(0,j.useState)(!1),[g,w]=(0,f.FV)(v.ZA),y=(0,f.sJ)(v.Q),S=()=>{w(!g)},Z=()=>{s(!0)};(0,_.y1)("c",S,{enableOnContentEditable:!1},[g]);let F=(0,f.sJ)(v.db);if(!F)return null;let{displayName:L}=F,T=(0,o.jsxs)(l.Z,{children:[(0,o.jsx)(l.Z.Item,{icon:(0,o.jsx)(h.Z,{}),onClick:()=>Z(),children:"Change name"},"0"),(0,o.jsx)(l.Z.Item,{icon:(0,o.jsx)(m.Z,{}),onClick:()=>a(!0),children:"Authenticate"},"1"),y.chatAvailable&&(0,o.jsx)(l.Z.Item,{icon:(0,o.jsx)(u.Z,{}),onClick:()=>S(),children:"Toggle chat"},"3")]});return(0,o.jsxs)("div",{className:"".concat(b().root),children:[(0,o.jsx)(r.Z,{overlay:T,trigger:["click"],children:(0,o.jsx)(c.Z,{type:"primary",icon:(0,o.jsx)(x.Z,{style:{marginRight:".5rem"}}),children:(0,o.jsxs)(d.Z,{children:[t||L,(0,o.jsx)(p.Z,{})]})})}),(0,o.jsx)(C,{title:"Change Chat Display Name",open:n,handleCancel:()=>s(!1),children:(0,o.jsx)(k,{})}),(0,o.jsx)(C,{title:"Authenticate",open:i,handleCancel:()=>a(!1),children:(0,o.jsx)(N,{})})]})};var Z=n(50738),F=n(31764),L=n.n(F);let{Header:T}=s.Z,A=e=>{let{name:t="Your stream title",chatAvailable:n,chatDisabled:s}=e;return(0,o.jsxs)(T,{className:"".concat(L().header),children:[(0,o.jsxs)("div",{className:"".concat(L().logo),children:[(0,o.jsx)(Z.C,{variant:"contrast"}),(0,o.jsx)("span",{children:t})]}),n&&!s&&(0,o.jsx)(S,{}),!n&&!s&&(0,o.jsx)(i.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,o.jsx)(a.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})};var D=A},14761:function(e,t,n){"use strict";n.r(t),n.d(t,{Modal:function(){return d}});var o=n(85893),s=n(85402),i=n(26303),a=n(11382),l=n(67294),r=n(77011),c=n.n(r);let d=e=>{let{title:t,url:n,open:r,handleOk:d,handleCancel:h,afterClose:m,height:u,width:x,children:p}=e,[f,j]=(0,l.useState)(!!n),_=n&&(0,o.jsx)("iframe",{title:t,src:n,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,onLoad:()=>j(!1)});return(0,o.jsx)(s.Z,{title:t,open:r,onOk:d,onCancel:h,afterClose:m,bodyStyle:{padding:"0px",minHeight:u,height:null!=u?u:"100%"},width:x,zIndex:9999,footer:null,centered:!0,destroyOnClose:!0,children:(0,o.jsxs)(o.Fragment,{children:[f&&(0,o.jsx)(i.Z,{active:f,style:{padding:"10px"},paragraph:{rows:10}}),_&&(0,o.jsx)("div",{style:{display:f?"none":"inline"},children:_}),p&&(0,o.jsx)("div",{className:c().content,children:p}),f&&(0,o.jsx)(a.Z,{className:c().spinner,spinning:f,size:"large"})]})})};t.default=d,d.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0}},51513:function(e,t,n){"use strict";n.d(t,{R:function(){return c}});var o=n(85893),s=n(27049),i=n(24019),a=n(45938),l=n(88335),r=n.n(l);let c=e=>{let t,{streamName:n,customText:l,lastLive:c,notificationsEnabled:d,fediverseAccount:h,onNotifyClick:m,onFollowClick:u}=e;return t=l||(!l&&d&&h?(0,o.jsxs)("span",{children:["This stream is offline. You can"," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:m,children:"be notified"})," ","the next time ",n," goes live or"," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:u,children:"follow"})," ",h," on the Fediverse."]}):!l&&d?(0,o.jsxs)("span",{children:["This stream is offline."," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:m,children:"Be notified"})," ","the next time ",n," goes live."]}):!l&&h?(0,o.jsxs)("span",{children:["This stream is offline."," ",(0,o.jsx)("span",{role:"link",tabIndex:0,className:r().actionLink,onClick:u,children:"Follow"})," ",h," on the Fediverse to see the next time ",n," goes live."]}):"This stream is offline. Check back soon!"),(0,o.jsx)("div",{className:r().outerContainer,children:(0,o.jsxs)("div",{className:r().innerContainer,children:[(0,o.jsx)("div",{className:r().header,children:n}),(0,o.jsx)(s.Z,{className:r().separator}),(0,o.jsx)("div",{className:r().bodyText,children:t}),c&&(0,o.jsxs)("div",{className:r().lastLiveDate,children:[(0,o.jsx)(i.Z,{className:r().clockIcon}),"Last live ".concat((0,a.Z)(new Date(c))," ago.")]})]})})}},69357:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var o=n(85893),s=n(45938),i=n(68730),a=n(67294),l=n(31326),r=n(37970),c=n.n(r);let d=e=>{let t,{online:n,lastConnectTime:r,lastDisconnectTime:d,viewerCount:h}=e,[,m]=(0,a.useState)(new Date);(0,a.useEffect)(()=>{let e=setInterval(()=>m(new Date),1e3);return()=>{clearInterval(e)}},[]);let u="";if(n&&r){let x=function(e){let t=(0,i.Z)({start:e,end:new Date});return t.days>1?"".concat(t.days," days ").concat(t.hours," hours"):t.hours>=1?"".concat(t.hours," hours ").concat(t.minutes," minutes"):"".concat(t.minutes," minutes ").concat(t.seconds," seconds")}(new Date(r));u=n?"Live for ".concat(x):"Offline",t=h>0&&(0,o.jsxs)("div",{className:c().right,children:[(0,o.jsx)("span",{children:(0,o.jsx)(l.Z,{})}),(0,o.jsx)("span",{children:" ".concat(h)})]})}else!n&&(u="Offline",d&&(t="Last live ".concat((0,s.Z)(new Date(d))," ago.")));return(0,o.jsxs)("div",{className:c().statusbar,children:[(0,o.jsx)("div",{children:u}),(0,o.jsx)("div",{children:t})]})};d.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},44486:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eG}});var o=n(85893),s=n(97183),i=n(4480),a=n(9008),l=n.n(a),r=n(67294),c=n(77466),d=n(84381),h=n(11382),m=n(94184),u=n.n(m),x=n(5152),p=n.n(x),f=n(72581),j=n(67917),_=n.n(j);let g=e=>{let{version:t}=e;return(0,o.jsxs)("div",{className:_().footer,children:[(0,o.jsxs)("span",{children:["Powered by ",(0,o.jsx)("a",{href:"https://owncast.online",children:t})]}),(0,o.jsxs)("span",{className:_().links,children:[(0,o.jsx)("a",{href:"https://owncast.online/docs",target:"_blank",rel:"noreferrer",children:"Documentation"}),(0,o.jsx)("a",{href:"https://owncast.online/help",target:"_blank",rel:"noreferrer",children:"Contribute"}),(0,o.jsx)("a",{href:"https://github.com/owncast/owncast",target:"_blank",rel:"noreferrer",children:"Source"})]})]})};var w=n(10808),v=n.n(w);let y=e=>{let{content:t}=e,n=(0,i.sJ)(c.hz),s=(0,i.sJ)(c.g1),{version:a}=s;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:v().pageContentContainer,children:(0,o.jsx)("div",{className:v().customPageContent,dangerouslySetInnerHTML:{__html:t}})}),n&&(0,o.jsx)(g,{version:a})]})};var b=n(17725),C=n.n(b),k=n(87412),N=n(12341),S=n.n(N);let Z=p()(()=>Promise.all([n.e(1272),n.e(8700),n.e(2852),n.e(4977),n.e(1496)]).then(n.bind(n,94977)).then(e=>e.ChatContainer),{loadableGenerated:{webpack:()=>[94977]}}),F=()=>{let e=(0,i.sJ)(c.db),t=(0,i.sJ)(c.pH);if(!e)return null;let{id:n,isModerator:s,displayName:a}=e;return(0,o.jsx)(k.ZP,{className:S().root,collapsedWidth:0,width:320,children:(0,o.jsx)(Z,{messages:t,usernameToHighlight:a,chatUserId:n,isModerator:s})})};var L=n(12270),T=n.n(L);let A=e=>{let{children:t}=e;return(0,o.jsx)("div",{className:"".concat(T().row),children:t})};var D=n(71577),E=n(13959),M=n.n(E);let I=e=>{let{action:t,primary:n=!0,externalActionSelected:s}=e,{title:i,description:a,icon:l,color:r}=t;return(0,o.jsxs)(D.Z,{type:n?"primary":"default",className:"".concat(M().button),onClick:()=>s(t),style:{backgroundColor:r},children:[l&&(0,o.jsx)("img",{src:l,className:"".concat(M().icon),alt:a}),i]})};var H=n(51513),z=n(34447);let B=e=>{let{onClick:t,props:n}=e;return(0,o.jsx)(D.Z,{...n,type:"primary",className:M().button,icon:(0,o.jsx)(z.Z,{}),onClick:t,children:"Follow"})};var O=n(71578);let J=e=>{let{onClick:t,text:n}=e;return(0,o.jsx)(D.Z,{type:"primary",className:"".concat(M().button),icon:(0,o.jsx)(O.Z,{}),onClick:t,children:n||"Notify"})};var P=n(53731),R=n(79216),U=n(74933),G=n.n(U);let V=e=>{let{src:t}=e;return(0,o.jsx)("div",{className:G().root,children:(0,o.jsx)("div",{className:G().container,children:(0,o.jsx)(R.Z,{src:t,alt:"Logo",className:G().image,rootClassName:G().image})})})};var Y=n(25675),q=n.n(Y),Q=n(573),W=n.n(Q);let K=e=>{let{links:t}=e;return(0,o.jsx)("div",{className:W().links,children:t.map(e=>(0,o.jsx)("a",{href:e.url,className:W().link,target:"_blank",rel:"noreferrer me",children:(0,o.jsx)(q(),{src:e.icon||"/img/platformlogos/default.svg",alt:e.platform,title:e.platform,className:W().link,width:"30",height:"30"})},e.platform))})};var X=n(47900),$=n.n(X);let ee=e=>{let{name:t,title:n,summary:s,logo:i,tags:a,links:l}=e;return(0,o.jsx)("div",{className:$().root,children:(0,o.jsxs)("div",{className:$().logoTitleSection,children:[(0,o.jsx)("div",{className:$().logo,children:(0,o.jsx)(V,{src:i})}),(0,o.jsxs)("div",{className:$().titleSection,children:[(0,o.jsx)("div",{className:u()($().title,$().row),children:t}),(0,o.jsx)("div",{className:u()($().subtitle,$().row),children:(0,o.jsx)(P.Z,{children:n||s})}),(0,o.jsx)("div",{className:u()($().tagList,$().row),children:a.length>0&&a.map(e=>(0,o.jsxs)("span",{children:["#",e,"\xa0"]},e))}),(0,o.jsx)("div",{className:u()($().socialLinks,$().row),children:(0,o.jsx)(K,{links:l})})]})]})})};var et=n(69357),en=n(26303),eo=n(25968),es=n(6226),ei=n(3698),ea=n(24093),el=n(69833),er=n.n(el);let ec=e=>{let{follower:t}=e;return(0,o.jsx)("div",{className:er().follower,children:(0,o.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,o.jsxs)(eo.Z,{wrap:!1,children:[(0,o.jsx)(es.Z,{span:6,children:(0,o.jsx)(ea.C,{src:t.image,alt:"Avatar",className:er().avatar,children:(0,o.jsx)("img",{src:"/logo",alt:"Logo",className:er().placeholder})})}),(0,o.jsxs)(es.Z,{children:[(0,o.jsx)(eo.Z,{children:t.name}),(0,o.jsx)(eo.Z,{className:er().account,children:t.username})]})]})})})};var ed=n(21890),eh=n.n(ed);let em=e=>{let{name:t}=e,[n,s]=(0,r.useState)([]),[i,a]=(0,r.useState)(0),[l,c]=(0,r.useState)(1),[d,h]=(0,r.useState)(!0),m=async()=>{try{let e=await fetch("".concat("/api/followers","?page=").concat(l)),t=await e.json(),{results:n,total:o}=t;s(n),a(o)}catch(i){console.error(i)}};(0,r.useEffect)(()=>{m()},[]),(0,r.useEffect)(()=>{m()},[l]),(0,r.useEffect)(()=>{h(!1)},[n]);let u=(0,o.jsxs)("div",{className:eh().noFollowers,children:[(0,o.jsx)("h2",{children:"Be the first follower!"}),(0,o.jsxs)("p",{children:["Owncast"!==t?t:"This server"," is a part of the"," ",(0,o.jsx)("a",{href:"https://owncast.online/join-fediverse",children:"Fediverse"}),", an interconnected network of independent users and servers."]}),(0,o.jsxs)("p",{children:["By following ","Owncast"!==t?t:"this server"," you'll be able to get updates from the stream, share it with others, and and show your appreciation when it goes live, all from your own Fediverse account."]}),(0,o.jsx)(B,{})]}),x=(0,o.jsx)(en.Z,{active:!0,paragraph:{rows:3}});return d?x:(null==n?void 0:n.length)?(0,o.jsxs)("div",{className:eh().followers,children:[(0,o.jsx)(eo.Z,{wrap:!0,gutter:[10,10],children:n.map(e=>(0,o.jsx)(es.Z,{children:(0,o.jsx)(ec,{follower:e},e.link)},e.link))}),(0,o.jsx)(ei.Z,{current:l,pageSize:24,total:Math.ceil(i/24)||1,onChange(e){c(e)},hideOnSinglePage:!0})]}):u};var eu=n(14761),ex=n(66516),ep=n(38504),ef=n(49647),ej=n(60198),e_=n(89705),eg=n(97038),ew=n.n(eg);let ev="notify",ey="follow",eb=e=>{let{actions:t,externalActionSelected:n,notifyItemSelected:s,followItemSelected:i,showFollowItem:a,showNotifyItem:l}=e,r=e=>{if(e.key===ev){s();return}if(e.key===ey){i();return}let o=t.find(t=>t.url===e.key);n(o)},c=t.map(e=>({key:e.url,label:(0,o.jsxs)("span",{className:ew().item,children:[e.icon&&(0,o.jsx)("img",{className:ew().icon,src:e.icon,alt:e.title})," ",e.title]})}));a&&c.unshift({key:ey,label:(0,o.jsxs)("span",{className:ew().item,children:[(0,o.jsx)(ef.Z,{className:ew().icon})," Follow this stream"]})}),l&&c.unshift({key:ev,label:(0,o.jsxs)("span",{className:ew().item,children:[(0,o.jsx)(ej.Z,{className:ew().icon}),"Notify when live"]})});let d=(0,o.jsx)(ex.Z,{items:c,onClick:r});return(0,o.jsx)(ep.Z,{overlay:d,placement:"bottomRight",trigger:["click"],className:ew().menu,children:(0,o.jsx)("div",{className:ew().buttonWrap,children:(0,o.jsx)(D.Z,{type:"default",onClick:e=>e.preventDefault(),size:"large",icon:(0,o.jsx)(e_.Z,{size:6,style:{rotate:"90deg"}})})})})};var eC=n(26713),ek=n(14670),eN=n(69677),eS=n(66009),eZ=n.n(eS);let eF=e=>{let{handleClose:t,account:n,name:s}=e,[i,a]=(0,r.useState)(null),[l,c]=(0,r.useState)(!1),[d,m]=(0,r.useState)(!1),[u,x]=(0,r.useState)(null),p=e=>{a(e),function(e){let t=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())}(e)?c(!0):c(!1)},f=()=>{window.open("https://owncast.online/join-fediverse","_blank")},j=async()=>{if(l){m(!0);try{let e=i.replace(/^@+/,""),n=await fetch("/api/remotefollow",{method:"POST",body:JSON.stringify({account:e})}),o=await n.json();if(o.redirectUrl&&(window.open(o.redirectUrl,"_blank"),t()),!o.success){x(o.message),m(!1);return}if(!o.redirectUrl){x("Unable to follow."),m(!1);return}}catch(s){x(s.message)}m(!1)}};return(0,o.jsxs)(eC.Z,{direction:"vertical",children:[(0,o.jsxs)("div",{className:eZ().header,children:["By following this stream you'll get notified on the Fediverse when it goes live. Now is a great time to",(0,o.jsx)("a",{href:"https://owncast.online/join-fediverse",target:"_blank",rel:"noreferrer",children:"learn about the Fediverse"}),"if it's new to you."]}),(0,o.jsxs)(h.Z,{spinning:d,children:[u&&(0,o.jsx)(ek.Z,{message:"Follow Error",description:u,type:"error",showIcon:!0}),(0,o.jsxs)("div",{className:eZ().account,children:[(0,o.jsx)("img",{src:"/logo",alt:"logo",className:eZ().logo}),(0,o.jsxs)("div",{className:eZ().username,children:[(0,o.jsx)("div",{className:eZ().name,children:s}),(0,o.jsx)("div",{children:n})]})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:eZ().instructions,children:"Enter your username @server to follow"}),(0,o.jsx)(eN.Z,{value:i,size:"large",onChange:e=>p(e.target.value),placeholder:"Your fediverse account @account@server",defaultValue:i}),(0,o.jsx)("div",{className:eZ().footer,children:"You'll be redirected to your Fediverse server and asked to confirm the action."})]}),(0,o.jsxs)(eC.Z,{className:eZ().buttons,children:[(0,o.jsx)(D.Z,{disabled:!l,type:"primary",onClick:j,children:"Follow"}),(0,o.jsx)(D.Z,{onClick:f,type:"primary",children:"Join the Fediverse"})]})]})]})},{Content:eL}=s.Z,eT=p()(()=>n.e(6160).then(n.bind(n,66160)).then(e=>e.BrowserNotifyModal),{loadableGenerated:{webpack:()=>[66160]}}),eA=p()(()=>n.e(7815).then(n.bind(n,17815)).then(e=>e.NotifyReminderPopup),{loadableGenerated:{webpack:()=>[17815]}}),eD=p()(()=>Promise.all([n.e(2544),n.e(7902),n.e(2239),n.e(7018)]).then(n.bind(n,8888)).then(e=>e.OwncastPlayer),{loadableGenerated:{webpack:()=>[8888]}}),eE=p()(()=>Promise.all([n.e(1272),n.e(8700),n.e(2852),n.e(4977),n.e(1496)]).then(n.bind(n,94977)).then(e=>e.ChatContainer),{loadableGenerated:{webpack:()=>[94977]}}),eM=e=>{let{name:t,streamTitle:n,summary:s,tags:i,socialHandles:a,extraPageContent:l}=e,r=(0,o.jsx)(y,{content:l}),c=(0,o.jsx)(em,{name:t});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:C().lowerHalf,children:(0,o.jsx)(ee,{name:t,title:n,summary:s,tags:i,links:a,logo:"/logo"})}),(0,o.jsx)("div",{className:C().lowerSection,children:(0,o.jsx)(d.Z,{defaultActiveKey:"0",items:[{label:"About",key:"2",children:r},{label:"Followers",key:"3",children:c}]})})]})},eI=e=>{let{name:t,streamTitle:n,summary:s,tags:i,socialHandles:a,extraPageContent:l,messages:c,currentUser:h,showChat:m,actions:x,setExternalActionToDisplay:p,setShowNotifyPopup:f,setShowFollowModal:j}=e;if(!h)return null;let _=(0,r.useRef)(),{id:g,displayName:w}=h,v=m&&(0,o.jsx)(eE,{messages:c,usernameToHighlight:w,chatUserId:g,isModerator:!1}),b=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ee,{name:t,title:n,summary:s,tags:i,links:a,logo:"/logo"}),(0,o.jsx)(y,{content:l})]}),k=(0,o.jsx)(em,{name:t}),N="".concat(function(e){let[t,n]=(0,r.useState)(0),o=()=>{if(!e.current)return;let t=e.current.getBoundingClientRect().top,{innerHeight:o}=window;n(o-t)};return(0,r.useEffect)(()=>(o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),t}(_),"px"),S=(e,t)=>(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"start"},children:[(0,o.jsx)(t,{...e,style:{width:"85%"}}),(0,o.jsx)(eb,{showFollowItem:!0,showNotifyItem:!0,actions:x,externalActionSelected:p,notifyItemSelected:()=>f(!0),followItemSelected:()=>j(!0)})]});return(0,o.jsx)("div",{className:u()(C().lowerSectionMobile),ref:_,style:{height:N},children:(0,o.jsx)(d.Z,{defaultActiveKey:"0",items:[m&&{label:"Chat",key:"0",children:v},{label:"About",key:"2",children:b},{label:"Followers",key:"3",children:k}],renderTabBar:S})})},eH=e=>{let{externalActionToDisplay:t,setExternalActionToDisplay:n}=e,{title:s,description:i,url:a}=t;return(0,o.jsx)(eu.Modal,{title:i||s,url:a,open:!!t,height:"80vh",handleCancel:()=>n(null)})},ez=()=>{let e=(0,i.sJ)(c.Q),t=(0,i.sJ)(c.g1),n=(0,i.sJ)(c.pT),s=(0,i.sJ)(c.di),a=(0,i.sJ)(c.db),[l,d]=(0,i.FV)(c.hz),m=(0,i.sJ)(c.j$),u=(0,i.sJ)(c.YW),{viewerCount:x,lastConnectTime:p,lastDisconnectTime:j,streamTitle:_}=(0,i.sJ)(c.RI),{extraPageContent:g,version:w,name:v,summary:y,socialHandles:b,tags:k,externalActions:N,offlineMessage:S,chatDisabled:Z,federation:L,notifications:T}=t,[D,E]=(0,r.useState)(!1),[M,z]=(0,r.useState)(!1),[O,P]=(0,r.useState)(!1),{account:R}=L,{browser:U}=T,{enabled:G}=U,[V,Y]=(0,r.useState)(null),q=e=>{let{openExternally:t,url:n}=e;t?window.open(n,"_blank"):Y(e)},Q=N.map(e=>(0,o.jsx)(I,{action:e,externalActionSelected:q},e.url)),W=()=>{let e=parseInt((0,f.$o)(f.dA.userVisitCount),10);Number.isNaN(e)&&(e=0),(0,f.qQ)(f.dA.userVisitCount,e+1),e>2&&!(0,f.$o)(f.dA.hasDisplayedNotificationModal)&&E(!0)},K=()=>{z(!1),E(!1),(0,f.qQ)(f.dA.hasDisplayedNotificationModal,!0)},X=()=>{let e=window.innerWidth;void 0===l&&(e<=768?d(!0):d(!1)),!l&&e<=768&&d(!0),l&&e>768&&d(!1)};(0,r.useEffect)(()=>(W(),X(),window.addEventListener("resize",X),()=>{window.removeEventListener("resize",X)}),[]);let $=!Z&&s&&n;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:C().main,children:[(0,o.jsx)(h.Z,{wrapperClassName:C().loadingSpinner,size:"large",spinning:e.appLoading,children:(0,o.jsxs)(eL,{className:C().root,children:[(0,o.jsxs)("div",{className:C().mainSection,children:[(0,o.jsxs)("div",{className:C().topSection,children:[u&&(0,o.jsx)(eD,{source:"/hls/stream.m3u8",online:u}),!u&&!e.appLoading&&(0,o.jsx)(H.R,{streamName:v,customText:S,notificationsEnabled:G,fediverseAccount:R,lastLive:j,onNotifyClick:()=>z(!0),onFollowClick:()=>P(!0)}),u&&(0,o.jsx)(et.X,{online:u,lastConnectTime:p,lastDisconnectTime:j,viewerCount:x})]}),(0,o.jsx)("div",{className:C().midSection,children:(0,o.jsxs)("div",{className:C().buttonsLogoTitleSection,children:[!l&&(0,o.jsxs)(A,{children:[Q,(0,o.jsx)(B,{size:"small",onClick:()=>P(!0)}),(0,o.jsx)(eA,{open:D,notificationClicked:()=>z(!0),notificationClosed:()=>K(),children:(0,o.jsx)(J,{onClick:()=>z(!0)})})]}),(0,o.jsx)(eu.Modal,{title:"Notify",open:M,afterClose:()=>K(),handleCancel:()=>K(),children:(0,o.jsx)(eT,{})})]})}),l?(0,o.jsx)(eI,{name:v,streamTitle:_,summary:y,tags:k,socialHandles:b,extraPageContent:g,messages:m,currentUser:a,showChat:$,actions:N,setExternalActionToDisplay:q,setShowNotifyPopup:z,setShowFollowModal:P}):(0,o.jsx)(eM,{name:v,streamTitle:_,summary:y,tags:k,socialHandles:b,extraPageContent:g})]}),$&&!l&&(0,o.jsx)(F,{})]})}),!l&&!1]}),V&&(0,o.jsx)(eH,{externalActionToDisplay:V,setExternalActionToDisplay:Y}),(0,o.jsx)(eu.Modal,{title:"Follow ".concat(v),open:O,handleCancel:()=>P(!1),width:"550px",children:(0,o.jsx)(eF,{account:R,name:v,handleClose:()=>P(!1)})})]})};var eB=n(37527),eO=n(85402);let eJ=e=>{let{title:t,message:n}=e;return(0,o.jsx)(eO.Z,{title:t,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,o.jsx)("p",{style:{fontSize:"1.3rem"},children:n})})},eP=()=>{let e=(0,i.sJ)(c.j$),t=(0,i.sJ)(c.RI),n=!1,o="",s=()=>{n=!0,o=window.document.title},a=()=>{n=!1,window.document.title=o},l=()=>{window.addEventListener("blur",s),window.addEventListener("focus",a)};return(0,r.useEffect)(()=>(o=window.document.title,l(),()=>{window.removeEventListener("focus",a),window.removeEventListener("blur",s)}),[]),(0,r.useEffect)(()=>{let{online:e}=t;n&&e&&(window.document.title="\uD83D\uDCAC :: ".concat(o))},[e]),(0,r.useEffect)(()=>{if(!n)return;let{online:e}=t;e?window.document.title=" \uD83D\uDFE2 :: ".concat(o):e||(window.document.title=" \uD83D\uDD34 :: ".concat(o))},[c.RI]),null},eR=()=>(0,o.jsx)("script",{id:"server-side-hydration",dangerouslySetInnerHTML:{__html:"\n window.configHydration = {{.ServerConfigJSON}};\n window.statusHydration = {{.StatusJSON}};\n "}}),eU=()=>{let[e]=(0,i.FV)(c.hz),t=(0,i.sJ)(c.g1),{name:n,title:a,customStyles:d,version:h}=t,m=(0,i.sJ)(c.di),u=(0,i.sJ)(c.ap),x=(0,r.useRef)(null),{chatDisabled:p}=t;return(0,r.useEffect)(()=>{!function(e){let t=e=>{let t=e.getAttribute("rel");e.setAttribute("rel","".concat(t," noopener noreferrer"))},n=function(e){for(let n of e)for(let o of n.addedNodes)o instanceof HTMLElement&&"a"===o.tagName.toLowerCase()&&t(o)};e.querySelectorAll("a").forEach(e=>t(e));let o=new MutationObserver(n);o.observe(e,{attributes:!1,childList:!0,subtree:!0})}(x.current)},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(l(),{children:[(0,o.jsx)(eR,{}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"57x57",href:"/img/favicon/apple-icon-57x57.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"60x60",href:"/img/favicon/apple-icon-60x60.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"72x72",href:"/img/favicon/apple-icon-72x72.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"76x76",href:"/img/favicon/apple-icon-76x76.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"114x114",href:"/img/favicon/apple-icon-114x114.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/img/favicon/apple-icon-120x120.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"144x144",href:"/img/favicon/apple-icon-144x144.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/img/favicon/apple-icon-152x152.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/favicon/apple-icon-180x180.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/img/favicon/android-icon-192x192.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/img/favicon/favicon-96x96.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/favicon/favicon-16x16.png"}),(0,o.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,o.jsx)("link",{href:"/api/auth/provider/indieauth"}),(0,o.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,o.jsx)("meta",{name:"msapplication-TileImage",content:"/img/favicon/ms-icon-144x144.png"}),(0,o.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,o.jsx)("style",{children:d}),(0,o.jsx)("base",{target:"_blank"})]}),(0,o.jsxs)(l(),{children:[n?(0,o.jsx)("title",{children:n}):(0,o.jsx)("title",{children:"{{.Name}}"}),(0,o.jsx)("meta",{name:"description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"og:title",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"og:site_name",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"og:url",content:"{{.RequestedURL}}"}),(0,o.jsx)("meta",{property:"og:description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"og:type",content:"video.other"}),(0,o.jsx)("meta",{property:"video:tag",content:"{{.TagsString}}"}),(0,o.jsx)("meta",{property:"og:image",content:"{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:url",content:"{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:alt",content:"{{.Image}}"}),(0,o.jsx)("meta",{property:"og:video",content:"{{.RequestedURL}}/embed/video"}),(0,o.jsx)("meta",{property:"og:video:secure_url",content:"{{.RequestedURL}}/embed/video"}),(0,o.jsx)("meta",{property:"og:video:height",content:"315"}),(0,o.jsx)("meta",{property:"og:video:width",content:"560"}),(0,o.jsx)("meta",{property:"og:video:type",content:"text/html"}),(0,o.jsx)("meta",{property:"og:video:actor",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"twitter:title",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"twitter:url",content:"{{.RequestedURL}}"}),(0,o.jsx)("meta",{property:"twitter:description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"twitter:image",content:"{{.Image}}"}),(0,o.jsx)("meta",{property:"twitter:card",content:"player"}),(0,o.jsx)("meta",{property:"twitter:player",content:"{{.RequestedURL}}/embed/video"}),(0,o.jsx)("meta",{property:"twitter:player:width",content:"560"}),(0,o.jsx)("meta",{property:"twitter:player:height",content:"315"})]}),(0,o.jsx)(c.me,{}),(0,o.jsx)(eP,{}),(0,o.jsxs)(s.Z,{ref:x,style:{minHeight:"100vh"},children:[(0,o.jsx)(eB.h,{name:a||n,chatAvailable:m,chatDisabled:p}),(0,o.jsx)(ez,{}),u&&(0,o.jsx)(eJ,{title:u.title,message:u.message}),!e&&(0,o.jsx)(g,{version:h})]})]})};function eG(){return(0,o.jsx)(eU,{})}},13959:function(e){e.exports={button:"ActionButton_button__z5Z2c",icon:"ActionButton_icon__EPp7Q"}},97038:function(e){e.exports={item:"ActionButtonMenu_item__OJQdr",buttonWrap:"ActionButtonMenu_buttonWrap__WQ9kt",icon:"ActionButtonMenu_icon__edY1D",menu:"ActionButtonMenu_menu__GChDk"}},12270:function(e){e.exports={row:"ActionButtonRow_row__SiEGe"}},47900:function(e){e.exports={root:"ContentHeader_root__HaUG0",row:"ContentHeader_row__9Q8gH",logoTitleSection:"ContentHeader_logoTitleSection__Z8pUc",logo:"ContentHeader_logo__wo_HN",titleSection:"ContentHeader_titleSection___6Y15",title:"ContentHeader_title__E_DsI",subtitle:"ContentHeader_subtitle__n1Wew",tagList:"ContentHeader_tagList__rx3jY"}},79252:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},66009:function(e){e.exports={header:"FollowModal_header__la1ji",buttons:"FollowModal_buttons__tt4Mc",instructions:"FollowModal_instructions__HiKFF",footer:"FollowModal_footer__AjucH",account:"FollowModal_account__cmHkm",logo:"FollowModal_logo__Ew8xK",username:"FollowModal_username__A_OTw",name:"FollowModal_name__Sf_TP"}},17725:function(e){e.exports={root:"Content_root__h1mNK",mainSection:"Content_mainSection__Gk78Y",topSection:"Content_topSection__JIZi0",lowerSection:"Content_lowerSection__BZHYI",lowerSectionMobile:"Content_lowerSectionMobile__hRr0_",leftCol:"Content_leftCol__U2TDq",loadingSpinner:"Content_loadingSpinner__mDlYC",main:"Content_main__XVf63"}},10808:function(e){e.exports={pageContentContainer:"CustomPageContent_pageContentContainer__EG4tU",customPageContent:"CustomPageContent_customPageContent__Mr981",summary:"CustomPageContent_summary___Zgps"}},67917:function(e){e.exports={footer:"Footer_footer__mPuvf",links:"Footer_links__7bBxV"}},31764:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},74933:function(e){e.exports={root:"Logo_root__jKiJC",container:"Logo_container__A4UYT",image:"Logo_image__Ahkom"}},77011:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}},88335:function(e){e.exports={outerContainer:"OfflineBanner_outerContainer__3AbsB",innerContainer:"OfflineBanner_innerContainer__zTm13",bodyText:"OfflineBanner_bodyText__nNNy0",separator:"OfflineBanner_separator___j_Ss",lastLiveDate:"OfflineBanner_lastLiveDate___UZdO",clockIcon:"OfflineBanner_clockIcon__s0DB_",header:"OfflineBanner_header__Vu20o",footer:"OfflineBanner_footer__o3Zl5",actionLink:"OfflineBanner_actionLink__b4Mwa"}},12341:function(e){e.exports={root:"Sidebar_root__8HE0A"}},573:function(e){e.exports={link:"SocialLinks_link___CcSm",links:"SocialLinks_links__gOAb7"}},37970:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},21890:function(e){e.exports={followers:"FollowerCollection_followers__e_EUS",noFollowers:"FollowerCollection_noFollowers__UaCVW"}},69833:function(e){e.exports={follower:"SingleFollower_follower__EyBDI",avatar:"SingleFollower_avatar__V9jHG",account:"SingleFollower_account__Z66vo",placeholder:"SingleFollower_placeholder__CgsfJ"}}},function(e){e.O(0,[8939,3903,4267,4381,5938,6395,5360,250,2858,8980,7466,9774,2888,179],function(){return e(e.s=48312)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/webpack-3fa33ad1d2a3fb3b.js b/static/web/_next/static/chunks/webpack-6928ef3b8aaabc6c.js similarity index 98% rename from static/web/_next/static/chunks/webpack-3fa33ad1d2a3fb3b.js rename to static/web/_next/static/chunks/webpack-6928ef3b8aaabc6c.js index 02235c84f..e0d216c75 100644 --- a/static/web/_next/static/chunks/webpack-3fa33ad1d2a3fb3b.js +++ b/static/web/_next/static/chunks/webpack-6928ef3b8aaabc6c.js @@ -1 +1 @@ -!function(){"use strict";var e,t,a,c,f,n,d,r,b,o,u,i,s={},l={};function h(e){var t=l[e];if(void 0!==t)return t.exports;var a=l[e]={id:e,loaded:!1,exports:{}},c=!0;try{s[e].call(a.exports,a,a.exports,h),c=!1}finally{c&&delete l[e]}return a.loaded=!0,a.exports}h.m=s,h.amdO={},e=[],h.O=function(t,a,c,f){if(a){f=f||0;for(var n=e.length;n>0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[a,c,f];return}for(var d=1/0,n=0;n=f&&Object.keys(h.O).every(function(e){return h.O[e](a[b])})?a.splice(b--,1):(r=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[a,c,f];return}for(var d=1/0,n=0;n=f&&Object.keys(h.O).every(function(e){return h.O[e](a[b])})?a.splice(b--,1):(r=!1,fOwncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

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

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

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

\ No newline at end of file diff --git a/static/web/admin/actions/index.html b/static/web/admin/actions/index.html index 039d17bdf..2046e47c6 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 c4ab588fc..fd321795c 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 23ea0033f..437bf465c 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 64e72c229..915c166d7 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 2aec675f8..486e0a4bc 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 780538f4d..220114d59 100644 --- a/static/web/admin/config-notify/index.html +++ b/static/web/admin/config-notify/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

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


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

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

Browser Alerts

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

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

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

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

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

Fediverse social features: Disabled

Custom

Build your own notifications by using custom webhooks.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

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


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

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

Browser Alerts

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

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

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

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

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

Fediverse social features: Disabled

Custom

Build your own notifications by using custom webhooks.

\ No newline at end of file diff --git a/static/web/admin/config-public-details/index.html b/static/web/admin/config-public-details/index.html index 751a0380e..bcd11a1a7 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 ff8c3fe15..5ffff8f1d 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 e40b01140..4ba63263a 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 04d82ae59..9cf5c5a98 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 ddabe36d9..d075b2be8 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 183f7cc2e..67837e099 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 8c60d6047..bef1eb2d3 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 d16fa37fc..f127577a2 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 c97998f0c..a87627d0e 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 81294f25a..227ddce47 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 d7e3fea36..304eecd3e 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 ebb5bac8e..b88a159d0 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 7d8374b8e..d002dd464 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 f33db0a50..51ba5f2a6 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 3ea6d52aa..cbcc6ab23 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 8b82fe7dc..c06ec891f 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 34ddfb9d5..573d9405d 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 12652f729..1899f13ba 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 104ea010c..f102f3000 100644 --- a/static/web/index.html +++ b/static/web/index.html @@ -1,4 +1,4 @@ {{.Name}}
Chat offline
Logo
Preview
\ No newline at end of file + {{.Name}}
Logo
Preview
\ No newline at end of file