Bundle embedded web app

This commit is contained in:
gabek
2022-11-05 03:07:45 +00:00
parent b67e0703cc
commit 0ebca7b87a
39 changed files with 36 additions and 36 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

@@ -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()))})]})]})}}}]);

View File

@@ -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()))})]})]})}}}]);

View File

@@ -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()}]);

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 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()}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long