Bundle embedded web app

This commit is contained in:
Owncast
2023-04-26 22:35:38 +00:00
parent 32c3f6a9b6
commit 350dac4ecb
87 changed files with 76 additions and 80 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1398],{41398:function(e,i,s){"use strict";s.r(i),s.d(i,{BrowserNotifyModal:function(){return v}});var t=s(85893),o=s(85818),n=s(71577),r=s(11382),a=s(71230),l=s(67294),c=s(4480),d=s(37068),h=s(44974);async function f(e,i,s){console.log("saveNotificationRegistration");let t={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({channel:e,destination:i})};await fetch("".concat("/api/notifications/register","?accessToken=").concat(s),t)}async function w(e){let i=await navigator.serviceWorker.ready,s=await i.pushManager.getSubscription();return s||(s=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let i="=".repeat((4-e.length%4)%4),s=(e+i).replace(/-/g,"+").replace(/_/g,"/"),t=window.atob(s),o=new Uint8Array(t.length);for(let e=0;e<t.length;++e)o[e]=t.charCodeAt(e);return o}(e)})),JSON.stringify(s)}var u=s(67940),p=s.n(u),b=s(34148),m=s(69183);let{Title:x}=o.Z,_=()=>(0,t.jsx)("div",{children:"Browser notifications are not supported in your browser."}),g=()=>(0,t.jsx)("div",{children:"Browser notifications are not supported for local servers."}),y=e=>{let{start:i}=e;return(0,t.jsx)("div",{id:"browser-push-preview-box",className:p().pushPreview,children:(0,t.jsxs)("div",{className:p().inner,children:[(0,t.jsxs)("div",{className:p().title,children:[window.location.toString()," wants to"]}),(0,t.jsxs)("div",{className:p().permissionLine,children:[(0,t.jsx)("svg",{className:p().bell,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M14 12.3333V13H2V12.3333L3.33333 11V7C3.33333 4.93333 4.68667 3.11333 6.66667 2.52667C6.66667 2.46 6.66667 2.4 6.66667 2.33333C6.66667 1.97971 6.80714 1.64057 7.05719 1.39052C7.30724 1.14048 7.64638 1 8 1C8.35362 1 8.69276 1.14048 8.94281 1.39052C9.19286 1.64057 9.33333 1.97971 9.33333 2.33333C9.33333 2.4 9.33333 2.46 9.33333 2.52667C11.3133 3.11333 12.6667 4.93333 12.6667 7V11L14 12.3333ZM9.33333 13.6667C9.33333 14.0203 9.19286 14.3594 8.94281 14.6095C8.69276 14.8595 8.35362 15 8 15C7.64638 15 7.30724 14.8595 7.05719 14.6095C6.80714 14.3594 6.66667 14.0203 6.66667 13.6667",fill:"#676670"})}),(0,t.jsx)("span",{className:p().showNotificationsText,children:"Show notifications"})]}),(0,t.jsxs)("div",{className:p().buttonRow,children:[(0,t.jsx)(n.Z,{type:"primary",onClick:()=>{i()},children:"Allow"}),(0,t.jsx)("button",{type:"button",className:p().disabled,children:"Block"})]})]})})},N=()=>(0,t.jsxs)("div",{children:[(0,t.jsx)(x,{level:2,children:"Notifications are enabled"}),"To disable push notifications from ",window.location.hostname.toString()," access your browser permissions for this site and turn off notifications.",(0,t.jsx)("a",{href:"https://owncast.online/docs/notifications",children:" Learn more."})]}),v=()=>{let[e,i]=(0,l.useState)(null),s=(0,c.sJ)(h.FI),o=(0,c.sJ)(h.g1),[n,u]=(0,l.useState)(!1),x=(0,b.Z)()&&"default"!==Notification.permission,{notifications:v}=o,{browser:j}=v,{publicKey:C}=j,M=j.enabled&&(0,b.Z)();if(x)return(0,t.jsx)(N,{});let B=async()=>{if(!(0,b.Z)()||"default"===Notification.permission){u(!0);try{let e=await w(C);f("BROWSER_PUSH_NOTIFICATION",e,s),i(null)}catch(e){i("Error registering for live notifications: ".concat(e.message,". Make sure you're not inside a private browser environment or have previously disabled notifications for this stream."))}u(!1)}};return"localhost"===window.location.hostname?(0,t.jsx)(g,{}):M?(0,t.jsx)(d.SV,{fallbackRender:e=>{let{error:i,resetErrorBoundary:s}=e;return(0,t.jsx)(m.A,{componentName:"BrowserNotifyModal",message:i.message,retryFunction:s})},children:(0,t.jsxs)(r.Z,{spinning:n,children:[(0,t.jsxs)(a.Z,{className:p().description,children:["Get notified right in the browser each time this stream goes live.",(0,t.jsx)("a",{href:"https://owncast.online/docs/notifications/#browser-notifications",children:"Learn more"}),"\xa0 about Owncast browser notifications."]}),(0,t.jsx)(a.Z,{children:e}),(0,t.jsx)(y,{start:()=>B()})]})}):(0,t.jsx)(_,{})}},67940:function(e){e.exports={description:"BrowserNotifyModal_description__tMKKq",pushPreview:"BrowserNotifyModal_pushPreview__4Og4q",inner:"BrowserNotifyModal_inner__uhFDw",title:"BrowserNotifyModal_title__dd_Lh",permissionLine:"BrowserNotifyModal_permissionLine__K8nyJ",bell:"BrowserNotifyModal_bell__9mIeI",buttonRow:"BrowserNotifyModal_buttonRow__oxJUg",disabled:"BrowserNotifyModal_disabled__v88lb"}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1774],{93645:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function i(e){return e?r[e]:r.trunc}},59910:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(19013),i=n(13882);function u(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}},11699:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(59910),i=n(13882),u=n(93645);function l(e,t,n){(0,i.Z)(2,arguments);var l=(0,r.Z)(e,t)/1e3;return(0,u.u)(null==n?void 0:n.roundingMethod)(l)}},23426:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/logs",function(){return n(97525)}])},86177:function(e,t,n){"use strict";n.d(t,{o:function(){return f}});var r=n(85893);n(67294);var i=n(85818),u=n(20550),l=n(54398),o=n(53731),a=n(58091);let{Title:c}=i.Z;function s(e,t){let n="black";return"warning"===t.level?n="orange":"error"===t.level&&(n="red"),(0,r.jsx)(u.Z,{color:n,children:e})}function d(e){return(0,r.jsx)(o.Z,{children:e})}let f=e=>{let{logs:t,pageSize:n}=e;return(null==t?void 0:t.length)?(0,r.jsxs)("div",{className:"logs-section",children:[(0,r.jsx)(c,{children:"Logs"}),(0,r.jsx)(l.Z,{size:"middle",dataSource:t,columns:[{title:"Level",dataIndex:"level",key:"level",filters:[{text:"Info",value:"info"},{text:"Warning",value:"warning"},{text:"Error",value:"Error"}],onFilter:(e,t)=>0===t.level.indexOf(e),render:s},{title:"Timestamp",dataIndex:"time",key:"time",render:e=>{let t=new Date(e);return(0,a.Z)(t,"pp P")},sorter:(e,t)=>new Date(e.time).getTime()-new Date(t.time).getTime(),sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Message",dataIndex:"message",key:"message",render:d}],rowKey:e=>e.time,pagination:{pageSize:n||20}})]}):null}},97525:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(85893),i=n(67294),u=n(86177),l=n(81453),o=n(34261);function a(){let[e,t]=(0,i.useState)([]),n=async()=>{try{let e=await (0,l.rQ)(l.sG);t(e)}catch(e){console.log("==== error",e)}};return(0,i.useEffect)(()=>{let e=null;return setInterval(n,5e3),n(),e=setInterval(n,5e3),()=>{clearInterval(e)}},[]),(0,r.jsx)(u.o,{logs:e,pageSize:20})}a.getLayout=function(e){return(0,r.jsx)(o.l,{page:e})}}},function(e){e.O(0,[173,5874,2184,2301,4931,5402,5257,1664,8014,5818,9915,4041,3698,3013,4398,7940,3731,4444,4261,9774,2888,179],function(){return e(e.s=23426)}),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1774],{93645:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function i(e){return e?r[e]:r.trunc}},59910:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(19013),i=n(13882);function u(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}},11699:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(59910),i=n(13882),u=n(93645);function l(e,t,n){(0,i.Z)(2,arguments);var l=(0,r.Z)(e,t)/1e3;return(0,u.u)(null==n?void 0:n.roundingMethod)(l)}},23426:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/logs",function(){return n(97525)}])},86177:function(e,t,n){"use strict";n.d(t,{o:function(){return f}});var r=n(85893);n(67294);var i=n(85818),u=n(20550),l=n(54398),o=n(53731),a=n(58091);let{Title:c}=i.Z;function s(e,t){let n="black";return"warning"===t.level?n="orange":"error"===t.level&&(n="red"),(0,r.jsx)(u.Z,{color:n,children:e})}function d(e){return(0,r.jsx)(o.Z,{children:e})}let f=e=>{let{logs:t,pageSize:n}=e;return(null==t?void 0:t.length)?(0,r.jsxs)("div",{className:"logs-section",children:[(0,r.jsx)(c,{children:"Logs"}),(0,r.jsx)(l.Z,{size:"middle",dataSource:t,columns:[{title:"Level",dataIndex:"level",key:"level",filters:[{text:"Info",value:"info"},{text:"Warning",value:"warning"},{text:"Error",value:"Error"}],onFilter:(e,t)=>0===t.level.indexOf(e),render:s},{title:"Timestamp",dataIndex:"time",key:"time",render:e=>{let t=new Date(e);return(0,a.Z)(t,"pp P")},sorter:(e,t)=>new Date(e.time).getTime()-new Date(t.time).getTime(),sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Message",dataIndex:"message",key:"message",render:d}],rowKey:e=>e.time,pagination:{pageSize:n||20}})]}):null}},97525:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(85893),i=n(67294),u=n(86177),l=n(81453),o=n(34261);function a(){let[e,t]=(0,i.useState)([]),n=async()=>{try{let e=await (0,l.rQ)(l.sG);t(e)}catch(e){console.log("==== error",e)}};return(0,i.useEffect)(()=>{let e=null;return setInterval(n,5e3),n(),e=setInterval(n,5e3),()=>{clearInterval(e)}},[]),(0,r.jsx)(u.o,{logs:e,pageSize:20})}a.getLayout=function(e){return(0,r.jsx)(o.l,{page:e})}}},function(e){e.O(0,[173,5874,2184,2414,4931,5402,5257,1664,8014,5818,9915,4041,3698,3013,4398,7940,3731,4444,4261,9774,2888,179],function(){return e(e.s=23426)}),_N_E=e.O()}]);

View File

@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return n(31358)}])},31358:function(e,t,n){"use strict";n.r(t);var a=n(85893),r=n(67294),l=n(86179),s=n(85818),d=n(54398),i=n(81453),u=n(34261);let{Title:c}=s.Z,o=e=>{let t=Object.values(e);return(0,a.jsx)(d.Z,{dataSource:t,columns:[{title:"Name",dataIndex:"name",key:"name",render:(e,t)=>(0,a.jsx)("a",{href:t.browser_download_url,children:e})},{title:"Size",dataIndex:"size",key:"size",render:e=>"".concat((e/1024/1024).toFixed(2)," MB")}],rowKey:e=>e.id,size:"large",pagination:!1})},_=()=>{let[e,t]=(0,r.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),n=async()=>{try{let e=await (0,i.Kt)();t(e)}catch(e){console.log("==== error",e)}};return((0,r.useEffect)(()=>{n()},[]),e)?(0,a.jsxs)("div",{className:"upgrade-page",children:[(0,a.jsx)(c,{level:2,children:(0,a.jsx)("a",{href:e.html_url,children:e.name})}),(0,a.jsx)(c,{level:5,children:new Date(e.created_at).toDateString()}),(0,a.jsx)(l.D,{children:e.body}),(0,a.jsx)("h3",{children:"Downloads"}),(0,a.jsx)(o,{...e.assets})]}):null};_.getLayout=function(e){return(0,a.jsx)(u.l,{page:e})},t.default=_}},function(e){e.O(0,[173,5874,2184,2301,4931,5402,5257,1664,8014,5818,9915,4041,3698,3013,4398,235,4261,9774,2888,179],function(){return e(e.s=70918)}),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return n(31358)}])},31358:function(e,t,n){"use strict";n.r(t);var a=n(85893),r=n(67294),l=n(86179),s=n(85818),d=n(54398),i=n(81453),u=n(34261);let{Title:c}=s.Z,o=e=>{let t=Object.values(e);return(0,a.jsx)(d.Z,{dataSource:t,columns:[{title:"Name",dataIndex:"name",key:"name",render:(e,t)=>(0,a.jsx)("a",{href:t.browser_download_url,children:e})},{title:"Size",dataIndex:"size",key:"size",render:e=>"".concat((e/1024/1024).toFixed(2)," MB")}],rowKey:e=>e.id,size:"large",pagination:!1})},_=()=>{let[e,t]=(0,r.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),n=async()=>{try{let e=await (0,i.Kt)();t(e)}catch(e){console.log("==== error",e)}};return((0,r.useEffect)(()=>{n()},[]),e)?(0,a.jsxs)("div",{className:"upgrade-page",children:[(0,a.jsx)(c,{level:2,children:(0,a.jsx)("a",{href:e.html_url,children:e.name})}),(0,a.jsx)(c,{level:5,children:new Date(e.created_at).toDateString()}),(0,a.jsx)(l.D,{children:e.body}),(0,a.jsx)("h3",{children:"Downloads"}),(0,a.jsx)(o,{...e.assets})]}):null};_.getLayout=function(e){return(0,a.jsx)(u.l,{page:e})},t.default=_}},function(e){e.O(0,[173,5874,2184,2414,4931,5402,5257,1664,8014,5818,9915,4041,3698,3013,4398,235,4261,9774,2888,179],function(){return e(e.s=70918)}),_N_E=e.O()}]);

