Module 140539

1,135 characters · in 322648c75177e183.js
Dependencies
Required by (0)none
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,r){r.r(t),r.d(t,{default:()=>R});var n=r(627968),i=r(503698),a=r.n(i),s=r(284009),l=r.n(s),o=r(702841),d=r(197808),u=r(738876),c=r(877991),m=r(332779),p=r(274794),h=r(28647),y=r(795816),f=r(933958),g=r(47294),A=r(47167),F=r(386467),b=r(979186),v=r(734057),C=r(31717),E=r(164617),x=r(540462),D=r(42182);let S=[c.L,m.T,p.w,h.z];function R(e){let{windowKey:t,channelId:r}=e,i=(0,o.bG)([v.A],()=>v.A.getChannel(r));l()(null!=i,"channel cannot be null for popout");let s=(0,A.Ay)(i),c=(0,o.bG)([f.Ay],()=>f.Ay.getSelfEmbeddedActivityForChannel(i.id),[i]);return(0,n.jsx)(b.A,{withTitleBar:!0,keybinds:S,windowKey:t,title:s??"",channelId:i.id,onBeforeUnload:e=>{let{e:t,unmountWindow:r}=e;if(null!=c){let e=(0,y.od)(c.applicationId,i.id);t.preventDefault(),(0,g.A)({onConfirm:async()=>{await e,r()},usesPopoutContext:!0})}else r()},children:(0,n.jsx)("div",{className:a()("root",D.M),children:(0,n.jsxs)(F.A.Provider,{value:i.guild_id,children:[(0,n.jsx)(u.A,{channel:i,draftType:C.C.ChannelMessage}),(0,n.jsx)(x.default,{channel:i,popoutType:E.N.VOICE_UI}),(0,n.jsx)(d.A,{popoutWindowKey:t,popoutWindowHasTitleBar:!0})]})})})}}