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
@@ -1 +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(8909),t.e(8119),t.e(9096)]).then(t.bind(t,59096)).then(e=>e.NameChangeModal),{loadableGenerated:{webpack:()=>[59096]}}),A=C()(()=>Promise.all([t.e(575),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)("div",{id:"header-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,3729,911,7466,4977,9774,2888,179],function(){return e(e.s=30672)}),_N_E=e.O()}]);
|
||||
(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),_=t(38545),m=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(8909),t.e(8119),t.e(9096)]).then(t.bind(t,59096)).then(e=>e.NameChangeModal),{loadableGenerated:{webpack:()=>[59096]}}),A=C()(()=>Promise.all([t.e(575),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)(_.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)(m.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)("div",{id:"header-logo",children:(0,a.jsx)(H.C,{variant:"contrast"})}),(0,a.jsx)("span",{id:"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,3729,911,7466,4977,9774,2888,179],function(){return e(e.s=30672)}),_N_E=e.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3126,5202],{61357:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/video",function(){return s(29942)}])},51513:function(e,n,s){"use strict";s.d(n,{R:function(){return l}});var t=s(85893),a=s(27049),i=s(24019),r=s(45938),o=s(88335),c=s.n(o);let l=e=>{let n,{streamName:s,customText:o,lastLive:l,notificationsEnabled:d,fediverseAccount:u,onNotifyClick:f,onFollowClick:_}=e;return n=o||(!o&&d&&u?(0,t.jsxs)("span",{children:["This stream is offline. You can"," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:f,children:"be notified"})," ","the next time ",s," goes live or"," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:_,children:"follow"})," ",u," on the Fediverse."]}):!o&&d?(0,t.jsxs)("span",{children:["This stream is offline."," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:f,children:"Be notified"})," ","the next time ",s," goes live."]}):!o&&u?(0,t.jsxs)("span",{children:["This stream is offline."," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:_,children:"Follow"})," ",u," on the Fediverse to see the next time ",s," goes live."]}):"This stream is offline. Check back soon!"),(0,t.jsx)("div",{id:"offline-banner",className:c().outerContainer,children:(0,t.jsxs)("div",{className:c().innerContainer,children:[(0,t.jsx)("div",{className:c().header,children:s}),(0,t.jsx)(a.Z,{className:c().separator}),(0,t.jsx)("div",{className:c().bodyText,children:n}),l&&(0,t.jsxs)("div",{className:c().lastLiveDate,children:[(0,t.jsx)(i.Z,{className:c().clockIcon}),"Last live ".concat((0,r.Z)(new Date(l))," ago.")]})]})})}},69357:function(e,n,s){"use strict";s.d(n,{X:function(){return d}});var t=s(85893),a=s(45938),i=s(68730),r=s(67294),o=s(31326),c=s(37970),l=s.n(c);let d=e=>{let n,{online:s,lastConnectTime:c,lastDisconnectTime:d,viewerCount:u}=e,[,f]=(0,r.useState)(new Date);(0,r.useEffect)(()=>{let e=setInterval(()=>f(new Date),1e3);return()=>{clearInterval(e)}},[]);let _="";if(s&&c){let x=function(e){let n=(0,i.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(c));_=s?"Live for ".concat(x):"Offline",n=u>0&&(0,t.jsxs)("div",{className:l().right,children:[(0,t.jsx)("span",{children:(0,t.jsx)(o.Z,{})}),(0,t.jsx)("span",{children:" ".concat(u)})]})}else!s&&(_="Offline",d&&(n="Last live ".concat((0,a.Z)(new Date(d))," ago.")));return(0,t.jsxs)("div",{className:l().statusbar,children:[(0,t.jsx)("div",{children:_}),(0,t.jsx)("div",{children:n})]})};d.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},29942:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return l}});var t=s(85893);s(67294);var a=s(4480),i=s(77466),r=s(51513),o=s(69357),c=s(8888);function l(){let e=(0,a.sJ)(i.RI),n=(0,a.sJ)(i.g1),{name:s}=n,{offlineMessage:l}=n,{viewerCount:d,lastConnectTime:u,lastDisconnectTime:f}=e,_=(0,a.sJ)(i.YW);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.me,{}),(0,t.jsxs)("div",{className:"video-embed",children:[_&&(0,t.jsx)(c.OwncastPlayer,{source:"/hls/stream.m3u8",online:_}),!_&&(0,t.jsx)(r.R,{streamName:s,customText:l,notificationsEnabled:!1}),_&&(0,t.jsx)(o.X,{online:_,lastConnectTime:u,lastDisconnectTime:f,viewerCount:d})]})]})}},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"}},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 s=arguments[n];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(e[t]=s[t])}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,5938,6395,7902,8245,7466,2239,9774,2888,179],function(){return e(e.s=61357)}),_N_E=e.O()}]);
|
||||
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3126,5202],{61357:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/video",function(){return s(29942)}])},51513:function(e,n,s){"use strict";s.d(n,{R:function(){return l}});var t=s(85893),a=s(27049),i=s(24019),r=s(45938),o=s(88335),c=s.n(o);let l=e=>{let n,{streamName:s,customText:o,lastLive:l,notificationsEnabled:d,fediverseAccount:u,onNotifyClick:f,onFollowClick:_}=e;return n=o||(!o&&d&&u?(0,t.jsxs)("span",{children:["This stream is offline. You can"," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:f,children:"be notified"})," ","the next time ",s," goes live or"," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:_,children:"follow"})," ",u," on the Fediverse."]}):!o&&d?(0,t.jsxs)("span",{children:["This stream is offline."," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:f,children:"Be notified"})," ","the next time ",s," goes live."]}):!o&&u?(0,t.jsxs)("span",{children:["This stream is offline."," ",(0,t.jsx)("span",{role:"link",tabIndex:0,className:c().actionLink,onClick:_,children:"Follow"})," ",u," on the Fediverse to see the next time ",s," goes live."]}):"This stream is offline. Check back soon!"),(0,t.jsx)("div",{className:c().outerContainer,children:(0,t.jsxs)("div",{className:c().innerContainer,children:[(0,t.jsx)("div",{className:c().header,children:s}),(0,t.jsx)(a.Z,{className:c().separator}),(0,t.jsx)("div",{className:c().bodyText,children:n}),l&&(0,t.jsxs)("div",{className:c().lastLiveDate,children:[(0,t.jsx)(i.Z,{className:c().clockIcon}),"Last live ".concat((0,r.Z)(new Date(l))," ago.")]})]})})}},69357:function(e,n,s){"use strict";s.d(n,{X:function(){return d}});var t=s(85893),a=s(45938),i=s(68730),r=s(67294),o=s(31326),c=s(37970),l=s.n(c);let d=e=>{let n,{online:s,lastConnectTime:c,lastDisconnectTime:d,viewerCount:u}=e,[,f]=(0,r.useState)(new Date);(0,r.useEffect)(()=>{let e=setInterval(()=>f(new Date),1e3);return()=>{clearInterval(e)}},[]);let _="";if(s&&c){let x=function(e){let n=(0,i.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(c));_=s?"Live for ".concat(x):"Offline",n=u>0&&(0,t.jsxs)("div",{className:l().right,children:[(0,t.jsx)("span",{children:(0,t.jsx)(o.Z,{})}),(0,t.jsx)("span",{children:" ".concat(u)})]})}else!s&&(_="Offline",d&&(n="Last live ".concat((0,a.Z)(new Date(d))," ago.")));return(0,t.jsxs)("div",{className:l().statusbar,children:[(0,t.jsx)("div",{children:_}),(0,t.jsx)("div",{children:n})]})};d.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},29942:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return l}});var t=s(85893);s(67294);var a=s(4480),i=s(77466),r=s(51513),o=s(69357),c=s(8888);function l(){let e=(0,a.sJ)(i.RI),n=(0,a.sJ)(i.g1),{name:s}=n,{offlineMessage:l}=n,{viewerCount:d,lastConnectTime:u,lastDisconnectTime:f}=e,_=(0,a.sJ)(i.YW);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.me,{}),(0,t.jsxs)("div",{className:"video-embed",children:[_&&(0,t.jsx)(c.OwncastPlayer,{source:"/hls/stream.m3u8",online:_}),!_&&(0,t.jsx)(r.R,{streamName:s,customText:l,notificationsEnabled:!1}),_&&(0,t.jsx)(o.X,{online:_,lastConnectTime:u,lastDisconnectTime:f,viewerCount:d})]})]})}},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"}},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 s=arguments[n];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(e[t]=s[t])}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,5938,6395,7902,8245,7466,2239,9774,2888,179],function(){return e(e.s=61357)}),_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
Reference in New Issue
Block a user