Bundle embedded web app
This commit is contained in:
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
@@ -1,2 +1,2 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3126,5202],{61357:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/video",function(){return t(29942)}])},51513:function(e,n,t){"use strict";t.d(n,{R:function(){return c}});var s=t(85893),i=t(27049),a=t(24019),r=t(45938),o=t(88335),l=t.n(o);let c=e=>{let n,{streamName:t,customText:o,lastLive:c,notificationsEnabled:u,fediverseAccount:d,onNotifyClick:f,onFollowClick:_}=e;return n=o||(!o&&u&&d?(0,s.jsxs)("span",{children:["This stream is offline. You can"," ",(0,s.jsx)("span",{role:"link",tabIndex:0,className:l().actionLink,onClick:f,children:"be notified"})," ","the next time ",t," goes live or"," ",(0,s.jsx)("span",{role:"link",tabIndex:0,className:l().actionLink,onClick:_,children:"follow"})," ",d," on the Fediverse."]}):!o&&u?(0,s.jsxs)("span",{children:["This stream is offline."," ",(0,s.jsx)("span",{role:"link",tabIndex:0,className:l().actionLink,onClick:f,children:"Be notified"})," ","the next time ",t," goes live."]}):!o&&d?(0,s.jsxs)("span",{children:["This stream is offline."," ",(0,s.jsx)("span",{role:"link",tabIndex:0,className:l().actionLink,onClick:_,children:"Follow"})," ",d," on the Fediverse to see the next time ",t," goes live."]}):"This stream is offline. Check back soon!"),(0,s.jsx)("div",{id:"offline-banner",className:l().outerContainer,children:(0,s.jsxs)("div",{className:l().innerContainer,children:[(0,s.jsx)("div",{className:l().header,children:t}),(0,s.jsx)(i.Z,{className:l().separator}),(0,s.jsx)("div",{className:l().bodyText,children:n}),c&&(0,s.jsxs)("div",{className:l().lastLiveDate,children:[(0,s.jsx)(a.Z,{className:l().clockIcon}),"Last live ".concat((0,r.Z)(new Date(c))," ago.")]})]})})}},69357:function(e,n,t){"use strict";t.d(n,{X:function(){return u}});var s=t(85893),i=t(45938),a=t(68730),r=t(67294),o=t(31326),l=t(37970),c=t.n(l);let u=e=>{let n,{online:t,lastConnectTime:l,lastDisconnectTime:u,viewerCount:d}=e,[,f]=(0,r.useState)(new Date);(0,r.useEffect)(()=>{let e=setInterval(()=>f(new Date),1e3);return()=>{clearInterval(e)}},[]);let _="";if(t&&l){let x=function(e){let n=(0,a.Z)({start:e,end:new Date});return n.days>1?"".concat(n.days," days ").concat(n.hours," hours"):n.hours>=1?"".concat(n.hours," hours ").concat(n.minutes," minutes"):"".concat(n.minutes," minutes ").concat(n.seconds," seconds")}(new Date(l));_=t?"Live for ".concat(x):"Offline",n=d>0&&(0,s.jsxs)("div",{className:c().right,children:[(0,s.jsx)("span",{children:(0,s.jsx)(o.Z,{})}),(0,s.jsx)("span",{children:" ".concat(d)})]})}else!t&&(_="Offline",u&&(n="Last live ".concat((0,i.Z)(new Date(u))," ago.")));return(0,s.jsxs)("div",{className:c().statusbar,children:[(0,s.jsx)("div",{children:_}),(0,s.jsx)("div",{children:n})]})};u.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},29942:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var s=t(85893);t(67294);var i=t(4480),a=t(11163),r=t(77466),o=t(51513),l=t(69357),c=t(8888);function u(){var e;let n=(0,i.sJ)(r.RI),t=(0,i.sJ)(r.g1),{name:u}=t,{offlineMessage:d}=t,{viewerCount:f,lastConnectTime:_,lastDisconnectTime:x}=n,h=(0,i.sJ)(r.YW),m=(0,a.useRouter)(),p=null!==(e=m.asPath.split("?")[1])&&void 0!==e?e:"",v=p.split("&").reduce((e,n)=>{let[t,s]=n.split("=");return{...e,[t]:s}},{}),j="true"===v.initiallyMuted;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.me,{}),(0,s.jsxs)("div",{className:"video-embed",children:[h&&(0,s.jsx)(c.OwncastPlayer,{source:"/hls/stream.m3u8",online:h,initiallyMuted:j}),!h&&(0,s.jsx)(o.R,{streamName:u,customText:d,notificationsEnabled:!1}),h&&(0,s.jsx)(l.X,{online:h,lastConnectTime:_,lastDisconnectTime:x,viewerCount:f})]})]})}},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"}},37970:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},11163:function(e,n,t){e.exports=t(80880)},10434:function(e){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}},function(e){e.O(0,[2544,1407,5938,6395,7902,8245,7466,2239,9774,2888,179],function(){return e(e.s=61357)}),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=video-b23c1c86a0694c10.js.map
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3126,5202],{61357:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/video",function(){return t(29942)}])},51513:function(e,n,t){"use strict";t.d(n,{R:function(){return c}});var s=t(85893),i=t(27049),a=t(24019),r=t(45938),o=t(88335),l=t.n(o);let c=e=>{let n,{streamName:t,customText:o,lastLive:c,notificationsEnabled:u,fediverseAccount:d,onNotifyClick:f,onFollowClick:_}=e;return n=o||(!o&&u&&d?(0,s.jsxs)("span",{children:["This stream is offline. You can"," ",(0,s.jsx)("span",{role:"link",tabIndex:0,className:l().actionLink,onClick:f,children:"be notified"})," ","the next time ",t," goes live or"," ",(0,s.jsx)("span",{role:"link",tabIndex:0,className:l().actionLink,onClick:_,children:"follow"})," ",d," on the Fediverse."]}):!o&&u?(0,s.jsxs)("span",{children:["This stream is offline."," ",(0,s.jsx)("span",{role:"link",tabIndex:0,className:l().actionLink,onClick:f,children:"Be notified"})," ","the next time ",t," goes live."]}):!o&&d?(0,s.jsxs)("span",{children:["This stream is offline."," ",(0,s.jsx)("span",{role:"link",tabIndex:0,className:l().actionLink,onClick:_,children:"Follow"})," ",d," on the Fediverse to see the next time ",t," goes live."]}):"This stream is offline. Check back soon!"),(0,s.jsx)("div",{id:"offline-banner",className:l().outerContainer,children:(0,s.jsxs)("div",{className:l().innerContainer,children:[(0,s.jsx)("div",{className:l().header,children:t}),(0,s.jsx)(i.Z,{className:l().separator}),(0,s.jsx)("div",{className:l().bodyText,children:n}),c&&(0,s.jsxs)("div",{className:l().lastLiveDate,children:[(0,s.jsx)(a.Z,{className:l().clockIcon}),"Last live ".concat((0,r.Z)(new Date(c))," ago.")]})]})})}},69357:function(e,n,t){"use strict";t.d(n,{X:function(){return u}});var s=t(85893),i=t(45938),a=t(68730),r=t(67294),o=t(31326),l=t(37970),c=t.n(l);let u=e=>{let n,{online:t,lastConnectTime:l,lastDisconnectTime:u,viewerCount:d}=e,[,f]=(0,r.useState)(new Date);(0,r.useEffect)(()=>{let e=setInterval(()=>f(new Date),1e3);return()=>{clearInterval(e)}},[]);let _="";if(t&&l){let x=function(e){let n=(0,a.Z)({start:e,end:new Date});return n.days>1?"".concat(n.days," days ").concat(n.hours," hours"):n.hours>=1?"".concat(n.hours," hours ").concat(n.minutes," minutes"):"".concat(n.minutes," minutes ").concat(n.seconds," seconds")}(new Date(l));_=t?"Live for ".concat(x):"Offline",n=d>0&&(0,s.jsxs)("div",{className:c().right,children:[(0,s.jsx)("span",{children:(0,s.jsx)(o.Z,{})}),(0,s.jsx)("span",{children:" ".concat(d)})]})}else!t&&(_="Offline",u&&(n="Last live ".concat((0,i.Z)(new Date(u))," ago.")));return(0,s.jsxs)("div",{className:c().statusbar,children:[(0,s.jsx)("div",{children:_}),(0,s.jsx)("div",{children:n})]})};u.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},29942:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var s=t(85893);t(67294);var i=t(4480),a=t(11163),r=t(77466),o=t(51513),l=t(69357),c=t(8888);function u(){var e;let n=(0,i.sJ)(r.RI),t=(0,i.sJ)(r.g1),{name:u}=t,{offlineMessage:d}=t,{viewerCount:f,lastConnectTime:_,lastDisconnectTime:x}=n,h=(0,i.sJ)(r.YW),m=(0,a.useRouter)(),p=null!==(e=m.asPath.split("?")[1])&&void 0!==e?e:"",v=p.split("&").reduce((e,n)=>{let[t,s]=n.split("=");return{...e,[t]:s}},{}),j="true"===v.initiallyMuted;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.me,{}),(0,s.jsxs)("div",{className:"video-embed",children:[h&&(0,s.jsx)(c.OwncastPlayer,{source:"/hls/stream.m3u8",online:h,initiallyMuted:j}),!h&&(0,s.jsx)(o.R,{streamName:u,customText:d,notificationsEnabled:!1}),h&&(0,s.jsx)(l.X,{online:h,lastConnectTime:_,lastDisconnectTime:x,viewerCount:f})]})]})}},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"}},37970:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},11163:function(e,n,t){e.exports=t(80880)},10434:function(e){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}},function(e){e.O(0,[2544,1407,5938,6395,7902,5545,7466,2239,9774,2888,179],function(){return e(e.s=61357)}),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=video-c9623464411d2e86.js.map
|
||||
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
Reference in New Issue
Block a user