Bundle embedded web app

This commit is contained in:
gabek
2022-10-10 23:43:23 +00:00
parent 80a012a3c7
commit 25657a548f
54 changed files with 837 additions and 50 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8225],{98225:function(e,n,t){t.r(n),t.d(n,{NameChangeModal:function(){return f}});var r=t(29815),o=t(85893),a=t(67294),u=t(4480),i=t(38939),s=t(69677),l=t(71577),c=t(11622),h=t(1899),d=i.Z.Option,C=function(e){var n=e.color,t={textAlign:"center",backgroundColor:"var(--theme-color-users-".concat(n,")"),width:"100%",height:"100%"};return(0,o.jsx)("div",{style:t})},f=function(){var e=(0,u.sJ)(h.Gt),n=(0,u.sJ)(h.w4),t=(0,u.sJ)(h.nk)||0,f=(0,a.useState)(n),p=f[0],g=f[1],m=p!==n&&""!==p&&(null===e||void 0===e?void 0:e.isConnected()),v=(0,r.Z)(Array(8)).map((function(e,n){return n}));return(0,o.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,o.jsx)(s.Z,{value:p,onChange:function(e){return g(e.target.value)},placeholder:"Your chat display name",maxLength:30,showCount:!0,defaultValue:n}),(0,o.jsx)(l.Z,{disabled:!m,onClick:function(){var n={type:c.C.NAME_CHANGE,newName:p};e.send(n)},children:"Change name"}),(0,o.jsxs)("div",{children:["Your Color",(0,o.jsx)(i.Z,{style:{width:120},onChange:function(n){var t={type:c.C.COLOR_CHANGE,newColor:Number(n)};e.send(t)},defaultValue:t.toString(),getPopupContainer:function(e){return e.parentElement},children:v.map((function(e){return(0,o.jsx)(d,{title:e,children:(0,o.jsx)(C,{color:e})},e.toString())}))})]})]})}}}]);
@@ -0,0 +1 @@
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8225],{98225:function(e,n,t){t.r(n),t.d(n,{NameChangeModal:function(){return f}});var r=t(29815),a=t(85893),o=t(67294),i=t(4480),u=t(38939),l=t(69677),s=t(71577),c=t(11622),d=t(1899),h=u.Z.Option,C=function(e){var n=e.color,t={textAlign:"center",backgroundColor:"var(--theme-color-users-".concat(n,")"),width:"100%",height:"100%"};return(0,a.jsx)("div",{style:t})},f=function(){var e=(0,i.sJ)(d.db);if(!e)return null;var n=e.displayName,t=e.displayColor,f=(0,i.sJ)(d.Gt),p=(0,o.useState)(n),m=p[0],g=p[1],v=m!==n&&""!==m&&(null===f||void 0===f?void 0:f.isConnected()),x=(0,r.Z)(Array(8)).map((function(e,n){return n}));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)(l.Z,{value:m,onChange:function(e){return g(e.target.value)},placeholder:"Your chat display name",maxLength:30,showCount:!0,defaultValue:n}),(0,a.jsx)(s.Z,{disabled:!v,onClick:function(){var e={type:c.C.NAME_CHANGE,newName:m};f.send(e)},children:"Change name"}),(0,a.jsxs)("div",{children:["Your Color",(0,a.jsx)(u.Z,{style:{width:120},onChange:function(e){var n={type:c.C.COLOR_CHANGE,newColor:Number(e)};f.send(n)},defaultValue:t.toString(),getPopupContainer:function(e){return e.parentElement},children:x.map((function(e){return(0,a.jsx)(h,{title:e,children:(0,a.jsx)(C,{color:e})},e.toString())}))})]})]})}}}]);
@@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8399],{27561:function(t,n,r){var e=r(67990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,e(t)+1).replace(i,""):t}},67990:function(t){var n=/\s/;t.exports=function(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}},23279:function(t,n,r){var e=r(13218),i=r(7771),o=r(14841),u=Math.max,a=Math.min;t.exports=function(t,n,r){var f,c,s,v,p,l,d=0,h=!1,m=!1,x=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function _(n){var r=f,e=c;return f=c=void 0,d=n,v=t.apply(e,r)}function w(t){return d=t,p=setTimeout(T,n),h?_(t):v}function y(t){var r=t-l;return void 0===l||r>=n||r<0||m&&t-d>=s}function T(){var t=i();if(y(t))return g(t);p=setTimeout(T,function(t){var r=n-(t-l);return m?a(r,s-(t-d)):r}(t))}function g(t){return p=void 0,x&&f?_(t):(f=c=void 0,v)}function N(){var t=i(),r=y(t);if(f=arguments,c=this,l=t,r){if(void 0===p)return w(l);if(m)return clearTimeout(p),p=setTimeout(T,n),_(l)}return void 0===p&&(p=setTimeout(T,n)),v}return n=o(n)||0,e(r)&&(h=!!r.leading,s=(m="maxWait"in r)?u(o(r.maxWait)||0,n):s,x="trailing"in r?!!r.trailing:x),N.cancel=function(){void 0!==p&&clearTimeout(p),d=0,f=l=c=p=void 0},N.flush=function(){return void 0===p?v:g(i())},N}},33448:function(t,n,r){var e=r(44239),i=r(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==e(t)}},7771:function(t,n,r){var e=r(55639);t.exports=function(){return e.Date.now()}},14841:function(t,n,r){var e=r(27561),i=r(13218),o=r(33448),u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=e(t);var r=a.test(t);return r||f.test(t)?c(t.slice(2),r?2:8):u.test(t)?NaN:+t}},88054:function(t,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readonly",function(){return r(15410)}])},15410:function(t,n,r){"use strict";r.r(n),r.d(n,{default:function(){return a}});var e=r(85893),i=r(4480),o=r(28763),u=r(1899);function a(){var t=(0,i.sJ)(u.w4),n=(0,i.sJ)(u.uy),r=(0,i.sJ)(u.pH);return(0,e.jsxs)("div",{children:[(0,e.jsx)(u.me,{}),(0,e.jsx)(o.ChatContainer,{messages:r,usernameToHighlight:t,chatUserId:n,isModerator:!1,showInput:!1,height:"100vh"})]})}}},function(t){t.O(0,[1272,8700,9372,7364,1899,8763,9774,2888,179],(function(){return n=88054,t(t.s=n);var n}));var n=t.O();_N_E=n}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8399],{27561:function(n,t,r){var e=r(67990),i=/^\s+/;n.exports=function(n){return n?n.slice(0,e(n)+1).replace(i,""):n}},67990:function(n){var t=/\s/;n.exports=function(n){for(var r=n.length;r--&&t.test(n.charAt(r)););return r}},23279:function(n,t,r){var e=r(13218),i=r(7771),u=r(14841),o=Math.max,a=Math.min;n.exports=function(n,t,r){var f,c,s,v,l,d,p=0,h=!1,m=!1,x=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function _(t){var r=f,e=c;return f=c=void 0,p=t,v=n.apply(e,r)}function y(n){return p=n,l=setTimeout(N,t),h?_(n):v}function w(n){var r=n-d;return void 0===d||r>=t||r<0||m&&n-p>=s}function N(){var n=i();if(w(n))return T(n);l=setTimeout(N,function(n){var r=t-(n-d);return m?a(r,s-(n-p)):r}(n))}function T(n){return l=void 0,x&&f?_(n):(f=c=void 0,v)}function b(){var n=i(),r=w(n);if(f=arguments,c=this,d=n,r){if(void 0===l)return y(d);if(m)return clearTimeout(l),l=setTimeout(N,t),_(d)}return void 0===l&&(l=setTimeout(N,t)),v}return t=u(t)||0,e(r)&&(h=!!r.leading,s=(m="maxWait"in r)?o(u(r.maxWait)||0,t):s,x="trailing"in r?!!r.trailing:x),b.cancel=function(){void 0!==l&&clearTimeout(l),p=0,f=d=c=l=void 0},b.flush=function(){return void 0===l?v:T(i())},b}},33448:function(n,t,r){var e=r(44239),i=r(37005);n.exports=function(n){return"symbol"==typeof n||i(n)&&"[object Symbol]"==e(n)}},7771:function(n,t,r){var e=r(55639);n.exports=function(){return e.Date.now()}},14841:function(n,t,r){var e=r(27561),i=r(13218),u=r(33448),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(u(n))return NaN;if(i(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=i(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=e(n);var r=a.test(n);return r||f.test(n)?c(n.slice(2),r?2:8):o.test(n)?NaN:+n}},88054:function(n,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readonly",function(){return r(15410)}])},15410:function(n,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var e=r(85893),i=r(4480),u=r(28763),o=r(1899);function a(){var n=(0,i.sJ)(o.db),t=(0,i.sJ)(o.pH);if(!n)return null;var r=n.id,a=n.displayName;return(0,e.jsxs)("div",{children:[(0,e.jsx)(o.me,{}),(0,e.jsx)(u.ChatContainer,{messages:t,usernameToHighlight:a,chatUserId:r,isModerator:!1,showInput:!1,height:"100vh"})]})}}},function(n){n.O(0,[1272,8700,9372,7364,1899,8763,9774,2888,179],(function(){return t=88054,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
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