Module 851907

1,139 characters · in no known chunk
Dependencies
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{Ay:()=>h,LU:()=>f,xi:()=>E});var i=n(17928),r=n(587895),s=n(20015),a=n(567249),o=n(646865),l=n(933958),u=n(969151),c=n(108959),d=n(5867),_=n(652215);function h(e){let{application:t,channelId:n}=e;if(null!=t&&(0,s.n)(t,_.gfo.EMBEDDED)){if(a.A.getWindowOpen(_.MLl.ACTIVITY_POPOUT)&&l.Ay.getActivityPanelMode()===d.Gd.ACTIVITY_POPOUT_WINDOW)return _.MLl.ACTIVITY_POPOUT;if(a.A.getWindowOpen(_.MLl.CHANNEL_CALL_POPOUT)&&(0,c.A)(n)&&!(0,o.f)())return _.MLl.CHANNEL_CALL_POPOUT}}function f(e){let{applicationId:t}=e,n=l.Ay.getCurrentEmbeddedActivity();if(null==n||n.applicationId!==t)return;let i=r.A.getApplication(t);if(null!=i)return h({application:i,channelId:(0,u.H)(n.location)})}function E(e){let{channelId:t}=e;return(0,i.bG)([a.A,l.Ay,r.A],()=>{let e=function(e){let{channelId:t,EmbeddedActivitiesStore:n,ApplicationStore:i}=e,r=n.getSelfEmbeddedActivityForChannel(t),s=i.getApplication(r?.applicationId);if(null!=s)return h({application:s,channelId:t})}({channelId:t??l.Ay.getConnectedActivityChannelId(),EmbeddedActivitiesStore:l.Ay,ApplicationStore:r.A});return null!=e?a.A.getWindow(e):void 0})}}