Module 235430

671 characters · in no known chunk
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(627968),i=n(64700),s=n(311907),a=n(105330),o=n(961350),l=n(559908),u=n(620141),c=n(224964),d=n(31408),_=n(851110);let f=16,p=.05;function h(e){let{editorHeight:t,textValue:n,channelId:r}=e,u=i.useRef(n),d=(0,a.l)({editorHeight:t}),h=(0,c.A)(),m=(0,s.bG)([l.Ay,o.default],()=>l.Ay.isComboing(o.default.getId(),r)),E=d?.left??0,g=(d?.top??0)-f,A=0===n.length,I=i.useMemo(()=>Math.random()<p,[A]);return i.useEffect(()=>{0!==n.length&&n!==u.current&&m&&(h.fire(E,g,I?{sprite:_.dR}:null),u.current=n)},[n,m,E,g,I,h]),null}function m(e){return(0,r.jsx)(u.A,{confettiLocation:d.k.CHAT_INPUT,children:(0,r.jsx)(h,{...e})})}}