Bundle embedded web app
This commit is contained in:
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[786],{30786:function(e,t,n){n.r(t),n.d(t,{EmojiPicker:function(){return i}});var r=n(47568),u=n(70655),c=n(85893),o=n(67294),s=n(57741),i=function(e){var t=(0,o.useState)([]),n=t[0],i=t[1],a=e.onEmojiSelect,f=e.onCustomEmojiSelect,l=(0,o.useRef)(),m=function(){var e=(0,r.Z)((function(){var e,t;return(0,u.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,fetch("/api/emoji")];case 1:return[4,n.sent().json()];case 2:return e=n.sent(),i(e),[3,4];case 3:return t=n.sent(),console.error("cannot fetch custom emoji",t),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){m()}),[]),(0,o.useEffect)((function(){var e=n.map((function(e){return{emoji:e.name,label:e.name,url:e.url}}));(0,s.wU)({rootElement:l.current,custom:e,initialCategory:"custom",showPreview:!1,showRecents:!0}).addEventListener("emoji:select",(function(e){e.url?f(e):a(e)}))}),[n]),(0,c.jsx)("div",{ref:l})}}}]);
|
||||
1
static/web/_next/static/chunks/786.bda6a234b010d76b.js
Normal file
1
static/web/_next/static/chunks/786.bda6a234b010d76b.js
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[786],{30786:function(e,n,t){t.r(n),t.d(n,{EmojiPicker:function(){return i}});var r=t(47568),u=t(70655),o=t(85893),c=t(67294),s=t(57741),i=function(e){var n=e.onEmojiSelect,t=e.onCustomEmojiSelect,i=(0,c.useState)([]),a=i[0],f=i[1],l=(0,c.useRef)(),m=function(){var e=(0,r.Z)((function(){var e,n;return(0,u.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),[4,fetch("/api/emoji")];case 1:return[4,t.sent().json()];case 2:return e=t.sent(),f(e),[3,4];case 3:return n=t.sent(),console.error("cannot fetch custom emoji",n),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){m()}),[]),(0,c.useEffect)((function(){var e=a.map((function(e){return{emoji:e.name,label:e.name,url:e.url}}));(0,s.wU)({rootElement:l.current,custom:e,initialCategory:"custom",showPreview:!1,showRecents:!0}).addEventListener("emoji:select",(function(e){e.url?t(e.name,e.url):n(e.emoji)}))}),[a]),(0,o.jsx)("div",{ref:l})}}}]);
|
||||
1
static/web/_next/static/chunks/8763-9490625166d46d87.js
Normal file
1
static/web/_next/static/chunks/8763-9490625166d46d87.js
Normal file
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