Bundle embedded web app

This commit is contained in:
gabek
2022-12-25 00:49:49 +00:00
parent 5c01efd3e2
commit 52d6226176
46 changed files with 42 additions and 42 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([[955,1496],{30672:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readwrite",function(){return n(34986)}])},37527:function(e,t,n){"use strict";n.d(t,{h:function(){return U},Z:function(){return M}});var a=n(85893),r=n(97183),l=n(94199),s=n(20550),i=n(94184),o=n.n(i),c=n(66516),d=n(38504),h=n(71577),u=n(26713),x=n(86548),_=n(94149),m=n(38545),j=n(87547),p=n(39398),g=n(4480),b=n(67294),f=n(49218),Z=n(5152),C=n.n(Z),w=n(77466),v=n(79252),N=n.n(v);let k=C()(()=>n.e(4761).then(n.bind(n,14761)).then(e=>e.Modal),{loadableGenerated:{webpack:()=>[14761]}}),I=C()(()=>Promise.all([n.e(8909),n.e(8119),n.e(9096)]).then(n.bind(n,59096)).then(e=>e.NameChangeModal),{loadableGenerated:{webpack:()=>[59096]}}),H=C()(()=>Promise.all([n.e(4485),n.e(575),n.e(2335)]).then(n.bind(n,44208)).then(e=>e.AuthModal),{loadableGenerated:{webpack:()=>[44208]}}),y=e=>{let{username:t}=e,[n,r]=(0,b.useState)(!1),[l,s]=(0,b.useState)(!1),[i,o]=(0,g.FV)(w.ZA),Z=(0,g.sJ)(w.Q),C=()=>{o(!i)},v=()=>{r(!0)};(0,f.y1)("c",C,{enableOnContentEditable:!1},[i]);let y=(0,g.sJ)(w.db);if(!y)return null;let{displayName:A}=y,E=(0,a.jsxs)(c.Z,{children:[(0,a.jsx)(c.Z.Item,{icon:(0,a.jsx)(x.Z,{}),onClick:()=>v(),children:"Change name"},"0"),(0,a.jsx)(c.Z.Item,{icon:(0,a.jsx)(_.Z,{}),onClick:()=>s(!0),children:"Authenticate"},"1"),Z.chatAvailable&&(0,a.jsx)(c.Z.Item,{icon:(0,a.jsx)(m.Z,{}),onClick:()=>C(),children:i?"Hide Chat":"Show Chat"},"3")]});return(0,a.jsxs)("div",{id:"user-menu",className:"".concat(N().root),children:[(0,a.jsx)(d.Z,{overlay:E,trigger:["click"],children:(0,a.jsx)(h.Z,{type:"primary",icon:(0,a.jsx)(j.Z,{style:{marginRight:".5rem"}}),children:(0,a.jsxs)(u.Z,{children:[t||A,(0,a.jsx)(p.Z,{})]})})}),(0,a.jsx)(k,{title:"Change Chat Display Name",open:n,handleCancel:()=>r(!1),children:(0,a.jsx)(I,{})}),(0,a.jsx)(k,{title:"Authenticate",open:l,handleCancel:()=>s(!1),children:(0,a.jsx)(H,{})})]})};var A=n(50738),E=n(31764),J=n.n(E);let{Header:D}=r.Z,U=e=>{let{name:t="Your stream title",chatAvailable:n,chatDisabled:r}=e;return(0,a.jsxs)(D,{className:o()(["".concat(J().header)],"global-header"),children:[(0,a.jsxs)("div",{className:"".concat(J().logo),children:[(0,a.jsx)("div",{id:"header-logo",className:J().logoImage,children:(0,a.jsx)(A.C,{variant:"contrast"})}),(0,a.jsx)("h1",{className:J().title,id:"global-header-text",children:t})]}),n&&!r&&(0,a.jsx)(y,{}),!n&&!r&&(0,a.jsx)(l.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,a.jsx)(s.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})};var M=U},34986:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var a=n(85893),r=n(4480),l=n(94977),s=n(77466),i=n(37527);function o(){let e=(0,r.sJ)(s.db),t=(0,r.sJ)(s.pH),n=(0,r.sJ)(s.g1),{name:o,chatDisabled:c}=n;if(!e)return null;let{id:d,displayName:h,isModerator:u}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)(s.me,{}),(0,a.jsx)(i.Z,{name:o,chatAvailable:!0,chatDisabled:c}),(0,a.jsx)(l.ChatContainer,{messages:t,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",logoImage:"Header_logoImage__beIL2",logo:"Header_logo__HLZ6Z",title:"Header_title__FIts2"}}},function(e){e.O(0,[1272,8700,3903,6395,3729,4388,7466,4977,9774,2888,179],function(){return e(e.s=30672)}),_N_E=e.O()}]);

