Module 989837

1,334 characters · in no known chunk
Dependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(311907),i=n(73153),s=n(500049);let a={show:!1,entrypoint:s.s4.NONE,lastShownEntrypoint:s.s4.NONE,activeViewType:null,activeChannelId:null,closeReason:s.Se.DISMISSED,initialState:void 0};function o(e){let{entrypoint:t,activeViewType:n,initialState:r,activeChannelId:i}=e;return a.show=!0,a.entrypoint=t,a.lastShownEntrypoint=t,a.closeReason=s.Se.DISMISSED,a.activeViewType=n,a.activeChannelId=i,a.initialState=r,!0}function l(e){let{closeReason:t=s.Se.DISMISSED}=e;return a.show=!1,a.entrypoint=s.s4.NONE,a.closeReason=t,a.initialState=void 0,a.activeChannelId=null,!0}class u extends r.Ay.Store{static displayName="AppLauncherStore";initialize(){}shouldShowPopup(){return a.show&&a.entrypoint===s.s4.TEXT}shouldShowModal(){return a.show&&a.entrypoint===s.s4.VOICE}entrypoint(){return a.entrypoint}lastShownEntrypoint(){return a.lastShownEntrypoint}activeViewType(){return a.activeViewType}activeChannelId(){return a.activeChannelId??null}closeReason(){return a.closeReason}initialState(){return a.initialState}}function c(){l({closeReason:s.Se.DISMISSED})}function d(){l({closeReason:s.Se.COMMAND})}let _=new u(i.h,{APP_LAUNCHER_SHOW:o,APP_LAUNCHER_DISMISS:l,CONNECTION_OPEN:c,LOGOUT:c,CHANNEL_SELECT:c,APPLICATION_COMMAND_SET_ACTIVE_COMMAND:d,APP_LAUNCHER_SET_ACTIVE_COMMAND:d})}