View File

@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8399,7533],{15746:function(n,t,e){"use strict";var s=e(21584);t.Z=s.Z},71230:function(n,t,e){"use strict";var s=e(92820);t.Z=s.Z},88054:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readonly",function(){return e(85466)}])},85466:function(n,t,e){"use strict";e.r(t),e.d(t,{default:function(){return a}});var s=e(85893),i=e(4480),u=e(92093),r=e(44974);function a(){let n=(0,i.sJ)(r.db),t=(0,i.sJ)(r.pH),e=(0,i.sJ)(r.di);return(0,s.jsxs)("div",{children:[(0,s.jsx)(r.me,{}),n&&(0,s.jsx)(u.ChatContainer,{messages:t,usernameToHighlight:n.displayName,chatUserId:n.id,isModerator:!1,showInput:!1,height:"100vh",chatAvailable:e})]})}}},function(n){n.O(0,[1272,8700,2184,2414,2332,8131,2259,6959,2093,9774,2888,179],function(){return n(n.s=88054)}),_N_E=n.O()}]);

View File

@@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8399,7533],{88054:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readonly",function(){return t(85466)}])},85466:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return a}});var s=t(85893),i=t(4480),u=t(92093),r=t(44974);function a(){let n=(0,i.sJ)(r.db),e=(0,i.sJ)(r.pH),t=(0,i.sJ)(r.di);return(0,s.jsxs)("div",{children:[(0,s.jsx)(r.me,{}),n&&(0,s.jsx)(u.ChatContainer,{messages:e,usernameToHighlight:n.displayName,chatUserId:n.id,isModerator:!1,showInput:!1,height:"100vh",chatAvailable:t})]})}}},function(n){n.O(0,[1272,8700,2184,2301,2332,8131,5663,6959,2093,9774,2888,179],function(){return n(n.s=88054)}),_N_E=n.O()}]);

View File

@@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[955,7533],{30672:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readwrite",function(){return s(73411)}])},14940:function(e,a,s){"use strict";s.d(a,{h:function(){return u}});var i=s(85893),t=s(24093),n=s(94199),l=s(94184),r=s.n(l),o=s(5152),c=s.n(o),d=s(41664),h=s.n(d),_=s(91935),f=s.n(_);let p=c()(()=>Promise.all([s.e(4931),s.e(3013),s.e(9266)]).then(s.bind(s,79266)).then(e=>e.UserDropdown),{loadableGenerated:{webpack:()=>[79266]},ssr:!1}),u=e=>{let{name:a,chatAvailable:s,chatDisabled:l,online:o}=e;return(0,i.jsxs)("header",{className:r()(["".concat(f().header)],"global-header"),children:[o?(0,i.jsx)(h(),{href:"#player",className:f().skipLink,children:"Skip to player"}):(0,i.jsx)(h(),{href:"#offline-message",className:f().skipLink,children:"Skip to offline message"}),(0,i.jsx)(h(),{href:"#skip-to-content",className:f().skipLink,children:"Skip to page content"}),(0,i.jsx)(h(),{href:"#footer",className:f().skipLink,children:"Skip to footer"}),(0,i.jsxs)("div",{className:f().logo,children:[(0,i.jsx)("div",{id:"header-logo",className:f().logoImage,children:(0,i.jsx)(t.C,{src:"/logo",size:"large",shape:"circle",className:f().avatar})}),(0,i.jsx)("h1",{className:f().title,id:"global-header-text",children:a})]}),s&&!l&&(0,i.jsx)(p,{}),!s&&!l&&(0,i.jsx)(n.Z,{overlayClassName:f().toolTip,title:"Chat will be available when the stream is live.",placement:"left",children:(0,i.jsx)("span",{className:f().chatOfflineText,children:"Chat is offline"})})]})};a.Z=u},73411:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return o}});var i=s(85893),t=s(4480),n=s(92093),l=s(44974),r=s(14940);function o(){let e=(0,t.sJ)(l.db),a=(0,t.sJ)(l.pH),s=(0,t.sJ)(l.g1),o=(0,t.sJ)(l.RI),c=(0,t.sJ)(l.Q),d=(0,t.sJ)(l.di),{name:h,chatDisabled:_}=s,{videoAvailable:f}=c,{streamTitle:p,online:u}=o;return(0,i.jsxs)("div",{children:[(0,i.jsx)(l.me,{}),(0,i.jsx)(r.Z,{name:u&&p||h,chatAvailable:!0,chatDisabled:_,online:f}),e&&(0,i.jsx)("div",{id:"chat-container",children:(0,i.jsx)(n.ChatContainer,{messages:a,usernameToHighlight:e.displayName,chatUserId:e.id,isModerator:e.isModerator,showInput:!0,height:"80vh",chatAvailable:d})})]})}},91935:function(e){e.exports={header:"Header_header__U4Ro1",logoImage:"Header_logoImage__beIL2",logo:"Header_logo__HLZ6Z",title:"Header_title__FIts2",skipLink:"Header_skipLink__9Pusb",offlineTag:"Header_offlineTag__0p3lk",avatar:"Header_avatar__bL8Jw",chatOfflineText:"Header_chatOfflineText__yYfMS",toolTip:"Header_toolTip__e3Ht7"}}},function(e){e.O(0,[1272,8700,2184,2301,1664,2332,8131,5663,6959,2093,9774,2888,179],function(){return e(e.s=30672)}),_N_E=e.O()}]);

View File

@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[955,7533],{15746:function(e,a,s){"use strict";var i=s(21584);a.Z=i.Z},71230:function(e,a,s){"use strict";var i=s(92820);a.Z=i.Z},30672:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readwrite",function(){return s(73411)}])},14940:function(e,a,s){"use strict";s.d(a,{h:function(){return u}});var i=s(85893),t=s(24093),n=s(94199),l=s(94184),r=s.n(l),o=s(5152),c=s.n(o),d=s(41664),h=s.n(d),f=s(91935),_=s.n(f);let p=c()(()=>Promise.all([s.e(4931),s.e(3013),s.e(9266)]).then(s.bind(s,79266)).then(e=>e.UserDropdown),{loadableGenerated:{webpack:()=>[79266]},ssr:!1}),u=e=>{let{name:a,chatAvailable:s,chatDisabled:l,online:o}=e;return(0,i.jsxs)("header",{className:r()(["".concat(_().header)],"global-header"),children:[o?(0,i.jsx)(h(),{href:"#player",className:_().skipLink,children:"Skip to player"}):(0,i.jsx)(h(),{href:"#offline-message",className:_().skipLink,children:"Skip to offline message"}),(0,i.jsx)(h(),{href:"#skip-to-content",className:_().skipLink,children:"Skip to page content"}),(0,i.jsx)(h(),{href:"#footer",className:_().skipLink,children:"Skip to footer"}),(0,i.jsxs)("div",{className:_().logo,children:[(0,i.jsx)("div",{id:"header-logo",className:_().logoImage,children:(0,i.jsx)(t.C,{src:"/logo",size:"large",shape:"circle",className:_().avatar})}),(0,i.jsx)("h1",{className:_().title,id:"global-header-text",children:a})]}),s&&!l&&(0,i.jsx)(p,{}),!s&&!l&&(0,i.jsx)(n.Z,{overlayClassName:_().toolTip,title:"Chat will be available when the stream is live.",placement:"left",children:(0,i.jsx)("span",{className:_().chatOfflineText,children:"Chat is offline"})})]})};a.Z=u},73411:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return o}});var i=s(85893),t=s(4480),n=s(92093),l=s(44974),r=s(14940);function o(){let e=(0,t.sJ)(l.db),a=(0,t.sJ)(l.pH),s=(0,t.sJ)(l.g1),o=(0,t.sJ)(l.RI),c=(0,t.sJ)(l.Q),d=(0,t.sJ)(l.di),{name:h,chatDisabled:f}=s,{videoAvailable:_}=c,{streamTitle:p,online:u}=o;return(0,i.jsxs)("div",{children:[(0,i.jsx)(l.me,{}),(0,i.jsx)(r.Z,{name:u&&p||h,chatAvailable:!0,chatDisabled:f,online:_}),e&&(0,i.jsx)("div",{id:"chat-container",children:(0,i.jsx)(n.ChatContainer,{messages:a,usernameToHighlight:e.displayName,chatUserId:e.id,isModerator:e.isModerator,showInput:!0,height:"80vh",chatAvailable:d})})]})}},91935:function(e){e.exports={header:"Header_header__U4Ro1",logoImage:"Header_logoImage__beIL2",logo:"Header_logo__HLZ6Z",title:"Header_title__FIts2",skipLink:"Header_skipLink__9Pusb",offlineTag:"Header_offlineTag__0p3lk",avatar:"Header_avatar__bL8Jw",chatOfflineText:"Header_chatOfflineText__yYfMS",toolTip:"Header_toolTip__e3Ht7"}}},function(e){e.O(0,[1272,8700,2184,2414,1664,2332,8131,2259,6959,2093,9774,2888,179],function(){return e(e.s=30672)}),_N_E=e.O()}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
.OfflineBanner_outerContainer__3AbsB{display:flex;justify-content:center;align-items:center}@media only screen and (max-width:768px){.OfflineBanner_outerContainer__3AbsB{height:430px}}@media only screen and (max-width:481px){.OfflineBanner_outerContainer__3AbsB{height:280px}}.OfflineBanner_innerContainer__zTm13{width:clamp(0px,100%,600px);display:flex;flex-direction:column;margin:3rem auto;padding:2.4em;color:var(--color-owncast-palette-3)}@media only screen and (max-width:768px){.OfflineBanner_innerContainer__zTm13{font-size:1.2rem;padding:1em;margin:1rem .2rem}}.OfflineBanner_bodyText__nNNy0{line-height:2rem;font-size:1.2rem}.OfflineBanner_separator___j_Ss{margin-top:15px;margin-bottom:15px}.OfflineBanner_lastLiveDate___UZdO{margin-top:2rem;font-size:.8rem;opacity:.7;font-family:var(--theme-text-body-font-family);font-weight:300}.OfflineBanner_lastLiveDate___UZdO .OfflineBanner_clockIcon__s0DB_{margin-right:6px}.OfflineBanner_header__Vu20o{font-family:var(--theme-text-display-font-family);font-weight:600;font-size:1.4rem}.OfflineBanner_footer__o3Zl5{margin-top:15px}.OfflineBanner_actionLink__b4Mwa{color:var(--theme-color-action);text-decoration:underline;cursor:pointer}.OfflineBanner_actionLink__b4Mwa:hover{color:var(--color-owncast-palette-7)}.Statusbar_statusbar__AtVnB{display:flex;align-items:center;justify-content:space-between;height:2rem;width:100%;padding:var(--content-padding);color:var(--theme-color-components-video-status-bar-foreground);background-color:var(--theme-color-components-video-status-bar-background);font-family:var(--theme-text-display-font-family);font-size:11px;font-weight:400}.Statusbar_onlineMessage__66r5C{letter-spacing:.5px}.Statusbar_viewerCount__S6_dZ{vertical-align:middle}.Statusbar_viewerIcon__yAOw1{display:inline-block;margin-right:.5rem}.VideoJS_player__GT8FN{width:100%}.VideoPoster_poster__RDkSk{display:flex;justify-content:center;width:100%;height:100%}.VideoPoster_image__DAj_o{background-color:#000}.OwncastPlayer_container__YfgRy{display:grid;width:100%;justify-items:center;height:75vh;aspect-ratio:16/9}@media(max-width:1200px){.OwncastPlayer_container__YfgRy{height:100%;max-height:75vh}}@media only screen and (max-width:768px){.OwncastPlayer_container__YfgRy{height:400px;max-height:400px}}@media only screen and (max-width:481px){.OwncastPlayer_container__YfgRy{height:250px;max-height:250px}}.OwncastPlayer_container__YfgRy .OwncastPlayer_player__R7XKJ,.OwncastPlayer_container__YfgRy .OwncastPlayer_poster__8RqUC{width:100%;grid-column:1;grid-row:1}.OwncastPlayer_fill__AdH_e{max-height:unset}

View File

@@ -1 +0,0 @@
.VideoJS_player__GT8FN{width:100%}.VideoPoster_poster__RDkSk{display:flex;justify-content:center;width:100%;height:100%}.VideoPoster_image__DAj_o{background-color:#000}.OwncastPlayer_container__YfgRy{display:grid;width:100%;justify-items:center;height:75vh;aspect-ratio:16/9}@media(max-width:1200px){.OwncastPlayer_container__YfgRy{height:100%;max-height:75vh}}.OwncastPlayer_container__YfgRy .OwncastPlayer_player__R7XKJ,.OwncastPlayer_container__YfgRy .OwncastPlayer_poster__8RqUC{width:100%;grid-column:1;grid-row:1}.OwncastPlayer_fill__AdH_e{max-height:unset}

View File

@@ -1 +0,0 @@
.OfflineBanner_outerContainer__3AbsB{display:flex;justify-content:center}.OfflineBanner_innerContainer__zTm13{width:clamp(0px,100%,600px);display:flex;flex-direction:column;margin:3rem auto;padding:2.4em}@media only screen and (max-width:768px){.OfflineBanner_innerContainer__zTm13{font-size:1.2rem;padding:1em;margin:1rem .2rem}}.OfflineBanner_bodyText__nNNy0{line-height:2rem;font-size:1.2rem}.OfflineBanner_separator___j_Ss{margin-top:15px;margin-bottom:15px}.OfflineBanner_lastLiveDate___UZdO{margin-top:2rem;font-size:.8rem;opacity:.7;font-family:var(--theme-text-body-font-family);font-weight:300}.OfflineBanner_lastLiveDate___UZdO .OfflineBanner_clockIcon__s0DB_{margin-right:6px}.OfflineBanner_header__Vu20o{font-family:var(--theme-text-display-font-family);font-weight:600;font-size:1.4rem}.OfflineBanner_footer__o3Zl5{margin-top:15px}.OfflineBanner_actionLink__b4Mwa{color:var(--theme-color-action);text-decoration:underline;cursor:pointer}.OfflineBanner_actionLink__b4Mwa:hover{color:var(--color-owncast-palette-7)}.Statusbar_statusbar__AtVnB{display:flex;align-items:center;justify-content:space-between;height:2rem;width:100%;padding:var(--content-padding);color:var(--theme-color-components-video-status-bar-foreground);background-color:var(--theme-color-components-video-status-bar-background);font-family:var(--theme-text-display-font-family);font-size:11px;font-weight:400}.Statusbar_onlineMessage__66r5C{letter-spacing:.5px}.Statusbar_viewerCount__S6_dZ{vertical-align:middle}.Statusbar_viewerIcon__yAOw1{display:inline-block;margin-right:.5rem}.VideoJS_player__GT8FN{width:100%}.VideoPoster_poster__RDkSk{display:flex;justify-content:center;width:100%;height:100%}.VideoPoster_image__DAj_o{background-color:#000}.OwncastPlayer_container__YfgRy{display:grid;width:100%;justify-items:center;height:75vh;aspect-ratio:16/9}@media(max-width:1200px){.OwncastPlayer_container__YfgRy{height:100%;max-height:75vh}}.OwncastPlayer_container__YfgRy .OwncastPlayer_player__R7XKJ,.OwncastPlayer_container__YfgRy .OwncastPlayer_poster__8RqUC{width:100%;grid-column:1;grid-row:1}.OwncastPlayer_fill__AdH_e{max-height:unset}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
.VideoJS_player__GT8FN{width:100%}.VideoPoster_poster__RDkSk{display:flex;justify-content:center;width:100%;height:100%}.VideoPoster_image__DAj_o{background-color:#000}.OwncastPlayer_container__YfgRy{display:grid;width:100%;justify-items:center;height:75vh;aspect-ratio:16/9}@media(max-width:1200px){.OwncastPlayer_container__YfgRy{height:100%;max-height:75vh}}@media only screen and (max-width:768px){.OwncastPlayer_container__YfgRy{height:400px;max-height:400px}}@media only screen and (max-width:481px){.OwncastPlayer_container__YfgRy{height:250px;max-height:250px}}.OwncastPlayer_container__YfgRy .OwncastPlayer_player__R7XKJ,.OwncastPlayer_container__YfgRy .OwncastPlayer_poster__8RqUC{width:100%;grid-column:1;grid-row:1}.OwncastPlayer_fill__AdH_e{max-height:unset}