View File

@@ -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 U},Z:function(){return M}});var a=t(85893),r=t(97183),s=t(94199),i=t(20550),l=t(94184),o=t.n(l),c=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),C=t(5152),g=t.n(C),w=t(77466),v=t(79252),k=t.n(v);let N=g()(()=>t.e(4761).then(t.bind(t,14761)).then(e=>e.Modal),{loadableGenerated:{webpack:()=>[14761]}}),y=g()(()=>Promise.all([t.e(8909),t.e(8119),t.e(9096)]).then(t.bind(t,59096)).then(e=>e.NameChangeModal),{loadableGenerated:{webpack:()=>[59096]}}),H=g()(()=>Promise.all([t.e(4485),t.e(575),t.e(2335)]).then(t.bind(t,44208)).then(e=>e.AuthModal),{loadableGenerated:{webpack:()=>[44208]}}),A=e=>{let{username:n}=e,[t,r]=(0,f.useState)(!1),[s,i]=(0,f.useState)(!1),[l,o]=(0,b.FV)(w.ZA),C=(0,b.sJ)(w.Q),g=()=>{o(!l)},v=()=>{r(!0)};(0,Z.y1)("c",g,{enableOnContentEditable:!1},[l]);let A=(0,b.sJ)(w.db);if(!A)return null;let{displayName:E}=A,I=(0,a.jsxs)(c.Z,{children:[(0,a.jsx)(c.Z.Item,{icon:(0,a.jsx)(x.Z,{}),onClick:()=>v(),children:"Change name"},"0"),(0,a.jsx)(c.Z.Item,{icon:(0,a.jsx)(j.Z,{}),onClick:()=>i(!0),children:"Authenticate"},"1"),C.chatAvailable&&(0,a.jsx)(c.Z.Item,{icon:(0,a.jsx)(_.Z,{}),onClick:()=>g(),children:l?"Hide Chat":"Show 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||E,(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:()=>i(!1),children:(0,a.jsx)(H,{})})]})};var E=t(50738),I=t(31764),J=t.n(I);let{Header:D}=r.Z,U=e=>{let{name:n="Your stream title",chatAvailable:t,chatDisabled:r}=e;return(0,a.jsxs)(D,{className:o()(["".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)(E.C,{variant:"contrast"})}),(0,a.jsx)("span",{id:"global-header-text",children:n})]}),t&&!r&&(0,a.jsx)(A,{}),!t&&!r&&(0,a.jsx)(s.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,a.jsx)(i.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})};var M=U},34986:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});var a=t(85893),r=t(4480),s=t(94977),i=t(77466),l=t(37527);function o(){let e=(0,r.sJ)(i.db),n=(0,r.sJ)(i.pH),t=(0,r.sJ)(i.g1),{name:o,chatDisabled:c}=t;if(!e)return null;let{id:d,displayName:h,isModerator:u}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)(i.me,{}),(0,a.jsx)(l.Z,{name:o,chatAvailable:!0,chatDisabled:c}),(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,4388,7466,4977,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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long